UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

17 lines (16 loc) • 727 B
import { t as createSqliteAuditRecordKernel } from "./sqlite-audit-record.kernel-DDF1lZnZ.mjs"; //#region src/config/config-journal-snapshot.kernel.ts const CONFIG_SNAPSHOT_SCOPE = "config-snapshot"; const CONFIG_SNAPSHOT_KEY = "latest"; function upsertConfigSnapshotAuditRecordInDatabase(e, t) { const n = createSqliteAuditRecordKernel(e, { scope: CONFIG_SNAPSHOT_SCOPE, maxEntries: 1 }); if (t.expectedPayloadJson !== void 0) return n.compareAndSet(CONFIG_SNAPSHOT_KEY, t.expectedPayloadJson, t.record); if (t.record) n.upsert(t.record); else n.delete(CONFIG_SNAPSHOT_KEY); return true; } //#endregion export { CONFIG_SNAPSHOT_SCOPE as n, upsertConfigSnapshotAuditRecordInDatabase as r, CONFIG_SNAPSHOT_KEY as t };