tmai-core 0.8.2

Core library for tmai - agent detection, state management, and monitoring
Documentation
//! Public API layer (Facade) for tmai-core.
//!
//! This module provides [`TmaiCore`] — a high-level entry-point that
//! encapsulates all core services and exposes typed query/action methods.
//! Consumers (TUI, Web, MCP, IDE extensions) should use this API instead
//! of directly operating on `SharedState`.
//!
//! # Quick Start
//!
//! ```ignore
//! use tmai_core::api::{TmaiCore, TmaiCoreBuilder};
//!
//! let core = TmaiCoreBuilder::new(settings).build();
//!
//! // Query agents (lock-free for the caller)
//! let agents = core.list_agents();
//! let count = core.attention_count();
//!
//! // Subscribe to events (Phase 4)
//! let mut rx = core.subscribe();
//! ```

pub mod actions;
mod builder;
mod core;
pub mod events;
mod queries;
pub mod types;

pub use builder::TmaiCoreBuilder;
pub use core::TmaiCore;
pub use events::CoreEvent;
pub use types::{AgentSnapshot, ApiError, TeamSummary, TeamTaskInfo};

// Re-export for web/api.rs usage
pub use actions::has_checkbox_format;