@settlemint/sdk-cli 2.6.2-prf4fd4e0b → 2.6.2-prf7f629f7

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 +758 -301
  2. package/dist/cli.js.map +20 -6
  3. package/package.json +9 -9
package/dist/cli.js CHANGED
@@ -29,7 +29,7 @@ var __export = (target, all) => {
29
29
  var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
30
30
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
31
31
 
32
- // ../../node_modules/.bun/commander@14.0.0/node_modules/commander/lib/error.js
32
+ // ../../node_modules/.bun/commander@14.0.1/node_modules/commander/lib/error.js
33
33
  var require_error = __commonJS((exports) => {
34
34
  class CommanderError extends Error {
35
35
  constructor(exitCode, code, message) {
@@ -53,7 +53,7 @@ var require_error = __commonJS((exports) => {
53
53
  exports.InvalidArgumentError = InvalidArgumentError;
54
54
  });
55
55
 
56
- // ../../node_modules/.bun/commander@14.0.0/node_modules/commander/lib/argument.js
56
+ // ../../node_modules/.bun/commander@14.0.1/node_modules/commander/lib/argument.js
57
57
  var require_argument = __commonJS((exports) => {
58
58
  var { InvalidArgumentError } = require_error();
59
59
 
@@ -79,7 +79,7 @@ var require_argument = __commonJS((exports) => {
79
79
  this._name = name;
80
80
  break;
81
81
  }
82
- if (this._name.length > 3 && this._name.slice(-3) === "...") {
82
+ if (this._name.endsWith("...")) {
83
83
  this.variadic = true;
84
84
  this._name = this._name.slice(0, -3);
85
85
  }
@@ -87,11 +87,12 @@ var require_argument = __commonJS((exports) => {
87
87
  name() {
88
88
  return this._name;
89
89
  }
90
- _concatValue(value, previous) {
90
+ _collectValue(value, previous) {
91
91
  if (previous === this.defaultValue || !Array.isArray(previous)) {
92
92
  return [value];
93
93
  }
94
- return previous.concat(value);
94
+ previous.push(value);
95
+ return previous;
95
96
  }
96
97
  default(value, description) {
97
98
  this.defaultValue = value;
@@ -109,7 +110,7 @@ var require_argument = __commonJS((exports) => {
109
110
  throw new InvalidArgumentError(`Allowed choices are ${this.argChoices.join(", ")}.`);
110
111
  }
111
112
  if (this.variadic) {
112
- return this._concatValue(arg, previous);
113
+ return this._collectValue(arg, previous);
113
114
  }
114
115
  return arg;
115
116
  };
@@ -132,7 +133,7 @@ var require_argument = __commonJS((exports) => {
132
133
  exports.humanReadableArgName = humanReadableArgName;
133
134
  });
134
135
 
135
- // ../../node_modules/.bun/commander@14.0.0/node_modules/commander/lib/help.js
136
+ // ../../node_modules/.bun/commander@14.0.1/node_modules/commander/lib/help.js
136
137
  var require_help = __commonJS((exports) => {
137
138
  var { humanReadableArgName } = require_argument();
138
139
 
@@ -489,7 +490,7 @@ ${itemIndentStr}`);
489
490
  exports.stripColor = stripColor;
490
491
  });
491
492
 
492
- // ../../node_modules/.bun/commander@14.0.0/node_modules/commander/lib/option.js
493
+ // ../../node_modules/.bun/commander@14.0.1/node_modules/commander/lib/option.js
493
494
  var require_option = __commonJS((exports) => {
494
495
  var { InvalidArgumentError } = require_error();
495
496
 
@@ -556,11 +557,12 @@ var require_option = __commonJS((exports) => {
556
557
  this.hidden = !!hide;
557
558
  return this;
558
559
  }
559
- _concatValue(value, previous) {
560
+ _collectValue(value, previous) {
560
561
  if (previous === this.defaultValue || !Array.isArray(previous)) {
561
562
  return [value];
562
563
  }
563
- return previous.concat(value);
564
+ previous.push(value);
565
+ return previous;
564
566
  }
565
567
  choices(values) {
566
568
  this.argChoices = values.slice();
@@ -569,7 +571,7 @@ var require_option = __commonJS((exports) => {
569
571
  throw new InvalidArgumentError(`Allowed choices are ${this.argChoices.join(", ")}.`);
570
572
  }
571
573
  if (this.variadic) {
572
- return this._concatValue(arg, previous);
574
+ return this._collectValue(arg, previous);
573
575
  }
574
576
  return arg;
575
577
  };
@@ -672,7 +674,7 @@ var require_option = __commonJS((exports) => {
672
674
  exports.DualOptions = DualOptions;
673
675
  });
674
676
 
675
- // ../../node_modules/.bun/commander@14.0.0/node_modules/commander/lib/suggestSimilar.js
677
+ // ../../node_modules/.bun/commander@14.0.1/node_modules/commander/lib/suggestSimilar.js
676
678
  var require_suggestSimilar = __commonJS((exports) => {
677
679
  var maxDistance = 3;
678
680
  function editDistance(a, b) {
@@ -745,7 +747,7 @@ var require_suggestSimilar = __commonJS((exports) => {
745
747
  exports.suggestSimilar = suggestSimilar;
746
748
  });
747
749
 
748
- // ../../node_modules/.bun/commander@14.0.0/node_modules/commander/lib/command.js
750
+ // ../../node_modules/.bun/commander@14.0.1/node_modules/commander/lib/command.js
749
751
  var require_command = __commonJS((exports) => {
750
752
  var EventEmitter = __require("node:events").EventEmitter;
751
753
  var childProcess = __require("node:child_process");
@@ -875,7 +877,10 @@ var require_command = __commonJS((exports) => {
875
877
  configureOutput(configuration) {
876
878
  if (configuration === undefined)
877
879
  return this._outputConfiguration;
878
- this._outputConfiguration = Object.assign({}, this._outputConfiguration, configuration);
880
+ this._outputConfiguration = {
881
+ ...this._outputConfiguration,
882
+ ...configuration
883
+ };
879
884
  return this;
880
885
  }
881
886
  showHelpAfterError(displayHelp = true) {
@@ -924,7 +929,7 @@ var require_command = __commonJS((exports) => {
924
929
  }
925
930
  addArgument(argument) {
926
931
  const previousArgument = this.registeredArguments.slice(-1)[0];
927
- if (previousArgument && previousArgument.variadic) {
932
+ if (previousArgument?.variadic) {
928
933
  throw new Error(`only the last argument can be variadic '${previousArgument.name()}'`);
929
934
  }
930
935
  if (argument.required && argument.defaultValue !== undefined && argument.parseArg === undefined) {
@@ -1079,7 +1084,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
1079
1084
  if (val !== null && option.parseArg) {
1080
1085
  val = this._callParseArg(option, val, oldValue, invalidValueMessage);
1081
1086
  } else if (val !== null && option.variadic) {
1082
- val = option._concatValue(val, oldValue);
1087
+ val = option._collectValue(val, oldValue);
1083
1088
  }
1084
1089
  if (val == null) {
1085
1090
  if (option.negate) {
@@ -1454,7 +1459,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
1454
1459
  this.processedArgs = processedArgs;
1455
1460
  }
1456
1461
  _chainOrCall(promise, fn) {
1457
- if (promise && promise.then && typeof promise.then === "function") {
1462
+ if (promise?.then && typeof promise.then === "function") {
1458
1463
  return promise.then(() => fn());
1459
1464
  }
1460
1465
  return fn();
@@ -1531,7 +1536,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
1531
1536
  promiseChain = this._chainOrCallHooks(promiseChain, "postAction");
1532
1537
  return promiseChain;
1533
1538
  }
1534
- if (this.parent && this.parent.listenerCount(commandEvent)) {
1539
+ if (this.parent?.listenerCount(commandEvent)) {
1535
1540
  checkForUnknownOptions();
1536
1541
  this._processArguments();
1537
1542
  this.parent.emit(commandEvent, operands, unknown);
@@ -1593,11 +1598,10 @@ Expecting one of '${allowedValues.join("', '")}'`);
1593
1598
  cmd._checkForConflictingLocalOptions();
1594
1599
  });
1595
1600
  }
1596
- parseOptions(argv) {
1601
+ parseOptions(args) {
1597
1602
  const operands = [];
1598
1603
  const unknown = [];
1599
1604
  let dest = operands;
1600
- const args = argv.slice();
1601
1605
  function maybeOption(arg) {
1602
1606
  return arg.length > 1 && arg[0] === "-";
1603
1607
  }
@@ -1607,12 +1611,15 @@ Expecting one of '${allowedValues.join("', '")}'`);
1607
1611
  return !this._getCommandAndAncestors().some((cmd) => cmd.options.map((opt) => opt.short).some((short) => /^-\d$/.test(short)));
1608
1612
  };
1609
1613
  let activeVariadicOption = null;
1610
- while (args.length) {
1611
- const arg = args.shift();
1614
+ let activeGroup = null;
1615
+ let i = 0;
1616
+ while (i < args.length || activeGroup) {
1617
+ const arg = activeGroup ?? args[i++];
1618
+ activeGroup = null;
1612
1619
  if (arg === "--") {
1613
1620
  if (dest === unknown)
1614
1621
  dest.push(arg);
1615
- dest.push(...args);
1622
+ dest.push(...args.slice(i));
1616
1623
  break;
1617
1624
  }
1618
1625
  if (activeVariadicOption && (!maybeOption(arg) || negativeNumberArg(arg))) {
@@ -1624,14 +1631,14 @@ Expecting one of '${allowedValues.join("', '")}'`);
1624
1631
  const option = this._findOption(arg);
1625
1632
  if (option) {
1626
1633
  if (option.required) {
1627
- const value = args.shift();
1634
+ const value = args[i++];
1628
1635
  if (value === undefined)
1629
1636
  this.optionMissingArgument(option);
1630
1637
  this.emit(`option:${option.name()}`, value);
1631
1638
  } else if (option.optional) {
1632
1639
  let value = null;
1633
- if (args.length > 0 && (!maybeOption(args[0]) || negativeNumberArg(args[0]))) {
1634
- value = args.shift();
1640
+ if (i < args.length && (!maybeOption(args[i]) || negativeNumberArg(args[i]))) {
1641
+ value = args[i++];
1635
1642
  }
1636
1643
  this.emit(`option:${option.name()}`, value);
1637
1644
  } else {
@@ -1648,7 +1655,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
1648
1655
  this.emit(`option:${option.name()}`, arg.slice(2));
1649
1656
  } else {
1650
1657
  this.emit(`option:${option.name()}`);
1651
- args.unshift(`-${arg.slice(2)}`);
1658
+ activeGroup = `-${arg.slice(2)}`;
1652
1659
  }
1653
1660
  continue;
1654
1661
  }
@@ -1667,25 +1674,18 @@ Expecting one of '${allowedValues.join("', '")}'`);
1667
1674
  if ((this._enablePositionalOptions || this._passThroughOptions) && operands.length === 0 && unknown.length === 0) {
1668
1675
  if (this._findCommand(arg)) {
1669
1676
  operands.push(arg);
1670
- if (args.length > 0)
1671
- unknown.push(...args);
1677
+ unknown.push(...args.slice(i));
1672
1678
  break;
1673
1679
  } else if (this._getHelpCommand() && arg === this._getHelpCommand().name()) {
1674
- operands.push(arg);
1675
- if (args.length > 0)
1676
- operands.push(...args);
1680
+ operands.push(arg, ...args.slice(i));
1677
1681
  break;
1678
1682
  } else if (this._defaultCommandName) {
1679
- unknown.push(arg);
1680
- if (args.length > 0)
1681
- unknown.push(...args);
1683
+ unknown.push(arg, ...args.slice(i));
1682
1684
  break;
1683
1685
  }
1684
1686
  }
1685
1687
  if (this._passThroughOptions) {
1686
- dest.push(arg);
1687
- if (args.length > 0)
1688
- dest.push(...args);
1688
+ dest.push(arg, ...args.slice(i));
1689
1689
  break;
1690
1690
  }
1691
1691
  dest.push(arg);
@@ -2102,7 +2102,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
2102
2102
  exports.useColor = useColor;
2103
2103
  });
2104
2104
 
2105
- // ../../node_modules/.bun/commander@14.0.0/node_modules/commander/index.js
2105
+ // ../../node_modules/.bun/commander@14.0.1/node_modules/commander/index.js
2106
2106
  var require_commander = __commonJS((exports) => {
2107
2107
  var { Argument } = require_argument();
2108
2108
  var { Command } = require_command();
@@ -2122,7 +2122,7 @@ var require_commander = __commonJS((exports) => {
2122
2122
  exports.InvalidOptionArgumentError = InvalidArgumentError;
2123
2123
  });
2124
2124
 
2125
- // ../../node_modules/.bun/@commander-js+extra-typings@14.0.0+62ffbc41b7dfe13b/node_modules/@commander-js/extra-typings/index.js
2125
+ // ../../node_modules/.bun/@commander-js+extra-typings@14.0.0+408f7c8952c8497c/node_modules/@commander-js/extra-typings/index.js
2126
2126
  var require_extra_typings = __commonJS((exports, module) => {
2127
2127
  var commander = require_commander();
2128
2128
  exports = module.exports = {};
@@ -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_(key2, node, visitor, path5) {
240668
- const ctrl = callVisitor(key2, node, visitor, path5);
240667
+ function visit_(key3, node, visitor, path5) {
240668
+ const ctrl = callVisitor(key3, node, visitor, path5);
240669
240669
  if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
240670
- replaceNode(key2, path5, ctrl);
240671
- return visit_(key2, ctrl, visitor, path5);
240670
+ replaceNode(key3, path5, ctrl);
240671
+ return visit_(key3, 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_(key2, node, visitor, path5) {
240716
- const ctrl = await callVisitor(key2, node, visitor, path5);
240715
+ async function visitAsync_(key3, node, visitor, path5) {
240716
+ const ctrl = await callVisitor(key3, node, visitor, path5);
240717
240717
  if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
240718
- replaceNode(key2, path5, ctrl);
240719
- return visitAsync_(key2, ctrl, visitor, path5);
240718
+ replaceNode(key3, path5, ctrl);
240719
+ return visitAsync_(key3, 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(key2, node, visitor, path5) {
240769
+ function callVisitor(key3, node, visitor, path5) {
240770
240770
  if (typeof visitor === "function")
240771
- return visitor(key2, node, path5);
240771
+ return visitor(key3, node, path5);
240772
240772
  if (identity2.isMap(node))
240773
- return visitor.Map?.(key2, node, path5);
240773
+ return visitor.Map?.(key3, node, path5);
240774
240774
  if (identity2.isSeq(node))
240775
- return visitor.Seq?.(key2, node, path5);
240775
+ return visitor.Seq?.(key3, node, path5);
240776
240776
  if (identity2.isPair(node))
240777
- return visitor.Pair?.(key2, node, path5);
240777
+ return visitor.Pair?.(key3, node, path5);
240778
240778
  if (identity2.isScalar(node))
240779
- return visitor.Scalar?.(key2, node, path5);
240779
+ return visitor.Scalar?.(key3, node, path5);
240780
240780
  if (identity2.isAlias(node))
240781
- return visitor.Alias?.(key2, node, path5);
240781
+ return visitor.Alias?.(key3, node, path5);
240782
240782
  return;
240783
240783
  }
240784
- function replaceNode(key2, path5, node) {
240784
+ function replaceNode(key3, path5, node) {
240785
240785
  const parent = path5[path5.length - 1];
240786
240786
  if (identity2.isCollection(parent)) {
240787
- parent.items[key2] = node;
240787
+ parent.items[key3] = node;
240788
240788
  } else if (identity2.isPair(parent)) {
240789
- if (key2 === "key")
240789
+ if (key3 === "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, key2, val) {
241020
+ function applyReviver(reviver, obj, key3, 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, key2, val);
241060
+ return reviver.call(obj, key3, 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 [key2, ...rest] = path5;
241390
- const node = this.get(key2, true);
241389
+ const [key3, ...rest] = path5;
241390
+ const node = this.get(key3, true);
241391
241391
  if (identity2.isCollection(node))
241392
241392
  node.addIn(rest, value5);
241393
241393
  else if (node === undefined && this.schema)
241394
- this.set(key2, collectionFromPath(this.schema, rest, value5));
241394
+ this.set(key3, collectionFromPath(this.schema, rest, value5));
241395
241395
  else
241396
- throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
241396
+ throw new Error(`Expected YAML collection at ${key3}. Remaining path: ${rest}`);
241397
241397
  }
241398
241398
  }
241399
241399
  deleteIn(path5) {
241400
- const [key2, ...rest] = path5;
241400
+ const [key3, ...rest] = path5;
241401
241401
  if (rest.length === 0)
241402
- return this.delete(key2);
241403
- const node = this.get(key2, true);
241402
+ return this.delete(key3);
241403
+ const node = this.get(key3, true);
241404
241404
  if (identity2.isCollection(node))
241405
241405
  return node.deleteIn(rest);
241406
241406
  else
241407
- throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
241407
+ throw new Error(`Expected YAML collection at ${key3}. Remaining path: ${rest}`);
241408
241408
  }
241409
241409
  getIn(path5, keepScalar) {
241410
- const [key2, ...rest] = path5;
241411
- const node = this.get(key2, true);
241410
+ const [key3, ...rest] = path5;
241411
+ const node = this.get(key3, 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 [key2, ...rest] = path5;
241426
+ const [key3, ...rest] = path5;
241427
241427
  if (rest.length === 0)
241428
- return this.has(key2);
241429
- const node = this.get(key2, true);
241428
+ return this.has(key3);
241429
+ const node = this.get(key3, true);
241430
241430
  return identity2.isCollection(node) ? node.hasIn(rest) : false;
241431
241431
  }
241432
241432
  setIn(path5, value5) {
241433
- const [key2, ...rest] = path5;
241433
+ const [key3, ...rest] = path5;
241434
241434
  if (rest.length === 0) {
241435
- this.set(key2, value5);
241435
+ this.set(key3, value5);
241436
241436
  } else {
241437
- const node = this.get(key2, true);
241437
+ const node = this.get(key3, true);
241438
241438
  if (identity2.isCollection(node))
241439
241439
  node.setIn(rest, value5);
241440
241440
  else if (node === undefined && this.schema)
241441
- this.set(key2, collectionFromPath(this.schema, rest, value5));
241441
+ this.set(key3, collectionFromPath(this.schema, rest, value5));
241442
241442
  else
241443
- throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
241443
+ throw new Error(`Expected YAML collection at ${key3}. 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: key2, value: value5 }, ctx, onComment, onChompKeep) {
242030
+ function stringifyPair2({ key: key3, value: value5 }, ctx, onComment, onChompKeep) {
242031
242031
  const { allNullValues, doc: doc2, indent: indent2, indentStep, options: { commentString, indentSeq, simpleKeys } } = ctx;
242032
- let keyComment = identity2.isNode(key2) && key2.comment || null;
242032
+ let keyComment = identity2.isNode(key3) && key3.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(key2) || !identity2.isNode(key2) && typeof key2 === "object") {
242037
+ if (identity2.isCollection(key3) || !identity2.isNode(key3) && typeof key3 === "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 && (!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"));
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"));
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(key2, ctx, () => keyCommentDone = true, () => chompKeep = true);
242050
+ let str = stringify5.stringify(key3, 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, 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);
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);
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 [key2, value6] of srcMap) {
242211
+ for (const [key3, value6] of srcMap) {
242212
242212
  if (map4 instanceof Map) {
242213
- if (!map4.has(key2))
242214
- map4.set(key2, value6);
242213
+ if (!map4.has(key3))
242214
+ map4.set(key3, value6);
242215
242215
  } else if (map4 instanceof Set) {
242216
- map4.add(key2);
242217
- } else if (!Object.prototype.hasOwnProperty.call(map4, key2)) {
242218
- Object.defineProperty(map4, key2, {
242216
+ map4.add(key3);
242217
+ } else if (!Object.prototype.hasOwnProperty.call(map4, key3)) {
242218
+ Object.defineProperty(map4, key3, {
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: key2, value: value5 }) {
242241
- if (identity2.isNode(key2) && key2.addToJSMap)
242242
- key2.addToJSMap(ctx, map4, value5);
242243
- else if (merge4.isMergeKey(ctx, key2))
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))
242244
242244
  merge4.addMergeToJSMap(ctx, map4, value5);
242245
242245
  else {
242246
- const jsKey = toJS.toJS(key2, "", ctx);
242246
+ const jsKey = toJS.toJS(key3, "", 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(key2, jsKey, ctx);
242252
+ const stringKey = stringifyKey(key3, 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(key2, jsKey, ctx) {
242267
+ function stringifyKey(key3, 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(key2) && ctx?.doc) {
242272
+ if (identity2.isNode(key3) && 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 = key2.toString(strCtx);
242279
+ const strKey = key3.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(key2, value5, ctx) {
242301
- const k6 = createNode.createNode(key2, undefined, ctx);
242300
+ function createPair(key3, value5, ctx) {
242301
+ const k6 = createNode.createNode(key3, 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(key2, value5 = null) {
242307
+ constructor(key3, value5 = null) {
242308
242308
  Object.defineProperty(this, identity2.NODE_TYPE, { value: identity2.PAIR });
242309
- this.key = key2;
242309
+ this.key = key3;
242310
242310
  this.value = value5;
242311
242311
  }
242312
242312
  clone(schema) {
242313
- let { key: key2, value: value5 } = this;
242314
- if (identity2.isNode(key2))
242315
- key2 = key2.clone(schema);
242313
+ let { key: key3, value: value5 } = this;
242314
+ if (identity2.isNode(key3))
242315
+ key3 = key3.clone(schema);
242316
242316
  if (identity2.isNode(value5))
242317
242317
  value5 = value5.clone(schema);
242318
- return new Pair(key2, value5);
242318
+ return new Pair(key3, 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, key2) {
242486
- const k6 = identity2.isScalar(key2) ? key2.value : key2;
242485
+ function findPair(items, key3) {
242486
+ const k6 = identity2.isScalar(key3) ? key3.value : key3;
242487
242487
  for (const it2 of items) {
242488
242488
  if (identity2.isPair(it2)) {
242489
- if (it2.key === key2 || it2.key === k6)
242489
+ if (it2.key === key3 || 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 = (key2, value5) => {
242509
+ const add = (key3, value5) => {
242510
242510
  if (typeof replacer === "function")
242511
- value5 = replacer.call(obj, key2, value5);
242512
- else if (Array.isArray(replacer) && !replacer.includes(key2))
242511
+ value5 = replacer.call(obj, key3, value5);
242512
+ else if (Array.isArray(replacer) && !replacer.includes(key3))
242513
242513
  return;
242514
242514
  if (value5 !== undefined || keepUndefined)
242515
- map4.items.push(Pair.createPair(key2, value5, ctx));
242515
+ map4.items.push(Pair.createPair(key3, value5, ctx));
242516
242516
  };
242517
242517
  if (obj instanceof Map) {
242518
- for (const [key2, value5] of obj)
242519
- add(key2, value5);
242518
+ for (const [key3, value5] of obj)
242519
+ add(key3, value5);
242520
242520
  } else if (obj && typeof obj === "object") {
242521
- for (const key2 of Object.keys(obj))
242522
- add(key2, obj[key2]);
242521
+ for (const key3 of Object.keys(obj))
242522
+ add(key3, obj[key3]);
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(key2) {
242557
- const it2 = findPair(this.items, key2);
242556
+ delete(key3) {
242557
+ const it2 = findPair(this.items, key3);
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(key2, keepScalar) {
242564
- const it2 = findPair(this.items, key2);
242563
+ get(key3, keepScalar) {
242564
+ const it2 = findPair(this.items, key3);
242565
242565
  const node = it2?.value;
242566
242566
  return (!keepScalar && identity2.isScalar(node) ? node.value : node) ?? undefined;
242567
242567
  }
242568
- has(key2) {
242569
- return !!findPair(this.items, key2);
242568
+ has(key3) {
242569
+ return !!findPair(this.items, key3);
242570
242570
  }
242571
- set(key2, value5) {
242572
- this.add(new Pair.Pair(key2, value5), true);
242571
+ set(key3, value5) {
242572
+ this.add(new Pair.Pair(key3, 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(key2) {
242644
- const idx = asItemIndex(key2);
242643
+ delete(key3) {
242644
+ const idx = asItemIndex(key3);
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(key2, keepScalar) {
242651
- const idx = asItemIndex(key2);
242650
+ get(key3, keepScalar) {
242651
+ const idx = asItemIndex(key3);
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(key2) {
242658
- const idx = asItemIndex(key2);
242657
+ has(key3) {
242658
+ const idx = asItemIndex(key3);
242659
242659
  return typeof idx === "number" && idx < this.items.length;
242660
242660
  }
242661
- set(key2, value5) {
242662
- const idx = asItemIndex(key2);
242661
+ set(key3, value5) {
242662
+ const idx = asItemIndex(key3);
242663
242663
  if (typeof idx !== "number")
242664
- throw new Error(`Expected a valid index, not ${key2}.`);
242664
+ throw new Error(`Expected a valid index, not ${key3}.`);
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 key2 = obj instanceof Set ? it2 : String(i8++);
242699
- it2 = replacer.call(obj, key2, it2);
242698
+ const key3 = obj instanceof Set ? it2 : String(i8++);
242699
+ it2 = replacer.call(obj, key3, 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(key2) {
242708
- let idx = identity2.isScalar(key2) ? key2.value : key2;
242707
+ function asItemIndex(key3) {
242708
+ let idx = identity2.isScalar(key3) ? key3.value : key3;
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 key2, value5;
243081
+ let key3, value5;
243082
243082
  if (Array.isArray(it2)) {
243083
243083
  if (it2.length === 2) {
243084
- key2 = it2[0];
243084
+ key3 = 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
- key2 = keys[0];
243092
- value5 = it2[key2];
243091
+ key3 = keys[0];
243092
+ value5 = it2[key3];
243093
243093
  } else {
243094
243094
  throw new TypeError(`Expected tuple with one key, not ${keys.length} keys`);
243095
243095
  }
243096
243096
  } else {
243097
- key2 = it2;
243097
+ key3 = it2;
243098
243098
  }
243099
- pairs2.items.push(Pair.createPair(key2, value5, ctx));
243099
+ pairs2.items.push(Pair.createPair(key3, 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 key2, value5;
243140
+ let key3, value5;
243141
243141
  if (identity2.isPair(pair)) {
243142
- key2 = toJS.toJS(pair.key, "", ctx);
243143
- value5 = toJS.toJS(pair.value, key2, ctx);
243142
+ key3 = toJS.toJS(pair.key, "", ctx);
243143
+ value5 = toJS.toJS(pair.value, key3, ctx);
243144
243144
  } else {
243145
- key2 = toJS.toJS(pair, "", ctx);
243145
+ key3 = toJS.toJS(pair, "", ctx);
243146
243146
  }
243147
- if (map4.has(key2))
243147
+ if (map4.has(key3))
243148
243148
  throw new Error("Ordered maps must not include duplicate keys");
243149
- map4.set(key2, value5);
243149
+ map4.set(key3, 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: 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}`);
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}`);
243174
243174
  } else {
243175
- seenKeys.push(key2.value);
243175
+ seenKeys.push(key3.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(key2) {
243349
+ add(key3) {
243350
243350
  let pair;
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);
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);
243355
243355
  else
243356
- pair = new Pair.Pair(key2, null);
243356
+ pair = new Pair.Pair(key3, 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(key2, keepPair) {
243362
- const pair = YAMLMap.findPair(this.items, key2);
243361
+ get(key3, keepPair) {
243362
+ const pair = YAMLMap.findPair(this.items, key3);
243363
243363
  return !keepPair && identity2.isPair(pair) ? identity2.isScalar(pair.key) ? pair.key.value : pair.key : pair;
243364
243364
  }
243365
- set(key2, value5) {
243365
+ set(key3, 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, key2);
243368
+ const prev = YAMLMap.findPair(this.items, key3);
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(key2));
243372
+ this.items.push(new Pair.Pair(key3));
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((key2) => key2 !== "yaml11").map((key2) => JSON.stringify(key2)).join(", ");
243607
+ const keys = Array.from(schemas3.keys()).filter((key3) => key3 !== "yaml11").map((key3) => JSON.stringify(key3)).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((key2) => JSON.stringify(key2)).join(", ");
243623
+ const keys = Object.keys(tagsByName).map((key3) => JSON.stringify(key3)).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(key2, value5, options = {}) {
243859
- const k6 = this.createNode(key2, null, options);
243858
+ createPair(key3, value5, options = {}) {
243859
+ const k6 = this.createNode(key3, null, options);
243860
243860
  const v7 = this.createNode(value5, null, options);
243861
243861
  return new Pair.Pair(k6, v7);
243862
243862
  }
243863
- delete(key2) {
243864
- return assertCollection(this.contents) ? this.contents.delete(key2) : false;
243863
+ delete(key3) {
243864
+ return assertCollection(this.contents) ? this.contents.delete(key3) : 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(key2, keepScalar) {
243876
- return identity2.isCollection(this.contents) ? this.contents.get(key2, keepScalar) : undefined;
243875
+ get(key3, keepScalar) {
243876
+ return identity2.isCollection(this.contents) ? this.contents.get(key3, 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(key2) {
243884
- return identity2.isCollection(this.contents) ? this.contents.has(key2) : false;
243883
+ has(key3) {
243884
+ return identity2.isCollection(this.contents) ? this.contents.has(key3) : 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(key2, value5) {
243891
+ set(key3, value5) {
243892
243892
  if (this.contents == null) {
243893
- this.contents = Collection.collectionFromPath(this.schema, [key2], value5);
243893
+ this.contents = Collection.collectionFromPath(this.schema, [key3], value5);
243894
243894
  } else if (assertCollection(this.contents)) {
243895
- this.contents.set(key2, value5);
243895
+ this.contents.set(key3, 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(key2) {
244178
- if (!key2)
244177
+ function containsNewline(key3) {
244178
+ if (!key3)
244179
244179
  return null;
244180
- switch (key2.type) {
244180
+ switch (key3.type) {
244181
244181
  case "alias":
244182
244182
  case "scalar":
244183
244183
  case "double-quoted-scalar":
244184
244184
  case "single-quoted-scalar":
244185
- if (key2.source.includes(`
244185
+ if (key3.source.includes(`
244186
244186
  `))
244187
244187
  return true;
244188
- if (key2.end) {
244189
- for (const st2 of key2.end)
244188
+ if (key3.end) {
244189
+ for (const st2 of key3.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 key2.items) {
244195
+ for (const it2 of key3.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: key2, sep: sep4, value: value5 } = collItem;
244260
+ const { start: start3, key: key3, sep: sep4, value: value5 } = collItem;
244261
244261
  const keyProps = resolveProps.resolveProps(start3, {
244262
244262
  indicator: "explicit-key-ind",
244263
- next: key2 ?? sep4?.[0],
244263
+ next: key3 ?? 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 (key2) {
244272
- if (key2.type === "block-seq")
244271
+ if (key3) {
244272
+ if (key3.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 key2 && key2.indent !== bm.indent)
244274
+ else if ("indent" in key3 && key3.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(key2)) {
244289
- onError(key2 ?? start3[start3.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
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");
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 = key2 ? composeNode(ctx, key2, keyProps, onError) : composeEmptyNode(ctx, keyStart, start3, null, keyProps, onError);
244296
+ const keyNode = key3 ? composeNode(ctx, key3, keyProps, onError) : composeEmptyNode(ctx, keyStart, start3, null, keyProps, onError);
244297
244297
  if (ctx.schema.compat)
244298
- utilFlowIndentCheck.flowIndentCheck(bm.indent, key2, onError);
244298
+ utilFlowIndentCheck.flowIndentCheck(bm.indent, key3, 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: !key2 || key2.type === "block-scalar"
244308
+ startOnNewline: !key3 || key3.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: key2, sep: sep4, value: value5 } = collItem;
244464
+ const { start: start3, key: key3, sep: sep4, value: value5 } = collItem;
244465
244465
  const props = resolveProps.resolveProps(start3, {
244466
244466
  flow: fcName,
244467
244467
  indicator: "explicit-key-ind",
244468
- next: key2 ?? sep4?.[0],
244468
+ next: key3 ?? 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(key2))
244491
- onError(key2, "MULTILINE_IMPLICIT_KEY", "Implicit keys of flow sequence pairs need to be on a single line");
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");
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 = key2 ? composeNode(ctx, key2, props, onError) : composeEmptyNode(ctx, keyStart, start3, null, props, onError);
244537
- if (isBlock(key2))
244536
+ const keyNode = key3 ? composeNode(ctx, key3, props, onError) : composeEmptyNode(ctx, keyStart, start3, null, props, onError);
244537
+ if (isBlock(key3))
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 errors4 = require_errors3();
245348
+ var errors5 = 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 errors4.YAMLWarning(pos, code2, message));
245399
+ this.warnings.push(new errors5.YAMLWarning(pos, code2, message));
245400
245400
  else
245401
- this.errors.push(new errors4.YAMLParseError(pos, code2, message));
245401
+ this.errors.push(new errors5.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 errors4.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
245485
+ const error48 = new errors5.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 errors4.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
245495
+ this.errors.push(new errors5.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 errors4.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
245510
+ this.errors.push(new errors5.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 errors4 = require_errors3();
245536
+ var errors5 = 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 errors4.YAMLParseError([offset, offset + 1], code2, message);
245545
+ throw new errors5.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 key2 of Object.keys(token))
245660
- if (key2 !== "type" && key2 !== "offset")
245661
- delete token[key2];
245659
+ for (const key3 of Object.keys(token))
245660
+ if (key3 !== "type" && key3 !== "offset")
245661
+ delete token[key3];
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 key2 of Object.keys(token))
245711
- if (key2 !== "type" && key2 !== "offset")
245712
- delete token[key2];
245710
+ for (const key3 of Object.keys(token))
245711
+ if (key3 !== "type" && key3 !== "offset")
245712
+ delete token[key3];
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: key2, sep: sep4, value: value5 }) {
245764
+ function stringifyItem({ start: start3, key: key3, sep: sep4, value: value5 }) {
245765
245765
  let res = "";
245766
245766
  for (const st2 of start3)
245767
245767
  res += st2.source;
245768
- if (key2)
245769
- res += stringifyToken(key2);
245768
+ if (key3)
245769
+ res += stringifyToken(key3);
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 key2 = it2.key;
247065
+ const key3 = 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: key2, sep: sep4 }]
247074
+ items: [{ start: start4, key: key3, 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 errors4 = require_errors3();
247407
+ var errors5 = 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(errors4.prettifyError(source, lineCounter2));
247425
- doc2.warnings.forEach(errors4.prettifyError(source, lineCounter2));
247424
+ doc2.errors.forEach(errors5.prettifyError(source, lineCounter2));
247425
+ doc2.warnings.forEach(errors5.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 errors4.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
247440
+ doc2.errors.push(new errors5.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(errors4.prettifyError(source, lineCounter2));
247446
- doc2.warnings.forEach(errors4.prettifyError(source, lineCounter2));
247445
+ doc2.errors.forEach(errors5.prettifyError(source, lineCounter2));
247446
+ doc2.warnings.forEach(errors5.prettifyError(source, lineCounter2));
247447
247447
  }
247448
247448
  return doc2;
247449
247449
  }
@@ -247494,7 +247494,7 @@ var require_public_api = __commonJS((exports) => {
247494
247494
  exports.stringify = stringify5;
247495
247495
  });
247496
247496
 
247497
- // ../../node_modules/.bun/@commander-js+extra-typings@14.0.0+62ffbc41b7dfe13b/node_modules/@commander-js/extra-typings/esm.mjs
247497
+ // ../../node_modules/.bun/@commander-js+extra-typings@14.0.0+408f7c8952c8497c/node_modules/@commander-js/extra-typings/esm.mjs
247498
247498
  var import__ = __toESM(require_extra_typings(), 1);
247499
247499
  var {
247500
247500
  program,
@@ -247510,14 +247510,14 @@ var {
247510
247510
  Help
247511
247511
  } = import__.default;
247512
247512
 
247513
- // ../../node_modules/.bun/@inquirer+core@10.2.0+5268b8880d5ab6fa/node_modules/@inquirer/core/dist/esm/lib/key.js
247513
+ // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/key.js
247514
247514
  var isUpKey = (key) => key.name === "up";
247515
247515
  var isDownKey = (key) => key.name === "down";
247516
247516
  var isBackspaceKey = (key) => key.name === "backspace";
247517
247517
  var isTabKey = (key) => key.name === "tab";
247518
247518
  var isNumberKey = (key) => "1234567890".includes(key.name);
247519
247519
  var isEnterKey = (key) => key.name === "enter" || key.name === "return";
247520
- // ../../node_modules/.bun/@inquirer+core@10.2.0+5268b8880d5ab6fa/node_modules/@inquirer/core/dist/esm/lib/errors.js
247520
+ // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/errors.js
247521
247521
  class AbortPromptError extends Error {
247522
247522
  name = "AbortPromptError";
247523
247523
  message = "Prompt was aborted";
@@ -247543,10 +247543,10 @@ class HookError extends Error {
247543
247543
  class ValidationError extends Error {
247544
247544
  name = "ValidationError";
247545
247545
  }
247546
- // ../../node_modules/.bun/@inquirer+core@10.2.0+5268b8880d5ab6fa/node_modules/@inquirer/core/dist/esm/lib/use-state.js
247546
+ // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-state.js
247547
247547
  import { AsyncResource as AsyncResource2 } from "node:async_hooks";
247548
247548
 
247549
- // ../../node_modules/.bun/@inquirer+core@10.2.0+5268b8880d5ab6fa/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
247549
+ // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
247550
247550
  import { AsyncLocalStorage, AsyncResource } from "node:async_hooks";
247551
247551
  var hookStorage = new AsyncLocalStorage;
247552
247552
  function createStore(rl) {
@@ -247651,7 +247651,7 @@ var effectScheduler = {
247651
247651
  }
247652
247652
  };
247653
247653
 
247654
- // ../../node_modules/.bun/@inquirer+core@10.2.0+5268b8880d5ab6fa/node_modules/@inquirer/core/dist/esm/lib/use-state.js
247654
+ // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-state.js
247655
247655
  function useState(defaultValue) {
247656
247656
  return withPointer((pointer) => {
247657
247657
  const setState = AsyncResource2.bind(function setState(newValue) {
@@ -247669,7 +247669,7 @@ function useState(defaultValue) {
247669
247669
  });
247670
247670
  }
247671
247671
 
247672
- // ../../node_modules/.bun/@inquirer+core@10.2.0+5268b8880d5ab6fa/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
247672
+ // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
247673
247673
  function useEffect(cb, depArray) {
247674
247674
  withPointer((pointer) => {
247675
247675
  const oldDeps = pointer.get();
@@ -247681,7 +247681,7 @@ function useEffect(cb, depArray) {
247681
247681
  });
247682
247682
  }
247683
247683
 
247684
- // ../../node_modules/.bun/@inquirer+core@10.2.0+5268b8880d5ab6fa/node_modules/@inquirer/core/dist/esm/lib/theme.js
247684
+ // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/theme.js
247685
247685
  var import_yoctocolors_cjs = __toESM(require_yoctocolors_cjs(), 1);
247686
247686
 
247687
247687
  // ../../node_modules/.bun/@inquirer+figures@1.0.13/node_modules/@inquirer/figures/dist/esm/index.js
@@ -247970,7 +247970,7 @@ var figures = shouldUseMain ? mainSymbols : fallbackSymbols;
247970
247970
  var esm_default = figures;
247971
247971
  var replacements = Object.entries(specialMainSymbols);
247972
247972
 
247973
- // ../../node_modules/.bun/@inquirer+core@10.2.0+5268b8880d5ab6fa/node_modules/@inquirer/core/dist/esm/lib/theme.js
247973
+ // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/theme.js
247974
247974
  var defaultTheme = {
247975
247975
  prefix: {
247976
247976
  idle: import_yoctocolors_cjs.default.blue("?"),
@@ -247991,7 +247991,7 @@ var defaultTheme = {
247991
247991
  }
247992
247992
  };
247993
247993
 
247994
- // ../../node_modules/.bun/@inquirer+core@10.2.0+5268b8880d5ab6fa/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
247994
+ // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
247995
247995
  function isPlainObject(value) {
247996
247996
  if (typeof value !== "object" || value === null)
247997
247997
  return false;
@@ -248019,7 +248019,7 @@ function makeTheme(...themes) {
248019
248019
  return deepMerge(...themesToMerge);
248020
248020
  }
248021
248021
 
248022
- // ../../node_modules/.bun/@inquirer+core@10.2.0+5268b8880d5ab6fa/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
248022
+ // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
248023
248023
  function usePrefix({ status = "idle", theme }) {
248024
248024
  const [showLoader, setShowLoader] = useState(false);
248025
248025
  const [tick, setTick] = useState(0);
@@ -248049,7 +248049,7 @@ function usePrefix({ status = "idle", theme }) {
248049
248049
  const iconName = status === "loading" ? "idle" : status;
248050
248050
  return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
248051
248051
  }
248052
- // ../../node_modules/.bun/@inquirer+core@10.2.0+5268b8880d5ab6fa/node_modules/@inquirer/core/dist/esm/lib/use-memo.js
248052
+ // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-memo.js
248053
248053
  function useMemo(fn, dependencies) {
248054
248054
  return withPointer((pointer) => {
248055
248055
  const prev = pointer.get();
@@ -248061,11 +248061,11 @@ function useMemo(fn, dependencies) {
248061
248061
  return prev.value;
248062
248062
  });
248063
248063
  }
248064
- // ../../node_modules/.bun/@inquirer+core@10.2.0+5268b8880d5ab6fa/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
248064
+ // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
248065
248065
  function useRef(val) {
248066
248066
  return useState({ current: val })[0];
248067
248067
  }
248068
- // ../../node_modules/.bun/@inquirer+core@10.2.0+5268b8880d5ab6fa/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
248068
+ // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
248069
248069
  function useKeypress(userHandler) {
248070
248070
  const signal = useRef(userHandler);
248071
248071
  signal.current = userHandler;
@@ -248083,7 +248083,7 @@ function useKeypress(userHandler) {
248083
248083
  };
248084
248084
  }, []);
248085
248085
  }
248086
- // ../../node_modules/.bun/@inquirer+core@10.2.0+5268b8880d5ab6fa/node_modules/@inquirer/core/dist/esm/lib/utils.js
248086
+ // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/utils.js
248087
248087
  var import_cli_width = __toESM(require_cli_width(), 1);
248088
248088
  var import_wrap_ansi = __toESM(require_wrap_ansi(), 1);
248089
248089
  function breakLines(content, width) {
@@ -248096,7 +248096,7 @@ function readlineWidth() {
248096
248096
  return import_cli_width.default({ defaultWidth: 80, output: readline().output });
248097
248097
  }
248098
248098
 
248099
- // ../../node_modules/.bun/@inquirer+core@10.2.0+5268b8880d5ab6fa/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
248099
+ // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
248100
248100
  function usePointerPosition({ active, renderedItems, pageSize, loop }) {
248101
248101
  const state = useRef({
248102
248102
  lastPointer: active,
@@ -248162,7 +248162,7 @@ function usePagination({ items, active, renderItem, pageSize, loop = true }) {
248162
248162
  return pageBuffer.filter((line) => typeof line === "string").join(`
248163
248163
  `);
248164
248164
  }
248165
- // ../../node_modules/.bun/@inquirer+core@10.2.0+5268b8880d5ab6fa/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
248165
+ // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
248166
248166
  var import_mute_stream = __toESM(require_lib(), 1);
248167
248167
  import * as readline2 from "node:readline";
248168
248168
  import { AsyncResource as AsyncResource3 } from "node:async_hooks";
@@ -248375,7 +248375,7 @@ var {
248375
248375
  unload
248376
248376
  } = signalExitWrap(processOk(process3) ? new SignalExit(process3) : new SignalExitFallback);
248377
248377
 
248378
- // ../../node_modules/.bun/@inquirer+core@10.2.0+5268b8880d5ab6fa/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
248378
+ // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
248379
248379
  var import_ansi_escapes = __toESM(require_ansi_escapes(), 1);
248380
248380
  import { stripVTControlCharacters } from "node:util";
248381
248381
  var height = (content) => content.split(`
@@ -248445,7 +248445,7 @@ class ScreenManager {
248445
248445
  }
248446
248446
  }
248447
248447
 
248448
- // ../../node_modules/.bun/@inquirer+core@10.2.0+5268b8880d5ab6fa/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
248448
+ // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
248449
248449
  class PromisePolyfill extends Promise {
248450
248450
  static withResolver() {
248451
248451
  let resolve;
@@ -248458,7 +248458,7 @@ class PromisePolyfill extends Promise {
248458
248458
  }
248459
248459
  }
248460
248460
 
248461
- // ../../node_modules/.bun/@inquirer+core@10.2.0+5268b8880d5ab6fa/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
248461
+ // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
248462
248462
  function getCallSites() {
248463
248463
  const _prepareStackTrace = Error.prepareStackTrace;
248464
248464
  let result = [];
@@ -248544,7 +248544,7 @@ function createPrompt(view) {
248544
248544
  };
248545
248545
  return prompt;
248546
248546
  }
248547
- // ../../node_modules/.bun/@inquirer+core@10.2.0+5268b8880d5ab6fa/node_modules/@inquirer/core/dist/esm/lib/Separator.js
248547
+ // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/Separator.js
248548
248548
  var import_yoctocolors_cjs2 = __toESM(require_yoctocolors_cjs(), 1);
248549
248549
  class Separator {
248550
248550
  separator = import_yoctocolors_cjs2.default.dim(Array.from({ length: 15 }).join(esm_default.line));
@@ -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-prf4fd4e0b",
267218
+ version: "2.6.2-prf7f629f7",
267219
267219
  type: "module",
267220
267220
  private: false,
267221
267221
  license: "FSL-1.1-MIT",
@@ -267264,16 +267264,16 @@ var package_default = {
267264
267264
  },
267265
267265
  devDependencies: {
267266
267266
  "@commander-js/extra-typings": "14.0.0",
267267
- commander: "14.0.0",
267268
- "@inquirer/confirm": "5.1.16",
267267
+ commander: "14.0.1",
267268
+ "@inquirer/confirm": "5.1.17",
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-prf4fd4e0b",
267273
- "@settlemint/sdk-js": "2.6.2-prf4fd4e0b",
267274
- "@settlemint/sdk-utils": "2.6.2-prf4fd4e0b",
267275
- "@settlemint/sdk-viem": "2.6.2-prf4fd4e0b",
267276
- "@types/node": "24.3.3",
267272
+ "@settlemint/sdk-hasura": "2.6.2-prf7f629f7",
267273
+ "@settlemint/sdk-js": "2.6.2-prf7f629f7",
267274
+ "@settlemint/sdk-utils": "2.6.2-prf7f629f7",
267275
+ "@settlemint/sdk-viem": "2.6.2-prf7f629f7",
267276
+ "@types/node": "24.4.0",
267277
267277
  "@types/semver": "7.7.1",
267278
267278
  "@types/which": "3.0.4",
267279
267279
  "get-tsconfig": "4.10.1",
@@ -267289,7 +267289,7 @@ var package_default = {
267289
267289
  },
267290
267290
  peerDependencies: {
267291
267291
  hardhat: "<= 4",
267292
- "@settlemint/sdk-js": "2.6.2-prf4fd4e0b"
267292
+ "@settlemint/sdk-js": "2.6.2-prf7f629f7"
267293
267293
  },
267294
267294
  peerDependenciesMeta: {
267295
267295
  hardhat: {
@@ -273107,7 +273107,7 @@ function sanitizeName(value5, length = 35) {
273107
273107
  }).slice(0, length).replaceAll(/(^\d*)/g, "").replaceAll(/(-$)/g, "").replaceAll(/(^-)/g, "");
273108
273108
  }
273109
273109
 
273110
- // ../../node_modules/.bun/@inquirer+input@4.2.2+5268b8880d5ab6fa/node_modules/@inquirer/input/dist/esm/index.js
273110
+ // ../../node_modules/.bun/@inquirer+input@4.2.2+e9dc26b4af2fda18/node_modules/@inquirer/input/dist/esm/index.js
273111
273111
  var inputTheme = {
273112
273112
  validationFailureMode: "keep"
273113
273113
  };
@@ -273197,7 +273197,7 @@ async function subgraphNamePrompt({
273197
273197
  return sanitizeName(subgraphName);
273198
273198
  }
273199
273199
 
273200
- // ../../node_modules/.bun/@inquirer+select@4.3.2+5268b8880d5ab6fa/node_modules/@inquirer/select/dist/esm/index.js
273200
+ // ../../node_modules/.bun/@inquirer+select@4.3.2+e9dc26b4af2fda18/node_modules/@inquirer/select/dist/esm/index.js
273201
273201
  var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
273202
273202
  var import_ansi_escapes2 = __toESM(require_ansi_escapes(), 1);
273203
273203
  var selectTheme = {
@@ -298936,7 +298936,464 @@ function extractInfoFromBody(body) {
298936
298936
  }
298937
298937
  }
298938
298938
 
298939
- // ../../node_modules/.bun/@inquirer+confirm@5.1.16+5268b8880d5ab6fa/node_modules/@inquirer/confirm/dist/esm/index.js
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
298940
299397
  function getBooleanValue(value5, defaultValue) {
298941
299398
  let answer = defaultValue !== false;
298942
299399
  if (/^(y|yes)/i.test(value5))
@@ -298948,21 +299405,21 @@ function getBooleanValue(value5, defaultValue) {
298948
299405
  function boolToString(value5) {
298949
299406
  return value5 ? "Yes" : "No";
298950
299407
  }
298951
- var esm_default4 = createPrompt((config3, done) => {
299408
+ var esm_default4 = createPrompt2((config3, done) => {
298952
299409
  const { transformer = boolToString } = config3;
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) => {
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) => {
298958
299415
  if (status !== "idle")
298959
299416
  return;
298960
- if (isEnterKey(key2)) {
299417
+ if (isEnterKey2(key3)) {
298961
299418
  const answer = getBooleanValue(value5, config3.default);
298962
299419
  setValue(transformer(answer));
298963
299420
  setStatus("done");
298964
299421
  done(answer);
298965
- } else if (isTabKey(key2)) {
299422
+ } else if (isTabKey2(key3)) {
298966
299423
  const answer = boolToString(!getBooleanValue(value5, config3.default));
298967
299424
  rl.clearLine(0);
298968
299425
  rl.write(answer);
@@ -298982,8 +299439,8 @@ var esm_default4 = createPrompt((config3, done) => {
298982
299439
  return `${prefix} ${message}${defaultValue} ${formattedValue}`;
298983
299440
  });
298984
299441
 
298985
- // ../../node_modules/.bun/@inquirer+password@4.0.18+5268b8880d5ab6fa/node_modules/@inquirer/password/dist/esm/index.js
298986
- var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
299442
+ // ../../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);
298987
299444
  var esm_default5 = createPrompt((config3, done) => {
298988
299445
  const { validate: validate8 = () => true } = config3;
298989
299446
  const theme = makeTheme(config3.theme);
@@ -298991,11 +299448,11 @@ var esm_default5 = createPrompt((config3, done) => {
298991
299448
  const [errorMsg, setError] = useState();
298992
299449
  const [value5, setValue] = useState("");
298993
299450
  const prefix = usePrefix({ status, theme });
298994
- useKeypress(async (key2, rl) => {
299451
+ useKeypress(async (key3, rl) => {
298995
299452
  if (status !== "idle") {
298996
299453
  return;
298997
299454
  }
298998
- if (isEnterKey(key2)) {
299455
+ if (isEnterKey(key3)) {
298999
299456
  const answer = value5;
299000
299457
  setStatus("loading");
299001
299458
  const isValid = await validate8(answer);
@@ -299020,7 +299477,7 @@ var esm_default5 = createPrompt((config3, done) => {
299020
299477
  const maskChar = typeof config3.mask === "string" ? config3.mask : "*";
299021
299478
  formattedValue = maskChar.repeat(value5.length);
299022
299479
  } else if (status !== "done") {
299023
- helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes3.default.cursorHide}`;
299480
+ helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes4.default.cursorHide}`;
299024
299481
  }
299025
299482
  if (status === "done") {
299026
299483
  formattedValue = theme.style.answer(formattedValue);
@@ -300698,7 +301155,7 @@ var basename2 = function(p5, extension) {
300698
301155
  return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
300699
301156
  };
300700
301157
  // ../../node_modules/.bun/defu@6.1.4/node_modules/defu/dist/defu.mjs
300701
- function isPlainObject4(value5) {
301158
+ function isPlainObject5(value5) {
300702
301159
  if (value5 === null || typeof value5 !== "object") {
300703
301160
  return false;
300704
301161
  }
@@ -300715,27 +301172,27 @@ function isPlainObject4(value5) {
300715
301172
  return true;
300716
301173
  }
300717
301174
  function _defu(baseObject, defaults2, namespace = ".", merger) {
300718
- if (!isPlainObject4(defaults2)) {
301175
+ if (!isPlainObject5(defaults2)) {
300719
301176
  return _defu(baseObject, {}, namespace, merger);
300720
301177
  }
300721
301178
  const object2 = Object.assign({}, defaults2);
300722
- for (const key2 in baseObject) {
300723
- if (key2 === "__proto__" || key2 === "constructor") {
301179
+ for (const key3 in baseObject) {
301180
+ if (key3 === "__proto__" || key3 === "constructor") {
300724
301181
  continue;
300725
301182
  }
300726
- const value5 = baseObject[key2];
301183
+ const value5 = baseObject[key3];
300727
301184
  if (value5 === null || value5 === undefined) {
300728
301185
  continue;
300729
301186
  }
300730
- if (merger && merger(object2, key2, value5, namespace)) {
301187
+ if (merger && merger(object2, key3, value5, namespace)) {
300731
301188
  continue;
300732
301189
  }
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);
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);
300737
301194
  } else {
300738
- object2[key2] = value5;
301195
+ object2[key3] = value5;
300739
301196
  }
300740
301197
  }
300741
301198
  return object2;
@@ -300744,15 +301201,15 @@ function createDefu(merger) {
300744
301201
  return (...arguments_5) => arguments_5.reduce((p5, c3) => _defu(p5, c3, "", merger), {});
300745
301202
  }
300746
301203
  var defu = createDefu();
300747
- var defuFn = createDefu((object2, key2, currentValue) => {
300748
- if (object2[key2] !== undefined && typeof currentValue === "function") {
300749
- object2[key2] = currentValue(object2[key2]);
301204
+ var defuFn = createDefu((object2, key3, currentValue) => {
301205
+ if (object2[key3] !== undefined && typeof currentValue === "function") {
301206
+ object2[key3] = currentValue(object2[key3]);
300750
301207
  return true;
300751
301208
  }
300752
301209
  });
300753
- var defuArrayFn = createDefu((object2, key2, currentValue) => {
300754
- if (Array.isArray(object2[key2]) && typeof currentValue === "function") {
300755
- object2[key2] = currentValue(object2[key2]);
301210
+ var defuArrayFn = createDefu((object2, key3, currentValue) => {
301211
+ if (Array.isArray(object2[key3]) && typeof currentValue === "function") {
301212
+ object2[key3] = currentValue(object2[key3]);
300756
301213
  return true;
300757
301214
  }
300758
301215
  });
@@ -303458,11 +303915,11 @@ function cacheDirectory() {
303458
303915
  }
303459
303916
  function normalizeHeaders(headers = {}) {
303460
303917
  const normalized = {};
303461
- for (const [key2, value5] of Object.entries(headers)) {
303918
+ for (const [key3, value5] of Object.entries(headers)) {
303462
303919
  if (!value5) {
303463
303920
  continue;
303464
303921
  }
303465
- normalized[key2.toLowerCase()] = value5;
303922
+ normalized[key3.toLowerCase()] = value5;
303466
303923
  }
303467
303924
  return normalized;
303468
303925
  }
@@ -306711,7 +307168,7 @@ function jsonOutput(data) {
306711
307168
  var composer = require_composer();
306712
307169
  var Document = require_Document();
306713
307170
  var Schema = require_Schema();
306714
- var errors4 = require_errors3();
307171
+ var errors5 = require_errors3();
306715
307172
  var Alias = require_Alias();
306716
307173
  var identity2 = require_identity();
306717
307174
  var Pair = require_Pair();
@@ -306727,9 +307184,9 @@ var visit2 = require_visit();
306727
307184
  var $Composer = composer.Composer;
306728
307185
  var $Document = Document.Document;
306729
307186
  var $Schema = Schema.Schema;
306730
- var $YAMLError = errors4.YAMLError;
306731
- var $YAMLParseError = errors4.YAMLParseError;
306732
- var $YAMLWarning = errors4.YAMLWarning;
307187
+ var $YAMLError = errors5.YAMLError;
307188
+ var $YAMLParseError = errors5.YAMLParseError;
307189
+ var $YAMLWarning = errors5.YAMLWarning;
306733
307190
  var $Alias = Alias.Alias;
306734
307191
  var $isAlias = identity2.isAlias;
306735
307192
  var $isCollection = identity2.isCollection;
@@ -307336,11 +307793,11 @@ function createCommand4() {
307336
307793
 
307337
307794
  // src/utils/commands/passthrough-options.ts
307338
307795
  function mapPassthroughOptions(options, command) {
307339
- const optionArgs = Object.entries(options).map(([key2, value5]) => {
307796
+ const optionArgs = Object.entries(options).map(([key3, value5]) => {
307340
307797
  if (value5 === true) {
307341
- return `--${key2}`;
307798
+ return `--${key3}`;
307342
307799
  }
307343
- return `--${key2}=${value5}`;
307800
+ return `--${key3}=${value5}`;
307344
307801
  });
307345
307802
  return [...optionArgs, ...command.args];
307346
307803
  }
@@ -308593,4 +309050,4 @@ async function sdkCliCommand(argv = process.argv) {
308593
309050
  // src/cli.ts
308594
309051
  sdkCliCommand();
308595
309052
 
308596
- //# debugId=24ED7EC640AE07B164756E2164756E21
309053
+ //# debugId=1C66FF92ABB1E7C564756E2164756E21