closeclaw 3.0.15 → 3.0.17
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-loader.cjs +2 -1
- package/dist/cli.cjs +26 -6
- package/dist/cli.jsc +0 -0
- package/dist/index-loader.cjs +2 -1
- package/dist/index.jsc +0 -0
- package/package.json +2 -2
package/dist/cli-loader.cjs
CHANGED
|
@@ -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
|
@@ -8422,16 +8422,32 @@ async function commandStart(args) {
|
|
|
8422
8422
|
const caddyBin = (0, import_node_path6.join)(CONFIG_DIR, "bin", "caddy");
|
|
8423
8423
|
if ((0, import_node_fs7.existsSync)(caddyBin)) {
|
|
8424
8424
|
console.log(` ${c.dim}Starting Caddy reverse proxy for ${effectiveDomain}...${c.reset}`);
|
|
8425
|
+
const caddyfilePath = (0, import_node_path6.join)(CONFIG_DIR, "Caddyfile");
|
|
8426
|
+
const caddyfileContent = [
|
|
8427
|
+
`${effectiveDomain} {`,
|
|
8428
|
+
` # OpenClaw dashboard \u2014 proxied at /openclaw/`,
|
|
8429
|
+
` # Protected by OpenClaw's own token auth`,
|
|
8430
|
+
` handle_path /openclaw/* {`,
|
|
8431
|
+
` reverse_proxy localhost:18789`,
|
|
8432
|
+
` }`,
|
|
8433
|
+
``,
|
|
8434
|
+
` # CloseClaw platform \u2014 everything else`,
|
|
8435
|
+
` handle {`,
|
|
8436
|
+
` reverse_proxy localhost:${port2}`,
|
|
8437
|
+
` }`,
|
|
8438
|
+
`}`
|
|
8439
|
+
].join("\n");
|
|
8440
|
+
(0, import_node_fs7.writeFileSync)(caddyfilePath, caddyfileContent);
|
|
8425
8441
|
const { spawn: spawnChild } = require("child_process");
|
|
8426
8442
|
caddyProcess = spawnChild(caddyBin, [
|
|
8427
|
-
"
|
|
8428
|
-
"--
|
|
8429
|
-
|
|
8430
|
-
"--to",
|
|
8431
|
-
`localhost:${port2}`
|
|
8443
|
+
"run",
|
|
8444
|
+
"--config",
|
|
8445
|
+
caddyfilePath
|
|
8432
8446
|
], {
|
|
8433
8447
|
stdio: ["ignore", "pipe", "pipe"],
|
|
8434
|
-
detached: false
|
|
8448
|
+
detached: false,
|
|
8449
|
+
env: { ...process.env, HOME: CONFIG_DIR }
|
|
8450
|
+
// Caddy stores certs here
|
|
8435
8451
|
});
|
|
8436
8452
|
caddyProcess.stdout?.on("data", (d) => {
|
|
8437
8453
|
const msg = d.toString().trim();
|
|
@@ -8475,6 +8491,10 @@ async function commandStart(args) {
|
|
|
8475
8491
|
}
|
|
8476
8492
|
if (publicUrl) {
|
|
8477
8493
|
console.log(` ${c.green}${c.bold}\u2551${c.reset} ${c.dim}SSL: auto (Let's Encrypt via Caddy)${" ".repeat(5)}${c.reset}${c.green}${c.bold}\u2551${c.reset}`);
|
|
8494
|
+
if (openclawPath) {
|
|
8495
|
+
const ocUrl = `https://${effectiveDomain}/openclaw/`;
|
|
8496
|
+
console.log(` ${c.green}${c.bold}\u2551${c.reset} ${c.dim}OpenClaw UI: ${ocUrl.padEnd(28)}${c.reset}${c.green}${c.bold}\u2551${c.reset}`);
|
|
8497
|
+
}
|
|
8478
8498
|
}
|
|
8479
8499
|
console.log(` ${c.green}${c.bold}\u2551 \u2551${c.reset}`);
|
|
8480
8500
|
console.log(` ${c.green}${c.bold}\u255A\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255D${c.reset}`);
|
package/dist/cli.jsc
CHANGED
|
Binary file
|
package/dist/index-loader.cjs
CHANGED
|
@@ -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.
|
|
3
|
+
"version": "3.0.17",
|
|
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
|
|
8
|
+
"closeclaw": "./dist/cli.cjs"
|
|
9
9
|
},
|
|
10
10
|
"files": [
|
|
11
11
|
"dist/*.cjs",
|