ai-usagebar 1.17.1

Omarchy/Waybar widgets + TUI for tracking multi-provider AI plan usage
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Custom provider → the shared vendor outcome.
//!
//! There is no Waybar renderer here, unlike the built-in vendors: a custom
//! provider's shape *is* the generic report shape, so the frontends
//! (`report.rs`, the TUI panels) render it from the snapshot directly.

use crate::usage::VendorSnapshot;
use crate::vendor::VendorOutcome;

use super::fetch::FetchOutcome;

impl From<FetchOutcome> for VendorOutcome {
    fn from(o: FetchOutcome) -> Self {
        o.map(VendorSnapshot::Custom)
    }
}