UNPKG

autosnippet

Version:

Extract code patterns into a knowledge base for AI coding assistants

22 lines (21 loc) 815 B
/** * Shared BootstrapSessionManager singleton management. * * Previously duplicated (with identical logic) in: * - bootstrap-internal.ts → getOrCreateSessionManager() * - bootstrap-external.ts → getSessionManager() * - rescan-external.ts → getSessionManager() * * @module bootstrap/shared/session-helpers */ import type { McpContext } from '../../types.js'; import { BootstrapSessionManager } from '../BootstrapSession.js'; /** * Get or create the process-level BootstrapSessionManager singleton. * * Resolution order: * 1. Check container for registered instance * 2. Fall back to module-level singleton * 3. Register into container for cross-handler access */ export declare function getOrCreateSessionManager(container: McpContext['container']): BootstrapSessionManager;