Skip to content

Commit e4c45a8

Browse files
fix(config): accept per-source weekly sections in the config schema
A unified `ccusage weekly` calls ConfigContext::for_source for every built-in agent, so the runtime reads `<agent>.commands.weekly`, `commands."<agent> weekly"` and `commands."<agent>:weekly"` for each source. The schema took its agent report keys from the focused-command structs, which list `weekly` only for claude and opencode, so it rejected those sections for the other sixteen agents. The aliases added in the previous commit inherited the same gap. Give every agent commands struct a `weekly` section typed like its `monthly` one. Source-level `startOfWeek` is ignored at runtime, as opencode's existing weekly section already reflects. The aliases now derive the full set of keys the runtime reads, and the schema test checks every built-in agent and unified report in both forms. Co-authored-by: viniciusdsandrade <[email protected]>
1 parent 3e3b4fc commit e4c45a8

2 files changed

Lines changed: 3483 additions & 668 deletions

File tree

0 commit comments

Comments
 (0)