Skip to main content

terraphim_agent/
lib.rs

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