brainjar 0.3.1224 → 0.3.1228
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/brainjar.js +21 -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.
|
|
110
|
+
CLI_VERSION = "0.3.1228";
|
|
111
111
|
CACHE = path.join(os.homedir(), ".brainjar", "version-check.json");
|
|
112
112
|
DAY = 864e5;
|
|
113
113
|
}
|
|
@@ -6517,7 +6517,14 @@ var init_settings = __esm({
|
|
|
6517
6517
|
// a provider limit has less than this share left
|
|
6518
6518
|
// The self-host license token (BJ-132), pasted on Operator > Plan; BRAINJAR_LICENSE_TOKEN
|
|
6519
6519
|
// overrides. Signed, so it is checked on every read, never trusted as stored.
|
|
6520
|
-
"license_token"
|
|
6520
|
+
"license_token",
|
|
6521
|
+
// Billing on the SaaS instance (BJ-132 step 2): the Stripe price ids that sell each plan and
|
|
6522
|
+
// license, and the consent text buyers confirm in checkout (EU right of withdrawal).
|
|
6523
|
+
"stripe_price_pro",
|
|
6524
|
+
"stripe_price_company",
|
|
6525
|
+
"stripe_price_license_pro",
|
|
6526
|
+
"stripe_price_license_company",
|
|
6527
|
+
"billing_consent_text"
|
|
6521
6528
|
];
|
|
6522
6529
|
PROVIDER_KEY_SETTINGS = {
|
|
6523
6530
|
anthropic: "anthropic_api_key",
|
|
@@ -8234,6 +8241,17 @@ var init_spend = __esm({
|
|
|
8234
8241
|
}
|
|
8235
8242
|
});
|
|
8236
8243
|
|
|
8244
|
+
// packages/db/src/billing.ts
|
|
8245
|
+
var init_billing = __esm({
|
|
8246
|
+
"packages/db/src/billing.ts"() {
|
|
8247
|
+
"use strict";
|
|
8248
|
+
init_src();
|
|
8249
|
+
init_pool();
|
|
8250
|
+
init_settings();
|
|
8251
|
+
init_plan();
|
|
8252
|
+
}
|
|
8253
|
+
});
|
|
8254
|
+
|
|
8237
8255
|
// packages/db/src/provider-rate.ts
|
|
8238
8256
|
async function saveRate(keyId2, model, s, pool2 = getPool()) {
|
|
8239
8257
|
await pool2.query(
|
|
@@ -8355,6 +8373,7 @@ var init_src2 = __esm({
|
|
|
8355
8373
|
init_health();
|
|
8356
8374
|
init_spend();
|
|
8357
8375
|
init_plan();
|
|
8376
|
+
init_billing();
|
|
8358
8377
|
init_provider_rate();
|
|
8359
8378
|
init_ruleset();
|
|
8360
8379
|
init_usage();
|