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

@@ -115,7 +115,7 @@ export function isUnhandledRejectionHandled(reason: unknown): boolean {
if (handler(reason)) return true;
} catch (err) {
console.error(
"[moltbot] Unhandled rejection handler failed:",
"[openclaw] Unhandled rejection handler failed:",
err instanceof Error ? (err.stack ?? err.message) : err,
);
}
@@ -130,31 +130,31 @@ export function installUnhandledRejectionHandler(): void {
// AbortError is typically an intentional cancellation (e.g., during shutdown)
// Log it but don't crash - these are expected during graceful shutdown
if (isAbortError(reason)) {
console.warn("[moltbot] Suppressed AbortError:", formatUncaughtError(reason));
console.warn("[openclaw] Suppressed AbortError:", formatUncaughtError(reason));
return;
}
if (isFatalError(reason)) {
console.error("[moltbot] FATAL unhandled rejection:", formatUncaughtError(reason));
console.error("[openclaw] FATAL unhandled rejection:", formatUncaughtError(reason));
process.exit(1);
return;
}
if (isConfigError(reason)) {
console.error("[moltbot] CONFIGURATION ERROR - requires fix:", formatUncaughtError(reason));
console.error("[openclaw] CONFIGURATION ERROR - requires fix:", formatUncaughtError(reason));
process.exit(1);
return;
}
if (isTransientNetworkError(reason)) {
console.warn(
"[moltbot] Non-fatal unhandled rejection (continuing):",
"[openclaw] Non-fatal unhandled rejection (continuing):",
formatUncaughtError(reason),
);
return;
}
console.error("[moltbot] Unhandled promise rejection:", formatUncaughtError(reason));
console.error("[openclaw] Unhandled promise rejection:", formatUncaughtError(reason));
process.exit(1);
});
}