refactor: rename to openclaw

This commit is contained in:
Peter Steinberger
2026-01-30 03:15:10 +01:00
parent 4583f88626
commit 9a7160786a
2357 changed files with 16688 additions and 16788 deletions

View File

@@ -3,7 +3,7 @@ import path from "node:path";
import type { loadConfig } from "../config/config.js";
import { resolveStateDir } from "../config/paths.js";
import { resolveMoltbotPackageRoot } from "./moltbot-root.js";
import { resolveOpenClawPackageRoot } from "./openclaw-root.js";
import { compareSemverStrings, resolveNpmChannelTag, checkUpdateStatus } from "./update-check.js";
import { normalizeUpdateChannel, DEFAULT_PACKAGE_CHANNEL } from "./update-channels.js";
import { VERSION } from "../version.js";
@@ -57,7 +57,7 @@ export async function runGatewayUpdateCheck(params: {
if (now - lastCheckedAt < UPDATE_CHECK_INTERVAL_MS) return;
}
const root = await resolveMoltbotPackageRoot({
const root = await resolveOpenClawPackageRoot({
moduleUrl: import.meta.url,
argv1: process.argv[1],
cwd: process.cwd(),
@@ -93,7 +93,7 @@ export async function runGatewayUpdateCheck(params: {
state.lastNotifiedVersion !== resolved.version || state.lastNotifiedTag !== tag;
if (shouldNotify) {
params.log.info(
`update available (${tag}): v${resolved.version} (current v${VERSION}). Run: ${formatCliCommand("moltbot update")}`,
`update available (${tag}): v${resolved.version} (current v${VERSION}). Run: ${formatCliCommand("openclaw update")}`,
);
nextState.lastNotifiedVersion = resolved.version;
nextState.lastNotifiedTag = tag;