openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
17 lines (16 loc) • 1.03 kB
JavaScript
import { t as databasePortProviders } from "../../port-provider-CZISFP-d.mjs";
import { t as DatabasePortDataError } from "../../postgres-store-metadata-CcC14HrG.mjs";
import { n as serveWorkerTasks } from "../../worker-task-server-J1vG-XRl.mjs";
import "../../port.worker-BIwiDJ3h.mjs";
import { n as executeDatabasePortTask } from "../../port-command.worker-LM4Ze-86.mjs";
//#region src/infra/database-engine/port-command.entry.worker.ts
serveWorkerTasks((e, t, n) => n.runNativeSection(async () => {
try {
return await executeDatabasePortTask(e, n.throwIfCancelled);
} catch (t) {
const n = t instanceof DatabasePortDataError ? t.message : "observed database validation or I/O failure; required readable, valid data and namespace privileges";
throw new Error(`${e.operation}: ${"sourcePath" in e ? e.sourcePath : databasePortProviders.map((e) => e.id).join(", ")}: ${n}. Stop the Gateway, correct the source or connection, then retry or use the retained recovery manifest.`, { cause: t });
}
}));
//#endregion
export {};