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
73 lines • 2.24 kB
TypeScript
/**
* AI-Debug Repair Toolkit
*
* Comprehensive repair and recovery system that integrates diagnostics,
* enhanced framework detection, and automated fixes to restore AI-Debug
* functionality when browser sessions fail to initialize.
*/
import { DiagnosticResult } from './ai-debug-diagnostics.js';
export interface RepairSession {
sessionId: string;
targetUrl: string;
startTime: number;
diagnosticsRun: boolean;
frameworkDetected: boolean;
repairAttempts: Array<{
timestamp: number;
action: string;
success: boolean;
details: any;
}>;
finalStatus: 'repaired' | 'partially-repaired' | 'failed' | 'in-progress';
}
export interface RepairResult {
success: boolean;
browserSessionEstablished: boolean;
frameworkDetected: string;
repairActions: string[];
remainingIssues: DiagnosticResult[];
recommendations: string[];
session: RepairSession;
}
export declare class AIDebugRepairToolkit {
private logger;
private diagnostics;
private frameworkDetector;
private activeSessions;
constructor();
/**
* Master repair function - attempts to fix all AI-Debug issues
*/
repairAIDebugSession(targetUrl: string, options?: {
emergencyMode?: boolean;
maxRepairAttempts?: number;
workingDirectory?: string;
}): Promise<RepairResult>;
/**
* Test browser session initialization with improved error handling
*/
private testBrowserSessionInitialization;
/**
* Generate specific repair recommendations based on findings
*/
private generateRepairRecommendations;
/**
* Get repair session status
*/
getRepairSessionStatus(sessionId: string): RepairSession | null;
/**
* Clear completed repair sessions
*/
cleanupCompletedSessions(): number;
/**
* Quick health check - lighter version of full diagnostics
*/
quickHealthCheck(targetUrl: string): Promise<{
overall: 'healthy' | 'degraded' | 'critical';
browserSupport: boolean;
targetReachable: boolean;
frameworkDetected: string;
recommendations: string[];
}>;
}
//# sourceMappingURL=ai-debug-repair-toolkit.d.ts.map