terraphim_agent 1.20.3

Terraphim AI Agent CLI - Command-line interface with interactive REPL and ASCII graph visualization
Documentation
//! Terraphim agent library — TUI, robot mode, and multi-agent coordination.
//!
//! Bundles the interactive REPL, robot-mode JSON output, forgiving CLI parser,
//! MCP tool index, onboarding workflows, and optional shared-learning store.
//! Feature flags gate heavier subsystems: `server`, `repl`, `shared-learning`.
#[cfg(feature = "server")]
pub mod client;
pub mod onboarding;
pub mod service;
#[cfg(feature = "shared-learning")]
pub mod shared_learning;
pub mod tui_backend;

// Robot mode - always available for AI agent integration
pub mod robot;

// Forgiving CLI - always available for typo-tolerant parsing
pub mod forgiving;

// MCP Tool Index - for discovering and searching MCP tools
pub mod mcp_tool_index;

#[cfg(feature = "repl")]
pub mod repl;

#[cfg(feature = "repl-custom")]
pub mod commands;

#[cfg(feature = "server")]
pub use client::*;

// Re-export robot mode types
pub use robot::{
    BudgetEngine, BudgetError, BudgetedResults, ExitCode, FieldMode, OutputFormat, RobotConfig,
    RobotError, RobotFormatter, RobotResponse, SelfDocumentation,
};

// Re-export forgiving CLI types
pub use forgiving::{AliasRegistry, ForgivingParser, ParseResult};

#[cfg(feature = "repl")]
pub use repl::*;

#[cfg(feature = "repl-custom")]
pub use commands::*;

// Test-specific exports - make modules available in tests with required features
#[cfg(test)]
pub mod test_exports {
    #[cfg(feature = "repl")]
    pub use crate::repl::*;

    #[cfg(feature = "repl")]
    pub use std::str::FromStr;

    #[cfg(feature = "repl-custom")]
    pub use crate::commands::*;

    pub use crate::forgiving::*;
    pub use crate::robot::*;
}