UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

10 lines (9 loc) • 565 B
import { i as executeSqliteQuerySync, s as getNodeSqliteKysely } from "./kysely-sync-YJo2lmGV.mjs"; import "./sqlite-worker-runtime-CKocuU_N.mjs"; //#region extensions/memory-core/src/memory-index-revision.worker.ts /** The writer advances the revision once, inside the transaction that changes the index. */ function advanceMemoryIndexRevision(e) { executeSqliteQuerySync(e, getNodeSqliteKysely(e).updateTable("memory_index_state").set((e) => ({ revision: e("revision", "+", 1) })).where("id", "=", 1)); } //#endregion export { advanceMemoryIndexRevision as t };