brainjar 0.3.1230 → 0.3.1232

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.
Files changed (2) hide show
  1. package/brainjar.js +16 -14
  2. package/package.json +1 -1
package/brainjar.js CHANGED
@@ -107,7 +107,7 @@ var CLI_VERSION, CACHE, DAY;
107
107
  var init_version_check = __esm({
108
108
  "packages/cli/src/version-check.ts"() {
109
109
  "use strict";
110
- CLI_VERSION = "0.3.1230";
110
+ CLI_VERSION = "0.3.1232";
111
111
  CACHE = path.join(os.homedir(), ".brainjar", "version-check.json");
112
112
  DAY = 864e5;
113
113
  }
@@ -6539,6 +6539,18 @@ var init_settings = __esm({
6539
6539
  }
6540
6540
  });
6541
6541
 
6542
+ // packages/db/src/health.ts
6543
+ var NO_WORKER_SECONDS, PROVIDER_FRESH_MS;
6544
+ var init_health = __esm({
6545
+ "packages/db/src/health.ts"() {
6546
+ "use strict";
6547
+ init_pool();
6548
+ init_settings();
6549
+ NO_WORKER_SECONDS = 5 * 60;
6550
+ PROVIDER_FRESH_MS = 10 * 6e4;
6551
+ }
6552
+ });
6553
+
6542
6554
  // packages/db/src/license-key.ts
6543
6555
  var LICENSE_PUBLIC_KEY;
6544
6556
  var init_license_key = __esm({
@@ -6553,15 +6565,17 @@ MCowBQYDK2VwAyEAKOUWx/Qgav+dKg78fIlckGby22CRKeuMWR5tkT1rYuw=
6553
6565
 
6554
6566
  // packages/db/src/plan.ts
6555
6567
  import { createPublicKey, sign, verify } from "node:crypto";
6556
- var trustedKeys, PAID_STATUSES;
6568
+ var trustedKeys, RENEW_AFTER_MS, PAID_STATUSES;
6557
6569
  var init_plan = __esm({
6558
6570
  "packages/db/src/plan.ts"() {
6559
6571
  "use strict";
6560
6572
  init_src();
6561
6573
  init_pool();
6562
6574
  init_settings();
6575
+ init_health();
6563
6576
  init_license_key();
6564
6577
  trustedKeys = [createPublicKey(LICENSE_PUBLIC_KEY)];
6578
+ RENEW_AFTER_MS = 20 * 36e5;
6565
6579
  PAID_STATUSES = ["active", "trialing", "past_due"];
6566
6580
  }
6567
6581
  });
@@ -8183,18 +8197,6 @@ var init_tickets = __esm({
8183
8197
  }
8184
8198
  });
8185
8199
 
8186
- // packages/db/src/health.ts
8187
- var NO_WORKER_SECONDS, PROVIDER_FRESH_MS;
8188
- var init_health = __esm({
8189
- "packages/db/src/health.ts"() {
8190
- "use strict";
8191
- init_pool();
8192
- init_settings();
8193
- NO_WORKER_SECONDS = 5 * 60;
8194
- PROVIDER_FRESH_MS = 10 * 6e4;
8195
- }
8196
- });
8197
-
8198
8200
  // packages/db/src/spend.ts
8199
8201
  function dayKey(at = /* @__PURE__ */ new Date()) {
8200
8202
  return `day:${at.toISOString().slice(0, 10)}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "brainjar",
3
- "version": "0.3.1230",
3
+ "version": "0.3.1232",
4
4
  "description": "BrainJar CLI: turn a repository into a live, self-documenting Brain.",
5
5
  "type": "module",
6
6
  "bin": {