openclaw-elys 1.4.2 → 1.4.4
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 +3 -11
- 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,22 +45,14 @@ npx openclaw-elys status
|
|
|
45
45
|
|
|
46
46
|
## Uninstall / 卸载
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
One command to revoke device, clean up config, and remove the plugin:
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
一条命令撤销设备、清理配置并卸载插件:
|
|
51
51
|
|
|
52
52
|
```bash
|
|
53
53
|
npx openclaw-elys uninstall
|
|
54
54
|
```
|
|
55
55
|
|
|
56
|
-
Then remove the plugin:
|
|
57
|
-
|
|
58
|
-
然后卸载插件:
|
|
59
|
-
|
|
60
|
-
```bash
|
|
61
|
-
openclaw plugins uninstall openclaw-elys
|
|
62
|
-
```
|
|
63
|
-
|
|
64
56
|
## License
|
|
65
57
|
|
|
66
58
|
MIT
|
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") {
|