@settlemint/sdk-cli 1.0.5-prbafc120d → 1.0.5-pre7d08cee
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/README.md +0 -20
- package/dist/cli.js +255 -282
- package/dist/cli.js.map +14 -15
- package/package.json +3 -3
package/dist/cli.js
CHANGED
|
@@ -13822,10 +13822,10 @@ var require_source_map_support = __commonJS((exports, module) => {
|
|
|
13822
13822
|
return process.exit(code);
|
|
13823
13823
|
}
|
|
13824
13824
|
}
|
|
13825
|
-
function handlerExec(
|
|
13825
|
+
function handlerExec(list) {
|
|
13826
13826
|
return function(arg) {
|
|
13827
|
-
for (var i = 0;i <
|
|
13828
|
-
var ret =
|
|
13827
|
+
for (var i = 0;i < list.length; i++) {
|
|
13828
|
+
var ret = list[i](arg);
|
|
13829
13829
|
if (ret) {
|
|
13830
13830
|
return ret;
|
|
13831
13831
|
}
|
|
@@ -34433,8 +34433,8 @@ ${lanes.join(`
|
|
|
34433
34433
|
function getLinesBetweenRangeEndPositions(range1, range2, sourceFile) {
|
|
34434
34434
|
return getLinesBetweenPositions(sourceFile, range1.end, range2.end);
|
|
34435
34435
|
}
|
|
34436
|
-
function isNodeArrayMultiLine(
|
|
34437
|
-
return !positionsAreOnSameLine(
|
|
34436
|
+
function isNodeArrayMultiLine(list, sourceFile) {
|
|
34437
|
+
return !positionsAreOnSameLine(list.pos, list.end, sourceFile);
|
|
34438
34438
|
}
|
|
34439
34439
|
function positionsAreOnSameLine(pos1, pos2, sourceFile) {
|
|
34440
34440
|
return getLinesBetweenPositions(sourceFile, pos1, pos2) === 0;
|
|
@@ -46227,11 +46227,11 @@ ${lanes.join(`
|
|
|
46227
46227
|
function parseList(kind, parseElement) {
|
|
46228
46228
|
const saveParsingContext = parsingContext;
|
|
46229
46229
|
parsingContext |= 1 << kind;
|
|
46230
|
-
const
|
|
46230
|
+
const list = [];
|
|
46231
46231
|
const listPos = getNodePos();
|
|
46232
46232
|
while (!isListTerminator(kind)) {
|
|
46233
46233
|
if (isListElement2(kind, false)) {
|
|
46234
|
-
|
|
46234
|
+
list.push(parseListElement(kind, parseElement));
|
|
46235
46235
|
continue;
|
|
46236
46236
|
}
|
|
46237
46237
|
if (abortParsingListOrMoveToNextToken(kind)) {
|
|
@@ -46239,7 +46239,7 @@ ${lanes.join(`
|
|
|
46239
46239
|
}
|
|
46240
46240
|
}
|
|
46241
46241
|
parsingContext = saveParsingContext;
|
|
46242
|
-
return createNodeArray(
|
|
46242
|
+
return createNodeArray(list, listPos);
|
|
46243
46243
|
}
|
|
46244
46244
|
function parseListElement(parsingContext2, parseElement) {
|
|
46245
46245
|
const node = currentNode(parsingContext2);
|
|
@@ -46480,7 +46480,7 @@ ${lanes.join(`
|
|
|
46480
46480
|
function parseDelimitedList(kind, parseElement, considerSemicolonAsDelimiter) {
|
|
46481
46481
|
const saveParsingContext = parsingContext;
|
|
46482
46482
|
parsingContext |= 1 << kind;
|
|
46483
|
-
const
|
|
46483
|
+
const list = [];
|
|
46484
46484
|
const listPos = getNodePos();
|
|
46485
46485
|
let commaStart = -1;
|
|
46486
46486
|
while (true) {
|
|
@@ -46491,7 +46491,7 @@ ${lanes.join(`
|
|
|
46491
46491
|
parsingContext = saveParsingContext;
|
|
46492
46492
|
return;
|
|
46493
46493
|
}
|
|
46494
|
-
|
|
46494
|
+
list.push(result);
|
|
46495
46495
|
commaStart = scanner2.getTokenStart();
|
|
46496
46496
|
if (parseOptional(28)) {
|
|
46497
46497
|
continue;
|
|
@@ -46517,15 +46517,15 @@ ${lanes.join(`
|
|
|
46517
46517
|
}
|
|
46518
46518
|
}
|
|
46519
46519
|
parsingContext = saveParsingContext;
|
|
46520
|
-
return createNodeArray(
|
|
46520
|
+
return createNodeArray(list, listPos, undefined, commaStart >= 0);
|
|
46521
46521
|
}
|
|
46522
46522
|
function getExpectedCommaDiagnostic(kind) {
|
|
46523
46523
|
return kind === 6 ? Diagnostics.An_enum_member_name_must_be_followed_by_a_or : undefined;
|
|
46524
46524
|
}
|
|
46525
46525
|
function createMissingList() {
|
|
46526
|
-
const
|
|
46527
|
-
|
|
46528
|
-
return
|
|
46526
|
+
const list = createNodeArray([], getNodePos());
|
|
46527
|
+
list.isMissingList = true;
|
|
46528
|
+
return list;
|
|
46529
46529
|
}
|
|
46530
46530
|
function isMissingList(arr) {
|
|
46531
46531
|
return !!arr.isMissingList;
|
|
@@ -46570,13 +46570,13 @@ ${lanes.join(`
|
|
|
46570
46570
|
}
|
|
46571
46571
|
function parseTemplateSpans(isTaggedTemplate) {
|
|
46572
46572
|
const pos = getNodePos();
|
|
46573
|
-
const
|
|
46573
|
+
const list = [];
|
|
46574
46574
|
let node;
|
|
46575
46575
|
do {
|
|
46576
46576
|
node = parseTemplateSpan(isTaggedTemplate);
|
|
46577
|
-
|
|
46577
|
+
list.push(node);
|
|
46578
46578
|
} while (node.literal.kind === 17);
|
|
46579
|
-
return createNodeArray(
|
|
46579
|
+
return createNodeArray(list, pos);
|
|
46580
46580
|
}
|
|
46581
46581
|
function parseTemplateExpression(isTaggedTemplate) {
|
|
46582
46582
|
const pos = getNodePos();
|
|
@@ -46588,13 +46588,13 @@ ${lanes.join(`
|
|
|
46588
46588
|
}
|
|
46589
46589
|
function parseTemplateTypeSpans() {
|
|
46590
46590
|
const pos = getNodePos();
|
|
46591
|
-
const
|
|
46591
|
+
const list = [];
|
|
46592
46592
|
let node;
|
|
46593
46593
|
do {
|
|
46594
46594
|
node = parseTemplateTypeSpan();
|
|
46595
|
-
|
|
46595
|
+
list.push(node);
|
|
46596
46596
|
} while (node.literal.kind === 17);
|
|
46597
|
-
return createNodeArray(
|
|
46597
|
+
return createNodeArray(list, pos);
|
|
46598
46598
|
}
|
|
46599
46599
|
function parseTemplateTypeSpan() {
|
|
46600
46600
|
const pos = getNodePos();
|
|
@@ -48094,7 +48094,7 @@ ${lanes.join(`
|
|
|
48094
48094
|
}
|
|
48095
48095
|
}
|
|
48096
48096
|
function parseJsxChildren(openingTag) {
|
|
48097
|
-
const
|
|
48097
|
+
const list = [];
|
|
48098
48098
|
const listPos = getNodePos();
|
|
48099
48099
|
const saveParsingContext = parsingContext;
|
|
48100
48100
|
parsingContext |= 1 << 14;
|
|
@@ -48102,13 +48102,13 @@ ${lanes.join(`
|
|
|
48102
48102
|
const child = parseJsxChild(openingTag, currentToken = scanner2.reScanJsxToken());
|
|
48103
48103
|
if (!child)
|
|
48104
48104
|
break;
|
|
48105
|
-
|
|
48105
|
+
list.push(child);
|
|
48106
48106
|
if (isJsxOpeningElement(openingTag) && (child == null ? undefined : child.kind) === 284 && !tagNamesAreEquivalent(child.openingElement.tagName, child.closingElement.tagName) && tagNamesAreEquivalent(openingTag.tagName, child.closingElement.tagName)) {
|
|
48107
48107
|
break;
|
|
48108
48108
|
}
|
|
48109
48109
|
}
|
|
48110
48110
|
parsingContext = saveParsingContext;
|
|
48111
|
-
return createNodeArray(
|
|
48111
|
+
return createNodeArray(list, listPos);
|
|
48112
48112
|
}
|
|
48113
48113
|
function parseJsxAttributes() {
|
|
48114
48114
|
const pos = getNodePos();
|
|
@@ -49465,22 +49465,22 @@ ${lanes.join(`
|
|
|
49465
49465
|
}
|
|
49466
49466
|
function parseModifiers(allowDecorators, permitConstAsModifier, stopOnStartOfClassStaticBlock) {
|
|
49467
49467
|
const pos = getNodePos();
|
|
49468
|
-
let
|
|
49468
|
+
let list;
|
|
49469
49469
|
let decorator, modifier, hasSeenStaticModifier = false, hasLeadingModifier = false, hasTrailingDecorator = false;
|
|
49470
49470
|
if (allowDecorators && token() === 60) {
|
|
49471
49471
|
while (decorator = tryParseDecorator()) {
|
|
49472
|
-
|
|
49472
|
+
list = append(list, decorator);
|
|
49473
49473
|
}
|
|
49474
49474
|
}
|
|
49475
49475
|
while (modifier = tryParseModifier(hasSeenStaticModifier, permitConstAsModifier, stopOnStartOfClassStaticBlock)) {
|
|
49476
49476
|
if (modifier.kind === 126)
|
|
49477
49477
|
hasSeenStaticModifier = true;
|
|
49478
|
-
|
|
49478
|
+
list = append(list, modifier);
|
|
49479
49479
|
hasLeadingModifier = true;
|
|
49480
49480
|
}
|
|
49481
49481
|
if (hasLeadingModifier && allowDecorators && token() === 60) {
|
|
49482
49482
|
while (decorator = tryParseDecorator()) {
|
|
49483
|
-
|
|
49483
|
+
list = append(list, decorator);
|
|
49484
49484
|
hasTrailingDecorator = true;
|
|
49485
49485
|
}
|
|
49486
49486
|
}
|
|
@@ -49488,10 +49488,10 @@ ${lanes.join(`
|
|
|
49488
49488
|
while (modifier = tryParseModifier(hasSeenStaticModifier, permitConstAsModifier, stopOnStartOfClassStaticBlock)) {
|
|
49489
49489
|
if (modifier.kind === 126)
|
|
49490
49490
|
hasSeenStaticModifier = true;
|
|
49491
|
-
|
|
49491
|
+
list = append(list, modifier);
|
|
49492
49492
|
}
|
|
49493
49493
|
}
|
|
49494
|
-
return
|
|
49494
|
+
return list && createNodeArray(list, pos);
|
|
49495
49495
|
}
|
|
49496
49496
|
function parseModifiersForArrowFunction() {
|
|
49497
49497
|
let modifiers;
|
|
@@ -54059,14 +54059,14 @@ ${lanes.join(`
|
|
|
54059
54059
|
function getSubstitutedPathWithConfigDirTemplate(value, basePath) {
|
|
54060
54060
|
return getNormalizedAbsolutePath(value.replace(configDirTemplate, "./"), basePath);
|
|
54061
54061
|
}
|
|
54062
|
-
function getSubstitutedStringArrayWithConfigDirTemplate(
|
|
54063
|
-
if (!
|
|
54064
|
-
return
|
|
54062
|
+
function getSubstitutedStringArrayWithConfigDirTemplate(list, basePath) {
|
|
54063
|
+
if (!list)
|
|
54064
|
+
return list;
|
|
54065
54065
|
let result;
|
|
54066
|
-
|
|
54066
|
+
list.forEach((element, index) => {
|
|
54067
54067
|
if (!startsWithConfigDirTemplate(element))
|
|
54068
54068
|
return;
|
|
54069
|
-
(result ?? (result =
|
|
54069
|
+
(result ?? (result = list.slice()))[index] = getSubstitutedPathWithConfigDirTemplate(element, basePath);
|
|
54070
54070
|
});
|
|
54071
54071
|
return result;
|
|
54072
54072
|
}
|
|
@@ -70063,8 +70063,8 @@ ${lanes.join(`
|
|
|
70063
70063
|
}
|
|
70064
70064
|
}
|
|
70065
70065
|
function isTypeInvalidDueToUnionDiscriminant(contextualType, obj) {
|
|
70066
|
-
const
|
|
70067
|
-
return
|
|
70066
|
+
const list = obj.properties;
|
|
70067
|
+
return list.some((property) => {
|
|
70068
70068
|
const nameType = property.name && (isJsxNamespacedName(property.name) ? getStringLiteralType(getTextOfJsxAttributeName(property.name)) : getLiteralTypeFromPropertyName(property.name));
|
|
70069
70069
|
const name = nameType && isTypeUsableAsPropertyName(nameType) ? getPropertyNameFromType(nameType) : undefined;
|
|
70070
70070
|
const expected = name === undefined ? undefined : getTypeOfPropertyOfType(contextualType, name);
|
|
@@ -95838,8 +95838,8 @@ ${lanes.join(`
|
|
|
95838
95838
|
}
|
|
95839
95839
|
}
|
|
95840
95840
|
if (augmentations) {
|
|
95841
|
-
for (const
|
|
95842
|
-
for (const augmentation of
|
|
95841
|
+
for (const list of augmentations) {
|
|
95842
|
+
for (const augmentation of list) {
|
|
95843
95843
|
if (!isGlobalScopeAugmentation(augmentation.parent))
|
|
95844
95844
|
continue;
|
|
95845
95845
|
mergeModuleAugmentation(augmentation);
|
|
@@ -95869,8 +95869,8 @@ ${lanes.join(`
|
|
|
95869
95869
|
anyReadonlyArrayType = globalReadonlyArrayType ? createTypeFromGenericGlobalType(globalReadonlyArrayType, [anyType2]) : anyArrayType;
|
|
95870
95870
|
globalThisType = getGlobalTypeOrUndefined("ThisType", 1);
|
|
95871
95871
|
if (augmentations) {
|
|
95872
|
-
for (const
|
|
95873
|
-
for (const augmentation of
|
|
95872
|
+
for (const list of augmentations) {
|
|
95873
|
+
for (const augmentation of list) {
|
|
95874
95874
|
if (isGlobalScopeAugmentation(augmentation.parent))
|
|
95875
95875
|
continue;
|
|
95876
95876
|
mergeModuleAugmentation(augmentation);
|
|
@@ -95889,9 +95889,9 @@ ${lanes.join(`
|
|
|
95889
95889
|
}
|
|
95890
95890
|
});
|
|
95891
95891
|
} else {
|
|
95892
|
-
const
|
|
95893
|
-
diagnostics.add(addRelatedInfo(createDiagnosticForNode(firstFile, Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,
|
|
95894
|
-
diagnostics.add(addRelatedInfo(createDiagnosticForNode(secondFile, Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,
|
|
95892
|
+
const list = arrayFrom(conflictingSymbols.keys()).join(", ");
|
|
95893
|
+
diagnostics.add(addRelatedInfo(createDiagnosticForNode(firstFile, Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0, list), createDiagnosticForNode(secondFile, Diagnostics.Conflicts_are_in_this_file)));
|
|
95894
|
+
diagnostics.add(addRelatedInfo(createDiagnosticForNode(secondFile, Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0, list), createDiagnosticForNode(firstFile, Diagnostics.Conflicts_are_in_this_file)));
|
|
95895
95895
|
}
|
|
95896
95896
|
});
|
|
95897
95897
|
amalgamatedDuplicates = undefined;
|
|
@@ -96387,9 +96387,9 @@ ${lanes.join(`
|
|
|
96387
96387
|
}
|
|
96388
96388
|
return grammarErrorOnNode(asyncModifier, Diagnostics._0_modifier_cannot_be_used_here, "async");
|
|
96389
96389
|
}
|
|
96390
|
-
function checkGrammarForDisallowedTrailingComma(
|
|
96391
|
-
if (
|
|
96392
|
-
return grammarErrorAtPos(
|
|
96390
|
+
function checkGrammarForDisallowedTrailingComma(list, diag2 = Diagnostics.Trailing_comma_not_allowed) {
|
|
96391
|
+
if (list && list.hasTrailingComma) {
|
|
96392
|
+
return grammarErrorAtPos(list[0], list.end - ",".length, ",".length, diag2);
|
|
96393
96393
|
}
|
|
96394
96394
|
return false;
|
|
96395
96395
|
}
|
|
@@ -98738,22 +98738,22 @@ ${lanes.join(`
|
|
|
98738
98738
|
for (const mapping of getDecodedMappings()) {
|
|
98739
98739
|
if (!isSourceMappedPosition(mapping))
|
|
98740
98740
|
continue;
|
|
98741
|
-
let
|
|
98742
|
-
if (!
|
|
98743
|
-
lists[mapping.sourceIndex] =
|
|
98744
|
-
|
|
98741
|
+
let list = lists[mapping.sourceIndex];
|
|
98742
|
+
if (!list)
|
|
98743
|
+
lists[mapping.sourceIndex] = list = [];
|
|
98744
|
+
list.push(mapping);
|
|
98745
98745
|
}
|
|
98746
|
-
sourceMappings = lists.map((
|
|
98746
|
+
sourceMappings = lists.map((list) => sortAndDeduplicate(list, compareSourcePositions, sameMappedPosition));
|
|
98747
98747
|
}
|
|
98748
98748
|
return sourceMappings[sourceIndex];
|
|
98749
98749
|
}
|
|
98750
98750
|
function getGeneratedMappings() {
|
|
98751
98751
|
if (generatedMappings === undefined) {
|
|
98752
|
-
const
|
|
98752
|
+
const list = [];
|
|
98753
98753
|
for (const mapping of getDecodedMappings()) {
|
|
98754
|
-
|
|
98754
|
+
list.push(mapping);
|
|
98755
98755
|
}
|
|
98756
|
-
generatedMappings = sortAndDeduplicate(
|
|
98756
|
+
generatedMappings = sortAndDeduplicate(list, compareGeneratedPositions, sameMappedPosition);
|
|
98757
98757
|
}
|
|
98758
98758
|
return generatedMappings;
|
|
98759
98759
|
}
|
|
@@ -109075,9 +109075,9 @@ ${lanes.join(`
|
|
|
109075
109075
|
const newVariableDeclaration = factory2.createVariableDeclaration(temp);
|
|
109076
109076
|
setTextRange(newVariableDeclaration, node.variableDeclaration);
|
|
109077
109077
|
const vars = flattenDestructuringBinding(node.variableDeclaration, visitor, context, 0, temp);
|
|
109078
|
-
const
|
|
109079
|
-
setTextRange(
|
|
109080
|
-
const destructure = factory2.createVariableStatement(undefined,
|
|
109078
|
+
const list = factory2.createVariableDeclarationList(vars);
|
|
109079
|
+
setTextRange(list, node.variableDeclaration);
|
|
109080
|
+
const destructure = factory2.createVariableStatement(undefined, list);
|
|
109081
109081
|
updated = factory2.updateCatchClause(node, newVariableDeclaration, addStatementToStartOfBlock(node.block, destructure));
|
|
109082
109082
|
} else {
|
|
109083
109083
|
updated = visitEachChild(node, visitor, context);
|
|
@@ -131768,15 +131768,15 @@ ${lanes.join(`
|
|
|
131768
131768
|
return false;
|
|
131769
131769
|
}
|
|
131770
131770
|
function findListItemInfo(node) {
|
|
131771
|
-
const
|
|
131772
|
-
if (!
|
|
131771
|
+
const list = findContainingList(node);
|
|
131772
|
+
if (!list) {
|
|
131773
131773
|
return;
|
|
131774
131774
|
}
|
|
131775
|
-
const children =
|
|
131775
|
+
const children = list.getChildren();
|
|
131776
131776
|
const listItemIndex = indexOfNode(children, node);
|
|
131777
131777
|
return {
|
|
131778
131778
|
listItemIndex,
|
|
131779
|
-
list
|
|
131779
|
+
list
|
|
131780
131780
|
};
|
|
131781
131781
|
}
|
|
131782
131782
|
function hasChildOfKind(n, kind, sourceFile) {
|
|
@@ -142635,7 +142635,7 @@ ${newComment.split(`
|
|
|
142635
142635
|
}
|
|
142636
142636
|
}
|
|
142637
142637
|
function createSyntaxList(nodes, parent2) {
|
|
142638
|
-
const
|
|
142638
|
+
const list = createNode(352, nodes.pos, nodes.end, parent2);
|
|
142639
142639
|
const children = [];
|
|
142640
142640
|
let pos = nodes.pos;
|
|
142641
142641
|
for (const node of nodes) {
|
|
@@ -142644,8 +142644,8 @@ ${newComment.split(`
|
|
|
142644
142644
|
pos = node.end;
|
|
142645
142645
|
}
|
|
142646
142646
|
addSyntheticNodes(children, pos, nodes.end, parent2);
|
|
142647
|
-
|
|
142648
|
-
return
|
|
142647
|
+
list._children = children;
|
|
142648
|
+
return list;
|
|
142649
142649
|
}
|
|
142650
142650
|
var TokenOrIdentifierObject = class {
|
|
142651
142651
|
constructor(kind, pos, end) {
|
|
@@ -155993,25 +155993,25 @@ ${newComment.split(`
|
|
|
155993
155993
|
write();
|
|
155994
155994
|
}
|
|
155995
155995
|
}
|
|
155996
|
-
function printSnippetList(format2,
|
|
155997
|
-
const unescaped = printUnescapedSnippetList(format2,
|
|
155996
|
+
function printSnippetList(format2, list, sourceFile) {
|
|
155997
|
+
const unescaped = printUnescapedSnippetList(format2, list, sourceFile);
|
|
155998
155998
|
return escapes ? ts_textChanges_exports.applyChanges(unescaped, escapes) : unescaped;
|
|
155999
155999
|
}
|
|
156000
|
-
function printUnescapedSnippetList(format2,
|
|
156000
|
+
function printUnescapedSnippetList(format2, list, sourceFile) {
|
|
156001
156001
|
escapes = undefined;
|
|
156002
156002
|
writer.clear();
|
|
156003
|
-
printer.writeList(format2,
|
|
156003
|
+
printer.writeList(format2, list, sourceFile, writer);
|
|
156004
156004
|
return writer.getText();
|
|
156005
156005
|
}
|
|
156006
|
-
function printAndFormatSnippetList(format2,
|
|
156006
|
+
function printAndFormatSnippetList(format2, list, sourceFile, formatContext) {
|
|
156007
156007
|
const syntheticFile = {
|
|
156008
|
-
text: printUnescapedSnippetList(format2,
|
|
156008
|
+
text: printUnescapedSnippetList(format2, list, sourceFile),
|
|
156009
156009
|
getLineAndCharacterOfPosition(pos) {
|
|
156010
156010
|
return getLineAndCharacterOfPosition(this, pos);
|
|
156011
156011
|
}
|
|
156012
156012
|
};
|
|
156013
156013
|
const formatOptions = getFormatCodeSettingsForWriting(formatContext, sourceFile);
|
|
156014
|
-
const changes = flatMap(
|
|
156014
|
+
const changes = flatMap(list, (node) => {
|
|
156015
156015
|
const nodeWithPos = ts_textChanges_exports.assignPositionsToNode(node);
|
|
156016
156016
|
return ts_formatting_exports.formatNodeGivenIndentation(nodeWithPos, syntheticFile, sourceFile.languageVariant, 0, 0, { ...formatContext, options: formatOptions });
|
|
156017
156017
|
});
|
|
@@ -164289,17 +164289,17 @@ ${content}
|
|
|
164289
164289
|
const info = getArgumentOrParameterListAndIndex(node, sourceFile, checker);
|
|
164290
164290
|
if (!info)
|
|
164291
164291
|
return;
|
|
164292
|
-
const { list
|
|
164293
|
-
const argumentCount = getArgumentCount(checker,
|
|
164294
|
-
const argumentsSpan = getApplicableSpanForArguments(
|
|
164295
|
-
return { list
|
|
164292
|
+
const { list, argumentIndex } = info;
|
|
164293
|
+
const argumentCount = getArgumentCount(checker, list);
|
|
164294
|
+
const argumentsSpan = getApplicableSpanForArguments(list, sourceFile);
|
|
164295
|
+
return { list, argumentIndex, argumentCount, argumentsSpan };
|
|
164296
164296
|
}
|
|
164297
164297
|
function getArgumentOrParameterListAndIndex(node, sourceFile, checker) {
|
|
164298
164298
|
if (node.kind === 30 || node.kind === 21) {
|
|
164299
164299
|
return { list: getChildListThatStartsWithOpenerToken(node.parent, node, sourceFile), argumentIndex: 0 };
|
|
164300
164300
|
} else {
|
|
164301
|
-
const
|
|
164302
|
-
return
|
|
164301
|
+
const list = findContainingList(node);
|
|
164302
|
+
return list && { list, argumentIndex: getArgumentIndex(checker, list, node) };
|
|
164303
164303
|
}
|
|
164304
164304
|
}
|
|
164305
164305
|
function getImmediatelyContainingArgumentInfo(node, position, sourceFile, checker) {
|
|
@@ -164309,8 +164309,8 @@ ${content}
|
|
|
164309
164309
|
const info = getArgumentOrParameterListInfo(node, position, sourceFile, checker);
|
|
164310
164310
|
if (!info)
|
|
164311
164311
|
return;
|
|
164312
|
-
const { list
|
|
164313
|
-
const isTypeParameterList = !!parent2.typeArguments && parent2.typeArguments.pos ===
|
|
164312
|
+
const { list, argumentIndex, argumentCount, argumentsSpan } = info;
|
|
164313
|
+
const isTypeParameterList = !!parent2.typeArguments && parent2.typeArguments.pos === list.pos;
|
|
164314
164314
|
return { isTypeParameterList, invocation: { kind: 0, node: invocation }, argumentsSpan, argumentIndex, argumentCount };
|
|
164315
164315
|
} else if (isNoSubstitutionTemplateLiteral(node) && isTaggedTemplateExpression(parent2)) {
|
|
164316
164316
|
if (isInsideTemplateLiteral(node, position, sourceFile)) {
|
|
@@ -165962,8 +165962,8 @@ ${content}
|
|
|
165962
165962
|
const endPosition = this.insertNodeAfterWorker(sourceFile, after, newNode);
|
|
165963
165963
|
this.insertNodeAt(sourceFile, endPosition, newNode, this.getInsertNodeAfterOptions(sourceFile, after));
|
|
165964
165964
|
}
|
|
165965
|
-
insertNodeAtEndOfList(sourceFile,
|
|
165966
|
-
this.insertNodeAt(sourceFile,
|
|
165965
|
+
insertNodeAtEndOfList(sourceFile, list, newNode) {
|
|
165966
|
+
this.insertNodeAt(sourceFile, list.end, newNode, { prefix: ", " });
|
|
165967
165967
|
}
|
|
165968
165968
|
insertNodesAfter(sourceFile, after, newNodes) {
|
|
165969
165969
|
const endPosition = this.insertNodeAfterWorker(sourceFile, after, first(newNodes));
|
|
@@ -166117,12 +166117,12 @@ ${options.prefix}` : `
|
|
|
166117
166117
|
}
|
|
166118
166118
|
deletedNodesInLists.forEach((node) => {
|
|
166119
166119
|
const sourceFile = node.getSourceFile();
|
|
166120
|
-
const
|
|
166121
|
-
if (node !== last(
|
|
166120
|
+
const list = ts_formatting_exports.SmartIndenter.getContainingList(node, sourceFile);
|
|
166121
|
+
if (node !== last(list))
|
|
166122
166122
|
return;
|
|
166123
|
-
const lastNonDeletedIndex = findLastIndex(
|
|
166123
|
+
const lastNonDeletedIndex = findLastIndex(list, (n) => !deletedNodesInLists.has(n), list.length - 2);
|
|
166124
166124
|
if (lastNonDeletedIndex !== -1) {
|
|
166125
|
-
this.deleteRange(sourceFile, { pos:
|
|
166125
|
+
this.deleteRange(sourceFile, { pos: list[lastNonDeletedIndex].end, end: startPositionToDeleteNodeInList(sourceFile, list[lastNonDeletedIndex + 1]) });
|
|
166126
166126
|
}
|
|
166127
166127
|
});
|
|
166128
166128
|
}
|
|
@@ -168484,7 +168484,7 @@ ${options.prefix}` : `
|
|
|
168484
168484
|
const commentRanges = concatenate(trailingRangesOfPreviousToken, leadingCommentRangesOfNextToken);
|
|
168485
168485
|
return commentRanges && find(commentRanges, (range) => rangeContainsPositionExclusive(range, position) || position === range.end && (range.kind === 2 || position === sourceFile.getFullWidth()));
|
|
168486
168486
|
}
|
|
168487
|
-
function getOpenTokenForList(node,
|
|
168487
|
+
function getOpenTokenForList(node, list) {
|
|
168488
168488
|
switch (node.kind) {
|
|
168489
168489
|
case 176:
|
|
168490
168490
|
case 262:
|
|
@@ -168498,17 +168498,17 @@ ${options.prefix}` : `
|
|
|
168498
168498
|
case 185:
|
|
168499
168499
|
case 177:
|
|
168500
168500
|
case 178:
|
|
168501
|
-
if (node.typeParameters ===
|
|
168501
|
+
if (node.typeParameters === list) {
|
|
168502
168502
|
return 30;
|
|
168503
|
-
} else if (node.parameters ===
|
|
168503
|
+
} else if (node.parameters === list) {
|
|
168504
168504
|
return 21;
|
|
168505
168505
|
}
|
|
168506
168506
|
break;
|
|
168507
168507
|
case 213:
|
|
168508
168508
|
case 214:
|
|
168509
|
-
if (node.typeArguments ===
|
|
168509
|
+
if (node.typeArguments === list) {
|
|
168510
168510
|
return 30;
|
|
168511
|
-
} else if (node.arguments ===
|
|
168511
|
+
} else if (node.arguments === list) {
|
|
168512
168512
|
return 21;
|
|
168513
168513
|
}
|
|
168514
168514
|
break;
|
|
@@ -168516,7 +168516,7 @@ ${options.prefix}` : `
|
|
|
168516
168516
|
case 231:
|
|
168517
168517
|
case 264:
|
|
168518
168518
|
case 265:
|
|
168519
|
-
if (node.typeParameters ===
|
|
168519
|
+
if (node.typeParameters === list) {
|
|
168520
168520
|
return 30;
|
|
168521
168521
|
}
|
|
168522
168522
|
break;
|
|
@@ -168525,7 +168525,7 @@ ${options.prefix}` : `
|
|
|
168525
168525
|
case 186:
|
|
168526
168526
|
case 233:
|
|
168527
168527
|
case 205:
|
|
168528
|
-
if (node.typeArguments ===
|
|
168528
|
+
if (node.typeArguments === list) {
|
|
168529
168529
|
return 30;
|
|
168530
168530
|
}
|
|
168531
168531
|
break;
|
|
@@ -168858,24 +168858,24 @@ ${options.prefix}` : `
|
|
|
168858
168858
|
case 207:
|
|
168859
168859
|
return getList(node.elements);
|
|
168860
168860
|
}
|
|
168861
|
-
function getList(
|
|
168862
|
-
return
|
|
168861
|
+
function getList(list) {
|
|
168862
|
+
return list && rangeContainsStartEnd(getVisualListRange(node, list, sourceFile), start, end) ? list : undefined;
|
|
168863
168863
|
}
|
|
168864
168864
|
}
|
|
168865
|
-
function getVisualListRange(node,
|
|
168865
|
+
function getVisualListRange(node, list, sourceFile) {
|
|
168866
168866
|
const children = node.getChildren(sourceFile);
|
|
168867
168867
|
for (let i = 1;i < children.length - 1; i++) {
|
|
168868
|
-
if (children[i].pos ===
|
|
168868
|
+
if (children[i].pos === list.pos && children[i].end === list.end) {
|
|
168869
168869
|
return { pos: children[i - 1].end, end: children[i + 1].getStart(sourceFile) };
|
|
168870
168870
|
}
|
|
168871
168871
|
}
|
|
168872
|
-
return
|
|
168872
|
+
return list;
|
|
168873
168873
|
}
|
|
168874
|
-
function getActualIndentationForListStartLine(
|
|
168875
|
-
if (!
|
|
168874
|
+
function getActualIndentationForListStartLine(list, sourceFile, options) {
|
|
168875
|
+
if (!list) {
|
|
168876
168876
|
return -1;
|
|
168877
168877
|
}
|
|
168878
|
-
return findColumnForFirstNonWhitespaceCharacterInLine(sourceFile.getLineAndCharacterOfPosition(
|
|
168878
|
+
return findColumnForFirstNonWhitespaceCharacterInLine(sourceFile.getLineAndCharacterOfPosition(list.pos), sourceFile, options);
|
|
168879
168879
|
}
|
|
168880
168880
|
function getActualIndentationForListItem(node, sourceFile, options, listIndentsChild) {
|
|
168881
168881
|
if (node.parent && node.parent.kind === 261) {
|
|
@@ -168894,19 +168894,19 @@ ${options.prefix}` : `
|
|
|
168894
168894
|
}
|
|
168895
168895
|
return -1;
|
|
168896
168896
|
}
|
|
168897
|
-
function deriveActualIndentationFromList(
|
|
168898
|
-
Debug.assert(index >= 0 && index <
|
|
168899
|
-
const node =
|
|
168897
|
+
function deriveActualIndentationFromList(list, index, sourceFile, options) {
|
|
168898
|
+
Debug.assert(index >= 0 && index < list.length);
|
|
168899
|
+
const node = list[index];
|
|
168900
168900
|
let lineAndCharacter = getStartLineAndCharacterForNode(node, sourceFile);
|
|
168901
168901
|
for (let i = index - 1;i >= 0; i--) {
|
|
168902
|
-
if (
|
|
168902
|
+
if (list[i].kind === 28) {
|
|
168903
168903
|
continue;
|
|
168904
168904
|
}
|
|
168905
|
-
const prevEndLine = sourceFile.getLineAndCharacterOfPosition(
|
|
168905
|
+
const prevEndLine = sourceFile.getLineAndCharacterOfPosition(list[i].end).line;
|
|
168906
168906
|
if (prevEndLine !== lineAndCharacter.line) {
|
|
168907
168907
|
return findColumnForFirstNonWhitespaceCharacterInLine(lineAndCharacter, sourceFile, options);
|
|
168908
168908
|
}
|
|
168909
|
-
lineAndCharacter = getStartLineAndCharacterForNode(
|
|
168909
|
+
lineAndCharacter = getStartLineAndCharacterForNode(list[i], sourceFile);
|
|
168910
168910
|
}
|
|
168911
168911
|
return -1;
|
|
168912
168912
|
}
|
|
@@ -184039,9 +184039,9 @@ var require_keyMap = __commonJS((exports) => {
|
|
|
184039
184039
|
value: true
|
|
184040
184040
|
});
|
|
184041
184041
|
exports.keyMap = keyMap;
|
|
184042
|
-
function keyMap(
|
|
184042
|
+
function keyMap(list, keyFn) {
|
|
184043
184043
|
const result = Object.create(null);
|
|
184044
|
-
for (const item of
|
|
184044
|
+
for (const item of list) {
|
|
184045
184045
|
result[keyFn(item)] = item;
|
|
184046
184046
|
}
|
|
184047
184047
|
return result;
|
|
@@ -184054,9 +184054,9 @@ var require_keyValMap = __commonJS((exports) => {
|
|
|
184054
184054
|
value: true
|
|
184055
184055
|
});
|
|
184056
184056
|
exports.keyValMap = keyValMap;
|
|
184057
|
-
function keyValMap(
|
|
184057
|
+
function keyValMap(list, keyFn, valFn) {
|
|
184058
184058
|
const result = Object.create(null);
|
|
184059
|
-
for (const item of
|
|
184059
|
+
for (const item of list) {
|
|
184060
184060
|
result[keyFn(item)] = valFn(item);
|
|
184061
184061
|
}
|
|
184062
184062
|
return result;
|
|
@@ -189421,9 +189421,9 @@ var require_groupBy = __commonJS((exports) => {
|
|
|
189421
189421
|
value: true
|
|
189422
189422
|
});
|
|
189423
189423
|
exports.groupBy = groupBy;
|
|
189424
|
-
function groupBy(
|
|
189424
|
+
function groupBy(list, keyFn) {
|
|
189425
189425
|
const result = new Map;
|
|
189426
|
-
for (const item of
|
|
189426
|
+
for (const item of list) {
|
|
189427
189427
|
const key = keyFn(item);
|
|
189428
189428
|
const group = result.get(key);
|
|
189429
189429
|
if (group === undefined) {
|
|
@@ -199618,7 +199618,7 @@ function opt(e4) {
|
|
|
199618
199618
|
ofRule: e4
|
|
199619
199619
|
};
|
|
199620
199620
|
}
|
|
199621
|
-
function
|
|
199621
|
+
function list(e4, t4) {
|
|
199622
199622
|
return {
|
|
199623
199623
|
ofRule: e4,
|
|
199624
199624
|
isList: true,
|
|
@@ -201853,7 +201853,7 @@ var init_api_chunk = __esm(() => {
|
|
|
201853
201853
|
Comment: /^#.*/
|
|
201854
201854
|
};
|
|
201855
201855
|
k2 = {
|
|
201856
|
-
Document: [
|
|
201856
|
+
Document: [list("Definition")],
|
|
201857
201857
|
Definition(t4) {
|
|
201858
201858
|
switch (t4.value) {
|
|
201859
201859
|
case "{":
|
|
@@ -201887,21 +201887,21 @@ var init_api_chunk = __esm(() => {
|
|
|
201887
201887
|
}
|
|
201888
201888
|
},
|
|
201889
201889
|
ShortQuery: ["SelectionSet"],
|
|
201890
|
-
Query: [word("query"), opt(name$1("def")), opt("VariableDefinitions"),
|
|
201891
|
-
Mutation: [word("mutation"), opt(name$1("def")), opt("VariableDefinitions"),
|
|
201892
|
-
Subscription: [word("subscription"), opt(name$1("def")), opt("VariableDefinitions"),
|
|
201893
|
-
VariableDefinitions: [p$1("("),
|
|
201890
|
+
Query: [word("query"), opt(name$1("def")), opt("VariableDefinitions"), list("Directive"), "SelectionSet"],
|
|
201891
|
+
Mutation: [word("mutation"), opt(name$1("def")), opt("VariableDefinitions"), list("Directive"), "SelectionSet"],
|
|
201892
|
+
Subscription: [word("subscription"), opt(name$1("def")), opt("VariableDefinitions"), list("Directive"), "SelectionSet"],
|
|
201893
|
+
VariableDefinitions: [p$1("("), list("VariableDefinition"), p$1(")")],
|
|
201894
201894
|
VariableDefinition: ["Variable", p$1(":"), "Type", opt("DefaultValue")],
|
|
201895
201895
|
Variable: [p$1("$", "variable"), name$1("variable")],
|
|
201896
201896
|
DefaultValue: [p$1("="), "Value"],
|
|
201897
|
-
SelectionSet: [p$1("{"),
|
|
201897
|
+
SelectionSet: [p$1("{"), list("Selection"), p$1("}")],
|
|
201898
201898
|
Selection: (e4, t4) => e4.value === "..." ? t4.match(/[\s\u00a0,]*(on\b|@|{)/, false) ? "InlineFragment" : "FragmentSpread" : t4.match(/[\s\u00a0,]*:/, false) ? "AliasedField" : "Field",
|
|
201899
|
-
AliasedField: [name$1("property"), p$1(":"), name$1("qualifier"), opt("Arguments"),
|
|
201900
|
-
Field: [name$1("property"), opt("Arguments"),
|
|
201901
|
-
Arguments: [p$1("("),
|
|
201899
|
+
AliasedField: [name$1("property"), p$1(":"), name$1("qualifier"), opt("Arguments"), list("Directive"), opt("SelectionSet")],
|
|
201900
|
+
Field: [name$1("property"), opt("Arguments"), list("Directive"), opt("SelectionSet")],
|
|
201901
|
+
Arguments: [p$1("("), list("Argument"), p$1(")")],
|
|
201902
201902
|
Argument: [name$1("attribute"), p$1(":"), "Value"],
|
|
201903
|
-
FragmentSpread: [p$1("..."), name$1("def"),
|
|
201904
|
-
InlineFragment: [p$1("..."), opt("TypeCondition"),
|
|
201903
|
+
FragmentSpread: [p$1("..."), name$1("def"), list("Directive")],
|
|
201904
|
+
InlineFragment: [p$1("..."), opt("TypeCondition"), list("Directive"), "SelectionSet"],
|
|
201905
201905
|
FragmentDefinition: [word("fragment"), opt(function butNot(e4, t4) {
|
|
201906
201906
|
var i4 = e4.match;
|
|
201907
201907
|
e4.match = (e5) => {
|
|
@@ -201912,7 +201912,7 @@ var init_api_chunk = __esm(() => {
|
|
|
201912
201912
|
return r4 && t4.every((t5) => t5.match && !t5.match(e5));
|
|
201913
201913
|
};
|
|
201914
201914
|
return e4;
|
|
201915
|
-
}(name$1("def"), [word("on")])), "TypeCondition",
|
|
201915
|
+
}(name$1("def"), [word("on")])), "TypeCondition", list("Directive"), "SelectionSet"],
|
|
201916
201916
|
TypeCondition: [word("on"), "NamedType"],
|
|
201917
201917
|
Value(e4) {
|
|
201918
201918
|
switch (e4.kind) {
|
|
@@ -201957,8 +201957,8 @@ var init_api_chunk = __esm(() => {
|
|
|
201957
201957
|
BooleanValue: [t$1("Name", "builtin")],
|
|
201958
201958
|
NullValue: [t$1("Name", "keyword")],
|
|
201959
201959
|
EnumValue: [name$1("string-2")],
|
|
201960
|
-
ListValue: [p$1("["),
|
|
201961
|
-
ObjectValue: [p$1("{"),
|
|
201960
|
+
ListValue: [p$1("["), list("Value"), p$1("]")],
|
|
201961
|
+
ObjectValue: [p$1("{"), list("ObjectField"), p$1("}")],
|
|
201962
201962
|
ObjectField: [name$1("attribute"), p$1(":"), "Value"],
|
|
201963
201963
|
Type: (e4) => e4.value === "[" ? "ListType" : "NonNullType",
|
|
201964
201964
|
ListType: [p$1("["), "Type", p$1("]"), opt(p$1("!"))],
|
|
@@ -201977,22 +201977,22 @@ var init_api_chunk = __esm(() => {
|
|
|
201977
201977
|
};
|
|
201978
201978
|
}("atom")],
|
|
201979
201979
|
Directive: [p$1("@", "meta"), name$1("meta"), opt("Arguments")],
|
|
201980
|
-
DirectiveDef: [word("directive"), p$1("@", "meta"), name$1("meta"), opt("ArgumentsDef"), word("on"),
|
|
201981
|
-
InterfaceDef: [word("interface"), name$1("atom"), opt("Implements"),
|
|
201982
|
-
Implements: [word("implements"),
|
|
201980
|
+
DirectiveDef: [word("directive"), p$1("@", "meta"), name$1("meta"), opt("ArgumentsDef"), word("on"), list("DirectiveLocation", p$1("|"))],
|
|
201981
|
+
InterfaceDef: [word("interface"), name$1("atom"), opt("Implements"), list("Directive"), p$1("{"), list("FieldDef"), p$1("}")],
|
|
201982
|
+
Implements: [word("implements"), list("NamedType", p$1("&"))],
|
|
201983
201983
|
DirectiveLocation: [name$1("string-2")],
|
|
201984
|
-
SchemaDef: [word("schema"),
|
|
201984
|
+
SchemaDef: [word("schema"), list("Directive"), p$1("{"), list("OperationTypeDef"), p$1("}")],
|
|
201985
201985
|
OperationTypeDef: [name$1("keyword"), p$1(":"), name$1("atom")],
|
|
201986
|
-
ScalarDef: [word("scalar"), name$1("atom"),
|
|
201987
|
-
ObjectTypeDef: [word("type"), name$1("atom"), opt("Implements"),
|
|
201988
|
-
FieldDef: [name$1("property"), opt("ArgumentsDef"), p$1(":"), "Type",
|
|
201989
|
-
ArgumentsDef: [p$1("("),
|
|
201990
|
-
InputValueDef: [name$1("attribute"), p$1(":"), "Type", opt("DefaultValue"),
|
|
201991
|
-
UnionDef: [word("union"), name$1("atom"),
|
|
201986
|
+
ScalarDef: [word("scalar"), name$1("atom"), list("Directive")],
|
|
201987
|
+
ObjectTypeDef: [word("type"), name$1("atom"), opt("Implements"), list("Directive"), p$1("{"), list("FieldDef"), p$1("}")],
|
|
201988
|
+
FieldDef: [name$1("property"), opt("ArgumentsDef"), p$1(":"), "Type", list("Directive")],
|
|
201989
|
+
ArgumentsDef: [p$1("("), list("InputValueDef"), p$1(")")],
|
|
201990
|
+
InputValueDef: [name$1("attribute"), p$1(":"), "Type", opt("DefaultValue"), list("Directive")],
|
|
201991
|
+
UnionDef: [word("union"), name$1("atom"), list("Directive"), p$1("="), list("UnionMember", p$1("|"))],
|
|
201992
201992
|
UnionMember: ["NamedType"],
|
|
201993
|
-
EnumDef: [word("enum"), name$1("atom"),
|
|
201994
|
-
EnumValueDef: [name$1("string-2"),
|
|
201995
|
-
InputDef: [word("input"), name$1("atom"),
|
|
201993
|
+
EnumDef: [word("enum"), name$1("atom"), list("Directive"), p$1("{"), list("EnumValueDef"), p$1("}")],
|
|
201994
|
+
EnumValueDef: [name$1("string-2"), list("Directive")],
|
|
201995
|
+
InputDef: [word("input"), name$1("atom"), list("Directive"), p$1("{"), list("InputValueDef"), p$1("}")],
|
|
201996
201996
|
ExtendDef: [word("extend"), "ExtensionDefinition"],
|
|
201997
201997
|
ExtensionDefinition(t4) {
|
|
201998
201998
|
switch (t4.value) {
|
|
@@ -209465,7 +209465,7 @@ ${Bt.cyan(Yt)}
|
|
|
209465
209465
|
code: "ENOENT"
|
|
209466
209466
|
}), getPathInfo = (e9, t7) => {
|
|
209467
209467
|
var r6 = t7.colon || or;
|
|
209468
|
-
var i6 = e9.match(/\//) || nr && e9.match(/\\/) ? [""] : [...nr ? [process.cwd()] : [], ...(t7.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.13.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.
|
|
209468
|
+
var i6 = e9.match(/\//) || nr && e9.match(/\\/) ? [""] : [...nr ? [process.cwd()] : [], ...(t7.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.13.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.p404iHU69j:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin").split(r6)];
|
|
209469
209469
|
var n6 = nr ? t7.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
|
|
209470
209470
|
var a5 = nr ? n6.split(r6) : [""];
|
|
209471
209471
|
if (nr) {
|
|
@@ -212602,7 +212602,7 @@ ${whileRunning(e9)}`;
|
|
|
212602
212602
|
};
|
|
212603
212603
|
ni = Object.assign(async function _main() {
|
|
212604
212604
|
var e9 = new Cli({
|
|
212605
|
-
binaryVersion: "1.0.5-
|
|
212605
|
+
binaryVersion: "1.0.5-pre7d08cee",
|
|
212606
212606
|
binaryLabel: "gql.tada CLI",
|
|
212607
212607
|
binaryName: "gql.tada"
|
|
212608
212608
|
});
|
|
@@ -215627,7 +215627,7 @@ var require_commonjs2 = __commonJS((exports) => {
|
|
|
215627
215627
|
defaults: (options) => orig.defaults(ext2(def, options)),
|
|
215628
215628
|
makeRe: (pattern, options = {}) => orig.makeRe(pattern, ext2(def, options)),
|
|
215629
215629
|
braceExpand: (pattern, options = {}) => orig.braceExpand(pattern, ext2(def, options)),
|
|
215630
|
-
match: (
|
|
215630
|
+
match: (list2, pattern, options = {}) => orig.match(list2, pattern, ext2(def, options)),
|
|
215631
215631
|
sep: orig.sep,
|
|
215632
215632
|
GLOBSTAR: exports.GLOBSTAR
|
|
215633
215633
|
});
|
|
@@ -215646,13 +215646,13 @@ var require_commonjs2 = __commonJS((exports) => {
|
|
|
215646
215646
|
var makeRe2 = (pattern, options = {}) => new Minimatch2(pattern, options).makeRe();
|
|
215647
215647
|
exports.makeRe = makeRe2;
|
|
215648
215648
|
exports.minimatch.makeRe = exports.makeRe;
|
|
215649
|
-
var match2 = (
|
|
215649
|
+
var match2 = (list2, pattern, options = {}) => {
|
|
215650
215650
|
const mm = new Minimatch2(pattern, options);
|
|
215651
|
-
|
|
215652
|
-
if (mm.options.nonull && !
|
|
215653
|
-
|
|
215651
|
+
list2 = list2.filter((f5) => mm.match(f5));
|
|
215652
|
+
if (mm.options.nonull && !list2.length) {
|
|
215653
|
+
list2.push(pattern);
|
|
215654
215654
|
}
|
|
215655
|
-
return
|
|
215655
|
+
return list2;
|
|
215656
215656
|
};
|
|
215657
215657
|
exports.match = match2;
|
|
215658
215658
|
exports.minimatch.match = exports.match;
|
|
@@ -220192,7 +220192,7 @@ var require_lib4 = __commonJS((exports, module) => {
|
|
|
220192
220192
|
var rRel = new RegExp(`^\\.${rSlash.source}`);
|
|
220193
220193
|
var getNotFoundError2 = (cmd2) => Object.assign(new Error(`not found: ${cmd2}`), { code: "ENOENT" });
|
|
220194
220194
|
var getPathInfo2 = (cmd2, {
|
|
220195
|
-
path: optPath = "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.13.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.
|
|
220195
|
+
path: optPath = "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.13.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.p404iHU69j:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",
|
|
220196
220196
|
pathExt: optPathExt = process.env.PATHEXT,
|
|
220197
220197
|
delimiter: optDelimiter = delimiter
|
|
220198
220198
|
}) => {
|
|
@@ -220396,7 +220396,7 @@ var require_lib5 = __commonJS((exports, module) => {
|
|
|
220396
220396
|
let pathToInitial;
|
|
220397
220397
|
try {
|
|
220398
220398
|
pathToInitial = which.sync(initialCmd, {
|
|
220399
|
-
path: options.env && findInObject(options.env, "PATH") || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.13.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.
|
|
220399
|
+
path: options.env && findInObject(options.env, "PATH") || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.13.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.p404iHU69j:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",
|
|
220400
220400
|
pathext: options.env && findInObject(options.env, "PATHEXT") || process.env.PATHEXT
|
|
220401
220401
|
}).toLowerCase();
|
|
220402
220402
|
} catch (err) {
|
|
@@ -221113,7 +221113,7 @@ var require_lib6 = __commonJS((exports, module) => {
|
|
|
221113
221113
|
var rRel = new RegExp(`^\\.${rSlash.source}`);
|
|
221114
221114
|
var getNotFoundError2 = (cmd2) => Object.assign(new Error(`not found: ${cmd2}`), { code: "ENOENT" });
|
|
221115
221115
|
var getPathInfo2 = (cmd2, {
|
|
221116
|
-
path: optPath = "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.13.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.
|
|
221116
|
+
path: optPath = "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.13.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.p404iHU69j:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",
|
|
221117
221117
|
pathExt: optPathExt = process.env.PATHEXT,
|
|
221118
221118
|
delimiter: optDelimiter = delimiter
|
|
221119
221119
|
}) => {
|
|
@@ -221371,14 +221371,14 @@ var require_compare_build = __commonJS((exports, module) => {
|
|
|
221371
221371
|
// ../../node_modules/semver/functions/sort.js
|
|
221372
221372
|
var require_sort = __commonJS((exports, module) => {
|
|
221373
221373
|
var compareBuild = require_compare_build();
|
|
221374
|
-
var sort = (
|
|
221374
|
+
var sort = (list2, loose) => list2.sort((a5, b4) => compareBuild(a5, b4, loose));
|
|
221375
221375
|
module.exports = sort;
|
|
221376
221376
|
});
|
|
221377
221377
|
|
|
221378
221378
|
// ../../node_modules/semver/functions/rsort.js
|
|
221379
221379
|
var require_rsort = __commonJS((exports, module) => {
|
|
221380
221380
|
var compareBuild = require_compare_build();
|
|
221381
|
-
var rsort = (
|
|
221381
|
+
var rsort = (list2, loose) => list2.sort((a5, b4) => compareBuild(b4, a5, loose));
|
|
221382
221382
|
module.exports = rsort;
|
|
221383
221383
|
});
|
|
221384
221384
|
|
|
@@ -223384,16 +223384,16 @@ var require_lib8 = __commonJS((exports, module) => {
|
|
|
223384
223384
|
});
|
|
223385
223385
|
}
|
|
223386
223386
|
};
|
|
223387
|
-
var checkList = (value4,
|
|
223388
|
-
if (typeof
|
|
223389
|
-
|
|
223387
|
+
var checkList = (value4, list2) => {
|
|
223388
|
+
if (typeof list2 === "string") {
|
|
223389
|
+
list2 = [list2];
|
|
223390
223390
|
}
|
|
223391
|
-
if (
|
|
223391
|
+
if (list2.length === 1 && list2[0] === "any") {
|
|
223392
223392
|
return true;
|
|
223393
223393
|
}
|
|
223394
223394
|
let negated = 0;
|
|
223395
223395
|
let match2 = false;
|
|
223396
|
-
for (const entry of
|
|
223396
|
+
for (const entry of list2) {
|
|
223397
223397
|
const negate = entry.charAt(0) === "!";
|
|
223398
223398
|
const test = negate ? entry.slice(1) : entry;
|
|
223399
223399
|
if (negate) {
|
|
@@ -223405,7 +223405,7 @@ var require_lib8 = __commonJS((exports, module) => {
|
|
|
223405
223405
|
match2 = match2 || value4 === test;
|
|
223406
223406
|
}
|
|
223407
223407
|
}
|
|
223408
|
-
return match2 || negated ===
|
|
223408
|
+
return match2 || negated === list2.length;
|
|
223409
223409
|
};
|
|
223410
223410
|
module.exports = {
|
|
223411
223411
|
checkEngine,
|
|
@@ -228068,15 +228068,15 @@ class Emitter2 {
|
|
|
228068
228068
|
this.listeners[ev].push(fn);
|
|
228069
228069
|
}
|
|
228070
228070
|
removeListener(ev, fn) {
|
|
228071
|
-
const
|
|
228072
|
-
const i6 =
|
|
228071
|
+
const list2 = this.listeners[ev];
|
|
228072
|
+
const i6 = list2.indexOf(fn);
|
|
228073
228073
|
if (i6 === -1) {
|
|
228074
228074
|
return;
|
|
228075
228075
|
}
|
|
228076
|
-
if (i6 === 0 &&
|
|
228077
|
-
|
|
228076
|
+
if (i6 === 0 && list2.length === 1) {
|
|
228077
|
+
list2.length = 0;
|
|
228078
228078
|
} else {
|
|
228079
|
-
|
|
228079
|
+
list2.splice(i6, 1);
|
|
228080
228080
|
}
|
|
228081
228081
|
}
|
|
228082
228082
|
emit(ev, code2, signal) {
|
|
@@ -230970,7 +230970,7 @@ var require_yallist = __commonJS((exports, module) => {
|
|
|
230970
230970
|
module.exports = Yallist;
|
|
230971
230971
|
Yallist.Node = Node2;
|
|
230972
230972
|
Yallist.create = Yallist;
|
|
230973
|
-
function Yallist(
|
|
230973
|
+
function Yallist(list2) {
|
|
230974
230974
|
var self2 = this;
|
|
230975
230975
|
if (!(self2 instanceof Yallist)) {
|
|
230976
230976
|
self2 = new Yallist;
|
|
@@ -230978,8 +230978,8 @@ var require_yallist = __commonJS((exports, module) => {
|
|
|
230978
230978
|
self2.tail = null;
|
|
230979
230979
|
self2.head = null;
|
|
230980
230980
|
self2.length = 0;
|
|
230981
|
-
if (
|
|
230982
|
-
|
|
230981
|
+
if (list2 && typeof list2.forEach === "function") {
|
|
230982
|
+
list2.forEach(function(item) {
|
|
230983
230983
|
self2.push(item);
|
|
230984
230984
|
});
|
|
230985
230985
|
} else if (arguments.length > 0) {
|
|
@@ -231306,11 +231306,11 @@ var require_yallist = __commonJS((exports, module) => {
|
|
|
231306
231306
|
}
|
|
231307
231307
|
self2.length++;
|
|
231308
231308
|
}
|
|
231309
|
-
function Node2(value4, prev, next,
|
|
231309
|
+
function Node2(value4, prev, next, list2) {
|
|
231310
231310
|
if (!(this instanceof Node2)) {
|
|
231311
|
-
return new Node2(value4, prev, next,
|
|
231311
|
+
return new Node2(value4, prev, next, list2);
|
|
231312
231312
|
}
|
|
231313
|
-
this.list =
|
|
231313
|
+
this.list = list2;
|
|
231314
231314
|
this.value = value4;
|
|
231315
231315
|
if (prev) {
|
|
231316
231316
|
prev.next = this;
|
|
@@ -233025,7 +233025,7 @@ var require_list = __commonJS((exports, module) => {
|
|
|
233025
233025
|
if (!opt2.noResume) {
|
|
233026
233026
|
onentryFunction(opt2);
|
|
233027
233027
|
}
|
|
233028
|
-
return opt2.file && opt2.sync ? listFileSync(opt2) : opt2.file ? listFile(opt2, cb) :
|
|
233028
|
+
return opt2.file && opt2.sync ? listFileSync(opt2) : opt2.file ? listFile(opt2, cb) : list2(opt2);
|
|
233029
233029
|
};
|
|
233030
233030
|
var onentryFunction = (opt2) => {
|
|
233031
233031
|
const onentry = opt2.onentry;
|
|
@@ -233046,7 +233046,7 @@ var require_list = __commonJS((exports, module) => {
|
|
|
233046
233046
|
opt2.filter = filter4 ? (file, entry) => filter4(file, entry) && mapHas(stripSlash(file)) : (file) => mapHas(stripSlash(file));
|
|
233047
233047
|
};
|
|
233048
233048
|
var listFileSync = (opt2) => {
|
|
233049
|
-
const p5 =
|
|
233049
|
+
const p5 = list2(opt2);
|
|
233050
233050
|
const file = opt2.file;
|
|
233051
233051
|
let threw = true;
|
|
233052
233052
|
let fd;
|
|
@@ -233098,7 +233098,7 @@ var require_list = __commonJS((exports, module) => {
|
|
|
233098
233098
|
});
|
|
233099
233099
|
return cb ? p5.then(cb, cb) : p5;
|
|
233100
233100
|
};
|
|
233101
|
-
var
|
|
233101
|
+
var list2 = (opt2) => new Parser(opt2);
|
|
233102
233102
|
});
|
|
233103
233103
|
|
|
233104
233104
|
// ../../node_modules/tar/lib/create.js
|
|
@@ -234988,7 +234988,7 @@ var require_which2 = __commonJS((exports, module) => {
|
|
|
234988
234988
|
const colon = opt2.colon || COLON;
|
|
234989
234989
|
const pathEnv = cmd2.match(/\//) || isWindows2 && cmd2.match(/\\/) ? [""] : [
|
|
234990
234990
|
...isWindows2 ? [process.cwd()] : [],
|
|
234991
|
-
...(opt2.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.13.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.
|
|
234991
|
+
...(opt2.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.13.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.p404iHU69j:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin").split(colon)
|
|
234992
234992
|
];
|
|
234993
234993
|
const pathExtExe = isWindows2 ? opt2.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
|
|
234994
234994
|
const pathExt = isWindows2 ? pathExtExe.split(colon) : [""];
|
|
@@ -236431,8 +236431,8 @@ var normalizeArgs2 = (file, args = []) => {
|
|
|
236431
236431
|
...tokens.slice(0, -1),
|
|
236432
236432
|
`${tokens.at(-1)}${nextTokens[0]}`,
|
|
236433
236433
|
...nextTokens.slice(1)
|
|
236434
|
-
], parseTemplate = ({ templates, expressions, tokens, index, template }) => {
|
|
236435
|
-
const templateString = template ??
|
|
236434
|
+
], parseTemplate = ({ templates: templates2, expressions, tokens, index, template }) => {
|
|
236435
|
+
const templateString = template ?? templates2.raw[index];
|
|
236436
236436
|
const templateTokens = templateString.split(SPACES_REGEXP).filter(Boolean);
|
|
236437
236437
|
const newTokens = concatTokens(tokens, templateTokens, templateString.startsWith(" "));
|
|
236438
236438
|
if (index === expressions.length) {
|
|
@@ -236441,10 +236441,10 @@ var normalizeArgs2 = (file, args = []) => {
|
|
|
236441
236441
|
const expression = expressions[index];
|
|
236442
236442
|
const expressionTokens = Array.isArray(expression) ? expression.map((expression2) => parseExpression(expression2)) : [parseExpression(expression)];
|
|
236443
236443
|
return concatTokens(newTokens, expressionTokens, templateString.endsWith(" "));
|
|
236444
|
-
}, parseTemplates = (
|
|
236444
|
+
}, parseTemplates = (templates2, expressions) => {
|
|
236445
236445
|
let tokens = [];
|
|
236446
|
-
for (const [index, template] of
|
|
236447
|
-
tokens = parseTemplate({ templates, expressions, tokens, index, template });
|
|
236446
|
+
for (const [index, template] of templates2.entries()) {
|
|
236447
|
+
tokens = parseTemplate({ templates: templates2, expressions, tokens, index, template });
|
|
236448
236448
|
}
|
|
236449
236449
|
return tokens;
|
|
236450
236450
|
};
|
|
@@ -236625,11 +236625,11 @@ function create$(options) {
|
|
|
236625
236625
|
const [file, ...args] = parseTemplates(templatesOrOptions, expressions);
|
|
236626
236626
|
return execa2(file, args, normalizeScriptOptions(options));
|
|
236627
236627
|
}
|
|
236628
|
-
$3.sync = (
|
|
236629
|
-
if (!Array.isArray(
|
|
236628
|
+
$3.sync = (templates2, ...expressions) => {
|
|
236629
|
+
if (!Array.isArray(templates2)) {
|
|
236630
236630
|
throw new TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");
|
|
236631
236631
|
}
|
|
236632
|
-
const [file, ...args] = parseTemplates(
|
|
236632
|
+
const [file, ...args] = parseTemplates(templates2, expressions);
|
|
236633
236633
|
return execaSync(file, args, normalizeScriptOptions(options));
|
|
236634
236634
|
};
|
|
236635
236635
|
return $3;
|
|
@@ -255455,15 +255455,15 @@ var require_parser2 = __commonJS((exports) => {
|
|
|
255455
255455
|
var node_process = __require("node:process");
|
|
255456
255456
|
var cst = require_cst();
|
|
255457
255457
|
var lexer = require_lexer2();
|
|
255458
|
-
function includesToken(
|
|
255459
|
-
for (let i6 = 0;i6 <
|
|
255460
|
-
if (
|
|
255458
|
+
function includesToken(list2, type4) {
|
|
255459
|
+
for (let i6 = 0;i6 < list2.length; ++i6)
|
|
255460
|
+
if (list2[i6].type === type4)
|
|
255461
255461
|
return true;
|
|
255462
255462
|
return false;
|
|
255463
255463
|
}
|
|
255464
|
-
function findNonEmptyIndex(
|
|
255465
|
-
for (let i6 = 0;i6 <
|
|
255466
|
-
switch (
|
|
255464
|
+
function findNonEmptyIndex(list2) {
|
|
255465
|
+
for (let i6 = 0;i6 < list2.length; ++i6) {
|
|
255466
|
+
switch (list2[i6].type) {
|
|
255467
255467
|
case "space":
|
|
255468
255468
|
case "comment":
|
|
255469
255469
|
case "newline":
|
|
@@ -267512,20 +267512,6 @@ var note = (message, level = "info") => {
|
|
|
267512
267512
|
}
|
|
267513
267513
|
console.log(maskedMessage);
|
|
267514
267514
|
};
|
|
267515
|
-
function list(title, items) {
|
|
267516
|
-
const formatItems = (items2) => {
|
|
267517
|
-
return items2.map((item) => {
|
|
267518
|
-
if (Array.isArray(item)) {
|
|
267519
|
-
return item.map((subItem) => ` • ${subItem}`).join(`
|
|
267520
|
-
`);
|
|
267521
|
-
}
|
|
267522
|
-
return `• ${item}`;
|
|
267523
|
-
}).join(`
|
|
267524
|
-
`);
|
|
267525
|
-
};
|
|
267526
|
-
return note(`${title}:
|
|
267527
|
-
${formatItems(items)}`);
|
|
267528
|
-
}
|
|
267529
267515
|
var outro = (msg) => {
|
|
267530
267516
|
console.log("");
|
|
267531
267517
|
console.log(inverse(greenBright(maskTokens2(msg))));
|
|
@@ -267552,7 +267538,7 @@ ${error.stack}`));
|
|
|
267552
267538
|
var package_default = {
|
|
267553
267539
|
name: "@settlemint/sdk-cli",
|
|
267554
267540
|
description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
|
|
267555
|
-
version: "1.0.5-
|
|
267541
|
+
version: "1.0.5-pre7d08cee",
|
|
267556
267542
|
type: "module",
|
|
267557
267543
|
private: false,
|
|
267558
267544
|
license: "FSL-1.1-MIT",
|
|
@@ -267607,8 +267593,8 @@ var package_default = {
|
|
|
267607
267593
|
"@inquirer/input": "4.1.3",
|
|
267608
267594
|
"@inquirer/password": "4.0.6",
|
|
267609
267595
|
"@inquirer/select": "4.0.6",
|
|
267610
|
-
"@settlemint/sdk-js": "1.0.5-
|
|
267611
|
-
"@settlemint/sdk-utils": "1.0.5-
|
|
267596
|
+
"@settlemint/sdk-js": "1.0.5-pre7d08cee",
|
|
267597
|
+
"@settlemint/sdk-utils": "1.0.5-pre7d08cee",
|
|
267612
267598
|
"get-tsconfig": "4.8.1",
|
|
267613
267599
|
giget: "1.2.3"
|
|
267614
267600
|
},
|
|
@@ -267768,10 +267754,10 @@ async function getInstanceCredentials(instance, throwOnMissingInstance = true) {
|
|
|
267768
267754
|
if (!throwOnMissingInstance) {
|
|
267769
267755
|
return;
|
|
267770
267756
|
}
|
|
267771
|
-
|
|
267772
|
-
|
|
267773
|
-
|
|
267774
|
-
|
|
267757
|
+
cancel2(`No configuration found for instance '${instance}'${Object.keys(config3.instances).length > 0 ? `
|
|
267758
|
+
Configured instances:
|
|
267759
|
+
${Object.keys(config3.instances).map((i) => `- '${i}'`).join(`
|
|
267760
|
+
`)}` : ""}`);
|
|
267775
267761
|
}
|
|
267776
267762
|
return { personalAccessToken: instanceConfig.personalAccessToken };
|
|
267777
267763
|
}
|
|
@@ -267988,6 +267974,9 @@ async function exists3(path5) {
|
|
|
267988
267974
|
return false;
|
|
267989
267975
|
}
|
|
267990
267976
|
}
|
|
267977
|
+
var templates = [
|
|
267978
|
+
{ value: "@settlemint/starterkit-asset-tokenization", label: "Asset Tokenization" }
|
|
267979
|
+
];
|
|
267991
267980
|
function formatTargetDir(targetDir) {
|
|
267992
267981
|
return targetDir?.trim().replace(/\/+$/g, "");
|
|
267993
267982
|
}
|
|
@@ -272738,14 +272727,11 @@ var ClientOptionsSchema = z.object({
|
|
|
272738
272727
|
});
|
|
272739
272728
|
function createSettleMintClient(options) {
|
|
272740
272729
|
ensureServer();
|
|
272741
|
-
const validatedOptions =
|
|
272742
|
-
...ClientOptionsSchema.shape,
|
|
272743
|
-
accessToken: z.literal("")
|
|
272744
|
-
}), options) : validate2(ClientOptionsSchema, options);
|
|
272730
|
+
const validatedOptions = validate2(ClientOptionsSchema, options);
|
|
272745
272731
|
const baseUrl = new URL(validatedOptions.instance).toString().replace(/\/$/, "");
|
|
272746
272732
|
const gqlClient = new GraphQLClient(`${baseUrl}/api/graphql`, {
|
|
272747
272733
|
headers: {
|
|
272748
|
-
"x-auth-token": validatedOptions.accessToken
|
|
272734
|
+
"x-auth-token": validatedOptions.accessToken
|
|
272749
272735
|
},
|
|
272750
272736
|
fetch: async (input, init2) => {
|
|
272751
272737
|
const response = await fetchWithRetry(input, init2);
|
|
@@ -273579,8 +273565,11 @@ function connectCommand() {
|
|
|
273579
273565
|
hdPrivateKey && `HD Private Key: ${hdPrivateKey?.name}`,
|
|
273580
273566
|
cDeployment && `Custom Deployment: ${cDeployment?.name}`,
|
|
273581
273567
|
blockscout && `Blockscout: ${blockscout?.name}`
|
|
273582
|
-
]
|
|
273583
|
-
|
|
273568
|
+
];
|
|
273569
|
+
note(`Selected services:
|
|
273570
|
+
• ${selectedServices.filter(Boolean).join(`
|
|
273571
|
+
• `)}
|
|
273572
|
+
`);
|
|
273584
273573
|
}
|
|
273585
273574
|
await writeEnvSpinner(!!prod, {
|
|
273586
273575
|
SETTLEMINT_ACCESS_TOKEN: aatToken,
|
|
@@ -273634,35 +273623,26 @@ async function namePrompt(env2, argument) {
|
|
|
273634
273623
|
});
|
|
273635
273624
|
}
|
|
273636
273625
|
|
|
273637
|
-
// src/commands/platform/utils/platform-utils.ts
|
|
273638
|
-
function getUseCases(platformConfig) {
|
|
273639
|
-
return platformConfig.smartContractSets.sets.filter((useCase) => !useCase.featureflagged && !useCase.id.startsWith("starterkit-"));
|
|
273640
|
-
}
|
|
273641
|
-
function getStarterkits(platformConfig) {
|
|
273642
|
-
return platformConfig.smartContractSets.sets.filter((useCase) => useCase.id.startsWith("starterkit-"));
|
|
273643
|
-
}
|
|
273644
|
-
|
|
273645
273626
|
// src/commands/create/template.prompt.ts
|
|
273646
|
-
async function templatePrompt(
|
|
273647
|
-
|
|
273648
|
-
if (starterkits.length === 0) {
|
|
273627
|
+
async function templatePrompt(templates2, argument) {
|
|
273628
|
+
if (templates2.length === 0) {
|
|
273649
273629
|
cancel2("No templates found");
|
|
273650
273630
|
}
|
|
273651
273631
|
const defaultInstance = argument;
|
|
273652
273632
|
if (defaultInstance) {
|
|
273653
|
-
const template2 =
|
|
273633
|
+
const template2 = templates2.find((template3) => template3.value === argument);
|
|
273654
273634
|
if (!template2) {
|
|
273655
273635
|
cancel2(`No template found with name '${argument}'`);
|
|
273656
273636
|
}
|
|
273657
|
-
return template2
|
|
273637
|
+
return template2;
|
|
273658
273638
|
}
|
|
273659
273639
|
const template = await esm_default2({
|
|
273660
273640
|
message: "Which template do you want to use?",
|
|
273661
273641
|
choices: [
|
|
273662
|
-
...
|
|
273663
|
-
name: template2.
|
|
273664
|
-
value: template2
|
|
273665
|
-
}))
|
|
273642
|
+
...templates2.map((template2) => ({
|
|
273643
|
+
name: template2.label,
|
|
273644
|
+
value: template2
|
|
273645
|
+
}))
|
|
273666
273646
|
]
|
|
273667
273647
|
});
|
|
273668
273648
|
return template;
|
|
@@ -274368,20 +274348,9 @@ async function downloadAndExtractNpmPackage(template, targetDir) {
|
|
|
274368
274348
|
|
|
274369
274349
|
// src/commands/create.ts
|
|
274370
274350
|
function createCommand2() {
|
|
274371
|
-
return new Command("create").description("Bootstrap your SettleMint project").option("-n, --project-name <name>", "The name for your SettleMint project").
|
|
274351
|
+
return new Command("create").description("Bootstrap your SettleMint project").option("-n, --project-name <name>", "The name for your SettleMint project").addOption(new Option("-t, --template <template>", "Thehe template for your SettleMint project").choices(templates.map((templates2) => templates2.value))).action(async ({ projectName, template }) => {
|
|
274372
274352
|
intro("Creating a new SettleMint project");
|
|
274373
274353
|
const env2 = await loadEnv(false, false);
|
|
274374
|
-
const selectedInstance = instance ? sanitizeAndValidateInstanceUrl(instance) : await instancePrompt(env2, true);
|
|
274375
|
-
const settlemint = createSettleMintClient({
|
|
274376
|
-
instance: selectedInstance,
|
|
274377
|
-
accessToken: "",
|
|
274378
|
-
anonymous: true
|
|
274379
|
-
});
|
|
274380
|
-
const platformConfig = await settlemint.platform.config();
|
|
274381
|
-
const selectedTemplate = await templatePrompt(platformConfig, template);
|
|
274382
|
-
if (!selectedTemplate) {
|
|
274383
|
-
return nothingSelectedError("template");
|
|
274384
|
-
}
|
|
274385
274354
|
const name2 = await namePrompt(env2, projectName);
|
|
274386
274355
|
const targetDir = formatTargetDir(name2);
|
|
274387
274356
|
const projectDir = join9(process.cwd(), targetDir);
|
|
@@ -274398,10 +274367,14 @@ function createCommand2() {
|
|
|
274398
274367
|
}
|
|
274399
274368
|
await emptyDir(projectDir);
|
|
274400
274369
|
}
|
|
274370
|
+
const selectedTemplate = await templatePrompt(templates, template);
|
|
274371
|
+
if (!selectedTemplate) {
|
|
274372
|
+
return nothingSelectedError("template");
|
|
274373
|
+
}
|
|
274401
274374
|
await spinner({
|
|
274402
274375
|
startMessage: "Scaffolding the project",
|
|
274403
274376
|
task: async () => {
|
|
274404
|
-
await downloadAndExtractNpmPackage(
|
|
274377
|
+
await downloadAndExtractNpmPackage(selectedTemplate.value, projectDir);
|
|
274405
274378
|
await setName(name2, projectDir);
|
|
274406
274379
|
},
|
|
274407
274380
|
stopMessage: "Project fully scaffolded"
|
|
@@ -276263,22 +276236,27 @@ function configCommand() {
|
|
|
276263
276236
|
intro("Getting platform configuration");
|
|
276264
276237
|
const env2 = await loadEnv(false, !!prod);
|
|
276265
276238
|
const selectedInstance = instance ? sanitizeAndValidateInstanceUrl(instance) : await instancePrompt(env2, true);
|
|
276266
|
-
const
|
|
276267
|
-
|
|
276239
|
+
const accessToken = await getApplicationOrPersonalAccessToken({
|
|
276240
|
+
env: env2,
|
|
276268
276241
|
instance: selectedInstance,
|
|
276269
|
-
|
|
276242
|
+
prefer: "personal"
|
|
276243
|
+
});
|
|
276244
|
+
const settlemint = createSettleMintClient({
|
|
276245
|
+
accessToken,
|
|
276246
|
+
instance: selectedInstance
|
|
276270
276247
|
});
|
|
276271
276248
|
const platformConfig = await settlemint.platform.config();
|
|
276272
|
-
|
|
276273
|
-
|
|
276274
|
-
|
|
276275
|
-
|
|
276276
|
-
|
|
276277
|
-
|
|
276278
|
-
|
|
276279
|
-
|
|
276280
|
-
|
|
276281
|
-
|
|
276249
|
+
note(`Providers and regions:
|
|
276250
|
+
${platformConfig.deploymentEngineTargets.filter((provider) => !provider.disabled).map((provider) => `• ${provider.id}
|
|
276251
|
+
${provider.clusters.filter((cluster) => !cluster.disabled).map((region) => `• ${getRegionId(region.id)}`).sort().join(`
|
|
276252
|
+
`)}`).sort().join(`
|
|
276253
|
+
`)}`);
|
|
276254
|
+
note(`Use cases (Smart Contract Sets):
|
|
276255
|
+
• ${platformConfig.smartContractSets.sets.filter((useCase) => !useCase.featureflagged).map((useCase) => useCase.id).sort().join(`
|
|
276256
|
+
• `)}`);
|
|
276257
|
+
note(`Pre-deployed abis (Smart Contract Portal):
|
|
276258
|
+
• ${platformConfig.preDeployedContracts.sort().join(`
|
|
276259
|
+
• `)}`);
|
|
276282
276260
|
outro("Platform configuration retrieved");
|
|
276283
276261
|
});
|
|
276284
276262
|
}
|
|
@@ -276297,50 +276275,45 @@ async function useCasePrompt(platformConfig, argument) {
|
|
|
276297
276275
|
if (platformConfig.smartContractSets.sets.length === 0) {
|
|
276298
276276
|
cancel2("No use cases found");
|
|
276299
276277
|
}
|
|
276300
|
-
const
|
|
276278
|
+
const useCasesNotFeatureFlagged = platformConfig.smartContractSets.sets.filter((set) => !set.featureflagged);
|
|
276301
276279
|
if (argument) {
|
|
276302
276280
|
const selectedUseCase = platformConfig.smartContractSets.sets.find((set) => set.id === argument);
|
|
276303
276281
|
if (!selectedUseCase) {
|
|
276304
|
-
cancel2(`No use case found with id '${argument}'. Possible use cases: '${
|
|
276282
|
+
cancel2(`No use case found with id '${argument}'. Possible use cases: '${useCasesNotFeatureFlagged.map((set) => set.id).sort().join(", ")}'`);
|
|
276305
276283
|
}
|
|
276306
276284
|
return selectedUseCase;
|
|
276307
276285
|
}
|
|
276308
|
-
if (
|
|
276286
|
+
if (useCasesNotFeatureFlagged.length === 0) {
|
|
276309
276287
|
cancel2("No use cases found");
|
|
276310
276288
|
}
|
|
276311
|
-
if (
|
|
276312
|
-
return
|
|
276289
|
+
if (useCasesNotFeatureFlagged.length === 1) {
|
|
276290
|
+
return useCasesNotFeatureFlagged[0];
|
|
276313
276291
|
}
|
|
276314
276292
|
const useCase = await esm_default2({
|
|
276315
276293
|
message: "Which use case do you want to use?",
|
|
276316
|
-
choices:
|
|
276317
|
-
name:
|
|
276294
|
+
choices: useCasesNotFeatureFlagged.map((useCase2) => ({
|
|
276295
|
+
name: useCase2.name,
|
|
276318
276296
|
value: useCase2.id
|
|
276319
276297
|
})).sort((a8, b4) => a8.name.localeCompare(b4.name))
|
|
276320
276298
|
});
|
|
276321
276299
|
return platformConfig.smartContractSets.sets.find((set) => set.id === useCase);
|
|
276322
276300
|
}
|
|
276323
|
-
function formatUseCaseName(name2) {
|
|
276324
|
-
if (name2.startsWith("solidity-")) {
|
|
276325
|
-
return name2.replace("solidity-", "Solidity: ");
|
|
276326
|
-
}
|
|
276327
|
-
if (name2.startsWith("chaincode-")) {
|
|
276328
|
-
return name2.replace("chaincode-", "Fabric: ");
|
|
276329
|
-
}
|
|
276330
|
-
return name2;
|
|
276331
|
-
}
|
|
276332
276301
|
|
|
276333
276302
|
// src/commands/smart-contract-set/create.ts
|
|
276334
276303
|
function createCommand4() {
|
|
276335
|
-
return new Command("create").description("Bootstrap your smart contract set").option("-n, --project-name <name>", "The name for your smart contract set project").option("--use-case <useCase>", "Use case for the smart contract set (run `settlemint platform config` to see available use cases)").option("
|
|
276304
|
+
return new Command("create").description("Bootstrap your smart contract set").option("-n, --project-name <name>", "The name for your smart contract set project").option("--use-case <useCase>", "Use case for the smart contract set (run `settlemint platform config` to see available use cases)").option("--prod", "Connect to your production environment").action(async ({ projectName, useCase, prod }) => {
|
|
276336
276305
|
intro("Creating a new smart contract set");
|
|
276337
|
-
const env2 = await loadEnv(false,
|
|
276306
|
+
const env2 = await loadEnv(false, !!prod);
|
|
276338
276307
|
const name2 = await namePrompt(env2, projectName);
|
|
276339
|
-
const
|
|
276308
|
+
const instance = await instancePrompt(env2, true);
|
|
276309
|
+
const accessToken = await getApplicationOrPersonalAccessToken({
|
|
276310
|
+
env: env2,
|
|
276311
|
+
instance,
|
|
276312
|
+
prefer: "personal"
|
|
276313
|
+
});
|
|
276340
276314
|
const settlemint = createSettleMintClient({
|
|
276341
|
-
|
|
276342
|
-
|
|
276343
|
-
anonymous: true
|
|
276315
|
+
accessToken,
|
|
276316
|
+
instance
|
|
276344
276317
|
});
|
|
276345
276318
|
const platformConfig = await settlemint.platform.config();
|
|
276346
276319
|
const selectedUseCase = await useCasePrompt(platformConfig, useCase);
|
|
@@ -277279,4 +277252,4 @@ function sdkCliCommand(exitOverride = undefined) {
|
|
|
277279
277252
|
ascii();
|
|
277280
277253
|
sdkCliCommand();
|
|
277281
277254
|
|
|
277282
|
-
//# debugId=
|
|
277255
|
+
//# debugId=03CFAE99134133CF64756E2164756E21
|