Skip to main content

cmd_usage/ocuse/
mod.rs

1// The ocuse half of the cmduse crate: OpenCode Go/Zen usage from local data.
2//
3// Same shape as cmduse, different source. cmduse asks CommandCode's account API
4// for credits and windows; OpenCode publishes no usage API (its one route,
5// /zen/go/v1/usage, answers EntitlementError for keys without a Go
6// subscription), so everything here is derived from opencode's own store plus
7// the docs catalogue in core/zen.json.
8pub mod cli;
9pub mod db;
10pub mod mcp;
11pub mod render;
12pub mod window;
13pub mod zen;
14
15pub use cli::run;
16pub use render::{render_json, render_text, status_line};
17pub use window::{build, Report, Totals, LOOKBACK_SECS};
18pub use zen::catalog;