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 db;
9pub mod mcp;
10pub mod render;
11pub mod window;
12pub mod zen;
13
14pub use render::{render_json, render_text, status_line};
15pub use window::{build, Report, Totals, LOOKBACK_SECS};
16pub use zen::catalog;