openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
21 lines (20 loc) • 873 B
JavaScript
import { n as serveWorkerTasks } from "./worker-task-server-sbLPhqBg.mjs";
import "./worker-task-server-B3ABe5qj.mjs";
import { u as readTranscriptStatsBatchReadOnlySync } from "./openclaw-runtime-session-Bhg6HfXN.mjs";
import "./memory-core-host-engine-sessions-sP_8_kSD.mjs";
import { t as prepareMemoryIndexChunks } from "./manager-index-preparation-H9vp5v9e.mjs";
//#region extensions/memory-core/src/memory/manager-index.worker.ts
serveWorkerTasks((input) => {
const task = input;
if (task.kind === "prepare") return {
kind: "prepared",
value: prepareMemoryIndexChunks(task.input)
};
if (task.kind === "transcript-stats") return {
kind: "transcript-stats",
stats: readTranscriptStatsBatchReadOnlySync(task.scopes.map((scope) => Object.assign({}, scope, { env: task.env })))
};
throw new Error("Invalid memory indexing task");
});
//#endregion
export {};