closeclaw 3.0.5 → 3.0.7

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") {
@@ -458,13 +458,7 @@ function verifyLicense(key) {
458
458
  _devMode = false;
459
459
  return _license;
460
460
  } catch (err) {
461
- if (err instanceof jwt.TokenExpiredError) {
462
- throw new Error("License key has expired");
463
- }
464
- if (err instanceof jwt.JsonWebTokenError) {
465
- throw new Error(`Invalid license key: ${err.message}`);
466
- }
467
- throw err;
461
+ throw new Error(`Invalid license key: ${err.message || err}`);
468
462
  }
469
463
  }
470
464
  function checkFeature(feature) {
@@ -497,7 +491,7 @@ var init_license = __esm({
497
491
  import_node_crypto2 = require("crypto");
498
492
  init_connection();
499
493
  ED25519_PUBLIC_KEY_PEM = `-----BEGIN PUBLIC KEY-----
500
- MCowBQYDK2VwAyEA80iefuTEhFa8J4eGC4xiJACga87921vELYchFtEH7UY=
494
+ MCowBQYDK2VwAyEAZPoq2LHwMVyQCyLYXvp9MAO5R+tQ5vTS0ee/khHfqxc=
501
495
  -----END PUBLIC KEY-----`;
502
496
  _license = null;
503
497
  _devMode = false;
@@ -2274,13 +2268,13 @@ async function getInstallationToken(installationId) {
2274
2268
  if (cached && cached.expiresAt - Date.now() > TOKEN_REFRESH_BUFFER_MS) {
2275
2269
  return cached.token;
2276
2270
  }
2277
- const jwt3 = generateAppJWT();
2271
+ const jwt2 = generateAppJWT();
2278
2272
  const res = await fetch(
2279
2273
  `${GITHUB_API_BASE}/app/installations/${installationId}/access_tokens`,
2280
2274
  {
2281
2275
  method: "POST",
2282
2276
  headers: {
2283
- Authorization: `Bearer ${jwt3}`,
2277
+ Authorization: `Bearer ${jwt2}`,
2284
2278
  Accept: "application/vnd.github+json",
2285
2279
  "X-GitHub-Api-Version": "2022-11-28"
2286
2280
  }
@@ -2404,10 +2398,10 @@ async function getRepoInfo(installationId, owner, repo) {
2404
2398
  }
2405
2399
  async function findInstallationForRepo(owner, repo) {
2406
2400
  if (!GITHUB_APP_ID || !GITHUB_PRIVATE_KEY) return null;
2407
- const jwt3 = generateAppJWT();
2401
+ const jwt2 = generateAppJWT();
2408
2402
  const res = await fetch(`${GITHUB_API_BASE}/repos/${owner}/${repo}/installation`, {
2409
2403
  headers: {
2410
- Authorization: `Bearer ${jwt3}`,
2404
+ Authorization: `Bearer ${jwt2}`,
2411
2405
  Accept: "application/vnd.github+json",
2412
2406
  "X-GitHub-Api-Version": "2022-11-28"
2413
2407
  }
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.5",
3
+ "version": "3.0.7",
4
4
  "description": "CloseClaw — AI-powered project management platform. One command, full stack.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",