mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-21 01:02:54 -07:00
f5dce650a4
Auth: - Coast Assist / LOGIN_WITH_GOOGLE uses AuthClient.request() against a Code Assist backend, NOT the standard Gemini API - GcliAgentModel must extend BaseLlm directly with dual transport (API-key via httpOptions.headers, Coast Assist via AuthClient.request()) - OAuth flow, token refresh, credential caching all work as-is Telemetry: - Stream-interceptor approach replaced with BasePlugin recommendation - ClearcutTelemetryPlugin for token counts (afterModelCallback), per-tool timing (beforeToolCallback/afterToolCallback with functionCallId), agent lifecycle, and model errors - Corrects earlier claim: token usage IS available on ADK events (llm_agent.ts spreads LlmResponse into events) - HTTP-level metrics captured in GcliAgentModel wrapper - ~70% of Clearcut metrics stay in existing call sites unchanged Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>