UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

3 lines • 1.02 kB
import{n as runtimeProcessEntrypoints}from"./runtime-process-entrypoints-Dnd1WskT.mjs";import{a as resolveRuntimeWorkerUrl}from"./runtime-worker-url-Dqf-I1cs.mjs";import{n as captureRuntimeWorkerSource}from"./runtime-worker-generation-0fwjR0Cv.mjs";import{n as resolveDatabaseFamilyEngines}from"./registry-ByN-O5dB.mjs";import{t as WorkerTaskPool}from"./worker-task-pool-Bg54sSAN.mjs";import{n as getPostgresPool}from"./pool-D39jfLRL.mjs"; //!src/infra/backup-database-discovery.ts async function preparePostgresBackupDiscovery(e){if(Object.values(resolveDatabaseFamilyEngines(e.config)).includes(`postgres`))getPostgresPool();const t=new WorkerTaskPool({workerUrl:captureRuntimeWorkerSource(resolveRuntimeWorkerUrl(runtimeProcessEntrypoints.backupDatabaseDiscovery)).moduleUrl,maxWorkers:1});try{const{stateDir:n,config:r,env:i,agentRegistry:a,workspaceDirs:o}=e;return await t.run({stateDir:n,config:r,env:i&&{...i},agentRegistry:a,workspaceDirs:o},{})}finally{await t.close()}}export{preparePostgresBackupDiscovery as t};