UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

32 lines (31 loc) • 1.38 kB
import { r as defaultRuntime } from "../runtime-BC29JSZp.mjs"; import { a as waitForPendingCliDisposers, r as runCliDisposer, t as closeCliResources } from "../runtime-cleanup-Dk8QqKkJ.mjs"; import { r as runCliWithExitFinalization, t as exitCliAfterOutput } from "../one-shot-exit-CAsLf7Cw.mjs"; import { a as withCliCommandCleanup, o as withCliProcessScope } from "../runtime-cleanup-scope-BdzwA5yn.mjs"; import { t as enableConsoleCapture } from "../console-cjqeMbm6.mjs"; import { t as scrubDoctorErrorMessage } from "../doctor-error-message-CBAGGfGW.mjs"; //#region src/commands/doctor.worker.ts async function runDoctorWorker() { enableConsoleCapture(); await withCliProcessScope(() => withCliCommandCleanup(false, async (cleanup) => { try { const { doctorCommand } = await import("../doctor-DYpmANp4.mjs"); await doctorCommand(defaultRuntime, { nonInteractive: true }); } finally { await closeCliResources(cleanup); const resources = cleanup?.pluginResources; if (resources) await runCliDisposer("plugin-registration-resources", () => resources.release()); } exitCliAfterOutput(defaultRuntime, 0); })); } runCliWithExitFinalization({ run: runDoctorWorker, finalize: waitForPendingCliDisposers, onError(error) { defaultRuntime.error(`Doctor failed: ${scrubDoctorErrorMessage(error)}`); process.exitCode = 1; } }); //#endregion export {};