cmd_usage/arkuse/mod.rs
1// The arkuse half of the cmduse crate: Volcengine ARK Agent Plan usage.
2//
3// Same CLI shape as cmduse and ocuse, different source and a different unit.
4// The plan is billed in AFP (1 AFP = ¥0.002 at every tier), not dollars, and the
5// authoritative figures come from the control plane through `arkcli` — the
6// console's own 5-hour / weekly / monthly meters, the only view that can see
7// another machine or another harness on the same subscription.
8//
9// opencode's store is the second source, not a substitute: filtered to
10// `provider = "agent-plan"` it carries per-model attribution and a
11// reconciliation against the documented coefficients, but it cannot know the
12// server's window anchors, and it holds no AFP at all — the catalogue turns
13// tokens into AFP.
14pub mod api;
15pub mod ark;
16pub mod cli;
17pub mod db;
18pub mod mcp;
19pub mod render;
20pub mod window;
21
22pub use cli::run;
23pub use render::{render_json, render_text, statusline_template};
24pub use window::{build, Report, Totals, LOOKBACK_SECS};