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)
This commit is contained in:
spiceoogway 2026-01-30 08:24:11 -05:00
parent 8280ce880e
commit 41b2dd1f27

12
packages/moltbot/bin/moltbot.js Executable file
View File

@ -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");