ai-debug-local-mcp
Version:
🎯 ENHANCED AI GUIDANCE v4.1.2: Dramatically improved tool descriptions help AI users choose the right tools instead of 'close enough' options. Ultra-fast keyboard automation (10x speed), universal recording, multi-ecosystem debugging support, and compreh
49 lines • 1.65 kB
TypeScript
import { DebugState } from './types';
export interface AIAnalysis {
rootCause: string;
suggestedFixes: string[];
relatedPatterns: string[];
confidence: number;
explanation: string;
}
export interface PerformanceInsight {
bottlenecks: Array<{
component: string;
metric: string;
value: number;
severity: 'low' | 'medium' | 'high';
}>;
recommendations: string[];
benchmarks: Record<string, number>;
}
export declare class CloudAIService {
private apiEndpoint;
private apiKey?;
constructor(apiEndpoint?: string);
setApiKey(apiKey: string): void;
analyzeRootCause(error: Error, state: DebugState, context: Record<string, any>): Promise<AIAnalysis>;
detectPatterns(events: Array<{
type: string;
data: any;
timestamp: Date;
}>, state: DebugState): Promise<Array<{
pattern: string;
occurrences: number;
significance: string;
}>>;
analyzePerformance(metrics: Record<string, number>, componentTree: any, renderTimes: Array<{
component: string;
duration: number;
}>): Promise<PerformanceInsight>;
suggestFixes(issue: string, codeContext: string, stackTrace?: string): Promise<Array<{
fix: string;
confidence: number;
explanation: string;
}>>;
private sanitizeState;
analyzeEvents(events: any[]): Promise<any>;
comprehensiveAnalysis(events: any[], pageState: any, analysisType: string): Promise<any>;
enhanceReport(basicReport: any, events: any[]): Promise<any>;
private sanitizePageState;
}
//# sourceMappingURL=cloud-ai-service.d.ts.map