/** * Agentic QE v3 - Code Intelligence Coordinator * Orchestrates the code intelligence workflow across services */ import { Result } from '../../shared/types'; import { EventBus, MemoryBackend, AgentCoordinator } from '../../kernel/interfaces'; import { CodeIntelligenceAPI, IndexRequest, IndexResult, SearchRequest, SearchResults, ImpactRequest, ImpactAnalysis, DependencyRequest, DependencyMap, KGQueryRequest, KGQueryResult } from './interfaces'; /** * Interface for the code intelligence coordinator */ export interface ICodeIntelligenceCoordinator extends CodeIntelligenceAPI { initialize(): Promise; dispose(): Promise; getActiveWorkflows(): WorkflowStatus[]; } /** * Workflow status tracking */ export interface WorkflowStatus { id: string; type: 'index' | 'search' | 'impact' | 'dependency' | 'query'; status: 'pending' | 'running' | 'completed' | 'failed'; startedAt: Date; completedAt?: Date; agentIds: string[]; progress: number; error?: string; } /** * Coordinator configuration */ export interface CoordinatorConfig { maxConcurrentWorkflows: number; defaultTimeout: number; publishEvents: boolean; enableIncrementalIndex: boolean; } /** * Code Intelligence Coordinator * Orchestrates code intelligence workflows and coordinates with agents */ export declare class CodeIntelligenceCoordinator implements ICodeIntelligenceCoordinator { private readonly eventBus; private readonly memory; private readonly agentCoordinator; private readonly config; private readonly knowledgeGraph; private readonly semanticAnalyzer; private readonly impactAnalyzer; private readonly fileReader; private readonly workflows; private initialized; constructor(eventBus: EventBus, memory: MemoryBackend, agentCoordinator: AgentCoordinator, config?: Partial); /** * Initialize the coordinator */ initialize(): Promise; /** * Dispose and cleanup */ dispose(): Promise; /** * Get active workflow statuses */ getActiveWorkflows(): WorkflowStatus[]; /** * Index codebase into Knowledge Graph */ index(request: IndexRequest): Promise>; /** * Semantic code search */ search(request: SearchRequest): Promise>; /** * Analyze change impact */ analyzeImpact(request: ImpactRequest): Promise>; /** * Map dependencies */ mapDependencies(request: DependencyRequest): Promise>; /** * Query Knowledge Graph */ queryKG(request: KGQueryRequest): Promise>; private spawnIndexerAgent; private spawnSearchAgent; private spawnImpactAnalyzerAgent; private publishKnowledgeGraphUpdated; private publishImpactAnalysisCompleted; private publishSemanticSearchCompleted; private startWorkflow; private completeWorkflow; private failWorkflow; private addAgentToWorkflow; private updateWorkflowProgress; private subscribeToEvents; private handleTestRunCompleted; private handleFilesChanged; private indexForSemanticSearch; private loadWorkflowState; private saveWorkflowState; } //# sourceMappingURL=coordinator.d.ts.map