UNPKG

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

68 lines • 1.88 kB
import { Page, BrowserContext } from 'playwright'; export interface FunctionCall { id: string; name: string; args: any[]; returnValue?: any; error?: any; startTime: number; endTime?: number; duration?: number; callStack: string[]; parentId?: string; children: string[]; } export interface VariableState { name: string; value: any; type: string; scope: string; timestamp: number; } export interface CodeCoverage { url: string; functions: { functionName: string; ranges: Array<{ startOffset: number; endOffset: number; count: number; }>; }[]; } export interface ExecutionTrace { functionCalls: Map<string, FunctionCall>; variableStates: VariableState[]; codeCoverage: CodeCoverage[]; errors: Array<{ message: string; stack: string; timestamp: number; functionId?: string; }>; timeline: Array<{ type: 'call' | 'return' | 'error' | 'async'; functionId: string; timestamp: number; }>; } export declare class JavaScriptExecutionEngine { private page; private context; private isTracingEnabled; private currentTrace; private callIdCounter; private callStack; attach(page: Page, context: BrowserContext): void; enableTracing(): Promise<void>; disableTracing(): Promise<void>; private injectTracingCode; getExecutionTrace(): Promise<ExecutionTrace>; instrumentFunction(functionPath: string, functionName?: string): Promise<void>; captureVariableState(variablePath: string, scope?: string): Promise<VariableState>; getCallGraph(): Promise<any>; private buildCallTree; private calculateTotalDuration; getPerformanceProfile(): Promise<any>; } //# sourceMappingURL=javascript-execution-engine.d.ts.map