feat: Add support for the Antigravity client

Closed
BR
6mo ago
+810-22

feat: Add support for the Antigravity client, including session parsing from .pb files and token usage extraction via language server RPC:
POST /exa.language_server_pb.LanguageServerService/GetCascadeTrajectory


Summary by cubic

Add Antigravity (Windsurf/Codeium) client support to parse local .pb conversations and fetch token usage via the language server RPC. Synced with upstream and fixed client index/count to avoid ID conflicts.

  • New Features

    • Added Antigravity client scanning ~/.gemini/antigravity/conversations for *.pb.
    • Discovers the language server and POSTs to /exa.language_server_pb.LanguageServerService/GetCascadeTrajectory to extract input/output/cache-read/reasoning tokens.
    • Deduplicates by responseId, resolves model aliases/placeholders, and infers provider for pricing.
    • Integrated into parse_all_messages_with_pricing and parse_local_clients; TUI shows "Antigravity" with hotkey a.
    • Added Windsurf model aliases in pricing to normalize variants.
  • Migration

    • Ensure the Windsurf/Antigravity language server is running during parsing; otherwise no usage is returned.
    • No config changes required.