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.
- package/dist/src/cli.js +13 -3
- 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(
|
|
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
|
}
|