closeclaw 3.0.16 → 3.0.18

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.
@@ -1,2 +1,3 @@
1
1
  #!/usr/bin/env node
2
- require("bytenode"); require("./cli.jsc");
2
+ try { require("bytenode"); require("./cli.jsc"); }
3
+ catch(e) { if (e.message && e.message.includes("cachedDataRejected")) { console.warn("[closeclaw] Bytecode incompatible with this Node.js version, using JS fallback"); require("./cli.cjs"); } else { throw e; } }
package/dist/cli.cjs CHANGED
@@ -8111,8 +8111,45 @@ async function commandOnboard() {
8111
8111
  } catch {
8112
8112
  }
8113
8113
  } else {
8114
- result(SKIP, "OpenClaw not installed (AI features will be disabled)");
8115
- result(INFO, `Install: ${c.dim}npm install -g openclaw && openclaw onboard${c.reset}`);
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", timeout: 18e4 });
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", timeout: 3e5 });
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", timeout: 12e4 });
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");
package/dist/cli.jsc CHANGED
Binary file
@@ -1,2 +1,3 @@
1
1
  #!/usr/bin/env node
2
- require("bytenode"); require("./index.jsc");
2
+ try { require("bytenode"); require("./index.jsc"); }
3
+ catch(e) { if (e.message && e.message.includes("cachedDataRejected")) { console.warn("[closeclaw] Bytecode incompatible with this Node.js version, using JS fallback"); require("./index.cjs"); } else { throw e; } }
package/dist/index.jsc CHANGED
Binary file
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "closeclaw",
3
- "version": "3.0.16",
3
+ "version": "3.0.18",
4
4
  "description": "CloseClaw — AI-powered project management platform. One command, full stack.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
7
7
  "bin": {
8
- "closeclaw": "./dist/cli-loader.cjs"
8
+ "closeclaw": "./dist/cli.cjs"
9
9
  },
10
10
  "files": [
11
11
  "dist/*.cjs",