tmai-core 1.5.0

Core library for tmai - agent detection, state management, and monitoring
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Usage monitoring — fetch and parse Claude Code `/usage` output.
//!
//! This module spawns a temporary Claude Code instance in a hidden tmux pane,
//! sends `/usage`, captures the output, and parses it into structured data.

pub mod fetcher;
pub mod parser;
pub mod types;

pub use fetcher::{
    fetch_usage, fetch_usage_auto, fetch_usage_pty, usage_channel, UsageSnapshotReceiver,
    UsageSnapshotSender,
};
pub use types::{UsageMeter, UsageSnapshot};