@settlemint/sdk-cli 2.6.4-pr218a185b → 2.6.4-pr2b689b7a

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/cli.js +692 -130
  2. package/dist/cli.js.map +20 -5
  3. 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.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)) {
@@ -230804,6 +230792,126 @@ var require_slugify = __commonJS((exports, module) => {
230804
230792
  });
230805
230793
  });
230806
230794
 
230795
+ // ../../node_modules/.bun/mute-stream@2.0.0/node_modules/mute-stream/lib/index.js
230796
+ var require_lib13 = __commonJS((exports, module) => {
230797
+ var Stream2 = __require("stream");
230798
+
230799
+ class MuteStream2 extends Stream2 {
230800
+ #isTTY = null;
230801
+ constructor(opts = {}) {
230802
+ super(opts);
230803
+ this.writable = this.readable = true;
230804
+ this.muted = false;
230805
+ this.on("pipe", this._onpipe);
230806
+ this.replace = opts.replace;
230807
+ this._prompt = opts.prompt || null;
230808
+ this._hadControl = false;
230809
+ }
230810
+ #destSrc(key, def) {
230811
+ if (this._dest) {
230812
+ return this._dest[key];
230813
+ }
230814
+ if (this._src) {
230815
+ return this._src[key];
230816
+ }
230817
+ return def;
230818
+ }
230819
+ #proxy(method, ...args) {
230820
+ if (typeof this._dest?.[method] === "function") {
230821
+ this._dest[method](...args);
230822
+ }
230823
+ if (typeof this._src?.[method] === "function") {
230824
+ this._src[method](...args);
230825
+ }
230826
+ }
230827
+ get isTTY() {
230828
+ if (this.#isTTY !== null) {
230829
+ return this.#isTTY;
230830
+ }
230831
+ return this.#destSrc("isTTY", false);
230832
+ }
230833
+ set isTTY(val) {
230834
+ this.#isTTY = val;
230835
+ }
230836
+ get rows() {
230837
+ return this.#destSrc("rows");
230838
+ }
230839
+ get columns() {
230840
+ return this.#destSrc("columns");
230841
+ }
230842
+ mute() {
230843
+ this.muted = true;
230844
+ }
230845
+ unmute() {
230846
+ this.muted = false;
230847
+ }
230848
+ _onpipe(src) {
230849
+ this._src = src;
230850
+ }
230851
+ pipe(dest, options) {
230852
+ this._dest = dest;
230853
+ return super.pipe(dest, options);
230854
+ }
230855
+ pause() {
230856
+ if (this._src) {
230857
+ return this._src.pause();
230858
+ }
230859
+ }
230860
+ resume() {
230861
+ if (this._src) {
230862
+ return this._src.resume();
230863
+ }
230864
+ }
230865
+ write(c4) {
230866
+ if (this.muted) {
230867
+ if (!this.replace) {
230868
+ return true;
230869
+ }
230870
+ if (c4.match(/^\u001b/)) {
230871
+ if (c4.indexOf(this._prompt) === 0) {
230872
+ c4 = c4.slice(this._prompt.length);
230873
+ c4 = c4.replace(/./g, this.replace);
230874
+ c4 = this._prompt + c4;
230875
+ }
230876
+ this._hadControl = true;
230877
+ return this.emit("data", c4);
230878
+ } else {
230879
+ if (this._prompt && this._hadControl && c4.indexOf(this._prompt) === 0) {
230880
+ this._hadControl = false;
230881
+ this.emit("data", this._prompt);
230882
+ c4 = c4.slice(this._prompt.length);
230883
+ }
230884
+ c4 = c4.toString().replace(/./g, this.replace);
230885
+ }
230886
+ }
230887
+ this.emit("data", c4);
230888
+ }
230889
+ end(c4) {
230890
+ if (this.muted) {
230891
+ if (c4 && this.replace) {
230892
+ c4 = c4.toString().replace(/./g, this.replace);
230893
+ } else {
230894
+ c4 = null;
230895
+ }
230896
+ }
230897
+ if (c4) {
230898
+ this.emit("data", c4);
230899
+ }
230900
+ this.emit("end");
230901
+ }
230902
+ destroy(...args) {
230903
+ return this.#proxy("destroy", ...args);
230904
+ }
230905
+ destroySoon(...args) {
230906
+ return this.#proxy("destroySoon", ...args);
230907
+ }
230908
+ close(...args) {
230909
+ return this.#proxy("close", ...args);
230910
+ }
230911
+ }
230912
+ module.exports = MuteStream2;
230913
+ });
230914
+
230807
230915
  // ../../node_modules/.bun/abitype@1.1.0+0c447f3ab58cb56e/node_modules/abitype/dist/esm/version.js
230808
230916
  var version2 = "1.1.0";
230809
230917
 
@@ -244319,7 +244427,7 @@ var require_composer = __commonJS((exports) => {
244319
244427
  var node_process = __require("process");
244320
244428
  var directives4 = require_directives2();
244321
244429
  var Document = require_Document();
244322
- var errors4 = require_errors3();
244430
+ var errors5 = require_errors3();
244323
244431
  var identity2 = require_identity();
244324
244432
  var composeDoc = require_compose_doc();
244325
244433
  var resolveEnd = require_resolve_end();
@@ -244370,9 +244478,9 @@ var require_composer = __commonJS((exports) => {
244370
244478
  this.onError = (source, code2, message, warning) => {
244371
244479
  const pos = getErrorPos(source);
244372
244480
  if (warning)
244373
- this.warnings.push(new errors4.YAMLWarning(pos, code2, message));
244481
+ this.warnings.push(new errors5.YAMLWarning(pos, code2, message));
244374
244482
  else
244375
- this.errors.push(new errors4.YAMLParseError(pos, code2, message));
244483
+ this.errors.push(new errors5.YAMLParseError(pos, code2, message));
244376
244484
  };
244377
244485
  this.directives = new directives4.Directives({ version: options.version || "1.2" });
244378
244486
  this.options = options;
@@ -244456,7 +244564,7 @@ ${cb}` : comment;
244456
244564
  break;
244457
244565
  case "error": {
244458
244566
  const msg = token.source ? `${token.message}: ${JSON.stringify(token.source)}` : token.message;
244459
- const error50 = new errors4.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
244567
+ const error50 = new errors5.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
244460
244568
  if (this.atDirectives || !this.doc)
244461
244569
  this.errors.push(error50);
244462
244570
  else
@@ -244466,7 +244574,7 @@ ${cb}` : comment;
244466
244574
  case "doc-end": {
244467
244575
  if (!this.doc) {
244468
244576
  const msg = "Unexpected doc-end without preceding document";
244469
- this.errors.push(new errors4.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
244577
+ this.errors.push(new errors5.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
244470
244578
  break;
244471
244579
  }
244472
244580
  this.doc.directives.docEnd = true;
@@ -244481,7 +244589,7 @@ ${end.comment}` : end.comment;
244481
244589
  break;
244482
244590
  }
244483
244591
  default:
244484
- this.errors.push(new errors4.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
244592
+ this.errors.push(new errors5.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
244485
244593
  }
244486
244594
  }
244487
244595
  *end(forceDoc = false, endOffset = -1) {
@@ -244507,7 +244615,7 @@ ${end.comment}` : end.comment;
244507
244615
  var require_cst_scalar = __commonJS((exports) => {
244508
244616
  var resolveBlockScalar = require_resolve_block_scalar();
244509
244617
  var resolveFlowScalar = require_resolve_flow_scalar();
244510
- var errors4 = require_errors3();
244618
+ var errors5 = require_errors3();
244511
244619
  var stringifyString = require_stringifyString();
244512
244620
  function resolveAsScalar(token, strict = true, onError) {
244513
244621
  if (token) {
@@ -244516,7 +244624,7 @@ var require_cst_scalar = __commonJS((exports) => {
244516
244624
  if (onError)
244517
244625
  onError(offset, code2, message);
244518
244626
  else
244519
- throw new errors4.YAMLParseError([offset, offset + 1], code2, message);
244627
+ throw new errors5.YAMLParseError([offset, offset + 1], code2, message);
244520
244628
  };
244521
244629
  switch (token.type) {
244522
244630
  case "scalar":
@@ -246378,7 +246486,7 @@ var require_parser2 = __commonJS((exports) => {
246378
246486
  var require_public_api = __commonJS((exports) => {
246379
246487
  var composer = require_composer();
246380
246488
  var Document = require_Document();
246381
- var errors4 = require_errors3();
246489
+ var errors5 = require_errors3();
246382
246490
  var log = require_log();
246383
246491
  var identity2 = require_identity();
246384
246492
  var lineCounter = require_line_counter();
@@ -246395,8 +246503,8 @@ var require_public_api = __commonJS((exports) => {
246395
246503
  const docs = Array.from(composer$1.compose(parser$1.parse(source)));
246396
246504
  if (prettyErrors && lineCounter2)
246397
246505
  for (const doc2 of docs) {
246398
- doc2.errors.forEach(errors4.prettifyError(source, lineCounter2));
246399
- doc2.warnings.forEach(errors4.prettifyError(source, lineCounter2));
246506
+ doc2.errors.forEach(errors5.prettifyError(source, lineCounter2));
246507
+ doc2.warnings.forEach(errors5.prettifyError(source, lineCounter2));
246400
246508
  }
246401
246509
  if (docs.length > 0)
246402
246510
  return docs;
@@ -246411,13 +246519,13 @@ var require_public_api = __commonJS((exports) => {
246411
246519
  if (!doc2)
246412
246520
  doc2 = _doc;
246413
246521
  else if (doc2.options.logLevel !== "silent") {
246414
- doc2.errors.push(new errors4.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
246522
+ doc2.errors.push(new errors5.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
246415
246523
  break;
246416
246524
  }
246417
246525
  }
246418
246526
  if (prettyErrors && lineCounter2) {
246419
- doc2.errors.forEach(errors4.prettifyError(source, lineCounter2));
246420
- doc2.warnings.forEach(errors4.prettifyError(source, lineCounter2));
246527
+ doc2.errors.forEach(errors5.prettifyError(source, lineCounter2));
246528
+ doc2.warnings.forEach(errors5.prettifyError(source, lineCounter2));
246421
246529
  }
246422
246530
  return doc2;
246423
246531
  }
@@ -246469,7 +246577,7 @@ var require_public_api = __commonJS((exports) => {
246469
246577
  });
246470
246578
 
246471
246579
  // ../../node_modules/.bun/which@5.0.0/node_modules/which/lib/index.js
246472
- var require_lib13 = __commonJS((exports, module) => {
246580
+ var require_lib14 = __commonJS((exports, module) => {
246473
246581
  var { isexe, sync: isexeSync } = require_cjs();
246474
246582
  var { join: join10, delimiter, sep: sep4, posix: posix2 } = __require("path");
246475
246583
  var isWindows2 = process.platform === "win32";
@@ -266907,7 +267015,7 @@ function pruneCurrentEnv(currentEnv, env2) {
266907
267015
  var package_default = {
266908
267016
  name: "@settlemint/sdk-cli",
266909
267017
  description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
266910
- version: "2.6.4-pr218a185b",
267018
+ version: "2.6.4-pr2b689b7a",
266911
267019
  type: "module",
266912
267020
  private: false,
266913
267021
  license: "FSL-1.1-MIT",
@@ -266949,7 +267057,7 @@ var package_default = {
266949
267057
  prepack: "cp ../../LICENSE ."
266950
267058
  },
266951
267059
  dependencies: {
266952
- "@gql.tada/cli-utils": "1.7.2",
267060
+ "@gql.tada/cli-utils": "1.7.1",
266953
267061
  "@inquirer/core": "10.3.1",
266954
267062
  "node-fetch-native": "1.6.7",
266955
267063
  zod: "^4"
@@ -266958,13 +267066,13 @@ var package_default = {
266958
267066
  "@commander-js/extra-typings": "14.0.0",
266959
267067
  commander: "14.0.2",
266960
267068
  "@inquirer/confirm": "5.1.20",
266961
- "@inquirer/input": "4.3.0",
267069
+ "@inquirer/input": "4.3.1",
266962
267070
  "@inquirer/password": "4.0.21",
266963
267071
  "@inquirer/select": "4.4.0",
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",
267072
+ "@settlemint/sdk-hasura": "2.6.4-pr2b689b7a",
267073
+ "@settlemint/sdk-js": "2.6.4-pr2b689b7a",
267074
+ "@settlemint/sdk-utils": "2.6.4-pr2b689b7a",
267075
+ "@settlemint/sdk-viem": "2.6.4-pr2b689b7a",
266968
267076
  "@types/node": "24.10.0",
266969
267077
  "@types/semver": "7.7.1",
266970
267078
  "@types/which": "3.0.4",
@@ -266981,7 +267089,7 @@ var package_default = {
266981
267089
  },
266982
267090
  peerDependencies: {
266983
267091
  hardhat: "<= 4",
266984
- "@settlemint/sdk-js": "2.6.4-pr218a185b"
267092
+ "@settlemint/sdk-js": "2.6.4-pr2b689b7a"
266985
267093
  },
266986
267094
  peerDependenciesMeta: {
266987
267095
  hardhat: {
@@ -270941,7 +271049,7 @@ async function isSdkInstalledGlobally() {
270941
271049
  }
270942
271050
  }
270943
271051
 
270944
- // ../../node_modules/.bun/@gql.tada+cli-utils@1.7.2+1fb4c65d43e298b9/node_modules/@gql.tada/cli-utils/dist/gql-tada-cli.mjs
271052
+ // ../../node_modules/.bun/@gql.tada+cli-utils@1.7.1+1fb4c65d43e298b9/node_modules/@gql.tada/cli-utils/dist/gql-tada-cli.mjs
270945
271053
  init_index_chunk();
270946
271054
 
270947
271055
  // src/commands/codegen/utils/write-template.ts
@@ -272536,18 +272644,472 @@ function sanitizeName(value4, length = 35) {
272536
272644
  }).slice(0, length).replaceAll(/(^\d*)/g, "").replaceAll(/(-$)/g, "").replaceAll(/(^-)/g, "");
272537
272645
  }
272538
272646
 
272539
- // ../../node_modules/.bun/@inquirer+input@4.3.0+c30ff3a63f0500d5/node_modules/@inquirer/input/dist/esm/index.js
272647
+ // ../../node_modules/.bun/@inquirer+core@10.3.2+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/key.js
272648
+ var isBackspaceKey2 = (key) => key.name === "backspace";
272649
+ var isTabKey2 = (key) => key.name === "tab";
272650
+ var isEnterKey2 = (key) => key.name === "enter" || key.name === "return";
272651
+ // ../../node_modules/.bun/@inquirer+core@10.3.2+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/errors.js
272652
+ class AbortPromptError2 extends Error {
272653
+ name = "AbortPromptError";
272654
+ message = "Prompt was aborted";
272655
+ constructor(options) {
272656
+ super();
272657
+ this.cause = options?.cause;
272658
+ }
272659
+ }
272660
+
272661
+ class CancelPromptError2 extends Error {
272662
+ name = "CancelPromptError";
272663
+ message = "Prompt was canceled";
272664
+ }
272665
+
272666
+ class ExitPromptError2 extends Error {
272667
+ name = "ExitPromptError";
272668
+ }
272669
+
272670
+ class HookError2 extends Error {
272671
+ name = "HookError";
272672
+ }
272673
+
272674
+ class ValidationError2 extends Error {
272675
+ name = "ValidationError";
272676
+ }
272677
+ // ../../node_modules/.bun/@inquirer+core@10.3.2+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-state.js
272678
+ import { AsyncResource as AsyncResource5 } from "node:async_hooks";
272679
+
272680
+ // ../../node_modules/.bun/@inquirer+core@10.3.2+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
272681
+ import { AsyncLocalStorage as AsyncLocalStorage2, AsyncResource as AsyncResource4 } from "node:async_hooks";
272682
+ var hookStorage2 = new AsyncLocalStorage2;
272683
+ function createStore2(rl) {
272684
+ const store = {
272685
+ rl,
272686
+ hooks: [],
272687
+ hooksCleanup: [],
272688
+ hooksEffect: [],
272689
+ index: 0,
272690
+ handleChange() {}
272691
+ };
272692
+ return store;
272693
+ }
272694
+ function withHooks2(rl, cb) {
272695
+ const store = createStore2(rl);
272696
+ return hookStorage2.run(store, () => {
272697
+ function cycle(render) {
272698
+ store.handleChange = () => {
272699
+ store.index = 0;
272700
+ render();
272701
+ };
272702
+ store.handleChange();
272703
+ }
272704
+ return cb(cycle);
272705
+ });
272706
+ }
272707
+ function getStore2() {
272708
+ const store = hookStorage2.getStore();
272709
+ if (!store) {
272710
+ throw new HookError2("[Inquirer] Hook functions can only be called from within a prompt");
272711
+ }
272712
+ return store;
272713
+ }
272714
+ function readline3() {
272715
+ return getStore2().rl;
272716
+ }
272717
+ function withUpdates2(fn) {
272718
+ const wrapped = (...args) => {
272719
+ const store = getStore2();
272720
+ let shouldUpdate = false;
272721
+ const oldHandleChange = store.handleChange;
272722
+ store.handleChange = () => {
272723
+ shouldUpdate = true;
272724
+ };
272725
+ const returnValue = fn(...args);
272726
+ if (shouldUpdate) {
272727
+ oldHandleChange();
272728
+ }
272729
+ store.handleChange = oldHandleChange;
272730
+ return returnValue;
272731
+ };
272732
+ return AsyncResource4.bind(wrapped);
272733
+ }
272734
+ function withPointer2(cb) {
272735
+ const store = getStore2();
272736
+ const { index } = store;
272737
+ const pointer = {
272738
+ get() {
272739
+ return store.hooks[index];
272740
+ },
272741
+ set(value4) {
272742
+ store.hooks[index] = value4;
272743
+ },
272744
+ initialized: index in store.hooks
272745
+ };
272746
+ const returnValue = cb(pointer);
272747
+ store.index++;
272748
+ return returnValue;
272749
+ }
272750
+ function handleChange2() {
272751
+ getStore2().handleChange();
272752
+ }
272753
+ var effectScheduler2 = {
272754
+ queue(cb) {
272755
+ const store = getStore2();
272756
+ const { index } = store;
272757
+ store.hooksEffect.push(() => {
272758
+ store.hooksCleanup[index]?.();
272759
+ const cleanFn = cb(readline3());
272760
+ if (cleanFn != null && typeof cleanFn !== "function") {
272761
+ throw new ValidationError2("useEffect return value must be a cleanup function or nothing.");
272762
+ }
272763
+ store.hooksCleanup[index] = cleanFn;
272764
+ });
272765
+ },
272766
+ run() {
272767
+ const store = getStore2();
272768
+ withUpdates2(() => {
272769
+ store.hooksEffect.forEach((effect) => {
272770
+ effect();
272771
+ });
272772
+ store.hooksEffect.length = 0;
272773
+ })();
272774
+ },
272775
+ clearAll() {
272776
+ const store = getStore2();
272777
+ store.hooksCleanup.forEach((cleanFn) => {
272778
+ cleanFn?.();
272779
+ });
272780
+ store.hooksEffect.length = 0;
272781
+ store.hooksCleanup.length = 0;
272782
+ }
272783
+ };
272784
+
272785
+ // ../../node_modules/.bun/@inquirer+core@10.3.2+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-state.js
272786
+ function useState2(defaultValue) {
272787
+ return withPointer2((pointer) => {
272788
+ const setState = AsyncResource5.bind(function setState(newValue) {
272789
+ if (pointer.get() !== newValue) {
272790
+ pointer.set(newValue);
272791
+ handleChange2();
272792
+ }
272793
+ });
272794
+ if (pointer.initialized) {
272795
+ return [pointer.get(), setState];
272796
+ }
272797
+ const value4 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
272798
+ pointer.set(value4);
272799
+ return [value4, setState];
272800
+ });
272801
+ }
272802
+
272803
+ // ../../node_modules/.bun/@inquirer+core@10.3.2+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
272804
+ function useEffect2(cb, depArray) {
272805
+ withPointer2((pointer) => {
272806
+ const oldDeps = pointer.get();
272807
+ const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i7) => !Object.is(dep, oldDeps[i7]));
272808
+ if (hasChanged) {
272809
+ effectScheduler2.queue(cb);
272810
+ }
272811
+ pointer.set(depArray);
272812
+ });
272813
+ }
272814
+
272815
+ // ../../node_modules/.bun/@inquirer+core@10.3.2+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/theme.js
272816
+ var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
272817
+ var defaultTheme2 = {
272818
+ prefix: {
272819
+ idle: import_yoctocolors_cjs3.default.blue("?"),
272820
+ done: import_yoctocolors_cjs3.default.green(esm_default.tick)
272821
+ },
272822
+ spinner: {
272823
+ interval: 80,
272824
+ frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs3.default.yellow(frame))
272825
+ },
272826
+ style: {
272827
+ answer: import_yoctocolors_cjs3.default.cyan,
272828
+ message: import_yoctocolors_cjs3.default.bold,
272829
+ error: (text2) => import_yoctocolors_cjs3.default.red(`> ${text2}`),
272830
+ defaultAnswer: (text2) => import_yoctocolors_cjs3.default.dim(`(${text2})`),
272831
+ help: import_yoctocolors_cjs3.default.dim,
272832
+ highlight: import_yoctocolors_cjs3.default.cyan,
272833
+ key: (text2) => import_yoctocolors_cjs3.default.cyan(import_yoctocolors_cjs3.default.bold(`<${text2}>`))
272834
+ }
272835
+ };
272836
+
272837
+ // ../../node_modules/.bun/@inquirer+core@10.3.2+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
272838
+ function isPlainObject4(value4) {
272839
+ if (typeof value4 !== "object" || value4 === null)
272840
+ return false;
272841
+ let proto = value4;
272842
+ while (Object.getPrototypeOf(proto) !== null) {
272843
+ proto = Object.getPrototypeOf(proto);
272844
+ }
272845
+ return Object.getPrototypeOf(value4) === proto;
272846
+ }
272847
+ function deepMerge3(...objects) {
272848
+ const output = {};
272849
+ for (const obj of objects) {
272850
+ for (const [key, value4] of Object.entries(obj)) {
272851
+ const prevValue = output[key];
272852
+ output[key] = isPlainObject4(prevValue) && isPlainObject4(value4) ? deepMerge3(prevValue, value4) : value4;
272853
+ }
272854
+ }
272855
+ return output;
272856
+ }
272857
+ function makeTheme2(...themes) {
272858
+ const themesToMerge = [
272859
+ defaultTheme2,
272860
+ ...themes.filter((theme) => theme != null)
272861
+ ];
272862
+ return deepMerge3(...themesToMerge);
272863
+ }
272864
+
272865
+ // ../../node_modules/.bun/@inquirer+core@10.3.2+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
272866
+ function usePrefix2({ status = "idle", theme }) {
272867
+ const [showLoader, setShowLoader] = useState2(false);
272868
+ const [tick, setTick] = useState2(0);
272869
+ const { prefix, spinner: spinner2 } = makeTheme2(theme);
272870
+ useEffect2(() => {
272871
+ if (status === "loading") {
272872
+ let tickInterval;
272873
+ let inc = -1;
272874
+ const delayTimeout = setTimeout(() => {
272875
+ setShowLoader(true);
272876
+ tickInterval = setInterval(() => {
272877
+ inc = inc + 1;
272878
+ setTick(inc % spinner2.frames.length);
272879
+ }, spinner2.interval);
272880
+ }, 300);
272881
+ return () => {
272882
+ clearTimeout(delayTimeout);
272883
+ clearInterval(tickInterval);
272884
+ };
272885
+ } else {
272886
+ setShowLoader(false);
272887
+ }
272888
+ }, [status]);
272889
+ if (showLoader) {
272890
+ return spinner2.frames[tick];
272891
+ }
272892
+ const iconName = status === "loading" ? "idle" : status;
272893
+ return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
272894
+ }
272895
+ // ../../node_modules/.bun/@inquirer+core@10.3.2+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
272896
+ function useRef2(val) {
272897
+ return useState2({ current: val })[0];
272898
+ }
272899
+
272900
+ // ../../node_modules/.bun/@inquirer+core@10.3.2+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
272901
+ function useKeypress2(userHandler) {
272902
+ const signal = useRef2(userHandler);
272903
+ signal.current = userHandler;
272904
+ useEffect2((rl) => {
272905
+ let ignore = false;
272906
+ const handler = withUpdates2((_input, event) => {
272907
+ if (ignore)
272908
+ return;
272909
+ signal.current(event, rl);
272910
+ });
272911
+ rl.input.on("keypress", handler);
272912
+ return () => {
272913
+ ignore = true;
272914
+ rl.input.removeListener("keypress", handler);
272915
+ };
272916
+ }, []);
272917
+ }
272918
+ // ../../node_modules/.bun/@inquirer+core@10.3.2+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/utils.js
272919
+ var import_cli_width2 = __toESM(require_cli_width(), 1);
272920
+ var import_wrap_ansi2 = __toESM(require_wrap_ansi(), 1);
272921
+ function breakLines2(content, width) {
272922
+ return content.split(`
272923
+ `).flatMap((line) => import_wrap_ansi2.default(line, width, { trim: false, hard: true }).split(`
272924
+ `).map((str) => str.trimEnd())).join(`
272925
+ `);
272926
+ }
272927
+ function readlineWidth2() {
272928
+ return import_cli_width2.default({ defaultWidth: 80, output: readline3().output });
272929
+ }
272930
+
272931
+ // ../../node_modules/.bun/@inquirer+core@10.3.2+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
272932
+ var import_mute_stream2 = __toESM(require_lib13(), 1);
272933
+ import * as readline4 from "node:readline";
272934
+ import { AsyncResource as AsyncResource6 } from "node:async_hooks";
272935
+
272936
+ // ../../node_modules/.bun/@inquirer+core@10.3.2+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
272937
+ import { stripVTControlCharacters as stripVTControlCharacters3 } from "node:util";
272938
+ var height2 = (content) => content.split(`
272939
+ `).length;
272940
+ var lastLine2 = (content) => content.split(`
272941
+ `).pop() ?? "";
272942
+
272943
+ class ScreenManager2 {
272944
+ height = 0;
272945
+ extraLinesUnderPrompt = 0;
272946
+ cursorPos;
272947
+ rl;
272948
+ constructor(rl) {
272949
+ this.rl = rl;
272950
+ this.cursorPos = rl.getCursorPos();
272951
+ }
272952
+ write(content) {
272953
+ this.rl.output.unmute();
272954
+ this.rl.output.write(content);
272955
+ this.rl.output.mute();
272956
+ }
272957
+ render(content, bottomContent = "") {
272958
+ const promptLine = lastLine2(content);
272959
+ const rawPromptLine = stripVTControlCharacters3(promptLine);
272960
+ let prompt = rawPromptLine;
272961
+ if (this.rl.line.length > 0) {
272962
+ prompt = prompt.slice(0, -this.rl.line.length);
272963
+ }
272964
+ this.rl.setPrompt(prompt);
272965
+ this.cursorPos = this.rl.getCursorPos();
272966
+ const width = readlineWidth2();
272967
+ content = breakLines2(content, width);
272968
+ bottomContent = breakLines2(bottomContent, width);
272969
+ if (rawPromptLine.length % width === 0) {
272970
+ content += `
272971
+ `;
272972
+ }
272973
+ let output = content + (bottomContent ? `
272974
+ ` + bottomContent : "");
272975
+ const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
272976
+ const bottomContentHeight = promptLineUpDiff + (bottomContent ? height2(bottomContent) : 0);
272977
+ if (bottomContentHeight > 0)
272978
+ output += cursorUp(bottomContentHeight);
272979
+ output += cursorTo(this.cursorPos.cols);
272980
+ this.write(cursorDown(this.extraLinesUnderPrompt) + eraseLines(this.height) + output);
272981
+ this.extraLinesUnderPrompt = bottomContentHeight;
272982
+ this.height = height2(output);
272983
+ }
272984
+ checkCursorPos() {
272985
+ const cursorPos = this.rl.getCursorPos();
272986
+ if (cursorPos.cols !== this.cursorPos.cols) {
272987
+ this.write(cursorTo(cursorPos.cols));
272988
+ this.cursorPos = cursorPos;
272989
+ }
272990
+ }
272991
+ done({ clearContent }) {
272992
+ this.rl.setPrompt("");
272993
+ let output = cursorDown(this.extraLinesUnderPrompt);
272994
+ output += clearContent ? eraseLines(this.height) : `
272995
+ `;
272996
+ output += cursorShow;
272997
+ this.write(output);
272998
+ this.rl.close();
272999
+ }
273000
+ }
273001
+
273002
+ // ../../node_modules/.bun/@inquirer+core@10.3.2+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
273003
+ class PromisePolyfill2 extends Promise {
273004
+ static withResolver() {
273005
+ let resolve6;
273006
+ let reject;
273007
+ const promise2 = new Promise((res, rej) => {
273008
+ resolve6 = res;
273009
+ reject = rej;
273010
+ });
273011
+ return { promise: promise2, resolve: resolve6, reject };
273012
+ }
273013
+ }
273014
+
273015
+ // ../../node_modules/.bun/@inquirer+core@10.3.2+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
273016
+ function getCallSites2() {
273017
+ const _prepareStackTrace = Error.prepareStackTrace;
273018
+ let result = [];
273019
+ try {
273020
+ Error.prepareStackTrace = (_6, callSites) => {
273021
+ const callSitesWithoutCurrent = callSites.slice(1);
273022
+ result = callSitesWithoutCurrent;
273023
+ return callSitesWithoutCurrent;
273024
+ };
273025
+ new Error().stack;
273026
+ } catch {
273027
+ return result;
273028
+ }
273029
+ Error.prepareStackTrace = _prepareStackTrace;
273030
+ return result;
273031
+ }
273032
+ function createPrompt2(view) {
273033
+ const callSites = getCallSites2();
273034
+ const prompt = (config3, context = {}) => {
273035
+ const { input = process.stdin, signal } = context;
273036
+ const cleanups = new Set;
273037
+ const output = new import_mute_stream2.default;
273038
+ output.pipe(context.output ?? process.stdout);
273039
+ const rl = readline4.createInterface({
273040
+ terminal: true,
273041
+ input,
273042
+ output
273043
+ });
273044
+ const screen = new ScreenManager2(rl);
273045
+ const { promise: promise2, resolve: resolve6, reject } = PromisePolyfill2.withResolver();
273046
+ const cancel3 = () => reject(new CancelPromptError2);
273047
+ if (signal) {
273048
+ const abort = () => reject(new AbortPromptError2({ cause: signal.reason }));
273049
+ if (signal.aborted) {
273050
+ abort();
273051
+ return Object.assign(promise2, { cancel: cancel3 });
273052
+ }
273053
+ signal.addEventListener("abort", abort);
273054
+ cleanups.add(() => signal.removeEventListener("abort", abort));
273055
+ }
273056
+ cleanups.add(onExit((code2, signal2) => {
273057
+ reject(new ExitPromptError2(`User force closed the prompt with ${code2} ${signal2}`));
273058
+ }));
273059
+ const sigint = () => reject(new ExitPromptError2(`User force closed the prompt with SIGINT`));
273060
+ rl.on("SIGINT", sigint);
273061
+ cleanups.add(() => rl.removeListener("SIGINT", sigint));
273062
+ const checkCursorPos = () => screen.checkCursorPos();
273063
+ rl.input.on("keypress", checkCursorPos);
273064
+ cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
273065
+ return withHooks2(rl, (cycle) => {
273066
+ const hooksCleanup = AsyncResource6.bind(() => effectScheduler2.clearAll());
273067
+ rl.on("close", hooksCleanup);
273068
+ cleanups.add(() => rl.removeListener("close", hooksCleanup));
273069
+ cycle(() => {
273070
+ try {
273071
+ const nextView = view(config3, (value4) => {
273072
+ setImmediate(() => resolve6(value4));
273073
+ });
273074
+ if (nextView === undefined) {
273075
+ const callerFilename = callSites[1]?.getFileName();
273076
+ throw new Error(`Prompt functions must return a string.
273077
+ at ${callerFilename}`);
273078
+ }
273079
+ const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
273080
+ screen.render(content, bottomContent);
273081
+ effectScheduler2.run();
273082
+ } catch (error50) {
273083
+ reject(error50);
273084
+ }
273085
+ });
273086
+ return Object.assign(promise2.then((answer) => {
273087
+ effectScheduler2.clearAll();
273088
+ return answer;
273089
+ }, (error50) => {
273090
+ effectScheduler2.clearAll();
273091
+ throw error50;
273092
+ }).finally(() => {
273093
+ cleanups.forEach((cleanup) => cleanup());
273094
+ screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
273095
+ output.end();
273096
+ }).then(() => promise2), { cancel: cancel3 });
273097
+ });
273098
+ };
273099
+ return prompt;
273100
+ }
273101
+ // ../../node_modules/.bun/@inquirer+input@4.3.1+c30ff3a63f0500d5/node_modules/@inquirer/input/dist/esm/index.js
272540
273102
  var inputTheme = {
272541
273103
  validationFailureMode: "keep"
272542
273104
  };
272543
- var esm_default2 = createPrompt((config3, done) => {
273105
+ var esm_default2 = createPrompt2((config3, done) => {
272544
273106
  const { prefill = "tab" } = config3;
272545
- const theme = makeTheme(inputTheme, config3.theme);
272546
- const [status, setStatus] = useState("idle");
272547
- const [defaultValue = "", setDefaultValue] = useState(config3.default);
272548
- const [errorMsg, setError] = useState();
272549
- const [value4, setValue] = useState("");
272550
- const prefix = usePrefix({ status, theme });
273107
+ const theme = makeTheme2(inputTheme, config3.theme);
273108
+ const [status, setStatus] = useState2("idle");
273109
+ const [defaultValue = "", setDefaultValue] = useState2(config3.default);
273110
+ const [errorMsg, setError] = useState2();
273111
+ const [value4, setValue] = useState2("");
273112
+ const prefix = usePrefix2({ status, theme });
272551
273113
  async function validate3(value5) {
272552
273114
  const { required: required2, pattern, patternError = "Invalid input" } = config3;
272553
273115
  if (required2 && !value5) {
@@ -272561,11 +273123,11 @@ var esm_default2 = createPrompt((config3, done) => {
272561
273123
  }
272562
273124
  return true;
272563
273125
  }
272564
- useKeypress(async (key, rl) => {
273126
+ useKeypress2(async (key, rl) => {
272565
273127
  if (status !== "idle") {
272566
273128
  return;
272567
273129
  }
272568
- if (isEnterKey(key)) {
273130
+ if (isEnterKey2(key)) {
272569
273131
  const answer = value4 || defaultValue;
272570
273132
  setStatus("loading");
272571
273133
  const isValid = await validate3(answer);
@@ -272582,9 +273144,9 @@ var esm_default2 = createPrompt((config3, done) => {
272582
273144
  setError(isValid);
272583
273145
  setStatus("idle");
272584
273146
  }
272585
- } else if (isBackspaceKey(key) && !value4) {
273147
+ } else if (isBackspaceKey2(key) && !value4) {
272586
273148
  setDefaultValue(undefined);
272587
- } else if (isTabKey(key) && !value4) {
273149
+ } else if (isTabKey2(key) && !value4) {
272588
273150
  setDefaultValue(undefined);
272589
273151
  rl.clearLine(0);
272590
273152
  rl.write(defaultValue);
@@ -272594,7 +273156,7 @@ var esm_default2 = createPrompt((config3, done) => {
272594
273156
  setError(undefined);
272595
273157
  }
272596
273158
  });
272597
- useEffect((rl) => {
273159
+ useEffect2((rl) => {
272598
273160
  if (prefill === "editable" && defaultValue) {
272599
273161
  rl.write(defaultValue);
272600
273162
  setValue(defaultValue);
@@ -272640,13 +273202,13 @@ async function subgraphNamePrompt({
272640
273202
  }
272641
273203
 
272642
273204
  // ../../node_modules/.bun/@inquirer+select@4.4.0+c30ff3a63f0500d5/node_modules/@inquirer/select/dist/esm/index.js
272643
- var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
273205
+ var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
272644
273206
  var selectTheme = {
272645
273207
  icon: { cursor: esm_default.pointer },
272646
273208
  style: {
272647
- disabled: (text2) => import_yoctocolors_cjs3.default.dim(`- ${text2}`),
272648
- description: (text2) => import_yoctocolors_cjs3.default.cyan(text2),
272649
- keysHelpTip: (keys) => keys.map(([key, action]) => `${import_yoctocolors_cjs3.default.bold(key)} ${import_yoctocolors_cjs3.default.dim(action)}`).join(import_yoctocolors_cjs3.default.dim(" • "))
273209
+ disabled: (text2) => import_yoctocolors_cjs4.default.dim(`- ${text2}`),
273210
+ description: (text2) => import_yoctocolors_cjs4.default.cyan(text2),
273211
+ keysHelpTip: (keys) => keys.map(([key, action]) => `${import_yoctocolors_cjs4.default.bold(key)} ${import_yoctocolors_cjs4.default.dim(action)}`).join(import_yoctocolors_cjs4.default.dim(" • "))
272650
273212
  },
272651
273213
  helpMode: "always",
272652
273214
  indexMode: "hidden",
@@ -300079,7 +300641,7 @@ var basename2 = function(p6, extension) {
300079
300641
  return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
300080
300642
  };
300081
300643
  // ../../node_modules/.bun/defu@6.1.4/node_modules/defu/dist/defu.mjs
300082
- function isPlainObject4(value4) {
300644
+ function isPlainObject5(value4) {
300083
300645
  if (value4 === null || typeof value4 !== "object") {
300084
300646
  return false;
300085
300647
  }
@@ -300096,7 +300658,7 @@ function isPlainObject4(value4) {
300096
300658
  return true;
300097
300659
  }
300098
300660
  function _defu(baseObject, defaults2, namespace = ".", merger) {
300099
- if (!isPlainObject4(defaults2)) {
300661
+ if (!isPlainObject5(defaults2)) {
300100
300662
  return _defu(baseObject, {}, namespace, merger);
300101
300663
  }
300102
300664
  const object2 = Object.assign({}, defaults2);
@@ -300113,7 +300675,7 @@ function _defu(baseObject, defaults2, namespace = ".", merger) {
300113
300675
  }
300114
300676
  if (Array.isArray(value4) && Array.isArray(object2[key])) {
300115
300677
  object2[key] = [...value4, ...object2[key]];
300116
- } else if (isPlainObject4(value4) && isPlainObject4(object2[key])) {
300678
+ } else if (isPlainObject5(value4) && isPlainObject5(object2[key])) {
300117
300679
  object2[key] = _defu(value4, object2[key], (namespace ? `${namespace}.` : "") + key.toString(), merger);
300118
300680
  } else {
300119
300681
  object2[key] = value4;
@@ -306095,7 +306657,7 @@ function jsonOutput(data) {
306095
306657
  var composer = require_composer();
306096
306658
  var Document = require_Document();
306097
306659
  var Schema = require_Schema();
306098
- var errors4 = require_errors3();
306660
+ var errors5 = require_errors3();
306099
306661
  var Alias = require_Alias();
306100
306662
  var identity2 = require_identity();
306101
306663
  var Pair = require_Pair();
@@ -306111,9 +306673,9 @@ var visit2 = require_visit();
306111
306673
  var $Composer = composer.Composer;
306112
306674
  var $Document = Document.Document;
306113
306675
  var $Schema = Schema.Schema;
306114
- var $YAMLError = errors4.YAMLError;
306115
- var $YAMLParseError = errors4.YAMLParseError;
306116
- var $YAMLWarning = errors4.YAMLWarning;
306676
+ var $YAMLError = errors5.YAMLError;
306677
+ var $YAMLParseError = errors5.YAMLParseError;
306678
+ var $YAMLWarning = errors5.YAMLWarning;
306117
306679
  var $Alias = Alias.Alias;
306118
306680
  var $isAlias = identity2.isAlias;
306119
306681
  var $isCollection = identity2.isCollection;
@@ -306652,7 +307214,7 @@ function formatUseCaseName(name3) {
306652
307214
  }
306653
307215
 
306654
307216
  // src/utils/smart-contract-set/execute-foundry-command.ts
306655
- var import_which = __toESM(require_lib13(), 1);
307217
+ var import_which = __toESM(require_lib14(), 1);
306656
307218
  async function executeFoundryCommand(command, args) {
306657
307219
  try {
306658
307220
  await import_which.default(command);
@@ -307974,4 +308536,4 @@ async function sdkCliCommand(argv = process.argv) {
307974
308536
  // src/cli.ts
307975
308537
  sdkCliCommand();
307976
308538
 
307977
- //# debugId=85466E5C3FDD082B64756E2164756E21
308539
+ //# debugId=1866C1649F53506564756E2164756E21