@settlemint/sdk-cli 2.6.4-maindb9c7861 → 2.6.4-pr0fa04ac2

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 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.2+1fb4c65d43e298b9/node_modules/@gql.tada/cli-utils/dist/chunks/index-chunk2.mjs
221086
+ // ../../node_modules/.bun/@gql.tada+cli-utils@1.7.1+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.2+1fb4c65d43e298b9/node_modules/@gql.tada/cli-utils/dist/chunks/thread-chunk.mjs
221355
+ // ../../node_modules/.bun/@gql.tada+cli-utils@1.7.1+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.2+1fb4c65d43e298b9/node_modules/@gql.tada/cli-utils/dist/chunks/thread-chunk2.mjs
222163
+ // ../../node_modules/.bun/@gql.tada+cli-utils@1.7.1+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: () => s6
222166
+ runTurbo: () => n6
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 s6;
222172
+ var n6;
222173
222173
  if (import_typescript3.default.isIdentifier(o6)) {
222174
- s6 = o6;
222174
+ n6 = o6;
222175
222175
  } else if (import_typescript3.default.isPropertyAccessExpression(o6) && import_typescript3.default.isIdentifier(o6.expression)) {
222176
- s6 = o6.expression;
222176
+ n6 = o6.expression;
222177
222177
  }
222178
- if (!s6) {
222178
+ if (!n6) {
222179
222179
  return;
222180
222180
  }
222181
- var n6 = i6.getSymbolAtLocation(s6);
222182
- if (!n6 || !n6.declarations) {
222181
+ var s6 = i6.getSymbolAtLocation(n6);
222182
+ if (!s6 || !s6.declarations) {
222183
222183
  return;
222184
222184
  }
222185
- for (var l3 of n6.declarations) {
222185
+ for (var l3 of s6.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 s6 = import_typescript3.default.resolveModuleName(r7, a7.fileName, i6, o6);
222207
- if (s6.resolvedModule) {
222208
- return s6.resolvedModule.resolvedFileName;
222206
+ var n6 = import_typescript3.default.resolveModuleName(r7, a7.fileName, i6, o6);
222207
+ if (n6.resolvedModule) {
222208
+ return n6.resolvedModule.resolvedFileName;
222209
222209
  }
222210
222210
  return;
222211
222211
  }
222212
- function collectImportsFromSourceFile(a7, t7, i6, o6, s6) {
222212
+ function collectImportsFromSourceFile(a7, t7, i6, o6) {
222213
222213
  var n6 = [];
222214
- var l3 = function getTadaOutputPaths(e9) {
222214
+ var s6 = 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, s6) {
222220
222220
  }(t7);
222221
222221
  (function visit(t8) {
222222
222222
  if (import_typescript3.default.isImportDeclaration(t8) && import_typescript3.default.isStringLiteral(t8.moduleSpecifier)) {
222223
- var u6 = t8.moduleSpecifier.text;
222223
+ var l3 = t8.moduleSpecifier.text;
222224
222224
  if (!function isTadaImport(e9, a8, t9) {
222225
222225
  if (e9.startsWith(".")) {
222226
222226
  var i7 = r6.dirname(a8);
@@ -222231,27 +222231,20 @@ function collectImportsFromSourceFile(a7, t7, i6, o6, s6) {
222231
222231
  });
222232
222232
  }
222233
222233
  return t9.some((r7) => e9 === r7 || e9.startsWith(r7 + "/"));
222234
- }(u6, a7.fileName, l3)) {
222235
- var c4 = t8.getFullText().trim();
222234
+ }(l3, a7.fileName, s6)) {
222235
+ var u6 = t8.getFullText().trim();
222236
222236
  if (o6) {
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")) {
222237
+ var c4 = i6(l3, a7.fileName, o6).replace(/\.ts$/, "").replace(/\.tsx$/, "");
222238
+ if (c4 && !c4.includes("gql.tada")) {
222246
222239
  n6.push({
222247
- specifier: p4,
222248
- importClause: c4.replace(u6, p4)
222240
+ specifier: c4,
222241
+ importClause: u6.replace(l3, c4)
222249
222242
  });
222250
222243
  }
222251
222244
  } else {
222252
222245
  n6.push({
222253
- specifier: u6,
222254
- importClause: c4
222246
+ specifier: l3,
222247
+ importClause: u6
222255
222248
  });
222256
222249
  }
222257
222250
  }
@@ -222260,37 +222253,37 @@ function collectImportsFromSourceFile(a7, t7, i6, o6, s6) {
222260
222253
  })(a7);
222261
222254
  return n6;
222262
222255
  }
222263
- var import_typescript3, s6, n6, l3;
222256
+ var import_typescript3, n6, s6, l3;
222264
222257
  var init_thread_chunk2 = __esm(() => {
222265
222258
  init_gql_tada_internal();
222266
222259
  init_api();
222267
222260
  init_index_chunk2();
222268
222261
  init_index_chunk();
222269
222262
  import_typescript3 = __toESM(require_typescript(), 1);
222270
- s6 = expose(async function* _runTurbo(r7) {
222263
+ n6 = expose(async function* _runTurbo(r7) {
222271
222264
  var i6 = getSchemaNamesFromConfig(r7.pluginConfig);
222272
- var s7 = programFactory(r7);
222273
- s7.addSourceFile({
222265
+ var n7 = programFactory(r7);
222266
+ n7.addSourceFile({
222274
222267
  fileId: "__gql-tada-override__.d.ts",
222275
222268
  sourceText: l3,
222276
222269
  scriptKind: import_typescript3.default.ScriptKind.TS
222277
222270
  });
222278
- var u6 = s7.createExternalFiles();
222271
+ var u6 = n7.createExternalFiles();
222279
222272
  if (u6.length) {
222280
222273
  yield {
222281
222274
  kind: "EXTERNAL_WARNING"
222282
222275
  };
222283
- await s7.addVirtualFiles(u6);
222276
+ await n7.addVirtualFiles(u6);
222284
222277
  }
222285
- var c4 = s7.build();
222278
+ var c4 = n7.build();
222286
222279
  var p4 = c4.buildPluginInfo(r7.pluginConfig);
222287
222280
  var m5 = c4.getSourceFiles();
222288
222281
  yield {
222289
222282
  kind: "FILE_COUNT",
222290
222283
  fileCount: m5.length
222291
222284
  };
222292
- var d5 = c4.program.getTypeChecker();
222293
- var f4 = new Map;
222285
+ var f4 = c4.program.getTypeChecker();
222286
+ var d5 = new Map;
222294
222287
  for (var v5 of m5) {
222295
222288
  var g5 = v5.fileName;
222296
222289
  var h5 = [];
@@ -222313,19 +222306,19 @@ var init_thread_chunk2 = __esm(() => {
222313
222306
  return 0;
222314
222307
  }
222315
222308
  var l3 = traceCallToImportSource(t7, v5, c4.program);
222316
- if (l3 && !f4.has(l3)) {
222309
+ if (l3 && !d5.has(l3)) {
222317
222310
  var u7 = c4.program.getSourceFile(l3);
222318
222311
  if (u7) {
222319
222312
  var p5 = Array.isArray(r7.turboOutputPath) ? r7.turboOutputPath.find((e9) => e9.schemaName === a7.schema)?.path : r7.turboOutputPath;
222320
- var m6 = collectImportsFromSourceFile(u7, r7.pluginConfig, s7.resolveModuleName.bind(s7), p5, !!s7.wasOriginallyNodeNext);
222321
- f4.set(l3, {
222313
+ var m6 = collectImportsFromSourceFile(u7, r7.pluginConfig, n7.resolveModuleName.bind(n7), p5);
222314
+ d5.set(l3, {
222322
222315
  absolutePath: l3,
222323
222316
  imports: m6
222324
222317
  });
222325
222318
  }
222326
222319
  }
222327
- var T5 = d5.getTypeAtLocation(t7);
222328
- var F5 = d5.getTypeAtLocation(a7.node);
222320
+ var T5 = f4.getTypeAtLocation(t7);
222321
+ var F5 = f4.getTypeAtLocation(a7.node);
222329
222322
  if (!T5.symbol || T5.symbol.getEscapedName() !== "TadaDocumentNode") {
222330
222323
  y4.push({
222331
222324
  message: `The discovered document is not of type "TadaDocumentNode".
@@ -222336,8 +222329,8 @@ If this is unexpected, please file an issue describing your case.`,
222336
222329
  });
222337
222330
  return 0;
222338
222331
  }
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);
222332
+ var S5 = "value" in F5 && typeof F5.value == "string" && !(F5.flags & import_typescript3.default.TypeFlags.StringLiteral) ? JSON.stringify(F5.value) : f4.typeToString(F5, t7, s6);
222333
+ var N5 = f4.typeToString(T5, t7, s6);
222341
222334
  h5.push({
222342
222335
  schemaName: a7.schema,
222343
222336
  argumentKey: S5,
@@ -222356,14 +222349,14 @@ If this is unexpected, please file an issue describing your case.`,
222356
222349
  warnings: y4
222357
222350
  };
222358
222351
  }
222359
- if (f4.size > 0) {
222352
+ if (d5.size > 0) {
222360
222353
  yield {
222361
222354
  kind: "GRAPHQL_SOURCES",
222362
- sources: Array.from(f4.values())
222355
+ sources: Array.from(d5.values())
222363
222356
  };
222364
222357
  }
222365
222358
  });
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;
222359
+ s6 = 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;
222367
222360
  l3 = `
222368
222361
  import * as _gqlTada from 'gql.tada';
222369
222362
  declare module 'gql.tada' {
@@ -222374,7 +222367,7 @@ declare module 'gql.tada' {
222374
222367
  `.trim();
222375
222368
  });
222376
222369
 
222377
- // ../../node_modules/.bun/@gql.tada+cli-utils@1.7.2+1fb4c65d43e298b9/node_modules/@gql.tada/cli-utils/dist/chunks/thread-chunk3.mjs
222370
+ // ../../node_modules/.bun/@gql.tada+cli-utils@1.7.1+1fb4c65d43e298b9/node_modules/@gql.tada/cli-utils/dist/chunks/thread-chunk3.mjs
222378
222371
  var exports_thread_chunk3 = {};
222379
222372
  __export(exports_thread_chunk3, {
222380
222373
  runDiagnostics: () => t7
@@ -222453,7 +222446,7 @@ var init_thread_chunk3 = __esm(() => {
222453
222446
  });
222454
222447
  });
222455
222448
 
222456
- // ../../node_modules/.bun/@gql.tada+cli-utils@1.7.2+1fb4c65d43e298b9/node_modules/@gql.tada/cli-utils/dist/chunks/index-chunk.mjs
222449
+ // ../../node_modules/.bun/@gql.tada+cli-utils@1.7.1+1fb4c65d43e298b9/node_modules/@gql.tada/cli-utils/dist/chunks/index-chunk.mjs
222457
222450
  import * as e10 from "node:path";
222458
222451
  import t8, { dirname as r7 } from "node:path";
222459
222452
  import * as d5 from "node:fs/promises";
@@ -226257,7 +226250,7 @@ ${Bt.gray(Yt)} ${e12}
226257
226250
  `);
226258
226251
  })("Off to the races!");
226259
226252
  }
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) => {
226253
+ var import_graphql10, import_typescript5, __dirname = "/home/runner/work/sdk/sdk/node_modules/.bun/@gql.tada+cli-utils@1.7.1+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) => {
226261
226254
  var t9 = JSON.stringify(e12);
226262
226255
  if (e12.match(/\s/) || e12.length === 0 || t9 !== `"${e12}"`) {
226263
226256
  return t9;
@@ -226806,19 +226799,14 @@ var import_graphql10, import_typescript5, __dirname = "/home/runner/work/sdk/sdk
226806
226799
  getDefaultLibFilePath: import_typescript5.default.getDefaultLibFilePath(a7.options),
226807
226800
  ...a7.options
226808
226801
  };
226809
- var c4 = false;
226810
226802
  if ("Bundler" in import_typescript5.default.ModuleResolutionKind && (l4.moduleResolution === import_typescript5.default.ModuleResolutionKind.NodeNext || l4.moduleResolution === import_typescript5.default.ModuleResolutionKind.Node16)) {
226811
- c4 = true;
226812
226803
  l4.moduleResolution = import_typescript5.default.ModuleResolutionKind.Bundler;
226813
226804
  }
226814
- var D4 = createVirtualCompilerHost(n7, l4, import_typescript5.default);
226815
- var d6 = {
226805
+ var c4 = createVirtualCompilerHost(n7, l4, import_typescript5.default);
226806
+ var D4 = {
226816
226807
  get projectPath() {
226817
226808
  return t9.rootPath;
226818
226809
  },
226819
- get wasOriginallyNodeNext() {
226820
- return c4;
226821
- },
226822
226810
  get projectDirectories() {
226823
226811
  var r9 = new Set([t9.rootPath]);
226824
226812
  for (var i8 of s7) {
@@ -226834,13 +226822,13 @@ var import_graphql10, import_typescript5, __dirname = "/home/runner/work/sdk/sdk
226834
226822
  for (var c5 of s7) {
226835
226823
  l5.add(e10.dirname(c5));
226836
226824
  }
226837
- for (var D5 of l5) {
226838
- for (var f5 of n7.readDirectory(D5, r9, ["**/node_modules"])) {
226825
+ for (var d6 of l5) {
226826
+ for (var f5 of n7.readDirectory(d6, r9, ["**/node_modules"])) {
226839
226827
  if (!a8.has(f5)) {
226840
226828
  a8.add(f5);
226841
226829
  var p5 = n7.readFile(f5, "utf8");
226842
226830
  if (p5) {
226843
- i8.push(d6.createSourceFile({
226831
+ i8.push(D4.createSourceFile({
226844
226832
  fileId: f5,
226845
226833
  sourceText: p5
226846
226834
  }, import_typescript5.default.ScriptKind.External));
@@ -226851,13 +226839,13 @@ var import_graphql10, import_typescript5, __dirname = "/home/runner/work/sdk/sdk
226851
226839
  return i8;
226852
226840
  },
226853
226841
  addSourceFile(e11) {
226854
- var t10 = "fileName" in e11 ? e11 : d6.createSourceFile(e11, import_typescript5.default.ScriptKind.TSX);
226855
- D4.updateFile(t10);
226842
+ var t10 = "fileName" in e11 ? e11 : D4.createSourceFile(e11, import_typescript5.default.ScriptKind.TSX);
226843
+ c4.updateFile(t10);
226856
226844
  s7.add(t10.fileName);
226857
- return d6;
226845
+ return D4;
226858
226846
  },
226859
226847
  addMappedFile(e11, t10) {
226860
- var r9 = "fileName" in e11 ? e11 : d6.createSourceFile(e11, import_typescript5.default.ScriptKind.External);
226848
+ var r9 = "fileName" in e11 ? e11 : D4.createSourceFile(e11, import_typescript5.default.ScriptKind.External);
226861
226849
  if (t10.mappings.length) {
226862
226850
  s7.delete(r9.fileName);
226863
226851
  }
@@ -226868,14 +226856,14 @@ var import_graphql10, import_typescript5, __dirname = "/home/runner/work/sdk/sdk
226868
226856
  });
226869
226857
  i7.set(n8.sourceFileId, n8);
226870
226858
  i7.set(n8.generatedFileId, n8);
226871
- return d6;
226859
+ return D4;
226872
226860
  },
226873
226861
  async addVirtualFiles(e11) {
226874
226862
  for (var t10 of e11) {
226875
226863
  var r9 = `${t10.fileName}.ts`;
226876
226864
  var i8 = await transform2(t10);
226877
226865
  if (i8) {
226878
- d6.addSourceFile({
226866
+ D4.addSourceFile({
226879
226867
  fileId: r9,
226880
226868
  sourceText: i8.snapshot
226881
226869
  }).addMappedFile(t10, {
@@ -226884,25 +226872,25 @@ var import_graphql10, import_typescript5, __dirname = "/home/runner/work/sdk/sdk
226884
226872
  });
226885
226873
  }
226886
226874
  }
226887
- return d6;
226875
+ return D4;
226888
226876
  },
226889
226877
  resolveModuleName(t10, r9, i8) {
226890
226878
  if (!t10.startsWith(".")) {
226891
226879
  return t10;
226892
226880
  }
226893
- var n8 = import_typescript5.default.resolveModuleName(t10, r9, l4, D4.compilerHost);
226881
+ var n8 = import_typescript5.default.resolveModuleName(t10, r9, l4, c4.compilerHost);
226894
226882
  if (n8.resolvedModule) {
226895
226883
  var a8 = n8.resolvedModule.resolvedFileName;
226896
226884
  var s8 = e10.dirname(i8);
226897
- var c5 = e10.relative(s8, a8);
226898
- if (!c5.startsWith(".")) {
226899
- c5 = "./" + c5;
226885
+ var D5 = e10.relative(s8, a8);
226886
+ if (!D5.startsWith(".")) {
226887
+ D5 = "./" + D5;
226900
226888
  }
226901
- return c5.replace(/\\/g, "/");
226889
+ return D5.replace(/\\/g, "/");
226902
226890
  }
226903
- var d7 = e10.dirname(r9);
226891
+ var d6 = e10.dirname(r9);
226904
226892
  var f5 = e10.dirname(i8);
226905
- var p5 = e10.resolve(d7, t10);
226893
+ var p5 = e10.resolve(d6, t10);
226906
226894
  var h6 = e10.relative(f5, p5);
226907
226895
  if (!h6.startsWith(".")) {
226908
226896
  h6 = "./" + h6;
@@ -226984,14 +226972,14 @@ var import_graphql10, import_typescript5, __dirname = "/home/runner/work/sdk/sdk
226984
226972
  })({
226985
226973
  virtualMap: i7,
226986
226974
  projectRoot: t9.rootPath,
226987
- compilerHost: D4.compilerHost,
226975
+ compilerHost: c4.compilerHost,
226988
226976
  rootNames: [...s7],
226989
226977
  options: l4,
226990
226978
  system: n7
226991
226979
  });
226992
226980
  }
226993
226981
  };
226994
- return d6;
226982
+ return D4;
226995
226983
  }, resolveDefaultLibsPath = (t9) => {
226996
226984
  var r8 = import_typescript5.default.getDefaultLibFilePath({});
226997
226985
  if (!import_typescript5.default.sys.fileExists(r8)) {
@@ -246468,90 +246456,6 @@ var require_public_api = __commonJS((exports) => {
246468
246456
  exports.stringify = stringify5;
246469
246457
  });
246470
246458
 
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
-
246555
246459
  // ../../node_modules/.bun/@commander-js+extra-typings@14.0.0+60937f1bee5c4006/node_modules/@commander-js/extra-typings/esm.mjs
246556
246460
  var import__ = __toESM(require_extra_typings(), 1);
246557
246461
  var {
@@ -266907,7 +266811,7 @@ function pruneCurrentEnv(currentEnv, env2) {
266907
266811
  var package_default = {
266908
266812
  name: "@settlemint/sdk-cli",
266909
266813
  description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
266910
- version: "2.6.4-maindb9c7861",
266814
+ version: "2.6.4-pr0fa04ac2",
266911
266815
  type: "module",
266912
266816
  private: false,
266913
266817
  license: "FSL-1.1-MIT",
@@ -266949,7 +266853,7 @@ var package_default = {
266949
266853
  prepack: "cp ../../LICENSE ."
266950
266854
  },
266951
266855
  dependencies: {
266952
- "@gql.tada/cli-utils": "1.7.2",
266856
+ "@gql.tada/cli-utils": "1.7.1",
266953
266857
  "@inquirer/core": "10.3.1",
266954
266858
  "node-fetch-native": "1.6.7",
266955
266859
  zod: "^4"
@@ -266961,10 +266865,10 @@ var package_default = {
266961
266865
  "@inquirer/input": "4.3.0",
266962
266866
  "@inquirer/password": "4.0.21",
266963
266867
  "@inquirer/select": "4.4.0",
266964
- "@settlemint/sdk-hasura": "2.6.4-maindb9c7861",
266965
- "@settlemint/sdk-js": "2.6.4-maindb9c7861",
266966
- "@settlemint/sdk-utils": "2.6.4-maindb9c7861",
266967
- "@settlemint/sdk-viem": "2.6.4-maindb9c7861",
266868
+ "@settlemint/sdk-hasura": "2.6.4-pr0fa04ac2",
266869
+ "@settlemint/sdk-js": "2.6.4-pr0fa04ac2",
266870
+ "@settlemint/sdk-utils": "2.6.4-pr0fa04ac2",
266871
+ "@settlemint/sdk-viem": "2.6.4-pr0fa04ac2",
266968
266872
  "@types/node": "24.10.0",
266969
266873
  "@types/semver": "7.7.1",
266970
266874
  "@types/which": "3.0.4",
@@ -266974,14 +266878,14 @@ var package_default = {
266974
266878
  semver: "7.7.3",
266975
266879
  slugify: "1.6.6",
266976
266880
  viem: "2.38.6",
266977
- which: "5.0.0",
266881
+ which: "6.0.0",
266978
266882
  yaml: "2.8.1",
266979
266883
  yoctocolors: "2.1.2",
266980
266884
  "yocto-spinner": "^1.0.0"
266981
266885
  },
266982
266886
  peerDependencies: {
266983
266887
  hardhat: "<= 4",
266984
- "@settlemint/sdk-js": "2.6.4-maindb9c7861"
266888
+ "@settlemint/sdk-js": "2.6.4-pr0fa04ac2"
266985
266889
  },
266986
266890
  peerDependenciesMeta: {
266987
266891
  hardhat: {
@@ -270941,7 +270845,7 @@ async function isSdkInstalledGlobally() {
270941
270845
  }
270942
270846
  }
270943
270847
 
270944
- // ../../node_modules/.bun/@gql.tada+cli-utils@1.7.2+1fb4c65d43e298b9/node_modules/@gql.tada/cli-utils/dist/gql-tada-cli.mjs
270848
+ // ../../node_modules/.bun/@gql.tada+cli-utils@1.7.1+1fb4c65d43e298b9/node_modules/@gql.tada/cli-utils/dist/gql-tada-cli.mjs
270945
270849
  init_index_chunk();
270946
270850
 
270947
270851
  // src/commands/codegen/utils/write-template.ts
@@ -306652,7 +306556,7 @@ function formatUseCaseName(name3) {
306652
306556
  }
306653
306557
 
306654
306558
  // src/utils/smart-contract-set/execute-foundry-command.ts
306655
- var import_which = __toESM(require_lib13(), 1);
306559
+ var import_which = __toESM(require_lib5(), 1);
306656
306560
  async function executeFoundryCommand(command, args) {
306657
306561
  try {
306658
306562
  await import_which.default(command);
@@ -307974,4 +307878,4 @@ async function sdkCliCommand(argv = process.argv) {
307974
307878
  // src/cli.ts
307975
307879
  sdkCliCommand();
307976
307880
 
307977
- //# debugId=C184C3ACAEB6544D64756E2164756E21
307881
+ //# debugId=A51C4ED59389071B64756E2164756E21