refactor(installer): replace bash installer logic with node-only implementation

This commit is contained in:
2026-02-26 00:41:56 +00:00
parent 714168e4bf
commit 46e56c6760
3 changed files with 211 additions and 368 deletions

View File

@@ -29,19 +29,23 @@ You can merge this snippet manually into your `openclaw.json`.
## Installer script (with rollback)
For production-like install with automatic rollback on error:
For production-like install with automatic rollback on error (Node-only installer):
```bash
node ./scripts/install-whispergate-openclaw.mjs --install
# or wrapper
./scripts/install-whispergate-openclaw.sh --install
```
Uninstall (revert all recorded config changes):
```bash
node ./scripts/install-whispergate-openclaw.mjs --uninstall
# or wrapper
./scripts/install-whispergate-openclaw.sh --uninstall
# or specify a record explicitly
# RECORD_FILE=~/.openclaw/whispergate-install-records/whispergate-YYYYmmddHHMMSS.json \
# ./scripts/install-whispergate-openclaw.sh --uninstall
# node ./scripts/install-whispergate-openclaw.mjs --uninstall
```
Environment overrides: