UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

26 lines (25 loc) • 1.12 kB
import { n as runtimeProcessEntrypoints } from "./runtime-process-entrypoints-qiyJvDDT.mjs"; import { a as resolveRuntimeWorkerUrl } from "./runtime-worker-url-DRDkoS4J.mjs"; import { n as captureRuntimeWorkerSource } from "./runtime-worker-generation-DBZgwXBG.mjs"; import { t as WorkerTaskPool } from "./worker-task-pool-BshJjv1P.mjs"; import { n as resolveDatabaseFamilyEngines } from "./registry-Dd7FIY0t.mjs"; import { r as getPostgresPool } from "./pool-ClFRe4Wg.mjs"; //#region src/commands/doctor-database-engine-inspection.ts /** Operator-only inspection. Never installed in a Gateway request or database hot path. */ async function inspectDoctorDatabaseEngines(e) { if (Object.values(resolveDatabaseFamilyEngines(e.config)).includes("postgres")) getPostgresPool(); const t = new WorkerTaskPool({ workerUrl: captureRuntimeWorkerSource(resolveRuntimeWorkerUrl(runtimeProcessEntrypoints.doctorDatabaseEngineInspection)).moduleUrl, maxWorkers: 1 }); try { return await t.run({ ...e, env: { ...e.env } }, {}); } finally { await t.close(); } } //#endregion export { inspectDoctorDatabaseEngines };