openclaw/packages/moltbot/bin/moltbot.js
spiceoogway 41b2dd1f27 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)
2026-01-30 08:24:11 -05:00

13 lines
561 B
JavaScript
Executable File
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/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");