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
41 lines • 1.23 kB
TypeScript
/**
* AbortSignal Memory Leak Manager
* Critical fix for EventTarget memory leak: 11 abort listeners detected
* Centralized AbortController management with proper cleanup
*/
export declare class AbortSignalManager {
private static activeControllers;
private static listenerCount;
/**
* Create a tracked AbortController with automatic cleanup
*/
static createController(): AbortController;
/**
* Manually cleanup a controller and all its listeners
*/
static cleanupController(controller: AbortController): void;
/**
* Create a controller with automatic timeout cleanup
*/
static createWithTimeout(timeoutMs: number): {
controller: AbortController;
timeoutId: NodeJS.Timeout;
};
/**
* Emergency cleanup of all active controllers
*/
static emergencyCleanup(): void;
/**
* Get current AbortSignal memory usage stats
*/
static getStats(): {
activeControllers: number;
estimatedListeners: number;
memoryPressure: 'low' | 'medium' | 'high';
};
/**
* Set up process-level cleanup
*/
static setupGlobalCleanup(): void;
}
//# sourceMappingURL=abort-signal-manager.d.ts.map