/** * Agentic QE v3 - Defect Intelligence Domain Plugin * Integrates the defect intelligence domain into the kernel */ import { DomainName, DomainEvent } from '../../shared/types'; import { EventBus, MemoryBackend, AgentCoordinator } from '../../kernel/interfaces'; import { BaseDomainPlugin } from '../domain-interface'; import { DefectIntelligenceAPI } from './interfaces'; import { IDefectIntelligenceCoordinator, CoordinatorConfig } from './coordinator'; import { IDefectPredictorService, DefectPredictorConfig } from './services/defect-predictor'; import { IPatternLearnerService, PatternLearnerConfig } from './services/pattern-learner'; import { IRootCauseAnalyzerService, RootCauseAnalyzerConfig } from './services/root-cause-analyzer'; /** * Plugin configuration options */ export interface DefectIntelligencePluginConfig { coordinator?: Partial; predictor?: Partial; patternLearner?: Partial; rootCauseAnalyzer?: Partial; } /** * Extended API with internal access */ export interface DefectIntelligenceExtendedAPI extends DefectIntelligenceAPI { /** Get the internal coordinator */ getCoordinator(): IDefectIntelligenceCoordinator; /** Get the defect predictor service */ getPredictor(): IDefectPredictorService; /** Get the pattern learner service */ getPatternLearner(): IPatternLearnerService; /** Get the root cause analyzer service */ getRootCauseAnalyzer(): IRootCauseAnalyzerService; } /** * Defect Intelligence Domain Plugin * Provides ML-based defect prediction and analysis capabilities */ export declare class DefectIntelligencePlugin extends BaseDomainPlugin { private readonly agentCoordinator; private coordinator; private predictor; private patternLearner; private rootCauseAnalyzer; private readonly pluginConfig; constructor(eventBus: EventBus, memory: MemoryBackend, agentCoordinator: AgentCoordinator, config?: DefectIntelligencePluginConfig); get name(): DomainName; get version(): string; get dependencies(): DomainName[]; /** * Get the domain's public API */ getAPI(): T; protected onInitialize(): Promise; protected onDispose(): Promise; protected subscribeToEvents(): void; protected onEvent(event: DomainEvent): Promise; private predictDefects; private analyzeRootCause; private analyzeRegressionRisk; private clusterDefects; private learnPatterns; private handleFlakyTest; private handleCoverageGap; private handleImpactAnalysis; private handleQualityGate; private ensureInitialized; private handleError; private trackSuccessfulOperation; private trackFailedOperation; } /** * Factory function to create a DefectIntelligencePlugin */ export declare function createDefectIntelligencePlugin(eventBus: EventBus, memory: MemoryBackend, agentCoordinator: AgentCoordinator, config?: DefectIntelligencePluginConfig): DefectIntelligencePlugin; //# sourceMappingURL=plugin.d.ts.map