mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-08-01 20:35:09 +00:00
Move the pure record decode for grok, kimi, and codewhale into @codeburn/core and rewire the CLI providers through createBridgedProvider, keeping discovery, file I/O, config resolution, and pricing host-side. Validation fixes (legacy-parity, caught arm-by-arm against the pre-lift decode): - grok/codewhale: the host toProviderCall wrongly wrapped bashCommands in a Set. The legacy decode deduped nothing (flat push of extracted base commands), so per-command breakdown counts drifted. Drop the Set. - kimi: the core decode dropped the legacy per-turn tool Set, so repeated tools in a turn no longer collapsed. Restore [...new Set(tools)]. - codewhale: remove an unused codeWhaleToolNameMap import. Parity fixtures now exercise the dedup arms (repeated tools/commands) and the goldens are pinned to the ORIGINAL in-CLI decode output, captured by running the pre-migration providers over the same fixtures. |
||
|---|---|---|
| .. | ||
| schemas | ||
| scripts | ||
| src | ||
| tests | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
| tsup.config.ts | ||
| vitest.config.ts | ||
@codeburn/core
Shared, provider-agnostic core for CodeBurn: session parsing, model/pricing resolution, and the cost math that the CLI and the desktop apps all depend on.
Status: skeleton. This package currently exports nothing. It is introduced in
Phase 1 of the core extraction (packaging only) and is populated incrementally in
later phases as logic is lifted out of packages/cli.