@settlemint/sdk-cli 2.6.2-pr938f41c1 → 2.6.2-pr99fe5da2

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 +734 -719
  2. package/dist/cli.js.map +21 -20
  3. package/package.json +10 -10
package/dist/cli.js CHANGED
@@ -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 });
@@ -231946,6 +231828,124 @@ var require_slugify = __commonJS((exports, module) => {
231946
231828
  });
231947
231829
  });
231948
231830
 
231831
+ // ../../node_modules/.bun/ansi-escapes@4.3.2/node_modules/ansi-escapes/index.js
231832
+ var require_ansi_escapes = __commonJS((exports, module) => {
231833
+ var ansiEscapes = exports;
231834
+ exports.default = ansiEscapes;
231835
+ var ESC2 = "\x1B[";
231836
+ var OSC = "\x1B]";
231837
+ var BEL = "\x07";
231838
+ var SEP = ";";
231839
+ var isTerminalApp = process.env.TERM_PROGRAM === "Apple_Terminal";
231840
+ ansiEscapes.cursorTo = (x6, y4) => {
231841
+ if (typeof x6 !== "number") {
231842
+ throw new TypeError("The `x` argument is required");
231843
+ }
231844
+ if (typeof y4 !== "number") {
231845
+ return ESC2 + (x6 + 1) + "G";
231846
+ }
231847
+ return ESC2 + (y4 + 1) + ";" + (x6 + 1) + "H";
231848
+ };
231849
+ ansiEscapes.cursorMove = (x6, y4) => {
231850
+ if (typeof x6 !== "number") {
231851
+ throw new TypeError("The `x` argument is required");
231852
+ }
231853
+ let ret = "";
231854
+ if (x6 < 0) {
231855
+ ret += ESC2 + -x6 + "D";
231856
+ } else if (x6 > 0) {
231857
+ ret += ESC2 + x6 + "C";
231858
+ }
231859
+ if (y4 < 0) {
231860
+ ret += ESC2 + -y4 + "A";
231861
+ } else if (y4 > 0) {
231862
+ ret += ESC2 + y4 + "B";
231863
+ }
231864
+ return ret;
231865
+ };
231866
+ ansiEscapes.cursorUp = (count = 1) => ESC2 + count + "A";
231867
+ ansiEscapes.cursorDown = (count = 1) => ESC2 + count + "B";
231868
+ ansiEscapes.cursorForward = (count = 1) => ESC2 + count + "C";
231869
+ ansiEscapes.cursorBackward = (count = 1) => ESC2 + count + "D";
231870
+ ansiEscapes.cursorLeft = ESC2 + "G";
231871
+ ansiEscapes.cursorSavePosition = isTerminalApp ? "\x1B7" : ESC2 + "s";
231872
+ ansiEscapes.cursorRestorePosition = isTerminalApp ? "\x1B8" : ESC2 + "u";
231873
+ ansiEscapes.cursorGetPosition = ESC2 + "6n";
231874
+ ansiEscapes.cursorNextLine = ESC2 + "E";
231875
+ ansiEscapes.cursorPrevLine = ESC2 + "F";
231876
+ ansiEscapes.cursorHide = ESC2 + "?25l";
231877
+ ansiEscapes.cursorShow = ESC2 + "?25h";
231878
+ ansiEscapes.eraseLines = (count) => {
231879
+ let clear = "";
231880
+ for (let i7 = 0;i7 < count; i7++) {
231881
+ clear += ansiEscapes.eraseLine + (i7 < count - 1 ? ansiEscapes.cursorUp() : "");
231882
+ }
231883
+ if (count) {
231884
+ clear += ansiEscapes.cursorLeft;
231885
+ }
231886
+ return clear;
231887
+ };
231888
+ ansiEscapes.eraseEndLine = ESC2 + "K";
231889
+ ansiEscapes.eraseStartLine = ESC2 + "1K";
231890
+ ansiEscapes.eraseLine = ESC2 + "2K";
231891
+ ansiEscapes.eraseDown = ESC2 + "J";
231892
+ ansiEscapes.eraseUp = ESC2 + "1J";
231893
+ ansiEscapes.eraseScreen = ESC2 + "2J";
231894
+ ansiEscapes.scrollUp = ESC2 + "S";
231895
+ ansiEscapes.scrollDown = ESC2 + "T";
231896
+ ansiEscapes.clearScreen = "\x1Bc";
231897
+ ansiEscapes.clearTerminal = process.platform === "win32" ? `${ansiEscapes.eraseScreen}${ESC2}0f` : `${ansiEscapes.eraseScreen}${ESC2}3J${ESC2}H`;
231898
+ ansiEscapes.beep = BEL;
231899
+ ansiEscapes.link = (text2, url2) => {
231900
+ return [
231901
+ OSC,
231902
+ "8",
231903
+ SEP,
231904
+ SEP,
231905
+ url2,
231906
+ BEL,
231907
+ text2,
231908
+ OSC,
231909
+ "8",
231910
+ SEP,
231911
+ SEP,
231912
+ BEL
231913
+ ].join("");
231914
+ };
231915
+ ansiEscapes.image = (buffer, options = {}) => {
231916
+ let ret = `${OSC}1337;File=inline=1`;
231917
+ if (options.width) {
231918
+ ret += `;width=${options.width}`;
231919
+ }
231920
+ if (options.height) {
231921
+ ret += `;height=${options.height}`;
231922
+ }
231923
+ if (options.preserveAspectRatio === false) {
231924
+ ret += ";preserveAspectRatio=0";
231925
+ }
231926
+ return ret + ":" + buffer.toString("base64") + BEL;
231927
+ };
231928
+ ansiEscapes.iTerm = {
231929
+ setCwd: (cwd = process.cwd()) => `${OSC}50;CurrentDir=${cwd}${BEL}`,
231930
+ annotation: (message, options = {}) => {
231931
+ let ret = `${OSC}1337;`;
231932
+ const hasX = typeof options.x !== "undefined";
231933
+ const hasY = typeof options.y !== "undefined";
231934
+ if ((hasX || hasY) && !(hasX && hasY && typeof options.length !== "undefined")) {
231935
+ throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");
231936
+ }
231937
+ message = message.replace(/\|/g, "");
231938
+ ret += options.isHidden ? "AddHiddenAnnotation=" : "AddAnnotation=";
231939
+ if (options.length > 0) {
231940
+ ret += (hasX ? [message, options.length, options.x, options.y] : [options.length, message]).join("|");
231941
+ } else {
231942
+ ret += message;
231943
+ }
231944
+ return ret + BEL;
231945
+ }
231946
+ };
231947
+ });
231948
+
231949
231949
  // ../../node_modules/.bun/abitype@1.1.0+50e9b7ffbf081acf/node_modules/abitype/dist/esm/version.js
231950
231950
  var version2 = "1.1.0";
231951
231951
 
@@ -233941,16 +233941,16 @@ var init_lru = __esm(() => {
233941
233941
  });
233942
233942
  this.maxSize = size2;
233943
233943
  }
233944
- get(key2) {
233945
- const value5 = super.get(key2);
233946
- if (super.has(key2) && value5 !== undefined) {
233947
- this.delete(key2);
233948
- super.set(key2, value5);
233944
+ get(key3) {
233945
+ const value5 = super.get(key3);
233946
+ if (super.has(key3) && value5 !== undefined) {
233947
+ this.delete(key3);
233948
+ super.set(key3, value5);
233949
233949
  }
233950
233950
  return value5;
233951
233951
  }
233952
- set(key2, value5) {
233953
- super.set(key2, value5);
233952
+ set(key3, value5) {
233953
+ super.set(key3, value5);
233954
233954
  if (this.maxSize && this.size > this.maxSize) {
233955
233955
  const firstKey = this.keys().next().value;
233956
233956
  if (firstKey)
@@ -234992,9 +234992,9 @@ var init_decodeErrorResult = __esm(() => {
234992
234992
  });
234993
234993
 
234994
234994
  // ../../node_modules/.bun/viem@2.37.5+50e9b7ffbf081acf/node_modules/viem/_esm/utils/stringify.js
234995
- var stringify3 = (value5, replacer, space) => JSON.stringify(value5, (key2, value_) => {
234995
+ var stringify3 = (value5, replacer, space) => JSON.stringify(value5, (key3, value_) => {
234996
234996
  const value6 = typeof value_ === "bigint" ? value_.toString() : value_;
234997
- return typeof replacer === "function" ? replacer(key2, value6) : value6;
234997
+ return typeof replacer === "function" ? replacer(key3, value6) : value6;
234998
234998
  }, space);
234999
234999
 
235000
235000
  // ../../node_modules/.bun/viem@2.37.5+50e9b7ffbf081acf/node_modules/viem/_esm/utils/abi/formatAbiItemWithArgs.js
@@ -235108,13 +235108,13 @@ var init_stateOverride = __esm(() => {
235108
235108
 
235109
235109
  // ../../node_modules/.bun/viem@2.37.5+50e9b7ffbf081acf/node_modules/viem/_esm/errors/transaction.js
235110
235110
  function prettyPrint(args) {
235111
- const entries = Object.entries(args).map(([key2, value5]) => {
235111
+ const entries = Object.entries(args).map(([key3, value5]) => {
235112
235112
  if (value5 === undefined || value5 === false)
235113
235113
  return null;
235114
- return [key2, value5];
235114
+ return [key3, value5];
235115
235115
  }).filter(Boolean);
235116
- const maxLength = entries.reduce((acc, [key2]) => Math.max(acc, key2.length), 0);
235117
- return entries.map(([key2, value5]) => ` ${`${key2}:`.padEnd(maxLength + 1)} ${value5}`).join(`
235116
+ const maxLength = entries.reduce((acc, [key3]) => Math.max(acc, key3.length), 0);
235117
+ return entries.map(([key3, value5]) => ` ${`${key3}:`.padEnd(maxLength + 1)} ${value5}`).join(`
235118
235118
  `);
235119
235119
  }
235120
235120
  var FeeConflictError, InvalidLegacyVError, InvalidSerializableTransactionError, InvalidStorageKeySizeError, TransactionNotFoundError, TransactionReceiptNotFoundError, WaitForTransactionReceiptTimeoutError;
@@ -236232,7 +236232,7 @@ var init_sha2 = __esm(() => {
236232
236232
  });
236233
236233
 
236234
236234
  // ../../node_modules/.bun/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/hmac.js
236235
- var HMAC, hmac = (hash3, key2, message) => new HMAC(hash3, key2).update(message).digest();
236235
+ var HMAC, hmac = (hash3, key3, message) => new HMAC(hash3, key3).update(message).digest();
236236
236236
  var init_hmac = __esm(() => {
236237
236237
  init_utils2();
236238
236238
  HMAC = class HMAC extends Hash {
@@ -236241,7 +236241,7 @@ var init_hmac = __esm(() => {
236241
236241
  this.finished = false;
236242
236242
  this.destroyed = false;
236243
236243
  ahash(hash3);
236244
- const key2 = toBytes2(_key);
236244
+ const key3 = toBytes2(_key);
236245
236245
  this.iHash = hash3.create();
236246
236246
  if (typeof this.iHash.update !== "function")
236247
236247
  throw new Error("Expected instance of class which extends utils.Hash");
@@ -236249,7 +236249,7 @@ var init_hmac = __esm(() => {
236249
236249
  this.outputLen = this.iHash.outputLen;
236250
236250
  const blockLen = this.blockLen;
236251
236251
  const pad2 = new Uint8Array(blockLen);
236252
- pad2.set(key2.length > blockLen ? hash3.create().update(key2).digest() : key2);
236252
+ pad2.set(key3.length > blockLen ? hash3.create().update(key3).digest() : key3);
236253
236253
  for (let i7 = 0;i7 < pad2.length; i7++)
236254
236254
  pad2[i7] ^= 54;
236255
236255
  this.iHash.update(pad2);
@@ -236299,7 +236299,7 @@ var init_hmac = __esm(() => {
236299
236299
  this.iHash.destroy();
236300
236300
  }
236301
236301
  };
236302
- hmac.create = (hash3, key2) => new HMAC(hash3, key2);
236302
+ hmac.create = (hash3, key3) => new HMAC(hash3, key3);
236303
236303
  });
236304
236304
 
236305
236305
  // ../../node_modules/.bun/@noble+curves@1.9.1/node_modules/@noble/curves/esm/abstract/utils.js
@@ -236758,13 +236758,13 @@ function getMinHashLength(fieldOrder) {
236758
236758
  const length = getFieldBytesLength(fieldOrder);
236759
236759
  return length + Math.ceil(length / 2);
236760
236760
  }
236761
- function mapHashToField(key2, fieldOrder, isLE2 = false) {
236762
- const len = key2.length;
236761
+ function mapHashToField(key3, fieldOrder, isLE2 = false) {
236762
+ const len = key3.length;
236763
236763
  const fieldLen = getFieldBytesLength(fieldOrder);
236764
236764
  const minLen = getMinHashLength(fieldOrder);
236765
236765
  if (len < 16 || len < minLen || len > 1024)
236766
236766
  throw new Error("expected " + minLen + "-1024 bytes of input, got " + len);
236767
- const num = isLE2 ? bytesToNumberLE(key2) : bytesToNumberBE(key2);
236767
+ const num = isLE2 ? bytesToNumberLE(key3) : bytesToNumberBE(key3);
236768
236768
  const reduced = mod(num, fieldOrder - _1n3) + _1n3;
236769
236769
  return isLE2 ? numberToBytesLE(reduced, fieldLen) : numberToBytesBE(reduced, fieldLen);
236770
236770
  }
@@ -237079,20 +237079,20 @@ function weierstrassPoints(opts) {
237079
237079
  function isWithinCurveOrder(num) {
237080
237080
  return inRange(num, _1n5, CURVE.n);
237081
237081
  }
237082
- function normPrivateKeyToScalar(key2) {
237082
+ function normPrivateKeyToScalar(key3) {
237083
237083
  const { allowedPrivateKeyLengths: lengths, nByteLength, wrapPrivateKey, n: N6 } = CURVE;
237084
- if (lengths && typeof key2 !== "bigint") {
237085
- if (isBytes2(key2))
237086
- key2 = bytesToHex2(key2);
237087
- if (typeof key2 !== "string" || !lengths.includes(key2.length))
237084
+ if (lengths && typeof key3 !== "bigint") {
237085
+ if (isBytes2(key3))
237086
+ key3 = bytesToHex2(key3);
237087
+ if (typeof key3 !== "string" || !lengths.includes(key3.length))
237088
237088
  throw new Error("invalid private key");
237089
- key2 = key2.padStart(nByteLength * 2, "0");
237089
+ key3 = key3.padStart(nByteLength * 2, "0");
237090
237090
  }
237091
237091
  let num;
237092
237092
  try {
237093
- num = typeof key2 === "bigint" ? key2 : bytesToNumberBE(ensureBytes("private key", key2, nByteLength));
237093
+ num = typeof key3 === "bigint" ? key3 : bytesToNumberBE(ensureBytes("private key", key3, nByteLength));
237094
237094
  } catch (error48) {
237095
- throw new Error("invalid private key, expected hex or " + nByteLength + " bytes, got " + typeof key2);
237095
+ throw new Error("invalid private key, expected hex or " + nByteLength + " bytes, got " + typeof key3);
237096
237096
  }
237097
237097
  if (wrapPrivateKey)
237098
237098
  num = mod(num, N6);
@@ -237926,7 +237926,7 @@ var init_weierstrass = __esm(() => {
237926
237926
  function getHash(hash3) {
237927
237927
  return {
237928
237928
  hash: hash3,
237929
- hmac: (key2, ...msgs) => hmac(hash3, key2, concatBytes(...msgs)),
237929
+ hmac: (key3, ...msgs) => hmac(hash3, key3, concatBytes(...msgs)),
237930
237930
  randomBytes
237931
237931
  };
237932
237932
  }
@@ -238552,11 +238552,11 @@ function extract2(value_, { format: format2 }) {
238552
238552
  const value5 = {};
238553
238553
  function extract_(formatted2) {
238554
238554
  const keys = Object.keys(formatted2);
238555
- for (const key2 of keys) {
238556
- if (key2 in value_)
238557
- value5[key2] = value_[key2];
238558
- if (formatted2[key2] && typeof formatted2[key2] === "object" && !Array.isArray(formatted2[key2]))
238559
- extract_(formatted2[key2]);
238555
+ for (const key3 of keys) {
238556
+ if (key3 in value_)
238557
+ value5[key3] = value_[key3];
238558
+ if (formatted2[key3] && typeof formatted2[key3] === "object" && !Array.isArray(formatted2[key3]))
238559
+ extract_(formatted2[key3]);
238560
238560
  }
238561
238561
  }
238562
238562
  const formatted = format2(value_ || {});
@@ -238572,8 +238572,8 @@ function defineFormatter(type5, format2) {
238572
238572
  format: (args) => {
238573
238573
  const formatted = format2(args);
238574
238574
  if (exclude) {
238575
- for (const key2 of exclude) {
238576
- delete formatted[key2];
238575
+ for (const key3 of exclude) {
238576
+ delete formatted[key3];
238577
238577
  }
238578
238578
  }
238579
238579
  return {
@@ -239119,9 +239119,9 @@ var init_hex = __esm(() => {
239119
239119
 
239120
239120
  // ../../node_modules/.bun/ox@0.9.3+50e9b7ffbf081acf/node_modules/ox/_esm/core/Json.js
239121
239121
  function stringify4(value5, replacer, space) {
239122
- return JSON.stringify(value5, (key2, value6) => {
239122
+ return JSON.stringify(value5, (key3, value6) => {
239123
239123
  if (typeof replacer === "function")
239124
- return replacer(key2, value6);
239124
+ return replacer(key3, value6);
239125
239125
  if (typeof value6 === "bigint")
239126
239126
  return value6.toString() + bigIntSuffix;
239127
239127
  return value6;
@@ -247510,14 +247510,14 @@ var {
247510
247510
  Help
247511
247511
  } = import__.default;
247512
247512
 
247513
- // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/key.js
247513
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+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+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/errors.js
247520
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+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+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-state.js
247546
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+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+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
247549
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+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+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-state.js
247654
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+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+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
247672
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+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+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/theme.js
247684
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+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+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/theme.js
247973
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+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+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
247994
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+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+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
248022
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+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+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-memo.js
248052
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+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+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
248064
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+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+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
248068
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+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+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/utils.js
248086
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+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+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
248099
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+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+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
248165
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+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,16 +248375,30 @@ 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+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
248379
- var import_ansi_escapes = __toESM(require_ansi_escapes(), 1);
248378
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
248380
248379
  import { stripVTControlCharacters } from "node:util";
248380
+
248381
+ // ../../node_modules/.bun/@inquirer+ansi@1.0.0/node_modules/@inquirer/ansi/dist/esm/index.js
248382
+ var ESC = "\x1B[";
248383
+ var cursorLeft = ESC + "G";
248384
+ var cursorHide = ESC + "?25l";
248385
+ var cursorShow = ESC + "?25h";
248386
+ var cursorUp = (rows = 1) => rows > 0 ? `${ESC}${rows}A` : "";
248387
+ var cursorDown = (rows = 1) => rows > 0 ? `${ESC}${rows}B` : "";
248388
+ var cursorTo = (x, y) => {
248389
+ if (typeof y === "number" && !Number.isNaN(y)) {
248390
+ return `${ESC}${y + 1};${x + 1}H`;
248391
+ }
248392
+ return `${ESC}${x + 1}G`;
248393
+ };
248394
+ var eraseLine = ESC + "2K";
248395
+ var eraseLines = (lines) => lines > 0 ? (eraseLine + cursorUp(1)).repeat(lines - 1) + eraseLine + cursorLeft : "";
248396
+
248397
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
248381
248398
  var height = (content) => content.split(`
248382
248399
  `).length;
248383
248400
  var lastLine = (content) => content.split(`
248384
248401
  `).pop() ?? "";
248385
- function cursorDown(n) {
248386
- return n > 0 ? import_ansi_escapes.default.cursorDown(n) : "";
248387
- }
248388
248402
 
248389
248403
  class ScreenManager {
248390
248404
  height = 0;
@@ -248421,31 +248435,31 @@ class ScreenManager {
248421
248435
  const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
248422
248436
  const bottomContentHeight = promptLineUpDiff + (bottomContent ? height(bottomContent) : 0);
248423
248437
  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);
248438
+ output += cursorUp(bottomContentHeight);
248439
+ output += cursorTo(this.cursorPos.cols);
248440
+ this.write(cursorDown(this.extraLinesUnderPrompt) + eraseLines(this.height) + output);
248427
248441
  this.extraLinesUnderPrompt = bottomContentHeight;
248428
248442
  this.height = height(output);
248429
248443
  }
248430
248444
  checkCursorPos() {
248431
248445
  const cursorPos = this.rl.getCursorPos();
248432
248446
  if (cursorPos.cols !== this.cursorPos.cols) {
248433
- this.write(import_ansi_escapes.default.cursorTo(cursorPos.cols));
248447
+ this.write(cursorTo(cursorPos.cols));
248434
248448
  this.cursorPos = cursorPos;
248435
248449
  }
248436
248450
  }
248437
248451
  done({ clearContent }) {
248438
248452
  this.rl.setPrompt("");
248439
248453
  let output = cursorDown(this.extraLinesUnderPrompt);
248440
- output += clearContent ? import_ansi_escapes.default.eraseLines(this.height) : `
248454
+ output += clearContent ? eraseLines(this.height) : `
248441
248455
  `;
248442
- output += import_ansi_escapes.default.cursorShow;
248456
+ output += cursorShow;
248443
248457
  this.write(output);
248444
248458
  this.rl.close();
248445
248459
  }
248446
248460
  }
248447
248461
 
248448
- // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
248462
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
248449
248463
  class PromisePolyfill extends Promise {
248450
248464
  static withResolver() {
248451
248465
  let resolve;
@@ -248458,7 +248472,7 @@ class PromisePolyfill extends Promise {
248458
248472
  }
248459
248473
  }
248460
248474
 
248461
- // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
248475
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
248462
248476
  function getCallSites() {
248463
248477
  const _prepareStackTrace = Error.prepareStackTrace;
248464
248478
  let result = [];
@@ -248544,7 +248558,7 @@ function createPrompt(view) {
248544
248558
  };
248545
248559
  return prompt;
248546
248560
  }
248547
- // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/Separator.js
248561
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/Separator.js
248548
248562
  var import_yoctocolors_cjs2 = __toESM(require_yoctocolors_cjs(), 1);
248549
248563
  class Separator {
248550
248564
  separator = import_yoctocolors_cjs2.default.dim(Array.from({ length: 15 }).join(esm_default.line));
@@ -267215,7 +267229,7 @@ function pruneCurrentEnv(currentEnv, env2) {
267215
267229
  var package_default = {
267216
267230
  name: "@settlemint/sdk-cli",
267217
267231
  description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
267218
- version: "2.6.2-pr938f41c1",
267232
+ version: "2.6.2-pr99fe5da2",
267219
267233
  type: "module",
267220
267234
  private: false,
267221
267235
  license: "FSL-1.1-MIT",
@@ -267258,21 +267272,21 @@ var package_default = {
267258
267272
  },
267259
267273
  dependencies: {
267260
267274
  "@gql.tada/cli-utils": "1.7.1",
267261
- "@inquirer/core": "10.2.0",
267275
+ "@inquirer/core": "10.2.2",
267262
267276
  "node-fetch-native": "1.6.7",
267263
267277
  zod: "^4"
267264
267278
  },
267265
267279
  devDependencies: {
267266
267280
  "@commander-js/extra-typings": "14.0.0",
267267
267281
  commander: "14.0.1",
267268
- "@inquirer/confirm": "5.1.16",
267282
+ "@inquirer/confirm": "5.1.18",
267269
267283
  "@inquirer/input": "4.2.2",
267270
- "@inquirer/password": "4.0.19",
267271
- "@inquirer/select": "4.3.2",
267272
- "@settlemint/sdk-hasura": "2.6.2-pr938f41c1",
267273
- "@settlemint/sdk-js": "2.6.2-pr938f41c1",
267274
- "@settlemint/sdk-utils": "2.6.2-pr938f41c1",
267275
- "@settlemint/sdk-viem": "2.6.2-pr938f41c1",
267284
+ "@inquirer/password": "4.0.18",
267285
+ "@inquirer/select": "4.3.4",
267286
+ "@settlemint/sdk-hasura": "2.6.2-pr99fe5da2",
267287
+ "@settlemint/sdk-js": "2.6.2-pr99fe5da2",
267288
+ "@settlemint/sdk-utils": "2.6.2-pr99fe5da2",
267289
+ "@settlemint/sdk-viem": "2.6.2-pr99fe5da2",
267276
267290
  "@types/node": "24.4.0",
267277
267291
  "@types/semver": "7.7.1",
267278
267292
  "@types/which": "3.0.4",
@@ -267289,7 +267303,7 @@ var package_default = {
267289
267303
  },
267290
267304
  peerDependencies: {
267291
267305
  hardhat: "<= 4",
267292
- "@settlemint/sdk-js": "2.6.2-pr938f41c1"
267306
+ "@settlemint/sdk-js": "2.6.2-pr99fe5da2"
267293
267307
  },
267294
267308
  peerDependenciesMeta: {
267295
267309
  hardhat: {
@@ -273107,23 +273121,481 @@ function sanitizeName(value5, length = 35) {
273107
273121
  }).slice(0, length).replaceAll(/(^\d*)/g, "").replaceAll(/(-$)/g, "").replaceAll(/(^-)/g, "");
273108
273122
  }
273109
273123
 
273124
+ // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/key.js
273125
+ var isBackspaceKey2 = (key2) => key2.name === "backspace";
273126
+ var isTabKey2 = (key2) => key2.name === "tab";
273127
+ var isEnterKey2 = (key2) => key2.name === "enter" || key2.name === "return";
273128
+ // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/errors.js
273129
+ class AbortPromptError2 extends Error {
273130
+ name = "AbortPromptError";
273131
+ message = "Prompt was aborted";
273132
+ constructor(options) {
273133
+ super();
273134
+ this.cause = options?.cause;
273135
+ }
273136
+ }
273137
+
273138
+ class CancelPromptError2 extends Error {
273139
+ name = "CancelPromptError";
273140
+ message = "Prompt was canceled";
273141
+ }
273142
+
273143
+ class ExitPromptError2 extends Error {
273144
+ name = "ExitPromptError";
273145
+ }
273146
+
273147
+ class HookError2 extends Error {
273148
+ name = "HookError";
273149
+ }
273150
+
273151
+ class ValidationError2 extends Error {
273152
+ name = "ValidationError";
273153
+ }
273154
+ // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-state.js
273155
+ import { AsyncResource as AsyncResource5 } from "node:async_hooks";
273156
+
273157
+ // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
273158
+ import { AsyncLocalStorage as AsyncLocalStorage2, AsyncResource as AsyncResource4 } from "node:async_hooks";
273159
+ var hookStorage2 = new AsyncLocalStorage2;
273160
+ function createStore2(rl) {
273161
+ const store = {
273162
+ rl,
273163
+ hooks: [],
273164
+ hooksCleanup: [],
273165
+ hooksEffect: [],
273166
+ index: 0,
273167
+ handleChange() {}
273168
+ };
273169
+ return store;
273170
+ }
273171
+ function withHooks2(rl, cb) {
273172
+ const store = createStore2(rl);
273173
+ return hookStorage2.run(store, () => {
273174
+ function cycle(render) {
273175
+ store.handleChange = () => {
273176
+ store.index = 0;
273177
+ render();
273178
+ };
273179
+ store.handleChange();
273180
+ }
273181
+ return cb(cycle);
273182
+ });
273183
+ }
273184
+ function getStore2() {
273185
+ const store = hookStorage2.getStore();
273186
+ if (!store) {
273187
+ throw new HookError2("[Inquirer] Hook functions can only be called from within a prompt");
273188
+ }
273189
+ return store;
273190
+ }
273191
+ function readline3() {
273192
+ return getStore2().rl;
273193
+ }
273194
+ function withUpdates2(fn) {
273195
+ const wrapped = (...args) => {
273196
+ const store = getStore2();
273197
+ let shouldUpdate = false;
273198
+ const oldHandleChange = store.handleChange;
273199
+ store.handleChange = () => {
273200
+ shouldUpdate = true;
273201
+ };
273202
+ const returnValue = fn(...args);
273203
+ if (shouldUpdate) {
273204
+ oldHandleChange();
273205
+ }
273206
+ store.handleChange = oldHandleChange;
273207
+ return returnValue;
273208
+ };
273209
+ return AsyncResource4.bind(wrapped);
273210
+ }
273211
+ function withPointer2(cb) {
273212
+ const store = getStore2();
273213
+ const { index } = store;
273214
+ const pointer = {
273215
+ get() {
273216
+ return store.hooks[index];
273217
+ },
273218
+ set(value5) {
273219
+ store.hooks[index] = value5;
273220
+ },
273221
+ initialized: index in store.hooks
273222
+ };
273223
+ const returnValue = cb(pointer);
273224
+ store.index++;
273225
+ return returnValue;
273226
+ }
273227
+ function handleChange2() {
273228
+ getStore2().handleChange();
273229
+ }
273230
+ var effectScheduler2 = {
273231
+ queue(cb) {
273232
+ const store = getStore2();
273233
+ const { index } = store;
273234
+ store.hooksEffect.push(() => {
273235
+ store.hooksCleanup[index]?.();
273236
+ const cleanFn = cb(readline3());
273237
+ if (cleanFn != null && typeof cleanFn !== "function") {
273238
+ throw new ValidationError2("useEffect return value must be a cleanup function or nothing.");
273239
+ }
273240
+ store.hooksCleanup[index] = cleanFn;
273241
+ });
273242
+ },
273243
+ run() {
273244
+ const store = getStore2();
273245
+ withUpdates2(() => {
273246
+ store.hooksEffect.forEach((effect) => {
273247
+ effect();
273248
+ });
273249
+ store.hooksEffect.length = 0;
273250
+ })();
273251
+ },
273252
+ clearAll() {
273253
+ const store = getStore2();
273254
+ store.hooksCleanup.forEach((cleanFn) => {
273255
+ cleanFn?.();
273256
+ });
273257
+ store.hooksEffect.length = 0;
273258
+ store.hooksCleanup.length = 0;
273259
+ }
273260
+ };
273261
+
273262
+ // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-state.js
273263
+ function useState2(defaultValue) {
273264
+ return withPointer2((pointer) => {
273265
+ const setState = AsyncResource5.bind(function setState(newValue) {
273266
+ if (pointer.get() !== newValue) {
273267
+ pointer.set(newValue);
273268
+ handleChange2();
273269
+ }
273270
+ });
273271
+ if (pointer.initialized) {
273272
+ return [pointer.get(), setState];
273273
+ }
273274
+ const value5 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
273275
+ pointer.set(value5);
273276
+ return [value5, setState];
273277
+ });
273278
+ }
273279
+
273280
+ // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
273281
+ function useEffect2(cb, depArray) {
273282
+ withPointer2((pointer) => {
273283
+ const oldDeps = pointer.get();
273284
+ const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i7) => !Object.is(dep, oldDeps[i7]));
273285
+ if (hasChanged) {
273286
+ effectScheduler2.queue(cb);
273287
+ }
273288
+ pointer.set(depArray);
273289
+ });
273290
+ }
273291
+
273292
+ // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/theme.js
273293
+ var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
273294
+ var defaultTheme2 = {
273295
+ prefix: {
273296
+ idle: import_yoctocolors_cjs3.default.blue("?"),
273297
+ done: import_yoctocolors_cjs3.default.green(esm_default.tick)
273298
+ },
273299
+ spinner: {
273300
+ interval: 80,
273301
+ frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs3.default.yellow(frame))
273302
+ },
273303
+ style: {
273304
+ answer: import_yoctocolors_cjs3.default.cyan,
273305
+ message: import_yoctocolors_cjs3.default.bold,
273306
+ error: (text2) => import_yoctocolors_cjs3.default.red(`> ${text2}`),
273307
+ defaultAnswer: (text2) => import_yoctocolors_cjs3.default.dim(`(${text2})`),
273308
+ help: import_yoctocolors_cjs3.default.dim,
273309
+ highlight: import_yoctocolors_cjs3.default.cyan,
273310
+ key: (text2) => import_yoctocolors_cjs3.default.cyan(import_yoctocolors_cjs3.default.bold(`<${text2}>`))
273311
+ }
273312
+ };
273313
+
273314
+ // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
273315
+ function isPlainObject4(value5) {
273316
+ if (typeof value5 !== "object" || value5 === null)
273317
+ return false;
273318
+ let proto = value5;
273319
+ while (Object.getPrototypeOf(proto) !== null) {
273320
+ proto = Object.getPrototypeOf(proto);
273321
+ }
273322
+ return Object.getPrototypeOf(value5) === proto;
273323
+ }
273324
+ function deepMerge3(...objects) {
273325
+ const output = {};
273326
+ for (const obj of objects) {
273327
+ for (const [key2, value5] of Object.entries(obj)) {
273328
+ const prevValue = output[key2];
273329
+ output[key2] = isPlainObject4(prevValue) && isPlainObject4(value5) ? deepMerge3(prevValue, value5) : value5;
273330
+ }
273331
+ }
273332
+ return output;
273333
+ }
273334
+ function makeTheme2(...themes) {
273335
+ const themesToMerge = [
273336
+ defaultTheme2,
273337
+ ...themes.filter((theme) => theme != null)
273338
+ ];
273339
+ return deepMerge3(...themesToMerge);
273340
+ }
273341
+
273342
+ // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
273343
+ function usePrefix2({ status = "idle", theme }) {
273344
+ const [showLoader, setShowLoader] = useState2(false);
273345
+ const [tick, setTick] = useState2(0);
273346
+ const { prefix, spinner: spinner2 } = makeTheme2(theme);
273347
+ useEffect2(() => {
273348
+ if (status === "loading") {
273349
+ let tickInterval;
273350
+ let inc = -1;
273351
+ const delayTimeout = setTimeout(() => {
273352
+ setShowLoader(true);
273353
+ tickInterval = setInterval(() => {
273354
+ inc = inc + 1;
273355
+ setTick(inc % spinner2.frames.length);
273356
+ }, spinner2.interval);
273357
+ }, 300);
273358
+ return () => {
273359
+ clearTimeout(delayTimeout);
273360
+ clearInterval(tickInterval);
273361
+ };
273362
+ } else {
273363
+ setShowLoader(false);
273364
+ }
273365
+ }, [status]);
273366
+ if (showLoader) {
273367
+ return spinner2.frames[tick];
273368
+ }
273369
+ const iconName = status === "loading" ? "idle" : status;
273370
+ return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
273371
+ }
273372
+ // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
273373
+ function useRef2(val) {
273374
+ return useState2({ current: val })[0];
273375
+ }
273376
+
273377
+ // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
273378
+ function useKeypress2(userHandler) {
273379
+ const signal = useRef2(userHandler);
273380
+ signal.current = userHandler;
273381
+ useEffect2((rl) => {
273382
+ let ignore = false;
273383
+ const handler = withUpdates2((_input, event) => {
273384
+ if (ignore)
273385
+ return;
273386
+ signal.current(event, rl);
273387
+ });
273388
+ rl.input.on("keypress", handler);
273389
+ return () => {
273390
+ ignore = true;
273391
+ rl.input.removeListener("keypress", handler);
273392
+ };
273393
+ }, []);
273394
+ }
273395
+ // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/utils.js
273396
+ var import_cli_width2 = __toESM(require_cli_width(), 1);
273397
+ var import_wrap_ansi2 = __toESM(require_wrap_ansi(), 1);
273398
+ function breakLines2(content, width) {
273399
+ return content.split(`
273400
+ `).flatMap((line) => import_wrap_ansi2.default(line, width, { trim: false, hard: true }).split(`
273401
+ `).map((str) => str.trimEnd())).join(`
273402
+ `);
273403
+ }
273404
+ function readlineWidth2() {
273405
+ return import_cli_width2.default({ defaultWidth: 80, output: readline3().output });
273406
+ }
273407
+
273408
+ // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
273409
+ var import_mute_stream2 = __toESM(require_lib(), 1);
273410
+ import * as readline4 from "node:readline";
273411
+ import { AsyncResource as AsyncResource6 } from "node:async_hooks";
273412
+
273413
+ // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
273414
+ var import_ansi_escapes = __toESM(require_ansi_escapes(), 1);
273415
+ import { stripVTControlCharacters as stripVTControlCharacters3 } from "node:util";
273416
+ var height2 = (content) => content.split(`
273417
+ `).length;
273418
+ var lastLine2 = (content) => content.split(`
273419
+ `).pop() ?? "";
273420
+ function cursorDown2(n7) {
273421
+ return n7 > 0 ? import_ansi_escapes.default.cursorDown(n7) : "";
273422
+ }
273423
+
273424
+ class ScreenManager2 {
273425
+ height = 0;
273426
+ extraLinesUnderPrompt = 0;
273427
+ cursorPos;
273428
+ rl;
273429
+ constructor(rl) {
273430
+ this.rl = rl;
273431
+ this.cursorPos = rl.getCursorPos();
273432
+ }
273433
+ write(content) {
273434
+ this.rl.output.unmute();
273435
+ this.rl.output.write(content);
273436
+ this.rl.output.mute();
273437
+ }
273438
+ render(content, bottomContent = "") {
273439
+ const promptLine = lastLine2(content);
273440
+ const rawPromptLine = stripVTControlCharacters3(promptLine);
273441
+ let prompt = rawPromptLine;
273442
+ if (this.rl.line.length > 0) {
273443
+ prompt = prompt.slice(0, -this.rl.line.length);
273444
+ }
273445
+ this.rl.setPrompt(prompt);
273446
+ this.cursorPos = this.rl.getCursorPos();
273447
+ const width = readlineWidth2();
273448
+ content = breakLines2(content, width);
273449
+ bottomContent = breakLines2(bottomContent, width);
273450
+ if (rawPromptLine.length % width === 0) {
273451
+ content += `
273452
+ `;
273453
+ }
273454
+ let output = content + (bottomContent ? `
273455
+ ` + bottomContent : "");
273456
+ const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
273457
+ const bottomContentHeight = promptLineUpDiff + (bottomContent ? height2(bottomContent) : 0);
273458
+ if (bottomContentHeight > 0)
273459
+ output += import_ansi_escapes.default.cursorUp(bottomContentHeight);
273460
+ output += import_ansi_escapes.default.cursorTo(this.cursorPos.cols);
273461
+ this.write(cursorDown2(this.extraLinesUnderPrompt) + import_ansi_escapes.default.eraseLines(this.height) + output);
273462
+ this.extraLinesUnderPrompt = bottomContentHeight;
273463
+ this.height = height2(output);
273464
+ }
273465
+ checkCursorPos() {
273466
+ const cursorPos = this.rl.getCursorPos();
273467
+ if (cursorPos.cols !== this.cursorPos.cols) {
273468
+ this.write(import_ansi_escapes.default.cursorTo(cursorPos.cols));
273469
+ this.cursorPos = cursorPos;
273470
+ }
273471
+ }
273472
+ done({ clearContent }) {
273473
+ this.rl.setPrompt("");
273474
+ let output = cursorDown2(this.extraLinesUnderPrompt);
273475
+ output += clearContent ? import_ansi_escapes.default.eraseLines(this.height) : `
273476
+ `;
273477
+ output += import_ansi_escapes.default.cursorShow;
273478
+ this.write(output);
273479
+ this.rl.close();
273480
+ }
273481
+ }
273482
+
273483
+ // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
273484
+ class PromisePolyfill2 extends Promise {
273485
+ static withResolver() {
273486
+ let resolve6;
273487
+ let reject;
273488
+ const promise2 = new Promise((res, rej) => {
273489
+ resolve6 = res;
273490
+ reject = rej;
273491
+ });
273492
+ return { promise: promise2, resolve: resolve6, reject };
273493
+ }
273494
+ }
273495
+
273496
+ // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
273497
+ function getCallSites2() {
273498
+ const _prepareStackTrace = Error.prepareStackTrace;
273499
+ let result = [];
273500
+ try {
273501
+ Error.prepareStackTrace = (_5, callSites) => {
273502
+ const callSitesWithoutCurrent = callSites.slice(1);
273503
+ result = callSitesWithoutCurrent;
273504
+ return callSitesWithoutCurrent;
273505
+ };
273506
+ new Error().stack;
273507
+ } catch {
273508
+ return result;
273509
+ }
273510
+ Error.prepareStackTrace = _prepareStackTrace;
273511
+ return result;
273512
+ }
273513
+ function createPrompt2(view) {
273514
+ const callSites = getCallSites2();
273515
+ const prompt = (config3, context = {}) => {
273516
+ const { input = process.stdin, signal } = context;
273517
+ const cleanups = new Set;
273518
+ const output = new import_mute_stream2.default;
273519
+ output.pipe(context.output ?? process.stdout);
273520
+ const rl = readline4.createInterface({
273521
+ terminal: true,
273522
+ input,
273523
+ output
273524
+ });
273525
+ const screen = new ScreenManager2(rl);
273526
+ const { promise: promise2, resolve: resolve6, reject } = PromisePolyfill2.withResolver();
273527
+ const cancel3 = () => reject(new CancelPromptError2);
273528
+ if (signal) {
273529
+ const abort = () => reject(new AbortPromptError2({ cause: signal.reason }));
273530
+ if (signal.aborted) {
273531
+ abort();
273532
+ return Object.assign(promise2, { cancel: cancel3 });
273533
+ }
273534
+ signal.addEventListener("abort", abort);
273535
+ cleanups.add(() => signal.removeEventListener("abort", abort));
273536
+ }
273537
+ cleanups.add(onExit((code2, signal2) => {
273538
+ reject(new ExitPromptError2(`User force closed the prompt with ${code2} ${signal2}`));
273539
+ }));
273540
+ const sigint = () => reject(new ExitPromptError2(`User force closed the prompt with SIGINT`));
273541
+ rl.on("SIGINT", sigint);
273542
+ cleanups.add(() => rl.removeListener("SIGINT", sigint));
273543
+ const checkCursorPos = () => screen.checkCursorPos();
273544
+ rl.input.on("keypress", checkCursorPos);
273545
+ cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
273546
+ return withHooks2(rl, (cycle) => {
273547
+ const hooksCleanup = AsyncResource6.bind(() => effectScheduler2.clearAll());
273548
+ rl.on("close", hooksCleanup);
273549
+ cleanups.add(() => rl.removeListener("close", hooksCleanup));
273550
+ cycle(() => {
273551
+ try {
273552
+ const nextView = view(config3, (value5) => {
273553
+ setImmediate(() => resolve6(value5));
273554
+ });
273555
+ if (nextView === undefined) {
273556
+ const callerFilename = callSites[1]?.getFileName();
273557
+ throw new Error(`Prompt functions must return a string.
273558
+ at ${callerFilename}`);
273559
+ }
273560
+ const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
273561
+ screen.render(content, bottomContent);
273562
+ effectScheduler2.run();
273563
+ } catch (error48) {
273564
+ reject(error48);
273565
+ }
273566
+ });
273567
+ return Object.assign(promise2.then((answer) => {
273568
+ effectScheduler2.clearAll();
273569
+ return answer;
273570
+ }, (error48) => {
273571
+ effectScheduler2.clearAll();
273572
+ throw error48;
273573
+ }).finally(() => {
273574
+ cleanups.forEach((cleanup) => cleanup());
273575
+ screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
273576
+ output.end();
273577
+ }).then(() => promise2), { cancel: cancel3 });
273578
+ });
273579
+ };
273580
+ return prompt;
273581
+ }
273110
273582
  // ../../node_modules/.bun/@inquirer+input@4.2.2+e9dc26b4af2fda18/node_modules/@inquirer/input/dist/esm/index.js
273111
273583
  var inputTheme = {
273112
273584
  validationFailureMode: "keep"
273113
273585
  };
273114
- var esm_default2 = createPrompt((config3, done) => {
273586
+ var esm_default2 = createPrompt2((config3, done) => {
273115
273587
  const { required: required2, validate: validate3 = () => true, prefill = "tab" } = config3;
273116
- const theme = makeTheme(inputTheme, config3.theme);
273117
- const [status, setStatus] = useState("idle");
273118
- const [defaultValue = "", setDefaultValue] = useState(config3.default);
273119
- const [errorMsg, setError] = useState();
273120
- const [value5, setValue] = useState("");
273121
- const prefix = usePrefix({ status, theme });
273122
- useKeypress(async (key2, rl) => {
273588
+ const theme = makeTheme2(inputTheme, config3.theme);
273589
+ const [status, setStatus] = useState2("idle");
273590
+ const [defaultValue = "", setDefaultValue] = useState2(config3.default);
273591
+ const [errorMsg, setError] = useState2();
273592
+ const [value5, setValue] = useState2("");
273593
+ const prefix = usePrefix2({ status, theme });
273594
+ useKeypress2(async (key3, rl) => {
273123
273595
  if (status !== "idle") {
273124
273596
  return;
273125
273597
  }
273126
- if (isEnterKey(key2)) {
273598
+ if (isEnterKey2(key3)) {
273127
273599
  const answer = value5 || defaultValue;
273128
273600
  setStatus("loading");
273129
273601
  const isValid = required2 && !answer ? "You must provide a value" : await validate3(answer);
@@ -273140,9 +273612,9 @@ var esm_default2 = createPrompt((config3, done) => {
273140
273612
  setError(isValid || "You must provide a valid value");
273141
273613
  setStatus("idle");
273142
273614
  }
273143
- } else if (isBackspaceKey(key2) && !value5) {
273615
+ } else if (isBackspaceKey2(key3) && !value5) {
273144
273616
  setDefaultValue(undefined);
273145
- } else if (isTabKey(key2) && !value5) {
273617
+ } else if (isTabKey2(key3) && !value5) {
273146
273618
  setDefaultValue(undefined);
273147
273619
  rl.clearLine(0);
273148
273620
  rl.write(defaultValue);
@@ -273152,7 +273624,7 @@ var esm_default2 = createPrompt((config3, done) => {
273152
273624
  setError(undefined);
273153
273625
  }
273154
273626
  });
273155
- useEffect((rl) => {
273627
+ useEffect2((rl) => {
273156
273628
  if (prefill === "editable" && defaultValue) {
273157
273629
  rl.write(defaultValue);
273158
273630
  setValue(defaultValue);
@@ -273197,14 +273669,13 @@ async function subgraphNamePrompt({
273197
273669
  return sanitizeName(subgraphName);
273198
273670
  }
273199
273671
 
273200
- // ../../node_modules/.bun/@inquirer+select@4.3.2+e9dc26b4af2fda18/node_modules/@inquirer/select/dist/esm/index.js
273201
- var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
273202
- var import_ansi_escapes2 = __toESM(require_ansi_escapes(), 1);
273672
+ // ../../node_modules/.bun/@inquirer+select@4.3.4+e9dc26b4af2fda18/node_modules/@inquirer/select/dist/esm/index.js
273673
+ var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
273203
273674
  var selectTheme = {
273204
273675
  icon: { cursor: esm_default.pointer },
273205
273676
  style: {
273206
- disabled: (text2) => import_yoctocolors_cjs3.default.dim(`- ${text2}`),
273207
- description: (text2) => import_yoctocolors_cjs3.default.cyan(text2)
273677
+ disabled: (text2) => import_yoctocolors_cjs4.default.dim(`- ${text2}`),
273678
+ description: (text2) => import_yoctocolors_cjs4.default.cyan(text2)
273208
273679
  },
273209
273680
  helpMode: "auto",
273210
273681
  indexMode: "hidden"
@@ -273260,22 +273731,22 @@ var esm_default3 = createPrompt((config3, done) => {
273260
273731
  }, [config3.default, items]);
273261
273732
  const [active, setActive] = useState(defaultItemIndex === -1 ? bounds.first : defaultItemIndex);
273262
273733
  const selectedChoice = items[active];
273263
- useKeypress((key2, rl) => {
273734
+ useKeypress((key3, rl) => {
273264
273735
  clearTimeout(searchTimeoutRef.current);
273265
- if (isEnterKey(key2)) {
273736
+ if (isEnterKey(key3)) {
273266
273737
  setStatus("done");
273267
273738
  done(selectedChoice.value);
273268
- } else if (isUpKey(key2) || isDownKey(key2)) {
273739
+ } else if (isUpKey(key3) || isDownKey(key3)) {
273269
273740
  rl.clearLine(0);
273270
- if (loop || isUpKey(key2) && active !== bounds.first || isDownKey(key2) && active !== bounds.last) {
273271
- const offset = isUpKey(key2) ? -1 : 1;
273741
+ if (loop || isUpKey(key3) && active !== bounds.first || isDownKey(key3) && active !== bounds.last) {
273742
+ const offset = isUpKey(key3) ? -1 : 1;
273272
273743
  let next = active;
273273
273744
  do {
273274
273745
  next = (next + offset + items.length) % items.length;
273275
273746
  } while (!isSelectable(items[next]));
273276
273747
  setActive(next);
273277
273748
  }
273278
- } else if (isNumberKey(key2) && !Number.isNaN(Number(rl.line))) {
273749
+ } else if (isNumberKey(key3) && !Number.isNaN(Number(rl.line))) {
273279
273750
  const selectedIndex = Number(rl.line) - 1;
273280
273751
  let selectableIndex = -1;
273281
273752
  const position = items.findIndex((item2) => {
@@ -273291,7 +273762,7 @@ var esm_default3 = createPrompt((config3, done) => {
273291
273762
  searchTimeoutRef.current = setTimeout(() => {
273292
273763
  rl.clearLine(0);
273293
273764
  }, 700);
273294
- } else if (isBackspaceKey(key2)) {
273765
+ } else if (isBackspaceKey(key3)) {
273295
273766
  rl.clearLine(0);
273296
273767
  } else {
273297
273768
  const searchTerm = rl.line.toLowerCase();
@@ -273350,7 +273821,7 @@ ${theme.style.help(`(${config3.instructions?.pager ?? "Use arrow keys to reveal
273350
273821
  const choiceDescription = selectedChoice.description ? `
273351
273822
  ${theme.style.description(selectedChoice.description)}` : ``;
273352
273823
  return `${[prefix, message, helpTipTop].filter(Boolean).join(" ")}
273353
- ${page}${helpTipBottom}${choiceDescription}${import_ansi_escapes2.default.cursorHide}`;
273824
+ ${page}${helpTipBottom}${choiceDescription}${cursorHide}`;
273354
273825
  });
273355
273826
 
273356
273827
  // src/prompts/smart-contract-set/subgraph.prompt.ts
@@ -274995,14 +275466,14 @@ function includesArgs(parameters) {
274995
275466
  });
274996
275467
  }
274997
275468
  if (typeof args === "object" && !Array.isArray(args) && typeof matchArgs === "object" && !Array.isArray(matchArgs))
274998
- return Object.entries(matchArgs).every(([key2, value5]) => {
275469
+ return Object.entries(matchArgs).every(([key3, value5]) => {
274999
275470
  if (value5 === null || value5 === undefined)
275000
275471
  return true;
275001
- const input = inputs.find((input2) => input2.name === key2);
275472
+ const input = inputs.find((input2) => input2.name === key3);
275002
275473
  if (!input)
275003
275474
  return false;
275004
275475
  const value_ = Array.isArray(value5) ? value5 : [value5];
275005
- return value_.some((value6) => isEqual(input, value6, args[key2]));
275476
+ return value_.some((value6) => isEqual(input, value6, args[key3]));
275006
275477
  });
275007
275478
  return false;
275008
275479
  }
@@ -275201,13 +275672,13 @@ function observe(observerId, callbacks, fn) {
275201
275672
  if (listeners && listeners.length > 0)
275202
275673
  return unwatch;
275203
275674
  const emit = {};
275204
- for (const key2 in callbacks) {
275205
- emit[key2] = (...args) => {
275675
+ for (const key3 in callbacks) {
275676
+ emit[key3] = (...args) => {
275206
275677
  const listeners2 = getListeners();
275207
275678
  if (listeners2.length === 0)
275208
275679
  return;
275209
275680
  for (const listener of listeners2)
275210
- listener.fns[key2]?.(...args);
275681
+ listener.fns[key3]?.(...args);
275211
275682
  };
275212
275683
  }
275213
275684
  const cleanup = fn(emit);
@@ -275587,7 +276058,7 @@ function uid(length = 11) {
275587
276058
 
275588
276059
  // ../../node_modules/.bun/viem@2.37.5+50e9b7ffbf081acf/node_modules/viem/_esm/clients/createClient.js
275589
276060
  function createClient(parameters) {
275590
- const { batch, chain, ccipRead, key: key2 = "base", name: name4 = "Base Client", type: type5 = "base" } = parameters;
276061
+ const { batch, chain, ccipRead, key: key3 = "base", name: name4 = "Base Client", type: type5 = "base" } = parameters;
275591
276062
  const experimental_blockTag = parameters.experimental_blockTag ?? (typeof chain?.experimental_preconfirmationTime === "number" ? "pending" : undefined);
275592
276063
  const blockTime = chain?.blockTime ?? 12000;
275593
276064
  const defaultPollingInterval = Math.min(Math.max(Math.floor(blockTime / 2), 500), 4000);
@@ -275605,7 +276076,7 @@ function createClient(parameters) {
275605
276076
  cacheTime,
275606
276077
  ccipRead,
275607
276078
  chain,
275608
- key: key2,
276079
+ key: key3,
275609
276080
  name: name4,
275610
276081
  pollingInterval,
275611
276082
  request: request2,
@@ -275617,8 +276088,8 @@ function createClient(parameters) {
275617
276088
  function extend2(base2) {
275618
276089
  return (extendFn) => {
275619
276090
  const extended = extendFn(base2);
275620
- for (const key3 in client)
275621
- delete extended[key3];
276091
+ for (const key4 in client)
276092
+ delete extended[key4];
275622
276093
  const combined = { ...base2, ...extended };
275623
276094
  return Object.assign(combined, { extend: extend2(combined) });
275624
276095
  };
@@ -276037,7 +276508,7 @@ init_getChainContractAddress();
276037
276508
  init_toHex();
276038
276509
  init_localBatchGatewayRequest();
276039
276510
  async function getEnsText(client, parameters) {
276040
- const { blockNumber, blockTag, key: key2, name: name4, gatewayUrls, strict } = parameters;
276511
+ const { blockNumber, blockTag, key: key3, name: name4, gatewayUrls, strict } = parameters;
276041
276512
  const { chain } = client;
276042
276513
  const universalResolverAddress = (() => {
276043
276514
  if (parameters.universalResolverAddress)
@@ -276062,7 +276533,7 @@ async function getEnsText(client, parameters) {
276062
276533
  encodeFunctionData({
276063
276534
  abi: textResolverAbi,
276064
276535
  functionName: "text",
276065
- args: [namehash(name4), key2]
276536
+ args: [namehash(name4), key3]
276066
276537
  }),
276067
276538
  gatewayUrls ?? [localBatchGatewayUrl]
276068
276539
  ],
@@ -278131,16 +278602,16 @@ class LruMap2 extends Map {
278131
278602
  });
278132
278603
  this.maxSize = size5;
278133
278604
  }
278134
- get(key2) {
278135
- const value5 = super.get(key2);
278136
- if (super.has(key2) && value5 !== undefined) {
278137
- this.delete(key2);
278138
- super.set(key2, value5);
278605
+ get(key3) {
278606
+ const value5 = super.get(key3);
278607
+ if (super.has(key3) && value5 !== undefined) {
278608
+ this.delete(key3);
278609
+ super.set(key3, value5);
278139
278610
  }
278140
278611
  return value5;
278141
278612
  }
278142
- set(key2, value5) {
278143
- super.set(key2, value5);
278613
+ set(key3, value5) {
278614
+ super.set(key3, value5);
278144
278615
  if (this.maxSize && this.size > this.maxSize) {
278145
278616
  const firstKey = this.keys().next().value;
278146
278617
  if (firstKey)
@@ -281589,21 +282060,21 @@ function publicActions(client) {
281589
282060
 
281590
282061
  // ../../node_modules/.bun/viem@2.37.5+50e9b7ffbf081acf/node_modules/viem/_esm/clients/createPublicClient.js
281591
282062
  function createPublicClient(parameters) {
281592
- const { key: key2 = "public", name: name4 = "Public Client" } = parameters;
282063
+ const { key: key3 = "public", name: name4 = "Public Client" } = parameters;
281593
282064
  const client = createClient({
281594
282065
  ...parameters,
281595
- key: key2,
282066
+ key: key3,
281596
282067
  name: name4,
281597
282068
  type: "publicClient"
281598
282069
  });
281599
282070
  return client.extend(publicActions);
281600
282071
  }
281601
282072
  // ../../node_modules/.bun/viem@2.37.5+50e9b7ffbf081acf/node_modules/viem/_esm/clients/transports/createTransport.js
281602
- function createTransport({ key: key2, methods, name: name4, request: request2, retryCount = 3, retryDelay = 150, timeout, type: type5 }, value5) {
282073
+ function createTransport({ key: key3, methods, name: name4, request: request2, retryCount = 3, retryDelay = 150, timeout, type: type5 }, value5) {
281603
282074
  const uid2 = uid();
281604
282075
  return {
281605
282076
  config: {
281606
- key: key2,
282077
+ key: key3,
281607
282078
  methods,
281608
282079
  name: name4,
281609
282080
  request: request2,
@@ -281635,7 +282106,7 @@ class UrlRequiredError extends BaseError2 {
281635
282106
  // ../../node_modules/.bun/viem@2.37.5+50e9b7ffbf081acf/node_modules/viem/_esm/clients/transports/http.js
281636
282107
  init_createBatchScheduler();
281637
282108
  function http(url2, config3 = {}) {
281638
- const { batch, fetchFn, fetchOptions, key: key2 = "http", methods, name: name4 = "HTTP JSON-RPC", onFetchRequest, onFetchResponse, retryDelay, raw } = config3;
282109
+ const { batch, fetchFn, fetchOptions, key: key3 = "http", methods, name: name4 = "HTTP JSON-RPC", onFetchRequest, onFetchResponse, retryDelay, raw } = config3;
281639
282110
  return ({ chain, retryCount: retryCount_, timeout: timeout_ }) => {
281640
282111
  const { batchSize = 1000, wait: wait2 = 0 } = typeof batch === "object" ? batch : {};
281641
282112
  const retryCount = config3.retryCount ?? retryCount_;
@@ -281651,7 +282122,7 @@ function http(url2, config3 = {}) {
281651
282122
  timeout
281652
282123
  });
281653
282124
  return createTransport({
281654
- key: key2,
282125
+ key: key3,
281655
282126
  methods,
281656
282127
  name: name4,
281657
282128
  async request({ method, params }) {
@@ -298599,23 +299070,23 @@ var LRUCache3 = class {
298599
299070
  constructor(maxSize) {
298600
299071
  this.maxSize = maxSize;
298601
299072
  }
298602
- get(key2) {
298603
- const value5 = this.cache.get(key2);
299073
+ get(key3) {
299074
+ const value5 = this.cache.get(key3);
298604
299075
  if (value5 !== undefined) {
298605
- this.cache.delete(key2);
298606
- this.cache.set(key2, value5);
299076
+ this.cache.delete(key3);
299077
+ this.cache.set(key3, value5);
298607
299078
  }
298608
299079
  return value5;
298609
299080
  }
298610
- set(key2, value5) {
298611
- this.cache.delete(key2);
299081
+ set(key3, value5) {
299082
+ this.cache.delete(key3);
298612
299083
  if (this.cache.size >= this.maxSize) {
298613
299084
  const firstKey = this.cache.keys().next().value;
298614
299085
  if (firstKey !== undefined) {
298615
299086
  this.cache.delete(firstKey);
298616
299087
  }
298617
299088
  }
298618
- this.cache.set(key2, value5);
299089
+ this.cache.set(key3, value5);
298619
299090
  }
298620
299091
  clear() {
298621
299092
  this.cache.clear();
@@ -298626,9 +299097,9 @@ var publicClientCache = new LRUCache3(50);
298626
299097
  var walletClientFactoryCache = new LRUCache3(50);
298627
299098
  function buildHeaders(baseHeaders, authHeaders) {
298628
299099
  const filteredHeaders = {};
298629
- for (const [key2, value5] of Object.entries(authHeaders)) {
299100
+ for (const [key3, value5] of Object.entries(authHeaders)) {
298630
299101
  if (value5 !== undefined) {
298631
- filteredHeaders[key2] = value5;
299102
+ filteredHeaders[key3] = value5;
298632
299103
  }
298633
299104
  }
298634
299105
  return appendHeaders(baseHeaders, filteredHeaders);
@@ -298936,7 +299407,7 @@ function extractInfoFromBody(body) {
298936
299407
  }
298937
299408
  }
298938
299409
 
298939
- // ../../node_modules/.bun/@inquirer+confirm@5.1.16+e9dc26b4af2fda18/node_modules/@inquirer/confirm/dist/esm/index.js
299410
+ // ../../node_modules/.bun/@inquirer+confirm@5.1.18+e9dc26b4af2fda18/node_modules/@inquirer/confirm/dist/esm/index.js
298940
299411
  function getBooleanValue(value5, defaultValue) {
298941
299412
  let answer = defaultValue !== false;
298942
299413
  if (/^(y|yes)/i.test(value5))
@@ -298954,15 +299425,15 @@ var esm_default4 = createPrompt((config3, done) => {
298954
299425
  const [value5, setValue] = useState("");
298955
299426
  const theme = makeTheme(config3.theme);
298956
299427
  const prefix = usePrefix({ status, theme });
298957
- useKeypress((key2, rl) => {
299428
+ useKeypress((key3, rl) => {
298958
299429
  if (status !== "idle")
298959
299430
  return;
298960
- if (isEnterKey(key2)) {
299431
+ if (isEnterKey(key3)) {
298961
299432
  const answer = getBooleanValue(value5, config3.default);
298962
299433
  setValue(transformer(answer));
298963
299434
  setStatus("done");
298964
299435
  done(answer);
298965
- } else if (isTabKey(key2)) {
299436
+ } else if (isTabKey(key3)) {
298966
299437
  const answer = boolToString(!getBooleanValue(value5, config3.default));
298967
299438
  rl.clearLine(0);
298968
299439
  rl.write(answer);
@@ -298982,464 +299453,8 @@ var esm_default4 = createPrompt((config3, done) => {
298982
299453
  return `${prefix} ${message}${defaultValue} ${formattedValue}`;
298983
299454
  });
298984
299455
 
298985
- // ../../node_modules/.bun/@inquirer+core@10.2.1+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/key.js
298986
- var isEnterKey2 = (key2) => key2.name === "enter" || key2.name === "return";
298987
- // ../../node_modules/.bun/@inquirer+core@10.2.1+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/errors.js
298988
- class AbortPromptError2 extends Error {
298989
- name = "AbortPromptError";
298990
- message = "Prompt was aborted";
298991
- constructor(options) {
298992
- super();
298993
- this.cause = options?.cause;
298994
- }
298995
- }
298996
-
298997
- class CancelPromptError2 extends Error {
298998
- name = "CancelPromptError";
298999
- message = "Prompt was canceled";
299000
- }
299001
-
299002
- class ExitPromptError2 extends Error {
299003
- name = "ExitPromptError";
299004
- }
299005
-
299006
- class HookError2 extends Error {
299007
- name = "HookError";
299008
- }
299009
-
299010
- class ValidationError2 extends Error {
299011
- name = "ValidationError";
299012
- }
299013
- // ../../node_modules/.bun/@inquirer+core@10.2.1+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-state.js
299014
- import { AsyncResource as AsyncResource5 } from "node:async_hooks";
299015
-
299016
- // ../../node_modules/.bun/@inquirer+core@10.2.1+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
299017
- import { AsyncLocalStorage as AsyncLocalStorage2, AsyncResource as AsyncResource4 } from "node:async_hooks";
299018
- var hookStorage2 = new AsyncLocalStorage2;
299019
- function createStore2(rl) {
299020
- const store = {
299021
- rl,
299022
- hooks: [],
299023
- hooksCleanup: [],
299024
- hooksEffect: [],
299025
- index: 0,
299026
- handleChange() {}
299027
- };
299028
- return store;
299029
- }
299030
- function withHooks2(rl, cb) {
299031
- const store = createStore2(rl);
299032
- return hookStorage2.run(store, () => {
299033
- function cycle(render) {
299034
- store.handleChange = () => {
299035
- store.index = 0;
299036
- render();
299037
- };
299038
- store.handleChange();
299039
- }
299040
- return cb(cycle);
299041
- });
299042
- }
299043
- function getStore2() {
299044
- const store = hookStorage2.getStore();
299045
- if (!store) {
299046
- throw new HookError2("[Inquirer] Hook functions can only be called from within a prompt");
299047
- }
299048
- return store;
299049
- }
299050
- function readline3() {
299051
- return getStore2().rl;
299052
- }
299053
- function withUpdates2(fn) {
299054
- const wrapped = (...args) => {
299055
- const store = getStore2();
299056
- let shouldUpdate = false;
299057
- const oldHandleChange = store.handleChange;
299058
- store.handleChange = () => {
299059
- shouldUpdate = true;
299060
- };
299061
- const returnValue = fn(...args);
299062
- if (shouldUpdate) {
299063
- oldHandleChange();
299064
- }
299065
- store.handleChange = oldHandleChange;
299066
- return returnValue;
299067
- };
299068
- return AsyncResource4.bind(wrapped);
299069
- }
299070
- function withPointer2(cb) {
299071
- const store = getStore2();
299072
- const { index: index2 } = store;
299073
- const pointer = {
299074
- get() {
299075
- return store.hooks[index2];
299076
- },
299077
- set(value5) {
299078
- store.hooks[index2] = value5;
299079
- },
299080
- initialized: index2 in store.hooks
299081
- };
299082
- const returnValue = cb(pointer);
299083
- store.index++;
299084
- return returnValue;
299085
- }
299086
- function handleChange2() {
299087
- getStore2().handleChange();
299088
- }
299089
- var effectScheduler2 = {
299090
- queue(cb) {
299091
- const store = getStore2();
299092
- const { index: index2 } = store;
299093
- store.hooksEffect.push(() => {
299094
- store.hooksCleanup[index2]?.();
299095
- const cleanFn = cb(readline3());
299096
- if (cleanFn != null && typeof cleanFn !== "function") {
299097
- throw new ValidationError2("useEffect return value must be a cleanup function or nothing.");
299098
- }
299099
- store.hooksCleanup[index2] = cleanFn;
299100
- });
299101
- },
299102
- run() {
299103
- const store = getStore2();
299104
- withUpdates2(() => {
299105
- store.hooksEffect.forEach((effect) => {
299106
- effect();
299107
- });
299108
- store.hooksEffect.length = 0;
299109
- })();
299110
- },
299111
- clearAll() {
299112
- const store = getStore2();
299113
- store.hooksCleanup.forEach((cleanFn) => {
299114
- cleanFn?.();
299115
- });
299116
- store.hooksEffect.length = 0;
299117
- store.hooksCleanup.length = 0;
299118
- }
299119
- };
299120
-
299121
- // ../../node_modules/.bun/@inquirer+core@10.2.1+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-state.js
299122
- function useState2(defaultValue) {
299123
- return withPointer2((pointer) => {
299124
- const setState = AsyncResource5.bind(function setState(newValue) {
299125
- if (pointer.get() !== newValue) {
299126
- pointer.set(newValue);
299127
- handleChange2();
299128
- }
299129
- });
299130
- if (pointer.initialized) {
299131
- return [pointer.get(), setState];
299132
- }
299133
- const value5 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
299134
- pointer.set(value5);
299135
- return [value5, setState];
299136
- });
299137
- }
299138
-
299139
- // ../../node_modules/.bun/@inquirer+core@10.2.1+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
299140
- function useEffect2(cb, depArray) {
299141
- withPointer2((pointer) => {
299142
- const oldDeps = pointer.get();
299143
- const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i7) => !Object.is(dep, oldDeps[i7]));
299144
- if (hasChanged) {
299145
- effectScheduler2.queue(cb);
299146
- }
299147
- pointer.set(depArray);
299148
- });
299149
- }
299150
-
299151
- // ../../node_modules/.bun/@inquirer+core@10.2.1+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/theme.js
299152
- var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
299153
- var defaultTheme2 = {
299154
- prefix: {
299155
- idle: import_yoctocolors_cjs4.default.blue("?"),
299156
- done: import_yoctocolors_cjs4.default.green(esm_default.tick)
299157
- },
299158
- spinner: {
299159
- interval: 80,
299160
- frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs4.default.yellow(frame))
299161
- },
299162
- style: {
299163
- answer: import_yoctocolors_cjs4.default.cyan,
299164
- message: import_yoctocolors_cjs4.default.bold,
299165
- error: (text2) => import_yoctocolors_cjs4.default.red(`> ${text2}`),
299166
- defaultAnswer: (text2) => import_yoctocolors_cjs4.default.dim(`(${text2})`),
299167
- help: import_yoctocolors_cjs4.default.dim,
299168
- highlight: import_yoctocolors_cjs4.default.cyan,
299169
- key: (text2) => import_yoctocolors_cjs4.default.cyan(import_yoctocolors_cjs4.default.bold(`<${text2}>`))
299170
- }
299171
- };
299172
-
299173
- // ../../node_modules/.bun/@inquirer+core@10.2.1+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
299174
- function isPlainObject4(value5) {
299175
- if (typeof value5 !== "object" || value5 === null)
299176
- return false;
299177
- let proto = value5;
299178
- while (Object.getPrototypeOf(proto) !== null) {
299179
- proto = Object.getPrototypeOf(proto);
299180
- }
299181
- return Object.getPrototypeOf(value5) === proto;
299182
- }
299183
- function deepMerge3(...objects) {
299184
- const output = {};
299185
- for (const obj of objects) {
299186
- for (const [key2, value5] of Object.entries(obj)) {
299187
- const prevValue = output[key2];
299188
- output[key2] = isPlainObject4(prevValue) && isPlainObject4(value5) ? deepMerge3(prevValue, value5) : value5;
299189
- }
299190
- }
299191
- return output;
299192
- }
299193
- function makeTheme2(...themes) {
299194
- const themesToMerge = [
299195
- defaultTheme2,
299196
- ...themes.filter((theme) => theme != null)
299197
- ];
299198
- return deepMerge3(...themesToMerge);
299199
- }
299200
-
299201
- // ../../node_modules/.bun/@inquirer+core@10.2.1+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
299202
- function usePrefix2({ status = "idle", theme }) {
299203
- const [showLoader, setShowLoader] = useState2(false);
299204
- const [tick, setTick] = useState2(0);
299205
- const { prefix, spinner: spinner2 } = makeTheme2(theme);
299206
- useEffect2(() => {
299207
- if (status === "loading") {
299208
- let tickInterval;
299209
- let inc = -1;
299210
- const delayTimeout = setTimeout(() => {
299211
- setShowLoader(true);
299212
- tickInterval = setInterval(() => {
299213
- inc = inc + 1;
299214
- setTick(inc % spinner2.frames.length);
299215
- }, spinner2.interval);
299216
- }, 300);
299217
- return () => {
299218
- clearTimeout(delayTimeout);
299219
- clearInterval(tickInterval);
299220
- };
299221
- } else {
299222
- setShowLoader(false);
299223
- }
299224
- }, [status]);
299225
- if (showLoader) {
299226
- return spinner2.frames[tick];
299227
- }
299228
- const iconName = status === "loading" ? "idle" : status;
299229
- return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
299230
- }
299231
- // ../../node_modules/.bun/@inquirer+core@10.2.1+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
299232
- function useRef2(val) {
299233
- return useState2({ current: val })[0];
299234
- }
299235
-
299236
- // ../../node_modules/.bun/@inquirer+core@10.2.1+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
299237
- function useKeypress2(userHandler) {
299238
- const signal = useRef2(userHandler);
299239
- signal.current = userHandler;
299240
- useEffect2((rl) => {
299241
- let ignore = false;
299242
- const handler = withUpdates2((_input, event) => {
299243
- if (ignore)
299244
- return;
299245
- signal.current(event, rl);
299246
- });
299247
- rl.input.on("keypress", handler);
299248
- return () => {
299249
- ignore = true;
299250
- rl.input.removeListener("keypress", handler);
299251
- };
299252
- }, []);
299253
- }
299254
- // ../../node_modules/.bun/@inquirer+core@10.2.1+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/utils.js
299255
- var import_cli_width2 = __toESM(require_cli_width(), 1);
299256
- var import_wrap_ansi2 = __toESM(require_wrap_ansi(), 1);
299257
- function breakLines2(content, width) {
299258
- return content.split(`
299259
- `).flatMap((line) => import_wrap_ansi2.default(line, width, { trim: false, hard: true }).split(`
299260
- `).map((str) => str.trimEnd())).join(`
299261
- `);
299262
- }
299263
- function readlineWidth2() {
299264
- return import_cli_width2.default({ defaultWidth: 80, output: readline3().output });
299265
- }
299266
-
299267
- // ../../node_modules/.bun/@inquirer+core@10.2.1+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
299268
- var import_mute_stream2 = __toESM(require_lib(), 1);
299269
- import * as readline4 from "node:readline";
299270
- import { AsyncResource as AsyncResource6 } from "node:async_hooks";
299271
-
299272
- // ../../node_modules/.bun/@inquirer+core@10.2.1+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
299273
- var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
299274
- import { stripVTControlCharacters as stripVTControlCharacters3 } from "node:util";
299275
- var height2 = (content) => content.split(`
299276
- `).length;
299277
- var lastLine2 = (content) => content.split(`
299278
- `).pop() ?? "";
299279
- function cursorDown2(n7) {
299280
- return n7 > 0 ? import_ansi_escapes3.default.cursorDown(n7) : "";
299281
- }
299282
-
299283
- class ScreenManager2 {
299284
- height = 0;
299285
- extraLinesUnderPrompt = 0;
299286
- cursorPos;
299287
- rl;
299288
- constructor(rl) {
299289
- this.rl = rl;
299290
- this.cursorPos = rl.getCursorPos();
299291
- }
299292
- write(content) {
299293
- this.rl.output.unmute();
299294
- this.rl.output.write(content);
299295
- this.rl.output.mute();
299296
- }
299297
- render(content, bottomContent = "") {
299298
- const promptLine = lastLine2(content);
299299
- const rawPromptLine = stripVTControlCharacters3(promptLine);
299300
- let prompt = rawPromptLine;
299301
- if (this.rl.line.length > 0) {
299302
- prompt = prompt.slice(0, -this.rl.line.length);
299303
- }
299304
- this.rl.setPrompt(prompt);
299305
- this.cursorPos = this.rl.getCursorPos();
299306
- const width = readlineWidth2();
299307
- content = breakLines2(content, width);
299308
- bottomContent = breakLines2(bottomContent, width);
299309
- if (rawPromptLine.length % width === 0) {
299310
- content += `
299311
- `;
299312
- }
299313
- let output = content + (bottomContent ? `
299314
- ` + bottomContent : "");
299315
- const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
299316
- const bottomContentHeight = promptLineUpDiff + (bottomContent ? height2(bottomContent) : 0);
299317
- if (bottomContentHeight > 0)
299318
- output += import_ansi_escapes3.default.cursorUp(bottomContentHeight);
299319
- output += import_ansi_escapes3.default.cursorTo(this.cursorPos.cols);
299320
- this.write(cursorDown2(this.extraLinesUnderPrompt) + import_ansi_escapes3.default.eraseLines(this.height) + output);
299321
- this.extraLinesUnderPrompt = bottomContentHeight;
299322
- this.height = height2(output);
299323
- }
299324
- checkCursorPos() {
299325
- const cursorPos = this.rl.getCursorPos();
299326
- if (cursorPos.cols !== this.cursorPos.cols) {
299327
- this.write(import_ansi_escapes3.default.cursorTo(cursorPos.cols));
299328
- this.cursorPos = cursorPos;
299329
- }
299330
- }
299331
- done({ clearContent }) {
299332
- this.rl.setPrompt("");
299333
- let output = cursorDown2(this.extraLinesUnderPrompt);
299334
- output += clearContent ? import_ansi_escapes3.default.eraseLines(this.height) : `
299335
- `;
299336
- output += import_ansi_escapes3.default.cursorShow;
299337
- this.write(output);
299338
- this.rl.close();
299339
- }
299340
- }
299341
-
299342
- // ../../node_modules/.bun/@inquirer+core@10.2.1+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
299343
- class PromisePolyfill2 extends Promise {
299344
- static withResolver() {
299345
- let resolve7;
299346
- let reject;
299347
- const promise2 = new Promise((res, rej) => {
299348
- resolve7 = res;
299349
- reject = rej;
299350
- });
299351
- return { promise: promise2, resolve: resolve7, reject };
299352
- }
299353
- }
299354
-
299355
- // ../../node_modules/.bun/@inquirer+core@10.2.1+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
299356
- function getCallSites2() {
299357
- const _prepareStackTrace = Error.prepareStackTrace;
299358
- let result = [];
299359
- try {
299360
- Error.prepareStackTrace = (_5, callSites) => {
299361
- const callSitesWithoutCurrent = callSites.slice(1);
299362
- result = callSitesWithoutCurrent;
299363
- return callSitesWithoutCurrent;
299364
- };
299365
- new Error().stack;
299366
- } catch {
299367
- return result;
299368
- }
299369
- Error.prepareStackTrace = _prepareStackTrace;
299370
- return result;
299371
- }
299372
- function createPrompt2(view) {
299373
- const callSites = getCallSites2();
299374
- const prompt = (config3, context = {}) => {
299375
- const { input = process.stdin, signal } = context;
299376
- const cleanups = new Set;
299377
- const output = new import_mute_stream2.default;
299378
- output.pipe(context.output ?? process.stdout);
299379
- const rl = readline4.createInterface({
299380
- terminal: true,
299381
- input,
299382
- output
299383
- });
299384
- const screen = new ScreenManager2(rl);
299385
- const { promise: promise2, resolve: resolve7, reject } = PromisePolyfill2.withResolver();
299386
- const cancel3 = () => reject(new CancelPromptError2);
299387
- if (signal) {
299388
- const abort = () => reject(new AbortPromptError2({ cause: signal.reason }));
299389
- if (signal.aborted) {
299390
- abort();
299391
- return Object.assign(promise2, { cancel: cancel3 });
299392
- }
299393
- signal.addEventListener("abort", abort);
299394
- cleanups.add(() => signal.removeEventListener("abort", abort));
299395
- }
299396
- cleanups.add(onExit((code2, signal2) => {
299397
- reject(new ExitPromptError2(`User force closed the prompt with ${code2} ${signal2}`));
299398
- }));
299399
- const sigint = () => reject(new ExitPromptError2(`User force closed the prompt with SIGINT`));
299400
- rl.on("SIGINT", sigint);
299401
- cleanups.add(() => rl.removeListener("SIGINT", sigint));
299402
- const checkCursorPos = () => screen.checkCursorPos();
299403
- rl.input.on("keypress", checkCursorPos);
299404
- cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
299405
- return withHooks2(rl, (cycle) => {
299406
- const hooksCleanup = AsyncResource6.bind(() => effectScheduler2.clearAll());
299407
- rl.on("close", hooksCleanup);
299408
- cleanups.add(() => rl.removeListener("close", hooksCleanup));
299409
- cycle(() => {
299410
- try {
299411
- const nextView = view(config3, (value5) => {
299412
- setImmediate(() => resolve7(value5));
299413
- });
299414
- if (nextView === undefined) {
299415
- const callerFilename = callSites[1]?.getFileName();
299416
- throw new Error(`Prompt functions must return a string.
299417
- at ${callerFilename}`);
299418
- }
299419
- const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
299420
- screen.render(content, bottomContent);
299421
- effectScheduler2.run();
299422
- } catch (error48) {
299423
- reject(error48);
299424
- }
299425
- });
299426
- return Object.assign(promise2.then((answer) => {
299427
- effectScheduler2.clearAll();
299428
- return answer;
299429
- }, (error48) => {
299430
- effectScheduler2.clearAll();
299431
- throw error48;
299432
- }).finally(() => {
299433
- cleanups.forEach((cleanup) => cleanup());
299434
- screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
299435
- output.end();
299436
- }).then(() => promise2), { cancel: cancel3 });
299437
- });
299438
- };
299439
- return prompt;
299440
- }
299441
- // ../../node_modules/.bun/@inquirer+password@4.0.19+e9dc26b4af2fda18/node_modules/@inquirer/password/dist/esm/index.js
299442
- var import_ansi_escapes4 = __toESM(require_ansi_escapes(), 1);
299456
+ // ../../node_modules/.bun/@inquirer+password@4.0.18+e9dc26b4af2fda18/node_modules/@inquirer/password/dist/esm/index.js
299457
+ var import_ansi_escapes2 = __toESM(require_ansi_escapes(), 1);
299443
299458
  var esm_default5 = createPrompt2((config3, done) => {
299444
299459
  const { validate: validate8 = () => true } = config3;
299445
299460
  const theme = makeTheme2(config3.theme);
@@ -299476,7 +299491,7 @@ var esm_default5 = createPrompt2((config3, done) => {
299476
299491
  const maskChar = typeof config3.mask === "string" ? config3.mask : "*";
299477
299492
  formattedValue = maskChar.repeat(value5.length);
299478
299493
  } else if (status !== "done") {
299479
- helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes4.default.cursorHide}`;
299494
+ helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes2.default.cursorHide}`;
299480
299495
  }
299481
299496
  if (status === "done") {
299482
299497
  formattedValue = theme.style.answer(formattedValue);
@@ -309049,4 +309064,4 @@ async function sdkCliCommand(argv = process.argv) {
309049
309064
  // src/cli.ts
309050
309065
  sdkCliCommand();
309051
309066
 
309052
- //# debugId=6FEB1D0B39698B6564756E2164756E21
309067
+ //# debugId=6B62A2C771C3513564756E2164756E21