Repository navigation
Commit 41c0c6f
authored
refactor(adapter): split remaining adapter modules (ccusage#1137)
* refactor(adapter): split all report module
Move the all-agent loader, reporting, types, and tests into separate files so the root adapter module stays focused on the public entry points.
Keep the existing row construction and reporting behavior intact, while consolidating the priced summary agent loading helper used by similar adapters to reduce duplicated wrapper code.
* refactor(codex): split loader responsibilities
Move Codex aggregation, parsing, path discovery, report rendering, speed detection, and serde types into focused modules.
The public adapter entry points and JSON/table report construction stay the same, which keeps output compatibility while making future parser changes easier to review.
* refactor(claude): split daily and path loading
Move Claude daily summary loading and Claude path discovery into dedicated modules while keeping the primary entry loader in mod.rs.
This reduces the size of the adapter module without changing deduplication, date filtering, or project/session path extraction behavior.
* fix(codex): tighten service tier detection
Reuse the shared Codex home path discovery from the paths module so speed resolution does not carry a second CODEX_HOME parser.
Parse config.toml service_tier entries by exact key and exact fast-tier values. This prevents unrelated keys such as service_tier_override or substring values such as breakfast from selecting fast Codex pricing.1 parent 9b5c307 commit 41c0c6f
17 files changed
Lines changed: 4220 additions & 4079 deletions
This file was deleted.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
0 commit comments