clauth 0.5.2

Simple Claude Code account switcher and usage monitor
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
mod fetch;
mod scheduler;

pub(crate) use fetch::{
    PlanInfo, UsageInfo, UsageWindow, humanize_duration, iso_to_epoch_secs, now_epoch_secs, now_ms,
};
// Named directly only in `#[cfg(test)]` showcase; the field access path is enough in prod.
#[cfg(test)]
pub(crate) use fetch::ExtraUsage;
pub(crate) use scheduler::{
    ActivityKind, ActivityStore, FetchStatus, LastFetchedAt, NextRefreshPerProfile, OpResult,
    OpResultReceiver, OpResultSender, PendingAutoStart, PendingSwitch, PendingSwitchOff,
    ProfileActivity, RefetchQueue, StartupReceiver, StartupSender, StartupSignal, StatusStore,
    TokenEntry, TokenList, UsageStore, any_busy, clear_activity, fetch_all_into, is_idle,
    mark_activity, mark_window_open, spawn_refresher,
};