-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathsession-manager.ts
More file actions
36 lines (32 loc) · 1.31 KB
/
Copy pathsession-manager.ts
File metadata and controls
36 lines (32 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/**
* Session manager for debug sessions, using ProxyManager for process management.
*
* This class manages the lifecycle of debug sessions and delegates all child process
* and DAP communication to ProxyManager instances. Each session has its own ProxyManager
* that handles the debug proxy process.
*
* This is the main composition of all session management functionality.
*/
import { SessionManagerOperations } from './session-manager-operations.js';
// Re-export types for convenience
export type {
SessionManagerDependencies,
SessionManagerConfig,
CustomLaunchRequestArguments,
DebugResult
} from './session-manager-core.js';
export type { EvaluateResult } from './session-manager-operations.js';
// Re-export the operations class for any direct usage needs
export { SessionManagerOperations } from './session-manager-operations.js';
/**
* Main SessionManager class that composes all functionality
*/
export class SessionManager extends SessionManagerOperations {
protected async handleAutoContinue(sessionId: string): Promise<void> {
this.logger.info(`[SessionManager] Auto-continuing session ${sessionId}`);
const result = await this.continue(sessionId);
if (!result.success) {
this.logger.warn(`[SessionManager] Auto-continue failed for session ${sessionId}: ${result.error}`);
}
}
}