mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-08-22 06:54:26 +00:00
Upstream `main` ships a provider this branch has no counterpart for: the Cline CLI (npm `cline`, 3.x), whose sessions live in a layout unrelated to the VS Code extension tree `cline.ts` reads. Files added on one side only produce no merge conflict, so a `main` merge would happily create `src/providers/ cline-cli.ts` — a path npm workspaces does not build and no registry imports. Green build, and a whole provider quietly does not exist. Ported from #940 (@ozymandiashh), which carried it faithfully: identical dedup keys, all 34 upstream test cases, and the clean phase-8 split — discovery and file I/O host-side, pure record decode in @codeburn/core, registered next to its neighbours and deliberately separate from the shared vscode-cline tier. Two changes on top of that port: - `observations.ts` follows the post-#1074 conventions: the model is routed through `normalizeModelIdentifier` at the observation boundary like every other provider, and measured cost is carried the way the sibling decoders carry it rather than through a cast. - the estimated-cost path reports zero web-search requests. Upstream prices that path with a hardcoded 0; letting the decoded `fetch_web_content` count reach the pricing pass would bill $0.01 per fetch on top of tokens, a billing change nobody asked for. A metered call keeps the real count — its dollar figure comes from the CLI, so nothing prices off it. DAILY_CACHE_VERSION takes 27 (MIN_SUPPORTED 27): every historical Cline CLI session contributes usage no older rollup ever contained, and usage-aggregator serves every day before today from that cache for ten years, so without the bump an upgrading user would keep cline-cli-less history forever while today's numbers silently included it. |
||
|---|---|---|
| .. | ||
| core | ||
| design | ||
| providers | ||
| sync | ||
| architecture.md | ||