@settlemint/sdk-cli 2.6.2-main15e13fd9 → 2.6.2-main31006257

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 +105 -211
  2. package/dist/cli.js.map +10 -10
  3. package/package.json +13 -13
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 = {};
@@ -3666,124 +3666,6 @@ var require_lib = __commonJS((exports, module) => {
3666
3666
  module.exports = MuteStream;
3667
3667
  });
3668
3668
 
3669
- // ../../node_modules/.bun/ansi-escapes@4.3.2/node_modules/ansi-escapes/index.js
3670
- var require_ansi_escapes = __commonJS((exports, module) => {
3671
- var ansiEscapes = exports;
3672
- exports.default = ansiEscapes;
3673
- var ESC = "\x1B[";
3674
- var OSC = "\x1B]";
3675
- var BEL = "\x07";
3676
- var SEP = ";";
3677
- var isTerminalApp = process.env.TERM_PROGRAM === "Apple_Terminal";
3678
- ansiEscapes.cursorTo = (x, y) => {
3679
- if (typeof x !== "number") {
3680
- throw new TypeError("The `x` argument is required");
3681
- }
3682
- if (typeof y !== "number") {
3683
- return ESC + (x + 1) + "G";
3684
- }
3685
- return ESC + (y + 1) + ";" + (x + 1) + "H";
3686
- };
3687
- ansiEscapes.cursorMove = (x, y) => {
3688
- if (typeof x !== "number") {
3689
- throw new TypeError("The `x` argument is required");
3690
- }
3691
- let ret = "";
3692
- if (x < 0) {
3693
- ret += ESC + -x + "D";
3694
- } else if (x > 0) {
3695
- ret += ESC + x + "C";
3696
- }
3697
- if (y < 0) {
3698
- ret += ESC + -y + "A";
3699
- } else if (y > 0) {
3700
- ret += ESC + y + "B";
3701
- }
3702
- return ret;
3703
- };
3704
- ansiEscapes.cursorUp = (count = 1) => ESC + count + "A";
3705
- ansiEscapes.cursorDown = (count = 1) => ESC + count + "B";
3706
- ansiEscapes.cursorForward = (count = 1) => ESC + count + "C";
3707
- ansiEscapes.cursorBackward = (count = 1) => ESC + count + "D";
3708
- ansiEscapes.cursorLeft = ESC + "G";
3709
- ansiEscapes.cursorSavePosition = isTerminalApp ? "\x1B7" : ESC + "s";
3710
- ansiEscapes.cursorRestorePosition = isTerminalApp ? "\x1B8" : ESC + "u";
3711
- ansiEscapes.cursorGetPosition = ESC + "6n";
3712
- ansiEscapes.cursorNextLine = ESC + "E";
3713
- ansiEscapes.cursorPrevLine = ESC + "F";
3714
- ansiEscapes.cursorHide = ESC + "?25l";
3715
- ansiEscapes.cursorShow = ESC + "?25h";
3716
- ansiEscapes.eraseLines = (count) => {
3717
- let clear = "";
3718
- for (let i = 0;i < count; i++) {
3719
- clear += ansiEscapes.eraseLine + (i < count - 1 ? ansiEscapes.cursorUp() : "");
3720
- }
3721
- if (count) {
3722
- clear += ansiEscapes.cursorLeft;
3723
- }
3724
- return clear;
3725
- };
3726
- ansiEscapes.eraseEndLine = ESC + "K";
3727
- ansiEscapes.eraseStartLine = ESC + "1K";
3728
- ansiEscapes.eraseLine = ESC + "2K";
3729
- ansiEscapes.eraseDown = ESC + "J";
3730
- ansiEscapes.eraseUp = ESC + "1J";
3731
- ansiEscapes.eraseScreen = ESC + "2J";
3732
- ansiEscapes.scrollUp = ESC + "S";
3733
- ansiEscapes.scrollDown = ESC + "T";
3734
- ansiEscapes.clearScreen = "\x1Bc";
3735
- ansiEscapes.clearTerminal = process.platform === "win32" ? `${ansiEscapes.eraseScreen}${ESC}0f` : `${ansiEscapes.eraseScreen}${ESC}3J${ESC}H`;
3736
- ansiEscapes.beep = BEL;
3737
- ansiEscapes.link = (text, url) => {
3738
- return [
3739
- OSC,
3740
- "8",
3741
- SEP,
3742
- SEP,
3743
- url,
3744
- BEL,
3745
- text,
3746
- OSC,
3747
- "8",
3748
- SEP,
3749
- SEP,
3750
- BEL
3751
- ].join("");
3752
- };
3753
- ansiEscapes.image = (buffer, options = {}) => {
3754
- let ret = `${OSC}1337;File=inline=1`;
3755
- if (options.width) {
3756
- ret += `;width=${options.width}`;
3757
- }
3758
- if (options.height) {
3759
- ret += `;height=${options.height}`;
3760
- }
3761
- if (options.preserveAspectRatio === false) {
3762
- ret += ";preserveAspectRatio=0";
3763
- }
3764
- return ret + ":" + buffer.toString("base64") + BEL;
3765
- };
3766
- ansiEscapes.iTerm = {
3767
- setCwd: (cwd = process.cwd()) => `${OSC}50;CurrentDir=${cwd}${BEL}`,
3768
- annotation: (message, options = {}) => {
3769
- let ret = `${OSC}1337;`;
3770
- const hasX = typeof options.x !== "undefined";
3771
- const hasY = typeof options.y !== "undefined";
3772
- if ((hasX || hasY) && !(hasX && hasY && typeof options.length !== "undefined")) {
3773
- throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");
3774
- }
3775
- message = message.replace(/\|/g, "");
3776
- ret += options.isHidden ? "AddHiddenAnnotation=" : "AddAnnotation=";
3777
- if (options.length > 0) {
3778
- ret += (hasX ? [message, options.length, options.x, options.y] : [options.length, message]).join("|");
3779
- } else {
3780
- ret += message;
3781
- }
3782
- return ret + BEL;
3783
- }
3784
- };
3785
- });
3786
-
3787
3669
  // ../../node_modules/.bun/console-table-printer@2.14.6/node_modules/console-table-printer/dist/src/utils/colored-console-line.js
3788
3670
  var require_colored_console_line = __commonJS((exports) => {
3789
3671
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -247494,7 +247376,7 @@ var require_public_api = __commonJS((exports) => {
247494
247376
  exports.stringify = stringify5;
247495
247377
  });
247496
247378
 
247497
- // ../../node_modules/.bun/@commander-js+extra-typings@14.0.0+62ffbc41b7dfe13b/node_modules/@commander-js/extra-typings/esm.mjs
247379
+ // ../../node_modules/.bun/@commander-js+extra-typings@14.0.0+408f7c8952c8497c/node_modules/@commander-js/extra-typings/esm.mjs
247498
247380
  var import__ = __toESM(require_extra_typings(), 1);
247499
247381
  var {
247500
247382
  program,
@@ -247510,14 +247392,14 @@ var {
247510
247392
  Help
247511
247393
  } = import__.default;
247512
247394
 
247513
- // ../../node_modules/.bun/@inquirer+core@10.2.0+375c7eb1c8f873fc/node_modules/@inquirer/core/dist/esm/lib/key.js
247395
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/key.js
247514
247396
  var isUpKey = (key) => key.name === "up";
247515
247397
  var isDownKey = (key) => key.name === "down";
247516
247398
  var isBackspaceKey = (key) => key.name === "backspace";
247517
247399
  var isTabKey = (key) => key.name === "tab";
247518
247400
  var isNumberKey = (key) => "1234567890".includes(key.name);
247519
247401
  var isEnterKey = (key) => key.name === "enter" || key.name === "return";
247520
- // ../../node_modules/.bun/@inquirer+core@10.2.0+375c7eb1c8f873fc/node_modules/@inquirer/core/dist/esm/lib/errors.js
247402
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/errors.js
247521
247403
  class AbortPromptError extends Error {
247522
247404
  name = "AbortPromptError";
247523
247405
  message = "Prompt was aborted";
@@ -247543,10 +247425,10 @@ class HookError extends Error {
247543
247425
  class ValidationError extends Error {
247544
247426
  name = "ValidationError";
247545
247427
  }
247546
- // ../../node_modules/.bun/@inquirer+core@10.2.0+375c7eb1c8f873fc/node_modules/@inquirer/core/dist/esm/lib/use-state.js
247428
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-state.js
247547
247429
  import { AsyncResource as AsyncResource2 } from "node:async_hooks";
247548
247430
 
247549
- // ../../node_modules/.bun/@inquirer+core@10.2.0+375c7eb1c8f873fc/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
247431
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
247550
247432
  import { AsyncLocalStorage, AsyncResource } from "node:async_hooks";
247551
247433
  var hookStorage = new AsyncLocalStorage;
247552
247434
  function createStore(rl) {
@@ -247651,7 +247533,7 @@ var effectScheduler = {
247651
247533
  }
247652
247534
  };
247653
247535
 
247654
- // ../../node_modules/.bun/@inquirer+core@10.2.0+375c7eb1c8f873fc/node_modules/@inquirer/core/dist/esm/lib/use-state.js
247536
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-state.js
247655
247537
  function useState(defaultValue) {
247656
247538
  return withPointer((pointer) => {
247657
247539
  const setState = AsyncResource2.bind(function setState(newValue) {
@@ -247669,7 +247551,7 @@ function useState(defaultValue) {
247669
247551
  });
247670
247552
  }
247671
247553
 
247672
- // ../../node_modules/.bun/@inquirer+core@10.2.0+375c7eb1c8f873fc/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
247554
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
247673
247555
  function useEffect(cb, depArray) {
247674
247556
  withPointer((pointer) => {
247675
247557
  const oldDeps = pointer.get();
@@ -247681,7 +247563,7 @@ function useEffect(cb, depArray) {
247681
247563
  });
247682
247564
  }
247683
247565
 
247684
- // ../../node_modules/.bun/@inquirer+core@10.2.0+375c7eb1c8f873fc/node_modules/@inquirer/core/dist/esm/lib/theme.js
247566
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/theme.js
247685
247567
  var import_yoctocolors_cjs = __toESM(require_yoctocolors_cjs(), 1);
247686
247568
 
247687
247569
  // ../../node_modules/.bun/@inquirer+figures@1.0.13/node_modules/@inquirer/figures/dist/esm/index.js
@@ -247970,7 +247852,7 @@ var figures = shouldUseMain ? mainSymbols : fallbackSymbols;
247970
247852
  var esm_default = figures;
247971
247853
  var replacements = Object.entries(specialMainSymbols);
247972
247854
 
247973
- // ../../node_modules/.bun/@inquirer+core@10.2.0+375c7eb1c8f873fc/node_modules/@inquirer/core/dist/esm/lib/theme.js
247855
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/theme.js
247974
247856
  var defaultTheme = {
247975
247857
  prefix: {
247976
247858
  idle: import_yoctocolors_cjs.default.blue("?"),
@@ -247991,7 +247873,7 @@ var defaultTheme = {
247991
247873
  }
247992
247874
  };
247993
247875
 
247994
- // ../../node_modules/.bun/@inquirer+core@10.2.0+375c7eb1c8f873fc/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
247876
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
247995
247877
  function isPlainObject(value) {
247996
247878
  if (typeof value !== "object" || value === null)
247997
247879
  return false;
@@ -248019,7 +247901,7 @@ function makeTheme(...themes) {
248019
247901
  return deepMerge(...themesToMerge);
248020
247902
  }
248021
247903
 
248022
- // ../../node_modules/.bun/@inquirer+core@10.2.0+375c7eb1c8f873fc/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
247904
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
248023
247905
  function usePrefix({ status = "idle", theme }) {
248024
247906
  const [showLoader, setShowLoader] = useState(false);
248025
247907
  const [tick, setTick] = useState(0);
@@ -248049,7 +247931,7 @@ function usePrefix({ status = "idle", theme }) {
248049
247931
  const iconName = status === "loading" ? "idle" : status;
248050
247932
  return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
248051
247933
  }
248052
- // ../../node_modules/.bun/@inquirer+core@10.2.0+375c7eb1c8f873fc/node_modules/@inquirer/core/dist/esm/lib/use-memo.js
247934
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-memo.js
248053
247935
  function useMemo(fn, dependencies) {
248054
247936
  return withPointer((pointer) => {
248055
247937
  const prev = pointer.get();
@@ -248061,11 +247943,11 @@ function useMemo(fn, dependencies) {
248061
247943
  return prev.value;
248062
247944
  });
248063
247945
  }
248064
- // ../../node_modules/.bun/@inquirer+core@10.2.0+375c7eb1c8f873fc/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
247946
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
248065
247947
  function useRef(val) {
248066
247948
  return useState({ current: val })[0];
248067
247949
  }
248068
- // ../../node_modules/.bun/@inquirer+core@10.2.0+375c7eb1c8f873fc/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
247950
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
248069
247951
  function useKeypress(userHandler) {
248070
247952
  const signal = useRef(userHandler);
248071
247953
  signal.current = userHandler;
@@ -248083,7 +247965,7 @@ function useKeypress(userHandler) {
248083
247965
  };
248084
247966
  }, []);
248085
247967
  }
248086
- // ../../node_modules/.bun/@inquirer+core@10.2.0+375c7eb1c8f873fc/node_modules/@inquirer/core/dist/esm/lib/utils.js
247968
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/utils.js
248087
247969
  var import_cli_width = __toESM(require_cli_width(), 1);
248088
247970
  var import_wrap_ansi = __toESM(require_wrap_ansi(), 1);
248089
247971
  function breakLines(content, width) {
@@ -248096,7 +247978,7 @@ function readlineWidth() {
248096
247978
  return import_cli_width.default({ defaultWidth: 80, output: readline().output });
248097
247979
  }
248098
247980
 
248099
- // ../../node_modules/.bun/@inquirer+core@10.2.0+375c7eb1c8f873fc/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
247981
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
248100
247982
  function usePointerPosition({ active, renderedItems, pageSize, loop }) {
248101
247983
  const state = useRef({
248102
247984
  lastPointer: active,
@@ -248162,7 +248044,7 @@ function usePagination({ items, active, renderItem, pageSize, loop = true }) {
248162
248044
  return pageBuffer.filter((line) => typeof line === "string").join(`
248163
248045
  `);
248164
248046
  }
248165
- // ../../node_modules/.bun/@inquirer+core@10.2.0+375c7eb1c8f873fc/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
248047
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
248166
248048
  var import_mute_stream = __toESM(require_lib(), 1);
248167
248049
  import * as readline2 from "node:readline";
248168
248050
  import { AsyncResource as AsyncResource3 } from "node:async_hooks";
@@ -248375,16 +248257,30 @@ var {
248375
248257
  unload
248376
248258
  } = signalExitWrap(processOk(process3) ? new SignalExit(process3) : new SignalExitFallback);
248377
248259
 
248378
- // ../../node_modules/.bun/@inquirer+core@10.2.0+375c7eb1c8f873fc/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
248379
- var import_ansi_escapes = __toESM(require_ansi_escapes(), 1);
248260
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
248380
248261
  import { stripVTControlCharacters } from "node:util";
248262
+
248263
+ // ../../node_modules/.bun/@inquirer+ansi@1.0.0/node_modules/@inquirer/ansi/dist/esm/index.js
248264
+ var ESC = "\x1B[";
248265
+ var cursorLeft = ESC + "G";
248266
+ var cursorHide = ESC + "?25l";
248267
+ var cursorShow = ESC + "?25h";
248268
+ var cursorUp = (rows = 1) => rows > 0 ? `${ESC}${rows}A` : "";
248269
+ var cursorDown = (rows = 1) => rows > 0 ? `${ESC}${rows}B` : "";
248270
+ var cursorTo = (x, y) => {
248271
+ if (typeof y === "number" && !Number.isNaN(y)) {
248272
+ return `${ESC}${y + 1};${x + 1}H`;
248273
+ }
248274
+ return `${ESC}${x + 1}G`;
248275
+ };
248276
+ var eraseLine = ESC + "2K";
248277
+ var eraseLines = (lines) => lines > 0 ? (eraseLine + cursorUp(1)).repeat(lines - 1) + eraseLine + cursorLeft : "";
248278
+
248279
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
248381
248280
  var height = (content) => content.split(`
248382
248281
  `).length;
248383
248282
  var lastLine = (content) => content.split(`
248384
248283
  `).pop() ?? "";
248385
- function cursorDown(n) {
248386
- return n > 0 ? import_ansi_escapes.default.cursorDown(n) : "";
248387
- }
248388
248284
 
248389
248285
  class ScreenManager {
248390
248286
  height = 0;
@@ -248421,31 +248317,31 @@ class ScreenManager {
248421
248317
  const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
248422
248318
  const bottomContentHeight = promptLineUpDiff + (bottomContent ? height(bottomContent) : 0);
248423
248319
  if (bottomContentHeight > 0)
248424
- output += import_ansi_escapes.default.cursorUp(bottomContentHeight);
248425
- output += import_ansi_escapes.default.cursorTo(this.cursorPos.cols);
248426
- this.write(cursorDown(this.extraLinesUnderPrompt) + import_ansi_escapes.default.eraseLines(this.height) + output);
248320
+ output += cursorUp(bottomContentHeight);
248321
+ output += cursorTo(this.cursorPos.cols);
248322
+ this.write(cursorDown(this.extraLinesUnderPrompt) + eraseLines(this.height) + output);
248427
248323
  this.extraLinesUnderPrompt = bottomContentHeight;
248428
248324
  this.height = height(output);
248429
248325
  }
248430
248326
  checkCursorPos() {
248431
248327
  const cursorPos = this.rl.getCursorPos();
248432
248328
  if (cursorPos.cols !== this.cursorPos.cols) {
248433
- this.write(import_ansi_escapes.default.cursorTo(cursorPos.cols));
248329
+ this.write(cursorTo(cursorPos.cols));
248434
248330
  this.cursorPos = cursorPos;
248435
248331
  }
248436
248332
  }
248437
248333
  done({ clearContent }) {
248438
248334
  this.rl.setPrompt("");
248439
248335
  let output = cursorDown(this.extraLinesUnderPrompt);
248440
- output += clearContent ? import_ansi_escapes.default.eraseLines(this.height) : `
248336
+ output += clearContent ? eraseLines(this.height) : `
248441
248337
  `;
248442
- output += import_ansi_escapes.default.cursorShow;
248338
+ output += cursorShow;
248443
248339
  this.write(output);
248444
248340
  this.rl.close();
248445
248341
  }
248446
248342
  }
248447
248343
 
248448
- // ../../node_modules/.bun/@inquirer+core@10.2.0+375c7eb1c8f873fc/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
248344
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
248449
248345
  class PromisePolyfill extends Promise {
248450
248346
  static withResolver() {
248451
248347
  let resolve;
@@ -248458,7 +248354,7 @@ class PromisePolyfill extends Promise {
248458
248354
  }
248459
248355
  }
248460
248356
 
248461
- // ../../node_modules/.bun/@inquirer+core@10.2.0+375c7eb1c8f873fc/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
248357
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
248462
248358
  function getCallSites() {
248463
248359
  const _prepareStackTrace = Error.prepareStackTrace;
248464
248360
  let result = [];
@@ -248544,7 +248440,7 @@ function createPrompt(view) {
248544
248440
  };
248545
248441
  return prompt;
248546
248442
  }
248547
- // ../../node_modules/.bun/@inquirer+core@10.2.0+375c7eb1c8f873fc/node_modules/@inquirer/core/dist/esm/lib/Separator.js
248443
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/Separator.js
248548
248444
  var import_yoctocolors_cjs2 = __toESM(require_yoctocolors_cjs(), 1);
248549
248445
  class Separator {
248550
248446
  separator = import_yoctocolors_cjs2.default.dim(Array.from({ length: 15 }).join(esm_default.line));
@@ -267215,7 +267111,7 @@ function pruneCurrentEnv(currentEnv, env2) {
267215
267111
  var package_default = {
267216
267112
  name: "@settlemint/sdk-cli",
267217
267113
  description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
267218
- version: "2.6.2-main15e13fd9",
267114
+ version: "2.6.2-main31006257",
267219
267115
  type: "module",
267220
267116
  private: false,
267221
267117
  license: "FSL-1.1-MIT",
@@ -267258,22 +267154,22 @@ var package_default = {
267258
267154
  },
267259
267155
  dependencies: {
267260
267156
  "@gql.tada/cli-utils": "1.7.1",
267261
- "@inquirer/core": "10.2.0",
267157
+ "@inquirer/core": "10.2.2",
267262
267158
  "node-fetch-native": "1.6.7",
267263
267159
  zod: "^4"
267264
267160
  },
267265
267161
  devDependencies: {
267266
267162
  "@commander-js/extra-typings": "14.0.0",
267267
- commander: "14.0.0",
267268
- "@inquirer/confirm": "5.1.16",
267269
- "@inquirer/input": "4.2.2",
267270
- "@inquirer/password": "4.0.18",
267271
- "@inquirer/select": "4.3.2",
267272
- "@settlemint/sdk-hasura": "2.6.2-main15e13fd9",
267273
- "@settlemint/sdk-js": "2.6.2-main15e13fd9",
267274
- "@settlemint/sdk-utils": "2.6.2-main15e13fd9",
267275
- "@settlemint/sdk-viem": "2.6.2-main15e13fd9",
267276
- "@types/node": "24.3.1",
267163
+ commander: "14.0.1",
267164
+ "@inquirer/confirm": "5.1.18",
267165
+ "@inquirer/input": "4.2.4",
267166
+ "@inquirer/password": "4.0.20",
267167
+ "@inquirer/select": "4.3.4",
267168
+ "@settlemint/sdk-hasura": "2.6.2-main31006257",
267169
+ "@settlemint/sdk-js": "2.6.2-main31006257",
267170
+ "@settlemint/sdk-utils": "2.6.2-main31006257",
267171
+ "@settlemint/sdk-viem": "2.6.2-main31006257",
267172
+ "@types/node": "24.4.0",
267277
267173
  "@types/semver": "7.7.1",
267278
267174
  "@types/which": "3.0.4",
267279
267175
  "get-tsconfig": "4.10.1",
@@ -267289,7 +267185,7 @@ var package_default = {
267289
267185
  },
267290
267186
  peerDependencies: {
267291
267187
  hardhat: "<= 4",
267292
- "@settlemint/sdk-js": "2.6.2-main15e13fd9"
267188
+ "@settlemint/sdk-js": "2.6.2-main31006257"
267293
267189
  },
267294
267190
  peerDependenciesMeta: {
267295
267191
  hardhat: {
@@ -273107,7 +273003,7 @@ function sanitizeName(value5, length = 35) {
273107
273003
  }).slice(0, length).replaceAll(/(^\d*)/g, "").replaceAll(/(-$)/g, "").replaceAll(/(^-)/g, "");
273108
273004
  }
273109
273005
 
273110
- // ../../node_modules/.bun/@inquirer+input@4.2.2+375c7eb1c8f873fc/node_modules/@inquirer/input/dist/esm/index.js
273006
+ // ../../node_modules/.bun/@inquirer+input@4.2.4+e9dc26b4af2fda18/node_modules/@inquirer/input/dist/esm/index.js
273111
273007
  var inputTheme = {
273112
273008
  validationFailureMode: "keep"
273113
273009
  };
@@ -273197,9 +273093,8 @@ async function subgraphNamePrompt({
273197
273093
  return sanitizeName(subgraphName);
273198
273094
  }
273199
273095
 
273200
- // ../../node_modules/.bun/@inquirer+select@4.3.2+375c7eb1c8f873fc/node_modules/@inquirer/select/dist/esm/index.js
273096
+ // ../../node_modules/.bun/@inquirer+select@4.3.4+e9dc26b4af2fda18/node_modules/@inquirer/select/dist/esm/index.js
273201
273097
  var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
273202
- var import_ansi_escapes2 = __toESM(require_ansi_escapes(), 1);
273203
273098
  var selectTheme = {
273204
273099
  icon: { cursor: esm_default.pointer },
273205
273100
  style: {
@@ -273350,7 +273245,7 @@ ${theme.style.help(`(${config3.instructions?.pager ?? "Use arrow keys to reveal
273350
273245
  const choiceDescription = selectedChoice.description ? `
273351
273246
  ${theme.style.description(selectedChoice.description)}` : ``;
273352
273247
  return `${[prefix, message, helpTipTop].filter(Boolean).join(" ")}
273353
- ${page}${helpTipBottom}${choiceDescription}${import_ansi_escapes2.default.cursorHide}`;
273248
+ ${page}${helpTipBottom}${choiceDescription}${cursorHide}`;
273354
273249
  });
273355
273250
 
273356
273251
  // src/prompts/smart-contract-set/subgraph.prompt.ts
@@ -298936,7 +298831,7 @@ function extractInfoFromBody(body) {
298936
298831
  }
298937
298832
  }
298938
298833
 
298939
- // ../../node_modules/.bun/@inquirer+confirm@5.1.16+375c7eb1c8f873fc/node_modules/@inquirer/confirm/dist/esm/index.js
298834
+ // ../../node_modules/.bun/@inquirer+confirm@5.1.18+e9dc26b4af2fda18/node_modules/@inquirer/confirm/dist/esm/index.js
298940
298835
  function getBooleanValue(value5, defaultValue) {
298941
298836
  let answer = defaultValue !== false;
298942
298837
  if (/^(y|yes)/i.test(value5))
@@ -298982,8 +298877,7 @@ var esm_default4 = createPrompt((config3, done) => {
298982
298877
  return `${prefix} ${message}${defaultValue} ${formattedValue}`;
298983
298878
  });
298984
298879
 
298985
- // ../../node_modules/.bun/@inquirer+password@4.0.18+375c7eb1c8f873fc/node_modules/@inquirer/password/dist/esm/index.js
298986
- var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
298880
+ // ../../node_modules/.bun/@inquirer+password@4.0.20+e9dc26b4af2fda18/node_modules/@inquirer/password/dist/esm/index.js
298987
298881
  var esm_default5 = createPrompt((config3, done) => {
298988
298882
  const { validate: validate8 = () => true } = config3;
298989
298883
  const theme = makeTheme(config3.theme);
@@ -299020,7 +298914,7 @@ var esm_default5 = createPrompt((config3, done) => {
299020
298914
  const maskChar = typeof config3.mask === "string" ? config3.mask : "*";
299021
298915
  formattedValue = maskChar.repeat(value5.length);
299022
298916
  } else if (status !== "done") {
299023
- helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes3.default.cursorHide}`;
298917
+ helpTip = `${theme.style.help("[input is masked]")}${cursorHide}`;
299024
298918
  }
299025
298919
  if (status === "done") {
299026
298920
  formattedValue = theme.style.answer(formattedValue);
@@ -308593,4 +308487,4 @@ async function sdkCliCommand(argv = process.argv) {
308593
308487
  // src/cli.ts
308594
308488
  sdkCliCommand();
308595
308489
 
308596
- //# debugId=30FC633970BE67D164756E2164756E21
308490
+ //# debugId=1667AF2316A3B63664756E2164756E21