Skip to main content

ai_usagebar/
lib.rs

1//! ai-usagebar library — shared core for the Waybar widget and TUI binaries.
2//!
3//! The crate is organized by concern, not by binary:
4//! - low-level primitives (`cache`, `countdown`, `pacing`, `pango`, `theme`)
5//! - the vendor abstraction (`vendor`, `vendors::*`, `usage`)
6//! - bin-specific composition (`widget`, `tui`) which lives next to its binary
7//!
8//! The two binaries (`ai-usagebar` and `ai-usagebar-tui`) are thin: they parse
9//! CLI args, instantiate vendors, and hand off to a renderer in this crate.
10
11pub mod account;
12pub mod active;
13pub mod anthropic;
14pub mod anthropic_api;
15pub mod antigravity;
16pub mod cache;
17pub mod claude_desktop;
18pub mod config;
19pub mod context;
20pub mod countdown;
21pub mod cursor;
22pub mod deepseek;
23pub mod display;
24pub mod error;
25pub mod format;
26pub mod grok;
27pub mod kilo;
28pub mod kimi;
29pub mod kiro;
30pub mod minimax;
31pub mod moonshot;
32pub mod novita;
33pub mod openai;
34pub mod openrouter;
35pub mod pacing;
36pub mod pango;
37pub mod report;
38pub mod safe_storage;
39pub mod supergrok;
40pub mod theme;
41pub mod tooltip;
42pub mod tui;
43pub mod usage;
44pub mod vendor;
45pub mod waybar;
46pub mod widget;
47pub mod zai;
48
49pub use error::{AppError, Result};