You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(ccusage): support comma-separated agent paths (#1011)
* feat(ccusage): support comma-separated agent paths
Add shared path-list parsing so Codex, OpenCode, Amp, and pi-agent can read usage data from comma-separated directory lists. This aligns the newer agent adapters with Claude path handling while preserving the existing single-directory defaults.
Codex now aggregates all CODEX_HOME session roots and checks each home for fast pricing config. OpenCode and Amp discover files across all valid data roots, and pi-agent accepts comma-separated --pi-path and PI_AGENT_DIR values.
Regenerate the config schema so piPath autocomplete documents comma-separated session directories.
* fix(ccusage): deduplicate opencode db messages
Filter OpenCode DB records by message id before appending them to the aggregated result. This prevents repeated database rows from multiple OPENCODE_DATA_DIR roots from being counted twice.
Add a SQLite-backed regression test that creates two OpenCode roots with the same message id and confirms only one usage entry is returned.
* docs(ccusage): document comma-separated source paths
Document comma-separated data directory support for Codex, OpenCode, Amp, and pi-agent after the source-focused documentation restructure from main.
The docs now show environment variable examples for multiple roots, note Codex speed auto detection across CODEX_HOME roots, and describe piPath support in the JSON config schema.
* docs(ccusage): remove duplicate pi path example
Remove a duplicated comma-separated pi-agent path example from the package README after adding the docs coverage.
0 commit comments