mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-06-11 20:07:00 -07:00
5e18b14c10
- Add agent_card_json field as alternative to agent_card_url in remote agent markdown frontmatter with Zod schema enforcing mutual exclusivity - Refactor loadAgent to accept AgentCardLoadOptions discriminated union - Add AgentCardLoadOptions, getAgentCardLoadOptions, getRemoteAgentTargetUrl helpers in types.ts to centralize remote agent card resolution - Fix google-credentials auth crash when using agentCardJson by extracting targetUrl from inline JSON card - Hash agentCardJson with SHA-256 for metadata.hash instead of raw string - Add JSON syntax validation via Zod .refine() on agent_card_json field - Refactor formatZodError with recursive flatMap and deduplication - Update remote agents documentation for oauth type naming - Add comprehensive test coverage for all agentCardJson code paths # Conflicts: # packages/core/src/agents/agentLoader.ts