diff --git a/docs/plugins/api.md b/docs/plugins/api.md index 81964f71..39d40bd5 100644 --- a/docs/plugins/api.md +++ b/docs/plugins/api.md @@ -490,7 +490,7 @@ Returns a status envelope: ### Behavior -- **Runtime runners**: Executes pinned `ccusage@18.0.8` (Claude) or `@ccusage/codex@18.0.8` (Codex) via fallback chain `bunx -> pnpm dlx -> yarn dlx -> npm exec -> npx` +- **Runtime runners**: Executes pinned `ccusage@18.0.10` (Claude) or `@ccusage/codex@18.0.10` (Codex) via fallback chain `bunx -> pnpm dlx -> yarn dlx -> npm exec -> npx` - **Provider-aware**: Resolves provider from `opts.provider` or plugin id (`claude`/`codex`) - **No provider API calls**: Usage is computed from local JSONL session files; the host does not call Claude/Codex (or other provider) APIs, but package runners may contact a package registry to download the `ccusage` CLI if it is not already available locally - **Graceful degradation**: returns `no_runner` when no runner exists, `runner_failed` when execution fails diff --git a/src-tauri/src/plugin_engine/host_api.rs b/src-tauri/src/plugin_engine/host_api.rs index fde4c165..b86ca140 100644 --- a/src-tauri/src/plugin_engine/host_api.rs +++ b/src-tauri/src/plugin_engine/host_api.rs @@ -1166,7 +1166,7 @@ fn ls_parse_listening_ports(output: &str) -> Vec { ports.into_iter().collect() } -const CCUSAGE_VERSION: &str = "18.0.8"; +const CCUSAGE_VERSION: &str = "18.0.10"; const CCUSAGE_CLAUDE_PACKAGE_NAME: &str = "ccusage"; const CCUSAGE_CODEX_PACKAGE_NAME: &str = "@ccusage/codex"; const CCUSAGE_TIMEOUT_SECS: u64 = 15;