@base44-preview/cli 0.1.8-pr.600.002d9ac → 0.1.9-pr.555.465f5ca

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/index.js CHANGED
@@ -12978,12 +12978,12 @@ var require_schema = __commonJS((exports, module) => {
12978
12978
  var common = require_common3();
12979
12979
  var YAMLException = require_exception();
12980
12980
  var Type = require_type();
12981
- function compileList(schema2, name2, result) {
12981
+ function compileList(schema3, name2, result) {
12982
12982
  var exclude = [];
12983
- schema2.include.forEach(function(includedSchema) {
12983
+ schema3.include.forEach(function(includedSchema) {
12984
12984
  result = compileList(includedSchema, name2, result);
12985
12985
  });
12986
- schema2[name2].forEach(function(currentType) {
12986
+ schema3[name2].forEach(function(currentType) {
12987
12987
  result.forEach(function(previousType, previousIndex) {
12988
12988
  if (previousType.tag === currentType.tag && previousType.kind === currentType.kind) {
12989
12989
  exclude.push(previousIndex);
@@ -13040,8 +13040,8 @@ var require_schema = __commonJS((exports, module) => {
13040
13040
  }
13041
13041
  schemas3 = common.toArray(schemas3);
13042
13042
  types = common.toArray(types);
13043
- if (!schemas3.every(function(schema2) {
13044
- return schema2 instanceof Schema;
13043
+ if (!schemas3.every(function(schema3) {
13044
+ return schema3 instanceof Schema;
13045
13045
  })) {
13046
13046
  throw new YAMLException("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");
13047
13047
  }
@@ -15062,7 +15062,7 @@ var require_dumper = __commonJS((exports, module) => {
15062
15062
  "Off",
15063
15063
  "OFF"
15064
15064
  ];
15065
- function compileStyleMap(schema2, map2) {
15065
+ function compileStyleMap(schema3, map2) {
15066
15066
  var result, keys, index, length, tag, style, type;
15067
15067
  if (map2 === null)
15068
15068
  return {};
@@ -15074,7 +15074,7 @@ var require_dumper = __commonJS((exports, module) => {
15074
15074
  if (tag.slice(0, 2) === "!!") {
15075
15075
  tag = "tag:yaml.org,2002:" + tag.slice(2);
15076
15076
  }
15077
- type = schema2.compiledTypeMap["fallback"][tag];
15077
+ type = schema3.compiledTypeMap["fallback"][tag];
15078
15078
  if (type && _hasOwnProperty.call(type.styleAliases, style)) {
15079
15079
  style = type.styleAliases[style];
15080
15080
  }
@@ -16369,7 +16369,7 @@ var require_createNode = __commonJS((exports) => {
16369
16369
  if (value instanceof String || value instanceof Number || value instanceof Boolean || typeof BigInt !== "undefined" && value instanceof BigInt) {
16370
16370
  value = value.valueOf();
16371
16371
  }
16372
- const { aliasDuplicateObjects, onAnchor, onTagObj, schema: schema2, sourceObjects } = ctx;
16372
+ const { aliasDuplicateObjects, onAnchor, onTagObj, schema: schema3, sourceObjects } = ctx;
16373
16373
  let ref = undefined;
16374
16374
  if (aliasDuplicateObjects && value && typeof value === "object") {
16375
16375
  ref = sourceObjects.get(value);
@@ -16383,7 +16383,7 @@ var require_createNode = __commonJS((exports) => {
16383
16383
  }
16384
16384
  if (tagName?.startsWith("!!"))
16385
16385
  tagName = defaultTagPrefix + tagName.slice(2);
16386
- let tagObj = findTagObject(value, tagName, schema2.tags);
16386
+ let tagObj = findTagObject(value, tagName, schema3.tags);
16387
16387
  if (!tagObj) {
16388
16388
  if (value && typeof value.toJSON === "function") {
16389
16389
  value = value.toJSON();
@@ -16394,7 +16394,7 @@ var require_createNode = __commonJS((exports) => {
16394
16394
  ref.node = node2;
16395
16395
  return node2;
16396
16396
  }
16397
- tagObj = value instanceof Map ? schema2[identity.MAP] : (Symbol.iterator in Object(value)) ? schema2[identity.SEQ] : schema2[identity.MAP];
16397
+ tagObj = value instanceof Map ? schema3[identity.MAP] : (Symbol.iterator in Object(value)) ? schema3[identity.SEQ] : schema3[identity.MAP];
16398
16398
  }
16399
16399
  if (onTagObj) {
16400
16400
  onTagObj(tagObj);
@@ -16417,7 +16417,7 @@ var require_Collection = __commonJS((exports) => {
16417
16417
  var createNode = require_createNode();
16418
16418
  var identity = require_identity();
16419
16419
  var Node2 = require_Node();
16420
- function collectionFromPath(schema2, path11, value) {
16420
+ function collectionFromPath(schema3, path11, value) {
16421
16421
  let v = value;
16422
16422
  for (let i = path11.length - 1;i >= 0; --i) {
16423
16423
  const k2 = path11[i];
@@ -16435,27 +16435,27 @@ var require_Collection = __commonJS((exports) => {
16435
16435
  onAnchor: () => {
16436
16436
  throw new Error("This should not happen, please report a bug.");
16437
16437
  },
16438
- schema: schema2,
16438
+ schema: schema3,
16439
16439
  sourceObjects: new Map
16440
16440
  });
16441
16441
  }
16442
16442
  var isEmptyPath = (path11) => path11 == null || typeof path11 === "object" && !!path11[Symbol.iterator]().next().done;
16443
16443
 
16444
16444
  class Collection extends Node2.NodeBase {
16445
- constructor(type, schema2) {
16445
+ constructor(type, schema3) {
16446
16446
  super(type);
16447
16447
  Object.defineProperty(this, "schema", {
16448
- value: schema2,
16448
+ value: schema3,
16449
16449
  configurable: true,
16450
16450
  enumerable: false,
16451
16451
  writable: true
16452
16452
  });
16453
16453
  }
16454
- clone(schema2) {
16454
+ clone(schema3) {
16455
16455
  const copy = Object.create(Object.getPrototypeOf(this), Object.getOwnPropertyDescriptors(this));
16456
- if (schema2)
16457
- copy.schema = schema2;
16458
- copy.items = copy.items.map((it3) => identity.isNode(it3) || identity.isPair(it3) ? it3.clone(schema2) : it3);
16456
+ if (schema3)
16457
+ copy.schema = schema3;
16458
+ copy.items = copy.items.map((it3) => identity.isNode(it3) || identity.isPair(it3) ? it3.clone(schema3) : it3);
16459
16459
  if (this.range)
16460
16460
  copy.range = this.range.slice();
16461
16461
  return copy;
@@ -17387,12 +17387,12 @@ var require_Pair = __commonJS((exports) => {
17387
17387
  this.key = key;
17388
17388
  this.value = value;
17389
17389
  }
17390
- clone(schema2) {
17390
+ clone(schema3) {
17391
17391
  let { key, value } = this;
17392
17392
  if (identity.isNode(key))
17393
- key = key.clone(schema2);
17393
+ key = key.clone(schema3);
17394
17394
  if (identity.isNode(value))
17395
- value = value.clone(schema2);
17395
+ value = value.clone(schema3);
17396
17396
  return new Pair(key, value);
17397
17397
  }
17398
17398
  toJSON(_2, ctx) {
@@ -17577,13 +17577,13 @@ var require_YAMLMap = __commonJS((exports) => {
17577
17577
  static get tagName() {
17578
17578
  return "tag:yaml.org,2002:map";
17579
17579
  }
17580
- constructor(schema2) {
17581
- super(identity.MAP, schema2);
17580
+ constructor(schema3) {
17581
+ super(identity.MAP, schema3);
17582
17582
  this.items = [];
17583
17583
  }
17584
- static from(schema2, obj, ctx) {
17584
+ static from(schema3, obj, ctx) {
17585
17585
  const { keepUndefined, replacer } = ctx;
17586
- const map2 = new this(schema2);
17586
+ const map2 = new this(schema3);
17587
17587
  const add = (key, value) => {
17588
17588
  if (typeof replacer === "function")
17589
17589
  value = replacer.call(obj, key, value);
@@ -17599,8 +17599,8 @@ var require_YAMLMap = __commonJS((exports) => {
17599
17599
  for (const key of Object.keys(obj))
17600
17600
  add(key, obj[key]);
17601
17601
  }
17602
- if (typeof schema2.sortMapEntries === "function") {
17603
- map2.items.sort(schema2.sortMapEntries);
17602
+ if (typeof schema3.sortMapEntries === "function") {
17603
+ map2.items.sort(schema3.sortMapEntries);
17604
17604
  }
17605
17605
  return map2;
17606
17606
  }
@@ -17693,7 +17693,7 @@ var require_map2 = __commonJS((exports) => {
17693
17693
  onError("Expected a mapping for this tag");
17694
17694
  return map3;
17695
17695
  },
17696
- createNode: (schema2, obj, ctx) => YAMLMap.YAMLMap.from(schema2, obj, ctx)
17696
+ createNode: (schema3, obj, ctx) => YAMLMap.YAMLMap.from(schema3, obj, ctx)
17697
17697
  };
17698
17698
  exports.map = map2;
17699
17699
  });
@@ -17711,8 +17711,8 @@ var require_YAMLSeq = __commonJS((exports) => {
17711
17711
  static get tagName() {
17712
17712
  return "tag:yaml.org,2002:seq";
17713
17713
  }
17714
- constructor(schema2) {
17715
- super(identity.SEQ, schema2);
17714
+ constructor(schema3) {
17715
+ super(identity.SEQ, schema3);
17716
17716
  this.items = [];
17717
17717
  }
17718
17718
  add(value) {
@@ -17766,9 +17766,9 @@ var require_YAMLSeq = __commonJS((exports) => {
17766
17766
  onComment
17767
17767
  });
17768
17768
  }
17769
- static from(schema2, obj, ctx) {
17769
+ static from(schema3, obj, ctx) {
17770
17770
  const { replacer } = ctx;
17771
- const seq = new this(schema2);
17771
+ const seq = new this(schema3);
17772
17772
  if (obj && Symbol.iterator in Object(obj)) {
17773
17773
  let i = 0;
17774
17774
  for (let it3 of obj) {
@@ -17805,7 +17805,7 @@ var require_seq2 = __commonJS((exports) => {
17805
17805
  onError("Expected a sequence for this tag");
17806
17806
  return seq2;
17807
17807
  },
17808
- createNode: (schema2, obj, ctx) => YAMLSeq.YAMLSeq.from(schema2, obj, ctx)
17808
+ createNode: (schema3, obj, ctx) => YAMLSeq.YAMLSeq.from(schema3, obj, ctx)
17809
17809
  };
17810
17810
  exports.seq = seq;
17811
17811
  });
@@ -17980,7 +17980,7 @@ var require_schema2 = __commonJS((exports) => {
17980
17980
  var bool = require_bool2();
17981
17981
  var float = require_float2();
17982
17982
  var int2 = require_int2();
17983
- var schema2 = [
17983
+ var schema3 = [
17984
17984
  map2.map,
17985
17985
  seq.seq,
17986
17986
  string4.string,
@@ -17993,7 +17993,7 @@ var require_schema2 = __commonJS((exports) => {
17993
17993
  float.floatExp,
17994
17994
  float.float
17995
17995
  ];
17996
- exports.schema = schema2;
17996
+ exports.schema = schema3;
17997
17997
  });
17998
17998
 
17999
17999
  // ../../node_modules/yaml/dist/schema/json/schema.js
@@ -18056,8 +18056,8 @@ var require_schema3 = __commonJS((exports) => {
18056
18056
  return str;
18057
18057
  }
18058
18058
  };
18059
- var schema2 = [map2.map, seq.seq].concat(jsonScalars, jsonError);
18060
- exports.schema = schema2;
18059
+ var schema3 = [map2.map, seq.seq].concat(jsonScalars, jsonError);
18060
+ exports.schema = schema3;
18061
18061
  });
18062
18062
 
18063
18063
  // ../../node_modules/yaml/dist/schema/yaml-1.1/binary.js
@@ -18147,9 +18147,9 @@ ${cn.comment}` : item.comment;
18147
18147
  onError("Expected a sequence for this tag");
18148
18148
  return seq;
18149
18149
  }
18150
- function createPairs(schema2, iterable, ctx) {
18150
+ function createPairs(schema3, iterable, ctx) {
18151
18151
  const { replacer } = ctx;
18152
- const pairs2 = new YAMLSeq.YAMLSeq(schema2);
18152
+ const pairs2 = new YAMLSeq.YAMLSeq(schema3);
18153
18153
  pairs2.tag = "tag:yaml.org,2002:pairs";
18154
18154
  let i = 0;
18155
18155
  if (iterable && Symbol.iterator in Object(iterable))
@@ -18228,8 +18228,8 @@ var require_omap2 = __commonJS((exports) => {
18228
18228
  }
18229
18229
  return map2;
18230
18230
  }
18231
- static from(schema2, iterable, ctx) {
18232
- const pairs$1 = pairs.createPairs(schema2, iterable, ctx);
18231
+ static from(schema3, iterable, ctx) {
18232
+ const pairs$1 = pairs.createPairs(schema3, iterable, ctx);
18233
18233
  const omap2 = new this;
18234
18234
  omap2.items = pairs$1.items;
18235
18235
  return omap2;
@@ -18256,7 +18256,7 @@ var require_omap2 = __commonJS((exports) => {
18256
18256
  }
18257
18257
  return Object.assign(new YAMLOMap, pairs$1);
18258
18258
  },
18259
- createNode: (schema2, iterable, ctx) => YAMLOMap.from(schema2, iterable, ctx)
18259
+ createNode: (schema3, iterable, ctx) => YAMLOMap.from(schema3, iterable, ctx)
18260
18260
  };
18261
18261
  exports.YAMLOMap = YAMLOMap;
18262
18262
  exports.omap = omap;
@@ -18420,8 +18420,8 @@ var require_set2 = __commonJS((exports) => {
18420
18420
  var YAMLMap = require_YAMLMap();
18421
18421
 
18422
18422
  class YAMLSet extends YAMLMap.YAMLMap {
18423
- constructor(schema2) {
18424
- super(schema2);
18423
+ constructor(schema3) {
18424
+ super(schema3);
18425
18425
  this.tag = YAMLSet.tag;
18426
18426
  }
18427
18427
  add(key) {
@@ -18461,9 +18461,9 @@ var require_set2 = __commonJS((exports) => {
18461
18461
  else
18462
18462
  throw new Error("Set items must all have null values");
18463
18463
  }
18464
- static from(schema2, iterable, ctx) {
18464
+ static from(schema3, iterable, ctx) {
18465
18465
  const { replacer } = ctx;
18466
- const set3 = new this(schema2);
18466
+ const set3 = new this(schema3);
18467
18467
  if (iterable && Symbol.iterator in Object(iterable))
18468
18468
  for (let value of iterable) {
18469
18469
  if (typeof replacer === "function")
@@ -18480,7 +18480,7 @@ var require_set2 = __commonJS((exports) => {
18480
18480
  nodeClass: YAMLSet,
18481
18481
  default: false,
18482
18482
  tag: "tag:yaml.org,2002:set",
18483
- createNode: (schema2, iterable, ctx) => YAMLSet.from(schema2, iterable, ctx),
18483
+ createNode: (schema3, iterable, ctx) => YAMLSet.from(schema3, iterable, ctx),
18484
18484
  resolve(map2, onError) {
18485
18485
  if (identity.isMap(map2)) {
18486
18486
  if (map2.hasAllNullValues(true))
@@ -18593,7 +18593,7 @@ var require_schema4 = __commonJS((exports) => {
18593
18593
  var pairs = require_pairs2();
18594
18594
  var set2 = require_set2();
18595
18595
  var timestamp = require_timestamp2();
18596
- var schema2 = [
18596
+ var schema3 = [
18597
18597
  map2.map,
18598
18598
  seq.seq,
18599
18599
  string4.string,
@@ -18616,7 +18616,7 @@ var require_schema4 = __commonJS((exports) => {
18616
18616
  timestamp.floatTime,
18617
18617
  timestamp.timestamp
18618
18618
  ];
18619
- exports.schema = schema2;
18619
+ exports.schema = schema3;
18620
18620
  });
18621
18621
 
18622
18622
  // ../../node_modules/yaml/dist/schema/tags.js
@@ -18628,7 +18628,7 @@ var require_tags = __commonJS((exports) => {
18628
18628
  var bool = require_bool2();
18629
18629
  var float = require_float2();
18630
18630
  var int2 = require_int2();
18631
- var schema2 = require_schema2();
18631
+ var schema3 = require_schema2();
18632
18632
  var schema$1 = require_schema3();
18633
18633
  var binary = require_binary2();
18634
18634
  var merge3 = require_merge3();
@@ -18638,7 +18638,7 @@ var require_tags = __commonJS((exports) => {
18638
18638
  var set2 = require_set2();
18639
18639
  var timestamp = require_timestamp2();
18640
18640
  var schemas3 = new Map([
18641
- ["core", schema2.schema],
18641
+ ["core", schema3.schema],
18642
18642
  ["failsafe", [map2.map, seq.seq, string4.string]],
18643
18643
  ["json", schema$1.schema],
18644
18644
  ["yaml11", schema$2.schema],
@@ -18720,9 +18720,9 @@ var require_Schema = __commonJS((exports) => {
18720
18720
  var sortMapEntriesByKey = (a, b) => a.key < b.key ? -1 : a.key > b.key ? 1 : 0;
18721
18721
 
18722
18722
  class Schema {
18723
- constructor({ compat: compat2, customTags, merge: merge3, resolveKnownTags, schema: schema2, sortMapEntries, toStringDefaults }) {
18723
+ constructor({ compat: compat2, customTags, merge: merge3, resolveKnownTags, schema: schema3, sortMapEntries, toStringDefaults }) {
18724
18724
  this.compat = Array.isArray(compat2) ? tags.getTags(compat2, "compat") : compat2 ? tags.getTags(null, compat2) : null;
18725
- this.name = typeof schema2 === "string" && schema2 || "core";
18725
+ this.name = typeof schema3 === "string" && schema3 || "core";
18726
18726
  this.knownTags = resolveKnownTags ? tags.coreKnownTags : {};
18727
18727
  this.tags = tags.getTags(customTags, this.name, merge3);
18728
18728
  this.toStringOptions = toStringDefaults ?? null;
@@ -20214,11 +20214,11 @@ var require_compose_scalar = __commonJS((exports) => {
20214
20214
  scalar.comment = comment;
20215
20215
  return scalar;
20216
20216
  }
20217
- function findScalarTagByName(schema2, value, tagName, tagToken, onError) {
20217
+ function findScalarTagByName(schema3, value, tagName, tagToken, onError) {
20218
20218
  if (tagName === "!")
20219
- return schema2[identity.SCALAR];
20219
+ return schema3[identity.SCALAR];
20220
20220
  const matchWithTest = [];
20221
- for (const tag of schema2.tags) {
20221
+ for (const tag of schema3.tags) {
20222
20222
  if (!tag.collection && tag.tag === tagName) {
20223
20223
  if (tag.default && tag.test)
20224
20224
  matchWithTest.push(tag);
@@ -20229,18 +20229,18 @@ var require_compose_scalar = __commonJS((exports) => {
20229
20229
  for (const tag of matchWithTest)
20230
20230
  if (tag.test?.test(value))
20231
20231
  return tag;
20232
- const kt3 = schema2.knownTags[tagName];
20232
+ const kt3 = schema3.knownTags[tagName];
20233
20233
  if (kt3 && !kt3.collection) {
20234
- schema2.tags.push(Object.assign({}, kt3, { default: false, test: undefined }));
20234
+ schema3.tags.push(Object.assign({}, kt3, { default: false, test: undefined }));
20235
20235
  return kt3;
20236
20236
  }
20237
20237
  onError(tagToken, "TAG_RESOLVE_FAILED", `Unresolved tag: ${tagName}`, tagName !== "tag:yaml.org,2002:str");
20238
- return schema2[identity.SCALAR];
20238
+ return schema3[identity.SCALAR];
20239
20239
  }
20240
- function findScalarTagByTest({ atKey, directives, schema: schema2 }, value, token, onError) {
20241
- const tag = schema2.tags.find((tag2) => (tag2.default === true || atKey && tag2.default === "key") && tag2.test?.test(value)) || schema2[identity.SCALAR];
20242
- if (schema2.compat) {
20243
- const compat2 = schema2.compat.find((tag2) => tag2.default && tag2.test?.test(value)) ?? schema2[identity.SCALAR];
20240
+ function findScalarTagByTest({ atKey, directives, schema: schema3 }, value, token, onError) {
20241
+ const tag = schema3.tags.find((tag2) => (tag2.default === true || atKey && tag2.default === "key") && tag2.test?.test(value)) || schema3[identity.SCALAR];
20242
+ if (schema3.compat) {
20243
+ const compat2 = schema3.compat.find((tag2) => tag2.default && tag2.test?.test(value)) ?? schema3[identity.SCALAR];
20244
20244
  if (tag.tag !== compat2.tag) {
20245
20245
  const ts = directives.tagString(tag.tag);
20246
20246
  const cs = directives.tagString(compat2.tag);
@@ -22784,10 +22784,10 @@ var require_ejs = __commonJS((exports) => {
22784
22784
  exports.localsName = _DEFAULT_LOCALS_NAME;
22785
22785
  exports.promiseImpl = new Function("return this;")().Promise;
22786
22786
  exports.resolveInclude = function(name2, filename, isDir) {
22787
- var dirname9 = path11.dirname;
22787
+ var dirname11 = path11.dirname;
22788
22788
  var extname = path11.extname;
22789
22789
  var resolve3 = path11.resolve;
22790
- var includePath = resolve3(isDir ? filename : dirname9(filename), name2);
22790
+ var includePath = resolve3(isDir ? filename : dirname11(filename), name2);
22791
22791
  var ext = extname(name2);
22792
22792
  if (!ext) {
22793
22793
  includePath += ".ejs";
@@ -23165,10 +23165,10 @@ var require_ejs = __commonJS((exports) => {
23165
23165
  };
23166
23166
  if (opts.filename && typeof Object.defineProperty === "function") {
23167
23167
  var filename = opts.filename;
23168
- var basename4 = path11.basename(filename, path11.extname(filename));
23168
+ var basename5 = path11.basename(filename, path11.extname(filename));
23169
23169
  try {
23170
23170
  Object.defineProperty(returnedFn, "name", {
23171
- value: basename4,
23171
+ value: basename5,
23172
23172
  writable: false,
23173
23173
  enumerable: false,
23174
23174
  configurable: true
@@ -119578,11 +119578,11 @@ function chooseDescription(descriptions, printWidth) {
119578
119578
  return firstWidth > printWidth && firstWidth > secondWidth ? secondDescription : firstDescription;
119579
119579
  }
119580
119580
  function createSchema(SchemaConstructor, parameters) {
119581
- const schema12 = new SchemaConstructor(parameters);
119582
- const subSchema = Object.create(schema12);
119581
+ const schema13 = new SchemaConstructor(parameters);
119582
+ const subSchema = Object.create(schema13);
119583
119583
  for (const handlerKey of HANDLER_KEYS) {
119584
119584
  if (handlerKey in parameters) {
119585
- subSchema[handlerKey] = normalizeHandler(parameters[handlerKey], schema12, Schema2.prototype[handlerKey].length);
119585
+ subSchema[handlerKey] = normalizeHandler(parameters[handlerKey], schema13, Schema2.prototype[handlerKey].length);
119586
119586
  }
119587
119587
  }
119588
119588
  return subSchema;
@@ -119839,8 +119839,8 @@ async function loadEditorconfigInternal(file2, { shouldCache }) {
119839
119839
  const directory = path52.dirname(file2);
119840
119840
  const root2 = await findProjectRoot2(directory, { shouldCache });
119841
119841
  const editorConfig = await import_editorconfig.default.parse(file2, { root: root2 });
119842
- const config13 = editorconfig_to_prettier_default(editorConfig);
119843
- return config13;
119842
+ const config14 = editorconfig_to_prettier_default(editorConfig);
119843
+ return config14;
119844
119844
  }
119845
119845
  function loadEditorconfig(file2, { shouldCache }) {
119846
119846
  file2 = path52.resolve(file2);
@@ -121830,18 +121830,18 @@ async function loadConfig(configFile) {
121830
121830
  if (!load2) {
121831
121831
  throw new Error(`No loader specified for extension "${extension || "noExt"}"`);
121832
121832
  }
121833
- let config13 = await load2(configFile);
121834
- if (!config13) {
121833
+ let config14 = await load2(configFile);
121834
+ if (!config14) {
121835
121835
  return;
121836
121836
  }
121837
- if (typeof config13 === "string") {
121838
- config13 = await load_external_config_default(config13, configFile);
121837
+ if (typeof config14 === "string") {
121838
+ config14 = await load_external_config_default(config14, configFile);
121839
121839
  }
121840
- if (typeof config13 !== "object") {
121841
- throw new TypeError(`Config is only allowed to be an object, but received ${typeof config13} in "${configFile}"`);
121840
+ if (typeof config14 !== "object") {
121841
+ throw new TypeError(`Config is only allowed to be an object, but received ${typeof config14} in "${configFile}"`);
121842
121842
  }
121843
- delete config13.$schema;
121844
- return config13;
121843
+ delete config14.$schema;
121844
+ return config14;
121845
121845
  }
121846
121846
  function clearPrettierConfigCache() {
121847
121847
  loadCache.clear();
@@ -121891,8 +121891,8 @@ async function loadPrettierConfig2(file2, options8) {
121891
121891
  return;
121892
121892
  }
121893
121893
  configFile = toPath3(configFile);
121894
- const config13 = await loadPrettierConfig(configFile, { shouldCache });
121895
- return { config: config13, configFile };
121894
+ const config14 = await loadPrettierConfig(configFile, { shouldCache });
121895
+ return { config: config14, configFile };
121896
121896
  }
121897
121897
  async function resolveConfig(fileUrlOrPath, options8) {
121898
121898
  options8 = { useCache: true, ...options8 };
@@ -121919,8 +121919,8 @@ async function resolveConfigFile(fileUrlOrPath) {
121919
121919
  return result ?? null;
121920
121920
  }
121921
121921
  function mergeOverrides(configResult, filePath) {
121922
- const { config: config13, configFile } = configResult || {};
121923
- const { overrides, ...options8 } = config13 || {};
121922
+ const { config: config14, configFile } = configResult || {};
121923
+ const { overrides, ...options8 } = config14 || {};
121924
121924
  if (filePath && overrides) {
121925
121925
  const relativeFilePath = path102.relative(path102.dirname(configFile), filePath);
121926
121926
  for (const override of overrides) {
@@ -122736,12 +122736,12 @@ function getLanguageByFileName(languages2, file2) {
122736
122736
  if (!file2) {
122737
122737
  return;
122738
122738
  }
122739
- const basename7 = getFileBasename(file2).toLowerCase();
122739
+ const basename8 = getFileBasename(file2).toLowerCase();
122740
122740
  return languages2.find(({
122741
122741
  filenames
122742
- }) => filenames?.some((name2) => name2.toLowerCase() === basename7)) ?? languages2.find(({
122742
+ }) => filenames?.some((name2) => name2.toLowerCase() === basename8)) ?? languages2.find(({
122743
122743
  extensions
122744
- }) => extensions?.some((extension) => basename7.endsWith(extension)));
122744
+ }) => extensions?.some((extension) => basename8.endsWith(extension)));
122745
122745
  }
122746
122746
  function getLanguageByLanguageName(languages2, languageName) {
122747
122747
  if (!languageName) {
@@ -122922,9 +122922,9 @@ function optionInfoToSchema(optionInfo, {
122922
122922
  throw new Error(`Unexpected type ${optionInfo.type}`);
122923
122923
  }
122924
122924
  if (optionInfo.exception) {
122925
- parameters.validate = (value, schema12, utils3) => optionInfo.exception(value) || schema12.validate(value, utils3);
122925
+ parameters.validate = (value, schema13, utils3) => optionInfo.exception(value) || schema13.validate(value, utils3);
122926
122926
  } else {
122927
- parameters.validate = (value, schema12, utils3) => value === undefined || schema12.validate(value, utils3);
122927
+ parameters.validate = (value, schema13, utils3) => value === undefined || schema13.validate(value, utils3);
122928
122928
  }
122929
122929
  if (optionInfo.redirect) {
122930
122930
  handlers.redirect = (value) => !value ? undefined : {
@@ -122939,7 +122939,7 @@ function optionInfoToSchema(optionInfo, {
122939
122939
  }
122940
122940
  if (isCLI && !optionInfo.array) {
122941
122941
  const originalPreprocess = parameters.preprocess || ((x10) => x10);
122942
- parameters.preprocess = (value, schema12, utils3) => schema12.preprocess(originalPreprocess(Array.isArray(value) ? method_at_default2(0, value, -1) : value), utils3);
122942
+ parameters.preprocess = (value, schema13, utils3) => schema13.preprocess(originalPreprocess(Array.isArray(value) ? method_at_default2(0, value, -1) : value), utils3);
122943
122943
  }
122944
122944
  return optionInfo.array ? ArraySchema.create({
122945
122945
  ...isCLI ? {
@@ -124029,16 +124029,16 @@ async function getFileInfo(file2, options8 = {}) {
124029
124029
  };
124030
124030
  }
124031
124031
  async function getParser(file2, options8) {
124032
- let config13;
124032
+ let config14;
124033
124033
  if (options8.resolveConfig !== false) {
124034
- config13 = await resolveConfig(file2, {
124034
+ config14 = await resolveConfig(file2, {
124035
124035
  editorconfig: false
124036
124036
  });
124037
124037
  }
124038
- if (config13?.parser) {
124039
- return config13.parser;
124038
+ if (config14?.parser) {
124039
+ return config14.parser;
124040
124040
  }
124041
- let plugins = options8.plugins ?? config13?.plugins ?? [];
124041
+ let plugins = options8.plugins ?? config14?.plugins ?? [];
124042
124042
  plugins = (await Promise.all([load_builtin_plugins_default(), load_plugins_default(plugins)])).flat();
124043
124043
  return infer_parser_default({ plugins }, { physicalFile: file2 });
124044
124044
  }
@@ -124516,9 +124516,9 @@ var require2, __filename2, __dirname3, __create2, __defProp3, __getOwnPropDesc2,
124516
124516
  };
124517
124517
  applyNormalization();
124518
124518
  for (const key2 of Object.keys(this._utils.schemas)) {
124519
- const schema12 = this._utils.schemas[key2];
124519
+ const schema13 = this._utils.schemas[key2];
124520
124520
  if (!(key2 in newOptions)) {
124521
- const defaultResult = normalizeDefaultResult(schema12.default(this._utils));
124521
+ const defaultResult = normalizeDefaultResult(schema13.default(this._utils));
124522
124522
  if ("value" in defaultResult) {
124523
124523
  restOptionsArray.push({ [key2]: defaultResult.value });
124524
124524
  }
@@ -124529,13 +124529,13 @@ var require2, __filename2, __dirname3, __create2, __defProp3, __getOwnPropDesc2,
124529
124529
  if (!(key2 in newOptions)) {
124530
124530
  continue;
124531
124531
  }
124532
- const schema12 = this._utils.schemas[key2];
124532
+ const schema13 = this._utils.schemas[key2];
124533
124533
  const value = newOptions[key2];
124534
- const newValue = schema12.postprocess(value, this._utils);
124534
+ const newValue = schema13.postprocess(value, this._utils);
124535
124535
  if (newValue === VALUE_UNCHANGED) {
124536
124536
  continue;
124537
124537
  }
124538
- this._applyValidation(newValue, key2, schema12);
124538
+ this._applyValidation(newValue, key2, schema13);
124539
124539
  newOptions[key2] = newValue;
124540
124540
  }
124541
124541
  this._applyPostprocess(newOptions);
@@ -124546,14 +124546,14 @@ var require2, __filename2, __dirname3, __create2, __defProp3, __getOwnPropDesc2,
124546
124546
  const transferredOptionsArray = [];
124547
124547
  const { knownKeys, unknownKeys } = this._partitionOptionKeys(options8);
124548
124548
  for (const key2 of knownKeys) {
124549
- const schema12 = this._utils.schemas[key2];
124550
- const value = schema12.preprocess(options8[key2], this._utils);
124551
- this._applyValidation(value, key2, schema12);
124549
+ const schema13 = this._utils.schemas[key2];
124550
+ const value = schema13.preprocess(options8[key2], this._utils);
124551
+ this._applyValidation(value, key2, schema13);
124552
124552
  const appendTransferredOptions = ({ from, to: to5 }) => {
124553
124553
  transferredOptionsArray.push(typeof to5 === "string" ? { [to5]: from } : { [to5.key]: to5.value });
124554
124554
  };
124555
124555
  const warnDeprecated = ({ value: currentValue, redirectTo }) => {
124556
- const deprecatedResult = normalizeDeprecatedResult(schema12.deprecated(currentValue, this._utils), value, true);
124556
+ const deprecatedResult = normalizeDeprecatedResult(schema13.deprecated(currentValue, this._utils), value, true);
124557
124557
  if (deprecatedResult === false) {
124558
124558
  return;
124559
124559
  }
@@ -124571,13 +124571,13 @@ var require2, __filename2, __dirname3, __create2, __defProp3, __getOwnPropDesc2,
124571
124571
  }
124572
124572
  }
124573
124573
  };
124574
- const forwardResult = normalizeForwardResult(schema12.forward(value, this._utils), value);
124574
+ const forwardResult = normalizeForwardResult(schema13.forward(value, this._utils), value);
124575
124575
  forwardResult.forEach(appendTransferredOptions);
124576
- const redirectResult = normalizeRedirectResult(schema12.redirect(value, this._utils), value);
124576
+ const redirectResult = normalizeRedirectResult(schema13.redirect(value, this._utils), value);
124577
124577
  redirectResult.redirect.forEach(appendTransferredOptions);
124578
124578
  if ("remain" in redirectResult) {
124579
124579
  const remainingValue = redirectResult.remain;
124580
- newOptions[key2] = key2 in newOptions ? schema12.overlap(newOptions[key2], remainingValue, this._utils) : remainingValue;
124580
+ newOptions[key2] = key2 in newOptions ? schema13.overlap(newOptions[key2], remainingValue, this._utils) : remainingValue;
124581
124581
  warnDeprecated({ value: remainingValue });
124582
124582
  }
124583
124583
  for (const { from, to: to5 } of redirectResult.redirect) {
@@ -124605,8 +124605,8 @@ var require2, __filename2, __dirname3, __create2, __defProp3, __getOwnPropDesc2,
124605
124605
  const [knownKeys, unknownKeys] = partition(Object.keys(options8).filter((key2) => !this._identifyMissing(key2, options8)), (key2) => (key2 in this._utils.schemas));
124606
124606
  return { knownKeys, unknownKeys };
124607
124607
  }
124608
- _applyValidation(value, key2, schema12) {
124609
- const validateResult = normalizeValidateResult(schema12.validate(value, this._utils), value);
124608
+ _applyValidation(value, key2, schema13) {
124609
+ const validateResult = normalizeValidateResult(schema13.validate(value, this._utils), value);
124610
124610
  if (validateResult !== true) {
124611
124611
  throw this._invalidHandler(key2, validateResult.value, this._utils);
124612
124612
  }
@@ -124648,8 +124648,8 @@ var require2, __filename2, __dirname3, __create2, __defProp3, __getOwnPropDesc2,
124648
124648
  for (const key2 of unknownKeys) {
124649
124649
  const value = postprocessed.override[key2];
124650
124650
  this._applyUnknownHandler(key2, value, options8, (knownResultKey, knownResultValue) => {
124651
- const schema12 = this._utils.schemas[knownResultKey];
124652
- this._applyValidation(knownResultValue, knownResultKey, schema12);
124651
+ const schema13 = this._utils.schemas[knownResultKey];
124652
+ this._applyValidation(knownResultValue, knownResultKey, schema13);
124653
124653
  options8[knownResultKey] = knownResultValue;
124654
124654
  });
124655
124655
  }
@@ -127963,8 +127963,8 @@ var init_prettier = __esm(() => {
127963
127963
  }
127964
127964
  exports.endsWithSlashGlobStar = endsWithSlashGlobStar;
127965
127965
  function isAffectDepthOfReadingPattern(pattern) {
127966
- const basename7 = path152.basename(pattern);
127967
- return endsWithSlashGlobStar(pattern) || isStaticPattern(basename7);
127966
+ const basename8 = path152.basename(pattern);
127967
+ return endsWithSlashGlobStar(pattern) || isStaticPattern(basename8);
127968
127968
  }
127969
127969
  exports.isAffectDepthOfReadingPattern = isAffectDepthOfReadingPattern;
127970
127970
  function expandPatternsWithBraceExpansion(patterns) {
@@ -138362,23 +138362,23 @@ var require_JSONSchema = __commonJS((exports) => {
138362
138362
  exports.Parent = Symbol("Parent");
138363
138363
  exports.Types = Symbol("Types");
138364
138364
  exports.Intersection = Symbol("Intersection");
138365
- exports.getRootSchema = (0, lodash_1.memoize)((schema12) => {
138366
- const parent = schema12[exports.Parent];
138365
+ exports.getRootSchema = (0, lodash_1.memoize)((schema13) => {
138366
+ const parent = schema13[exports.Parent];
138367
138367
  if (!parent) {
138368
- return schema12;
138368
+ return schema13;
138369
138369
  }
138370
138370
  return (0, exports.getRootSchema)(parent);
138371
138371
  });
138372
- function isBoolean(schema12) {
138373
- return schema12 === true || schema12 === false;
138372
+ function isBoolean(schema13) {
138373
+ return schema13 === true || schema13 === false;
138374
138374
  }
138375
138375
  exports.isBoolean = isBoolean;
138376
- function isPrimitive(schema12) {
138377
- return !(0, lodash_1.isPlainObject)(schema12);
138376
+ function isPrimitive(schema13) {
138377
+ return !(0, lodash_1.isPlainObject)(schema13);
138378
138378
  }
138379
138379
  exports.isPrimitive = isPrimitive;
138380
- function isCompound(schema12) {
138381
- return Array.isArray(schema12.type) || "anyOf" in schema12 || "oneOf" in schema12;
138380
+ function isCompound(schema13) {
138381
+ return Array.isArray(schema13.type) || "anyOf" in schema13 || "oneOf" in schema13;
138382
138382
  }
138383
138383
  exports.isCompound = isCompound;
138384
138384
  });
@@ -138605,9 +138605,9 @@ var require_type2 = __commonJS((exports, module) => {
138605
138605
  var require_schema5 = __commonJS((exports, module) => {
138606
138606
  var YAMLException = require_exception2();
138607
138607
  var Type = require_type2();
138608
- function compileList(schema12, name2) {
138608
+ function compileList(schema13, name2) {
138609
138609
  var result = [];
138610
- schema12[name2].forEach(function(currentType) {
138610
+ schema13[name2].forEach(function(currentType) {
138611
138611
  var newIndex = result.length;
138612
138612
  result.forEach(function(previousType, previousIndex) {
138613
138613
  if (previousType.tag === currentType.tag && previousType.kind === currentType.kind && previousType.multi === currentType.multi) {
@@ -140552,7 +140552,7 @@ var require_dumper2 = __commonJS((exports, module) => {
140552
140552
  "OFF"
140553
140553
  ];
140554
140554
  var DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
140555
- function compileStyleMap(schema12, map2) {
140555
+ function compileStyleMap(schema13, map2) {
140556
140556
  var result, keys, index, length, tag, style, type;
140557
140557
  if (map2 === null)
140558
140558
  return {};
@@ -140564,7 +140564,7 @@ var require_dumper2 = __commonJS((exports, module) => {
140564
140564
  if (tag.slice(0, 2) === "!!") {
140565
140565
  tag = "tag:yaml.org,2002:" + tag.slice(2);
140566
140566
  }
140567
- type = schema12.compiledTypeMap["fallback"][tag];
140567
+ type = schema13.compiledTypeMap["fallback"][tag];
140568
140568
  if (type && _hasOwnProperty.call(type.styleAliases, style)) {
140569
140569
  style = type.styleAliases[style];
140570
140570
  }
@@ -141223,11 +141223,11 @@ var require_utils7 = __commonJS((exports) => {
141223
141223
  function traverseArray(arr, callback, processed) {
141224
141224
  arr.forEach((s5, k9) => traverse(s5, callback, processed, k9.toString()));
141225
141225
  }
141226
- function traverseIntersection(schema12, callback, processed) {
141227
- if (typeof schema12 !== "object" || !schema12) {
141226
+ function traverseIntersection(schema13, callback, processed) {
141227
+ if (typeof schema13 !== "object" || !schema13) {
141228
141228
  return;
141229
141229
  }
141230
- const r5 = schema12;
141230
+ const r5 = schema13;
141231
141231
  const intersection2 = r5[JSONSchema_1.Intersection];
141232
141232
  if (!intersection2) {
141233
141233
  return;
@@ -141236,60 +141236,60 @@ var require_utils7 = __commonJS((exports) => {
141236
141236
  traverseArray(intersection2.allOf, callback, processed);
141237
141237
  }
141238
141238
  }
141239
- function traverse(schema12, callback, processed = new Set, key2) {
141240
- if (processed.has(schema12)) {
141239
+ function traverse(schema13, callback, processed = new Set, key2) {
141240
+ if (processed.has(schema13)) {
141241
141241
  return;
141242
141242
  }
141243
- processed.add(schema12);
141244
- callback(schema12, key2 !== null && key2 !== undefined ? key2 : null);
141245
- if (schema12.anyOf) {
141246
- traverseArray(schema12.anyOf, callback, processed);
141243
+ processed.add(schema13);
141244
+ callback(schema13, key2 !== null && key2 !== undefined ? key2 : null);
141245
+ if (schema13.anyOf) {
141246
+ traverseArray(schema13.anyOf, callback, processed);
141247
141247
  }
141248
- if (schema12.allOf) {
141249
- traverseArray(schema12.allOf, callback, processed);
141248
+ if (schema13.allOf) {
141249
+ traverseArray(schema13.allOf, callback, processed);
141250
141250
  }
141251
- if (schema12.oneOf) {
141252
- traverseArray(schema12.oneOf, callback, processed);
141251
+ if (schema13.oneOf) {
141252
+ traverseArray(schema13.oneOf, callback, processed);
141253
141253
  }
141254
- if (schema12.properties) {
141255
- traverseObjectKeys(schema12.properties, callback, processed);
141254
+ if (schema13.properties) {
141255
+ traverseObjectKeys(schema13.properties, callback, processed);
141256
141256
  }
141257
- if (schema12.patternProperties) {
141258
- traverseObjectKeys(schema12.patternProperties, callback, processed);
141257
+ if (schema13.patternProperties) {
141258
+ traverseObjectKeys(schema13.patternProperties, callback, processed);
141259
141259
  }
141260
- if (schema12.additionalProperties && typeof schema12.additionalProperties === "object") {
141261
- traverse(schema12.additionalProperties, callback, processed);
141260
+ if (schema13.additionalProperties && typeof schema13.additionalProperties === "object") {
141261
+ traverse(schema13.additionalProperties, callback, processed);
141262
141262
  }
141263
- if (schema12.items) {
141264
- const { items } = schema12;
141263
+ if (schema13.items) {
141264
+ const { items } = schema13;
141265
141265
  if (Array.isArray(items)) {
141266
141266
  traverseArray(items, callback, processed);
141267
141267
  } else {
141268
141268
  traverse(items, callback, processed);
141269
141269
  }
141270
141270
  }
141271
- if (schema12.additionalItems && typeof schema12.additionalItems === "object") {
141272
- traverse(schema12.additionalItems, callback, processed);
141271
+ if (schema13.additionalItems && typeof schema13.additionalItems === "object") {
141272
+ traverse(schema13.additionalItems, callback, processed);
141273
141273
  }
141274
- if (schema12.dependencies) {
141275
- if (Array.isArray(schema12.dependencies)) {
141276
- traverseArray(schema12.dependencies, callback, processed);
141274
+ if (schema13.dependencies) {
141275
+ if (Array.isArray(schema13.dependencies)) {
141276
+ traverseArray(schema13.dependencies, callback, processed);
141277
141277
  } else {
141278
- traverseObjectKeys(schema12.dependencies, callback, processed);
141278
+ traverseObjectKeys(schema13.dependencies, callback, processed);
141279
141279
  }
141280
141280
  }
141281
- if (schema12.definitions) {
141282
- traverseObjectKeys(schema12.definitions, callback, processed);
141281
+ if (schema13.definitions) {
141282
+ traverseObjectKeys(schema13.definitions, callback, processed);
141283
141283
  }
141284
- if (schema12.$defs) {
141285
- traverseObjectKeys(schema12.$defs, callback, processed);
141284
+ if (schema13.$defs) {
141285
+ traverseObjectKeys(schema13.$defs, callback, processed);
141286
141286
  }
141287
- if (schema12.not) {
141288
- traverse(schema12.not, callback, processed);
141287
+ if (schema13.not) {
141288
+ traverse(schema13.not, callback, processed);
141289
141289
  }
141290
- traverseIntersection(schema12, callback, processed);
141291
- Object.keys(schema12).filter((key3) => !BLACKLISTED_KEYS.has(key3)).forEach((key3) => {
141292
- const child = schema12[key3];
141290
+ traverseIntersection(schema13, callback, processed);
141291
+ Object.keys(schema13).filter((key3) => !BLACKLISTED_KEYS.has(key3)).forEach((key3) => {
141292
+ const child = schema13[key3];
141293
141293
  if (child && typeof child === "object") {
141294
141294
  traverseObjectKeys(child, callback, processed);
141295
141295
  }
@@ -141371,14 +141371,14 @@ var require_utils7 = __commonJS((exports) => {
141371
141371
  return (_g2 = color()) === null || _g2 === undefined ? undefined : _g2.whiteBright.bgYellow;
141372
141372
  }
141373
141373
  }
141374
- function escapeBlockComment(schema12) {
141374
+ function escapeBlockComment(schema13) {
141375
141375
  const replacer = "* /";
141376
- if (schema12 === null || typeof schema12 !== "object") {
141376
+ if (schema13 === null || typeof schema13 !== "object") {
141377
141377
  return;
141378
141378
  }
141379
- for (const key2 of Object.keys(schema12)) {
141380
- if (key2 === "description" && typeof schema12[key2] === "string") {
141381
- schema12[key2] = schema12[key2].replace(/\*\//g, replacer);
141379
+ for (const key2 of Object.keys(schema13)) {
141380
+ if (key2 === "description" && typeof schema13[key2] === "string") {
141381
+ schema13[key2] = schema13[key2].replace(/\*\//g, replacer);
141382
141382
  }
141383
141383
  }
141384
141384
  }
@@ -141390,45 +141390,45 @@ var require_utils7 = __commonJS((exports) => {
141390
141390
  return path_1.posix.join(path_1.posix.normalize(outputPath), ...filePathRel);
141391
141391
  }
141392
141392
  exports.pathTransform = pathTransform;
141393
- function maybeStripDefault(schema12) {
141394
- if (!("default" in schema12)) {
141395
- return schema12;
141393
+ function maybeStripDefault(schema13) {
141394
+ if (!("default" in schema13)) {
141395
+ return schema13;
141396
141396
  }
141397
- switch (schema12.type) {
141397
+ switch (schema13.type) {
141398
141398
  case "array":
141399
- if (Array.isArray(schema12.default)) {
141400
- return schema12;
141399
+ if (Array.isArray(schema13.default)) {
141400
+ return schema13;
141401
141401
  }
141402
141402
  break;
141403
141403
  case "boolean":
141404
- if (typeof schema12.default === "boolean") {
141405
- return schema12;
141404
+ if (typeof schema13.default === "boolean") {
141405
+ return schema13;
141406
141406
  }
141407
141407
  break;
141408
141408
  case "integer":
141409
141409
  case "number":
141410
- if (typeof schema12.default === "number") {
141411
- return schema12;
141410
+ if (typeof schema13.default === "number") {
141411
+ return schema13;
141412
141412
  }
141413
141413
  break;
141414
141414
  case "string":
141415
- if (typeof schema12.default === "string") {
141416
- return schema12;
141415
+ if (typeof schema13.default === "string") {
141416
+ return schema13;
141417
141417
  }
141418
141418
  break;
141419
141419
  case "null":
141420
- if (schema12.default === null) {
141421
- return schema12;
141420
+ if (schema13.default === null) {
141421
+ return schema13;
141422
141422
  }
141423
141423
  break;
141424
141424
  case "object":
141425
- if ((0, lodash_1.isPlainObject)(schema12.default)) {
141426
- return schema12;
141425
+ if ((0, lodash_1.isPlainObject)(schema13.default)) {
141426
+ return schema13;
141427
141427
  }
141428
141428
  break;
141429
141429
  }
141430
- delete schema12.default;
141431
- return schema12;
141430
+ delete schema13.default;
141431
+ return schema13;
141432
141432
  }
141433
141433
  exports.maybeStripDefault = maybeStripDefault;
141434
141434
  function appendToDescription(existingDescription, ...values) {
@@ -141442,11 +141442,11 @@ ${values.join(`
141442
141442
  `);
141443
141443
  }
141444
141444
  exports.appendToDescription = appendToDescription;
141445
- function isSchemaLike(schema12) {
141446
- if (!(0, lodash_1.isPlainObject)(schema12)) {
141445
+ function isSchemaLike(schema13) {
141446
+ if (!(0, lodash_1.isPlainObject)(schema13)) {
141447
141447
  return false;
141448
141448
  }
141449
- const parent = schema12[JSONSchema_1.Parent];
141449
+ const parent = schema13[JSONSchema_1.Parent];
141450
141450
  if (parent === null) {
141451
141451
  return true;
141452
141452
  }
@@ -141463,7 +141463,7 @@ ${values.join(`
141463
141463
  "properties",
141464
141464
  "required"
141465
141465
  ];
141466
- if (JSON_SCHEMA_KEYWORDS.some((_10) => parent[_10] === schema12)) {
141466
+ if (JSON_SCHEMA_KEYWORDS.some((_10) => parent[_10] === schema13)) {
141467
141467
  return false;
141468
141468
  }
141469
141469
  return true;
@@ -141761,13 +141761,13 @@ var require_typesOfSchema = __commonJS((exports) => {
141761
141761
  exports.typesOfSchema = undefined;
141762
141762
  var lodash_1 = require_lodash8();
141763
141763
  var JSONSchema_1 = require_JSONSchema();
141764
- function typesOfSchema(schema12) {
141765
- if (schema12.tsType) {
141764
+ function typesOfSchema(schema13) {
141765
+ if (schema13.tsType) {
141766
141766
  return new Set(["CUSTOM_TYPE"]);
141767
141767
  }
141768
141768
  const matchedTypes = new Set;
141769
141769
  for (const [schemaType, f7] of Object.entries(matchers)) {
141770
- if (f7(schema12)) {
141770
+ if (f7(schema13)) {
141771
141771
  matchedTypes.add(schemaType);
141772
141772
  }
141773
141773
  }
@@ -141778,26 +141778,26 @@ var require_typesOfSchema = __commonJS((exports) => {
141778
141778
  }
141779
141779
  exports.typesOfSchema = typesOfSchema;
141780
141780
  var matchers = {
141781
- ALL_OF(schema12) {
141782
- return "allOf" in schema12;
141781
+ ALL_OF(schema13) {
141782
+ return "allOf" in schema13;
141783
141783
  },
141784
- ANY(schema12) {
141785
- if (Object.keys(schema12).length === 0) {
141784
+ ANY(schema13) {
141785
+ if (Object.keys(schema13).length === 0) {
141786
141786
  return true;
141787
141787
  }
141788
- return schema12.type === "any";
141788
+ return schema13.type === "any";
141789
141789
  },
141790
- ANY_OF(schema12) {
141791
- return "anyOf" in schema12;
141790
+ ANY_OF(schema13) {
141791
+ return "anyOf" in schema13;
141792
141792
  },
141793
- BOOLEAN(schema12) {
141794
- if ("enum" in schema12) {
141793
+ BOOLEAN(schema13) {
141794
+ if ("enum" in schema13) {
141795
141795
  return false;
141796
141796
  }
141797
- if (schema12.type === "boolean") {
141797
+ if (schema13.type === "boolean") {
141798
141798
  return true;
141799
141799
  }
141800
- if (!(0, JSONSchema_1.isCompound)(schema12) && typeof schema12.default === "boolean") {
141800
+ if (!(0, JSONSchema_1.isCompound)(schema13) && typeof schema13.default === "boolean") {
141801
141801
  return true;
141802
141802
  }
141803
141803
  return false;
@@ -141805,74 +141805,74 @@ var require_typesOfSchema = __commonJS((exports) => {
141805
141805
  CUSTOM_TYPE() {
141806
141806
  return false;
141807
141807
  },
141808
- NAMED_ENUM(schema12) {
141809
- return "enum" in schema12 && "tsEnumNames" in schema12;
141808
+ NAMED_ENUM(schema13) {
141809
+ return "enum" in schema13 && "tsEnumNames" in schema13;
141810
141810
  },
141811
- NAMED_SCHEMA(schema12) {
141812
- return "$id" in schema12 && (("patternProperties" in schema12) || ("properties" in schema12));
141811
+ NAMED_SCHEMA(schema13) {
141812
+ return "$id" in schema13 && (("patternProperties" in schema13) || ("properties" in schema13));
141813
141813
  },
141814
- NEVER(schema12) {
141815
- return schema12 === false;
141814
+ NEVER(schema13) {
141815
+ return schema13 === false;
141816
141816
  },
141817
- NULL(schema12) {
141818
- return schema12.type === "null";
141817
+ NULL(schema13) {
141818
+ return schema13.type === "null";
141819
141819
  },
141820
- NUMBER(schema12) {
141821
- if ("enum" in schema12) {
141820
+ NUMBER(schema13) {
141821
+ if ("enum" in schema13) {
141822
141822
  return false;
141823
141823
  }
141824
- if (schema12.type === "integer" || schema12.type === "number") {
141824
+ if (schema13.type === "integer" || schema13.type === "number") {
141825
141825
  return true;
141826
141826
  }
141827
- if (!(0, JSONSchema_1.isCompound)(schema12) && typeof schema12.default === "number") {
141827
+ if (!(0, JSONSchema_1.isCompound)(schema13) && typeof schema13.default === "number") {
141828
141828
  return true;
141829
141829
  }
141830
141830
  return false;
141831
141831
  },
141832
- OBJECT(schema12) {
141833
- return schema12.type === "object" && !(0, lodash_1.isPlainObject)(schema12.additionalProperties) && !schema12.allOf && !schema12.anyOf && !schema12.oneOf && !schema12.patternProperties && !schema12.properties && !schema12.required;
141832
+ OBJECT(schema13) {
141833
+ return schema13.type === "object" && !(0, lodash_1.isPlainObject)(schema13.additionalProperties) && !schema13.allOf && !schema13.anyOf && !schema13.oneOf && !schema13.patternProperties && !schema13.properties && !schema13.required;
141834
141834
  },
141835
- ONE_OF(schema12) {
141836
- return "oneOf" in schema12;
141835
+ ONE_OF(schema13) {
141836
+ return "oneOf" in schema13;
141837
141837
  },
141838
- REFERENCE(schema12) {
141839
- return "$ref" in schema12;
141838
+ REFERENCE(schema13) {
141839
+ return "$ref" in schema13;
141840
141840
  },
141841
- STRING(schema12) {
141842
- if ("enum" in schema12) {
141841
+ STRING(schema13) {
141842
+ if ("enum" in schema13) {
141843
141843
  return false;
141844
141844
  }
141845
- if (schema12.type === "string") {
141845
+ if (schema13.type === "string") {
141846
141846
  return true;
141847
141847
  }
141848
- if (!(0, JSONSchema_1.isCompound)(schema12) && typeof schema12.default === "string") {
141848
+ if (!(0, JSONSchema_1.isCompound)(schema13) && typeof schema13.default === "string") {
141849
141849
  return true;
141850
141850
  }
141851
141851
  return false;
141852
141852
  },
141853
- TYPED_ARRAY(schema12) {
141854
- if (schema12.type && schema12.type !== "array") {
141853
+ TYPED_ARRAY(schema13) {
141854
+ if (schema13.type && schema13.type !== "array") {
141855
141855
  return false;
141856
141856
  }
141857
- return "items" in schema12;
141857
+ return "items" in schema13;
141858
141858
  },
141859
- UNION(schema12) {
141860
- return Array.isArray(schema12.type);
141859
+ UNION(schema13) {
141860
+ return Array.isArray(schema13.type);
141861
141861
  },
141862
- UNNAMED_ENUM(schema12) {
141863
- if ("tsEnumNames" in schema12) {
141862
+ UNNAMED_ENUM(schema13) {
141863
+ if ("tsEnumNames" in schema13) {
141864
141864
  return false;
141865
141865
  }
141866
- if (schema12.type && schema12.type !== "boolean" && schema12.type !== "integer" && schema12.type !== "number" && schema12.type !== "string") {
141866
+ if (schema13.type && schema13.type !== "boolean" && schema13.type !== "integer" && schema13.type !== "number" && schema13.type !== "string") {
141867
141867
  return false;
141868
141868
  }
141869
- return "enum" in schema12;
141869
+ return "enum" in schema13;
141870
141870
  },
141871
141871
  UNNAMED_SCHEMA() {
141872
141872
  return false;
141873
141873
  },
141874
- UNTYPED_ARRAY(schema12) {
141875
- return schema12.type === "array" && !("items" in schema12);
141874
+ UNTYPED_ARRAY(schema13) {
141875
+ return schema13.type === "array" && !("items" in schema13);
141876
141876
  }
141877
141877
  };
141878
141878
  });
@@ -141883,10 +141883,10 @@ var require_applySchemaTyping = __commonJS((exports) => {
141883
141883
  exports.applySchemaTyping = undefined;
141884
141884
  var JSONSchema_1 = require_JSONSchema();
141885
141885
  var typesOfSchema_1 = require_typesOfSchema();
141886
- function applySchemaTyping(schema12) {
141886
+ function applySchemaTyping(schema13) {
141887
141887
  var _a7;
141888
- const types = (0, typesOfSchema_1.typesOfSchema)(schema12);
141889
- Object.defineProperty(schema12, JSONSchema_1.Types, {
141888
+ const types = (0, typesOfSchema_1.typesOfSchema)(schema13);
141889
+ Object.defineProperty(schema13, JSONSchema_1.Types, {
141890
141890
  enumerable: false,
141891
141891
  value: types,
141892
141892
  writable: false
@@ -141895,23 +141895,23 @@ var require_applySchemaTyping = __commonJS((exports) => {
141895
141895
  return;
141896
141896
  }
141897
141897
  const intersection2 = {
141898
- [JSONSchema_1.Parent]: schema12,
141898
+ [JSONSchema_1.Parent]: schema13,
141899
141899
  [JSONSchema_1.Types]: new Set(["ALL_OF"]),
141900
- $id: schema12.$id,
141901
- description: schema12.description,
141902
- name: schema12.name,
141903
- title: schema12.title,
141904
- allOf: (_a7 = schema12.allOf) !== null && _a7 !== undefined ? _a7 : [],
141900
+ $id: schema13.$id,
141901
+ description: schema13.description,
141902
+ name: schema13.name,
141903
+ title: schema13.title,
141904
+ allOf: (_a7 = schema13.allOf) !== null && _a7 !== undefined ? _a7 : [],
141905
141905
  required: [],
141906
141906
  additionalProperties: false
141907
141907
  };
141908
141908
  types.delete("ALL_OF");
141909
- delete schema12.allOf;
141910
- delete schema12.$id;
141911
- delete schema12.description;
141912
- delete schema12.name;
141913
- delete schema12.title;
141914
- Object.defineProperty(schema12, JSONSchema_1.Intersection, {
141909
+ delete schema13.allOf;
141910
+ delete schema13.$id;
141911
+ delete schema13.description;
141912
+ delete schema13.name;
141913
+ delete schema13.title;
141914
+ Object.defineProperty(schema13, JSONSchema_1.Intersection, {
141915
141915
  enumerable: false,
141916
141916
  value: intersection2,
141917
141917
  writable: false
@@ -141929,186 +141929,186 @@ var require_normalizer = __commonJS((exports) => {
141929
141929
  var applySchemaTyping_1 = require_applySchemaTyping();
141930
141930
  var util_1 = __require("util");
141931
141931
  var rules = new Map;
141932
- function hasType(schema12, type) {
141933
- return schema12.type === type || Array.isArray(schema12.type) && schema12.type.includes(type);
141932
+ function hasType(schema13, type) {
141933
+ return schema13.type === type || Array.isArray(schema13.type) && schema13.type.includes(type);
141934
141934
  }
141935
- function isObjectType(schema12) {
141936
- return schema12.properties !== undefined || hasType(schema12, "object") || hasType(schema12, "any");
141935
+ function isObjectType(schema13) {
141936
+ return schema13.properties !== undefined || hasType(schema13, "object") || hasType(schema13, "any");
141937
141937
  }
141938
- function isArrayType(schema12) {
141939
- return schema12.items !== undefined || hasType(schema12, "array") || hasType(schema12, "any");
141938
+ function isArrayType(schema13) {
141939
+ return schema13.items !== undefined || hasType(schema13, "array") || hasType(schema13, "any");
141940
141940
  }
141941
- function isEnumTypeWithoutTsEnumNames(schema12) {
141942
- return schema12.type === "string" && schema12.enum !== undefined && schema12.tsEnumNames === undefined;
141941
+ function isEnumTypeWithoutTsEnumNames(schema13) {
141942
+ return schema13.type === "string" && schema13.enum !== undefined && schema13.tsEnumNames === undefined;
141943
141943
  }
141944
- rules.set('Remove `type=["null"]` if `enum=[null]`', (schema12) => {
141945
- if (Array.isArray(schema12.enum) && schema12.enum.some((e8) => e8 === null) && Array.isArray(schema12.type) && schema12.type.includes("null")) {
141946
- schema12.type = schema12.type.filter((type) => type !== "null");
141944
+ rules.set('Remove `type=["null"]` if `enum=[null]`', (schema13) => {
141945
+ if (Array.isArray(schema13.enum) && schema13.enum.some((e8) => e8 === null) && Array.isArray(schema13.type) && schema13.type.includes("null")) {
141946
+ schema13.type = schema13.type.filter((type) => type !== "null");
141947
141947
  }
141948
141948
  });
141949
- rules.set("Destructure unary types", (schema12) => {
141950
- if (schema12.type && Array.isArray(schema12.type) && schema12.type.length === 1) {
141951
- schema12.type = schema12.type[0];
141949
+ rules.set("Destructure unary types", (schema13) => {
141950
+ if (schema13.type && Array.isArray(schema13.type) && schema13.type.length === 1) {
141951
+ schema13.type = schema13.type[0];
141952
141952
  }
141953
141953
  });
141954
- rules.set("Add empty `required` property if none is defined", (schema12) => {
141955
- if (isObjectType(schema12) && !("required" in schema12)) {
141956
- schema12.required = [];
141954
+ rules.set("Add empty `required` property if none is defined", (schema13) => {
141955
+ if (isObjectType(schema13) && !("required" in schema13)) {
141956
+ schema13.required = [];
141957
141957
  }
141958
141958
  });
141959
- rules.set("Transform `required`=false to `required`=[]", (schema12) => {
141960
- if (schema12.required === false) {
141961
- schema12.required = [];
141959
+ rules.set("Transform `required`=false to `required`=[]", (schema13) => {
141960
+ if (schema13.required === false) {
141961
+ schema13.required = [];
141962
141962
  }
141963
141963
  });
141964
- rules.set("Default additionalProperties", (schema12, _10, options8) => {
141965
- if (isObjectType(schema12) && !("additionalProperties" in schema12) && schema12.patternProperties === undefined) {
141966
- schema12.additionalProperties = options8.additionalProperties;
141964
+ rules.set("Default additionalProperties", (schema13, _10, options8) => {
141965
+ if (isObjectType(schema13) && !("additionalProperties" in schema13) && schema13.patternProperties === undefined) {
141966
+ schema13.additionalProperties = options8.additionalProperties;
141967
141967
  }
141968
141968
  });
141969
- rules.set("Transform id to $id", (schema12, fileName) => {
141970
- if (!(0, utils_1.isSchemaLike)(schema12)) {
141969
+ rules.set("Transform id to $id", (schema13, fileName) => {
141970
+ if (!(0, utils_1.isSchemaLike)(schema13)) {
141971
141971
  return;
141972
141972
  }
141973
- if (schema12.id && schema12.$id && schema12.id !== schema12.$id) {
141974
- throw ReferenceError(`Schema must define either id or $id, not both. Given id=${schema12.id}, $id=${schema12.$id} in ${fileName}`);
141973
+ if (schema13.id && schema13.$id && schema13.id !== schema13.$id) {
141974
+ throw ReferenceError(`Schema must define either id or $id, not both. Given id=${schema13.id}, $id=${schema13.$id} in ${fileName}`);
141975
141975
  }
141976
- if (schema12.id) {
141977
- schema12.$id = schema12.id;
141978
- delete schema12.id;
141976
+ if (schema13.id) {
141977
+ schema13.$id = schema13.id;
141978
+ delete schema13.id;
141979
141979
  }
141980
141980
  });
141981
- rules.set("Add an $id to anything that needs it", (schema12, fileName, _options, _key, dereferencedPaths) => {
141982
- if (!(0, utils_1.isSchemaLike)(schema12)) {
141981
+ rules.set("Add an $id to anything that needs it", (schema13, fileName, _options, _key, dereferencedPaths) => {
141982
+ if (!(0, utils_1.isSchemaLike)(schema13)) {
141983
141983
  return;
141984
141984
  }
141985
- if (!schema12.$id && !schema12[JSONSchema_1.Parent]) {
141986
- schema12.$id = (0, utils_1.toSafeString)((0, utils_1.justName)(fileName));
141985
+ if (!schema13.$id && !schema13[JSONSchema_1.Parent]) {
141986
+ schema13.$id = (0, utils_1.toSafeString)((0, utils_1.justName)(fileName));
141987
141987
  return;
141988
141988
  }
141989
- if (!isArrayType(schema12) && !isObjectType(schema12)) {
141989
+ if (!isArrayType(schema13) && !isObjectType(schema13)) {
141990
141990
  return;
141991
141991
  }
141992
- const dereferencedName = dereferencedPaths.get(schema12);
141993
- if (!schema12.$id && !schema12.title && dereferencedName) {
141994
- schema12.$id = (0, utils_1.toSafeString)((0, utils_1.justName)(dereferencedName));
141992
+ const dereferencedName = dereferencedPaths.get(schema13);
141993
+ if (!schema13.$id && !schema13.title && dereferencedName) {
141994
+ schema13.$id = (0, utils_1.toSafeString)((0, utils_1.justName)(dereferencedName));
141995
141995
  }
141996
141996
  if (dereferencedName) {
141997
- dereferencedPaths.delete(schema12);
141997
+ dereferencedPaths.delete(schema13);
141998
141998
  }
141999
141999
  });
142000
- rules.set("Escape closing JSDoc comment", (schema12) => {
142001
- (0, utils_1.escapeBlockComment)(schema12);
142000
+ rules.set("Escape closing JSDoc comment", (schema13) => {
142001
+ (0, utils_1.escapeBlockComment)(schema13);
142002
142002
  });
142003
- rules.set("Add JSDoc comments for minItems and maxItems", (schema12) => {
142004
- if (!isArrayType(schema12)) {
142003
+ rules.set("Add JSDoc comments for minItems and maxItems", (schema13) => {
142004
+ if (!isArrayType(schema13)) {
142005
142005
  return;
142006
142006
  }
142007
142007
  const commentsToAppend = [
142008
- "minItems" in schema12 ? `@minItems ${schema12.minItems}` : "",
142009
- "maxItems" in schema12 ? `@maxItems ${schema12.maxItems}` : ""
142008
+ "minItems" in schema13 ? `@minItems ${schema13.minItems}` : "",
142009
+ "maxItems" in schema13 ? `@maxItems ${schema13.maxItems}` : ""
142010
142010
  ].filter(Boolean);
142011
142011
  if (commentsToAppend.length) {
142012
- schema12.description = (0, utils_1.appendToDescription)(schema12.description, ...commentsToAppend);
142012
+ schema13.description = (0, utils_1.appendToDescription)(schema13.description, ...commentsToAppend);
142013
142013
  }
142014
142014
  });
142015
- rules.set("Optionally remove maxItems and minItems", (schema12, _fileName, options8) => {
142016
- if (!isArrayType(schema12)) {
142015
+ rules.set("Optionally remove maxItems and minItems", (schema13, _fileName, options8) => {
142016
+ if (!isArrayType(schema13)) {
142017
142017
  return;
142018
142018
  }
142019
- if ("minItems" in schema12 && options8.ignoreMinAndMaxItems) {
142020
- delete schema12.minItems;
142019
+ if ("minItems" in schema13 && options8.ignoreMinAndMaxItems) {
142020
+ delete schema13.minItems;
142021
142021
  }
142022
- if ("maxItems" in schema12 && (options8.ignoreMinAndMaxItems || options8.maxItems === -1)) {
142023
- delete schema12.maxItems;
142022
+ if ("maxItems" in schema13 && (options8.ignoreMinAndMaxItems || options8.maxItems === -1)) {
142023
+ delete schema13.maxItems;
142024
142024
  }
142025
142025
  });
142026
- rules.set("Normalize schema.minItems", (schema12, _fileName, options8) => {
142026
+ rules.set("Normalize schema.minItems", (schema13, _fileName, options8) => {
142027
142027
  if (options8.ignoreMinAndMaxItems) {
142028
142028
  return;
142029
142029
  }
142030
- if (!isArrayType(schema12)) {
142030
+ if (!isArrayType(schema13)) {
142031
142031
  return;
142032
142032
  }
142033
- const { minItems } = schema12;
142034
- schema12.minItems = typeof minItems === "number" ? minItems : 0;
142033
+ const { minItems } = schema13;
142034
+ schema13.minItems = typeof minItems === "number" ? minItems : 0;
142035
142035
  });
142036
- rules.set("Remove maxItems if it is big enough to likely cause OOMs", (schema12, _fileName, options8) => {
142036
+ rules.set("Remove maxItems if it is big enough to likely cause OOMs", (schema13, _fileName, options8) => {
142037
142037
  if (options8.ignoreMinAndMaxItems || options8.maxItems === -1) {
142038
142038
  return;
142039
142039
  }
142040
- if (!isArrayType(schema12)) {
142040
+ if (!isArrayType(schema13)) {
142041
142041
  return;
142042
142042
  }
142043
- const { maxItems, minItems } = schema12;
142043
+ const { maxItems, minItems } = schema13;
142044
142044
  if (maxItems !== undefined && maxItems - minItems > options8.maxItems) {
142045
- delete schema12.maxItems;
142045
+ delete schema13.maxItems;
142046
142046
  }
142047
142047
  });
142048
- rules.set("Normalize schema.items", (schema12, _fileName, options8) => {
142048
+ rules.set("Normalize schema.items", (schema13, _fileName, options8) => {
142049
142049
  if (options8.ignoreMinAndMaxItems) {
142050
142050
  return;
142051
142051
  }
142052
- const { maxItems, minItems } = schema12;
142052
+ const { maxItems, minItems } = schema13;
142053
142053
  const hasMaxItems = typeof maxItems === "number" && maxItems >= 0;
142054
142054
  const hasMinItems = typeof minItems === "number" && minItems > 0;
142055
- if (schema12.items && !Array.isArray(schema12.items) && (hasMaxItems || hasMinItems)) {
142056
- const items = schema12.items;
142055
+ if (schema13.items && !Array.isArray(schema13.items) && (hasMaxItems || hasMinItems)) {
142056
+ const items = schema13.items;
142057
142057
  const newItems = Array(maxItems || minItems || 0).fill(items);
142058
142058
  if (!hasMaxItems) {
142059
- schema12.additionalItems = items;
142059
+ schema13.additionalItems = items;
142060
142060
  }
142061
- schema12.items = newItems;
142061
+ schema13.items = newItems;
142062
142062
  }
142063
- if (Array.isArray(schema12.items) && hasMaxItems && maxItems < schema12.items.length) {
142064
- schema12.items = schema12.items.slice(0, maxItems);
142063
+ if (Array.isArray(schema13.items) && hasMaxItems && maxItems < schema13.items.length) {
142064
+ schema13.items = schema13.items.slice(0, maxItems);
142065
142065
  }
142066
- return schema12;
142066
+ return schema13;
142067
142067
  });
142068
- rules.set("Remove extends, if it is empty", (schema12) => {
142069
- if (!schema12.hasOwnProperty("extends")) {
142068
+ rules.set("Remove extends, if it is empty", (schema13) => {
142069
+ if (!schema13.hasOwnProperty("extends")) {
142070
142070
  return;
142071
142071
  }
142072
- if (schema12.extends == null || Array.isArray(schema12.extends) && schema12.extends.length === 0) {
142073
- delete schema12.extends;
142072
+ if (schema13.extends == null || Array.isArray(schema13.extends) && schema13.extends.length === 0) {
142073
+ delete schema13.extends;
142074
142074
  }
142075
142075
  });
142076
- rules.set("Make extends always an array, if it is defined", (schema12) => {
142077
- if (schema12.extends == null) {
142076
+ rules.set("Make extends always an array, if it is defined", (schema13) => {
142077
+ if (schema13.extends == null) {
142078
142078
  return;
142079
142079
  }
142080
- if (!Array.isArray(schema12.extends)) {
142081
- schema12.extends = [schema12.extends];
142080
+ if (!Array.isArray(schema13.extends)) {
142081
+ schema13.extends = [schema13.extends];
142082
142082
  }
142083
142083
  });
142084
- rules.set("Transform definitions to $defs", (schema12, fileName) => {
142085
- if (schema12.definitions && schema12.$defs && !(0, util_1.isDeepStrictEqual)(schema12.definitions, schema12.$defs)) {
142086
- throw ReferenceError(`Schema must define either definitions or $defs, not both. Given id=${schema12.id} in ${fileName}`);
142084
+ rules.set("Transform definitions to $defs", (schema13, fileName) => {
142085
+ if (schema13.definitions && schema13.$defs && !(0, util_1.isDeepStrictEqual)(schema13.definitions, schema13.$defs)) {
142086
+ throw ReferenceError(`Schema must define either definitions or $defs, not both. Given id=${schema13.id} in ${fileName}`);
142087
142087
  }
142088
- if (schema12.definitions) {
142089
- schema12.$defs = schema12.definitions;
142090
- delete schema12.definitions;
142088
+ if (schema13.definitions) {
142089
+ schema13.$defs = schema13.definitions;
142090
+ delete schema13.definitions;
142091
142091
  }
142092
142092
  });
142093
- rules.set("Transform const to singleton enum", (schema12) => {
142094
- if (schema12.const !== undefined) {
142095
- schema12.enum = [schema12.const];
142096
- delete schema12.const;
142093
+ rules.set("Transform const to singleton enum", (schema13) => {
142094
+ if (schema13.const !== undefined) {
142095
+ schema13.enum = [schema13.const];
142096
+ delete schema13.const;
142097
142097
  }
142098
142098
  });
142099
- rules.set("Add tsEnumNames to enum types", (schema12, _10, options8) => {
142099
+ rules.set("Add tsEnumNames to enum types", (schema13, _10, options8) => {
142100
142100
  var _a7;
142101
- if (isEnumTypeWithoutTsEnumNames(schema12) && options8.inferStringEnumKeysFromValues) {
142102
- schema12.tsEnumNames = (_a7 = schema12.enum) === null || _a7 === undefined ? undefined : _a7.map(String);
142101
+ if (isEnumTypeWithoutTsEnumNames(schema13) && options8.inferStringEnumKeysFromValues) {
142102
+ schema13.tsEnumNames = (_a7 = schema13.enum) === null || _a7 === undefined ? undefined : _a7.map(String);
142103
142103
  }
142104
142104
  });
142105
- rules.set("Pre-calculate schema types and intersections", (schema12) => {
142106
- if (schema12 !== null && typeof schema12 === "object") {
142107
- (0, applySchemaTyping_1.applySchemaTyping)(schema12);
142105
+ rules.set("Pre-calculate schema types and intersections", (schema13) => {
142106
+ if (schema13 !== null && typeof schema13 === "object") {
142107
+ (0, applySchemaTyping_1.applySchemaTyping)(schema13);
142108
142108
  }
142109
142109
  });
142110
142110
  function normalize2(rootSchema, dereferencedPaths, filename, options8) {
142111
- rules.forEach((rule) => (0, utils_1.traverse)(rootSchema, (schema12, key2) => rule(schema12, filename, options8, key2, dereferencedPaths)));
142111
+ rules.forEach((rule) => (0, utils_1.traverse)(rootSchema, (schema13, key2) => rule(schema13, filename, options8, key2, dereferencedPaths)));
142112
142112
  return rootSchema;
142113
142113
  }
142114
142114
  exports.normalize = normalize2;
@@ -142190,37 +142190,37 @@ var require_parser2 = __commonJS((exports) => {
142190
142190
  var AST_1 = require_AST();
142191
142191
  var JSONSchema_1 = require_JSONSchema();
142192
142192
  var utils_1 = require_utils7();
142193
- function parse11(schema12, options8, keyName, processed = new Map, usedNames = new Set) {
142194
- if ((0, JSONSchema_1.isPrimitive)(schema12)) {
142195
- if ((0, JSONSchema_1.isBoolean)(schema12)) {
142196
- return parseBooleanSchema(schema12, keyName, options8);
142193
+ function parse11(schema13, options8, keyName, processed = new Map, usedNames = new Set) {
142194
+ if ((0, JSONSchema_1.isPrimitive)(schema13)) {
142195
+ if ((0, JSONSchema_1.isBoolean)(schema13)) {
142196
+ return parseBooleanSchema(schema13, keyName, options8);
142197
142197
  }
142198
- return parseLiteral(schema12, keyName);
142198
+ return parseLiteral(schema13, keyName);
142199
142199
  }
142200
- const intersection2 = schema12[JSONSchema_1.Intersection];
142201
- const types = schema12[JSONSchema_1.Types];
142200
+ const intersection2 = schema13[JSONSchema_1.Intersection];
142201
+ const types = schema13[JSONSchema_1.Types];
142202
142202
  if (intersection2) {
142203
142203
  const ast = parseAsTypeWithCache(intersection2, "ALL_OF", options8, keyName, processed, usedNames);
142204
142204
  types.forEach((type) => {
142205
- ast.params.push(parseAsTypeWithCache(schema12, type, options8, keyName, processed, usedNames));
142205
+ ast.params.push(parseAsTypeWithCache(schema13, type, options8, keyName, processed, usedNames));
142206
142206
  });
142207
- (0, utils_1.log)("blue", "parser", "Types:", [...types], "Input:", schema12, "Output:", ast);
142207
+ (0, utils_1.log)("blue", "parser", "Types:", [...types], "Input:", schema13, "Output:", ast);
142208
142208
  return ast;
142209
142209
  }
142210
142210
  if (types.size === 1) {
142211
142211
  const type = [...types][0];
142212
- const ast = parseAsTypeWithCache(schema12, type, options8, keyName, processed, usedNames);
142213
- (0, utils_1.log)("blue", "parser", "Type:", type, "Input:", schema12, "Output:", ast);
142212
+ const ast = parseAsTypeWithCache(schema13, type, options8, keyName, processed, usedNames);
142213
+ (0, utils_1.log)("blue", "parser", "Type:", type, "Input:", schema13, "Output:", ast);
142214
142214
  return ast;
142215
142215
  }
142216
142216
  throw new ReferenceError("Expected intersection schema. Please file an issue on GitHub.");
142217
142217
  }
142218
142218
  exports.parse = parse11;
142219
- function parseAsTypeWithCache(schema12, type, options8, keyName, processed = new Map, usedNames = new Set) {
142220
- let cachedTypeMap = processed.get(schema12);
142219
+ function parseAsTypeWithCache(schema13, type, options8, keyName, processed = new Map, usedNames = new Set) {
142220
+ let cachedTypeMap = processed.get(schema13);
142221
142221
  if (!cachedTypeMap) {
142222
142222
  cachedTypeMap = new Map;
142223
- processed.set(schema12, cachedTypeMap);
142223
+ processed.set(schema13, cachedTypeMap);
142224
142224
  }
142225
142225
  const cachedAST = cachedTypeMap.get(type);
142226
142226
  if (cachedAST) {
@@ -142228,10 +142228,10 @@ var require_parser2 = __commonJS((exports) => {
142228
142228
  }
142229
142229
  const ast = {};
142230
142230
  cachedTypeMap.set(type, ast);
142231
- return Object.assign(ast, parseNonLiteral(schema12, type, options8, keyName, processed, usedNames));
142231
+ return Object.assign(ast, parseNonLiteral(schema13, type, options8, keyName, processed, usedNames));
142232
142232
  }
142233
- function parseBooleanSchema(schema12, keyName, options8) {
142234
- if (schema12) {
142233
+ function parseBooleanSchema(schema13, keyName, options8) {
142234
+ if (schema13) {
142235
142235
  return {
142236
142236
  keyName,
142237
142237
  type: options8.unknownAny ? "UNKNOWN" : "ANY"
@@ -142242,157 +142242,157 @@ var require_parser2 = __commonJS((exports) => {
142242
142242
  type: "NEVER"
142243
142243
  };
142244
142244
  }
142245
- function parseLiteral(schema12, keyName) {
142245
+ function parseLiteral(schema13, keyName) {
142246
142246
  return {
142247
142247
  keyName,
142248
- params: schema12,
142248
+ params: schema13,
142249
142249
  type: "LITERAL"
142250
142250
  };
142251
142251
  }
142252
- function parseNonLiteral(schema12, type, options8, keyName, processed, usedNames) {
142253
- const definitions = getDefinitionsMemoized((0, JSONSchema_1.getRootSchema)(schema12));
142254
- const keyNameFromDefinition = (0, lodash_1.findKey)(definitions, (_10) => _10 === schema12);
142252
+ function parseNonLiteral(schema13, type, options8, keyName, processed, usedNames) {
142253
+ const definitions = getDefinitionsMemoized((0, JSONSchema_1.getRootSchema)(schema13));
142254
+ const keyNameFromDefinition = (0, lodash_1.findKey)(definitions, (_10) => _10 === schema13);
142255
142255
  switch (type) {
142256
142256
  case "ALL_OF":
142257
142257
  return {
142258
- comment: schema12.description,
142259
- deprecated: schema12.deprecated,
142258
+ comment: schema13.description,
142259
+ deprecated: schema13.deprecated,
142260
142260
  keyName,
142261
- standaloneName: standaloneName(schema12, keyNameFromDefinition, usedNames, options8),
142262
- params: schema12.allOf.map((_10) => parse11(_10, options8, undefined, processed, usedNames)),
142261
+ standaloneName: standaloneName(schema13, keyNameFromDefinition, usedNames, options8),
142262
+ params: schema13.allOf.map((_10) => parse11(_10, options8, undefined, processed, usedNames)),
142263
142263
  type: "INTERSECTION"
142264
142264
  };
142265
142265
  case "ANY":
142266
- return Object.assign(Object.assign({}, options8.unknownAny ? AST_1.T_UNKNOWN : AST_1.T_ANY), { comment: schema12.description, deprecated: schema12.deprecated, keyName, standaloneName: standaloneName(schema12, keyNameFromDefinition, usedNames, options8) });
142266
+ return Object.assign(Object.assign({}, options8.unknownAny ? AST_1.T_UNKNOWN : AST_1.T_ANY), { comment: schema13.description, deprecated: schema13.deprecated, keyName, standaloneName: standaloneName(schema13, keyNameFromDefinition, usedNames, options8) });
142267
142267
  case "ANY_OF":
142268
142268
  return {
142269
- comment: schema12.description,
142270
- deprecated: schema12.deprecated,
142269
+ comment: schema13.description,
142270
+ deprecated: schema13.deprecated,
142271
142271
  keyName,
142272
- standaloneName: standaloneName(schema12, keyNameFromDefinition, usedNames, options8),
142273
- params: schema12.anyOf.map((_10) => parse11(_10, options8, undefined, processed, usedNames)),
142272
+ standaloneName: standaloneName(schema13, keyNameFromDefinition, usedNames, options8),
142273
+ params: schema13.anyOf.map((_10) => parse11(_10, options8, undefined, processed, usedNames)),
142274
142274
  type: "UNION"
142275
142275
  };
142276
142276
  case "BOOLEAN":
142277
142277
  return {
142278
- comment: schema12.description,
142279
- deprecated: schema12.deprecated,
142278
+ comment: schema13.description,
142279
+ deprecated: schema13.deprecated,
142280
142280
  keyName,
142281
- standaloneName: standaloneName(schema12, keyNameFromDefinition, usedNames, options8),
142281
+ standaloneName: standaloneName(schema13, keyNameFromDefinition, usedNames, options8),
142282
142282
  type: "BOOLEAN"
142283
142283
  };
142284
142284
  case "CUSTOM_TYPE":
142285
142285
  return {
142286
- comment: schema12.description,
142287
- deprecated: schema12.deprecated,
142286
+ comment: schema13.description,
142287
+ deprecated: schema13.deprecated,
142288
142288
  keyName,
142289
- params: schema12.tsType,
142290
- standaloneName: standaloneName(schema12, keyNameFromDefinition, usedNames, options8),
142289
+ params: schema13.tsType,
142290
+ standaloneName: standaloneName(schema13, keyNameFromDefinition, usedNames, options8),
142291
142291
  type: "CUSTOM_TYPE"
142292
142292
  };
142293
142293
  case "NAMED_ENUM":
142294
142294
  return {
142295
- comment: schema12.description,
142296
- deprecated: schema12.deprecated,
142295
+ comment: schema13.description,
142296
+ deprecated: schema13.deprecated,
142297
142297
  keyName,
142298
- standaloneName: standaloneName(schema12, keyNameFromDefinition !== null && keyNameFromDefinition !== undefined ? keyNameFromDefinition : keyName, usedNames, options8),
142299
- params: schema12.enum.map((_10, n5) => ({
142298
+ standaloneName: standaloneName(schema13, keyNameFromDefinition !== null && keyNameFromDefinition !== undefined ? keyNameFromDefinition : keyName, usedNames, options8),
142299
+ params: schema13.enum.map((_10, n5) => ({
142300
142300
  ast: parseLiteral(_10, undefined),
142301
- keyName: schema12.tsEnumNames[n5]
142301
+ keyName: schema13.tsEnumNames[n5]
142302
142302
  })),
142303
142303
  type: "ENUM"
142304
142304
  };
142305
142305
  case "NAMED_SCHEMA":
142306
- return newInterface(schema12, options8, processed, usedNames, keyName);
142306
+ return newInterface(schema13, options8, processed, usedNames, keyName);
142307
142307
  case "NEVER":
142308
142308
  return {
142309
- comment: schema12.description,
142310
- deprecated: schema12.deprecated,
142309
+ comment: schema13.description,
142310
+ deprecated: schema13.deprecated,
142311
142311
  keyName,
142312
- standaloneName: standaloneName(schema12, keyNameFromDefinition, usedNames, options8),
142312
+ standaloneName: standaloneName(schema13, keyNameFromDefinition, usedNames, options8),
142313
142313
  type: "NEVER"
142314
142314
  };
142315
142315
  case "NULL":
142316
142316
  return {
142317
- comment: schema12.description,
142318
- deprecated: schema12.deprecated,
142317
+ comment: schema13.description,
142318
+ deprecated: schema13.deprecated,
142319
142319
  keyName,
142320
- standaloneName: standaloneName(schema12, keyNameFromDefinition, usedNames, options8),
142320
+ standaloneName: standaloneName(schema13, keyNameFromDefinition, usedNames, options8),
142321
142321
  type: "NULL"
142322
142322
  };
142323
142323
  case "NUMBER":
142324
142324
  return {
142325
- comment: schema12.description,
142326
- deprecated: schema12.deprecated,
142325
+ comment: schema13.description,
142326
+ deprecated: schema13.deprecated,
142327
142327
  keyName,
142328
- standaloneName: standaloneName(schema12, keyNameFromDefinition, usedNames, options8),
142328
+ standaloneName: standaloneName(schema13, keyNameFromDefinition, usedNames, options8),
142329
142329
  type: "NUMBER"
142330
142330
  };
142331
142331
  case "OBJECT":
142332
142332
  return {
142333
- comment: schema12.description,
142333
+ comment: schema13.description,
142334
142334
  keyName,
142335
- standaloneName: standaloneName(schema12, keyNameFromDefinition, usedNames, options8),
142335
+ standaloneName: standaloneName(schema13, keyNameFromDefinition, usedNames, options8),
142336
142336
  type: "OBJECT",
142337
- deprecated: schema12.deprecated
142337
+ deprecated: schema13.deprecated
142338
142338
  };
142339
142339
  case "ONE_OF":
142340
142340
  return {
142341
- comment: schema12.description,
142342
- deprecated: schema12.deprecated,
142341
+ comment: schema13.description,
142342
+ deprecated: schema13.deprecated,
142343
142343
  keyName,
142344
- standaloneName: standaloneName(schema12, keyNameFromDefinition, usedNames, options8),
142345
- params: schema12.oneOf.map((_10) => parse11(_10, options8, undefined, processed, usedNames)),
142344
+ standaloneName: standaloneName(schema13, keyNameFromDefinition, usedNames, options8),
142345
+ params: schema13.oneOf.map((_10) => parse11(_10, options8, undefined, processed, usedNames)),
142346
142346
  type: "UNION"
142347
142347
  };
142348
142348
  case "REFERENCE":
142349
- throw Error((0, util_1.format)("Refs should have been resolved by the resolver!", schema12));
142349
+ throw Error((0, util_1.format)("Refs should have been resolved by the resolver!", schema13));
142350
142350
  case "STRING":
142351
142351
  return {
142352
- comment: schema12.description,
142353
- deprecated: schema12.deprecated,
142352
+ comment: schema13.description,
142353
+ deprecated: schema13.deprecated,
142354
142354
  keyName,
142355
- standaloneName: standaloneName(schema12, keyNameFromDefinition, usedNames, options8),
142355
+ standaloneName: standaloneName(schema13, keyNameFromDefinition, usedNames, options8),
142356
142356
  type: "STRING"
142357
142357
  };
142358
142358
  case "TYPED_ARRAY":
142359
- if (Array.isArray(schema12.items)) {
142360
- const minItems2 = schema12.minItems;
142361
- const maxItems2 = schema12.maxItems;
142359
+ if (Array.isArray(schema13.items)) {
142360
+ const minItems2 = schema13.minItems;
142361
+ const maxItems2 = schema13.maxItems;
142362
142362
  const arrayType = {
142363
- comment: schema12.description,
142364
- deprecated: schema12.deprecated,
142363
+ comment: schema13.description,
142364
+ deprecated: schema13.deprecated,
142365
142365
  keyName,
142366
142366
  maxItems: maxItems2,
142367
142367
  minItems: minItems2,
142368
- standaloneName: standaloneName(schema12, keyNameFromDefinition, usedNames, options8),
142369
- params: schema12.items.map((_10) => parse11(_10, options8, undefined, processed, usedNames)),
142368
+ standaloneName: standaloneName(schema13, keyNameFromDefinition, usedNames, options8),
142369
+ params: schema13.items.map((_10) => parse11(_10, options8, undefined, processed, usedNames)),
142370
142370
  type: "TUPLE"
142371
142371
  };
142372
- if (schema12.additionalItems === true) {
142372
+ if (schema13.additionalItems === true) {
142373
142373
  arrayType.spreadParam = options8.unknownAny ? AST_1.T_UNKNOWN : AST_1.T_ANY;
142374
- } else if (schema12.additionalItems) {
142375
- arrayType.spreadParam = parse11(schema12.additionalItems, options8, undefined, processed, usedNames);
142374
+ } else if (schema13.additionalItems) {
142375
+ arrayType.spreadParam = parse11(schema13.additionalItems, options8, undefined, processed, usedNames);
142376
142376
  }
142377
142377
  return arrayType;
142378
142378
  } else {
142379
142379
  return {
142380
- comment: schema12.description,
142381
- deprecated: schema12.deprecated,
142380
+ comment: schema13.description,
142381
+ deprecated: schema13.deprecated,
142382
142382
  keyName,
142383
- standaloneName: standaloneName(schema12, keyNameFromDefinition, usedNames, options8),
142384
- params: parse11(schema12.items, options8, `{keyNameFromDefinition}Items`, processed, usedNames),
142383
+ standaloneName: standaloneName(schema13, keyNameFromDefinition, usedNames, options8),
142384
+ params: parse11(schema13.items, options8, `{keyNameFromDefinition}Items`, processed, usedNames),
142385
142385
  type: "ARRAY"
142386
142386
  };
142387
142387
  }
142388
142388
  case "UNION":
142389
142389
  return {
142390
- comment: schema12.description,
142391
- deprecated: schema12.deprecated,
142390
+ comment: schema13.description,
142391
+ deprecated: schema13.deprecated,
142392
142392
  keyName,
142393
- standaloneName: standaloneName(schema12, keyNameFromDefinition, usedNames, options8),
142394
- params: schema12.type.map((type2) => {
142395
- const member = Object.assign(Object.assign({}, (0, lodash_1.omit)(schema12, "$id", "description", "title")), { type: type2 });
142393
+ standaloneName: standaloneName(schema13, keyNameFromDefinition, usedNames, options8),
142394
+ params: schema13.type.map((type2) => {
142395
+ const member = Object.assign(Object.assign({}, (0, lodash_1.omit)(schema13, "$id", "description", "title")), { type: type2 });
142396
142396
  (0, utils_1.maybeStripDefault)(member);
142397
142397
  (0, applySchemaTyping_1.applySchemaTyping)(member);
142398
142398
  return parse11(member, options8, undefined, processed, usedNames);
@@ -142401,80 +142401,80 @@ var require_parser2 = __commonJS((exports) => {
142401
142401
  };
142402
142402
  case "UNNAMED_ENUM":
142403
142403
  return {
142404
- comment: schema12.description,
142405
- deprecated: schema12.deprecated,
142404
+ comment: schema13.description,
142405
+ deprecated: schema13.deprecated,
142406
142406
  keyName,
142407
- standaloneName: standaloneName(schema12, keyNameFromDefinition, usedNames, options8),
142408
- params: schema12.enum.map((_10) => parseLiteral(_10, undefined)),
142407
+ standaloneName: standaloneName(schema13, keyNameFromDefinition, usedNames, options8),
142408
+ params: schema13.enum.map((_10) => parseLiteral(_10, undefined)),
142409
142409
  type: "UNION"
142410
142410
  };
142411
142411
  case "UNNAMED_SCHEMA":
142412
- return newInterface(schema12, options8, processed, usedNames, keyName, keyNameFromDefinition);
142412
+ return newInterface(schema13, options8, processed, usedNames, keyName, keyNameFromDefinition);
142413
142413
  case "UNTYPED_ARRAY":
142414
- const minItems = schema12.minItems;
142415
- const maxItems = typeof schema12.maxItems === "number" ? schema12.maxItems : -1;
142414
+ const minItems = schema13.minItems;
142415
+ const maxItems = typeof schema13.maxItems === "number" ? schema13.maxItems : -1;
142416
142416
  const params = options8.unknownAny ? AST_1.T_UNKNOWN : AST_1.T_ANY;
142417
142417
  if (minItems > 0 || maxItems >= 0) {
142418
142418
  return {
142419
- comment: schema12.description,
142420
- deprecated: schema12.deprecated,
142419
+ comment: schema13.description,
142420
+ deprecated: schema13.deprecated,
142421
142421
  keyName,
142422
- maxItems: schema12.maxItems,
142422
+ maxItems: schema13.maxItems,
142423
142423
  minItems,
142424
142424
  params: Array(Math.max(maxItems, minItems) || 0).fill(params),
142425
142425
  spreadParam: maxItems >= 0 ? undefined : params,
142426
- standaloneName: standaloneName(schema12, keyNameFromDefinition, usedNames, options8),
142426
+ standaloneName: standaloneName(schema13, keyNameFromDefinition, usedNames, options8),
142427
142427
  type: "TUPLE"
142428
142428
  };
142429
142429
  }
142430
142430
  return {
142431
- comment: schema12.description,
142432
- deprecated: schema12.deprecated,
142431
+ comment: schema13.description,
142432
+ deprecated: schema13.deprecated,
142433
142433
  keyName,
142434
142434
  params,
142435
- standaloneName: standaloneName(schema12, keyNameFromDefinition, usedNames, options8),
142435
+ standaloneName: standaloneName(schema13, keyNameFromDefinition, usedNames, options8),
142436
142436
  type: "ARRAY"
142437
142437
  };
142438
142438
  }
142439
142439
  }
142440
- function standaloneName(schema12, keyNameFromDefinition, usedNames, options8) {
142440
+ function standaloneName(schema13, keyNameFromDefinition, usedNames, options8) {
142441
142441
  var _a7;
142442
- const name2 = ((_a7 = options8.customName) === null || _a7 === undefined ? undefined : _a7.call(options8, schema12, keyNameFromDefinition)) || schema12.title || schema12.$id || keyNameFromDefinition;
142442
+ const name2 = ((_a7 = options8.customName) === null || _a7 === undefined ? undefined : _a7.call(options8, schema13, keyNameFromDefinition)) || schema13.title || schema13.$id || keyNameFromDefinition;
142443
142443
  if (name2) {
142444
142444
  return (0, utils_1.generateName)(name2, usedNames);
142445
142445
  }
142446
142446
  }
142447
- function newInterface(schema12, options8, processed, usedNames, keyName, keyNameFromDefinition) {
142448
- const name2 = standaloneName(schema12, keyNameFromDefinition, usedNames, options8);
142447
+ function newInterface(schema13, options8, processed, usedNames, keyName, keyNameFromDefinition) {
142448
+ const name2 = standaloneName(schema13, keyNameFromDefinition, usedNames, options8);
142449
142449
  return {
142450
- comment: schema12.description,
142451
- deprecated: schema12.deprecated,
142450
+ comment: schema13.description,
142451
+ deprecated: schema13.deprecated,
142452
142452
  keyName,
142453
- params: parseSchema(schema12, options8, processed, usedNames, name2),
142453
+ params: parseSchema(schema13, options8, processed, usedNames, name2),
142454
142454
  standaloneName: name2,
142455
- superTypes: parseSuperTypes(schema12, options8, processed, usedNames),
142455
+ superTypes: parseSuperTypes(schema13, options8, processed, usedNames),
142456
142456
  type: "INTERFACE"
142457
142457
  };
142458
142458
  }
142459
- function parseSuperTypes(schema12, options8, processed, usedNames) {
142460
- const superTypes = schema12.extends;
142459
+ function parseSuperTypes(schema13, options8, processed, usedNames) {
142460
+ const superTypes = schema13.extends;
142461
142461
  if (!superTypes) {
142462
142462
  return [];
142463
142463
  }
142464
142464
  return superTypes.map((_10) => parse11(_10, options8, undefined, processed, usedNames));
142465
142465
  }
142466
- function parseSchema(schema12, options8, processed, usedNames, parentSchemaName) {
142467
- let asts = (0, lodash_1.map)(schema12.properties, (value, key2) => ({
142466
+ function parseSchema(schema13, options8, processed, usedNames, parentSchemaName) {
142467
+ let asts = (0, lodash_1.map)(schema13.properties, (value, key2) => ({
142468
142468
  ast: parse11(value, options8, key2, processed, usedNames),
142469
142469
  isPatternProperty: false,
142470
- isRequired: (0, lodash_1.includes)(schema12.required || [], key2),
142470
+ isRequired: (0, lodash_1.includes)(schema13.required || [], key2),
142471
142471
  isUnreachableDefinition: false,
142472
142472
  keyName: key2
142473
142473
  }));
142474
142474
  let singlePatternProperty = false;
142475
- if (schema12.patternProperties) {
142476
- singlePatternProperty = !schema12.additionalProperties && Object.keys(schema12.patternProperties).length === 1;
142477
- asts = asts.concat((0, lodash_1.map)(schema12.patternProperties, (value, key2) => {
142475
+ if (schema13.patternProperties) {
142476
+ singlePatternProperty = !schema13.additionalProperties && Object.keys(schema13.patternProperties).length === 1;
142477
+ asts = asts.concat((0, lodash_1.map)(schema13.patternProperties, (value, key2) => {
142478
142478
  const ast = parse11(value, options8, key2, processed, usedNames);
142479
142479
  const comment = `This interface was referenced by \`${parentSchemaName}\`'s JSON-Schema definition
142480
142480
  via the \`patternProperty\` "${key2.replace("*/", "*\\/")}".`;
@@ -142484,14 +142484,14 @@ ${comment}` : comment;
142484
142484
  return {
142485
142485
  ast,
142486
142486
  isPatternProperty: !singlePatternProperty,
142487
- isRequired: singlePatternProperty || (0, lodash_1.includes)(schema12.required || [], key2),
142487
+ isRequired: singlePatternProperty || (0, lodash_1.includes)(schema13.required || [], key2),
142488
142488
  isUnreachableDefinition: false,
142489
142489
  keyName: singlePatternProperty ? "[k: string]" : key2
142490
142490
  };
142491
142491
  }));
142492
142492
  }
142493
142493
  if (options8.unreachableDefinitions) {
142494
- asts = asts.concat((0, lodash_1.map)(schema12.$defs, (value, key2) => {
142494
+ asts = asts.concat((0, lodash_1.map)(schema13.$defs, (value, key2) => {
142495
142495
  const ast = parse11(value, options8, key2, processed, usedNames);
142496
142496
  const comment = `This interface was referenced by \`${parentSchemaName}\`'s JSON-Schema
142497
142497
  via the \`definition\` "${key2}".`;
@@ -142501,13 +142501,13 @@ ${comment}` : comment;
142501
142501
  return {
142502
142502
  ast,
142503
142503
  isPatternProperty: false,
142504
- isRequired: (0, lodash_1.includes)(schema12.required || [], key2),
142504
+ isRequired: (0, lodash_1.includes)(schema13.required || [], key2),
142505
142505
  isUnreachableDefinition: true,
142506
142506
  keyName: key2
142507
142507
  };
142508
142508
  }));
142509
142509
  }
142510
- switch (schema12.additionalProperties) {
142510
+ switch (schema13.additionalProperties) {
142511
142511
  case undefined:
142512
142512
  case true:
142513
142513
  if (singlePatternProperty) {
@@ -142524,7 +142524,7 @@ ${comment}` : comment;
142524
142524
  return asts;
142525
142525
  default:
142526
142526
  return asts.concat({
142527
- ast: parse11(schema12.additionalProperties, options8, "[k: string]", processed, usedNames),
142527
+ ast: parse11(schema13.additionalProperties, options8, "[k: string]", processed, usedNames),
142528
142528
  isPatternProperty: false,
142529
142529
  isRequired: true,
142530
142530
  isUnreachableDefinition: false,
@@ -142532,22 +142532,22 @@ ${comment}` : comment;
142532
142532
  });
142533
142533
  }
142534
142534
  }
142535
- function getDefinitions(schema12, isSchema = true, processed = new Set) {
142536
- if (processed.has(schema12)) {
142535
+ function getDefinitions(schema13, isSchema = true, processed = new Set) {
142536
+ if (processed.has(schema13)) {
142537
142537
  return {};
142538
142538
  }
142539
- processed.add(schema12);
142540
- if (Array.isArray(schema12)) {
142541
- return schema12.reduce((prev, cur) => Object.assign(Object.assign({}, prev), getDefinitions(cur, false, processed)), {});
142539
+ processed.add(schema13);
142540
+ if (Array.isArray(schema13)) {
142541
+ return schema13.reduce((prev, cur) => Object.assign(Object.assign({}, prev), getDefinitions(cur, false, processed)), {});
142542
142542
  }
142543
- if ((0, lodash_1.isPlainObject)(schema12)) {
142544
- return Object.assign(Object.assign({}, isSchema && hasDefinitions(schema12) ? schema12.$defs : {}), Object.keys(schema12).reduce((prev, cur) => Object.assign(Object.assign({}, prev), getDefinitions(schema12[cur], false, processed)), {}));
142543
+ if ((0, lodash_1.isPlainObject)(schema13)) {
142544
+ return Object.assign(Object.assign({}, isSchema && hasDefinitions(schema13) ? schema13.$defs : {}), Object.keys(schema13).reduce((prev, cur) => Object.assign(Object.assign({}, prev), getDefinitions(schema13[cur], false, processed)), {}));
142545
142545
  }
142546
142546
  return {};
142547
142547
  }
142548
142548
  var getDefinitionsMemoized = (0, lodash_1.memoize)(getDefinitions);
142549
- function hasDefinitions(schema12) {
142550
- return "$defs" in schema12;
142549
+ function hasDefinitions(schema13) {
142550
+ return "$defs" in schema13;
142551
142551
  }
142552
142552
  });
142553
142553
 
@@ -142972,7 +142972,7 @@ var require_url = __commonJS((exports) => {
142972
142972
  exports.fromFileSystemPath = fromFileSystemPath;
142973
142973
  exports.toFileSystemPath = toFileSystemPath;
142974
142974
  exports.safePointerToPath = safePointerToPath;
142975
- exports.relative = relative4;
142975
+ exports.relative = relative6;
142976
142976
  var convert_path_to_posix_1 = __importDefault(require_convert_path_to_posix());
142977
142977
  var path_1 = __importStar(__require("path"));
142978
142978
  var forwardSlashPattern = /\//g;
@@ -143122,7 +143122,7 @@ var require_url = __commonJS((exports) => {
143122
143122
  return decodeURIComponent(value).replace(jsonPointerSlash, "/").replace(jsonPointerTilde, "~");
143123
143123
  });
143124
143124
  }
143125
- function relative4(from, to5) {
143125
+ function relative6(from, to5) {
143126
143126
  if (!isFileSystemPath(from) || !isFileSystemPath(to5)) {
143127
143127
  return resolve13(from, to5);
143128
143128
  }
@@ -144371,7 +144371,7 @@ var require_normalize_args = __commonJS((exports) => {
144371
144371
  var options_js_1 = require_options();
144372
144372
  function normalizeArgs(_args) {
144373
144373
  let path18;
144374
- let schema12;
144374
+ let schema13;
144375
144375
  let options8;
144376
144376
  let callback;
144377
144377
  const args = Array.prototype.slice.call(_args);
@@ -144381,15 +144381,15 @@ var require_normalize_args = __commonJS((exports) => {
144381
144381
  if (typeof args[0] === "string") {
144382
144382
  path18 = args[0];
144383
144383
  if (typeof args[2] === "object") {
144384
- schema12 = args[1];
144384
+ schema13 = args[1];
144385
144385
  options8 = args[2];
144386
144386
  } else {
144387
- schema12 = undefined;
144387
+ schema13 = undefined;
144388
144388
  options8 = args[1];
144389
144389
  }
144390
144390
  } else {
144391
144391
  path18 = "";
144392
- schema12 = args[0];
144392
+ schema13 = args[0];
144393
144393
  options8 = args[1];
144394
144394
  }
144395
144395
  try {
@@ -144397,12 +144397,12 @@ var require_normalize_args = __commonJS((exports) => {
144397
144397
  } catch (e8) {
144398
144398
  console.error(`JSON Schema Ref Parser: Error normalizing options: ${e8}`);
144399
144399
  }
144400
- if (!options8.mutateInputSchema && typeof schema12 === "object") {
144401
- schema12 = JSON.parse(JSON.stringify(schema12));
144400
+ if (!options8.mutateInputSchema && typeof schema13 === "object") {
144401
+ schema13 = JSON.parse(JSON.stringify(schema13));
144402
144402
  }
144403
144403
  return {
144404
144404
  path: path18,
144405
- schema: schema12,
144405
+ schema: schema13,
144406
144406
  options: options8,
144407
144407
  callback
144408
144408
  };
@@ -145191,12 +145191,12 @@ var require_resolver = __commonJS((exports) => {
145191
145191
  var json_schema_ref_parser_1 = require_lib3();
145192
145192
  var utils_1 = require_utils7();
145193
145193
  function dereference(schema_1, _a7) {
145194
- return __awaiter(this, arguments, undefined, function* (schema12, { cwd, $refOptions }) {
145195
- (0, utils_1.log)("green", "dereferencer", "Dereferencing input schema:", cwd, schema12);
145194
+ return __awaiter(this, arguments, undefined, function* (schema13, { cwd, $refOptions }) {
145195
+ (0, utils_1.log)("green", "dereferencer", "Dereferencing input schema:", cwd, schema13);
145196
145196
  const parser2 = new json_schema_ref_parser_1.$RefParser;
145197
145197
  const dereferencedPaths = new WeakMap;
145198
- const dereferencedSchema = yield parser2.dereference(cwd, schema12, Object.assign(Object.assign({}, $refOptions), { dereference: Object.assign(Object.assign({}, $refOptions.dereference), { onDereference($ref, schema13) {
145199
- dereferencedPaths.set(schema13, $ref);
145198
+ const dereferencedSchema = yield parser2.dereference(cwd, schema13, Object.assign(Object.assign({}, $refOptions), { dereference: Object.assign(Object.assign({}, $refOptions.dereference), { onDereference($ref, schema14) {
145199
+ dereferencedPaths.set(schema14, $ref);
145200
145200
  } }) }));
145201
145201
  return { dereferencedPaths, dereferencedSchema };
145202
145202
  });
@@ -145210,46 +145210,46 @@ var require_validator = __commonJS((exports) => {
145210
145210
  exports.validate = undefined;
145211
145211
  var utils_1 = require_utils7();
145212
145212
  var rules = new Map;
145213
- rules.set("Enum members and tsEnumNames must be of the same length", (schema12) => {
145214
- if (schema12.enum && schema12.tsEnumNames && schema12.enum.length !== schema12.tsEnumNames.length) {
145213
+ rules.set("Enum members and tsEnumNames must be of the same length", (schema13) => {
145214
+ if (schema13.enum && schema13.tsEnumNames && schema13.enum.length !== schema13.tsEnumNames.length) {
145215
145215
  return false;
145216
145216
  }
145217
145217
  });
145218
- rules.set("tsEnumNames must be an array of strings", (schema12) => {
145219
- if (schema12.tsEnumNames && schema12.tsEnumNames.some((_10) => typeof _10 !== "string")) {
145218
+ rules.set("tsEnumNames must be an array of strings", (schema13) => {
145219
+ if (schema13.tsEnumNames && schema13.tsEnumNames.some((_10) => typeof _10 !== "string")) {
145220
145220
  return false;
145221
145221
  }
145222
145222
  });
145223
- rules.set("When both maxItems and minItems are present, maxItems >= minItems", (schema12) => {
145224
- const { maxItems, minItems } = schema12;
145223
+ rules.set("When both maxItems and minItems are present, maxItems >= minItems", (schema13) => {
145224
+ const { maxItems, minItems } = schema13;
145225
145225
  if (typeof maxItems === "number" && typeof minItems === "number") {
145226
145226
  return maxItems >= minItems;
145227
145227
  }
145228
145228
  });
145229
- rules.set("When maxItems exists, maxItems >= 0", (schema12) => {
145230
- const { maxItems } = schema12;
145229
+ rules.set("When maxItems exists, maxItems >= 0", (schema13) => {
145230
+ const { maxItems } = schema13;
145231
145231
  if (typeof maxItems === "number") {
145232
145232
  return maxItems >= 0;
145233
145233
  }
145234
145234
  });
145235
- rules.set("When minItems exists, minItems >= 0", (schema12) => {
145236
- const { minItems } = schema12;
145235
+ rules.set("When minItems exists, minItems >= 0", (schema13) => {
145236
+ const { minItems } = schema13;
145237
145237
  if (typeof minItems === "number") {
145238
145238
  return minItems >= 0;
145239
145239
  }
145240
145240
  });
145241
- rules.set("deprecated must be a boolean", (schema12) => {
145242
- const typeOfDeprecated = typeof schema12.deprecated;
145241
+ rules.set("deprecated must be a boolean", (schema13) => {
145242
+ const typeOfDeprecated = typeof schema13.deprecated;
145243
145243
  return typeOfDeprecated === "boolean" || typeOfDeprecated === "undefined";
145244
145244
  });
145245
- function validate2(schema12, filename) {
145245
+ function validate2(schema13, filename) {
145246
145246
  const errors5 = [];
145247
145247
  rules.forEach((rule, ruleName) => {
145248
- (0, utils_1.traverse)(schema12, (schema13, key2) => {
145249
- if (rule(schema13) === false) {
145248
+ (0, utils_1.traverse)(schema13, (schema14, key2) => {
145249
+ if (rule(schema14) === false) {
145250
145250
  errors5.push(`Error at key "${key2}" in file "${filename}": ${ruleName}`);
145251
145251
  }
145252
- return schema13;
145252
+ return schema14;
145253
145253
  });
145254
145254
  });
145255
145255
  return errors5;
@@ -145263,25 +145263,25 @@ var require_linker = __commonJS((exports) => {
145263
145263
  exports.link = undefined;
145264
145264
  var JSONSchema_1 = require_JSONSchema();
145265
145265
  var lodash_1 = require_lodash8();
145266
- function link2(schema12, parent = null) {
145267
- if (!Array.isArray(schema12) && !(0, lodash_1.isPlainObject)(schema12)) {
145268
- return schema12;
145266
+ function link2(schema13, parent = null) {
145267
+ if (!Array.isArray(schema13) && !(0, lodash_1.isPlainObject)(schema13)) {
145268
+ return schema13;
145269
145269
  }
145270
- if (schema12.hasOwnProperty(JSONSchema_1.Parent)) {
145271
- return schema12;
145270
+ if (schema13.hasOwnProperty(JSONSchema_1.Parent)) {
145271
+ return schema13;
145272
145272
  }
145273
- Object.defineProperty(schema12, JSONSchema_1.Parent, {
145273
+ Object.defineProperty(schema13, JSONSchema_1.Parent, {
145274
145274
  enumerable: false,
145275
145275
  value: parent,
145276
145276
  writable: false
145277
145277
  });
145278
- if (Array.isArray(schema12)) {
145279
- schema12.forEach((child) => link2(child, schema12));
145278
+ if (Array.isArray(schema13)) {
145279
+ schema13.forEach((child) => link2(child, schema13));
145280
145280
  }
145281
- for (const key2 in schema12) {
145282
- link2(schema12[key2], schema12);
145281
+ for (const key2 in schema13) {
145282
+ link2(schema13[key2], schema13);
145283
145283
  }
145284
- return schema12;
145284
+ return schema13;
145285
145285
  }
145286
145286
  exports.link = link2;
145287
145287
  });
@@ -145373,8 +145373,8 @@ var require_src3 = __commonJS((exports) => {
145373
145373
  unknownAny: true
145374
145374
  };
145375
145375
  function compileFromFile(filename, options8 = exports.DEFAULT_OPTIONS) {
145376
- const schema12 = parseAsJSONSchema(filename);
145377
- return compile(schema12, (0, utils_1.stripExtension)(filename), Object.assign({ cwd: (0, path_1.dirname)(filename) }, options8));
145376
+ const schema13 = parseAsJSONSchema(filename);
145377
+ return compile(schema13, (0, utils_1.stripExtension)(filename), Object.assign({ cwd: (0, path_1.dirname)(filename) }, options8));
145378
145378
  }
145379
145379
  exports.compileFromFile = compileFromFile;
145380
145380
  function parseAsJSONSchema(filename) {
@@ -145384,7 +145384,7 @@ var require_src3 = __commonJS((exports) => {
145384
145384
  return (0, utils_1.parseFileAsJSONSchema)(filename, contents.toString());
145385
145385
  }
145386
145386
  function compile(schema_1, name_1) {
145387
- return __awaiter(this, arguments, undefined, function* (schema12, name2, options8 = {}) {
145387
+ return __awaiter(this, arguments, undefined, function* (schema13, name2, options8 = {}) {
145388
145388
  (0, optionValidator_1.validateOptions)(options8);
145389
145389
  const _options = (0, lodash_1.merge)({}, exports.DEFAULT_OPTIONS, options8);
145390
145390
  const start = Date.now();
@@ -145394,7 +145394,7 @@ var require_src3 = __commonJS((exports) => {
145394
145394
  if (!(0, lodash_1.endsWith)(_options.cwd, "/")) {
145395
145395
  _options.cwd += "/";
145396
145396
  }
145397
- const _schema = (0, lodash_1.cloneDeep)(schema12);
145397
+ const _schema = (0, lodash_1.cloneDeep)(schema13);
145398
145398
  const { dereferencedPaths, dereferencedSchema } = yield (0, resolver_1.dereference)(_schema, _options);
145399
145399
  if (process.env.VERBOSE) {
145400
145400
  if ((0, util_1.isDeepStrictEqual)(_schema, dereferencedSchema)) {
@@ -146451,7 +146451,7 @@ var require_depd = __commonJS((exports, module) => {
146451
146451
  * Copyright(c) 2014-2018 Douglas Christopher Wilson
146452
146452
  * MIT Licensed
146453
146453
  */
146454
- var relative4 = __require("path").relative;
146454
+ var relative6 = __require("path").relative;
146455
146455
  module.exports = depd;
146456
146456
  var basePath = process.cwd();
146457
146457
  function containsNamespace(str, namespace) {
@@ -146647,7 +146647,7 @@ var require_depd = __commonJS((exports, module) => {
146647
146647
  return formatted;
146648
146648
  }
146649
146649
  function formatLocation(callSite) {
146650
- return relative4(basePath, callSite[0]) + ":" + callSite[1] + ":" + callSite[2];
146650
+ return relative6(basePath, callSite[0]) + ":" + callSite[1] + ":" + callSite[2];
146651
146651
  }
146652
146652
  function getStack() {
146653
146653
  var limit = Error.stackTraceLimit;
@@ -164109,8 +164109,8 @@ var require_view = __commonJS((exports, module) => {
164109
164109
  var debug = require_src4()("express:view");
164110
164110
  var path18 = __require("node:path");
164111
164111
  var fs28 = __require("node:fs");
164112
- var dirname20 = path18.dirname;
164113
- var basename7 = path18.basename;
164112
+ var dirname22 = path18.dirname;
164113
+ var basename8 = path18.basename;
164114
164114
  var extname2 = path18.extname;
164115
164115
  var join29 = path18.join;
164116
164116
  var resolve13 = path18.resolve;
@@ -164148,8 +164148,8 @@ var require_view = __commonJS((exports, module) => {
164148
164148
  for (var i5 = 0;i5 < roots.length && !path19; i5++) {
164149
164149
  var root2 = roots[i5];
164150
164150
  var loc = resolve13(root2, name2);
164151
- var dir = dirname20(loc);
164152
- var file2 = basename7(loc);
164151
+ var dir = dirname22(loc);
164152
+ var file2 = basename8(loc);
164153
164153
  path19 = this.resolve(dir, file2);
164154
164154
  }
164155
164155
  return path19;
@@ -164179,7 +164179,7 @@ var require_view = __commonJS((exports, module) => {
164179
164179
  if (stat3 && stat3.isFile()) {
164180
164180
  return path19;
164181
164181
  }
164182
- path19 = join29(dir, basename7(file2, ext), "index" + ext);
164182
+ path19 = join29(dir, basename8(file2, ext), "index" + ext);
164183
164183
  stat3 = tryStat(path19);
164184
164184
  if (stat3 && stat3.isFile()) {
164185
164185
  return path19;
@@ -167500,7 +167500,7 @@ var require_content_disposition = __commonJS((exports, module) => {
167500
167500
  */
167501
167501
  module.exports = contentDisposition;
167502
167502
  module.exports.parse = parse11;
167503
- var basename7 = __require("path").basename;
167503
+ var basename8 = __require("path").basename;
167504
167504
  var ENCODE_URL_ATTR_CHAR_REGEXP = /[\x00-\x20"'()*,/:;<=>?@[\\\]{}\x7f]/g;
167505
167505
  var HEX_ESCAPE_REGEXP = /%[0-9A-Fa-f]{2}/;
167506
167506
  var HEX_ESCAPE_REPLACE_REGEXP = /%([0-9A-Fa-f]{2})/g;
@@ -167535,9 +167535,9 @@ var require_content_disposition = __commonJS((exports, module) => {
167535
167535
  if (typeof fallback === "string" && NON_LATIN1_REGEXP.test(fallback)) {
167536
167536
  throw new TypeError("fallback must be ISO-8859-1 string");
167537
167537
  }
167538
- var name2 = basename7(filename);
167538
+ var name2 = basename8(filename);
167539
167539
  var isQuotedString = TEXT_REGEXP.test(name2);
167540
- var fallbackName = typeof fallback !== "string" ? fallback && getlatin1(name2) : basename7(fallback);
167540
+ var fallbackName = typeof fallback !== "string" ? fallback && getlatin1(name2) : basename8(fallback);
167541
167541
  var hasFallback = typeof fallbackName === "string" && fallbackName !== name2;
167542
167542
  if (hasFallback || !isQuotedString || HEX_ESCAPE_REGEXP.test(name2)) {
167543
167543
  params["filename*"] = name2;
@@ -169284,18 +169284,18 @@ var require_common7 = __commonJS((exports) => {
169284
169284
  retSegs.push.apply(retSegs, lastSegs);
169285
169285
  return retSegs.join("?");
169286
169286
  };
169287
- common2.rewriteCookieProperty = function rewriteCookieProperty(header2, config13, property) {
169287
+ common2.rewriteCookieProperty = function rewriteCookieProperty(header2, config14, property) {
169288
169288
  if (Array.isArray(header2)) {
169289
169289
  return header2.map(function(headerElement) {
169290
- return rewriteCookieProperty(headerElement, config13, property);
169290
+ return rewriteCookieProperty(headerElement, config14, property);
169291
169291
  });
169292
169292
  }
169293
169293
  return header2.replace(new RegExp("(;\\s*" + property + "=)([^;]+)", "i"), function(match, prefix, previousValue) {
169294
169294
  var newValue;
169295
- if (previousValue in config13) {
169296
- newValue = config13[previousValue];
169297
- } else if ("*" in config13) {
169298
- newValue = config13["*"];
169295
+ if (previousValue in config14) {
169296
+ newValue = config14[previousValue];
169297
+ } else if ("*" in config14) {
169298
+ newValue = config14["*"];
169299
169299
  } else {
169300
169300
  return match;
169301
169301
  }
@@ -169795,8 +169795,8 @@ var require_follow_redirects = __commonJS((exports, module) => {
169795
169795
  }
169796
169796
  return parsed;
169797
169797
  }
169798
- function resolveUrl(relative4, base) {
169799
- return useNativeURL ? new URL2(relative4, base) : parseUrl(url3.resolve(base, relative4));
169798
+ function resolveUrl(relative6, base) {
169799
+ return useNativeURL ? new URL2(relative6, base) : parseUrl(url3.resolve(base, relative6));
169800
169800
  }
169801
169801
  function validateUrl(input) {
169802
169802
  if (/^\[/.test(input.hostname) && !/^\[[:0-9a-f]+\]$/i.test(input.hostname)) {
@@ -170660,9 +170660,9 @@ var require_router2 = __commonJS((exports) => {
170660
170660
  var is_plain_object_1 = require_is_plain_object();
170661
170661
  var debug_1 = require_debug4();
170662
170662
  var debug = debug_1.Debug.extend("router");
170663
- async function getTarget(req, config13) {
170663
+ async function getTarget(req, config14) {
170664
170664
  let newTarget;
170665
- const router = config13.router;
170665
+ const router = config14.router;
170666
170666
  if ((0, is_plain_object_1.isPlainObject)(router)) {
170667
170667
  newTarget = getTargetFromProxyTable(req, router);
170668
170668
  } else if (typeof router === "function") {
@@ -171434,8 +171434,8 @@ var require_tmp = __commonJS((exports, module) => {
171434
171434
  const name2 = options8.name;
171435
171435
  if (path18.isAbsolute(name2))
171436
171436
  throw new Error(`name option must not contain an absolute path, found "${name2}".`);
171437
- const basename7 = path18.basename(name2);
171438
- if (basename7 === ".." || basename7 === "." || basename7 !== name2)
171437
+ const basename8 = path18.basename(name2);
171438
+ if (basename8 === ".." || basename8 === "." || basename8 !== name2)
171439
171439
  throw new Error(`name option must not contain a path, found "${name2}".`);
171440
171440
  }
171441
171441
  if (!_isUndefined(options8.template) && !options8.template.match(TEMPLATE_PATTERN)) {
@@ -213566,7 +213566,7 @@ var require_utils12 = __commonJS((exports, module) => {
213566
213566
  if (decode4)
213567
213567
  return decode4(data, hint);
213568
213568
  }
213569
- function basename7(path18) {
213569
+ function basename8(path18) {
213570
213570
  if (typeof path18 !== "string")
213571
213571
  return "";
213572
213572
  for (let i5 = path18.length - 1;i5 >= 0; --i5) {
@@ -214870,7 +214870,7 @@ var require_utils12 = __commonJS((exports, module) => {
214870
214870
  -1
214871
214871
  ];
214872
214872
  module.exports = {
214873
- basename: basename7,
214873
+ basename: basename8,
214874
214874
  convertToUTF8,
214875
214875
  getDecoder,
214876
214876
  parseContentType,
@@ -215278,7 +215278,7 @@ var require_multipart = __commonJS((exports, module) => {
215278
215278
  var { Readable: Readable6, Writable: Writable4 } = __require("stream");
215279
215279
  var StreamSearch = require_sbmh();
215280
215280
  var {
215281
- basename: basename7,
215281
+ basename: basename8,
215282
215282
  convertToUTF8,
215283
215283
  getDecoder,
215284
215284
  parseContentType,
@@ -215540,7 +215540,7 @@ var require_multipart = __commonJS((exports, module) => {
215540
215540
  else if (disp.params.filename)
215541
215541
  filename = disp.params.filename;
215542
215542
  if (filename !== undefined && !preservePath)
215543
- filename = basename7(filename);
215543
+ filename = basename8(filename);
215544
215544
  }
215545
215545
  if (header2["content-type"]) {
215546
215546
  const conType = parseContentType(header2["content-type"][0]);
@@ -237657,6 +237657,21 @@ class ApiError extends SystemError {
237657
237657
  }
237658
237658
  }
237659
237659
 
237660
+ class ResourceDeployError extends SystemError {
237661
+ code = "RESOURCE_DEPLOY_FAILED";
237662
+ failures;
237663
+ constructor(resource, failures) {
237664
+ const label = failures.length === 1 ? resource : `${resource}s`;
237665
+ const hints = failures.flatMap((failure) => failure.cause instanceof CLIError ? failure.cause.hints : []);
237666
+ super(`Failed to deploy ${failures.length} ${label}`, {
237667
+ details: failures.map((failure) => `${failure.name}: ${failure.message}`),
237668
+ hints: hints.filter((hint, index, all) => all.findIndex((candidate) => candidate.message === hint.message && candidate.command === hint.command) === index),
237669
+ cause: failures.find((failure) => failure.cause)?.cause
237670
+ });
237671
+ this.failures = failures;
237672
+ }
237673
+ }
237674
+
237660
237675
  class FileNotFoundError extends SystemError {
237661
237676
  code = "FILE_NOT_FOUND";
237662
237677
  constructor(message, options) {
@@ -237840,7 +237855,7 @@ function normalizeBase44Env() {
237840
237855
  loadProjectEnvFiles();
237841
237856
 
237842
237857
  // src/cli/index.ts
237843
- import { dirname as dirname25, join as join36 } from "node:path";
237858
+ import { dirname as dirname27, join as join36 } from "node:path";
237844
237859
  import { fileURLToPath as fileURLToPath6 } from "node:url";
237845
237860
 
237846
237861
  // ../../node_modules/@clack/core/dist/index.mjs
@@ -239046,9 +239061,6 @@ var {
239046
239061
  Option,
239047
239062
  Help
239048
239063
  } = import__.default;
239049
-
239050
- // src/cli/commands/agent-skills/pull.ts
239051
- import { dirname as dirname10, join as join17 } from "node:path";
239052
239064
  // ../../node_modules/chalk/source/vendor/ansi-styles/index.js
239053
239065
  var ANSI_BACKGROUND_OFFSET = 10;
239054
239066
  var wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`;
@@ -239862,6 +239874,7 @@ var ProjectConfigSchema = exports_external.object({
239862
239874
  site: SiteConfigSchema.optional(),
239863
239875
  entitiesDir: exports_external.string().optional().default("entities"),
239864
239876
  functionsDir: exports_external.string().optional().default("functions"),
239877
+ actorsDir: exports_external.string().optional().default("actors"),
239865
239878
  agentsDir: exports_external.string().optional().default("agents"),
239866
239879
  agentSkillsDir: exports_external.string().optional().default("agent-skills"),
239867
239880
  connectorsDir: exports_external.string().optional().default("connectors"),
@@ -245801,7 +245814,7 @@ async function getSiteUrl() {
245801
245814
  return result.data.url;
245802
245815
  }
245803
245816
  // src/core/project/config.ts
245804
- import { dirname as dirname8, join as join11 } from "node:path";
245817
+ import { dirname as dirname10, join as join11 } from "node:path";
245805
245818
 
245806
245819
  // src/core/project/plugins.ts
245807
245820
  import { createRequire as createRequire2 } from "node:module";
@@ -245839,6 +245852,198 @@ function markPluginEntities(entities, pluginNamespace) {
245839
245852
  }));
245840
245853
  }
245841
245854
 
245855
+ // src/core/resources/types.ts
245856
+ var ResourceSourceSchema = exports_external.discriminatedUnion("type", [
245857
+ exports_external.object({
245858
+ type: exports_external.literal("project")
245859
+ }),
245860
+ exports_external.object({
245861
+ type: exports_external.literal("plugin"),
245862
+ namespace: exports_external.string().min(1, "Plugin namespace cannot be empty")
245863
+ })
245864
+ ]);
245865
+ function throwIfDeployFailed(results, resource) {
245866
+ const failures = results.filter((result) => result.status === "error").map((result) => ({
245867
+ name: result.name,
245868
+ message: result.error ?? "Unknown deployment error",
245869
+ cause: result.cause
245870
+ }));
245871
+ if (failures.length > 0) {
245872
+ throw new ResourceDeployError(resource, failures);
245873
+ }
245874
+ }
245875
+
245876
+ // src/core/resources/actor/schema.ts
245877
+ var ActorSchema = exports_external.object({
245878
+ name: exports_external.string().min(1),
245879
+ entry: exports_external.string().min(1),
245880
+ entryPath: exports_external.string().min(1),
245881
+ filePaths: exports_external.array(exports_external.string()).min(1),
245882
+ source: ResourceSourceSchema
245883
+ });
245884
+ var DeployActorResponseSchema = exports_external.object({
245885
+ status: exports_external.enum(["deployed", "unchanged"])
245886
+ });
245887
+
245888
+ // src/core/resources/actor/api.ts
245889
+ async function deploySingleActor(name2, payload) {
245890
+ const appClient = getAppClient();
245891
+ let response;
245892
+ try {
245893
+ response = await appClient.put(`actors/${encodeURIComponent(name2)}`, {
245894
+ json: payload,
245895
+ timeout: false
245896
+ });
245897
+ } catch (error48) {
245898
+ throw await ApiError.fromHttpError(error48, `deploying actor "${name2}"`);
245899
+ }
245900
+ const result = DeployActorResponseSchema.safeParse(await response.json());
245901
+ if (!result.success) {
245902
+ throw new SchemaValidationError("Invalid response from server", result.error);
245903
+ }
245904
+ return result.data;
245905
+ }
245906
+ async function deleteSingleActor(name2) {
245907
+ const appClient = getAppClient();
245908
+ try {
245909
+ await appClient.delete(`actors/${encodeURIComponent(name2)}`, {
245910
+ timeout: 60000
245911
+ });
245912
+ } catch (error48) {
245913
+ throw await ApiError.fromHttpError(error48, `deleting actor "${name2}"`);
245914
+ }
245915
+ }
245916
+ // src/core/resources/actor/config.ts
245917
+ import { basename as basename3, dirname as dirname6, relative } from "node:path";
245918
+ var VALID_ACTOR_NAME = /^[A-Za-z_][A-Za-z0-9_]{0,127}$/;
245919
+ var JS_RESERVED_ACTOR_NAMES = new Set(("await break case catch class const continue debugger default delete do else " + "enum export extends false finally for function if import in instanceof let " + "new null return static super switch this throw true try typeof var void " + "while with yield implements interface package private protected public " + "eval arguments").split(" "));
245920
+ function assertValidActorName(name2) {
245921
+ if (name2.includes("/")) {
245922
+ throw new ConfigInvalidError(`Invalid actor name "${name2}" — actors cannot be nested in subfolders`, null, {
245923
+ hints: [
245924
+ {
245925
+ message: `Use a single folder level (e.g. actors/${name2.split("/").pop()}/entry.ts)`
245926
+ },
245927
+ {
245928
+ message: "A nested name can also mean a helper file was named entry.ts — every entry file under the actors directory is treated as an actor, so rename the helper"
245929
+ }
245930
+ ]
245931
+ });
245932
+ }
245933
+ if (!VALID_ACTOR_NAME.test(name2)) {
245934
+ throw new ConfigInvalidError(`Invalid actor name "${name2}" — actor names become a JavaScript class binding, so they must match [A-Za-z_][A-Za-z0-9_]* (max 128 characters, no "-", "." or ":")`, null, {
245935
+ hints: [
245936
+ { message: "Rename the folder in PascalCase (e.g. actors/ChatRoom)" }
245937
+ ]
245938
+ });
245939
+ }
245940
+ if (JS_RESERVED_ACTOR_NAMES.has(name2)) {
245941
+ throw new ConfigInvalidError(`Invalid actor name "${name2}" — it is a reserved word in JavaScript, and actor names become a class binding`, null, {
245942
+ hints: [
245943
+ { message: "Rename the folder in PascalCase (e.g. actors/ChatRoom)" }
245944
+ ]
245945
+ });
245946
+ }
245947
+ }
245948
+ async function readActor(entryFile, actorsDir) {
245949
+ const actorDir = dirname6(entryFile);
245950
+ const name2 = relative(actorsDir, actorDir).split(/[/\\]/).join("/");
245951
+ if (!name2) {
245952
+ const entryName = basename3(entryFile);
245953
+ throw new InvalidInputError(`${entryName} found directly in the actors directory — it must be inside a named subfolder`, {
245954
+ hints: [
245955
+ {
245956
+ message: `Move ${entryFile} into a subfolder (e.g. actors/MyActor/entry.ts)`
245957
+ }
245958
+ ]
245959
+ });
245960
+ }
245961
+ assertValidActorName(name2);
245962
+ const filePaths = await globby(BACKEND_FILE_GLOB, {
245963
+ cwd: actorDir,
245964
+ absolute: true
245965
+ });
245966
+ return {
245967
+ name: name2,
245968
+ entry: basename3(entryFile),
245969
+ entryPath: entryFile,
245970
+ filePaths,
245971
+ source: { type: "project" }
245972
+ };
245973
+ }
245974
+ async function readAllActors(actorsDir) {
245975
+ if (!await pathExists(actorsDir)) {
245976
+ return [];
245977
+ }
245978
+ const entryFiles = await globby(ENTRY_FILE_GLOB, {
245979
+ cwd: actorsDir,
245980
+ absolute: true,
245981
+ ignore: ENTRY_IGNORE_DOT_PATHS
245982
+ });
245983
+ const actors = await Promise.all(entryFiles.map((entryFile) => readActor(entryFile, actorsDir)));
245984
+ const names = new Set;
245985
+ for (const actor of actors) {
245986
+ if (names.has(actor.name)) {
245987
+ throw new ConfigInvalidError(`Duplicate actor name "${actor.name}" in ${actorsDir}`);
245988
+ }
245989
+ names.add(actor.name);
245990
+ }
245991
+ return actors;
245992
+ }
245993
+ // src/core/resources/actor/deploy.ts
245994
+ import { dirname as dirname7, relative as relative2 } from "node:path";
245995
+ async function loadActorCode(actor) {
245996
+ const actorDir = dirname7(actor.entryPath);
245997
+ const resolvedFiles = await Promise.all(actor.filePaths.map(async (filePath) => {
245998
+ const content = await readTextFile(filePath);
245999
+ const path11 = relative2(actorDir, filePath).split(/[/\\]/).join("/");
246000
+ return { path: path11, content };
246001
+ }));
246002
+ return { name: actor.name, entry: actor.entry, files: resolvedFiles };
246003
+ }
246004
+ async function deployOne(actor) {
246005
+ const start = Date.now();
246006
+ try {
246007
+ const loaded = await loadActorCode(actor);
246008
+ const response = await deploySingleActor(loaded.name, {
246009
+ entry: loaded.entry,
246010
+ files: loaded.files
246011
+ });
246012
+ return {
246013
+ name: loaded.name,
246014
+ status: response.status,
246015
+ durationMs: Date.now() - start
246016
+ };
246017
+ } catch (error48) {
246018
+ return {
246019
+ name: actor.name,
246020
+ status: "error",
246021
+ error: error48 instanceof Error ? error48.message : String(error48),
246022
+ cause: error48 instanceof Error ? error48 : undefined
246023
+ };
246024
+ }
246025
+ }
246026
+ async function deployActorsSequentially(actors, options) {
246027
+ if (actors.length === 0)
246028
+ return [];
246029
+ const results = [];
246030
+ for (const actor of actors) {
246031
+ options?.onStart?.([actor.name]);
246032
+ const result = await deployOne(actor);
246033
+ results.push(result);
246034
+ options?.onResult?.(result);
246035
+ }
246036
+ return results;
246037
+ }
246038
+ // src/core/resources/actor/resource.ts
246039
+ var actorResource = {
246040
+ readAll: readAllActors,
246041
+ push: async (actors) => {
246042
+ const results = await deployActorsSequentially(actors);
246043
+ throwIfDeployFailed(results, "actor");
246044
+ return results;
246045
+ }
246046
+ };
245842
246047
  // src/core/resources/agent/schema.ts
245843
246048
  var EntityOperationSchema = exports_external.enum(["create", "update", "delete", "read"]);
245844
246049
  var EntityToolConfigSchema = exports_external.object({
@@ -246231,8 +246436,8 @@ var AppAuthConfigResponseSchema = exports_external.object({
246231
246436
  }).transform((data) => ({
246232
246437
  authConfig: data.auth_config
246233
246438
  }));
246234
- function hasAnyLoginMethod(config5) {
246235
- return config5.enableUsernamePassword || config5.enableGoogleLogin || config5.enableMicrosoftLogin || config5.enableFacebookLogin || config5.enableAppleLogin || config5.enableSSOLogin;
246439
+ function hasAnyLoginMethod(config6) {
246440
+ return config6.enableUsernamePassword || config6.enableGoogleLogin || config6.enableMicrosoftLogin || config6.enableFacebookLogin || config6.enableAppleLogin || config6.enableSSOLogin;
246236
246441
  }
246237
246442
  var SOCIAL_PROVIDERS = {
246238
246443
  google: {
@@ -246247,18 +246452,18 @@ var SOCIAL_PROVIDERS = {
246247
246452
  facebook: { field: "enableFacebookLogin" },
246248
246453
  apple: { field: "enableAppleLogin" }
246249
246454
  };
246250
- function toAuthConfigPayload(config5) {
246455
+ function toAuthConfigPayload(config6) {
246251
246456
  return {
246252
- enable_username_password: config5.enableUsernamePassword,
246253
- enable_google_login: config5.enableGoogleLogin,
246254
- enable_microsoft_login: config5.enableMicrosoftLogin,
246255
- enable_facebook_login: config5.enableFacebookLogin,
246256
- enable_apple_login: config5.enableAppleLogin,
246257
- sso_provider_name: config5.ssoProviderName,
246258
- enable_sso_login: config5.enableSSOLogin,
246259
- google_oauth_mode: config5.googleOAuthMode,
246260
- google_oauth_client_id: config5.googleOAuthClientId,
246261
- use_workspace_sso: config5.useWorkspaceSSO
246457
+ enable_username_password: config6.enableUsernamePassword,
246458
+ enable_google_login: config6.enableGoogleLogin,
246459
+ enable_microsoft_login: config6.enableMicrosoftLogin,
246460
+ enable_facebook_login: config6.enableFacebookLogin,
246461
+ enable_apple_login: config6.enableAppleLogin,
246462
+ sso_provider_name: config6.ssoProviderName,
246463
+ enable_sso_login: config6.enableSSOLogin,
246464
+ google_oauth_mode: config6.googleOAuthMode,
246465
+ google_oauth_client_id: config6.googleOAuthClientId,
246466
+ use_workspace_sso: config6.useWorkspaceSSO
246262
246467
  };
246263
246468
  }
246264
246469
 
@@ -246277,9 +246482,9 @@ async function getAuthConfig() {
246277
246482
  }
246278
246483
  return result.data.authConfig;
246279
246484
  }
246280
- async function pushAuthConfigToApi(config5) {
246485
+ async function pushAuthConfigToApi(config6) {
246281
246486
  const { id } = getAppContext();
246282
- const payload = toAuthConfigPayload(config5);
246487
+ const payload = toAuthConfigPayload(config6);
246283
246488
  if (hasWorkspaceApiKeyAuth()) {
246284
246489
  try {
246285
246490
  await base44Client.put(`api/apps/${id}/deployment/auth-configuration`, {
@@ -246288,7 +246493,7 @@ async function pushAuthConfigToApi(config5) {
246288
246493
  } catch (error48) {
246289
246494
  throw await ApiError.fromHttpError(error48, "updating auth config");
246290
246495
  }
246291
- return config5;
246496
+ return config6;
246292
246497
  }
246293
246498
  let response;
246294
246499
  try {
@@ -246335,16 +246540,16 @@ async function readAuthConfig(authDir) {
246335
246540
  }
246336
246541
  return result.data;
246337
246542
  }
246338
- async function writeAuthConfig(authDir, config5) {
246543
+ async function writeAuthConfig(authDir, config6) {
246339
246544
  const filePath = getAuthConfigPath(authDir);
246340
246545
  if (await pathExists(filePath)) {
246341
246546
  const existing = await readJsonFile(filePath);
246342
246547
  const existingResult = AuthConfigFileSchema.safeParse(existing);
246343
- if (existingResult.success && isDeepStrictEqual2(existingResult.data, config5)) {
246548
+ if (existingResult.success && isDeepStrictEqual2(existingResult.data, config6)) {
246344
246549
  return { written: false };
246345
246550
  }
246346
246551
  }
246347
- await writeJsonFile(filePath, config5);
246552
+ await writeJsonFile(filePath, config6);
246348
246553
  return { written: true };
246349
246554
  }
246350
246555
  // src/core/resources/auth-config/pull.ts
@@ -246352,17 +246557,17 @@ async function pullAuthConfig() {
246352
246557
  return await getAuthConfig();
246353
246558
  }
246354
246559
  // src/core/resources/auth-config/push.ts
246355
- async function pushAuthConfig(config5) {
246356
- if (!config5) {
246560
+ async function pushAuthConfig(config6) {
246561
+ if (!config6) {
246357
246562
  return;
246358
246563
  }
246359
- await pushAuthConfigToApi(config5);
246564
+ await pushAuthConfigToApi(config6);
246360
246565
  }
246361
246566
  // src/core/resources/auth-config/resource.ts
246362
246567
  var authConfigResource = {
246363
246568
  readAll: async (dir) => {
246364
- const config5 = await readAuthConfig(dir);
246365
- return config5 ? [config5] : [];
246569
+ const config6 = await readAuthConfig(dir);
246570
+ return config6 ? [config6] : [];
246366
246571
  },
246367
246572
  push: async (items) => {
246368
246573
  await pushAuthConfig(items[0] ?? null);
@@ -246602,7 +246807,7 @@ class MissingSSOFieldsError extends InvalidInputError {
246602
246807
  }
246603
246808
  }
246604
246809
  function buildSSOSecrets(provider, options) {
246605
- const schema4 = SSO_PROVIDER_SCHEMAS[provider];
246810
+ const schema5 = SSO_PROVIDER_SCHEMAS[provider];
246606
246811
  const secrets = {};
246607
246812
  secrets["sso_name" /* Name */] = options.ssoName ?? provider;
246608
246813
  secrets["sso_client_id" /* ClientId */] = options.clientId;
@@ -246613,21 +246818,21 @@ function buildSSOSecrets(provider, options) {
246613
246818
  secrets[secretKey] = value;
246614
246819
  }
246615
246820
  }
246616
- if (schema4.deriveDefaults) {
246617
- const derived = schema4.deriveDefaults(secrets);
246821
+ if (schema5.deriveDefaults) {
246822
+ const derived = schema5.deriveDefaults(secrets);
246618
246823
  for (const [key, val] of Object.entries(derived)) {
246619
246824
  if (!secrets[key]) {
246620
246825
  secrets[key] = val;
246621
246826
  }
246622
246827
  }
246623
246828
  }
246624
- for (const [key, val] of Object.entries(schema4.defaults)) {
246829
+ for (const [key, val] of Object.entries(schema5.defaults)) {
246625
246830
  if (!secrets[key]) {
246626
246831
  secrets[key] = val;
246627
246832
  }
246628
246833
  }
246629
246834
  const missing = [];
246630
- for (const key of schema4.requiredKeys) {
246835
+ for (const key of schema5.requiredKeys) {
246631
246836
  if (!secrets[key]) {
246632
246837
  missing.push(key);
246633
246838
  }
@@ -247189,17 +247394,6 @@ var connectorResource = {
247189
247394
  readAll: readAllConnectors,
247190
247395
  push: pushConnectors
247191
247396
  };
247192
- // src/core/resources/types.ts
247193
- var ResourceSourceSchema = exports_external.discriminatedUnion("type", [
247194
- exports_external.object({
247195
- type: exports_external.literal("project")
247196
- }),
247197
- exports_external.object({
247198
- type: exports_external.literal("plugin"),
247199
- namespace: exports_external.string().min(1, "Plugin namespace cannot be empty")
247200
- })
247201
- ]);
247202
-
247203
247397
  // src/core/resources/entity/schema.ts
247204
247398
  var fieldConditionOperators = new Set([
247205
247399
  "$eq",
@@ -247640,7 +247834,7 @@ async function fetchFunctionLogs(functionName, filters = {}) {
247640
247834
  return result.data;
247641
247835
  }
247642
247836
  // src/core/resources/function/config.ts
247643
- import { basename as basename3, dirname as dirname6, join as join9, relative, resolve as resolve2 } from "node:path";
247837
+ import { basename as basename4, dirname as dirname8, join as join9, relative as relative3, resolve as resolve2 } from "node:path";
247644
247838
  async function readSharedFiles(functionsDir) {
247645
247839
  const sharedDir = resolve2(functionsDir, "..", "shared");
247646
247840
  if (!await pathExists(sharedDir)) {
@@ -247657,9 +247851,9 @@ async function readFunctionConfig(configPath) {
247657
247851
  return result.data;
247658
247852
  }
247659
247853
  async function readFunction(configPath, sharedFiles) {
247660
- const config8 = await readFunctionConfig(configPath);
247661
- const functionDir = dirname6(configPath);
247662
- const entryPath = join9(functionDir, config8.entry);
247854
+ const config9 = await readFunctionConfig(configPath);
247855
+ const functionDir = dirname8(configPath);
247856
+ const entryPath = join9(functionDir, config9.entry);
247663
247857
  if (!await pathExists(entryPath)) {
247664
247858
  throw new InvalidInputError(`Function entry file not found: ${entryPath} (referenced in ${configPath})`, {
247665
247859
  hints: [{ message: "Check the 'entry' field in your function config" }]
@@ -247671,7 +247865,7 @@ async function readFunction(configPath, sharedFiles) {
247671
247865
  });
247672
247866
  const allFilePaths = [...new Set([...filePaths, ...sharedFiles])];
247673
247867
  const functionData = {
247674
- ...config8,
247868
+ ...config9,
247675
247869
  entryPath,
247676
247870
  filePaths: allFilePaths,
247677
247871
  source: { type: "project" }
@@ -247691,18 +247885,18 @@ async function readAllFunctions(functionsDir) {
247691
247885
  absolute: true,
247692
247886
  ignore: ENTRY_IGNORE_DOT_PATHS
247693
247887
  });
247694
- const configFilesDirs = new Set(configFiles.map((f) => dirname6(f)));
247695
- const entryFilesWithoutConfig = entryFiles.filter((entryFile) => !configFilesDirs.has(dirname6(entryFile)));
247888
+ const configFilesDirs = new Set(configFiles.map((f) => dirname8(f)));
247889
+ const entryFilesWithoutConfig = entryFiles.filter((entryFile) => !configFilesDirs.has(dirname8(entryFile)));
247696
247890
  const sharedFiles = await readSharedFiles(functionsDir);
247697
247891
  const functionsFromConfig = await Promise.all(configFiles.map((configPath) => readFunction(configPath, sharedFiles)));
247698
247892
  const functionsWithoutConfig = await Promise.all(entryFilesWithoutConfig.map(async (entryFile) => {
247699
- const functionDir = dirname6(entryFile);
247893
+ const functionDir = dirname8(entryFile);
247700
247894
  const filePaths = await globby(BACKEND_FILE_GLOB, {
247701
247895
  cwd: functionDir,
247702
247896
  absolute: true
247703
247897
  });
247704
247898
  const allFilePaths = [...new Set([...filePaths, ...sharedFiles])];
247705
- const name2 = relative(functionsDir, functionDir).split(/[/\\]/).join("/");
247899
+ const name2 = relative3(functionsDir, functionDir).split(/[/\\]/).join("/");
247706
247900
  if (!name2) {
247707
247901
  throw new InvalidInputError("entry.ts found directly in the functions directory — it must be inside a named subfolder", {
247708
247902
  hints: [
@@ -247712,7 +247906,7 @@ async function readAllFunctions(functionsDir) {
247712
247906
  ]
247713
247907
  });
247714
247908
  }
247715
- const entry = basename3(entryFile);
247909
+ const entry = basename4(entryFile);
247716
247910
  const functionData = {
247717
247911
  name: name2,
247718
247912
  entry,
@@ -247739,17 +247933,17 @@ async function readAllFunctions(functionsDir) {
247739
247933
  return functions;
247740
247934
  }
247741
247935
  // src/core/resources/function/deploy.ts
247742
- import { dirname as dirname7, relative as relative2 } from "node:path";
247936
+ import { dirname as dirname9, relative as relative4 } from "node:path";
247743
247937
  async function loadFunctionCode(fn) {
247744
- const functionDir = dirname7(fn.entryPath);
247938
+ const functionDir = dirname9(fn.entryPath);
247745
247939
  const resolvedFiles = await Promise.all(fn.filePaths.map(async (filePath) => {
247746
247940
  const content = await readTextFile(filePath);
247747
- const path11 = relative2(functionDir, filePath).split(/[/\\]/).join("/");
247941
+ const path11 = relative4(functionDir, filePath).split(/[/\\]/).join("/");
247748
247942
  return { path: path11, content };
247749
247943
  }));
247750
247944
  return { ...fn, files: resolvedFiles };
247751
247945
  }
247752
- async function deployOne(fn) {
247946
+ async function deployOne2(fn) {
247753
247947
  const start = Date.now();
247754
247948
  try {
247755
247949
  const functionWithCode = await loadFunctionCode(fn);
@@ -247767,7 +247961,8 @@ async function deployOne(fn) {
247767
247961
  return {
247768
247962
  name: fn.name,
247769
247963
  status: "error",
247770
- error: error48 instanceof Error ? error48.message : String(error48)
247964
+ error: error48 instanceof Error ? error48.message : String(error48),
247965
+ cause: error48 instanceof Error ? error48 : undefined
247771
247966
  };
247772
247967
  }
247773
247968
  }
@@ -247777,7 +247972,7 @@ async function deployFunctionsSequentially(functions, options) {
247777
247972
  const results = [];
247778
247973
  for (const fn of functions) {
247779
247974
  options?.onStart?.([fn.name]);
247780
- const result = await deployOne(fn);
247975
+ const result = await deployOne2(fn);
247781
247976
  results.push(result);
247782
247977
  options?.onResult?.(result);
247783
247978
  }
@@ -247820,14 +248015,14 @@ async function writeFunctions(functionsDir, functions) {
247820
248015
  skipped.push(fn.name);
247821
248016
  continue;
247822
248017
  }
247823
- const config8 = {
248018
+ const config9 = {
247824
248019
  name: fn.name,
247825
248020
  entry: fn.entry
247826
248021
  };
247827
248022
  if (fn.automations.length > 0) {
247828
- config8.automations = fn.automations;
248023
+ config9.automations = fn.automations;
247829
248024
  }
247830
- await writeJsonFile(configPath, config8);
248025
+ await writeJsonFile(configPath, config9);
247831
248026
  for (const file2 of fn.files) {
247832
248027
  await writeFile(join10(functionDir, file2.path), file2.content);
247833
248028
  }
@@ -247870,7 +248065,11 @@ async function isFunctionUnchanged(functionDir, fn) {
247870
248065
  // src/core/resources/function/resource.ts
247871
248066
  var functionResource = {
247872
248067
  readAll: readAllFunctions,
247873
- push: (functions) => deployFunctionsSequentially(functions)
248068
+ push: async (functions) => {
248069
+ const results = await deployFunctionsSequentially(functions);
248070
+ throwIfDeployFailed(results, "function");
248071
+ return results;
248072
+ }
247874
248073
  };
247875
248074
  // src/core/project/config.ts
247876
248075
  class ProjectConfigReader {
@@ -247892,10 +248091,12 @@ class ProjectConfigReader {
247892
248091
  ...pluginResources.functions
247893
248092
  ];
247894
248093
  this.validateFunctionNames(functions, configPath);
248094
+ this.validateActorNames(localResources.actors, functions, configPath);
247895
248095
  return {
247896
248096
  project,
247897
248097
  entities,
247898
248098
  functions,
248099
+ actors: localResources.actors,
247899
248100
  agents: localResources.agents,
247900
248101
  agentSkills: localResources.agentSkills,
247901
248102
  connectors: localResources.connectors,
@@ -247924,16 +248125,33 @@ class ProjectConfigReader {
247924
248125
  return result.data;
247925
248126
  }
247926
248127
  async readProjectResources(configPath, project) {
247927
- const configDir = dirname8(configPath);
247928
- const [entities, functions, agents, agentSkills, connectors, authConfig] = await Promise.all([
248128
+ const configDir = dirname10(configPath);
248129
+ const [
248130
+ entities,
248131
+ functions,
248132
+ actors,
248133
+ agents,
248134
+ agentSkills,
248135
+ connectors,
248136
+ authConfig
248137
+ ] = await Promise.all([
247929
248138
  entityResource.readAll(join11(configDir, project.entitiesDir)),
247930
248139
  functionResource.readAll(join11(configDir, project.functionsDir)),
248140
+ actorResource.readAll(join11(configDir, project.actorsDir)),
247931
248141
  agentResource.readAll(join11(configDir, project.agentsDir)),
247932
248142
  agentSkillResource.readAll(join11(configDir, project.agentSkillsDir)),
247933
248143
  connectorResource.readAll(join11(configDir, project.connectorsDir)),
247934
248144
  authConfigResource.readAll(join11(configDir, project.authDir))
247935
248145
  ]);
247936
- return { entities, functions, agents, agentSkills, connectors, authConfig };
248146
+ return {
248147
+ entities,
248148
+ functions,
248149
+ actors,
248150
+ agents,
248151
+ agentSkills,
248152
+ connectors,
248153
+ authConfig
248154
+ };
247937
248155
  }
247938
248156
  assertPluginProjectDoesNotLoadPlugins(project, configPath) {
247939
248157
  if (project.plugin && project.plugins.length > 0) {
@@ -247954,7 +248172,7 @@ class ProjectConfigReader {
247954
248172
  this.pluginSourceByNamespace.set(namespace, source);
247955
248173
  }
247956
248174
  async readPluginConfig(plugin, hostConfigPath) {
247957
- const pluginRoot = resolvePluginRoot(plugin.source, dirname8(hostConfigPath));
248175
+ const pluginRoot = resolvePluginRoot(plugin.source, dirname10(hostConfigPath));
247958
248176
  const { configPath } = await this.findConfigOrThrow(pluginRoot);
247959
248177
  const project = await this.readConfigFile(configPath);
247960
248178
  const namespace = requirePluginNamespace(project, plugin.source, configPath);
@@ -247966,6 +248184,7 @@ class ProjectConfigReader {
247966
248184
  return {
247967
248185
  entities: markPluginEntities(resources.entities, namespace),
247968
248186
  functions: namespacePluginFunctions(resources.functions, namespace),
248187
+ actors: [],
247969
248188
  agents: [],
247970
248189
  agentSkills: [],
247971
248190
  connectors: [],
@@ -248004,6 +248223,7 @@ class ProjectConfigReader {
248004
248223
  return {
248005
248224
  entities,
248006
248225
  functions,
248226
+ actors: [],
248007
248227
  agents: [],
248008
248228
  agentSkills: [],
248009
248229
  connectors: [],
@@ -248026,6 +248246,20 @@ class ProjectConfigReader {
248026
248246
  functionsByName.set(fn.name, fn);
248027
248247
  }
248028
248248
  }
248249
+ validateActorNames(actors, functions, configPath) {
248250
+ const functionNames = new Set(functions.map((fn) => fn.name));
248251
+ for (const actor of actors) {
248252
+ if (functionNames.has(actor.name)) {
248253
+ throw new ConfigInvalidError(`"${actor.name}" exists as both a backend function and an actor.`, configPath, {
248254
+ hints: [
248255
+ {
248256
+ message: "Actors and functions share one deploy namespace — rename one of them."
248257
+ }
248258
+ ]
248259
+ });
248260
+ }
248261
+ }
248262
+ }
248029
248263
  }
248030
248264
  async function readProjectConfig(projectRoot) {
248031
248265
  const reader = new ProjectConfigReader;
@@ -248038,7 +248272,7 @@ async function readProjectSettings(projectRoot) {
248038
248272
  // src/core/project/template.ts
248039
248273
  var import_ejs = __toESM(require_ejs(), 1);
248040
248274
  var import_front_matter2 = __toESM(require_front_matter(), 1);
248041
- import { dirname as dirname9, join as join13 } from "node:path";
248275
+ import { dirname as dirname11, join as join13 } from "node:path";
248042
248276
 
248043
248277
  // src/core/assets.ts
248044
248278
  import { cpSync, existsSync } from "node:fs";
@@ -248047,7 +248281,7 @@ import { join as join12 } from "node:path";
248047
248281
  // package.json
248048
248282
  var package_default = {
248049
248283
  name: "base44",
248050
- version: "0.1.8",
248284
+ version: "0.1.9",
248051
248285
  description: "Base44 CLI - Unified interface for managing Base44 applications",
248052
248286
  type: "module",
248053
248287
  bin: {
@@ -248199,7 +248433,7 @@ async function renderTemplate(template, destPath, data, options = {}) {
248199
248433
  if (file2.endsWith(".ejs")) {
248200
248434
  const rendered = await import_ejs.default.renderFile(srcPath, data);
248201
248435
  const { attributes, body } = import_front_matter2.default(rendered);
248202
- const destFile = attributes.outputFileName ? join13(dirname9(file2), attributes.outputFileName) : file2.replace(/\.ejs$/, "");
248436
+ const destFile = attributes.outputFileName ? join13(dirname11(file2), attributes.outputFileName) : file2.replace(/\.ejs$/, "");
248203
248437
  const destFilePath = join13(destPath, destFile);
248204
248438
  if (skipExisting && await pathExists(destFilePath)) {
248205
248439
  skipped.push(destFile);
@@ -248382,7 +248616,7 @@ async function createArchive(pathToArchive, targetArchivePath) {
248382
248616
  // src/core/site/manifest.ts
248383
248617
  import { createHash } from "node:crypto";
248384
248618
  import { readFile as readFile2, stat } from "node:fs/promises";
248385
- import { basename as basename4, join as join15 } from "node:path";
248619
+ import { basename as basename5, join as join15 } from "node:path";
248386
248620
  var MAX_ASSET_SIZE_BYTES = 25 * 1024 * 1024;
248387
248621
  var MAX_ASSET_COUNT = 1e5;
248388
248622
  var ASSETS_IGNORE_FILE = ".assetsignore";
@@ -248404,7 +248638,7 @@ async function buildAssetManifest(assetsDir, appId) {
248404
248638
  followSymbolicLinks: false,
248405
248639
  ignoreFiles: [ASSETS_IGNORE_FILE]
248406
248640
  });
248407
- const relativeFilePaths = found.filter((path11) => !ALWAYS_IGNORED.has(basename4(path11)));
248641
+ const relativeFilePaths = found.filter((path11) => !ALWAYS_IGNORED.has(basename5(path11)));
248408
248642
  if (relativeFilePaths.length > MAX_ASSET_COUNT) {
248409
248643
  throw new InvalidInputError(`Too many static assets: found ${relativeFilePaths.length}, the limit is ${MAX_ASSET_COUNT} files.`);
248410
248644
  }
@@ -248621,6 +248855,7 @@ function hasResourcesToDeploy(projectData) {
248621
248855
  project,
248622
248856
  entities,
248623
248857
  functions,
248858
+ actors,
248624
248859
  agents,
248625
248860
  agentSkills,
248626
248861
  connectors,
@@ -248629,18 +248864,20 @@ function hasResourcesToDeploy(projectData) {
248629
248864
  const hasSite = Boolean(project.site?.outputDirectory);
248630
248865
  const hasEntities = entities.length > 0;
248631
248866
  const hasFunctions = functions.length > 0;
248867
+ const hasActors = actors.length > 0;
248632
248868
  const hasAgents = agents.length > 0;
248633
248869
  const hasAgentSkills = agentSkills.length > 0;
248634
248870
  const hasConnectors = connectors.length > 0;
248635
248871
  const hasAuthConfig = authConfig.length > 0;
248636
248872
  const hasVisibility = Boolean(project.visibility);
248637
- return hasEntities || hasFunctions || hasAgents || hasAgentSkills || hasConnectors || hasAuthConfig || hasVisibility || hasSite;
248873
+ return hasEntities || hasFunctions || hasActors || hasAgents || hasAgentSkills || hasConnectors || hasAuthConfig || hasVisibility || hasSite;
248638
248874
  }
248639
248875
  async function deployAll(projectData, options) {
248640
248876
  const {
248641
248877
  project,
248642
248878
  entities,
248643
248879
  functions,
248880
+ actors,
248644
248881
  agents,
248645
248882
  agentSkills,
248646
248883
  connectors,
@@ -248651,10 +248888,16 @@ async function deployAll(projectData, options) {
248651
248888
  options?.onVisibilitySet?.(project.visibility);
248652
248889
  }
248653
248890
  await entityResource.push(entities);
248654
- await deployFunctionsSequentially(functions, {
248891
+ const functionResults = await deployFunctionsSequentially(functions, {
248655
248892
  onStart: options?.onFunctionStart,
248656
248893
  onResult: options?.onFunctionResult
248657
248894
  });
248895
+ throwIfDeployFailed(functionResults, "function");
248896
+ const actorResults = await deployActorsSequentially(actors, {
248897
+ onStart: options?.onActorStart,
248898
+ onResult: options?.onActorResult
248899
+ });
248900
+ throwIfDeployFailed(actorResults, "actor");
248658
248901
  await agentSkillResource.push(agentSkills);
248659
248902
  await agentResource.push(agents);
248660
248903
  await authConfigResource.push(authConfig);
@@ -255611,6 +255854,26 @@ function writeJsonError(error48) {
255611
255854
  envelope.requestId = error48.requestId;
255612
255855
  }
255613
255856
  }
255857
+ if (error48 instanceof ResourceDeployError) {
255858
+ envelope.failures = error48.failures.map((failure) => {
255859
+ const item = {
255860
+ name: failure.name,
255861
+ error: failure.message
255862
+ };
255863
+ if (isCLIError(failure.cause)) {
255864
+ item.code = failure.cause.code;
255865
+ }
255866
+ if (failure.cause instanceof ApiError) {
255867
+ if (failure.cause.statusCode !== undefined) {
255868
+ item.statusCode = failure.cause.statusCode;
255869
+ }
255870
+ if (failure.cause.requestId !== undefined) {
255871
+ item.requestId = failure.cause.requestId;
255872
+ }
255873
+ }
255874
+ return item;
255875
+ });
255876
+ }
255614
255877
  process.stdout.write(`${JSON.stringify(envelope)}
255615
255878
  `);
255616
255879
  }
@@ -255719,11 +255982,43 @@ function normalizeDatetime(value) {
255719
255982
  return value;
255720
255983
  return `${value}Z`;
255721
255984
  }
255985
+ // src/cli/utils/deploy-reporting.ts
255986
+ function formatDuration(ms2) {
255987
+ return `${(ms2 / 1000).toFixed(1)}s`;
255988
+ }
255989
+ function formatDeployResult(result, log) {
255990
+ const label = result.name.padEnd(25);
255991
+ if (result.status === "deployed") {
255992
+ const timing = result.durationMs ? theme.styles.dim(` (${formatDuration(result.durationMs)})`) : "";
255993
+ log.success(`${label} deployed${timing}`);
255994
+ } else if (result.status === "unchanged") {
255995
+ log.success(`${label} unchanged`);
255996
+ } else {
255997
+ log.error(`${label} error: ${result.error}`);
255998
+ }
255999
+ }
256000
+ function buildDeploySummary(results, noun) {
256001
+ const deployed = results.filter((r) => r.status === "deployed").length;
256002
+ const unchanged = results.filter((r) => r.status === "unchanged").length;
256003
+ const failed = results.filter((r) => r.status === "error").length;
256004
+ const parts = [];
256005
+ if (deployed > 0)
256006
+ parts.push(`${deployed} deployed`);
256007
+ if (unchanged > 0)
256008
+ parts.push(`${unchanged} unchanged`);
256009
+ if (failed > 0)
256010
+ parts.push(`${failed} error${failed !== 1 ? "s" : ""}`);
256011
+ return parts.join(", ") || `No ${noun} deployed`;
256012
+ }
255722
256013
  // src/cli/utils/json.ts
255723
256014
  function toJsonStdout(result) {
255724
256015
  return `${JSON.stringify(result, null, 2)}
255725
256016
  `;
255726
256017
  }
256018
+ // src/cli/utils/parse-names.ts
256019
+ function parseNames(args) {
256020
+ return args.flatMap((arg) => arg.split(",")).map((n2) => n2.trim()).filter(Boolean);
256021
+ }
255727
256022
  // src/cli/errors.ts
255728
256023
  class CLIExitError extends Error {
255729
256024
  code;
@@ -255843,6 +256138,55 @@ function formatYaml(data, options = {}) {
255843
256138
  const replacer = stripEmpty ? stripEmptyReplacer : undefined;
255844
256139
  return $stringify(data, replacer, { indent: YAML_INDENT }).trimEnd();
255845
256140
  }
256141
+ // src/cli/commands/actors/delete.ts
256142
+ async function deleteActorsAction({ runTask: runTask2 }, names) {
256143
+ let deleted = 0;
256144
+ let notFound = 0;
256145
+ let errors4 = 0;
256146
+ for (const name2 of names) {
256147
+ try {
256148
+ await runTask2(`Deleting ${name2}...`, () => deleteSingleActor(name2), {
256149
+ successMessage: `${name2} deleted`,
256150
+ errorMessage: `Failed to delete ${name2}`
256151
+ });
256152
+ deleted++;
256153
+ } catch (error48) {
256154
+ if (error48 instanceof ApiError && error48.statusCode === 404) {
256155
+ notFound++;
256156
+ } else {
256157
+ errors4++;
256158
+ }
256159
+ }
256160
+ }
256161
+ if (names.length === 1) {
256162
+ if (deleted)
256163
+ return { outroMessage: `Actor "${names[0]}" deleted` };
256164
+ if (notFound)
256165
+ return { outroMessage: `Actor "${names[0]}" not found` };
256166
+ return { outroMessage: `Failed to delete "${names[0]}"` };
256167
+ }
256168
+ const total = names.length;
256169
+ const parts = [];
256170
+ if (deleted > 0)
256171
+ parts.push(`${deleted}/${total} deleted`);
256172
+ if (notFound > 0)
256173
+ parts.push(`${notFound} not found`);
256174
+ if (errors4 > 0)
256175
+ parts.push(`${errors4} error${errors4 !== 1 ? "s" : ""}`);
256176
+ return { outroMessage: parts.join(", ") };
256177
+ }
256178
+ function validateNames(command2) {
256179
+ const names = parseNames(command2.args);
256180
+ if (names.length === 0) {
256181
+ command2.error("At least one actor name is required");
256182
+ }
256183
+ }
256184
+ function getDeleteCommand() {
256185
+ return new Base44Command("delete").description("Delete deployed actors").argument("<names...>", "Actor names to delete").hook("preAction", validateNames).action(async (ctx, rawNames) => {
256186
+ const names = parseNames(rawNames);
256187
+ return deleteActorsAction(ctx, names);
256188
+ });
256189
+ }
255846
256190
  // src/core/utils/dependencies.ts
255847
256191
  import { spawnSync as spawnSync2 } from "node:child_process";
255848
256192
  function verifyDenoInstalled(context) {
@@ -255930,13 +256274,64 @@ async function moveAppToWorkspace(appId, targetWorkspaceId, options = {}) {
255930
256274
  }
255931
256275
  return result.data;
255932
256276
  }
256277
+ // src/cli/commands/actors/deploy.ts
256278
+ function resolveActorsToDeploy(names, allActors) {
256279
+ if (names.length === 0)
256280
+ return allActors;
256281
+ const notFound = names.filter((n2) => !allActors.some((a2) => a2.name === n2));
256282
+ if (notFound.length > 0) {
256283
+ throw new InvalidInputError(`Actor${notFound.length > 1 ? "s" : ""} not found in project: ${notFound.join(", ")}`);
256284
+ }
256285
+ return allActors.filter((a2) => names.includes(a2.name));
256286
+ }
256287
+ async function deployActorsAction({ log }, names) {
256288
+ const { actors, project: project2 } = await readProjectConfig();
256289
+ const toDeploy = resolveActorsToDeploy(names, actors);
256290
+ if (toDeploy.length === 0) {
256291
+ return {
256292
+ outroMessage: `No actors found. Create actors in the '${project2.actorsDir}' directory.`
256293
+ };
256294
+ }
256295
+ log.info(`Found ${toDeploy.length} ${toDeploy.length === 1 ? "actor" : "actors"} to deploy`);
256296
+ let completed = 0;
256297
+ const total = toDeploy.length;
256298
+ const results = await deployActorsSequentially(toDeploy, {
256299
+ onStart: (startNames) => {
256300
+ const label = startNames.length === 1 ? startNames[0] : `${startNames.length} actors`;
256301
+ log.step(theme.styles.dim(`[${completed + 1}/${total}] Deploying ${label}...`));
256302
+ },
256303
+ onResult: (result) => {
256304
+ completed++;
256305
+ formatDeployResult(result, log);
256306
+ }
256307
+ });
256308
+ const hasFailures = results.some((r) => r.status === "error");
256309
+ if (hasFailures) {
256310
+ log.message(buildDeploySummary(results, "actors"));
256311
+ throwIfDeployFailed(results, "actor");
256312
+ }
256313
+ return { outroMessage: buildDeploySummary(results, "actors") };
256314
+ }
256315
+ function getDeployCommand() {
256316
+ return new Base44Command("deploy").description("Deploy actors to Base44").argument("[names...]", "Actor names to deploy (deploys all if omitted)").action(async (ctx, rawNames) => {
256317
+ const names = parseNames(rawNames);
256318
+ return deployActorsAction(ctx, names);
256319
+ });
256320
+ }
256321
+
256322
+ // src/cli/commands/actors/index.ts
256323
+ function getActorsCommand() {
256324
+ return new Command("actors").description("Manage actors").addCommand(getDeployCommand()).addCommand(getDeleteCommand());
256325
+ }
256326
+
255933
256327
  // src/cli/commands/agent-skills/pull.ts
256328
+ import { dirname as dirname12, join as join17 } from "node:path";
255934
256329
  async function pullAction({
255935
256330
  log,
255936
256331
  runTask: runTask2
255937
256332
  }) {
255938
256333
  const { project: project2 } = await readProjectConfig();
255939
- const dir = join17(dirname10(project2.configPath), project2.agentSkillsDir);
256334
+ const dir = join17(dirname12(project2.configPath), project2.agentSkillsDir);
255940
256335
  const remote = await runTask2("Fetching agent skills from Base44", () => fetchAgentSkills(), {
255941
256336
  successMessage: "Agent skills fetched successfully",
255942
256337
  errorMessage: "Failed to fetch agent skills"
@@ -255992,13 +256387,13 @@ function getAgentSkillsCommand() {
255992
256387
  }
255993
256388
 
255994
256389
  // src/cli/commands/agents/pull.ts
255995
- import { dirname as dirname11, join as join18 } from "node:path";
256390
+ import { dirname as dirname13, join as join18 } from "node:path";
255996
256391
  async function pullAgentsAction({
255997
256392
  log,
255998
256393
  runTask: runTask2
255999
256394
  }) {
256000
256395
  const { project: project2 } = await readProjectConfig();
256001
- const configDir = dirname11(project2.configPath);
256396
+ const configDir = dirname13(project2.configPath);
256002
256397
  const agentsDir = join18(configDir, project2.agentsDir);
256003
256398
  const remoteAgents = await runTask2("Fetching agents from Base44", async () => {
256004
256399
  return await fetchAgents();
@@ -256069,11 +256464,11 @@ function getAgentsCommand() {
256069
256464
  }
256070
256465
 
256071
256466
  // src/cli/commands/auth/password-login.ts
256072
- import { dirname as dirname12, join as join19 } from "node:path";
256467
+ import { dirname as dirname14, join as join19 } from "node:path";
256073
256468
  async function passwordLoginAction({ log, runTask: runTask2 }, action) {
256074
256469
  const shouldEnable = action === "enable";
256075
256470
  const { project: project2 } = await readProjectConfig();
256076
- const configDir = dirname12(project2.configPath);
256471
+ const configDir = dirname14(project2.configPath);
256077
256472
  const authDir = join19(configDir, project2.authDir);
256078
256473
  const updated = await runTask2("Updating local auth config", async () => {
256079
256474
  const current = await readAuthConfig(authDir) ?? DEFAULT_AUTH_CONFIG;
@@ -256094,13 +256489,13 @@ function getPasswordLoginCommand() {
256094
256489
  }
256095
256490
 
256096
256491
  // src/cli/commands/auth/pull.ts
256097
- import { dirname as dirname13, join as join20 } from "node:path";
256492
+ import { dirname as dirname15, join as join20 } from "node:path";
256098
256493
  async function pullAuthAction({
256099
256494
  log,
256100
256495
  runTask: runTask2
256101
256496
  }) {
256102
256497
  const { project: project2 } = await readProjectConfig();
256103
- const configDir = dirname13(project2.configPath);
256498
+ const configDir = dirname15(project2.configPath);
256104
256499
  const authDir = join20(configDir, project2.authDir);
256105
256500
  const remoteConfig = await runTask2("Fetching auth config from Base44", async () => {
256106
256501
  return await pullAuthConfig();
@@ -256165,7 +256560,7 @@ function getAuthPushCommand() {
256165
256560
  }
256166
256561
 
256167
256562
  // src/cli/commands/auth/social-login.ts
256168
- import { dirname as dirname14, join as join21, resolve as resolve4 } from "node:path";
256563
+ import { dirname as dirname16, join as join21, resolve as resolve4 } from "node:path";
256169
256564
  var PROVIDER_LABELS = {
256170
256565
  google: "Google",
256171
256566
  microsoft: "Microsoft",
@@ -256235,7 +256630,7 @@ async function socialLoginAction({ log, isNonInteractive, runTask: runTask2 }, p
256235
256630
  }
256236
256631
  }
256237
256632
  const { project: project2 } = await readProjectConfig();
256238
- const configDir = dirname14(project2.configPath);
256633
+ const configDir = dirname16(project2.configPath);
256239
256634
  const authDir = join21(configDir, project2.authDir);
256240
256635
  const { config: updated } = await runTask2("Updating local auth config", async () => updateSocialLoginConfig(authDir, provider, shouldEnable, useCustomOAuth && options.clientId ? { clientId: options.clientId } : undefined));
256241
256636
  if (clientSecret) {
@@ -256261,7 +256656,7 @@ function getSocialLoginCommand() {
256261
256656
  }
256262
256657
 
256263
256658
  // src/cli/commands/auth/sso.ts
256264
- import { dirname as dirname15, join as join22, resolve as resolve5 } from "node:path";
256659
+ import { dirname as dirname17, join as join22, resolve as resolve5 } from "node:path";
256265
256660
  var SSOConfigFileSchema = exports_external.object({
256266
256661
  provider: exports_external.enum(Object.values(KNOWN_SSO_PROVIDERS)),
256267
256662
  clientId: exports_external.string(),
@@ -256424,7 +256819,7 @@ async function ssoEnableAction({ isNonInteractive, runTask: runTask2 }, options)
256424
256819
  throw error48;
256425
256820
  }
256426
256821
  const { project: project2 } = await readProjectConfig();
256427
- const configDir = dirname15(project2.configPath);
256822
+ const configDir = dirname17(project2.configPath);
256428
256823
  const authDir = join22(configDir, project2.authDir);
256429
256824
  await runTask2("Updating local auth config", async () => updateSSOConfig(authDir, provider, true));
256430
256825
  await runTask2("Saving SSO credentials", async () => pushSSOSecrets(secrets));
@@ -256440,7 +256835,7 @@ async function ssoDisableAction({ log, runTask: runTask2 }, options) {
256440
256835
  throw new InvalidInputError("Configuration options cannot be used with disable. To disable SSO: base44 auth sso disable");
256441
256836
  }
256442
256837
  const { project: project2 } = await readProjectConfig();
256443
- const configDir = dirname15(project2.configPath);
256838
+ const configDir = dirname17(project2.configPath);
256444
256839
  const authDir = join22(configDir, project2.authDir);
256445
256840
  const updated = await runTask2("Updating local auth config", async () => updateSSOConfig(authDir, null, false));
256446
256841
  await runTask2("Removing SSO credentials", async () => deleteSSOSecrets());
@@ -257298,13 +257693,13 @@ function getConnectorsListAvailableCommand() {
257298
257693
  }
257299
257694
 
257300
257695
  // src/cli/commands/connectors/pull.ts
257301
- import { dirname as dirname16, join as join23, resolve as resolve6 } from "node:path";
257696
+ import { dirname as dirname18, join as join23, resolve as resolve6 } from "node:path";
257302
257697
  async function resolveConnectorsDir(options) {
257303
257698
  if (!getAppContext().projectRoot) {
257304
257699
  return resolve6(options.dir ?? "connectors");
257305
257700
  }
257306
257701
  const { project: project2 } = await readProjectConfig();
257307
- return join23(dirname16(project2.configPath), project2.connectorsDir);
257702
+ return join23(dirname18(project2.configPath), project2.connectorsDir);
257308
257703
  }
257309
257704
  async function pullConnectorsAction({ log, runTask: runTask2, jsonMode }, options) {
257310
257705
  const connectorsDir = await resolveConnectorsDir(options);
@@ -257559,43 +257954,19 @@ async function deleteFunctionsAction({ runTask: runTask2 }, names) {
257559
257954
  parts.push(`${errors5} error${errors5 !== 1 ? "s" : ""}`);
257560
257955
  return { outroMessage: parts.join(", ") };
257561
257956
  }
257562
- function parseNames(args) {
257563
- return args.flatMap((arg) => arg.split(",")).map((n2) => n2.trim()).filter(Boolean);
257564
- }
257565
- function validateNames(command2) {
257957
+ function validateNames2(command2) {
257566
257958
  const names = parseNames(command2.args);
257567
257959
  if (names.length === 0) {
257568
257960
  command2.error("At least one function name is required");
257569
257961
  }
257570
257962
  }
257571
- function getDeleteCommand() {
257572
- return new Base44Command("delete").description("Delete deployed functions").argument("<names...>", "Function names to delete").hook("preAction", validateNames).action(async (ctx, rawNames) => {
257963
+ function getDeleteCommand2() {
257964
+ return new Base44Command("delete").description("Delete deployed functions").argument("<names...>", "Function names to delete").hook("preAction", validateNames2).action(async (ctx, rawNames) => {
257573
257965
  const names = parseNames(rawNames);
257574
257966
  return deleteFunctionsAction(ctx, names);
257575
257967
  });
257576
257968
  }
257577
257969
 
257578
- // src/cli/commands/functions/formatDeployResult.ts
257579
- function formatDuration(ms2) {
257580
- return `${(ms2 / 1000).toFixed(1)}s`;
257581
- }
257582
- function formatDeployResult(result, log) {
257583
- const label = result.name.padEnd(25);
257584
- if (result.status === "deployed") {
257585
- const timing = result.durationMs ? theme.styles.dim(` (${formatDuration(result.durationMs)})`) : "";
257586
- log.success(`${label} deployed${timing}`);
257587
- } else if (result.status === "unchanged") {
257588
- log.success(`${label} unchanged`);
257589
- } else {
257590
- log.error(`${label} error: ${result.error}`);
257591
- }
257592
- }
257593
-
257594
- // src/cli/commands/functions/parseNames.ts
257595
- function parseNames2(args) {
257596
- return args.flatMap((arg) => arg.split(",")).map((n2) => n2.trim()).filter(Boolean);
257597
- }
257598
-
257599
257970
  // src/cli/commands/functions/deploy.ts
257600
257971
  function resolveFunctionsToDeploy(names, allFunctions) {
257601
257972
  if (names.length === 0)
@@ -257619,19 +257990,6 @@ function formatPruneSummary(pruneResults, log) {
257619
257990
  log.info(`${pruned} deleted`);
257620
257991
  }
257621
257992
  }
257622
- function buildDeploySummary(results) {
257623
- const deployed = results.filter((r) => r.status === "deployed").length;
257624
- const unchanged = results.filter((r) => r.status === "unchanged").length;
257625
- const failed = results.filter((r) => r.status === "error").length;
257626
- const parts = [];
257627
- if (deployed > 0)
257628
- parts.push(`${deployed} deployed`);
257629
- if (unchanged > 0)
257630
- parts.push(`${unchanged} unchanged`);
257631
- if (failed > 0)
257632
- parts.push(`${failed} error${failed !== 1 ? "s" : ""}`);
257633
- return parts.join(", ") || "No functions deployed";
257634
- }
257635
257993
  async function deployFunctionsAction({ log }, names, options) {
257636
257994
  if (options.force && names.length > 0) {
257637
257995
  throw new InvalidInputError("--force cannot be used when specifying function names");
@@ -257658,8 +258016,8 @@ async function deployFunctionsAction({ log }, names, options) {
257658
258016
  });
257659
258017
  const hasFailures = results.some((r) => r.status === "error");
257660
258018
  if (hasFailures) {
257661
- log.message(buildDeploySummary(results));
257662
- throw new CLIExitError(1);
258019
+ log.message(buildDeploySummary(results, "functions"));
258020
+ throwIfDeployFailed(results, "function");
257663
258021
  }
257664
258022
  if (options.force) {
257665
258023
  const allLocalNames = functions.map((f) => f.name);
@@ -257680,11 +258038,11 @@ async function deployFunctionsAction({ log }, names, options) {
257680
258038
  });
257681
258039
  formatPruneSummary(pruneResults, log);
257682
258040
  }
257683
- return { outroMessage: buildDeploySummary(results) };
258041
+ return { outroMessage: buildDeploySummary(results, "functions") };
257684
258042
  }
257685
- function getDeployCommand() {
258043
+ function getDeployCommand2() {
257686
258044
  return new Base44Command("deploy").description("Deploy functions to Base44").argument("[names...]", "Function names to deploy (deploys all if omitted)").option("--force", "Delete remote functions not found locally").action(async (ctx, rawNames, options) => {
257687
- const names = parseNames2(rawNames);
258045
+ const names = parseNames(rawNames);
257688
258046
  return deployFunctionsAction(ctx, names, options);
257689
258047
  });
257690
258048
  }
@@ -257712,10 +258070,10 @@ function getListCommand() {
257712
258070
  }
257713
258071
 
257714
258072
  // src/cli/commands/functions/pull.ts
257715
- import { dirname as dirname17, join as join24 } from "node:path";
258073
+ import { dirname as dirname19, join as join24 } from "node:path";
257716
258074
  async function pullFunctionsAction({ log, runTask: runTask2 }, name2) {
257717
258075
  const { project: project2, functions } = await readProjectConfig();
257718
- const configDir = dirname17(project2.configPath);
258076
+ const configDir = dirname19(project2.configPath);
257719
258077
  const functionsDir = join24(configDir, project2.functionsDir);
257720
258078
  const pluginFunctionNames = new Set(functions.filter((fn) => fn.source.type === "plugin").map((fn) => fn.name));
257721
258079
  const remoteFunctions = await runTask2("Fetching functions from Base44", async () => {
@@ -257771,7 +258129,7 @@ function getPullCommand() {
257771
258129
 
257772
258130
  // src/cli/commands/functions/index.ts
257773
258131
  function getFunctionsCommand() {
257774
- return new Command("functions").description("Manage backend functions").addCommand(getDeployCommand()).addCommand(getDeleteCommand()).addCommand(getListCommand()).addCommand(getPullCommand());
258132
+ return new Command("functions").description("Manage backend functions").addCommand(getDeployCommand2()).addCommand(getDeleteCommand2()).addCommand(getListCommand()).addCommand(getPullCommand());
257775
258133
  }
257776
258134
 
257777
258135
  // src/cli/commands/project/site-build.ts
@@ -257849,7 +258207,7 @@ function getBuildCommand() {
257849
258207
  }
257850
258208
 
257851
258209
  // src/cli/commands/project/create.ts
257852
- import { basename as basename5, resolve as resolve8 } from "node:path";
258210
+ import { basename as basename6, resolve as resolve8 } from "node:path";
257853
258211
  var import_kebabCase = __toESM(require_kebabCase(), 1);
257854
258212
 
257855
258213
  // src/cli/commands/project/scaffold-shared.ts
@@ -257870,7 +258228,7 @@ async function completeProjectSetup({
257870
258228
  projectId,
257871
258229
  name: name2,
257872
258230
  resolvedPath,
257873
- deploy: deploy5,
258231
+ deploy: deploy6,
257874
258232
  skills,
257875
258233
  isInteractive
257876
258234
  }, { runTask: runTask2 }) {
@@ -257884,7 +258242,7 @@ async function completeProjectSetup({
257884
258242
  });
257885
258243
  shouldPushEntities = !Ct(result) && result;
257886
258244
  } else {
257887
- shouldPushEntities = !!deploy5;
258245
+ shouldPushEntities = !!deploy6;
257888
258246
  }
257889
258247
  if (shouldPushEntities) {
257890
258248
  await runTask2(`Pushing ${entities.length} data models to Base44...`, async () => {
@@ -257904,7 +258262,7 @@ async function completeProjectSetup({
257904
258262
  });
257905
258263
  shouldDeploy = !Ct(result) && result;
257906
258264
  } else {
257907
- shouldDeploy = !!deploy5;
258265
+ shouldDeploy = !!deploy6;
257908
258266
  }
257909
258267
  if (shouldDeploy && installCommand && buildCommand && outputDirectory) {
257910
258268
  const { appUrl } = await runTask2("Installing dependencies...", async (updateMessage) => {
@@ -258014,8 +258372,8 @@ async function createInteractive(options, ctx) {
258014
258372
  name: () => {
258015
258373
  return options.name ? Promise.resolve(options.name) : Ze({
258016
258374
  message: "What is the name of your project?",
258017
- placeholder: basename5(process.cwd()),
258018
- initialValue: basename5(process.cwd()),
258375
+ placeholder: basename6(process.cwd()),
258376
+ initialValue: basename6(process.cwd()),
258019
258377
  validate: (value) => {
258020
258378
  if (!value || value.trim().length === 0) {
258021
258379
  return "Every project deserves a name";
@@ -258062,7 +258420,7 @@ async function executeCreate({
258062
258420
  name: rawName,
258063
258421
  description,
258064
258422
  projectPath,
258065
- deploy: deploy5,
258423
+ deploy: deploy6,
258066
258424
  skills,
258067
258425
  workspaceId: flagWorkspaceId,
258068
258426
  isInteractive
@@ -258084,7 +258442,7 @@ async function executeCreate({
258084
258442
  errorMessage: "Failed to create project"
258085
258443
  });
258086
258444
  setAppContext({ id: projectId, projectRoot: resolvedPath });
258087
- const summary = await completeProjectSetup({ projectId, name: name2, resolvedPath, deploy: deploy5, skills, isInteractive }, ctx);
258445
+ const summary = await completeProjectSetup({ projectId, name: name2, resolvedPath, deploy: deploy6, skills, isInteractive }, ctx);
258088
258446
  printProjectSummary(summary, log);
258089
258447
  return { outroMessage: "Your project is set up and ready to use" };
258090
258448
  }
@@ -258131,7 +258489,15 @@ async function deployAction(ctx, options = {}) {
258131
258489
  outroMessage: "No resources found to deploy"
258132
258490
  };
258133
258491
  }
258134
- const { project: project2, entities, functions, agents, connectors, authConfig } = projectData;
258492
+ const {
258493
+ project: project2,
258494
+ entities,
258495
+ functions,
258496
+ actors,
258497
+ agents,
258498
+ connectors,
258499
+ authConfig
258500
+ } = projectData;
258135
258501
  const summaryLines = [];
258136
258502
  if (entities.length > 0) {
258137
258503
  summaryLines.push(` - ${entities.length} ${entities.length === 1 ? "entity" : "entities"}`);
@@ -258139,6 +258505,9 @@ async function deployAction(ctx, options = {}) {
258139
258505
  if (functions.length > 0) {
258140
258506
  summaryLines.push(` - ${functions.length} ${functions.length === 1 ? "function" : "functions"}`);
258141
258507
  }
258508
+ if (actors.length > 0) {
258509
+ summaryLines.push(` - ${actors.length} ${actors.length === 1 ? "actor" : "actors"}`);
258510
+ }
258142
258511
  if (agents.length > 0) {
258143
258512
  summaryLines.push(` - ${agents.length} ${agents.length === 1 ? "agent" : "agents"}`);
258144
258513
  }
@@ -258172,6 +258541,8 @@ ${summaryLines.join(`
258172
258541
  await maybeBuildBeforeDeploy(ctx, project2, options.build);
258173
258542
  let functionCompleted = 0;
258174
258543
  const functionTotal = functions.length;
258544
+ let actorCompleted = 0;
258545
+ const actorTotal = actors.length;
258175
258546
  const result = await deployAll(projectData, {
258176
258547
  onVisibilitySet: (level) => {
258177
258548
  log.success(`App visibility set to ${level}`);
@@ -258183,6 +258554,14 @@ ${summaryLines.join(`
258183
258554
  onFunctionResult: (r) => {
258184
258555
  functionCompleted++;
258185
258556
  formatDeployResult(r, log);
258557
+ },
258558
+ onActorStart: (names) => {
258559
+ const label = names.length === 1 ? names[0] : `${names.length} actors`;
258560
+ log.step(theme.styles.dim(`[${actorCompleted + 1}/${actorTotal}] Deploying ${label}...`));
258561
+ },
258562
+ onActorResult: (r) => {
258563
+ actorCompleted++;
258564
+ formatDeployResult(r, log);
258186
258565
  }
258187
258566
  });
258188
258567
  const connectorResults = result.connectorResults ?? [];
@@ -258197,8 +258576,8 @@ ${summaryLines.join(`
258197
258576
  }
258198
258577
  return { outroMessage: "App deployed successfully" };
258199
258578
  }
258200
- function getDeployCommand2() {
258201
- return new Base44Command("deploy").description("Deploy all project resources (entities, functions, agents, connectors, and site)").option("-y, --yes", "Skip confirmation prompt").option("--build", "Build the site before deploying (skips the prompt)").option("--no-build", "Deploy without building (skips the prompt)").action(deployAction);
258579
+ function getDeployCommand3() {
258580
+ return new Base44Command("deploy").description("Deploy entities, functions, actors, agent skills, agents, auth, connectors, and site").option("-y, --yes", "Skip confirmation prompt").option("--build", "Build the site before deploying (skips the prompt)").option("--no-build", "Deploy without building (skips the prompt)").action(deployAction);
258202
258581
  }
258203
258582
  async function handleOAuthConnectors(connectorResults, isNonInteractive, options, log) {
258204
258583
  const needsOAuth = filterPendingOAuth(connectorResults);
@@ -258582,7 +258961,7 @@ function getLogsCommand() {
258582
258961
  }
258583
258962
 
258584
258963
  // src/cli/commands/project/scaffold.ts
258585
- import { basename as basename6, resolve as resolve9 } from "node:path";
258964
+ import { basename as basename7, resolve as resolve9 } from "node:path";
258586
258965
  function resolveAppId(options) {
258587
258966
  const appId = options.appId;
258588
258967
  if (!appId) {
@@ -258599,7 +258978,7 @@ async function scaffoldAction(ctx, name2, options, command2) {
258599
258978
  const { log, runTask: runTask2 } = ctx;
258600
258979
  const appId = resolveAppId(command2.optsWithGlobals());
258601
258980
  const resolvedPath = resolve9("./");
258602
- const projectName = (name2 ?? basename6(resolvedPath)).trim();
258981
+ const projectName = (name2 ?? basename7(resolvedPath)).trim();
258603
258982
  const template2 = await getTemplateById("backend-only");
258604
258983
  log.info(`Scaffolding project at ${resolvedPath}`);
258605
258984
  const { projectId } = await runTask2("Setting up your project...", async () => {
@@ -258764,7 +259143,7 @@ function withSandboxAuthHint(error48) {
258764
259143
  cause: error48
258765
259144
  });
258766
259145
  }
258767
- async function callTool(appId, tool, payload, schema12, context, timeout2 = 60000) {
259146
+ async function callTool(appId, tool, payload, schema13, context, timeout2 = 60000) {
258768
259147
  const client = getSandboxClient(appId);
258769
259148
  let response;
258770
259149
  try {
@@ -258772,7 +259151,7 @@ async function callTool(appId, tool, payload, schema12, context, timeout2 = 6000
258772
259151
  } catch (error48) {
258773
259152
  throw withSandboxAuthHint(await ApiError.fromHttpError(error48, context));
258774
259153
  }
258775
- const result = schema12.safeParse(await response.json());
259154
+ const result = schema13.safeParse(await response.json());
258776
259155
  if (!result.success) {
258777
259156
  throw new SchemaValidationError("Invalid response from server", result.error);
258778
259157
  }
@@ -259173,8 +259552,8 @@ var EMPTY_TEMPLATE = import_common_tags.stripIndent`
259173
259552
  // Auto-generated by Base44 CLI - DO NOT EDIT
259174
259553
  // Regenerate with: base44 types
259175
259554
  //
259176
- // No entities, functions, agents, or connectors found in project.
259177
- // Add resources to base44/entities/, base44/functions/, base44/agents/, or base44/connectors/
259555
+ // No entities, functions, agents, connectors, or actors found in project.
259556
+ // Add resources to base44/entities/, base44/functions/, base44/agents/, base44/connectors/, or base44/actors/
259178
259557
  // and run \`base44 types generate\` again.
259179
259558
 
259180
259559
  declare module '@base44/sdk' {
@@ -259186,8 +259565,8 @@ async function generateTypesFile(input) {
259186
259565
  await writeFile(getTypesOutputPath(input.projectRoot), content);
259187
259566
  }
259188
259567
  async function generateContent(input) {
259189
- const { entities, functions, agents, connectors } = input;
259190
- if (!entities.length && !functions.length && !agents.length && !connectors.length) {
259568
+ const { entities, functions, agents, connectors, actors } = input;
259569
+ if (!entities.length && !functions.length && !agents.length && !connectors.length && !actors.length) {
259191
259570
  return EMPTY_TEMPLATE;
259192
259571
  }
259193
259572
  const entityInterfaces = await Promise.all(entities.map((e8) => compileEntity(e8)));
@@ -259198,7 +259577,8 @@ async function generateContent(input) {
259198
259577
  ],
259199
259578
  ["FunctionNameRegistry", functions.map((f7) => `"${f7.name}": true;`)],
259200
259579
  ["AgentNameRegistry", agents.map((a5) => `"${a5.name}": true;`)],
259201
- ["ConnectorTypeRegistry", connectors.map((c8) => `"${c8.type}": true;`)]
259580
+ ["ConnectorTypeRegistry", connectors.map((c8) => `"${c8.type}": true;`)],
259581
+ ["ActorNameRegistry", actors.map((a5) => `"${a5.name}": true;`)]
259202
259582
  ];
259203
259583
  const registries2 = registryEntries.filter(([, entries]) => entries.length > 0).map(([name2, entries]) => registry2(name2, entries));
259204
259584
  return [
@@ -259218,9 +259598,9 @@ async function generateContent(input) {
259218
259598
  `);
259219
259599
  }
259220
259600
  async function compileEntity(entity2) {
259221
- const { name: name2, source: _source, ...schema12 } = entity2;
259601
+ const { name: name2, source: _source, ...schema13 } = entity2;
259222
259602
  const jsonSchema = {
259223
- ...schema12,
259603
+ ...schema13,
259224
259604
  title: name2,
259225
259605
  additionalProperties: false
259226
259606
  };
@@ -259274,14 +259654,15 @@ var TYPES_FILE_PATH = "base44/.types/types.d.ts";
259274
259654
  async function generateTypesAction({
259275
259655
  runTask: runTask2
259276
259656
  }) {
259277
- const { entities, functions, agents, connectors, project: project2 } = await readProjectConfig();
259657
+ const { entities, functions, agents, connectors, actors, project: project2 } = await readProjectConfig();
259278
259658
  await runTask2("Generating types", async () => {
259279
259659
  await generateTypesFile({
259280
259660
  projectRoot: project2.root,
259281
259661
  entities,
259282
259662
  functions,
259283
259663
  agents,
259284
- connectors
259664
+ connectors,
259665
+ actors
259285
259666
  });
259286
259667
  });
259287
259668
  const tsconfigUpdated = await updateProjectConfig(project2.root);
@@ -259714,7 +260095,7 @@ function createDevLogger(label2, labelColor = theme.styles.dim) {
259714
260095
  // src/cli/dev/dev-server/main.ts
259715
260096
  var import_cors = __toESM(require_lib4(), 1);
259716
260097
  var import_express6 = __toESM(require_express(), 1);
259717
- import { dirname as dirname23, join as join35 } from "node:path";
260098
+ import { dirname as dirname25, join as join35 } from "node:path";
259718
260099
 
259719
260100
  // ../../node_modules/get-port/index.js
259720
260101
  import net from "node:net";
@@ -259735,8 +260116,8 @@ var getLocalHosts = () => {
259735
260116
  const interfaces = os11.networkInterfaces();
259736
260117
  const results = new Set([undefined, "0.0.0.0"]);
259737
260118
  for (const _interface of Object.values(interfaces)) {
259738
- for (const config13 of _interface) {
259739
- results.add(config13.address);
260119
+ for (const config14 of _interface) {
260120
+ results.add(config14.address);
259740
260121
  }
259741
260122
  }
259742
260123
  return results;
@@ -259849,7 +260230,7 @@ var $setGracefulCleanup = tmp.setGracefulCleanup;
259849
260230
 
259850
260231
  // src/cli/dev/dev-server/function-manager.ts
259851
260232
  import { spawn as spawn2 } from "node:child_process";
259852
- import { dirname as dirname20, join as join29 } from "node:path";
260233
+ import { dirname as dirname22, join as join29 } from "node:path";
259853
260234
  import { pathToFileURL } from "node:url";
259854
260235
 
259855
260236
  // src/cli/dev/dev-server/base-function-manager.ts
@@ -259954,7 +260335,7 @@ class FunctionManager extends BaseFunctionManager {
259954
260335
  }
259955
260336
  spawnFunction(func, port) {
259956
260337
  this.logger.log(`Spawning function "${func.name}" on port ${port}`);
259957
- const importMapPath = join29(dirname20(this.wrapperPath), "import-map.json");
260338
+ const importMapPath = join29(dirname22(this.wrapperPath), "import-map.json");
259958
260339
  const process23 = spawn2("deno", ["run", "--allow-all", "--import-map", importMapPath, this.wrapperPath], {
259959
260340
  env: {
259960
260341
  ...globalThis.process.env,
@@ -260756,22 +261137,22 @@ class Database {
260756
261137
  this.schemas.clear();
260757
261138
  }
260758
261139
  validate(entityName, record2, partial2 = false) {
260759
- const schema12 = this.schemas.get(this.normalizeName(entityName));
260760
- if (!schema12) {
261140
+ const schema13 = this.schemas.get(this.normalizeName(entityName));
261141
+ if (!schema13) {
260761
261142
  throw new Error(`Entity "${entityName}" not found`);
260762
261143
  }
260763
- return this.validator.validate(record2, schema12, partial2);
261144
+ return this.validator.validate(record2, schema13, partial2);
260764
261145
  }
260765
261146
  prepareRecord(entityName, record2, partial2 = false) {
260766
- const schema12 = this.schemas.get(this.normalizeName(entityName));
260767
- if (!schema12) {
261147
+ const schema13 = this.schemas.get(this.normalizeName(entityName));
261148
+ if (!schema13) {
260768
261149
  throw new Error(`Entity "${entityName}" not found`);
260769
261150
  }
260770
- const filteredRecord = this.validator.filterFields(record2, schema12);
261151
+ const filteredRecord = this.validator.filterFields(record2, schema13);
260771
261152
  if (partial2) {
260772
261153
  return filteredRecord;
260773
261154
  }
260774
- return this.validator.applyDefaults(filteredRecord, schema12);
261155
+ return this.validator.applyDefaults(filteredRecord, schema13);
260775
261156
  }
260776
261157
  normalizeName(entityName) {
260777
261158
  return entityName.toLowerCase();
@@ -261067,13 +261448,13 @@ function checkRLS(rule, record2, user) {
261067
261448
  return false;
261068
261449
  return evaluateCondition(rule, record2, user);
261069
261450
  }
261070
- function applyFLS(record2, schema12, user, operation) {
261451
+ function applyFLS(record2, schema13, user, operation) {
261071
261452
  if (Array.isArray(record2)) {
261072
- return record2.map((r5) => applyFLS(r5, schema12, user, operation));
261453
+ return record2.map((r5) => applyFLS(r5, schema13, user, operation));
261073
261454
  }
261074
261455
  const result = {};
261075
261456
  for (const [key2, value] of Object.entries(record2)) {
261076
- const rule = schema12.properties[key2]?.rls?.[operation];
261457
+ const rule = schema13.properties[key2]?.rls?.[operation];
261077
261458
  if (rule === undefined || checkRLS(rule, record2, user)) {
261078
261459
  result[key2] = value;
261079
261460
  }
@@ -261301,14 +261682,14 @@ async function createEntityRoutes(db2, logger2, broadcast) {
261301
261682
  res.status(404).json({ error: `Entity "${entityName}" not found` });
261302
261683
  return;
261303
261684
  }
261304
- const schema12 = db2.getSchema(entityName);
261305
- if (!schema12) {
261685
+ const schema13 = db2.getSchema(entityName);
261686
+ if (!schema13) {
261306
261687
  res.status(404).json({ error: `Schema for "${entityName}" not found` });
261307
261688
  return;
261308
261689
  }
261309
261690
  const currentUserResult = await resolveCurrentUser(db2, req);
261310
261691
  const currentUser = currentUserResult.ok ? currentUserResult.user : undefined;
261311
- await handler(req, res, collection, schema12, currentUser);
261692
+ await handler(req, res, collection, schema13, currentUser);
261312
261693
  };
261313
261694
  }
261314
261695
  function emit(appId, entityName, type, data) {
@@ -261326,19 +261707,19 @@ async function createEntityRoutes(db2, logger2, broadcast) {
261326
261707
  }
261327
261708
  broadcast(appId, entityName, createData(data));
261328
261709
  }
261329
- function prepareCreateRecord(entityName, body, schema12, currentUser, now) {
261710
+ function prepareCreateRecord(entityName, body, schema13, currentUser, now) {
261330
261711
  const { _id, ...recordBody } = body;
261331
261712
  const ownerFields = {
261332
261713
  created_by: currentUser?.email,
261333
261714
  created_by_id: currentUser?.id
261334
261715
  };
261335
- if (!checkRLS(schema12.rls?.create, {
261716
+ if (!checkRLS(schema13.rls?.create, {
261336
261717
  ...recordBody,
261337
261718
  ...ownerFields
261338
261719
  }, currentUser)) {
261339
261720
  return;
261340
261721
  }
261341
- const filteredBody = applyFLS(db2.prepareRecord(entityName, recordBody), schema12, currentUser, "write");
261722
+ const filteredBody = applyFLS(db2.prepareRecord(entityName, recordBody), schema13, currentUser, "write");
261342
261723
  db2.validate(entityName, filteredBody);
261343
261724
  return {
261344
261725
  ...filteredBody,
@@ -261350,7 +261731,7 @@ async function createEntityRoutes(db2, logger2, broadcast) {
261350
261731
  }
261351
261732
  const userRouter = createUserRouter(db2, logger2);
261352
261733
  router.use("/User", userRouter);
261353
- router.get("/:entityName/:id", withCollection(async (req, res, collection, schema12, currentUser) => {
261734
+ router.get("/:entityName/:id", withCollection(async (req, res, collection, schema13, currentUser) => {
261354
261735
  const { entityName, id: id2 } = req.params;
261355
261736
  try {
261356
261737
  const doc2 = await collection.findOneAsync({ id: id2 });
@@ -261358,27 +261739,27 @@ async function createEntityRoutes(db2, logger2, broadcast) {
261358
261739
  res.status(404).json({ error: `Record with id "${id2}" not found` });
261359
261740
  return;
261360
261741
  }
261361
- if (!checkRLS(schema12.rls?.read, doc2, currentUser)) {
261742
+ if (!checkRLS(schema13.rls?.read, doc2, currentUser)) {
261362
261743
  res.status(404).json({
261363
261744
  message: `Entity ${entityName} with ID ${id2} not found`
261364
261745
  });
261365
261746
  return;
261366
261747
  }
261367
- const result = applyFLS(stripInternalFields(doc2), schema12, currentUser, "read");
261748
+ const result = applyFLS(stripInternalFields(doc2), schema13, currentUser, "read");
261368
261749
  res.json(result);
261369
261750
  } catch (error48) {
261370
261751
  logger2.error(`Error in GET /${entityName}/${id2}:`, error48);
261371
261752
  res.status(500).json({ error: "Internal server error" });
261372
261753
  }
261373
261754
  }));
261374
- router.get("/:entityName", withCollection(async (req, res, collection, schema12, currentUser) => {
261755
+ router.get("/:entityName", withCollection(async (req, res, collection, schema13, currentUser) => {
261375
261756
  const { entityName } = req.params;
261376
261757
  try {
261377
261758
  let results = stripInternalFields(await queryEntity(collection, req.query));
261378
- if (schema12.rls?.read !== undefined && schema12.rls.read !== true) {
261379
- results = results.filter((doc2) => checkRLS(schema12.rls.read, doc2, currentUser));
261759
+ if (schema13.rls?.read !== undefined && schema13.rls.read !== true) {
261760
+ results = results.filter((doc2) => checkRLS(schema13.rls.read, doc2, currentUser));
261380
261761
  }
261381
- results = results.map((doc2) => applyFLS(doc2, schema12, currentUser, "read"));
261762
+ results = results.map((doc2) => applyFLS(doc2, schema13, currentUser, "read"));
261382
261763
  res.json(results);
261383
261764
  } catch (error48) {
261384
261765
  if (error48 instanceof InvalidInputError) {
@@ -261389,16 +261770,16 @@ async function createEntityRoutes(db2, logger2, broadcast) {
261389
261770
  }
261390
261771
  }
261391
261772
  }));
261392
- router.post("/:entityName", parseBody, withCollection(async (req, res, collection, schema12, currentUser) => {
261773
+ router.post("/:entityName", parseBody, withCollection(async (req, res, collection, schema13, currentUser) => {
261393
261774
  const { appId, entityName } = req.params;
261394
261775
  try {
261395
261776
  const now = new Date().toISOString();
261396
- const record2 = prepareCreateRecord(entityName, req.body, schema12, currentUser, now);
261777
+ const record2 = prepareCreateRecord(entityName, req.body, schema13, currentUser, now);
261397
261778
  if (!record2) {
261398
261779
  res.status(403).json({ error: "Permission denied" });
261399
261780
  return;
261400
261781
  }
261401
- const inserted = applyFLS(stripInternalFields(await collection.insertAsync(record2)), schema12, currentUser, "read");
261782
+ const inserted = applyFLS(stripInternalFields(await collection.insertAsync(record2)), schema13, currentUser, "read");
261402
261783
  emit(appId, entityName, "create", inserted);
261403
261784
  res.status(201).json(inserted);
261404
261785
  } catch (error48) {
@@ -261410,7 +261791,7 @@ async function createEntityRoutes(db2, logger2, broadcast) {
261410
261791
  res.status(500).json({ error: "Internal server error" });
261411
261792
  }
261412
261793
  }));
261413
- router.post("/:entityName/bulk", parseBody, withCollection(async (req, res, collection, schema12, currentUser) => {
261794
+ router.post("/:entityName/bulk", parseBody, withCollection(async (req, res, collection, schema13, currentUser) => {
261414
261795
  const { appId, entityName } = req.params;
261415
261796
  if (!Array.isArray(req.body)) {
261416
261797
  res.status(400).json({ error: "Request body must be an array" });
@@ -261420,14 +261801,14 @@ async function createEntityRoutes(db2, logger2, broadcast) {
261420
261801
  const now = new Date().toISOString();
261421
261802
  const records = [];
261422
261803
  for (const body of req.body) {
261423
- const record2 = prepareCreateRecord(entityName, body, schema12, currentUser, now);
261804
+ const record2 = prepareCreateRecord(entityName, body, schema13, currentUser, now);
261424
261805
  if (!record2) {
261425
261806
  res.status(403).json({ error: "Permission denied" });
261426
261807
  return;
261427
261808
  }
261428
261809
  records.push(record2);
261429
261810
  }
261430
- const inserted = applyFLS(stripInternalFields(await collection.insertAsync(records)), schema12, currentUser, "read");
261811
+ const inserted = applyFLS(stripInternalFields(await collection.insertAsync(records)), schema13, currentUser, "read");
261431
261812
  emit(appId, entityName, "create", inserted);
261432
261813
  res.status(201).json(inserted);
261433
261814
  } catch (error48) {
@@ -261439,24 +261820,24 @@ async function createEntityRoutes(db2, logger2, broadcast) {
261439
261820
  res.status(500).json({ error: "Internal server error" });
261440
261821
  }
261441
261822
  }));
261442
- router.put("/:entityName/:id", parseBody, withCollection(async (req, res, collection, schema12, currentUser) => {
261823
+ router.put("/:entityName/:id", parseBody, withCollection(async (req, res, collection, schema13, currentUser) => {
261443
261824
  const { appId, entityName, id: id2 } = req.params;
261444
261825
  const { id: _id, created_date: _created_date, ...body } = req.body;
261445
261826
  try {
261446
- if (schema12.rls?.update !== undefined) {
261827
+ if (schema13.rls?.update !== undefined) {
261447
261828
  const existing = await collection.findOneAsync({ id: id2 });
261448
261829
  if (!existing) {
261449
261830
  res.status(404).json({ error: `Record with id "${id2}" not found` });
261450
261831
  return;
261451
261832
  }
261452
- if (!checkRLS(schema12.rls.update, existing, currentUser)) {
261833
+ if (!checkRLS(schema13.rls.update, existing, currentUser)) {
261453
261834
  res.status(404).json({
261454
261835
  message: `Entity ${entityName} with ID ${id2} not found`
261455
261836
  });
261456
261837
  return;
261457
261838
  }
261458
261839
  }
261459
- const filteredBody = applyFLS(db2.prepareRecord(entityName, body, true), schema12, currentUser, "write");
261840
+ const filteredBody = applyFLS(db2.prepareRecord(entityName, body, true), schema13, currentUser, "write");
261460
261841
  db2.validate(entityName, filteredBody, true);
261461
261842
  const updateData = {
261462
261843
  ...filteredBody,
@@ -261467,7 +261848,7 @@ async function createEntityRoutes(db2, logger2, broadcast) {
261467
261848
  res.status(404).json({ error: `Record with id "${id2}" not found` });
261468
261849
  return;
261469
261850
  }
261470
- const updated = applyFLS(stripInternalFields(result.affectedDocuments), schema12, currentUser, "read");
261851
+ const updated = applyFLS(stripInternalFields(result.affectedDocuments), schema13, currentUser, "read");
261471
261852
  emit(appId, entityName, "update", updated);
261472
261853
  res.json(updated);
261473
261854
  } catch (error48) {
@@ -261479,7 +261860,7 @@ async function createEntityRoutes(db2, logger2, broadcast) {
261479
261860
  res.status(500).json({ error: "Internal server error" });
261480
261861
  }
261481
261862
  }));
261482
- router.delete("/:entityName/:id", withCollection(async (req, res, collection, schema12, currentUser) => {
261863
+ router.delete("/:entityName/:id", withCollection(async (req, res, collection, schema13, currentUser) => {
261483
261864
  const { appId, entityName, id: id2 } = req.params;
261484
261865
  try {
261485
261866
  const doc2 = await collection.findOneAsync({ id: id2 });
@@ -261487,7 +261868,7 @@ async function createEntityRoutes(db2, logger2, broadcast) {
261487
261868
  res.status(404).json({ error: `Record with id "${id2}" not found` });
261488
261869
  return;
261489
261870
  }
261490
- if (!checkRLS(schema12.rls?.delete, doc2, currentUser)) {
261871
+ if (!checkRLS(schema13.rls?.delete, doc2, currentUser)) {
261491
261872
  res.status(404).json({
261492
261873
  message: `Entity ${entityName} with ID ${id2} not found`
261493
261874
  });
@@ -261501,11 +261882,11 @@ async function createEntityRoutes(db2, logger2, broadcast) {
261501
261882
  res.status(500).json({ error: "Internal server error" });
261502
261883
  }
261503
261884
  }));
261504
- router.delete("/:entityName", parseBody, withCollection(async (req, res, collection, schema12, currentUser) => {
261885
+ router.delete("/:entityName", parseBody, withCollection(async (req, res, collection, schema13, currentUser) => {
261505
261886
  const { entityName } = req.params;
261506
261887
  try {
261507
261888
  const query = req.body || {};
261508
- const rlsDelete = schema12?.rls?.delete;
261889
+ const rlsDelete = schema13?.rls?.delete;
261509
261890
  if (rlsDelete !== undefined && rlsDelete !== true) {
261510
261891
  if (rlsDelete === false && currentUser?.is_service !== true) {
261511
261892
  res.status(403).json({ error: "Permission denied" });
@@ -261621,7 +262002,7 @@ function createCustomIntegrationRoutes(remoteProxy, logger2) {
261621
262002
 
261622
262003
  // src/cli/dev/dev-server/watcher.ts
261623
262004
  import { EventEmitter as EventEmitter4 } from "node:events";
261624
- import { relative as relative6 } from "node:path";
262005
+ import { relative as relative8 } from "node:path";
261625
262006
 
261626
262007
  // ../../node_modules/chokidar/index.js
261627
262008
  import { EventEmitter as EventEmitter3 } from "node:events";
@@ -261791,10 +262172,10 @@ class ReaddirpStream extends Readable6 {
261791
262172
  }
261792
262173
  async _formatEntry(dirent, path19) {
261793
262174
  let entry;
261794
- const basename7 = this._isDirent ? dirent.name : dirent;
262175
+ const basename8 = this._isDirent ? dirent.name : dirent;
261795
262176
  try {
261796
- const fullPath = presolve(pjoin(path19, basename7));
261797
- entry = { path: prelative(this._root, fullPath), fullPath, basename: basename7 };
262177
+ const fullPath = presolve(pjoin(path19, basename8));
262178
+ entry = { path: prelative(this._root, fullPath), fullPath, basename: basename8 };
261798
262179
  entry[this._statsProp] = this._isDirent ? dirent : await this._stat(fullPath);
261799
262180
  } catch (err) {
261800
262181
  this._onError(err);
@@ -262321,9 +262702,9 @@ class NodeFsHandler {
262321
262702
  _watchWithNodeFs(path19, listener) {
262322
262703
  const opts = this.fsw.options;
262323
262704
  const directory = sp2.dirname(path19);
262324
- const basename8 = sp2.basename(path19);
262705
+ const basename9 = sp2.basename(path19);
262325
262706
  const parent = this.fsw._getWatchedDir(directory);
262326
- parent.add(basename8);
262707
+ parent.add(basename9);
262327
262708
  const absolutePath = sp2.resolve(path19);
262328
262709
  const options8 = {
262329
262710
  persistent: opts.persistent
@@ -262333,7 +262714,7 @@ class NodeFsHandler {
262333
262714
  let closer;
262334
262715
  if (opts.usePolling) {
262335
262716
  const enableBin = opts.interval !== opts.binaryInterval;
262336
- options8.interval = enableBin && isBinaryPath(basename8) ? opts.binaryInterval : opts.interval;
262717
+ options8.interval = enableBin && isBinaryPath(basename9) ? opts.binaryInterval : opts.interval;
262337
262718
  closer = setFsWatchFileListener(path19, absolutePath, options8, {
262338
262719
  listener,
262339
262720
  rawEmitter: this.fsw._emitRaw
@@ -262351,11 +262732,11 @@ class NodeFsHandler {
262351
262732
  if (this.fsw.closed) {
262352
262733
  return;
262353
262734
  }
262354
- const dirname22 = sp2.dirname(file2);
262355
- const basename8 = sp2.basename(file2);
262356
- const parent = this.fsw._getWatchedDir(dirname22);
262735
+ const dirname24 = sp2.dirname(file2);
262736
+ const basename9 = sp2.basename(file2);
262737
+ const parent = this.fsw._getWatchedDir(dirname24);
262357
262738
  let prevStats = stats;
262358
- if (parent.has(basename8))
262739
+ if (parent.has(basename9))
262359
262740
  return;
262360
262741
  const listener = async (path19, newStats) => {
262361
262742
  if (!this.fsw._throttle(THROTTLE_MODE_WATCH, file2, 5))
@@ -262380,9 +262761,9 @@ class NodeFsHandler {
262380
262761
  prevStats = newStats2;
262381
262762
  }
262382
262763
  } catch (error48) {
262383
- this.fsw._remove(dirname22, basename8);
262764
+ this.fsw._remove(dirname24, basename9);
262384
262765
  }
262385
- } else if (parent.has(basename8)) {
262766
+ } else if (parent.has(basename9)) {
262386
262767
  const at13 = newStats.atimeMs;
262387
262768
  const mt12 = newStats.mtimeMs;
262388
262769
  if (!at13 || at13 <= mt12 || mt12 !== prevStats.mtimeMs) {
@@ -262603,11 +262984,11 @@ function createPattern(matcher) {
262603
262984
  if (matcher.path === string4)
262604
262985
  return true;
262605
262986
  if (matcher.recursive) {
262606
- const relative6 = sp3.relative(matcher.path, string4);
262607
- if (!relative6) {
262987
+ const relative8 = sp3.relative(matcher.path, string4);
262988
+ if (!relative8) {
262608
262989
  return false;
262609
262990
  }
262610
- return !relative6.startsWith("..") && !sp3.isAbsolute(relative6);
262991
+ return !relative8.startsWith("..") && !sp3.isAbsolute(relative8);
262611
262992
  }
262612
262993
  return false;
262613
262994
  };
@@ -263306,7 +263687,7 @@ class WatchBase44 extends EventEmitter4 {
263306
263687
  ignoreInitial: true
263307
263688
  });
263308
263689
  watcher.on("all", import_debounce.default(async (_event, path19) => {
263309
- this.emit("change", name2, relative6(targetPath, path19));
263690
+ this.emit("change", name2, relative8(targetPath, path19));
263310
263691
  }, WATCH_DEBOUNCE_MS));
263311
263692
  watcher.on("error", (err) => {
263312
263693
  this.logger.error(`Watch handler failed for ${targetPath}`, err);
@@ -263413,8 +263794,8 @@ async function createDevServer(options8) {
263413
263794
  broadcastEntityEvent(io6, appId, entityName, event);
263414
263795
  };
263415
263796
  const base44ConfigWatcher = new WatchBase44({
263416
- functions: join35(dirname23(project2.configPath), project2.functionsDir),
263417
- entities: join35(dirname23(project2.configPath), project2.entitiesDir)
263797
+ functions: join35(dirname25(project2.configPath), project2.functionsDir),
263798
+ entities: join35(dirname25(project2.configPath), project2.entitiesDir)
263418
263799
  }, devLogger);
263419
263800
  base44ConfigWatcher.on("change", async (name2) => {
263420
263801
  try {
@@ -263942,7 +264323,7 @@ function createProgram(context) {
263942
264323
  program2.addCommand(getScaffoldCommand());
263943
264324
  program2.addCommand(getDashboardCommand());
263944
264325
  program2.addCommand(getBuildCommand());
263945
- program2.addCommand(getDeployCommand2());
264326
+ program2.addCommand(getDeployCommand3());
263946
264327
  program2.addCommand(getVisibilityCommand());
263947
264328
  program2.addCommand(getLinkCommand());
263948
264329
  program2.addCommand(getEjectCommand());
@@ -263952,6 +264333,7 @@ function createProgram(context) {
263952
264333
  program2.addCommand(getAgentSkillsCommand());
263953
264334
  program2.addCommand(getConnectorsCommand());
263954
264335
  program2.addCommand(getFunctionsCommand());
264336
+ program2.addCommand(getActorsCommand());
263955
264337
  program2.addCommand(getWorkflowsCommand());
263956
264338
  program2.addCommand(getSecretsCommand());
263957
264339
  program2.addCommand(getSandboxCommand());
@@ -263969,7 +264351,7 @@ var import_detect_agent = __toESM(require_dist5(), 1);
263969
264351
  import { release, type } from "node:os";
263970
264352
 
263971
264353
  // ../../node_modules/posthog-node/dist/extensions/error-tracking/modifiers/module.node.mjs
263972
- import { dirname as dirname24, posix, sep } from "path";
264354
+ import { dirname as dirname26, posix, sep } from "path";
263973
264355
  function createModulerModifier() {
263974
264356
  const getModuleFromFileName = createGetModuleFromFilename();
263975
264357
  return async (frames) => {
@@ -263978,7 +264360,7 @@ function createModulerModifier() {
263978
264360
  return frames;
263979
264361
  };
263980
264362
  }
263981
- function createGetModuleFromFilename(basePath = process.argv[1] ? dirname24(process.argv[1]) : process.cwd(), isWindows5 = sep === "\\") {
264363
+ function createGetModuleFromFilename(basePath = process.argv[1] ? dirname26(process.argv[1]) : process.cwd(), isWindows5 = sep === "\\") {
263982
264364
  const normalizedBase = isWindows5 ? normalizeWindowsPath2(basePath) : basePath;
263983
264365
  return (filename) => {
263984
264366
  if (!filename)
@@ -268167,7 +268549,7 @@ function addCommandInfoToErrorReporter(program2, errorReporter) {
268167
268549
  });
268168
268550
  }
268169
268551
  // src/cli/index.ts
268170
- var __dirname4 = dirname25(fileURLToPath6(import.meta.url));
268552
+ var __dirname4 = dirname27(fileURLToPath6(import.meta.url));
268171
268553
  async function runCLI(options8) {
268172
268554
  ensureNpmAssets(join36(__dirname4, "../assets"));
268173
268555
  const errorReporter = new ErrorReporter;
@@ -268208,4 +268590,4 @@ export {
268208
268590
  CLIExitError
268209
268591
  };
268210
268592
 
268211
- //# debugId=BD8B328810C7720964756E2164756E21
268593
+ //# debugId=FD1D5482C30AB9D864756E2164756E21