pmat 3.11.0

PMAT - Zero-config AI context generation and code quality toolkit (CLI, MCP, HTTP)
// Deep context orchestrator factory - creation and configuration helpers

/// Factory for creating deep context orchestrator
pub struct DeepContextOrchestratorFactory;

impl DeepContextOrchestratorFactory {
    /// Create orchestrator with default configuration
    pub async fn create() -> Result<DeepContextOrchestrator> {
        let ast_engine = Arc::new(UnifiedAstEngine::new());
        let intelligence = Arc::new(CodeIntelligence::new());

        // Create cache manager with default configuration
        let cache_manager = Arc::new(UnifiedCacheManager::default());

        Ok(DeepContextOrchestrator::new(ast_engine, intelligence, cache_manager))
    }

    /// Create minimal orchestrator for testing
    pub fn create_minimal() -> Result<DeepContextOrchestrator> {
        let ast_engine = Arc::new(UnifiedAstEngine::new());
        let intelligence = Arc::new(CodeIntelligence::new());

        // Create minimal cache manager with default config
        let cache_config = UnifiedCacheConfig::default();
        let cache_manager = Arc::new(UnifiedCacheManager::new(cache_config)?);

        Ok(DeepContextOrchestrator::new(ast_engine, intelligence, cache_manager))
    }
}