agent_tui/lib.rs
1//! agent-tui - Library for AI agents to interact with TUI applications
2//!
3//! This library provides the core functionality for managing PTY sessions,
4//! detecting UI elements, and interacting with terminal applications.
5//!
6//! # Modules
7//!
8//! - [`session`] - Session management and lifecycle
9//! - [`detection`] - UI element detection (buttons, inputs, checkboxes, etc.)
10//! - [`terminal`] - Virtual terminal emulation
11//! - [`pty`] - PTY (pseudo-terminal) handling
12//! - [`wait`] - Wait conditions for synchronization
13
14pub mod detection;
15pub mod pty;
16pub mod session;
17pub mod sync_utils;
18pub mod terminal;
19pub mod wait;
20
21// Re-export commonly used types at crate root
22pub use detection::{Element, ElementDetector, Framework};
23pub use pty::{PtyError, PtyHandle};
24pub use session::{Session, SessionError, SessionId, SessionInfo, SessionManager};
25pub use terminal::{CursorPosition, ScreenBuffer, VirtualTerminal};
26pub use wait::WaitCondition;