codeburn/tests/providers
Resham Joshi 253c9fe85a
fix(antigravity): count cache reads and price the standalone app's model (#1655)
* fix(antigravity): count cache reads and price the standalone app's model

The standalone Antigravity app (2.19) stores usage as ModelUsageStats in
gen_metadata. Field 5 (cache_read_tokens) was never read, on the SQLite
path or the RPC path, so every cached prompt token was dropped. Fields 9
and 10 are thinking and response output, the reverse of what the SQLite
path assumed. The rows carry only MODEL_PLACEHOLDER_M16 and
"gemini-pro-default", so the model priced at $0.

Read cache read (and cache write) in both paths, read 9/10 in the right
order, drop the input fallback to field 1 (the model enum), and map the
placeholders seen in the app's own model catalog, flagged as estimated.
Bump the antigravity results cache, its parse version and the daily cache.

* fix(antigravity): keep .pb history across the cache bump, step times, 200k tier

With the results cache at v8 and Antigravity closed, .pb cascades had no
entry and no server, so they vanished until the app was next opened.
Serve the v7 entry meanwhile, stored with mtimeMs -1, and preload the
results cache so the session cache reparses such sources and the next run
with the server up re-fetches them with cache reads.

Standalone .db rows without created_at take their first step's time
(steps.metadata #1), which equals created_at wherever both exist, instead
of the file mtime.

Price antigravity at the Gemini long-context tier: add it to
TIERED_PRICING_PROVIDERS and pass the provider at both calculateCost sites.
2026-10-06 20:58:31 +02:00
..
amp.test.ts feat: Amp support - read the local thread mirror (#1572) (#1578) 2026-10-02 10:36:05 +02:00
antigravity.test.ts fix(antigravity): count cache reads and price the standalone app's model (#1655) 2026-10-06 20:58:31 +02:00
claude-config-dirs.test.ts test: isolate the real home on Windows and make the CLI suite pass there 2026-09-02 13:43:57 -07:00
cline-cli.test.ts fix: close status-snapshot race, cline-cli fingerprint gap, symlinked dirs, env-var invisibility 2026-08-24 15:05:02 -05:00
cline.test.ts fix(cline): scan all VS Code variants for task storage 2026-08-04 00:01:57 +03:00
codebuff.test.ts Merge origin/main into feat/codebuff-provider and scope sessionId by channel 2026-05-01 00:14:18 +05:30
codewhale.test.ts perf(cache): shard the session cache per provider 2026-08-16 19:03:12 -07:00
codex-resume.test.ts Price Codex Fast (priority tier) turns at priority rates (#1628) 2026-10-05 12:15:30 +02:00
codex.test.ts fix(codex): price Flex tier turns and the gpt-reserve / gpt-5.3-spark ids (#1642) 2026-10-05 21:18:59 +02:00
copilot-skills.test.ts copilot: extract skill invocations so Skills & Agents populates (#654) (#697) 2026-07-16 12:02:34 -07:00
copilot.test.ts Honor redirected Copilot and Cursor storage roots (#1624) 2026-10-04 22:17:28 +02:00
crush.test.ts fix(crush): keep the recorded session cost through the session cache (#1618) 2026-10-04 20:31:42 +02:00
cursor-agent.test.ts fix(cursor): stop counting billed CLI sessions twice, mark guessed-model sync rows estimated (#1654) 2026-10-06 20:43:24 +02:00
cursor-bubble-dedup.test.ts Menubar and CLI hardening from multi-agent audit (#257) 2026-05-06 22:15:11 -07:00
cursor-large-db-cap.test.ts fix: fix and improve test isolation and collision with environment (#530) 2026-06-20 13:42:10 +02:00
cursor-real-tokens.test.ts fix(cursor): use Cursor's real context tokens for input (#574) (#575) 2026-07-02 04:53:07 +02:00
cursor-workspace-breakdown.test.ts Cursor: per-project breakdown by workspace (closes per-project half of #196) (#296) 2026-05-10 15:35:57 -07:00
cursor.test.ts fix(cache-lock): coalesce heartbeat ticks; make time-sensitive tests deterministic (#1559) 2026-09-25 05:06:43 +02:00
devin-sessions-db.test.ts feat(devin): read usage from sessions.db (#1605) 2026-10-02 16:42:57 +02:00
devin.test.ts feat(devin): read usage from sessions.db (#1605) 2026-10-02 16:42:57 +02:00
droid.test.ts Add Droid CLI provider 2026-04-28 20:16:45 +02:00
dsh.test.ts Read DSH session format v4 written by dsh 0.2.0-rc.2 (#1612) 2026-10-05 11:54:55 +02:00
forge.test.ts feat(providers): add forge provider support (#401) 2026-05-26 03:36:57 -07:00
gemini.test.ts Track agent calls across providers (#340) 2026-05-18 05:51:01 -07:00
goose-sync-privacy.test.ts fix(sync): address project privacy review 2026-08-24 20:09:27 +05:30
grok.test.ts models: distinguish grok-4.5-build from grok-4.5 in reports 2026-08-18 12:01:12 -07:00
grokbot.test.ts Grok Bot: sessions, estimated spend and the weekly allowance on all three surfaces (#1462) 2026-09-16 21:17:48 +02:00
hermes-ledger.test.ts feat(cli): filter usage by billing route and mode (#1486) 2026-09-19 11:32:06 -07:00
hermes.test.ts Find Hermes sessions in Windows local app data (#1617) 2026-10-04 21:01:04 +02:00
ibm-bob.test.ts Add IBM Bob provider with workspace extraction (#316) 2026-05-11 20:54:13 -07:00
kilo-code.test.ts chore: remove Roo Code support (#1551) 2026-09-24 21:34:39 +02:00
kimi.test.ts Add Kimi provider 2026-05-11 19:02:28 +03:00
kimicode.test.ts kimicode: discover desktop-runtime sessions and fix menubar visibility 2026-07-23 21:31:25 +02:00
kiro.test.ts test: isolate the real home on Windows and make the CLI suite pass there 2026-09-02 13:43:57 -07:00
lingtai-tui.test.ts fix(lingtai): harden manifest parsing against wrong-typed fields 2026-07-09 23:48:46 +02:00
mistral-vibe.test.ts fix: fix and improve test isolation and collision with environment (#530) 2026-06-20 13:42:10 +02:00
mux.test.ts feat(providers): add coder/mux as a datasource (#438) 2026-06-06 03:04:24 +02:00
omp.test.ts Count OMP model_usage side calls (find, judge, cache warming) (#1575) 2026-09-28 18:47:35 +02:00
open-design.test.ts test: isolate the real home on Windows and make the CLI suite pass there 2026-09-02 13:43:57 -07:00
openclaude.test.ts feat(openclaude): OpenClaude CLI provider (#213) 2026-08-04 04:05:25 +03:00
openclaw.test.ts fix(openclaw): read the per-agent sqlite transcript store the 2026-09-01 migration writes (#1526) 2026-09-28 19:17:20 +02:00
opencode-file.test.ts feat(cli): filter usage by billing route and mode (#1486) 2026-09-19 11:32:06 -07:00
opencode.test.ts fix(opencode): Vertex sessions no longer show $0 (#1552) 2026-09-25 00:01:02 +02:00
pi.test.ts fix(models): name dot-form Claude minors and future GPT ids consistently (#1531) 2026-09-28 18:48:21 +02:00
probe-roots-899-census.test.ts test(doctor): pin the OpenClaw empty-root probe, drop the review-note comment 2026-09-07 11:38:24 -07:00
quickdesk.test.ts feat(quickdesk): Amazon Quick Desktop provider, parse ~/.quickwork sessions and metrics (#707) 2026-07-18 00:02:01 +03:00
session-message.test.ts fix: four cost accuracy bugs in export and pricing (#1544) 2026-09-24 15:55:23 +02:00
vercel-gateway.test.ts perf: store the session cache in day pieces (#1550) 2026-09-24 20:45:35 +02:00
vscode-cline-parser.test.ts fix(providers): guard two malformed-input crashes in the parse path 2026-08-04 06:28:41 +03:00
warp.test.ts 0.9.25: correctness, energy, menu bar and installer fixes (#1511) 2026-09-21 00:16:21 +02:00
zcode.test.ts fix(zcode): attribute PR-linked spend by reading user prompts from the transcript tables (#1581) 2026-10-02 12:13:37 +02:00
zed.test.ts fix(zed): top threads up to the cumulative counter 2026-07-02 05:53:40 +02:00
zerostack.test.ts Add zerostack provider (#519) 2026-06-19 14:44:45 +02:00