clauth 0.5.4

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

pub(crate) use fetch::{
    LABEL_5H, LABEL_7D, PlanInfo, UsageInfo, UsageWindow, epoch_secs_to_iso, http_agent,
    humanize_duration, iso_to_epoch_secs, now_epoch_secs, now_ms, parse_retry_after,
};
// 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, PendingSwitch, PendingSwitchOff, ProfileActivity,
    RefetchQueue, StartupReceiver, StartupSender, StartupSignal, StatusStore, ThirdPartyList,
    ThirdPartyStatusStore, ThirdPartyUsageStore, TokenEntry, TokenList, UsageStore, any_busy,
    clear_activity, collect_third_party_entries, fetch_all_into, is_idle, mark_activity,
    spawn_refresher,
};