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
93 lines • 2.24 kB
TypeScript
/**
* Persistent Python Bridge - Eliminates subprocess overhead
* Maintains a long-lived Python process for automation
*/
import { EventEmitter } from 'events';
export declare class PersistentPythonBridge extends EventEmitter {
private process;
private pythonPath;
private bridgePath;
private requestId;
private pendingRequests;
private responseBuffer;
private isReady;
private startupPromise;
constructor(pythonPath?: string);
/**
* Start the persistent Python process
*/
start(): Promise<void>;
private _start;
/**
* Handle output from Python process
*/
private handleOutput;
/**
* Handle a response from Python
*/
private handleResponse;
/**
* Send a request to Python and wait for response
*/
private sendRequest;
/**
* Handle process errors
*/
private handleProcessError;
/**
* Handle process exit
*/
private handleProcessExit;
/**
* Test connection
*/
ping(): Promise<boolean>;
/**
* Get all windows with metadata
*/
getWindows(includeMinimized?: boolean): Promise<any[]>;
/**
* Find a specific window
*/
findWindow(options: {
title?: string;
owner?: string;
windowId?: number;
}): Promise<any>;
/**
* Click at coordinates
*/
click(x: number, y: number, button?: 'left' | 'right', clickCount?: number): Promise<void>;
/**
* Move mouse to coordinates
*/
moveMouse(x: number, y: number): Promise<void>;
/**
* Drag from start to end
*/
drag(startX: number, startY: number, endX: number, endY: number): Promise<void>;
/**
* Scroll at position
*/
scroll(x: number, y: number, deltaX?: number, deltaY?: number): Promise<void>;
/**
* Type text
*/
typeText(text: string): Promise<void>;
/**
* Get screen size
*/
getScreenSize(): Promise<{
width: number;
height: number;
}>;
/**
* Get active application
*/
getActiveApp(): Promise<any>;
/**
* Shutdown the bridge
*/
shutdown(): Promise<void>;
}
//# sourceMappingURL=persistent-python-bridge.d.ts.map