tmai-core 0.8.2

Core library for tmai - agent detection, state management, and monitoring
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! 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, usage_channel, UsageSnapshotReceiver, UsageSnapshotSender};
pub use types::{UsageMeter, UsageSnapshot};