mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-08-04 13:51:50 +00:00
Moves every record-parsing arm into @codeburn/core/providers/antigravity: the protobuf wire reader, the gen_metadata row decode, the RPC generatorMetadata decode, the statusline JSONL run-collapse/delta decode, and model canonicalization. All five emit arms (statusline, cache-hit, sqlite, RPC, RPC-failure fallback) plus the snapshot write-path keep their host-side control flow byte-for-byte. Cache integrity: CACHE_VERSION stays 5 and antigravity-results.json keeps its shape. The cache is not re-derivable — the RPC-failure fallback arm replays cached.calls for cascades whose language server is gone — so no bump, and the cache-write-before-seenKeys-filter ordering is preserved in both the sqlite and RPC arms. Pricing stays host-side: normalizePricingModel / PRICING_ALIASES remain in the CLI, and every arm now emits through one shared toProviderCall carrying costBasis 'estimated' plus pricingModel, and no costUSD. parseStatusLinePayload's wall clock becomes an injected `at` parameter; the host passes new Date().toISOString() at each call site, once per payload. Validator fixes on top of the migration: - content-smuggling: the hostile statusline record used the hook-payload shape, so the decoder dropped it and the cwd/session_id assertions proved nothing; corrected to the recorded-event shape, with a call-count guard. - goldens: G14 maps through the exported host toProviderCall instead of a private copy, and a new G15 pins the emit loop's turnIndex-before-seenKeys and previousSnapshotUsage-before-skip ordering, which no golden could previously detect. - core: removed an unused type import and a dead CANONICAL_TOOL_NAME const; restored the statusline reasoningTokens rationale comment. |
||
|---|---|---|
| .. | ||
| cli | ||
| core | ||