openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
1 lines • 1.08 kB
JavaScript
import{u as e}from"./openclaw-state-read-sqlite-post-commit-CsXPYVOo.mjs";import{w as t}from"./openclaw-state-read-sqlite-schema-facts-Dtolu7-X.mjs";import{U as n}from"./openclaw-state-read.worker.js";import{n as r}from"./openclaw-state-read-openclaw-agent-db-registry.read-DCfsbJGg.mjs";import{i}from"./openclaw-state-read-agent-deletion-journal.read-BNE7CEJK.mjs";const a={"stateBootstrap.ownership":(e,t)=>({type:`stateBootstrap.ownership`,ownership:n(t,e.pathname)}),"stateBootstrap.inspect":(n,a)=>{let o=e(a)&&t(a)?.version;if(!o)throw Error(`PostgreSQL startup inspection requires an admitted state connection`);let s={schemas:{incompatible:[],indeterminate:[]},inspectionErrors:[]};return o!==n.supportedVersion&&(o<n.supportedVersion?s.schemas.pendingMigrations??=[]:s.schemas.incompatible).push({kind:`state`,path:n.pathname,foundVersion:o,supportedVersion:n.supportedVersion}),n.scope!==`state`&&(s.registeredDatabases=r(a,n.pathname),s.deletionJournal=i(a,n.pathname,n.purpose)),{type:`stateBootstrap.inspect`,inspection:s}}};export{a as stateBootstrapReadOperations};