cctally 1.20.4 → 1.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/bin/_lib_pricing.py +6 -0
- package/bin/cctally +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,11 @@ based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
|
5
5
|
|
|
6
6
|
## [Unreleased]
|
|
7
7
|
|
|
8
|
+
## [1.21.0] - 2026-05-28
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- **Claude Opus 4.8 pricing.** `claude-opus-4-8` is now in the embedded `CLAUDE_MODEL_PRICING` table at the standard Opus 4.x rates ($5/MTok input · $6.25/MTok 5-minute cache write · $0.50/MTok cache read · $25/MTok output — identical to Opus 4.5/4.6/4.7), so every cost-computing command (`daily`, `weekly`, `session`, `blocks`, `report`, …) prices Opus 4.8 sessions correctly instead of warning "unknown model, treating cost as $0". The 1M-context variant `claude-opus-4-8[1m]` is added to `CLAUDE_MODEL_CONTEXT_WINDOWS` so `cctally statusline`'s 🧠 context-% segment measures against the real 1,000,000-token window rather than silently falling through to the 200K "opus" family default. Only the bare model id is added (matching how Opus 4.6/4.7 appear in real session JSONL); no dated `claude-opus-4-8-YYYYMMDD` twin is included since Anthropic's published id for this model is the bare alias.
|
|
12
|
+
|
|
8
13
|
## [1.20.4] - 2026-05-28
|
|
9
14
|
|
|
10
15
|
### Changed
|
package/bin/_lib_pricing.py
CHANGED
|
@@ -194,6 +194,12 @@ CLAUDE_MODEL_PRICING: dict[str, dict[str, Any]] = {
|
|
|
194
194
|
"cache_creation_input_token_cost": 6.25e-06,
|
|
195
195
|
"cache_read_input_token_cost": 5e-07,
|
|
196
196
|
},
|
|
197
|
+
"claude-opus-4-8": {
|
|
198
|
+
"input_cost_per_token": 5e-06,
|
|
199
|
+
"output_cost_per_token": 2.5e-05,
|
|
200
|
+
"cache_creation_input_token_cost": 6.25e-06,
|
|
201
|
+
"cache_read_input_token_cost": 5e-07,
|
|
202
|
+
},
|
|
197
203
|
"claude-sonnet-4-20250514": {
|
|
198
204
|
"input_cost_per_token": 3e-06,
|
|
199
205
|
"output_cost_per_token": 1.5e-05,
|
package/bin/cctally
CHANGED
|
@@ -281,6 +281,7 @@ _short_model_name = _lib_pricing._short_model_name
|
|
|
281
281
|
# Unknown model id → segment renders `🧠 N/A` + one-shot stderr warn.
|
|
282
282
|
CLAUDE_MODEL_CONTEXT_WINDOWS = {
|
|
283
283
|
# 1M-token variants (explicit IDs override the family default).
|
|
284
|
+
"claude-opus-4-8[1m]": 1_000_000,
|
|
284
285
|
"claude-opus-4-7[1m]": 1_000_000,
|
|
285
286
|
"claude-sonnet-4-5[1m]": 1_000_000,
|
|
286
287
|
# Default 200K for every other Sonnet/Opus/Haiku family member.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cctally",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.21.0",
|
|
4
4
|
"description": "Claude Code usage tracker and local dashboard for Pro/Max subscription limits - weekly cost-per-percent trend, quota forecasts, threshold alerts. ccusage-compatible.",
|
|
5
5
|
"homepage": "https://github.com/omrikais/cctally",
|
|
6
6
|
"repository": {
|