pub mod layer_trait;
pub mod orchestrator;
pub mod processor;
pub mod types;
pub use layer_trait::{InputMode, Layer, LayerConfig, LayerMcpConfig, LayerResult, OutputMode};
pub use orchestrator::LayeredOrchestrator;
pub use processor::LayerProcessor;
pub use types::GenericLayer;
pub async fn process_with_layers(
input: &str,
session: &mut crate::session::Session,
config: &crate::config::Config,
role: &str,
operation_cancelled: tokio::sync::watch::Receiver<bool>,
) -> anyhow::Result<String> {
let orchestrator = LayeredOrchestrator::from_config(config, role);
orchestrator
.process(input, session, config, role, operation_cancelled)
.await
}