@settlemint/sdk-cli 1.0.0-pr4843e720 → 1.0.0-pr5d85fa1e

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/cli.js +633 -988
  2. package/dist/cli.js.map +9 -22
  3. package/package.json +7 -7
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.iUGJI610SI:/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.DvV03aiRph:/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.iUGJI610SI:/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.DvV03aiRph:/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.iUGJI610SI:/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.DvV03aiRph:/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.iUGJI610SI:/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.DvV03aiRph:/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: "1.0.0-pr4843e720",
226467
+ binaryVersion: "1.0.0-pr5d85fa1e",
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.iUGJI610SI:/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.DvV03aiRph:/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: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
256791
- version: "1.0.0-pr4843e720",
256791
+ version: "1.0.0-pr5d85fa1e",
256792
256792
  type: "module",
256793
256793
  private: false,
256794
256794
  license: "FSL-1.1-MIT",
@@ -256828,7 +256828,7 @@ var package_default = {
256828
256828
  prepack: "cp ../../LICENSE ."
256829
256829
  },
256830
256830
  dependencies: {
256831
- hardhat: "2.22.17"
256831
+ hardhat: "2.22.18"
256832
256832
  },
256833
256833
  devDependencies: {
256834
256834
  "@types/semver": "7.5.8",
@@ -256837,12 +256837,12 @@ var package_default = {
256837
256837
  slugify: "1.6.6",
256838
256838
  yoctocolors: "2.1.1",
256839
256839
  "@commander-js/extra-typings": "13.0.0",
256840
- "@inquirer/confirm": "5.1.2",
256841
- "@inquirer/input": "4.1.2",
256842
- "@inquirer/password": "4.0.5",
256840
+ "@inquirer/confirm": "5.1.3",
256841
+ "@inquirer/input": "4.1.3",
256842
+ "@inquirer/password": "4.0.6",
256843
256843
  "@inquirer/select": "4.0.6",
256844
- "@settlemint/sdk-js": "1.0.0-pr4843e720",
256845
- "@settlemint/sdk-utils": "1.0.0-pr4843e720",
256844
+ "@settlemint/sdk-js": "1.0.0-pr5d85fa1e",
256845
+ "@settlemint/sdk-utils": "1.0.0-pr5d85fa1e",
256846
256846
  "get-tsconfig": "4.8.1",
256847
256847
  giget: "1.2.3"
256848
256848
  },
@@ -267563,7 +267563,7 @@ var et = l((Re, tt) => {
267563
267563
  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) => {
267564
267564
  let n = e.colon || Bt, r = t.match(/\//) || g && t.match(/\\/) ? [""] : [
267565
267565
  ...g ? [process.cwd()] : [],
267566
- ...(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.iUGJI610SI:/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)
267566
+ ...(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.DvV03aiRph:/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)
267567
267567
  ], s = g ? e.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "", o = g ? s.split(n) : [""];
267568
267568
  return g && t.indexOf(".") !== -1 && o[0] !== "" && o.unshift(""), {
267569
267569
  pathEnv: r,
@@ -269566,13 +269566,13 @@ async function codegenTsconfig(env2, thegraphSubgraphNames) {
269566
269566
  };
269567
269567
  }
269568
269568
 
269569
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/key.js
269569
+ // ../../node_modules/@inquirer/core/dist/esm/lib/key.js
269570
269570
  var isUpKey = (key) => key.name === "up" || key.name === "k" || key.ctrl && key.name === "p";
269571
269571
  var isDownKey = (key) => key.name === "down" || key.name === "j" || key.ctrl && key.name === "n";
269572
269572
  var isBackspaceKey = (key) => key.name === "backspace";
269573
269573
  var isNumberKey = (key) => "123456789".includes(key.name);
269574
269574
  var isEnterKey = (key) => key.name === "enter" || key.name === "return";
269575
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/errors.js
269575
+ // ../../node_modules/@inquirer/core/dist/esm/lib/errors.js
269576
269576
  class AbortPromptError extends Error {
269577
269577
  name = "AbortPromptError";
269578
269578
  message = "Prompt was aborted";
@@ -269598,10 +269598,10 @@ class HookError extends Error {
269598
269598
  class ValidationError extends Error {
269599
269599
  name = "ValidationError";
269600
269600
  }
269601
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
269601
+ // ../../node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
269602
269602
  import { AsyncResource as AsyncResource2 } from "node:async_hooks";
269603
269603
 
269604
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
269604
+ // ../../node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
269605
269605
  import { AsyncLocalStorage, AsyncResource } from "node:async_hooks";
269606
269606
  var hookStorage = new AsyncLocalStorage;
269607
269607
  function createStore(rl) {
@@ -269707,7 +269707,7 @@ var effectScheduler = {
269707
269707
  }
269708
269708
  };
269709
269709
 
269710
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-state.js
269710
+ // ../../node_modules/@inquirer/core/dist/esm/lib/use-state.js
269711
269711
  function useState(defaultValue) {
269712
269712
  return withPointer((pointer) => {
269713
269713
  const setFn = (newValue) => {
@@ -269725,7 +269725,7 @@ function useState(defaultValue) {
269725
269725
  });
269726
269726
  }
269727
269727
 
269728
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
269728
+ // ../../node_modules/@inquirer/core/dist/esm/lib/use-effect.js
269729
269729
  function useEffect(cb, depArray) {
269730
269730
  withPointer((pointer) => {
269731
269731
  const oldDeps = pointer.get();
@@ -269737,7 +269737,7 @@ function useEffect(cb, depArray) {
269737
269737
  });
269738
269738
  }
269739
269739
 
269740
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/theme.js
269740
+ // ../../node_modules/@inquirer/core/dist/esm/lib/theme.js
269741
269741
  var import_yoctocolors_cjs = __toESM(require_yoctocolors_cjs(), 1);
269742
269742
 
269743
269743
  // ../../node_modules/@inquirer/figures/dist/esm/index.js
@@ -270026,7 +270026,7 @@ var figures = shouldUseMain ? mainSymbols : fallbackSymbols;
270026
270026
  var esm_default = figures;
270027
270027
  var replacements = Object.entries(specialMainSymbols);
270028
270028
 
270029
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/theme.js
270029
+ // ../../node_modules/@inquirer/core/dist/esm/lib/theme.js
270030
270030
  var defaultTheme = {
270031
270031
  prefix: {
270032
270032
  idle: import_yoctocolors_cjs.default.blue("?"),
@@ -270047,7 +270047,7 @@ var defaultTheme = {
270047
270047
  }
270048
270048
  };
270049
270049
 
270050
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
270050
+ // ../../node_modules/@inquirer/core/dist/esm/lib/make-theme.js
270051
270051
  function isPlainObject(value4) {
270052
270052
  if (typeof value4 !== "object" || value4 === null)
270053
270053
  return false;
@@ -270075,7 +270075,7 @@ function makeTheme(...themes) {
270075
270075
  return deepMerge2(...themesToMerge);
270076
270076
  }
270077
270077
 
270078
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
270078
+ // ../../node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
270079
270079
  function usePrefix({ status = "idle", theme }) {
270080
270080
  const [showLoader, setShowLoader] = useState(false);
270081
270081
  const [tick, setTick] = useState(0);
@@ -270105,7 +270105,7 @@ function usePrefix({ status = "idle", theme }) {
270105
270105
  const iconName = status === "loading" ? "idle" : status;
270106
270106
  return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
270107
270107
  }
270108
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-memo.js
270108
+ // ../../node_modules/@inquirer/core/dist/esm/lib/use-memo.js
270109
270109
  function useMemo(fn, dependencies) {
270110
270110
  return withPointer((pointer) => {
270111
270111
  const prev = pointer.get();
@@ -270117,11 +270117,11 @@ function useMemo(fn, dependencies) {
270117
270117
  return prev.value;
270118
270118
  });
270119
270119
  }
270120
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
270120
+ // ../../node_modules/@inquirer/core/dist/esm/lib/use-ref.js
270121
270121
  function useRef(val) {
270122
270122
  return useState({ current: val })[0];
270123
270123
  }
270124
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
270124
+ // ../../node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
270125
270125
  function useKeypress(userHandler) {
270126
270126
  const signal = useRef(userHandler);
270127
270127
  signal.current = userHandler;
@@ -270139,7 +270139,7 @@ function useKeypress(userHandler) {
270139
270139
  };
270140
270140
  }, []);
270141
270141
  }
270142
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/utils.js
270142
+ // ../../node_modules/@inquirer/core/dist/esm/lib/utils.js
270143
270143
  var import_cli_width = __toESM(require_cli_width(), 1);
270144
270144
  var import_wrap_ansi = __toESM(require_wrap_ansi(), 1);
270145
270145
  function breakLines(content, width) {
@@ -270152,7 +270152,7 @@ function readlineWidth() {
270152
270152
  return import_cli_width.default({ defaultWidth: 80, output: readline().output });
270153
270153
  }
270154
270154
 
270155
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/pagination/lines.js
270155
+ // ../../node_modules/@inquirer/core/dist/esm/lib/pagination/lines.js
270156
270156
  function split2(content, width) {
270157
270157
  return breakLines(content, width).split(`
270158
270158
  `);
@@ -270197,7 +270197,7 @@ function lines({ items, width, renderItem, active, position: requested, pageSize
270197
270197
  return pageBuffer.filter((line) => typeof line === "string");
270198
270198
  }
270199
270199
 
270200
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/pagination/position.js
270200
+ // ../../node_modules/@inquirer/core/dist/esm/lib/pagination/position.js
270201
270201
  function finite({ active, pageSize, total }) {
270202
270202
  const middle = Math.floor(pageSize / 2);
270203
270203
  if (total <= pageSize || active < middle)
@@ -270215,7 +270215,7 @@ function infinite({ active, lastActive, total, pageSize, pointer }) {
270215
270215
  return pointer;
270216
270216
  }
270217
270217
 
270218
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
270218
+ // ../../node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
270219
270219
  function usePagination({ items, active, renderItem, pageSize, loop = true }) {
270220
270220
  const state = useRef({ position: 0, lastActive: 0 });
270221
270221
  const position = loop ? infinite({
@@ -270241,13 +270241,13 @@ function usePagination({ items, active, renderItem, pageSize, loop = true }) {
270241
270241
  }).join(`
270242
270242
  `);
270243
270243
  }
270244
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
270244
+ // ../../node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
270245
270245
  var import_mute_stream = __toESM(require_lib13(), 1);
270246
270246
  init_mjs();
270247
270247
  import * as readline2 from "node:readline";
270248
270248
  import { AsyncResource as AsyncResource3 } from "node:async_hooks";
270249
270249
 
270250
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
270250
+ // ../../node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
270251
270251
  var import_strip_ansi = __toESM(require_strip_ansi(), 1);
270252
270252
  var import_ansi_escapes = __toESM(require_ansi_escapes(), 1);
270253
270253
  var height = (content) => content.split(`
@@ -270318,7 +270318,7 @@ class ScreenManager {
270318
270318
  }
270319
270319
  }
270320
270320
 
270321
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
270321
+ // ../../node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
270322
270322
  class PromisePolyfill extends Promise {
270323
270323
  static withResolver() {
270324
270324
  let resolve4;
@@ -270331,7 +270331,7 @@ class PromisePolyfill extends Promise {
270331
270331
  }
270332
270332
  }
270333
270333
 
270334
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
270334
+ // ../../node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
270335
270335
  function getCallSites() {
270336
270336
  const _prepareStackTrace = Error.prepareStackTrace;
270337
270337
  try {
@@ -270413,7 +270413,7 @@ function createPrompt(view) {
270413
270413
  };
270414
270414
  return prompt;
270415
270415
  }
270416
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/Separator.js
270416
+ // ../../node_modules/@inquirer/core/dist/esm/lib/Separator.js
270417
270417
  var import_yoctocolors_cjs2 = __toESM(require_yoctocolors_cjs(), 1);
270418
270418
  class Separator {
270419
270419
  separator = import_yoctocolors_cjs2.default.dim(Array.from({ length: 15 }).join(esm_default.line));
@@ -270831,6 +270831,39 @@ function stringify2(obj) {
270831
270831
  `);
270832
270832
  }
270833
270833
 
270834
+ // src/utils/telemetry.ts
270835
+ async function telemetry(data) {
270836
+ if (process.env.SETTLEMINT_DISABLE_TELEMETRY) {
270837
+ return;
270838
+ }
270839
+ try {
270840
+ const { prod, command, status, message, instance } = data;
270841
+ const env2 = await loadEnv2(false, !!prod);
270842
+ const targetInstance = instance ?? env2.SETTLEMINT_INSTANCE;
270843
+ if (!targetInstance) {
270844
+ return;
270845
+ }
270846
+ await Promise.race([
270847
+ fetch(`${targetInstance}/cm/telemetry`, {
270848
+ method: "POST",
270849
+ headers: {
270850
+ "Content-Type": "application/json"
270851
+ },
270852
+ body: JSON.stringify({
270853
+ command,
270854
+ status,
270855
+ message,
270856
+ workspace: env2.SETTLEMINT_WORKSPACE,
270857
+ application: env2.SETTLEMINT_APPLICATION
270858
+ })
270859
+ }).catch(() => {
270860
+ }),
270861
+ new Promise((resolve4) => setTimeout(resolve4, 500))
270862
+ ]);
270863
+ } catch {
270864
+ }
270865
+ }
270866
+
270834
270867
  // src/commands/codegen/codegen-blockscout.ts
270835
270868
  import { rm, writeFile as writeFile6 } from "node:fs/promises";
270836
270869
  import { basename, resolve as resolve4 } from "node:path";
@@ -271078,53 +271111,66 @@ function codegenCommand() {
271078
271111
  }
271079
271112
  ])).action(async ({ prod, thegraphSubgraphNames }) => {
271080
271113
  intro("Generating GraphQL types and queries for your dApp");
271081
- const env2 = await loadEnv2(true, !!prod);
271082
- if (!Array.isArray(thegraphSubgraphNames)) {
271083
- thegraphSubgraphNames = await subgraphNamePrompt(env2);
271084
- }
271085
- const { hasura, portal, thegraph, blockscout } = await spinner({
271086
- startMessage: "Testing configured GraphQL schema",
271087
- task: async () => {
271088
- return codegenTsconfig(env2, thegraphSubgraphNames);
271089
- },
271090
- stopMessage: "Tested GraphQL schemas"
271091
- });
271092
- const promises = [];
271093
- if (hasura) {
271094
- note("Generating Hasura resources");
271095
- promises.push(codegenHasura(env2));
271096
- }
271097
- if (portal) {
271098
- note("Generating Portal resources");
271099
- promises.push(codegenPortal(env2));
271100
- }
271101
- if (thegraph) {
271102
- note("Generating TheGraph resources");
271103
- promises.push(codegenTheGraph(env2, thegraphSubgraphNames));
271104
- }
271105
- if (blockscout) {
271106
- note("Generating Blockscout resources");
271107
- promises.push(codegenBlockscout(env2));
271108
- }
271109
- if (shouldCodegenMinio(env2)) {
271110
- note("Generating Minio resources");
271111
- promises.push(codegenMinio(env2));
271112
- }
271113
- if (shouldCodegenIpfs(env2)) {
271114
- note("Generating IPFS resources");
271115
- promises.push(codegenIpfs(env2));
271116
- }
271117
- const results = await Promise.allSettled(promises);
271118
- if (results.some((r6) => r6.status === "rejected")) {
271119
- cancel("An error occurred while generating resources");
271120
- }
271121
- if (hasura || portal || thegraph || blockscout) {
271122
- await generateOutput({
271123
- output: undefined,
271124
- tsconfig: undefined
271114
+ try {
271115
+ const env2 = await loadEnv2(true, !!prod);
271116
+ if (!Array.isArray(thegraphSubgraphNames)) {
271117
+ thegraphSubgraphNames = await subgraphNamePrompt(env2);
271118
+ }
271119
+ const { hasura, portal, thegraph, blockscout } = await spinner({
271120
+ startMessage: "Testing configured GraphQL schema",
271121
+ task: async () => {
271122
+ return codegenTsconfig(env2, thegraphSubgraphNames);
271123
+ },
271124
+ stopMessage: "Tested GraphQL schemas"
271125
+ });
271126
+ const promises = [];
271127
+ if (hasura) {
271128
+ note("Generating Hasura resources");
271129
+ promises.push(codegenHasura(env2));
271130
+ }
271131
+ if (portal) {
271132
+ note("Generating Portal resources");
271133
+ promises.push(codegenPortal(env2));
271134
+ }
271135
+ if (thegraph) {
271136
+ note("Generating TheGraph resources");
271137
+ promises.push(codegenTheGraph(env2, thegraphSubgraphNames));
271138
+ }
271139
+ if (blockscout) {
271140
+ note("Generating Blockscout resources");
271141
+ promises.push(codegenBlockscout(env2));
271142
+ }
271143
+ if (shouldCodegenMinio(env2)) {
271144
+ note("Generating Minio resources");
271145
+ promises.push(codegenMinio(env2));
271146
+ }
271147
+ if (shouldCodegenIpfs(env2)) {
271148
+ note("Generating IPFS resources");
271149
+ promises.push(codegenIpfs(env2));
271150
+ }
271151
+ const results = await Promise.allSettled(promises);
271152
+ if (results.some((r6) => r6.status === "rejected")) {
271153
+ cancel("An error occurred while generating resources");
271154
+ }
271155
+ if (hasura || portal || thegraph || blockscout) {
271156
+ await generateOutput({
271157
+ output: undefined,
271158
+ tsconfig: undefined
271159
+ });
271160
+ }
271161
+ outro("Codegen complete");
271162
+ await telemetry({
271163
+ command: "codegen",
271164
+ status: "success"
271165
+ });
271166
+ } catch (error5) {
271167
+ await telemetry({
271168
+ command: "codegen",
271169
+ status: "error",
271170
+ message: error5.message
271125
271171
  });
271172
+ throw error5;
271126
271173
  }
271127
- outro("Codegen complete");
271128
271174
  });
271129
271175
  }
271130
271176
 
@@ -273268,462 +273314,6 @@ function createSettleMintClient(options) {
273268
273314
  };
273269
273315
  }
273270
273316
 
273271
- // ../../node_modules/@inquirer/core/dist/esm/lib/key.js
273272
- var isBackspaceKey2 = (key2) => key2.name === "backspace";
273273
- var isEnterKey2 = (key2) => key2.name === "enter" || key2.name === "return";
273274
- // ../../node_modules/@inquirer/core/dist/esm/lib/errors.js
273275
- class AbortPromptError2 extends Error {
273276
- name = "AbortPromptError";
273277
- message = "Prompt was aborted";
273278
- constructor(options) {
273279
- super();
273280
- this.cause = options?.cause;
273281
- }
273282
- }
273283
-
273284
- class CancelPromptError2 extends Error {
273285
- name = "CancelPromptError";
273286
- message = "Prompt was canceled";
273287
- }
273288
-
273289
- class ExitPromptError2 extends Error {
273290
- name = "ExitPromptError";
273291
- }
273292
-
273293
- class HookError2 extends Error {
273294
- name = "HookError";
273295
- }
273296
-
273297
- class ValidationError2 extends Error {
273298
- name = "ValidationError";
273299
- }
273300
- // ../../node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
273301
- import { AsyncResource as AsyncResource5 } from "node:async_hooks";
273302
-
273303
- // ../../node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
273304
- import { AsyncLocalStorage as AsyncLocalStorage2, AsyncResource as AsyncResource4 } from "node:async_hooks";
273305
- var hookStorage2 = new AsyncLocalStorage2;
273306
- function createStore2(rl) {
273307
- const store = {
273308
- rl,
273309
- hooks: [],
273310
- hooksCleanup: [],
273311
- hooksEffect: [],
273312
- index: 0,
273313
- handleChange() {
273314
- }
273315
- };
273316
- return store;
273317
- }
273318
- function withHooks2(rl, cb) {
273319
- const store = createStore2(rl);
273320
- return hookStorage2.run(store, () => {
273321
- function cycle(render) {
273322
- store.handleChange = () => {
273323
- store.index = 0;
273324
- render();
273325
- };
273326
- store.handleChange();
273327
- }
273328
- return cb(cycle);
273329
- });
273330
- }
273331
- function getStore2() {
273332
- const store = hookStorage2.getStore();
273333
- if (!store) {
273334
- throw new HookError2("[Inquirer] Hook functions can only be called from within a prompt");
273335
- }
273336
- return store;
273337
- }
273338
- function readline3() {
273339
- return getStore2().rl;
273340
- }
273341
- function withUpdates2(fn) {
273342
- const wrapped = (...args) => {
273343
- const store = getStore2();
273344
- let shouldUpdate = false;
273345
- const oldHandleChange = store.handleChange;
273346
- store.handleChange = () => {
273347
- shouldUpdate = true;
273348
- };
273349
- const returnValue = fn(...args);
273350
- if (shouldUpdate) {
273351
- oldHandleChange();
273352
- }
273353
- store.handleChange = oldHandleChange;
273354
- return returnValue;
273355
- };
273356
- return AsyncResource4.bind(wrapped);
273357
- }
273358
- function withPointer2(cb) {
273359
- const store = getStore2();
273360
- const { index } = store;
273361
- const pointer = {
273362
- get() {
273363
- return store.hooks[index];
273364
- },
273365
- set(value4) {
273366
- store.hooks[index] = value4;
273367
- },
273368
- initialized: index in store.hooks
273369
- };
273370
- const returnValue = cb(pointer);
273371
- store.index++;
273372
- return returnValue;
273373
- }
273374
- function handleChange2() {
273375
- getStore2().handleChange();
273376
- }
273377
- var effectScheduler2 = {
273378
- queue(cb) {
273379
- const store = getStore2();
273380
- const { index } = store;
273381
- store.hooksEffect.push(() => {
273382
- store.hooksCleanup[index]?.();
273383
- const cleanFn = cb(readline3());
273384
- if (cleanFn != null && typeof cleanFn !== "function") {
273385
- throw new ValidationError2("useEffect return value must be a cleanup function or nothing.");
273386
- }
273387
- store.hooksCleanup[index] = cleanFn;
273388
- });
273389
- },
273390
- run() {
273391
- const store = getStore2();
273392
- withUpdates2(() => {
273393
- store.hooksEffect.forEach((effect) => {
273394
- effect();
273395
- });
273396
- store.hooksEffect.length = 0;
273397
- })();
273398
- },
273399
- clearAll() {
273400
- const store = getStore2();
273401
- store.hooksCleanup.forEach((cleanFn) => {
273402
- cleanFn?.();
273403
- });
273404
- store.hooksEffect.length = 0;
273405
- store.hooksCleanup.length = 0;
273406
- }
273407
- };
273408
-
273409
- // ../../node_modules/@inquirer/core/dist/esm/lib/use-state.js
273410
- function useState2(defaultValue) {
273411
- return withPointer2((pointer) => {
273412
- const setFn = (newValue) => {
273413
- if (pointer.get() !== newValue) {
273414
- pointer.set(newValue);
273415
- handleChange2();
273416
- }
273417
- };
273418
- if (pointer.initialized) {
273419
- return [pointer.get(), setFn];
273420
- }
273421
- const value4 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
273422
- pointer.set(value4);
273423
- return [value4, setFn];
273424
- });
273425
- }
273426
-
273427
- // ../../node_modules/@inquirer/core/dist/esm/lib/use-effect.js
273428
- function useEffect2(cb, depArray) {
273429
- withPointer2((pointer) => {
273430
- const oldDeps = pointer.get();
273431
- const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i6) => !Object.is(dep, oldDeps[i6]));
273432
- if (hasChanged) {
273433
- effectScheduler2.queue(cb);
273434
- }
273435
- pointer.set(depArray);
273436
- });
273437
- }
273438
-
273439
- // ../../node_modules/@inquirer/core/dist/esm/lib/theme.js
273440
- var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
273441
- var defaultTheme2 = {
273442
- prefix: {
273443
- idle: import_yoctocolors_cjs4.default.blue("?"),
273444
- done: import_yoctocolors_cjs4.default.green(esm_default.tick)
273445
- },
273446
- spinner: {
273447
- interval: 80,
273448
- frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs4.default.yellow(frame))
273449
- },
273450
- style: {
273451
- answer: import_yoctocolors_cjs4.default.cyan,
273452
- message: import_yoctocolors_cjs4.default.bold,
273453
- error: (text2) => import_yoctocolors_cjs4.default.red(`> ${text2}`),
273454
- defaultAnswer: (text2) => import_yoctocolors_cjs4.default.dim(`(${text2})`),
273455
- help: import_yoctocolors_cjs4.default.dim,
273456
- highlight: import_yoctocolors_cjs4.default.cyan,
273457
- key: (text2) => import_yoctocolors_cjs4.default.cyan(import_yoctocolors_cjs4.default.bold(`<${text2}>`))
273458
- }
273459
- };
273460
-
273461
- // ../../node_modules/@inquirer/core/dist/esm/lib/make-theme.js
273462
- function isPlainObject3(value4) {
273463
- if (typeof value4 !== "object" || value4 === null)
273464
- return false;
273465
- let proto = value4;
273466
- while (Object.getPrototypeOf(proto) !== null) {
273467
- proto = Object.getPrototypeOf(proto);
273468
- }
273469
- return Object.getPrototypeOf(value4) === proto;
273470
- }
273471
- function deepMerge3(...objects) {
273472
- const output = {};
273473
- for (const obj of objects) {
273474
- for (const [key2, value4] of Object.entries(obj)) {
273475
- const prevValue = output[key2];
273476
- output[key2] = isPlainObject3(prevValue) && isPlainObject3(value4) ? deepMerge3(prevValue, value4) : value4;
273477
- }
273478
- }
273479
- return output;
273480
- }
273481
- function makeTheme2(...themes) {
273482
- const themesToMerge = [
273483
- defaultTheme2,
273484
- ...themes.filter((theme) => theme != null)
273485
- ];
273486
- return deepMerge3(...themesToMerge);
273487
- }
273488
-
273489
- // ../../node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
273490
- function usePrefix2({ status = "idle", theme }) {
273491
- const [showLoader, setShowLoader] = useState2(false);
273492
- const [tick, setTick] = useState2(0);
273493
- const { prefix, spinner: spinner2 } = makeTheme2(theme);
273494
- useEffect2(() => {
273495
- if (status === "loading") {
273496
- let tickInterval;
273497
- let inc = -1;
273498
- const delayTimeout = setTimeout(AsyncResource5.bind(() => {
273499
- setShowLoader(true);
273500
- tickInterval = setInterval(AsyncResource5.bind(() => {
273501
- inc = inc + 1;
273502
- setTick(inc % spinner2.frames.length);
273503
- }), spinner2.interval);
273504
- }), 300);
273505
- return () => {
273506
- clearTimeout(delayTimeout);
273507
- clearInterval(tickInterval);
273508
- };
273509
- } else {
273510
- setShowLoader(false);
273511
- }
273512
- }, [status]);
273513
- if (showLoader) {
273514
- return spinner2.frames[tick];
273515
- }
273516
- const iconName = status === "loading" ? "idle" : status;
273517
- return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
273518
- }
273519
- // ../../node_modules/@inquirer/core/dist/esm/lib/use-ref.js
273520
- function useRef2(val) {
273521
- return useState2({ current: val })[0];
273522
- }
273523
-
273524
- // ../../node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
273525
- function useKeypress2(userHandler) {
273526
- const signal = useRef2(userHandler);
273527
- signal.current = userHandler;
273528
- useEffect2((rl) => {
273529
- let ignore = false;
273530
- const handler = withUpdates2((_input, event) => {
273531
- if (ignore)
273532
- return;
273533
- signal.current(event, rl);
273534
- });
273535
- rl.input.on("keypress", handler);
273536
- return () => {
273537
- ignore = true;
273538
- rl.input.removeListener("keypress", handler);
273539
- };
273540
- }, []);
273541
- }
273542
- // ../../node_modules/@inquirer/core/dist/esm/lib/utils.js
273543
- var import_cli_width2 = __toESM(require_cli_width(), 1);
273544
- var import_wrap_ansi2 = __toESM(require_wrap_ansi(), 1);
273545
- function breakLines2(content, width) {
273546
- return content.split(`
273547
- `).flatMap((line) => import_wrap_ansi2.default(line, width, { trim: false, hard: true }).split(`
273548
- `).map((str) => str.trimEnd())).join(`
273549
- `);
273550
- }
273551
- function readlineWidth2() {
273552
- return import_cli_width2.default({ defaultWidth: 80, output: readline3().output });
273553
- }
273554
-
273555
- // ../../node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
273556
- var import_mute_stream2 = __toESM(require_lib13(), 1);
273557
- init_mjs();
273558
- import * as readline4 from "node:readline";
273559
- import { AsyncResource as AsyncResource6 } from "node:async_hooks";
273560
-
273561
- // ../../node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
273562
- var import_strip_ansi2 = __toESM(require_strip_ansi(), 1);
273563
- var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
273564
- var height2 = (content) => content.split(`
273565
- `).length;
273566
- var lastLine2 = (content) => content.split(`
273567
- `).pop() ?? "";
273568
- function cursorDown2(n6) {
273569
- return n6 > 0 ? import_ansi_escapes3.default.cursorDown(n6) : "";
273570
- }
273571
-
273572
- class ScreenManager2 {
273573
- rl;
273574
- height = 0;
273575
- extraLinesUnderPrompt = 0;
273576
- cursorPos;
273577
- constructor(rl) {
273578
- this.rl = rl;
273579
- this.rl = rl;
273580
- this.cursorPos = rl.getCursorPos();
273581
- }
273582
- write(content) {
273583
- this.rl.output.unmute();
273584
- this.rl.output.write(content);
273585
- this.rl.output.mute();
273586
- }
273587
- render(content, bottomContent = "") {
273588
- const promptLine = lastLine2(content);
273589
- const rawPromptLine = import_strip_ansi2.default(promptLine);
273590
- let prompt = rawPromptLine;
273591
- if (this.rl.line.length > 0) {
273592
- prompt = prompt.slice(0, -this.rl.line.length);
273593
- }
273594
- this.rl.setPrompt(prompt);
273595
- this.cursorPos = this.rl.getCursorPos();
273596
- const width = readlineWidth2();
273597
- content = breakLines2(content, width);
273598
- bottomContent = breakLines2(bottomContent, width);
273599
- if (rawPromptLine.length % width === 0) {
273600
- content += `
273601
- `;
273602
- }
273603
- let output = content + (bottomContent ? `
273604
- ` + bottomContent : "");
273605
- const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
273606
- const bottomContentHeight = promptLineUpDiff + (bottomContent ? height2(bottomContent) : 0);
273607
- if (bottomContentHeight > 0)
273608
- output += import_ansi_escapes3.default.cursorUp(bottomContentHeight);
273609
- output += import_ansi_escapes3.default.cursorTo(this.cursorPos.cols);
273610
- this.write(cursorDown2(this.extraLinesUnderPrompt) + import_ansi_escapes3.default.eraseLines(this.height) + output);
273611
- this.extraLinesUnderPrompt = bottomContentHeight;
273612
- this.height = height2(output);
273613
- }
273614
- checkCursorPos() {
273615
- const cursorPos = this.rl.getCursorPos();
273616
- if (cursorPos.cols !== this.cursorPos.cols) {
273617
- this.write(import_ansi_escapes3.default.cursorTo(cursorPos.cols));
273618
- this.cursorPos = cursorPos;
273619
- }
273620
- }
273621
- done({ clearContent }) {
273622
- this.rl.setPrompt("");
273623
- let output = cursorDown2(this.extraLinesUnderPrompt);
273624
- output += clearContent ? import_ansi_escapes3.default.eraseLines(this.height) : `
273625
- `;
273626
- output += import_ansi_escapes3.default.cursorShow;
273627
- this.write(output);
273628
- this.rl.close();
273629
- }
273630
- }
273631
-
273632
- // ../../node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
273633
- class PromisePolyfill2 extends Promise {
273634
- static withResolver() {
273635
- let resolve5;
273636
- let reject;
273637
- const promise = new Promise((res, rej) => {
273638
- resolve5 = res;
273639
- reject = rej;
273640
- });
273641
- return { promise, resolve: resolve5, reject };
273642
- }
273643
- }
273644
-
273645
- // ../../node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
273646
- function getCallSites2() {
273647
- const _prepareStackTrace = Error.prepareStackTrace;
273648
- try {
273649
- let result = [];
273650
- Error.prepareStackTrace = (_5, callSites) => {
273651
- const callSitesWithoutCurrent = callSites.slice(1);
273652
- result = callSitesWithoutCurrent;
273653
- return callSitesWithoutCurrent;
273654
- };
273655
- new Error().stack;
273656
- return result;
273657
- } finally {
273658
- Error.prepareStackTrace = _prepareStackTrace;
273659
- }
273660
- }
273661
- function createPrompt2(view) {
273662
- const callSites = getCallSites2();
273663
- const callerFilename = callSites[1]?.getFileName?.();
273664
- const prompt = (config4, context = {}) => {
273665
- const { input = process.stdin, signal } = context;
273666
- const cleanups = new Set;
273667
- const output = new import_mute_stream2.default;
273668
- output.pipe(context.output ?? process.stdout);
273669
- const rl = readline4.createInterface({
273670
- terminal: true,
273671
- input,
273672
- output
273673
- });
273674
- const screen = new ScreenManager2(rl);
273675
- const { promise, resolve: resolve5, reject } = PromisePolyfill2.withResolver();
273676
- const cancel4 = () => reject(new CancelPromptError2);
273677
- if (signal) {
273678
- const abort = () => reject(new AbortPromptError2({ cause: signal.reason }));
273679
- if (signal.aborted) {
273680
- abort();
273681
- return Object.assign(promise, { cancel: cancel4 });
273682
- }
273683
- signal.addEventListener("abort", abort);
273684
- cleanups.add(() => signal.removeEventListener("abort", abort));
273685
- }
273686
- cleanups.add(onExit((code2, signal2) => {
273687
- reject(new ExitPromptError2(`User force closed the prompt with ${code2} ${signal2}`));
273688
- }));
273689
- const checkCursorPos = () => screen.checkCursorPos();
273690
- rl.input.on("keypress", checkCursorPos);
273691
- cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
273692
- return withHooks2(rl, (cycle) => {
273693
- const hooksCleanup = AsyncResource6.bind(() => effectScheduler2.clearAll());
273694
- rl.on("close", hooksCleanup);
273695
- cleanups.add(() => rl.removeListener("close", hooksCleanup));
273696
- cycle(() => {
273697
- try {
273698
- const nextView = view(config4, (value4) => {
273699
- setImmediate(() => resolve5(value4));
273700
- });
273701
- if (nextView === undefined) {
273702
- throw new Error(`Prompt functions must return a string.
273703
- at ${callerFilename}`);
273704
- }
273705
- const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
273706
- screen.render(content, bottomContent);
273707
- effectScheduler2.run();
273708
- } catch (error5) {
273709
- reject(error5);
273710
- }
273711
- });
273712
- return Object.assign(promise.then((answer) => {
273713
- effectScheduler2.clearAll();
273714
- return answer;
273715
- }, (error5) => {
273716
- effectScheduler2.clearAll();
273717
- throw error5;
273718
- }).finally(() => {
273719
- cleanups.forEach((cleanup) => cleanup());
273720
- screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
273721
- output.end();
273722
- }).then(() => promise), { cancel: cancel4 });
273723
- });
273724
- };
273725
- return prompt;
273726
- }
273727
273317
  // ../../node_modules/@inquirer/confirm/dist/esm/index.js
273728
273318
  function getBooleanValue(value4, defaultValue) {
273729
273319
  let answer = defaultValue !== false;
@@ -273736,19 +273326,19 @@ function getBooleanValue(value4, defaultValue) {
273736
273326
  function boolToString(value4) {
273737
273327
  return value4 ? "Yes" : "No";
273738
273328
  }
273739
- var esm_default3 = createPrompt2((config4, done) => {
273329
+ var esm_default3 = createPrompt((config4, done) => {
273740
273330
  const { transformer = boolToString } = config4;
273741
- const [status, setStatus] = useState2("idle");
273742
- const [value4, setValue] = useState2("");
273743
- const theme = makeTheme2(config4.theme);
273744
- const prefix = usePrefix2({ status, theme });
273745
- useKeypress2((key3, rl) => {
273746
- if (isEnterKey2(key3)) {
273331
+ const [status, setStatus] = useState("idle");
273332
+ const [value4, setValue] = useState("");
273333
+ const theme = makeTheme(config4.theme);
273334
+ const prefix = usePrefix({ status, theme });
273335
+ useKeypress((key2, rl) => {
273336
+ if (isEnterKey(key2)) {
273747
273337
  const answer = getBooleanValue(value4, config4.default);
273748
273338
  setValue(transformer(answer));
273749
273339
  setStatus("done");
273750
273340
  done(answer);
273751
- } else if (key3.name === "tab") {
273341
+ } else if (key2.name === "tab") {
273752
273342
  const answer = boolToString(!getBooleanValue(value4, config4.default));
273753
273343
  rl.clearLine(0);
273754
273344
  rl.write(answer);
@@ -273772,19 +273362,19 @@ var esm_default3 = createPrompt2((config4, done) => {
273772
273362
  var inputTheme = {
273773
273363
  validationFailureMode: "keep"
273774
273364
  };
273775
- var esm_default4 = createPrompt2((config4, done) => {
273365
+ var esm_default4 = createPrompt((config4, done) => {
273776
273366
  const { required, validate: validate4 = () => true } = config4;
273777
- const theme = makeTheme2(inputTheme, config4.theme);
273778
- const [status, setStatus] = useState2("idle");
273779
- const [defaultValue = "", setDefaultValue] = useState2(config4.default);
273780
- const [errorMsg, setError] = useState2();
273781
- const [value4, setValue] = useState2("");
273782
- const prefix = usePrefix2({ status, theme });
273783
- useKeypress2(async (key3, rl) => {
273367
+ const theme = makeTheme(inputTheme, config4.theme);
273368
+ const [status, setStatus] = useState("idle");
273369
+ const [defaultValue = "", setDefaultValue] = useState(config4.default);
273370
+ const [errorMsg, setError] = useState();
273371
+ const [value4, setValue] = useState("");
273372
+ const prefix = usePrefix({ status, theme });
273373
+ useKeypress(async (key2, rl) => {
273784
273374
  if (status !== "idle") {
273785
273375
  return;
273786
273376
  }
273787
- if (isEnterKey2(key3)) {
273377
+ if (isEnterKey(key2)) {
273788
273378
  const answer = value4 || defaultValue;
273789
273379
  setStatus("loading");
273790
273380
  const isValid2 = required && !answer ? "You must provide a value" : await validate4(answer);
@@ -273801,9 +273391,9 @@ var esm_default4 = createPrompt2((config4, done) => {
273801
273391
  setError(isValid2 || "You must provide a valid value");
273802
273392
  setStatus("idle");
273803
273393
  }
273804
- } else if (isBackspaceKey2(key3) && !value4) {
273394
+ } else if (isBackspaceKey(key2) && !value4) {
273805
273395
  setDefaultValue(undefined);
273806
- } else if (key3.name === "tab" && !value4) {
273396
+ } else if (key2.name === "tab" && !value4) {
273807
273397
  setDefaultValue(undefined);
273808
273398
  rl.clearLine(0);
273809
273399
  rl.write(defaultValue);
@@ -273835,19 +273425,19 @@ var esm_default4 = createPrompt2((config4, done) => {
273835
273425
  });
273836
273426
 
273837
273427
  // ../../node_modules/@inquirer/password/dist/esm/index.js
273838
- var import_ansi_escapes4 = __toESM(require_ansi_escapes(), 1);
273839
- var esm_default5 = createPrompt2((config4, done) => {
273428
+ var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
273429
+ var esm_default5 = createPrompt((config4, done) => {
273840
273430
  const { validate: validate4 = () => true } = config4;
273841
- const theme = makeTheme2(config4.theme);
273842
- const [status, setStatus] = useState2("idle");
273843
- const [errorMsg, setError] = useState2();
273844
- const [value4, setValue] = useState2("");
273845
- const prefix = usePrefix2({ status, theme });
273846
- useKeypress2(async (key3, rl) => {
273431
+ const theme = makeTheme(config4.theme);
273432
+ const [status, setStatus] = useState("idle");
273433
+ const [errorMsg, setError] = useState();
273434
+ const [value4, setValue] = useState("");
273435
+ const prefix = usePrefix({ status, theme });
273436
+ useKeypress(async (key2, rl) => {
273847
273437
  if (status !== "idle") {
273848
273438
  return;
273849
273439
  }
273850
- if (isEnterKey2(key3)) {
273440
+ if (isEnterKey(key2)) {
273851
273441
  const answer = value4;
273852
273442
  setStatus("loading");
273853
273443
  const isValid2 = await validate4(answer);
@@ -273872,7 +273462,7 @@ var esm_default5 = createPrompt2((config4, done) => {
273872
273462
  const maskChar = typeof config4.mask === "string" ? config4.mask : "*";
273873
273463
  formattedValue = maskChar.repeat(value4.length);
273874
273464
  } else if (status !== "done") {
273875
- helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes4.default.cursorHide}`;
273465
+ helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes3.default.cursorHide}`;
273876
273466
  }
273877
273467
  if (status === "done") {
273878
273468
  formattedValue = theme.style.answer(formattedValue);
@@ -274385,112 +273975,125 @@ async function workspacePrompt(env2, workspaces, accept) {
274385
273975
  // src/commands/connect.ts
274386
273976
  function connectCommand() {
274387
273977
  return new Command("connect").option("--prod", "Connect to your production environment").option("-a, --accept-defaults", "Accept the default and previously set values").option("-i, --instance <instance>", "The instance to connect to (defaults to the instance in the .env file)").description("Connects your project to your application on SettleMint").action(async ({ acceptDefaults, prod, instance }) => {
274388
- intro("Connecting your dApp to SettleMint");
274389
- const env2 = await loadEnv2(false, !!prod);
274390
- const selectedInstance = instance ? sanitizeAndValidateInstanceUrl(instance) : await instancePrompt(env2, true);
274391
- const personalAccessToken = await getInstanceCredentials(selectedInstance);
274392
- if (!personalAccessToken) {
274393
- return missingPersonalAccessTokenError();
274394
- }
274395
- const accessToken = personalAccessToken.personalAccessToken;
274396
- const settlemint = createSettleMintClient({
274397
- accessToken,
274398
- instance: selectedInstance
274399
- });
274400
- const workspaces = await workspaceSpinner(settlemint);
274401
- const workspace = await workspacePrompt(env2, workspaces, acceptDefaults);
274402
- const application = await applicationPrompt(env2, workspace?.applications ?? [], acceptDefaults);
274403
- const aatToken = await applicationAccessTokenPrompt(env2, application, settlemint, acceptDefaults);
274404
- const { middlewares, integrationTools, storages, privateKeys, insights, customDeployments, blockchainNodes } = await servicesSpinner(settlemint, application);
274405
- const blockchainNode = await blockchainNodePrompt({
274406
- env: env2,
274407
- nodes: blockchainNodes,
274408
- accept: acceptDefaults
274409
- });
274410
- const hasura = await hasuraPrompt({
274411
- env: env2,
274412
- integrations: integrationTools,
274413
- accept: acceptDefaults
274414
- });
274415
- const thegraph = await theGraphPrompt({
274416
- env: env2,
274417
- middlewares,
274418
- accept: acceptDefaults
274419
- });
274420
- const portal = await portalPrompt({
274421
- env: env2,
274422
- middlewares,
274423
- accept: acceptDefaults
274424
- });
274425
- const ipfs = await ipfsPrompt({
274426
- env: env2,
274427
- storages,
274428
- accept: acceptDefaults
274429
- });
274430
- const minio = await minioPrompt({
274431
- env: env2,
274432
- storages,
274433
- accept: acceptDefaults
274434
- });
274435
- const hdPrivateKey = await hdPrivateKeyPrompt({
274436
- env: env2,
274437
- privateKeys,
274438
- accept: acceptDefaults
274439
- });
274440
- const cDeployment = await customDeploymentPrompt({
274441
- env: env2,
274442
- customDeployments,
274443
- accept: acceptDefaults
274444
- });
274445
- const blockscout = await blockscoutPrompt({
274446
- env: env2,
274447
- insights,
274448
- accept: acceptDefaults
274449
- });
274450
- if (acceptDefaults) {
274451
- const selectedServices = [
274452
- `Workspace: ${workspace.name}`,
274453
- `Application: ${application.name}`,
274454
- blockchainNode && `Blockchain Network: ${blockchainNode?.blockchainNetwork?.name}`,
274455
- blockchainNode && `Blockchain Node: ${blockchainNode?.name}`,
274456
- hasura && `Hasura: ${hasura?.name}`,
274457
- thegraph && `TheGraph: ${thegraph?.name}`,
274458
- portal && `Portal: ${portal?.name}`,
274459
- ipfs && `IPFS: ${ipfs?.name}`,
274460
- minio && `MinIO: ${minio?.name}`,
274461
- hdPrivateKey && `HD Private Key: ${hdPrivateKey?.name}`,
274462
- cDeployment && `Custom Deployment: ${cDeployment?.name}`,
274463
- blockscout && `Blockscout: ${blockscout?.name}`
274464
- ];
274465
- note2(`Selected services:
273978
+ try {
273979
+ intro("Connecting your dApp to SettleMint");
273980
+ const env2 = await loadEnv2(false, !!prod);
273981
+ const selectedInstance = instance ? sanitizeAndValidateInstanceUrl(instance) : await instancePrompt(env2, true);
273982
+ const personalAccessToken = await getInstanceCredentials(selectedInstance);
273983
+ if (!personalAccessToken) {
273984
+ return missingPersonalAccessTokenError();
273985
+ }
273986
+ const accessToken = personalAccessToken.personalAccessToken;
273987
+ const settlemint = createSettleMintClient({
273988
+ accessToken,
273989
+ instance: selectedInstance
273990
+ });
273991
+ const workspaces = await workspaceSpinner(settlemint);
273992
+ const workspace = await workspacePrompt(env2, workspaces, acceptDefaults);
273993
+ const application = await applicationPrompt(env2, workspace?.applications ?? [], acceptDefaults);
273994
+ const aatToken = await applicationAccessTokenPrompt(env2, application, settlemint, acceptDefaults);
273995
+ const { middlewares, integrationTools, storages, privateKeys, insights, customDeployments, blockchainNodes } = await servicesSpinner(settlemint, application);
273996
+ const blockchainNode = await blockchainNodePrompt({
273997
+ env: env2,
273998
+ nodes: blockchainNodes,
273999
+ accept: acceptDefaults
274000
+ });
274001
+ const hasura = await hasuraPrompt({
274002
+ env: env2,
274003
+ integrations: integrationTools,
274004
+ accept: acceptDefaults
274005
+ });
274006
+ const thegraph = await theGraphPrompt({
274007
+ env: env2,
274008
+ middlewares,
274009
+ accept: acceptDefaults
274010
+ });
274011
+ const portal = await portalPrompt({
274012
+ env: env2,
274013
+ middlewares,
274014
+ accept: acceptDefaults
274015
+ });
274016
+ const ipfs = await ipfsPrompt({
274017
+ env: env2,
274018
+ storages,
274019
+ accept: acceptDefaults
274020
+ });
274021
+ const minio = await minioPrompt({
274022
+ env: env2,
274023
+ storages,
274024
+ accept: acceptDefaults
274025
+ });
274026
+ const hdPrivateKey = await hdPrivateKeyPrompt({
274027
+ env: env2,
274028
+ privateKeys,
274029
+ accept: acceptDefaults
274030
+ });
274031
+ const cDeployment = await customDeploymentPrompt({
274032
+ env: env2,
274033
+ customDeployments,
274034
+ accept: acceptDefaults
274035
+ });
274036
+ const blockscout = await blockscoutPrompt({
274037
+ env: env2,
274038
+ insights,
274039
+ accept: acceptDefaults
274040
+ });
274041
+ if (acceptDefaults) {
274042
+ const selectedServices = [
274043
+ `Workspace: ${workspace.name}`,
274044
+ `Application: ${application.name}`,
274045
+ blockchainNode && `Blockchain Network: ${blockchainNode?.blockchainNetwork?.name}`,
274046
+ blockchainNode && `Blockchain Node: ${blockchainNode?.name}`,
274047
+ hasura && `Hasura: ${hasura?.name}`,
274048
+ thegraph && `TheGraph: ${thegraph?.name}`,
274049
+ portal && `Portal: ${portal?.name}`,
274050
+ ipfs && `IPFS: ${ipfs?.name}`,
274051
+ minio && `MinIO: ${minio?.name}`,
274052
+ hdPrivateKey && `HD Private Key: ${hdPrivateKey?.name}`,
274053
+ cDeployment && `Custom Deployment: ${cDeployment?.name}`,
274054
+ blockscout && `Blockscout: ${blockscout?.name}`
274055
+ ];
274056
+ note2(`Selected services:
274466
274057
  • ${selectedServices.filter(Boolean).join(`
274467
274058
  • `)}
274468
274059
  `);
274060
+ }
274061
+ await writeEnvSpinner(!!prod, {
274062
+ SETTLEMINT_ACCESS_TOKEN: aatToken,
274063
+ SETTLEMINT_INSTANCE: selectedInstance,
274064
+ SETTLEMINT_WORKSPACE: workspace.uniqueName,
274065
+ SETTLEMINT_APPLICATION: application.uniqueName,
274066
+ SETTLEMINT_BLOCKCHAIN_NETWORK: blockchainNode?.blockchainNetwork?.uniqueName,
274067
+ SETTLEMINT_BLOCKCHAIN_NODE: blockchainNode?.uniqueName,
274068
+ SETTLEMINT_HASURA: hasura?.uniqueName,
274069
+ ...getHasuraEndpoints(hasura),
274070
+ SETTLEMINT_THEGRAPH: thegraph?.uniqueName,
274071
+ ...await getGraphEndpoint(thegraph, env2),
274072
+ SETTLEMINT_PORTAL: portal?.uniqueName,
274073
+ ...getPortalEndpoints(portal),
274074
+ SETTLEMINT_HD_PRIVATE_KEY: hdPrivateKey?.uniqueName,
274075
+ SETTLEMINT_MINIO: minio?.uniqueName,
274076
+ ...getMinioEndpoints(minio),
274077
+ SETTLEMINT_IPFS: ipfs?.uniqueName,
274078
+ ...getIpfsEndpoints(ipfs),
274079
+ SETTLEMINT_CUSTOM_DEPLOYMENT: cDeployment?.uniqueName,
274080
+ SETTLEMINT_CUSTOM_DEPLOYMENT_ENDPOINT: cDeployment?.endpoints.find((endpoint) => endpoint.id.includes("internal"))?.displayValue,
274081
+ SETTLEMINT_BLOCKSCOUT: blockscout?.uniqueName,
274082
+ ...getBlockscoutEndpoints(blockscout)
274083
+ });
274084
+ outro("Connected to SettleMint");
274085
+ await telemetry({
274086
+ command: "connect",
274087
+ status: "success"
274088
+ });
274089
+ } catch (error5) {
274090
+ await telemetry({
274091
+ command: "connect",
274092
+ status: "error",
274093
+ message: error5.message
274094
+ });
274095
+ throw error5;
274469
274096
  }
274470
- await writeEnvSpinner(!!prod, {
274471
- SETTLEMINT_ACCESS_TOKEN: aatToken,
274472
- SETTLEMINT_INSTANCE: selectedInstance,
274473
- SETTLEMINT_WORKSPACE: workspace.uniqueName,
274474
- SETTLEMINT_APPLICATION: application.uniqueName,
274475
- SETTLEMINT_BLOCKCHAIN_NETWORK: blockchainNode?.blockchainNetwork?.uniqueName,
274476
- SETTLEMINT_BLOCKCHAIN_NODE: blockchainNode?.uniqueName,
274477
- SETTLEMINT_HASURA: hasura?.uniqueName,
274478
- ...getHasuraEndpoints(hasura),
274479
- SETTLEMINT_THEGRAPH: thegraph?.uniqueName,
274480
- ...await getGraphEndpoint(thegraph, env2),
274481
- SETTLEMINT_PORTAL: portal?.uniqueName,
274482
- ...getPortalEndpoints(portal),
274483
- SETTLEMINT_HD_PRIVATE_KEY: hdPrivateKey?.uniqueName,
274484
- SETTLEMINT_MINIO: minio?.uniqueName,
274485
- ...getMinioEndpoints(minio),
274486
- SETTLEMINT_IPFS: ipfs?.uniqueName,
274487
- ...getIpfsEndpoints(ipfs),
274488
- SETTLEMINT_CUSTOM_DEPLOYMENT: cDeployment?.uniqueName,
274489
- SETTLEMINT_CUSTOM_DEPLOYMENT_ENDPOINT: cDeployment?.endpoints.find((endpoint) => endpoint.id.includes("internal"))?.displayValue,
274490
- SETTLEMINT_BLOCKSCOUT: blockscout?.uniqueName,
274491
- ...getBlockscoutEndpoints(blockscout)
274492
- });
274493
- outro("Connected to SettleMint");
274494
274097
  });
274495
274098
  }
274496
274099
 
@@ -274763,7 +274366,7 @@ var basename2 = function(p5, extension) {
274763
274366
  return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
274764
274367
  };
274765
274368
  // ../../node_modules/defu/dist/defu.mjs
274766
- function isPlainObject4(value4) {
274369
+ function isPlainObject3(value4) {
274767
274370
  if (value4 === null || typeof value4 !== "object") {
274768
274371
  return false;
274769
274372
  }
@@ -274780,27 +274383,27 @@ function isPlainObject4(value4) {
274780
274383
  return true;
274781
274384
  }
274782
274385
  function _defu(baseObject, defaults2, namespace = ".", merger) {
274783
- if (!isPlainObject4(defaults2)) {
274386
+ if (!isPlainObject3(defaults2)) {
274784
274387
  return _defu(baseObject, {}, namespace, merger);
274785
274388
  }
274786
274389
  const object = Object.assign({}, defaults2);
274787
- for (const key3 in baseObject) {
274788
- if (key3 === "__proto__" || key3 === "constructor") {
274390
+ for (const key2 in baseObject) {
274391
+ if (key2 === "__proto__" || key2 === "constructor") {
274789
274392
  continue;
274790
274393
  }
274791
- const value4 = baseObject[key3];
274394
+ const value4 = baseObject[key2];
274792
274395
  if (value4 === null || value4 === undefined) {
274793
274396
  continue;
274794
274397
  }
274795
- if (merger && merger(object, key3, value4, namespace)) {
274398
+ if (merger && merger(object, key2, value4, namespace)) {
274796
274399
  continue;
274797
274400
  }
274798
- if (Array.isArray(value4) && Array.isArray(object[key3])) {
274799
- object[key3] = [...value4, ...object[key3]];
274800
- } else if (isPlainObject4(value4) && isPlainObject4(object[key3])) {
274801
- object[key3] = _defu(value4, object[key3], (namespace ? `${namespace}.` : "") + key3.toString(), merger);
274401
+ if (Array.isArray(value4) && Array.isArray(object[key2])) {
274402
+ object[key2] = [...value4, ...object[key2]];
274403
+ } else if (isPlainObject3(value4) && isPlainObject3(object[key2])) {
274404
+ object[key2] = _defu(value4, object[key2], (namespace ? `${namespace}.` : "") + key2.toString(), merger);
274802
274405
  } else {
274803
- object[key3] = value4;
274406
+ object[key2] = value4;
274804
274407
  }
274805
274408
  }
274806
274409
  return object;
@@ -274809,15 +274412,15 @@ function createDefu(merger) {
274809
274412
  return (...arguments_4) => arguments_4.reduce((p5, c3) => _defu(p5, c3, "", merger), {});
274810
274413
  }
274811
274414
  var defu = createDefu();
274812
- var defuFn = createDefu((object, key3, currentValue) => {
274813
- if (object[key3] !== undefined && typeof currentValue === "function") {
274814
- object[key3] = currentValue(object[key3]);
274415
+ var defuFn = createDefu((object, key2, currentValue) => {
274416
+ if (object[key2] !== undefined && typeof currentValue === "function") {
274417
+ object[key2] = currentValue(object[key2]);
274815
274418
  return true;
274816
274419
  }
274817
274420
  });
274818
- var defuArrayFn = createDefu((object, key3, currentValue) => {
274819
- if (Array.isArray(object[key3]) && typeof currentValue === "function") {
274820
- object[key3] = currentValue(object[key3]);
274421
+ var defuArrayFn = createDefu((object, key2, currentValue) => {
274422
+ if (Array.isArray(object[key2]) && typeof currentValue === "function") {
274423
+ object[key2] = currentValue(object[key2]);
274821
274424
  return true;
274822
274425
  }
274823
274426
  });
@@ -275040,11 +274643,11 @@ function cacheDirectory() {
275040
274643
  }
275041
274644
  function normalizeHeaders(headers = {}) {
275042
274645
  const normalized = {};
275043
- for (const [key3, value4] of Object.entries(headers)) {
274646
+ for (const [key2, value4] of Object.entries(headers)) {
275044
274647
  if (!value4) {
275045
274648
  continue;
275046
274649
  }
275047
- normalized[key3.toLowerCase()] = value4;
274650
+ normalized[key2.toLowerCase()] = value4;
275048
274651
  }
275049
274652
  return normalized;
275050
274653
  }
@@ -275298,36 +274901,50 @@ async function downloadAndExtractNpmPackage(template, targetDir) {
275298
274901
  function createCommand2() {
275299
274902
  return new Command("create").description("Bootstrap your SettleMint project").option("-n, --project-name <name>", "The name for your SettleMint project").addOption(new Option("-t, --template <template>", "Thehe template for your SettleMint project").choices(templates.map((templates2) => templates2.value))).action(async ({ projectName, template }) => {
275300
274903
  intro("Creating a new SettleMint project");
275301
- const env2 = await loadEnv2(false, false);
275302
- const name2 = await namePrompt(env2, projectName);
275303
- const targetDir = formatTargetDir(name2);
275304
- const projectDir = join7(process.cwd(), targetDir);
275305
- if (!await exists(projectDir)) {
275306
- await mkdir6(projectDir, { recursive: true });
275307
- }
275308
- if (!await isEmpty(projectDir)) {
275309
- const confirmEmpty = await esm_default3({
275310
- message: `The folder ${projectDir} already exists. Do you want to empty it?`,
275311
- default: false
275312
- });
275313
- if (!confirmEmpty) {
275314
- cancel(`Error: A folder with the name ${targetDir} already exists in the current directory.`);
274904
+ try {
274905
+ const env2 = await loadEnv2(false, false);
274906
+ const name2 = await namePrompt(env2, projectName);
274907
+ const targetDir = formatTargetDir(name2);
274908
+ const projectDir = join7(process.cwd(), targetDir);
274909
+ if (!await exists(projectDir)) {
274910
+ await mkdir6(projectDir, { recursive: true });
274911
+ }
274912
+ if (!await isEmpty(projectDir)) {
274913
+ const confirmEmpty = await esm_default3({
274914
+ message: `The folder ${projectDir} already exists. Do you want to empty it?`,
274915
+ default: false
274916
+ });
274917
+ if (!confirmEmpty) {
274918
+ cancel(`Error: A folder with the name ${targetDir} already exists in the current directory.`);
274919
+ }
274920
+ await emptyDir(projectDir);
275315
274921
  }
275316
- await emptyDir(projectDir);
275317
- }
275318
- const selectedTemplate = await templatePrompt(templates, template);
275319
- if (!selectedTemplate) {
275320
- return nothingSelectedError("template");
274922
+ const selectedTemplate = await templatePrompt(templates, template);
274923
+ if (!selectedTemplate) {
274924
+ return nothingSelectedError("template");
274925
+ }
274926
+ await spinner({
274927
+ startMessage: "Scaffolding the project",
274928
+ task: async () => {
274929
+ await downloadAndExtractNpmPackage(selectedTemplate.value, projectDir);
274930
+ await setName(name2, projectDir);
274931
+ },
274932
+ stopMessage: "Project fully scaffolded"
274933
+ });
274934
+ outro("Your project is ready to go!");
274935
+ await telemetry({
274936
+ command: "create",
274937
+ status: "success",
274938
+ message: selectedTemplate.value
274939
+ });
274940
+ } catch (error5) {
274941
+ await telemetry({
274942
+ command: "create",
274943
+ status: "error",
274944
+ message: error5.message
274945
+ });
274946
+ throw error5;
275321
274947
  }
275322
- await spinner({
275323
- startMessage: "Scaffolding the project",
275324
- task: async () => {
275325
- await downloadAndExtractNpmPackage(selectedTemplate.value, projectDir);
275326
- await setName(name2, projectDir);
275327
- },
275328
- stopMessage: "Project fully scaffolded"
275329
- });
275330
- outro("Your project is ready to go!");
275331
274948
  });
275332
274949
  }
275333
274950
 
@@ -275386,49 +275003,63 @@ function loginCommand() {
275386
275003
  }
275387
275004
  ])).option("-a, --accept-defaults", "Accept the default and previously set values").option("-d, --default", "Set this instance as the default").option("--token-stdin", "Provide a token using STDIN").option("-i, --instance <instance>", "The instance to login to (defaults to the instance in the .env file)").action(async ({ acceptDefaults, default: isDefault, tokenStdin, instance }, cmd2) => {
275388
275005
  intro("Login to your SettleMint account");
275389
- const autoAccept = !!acceptDefaults || !!tokenStdin;
275390
- const env2 = await loadEnv2(false, false);
275391
- if (instance) {
275392
- validate3(UrlSchema, instance);
275393
- }
275394
- const selectedInstance = instance ? sanitizeAndValidateInstanceUrl(instance) : await instancePrompt(env2, autoAccept, true);
275395
- let personalAccessToken = "";
275396
- if (tokenStdin) {
275397
- if (cmd2.args.length > 0) {
275398
- cancel("A token should be provided using STDIN, not as an argument");
275399
- }
275400
- personalAccessToken = await Promise.race([
275401
- (async () => {
275402
- const chunks = [];
275403
- for await (const chunk of process.stdin) {
275404
- chunks.push(Buffer.from(chunk));
275405
- }
275406
- return Buffer.concat(chunks).toString().trim();
275407
- })(),
275408
- new Promise((resolve7) => setTimeout(() => resolve7(""), 1000))
275409
- ]);
275006
+ try {
275007
+ const autoAccept = !!acceptDefaults || !!tokenStdin;
275008
+ const env2 = await loadEnv2(false, false);
275009
+ if (instance) {
275010
+ validate3(UrlSchema, instance);
275011
+ }
275012
+ const selectedInstance = instance ? sanitizeAndValidateInstanceUrl(instance) : await instancePrompt(env2, autoAccept, true);
275013
+ let personalAccessToken = "";
275014
+ if (tokenStdin) {
275015
+ if (cmd2.args.length > 0) {
275016
+ cancel("A token should be provided using STDIN, not as an argument");
275017
+ }
275018
+ personalAccessToken = await Promise.race([
275019
+ (async () => {
275020
+ const chunks = [];
275021
+ for await (const chunk of process.stdin) {
275022
+ chunks.push(Buffer.from(chunk));
275023
+ }
275024
+ return Buffer.concat(chunks).toString().trim();
275025
+ })(),
275026
+ new Promise((resolve7) => setTimeout(() => resolve7(""), 1000))
275027
+ ]);
275028
+ try {
275029
+ validate3(PersonalAccessTokenSchema3, personalAccessToken);
275030
+ } catch {
275031
+ cancel("Invalid personal access token");
275032
+ }
275033
+ } else {
275034
+ personalAccessToken = await personalAccessTokenPrompt(env2, selectedInstance, autoAccept);
275035
+ }
275036
+ const client = createSettleMintClient({
275037
+ instance: selectedInstance,
275038
+ accessToken: personalAccessToken
275039
+ });
275410
275040
  try {
275411
- validate3(PersonalAccessTokenSchema3, personalAccessToken);
275412
- } catch {
275413
- cancel("Invalid personal access token");
275041
+ await loginSpinner(client);
275042
+ } catch (error5) {
275043
+ cancel(`Invalid personal access token for instance ${selectedInstance}`);
275414
275044
  }
275415
- } else {
275416
- personalAccessToken = await personalAccessTokenPrompt(env2, selectedInstance, autoAccept);
275417
- }
275418
- const client = createSettleMintClient({
275419
- instance: selectedInstance,
275420
- accessToken: personalAccessToken
275421
- });
275422
- try {
275423
- await loginSpinner(client);
275045
+ await storeCredentials(personalAccessToken, selectedInstance);
275046
+ if (isDefault) {
275047
+ await setDefaultInstance(selectedInstance);
275048
+ }
275049
+ outro("Successfully logged in to SettleMint!");
275050
+ await telemetry({
275051
+ command: "login",
275052
+ status: "success",
275053
+ instance: selectedInstance
275054
+ });
275424
275055
  } catch (error5) {
275425
- cancel(`Invalid personal access token for instance ${selectedInstance}`);
275426
- }
275427
- await storeCredentials(personalAccessToken, selectedInstance);
275428
- if (isDefault) {
275429
- await setDefaultInstance(selectedInstance);
275056
+ await telemetry({
275057
+ command: "login",
275058
+ status: "error",
275059
+ message: error5.message
275060
+ });
275061
+ throw error5;
275430
275062
  }
275431
- outro("Successfully logged in to SettleMint!");
275432
275063
  });
275433
275064
  }
275434
275065
 
@@ -275436,33 +275067,47 @@ function loginCommand() {
275436
275067
  function logoutCommand() {
275437
275068
  return new Command("logout").description("Logout from your SettleMint account").option("--all", "Logout from all instances").action(async (options) => {
275438
275069
  intro("Logging out from SettleMint");
275439
- const instances = await getInstances();
275440
- if (instances.length === 0) {
275441
- outro("No instances to logout from");
275442
- return;
275443
- }
275444
- if (options.all) {
275445
- await Promise.all(instances.map((instance2) => removeCredentials(instance2)));
275446
- outro("Successfully logged out from all instances");
275447
- return;
275448
- }
275449
- if (instances.length === 1) {
275450
- const instance2 = instances[0];
275451
- await removeCredentials(instance2);
275452
- outro(`Successfully logged out from ${instance2}`);
275453
- return;
275070
+ try {
275071
+ const instances = await getInstances();
275072
+ if (instances.length === 0) {
275073
+ outro("No instances to logout from");
275074
+ return;
275075
+ }
275076
+ if (options.all) {
275077
+ await Promise.all(instances.map((instance2) => removeCredentials(instance2)));
275078
+ outro("Successfully logged out from all instances");
275079
+ return;
275080
+ }
275081
+ if (instances.length === 1) {
275082
+ const instance2 = instances[0];
275083
+ await removeCredentials(instance2);
275084
+ outro(`Successfully logged out from ${instance2}`);
275085
+ return;
275086
+ }
275087
+ const defaultInstance = await getDefaultInstance();
275088
+ const instance = await esm_default2({
275089
+ message: "Select the instance to logout from:",
275090
+ choices: instances.map((instance2) => ({
275091
+ value: instance2,
275092
+ label: instance2,
275093
+ description: instance2 === defaultInstance ? "(default)" : undefined
275094
+ }))
275095
+ });
275096
+ await removeCredentials(instance);
275097
+ outro(`Successfully logged out from ${instance}`);
275098
+ await telemetry({
275099
+ command: "logout",
275100
+ status: "success",
275101
+ instance
275102
+ });
275103
+ } catch (error5) {
275104
+ await telemetry({
275105
+ command: "logout",
275106
+ status: "error",
275107
+ message: error5.message
275108
+ });
275109
+ throw error5;
275454
275110
  }
275455
- const defaultInstance = await getDefaultInstance();
275456
- const instance = await esm_default2({
275457
- message: "Select the instance to logout from:",
275458
- choices: instances.map((instance2) => ({
275459
- value: instance2,
275460
- label: instance2,
275461
- description: instance2 === defaultInstance ? "(default)" : undefined
275462
- }))
275463
- });
275464
- await removeCredentials(instance);
275465
- outro(`Successfully logged out from ${instance}`);
275466
275111
  });
275467
275112
  }
275468
275113
 
@@ -277249,11 +276894,11 @@ function createCommand4() {
277249
276894
 
277250
276895
  // src/utils/passthrough-options.ts
277251
276896
  function mapPassthroughOptions(options, command) {
277252
- const optionArgs = Object.entries(options).map(([key3, value4]) => {
276897
+ const optionArgs = Object.entries(options).map(([key2, value4]) => {
277253
276898
  if (value4 === true) {
277254
- return `--${key3}`;
276899
+ return `--${key2}`;
277255
276900
  }
277256
- return `--${key3}=${value4}`;
276901
+ return `--${key2}=${value4}`;
277257
276902
  });
277258
276903
  return [...optionArgs, ...command.args];
277259
276904
  }
@@ -277720,7 +277365,7 @@ import { basename as basename4, join as join9 } from "node:path";
277720
277365
  var composer = require_composer();
277721
277366
  var Document = require_Document();
277722
277367
  var Schema = require_Schema();
277723
- var errors3 = require_errors3();
277368
+ var errors2 = require_errors3();
277724
277369
  var Alias = require_Alias();
277725
277370
  var identity3 = require_identity();
277726
277371
  var Pair = require_Pair();
@@ -277736,9 +277381,9 @@ var visit2 = require_visit();
277736
277381
  var $Composer = composer.Composer;
277737
277382
  var $Document = Document.Document;
277738
277383
  var $Schema = Schema.Schema;
277739
- var $YAMLError = errors3.YAMLError;
277740
- var $YAMLParseError = errors3.YAMLParseError;
277741
- var $YAMLWarning = errors3.YAMLWarning;
277384
+ var $YAMLError = errors2.YAMLError;
277385
+ var $YAMLParseError = errors2.YAMLParseError;
277386
+ var $YAMLWarning = errors2.YAMLWarning;
277742
277387
  var $Alias = Alias.Alias;
277743
277388
  var $isAlias = identity3.isAlias;
277744
277389
  var $isCollection = identity3.isCollection;
@@ -278105,4 +277750,4 @@ function sdkCliCommand(exitOverride = undefined) {
278105
277750
  ascii();
278106
277751
  sdkCliCommand();
278107
277752
 
278108
- //# debugId=9320C32A5E74BD0064756E2164756E21
277753
+ //# debugId=46F64ACE52E15AAD64756E2164756E21