UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

38 lines (37 loc) 1.76 kB
//#region src/gateway/server-shutdown.runtime.ts async function prepareGatewayShutdownRuntime() { const [{ prepareGatewayClose, completeGatewayClose, drainActiveSessionsForShutdown, runGatewayClosePrelude }, { runGlobalGatewayStopSafely }, { flushPendingSessionsChangedEvents }, { closeMcpLoopbackServer }, { stopTaskRegistryMaintenance }, { markRestartAbortedMainSessions }, { disposeAllBundleLspRuntimes }, { drainRetainedOpenAiEmbeddingProviders }, { stopGmailWatcher }, { disposeAllCodeModeRuns }, { closeProviderTransportDispatcherPool }, { clearActivePluginRegistry, prepareActivePluginRegistryShutdown }] = await Promise.all([ import("./server-close.runtime.js"), import("./plugins/hook-runner-global.js"), import("./session-change-event-Db5Ki-lC.js"), import("./mcp-http-BallTd88.js"), import("./task-registry.maintenance-BH8D6B0k.js"), import("./main-session-restart-recovery-btGC4Qn8.js"), import("./agent-bundle-lsp-runtime-CFSzAoho.js"), import("./embeddings-http-6VBNpqLB.js"), import("./gmail-watcher-58piW7yV.js"), import("./code-mode-state-TxpJzdG-.js"), import("./provider-transport-dispatcher-pool-DTV5ehga.js"), import("./runtime-BO2wGg2w.js") ]); await prepareActivePluginRegistryShutdown(); return { prepareGatewayClose, completeGatewayClose, drainActiveSessionsForShutdown, runGatewayClosePrelude, runGlobalGatewayStopSafely, flushPendingSessionsChangedEvents, closeMcpLoopbackServer, stopTaskRegistryMaintenance, markRestartAbortedMainSessions, disposeAllBundleLspRuntimes, drainRetainedOpenAiEmbeddingProviders, stopGmailWatcher, disposeAllCodeModeRuns, closeProviderTransportDispatcherPool, clearActivePluginRegistry }; } //#endregion export { prepareGatewayShutdownRuntime };