openclaw-elys 1.4.4 → 1.4.6

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 CHANGED
@@ -4,38 +4,24 @@ OpenClaw channel plugin for [Elys App](https://elys.ai) — connects your local
4
4
 
5
5
  Elys App 的 OpenClaw 频道插件 — 将本地 OpenClaw 智能体连接到 Elys 手机应用。
6
6
 
7
- ## Install / 安装
7
+ ## Install & Setup / 安装与配置
8
8
 
9
9
  ```bash
10
- openclaw plugins install openclaw-elys@latest
11
- # Installs the latest version by default / 默认安装最新版本
12
- ```
13
-
14
- ## Setup / 注册设备
10
+ # 1. Install the plugin / 安装插件
11
+ openclaw plugins install openclaw-elys
15
12
 
16
- Get a one-time register token from the Elys App, then run:
13
+ # 2. Restart gateway (required after install) / 重启网关(安装后必须)
14
+ openclaw gateway restart
17
15
 
18
- Elys App 获取一次性注册令牌,然后执行:
19
-
20
- ```bash
21
- npx openclaw-elys@latest setup <gateway_url> <register_token>
16
+ # 3. Register device / 注册设备
17
+ npx openclaw-elys setup <gateway_url> <register_token>
22
18
  ```
23
19
 
24
- Example / 示例:
25
-
26
- ```bash
27
- npx openclaw-elys@latest setup https://your-gateway.com reg_abc123def456
28
- # Device registered successfully!
29
- # Device ID: d_xxxxxxxxxxxx
30
- # Credentials saved to ~/.elys/config.json
31
- # OpenClaw config updated: channels.elys.gatewayUrl = https://your-gateway.com
32
- #
33
- # OpenClaw will auto-detect the config change. You're all set!
34
- ```
20
+ Get a one-time register token from the Elys App. / 从 Elys App 获取一次性注册令牌。
35
21
 
36
- The setup command automatically configures `channels.elys` in `~/.openclaw/openclaw.json`. OpenClaw will auto-detect the config change — no restart needed.
22
+ The setup command automatically configures `channels.elys` in `~/.openclaw/openclaw.json`.
37
23
 
38
- setup 命令会自动配置 `~/.openclaw/openclaw.json` 中的 `channels.elys`。OpenClaw 会自动检测配置变更,无需重启。
24
+ setup 命令会自动配置 `~/.openclaw/openclaw.json` 中的 `channels.elys`。
39
25
 
40
26
  ## Status / 查看状态
41
27
 
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("openclaw plugins uninstall openclaw-elys --force", {
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("Could not auto-remove plugin. Run manually: openclaw plugins uninstall openclaw-elys");
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openclaw-elys",
3
- "version": "1.4.4",
3
+ "version": "1.4.6",
4
4
  "description": "OpenClaw Elys channel plugin — connects to Elys App",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",