@settlemint/sdk-cli 1.1.16-main2e38ffaf → 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.
- package/dist/cli.js +1227 -484
- package/dist/cli.js.map +23 -8
- package/package.json +4 -4
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
|
14520
|
-
const locationLine =
|
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} |`,
|
14536
|
+
[`${lineNum - 1} |`, lines[lineIndex - 1]],
|
14537
14537
|
[`${lineNum} |`, locationLine],
|
14538
14538
|
["|", "^".padStart(columnNum)],
|
14539
|
-
[`${lineNum + 1} |`,
|
14539
|
+
[`${lineNum + 1} |`, lines[lineIndex + 1]]
|
14540
14540
|
]);
|
14541
14541
|
}
|
14542
|
-
function printPrefixedLines(
|
14543
|
-
const existingLines =
|
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(
|
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 <
|
14961
|
+
for (let i = 0;i < lines.length; ++i) {
|
14962
14962
|
var _firstNonEmptyLine;
|
14963
|
-
const line =
|
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
|
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
|
15037
|
-
const isSingleLine =
|
15038
|
-
const forceLeadingNewLine =
|
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
|
34099
|
-
if (
|
34100
|
-
|
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 =
|
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
|
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
|
36565
|
+
const lines = str.split(/[\r\n]+/g);
|
36566
36566
|
const duplicates = {};
|
36567
|
-
for (const line of
|
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 = (
|
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
|
38184
|
-
if (
|
38183
|
+
const split = line.trim().split(/\s+/, 2);
|
38184
|
+
if (split.length < 2) {
|
38185
38185
|
return null;
|
38186
38186
|
}
|
38187
|
-
const sha =
|
38188
|
-
const rawRef =
|
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
|
40749
|
+
const lines = description.trim().split(`
|
40750
40750
|
`);
|
40751
40751
|
let start = 0;
|
40752
|
-
while (
|
40752
|
+
while (lines[start]?.trim().match(/^(#|$)/)) {
|
40753
40753
|
start++;
|
40754
40754
|
}
|
40755
40755
|
let end = start + 1;
|
40756
|
-
while (end <
|
40756
|
+
while (end < lines.length && lines[end].trim()) {
|
40757
40757
|
end++;
|
40758
40758
|
}
|
40759
|
-
return
|
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(
|
59472
|
+
function guessIndentation(lines) {
|
59473
59473
|
let indentation = MAX_SMI_X86;
|
59474
|
-
for (const line of
|
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
|
148032
|
-
for (const line of
|
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
|
148677
|
-
if (
|
148678
|
-
writeLine(
|
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
|
148688
|
-
const indentation = guessIndentation(
|
148689
|
-
for (const lineText of
|
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
|
148788
|
-
if (
|
148787
|
+
const lines = getLineDifference(true);
|
148788
|
+
if (lines === 0) {
|
148789
148789
|
return getLineDifference(false);
|
148790
148790
|
}
|
148791
|
-
return
|
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
|
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(
|
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 ?
|
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
|
159212
|
+
let lines = [];
|
159213
159213
|
for (const option of optionsList) {
|
159214
159214
|
const tmp = generateOptionOutput(sys2, option, rightAlignOfLeftPart, leftAlignOfRightPart);
|
159215
|
-
|
159215
|
+
lines = [...lines, ...tmp];
|
159216
159216
|
}
|
159217
|
-
if (
|
159218
|
-
|
159217
|
+
if (lines[lines.length - 2] !== sys2.newLine) {
|
159218
|
+
lines.push(sys2.newLine);
|
159219
159219
|
}
|
159220
|
-
return
|
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
|
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(
|
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(" " +
|
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
|
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 =
|
159306
|
-
const tsIconSecondLine =
|
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
|
211020
|
-
if (
|
211021
|
-
|
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 (
|
211041
|
-
leafNode.text =
|
211042
|
-
if (
|
211043
|
-
let insertedNodes = new Array(
|
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 <
|
211046
|
-
insertedNodes[i2 - 1] = new LineLeaf(
|
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(
|
211317
|
-
if (
|
211316
|
+
load(lines) {
|
211317
|
+
if (lines.length > 0) {
|
211318
211318
|
const leaves = [];
|
211319
|
-
for (let i2 = 0;i2 <
|
211320
|
-
leaves[i2] = new LineLeaf(
|
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
|
211423
|
+
const lines = new Array(lineMap.length);
|
211424
211424
|
const lc = lineMap.length - 1;
|
211425
211425
|
for (let lmi = 0;lmi < lc; lmi++) {
|
211426
|
-
|
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
|
-
|
211430
|
+
lines[lc] = endText;
|
211431
211431
|
} else {
|
211432
|
-
|
211432
|
+
lines.pop();
|
211433
211433
|
}
|
211434
|
-
return { lines
|
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*
|
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
|
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
|
212581
|
+
for await (var a6 of split(streamBody(e6), `
|
212582
212582
|
|
212583
212583
|
`)) {
|
212584
212584
|
var n5 = a6.match(S);
|
@@ -232245,8 +232245,8 @@ var require_lib13 = __commonJS((exports, module) => {
|
|
232245
232245
|
function fetch2(input, options) {
|
232246
232246
|
return nodeFetch.fetch(input, options);
|
232247
232247
|
}
|
232248
|
-
for (const
|
232249
|
-
fetch2[
|
232248
|
+
for (const key3 in nodeFetch) {
|
232249
|
+
fetch2[key3] = nodeFetch[key3];
|
232250
232250
|
}
|
232251
232251
|
module.exports = fetch2;
|
232252
232252
|
});
|
@@ -232339,11 +232339,11 @@ var require_proxy = __commonJS((exports) => {
|
|
232339
232339
|
return hasRequiredSymbols$4 || (hasRequiredSymbols$4 = 1, symbols$4 = { kClose: Symbol("close"), kDestroy: Symbol("destroy"), kDispatch: Symbol("dispatch"), kUrl: Symbol("url"), kWriting: Symbol("writing"), kResuming: Symbol("resuming"), kQueue: Symbol("queue"), kConnect: Symbol("connect"), kConnecting: Symbol("connecting"), kKeepAliveDefaultTimeout: Symbol("default keep alive timeout"), kKeepAliveMaxTimeout: Symbol("max keep alive timeout"), kKeepAliveTimeoutThreshold: Symbol("keep alive timeout threshold"), kKeepAliveTimeoutValue: Symbol("keep alive timeout"), kKeepAlive: Symbol("keep alive"), kHeadersTimeout: Symbol("headers timeout"), kBodyTimeout: Symbol("body timeout"), kServerName: Symbol("server name"), kLocalAddress: Symbol("local address"), kHost: Symbol("host"), kNoRef: Symbol("no ref"), kBodyUsed: Symbol("used"), kBody: Symbol("abstracted request body"), kRunning: Symbol("running"), kBlocking: Symbol("blocking"), kPending: Symbol("pending"), kSize: Symbol("size"), kBusy: Symbol("busy"), kQueued: Symbol("queued"), kFree: Symbol("free"), kConnected: Symbol("connected"), kClosed: Symbol("closed"), kNeedDrain: Symbol("need drain"), kReset: Symbol("reset"), kDestroyed: Symbol.for("nodejs.stream.destroyed"), kResume: Symbol("resume"), kOnError: Symbol("on error"), kMaxHeadersSize: Symbol("max headers size"), kRunningIdx: Symbol("running index"), kPendingIdx: Symbol("pending index"), kError: Symbol("error"), kClients: Symbol("clients"), kClient: Symbol("client"), kParser: Symbol("parser"), kOnDestroyed: Symbol("destroy callbacks"), kPipelining: Symbol("pipelining"), kSocket: Symbol("socket"), kHostHeader: Symbol("host header"), kConnector: Symbol("connector"), kStrictContentLength: Symbol("strict content length"), kMaxRedirections: Symbol("maxRedirections"), kMaxRequests: Symbol("maxRequestsPerClient"), kProxy: Symbol("proxy agent options"), kCounter: Symbol("socket request counter"), kInterceptors: Symbol("dispatch interceptors"), kMaxResponseSize: Symbol("max response size"), kHTTP2Session: Symbol("http2Session"), kHTTP2SessionState: Symbol("http2Session state"), kRetryHandlerDefaultRetry: Symbol("retry agent default retry"), kConstruct: Symbol("constructable"), kListeners: Symbol("listeners"), kHTTPContext: Symbol("http context"), kMaxConcurrentStreams: Symbol("max concurrent streams"), kNoProxyAgent: Symbol("no proxy agent"), kHttpProxyAgent: Symbol("http proxy agent"), kHttpsProxyAgent: Symbol("https proxy agent") }), symbols$4;
|
232340
232340
|
}
|
232341
232341
|
e10(requireSymbols$4, "requireSymbols$4");
|
232342
|
-
var
|
232342
|
+
var errors3;
|
232343
232343
|
var hasRequiredErrors;
|
232344
232344
|
function requireErrors() {
|
232345
232345
|
if (hasRequiredErrors)
|
232346
|
-
return
|
232346
|
+
return errors3;
|
232347
232347
|
hasRequiredErrors = 1;
|
232348
232348
|
|
232349
232349
|
class A5 extends Error {
|
@@ -232552,7 +232552,7 @@ var require_proxy = __commonJS((exports) => {
|
|
232552
232552
|
super(i6, { cause: k5, ...F3 ?? {} }), this.name = "SecureProxyConnectionError", this.message = i6 || "Secure Proxy Connection failed", this.code = "UND_ERR_PRX_TLS", this.cause = k5;
|
232553
232553
|
}
|
232554
232554
|
}
|
232555
|
-
return
|
232555
|
+
return errors3 = { AbortError: Q4, HTTPParserError: Y4, UndiciError: A5, HeadersTimeoutError: c3, HeadersOverflowError: E6, BodyTimeoutError: t8, RequestContentLengthMismatchError: r6, ConnectTimeoutError: p6, ResponseStatusCodeError: B4, InvalidArgumentError: f5, InvalidReturnValueError: l2, RequestAbortedError: u6, ClientDestroyedError: a7, ClientClosedError: g5, InformationalError: n6, SocketError: d6, NotSupportedError: N6, ResponseContentLengthMismatchError: o8, BalancedPoolMissingUpstreamError: M5, ResponseExceededMaxSizeError: J4, RequestRetryError: V5, ResponseError: H4, SecureProxyConnectionError: h7 }, errors3;
|
232556
232556
|
}
|
232557
232557
|
e10(requireErrors, "requireErrors");
|
232558
232558
|
var constants$4;
|
@@ -241841,11 +241841,11 @@ ${g5}`;
|
|
241841
241841
|
return e10(u6, "plural"), ms;
|
241842
241842
|
}
|
241843
241843
|
e10(requireMs, "requireMs");
|
241844
|
-
var
|
241844
|
+
var common3;
|
241845
241845
|
var hasRequiredCommon;
|
241846
241846
|
function requireCommon() {
|
241847
241847
|
if (hasRequiredCommon)
|
241848
|
-
return
|
241848
|
+
return common3;
|
241849
241849
|
hasRequiredCommon = 1;
|
241850
241850
|
function A5(p6) {
|
241851
241851
|
E6.debug = E6, E6.default = E6, E6.coerce = u6, E6.disable = l2, E6.enable = B4, E6.enabled = Q4, E6.humanize = requireMs(), E6.destroy = n6, Object.keys(p6).forEach((r6) => {
|
@@ -241933,7 +241933,7 @@ ${g5}`;
|
|
241933
241933
|
}
|
241934
241934
|
return e10(n6, "destroy"), E6.enable(E6.load()), E6;
|
241935
241935
|
}
|
241936
|
-
return e10(A5, "setup"),
|
241936
|
+
return e10(A5, "setup"), common3 = A5, common3;
|
241937
241937
|
}
|
241938
241938
|
e10(requireCommon, "requireCommon");
|
241939
241939
|
var hasRequiredBrowser;
|
@@ -242525,11 +242525,11 @@ var require_visit = __commonJS((exports) => {
|
|
242525
242525
|
visit2.BREAK = BREAK;
|
242526
242526
|
visit2.SKIP = SKIP;
|
242527
242527
|
visit2.REMOVE = REMOVE;
|
242528
|
-
function visit_(
|
242529
|
-
const ctrl = callVisitor(
|
242528
|
+
function visit_(key3, node, visitor, path5) {
|
242529
|
+
const ctrl = callVisitor(key3, node, visitor, path5);
|
242530
242530
|
if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
|
242531
|
-
replaceNode(
|
242532
|
-
return visit_(
|
242531
|
+
replaceNode(key3, path5, ctrl);
|
242532
|
+
return visit_(key3, ctrl, visitor, path5);
|
242533
242533
|
}
|
242534
242534
|
if (typeof ctrl !== "symbol") {
|
242535
242535
|
if (identity2.isCollection(node)) {
|
@@ -242573,11 +242573,11 @@ var require_visit = __commonJS((exports) => {
|
|
242573
242573
|
visitAsync.BREAK = BREAK;
|
242574
242574
|
visitAsync.SKIP = SKIP;
|
242575
242575
|
visitAsync.REMOVE = REMOVE;
|
242576
|
-
async function visitAsync_(
|
242577
|
-
const ctrl = await callVisitor(
|
242576
|
+
async function visitAsync_(key3, node, visitor, path5) {
|
242577
|
+
const ctrl = await callVisitor(key3, node, visitor, path5);
|
242578
242578
|
if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
|
242579
|
-
replaceNode(
|
242580
|
-
return visitAsync_(
|
242579
|
+
replaceNode(key3, path5, ctrl);
|
242580
|
+
return visitAsync_(key3, ctrl, visitor, path5);
|
242581
242581
|
}
|
242582
242582
|
if (typeof ctrl !== "symbol") {
|
242583
242583
|
if (identity2.isCollection(node)) {
|
@@ -242627,27 +242627,27 @@ var require_visit = __commonJS((exports) => {
|
|
242627
242627
|
}
|
242628
242628
|
return visitor;
|
242629
242629
|
}
|
242630
|
-
function callVisitor(
|
242630
|
+
function callVisitor(key3, node, visitor, path5) {
|
242631
242631
|
if (typeof visitor === "function")
|
242632
|
-
return visitor(
|
242632
|
+
return visitor(key3, node, path5);
|
242633
242633
|
if (identity2.isMap(node))
|
242634
|
-
return visitor.Map?.(
|
242634
|
+
return visitor.Map?.(key3, node, path5);
|
242635
242635
|
if (identity2.isSeq(node))
|
242636
|
-
return visitor.Seq?.(
|
242636
|
+
return visitor.Seq?.(key3, node, path5);
|
242637
242637
|
if (identity2.isPair(node))
|
242638
|
-
return visitor.Pair?.(
|
242638
|
+
return visitor.Pair?.(key3, node, path5);
|
242639
242639
|
if (identity2.isScalar(node))
|
242640
|
-
return visitor.Scalar?.(
|
242640
|
+
return visitor.Scalar?.(key3, node, path5);
|
242641
242641
|
if (identity2.isAlias(node))
|
242642
|
-
return visitor.Alias?.(
|
242642
|
+
return visitor.Alias?.(key3, node, path5);
|
242643
242643
|
return;
|
242644
242644
|
}
|
242645
|
-
function replaceNode(
|
242645
|
+
function replaceNode(key3, path5, node) {
|
242646
242646
|
const parent = path5[path5.length - 1];
|
242647
242647
|
if (identity2.isCollection(parent)) {
|
242648
|
-
parent.items[
|
242648
|
+
parent.items[key3] = node;
|
242649
242649
|
} else if (identity2.isPair(parent)) {
|
242650
|
-
if (
|
242650
|
+
if (key3 === "key")
|
242651
242651
|
parent.key = node;
|
242652
242652
|
else
|
242653
242653
|
parent.value = node;
|
@@ -242879,7 +242879,7 @@ var require_anchors = __commonJS((exports) => {
|
|
242879
242879
|
|
242880
242880
|
// ../../node_modules/yaml/dist/doc/applyReviver.js
|
242881
242881
|
var require_applyReviver = __commonJS((exports) => {
|
242882
|
-
function applyReviver(reviver, obj,
|
242882
|
+
function applyReviver(reviver, obj, key3, val) {
|
242883
242883
|
if (val && typeof val === "object") {
|
242884
242884
|
if (Array.isArray(val)) {
|
242885
242885
|
for (let i7 = 0, len = val.length;i7 < len; ++i7) {
|
@@ -242919,7 +242919,7 @@ var require_applyReviver = __commonJS((exports) => {
|
|
242919
242919
|
}
|
242920
242920
|
}
|
242921
242921
|
}
|
242922
|
-
return reviver.call(obj,
|
242922
|
+
return reviver.call(obj, key3, val);
|
242923
242923
|
}
|
242924
242924
|
exports.applyReviver = applyReviver;
|
242925
242925
|
});
|
@@ -243237,29 +243237,29 @@ var require_Collection = __commonJS((exports) => {
|
|
243237
243237
|
if (isEmptyPath(path5))
|
243238
243238
|
this.add(value4);
|
243239
243239
|
else {
|
243240
|
-
const [
|
243241
|
-
const node = this.get(
|
243240
|
+
const [key3, ...rest] = path5;
|
243241
|
+
const node = this.get(key3, true);
|
243242
243242
|
if (identity2.isCollection(node))
|
243243
243243
|
node.addIn(rest, value4);
|
243244
243244
|
else if (node === undefined && this.schema)
|
243245
|
-
this.set(
|
243245
|
+
this.set(key3, collectionFromPath(this.schema, rest, value4));
|
243246
243246
|
else
|
243247
|
-
throw new Error(`Expected YAML collection at ${
|
243247
|
+
throw new Error(`Expected YAML collection at ${key3}. Remaining path: ${rest}`);
|
243248
243248
|
}
|
243249
243249
|
}
|
243250
243250
|
deleteIn(path5) {
|
243251
|
-
const [
|
243251
|
+
const [key3, ...rest] = path5;
|
243252
243252
|
if (rest.length === 0)
|
243253
|
-
return this.delete(
|
243254
|
-
const node = this.get(
|
243253
|
+
return this.delete(key3);
|
243254
|
+
const node = this.get(key3, true);
|
243255
243255
|
if (identity2.isCollection(node))
|
243256
243256
|
return node.deleteIn(rest);
|
243257
243257
|
else
|
243258
|
-
throw new Error(`Expected YAML collection at ${
|
243258
|
+
throw new Error(`Expected YAML collection at ${key3}. Remaining path: ${rest}`);
|
243259
243259
|
}
|
243260
243260
|
getIn(path5, keepScalar) {
|
243261
|
-
const [
|
243262
|
-
const node = this.get(
|
243261
|
+
const [key3, ...rest] = path5;
|
243262
|
+
const node = this.get(key3, true);
|
243263
243263
|
if (rest.length === 0)
|
243264
243264
|
return !keepScalar && identity2.isScalar(node) ? node.value : node;
|
243265
243265
|
else
|
@@ -243274,24 +243274,24 @@ var require_Collection = __commonJS((exports) => {
|
|
243274
243274
|
});
|
243275
243275
|
}
|
243276
243276
|
hasIn(path5) {
|
243277
|
-
const [
|
243277
|
+
const [key3, ...rest] = path5;
|
243278
243278
|
if (rest.length === 0)
|
243279
|
-
return this.has(
|
243280
|
-
const node = this.get(
|
243279
|
+
return this.has(key3);
|
243280
|
+
const node = this.get(key3, true);
|
243281
243281
|
return identity2.isCollection(node) ? node.hasIn(rest) : false;
|
243282
243282
|
}
|
243283
243283
|
setIn(path5, value4) {
|
243284
|
-
const [
|
243284
|
+
const [key3, ...rest] = path5;
|
243285
243285
|
if (rest.length === 0) {
|
243286
|
-
this.set(
|
243286
|
+
this.set(key3, value4);
|
243287
243287
|
} else {
|
243288
|
-
const node = this.get(
|
243288
|
+
const node = this.get(key3, true);
|
243289
243289
|
if (identity2.isCollection(node))
|
243290
243290
|
node.setIn(rest, value4);
|
243291
243291
|
else if (node === undefined && this.schema)
|
243292
|
-
this.set(
|
243292
|
+
this.set(key3, collectionFromPath(this.schema, rest, value4));
|
243293
243293
|
else
|
243294
|
-
throw new Error(`Expected YAML collection at ${
|
243294
|
+
throw new Error(`Expected YAML collection at ${key3}. Remaining path: ${rest}`);
|
243295
243295
|
}
|
243296
243296
|
}
|
243297
243297
|
}
|
@@ -243879,19 +243879,19 @@ var require_stringifyPair = __commonJS((exports) => {
|
|
243879
243879
|
var Scalar = require_Scalar();
|
243880
243880
|
var stringify3 = require_stringify();
|
243881
243881
|
var stringifyComment = require_stringifyComment();
|
243882
|
-
function stringifyPair2({ key:
|
243882
|
+
function stringifyPair2({ key: key3, value: value4 }, ctx, onComment, onChompKeep) {
|
243883
243883
|
const { allNullValues, doc, indent: indent2, indentStep, options: { commentString, indentSeq, simpleKeys } } = ctx;
|
243884
|
-
let keyComment = identity2.isNode(
|
243884
|
+
let keyComment = identity2.isNode(key3) && key3.comment || null;
|
243885
243885
|
if (simpleKeys) {
|
243886
243886
|
if (keyComment) {
|
243887
243887
|
throw new Error("With simple keys, key nodes cannot have comments");
|
243888
243888
|
}
|
243889
|
-
if (identity2.isCollection(
|
243889
|
+
if (identity2.isCollection(key3) || !identity2.isNode(key3) && typeof key3 === "object") {
|
243890
243890
|
const msg = "With simple keys, collection cannot be used as a key value";
|
243891
243891
|
throw new Error(msg);
|
243892
243892
|
}
|
243893
243893
|
}
|
243894
|
-
let explicitKey = !simpleKeys && (!
|
243894
|
+
let explicitKey = !simpleKeys && (!key3 || keyComment && value4 == null && !ctx.inFlow || identity2.isCollection(key3) || (identity2.isScalar(key3) ? key3.type === Scalar.Scalar.BLOCK_FOLDED || key3.type === Scalar.Scalar.BLOCK_LITERAL : typeof key3 === "object"));
|
243895
243895
|
ctx = Object.assign({}, ctx, {
|
243896
243896
|
allNullValues: false,
|
243897
243897
|
implicitKey: !explicitKey && (simpleKeys || !allNullValues),
|
@@ -243899,7 +243899,7 @@ var require_stringifyPair = __commonJS((exports) => {
|
|
243899
243899
|
});
|
243900
243900
|
let keyCommentDone = false;
|
243901
243901
|
let chompKeep = false;
|
243902
|
-
let str = stringify3.stringify(
|
243902
|
+
let str = stringify3.stringify(key3, ctx, () => keyCommentDone = true, () => chompKeep = true);
|
243903
243903
|
if (!explicitKey && !ctx.inFlow && str.length > 1024) {
|
243904
243904
|
if (simpleKeys)
|
243905
243905
|
throw new Error("With simple keys, single line scalar must not span more than 1024 characters");
|
@@ -244043,7 +244043,7 @@ var require_merge = __commonJS((exports) => {
|
|
244043
244043
|
}),
|
244044
244044
|
stringify: () => MERGE_KEY
|
244045
244045
|
};
|
244046
|
-
var isMergeKey = (ctx,
|
244046
|
+
var isMergeKey = (ctx, key3) => (merge3.identify(key3) || identity2.isScalar(key3) && (!key3.type || key3.type === Scalar.Scalar.PLAIN) && merge3.identify(key3.value)) && ctx?.doc.schema.tags.some((tag) => tag.tag === merge3.tag && tag.default);
|
244047
244047
|
function addMergeToJSMap(ctx, map3, value4) {
|
244048
244048
|
value4 = ctx && identity2.isAlias(value4) ? value4.resolve(ctx.doc) : value4;
|
244049
244049
|
if (identity2.isSeq(value4))
|
@@ -244060,14 +244060,14 @@ var require_merge = __commonJS((exports) => {
|
|
244060
244060
|
if (!identity2.isMap(source))
|
244061
244061
|
throw new Error("Merge sources must be maps or map aliases");
|
244062
244062
|
const srcMap = source.toJSON(null, ctx, Map);
|
244063
|
-
for (const [
|
244063
|
+
for (const [key3, value5] of srcMap) {
|
244064
244064
|
if (map3 instanceof Map) {
|
244065
|
-
if (!map3.has(
|
244066
|
-
map3.set(
|
244065
|
+
if (!map3.has(key3))
|
244066
|
+
map3.set(key3, value5);
|
244067
244067
|
} else if (map3 instanceof Set) {
|
244068
|
-
map3.add(
|
244069
|
-
} else if (!Object.prototype.hasOwnProperty.call(map3,
|
244070
|
-
Object.defineProperty(map3,
|
244068
|
+
map3.add(key3);
|
244069
|
+
} else if (!Object.prototype.hasOwnProperty.call(map3, key3)) {
|
244070
|
+
Object.defineProperty(map3, key3, {
|
244071
244071
|
value: value5,
|
244072
244072
|
writable: true,
|
244073
244073
|
enumerable: true,
|
@@ -244089,19 +244089,19 @@ var require_addPairToJSMap = __commonJS((exports) => {
|
|
244089
244089
|
var stringify3 = require_stringify();
|
244090
244090
|
var identity2 = require_identity();
|
244091
244091
|
var toJS = require_toJS();
|
244092
|
-
function addPairToJSMap(ctx, map3, { key:
|
244093
|
-
if (identity2.isNode(
|
244094
|
-
|
244095
|
-
else if (merge3.isMergeKey(ctx,
|
244092
|
+
function addPairToJSMap(ctx, map3, { key: key3, value: value4 }) {
|
244093
|
+
if (identity2.isNode(key3) && key3.addToJSMap)
|
244094
|
+
key3.addToJSMap(ctx, map3, value4);
|
244095
|
+
else if (merge3.isMergeKey(ctx, key3))
|
244096
244096
|
merge3.addMergeToJSMap(ctx, map3, value4);
|
244097
244097
|
else {
|
244098
|
-
const jsKey = toJS.toJS(
|
244098
|
+
const jsKey = toJS.toJS(key3, "", ctx);
|
244099
244099
|
if (map3 instanceof Map) {
|
244100
244100
|
map3.set(jsKey, toJS.toJS(value4, jsKey, ctx));
|
244101
244101
|
} else if (map3 instanceof Set) {
|
244102
244102
|
map3.add(jsKey);
|
244103
244103
|
} else {
|
244104
|
-
const stringKey = stringifyKey(
|
244104
|
+
const stringKey = stringifyKey(key3, jsKey, ctx);
|
244105
244105
|
const jsValue = toJS.toJS(value4, stringKey, ctx);
|
244106
244106
|
if (stringKey in map3)
|
244107
244107
|
Object.defineProperty(map3, stringKey, {
|
@@ -244116,19 +244116,19 @@ var require_addPairToJSMap = __commonJS((exports) => {
|
|
244116
244116
|
}
|
244117
244117
|
return map3;
|
244118
244118
|
}
|
244119
|
-
function stringifyKey(
|
244119
|
+
function stringifyKey(key3, jsKey, ctx) {
|
244120
244120
|
if (jsKey === null)
|
244121
244121
|
return "";
|
244122
244122
|
if (typeof jsKey !== "object")
|
244123
244123
|
return String(jsKey);
|
244124
|
-
if (identity2.isNode(
|
244124
|
+
if (identity2.isNode(key3) && ctx?.doc) {
|
244125
244125
|
const strCtx = stringify3.createStringifyContext(ctx.doc, {});
|
244126
244126
|
strCtx.anchors = new Set;
|
244127
244127
|
for (const node of ctx.anchors.keys())
|
244128
244128
|
strCtx.anchors.add(node.anchor);
|
244129
244129
|
strCtx.inFlow = true;
|
244130
244130
|
strCtx.inStringifyKey = true;
|
244131
|
-
const strKey =
|
244131
|
+
const strKey = key3.toString(strCtx);
|
244132
244132
|
if (!ctx.mapKeyWarned) {
|
244133
244133
|
let jsonStr = JSON.stringify(strKey);
|
244134
244134
|
if (jsonStr.length > 40)
|
@@ -244149,25 +244149,25 @@ var require_Pair = __commonJS((exports) => {
|
|
244149
244149
|
var stringifyPair2 = require_stringifyPair();
|
244150
244150
|
var addPairToJSMap = require_addPairToJSMap();
|
244151
244151
|
var identity2 = require_identity();
|
244152
|
-
function createPair(
|
244153
|
-
const k6 = createNode.createNode(
|
244152
|
+
function createPair(key3, value4, ctx) {
|
244153
|
+
const k6 = createNode.createNode(key3, undefined, ctx);
|
244154
244154
|
const v7 = createNode.createNode(value4, undefined, ctx);
|
244155
244155
|
return new Pair(k6, v7);
|
244156
244156
|
}
|
244157
244157
|
|
244158
244158
|
class Pair {
|
244159
|
-
constructor(
|
244159
|
+
constructor(key3, value4 = null) {
|
244160
244160
|
Object.defineProperty(this, identity2.NODE_TYPE, { value: identity2.PAIR });
|
244161
|
-
this.key =
|
244161
|
+
this.key = key3;
|
244162
244162
|
this.value = value4;
|
244163
244163
|
}
|
244164
244164
|
clone(schema) {
|
244165
|
-
let { key:
|
244166
|
-
if (identity2.isNode(
|
244167
|
-
|
244165
|
+
let { key: key3, value: value4 } = this;
|
244166
|
+
if (identity2.isNode(key3))
|
244167
|
+
key3 = key3.clone(schema);
|
244168
244168
|
if (identity2.isNode(value4))
|
244169
244169
|
value4 = value4.clone(schema);
|
244170
|
-
return new Pair(
|
244170
|
+
return new Pair(key3, value4);
|
244171
244171
|
}
|
244172
244172
|
toJSON(_6, ctx) {
|
244173
244173
|
const pair = ctx?.mapAsMap ? new Map : {};
|
@@ -244334,11 +244334,11 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
244334
244334
|
var identity2 = require_identity();
|
244335
244335
|
var Pair = require_Pair();
|
244336
244336
|
var Scalar = require_Scalar();
|
244337
|
-
function findPair(items,
|
244338
|
-
const k6 = identity2.isScalar(
|
244337
|
+
function findPair(items, key3) {
|
244338
|
+
const k6 = identity2.isScalar(key3) ? key3.value : key3;
|
244339
244339
|
for (const it2 of items) {
|
244340
244340
|
if (identity2.isPair(it2)) {
|
244341
|
-
if (it2.key ===
|
244341
|
+
if (it2.key === key3 || it2.key === k6)
|
244342
244342
|
return it2;
|
244343
244343
|
if (identity2.isScalar(it2.key) && it2.key.value === k6)
|
244344
244344
|
return it2;
|
@@ -244358,20 +244358,20 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
244358
244358
|
static from(schema, obj, ctx) {
|
244359
244359
|
const { keepUndefined, replacer } = ctx;
|
244360
244360
|
const map3 = new this(schema);
|
244361
|
-
const add = (
|
244361
|
+
const add = (key3, value4) => {
|
244362
244362
|
if (typeof replacer === "function")
|
244363
|
-
value4 = replacer.call(obj,
|
244364
|
-
else if (Array.isArray(replacer) && !replacer.includes(
|
244363
|
+
value4 = replacer.call(obj, key3, value4);
|
244364
|
+
else if (Array.isArray(replacer) && !replacer.includes(key3))
|
244365
244365
|
return;
|
244366
244366
|
if (value4 !== undefined || keepUndefined)
|
244367
|
-
map3.items.push(Pair.createPair(
|
244367
|
+
map3.items.push(Pair.createPair(key3, value4, ctx));
|
244368
244368
|
};
|
244369
244369
|
if (obj instanceof Map) {
|
244370
|
-
for (const [
|
244371
|
-
add(
|
244370
|
+
for (const [key3, value4] of obj)
|
244371
|
+
add(key3, value4);
|
244372
244372
|
} else if (obj && typeof obj === "object") {
|
244373
|
-
for (const
|
244374
|
-
add(
|
244373
|
+
for (const key3 of Object.keys(obj))
|
244374
|
+
add(key3, obj[key3]);
|
244375
244375
|
}
|
244376
244376
|
if (typeof schema.sortMapEntries === "function") {
|
244377
244377
|
map3.items.sort(schema.sortMapEntries);
|
@@ -244405,23 +244405,23 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
244405
244405
|
this.items.push(_pair);
|
244406
244406
|
}
|
244407
244407
|
}
|
244408
|
-
delete(
|
244409
|
-
const it2 = findPair(this.items,
|
244408
|
+
delete(key3) {
|
244409
|
+
const it2 = findPair(this.items, key3);
|
244410
244410
|
if (!it2)
|
244411
244411
|
return false;
|
244412
244412
|
const del = this.items.splice(this.items.indexOf(it2), 1);
|
244413
244413
|
return del.length > 0;
|
244414
244414
|
}
|
244415
|
-
get(
|
244416
|
-
const it2 = findPair(this.items,
|
244415
|
+
get(key3, keepScalar) {
|
244416
|
+
const it2 = findPair(this.items, key3);
|
244417
244417
|
const node = it2?.value;
|
244418
244418
|
return (!keepScalar && identity2.isScalar(node) ? node.value : node) ?? undefined;
|
244419
244419
|
}
|
244420
|
-
has(
|
244421
|
-
return !!findPair(this.items,
|
244420
|
+
has(key3) {
|
244421
|
+
return !!findPair(this.items, key3);
|
244422
244422
|
}
|
244423
|
-
set(
|
244424
|
-
this.add(new Pair.Pair(
|
244423
|
+
set(key3, value4) {
|
244424
|
+
this.add(new Pair.Pair(key3, value4), true);
|
244425
244425
|
}
|
244426
244426
|
toJSON(_6, ctx, Type) {
|
244427
244427
|
const map3 = Type ? new Type : ctx?.mapAsMap ? new Map : {};
|
@@ -244492,28 +244492,28 @@ var require_YAMLSeq = __commonJS((exports) => {
|
|
244492
244492
|
add(value4) {
|
244493
244493
|
this.items.push(value4);
|
244494
244494
|
}
|
244495
|
-
delete(
|
244496
|
-
const idx = asItemIndex(
|
244495
|
+
delete(key3) {
|
244496
|
+
const idx = asItemIndex(key3);
|
244497
244497
|
if (typeof idx !== "number")
|
244498
244498
|
return false;
|
244499
244499
|
const del = this.items.splice(idx, 1);
|
244500
244500
|
return del.length > 0;
|
244501
244501
|
}
|
244502
|
-
get(
|
244503
|
-
const idx = asItemIndex(
|
244502
|
+
get(key3, keepScalar) {
|
244503
|
+
const idx = asItemIndex(key3);
|
244504
244504
|
if (typeof idx !== "number")
|
244505
244505
|
return;
|
244506
244506
|
const it2 = this.items[idx];
|
244507
244507
|
return !keepScalar && identity2.isScalar(it2) ? it2.value : it2;
|
244508
244508
|
}
|
244509
|
-
has(
|
244510
|
-
const idx = asItemIndex(
|
244509
|
+
has(key3) {
|
244510
|
+
const idx = asItemIndex(key3);
|
244511
244511
|
return typeof idx === "number" && idx < this.items.length;
|
244512
244512
|
}
|
244513
|
-
set(
|
244514
|
-
const idx = asItemIndex(
|
244513
|
+
set(key3, value4) {
|
244514
|
+
const idx = asItemIndex(key3);
|
244515
244515
|
if (typeof idx !== "number")
|
244516
|
-
throw new Error(`Expected a valid index, not ${
|
244516
|
+
throw new Error(`Expected a valid index, not ${key3}.`);
|
244517
244517
|
const prev = this.items[idx];
|
244518
244518
|
if (identity2.isScalar(prev) && Scalar.isScalarValue(value4))
|
244519
244519
|
prev.value = value4;
|
@@ -244547,8 +244547,8 @@ var require_YAMLSeq = __commonJS((exports) => {
|
|
244547
244547
|
let i7 = 0;
|
244548
244548
|
for (let it2 of obj) {
|
244549
244549
|
if (typeof replacer === "function") {
|
244550
|
-
const
|
244551
|
-
it2 = replacer.call(obj,
|
244550
|
+
const key3 = obj instanceof Set ? it2 : String(i7++);
|
244551
|
+
it2 = replacer.call(obj, key3, it2);
|
244552
244552
|
}
|
244553
244553
|
seq.items.push(createNode.createNode(it2, undefined, ctx));
|
244554
244554
|
}
|
@@ -244556,8 +244556,8 @@ var require_YAMLSeq = __commonJS((exports) => {
|
|
244556
244556
|
return seq;
|
244557
244557
|
}
|
244558
244558
|
}
|
244559
|
-
function asItemIndex(
|
244560
|
-
let idx = identity2.isScalar(
|
244559
|
+
function asItemIndex(key3) {
|
244560
|
+
let idx = identity2.isScalar(key3) ? key3.value : key3;
|
244561
244561
|
if (idx && typeof idx === "string")
|
244562
244562
|
idx = Number(idx);
|
244563
244563
|
return typeof idx === "number" && Number.isInteger(idx) && idx >= 0 ? idx : null;
|
@@ -244929,25 +244929,25 @@ ${cn.comment}` : item.comment;
|
|
244929
244929
|
for (let it2 of iterable) {
|
244930
244930
|
if (typeof replacer === "function")
|
244931
244931
|
it2 = replacer.call(iterable, String(i7++), it2);
|
244932
|
-
let
|
244932
|
+
let key3, value4;
|
244933
244933
|
if (Array.isArray(it2)) {
|
244934
244934
|
if (it2.length === 2) {
|
244935
|
-
|
244935
|
+
key3 = it2[0];
|
244936
244936
|
value4 = it2[1];
|
244937
244937
|
} else
|
244938
244938
|
throw new TypeError(`Expected [key, value] tuple: ${it2}`);
|
244939
244939
|
} else if (it2 && it2 instanceof Object) {
|
244940
244940
|
const keys = Object.keys(it2);
|
244941
244941
|
if (keys.length === 1) {
|
244942
|
-
|
244943
|
-
value4 = it2[
|
244942
|
+
key3 = keys[0];
|
244943
|
+
value4 = it2[key3];
|
244944
244944
|
} else {
|
244945
244945
|
throw new TypeError(`Expected tuple with one key, not ${keys.length} keys`);
|
244946
244946
|
}
|
244947
244947
|
} else {
|
244948
|
-
|
244948
|
+
key3 = it2;
|
244949
244949
|
}
|
244950
|
-
pairs2.items.push(Pair.createPair(
|
244950
|
+
pairs2.items.push(Pair.createPair(key3, value4, ctx));
|
244951
244951
|
}
|
244952
244952
|
return pairs2;
|
244953
244953
|
}
|
@@ -244988,16 +244988,16 @@ var require_omap = __commonJS((exports) => {
|
|
244988
244988
|
if (ctx?.onCreate)
|
244989
244989
|
ctx.onCreate(map3);
|
244990
244990
|
for (const pair of this.items) {
|
244991
|
-
let
|
244991
|
+
let key3, value4;
|
244992
244992
|
if (identity2.isPair(pair)) {
|
244993
|
-
|
244994
|
-
value4 = toJS.toJS(pair.value,
|
244993
|
+
key3 = toJS.toJS(pair.key, "", ctx);
|
244994
|
+
value4 = toJS.toJS(pair.value, key3, ctx);
|
244995
244995
|
} else {
|
244996
|
-
|
244996
|
+
key3 = toJS.toJS(pair, "", ctx);
|
244997
244997
|
}
|
244998
|
-
if (map3.has(
|
244998
|
+
if (map3.has(key3))
|
244999
244999
|
throw new Error("Ordered maps must not include duplicate keys");
|
245000
|
-
map3.set(
|
245000
|
+
map3.set(key3, value4);
|
245001
245001
|
}
|
245002
245002
|
return map3;
|
245003
245003
|
}
|
@@ -245018,12 +245018,12 @@ var require_omap = __commonJS((exports) => {
|
|
245018
245018
|
resolve(seq, onError) {
|
245019
245019
|
const pairs$1 = pairs.resolvePairs(seq, onError);
|
245020
245020
|
const seenKeys = [];
|
245021
|
-
for (const { key:
|
245022
|
-
if (identity2.isScalar(
|
245023
|
-
if (seenKeys.includes(
|
245024
|
-
onError(`Ordered maps must not include duplicate keys: ${
|
245021
|
+
for (const { key: key3 } of pairs$1.items) {
|
245022
|
+
if (identity2.isScalar(key3)) {
|
245023
|
+
if (seenKeys.includes(key3.value)) {
|
245024
|
+
onError(`Ordered maps must not include duplicate keys: ${key3.value}`);
|
245025
245025
|
} else {
|
245026
|
-
seenKeys.push(
|
245026
|
+
seenKeys.push(key3.value);
|
245027
245027
|
}
|
245028
245028
|
}
|
245029
245029
|
}
|
@@ -245197,30 +245197,30 @@ var require_set = __commonJS((exports) => {
|
|
245197
245197
|
super(schema);
|
245198
245198
|
this.tag = YAMLSet.tag;
|
245199
245199
|
}
|
245200
|
-
add(
|
245200
|
+
add(key3) {
|
245201
245201
|
let pair;
|
245202
|
-
if (identity2.isPair(
|
245203
|
-
pair =
|
245204
|
-
else if (
|
245205
|
-
pair = new Pair.Pair(
|
245202
|
+
if (identity2.isPair(key3))
|
245203
|
+
pair = key3;
|
245204
|
+
else if (key3 && typeof key3 === "object" && "key" in key3 && "value" in key3 && key3.value === null)
|
245205
|
+
pair = new Pair.Pair(key3.key, null);
|
245206
245206
|
else
|
245207
|
-
pair = new Pair.Pair(
|
245207
|
+
pair = new Pair.Pair(key3, null);
|
245208
245208
|
const prev = YAMLMap.findPair(this.items, pair.key);
|
245209
245209
|
if (!prev)
|
245210
245210
|
this.items.push(pair);
|
245211
245211
|
}
|
245212
|
-
get(
|
245213
|
-
const pair = YAMLMap.findPair(this.items,
|
245212
|
+
get(key3, keepPair) {
|
245213
|
+
const pair = YAMLMap.findPair(this.items, key3);
|
245214
245214
|
return !keepPair && identity2.isPair(pair) ? identity2.isScalar(pair.key) ? pair.key.value : pair.key : pair;
|
245215
245215
|
}
|
245216
|
-
set(
|
245216
|
+
set(key3, value4) {
|
245217
245217
|
if (typeof value4 !== "boolean")
|
245218
245218
|
throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof value4}`);
|
245219
|
-
const prev = YAMLMap.findPair(this.items,
|
245219
|
+
const prev = YAMLMap.findPair(this.items, key3);
|
245220
245220
|
if (prev && !value4) {
|
245221
245221
|
this.items.splice(this.items.indexOf(prev), 1);
|
245222
245222
|
} else if (!prev && value4) {
|
245223
|
-
this.items.push(new Pair.Pair(
|
245223
|
+
this.items.push(new Pair.Pair(key3));
|
245224
245224
|
}
|
245225
245225
|
}
|
245226
245226
|
toJSON(_6, ctx) {
|
@@ -245455,7 +245455,7 @@ var require_tags = __commonJS((exports) => {
|
|
245455
245455
|
if (Array.isArray(customTags))
|
245456
245456
|
tags = [];
|
245457
245457
|
else {
|
245458
|
-
const keys = Array.from(schemas.keys()).filter((
|
245458
|
+
const keys = Array.from(schemas.keys()).filter((key3) => key3 !== "yaml11").map((key3) => JSON.stringify(key3)).join(", ");
|
245459
245459
|
throw new Error(`Unknown schema "${schemaName}"; use one of ${keys} or define customTags array`);
|
245460
245460
|
}
|
245461
245461
|
}
|
@@ -245471,7 +245471,7 @@ var require_tags = __commonJS((exports) => {
|
|
245471
245471
|
const tagObj = typeof tag === "string" ? tagsByName[tag] : tag;
|
245472
245472
|
if (!tagObj) {
|
245473
245473
|
const tagName = JSON.stringify(tag);
|
245474
|
-
const keys = Object.keys(tagsByName).map((
|
245474
|
+
const keys = Object.keys(tagsByName).map((key3) => JSON.stringify(key3)).join(", ");
|
245475
245475
|
throw new Error(`Unknown custom tag ${tagName}; use one of ${keys}`);
|
245476
245476
|
}
|
245477
245477
|
if (!tags2.includes(tagObj))
|
@@ -245706,13 +245706,13 @@ var require_Document = __commonJS((exports) => {
|
|
245706
245706
|
setAnchors();
|
245707
245707
|
return node;
|
245708
245708
|
}
|
245709
|
-
createPair(
|
245710
|
-
const k6 = this.createNode(
|
245709
|
+
createPair(key3, value4, options = {}) {
|
245710
|
+
const k6 = this.createNode(key3, null, options);
|
245711
245711
|
const v7 = this.createNode(value4, null, options);
|
245712
245712
|
return new Pair.Pair(k6, v7);
|
245713
245713
|
}
|
245714
|
-
delete(
|
245715
|
-
return assertCollection(this.contents) ? this.contents.delete(
|
245714
|
+
delete(key3) {
|
245715
|
+
return assertCollection(this.contents) ? this.contents.delete(key3) : false;
|
245716
245716
|
}
|
245717
245717
|
deleteIn(path5) {
|
245718
245718
|
if (Collection.isEmptyPath(path5)) {
|
@@ -245723,27 +245723,27 @@ var require_Document = __commonJS((exports) => {
|
|
245723
245723
|
}
|
245724
245724
|
return assertCollection(this.contents) ? this.contents.deleteIn(path5) : false;
|
245725
245725
|
}
|
245726
|
-
get(
|
245727
|
-
return identity2.isCollection(this.contents) ? this.contents.get(
|
245726
|
+
get(key3, keepScalar) {
|
245727
|
+
return identity2.isCollection(this.contents) ? this.contents.get(key3, keepScalar) : undefined;
|
245728
245728
|
}
|
245729
245729
|
getIn(path5, keepScalar) {
|
245730
245730
|
if (Collection.isEmptyPath(path5))
|
245731
245731
|
return !keepScalar && identity2.isScalar(this.contents) ? this.contents.value : this.contents;
|
245732
245732
|
return identity2.isCollection(this.contents) ? this.contents.getIn(path5, keepScalar) : undefined;
|
245733
245733
|
}
|
245734
|
-
has(
|
245735
|
-
return identity2.isCollection(this.contents) ? this.contents.has(
|
245734
|
+
has(key3) {
|
245735
|
+
return identity2.isCollection(this.contents) ? this.contents.has(key3) : false;
|
245736
245736
|
}
|
245737
245737
|
hasIn(path5) {
|
245738
245738
|
if (Collection.isEmptyPath(path5))
|
245739
245739
|
return this.contents !== undefined;
|
245740
245740
|
return identity2.isCollection(this.contents) ? this.contents.hasIn(path5) : false;
|
245741
245741
|
}
|
245742
|
-
set(
|
245742
|
+
set(key3, value4) {
|
245743
245743
|
if (this.contents == null) {
|
245744
|
-
this.contents = Collection.collectionFromPath(this.schema, [
|
245744
|
+
this.contents = Collection.collectionFromPath(this.schema, [key3], value4);
|
245745
245745
|
} else if (assertCollection(this.contents)) {
|
245746
|
-
this.contents.set(
|
245746
|
+
this.contents.set(key3, value4);
|
245747
245747
|
}
|
245748
245748
|
}
|
245749
245749
|
setIn(path5, value4) {
|
@@ -246027,25 +246027,25 @@ var require_resolve_props = __commonJS((exports) => {
|
|
246027
246027
|
|
246028
246028
|
// ../../node_modules/yaml/dist/compose/util-contains-newline.js
|
246029
246029
|
var require_util_contains_newline = __commonJS((exports) => {
|
246030
|
-
function containsNewline(
|
246031
|
-
if (!
|
246030
|
+
function containsNewline(key3) {
|
246031
|
+
if (!key3)
|
246032
246032
|
return null;
|
246033
|
-
switch (
|
246033
|
+
switch (key3.type) {
|
246034
246034
|
case "alias":
|
246035
246035
|
case "scalar":
|
246036
246036
|
case "double-quoted-scalar":
|
246037
246037
|
case "single-quoted-scalar":
|
246038
|
-
if (
|
246038
|
+
if (key3.source.includes(`
|
246039
246039
|
`))
|
246040
246040
|
return true;
|
246041
|
-
if (
|
246042
|
-
for (const st2 of
|
246041
|
+
if (key3.end) {
|
246042
|
+
for (const st2 of key3.end)
|
246043
246043
|
if (st2.type === "newline")
|
246044
246044
|
return true;
|
246045
246045
|
}
|
246046
246046
|
return false;
|
246047
246047
|
case "flow-collection":
|
246048
|
-
for (const it2 of
|
246048
|
+
for (const it2 of key3.items) {
|
246049
246049
|
for (const st2 of it2.start)
|
246050
246050
|
if (st2.type === "newline")
|
246051
246051
|
return true;
|
@@ -246110,10 +246110,10 @@ var require_resolve_block_map = __commonJS((exports) => {
|
|
246110
246110
|
let offset = bm.offset;
|
246111
246111
|
let commentEnd = null;
|
246112
246112
|
for (const collItem of bm.items) {
|
246113
|
-
const { start: start3, key:
|
246113
|
+
const { start: start3, key: key3, sep: sep3, value: value4 } = collItem;
|
246114
246114
|
const keyProps = resolveProps.resolveProps(start3, {
|
246115
246115
|
indicator: "explicit-key-ind",
|
246116
|
-
next:
|
246116
|
+
next: key3 ?? sep3?.[0],
|
246117
246117
|
offset,
|
246118
246118
|
onError,
|
246119
246119
|
parentIndent: bm.indent,
|
@@ -246121,10 +246121,10 @@ var require_resolve_block_map = __commonJS((exports) => {
|
|
246121
246121
|
});
|
246122
246122
|
const implicitKey = !keyProps.found;
|
246123
246123
|
if (implicitKey) {
|
246124
|
-
if (
|
246125
|
-
if (
|
246124
|
+
if (key3) {
|
246125
|
+
if (key3.type === "block-seq")
|
246126
246126
|
onError(offset, "BLOCK_AS_IMPLICIT_KEY", "A block sequence may not be used as an implicit map key");
|
246127
|
-
else if ("indent" in
|
246127
|
+
else if ("indent" in key3 && key3.indent !== bm.indent)
|
246128
246128
|
onError(offset, "BAD_INDENT", startColMsg);
|
246129
246129
|
}
|
246130
246130
|
if (!keyProps.anchor && !keyProps.tag && !sep3) {
|
@@ -246138,17 +246138,17 @@ var require_resolve_block_map = __commonJS((exports) => {
|
|
246138
246138
|
}
|
246139
246139
|
continue;
|
246140
246140
|
}
|
246141
|
-
if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(
|
246142
|
-
onError(
|
246141
|
+
if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(key3)) {
|
246142
|
+
onError(key3 ?? start3[start3.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
|
246143
246143
|
}
|
246144
246144
|
} else if (keyProps.found?.indent !== bm.indent) {
|
246145
246145
|
onError(offset, "BAD_INDENT", startColMsg);
|
246146
246146
|
}
|
246147
246147
|
ctx.atKey = true;
|
246148
246148
|
const keyStart = keyProps.end;
|
246149
|
-
const keyNode =
|
246149
|
+
const keyNode = key3 ? composeNode(ctx, key3, keyProps, onError) : composeEmptyNode(ctx, keyStart, start3, null, keyProps, onError);
|
246150
246150
|
if (ctx.schema.compat)
|
246151
|
-
utilFlowIndentCheck.flowIndentCheck(bm.indent,
|
246151
|
+
utilFlowIndentCheck.flowIndentCheck(bm.indent, key3, onError);
|
246152
246152
|
ctx.atKey = false;
|
246153
246153
|
if (utilMapIncludes.mapIncludes(ctx, map3.items, keyNode))
|
246154
246154
|
onError(keyStart, "DUPLICATE_KEY", "Map keys must be unique");
|
@@ -246158,7 +246158,7 @@ var require_resolve_block_map = __commonJS((exports) => {
|
|
246158
246158
|
offset: keyNode.range[2],
|
246159
246159
|
onError,
|
246160
246160
|
parentIndent: bm.indent,
|
246161
|
-
startOnNewline: !
|
246161
|
+
startOnNewline: !key3 || key3.type === "block-scalar"
|
246162
246162
|
});
|
246163
246163
|
offset = valueProps.end;
|
246164
246164
|
if (valueProps.found) {
|
@@ -246314,11 +246314,11 @@ var require_resolve_flow_collection = __commonJS((exports) => {
|
|
246314
246314
|
let offset = fc.offset + fc.start.source.length;
|
246315
246315
|
for (let i7 = 0;i7 < fc.items.length; ++i7) {
|
246316
246316
|
const collItem = fc.items[i7];
|
246317
|
-
const { start: start3, key:
|
246317
|
+
const { start: start3, key: key3, sep: sep3, value: value4 } = collItem;
|
246318
246318
|
const props = resolveProps.resolveProps(start3, {
|
246319
246319
|
flow: fcName,
|
246320
246320
|
indicator: "explicit-key-ind",
|
246321
|
-
next:
|
246321
|
+
next: key3 ?? sep3?.[0],
|
246322
246322
|
offset,
|
246323
246323
|
onError,
|
246324
246324
|
parentIndent: fc.indent,
|
@@ -246340,8 +246340,8 @@ var require_resolve_flow_collection = __commonJS((exports) => {
|
|
246340
246340
|
offset = props.end;
|
246341
246341
|
continue;
|
246342
246342
|
}
|
246343
|
-
if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(
|
246344
|
-
onError(
|
246343
|
+
if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(key3))
|
246344
|
+
onError(key3, "MULTILINE_IMPLICIT_KEY", "Implicit keys of flow sequence pairs need to be on a single line");
|
246345
246345
|
}
|
246346
246346
|
if (i7 === 0) {
|
246347
246347
|
if (props.comma)
|
@@ -246386,8 +246386,8 @@ var require_resolve_flow_collection = __commonJS((exports) => {
|
|
246386
246386
|
} else {
|
246387
246387
|
ctx.atKey = true;
|
246388
246388
|
const keyStart = props.end;
|
246389
|
-
const keyNode =
|
246390
|
-
if (isBlock(
|
246389
|
+
const keyNode = key3 ? composeNode(ctx, key3, props, onError) : composeEmptyNode(ctx, keyStart, start3, null, props, onError);
|
246390
|
+
if (isBlock(key3))
|
246391
246391
|
onError(keyNode.range, "BLOCK_IN_FLOW", blockMsg);
|
246392
246392
|
ctx.atKey = false;
|
246393
246393
|
const valueProps = resolveProps.resolveProps(sep3 ?? [], {
|
@@ -247199,7 +247199,7 @@ var require_composer = __commonJS((exports) => {
|
|
247199
247199
|
var node_process = __require("node:process");
|
247200
247200
|
var directives4 = require_directives2();
|
247201
247201
|
var Document = require_Document();
|
247202
|
-
var
|
247202
|
+
var errors3 = require_errors3();
|
247203
247203
|
var identity2 = require_identity();
|
247204
247204
|
var composeDoc = require_compose_doc();
|
247205
247205
|
var resolveEnd = require_resolve_end();
|
@@ -247250,9 +247250,9 @@ var require_composer = __commonJS((exports) => {
|
|
247250
247250
|
this.onError = (source, code2, message, warning) => {
|
247251
247251
|
const pos = getErrorPos(source);
|
247252
247252
|
if (warning)
|
247253
|
-
this.warnings.push(new
|
247253
|
+
this.warnings.push(new errors3.YAMLWarning(pos, code2, message));
|
247254
247254
|
else
|
247255
|
-
this.errors.push(new
|
247255
|
+
this.errors.push(new errors3.YAMLParseError(pos, code2, message));
|
247256
247256
|
};
|
247257
247257
|
this.directives = new directives4.Directives({ version: options.version || "1.2" });
|
247258
247258
|
this.options = options;
|
@@ -247336,7 +247336,7 @@ ${cb}` : comment;
|
|
247336
247336
|
break;
|
247337
247337
|
case "error": {
|
247338
247338
|
const msg = token.source ? `${token.message}: ${JSON.stringify(token.source)}` : token.message;
|
247339
|
-
const error5 = new
|
247339
|
+
const error5 = new errors3.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
|
247340
247340
|
if (this.atDirectives || !this.doc)
|
247341
247341
|
this.errors.push(error5);
|
247342
247342
|
else
|
@@ -247346,7 +247346,7 @@ ${cb}` : comment;
|
|
247346
247346
|
case "doc-end": {
|
247347
247347
|
if (!this.doc) {
|
247348
247348
|
const msg = "Unexpected doc-end without preceding document";
|
247349
|
-
this.errors.push(new
|
247349
|
+
this.errors.push(new errors3.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
|
247350
247350
|
break;
|
247351
247351
|
}
|
247352
247352
|
this.doc.directives.docEnd = true;
|
@@ -247361,7 +247361,7 @@ ${end.comment}` : end.comment;
|
|
247361
247361
|
break;
|
247362
247362
|
}
|
247363
247363
|
default:
|
247364
|
-
this.errors.push(new
|
247364
|
+
this.errors.push(new errors3.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
|
247365
247365
|
}
|
247366
247366
|
}
|
247367
247367
|
*end(forceDoc = false, endOffset = -1) {
|
@@ -247387,7 +247387,7 @@ ${end.comment}` : end.comment;
|
|
247387
247387
|
var require_cst_scalar = __commonJS((exports) => {
|
247388
247388
|
var resolveBlockScalar = require_resolve_block_scalar();
|
247389
247389
|
var resolveFlowScalar = require_resolve_flow_scalar();
|
247390
|
-
var
|
247390
|
+
var errors3 = require_errors3();
|
247391
247391
|
var stringifyString = require_stringifyString();
|
247392
247392
|
function resolveAsScalar(token, strict = true, onError) {
|
247393
247393
|
if (token) {
|
@@ -247396,7 +247396,7 @@ var require_cst_scalar = __commonJS((exports) => {
|
|
247396
247396
|
if (onError)
|
247397
247397
|
onError(offset, code2, message);
|
247398
247398
|
else
|
247399
|
-
throw new
|
247399
|
+
throw new errors3.YAMLParseError([offset, offset + 1], code2, message);
|
247400
247400
|
};
|
247401
247401
|
switch (token.type) {
|
247402
247402
|
case "scalar":
|
@@ -247510,9 +247510,9 @@ var require_cst_scalar = __commonJS((exports) => {
|
|
247510
247510
|
if (!addEndtoBlockProps(props, "end" in token ? token.end : undefined))
|
247511
247511
|
props.push({ type: "newline", offset: -1, indent: indent2, source: `
|
247512
247512
|
` });
|
247513
|
-
for (const
|
247514
|
-
if (
|
247515
|
-
delete token[
|
247513
|
+
for (const key3 of Object.keys(token))
|
247514
|
+
if (key3 !== "type" && key3 !== "offset")
|
247515
|
+
delete token[key3];
|
247516
247516
|
Object.assign(token, { type: "block-scalar", indent: indent2, props, source: body });
|
247517
247517
|
}
|
247518
247518
|
}
|
@@ -247561,9 +247561,9 @@ var require_cst_scalar = __commonJS((exports) => {
|
|
247561
247561
|
default: {
|
247562
247562
|
const indent2 = "indent" in token ? token.indent : -1;
|
247563
247563
|
const end = "end" in token && Array.isArray(token.end) ? token.end.filter((st2) => st2.type === "space" || st2.type === "comment" || st2.type === "newline") : [];
|
247564
|
-
for (const
|
247565
|
-
if (
|
247566
|
-
delete token[
|
247564
|
+
for (const key3 of Object.keys(token))
|
247565
|
+
if (key3 !== "type" && key3 !== "offset")
|
247566
|
+
delete token[key3];
|
247567
247567
|
Object.assign(token, { type: type4, indent: indent2, source, end });
|
247568
247568
|
}
|
247569
247569
|
}
|
@@ -247615,12 +247615,12 @@ var require_cst_stringify = __commonJS((exports) => {
|
|
247615
247615
|
}
|
247616
247616
|
}
|
247617
247617
|
}
|
247618
|
-
function stringifyItem({ start: start3, key:
|
247618
|
+
function stringifyItem({ start: start3, key: key3, sep: sep3, value: value4 }) {
|
247619
247619
|
let res = "";
|
247620
247620
|
for (const st2 of start3)
|
247621
247621
|
res += st2.source;
|
247622
|
-
if (
|
247623
|
-
res += stringifyToken(
|
247622
|
+
if (key3)
|
247623
|
+
res += stringifyToken(key3);
|
247624
247624
|
if (sep3)
|
247625
247625
|
for (const st2 of sep3)
|
247626
247626
|
res += st2.source;
|
@@ -248917,7 +248917,7 @@ var require_parser2 = __commonJS((exports) => {
|
|
248917
248917
|
});
|
248918
248918
|
} else if (isFlowToken(it2.key) && !includesToken(it2.sep, "newline")) {
|
248919
248919
|
const start4 = getFirstKeyStartProps(it2.start);
|
248920
|
-
const
|
248920
|
+
const key3 = it2.key;
|
248921
248921
|
const sep3 = it2.sep;
|
248922
248922
|
sep3.push(this.sourceToken);
|
248923
248923
|
delete it2.key;
|
@@ -248926,7 +248926,7 @@ var require_parser2 = __commonJS((exports) => {
|
|
248926
248926
|
type: "block-map",
|
248927
248927
|
offset: this.offset,
|
248928
248928
|
indent: this.indent,
|
248929
|
-
items: [{ start: start4, key:
|
248929
|
+
items: [{ start: start4, key: key3, sep: sep3 }]
|
248930
248930
|
});
|
248931
248931
|
} else if (start3.length > 0) {
|
248932
248932
|
it2.sep = it2.sep.concat(start3, this.sourceToken);
|
@@ -249249,7 +249249,7 @@ var require_parser2 = __commonJS((exports) => {
|
|
249249
249249
|
var require_public_api = __commonJS((exports) => {
|
249250
249250
|
var composer = require_composer();
|
249251
249251
|
var Document = require_Document();
|
249252
|
-
var
|
249252
|
+
var errors3 = require_errors3();
|
249253
249253
|
var log = require_log();
|
249254
249254
|
var identity2 = require_identity();
|
249255
249255
|
var lineCounter = require_line_counter();
|
@@ -249266,8 +249266,8 @@ var require_public_api = __commonJS((exports) => {
|
|
249266
249266
|
const docs = Array.from(composer$1.compose(parser$1.parse(source)));
|
249267
249267
|
if (prettyErrors && lineCounter2)
|
249268
249268
|
for (const doc of docs) {
|
249269
|
-
doc.errors.forEach(
|
249270
|
-
doc.warnings.forEach(
|
249269
|
+
doc.errors.forEach(errors3.prettifyError(source, lineCounter2));
|
249270
|
+
doc.warnings.forEach(errors3.prettifyError(source, lineCounter2));
|
249271
249271
|
}
|
249272
249272
|
if (docs.length > 0)
|
249273
249273
|
return docs;
|
@@ -249282,13 +249282,13 @@ var require_public_api = __commonJS((exports) => {
|
|
249282
249282
|
if (!doc)
|
249283
249283
|
doc = _doc;
|
249284
249284
|
else if (doc.options.logLevel !== "silent") {
|
249285
|
-
doc.errors.push(new
|
249285
|
+
doc.errors.push(new errors3.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
|
249286
249286
|
break;
|
249287
249287
|
}
|
249288
249288
|
}
|
249289
249289
|
if (prettyErrors && lineCounter2) {
|
249290
|
-
doc.errors.forEach(
|
249291
|
-
doc.warnings.forEach(
|
249290
|
+
doc.errors.forEach(errors3.prettifyError(source, lineCounter2));
|
249291
|
+
doc.warnings.forEach(errors3.prettifyError(source, lineCounter2));
|
249292
249292
|
}
|
249293
249293
|
return doc;
|
249294
249294
|
}
|
@@ -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-
|
259686
|
+
version: "1.1.16-pr3067e493",
|
259687
259687
|
type: "module",
|
259688
259688
|
private: false,
|
259689
259689
|
license: "FSL-1.1-MIT",
|
@@ -259730,9 +259730,9 @@ var package_default = {
|
|
259730
259730
|
"@inquirer/confirm": "5.1.6",
|
259731
259731
|
"@inquirer/input": "4.1.6",
|
259732
259732
|
"@inquirer/password": "4.0.9",
|
259733
|
-
"@inquirer/select": "4.0.
|
259734
|
-
"@settlemint/sdk-js": "1.1.16-
|
259735
|
-
"@settlemint/sdk-utils": "1.1.16-
|
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);
|
@@ -265171,14 +265054,874 @@ async function subgraphNamePrompt({
|
|
265171
265054
|
return sanitizeName(subgraphName);
|
265172
265055
|
}
|
265173
265056
|
|
265174
|
-
// ../../node_modules/@inquirer/select/dist/esm/
|
265175
|
-
var
|
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";
|
265060
|
+
var isBackspaceKey2 = (key2) => key2.name === "backspace";
|
265061
|
+
var isNumberKey = (key2) => "123456789".includes(key2.name);
|
265062
|
+
var isEnterKey2 = (key2) => key2.name === "enter" || key2.name === "return";
|
265063
|
+
// ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/errors.js
|
265064
|
+
class AbortPromptError2 extends Error {
|
265065
|
+
name = "AbortPromptError";
|
265066
|
+
message = "Prompt was aborted";
|
265067
|
+
constructor(options) {
|
265068
|
+
super();
|
265069
|
+
this.cause = options?.cause;
|
265070
|
+
}
|
265071
|
+
}
|
265072
|
+
|
265073
|
+
class CancelPromptError2 extends Error {
|
265074
|
+
name = "CancelPromptError";
|
265075
|
+
message = "Prompt was canceled";
|
265076
|
+
}
|
265077
|
+
|
265078
|
+
class ExitPromptError2 extends Error {
|
265079
|
+
name = "ExitPromptError";
|
265080
|
+
}
|
265081
|
+
|
265082
|
+
class HookError2 extends Error {
|
265083
|
+
name = "HookError";
|
265084
|
+
}
|
265085
|
+
|
265086
|
+
class ValidationError2 extends Error {
|
265087
|
+
name = "ValidationError";
|
265088
|
+
}
|
265089
|
+
// ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
|
265090
|
+
import { AsyncResource as AsyncResource5 } from "node:async_hooks";
|
265091
|
+
|
265092
|
+
// ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
|
265093
|
+
import { AsyncLocalStorage as AsyncLocalStorage2, AsyncResource as AsyncResource4 } from "node:async_hooks";
|
265094
|
+
var hookStorage2 = new AsyncLocalStorage2;
|
265095
|
+
function createStore2(rl) {
|
265096
|
+
const store = {
|
265097
|
+
rl,
|
265098
|
+
hooks: [],
|
265099
|
+
hooksCleanup: [],
|
265100
|
+
hooksEffect: [],
|
265101
|
+
index: 0,
|
265102
|
+
handleChange() {
|
265103
|
+
}
|
265104
|
+
};
|
265105
|
+
return store;
|
265106
|
+
}
|
265107
|
+
function withHooks2(rl, cb) {
|
265108
|
+
const store = createStore2(rl);
|
265109
|
+
return hookStorage2.run(store, () => {
|
265110
|
+
function cycle(render) {
|
265111
|
+
store.handleChange = () => {
|
265112
|
+
store.index = 0;
|
265113
|
+
render();
|
265114
|
+
};
|
265115
|
+
store.handleChange();
|
265116
|
+
}
|
265117
|
+
return cb(cycle);
|
265118
|
+
});
|
265119
|
+
}
|
265120
|
+
function getStore2() {
|
265121
|
+
const store = hookStorage2.getStore();
|
265122
|
+
if (!store) {
|
265123
|
+
throw new HookError2("[Inquirer] Hook functions can only be called from within a prompt");
|
265124
|
+
}
|
265125
|
+
return store;
|
265126
|
+
}
|
265127
|
+
function readline3() {
|
265128
|
+
return getStore2().rl;
|
265129
|
+
}
|
265130
|
+
function withUpdates2(fn) {
|
265131
|
+
const wrapped = (...args) => {
|
265132
|
+
const store = getStore2();
|
265133
|
+
let shouldUpdate = false;
|
265134
|
+
const oldHandleChange = store.handleChange;
|
265135
|
+
store.handleChange = () => {
|
265136
|
+
shouldUpdate = true;
|
265137
|
+
};
|
265138
|
+
const returnValue = fn(...args);
|
265139
|
+
if (shouldUpdate) {
|
265140
|
+
oldHandleChange();
|
265141
|
+
}
|
265142
|
+
store.handleChange = oldHandleChange;
|
265143
|
+
return returnValue;
|
265144
|
+
};
|
265145
|
+
return AsyncResource4.bind(wrapped);
|
265146
|
+
}
|
265147
|
+
function withPointer2(cb) {
|
265148
|
+
const store = getStore2();
|
265149
|
+
const { index } = store;
|
265150
|
+
const pointer = {
|
265151
|
+
get() {
|
265152
|
+
return store.hooks[index];
|
265153
|
+
},
|
265154
|
+
set(value4) {
|
265155
|
+
store.hooks[index] = value4;
|
265156
|
+
},
|
265157
|
+
initialized: index in store.hooks
|
265158
|
+
};
|
265159
|
+
const returnValue = cb(pointer);
|
265160
|
+
store.index++;
|
265161
|
+
return returnValue;
|
265162
|
+
}
|
265163
|
+
function handleChange2() {
|
265164
|
+
getStore2().handleChange();
|
265165
|
+
}
|
265166
|
+
var effectScheduler2 = {
|
265167
|
+
queue(cb) {
|
265168
|
+
const store = getStore2();
|
265169
|
+
const { index } = store;
|
265170
|
+
store.hooksEffect.push(() => {
|
265171
|
+
store.hooksCleanup[index]?.();
|
265172
|
+
const cleanFn = cb(readline3());
|
265173
|
+
if (cleanFn != null && typeof cleanFn !== "function") {
|
265174
|
+
throw new ValidationError2("useEffect return value must be a cleanup function or nothing.");
|
265175
|
+
}
|
265176
|
+
store.hooksCleanup[index] = cleanFn;
|
265177
|
+
});
|
265178
|
+
},
|
265179
|
+
run() {
|
265180
|
+
const store = getStore2();
|
265181
|
+
withUpdates2(() => {
|
265182
|
+
store.hooksEffect.forEach((effect) => {
|
265183
|
+
effect();
|
265184
|
+
});
|
265185
|
+
store.hooksEffect.length = 0;
|
265186
|
+
})();
|
265187
|
+
},
|
265188
|
+
clearAll() {
|
265189
|
+
const store = getStore2();
|
265190
|
+
store.hooksCleanup.forEach((cleanFn) => {
|
265191
|
+
cleanFn?.();
|
265192
|
+
});
|
265193
|
+
store.hooksEffect.length = 0;
|
265194
|
+
store.hooksCleanup.length = 0;
|
265195
|
+
}
|
265196
|
+
};
|
265197
|
+
|
265198
|
+
// ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-state.js
|
265199
|
+
function useState2(defaultValue) {
|
265200
|
+
return withPointer2((pointer) => {
|
265201
|
+
const setFn = (newValue) => {
|
265202
|
+
if (pointer.get() !== newValue) {
|
265203
|
+
pointer.set(newValue);
|
265204
|
+
handleChange2();
|
265205
|
+
}
|
265206
|
+
};
|
265207
|
+
if (pointer.initialized) {
|
265208
|
+
return [pointer.get(), setFn];
|
265209
|
+
}
|
265210
|
+
const value4 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
|
265211
|
+
pointer.set(value4);
|
265212
|
+
return [value4, setFn];
|
265213
|
+
});
|
265214
|
+
}
|
265215
|
+
|
265216
|
+
// ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
|
265217
|
+
function useEffect2(cb, depArray) {
|
265218
|
+
withPointer2((pointer) => {
|
265219
|
+
const oldDeps = pointer.get();
|
265220
|
+
const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i6) => !Object.is(dep, oldDeps[i6]));
|
265221
|
+
if (hasChanged) {
|
265222
|
+
effectScheduler2.queue(cb);
|
265223
|
+
}
|
265224
|
+
pointer.set(depArray);
|
265225
|
+
});
|
265226
|
+
}
|
265227
|
+
|
265228
|
+
// ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/theme.js
|
265229
|
+
var import_yoctocolors_cjs2 = __toESM(require_yoctocolors_cjs(), 1);
|
265230
|
+
|
265231
|
+
// ../../node_modules/@inquirer/figures/dist/esm/index.js
|
265232
|
+
import process8 from "node:process";
|
265233
|
+
function isUnicodeSupported3() {
|
265234
|
+
if (process8.platform !== "win32") {
|
265235
|
+
return process8.env["TERM"] !== "linux";
|
265236
|
+
}
|
265237
|
+
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";
|
265238
|
+
}
|
265239
|
+
var common2 = {
|
265240
|
+
circleQuestionMark: "(?)",
|
265241
|
+
questionMarkPrefix: "(?)",
|
265242
|
+
square: "█",
|
265243
|
+
squareDarkShade: "▓",
|
265244
|
+
squareMediumShade: "▒",
|
265245
|
+
squareLightShade: "░",
|
265246
|
+
squareTop: "▀",
|
265247
|
+
squareBottom: "▄",
|
265248
|
+
squareLeft: "▌",
|
265249
|
+
squareRight: "▐",
|
265250
|
+
squareCenter: "■",
|
265251
|
+
bullet: "●",
|
265252
|
+
dot: "․",
|
265253
|
+
ellipsis: "…",
|
265254
|
+
pointerSmall: "›",
|
265255
|
+
triangleUp: "▲",
|
265256
|
+
triangleUpSmall: "▴",
|
265257
|
+
triangleDown: "▼",
|
265258
|
+
triangleDownSmall: "▾",
|
265259
|
+
triangleLeftSmall: "◂",
|
265260
|
+
triangleRightSmall: "▸",
|
265261
|
+
home: "⌂",
|
265262
|
+
heart: "♥",
|
265263
|
+
musicNote: "♪",
|
265264
|
+
musicNoteBeamed: "♫",
|
265265
|
+
arrowUp: "↑",
|
265266
|
+
arrowDown: "↓",
|
265267
|
+
arrowLeft: "←",
|
265268
|
+
arrowRight: "→",
|
265269
|
+
arrowLeftRight: "↔",
|
265270
|
+
arrowUpDown: "↕",
|
265271
|
+
almostEqual: "≈",
|
265272
|
+
notEqual: "≠",
|
265273
|
+
lessOrEqual: "≤",
|
265274
|
+
greaterOrEqual: "≥",
|
265275
|
+
identical: "≡",
|
265276
|
+
infinity: "∞",
|
265277
|
+
subscriptZero: "₀",
|
265278
|
+
subscriptOne: "₁",
|
265279
|
+
subscriptTwo: "₂",
|
265280
|
+
subscriptThree: "₃",
|
265281
|
+
subscriptFour: "₄",
|
265282
|
+
subscriptFive: "₅",
|
265283
|
+
subscriptSix: "₆",
|
265284
|
+
subscriptSeven: "₇",
|
265285
|
+
subscriptEight: "₈",
|
265286
|
+
subscriptNine: "₉",
|
265287
|
+
oneHalf: "½",
|
265288
|
+
oneThird: "⅓",
|
265289
|
+
oneQuarter: "¼",
|
265290
|
+
oneFifth: "⅕",
|
265291
|
+
oneSixth: "⅙",
|
265292
|
+
oneEighth: "⅛",
|
265293
|
+
twoThirds: "⅔",
|
265294
|
+
twoFifths: "⅖",
|
265295
|
+
threeQuarters: "¾",
|
265296
|
+
threeFifths: "⅗",
|
265297
|
+
threeEighths: "⅜",
|
265298
|
+
fourFifths: "⅘",
|
265299
|
+
fiveSixths: "⅚",
|
265300
|
+
fiveEighths: "⅝",
|
265301
|
+
sevenEighths: "⅞",
|
265302
|
+
line: "─",
|
265303
|
+
lineBold: "━",
|
265304
|
+
lineDouble: "═",
|
265305
|
+
lineDashed0: "┄",
|
265306
|
+
lineDashed1: "┅",
|
265307
|
+
lineDashed2: "┈",
|
265308
|
+
lineDashed3: "┉",
|
265309
|
+
lineDashed4: "╌",
|
265310
|
+
lineDashed5: "╍",
|
265311
|
+
lineDashed6: "╴",
|
265312
|
+
lineDashed7: "╶",
|
265313
|
+
lineDashed8: "╸",
|
265314
|
+
lineDashed9: "╺",
|
265315
|
+
lineDashed10: "╼",
|
265316
|
+
lineDashed11: "╾",
|
265317
|
+
lineDashed12: "−",
|
265318
|
+
lineDashed13: "–",
|
265319
|
+
lineDashed14: "‐",
|
265320
|
+
lineDashed15: "⁃",
|
265321
|
+
lineVertical: "│",
|
265322
|
+
lineVerticalBold: "┃",
|
265323
|
+
lineVerticalDouble: "║",
|
265324
|
+
lineVerticalDashed0: "┆",
|
265325
|
+
lineVerticalDashed1: "┇",
|
265326
|
+
lineVerticalDashed2: "┊",
|
265327
|
+
lineVerticalDashed3: "┋",
|
265328
|
+
lineVerticalDashed4: "╎",
|
265329
|
+
lineVerticalDashed5: "╏",
|
265330
|
+
lineVerticalDashed6: "╵",
|
265331
|
+
lineVerticalDashed7: "╷",
|
265332
|
+
lineVerticalDashed8: "╹",
|
265333
|
+
lineVerticalDashed9: "╻",
|
265334
|
+
lineVerticalDashed10: "╽",
|
265335
|
+
lineVerticalDashed11: "╿",
|
265336
|
+
lineDownLeft: "┐",
|
265337
|
+
lineDownLeftArc: "╮",
|
265338
|
+
lineDownBoldLeftBold: "┓",
|
265339
|
+
lineDownBoldLeft: "┒",
|
265340
|
+
lineDownLeftBold: "┑",
|
265341
|
+
lineDownDoubleLeftDouble: "╗",
|
265342
|
+
lineDownDoubleLeft: "╖",
|
265343
|
+
lineDownLeftDouble: "╕",
|
265344
|
+
lineDownRight: "┌",
|
265345
|
+
lineDownRightArc: "╭",
|
265346
|
+
lineDownBoldRightBold: "┏",
|
265347
|
+
lineDownBoldRight: "┎",
|
265348
|
+
lineDownRightBold: "┍",
|
265349
|
+
lineDownDoubleRightDouble: "╔",
|
265350
|
+
lineDownDoubleRight: "╓",
|
265351
|
+
lineDownRightDouble: "╒",
|
265352
|
+
lineUpLeft: "┘",
|
265353
|
+
lineUpLeftArc: "╯",
|
265354
|
+
lineUpBoldLeftBold: "┛",
|
265355
|
+
lineUpBoldLeft: "┚",
|
265356
|
+
lineUpLeftBold: "┙",
|
265357
|
+
lineUpDoubleLeftDouble: "╝",
|
265358
|
+
lineUpDoubleLeft: "╜",
|
265359
|
+
lineUpLeftDouble: "╛",
|
265360
|
+
lineUpRight: "└",
|
265361
|
+
lineUpRightArc: "╰",
|
265362
|
+
lineUpBoldRightBold: "┗",
|
265363
|
+
lineUpBoldRight: "┖",
|
265364
|
+
lineUpRightBold: "┕",
|
265365
|
+
lineUpDoubleRightDouble: "╚",
|
265366
|
+
lineUpDoubleRight: "╙",
|
265367
|
+
lineUpRightDouble: "╘",
|
265368
|
+
lineUpDownLeft: "┤",
|
265369
|
+
lineUpBoldDownBoldLeftBold: "┫",
|
265370
|
+
lineUpBoldDownBoldLeft: "┨",
|
265371
|
+
lineUpDownLeftBold: "┥",
|
265372
|
+
lineUpBoldDownLeftBold: "┩",
|
265373
|
+
lineUpDownBoldLeftBold: "┪",
|
265374
|
+
lineUpDownBoldLeft: "┧",
|
265375
|
+
lineUpBoldDownLeft: "┦",
|
265376
|
+
lineUpDoubleDownDoubleLeftDouble: "╣",
|
265377
|
+
lineUpDoubleDownDoubleLeft: "╢",
|
265378
|
+
lineUpDownLeftDouble: "╡",
|
265379
|
+
lineUpDownRight: "├",
|
265380
|
+
lineUpBoldDownBoldRightBold: "┣",
|
265381
|
+
lineUpBoldDownBoldRight: "┠",
|
265382
|
+
lineUpDownRightBold: "┝",
|
265383
|
+
lineUpBoldDownRightBold: "┡",
|
265384
|
+
lineUpDownBoldRightBold: "┢",
|
265385
|
+
lineUpDownBoldRight: "┟",
|
265386
|
+
lineUpBoldDownRight: "┞",
|
265387
|
+
lineUpDoubleDownDoubleRightDouble: "╠",
|
265388
|
+
lineUpDoubleDownDoubleRight: "╟",
|
265389
|
+
lineUpDownRightDouble: "╞",
|
265390
|
+
lineDownLeftRight: "┬",
|
265391
|
+
lineDownBoldLeftBoldRightBold: "┳",
|
265392
|
+
lineDownLeftBoldRightBold: "┯",
|
265393
|
+
lineDownBoldLeftRight: "┰",
|
265394
|
+
lineDownBoldLeftBoldRight: "┱",
|
265395
|
+
lineDownBoldLeftRightBold: "┲",
|
265396
|
+
lineDownLeftRightBold: "┮",
|
265397
|
+
lineDownLeftBoldRight: "┭",
|
265398
|
+
lineDownDoubleLeftDoubleRightDouble: "╦",
|
265399
|
+
lineDownDoubleLeftRight: "╥",
|
265400
|
+
lineDownLeftDoubleRightDouble: "╤",
|
265401
|
+
lineUpLeftRight: "┴",
|
265402
|
+
lineUpBoldLeftBoldRightBold: "┻",
|
265403
|
+
lineUpLeftBoldRightBold: "┷",
|
265404
|
+
lineUpBoldLeftRight: "┸",
|
265405
|
+
lineUpBoldLeftBoldRight: "┹",
|
265406
|
+
lineUpBoldLeftRightBold: "┺",
|
265407
|
+
lineUpLeftRightBold: "┶",
|
265408
|
+
lineUpLeftBoldRight: "┵",
|
265409
|
+
lineUpDoubleLeftDoubleRightDouble: "╩",
|
265410
|
+
lineUpDoubleLeftRight: "╨",
|
265411
|
+
lineUpLeftDoubleRightDouble: "╧",
|
265412
|
+
lineUpDownLeftRight: "┼",
|
265413
|
+
lineUpBoldDownBoldLeftBoldRightBold: "╋",
|
265414
|
+
lineUpDownBoldLeftBoldRightBold: "╈",
|
265415
|
+
lineUpBoldDownLeftBoldRightBold: "╇",
|
265416
|
+
lineUpBoldDownBoldLeftRightBold: "╊",
|
265417
|
+
lineUpBoldDownBoldLeftBoldRight: "╉",
|
265418
|
+
lineUpBoldDownLeftRight: "╀",
|
265419
|
+
lineUpDownBoldLeftRight: "╁",
|
265420
|
+
lineUpDownLeftBoldRight: "┽",
|
265421
|
+
lineUpDownLeftRightBold: "┾",
|
265422
|
+
lineUpBoldDownBoldLeftRight: "╂",
|
265423
|
+
lineUpDownLeftBoldRightBold: "┿",
|
265424
|
+
lineUpBoldDownLeftBoldRight: "╃",
|
265425
|
+
lineUpBoldDownLeftRightBold: "╄",
|
265426
|
+
lineUpDownBoldLeftBoldRight: "╅",
|
265427
|
+
lineUpDownBoldLeftRightBold: "╆",
|
265428
|
+
lineUpDoubleDownDoubleLeftDoubleRightDouble: "╬",
|
265429
|
+
lineUpDoubleDownDoubleLeftRight: "╫",
|
265430
|
+
lineUpDownLeftDoubleRightDouble: "╪",
|
265431
|
+
lineCross: "╳",
|
265432
|
+
lineBackslash: "╲",
|
265433
|
+
lineSlash: "╱"
|
265434
|
+
};
|
265435
|
+
var specialMainSymbols2 = {
|
265436
|
+
tick: "✔",
|
265437
|
+
info: "ℹ",
|
265438
|
+
warning: "⚠",
|
265439
|
+
cross: "✘",
|
265440
|
+
squareSmall: "◻",
|
265441
|
+
squareSmallFilled: "◼",
|
265442
|
+
circle: "◯",
|
265443
|
+
circleFilled: "◉",
|
265444
|
+
circleDotted: "◌",
|
265445
|
+
circleDouble: "◎",
|
265446
|
+
circleCircle: "ⓞ",
|
265447
|
+
circleCross: "ⓧ",
|
265448
|
+
circlePipe: "Ⓘ",
|
265449
|
+
radioOn: "◉",
|
265450
|
+
radioOff: "◯",
|
265451
|
+
checkboxOn: "☒",
|
265452
|
+
checkboxOff: "☐",
|
265453
|
+
checkboxCircleOn: "ⓧ",
|
265454
|
+
checkboxCircleOff: "Ⓘ",
|
265455
|
+
pointer: "❯",
|
265456
|
+
triangleUpOutline: "△",
|
265457
|
+
triangleLeft: "◀",
|
265458
|
+
triangleRight: "▶",
|
265459
|
+
lozenge: "◆",
|
265460
|
+
lozengeOutline: "◇",
|
265461
|
+
hamburger: "☰",
|
265462
|
+
smiley: "㋡",
|
265463
|
+
mustache: "෴",
|
265464
|
+
star: "★",
|
265465
|
+
play: "▶",
|
265466
|
+
nodejs: "⬢",
|
265467
|
+
oneSeventh: "⅐",
|
265468
|
+
oneNinth: "⅑",
|
265469
|
+
oneTenth: "⅒"
|
265470
|
+
};
|
265471
|
+
var specialFallbackSymbols2 = {
|
265472
|
+
tick: "√",
|
265473
|
+
info: "i",
|
265474
|
+
warning: "‼",
|
265475
|
+
cross: "×",
|
265476
|
+
squareSmall: "□",
|
265477
|
+
squareSmallFilled: "■",
|
265478
|
+
circle: "( )",
|
265479
|
+
circleFilled: "(*)",
|
265480
|
+
circleDotted: "( )",
|
265481
|
+
circleDouble: "( )",
|
265482
|
+
circleCircle: "(○)",
|
265483
|
+
circleCross: "(×)",
|
265484
|
+
circlePipe: "(│)",
|
265485
|
+
radioOn: "(*)",
|
265486
|
+
radioOff: "( )",
|
265487
|
+
checkboxOn: "[×]",
|
265488
|
+
checkboxOff: "[ ]",
|
265489
|
+
checkboxCircleOn: "(×)",
|
265490
|
+
checkboxCircleOff: "( )",
|
265491
|
+
pointer: ">",
|
265492
|
+
triangleUpOutline: "∆",
|
265493
|
+
triangleLeft: "◄",
|
265494
|
+
triangleRight: "►",
|
265495
|
+
lozenge: "♦",
|
265496
|
+
lozengeOutline: "◊",
|
265497
|
+
hamburger: "≡",
|
265498
|
+
smiley: "☺",
|
265499
|
+
mustache: "┌─┐",
|
265500
|
+
star: "✶",
|
265501
|
+
play: "►",
|
265502
|
+
nodejs: "♦",
|
265503
|
+
oneSeventh: "1/7",
|
265504
|
+
oneNinth: "1/9",
|
265505
|
+
oneTenth: "1/10"
|
265506
|
+
};
|
265507
|
+
var mainSymbols2 = { ...common2, ...specialMainSymbols2 };
|
265508
|
+
var fallbackSymbols2 = {
|
265509
|
+
...common2,
|
265510
|
+
...specialFallbackSymbols2
|
265511
|
+
};
|
265512
|
+
var shouldUseMain2 = isUnicodeSupported3();
|
265513
|
+
var figures2 = shouldUseMain2 ? mainSymbols2 : fallbackSymbols2;
|
265514
|
+
var esm_default3 = figures2;
|
265515
|
+
var replacements2 = Object.entries(specialMainSymbols2);
|
265516
|
+
|
265517
|
+
// ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/theme.js
|
265518
|
+
var defaultTheme2 = {
|
265519
|
+
prefix: {
|
265520
|
+
idle: import_yoctocolors_cjs2.default.blue("?"),
|
265521
|
+
done: import_yoctocolors_cjs2.default.green(esm_default3.tick)
|
265522
|
+
},
|
265523
|
+
spinner: {
|
265524
|
+
interval: 80,
|
265525
|
+
frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs2.default.yellow(frame))
|
265526
|
+
},
|
265527
|
+
style: {
|
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}>`))
|
265535
|
+
}
|
265536
|
+
};
|
265537
|
+
|
265538
|
+
// ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
|
265539
|
+
function isPlainObject3(value4) {
|
265540
|
+
if (typeof value4 !== "object" || value4 === null)
|
265541
|
+
return false;
|
265542
|
+
let proto = value4;
|
265543
|
+
while (Object.getPrototypeOf(proto) !== null) {
|
265544
|
+
proto = Object.getPrototypeOf(proto);
|
265545
|
+
}
|
265546
|
+
return Object.getPrototypeOf(value4) === proto;
|
265547
|
+
}
|
265548
|
+
function deepMerge3(...objects) {
|
265549
|
+
const output = {};
|
265550
|
+
for (const obj of objects) {
|
265551
|
+
for (const [key2, value4] of Object.entries(obj)) {
|
265552
|
+
const prevValue = output[key2];
|
265553
|
+
output[key2] = isPlainObject3(prevValue) && isPlainObject3(value4) ? deepMerge3(prevValue, value4) : value4;
|
265554
|
+
}
|
265555
|
+
}
|
265556
|
+
return output;
|
265557
|
+
}
|
265558
|
+
function makeTheme2(...themes) {
|
265559
|
+
const themesToMerge = [
|
265560
|
+
defaultTheme2,
|
265561
|
+
...themes.filter((theme) => theme != null)
|
265562
|
+
];
|
265563
|
+
return deepMerge3(...themesToMerge);
|
265564
|
+
}
|
265565
|
+
|
265566
|
+
// ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
|
265567
|
+
function usePrefix2({ status = "idle", theme }) {
|
265568
|
+
const [showLoader, setShowLoader] = useState2(false);
|
265569
|
+
const [tick, setTick] = useState2(0);
|
265570
|
+
const { prefix, spinner: spinner2 } = makeTheme2(theme);
|
265571
|
+
useEffect2(() => {
|
265572
|
+
if (status === "loading") {
|
265573
|
+
let tickInterval;
|
265574
|
+
let inc = -1;
|
265575
|
+
const delayTimeout = setTimeout(AsyncResource5.bind(() => {
|
265576
|
+
setShowLoader(true);
|
265577
|
+
tickInterval = setInterval(AsyncResource5.bind(() => {
|
265578
|
+
inc = inc + 1;
|
265579
|
+
setTick(inc % spinner2.frames.length);
|
265580
|
+
}), spinner2.interval);
|
265581
|
+
}), 300);
|
265582
|
+
return () => {
|
265583
|
+
clearTimeout(delayTimeout);
|
265584
|
+
clearInterval(tickInterval);
|
265585
|
+
};
|
265586
|
+
} else {
|
265587
|
+
setShowLoader(false);
|
265588
|
+
}
|
265589
|
+
}, [status]);
|
265590
|
+
if (showLoader) {
|
265591
|
+
return spinner2.frames[tick];
|
265592
|
+
}
|
265593
|
+
const iconName = status === "loading" ? "idle" : status;
|
265594
|
+
return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
|
265595
|
+
}
|
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
|
265609
|
+
function useRef2(val) {
|
265610
|
+
return useState2({ current: val })[0];
|
265611
|
+
}
|
265612
|
+
// ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
|
265613
|
+
function useKeypress2(userHandler) {
|
265614
|
+
const signal = useRef2(userHandler);
|
265615
|
+
signal.current = userHandler;
|
265616
|
+
useEffect2((rl) => {
|
265617
|
+
let ignore = false;
|
265618
|
+
const handler = withUpdates2((_input, event) => {
|
265619
|
+
if (ignore)
|
265620
|
+
return;
|
265621
|
+
signal.current(event, rl);
|
265622
|
+
});
|
265623
|
+
rl.input.on("keypress", handler);
|
265624
|
+
return () => {
|
265625
|
+
ignore = true;
|
265626
|
+
rl.input.removeListener("keypress", handler);
|
265627
|
+
};
|
265628
|
+
}, []);
|
265629
|
+
}
|
265630
|
+
// ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/utils.js
|
265631
|
+
var import_cli_width2 = __toESM(require_cli_width(), 1);
|
265632
|
+
var import_wrap_ansi2 = __toESM(require_wrap_ansi(), 1);
|
265633
|
+
function breakLines2(content, width) {
|
265634
|
+
return content.split(`
|
265635
|
+
`).flatMap((line) => import_wrap_ansi2.default(line, width, { trim: false, hard: true }).split(`
|
265636
|
+
`).map((str) => str.trimEnd())).join(`
|
265637
|
+
`);
|
265638
|
+
}
|
265639
|
+
function readlineWidth2() {
|
265640
|
+
return import_cli_width2.default({ defaultWidth: 80, output: readline3().output });
|
265641
|
+
}
|
265642
|
+
|
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
|
265733
|
+
var import_mute_stream2 = __toESM(require_lib(), 1);
|
265734
|
+
import * as readline4 from "node:readline";
|
265735
|
+
import { AsyncResource as AsyncResource6 } from "node:async_hooks";
|
265736
|
+
|
265737
|
+
// ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
|
265176
265738
|
var import_ansi_escapes2 = __toESM(require_ansi_escapes(), 1);
|
265739
|
+
import { stripVTControlCharacters as stripVTControlCharacters3 } from "node:util";
|
265740
|
+
var height2 = (content) => content.split(`
|
265741
|
+
`).length;
|
265742
|
+
var lastLine2 = (content) => content.split(`
|
265743
|
+
`).pop() ?? "";
|
265744
|
+
function cursorDown2(n6) {
|
265745
|
+
return n6 > 0 ? import_ansi_escapes2.default.cursorDown(n6) : "";
|
265746
|
+
}
|
265747
|
+
|
265748
|
+
class ScreenManager2 {
|
265749
|
+
height = 0;
|
265750
|
+
extraLinesUnderPrompt = 0;
|
265751
|
+
cursorPos;
|
265752
|
+
rl;
|
265753
|
+
constructor(rl) {
|
265754
|
+
this.rl = rl;
|
265755
|
+
this.cursorPos = rl.getCursorPos();
|
265756
|
+
}
|
265757
|
+
write(content) {
|
265758
|
+
this.rl.output.unmute();
|
265759
|
+
this.rl.output.write(content);
|
265760
|
+
this.rl.output.mute();
|
265761
|
+
}
|
265762
|
+
render(content, bottomContent = "") {
|
265763
|
+
const promptLine = lastLine2(content);
|
265764
|
+
const rawPromptLine = stripVTControlCharacters3(promptLine);
|
265765
|
+
let prompt = rawPromptLine;
|
265766
|
+
if (this.rl.line.length > 0) {
|
265767
|
+
prompt = prompt.slice(0, -this.rl.line.length);
|
265768
|
+
}
|
265769
|
+
this.rl.setPrompt(prompt);
|
265770
|
+
this.cursorPos = this.rl.getCursorPos();
|
265771
|
+
const width = readlineWidth2();
|
265772
|
+
content = breakLines2(content, width);
|
265773
|
+
bottomContent = breakLines2(bottomContent, width);
|
265774
|
+
if (rawPromptLine.length % width === 0) {
|
265775
|
+
content += `
|
265776
|
+
`;
|
265777
|
+
}
|
265778
|
+
let output = content + (bottomContent ? `
|
265779
|
+
` + bottomContent : "");
|
265780
|
+
const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
|
265781
|
+
const bottomContentHeight = promptLineUpDiff + (bottomContent ? height2(bottomContent) : 0);
|
265782
|
+
if (bottomContentHeight > 0)
|
265783
|
+
output += import_ansi_escapes2.default.cursorUp(bottomContentHeight);
|
265784
|
+
output += import_ansi_escapes2.default.cursorTo(this.cursorPos.cols);
|
265785
|
+
this.write(cursorDown2(this.extraLinesUnderPrompt) + import_ansi_escapes2.default.eraseLines(this.height) + output);
|
265786
|
+
this.extraLinesUnderPrompt = bottomContentHeight;
|
265787
|
+
this.height = height2(output);
|
265788
|
+
}
|
265789
|
+
checkCursorPos() {
|
265790
|
+
const cursorPos = this.rl.getCursorPos();
|
265791
|
+
if (cursorPos.cols !== this.cursorPos.cols) {
|
265792
|
+
this.write(import_ansi_escapes2.default.cursorTo(cursorPos.cols));
|
265793
|
+
this.cursorPos = cursorPos;
|
265794
|
+
}
|
265795
|
+
}
|
265796
|
+
done({ clearContent }) {
|
265797
|
+
this.rl.setPrompt("");
|
265798
|
+
let output = cursorDown2(this.extraLinesUnderPrompt);
|
265799
|
+
output += clearContent ? import_ansi_escapes2.default.eraseLines(this.height) : `
|
265800
|
+
`;
|
265801
|
+
output += import_ansi_escapes2.default.cursorShow;
|
265802
|
+
this.write(output);
|
265803
|
+
this.rl.close();
|
265804
|
+
}
|
265805
|
+
}
|
265806
|
+
|
265807
|
+
// ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
|
265808
|
+
class PromisePolyfill2 extends Promise {
|
265809
|
+
static withResolver() {
|
265810
|
+
let resolve5;
|
265811
|
+
let reject;
|
265812
|
+
const promise = new Promise((res, rej) => {
|
265813
|
+
resolve5 = res;
|
265814
|
+
reject = rej;
|
265815
|
+
});
|
265816
|
+
return { promise, resolve: resolve5, reject };
|
265817
|
+
}
|
265818
|
+
}
|
265819
|
+
|
265820
|
+
// ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
265821
|
+
function getCallSites2() {
|
265822
|
+
const _prepareStackTrace = Error.prepareStackTrace;
|
265823
|
+
let result = [];
|
265824
|
+
try {
|
265825
|
+
Error.prepareStackTrace = (_5, callSites) => {
|
265826
|
+
const callSitesWithoutCurrent = callSites.slice(1);
|
265827
|
+
result = callSitesWithoutCurrent;
|
265828
|
+
return callSitesWithoutCurrent;
|
265829
|
+
};
|
265830
|
+
new Error().stack;
|
265831
|
+
} catch {
|
265832
|
+
return result;
|
265833
|
+
}
|
265834
|
+
Error.prepareStackTrace = _prepareStackTrace;
|
265835
|
+
return result;
|
265836
|
+
}
|
265837
|
+
function createPrompt2(view) {
|
265838
|
+
const callSites = getCallSites2();
|
265839
|
+
const prompt = (config3, context = {}) => {
|
265840
|
+
const { input = process.stdin, signal } = context;
|
265841
|
+
const cleanups = new Set;
|
265842
|
+
const output = new import_mute_stream2.default;
|
265843
|
+
output.pipe(context.output ?? process.stdout);
|
265844
|
+
const rl = readline4.createInterface({
|
265845
|
+
terminal: true,
|
265846
|
+
input,
|
265847
|
+
output
|
265848
|
+
});
|
265849
|
+
const screen = new ScreenManager2(rl);
|
265850
|
+
const { promise, resolve: resolve5, reject } = PromisePolyfill2.withResolver();
|
265851
|
+
const cancel3 = () => reject(new CancelPromptError2);
|
265852
|
+
if (signal) {
|
265853
|
+
const abort = () => reject(new AbortPromptError2({ cause: signal.reason }));
|
265854
|
+
if (signal.aborted) {
|
265855
|
+
abort();
|
265856
|
+
return Object.assign(promise, { cancel: cancel3 });
|
265857
|
+
}
|
265858
|
+
signal.addEventListener("abort", abort);
|
265859
|
+
cleanups.add(() => signal.removeEventListener("abort", abort));
|
265860
|
+
}
|
265861
|
+
cleanups.add(onExit((code2, signal2) => {
|
265862
|
+
reject(new ExitPromptError2(`User force closed the prompt with ${code2} ${signal2}`));
|
265863
|
+
}));
|
265864
|
+
const checkCursorPos = () => screen.checkCursorPos();
|
265865
|
+
rl.input.on("keypress", checkCursorPos);
|
265866
|
+
cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
|
265867
|
+
return withHooks2(rl, (cycle) => {
|
265868
|
+
const hooksCleanup = AsyncResource6.bind(() => effectScheduler2.clearAll());
|
265869
|
+
rl.on("close", hooksCleanup);
|
265870
|
+
cleanups.add(() => rl.removeListener("close", hooksCleanup));
|
265871
|
+
cycle(() => {
|
265872
|
+
try {
|
265873
|
+
const nextView = view(config3, (value4) => {
|
265874
|
+
setImmediate(() => resolve5(value4));
|
265875
|
+
});
|
265876
|
+
if (nextView === undefined) {
|
265877
|
+
const callerFilename = callSites[1]?.getFileName?.();
|
265878
|
+
throw new Error(`Prompt functions must return a string.
|
265879
|
+
at ${callerFilename}`);
|
265880
|
+
}
|
265881
|
+
const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
|
265882
|
+
screen.render(content, bottomContent);
|
265883
|
+
effectScheduler2.run();
|
265884
|
+
} catch (error5) {
|
265885
|
+
reject(error5);
|
265886
|
+
}
|
265887
|
+
});
|
265888
|
+
return Object.assign(promise.then((answer) => {
|
265889
|
+
effectScheduler2.clearAll();
|
265890
|
+
return answer;
|
265891
|
+
}, (error5) => {
|
265892
|
+
effectScheduler2.clearAll();
|
265893
|
+
throw error5;
|
265894
|
+
}).finally(() => {
|
265895
|
+
cleanups.forEach((cleanup) => cleanup());
|
265896
|
+
screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
|
265897
|
+
output.end();
|
265898
|
+
}).then(() => promise), { cancel: cancel3 });
|
265899
|
+
});
|
265900
|
+
};
|
265901
|
+
return prompt;
|
265902
|
+
}
|
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;
|
265911
|
+
}
|
265912
|
+
}
|
265913
|
+
static isSeparator(choice) {
|
265914
|
+
return Boolean(choice && typeof choice === "object" && "type" in choice && choice.type === "separator");
|
265915
|
+
}
|
265916
|
+
}
|
265917
|
+
// ../../node_modules/@inquirer/select/dist/esm/index.js
|
265918
|
+
var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
|
265919
|
+
var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
|
265177
265920
|
var selectTheme = {
|
265178
|
-
icon: { cursor:
|
265921
|
+
icon: { cursor: esm_default3.pointer },
|
265179
265922
|
style: {
|
265180
|
-
disabled: (text2) =>
|
265181
|
-
description: (text2) =>
|
265923
|
+
disabled: (text2) => import_yoctocolors_cjs4.default.dim(`- ${text2}`),
|
265924
|
+
description: (text2) => import_yoctocolors_cjs4.default.cyan(text2)
|
265182
265925
|
},
|
265183
265926
|
helpMode: "auto"
|
265184
265927
|
};
|
@@ -265207,19 +265950,19 @@ function normalizeChoices(choices) {
|
|
265207
265950
|
};
|
265208
265951
|
});
|
265209
265952
|
}
|
265210
|
-
var
|
265953
|
+
var esm_default4 = createPrompt2((config3, done) => {
|
265211
265954
|
const { loop = true, pageSize = 7 } = config3;
|
265212
|
-
const firstRender =
|
265213
|
-
const theme =
|
265214
|
-
const [status, setStatus] =
|
265215
|
-
const prefix =
|
265216
|
-
const searchTimeoutRef =
|
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();
|
265217
265960
|
const items = useMemo(() => normalizeChoices(config3.choices), [config3.choices]);
|
265218
265961
|
const bounds = useMemo(() => {
|
265219
265962
|
const first = items.findIndex(isSelectable);
|
265220
265963
|
const last = items.findLastIndex(isSelectable);
|
265221
265964
|
if (first === -1) {
|
265222
|
-
throw new
|
265965
|
+
throw new ValidationError2("[select prompt] No selectable choices. All choices are disabled.");
|
265223
265966
|
}
|
265224
265967
|
return { first, last };
|
265225
265968
|
}, [items]);
|
@@ -265228,31 +265971,31 @@ var esm_default3 = createPrompt((config3, done) => {
|
|
265228
265971
|
return -1;
|
265229
265972
|
return items.findIndex((item) => isSelectable(item) && item.value === config3.default);
|
265230
265973
|
}, [config3.default, items]);
|
265231
|
-
const [active, setActive] =
|
265974
|
+
const [active, setActive] = useState2(defaultItemIndex === -1 ? bounds.first : defaultItemIndex);
|
265232
265975
|
const selectedChoice = items[active];
|
265233
|
-
|
265976
|
+
useKeypress2((key3, rl) => {
|
265234
265977
|
clearTimeout(searchTimeoutRef.current);
|
265235
|
-
if (
|
265978
|
+
if (isEnterKey2(key3)) {
|
265236
265979
|
setStatus("done");
|
265237
265980
|
done(selectedChoice.value);
|
265238
|
-
} else if (isUpKey(
|
265981
|
+
} else if (isUpKey(key3) || isDownKey(key3)) {
|
265239
265982
|
rl.clearLine(0);
|
265240
|
-
if (loop || isUpKey(
|
265241
|
-
const offset = isUpKey(
|
265983
|
+
if (loop || isUpKey(key3) && active !== bounds.first || isDownKey(key3) && active !== bounds.last) {
|
265984
|
+
const offset = isUpKey(key3) ? -1 : 1;
|
265242
265985
|
let next = active;
|
265243
265986
|
do {
|
265244
265987
|
next = (next + offset + items.length) % items.length;
|
265245
265988
|
} while (!isSelectable(items[next]));
|
265246
265989
|
setActive(next);
|
265247
265990
|
}
|
265248
|
-
} else if (isNumberKey(
|
265991
|
+
} else if (isNumberKey(key3)) {
|
265249
265992
|
rl.clearLine(0);
|
265250
|
-
const position = Number(
|
265993
|
+
const position = Number(key3.name) - 1;
|
265251
265994
|
const item = items[position];
|
265252
265995
|
if (item != null && isSelectable(item)) {
|
265253
265996
|
setActive(position);
|
265254
265997
|
}
|
265255
|
-
} else if (
|
265998
|
+
} else if (isBackspaceKey2(key3)) {
|
265256
265999
|
rl.clearLine(0);
|
265257
266000
|
} else {
|
265258
266001
|
const searchTerm = rl.line.toLowerCase();
|
@@ -265269,7 +266012,7 @@ var esm_default3 = createPrompt((config3, done) => {
|
|
265269
266012
|
}, 700);
|
265270
266013
|
}
|
265271
266014
|
});
|
265272
|
-
|
266015
|
+
useEffect2(() => () => {
|
265273
266016
|
clearTimeout(searchTimeoutRef.current);
|
265274
266017
|
}, []);
|
265275
266018
|
const message = theme.style.message(config3.message, status);
|
@@ -265308,7 +266051,7 @@ ${theme.style.help("(Use arrow keys to reveal more choices)")}`;
|
|
265308
266051
|
const choiceDescription = selectedChoice.description ? `
|
265309
266052
|
${theme.style.description(selectedChoice.description)}` : ``;
|
265310
266053
|
return `${[prefix, message, helpTipTop].filter(Boolean).join(" ")}
|
265311
|
-
${page}${helpTipBottom}${choiceDescription}${
|
266054
|
+
${page}${helpTipBottom}${choiceDescription}${import_ansi_escapes3.default.cursorHide}`;
|
265312
266055
|
});
|
265313
266056
|
|
265314
266057
|
// src/prompts/smart-contract-set/subgraph.prompt.ts
|
@@ -265348,7 +266091,7 @@ async function subgraphPrompt({
|
|
265348
266091
|
} else {
|
265349
266092
|
defaultChoice = env2.SETTLEMINT_THEGRAPH_DEFAULT_SUBGRAPH ?? subgraphNames[0];
|
265350
266093
|
}
|
265351
|
-
const subgraphName = await
|
266094
|
+
const subgraphName = await esm_default4({
|
265352
266095
|
message,
|
265353
266096
|
choices: choices.map((name3) => ({
|
265354
266097
|
name: name3,
|
@@ -265690,19 +266433,19 @@ function getBooleanValue(value4, defaultValue) {
|
|
265690
266433
|
function boolToString(value4) {
|
265691
266434
|
return value4 ? "Yes" : "No";
|
265692
266435
|
}
|
265693
|
-
var
|
266436
|
+
var esm_default5 = createPrompt((config3, done) => {
|
265694
266437
|
const { transformer = boolToString } = config3;
|
265695
266438
|
const [status, setStatus] = useState("idle");
|
265696
266439
|
const [value4, setValue] = useState("");
|
265697
266440
|
const theme = makeTheme(config3.theme);
|
265698
266441
|
const prefix = usePrefix({ status, theme });
|
265699
|
-
useKeypress((
|
265700
|
-
if (isEnterKey(
|
266442
|
+
useKeypress((key3, rl) => {
|
266443
|
+
if (isEnterKey(key3)) {
|
265701
266444
|
const answer = getBooleanValue(value4, config3.default);
|
265702
266445
|
setValue(transformer(answer));
|
265703
266446
|
setStatus("done");
|
265704
266447
|
done(answer);
|
265705
|
-
} else if (
|
266448
|
+
} else if (key3.name === "tab") {
|
265706
266449
|
const answer = boolToString(!getBooleanValue(value4, config3.default));
|
265707
266450
|
rl.clearLine(0);
|
265708
266451
|
rl.write(answer);
|
@@ -265723,19 +266466,19 @@ var esm_default4 = createPrompt((config3, done) => {
|
|
265723
266466
|
});
|
265724
266467
|
|
265725
266468
|
// ../../node_modules/@inquirer/password/dist/esm/index.js
|
265726
|
-
var
|
265727
|
-
var
|
266469
|
+
var import_ansi_escapes4 = __toESM(require_ansi_escapes(), 1);
|
266470
|
+
var esm_default6 = createPrompt((config3, done) => {
|
265728
266471
|
const { validate: validate3 = () => true } = config3;
|
265729
266472
|
const theme = makeTheme(config3.theme);
|
265730
266473
|
const [status, setStatus] = useState("idle");
|
265731
266474
|
const [errorMsg, setError] = useState();
|
265732
266475
|
const [value4, setValue] = useState("");
|
265733
266476
|
const prefix = usePrefix({ status, theme });
|
265734
|
-
useKeypress(async (
|
266477
|
+
useKeypress(async (key3, rl) => {
|
265735
266478
|
if (status !== "idle") {
|
265736
266479
|
return;
|
265737
266480
|
}
|
265738
|
-
if (isEnterKey(
|
266481
|
+
if (isEnterKey(key3)) {
|
265739
266482
|
const answer = value4;
|
265740
266483
|
setStatus("loading");
|
265741
266484
|
const isValid2 = await validate3(answer);
|
@@ -265760,7 +266503,7 @@ var esm_default5 = createPrompt((config3, done) => {
|
|
265760
266503
|
const maskChar = typeof config3.mask === "string" ? config3.mask : "*";
|
265761
266504
|
formattedValue = maskChar.repeat(value4.length);
|
265762
266505
|
} else if (status !== "done") {
|
265763
|
-
helpTip = `${theme.style.help("[input is masked]")}${
|
266506
|
+
helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes4.default.cursorHide}`;
|
265764
266507
|
}
|
265765
266508
|
if (status === "done") {
|
265766
266509
|
formattedValue = theme.style.answer(formattedValue);
|
@@ -265782,7 +266525,7 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
|
|
265782
266525
|
return defaultAccessToken;
|
265783
266526
|
}
|
265784
266527
|
if (defaultAccessToken) {
|
265785
|
-
const keep = await
|
266528
|
+
const keep = await esm_default5({
|
265786
266529
|
message: "Do you want to use the existing application access token?",
|
265787
266530
|
default: true
|
265788
266531
|
});
|
@@ -265790,7 +266533,7 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
|
|
265790
266533
|
return defaultAccessToken;
|
265791
266534
|
}
|
265792
266535
|
}
|
265793
|
-
const create2 = await
|
266536
|
+
const create2 = await esm_default5({
|
265794
266537
|
message: "Do you want to create a new application access token?",
|
265795
266538
|
default: false
|
265796
266539
|
});
|
@@ -265859,7 +266602,7 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
|
|
265859
266602
|
} catch (error5) {
|
265860
266603
|
}
|
265861
266604
|
}
|
265862
|
-
return
|
266605
|
+
return esm_default6({
|
265863
266606
|
message: "What is the application access token for your application in SettleMint? (format: sm_aat_...)",
|
265864
266607
|
validate(value4) {
|
265865
266608
|
try {
|
@@ -265891,7 +266634,7 @@ async function applicationPrompt(env2, applications, accept) {
|
|
265891
266634
|
if (is_in_ci_default) {
|
265892
266635
|
nothingSelectedError("application");
|
265893
266636
|
}
|
265894
|
-
const application = await
|
266637
|
+
const application = await esm_default4({
|
265895
266638
|
message: "Which application do you want to connect to?",
|
265896
266639
|
choices: applications.map((applications2) => ({
|
265897
266640
|
name: `${applications2.name} (${applications2.uniqueName})`,
|
@@ -265964,7 +266707,7 @@ async function blockchainNodePrompt({
|
|
265964
266707
|
isRequired,
|
265965
266708
|
defaultHandler: async ({ defaultService: defaultNode, choices }) => {
|
265966
266709
|
const filteredChoices = filterRunningOnly ? choices.filter(({ value: node }) => node === undefined || node?.status === "COMPLETED") : choices;
|
265967
|
-
return
|
266710
|
+
return esm_default4({
|
265968
266711
|
message: promptMessage ?? "Which blockchain node do you want to connect to?",
|
265969
266712
|
choices: filteredChoices,
|
265970
266713
|
default: defaultNode
|
@@ -265989,7 +266732,7 @@ async function blockscoutPrompt({
|
|
265989
266732
|
envKey: "SETTLEMINT_BLOCKSCOUT",
|
265990
266733
|
isRequired,
|
265991
266734
|
defaultHandler: async ({ defaultService: defaultBlockscout, choices }) => {
|
265992
|
-
return
|
266735
|
+
return esm_default4({
|
265993
266736
|
message: "Which blockscout instance do you want to connect to?",
|
265994
266737
|
choices,
|
265995
266738
|
default: defaultBlockscout
|
@@ -266012,7 +266755,7 @@ async function customDeploymentPrompt({
|
|
266012
266755
|
envKey: "SETTLEMINT_CUSTOM_DEPLOYMENT",
|
266013
266756
|
isRequired,
|
266014
266757
|
defaultHandler: async ({ defaultService: defaultCustomDeployment, choices }) => {
|
266015
|
-
return
|
266758
|
+
return esm_default4({
|
266016
266759
|
message: "Which Custom Deployment do you want to connect to?",
|
266017
266760
|
choices,
|
266018
266761
|
default: defaultCustomDeployment
|
@@ -266036,7 +266779,7 @@ async function hasuraPrompt({
|
|
266036
266779
|
envKey: "SETTLEMINT_HASURA",
|
266037
266780
|
isRequired,
|
266038
266781
|
defaultHandler: async ({ defaultService: defaultHasura, choices }) => {
|
266039
|
-
return
|
266782
|
+
return esm_default4({
|
266040
266783
|
message: "Which Hasura instance do you want to connect to?",
|
266041
266784
|
choices,
|
266042
266785
|
default: defaultHasura
|
@@ -266060,7 +266803,7 @@ async function hdPrivateKeyPrompt({
|
|
266060
266803
|
envKey: "SETTLEMINT_HD_PRIVATE_KEY",
|
266061
266804
|
isRequired,
|
266062
266805
|
defaultHandler: async ({ defaultService: defaultPrivateKey, choices }) => {
|
266063
|
-
return
|
266806
|
+
return esm_default4({
|
266064
266807
|
message: "Which HD Private Key do you want to use?",
|
266065
266808
|
choices,
|
266066
266809
|
default: defaultPrivateKey
|
@@ -266084,7 +266827,7 @@ async function ipfsPrompt({
|
|
266084
266827
|
envKey: "SETTLEMINT_IPFS",
|
266085
266828
|
isRequired,
|
266086
266829
|
defaultHandler: async ({ defaultService: defaultStorage, choices }) => {
|
266087
|
-
return
|
266830
|
+
return esm_default4({
|
266088
266831
|
message: "Which IPFS instance do you want to connect to?",
|
266089
266832
|
choices,
|
266090
266833
|
default: defaultStorage
|
@@ -266108,7 +266851,7 @@ async function minioPrompt({
|
|
266108
266851
|
envKey: "SETTLEMINT_MINIO",
|
266109
266852
|
isRequired,
|
266110
266853
|
defaultHandler: async ({ defaultService: defaultStorage, choices }) => {
|
266111
|
-
return
|
266854
|
+
return esm_default4({
|
266112
266855
|
message: "Which MinIO instance do you want to connect to?",
|
266113
266856
|
choices,
|
266114
266857
|
default: defaultStorage
|
@@ -266132,7 +266875,7 @@ async function portalPrompt({
|
|
266132
266875
|
envKey: "SETTLEMINT_PORTAL",
|
266133
266876
|
isRequired,
|
266134
266877
|
defaultHandler: async ({ defaultService: defaultMiddleware, choices }) => {
|
266135
|
-
return
|
266878
|
+
return esm_default4({
|
266136
266879
|
message: "Which Smart Contract Portal instance do you want to connect to?",
|
266137
266880
|
choices,
|
266138
266881
|
default: defaultMiddleware
|
@@ -266161,7 +266904,7 @@ async function theGraphPrompt({
|
|
266161
266904
|
isRequired,
|
266162
266905
|
defaultHandler: async ({ defaultService: defaultMiddleware, choices }) => {
|
266163
266906
|
const filteredChoices = filterRunningOnly ? choices.filter(({ value: middleware }) => middleware === undefined || middleware?.status === "COMPLETED") : choices;
|
266164
|
-
return
|
266907
|
+
return esm_default4({
|
266165
266908
|
message: "Which The Graph instance do you want to connect to?",
|
266166
266909
|
choices: filteredChoices,
|
266167
266910
|
default: defaultMiddleware
|
@@ -266217,7 +266960,7 @@ async function instancePrompt(env2, accept, freeTextInput = false, isCi = is_in_
|
|
266217
266960
|
if (knownInstances.length === 1) {
|
266218
266961
|
return sanitizeInstanceUrl(knownInstances[0]);
|
266219
266962
|
}
|
266220
|
-
return
|
266963
|
+
return esm_default4({
|
266221
266964
|
message: "What SettleMint instance do you want to connect to?",
|
266222
266965
|
choices: [
|
266223
266966
|
...knownInstances.map((instance) => ({
|
@@ -266243,7 +266986,7 @@ async function workspacePrompt(env2, workspaces, accept) {
|
|
266243
266986
|
if (is_in_ci_default) {
|
266244
266987
|
nothingSelectedError("workspace");
|
266245
266988
|
}
|
266246
|
-
const workspace = await
|
266989
|
+
const workspace = await esm_default4({
|
266247
266990
|
message: "Which workspace do you want to connect to?",
|
266248
266991
|
choices: workspaces.map((workspace2) => ({
|
266249
266992
|
name: `${workspace2.name} (${workspace2.uniqueName})`,
|
@@ -266629,7 +267372,7 @@ async function templatePrompt(platformConfig, argument) {
|
|
266629
267372
|
}
|
266630
267373
|
return template2;
|
266631
267374
|
}
|
266632
|
-
const template = await
|
267375
|
+
const template = await esm_default4({
|
266633
267376
|
message: "Which template do you want to use?",
|
266634
267377
|
choices: [
|
266635
267378
|
...kits.map((template2) => ({
|
@@ -266849,7 +267592,7 @@ var basename2 = function(p6, extension) {
|
|
266849
267592
|
return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
|
266850
267593
|
};
|
266851
267594
|
// ../../node_modules/defu/dist/defu.mjs
|
266852
|
-
function
|
267595
|
+
function isPlainObject4(value4) {
|
266853
267596
|
if (value4 === null || typeof value4 !== "object") {
|
266854
267597
|
return false;
|
266855
267598
|
}
|
@@ -266866,27 +267609,27 @@ function isPlainObject3(value4) {
|
|
266866
267609
|
return true;
|
266867
267610
|
}
|
266868
267611
|
function _defu(baseObject, defaults2, namespace = ".", merger) {
|
266869
|
-
if (!
|
267612
|
+
if (!isPlainObject4(defaults2)) {
|
266870
267613
|
return _defu(baseObject, {}, namespace, merger);
|
266871
267614
|
}
|
266872
267615
|
const object = Object.assign({}, defaults2);
|
266873
|
-
for (const
|
266874
|
-
if (
|
267616
|
+
for (const key3 in baseObject) {
|
267617
|
+
if (key3 === "__proto__" || key3 === "constructor") {
|
266875
267618
|
continue;
|
266876
267619
|
}
|
266877
|
-
const value4 = baseObject[
|
267620
|
+
const value4 = baseObject[key3];
|
266878
267621
|
if (value4 === null || value4 === undefined) {
|
266879
267622
|
continue;
|
266880
267623
|
}
|
266881
|
-
if (merger && merger(object,
|
267624
|
+
if (merger && merger(object, key3, value4, namespace)) {
|
266882
267625
|
continue;
|
266883
267626
|
}
|
266884
|
-
if (Array.isArray(value4) && Array.isArray(object[
|
266885
|
-
object[
|
266886
|
-
} else if (
|
266887
|
-
object[
|
267627
|
+
if (Array.isArray(value4) && Array.isArray(object[key3])) {
|
267628
|
+
object[key3] = [...value4, ...object[key3]];
|
267629
|
+
} else if (isPlainObject4(value4) && isPlainObject4(object[key3])) {
|
267630
|
+
object[key3] = _defu(value4, object[key3], (namespace ? `${namespace}.` : "") + key3.toString(), merger);
|
266888
267631
|
} else {
|
266889
|
-
object[
|
267632
|
+
object[key3] = value4;
|
266890
267633
|
}
|
266891
267634
|
}
|
266892
267635
|
return object;
|
@@ -266895,15 +267638,15 @@ function createDefu(merger) {
|
|
266895
267638
|
return (...arguments_4) => arguments_4.reduce((p6, c3) => _defu(p6, c3, "", merger), {});
|
266896
267639
|
}
|
266897
267640
|
var defu = createDefu();
|
266898
|
-
var defuFn = createDefu((object,
|
266899
|
-
if (object[
|
266900
|
-
object[
|
267641
|
+
var defuFn = createDefu((object, key3, currentValue) => {
|
267642
|
+
if (object[key3] !== undefined && typeof currentValue === "function") {
|
267643
|
+
object[key3] = currentValue(object[key3]);
|
266901
267644
|
return true;
|
266902
267645
|
}
|
266903
267646
|
});
|
266904
|
-
var defuArrayFn = createDefu((object,
|
266905
|
-
if (Array.isArray(object[
|
266906
|
-
object[
|
267647
|
+
var defuArrayFn = createDefu((object, key3, currentValue) => {
|
267648
|
+
if (Array.isArray(object[key3]) && typeof currentValue === "function") {
|
267649
|
+
object[key3] = currentValue(object[key3]);
|
266907
267650
|
return true;
|
266908
267651
|
}
|
266909
267652
|
});
|
@@ -269617,11 +270360,11 @@ function cacheDirectory() {
|
|
269617
270360
|
}
|
269618
270361
|
function normalizeHeaders(headers = {}) {
|
269619
270362
|
const normalized = {};
|
269620
|
-
for (const [
|
270363
|
+
for (const [key3, value4] of Object.entries(headers)) {
|
269621
270364
|
if (!value4) {
|
269622
270365
|
continue;
|
269623
270366
|
}
|
269624
|
-
normalized[
|
270367
|
+
normalized[key3.toLowerCase()] = value4;
|
269625
270368
|
}
|
269626
270369
|
return normalized;
|
269627
270370
|
}
|
@@ -269903,7 +270646,7 @@ function createCommand2() {
|
|
269903
270646
|
await mkdir6(projectDir, { recursive: true });
|
269904
270647
|
}
|
269905
270648
|
if (!await isEmpty(projectDir)) {
|
269906
|
-
const confirmEmpty = await
|
270649
|
+
const confirmEmpty = await esm_default5({
|
269907
270650
|
message: `The folder ${projectDir} already exists. Do you want to empty it?`,
|
269908
270651
|
default: false
|
269909
270652
|
});
|
@@ -269937,7 +270680,7 @@ async function personalAccessTokenPrompt(env2, instance, accept) {
|
|
269937
270680
|
return defaultPersonalAccessToken;
|
269938
270681
|
}
|
269939
270682
|
if (existingConfig && defaultPersonalAccessToken) {
|
269940
|
-
const useExisting = await
|
270683
|
+
const useExisting = await esm_default5({
|
269941
270684
|
message: `Do you want to use your existing personal access token for ${instance}?`,
|
269942
270685
|
default: true
|
269943
270686
|
});
|
@@ -269945,7 +270688,7 @@ async function personalAccessTokenPrompt(env2, instance, accept) {
|
|
269945
270688
|
return defaultPersonalAccessToken;
|
269946
270689
|
}
|
269947
270690
|
}
|
269948
|
-
return
|
270691
|
+
return esm_default6({
|
269949
270692
|
message: "What is your personal access token in SettleMint? (format: sm_pat_...)",
|
269950
270693
|
validate(value4) {
|
269951
270694
|
try {
|
@@ -270045,7 +270788,7 @@ function logoutCommand() {
|
|
270045
270788
|
}
|
270046
270789
|
const env2 = await loadEnv(false, false);
|
270047
270790
|
const defaultInstance = env2.SETTLEMINT_INSTANCE;
|
270048
|
-
const instance = await
|
270791
|
+
const instance = await esm_default4({
|
270049
270792
|
message: "Select the instance to logout from:",
|
270050
270793
|
choices: instances.map((instance2) => ({
|
270051
270794
|
value: instance2,
|
@@ -270135,7 +270878,7 @@ function pincodeVerificationResponseCommand() {
|
|
270135
270878
|
return nothingSelectedError("blockchain node");
|
270136
270879
|
}
|
270137
270880
|
}
|
270138
|
-
const pincode = await
|
270881
|
+
const pincode = await esm_default6({
|
270139
270882
|
message: "Enter your pincode",
|
270140
270883
|
validate(value4) {
|
270141
270884
|
if (!value4.trim()) {
|
@@ -270261,7 +271004,7 @@ async function providerPrompt(platformConfig, argument) {
|
|
270261
271004
|
if (possibleProviders.length === 1) {
|
270262
271005
|
return possibleProviders[0];
|
270263
271006
|
}
|
270264
|
-
const provider = await
|
271007
|
+
const provider = await esm_default4({
|
270265
271008
|
message: "Which provider do you want to use?",
|
270266
271009
|
choices: platformConfig.deploymentEngineTargets.map((target) => ({
|
270267
271010
|
name: target.name,
|
@@ -270292,7 +271035,7 @@ async function regionPrompt(provider, argument) {
|
|
270292
271035
|
if (possibleRegions.length === 1) {
|
270293
271036
|
return possibleRegions[0];
|
270294
271037
|
}
|
270295
|
-
const region = await
|
271038
|
+
const region = await esm_default4({
|
270296
271039
|
message: "Which region do you want to use?",
|
270297
271040
|
choices: provider.clusters.map((cluster) => ({
|
270298
271041
|
name: cluster.name,
|
@@ -270780,7 +271523,7 @@ async function blockchainNetworkPrompt({
|
|
270780
271523
|
envKey: "SETTLEMINT_BLOCKCHAIN_NETWORK",
|
270781
271524
|
isRequired,
|
270782
271525
|
defaultHandler: async ({ defaultService: defaultNetwork, choices }) => {
|
270783
|
-
return
|
271526
|
+
return esm_default4({
|
270784
271527
|
message: "Which blockchain network do you want to connect to?",
|
270785
271528
|
choices,
|
270786
271529
|
default: defaultNetwork
|
@@ -271864,7 +272607,7 @@ function jsonOutput(data) {
|
|
271864
272607
|
var composer = require_composer();
|
271865
272608
|
var Document = require_Document();
|
271866
272609
|
var Schema = require_Schema();
|
271867
|
-
var
|
272610
|
+
var errors3 = require_errors3();
|
271868
272611
|
var Alias = require_Alias();
|
271869
272612
|
var identity2 = require_identity();
|
271870
272613
|
var Pair = require_Pair();
|
@@ -271880,9 +272623,9 @@ var visit2 = require_visit();
|
|
271880
272623
|
var $Composer = composer.Composer;
|
271881
272624
|
var $Document = Document.Document;
|
271882
272625
|
var $Schema = Schema.Schema;
|
271883
|
-
var $YAMLError =
|
271884
|
-
var $YAMLParseError =
|
271885
|
-
var $YAMLWarning =
|
272626
|
+
var $YAMLError = errors3.YAMLError;
|
272627
|
+
var $YAMLParseError = errors3.YAMLParseError;
|
272628
|
+
var $YAMLWarning = errors3.YAMLWarning;
|
271886
272629
|
var $Alias = Alias.Alias;
|
271887
272630
|
var $isAlias = identity2.isAlias;
|
271888
272631
|
var $isCollection = identity2.isCollection;
|
@@ -272230,7 +272973,7 @@ async function getServicesAndMapResults({
|
|
272230
272973
|
const application = await settlemint.application.read(applicationUniqueName);
|
272231
272974
|
const services = await servicesSpinner(settlemint, applicationUniqueName, types2);
|
272232
272975
|
const results = (types2 ?? SERVICE_TYPES).filter((serviceType) => !types2 || types2.includes(serviceType)).map((serviceType) => {
|
272233
|
-
const [_6, labels] = Object.entries(LABELS_MAP).find(([
|
272976
|
+
const [_6, labels] = Object.entries(LABELS_MAP).find(([key3, value4]) => value4.command === serviceType) ?? [
|
272234
272977
|
null,
|
272235
272978
|
{ plural: serviceType }
|
272236
272979
|
];
|
@@ -272378,7 +273121,7 @@ async function useCasePrompt(platformConfig, argument) {
|
|
272378
273121
|
if (selectableUseCases.length === 1) {
|
272379
273122
|
return selectableUseCases[0];
|
272380
273123
|
}
|
272381
|
-
const useCase = await
|
273124
|
+
const useCase = await esm_default4({
|
272382
273125
|
message: "Which use case do you want to use?",
|
272383
273126
|
choices: selectableUseCases.map((useCase2) => ({
|
272384
273127
|
name: formatUseCaseName(useCase2.name),
|
@@ -272428,7 +273171,7 @@ function createCommand4() {
|
|
272428
273171
|
const targetDir = formatTargetDir(name3);
|
272429
273172
|
const projectDir = join10(process.cwd(), targetDir);
|
272430
273173
|
if (await exists3(projectDir) && !await isEmpty(projectDir)) {
|
272431
|
-
const confirmEmpty = await
|
273174
|
+
const confirmEmpty = await esm_default5({
|
272432
273175
|
message: `The folder ${projectDir} already exists. Do you want to delete it?`,
|
272433
273176
|
default: false
|
272434
273177
|
});
|
@@ -272458,11 +273201,11 @@ function createCommand4() {
|
|
272458
273201
|
|
272459
273202
|
// src/utils/commands/passthrough-options.ts
|
272460
273203
|
function mapPassthroughOptions(options, command) {
|
272461
|
-
const optionArgs = Object.entries(options).map(([
|
273204
|
+
const optionArgs = Object.entries(options).map(([key3, value4]) => {
|
272462
273205
|
if (value4 === true) {
|
272463
|
-
return `--${
|
273206
|
+
return `--${key3}`;
|
272464
273207
|
}
|
272465
|
-
return `--${
|
273208
|
+
return `--${key3}=${value4}`;
|
272466
273209
|
});
|
272467
273210
|
return [...optionArgs, ...command.args];
|
272468
273211
|
}
|
@@ -272669,7 +273412,7 @@ async function addressPrompt({
|
|
272669
273412
|
note(`Private key with address '${defaultAddress}' is not activated on the node '${node.uniqueName}'.
|
272670
273413
|
Please select another key or activate this key on the node and try again.`, "warn");
|
272671
273414
|
}
|
272672
|
-
const address = await
|
273415
|
+
const address = await esm_default4({
|
272673
273416
|
message: "Which private key do you want to deploy from?",
|
272674
273417
|
choices: possiblePrivateKeys.map(({ address: address2, name: name3 }) => ({
|
272675
273418
|
name: name3,
|
@@ -273473,4 +274216,4 @@ async function sdkCliCommand(argv = process.argv) {
|
|
273473
274216
|
// src/cli.ts
|
273474
274217
|
sdkCliCommand();
|
273475
274218
|
|
273476
|
-
//# debugId=
|
274219
|
+
//# debugId=DE30300DE392FD3764756E2164756E21
|