openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
16 lines (15 loc) • 1.26 kB
JavaScript
import { t as formatCliCommand } from "./command-format-CqdwUgPk.mjs";
import { a as isConfigReadFailure } from "./io.invalid-config-DK-BYZ4Y.mjs";
import { r as isPluginPackagingRuntimeOutputInvalidConfigSnapshot } from "./recovery-policy-CixJJb9O.mjs";
//#region src/cli/config-recovery-hints.ts
function formatInvalidConfigRepairHint(e, t) {
return isConfigReadFailure(e) ? "Resolve the read error shown above, then retry." : isPluginPackagingRuntimeOutputInvalidConfigSnapshot(e) ? formatPluginPackagingRuntimeOutputRecoveryHint() : `Run \`${formatCliCommand("openclaw doctor --fix")}\` ${t}`;
}
function formatInvalidConfigRecoveryHint() {
return [`Run "${formatCliCommand("openclaw doctor --fix")}" to repair, then retry.`, "If startup is still blocked, inspect the adjacent .bak backup before restoring it manually."].join("\n");
}
function formatPluginPackagingRuntimeOutputRecoveryHint() {
return ["This is a plugin packaging issue, not a local config problem.", "Update or reinstall the plugin after the publisher ships compiled JavaScript, or disable/uninstall the plugin until then."].join("\n");
}
//#endregion
export { formatInvalidConfigRepairHint as n, formatPluginPackagingRuntimeOutputRecoveryHint as r, formatInvalidConfigRecoveryHint as t };