Paul Holstein
5ca3fc9008
fix(review): address CodeRabbit and Gemini review comments
...
- Design doc: update "No UI changes" to reflect cost disclaimer
- Plan doc: fix MD001 heading level jump (### after #)
- pricing.ts: rename to PRICING_MAP, add isLiteLLMPricing type guard,
pre-compute LOWERCASE_KEY_MAP for O(1) case-insensitive lookups
- SessionContextHeader: simplify cost disclaimer JSX into single span
- Tests: fix no-empty-function lint (() => {} → () => undefined)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-23 12:49:05 -05:00
Paul Holstein
c507a4f9d5
fix: warn on unknown model pricing lookups
...
Add console.warn when calculateMessageCost encounters an unknown model,
so pricing.json gaps are visible rather than silently returning $0.
Update tests to expect the warning.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-23 12:34:18 -05:00
Paul Holstein
3e6d02f317
refactor: wire jsonl.ts to shared pricing module
...
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-23 12:00:15 -05:00
KaustubhPatange
723760938e
feat: add session cost in session header
2026-02-22 15:44:04 +05:30
KaustubhPatange
2bb95db596
feat: add tests for cost calculation
2026-02-22 14:49:30 +05:30