refactor(installer): rename to install.mjs, remove record/restore flow, add --no-reply-port and wire config port
This commit is contained in:
@@ -27,25 +27,22 @@ The script prints JSON for:
|
||||
|
||||
You can merge this snippet manually into your `openclaw.json`.
|
||||
|
||||
## Installer script (with rollback)
|
||||
|
||||
For production-like install with automatic rollback on error (Node-only installer):
|
||||
## Installer script
|
||||
|
||||
```bash
|
||||
node ./scripts/install-dirigent-openclaw.mjs --install
|
||||
node ./scripts/install.mjs --install
|
||||
# optional port override
|
||||
node ./scripts/install.mjs --install --no-reply-port 8787
|
||||
# or wrapper
|
||||
./scripts/install-dirigent-openclaw.sh --install
|
||||
```
|
||||
|
||||
Uninstall (revert all recorded config changes):
|
||||
Uninstall:
|
||||
|
||||
```bash
|
||||
node ./scripts/install-dirigent-openclaw.mjs --uninstall
|
||||
node ./scripts/install.mjs --uninstall
|
||||
# or wrapper
|
||||
./scripts/install-dirigent-openclaw.sh --uninstall
|
||||
# or specify a record explicitly
|
||||
# RECORD_FILE=~/.openclaw/dirigent-install-records/dirigent-YYYYmmddHHMMSS.json \
|
||||
# node ./scripts/install-dirigent-openclaw.mjs --uninstall
|
||||
```
|
||||
|
||||
Environment overrides:
|
||||
@@ -64,12 +61,10 @@ Environment overrides:
|
||||
|
||||
The script:
|
||||
- writes via `openclaw config set ... --json`
|
||||
- creates config backup first
|
||||
- restores backup automatically if any install step fails
|
||||
- restarts gateway during install, then validates `dirigentway/no-reply` is visible via `openclaw models list/status`
|
||||
- writes a change record for every install/uninstall:
|
||||
- directory: `~/.openclaw/dirigent-install-records/`
|
||||
- latest pointer: `~/.openclaw/dirigent-install-record-latest.json`
|
||||
- installs plugin + no-reply-api into `~/.openclaw/plugins`
|
||||
- updates `plugins.entries.dirigent` and `models.providers.<no-reply-provider>`
|
||||
- supports `--no-reply-port` (also written into `plugins.entries.dirigent.config.noReplyPort`)
|
||||
- does not maintain install/uninstall record files
|
||||
|
||||
Policy state semantics:
|
||||
- channel policy file is loaded once into memory on startup
|
||||
|
||||
Reference in New Issue
Block a user