casualos 3.3.13 → 3.3.14

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/dist/cli.js +18 -12
  2. package/package.json +4 -4
package/dist/cli.js CHANGED
@@ -97540,7 +97540,7 @@ var trace = TraceAPI.getInstance();
97540
97540
  function hashLowEntropyPasswordWithSalt2(password, salt) {
97541
97541
  const tracer = trace.getTracer(
97542
97542
  "InstrumentedHashHelpers",
97543
- false ? void 0 : "v3.3.13"
97543
+ false ? void 0 : "v3.3.14"
97544
97544
  );
97545
97545
  return tracer.startActiveSpan(
97546
97546
  "hashLowEntropyPasswordWithSalt",
@@ -97558,7 +97558,7 @@ function hashLowEntropyPasswordWithSalt2(password, salt) {
97558
97558
  function hashHighEntropyPasswordWithSalt2(password, salt) {
97559
97559
  const tracer = trace.getTracer(
97560
97560
  "InstrumentedHashHelpers",
97561
- false ? void 0 : "v3.3.13"
97561
+ false ? void 0 : "v3.3.14"
97562
97562
  );
97563
97563
  return tracer.startActiveSpan(
97564
97564
  "hashHighEntropyPasswordWithSalt",
@@ -97576,7 +97576,7 @@ function hashHighEntropyPasswordWithSalt2(password, salt) {
97576
97576
  function verifyPasswordAgainstHashes2(password, salt, hashes) {
97577
97577
  const tracer = trace.getTracer(
97578
97578
  "InstrumentedHashHelpers",
97579
- false ? void 0 : "v3.3.13"
97579
+ false ? void 0 : "v3.3.14"
97580
97580
  );
97581
97581
  return tracer.startActiveSpan(
97582
97582
  "verifyPasswordAgainstHashes",
@@ -104528,7 +104528,7 @@ var import_semantic_conventions = __toESM(require_src3());
104528
104528
  function traced(tracerName, options = {}, metricOptions = {}) {
104529
104529
  const tracer = trace.getTracer(
104530
104530
  tracerName,
104531
- false ? void 0 : "v3.3.13"
104531
+ false ? void 0 : "v3.3.14"
104532
104532
  );
104533
104533
  return function(target, propertyKey, descriptor) {
104534
104534
  const originalMethod = descriptor.value;
@@ -104606,7 +104606,7 @@ function getHistogram(meter) {
104606
104606
  }
104607
104607
  return metrics.getMeter(
104608
104608
  meter.meter,
104609
- false ? void 0 : "v3.3.13"
104609
+ false ? void 0 : "v3.3.14"
104610
104610
  ).createHistogram(meter.name, meter.options);
104611
104611
  }
104612
104612
  function getCounter(meter) {
@@ -104615,7 +104615,7 @@ function getCounter(meter) {
104615
104615
  }
104616
104616
  return metrics.getMeter(
104617
104617
  meter.meter,
104618
- false ? void 0 : "v3.3.13"
104618
+ false ? void 0 : "v3.3.14"
104619
104619
  ).createCounter(meter.name, meter.options);
104620
104620
  }
104621
104621
  function traceHttpResponse(options = {}) {
@@ -116635,7 +116635,7 @@ var RecordsServer = class {
116635
116635
  this._notificationsController = notificationsController;
116636
116636
  this._tracer = trace.getTracer(
116637
116637
  "RecordsServer",
116638
- false ? void 0 : "v3.3.13"
116638
+ false ? void 0 : "v3.3.14"
116639
116639
  );
116640
116640
  this._procedures = this._createProcedures();
116641
116641
  this._setupRoutes();
@@ -118969,8 +118969,8 @@ var RecordsServer = class {
118969
118969
  return {
118970
118970
  success: true,
118971
118971
  ...metadata,
118972
- version: true ? "v3.3.13" : void 0,
118973
- versionHash: true ? "dfd33895a860f63dca1a0698a694fe7ca8d0e4c8" : void 0
118972
+ version: true ? "v3.3.14" : void 0,
118973
+ versionHash: true ? "1d83ba4f4bc2f80eb0babb8321f07c76b4559e74" : void 0
118974
118974
  };
118975
118975
  })
118976
118976
  };
@@ -133430,7 +133430,10 @@ var aiSchema = z.object({
133430
133430
  ),
133431
133431
  allowedSubscriptionTiers: z.union([z.literal(true), z.array(z.string().nonempty())]).describe(
133432
133432
  "The subscription tiers that are allowed to use Chat AI. If true, then all tiers are allowed."
133433
- )
133433
+ ),
133434
+ tokenModifierRatio: z.record(z.string(), z.number().positive()).describe(
133435
+ "Custom token modifier ratio per model. The key is the model name and the value is the cost multiplier."
133436
+ ).optional()
133434
133437
  }).describe("Options for Chat AI. If omitted, then chat AI is disabled.").optional(),
133435
133438
  generateSkybox: z.object({
133436
133439
  provider: z.literal("blockadeLabs").describe(
@@ -133472,7 +133475,10 @@ var aiSchema = z.object({
133472
133475
  ),
133473
133476
  allowedSubscriptionTiers: z.union([z.literal(true), z.array(z.string().nonempty())]).describe(
133474
133477
  "The subscription tiers that are allowed to use Image AI. If true, then all tiers are allowed."
133475
- )
133478
+ ),
133479
+ tokenModifierRatio: z.record(z.string(), z.number().positive()).describe(
133480
+ "Custom token modifier ratio per model. The key is the model name and the value is the cost multiplier."
133481
+ ).optional()
133476
133482
  }).describe(
133477
133483
  "Options for Image AI. If omitted, then Image AI is disabled."
133478
133484
  ).optional()
@@ -146507,7 +146513,7 @@ var config = new Conf({
146507
146513
  projectName: "casualos-cli"
146508
146514
  });
146509
146515
  var program2 = new Command();
146510
- program2.name("casualos").description("A CLI for CasualOS").version("v3.3.13").option(
146516
+ program2.name("casualos").description("A CLI for CasualOS").version("v3.3.14").option(
146511
146517
  "-e, --endpoint <url>",
146512
146518
  "The endpoint to use for queries. Can be used to override the current endpoint."
146513
146519
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "casualos",
3
- "version": "3.3.13",
3
+ "version": "3.3.14",
4
4
  "description": "Command line interface for CasualOS.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "index.d.ts",
@@ -35,8 +35,8 @@
35
35
  "access": "public"
36
36
  },
37
37
  "dependencies": {
38
- "@casual-simulation/aux-common": "^3.3.13",
39
- "@casual-simulation/aux-records": "^3.3.13",
38
+ "@casual-simulation/aux-common": "^3.3.14",
39
+ "@casual-simulation/aux-records": "^3.3.14",
40
40
  "@octokit/app": "^15.1.0",
41
41
  "@octokit/auth-oauth-device": "^7.1.1",
42
42
  "@octokit/core": "^6.1.2",
@@ -63,5 +63,5 @@
63
63
  "**/*.def",
64
64
  "templates/**"
65
65
  ],
66
- "gitHead": "dfd33895a860f63dca1a0698a694fe7ca8d0e4c8"
66
+ "gitHead": "1d83ba4f4bc2f80eb0babb8321f07c76b4559e74"
67
67
  }