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

59 lines • 1.8 kB
import { Page } from 'playwright'; export interface AsyncOperation { id: string; type: 'promise' | 'timeout' | 'interval' | 'animationFrame' | 'fetch' | 'event'; status: 'pending' | 'resolved' | 'rejected' | 'cancelled'; createdAt: number; resolvedAt?: number; duration?: number; stack: string[]; parentId?: string; value?: any; error?: any; metadata?: { url?: string; delay?: number; eventType?: string; target?: string; }; } export interface EventLoopSnapshot { timestamp: number; macrotaskQueue: AsyncOperation[]; microtaskQueue: AsyncOperation[]; pendingPromises: AsyncOperation[]; activeTimers: AsyncOperation[]; animationFrames: AsyncOperation[]; } export interface AsyncTrace { operations: Map<string, AsyncOperation>; timeline: Array<{ timestamp: number; type: 'created' | 'resolved' | 'rejected' | 'cancelled'; operationId: string; }>; eventLoopSnapshots: EventLoopSnapshot[]; promiseChains: Map<string, string[]>; } export declare class AsyncTrackingEngine { private page; private isTracking; private asyncTrace; private operationCounter; private snapshotInterval; attach(page: Page): void; enableTracking(): Promise<void>; disableTracking(): Promise<void>; private injectAsyncTracking; private captureEventLoopSnapshot; getAsyncTrace(): Promise<AsyncTrace>; getPromiseChain(promiseId: string): Promise<AsyncOperation[]>; getAsyncStackTrace(operationId: string): Promise<string[]>; detectAsyncLeaks(): Promise<Array<{ type: string; count: number; oldestAge: number; operations: AsyncOperation[]; }>>; } //# sourceMappingURL=async-tracking-engine.d.ts.map