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

@@ -1,4 +1,4 @@
import { resolveClawdbotPackageRoot } from "../infra/clawdbot-root.js";
import { resolveMoltbotPackageRoot } from "../infra/moltbot-root.js";
import {
checkUpdateStatus,
compareSemverStrings,
@@ -12,7 +12,7 @@ export async function getUpdateCheckResult(params: {
fetchGit: boolean;
includeRegistry: boolean;
}): Promise<UpdateCheckResult> {
const root = await resolveClawdbotPackageRoot({
const root = await resolveMoltbotPackageRoot({
moduleUrl: import.meta.url,
argv1: process.argv[1],
cwd: process.cwd(),
@@ -64,7 +64,7 @@ export function formatUpdateAvailableHint(update: UpdateCheckResult): string | n
details.push(`npm ${availability.latestVersion}`);
}
const suffix = details.length > 0 ? ` (${details.join(" · ")})` : "";
return `Update available${suffix}. Run: ${formatCliCommand("clawdbot update")}`;
return `Update available${suffix}. Run: ${formatCliCommand("moltbot update")}`;
}
export function formatUpdateOneLiner(update: UpdateCheckResult): string {