mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-05 18:30:22 +00:00
refactor: rename clawdbot to moltbot with legacy compat
This commit is contained in:
@@ -8,7 +8,7 @@ import { isTruthyEnvValue } from "./infra/env.js";
|
||||
import { installProcessWarningFilter } from "./infra/warnings.js";
|
||||
import { attachChildProcessBridge } from "./process/child-process-bridge.js";
|
||||
|
||||
process.title = "clawdbot";
|
||||
process.title = "moltbot";
|
||||
installProcessWarningFilter();
|
||||
|
||||
if (process.argv.includes("--no-color")) {
|
||||
@@ -49,7 +49,7 @@ function ensureExperimentalWarningSuppressed(): boolean {
|
||||
|
||||
child.once("error", (error) => {
|
||||
console.error(
|
||||
"[clawdbot] Failed to respawn CLI:",
|
||||
"[moltbot] Failed to respawn CLI:",
|
||||
error instanceof Error ? (error.stack ?? error.message) : error,
|
||||
);
|
||||
process.exit(1);
|
||||
@@ -124,7 +124,7 @@ if (!ensureExperimentalWarningSuppressed()) {
|
||||
const parsed = parseCliProfileArgs(process.argv);
|
||||
if (!parsed.ok) {
|
||||
// Keep it simple; Commander will handle rich help/errors after we strip flags.
|
||||
console.error(`[clawdbot] ${parsed.error}`);
|
||||
console.error(`[moltbot] ${parsed.error}`);
|
||||
process.exit(2);
|
||||
}
|
||||
|
||||
@@ -138,7 +138,7 @@ if (!ensureExperimentalWarningSuppressed()) {
|
||||
.then(({ runCli }) => runCli(process.argv))
|
||||
.catch((error) => {
|
||||
console.error(
|
||||
"[clawdbot] Failed to start CLI:",
|
||||
"[moltbot] Failed to start CLI:",
|
||||
error instanceof Error ? (error.stack ?? error.message) : error,
|
||||
);
|
||||
process.exitCode = 1;
|
||||
|
||||
Reference in New Issue
Block a user