gate4agent 0.2.34

Universal transport library for CLI AI agents (Claude Code, Codex, Gemini, OpenCode). Pipe, PTY, ACP (Agent Client Protocol), and Daemon transports.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Transport layer — thin dispatch router for spawning CLI agent processes.
//!
//! Two transport modes exist:
//! - **Pipe**: NDJSON-streaming subprocesses (Claude, Codex, Gemini, OpenCode)
//!   Entry point: `PipeSession::spawn` or `TransportSession::spawn` (routes to PipeSession)
//! - **PTY**: pseudo-terminal screen-scraping — use `pty::PtySession` directly
//!
//! `TransportSession` is a thin wrapper over `PipeSession` providing the same API.

mod options;
pub mod session;

pub use options::SpawnOptions;
pub use session::TransportSession;