@settlemint/sdk-cli 2.6.4-pr0fa04ac2 → 2.6.4-pr218a185b
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 +175 -79
- package/dist/cli.js.map +6 -5
- package/package.json +8 -8
package/dist/cli.js
CHANGED
|
@@ -221083,7 +221083,7 @@ var init_api = __esm(() => {
|
|
|
221083
221083
|
init_api_chunk();
|
|
221084
221084
|
});
|
|
221085
221085
|
|
|
221086
|
-
// ../../node_modules/.bun/@gql.tada+cli-utils@1.7.
|
|
221086
|
+
// ../../node_modules/.bun/@gql.tada+cli-utils@1.7.2+1fb4c65d43e298b9/node_modules/@gql.tada/cli-utils/dist/chunks/index-chunk2.mjs
|
|
221087
221087
|
import { isMainThread as e6, parentPort as r5, Worker as n5, SHARE_ENV as a6 } from "node:worker_threads";
|
|
221088
221088
|
function expose(r6) {
|
|
221089
221089
|
if (e6) {
|
|
@@ -221352,7 +221352,7 @@ var init_index_chunk2 = __esm(() => {
|
|
|
221352
221352
|
};
|
|
221353
221353
|
});
|
|
221354
221354
|
|
|
221355
|
-
// ../../node_modules/.bun/@gql.tada+cli-utils@1.7.
|
|
221355
|
+
// ../../node_modules/.bun/@gql.tada+cli-utils@1.7.2+1fb4c65d43e298b9/node_modules/@gql.tada/cli-utils/dist/chunks/thread-chunk.mjs
|
|
221356
221356
|
var exports_thread_chunk = {};
|
|
221357
221357
|
__export(exports_thread_chunk, {
|
|
221358
221358
|
runPersisted: () => N4
|
|
@@ -222160,29 +222160,29 @@ Run \`check\` to see specific validation errors.`,
|
|
|
222160
222160
|
});
|
|
222161
222161
|
});
|
|
222162
222162
|
|
|
222163
|
-
// ../../node_modules/.bun/@gql.tada+cli-utils@1.7.
|
|
222163
|
+
// ../../node_modules/.bun/@gql.tada+cli-utils@1.7.2+1fb4c65d43e298b9/node_modules/@gql.tada/cli-utils/dist/chunks/thread-chunk2.mjs
|
|
222164
222164
|
var exports_thread_chunk2 = {};
|
|
222165
222165
|
__export(exports_thread_chunk2, {
|
|
222166
|
-
runTurbo: () =>
|
|
222166
|
+
runTurbo: () => s6
|
|
222167
222167
|
});
|
|
222168
222168
|
import * as r6 from "node:path";
|
|
222169
222169
|
function traceCallToImportSource(r7, a7, t7) {
|
|
222170
222170
|
var i6 = t7.getTypeChecker();
|
|
222171
222171
|
var o6 = r7.expression;
|
|
222172
|
-
var
|
|
222172
|
+
var s6;
|
|
222173
222173
|
if (import_typescript3.default.isIdentifier(o6)) {
|
|
222174
|
-
|
|
222174
|
+
s6 = o6;
|
|
222175
222175
|
} else if (import_typescript3.default.isPropertyAccessExpression(o6) && import_typescript3.default.isIdentifier(o6.expression)) {
|
|
222176
|
-
|
|
222176
|
+
s6 = o6.expression;
|
|
222177
222177
|
}
|
|
222178
|
-
if (!
|
|
222178
|
+
if (!s6) {
|
|
222179
222179
|
return;
|
|
222180
222180
|
}
|
|
222181
|
-
var
|
|
222182
|
-
if (!
|
|
222181
|
+
var n6 = i6.getSymbolAtLocation(s6);
|
|
222182
|
+
if (!n6 || !n6.declarations) {
|
|
222183
222183
|
return;
|
|
222184
222184
|
}
|
|
222185
|
-
for (var l3 of
|
|
222185
|
+
for (var l3 of n6.declarations) {
|
|
222186
222186
|
var u6 = findImportDeclaration(l3);
|
|
222187
222187
|
if (u6 && import_typescript3.default.isStringLiteral(u6.moduleSpecifier)) {
|
|
222188
222188
|
return resolveModulePath(u6.moduleSpecifier.text, a7, t7);
|
|
@@ -222203,15 +222203,15 @@ function findImportDeclaration(r7) {
|
|
|
222203
222203
|
function resolveModulePath(r7, a7, t7) {
|
|
222204
222204
|
var i6 = t7.getCompilerOptions();
|
|
222205
222205
|
var o6 = import_typescript3.default.createCompilerHost(i6);
|
|
222206
|
-
var
|
|
222207
|
-
if (
|
|
222208
|
-
return
|
|
222206
|
+
var s6 = import_typescript3.default.resolveModuleName(r7, a7.fileName, i6, o6);
|
|
222207
|
+
if (s6.resolvedModule) {
|
|
222208
|
+
return s6.resolvedModule.resolvedFileName;
|
|
222209
222209
|
}
|
|
222210
222210
|
return;
|
|
222211
222211
|
}
|
|
222212
|
-
function collectImportsFromSourceFile(a7, t7, i6, o6) {
|
|
222212
|
+
function collectImportsFromSourceFile(a7, t7, i6, o6, s6) {
|
|
222213
222213
|
var n6 = [];
|
|
222214
|
-
var
|
|
222214
|
+
var l3 = function getTadaOutputPaths(e9) {
|
|
222215
222215
|
var r7 = [];
|
|
222216
222216
|
if ("schema" in e9 && e9.tadaOutputLocation) {
|
|
222217
222217
|
r7.push(e9.tadaOutputLocation);
|
|
@@ -222220,7 +222220,7 @@ function collectImportsFromSourceFile(a7, t7, i6, o6) {
|
|
|
222220
222220
|
}(t7);
|
|
222221
222221
|
(function visit(t8) {
|
|
222222
222222
|
if (import_typescript3.default.isImportDeclaration(t8) && import_typescript3.default.isStringLiteral(t8.moduleSpecifier)) {
|
|
222223
|
-
var
|
|
222223
|
+
var u6 = t8.moduleSpecifier.text;
|
|
222224
222224
|
if (!function isTadaImport(e9, a8, t9) {
|
|
222225
222225
|
if (e9.startsWith(".")) {
|
|
222226
222226
|
var i7 = r6.dirname(a8);
|
|
@@ -222231,20 +222231,27 @@ function collectImportsFromSourceFile(a7, t7, i6, o6) {
|
|
|
222231
222231
|
});
|
|
222232
222232
|
}
|
|
222233
222233
|
return t9.some((r7) => e9 === r7 || e9.startsWith(r7 + "/"));
|
|
222234
|
-
}(
|
|
222235
|
-
var
|
|
222234
|
+
}(u6, a7.fileName, l3)) {
|
|
222235
|
+
var c4 = t8.getFullText().trim();
|
|
222236
222236
|
if (o6) {
|
|
222237
|
-
var
|
|
222238
|
-
if (
|
|
222237
|
+
var p4 = i6(u6, a7.fileName, o6);
|
|
222238
|
+
if (s6) {
|
|
222239
|
+
if (p4.endsWith(".ts") || p4.endsWith(".tsx")) {
|
|
222240
|
+
p4 = p4.replace(/\.ts$/, ".js").replace(/\.tsx$/, ".js");
|
|
222241
|
+
}
|
|
222242
|
+
} else {
|
|
222243
|
+
p4 = p4.replace(/\.ts$/, "").replace(/\.tsx$/, "");
|
|
222244
|
+
}
|
|
222245
|
+
if (p4 && !p4.includes("gql.tada")) {
|
|
222239
222246
|
n6.push({
|
|
222240
|
-
specifier:
|
|
222241
|
-
importClause:
|
|
222247
|
+
specifier: p4,
|
|
222248
|
+
importClause: c4.replace(u6, p4)
|
|
222242
222249
|
});
|
|
222243
222250
|
}
|
|
222244
222251
|
} else {
|
|
222245
222252
|
n6.push({
|
|
222246
|
-
specifier:
|
|
222247
|
-
importClause:
|
|
222253
|
+
specifier: u6,
|
|
222254
|
+
importClause: c4
|
|
222248
222255
|
});
|
|
222249
222256
|
}
|
|
222250
222257
|
}
|
|
@@ -222253,37 +222260,37 @@ function collectImportsFromSourceFile(a7, t7, i6, o6) {
|
|
|
222253
222260
|
})(a7);
|
|
222254
222261
|
return n6;
|
|
222255
222262
|
}
|
|
222256
|
-
var import_typescript3,
|
|
222263
|
+
var import_typescript3, s6, n6, l3;
|
|
222257
222264
|
var init_thread_chunk2 = __esm(() => {
|
|
222258
222265
|
init_gql_tada_internal();
|
|
222259
222266
|
init_api();
|
|
222260
222267
|
init_index_chunk2();
|
|
222261
222268
|
init_index_chunk();
|
|
222262
222269
|
import_typescript3 = __toESM(require_typescript(), 1);
|
|
222263
|
-
|
|
222270
|
+
s6 = expose(async function* _runTurbo(r7) {
|
|
222264
222271
|
var i6 = getSchemaNamesFromConfig(r7.pluginConfig);
|
|
222265
|
-
var
|
|
222266
|
-
|
|
222272
|
+
var s7 = programFactory(r7);
|
|
222273
|
+
s7.addSourceFile({
|
|
222267
222274
|
fileId: "__gql-tada-override__.d.ts",
|
|
222268
222275
|
sourceText: l3,
|
|
222269
222276
|
scriptKind: import_typescript3.default.ScriptKind.TS
|
|
222270
222277
|
});
|
|
222271
|
-
var u6 =
|
|
222278
|
+
var u6 = s7.createExternalFiles();
|
|
222272
222279
|
if (u6.length) {
|
|
222273
222280
|
yield {
|
|
222274
222281
|
kind: "EXTERNAL_WARNING"
|
|
222275
222282
|
};
|
|
222276
|
-
await
|
|
222283
|
+
await s7.addVirtualFiles(u6);
|
|
222277
222284
|
}
|
|
222278
|
-
var c4 =
|
|
222285
|
+
var c4 = s7.build();
|
|
222279
222286
|
var p4 = c4.buildPluginInfo(r7.pluginConfig);
|
|
222280
222287
|
var m5 = c4.getSourceFiles();
|
|
222281
222288
|
yield {
|
|
222282
222289
|
kind: "FILE_COUNT",
|
|
222283
222290
|
fileCount: m5.length
|
|
222284
222291
|
};
|
|
222285
|
-
var
|
|
222286
|
-
var
|
|
222292
|
+
var d5 = c4.program.getTypeChecker();
|
|
222293
|
+
var f4 = new Map;
|
|
222287
222294
|
for (var v5 of m5) {
|
|
222288
222295
|
var g5 = v5.fileName;
|
|
222289
222296
|
var h5 = [];
|
|
@@ -222306,19 +222313,19 @@ var init_thread_chunk2 = __esm(() => {
|
|
|
222306
222313
|
return 0;
|
|
222307
222314
|
}
|
|
222308
222315
|
var l3 = traceCallToImportSource(t7, v5, c4.program);
|
|
222309
|
-
if (l3 && !
|
|
222316
|
+
if (l3 && !f4.has(l3)) {
|
|
222310
222317
|
var u7 = c4.program.getSourceFile(l3);
|
|
222311
222318
|
if (u7) {
|
|
222312
222319
|
var p5 = Array.isArray(r7.turboOutputPath) ? r7.turboOutputPath.find((e9) => e9.schemaName === a7.schema)?.path : r7.turboOutputPath;
|
|
222313
|
-
var m6 = collectImportsFromSourceFile(u7, r7.pluginConfig,
|
|
222314
|
-
|
|
222320
|
+
var m6 = collectImportsFromSourceFile(u7, r7.pluginConfig, s7.resolveModuleName.bind(s7), p5, !!s7.wasOriginallyNodeNext);
|
|
222321
|
+
f4.set(l3, {
|
|
222315
222322
|
absolutePath: l3,
|
|
222316
222323
|
imports: m6
|
|
222317
222324
|
});
|
|
222318
222325
|
}
|
|
222319
222326
|
}
|
|
222320
|
-
var T5 =
|
|
222321
|
-
var F5 =
|
|
222327
|
+
var T5 = d5.getTypeAtLocation(t7);
|
|
222328
|
+
var F5 = d5.getTypeAtLocation(a7.node);
|
|
222322
222329
|
if (!T5.symbol || T5.symbol.getEscapedName() !== "TadaDocumentNode") {
|
|
222323
222330
|
y4.push({
|
|
222324
222331
|
message: `The discovered document is not of type "TadaDocumentNode".
|
|
@@ -222329,8 +222336,8 @@ If this is unexpected, please file an issue describing your case.`,
|
|
|
222329
222336
|
});
|
|
222330
222337
|
return 0;
|
|
222331
222338
|
}
|
|
222332
|
-
var S5 = "value" in F5 && typeof F5.value == "string" && !(F5.flags & import_typescript3.default.TypeFlags.StringLiteral) ? JSON.stringify(F5.value) :
|
|
222333
|
-
var N5 =
|
|
222339
|
+
var S5 = "value" in F5 && typeof F5.value == "string" && !(F5.flags & import_typescript3.default.TypeFlags.StringLiteral) ? JSON.stringify(F5.value) : d5.typeToString(F5, t7, n6);
|
|
222340
|
+
var N5 = d5.typeToString(T5, t7, n6);
|
|
222334
222341
|
h5.push({
|
|
222335
222342
|
schemaName: a7.schema,
|
|
222336
222343
|
argumentKey: S5,
|
|
@@ -222349,14 +222356,14 @@ If this is unexpected, please file an issue describing your case.`,
|
|
|
222349
222356
|
warnings: y4
|
|
222350
222357
|
};
|
|
222351
222358
|
}
|
|
222352
|
-
if (
|
|
222359
|
+
if (f4.size > 0) {
|
|
222353
222360
|
yield {
|
|
222354
222361
|
kind: "GRAPHQL_SOURCES",
|
|
222355
|
-
sources: Array.from(
|
|
222362
|
+
sources: Array.from(f4.values())
|
|
222356
222363
|
};
|
|
222357
222364
|
}
|
|
222358
222365
|
});
|
|
222359
|
-
|
|
222366
|
+
n6 = import_typescript3.default.TypeFormatFlags.NoTruncation | import_typescript3.default.TypeFormatFlags.NoTypeReduction | import_typescript3.default.TypeFormatFlags.InTypeAlias | import_typescript3.default.TypeFormatFlags.UseFullyQualifiedType | import_typescript3.default.TypeFormatFlags.GenerateNamesForShadowedTypeParams | import_typescript3.default.TypeFormatFlags.UseAliasDefinedOutsideCurrentScope | import_typescript3.default.TypeFormatFlags.AllowUniqueESSymbolType | import_typescript3.default.TypeFormatFlags.WriteTypeArgumentsOfSignature;
|
|
222360
222367
|
l3 = `
|
|
222361
222368
|
import * as _gqlTada from 'gql.tada';
|
|
222362
222369
|
declare module 'gql.tada' {
|
|
@@ -222367,7 +222374,7 @@ declare module 'gql.tada' {
|
|
|
222367
222374
|
`.trim();
|
|
222368
222375
|
});
|
|
222369
222376
|
|
|
222370
|
-
// ../../node_modules/.bun/@gql.tada+cli-utils@1.7.
|
|
222377
|
+
// ../../node_modules/.bun/@gql.tada+cli-utils@1.7.2+1fb4c65d43e298b9/node_modules/@gql.tada/cli-utils/dist/chunks/thread-chunk3.mjs
|
|
222371
222378
|
var exports_thread_chunk3 = {};
|
|
222372
222379
|
__export(exports_thread_chunk3, {
|
|
222373
222380
|
runDiagnostics: () => t7
|
|
@@ -222446,7 +222453,7 @@ var init_thread_chunk3 = __esm(() => {
|
|
|
222446
222453
|
});
|
|
222447
222454
|
});
|
|
222448
222455
|
|
|
222449
|
-
// ../../node_modules/.bun/@gql.tada+cli-utils@1.7.
|
|
222456
|
+
// ../../node_modules/.bun/@gql.tada+cli-utils@1.7.2+1fb4c65d43e298b9/node_modules/@gql.tada/cli-utils/dist/chunks/index-chunk.mjs
|
|
222450
222457
|
import * as e10 from "node:path";
|
|
222451
222458
|
import t8, { dirname as r7 } from "node:path";
|
|
222452
222459
|
import * as d5 from "node:fs/promises";
|
|
@@ -226250,7 +226257,7 @@ ${Bt.gray(Yt)} ${e12}
|
|
|
226250
226257
|
`);
|
|
226251
226258
|
})("Off to the races!");
|
|
226252
226259
|
}
|
|
226253
|
-
var import_graphql10, import_typescript5, __dirname = "/home/runner/work/sdk/sdk/node_modules/.bun/@gql.tada+cli-utils@1.7.
|
|
226260
|
+
var import_graphql10, import_typescript5, __dirname = "/home/runner/work/sdk/sdk/node_modules/.bun/@gql.tada+cli-utils@1.7.2+1fb4c65d43e298b9/node_modules/@gql.tada/cli-utils/dist/chunks", ee2, re2, ie2 = -1, ne2, ae2, oe2, le2, ce2, UsageError, UnknownSyntaxError, AmbiguousSyntaxError, whileRunning = (e11) => `While running ${e11.filter((e12) => e12 !== ee2.EndOfInput && e12 !== ee2.EndOfPartialInput).map((e12) => {
|
|
226254
226261
|
var t9 = JSON.stringify(e12);
|
|
226255
226262
|
if (e12.match(/\s/) || e12.length === 0 || t9 !== `"${e12}"`) {
|
|
226256
226263
|
return t9;
|
|
@@ -226799,14 +226806,19 @@ var import_graphql10, import_typescript5, __dirname = "/home/runner/work/sdk/sdk
|
|
|
226799
226806
|
getDefaultLibFilePath: import_typescript5.default.getDefaultLibFilePath(a7.options),
|
|
226800
226807
|
...a7.options
|
|
226801
226808
|
};
|
|
226809
|
+
var c4 = false;
|
|
226802
226810
|
if ("Bundler" in import_typescript5.default.ModuleResolutionKind && (l4.moduleResolution === import_typescript5.default.ModuleResolutionKind.NodeNext || l4.moduleResolution === import_typescript5.default.ModuleResolutionKind.Node16)) {
|
|
226811
|
+
c4 = true;
|
|
226803
226812
|
l4.moduleResolution = import_typescript5.default.ModuleResolutionKind.Bundler;
|
|
226804
226813
|
}
|
|
226805
|
-
var
|
|
226806
|
-
var
|
|
226814
|
+
var D4 = createVirtualCompilerHost(n7, l4, import_typescript5.default);
|
|
226815
|
+
var d6 = {
|
|
226807
226816
|
get projectPath() {
|
|
226808
226817
|
return t9.rootPath;
|
|
226809
226818
|
},
|
|
226819
|
+
get wasOriginallyNodeNext() {
|
|
226820
|
+
return c4;
|
|
226821
|
+
},
|
|
226810
226822
|
get projectDirectories() {
|
|
226811
226823
|
var r9 = new Set([t9.rootPath]);
|
|
226812
226824
|
for (var i8 of s7) {
|
|
@@ -226822,13 +226834,13 @@ var import_graphql10, import_typescript5, __dirname = "/home/runner/work/sdk/sdk
|
|
|
226822
226834
|
for (var c5 of s7) {
|
|
226823
226835
|
l5.add(e10.dirname(c5));
|
|
226824
226836
|
}
|
|
226825
|
-
for (var
|
|
226826
|
-
for (var f5 of n7.readDirectory(
|
|
226837
|
+
for (var D5 of l5) {
|
|
226838
|
+
for (var f5 of n7.readDirectory(D5, r9, ["**/node_modules"])) {
|
|
226827
226839
|
if (!a8.has(f5)) {
|
|
226828
226840
|
a8.add(f5);
|
|
226829
226841
|
var p5 = n7.readFile(f5, "utf8");
|
|
226830
226842
|
if (p5) {
|
|
226831
|
-
i8.push(
|
|
226843
|
+
i8.push(d6.createSourceFile({
|
|
226832
226844
|
fileId: f5,
|
|
226833
226845
|
sourceText: p5
|
|
226834
226846
|
}, import_typescript5.default.ScriptKind.External));
|
|
@@ -226839,13 +226851,13 @@ var import_graphql10, import_typescript5, __dirname = "/home/runner/work/sdk/sdk
|
|
|
226839
226851
|
return i8;
|
|
226840
226852
|
},
|
|
226841
226853
|
addSourceFile(e11) {
|
|
226842
|
-
var t10 = "fileName" in e11 ? e11 :
|
|
226843
|
-
|
|
226854
|
+
var t10 = "fileName" in e11 ? e11 : d6.createSourceFile(e11, import_typescript5.default.ScriptKind.TSX);
|
|
226855
|
+
D4.updateFile(t10);
|
|
226844
226856
|
s7.add(t10.fileName);
|
|
226845
|
-
return
|
|
226857
|
+
return d6;
|
|
226846
226858
|
},
|
|
226847
226859
|
addMappedFile(e11, t10) {
|
|
226848
|
-
var r9 = "fileName" in e11 ? e11 :
|
|
226860
|
+
var r9 = "fileName" in e11 ? e11 : d6.createSourceFile(e11, import_typescript5.default.ScriptKind.External);
|
|
226849
226861
|
if (t10.mappings.length) {
|
|
226850
226862
|
s7.delete(r9.fileName);
|
|
226851
226863
|
}
|
|
@@ -226856,14 +226868,14 @@ var import_graphql10, import_typescript5, __dirname = "/home/runner/work/sdk/sdk
|
|
|
226856
226868
|
});
|
|
226857
226869
|
i7.set(n8.sourceFileId, n8);
|
|
226858
226870
|
i7.set(n8.generatedFileId, n8);
|
|
226859
|
-
return
|
|
226871
|
+
return d6;
|
|
226860
226872
|
},
|
|
226861
226873
|
async addVirtualFiles(e11) {
|
|
226862
226874
|
for (var t10 of e11) {
|
|
226863
226875
|
var r9 = `${t10.fileName}.ts`;
|
|
226864
226876
|
var i8 = await transform2(t10);
|
|
226865
226877
|
if (i8) {
|
|
226866
|
-
|
|
226878
|
+
d6.addSourceFile({
|
|
226867
226879
|
fileId: r9,
|
|
226868
226880
|
sourceText: i8.snapshot
|
|
226869
226881
|
}).addMappedFile(t10, {
|
|
@@ -226872,25 +226884,25 @@ var import_graphql10, import_typescript5, __dirname = "/home/runner/work/sdk/sdk
|
|
|
226872
226884
|
});
|
|
226873
226885
|
}
|
|
226874
226886
|
}
|
|
226875
|
-
return
|
|
226887
|
+
return d6;
|
|
226876
226888
|
},
|
|
226877
226889
|
resolveModuleName(t10, r9, i8) {
|
|
226878
226890
|
if (!t10.startsWith(".")) {
|
|
226879
226891
|
return t10;
|
|
226880
226892
|
}
|
|
226881
|
-
var n8 = import_typescript5.default.resolveModuleName(t10, r9, l4,
|
|
226893
|
+
var n8 = import_typescript5.default.resolveModuleName(t10, r9, l4, D4.compilerHost);
|
|
226882
226894
|
if (n8.resolvedModule) {
|
|
226883
226895
|
var a8 = n8.resolvedModule.resolvedFileName;
|
|
226884
226896
|
var s8 = e10.dirname(i8);
|
|
226885
|
-
var
|
|
226886
|
-
if (!
|
|
226887
|
-
|
|
226897
|
+
var c5 = e10.relative(s8, a8);
|
|
226898
|
+
if (!c5.startsWith(".")) {
|
|
226899
|
+
c5 = "./" + c5;
|
|
226888
226900
|
}
|
|
226889
|
-
return
|
|
226901
|
+
return c5.replace(/\\/g, "/");
|
|
226890
226902
|
}
|
|
226891
|
-
var
|
|
226903
|
+
var d7 = e10.dirname(r9);
|
|
226892
226904
|
var f5 = e10.dirname(i8);
|
|
226893
|
-
var p5 = e10.resolve(
|
|
226905
|
+
var p5 = e10.resolve(d7, t10);
|
|
226894
226906
|
var h6 = e10.relative(f5, p5);
|
|
226895
226907
|
if (!h6.startsWith(".")) {
|
|
226896
226908
|
h6 = "./" + h6;
|
|
@@ -226972,14 +226984,14 @@ var import_graphql10, import_typescript5, __dirname = "/home/runner/work/sdk/sdk
|
|
|
226972
226984
|
})({
|
|
226973
226985
|
virtualMap: i7,
|
|
226974
226986
|
projectRoot: t9.rootPath,
|
|
226975
|
-
compilerHost:
|
|
226987
|
+
compilerHost: D4.compilerHost,
|
|
226976
226988
|
rootNames: [...s7],
|
|
226977
226989
|
options: l4,
|
|
226978
226990
|
system: n7
|
|
226979
226991
|
});
|
|
226980
226992
|
}
|
|
226981
226993
|
};
|
|
226982
|
-
return
|
|
226994
|
+
return d6;
|
|
226983
226995
|
}, resolveDefaultLibsPath = (t9) => {
|
|
226984
226996
|
var r8 = import_typescript5.default.getDefaultLibFilePath({});
|
|
226985
226997
|
if (!import_typescript5.default.sys.fileExists(r8)) {
|
|
@@ -246456,6 +246468,90 @@ var require_public_api = __commonJS((exports) => {
|
|
|
246456
246468
|
exports.stringify = stringify5;
|
|
246457
246469
|
});
|
|
246458
246470
|
|
|
246471
|
+
// ../../node_modules/.bun/which@5.0.0/node_modules/which/lib/index.js
|
|
246472
|
+
var require_lib13 = __commonJS((exports, module) => {
|
|
246473
|
+
var { isexe, sync: isexeSync } = require_cjs();
|
|
246474
|
+
var { join: join10, delimiter, sep: sep4, posix: posix2 } = __require("path");
|
|
246475
|
+
var isWindows2 = process.platform === "win32";
|
|
246476
|
+
var rSlash = new RegExp(`[${posix2.sep}${sep4 === posix2.sep ? "" : sep4}]`.replace(/(\\)/g, "\\$1"));
|
|
246477
|
+
var rRel = new RegExp(`^\\.${rSlash.source}`);
|
|
246478
|
+
var getNotFoundError2 = (cmd2) => Object.assign(new Error(`not found: ${cmd2}`), { code: "ENOENT" });
|
|
246479
|
+
var getPathInfo2 = (cmd2, {
|
|
246480
|
+
path: optPath = process.env.PATH,
|
|
246481
|
+
pathExt: optPathExt = process.env.PATHEXT,
|
|
246482
|
+
delimiter: optDelimiter = delimiter
|
|
246483
|
+
}) => {
|
|
246484
|
+
const pathEnv = cmd2.match(rSlash) ? [""] : [
|
|
246485
|
+
...isWindows2 ? [process.cwd()] : [],
|
|
246486
|
+
...(optPath || "").split(optDelimiter)
|
|
246487
|
+
];
|
|
246488
|
+
if (isWindows2) {
|
|
246489
|
+
const pathExtExe = optPathExt || [".EXE", ".CMD", ".BAT", ".COM"].join(optDelimiter);
|
|
246490
|
+
const pathExt = pathExtExe.split(optDelimiter).flatMap((item) => [item, item.toLowerCase()]);
|
|
246491
|
+
if (cmd2.includes(".") && pathExt[0] !== "") {
|
|
246492
|
+
pathExt.unshift("");
|
|
246493
|
+
}
|
|
246494
|
+
return { pathEnv, pathExt, pathExtExe };
|
|
246495
|
+
}
|
|
246496
|
+
return { pathEnv, pathExt: [""] };
|
|
246497
|
+
};
|
|
246498
|
+
var getPathPart = (raw, cmd2) => {
|
|
246499
|
+
const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
|
|
246500
|
+
const prefix = !pathPart && rRel.test(cmd2) ? cmd2.slice(0, 2) : "";
|
|
246501
|
+
return prefix + join10(pathPart, cmd2);
|
|
246502
|
+
};
|
|
246503
|
+
var which = async (cmd2, opt2 = {}) => {
|
|
246504
|
+
const { pathEnv, pathExt, pathExtExe } = getPathInfo2(cmd2, opt2);
|
|
246505
|
+
const found = [];
|
|
246506
|
+
for (const envPart of pathEnv) {
|
|
246507
|
+
const p7 = getPathPart(envPart, cmd2);
|
|
246508
|
+
for (const ext2 of pathExt) {
|
|
246509
|
+
const withExt = p7 + ext2;
|
|
246510
|
+
const is = await isexe(withExt, { pathExt: pathExtExe, ignoreErrors: true });
|
|
246511
|
+
if (is) {
|
|
246512
|
+
if (!opt2.all) {
|
|
246513
|
+
return withExt;
|
|
246514
|
+
}
|
|
246515
|
+
found.push(withExt);
|
|
246516
|
+
}
|
|
246517
|
+
}
|
|
246518
|
+
}
|
|
246519
|
+
if (opt2.all && found.length) {
|
|
246520
|
+
return found;
|
|
246521
|
+
}
|
|
246522
|
+
if (opt2.nothrow) {
|
|
246523
|
+
return null;
|
|
246524
|
+
}
|
|
246525
|
+
throw getNotFoundError2(cmd2);
|
|
246526
|
+
};
|
|
246527
|
+
var whichSync = (cmd2, opt2 = {}) => {
|
|
246528
|
+
const { pathEnv, pathExt, pathExtExe } = getPathInfo2(cmd2, opt2);
|
|
246529
|
+
const found = [];
|
|
246530
|
+
for (const pathEnvPart of pathEnv) {
|
|
246531
|
+
const p7 = getPathPart(pathEnvPart, cmd2);
|
|
246532
|
+
for (const ext2 of pathExt) {
|
|
246533
|
+
const withExt = p7 + ext2;
|
|
246534
|
+
const is = isexeSync(withExt, { pathExt: pathExtExe, ignoreErrors: true });
|
|
246535
|
+
if (is) {
|
|
246536
|
+
if (!opt2.all) {
|
|
246537
|
+
return withExt;
|
|
246538
|
+
}
|
|
246539
|
+
found.push(withExt);
|
|
246540
|
+
}
|
|
246541
|
+
}
|
|
246542
|
+
}
|
|
246543
|
+
if (opt2.all && found.length) {
|
|
246544
|
+
return found;
|
|
246545
|
+
}
|
|
246546
|
+
if (opt2.nothrow) {
|
|
246547
|
+
return null;
|
|
246548
|
+
}
|
|
246549
|
+
throw getNotFoundError2(cmd2);
|
|
246550
|
+
};
|
|
246551
|
+
module.exports = which;
|
|
246552
|
+
which.sync = whichSync;
|
|
246553
|
+
});
|
|
246554
|
+
|
|
246459
246555
|
// ../../node_modules/.bun/@commander-js+extra-typings@14.0.0+60937f1bee5c4006/node_modules/@commander-js/extra-typings/esm.mjs
|
|
246460
246556
|
var import__ = __toESM(require_extra_typings(), 1);
|
|
246461
246557
|
var {
|
|
@@ -266811,7 +266907,7 @@ function pruneCurrentEnv(currentEnv, env2) {
|
|
|
266811
266907
|
var package_default = {
|
|
266812
266908
|
name: "@settlemint/sdk-cli",
|
|
266813
266909
|
description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
|
|
266814
|
-
version: "2.6.4-
|
|
266910
|
+
version: "2.6.4-pr218a185b",
|
|
266815
266911
|
type: "module",
|
|
266816
266912
|
private: false,
|
|
266817
266913
|
license: "FSL-1.1-MIT",
|
|
@@ -266853,7 +266949,7 @@ var package_default = {
|
|
|
266853
266949
|
prepack: "cp ../../LICENSE ."
|
|
266854
266950
|
},
|
|
266855
266951
|
dependencies: {
|
|
266856
|
-
"@gql.tada/cli-utils": "1.7.
|
|
266952
|
+
"@gql.tada/cli-utils": "1.7.2",
|
|
266857
266953
|
"@inquirer/core": "10.3.1",
|
|
266858
266954
|
"node-fetch-native": "1.6.7",
|
|
266859
266955
|
zod: "^4"
|
|
@@ -266865,10 +266961,10 @@ var package_default = {
|
|
|
266865
266961
|
"@inquirer/input": "4.3.0",
|
|
266866
266962
|
"@inquirer/password": "4.0.21",
|
|
266867
266963
|
"@inquirer/select": "4.4.0",
|
|
266868
|
-
"@settlemint/sdk-hasura": "2.6.4-
|
|
266869
|
-
"@settlemint/sdk-js": "2.6.4-
|
|
266870
|
-
"@settlemint/sdk-utils": "2.6.4-
|
|
266871
|
-
"@settlemint/sdk-viem": "2.6.4-
|
|
266964
|
+
"@settlemint/sdk-hasura": "2.6.4-pr218a185b",
|
|
266965
|
+
"@settlemint/sdk-js": "2.6.4-pr218a185b",
|
|
266966
|
+
"@settlemint/sdk-utils": "2.6.4-pr218a185b",
|
|
266967
|
+
"@settlemint/sdk-viem": "2.6.4-pr218a185b",
|
|
266872
266968
|
"@types/node": "24.10.0",
|
|
266873
266969
|
"@types/semver": "7.7.1",
|
|
266874
266970
|
"@types/which": "3.0.4",
|
|
@@ -266878,14 +266974,14 @@ var package_default = {
|
|
|
266878
266974
|
semver: "7.7.3",
|
|
266879
266975
|
slugify: "1.6.6",
|
|
266880
266976
|
viem: "2.38.6",
|
|
266881
|
-
which: "
|
|
266977
|
+
which: "5.0.0",
|
|
266882
266978
|
yaml: "2.8.1",
|
|
266883
266979
|
yoctocolors: "2.1.2",
|
|
266884
266980
|
"yocto-spinner": "^1.0.0"
|
|
266885
266981
|
},
|
|
266886
266982
|
peerDependencies: {
|
|
266887
266983
|
hardhat: "<= 4",
|
|
266888
|
-
"@settlemint/sdk-js": "2.6.4-
|
|
266984
|
+
"@settlemint/sdk-js": "2.6.4-pr218a185b"
|
|
266889
266985
|
},
|
|
266890
266986
|
peerDependenciesMeta: {
|
|
266891
266987
|
hardhat: {
|
|
@@ -270845,7 +270941,7 @@ async function isSdkInstalledGlobally() {
|
|
|
270845
270941
|
}
|
|
270846
270942
|
}
|
|
270847
270943
|
|
|
270848
|
-
// ../../node_modules/.bun/@gql.tada+cli-utils@1.7.
|
|
270944
|
+
// ../../node_modules/.bun/@gql.tada+cli-utils@1.7.2+1fb4c65d43e298b9/node_modules/@gql.tada/cli-utils/dist/gql-tada-cli.mjs
|
|
270849
270945
|
init_index_chunk();
|
|
270850
270946
|
|
|
270851
270947
|
// src/commands/codegen/utils/write-template.ts
|
|
@@ -306556,7 +306652,7 @@ function formatUseCaseName(name3) {
|
|
|
306556
306652
|
}
|
|
306557
306653
|
|
|
306558
306654
|
// src/utils/smart-contract-set/execute-foundry-command.ts
|
|
306559
|
-
var import_which = __toESM(
|
|
306655
|
+
var import_which = __toESM(require_lib13(), 1);
|
|
306560
306656
|
async function executeFoundryCommand(command, args) {
|
|
306561
306657
|
try {
|
|
306562
306658
|
await import_which.default(command);
|
|
@@ -307878,4 +307974,4 @@ async function sdkCliCommand(argv = process.argv) {
|
|
|
307878
307974
|
// src/cli.ts
|
|
307879
307975
|
sdkCliCommand();
|
|
307880
307976
|
|
|
307881
|
-
//# debugId=
|
|
307977
|
+
//# debugId=85466E5C3FDD082B64756E2164756E21
|