openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
24 lines (23 loc) • 1.03 kB
JavaScript
import { r as defaultRuntime } from "./runtime-B-SLYP-m.mjs";
import { a as resolveUpdateRehearsalRoot } from "./update-rehearsal-paths-Dr1MbUA_.mjs";
//#region src/commands/doctor-lint.ts
/** Delegate rehearsal lint before loading the worker's health-check graph. */
async function runDoctorLintCli(e, t) {
const { preparePostgresPoolForUpdate: n } = await import("./pool-BXFHpO5Y.mjs");
await n("openclaw doctor --fix");
if (e === defaultRuntime && t.json && resolveUpdateRehearsalRoot(process.env)) {
const { hasCliProcessScope: e } = await import("./runtime-cleanup-scope-CYOx21nX.mjs");
if (e()) {
const { runUpdateDoctorLintProcess: e } = await import("./doctor-lint-process-BgJJglQL.mjs");
const { resolveDoctorUpdateBudget: n } = await import("./doctor-update-budget-Cno17eY7.mjs");
return e(t, await n({
cfg: {},
env: process.env
}));
}
}
const { runDoctorLintCliInProcess: r } = await import("./doctor-lint-runner-DwesKvJu.mjs");
return r(e, t);
}
//#endregion
export { runDoctorLintCli };