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
63 lines • 1.83 kB
TypeScript
import { Page } from 'playwright';
export interface ScriptError {
type: 'syntax' | 'module' | 'runtime' | 'network' | 'parsing';
severity: 'error' | 'warning' | 'info';
message: string;
file?: string;
line?: number;
column?: number;
stackTrace?: string;
suggestion?: string;
code?: string;
timestamp: number;
}
export interface ModuleConflict {
file: string;
expectedType: 'module' | 'commonjs';
actualType: 'module' | 'commonjs';
parentPackageJson?: string;
suggestion: string;
}
export interface HTMLValidationError {
type: 'malformed_tag' | 'invalid_attribute' | 'missing_closing_tag' | 'invalid_nesting';
element: string;
file?: string;
line?: number;
suggestion: string;
code?: string;
}
export interface ErrorDetectionReport {
scriptErrors: ScriptError[];
moduleConflicts: ModuleConflict[];
htmlErrors: HTMLValidationError[];
consoleErrors: Array<{
type: string;
text: string;
stack?: string;
timestamp: number;
}>;
networkErrors: Array<{
url: string;
status: number;
method: string;
timestamp: number;
}>;
suggestions: string[];
}
export declare class JavaScriptErrorDetectionEngine {
private page;
private errors;
private isMonitoring;
attach(page: Page): void;
startMonitoring(): Promise<void>;
stopMonitoring(): Promise<void>;
private injectErrorDetection;
private analyzeConsoleError;
private analyzeScriptError;
detectCommonIssues(): Promise<void>;
private checkModuleTypeConflicts;
getErrorReport(): Promise<ErrorDetectionReport>;
private generateSuggestions;
validateScriptTags(): Promise<HTMLValidationError[]>;
}
//# sourceMappingURL=javascript-error-detection-engine.d.ts.map