UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

33 lines (32 loc) • 1.1 kB
import { n as serveWorkerTasks } from "./worker-task-server-J1vG-XRl.mjs"; import "./worker-task-server-552KxucS.mjs"; import { r as prepareMemoryIndexChunks, t as prepareSessionIndexStream } from "./manager-session-index-preparation-3h_bst18.mjs"; //#region extensions/memory-core/src/memory/manager-index.worker.ts serveWorkerTasks(async (e, t, n) => { const r = e; if (r.kind === "prepare") return { kind: "prepared", value: prepareMemoryIndexChunks(r.input) }; if (r.kind === "prepare-session") { if (!t) throw new Error("Session index preparation requires its source channel"); await prepareSessionIndexStream(r.input, t, n); return { kind: "prepared", value: { contentHash: void 0, chunks: [] } }; } if (r.kind === "transcript-stats") { const { readTranscriptStatsBatchReadOnlySync: e } = await import("./plugin-sdk/memory-core-host-transcript-stats.js"); return { kind: "transcript-stats", stats: e(r.scopes.map((e) => Object.assign({}, e, { env: r.env }))) }; } throw new Error("Invalid memory indexing task"); }); //#endregion export {};