codeburn/src/providers
Resham Joshi 354492e500
Some checks are pending
CI / semgrep (push) Waiting to run
Tests / test (22) (push) Waiting to run
Tests / test (22.13.0) (push) Waiting to run
Tests / test (24) (push) Waiting to run
Tests / test (26) (push) Waiting to run
Tests / test-platforms (macos-latest) (push) Waiting to run
Tests / test-platforms (windows-latest) (push) Waiting to run
Tests / desktop (push) Waiting to run
Tests / vscode (push) Waiting to run
Copilot: count every agent round and bill exact credits in VS Code chat sessions (#1752)
* Copilot: count every agent round and exact credits in VS Code chat sessions

Copilot Chat 0.69 keeps only the last model call of an agent request in result.metadata. Read the request's modelTotals (input, cache reads, output over every call) first, then root completionTokens, then metadata. Carry copilotCredits as nanoAiu so plan credits are exact. Bump the copilot parse tag so cached chat sessions re-parse.

modelKeyMatches no longer lets claude-sonnet-4 capture claude-sonnet-4-6.

* Copilot: bill chat-session credits exactly and skip agent-host twins

A chat-session request that records copilotCredits now costs credits x $0.01 through costFromBilling; requests without it stay priced from tokens. A chat session whose id matches a session-state dir is left to the agent-host path so it is counted once.

* Copilot: drop agent-host twins at serve time, rate chat requests one by one, re-derive past days

A chat-session journal request is left out when the same session has billed agent-host usage (session-state calls with tokens or nanoAiu, or session-store rows). Plan credits rate chat-session requests individually, so older requests in a mixed session keep their estimate. DAILY_CACHE_VERSION 75 with copilot pending re-derive so settled days pick up the new counts.
2026-10-13 01:02:04 +02:00
..
amp.ts fix(amp): Windows guard reads the AMP_DATA_DIR list and watches threads/ (#1604) 2026-10-02 15:59:08 +02:00
antigravity.ts fix(antigravity): fall back to the chat model and map Gemini 3.8 Flash placeholders (#1712) 2026-10-10 11:34:13 +02:00
claude.ts fix(claude): discover macOS Claude-3p Cowork sessions (#1579) 2026-10-07 20:30:50 +02:00
cline-cli.ts fix(cline-cli): stop billing cache tokens twice (#1675) 2026-10-07 23:51:10 +02:00
cline.ts chore: remove Roo Code support (#1551) 2026-09-24 21:34:39 +02:00
codebuff.ts feat(doctor): probeRoots for five fixed-location providers (#899 Tier 2, batch 2) 2026-08-23 18:52:13 +05:30
codewhale.ts feat(doctor): probeRoots for 12 more providers (#899 Tier 1) 2026-08-04 03:28:59 +03:00
codex.ts fix(codex): mask fork replay records against the parent rollout (#1678) 2026-10-08 00:27:52 +02:00
command-code.ts feat(providers): add Command Code (#1658) 2026-10-07 00:18:50 +02:00
copilot.ts Copilot: count every agent round and bill exact credits in VS Code chat sessions (#1752) 2026-10-13 01:02:04 +02:00
crush.ts fix(crush): keep the recorded session cost through the session cache (#1618) 2026-10-04 20:31:42 +02:00
cursor-agent.ts fix(cursor-agent): leave Cursor IDE chat transcripts to the cursor provider (#1717) 2026-10-10 07:05:35 +02:00
cursor.ts fix(cursor-agent): leave Cursor IDE chat transcripts to the cursor provider (#1717) 2026-10-10 07:05:35 +02:00
devin.ts perf(devin): read only the metadata fields the parser uses (#1726) 2026-10-10 07:06:19 +02:00
droid.ts feat(doctor): probeRoots for 12 more providers (#899 Tier 1) 2026-08-04 03:28:59 +03:00
dsh.ts Read DSH session format v4 written by dsh 0.2.0-rc.2 (#1612) 2026-10-05 11:54:55 +02:00
forge.ts fix(doctor): add probeRoots for seven filesystem-silent providers (#899) 2026-09-07 22:02:07 +05:30
gemini.ts feat(doctor): probeRoots for five fixed-location providers (#899 Tier 2, batch 2) 2026-08-23 18:52:13 +05:30
goose.ts fix(sync): trust only proven outbound project metadata 2026-08-24 16:05:35 +05:30
grok.ts fix(grok): read per-request usage from logs/unified.jsonl (#1677) 2026-10-08 00:14:53 +02:00
grokbot.ts feat(cursor): import Cursor's usage CSV to replace local estimates (#1558) 2026-09-25 05:27:57 +02:00
hermes.ts Find Hermes sessions in Windows local app data (#1617) 2026-10-04 21:01:04 +02:00
ibm-bob.ts feat(doctor): probeRoots for 12 more providers (#899 Tier 1) 2026-08-04 03:28:59 +03:00
index.ts feat: telemetry for CLI error causes, provider read failures and update results (#1702) 2026-10-09 12:47:49 +02:00
kilo-code.ts feat(doctor): probeRoots for six fixed-location providers (#899 Tier 2, batch 1) (#938) 2026-08-09 03:38:35 +03:00
kimi.ts fix(models): price kimi-for-coding by the model it served on the call date (#1676) 2026-10-08 00:02:38 +02:00
kimicode.ts fix(optimize): stop flagging delivered and editing sessions as low-worth (#1719) 2026-10-10 07:05:47 +02:00
kiro.ts fix(kiro): shorten the workingDirectory note 2026-09-10 12:14:14 -07:00
lingtai-tui.ts feat(doctor): probeRoots for 12 more providers (#899 Tier 1) 2026-08-04 03:28:59 +03:00
mistral-vibe-unified.ts Restore usage from Mistral Vibe Unified Harness sessions (#1599) 2026-10-06 21:15:06 +02:00
mistral-vibe.ts feat(mistral-vibe): scan WSL homes for sessions (#1681) 2026-10-07 23:34:15 +02:00
mux.ts fix(doctor): add probeRoots for seven filesystem-silent providers (#899) 2026-09-07 22:02:07 +05:30
open-design.ts fix(doctor): add probeRoots for seven filesystem-silent providers (#899) 2026-09-07 22:02:07 +05:30
openclaude.ts feat(openclaude): OpenClaude CLI provider (#213) 2026-08-04 04:05:25 +03:00
openclaw.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-parser.ts feat(opencode): read file-based JSON sessions (OpenCode 1.1+) (#523) 2026-06-19 19:04:51 +02:00
opencode.ts feat(doctor): per-provider detection diagnostics (#685) 2026-07-16 10:38:08 -07:00
pi.ts fix(models): name dot-form Claude minors and future GPT ids consistently (#1531) 2026-09-28 18:48:21 +02:00
quickdesk.ts feat(quickdesk): Amazon Quick Desktop provider, parse ~/.quickwork sessions and metrics (#707) 2026-07-18 00:02:01 +03:00
qwen.ts 0.9.25: correctness, energy, menu bar and installer fixes (#1511) 2026-09-21 00:16:21 +02:00
session-message.ts fix(opencode): Vertex sessions no longer show $0 (#1552) 2026-09-25 00:01:02 +02:00
sqlite-session-parser.ts fix(opencode): Vertex sessions no longer show $0 (#1552) 2026-09-25 00:01:02 +02:00
types.ts fix(claude): discover macOS Claude-3p Cowork sessions (#1579) 2026-10-07 20:30:50 +02:00
vercel-gateway.ts chore: remove Roo Code support (#1551) 2026-09-24 21:34:39 +02:00
vscode-cline-parser.ts Merge pull request #908 from ozymandiashh/fix/swarm-robustness 2026-08-10 02:40:33 -07:00
warp.ts 0.9.25: correctness, energy, menu bar and installer fixes (#1511) 2026-09-21 00:16:21 +02:00
zcode.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.ts fix(doctor): add probeRoots for seven filesystem-silent providers (#899) 2026-09-07 22:02:07 +05:30
zerostack.ts fix(doctor): add probeRoots for seven filesystem-silent providers (#899) 2026-09-07 22:02:07 +05:30