mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 01:48:28 +00:00
refactor: rename to openclaw
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { resolveMoltbotPackageRoot } from "../infra/moltbot-root.js";
|
||||
import { resolveOpenClawPackageRoot } from "../infra/openclaw-root.js";
|
||||
import {
|
||||
checkUpdateStatus,
|
||||
compareSemverStrings,
|
||||
@@ -12,7 +12,7 @@ export async function getUpdateCheckResult(params: {
|
||||
fetchGit: boolean;
|
||||
includeRegistry: boolean;
|
||||
}): Promise<UpdateCheckResult> {
|
||||
const root = await resolveMoltbotPackageRoot({
|
||||
const root = await resolveOpenClawPackageRoot({
|
||||
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("moltbot update")}`;
|
||||
return `Update available${suffix}. Run: ${formatCliCommand("openclaw update")}`;
|
||||
}
|
||||
|
||||
export function formatUpdateOneLiner(update: UpdateCheckResult): string {
|
||||
|
||||
Reference in New Issue
Block a user