fix(cli): auto-update global installs

This commit is contained in:
Peter Steinberger
2026-01-16 11:45:37 +00:00
parent 19bcbf85df
commit a51ed8a5dd
5 changed files with 203 additions and 13 deletions

View File

@@ -70,10 +70,7 @@ export async function maybeOfferUpdateBeforeDoctor(params: {
note(
[
"This install is not a git checkout.",
"Update via your package manager, then rerun doctor:",
"- npm i -g clawdbot@latest",
"- pnpm add -g clawdbot@latest",
"- bun add -g clawdbot@latest",
"Run `clawdbot update` to update via your package manager (npm/pnpm), then rerun doctor.",
].join("\n"),
"Update",
);