closeclaw 3.0.8 → 3.0.10
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/cli.cjs +12 -11
- package/dist/cli.jsc +0 -0
- package/dist/index.jsc +0 -0
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -8070,19 +8070,20 @@ async function commandOnboard() {
|
|
|
8070
8070
|
if (plugins.includes("platform-tools")) {
|
|
8071
8071
|
result(PASS, "platform-tools plugin installed");
|
|
8072
8072
|
} else {
|
|
8073
|
-
result(
|
|
8074
|
-
|
|
8075
|
-
|
|
8076
|
-
|
|
8077
|
-
|
|
8078
|
-
|
|
8073
|
+
result(INFO, "platform-tools plugin not found \u2014 installing...");
|
|
8074
|
+
try {
|
|
8075
|
+
const pluginDir = (0, import_node_path6.join)(__dirname, "..", "packages", "platform-tools");
|
|
8076
|
+
const altDir = (0, import_node_path6.join)(__dirname, "..", "..", "platform-tools");
|
|
8077
|
+
const resolved = (0, import_node_fs7.existsSync)((0, import_node_path6.join)(pluginDir, "package.json")) ? pluginDir : (0, import_node_fs7.existsSync)((0, import_node_path6.join)(altDir, "package.json")) ? altDir : null;
|
|
8078
|
+
if (resolved) {
|
|
8079
8079
|
(0, import_node_child_process3.execSync)(`${openclawPath} plugins install -l "${resolved}"`, { stdio: "pipe" });
|
|
8080
|
-
|
|
8081
|
-
|
|
8082
|
-
result(WARN, `Auto-install failed. Run manually: ${c.dim}openclaw plugins install @prajwalshete/platform-tools${c.reset}`);
|
|
8080
|
+
} else {
|
|
8081
|
+
(0, import_node_child_process3.execSync)(`${openclawPath} plugins install @prajwalshete/platform-tools`, { stdio: "inherit", timeout: 12e4 });
|
|
8083
8082
|
}
|
|
8084
|
-
|
|
8085
|
-
|
|
8083
|
+
result(PASS, "platform-tools plugin installed");
|
|
8084
|
+
} catch (err) {
|
|
8085
|
+
result(FAIL, `Could not install plugin: ${err.message?.split("\n")[0] || err}`);
|
|
8086
|
+
result(INFO, `Try manually: ${c.dim}openclaw plugins install @prajwalshete/platform-tools${c.reset}`);
|
|
8086
8087
|
}
|
|
8087
8088
|
}
|
|
8088
8089
|
} catch {
|
package/dist/cli.jsc
CHANGED
|
Binary file
|
package/dist/index.jsc
CHANGED
|
Binary file
|