@settlemint/sdk-cli 2.6.4-pr396848ad → 2.6.4-pr5d528293

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
@@ -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
  }
@@ -282064,7 +282184,7 @@ function pruneCurrentEnv(currentEnv, env2) {
282064
282184
  var package_default = {
282065
282185
  name: "@settlemint/sdk-cli",
282066
282186
  description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
282067
- version: "2.6.4-pr396848ad",
282187
+ version: "2.6.4-pr5d528293",
282068
282188
  type: "module",
282069
282189
  private: false,
282070
282190
  license: "FSL-1.1-MIT",
@@ -282115,13 +282235,13 @@ var package_default = {
282115
282235
  "@commander-js/extra-typings": "14.0.0",
282116
282236
  commander: "14.0.2",
282117
282237
  "@inquirer/confirm": "5.1.19",
282118
- "@inquirer/input": "4.2.5",
282238
+ "@inquirer/input": "4.3.0",
282119
282239
  "@inquirer/password": "4.0.21",
282120
282240
  "@inquirer/select": "4.4.0",
282121
- "@settlemint/sdk-hasura": "2.6.4-pr396848ad",
282122
- "@settlemint/sdk-js": "2.6.4-pr396848ad",
282123
- "@settlemint/sdk-utils": "2.6.4-pr396848ad",
282124
- "@settlemint/sdk-viem": "2.6.4-pr396848ad",
282241
+ "@settlemint/sdk-hasura": "2.6.4-pr5d528293",
282242
+ "@settlemint/sdk-js": "2.6.4-pr5d528293",
282243
+ "@settlemint/sdk-utils": "2.6.4-pr5d528293",
282244
+ "@settlemint/sdk-viem": "2.6.4-pr5d528293",
282125
282245
  "@types/node": "24.10.0",
282126
282246
  "@types/semver": "7.7.1",
282127
282247
  "@types/which": "3.0.4",
@@ -282138,7 +282258,7 @@ var package_default = {
282138
282258
  },
282139
282259
  peerDependencies: {
282140
282260
  hardhat: "<= 4",
282141
- "@settlemint/sdk-js": "2.6.4-pr396848ad"
282261
+ "@settlemint/sdk-js": "2.6.4-pr5d528293"
282142
282262
  },
282143
282263
  peerDependenciesMeta: {
282144
282264
  hardhat: {
@@ -288035,26 +288155,802 @@ function sanitizeName(value5, length = 35) {
288035
288155
  }).slice(0, length).replaceAll(/(^\d*)/g, "").replaceAll(/(-$)/g, "").replaceAll(/(^-)/g, "");
288036
288156
  }
288037
288157
 
288038
- // ../../node_modules/.bun/@inquirer+input@4.2.5+c30ff3a63f0500d5/node_modules/@inquirer/input/dist/esm/index.js
288158
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/key.js
288159
+ var isBackspaceKey2 = (key) => key.name === "backspace";
288160
+ var isTabKey2 = (key) => key.name === "tab";
288161
+ var isEnterKey2 = (key) => key.name === "enter" || key.name === "return";
288162
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/errors.js
288163
+ class AbortPromptError2 extends Error {
288164
+ name = "AbortPromptError";
288165
+ message = "Prompt was aborted";
288166
+ constructor(options) {
288167
+ super();
288168
+ this.cause = options?.cause;
288169
+ }
288170
+ }
288171
+
288172
+ class CancelPromptError2 extends Error {
288173
+ name = "CancelPromptError";
288174
+ message = "Prompt was canceled";
288175
+ }
288176
+
288177
+ class ExitPromptError2 extends Error {
288178
+ name = "ExitPromptError";
288179
+ }
288180
+
288181
+ class HookError2 extends Error {
288182
+ name = "HookError";
288183
+ }
288184
+
288185
+ class ValidationError2 extends Error {
288186
+ name = "ValidationError";
288187
+ }
288188
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-state.js
288189
+ import { AsyncResource as AsyncResource5 } from "node:async_hooks";
288190
+
288191
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
288192
+ import { AsyncLocalStorage as AsyncLocalStorage2, AsyncResource as AsyncResource4 } from "node:async_hooks";
288193
+ var hookStorage2 = new AsyncLocalStorage2;
288194
+ function createStore2(rl) {
288195
+ const store = {
288196
+ rl,
288197
+ hooks: [],
288198
+ hooksCleanup: [],
288199
+ hooksEffect: [],
288200
+ index: 0,
288201
+ handleChange() {}
288202
+ };
288203
+ return store;
288204
+ }
288205
+ function withHooks2(rl, cb) {
288206
+ const store = createStore2(rl);
288207
+ return hookStorage2.run(store, () => {
288208
+ function cycle(render) {
288209
+ store.handleChange = () => {
288210
+ store.index = 0;
288211
+ render();
288212
+ };
288213
+ store.handleChange();
288214
+ }
288215
+ return cb(cycle);
288216
+ });
288217
+ }
288218
+ function getStore2() {
288219
+ const store = hookStorage2.getStore();
288220
+ if (!store) {
288221
+ throw new HookError2("[Inquirer] Hook functions can only be called from within a prompt");
288222
+ }
288223
+ return store;
288224
+ }
288225
+ function readline3() {
288226
+ return getStore2().rl;
288227
+ }
288228
+ function withUpdates2(fn) {
288229
+ const wrapped = (...args) => {
288230
+ const store = getStore2();
288231
+ let shouldUpdate = false;
288232
+ const oldHandleChange = store.handleChange;
288233
+ store.handleChange = () => {
288234
+ shouldUpdate = true;
288235
+ };
288236
+ const returnValue = fn(...args);
288237
+ if (shouldUpdate) {
288238
+ oldHandleChange();
288239
+ }
288240
+ store.handleChange = oldHandleChange;
288241
+ return returnValue;
288242
+ };
288243
+ return AsyncResource4.bind(wrapped);
288244
+ }
288245
+ function withPointer2(cb) {
288246
+ const store = getStore2();
288247
+ const { index } = store;
288248
+ const pointer = {
288249
+ get() {
288250
+ return store.hooks[index];
288251
+ },
288252
+ set(value5) {
288253
+ store.hooks[index] = value5;
288254
+ },
288255
+ initialized: index in store.hooks
288256
+ };
288257
+ const returnValue = cb(pointer);
288258
+ store.index++;
288259
+ return returnValue;
288260
+ }
288261
+ function handleChange2() {
288262
+ getStore2().handleChange();
288263
+ }
288264
+ var effectScheduler2 = {
288265
+ queue(cb) {
288266
+ const store = getStore2();
288267
+ const { index } = store;
288268
+ store.hooksEffect.push(() => {
288269
+ store.hooksCleanup[index]?.();
288270
+ const cleanFn = cb(readline3());
288271
+ if (cleanFn != null && typeof cleanFn !== "function") {
288272
+ throw new ValidationError2("useEffect return value must be a cleanup function or nothing.");
288273
+ }
288274
+ store.hooksCleanup[index] = cleanFn;
288275
+ });
288276
+ },
288277
+ run() {
288278
+ const store = getStore2();
288279
+ withUpdates2(() => {
288280
+ store.hooksEffect.forEach((effect) => {
288281
+ effect();
288282
+ });
288283
+ store.hooksEffect.length = 0;
288284
+ })();
288285
+ },
288286
+ clearAll() {
288287
+ const store = getStore2();
288288
+ store.hooksCleanup.forEach((cleanFn) => {
288289
+ cleanFn?.();
288290
+ });
288291
+ store.hooksEffect.length = 0;
288292
+ store.hooksCleanup.length = 0;
288293
+ }
288294
+ };
288295
+
288296
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-state.js
288297
+ function useState2(defaultValue) {
288298
+ return withPointer2((pointer) => {
288299
+ const setState = AsyncResource5.bind(function setState(newValue) {
288300
+ if (pointer.get() !== newValue) {
288301
+ pointer.set(newValue);
288302
+ handleChange2();
288303
+ }
288304
+ });
288305
+ if (pointer.initialized) {
288306
+ return [pointer.get(), setState];
288307
+ }
288308
+ const value5 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
288309
+ pointer.set(value5);
288310
+ return [value5, setState];
288311
+ });
288312
+ }
288313
+
288314
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
288315
+ function useEffect2(cb, depArray) {
288316
+ withPointer2((pointer) => {
288317
+ const oldDeps = pointer.get();
288318
+ const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i7) => !Object.is(dep, oldDeps[i7]));
288319
+ if (hasChanged) {
288320
+ effectScheduler2.queue(cb);
288321
+ }
288322
+ pointer.set(depArray);
288323
+ });
288324
+ }
288325
+
288326
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/theme.js
288327
+ var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
288328
+
288329
+ // ../../node_modules/.bun/@inquirer+figures@1.0.15/node_modules/@inquirer/figures/dist/esm/index.js
288330
+ import process8 from "node:process";
288331
+ function isUnicodeSupported3() {
288332
+ if (process8.platform !== "win32") {
288333
+ return process8.env["TERM"] !== "linux";
288334
+ }
288335
+ 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";
288336
+ }
288337
+ var common2 = {
288338
+ circleQuestionMark: "(?)",
288339
+ questionMarkPrefix: "(?)",
288340
+ square: "█",
288341
+ squareDarkShade: "▓",
288342
+ squareMediumShade: "▒",
288343
+ squareLightShade: "░",
288344
+ squareTop: "▀",
288345
+ squareBottom: "▄",
288346
+ squareLeft: "▌",
288347
+ squareRight: "▐",
288348
+ squareCenter: "■",
288349
+ bullet: "●",
288350
+ dot: "․",
288351
+ ellipsis: "…",
288352
+ pointerSmall: "›",
288353
+ triangleUp: "▲",
288354
+ triangleUpSmall: "▴",
288355
+ triangleDown: "▼",
288356
+ triangleDownSmall: "▾",
288357
+ triangleLeftSmall: "◂",
288358
+ triangleRightSmall: "▸",
288359
+ home: "⌂",
288360
+ heart: "♥",
288361
+ musicNote: "♪",
288362
+ musicNoteBeamed: "♫",
288363
+ arrowUp: "↑",
288364
+ arrowDown: "↓",
288365
+ arrowLeft: "←",
288366
+ arrowRight: "→",
288367
+ arrowLeftRight: "↔",
288368
+ arrowUpDown: "↕",
288369
+ almostEqual: "≈",
288370
+ notEqual: "≠",
288371
+ lessOrEqual: "≤",
288372
+ greaterOrEqual: "≥",
288373
+ identical: "≡",
288374
+ infinity: "∞",
288375
+ subscriptZero: "₀",
288376
+ subscriptOne: "₁",
288377
+ subscriptTwo: "₂",
288378
+ subscriptThree: "₃",
288379
+ subscriptFour: "₄",
288380
+ subscriptFive: "₅",
288381
+ subscriptSix: "₆",
288382
+ subscriptSeven: "₇",
288383
+ subscriptEight: "₈",
288384
+ subscriptNine: "₉",
288385
+ oneHalf: "½",
288386
+ oneThird: "⅓",
288387
+ oneQuarter: "¼",
288388
+ oneFifth: "⅕",
288389
+ oneSixth: "⅙",
288390
+ oneEighth: "⅛",
288391
+ twoThirds: "⅔",
288392
+ twoFifths: "⅖",
288393
+ threeQuarters: "¾",
288394
+ threeFifths: "⅗",
288395
+ threeEighths: "⅜",
288396
+ fourFifths: "⅘",
288397
+ fiveSixths: "⅚",
288398
+ fiveEighths: "⅝",
288399
+ sevenEighths: "⅞",
288400
+ line: "─",
288401
+ lineBold: "━",
288402
+ lineDouble: "═",
288403
+ lineDashed0: "┄",
288404
+ lineDashed1: "┅",
288405
+ lineDashed2: "┈",
288406
+ lineDashed3: "┉",
288407
+ lineDashed4: "╌",
288408
+ lineDashed5: "╍",
288409
+ lineDashed6: "╴",
288410
+ lineDashed7: "╶",
288411
+ lineDashed8: "╸",
288412
+ lineDashed9: "╺",
288413
+ lineDashed10: "╼",
288414
+ lineDashed11: "╾",
288415
+ lineDashed12: "−",
288416
+ lineDashed13: "–",
288417
+ lineDashed14: "‐",
288418
+ lineDashed15: "⁃",
288419
+ lineVertical: "│",
288420
+ lineVerticalBold: "┃",
288421
+ lineVerticalDouble: "║",
288422
+ lineVerticalDashed0: "┆",
288423
+ lineVerticalDashed1: "┇",
288424
+ lineVerticalDashed2: "┊",
288425
+ lineVerticalDashed3: "┋",
288426
+ lineVerticalDashed4: "╎",
288427
+ lineVerticalDashed5: "╏",
288428
+ lineVerticalDashed6: "╵",
288429
+ lineVerticalDashed7: "╷",
288430
+ lineVerticalDashed8: "╹",
288431
+ lineVerticalDashed9: "╻",
288432
+ lineVerticalDashed10: "╽",
288433
+ lineVerticalDashed11: "╿",
288434
+ lineDownLeft: "┐",
288435
+ lineDownLeftArc: "╮",
288436
+ lineDownBoldLeftBold: "┓",
288437
+ lineDownBoldLeft: "┒",
288438
+ lineDownLeftBold: "┑",
288439
+ lineDownDoubleLeftDouble: "╗",
288440
+ lineDownDoubleLeft: "╖",
288441
+ lineDownLeftDouble: "╕",
288442
+ lineDownRight: "┌",
288443
+ lineDownRightArc: "╭",
288444
+ lineDownBoldRightBold: "┏",
288445
+ lineDownBoldRight: "┎",
288446
+ lineDownRightBold: "┍",
288447
+ lineDownDoubleRightDouble: "╔",
288448
+ lineDownDoubleRight: "╓",
288449
+ lineDownRightDouble: "╒",
288450
+ lineUpLeft: "┘",
288451
+ lineUpLeftArc: "╯",
288452
+ lineUpBoldLeftBold: "┛",
288453
+ lineUpBoldLeft: "┚",
288454
+ lineUpLeftBold: "┙",
288455
+ lineUpDoubleLeftDouble: "╝",
288456
+ lineUpDoubleLeft: "╜",
288457
+ lineUpLeftDouble: "╛",
288458
+ lineUpRight: "└",
288459
+ lineUpRightArc: "╰",
288460
+ lineUpBoldRightBold: "┗",
288461
+ lineUpBoldRight: "┖",
288462
+ lineUpRightBold: "┕",
288463
+ lineUpDoubleRightDouble: "╚",
288464
+ lineUpDoubleRight: "╙",
288465
+ lineUpRightDouble: "╘",
288466
+ lineUpDownLeft: "┤",
288467
+ lineUpBoldDownBoldLeftBold: "┫",
288468
+ lineUpBoldDownBoldLeft: "┨",
288469
+ lineUpDownLeftBold: "┥",
288470
+ lineUpBoldDownLeftBold: "┩",
288471
+ lineUpDownBoldLeftBold: "┪",
288472
+ lineUpDownBoldLeft: "┧",
288473
+ lineUpBoldDownLeft: "┦",
288474
+ lineUpDoubleDownDoubleLeftDouble: "╣",
288475
+ lineUpDoubleDownDoubleLeft: "╢",
288476
+ lineUpDownLeftDouble: "╡",
288477
+ lineUpDownRight: "├",
288478
+ lineUpBoldDownBoldRightBold: "┣",
288479
+ lineUpBoldDownBoldRight: "┠",
288480
+ lineUpDownRightBold: "┝",
288481
+ lineUpBoldDownRightBold: "┡",
288482
+ lineUpDownBoldRightBold: "┢",
288483
+ lineUpDownBoldRight: "┟",
288484
+ lineUpBoldDownRight: "┞",
288485
+ lineUpDoubleDownDoubleRightDouble: "╠",
288486
+ lineUpDoubleDownDoubleRight: "╟",
288487
+ lineUpDownRightDouble: "╞",
288488
+ lineDownLeftRight: "┬",
288489
+ lineDownBoldLeftBoldRightBold: "┳",
288490
+ lineDownLeftBoldRightBold: "┯",
288491
+ lineDownBoldLeftRight: "┰",
288492
+ lineDownBoldLeftBoldRight: "┱",
288493
+ lineDownBoldLeftRightBold: "┲",
288494
+ lineDownLeftRightBold: "┮",
288495
+ lineDownLeftBoldRight: "┭",
288496
+ lineDownDoubleLeftDoubleRightDouble: "╦",
288497
+ lineDownDoubleLeftRight: "╥",
288498
+ lineDownLeftDoubleRightDouble: "╤",
288499
+ lineUpLeftRight: "┴",
288500
+ lineUpBoldLeftBoldRightBold: "┻",
288501
+ lineUpLeftBoldRightBold: "┷",
288502
+ lineUpBoldLeftRight: "┸",
288503
+ lineUpBoldLeftBoldRight: "┹",
288504
+ lineUpBoldLeftRightBold: "┺",
288505
+ lineUpLeftRightBold: "┶",
288506
+ lineUpLeftBoldRight: "┵",
288507
+ lineUpDoubleLeftDoubleRightDouble: "╩",
288508
+ lineUpDoubleLeftRight: "╨",
288509
+ lineUpLeftDoubleRightDouble: "╧",
288510
+ lineUpDownLeftRight: "┼",
288511
+ lineUpBoldDownBoldLeftBoldRightBold: "╋",
288512
+ lineUpDownBoldLeftBoldRightBold: "╈",
288513
+ lineUpBoldDownLeftBoldRightBold: "╇",
288514
+ lineUpBoldDownBoldLeftRightBold: "╊",
288515
+ lineUpBoldDownBoldLeftBoldRight: "╉",
288516
+ lineUpBoldDownLeftRight: "╀",
288517
+ lineUpDownBoldLeftRight: "╁",
288518
+ lineUpDownLeftBoldRight: "┽",
288519
+ lineUpDownLeftRightBold: "┾",
288520
+ lineUpBoldDownBoldLeftRight: "╂",
288521
+ lineUpDownLeftBoldRightBold: "┿",
288522
+ lineUpBoldDownLeftBoldRight: "╃",
288523
+ lineUpBoldDownLeftRightBold: "╄",
288524
+ lineUpDownBoldLeftBoldRight: "╅",
288525
+ lineUpDownBoldLeftRightBold: "╆",
288526
+ lineUpDoubleDownDoubleLeftDoubleRightDouble: "╬",
288527
+ lineUpDoubleDownDoubleLeftRight: "╫",
288528
+ lineUpDownLeftDoubleRightDouble: "╪",
288529
+ lineCross: "╳",
288530
+ lineBackslash: "╲",
288531
+ lineSlash: "╱"
288532
+ };
288533
+ var specialMainSymbols2 = {
288534
+ tick: "✔",
288535
+ info: "ℹ",
288536
+ warning: "⚠",
288537
+ cross: "✘",
288538
+ squareSmall: "◻",
288539
+ squareSmallFilled: "◼",
288540
+ circle: "◯",
288541
+ circleFilled: "◉",
288542
+ circleDotted: "◌",
288543
+ circleDouble: "◎",
288544
+ circleCircle: "ⓞ",
288545
+ circleCross: "ⓧ",
288546
+ circlePipe: "Ⓘ",
288547
+ radioOn: "◉",
288548
+ radioOff: "◯",
288549
+ checkboxOn: "☒",
288550
+ checkboxOff: "☐",
288551
+ checkboxCircleOn: "ⓧ",
288552
+ checkboxCircleOff: "Ⓘ",
288553
+ pointer: "❯",
288554
+ triangleUpOutline: "△",
288555
+ triangleLeft: "◀",
288556
+ triangleRight: "▶",
288557
+ lozenge: "◆",
288558
+ lozengeOutline: "◇",
288559
+ hamburger: "☰",
288560
+ smiley: "㋡",
288561
+ mustache: "෴",
288562
+ star: "★",
288563
+ play: "▶",
288564
+ nodejs: "⬢",
288565
+ oneSeventh: "⅐",
288566
+ oneNinth: "⅑",
288567
+ oneTenth: "⅒"
288568
+ };
288569
+ var specialFallbackSymbols2 = {
288570
+ tick: "√",
288571
+ info: "i",
288572
+ warning: "‼",
288573
+ cross: "×",
288574
+ squareSmall: "□",
288575
+ squareSmallFilled: "■",
288576
+ circle: "( )",
288577
+ circleFilled: "(*)",
288578
+ circleDotted: "( )",
288579
+ circleDouble: "( )",
288580
+ circleCircle: "(○)",
288581
+ circleCross: "(×)",
288582
+ circlePipe: "(│)",
288583
+ radioOn: "(*)",
288584
+ radioOff: "( )",
288585
+ checkboxOn: "[×]",
288586
+ checkboxOff: "[ ]",
288587
+ checkboxCircleOn: "(×)",
288588
+ checkboxCircleOff: "( )",
288589
+ pointer: ">",
288590
+ triangleUpOutline: "∆",
288591
+ triangleLeft: "◄",
288592
+ triangleRight: "►",
288593
+ lozenge: "♦",
288594
+ lozengeOutline: "◊",
288595
+ hamburger: "≡",
288596
+ smiley: "☺",
288597
+ mustache: "┌─┐",
288598
+ star: "✶",
288599
+ play: "►",
288600
+ nodejs: "♦",
288601
+ oneSeventh: "1/7",
288602
+ oneNinth: "1/9",
288603
+ oneTenth: "1/10"
288604
+ };
288605
+ var mainSymbols2 = {
288606
+ ...common2,
288607
+ ...specialMainSymbols2
288608
+ };
288609
+ var fallbackSymbols2 = {
288610
+ ...common2,
288611
+ ...specialFallbackSymbols2
288612
+ };
288613
+ var shouldUseMain2 = isUnicodeSupported3();
288614
+ var figures2 = shouldUseMain2 ? mainSymbols2 : fallbackSymbols2;
288615
+ var esm_default2 = figures2;
288616
+ var replacements2 = Object.entries(specialMainSymbols2);
288617
+
288618
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/theme.js
288619
+ var defaultTheme2 = {
288620
+ prefix: {
288621
+ idle: import_yoctocolors_cjs3.default.blue("?"),
288622
+ done: import_yoctocolors_cjs3.default.green(esm_default2.tick)
288623
+ },
288624
+ spinner: {
288625
+ interval: 80,
288626
+ frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs3.default.yellow(frame))
288627
+ },
288628
+ style: {
288629
+ answer: import_yoctocolors_cjs3.default.cyan,
288630
+ message: import_yoctocolors_cjs3.default.bold,
288631
+ error: (text2) => import_yoctocolors_cjs3.default.red(`> ${text2}`),
288632
+ defaultAnswer: (text2) => import_yoctocolors_cjs3.default.dim(`(${text2})`),
288633
+ help: import_yoctocolors_cjs3.default.dim,
288634
+ highlight: import_yoctocolors_cjs3.default.cyan,
288635
+ key: (text2) => import_yoctocolors_cjs3.default.cyan(import_yoctocolors_cjs3.default.bold(`<${text2}>`))
288636
+ }
288637
+ };
288638
+
288639
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
288640
+ function isPlainObject4(value5) {
288641
+ if (typeof value5 !== "object" || value5 === null)
288642
+ return false;
288643
+ let proto = value5;
288644
+ while (Object.getPrototypeOf(proto) !== null) {
288645
+ proto = Object.getPrototypeOf(proto);
288646
+ }
288647
+ return Object.getPrototypeOf(value5) === proto;
288648
+ }
288649
+ function deepMerge3(...objects) {
288650
+ const output = {};
288651
+ for (const obj of objects) {
288652
+ for (const [key, value5] of Object.entries(obj)) {
288653
+ const prevValue = output[key];
288654
+ output[key] = isPlainObject4(prevValue) && isPlainObject4(value5) ? deepMerge3(prevValue, value5) : value5;
288655
+ }
288656
+ }
288657
+ return output;
288658
+ }
288659
+ function makeTheme2(...themes) {
288660
+ const themesToMerge = [
288661
+ defaultTheme2,
288662
+ ...themes.filter((theme) => theme != null)
288663
+ ];
288664
+ return deepMerge3(...themesToMerge);
288665
+ }
288666
+
288667
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
288668
+ function usePrefix2({ status = "idle", theme }) {
288669
+ const [showLoader, setShowLoader] = useState2(false);
288670
+ const [tick, setTick] = useState2(0);
288671
+ const { prefix, spinner: spinner2 } = makeTheme2(theme);
288672
+ useEffect2(() => {
288673
+ if (status === "loading") {
288674
+ let tickInterval;
288675
+ let inc = -1;
288676
+ const delayTimeout = setTimeout(() => {
288677
+ setShowLoader(true);
288678
+ tickInterval = setInterval(() => {
288679
+ inc = inc + 1;
288680
+ setTick(inc % spinner2.frames.length);
288681
+ }, spinner2.interval);
288682
+ }, 300);
288683
+ return () => {
288684
+ clearTimeout(delayTimeout);
288685
+ clearInterval(tickInterval);
288686
+ };
288687
+ } else {
288688
+ setShowLoader(false);
288689
+ }
288690
+ }, [status]);
288691
+ if (showLoader) {
288692
+ return spinner2.frames[tick];
288693
+ }
288694
+ const iconName = status === "loading" ? "idle" : status;
288695
+ return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
288696
+ }
288697
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
288698
+ function useRef2(val) {
288699
+ return useState2({ current: val })[0];
288700
+ }
288701
+
288702
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
288703
+ function useKeypress2(userHandler) {
288704
+ const signal = useRef2(userHandler);
288705
+ signal.current = userHandler;
288706
+ useEffect2((rl) => {
288707
+ let ignore = false;
288708
+ const handler = withUpdates2((_input, event) => {
288709
+ if (ignore)
288710
+ return;
288711
+ signal.current(event, rl);
288712
+ });
288713
+ rl.input.on("keypress", handler);
288714
+ return () => {
288715
+ ignore = true;
288716
+ rl.input.removeListener("keypress", handler);
288717
+ };
288718
+ }, []);
288719
+ }
288720
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/utils.js
288721
+ var import_cli_width2 = __toESM(require_cli_width(), 1);
288722
+ var import_wrap_ansi2 = __toESM(require_wrap_ansi(), 1);
288723
+ function breakLines2(content, width) {
288724
+ return content.split(`
288725
+ `).flatMap((line) => import_wrap_ansi2.default(line, width, { trim: false, hard: true }).split(`
288726
+ `).map((str) => str.trimEnd())).join(`
288727
+ `);
288728
+ }
288729
+ function readlineWidth2() {
288730
+ return import_cli_width2.default({ defaultWidth: 80, output: readline3().output });
288731
+ }
288732
+
288733
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
288734
+ var import_mute_stream2 = __toESM(require_lib13(), 1);
288735
+ import * as readline4 from "node:readline";
288736
+ import { AsyncResource as AsyncResource6 } from "node:async_hooks";
288737
+
288738
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
288739
+ import { stripVTControlCharacters as stripVTControlCharacters3 } from "node:util";
288740
+
288741
+ // ../../node_modules/.bun/@inquirer+ansi@1.0.2/node_modules/@inquirer/ansi/dist/esm/index.js
288742
+ var ESC2 = "\x1B[";
288743
+ var cursorLeft2 = ESC2 + "G";
288744
+ var cursorHide2 = ESC2 + "?25l";
288745
+ var cursorShow2 = ESC2 + "?25h";
288746
+ var cursorUp2 = (rows = 1) => rows > 0 ? `${ESC2}${rows}A` : "";
288747
+ var cursorDown2 = (rows = 1) => rows > 0 ? `${ESC2}${rows}B` : "";
288748
+ var cursorTo2 = (x6, y4) => {
288749
+ if (typeof y4 === "number" && !Number.isNaN(y4)) {
288750
+ return `${ESC2}${y4 + 1};${x6 + 1}H`;
288751
+ }
288752
+ return `${ESC2}${x6 + 1}G`;
288753
+ };
288754
+ var eraseLine2 = ESC2 + "2K";
288755
+ var eraseLines2 = (lines) => lines > 0 ? (eraseLine2 + cursorUp2(1)).repeat(lines - 1) + eraseLine2 + cursorLeft2 : "";
288756
+
288757
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
288758
+ var height2 = (content) => content.split(`
288759
+ `).length;
288760
+ var lastLine2 = (content) => content.split(`
288761
+ `).pop() ?? "";
288762
+
288763
+ class ScreenManager2 {
288764
+ height = 0;
288765
+ extraLinesUnderPrompt = 0;
288766
+ cursorPos;
288767
+ rl;
288768
+ constructor(rl) {
288769
+ this.rl = rl;
288770
+ this.cursorPos = rl.getCursorPos();
288771
+ }
288772
+ write(content) {
288773
+ this.rl.output.unmute();
288774
+ this.rl.output.write(content);
288775
+ this.rl.output.mute();
288776
+ }
288777
+ render(content, bottomContent = "") {
288778
+ const promptLine = lastLine2(content);
288779
+ const rawPromptLine = stripVTControlCharacters3(promptLine);
288780
+ let prompt = rawPromptLine;
288781
+ if (this.rl.line.length > 0) {
288782
+ prompt = prompt.slice(0, -this.rl.line.length);
288783
+ }
288784
+ this.rl.setPrompt(prompt);
288785
+ this.cursorPos = this.rl.getCursorPos();
288786
+ const width = readlineWidth2();
288787
+ content = breakLines2(content, width);
288788
+ bottomContent = breakLines2(bottomContent, width);
288789
+ if (rawPromptLine.length % width === 0) {
288790
+ content += `
288791
+ `;
288792
+ }
288793
+ let output = content + (bottomContent ? `
288794
+ ` + bottomContent : "");
288795
+ const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
288796
+ const bottomContentHeight = promptLineUpDiff + (bottomContent ? height2(bottomContent) : 0);
288797
+ if (bottomContentHeight > 0)
288798
+ output += cursorUp2(bottomContentHeight);
288799
+ output += cursorTo2(this.cursorPos.cols);
288800
+ this.write(cursorDown2(this.extraLinesUnderPrompt) + eraseLines2(this.height) + output);
288801
+ this.extraLinesUnderPrompt = bottomContentHeight;
288802
+ this.height = height2(output);
288803
+ }
288804
+ checkCursorPos() {
288805
+ const cursorPos = this.rl.getCursorPos();
288806
+ if (cursorPos.cols !== this.cursorPos.cols) {
288807
+ this.write(cursorTo2(cursorPos.cols));
288808
+ this.cursorPos = cursorPos;
288809
+ }
288810
+ }
288811
+ done({ clearContent }) {
288812
+ this.rl.setPrompt("");
288813
+ let output = cursorDown2(this.extraLinesUnderPrompt);
288814
+ output += clearContent ? eraseLines2(this.height) : `
288815
+ `;
288816
+ output += cursorShow2;
288817
+ this.write(output);
288818
+ this.rl.close();
288819
+ }
288820
+ }
288821
+
288822
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
288823
+ class PromisePolyfill2 extends Promise {
288824
+ static withResolver() {
288825
+ let resolve6;
288826
+ let reject;
288827
+ const promise2 = new Promise((res, rej) => {
288828
+ resolve6 = res;
288829
+ reject = rej;
288830
+ });
288831
+ return { promise: promise2, resolve: resolve6, reject };
288832
+ }
288833
+ }
288834
+
288835
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
288836
+ function getCallSites2() {
288837
+ const _prepareStackTrace = Error.prepareStackTrace;
288838
+ let result = [];
288839
+ try {
288840
+ Error.prepareStackTrace = (_5, callSites) => {
288841
+ const callSitesWithoutCurrent = callSites.slice(1);
288842
+ result = callSitesWithoutCurrent;
288843
+ return callSitesWithoutCurrent;
288844
+ };
288845
+ new Error().stack;
288846
+ } catch {
288847
+ return result;
288848
+ }
288849
+ Error.prepareStackTrace = _prepareStackTrace;
288850
+ return result;
288851
+ }
288852
+ function createPrompt2(view) {
288853
+ const callSites = getCallSites2();
288854
+ const prompt = (config3, context = {}) => {
288855
+ const { input = process.stdin, signal } = context;
288856
+ const cleanups = new Set;
288857
+ const output = new import_mute_stream2.default;
288858
+ output.pipe(context.output ?? process.stdout);
288859
+ const rl = readline4.createInterface({
288860
+ terminal: true,
288861
+ input,
288862
+ output
288863
+ });
288864
+ const screen = new ScreenManager2(rl);
288865
+ const { promise: promise2, resolve: resolve6, reject } = PromisePolyfill2.withResolver();
288866
+ const cancel3 = () => reject(new CancelPromptError2);
288867
+ if (signal) {
288868
+ const abort = () => reject(new AbortPromptError2({ cause: signal.reason }));
288869
+ if (signal.aborted) {
288870
+ abort();
288871
+ return Object.assign(promise2, { cancel: cancel3 });
288872
+ }
288873
+ signal.addEventListener("abort", abort);
288874
+ cleanups.add(() => signal.removeEventListener("abort", abort));
288875
+ }
288876
+ cleanups.add(onExit((code2, signal2) => {
288877
+ reject(new ExitPromptError2(`User force closed the prompt with ${code2} ${signal2}`));
288878
+ }));
288879
+ const sigint = () => reject(new ExitPromptError2(`User force closed the prompt with SIGINT`));
288880
+ rl.on("SIGINT", sigint);
288881
+ cleanups.add(() => rl.removeListener("SIGINT", sigint));
288882
+ const checkCursorPos = () => screen.checkCursorPos();
288883
+ rl.input.on("keypress", checkCursorPos);
288884
+ cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
288885
+ return withHooks2(rl, (cycle) => {
288886
+ const hooksCleanup = AsyncResource6.bind(() => effectScheduler2.clearAll());
288887
+ rl.on("close", hooksCleanup);
288888
+ cleanups.add(() => rl.removeListener("close", hooksCleanup));
288889
+ cycle(() => {
288890
+ try {
288891
+ const nextView = view(config3, (value5) => {
288892
+ setImmediate(() => resolve6(value5));
288893
+ });
288894
+ if (nextView === undefined) {
288895
+ const callerFilename = callSites[1]?.getFileName();
288896
+ throw new Error(`Prompt functions must return a string.
288897
+ at ${callerFilename}`);
288898
+ }
288899
+ const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
288900
+ screen.render(content, bottomContent);
288901
+ effectScheduler2.run();
288902
+ } catch (error51) {
288903
+ reject(error51);
288904
+ }
288905
+ });
288906
+ return Object.assign(promise2.then((answer) => {
288907
+ effectScheduler2.clearAll();
288908
+ return answer;
288909
+ }, (error51) => {
288910
+ effectScheduler2.clearAll();
288911
+ throw error51;
288912
+ }).finally(() => {
288913
+ cleanups.forEach((cleanup) => cleanup());
288914
+ screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
288915
+ output.end();
288916
+ }).then(() => promise2), { cancel: cancel3 });
288917
+ });
288918
+ };
288919
+ return prompt;
288920
+ }
288921
+ // ../../node_modules/.bun/@inquirer+input@4.3.0+c30ff3a63f0500d5/node_modules/@inquirer/input/dist/esm/index.js
288039
288922
  var inputTheme = {
288040
288923
  validationFailureMode: "keep"
288041
288924
  };
288042
- var esm_default2 = createPrompt((config3, done) => {
288043
- const { required: required2, validate: validate3 = () => true, prefill = "tab" } = config3;
288044
- const theme = makeTheme(inputTheme, config3.theme);
288045
- const [status, setStatus] = useState("idle");
288046
- const [defaultValue = "", setDefaultValue] = useState(config3.default);
288047
- const [errorMsg, setError] = useState();
288048
- const [value5, setValue] = useState("");
288049
- const prefix = usePrefix({ status, theme });
288050
- useKeypress(async (key, rl) => {
288925
+ var esm_default3 = createPrompt2((config3, done) => {
288926
+ const { prefill = "tab" } = config3;
288927
+ const theme = makeTheme2(inputTheme, config3.theme);
288928
+ const [status, setStatus] = useState2("idle");
288929
+ const [defaultValue = "", setDefaultValue] = useState2(config3.default);
288930
+ const [errorMsg, setError] = useState2();
288931
+ const [value5, setValue] = useState2("");
288932
+ const prefix = usePrefix2({ status, theme });
288933
+ async function validate3(value6) {
288934
+ const { required: required2, pattern, patternError = "Invalid input" } = config3;
288935
+ if (required2 && !value6) {
288936
+ return "You must provide a value";
288937
+ }
288938
+ if (pattern && !pattern.test(value6)) {
288939
+ return patternError;
288940
+ }
288941
+ if (typeof config3.validate === "function") {
288942
+ return await config3.validate(value6) || "You must provide a valid value";
288943
+ }
288944
+ return true;
288945
+ }
288946
+ useKeypress2(async (key, rl) => {
288051
288947
  if (status !== "idle") {
288052
288948
  return;
288053
288949
  }
288054
- if (isEnterKey(key)) {
288950
+ if (isEnterKey2(key)) {
288055
288951
  const answer = value5 || defaultValue;
288056
288952
  setStatus("loading");
288057
- const isValid = required2 && !answer ? "You must provide a value" : await validate3(answer);
288953
+ const isValid = await validate3(answer);
288058
288954
  if (isValid === true) {
288059
288955
  setValue(answer);
288060
288956
  setStatus("done");
@@ -288065,12 +288961,12 @@ var esm_default2 = createPrompt((config3, done) => {
288065
288961
  } else {
288066
288962
  rl.write(value5);
288067
288963
  }
288068
- setError(isValid || "You must provide a valid value");
288964
+ setError(isValid);
288069
288965
  setStatus("idle");
288070
288966
  }
288071
- } else if (isBackspaceKey(key) && !value5) {
288967
+ } else if (isBackspaceKey2(key) && !value5) {
288072
288968
  setDefaultValue(undefined);
288073
- } else if (isTabKey(key) && !value5) {
288969
+ } else if (isTabKey2(key) && !value5) {
288074
288970
  setDefaultValue(undefined);
288075
288971
  rl.clearLine(0);
288076
288972
  rl.write(defaultValue);
@@ -288080,7 +288976,7 @@ var esm_default2 = createPrompt((config3, done) => {
288080
288976
  setError(undefined);
288081
288977
  }
288082
288978
  });
288083
- useEffect((rl) => {
288979
+ useEffect2((rl) => {
288084
288980
  if (prefill === "editable" && defaultValue) {
288085
288981
  rl.write(defaultValue);
288086
288982
  setValue(defaultValue);
@@ -288117,7 +289013,7 @@ async function subgraphNamePrompt({
288117
289013
  if (accept) {
288118
289014
  return defaultSubgraphName ?? env2.SETTLEMINT_THEGRAPH_DEFAULT_SUBGRAPH;
288119
289015
  }
288120
- const subgraphName = await esm_default2({
289016
+ const subgraphName = await esm_default3({
288121
289017
  message: "What is the name of your subgraph?",
288122
289018
  default: defaultSubgraphName,
288123
289019
  required: true
@@ -288126,13 +289022,13 @@ async function subgraphNamePrompt({
288126
289022
  }
288127
289023
 
288128
289024
  // ../../node_modules/.bun/@inquirer+select@4.4.0+c30ff3a63f0500d5/node_modules/@inquirer/select/dist/esm/index.js
288129
- var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
289025
+ var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
288130
289026
  var selectTheme = {
288131
289027
  icon: { cursor: esm_default.pointer },
288132
289028
  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(" • "))
289029
+ disabled: (text2) => import_yoctocolors_cjs4.default.dim(`- ${text2}`),
289030
+ description: (text2) => import_yoctocolors_cjs4.default.cyan(text2),
289031
+ 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
289032
  },
288137
289033
  helpMode: "always",
288138
289034
  indexMode: "hidden",
@@ -288166,7 +289062,7 @@ function normalizeChoices(choices) {
288166
289062
  return normalizedChoice;
288167
289063
  });
288168
289064
  }
288169
- var esm_default3 = createPrompt((config3, done) => {
289065
+ var esm_default4 = createPrompt((config3, done) => {
288170
289066
  const { loop = true, pageSize = 7 } = config3;
288171
289067
  const theme = makeTheme(selectTheme, config3.theme);
288172
289068
  const { keybindings } = theme;
@@ -288341,7 +289237,7 @@ async function subgraphPrompt({
288341
289237
  } else {
288342
289238
  defaultChoice = env2.SETTLEMINT_THEGRAPH_DEFAULT_SUBGRAPH ?? subgraphNames[0];
288343
289239
  }
288344
- const subgraphName = choices.length === 1 && choices[0] === NEW ? NEW : await esm_default3({
289240
+ const subgraphName = choices.length === 1 && choices[0] === NEW ? NEW : await esm_default4({
288345
289241
  message,
288346
289242
  choices: choices.map((name4) => ({
288347
289243
  name: name4,
@@ -313816,7 +314712,7 @@ function getBooleanValue(value5, defaultValue) {
313816
314712
  function boolToString(value5) {
313817
314713
  return value5 ? "Yes" : "No";
313818
314714
  }
313819
- var esm_default4 = createPrompt((config3, done) => {
314715
+ var esm_default5 = createPrompt((config3, done) => {
313820
314716
  const { transformer = boolToString } = config3;
313821
314717
  const [status, setStatus] = useState("idle");
313822
314718
  const [value5, setValue] = useState("");
@@ -313851,7 +314747,7 @@ var esm_default4 = createPrompt((config3, done) => {
313851
314747
  });
313852
314748
 
313853
314749
  // ../../node_modules/.bun/@inquirer+password@4.0.21+c30ff3a63f0500d5/node_modules/@inquirer/password/dist/esm/index.js
313854
- var esm_default5 = createPrompt((config3, done) => {
314750
+ var esm_default6 = createPrompt((config3, done) => {
313855
314751
  const { validate: validate8 = () => true } = config3;
313856
314752
  const theme = makeTheme(config3.theme);
313857
314753
  const [status, setStatus] = useState("idle");
@@ -313909,7 +314805,7 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
313909
314805
  return defaultAccessToken;
313910
314806
  }
313911
314807
  if (defaultAccessToken) {
313912
- const keep = await esm_default4({
314808
+ const keep = await esm_default5({
313913
314809
  message: "Do you want to use the existing application access token?",
313914
314810
  default: true
313915
314811
  });
@@ -313917,12 +314813,12 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
313917
314813
  return defaultAccessToken;
313918
314814
  }
313919
314815
  }
313920
- const create3 = await esm_default4({
314816
+ const create3 = await esm_default5({
313921
314817
  message: "Do you want to create a new application access token?",
313922
314818
  default: false
313923
314819
  });
313924
314820
  if (create3) {
313925
- const name4 = await esm_default2({
314821
+ const name4 = await esm_default3({
313926
314822
  message: "How would you like to name this application access token?",
313927
314823
  default: `SettleMint CLI (${Date.now()}${process.env.USER ? ` ${process.env.USER}` : ""})`,
313928
314824
  required: true,
@@ -313985,7 +314881,7 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
313985
314881
  return aat;
313986
314882
  } catch (_error) {}
313987
314883
  }
313988
- return esm_default5({
314884
+ return esm_default6({
313989
314885
  message: "What is the application access token for your application in SettleMint? (format: sm_aat_...)",
313990
314886
  validate(value5) {
313991
314887
  try {
@@ -314017,7 +314913,7 @@ async function applicationPrompt(env2, applications, accept) {
314017
314913
  if (is_in_ci_default) {
314018
314914
  nothingSelectedError("application");
314019
314915
  }
314020
- const application = await esm_default3({
314916
+ const application = await esm_default4({
314021
314917
  message: "Which application do you want to connect to?",
314022
314918
  choices: applications.map((applications2) => ({
314023
314919
  name: `${applications2.name} (${applications2.uniqueName})`,
@@ -314130,7 +315026,7 @@ async function blockchainNodePrompt({
314130
315026
  }
314131
315027
  return item;
314132
315028
  }) : choices;
314133
- return esm_default3({
315029
+ return esm_default4({
314134
315030
  message: promptMessage ?? "Which blockchain node do you want to connect to?",
314135
315031
  choices: filteredChoices,
314136
315032
  default: defaultNode
@@ -314160,7 +315056,7 @@ async function blockchainNodeOrLoadBalancerPrompt({
314160
315056
  isRequired,
314161
315057
  defaultHandler: async ({ defaultService: defaultNode, choices }) => {
314162
315058
  const filteredChoices = filterRunningOnly ? choices.filter(({ value: node }) => isRunning(node)) : choices;
314163
- return esm_default3({
315059
+ return esm_default4({
314164
315060
  message: promptMessage ?? "Which blockchain node or load balancer do you want to connect to?",
314165
315061
  choices: filteredChoices,
314166
315062
  default: defaultNode
@@ -314185,7 +315081,7 @@ async function blockscoutPrompt({
314185
315081
  envKey: "SETTLEMINT_BLOCKSCOUT",
314186
315082
  isRequired,
314187
315083
  defaultHandler: async ({ defaultService: defaultBlockscout, choices }) => {
314188
- return esm_default3({
315084
+ return esm_default4({
314189
315085
  message: "Which blockscout instance do you want to connect to?",
314190
315086
  choices,
314191
315087
  default: defaultBlockscout
@@ -314208,7 +315104,7 @@ async function customDeploymentPrompt({
314208
315104
  envKey: "SETTLEMINT_CUSTOM_DEPLOYMENT",
314209
315105
  isRequired,
314210
315106
  defaultHandler: async ({ defaultService: defaultCustomDeployment, choices }) => {
314211
- return esm_default3({
315107
+ return esm_default4({
314212
315108
  message: "Which Custom Deployment do you want to connect to?",
314213
315109
  choices,
314214
315110
  default: defaultCustomDeployment
@@ -314235,7 +315131,7 @@ async function hasuraPrompt({
314235
315131
  envKey: "SETTLEMINT_HASURA",
314236
315132
  isRequired,
314237
315133
  defaultHandler: async ({ defaultService: defaultHasura, choices }) => {
314238
- return esm_default3({
315134
+ return esm_default4({
314239
315135
  message: "Which Hasura instance do you want to connect to?",
314240
315136
  choices,
314241
315137
  default: defaultHasura
@@ -314259,7 +315155,7 @@ async function hdPrivateKeyPrompt({
314259
315155
  envKey: "SETTLEMINT_HD_PRIVATE_KEY",
314260
315156
  isRequired,
314261
315157
  defaultHandler: async ({ defaultService: defaultPrivateKey, choices }) => {
314262
- return esm_default3({
315158
+ return esm_default4({
314263
315159
  message: "Which HD Private Key do you want to use?",
314264
315160
  choices,
314265
315161
  default: defaultPrivateKey
@@ -314283,7 +315179,7 @@ async function ipfsPrompt({
314283
315179
  envKey: "SETTLEMINT_IPFS",
314284
315180
  isRequired,
314285
315181
  defaultHandler: async ({ defaultService: defaultStorage, choices }) => {
314286
- return esm_default3({
315182
+ return esm_default4({
314287
315183
  message: "Which IPFS instance do you want to connect to?",
314288
315184
  choices,
314289
315185
  default: defaultStorage
@@ -314307,7 +315203,7 @@ async function minioPrompt({
314307
315203
  envKey: "SETTLEMINT_MINIO",
314308
315204
  isRequired,
314309
315205
  defaultHandler: async ({ defaultService: defaultStorage, choices }) => {
314310
- return esm_default3({
315206
+ return esm_default4({
314311
315207
  message: "Which MinIO instance do you want to connect to?",
314312
315208
  choices,
314313
315209
  default: defaultStorage
@@ -314331,7 +315227,7 @@ async function portalPrompt({
314331
315227
  envKey: "SETTLEMINT_PORTAL",
314332
315228
  isRequired,
314333
315229
  defaultHandler: async ({ defaultService: defaultMiddleware, choices }) => {
314334
- return esm_default3({
315230
+ return esm_default4({
314335
315231
  message: "Which Smart Contract Portal instance do you want to connect to?",
314336
315232
  choices,
314337
315233
  default: defaultMiddleware
@@ -314360,7 +315256,7 @@ async function theGraphPrompt({
314360
315256
  isRequired,
314361
315257
  defaultHandler: async ({ defaultService: defaultMiddleware, choices }) => {
314362
315258
  const filteredChoices = filterRunningOnly ? choices.filter(({ value: middleware }) => isRunning(middleware)) : choices;
314363
- return esm_default3({
315259
+ return esm_default4({
314364
315260
  message: "Which The Graph instance do you want to connect to?",
314365
315261
  choices: filteredChoices,
314366
315262
  default: defaultMiddleware
@@ -314388,7 +315284,7 @@ async function instancePrompt({
314388
315284
  return sanitizeInstanceUrl(defaultPromptInstance);
314389
315285
  }
314390
315286
  if (freeTextInput) {
314391
- const instance = await esm_default2({
315287
+ const instance = await esm_default3({
314392
315288
  message: "What is the URL of your SettleMint instance?",
314393
315289
  default: defaultPromptInstance,
314394
315290
  required: true,
@@ -314407,7 +315303,7 @@ async function instancePrompt({
314407
315303
  if (knownInstances.length === 0) {
314408
315304
  note("No instances found. Run `settlemint login` to configure an instance.", "warn");
314409
315305
  }
314410
- return esm_default3({
315306
+ return esm_default4({
314411
315307
  message: "What instance do you want to connect to?",
314412
315308
  choices: [
314413
315309
  ...knownInstances.map((instance) => ({
@@ -314443,7 +315339,7 @@ async function serviceSecretPrompt({
314443
315339
  return defaultSecret;
314444
315340
  }
314445
315341
  if (defaultSecret) {
314446
- const keep = await esm_default4({
315342
+ const keep = await esm_default5({
314447
315343
  message: `Do you want to use the existing ${name4} secret?`,
314448
315344
  default: true
314449
315345
  });
@@ -314451,7 +315347,7 @@ async function serviceSecretPrompt({
314451
315347
  return defaultSecret;
314452
315348
  }
314453
315349
  }
314454
- const serviceSecret = await esm_default5({
315350
+ const serviceSecret = await esm_default6({
314455
315351
  message
314456
315352
  });
314457
315353
  return serviceSecret || undefined;
@@ -314472,7 +315368,7 @@ async function serviceUrlPrompt({
314472
315368
  if (isCi) {
314473
315369
  return defaultUrl ? new URL(defaultUrl).toString() : undefined;
314474
315370
  }
314475
- const serviceUrl = await esm_default2({
315371
+ const serviceUrl = await esm_default3({
314476
315372
  message: example ? `${message} (eg ${example})` : message,
314477
315373
  default: defaultUrl,
314478
315374
  required: true,
@@ -314503,7 +315399,7 @@ async function workspacePrompt(env2, workspaces, accept) {
314503
315399
  if (is_in_ci_default) {
314504
315400
  nothingSelectedError("workspace");
314505
315401
  }
314506
- const workspace = await esm_default3({
315402
+ const workspace = await esm_default4({
314507
315403
  message: "Which workspace do you want to connect to?",
314508
315404
  choices: workspaces.map((workspace2) => ({
314509
315405
  name: `${workspace2.name} (${workspace2.uniqueName})`,
@@ -314907,7 +315803,7 @@ async function serviceValuePrompt({
314907
315803
  if (isCi) {
314908
315804
  return defaultValue;
314909
315805
  }
314910
- const serviceSecret = await esm_default2({
315806
+ const serviceSecret = await esm_default3({
314911
315807
  message: example ? `${message} (eg ${example})` : message,
314912
315808
  default: defaultValue
314913
315809
  });
@@ -315345,7 +316241,7 @@ async function templatePrompt(platformConfig, argument) {
315345
316241
  }
315346
316242
  return template2;
315347
316243
  }
315348
- const template = await esm_default3({
316244
+ const template = await esm_default4({
315349
316245
  message: "Which template do you want to use?",
315350
316246
  choices: [
315351
316247
  ...kits.map((template2) => ({
@@ -315363,7 +316259,7 @@ async function projectNamePrompt(env2, argument) {
315363
316259
  if (defaultInstance) {
315364
316260
  return defaultInstance;
315365
316261
  }
315366
- return esm_default2({
316262
+ return esm_default3({
315367
316263
  message: "What is the name of your new SettleMint project?",
315368
316264
  default: defaultInstance,
315369
316265
  required: true,
@@ -315565,7 +316461,7 @@ var basename2 = function(p5, extension) {
315565
316461
  return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
315566
316462
  };
315567
316463
  // ../../node_modules/.bun/defu@6.1.4/node_modules/defu/dist/defu.mjs
315568
- function isPlainObject4(value5) {
316464
+ function isPlainObject5(value5) {
315569
316465
  if (value5 === null || typeof value5 !== "object") {
315570
316466
  return false;
315571
316467
  }
@@ -315582,7 +316478,7 @@ function isPlainObject4(value5) {
315582
316478
  return true;
315583
316479
  }
315584
316480
  function _defu(baseObject, defaults2, namespace = ".", merger) {
315585
- if (!isPlainObject4(defaults2)) {
316481
+ if (!isPlainObject5(defaults2)) {
315586
316482
  return _defu(baseObject, {}, namespace, merger);
315587
316483
  }
315588
316484
  const object2 = Object.assign({}, defaults2);
@@ -315599,7 +316495,7 @@ function _defu(baseObject, defaults2, namespace = ".", merger) {
315599
316495
  }
315600
316496
  if (Array.isArray(value5) && Array.isArray(object2[key])) {
315601
316497
  object2[key] = [...value5, ...object2[key]];
315602
- } else if (isPlainObject4(value5) && isPlainObject4(object2[key])) {
316498
+ } else if (isPlainObject5(value5) && isPlainObject5(object2[key])) {
315603
316499
  object2[key] = _defu(value5, object2[key], (namespace ? `${namespace}.` : "") + key.toString(), merger);
315604
316500
  } else {
315605
316501
  object2[key] = value5;
@@ -318630,7 +319526,7 @@ function createCommand2() {
318630
319526
  await mkdir6(projectDir, { recursive: true });
318631
319527
  }
318632
319528
  if (!await isEmpty(projectDir)) {
318633
- const confirmEmpty = await esm_default4({
319529
+ const confirmEmpty = await esm_default5({
318634
319530
  message: `The folder ${projectDir} already exists. Do you want to empty it?`,
318635
319531
  default: false
318636
319532
  });
@@ -318883,7 +319779,7 @@ async function personalAccessTokenPrompt(env2, instance, accept) {
318883
319779
  return defaultPersonalAccessToken;
318884
319780
  }
318885
319781
  if (existingConfig && defaultPersonalAccessToken) {
318886
- const useExisting = await esm_default4({
319782
+ const useExisting = await esm_default5({
318887
319783
  message: `Do you want to use your existing personal access token for ${instance}?`,
318888
319784
  default: true
318889
319785
  });
@@ -318891,7 +319787,7 @@ async function personalAccessTokenPrompt(env2, instance, accept) {
318891
319787
  return defaultPersonalAccessToken;
318892
319788
  }
318893
319789
  }
318894
- return esm_default5({
319790
+ return esm_default6({
318895
319791
  message: "What is your personal access token in SettleMint? (format: sm_pat_...)",
318896
319792
  validate(value5) {
318897
319793
  try {
@@ -319017,7 +319913,7 @@ function logoutCommand() {
319017
319913
  }
319018
319914
  const env2 = await loadEnv(false, false);
319019
319915
  const defaultInstance = env2.SETTLEMINT_INSTANCE;
319020
- const instance = await esm_default3({
319916
+ const instance = await esm_default4({
319021
319917
  message: "Select the instance to logout from:",
319022
319918
  choices: instances.map((instance2) => ({
319023
319919
  value: instance2,
@@ -319038,7 +319934,7 @@ async function pincodeVerificationPrompt(verificationChallenges) {
319038
319934
  if (verificationChallenges.length === 1) {
319039
319935
  return verificationChallenges[0];
319040
319936
  }
319041
- const verificationChallenge = await esm_default3({
319937
+ const verificationChallenge = await esm_default4({
319042
319938
  message: "Which pincode verification do you want to use?",
319043
319939
  choices: verificationChallenges.map((verificationChallenge2) => ({
319044
319940
  name: verificationChallenge2.name,
@@ -319102,7 +319998,7 @@ function pincodeVerificationResponseCommand() {
319102
319998
  nodeId: selectedBlockchainNode.id
319103
319999
  });
319104
320000
  const verificationChallenge = await pincodeVerificationPrompt(pincodeVerificationChallenges);
319105
- const pincode = await esm_default5({
320001
+ const pincode = await esm_default6({
319106
320002
  message: "Enter your pincode",
319107
320003
  validate(value5) {
319108
320004
  if (!value5.trim()) {
@@ -319255,7 +320151,7 @@ async function providerPrompt(platformConfig, argument) {
319255
320151
  if (possibleProviders.length === 1) {
319256
320152
  return possibleProviders[0];
319257
320153
  }
319258
- const provider = await esm_default3({
320154
+ const provider = await esm_default4({
319259
320155
  message: "Which provider do you want to use?",
319260
320156
  choices: platformConfig.deploymentEngineTargets.map((target) => ({
319261
320157
  name: target.name,
@@ -319286,7 +320182,7 @@ async function regionPrompt(provider, argument) {
319286
320182
  if (possibleRegions.length === 1) {
319287
320183
  return possibleRegions[0];
319288
320184
  }
319289
- const region = await esm_default3({
320185
+ const region = await esm_default4({
319290
320186
  message: "Which region do you want to use?",
319291
320187
  choices: provider.clusters.map((cluster) => ({
319292
320188
  name: cluster.name,
@@ -319816,7 +320712,7 @@ async function blockchainNetworkPrompt({
319816
320712
  envKey: "SETTLEMINT_BLOCKCHAIN_NETWORK",
319817
320713
  isRequired,
319818
320714
  defaultHandler: async ({ defaultService: defaultNetwork, choices }) => {
319819
- return esm_default3({
320715
+ return esm_default4({
319820
320716
  message: "Which blockchain network do you want to connect to?",
319821
320717
  choices,
319822
320718
  default: defaultNetwork
@@ -320721,7 +321617,7 @@ function createCommand3() {
320721
321617
 
320722
321618
  // src/prompts/delete-confirmation.prompt.ts
320723
321619
  async function deleteConfirmationPrompt(itemDescription) {
320724
- const confirmation = await esm_default2({
321620
+ const confirmation = await esm_default3({
320725
321621
  message: `Are you sure you want to delete ${itemDescription}? (yes/no)`,
320726
321622
  required: true,
320727
321623
  validate(value5) {
@@ -321581,7 +322477,7 @@ function jsonOutput(data) {
321581
322477
  var composer = require_composer();
321582
322478
  var Document = require_Document();
321583
322479
  var Schema = require_Schema();
321584
- var errors4 = require_errors3();
322480
+ var errors5 = require_errors3();
321585
322481
  var Alias = require_Alias();
321586
322482
  var identity2 = require_identity();
321587
322483
  var Pair = require_Pair();
@@ -321597,9 +322493,9 @@ var visit2 = require_visit();
321597
322493
  var $Composer = composer.Composer;
321598
322494
  var $Document = Document.Document;
321599
322495
  var $Schema = Schema.Schema;
321600
- var $YAMLError = errors4.YAMLError;
321601
- var $YAMLParseError = errors4.YAMLParseError;
321602
- var $YAMLWarning = errors4.YAMLWarning;
322496
+ var $YAMLError = errors5.YAMLError;
322497
+ var $YAMLParseError = errors5.YAMLParseError;
322498
+ var $YAMLWarning = errors5.YAMLWarning;
321603
322499
  var $Alias = Alias.Alias;
321604
322500
  var $isAlias = identity2.isAlias;
321605
322501
  var $isCollection = identity2.isCollection;
@@ -322118,7 +323014,7 @@ async function useCasePrompt(platformConfig, argument) {
322118
323014
  if (selectableUseCases.length === 1) {
322119
323015
  return selectableUseCases[0];
322120
323016
  }
322121
- const useCase = await esm_default3({
323017
+ const useCase = await esm_default4({
322122
323018
  message: "Which use case do you want to use?",
322123
323019
  choices: selectableUseCases.map((useCase2) => ({
322124
323020
  name: formatUseCaseName(useCase2.name),
@@ -322176,7 +323072,7 @@ function createCommand4() {
322176
323072
  const targetDir = formatTargetDir(name4);
322177
323073
  const projectDir = join10(process.cwd(), targetDir);
322178
323074
  if (await exists3(projectDir) && !await isEmpty(projectDir)) {
322179
- const confirmEmpty = await esm_default4({
323075
+ const confirmEmpty = await esm_default5({
322180
323076
  message: `The folder ${projectDir} already exists. Do you want to delete it?`,
322181
323077
  default: false
322182
323078
  });
@@ -322489,7 +323385,7 @@ async function addressPrompt({
322489
323385
  hardhatConfig
322490
323386
  }) {
322491
323387
  if (!node) {
322492
- return esm_default2({
323388
+ return esm_default3({
322493
323389
  message: "Which private key address do you want to deploy from?",
322494
323390
  validate: (value5) => {
322495
323391
  if (!isAddress(value5)) {
@@ -322509,7 +323405,7 @@ async function addressPrompt({
322509
323405
  note(`Private key with address '${defaultAddress}' is not activated on the node '${node.uniqueName}'.
322510
323406
  Please select another key or activate this key on the node and try again.`, "warn");
322511
323407
  }
322512
- const address = await esm_default3({
323408
+ const address = await esm_default4({
322513
323409
  message: "Which private key do you want to deploy from?",
322514
323410
  choices: possiblePrivateKeys.map(({ address: address2, name: name4 }) => ({
322515
323411
  name: name4,
@@ -323460,4 +324356,4 @@ async function sdkCliCommand(argv = process.argv) {
323460
324356
  // src/cli.ts
323461
324357
  sdkCliCommand();
323462
324358
 
323463
- //# debugId=60E8288B45E37B7D64756E2164756E21
324359
+ //# debugId=677E57B0CAC6ABCB64756E2164756E21