From 41b2dd1f273fba4d0884e19a737e79ea1d7bfaf8 Mon Sep 17 00:00:00 2001 From: spiceoogway Date: Fri, 30 Jan 2026 08:24:11 -0500 Subject: [PATCH] fix: Add missing moltbot compatibility shim binary Fixes #4529 The moltbot compatibility package was broken because bin/moltbot.js was missing. This file is referenced in package.json but was never created during the openclaw rename. This commit adds the missing binary that: - Forwards all commands to openclaw - Shows clear deprecation warning - Guides users to migrate to openclaw package Without this fix, users who upgraded from moltbot to openclaw by git pull could not use the gateway because their global moltbot installation had no working binary. Test: node packages/moltbot/bin/moltbot.js --version (requires built openclaw) --- packages/moltbot/bin/moltbot.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 packages/moltbot/bin/moltbot.js diff --git a/packages/moltbot/bin/moltbot.js b/packages/moltbot/bin/moltbot.js new file mode 100755 index 000000000..86bf2b7bb --- /dev/null +++ b/packages/moltbot/bin/moltbot.js @@ -0,0 +1,12 @@ +#!/usr/bin/env node + +// Print deprecation warning to stderr so it doesn't interfere with command output +console.error("\x1b[33m⚠️ Warning: 'moltbot' has been renamed to 'openclaw'\x1b[0m"); +console.error("\x1b[33mThis compatibility shim will be removed in a future version.\x1b[0m"); +console.error("\x1b[33mPlease reinstall:\x1b[0m"); +console.error("\x1b[36m npm uninstall -g moltbot\x1b[0m"); +console.error("\x1b[36m npm install -g openclaw@latest\x1b[0m"); +console.error(""); + +// Forward to openclaw CLI entry point +await import("openclaw/cli-entry");