test: Added integration tests for the sub-agent spawning system and inter-agent communication mechanisms

This commit is contained in:
2026-05-01 12:53:26 -06:00
parent 2469b713c7
commit 406642723e
6 changed files with 640 additions and 79 deletions
+14
View File
@@ -39,6 +39,20 @@ pub struct AppState {
}
impl AppState {
#[cfg(test)]
pub fn test_default() -> Self {
Self {
config: Arc::new(AppConfig::default()),
vault: Arc::new(Vault::default()),
mcp_factory: Arc::new(McpFactory::default()),
rag_cache: Arc::new(RagCache::default()),
mcp_config: None,
mcp_log_path: None,
mcp_registry: None,
functions: Functions::default(),
}
}
pub async fn init(
config: Arc<AppConfig>,
log_path: Option<PathBuf>,