closeclaw 3.0.6 → 3.0.8

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 CHANGED
@@ -434,7 +434,7 @@ function verifyLicense(key) {
434
434
  if (!decoded.sub || typeof decoded.sub !== "string") {
435
435
  throw new Error("License missing 'sub' claim");
436
436
  }
437
- if (!decoded.org || typeof decoded.org !== "string") {
437
+ if (typeof decoded.org !== "string") {
438
438
  throw new Error("License missing 'org' claim");
439
439
  }
440
440
  if (!decoded.tier || typeof decoded.tier !== "string") {
@@ -491,7 +491,7 @@ var init_license = __esm({
491
491
  import_node_crypto2 = require("crypto");
492
492
  init_connection();
493
493
  ED25519_PUBLIC_KEY_PEM = `-----BEGIN PUBLIC KEY-----
494
- MCowBQYDK2VwAyEA80iefuTEhFa8J4eGC4xiJACga87921vELYchFtEH7UY=
494
+ MCowBQYDK2VwAyEAZPoq2LHwMVyQCyLYXvp9MAO5R+tQ5vTS0ee/khHfqxc=
495
495
  -----END PUBLIC KEY-----`;
496
496
  _license = null;
497
497
  _devMode = false;
@@ -7887,11 +7887,17 @@ function whichSync(bin) {
7887
7887
  }
7888
7888
  }
7889
7889
  function ask(question) {
7890
- const rl = (0, import_node_readline.createInterface)({ input: process.stdin, output: process.stdout });
7890
+ const rl = (0, import_node_readline.createInterface)({
7891
+ input: process.stdin,
7892
+ output: process.stdout,
7893
+ terminal: false
7894
+ // prevents line length truncation
7895
+ });
7896
+ process.stdout.write(question);
7891
7897
  return new Promise((resolve) => {
7892
- rl.question(question, (answer) => {
7898
+ rl.on("line", (line) => {
7893
7899
  rl.close();
7894
- resolve(answer.trim());
7900
+ resolve(line.trim());
7895
7901
  });
7896
7902
  });
7897
7903
  }
@@ -7960,14 +7966,16 @@ async function commandOnboard() {
7960
7966
  result(INFO, `Key: ${c.dim}${licenseKey.substring(0, 30)}...${c.reset}`);
7961
7967
  } else {
7962
7968
  result(INFO, "No license key found.");
7963
- const key = await ask(` Enter your license key (or 'dev' for development mode): `);
7969
+ console.log(` Enter ${c.cyan}dev${c.reset} for development mode, or paste your license key below:`);
7970
+ console.log("");
7971
+ const key = await ask(` > `);
7964
7972
  if (key === "dev" || key === "development") {
7965
7973
  process.env.NODE_ENV = "development";
7966
7974
  result(WARN, "Development mode \u2014 no license required");
7967
7975
  } else if (key) {
7968
7976
  licenseKey = key;
7969
7977
  saveLicenseKey(key);
7970
- result(PASS, `License key saved to ${c.dim}~/.closeclaw/license.key${c.reset}`);
7978
+ result(PASS, "License key saved");
7971
7979
  } else {
7972
7980
  result(FAIL, "No key provided. Get one from your administrator.");
7973
7981
  process.exit(1);
package/dist/cli.jsc CHANGED
Binary file
package/dist/index.jsc CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "closeclaw",
3
- "version": "3.0.6",
3
+ "version": "3.0.8",
4
4
  "description": "CloseClaw — AI-powered project management platform. One command, full stack.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",