@settlemint/sdk-cli 1.1.16-pr04fb0456 → 1.1.16-pr3067e493

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 +330 -330
  2. package/dist/cli.js.map +10 -10
  3. package/package.json +5 -5
package/dist/cli.js CHANGED
@@ -14516,8 +14516,8 @@ var require_printLocation = __commonJS((exports) => {
14516
14516
  const columnNum = sourceLocation.column + columnOffset;
14517
14517
  const locationStr = `${source.name}:${lineNum}:${columnNum}
14518
14518
  `;
14519
- const lines2 = body.split(/\r\n|[\n\r]/g);
14520
- const locationLine = lines2[lineIndex];
14519
+ const lines = body.split(/\r\n|[\n\r]/g);
14520
+ const locationLine = lines[lineIndex];
14521
14521
  if (locationLine.length > 120) {
14522
14522
  const subLineIndex = Math.floor(columnNum / 80);
14523
14523
  const subLineColumnNum = columnNum % 80;
@@ -14533,14 +14533,14 @@ var require_printLocation = __commonJS((exports) => {
14533
14533
  ]);
14534
14534
  }
14535
14535
  return locationStr + printPrefixedLines([
14536
- [`${lineNum - 1} |`, lines2[lineIndex - 1]],
14536
+ [`${lineNum - 1} |`, lines[lineIndex - 1]],
14537
14537
  [`${lineNum} |`, locationLine],
14538
14538
  ["|", "^".padStart(columnNum)],
14539
- [`${lineNum + 1} |`, lines2[lineIndex + 1]]
14539
+ [`${lineNum + 1} |`, lines[lineIndex + 1]]
14540
14540
  ]);
14541
14541
  }
14542
- function printPrefixedLines(lines2) {
14543
- const existingLines = lines2.filter(([_, line]) => line !== undefined);
14542
+ function printPrefixedLines(lines) {
14543
+ const existingLines = lines.filter(([_, line]) => line !== undefined);
14544
14544
  const padLen = Math.max(...existingLines.map(([prefix]) => prefix.length));
14545
14545
  return existingLines.map(([prefix, line]) => prefix.padStart(padLen) + (line ? " " + line : "")).join(`
14546
14546
  `);
@@ -14953,14 +14953,14 @@ var require_blockString = __commonJS((exports) => {
14953
14953
  exports.isPrintableAsBlockString = isPrintableAsBlockString;
14954
14954
  exports.printBlockString = printBlockString;
14955
14955
  var _characterClasses = require_characterClasses();
14956
- function dedentBlockStringLines(lines2) {
14956
+ function dedentBlockStringLines(lines) {
14957
14957
  var _firstNonEmptyLine2;
14958
14958
  let commonIndent = Number.MAX_SAFE_INTEGER;
14959
14959
  let firstNonEmptyLine = null;
14960
14960
  let lastNonEmptyLine = -1;
14961
- for (let i = 0;i < lines2.length; ++i) {
14961
+ for (let i = 0;i < lines.length; ++i) {
14962
14962
  var _firstNonEmptyLine;
14963
- const line = lines2[i];
14963
+ const line = lines[i];
14964
14964
  const indent = leadingWhitespace(line);
14965
14965
  if (indent === line.length) {
14966
14966
  continue;
@@ -14971,7 +14971,7 @@ var require_blockString = __commonJS((exports) => {
14971
14971
  commonIndent = indent;
14972
14972
  }
14973
14973
  }
14974
- return lines2.map((line, i) => i === 0 ? line : line.slice(commonIndent)).slice((_firstNonEmptyLine2 = firstNonEmptyLine) !== null && _firstNonEmptyLine2 !== undefined ? _firstNonEmptyLine2 : 0, lastNonEmptyLine + 1);
14974
+ return lines.map((line, i) => i === 0 ? line : line.slice(commonIndent)).slice((_firstNonEmptyLine2 = firstNonEmptyLine) !== null && _firstNonEmptyLine2 !== undefined ? _firstNonEmptyLine2 : 0, lastNonEmptyLine + 1);
14975
14975
  }
14976
14976
  function leadingWhitespace(str) {
14977
14977
  let i = 0;
@@ -15033,9 +15033,9 @@ var require_blockString = __commonJS((exports) => {
15033
15033
  }
15034
15034
  function printBlockString(value, options) {
15035
15035
  const escapedValue = value.replace(/"""/g, '\\"""');
15036
- const lines2 = escapedValue.split(/\r\n|[\n\r]/g);
15037
- const isSingleLine = lines2.length === 1;
15038
- const forceLeadingNewLine = lines2.length > 1 && lines2.slice(1).every((line) => line.length === 0 || (0, _characterClasses.isWhiteSpace)(line.charCodeAt(0)));
15036
+ const lines = escapedValue.split(/\r\n|[\n\r]/g);
15037
+ const isSingleLine = lines.length === 1;
15038
+ const forceLeadingNewLine = lines.length > 1 && lines.slice(1).every((line) => line.length === 0 || (0, _characterClasses.isWhiteSpace)(line.charCodeAt(0)));
15039
15039
  const hasTrailingTripleQuotes = escapedValue.endsWith('\\"""');
15040
15040
  const hasTrailingQuote = value.endsWith('"') && !hasTrailingTripleQuotes;
15041
15041
  const hasTrailingSlash = value.endsWith("\\");
@@ -34095,9 +34095,9 @@ var require_commonjs4 = __commonJS((exports) => {
34095
34095
  this.#resolveCache = new ResolveCache2;
34096
34096
  this.#resolvePosixCache = new ResolveCache2;
34097
34097
  this.#children = new ChildrenCache2(childrenCacheSize);
34098
- const split2 = cwdPath.substring(this.rootPath.length).split(sep2);
34099
- if (split2.length === 1 && !split2[0]) {
34100
- split2.pop();
34098
+ const split = cwdPath.substring(this.rootPath.length).split(sep2);
34099
+ if (split.length === 1 && !split[0]) {
34100
+ split.pop();
34101
34101
  }
34102
34102
  if (nocase === undefined) {
34103
34103
  throw new TypeError("must provide nocase setting to PathScurryBase ctor");
@@ -34106,11 +34106,11 @@ var require_commonjs4 = __commonJS((exports) => {
34106
34106
  this.root = this.newRoot(this.#fs);
34107
34107
  this.roots[this.rootPath] = this.root;
34108
34108
  let prev = this.root;
34109
- let len = split2.length - 1;
34109
+ let len = split.length - 1;
34110
34110
  const joinSep = pathImpl.sep;
34111
34111
  let abs = this.rootPath;
34112
34112
  let sawFirst = false;
34113
- for (const part of split2) {
34113
+ for (const part of split) {
34114
34114
  const l = len--;
34115
34115
  prev = prev.child(part, {
34116
34116
  relative: new Array(l).fill("..").join(joinSep),
@@ -36562,9 +36562,9 @@ var require_ini = __commonJS((exports, module) => {
36562
36562
  let p = out;
36563
36563
  let section = null;
36564
36564
  const re = /^\[([^\]]*)\]\s*$|^([^=]+)(=(.*))?$/i;
36565
- const lines2 = str.split(/[\r\n]+/g);
36565
+ const lines = str.split(/[\r\n]+/g);
36566
36566
  const duplicates = {};
36567
- for (const line of lines2) {
36567
+ for (const line of lines) {
36568
36568
  if (!line || line.match(/^\s*[;#]/) || line.match(/^\s*$/)) {
36569
36569
  continue;
36570
36570
  }
@@ -38119,7 +38119,7 @@ var require_semver2 = __commonJS((exports, module) => {
38119
38119
  // ../../node_modules/@npmcli/git/lib/lines-to-revs.js
38120
38120
  var require_lines_to_revs = __commonJS((exports, module) => {
38121
38121
  var semver = require_semver2();
38122
- module.exports = (lines2) => finish(lines2.reduce(linesToRevsReducer, {
38122
+ module.exports = (lines) => finish(lines.reduce(linesToRevsReducer, {
38123
38123
  versions: {},
38124
38124
  "dist-tags": {},
38125
38125
  refs: {},
@@ -38180,12 +38180,12 @@ var require_lines_to_revs = __commonJS((exports, module) => {
38180
38180
  return "other";
38181
38181
  };
38182
38182
  var lineToRevDoc = (line) => {
38183
- const split2 = line.trim().split(/\s+/, 2);
38184
- if (split2.length < 2) {
38183
+ const split = line.trim().split(/\s+/, 2);
38184
+ if (split.length < 2) {
38185
38185
  return null;
38186
38186
  }
38187
- const sha = split2[0].trim();
38188
- const rawRef = split2[1].trim();
38187
+ const sha = split[0].trim();
38188
+ const rawRef = split[1].trim();
38189
38189
  const type2 = refType(rawRef);
38190
38190
  if (type2 === "tag") {
38191
38191
  const ref = rawRef.slice("refs/tags/".length);
@@ -40746,17 +40746,17 @@ var require_normalize_data = __commonJS((exports, module) => {
40746
40746
  };
40747
40747
  var isEmail = (str) => str.includes("@") && str.indexOf("@") < str.lastIndexOf(".");
40748
40748
  function extractDescription(description) {
40749
- const lines2 = description.trim().split(`
40749
+ const lines = description.trim().split(`
40750
40750
  `);
40751
40751
  let start = 0;
40752
- while (lines2[start]?.trim().match(/^(#|$)/)) {
40752
+ while (lines[start]?.trim().match(/^(#|$)/)) {
40753
40753
  start++;
40754
40754
  }
40755
40755
  let end = start + 1;
40756
- while (end < lines2.length && lines2[end].trim()) {
40756
+ while (end < lines.length && lines[end].trim()) {
40757
40757
  end++;
40758
40758
  }
40759
- return lines2.slice(start, end).join(" ").trim();
40759
+ return lines.slice(start, end).join(" ").trim();
40760
40760
  }
40761
40761
  function stringifyPerson(person) {
40762
40762
  if (typeof person !== "string") {
@@ -59469,9 +59469,9 @@ ${lanes.join(`
59469
59469
  return node.kind === 183 || node.kind === 233;
59470
59470
  }
59471
59471
  var MAX_SMI_X86 = 1073741823;
59472
- function guessIndentation(lines2) {
59472
+ function guessIndentation(lines) {
59473
59473
  let indentation = MAX_SMI_X86;
59474
- for (const line of lines2) {
59474
+ for (const line of lines) {
59475
59475
  if (!line.length) {
59476
59476
  continue;
59477
59477
  }
@@ -148028,8 +148028,8 @@ ${lanes.join(`
148028
148028
  if (node.comment) {
148029
148029
  const text = getTextOfJSDocComment(node.comment);
148030
148030
  if (text) {
148031
- const lines2 = text.split(/\r\n?|\n/);
148032
- for (const line of lines2) {
148031
+ const lines = text.split(/\r\n?|\n/);
148032
+ for (const line of lines) {
148033
148033
  writeLine();
148034
148034
  writeSpace();
148035
148035
  writePunctuation("*");
@@ -148673,9 +148673,9 @@ ${lanes.join(`
148673
148673
  if (getEmitFlags(parentNode) & 1) {
148674
148674
  writeSpace();
148675
148675
  } else if (preserveSourceNewlines) {
148676
- const lines2 = getLinesBetweenNodes(parentNode, prevChildNode, nextChildNode);
148677
- if (lines2) {
148678
- writeLine(lines2);
148676
+ const lines = getLinesBetweenNodes(parentNode, prevChildNode, nextChildNode);
148677
+ if (lines) {
148678
+ writeLine(lines);
148679
148679
  } else {
148680
148680
  writeSpace();
148681
148681
  }
@@ -148684,9 +148684,9 @@ ${lanes.join(`
148684
148684
  }
148685
148685
  }
148686
148686
  function writeLines(text) {
148687
- const lines2 = text.split(/\r\n?|\n/);
148688
- const indentation = guessIndentation(lines2);
148689
- for (const lineText of lines2) {
148687
+ const lines = text.split(/\r\n?|\n/);
148688
+ const indentation = guessIndentation(lines);
148689
+ for (const lineText of lines) {
148690
148690
  const line = indentation ? lineText.slice(indentation) : lineText;
148691
148691
  if (line.length) {
148692
148692
  writeLine();
@@ -148784,11 +148784,11 @@ ${lanes.join(`
148784
148784
  }
148785
148785
  function getEffectiveLines(getLineDifference) {
148786
148786
  Debug.assert(!!preserveSourceNewlines);
148787
- const lines2 = getLineDifference(true);
148788
- if (lines2 === 0) {
148787
+ const lines = getLineDifference(true);
148788
+ if (lines === 0) {
148789
148789
  return getLineDifference(false);
148790
148790
  }
148791
- return lines2;
148791
+ return lines;
148792
148792
  }
148793
148793
  function writeLineSeparatorsAndIndentBefore(node, parent2) {
148794
148794
  const leadingNewlines = preserveSourceNewlines && getLeadingLineTerminatorCount(parent2, node, 0);
@@ -159074,7 +159074,7 @@ ${lanes.join(`
159074
159074
  function generateOptionOutput(sys2, option, rightAlignOfLeft, leftAlignOfRight) {
159075
159075
  var _a;
159076
159076
  const text = [];
159077
- const colors3 = createColors(sys2);
159077
+ const colors2 = createColors(sys2);
159078
159078
  const name2 = getDisplayNameTextOfOption(option);
159079
159079
  const valueCandidates = getValueCandidate(option);
159080
159080
  const defaultValueDescription = typeof option.defaultValueDescription === "object" ? getDiagnosticText(option.defaultValueDescription) : formatDefaultValue(option.defaultValueDescription, option.type === "list" || option.type === "listOrElement" ? option.element.type : option.type);
@@ -159095,7 +159095,7 @@ ${lanes.join(`
159095
159095
  }
159096
159096
  text.push(sys2.newLine);
159097
159097
  } else {
159098
- text.push(colors3.blue(name2), sys2.newLine);
159098
+ text.push(colors2.blue(name2), sys2.newLine);
159099
159099
  if (option.description) {
159100
159100
  const description3 = getDiagnosticText(option.description);
159101
159101
  text.push(description3);
@@ -159140,7 +159140,7 @@ ${lanes.join(`
159140
159140
  if (isFirstLine) {
159141
159141
  curLeft = left.padStart(rightAlignOfLeft2);
159142
159142
  curLeft = curLeft.padEnd(leftAlignOfRight2);
159143
- curLeft = colorLeft ? colors3.blue(curLeft) : curLeft;
159143
+ curLeft = colorLeft ? colors2.blue(curLeft) : curLeft;
159144
159144
  } else {
159145
159145
  curLeft = "".padStart(leftAlignOfRight2);
159146
159146
  }
@@ -159209,15 +159209,15 @@ ${lanes.join(`
159209
159209
  }
159210
159210
  const rightAlignOfLeftPart = maxLength2 + 2;
159211
159211
  const leftAlignOfRightPart = rightAlignOfLeftPart + 2;
159212
- let lines2 = [];
159212
+ let lines = [];
159213
159213
  for (const option of optionsList) {
159214
159214
  const tmp = generateOptionOutput(sys2, option, rightAlignOfLeftPart, leftAlignOfRightPart);
159215
- lines2 = [...lines2, ...tmp];
159215
+ lines = [...lines, ...tmp];
159216
159216
  }
159217
- if (lines2[lines2.length - 2] !== sys2.newLine) {
159218
- lines2.push(sys2.newLine);
159217
+ if (lines[lines.length - 2] !== sys2.newLine) {
159218
+ lines.push(sys2.newLine);
159219
159219
  }
159220
- return lines2;
159220
+ return lines;
159221
159221
  }
159222
159222
  function generateSectionOptionsOutput(sys2, sectionName, options, subCategory, beforeOptionsDescription, afterOptionsDescription) {
159223
159223
  let res = [];
@@ -159252,9 +159252,9 @@ ${lanes.join(`
159252
159252
  return res;
159253
159253
  }
159254
159254
  function printEasyHelp(sys2, simpleOptions) {
159255
- const colors3 = createColors(sys2);
159255
+ const colors2 = createColors(sys2);
159256
159256
  let output = [...getHeader(sys2, `${getDiagnosticText(Diagnostics.tsc_Colon_The_TypeScript_Compiler)} - ${getDiagnosticText(Diagnostics.Version_0, version)}`)];
159257
- output.push(colors3.bold(getDiagnosticText(Diagnostics.COMMON_COMMANDS)) + sys2.newLine + sys2.newLine);
159257
+ output.push(colors2.bold(getDiagnosticText(Diagnostics.COMMON_COMMANDS)) + sys2.newLine + sys2.newLine);
159258
159258
  example("tsc", Diagnostics.Compiles_the_current_project_tsconfig_json_in_the_working_directory);
159259
159259
  example("tsc app.ts util.ts", Diagnostics.Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options);
159260
159260
  example("tsc -b", Diagnostics.Build_a_composite_project_in_the_working_directory);
@@ -159275,7 +159275,7 @@ ${lanes.join(`
159275
159275
  function example(ex, desc) {
159276
159276
  const examples = typeof ex === "string" ? [ex] : ex;
159277
159277
  for (const example2 of examples) {
159278
- output.push(" " + colors3.blue(example2) + sys2.newLine);
159278
+ output.push(" " + colors2.blue(example2) + sys2.newLine);
159279
159279
  }
159280
159280
  output.push(" " + getDiagnosticText(desc) + sys2.newLine + sys2.newLine);
159281
159281
  }
@@ -159298,12 +159298,12 @@ ${lanes.join(`
159298
159298
  }
159299
159299
  function getHeader(sys2, message) {
159300
159300
  var _a;
159301
- const colors3 = createColors(sys2);
159301
+ const colors2 = createColors(sys2);
159302
159302
  const header = [];
159303
159303
  const terminalWidth = ((_a = sys2.getWidthOfTerminal) == null ? undefined : _a.call(sys2)) ?? 0;
159304
159304
  const tsIconLength = 5;
159305
- const tsIconFirstLine = colors3.blueBackground("".padStart(tsIconLength));
159306
- const tsIconSecondLine = colors3.blueBackground(colors3.brightWhite("TS ".padStart(tsIconLength)));
159305
+ const tsIconFirstLine = colors2.blueBackground("".padStart(tsIconLength));
159306
+ const tsIconSecondLine = colors2.blueBackground(colors2.brightWhite("TS ".padStart(tsIconLength)));
159307
159307
  if (terminalWidth >= message.length + tsIconLength) {
159308
159308
  const rightAlign = terminalWidth > 120 ? 120 : terminalWidth;
159309
159309
  const leftAlign = rightAlign - tsIconLength;
@@ -211016,9 +211016,9 @@ Additional information: BADCLIENT: Bad error code, ${badCode} not found in range
211016
211016
  insertedText = this.initialText + this.trailingText;
211017
211017
  }
211018
211018
  const lm = LineIndex.linesFromText(insertedText);
211019
- const lines2 = lm.lines;
211020
- if (lines2.length > 1 && lines2[lines2.length - 1] === "") {
211021
- lines2.pop();
211019
+ const lines = lm.lines;
211020
+ if (lines.length > 1 && lines[lines.length - 1] === "") {
211021
+ lines.pop();
211022
211022
  }
211023
211023
  let branchParent;
211024
211024
  let lastZeroCount;
@@ -211037,13 +211037,13 @@ Additional information: BADCLIENT: Bad error code, ${badCode} not found in range
211037
211037
  branchParent.remove(lastZeroCount);
211038
211038
  }
211039
211039
  const leafNode = this.startPath[this.startPath.length - 1];
211040
- if (lines2.length > 0) {
211041
- leafNode.text = lines2[0];
211042
- if (lines2.length > 1) {
211043
- let insertedNodes = new Array(lines2.length - 1);
211040
+ if (lines.length > 0) {
211041
+ leafNode.text = lines[0];
211042
+ if (lines.length > 1) {
211043
+ let insertedNodes = new Array(lines.length - 1);
211044
211044
  let startNode2 = leafNode;
211045
- for (let i2 = 1;i2 < lines2.length; i2++) {
211046
- insertedNodes[i2 - 1] = new LineLeaf(lines2[i2]);
211045
+ for (let i2 = 1;i2 < lines.length; i2++) {
211046
+ insertedNodes[i2 - 1] = new LineLeaf(lines[i2]);
211047
211047
  }
211048
211048
  let pathIndex = this.startPath.length - 2;
211049
211049
  while (pathIndex >= 0) {
@@ -211313,11 +211313,11 @@ Additional information: BADCLIENT: Bad error code, ${badCode} not found in range
211313
211313
  return { absolutePosition: this.root.charCount(), lineText: undefined };
211314
211314
  }
211315
211315
  }
211316
- load(lines2) {
211317
- if (lines2.length > 0) {
211316
+ load(lines) {
211317
+ if (lines.length > 0) {
211318
211318
  const leaves = [];
211319
- for (let i2 = 0;i2 < lines2.length; i2++) {
211320
- leaves[i2] = new LineLeaf(lines2[i2]);
211319
+ for (let i2 = 0;i2 < lines.length; i2++) {
211320
+ leaves[i2] = new LineLeaf(lines[i2]);
211321
211321
  }
211322
211322
  this.root = _LineIndex.buildTreeFromBottom(leaves);
211323
211323
  } else {
@@ -211420,18 +211420,18 @@ Additional information: BADCLIENT: Bad error code, ${badCode} not found in range
211420
211420
  if (lineMap.length === 0) {
211421
211421
  return { lines: [], lineMap };
211422
211422
  }
211423
- const lines2 = new Array(lineMap.length);
211423
+ const lines = new Array(lineMap.length);
211424
211424
  const lc = lineMap.length - 1;
211425
211425
  for (let lmi = 0;lmi < lc; lmi++) {
211426
- lines2[lmi] = text.substring(lineMap[lmi], lineMap[lmi + 1]);
211426
+ lines[lmi] = text.substring(lineMap[lmi], lineMap[lmi + 1]);
211427
211427
  }
211428
211428
  const endText = text.substring(lineMap[lc]);
211429
211429
  if (endText.length > 0) {
211430
- lines2[lc] = endText;
211430
+ lines[lc] = endText;
211431
211431
  } else {
211432
- lines2.pop();
211432
+ lines.pop();
211433
211433
  }
211434
- return { lines: lines2, lineMap };
211434
+ return { lines, lineMap };
211435
211435
  }
211436
211436
  };
211437
211437
  var LineNode = class _LineNode {
@@ -212511,7 +212511,7 @@ async function* streamBody(e4) {
212511
212511
  }
212512
212512
  }
212513
212513
  }
212514
- async function* split2(e4, r3) {
212514
+ async function* split(e4, r3) {
212515
212515
  var a4 = "";
212516
212516
  var n3;
212517
212517
  for await (var t4 of e4) {
@@ -212545,7 +212545,7 @@ function makeFetchSource(e4, r3, a4) {
212545
212545
  var n5 = "--" + (a6 ? a6[1] : "-");
212546
212546
  var t5 = true;
212547
212547
  var i4;
212548
- for await (var o4 of split2(streamBody(r5), `\r
212548
+ for await (var o4 of split(streamBody(r5), `\r
212549
212549
  ` + n5)) {
212550
212550
  if (t5) {
212551
212551
  t5 = false;
@@ -212578,7 +212578,7 @@ function makeFetchSource(e4, r3, a4) {
212578
212578
  } else if (/text\/event-stream/i.test(o3)) {
212579
212579
  s2 = async function* parseEventStream(e6) {
212580
212580
  var r5;
212581
- for await (var a6 of split2(streamBody(e6), `
212581
+ for await (var a6 of split(streamBody(e6), `
212582
212582
 
212583
212583
  `)) {
212584
212584
  var n5 = a6.match(S);
@@ -259683,7 +259683,7 @@ function pruneCurrentEnv(currentEnv, env2) {
259683
259683
  var package_default = {
259684
259684
  name: "@settlemint/sdk-cli",
259685
259685
  description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
259686
- version: "1.1.16-pr04fb0456",
259686
+ version: "1.1.16-pr3067e493",
259687
259687
  type: "module",
259688
259688
  private: false,
259689
259689
  license: "FSL-1.1-MIT",
@@ -259728,11 +259728,11 @@ var package_default = {
259728
259728
  devDependencies: {
259729
259729
  "@commander-js/extra-typings": "13.1.0",
259730
259730
  "@inquirer/confirm": "5.1.6",
259731
- "@inquirer/input": "4.1.7",
259731
+ "@inquirer/input": "4.1.6",
259732
259732
  "@inquirer/password": "4.0.9",
259733
- "@inquirer/select": "4.0.9",
259734
- "@settlemint/sdk-js": "1.1.16-pr04fb0456",
259735
- "@settlemint/sdk-utils": "1.1.16-pr04fb0456",
259733
+ "@inquirer/select": "4.0.10",
259734
+ "@settlemint/sdk-js": "1.1.16-pr3067e493",
259735
+ "@settlemint/sdk-utils": "1.1.16-pr3067e493",
259736
259736
  "@types/node": "22.13.10",
259737
259737
  "@types/semver": "7.5.8",
259738
259738
  "@types/which": "3.0.4",
@@ -259822,10 +259822,7 @@ var {
259822
259822
  } = import__.default;
259823
259823
 
259824
259824
  // ../../node_modules/@inquirer/core/dist/esm/lib/key.js
259825
- var isUpKey = (key) => key.name === "up" || key.name === "k" || key.ctrl && key.name === "p";
259826
- var isDownKey = (key) => key.name === "down" || key.name === "j" || key.ctrl && key.name === "n";
259827
259825
  var isBackspaceKey = (key) => key.name === "backspace";
259828
- var isNumberKey = (key) => "123456789".includes(key.name);
259829
259826
  var isEnterKey = (key) => key.name === "enter" || key.name === "return";
259830
259827
  // ../../node_modules/@inquirer/core/dist/esm/lib/errors.js
259831
259828
  class AbortPromptError extends Error {
@@ -259995,7 +259992,7 @@ function useEffect(cb, depArray) {
259995
259992
  // ../../node_modules/@inquirer/core/dist/esm/lib/theme.js
259996
259993
  var import_yoctocolors_cjs = __toESM(require_yoctocolors_cjs(), 1);
259997
259994
 
259998
- // ../../node_modules/@inquirer/figures/dist/esm/index.js
259995
+ // ../../node_modules/@inquirer/core/node_modules/@inquirer/figures/dist/esm/index.js
259999
259996
  import process4 from "node:process";
260000
259997
  function isUnicodeSupported2() {
260001
259998
  if (process4.platform !== "win32") {
@@ -260360,22 +260357,11 @@ function usePrefix({ status = "idle", theme }) {
260360
260357
  const iconName = status === "loading" ? "idle" : status;
260361
260358
  return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
260362
260359
  }
260363
- // ../../node_modules/@inquirer/core/dist/esm/lib/use-memo.js
260364
- function useMemo(fn, dependencies) {
260365
- return withPointer((pointer) => {
260366
- const prev = pointer.get();
260367
- if (!prev || prev.dependencies.length !== dependencies.length || prev.dependencies.some((dep, i) => dep !== dependencies[i])) {
260368
- const value = fn();
260369
- pointer.set({ value, dependencies });
260370
- return value;
260371
- }
260372
- return prev.value;
260373
- });
260374
- }
260375
260360
  // ../../node_modules/@inquirer/core/dist/esm/lib/use-ref.js
260376
260361
  function useRef(val) {
260377
260362
  return useState({ current: val })[0];
260378
260363
  }
260364
+
260379
260365
  // ../../node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
260380
260366
  function useKeypress(userHandler) {
260381
260367
  const signal = useRef(userHandler);
@@ -260407,95 +260393,6 @@ function readlineWidth() {
260407
260393
  return import_cli_width.default({ defaultWidth: 80, output: readline().output });
260408
260394
  }
260409
260395
 
260410
- // ../../node_modules/@inquirer/core/dist/esm/lib/pagination/lines.js
260411
- function split(content, width) {
260412
- return breakLines(content, width).split(`
260413
- `);
260414
- }
260415
- function rotate(count, items) {
260416
- const max = items.length;
260417
- const offset = (count % max + max) % max;
260418
- return [...items.slice(offset), ...items.slice(0, offset)];
260419
- }
260420
- function lines({ items, width, renderItem, active, position: requested, pageSize }) {
260421
- const layouts = items.map((item, index) => ({
260422
- item,
260423
- index,
260424
- isActive: index === active
260425
- }));
260426
- const layoutsInPage = rotate(active - requested, layouts).slice(0, pageSize);
260427
- const renderItemAt = (index) => layoutsInPage[index] == null ? [] : split(renderItem(layoutsInPage[index]), width);
260428
- const pageBuffer = Array.from({ length: pageSize });
260429
- const activeItem = renderItemAt(requested).slice(0, pageSize);
260430
- const position = requested + activeItem.length <= pageSize ? requested : pageSize - activeItem.length;
260431
- pageBuffer.splice(position, activeItem.length, ...activeItem);
260432
- let bufferPointer = position + activeItem.length;
260433
- let layoutPointer = requested + 1;
260434
- while (bufferPointer < pageSize && layoutPointer < layoutsInPage.length) {
260435
- for (const line of renderItemAt(layoutPointer)) {
260436
- pageBuffer[bufferPointer++] = line;
260437
- if (bufferPointer >= pageSize)
260438
- break;
260439
- }
260440
- layoutPointer++;
260441
- }
260442
- bufferPointer = position - 1;
260443
- layoutPointer = requested - 1;
260444
- while (bufferPointer >= 0 && layoutPointer >= 0) {
260445
- for (const line of renderItemAt(layoutPointer).reverse()) {
260446
- pageBuffer[bufferPointer--] = line;
260447
- if (bufferPointer < 0)
260448
- break;
260449
- }
260450
- layoutPointer--;
260451
- }
260452
- return pageBuffer.filter((line) => typeof line === "string");
260453
- }
260454
-
260455
- // ../../node_modules/@inquirer/core/dist/esm/lib/pagination/position.js
260456
- function finite({ active, pageSize, total }) {
260457
- const middle = Math.floor(pageSize / 2);
260458
- if (total <= pageSize || active < middle)
260459
- return active;
260460
- if (active >= total - middle)
260461
- return active + pageSize - total;
260462
- return middle;
260463
- }
260464
- function infinite({ active, lastActive, total, pageSize, pointer }) {
260465
- if (total <= pageSize)
260466
- return active;
260467
- if (lastActive < active && active - lastActive < pageSize) {
260468
- return Math.min(Math.floor(pageSize / 2), pointer + active - lastActive);
260469
- }
260470
- return pointer;
260471
- }
260472
-
260473
- // ../../node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
260474
- function usePagination({ items, active, renderItem, pageSize, loop = true }) {
260475
- const state = useRef({ position: 0, lastActive: 0 });
260476
- const position = loop ? infinite({
260477
- active,
260478
- lastActive: state.current.lastActive,
260479
- total: items.length,
260480
- pageSize,
260481
- pointer: state.current.position
260482
- }) : finite({
260483
- active,
260484
- total: items.length,
260485
- pageSize
260486
- });
260487
- state.current.position = position;
260488
- state.current.lastActive = active;
260489
- return lines({
260490
- items,
260491
- width: readlineWidth(),
260492
- renderItem,
260493
- active,
260494
- position,
260495
- pageSize
260496
- }).join(`
260497
- `);
260498
- }
260499
260396
  // ../../node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
260500
260397
  var import_mute_stream = __toESM(require_lib(), 1);
260501
260398
  import * as readline2 from "node:readline";
@@ -260881,20 +260778,6 @@ function createPrompt(view) {
260881
260778
  };
260882
260779
  return prompt;
260883
260780
  }
260884
- // ../../node_modules/@inquirer/core/dist/esm/lib/Separator.js
260885
- var import_yoctocolors_cjs2 = __toESM(require_yoctocolors_cjs(), 1);
260886
- class Separator {
260887
- separator = import_yoctocolors_cjs2.default.dim(Array.from({ length: 15 }).join(esm_default.line));
260888
- type = "separator";
260889
- constructor(separator) {
260890
- if (separator) {
260891
- this.separator = separator;
260892
- }
260893
- }
260894
- static isSeparator(choice) {
260895
- return Boolean(choice && typeof choice === "object" && "type" in choice && choice.type === "separator");
260896
- }
260897
- }
260898
260781
  // ../utils/dist/terminal.mjs
260899
260782
  import { spawn } from "node:child_process";
260900
260783
  var import_console_table_printer2 = __toESM(require_dist2(), 1);
@@ -265087,10 +264970,97 @@ function sanitizeName(value4, length = 35) {
265087
264970
  }).slice(0, length).replaceAll(/(^\d*)/g, "").replaceAll(/(-$)/g, "").replaceAll(/(^-)/g, "");
265088
264971
  }
265089
264972
 
265090
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/key.js
264973
+ // ../../node_modules/@inquirer/input/dist/esm/index.js
264974
+ var inputTheme = {
264975
+ validationFailureMode: "keep"
264976
+ };
264977
+ var esm_default2 = createPrompt((config3, done) => {
264978
+ const { required, validate: validate3 = () => true } = config3;
264979
+ const theme = makeTheme(inputTheme, config3.theme);
264980
+ const [status, setStatus] = useState("idle");
264981
+ const [defaultValue = "", setDefaultValue] = useState(config3.default);
264982
+ const [errorMsg, setError] = useState();
264983
+ const [value4, setValue] = useState("");
264984
+ const prefix = usePrefix({ status, theme });
264985
+ useKeypress(async (key2, rl) => {
264986
+ if (status !== "idle") {
264987
+ return;
264988
+ }
264989
+ if (isEnterKey(key2)) {
264990
+ const answer = value4 || defaultValue;
264991
+ setStatus("loading");
264992
+ const isValid2 = required && !answer ? "You must provide a value" : await validate3(answer);
264993
+ if (isValid2 === true) {
264994
+ setValue(answer);
264995
+ setStatus("done");
264996
+ done(answer);
264997
+ } else {
264998
+ if (theme.validationFailureMode === "clear") {
264999
+ setValue("");
265000
+ } else {
265001
+ rl.write(value4);
265002
+ }
265003
+ setError(isValid2 || "You must provide a valid value");
265004
+ setStatus("idle");
265005
+ }
265006
+ } else if (isBackspaceKey(key2) && !value4) {
265007
+ setDefaultValue(undefined);
265008
+ } else if (key2.name === "tab" && !value4) {
265009
+ setDefaultValue(undefined);
265010
+ rl.clearLine(0);
265011
+ rl.write(defaultValue);
265012
+ setValue(defaultValue);
265013
+ } else {
265014
+ setValue(rl.line);
265015
+ setError(undefined);
265016
+ }
265017
+ });
265018
+ const message = theme.style.message(config3.message, status);
265019
+ let formattedValue = value4;
265020
+ if (typeof config3.transformer === "function") {
265021
+ formattedValue = config3.transformer(value4, { isFinal: status === "done" });
265022
+ } else if (status === "done") {
265023
+ formattedValue = theme.style.answer(value4);
265024
+ }
265025
+ let defaultStr;
265026
+ if (defaultValue && status !== "done" && !value4) {
265027
+ defaultStr = theme.style.defaultAnswer(defaultValue);
265028
+ }
265029
+ let error5 = "";
265030
+ if (errorMsg) {
265031
+ error5 = theme.style.error(errorMsg);
265032
+ }
265033
+ return [
265034
+ [prefix, message, defaultStr, formattedValue].filter((v6) => v6 !== undefined).join(" "),
265035
+ error5
265036
+ ];
265037
+ });
265038
+
265039
+ // src/prompts/smart-contract-set/subgraph-name.prompt.ts
265040
+ async function subgraphNamePrompt({
265041
+ defaultName,
265042
+ env: env2,
265043
+ accept
265044
+ }) {
265045
+ const defaultSubgraphName = defaultName ? sanitizeName(defaultName) : undefined;
265046
+ if (accept) {
265047
+ return defaultSubgraphName ?? env2.SETTLEMINT_THEGRAPH_DEFAULT_SUBGRAPH;
265048
+ }
265049
+ const subgraphName = await esm_default2({
265050
+ message: "What is the name of your subgraph?",
265051
+ default: defaultSubgraphName,
265052
+ required: true
265053
+ });
265054
+ return sanitizeName(subgraphName);
265055
+ }
265056
+
265057
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/key.js
265058
+ var isUpKey = (key2) => key2.name === "up" || key2.name === "k" || key2.ctrl && key2.name === "p";
265059
+ var isDownKey = (key2) => key2.name === "down" || key2.name === "j" || key2.ctrl && key2.name === "n";
265091
265060
  var isBackspaceKey2 = (key2) => key2.name === "backspace";
265061
+ var isNumberKey = (key2) => "123456789".includes(key2.name);
265092
265062
  var isEnterKey2 = (key2) => key2.name === "enter" || key2.name === "return";
265093
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/errors.js
265063
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/errors.js
265094
265064
  class AbortPromptError2 extends Error {
265095
265065
  name = "AbortPromptError";
265096
265066
  message = "Prompt was aborted";
@@ -265116,10 +265086,10 @@ class HookError2 extends Error {
265116
265086
  class ValidationError2 extends Error {
265117
265087
  name = "ValidationError";
265118
265088
  }
265119
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
265089
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
265120
265090
  import { AsyncResource as AsyncResource5 } from "node:async_hooks";
265121
265091
 
265122
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
265092
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
265123
265093
  import { AsyncLocalStorage as AsyncLocalStorage2, AsyncResource as AsyncResource4 } from "node:async_hooks";
265124
265094
  var hookStorage2 = new AsyncLocalStorage2;
265125
265095
  function createStore2(rl) {
@@ -265225,7 +265195,7 @@ var effectScheduler2 = {
265225
265195
  }
265226
265196
  };
265227
265197
 
265228
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-state.js
265198
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-state.js
265229
265199
  function useState2(defaultValue) {
265230
265200
  return withPointer2((pointer) => {
265231
265201
  const setFn = (newValue) => {
@@ -265243,7 +265213,7 @@ function useState2(defaultValue) {
265243
265213
  });
265244
265214
  }
265245
265215
 
265246
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
265216
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
265247
265217
  function useEffect2(cb, depArray) {
265248
265218
  withPointer2((pointer) => {
265249
265219
  const oldDeps = pointer.get();
@@ -265255,10 +265225,10 @@ function useEffect2(cb, depArray) {
265255
265225
  });
265256
265226
  }
265257
265227
 
265258
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/theme.js
265259
- var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
265228
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/theme.js
265229
+ var import_yoctocolors_cjs2 = __toESM(require_yoctocolors_cjs(), 1);
265260
265230
 
265261
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/node_modules/@inquirer/figures/dist/esm/index.js
265231
+ // ../../node_modules/@inquirer/figures/dist/esm/index.js
265262
265232
  import process8 from "node:process";
265263
265233
  function isUnicodeSupported3() {
265264
265234
  if (process8.platform !== "win32") {
@@ -265541,31 +265511,31 @@ var fallbackSymbols2 = {
265541
265511
  };
265542
265512
  var shouldUseMain2 = isUnicodeSupported3();
265543
265513
  var figures2 = shouldUseMain2 ? mainSymbols2 : fallbackSymbols2;
265544
- var esm_default2 = figures2;
265514
+ var esm_default3 = figures2;
265545
265515
  var replacements2 = Object.entries(specialMainSymbols2);
265546
265516
 
265547
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/theme.js
265517
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/theme.js
265548
265518
  var defaultTheme2 = {
265549
265519
  prefix: {
265550
- idle: import_yoctocolors_cjs3.default.blue("?"),
265551
- done: import_yoctocolors_cjs3.default.green(esm_default2.tick)
265520
+ idle: import_yoctocolors_cjs2.default.blue("?"),
265521
+ done: import_yoctocolors_cjs2.default.green(esm_default3.tick)
265552
265522
  },
265553
265523
  spinner: {
265554
265524
  interval: 80,
265555
- frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs3.default.yellow(frame))
265525
+ frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs2.default.yellow(frame))
265556
265526
  },
265557
265527
  style: {
265558
- answer: import_yoctocolors_cjs3.default.cyan,
265559
- message: import_yoctocolors_cjs3.default.bold,
265560
- error: (text2) => import_yoctocolors_cjs3.default.red(`> ${text2}`),
265561
- defaultAnswer: (text2) => import_yoctocolors_cjs3.default.dim(`(${text2})`),
265562
- help: import_yoctocolors_cjs3.default.dim,
265563
- highlight: import_yoctocolors_cjs3.default.cyan,
265564
- key: (text2) => import_yoctocolors_cjs3.default.cyan(import_yoctocolors_cjs3.default.bold(`<${text2}>`))
265528
+ answer: import_yoctocolors_cjs2.default.cyan,
265529
+ message: import_yoctocolors_cjs2.default.bold,
265530
+ error: (text2) => import_yoctocolors_cjs2.default.red(`> ${text2}`),
265531
+ defaultAnswer: (text2) => import_yoctocolors_cjs2.default.dim(`(${text2})`),
265532
+ help: import_yoctocolors_cjs2.default.dim,
265533
+ highlight: import_yoctocolors_cjs2.default.cyan,
265534
+ key: (text2) => import_yoctocolors_cjs2.default.cyan(import_yoctocolors_cjs2.default.bold(`<${text2}>`))
265565
265535
  }
265566
265536
  };
265567
265537
 
265568
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
265538
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
265569
265539
  function isPlainObject3(value4) {
265570
265540
  if (typeof value4 !== "object" || value4 === null)
265571
265541
  return false;
@@ -265593,7 +265563,7 @@ function makeTheme2(...themes) {
265593
265563
  return deepMerge3(...themesToMerge);
265594
265564
  }
265595
265565
 
265596
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
265566
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
265597
265567
  function usePrefix2({ status = "idle", theme }) {
265598
265568
  const [showLoader, setShowLoader] = useState2(false);
265599
265569
  const [tick, setTick] = useState2(0);
@@ -265623,12 +265593,23 @@ function usePrefix2({ status = "idle", theme }) {
265623
265593
  const iconName = status === "loading" ? "idle" : status;
265624
265594
  return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
265625
265595
  }
265626
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
265596
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-memo.js
265597
+ function useMemo(fn, dependencies) {
265598
+ return withPointer2((pointer) => {
265599
+ const prev = pointer.get();
265600
+ if (!prev || prev.dependencies.length !== dependencies.length || prev.dependencies.some((dep, i6) => dep !== dependencies[i6])) {
265601
+ const value4 = fn();
265602
+ pointer.set({ value: value4, dependencies });
265603
+ return value4;
265604
+ }
265605
+ return prev.value;
265606
+ });
265607
+ }
265608
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
265627
265609
  function useRef2(val) {
265628
265610
  return useState2({ current: val })[0];
265629
265611
  }
265630
-
265631
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
265612
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
265632
265613
  function useKeypress2(userHandler) {
265633
265614
  const signal = useRef2(userHandler);
265634
265615
  signal.current = userHandler;
@@ -265646,7 +265627,7 @@ function useKeypress2(userHandler) {
265646
265627
  };
265647
265628
  }, []);
265648
265629
  }
265649
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/utils.js
265630
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/utils.js
265650
265631
  var import_cli_width2 = __toESM(require_cli_width(), 1);
265651
265632
  var import_wrap_ansi2 = __toESM(require_wrap_ansi(), 1);
265652
265633
  function breakLines2(content, width) {
@@ -265659,12 +265640,101 @@ function readlineWidth2() {
265659
265640
  return import_cli_width2.default({ defaultWidth: 80, output: readline3().output });
265660
265641
  }
265661
265642
 
265662
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
265643
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/pagination/lines.js
265644
+ function split2(content, width) {
265645
+ return breakLines2(content, width).split(`
265646
+ `);
265647
+ }
265648
+ function rotate(count, items) {
265649
+ const max = items.length;
265650
+ const offset = (count % max + max) % max;
265651
+ return [...items.slice(offset), ...items.slice(0, offset)];
265652
+ }
265653
+ function lines({ items, width, renderItem, active, position: requested, pageSize }) {
265654
+ const layouts = items.map((item, index) => ({
265655
+ item,
265656
+ index,
265657
+ isActive: index === active
265658
+ }));
265659
+ const layoutsInPage = rotate(active - requested, layouts).slice(0, pageSize);
265660
+ const renderItemAt = (index) => layoutsInPage[index] == null ? [] : split2(renderItem(layoutsInPage[index]), width);
265661
+ const pageBuffer = Array.from({ length: pageSize });
265662
+ const activeItem = renderItemAt(requested).slice(0, pageSize);
265663
+ const position = requested + activeItem.length <= pageSize ? requested : pageSize - activeItem.length;
265664
+ pageBuffer.splice(position, activeItem.length, ...activeItem);
265665
+ let bufferPointer = position + activeItem.length;
265666
+ let layoutPointer = requested + 1;
265667
+ while (bufferPointer < pageSize && layoutPointer < layoutsInPage.length) {
265668
+ for (const line of renderItemAt(layoutPointer)) {
265669
+ pageBuffer[bufferPointer++] = line;
265670
+ if (bufferPointer >= pageSize)
265671
+ break;
265672
+ }
265673
+ layoutPointer++;
265674
+ }
265675
+ bufferPointer = position - 1;
265676
+ layoutPointer = requested - 1;
265677
+ while (bufferPointer >= 0 && layoutPointer >= 0) {
265678
+ for (const line of renderItemAt(layoutPointer).reverse()) {
265679
+ pageBuffer[bufferPointer--] = line;
265680
+ if (bufferPointer < 0)
265681
+ break;
265682
+ }
265683
+ layoutPointer--;
265684
+ }
265685
+ return pageBuffer.filter((line) => typeof line === "string");
265686
+ }
265687
+
265688
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/pagination/position.js
265689
+ function finite({ active, pageSize, total }) {
265690
+ const middle = Math.floor(pageSize / 2);
265691
+ if (total <= pageSize || active < middle)
265692
+ return active;
265693
+ if (active >= total - middle)
265694
+ return active + pageSize - total;
265695
+ return middle;
265696
+ }
265697
+ function infinite({ active, lastActive, total, pageSize, pointer }) {
265698
+ if (total <= pageSize)
265699
+ return active;
265700
+ if (lastActive < active && active - lastActive < pageSize) {
265701
+ return Math.min(Math.floor(pageSize / 2), pointer + active - lastActive);
265702
+ }
265703
+ return pointer;
265704
+ }
265705
+
265706
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
265707
+ function usePagination({ items, active, renderItem, pageSize, loop = true }) {
265708
+ const state = useRef2({ position: 0, lastActive: 0 });
265709
+ const position = loop ? infinite({
265710
+ active,
265711
+ lastActive: state.current.lastActive,
265712
+ total: items.length,
265713
+ pageSize,
265714
+ pointer: state.current.position
265715
+ }) : finite({
265716
+ active,
265717
+ total: items.length,
265718
+ pageSize
265719
+ });
265720
+ state.current.position = position;
265721
+ state.current.lastActive = active;
265722
+ return lines({
265723
+ items,
265724
+ width: readlineWidth2(),
265725
+ renderItem,
265726
+ active,
265727
+ position,
265728
+ pageSize
265729
+ }).join(`
265730
+ `);
265731
+ }
265732
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
265663
265733
  var import_mute_stream2 = __toESM(require_lib(), 1);
265664
265734
  import * as readline4 from "node:readline";
265665
265735
  import { AsyncResource as AsyncResource6 } from "node:async_hooks";
265666
265736
 
265667
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
265737
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
265668
265738
  var import_ansi_escapes2 = __toESM(require_ansi_escapes(), 1);
265669
265739
  import { stripVTControlCharacters as stripVTControlCharacters3 } from "node:util";
265670
265740
  var height2 = (content) => content.split(`
@@ -265734,7 +265804,7 @@ class ScreenManager2 {
265734
265804
  }
265735
265805
  }
265736
265806
 
265737
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
265807
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
265738
265808
  class PromisePolyfill2 extends Promise {
265739
265809
  static withResolver() {
265740
265810
  let resolve5;
@@ -265747,7 +265817,7 @@ class PromisePolyfill2 extends Promise {
265747
265817
  }
265748
265818
  }
265749
265819
 
265750
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
265820
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
265751
265821
  function getCallSites2() {
265752
265822
  const _prepareStackTrace = Error.prepareStackTrace;
265753
265823
  let result = [];
@@ -265830,95 +265900,25 @@ function createPrompt2(view) {
265830
265900
  };
265831
265901
  return prompt;
265832
265902
  }
265833
- // ../../node_modules/@inquirer/input/dist/esm/index.js
265834
- var inputTheme = {
265835
- validationFailureMode: "keep"
265836
- };
265837
- var esm_default3 = createPrompt2((config3, done) => {
265838
- const { required, validate: validate3 = () => true } = config3;
265839
- const theme = makeTheme2(inputTheme, config3.theme);
265840
- const [status, setStatus] = useState2("idle");
265841
- const [defaultValue = "", setDefaultValue] = useState2(config3.default);
265842
- const [errorMsg, setError] = useState2();
265843
- const [value4, setValue] = useState2("");
265844
- const prefix = usePrefix2({ status, theme });
265845
- useKeypress2(async (key3, rl) => {
265846
- if (status !== "idle") {
265847
- return;
265848
- }
265849
- if (isEnterKey2(key3)) {
265850
- const answer = value4 || defaultValue;
265851
- setStatus("loading");
265852
- const isValid2 = required && !answer ? "You must provide a value" : await validate3(answer);
265853
- if (isValid2 === true) {
265854
- setValue(answer);
265855
- setStatus("done");
265856
- done(answer);
265857
- } else {
265858
- if (theme.validationFailureMode === "clear") {
265859
- setValue("");
265860
- } else {
265861
- rl.write(value4);
265862
- }
265863
- setError(isValid2 || "You must provide a valid value");
265864
- setStatus("idle");
265865
- }
265866
- } else if (isBackspaceKey2(key3) && !value4) {
265867
- setDefaultValue(undefined);
265868
- } else if (key3.name === "tab" && !value4) {
265869
- setDefaultValue(undefined);
265870
- rl.clearLine(0);
265871
- rl.write(defaultValue);
265872
- setValue(defaultValue);
265873
- } else {
265874
- setValue(rl.line);
265875
- setError(undefined);
265903
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/Separator.js
265904
+ var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
265905
+ class Separator {
265906
+ separator = import_yoctocolors_cjs3.default.dim(Array.from({ length: 15 }).join(esm_default3.line));
265907
+ type = "separator";
265908
+ constructor(separator) {
265909
+ if (separator) {
265910
+ this.separator = separator;
265876
265911
  }
265877
- });
265878
- const message = theme.style.message(config3.message, status);
265879
- let formattedValue = value4;
265880
- if (typeof config3.transformer === "function") {
265881
- formattedValue = config3.transformer(value4, { isFinal: status === "done" });
265882
- } else if (status === "done") {
265883
- formattedValue = theme.style.answer(value4);
265884
- }
265885
- let defaultStr;
265886
- if (defaultValue && status !== "done" && !value4) {
265887
- defaultStr = theme.style.defaultAnswer(defaultValue);
265888
- }
265889
- let error5 = "";
265890
- if (errorMsg) {
265891
- error5 = theme.style.error(errorMsg);
265892
265912
  }
265893
- return [
265894
- [prefix, message, defaultStr, formattedValue].filter((v6) => v6 !== undefined).join(" "),
265895
- error5
265896
- ];
265897
- });
265898
-
265899
- // src/prompts/smart-contract-set/subgraph-name.prompt.ts
265900
- async function subgraphNamePrompt({
265901
- defaultName,
265902
- env: env2,
265903
- accept
265904
- }) {
265905
- const defaultSubgraphName = defaultName ? sanitizeName(defaultName) : undefined;
265906
- if (accept) {
265907
- return defaultSubgraphName ?? env2.SETTLEMINT_THEGRAPH_DEFAULT_SUBGRAPH;
265913
+ static isSeparator(choice) {
265914
+ return Boolean(choice && typeof choice === "object" && "type" in choice && choice.type === "separator");
265908
265915
  }
265909
- const subgraphName = await esm_default3({
265910
- message: "What is the name of your subgraph?",
265911
- default: defaultSubgraphName,
265912
- required: true
265913
- });
265914
- return sanitizeName(subgraphName);
265915
265916
  }
265916
-
265917
265917
  // ../../node_modules/@inquirer/select/dist/esm/index.js
265918
265918
  var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
265919
265919
  var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
265920
265920
  var selectTheme = {
265921
- icon: { cursor: esm_default.pointer },
265921
+ icon: { cursor: esm_default3.pointer },
265922
265922
  style: {
265923
265923
  disabled: (text2) => import_yoctocolors_cjs4.default.dim(`- ${text2}`),
265924
265924
  description: (text2) => import_yoctocolors_cjs4.default.cyan(text2)
@@ -265950,19 +265950,19 @@ function normalizeChoices(choices) {
265950
265950
  };
265951
265951
  });
265952
265952
  }
265953
- var esm_default4 = createPrompt((config3, done) => {
265953
+ var esm_default4 = createPrompt2((config3, done) => {
265954
265954
  const { loop = true, pageSize = 7 } = config3;
265955
- const firstRender = useRef(true);
265956
- const theme = makeTheme(selectTheme, config3.theme);
265957
- const [status, setStatus] = useState("idle");
265958
- const prefix = usePrefix({ status, theme });
265959
- const searchTimeoutRef = useRef();
265955
+ const firstRender = useRef2(true);
265956
+ const theme = makeTheme2(selectTheme, config3.theme);
265957
+ const [status, setStatus] = useState2("idle");
265958
+ const prefix = usePrefix2({ status, theme });
265959
+ const searchTimeoutRef = useRef2();
265960
265960
  const items = useMemo(() => normalizeChoices(config3.choices), [config3.choices]);
265961
265961
  const bounds = useMemo(() => {
265962
265962
  const first = items.findIndex(isSelectable);
265963
265963
  const last = items.findLastIndex(isSelectable);
265964
265964
  if (first === -1) {
265965
- throw new ValidationError("[select prompt] No selectable choices. All choices are disabled.");
265965
+ throw new ValidationError2("[select prompt] No selectable choices. All choices are disabled.");
265966
265966
  }
265967
265967
  return { first, last };
265968
265968
  }, [items]);
@@ -265971,11 +265971,11 @@ var esm_default4 = createPrompt((config3, done) => {
265971
265971
  return -1;
265972
265972
  return items.findIndex((item) => isSelectable(item) && item.value === config3.default);
265973
265973
  }, [config3.default, items]);
265974
- const [active, setActive] = useState(defaultItemIndex === -1 ? bounds.first : defaultItemIndex);
265974
+ const [active, setActive] = useState2(defaultItemIndex === -1 ? bounds.first : defaultItemIndex);
265975
265975
  const selectedChoice = items[active];
265976
- useKeypress((key3, rl) => {
265976
+ useKeypress2((key3, rl) => {
265977
265977
  clearTimeout(searchTimeoutRef.current);
265978
- if (isEnterKey(key3)) {
265978
+ if (isEnterKey2(key3)) {
265979
265979
  setStatus("done");
265980
265980
  done(selectedChoice.value);
265981
265981
  } else if (isUpKey(key3) || isDownKey(key3)) {
@@ -265995,7 +265995,7 @@ var esm_default4 = createPrompt((config3, done) => {
265995
265995
  if (item != null && isSelectable(item)) {
265996
265996
  setActive(position);
265997
265997
  }
265998
- } else if (isBackspaceKey(key3)) {
265998
+ } else if (isBackspaceKey2(key3)) {
265999
265999
  rl.clearLine(0);
266000
266000
  } else {
266001
266001
  const searchTerm = rl.line.toLowerCase();
@@ -266012,7 +266012,7 @@ var esm_default4 = createPrompt((config3, done) => {
266012
266012
  }, 700);
266013
266013
  }
266014
266014
  });
266015
- useEffect(() => () => {
266015
+ useEffect2(() => () => {
266016
266016
  clearTimeout(searchTimeoutRef.current);
266017
266017
  }, []);
266018
266018
  const message = theme.style.message(config3.message, status);
@@ -266538,7 +266538,7 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
266538
266538
  default: false
266539
266539
  });
266540
266540
  if (create2) {
266541
- const name3 = await esm_default3({
266541
+ const name3 = await esm_default2({
266542
266542
  message: "How would you like to name this application access token?",
266543
266543
  default: `SettleMint CLI (${Date.now()}${process.env.USER ? ` ${process.env.USER}` : ""})`,
266544
266544
  required: true,
@@ -266938,7 +266938,7 @@ async function instancePrompt(env2, accept, freeTextInput = false, isCi = is_in_
266938
266938
  return sanitizeInstanceUrl(defaultPromptInstance);
266939
266939
  }
266940
266940
  if (freeTextInput) {
266941
- const instance = await esm_default3({
266941
+ const instance = await esm_default2({
266942
266942
  message: "What is the URL of your SettleMint instance?",
266943
266943
  default: defaultPromptInstance,
266944
266944
  required: true,
@@ -267390,7 +267390,7 @@ async function projectNamePrompt(env2, argument) {
267390
267390
  if (defaultInstance) {
267391
267391
  return defaultInstance;
267392
267392
  }
267393
- return esm_default3({
267393
+ return esm_default2({
267394
267394
  message: "What is the name of your new SettleMint project?",
267395
267395
  default: defaultInstance,
267396
267396
  required: true,
@@ -272250,7 +272250,7 @@ function createCommand3() {
272250
272250
 
272251
272251
  // src/prompts/delete-confirmation.prompt.ts
272252
272252
  async function deleteConfirmationPrompt(itemDescription) {
272253
- const confirmation = await esm_default3({
272253
+ const confirmation = await esm_default2({
272254
272254
  message: `Are you sure you want to delete ${itemDescription}? (yes/no)`,
272255
272255
  required: true,
272256
272256
  validate(value4) {
@@ -274216,4 +274216,4 @@ async function sdkCliCommand(argv = process.argv) {
274216
274216
  // src/cli.ts
274217
274217
  sdkCliCommand();
274218
274218
 
274219
- //# debugId=797306128A6BE57D64756E2164756E21
274219
+ //# debugId=DE30300DE392FD3764756E2164756E21