terraphim_agent/
lib.rs

1pub mod client;
2pub mod service;
3
4// Robot mode - always available for AI agent integration
5pub mod robot;
6
7// Forgiving CLI - always available for typo-tolerant parsing
8pub mod forgiving;
9
10#[cfg(feature = "repl")]
11pub mod repl;
12
13#[cfg(feature = "repl-custom")]
14pub mod commands;
15
16pub use client::*;
17
18// Re-export robot mode types
19pub use robot::{
20    ExitCode, FieldMode, OutputFormat, RobotConfig, RobotError, RobotFormatter, RobotResponse,
21    SelfDocumentation,
22};
23
24// Re-export forgiving CLI types
25pub use forgiving::{AliasRegistry, ForgivingParser, ParseResult};
26
27#[cfg(feature = "repl")]
28pub use repl::*;
29
30#[cfg(feature = "repl-custom")]
31pub use commands::*;
32
33// Test-specific exports - make modules available in tests with required features
34#[cfg(test)]
35pub mod test_exports {
36    #[cfg(feature = "repl")]
37    pub use crate::repl::*;
38
39    #[cfg(feature = "repl")]
40    pub use std::str::FromStr;
41
42    #[cfg(feature = "repl-custom")]
43    pub use crate::commands::*;
44
45    pub use crate::forgiving::*;
46    pub use crate::robot::*;
47}