mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-08-04 05:41:29 +00:00
providerCallToCachedCall drops provider-computed costUSD unless the provider is allowlisted, and cachedCallToApiCall then re-prices from token counts. Kiro's cost now comes from metered credits, which token pricing cannot reproduce — reports were understating real kiro spend ~18x (e.g. $130.72 of metered CLI credits reported as $7.20 of token estimates). Add kiro to the pass-through allowlist, same as the other platform-billed providers (mistral-vibe, devin, hermes, ...). Both persistence layers froze pre-fix dollar values and neither self-invalidates (historical session files never change), so bump: - session cache: CACHE_VERSION 4 -> 5 (cached kiro entries carry costUSD: undefined and would keep being token re-priced forever) - daily cache: DAILY_CACHE_VERSION 10 -> 11 with MIN_SUPPORTED_VERSION raised (finalized days carry token-estimated kiro costs off by up to 16x per model), same as the v10 cursor precedent Test: end-to-end through parseAllSessions — a CLI fixture with 2.5 metered credits must report $0.10; fails with the token re-price ($0.000048) when the allowlist entry is removed. Docs: document the pricing contract in docs/providers/kiro.md — metered credit cost is frozen at parse time, so price-override / model-alias do not affect kiro dollar amounts (shared tradeoff of all allowlisted providers). AI-Origin: ai-generated AI-Tool: kiro |
||
|---|---|---|
| .. | ||
| design | ||
| providers | ||
| sync | ||
| architecture.md | ||