@settlemint/sdk-cli 0.9.3-prb49ccc82 → 0.9.3-prb5839b17

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
@@ -19613,7 +19613,7 @@ var require_lib4 = __commonJS((exports, module) => {
19613
19613
  var rRel = new RegExp(`^\\.${rSlash.source}`);
19614
19614
  var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
19615
19615
  var getPathInfo = (cmd, {
19616
- path: optPath = "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.XQyFeQmXFp:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",
19616
+ path: optPath = "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.luuHaBH1m5:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",
19617
19617
  pathExt: optPathExt = process.env.PATHEXT,
19618
19618
  delimiter: optDelimiter = delimiter
19619
19619
  }) => {
@@ -19817,7 +19817,7 @@ var require_lib5 = __commonJS((exports, module) => {
19817
19817
  let pathToInitial;
19818
19818
  try {
19819
19819
  pathToInitial = which.sync(initialCmd, {
19820
- path: options.env && findInObject(options.env, "PATH") || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.XQyFeQmXFp:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",
19820
+ path: options.env && findInObject(options.env, "PATH") || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.luuHaBH1m5:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",
19821
19821
  pathext: options.env && findInObject(options.env, "PATHEXT") || process.env.PATHEXT
19822
19822
  }).toLowerCase();
19823
19823
  } catch (err) {
@@ -20534,7 +20534,7 @@ var require_lib6 = __commonJS((exports, module) => {
20534
20534
  var rRel = new RegExp(`^\\.${rSlash.source}`);
20535
20535
  var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
20536
20536
  var getPathInfo = (cmd, {
20537
- path: optPath = "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.XQyFeQmXFp:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",
20537
+ path: optPath = "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.luuHaBH1m5:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",
20538
20538
  pathExt: optPathExt = process.env.PATHEXT,
20539
20539
  delimiter: optDelimiter = delimiter
20540
20540
  }) => {
@@ -223327,7 +223327,7 @@ ${Bt.cyan(Yt)}
223327
223327
  code: "ENOENT"
223328
223328
  }), getPathInfo = (e9, t7) => {
223329
223329
  var r6 = t7.colon || or;
223330
- var i6 = e9.match(/\//) || nr && e9.match(/\\/) ? [""] : [...nr ? [process.cwd()] : [], ...(t7.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.XQyFeQmXFp:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin").split(r6)];
223330
+ var i6 = e9.match(/\//) || nr && e9.match(/\\/) ? [""] : [...nr ? [process.cwd()] : [], ...(t7.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.luuHaBH1m5:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin").split(r6)];
223331
223331
  var n6 = nr ? t7.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
223332
223332
  var a5 = nr ? n6.split(r6) : [""];
223333
223333
  if (nr) {
@@ -226464,7 +226464,7 @@ ${whileRunning(e9)}`;
226464
226464
  };
226465
226465
  ni = Object.assign(async function _main() {
226466
226466
  var e9 = new Cli({
226467
- binaryVersion: "0.9.3-prb49ccc82",
226467
+ binaryVersion: "0.9.3-prb5839b17",
226468
226468
  binaryLabel: "gql.tada CLI",
226469
226469
  binaryName: "gql.tada"
226470
226470
  });
@@ -233757,8 +233757,8 @@ var require_mkdir = __commonJS((exports, module) => {
233757
233757
  return "CwdError";
233758
233758
  }
233759
233759
  }
233760
- var cGet = (cache, key3) => cache.get(normPath(key3));
233761
- var cSet = (cache, key3, val) => cache.set(normPath(key3), val);
233760
+ var cGet = (cache, key2) => cache.get(normPath(key2));
233761
+ var cSet = (cache, key2, val) => cache.set(normPath(key2), val);
233762
233762
  var checkCwd = (dir, cb) => {
233763
233763
  fs3.stat(dir, (er2, st2) => {
233764
233764
  if (er2 || !st2.isDirectory()) {
@@ -234129,8 +234129,8 @@ var require_unpack = __commonJS((exports, module) => {
234129
234129
  }
234130
234130
  };
234131
234131
  var dropCache = (cache) => {
234132
- for (const key3 of cache.keys()) {
234133
- cache.delete(key3);
234132
+ for (const key2 of cache.keys()) {
234133
+ cache.delete(key2);
234134
234134
  }
234135
234135
  };
234136
234136
 
@@ -234964,7 +234964,7 @@ var require_which2 = __commonJS((exports, module) => {
234964
234964
  const colon = opt2.colon || COLON;
234965
234965
  const pathEnv = cmd2.match(/\//) || isWindows2 && cmd2.match(/\\/) ? [""] : [
234966
234966
  ...isWindows2 ? [process.cwd()] : [],
234967
- ...(opt2.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.XQyFeQmXFp:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin").split(colon)
234967
+ ...(opt2.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.luuHaBH1m5:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin").split(colon)
234968
234968
  ];
234969
234969
  const pathExtExe = isWindows2 ? opt2.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
234970
234970
  const pathExt = isWindows2 ? pathExtExe.split(colon) : [""];
@@ -235053,7 +235053,7 @@ var require_path_key = __commonJS((exports, module) => {
235053
235053
  if (platform2 !== "win32") {
235054
235054
  return "PATH";
235055
235055
  }
235056
- return Object.keys(environment).reverse().find((key3) => key3.toUpperCase() === "PATH") || "Path";
235056
+ return Object.keys(environment).reverse().find((key2) => key2.toUpperCase() === "PATH") || "Path";
235057
235057
  };
235058
235058
  module.exports = pathKey2;
235059
235059
  module.exports.default = pathKey2;
@@ -235315,7 +235315,7 @@ function pathKey2(options = {}) {
235315
235315
  if (platform2 !== "win32") {
235316
235316
  return "PATH";
235317
235317
  }
235318
- return Object.keys(env2).reverse().find((key3) => key3.toUpperCase() === "PATH") || "Path";
235318
+ return Object.keys(env2).reverse().find((key2) => key2.toUpperCase() === "PATH") || "Path";
235319
235319
  }
235320
235320
 
235321
235321
  // ../../node_modules/nypm/node_modules/execa/node_modules/npm-run-path/index.js
@@ -240752,8 +240752,8 @@ var require_lib14 = __commonJS((exports, module) => {
240752
240752
  function fetch2(input, options) {
240753
240753
  return nodeFetch.fetch(input, options);
240754
240754
  }
240755
- for (const key3 in nodeFetch) {
240756
- fetch2[key3] = nodeFetch[key3];
240755
+ for (const key2 in nodeFetch) {
240756
+ fetch2[key2] = nodeFetch[key2];
240757
240757
  }
240758
240758
  module.exports = fetch2;
240759
240759
  });
@@ -245304,11 +245304,11 @@ ${f6.toString(16)}\r
245304
245304
  }
245305
245305
  Q4(upgrade, "upgrade");
245306
245306
  var apiUpgrade = upgrade;
245307
- var { AsyncResource: AsyncResource7 } = require$$4__default$2;
245307
+ var { AsyncResource: AsyncResource4 } = require$$4__default$2;
245308
245308
  var { InvalidArgumentError: InvalidArgumentError$5, RequestAbortedError, SocketError } = errors$1;
245309
245309
  var util$6 = util$m;
245310
245310
  var { addSignal, removeSignal } = abortSignal;
245311
- var Jt2 = class Jt3 extends AsyncResource7 {
245311
+ var Jt2 = class Jt3 extends AsyncResource4 {
245312
245312
  constructor(A5, t8) {
245313
245313
  if (!A5 || typeof A5 != "object")
245314
245314
  throw new InvalidArgumentError$5("invalid opts");
@@ -248638,9 +248638,9 @@ ${F4}`;
248638
248638
  var Dispatcher = dispatcher;
248639
248639
  var Agent = agent;
248640
248640
  var ProxyAgent = proxyAgent;
248641
- var errors3 = errors$1;
248641
+ var errors2 = errors$1;
248642
248642
  var util2 = util$m;
248643
- var { InvalidArgumentError: InvalidArgumentError2 } = errors3;
248643
+ var { InvalidArgumentError: InvalidArgumentError2 } = errors2;
248644
248644
  var api = api$1;
248645
248645
  var { getGlobalDispatcher, setGlobalDispatcher } = global3;
248646
248646
  Object.assign(Dispatcher.prototype, api);
@@ -249546,11 +249546,11 @@ var require_visit = __commonJS((exports) => {
249546
249546
  visit2.BREAK = BREAK;
249547
249547
  visit2.SKIP = SKIP;
249548
249548
  visit2.REMOVE = REMOVE;
249549
- function visit_(key3, node, visitor, path8) {
249550
- const ctrl = callVisitor(key3, node, visitor, path8);
249549
+ function visit_(key2, node, visitor, path8) {
249550
+ const ctrl = callVisitor(key2, node, visitor, path8);
249551
249551
  if (identity3.isNode(ctrl) || identity3.isPair(ctrl)) {
249552
- replaceNode(key3, path8, ctrl);
249553
- return visit_(key3, ctrl, visitor, path8);
249552
+ replaceNode(key2, path8, ctrl);
249553
+ return visit_(key2, ctrl, visitor, path8);
249554
249554
  }
249555
249555
  if (typeof ctrl !== "symbol") {
249556
249556
  if (identity3.isCollection(node)) {
@@ -249594,11 +249594,11 @@ var require_visit = __commonJS((exports) => {
249594
249594
  visitAsync.BREAK = BREAK;
249595
249595
  visitAsync.SKIP = SKIP;
249596
249596
  visitAsync.REMOVE = REMOVE;
249597
- async function visitAsync_(key3, node, visitor, path8) {
249598
- const ctrl = await callVisitor(key3, node, visitor, path8);
249597
+ async function visitAsync_(key2, node, visitor, path8) {
249598
+ const ctrl = await callVisitor(key2, node, visitor, path8);
249599
249599
  if (identity3.isNode(ctrl) || identity3.isPair(ctrl)) {
249600
- replaceNode(key3, path8, ctrl);
249601
- return visitAsync_(key3, ctrl, visitor, path8);
249600
+ replaceNode(key2, path8, ctrl);
249601
+ return visitAsync_(key2, ctrl, visitor, path8);
249602
249602
  }
249603
249603
  if (typeof ctrl !== "symbol") {
249604
249604
  if (identity3.isCollection(node)) {
@@ -249648,27 +249648,27 @@ var require_visit = __commonJS((exports) => {
249648
249648
  }
249649
249649
  return visitor;
249650
249650
  }
249651
- function callVisitor(key3, node, visitor, path8) {
249651
+ function callVisitor(key2, node, visitor, path8) {
249652
249652
  if (typeof visitor === "function")
249653
- return visitor(key3, node, path8);
249653
+ return visitor(key2, node, path8);
249654
249654
  if (identity3.isMap(node))
249655
- return visitor.Map?.(key3, node, path8);
249655
+ return visitor.Map?.(key2, node, path8);
249656
249656
  if (identity3.isSeq(node))
249657
- return visitor.Seq?.(key3, node, path8);
249657
+ return visitor.Seq?.(key2, node, path8);
249658
249658
  if (identity3.isPair(node))
249659
- return visitor.Pair?.(key3, node, path8);
249659
+ return visitor.Pair?.(key2, node, path8);
249660
249660
  if (identity3.isScalar(node))
249661
- return visitor.Scalar?.(key3, node, path8);
249661
+ return visitor.Scalar?.(key2, node, path8);
249662
249662
  if (identity3.isAlias(node))
249663
- return visitor.Alias?.(key3, node, path8);
249663
+ return visitor.Alias?.(key2, node, path8);
249664
249664
  return;
249665
249665
  }
249666
- function replaceNode(key3, path8, node) {
249666
+ function replaceNode(key2, path8, node) {
249667
249667
  const parent = path8[path8.length - 1];
249668
249668
  if (identity3.isCollection(parent)) {
249669
- parent.items[key3] = node;
249669
+ parent.items[key2] = node;
249670
249670
  } else if (identity3.isPair(parent)) {
249671
- if (key3 === "key")
249671
+ if (key2 === "key")
249672
249672
  parent.key = node;
249673
249673
  else
249674
249674
  parent.value = node;
@@ -249900,7 +249900,7 @@ var require_anchors = __commonJS((exports) => {
249900
249900
 
249901
249901
  // ../../node_modules/yaml/dist/doc/applyReviver.js
249902
249902
  var require_applyReviver = __commonJS((exports) => {
249903
- function applyReviver(reviver, obj, key3, val) {
249903
+ function applyReviver(reviver, obj, key2, val) {
249904
249904
  if (val && typeof val === "object") {
249905
249905
  if (Array.isArray(val)) {
249906
249906
  for (let i6 = 0, len = val.length;i6 < len; ++i6) {
@@ -249940,7 +249940,7 @@ var require_applyReviver = __commonJS((exports) => {
249940
249940
  }
249941
249941
  }
249942
249942
  }
249943
- return reviver.call(obj, key3, val);
249943
+ return reviver.call(obj, key2, val);
249944
249944
  }
249945
249945
  exports.applyReviver = applyReviver;
249946
249946
  });
@@ -250258,29 +250258,29 @@ var require_Collection = __commonJS((exports) => {
250258
250258
  if (isEmptyPath(path8))
250259
250259
  this.add(value4);
250260
250260
  else {
250261
- const [key3, ...rest] = path8;
250262
- const node = this.get(key3, true);
250261
+ const [key2, ...rest] = path8;
250262
+ const node = this.get(key2, true);
250263
250263
  if (identity3.isCollection(node))
250264
250264
  node.addIn(rest, value4);
250265
250265
  else if (node === undefined && this.schema)
250266
- this.set(key3, collectionFromPath(this.schema, rest, value4));
250266
+ this.set(key2, collectionFromPath(this.schema, rest, value4));
250267
250267
  else
250268
- throw new Error(`Expected YAML collection at ${key3}. Remaining path: ${rest}`);
250268
+ throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
250269
250269
  }
250270
250270
  }
250271
250271
  deleteIn(path8) {
250272
- const [key3, ...rest] = path8;
250272
+ const [key2, ...rest] = path8;
250273
250273
  if (rest.length === 0)
250274
- return this.delete(key3);
250275
- const node = this.get(key3, true);
250274
+ return this.delete(key2);
250275
+ const node = this.get(key2, true);
250276
250276
  if (identity3.isCollection(node))
250277
250277
  return node.deleteIn(rest);
250278
250278
  else
250279
- throw new Error(`Expected YAML collection at ${key3}. Remaining path: ${rest}`);
250279
+ throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
250280
250280
  }
250281
250281
  getIn(path8, keepScalar) {
250282
- const [key3, ...rest] = path8;
250283
- const node = this.get(key3, true);
250282
+ const [key2, ...rest] = path8;
250283
+ const node = this.get(key2, true);
250284
250284
  if (rest.length === 0)
250285
250285
  return !keepScalar && identity3.isScalar(node) ? node.value : node;
250286
250286
  else
@@ -250295,24 +250295,24 @@ var require_Collection = __commonJS((exports) => {
250295
250295
  });
250296
250296
  }
250297
250297
  hasIn(path8) {
250298
- const [key3, ...rest] = path8;
250298
+ const [key2, ...rest] = path8;
250299
250299
  if (rest.length === 0)
250300
- return this.has(key3);
250301
- const node = this.get(key3, true);
250300
+ return this.has(key2);
250301
+ const node = this.get(key2, true);
250302
250302
  return identity3.isCollection(node) ? node.hasIn(rest) : false;
250303
250303
  }
250304
250304
  setIn(path8, value4) {
250305
- const [key3, ...rest] = path8;
250305
+ const [key2, ...rest] = path8;
250306
250306
  if (rest.length === 0) {
250307
- this.set(key3, value4);
250307
+ this.set(key2, value4);
250308
250308
  } else {
250309
- const node = this.get(key3, true);
250309
+ const node = this.get(key2, true);
250310
250310
  if (identity3.isCollection(node))
250311
250311
  node.setIn(rest, value4);
250312
250312
  else if (node === undefined && this.schema)
250313
- this.set(key3, collectionFromPath(this.schema, rest, value4));
250313
+ this.set(key2, collectionFromPath(this.schema, rest, value4));
250314
250314
  else
250315
- throw new Error(`Expected YAML collection at ${key3}. Remaining path: ${rest}`);
250315
+ throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
250316
250316
  }
250317
250317
  }
250318
250318
  }
@@ -250900,19 +250900,19 @@ var require_stringifyPair = __commonJS((exports) => {
250900
250900
  var Scalar = require_Scalar();
250901
250901
  var stringify3 = require_stringify();
250902
250902
  var stringifyComment = require_stringifyComment();
250903
- function stringifyPair2({ key: key3, value: value4 }, ctx, onComment, onChompKeep) {
250903
+ function stringifyPair2({ key: key2, value: value4 }, ctx, onComment, onChompKeep) {
250904
250904
  const { allNullValues, doc, indent: indent2, indentStep, options: { commentString, indentSeq, simpleKeys } } = ctx;
250905
- let keyComment = identity3.isNode(key3) && key3.comment || null;
250905
+ let keyComment = identity3.isNode(key2) && key2.comment || null;
250906
250906
  if (simpleKeys) {
250907
250907
  if (keyComment) {
250908
250908
  throw new Error("With simple keys, key nodes cannot have comments");
250909
250909
  }
250910
- if (identity3.isCollection(key3) || !identity3.isNode(key3) && typeof key3 === "object") {
250910
+ if (identity3.isCollection(key2) || !identity3.isNode(key2) && typeof key2 === "object") {
250911
250911
  const msg = "With simple keys, collection cannot be used as a key value";
250912
250912
  throw new Error(msg);
250913
250913
  }
250914
250914
  }
250915
- let explicitKey = !simpleKeys && (!key3 || keyComment && value4 == null && !ctx.inFlow || identity3.isCollection(key3) || (identity3.isScalar(key3) ? key3.type === Scalar.Scalar.BLOCK_FOLDED || key3.type === Scalar.Scalar.BLOCK_LITERAL : typeof key3 === "object"));
250915
+ let explicitKey = !simpleKeys && (!key2 || keyComment && value4 == null && !ctx.inFlow || identity3.isCollection(key2) || (identity3.isScalar(key2) ? key2.type === Scalar.Scalar.BLOCK_FOLDED || key2.type === Scalar.Scalar.BLOCK_LITERAL : typeof key2 === "object"));
250916
250916
  ctx = Object.assign({}, ctx, {
250917
250917
  allNullValues: false,
250918
250918
  implicitKey: !explicitKey && (simpleKeys || !allNullValues),
@@ -250920,7 +250920,7 @@ var require_stringifyPair = __commonJS((exports) => {
250920
250920
  });
250921
250921
  let keyCommentDone = false;
250922
250922
  let chompKeep = false;
250923
- let str = stringify3.stringify(key3, ctx, () => keyCommentDone = true, () => chompKeep = true);
250923
+ let str = stringify3.stringify(key2, ctx, () => keyCommentDone = true, () => chompKeep = true);
250924
250924
  if (!explicitKey && !ctx.inFlow && str.length > 1024) {
250925
250925
  if (simpleKeys)
250926
250926
  throw new Error("With simple keys, single line scalar must not span more than 1024 characters");
@@ -251064,7 +251064,7 @@ var require_merge = __commonJS((exports) => {
251064
251064
  }),
251065
251065
  stringify: () => MERGE_KEY
251066
251066
  };
251067
- var isMergeKey = (ctx, key3) => (merge3.identify(key3) || identity3.isScalar(key3) && (!key3.type || key3.type === Scalar.Scalar.PLAIN) && merge3.identify(key3.value)) && ctx?.doc.schema.tags.some((tag) => tag.tag === merge3.tag && tag.default);
251067
+ var isMergeKey = (ctx, key2) => (merge3.identify(key2) || identity3.isScalar(key2) && (!key2.type || key2.type === Scalar.Scalar.PLAIN) && merge3.identify(key2.value)) && ctx?.doc.schema.tags.some((tag) => tag.tag === merge3.tag && tag.default);
251068
251068
  function addMergeToJSMap(ctx, map3, value4) {
251069
251069
  value4 = ctx && identity3.isAlias(value4) ? value4.resolve(ctx.doc) : value4;
251070
251070
  if (identity3.isSeq(value4))
@@ -251081,14 +251081,14 @@ var require_merge = __commonJS((exports) => {
251081
251081
  if (!identity3.isMap(source))
251082
251082
  throw new Error("Merge sources must be maps or map aliases");
251083
251083
  const srcMap = source.toJSON(null, ctx, Map);
251084
- for (const [key3, value5] of srcMap) {
251084
+ for (const [key2, value5] of srcMap) {
251085
251085
  if (map3 instanceof Map) {
251086
- if (!map3.has(key3))
251087
- map3.set(key3, value5);
251086
+ if (!map3.has(key2))
251087
+ map3.set(key2, value5);
251088
251088
  } else if (map3 instanceof Set) {
251089
- map3.add(key3);
251090
- } else if (!Object.prototype.hasOwnProperty.call(map3, key3)) {
251091
- Object.defineProperty(map3, key3, {
251089
+ map3.add(key2);
251090
+ } else if (!Object.prototype.hasOwnProperty.call(map3, key2)) {
251091
+ Object.defineProperty(map3, key2, {
251092
251092
  value: value5,
251093
251093
  writable: true,
251094
251094
  enumerable: true,
@@ -251110,19 +251110,19 @@ var require_addPairToJSMap = __commonJS((exports) => {
251110
251110
  var stringify3 = require_stringify();
251111
251111
  var identity3 = require_identity();
251112
251112
  var toJS = require_toJS();
251113
- function addPairToJSMap(ctx, map3, { key: key3, value: value4 }) {
251114
- if (identity3.isNode(key3) && key3.addToJSMap)
251115
- key3.addToJSMap(ctx, map3, value4);
251116
- else if (merge3.isMergeKey(ctx, key3))
251113
+ function addPairToJSMap(ctx, map3, { key: key2, value: value4 }) {
251114
+ if (identity3.isNode(key2) && key2.addToJSMap)
251115
+ key2.addToJSMap(ctx, map3, value4);
251116
+ else if (merge3.isMergeKey(ctx, key2))
251117
251117
  merge3.addMergeToJSMap(ctx, map3, value4);
251118
251118
  else {
251119
- const jsKey = toJS.toJS(key3, "", ctx);
251119
+ const jsKey = toJS.toJS(key2, "", ctx);
251120
251120
  if (map3 instanceof Map) {
251121
251121
  map3.set(jsKey, toJS.toJS(value4, jsKey, ctx));
251122
251122
  } else if (map3 instanceof Set) {
251123
251123
  map3.add(jsKey);
251124
251124
  } else {
251125
- const stringKey = stringifyKey(key3, jsKey, ctx);
251125
+ const stringKey = stringifyKey(key2, jsKey, ctx);
251126
251126
  const jsValue = toJS.toJS(value4, stringKey, ctx);
251127
251127
  if (stringKey in map3)
251128
251128
  Object.defineProperty(map3, stringKey, {
@@ -251137,19 +251137,19 @@ var require_addPairToJSMap = __commonJS((exports) => {
251137
251137
  }
251138
251138
  return map3;
251139
251139
  }
251140
- function stringifyKey(key3, jsKey, ctx) {
251140
+ function stringifyKey(key2, jsKey, ctx) {
251141
251141
  if (jsKey === null)
251142
251142
  return "";
251143
251143
  if (typeof jsKey !== "object")
251144
251144
  return String(jsKey);
251145
- if (identity3.isNode(key3) && ctx?.doc) {
251145
+ if (identity3.isNode(key2) && ctx?.doc) {
251146
251146
  const strCtx = stringify3.createStringifyContext(ctx.doc, {});
251147
251147
  strCtx.anchors = new Set;
251148
251148
  for (const node of ctx.anchors.keys())
251149
251149
  strCtx.anchors.add(node.anchor);
251150
251150
  strCtx.inFlow = true;
251151
251151
  strCtx.inStringifyKey = true;
251152
- const strKey = key3.toString(strCtx);
251152
+ const strKey = key2.toString(strCtx);
251153
251153
  if (!ctx.mapKeyWarned) {
251154
251154
  let jsonStr = JSON.stringify(strKey);
251155
251155
  if (jsonStr.length > 40)
@@ -251170,25 +251170,25 @@ var require_Pair = __commonJS((exports) => {
251170
251170
  var stringifyPair2 = require_stringifyPair();
251171
251171
  var addPairToJSMap = require_addPairToJSMap();
251172
251172
  var identity3 = require_identity();
251173
- function createPair(key3, value4, ctx) {
251174
- const k5 = createNode.createNode(key3, undefined, ctx);
251173
+ function createPair(key2, value4, ctx) {
251174
+ const k5 = createNode.createNode(key2, undefined, ctx);
251175
251175
  const v7 = createNode.createNode(value4, undefined, ctx);
251176
251176
  return new Pair(k5, v7);
251177
251177
  }
251178
251178
 
251179
251179
  class Pair {
251180
- constructor(key3, value4 = null) {
251180
+ constructor(key2, value4 = null) {
251181
251181
  Object.defineProperty(this, identity3.NODE_TYPE, { value: identity3.PAIR });
251182
- this.key = key3;
251182
+ this.key = key2;
251183
251183
  this.value = value4;
251184
251184
  }
251185
251185
  clone(schema) {
251186
- let { key: key3, value: value4 } = this;
251187
- if (identity3.isNode(key3))
251188
- key3 = key3.clone(schema);
251186
+ let { key: key2, value: value4 } = this;
251187
+ if (identity3.isNode(key2))
251188
+ key2 = key2.clone(schema);
251189
251189
  if (identity3.isNode(value4))
251190
251190
  value4 = value4.clone(schema);
251191
- return new Pair(key3, value4);
251191
+ return new Pair(key2, value4);
251192
251192
  }
251193
251193
  toJSON(_5, ctx) {
251194
251194
  const pair = ctx?.mapAsMap ? new Map : {};
@@ -251355,11 +251355,11 @@ var require_YAMLMap = __commonJS((exports) => {
251355
251355
  var identity3 = require_identity();
251356
251356
  var Pair = require_Pair();
251357
251357
  var Scalar = require_Scalar();
251358
- function findPair(items, key3) {
251359
- const k5 = identity3.isScalar(key3) ? key3.value : key3;
251358
+ function findPair(items, key2) {
251359
+ const k5 = identity3.isScalar(key2) ? key2.value : key2;
251360
251360
  for (const it2 of items) {
251361
251361
  if (identity3.isPair(it2)) {
251362
- if (it2.key === key3 || it2.key === k5)
251362
+ if (it2.key === key2 || it2.key === k5)
251363
251363
  return it2;
251364
251364
  if (identity3.isScalar(it2.key) && it2.key.value === k5)
251365
251365
  return it2;
@@ -251379,20 +251379,20 @@ var require_YAMLMap = __commonJS((exports) => {
251379
251379
  static from(schema, obj, ctx) {
251380
251380
  const { keepUndefined, replacer } = ctx;
251381
251381
  const map3 = new this(schema);
251382
- const add = (key3, value4) => {
251382
+ const add = (key2, value4) => {
251383
251383
  if (typeof replacer === "function")
251384
- value4 = replacer.call(obj, key3, value4);
251385
- else if (Array.isArray(replacer) && !replacer.includes(key3))
251384
+ value4 = replacer.call(obj, key2, value4);
251385
+ else if (Array.isArray(replacer) && !replacer.includes(key2))
251386
251386
  return;
251387
251387
  if (value4 !== undefined || keepUndefined)
251388
- map3.items.push(Pair.createPair(key3, value4, ctx));
251388
+ map3.items.push(Pair.createPair(key2, value4, ctx));
251389
251389
  };
251390
251390
  if (obj instanceof Map) {
251391
- for (const [key3, value4] of obj)
251392
- add(key3, value4);
251391
+ for (const [key2, value4] of obj)
251392
+ add(key2, value4);
251393
251393
  } else if (obj && typeof obj === "object") {
251394
- for (const key3 of Object.keys(obj))
251395
- add(key3, obj[key3]);
251394
+ for (const key2 of Object.keys(obj))
251395
+ add(key2, obj[key2]);
251396
251396
  }
251397
251397
  if (typeof schema.sortMapEntries === "function") {
251398
251398
  map3.items.sort(schema.sortMapEntries);
@@ -251426,23 +251426,23 @@ var require_YAMLMap = __commonJS((exports) => {
251426
251426
  this.items.push(_pair);
251427
251427
  }
251428
251428
  }
251429
- delete(key3) {
251430
- const it2 = findPair(this.items, key3);
251429
+ delete(key2) {
251430
+ const it2 = findPair(this.items, key2);
251431
251431
  if (!it2)
251432
251432
  return false;
251433
251433
  const del = this.items.splice(this.items.indexOf(it2), 1);
251434
251434
  return del.length > 0;
251435
251435
  }
251436
- get(key3, keepScalar) {
251437
- const it2 = findPair(this.items, key3);
251436
+ get(key2, keepScalar) {
251437
+ const it2 = findPair(this.items, key2);
251438
251438
  const node = it2?.value;
251439
251439
  return (!keepScalar && identity3.isScalar(node) ? node.value : node) ?? undefined;
251440
251440
  }
251441
- has(key3) {
251442
- return !!findPair(this.items, key3);
251441
+ has(key2) {
251442
+ return !!findPair(this.items, key2);
251443
251443
  }
251444
- set(key3, value4) {
251445
- this.add(new Pair.Pair(key3, value4), true);
251444
+ set(key2, value4) {
251445
+ this.add(new Pair.Pair(key2, value4), true);
251446
251446
  }
251447
251447
  toJSON(_5, ctx, Type) {
251448
251448
  const map3 = Type ? new Type : ctx?.mapAsMap ? new Map : {};
@@ -251513,28 +251513,28 @@ var require_YAMLSeq = __commonJS((exports) => {
251513
251513
  add(value4) {
251514
251514
  this.items.push(value4);
251515
251515
  }
251516
- delete(key3) {
251517
- const idx = asItemIndex(key3);
251516
+ delete(key2) {
251517
+ const idx = asItemIndex(key2);
251518
251518
  if (typeof idx !== "number")
251519
251519
  return false;
251520
251520
  const del = this.items.splice(idx, 1);
251521
251521
  return del.length > 0;
251522
251522
  }
251523
- get(key3, keepScalar) {
251524
- const idx = asItemIndex(key3);
251523
+ get(key2, keepScalar) {
251524
+ const idx = asItemIndex(key2);
251525
251525
  if (typeof idx !== "number")
251526
251526
  return;
251527
251527
  const it2 = this.items[idx];
251528
251528
  return !keepScalar && identity3.isScalar(it2) ? it2.value : it2;
251529
251529
  }
251530
- has(key3) {
251531
- const idx = asItemIndex(key3);
251530
+ has(key2) {
251531
+ const idx = asItemIndex(key2);
251532
251532
  return typeof idx === "number" && idx < this.items.length;
251533
251533
  }
251534
- set(key3, value4) {
251535
- const idx = asItemIndex(key3);
251534
+ set(key2, value4) {
251535
+ const idx = asItemIndex(key2);
251536
251536
  if (typeof idx !== "number")
251537
- throw new Error(`Expected a valid index, not ${key3}.`);
251537
+ throw new Error(`Expected a valid index, not ${key2}.`);
251538
251538
  const prev = this.items[idx];
251539
251539
  if (identity3.isScalar(prev) && Scalar.isScalarValue(value4))
251540
251540
  prev.value = value4;
@@ -251568,8 +251568,8 @@ var require_YAMLSeq = __commonJS((exports) => {
251568
251568
  let i6 = 0;
251569
251569
  for (let it2 of obj) {
251570
251570
  if (typeof replacer === "function") {
251571
- const key3 = obj instanceof Set ? it2 : String(i6++);
251572
- it2 = replacer.call(obj, key3, it2);
251571
+ const key2 = obj instanceof Set ? it2 : String(i6++);
251572
+ it2 = replacer.call(obj, key2, it2);
251573
251573
  }
251574
251574
  seq.items.push(createNode.createNode(it2, undefined, ctx));
251575
251575
  }
@@ -251577,8 +251577,8 @@ var require_YAMLSeq = __commonJS((exports) => {
251577
251577
  return seq;
251578
251578
  }
251579
251579
  }
251580
- function asItemIndex(key3) {
251581
- let idx = identity3.isScalar(key3) ? key3.value : key3;
251580
+ function asItemIndex(key2) {
251581
+ let idx = identity3.isScalar(key2) ? key2.value : key2;
251582
251582
  if (idx && typeof idx === "string")
251583
251583
  idx = Number(idx);
251584
251584
  return typeof idx === "number" && Number.isInteger(idx) && idx >= 0 ? idx : null;
@@ -251950,25 +251950,25 @@ ${cn.comment}` : item.comment;
251950
251950
  for (let it2 of iterable) {
251951
251951
  if (typeof replacer === "function")
251952
251952
  it2 = replacer.call(iterable, String(i6++), it2);
251953
- let key3, value4;
251953
+ let key2, value4;
251954
251954
  if (Array.isArray(it2)) {
251955
251955
  if (it2.length === 2) {
251956
- key3 = it2[0];
251956
+ key2 = it2[0];
251957
251957
  value4 = it2[1];
251958
251958
  } else
251959
251959
  throw new TypeError(`Expected [key, value] tuple: ${it2}`);
251960
251960
  } else if (it2 && it2 instanceof Object) {
251961
251961
  const keys = Object.keys(it2);
251962
251962
  if (keys.length === 1) {
251963
- key3 = keys[0];
251964
- value4 = it2[key3];
251963
+ key2 = keys[0];
251964
+ value4 = it2[key2];
251965
251965
  } else {
251966
251966
  throw new TypeError(`Expected tuple with one key, not ${keys.length} keys`);
251967
251967
  }
251968
251968
  } else {
251969
- key3 = it2;
251969
+ key2 = it2;
251970
251970
  }
251971
- pairs2.items.push(Pair.createPair(key3, value4, ctx));
251971
+ pairs2.items.push(Pair.createPair(key2, value4, ctx));
251972
251972
  }
251973
251973
  return pairs2;
251974
251974
  }
@@ -252009,16 +252009,16 @@ var require_omap = __commonJS((exports) => {
252009
252009
  if (ctx?.onCreate)
252010
252010
  ctx.onCreate(map3);
252011
252011
  for (const pair of this.items) {
252012
- let key3, value4;
252012
+ let key2, value4;
252013
252013
  if (identity3.isPair(pair)) {
252014
- key3 = toJS.toJS(pair.key, "", ctx);
252015
- value4 = toJS.toJS(pair.value, key3, ctx);
252014
+ key2 = toJS.toJS(pair.key, "", ctx);
252015
+ value4 = toJS.toJS(pair.value, key2, ctx);
252016
252016
  } else {
252017
- key3 = toJS.toJS(pair, "", ctx);
252017
+ key2 = toJS.toJS(pair, "", ctx);
252018
252018
  }
252019
- if (map3.has(key3))
252019
+ if (map3.has(key2))
252020
252020
  throw new Error("Ordered maps must not include duplicate keys");
252021
- map3.set(key3, value4);
252021
+ map3.set(key2, value4);
252022
252022
  }
252023
252023
  return map3;
252024
252024
  }
@@ -252039,12 +252039,12 @@ var require_omap = __commonJS((exports) => {
252039
252039
  resolve(seq, onError) {
252040
252040
  const pairs$1 = pairs.resolvePairs(seq, onError);
252041
252041
  const seenKeys = [];
252042
- for (const { key: key3 } of pairs$1.items) {
252043
- if (identity3.isScalar(key3)) {
252044
- if (seenKeys.includes(key3.value)) {
252045
- onError(`Ordered maps must not include duplicate keys: ${key3.value}`);
252042
+ for (const { key: key2 } of pairs$1.items) {
252043
+ if (identity3.isScalar(key2)) {
252044
+ if (seenKeys.includes(key2.value)) {
252045
+ onError(`Ordered maps must not include duplicate keys: ${key2.value}`);
252046
252046
  } else {
252047
- seenKeys.push(key3.value);
252047
+ seenKeys.push(key2.value);
252048
252048
  }
252049
252049
  }
252050
252050
  }
@@ -252218,30 +252218,30 @@ var require_set = __commonJS((exports) => {
252218
252218
  super(schema);
252219
252219
  this.tag = YAMLSet.tag;
252220
252220
  }
252221
- add(key3) {
252221
+ add(key2) {
252222
252222
  let pair;
252223
- if (identity3.isPair(key3))
252224
- pair = key3;
252225
- else if (key3 && typeof key3 === "object" && "key" in key3 && "value" in key3 && key3.value === null)
252226
- pair = new Pair.Pair(key3.key, null);
252223
+ if (identity3.isPair(key2))
252224
+ pair = key2;
252225
+ else if (key2 && typeof key2 === "object" && "key" in key2 && "value" in key2 && key2.value === null)
252226
+ pair = new Pair.Pair(key2.key, null);
252227
252227
  else
252228
- pair = new Pair.Pair(key3, null);
252228
+ pair = new Pair.Pair(key2, null);
252229
252229
  const prev = YAMLMap.findPair(this.items, pair.key);
252230
252230
  if (!prev)
252231
252231
  this.items.push(pair);
252232
252232
  }
252233
- get(key3, keepPair) {
252234
- const pair = YAMLMap.findPair(this.items, key3);
252233
+ get(key2, keepPair) {
252234
+ const pair = YAMLMap.findPair(this.items, key2);
252235
252235
  return !keepPair && identity3.isPair(pair) ? identity3.isScalar(pair.key) ? pair.key.value : pair.key : pair;
252236
252236
  }
252237
- set(key3, value4) {
252237
+ set(key2, value4) {
252238
252238
  if (typeof value4 !== "boolean")
252239
252239
  throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof value4}`);
252240
- const prev = YAMLMap.findPair(this.items, key3);
252240
+ const prev = YAMLMap.findPair(this.items, key2);
252241
252241
  if (prev && !value4) {
252242
252242
  this.items.splice(this.items.indexOf(prev), 1);
252243
252243
  } else if (!prev && value4) {
252244
- this.items.push(new Pair.Pair(key3));
252244
+ this.items.push(new Pair.Pair(key2));
252245
252245
  }
252246
252246
  }
252247
252247
  toJSON(_5, ctx) {
@@ -252476,7 +252476,7 @@ var require_tags = __commonJS((exports) => {
252476
252476
  if (Array.isArray(customTags))
252477
252477
  tags = [];
252478
252478
  else {
252479
- const keys = Array.from(schemas.keys()).filter((key3) => key3 !== "yaml11").map((key3) => JSON.stringify(key3)).join(", ");
252479
+ const keys = Array.from(schemas.keys()).filter((key2) => key2 !== "yaml11").map((key2) => JSON.stringify(key2)).join(", ");
252480
252480
  throw new Error(`Unknown schema "${schemaName}"; use one of ${keys} or define customTags array`);
252481
252481
  }
252482
252482
  }
@@ -252492,7 +252492,7 @@ var require_tags = __commonJS((exports) => {
252492
252492
  const tagObj = typeof tag === "string" ? tagsByName[tag] : tag;
252493
252493
  if (!tagObj) {
252494
252494
  const tagName = JSON.stringify(tag);
252495
- const keys = Object.keys(tagsByName).map((key3) => JSON.stringify(key3)).join(", ");
252495
+ const keys = Object.keys(tagsByName).map((key2) => JSON.stringify(key2)).join(", ");
252496
252496
  throw new Error(`Unknown custom tag ${tagName}; use one of ${keys}`);
252497
252497
  }
252498
252498
  if (!tags2.includes(tagObj))
@@ -252727,13 +252727,13 @@ var require_Document = __commonJS((exports) => {
252727
252727
  setAnchors();
252728
252728
  return node;
252729
252729
  }
252730
- createPair(key3, value4, options = {}) {
252731
- const k5 = this.createNode(key3, null, options);
252730
+ createPair(key2, value4, options = {}) {
252731
+ const k5 = this.createNode(key2, null, options);
252732
252732
  const v7 = this.createNode(value4, null, options);
252733
252733
  return new Pair.Pair(k5, v7);
252734
252734
  }
252735
- delete(key3) {
252736
- return assertCollection(this.contents) ? this.contents.delete(key3) : false;
252735
+ delete(key2) {
252736
+ return assertCollection(this.contents) ? this.contents.delete(key2) : false;
252737
252737
  }
252738
252738
  deleteIn(path8) {
252739
252739
  if (Collection.isEmptyPath(path8)) {
@@ -252744,27 +252744,27 @@ var require_Document = __commonJS((exports) => {
252744
252744
  }
252745
252745
  return assertCollection(this.contents) ? this.contents.deleteIn(path8) : false;
252746
252746
  }
252747
- get(key3, keepScalar) {
252748
- return identity3.isCollection(this.contents) ? this.contents.get(key3, keepScalar) : undefined;
252747
+ get(key2, keepScalar) {
252748
+ return identity3.isCollection(this.contents) ? this.contents.get(key2, keepScalar) : undefined;
252749
252749
  }
252750
252750
  getIn(path8, keepScalar) {
252751
252751
  if (Collection.isEmptyPath(path8))
252752
252752
  return !keepScalar && identity3.isScalar(this.contents) ? this.contents.value : this.contents;
252753
252753
  return identity3.isCollection(this.contents) ? this.contents.getIn(path8, keepScalar) : undefined;
252754
252754
  }
252755
- has(key3) {
252756
- return identity3.isCollection(this.contents) ? this.contents.has(key3) : false;
252755
+ has(key2) {
252756
+ return identity3.isCollection(this.contents) ? this.contents.has(key2) : false;
252757
252757
  }
252758
252758
  hasIn(path8) {
252759
252759
  if (Collection.isEmptyPath(path8))
252760
252760
  return this.contents !== undefined;
252761
252761
  return identity3.isCollection(this.contents) ? this.contents.hasIn(path8) : false;
252762
252762
  }
252763
- set(key3, value4) {
252763
+ set(key2, value4) {
252764
252764
  if (this.contents == null) {
252765
- this.contents = Collection.collectionFromPath(this.schema, [key3], value4);
252765
+ this.contents = Collection.collectionFromPath(this.schema, [key2], value4);
252766
252766
  } else if (assertCollection(this.contents)) {
252767
- this.contents.set(key3, value4);
252767
+ this.contents.set(key2, value4);
252768
252768
  }
252769
252769
  }
252770
252770
  setIn(path8, value4) {
@@ -253048,25 +253048,25 @@ var require_resolve_props = __commonJS((exports) => {
253048
253048
 
253049
253049
  // ../../node_modules/yaml/dist/compose/util-contains-newline.js
253050
253050
  var require_util_contains_newline = __commonJS((exports) => {
253051
- function containsNewline(key3) {
253052
- if (!key3)
253051
+ function containsNewline(key2) {
253052
+ if (!key2)
253053
253053
  return null;
253054
- switch (key3.type) {
253054
+ switch (key2.type) {
253055
253055
  case "alias":
253056
253056
  case "scalar":
253057
253057
  case "double-quoted-scalar":
253058
253058
  case "single-quoted-scalar":
253059
- if (key3.source.includes(`
253059
+ if (key2.source.includes(`
253060
253060
  `))
253061
253061
  return true;
253062
- if (key3.end) {
253063
- for (const st2 of key3.end)
253062
+ if (key2.end) {
253063
+ for (const st2 of key2.end)
253064
253064
  if (st2.type === "newline")
253065
253065
  return true;
253066
253066
  }
253067
253067
  return false;
253068
253068
  case "flow-collection":
253069
- for (const it2 of key3.items) {
253069
+ for (const it2 of key2.items) {
253070
253070
  for (const st2 of it2.start)
253071
253071
  if (st2.type === "newline")
253072
253072
  return true;
@@ -253131,10 +253131,10 @@ var require_resolve_block_map = __commonJS((exports) => {
253131
253131
  let offset = bm.offset;
253132
253132
  let commentEnd = null;
253133
253133
  for (const collItem of bm.items) {
253134
- const { start: start3, key: key3, sep: sep3, value: value4 } = collItem;
253134
+ const { start: start3, key: key2, sep: sep3, value: value4 } = collItem;
253135
253135
  const keyProps = resolveProps.resolveProps(start3, {
253136
253136
  indicator: "explicit-key-ind",
253137
- next: key3 ?? sep3?.[0],
253137
+ next: key2 ?? sep3?.[0],
253138
253138
  offset,
253139
253139
  onError,
253140
253140
  parentIndent: bm.indent,
@@ -253142,10 +253142,10 @@ var require_resolve_block_map = __commonJS((exports) => {
253142
253142
  });
253143
253143
  const implicitKey = !keyProps.found;
253144
253144
  if (implicitKey) {
253145
- if (key3) {
253146
- if (key3.type === "block-seq")
253145
+ if (key2) {
253146
+ if (key2.type === "block-seq")
253147
253147
  onError(offset, "BLOCK_AS_IMPLICIT_KEY", "A block sequence may not be used as an implicit map key");
253148
- else if ("indent" in key3 && key3.indent !== bm.indent)
253148
+ else if ("indent" in key2 && key2.indent !== bm.indent)
253149
253149
  onError(offset, "BAD_INDENT", startColMsg);
253150
253150
  }
253151
253151
  if (!keyProps.anchor && !keyProps.tag && !sep3) {
@@ -253159,17 +253159,17 @@ var require_resolve_block_map = __commonJS((exports) => {
253159
253159
  }
253160
253160
  continue;
253161
253161
  }
253162
- if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(key3)) {
253163
- onError(key3 ?? start3[start3.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
253162
+ if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(key2)) {
253163
+ onError(key2 ?? start3[start3.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
253164
253164
  }
253165
253165
  } else if (keyProps.found?.indent !== bm.indent) {
253166
253166
  onError(offset, "BAD_INDENT", startColMsg);
253167
253167
  }
253168
253168
  ctx.atKey = true;
253169
253169
  const keyStart = keyProps.end;
253170
- const keyNode = key3 ? composeNode(ctx, key3, keyProps, onError) : composeEmptyNode(ctx, keyStart, start3, null, keyProps, onError);
253170
+ const keyNode = key2 ? composeNode(ctx, key2, keyProps, onError) : composeEmptyNode(ctx, keyStart, start3, null, keyProps, onError);
253171
253171
  if (ctx.schema.compat)
253172
- utilFlowIndentCheck.flowIndentCheck(bm.indent, key3, onError);
253172
+ utilFlowIndentCheck.flowIndentCheck(bm.indent, key2, onError);
253173
253173
  ctx.atKey = false;
253174
253174
  if (utilMapIncludes.mapIncludes(ctx, map3.items, keyNode))
253175
253175
  onError(keyStart, "DUPLICATE_KEY", "Map keys must be unique");
@@ -253179,7 +253179,7 @@ var require_resolve_block_map = __commonJS((exports) => {
253179
253179
  offset: keyNode.range[2],
253180
253180
  onError,
253181
253181
  parentIndent: bm.indent,
253182
- startOnNewline: !key3 || key3.type === "block-scalar"
253182
+ startOnNewline: !key2 || key2.type === "block-scalar"
253183
253183
  });
253184
253184
  offset = valueProps.end;
253185
253185
  if (valueProps.found) {
@@ -253335,11 +253335,11 @@ var require_resolve_flow_collection = __commonJS((exports) => {
253335
253335
  let offset = fc.offset + fc.start.source.length;
253336
253336
  for (let i6 = 0;i6 < fc.items.length; ++i6) {
253337
253337
  const collItem = fc.items[i6];
253338
- const { start: start3, key: key3, sep: sep3, value: value4 } = collItem;
253338
+ const { start: start3, key: key2, sep: sep3, value: value4 } = collItem;
253339
253339
  const props = resolveProps.resolveProps(start3, {
253340
253340
  flow: fcName,
253341
253341
  indicator: "explicit-key-ind",
253342
- next: key3 ?? sep3?.[0],
253342
+ next: key2 ?? sep3?.[0],
253343
253343
  offset,
253344
253344
  onError,
253345
253345
  parentIndent: fc.indent,
@@ -253361,8 +253361,8 @@ var require_resolve_flow_collection = __commonJS((exports) => {
253361
253361
  offset = props.end;
253362
253362
  continue;
253363
253363
  }
253364
- if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(key3))
253365
- onError(key3, "MULTILINE_IMPLICIT_KEY", "Implicit keys of flow sequence pairs need to be on a single line");
253364
+ if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(key2))
253365
+ onError(key2, "MULTILINE_IMPLICIT_KEY", "Implicit keys of flow sequence pairs need to be on a single line");
253366
253366
  }
253367
253367
  if (i6 === 0) {
253368
253368
  if (props.comma)
@@ -253407,8 +253407,8 @@ var require_resolve_flow_collection = __commonJS((exports) => {
253407
253407
  } else {
253408
253408
  ctx.atKey = true;
253409
253409
  const keyStart = props.end;
253410
- const keyNode = key3 ? composeNode(ctx, key3, props, onError) : composeEmptyNode(ctx, keyStart, start3, null, props, onError);
253411
- if (isBlock(key3))
253410
+ const keyNode = key2 ? composeNode(ctx, key2, props, onError) : composeEmptyNode(ctx, keyStart, start3, null, props, onError);
253411
+ if (isBlock(key2))
253412
253412
  onError(keyNode.range, "BLOCK_IN_FLOW", blockMsg);
253413
253413
  ctx.atKey = false;
253414
253414
  const valueProps = resolveProps.resolveProps(sep3 ?? [], {
@@ -254220,7 +254220,7 @@ var require_composer = __commonJS((exports) => {
254220
254220
  var node_process = __require("node:process");
254221
254221
  var directives4 = require_directives2();
254222
254222
  var Document = require_Document();
254223
- var errors3 = require_errors3();
254223
+ var errors2 = require_errors3();
254224
254224
  var identity3 = require_identity();
254225
254225
  var composeDoc = require_compose_doc();
254226
254226
  var resolveEnd = require_resolve_end();
@@ -254271,9 +254271,9 @@ var require_composer = __commonJS((exports) => {
254271
254271
  this.onError = (source, code2, message, warning) => {
254272
254272
  const pos = getErrorPos(source);
254273
254273
  if (warning)
254274
- this.warnings.push(new errors3.YAMLWarning(pos, code2, message));
254274
+ this.warnings.push(new errors2.YAMLWarning(pos, code2, message));
254275
254275
  else
254276
- this.errors.push(new errors3.YAMLParseError(pos, code2, message));
254276
+ this.errors.push(new errors2.YAMLParseError(pos, code2, message));
254277
254277
  };
254278
254278
  this.directives = new directives4.Directives({ version: options.version || "1.2" });
254279
254279
  this.options = options;
@@ -254357,7 +254357,7 @@ ${cb}` : comment;
254357
254357
  break;
254358
254358
  case "error": {
254359
254359
  const msg = token.source ? `${token.message}: ${JSON.stringify(token.source)}` : token.message;
254360
- const error5 = new errors3.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
254360
+ const error5 = new errors2.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
254361
254361
  if (this.atDirectives || !this.doc)
254362
254362
  this.errors.push(error5);
254363
254363
  else
@@ -254367,7 +254367,7 @@ ${cb}` : comment;
254367
254367
  case "doc-end": {
254368
254368
  if (!this.doc) {
254369
254369
  const msg = "Unexpected doc-end without preceding document";
254370
- this.errors.push(new errors3.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
254370
+ this.errors.push(new errors2.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
254371
254371
  break;
254372
254372
  }
254373
254373
  this.doc.directives.docEnd = true;
@@ -254382,7 +254382,7 @@ ${end.comment}` : end.comment;
254382
254382
  break;
254383
254383
  }
254384
254384
  default:
254385
- this.errors.push(new errors3.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
254385
+ this.errors.push(new errors2.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
254386
254386
  }
254387
254387
  }
254388
254388
  *end(forceDoc = false, endOffset = -1) {
@@ -254408,7 +254408,7 @@ ${end.comment}` : end.comment;
254408
254408
  var require_cst_scalar = __commonJS((exports) => {
254409
254409
  var resolveBlockScalar = require_resolve_block_scalar();
254410
254410
  var resolveFlowScalar = require_resolve_flow_scalar();
254411
- var errors3 = require_errors3();
254411
+ var errors2 = require_errors3();
254412
254412
  var stringifyString = require_stringifyString();
254413
254413
  function resolveAsScalar(token, strict = true, onError) {
254414
254414
  if (token) {
@@ -254417,7 +254417,7 @@ var require_cst_scalar = __commonJS((exports) => {
254417
254417
  if (onError)
254418
254418
  onError(offset, code2, message);
254419
254419
  else
254420
- throw new errors3.YAMLParseError([offset, offset + 1], code2, message);
254420
+ throw new errors2.YAMLParseError([offset, offset + 1], code2, message);
254421
254421
  };
254422
254422
  switch (token.type) {
254423
254423
  case "scalar":
@@ -254531,9 +254531,9 @@ var require_cst_scalar = __commonJS((exports) => {
254531
254531
  if (!addEndtoBlockProps(props, "end" in token ? token.end : undefined))
254532
254532
  props.push({ type: "newline", offset: -1, indent: indent2, source: `
254533
254533
  ` });
254534
- for (const key3 of Object.keys(token))
254535
- if (key3 !== "type" && key3 !== "offset")
254536
- delete token[key3];
254534
+ for (const key2 of Object.keys(token))
254535
+ if (key2 !== "type" && key2 !== "offset")
254536
+ delete token[key2];
254537
254537
  Object.assign(token, { type: "block-scalar", indent: indent2, props, source: body });
254538
254538
  }
254539
254539
  }
@@ -254582,9 +254582,9 @@ var require_cst_scalar = __commonJS((exports) => {
254582
254582
  default: {
254583
254583
  const indent2 = "indent" in token ? token.indent : -1;
254584
254584
  const end = "end" in token && Array.isArray(token.end) ? token.end.filter((st2) => st2.type === "space" || st2.type === "comment" || st2.type === "newline") : [];
254585
- for (const key3 of Object.keys(token))
254586
- if (key3 !== "type" && key3 !== "offset")
254587
- delete token[key3];
254585
+ for (const key2 of Object.keys(token))
254586
+ if (key2 !== "type" && key2 !== "offset")
254587
+ delete token[key2];
254588
254588
  Object.assign(token, { type: type4, indent: indent2, source, end });
254589
254589
  }
254590
254590
  }
@@ -254636,12 +254636,12 @@ var require_cst_stringify = __commonJS((exports) => {
254636
254636
  }
254637
254637
  }
254638
254638
  }
254639
- function stringifyItem({ start: start3, key: key3, sep: sep3, value: value4 }) {
254639
+ function stringifyItem({ start: start3, key: key2, sep: sep3, value: value4 }) {
254640
254640
  let res = "";
254641
254641
  for (const st2 of start3)
254642
254642
  res += st2.source;
254643
- if (key3)
254644
- res += stringifyToken(key3);
254643
+ if (key2)
254644
+ res += stringifyToken(key2);
254645
254645
  if (sep3)
254646
254646
  for (const st2 of sep3)
254647
254647
  res += st2.source;
@@ -255938,7 +255938,7 @@ var require_parser2 = __commonJS((exports) => {
255938
255938
  });
255939
255939
  } else if (isFlowToken(it2.key) && !includesToken(it2.sep, "newline")) {
255940
255940
  const start4 = getFirstKeyStartProps(it2.start);
255941
- const key3 = it2.key;
255941
+ const key2 = it2.key;
255942
255942
  const sep3 = it2.sep;
255943
255943
  sep3.push(this.sourceToken);
255944
255944
  delete it2.key;
@@ -255947,7 +255947,7 @@ var require_parser2 = __commonJS((exports) => {
255947
255947
  type: "block-map",
255948
255948
  offset: this.offset,
255949
255949
  indent: this.indent,
255950
- items: [{ start: start4, key: key3, sep: sep3 }]
255950
+ items: [{ start: start4, key: key2, sep: sep3 }]
255951
255951
  });
255952
255952
  } else if (start3.length > 0) {
255953
255953
  it2.sep = it2.sep.concat(start3, this.sourceToken);
@@ -256270,7 +256270,7 @@ var require_parser2 = __commonJS((exports) => {
256270
256270
  var require_public_api = __commonJS((exports) => {
256271
256271
  var composer = require_composer();
256272
256272
  var Document = require_Document();
256273
- var errors3 = require_errors3();
256273
+ var errors2 = require_errors3();
256274
256274
  var log = require_log();
256275
256275
  var identity3 = require_identity();
256276
256276
  var lineCounter = require_line_counter();
@@ -256287,8 +256287,8 @@ var require_public_api = __commonJS((exports) => {
256287
256287
  const docs = Array.from(composer$1.compose(parser$1.parse(source)));
256288
256288
  if (prettyErrors && lineCounter2)
256289
256289
  for (const doc of docs) {
256290
- doc.errors.forEach(errors3.prettifyError(source, lineCounter2));
256291
- doc.warnings.forEach(errors3.prettifyError(source, lineCounter2));
256290
+ doc.errors.forEach(errors2.prettifyError(source, lineCounter2));
256291
+ doc.warnings.forEach(errors2.prettifyError(source, lineCounter2));
256292
256292
  }
256293
256293
  if (docs.length > 0)
256294
256294
  return docs;
@@ -256303,13 +256303,13 @@ var require_public_api = __commonJS((exports) => {
256303
256303
  if (!doc)
256304
256304
  doc = _doc;
256305
256305
  else if (doc.options.logLevel !== "silent") {
256306
- doc.errors.push(new errors3.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
256306
+ doc.errors.push(new errors2.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
256307
256307
  break;
256308
256308
  }
256309
256309
  }
256310
256310
  if (prettyErrors && lineCounter2) {
256311
- doc.errors.forEach(errors3.prettifyError(source, lineCounter2));
256312
- doc.warnings.forEach(errors3.prettifyError(source, lineCounter2));
256311
+ doc.errors.forEach(errors2.prettifyError(source, lineCounter2));
256312
+ doc.warnings.forEach(errors2.prettifyError(source, lineCounter2));
256313
256313
  }
256314
256314
  return doc;
256315
256315
  }
@@ -256788,7 +256788,7 @@ ${error.stack}`));
256788
256788
  var package_default = {
256789
256789
  name: "@settlemint/sdk-cli",
256790
256790
  description: "SettleMint SDK, integrate SettleMint into your application with ease.",
256791
- version: "0.9.3-prb49ccc82",
256791
+ version: "0.9.3-prb5839b17",
256792
256792
  type: "module",
256793
256793
  private: false,
256794
256794
  license: "FSL-1.1-MIT",
@@ -256840,9 +256840,9 @@ var package_default = {
256840
256840
  "@inquirer/confirm": "5.1.2",
256841
256841
  "@inquirer/input": "4.1.2",
256842
256842
  "@inquirer/password": "4.0.5",
256843
- "@inquirer/select": "4.0.4",
256844
- "@settlemint/sdk-js": "0.9.3-prb49ccc82",
256845
- "@settlemint/sdk-utils": "0.9.3-prb49ccc82",
256843
+ "@inquirer/select": "4.0.5",
256844
+ "@settlemint/sdk-js": "0.9.3-prb5839b17",
256845
+ "@settlemint/sdk-utils": "0.9.3-prb5839b17",
256846
256846
  "get-tsconfig": "4.8.1",
256847
256847
  giget: "1.2.3"
256848
256848
  },
@@ -267561,7 +267561,7 @@ var et = l((Re, tt) => {
267561
267561
  var g = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys", Y = h("path"), Bt = g ? ";" : ":", V = U(), J = (t) => Object.assign(new Error(`not found: ${t}`), { code: "ENOENT" }), Q = (t, e) => {
267562
267562
  let n = e.colon || Bt, r = t.match(/\//) || g && t.match(/\\/) ? [""] : [
267563
267563
  ...g ? [process.cwd()] : [],
267564
- ...(e.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.XQyFeQmXFp:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin").split(n)
267564
+ ...(e.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.luuHaBH1m5:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin").split(n)
267565
267565
  ], s = g ? e.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "", o = g ? s.split(n) : [""];
267566
267566
  return g && t.indexOf(".") !== -1 && o[0] !== "" && o.unshift(""), {
267567
267567
  pathEnv: r,
@@ -268232,6 +268232,28 @@ async function isPackageInstalled(name, path5) {
268232
268232
  const inPeerDependencies = !!pkgJson.content.peerDependencies?.[name];
268233
268233
  return inDependencies || inDevDependencies || inPeerDependencies;
268234
268234
  }
268235
+ async function retryWhenFailed(fn, maxRetries = 5, initialSleepTime = 3000, stopOnError) {
268236
+ let attempt = 0;
268237
+ while (attempt < maxRetries) {
268238
+ try {
268239
+ return await fn();
268240
+ } catch (e) {
268241
+ if (typeof stopOnError === "function") {
268242
+ const error = e;
268243
+ if (stopOnError(error)) {
268244
+ throw error;
268245
+ }
268246
+ }
268247
+ attempt += 1;
268248
+ if (attempt >= maxRetries) {
268249
+ throw e;
268250
+ }
268251
+ const jitter = 0.5 + Math.random();
268252
+ const delay = 2 ** attempt * initialSleepTime * jitter;
268253
+ await new Promise((resolve2) => setTimeout(resolve2, delay));
268254
+ }
268255
+ }
268256
+ }
268235
268257
  function capitalizeFirstLetter(val) {
268236
268258
  return String(val).charAt(0).toUpperCase() + String(val).slice(1);
268237
268259
  }
@@ -268514,50 +268536,41 @@ async function testGqlEndpoint({
268514
268536
  accessToken,
268515
268537
  hasuraAdminSecret,
268516
268538
  gqlEndpoint,
268517
- isHasura = false,
268518
- maxRetries = 3
268539
+ isHasura = false
268519
268540
  }) {
268520
268541
  if (!gqlEndpoint) {
268521
268542
  return false;
268522
268543
  }
268523
- for (let attempt = 0;attempt < maxRetries; attempt++) {
268524
- try {
268525
- const response = await fetch(gqlEndpoint, {
268526
- method: "POST",
268527
- headers: {
268528
- "x-auth-token": accessToken,
268529
- ...isHasura ? { "x-hasura-admin-secret": hasuraAdminSecret ?? "" } : {},
268530
- "Content-Type": "application/json"
268531
- },
268532
- body: JSON.stringify({
268533
- query: `
268534
- query {
268535
- __schema {
268536
- types {
268537
- name
268538
- }
268544
+ const result = await retryWhenFailed(async () => {
268545
+ const response = await fetch(gqlEndpoint, {
268546
+ method: "POST",
268547
+ headers: {
268548
+ "x-auth-token": accessToken,
268549
+ ...isHasura ? { "x-hasura-admin-secret": hasuraAdminSecret ?? "" } : {},
268550
+ "Content-Type": "application/json"
268551
+ },
268552
+ body: JSON.stringify({
268553
+ query: `
268554
+ query {
268555
+ __schema {
268556
+ types {
268557
+ name
268539
268558
  }
268540
268559
  }
268541
- `
268542
- })
268543
- });
268544
- if (!response.ok) {
268545
- throw new Error(`HTTP error! status: ${response.status}`);
268546
- }
268547
- const data = await response.json();
268548
- if (data.errors) {
268549
- throw new Error("GraphQL errors in response");
268550
- }
268551
- return true;
268552
- } catch (error5) {
268553
- if (attempt === maxRetries - 1) {
268554
- return false;
268555
- }
268556
- const delay2 = 2 ** attempt * 1000;
268557
- await new Promise((resolve4) => setTimeout(resolve4, delay2));
268560
+ }
268561
+ `
268562
+ })
268563
+ });
268564
+ if (!response.ok) {
268565
+ throw new Error(`HTTP error! status: ${response.status}`);
268558
268566
  }
268559
- }
268560
- return false;
268567
+ const data = await response.json();
268568
+ if (data.errors) {
268569
+ throw new Error("GraphQL errors in response");
268570
+ }
268571
+ return true;
268572
+ });
268573
+ return result ?? false;
268561
268574
  }
268562
268575
 
268563
268576
  // ../../node_modules/get-tsconfig/dist/index.mjs
@@ -269544,13 +269557,13 @@ async function codegenTsconfig(env2, thegraphSubgraphNames) {
269544
269557
  };
269545
269558
  }
269546
269559
 
269547
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/key.js
269560
+ // ../../node_modules/@inquirer/core/dist/esm/lib/key.js
269548
269561
  var isUpKey = (key) => key.name === "up" || key.name === "k" || key.ctrl && key.name === "p";
269549
269562
  var isDownKey = (key) => key.name === "down" || key.name === "j" || key.ctrl && key.name === "n";
269550
269563
  var isBackspaceKey = (key) => key.name === "backspace";
269551
269564
  var isNumberKey = (key) => "123456789".includes(key.name);
269552
269565
  var isEnterKey = (key) => key.name === "enter" || key.name === "return";
269553
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/errors.js
269566
+ // ../../node_modules/@inquirer/core/dist/esm/lib/errors.js
269554
269567
  class AbortPromptError extends Error {
269555
269568
  name = "AbortPromptError";
269556
269569
  message = "Prompt was aborted";
@@ -269576,10 +269589,10 @@ class HookError extends Error {
269576
269589
  class ValidationError extends Error {
269577
269590
  name = "ValidationError";
269578
269591
  }
269579
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
269592
+ // ../../node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
269580
269593
  import { AsyncResource as AsyncResource2 } from "node:async_hooks";
269581
269594
 
269582
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
269595
+ // ../../node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
269583
269596
  import { AsyncLocalStorage, AsyncResource } from "node:async_hooks";
269584
269597
  var hookStorage = new AsyncLocalStorage;
269585
269598
  function createStore(rl) {
@@ -269685,7 +269698,7 @@ var effectScheduler = {
269685
269698
  }
269686
269699
  };
269687
269700
 
269688
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-state.js
269701
+ // ../../node_modules/@inquirer/core/dist/esm/lib/use-state.js
269689
269702
  function useState(defaultValue) {
269690
269703
  return withPointer((pointer) => {
269691
269704
  const setFn = (newValue) => {
@@ -269703,7 +269716,7 @@ function useState(defaultValue) {
269703
269716
  });
269704
269717
  }
269705
269718
 
269706
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
269719
+ // ../../node_modules/@inquirer/core/dist/esm/lib/use-effect.js
269707
269720
  function useEffect(cb, depArray) {
269708
269721
  withPointer((pointer) => {
269709
269722
  const oldDeps = pointer.get();
@@ -269715,7 +269728,7 @@ function useEffect(cb, depArray) {
269715
269728
  });
269716
269729
  }
269717
269730
 
269718
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/theme.js
269731
+ // ../../node_modules/@inquirer/core/dist/esm/lib/theme.js
269719
269732
  var import_yoctocolors_cjs = __toESM(require_yoctocolors_cjs(), 1);
269720
269733
 
269721
269734
  // ../../node_modules/@inquirer/figures/dist/esm/index.js
@@ -270004,7 +270017,7 @@ var figures = shouldUseMain ? mainSymbols : fallbackSymbols;
270004
270017
  var esm_default = figures;
270005
270018
  var replacements = Object.entries(specialMainSymbols);
270006
270019
 
270007
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/theme.js
270020
+ // ../../node_modules/@inquirer/core/dist/esm/lib/theme.js
270008
270021
  var defaultTheme = {
270009
270022
  prefix: {
270010
270023
  idle: import_yoctocolors_cjs.default.blue("?"),
@@ -270025,7 +270038,7 @@ var defaultTheme = {
270025
270038
  }
270026
270039
  };
270027
270040
 
270028
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
270041
+ // ../../node_modules/@inquirer/core/dist/esm/lib/make-theme.js
270029
270042
  function isPlainObject(value4) {
270030
270043
  if (typeof value4 !== "object" || value4 === null)
270031
270044
  return false;
@@ -270053,7 +270066,7 @@ function makeTheme(...themes) {
270053
270066
  return deepMerge2(...themesToMerge);
270054
270067
  }
270055
270068
 
270056
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
270069
+ // ../../node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
270057
270070
  function usePrefix({ status = "idle", theme }) {
270058
270071
  const [showLoader, setShowLoader] = useState(false);
270059
270072
  const [tick, setTick] = useState(0);
@@ -270083,7 +270096,7 @@ function usePrefix({ status = "idle", theme }) {
270083
270096
  const iconName = status === "loading" ? "idle" : status;
270084
270097
  return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
270085
270098
  }
270086
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-memo.js
270099
+ // ../../node_modules/@inquirer/core/dist/esm/lib/use-memo.js
270087
270100
  function useMemo(fn, dependencies) {
270088
270101
  return withPointer((pointer) => {
270089
270102
  const prev = pointer.get();
@@ -270095,11 +270108,11 @@ function useMemo(fn, dependencies) {
270095
270108
  return prev.value;
270096
270109
  });
270097
270110
  }
270098
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
270111
+ // ../../node_modules/@inquirer/core/dist/esm/lib/use-ref.js
270099
270112
  function useRef(val) {
270100
270113
  return useState({ current: val })[0];
270101
270114
  }
270102
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
270115
+ // ../../node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
270103
270116
  function useKeypress(userHandler) {
270104
270117
  const signal = useRef(userHandler);
270105
270118
  signal.current = userHandler;
@@ -270117,7 +270130,7 @@ function useKeypress(userHandler) {
270117
270130
  };
270118
270131
  }, []);
270119
270132
  }
270120
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/utils.js
270133
+ // ../../node_modules/@inquirer/core/dist/esm/lib/utils.js
270121
270134
  var import_cli_width = __toESM(require_cli_width(), 1);
270122
270135
  var import_wrap_ansi = __toESM(require_wrap_ansi(), 1);
270123
270136
  function breakLines(content, width) {
@@ -270130,7 +270143,7 @@ function readlineWidth() {
270130
270143
  return import_cli_width.default({ defaultWidth: 80, output: readline().output });
270131
270144
  }
270132
270145
 
270133
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/pagination/lines.js
270146
+ // ../../node_modules/@inquirer/core/dist/esm/lib/pagination/lines.js
270134
270147
  function split2(content, width) {
270135
270148
  return breakLines(content, width).split(`
270136
270149
  `);
@@ -270175,7 +270188,7 @@ function lines({ items, width, renderItem, active, position: requested, pageSize
270175
270188
  return pageBuffer.filter((line) => typeof line === "string");
270176
270189
  }
270177
270190
 
270178
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/pagination/position.js
270191
+ // ../../node_modules/@inquirer/core/dist/esm/lib/pagination/position.js
270179
270192
  function finite({ active, pageSize, total }) {
270180
270193
  const middle = Math.floor(pageSize / 2);
270181
270194
  if (total <= pageSize || active < middle)
@@ -270193,7 +270206,7 @@ function infinite({ active, lastActive, total, pageSize, pointer }) {
270193
270206
  return pointer;
270194
270207
  }
270195
270208
 
270196
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
270209
+ // ../../node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
270197
270210
  function usePagination({ items, active, renderItem, pageSize, loop = true }) {
270198
270211
  const state = useRef({ position: 0, lastActive: 0 });
270199
270212
  const position = loop ? infinite({
@@ -270219,13 +270232,13 @@ function usePagination({ items, active, renderItem, pageSize, loop = true }) {
270219
270232
  }).join(`
270220
270233
  `);
270221
270234
  }
270222
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
270235
+ // ../../node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
270223
270236
  var import_mute_stream = __toESM(require_lib13(), 1);
270224
270237
  init_mjs();
270225
270238
  import * as readline2 from "node:readline";
270226
270239
  import { AsyncResource as AsyncResource3 } from "node:async_hooks";
270227
270240
 
270228
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
270241
+ // ../../node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
270229
270242
  var import_strip_ansi = __toESM(require_strip_ansi(), 1);
270230
270243
  var import_ansi_escapes = __toESM(require_ansi_escapes(), 1);
270231
270244
  var height = (content) => content.split(`
@@ -270296,7 +270309,7 @@ class ScreenManager {
270296
270309
  }
270297
270310
  }
270298
270311
 
270299
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
270312
+ // ../../node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
270300
270313
  class PromisePolyfill extends Promise {
270301
270314
  static withResolver() {
270302
270315
  let resolve4;
@@ -270309,7 +270322,7 @@ class PromisePolyfill extends Promise {
270309
270322
  }
270310
270323
  }
270311
270324
 
270312
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
270325
+ // ../../node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
270313
270326
  function getCallSites() {
270314
270327
  const _prepareStackTrace = Error.prepareStackTrace;
270315
270328
  try {
@@ -270391,7 +270404,7 @@ function createPrompt(view) {
270391
270404
  };
270392
270405
  return prompt;
270393
270406
  }
270394
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/Separator.js
270407
+ // ../../node_modules/@inquirer/core/dist/esm/lib/Separator.js
270395
270408
  var import_yoctocolors_cjs2 = __toESM(require_yoctocolors_cjs(), 1);
270396
270409
  class Separator {
270397
270410
  separator = import_yoctocolors_cjs2.default.dim(Array.from({ length: 15 }).join(esm_default.line));
@@ -271149,12 +271162,12 @@ async function writeEnvSpinner(prod, env2) {
271149
271162
  }
271150
271163
 
271151
271164
  // src/utils/get-cluster-service-endpoint.ts
271152
- async function getGraphEndpoint(service, env2) {
271165
+ async function getGraphEndpoint(service, env2, graphName) {
271153
271166
  if (!service || service.__typename !== "HAGraphMiddleware") {
271154
271167
  return {};
271155
271168
  }
271156
271169
  const isStarterKit = (id) => id.endsWith("-starterkits");
271157
- const testEndpoint = service.subgraphs.find(({ graphqlQueryEndpoint }) => !isStarterKit(graphqlQueryEndpoint?.id))?.graphqlQueryEndpoint?.displayValue;
271170
+ const testEndpoint = service.subgraphs.find(({ graphqlQueryEndpoint }) => graphName ? graphqlQueryEndpoint?.id.endsWith(graphName) : !isStarterKit(graphqlQueryEndpoint?.id))?.graphqlQueryEndpoint?.displayValue;
271158
271171
  const starterKitEndpoint = service.subgraphs.find(({ graphqlQueryEndpoint }) => isStarterKit(graphqlQueryEndpoint?.id))?.graphqlQueryEndpoint?.displayValue;
271159
271172
  const hasEndpoint = testEndpoint && env2.SETTLEMINT_ACCESS_TOKEN ? await testGqlEndpoint({ accessToken: env2.SETTLEMINT_ACCESS_TOKEN, gqlEndpoint: testEndpoint }) : false;
271160
271173
  const endpoints = hasEndpoint ? service.subgraphs.map(({ graphqlQueryEndpoint }) => graphqlQueryEndpoint?.displayValue) : starterKitEndpoint ? [starterKitEndpoint] : [];
@@ -273153,28 +273166,20 @@ function createSettleMintClient(options) {
273153
273166
  "x-auth-token": validatedOptions.accessToken
273154
273167
  },
273155
273168
  fetch: async (input, init2) => {
273156
- const maxRetries = 3;
273157
- const retryDelay = 1000;
273158
- for (let attempt = 1;attempt <= maxRetries; attempt++) {
273159
- try {
273160
- const response = await fetch(input, init2);
273161
- if (response.ok) {
273162
- return response;
273163
- }
273164
- if (response.status < 500 && response.status !== 429 && response.status !== 408 && response.status !== 0) {
273165
- return response;
273166
- }
273167
- if (attempt === maxRetries) {
273168
- return response;
273169
- }
273170
- } catch (error5) {
273171
- if (attempt === maxRetries) {
273172
- throw error5;
273173
- }
273169
+ const response = await retryWhenFailed(async () => {
273170
+ const response2 = await fetch(input, init2);
273171
+ if (response2.ok) {
273172
+ return response2;
273173
+ }
273174
+ if (response2.status < 500 && response2.status !== 429 && response2.status !== 408 && response2.status !== 0) {
273175
+ return response2;
273174
273176
  }
273175
- await new Promise((resolve5) => setTimeout(resolve5, retryDelay * 2 ** (attempt - 1) * (0.5 + Math.random())));
273177
+ throw new Error(response2.statusText);
273178
+ });
273179
+ if (!response) {
273180
+ throw new Error("Failed to fetch");
273176
273181
  }
273177
- throw new Error("Max retries exceeded");
273182
+ return response;
273178
273183
  }
273179
273184
  });
273180
273185
  return {
@@ -273253,462 +273258,6 @@ function createSettleMintClient(options) {
273253
273258
  };
273254
273259
  }
273255
273260
 
273256
- // ../../node_modules/@inquirer/core/dist/esm/lib/key.js
273257
- var isBackspaceKey2 = (key2) => key2.name === "backspace";
273258
- var isEnterKey2 = (key2) => key2.name === "enter" || key2.name === "return";
273259
- // ../../node_modules/@inquirer/core/dist/esm/lib/errors.js
273260
- class AbortPromptError2 extends Error {
273261
- name = "AbortPromptError";
273262
- message = "Prompt was aborted";
273263
- constructor(options) {
273264
- super();
273265
- this.cause = options?.cause;
273266
- }
273267
- }
273268
-
273269
- class CancelPromptError2 extends Error {
273270
- name = "CancelPromptError";
273271
- message = "Prompt was canceled";
273272
- }
273273
-
273274
- class ExitPromptError2 extends Error {
273275
- name = "ExitPromptError";
273276
- }
273277
-
273278
- class HookError2 extends Error {
273279
- name = "HookError";
273280
- }
273281
-
273282
- class ValidationError2 extends Error {
273283
- name = "ValidationError";
273284
- }
273285
- // ../../node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
273286
- import { AsyncResource as AsyncResource5 } from "node:async_hooks";
273287
-
273288
- // ../../node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
273289
- import { AsyncLocalStorage as AsyncLocalStorage2, AsyncResource as AsyncResource4 } from "node:async_hooks";
273290
- var hookStorage2 = new AsyncLocalStorage2;
273291
- function createStore2(rl) {
273292
- const store = {
273293
- rl,
273294
- hooks: [],
273295
- hooksCleanup: [],
273296
- hooksEffect: [],
273297
- index: 0,
273298
- handleChange() {
273299
- }
273300
- };
273301
- return store;
273302
- }
273303
- function withHooks2(rl, cb) {
273304
- const store = createStore2(rl);
273305
- return hookStorage2.run(store, () => {
273306
- function cycle(render) {
273307
- store.handleChange = () => {
273308
- store.index = 0;
273309
- render();
273310
- };
273311
- store.handleChange();
273312
- }
273313
- return cb(cycle);
273314
- });
273315
- }
273316
- function getStore2() {
273317
- const store = hookStorage2.getStore();
273318
- if (!store) {
273319
- throw new HookError2("[Inquirer] Hook functions can only be called from within a prompt");
273320
- }
273321
- return store;
273322
- }
273323
- function readline3() {
273324
- return getStore2().rl;
273325
- }
273326
- function withUpdates2(fn) {
273327
- const wrapped = (...args) => {
273328
- const store = getStore2();
273329
- let shouldUpdate = false;
273330
- const oldHandleChange = store.handleChange;
273331
- store.handleChange = () => {
273332
- shouldUpdate = true;
273333
- };
273334
- const returnValue = fn(...args);
273335
- if (shouldUpdate) {
273336
- oldHandleChange();
273337
- }
273338
- store.handleChange = oldHandleChange;
273339
- return returnValue;
273340
- };
273341
- return AsyncResource4.bind(wrapped);
273342
- }
273343
- function withPointer2(cb) {
273344
- const store = getStore2();
273345
- const { index } = store;
273346
- const pointer = {
273347
- get() {
273348
- return store.hooks[index];
273349
- },
273350
- set(value4) {
273351
- store.hooks[index] = value4;
273352
- },
273353
- initialized: index in store.hooks
273354
- };
273355
- const returnValue = cb(pointer);
273356
- store.index++;
273357
- return returnValue;
273358
- }
273359
- function handleChange2() {
273360
- getStore2().handleChange();
273361
- }
273362
- var effectScheduler2 = {
273363
- queue(cb) {
273364
- const store = getStore2();
273365
- const { index } = store;
273366
- store.hooksEffect.push(() => {
273367
- store.hooksCleanup[index]?.();
273368
- const cleanFn = cb(readline3());
273369
- if (cleanFn != null && typeof cleanFn !== "function") {
273370
- throw new ValidationError2("useEffect return value must be a cleanup function or nothing.");
273371
- }
273372
- store.hooksCleanup[index] = cleanFn;
273373
- });
273374
- },
273375
- run() {
273376
- const store = getStore2();
273377
- withUpdates2(() => {
273378
- store.hooksEffect.forEach((effect) => {
273379
- effect();
273380
- });
273381
- store.hooksEffect.length = 0;
273382
- })();
273383
- },
273384
- clearAll() {
273385
- const store = getStore2();
273386
- store.hooksCleanup.forEach((cleanFn) => {
273387
- cleanFn?.();
273388
- });
273389
- store.hooksEffect.length = 0;
273390
- store.hooksCleanup.length = 0;
273391
- }
273392
- };
273393
-
273394
- // ../../node_modules/@inquirer/core/dist/esm/lib/use-state.js
273395
- function useState2(defaultValue) {
273396
- return withPointer2((pointer) => {
273397
- const setFn = (newValue) => {
273398
- if (pointer.get() !== newValue) {
273399
- pointer.set(newValue);
273400
- handleChange2();
273401
- }
273402
- };
273403
- if (pointer.initialized) {
273404
- return [pointer.get(), setFn];
273405
- }
273406
- const value4 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
273407
- pointer.set(value4);
273408
- return [value4, setFn];
273409
- });
273410
- }
273411
-
273412
- // ../../node_modules/@inquirer/core/dist/esm/lib/use-effect.js
273413
- function useEffect2(cb, depArray) {
273414
- withPointer2((pointer) => {
273415
- const oldDeps = pointer.get();
273416
- const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i6) => !Object.is(dep, oldDeps[i6]));
273417
- if (hasChanged) {
273418
- effectScheduler2.queue(cb);
273419
- }
273420
- pointer.set(depArray);
273421
- });
273422
- }
273423
-
273424
- // ../../node_modules/@inquirer/core/dist/esm/lib/theme.js
273425
- var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
273426
- var defaultTheme2 = {
273427
- prefix: {
273428
- idle: import_yoctocolors_cjs4.default.blue("?"),
273429
- done: import_yoctocolors_cjs4.default.green(esm_default.tick)
273430
- },
273431
- spinner: {
273432
- interval: 80,
273433
- frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs4.default.yellow(frame))
273434
- },
273435
- style: {
273436
- answer: import_yoctocolors_cjs4.default.cyan,
273437
- message: import_yoctocolors_cjs4.default.bold,
273438
- error: (text2) => import_yoctocolors_cjs4.default.red(`> ${text2}`),
273439
- defaultAnswer: (text2) => import_yoctocolors_cjs4.default.dim(`(${text2})`),
273440
- help: import_yoctocolors_cjs4.default.dim,
273441
- highlight: import_yoctocolors_cjs4.default.cyan,
273442
- key: (text2) => import_yoctocolors_cjs4.default.cyan(import_yoctocolors_cjs4.default.bold(`<${text2}>`))
273443
- }
273444
- };
273445
-
273446
- // ../../node_modules/@inquirer/core/dist/esm/lib/make-theme.js
273447
- function isPlainObject3(value4) {
273448
- if (typeof value4 !== "object" || value4 === null)
273449
- return false;
273450
- let proto = value4;
273451
- while (Object.getPrototypeOf(proto) !== null) {
273452
- proto = Object.getPrototypeOf(proto);
273453
- }
273454
- return Object.getPrototypeOf(value4) === proto;
273455
- }
273456
- function deepMerge3(...objects) {
273457
- const output = {};
273458
- for (const obj of objects) {
273459
- for (const [key2, value4] of Object.entries(obj)) {
273460
- const prevValue = output[key2];
273461
- output[key2] = isPlainObject3(prevValue) && isPlainObject3(value4) ? deepMerge3(prevValue, value4) : value4;
273462
- }
273463
- }
273464
- return output;
273465
- }
273466
- function makeTheme2(...themes) {
273467
- const themesToMerge = [
273468
- defaultTheme2,
273469
- ...themes.filter((theme) => theme != null)
273470
- ];
273471
- return deepMerge3(...themesToMerge);
273472
- }
273473
-
273474
- // ../../node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
273475
- function usePrefix2({ status = "idle", theme }) {
273476
- const [showLoader, setShowLoader] = useState2(false);
273477
- const [tick, setTick] = useState2(0);
273478
- const { prefix, spinner: spinner2 } = makeTheme2(theme);
273479
- useEffect2(() => {
273480
- if (status === "loading") {
273481
- let tickInterval;
273482
- let inc = -1;
273483
- const delayTimeout = setTimeout(AsyncResource5.bind(() => {
273484
- setShowLoader(true);
273485
- tickInterval = setInterval(AsyncResource5.bind(() => {
273486
- inc = inc + 1;
273487
- setTick(inc % spinner2.frames.length);
273488
- }), spinner2.interval);
273489
- }), 300);
273490
- return () => {
273491
- clearTimeout(delayTimeout);
273492
- clearInterval(tickInterval);
273493
- };
273494
- } else {
273495
- setShowLoader(false);
273496
- }
273497
- }, [status]);
273498
- if (showLoader) {
273499
- return spinner2.frames[tick];
273500
- }
273501
- const iconName = status === "loading" ? "idle" : status;
273502
- return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
273503
- }
273504
- // ../../node_modules/@inquirer/core/dist/esm/lib/use-ref.js
273505
- function useRef2(val) {
273506
- return useState2({ current: val })[0];
273507
- }
273508
-
273509
- // ../../node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
273510
- function useKeypress2(userHandler) {
273511
- const signal = useRef2(userHandler);
273512
- signal.current = userHandler;
273513
- useEffect2((rl) => {
273514
- let ignore = false;
273515
- const handler = withUpdates2((_input, event) => {
273516
- if (ignore)
273517
- return;
273518
- signal.current(event, rl);
273519
- });
273520
- rl.input.on("keypress", handler);
273521
- return () => {
273522
- ignore = true;
273523
- rl.input.removeListener("keypress", handler);
273524
- };
273525
- }, []);
273526
- }
273527
- // ../../node_modules/@inquirer/core/dist/esm/lib/utils.js
273528
- var import_cli_width2 = __toESM(require_cli_width(), 1);
273529
- var import_wrap_ansi2 = __toESM(require_wrap_ansi(), 1);
273530
- function breakLines2(content, width) {
273531
- return content.split(`
273532
- `).flatMap((line) => import_wrap_ansi2.default(line, width, { trim: false, hard: true }).split(`
273533
- `).map((str) => str.trimEnd())).join(`
273534
- `);
273535
- }
273536
- function readlineWidth2() {
273537
- return import_cli_width2.default({ defaultWidth: 80, output: readline3().output });
273538
- }
273539
-
273540
- // ../../node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
273541
- var import_mute_stream2 = __toESM(require_lib13(), 1);
273542
- init_mjs();
273543
- import * as readline4 from "node:readline";
273544
- import { AsyncResource as AsyncResource6 } from "node:async_hooks";
273545
-
273546
- // ../../node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
273547
- var import_strip_ansi2 = __toESM(require_strip_ansi(), 1);
273548
- var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
273549
- var height2 = (content) => content.split(`
273550
- `).length;
273551
- var lastLine2 = (content) => content.split(`
273552
- `).pop() ?? "";
273553
- function cursorDown2(n6) {
273554
- return n6 > 0 ? import_ansi_escapes3.default.cursorDown(n6) : "";
273555
- }
273556
-
273557
- class ScreenManager2 {
273558
- rl;
273559
- height = 0;
273560
- extraLinesUnderPrompt = 0;
273561
- cursorPos;
273562
- constructor(rl) {
273563
- this.rl = rl;
273564
- this.rl = rl;
273565
- this.cursorPos = rl.getCursorPos();
273566
- }
273567
- write(content) {
273568
- this.rl.output.unmute();
273569
- this.rl.output.write(content);
273570
- this.rl.output.mute();
273571
- }
273572
- render(content, bottomContent = "") {
273573
- const promptLine = lastLine2(content);
273574
- const rawPromptLine = import_strip_ansi2.default(promptLine);
273575
- let prompt = rawPromptLine;
273576
- if (this.rl.line.length > 0) {
273577
- prompt = prompt.slice(0, -this.rl.line.length);
273578
- }
273579
- this.rl.setPrompt(prompt);
273580
- this.cursorPos = this.rl.getCursorPos();
273581
- const width = readlineWidth2();
273582
- content = breakLines2(content, width);
273583
- bottomContent = breakLines2(bottomContent, width);
273584
- if (rawPromptLine.length % width === 0) {
273585
- content += `
273586
- `;
273587
- }
273588
- let output = content + (bottomContent ? `
273589
- ` + bottomContent : "");
273590
- const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
273591
- const bottomContentHeight = promptLineUpDiff + (bottomContent ? height2(bottomContent) : 0);
273592
- if (bottomContentHeight > 0)
273593
- output += import_ansi_escapes3.default.cursorUp(bottomContentHeight);
273594
- output += import_ansi_escapes3.default.cursorTo(this.cursorPos.cols);
273595
- this.write(cursorDown2(this.extraLinesUnderPrompt) + import_ansi_escapes3.default.eraseLines(this.height) + output);
273596
- this.extraLinesUnderPrompt = bottomContentHeight;
273597
- this.height = height2(output);
273598
- }
273599
- checkCursorPos() {
273600
- const cursorPos = this.rl.getCursorPos();
273601
- if (cursorPos.cols !== this.cursorPos.cols) {
273602
- this.write(import_ansi_escapes3.default.cursorTo(cursorPos.cols));
273603
- this.cursorPos = cursorPos;
273604
- }
273605
- }
273606
- done({ clearContent }) {
273607
- this.rl.setPrompt("");
273608
- let output = cursorDown2(this.extraLinesUnderPrompt);
273609
- output += clearContent ? import_ansi_escapes3.default.eraseLines(this.height) : `
273610
- `;
273611
- output += import_ansi_escapes3.default.cursorShow;
273612
- this.write(output);
273613
- this.rl.close();
273614
- }
273615
- }
273616
-
273617
- // ../../node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
273618
- class PromisePolyfill2 extends Promise {
273619
- static withResolver() {
273620
- let resolve5;
273621
- let reject;
273622
- const promise = new Promise((res, rej) => {
273623
- resolve5 = res;
273624
- reject = rej;
273625
- });
273626
- return { promise, resolve: resolve5, reject };
273627
- }
273628
- }
273629
-
273630
- // ../../node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
273631
- function getCallSites2() {
273632
- const _prepareStackTrace = Error.prepareStackTrace;
273633
- try {
273634
- let result = [];
273635
- Error.prepareStackTrace = (_5, callSites) => {
273636
- const callSitesWithoutCurrent = callSites.slice(1);
273637
- result = callSitesWithoutCurrent;
273638
- return callSitesWithoutCurrent;
273639
- };
273640
- new Error().stack;
273641
- return result;
273642
- } finally {
273643
- Error.prepareStackTrace = _prepareStackTrace;
273644
- }
273645
- }
273646
- function createPrompt2(view) {
273647
- const callSites = getCallSites2();
273648
- const callerFilename = callSites[1]?.getFileName?.();
273649
- const prompt = (config4, context = {}) => {
273650
- const { input = process.stdin, signal } = context;
273651
- const cleanups = new Set;
273652
- const output = new import_mute_stream2.default;
273653
- output.pipe(context.output ?? process.stdout);
273654
- const rl = readline4.createInterface({
273655
- terminal: true,
273656
- input,
273657
- output
273658
- });
273659
- const screen = new ScreenManager2(rl);
273660
- const { promise, resolve: resolve5, reject } = PromisePolyfill2.withResolver();
273661
- const cancel4 = () => reject(new CancelPromptError2);
273662
- if (signal) {
273663
- const abort = () => reject(new AbortPromptError2({ cause: signal.reason }));
273664
- if (signal.aborted) {
273665
- abort();
273666
- return Object.assign(promise, { cancel: cancel4 });
273667
- }
273668
- signal.addEventListener("abort", abort);
273669
- cleanups.add(() => signal.removeEventListener("abort", abort));
273670
- }
273671
- cleanups.add(onExit((code2, signal2) => {
273672
- reject(new ExitPromptError2(`User force closed the prompt with ${code2} ${signal2}`));
273673
- }));
273674
- const checkCursorPos = () => screen.checkCursorPos();
273675
- rl.input.on("keypress", checkCursorPos);
273676
- cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
273677
- return withHooks2(rl, (cycle) => {
273678
- const hooksCleanup = AsyncResource6.bind(() => effectScheduler2.clearAll());
273679
- rl.on("close", hooksCleanup);
273680
- cleanups.add(() => rl.removeListener("close", hooksCleanup));
273681
- cycle(() => {
273682
- try {
273683
- const nextView = view(config4, (value4) => {
273684
- setImmediate(() => resolve5(value4));
273685
- });
273686
- if (nextView === undefined) {
273687
- throw new Error(`Prompt functions must return a string.
273688
- at ${callerFilename}`);
273689
- }
273690
- const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
273691
- screen.render(content, bottomContent);
273692
- effectScheduler2.run();
273693
- } catch (error5) {
273694
- reject(error5);
273695
- }
273696
- });
273697
- return Object.assign(promise.then((answer) => {
273698
- effectScheduler2.clearAll();
273699
- return answer;
273700
- }, (error5) => {
273701
- effectScheduler2.clearAll();
273702
- throw error5;
273703
- }).finally(() => {
273704
- cleanups.forEach((cleanup) => cleanup());
273705
- screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
273706
- output.end();
273707
- }).then(() => promise), { cancel: cancel4 });
273708
- });
273709
- };
273710
- return prompt;
273711
- }
273712
273261
  // ../../node_modules/@inquirer/confirm/dist/esm/index.js
273713
273262
  function getBooleanValue(value4, defaultValue) {
273714
273263
  let answer = defaultValue !== false;
@@ -273721,19 +273270,19 @@ function getBooleanValue(value4, defaultValue) {
273721
273270
  function boolToString(value4) {
273722
273271
  return value4 ? "Yes" : "No";
273723
273272
  }
273724
- var esm_default3 = createPrompt2((config4, done) => {
273273
+ var esm_default3 = createPrompt((config4, done) => {
273725
273274
  const { transformer = boolToString } = config4;
273726
- const [status, setStatus] = useState2("idle");
273727
- const [value4, setValue] = useState2("");
273728
- const theme = makeTheme2(config4.theme);
273729
- const prefix = usePrefix2({ status, theme });
273730
- useKeypress2((key3, rl) => {
273731
- if (isEnterKey2(key3)) {
273275
+ const [status, setStatus] = useState("idle");
273276
+ const [value4, setValue] = useState("");
273277
+ const theme = makeTheme(config4.theme);
273278
+ const prefix = usePrefix({ status, theme });
273279
+ useKeypress((key2, rl) => {
273280
+ if (isEnterKey(key2)) {
273732
273281
  const answer = getBooleanValue(value4, config4.default);
273733
273282
  setValue(transformer(answer));
273734
273283
  setStatus("done");
273735
273284
  done(answer);
273736
- } else if (key3.name === "tab") {
273285
+ } else if (key2.name === "tab") {
273737
273286
  const answer = boolToString(!getBooleanValue(value4, config4.default));
273738
273287
  rl.clearLine(0);
273739
273288
  rl.write(answer);
@@ -273757,19 +273306,19 @@ var esm_default3 = createPrompt2((config4, done) => {
273757
273306
  var inputTheme = {
273758
273307
  validationFailureMode: "keep"
273759
273308
  };
273760
- var esm_default4 = createPrompt2((config4, done) => {
273309
+ var esm_default4 = createPrompt((config4, done) => {
273761
273310
  const { required, validate: validate4 = () => true } = config4;
273762
- const theme = makeTheme2(inputTheme, config4.theme);
273763
- const [status, setStatus] = useState2("idle");
273764
- const [defaultValue = "", setDefaultValue] = useState2(config4.default);
273765
- const [errorMsg, setError] = useState2();
273766
- const [value4, setValue] = useState2("");
273767
- const prefix = usePrefix2({ status, theme });
273768
- useKeypress2(async (key3, rl) => {
273311
+ const theme = makeTheme(inputTheme, config4.theme);
273312
+ const [status, setStatus] = useState("idle");
273313
+ const [defaultValue = "", setDefaultValue] = useState(config4.default);
273314
+ const [errorMsg, setError] = useState();
273315
+ const [value4, setValue] = useState("");
273316
+ const prefix = usePrefix({ status, theme });
273317
+ useKeypress(async (key2, rl) => {
273769
273318
  if (status !== "idle") {
273770
273319
  return;
273771
273320
  }
273772
- if (isEnterKey2(key3)) {
273321
+ if (isEnterKey(key2)) {
273773
273322
  const answer = value4 || defaultValue;
273774
273323
  setStatus("loading");
273775
273324
  const isValid2 = required && !answer ? "You must provide a value" : await validate4(answer);
@@ -273786,9 +273335,9 @@ var esm_default4 = createPrompt2((config4, done) => {
273786
273335
  setError(isValid2 || "You must provide a valid value");
273787
273336
  setStatus("idle");
273788
273337
  }
273789
- } else if (isBackspaceKey2(key3) && !value4) {
273338
+ } else if (isBackspaceKey(key2) && !value4) {
273790
273339
  setDefaultValue(undefined);
273791
- } else if (key3.name === "tab" && !value4) {
273340
+ } else if (key2.name === "tab" && !value4) {
273792
273341
  setDefaultValue(undefined);
273793
273342
  rl.clearLine(0);
273794
273343
  rl.write(defaultValue);
@@ -273820,19 +273369,19 @@ var esm_default4 = createPrompt2((config4, done) => {
273820
273369
  });
273821
273370
 
273822
273371
  // ../../node_modules/@inquirer/password/dist/esm/index.js
273823
- var import_ansi_escapes4 = __toESM(require_ansi_escapes(), 1);
273824
- var esm_default5 = createPrompt2((config4, done) => {
273372
+ var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
273373
+ var esm_default5 = createPrompt((config4, done) => {
273825
273374
  const { validate: validate4 = () => true } = config4;
273826
- const theme = makeTheme2(config4.theme);
273827
- const [status, setStatus] = useState2("idle");
273828
- const [errorMsg, setError] = useState2();
273829
- const [value4, setValue] = useState2("");
273830
- const prefix = usePrefix2({ status, theme });
273831
- useKeypress2(async (key3, rl) => {
273375
+ const theme = makeTheme(config4.theme);
273376
+ const [status, setStatus] = useState("idle");
273377
+ const [errorMsg, setError] = useState();
273378
+ const [value4, setValue] = useState("");
273379
+ const prefix = usePrefix({ status, theme });
273380
+ useKeypress(async (key2, rl) => {
273832
273381
  if (status !== "idle") {
273833
273382
  return;
273834
273383
  }
273835
- if (isEnterKey2(key3)) {
273384
+ if (isEnterKey(key2)) {
273836
273385
  const answer = value4;
273837
273386
  setStatus("loading");
273838
273387
  const isValid2 = await validate4(answer);
@@ -273857,7 +273406,7 @@ var esm_default5 = createPrompt2((config4, done) => {
273857
273406
  const maskChar = typeof config4.mask === "string" ? config4.mask : "*";
273858
273407
  formattedValue = maskChar.repeat(value4.length);
273859
273408
  } else if (status !== "done") {
273860
- helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes4.default.cursorHide}`;
273409
+ helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes3.default.cursorHide}`;
273861
273410
  }
273862
273411
  if (status === "done") {
273863
273412
  formattedValue = theme.style.answer(formattedValue);
@@ -274008,6 +273557,7 @@ async function servicePrompt({
274008
273557
  accept,
274009
273558
  envKey,
274010
273559
  defaultHandler,
273560
+ isRequired = false,
274011
273561
  isCi = is_in_ci_default
274012
273562
  }) {
274013
273563
  if (services.length === 0) {
@@ -274021,20 +273571,27 @@ async function servicePrompt({
274021
273571
  if (isCi) {
274022
273572
  return;
274023
273573
  }
274024
- if (services.length === 1) {
273574
+ if (isRequired && services.length === 1) {
274025
273575
  return services[0];
274026
273576
  }
274027
273577
  return defaultHandler({ defaultService: selectedService });
274028
273578
  }
274029
273579
 
274030
273580
  // src/commands/connect/blockchain-node.prompt.ts
274031
- async function blockchainNodePrompt(env2, nodes, accept, filterRunningOnly = false) {
273581
+ async function blockchainNodePrompt({
273582
+ env: env2,
273583
+ nodes,
273584
+ accept,
273585
+ filterRunningOnly = false,
273586
+ isRequired = false
273587
+ }) {
274032
273588
  const choices = filterRunningOnly ? nodes.filter((node) => node.status === "COMPLETED") : nodes;
274033
273589
  return servicePrompt({
274034
273590
  env: env2,
274035
273591
  services: nodes,
274036
273592
  accept,
274037
273593
  envKey: "SETTLEMINT_BLOCKCHAIN_NODE",
273594
+ isRequired,
274038
273595
  defaultHandler: async ({ defaultService: defaultNode }) => {
274039
273596
  return esm_default2({
274040
273597
  message: "Which blockchain node do you want to connect to?",
@@ -274043,10 +273600,12 @@ async function blockchainNodePrompt(env2, nodes, accept, filterRunningOnly = fal
274043
273600
  name: node.name,
274044
273601
  value: node
274045
273602
  })),
274046
- {
274047
- name: "None",
274048
- value: undefined
274049
- }
273603
+ ...isRequired ? [] : [
273604
+ {
273605
+ name: "None",
273606
+ value: undefined
273607
+ }
273608
+ ]
274050
273609
  ],
274051
273610
  default: defaultNode
274052
273611
  });
@@ -274055,13 +273614,19 @@ async function blockchainNodePrompt(env2, nodes, accept, filterRunningOnly = fal
274055
273614
  }
274056
273615
 
274057
273616
  // src/commands/connect/blockscout.prompt.ts
274058
- async function blockscoutPrompt(env2, insights, accept) {
273617
+ async function blockscoutPrompt({
273618
+ env: env2,
273619
+ insights,
273620
+ accept,
273621
+ isRequired = false
273622
+ }) {
274059
273623
  const possible = insights.filter((insight) => insight.insightsCategory === "BLOCKCHAIN_EXPLORER");
274060
273624
  return servicePrompt({
274061
273625
  env: env2,
274062
273626
  services: possible,
274063
273627
  accept,
274064
273628
  envKey: "SETTLEMINT_BLOCKSCOUT",
273629
+ isRequired,
274065
273630
  defaultHandler: async ({ defaultService: defaultBlockscout }) => {
274066
273631
  return esm_default2({
274067
273632
  message: "Which blockscout instance do you want to connect to?",
@@ -274070,10 +273635,12 @@ async function blockscoutPrompt(env2, insights, accept) {
274070
273635
  name: insight.name,
274071
273636
  value: insight
274072
273637
  })),
274073
- {
274074
- name: "None",
274075
- value: undefined
274076
- }
273638
+ ...isRequired ? [] : [
273639
+ {
273640
+ name: "None",
273641
+ value: undefined
273642
+ }
273643
+ ]
274077
273644
  ],
274078
273645
  default: defaultBlockscout
274079
273646
  });
@@ -274082,12 +273649,18 @@ async function blockscoutPrompt(env2, insights, accept) {
274082
273649
  }
274083
273650
 
274084
273651
  // src/commands/connect/custom-deployment.prompt.ts
274085
- async function customDeploymentPrompt(env2, customDeployments, accept) {
273652
+ async function customDeploymentPrompt({
273653
+ env: env2,
273654
+ customDeployments,
273655
+ accept,
273656
+ isRequired = false
273657
+ }) {
274086
273658
  return servicePrompt({
274087
273659
  env: env2,
274088
273660
  services: customDeployments,
274089
273661
  accept,
274090
273662
  envKey: "SETTLEMINT_CUSTOM_DEPLOYMENT",
273663
+ isRequired,
274091
273664
  defaultHandler: async ({
274092
273665
  defaultService: defaultCustomDeployment
274093
273666
  }) => {
@@ -274098,10 +273671,12 @@ async function customDeploymentPrompt(env2, customDeployments, accept) {
274098
273671
  name: customDeployment.name,
274099
273672
  value: customDeployment
274100
273673
  })),
274101
- {
274102
- name: "None",
274103
- value: undefined
274104
- }
273674
+ ...isRequired ? [] : [
273675
+ {
273676
+ name: "None",
273677
+ value: undefined
273678
+ }
273679
+ ]
274105
273680
  ],
274106
273681
  default: defaultCustomDeployment
274107
273682
  });
@@ -274110,13 +273685,19 @@ async function customDeploymentPrompt(env2, customDeployments, accept) {
274110
273685
  }
274111
273686
 
274112
273687
  // src/commands/connect/hasura.prompt.ts
274113
- async function hasuraPrompt(env2, integrations, accept) {
273688
+ async function hasuraPrompt({
273689
+ env: env2,
273690
+ integrations,
273691
+ accept,
273692
+ isRequired = false
273693
+ }) {
274114
273694
  const possible = integrations.filter((integration) => integration.integrationType === "HASURA");
274115
273695
  return servicePrompt({
274116
273696
  env: env2,
274117
273697
  services: possible,
274118
273698
  accept,
274119
273699
  envKey: "SETTLEMINT_HASURA",
273700
+ isRequired,
274120
273701
  defaultHandler: async ({ defaultService: defaultHasura }) => {
274121
273702
  return esm_default2({
274122
273703
  message: "Which Hasura instance do you want to connect to?",
@@ -274125,10 +273706,12 @@ async function hasuraPrompt(env2, integrations, accept) {
274125
273706
  name: integration.name,
274126
273707
  value: integration
274127
273708
  })),
274128
- {
274129
- name: "None",
274130
- value: undefined
274131
- }
273709
+ ...isRequired ? [] : [
273710
+ {
273711
+ name: "None",
273712
+ value: undefined
273713
+ }
273714
+ ]
274132
273715
  ],
274133
273716
  default: defaultHasura
274134
273717
  });
@@ -274137,13 +273720,19 @@ async function hasuraPrompt(env2, integrations, accept) {
274137
273720
  }
274138
273721
 
274139
273722
  // src/commands/connect/hd-private-keys.prompt.ts
274140
- async function hdPrivateKeyPrompt(env2, privateKeys, accept) {
273723
+ async function hdPrivateKeyPrompt({
273724
+ env: env2,
273725
+ privateKeys,
273726
+ accept,
273727
+ isRequired = false
273728
+ }) {
274141
273729
  const possible = privateKeys.filter((privateKey) => privateKey.privateKeyType === "HD_ECDSA_P256");
274142
273730
  return servicePrompt({
274143
273731
  env: env2,
274144
273732
  services: possible,
274145
273733
  accept,
274146
273734
  envKey: "SETTLEMINT_HD_PRIVATE_KEY",
273735
+ isRequired,
274147
273736
  defaultHandler: async ({ defaultService: defaultPrivateKey }) => {
274148
273737
  return esm_default2({
274149
273738
  message: "Which HD Private Key do you want to use?",
@@ -274152,10 +273741,12 @@ async function hdPrivateKeyPrompt(env2, privateKeys, accept) {
274152
273741
  name: privateKey.name,
274153
273742
  value: privateKey
274154
273743
  })),
274155
- {
274156
- name: "None",
274157
- value: undefined
274158
- }
273744
+ ...isRequired ? [] : [
273745
+ {
273746
+ name: "None",
273747
+ value: undefined
273748
+ }
273749
+ ]
274159
273750
  ],
274160
273751
  default: defaultPrivateKey
274161
273752
  });
@@ -274208,13 +273799,19 @@ async function instancePrompt(env2, accept, freeTextInput = false) {
274208
273799
  }
274209
273800
 
274210
273801
  // src/commands/connect/ipfs.prompt.ts
274211
- async function ipfsPrompt(env2, storages, accept) {
273802
+ async function ipfsPrompt({
273803
+ env: env2,
273804
+ storages,
273805
+ accept,
273806
+ isRequired = false
273807
+ }) {
274212
273808
  const possible = storages.filter((storage) => storage.storageProtocol === "IPFS");
274213
273809
  return servicePrompt({
274214
273810
  env: env2,
274215
273811
  services: possible,
274216
273812
  accept,
274217
273813
  envKey: "SETTLEMINT_IPFS",
273814
+ isRequired,
274218
273815
  defaultHandler: async ({ defaultService: defaultStorage }) => {
274219
273816
  return esm_default2({
274220
273817
  message: "Which IPFS instance do you want to connect to?",
@@ -274223,10 +273820,12 @@ async function ipfsPrompt(env2, storages, accept) {
274223
273820
  name: storage.name,
274224
273821
  value: storage
274225
273822
  })),
274226
- {
274227
- name: "None",
274228
- value: undefined
274229
- }
273823
+ ...isRequired ? [] : [
273824
+ {
273825
+ name: "None",
273826
+ value: undefined
273827
+ }
273828
+ ]
274230
273829
  ],
274231
273830
  default: defaultStorage
274232
273831
  });
@@ -274235,13 +273834,19 @@ async function ipfsPrompt(env2, storages, accept) {
274235
273834
  }
274236
273835
 
274237
273836
  // src/commands/connect/minio.prompt.ts
274238
- async function minioPrompt(env2, storages, accept) {
273837
+ async function minioPrompt({
273838
+ env: env2,
273839
+ storages,
273840
+ accept,
273841
+ isRequired = false
273842
+ }) {
274239
273843
  const possible = storages.filter((storage) => storage.storageProtocol === "MINIO");
274240
273844
  return servicePrompt({
274241
273845
  env: env2,
274242
273846
  services: possible,
274243
273847
  accept,
274244
273848
  envKey: "SETTLEMINT_MINIO",
273849
+ isRequired,
274245
273850
  defaultHandler: async ({ defaultService: defaultStorage }) => {
274246
273851
  return esm_default2({
274247
273852
  message: "Which MinIO instance do you want to connect to?",
@@ -274250,10 +273855,12 @@ async function minioPrompt(env2, storages, accept) {
274250
273855
  name: storage.name,
274251
273856
  value: storage
274252
273857
  })),
274253
- {
274254
- name: "None",
274255
- value: undefined
274256
- }
273858
+ ...isRequired ? [] : [
273859
+ {
273860
+ name: "None",
273861
+ value: undefined
273862
+ }
273863
+ ]
274257
273864
  ],
274258
273865
  default: defaultStorage
274259
273866
  });
@@ -274262,13 +273869,19 @@ async function minioPrompt(env2, storages, accept) {
274262
273869
  }
274263
273870
 
274264
273871
  // src/commands/connect/portal.prompt.ts
274265
- async function portalPrompt(env2, middlewares, accept) {
273872
+ async function portalPrompt({
273873
+ env: env2,
273874
+ middlewares,
273875
+ accept,
273876
+ isRequired = false
273877
+ }) {
274266
273878
  const possible = middlewares.filter((middleware) => middleware.interface === "SMART_CONTRACT_PORTAL");
274267
273879
  return servicePrompt({
274268
273880
  env: env2,
274269
273881
  services: possible,
274270
273882
  accept,
274271
273883
  envKey: "SETTLEMINT_PORTAL",
273884
+ isRequired,
274272
273885
  defaultHandler: async ({ defaultService: defaultMiddleware }) => {
274273
273886
  return esm_default2({
274274
273887
  message: "Which Smart Contract Portal instance do you want to connect to?",
@@ -274277,10 +273890,12 @@ async function portalPrompt(env2, middlewares, accept) {
274277
273890
  name: middleware.name,
274278
273891
  value: middleware
274279
273892
  })),
274280
- {
274281
- name: "None",
274282
- value: undefined
274283
- }
273893
+ ...isRequired ? [] : [
273894
+ {
273895
+ name: "None",
273896
+ value: undefined
273897
+ }
273898
+ ]
274284
273899
  ],
274285
273900
  default: defaultMiddleware
274286
273901
  });
@@ -274297,12 +273912,12 @@ async function servicesSpinner(settlemint, application) {
274297
273912
  const [
274298
273913
  blockchainNetworks,
274299
273914
  blockchainNodes,
274300
- middleware,
274301
- integrationTool,
274302
- storage,
274303
- privateKey,
273915
+ middlewares,
273916
+ integrationTools,
273917
+ storages,
273918
+ privateKeys,
274304
273919
  insights,
274305
- customDeployment
273920
+ customDeployments
274306
273921
  ] = await Promise.all([
274307
273922
  settlemint.blockchainNetwork.list(application.uniqueName),
274308
273923
  settlemint.blockchainNode.list(application.uniqueName),
@@ -274316,19 +273931,25 @@ async function servicesSpinner(settlemint, application) {
274316
273931
  return {
274317
273932
  blockchainNetworks,
274318
273933
  blockchainNodes,
274319
- middleware,
274320
- integrationTool,
274321
- storage,
274322
- privateKey,
273934
+ middlewares,
273935
+ integrationTools,
273936
+ storages,
273937
+ privateKeys,
274323
273938
  insights,
274324
- customDeployment
273939
+ customDeployments
274325
273940
  };
274326
273941
  }
274327
273942
  });
274328
273943
  }
274329
273944
 
274330
273945
  // src/commands/connect/thegraph.prompt.ts
274331
- async function theGraphPrompt(env2, middlewares, accept, filterRunningOnly = false) {
273946
+ async function theGraphPrompt({
273947
+ env: env2,
273948
+ middlewares,
273949
+ accept,
273950
+ filterRunningOnly = false,
273951
+ isRequired = false
273952
+ }) {
274332
273953
  const graphMiddlewares = middlewares.filter((middleware) => middleware.__typename === "HAGraphMiddleware");
274333
273954
  const choices = filterRunningOnly ? graphMiddlewares.filter((middleware) => middleware.status === "COMPLETED") : graphMiddlewares;
274334
273955
  return servicePrompt({
@@ -274336,6 +273957,7 @@ async function theGraphPrompt(env2, middlewares, accept, filterRunningOnly = fal
274336
273957
  services: graphMiddlewares,
274337
273958
  accept,
274338
273959
  envKey: "SETTLEMINT_THEGRAPH",
273960
+ isRequired,
274339
273961
  defaultHandler: async ({ defaultService: defaultMiddleware }) => {
274340
273962
  return esm_default2({
274341
273963
  message: "Which The Graph instance do you want to connect to?",
@@ -274344,10 +273966,12 @@ async function theGraphPrompt(env2, middlewares, accept, filterRunningOnly = fal
274344
273966
  name: middleware.name,
274345
273967
  value: middleware
274346
273968
  })),
274347
- {
274348
- name: "None",
274349
- value: undefined
274350
- }
273969
+ ...isRequired ? [] : [
273970
+ {
273971
+ name: "None",
273972
+ value: undefined
273973
+ }
273974
+ ]
274351
273975
  ],
274352
273976
  default: defaultMiddleware
274353
273977
  });
@@ -274402,16 +274026,52 @@ function connectCommand() {
274402
274026
  const workspace = await workspacePrompt(env2, workspaces, acceptDefaults);
274403
274027
  const application = await applicationPrompt(env2, workspace?.applications ?? [], acceptDefaults);
274404
274028
  const aatToken = await applicationAccessTokenPrompt(env2, application, settlemint, acceptDefaults);
274405
- const { middleware, integrationTool, storage, privateKey, insights, customDeployment, blockchainNodes } = await servicesSpinner(settlemint, application);
274406
- const blockchainNode = await blockchainNodePrompt(env2, blockchainNodes, acceptDefaults);
274407
- const hasura = await hasuraPrompt(env2, integrationTool, acceptDefaults);
274408
- const thegraph = await theGraphPrompt(env2, middleware, acceptDefaults);
274409
- const portal = await portalPrompt(env2, middleware, acceptDefaults);
274410
- const ipfs = await ipfsPrompt(env2, storage, acceptDefaults);
274411
- const minio = await minioPrompt(env2, storage, acceptDefaults);
274412
- const hdPrivateKey = await hdPrivateKeyPrompt(env2, privateKey, acceptDefaults);
274413
- const cDeployment = await customDeploymentPrompt(env2, customDeployment, acceptDefaults);
274414
- const blockscout = await blockscoutPrompt(env2, insights, acceptDefaults);
274029
+ const { middlewares, integrationTools, storages, privateKeys, insights, customDeployments, blockchainNodes } = await servicesSpinner(settlemint, application);
274030
+ const blockchainNode = await blockchainNodePrompt({
274031
+ env: env2,
274032
+ nodes: blockchainNodes,
274033
+ accept: acceptDefaults
274034
+ });
274035
+ const hasura = await hasuraPrompt({
274036
+ env: env2,
274037
+ integrations: integrationTools,
274038
+ accept: acceptDefaults
274039
+ });
274040
+ const thegraph = await theGraphPrompt({
274041
+ env: env2,
274042
+ middlewares,
274043
+ accept: acceptDefaults
274044
+ });
274045
+ const portal = await portalPrompt({
274046
+ env: env2,
274047
+ middlewares,
274048
+ accept: acceptDefaults
274049
+ });
274050
+ const ipfs = await ipfsPrompt({
274051
+ env: env2,
274052
+ storages,
274053
+ accept: acceptDefaults
274054
+ });
274055
+ const minio = await minioPrompt({
274056
+ env: env2,
274057
+ storages,
274058
+ accept: acceptDefaults
274059
+ });
274060
+ const hdPrivateKey = await hdPrivateKeyPrompt({
274061
+ env: env2,
274062
+ privateKeys,
274063
+ accept: acceptDefaults
274064
+ });
274065
+ const cDeployment = await customDeploymentPrompt({
274066
+ env: env2,
274067
+ customDeployments,
274068
+ accept: acceptDefaults
274069
+ });
274070
+ const blockscout = await blockscoutPrompt({
274071
+ env: env2,
274072
+ insights,
274073
+ accept: acceptDefaults
274074
+ });
274415
274075
  if (acceptDefaults) {
274416
274076
  const selectedServices = [
274417
274077
  `Workspace: ${workspace.name}`,
@@ -274728,7 +274388,7 @@ var basename2 = function(p5, extension) {
274728
274388
  return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
274729
274389
  };
274730
274390
  // ../../node_modules/defu/dist/defu.mjs
274731
- function isPlainObject4(value4) {
274391
+ function isPlainObject3(value4) {
274732
274392
  if (value4 === null || typeof value4 !== "object") {
274733
274393
  return false;
274734
274394
  }
@@ -274745,27 +274405,27 @@ function isPlainObject4(value4) {
274745
274405
  return true;
274746
274406
  }
274747
274407
  function _defu(baseObject, defaults2, namespace = ".", merger) {
274748
- if (!isPlainObject4(defaults2)) {
274408
+ if (!isPlainObject3(defaults2)) {
274749
274409
  return _defu(baseObject, {}, namespace, merger);
274750
274410
  }
274751
274411
  const object = Object.assign({}, defaults2);
274752
- for (const key3 in baseObject) {
274753
- if (key3 === "__proto__" || key3 === "constructor") {
274412
+ for (const key2 in baseObject) {
274413
+ if (key2 === "__proto__" || key2 === "constructor") {
274754
274414
  continue;
274755
274415
  }
274756
- const value4 = baseObject[key3];
274416
+ const value4 = baseObject[key2];
274757
274417
  if (value4 === null || value4 === undefined) {
274758
274418
  continue;
274759
274419
  }
274760
- if (merger && merger(object, key3, value4, namespace)) {
274420
+ if (merger && merger(object, key2, value4, namespace)) {
274761
274421
  continue;
274762
274422
  }
274763
- if (Array.isArray(value4) && Array.isArray(object[key3])) {
274764
- object[key3] = [...value4, ...object[key3]];
274765
- } else if (isPlainObject4(value4) && isPlainObject4(object[key3])) {
274766
- object[key3] = _defu(value4, object[key3], (namespace ? `${namespace}.` : "") + key3.toString(), merger);
274423
+ if (Array.isArray(value4) && Array.isArray(object[key2])) {
274424
+ object[key2] = [...value4, ...object[key2]];
274425
+ } else if (isPlainObject3(value4) && isPlainObject3(object[key2])) {
274426
+ object[key2] = _defu(value4, object[key2], (namespace ? `${namespace}.` : "") + key2.toString(), merger);
274767
274427
  } else {
274768
- object[key3] = value4;
274428
+ object[key2] = value4;
274769
274429
  }
274770
274430
  }
274771
274431
  return object;
@@ -274774,15 +274434,15 @@ function createDefu(merger) {
274774
274434
  return (...arguments_4) => arguments_4.reduce((p5, c3) => _defu(p5, c3, "", merger), {});
274775
274435
  }
274776
274436
  var defu = createDefu();
274777
- var defuFn = createDefu((object, key3, currentValue) => {
274778
- if (object[key3] !== undefined && typeof currentValue === "function") {
274779
- object[key3] = currentValue(object[key3]);
274437
+ var defuFn = createDefu((object, key2, currentValue) => {
274438
+ if (object[key2] !== undefined && typeof currentValue === "function") {
274439
+ object[key2] = currentValue(object[key2]);
274780
274440
  return true;
274781
274441
  }
274782
274442
  });
274783
- var defuArrayFn = createDefu((object, key3, currentValue) => {
274784
- if (Array.isArray(object[key3]) && typeof currentValue === "function") {
274785
- object[key3] = currentValue(object[key3]);
274443
+ var defuArrayFn = createDefu((object, key2, currentValue) => {
274444
+ if (Array.isArray(object[key2]) && typeof currentValue === "function") {
274445
+ object[key2] = currentValue(object[key2]);
274786
274446
  return true;
274787
274447
  }
274788
274448
  });
@@ -275005,11 +274665,11 @@ function cacheDirectory() {
275005
274665
  }
275006
274666
  function normalizeHeaders(headers = {}) {
275007
274667
  const normalized = {};
275008
- for (const [key3, value4] of Object.entries(headers)) {
274668
+ for (const [key2, value4] of Object.entries(headers)) {
275009
274669
  if (!value4) {
275010
274670
  continue;
275011
274671
  }
275012
- normalized[key3.toLowerCase()] = value4;
274672
+ normalized[key2.toLowerCase()] = value4;
275013
274673
  }
275014
274674
  return normalized;
275015
274675
  }
@@ -276041,12 +275701,18 @@ function applicationCreateCommand() {
276041
275701
  }
276042
275702
 
276043
275703
  // src/commands/connect/blockchain-network.prompt.ts
276044
- async function blockchainNetworkPrompt(env2, networks, accept) {
275704
+ async function blockchainNetworkPrompt({
275705
+ env: env2,
275706
+ networks,
275707
+ accept,
275708
+ isRequired = false
275709
+ }) {
276045
275710
  return servicePrompt({
276046
275711
  env: env2,
276047
275712
  services: networks,
276048
275713
  accept,
276049
275714
  envKey: "SETTLEMINT_BLOCKCHAIN_NETWORK",
275715
+ isRequired,
276050
275716
  defaultHandler: async ({ defaultService: defaultNetwork }) => {
276051
275717
  return esm_default2({
276052
275718
  message: "Which blockchain network do you want to connect to?",
@@ -276055,10 +275721,12 @@ async function blockchainNetworkPrompt(env2, networks, accept) {
276055
275721
  name: network.name,
276056
275722
  value: network
276057
275723
  })),
276058
- {
276059
- name: "None",
276060
- value: undefined
276061
- }
275724
+ ...isRequired ? [] : [
275725
+ {
275726
+ name: "None",
275727
+ value: undefined
275728
+ }
275729
+ ]
276062
275730
  ],
276063
275731
  default: defaultNetwork
276064
275732
  });
@@ -276098,7 +275766,12 @@ function blockchainNodeBesuCreateCommand() {
276098
275766
  let networkUniqueName = blockchainNetwork;
276099
275767
  if (!networkUniqueName) {
276100
275768
  const networks = await settlemint.blockchainNetwork.list(applicationUniqueName);
276101
- const network = await blockchainNetworkPrompt(env2, networks, acceptDefaults);
275769
+ const network = await blockchainNetworkPrompt({
275770
+ env: env2,
275771
+ networks,
275772
+ accept: acceptDefaults,
275773
+ isRequired: true
275774
+ });
276102
275775
  if (!network) {
276103
275776
  return nothingSelectedError("blockchain network");
276104
275777
  }
@@ -276171,7 +275844,12 @@ function blockscoutInsightsCreateCommand() {
276171
275844
  const loadBalancerUniqueName = blockchainNodeUniqueName ? undefined : loadBalancer ?? env2.SETTLEMINT_LOAD_BALANCER;
276172
275845
  if (!blockchainNodeUniqueName && !loadBalancerUniqueName) {
276173
275846
  const blockchainNodes = await settlemint.blockchainNode.list(applicationUniqueName);
276174
- const node = await blockchainNodePrompt(env2, blockchainNodes, acceptDefaults);
275847
+ const node = await blockchainNodePrompt({
275848
+ env: env2,
275849
+ nodes: blockchainNodes,
275850
+ accept: acceptDefaults,
275851
+ isRequired: true
275852
+ });
276175
275853
  if (!node) {
276176
275854
  return nothingSelectedError("blockchain node");
276177
275855
  }
@@ -276301,7 +275979,12 @@ function graphMiddlewareCreateCommand() {
276301
275979
  let blockchainNodeUniqueName = blockchainNode;
276302
275980
  if (!blockchainNodeUniqueName) {
276303
275981
  const blockchainNodes = await settlemint.blockchainNode.list(applicationUniqueName);
276304
- const node = await blockchainNodePrompt(env2, blockchainNodes, acceptDefaults);
275982
+ const node = await blockchainNodePrompt({
275983
+ env: env2,
275984
+ nodes: blockchainNodes,
275985
+ accept: acceptDefaults,
275986
+ isRequired: true
275987
+ });
276305
275988
  if (!node) {
276306
275989
  return nothingSelectedError("blockchain node");
276307
275990
  }
@@ -276379,7 +276062,12 @@ function smartContractPortalMiddlewareCreateCommand() {
276379
276062
  const loadBalancerUniqueName = blockchainNodeUniqueName ? undefined : loadBalancer ?? env2.SETTLEMINT_LOAD_BALANCER;
276380
276063
  if (!blockchainNodeUniqueName && !loadBalancerUniqueName) {
276381
276064
  const blockchainNodes = await settlemint.blockchainNode.list(applicationUniqueName);
276382
- const node = await blockchainNodePrompt(env2, blockchainNodes, acceptDefaults);
276065
+ const node = await blockchainNodePrompt({
276066
+ env: env2,
276067
+ nodes: blockchainNodes,
276068
+ accept: acceptDefaults,
276069
+ isRequired: true
276070
+ });
276383
276071
  if (!node) {
276384
276072
  return nothingSelectedError("blockchain node");
276385
276073
  }
@@ -276471,7 +276159,12 @@ function privateKeyHdCreateCommand() {
276471
276159
  let blockchainNodeUniqueName = blockchainNode;
276472
276160
  if (!blockchainNodeUniqueName) {
276473
276161
  const blockchainNodes = await settlemint.blockchainNode.list(applicationUniqueName);
276474
- const node = await blockchainNodePrompt(env2, blockchainNodes, acceptDefaults);
276162
+ const node = await blockchainNodePrompt({
276163
+ env: env2,
276164
+ nodes: blockchainNodes,
276165
+ accept: acceptDefaults,
276166
+ isRequired: true
276167
+ });
276475
276168
  if (!node) {
276476
276169
  return nothingSelectedError("blockchain node");
276477
276170
  }
@@ -276537,7 +276230,12 @@ function privateKeyHsmCreateCommand() {
276537
276230
  let blockchainNodeUniqueName = blockchainNode;
276538
276231
  if (!blockchainNodeUniqueName) {
276539
276232
  const blockchainNodes = await settlemint.blockchainNode.list(applicationUniqueName);
276540
- const node = await blockchainNodePrompt(env2, blockchainNodes, acceptDefaults);
276233
+ const node = await blockchainNodePrompt({
276234
+ env: env2,
276235
+ nodes: blockchainNodes,
276236
+ accept: acceptDefaults,
276237
+ isRequired: true
276238
+ });
276541
276239
  if (!node) {
276542
276240
  return nothingSelectedError("blockchain node");
276543
276241
  }
@@ -277187,11 +276885,11 @@ function createCommand4() {
277187
276885
 
277188
276886
  // src/utils/passthrough-options.ts
277189
276887
  function mapPassthroughOptions(options, command) {
277190
- const optionArgs = Object.entries(options).map(([key3, value4]) => {
276888
+ const optionArgs = Object.entries(options).map(([key2, value4]) => {
277191
276889
  if (value4 === true) {
277192
- return `--${key3}`;
276890
+ return `--${key2}`;
277193
276891
  }
277194
- return `--${key3}=${value4}`;
276892
+ return `--${key2}=${value4}`;
277195
276893
  });
277196
276894
  return [...optionArgs, ...command.args];
277197
276895
  }
@@ -277375,7 +277073,12 @@ async function selectTargetNode({
277375
277073
  if (nodesWithActivePrivateKey.length === 0) {
277376
277074
  cancel("No EVM blockchain nodes with private keys found. Please activate a private key on your EVM blockchain node and try again.");
277377
277075
  }
277378
- const blockchainNode = await blockchainNodePrompt(env2, nodesWithActivePrivateKey, autoAccept, true);
277076
+ const blockchainNode = await blockchainNodePrompt({
277077
+ env: env2,
277078
+ nodes: nodesWithActivePrivateKey,
277079
+ accept: autoAccept,
277080
+ isRequired: true
277081
+ });
277379
277082
  if (!blockchainNode) {
277380
277083
  return nothingSelectedError("EVM blockchain node");
277381
277084
  }
@@ -277653,7 +277356,7 @@ import { basename as basename4, join as join9 } from "node:path";
277653
277356
  var composer = require_composer();
277654
277357
  var Document = require_Document();
277655
277358
  var Schema = require_Schema();
277656
- var errors3 = require_errors3();
277359
+ var errors2 = require_errors3();
277657
277360
  var Alias = require_Alias();
277658
277361
  var identity3 = require_identity();
277659
277362
  var Pair = require_Pair();
@@ -277669,9 +277372,9 @@ var visit2 = require_visit();
277669
277372
  var $Composer = composer.Composer;
277670
277373
  var $Document = Document.Document;
277671
277374
  var $Schema = Schema.Schema;
277672
- var $YAMLError = errors3.YAMLError;
277673
- var $YAMLParseError = errors3.YAMLParseError;
277674
- var $YAMLWarning = errors3.YAMLWarning;
277375
+ var $YAMLError = errors2.YAMLError;
277376
+ var $YAMLParseError = errors2.YAMLParseError;
277377
+ var $YAMLWarning = errors2.YAMLWarning;
277675
277378
  var $Alias = Alias.Alias;
277676
277379
  var $isAlias = identity3.isAlias;
277677
277380
  var $isCollection = identity3.isCollection;
@@ -277819,7 +277522,12 @@ async function getTheGraphMiddleware({
277819
277522
  return missingApplication();
277820
277523
  }
277821
277524
  const middlewares = await settlemintClient.middleware.list(env2.SETTLEMINT_APPLICATION);
277822
- return theGraphPrompt(env2, middlewares, autoAccept, true);
277525
+ return theGraphPrompt({
277526
+ env: env2,
277527
+ middlewares,
277528
+ accept: autoAccept,
277529
+ isRequired: true
277530
+ });
277823
277531
  }
277824
277532
  async function getTheGraphNetwork({
277825
277533
  theGraphMiddleware,
@@ -277972,8 +277680,8 @@ function subgraphDeployCommand() {
277972
277680
  accessToken,
277973
277681
  instance
277974
277682
  });
277975
- const middleware = await settlemintClient.middleware.read(theGraphMiddleware.uniqueName);
277976
- const graphEndpoints = await getGraphEndpoint(middleware, env2);
277683
+ const middleware = await retryWhenFailed(() => getMiddlewareAndValidateSubgraphIsAvailable(theGraphMiddleware.uniqueName, settlemintClient, graphName));
277684
+ const graphEndpoints = await getGraphEndpoint(middleware, env2, graphName);
277977
277685
  await writeEnvSpinner(!!prod, {
277978
277686
  ...env2,
277979
277687
  SETTLEMINT_THEGRAPH: theGraphMiddleware.uniqueName,
@@ -277986,6 +277694,16 @@ async function updateSpecVersion(specVersion) {
277986
277694
  yamlConfig.specVersion = specVersion;
277987
277695
  await updateSubgraphYamlConfig(yamlConfig);
277988
277696
  }
277697
+ async function getMiddlewareAndValidateSubgraphIsAvailable(uniqueName, settlemintClient, graphName) {
277698
+ const middleware = await settlemintClient.middleware.read(uniqueName);
277699
+ if (middleware.__typename === "HAGraphMiddleware") {
277700
+ if (middleware.subgraphs.some((s8) => s8.name === graphName)) {
277701
+ return middleware;
277702
+ }
277703
+ throw new Error("Subgraph not available");
277704
+ }
277705
+ return middleware;
277706
+ }
277989
277707
 
277990
277708
  // src/commands/smart-contract.set.ts
277991
277709
  function smartContractSetCommand() {
@@ -278033,4 +277751,4 @@ function sdkCliCommand(exitOverride = undefined) {
278033
277751
  ascii();
278034
277752
  sdkCliCommand();
278035
277753
 
278036
- //# debugId=ECC4B7BC6AA1AE2364756E2164756E21
277754
+ //# debugId=E95EA8CF395B047F64756E2164756E21