openclaw-elys 1.4.5 → 1.4.7
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 -3
- package/dist/src/cli.js +13 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ openclaw plugins install openclaw-elys
|
|
|
14
14
|
openclaw gateway restart
|
|
15
15
|
|
|
16
16
|
# 3. Register device / 注册设备
|
|
17
|
-
npx openclaw-elys setup <gateway_url> <register_token>
|
|
17
|
+
npx openclaw-elys@latest setup <gateway_url> <register_token>
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
Get a one-time register token from the Elys App. / 从 Elys App 获取一次性注册令牌。
|
|
@@ -26,7 +26,7 @@ setup 命令会自动配置 `~/.openclaw/openclaw.json` 中的 `channels.elys`
|
|
|
26
26
|
## Status / 查看状态
|
|
27
27
|
|
|
28
28
|
```bash
|
|
29
|
-
npx openclaw-elys status
|
|
29
|
+
npx openclaw-elys@latest status
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
## Uninstall / 卸载
|
|
@@ -36,7 +36,7 @@ One command to revoke device, clean up config, and remove the plugin:
|
|
|
36
36
|
一条命令撤销设备、清理配置并卸载插件:
|
|
37
37
|
|
|
38
38
|
```bash
|
|
39
|
-
npx openclaw-elys uninstall
|
|
39
|
+
npx openclaw-elys@latest uninstall
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
## License
|
package/dist/src/cli.js
CHANGED
|
@@ -139,13 +139,23 @@ else if (command === "uninstall") {
|
|
|
139
139
|
console.log("Local credentials removed.");
|
|
140
140
|
// 3. Uninstall the plugin from OpenClaw
|
|
141
141
|
try {
|
|
142
|
+
// Find openclaw binary
|
|
143
|
+
let openclawBin = "openclaw";
|
|
144
|
+
try {
|
|
145
|
+
openclawBin = execSync("which openclaw", { encoding: "utf-8" }).trim();
|
|
146
|
+
}
|
|
147
|
+
catch {
|
|
148
|
+
// fallback to PATH
|
|
149
|
+
}
|
|
142
150
|
console.log("Removing plugin from OpenClaw...");
|
|
143
|
-
execSync(
|
|
151
|
+
execSync(`${openclawBin} plugins uninstall openclaw-elys --force`, {
|
|
144
152
|
stdio: "inherit",
|
|
153
|
+
env: { ...process.env, PATH: process.env.PATH },
|
|
145
154
|
});
|
|
146
155
|
}
|
|
147
|
-
catch {
|
|
148
|
-
console.log(
|
|
156
|
+
catch (e) {
|
|
157
|
+
console.log(`Could not auto-remove plugin: ${e instanceof Error ? e.message : e}`);
|
|
158
|
+
console.log("Run manually: openclaw plugins uninstall openclaw-elys --force");
|
|
149
159
|
}
|
|
150
160
|
});
|
|
151
161
|
}
|