UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

16 lines (15 loc) • 729 B
import { I as createSqliteAuditRecordKernel } from "./openclaw-state-db-existing-schema-CUJtAJx4.mjs"; //#region src/config/config-journal-snapshot.kernel.ts const CONFIG_SNAPSHOT_SCOPE = "config-snapshot"; const CONFIG_SNAPSHOT_KEY = "latest"; function upsertConfigSnapshotAuditRecordInDatabase(database, input) { const store = createSqliteAuditRecordKernel(database, { scope: CONFIG_SNAPSHOT_SCOPE, maxEntries: 1 }); if (input.expectedPayloadJson !== void 0) return store.compareAndSet(CONFIG_SNAPSHOT_KEY, input.expectedPayloadJson, input.record); store.upsert(input.record); return true; } //#endregion export { CONFIG_SNAPSHOT_SCOPE as n, upsertConfigSnapshotAuditRecordInDatabase as r, CONFIG_SNAPSHOT_KEY as t };