openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
13 lines (12 loc) • 639 B
JavaScript
import { a as resolveGlobalSingleton } from "./global-singleton-D7yf05nR.mjs";
//#region src/gateway/in-process-session-delivery.ts
const generations = resolveGlobalSingleton(Symbol.for("openclaw.inProcessSessionDeliveryGenerations"), () => /* @__PURE__ */ new WeakMap());
function bindInProcessSessionDeliveryGeneration(e, t) {
if (t) generations.set(e, Object.freeze({ ...t }));
return e;
}
function readInProcessSessionDeliveryGeneration(e) {
return typeof e === "object" && e !== null ? generations.get(e) : void 0;
}
//#endregion
export { readInProcessSessionDeliveryGeneration as n, bindInProcessSessionDeliveryGeneration as t };