openclaw-elys 1.4.5 → 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.
Files changed (2) hide show
  1. package/dist/src/cli.js +13 -3
  2. package/package.json +1 -1
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.5",
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",