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
62 lines • 2.07 kB
TypeScript
/**
* V2 Session Registry - Multi-Session Resource Coordination for HTTP Transport
*
* Optimized session management for stateless HTTP architecture with:
* - Intelligent resource allocation and sharing
* - Project-aware session optimization
* - Advanced memory management integration
* - HTTP transport-specific features
*/
import { EventEmitter } from 'events';
import { V2ProjectSession, V2ResourceSummary, V2SessionRegistryConfig } from './v2-session-types.js';
export declare class V2SessionRegistry extends EventEmitter {
private sessions;
private urlToSession;
private httpSessionMap;
private portAllocator;
private memoryManager;
private config;
private cleanupInterval?;
private monitoringInterval?;
private httpRequestCounter;
constructor(config?: Partial<V2SessionRegistryConfig>);
/**
* Register a new debugging session (HTTP transport optimized)
*/
registerSession(targetUrl: string, httpSessionId?: string, clientConnectionId?: string, workingDirectory?: string): Promise<V2ProjectSession>;
/**
* Get session by various identifiers
*/
getSession(identifier: string): V2ProjectSession | undefined;
/**
* Update session activity (HTTP request tracking)
*/
recordHttpRequest(sessionId: string): void;
/**
* Apply framework detection results to session
*/
updateSessionFramework(sessionId: string, framework: string, optimizationInfo: any): Promise<void>;
/**
* Get comprehensive resource summary
*/
getResourceSummary(): V2ResourceSummary;
/**
* Cleanup expired sessions
*/
performCleanup(): Promise<string[]>;
/**
* Cleanup individual session
*/
private cleanupSession;
private generateSessionId;
private createSessionTempDir;
private detectProjectMetadata;
private emitEvent;
private startBackgroundTasks;
private performResourceMonitoring;
/**
* Graceful shutdown
*/
shutdown(): Promise<void>;
}
//# sourceMappingURL=v2-session-registry.d.ts.map