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

66 lines • 2.34 kB
import { Page } from 'playwright'; import { StateCapture } from './state-capture'; import { DebugInjector } from './debug-injector'; import { FrameworkDetector } from './framework-detector'; import { DebugState, DOMSnapshot } from '../types'; /** * DebugSessionCoordinator - Coordinates all debugging session lifecycle functionality * * This coordinator consolidates core debugging session management including page attachment, * state capture, debug code injection, element inspection, and comprehensive page state * extraction into a unified interface, reducing complexity in LocalDebugEngine. */ export declare class DebugSessionCoordinator { private stateCapture; private debugInjector; private frameworkDetector; constructor(stateCapture: StateCapture, debugInjector: DebugInjector, frameworkDetector: FrameworkDetector); /** * Coordinate page attachment across all debugging modules */ attachToPage(page: Page): Promise<{ framework: string; confidence?: number; }>; /** * Capture comprehensive debugging session state */ captureSessionState(): Promise<DebugState>; /** * Capture DOM snapshot for debugging analysis */ captureDOMSnapshot(): Promise<DOMSnapshot>; /** * Inject debugging code directly into the page */ injectDebuggingCode(page: Page, code: string): Promise<any>; /** * Inject framework-specific debugging code */ injectFrameworkDebugging(page: Page, framework: string): Promise<void>; /** * Capture variable state with specific scope */ captureVariableState(variablePath: string, scope?: string): Promise<any>; /** * Extract comprehensive page state including framework-specific data */ extractPageState(page: Page): Promise<any>; /** * Get React component tree (delegated to StateCapture) */ getReactComponentTree(): Promise<any>; /** * Get React state (delegated to StateCapture) */ getReactState(): Promise<any>; /** * Find React components (delegated to StateCapture) */ findReactComponents(): Promise<any>; /** * Find Phoenix LiveView state (delegated to StateCapture) */ findPhoenixLiveViewState(): Promise<any>; } //# sourceMappingURL=debug-session-coordinator.d.ts.map