UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

17 lines (16 loc) • 889 B
import { l as runOpenClawStateWriteTransaction } from "./openclaw-state-db-ARhwdPJg.mjs"; import { r as upsertConfigSnapshotAuditRecordInDatabase } from "./config-journal-snapshot.kernel-CWGjXn1l.mjs"; import { t as patchConfigHealthEntryInDatabase } from "./io.health-state.kernel-B9-Yz78V.mjs"; //#region src/config/config-journal-snapshot.worker.ts const configSnapshotOperations = { "config.health.patch": (e, { open: t, stateOptions: n }) => runOpenClawStateWriteTransaction(({ db: t }) => patchConfigHealthEntryInDatabase(t, e.configPath, e.patch, e.expected, e.updatedAtMs), { ...n(), database: t() }, { singleStatement: true }), "config.snapshot.upsert": (e, { open: t, stateOptions: n }) => runOpenClawStateWriteTransaction(({ db: t }) => upsertConfigSnapshotAuditRecordInDatabase(t, e), { ...n(), database: t() }) }; //#endregion export { configSnapshotOperations };