openclaw-elys 1.4.2 → 1.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -10
- package/dist/src/cli.js +14 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -30,7 +30,7 @@ npx openclaw-elys@latest setup https://your-gateway.com reg_abc123def456
|
|
|
30
30
|
# Credentials saved to ~/.elys/config.json
|
|
31
31
|
# OpenClaw config updated: channels.elys.gatewayUrl = https://your-gateway.com
|
|
32
32
|
#
|
|
33
|
-
#
|
|
33
|
+
# OpenClaw will auto-detect the config change. You're all set!
|
|
34
34
|
```
|
|
35
35
|
|
|
36
36
|
The setup command automatically configures `channels.elys` in `~/.openclaw/openclaw.json`. OpenClaw will auto-detect the config change — no restart needed.
|
|
@@ -45,19 +45,13 @@ npx openclaw-elys status
|
|
|
45
45
|
|
|
46
46
|
## Uninstall / 卸载
|
|
47
47
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
撤销设备凭证并删除本地配置:
|
|
48
|
+
**Important: run these two commands in order. / 重要:请按顺序执行以下两条命令。**
|
|
51
49
|
|
|
52
50
|
```bash
|
|
51
|
+
# Step 1: Revoke device and remove channel config / 第一步:撤销设备并清除频道配置
|
|
53
52
|
npx openclaw-elys uninstall
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
Then remove the plugin:
|
|
57
53
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
```bash
|
|
54
|
+
# Step 2: Remove the plugin / 第二步:卸载插件
|
|
61
55
|
openclaw plugins uninstall openclaw-elys
|
|
62
56
|
```
|
|
63
57
|
|
package/dist/src/cli.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import fs from "fs";
|
|
3
3
|
import os from "os";
|
|
4
4
|
import path from "path";
|
|
5
|
+
import { execSync } from "child_process";
|
|
5
6
|
import { registerDevice } from "./register.js";
|
|
6
7
|
import { loadCredentials, loadGatewayUrl, deleteCredentials, } from "./config.js";
|
|
7
8
|
const OPENCLAW_CONFIG = path.join(os.homedir(), ".openclaw", "openclaw.json");
|
|
@@ -129,11 +130,23 @@ else if (command === "uninstall") {
|
|
|
129
130
|
console.warn("Proceeding with local cleanup anyway.");
|
|
130
131
|
})
|
|
131
132
|
.finally(() => {
|
|
132
|
-
|
|
133
|
+
// 1. Remove channel config BEFORE plugin uninstall to avoid validation error
|
|
133
134
|
if (removeOpenClawChannel()) {
|
|
134
135
|
console.log("OpenClaw channel config removed.");
|
|
135
136
|
}
|
|
137
|
+
// 2. Delete local credentials
|
|
138
|
+
deleteCredentials();
|
|
136
139
|
console.log("Local credentials removed.");
|
|
140
|
+
// 3. Uninstall the plugin from OpenClaw
|
|
141
|
+
try {
|
|
142
|
+
console.log("Removing plugin from OpenClaw...");
|
|
143
|
+
execSync("openclaw plugins uninstall openclaw-elys --force", {
|
|
144
|
+
stdio: "inherit",
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
catch {
|
|
148
|
+
console.log("Could not auto-remove plugin. Run manually: openclaw plugins uninstall openclaw-elys");
|
|
149
|
+
}
|
|
137
150
|
});
|
|
138
151
|
}
|
|
139
152
|
else if (command === "status") {
|