@settlemint/sdk-cli 2.6.2-mainec3ebb39 → 2.6.2-pr113a2d5d

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/cli.js +235 -692
  2. package/dist/cli.js.map +3 -17
  3. package/package.json +7 -7
package/dist/cli.js CHANGED
@@ -240664,11 +240664,11 @@ var require_visit = __commonJS((exports) => {
240664
240664
  visit2.BREAK = BREAK;
240665
240665
  visit2.SKIP = SKIP;
240666
240666
  visit2.REMOVE = REMOVE;
240667
- function visit_(key3, node, visitor, path5) {
240668
- const ctrl = callVisitor(key3, node, visitor, path5);
240667
+ function visit_(key2, node, visitor, path5) {
240668
+ const ctrl = callVisitor(key2, node, visitor, path5);
240669
240669
  if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
240670
- replaceNode(key3, path5, ctrl);
240671
- return visit_(key3, ctrl, visitor, path5);
240670
+ replaceNode(key2, path5, ctrl);
240671
+ return visit_(key2, ctrl, visitor, path5);
240672
240672
  }
240673
240673
  if (typeof ctrl !== "symbol") {
240674
240674
  if (identity2.isCollection(node)) {
@@ -240712,11 +240712,11 @@ var require_visit = __commonJS((exports) => {
240712
240712
  visitAsync.BREAK = BREAK;
240713
240713
  visitAsync.SKIP = SKIP;
240714
240714
  visitAsync.REMOVE = REMOVE;
240715
- async function visitAsync_(key3, node, visitor, path5) {
240716
- const ctrl = await callVisitor(key3, node, visitor, path5);
240715
+ async function visitAsync_(key2, node, visitor, path5) {
240716
+ const ctrl = await callVisitor(key2, node, visitor, path5);
240717
240717
  if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
240718
- replaceNode(key3, path5, ctrl);
240719
- return visitAsync_(key3, ctrl, visitor, path5);
240718
+ replaceNode(key2, path5, ctrl);
240719
+ return visitAsync_(key2, ctrl, visitor, path5);
240720
240720
  }
240721
240721
  if (typeof ctrl !== "symbol") {
240722
240722
  if (identity2.isCollection(node)) {
@@ -240766,27 +240766,27 @@ var require_visit = __commonJS((exports) => {
240766
240766
  }
240767
240767
  return visitor;
240768
240768
  }
240769
- function callVisitor(key3, node, visitor, path5) {
240769
+ function callVisitor(key2, node, visitor, path5) {
240770
240770
  if (typeof visitor === "function")
240771
- return visitor(key3, node, path5);
240771
+ return visitor(key2, node, path5);
240772
240772
  if (identity2.isMap(node))
240773
- return visitor.Map?.(key3, node, path5);
240773
+ return visitor.Map?.(key2, node, path5);
240774
240774
  if (identity2.isSeq(node))
240775
- return visitor.Seq?.(key3, node, path5);
240775
+ return visitor.Seq?.(key2, node, path5);
240776
240776
  if (identity2.isPair(node))
240777
- return visitor.Pair?.(key3, node, path5);
240777
+ return visitor.Pair?.(key2, node, path5);
240778
240778
  if (identity2.isScalar(node))
240779
- return visitor.Scalar?.(key3, node, path5);
240779
+ return visitor.Scalar?.(key2, node, path5);
240780
240780
  if (identity2.isAlias(node))
240781
- return visitor.Alias?.(key3, node, path5);
240781
+ return visitor.Alias?.(key2, node, path5);
240782
240782
  return;
240783
240783
  }
240784
- function replaceNode(key3, path5, node) {
240784
+ function replaceNode(key2, path5, node) {
240785
240785
  const parent = path5[path5.length - 1];
240786
240786
  if (identity2.isCollection(parent)) {
240787
- parent.items[key3] = node;
240787
+ parent.items[key2] = node;
240788
240788
  } else if (identity2.isPair(parent)) {
240789
- if (key3 === "key")
240789
+ if (key2 === "key")
240790
240790
  parent.key = node;
240791
240791
  else
240792
240792
  parent.value = node;
@@ -241017,7 +241017,7 @@ var require_anchors = __commonJS((exports) => {
241017
241017
 
241018
241018
  // ../../node_modules/.bun/yaml@2.8.1/node_modules/yaml/dist/doc/applyReviver.js
241019
241019
  var require_applyReviver = __commonJS((exports) => {
241020
- function applyReviver(reviver, obj, key3, val) {
241020
+ function applyReviver(reviver, obj, key2, val) {
241021
241021
  if (val && typeof val === "object") {
241022
241022
  if (Array.isArray(val)) {
241023
241023
  for (let i8 = 0, len = val.length;i8 < len; ++i8) {
@@ -241057,7 +241057,7 @@ var require_applyReviver = __commonJS((exports) => {
241057
241057
  }
241058
241058
  }
241059
241059
  }
241060
- return reviver.call(obj, key3, val);
241060
+ return reviver.call(obj, key2, val);
241061
241061
  }
241062
241062
  exports.applyReviver = applyReviver;
241063
241063
  });
@@ -241386,29 +241386,29 @@ var require_Collection = __commonJS((exports) => {
241386
241386
  if (isEmptyPath(path5))
241387
241387
  this.add(value5);
241388
241388
  else {
241389
- const [key3, ...rest] = path5;
241390
- const node = this.get(key3, true);
241389
+ const [key2, ...rest] = path5;
241390
+ const node = this.get(key2, true);
241391
241391
  if (identity2.isCollection(node))
241392
241392
  node.addIn(rest, value5);
241393
241393
  else if (node === undefined && this.schema)
241394
- this.set(key3, collectionFromPath(this.schema, rest, value5));
241394
+ this.set(key2, collectionFromPath(this.schema, rest, value5));
241395
241395
  else
241396
- throw new Error(`Expected YAML collection at ${key3}. Remaining path: ${rest}`);
241396
+ throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
241397
241397
  }
241398
241398
  }
241399
241399
  deleteIn(path5) {
241400
- const [key3, ...rest] = path5;
241400
+ const [key2, ...rest] = path5;
241401
241401
  if (rest.length === 0)
241402
- return this.delete(key3);
241403
- const node = this.get(key3, true);
241402
+ return this.delete(key2);
241403
+ const node = this.get(key2, true);
241404
241404
  if (identity2.isCollection(node))
241405
241405
  return node.deleteIn(rest);
241406
241406
  else
241407
- throw new Error(`Expected YAML collection at ${key3}. Remaining path: ${rest}`);
241407
+ throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
241408
241408
  }
241409
241409
  getIn(path5, keepScalar) {
241410
- const [key3, ...rest] = path5;
241411
- const node = this.get(key3, true);
241410
+ const [key2, ...rest] = path5;
241411
+ const node = this.get(key2, true);
241412
241412
  if (rest.length === 0)
241413
241413
  return !keepScalar && identity2.isScalar(node) ? node.value : node;
241414
241414
  else
@@ -241423,24 +241423,24 @@ var require_Collection = __commonJS((exports) => {
241423
241423
  });
241424
241424
  }
241425
241425
  hasIn(path5) {
241426
- const [key3, ...rest] = path5;
241426
+ const [key2, ...rest] = path5;
241427
241427
  if (rest.length === 0)
241428
- return this.has(key3);
241429
- const node = this.get(key3, true);
241428
+ return this.has(key2);
241429
+ const node = this.get(key2, true);
241430
241430
  return identity2.isCollection(node) ? node.hasIn(rest) : false;
241431
241431
  }
241432
241432
  setIn(path5, value5) {
241433
- const [key3, ...rest] = path5;
241433
+ const [key2, ...rest] = path5;
241434
241434
  if (rest.length === 0) {
241435
- this.set(key3, value5);
241435
+ this.set(key2, value5);
241436
241436
  } else {
241437
- const node = this.get(key3, true);
241437
+ const node = this.get(key2, true);
241438
241438
  if (identity2.isCollection(node))
241439
241439
  node.setIn(rest, value5);
241440
241440
  else if (node === undefined && this.schema)
241441
- this.set(key3, collectionFromPath(this.schema, rest, value5));
241441
+ this.set(key2, collectionFromPath(this.schema, rest, value5));
241442
241442
  else
241443
- throw new Error(`Expected YAML collection at ${key3}. Remaining path: ${rest}`);
241443
+ throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
241444
241444
  }
241445
241445
  }
241446
241446
  }
@@ -242027,19 +242027,19 @@ var require_stringifyPair = __commonJS((exports) => {
242027
242027
  var Scalar = require_Scalar();
242028
242028
  var stringify5 = require_stringify();
242029
242029
  var stringifyComment = require_stringifyComment();
242030
- function stringifyPair2({ key: key3, value: value5 }, ctx, onComment, onChompKeep) {
242030
+ function stringifyPair2({ key: key2, value: value5 }, ctx, onComment, onChompKeep) {
242031
242031
  const { allNullValues, doc: doc2, indent: indent2, indentStep, options: { commentString, indentSeq, simpleKeys } } = ctx;
242032
- let keyComment = identity2.isNode(key3) && key3.comment || null;
242032
+ let keyComment = identity2.isNode(key2) && key2.comment || null;
242033
242033
  if (simpleKeys) {
242034
242034
  if (keyComment) {
242035
242035
  throw new Error("With simple keys, key nodes cannot have comments");
242036
242036
  }
242037
- if (identity2.isCollection(key3) || !identity2.isNode(key3) && typeof key3 === "object") {
242037
+ if (identity2.isCollection(key2) || !identity2.isNode(key2) && typeof key2 === "object") {
242038
242038
  const msg = "With simple keys, collection cannot be used as a key value";
242039
242039
  throw new Error(msg);
242040
242040
  }
242041
242041
  }
242042
- let explicitKey = !simpleKeys && (!key3 || keyComment && value5 == null && !ctx.inFlow || identity2.isCollection(key3) || (identity2.isScalar(key3) ? key3.type === Scalar.Scalar.BLOCK_FOLDED || key3.type === Scalar.Scalar.BLOCK_LITERAL : typeof key3 === "object"));
242042
+ let explicitKey = !simpleKeys && (!key2 || keyComment && value5 == null && !ctx.inFlow || identity2.isCollection(key2) || (identity2.isScalar(key2) ? key2.type === Scalar.Scalar.BLOCK_FOLDED || key2.type === Scalar.Scalar.BLOCK_LITERAL : typeof key2 === "object"));
242043
242043
  ctx = Object.assign({}, ctx, {
242044
242044
  allNullValues: false,
242045
242045
  implicitKey: !explicitKey && (simpleKeys || !allNullValues),
@@ -242047,7 +242047,7 @@ var require_stringifyPair = __commonJS((exports) => {
242047
242047
  });
242048
242048
  let keyCommentDone = false;
242049
242049
  let chompKeep = false;
242050
- let str = stringify5.stringify(key3, ctx, () => keyCommentDone = true, () => chompKeep = true);
242050
+ let str = stringify5.stringify(key2, ctx, () => keyCommentDone = true, () => chompKeep = true);
242051
242051
  if (!explicitKey && !ctx.inFlow && str.length > 1024) {
242052
242052
  if (simpleKeys)
242053
242053
  throw new Error("With simple keys, single line scalar must not span more than 1024 characters");
@@ -242191,7 +242191,7 @@ var require_merge = __commonJS((exports) => {
242191
242191
  }),
242192
242192
  stringify: () => MERGE_KEY
242193
242193
  };
242194
- var isMergeKey = (ctx, key3) => (merge4.identify(key3) || identity2.isScalar(key3) && (!key3.type || key3.type === Scalar.Scalar.PLAIN) && merge4.identify(key3.value)) && ctx?.doc.schema.tags.some((tag) => tag.tag === merge4.tag && tag.default);
242194
+ var isMergeKey = (ctx, key2) => (merge4.identify(key2) || identity2.isScalar(key2) && (!key2.type || key2.type === Scalar.Scalar.PLAIN) && merge4.identify(key2.value)) && ctx?.doc.schema.tags.some((tag) => tag.tag === merge4.tag && tag.default);
242195
242195
  function addMergeToJSMap(ctx, map4, value5) {
242196
242196
  value5 = ctx && identity2.isAlias(value5) ? value5.resolve(ctx.doc) : value5;
242197
242197
  if (identity2.isSeq(value5))
@@ -242208,14 +242208,14 @@ var require_merge = __commonJS((exports) => {
242208
242208
  if (!identity2.isMap(source))
242209
242209
  throw new Error("Merge sources must be maps or map aliases");
242210
242210
  const srcMap = source.toJSON(null, ctx, Map);
242211
- for (const [key3, value6] of srcMap) {
242211
+ for (const [key2, value6] of srcMap) {
242212
242212
  if (map4 instanceof Map) {
242213
- if (!map4.has(key3))
242214
- map4.set(key3, value6);
242213
+ if (!map4.has(key2))
242214
+ map4.set(key2, value6);
242215
242215
  } else if (map4 instanceof Set) {
242216
- map4.add(key3);
242217
- } else if (!Object.prototype.hasOwnProperty.call(map4, key3)) {
242218
- Object.defineProperty(map4, key3, {
242216
+ map4.add(key2);
242217
+ } else if (!Object.prototype.hasOwnProperty.call(map4, key2)) {
242218
+ Object.defineProperty(map4, key2, {
242219
242219
  value: value6,
242220
242220
  writable: true,
242221
242221
  enumerable: true,
@@ -242237,19 +242237,19 @@ var require_addPairToJSMap = __commonJS((exports) => {
242237
242237
  var stringify5 = require_stringify();
242238
242238
  var identity2 = require_identity();
242239
242239
  var toJS = require_toJS();
242240
- function addPairToJSMap(ctx, map4, { key: key3, value: value5 }) {
242241
- if (identity2.isNode(key3) && key3.addToJSMap)
242242
- key3.addToJSMap(ctx, map4, value5);
242243
- else if (merge4.isMergeKey(ctx, key3))
242240
+ function addPairToJSMap(ctx, map4, { key: key2, value: value5 }) {
242241
+ if (identity2.isNode(key2) && key2.addToJSMap)
242242
+ key2.addToJSMap(ctx, map4, value5);
242243
+ else if (merge4.isMergeKey(ctx, key2))
242244
242244
  merge4.addMergeToJSMap(ctx, map4, value5);
242245
242245
  else {
242246
- const jsKey = toJS.toJS(key3, "", ctx);
242246
+ const jsKey = toJS.toJS(key2, "", ctx);
242247
242247
  if (map4 instanceof Map) {
242248
242248
  map4.set(jsKey, toJS.toJS(value5, jsKey, ctx));
242249
242249
  } else if (map4 instanceof Set) {
242250
242250
  map4.add(jsKey);
242251
242251
  } else {
242252
- const stringKey = stringifyKey(key3, jsKey, ctx);
242252
+ const stringKey = stringifyKey(key2, jsKey, ctx);
242253
242253
  const jsValue = toJS.toJS(value5, stringKey, ctx);
242254
242254
  if (stringKey in map4)
242255
242255
  Object.defineProperty(map4, stringKey, {
@@ -242264,19 +242264,19 @@ var require_addPairToJSMap = __commonJS((exports) => {
242264
242264
  }
242265
242265
  return map4;
242266
242266
  }
242267
- function stringifyKey(key3, jsKey, ctx) {
242267
+ function stringifyKey(key2, jsKey, ctx) {
242268
242268
  if (jsKey === null)
242269
242269
  return "";
242270
242270
  if (typeof jsKey !== "object")
242271
242271
  return String(jsKey);
242272
- if (identity2.isNode(key3) && ctx?.doc) {
242272
+ if (identity2.isNode(key2) && ctx?.doc) {
242273
242273
  const strCtx = stringify5.createStringifyContext(ctx.doc, {});
242274
242274
  strCtx.anchors = new Set;
242275
242275
  for (const node of ctx.anchors.keys())
242276
242276
  strCtx.anchors.add(node.anchor);
242277
242277
  strCtx.inFlow = true;
242278
242278
  strCtx.inStringifyKey = true;
242279
- const strKey = key3.toString(strCtx);
242279
+ const strKey = key2.toString(strCtx);
242280
242280
  if (!ctx.mapKeyWarned) {
242281
242281
  let jsonStr = JSON.stringify(strKey);
242282
242282
  if (jsonStr.length > 40)
@@ -242297,25 +242297,25 @@ var require_Pair = __commonJS((exports) => {
242297
242297
  var stringifyPair2 = require_stringifyPair();
242298
242298
  var addPairToJSMap = require_addPairToJSMap();
242299
242299
  var identity2 = require_identity();
242300
- function createPair(key3, value5, ctx) {
242301
- const k6 = createNode.createNode(key3, undefined, ctx);
242300
+ function createPair(key2, value5, ctx) {
242301
+ const k6 = createNode.createNode(key2, undefined, ctx);
242302
242302
  const v7 = createNode.createNode(value5, undefined, ctx);
242303
242303
  return new Pair(k6, v7);
242304
242304
  }
242305
242305
 
242306
242306
  class Pair {
242307
- constructor(key3, value5 = null) {
242307
+ constructor(key2, value5 = null) {
242308
242308
  Object.defineProperty(this, identity2.NODE_TYPE, { value: identity2.PAIR });
242309
- this.key = key3;
242309
+ this.key = key2;
242310
242310
  this.value = value5;
242311
242311
  }
242312
242312
  clone(schema) {
242313
- let { key: key3, value: value5 } = this;
242314
- if (identity2.isNode(key3))
242315
- key3 = key3.clone(schema);
242313
+ let { key: key2, value: value5 } = this;
242314
+ if (identity2.isNode(key2))
242315
+ key2 = key2.clone(schema);
242316
242316
  if (identity2.isNode(value5))
242317
242317
  value5 = value5.clone(schema);
242318
- return new Pair(key3, value5);
242318
+ return new Pair(key2, value5);
242319
242319
  }
242320
242320
  toJSON(_6, ctx) {
242321
242321
  const pair = ctx?.mapAsMap ? new Map : {};
@@ -242482,11 +242482,11 @@ var require_YAMLMap = __commonJS((exports) => {
242482
242482
  var identity2 = require_identity();
242483
242483
  var Pair = require_Pair();
242484
242484
  var Scalar = require_Scalar();
242485
- function findPair(items, key3) {
242486
- const k6 = identity2.isScalar(key3) ? key3.value : key3;
242485
+ function findPair(items, key2) {
242486
+ const k6 = identity2.isScalar(key2) ? key2.value : key2;
242487
242487
  for (const it2 of items) {
242488
242488
  if (identity2.isPair(it2)) {
242489
- if (it2.key === key3 || it2.key === k6)
242489
+ if (it2.key === key2 || it2.key === k6)
242490
242490
  return it2;
242491
242491
  if (identity2.isScalar(it2.key) && it2.key.value === k6)
242492
242492
  return it2;
@@ -242506,20 +242506,20 @@ var require_YAMLMap = __commonJS((exports) => {
242506
242506
  static from(schema, obj, ctx) {
242507
242507
  const { keepUndefined, replacer } = ctx;
242508
242508
  const map4 = new this(schema);
242509
- const add = (key3, value5) => {
242509
+ const add = (key2, value5) => {
242510
242510
  if (typeof replacer === "function")
242511
- value5 = replacer.call(obj, key3, value5);
242512
- else if (Array.isArray(replacer) && !replacer.includes(key3))
242511
+ value5 = replacer.call(obj, key2, value5);
242512
+ else if (Array.isArray(replacer) && !replacer.includes(key2))
242513
242513
  return;
242514
242514
  if (value5 !== undefined || keepUndefined)
242515
- map4.items.push(Pair.createPair(key3, value5, ctx));
242515
+ map4.items.push(Pair.createPair(key2, value5, ctx));
242516
242516
  };
242517
242517
  if (obj instanceof Map) {
242518
- for (const [key3, value5] of obj)
242519
- add(key3, value5);
242518
+ for (const [key2, value5] of obj)
242519
+ add(key2, value5);
242520
242520
  } else if (obj && typeof obj === "object") {
242521
- for (const key3 of Object.keys(obj))
242522
- add(key3, obj[key3]);
242521
+ for (const key2 of Object.keys(obj))
242522
+ add(key2, obj[key2]);
242523
242523
  }
242524
242524
  if (typeof schema.sortMapEntries === "function") {
242525
242525
  map4.items.sort(schema.sortMapEntries);
@@ -242553,23 +242553,23 @@ var require_YAMLMap = __commonJS((exports) => {
242553
242553
  this.items.push(_pair);
242554
242554
  }
242555
242555
  }
242556
- delete(key3) {
242557
- const it2 = findPair(this.items, key3);
242556
+ delete(key2) {
242557
+ const it2 = findPair(this.items, key2);
242558
242558
  if (!it2)
242559
242559
  return false;
242560
242560
  const del = this.items.splice(this.items.indexOf(it2), 1);
242561
242561
  return del.length > 0;
242562
242562
  }
242563
- get(key3, keepScalar) {
242564
- const it2 = findPair(this.items, key3);
242563
+ get(key2, keepScalar) {
242564
+ const it2 = findPair(this.items, key2);
242565
242565
  const node = it2?.value;
242566
242566
  return (!keepScalar && identity2.isScalar(node) ? node.value : node) ?? undefined;
242567
242567
  }
242568
- has(key3) {
242569
- return !!findPair(this.items, key3);
242568
+ has(key2) {
242569
+ return !!findPair(this.items, key2);
242570
242570
  }
242571
- set(key3, value5) {
242572
- this.add(new Pair.Pair(key3, value5), true);
242571
+ set(key2, value5) {
242572
+ this.add(new Pair.Pair(key2, value5), true);
242573
242573
  }
242574
242574
  toJSON(_6, ctx, Type) {
242575
242575
  const map4 = Type ? new Type : ctx?.mapAsMap ? new Map : {};
@@ -242640,28 +242640,28 @@ var require_YAMLSeq = __commonJS((exports) => {
242640
242640
  add(value5) {
242641
242641
  this.items.push(value5);
242642
242642
  }
242643
- delete(key3) {
242644
- const idx = asItemIndex(key3);
242643
+ delete(key2) {
242644
+ const idx = asItemIndex(key2);
242645
242645
  if (typeof idx !== "number")
242646
242646
  return false;
242647
242647
  const del = this.items.splice(idx, 1);
242648
242648
  return del.length > 0;
242649
242649
  }
242650
- get(key3, keepScalar) {
242651
- const idx = asItemIndex(key3);
242650
+ get(key2, keepScalar) {
242651
+ const idx = asItemIndex(key2);
242652
242652
  if (typeof idx !== "number")
242653
242653
  return;
242654
242654
  const it2 = this.items[idx];
242655
242655
  return !keepScalar && identity2.isScalar(it2) ? it2.value : it2;
242656
242656
  }
242657
- has(key3) {
242658
- const idx = asItemIndex(key3);
242657
+ has(key2) {
242658
+ const idx = asItemIndex(key2);
242659
242659
  return typeof idx === "number" && idx < this.items.length;
242660
242660
  }
242661
- set(key3, value5) {
242662
- const idx = asItemIndex(key3);
242661
+ set(key2, value5) {
242662
+ const idx = asItemIndex(key2);
242663
242663
  if (typeof idx !== "number")
242664
- throw new Error(`Expected a valid index, not ${key3}.`);
242664
+ throw new Error(`Expected a valid index, not ${key2}.`);
242665
242665
  const prev = this.items[idx];
242666
242666
  if (identity2.isScalar(prev) && Scalar.isScalarValue(value5))
242667
242667
  prev.value = value5;
@@ -242695,8 +242695,8 @@ var require_YAMLSeq = __commonJS((exports) => {
242695
242695
  let i8 = 0;
242696
242696
  for (let it2 of obj) {
242697
242697
  if (typeof replacer === "function") {
242698
- const key3 = obj instanceof Set ? it2 : String(i8++);
242699
- it2 = replacer.call(obj, key3, it2);
242698
+ const key2 = obj instanceof Set ? it2 : String(i8++);
242699
+ it2 = replacer.call(obj, key2, it2);
242700
242700
  }
242701
242701
  seq.items.push(createNode.createNode(it2, undefined, ctx));
242702
242702
  }
@@ -242704,8 +242704,8 @@ var require_YAMLSeq = __commonJS((exports) => {
242704
242704
  return seq;
242705
242705
  }
242706
242706
  }
242707
- function asItemIndex(key3) {
242708
- let idx = identity2.isScalar(key3) ? key3.value : key3;
242707
+ function asItemIndex(key2) {
242708
+ let idx = identity2.isScalar(key2) ? key2.value : key2;
242709
242709
  if (idx && typeof idx === "string")
242710
242710
  idx = Number(idx);
242711
242711
  return typeof idx === "number" && Number.isInteger(idx) && idx >= 0 ? idx : null;
@@ -243078,25 +243078,25 @@ ${cn.comment}` : item.comment;
243078
243078
  for (let it2 of iterable) {
243079
243079
  if (typeof replacer === "function")
243080
243080
  it2 = replacer.call(iterable, String(i8++), it2);
243081
- let key3, value5;
243081
+ let key2, value5;
243082
243082
  if (Array.isArray(it2)) {
243083
243083
  if (it2.length === 2) {
243084
- key3 = it2[0];
243084
+ key2 = it2[0];
243085
243085
  value5 = it2[1];
243086
243086
  } else
243087
243087
  throw new TypeError(`Expected [key, value] tuple: ${it2}`);
243088
243088
  } else if (it2 && it2 instanceof Object) {
243089
243089
  const keys = Object.keys(it2);
243090
243090
  if (keys.length === 1) {
243091
- key3 = keys[0];
243092
- value5 = it2[key3];
243091
+ key2 = keys[0];
243092
+ value5 = it2[key2];
243093
243093
  } else {
243094
243094
  throw new TypeError(`Expected tuple with one key, not ${keys.length} keys`);
243095
243095
  }
243096
243096
  } else {
243097
- key3 = it2;
243097
+ key2 = it2;
243098
243098
  }
243099
- pairs2.items.push(Pair.createPair(key3, value5, ctx));
243099
+ pairs2.items.push(Pair.createPair(key2, value5, ctx));
243100
243100
  }
243101
243101
  return pairs2;
243102
243102
  }
@@ -243137,16 +243137,16 @@ var require_omap = __commonJS((exports) => {
243137
243137
  if (ctx?.onCreate)
243138
243138
  ctx.onCreate(map4);
243139
243139
  for (const pair of this.items) {
243140
- let key3, value5;
243140
+ let key2, value5;
243141
243141
  if (identity2.isPair(pair)) {
243142
- key3 = toJS.toJS(pair.key, "", ctx);
243143
- value5 = toJS.toJS(pair.value, key3, ctx);
243142
+ key2 = toJS.toJS(pair.key, "", ctx);
243143
+ value5 = toJS.toJS(pair.value, key2, ctx);
243144
243144
  } else {
243145
- key3 = toJS.toJS(pair, "", ctx);
243145
+ key2 = toJS.toJS(pair, "", ctx);
243146
243146
  }
243147
- if (map4.has(key3))
243147
+ if (map4.has(key2))
243148
243148
  throw new Error("Ordered maps must not include duplicate keys");
243149
- map4.set(key3, value5);
243149
+ map4.set(key2, value5);
243150
243150
  }
243151
243151
  return map4;
243152
243152
  }
@@ -243167,12 +243167,12 @@ var require_omap = __commonJS((exports) => {
243167
243167
  resolve(seq, onError) {
243168
243168
  const pairs$1 = pairs.resolvePairs(seq, onError);
243169
243169
  const seenKeys = [];
243170
- for (const { key: key3 } of pairs$1.items) {
243171
- if (identity2.isScalar(key3)) {
243172
- if (seenKeys.includes(key3.value)) {
243173
- onError(`Ordered maps must not include duplicate keys: ${key3.value}`);
243170
+ for (const { key: key2 } of pairs$1.items) {
243171
+ if (identity2.isScalar(key2)) {
243172
+ if (seenKeys.includes(key2.value)) {
243173
+ onError(`Ordered maps must not include duplicate keys: ${key2.value}`);
243174
243174
  } else {
243175
- seenKeys.push(key3.value);
243175
+ seenKeys.push(key2.value);
243176
243176
  }
243177
243177
  }
243178
243178
  }
@@ -243346,30 +243346,30 @@ var require_set = __commonJS((exports) => {
243346
243346
  super(schema);
243347
243347
  this.tag = YAMLSet.tag;
243348
243348
  }
243349
- add(key3) {
243349
+ add(key2) {
243350
243350
  let pair;
243351
- if (identity2.isPair(key3))
243352
- pair = key3;
243353
- else if (key3 && typeof key3 === "object" && "key" in key3 && "value" in key3 && key3.value === null)
243354
- pair = new Pair.Pair(key3.key, null);
243351
+ if (identity2.isPair(key2))
243352
+ pair = key2;
243353
+ else if (key2 && typeof key2 === "object" && "key" in key2 && "value" in key2 && key2.value === null)
243354
+ pair = new Pair.Pair(key2.key, null);
243355
243355
  else
243356
- pair = new Pair.Pair(key3, null);
243356
+ pair = new Pair.Pair(key2, null);
243357
243357
  const prev = YAMLMap.findPair(this.items, pair.key);
243358
243358
  if (!prev)
243359
243359
  this.items.push(pair);
243360
243360
  }
243361
- get(key3, keepPair) {
243362
- const pair = YAMLMap.findPair(this.items, key3);
243361
+ get(key2, keepPair) {
243362
+ const pair = YAMLMap.findPair(this.items, key2);
243363
243363
  return !keepPair && identity2.isPair(pair) ? identity2.isScalar(pair.key) ? pair.key.value : pair.key : pair;
243364
243364
  }
243365
- set(key3, value5) {
243365
+ set(key2, value5) {
243366
243366
  if (typeof value5 !== "boolean")
243367
243367
  throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof value5}`);
243368
- const prev = YAMLMap.findPair(this.items, key3);
243368
+ const prev = YAMLMap.findPair(this.items, key2);
243369
243369
  if (prev && !value5) {
243370
243370
  this.items.splice(this.items.indexOf(prev), 1);
243371
243371
  } else if (!prev && value5) {
243372
- this.items.push(new Pair.Pair(key3));
243372
+ this.items.push(new Pair.Pair(key2));
243373
243373
  }
243374
243374
  }
243375
243375
  toJSON(_6, ctx) {
@@ -243604,7 +243604,7 @@ var require_tags = __commonJS((exports) => {
243604
243604
  if (Array.isArray(customTags))
243605
243605
  tags = [];
243606
243606
  else {
243607
- const keys = Array.from(schemas3.keys()).filter((key3) => key3 !== "yaml11").map((key3) => JSON.stringify(key3)).join(", ");
243607
+ const keys = Array.from(schemas3.keys()).filter((key2) => key2 !== "yaml11").map((key2) => JSON.stringify(key2)).join(", ");
243608
243608
  throw new Error(`Unknown schema "${schemaName}"; use one of ${keys} or define customTags array`);
243609
243609
  }
243610
243610
  }
@@ -243620,7 +243620,7 @@ var require_tags = __commonJS((exports) => {
243620
243620
  const tagObj = typeof tag === "string" ? tagsByName[tag] : tag;
243621
243621
  if (!tagObj) {
243622
243622
  const tagName = JSON.stringify(tag);
243623
- const keys = Object.keys(tagsByName).map((key3) => JSON.stringify(key3)).join(", ");
243623
+ const keys = Object.keys(tagsByName).map((key2) => JSON.stringify(key2)).join(", ");
243624
243624
  throw new Error(`Unknown custom tag ${tagName}; use one of ${keys}`);
243625
243625
  }
243626
243626
  if (!tags2.includes(tagObj))
@@ -243855,13 +243855,13 @@ var require_Document = __commonJS((exports) => {
243855
243855
  setAnchors();
243856
243856
  return node;
243857
243857
  }
243858
- createPair(key3, value5, options = {}) {
243859
- const k6 = this.createNode(key3, null, options);
243858
+ createPair(key2, value5, options = {}) {
243859
+ const k6 = this.createNode(key2, null, options);
243860
243860
  const v7 = this.createNode(value5, null, options);
243861
243861
  return new Pair.Pair(k6, v7);
243862
243862
  }
243863
- delete(key3) {
243864
- return assertCollection(this.contents) ? this.contents.delete(key3) : false;
243863
+ delete(key2) {
243864
+ return assertCollection(this.contents) ? this.contents.delete(key2) : false;
243865
243865
  }
243866
243866
  deleteIn(path5) {
243867
243867
  if (Collection.isEmptyPath(path5)) {
@@ -243872,27 +243872,27 @@ var require_Document = __commonJS((exports) => {
243872
243872
  }
243873
243873
  return assertCollection(this.contents) ? this.contents.deleteIn(path5) : false;
243874
243874
  }
243875
- get(key3, keepScalar) {
243876
- return identity2.isCollection(this.contents) ? this.contents.get(key3, keepScalar) : undefined;
243875
+ get(key2, keepScalar) {
243876
+ return identity2.isCollection(this.contents) ? this.contents.get(key2, keepScalar) : undefined;
243877
243877
  }
243878
243878
  getIn(path5, keepScalar) {
243879
243879
  if (Collection.isEmptyPath(path5))
243880
243880
  return !keepScalar && identity2.isScalar(this.contents) ? this.contents.value : this.contents;
243881
243881
  return identity2.isCollection(this.contents) ? this.contents.getIn(path5, keepScalar) : undefined;
243882
243882
  }
243883
- has(key3) {
243884
- return identity2.isCollection(this.contents) ? this.contents.has(key3) : false;
243883
+ has(key2) {
243884
+ return identity2.isCollection(this.contents) ? this.contents.has(key2) : false;
243885
243885
  }
243886
243886
  hasIn(path5) {
243887
243887
  if (Collection.isEmptyPath(path5))
243888
243888
  return this.contents !== undefined;
243889
243889
  return identity2.isCollection(this.contents) ? this.contents.hasIn(path5) : false;
243890
243890
  }
243891
- set(key3, value5) {
243891
+ set(key2, value5) {
243892
243892
  if (this.contents == null) {
243893
- this.contents = Collection.collectionFromPath(this.schema, [key3], value5);
243893
+ this.contents = Collection.collectionFromPath(this.schema, [key2], value5);
243894
243894
  } else if (assertCollection(this.contents)) {
243895
- this.contents.set(key3, value5);
243895
+ this.contents.set(key2, value5);
243896
243896
  }
243897
243897
  }
243898
243898
  setIn(path5, value5) {
@@ -244174,25 +244174,25 @@ var require_resolve_props = __commonJS((exports) => {
244174
244174
 
244175
244175
  // ../../node_modules/.bun/yaml@2.8.1/node_modules/yaml/dist/compose/util-contains-newline.js
244176
244176
  var require_util_contains_newline = __commonJS((exports) => {
244177
- function containsNewline(key3) {
244178
- if (!key3)
244177
+ function containsNewline(key2) {
244178
+ if (!key2)
244179
244179
  return null;
244180
- switch (key3.type) {
244180
+ switch (key2.type) {
244181
244181
  case "alias":
244182
244182
  case "scalar":
244183
244183
  case "double-quoted-scalar":
244184
244184
  case "single-quoted-scalar":
244185
- if (key3.source.includes(`
244185
+ if (key2.source.includes(`
244186
244186
  `))
244187
244187
  return true;
244188
- if (key3.end) {
244189
- for (const st2 of key3.end)
244188
+ if (key2.end) {
244189
+ for (const st2 of key2.end)
244190
244190
  if (st2.type === "newline")
244191
244191
  return true;
244192
244192
  }
244193
244193
  return false;
244194
244194
  case "flow-collection":
244195
- for (const it2 of key3.items) {
244195
+ for (const it2 of key2.items) {
244196
244196
  for (const st2 of it2.start)
244197
244197
  if (st2.type === "newline")
244198
244198
  return true;
@@ -244257,10 +244257,10 @@ var require_resolve_block_map = __commonJS((exports) => {
244257
244257
  let offset = bm.offset;
244258
244258
  let commentEnd = null;
244259
244259
  for (const collItem of bm.items) {
244260
- const { start: start3, key: key3, sep: sep4, value: value5 } = collItem;
244260
+ const { start: start3, key: key2, sep: sep4, value: value5 } = collItem;
244261
244261
  const keyProps = resolveProps.resolveProps(start3, {
244262
244262
  indicator: "explicit-key-ind",
244263
- next: key3 ?? sep4?.[0],
244263
+ next: key2 ?? sep4?.[0],
244264
244264
  offset,
244265
244265
  onError,
244266
244266
  parentIndent: bm.indent,
@@ -244268,10 +244268,10 @@ var require_resolve_block_map = __commonJS((exports) => {
244268
244268
  });
244269
244269
  const implicitKey = !keyProps.found;
244270
244270
  if (implicitKey) {
244271
- if (key3) {
244272
- if (key3.type === "block-seq")
244271
+ if (key2) {
244272
+ if (key2.type === "block-seq")
244273
244273
  onError(offset, "BLOCK_AS_IMPLICIT_KEY", "A block sequence may not be used as an implicit map key");
244274
- else if ("indent" in key3 && key3.indent !== bm.indent)
244274
+ else if ("indent" in key2 && key2.indent !== bm.indent)
244275
244275
  onError(offset, "BAD_INDENT", startColMsg);
244276
244276
  }
244277
244277
  if (!keyProps.anchor && !keyProps.tag && !sep4) {
@@ -244285,17 +244285,17 @@ var require_resolve_block_map = __commonJS((exports) => {
244285
244285
  }
244286
244286
  continue;
244287
244287
  }
244288
- if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(key3)) {
244289
- onError(key3 ?? start3[start3.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
244288
+ if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(key2)) {
244289
+ onError(key2 ?? start3[start3.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
244290
244290
  }
244291
244291
  } else if (keyProps.found?.indent !== bm.indent) {
244292
244292
  onError(offset, "BAD_INDENT", startColMsg);
244293
244293
  }
244294
244294
  ctx.atKey = true;
244295
244295
  const keyStart = keyProps.end;
244296
- const keyNode = key3 ? composeNode(ctx, key3, keyProps, onError) : composeEmptyNode(ctx, keyStart, start3, null, keyProps, onError);
244296
+ const keyNode = key2 ? composeNode(ctx, key2, keyProps, onError) : composeEmptyNode(ctx, keyStart, start3, null, keyProps, onError);
244297
244297
  if (ctx.schema.compat)
244298
- utilFlowIndentCheck.flowIndentCheck(bm.indent, key3, onError);
244298
+ utilFlowIndentCheck.flowIndentCheck(bm.indent, key2, onError);
244299
244299
  ctx.atKey = false;
244300
244300
  if (utilMapIncludes.mapIncludes(ctx, map4.items, keyNode))
244301
244301
  onError(keyStart, "DUPLICATE_KEY", "Map keys must be unique");
@@ -244305,7 +244305,7 @@ var require_resolve_block_map = __commonJS((exports) => {
244305
244305
  offset: keyNode.range[2],
244306
244306
  onError,
244307
244307
  parentIndent: bm.indent,
244308
- startOnNewline: !key3 || key3.type === "block-scalar"
244308
+ startOnNewline: !key2 || key2.type === "block-scalar"
244309
244309
  });
244310
244310
  offset = valueProps.end;
244311
244311
  if (valueProps.found) {
@@ -244461,11 +244461,11 @@ var require_resolve_flow_collection = __commonJS((exports) => {
244461
244461
  let offset = fc.offset + fc.start.source.length;
244462
244462
  for (let i8 = 0;i8 < fc.items.length; ++i8) {
244463
244463
  const collItem = fc.items[i8];
244464
- const { start: start3, key: key3, sep: sep4, value: value5 } = collItem;
244464
+ const { start: start3, key: key2, sep: sep4, value: value5 } = collItem;
244465
244465
  const props = resolveProps.resolveProps(start3, {
244466
244466
  flow: fcName,
244467
244467
  indicator: "explicit-key-ind",
244468
- next: key3 ?? sep4?.[0],
244468
+ next: key2 ?? sep4?.[0],
244469
244469
  offset,
244470
244470
  onError,
244471
244471
  parentIndent: fc.indent,
@@ -244487,8 +244487,8 @@ var require_resolve_flow_collection = __commonJS((exports) => {
244487
244487
  offset = props.end;
244488
244488
  continue;
244489
244489
  }
244490
- if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(key3))
244491
- onError(key3, "MULTILINE_IMPLICIT_KEY", "Implicit keys of flow sequence pairs need to be on a single line");
244490
+ if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(key2))
244491
+ onError(key2, "MULTILINE_IMPLICIT_KEY", "Implicit keys of flow sequence pairs need to be on a single line");
244492
244492
  }
244493
244493
  if (i8 === 0) {
244494
244494
  if (props.comma)
@@ -244533,8 +244533,8 @@ var require_resolve_flow_collection = __commonJS((exports) => {
244533
244533
  } else {
244534
244534
  ctx.atKey = true;
244535
244535
  const keyStart = props.end;
244536
- const keyNode = key3 ? composeNode(ctx, key3, props, onError) : composeEmptyNode(ctx, keyStart, start3, null, props, onError);
244537
- if (isBlock(key3))
244536
+ const keyNode = key2 ? composeNode(ctx, key2, props, onError) : composeEmptyNode(ctx, keyStart, start3, null, props, onError);
244537
+ if (isBlock(key2))
244538
244538
  onError(keyNode.range, "BLOCK_IN_FLOW", blockMsg);
244539
244539
  ctx.atKey = false;
244540
244540
  const valueProps = resolveProps.resolveProps(sep4 ?? [], {
@@ -245345,7 +245345,7 @@ var require_composer = __commonJS((exports) => {
245345
245345
  var node_process = __require("process");
245346
245346
  var directives5 = require_directives2();
245347
245347
  var Document = require_Document();
245348
- var errors5 = require_errors3();
245348
+ var errors4 = require_errors3();
245349
245349
  var identity2 = require_identity();
245350
245350
  var composeDoc = require_compose_doc();
245351
245351
  var resolveEnd = require_resolve_end();
@@ -245396,9 +245396,9 @@ var require_composer = __commonJS((exports) => {
245396
245396
  this.onError = (source, code2, message, warning) => {
245397
245397
  const pos = getErrorPos(source);
245398
245398
  if (warning)
245399
- this.warnings.push(new errors5.YAMLWarning(pos, code2, message));
245399
+ this.warnings.push(new errors4.YAMLWarning(pos, code2, message));
245400
245400
  else
245401
- this.errors.push(new errors5.YAMLParseError(pos, code2, message));
245401
+ this.errors.push(new errors4.YAMLParseError(pos, code2, message));
245402
245402
  };
245403
245403
  this.directives = new directives5.Directives({ version: options.version || "1.2" });
245404
245404
  this.options = options;
@@ -245482,7 +245482,7 @@ ${cb}` : comment;
245482
245482
  break;
245483
245483
  case "error": {
245484
245484
  const msg = token.source ? `${token.message}: ${JSON.stringify(token.source)}` : token.message;
245485
- const error48 = new errors5.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
245485
+ const error48 = new errors4.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
245486
245486
  if (this.atDirectives || !this.doc)
245487
245487
  this.errors.push(error48);
245488
245488
  else
@@ -245492,7 +245492,7 @@ ${cb}` : comment;
245492
245492
  case "doc-end": {
245493
245493
  if (!this.doc) {
245494
245494
  const msg = "Unexpected doc-end without preceding document";
245495
- this.errors.push(new errors5.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
245495
+ this.errors.push(new errors4.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
245496
245496
  break;
245497
245497
  }
245498
245498
  this.doc.directives.docEnd = true;
@@ -245507,7 +245507,7 @@ ${end.comment}` : end.comment;
245507
245507
  break;
245508
245508
  }
245509
245509
  default:
245510
- this.errors.push(new errors5.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
245510
+ this.errors.push(new errors4.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
245511
245511
  }
245512
245512
  }
245513
245513
  *end(forceDoc = false, endOffset = -1) {
@@ -245533,7 +245533,7 @@ ${end.comment}` : end.comment;
245533
245533
  var require_cst_scalar = __commonJS((exports) => {
245534
245534
  var resolveBlockScalar = require_resolve_block_scalar();
245535
245535
  var resolveFlowScalar = require_resolve_flow_scalar();
245536
- var errors5 = require_errors3();
245536
+ var errors4 = require_errors3();
245537
245537
  var stringifyString = require_stringifyString();
245538
245538
  function resolveAsScalar(token, strict = true, onError) {
245539
245539
  if (token) {
@@ -245542,7 +245542,7 @@ var require_cst_scalar = __commonJS((exports) => {
245542
245542
  if (onError)
245543
245543
  onError(offset, code2, message);
245544
245544
  else
245545
- throw new errors5.YAMLParseError([offset, offset + 1], code2, message);
245545
+ throw new errors4.YAMLParseError([offset, offset + 1], code2, message);
245546
245546
  };
245547
245547
  switch (token.type) {
245548
245548
  case "scalar":
@@ -245656,9 +245656,9 @@ var require_cst_scalar = __commonJS((exports) => {
245656
245656
  if (!addEndtoBlockProps(props, "end" in token ? token.end : undefined))
245657
245657
  props.push({ type: "newline", offset: -1, indent: indent2, source: `
245658
245658
  ` });
245659
- for (const key3 of Object.keys(token))
245660
- if (key3 !== "type" && key3 !== "offset")
245661
- delete token[key3];
245659
+ for (const key2 of Object.keys(token))
245660
+ if (key2 !== "type" && key2 !== "offset")
245661
+ delete token[key2];
245662
245662
  Object.assign(token, { type: "block-scalar", indent: indent2, props, source: body });
245663
245663
  }
245664
245664
  }
@@ -245707,9 +245707,9 @@ var require_cst_scalar = __commonJS((exports) => {
245707
245707
  default: {
245708
245708
  const indent2 = "indent" in token ? token.indent : -1;
245709
245709
  const end = "end" in token && Array.isArray(token.end) ? token.end.filter((st2) => st2.type === "space" || st2.type === "comment" || st2.type === "newline") : [];
245710
- for (const key3 of Object.keys(token))
245711
- if (key3 !== "type" && key3 !== "offset")
245712
- delete token[key3];
245710
+ for (const key2 of Object.keys(token))
245711
+ if (key2 !== "type" && key2 !== "offset")
245712
+ delete token[key2];
245713
245713
  Object.assign(token, { type: type5, indent: indent2, source, end });
245714
245714
  }
245715
245715
  }
@@ -245761,12 +245761,12 @@ var require_cst_stringify = __commonJS((exports) => {
245761
245761
  }
245762
245762
  }
245763
245763
  }
245764
- function stringifyItem({ start: start3, key: key3, sep: sep4, value: value5 }) {
245764
+ function stringifyItem({ start: start3, key: key2, sep: sep4, value: value5 }) {
245765
245765
  let res = "";
245766
245766
  for (const st2 of start3)
245767
245767
  res += st2.source;
245768
- if (key3)
245769
- res += stringifyToken(key3);
245768
+ if (key2)
245769
+ res += stringifyToken(key2);
245770
245770
  if (sep4)
245771
245771
  for (const st2 of sep4)
245772
245772
  res += st2.source;
@@ -247062,7 +247062,7 @@ var require_parser2 = __commonJS((exports) => {
247062
247062
  });
247063
247063
  } else if (isFlowToken(it2.key) && !includesToken(it2.sep, "newline")) {
247064
247064
  const start4 = getFirstKeyStartProps(it2.start);
247065
- const key3 = it2.key;
247065
+ const key2 = it2.key;
247066
247066
  const sep4 = it2.sep;
247067
247067
  sep4.push(this.sourceToken);
247068
247068
  delete it2.key;
@@ -247071,7 +247071,7 @@ var require_parser2 = __commonJS((exports) => {
247071
247071
  type: "block-map",
247072
247072
  offset: this.offset,
247073
247073
  indent: this.indent,
247074
- items: [{ start: start4, key: key3, sep: sep4 }]
247074
+ items: [{ start: start4, key: key2, sep: sep4 }]
247075
247075
  });
247076
247076
  } else if (start3.length > 0) {
247077
247077
  it2.sep = it2.sep.concat(start3, this.sourceToken);
@@ -247404,7 +247404,7 @@ var require_parser2 = __commonJS((exports) => {
247404
247404
  var require_public_api = __commonJS((exports) => {
247405
247405
  var composer = require_composer();
247406
247406
  var Document = require_Document();
247407
- var errors5 = require_errors3();
247407
+ var errors4 = require_errors3();
247408
247408
  var log = require_log();
247409
247409
  var identity2 = require_identity();
247410
247410
  var lineCounter = require_line_counter();
@@ -247421,8 +247421,8 @@ var require_public_api = __commonJS((exports) => {
247421
247421
  const docs = Array.from(composer$1.compose(parser$1.parse(source)));
247422
247422
  if (prettyErrors && lineCounter2)
247423
247423
  for (const doc2 of docs) {
247424
- doc2.errors.forEach(errors5.prettifyError(source, lineCounter2));
247425
- doc2.warnings.forEach(errors5.prettifyError(source, lineCounter2));
247424
+ doc2.errors.forEach(errors4.prettifyError(source, lineCounter2));
247425
+ doc2.warnings.forEach(errors4.prettifyError(source, lineCounter2));
247426
247426
  }
247427
247427
  if (docs.length > 0)
247428
247428
  return docs;
@@ -247437,13 +247437,13 @@ var require_public_api = __commonJS((exports) => {
247437
247437
  if (!doc2)
247438
247438
  doc2 = _doc;
247439
247439
  else if (doc2.options.logLevel !== "silent") {
247440
- doc2.errors.push(new errors5.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
247440
+ doc2.errors.push(new errors4.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
247441
247441
  break;
247442
247442
  }
247443
247443
  }
247444
247444
  if (prettyErrors && lineCounter2) {
247445
- doc2.errors.forEach(errors5.prettifyError(source, lineCounter2));
247446
- doc2.warnings.forEach(errors5.prettifyError(source, lineCounter2));
247445
+ doc2.errors.forEach(errors4.prettifyError(source, lineCounter2));
247446
+ doc2.warnings.forEach(errors4.prettifyError(source, lineCounter2));
247447
247447
  }
247448
247448
  return doc2;
247449
247449
  }
@@ -267215,7 +267215,7 @@ function pruneCurrentEnv(currentEnv, env2) {
267215
267215
  var package_default = {
267216
267216
  name: "@settlemint/sdk-cli",
267217
267217
  description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
267218
- version: "2.6.2-mainec3ebb39",
267218
+ version: "2.6.2-pr113a2d5d",
267219
267219
  type: "module",
267220
267220
  private: false,
267221
267221
  license: "FSL-1.1-MIT",
@@ -267265,14 +267265,14 @@ var package_default = {
267265
267265
  devDependencies: {
267266
267266
  "@commander-js/extra-typings": "14.0.0",
267267
267267
  commander: "14.0.1",
267268
- "@inquirer/confirm": "5.1.17",
267268
+ "@inquirer/confirm": "5.1.16",
267269
267269
  "@inquirer/input": "4.2.2",
267270
267270
  "@inquirer/password": "4.0.18",
267271
267271
  "@inquirer/select": "4.3.2",
267272
- "@settlemint/sdk-hasura": "2.6.2-mainec3ebb39",
267273
- "@settlemint/sdk-js": "2.6.2-mainec3ebb39",
267274
- "@settlemint/sdk-utils": "2.6.2-mainec3ebb39",
267275
- "@settlemint/sdk-viem": "2.6.2-mainec3ebb39",
267272
+ "@settlemint/sdk-hasura": "2.6.2-pr113a2d5d",
267273
+ "@settlemint/sdk-js": "2.6.2-pr113a2d5d",
267274
+ "@settlemint/sdk-utils": "2.6.2-pr113a2d5d",
267275
+ "@settlemint/sdk-viem": "2.6.2-pr113a2d5d",
267276
267276
  "@types/node": "24.4.0",
267277
267277
  "@types/semver": "7.7.1",
267278
267278
  "@types/which": "3.0.4",
@@ -267289,7 +267289,7 @@ var package_default = {
267289
267289
  },
267290
267290
  peerDependencies: {
267291
267291
  hardhat: "<= 4",
267292
- "@settlemint/sdk-js": "2.6.2-mainec3ebb39"
267292
+ "@settlemint/sdk-js": "2.6.2-pr113a2d5d"
267293
267293
  },
267294
267294
  peerDependenciesMeta: {
267295
267295
  hardhat: {
@@ -298936,464 +298936,7 @@ function extractInfoFromBody(body) {
298936
298936
  }
298937
298937
  }
298938
298938
 
298939
- // ../../node_modules/.bun/@inquirer+core@10.2.1+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/key.js
298940
- var isTabKey2 = (key2) => key2.name === "tab";
298941
- var isEnterKey2 = (key2) => key2.name === "enter" || key2.name === "return";
298942
- // ../../node_modules/.bun/@inquirer+core@10.2.1+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/errors.js
298943
- class AbortPromptError2 extends Error {
298944
- name = "AbortPromptError";
298945
- message = "Prompt was aborted";
298946
- constructor(options) {
298947
- super();
298948
- this.cause = options?.cause;
298949
- }
298950
- }
298951
-
298952
- class CancelPromptError2 extends Error {
298953
- name = "CancelPromptError";
298954
- message = "Prompt was canceled";
298955
- }
298956
-
298957
- class ExitPromptError2 extends Error {
298958
- name = "ExitPromptError";
298959
- }
298960
-
298961
- class HookError2 extends Error {
298962
- name = "HookError";
298963
- }
298964
-
298965
- class ValidationError2 extends Error {
298966
- name = "ValidationError";
298967
- }
298968
- // ../../node_modules/.bun/@inquirer+core@10.2.1+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-state.js
298969
- import { AsyncResource as AsyncResource5 } from "node:async_hooks";
298970
-
298971
- // ../../node_modules/.bun/@inquirer+core@10.2.1+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
298972
- import { AsyncLocalStorage as AsyncLocalStorage2, AsyncResource as AsyncResource4 } from "node:async_hooks";
298973
- var hookStorage2 = new AsyncLocalStorage2;
298974
- function createStore2(rl) {
298975
- const store = {
298976
- rl,
298977
- hooks: [],
298978
- hooksCleanup: [],
298979
- hooksEffect: [],
298980
- index: 0,
298981
- handleChange() {}
298982
- };
298983
- return store;
298984
- }
298985
- function withHooks2(rl, cb) {
298986
- const store = createStore2(rl);
298987
- return hookStorage2.run(store, () => {
298988
- function cycle(render) {
298989
- store.handleChange = () => {
298990
- store.index = 0;
298991
- render();
298992
- };
298993
- store.handleChange();
298994
- }
298995
- return cb(cycle);
298996
- });
298997
- }
298998
- function getStore2() {
298999
- const store = hookStorage2.getStore();
299000
- if (!store) {
299001
- throw new HookError2("[Inquirer] Hook functions can only be called from within a prompt");
299002
- }
299003
- return store;
299004
- }
299005
- function readline3() {
299006
- return getStore2().rl;
299007
- }
299008
- function withUpdates2(fn) {
299009
- const wrapped = (...args) => {
299010
- const store = getStore2();
299011
- let shouldUpdate = false;
299012
- const oldHandleChange = store.handleChange;
299013
- store.handleChange = () => {
299014
- shouldUpdate = true;
299015
- };
299016
- const returnValue = fn(...args);
299017
- if (shouldUpdate) {
299018
- oldHandleChange();
299019
- }
299020
- store.handleChange = oldHandleChange;
299021
- return returnValue;
299022
- };
299023
- return AsyncResource4.bind(wrapped);
299024
- }
299025
- function withPointer2(cb) {
299026
- const store = getStore2();
299027
- const { index: index2 } = store;
299028
- const pointer = {
299029
- get() {
299030
- return store.hooks[index2];
299031
- },
299032
- set(value5) {
299033
- store.hooks[index2] = value5;
299034
- },
299035
- initialized: index2 in store.hooks
299036
- };
299037
- const returnValue = cb(pointer);
299038
- store.index++;
299039
- return returnValue;
299040
- }
299041
- function handleChange2() {
299042
- getStore2().handleChange();
299043
- }
299044
- var effectScheduler2 = {
299045
- queue(cb) {
299046
- const store = getStore2();
299047
- const { index: index2 } = store;
299048
- store.hooksEffect.push(() => {
299049
- store.hooksCleanup[index2]?.();
299050
- const cleanFn = cb(readline3());
299051
- if (cleanFn != null && typeof cleanFn !== "function") {
299052
- throw new ValidationError2("useEffect return value must be a cleanup function or nothing.");
299053
- }
299054
- store.hooksCleanup[index2] = cleanFn;
299055
- });
299056
- },
299057
- run() {
299058
- const store = getStore2();
299059
- withUpdates2(() => {
299060
- store.hooksEffect.forEach((effect) => {
299061
- effect();
299062
- });
299063
- store.hooksEffect.length = 0;
299064
- })();
299065
- },
299066
- clearAll() {
299067
- const store = getStore2();
299068
- store.hooksCleanup.forEach((cleanFn) => {
299069
- cleanFn?.();
299070
- });
299071
- store.hooksEffect.length = 0;
299072
- store.hooksCleanup.length = 0;
299073
- }
299074
- };
299075
-
299076
- // ../../node_modules/.bun/@inquirer+core@10.2.1+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-state.js
299077
- function useState2(defaultValue) {
299078
- return withPointer2((pointer) => {
299079
- const setState = AsyncResource5.bind(function setState(newValue) {
299080
- if (pointer.get() !== newValue) {
299081
- pointer.set(newValue);
299082
- handleChange2();
299083
- }
299084
- });
299085
- if (pointer.initialized) {
299086
- return [pointer.get(), setState];
299087
- }
299088
- const value5 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
299089
- pointer.set(value5);
299090
- return [value5, setState];
299091
- });
299092
- }
299093
-
299094
- // ../../node_modules/.bun/@inquirer+core@10.2.1+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
299095
- function useEffect2(cb, depArray) {
299096
- withPointer2((pointer) => {
299097
- const oldDeps = pointer.get();
299098
- const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i7) => !Object.is(dep, oldDeps[i7]));
299099
- if (hasChanged) {
299100
- effectScheduler2.queue(cb);
299101
- }
299102
- pointer.set(depArray);
299103
- });
299104
- }
299105
-
299106
- // ../../node_modules/.bun/@inquirer+core@10.2.1+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/theme.js
299107
- var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
299108
- var defaultTheme2 = {
299109
- prefix: {
299110
- idle: import_yoctocolors_cjs4.default.blue("?"),
299111
- done: import_yoctocolors_cjs4.default.green(esm_default.tick)
299112
- },
299113
- spinner: {
299114
- interval: 80,
299115
- frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs4.default.yellow(frame))
299116
- },
299117
- style: {
299118
- answer: import_yoctocolors_cjs4.default.cyan,
299119
- message: import_yoctocolors_cjs4.default.bold,
299120
- error: (text2) => import_yoctocolors_cjs4.default.red(`> ${text2}`),
299121
- defaultAnswer: (text2) => import_yoctocolors_cjs4.default.dim(`(${text2})`),
299122
- help: import_yoctocolors_cjs4.default.dim,
299123
- highlight: import_yoctocolors_cjs4.default.cyan,
299124
- key: (text2) => import_yoctocolors_cjs4.default.cyan(import_yoctocolors_cjs4.default.bold(`<${text2}>`))
299125
- }
299126
- };
299127
-
299128
- // ../../node_modules/.bun/@inquirer+core@10.2.1+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
299129
- function isPlainObject4(value5) {
299130
- if (typeof value5 !== "object" || value5 === null)
299131
- return false;
299132
- let proto = value5;
299133
- while (Object.getPrototypeOf(proto) !== null) {
299134
- proto = Object.getPrototypeOf(proto);
299135
- }
299136
- return Object.getPrototypeOf(value5) === proto;
299137
- }
299138
- function deepMerge3(...objects) {
299139
- const output = {};
299140
- for (const obj of objects) {
299141
- for (const [key2, value5] of Object.entries(obj)) {
299142
- const prevValue = output[key2];
299143
- output[key2] = isPlainObject4(prevValue) && isPlainObject4(value5) ? deepMerge3(prevValue, value5) : value5;
299144
- }
299145
- }
299146
- return output;
299147
- }
299148
- function makeTheme2(...themes) {
299149
- const themesToMerge = [
299150
- defaultTheme2,
299151
- ...themes.filter((theme) => theme != null)
299152
- ];
299153
- return deepMerge3(...themesToMerge);
299154
- }
299155
-
299156
- // ../../node_modules/.bun/@inquirer+core@10.2.1+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
299157
- function usePrefix2({ status = "idle", theme }) {
299158
- const [showLoader, setShowLoader] = useState2(false);
299159
- const [tick, setTick] = useState2(0);
299160
- const { prefix, spinner: spinner2 } = makeTheme2(theme);
299161
- useEffect2(() => {
299162
- if (status === "loading") {
299163
- let tickInterval;
299164
- let inc = -1;
299165
- const delayTimeout = setTimeout(() => {
299166
- setShowLoader(true);
299167
- tickInterval = setInterval(() => {
299168
- inc = inc + 1;
299169
- setTick(inc % spinner2.frames.length);
299170
- }, spinner2.interval);
299171
- }, 300);
299172
- return () => {
299173
- clearTimeout(delayTimeout);
299174
- clearInterval(tickInterval);
299175
- };
299176
- } else {
299177
- setShowLoader(false);
299178
- }
299179
- }, [status]);
299180
- if (showLoader) {
299181
- return spinner2.frames[tick];
299182
- }
299183
- const iconName = status === "loading" ? "idle" : status;
299184
- return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
299185
- }
299186
- // ../../node_modules/.bun/@inquirer+core@10.2.1+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
299187
- function useRef2(val) {
299188
- return useState2({ current: val })[0];
299189
- }
299190
-
299191
- // ../../node_modules/.bun/@inquirer+core@10.2.1+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
299192
- function useKeypress2(userHandler) {
299193
- const signal = useRef2(userHandler);
299194
- signal.current = userHandler;
299195
- useEffect2((rl) => {
299196
- let ignore = false;
299197
- const handler = withUpdates2((_input, event) => {
299198
- if (ignore)
299199
- return;
299200
- signal.current(event, rl);
299201
- });
299202
- rl.input.on("keypress", handler);
299203
- return () => {
299204
- ignore = true;
299205
- rl.input.removeListener("keypress", handler);
299206
- };
299207
- }, []);
299208
- }
299209
- // ../../node_modules/.bun/@inquirer+core@10.2.1+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/utils.js
299210
- var import_cli_width2 = __toESM(require_cli_width(), 1);
299211
- var import_wrap_ansi2 = __toESM(require_wrap_ansi(), 1);
299212
- function breakLines2(content, width) {
299213
- return content.split(`
299214
- `).flatMap((line) => import_wrap_ansi2.default(line, width, { trim: false, hard: true }).split(`
299215
- `).map((str) => str.trimEnd())).join(`
299216
- `);
299217
- }
299218
- function readlineWidth2() {
299219
- return import_cli_width2.default({ defaultWidth: 80, output: readline3().output });
299220
- }
299221
-
299222
- // ../../node_modules/.bun/@inquirer+core@10.2.1+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
299223
- var import_mute_stream2 = __toESM(require_lib(), 1);
299224
- import * as readline4 from "node:readline";
299225
- import { AsyncResource as AsyncResource6 } from "node:async_hooks";
299226
-
299227
- // ../../node_modules/.bun/@inquirer+core@10.2.1+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
299228
- var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
299229
- import { stripVTControlCharacters as stripVTControlCharacters3 } from "node:util";
299230
- var height2 = (content) => content.split(`
299231
- `).length;
299232
- var lastLine2 = (content) => content.split(`
299233
- `).pop() ?? "";
299234
- function cursorDown2(n7) {
299235
- return n7 > 0 ? import_ansi_escapes3.default.cursorDown(n7) : "";
299236
- }
299237
-
299238
- class ScreenManager2 {
299239
- height = 0;
299240
- extraLinesUnderPrompt = 0;
299241
- cursorPos;
299242
- rl;
299243
- constructor(rl) {
299244
- this.rl = rl;
299245
- this.cursorPos = rl.getCursorPos();
299246
- }
299247
- write(content) {
299248
- this.rl.output.unmute();
299249
- this.rl.output.write(content);
299250
- this.rl.output.mute();
299251
- }
299252
- render(content, bottomContent = "") {
299253
- const promptLine = lastLine2(content);
299254
- const rawPromptLine = stripVTControlCharacters3(promptLine);
299255
- let prompt = rawPromptLine;
299256
- if (this.rl.line.length > 0) {
299257
- prompt = prompt.slice(0, -this.rl.line.length);
299258
- }
299259
- this.rl.setPrompt(prompt);
299260
- this.cursorPos = this.rl.getCursorPos();
299261
- const width = readlineWidth2();
299262
- content = breakLines2(content, width);
299263
- bottomContent = breakLines2(bottomContent, width);
299264
- if (rawPromptLine.length % width === 0) {
299265
- content += `
299266
- `;
299267
- }
299268
- let output = content + (bottomContent ? `
299269
- ` + bottomContent : "");
299270
- const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
299271
- const bottomContentHeight = promptLineUpDiff + (bottomContent ? height2(bottomContent) : 0);
299272
- if (bottomContentHeight > 0)
299273
- output += import_ansi_escapes3.default.cursorUp(bottomContentHeight);
299274
- output += import_ansi_escapes3.default.cursorTo(this.cursorPos.cols);
299275
- this.write(cursorDown2(this.extraLinesUnderPrompt) + import_ansi_escapes3.default.eraseLines(this.height) + output);
299276
- this.extraLinesUnderPrompt = bottomContentHeight;
299277
- this.height = height2(output);
299278
- }
299279
- checkCursorPos() {
299280
- const cursorPos = this.rl.getCursorPos();
299281
- if (cursorPos.cols !== this.cursorPos.cols) {
299282
- this.write(import_ansi_escapes3.default.cursorTo(cursorPos.cols));
299283
- this.cursorPos = cursorPos;
299284
- }
299285
- }
299286
- done({ clearContent }) {
299287
- this.rl.setPrompt("");
299288
- let output = cursorDown2(this.extraLinesUnderPrompt);
299289
- output += clearContent ? import_ansi_escapes3.default.eraseLines(this.height) : `
299290
- `;
299291
- output += import_ansi_escapes3.default.cursorShow;
299292
- this.write(output);
299293
- this.rl.close();
299294
- }
299295
- }
299296
-
299297
- // ../../node_modules/.bun/@inquirer+core@10.2.1+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
299298
- class PromisePolyfill2 extends Promise {
299299
- static withResolver() {
299300
- let resolve7;
299301
- let reject;
299302
- const promise2 = new Promise((res, rej) => {
299303
- resolve7 = res;
299304
- reject = rej;
299305
- });
299306
- return { promise: promise2, resolve: resolve7, reject };
299307
- }
299308
- }
299309
-
299310
- // ../../node_modules/.bun/@inquirer+core@10.2.1+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
299311
- function getCallSites2() {
299312
- const _prepareStackTrace = Error.prepareStackTrace;
299313
- let result = [];
299314
- try {
299315
- Error.prepareStackTrace = (_5, callSites) => {
299316
- const callSitesWithoutCurrent = callSites.slice(1);
299317
- result = callSitesWithoutCurrent;
299318
- return callSitesWithoutCurrent;
299319
- };
299320
- new Error().stack;
299321
- } catch {
299322
- return result;
299323
- }
299324
- Error.prepareStackTrace = _prepareStackTrace;
299325
- return result;
299326
- }
299327
- function createPrompt2(view) {
299328
- const callSites = getCallSites2();
299329
- const prompt = (config3, context = {}) => {
299330
- const { input = process.stdin, signal } = context;
299331
- const cleanups = new Set;
299332
- const output = new import_mute_stream2.default;
299333
- output.pipe(context.output ?? process.stdout);
299334
- const rl = readline4.createInterface({
299335
- terminal: true,
299336
- input,
299337
- output
299338
- });
299339
- const screen = new ScreenManager2(rl);
299340
- const { promise: promise2, resolve: resolve7, reject } = PromisePolyfill2.withResolver();
299341
- const cancel3 = () => reject(new CancelPromptError2);
299342
- if (signal) {
299343
- const abort = () => reject(new AbortPromptError2({ cause: signal.reason }));
299344
- if (signal.aborted) {
299345
- abort();
299346
- return Object.assign(promise2, { cancel: cancel3 });
299347
- }
299348
- signal.addEventListener("abort", abort);
299349
- cleanups.add(() => signal.removeEventListener("abort", abort));
299350
- }
299351
- cleanups.add(onExit((code2, signal2) => {
299352
- reject(new ExitPromptError2(`User force closed the prompt with ${code2} ${signal2}`));
299353
- }));
299354
- const sigint = () => reject(new ExitPromptError2(`User force closed the prompt with SIGINT`));
299355
- rl.on("SIGINT", sigint);
299356
- cleanups.add(() => rl.removeListener("SIGINT", sigint));
299357
- const checkCursorPos = () => screen.checkCursorPos();
299358
- rl.input.on("keypress", checkCursorPos);
299359
- cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
299360
- return withHooks2(rl, (cycle) => {
299361
- const hooksCleanup = AsyncResource6.bind(() => effectScheduler2.clearAll());
299362
- rl.on("close", hooksCleanup);
299363
- cleanups.add(() => rl.removeListener("close", hooksCleanup));
299364
- cycle(() => {
299365
- try {
299366
- const nextView = view(config3, (value5) => {
299367
- setImmediate(() => resolve7(value5));
299368
- });
299369
- if (nextView === undefined) {
299370
- const callerFilename = callSites[1]?.getFileName();
299371
- throw new Error(`Prompt functions must return a string.
299372
- at ${callerFilename}`);
299373
- }
299374
- const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
299375
- screen.render(content, bottomContent);
299376
- effectScheduler2.run();
299377
- } catch (error48) {
299378
- reject(error48);
299379
- }
299380
- });
299381
- return Object.assign(promise2.then((answer) => {
299382
- effectScheduler2.clearAll();
299383
- return answer;
299384
- }, (error48) => {
299385
- effectScheduler2.clearAll();
299386
- throw error48;
299387
- }).finally(() => {
299388
- cleanups.forEach((cleanup) => cleanup());
299389
- screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
299390
- output.end();
299391
- }).then(() => promise2), { cancel: cancel3 });
299392
- });
299393
- };
299394
- return prompt;
299395
- }
299396
- // ../../node_modules/.bun/@inquirer+confirm@5.1.17+e9dc26b4af2fda18/node_modules/@inquirer/confirm/dist/esm/index.js
298939
+ // ../../node_modules/.bun/@inquirer+confirm@5.1.16+e9dc26b4af2fda18/node_modules/@inquirer/confirm/dist/esm/index.js
299397
298940
  function getBooleanValue(value5, defaultValue) {
299398
298941
  let answer = defaultValue !== false;
299399
298942
  if (/^(y|yes)/i.test(value5))
@@ -299405,21 +298948,21 @@ function getBooleanValue(value5, defaultValue) {
299405
298948
  function boolToString(value5) {
299406
298949
  return value5 ? "Yes" : "No";
299407
298950
  }
299408
- var esm_default4 = createPrompt2((config3, done) => {
298951
+ var esm_default4 = createPrompt((config3, done) => {
299409
298952
  const { transformer = boolToString } = config3;
299410
- const [status, setStatus] = useState2("idle");
299411
- const [value5, setValue] = useState2("");
299412
- const theme = makeTheme2(config3.theme);
299413
- const prefix = usePrefix2({ status, theme });
299414
- useKeypress2((key3, rl) => {
298953
+ const [status, setStatus] = useState("idle");
298954
+ const [value5, setValue] = useState("");
298955
+ const theme = makeTheme(config3.theme);
298956
+ const prefix = usePrefix({ status, theme });
298957
+ useKeypress((key2, rl) => {
299415
298958
  if (status !== "idle")
299416
298959
  return;
299417
- if (isEnterKey2(key3)) {
298960
+ if (isEnterKey(key2)) {
299418
298961
  const answer = getBooleanValue(value5, config3.default);
299419
298962
  setValue(transformer(answer));
299420
298963
  setStatus("done");
299421
298964
  done(answer);
299422
- } else if (isTabKey2(key3)) {
298965
+ } else if (isTabKey(key2)) {
299423
298966
  const answer = boolToString(!getBooleanValue(value5, config3.default));
299424
298967
  rl.clearLine(0);
299425
298968
  rl.write(answer);
@@ -299440,7 +298983,7 @@ var esm_default4 = createPrompt2((config3, done) => {
299440
298983
  });
299441
298984
 
299442
298985
  // ../../node_modules/.bun/@inquirer+password@4.0.18+e9dc26b4af2fda18/node_modules/@inquirer/password/dist/esm/index.js
299443
- var import_ansi_escapes4 = __toESM(require_ansi_escapes(), 1);
298986
+ var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
299444
298987
  var esm_default5 = createPrompt((config3, done) => {
299445
298988
  const { validate: validate8 = () => true } = config3;
299446
298989
  const theme = makeTheme(config3.theme);
@@ -299448,11 +298991,11 @@ var esm_default5 = createPrompt((config3, done) => {
299448
298991
  const [errorMsg, setError] = useState();
299449
298992
  const [value5, setValue] = useState("");
299450
298993
  const prefix = usePrefix({ status, theme });
299451
- useKeypress(async (key3, rl) => {
298994
+ useKeypress(async (key2, rl) => {
299452
298995
  if (status !== "idle") {
299453
298996
  return;
299454
298997
  }
299455
- if (isEnterKey(key3)) {
298998
+ if (isEnterKey(key2)) {
299456
298999
  const answer = value5;
299457
299000
  setStatus("loading");
299458
299001
  const isValid = await validate8(answer);
@@ -299477,7 +299020,7 @@ var esm_default5 = createPrompt((config3, done) => {
299477
299020
  const maskChar = typeof config3.mask === "string" ? config3.mask : "*";
299478
299021
  formattedValue = maskChar.repeat(value5.length);
299479
299022
  } else if (status !== "done") {
299480
- helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes4.default.cursorHide}`;
299023
+ helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes3.default.cursorHide}`;
299481
299024
  }
299482
299025
  if (status === "done") {
299483
299026
  formattedValue = theme.style.answer(formattedValue);
@@ -301155,7 +300698,7 @@ var basename2 = function(p5, extension) {
301155
300698
  return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
301156
300699
  };
301157
300700
  // ../../node_modules/.bun/defu@6.1.4/node_modules/defu/dist/defu.mjs
301158
- function isPlainObject5(value5) {
300701
+ function isPlainObject4(value5) {
301159
300702
  if (value5 === null || typeof value5 !== "object") {
301160
300703
  return false;
301161
300704
  }
@@ -301172,27 +300715,27 @@ function isPlainObject5(value5) {
301172
300715
  return true;
301173
300716
  }
301174
300717
  function _defu(baseObject, defaults2, namespace = ".", merger) {
301175
- if (!isPlainObject5(defaults2)) {
300718
+ if (!isPlainObject4(defaults2)) {
301176
300719
  return _defu(baseObject, {}, namespace, merger);
301177
300720
  }
301178
300721
  const object2 = Object.assign({}, defaults2);
301179
- for (const key3 in baseObject) {
301180
- if (key3 === "__proto__" || key3 === "constructor") {
300722
+ for (const key2 in baseObject) {
300723
+ if (key2 === "__proto__" || key2 === "constructor") {
301181
300724
  continue;
301182
300725
  }
301183
- const value5 = baseObject[key3];
300726
+ const value5 = baseObject[key2];
301184
300727
  if (value5 === null || value5 === undefined) {
301185
300728
  continue;
301186
300729
  }
301187
- if (merger && merger(object2, key3, value5, namespace)) {
300730
+ if (merger && merger(object2, key2, value5, namespace)) {
301188
300731
  continue;
301189
300732
  }
301190
- if (Array.isArray(value5) && Array.isArray(object2[key3])) {
301191
- object2[key3] = [...value5, ...object2[key3]];
301192
- } else if (isPlainObject5(value5) && isPlainObject5(object2[key3])) {
301193
- object2[key3] = _defu(value5, object2[key3], (namespace ? `${namespace}.` : "") + key3.toString(), merger);
300733
+ if (Array.isArray(value5) && Array.isArray(object2[key2])) {
300734
+ object2[key2] = [...value5, ...object2[key2]];
300735
+ } else if (isPlainObject4(value5) && isPlainObject4(object2[key2])) {
300736
+ object2[key2] = _defu(value5, object2[key2], (namespace ? `${namespace}.` : "") + key2.toString(), merger);
301194
300737
  } else {
301195
- object2[key3] = value5;
300738
+ object2[key2] = value5;
301196
300739
  }
301197
300740
  }
301198
300741
  return object2;
@@ -301201,15 +300744,15 @@ function createDefu(merger) {
301201
300744
  return (...arguments_5) => arguments_5.reduce((p5, c3) => _defu(p5, c3, "", merger), {});
301202
300745
  }
301203
300746
  var defu = createDefu();
301204
- var defuFn = createDefu((object2, key3, currentValue) => {
301205
- if (object2[key3] !== undefined && typeof currentValue === "function") {
301206
- object2[key3] = currentValue(object2[key3]);
300747
+ var defuFn = createDefu((object2, key2, currentValue) => {
300748
+ if (object2[key2] !== undefined && typeof currentValue === "function") {
300749
+ object2[key2] = currentValue(object2[key2]);
301207
300750
  return true;
301208
300751
  }
301209
300752
  });
301210
- var defuArrayFn = createDefu((object2, key3, currentValue) => {
301211
- if (Array.isArray(object2[key3]) && typeof currentValue === "function") {
301212
- object2[key3] = currentValue(object2[key3]);
300753
+ var defuArrayFn = createDefu((object2, key2, currentValue) => {
300754
+ if (Array.isArray(object2[key2]) && typeof currentValue === "function") {
300755
+ object2[key2] = currentValue(object2[key2]);
301213
300756
  return true;
301214
300757
  }
301215
300758
  });
@@ -303915,11 +303458,11 @@ function cacheDirectory() {
303915
303458
  }
303916
303459
  function normalizeHeaders(headers = {}) {
303917
303460
  const normalized = {};
303918
- for (const [key3, value5] of Object.entries(headers)) {
303461
+ for (const [key2, value5] of Object.entries(headers)) {
303919
303462
  if (!value5) {
303920
303463
  continue;
303921
303464
  }
303922
- normalized[key3.toLowerCase()] = value5;
303465
+ normalized[key2.toLowerCase()] = value5;
303923
303466
  }
303924
303467
  return normalized;
303925
303468
  }
@@ -307168,7 +306711,7 @@ function jsonOutput(data) {
307168
306711
  var composer = require_composer();
307169
306712
  var Document = require_Document();
307170
306713
  var Schema = require_Schema();
307171
- var errors5 = require_errors3();
306714
+ var errors4 = require_errors3();
307172
306715
  var Alias = require_Alias();
307173
306716
  var identity2 = require_identity();
307174
306717
  var Pair = require_Pair();
@@ -307184,9 +306727,9 @@ var visit2 = require_visit();
307184
306727
  var $Composer = composer.Composer;
307185
306728
  var $Document = Document.Document;
307186
306729
  var $Schema = Schema.Schema;
307187
- var $YAMLError = errors5.YAMLError;
307188
- var $YAMLParseError = errors5.YAMLParseError;
307189
- var $YAMLWarning = errors5.YAMLWarning;
306730
+ var $YAMLError = errors4.YAMLError;
306731
+ var $YAMLParseError = errors4.YAMLParseError;
306732
+ var $YAMLWarning = errors4.YAMLWarning;
307190
306733
  var $Alias = Alias.Alias;
307191
306734
  var $isAlias = identity2.isAlias;
307192
306735
  var $isCollection = identity2.isCollection;
@@ -307793,11 +307336,11 @@ function createCommand4() {
307793
307336
 
307794
307337
  // src/utils/commands/passthrough-options.ts
307795
307338
  function mapPassthroughOptions(options, command) {
307796
- const optionArgs = Object.entries(options).map(([key3, value5]) => {
307339
+ const optionArgs = Object.entries(options).map(([key2, value5]) => {
307797
307340
  if (value5 === true) {
307798
- return `--${key3}`;
307341
+ return `--${key2}`;
307799
307342
  }
307800
- return `--${key3}=${value5}`;
307343
+ return `--${key2}=${value5}`;
307801
307344
  });
307802
307345
  return [...optionArgs, ...command.args];
307803
307346
  }
@@ -309050,4 +308593,4 @@ async function sdkCliCommand(argv = process.argv) {
309050
308593
  // src/cli.ts
309051
308594
  sdkCliCommand();
309052
308595
 
309053
- //# debugId=FF541EF051B69F1B64756E2164756E21
308596
+ //# debugId=D42041711D0CDE0564756E2164756E21