@aaswe/codebase-ai
Version:
AI-Assisted Software Engineering (AASWE) - Rich codebase context for IDE LLMs
101 lines • 3.15 kB
TypeScript
/**
* MCP Analysis Integration Service
*
* Integrates the automatic analysis system with the MCP server to provide
* seamless TTL context loading and real-time updates.
*/
import { EventEmitter } from 'events';
import { AutomaticAnalysisService } from '../automatic-analysis/AutomaticAnalysisService';
import { KnowledgeGraphPopulator } from '../project-analysis/KnowledgeGraphPopulator';
import { EnhancedRDFGenerator } from '../layer1/rdf-generator/EnhancedRDFGenerator';
import { ConcreteInformationExtractor } from '../layer1/rdf-generator/ConcreteInformationExtractor';
import { Layer3AIService } from '../layer3/index';
import { HybridStorageManager } from '../layer2/hybrid-storage/HybridStorageManager';
import { MCPAnalysisIntegrationConfig, IntegrationMetrics } from './types';
/**
* MCP Analysis Integration Service
*
* Coordinates between automatic analysis and MCP server for seamless
* TTL context loading and real-time updates.
*/
export declare class MCPAnalysisIntegration extends EventEmitter {
private config;
private enhancedMCPServer;
private automaticAnalysisService;
private knowledgeGraphPopulator;
private _rdfGenerator;
private _informationExtractor;
private metrics;
private isRunning;
private syncInterval?;
constructor(config: MCPAnalysisIntegrationConfig, layer3Service: Layer3AIService, hybridStorage: HybridStorageManager, automaticAnalysisService: AutomaticAnalysisService, knowledgeGraphPopulator: KnowledgeGraphPopulator, rdfGenerator: EnhancedRDFGenerator, informationExtractor: ConcreteInformationExtractor);
/**
* Initialize metrics
*/
private initializeMetrics;
/**
* Setup event handlers for integration
*/
private setupEventHandlers;
/**
* Start the integration service
*/
start(): Promise<void>;
/**
* Stop the integration service
*/
stop(): Promise<void>;
/**
* Trigger manual sync between analysis and MCP server
*/
triggerSync(): Promise<void>;
/**
* Get integration status
*/
getStatus(): {
isRunning: boolean;
services: Record<string, any>;
metrics: IntegrationMetrics;
lastSync: Date;
};
/**
* Get integration metrics
*/
getMetrics(): IntegrationMetrics;
/**
* Perform health check
*/
healthCheck(): Promise<{
status: 'healthy' | 'degraded' | 'unhealthy';
details: Record<string, any>;
}>;
/**
* Handle analysis completed event
*/
private handleAnalysisCompleted;
/**
* Handle TTL generated event
*/
private handleTTLGenerated;
/**
* Handle knowledge graph update event
*/
private handleKnowledgeGraphUpdate;
/**
* Handle MCP integration update event
*/
private handleMCPIntegrationUpdate;
/**
* Start periodic sync
*/
private startPeriodicSync;
/**
* Update sync metrics
*/
private updateSyncMetrics;
/**
* Calculate sync success rate
*/
private calculateSyncSuccessRate;
}
//# sourceMappingURL=MCPAnalysisIntegration.d.ts.map