UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

3 lines • 783 B
import{l as runOpenClawStateWriteTransaction}from"./openclaw-state-db-BlgxYkYw.mjs";import{r as upsertConfigSnapshotAuditRecordInDatabase}from"./config-journal-snapshot.kernel-ChySCljK.mjs";import{t as patchConfigHealthEntryInDatabase}from"./io.health-state.kernel-B9_kszJU.mjs"; //!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()})};export{configSnapshotOperations};