UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

1 lines • 1.06 kB
import{p as e}from"./openclaw-state-read-sqlite-database-admission-CrkztOzk.mjs";import{t}from"./openclaw-state-read-physical-facts-contract-D2VkVin1.mjs";import{r as n}from"./openclaw-state-read-bridge-prestart-DLrgs8ph.mjs";const r=[{id:`state`,label:`Shared state`,postgres:!0},{id:`agent`,label:`Agent data`,postgres:!0},{id:`workboard`,label:`Workboard`,postgres:!0},{id:`logbook`,label:`Logbook`,postgres:!0},{id:`team-reports`,label:`Team Reports`,postgres:!0},{id:`quarantine`,label:`Database quarantine`},{id:`managed-update`,label:`Managed update handoffs`},{id:`package-activation`,label:`Package activation journal`}];function listDatabaseEngineStores(){return r}function prepareAdmittedPostgresBridge(r,i,a){if(!i?.postgres)return;let o=e(r,t);if(!o)return;let s=listDatabaseEngineStores().find(({id:e})=>e.replaceAll(`-`,`_`)===o.store);if(s&&i.effectiveEngines[s.id]===`postgres`)return n({url:i.postgres.connection,schema:o.namespace,storeId:o.storeId,reuse:a?.reuse},a?.signal)}export{prepareAdmittedPostgresBridge,listDatabaseEngineStores as t};