openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
19 lines (18 loc) • 893 B
JavaScript
import { n as getRuntimeConfig } from "./io.runtime-B9iJRs3w.js";
import "./io-bdCzpGWJ.js";
import { n as getGatewayRecoveryRuntime } from "./server-recovery-runtime-context-Cx7vLPdb.js";
//#region src/agents/main-session-recovery/main-session-recovery-owner-release.ts
/** Schedules exact-row recovery only after the caller releases its lifecycle admission. */
function scheduleMainSessionRecoveryPendingTarget(target) {
if (!target) return;
import("./main-session-restart-recovery-btGC4Qn8.js").then(({ scheduleRestartAbortedMainSessionRecoveryAfterOwnerRelease: schedule }) => schedule({
expectedSessionId: target.sessionId,
getConfig: getRuntimeConfig,
getGatewayRuntime: getGatewayRecoveryRuntime,
sessionKey: target.sessionKey,
stateDir: target.stateDir,
storePath: target.storePath
}), () => {});
}
//#endregion
export { scheduleMainSessionRecoveryPendingTarget as t };