Something went wrong. Try again.
npx ccusage
Something went wrong. Try again.
README.md
ccusage-adapter-common #
The file-reading and table-rendering behavior the adapters share, kept out of
ccusage-core so that changing it does not touch the report, pricing, or config
layers.
Owns #
- file discovery by extension, including the JSONL helper most adapters use.
chunk_file_indexes_by_size— size-balanced work splitting, so one large file does not leave workers idle.read_files_parallel— ordered parallel reads: results come back in file order, so output does not depend on worker scheduling, and--single-threadcollapses to a plain sequential read.filter_loaded_entries_by_date— the shared--since/--untilfilter.jsonl— the streaming JSONL parsing helpers.report::print_table_for_agent— the usage table for adapters whose rows are plainUsageSummaryvalues, parameterized by agent name.
Public surface #
report::print_table_for_agentcollect_usage_filescollect_files_with_extensionfilter_loaded_entries_by_datechunk_file_indexes_by_sizeread_files_parallel
Depends on #
ccusage-coreserdeserde_json
Build layer #
Built in the foundation Crane artifact layer, so a change here recompiles every adapter.