openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
5 lines • 1.19 kB
JavaScript
import{t as formatCliCommand}from"./command-format-D7KhNLP0.mjs";import{a as isConfigReadFailure}from"./io.invalid-config-B2POcxOa.mjs";import{r as isPluginPackagingRuntimeOutputInvalidConfigSnapshot}from"./recovery-policy-C9I1hpUN.mjs";
//!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(`
`)}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(`
`)}export{formatInvalidConfigRepairHint as n,formatPluginPackagingRuntimeOutputRecoveryHint as r,formatInvalidConfigRecoveryHint as t};