@settlemint/sdk-cli 2.6.4-pr53b27f55 → 2.6.4-pr55b80e17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -230804,6 +230804,126 @@ var require_slugify = __commonJS((exports, module) => {
230804
230804
  });
230805
230805
  });
230806
230806
 
230807
+ // ../../node_modules/.bun/mute-stream@3.0.0/node_modules/mute-stream/lib/index.js
230808
+ var require_lib13 = __commonJS((exports, module) => {
230809
+ var Stream2 = __require("stream");
230810
+
230811
+ class MuteStream2 extends Stream2 {
230812
+ #isTTY = null;
230813
+ constructor(opts = {}) {
230814
+ super(opts);
230815
+ this.writable = this.readable = true;
230816
+ this.muted = false;
230817
+ this.on("pipe", this._onpipe);
230818
+ this.replace = opts.replace;
230819
+ this._prompt = opts.prompt || null;
230820
+ this._hadControl = false;
230821
+ }
230822
+ #destSrc(key, def) {
230823
+ if (this._dest) {
230824
+ return this._dest[key];
230825
+ }
230826
+ if (this._src) {
230827
+ return this._src[key];
230828
+ }
230829
+ return def;
230830
+ }
230831
+ #proxy(method, ...args) {
230832
+ if (typeof this._dest?.[method] === "function") {
230833
+ this._dest[method](...args);
230834
+ }
230835
+ if (typeof this._src?.[method] === "function") {
230836
+ this._src[method](...args);
230837
+ }
230838
+ }
230839
+ get isTTY() {
230840
+ if (this.#isTTY !== null) {
230841
+ return this.#isTTY;
230842
+ }
230843
+ return this.#destSrc("isTTY", false);
230844
+ }
230845
+ set isTTY(val) {
230846
+ this.#isTTY = val;
230847
+ }
230848
+ get rows() {
230849
+ return this.#destSrc("rows");
230850
+ }
230851
+ get columns() {
230852
+ return this.#destSrc("columns");
230853
+ }
230854
+ mute() {
230855
+ this.muted = true;
230856
+ }
230857
+ unmute() {
230858
+ this.muted = false;
230859
+ }
230860
+ _onpipe(src) {
230861
+ this._src = src;
230862
+ }
230863
+ pipe(dest, options) {
230864
+ this._dest = dest;
230865
+ return super.pipe(dest, options);
230866
+ }
230867
+ pause() {
230868
+ if (this._src) {
230869
+ return this._src.pause();
230870
+ }
230871
+ }
230872
+ resume() {
230873
+ if (this._src) {
230874
+ return this._src.resume();
230875
+ }
230876
+ }
230877
+ write(c4) {
230878
+ if (this.muted) {
230879
+ if (!this.replace) {
230880
+ return true;
230881
+ }
230882
+ if (c4.match(/^\u001b/)) {
230883
+ if (c4.indexOf(this._prompt) === 0) {
230884
+ c4 = c4.slice(this._prompt.length);
230885
+ c4 = c4.replace(/./g, this.replace);
230886
+ c4 = this._prompt + c4;
230887
+ }
230888
+ this._hadControl = true;
230889
+ return this.emit("data", c4);
230890
+ } else {
230891
+ if (this._prompt && this._hadControl && c4.indexOf(this._prompt) === 0) {
230892
+ this._hadControl = false;
230893
+ this.emit("data", this._prompt);
230894
+ c4 = c4.slice(this._prompt.length);
230895
+ }
230896
+ c4 = c4.toString().replace(/./g, this.replace);
230897
+ }
230898
+ }
230899
+ this.emit("data", c4);
230900
+ }
230901
+ end(c4) {
230902
+ if (this.muted) {
230903
+ if (c4 && this.replace) {
230904
+ c4 = c4.toString().replace(/./g, this.replace);
230905
+ } else {
230906
+ c4 = null;
230907
+ }
230908
+ }
230909
+ if (c4) {
230910
+ this.emit("data", c4);
230911
+ }
230912
+ this.emit("end");
230913
+ }
230914
+ destroy(...args) {
230915
+ return this.#proxy("destroy", ...args);
230916
+ }
230917
+ destroySoon(...args) {
230918
+ return this.#proxy("destroySoon", ...args);
230919
+ }
230920
+ close(...args) {
230921
+ return this.#proxy("close", ...args);
230922
+ }
230923
+ }
230924
+ module.exports = MuteStream2;
230925
+ });
230926
+
230807
230927
  // ../../node_modules/.bun/abitype@1.1.0+0c447f3ab58cb56e/node_modules/abitype/dist/esm/version.js
230808
230928
  var version2 = "1.1.0";
230809
230929
 
@@ -244319,7 +244439,7 @@ var require_composer = __commonJS((exports) => {
244319
244439
  var node_process = __require("process");
244320
244440
  var directives4 = require_directives2();
244321
244441
  var Document = require_Document();
244322
- var errors4 = require_errors3();
244442
+ var errors5 = require_errors3();
244323
244443
  var identity2 = require_identity();
244324
244444
  var composeDoc = require_compose_doc();
244325
244445
  var resolveEnd = require_resolve_end();
@@ -244370,9 +244490,9 @@ var require_composer = __commonJS((exports) => {
244370
244490
  this.onError = (source, code2, message, warning) => {
244371
244491
  const pos = getErrorPos(source);
244372
244492
  if (warning)
244373
- this.warnings.push(new errors4.YAMLWarning(pos, code2, message));
244493
+ this.warnings.push(new errors5.YAMLWarning(pos, code2, message));
244374
244494
  else
244375
- this.errors.push(new errors4.YAMLParseError(pos, code2, message));
244495
+ this.errors.push(new errors5.YAMLParseError(pos, code2, message));
244376
244496
  };
244377
244497
  this.directives = new directives4.Directives({ version: options.version || "1.2" });
244378
244498
  this.options = options;
@@ -244456,7 +244576,7 @@ ${cb}` : comment;
244456
244576
  break;
244457
244577
  case "error": {
244458
244578
  const msg = token.source ? `${token.message}: ${JSON.stringify(token.source)}` : token.message;
244459
- const error50 = new errors4.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
244579
+ const error50 = new errors5.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
244460
244580
  if (this.atDirectives || !this.doc)
244461
244581
  this.errors.push(error50);
244462
244582
  else
@@ -244466,7 +244586,7 @@ ${cb}` : comment;
244466
244586
  case "doc-end": {
244467
244587
  if (!this.doc) {
244468
244588
  const msg = "Unexpected doc-end without preceding document";
244469
- this.errors.push(new errors4.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
244589
+ this.errors.push(new errors5.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
244470
244590
  break;
244471
244591
  }
244472
244592
  this.doc.directives.docEnd = true;
@@ -244481,7 +244601,7 @@ ${end.comment}` : end.comment;
244481
244601
  break;
244482
244602
  }
244483
244603
  default:
244484
- this.errors.push(new errors4.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
244604
+ this.errors.push(new errors5.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
244485
244605
  }
244486
244606
  }
244487
244607
  *end(forceDoc = false, endOffset = -1) {
@@ -244507,7 +244627,7 @@ ${end.comment}` : end.comment;
244507
244627
  var require_cst_scalar = __commonJS((exports) => {
244508
244628
  var resolveBlockScalar = require_resolve_block_scalar();
244509
244629
  var resolveFlowScalar = require_resolve_flow_scalar();
244510
- var errors4 = require_errors3();
244630
+ var errors5 = require_errors3();
244511
244631
  var stringifyString = require_stringifyString();
244512
244632
  function resolveAsScalar(token, strict = true, onError) {
244513
244633
  if (token) {
@@ -244516,7 +244636,7 @@ var require_cst_scalar = __commonJS((exports) => {
244516
244636
  if (onError)
244517
244637
  onError(offset, code2, message);
244518
244638
  else
244519
- throw new errors4.YAMLParseError([offset, offset + 1], code2, message);
244639
+ throw new errors5.YAMLParseError([offset, offset + 1], code2, message);
244520
244640
  };
244521
244641
  switch (token.type) {
244522
244642
  case "scalar":
@@ -246378,7 +246498,7 @@ var require_parser2 = __commonJS((exports) => {
246378
246498
  var require_public_api = __commonJS((exports) => {
246379
246499
  var composer = require_composer();
246380
246500
  var Document = require_Document();
246381
- var errors4 = require_errors3();
246501
+ var errors5 = require_errors3();
246382
246502
  var log = require_log();
246383
246503
  var identity2 = require_identity();
246384
246504
  var lineCounter = require_line_counter();
@@ -246395,8 +246515,8 @@ var require_public_api = __commonJS((exports) => {
246395
246515
  const docs = Array.from(composer$1.compose(parser$1.parse(source)));
246396
246516
  if (prettyErrors && lineCounter2)
246397
246517
  for (const doc2 of docs) {
246398
- doc2.errors.forEach(errors4.prettifyError(source, lineCounter2));
246399
- doc2.warnings.forEach(errors4.prettifyError(source, lineCounter2));
246518
+ doc2.errors.forEach(errors5.prettifyError(source, lineCounter2));
246519
+ doc2.warnings.forEach(errors5.prettifyError(source, lineCounter2));
246400
246520
  }
246401
246521
  if (docs.length > 0)
246402
246522
  return docs;
@@ -246411,13 +246531,13 @@ var require_public_api = __commonJS((exports) => {
246411
246531
  if (!doc2)
246412
246532
  doc2 = _doc;
246413
246533
  else if (doc2.options.logLevel !== "silent") {
246414
- doc2.errors.push(new errors4.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
246534
+ doc2.errors.push(new errors5.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
246415
246535
  break;
246416
246536
  }
246417
246537
  }
246418
246538
  if (prettyErrors && lineCounter2) {
246419
- doc2.errors.forEach(errors4.prettifyError(source, lineCounter2));
246420
- doc2.warnings.forEach(errors4.prettifyError(source, lineCounter2));
246539
+ doc2.errors.forEach(errors5.prettifyError(source, lineCounter2));
246540
+ doc2.warnings.forEach(errors5.prettifyError(source, lineCounter2));
246421
246541
  }
246422
246542
  return doc2;
246423
246543
  }
@@ -246469,7 +246589,7 @@ var require_public_api = __commonJS((exports) => {
246469
246589
  });
246470
246590
 
246471
246591
  // ../../node_modules/.bun/which@5.0.0/node_modules/which/lib/index.js
246472
- var require_lib13 = __commonJS((exports, module) => {
246592
+ var require_lib14 = __commonJS((exports, module) => {
246473
246593
  var { isexe, sync: isexeSync } = require_cjs();
246474
246594
  var { join: join10, delimiter, sep: sep4, posix: posix2 } = __require("path");
246475
246595
  var isWindows2 = process.platform === "win32";
@@ -262314,7 +262434,7 @@ minimatch.Minimatch = Minimatch;
262314
262434
  minimatch.escape = escape2;
262315
262435
  minimatch.unescape = unescape2;
262316
262436
 
262317
- // ../../node_modules/.bun/glob@11.0.3/node_modules/glob/dist/esm/glob.js
262437
+ // ../../node_modules/.bun/glob@11.1.0/node_modules/glob/dist/esm/glob.js
262318
262438
  import { fileURLToPath as fileURLToPath4 } from "node:url";
262319
262439
 
262320
262440
  // ../../node_modules/.bun/lru-cache@11.2.2/node_modules/lru-cache/dist/esm/index.js
@@ -265419,7 +265539,7 @@ class PathScurryDarwin extends PathScurryPosix {
265419
265539
  var Path = process.platform === "win32" ? PathWin32 : PathPosix;
265420
265540
  var PathScurry = process.platform === "win32" ? PathScurryWin32 : process.platform === "darwin" ? PathScurryDarwin : PathScurryPosix;
265421
265541
 
265422
- // ../../node_modules/.bun/glob@11.0.3/node_modules/glob/dist/esm/pattern.js
265542
+ // ../../node_modules/.bun/glob@11.1.0/node_modules/glob/dist/esm/pattern.js
265423
265543
  var isPatternList = (pl) => pl.length >= 1;
265424
265544
  var isGlobList = (gl) => gl.length >= 1;
265425
265545
 
@@ -265537,7 +265657,7 @@ class Pattern {
265537
265657
  }
265538
265658
  }
265539
265659
 
265540
- // ../../node_modules/.bun/glob@11.0.3/node_modules/glob/dist/esm/ignore.js
265660
+ // ../../node_modules/.bun/glob@11.1.0/node_modules/glob/dist/esm/ignore.js
265541
265661
  var defaultPlatform2 = typeof process === "object" && process && typeof process.platform === "string" ? process.platform : "linux";
265542
265662
 
265543
265663
  class Ignore {
@@ -265625,7 +265745,7 @@ class Ignore {
265625
265745
  }
265626
265746
  }
265627
265747
 
265628
- // ../../node_modules/.bun/glob@11.0.3/node_modules/glob/dist/esm/processor.js
265748
+ // ../../node_modules/.bun/glob@11.1.0/node_modules/glob/dist/esm/processor.js
265629
265749
  class HasWalkedCache {
265630
265750
  store;
265631
265751
  constructor(store = new Map) {
@@ -265843,7 +265963,7 @@ class Processor {
265843
265963
  }
265844
265964
  }
265845
265965
 
265846
- // ../../node_modules/.bun/glob@11.0.3/node_modules/glob/dist/esm/walker.js
265966
+ // ../../node_modules/.bun/glob@11.1.0/node_modules/glob/dist/esm/walker.js
265847
265967
  var makeIgnore = (ignore, opts) => typeof ignore === "string" ? new Ignore([ignore], opts) : Array.isArray(ignore) ? new Ignore(ignore, opts) : ignore;
265848
265968
 
265849
265969
  class GlobUtil {
@@ -266170,7 +266290,7 @@ class GlobStream extends GlobUtil {
266170
266290
  }
266171
266291
  }
266172
266292
 
266173
- // ../../node_modules/.bun/glob@11.0.3/node_modules/glob/dist/esm/glob.js
266293
+ // ../../node_modules/.bun/glob@11.1.0/node_modules/glob/dist/esm/glob.js
266174
266294
  var defaultPlatform3 = typeof process === "object" && process && typeof process.platform === "string" ? process.platform : "linux";
266175
266295
 
266176
266296
  class Glob {
@@ -266344,7 +266464,7 @@ class Glob {
266344
266464
  }
266345
266465
  }
266346
266466
 
266347
- // ../../node_modules/.bun/glob@11.0.3/node_modules/glob/dist/esm/has-magic.js
266467
+ // ../../node_modules/.bun/glob@11.1.0/node_modules/glob/dist/esm/has-magic.js
266348
266468
  var hasMagic = (pattern, options = {}) => {
266349
266469
  if (!Array.isArray(pattern)) {
266350
266470
  pattern = [pattern];
@@ -266356,7 +266476,7 @@ var hasMagic = (pattern, options = {}) => {
266356
266476
  return false;
266357
266477
  };
266358
266478
 
266359
- // ../../node_modules/.bun/glob@11.0.3/node_modules/glob/dist/esm/index.js
266479
+ // ../../node_modules/.bun/glob@11.1.0/node_modules/glob/dist/esm/index.js
266360
266480
  function globStreamSync(pattern, options = {}) {
266361
266481
  return new Glob(pattern, options).streamSync();
266362
266482
  }
@@ -266907,7 +267027,7 @@ function pruneCurrentEnv(currentEnv, env2) {
266907
267027
  var package_default = {
266908
267028
  name: "@settlemint/sdk-cli",
266909
267029
  description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
266910
- version: "2.6.4-pr53b27f55",
267030
+ version: "2.6.4-pr55b80e17",
266911
267031
  type: "module",
266912
267032
  private: false,
266913
267033
  license: "FSL-1.1-MIT",
@@ -266958,13 +267078,13 @@ var package_default = {
266958
267078
  "@commander-js/extra-typings": "14.0.0",
266959
267079
  commander: "14.0.2",
266960
267080
  "@inquirer/confirm": "5.1.21",
266961
- "@inquirer/input": "4.3.1",
267081
+ "@inquirer/input": "4.3.0",
266962
267082
  "@inquirer/password": "4.0.23",
266963
267083
  "@inquirer/select": "4.4.2",
266964
- "@settlemint/sdk-hasura": "2.6.4-pr53b27f55",
266965
- "@settlemint/sdk-js": "2.6.4-pr53b27f55",
266966
- "@settlemint/sdk-utils": "2.6.4-pr53b27f55",
266967
- "@settlemint/sdk-viem": "2.6.4-pr53b27f55",
267084
+ "@settlemint/sdk-hasura": "2.6.4-pr55b80e17",
267085
+ "@settlemint/sdk-js": "2.6.4-pr55b80e17",
267086
+ "@settlemint/sdk-utils": "2.6.4-pr55b80e17",
267087
+ "@settlemint/sdk-viem": "2.6.4-pr55b80e17",
266968
267088
  "@types/node": "24.10.1",
266969
267089
  "@types/semver": "7.7.1",
266970
267090
  "@types/which": "3.0.4",
@@ -266981,7 +267101,7 @@ var package_default = {
266981
267101
  },
266982
267102
  peerDependencies: {
266983
267103
  hardhat: "<= 4",
266984
- "@settlemint/sdk-js": "2.6.4-pr53b27f55"
267104
+ "@settlemint/sdk-js": "2.6.4-pr55b80e17"
266985
267105
  },
266986
267106
  peerDependenciesMeta: {
266987
267107
  hardhat: {
@@ -272536,18 +272656,472 @@ function sanitizeName(value4, length = 35) {
272536
272656
  }).slice(0, length).replaceAll(/(^\d*)/g, "").replaceAll(/(-$)/g, "").replaceAll(/(^-)/g, "");
272537
272657
  }
272538
272658
 
272539
- // ../../node_modules/.bun/@inquirer+input@4.3.1+4cbbb20073436eb8/node_modules/@inquirer/input/dist/esm/index.js
272659
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+4cbbb20073436eb8/node_modules/@inquirer/core/dist/esm/lib/key.js
272660
+ var isBackspaceKey2 = (key) => key.name === "backspace";
272661
+ var isTabKey2 = (key) => key.name === "tab";
272662
+ var isEnterKey2 = (key) => key.name === "enter" || key.name === "return";
272663
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+4cbbb20073436eb8/node_modules/@inquirer/core/dist/esm/lib/errors.js
272664
+ class AbortPromptError2 extends Error {
272665
+ name = "AbortPromptError";
272666
+ message = "Prompt was aborted";
272667
+ constructor(options) {
272668
+ super();
272669
+ this.cause = options?.cause;
272670
+ }
272671
+ }
272672
+
272673
+ class CancelPromptError2 extends Error {
272674
+ name = "CancelPromptError";
272675
+ message = "Prompt was canceled";
272676
+ }
272677
+
272678
+ class ExitPromptError2 extends Error {
272679
+ name = "ExitPromptError";
272680
+ }
272681
+
272682
+ class HookError2 extends Error {
272683
+ name = "HookError";
272684
+ }
272685
+
272686
+ class ValidationError2 extends Error {
272687
+ name = "ValidationError";
272688
+ }
272689
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+4cbbb20073436eb8/node_modules/@inquirer/core/dist/esm/lib/use-state.js
272690
+ import { AsyncResource as AsyncResource5 } from "node:async_hooks";
272691
+
272692
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+4cbbb20073436eb8/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
272693
+ import { AsyncLocalStorage as AsyncLocalStorage2, AsyncResource as AsyncResource4 } from "node:async_hooks";
272694
+ var hookStorage2 = new AsyncLocalStorage2;
272695
+ function createStore2(rl) {
272696
+ const store = {
272697
+ rl,
272698
+ hooks: [],
272699
+ hooksCleanup: [],
272700
+ hooksEffect: [],
272701
+ index: 0,
272702
+ handleChange() {}
272703
+ };
272704
+ return store;
272705
+ }
272706
+ function withHooks2(rl, cb) {
272707
+ const store = createStore2(rl);
272708
+ return hookStorage2.run(store, () => {
272709
+ function cycle(render) {
272710
+ store.handleChange = () => {
272711
+ store.index = 0;
272712
+ render();
272713
+ };
272714
+ store.handleChange();
272715
+ }
272716
+ return cb(cycle);
272717
+ });
272718
+ }
272719
+ function getStore2() {
272720
+ const store = hookStorage2.getStore();
272721
+ if (!store) {
272722
+ throw new HookError2("[Inquirer] Hook functions can only be called from within a prompt");
272723
+ }
272724
+ return store;
272725
+ }
272726
+ function readline3() {
272727
+ return getStore2().rl;
272728
+ }
272729
+ function withUpdates2(fn) {
272730
+ const wrapped = (...args) => {
272731
+ const store = getStore2();
272732
+ let shouldUpdate = false;
272733
+ const oldHandleChange = store.handleChange;
272734
+ store.handleChange = () => {
272735
+ shouldUpdate = true;
272736
+ };
272737
+ const returnValue = fn(...args);
272738
+ if (shouldUpdate) {
272739
+ oldHandleChange();
272740
+ }
272741
+ store.handleChange = oldHandleChange;
272742
+ return returnValue;
272743
+ };
272744
+ return AsyncResource4.bind(wrapped);
272745
+ }
272746
+ function withPointer2(cb) {
272747
+ const store = getStore2();
272748
+ const { index } = store;
272749
+ const pointer = {
272750
+ get() {
272751
+ return store.hooks[index];
272752
+ },
272753
+ set(value4) {
272754
+ store.hooks[index] = value4;
272755
+ },
272756
+ initialized: index in store.hooks
272757
+ };
272758
+ const returnValue = cb(pointer);
272759
+ store.index++;
272760
+ return returnValue;
272761
+ }
272762
+ function handleChange2() {
272763
+ getStore2().handleChange();
272764
+ }
272765
+ var effectScheduler2 = {
272766
+ queue(cb) {
272767
+ const store = getStore2();
272768
+ const { index } = store;
272769
+ store.hooksEffect.push(() => {
272770
+ store.hooksCleanup[index]?.();
272771
+ const cleanFn = cb(readline3());
272772
+ if (cleanFn != null && typeof cleanFn !== "function") {
272773
+ throw new ValidationError2("useEffect return value must be a cleanup function or nothing.");
272774
+ }
272775
+ store.hooksCleanup[index] = cleanFn;
272776
+ });
272777
+ },
272778
+ run() {
272779
+ const store = getStore2();
272780
+ withUpdates2(() => {
272781
+ store.hooksEffect.forEach((effect) => {
272782
+ effect();
272783
+ });
272784
+ store.hooksEffect.length = 0;
272785
+ })();
272786
+ },
272787
+ clearAll() {
272788
+ const store = getStore2();
272789
+ store.hooksCleanup.forEach((cleanFn) => {
272790
+ cleanFn?.();
272791
+ });
272792
+ store.hooksEffect.length = 0;
272793
+ store.hooksCleanup.length = 0;
272794
+ }
272795
+ };
272796
+
272797
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+4cbbb20073436eb8/node_modules/@inquirer/core/dist/esm/lib/use-state.js
272798
+ function useState2(defaultValue) {
272799
+ return withPointer2((pointer) => {
272800
+ const setState = AsyncResource5.bind(function setState(newValue) {
272801
+ if (pointer.get() !== newValue) {
272802
+ pointer.set(newValue);
272803
+ handleChange2();
272804
+ }
272805
+ });
272806
+ if (pointer.initialized) {
272807
+ return [pointer.get(), setState];
272808
+ }
272809
+ const value4 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
272810
+ pointer.set(value4);
272811
+ return [value4, setState];
272812
+ });
272813
+ }
272814
+
272815
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+4cbbb20073436eb8/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
272816
+ function useEffect2(cb, depArray) {
272817
+ withPointer2((pointer) => {
272818
+ const oldDeps = pointer.get();
272819
+ const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i7) => !Object.is(dep, oldDeps[i7]));
272820
+ if (hasChanged) {
272821
+ effectScheduler2.queue(cb);
272822
+ }
272823
+ pointer.set(depArray);
272824
+ });
272825
+ }
272826
+
272827
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+4cbbb20073436eb8/node_modules/@inquirer/core/dist/esm/lib/theme.js
272828
+ var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
272829
+ var defaultTheme2 = {
272830
+ prefix: {
272831
+ idle: import_yoctocolors_cjs3.default.blue("?"),
272832
+ done: import_yoctocolors_cjs3.default.green(esm_default.tick)
272833
+ },
272834
+ spinner: {
272835
+ interval: 80,
272836
+ frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs3.default.yellow(frame))
272837
+ },
272838
+ style: {
272839
+ answer: import_yoctocolors_cjs3.default.cyan,
272840
+ message: import_yoctocolors_cjs3.default.bold,
272841
+ error: (text2) => import_yoctocolors_cjs3.default.red(`> ${text2}`),
272842
+ defaultAnswer: (text2) => import_yoctocolors_cjs3.default.dim(`(${text2})`),
272843
+ help: import_yoctocolors_cjs3.default.dim,
272844
+ highlight: import_yoctocolors_cjs3.default.cyan,
272845
+ key: (text2) => import_yoctocolors_cjs3.default.cyan(import_yoctocolors_cjs3.default.bold(`<${text2}>`))
272846
+ }
272847
+ };
272848
+
272849
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+4cbbb20073436eb8/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
272850
+ function isPlainObject4(value4) {
272851
+ if (typeof value4 !== "object" || value4 === null)
272852
+ return false;
272853
+ let proto = value4;
272854
+ while (Object.getPrototypeOf(proto) !== null) {
272855
+ proto = Object.getPrototypeOf(proto);
272856
+ }
272857
+ return Object.getPrototypeOf(value4) === proto;
272858
+ }
272859
+ function deepMerge3(...objects) {
272860
+ const output = {};
272861
+ for (const obj of objects) {
272862
+ for (const [key, value4] of Object.entries(obj)) {
272863
+ const prevValue = output[key];
272864
+ output[key] = isPlainObject4(prevValue) && isPlainObject4(value4) ? deepMerge3(prevValue, value4) : value4;
272865
+ }
272866
+ }
272867
+ return output;
272868
+ }
272869
+ function makeTheme2(...themes) {
272870
+ const themesToMerge = [
272871
+ defaultTheme2,
272872
+ ...themes.filter((theme) => theme != null)
272873
+ ];
272874
+ return deepMerge3(...themesToMerge);
272875
+ }
272876
+
272877
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+4cbbb20073436eb8/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
272878
+ function usePrefix2({ status = "idle", theme }) {
272879
+ const [showLoader, setShowLoader] = useState2(false);
272880
+ const [tick, setTick] = useState2(0);
272881
+ const { prefix, spinner: spinner2 } = makeTheme2(theme);
272882
+ useEffect2(() => {
272883
+ if (status === "loading") {
272884
+ let tickInterval;
272885
+ let inc = -1;
272886
+ const delayTimeout = setTimeout(() => {
272887
+ setShowLoader(true);
272888
+ tickInterval = setInterval(() => {
272889
+ inc = inc + 1;
272890
+ setTick(inc % spinner2.frames.length);
272891
+ }, spinner2.interval);
272892
+ }, 300);
272893
+ return () => {
272894
+ clearTimeout(delayTimeout);
272895
+ clearInterval(tickInterval);
272896
+ };
272897
+ } else {
272898
+ setShowLoader(false);
272899
+ }
272900
+ }, [status]);
272901
+ if (showLoader) {
272902
+ return spinner2.frames[tick];
272903
+ }
272904
+ const iconName = status === "loading" ? "idle" : status;
272905
+ return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
272906
+ }
272907
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+4cbbb20073436eb8/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
272908
+ function useRef2(val) {
272909
+ return useState2({ current: val })[0];
272910
+ }
272911
+
272912
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+4cbbb20073436eb8/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
272913
+ function useKeypress2(userHandler) {
272914
+ const signal = useRef2(userHandler);
272915
+ signal.current = userHandler;
272916
+ useEffect2((rl) => {
272917
+ let ignore = false;
272918
+ const handler = withUpdates2((_input, event) => {
272919
+ if (ignore)
272920
+ return;
272921
+ signal.current(event, rl);
272922
+ });
272923
+ rl.input.on("keypress", handler);
272924
+ return () => {
272925
+ ignore = true;
272926
+ rl.input.removeListener("keypress", handler);
272927
+ };
272928
+ }, []);
272929
+ }
272930
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+4cbbb20073436eb8/node_modules/@inquirer/core/dist/esm/lib/utils.js
272931
+ var import_cli_width2 = __toESM(require_cli_width(), 1);
272932
+ var import_wrap_ansi2 = __toESM(require_wrap_ansi(), 1);
272933
+ function breakLines2(content, width) {
272934
+ return content.split(`
272935
+ `).flatMap((line) => import_wrap_ansi2.default(line, width, { trim: false, hard: true }).split(`
272936
+ `).map((str) => str.trimEnd())).join(`
272937
+ `);
272938
+ }
272939
+ function readlineWidth2() {
272940
+ return import_cli_width2.default({ defaultWidth: 80, output: readline3().output });
272941
+ }
272942
+
272943
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+4cbbb20073436eb8/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
272944
+ var import_mute_stream2 = __toESM(require_lib13(), 1);
272945
+ import * as readline4 from "node:readline";
272946
+ import { AsyncResource as AsyncResource6 } from "node:async_hooks";
272947
+
272948
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+4cbbb20073436eb8/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
272949
+ import { stripVTControlCharacters as stripVTControlCharacters3 } from "node:util";
272950
+ var height2 = (content) => content.split(`
272951
+ `).length;
272952
+ var lastLine2 = (content) => content.split(`
272953
+ `).pop() ?? "";
272954
+
272955
+ class ScreenManager2 {
272956
+ height = 0;
272957
+ extraLinesUnderPrompt = 0;
272958
+ cursorPos;
272959
+ rl;
272960
+ constructor(rl) {
272961
+ this.rl = rl;
272962
+ this.cursorPos = rl.getCursorPos();
272963
+ }
272964
+ write(content) {
272965
+ this.rl.output.unmute();
272966
+ this.rl.output.write(content);
272967
+ this.rl.output.mute();
272968
+ }
272969
+ render(content, bottomContent = "") {
272970
+ const promptLine = lastLine2(content);
272971
+ const rawPromptLine = stripVTControlCharacters3(promptLine);
272972
+ let prompt = rawPromptLine;
272973
+ if (this.rl.line.length > 0) {
272974
+ prompt = prompt.slice(0, -this.rl.line.length);
272975
+ }
272976
+ this.rl.setPrompt(prompt);
272977
+ this.cursorPos = this.rl.getCursorPos();
272978
+ const width = readlineWidth2();
272979
+ content = breakLines2(content, width);
272980
+ bottomContent = breakLines2(bottomContent, width);
272981
+ if (rawPromptLine.length % width === 0) {
272982
+ content += `
272983
+ `;
272984
+ }
272985
+ let output = content + (bottomContent ? `
272986
+ ` + bottomContent : "");
272987
+ const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
272988
+ const bottomContentHeight = promptLineUpDiff + (bottomContent ? height2(bottomContent) : 0);
272989
+ if (bottomContentHeight > 0)
272990
+ output += cursorUp(bottomContentHeight);
272991
+ output += cursorTo(this.cursorPos.cols);
272992
+ this.write(cursorDown(this.extraLinesUnderPrompt) + eraseLines(this.height) + output);
272993
+ this.extraLinesUnderPrompt = bottomContentHeight;
272994
+ this.height = height2(output);
272995
+ }
272996
+ checkCursorPos() {
272997
+ const cursorPos = this.rl.getCursorPos();
272998
+ if (cursorPos.cols !== this.cursorPos.cols) {
272999
+ this.write(cursorTo(cursorPos.cols));
273000
+ this.cursorPos = cursorPos;
273001
+ }
273002
+ }
273003
+ done({ clearContent }) {
273004
+ this.rl.setPrompt("");
273005
+ let output = cursorDown(this.extraLinesUnderPrompt);
273006
+ output += clearContent ? eraseLines(this.height) : `
273007
+ `;
273008
+ output += cursorShow;
273009
+ this.write(output);
273010
+ this.rl.close();
273011
+ }
273012
+ }
273013
+
273014
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+4cbbb20073436eb8/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
273015
+ class PromisePolyfill2 extends Promise {
273016
+ static withResolver() {
273017
+ let resolve6;
273018
+ let reject;
273019
+ const promise2 = new Promise((res, rej) => {
273020
+ resolve6 = res;
273021
+ reject = rej;
273022
+ });
273023
+ return { promise: promise2, resolve: resolve6, reject };
273024
+ }
273025
+ }
273026
+
273027
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+4cbbb20073436eb8/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
273028
+ function getCallSites2() {
273029
+ const _prepareStackTrace = Error.prepareStackTrace;
273030
+ let result = [];
273031
+ try {
273032
+ Error.prepareStackTrace = (_6, callSites) => {
273033
+ const callSitesWithoutCurrent = callSites.slice(1);
273034
+ result = callSitesWithoutCurrent;
273035
+ return callSitesWithoutCurrent;
273036
+ };
273037
+ new Error().stack;
273038
+ } catch {
273039
+ return result;
273040
+ }
273041
+ Error.prepareStackTrace = _prepareStackTrace;
273042
+ return result;
273043
+ }
273044
+ function createPrompt2(view) {
273045
+ const callSites = getCallSites2();
273046
+ const prompt = (config3, context = {}) => {
273047
+ const { input = process.stdin, signal } = context;
273048
+ const cleanups = new Set;
273049
+ const output = new import_mute_stream2.default;
273050
+ output.pipe(context.output ?? process.stdout);
273051
+ const rl = readline4.createInterface({
273052
+ terminal: true,
273053
+ input,
273054
+ output
273055
+ });
273056
+ const screen = new ScreenManager2(rl);
273057
+ const { promise: promise2, resolve: resolve6, reject } = PromisePolyfill2.withResolver();
273058
+ const cancel3 = () => reject(new CancelPromptError2);
273059
+ if (signal) {
273060
+ const abort = () => reject(new AbortPromptError2({ cause: signal.reason }));
273061
+ if (signal.aborted) {
273062
+ abort();
273063
+ return Object.assign(promise2, { cancel: cancel3 });
273064
+ }
273065
+ signal.addEventListener("abort", abort);
273066
+ cleanups.add(() => signal.removeEventListener("abort", abort));
273067
+ }
273068
+ cleanups.add(onExit((code2, signal2) => {
273069
+ reject(new ExitPromptError2(`User force closed the prompt with ${code2} ${signal2}`));
273070
+ }));
273071
+ const sigint = () => reject(new ExitPromptError2(`User force closed the prompt with SIGINT`));
273072
+ rl.on("SIGINT", sigint);
273073
+ cleanups.add(() => rl.removeListener("SIGINT", sigint));
273074
+ const checkCursorPos = () => screen.checkCursorPos();
273075
+ rl.input.on("keypress", checkCursorPos);
273076
+ cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
273077
+ return withHooks2(rl, (cycle) => {
273078
+ const hooksCleanup = AsyncResource6.bind(() => effectScheduler2.clearAll());
273079
+ rl.on("close", hooksCleanup);
273080
+ cleanups.add(() => rl.removeListener("close", hooksCleanup));
273081
+ cycle(() => {
273082
+ try {
273083
+ const nextView = view(config3, (value4) => {
273084
+ setImmediate(() => resolve6(value4));
273085
+ });
273086
+ if (nextView === undefined) {
273087
+ const callerFilename = callSites[1]?.getFileName();
273088
+ throw new Error(`Prompt functions must return a string.
273089
+ at ${callerFilename}`);
273090
+ }
273091
+ const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
273092
+ screen.render(content, bottomContent);
273093
+ effectScheduler2.run();
273094
+ } catch (error50) {
273095
+ reject(error50);
273096
+ }
273097
+ });
273098
+ return Object.assign(promise2.then((answer) => {
273099
+ effectScheduler2.clearAll();
273100
+ return answer;
273101
+ }, (error50) => {
273102
+ effectScheduler2.clearAll();
273103
+ throw error50;
273104
+ }).finally(() => {
273105
+ cleanups.forEach((cleanup) => cleanup());
273106
+ screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
273107
+ output.end();
273108
+ }).then(() => promise2), { cancel: cancel3 });
273109
+ });
273110
+ };
273111
+ return prompt;
273112
+ }
273113
+ // ../../node_modules/.bun/@inquirer+input@4.3.0+4cbbb20073436eb8/node_modules/@inquirer/input/dist/esm/index.js
272540
273114
  var inputTheme = {
272541
273115
  validationFailureMode: "keep"
272542
273116
  };
272543
- var esm_default2 = createPrompt((config3, done) => {
273117
+ var esm_default2 = createPrompt2((config3, done) => {
272544
273118
  const { prefill = "tab" } = config3;
272545
- const theme = makeTheme(inputTheme, config3.theme);
272546
- const [status, setStatus] = useState("idle");
272547
- const [defaultValue = "", setDefaultValue] = useState(config3.default);
272548
- const [errorMsg, setError] = useState();
272549
- const [value4, setValue] = useState("");
272550
- const prefix = usePrefix({ status, theme });
273119
+ const theme = makeTheme2(inputTheme, config3.theme);
273120
+ const [status, setStatus] = useState2("idle");
273121
+ const [defaultValue = "", setDefaultValue] = useState2(config3.default);
273122
+ const [errorMsg, setError] = useState2();
273123
+ const [value4, setValue] = useState2("");
273124
+ const prefix = usePrefix2({ status, theme });
272551
273125
  async function validate3(value5) {
272552
273126
  const { required: required2, pattern, patternError = "Invalid input" } = config3;
272553
273127
  if (required2 && !value5) {
@@ -272561,11 +273135,11 @@ var esm_default2 = createPrompt((config3, done) => {
272561
273135
  }
272562
273136
  return true;
272563
273137
  }
272564
- useKeypress(async (key, rl) => {
273138
+ useKeypress2(async (key, rl) => {
272565
273139
  if (status !== "idle") {
272566
273140
  return;
272567
273141
  }
272568
- if (isEnterKey(key)) {
273142
+ if (isEnterKey2(key)) {
272569
273143
  const answer = value4 || defaultValue;
272570
273144
  setStatus("loading");
272571
273145
  const isValid = await validate3(answer);
@@ -272582,9 +273156,9 @@ var esm_default2 = createPrompt((config3, done) => {
272582
273156
  setError(isValid);
272583
273157
  setStatus("idle");
272584
273158
  }
272585
- } else if (isBackspaceKey(key) && !value4) {
273159
+ } else if (isBackspaceKey2(key) && !value4) {
272586
273160
  setDefaultValue(undefined);
272587
- } else if (isTabKey(key) && !value4) {
273161
+ } else if (isTabKey2(key) && !value4) {
272588
273162
  setDefaultValue(undefined);
272589
273163
  rl.clearLine(0);
272590
273164
  rl.write(defaultValue);
@@ -272594,7 +273168,7 @@ var esm_default2 = createPrompt((config3, done) => {
272594
273168
  setError(undefined);
272595
273169
  }
272596
273170
  });
272597
- useEffect((rl) => {
273171
+ useEffect2((rl) => {
272598
273172
  if (prefill === "editable" && defaultValue) {
272599
273173
  rl.write(defaultValue);
272600
273174
  setValue(defaultValue);
@@ -272640,13 +273214,13 @@ async function subgraphNamePrompt({
272640
273214
  }
272641
273215
 
272642
273216
  // ../../node_modules/.bun/@inquirer+select@4.4.2+4cbbb20073436eb8/node_modules/@inquirer/select/dist/esm/index.js
272643
- var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
273217
+ var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
272644
273218
  var selectTheme = {
272645
273219
  icon: { cursor: esm_default.pointer },
272646
273220
  style: {
272647
- disabled: (text2) => import_yoctocolors_cjs3.default.dim(`- ${text2}`),
272648
- description: (text2) => import_yoctocolors_cjs3.default.cyan(text2),
272649
- keysHelpTip: (keys) => keys.map(([key, action]) => `${import_yoctocolors_cjs3.default.bold(key)} ${import_yoctocolors_cjs3.default.dim(action)}`).join(import_yoctocolors_cjs3.default.dim(" • "))
273221
+ disabled: (text2) => import_yoctocolors_cjs4.default.dim(`- ${text2}`),
273222
+ description: (text2) => import_yoctocolors_cjs4.default.cyan(text2),
273223
+ keysHelpTip: (keys) => keys.map(([key, action]) => `${import_yoctocolors_cjs4.default.bold(key)} ${import_yoctocolors_cjs4.default.dim(action)}`).join(import_yoctocolors_cjs4.default.dim(" • "))
272650
273224
  },
272651
273225
  helpMode: "always",
272652
273226
  indexMode: "hidden",
@@ -300200,7 +300774,7 @@ var basename2 = function(p6, extension) {
300200
300774
  return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
300201
300775
  };
300202
300776
  // ../../node_modules/.bun/defu@6.1.4/node_modules/defu/dist/defu.mjs
300203
- function isPlainObject4(value4) {
300777
+ function isPlainObject5(value4) {
300204
300778
  if (value4 === null || typeof value4 !== "object") {
300205
300779
  return false;
300206
300780
  }
@@ -300217,7 +300791,7 @@ function isPlainObject4(value4) {
300217
300791
  return true;
300218
300792
  }
300219
300793
  function _defu(baseObject, defaults2, namespace = ".", merger) {
300220
- if (!isPlainObject4(defaults2)) {
300794
+ if (!isPlainObject5(defaults2)) {
300221
300795
  return _defu(baseObject, {}, namespace, merger);
300222
300796
  }
300223
300797
  const object2 = Object.assign({}, defaults2);
@@ -300234,7 +300808,7 @@ function _defu(baseObject, defaults2, namespace = ".", merger) {
300234
300808
  }
300235
300809
  if (Array.isArray(value4) && Array.isArray(object2[key])) {
300236
300810
  object2[key] = [...value4, ...object2[key]];
300237
- } else if (isPlainObject4(value4) && isPlainObject4(object2[key])) {
300811
+ } else if (isPlainObject5(value4) && isPlainObject5(object2[key])) {
300238
300812
  object2[key] = _defu(value4, object2[key], (namespace ? `${namespace}.` : "") + key.toString(), merger);
300239
300813
  } else {
300240
300814
  object2[key] = value4;
@@ -306216,7 +306790,7 @@ function jsonOutput(data) {
306216
306790
  var composer = require_composer();
306217
306791
  var Document = require_Document();
306218
306792
  var Schema = require_Schema();
306219
- var errors4 = require_errors3();
306793
+ var errors5 = require_errors3();
306220
306794
  var Alias = require_Alias();
306221
306795
  var identity2 = require_identity();
306222
306796
  var Pair = require_Pair();
@@ -306232,9 +306806,9 @@ var visit2 = require_visit();
306232
306806
  var $Composer = composer.Composer;
306233
306807
  var $Document = Document.Document;
306234
306808
  var $Schema = Schema.Schema;
306235
- var $YAMLError = errors4.YAMLError;
306236
- var $YAMLParseError = errors4.YAMLParseError;
306237
- var $YAMLWarning = errors4.YAMLWarning;
306809
+ var $YAMLError = errors5.YAMLError;
306810
+ var $YAMLParseError = errors5.YAMLParseError;
306811
+ var $YAMLWarning = errors5.YAMLWarning;
306238
306812
  var $Alias = Alias.Alias;
306239
306813
  var $isAlias = identity2.isAlias;
306240
306814
  var $isCollection = identity2.isCollection;
@@ -306773,7 +307347,7 @@ function formatUseCaseName(name3) {
306773
307347
  }
306774
307348
 
306775
307349
  // src/utils/smart-contract-set/execute-foundry-command.ts
306776
- var import_which = __toESM(require_lib13(), 1);
307350
+ var import_which = __toESM(require_lib14(), 1);
306777
307351
  async function executeFoundryCommand(command, args) {
306778
307352
  try {
306779
307353
  await import_which.default(command);
@@ -308095,4 +308669,4 @@ async function sdkCliCommand(argv = process.argv) {
308095
308669
  // src/cli.ts
308096
308670
  sdkCliCommand();
308097
308671
 
308098
- //# debugId=4CDD8D5B699AA24D64756E2164756E21
308672
+ //# debugId=187D7378DBC7B91564756E2164756E21