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
105 lines • 2.63 kB
TypeScript
/**
* Flutter Quantum Debugger
* The ultimate Flutter web debugging solution that actually works
*/
import { Page } from 'playwright';
import { FlutterSemanticNode } from './flutter-semantic-analyzer.js';
import { UIStructure } from './flutter-structure-mapper.js';
import { DetectedElement } from './flutter-comprehensive-detector.js';
export interface QuantumDebugSession {
id: string;
page: Page;
structure: UIStructure;
semanticNodes: FlutterSemanticNode[];
detectedElements: DetectedElement[];
interactionHistory: InteractionRecord[];
}
export interface InteractionRecord {
timestamp: Date;
command: string;
method: string;
success: boolean;
result?: any;
}
export interface QuantumInteractionResult {
success: boolean;
method?: string;
newStructure?: UIStructure;
error?: string;
}
export declare class FlutterQuantumDebugger {
private sessions;
/**
* Initialize a quantum debug session
*/
initialize(page: Page, sessionId: string): Promise<QuantumDebugSession>;
/**
* Natural language interaction interface
*/
interact(sessionId: string, command: string): Promise<QuantumInteractionResult>;
/**
* Handle click interactions
*/
private handleClick;
/**
* Handle type interactions
*/
private handleType;
/**
* Handle find interactions
*/
private handleFind;
/**
* Handle inspect command
*/
private handleInspect;
/**
* Handle select action (for dropdowns, radio buttons, etc)
*/
private handleSelect;
/**
* Handle toggle action (checkboxes, switches)
*/
private handleToggle;
/**
* Handle scroll action
*/
private handleScroll;
/**
* Handle set action (for inputs with specific values)
*/
private handleSet;
/**
* Handle focus action
*/
private handleFocus;
/**
* Handle clear action
*/
private handleClear;
/**
* Handle generic action based on element capabilities
*/
private handleGenericAction;
/**
* Parse natural language commands
*/
private parseCommand;
/**
* Wait for Flutter to be ready
*/
private waitForFlutter;
/**
* Get session by ID
*/
getSession(sessionId: string): QuantumDebugSession | undefined;
/**
* Get interaction history
*/
getHistory(sessionId: string): InteractionRecord[];
/**
* Set up handlers for browser permissions
*/
private setupPermissionHandlers;
}
//# sourceMappingURL=flutter-quantum-debugger.d.ts.map