refactor: rename clawdbot to moltbot with legacy compat

This commit is contained in:
Peter Steinberger
2026-01-27 12:19:58 +00:00
parent 83460df96f
commit 6d16a658e5
1839 changed files with 11250 additions and 11199 deletions

View File

@@ -6,7 +6,7 @@ import { note } from "../terminal/note.js";
import { formatCliCommand } from "../cli/command-format.js";
import type { DoctorOptions } from "./doctor-prompter.js";
async function detectClawdbotGitCheckout(root: string): Promise<"git" | "not-git" | "unknown"> {
async function detectMoltbotGitCheckout(root: string): Promise<"git" | "not-git" | "unknown"> {
const res = await runCommandWithTimeout(["git", "-C", root, "rev-parse", "--show-toplevel"], {
timeoutMs: 5000,
}).catch(() => null);
@@ -38,10 +38,10 @@ export async function maybeOfferUpdateBeforeDoctor(params: {
Boolean(process.stdin.isTTY);
if (!canOfferUpdate || !params.root) return { updated: false };
const git = await detectClawdbotGitCheckout(params.root);
const git = await detectMoltbotGitCheckout(params.root);
if (git === "git") {
const shouldUpdate = await params.confirm({
message: "Update Clawdbot from git before running doctor?",
message: "Update Moltbot from git before running doctor?",
initialValue: true,
});
if (!shouldUpdate) return { updated: false };
@@ -72,7 +72,7 @@ export async function maybeOfferUpdateBeforeDoctor(params: {
note(
[
"This install is not a git checkout.",
`Run \`${formatCliCommand("clawdbot update")}\` to update via your package manager (npm/pnpm), then rerun doctor.`,
`Run \`${formatCliCommand("moltbot update")}\` to update via your package manager (npm/pnpm), then rerun doctor.`,
].join("\n"),
"Update",
);