Repository navigation
Tags: SDpower/ccusage_go
Tags
feat: 新增 OAuth token 自動 refresh 機制與 usage API headers 修正 - Token 過期時自動 refresh(POST platform.claude.com/v1/oauth/token) - Usage API 收到 401 時自動 refresh + 重試 - 跨平台 credential 儲存:macOS Keychain / Linux & Windows .credentials.json - Token 讀取優先級調整為 env > Keychain > file(配合 v2.x 預設行為) - 補齊 Usage API 缺少的 Content-Type 和 User-Agent headers - 新增 6 個測試覆蓋 refresh、過期檢查、寫回等功能
feat: 新增 session 查詢功能與報表費用明細拆分 - session 命令新增 --session-id / --session-name 查詢(精確匹配) - 解析 JSONL custom-title / agent-name 取得 session name - 過濾模式顯示 per-source-file 明細(Session 大區塊 + Source File 逐行) - Daily/Monthly 報表新增 Sessions 數量欄 - 所有報表新增 CC Cost / CR Cost / API Cost 獨立欄位 - Blocks 報表從單一 Tokens+Cost 拆分為完整 token 和費用明細 - Last Activity 顯示日期+時間(localtime) - 舊版資料無 cache 時欄位顯示 - - 新增 24 個測試(TDD)
feat: Add support for Haiku 4.5 and update Sonnet 4.5 pricing - Add support for claude-haiku-4-5-20251001 (Haiku 4.5) - Update pricing for claude-sonnet-4-5-20250929 (Sonnet 4.5) - Standardize model display names to use hyphens - Update version to v0.10.1
Release v0.10.0 Features: - Support for new Claude model ID formats (Opus-4.1, Sonnet-4.5) - Unified model label display with proper capitalization - Fixed blocks --live model display issue Improvements: - Extracted ShortenModelName as public function for consistent formatting - Added comprehensive unit tests for model formatting - Updated documentation for new model format support Supported Model Formats: - claude-opus-4-1-20250805 → Opus-4.1 - claude-sonnet-4-5-20250929 → Sonnet-4.5 - claude-opus-4-20250514 → Opus-4 - claude-sonnet-4-20250514 → Sonnet-4