@settlemint/sdk-cli 2.6.4-pr7f2ec711 → 2.6.4-prb18a8132

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 +1071 -189
  2. package/dist/cli.js.map +23 -6
  3. package/package.json +7 -7
package/dist/cli.js CHANGED
@@ -161879,7 +161879,7 @@ ${lanes.join(`
161879
161879
  function generateOptionOutput(sys2, option, rightAlignOfLeft, leftAlignOfRight) {
161880
161880
  var _a;
161881
161881
  const text = [];
161882
- const colors3 = createColors(sys2);
161882
+ const colors2 = createColors(sys2);
161883
161883
  const name2 = getDisplayNameTextOfOption(option);
161884
161884
  const valueCandidates = getValueCandidate(option);
161885
161885
  const defaultValueDescription = typeof option.defaultValueDescription === "object" ? getDiagnosticText(option.defaultValueDescription) : formatDefaultValue(option.defaultValueDescription, option.type === "list" || option.type === "listOrElement" ? option.element.type : option.type);
@@ -161900,7 +161900,7 @@ ${lanes.join(`
161900
161900
  }
161901
161901
  text.push(sys2.newLine);
161902
161902
  } else {
161903
- text.push(colors3.blue(name2), sys2.newLine);
161903
+ text.push(colors2.blue(name2), sys2.newLine);
161904
161904
  if (option.description) {
161905
161905
  const description3 = getDiagnosticText(option.description);
161906
161906
  text.push(description3);
@@ -161945,7 +161945,7 @@ ${lanes.join(`
161945
161945
  if (isFirstLine) {
161946
161946
  curLeft = left.padStart(rightAlignOfLeft2);
161947
161947
  curLeft = curLeft.padEnd(leftAlignOfRight2);
161948
- curLeft = colorLeft ? colors3.blue(curLeft) : curLeft;
161948
+ curLeft = colorLeft ? colors2.blue(curLeft) : curLeft;
161949
161949
  } else {
161950
161950
  curLeft = "".padStart(leftAlignOfRight2);
161951
161951
  }
@@ -162057,9 +162057,9 @@ ${lanes.join(`
162057
162057
  return res;
162058
162058
  }
162059
162059
  function printEasyHelp(sys2, simpleOptions) {
162060
- const colors3 = createColors(sys2);
162060
+ const colors2 = createColors(sys2);
162061
162061
  let output = [...getHeader(sys2, `${getDiagnosticText(Diagnostics.tsc_Colon_The_TypeScript_Compiler)} - ${getDiagnosticText(Diagnostics.Version_0, version2)}`)];
162062
- output.push(colors3.bold(getDiagnosticText(Diagnostics.COMMON_COMMANDS)) + sys2.newLine + sys2.newLine);
162062
+ output.push(colors2.bold(getDiagnosticText(Diagnostics.COMMON_COMMANDS)) + sys2.newLine + sys2.newLine);
162063
162063
  example("tsc", Diagnostics.Compiles_the_current_project_tsconfig_json_in_the_working_directory);
162064
162064
  example("tsc app.ts util.ts", Diagnostics.Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options);
162065
162065
  example("tsc -b", Diagnostics.Build_a_composite_project_in_the_working_directory);
@@ -162080,7 +162080,7 @@ ${lanes.join(`
162080
162080
  function example(ex, desc) {
162081
162081
  const examples = typeof ex === "string" ? [ex] : ex;
162082
162082
  for (const example2 of examples) {
162083
- output.push(" " + colors3.blue(example2) + sys2.newLine);
162083
+ output.push(" " + colors2.blue(example2) + sys2.newLine);
162084
162084
  }
162085
162085
  output.push(" " + getDiagnosticText(desc) + sys2.newLine + sys2.newLine);
162086
162086
  }
@@ -162103,12 +162103,12 @@ ${lanes.join(`
162103
162103
  }
162104
162104
  function getHeader(sys2, message) {
162105
162105
  var _a;
162106
- const colors3 = createColors(sys2);
162106
+ const colors2 = createColors(sys2);
162107
162107
  const header = [];
162108
162108
  const terminalWidth = ((_a = sys2.getWidthOfTerminal) == null ? undefined : _a.call(sys2)) ?? 0;
162109
162109
  const tsIconLength = 5;
162110
- const tsIconFirstLine = colors3.blueBackground("".padStart(tsIconLength));
162111
- const tsIconSecondLine = colors3.blueBackground(colors3.brightWhite("TS ".padStart(tsIconLength)));
162110
+ const tsIconFirstLine = colors2.blueBackground("".padStart(tsIconLength));
162111
+ const tsIconSecondLine = colors2.blueBackground(colors2.brightWhite("TS ".padStart(tsIconLength)));
162112
162112
  if (terminalWidth >= message.length + tsIconLength) {
162113
162113
  const rightAlign = terminalWidth > 120 ? 120 : terminalWidth;
162114
162114
  const leftAlign = rightAlign - tsIconLength;
@@ -246065,6 +246065,126 @@ var require_slugify = __commonJS((exports, module) => {
246065
246065
  });
246066
246066
  });
246067
246067
 
246068
+ // ../../node_modules/.bun/mute-stream@3.0.0/node_modules/mute-stream/lib/index.js
246069
+ var require_lib13 = __commonJS((exports, module) => {
246070
+ var Stream2 = __require("stream");
246071
+
246072
+ class MuteStream2 extends Stream2 {
246073
+ #isTTY = null;
246074
+ constructor(opts = {}) {
246075
+ super(opts);
246076
+ this.writable = this.readable = true;
246077
+ this.muted = false;
246078
+ this.on("pipe", this._onpipe);
246079
+ this.replace = opts.replace;
246080
+ this._prompt = opts.prompt || null;
246081
+ this._hadControl = false;
246082
+ }
246083
+ #destSrc(key, def) {
246084
+ if (this._dest) {
246085
+ return this._dest[key];
246086
+ }
246087
+ if (this._src) {
246088
+ return this._src[key];
246089
+ }
246090
+ return def;
246091
+ }
246092
+ #proxy(method, ...args) {
246093
+ if (typeof this._dest?.[method] === "function") {
246094
+ this._dest[method](...args);
246095
+ }
246096
+ if (typeof this._src?.[method] === "function") {
246097
+ this._src[method](...args);
246098
+ }
246099
+ }
246100
+ get isTTY() {
246101
+ if (this.#isTTY !== null) {
246102
+ return this.#isTTY;
246103
+ }
246104
+ return this.#destSrc("isTTY", false);
246105
+ }
246106
+ set isTTY(val) {
246107
+ this.#isTTY = val;
246108
+ }
246109
+ get rows() {
246110
+ return this.#destSrc("rows");
246111
+ }
246112
+ get columns() {
246113
+ return this.#destSrc("columns");
246114
+ }
246115
+ mute() {
246116
+ this.muted = true;
246117
+ }
246118
+ unmute() {
246119
+ this.muted = false;
246120
+ }
246121
+ _onpipe(src) {
246122
+ this._src = src;
246123
+ }
246124
+ pipe(dest, options) {
246125
+ this._dest = dest;
246126
+ return super.pipe(dest, options);
246127
+ }
246128
+ pause() {
246129
+ if (this._src) {
246130
+ return this._src.pause();
246131
+ }
246132
+ }
246133
+ resume() {
246134
+ if (this._src) {
246135
+ return this._src.resume();
246136
+ }
246137
+ }
246138
+ write(c3) {
246139
+ if (this.muted) {
246140
+ if (!this.replace) {
246141
+ return true;
246142
+ }
246143
+ if (c3.match(/^\u001b/)) {
246144
+ if (c3.indexOf(this._prompt) === 0) {
246145
+ c3 = c3.slice(this._prompt.length);
246146
+ c3 = c3.replace(/./g, this.replace);
246147
+ c3 = this._prompt + c3;
246148
+ }
246149
+ this._hadControl = true;
246150
+ return this.emit("data", c3);
246151
+ } else {
246152
+ if (this._prompt && this._hadControl && c3.indexOf(this._prompt) === 0) {
246153
+ this._hadControl = false;
246154
+ this.emit("data", this._prompt);
246155
+ c3 = c3.slice(this._prompt.length);
246156
+ }
246157
+ c3 = c3.toString().replace(/./g, this.replace);
246158
+ }
246159
+ }
246160
+ this.emit("data", c3);
246161
+ }
246162
+ end(c3) {
246163
+ if (this.muted) {
246164
+ if (c3 && this.replace) {
246165
+ c3 = c3.toString().replace(/./g, this.replace);
246166
+ } else {
246167
+ c3 = null;
246168
+ }
246169
+ }
246170
+ if (c3) {
246171
+ this.emit("data", c3);
246172
+ }
246173
+ this.emit("end");
246174
+ }
246175
+ destroy(...args) {
246176
+ return this.#proxy("destroy", ...args);
246177
+ }
246178
+ destroySoon(...args) {
246179
+ return this.#proxy("destroySoon", ...args);
246180
+ }
246181
+ close(...args) {
246182
+ return this.#proxy("close", ...args);
246183
+ }
246184
+ }
246185
+ module.exports = MuteStream2;
246186
+ });
246187
+
246068
246188
  // ../../node_modules/.bun/abitype@1.1.0+0c447f3ab58cb56e/node_modules/abitype/dist/esm/version.js
246069
246189
  var version2 = "1.1.0";
246070
246190
 
@@ -259580,7 +259700,7 @@ var require_composer = __commonJS((exports) => {
259580
259700
  var node_process = __require("process");
259581
259701
  var directives5 = require_directives3();
259582
259702
  var Document = require_Document();
259583
- var errors4 = require_errors3();
259703
+ var errors5 = require_errors3();
259584
259704
  var identity2 = require_identity();
259585
259705
  var composeDoc = require_compose_doc();
259586
259706
  var resolveEnd = require_resolve_end();
@@ -259631,9 +259751,9 @@ var require_composer = __commonJS((exports) => {
259631
259751
  this.onError = (source, code2, message, warning) => {
259632
259752
  const pos = getErrorPos(source);
259633
259753
  if (warning)
259634
- this.warnings.push(new errors4.YAMLWarning(pos, code2, message));
259754
+ this.warnings.push(new errors5.YAMLWarning(pos, code2, message));
259635
259755
  else
259636
- this.errors.push(new errors4.YAMLParseError(pos, code2, message));
259756
+ this.errors.push(new errors5.YAMLParseError(pos, code2, message));
259637
259757
  };
259638
259758
  this.directives = new directives5.Directives({ version: options.version || "1.2" });
259639
259759
  this.options = options;
@@ -259717,7 +259837,7 @@ ${cb}` : comment;
259717
259837
  break;
259718
259838
  case "error": {
259719
259839
  const msg = token.source ? `${token.message}: ${JSON.stringify(token.source)}` : token.message;
259720
- const error51 = new errors4.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
259840
+ const error51 = new errors5.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
259721
259841
  if (this.atDirectives || !this.doc)
259722
259842
  this.errors.push(error51);
259723
259843
  else
@@ -259727,7 +259847,7 @@ ${cb}` : comment;
259727
259847
  case "doc-end": {
259728
259848
  if (!this.doc) {
259729
259849
  const msg = "Unexpected doc-end without preceding document";
259730
- this.errors.push(new errors4.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
259850
+ this.errors.push(new errors5.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
259731
259851
  break;
259732
259852
  }
259733
259853
  this.doc.directives.docEnd = true;
@@ -259742,7 +259862,7 @@ ${end.comment}` : end.comment;
259742
259862
  break;
259743
259863
  }
259744
259864
  default:
259745
- this.errors.push(new errors4.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
259865
+ this.errors.push(new errors5.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
259746
259866
  }
259747
259867
  }
259748
259868
  *end(forceDoc = false, endOffset = -1) {
@@ -259768,7 +259888,7 @@ ${end.comment}` : end.comment;
259768
259888
  var require_cst_scalar = __commonJS((exports) => {
259769
259889
  var resolveBlockScalar = require_resolve_block_scalar();
259770
259890
  var resolveFlowScalar = require_resolve_flow_scalar();
259771
- var errors4 = require_errors3();
259891
+ var errors5 = require_errors3();
259772
259892
  var stringifyString = require_stringifyString();
259773
259893
  function resolveAsScalar(token, strict = true, onError) {
259774
259894
  if (token) {
@@ -259777,7 +259897,7 @@ var require_cst_scalar = __commonJS((exports) => {
259777
259897
  if (onError)
259778
259898
  onError(offset, code2, message);
259779
259899
  else
259780
- throw new errors4.YAMLParseError([offset, offset + 1], code2, message);
259900
+ throw new errors5.YAMLParseError([offset, offset + 1], code2, message);
259781
259901
  };
259782
259902
  switch (token.type) {
259783
259903
  case "scalar":
@@ -261639,7 +261759,7 @@ var require_parser3 = __commonJS((exports) => {
261639
261759
  var require_public_api = __commonJS((exports) => {
261640
261760
  var composer = require_composer();
261641
261761
  var Document = require_Document();
261642
- var errors4 = require_errors3();
261762
+ var errors5 = require_errors3();
261643
261763
  var log = require_log();
261644
261764
  var identity2 = require_identity();
261645
261765
  var lineCounter = require_line_counter();
@@ -261656,8 +261776,8 @@ var require_public_api = __commonJS((exports) => {
261656
261776
  const docs = Array.from(composer$1.compose(parser$1.parse(source)));
261657
261777
  if (prettyErrors && lineCounter2)
261658
261778
  for (const doc2 of docs) {
261659
- doc2.errors.forEach(errors4.prettifyError(source, lineCounter2));
261660
- doc2.warnings.forEach(errors4.prettifyError(source, lineCounter2));
261779
+ doc2.errors.forEach(errors5.prettifyError(source, lineCounter2));
261780
+ doc2.warnings.forEach(errors5.prettifyError(source, lineCounter2));
261661
261781
  }
261662
261782
  if (docs.length > 0)
261663
261783
  return docs;
@@ -261672,13 +261792,13 @@ var require_public_api = __commonJS((exports) => {
261672
261792
  if (!doc2)
261673
261793
  doc2 = _doc;
261674
261794
  else if (doc2.options.logLevel !== "silent") {
261675
- doc2.errors.push(new errors4.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
261795
+ doc2.errors.push(new errors5.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
261676
261796
  break;
261677
261797
  }
261678
261798
  }
261679
261799
  if (prettyErrors && lineCounter2) {
261680
- doc2.errors.forEach(errors4.prettifyError(source, lineCounter2));
261681
- doc2.warnings.forEach(errors4.prettifyError(source, lineCounter2));
261800
+ doc2.errors.forEach(errors5.prettifyError(source, lineCounter2));
261801
+ doc2.warnings.forEach(errors5.prettifyError(source, lineCounter2));
261682
261802
  }
261683
261803
  return doc2;
261684
261804
  }
@@ -261746,11 +261866,8 @@ var {
261746
261866
  } = import__.default;
261747
261867
 
261748
261868
  // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/key.js
261749
- var isUpKey = (key, keybindings = []) => key.name === "up" || keybindings.includes("vim") && key.name === "k" || keybindings.includes("emacs") && key.ctrl && key.name === "p";
261750
- var isDownKey = (key, keybindings = []) => key.name === "down" || keybindings.includes("vim") && key.name === "j" || keybindings.includes("emacs") && key.ctrl && key.name === "n";
261751
261869
  var isBackspaceKey = (key) => key.name === "backspace";
261752
261870
  var isTabKey = (key) => key.name === "tab";
261753
- var isNumberKey = (key) => "1234567890".includes(key.name);
261754
261871
  var isEnterKey = (key) => key.name === "enter" || key.name === "return";
261755
261872
  // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/errors.js
261756
261873
  class AbortPromptError extends Error {
@@ -262284,22 +262401,11 @@ function usePrefix({ status = "idle", theme }) {
262284
262401
  const iconName = status === "loading" ? "idle" : status;
262285
262402
  return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
262286
262403
  }
262287
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-memo.js
262288
- function useMemo(fn, dependencies) {
262289
- return withPointer((pointer) => {
262290
- const prev = pointer.get();
262291
- if (!prev || prev.dependencies.length !== dependencies.length || prev.dependencies.some((dep, i) => dep !== dependencies[i])) {
262292
- const value = fn();
262293
- pointer.set({ value, dependencies });
262294
- return value;
262295
- }
262296
- return prev.value;
262297
- });
262298
- }
262299
262404
  // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
262300
262405
  function useRef(val) {
262301
262406
  return useState({ current: val })[0];
262302
262407
  }
262408
+
262303
262409
  // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
262304
262410
  function useKeypress(userHandler) {
262305
262411
  const signal = useRef(userHandler);
@@ -262331,72 +262437,6 @@ function readlineWidth() {
262331
262437
  return import_cli_width.default({ defaultWidth: 80, output: readline().output });
262332
262438
  }
262333
262439
 
262334
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
262335
- function usePointerPosition({ active, renderedItems, pageSize, loop }) {
262336
- const state = useRef({
262337
- lastPointer: active,
262338
- lastActive: undefined
262339
- });
262340
- const { lastPointer, lastActive } = state.current;
262341
- const middle = Math.floor(pageSize / 2);
262342
- const renderedLength = renderedItems.reduce((acc, item) => acc + item.length, 0);
262343
- const defaultPointerPosition = renderedItems.slice(0, active).reduce((acc, item) => acc + item.length, 0);
262344
- let pointer = defaultPointerPosition;
262345
- if (renderedLength > pageSize) {
262346
- if (loop) {
262347
- pointer = lastPointer;
262348
- if (lastActive != null && lastActive < active && active - lastActive < pageSize) {
262349
- pointer = Math.min(middle, Math.abs(active - lastActive) === 1 ? Math.min(lastPointer + (renderedItems[lastActive]?.length ?? 0), Math.max(defaultPointerPosition, lastPointer)) : lastPointer + active - lastActive);
262350
- }
262351
- } else {
262352
- const spaceUnderActive = renderedItems.slice(active).reduce((acc, item) => acc + item.length, 0);
262353
- pointer = spaceUnderActive < pageSize - middle ? pageSize - spaceUnderActive : Math.min(defaultPointerPosition, middle);
262354
- }
262355
- }
262356
- state.current.lastPointer = pointer;
262357
- state.current.lastActive = active;
262358
- return pointer;
262359
- }
262360
- function usePagination({ items, active, renderItem, pageSize, loop = true }) {
262361
- const width = readlineWidth();
262362
- const bound = (num) => (num % items.length + items.length) % items.length;
262363
- const renderedItems = items.map((item, index) => {
262364
- if (item == null)
262365
- return [];
262366
- return breakLines(renderItem({ item, index, isActive: index === active }), width).split(`
262367
- `);
262368
- });
262369
- const renderedLength = renderedItems.reduce((acc, item) => acc + item.length, 0);
262370
- const renderItemAtIndex = (index) => renderedItems[index] ?? [];
262371
- const pointer = usePointerPosition({ active, renderedItems, pageSize, loop });
262372
- const activeItem = renderItemAtIndex(active).slice(0, pageSize);
262373
- const activeItemPosition = pointer + activeItem.length <= pageSize ? pointer : pageSize - activeItem.length;
262374
- const pageBuffer = Array.from({ length: pageSize });
262375
- pageBuffer.splice(activeItemPosition, activeItem.length, ...activeItem);
262376
- const itemVisited = new Set([active]);
262377
- let bufferPointer = activeItemPosition + activeItem.length;
262378
- let itemPointer = bound(active + 1);
262379
- while (bufferPointer < pageSize && !itemVisited.has(itemPointer) && (loop && renderedLength > pageSize ? itemPointer !== active : itemPointer > active)) {
262380
- const lines = renderItemAtIndex(itemPointer);
262381
- const linesToAdd = lines.slice(0, pageSize - bufferPointer);
262382
- pageBuffer.splice(bufferPointer, linesToAdd.length, ...linesToAdd);
262383
- itemVisited.add(itemPointer);
262384
- bufferPointer += linesToAdd.length;
262385
- itemPointer = bound(itemPointer + 1);
262386
- }
262387
- bufferPointer = activeItemPosition - 1;
262388
- itemPointer = bound(active - 1);
262389
- while (bufferPointer >= 0 && !itemVisited.has(itemPointer) && (loop && renderedLength > pageSize ? itemPointer !== active : itemPointer < active)) {
262390
- const lines = renderItemAtIndex(itemPointer);
262391
- const linesToAdd = lines.slice(Math.max(0, lines.length - bufferPointer - 1));
262392
- pageBuffer.splice(bufferPointer - linesToAdd.length + 1, linesToAdd.length, ...linesToAdd);
262393
- itemVisited.add(itemPointer);
262394
- bufferPointer -= linesToAdd.length;
262395
- itemPointer = bound(itemPointer - 1);
262396
- }
262397
- return pageBuffer.filter((line) => typeof line === "string").join(`
262398
- `);
262399
- }
262400
262440
  // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
262401
262441
  var import_mute_stream = __toESM(require_lib(), 1);
262402
262442
  import * as readline2 from "node:readline";
@@ -262793,20 +262833,6 @@ function createPrompt(view) {
262793
262833
  };
262794
262834
  return prompt;
262795
262835
  }
262796
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/Separator.js
262797
- var import_yoctocolors_cjs2 = __toESM(require_yoctocolors_cjs(), 1);
262798
- class Separator {
262799
- separator = import_yoctocolors_cjs2.default.dim(Array.from({ length: 15 }).join(esm_default.line));
262800
- type = "separator";
262801
- constructor(separator) {
262802
- if (separator) {
262803
- this.separator = separator;
262804
- }
262805
- }
262806
- static isSeparator(choice) {
262807
- return Boolean(choice && typeof choice === "object" && "type" in choice && choice.type === "separator");
262808
- }
262809
- }
262810
262836
  // ../../node_modules/.bun/yoctocolors@2.1.2/node_modules/yoctocolors/base.js
262811
262837
  var exports_base = {};
262812
262838
  __export(exports_base, {
@@ -282064,7 +282090,7 @@ function pruneCurrentEnv(currentEnv, env2) {
282064
282090
  var package_default = {
282065
282091
  name: "@settlemint/sdk-cli",
282066
282092
  description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
282067
- version: "2.6.4-pr7f2ec711",
282093
+ version: "2.6.4-prb18a8132",
282068
282094
  type: "module",
282069
282095
  private: false,
282070
282096
  license: "FSL-1.1-MIT",
@@ -282117,11 +282143,11 @@ var package_default = {
282117
282143
  "@inquirer/confirm": "5.1.19",
282118
282144
  "@inquirer/input": "4.2.5",
282119
282145
  "@inquirer/password": "4.0.21",
282120
- "@inquirer/select": "4.4.0",
282121
- "@settlemint/sdk-hasura": "2.6.4-pr7f2ec711",
282122
- "@settlemint/sdk-js": "2.6.4-pr7f2ec711",
282123
- "@settlemint/sdk-utils": "2.6.4-pr7f2ec711",
282124
- "@settlemint/sdk-viem": "2.6.4-pr7f2ec711",
282146
+ "@inquirer/select": "4.4.1",
282147
+ "@settlemint/sdk-hasura": "2.6.4-prb18a8132",
282148
+ "@settlemint/sdk-js": "2.6.4-prb18a8132",
282149
+ "@settlemint/sdk-utils": "2.6.4-prb18a8132",
282150
+ "@settlemint/sdk-viem": "2.6.4-prb18a8132",
282125
282151
  "@types/node": "24.10.0",
282126
282152
  "@types/semver": "7.7.1",
282127
282153
  "@types/which": "3.0.4",
@@ -282138,7 +282164,7 @@ var package_default = {
282138
282164
  },
282139
282165
  peerDependencies: {
282140
282166
  hardhat: "<= 4",
282141
- "@settlemint/sdk-js": "2.6.4-pr7f2ec711"
282167
+ "@settlemint/sdk-js": "2.6.4-prb18a8132"
282142
282168
  },
282143
282169
  peerDependenciesMeta: {
282144
282170
  hardhat: {
@@ -282938,7 +282964,7 @@ var parseRequestArgs = (documentOrOptions, variables, requestHeaders) => {
282938
282964
  signal: undefined
282939
282965
  };
282940
282966
  };
282941
- // ../../node_modules/.bun/@0no-co+graphql.web@1.2.0/node_modules/@0no-co/graphql.web/dist/graphql.web.mjs
282967
+ // ../../node_modules/.bun/@0no-co+graphql.web@1.2.0+2e36366335d68c76/node_modules/@0no-co/graphql.web/dist/graphql.web.mjs
282942
282968
  var e = {
282943
282969
  NAME: "Name",
282944
282970
  DOCUMENT: "Document",
@@ -288125,14 +288151,870 @@ async function subgraphNamePrompt({
288125
288151
  return sanitizeName(subgraphName);
288126
288152
  }
288127
288153
 
288128
- // ../../node_modules/.bun/@inquirer+select@4.4.0+c30ff3a63f0500d5/node_modules/@inquirer/select/dist/esm/index.js
288154
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/key.js
288155
+ var isUpKey2 = (key, keybindings = []) => key.name === "up" || keybindings.includes("vim") && key.name === "k" || keybindings.includes("emacs") && key.ctrl && key.name === "p";
288156
+ var isDownKey2 = (key, keybindings = []) => key.name === "down" || keybindings.includes("vim") && key.name === "j" || keybindings.includes("emacs") && key.ctrl && key.name === "n";
288157
+ var isBackspaceKey2 = (key) => key.name === "backspace";
288158
+ var isNumberKey2 = (key) => "1234567890".includes(key.name);
288159
+ var isEnterKey2 = (key) => key.name === "enter" || key.name === "return";
288160
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/errors.js
288161
+ class AbortPromptError2 extends Error {
288162
+ name = "AbortPromptError";
288163
+ message = "Prompt was aborted";
288164
+ constructor(options) {
288165
+ super();
288166
+ this.cause = options?.cause;
288167
+ }
288168
+ }
288169
+
288170
+ class CancelPromptError2 extends Error {
288171
+ name = "CancelPromptError";
288172
+ message = "Prompt was canceled";
288173
+ }
288174
+
288175
+ class ExitPromptError2 extends Error {
288176
+ name = "ExitPromptError";
288177
+ }
288178
+
288179
+ class HookError2 extends Error {
288180
+ name = "HookError";
288181
+ }
288182
+
288183
+ class ValidationError2 extends Error {
288184
+ name = "ValidationError";
288185
+ }
288186
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-state.js
288187
+ import { AsyncResource as AsyncResource5 } from "node:async_hooks";
288188
+
288189
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
288190
+ import { AsyncLocalStorage as AsyncLocalStorage2, AsyncResource as AsyncResource4 } from "node:async_hooks";
288191
+ var hookStorage2 = new AsyncLocalStorage2;
288192
+ function createStore2(rl) {
288193
+ const store = {
288194
+ rl,
288195
+ hooks: [],
288196
+ hooksCleanup: [],
288197
+ hooksEffect: [],
288198
+ index: 0,
288199
+ handleChange() {}
288200
+ };
288201
+ return store;
288202
+ }
288203
+ function withHooks2(rl, cb) {
288204
+ const store = createStore2(rl);
288205
+ return hookStorage2.run(store, () => {
288206
+ function cycle(render) {
288207
+ store.handleChange = () => {
288208
+ store.index = 0;
288209
+ render();
288210
+ };
288211
+ store.handleChange();
288212
+ }
288213
+ return cb(cycle);
288214
+ });
288215
+ }
288216
+ function getStore2() {
288217
+ const store = hookStorage2.getStore();
288218
+ if (!store) {
288219
+ throw new HookError2("[Inquirer] Hook functions can only be called from within a prompt");
288220
+ }
288221
+ return store;
288222
+ }
288223
+ function readline3() {
288224
+ return getStore2().rl;
288225
+ }
288226
+ function withUpdates2(fn) {
288227
+ const wrapped = (...args) => {
288228
+ const store = getStore2();
288229
+ let shouldUpdate = false;
288230
+ const oldHandleChange = store.handleChange;
288231
+ store.handleChange = () => {
288232
+ shouldUpdate = true;
288233
+ };
288234
+ const returnValue = fn(...args);
288235
+ if (shouldUpdate) {
288236
+ oldHandleChange();
288237
+ }
288238
+ store.handleChange = oldHandleChange;
288239
+ return returnValue;
288240
+ };
288241
+ return AsyncResource4.bind(wrapped);
288242
+ }
288243
+ function withPointer2(cb) {
288244
+ const store = getStore2();
288245
+ const { index } = store;
288246
+ const pointer = {
288247
+ get() {
288248
+ return store.hooks[index];
288249
+ },
288250
+ set(value5) {
288251
+ store.hooks[index] = value5;
288252
+ },
288253
+ initialized: index in store.hooks
288254
+ };
288255
+ const returnValue = cb(pointer);
288256
+ store.index++;
288257
+ return returnValue;
288258
+ }
288259
+ function handleChange2() {
288260
+ getStore2().handleChange();
288261
+ }
288262
+ var effectScheduler2 = {
288263
+ queue(cb) {
288264
+ const store = getStore2();
288265
+ const { index } = store;
288266
+ store.hooksEffect.push(() => {
288267
+ store.hooksCleanup[index]?.();
288268
+ const cleanFn = cb(readline3());
288269
+ if (cleanFn != null && typeof cleanFn !== "function") {
288270
+ throw new ValidationError2("useEffect return value must be a cleanup function or nothing.");
288271
+ }
288272
+ store.hooksCleanup[index] = cleanFn;
288273
+ });
288274
+ },
288275
+ run() {
288276
+ const store = getStore2();
288277
+ withUpdates2(() => {
288278
+ store.hooksEffect.forEach((effect) => {
288279
+ effect();
288280
+ });
288281
+ store.hooksEffect.length = 0;
288282
+ })();
288283
+ },
288284
+ clearAll() {
288285
+ const store = getStore2();
288286
+ store.hooksCleanup.forEach((cleanFn) => {
288287
+ cleanFn?.();
288288
+ });
288289
+ store.hooksEffect.length = 0;
288290
+ store.hooksCleanup.length = 0;
288291
+ }
288292
+ };
288293
+
288294
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-state.js
288295
+ function useState2(defaultValue) {
288296
+ return withPointer2((pointer) => {
288297
+ const setState = AsyncResource5.bind(function setState(newValue) {
288298
+ if (pointer.get() !== newValue) {
288299
+ pointer.set(newValue);
288300
+ handleChange2();
288301
+ }
288302
+ });
288303
+ if (pointer.initialized) {
288304
+ return [pointer.get(), setState];
288305
+ }
288306
+ const value5 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
288307
+ pointer.set(value5);
288308
+ return [value5, setState];
288309
+ });
288310
+ }
288311
+
288312
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
288313
+ function useEffect2(cb, depArray) {
288314
+ withPointer2((pointer) => {
288315
+ const oldDeps = pointer.get();
288316
+ const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i7) => !Object.is(dep, oldDeps[i7]));
288317
+ if (hasChanged) {
288318
+ effectScheduler2.queue(cb);
288319
+ }
288320
+ pointer.set(depArray);
288321
+ });
288322
+ }
288323
+
288324
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/theme.js
288325
+ var import_yoctocolors_cjs2 = __toESM(require_yoctocolors_cjs(), 1);
288326
+
288327
+ // ../../node_modules/.bun/@inquirer+figures@1.0.15/node_modules/@inquirer/figures/dist/esm/index.js
288328
+ import process8 from "node:process";
288329
+ function isUnicodeSupported3() {
288330
+ if (process8.platform !== "win32") {
288331
+ return process8.env["TERM"] !== "linux";
288332
+ }
288333
+ return Boolean(process8.env["WT_SESSION"]) || Boolean(process8.env["TERMINUS_SUBLIME"]) || process8.env["ConEmuTask"] === "{cmd::Cmder}" || process8.env["TERM_PROGRAM"] === "Terminus-Sublime" || process8.env["TERM_PROGRAM"] === "vscode" || process8.env["TERM"] === "xterm-256color" || process8.env["TERM"] === "alacritty" || process8.env["TERMINAL_EMULATOR"] === "JetBrains-JediTerm";
288334
+ }
288335
+ var common2 = {
288336
+ circleQuestionMark: "(?)",
288337
+ questionMarkPrefix: "(?)",
288338
+ square: "█",
288339
+ squareDarkShade: "▓",
288340
+ squareMediumShade: "▒",
288341
+ squareLightShade: "░",
288342
+ squareTop: "▀",
288343
+ squareBottom: "▄",
288344
+ squareLeft: "▌",
288345
+ squareRight: "▐",
288346
+ squareCenter: "■",
288347
+ bullet: "●",
288348
+ dot: "․",
288349
+ ellipsis: "…",
288350
+ pointerSmall: "›",
288351
+ triangleUp: "▲",
288352
+ triangleUpSmall: "▴",
288353
+ triangleDown: "▼",
288354
+ triangleDownSmall: "▾",
288355
+ triangleLeftSmall: "◂",
288356
+ triangleRightSmall: "▸",
288357
+ home: "⌂",
288358
+ heart: "♥",
288359
+ musicNote: "♪",
288360
+ musicNoteBeamed: "♫",
288361
+ arrowUp: "↑",
288362
+ arrowDown: "↓",
288363
+ arrowLeft: "←",
288364
+ arrowRight: "→",
288365
+ arrowLeftRight: "↔",
288366
+ arrowUpDown: "↕",
288367
+ almostEqual: "≈",
288368
+ notEqual: "≠",
288369
+ lessOrEqual: "≤",
288370
+ greaterOrEqual: "≥",
288371
+ identical: "≡",
288372
+ infinity: "∞",
288373
+ subscriptZero: "₀",
288374
+ subscriptOne: "₁",
288375
+ subscriptTwo: "₂",
288376
+ subscriptThree: "₃",
288377
+ subscriptFour: "₄",
288378
+ subscriptFive: "₅",
288379
+ subscriptSix: "₆",
288380
+ subscriptSeven: "₇",
288381
+ subscriptEight: "₈",
288382
+ subscriptNine: "₉",
288383
+ oneHalf: "½",
288384
+ oneThird: "⅓",
288385
+ oneQuarter: "¼",
288386
+ oneFifth: "⅕",
288387
+ oneSixth: "⅙",
288388
+ oneEighth: "⅛",
288389
+ twoThirds: "⅔",
288390
+ twoFifths: "⅖",
288391
+ threeQuarters: "¾",
288392
+ threeFifths: "⅗",
288393
+ threeEighths: "⅜",
288394
+ fourFifths: "⅘",
288395
+ fiveSixths: "⅚",
288396
+ fiveEighths: "⅝",
288397
+ sevenEighths: "⅞",
288398
+ line: "─",
288399
+ lineBold: "━",
288400
+ lineDouble: "═",
288401
+ lineDashed0: "┄",
288402
+ lineDashed1: "┅",
288403
+ lineDashed2: "┈",
288404
+ lineDashed3: "┉",
288405
+ lineDashed4: "╌",
288406
+ lineDashed5: "╍",
288407
+ lineDashed6: "╴",
288408
+ lineDashed7: "╶",
288409
+ lineDashed8: "╸",
288410
+ lineDashed9: "╺",
288411
+ lineDashed10: "╼",
288412
+ lineDashed11: "╾",
288413
+ lineDashed12: "−",
288414
+ lineDashed13: "–",
288415
+ lineDashed14: "‐",
288416
+ lineDashed15: "⁃",
288417
+ lineVertical: "│",
288418
+ lineVerticalBold: "┃",
288419
+ lineVerticalDouble: "║",
288420
+ lineVerticalDashed0: "┆",
288421
+ lineVerticalDashed1: "┇",
288422
+ lineVerticalDashed2: "┊",
288423
+ lineVerticalDashed3: "┋",
288424
+ lineVerticalDashed4: "╎",
288425
+ lineVerticalDashed5: "╏",
288426
+ lineVerticalDashed6: "╵",
288427
+ lineVerticalDashed7: "╷",
288428
+ lineVerticalDashed8: "╹",
288429
+ lineVerticalDashed9: "╻",
288430
+ lineVerticalDashed10: "╽",
288431
+ lineVerticalDashed11: "╿",
288432
+ lineDownLeft: "┐",
288433
+ lineDownLeftArc: "╮",
288434
+ lineDownBoldLeftBold: "┓",
288435
+ lineDownBoldLeft: "┒",
288436
+ lineDownLeftBold: "┑",
288437
+ lineDownDoubleLeftDouble: "╗",
288438
+ lineDownDoubleLeft: "╖",
288439
+ lineDownLeftDouble: "╕",
288440
+ lineDownRight: "┌",
288441
+ lineDownRightArc: "╭",
288442
+ lineDownBoldRightBold: "┏",
288443
+ lineDownBoldRight: "┎",
288444
+ lineDownRightBold: "┍",
288445
+ lineDownDoubleRightDouble: "╔",
288446
+ lineDownDoubleRight: "╓",
288447
+ lineDownRightDouble: "╒",
288448
+ lineUpLeft: "┘",
288449
+ lineUpLeftArc: "╯",
288450
+ lineUpBoldLeftBold: "┛",
288451
+ lineUpBoldLeft: "┚",
288452
+ lineUpLeftBold: "┙",
288453
+ lineUpDoubleLeftDouble: "╝",
288454
+ lineUpDoubleLeft: "╜",
288455
+ lineUpLeftDouble: "╛",
288456
+ lineUpRight: "└",
288457
+ lineUpRightArc: "╰",
288458
+ lineUpBoldRightBold: "┗",
288459
+ lineUpBoldRight: "┖",
288460
+ lineUpRightBold: "┕",
288461
+ lineUpDoubleRightDouble: "╚",
288462
+ lineUpDoubleRight: "╙",
288463
+ lineUpRightDouble: "╘",
288464
+ lineUpDownLeft: "┤",
288465
+ lineUpBoldDownBoldLeftBold: "┫",
288466
+ lineUpBoldDownBoldLeft: "┨",
288467
+ lineUpDownLeftBold: "┥",
288468
+ lineUpBoldDownLeftBold: "┩",
288469
+ lineUpDownBoldLeftBold: "┪",
288470
+ lineUpDownBoldLeft: "┧",
288471
+ lineUpBoldDownLeft: "┦",
288472
+ lineUpDoubleDownDoubleLeftDouble: "╣",
288473
+ lineUpDoubleDownDoubleLeft: "╢",
288474
+ lineUpDownLeftDouble: "╡",
288475
+ lineUpDownRight: "├",
288476
+ lineUpBoldDownBoldRightBold: "┣",
288477
+ lineUpBoldDownBoldRight: "┠",
288478
+ lineUpDownRightBold: "┝",
288479
+ lineUpBoldDownRightBold: "┡",
288480
+ lineUpDownBoldRightBold: "┢",
288481
+ lineUpDownBoldRight: "┟",
288482
+ lineUpBoldDownRight: "┞",
288483
+ lineUpDoubleDownDoubleRightDouble: "╠",
288484
+ lineUpDoubleDownDoubleRight: "╟",
288485
+ lineUpDownRightDouble: "╞",
288486
+ lineDownLeftRight: "┬",
288487
+ lineDownBoldLeftBoldRightBold: "┳",
288488
+ lineDownLeftBoldRightBold: "┯",
288489
+ lineDownBoldLeftRight: "┰",
288490
+ lineDownBoldLeftBoldRight: "┱",
288491
+ lineDownBoldLeftRightBold: "┲",
288492
+ lineDownLeftRightBold: "┮",
288493
+ lineDownLeftBoldRight: "┭",
288494
+ lineDownDoubleLeftDoubleRightDouble: "╦",
288495
+ lineDownDoubleLeftRight: "╥",
288496
+ lineDownLeftDoubleRightDouble: "╤",
288497
+ lineUpLeftRight: "┴",
288498
+ lineUpBoldLeftBoldRightBold: "┻",
288499
+ lineUpLeftBoldRightBold: "┷",
288500
+ lineUpBoldLeftRight: "┸",
288501
+ lineUpBoldLeftBoldRight: "┹",
288502
+ lineUpBoldLeftRightBold: "┺",
288503
+ lineUpLeftRightBold: "┶",
288504
+ lineUpLeftBoldRight: "┵",
288505
+ lineUpDoubleLeftDoubleRightDouble: "╩",
288506
+ lineUpDoubleLeftRight: "╨",
288507
+ lineUpLeftDoubleRightDouble: "╧",
288508
+ lineUpDownLeftRight: "┼",
288509
+ lineUpBoldDownBoldLeftBoldRightBold: "╋",
288510
+ lineUpDownBoldLeftBoldRightBold: "╈",
288511
+ lineUpBoldDownLeftBoldRightBold: "╇",
288512
+ lineUpBoldDownBoldLeftRightBold: "╊",
288513
+ lineUpBoldDownBoldLeftBoldRight: "╉",
288514
+ lineUpBoldDownLeftRight: "╀",
288515
+ lineUpDownBoldLeftRight: "╁",
288516
+ lineUpDownLeftBoldRight: "┽",
288517
+ lineUpDownLeftRightBold: "┾",
288518
+ lineUpBoldDownBoldLeftRight: "╂",
288519
+ lineUpDownLeftBoldRightBold: "┿",
288520
+ lineUpBoldDownLeftBoldRight: "╃",
288521
+ lineUpBoldDownLeftRightBold: "╄",
288522
+ lineUpDownBoldLeftBoldRight: "╅",
288523
+ lineUpDownBoldLeftRightBold: "╆",
288524
+ lineUpDoubleDownDoubleLeftDoubleRightDouble: "╬",
288525
+ lineUpDoubleDownDoubleLeftRight: "╫",
288526
+ lineUpDownLeftDoubleRightDouble: "╪",
288527
+ lineCross: "╳",
288528
+ lineBackslash: "╲",
288529
+ lineSlash: "╱"
288530
+ };
288531
+ var specialMainSymbols2 = {
288532
+ tick: "✔",
288533
+ info: "ℹ",
288534
+ warning: "⚠",
288535
+ cross: "✘",
288536
+ squareSmall: "◻",
288537
+ squareSmallFilled: "◼",
288538
+ circle: "◯",
288539
+ circleFilled: "◉",
288540
+ circleDotted: "◌",
288541
+ circleDouble: "◎",
288542
+ circleCircle: "ⓞ",
288543
+ circleCross: "ⓧ",
288544
+ circlePipe: "Ⓘ",
288545
+ radioOn: "◉",
288546
+ radioOff: "◯",
288547
+ checkboxOn: "☒",
288548
+ checkboxOff: "☐",
288549
+ checkboxCircleOn: "ⓧ",
288550
+ checkboxCircleOff: "Ⓘ",
288551
+ pointer: "❯",
288552
+ triangleUpOutline: "△",
288553
+ triangleLeft: "◀",
288554
+ triangleRight: "▶",
288555
+ lozenge: "◆",
288556
+ lozengeOutline: "◇",
288557
+ hamburger: "☰",
288558
+ smiley: "㋡",
288559
+ mustache: "෴",
288560
+ star: "★",
288561
+ play: "▶",
288562
+ nodejs: "⬢",
288563
+ oneSeventh: "⅐",
288564
+ oneNinth: "⅑",
288565
+ oneTenth: "⅒"
288566
+ };
288567
+ var specialFallbackSymbols2 = {
288568
+ tick: "√",
288569
+ info: "i",
288570
+ warning: "‼",
288571
+ cross: "×",
288572
+ squareSmall: "□",
288573
+ squareSmallFilled: "■",
288574
+ circle: "( )",
288575
+ circleFilled: "(*)",
288576
+ circleDotted: "( )",
288577
+ circleDouble: "( )",
288578
+ circleCircle: "(○)",
288579
+ circleCross: "(×)",
288580
+ circlePipe: "(│)",
288581
+ radioOn: "(*)",
288582
+ radioOff: "( )",
288583
+ checkboxOn: "[×]",
288584
+ checkboxOff: "[ ]",
288585
+ checkboxCircleOn: "(×)",
288586
+ checkboxCircleOff: "( )",
288587
+ pointer: ">",
288588
+ triangleUpOutline: "∆",
288589
+ triangleLeft: "◄",
288590
+ triangleRight: "►",
288591
+ lozenge: "♦",
288592
+ lozengeOutline: "◊",
288593
+ hamburger: "≡",
288594
+ smiley: "☺",
288595
+ mustache: "┌─┐",
288596
+ star: "✶",
288597
+ play: "►",
288598
+ nodejs: "♦",
288599
+ oneSeventh: "1/7",
288600
+ oneNinth: "1/9",
288601
+ oneTenth: "1/10"
288602
+ };
288603
+ var mainSymbols2 = {
288604
+ ...common2,
288605
+ ...specialMainSymbols2
288606
+ };
288607
+ var fallbackSymbols2 = {
288608
+ ...common2,
288609
+ ...specialFallbackSymbols2
288610
+ };
288611
+ var shouldUseMain2 = isUnicodeSupported3();
288612
+ var figures2 = shouldUseMain2 ? mainSymbols2 : fallbackSymbols2;
288613
+ var esm_default3 = figures2;
288614
+ var replacements2 = Object.entries(specialMainSymbols2);
288615
+
288616
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/theme.js
288617
+ var defaultTheme2 = {
288618
+ prefix: {
288619
+ idle: import_yoctocolors_cjs2.default.blue("?"),
288620
+ done: import_yoctocolors_cjs2.default.green(esm_default3.tick)
288621
+ },
288622
+ spinner: {
288623
+ interval: 80,
288624
+ frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs2.default.yellow(frame))
288625
+ },
288626
+ style: {
288627
+ answer: import_yoctocolors_cjs2.default.cyan,
288628
+ message: import_yoctocolors_cjs2.default.bold,
288629
+ error: (text2) => import_yoctocolors_cjs2.default.red(`> ${text2}`),
288630
+ defaultAnswer: (text2) => import_yoctocolors_cjs2.default.dim(`(${text2})`),
288631
+ help: import_yoctocolors_cjs2.default.dim,
288632
+ highlight: import_yoctocolors_cjs2.default.cyan,
288633
+ key: (text2) => import_yoctocolors_cjs2.default.cyan(import_yoctocolors_cjs2.default.bold(`<${text2}>`))
288634
+ }
288635
+ };
288636
+
288637
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
288638
+ function isPlainObject4(value5) {
288639
+ if (typeof value5 !== "object" || value5 === null)
288640
+ return false;
288641
+ let proto = value5;
288642
+ while (Object.getPrototypeOf(proto) !== null) {
288643
+ proto = Object.getPrototypeOf(proto);
288644
+ }
288645
+ return Object.getPrototypeOf(value5) === proto;
288646
+ }
288647
+ function deepMerge3(...objects) {
288648
+ const output = {};
288649
+ for (const obj of objects) {
288650
+ for (const [key, value5] of Object.entries(obj)) {
288651
+ const prevValue = output[key];
288652
+ output[key] = isPlainObject4(prevValue) && isPlainObject4(value5) ? deepMerge3(prevValue, value5) : value5;
288653
+ }
288654
+ }
288655
+ return output;
288656
+ }
288657
+ function makeTheme2(...themes) {
288658
+ const themesToMerge = [
288659
+ defaultTheme2,
288660
+ ...themes.filter((theme) => theme != null)
288661
+ ];
288662
+ return deepMerge3(...themesToMerge);
288663
+ }
288664
+
288665
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
288666
+ function usePrefix2({ status = "idle", theme }) {
288667
+ const [showLoader, setShowLoader] = useState2(false);
288668
+ const [tick, setTick] = useState2(0);
288669
+ const { prefix, spinner: spinner2 } = makeTheme2(theme);
288670
+ useEffect2(() => {
288671
+ if (status === "loading") {
288672
+ let tickInterval;
288673
+ let inc = -1;
288674
+ const delayTimeout = setTimeout(() => {
288675
+ setShowLoader(true);
288676
+ tickInterval = setInterval(() => {
288677
+ inc = inc + 1;
288678
+ setTick(inc % spinner2.frames.length);
288679
+ }, spinner2.interval);
288680
+ }, 300);
288681
+ return () => {
288682
+ clearTimeout(delayTimeout);
288683
+ clearInterval(tickInterval);
288684
+ };
288685
+ } else {
288686
+ setShowLoader(false);
288687
+ }
288688
+ }, [status]);
288689
+ if (showLoader) {
288690
+ return spinner2.frames[tick];
288691
+ }
288692
+ const iconName = status === "loading" ? "idle" : status;
288693
+ return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
288694
+ }
288695
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-memo.js
288696
+ function useMemo(fn, dependencies) {
288697
+ return withPointer2((pointer) => {
288698
+ const prev = pointer.get();
288699
+ if (!prev || prev.dependencies.length !== dependencies.length || prev.dependencies.some((dep, i7) => dep !== dependencies[i7])) {
288700
+ const value5 = fn();
288701
+ pointer.set({ value: value5, dependencies });
288702
+ return value5;
288703
+ }
288704
+ return prev.value;
288705
+ });
288706
+ }
288707
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
288708
+ function useRef2(val) {
288709
+ return useState2({ current: val })[0];
288710
+ }
288711
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
288712
+ function useKeypress2(userHandler) {
288713
+ const signal = useRef2(userHandler);
288714
+ signal.current = userHandler;
288715
+ useEffect2((rl) => {
288716
+ let ignore = false;
288717
+ const handler = withUpdates2((_input, event) => {
288718
+ if (ignore)
288719
+ return;
288720
+ signal.current(event, rl);
288721
+ });
288722
+ rl.input.on("keypress", handler);
288723
+ return () => {
288724
+ ignore = true;
288725
+ rl.input.removeListener("keypress", handler);
288726
+ };
288727
+ }, []);
288728
+ }
288729
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/utils.js
288730
+ var import_cli_width2 = __toESM(require_cli_width(), 1);
288731
+ var import_wrap_ansi2 = __toESM(require_wrap_ansi(), 1);
288732
+ function breakLines2(content, width) {
288733
+ return content.split(`
288734
+ `).flatMap((line) => import_wrap_ansi2.default(line, width, { trim: false, hard: true }).split(`
288735
+ `).map((str) => str.trimEnd())).join(`
288736
+ `);
288737
+ }
288738
+ function readlineWidth2() {
288739
+ return import_cli_width2.default({ defaultWidth: 80, output: readline3().output });
288740
+ }
288741
+
288742
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
288743
+ function usePointerPosition({ active, renderedItems, pageSize, loop }) {
288744
+ const state = useRef2({
288745
+ lastPointer: active,
288746
+ lastActive: undefined
288747
+ });
288748
+ const { lastPointer, lastActive } = state.current;
288749
+ const middle = Math.floor(pageSize / 2);
288750
+ const renderedLength = renderedItems.reduce((acc, item) => acc + item.length, 0);
288751
+ const defaultPointerPosition = renderedItems.slice(0, active).reduce((acc, item) => acc + item.length, 0);
288752
+ let pointer = defaultPointerPosition;
288753
+ if (renderedLength > pageSize) {
288754
+ if (loop) {
288755
+ pointer = lastPointer;
288756
+ if (lastActive != null && lastActive < active && active - lastActive < pageSize) {
288757
+ pointer = Math.min(middle, Math.abs(active - lastActive) === 1 ? Math.min(lastPointer + (renderedItems[lastActive]?.length ?? 0), Math.max(defaultPointerPosition, lastPointer)) : lastPointer + active - lastActive);
288758
+ }
288759
+ } else {
288760
+ const spaceUnderActive = renderedItems.slice(active).reduce((acc, item) => acc + item.length, 0);
288761
+ pointer = spaceUnderActive < pageSize - middle ? pageSize - spaceUnderActive : Math.min(defaultPointerPosition, middle);
288762
+ }
288763
+ }
288764
+ state.current.lastPointer = pointer;
288765
+ state.current.lastActive = active;
288766
+ return pointer;
288767
+ }
288768
+ function usePagination({ items, active, renderItem, pageSize, loop = true }) {
288769
+ const width = readlineWidth2();
288770
+ const bound = (num) => (num % items.length + items.length) % items.length;
288771
+ const renderedItems = items.map((item, index) => {
288772
+ if (item == null)
288773
+ return [];
288774
+ return breakLines2(renderItem({ item, index, isActive: index === active }), width).split(`
288775
+ `);
288776
+ });
288777
+ const renderedLength = renderedItems.reduce((acc, item) => acc + item.length, 0);
288778
+ const renderItemAtIndex = (index) => renderedItems[index] ?? [];
288779
+ const pointer = usePointerPosition({ active, renderedItems, pageSize, loop });
288780
+ const activeItem = renderItemAtIndex(active).slice(0, pageSize);
288781
+ const activeItemPosition = pointer + activeItem.length <= pageSize ? pointer : pageSize - activeItem.length;
288782
+ const pageBuffer = Array.from({ length: pageSize });
288783
+ pageBuffer.splice(activeItemPosition, activeItem.length, ...activeItem);
288784
+ const itemVisited = new Set([active]);
288785
+ let bufferPointer = activeItemPosition + activeItem.length;
288786
+ let itemPointer = bound(active + 1);
288787
+ while (bufferPointer < pageSize && !itemVisited.has(itemPointer) && (loop && renderedLength > pageSize ? itemPointer !== active : itemPointer > active)) {
288788
+ const lines = renderItemAtIndex(itemPointer);
288789
+ const linesToAdd = lines.slice(0, pageSize - bufferPointer);
288790
+ pageBuffer.splice(bufferPointer, linesToAdd.length, ...linesToAdd);
288791
+ itemVisited.add(itemPointer);
288792
+ bufferPointer += linesToAdd.length;
288793
+ itemPointer = bound(itemPointer + 1);
288794
+ }
288795
+ bufferPointer = activeItemPosition - 1;
288796
+ itemPointer = bound(active - 1);
288797
+ while (bufferPointer >= 0 && !itemVisited.has(itemPointer) && (loop && renderedLength > pageSize ? itemPointer !== active : itemPointer < active)) {
288798
+ const lines = renderItemAtIndex(itemPointer);
288799
+ const linesToAdd = lines.slice(Math.max(0, lines.length - bufferPointer - 1));
288800
+ pageBuffer.splice(bufferPointer - linesToAdd.length + 1, linesToAdd.length, ...linesToAdd);
288801
+ itemVisited.add(itemPointer);
288802
+ bufferPointer -= linesToAdd.length;
288803
+ itemPointer = bound(itemPointer - 1);
288804
+ }
288805
+ return pageBuffer.filter((line) => typeof line === "string").join(`
288806
+ `);
288807
+ }
288808
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
288809
+ var import_mute_stream2 = __toESM(require_lib13(), 1);
288810
+ import * as readline4 from "node:readline";
288811
+ import { AsyncResource as AsyncResource6 } from "node:async_hooks";
288812
+
288813
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
288814
+ import { stripVTControlCharacters as stripVTControlCharacters3 } from "node:util";
288815
+
288816
+ // ../../node_modules/.bun/@inquirer+ansi@1.0.2/node_modules/@inquirer/ansi/dist/esm/index.js
288817
+ var ESC2 = "\x1B[";
288818
+ var cursorLeft2 = ESC2 + "G";
288819
+ var cursorHide2 = ESC2 + "?25l";
288820
+ var cursorShow2 = ESC2 + "?25h";
288821
+ var cursorUp2 = (rows = 1) => rows > 0 ? `${ESC2}${rows}A` : "";
288822
+ var cursorDown2 = (rows = 1) => rows > 0 ? `${ESC2}${rows}B` : "";
288823
+ var cursorTo2 = (x6, y4) => {
288824
+ if (typeof y4 === "number" && !Number.isNaN(y4)) {
288825
+ return `${ESC2}${y4 + 1};${x6 + 1}H`;
288826
+ }
288827
+ return `${ESC2}${x6 + 1}G`;
288828
+ };
288829
+ var eraseLine2 = ESC2 + "2K";
288830
+ var eraseLines2 = (lines) => lines > 0 ? (eraseLine2 + cursorUp2(1)).repeat(lines - 1) + eraseLine2 + cursorLeft2 : "";
288831
+
288832
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
288833
+ var height2 = (content) => content.split(`
288834
+ `).length;
288835
+ var lastLine2 = (content) => content.split(`
288836
+ `).pop() ?? "";
288837
+
288838
+ class ScreenManager2 {
288839
+ height = 0;
288840
+ extraLinesUnderPrompt = 0;
288841
+ cursorPos;
288842
+ rl;
288843
+ constructor(rl) {
288844
+ this.rl = rl;
288845
+ this.cursorPos = rl.getCursorPos();
288846
+ }
288847
+ write(content) {
288848
+ this.rl.output.unmute();
288849
+ this.rl.output.write(content);
288850
+ this.rl.output.mute();
288851
+ }
288852
+ render(content, bottomContent = "") {
288853
+ const promptLine = lastLine2(content);
288854
+ const rawPromptLine = stripVTControlCharacters3(promptLine);
288855
+ let prompt = rawPromptLine;
288856
+ if (this.rl.line.length > 0) {
288857
+ prompt = prompt.slice(0, -this.rl.line.length);
288858
+ }
288859
+ this.rl.setPrompt(prompt);
288860
+ this.cursorPos = this.rl.getCursorPos();
288861
+ const width = readlineWidth2();
288862
+ content = breakLines2(content, width);
288863
+ bottomContent = breakLines2(bottomContent, width);
288864
+ if (rawPromptLine.length % width === 0) {
288865
+ content += `
288866
+ `;
288867
+ }
288868
+ let output = content + (bottomContent ? `
288869
+ ` + bottomContent : "");
288870
+ const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
288871
+ const bottomContentHeight = promptLineUpDiff + (bottomContent ? height2(bottomContent) : 0);
288872
+ if (bottomContentHeight > 0)
288873
+ output += cursorUp2(bottomContentHeight);
288874
+ output += cursorTo2(this.cursorPos.cols);
288875
+ this.write(cursorDown2(this.extraLinesUnderPrompt) + eraseLines2(this.height) + output);
288876
+ this.extraLinesUnderPrompt = bottomContentHeight;
288877
+ this.height = height2(output);
288878
+ }
288879
+ checkCursorPos() {
288880
+ const cursorPos = this.rl.getCursorPos();
288881
+ if (cursorPos.cols !== this.cursorPos.cols) {
288882
+ this.write(cursorTo2(cursorPos.cols));
288883
+ this.cursorPos = cursorPos;
288884
+ }
288885
+ }
288886
+ done({ clearContent }) {
288887
+ this.rl.setPrompt("");
288888
+ let output = cursorDown2(this.extraLinesUnderPrompt);
288889
+ output += clearContent ? eraseLines2(this.height) : `
288890
+ `;
288891
+ output += cursorShow2;
288892
+ this.write(output);
288893
+ this.rl.close();
288894
+ }
288895
+ }
288896
+
288897
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
288898
+ class PromisePolyfill2 extends Promise {
288899
+ static withResolver() {
288900
+ let resolve6;
288901
+ let reject;
288902
+ const promise2 = new Promise((res, rej) => {
288903
+ resolve6 = res;
288904
+ reject = rej;
288905
+ });
288906
+ return { promise: promise2, resolve: resolve6, reject };
288907
+ }
288908
+ }
288909
+
288910
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
288911
+ function getCallSites2() {
288912
+ const _prepareStackTrace = Error.prepareStackTrace;
288913
+ let result = [];
288914
+ try {
288915
+ Error.prepareStackTrace = (_5, callSites) => {
288916
+ const callSitesWithoutCurrent = callSites.slice(1);
288917
+ result = callSitesWithoutCurrent;
288918
+ return callSitesWithoutCurrent;
288919
+ };
288920
+ new Error().stack;
288921
+ } catch {
288922
+ return result;
288923
+ }
288924
+ Error.prepareStackTrace = _prepareStackTrace;
288925
+ return result;
288926
+ }
288927
+ function createPrompt2(view) {
288928
+ const callSites = getCallSites2();
288929
+ const prompt = (config3, context = {}) => {
288930
+ const { input = process.stdin, signal } = context;
288931
+ const cleanups = new Set;
288932
+ const output = new import_mute_stream2.default;
288933
+ output.pipe(context.output ?? process.stdout);
288934
+ const rl = readline4.createInterface({
288935
+ terminal: true,
288936
+ input,
288937
+ output
288938
+ });
288939
+ const screen = new ScreenManager2(rl);
288940
+ const { promise: promise2, resolve: resolve6, reject } = PromisePolyfill2.withResolver();
288941
+ const cancel3 = () => reject(new CancelPromptError2);
288942
+ if (signal) {
288943
+ const abort = () => reject(new AbortPromptError2({ cause: signal.reason }));
288944
+ if (signal.aborted) {
288945
+ abort();
288946
+ return Object.assign(promise2, { cancel: cancel3 });
288947
+ }
288948
+ signal.addEventListener("abort", abort);
288949
+ cleanups.add(() => signal.removeEventListener("abort", abort));
288950
+ }
288951
+ cleanups.add(onExit((code2, signal2) => {
288952
+ reject(new ExitPromptError2(`User force closed the prompt with ${code2} ${signal2}`));
288953
+ }));
288954
+ const sigint = () => reject(new ExitPromptError2(`User force closed the prompt with SIGINT`));
288955
+ rl.on("SIGINT", sigint);
288956
+ cleanups.add(() => rl.removeListener("SIGINT", sigint));
288957
+ const checkCursorPos = () => screen.checkCursorPos();
288958
+ rl.input.on("keypress", checkCursorPos);
288959
+ cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
288960
+ return withHooks2(rl, (cycle) => {
288961
+ const hooksCleanup = AsyncResource6.bind(() => effectScheduler2.clearAll());
288962
+ rl.on("close", hooksCleanup);
288963
+ cleanups.add(() => rl.removeListener("close", hooksCleanup));
288964
+ cycle(() => {
288965
+ try {
288966
+ const nextView = view(config3, (value5) => {
288967
+ setImmediate(() => resolve6(value5));
288968
+ });
288969
+ if (nextView === undefined) {
288970
+ const callerFilename = callSites[1]?.getFileName();
288971
+ throw new Error(`Prompt functions must return a string.
288972
+ at ${callerFilename}`);
288973
+ }
288974
+ const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
288975
+ screen.render(content, bottomContent);
288976
+ effectScheduler2.run();
288977
+ } catch (error51) {
288978
+ reject(error51);
288979
+ }
288980
+ });
288981
+ return Object.assign(promise2.then((answer) => {
288982
+ effectScheduler2.clearAll();
288983
+ return answer;
288984
+ }, (error51) => {
288985
+ effectScheduler2.clearAll();
288986
+ throw error51;
288987
+ }).finally(() => {
288988
+ cleanups.forEach((cleanup) => cleanup());
288989
+ screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
288990
+ output.end();
288991
+ }).then(() => promise2), { cancel: cancel3 });
288992
+ });
288993
+ };
288994
+ return prompt;
288995
+ }
288996
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/Separator.js
288129
288997
  var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
288998
+ class Separator {
288999
+ separator = import_yoctocolors_cjs3.default.dim(Array.from({ length: 15 }).join(esm_default3.line));
289000
+ type = "separator";
289001
+ constructor(separator) {
289002
+ if (separator) {
289003
+ this.separator = separator;
289004
+ }
289005
+ }
289006
+ static isSeparator(choice) {
289007
+ return Boolean(choice && typeof choice === "object" && "type" in choice && choice.type === "separator");
289008
+ }
289009
+ }
289010
+ // ../../node_modules/.bun/@inquirer+select@4.4.1+c30ff3a63f0500d5/node_modules/@inquirer/select/dist/esm/index.js
289011
+ var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
288130
289012
  var selectTheme = {
288131
- icon: { cursor: esm_default.pointer },
289013
+ icon: { cursor: esm_default3.pointer },
288132
289014
  style: {
288133
- disabled: (text2) => import_yoctocolors_cjs3.default.dim(`- ${text2}`),
288134
- description: (text2) => import_yoctocolors_cjs3.default.cyan(text2),
288135
- keysHelpTip: (keys) => keys.map(([key, action]) => `${import_yoctocolors_cjs3.default.bold(key)} ${import_yoctocolors_cjs3.default.dim(action)}`).join(import_yoctocolors_cjs3.default.dim(" • "))
289015
+ disabled: (text2) => import_yoctocolors_cjs4.default.dim(`- ${text2}`),
289016
+ description: (text2) => import_yoctocolors_cjs4.default.cyan(text2),
289017
+ keysHelpTip: (keys) => keys.map(([key, action]) => `${import_yoctocolors_cjs4.default.bold(key)} ${import_yoctocolors_cjs4.default.dim(action)}`).join(import_yoctocolors_cjs4.default.dim(" • "))
288136
289018
  },
288137
289019
  helpMode: "always",
288138
289020
  indexMode: "hidden",
@@ -288166,20 +289048,20 @@ function normalizeChoices(choices) {
288166
289048
  return normalizedChoice;
288167
289049
  });
288168
289050
  }
288169
- var esm_default3 = createPrompt((config3, done) => {
289051
+ var esm_default4 = createPrompt2((config3, done) => {
288170
289052
  const { loop = true, pageSize = 7 } = config3;
288171
- const theme = makeTheme(selectTheme, config3.theme);
289053
+ const theme = makeTheme2(selectTheme, config3.theme);
288172
289054
  const { keybindings } = theme;
288173
- const [status, setStatus] = useState("idle");
288174
- const prefix = usePrefix({ status, theme });
288175
- const searchTimeoutRef = useRef();
289055
+ const [status, setStatus] = useState2("idle");
289056
+ const prefix = usePrefix2({ status, theme });
289057
+ const searchTimeoutRef = useRef2();
288176
289058
  const searchEnabled = !keybindings.includes("vim");
288177
289059
  const items = useMemo(() => normalizeChoices(config3.choices), [config3.choices]);
288178
289060
  const bounds = useMemo(() => {
288179
289061
  const first = items.findIndex(isSelectable);
288180
289062
  const last = items.findLastIndex(isSelectable);
288181
289063
  if (first === -1) {
288182
- throw new ValidationError("[select prompt] No selectable choices. All choices are disabled.");
289064
+ throw new ValidationError2("[select prompt] No selectable choices. All choices are disabled.");
288183
289065
  }
288184
289066
  return { first, last };
288185
289067
  }, [items]);
@@ -288188,24 +289070,24 @@ var esm_default3 = createPrompt((config3, done) => {
288188
289070
  return -1;
288189
289071
  return items.findIndex((item) => isSelectable(item) && item.value === config3.default);
288190
289072
  }, [config3.default, items]);
288191
- const [active, setActive] = useState(defaultItemIndex === -1 ? bounds.first : defaultItemIndex);
289073
+ const [active, setActive] = useState2(defaultItemIndex === -1 ? bounds.first : defaultItemIndex);
288192
289074
  const selectedChoice = items[active];
288193
- useKeypress((key, rl) => {
289075
+ useKeypress2((key, rl) => {
288194
289076
  clearTimeout(searchTimeoutRef.current);
288195
- if (isEnterKey(key)) {
289077
+ if (isEnterKey2(key)) {
288196
289078
  setStatus("done");
288197
289079
  done(selectedChoice.value);
288198
- } else if (isUpKey(key, keybindings) || isDownKey(key, keybindings)) {
289080
+ } else if (isUpKey2(key, keybindings) || isDownKey2(key, keybindings)) {
288199
289081
  rl.clearLine(0);
288200
- if (loop || isUpKey(key, keybindings) && active !== bounds.first || isDownKey(key, keybindings) && active !== bounds.last) {
288201
- const offset = isUpKey(key, keybindings) ? -1 : 1;
289082
+ if (loop || isUpKey2(key, keybindings) && active !== bounds.first || isDownKey2(key, keybindings) && active !== bounds.last) {
289083
+ const offset = isUpKey2(key, keybindings) ? -1 : 1;
288202
289084
  let next = active;
288203
289085
  do {
288204
289086
  next = (next + offset + items.length) % items.length;
288205
289087
  } while (!isSelectable(items[next]));
288206
289088
  setActive(next);
288207
289089
  }
288208
- } else if (isNumberKey(key) && !Number.isNaN(Number(rl.line))) {
289090
+ } else if (isNumberKey2(key) && !Number.isNaN(Number(rl.line))) {
288209
289091
  const selectedIndex = Number(rl.line) - 1;
288210
289092
  let selectableIndex = -1;
288211
289093
  const position = items.findIndex((item2) => {
@@ -288221,7 +289103,7 @@ var esm_default3 = createPrompt((config3, done) => {
288221
289103
  searchTimeoutRef.current = setTimeout(() => {
288222
289104
  rl.clearLine(0);
288223
289105
  }, 700);
288224
- } else if (isBackspaceKey(key)) {
289106
+ } else if (isBackspaceKey2(key)) {
288225
289107
  rl.clearLine(0);
288226
289108
  } else if (searchEnabled) {
288227
289109
  const searchTerm = rl.line.toLowerCase();
@@ -288238,7 +289120,7 @@ var esm_default3 = createPrompt((config3, done) => {
288238
289120
  }, 700);
288239
289121
  }
288240
289122
  });
288241
- useEffect(() => () => {
289123
+ useEffect2(() => () => {
288242
289124
  clearTimeout(searchTimeoutRef.current);
288243
289125
  }, []);
288244
289126
  const message = theme.style.message(config3.message, status);
@@ -288287,7 +289169,7 @@ var esm_default3 = createPrompt((config3, done) => {
288287
289169
  helpLine
288288
289170
  ].filter(Boolean).join(`
288289
289171
  `).trimEnd();
288290
- return `${lines}${cursorHide}`;
289172
+ return `${lines}${cursorHide2}`;
288291
289173
  });
288292
289174
 
288293
289175
  // src/prompts/smart-contract-set/subgraph.prompt.ts
@@ -288341,7 +289223,7 @@ async function subgraphPrompt({
288341
289223
  } else {
288342
289224
  defaultChoice = env2.SETTLEMINT_THEGRAPH_DEFAULT_SUBGRAPH ?? subgraphNames[0];
288343
289225
  }
288344
- const subgraphName = choices.length === 1 && choices[0] === NEW ? NEW : await esm_default3({
289226
+ const subgraphName = choices.length === 1 && choices[0] === NEW ? NEW : await esm_default4({
288345
289227
  message,
288346
289228
  choices: choices.map((name4) => ({
288347
289229
  name: name4,
@@ -313816,7 +314698,7 @@ function getBooleanValue(value5, defaultValue) {
313816
314698
  function boolToString(value5) {
313817
314699
  return value5 ? "Yes" : "No";
313818
314700
  }
313819
- var esm_default4 = createPrompt((config3, done) => {
314701
+ var esm_default5 = createPrompt((config3, done) => {
313820
314702
  const { transformer = boolToString } = config3;
313821
314703
  const [status, setStatus] = useState("idle");
313822
314704
  const [value5, setValue] = useState("");
@@ -313851,7 +314733,7 @@ var esm_default4 = createPrompt((config3, done) => {
313851
314733
  });
313852
314734
 
313853
314735
  // ../../node_modules/.bun/@inquirer+password@4.0.21+c30ff3a63f0500d5/node_modules/@inquirer/password/dist/esm/index.js
313854
- var esm_default5 = createPrompt((config3, done) => {
314736
+ var esm_default6 = createPrompt((config3, done) => {
313855
314737
  const { validate: validate8 = () => true } = config3;
313856
314738
  const theme = makeTheme(config3.theme);
313857
314739
  const [status, setStatus] = useState("idle");
@@ -313909,7 +314791,7 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
313909
314791
  return defaultAccessToken;
313910
314792
  }
313911
314793
  if (defaultAccessToken) {
313912
- const keep = await esm_default4({
314794
+ const keep = await esm_default5({
313913
314795
  message: "Do you want to use the existing application access token?",
313914
314796
  default: true
313915
314797
  });
@@ -313917,7 +314799,7 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
313917
314799
  return defaultAccessToken;
313918
314800
  }
313919
314801
  }
313920
- const create3 = await esm_default4({
314802
+ const create3 = await esm_default5({
313921
314803
  message: "Do you want to create a new application access token?",
313922
314804
  default: false
313923
314805
  });
@@ -313985,7 +314867,7 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
313985
314867
  return aat;
313986
314868
  } catch (_error) {}
313987
314869
  }
313988
- return esm_default5({
314870
+ return esm_default6({
313989
314871
  message: "What is the application access token for your application in SettleMint? (format: sm_aat_...)",
313990
314872
  validate(value5) {
313991
314873
  try {
@@ -314017,7 +314899,7 @@ async function applicationPrompt(env2, applications, accept) {
314017
314899
  if (is_in_ci_default) {
314018
314900
  nothingSelectedError("application");
314019
314901
  }
314020
- const application = await esm_default3({
314902
+ const application = await esm_default4({
314021
314903
  message: "Which application do you want to connect to?",
314022
314904
  choices: applications.map((applications2) => ({
314023
314905
  name: `${applications2.name} (${applications2.uniqueName})`,
@@ -314130,7 +315012,7 @@ async function blockchainNodePrompt({
314130
315012
  }
314131
315013
  return item;
314132
315014
  }) : choices;
314133
- return esm_default3({
315015
+ return esm_default4({
314134
315016
  message: promptMessage ?? "Which blockchain node do you want to connect to?",
314135
315017
  choices: filteredChoices,
314136
315018
  default: defaultNode
@@ -314160,7 +315042,7 @@ async function blockchainNodeOrLoadBalancerPrompt({
314160
315042
  isRequired,
314161
315043
  defaultHandler: async ({ defaultService: defaultNode, choices }) => {
314162
315044
  const filteredChoices = filterRunningOnly ? choices.filter(({ value: node }) => isRunning(node)) : choices;
314163
- return esm_default3({
315045
+ return esm_default4({
314164
315046
  message: promptMessage ?? "Which blockchain node or load balancer do you want to connect to?",
314165
315047
  choices: filteredChoices,
314166
315048
  default: defaultNode
@@ -314185,7 +315067,7 @@ async function blockscoutPrompt({
314185
315067
  envKey: "SETTLEMINT_BLOCKSCOUT",
314186
315068
  isRequired,
314187
315069
  defaultHandler: async ({ defaultService: defaultBlockscout, choices }) => {
314188
- return esm_default3({
315070
+ return esm_default4({
314189
315071
  message: "Which blockscout instance do you want to connect to?",
314190
315072
  choices,
314191
315073
  default: defaultBlockscout
@@ -314208,7 +315090,7 @@ async function customDeploymentPrompt({
314208
315090
  envKey: "SETTLEMINT_CUSTOM_DEPLOYMENT",
314209
315091
  isRequired,
314210
315092
  defaultHandler: async ({ defaultService: defaultCustomDeployment, choices }) => {
314211
- return esm_default3({
315093
+ return esm_default4({
314212
315094
  message: "Which Custom Deployment do you want to connect to?",
314213
315095
  choices,
314214
315096
  default: defaultCustomDeployment
@@ -314235,7 +315117,7 @@ async function hasuraPrompt({
314235
315117
  envKey: "SETTLEMINT_HASURA",
314236
315118
  isRequired,
314237
315119
  defaultHandler: async ({ defaultService: defaultHasura, choices }) => {
314238
- return esm_default3({
315120
+ return esm_default4({
314239
315121
  message: "Which Hasura instance do you want to connect to?",
314240
315122
  choices,
314241
315123
  default: defaultHasura
@@ -314259,7 +315141,7 @@ async function hdPrivateKeyPrompt({
314259
315141
  envKey: "SETTLEMINT_HD_PRIVATE_KEY",
314260
315142
  isRequired,
314261
315143
  defaultHandler: async ({ defaultService: defaultPrivateKey, choices }) => {
314262
- return esm_default3({
315144
+ return esm_default4({
314263
315145
  message: "Which HD Private Key do you want to use?",
314264
315146
  choices,
314265
315147
  default: defaultPrivateKey
@@ -314283,7 +315165,7 @@ async function ipfsPrompt({
314283
315165
  envKey: "SETTLEMINT_IPFS",
314284
315166
  isRequired,
314285
315167
  defaultHandler: async ({ defaultService: defaultStorage, choices }) => {
314286
- return esm_default3({
315168
+ return esm_default4({
314287
315169
  message: "Which IPFS instance do you want to connect to?",
314288
315170
  choices,
314289
315171
  default: defaultStorage
@@ -314307,7 +315189,7 @@ async function minioPrompt({
314307
315189
  envKey: "SETTLEMINT_MINIO",
314308
315190
  isRequired,
314309
315191
  defaultHandler: async ({ defaultService: defaultStorage, choices }) => {
314310
- return esm_default3({
315192
+ return esm_default4({
314311
315193
  message: "Which MinIO instance do you want to connect to?",
314312
315194
  choices,
314313
315195
  default: defaultStorage
@@ -314331,7 +315213,7 @@ async function portalPrompt({
314331
315213
  envKey: "SETTLEMINT_PORTAL",
314332
315214
  isRequired,
314333
315215
  defaultHandler: async ({ defaultService: defaultMiddleware, choices }) => {
314334
- return esm_default3({
315216
+ return esm_default4({
314335
315217
  message: "Which Smart Contract Portal instance do you want to connect to?",
314336
315218
  choices,
314337
315219
  default: defaultMiddleware
@@ -314360,7 +315242,7 @@ async function theGraphPrompt({
314360
315242
  isRequired,
314361
315243
  defaultHandler: async ({ defaultService: defaultMiddleware, choices }) => {
314362
315244
  const filteredChoices = filterRunningOnly ? choices.filter(({ value: middleware }) => isRunning(middleware)) : choices;
314363
- return esm_default3({
315245
+ return esm_default4({
314364
315246
  message: "Which The Graph instance do you want to connect to?",
314365
315247
  choices: filteredChoices,
314366
315248
  default: defaultMiddleware
@@ -314407,7 +315289,7 @@ async function instancePrompt({
314407
315289
  if (knownInstances.length === 0) {
314408
315290
  note("No instances found. Run `settlemint login` to configure an instance.", "warn");
314409
315291
  }
314410
- return esm_default3({
315292
+ return esm_default4({
314411
315293
  message: "What instance do you want to connect to?",
314412
315294
  choices: [
314413
315295
  ...knownInstances.map((instance) => ({
@@ -314443,7 +315325,7 @@ async function serviceSecretPrompt({
314443
315325
  return defaultSecret;
314444
315326
  }
314445
315327
  if (defaultSecret) {
314446
- const keep = await esm_default4({
315328
+ const keep = await esm_default5({
314447
315329
  message: `Do you want to use the existing ${name4} secret?`,
314448
315330
  default: true
314449
315331
  });
@@ -314451,7 +315333,7 @@ async function serviceSecretPrompt({
314451
315333
  return defaultSecret;
314452
315334
  }
314453
315335
  }
314454
- const serviceSecret = await esm_default5({
315336
+ const serviceSecret = await esm_default6({
314455
315337
  message
314456
315338
  });
314457
315339
  return serviceSecret || undefined;
@@ -314503,7 +315385,7 @@ async function workspacePrompt(env2, workspaces, accept) {
314503
315385
  if (is_in_ci_default) {
314504
315386
  nothingSelectedError("workspace");
314505
315387
  }
314506
- const workspace = await esm_default3({
315388
+ const workspace = await esm_default4({
314507
315389
  message: "Which workspace do you want to connect to?",
314508
315390
  choices: workspaces.map((workspace2) => ({
314509
315391
  name: `${workspace2.name} (${workspace2.uniqueName})`,
@@ -315345,7 +316227,7 @@ async function templatePrompt(platformConfig, argument) {
315345
316227
  }
315346
316228
  return template2;
315347
316229
  }
315348
- const template = await esm_default3({
316230
+ const template = await esm_default4({
315349
316231
  message: "Which template do you want to use?",
315350
316232
  choices: [
315351
316233
  ...kits.map((template2) => ({
@@ -315565,7 +316447,7 @@ var basename2 = function(p5, extension) {
315565
316447
  return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
315566
316448
  };
315567
316449
  // ../../node_modules/.bun/defu@6.1.4/node_modules/defu/dist/defu.mjs
315568
- function isPlainObject4(value5) {
316450
+ function isPlainObject5(value5) {
315569
316451
  if (value5 === null || typeof value5 !== "object") {
315570
316452
  return false;
315571
316453
  }
@@ -315582,7 +316464,7 @@ function isPlainObject4(value5) {
315582
316464
  return true;
315583
316465
  }
315584
316466
  function _defu(baseObject, defaults2, namespace = ".", merger) {
315585
- if (!isPlainObject4(defaults2)) {
316467
+ if (!isPlainObject5(defaults2)) {
315586
316468
  return _defu(baseObject, {}, namespace, merger);
315587
316469
  }
315588
316470
  const object2 = Object.assign({}, defaults2);
@@ -315599,7 +316481,7 @@ function _defu(baseObject, defaults2, namespace = ".", merger) {
315599
316481
  }
315600
316482
  if (Array.isArray(value5) && Array.isArray(object2[key])) {
315601
316483
  object2[key] = [...value5, ...object2[key]];
315602
- } else if (isPlainObject4(value5) && isPlainObject4(object2[key])) {
316484
+ } else if (isPlainObject5(value5) && isPlainObject5(object2[key])) {
315603
316485
  object2[key] = _defu(value5, object2[key], (namespace ? `${namespace}.` : "") + key.toString(), merger);
315604
316486
  } else {
315605
316487
  object2[key] = value5;
@@ -318630,7 +319512,7 @@ function createCommand2() {
318630
319512
  await mkdir6(projectDir, { recursive: true });
318631
319513
  }
318632
319514
  if (!await isEmpty(projectDir)) {
318633
- const confirmEmpty = await esm_default4({
319515
+ const confirmEmpty = await esm_default5({
318634
319516
  message: `The folder ${projectDir} already exists. Do you want to empty it?`,
318635
319517
  default: false
318636
319518
  });
@@ -318883,7 +319765,7 @@ async function personalAccessTokenPrompt(env2, instance, accept) {
318883
319765
  return defaultPersonalAccessToken;
318884
319766
  }
318885
319767
  if (existingConfig && defaultPersonalAccessToken) {
318886
- const useExisting = await esm_default4({
319768
+ const useExisting = await esm_default5({
318887
319769
  message: `Do you want to use your existing personal access token for ${instance}?`,
318888
319770
  default: true
318889
319771
  });
@@ -318891,7 +319773,7 @@ async function personalAccessTokenPrompt(env2, instance, accept) {
318891
319773
  return defaultPersonalAccessToken;
318892
319774
  }
318893
319775
  }
318894
- return esm_default5({
319776
+ return esm_default6({
318895
319777
  message: "What is your personal access token in SettleMint? (format: sm_pat_...)",
318896
319778
  validate(value5) {
318897
319779
  try {
@@ -319017,7 +319899,7 @@ function logoutCommand() {
319017
319899
  }
319018
319900
  const env2 = await loadEnv(false, false);
319019
319901
  const defaultInstance = env2.SETTLEMINT_INSTANCE;
319020
- const instance = await esm_default3({
319902
+ const instance = await esm_default4({
319021
319903
  message: "Select the instance to logout from:",
319022
319904
  choices: instances.map((instance2) => ({
319023
319905
  value: instance2,
@@ -319038,7 +319920,7 @@ async function pincodeVerificationPrompt(verificationChallenges) {
319038
319920
  if (verificationChallenges.length === 1) {
319039
319921
  return verificationChallenges[0];
319040
319922
  }
319041
- const verificationChallenge = await esm_default3({
319923
+ const verificationChallenge = await esm_default4({
319042
319924
  message: "Which pincode verification do you want to use?",
319043
319925
  choices: verificationChallenges.map((verificationChallenge2) => ({
319044
319926
  name: verificationChallenge2.name,
@@ -319102,7 +319984,7 @@ function pincodeVerificationResponseCommand() {
319102
319984
  nodeId: selectedBlockchainNode.id
319103
319985
  });
319104
319986
  const verificationChallenge = await pincodeVerificationPrompt(pincodeVerificationChallenges);
319105
- const pincode = await esm_default5({
319987
+ const pincode = await esm_default6({
319106
319988
  message: "Enter your pincode",
319107
319989
  validate(value5) {
319108
319990
  if (!value5.trim()) {
@@ -319255,7 +320137,7 @@ async function providerPrompt(platformConfig, argument) {
319255
320137
  if (possibleProviders.length === 1) {
319256
320138
  return possibleProviders[0];
319257
320139
  }
319258
- const provider = await esm_default3({
320140
+ const provider = await esm_default4({
319259
320141
  message: "Which provider do you want to use?",
319260
320142
  choices: platformConfig.deploymentEngineTargets.map((target) => ({
319261
320143
  name: target.name,
@@ -319286,7 +320168,7 @@ async function regionPrompt(provider, argument) {
319286
320168
  if (possibleRegions.length === 1) {
319287
320169
  return possibleRegions[0];
319288
320170
  }
319289
- const region = await esm_default3({
320171
+ const region = await esm_default4({
319290
320172
  message: "Which region do you want to use?",
319291
320173
  choices: provider.clusters.map((cluster) => ({
319292
320174
  name: cluster.name,
@@ -319816,7 +320698,7 @@ async function blockchainNetworkPrompt({
319816
320698
  envKey: "SETTLEMINT_BLOCKCHAIN_NETWORK",
319817
320699
  isRequired,
319818
320700
  defaultHandler: async ({ defaultService: defaultNetwork, choices }) => {
319819
- return esm_default3({
320701
+ return esm_default4({
319820
320702
  message: "Which blockchain network do you want to connect to?",
319821
320703
  choices,
319822
320704
  default: defaultNetwork
@@ -321581,7 +322463,7 @@ function jsonOutput(data) {
321581
322463
  var composer = require_composer();
321582
322464
  var Document = require_Document();
321583
322465
  var Schema = require_Schema();
321584
- var errors4 = require_errors3();
322466
+ var errors5 = require_errors3();
321585
322467
  var Alias = require_Alias();
321586
322468
  var identity2 = require_identity();
321587
322469
  var Pair = require_Pair();
@@ -321597,9 +322479,9 @@ var visit2 = require_visit();
321597
322479
  var $Composer = composer.Composer;
321598
322480
  var $Document = Document.Document;
321599
322481
  var $Schema = Schema.Schema;
321600
- var $YAMLError = errors4.YAMLError;
321601
- var $YAMLParseError = errors4.YAMLParseError;
321602
- var $YAMLWarning = errors4.YAMLWarning;
322482
+ var $YAMLError = errors5.YAMLError;
322483
+ var $YAMLParseError = errors5.YAMLParseError;
322484
+ var $YAMLWarning = errors5.YAMLWarning;
321603
322485
  var $Alias = Alias.Alias;
321604
322486
  var $isAlias = identity2.isAlias;
321605
322487
  var $isCollection = identity2.isCollection;
@@ -322118,7 +323000,7 @@ async function useCasePrompt(platformConfig, argument) {
322118
323000
  if (selectableUseCases.length === 1) {
322119
323001
  return selectableUseCases[0];
322120
323002
  }
322121
- const useCase = await esm_default3({
323003
+ const useCase = await esm_default4({
322122
323004
  message: "Which use case do you want to use?",
322123
323005
  choices: selectableUseCases.map((useCase2) => ({
322124
323006
  name: formatUseCaseName(useCase2.name),
@@ -322176,7 +323058,7 @@ function createCommand4() {
322176
323058
  const targetDir = formatTargetDir(name4);
322177
323059
  const projectDir = join10(process.cwd(), targetDir);
322178
323060
  if (await exists3(projectDir) && !await isEmpty(projectDir)) {
322179
- const confirmEmpty = await esm_default4({
323061
+ const confirmEmpty = await esm_default5({
322180
323062
  message: `The folder ${projectDir} already exists. Do you want to delete it?`,
322181
323063
  default: false
322182
323064
  });
@@ -322509,7 +323391,7 @@ async function addressPrompt({
322509
323391
  note(`Private key with address '${defaultAddress}' is not activated on the node '${node.uniqueName}'.
322510
323392
  Please select another key or activate this key on the node and try again.`, "warn");
322511
323393
  }
322512
- const address = await esm_default3({
323394
+ const address = await esm_default4({
322513
323395
  message: "Which private key do you want to deploy from?",
322514
323396
  choices: possiblePrivateKeys.map(({ address: address2, name: name4 }) => ({
322515
323397
  name: name4,
@@ -323460,4 +324342,4 @@ async function sdkCliCommand(argv = process.argv) {
323460
324342
  // src/cli.ts
323461
324343
  sdkCliCommand();
323462
324344
 
323463
- //# debugId=B607BD5224CF6CAF64756E2164756E21
324345
+ //# debugId=30BFA0EF8622593964756E2164756E21