claudecode/crates
Yeachan-Heo bf2358fe67 Make Rust cost reporting aware of the active model
This replaces the single default pricing assumption with a small model-aware pricing table for Sonnet, Opus, and Haiku so CLI usage output better matches the selected model. Unknown models still fall back cleanly with explicit labeling.

The change keeps pricing lightweight and local while improving the usefulness of usage/cost reporting for resumed sessions and live turns.

Constraint: Keep pricing local and dependency-free

Constraint: Preserve graceful fallback behavior for unknown model IDs

Rejected: Add a remote pricing source now | unnecessary coupling and risk for this slice

Confidence: high

Scope-risk: narrow

Reversibility: clean

Directive: If pricing tables expand later, prefer explicit model-family matching and keep fallback labeling visible

Tested: cargo fmt; cargo clippy --all-targets --all-features -- -D warnings; cargo test -q

Not-tested: Validation against live provider billing exports
2026-03-31 19:42:31 +00:00
..
api Make Rust sessions easier to find and resume 2026-03-31 19:22:56 +00:00
commands feat: merge 2nd round from all rcc/* sessions 2026-03-31 17:43:25 +00:00
compat-harness Improve CLI visibility into runtime usage and compaction 2026-03-31 19:18:56 +00:00
runtime Make Rust cost reporting aware of the active model 2026-03-31 19:42:31 +00:00
rusty-claude-cli Make Rust cost reporting aware of the active model 2026-03-31 19:42:31 +00:00
tools Improve CLI visibility into runtime usage and compaction 2026-03-31 19:18:56 +00:00