@settlemint/sdk-cli 2.6.4-main400d9402 → 2.6.4-main95bce21b

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 +1097 -1097
  2. package/dist/cli.js.map +25 -25
  3. package/package.json +7 -7
package/dist/cli.js CHANGED
@@ -3546,7 +3546,7 @@ var require_wrap_ansi = __commonJS((exports, module) => {
3546
3546
  };
3547
3547
  });
3548
3548
 
3549
- // ../../node_modules/.bun/mute-stream@2.0.0/node_modules/mute-stream/lib/index.js
3549
+ // ../../node_modules/.bun/mute-stream@3.0.0/node_modules/mute-stream/lib/index.js
3550
3550
  var require_lib = __commonJS((exports, module) => {
3551
3551
  var Stream = __require("stream");
3552
3552
 
@@ -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@2.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
 
@@ -254827,126 +254947,6 @@ var init_call = __esm(() => {
254827
254947
  init_assertRequest();
254828
254948
  });
254829
254949
 
254830
- // ../../node_modules/.bun/mute-stream@3.0.0/node_modules/mute-stream/lib/index.js
254831
- var require_lib13 = __commonJS((exports, module) => {
254832
- var Stream2 = __require("stream");
254833
-
254834
- class MuteStream2 extends Stream2 {
254835
- #isTTY = null;
254836
- constructor(opts = {}) {
254837
- super(opts);
254838
- this.writable = this.readable = true;
254839
- this.muted = false;
254840
- this.on("pipe", this._onpipe);
254841
- this.replace = opts.replace;
254842
- this._prompt = opts.prompt || null;
254843
- this._hadControl = false;
254844
- }
254845
- #destSrc(key, def) {
254846
- if (this._dest) {
254847
- return this._dest[key];
254848
- }
254849
- if (this._src) {
254850
- return this._src[key];
254851
- }
254852
- return def;
254853
- }
254854
- #proxy(method, ...args) {
254855
- if (typeof this._dest?.[method] === "function") {
254856
- this._dest[method](...args);
254857
- }
254858
- if (typeof this._src?.[method] === "function") {
254859
- this._src[method](...args);
254860
- }
254861
- }
254862
- get isTTY() {
254863
- if (this.#isTTY !== null) {
254864
- return this.#isTTY;
254865
- }
254866
- return this.#destSrc("isTTY", false);
254867
- }
254868
- set isTTY(val) {
254869
- this.#isTTY = val;
254870
- }
254871
- get rows() {
254872
- return this.#destSrc("rows");
254873
- }
254874
- get columns() {
254875
- return this.#destSrc("columns");
254876
- }
254877
- mute() {
254878
- this.muted = true;
254879
- }
254880
- unmute() {
254881
- this.muted = false;
254882
- }
254883
- _onpipe(src) {
254884
- this._src = src;
254885
- }
254886
- pipe(dest, options) {
254887
- this._dest = dest;
254888
- return super.pipe(dest, options);
254889
- }
254890
- pause() {
254891
- if (this._src) {
254892
- return this._src.pause();
254893
- }
254894
- }
254895
- resume() {
254896
- if (this._src) {
254897
- return this._src.resume();
254898
- }
254899
- }
254900
- write(c3) {
254901
- if (this.muted) {
254902
- if (!this.replace) {
254903
- return true;
254904
- }
254905
- if (c3.match(/^\u001b/)) {
254906
- if (c3.indexOf(this._prompt) === 0) {
254907
- c3 = c3.slice(this._prompt.length);
254908
- c3 = c3.replace(/./g, this.replace);
254909
- c3 = this._prompt + c3;
254910
- }
254911
- this._hadControl = true;
254912
- return this.emit("data", c3);
254913
- } else {
254914
- if (this._prompt && this._hadControl && c3.indexOf(this._prompt) === 0) {
254915
- this._hadControl = false;
254916
- this.emit("data", this._prompt);
254917
- c3 = c3.slice(this._prompt.length);
254918
- }
254919
- c3 = c3.toString().replace(/./g, this.replace);
254920
- }
254921
- }
254922
- this.emit("data", c3);
254923
- }
254924
- end(c3) {
254925
- if (this.muted) {
254926
- if (c3 && this.replace) {
254927
- c3 = c3.toString().replace(/./g, this.replace);
254928
- } else {
254929
- c3 = null;
254930
- }
254931
- }
254932
- if (c3) {
254933
- this.emit("data", c3);
254934
- }
254935
- this.emit("end");
254936
- }
254937
- destroy(...args) {
254938
- return this.#proxy("destroy", ...args);
254939
- }
254940
- destroySoon(...args) {
254941
- return this.#proxy("destroySoon", ...args);
254942
- }
254943
- close(...args) {
254944
- return this.#proxy("close", ...args);
254945
- }
254946
- }
254947
- module.exports = MuteStream2;
254948
- });
254949
-
254950
254950
  // ../../node_modules/.bun/yaml@2.8.1/node_modules/yaml/dist/nodes/identity.js
254951
254951
  var require_identity = __commonJS((exports) => {
254952
254952
  var ALIAS = Symbol.for("yaml.alias");
@@ -261865,14 +261865,10 @@ var {
261865
261865
  Help
261866
261866
  } = import__.default;
261867
261867
 
261868
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/key.js
261869
- var isUpKey = (key, keybindings = []) => key.name === "up" || keybindings.includes("vim") && key.name === "k" || keybindings.includes("emacs") && key.ctrl && key.name === "p";
261870
- var isDownKey = (key, keybindings = []) => key.name === "down" || keybindings.includes("vim") && key.name === "j" || keybindings.includes("emacs") && key.ctrl && key.name === "n";
261871
- var isBackspaceKey = (key) => key.name === "backspace";
261868
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/key.js
261872
261869
  var isTabKey = (key) => key.name === "tab";
261873
- var isNumberKey = (key) => "1234567890".includes(key.name);
261874
261870
  var isEnterKey = (key) => key.name === "enter" || key.name === "return";
261875
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/errors.js
261871
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/errors.js
261876
261872
  class AbortPromptError extends Error {
261877
261873
  name = "AbortPromptError";
261878
261874
  message = "Prompt was aborted";
@@ -261898,10 +261894,10 @@ class HookError extends Error {
261898
261894
  class ValidationError extends Error {
261899
261895
  name = "ValidationError";
261900
261896
  }
261901
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-state.js
261897
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-state.js
261902
261898
  import { AsyncResource as AsyncResource2 } from "node:async_hooks";
261903
261899
 
261904
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
261900
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
261905
261901
  import { AsyncLocalStorage, AsyncResource } from "node:async_hooks";
261906
261902
  var hookStorage = new AsyncLocalStorage;
261907
261903
  function createStore(rl) {
@@ -262006,7 +262002,7 @@ var effectScheduler = {
262006
262002
  }
262007
262003
  };
262008
262004
 
262009
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-state.js
262005
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-state.js
262010
262006
  function useState(defaultValue) {
262011
262007
  return withPointer((pointer) => {
262012
262008
  const setState = AsyncResource2.bind(function setState(newValue) {
@@ -262024,7 +262020,7 @@ function useState(defaultValue) {
262024
262020
  });
262025
262021
  }
262026
262022
 
262027
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
262023
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
262028
262024
  function useEffect(cb, depArray) {
262029
262025
  withPointer((pointer) => {
262030
262026
  const oldDeps = pointer.get();
@@ -262036,10 +262032,10 @@ function useEffect(cb, depArray) {
262036
262032
  });
262037
262033
  }
262038
262034
 
262039
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/theme.js
262035
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/theme.js
262040
262036
  var import_yoctocolors_cjs = __toESM(require_yoctocolors_cjs(), 1);
262041
262037
 
262042
- // ../../node_modules/.bun/@inquirer+figures@1.0.14/node_modules/@inquirer/figures/dist/esm/index.js
262038
+ // ../../node_modules/.bun/@inquirer+figures@1.0.15/node_modules/@inquirer/figures/dist/esm/index.js
262043
262039
  import process2 from "node:process";
262044
262040
  function isUnicodeSupported() {
262045
262041
  if (process2.platform !== "win32") {
@@ -262315,7 +262311,10 @@ var specialFallbackSymbols = {
262315
262311
  oneNinth: "1/9",
262316
262312
  oneTenth: "1/10"
262317
262313
  };
262318
- var mainSymbols = { ...common, ...specialMainSymbols };
262314
+ var mainSymbols = {
262315
+ ...common,
262316
+ ...specialMainSymbols
262317
+ };
262319
262318
  var fallbackSymbols = {
262320
262319
  ...common,
262321
262320
  ...specialFallbackSymbols
@@ -262325,7 +262324,7 @@ var figures = shouldUseMain ? mainSymbols : fallbackSymbols;
262325
262324
  var esm_default = figures;
262326
262325
  var replacements = Object.entries(specialMainSymbols);
262327
262326
 
262328
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/theme.js
262327
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/theme.js
262329
262328
  var defaultTheme = {
262330
262329
  prefix: {
262331
262330
  idle: import_yoctocolors_cjs.default.blue("?"),
@@ -262346,7 +262345,7 @@ var defaultTheme = {
262346
262345
  }
262347
262346
  };
262348
262347
 
262349
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
262348
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
262350
262349
  function isPlainObject(value) {
262351
262350
  if (typeof value !== "object" || value === null)
262352
262351
  return false;
@@ -262374,7 +262373,7 @@ function makeTheme(...themes) {
262374
262373
  return deepMerge(...themesToMerge);
262375
262374
  }
262376
262375
 
262377
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
262376
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
262378
262377
  function usePrefix({ status = "idle", theme }) {
262379
262378
  const [showLoader, setShowLoader] = useState(false);
262380
262379
  const [tick, setTick] = useState(0);
@@ -262404,23 +262403,12 @@ function usePrefix({ status = "idle", theme }) {
262404
262403
  const iconName = status === "loading" ? "idle" : status;
262405
262404
  return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
262406
262405
  }
262407
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-memo.js
262408
- function useMemo(fn, dependencies) {
262409
- return withPointer((pointer) => {
262410
- const prev = pointer.get();
262411
- if (!prev || prev.dependencies.length !== dependencies.length || prev.dependencies.some((dep, i) => dep !== dependencies[i])) {
262412
- const value = fn();
262413
- pointer.set({ value, dependencies });
262414
- return value;
262415
- }
262416
- return prev.value;
262417
- });
262418
- }
262419
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
262406
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
262420
262407
  function useRef(val) {
262421
262408
  return useState({ current: val })[0];
262422
262409
  }
262423
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
262410
+
262411
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
262424
262412
  function useKeypress(userHandler) {
262425
262413
  const signal = useRef(userHandler);
262426
262414
  signal.current = userHandler;
@@ -262438,7 +262426,7 @@ function useKeypress(userHandler) {
262438
262426
  };
262439
262427
  }, []);
262440
262428
  }
262441
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/utils.js
262429
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/utils.js
262442
262430
  var import_cli_width = __toESM(require_cli_width(), 1);
262443
262431
  var import_wrap_ansi = __toESM(require_wrap_ansi(), 1);
262444
262432
  function breakLines(content, width) {
@@ -262451,73 +262439,7 @@ function readlineWidth() {
262451
262439
  return import_cli_width.default({ defaultWidth: 80, output: readline().output });
262452
262440
  }
262453
262441
 
262454
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
262455
- function usePointerPosition({ active, renderedItems, pageSize, loop }) {
262456
- const state = useRef({
262457
- lastPointer: active,
262458
- lastActive: undefined
262459
- });
262460
- const { lastPointer, lastActive } = state.current;
262461
- const middle = Math.floor(pageSize / 2);
262462
- const renderedLength = renderedItems.reduce((acc, item) => acc + item.length, 0);
262463
- const defaultPointerPosition = renderedItems.slice(0, active).reduce((acc, item) => acc + item.length, 0);
262464
- let pointer = defaultPointerPosition;
262465
- if (renderedLength > pageSize) {
262466
- if (loop) {
262467
- pointer = lastPointer;
262468
- if (lastActive != null && lastActive < active && active - lastActive < pageSize) {
262469
- pointer = Math.min(middle, Math.abs(active - lastActive) === 1 ? Math.min(lastPointer + (renderedItems[lastActive]?.length ?? 0), Math.max(defaultPointerPosition, lastPointer)) : lastPointer + active - lastActive);
262470
- }
262471
- } else {
262472
- const spaceUnderActive = renderedItems.slice(active).reduce((acc, item) => acc + item.length, 0);
262473
- pointer = spaceUnderActive < pageSize - middle ? pageSize - spaceUnderActive : Math.min(defaultPointerPosition, middle);
262474
- }
262475
- }
262476
- state.current.lastPointer = pointer;
262477
- state.current.lastActive = active;
262478
- return pointer;
262479
- }
262480
- function usePagination({ items, active, renderItem, pageSize, loop = true }) {
262481
- const width = readlineWidth();
262482
- const bound = (num) => (num % items.length + items.length) % items.length;
262483
- const renderedItems = items.map((item, index) => {
262484
- if (item == null)
262485
- return [];
262486
- return breakLines(renderItem({ item, index, isActive: index === active }), width).split(`
262487
- `);
262488
- });
262489
- const renderedLength = renderedItems.reduce((acc, item) => acc + item.length, 0);
262490
- const renderItemAtIndex = (index) => renderedItems[index] ?? [];
262491
- const pointer = usePointerPosition({ active, renderedItems, pageSize, loop });
262492
- const activeItem = renderItemAtIndex(active).slice(0, pageSize);
262493
- const activeItemPosition = pointer + activeItem.length <= pageSize ? pointer : pageSize - activeItem.length;
262494
- const pageBuffer = Array.from({ length: pageSize });
262495
- pageBuffer.splice(activeItemPosition, activeItem.length, ...activeItem);
262496
- const itemVisited = new Set([active]);
262497
- let bufferPointer = activeItemPosition + activeItem.length;
262498
- let itemPointer = bound(active + 1);
262499
- while (bufferPointer < pageSize && !itemVisited.has(itemPointer) && (loop && renderedLength > pageSize ? itemPointer !== active : itemPointer > active)) {
262500
- const lines = renderItemAtIndex(itemPointer);
262501
- const linesToAdd = lines.slice(0, pageSize - bufferPointer);
262502
- pageBuffer.splice(bufferPointer, linesToAdd.length, ...linesToAdd);
262503
- itemVisited.add(itemPointer);
262504
- bufferPointer += linesToAdd.length;
262505
- itemPointer = bound(itemPointer + 1);
262506
- }
262507
- bufferPointer = activeItemPosition - 1;
262508
- itemPointer = bound(active - 1);
262509
- while (bufferPointer >= 0 && !itemVisited.has(itemPointer) && (loop && renderedLength > pageSize ? itemPointer !== active : itemPointer < active)) {
262510
- const lines = renderItemAtIndex(itemPointer);
262511
- const linesToAdd = lines.slice(Math.max(0, lines.length - bufferPointer - 1));
262512
- pageBuffer.splice(bufferPointer - linesToAdd.length + 1, linesToAdd.length, ...linesToAdd);
262513
- itemVisited.add(itemPointer);
262514
- bufferPointer -= linesToAdd.length;
262515
- itemPointer = bound(itemPointer - 1);
262516
- }
262517
- return pageBuffer.filter((line) => typeof line === "string").join(`
262518
- `);
262519
- }
262520
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
262442
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
262521
262443
  var import_mute_stream = __toESM(require_lib(), 1);
262522
262444
  import * as readline2 from "node:readline";
262523
262445
  import { AsyncResource as AsyncResource3 } from "node:async_hooks";
@@ -262730,10 +262652,10 @@ var {
262730
262652
  unload
262731
262653
  } = signalExitWrap(processOk(process3) ? new SignalExit(process3) : new SignalExitFallback);
262732
262654
 
262733
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
262655
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
262734
262656
  import { stripVTControlCharacters } from "node:util";
262735
262657
 
262736
- // ../../node_modules/.bun/@inquirer+ansi@1.0.1/node_modules/@inquirer/ansi/dist/esm/index.js
262658
+ // ../../node_modules/.bun/@inquirer+ansi@1.0.2/node_modules/@inquirer/ansi/dist/esm/index.js
262737
262659
  var ESC = "\x1B[";
262738
262660
  var cursorLeft = ESC + "G";
262739
262661
  var cursorHide = ESC + "?25l";
@@ -262749,7 +262671,7 @@ var cursorTo = (x, y) => {
262749
262671
  var eraseLine = ESC + "2K";
262750
262672
  var eraseLines = (lines) => lines > 0 ? (eraseLine + cursorUp(1)).repeat(lines - 1) + eraseLine + cursorLeft : "";
262751
262673
 
262752
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
262674
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
262753
262675
  var height = (content) => content.split(`
262754
262676
  `).length;
262755
262677
  var lastLine = (content) => content.split(`
@@ -262814,7 +262736,7 @@ class ScreenManager {
262814
262736
  }
262815
262737
  }
262816
262738
 
262817
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
262739
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
262818
262740
  class PromisePolyfill extends Promise {
262819
262741
  static withResolver() {
262820
262742
  let resolve;
@@ -262827,7 +262749,7 @@ class PromisePolyfill extends Promise {
262827
262749
  }
262828
262750
  }
262829
262751
 
262830
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
262752
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
262831
262753
  function getCallSites() {
262832
262754
  const _prepareStackTrace = Error.prepareStackTrace;
262833
262755
  let result = [];
@@ -262913,20 +262835,6 @@ function createPrompt(view) {
262913
262835
  };
262914
262836
  return prompt;
262915
262837
  }
262916
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/Separator.js
262917
- var import_yoctocolors_cjs2 = __toESM(require_yoctocolors_cjs(), 1);
262918
- class Separator {
262919
- separator = import_yoctocolors_cjs2.default.dim(Array.from({ length: 15 }).join(esm_default.line));
262920
- type = "separator";
262921
- constructor(separator) {
262922
- if (separator) {
262923
- this.separator = separator;
262924
- }
262925
- }
262926
- static isSeparator(choice) {
262927
- return Boolean(choice && typeof choice === "object" && "type" in choice && choice.type === "separator");
262928
- }
262929
- }
262930
262838
  // ../../node_modules/.bun/yoctocolors@2.1.2/node_modules/yoctocolors/base.js
262931
262839
  var exports_base = {};
262932
262840
  __export(exports_base, {
@@ -282184,7 +282092,7 @@ function pruneCurrentEnv(currentEnv, env2) {
282184
282092
  var package_default = {
282185
282093
  name: "@settlemint/sdk-cli",
282186
282094
  description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
282187
- version: "2.6.4-main400d9402",
282095
+ version: "2.6.4-main95bce21b",
282188
282096
  type: "module",
282189
282097
  private: false,
282190
282098
  license: "FSL-1.1-MIT",
@@ -282227,7 +282135,7 @@ var package_default = {
282227
282135
  },
282228
282136
  dependencies: {
282229
282137
  "@gql.tada/cli-utils": "1.7.1",
282230
- "@inquirer/core": "10.3.0",
282138
+ "@inquirer/core": "10.3.1",
282231
282139
  "node-fetch-native": "1.6.7",
282232
282140
  zod: "^4"
282233
282141
  },
@@ -282238,10 +282146,10 @@ var package_default = {
282238
282146
  "@inquirer/input": "4.2.5",
282239
282147
  "@inquirer/password": "4.0.21",
282240
282148
  "@inquirer/select": "4.4.0",
282241
- "@settlemint/sdk-hasura": "2.6.4-main400d9402",
282242
- "@settlemint/sdk-js": "2.6.4-main400d9402",
282243
- "@settlemint/sdk-utils": "2.6.4-main400d9402",
282244
- "@settlemint/sdk-viem": "2.6.4-main400d9402",
282149
+ "@settlemint/sdk-hasura": "2.6.4-main95bce21b",
282150
+ "@settlemint/sdk-js": "2.6.4-main95bce21b",
282151
+ "@settlemint/sdk-utils": "2.6.4-main95bce21b",
282152
+ "@settlemint/sdk-viem": "2.6.4-main95bce21b",
282245
282153
  "@types/node": "24.10.0",
282246
282154
  "@types/semver": "7.7.1",
282247
282155
  "@types/which": "3.0.4",
@@ -282258,7 +282166,7 @@ var package_default = {
282258
282166
  },
282259
282167
  peerDependencies: {
282260
282168
  hardhat: "<= 4",
282261
- "@settlemint/sdk-js": "2.6.4-main400d9402"
282169
+ "@settlemint/sdk-js": "2.6.4-main95bce21b"
282262
282170
  },
282263
282171
  peerDependenciesMeta: {
282264
282172
  hardhat: {
@@ -288155,23 +288063,877 @@ function sanitizeName(value5, length = 35) {
288155
288063
  }).slice(0, length).replaceAll(/(^\d*)/g, "").replaceAll(/(-$)/g, "").replaceAll(/(^-)/g, "");
288156
288064
  }
288157
288065
 
288066
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/key.js
288067
+ var isUpKey2 = (key, keybindings = []) => key.name === "up" || keybindings.includes("vim") && key.name === "k" || keybindings.includes("emacs") && key.ctrl && key.name === "p";
288068
+ var isDownKey2 = (key, keybindings = []) => key.name === "down" || keybindings.includes("vim") && key.name === "j" || keybindings.includes("emacs") && key.ctrl && key.name === "n";
288069
+ var isBackspaceKey2 = (key) => key.name === "backspace";
288070
+ var isTabKey2 = (key) => key.name === "tab";
288071
+ var isNumberKey2 = (key) => "1234567890".includes(key.name);
288072
+ var isEnterKey2 = (key) => key.name === "enter" || key.name === "return";
288073
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/errors.js
288074
+ class AbortPromptError2 extends Error {
288075
+ name = "AbortPromptError";
288076
+ message = "Prompt was aborted";
288077
+ constructor(options) {
288078
+ super();
288079
+ this.cause = options?.cause;
288080
+ }
288081
+ }
288082
+
288083
+ class CancelPromptError2 extends Error {
288084
+ name = "CancelPromptError";
288085
+ message = "Prompt was canceled";
288086
+ }
288087
+
288088
+ class ExitPromptError2 extends Error {
288089
+ name = "ExitPromptError";
288090
+ }
288091
+
288092
+ class HookError2 extends Error {
288093
+ name = "HookError";
288094
+ }
288095
+
288096
+ class ValidationError2 extends Error {
288097
+ name = "ValidationError";
288098
+ }
288099
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-state.js
288100
+ import { AsyncResource as AsyncResource5 } from "node:async_hooks";
288101
+
288102
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
288103
+ import { AsyncLocalStorage as AsyncLocalStorage2, AsyncResource as AsyncResource4 } from "node:async_hooks";
288104
+ var hookStorage2 = new AsyncLocalStorage2;
288105
+ function createStore2(rl) {
288106
+ const store = {
288107
+ rl,
288108
+ hooks: [],
288109
+ hooksCleanup: [],
288110
+ hooksEffect: [],
288111
+ index: 0,
288112
+ handleChange() {}
288113
+ };
288114
+ return store;
288115
+ }
288116
+ function withHooks2(rl, cb) {
288117
+ const store = createStore2(rl);
288118
+ return hookStorage2.run(store, () => {
288119
+ function cycle(render) {
288120
+ store.handleChange = () => {
288121
+ store.index = 0;
288122
+ render();
288123
+ };
288124
+ store.handleChange();
288125
+ }
288126
+ return cb(cycle);
288127
+ });
288128
+ }
288129
+ function getStore2() {
288130
+ const store = hookStorage2.getStore();
288131
+ if (!store) {
288132
+ throw new HookError2("[Inquirer] Hook functions can only be called from within a prompt");
288133
+ }
288134
+ return store;
288135
+ }
288136
+ function readline3() {
288137
+ return getStore2().rl;
288138
+ }
288139
+ function withUpdates2(fn) {
288140
+ const wrapped = (...args) => {
288141
+ const store = getStore2();
288142
+ let shouldUpdate = false;
288143
+ const oldHandleChange = store.handleChange;
288144
+ store.handleChange = () => {
288145
+ shouldUpdate = true;
288146
+ };
288147
+ const returnValue = fn(...args);
288148
+ if (shouldUpdate) {
288149
+ oldHandleChange();
288150
+ }
288151
+ store.handleChange = oldHandleChange;
288152
+ return returnValue;
288153
+ };
288154
+ return AsyncResource4.bind(wrapped);
288155
+ }
288156
+ function withPointer2(cb) {
288157
+ const store = getStore2();
288158
+ const { index } = store;
288159
+ const pointer = {
288160
+ get() {
288161
+ return store.hooks[index];
288162
+ },
288163
+ set(value5) {
288164
+ store.hooks[index] = value5;
288165
+ },
288166
+ initialized: index in store.hooks
288167
+ };
288168
+ const returnValue = cb(pointer);
288169
+ store.index++;
288170
+ return returnValue;
288171
+ }
288172
+ function handleChange2() {
288173
+ getStore2().handleChange();
288174
+ }
288175
+ var effectScheduler2 = {
288176
+ queue(cb) {
288177
+ const store = getStore2();
288178
+ const { index } = store;
288179
+ store.hooksEffect.push(() => {
288180
+ store.hooksCleanup[index]?.();
288181
+ const cleanFn = cb(readline3());
288182
+ if (cleanFn != null && typeof cleanFn !== "function") {
288183
+ throw new ValidationError2("useEffect return value must be a cleanup function or nothing.");
288184
+ }
288185
+ store.hooksCleanup[index] = cleanFn;
288186
+ });
288187
+ },
288188
+ run() {
288189
+ const store = getStore2();
288190
+ withUpdates2(() => {
288191
+ store.hooksEffect.forEach((effect) => {
288192
+ effect();
288193
+ });
288194
+ store.hooksEffect.length = 0;
288195
+ })();
288196
+ },
288197
+ clearAll() {
288198
+ const store = getStore2();
288199
+ store.hooksCleanup.forEach((cleanFn) => {
288200
+ cleanFn?.();
288201
+ });
288202
+ store.hooksEffect.length = 0;
288203
+ store.hooksCleanup.length = 0;
288204
+ }
288205
+ };
288206
+
288207
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-state.js
288208
+ function useState2(defaultValue) {
288209
+ return withPointer2((pointer) => {
288210
+ const setState = AsyncResource5.bind(function setState(newValue) {
288211
+ if (pointer.get() !== newValue) {
288212
+ pointer.set(newValue);
288213
+ handleChange2();
288214
+ }
288215
+ });
288216
+ if (pointer.initialized) {
288217
+ return [pointer.get(), setState];
288218
+ }
288219
+ const value5 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
288220
+ pointer.set(value5);
288221
+ return [value5, setState];
288222
+ });
288223
+ }
288224
+
288225
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
288226
+ function useEffect2(cb, depArray) {
288227
+ withPointer2((pointer) => {
288228
+ const oldDeps = pointer.get();
288229
+ const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i7) => !Object.is(dep, oldDeps[i7]));
288230
+ if (hasChanged) {
288231
+ effectScheduler2.queue(cb);
288232
+ }
288233
+ pointer.set(depArray);
288234
+ });
288235
+ }
288236
+
288237
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/theme.js
288238
+ var import_yoctocolors_cjs2 = __toESM(require_yoctocolors_cjs(), 1);
288239
+
288240
+ // ../../node_modules/.bun/@inquirer+figures@1.0.14/node_modules/@inquirer/figures/dist/esm/index.js
288241
+ import process8 from "node:process";
288242
+ function isUnicodeSupported3() {
288243
+ if (process8.platform !== "win32") {
288244
+ return process8.env["TERM"] !== "linux";
288245
+ }
288246
+ 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";
288247
+ }
288248
+ var common2 = {
288249
+ circleQuestionMark: "(?)",
288250
+ questionMarkPrefix: "(?)",
288251
+ square: "█",
288252
+ squareDarkShade: "▓",
288253
+ squareMediumShade: "▒",
288254
+ squareLightShade: "░",
288255
+ squareTop: "▀",
288256
+ squareBottom: "▄",
288257
+ squareLeft: "▌",
288258
+ squareRight: "▐",
288259
+ squareCenter: "■",
288260
+ bullet: "●",
288261
+ dot: "․",
288262
+ ellipsis: "…",
288263
+ pointerSmall: "›",
288264
+ triangleUp: "▲",
288265
+ triangleUpSmall: "▴",
288266
+ triangleDown: "▼",
288267
+ triangleDownSmall: "▾",
288268
+ triangleLeftSmall: "◂",
288269
+ triangleRightSmall: "▸",
288270
+ home: "⌂",
288271
+ heart: "♥",
288272
+ musicNote: "♪",
288273
+ musicNoteBeamed: "♫",
288274
+ arrowUp: "↑",
288275
+ arrowDown: "↓",
288276
+ arrowLeft: "←",
288277
+ arrowRight: "→",
288278
+ arrowLeftRight: "↔",
288279
+ arrowUpDown: "↕",
288280
+ almostEqual: "≈",
288281
+ notEqual: "≠",
288282
+ lessOrEqual: "≤",
288283
+ greaterOrEqual: "≥",
288284
+ identical: "≡",
288285
+ infinity: "∞",
288286
+ subscriptZero: "₀",
288287
+ subscriptOne: "₁",
288288
+ subscriptTwo: "₂",
288289
+ subscriptThree: "₃",
288290
+ subscriptFour: "₄",
288291
+ subscriptFive: "₅",
288292
+ subscriptSix: "₆",
288293
+ subscriptSeven: "₇",
288294
+ subscriptEight: "₈",
288295
+ subscriptNine: "₉",
288296
+ oneHalf: "½",
288297
+ oneThird: "⅓",
288298
+ oneQuarter: "¼",
288299
+ oneFifth: "⅕",
288300
+ oneSixth: "⅙",
288301
+ oneEighth: "⅛",
288302
+ twoThirds: "⅔",
288303
+ twoFifths: "⅖",
288304
+ threeQuarters: "¾",
288305
+ threeFifths: "⅗",
288306
+ threeEighths: "⅜",
288307
+ fourFifths: "⅘",
288308
+ fiveSixths: "⅚",
288309
+ fiveEighths: "⅝",
288310
+ sevenEighths: "⅞",
288311
+ line: "─",
288312
+ lineBold: "━",
288313
+ lineDouble: "═",
288314
+ lineDashed0: "┄",
288315
+ lineDashed1: "┅",
288316
+ lineDashed2: "┈",
288317
+ lineDashed3: "┉",
288318
+ lineDashed4: "╌",
288319
+ lineDashed5: "╍",
288320
+ lineDashed6: "╴",
288321
+ lineDashed7: "╶",
288322
+ lineDashed8: "╸",
288323
+ lineDashed9: "╺",
288324
+ lineDashed10: "╼",
288325
+ lineDashed11: "╾",
288326
+ lineDashed12: "−",
288327
+ lineDashed13: "–",
288328
+ lineDashed14: "‐",
288329
+ lineDashed15: "⁃",
288330
+ lineVertical: "│",
288331
+ lineVerticalBold: "┃",
288332
+ lineVerticalDouble: "║",
288333
+ lineVerticalDashed0: "┆",
288334
+ lineVerticalDashed1: "┇",
288335
+ lineVerticalDashed2: "┊",
288336
+ lineVerticalDashed3: "┋",
288337
+ lineVerticalDashed4: "╎",
288338
+ lineVerticalDashed5: "╏",
288339
+ lineVerticalDashed6: "╵",
288340
+ lineVerticalDashed7: "╷",
288341
+ lineVerticalDashed8: "╹",
288342
+ lineVerticalDashed9: "╻",
288343
+ lineVerticalDashed10: "╽",
288344
+ lineVerticalDashed11: "╿",
288345
+ lineDownLeft: "┐",
288346
+ lineDownLeftArc: "╮",
288347
+ lineDownBoldLeftBold: "┓",
288348
+ lineDownBoldLeft: "┒",
288349
+ lineDownLeftBold: "┑",
288350
+ lineDownDoubleLeftDouble: "╗",
288351
+ lineDownDoubleLeft: "╖",
288352
+ lineDownLeftDouble: "╕",
288353
+ lineDownRight: "┌",
288354
+ lineDownRightArc: "╭",
288355
+ lineDownBoldRightBold: "┏",
288356
+ lineDownBoldRight: "┎",
288357
+ lineDownRightBold: "┍",
288358
+ lineDownDoubleRightDouble: "╔",
288359
+ lineDownDoubleRight: "╓",
288360
+ lineDownRightDouble: "╒",
288361
+ lineUpLeft: "┘",
288362
+ lineUpLeftArc: "╯",
288363
+ lineUpBoldLeftBold: "┛",
288364
+ lineUpBoldLeft: "┚",
288365
+ lineUpLeftBold: "┙",
288366
+ lineUpDoubleLeftDouble: "╝",
288367
+ lineUpDoubleLeft: "╜",
288368
+ lineUpLeftDouble: "╛",
288369
+ lineUpRight: "└",
288370
+ lineUpRightArc: "╰",
288371
+ lineUpBoldRightBold: "┗",
288372
+ lineUpBoldRight: "┖",
288373
+ lineUpRightBold: "┕",
288374
+ lineUpDoubleRightDouble: "╚",
288375
+ lineUpDoubleRight: "╙",
288376
+ lineUpRightDouble: "╘",
288377
+ lineUpDownLeft: "┤",
288378
+ lineUpBoldDownBoldLeftBold: "┫",
288379
+ lineUpBoldDownBoldLeft: "┨",
288380
+ lineUpDownLeftBold: "┥",
288381
+ lineUpBoldDownLeftBold: "┩",
288382
+ lineUpDownBoldLeftBold: "┪",
288383
+ lineUpDownBoldLeft: "┧",
288384
+ lineUpBoldDownLeft: "┦",
288385
+ lineUpDoubleDownDoubleLeftDouble: "╣",
288386
+ lineUpDoubleDownDoubleLeft: "╢",
288387
+ lineUpDownLeftDouble: "╡",
288388
+ lineUpDownRight: "├",
288389
+ lineUpBoldDownBoldRightBold: "┣",
288390
+ lineUpBoldDownBoldRight: "┠",
288391
+ lineUpDownRightBold: "┝",
288392
+ lineUpBoldDownRightBold: "┡",
288393
+ lineUpDownBoldRightBold: "┢",
288394
+ lineUpDownBoldRight: "┟",
288395
+ lineUpBoldDownRight: "┞",
288396
+ lineUpDoubleDownDoubleRightDouble: "╠",
288397
+ lineUpDoubleDownDoubleRight: "╟",
288398
+ lineUpDownRightDouble: "╞",
288399
+ lineDownLeftRight: "┬",
288400
+ lineDownBoldLeftBoldRightBold: "┳",
288401
+ lineDownLeftBoldRightBold: "┯",
288402
+ lineDownBoldLeftRight: "┰",
288403
+ lineDownBoldLeftBoldRight: "┱",
288404
+ lineDownBoldLeftRightBold: "┲",
288405
+ lineDownLeftRightBold: "┮",
288406
+ lineDownLeftBoldRight: "┭",
288407
+ lineDownDoubleLeftDoubleRightDouble: "╦",
288408
+ lineDownDoubleLeftRight: "╥",
288409
+ lineDownLeftDoubleRightDouble: "╤",
288410
+ lineUpLeftRight: "┴",
288411
+ lineUpBoldLeftBoldRightBold: "┻",
288412
+ lineUpLeftBoldRightBold: "┷",
288413
+ lineUpBoldLeftRight: "┸",
288414
+ lineUpBoldLeftBoldRight: "┹",
288415
+ lineUpBoldLeftRightBold: "┺",
288416
+ lineUpLeftRightBold: "┶",
288417
+ lineUpLeftBoldRight: "┵",
288418
+ lineUpDoubleLeftDoubleRightDouble: "╩",
288419
+ lineUpDoubleLeftRight: "╨",
288420
+ lineUpLeftDoubleRightDouble: "╧",
288421
+ lineUpDownLeftRight: "┼",
288422
+ lineUpBoldDownBoldLeftBoldRightBold: "╋",
288423
+ lineUpDownBoldLeftBoldRightBold: "╈",
288424
+ lineUpBoldDownLeftBoldRightBold: "╇",
288425
+ lineUpBoldDownBoldLeftRightBold: "╊",
288426
+ lineUpBoldDownBoldLeftBoldRight: "╉",
288427
+ lineUpBoldDownLeftRight: "╀",
288428
+ lineUpDownBoldLeftRight: "╁",
288429
+ lineUpDownLeftBoldRight: "┽",
288430
+ lineUpDownLeftRightBold: "┾",
288431
+ lineUpBoldDownBoldLeftRight: "╂",
288432
+ lineUpDownLeftBoldRightBold: "┿",
288433
+ lineUpBoldDownLeftBoldRight: "╃",
288434
+ lineUpBoldDownLeftRightBold: "╄",
288435
+ lineUpDownBoldLeftBoldRight: "╅",
288436
+ lineUpDownBoldLeftRightBold: "╆",
288437
+ lineUpDoubleDownDoubleLeftDoubleRightDouble: "╬",
288438
+ lineUpDoubleDownDoubleLeftRight: "╫",
288439
+ lineUpDownLeftDoubleRightDouble: "╪",
288440
+ lineCross: "╳",
288441
+ lineBackslash: "╲",
288442
+ lineSlash: "╱"
288443
+ };
288444
+ var specialMainSymbols2 = {
288445
+ tick: "✔",
288446
+ info: "ℹ",
288447
+ warning: "⚠",
288448
+ cross: "✘",
288449
+ squareSmall: "◻",
288450
+ squareSmallFilled: "◼",
288451
+ circle: "◯",
288452
+ circleFilled: "◉",
288453
+ circleDotted: "◌",
288454
+ circleDouble: "◎",
288455
+ circleCircle: "ⓞ",
288456
+ circleCross: "ⓧ",
288457
+ circlePipe: "Ⓘ",
288458
+ radioOn: "◉",
288459
+ radioOff: "◯",
288460
+ checkboxOn: "☒",
288461
+ checkboxOff: "☐",
288462
+ checkboxCircleOn: "ⓧ",
288463
+ checkboxCircleOff: "Ⓘ",
288464
+ pointer: "❯",
288465
+ triangleUpOutline: "△",
288466
+ triangleLeft: "◀",
288467
+ triangleRight: "▶",
288468
+ lozenge: "◆",
288469
+ lozengeOutline: "◇",
288470
+ hamburger: "☰",
288471
+ smiley: "㋡",
288472
+ mustache: "෴",
288473
+ star: "★",
288474
+ play: "▶",
288475
+ nodejs: "⬢",
288476
+ oneSeventh: "⅐",
288477
+ oneNinth: "⅑",
288478
+ oneTenth: "⅒"
288479
+ };
288480
+ var specialFallbackSymbols2 = {
288481
+ tick: "√",
288482
+ info: "i",
288483
+ warning: "‼",
288484
+ cross: "×",
288485
+ squareSmall: "□",
288486
+ squareSmallFilled: "■",
288487
+ circle: "( )",
288488
+ circleFilled: "(*)",
288489
+ circleDotted: "( )",
288490
+ circleDouble: "( )",
288491
+ circleCircle: "(○)",
288492
+ circleCross: "(×)",
288493
+ circlePipe: "(│)",
288494
+ radioOn: "(*)",
288495
+ radioOff: "( )",
288496
+ checkboxOn: "[×]",
288497
+ checkboxOff: "[ ]",
288498
+ checkboxCircleOn: "(×)",
288499
+ checkboxCircleOff: "( )",
288500
+ pointer: ">",
288501
+ triangleUpOutline: "∆",
288502
+ triangleLeft: "◄",
288503
+ triangleRight: "►",
288504
+ lozenge: "♦",
288505
+ lozengeOutline: "◊",
288506
+ hamburger: "≡",
288507
+ smiley: "☺",
288508
+ mustache: "┌─┐",
288509
+ star: "✶",
288510
+ play: "►",
288511
+ nodejs: "♦",
288512
+ oneSeventh: "1/7",
288513
+ oneNinth: "1/9",
288514
+ oneTenth: "1/10"
288515
+ };
288516
+ var mainSymbols2 = { ...common2, ...specialMainSymbols2 };
288517
+ var fallbackSymbols2 = {
288518
+ ...common2,
288519
+ ...specialFallbackSymbols2
288520
+ };
288521
+ var shouldUseMain2 = isUnicodeSupported3();
288522
+ var figures2 = shouldUseMain2 ? mainSymbols2 : fallbackSymbols2;
288523
+ var esm_default2 = figures2;
288524
+ var replacements2 = Object.entries(specialMainSymbols2);
288525
+
288526
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/theme.js
288527
+ var defaultTheme2 = {
288528
+ prefix: {
288529
+ idle: import_yoctocolors_cjs2.default.blue("?"),
288530
+ done: import_yoctocolors_cjs2.default.green(esm_default2.tick)
288531
+ },
288532
+ spinner: {
288533
+ interval: 80,
288534
+ frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs2.default.yellow(frame))
288535
+ },
288536
+ style: {
288537
+ answer: import_yoctocolors_cjs2.default.cyan,
288538
+ message: import_yoctocolors_cjs2.default.bold,
288539
+ error: (text2) => import_yoctocolors_cjs2.default.red(`> ${text2}`),
288540
+ defaultAnswer: (text2) => import_yoctocolors_cjs2.default.dim(`(${text2})`),
288541
+ help: import_yoctocolors_cjs2.default.dim,
288542
+ highlight: import_yoctocolors_cjs2.default.cyan,
288543
+ key: (text2) => import_yoctocolors_cjs2.default.cyan(import_yoctocolors_cjs2.default.bold(`<${text2}>`))
288544
+ }
288545
+ };
288546
+
288547
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
288548
+ function isPlainObject4(value5) {
288549
+ if (typeof value5 !== "object" || value5 === null)
288550
+ return false;
288551
+ let proto = value5;
288552
+ while (Object.getPrototypeOf(proto) !== null) {
288553
+ proto = Object.getPrototypeOf(proto);
288554
+ }
288555
+ return Object.getPrototypeOf(value5) === proto;
288556
+ }
288557
+ function deepMerge3(...objects) {
288558
+ const output = {};
288559
+ for (const obj of objects) {
288560
+ for (const [key, value5] of Object.entries(obj)) {
288561
+ const prevValue = output[key];
288562
+ output[key] = isPlainObject4(prevValue) && isPlainObject4(value5) ? deepMerge3(prevValue, value5) : value5;
288563
+ }
288564
+ }
288565
+ return output;
288566
+ }
288567
+ function makeTheme2(...themes) {
288568
+ const themesToMerge = [
288569
+ defaultTheme2,
288570
+ ...themes.filter((theme) => theme != null)
288571
+ ];
288572
+ return deepMerge3(...themesToMerge);
288573
+ }
288574
+
288575
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
288576
+ function usePrefix2({ status = "idle", theme }) {
288577
+ const [showLoader, setShowLoader] = useState2(false);
288578
+ const [tick, setTick] = useState2(0);
288579
+ const { prefix, spinner: spinner2 } = makeTheme2(theme);
288580
+ useEffect2(() => {
288581
+ if (status === "loading") {
288582
+ let tickInterval;
288583
+ let inc = -1;
288584
+ const delayTimeout = setTimeout(() => {
288585
+ setShowLoader(true);
288586
+ tickInterval = setInterval(() => {
288587
+ inc = inc + 1;
288588
+ setTick(inc % spinner2.frames.length);
288589
+ }, spinner2.interval);
288590
+ }, 300);
288591
+ return () => {
288592
+ clearTimeout(delayTimeout);
288593
+ clearInterval(tickInterval);
288594
+ };
288595
+ } else {
288596
+ setShowLoader(false);
288597
+ }
288598
+ }, [status]);
288599
+ if (showLoader) {
288600
+ return spinner2.frames[tick];
288601
+ }
288602
+ const iconName = status === "loading" ? "idle" : status;
288603
+ return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
288604
+ }
288605
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-memo.js
288606
+ function useMemo(fn, dependencies) {
288607
+ return withPointer2((pointer) => {
288608
+ const prev = pointer.get();
288609
+ if (!prev || prev.dependencies.length !== dependencies.length || prev.dependencies.some((dep, i7) => dep !== dependencies[i7])) {
288610
+ const value5 = fn();
288611
+ pointer.set({ value: value5, dependencies });
288612
+ return value5;
288613
+ }
288614
+ return prev.value;
288615
+ });
288616
+ }
288617
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
288618
+ function useRef2(val) {
288619
+ return useState2({ current: val })[0];
288620
+ }
288621
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
288622
+ function useKeypress2(userHandler) {
288623
+ const signal = useRef2(userHandler);
288624
+ signal.current = userHandler;
288625
+ useEffect2((rl) => {
288626
+ let ignore = false;
288627
+ const handler = withUpdates2((_input, event) => {
288628
+ if (ignore)
288629
+ return;
288630
+ signal.current(event, rl);
288631
+ });
288632
+ rl.input.on("keypress", handler);
288633
+ return () => {
288634
+ ignore = true;
288635
+ rl.input.removeListener("keypress", handler);
288636
+ };
288637
+ }, []);
288638
+ }
288639
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/utils.js
288640
+ var import_cli_width2 = __toESM(require_cli_width(), 1);
288641
+ var import_wrap_ansi2 = __toESM(require_wrap_ansi(), 1);
288642
+ function breakLines2(content, width) {
288643
+ return content.split(`
288644
+ `).flatMap((line) => import_wrap_ansi2.default(line, width, { trim: false, hard: true }).split(`
288645
+ `).map((str) => str.trimEnd())).join(`
288646
+ `);
288647
+ }
288648
+ function readlineWidth2() {
288649
+ return import_cli_width2.default({ defaultWidth: 80, output: readline3().output });
288650
+ }
288651
+
288652
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
288653
+ function usePointerPosition({ active, renderedItems, pageSize, loop }) {
288654
+ const state = useRef2({
288655
+ lastPointer: active,
288656
+ lastActive: undefined
288657
+ });
288658
+ const { lastPointer, lastActive } = state.current;
288659
+ const middle = Math.floor(pageSize / 2);
288660
+ const renderedLength = renderedItems.reduce((acc, item) => acc + item.length, 0);
288661
+ const defaultPointerPosition = renderedItems.slice(0, active).reduce((acc, item) => acc + item.length, 0);
288662
+ let pointer = defaultPointerPosition;
288663
+ if (renderedLength > pageSize) {
288664
+ if (loop) {
288665
+ pointer = lastPointer;
288666
+ if (lastActive != null && lastActive < active && active - lastActive < pageSize) {
288667
+ pointer = Math.min(middle, Math.abs(active - lastActive) === 1 ? Math.min(lastPointer + (renderedItems[lastActive]?.length ?? 0), Math.max(defaultPointerPosition, lastPointer)) : lastPointer + active - lastActive);
288668
+ }
288669
+ } else {
288670
+ const spaceUnderActive = renderedItems.slice(active).reduce((acc, item) => acc + item.length, 0);
288671
+ pointer = spaceUnderActive < pageSize - middle ? pageSize - spaceUnderActive : Math.min(defaultPointerPosition, middle);
288672
+ }
288673
+ }
288674
+ state.current.lastPointer = pointer;
288675
+ state.current.lastActive = active;
288676
+ return pointer;
288677
+ }
288678
+ function usePagination({ items, active, renderItem, pageSize, loop = true }) {
288679
+ const width = readlineWidth2();
288680
+ const bound = (num) => (num % items.length + items.length) % items.length;
288681
+ const renderedItems = items.map((item, index) => {
288682
+ if (item == null)
288683
+ return [];
288684
+ return breakLines2(renderItem({ item, index, isActive: index === active }), width).split(`
288685
+ `);
288686
+ });
288687
+ const renderedLength = renderedItems.reduce((acc, item) => acc + item.length, 0);
288688
+ const renderItemAtIndex = (index) => renderedItems[index] ?? [];
288689
+ const pointer = usePointerPosition({ active, renderedItems, pageSize, loop });
288690
+ const activeItem = renderItemAtIndex(active).slice(0, pageSize);
288691
+ const activeItemPosition = pointer + activeItem.length <= pageSize ? pointer : pageSize - activeItem.length;
288692
+ const pageBuffer = Array.from({ length: pageSize });
288693
+ pageBuffer.splice(activeItemPosition, activeItem.length, ...activeItem);
288694
+ const itemVisited = new Set([active]);
288695
+ let bufferPointer = activeItemPosition + activeItem.length;
288696
+ let itemPointer = bound(active + 1);
288697
+ while (bufferPointer < pageSize && !itemVisited.has(itemPointer) && (loop && renderedLength > pageSize ? itemPointer !== active : itemPointer > active)) {
288698
+ const lines = renderItemAtIndex(itemPointer);
288699
+ const linesToAdd = lines.slice(0, pageSize - bufferPointer);
288700
+ pageBuffer.splice(bufferPointer, linesToAdd.length, ...linesToAdd);
288701
+ itemVisited.add(itemPointer);
288702
+ bufferPointer += linesToAdd.length;
288703
+ itemPointer = bound(itemPointer + 1);
288704
+ }
288705
+ bufferPointer = activeItemPosition - 1;
288706
+ itemPointer = bound(active - 1);
288707
+ while (bufferPointer >= 0 && !itemVisited.has(itemPointer) && (loop && renderedLength > pageSize ? itemPointer !== active : itemPointer < active)) {
288708
+ const lines = renderItemAtIndex(itemPointer);
288709
+ const linesToAdd = lines.slice(Math.max(0, lines.length - bufferPointer - 1));
288710
+ pageBuffer.splice(bufferPointer - linesToAdd.length + 1, linesToAdd.length, ...linesToAdd);
288711
+ itemVisited.add(itemPointer);
288712
+ bufferPointer -= linesToAdd.length;
288713
+ itemPointer = bound(itemPointer - 1);
288714
+ }
288715
+ return pageBuffer.filter((line) => typeof line === "string").join(`
288716
+ `);
288717
+ }
288718
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
288719
+ var import_mute_stream2 = __toESM(require_lib13(), 1);
288720
+ import * as readline4 from "node:readline";
288721
+ import { AsyncResource as AsyncResource6 } from "node:async_hooks";
288722
+
288723
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
288724
+ import { stripVTControlCharacters as stripVTControlCharacters3 } from "node:util";
288725
+
288726
+ // ../../node_modules/.bun/@inquirer+ansi@1.0.1/node_modules/@inquirer/ansi/dist/esm/index.js
288727
+ var ESC2 = "\x1B[";
288728
+ var cursorLeft2 = ESC2 + "G";
288729
+ var cursorHide2 = ESC2 + "?25l";
288730
+ var cursorShow2 = ESC2 + "?25h";
288731
+ var cursorUp2 = (rows = 1) => rows > 0 ? `${ESC2}${rows}A` : "";
288732
+ var cursorDown2 = (rows = 1) => rows > 0 ? `${ESC2}${rows}B` : "";
288733
+ var cursorTo2 = (x6, y4) => {
288734
+ if (typeof y4 === "number" && !Number.isNaN(y4)) {
288735
+ return `${ESC2}${y4 + 1};${x6 + 1}H`;
288736
+ }
288737
+ return `${ESC2}${x6 + 1}G`;
288738
+ };
288739
+ var eraseLine2 = ESC2 + "2K";
288740
+ var eraseLines2 = (lines) => lines > 0 ? (eraseLine2 + cursorUp2(1)).repeat(lines - 1) + eraseLine2 + cursorLeft2 : "";
288741
+
288742
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
288743
+ var height2 = (content) => content.split(`
288744
+ `).length;
288745
+ var lastLine2 = (content) => content.split(`
288746
+ `).pop() ?? "";
288747
+
288748
+ class ScreenManager2 {
288749
+ height = 0;
288750
+ extraLinesUnderPrompt = 0;
288751
+ cursorPos;
288752
+ rl;
288753
+ constructor(rl) {
288754
+ this.rl = rl;
288755
+ this.cursorPos = rl.getCursorPos();
288756
+ }
288757
+ write(content) {
288758
+ this.rl.output.unmute();
288759
+ this.rl.output.write(content);
288760
+ this.rl.output.mute();
288761
+ }
288762
+ render(content, bottomContent = "") {
288763
+ const promptLine = lastLine2(content);
288764
+ const rawPromptLine = stripVTControlCharacters3(promptLine);
288765
+ let prompt = rawPromptLine;
288766
+ if (this.rl.line.length > 0) {
288767
+ prompt = prompt.slice(0, -this.rl.line.length);
288768
+ }
288769
+ this.rl.setPrompt(prompt);
288770
+ this.cursorPos = this.rl.getCursorPos();
288771
+ const width = readlineWidth2();
288772
+ content = breakLines2(content, width);
288773
+ bottomContent = breakLines2(bottomContent, width);
288774
+ if (rawPromptLine.length % width === 0) {
288775
+ content += `
288776
+ `;
288777
+ }
288778
+ let output = content + (bottomContent ? `
288779
+ ` + bottomContent : "");
288780
+ const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
288781
+ const bottomContentHeight = promptLineUpDiff + (bottomContent ? height2(bottomContent) : 0);
288782
+ if (bottomContentHeight > 0)
288783
+ output += cursorUp2(bottomContentHeight);
288784
+ output += cursorTo2(this.cursorPos.cols);
288785
+ this.write(cursorDown2(this.extraLinesUnderPrompt) + eraseLines2(this.height) + output);
288786
+ this.extraLinesUnderPrompt = bottomContentHeight;
288787
+ this.height = height2(output);
288788
+ }
288789
+ checkCursorPos() {
288790
+ const cursorPos = this.rl.getCursorPos();
288791
+ if (cursorPos.cols !== this.cursorPos.cols) {
288792
+ this.write(cursorTo2(cursorPos.cols));
288793
+ this.cursorPos = cursorPos;
288794
+ }
288795
+ }
288796
+ done({ clearContent }) {
288797
+ this.rl.setPrompt("");
288798
+ let output = cursorDown2(this.extraLinesUnderPrompt);
288799
+ output += clearContent ? eraseLines2(this.height) : `
288800
+ `;
288801
+ output += cursorShow2;
288802
+ this.write(output);
288803
+ this.rl.close();
288804
+ }
288805
+ }
288806
+
288807
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
288808
+ class PromisePolyfill2 extends Promise {
288809
+ static withResolver() {
288810
+ let resolve6;
288811
+ let reject;
288812
+ const promise2 = new Promise((res, rej) => {
288813
+ resolve6 = res;
288814
+ reject = rej;
288815
+ });
288816
+ return { promise: promise2, resolve: resolve6, reject };
288817
+ }
288818
+ }
288819
+
288820
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
288821
+ function getCallSites2() {
288822
+ const _prepareStackTrace = Error.prepareStackTrace;
288823
+ let result = [];
288824
+ try {
288825
+ Error.prepareStackTrace = (_5, callSites) => {
288826
+ const callSitesWithoutCurrent = callSites.slice(1);
288827
+ result = callSitesWithoutCurrent;
288828
+ return callSitesWithoutCurrent;
288829
+ };
288830
+ new Error().stack;
288831
+ } catch {
288832
+ return result;
288833
+ }
288834
+ Error.prepareStackTrace = _prepareStackTrace;
288835
+ return result;
288836
+ }
288837
+ function createPrompt2(view) {
288838
+ const callSites = getCallSites2();
288839
+ const prompt = (config3, context = {}) => {
288840
+ const { input = process.stdin, signal } = context;
288841
+ const cleanups = new Set;
288842
+ const output = new import_mute_stream2.default;
288843
+ output.pipe(context.output ?? process.stdout);
288844
+ const rl = readline4.createInterface({
288845
+ terminal: true,
288846
+ input,
288847
+ output
288848
+ });
288849
+ const screen = new ScreenManager2(rl);
288850
+ const { promise: promise2, resolve: resolve6, reject } = PromisePolyfill2.withResolver();
288851
+ const cancel3 = () => reject(new CancelPromptError2);
288852
+ if (signal) {
288853
+ const abort = () => reject(new AbortPromptError2({ cause: signal.reason }));
288854
+ if (signal.aborted) {
288855
+ abort();
288856
+ return Object.assign(promise2, { cancel: cancel3 });
288857
+ }
288858
+ signal.addEventListener("abort", abort);
288859
+ cleanups.add(() => signal.removeEventListener("abort", abort));
288860
+ }
288861
+ cleanups.add(onExit((code2, signal2) => {
288862
+ reject(new ExitPromptError2(`User force closed the prompt with ${code2} ${signal2}`));
288863
+ }));
288864
+ const sigint = () => reject(new ExitPromptError2(`User force closed the prompt with SIGINT`));
288865
+ rl.on("SIGINT", sigint);
288866
+ cleanups.add(() => rl.removeListener("SIGINT", sigint));
288867
+ const checkCursorPos = () => screen.checkCursorPos();
288868
+ rl.input.on("keypress", checkCursorPos);
288869
+ cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
288870
+ return withHooks2(rl, (cycle) => {
288871
+ const hooksCleanup = AsyncResource6.bind(() => effectScheduler2.clearAll());
288872
+ rl.on("close", hooksCleanup);
288873
+ cleanups.add(() => rl.removeListener("close", hooksCleanup));
288874
+ cycle(() => {
288875
+ try {
288876
+ const nextView = view(config3, (value5) => {
288877
+ setImmediate(() => resolve6(value5));
288878
+ });
288879
+ if (nextView === undefined) {
288880
+ const callerFilename = callSites[1]?.getFileName();
288881
+ throw new Error(`Prompt functions must return a string.
288882
+ at ${callerFilename}`);
288883
+ }
288884
+ const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
288885
+ screen.render(content, bottomContent);
288886
+ effectScheduler2.run();
288887
+ } catch (error51) {
288888
+ reject(error51);
288889
+ }
288890
+ });
288891
+ return Object.assign(promise2.then((answer) => {
288892
+ effectScheduler2.clearAll();
288893
+ return answer;
288894
+ }, (error51) => {
288895
+ effectScheduler2.clearAll();
288896
+ throw error51;
288897
+ }).finally(() => {
288898
+ cleanups.forEach((cleanup) => cleanup());
288899
+ screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
288900
+ output.end();
288901
+ }).then(() => promise2), { cancel: cancel3 });
288902
+ });
288903
+ };
288904
+ return prompt;
288905
+ }
288906
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/Separator.js
288907
+ var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
288908
+ class Separator {
288909
+ separator = import_yoctocolors_cjs3.default.dim(Array.from({ length: 15 }).join(esm_default2.line));
288910
+ type = "separator";
288911
+ constructor(separator) {
288912
+ if (separator) {
288913
+ this.separator = separator;
288914
+ }
288915
+ }
288916
+ static isSeparator(choice) {
288917
+ return Boolean(choice && typeof choice === "object" && "type" in choice && choice.type === "separator");
288918
+ }
288919
+ }
288158
288920
  // ../../node_modules/.bun/@inquirer+input@4.2.5+c30ff3a63f0500d5/node_modules/@inquirer/input/dist/esm/index.js
288159
288921
  var inputTheme = {
288160
288922
  validationFailureMode: "keep"
288161
288923
  };
288162
- var esm_default2 = createPrompt((config3, done) => {
288924
+ var esm_default3 = createPrompt2((config3, done) => {
288163
288925
  const { required: required2, validate: validate3 = () => true, prefill = "tab" } = config3;
288164
- const theme = makeTheme(inputTheme, config3.theme);
288165
- const [status, setStatus] = useState("idle");
288166
- const [defaultValue = "", setDefaultValue] = useState(config3.default);
288167
- const [errorMsg, setError] = useState();
288168
- const [value5, setValue] = useState("");
288169
- const prefix = usePrefix({ status, theme });
288170
- useKeypress(async (key, rl) => {
288926
+ const theme = makeTheme2(inputTheme, config3.theme);
288927
+ const [status, setStatus] = useState2("idle");
288928
+ const [defaultValue = "", setDefaultValue] = useState2(config3.default);
288929
+ const [errorMsg, setError] = useState2();
288930
+ const [value5, setValue] = useState2("");
288931
+ const prefix = usePrefix2({ status, theme });
288932
+ useKeypress2(async (key, rl) => {
288171
288933
  if (status !== "idle") {
288172
288934
  return;
288173
288935
  }
288174
- if (isEnterKey(key)) {
288936
+ if (isEnterKey2(key)) {
288175
288937
  const answer = value5 || defaultValue;
288176
288938
  setStatus("loading");
288177
288939
  const isValid = required2 && !answer ? "You must provide a value" : await validate3(answer);
@@ -288188,9 +288950,9 @@ var esm_default2 = createPrompt((config3, done) => {
288188
288950
  setError(isValid || "You must provide a valid value");
288189
288951
  setStatus("idle");
288190
288952
  }
288191
- } else if (isBackspaceKey(key) && !value5) {
288953
+ } else if (isBackspaceKey2(key) && !value5) {
288192
288954
  setDefaultValue(undefined);
288193
- } else if (isTabKey(key) && !value5) {
288955
+ } else if (isTabKey2(key) && !value5) {
288194
288956
  setDefaultValue(undefined);
288195
288957
  rl.clearLine(0);
288196
288958
  rl.write(defaultValue);
@@ -288200,7 +288962,7 @@ var esm_default2 = createPrompt((config3, done) => {
288200
288962
  setError(undefined);
288201
288963
  }
288202
288964
  });
288203
- useEffect((rl) => {
288965
+ useEffect2((rl) => {
288204
288966
  if (prefill === "editable" && defaultValue) {
288205
288967
  rl.write(defaultValue);
288206
288968
  setValue(defaultValue);
@@ -288237,7 +288999,7 @@ async function subgraphNamePrompt({
288237
288999
  if (accept) {
288238
289000
  return defaultSubgraphName ?? env2.SETTLEMINT_THEGRAPH_DEFAULT_SUBGRAPH;
288239
289001
  }
288240
- const subgraphName = await esm_default2({
289002
+ const subgraphName = await esm_default3({
288241
289003
  message: "What is the name of your subgraph?",
288242
289004
  default: defaultSubgraphName,
288243
289005
  required: true
@@ -288246,13 +289008,13 @@ async function subgraphNamePrompt({
288246
289008
  }
288247
289009
 
288248
289010
  // ../../node_modules/.bun/@inquirer+select@4.4.0+c30ff3a63f0500d5/node_modules/@inquirer/select/dist/esm/index.js
288249
- var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
289011
+ var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
288250
289012
  var selectTheme = {
288251
- icon: { cursor: esm_default.pointer },
289013
+ icon: { cursor: esm_default2.pointer },
288252
289014
  style: {
288253
- disabled: (text2) => import_yoctocolors_cjs3.default.dim(`- ${text2}`),
288254
- description: (text2) => import_yoctocolors_cjs3.default.cyan(text2),
288255
- 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(" • "))
288256
289018
  },
288257
289019
  helpMode: "always",
288258
289020
  indexMode: "hidden",
@@ -288286,20 +289048,20 @@ function normalizeChoices(choices) {
288286
289048
  return normalizedChoice;
288287
289049
  });
288288
289050
  }
288289
- var esm_default3 = createPrompt((config3, done) => {
289051
+ var esm_default4 = createPrompt2((config3, done) => {
288290
289052
  const { loop = true, pageSize = 7 } = config3;
288291
- const theme = makeTheme(selectTheme, config3.theme);
289053
+ const theme = makeTheme2(selectTheme, config3.theme);
288292
289054
  const { keybindings } = theme;
288293
- const [status, setStatus] = useState("idle");
288294
- const prefix = usePrefix({ status, theme });
288295
- const searchTimeoutRef = useRef();
289055
+ const [status, setStatus] = useState2("idle");
289056
+ const prefix = usePrefix2({ status, theme });
289057
+ const searchTimeoutRef = useRef2();
288296
289058
  const searchEnabled = !keybindings.includes("vim");
288297
289059
  const items = useMemo(() => normalizeChoices(config3.choices), [config3.choices]);
288298
289060
  const bounds = useMemo(() => {
288299
289061
  const first = items.findIndex(isSelectable);
288300
289062
  const last = items.findLastIndex(isSelectable);
288301
289063
  if (first === -1) {
288302
- 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.");
288303
289065
  }
288304
289066
  return { first, last };
288305
289067
  }, [items]);
@@ -288308,24 +289070,24 @@ var esm_default3 = createPrompt((config3, done) => {
288308
289070
  return -1;
288309
289071
  return items.findIndex((item) => isSelectable(item) && item.value === config3.default);
288310
289072
  }, [config3.default, items]);
288311
- const [active, setActive] = useState(defaultItemIndex === -1 ? bounds.first : defaultItemIndex);
289073
+ const [active, setActive] = useState2(defaultItemIndex === -1 ? bounds.first : defaultItemIndex);
288312
289074
  const selectedChoice = items[active];
288313
- useKeypress((key, rl) => {
289075
+ useKeypress2((key, rl) => {
288314
289076
  clearTimeout(searchTimeoutRef.current);
288315
- if (isEnterKey(key)) {
289077
+ if (isEnterKey2(key)) {
288316
289078
  setStatus("done");
288317
289079
  done(selectedChoice.value);
288318
- } else if (isUpKey(key, keybindings) || isDownKey(key, keybindings)) {
289080
+ } else if (isUpKey2(key, keybindings) || isDownKey2(key, keybindings)) {
288319
289081
  rl.clearLine(0);
288320
- if (loop || isUpKey(key, keybindings) && active !== bounds.first || isDownKey(key, keybindings) && active !== bounds.last) {
288321
- 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;
288322
289084
  let next = active;
288323
289085
  do {
288324
289086
  next = (next + offset + items.length) % items.length;
288325
289087
  } while (!isSelectable(items[next]));
288326
289088
  setActive(next);
288327
289089
  }
288328
- } else if (isNumberKey(key) && !Number.isNaN(Number(rl.line))) {
289090
+ } else if (isNumberKey2(key) && !Number.isNaN(Number(rl.line))) {
288329
289091
  const selectedIndex = Number(rl.line) - 1;
288330
289092
  let selectableIndex = -1;
288331
289093
  const position = items.findIndex((item2) => {
@@ -288341,7 +289103,7 @@ var esm_default3 = createPrompt((config3, done) => {
288341
289103
  searchTimeoutRef.current = setTimeout(() => {
288342
289104
  rl.clearLine(0);
288343
289105
  }, 700);
288344
- } else if (isBackspaceKey(key)) {
289106
+ } else if (isBackspaceKey2(key)) {
288345
289107
  rl.clearLine(0);
288346
289108
  } else if (searchEnabled) {
288347
289109
  const searchTerm = rl.line.toLowerCase();
@@ -288358,7 +289120,7 @@ var esm_default3 = createPrompt((config3, done) => {
288358
289120
  }, 700);
288359
289121
  }
288360
289122
  });
288361
- useEffect(() => () => {
289123
+ useEffect2(() => () => {
288362
289124
  clearTimeout(searchTimeoutRef.current);
288363
289125
  }, []);
288364
289126
  const message = theme.style.message(config3.message, status);
@@ -288407,7 +289169,7 @@ var esm_default3 = createPrompt((config3, done) => {
288407
289169
  helpLine
288408
289170
  ].filter(Boolean).join(`
288409
289171
  `).trimEnd();
288410
- return `${lines}${cursorHide}`;
289172
+ return `${lines}${cursorHide2}`;
288411
289173
  });
288412
289174
 
288413
289175
  // src/prompts/smart-contract-set/subgraph.prompt.ts
@@ -288461,7 +289223,7 @@ async function subgraphPrompt({
288461
289223
  } else {
288462
289224
  defaultChoice = env2.SETTLEMINT_THEGRAPH_DEFAULT_SUBGRAPH ?? subgraphNames[0];
288463
289225
  }
288464
- 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({
288465
289227
  message,
288466
289228
  choices: choices.map((name4) => ({
288467
289229
  name: name4,
@@ -313924,768 +314686,6 @@ function extractInfoFromBody(body) {
313924
314686
  }
313925
314687
  }
313926
314688
 
313927
- // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/key.js
313928
- var isTabKey2 = (key) => key.name === "tab";
313929
- var isEnterKey2 = (key) => key.name === "enter" || key.name === "return";
313930
- // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/errors.js
313931
- class AbortPromptError2 extends Error {
313932
- name = "AbortPromptError";
313933
- message = "Prompt was aborted";
313934
- constructor(options) {
313935
- super();
313936
- this.cause = options?.cause;
313937
- }
313938
- }
313939
-
313940
- class CancelPromptError2 extends Error {
313941
- name = "CancelPromptError";
313942
- message = "Prompt was canceled";
313943
- }
313944
-
313945
- class ExitPromptError2 extends Error {
313946
- name = "ExitPromptError";
313947
- }
313948
-
313949
- class HookError2 extends Error {
313950
- name = "HookError";
313951
- }
313952
-
313953
- class ValidationError2 extends Error {
313954
- name = "ValidationError";
313955
- }
313956
- // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-state.js
313957
- import { AsyncResource as AsyncResource5 } from "node:async_hooks";
313958
-
313959
- // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
313960
- import { AsyncLocalStorage as AsyncLocalStorage2, AsyncResource as AsyncResource4 } from "node:async_hooks";
313961
- var hookStorage2 = new AsyncLocalStorage2;
313962
- function createStore2(rl) {
313963
- const store = {
313964
- rl,
313965
- hooks: [],
313966
- hooksCleanup: [],
313967
- hooksEffect: [],
313968
- index: 0,
313969
- handleChange() {}
313970
- };
313971
- return store;
313972
- }
313973
- function withHooks2(rl, cb) {
313974
- const store = createStore2(rl);
313975
- return hookStorage2.run(store, () => {
313976
- function cycle(render) {
313977
- store.handleChange = () => {
313978
- store.index = 0;
313979
- render();
313980
- };
313981
- store.handleChange();
313982
- }
313983
- return cb(cycle);
313984
- });
313985
- }
313986
- function getStore2() {
313987
- const store = hookStorage2.getStore();
313988
- if (!store) {
313989
- throw new HookError2("[Inquirer] Hook functions can only be called from within a prompt");
313990
- }
313991
- return store;
313992
- }
313993
- function readline3() {
313994
- return getStore2().rl;
313995
- }
313996
- function withUpdates2(fn) {
313997
- const wrapped = (...args) => {
313998
- const store = getStore2();
313999
- let shouldUpdate = false;
314000
- const oldHandleChange = store.handleChange;
314001
- store.handleChange = () => {
314002
- shouldUpdate = true;
314003
- };
314004
- const returnValue = fn(...args);
314005
- if (shouldUpdate) {
314006
- oldHandleChange();
314007
- }
314008
- store.handleChange = oldHandleChange;
314009
- return returnValue;
314010
- };
314011
- return AsyncResource4.bind(wrapped);
314012
- }
314013
- function withPointer2(cb) {
314014
- const store = getStore2();
314015
- const { index: index2 } = store;
314016
- const pointer = {
314017
- get() {
314018
- return store.hooks[index2];
314019
- },
314020
- set(value5) {
314021
- store.hooks[index2] = value5;
314022
- },
314023
- initialized: index2 in store.hooks
314024
- };
314025
- const returnValue = cb(pointer);
314026
- store.index++;
314027
- return returnValue;
314028
- }
314029
- function handleChange2() {
314030
- getStore2().handleChange();
314031
- }
314032
- var effectScheduler2 = {
314033
- queue(cb) {
314034
- const store = getStore2();
314035
- const { index: index2 } = store;
314036
- store.hooksEffect.push(() => {
314037
- store.hooksCleanup[index2]?.();
314038
- const cleanFn = cb(readline3());
314039
- if (cleanFn != null && typeof cleanFn !== "function") {
314040
- throw new ValidationError2("useEffect return value must be a cleanup function or nothing.");
314041
- }
314042
- store.hooksCleanup[index2] = cleanFn;
314043
- });
314044
- },
314045
- run() {
314046
- const store = getStore2();
314047
- withUpdates2(() => {
314048
- store.hooksEffect.forEach((effect) => {
314049
- effect();
314050
- });
314051
- store.hooksEffect.length = 0;
314052
- })();
314053
- },
314054
- clearAll() {
314055
- const store = getStore2();
314056
- store.hooksCleanup.forEach((cleanFn) => {
314057
- cleanFn?.();
314058
- });
314059
- store.hooksEffect.length = 0;
314060
- store.hooksCleanup.length = 0;
314061
- }
314062
- };
314063
-
314064
- // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-state.js
314065
- function useState2(defaultValue) {
314066
- return withPointer2((pointer) => {
314067
- const setState = AsyncResource5.bind(function setState(newValue) {
314068
- if (pointer.get() !== newValue) {
314069
- pointer.set(newValue);
314070
- handleChange2();
314071
- }
314072
- });
314073
- if (pointer.initialized) {
314074
- return [pointer.get(), setState];
314075
- }
314076
- const value5 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
314077
- pointer.set(value5);
314078
- return [value5, setState];
314079
- });
314080
- }
314081
-
314082
- // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
314083
- function useEffect2(cb, depArray) {
314084
- withPointer2((pointer) => {
314085
- const oldDeps = pointer.get();
314086
- const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i7) => !Object.is(dep, oldDeps[i7]));
314087
- if (hasChanged) {
314088
- effectScheduler2.queue(cb);
314089
- }
314090
- pointer.set(depArray);
314091
- });
314092
- }
314093
-
314094
- // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/theme.js
314095
- var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
314096
-
314097
- // ../../node_modules/.bun/@inquirer+figures@1.0.15/node_modules/@inquirer/figures/dist/esm/index.js
314098
- import process8 from "node:process";
314099
- function isUnicodeSupported3() {
314100
- if (process8.platform !== "win32") {
314101
- return process8.env["TERM"] !== "linux";
314102
- }
314103
- 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";
314104
- }
314105
- var common2 = {
314106
- circleQuestionMark: "(?)",
314107
- questionMarkPrefix: "(?)",
314108
- square: "█",
314109
- squareDarkShade: "▓",
314110
- squareMediumShade: "▒",
314111
- squareLightShade: "░",
314112
- squareTop: "▀",
314113
- squareBottom: "▄",
314114
- squareLeft: "▌",
314115
- squareRight: "▐",
314116
- squareCenter: "■",
314117
- bullet: "●",
314118
- dot: "․",
314119
- ellipsis: "…",
314120
- pointerSmall: "›",
314121
- triangleUp: "▲",
314122
- triangleUpSmall: "▴",
314123
- triangleDown: "▼",
314124
- triangleDownSmall: "▾",
314125
- triangleLeftSmall: "◂",
314126
- triangleRightSmall: "▸",
314127
- home: "⌂",
314128
- heart: "♥",
314129
- musicNote: "♪",
314130
- musicNoteBeamed: "♫",
314131
- arrowUp: "↑",
314132
- arrowDown: "↓",
314133
- arrowLeft: "←",
314134
- arrowRight: "→",
314135
- arrowLeftRight: "↔",
314136
- arrowUpDown: "↕",
314137
- almostEqual: "≈",
314138
- notEqual: "≠",
314139
- lessOrEqual: "≤",
314140
- greaterOrEqual: "≥",
314141
- identical: "≡",
314142
- infinity: "∞",
314143
- subscriptZero: "₀",
314144
- subscriptOne: "₁",
314145
- subscriptTwo: "₂",
314146
- subscriptThree: "₃",
314147
- subscriptFour: "₄",
314148
- subscriptFive: "₅",
314149
- subscriptSix: "₆",
314150
- subscriptSeven: "₇",
314151
- subscriptEight: "₈",
314152
- subscriptNine: "₉",
314153
- oneHalf: "½",
314154
- oneThird: "⅓",
314155
- oneQuarter: "¼",
314156
- oneFifth: "⅕",
314157
- oneSixth: "⅙",
314158
- oneEighth: "⅛",
314159
- twoThirds: "⅔",
314160
- twoFifths: "⅖",
314161
- threeQuarters: "¾",
314162
- threeFifths: "⅗",
314163
- threeEighths: "⅜",
314164
- fourFifths: "⅘",
314165
- fiveSixths: "⅚",
314166
- fiveEighths: "⅝",
314167
- sevenEighths: "⅞",
314168
- line: "─",
314169
- lineBold: "━",
314170
- lineDouble: "═",
314171
- lineDashed0: "┄",
314172
- lineDashed1: "┅",
314173
- lineDashed2: "┈",
314174
- lineDashed3: "┉",
314175
- lineDashed4: "╌",
314176
- lineDashed5: "╍",
314177
- lineDashed6: "╴",
314178
- lineDashed7: "╶",
314179
- lineDashed8: "╸",
314180
- lineDashed9: "╺",
314181
- lineDashed10: "╼",
314182
- lineDashed11: "╾",
314183
- lineDashed12: "−",
314184
- lineDashed13: "–",
314185
- lineDashed14: "‐",
314186
- lineDashed15: "⁃",
314187
- lineVertical: "│",
314188
- lineVerticalBold: "┃",
314189
- lineVerticalDouble: "║",
314190
- lineVerticalDashed0: "┆",
314191
- lineVerticalDashed1: "┇",
314192
- lineVerticalDashed2: "┊",
314193
- lineVerticalDashed3: "┋",
314194
- lineVerticalDashed4: "╎",
314195
- lineVerticalDashed5: "╏",
314196
- lineVerticalDashed6: "╵",
314197
- lineVerticalDashed7: "╷",
314198
- lineVerticalDashed8: "╹",
314199
- lineVerticalDashed9: "╻",
314200
- lineVerticalDashed10: "╽",
314201
- lineVerticalDashed11: "╿",
314202
- lineDownLeft: "┐",
314203
- lineDownLeftArc: "╮",
314204
- lineDownBoldLeftBold: "┓",
314205
- lineDownBoldLeft: "┒",
314206
- lineDownLeftBold: "┑",
314207
- lineDownDoubleLeftDouble: "╗",
314208
- lineDownDoubleLeft: "╖",
314209
- lineDownLeftDouble: "╕",
314210
- lineDownRight: "┌",
314211
- lineDownRightArc: "╭",
314212
- lineDownBoldRightBold: "┏",
314213
- lineDownBoldRight: "┎",
314214
- lineDownRightBold: "┍",
314215
- lineDownDoubleRightDouble: "╔",
314216
- lineDownDoubleRight: "╓",
314217
- lineDownRightDouble: "╒",
314218
- lineUpLeft: "┘",
314219
- lineUpLeftArc: "╯",
314220
- lineUpBoldLeftBold: "┛",
314221
- lineUpBoldLeft: "┚",
314222
- lineUpLeftBold: "┙",
314223
- lineUpDoubleLeftDouble: "╝",
314224
- lineUpDoubleLeft: "╜",
314225
- lineUpLeftDouble: "╛",
314226
- lineUpRight: "└",
314227
- lineUpRightArc: "╰",
314228
- lineUpBoldRightBold: "┗",
314229
- lineUpBoldRight: "┖",
314230
- lineUpRightBold: "┕",
314231
- lineUpDoubleRightDouble: "╚",
314232
- lineUpDoubleRight: "╙",
314233
- lineUpRightDouble: "╘",
314234
- lineUpDownLeft: "┤",
314235
- lineUpBoldDownBoldLeftBold: "┫",
314236
- lineUpBoldDownBoldLeft: "┨",
314237
- lineUpDownLeftBold: "┥",
314238
- lineUpBoldDownLeftBold: "┩",
314239
- lineUpDownBoldLeftBold: "┪",
314240
- lineUpDownBoldLeft: "┧",
314241
- lineUpBoldDownLeft: "┦",
314242
- lineUpDoubleDownDoubleLeftDouble: "╣",
314243
- lineUpDoubleDownDoubleLeft: "╢",
314244
- lineUpDownLeftDouble: "╡",
314245
- lineUpDownRight: "├",
314246
- lineUpBoldDownBoldRightBold: "┣",
314247
- lineUpBoldDownBoldRight: "┠",
314248
- lineUpDownRightBold: "┝",
314249
- lineUpBoldDownRightBold: "┡",
314250
- lineUpDownBoldRightBold: "┢",
314251
- lineUpDownBoldRight: "┟",
314252
- lineUpBoldDownRight: "┞",
314253
- lineUpDoubleDownDoubleRightDouble: "╠",
314254
- lineUpDoubleDownDoubleRight: "╟",
314255
- lineUpDownRightDouble: "╞",
314256
- lineDownLeftRight: "┬",
314257
- lineDownBoldLeftBoldRightBold: "┳",
314258
- lineDownLeftBoldRightBold: "┯",
314259
- lineDownBoldLeftRight: "┰",
314260
- lineDownBoldLeftBoldRight: "┱",
314261
- lineDownBoldLeftRightBold: "┲",
314262
- lineDownLeftRightBold: "┮",
314263
- lineDownLeftBoldRight: "┭",
314264
- lineDownDoubleLeftDoubleRightDouble: "╦",
314265
- lineDownDoubleLeftRight: "╥",
314266
- lineDownLeftDoubleRightDouble: "╤",
314267
- lineUpLeftRight: "┴",
314268
- lineUpBoldLeftBoldRightBold: "┻",
314269
- lineUpLeftBoldRightBold: "┷",
314270
- lineUpBoldLeftRight: "┸",
314271
- lineUpBoldLeftBoldRight: "┹",
314272
- lineUpBoldLeftRightBold: "┺",
314273
- lineUpLeftRightBold: "┶",
314274
- lineUpLeftBoldRight: "┵",
314275
- lineUpDoubleLeftDoubleRightDouble: "╩",
314276
- lineUpDoubleLeftRight: "╨",
314277
- lineUpLeftDoubleRightDouble: "╧",
314278
- lineUpDownLeftRight: "┼",
314279
- lineUpBoldDownBoldLeftBoldRightBold: "╋",
314280
- lineUpDownBoldLeftBoldRightBold: "╈",
314281
- lineUpBoldDownLeftBoldRightBold: "╇",
314282
- lineUpBoldDownBoldLeftRightBold: "╊",
314283
- lineUpBoldDownBoldLeftBoldRight: "╉",
314284
- lineUpBoldDownLeftRight: "╀",
314285
- lineUpDownBoldLeftRight: "╁",
314286
- lineUpDownLeftBoldRight: "┽",
314287
- lineUpDownLeftRightBold: "┾",
314288
- lineUpBoldDownBoldLeftRight: "╂",
314289
- lineUpDownLeftBoldRightBold: "┿",
314290
- lineUpBoldDownLeftBoldRight: "╃",
314291
- lineUpBoldDownLeftRightBold: "╄",
314292
- lineUpDownBoldLeftBoldRight: "╅",
314293
- lineUpDownBoldLeftRightBold: "╆",
314294
- lineUpDoubleDownDoubleLeftDoubleRightDouble: "╬",
314295
- lineUpDoubleDownDoubleLeftRight: "╫",
314296
- lineUpDownLeftDoubleRightDouble: "╪",
314297
- lineCross: "╳",
314298
- lineBackslash: "╲",
314299
- lineSlash: "╱"
314300
- };
314301
- var specialMainSymbols2 = {
314302
- tick: "✔",
314303
- info: "ℹ",
314304
- warning: "⚠",
314305
- cross: "✘",
314306
- squareSmall: "◻",
314307
- squareSmallFilled: "◼",
314308
- circle: "◯",
314309
- circleFilled: "◉",
314310
- circleDotted: "◌",
314311
- circleDouble: "◎",
314312
- circleCircle: "ⓞ",
314313
- circleCross: "ⓧ",
314314
- circlePipe: "Ⓘ",
314315
- radioOn: "◉",
314316
- radioOff: "◯",
314317
- checkboxOn: "☒",
314318
- checkboxOff: "☐",
314319
- checkboxCircleOn: "ⓧ",
314320
- checkboxCircleOff: "Ⓘ",
314321
- pointer: "❯",
314322
- triangleUpOutline: "△",
314323
- triangleLeft: "◀",
314324
- triangleRight: "▶",
314325
- lozenge: "◆",
314326
- lozengeOutline: "◇",
314327
- hamburger: "☰",
314328
- smiley: "㋡",
314329
- mustache: "෴",
314330
- star: "★",
314331
- play: "▶",
314332
- nodejs: "⬢",
314333
- oneSeventh: "⅐",
314334
- oneNinth: "⅑",
314335
- oneTenth: "⅒"
314336
- };
314337
- var specialFallbackSymbols2 = {
314338
- tick: "√",
314339
- info: "i",
314340
- warning: "‼",
314341
- cross: "×",
314342
- squareSmall: "□",
314343
- squareSmallFilled: "■",
314344
- circle: "( )",
314345
- circleFilled: "(*)",
314346
- circleDotted: "( )",
314347
- circleDouble: "( )",
314348
- circleCircle: "(○)",
314349
- circleCross: "(×)",
314350
- circlePipe: "(│)",
314351
- radioOn: "(*)",
314352
- radioOff: "( )",
314353
- checkboxOn: "[×]",
314354
- checkboxOff: "[ ]",
314355
- checkboxCircleOn: "(×)",
314356
- checkboxCircleOff: "( )",
314357
- pointer: ">",
314358
- triangleUpOutline: "∆",
314359
- triangleLeft: "◄",
314360
- triangleRight: "►",
314361
- lozenge: "♦",
314362
- lozengeOutline: "◊",
314363
- hamburger: "≡",
314364
- smiley: "☺",
314365
- mustache: "┌─┐",
314366
- star: "✶",
314367
- play: "►",
314368
- nodejs: "♦",
314369
- oneSeventh: "1/7",
314370
- oneNinth: "1/9",
314371
- oneTenth: "1/10"
314372
- };
314373
- var mainSymbols2 = {
314374
- ...common2,
314375
- ...specialMainSymbols2
314376
- };
314377
- var fallbackSymbols2 = {
314378
- ...common2,
314379
- ...specialFallbackSymbols2
314380
- };
314381
- var shouldUseMain2 = isUnicodeSupported3();
314382
- var figures2 = shouldUseMain2 ? mainSymbols2 : fallbackSymbols2;
314383
- var esm_default4 = figures2;
314384
- var replacements2 = Object.entries(specialMainSymbols2);
314385
-
314386
- // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/theme.js
314387
- var defaultTheme2 = {
314388
- prefix: {
314389
- idle: import_yoctocolors_cjs4.default.blue("?"),
314390
- done: import_yoctocolors_cjs4.default.green(esm_default4.tick)
314391
- },
314392
- spinner: {
314393
- interval: 80,
314394
- frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs4.default.yellow(frame))
314395
- },
314396
- style: {
314397
- answer: import_yoctocolors_cjs4.default.cyan,
314398
- message: import_yoctocolors_cjs4.default.bold,
314399
- error: (text2) => import_yoctocolors_cjs4.default.red(`> ${text2}`),
314400
- defaultAnswer: (text2) => import_yoctocolors_cjs4.default.dim(`(${text2})`),
314401
- help: import_yoctocolors_cjs4.default.dim,
314402
- highlight: import_yoctocolors_cjs4.default.cyan,
314403
- key: (text2) => import_yoctocolors_cjs4.default.cyan(import_yoctocolors_cjs4.default.bold(`<${text2}>`))
314404
- }
314405
- };
314406
-
314407
- // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
314408
- function isPlainObject4(value5) {
314409
- if (typeof value5 !== "object" || value5 === null)
314410
- return false;
314411
- let proto = value5;
314412
- while (Object.getPrototypeOf(proto) !== null) {
314413
- proto = Object.getPrototypeOf(proto);
314414
- }
314415
- return Object.getPrototypeOf(value5) === proto;
314416
- }
314417
- function deepMerge3(...objects) {
314418
- const output = {};
314419
- for (const obj of objects) {
314420
- for (const [key, value5] of Object.entries(obj)) {
314421
- const prevValue = output[key];
314422
- output[key] = isPlainObject4(prevValue) && isPlainObject4(value5) ? deepMerge3(prevValue, value5) : value5;
314423
- }
314424
- }
314425
- return output;
314426
- }
314427
- function makeTheme2(...themes) {
314428
- const themesToMerge = [
314429
- defaultTheme2,
314430
- ...themes.filter((theme) => theme != null)
314431
- ];
314432
- return deepMerge3(...themesToMerge);
314433
- }
314434
-
314435
- // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
314436
- function usePrefix2({ status = "idle", theme }) {
314437
- const [showLoader, setShowLoader] = useState2(false);
314438
- const [tick, setTick] = useState2(0);
314439
- const { prefix, spinner: spinner2 } = makeTheme2(theme);
314440
- useEffect2(() => {
314441
- if (status === "loading") {
314442
- let tickInterval;
314443
- let inc = -1;
314444
- const delayTimeout = setTimeout(() => {
314445
- setShowLoader(true);
314446
- tickInterval = setInterval(() => {
314447
- inc = inc + 1;
314448
- setTick(inc % spinner2.frames.length);
314449
- }, spinner2.interval);
314450
- }, 300);
314451
- return () => {
314452
- clearTimeout(delayTimeout);
314453
- clearInterval(tickInterval);
314454
- };
314455
- } else {
314456
- setShowLoader(false);
314457
- }
314458
- }, [status]);
314459
- if (showLoader) {
314460
- return spinner2.frames[tick];
314461
- }
314462
- const iconName = status === "loading" ? "idle" : status;
314463
- return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
314464
- }
314465
- // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
314466
- function useRef2(val) {
314467
- return useState2({ current: val })[0];
314468
- }
314469
-
314470
- // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
314471
- function useKeypress2(userHandler) {
314472
- const signal = useRef2(userHandler);
314473
- signal.current = userHandler;
314474
- useEffect2((rl) => {
314475
- let ignore = false;
314476
- const handler = withUpdates2((_input, event) => {
314477
- if (ignore)
314478
- return;
314479
- signal.current(event, rl);
314480
- });
314481
- rl.input.on("keypress", handler);
314482
- return () => {
314483
- ignore = true;
314484
- rl.input.removeListener("keypress", handler);
314485
- };
314486
- }, []);
314487
- }
314488
- // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/utils.js
314489
- var import_cli_width2 = __toESM(require_cli_width(), 1);
314490
- var import_wrap_ansi2 = __toESM(require_wrap_ansi(), 1);
314491
- function breakLines2(content, width) {
314492
- return content.split(`
314493
- `).flatMap((line) => import_wrap_ansi2.default(line, width, { trim: false, hard: true }).split(`
314494
- `).map((str) => str.trimEnd())).join(`
314495
- `);
314496
- }
314497
- function readlineWidth2() {
314498
- return import_cli_width2.default({ defaultWidth: 80, output: readline3().output });
314499
- }
314500
-
314501
- // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
314502
- var import_mute_stream2 = __toESM(require_lib13(), 1);
314503
- import * as readline4 from "node:readline";
314504
- import { AsyncResource as AsyncResource6 } from "node:async_hooks";
314505
-
314506
- // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
314507
- import { stripVTControlCharacters as stripVTControlCharacters3 } from "node:util";
314508
-
314509
- // ../../node_modules/.bun/@inquirer+ansi@1.0.2/node_modules/@inquirer/ansi/dist/esm/index.js
314510
- var ESC2 = "\x1B[";
314511
- var cursorLeft2 = ESC2 + "G";
314512
- var cursorHide2 = ESC2 + "?25l";
314513
- var cursorShow2 = ESC2 + "?25h";
314514
- var cursorUp2 = (rows = 1) => rows > 0 ? `${ESC2}${rows}A` : "";
314515
- var cursorDown2 = (rows = 1) => rows > 0 ? `${ESC2}${rows}B` : "";
314516
- var cursorTo2 = (x6, y4) => {
314517
- if (typeof y4 === "number" && !Number.isNaN(y4)) {
314518
- return `${ESC2}${y4 + 1};${x6 + 1}H`;
314519
- }
314520
- return `${ESC2}${x6 + 1}G`;
314521
- };
314522
- var eraseLine2 = ESC2 + "2K";
314523
- var eraseLines2 = (lines) => lines > 0 ? (eraseLine2 + cursorUp2(1)).repeat(lines - 1) + eraseLine2 + cursorLeft2 : "";
314524
-
314525
- // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
314526
- var height2 = (content) => content.split(`
314527
- `).length;
314528
- var lastLine2 = (content) => content.split(`
314529
- `).pop() ?? "";
314530
-
314531
- class ScreenManager2 {
314532
- height = 0;
314533
- extraLinesUnderPrompt = 0;
314534
- cursorPos;
314535
- rl;
314536
- constructor(rl) {
314537
- this.rl = rl;
314538
- this.cursorPos = rl.getCursorPos();
314539
- }
314540
- write(content) {
314541
- this.rl.output.unmute();
314542
- this.rl.output.write(content);
314543
- this.rl.output.mute();
314544
- }
314545
- render(content, bottomContent = "") {
314546
- const promptLine = lastLine2(content);
314547
- const rawPromptLine = stripVTControlCharacters3(promptLine);
314548
- let prompt = rawPromptLine;
314549
- if (this.rl.line.length > 0) {
314550
- prompt = prompt.slice(0, -this.rl.line.length);
314551
- }
314552
- this.rl.setPrompt(prompt);
314553
- this.cursorPos = this.rl.getCursorPos();
314554
- const width = readlineWidth2();
314555
- content = breakLines2(content, width);
314556
- bottomContent = breakLines2(bottomContent, width);
314557
- if (rawPromptLine.length % width === 0) {
314558
- content += `
314559
- `;
314560
- }
314561
- let output = content + (bottomContent ? `
314562
- ` + bottomContent : "");
314563
- const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
314564
- const bottomContentHeight = promptLineUpDiff + (bottomContent ? height2(bottomContent) : 0);
314565
- if (bottomContentHeight > 0)
314566
- output += cursorUp2(bottomContentHeight);
314567
- output += cursorTo2(this.cursorPos.cols);
314568
- this.write(cursorDown2(this.extraLinesUnderPrompt) + eraseLines2(this.height) + output);
314569
- this.extraLinesUnderPrompt = bottomContentHeight;
314570
- this.height = height2(output);
314571
- }
314572
- checkCursorPos() {
314573
- const cursorPos = this.rl.getCursorPos();
314574
- if (cursorPos.cols !== this.cursorPos.cols) {
314575
- this.write(cursorTo2(cursorPos.cols));
314576
- this.cursorPos = cursorPos;
314577
- }
314578
- }
314579
- done({ clearContent }) {
314580
- this.rl.setPrompt("");
314581
- let output = cursorDown2(this.extraLinesUnderPrompt);
314582
- output += clearContent ? eraseLines2(this.height) : `
314583
- `;
314584
- output += cursorShow2;
314585
- this.write(output);
314586
- this.rl.close();
314587
- }
314588
- }
314589
-
314590
- // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
314591
- class PromisePolyfill2 extends Promise {
314592
- static withResolver() {
314593
- let resolve7;
314594
- let reject;
314595
- const promise2 = new Promise((res, rej) => {
314596
- resolve7 = res;
314597
- reject = rej;
314598
- });
314599
- return { promise: promise2, resolve: resolve7, reject };
314600
- }
314601
- }
314602
-
314603
- // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
314604
- function getCallSites2() {
314605
- const _prepareStackTrace = Error.prepareStackTrace;
314606
- let result = [];
314607
- try {
314608
- Error.prepareStackTrace = (_5, callSites) => {
314609
- const callSitesWithoutCurrent = callSites.slice(1);
314610
- result = callSitesWithoutCurrent;
314611
- return callSitesWithoutCurrent;
314612
- };
314613
- new Error().stack;
314614
- } catch {
314615
- return result;
314616
- }
314617
- Error.prepareStackTrace = _prepareStackTrace;
314618
- return result;
314619
- }
314620
- function createPrompt2(view) {
314621
- const callSites = getCallSites2();
314622
- const prompt = (config3, context = {}) => {
314623
- const { input = process.stdin, signal } = context;
314624
- const cleanups = new Set;
314625
- const output = new import_mute_stream2.default;
314626
- output.pipe(context.output ?? process.stdout);
314627
- const rl = readline4.createInterface({
314628
- terminal: true,
314629
- input,
314630
- output
314631
- });
314632
- const screen = new ScreenManager2(rl);
314633
- const { promise: promise2, resolve: resolve7, reject } = PromisePolyfill2.withResolver();
314634
- const cancel3 = () => reject(new CancelPromptError2);
314635
- if (signal) {
314636
- const abort = () => reject(new AbortPromptError2({ cause: signal.reason }));
314637
- if (signal.aborted) {
314638
- abort();
314639
- return Object.assign(promise2, { cancel: cancel3 });
314640
- }
314641
- signal.addEventListener("abort", abort);
314642
- cleanups.add(() => signal.removeEventListener("abort", abort));
314643
- }
314644
- cleanups.add(onExit((code2, signal2) => {
314645
- reject(new ExitPromptError2(`User force closed the prompt with ${code2} ${signal2}`));
314646
- }));
314647
- const sigint = () => reject(new ExitPromptError2(`User force closed the prompt with SIGINT`));
314648
- rl.on("SIGINT", sigint);
314649
- cleanups.add(() => rl.removeListener("SIGINT", sigint));
314650
- const checkCursorPos = () => screen.checkCursorPos();
314651
- rl.input.on("keypress", checkCursorPos);
314652
- cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
314653
- return withHooks2(rl, (cycle) => {
314654
- const hooksCleanup = AsyncResource6.bind(() => effectScheduler2.clearAll());
314655
- rl.on("close", hooksCleanup);
314656
- cleanups.add(() => rl.removeListener("close", hooksCleanup));
314657
- cycle(() => {
314658
- try {
314659
- const nextView = view(config3, (value5) => {
314660
- setImmediate(() => resolve7(value5));
314661
- });
314662
- if (nextView === undefined) {
314663
- const callerFilename = callSites[1]?.getFileName();
314664
- throw new Error(`Prompt functions must return a string.
314665
- at ${callerFilename}`);
314666
- }
314667
- const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
314668
- screen.render(content, bottomContent);
314669
- effectScheduler2.run();
314670
- } catch (error51) {
314671
- reject(error51);
314672
- }
314673
- });
314674
- return Object.assign(promise2.then((answer) => {
314675
- effectScheduler2.clearAll();
314676
- return answer;
314677
- }, (error51) => {
314678
- effectScheduler2.clearAll();
314679
- throw error51;
314680
- }).finally(() => {
314681
- cleanups.forEach((cleanup) => cleanup());
314682
- screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
314683
- output.end();
314684
- }).then(() => promise2), { cancel: cancel3 });
314685
- });
314686
- };
314687
- return prompt;
314688
- }
314689
314689
  // ../../node_modules/.bun/@inquirer+confirm@5.1.20+c30ff3a63f0500d5/node_modules/@inquirer/confirm/dist/esm/index.js
314690
314690
  function getBooleanValue(value5, defaultValue) {
314691
314691
  let answer = defaultValue !== false;
@@ -314698,21 +314698,21 @@ function getBooleanValue(value5, defaultValue) {
314698
314698
  function boolToString(value5) {
314699
314699
  return value5 ? "Yes" : "No";
314700
314700
  }
314701
- var esm_default5 = createPrompt2((config3, done) => {
314701
+ var esm_default5 = createPrompt((config3, done) => {
314702
314702
  const { transformer = boolToString } = config3;
314703
- const [status, setStatus] = useState2("idle");
314704
- const [value5, setValue] = useState2("");
314705
- const theme = makeTheme2(config3.theme);
314706
- const prefix = usePrefix2({ status, theme });
314707
- useKeypress2((key, rl) => {
314703
+ const [status, setStatus] = useState("idle");
314704
+ const [value5, setValue] = useState("");
314705
+ const theme = makeTheme(config3.theme);
314706
+ const prefix = usePrefix({ status, theme });
314707
+ useKeypress((key, rl) => {
314708
314708
  if (status !== "idle")
314709
314709
  return;
314710
- if (isEnterKey2(key)) {
314710
+ if (isEnterKey(key)) {
314711
314711
  const answer = getBooleanValue(value5, config3.default);
314712
314712
  setValue(transformer(answer));
314713
314713
  setStatus("done");
314714
314714
  done(answer);
314715
- } else if (isTabKey2(key)) {
314715
+ } else if (isTabKey(key)) {
314716
314716
  const answer = boolToString(!getBooleanValue(value5, config3.default));
314717
314717
  rl.clearLine(0);
314718
314718
  rl.write(answer);
@@ -314733,18 +314733,18 @@ var esm_default5 = createPrompt2((config3, done) => {
314733
314733
  });
314734
314734
 
314735
314735
  // ../../node_modules/.bun/@inquirer+password@4.0.21+c30ff3a63f0500d5/node_modules/@inquirer/password/dist/esm/index.js
314736
- var esm_default6 = createPrompt((config3, done) => {
314736
+ var esm_default6 = createPrompt2((config3, done) => {
314737
314737
  const { validate: validate8 = () => true } = config3;
314738
- const theme = makeTheme(config3.theme);
314739
- const [status, setStatus] = useState("idle");
314740
- const [errorMsg, setError] = useState();
314741
- const [value5, setValue] = useState("");
314742
- const prefix = usePrefix({ status, theme });
314743
- useKeypress(async (key, rl) => {
314738
+ const theme = makeTheme2(config3.theme);
314739
+ const [status, setStatus] = useState2("idle");
314740
+ const [errorMsg, setError] = useState2();
314741
+ const [value5, setValue] = useState2("");
314742
+ const prefix = usePrefix2({ status, theme });
314743
+ useKeypress2(async (key, rl) => {
314744
314744
  if (status !== "idle") {
314745
314745
  return;
314746
314746
  }
314747
- if (isEnterKey(key)) {
314747
+ if (isEnterKey2(key)) {
314748
314748
  const answer = value5;
314749
314749
  setStatus("loading");
314750
314750
  const isValid = await validate8(answer);
@@ -314769,7 +314769,7 @@ var esm_default6 = createPrompt((config3, done) => {
314769
314769
  const maskChar = typeof config3.mask === "string" ? config3.mask : "*";
314770
314770
  formattedValue = maskChar.repeat(value5.length);
314771
314771
  } else if (status !== "done") {
314772
- helpTip = `${theme.style.help("[input is masked]")}${cursorHide}`;
314772
+ helpTip = `${theme.style.help("[input is masked]")}${cursorHide2}`;
314773
314773
  }
314774
314774
  if (status === "done") {
314775
314775
  formattedValue = theme.style.answer(formattedValue);
@@ -314804,7 +314804,7 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
314804
314804
  default: false
314805
314805
  });
314806
314806
  if (create3) {
314807
- const name4 = await esm_default2({
314807
+ const name4 = await esm_default3({
314808
314808
  message: "How would you like to name this application access token?",
314809
314809
  default: `SettleMint CLI (${Date.now()}${process.env.USER ? ` ${process.env.USER}` : ""})`,
314810
314810
  required: true,
@@ -314899,7 +314899,7 @@ async function applicationPrompt(env2, applications, accept) {
314899
314899
  if (is_in_ci_default) {
314900
314900
  nothingSelectedError("application");
314901
314901
  }
314902
- const application = await esm_default3({
314902
+ const application = await esm_default4({
314903
314903
  message: "Which application do you want to connect to?",
314904
314904
  choices: applications.map((applications2) => ({
314905
314905
  name: `${applications2.name} (${applications2.uniqueName})`,
@@ -315012,7 +315012,7 @@ async function blockchainNodePrompt({
315012
315012
  }
315013
315013
  return item;
315014
315014
  }) : choices;
315015
- return esm_default3({
315015
+ return esm_default4({
315016
315016
  message: promptMessage ?? "Which blockchain node do you want to connect to?",
315017
315017
  choices: filteredChoices,
315018
315018
  default: defaultNode
@@ -315042,7 +315042,7 @@ async function blockchainNodeOrLoadBalancerPrompt({
315042
315042
  isRequired,
315043
315043
  defaultHandler: async ({ defaultService: defaultNode, choices }) => {
315044
315044
  const filteredChoices = filterRunningOnly ? choices.filter(({ value: node }) => isRunning(node)) : choices;
315045
- return esm_default3({
315045
+ return esm_default4({
315046
315046
  message: promptMessage ?? "Which blockchain node or load balancer do you want to connect to?",
315047
315047
  choices: filteredChoices,
315048
315048
  default: defaultNode
@@ -315067,7 +315067,7 @@ async function blockscoutPrompt({
315067
315067
  envKey: "SETTLEMINT_BLOCKSCOUT",
315068
315068
  isRequired,
315069
315069
  defaultHandler: async ({ defaultService: defaultBlockscout, choices }) => {
315070
- return esm_default3({
315070
+ return esm_default4({
315071
315071
  message: "Which blockscout instance do you want to connect to?",
315072
315072
  choices,
315073
315073
  default: defaultBlockscout
@@ -315090,7 +315090,7 @@ async function customDeploymentPrompt({
315090
315090
  envKey: "SETTLEMINT_CUSTOM_DEPLOYMENT",
315091
315091
  isRequired,
315092
315092
  defaultHandler: async ({ defaultService: defaultCustomDeployment, choices }) => {
315093
- return esm_default3({
315093
+ return esm_default4({
315094
315094
  message: "Which Custom Deployment do you want to connect to?",
315095
315095
  choices,
315096
315096
  default: defaultCustomDeployment
@@ -315117,7 +315117,7 @@ async function hasuraPrompt({
315117
315117
  envKey: "SETTLEMINT_HASURA",
315118
315118
  isRequired,
315119
315119
  defaultHandler: async ({ defaultService: defaultHasura, choices }) => {
315120
- return esm_default3({
315120
+ return esm_default4({
315121
315121
  message: "Which Hasura instance do you want to connect to?",
315122
315122
  choices,
315123
315123
  default: defaultHasura
@@ -315141,7 +315141,7 @@ async function hdPrivateKeyPrompt({
315141
315141
  envKey: "SETTLEMINT_HD_PRIVATE_KEY",
315142
315142
  isRequired,
315143
315143
  defaultHandler: async ({ defaultService: defaultPrivateKey, choices }) => {
315144
- return esm_default3({
315144
+ return esm_default4({
315145
315145
  message: "Which HD Private Key do you want to use?",
315146
315146
  choices,
315147
315147
  default: defaultPrivateKey
@@ -315165,7 +315165,7 @@ async function ipfsPrompt({
315165
315165
  envKey: "SETTLEMINT_IPFS",
315166
315166
  isRequired,
315167
315167
  defaultHandler: async ({ defaultService: defaultStorage, choices }) => {
315168
- return esm_default3({
315168
+ return esm_default4({
315169
315169
  message: "Which IPFS instance do you want to connect to?",
315170
315170
  choices,
315171
315171
  default: defaultStorage
@@ -315189,7 +315189,7 @@ async function minioPrompt({
315189
315189
  envKey: "SETTLEMINT_MINIO",
315190
315190
  isRequired,
315191
315191
  defaultHandler: async ({ defaultService: defaultStorage, choices }) => {
315192
- return esm_default3({
315192
+ return esm_default4({
315193
315193
  message: "Which MinIO instance do you want to connect to?",
315194
315194
  choices,
315195
315195
  default: defaultStorage
@@ -315213,7 +315213,7 @@ async function portalPrompt({
315213
315213
  envKey: "SETTLEMINT_PORTAL",
315214
315214
  isRequired,
315215
315215
  defaultHandler: async ({ defaultService: defaultMiddleware, choices }) => {
315216
- return esm_default3({
315216
+ return esm_default4({
315217
315217
  message: "Which Smart Contract Portal instance do you want to connect to?",
315218
315218
  choices,
315219
315219
  default: defaultMiddleware
@@ -315242,7 +315242,7 @@ async function theGraphPrompt({
315242
315242
  isRequired,
315243
315243
  defaultHandler: async ({ defaultService: defaultMiddleware, choices }) => {
315244
315244
  const filteredChoices = filterRunningOnly ? choices.filter(({ value: middleware }) => isRunning(middleware)) : choices;
315245
- return esm_default3({
315245
+ return esm_default4({
315246
315246
  message: "Which The Graph instance do you want to connect to?",
315247
315247
  choices: filteredChoices,
315248
315248
  default: defaultMiddleware
@@ -315270,7 +315270,7 @@ async function instancePrompt({
315270
315270
  return sanitizeInstanceUrl(defaultPromptInstance);
315271
315271
  }
315272
315272
  if (freeTextInput) {
315273
- const instance = await esm_default2({
315273
+ const instance = await esm_default3({
315274
315274
  message: "What is the URL of your SettleMint instance?",
315275
315275
  default: defaultPromptInstance,
315276
315276
  required: true,
@@ -315289,7 +315289,7 @@ async function instancePrompt({
315289
315289
  if (knownInstances.length === 0) {
315290
315290
  note("No instances found. Run `settlemint login` to configure an instance.", "warn");
315291
315291
  }
315292
- return esm_default3({
315292
+ return esm_default4({
315293
315293
  message: "What instance do you want to connect to?",
315294
315294
  choices: [
315295
315295
  ...knownInstances.map((instance) => ({
@@ -315354,7 +315354,7 @@ async function serviceUrlPrompt({
315354
315354
  if (isCi) {
315355
315355
  return defaultUrl ? new URL(defaultUrl).toString() : undefined;
315356
315356
  }
315357
- const serviceUrl = await esm_default2({
315357
+ const serviceUrl = await esm_default3({
315358
315358
  message: example ? `${message} (eg ${example})` : message,
315359
315359
  default: defaultUrl,
315360
315360
  required: true,
@@ -315385,7 +315385,7 @@ async function workspacePrompt(env2, workspaces, accept) {
315385
315385
  if (is_in_ci_default) {
315386
315386
  nothingSelectedError("workspace");
315387
315387
  }
315388
- const workspace = await esm_default3({
315388
+ const workspace = await esm_default4({
315389
315389
  message: "Which workspace do you want to connect to?",
315390
315390
  choices: workspaces.map((workspace2) => ({
315391
315391
  name: `${workspace2.name} (${workspace2.uniqueName})`,
@@ -315789,7 +315789,7 @@ async function serviceValuePrompt({
315789
315789
  if (isCi) {
315790
315790
  return defaultValue;
315791
315791
  }
315792
- const serviceSecret = await esm_default2({
315792
+ const serviceSecret = await esm_default3({
315793
315793
  message: example ? `${message} (eg ${example})` : message,
315794
315794
  default: defaultValue
315795
315795
  });
@@ -316227,7 +316227,7 @@ async function templatePrompt(platformConfig, argument) {
316227
316227
  }
316228
316228
  return template2;
316229
316229
  }
316230
- const template = await esm_default3({
316230
+ const template = await esm_default4({
316231
316231
  message: "Which template do you want to use?",
316232
316232
  choices: [
316233
316233
  ...kits.map((template2) => ({
@@ -316245,7 +316245,7 @@ async function projectNamePrompt(env2, argument) {
316245
316245
  if (defaultInstance) {
316246
316246
  return defaultInstance;
316247
316247
  }
316248
- return esm_default2({
316248
+ return esm_default3({
316249
316249
  message: "What is the name of your new SettleMint project?",
316250
316250
  default: defaultInstance,
316251
316251
  required: true,
@@ -319899,7 +319899,7 @@ function logoutCommand() {
319899
319899
  }
319900
319900
  const env2 = await loadEnv(false, false);
319901
319901
  const defaultInstance = env2.SETTLEMINT_INSTANCE;
319902
- const instance = await esm_default3({
319902
+ const instance = await esm_default4({
319903
319903
  message: "Select the instance to logout from:",
319904
319904
  choices: instances.map((instance2) => ({
319905
319905
  value: instance2,
@@ -319920,7 +319920,7 @@ async function pincodeVerificationPrompt(verificationChallenges) {
319920
319920
  if (verificationChallenges.length === 1) {
319921
319921
  return verificationChallenges[0];
319922
319922
  }
319923
- const verificationChallenge = await esm_default3({
319923
+ const verificationChallenge = await esm_default4({
319924
319924
  message: "Which pincode verification do you want to use?",
319925
319925
  choices: verificationChallenges.map((verificationChallenge2) => ({
319926
319926
  name: verificationChallenge2.name,
@@ -320137,7 +320137,7 @@ async function providerPrompt(platformConfig, argument) {
320137
320137
  if (possibleProviders.length === 1) {
320138
320138
  return possibleProviders[0];
320139
320139
  }
320140
- const provider = await esm_default3({
320140
+ const provider = await esm_default4({
320141
320141
  message: "Which provider do you want to use?",
320142
320142
  choices: platformConfig.deploymentEngineTargets.map((target) => ({
320143
320143
  name: target.name,
@@ -320168,7 +320168,7 @@ async function regionPrompt(provider, argument) {
320168
320168
  if (possibleRegions.length === 1) {
320169
320169
  return possibleRegions[0];
320170
320170
  }
320171
- const region = await esm_default3({
320171
+ const region = await esm_default4({
320172
320172
  message: "Which region do you want to use?",
320173
320173
  choices: provider.clusters.map((cluster) => ({
320174
320174
  name: cluster.name,
@@ -320698,7 +320698,7 @@ async function blockchainNetworkPrompt({
320698
320698
  envKey: "SETTLEMINT_BLOCKCHAIN_NETWORK",
320699
320699
  isRequired,
320700
320700
  defaultHandler: async ({ defaultService: defaultNetwork, choices }) => {
320701
- return esm_default3({
320701
+ return esm_default4({
320702
320702
  message: "Which blockchain network do you want to connect to?",
320703
320703
  choices,
320704
320704
  default: defaultNetwork
@@ -321603,7 +321603,7 @@ function createCommand3() {
321603
321603
 
321604
321604
  // src/prompts/delete-confirmation.prompt.ts
321605
321605
  async function deleteConfirmationPrompt(itemDescription) {
321606
- const confirmation = await esm_default2({
321606
+ const confirmation = await esm_default3({
321607
321607
  message: `Are you sure you want to delete ${itemDescription}? (yes/no)`,
321608
321608
  required: true,
321609
321609
  validate(value5) {
@@ -323000,7 +323000,7 @@ async function useCasePrompt(platformConfig, argument) {
323000
323000
  if (selectableUseCases.length === 1) {
323001
323001
  return selectableUseCases[0];
323002
323002
  }
323003
- const useCase = await esm_default3({
323003
+ const useCase = await esm_default4({
323004
323004
  message: "Which use case do you want to use?",
323005
323005
  choices: selectableUseCases.map((useCase2) => ({
323006
323006
  name: formatUseCaseName(useCase2.name),
@@ -323371,7 +323371,7 @@ async function addressPrompt({
323371
323371
  hardhatConfig
323372
323372
  }) {
323373
323373
  if (!node) {
323374
- return esm_default2({
323374
+ return esm_default3({
323375
323375
  message: "Which private key address do you want to deploy from?",
323376
323376
  validate: (value5) => {
323377
323377
  if (!isAddress(value5)) {
@@ -323391,7 +323391,7 @@ async function addressPrompt({
323391
323391
  note(`Private key with address '${defaultAddress}' is not activated on the node '${node.uniqueName}'.
323392
323392
  Please select another key or activate this key on the node and try again.`, "warn");
323393
323393
  }
323394
- const address = await esm_default3({
323394
+ const address = await esm_default4({
323395
323395
  message: "Which private key do you want to deploy from?",
323396
323396
  choices: possiblePrivateKeys.map(({ address: address2, name: name4 }) => ({
323397
323397
  name: name4,
@@ -324342,4 +324342,4 @@ async function sdkCliCommand(argv = process.argv) {
324342
324342
  // src/cli.ts
324343
324343
  sdkCliCommand();
324344
324344
 
324345
- //# debugId=FDAE62AF58E79E4464756E2164756E21
324345
+ //# debugId=5426844E5DB758C564756E2164756E21