Files
magpie/internal/usage
yetone 9bcdcfb7d1 provider: Antigravity's Orchestrator ids are priced as the Gemini model each is
guyng35955 on X: an Antigravity local session's calls under
gemini-pro-orchestrator-argon, gemini-pro-orchestrator-carbon and the
worker gemini-flash-worker-agy showed tokens and cache but cost "—". They
are Orchestrator mode's role ids, which no catalog prices.

pricedNamesTo now reads them as the model Antigravity's docs name
(https://antigravity.google/docs/models/): Orchestrator (Argon) plans with
Gemini 4 Argon, Orchestrator (Carbon) with Gemini 4 Carbon, and Gemini 4
Hydrogen does the implementation, so the worker is priced as
gemini-4-hydrogen. gemini-pro-orchestrator (Carbon's id before Argon came,
per the Antigravity Context Window Monitor extension 1.17.1's table) is
Carbon too. Only these four ids, under a route prefix or an effort suffix;
a name only like one stays unpriced. Every cost reads through this one
place: the Sessions list and overview (sessions.priceOf -> PricedName),
the usage ledger, its totals and per-agent view (Pricer -> ListPrice /
MakerPrice). Prices are taken as rows are read, so sessions recorded
before the update are priced once it is installed; nothing is re-parsed.

Google publishes no rate for the role ids themselves; they are priced at
the named model's models.dev list price.

Run (mote, at this tree):
- the three new tests red on origin/main's models.go (every role id
  unpriced), green with the fix; red again with argon mapped to carbon
  by hand
- go test -tags nogui ./internal/provider ./internal/sessions
  ./internal/usage: sessions and usage ok; provider ok but for
  TestRemoveListedAccountLeavesHiddenNamesake (ZCode account removal,
  not reached by this change), which passes alone -count=3 with and
  without this change; filed as #6764 with its output
- go vet, GOOS=linux and GOOS=windows go vet of those packages; gofmt -l
  clean
Not tried: the reporter's own Antigravity database, or a real Orchestrator
mode account (this Mac has no Antigravity app and the account isn't
offered Argon). No GUI change.

Reported-by: guyng35955 on X
2026-11-15 22:17:30 +08:00
..