mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-07 22:41:25 +00:00
refactor: rename clawdbot to moltbot with legacy compat
This commit is contained in:
@@ -26,7 +26,7 @@ type GatewayWsLogStyle = "auto" | "full" | "compact";
|
||||
|
||||
async function main() {
|
||||
if (hasFlag(args, "--version") || hasFlag(args, "-v")) {
|
||||
// Match `clawdbot --version` behavior for Swift env/version checks.
|
||||
// Match `moltbot --version` behavior for Swift env/version checks.
|
||||
// Keep output a single line.
|
||||
console.log(BUNDLED_VERSION);
|
||||
process.exit(0);
|
||||
@@ -211,7 +211,7 @@ async function main() {
|
||||
|
||||
void main().catch((err) => {
|
||||
console.error(
|
||||
"[clawdbot] Gateway daemon failed:",
|
||||
"[moltbot] Gateway daemon failed:",
|
||||
err instanceof Error ? (err.stack ?? err.message) : err,
|
||||
);
|
||||
process.exit(1);
|
||||
|
||||
@@ -47,8 +47,8 @@ async function main() {
|
||||
const { loadDotEnv } = await import("../infra/dotenv.js");
|
||||
loadDotEnv({ quiet: true });
|
||||
|
||||
const { ensureClawdbotCliOnPath } = await import("../infra/path-env.js");
|
||||
ensureClawdbotCliOnPath();
|
||||
const { ensureMoltbotCliOnPath } = await import("../infra/path-env.js");
|
||||
ensureMoltbotCliOnPath();
|
||||
|
||||
const { enableConsoleCapture } = await import("../logging.js");
|
||||
enableConsoleCapture();
|
||||
@@ -64,7 +64,7 @@ async function main() {
|
||||
installUnhandledRejectionHandler();
|
||||
|
||||
process.on("uncaughtException", (error) => {
|
||||
console.error("[clawdbot] Uncaught exception:", formatUncaughtError(error));
|
||||
console.error("[moltbot] Uncaught exception:", formatUncaughtError(error));
|
||||
process.exit(1);
|
||||
});
|
||||
|
||||
@@ -72,9 +72,6 @@ async function main() {
|
||||
}
|
||||
|
||||
void main().catch((err) => {
|
||||
console.error(
|
||||
"[clawdbot] Relay failed:",
|
||||
err instanceof Error ? (err.stack ?? err.message) : err,
|
||||
);
|
||||
console.error("[moltbot] Relay failed:", err instanceof Error ? (err.stack ?? err.message) : err);
|
||||
process.exit(1);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user