closeclaw 3.0.17 → 3.0.19
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 +42 -5
- package/dist/cli.jsc +0 -0
- package/dist/index.jsc +0 -0
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -8079,7 +8079,7 @@ async function commandOnboard() {
|
|
|
8079
8079
|
if (resolved) {
|
|
8080
8080
|
(0, import_node_child_process3.execSync)(`${openclawPath} plugins install -l "${resolved}"`, { stdio: "pipe" });
|
|
8081
8081
|
} else {
|
|
8082
|
-
(0, import_node_child_process3.execSync)(`${openclawPath} plugins install @prajwalshete/platform-tools`, { stdio: "inherit"
|
|
8082
|
+
(0, import_node_child_process3.execSync)(`${openclawPath} plugins install @prajwalshete/platform-tools`, { stdio: "inherit" });
|
|
8083
8083
|
}
|
|
8084
8084
|
result(PASS, "platform-tools plugin installed");
|
|
8085
8085
|
} catch (err) {
|
|
@@ -8111,8 +8111,45 @@ async function commandOnboard() {
|
|
|
8111
8111
|
} catch {
|
|
8112
8112
|
}
|
|
8113
8113
|
} else {
|
|
8114
|
-
result(
|
|
8115
|
-
|
|
8114
|
+
result(FAIL, "OpenClaw is not installed \u2014 it's required for AI features");
|
|
8115
|
+
console.log("");
|
|
8116
|
+
const installOC = await ask(` Install OpenClaw now? ${c.dim}(Y/n)${c.reset} `);
|
|
8117
|
+
if (!installOC || installOC.toLowerCase() === "y" || installOC.toLowerCase() === "yes") {
|
|
8118
|
+
try {
|
|
8119
|
+
result(INFO, "Installing OpenClaw (this may take a minute)...");
|
|
8120
|
+
(0, import_node_child_process3.execSync)("npm install -g openclaw@latest", { stdio: "inherit" });
|
|
8121
|
+
result(PASS, "OpenClaw installed");
|
|
8122
|
+
console.log("");
|
|
8123
|
+
result(INFO, "Running OpenClaw onboard (first-time setup)...");
|
|
8124
|
+
console.log(` ${c.dim}This will set up your device identity and gateway token.${c.reset}`);
|
|
8125
|
+
console.log("");
|
|
8126
|
+
(0, import_node_child_process3.execSync)("openclaw onboard", { stdio: "inherit" });
|
|
8127
|
+
result(PASS, "OpenClaw onboarded");
|
|
8128
|
+
const ocPath = whichSync("openclaw");
|
|
8129
|
+
if (ocPath) {
|
|
8130
|
+
try {
|
|
8131
|
+
const plugins = (0, import_node_child_process3.execSync)(`${ocPath} plugins list 2>/dev/null || true`, { encoding: "utf-8" });
|
|
8132
|
+
if (!plugins.includes("platform-tools")) {
|
|
8133
|
+
result(INFO, "Installing platform-tools plugin...");
|
|
8134
|
+
(0, import_node_child_process3.execSync)(`${ocPath} plugins install @prajwalshete/platform-tools`, { stdio: "inherit" });
|
|
8135
|
+
result(PASS, "platform-tools plugin installed");
|
|
8136
|
+
}
|
|
8137
|
+
} catch {
|
|
8138
|
+
}
|
|
8139
|
+
}
|
|
8140
|
+
} catch (err) {
|
|
8141
|
+
result(FAIL, `Installation failed: ${err.message?.split("\n")[0] || err}`);
|
|
8142
|
+
console.log("");
|
|
8143
|
+
console.log(` ${c.yellow}Install manually and re-run onboard:${c.reset}`);
|
|
8144
|
+
console.log(` ${c.dim}npm install -g openclaw && openclaw onboard${c.reset}`);
|
|
8145
|
+
process.exit(1);
|
|
8146
|
+
}
|
|
8147
|
+
} else {
|
|
8148
|
+
console.log("");
|
|
8149
|
+
result(FAIL, "OpenClaw is required. Cannot continue without it.");
|
|
8150
|
+
console.log(` ${c.dim}Install with: npm install -g openclaw && openclaw onboard${c.reset}`);
|
|
8151
|
+
process.exit(1);
|
|
8152
|
+
}
|
|
8116
8153
|
}
|
|
8117
8154
|
step(7, TOTAL_STEPS, "GitHub Integration (optional)");
|
|
8118
8155
|
const configPath = (0, import_node_path6.join)(CONFIG_DIR, "config.json");
|
|
@@ -8250,10 +8287,10 @@ async function commandOnboard() {
|
|
|
8250
8287
|
const url = `https://github.com/caddyserver/caddy/releases/download/v${version2}/caddy_${version2}_${caddyOS}_${caddyArch}.${ext}`;
|
|
8251
8288
|
result(INFO, `Downloading from ${c.dim}${url}${c.reset}`);
|
|
8252
8289
|
if (ext === "tar.gz") {
|
|
8253
|
-
(0, import_node_child_process3.execSync)(`curl -fsSL "${url}" | tar xz -C "${caddyDir}" caddy`, { stdio: "pipe"
|
|
8290
|
+
(0, import_node_child_process3.execSync)(`curl -fsSL "${url}" | tar xz -C "${caddyDir}" caddy`, { stdio: "pipe" });
|
|
8254
8291
|
} else {
|
|
8255
8292
|
const tmpZip = (0, import_node_path6.join)(caddyDir, "caddy.zip");
|
|
8256
|
-
(0, import_node_child_process3.execSync)(`curl -fsSL -o "${tmpZip}" "${url}"`, { stdio: "pipe"
|
|
8293
|
+
(0, import_node_child_process3.execSync)(`curl -fsSL -o "${tmpZip}" "${url}"`, { stdio: "pipe" });
|
|
8257
8294
|
(0, import_node_child_process3.execSync)(`unzip -o -j "${tmpZip}" caddy -d "${caddyDir}"`, { stdio: "pipe" });
|
|
8258
8295
|
(0, import_node_fs7.unlinkSync)(tmpZip);
|
|
8259
8296
|
}
|
package/dist/cli.jsc
CHANGED
|
Binary file
|
package/dist/index.jsc
CHANGED
|
Binary file
|