@settlemint/sdk-cli 1.0.6-pr08e3b3ff → 1.0.6-pr4d01b3b1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -59232,8 +59232,8 @@ ${lanes.join(`
59232
59232
  addDeclarationToSymbol(symbol, id, flags);
59233
59233
  return symbol;
59234
59234
  } else {
59235
- const table = parent3 ? parent3.exports : file.jsGlobalAugmentations || (file.jsGlobalAugmentations = createSymbolTable());
59236
- return declareSymbol(table, parent3, id, flags, excludeFlags);
59235
+ const table2 = parent3 ? parent3.exports : file.jsGlobalAugmentations || (file.jsGlobalAugmentations = createSymbolTable());
59236
+ return declareSymbol(table2, parent3, id, flags, excludeFlags);
59237
59237
  }
59238
59238
  });
59239
59239
  }
@@ -63732,13 +63732,13 @@ ${lanes.join(`
63732
63732
  case 263:
63733
63733
  case 231:
63734
63734
  case 264:
63735
- let table;
63735
+ let table2;
63736
63736
  (getSymbolOfDeclaration(location).members || emptySymbols).forEach((memberSymbol, key) => {
63737
63737
  if (memberSymbol.flags & (788968 & ~67108864)) {
63738
- (table || (table = createSymbolTable())).set(key, memberSymbol);
63738
+ (table2 || (table2 = createSymbolTable())).set(key, memberSymbol);
63739
63739
  }
63740
63740
  });
63741
- if (table && (result = callback(table, undefined, false, location))) {
63741
+ if (table2 && (result = callback(table2, undefined, false, location))) {
63742
63742
  return result;
63743
63743
  }
63744
63744
  break;
@@ -108969,11 +108969,11 @@ ${lanes.join(`
108969
108969
  state.labeledNonLocalContinues.set(labelText, labelMarker);
108970
108970
  }
108971
108971
  }
108972
- function processLabeledJumps(table, isBreak, loopResultName, outerLoop, caseClauses) {
108973
- if (!table) {
108972
+ function processLabeledJumps(table2, isBreak, loopResultName, outerLoop, caseClauses) {
108973
+ if (!table2) {
108974
108974
  return;
108975
108975
  }
108976
- table.forEach((labelMarker, labelText) => {
108976
+ table2.forEach((labelMarker, labelText) => {
108977
108977
  const statements = [];
108978
108978
  if (!outerLoop || outerLoop.labels && outerLoop.labels.get(labelText)) {
108979
108979
  const label = factory2.createIdentifier(labelText);
@@ -208234,7 +208234,7 @@ Could not find "${i7}"`);
208234
208234
  cwd: t7
208235
208235
  });
208236
208236
  }(function getPkgManager() {
208237
- var e10 = "bun/1.1.44 npm/? node/v22.6.0 linux x64";
208237
+ var e10 = "bun/1.1.45 npm/? node/v22.6.0 linux x64";
208238
208238
  if (e10.startsWith("yarn")) {
208239
208239
  return "yarn";
208240
208240
  }
@@ -209465,7 +209465,7 @@ ${Bt.cyan(Yt)}
209465
209465
  code: "ENOENT"
209466
209466
  }), getPathInfo = (e9, t7) => {
209467
209467
  var r6 = t7.colon || or;
209468
- 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.13.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.uWHDBvG5O7:/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)];
209468
+ 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.13.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.ZLql98lEly:/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)];
209469
209469
  var n6 = nr ? t7.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
209470
209470
  var a5 = nr ? n6.split(r6) : [""];
209471
209471
  if (nr) {
@@ -212602,7 +212602,7 @@ ${whileRunning(e9)}`;
212602
212602
  };
212603
212603
  ni = Object.assign(async function _main() {
212604
212604
  var e9 = new Cli({
212605
- binaryVersion: "1.0.6-pr08e3b3ff",
212605
+ binaryVersion: "1.0.6-pr4d01b3b1",
212606
212606
  binaryLabel: "gql.tada CLI",
212607
212607
  binaryName: "gql.tada"
212608
212608
  });
@@ -220192,7 +220192,7 @@ var require_lib4 = __commonJS((exports, module) => {
220192
220192
  var rRel = new RegExp(`^\\.${rSlash.source}`);
220193
220193
  var getNotFoundError2 = (cmd2) => Object.assign(new Error(`not found: ${cmd2}`), { code: "ENOENT" });
220194
220194
  var getPathInfo2 = (cmd2, {
220195
- 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.13.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.uWHDBvG5O7:/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",
220195
+ 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.13.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.ZLql98lEly:/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",
220196
220196
  pathExt: optPathExt = process.env.PATHEXT,
220197
220197
  delimiter: optDelimiter = delimiter
220198
220198
  }) => {
@@ -220396,7 +220396,7 @@ var require_lib5 = __commonJS((exports, module) => {
220396
220396
  let pathToInitial;
220397
220397
  try {
220398
220398
  pathToInitial = which.sync(initialCmd, {
220399
- 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.13.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.uWHDBvG5O7:/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",
220399
+ 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.13.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.ZLql98lEly:/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",
220400
220400
  pathext: options.env && findInObject(options.env, "PATHEXT") || process.env.PATHEXT
220401
220401
  }).toLowerCase();
220402
220402
  } catch (err) {
@@ -221113,7 +221113,7 @@ var require_lib6 = __commonJS((exports, module) => {
221113
221113
  var rRel = new RegExp(`^\\.${rSlash.source}`);
221114
221114
  var getNotFoundError2 = (cmd2) => Object.assign(new Error(`not found: ${cmd2}`), { code: "ENOENT" });
221115
221115
  var getPathInfo2 = (cmd2, {
221116
- 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.13.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.uWHDBvG5O7:/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",
221116
+ 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.13.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.ZLql98lEly:/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",
221117
221117
  pathExt: optPathExt = process.env.PATHEXT,
221118
221118
  delimiter: optDelimiter = delimiter
221119
221119
  }) => {
@@ -234988,7 +234988,7 @@ var require_which2 = __commonJS((exports, module) => {
234988
234988
  const colon = opt2.colon || COLON;
234989
234989
  const pathEnv = cmd2.match(/\//) || isWindows2 && cmd2.match(/\\/) ? [""] : [
234990
234990
  ...isWindows2 ? [process.cwd()] : [],
234991
- ...(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.13.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.uWHDBvG5O7:/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)
234991
+ ...(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.13.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.ZLql98lEly:/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)
234992
234992
  ];
234993
234993
  const pathExtExe = isWindows2 ? opt2.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
234994
234994
  const pathExt = isWindows2 ? pathExtExe.split(colon) : [""];
@@ -249498,57 +249498,6 @@ ${F4}`;
249498
249498
  exports.createFetch = createFetch, exports.createProxy = createProxy, exports.fetch = fetch2;
249499
249499
  });
249500
249500
 
249501
- // ../../node_modules/slugify/slugify.js
249502
- var require_slugify = __commonJS((exports, module) => {
249503
- (function(name2, root, factory) {
249504
- if (typeof exports === "object") {
249505
- module.exports = factory();
249506
- module.exports["default"] = factory();
249507
- } else if (typeof define === "function" && define.amd) {
249508
- define(factory);
249509
- } else {
249510
- root[name2] = factory();
249511
- }
249512
- })("slugify", exports, function() {
249513
- var charMap = JSON.parse('{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E\'","Ը":"Y\'","Թ":"T\'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C\'","Կ":"K","Հ":"H","Ձ":"D\'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R\'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P\'","Ք":"Q\'","Օ":"O\'\'","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"\'","’":"\'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}');
249514
- var locales = JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');
249515
- function replace(string, options) {
249516
- if (typeof string !== "string") {
249517
- throw new Error("slugify: string argument expected");
249518
- }
249519
- options = typeof options === "string" ? { replacement: options } : options || {};
249520
- var locale = locales[options.locale] || {};
249521
- var replacement = options.replacement === undefined ? "-" : options.replacement;
249522
- var trim = options.trim === undefined ? true : options.trim;
249523
- var slug = string.normalize().split("").reduce(function(result, ch) {
249524
- var appendChar = locale[ch];
249525
- if (appendChar === undefined)
249526
- appendChar = charMap[ch];
249527
- if (appendChar === undefined)
249528
- appendChar = ch;
249529
- if (appendChar === replacement)
249530
- appendChar = " ";
249531
- return result + appendChar.replace(options.remove || /[^\w\s$*_+~.()'"!\-:@]+/g, "");
249532
- }, "");
249533
- if (options.strict) {
249534
- slug = slug.replace(/[^A-Za-z0-9\s]/g, "");
249535
- }
249536
- if (trim) {
249537
- slug = slug.trim();
249538
- }
249539
- slug = slug.replace(/\s+/g, replacement);
249540
- if (options.lower) {
249541
- slug = slug.toLowerCase();
249542
- }
249543
- return slug;
249544
- }
249545
- replace.extend = function(customMap) {
249546
- Object.assign(charMap, customMap);
249547
- };
249548
- return replace;
249549
- });
249550
- });
249551
-
249552
249501
  // ../../node_modules/yaml/dist/nodes/identity.js
249553
249502
  var require_identity = __commonJS((exports) => {
249554
249503
  var ALIAS = Symbol.for("yaml.alias");
@@ -256435,6 +256384,57 @@ var require_public_api = __commonJS((exports) => {
256435
256384
  exports.stringify = stringify3;
256436
256385
  });
256437
256386
 
256387
+ // ../../node_modules/slugify/slugify.js
256388
+ var require_slugify = __commonJS((exports, module) => {
256389
+ (function(name2, root, factory) {
256390
+ if (typeof exports === "object") {
256391
+ module.exports = factory();
256392
+ module.exports["default"] = factory();
256393
+ } else if (typeof define === "function" && define.amd) {
256394
+ define(factory);
256395
+ } else {
256396
+ root[name2] = factory();
256397
+ }
256398
+ })("slugify", exports, function() {
256399
+ var charMap = JSON.parse('{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E\'","Ը":"Y\'","Թ":"T\'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C\'","Կ":"K","Հ":"H","Ձ":"D\'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R\'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P\'","Ք":"Q\'","Օ":"O\'\'","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"\'","’":"\'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}');
256400
+ var locales = JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');
256401
+ function replace(string, options) {
256402
+ if (typeof string !== "string") {
256403
+ throw new Error("slugify: string argument expected");
256404
+ }
256405
+ options = typeof options === "string" ? { replacement: options } : options || {};
256406
+ var locale = locales[options.locale] || {};
256407
+ var replacement = options.replacement === undefined ? "-" : options.replacement;
256408
+ var trim = options.trim === undefined ? true : options.trim;
256409
+ var slug = string.normalize().split("").reduce(function(result, ch) {
256410
+ var appendChar = locale[ch];
256411
+ if (appendChar === undefined)
256412
+ appendChar = charMap[ch];
256413
+ if (appendChar === undefined)
256414
+ appendChar = ch;
256415
+ if (appendChar === replacement)
256416
+ appendChar = " ";
256417
+ return result + appendChar.replace(options.remove || /[^\w\s$*_+~.()'"!\-:@]+/g, "");
256418
+ }, "");
256419
+ if (options.strict) {
256420
+ slug = slug.replace(/[^A-Za-z0-9\s]/g, "");
256421
+ }
256422
+ if (trim) {
256423
+ slug = slug.trim();
256424
+ }
256425
+ slug = slug.replace(/\s+/g, replacement);
256426
+ if (options.lower) {
256427
+ slug = slug.toLowerCase();
256428
+ }
256429
+ return slug;
256430
+ }
256431
+ replace.extend = function(customMap) {
256432
+ Object.assign(charMap, customMap);
256433
+ };
256434
+ return replace;
256435
+ });
256436
+ });
256437
+
256438
256438
  // ../utils/dist/environment.mjs
256439
256439
  import { join } from "node:path";
256440
256440
 
@@ -256743,6 +256743,9 @@ function yoctoSpinner(options) {
256743
256743
  return new YoctoSpinner(options);
256744
256744
  }
256745
256745
 
256746
+ // ../utils/dist/environment.mjs
256747
+ import TTYTable from "tty-table";
256748
+
256746
256749
  // ../../node_modules/zod/lib/index.mjs
256747
256750
  var util;
256748
256751
  (function(util2) {
@@ -267376,13 +267379,7 @@ async function writeEnv({
267376
267379
  if (!currentEnv) {
267377
267380
  currentEnv = {};
267378
267381
  }
267379
- let mergedEnv = deepmerge(pruneCurrentEnv(currentEnv, env2), env2);
267380
- if (isLocalOrbstackInstance(env2.SETTLEMINT_INSTANCE)) {
267381
- mergedEnv = {
267382
- ...mergedEnv,
267383
- NODE_TLS_REJECT_UNAUTHORIZED: "0"
267384
- };
267385
- }
267382
+ const mergedEnv = deepmerge(pruneCurrentEnv(currentEnv, env2), env2);
267386
267383
  await writeFile(envFile, stringify(mergedEnv));
267387
267384
  }));
267388
267385
  }
@@ -267419,17 +267416,6 @@ function pruneCurrentEnv(currentEnv, env2) {
267419
267416
  return true;
267420
267417
  }));
267421
267418
  }
267422
- function isLocalOrbstackInstance(instance) {
267423
- if (!instance) {
267424
- return false;
267425
- }
267426
- try {
267427
- const url = new URL(instance);
267428
- return url.hostname === "console.k8s.orb.local";
267429
- } catch (error) {
267430
- return false;
267431
- }
267432
- }
267433
267419
 
267434
267420
  // src/utils/telemetry.ts
267435
267421
  async function telemetry(data) {
@@ -267483,6 +267469,7 @@ var {
267483
267469
 
267484
267470
  // ../utils/dist/terminal.mjs
267485
267471
  import { spawn } from "node:child_process";
267472
+ import TTYTable2 from "tty-table";
267486
267473
  var ascii = () => console.log(magentaBright(`
267487
267474
  _________ __ __ .__ _____ .__ __
267488
267475
  / _____/ _____/ |__/ |_| | ____ / \\ |__| _____/ |_
@@ -267547,14 +267534,15 @@ function list(title, items) {
267547
267534
  const formatItems = (items2) => {
267548
267535
  return items2.map((item) => {
267549
267536
  if (Array.isArray(item)) {
267550
- return item.map((subItem) => ` • ${subItem}`).join(`
267537
+ return item.map((subItem) => ` • ${subItem}`).join(`
267551
267538
  `);
267552
267539
  }
267553
- return `• ${item}`;
267540
+ return ` • ${item}`;
267554
267541
  }).join(`
267555
267542
  `);
267556
267543
  };
267557
267544
  return note(`${title}:
267545
+
267558
267546
  ${formatItems(items)}`);
267559
267547
  }
267560
267548
  var outro = (msg) => {
@@ -267579,11 +267567,40 @@ ${error.stack}`));
267579
267567
  process.exit(1);
267580
267568
  }
267581
267569
  };
267570
+ function capitalizeFirstLetter(val) {
267571
+ return String(val).charAt(0).toUpperCase() + String(val).slice(1);
267572
+ }
267573
+ function camelCaseToWords(s) {
267574
+ const result = s.replace(/([a-z])([A-Z])/g, "$1 $2");
267575
+ const withSpaces = result.replace(/([A-Z])([a-z])/g, " $1$2");
267576
+ const capitalized = capitalizeFirstLetter(withSpaces);
267577
+ return capitalized.replace(/\s+/g, " ").trim();
267578
+ }
267579
+ function table(title, data, compact = true) {
267580
+ note(title);
267581
+ if (!data || data.length === 0) {
267582
+ note("No data to display");
267583
+ return;
267584
+ }
267585
+ const columnKeys = Object.keys(data[0]);
267586
+ const headers = columnKeys.map((key) => ({
267587
+ value: key,
267588
+ alias: whiteBright(camelCaseToWords(key)),
267589
+ headerAlign: "left",
267590
+ headerColor: "",
267591
+ align: "left"
267592
+ }));
267593
+ const config3 = {
267594
+ compact
267595
+ };
267596
+ const ttyTable = TTYTable2(headers, data, config3);
267597
+ console.log(ttyTable.render());
267598
+ }
267582
267599
  // package.json
267583
267600
  var package_default = {
267584
267601
  name: "@settlemint/sdk-cli",
267585
267602
  description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
267586
- version: "1.0.6-pr08e3b3ff",
267603
+ version: "1.0.6-pr4d01b3b1",
267587
267604
  type: "module",
267588
267605
  private: false,
267589
267606
  license: "FSL-1.1-MIT",
@@ -267624,7 +267641,8 @@ var package_default = {
267624
267641
  },
267625
267642
  dependencies: {
267626
267643
  hardhat: "2.22.18",
267627
- tinyexec: "0.3.2"
267644
+ tinyexec: "0.3.2",
267645
+ "tty-table": "4.2.3"
267628
267646
  },
267629
267647
  devDependencies: {
267630
267648
  "@types/semver": "7.5.8",
@@ -267638,10 +267656,11 @@ var package_default = {
267638
267656
  "@inquirer/input": "4.1.3",
267639
267657
  "@inquirer/password": "4.0.6",
267640
267658
  "@inquirer/select": "4.0.6",
267641
- "@settlemint/sdk-js": "1.0.6-pr08e3b3ff",
267642
- "@settlemint/sdk-utils": "1.0.6-pr08e3b3ff",
267659
+ "@settlemint/sdk-js": "1.0.6-pr4d01b3b1",
267660
+ "@settlemint/sdk-utils": "1.0.6-pr4d01b3b1",
267643
267661
  "get-tsconfig": "4.8.1",
267644
- giget: "1.2.3"
267662
+ giget: "1.2.3",
267663
+ yaml: "2.7.0"
267645
267664
  },
267646
267665
  peerDependencies: {},
267647
267666
  engines: {
@@ -267753,9 +267772,18 @@ async function retryWhenFailed(fn, maxRetries = 5, initialSleepTime = 1000, stop
267753
267772
  }
267754
267773
  throw new Error("Retry failed");
267755
267774
  }
267756
- function capitalizeFirstLetter(val) {
267775
+ function capitalizeFirstLetter2(val) {
267757
267776
  return String(val).charAt(0).toUpperCase() + String(val).slice(1);
267758
267777
  }
267778
+ function camelCaseToWords2(s) {
267779
+ const result = s.replace(/([a-z])([A-Z])/g, "$1 $2");
267780
+ const withSpaces = result.replace(/([A-Z])([a-z])/g, " $1$2");
267781
+ const capitalized = capitalizeFirstLetter2(withSpaces);
267782
+ return capitalized.replace(/\s+/g, " ").trim();
267783
+ }
267784
+ function replaceUnderscoresAndHyphensWithSpaces(s) {
267785
+ return s.replace(/[-_]/g, " ");
267786
+ }
267759
267787
 
267760
267788
  // src/utils/config.ts
267761
267789
  var CONFIG_DIR = join6(homedir(), ".config", "settlemint");
@@ -267787,9 +267815,6 @@ async function storeCredentials(token, instance) {
267787
267815
  personalAccessToken: token,
267788
267816
  lastUsed: new Date().toISOString()
267789
267817
  };
267790
- if (!config3.defaultInstance || Object.keys(config3.instances).length === 1) {
267791
- config3.defaultInstance = instance;
267792
- }
267793
267818
  await writeConfig(config3);
267794
267819
  }
267795
267820
  async function getInstanceCredentials(instance, throwOnMissingInstance = true) {
@@ -267810,24 +267835,9 @@ async function getInstances() {
267810
267835
  const config3 = await readConfig();
267811
267836
  return Object.keys(config3.instances);
267812
267837
  }
267813
- async function getDefaultInstance() {
267814
- const config3 = await readConfig();
267815
- return config3.defaultInstance;
267816
- }
267817
- async function setDefaultInstance(instance) {
267818
- const config3 = await readConfig();
267819
- if (!config3.instances[instance]) {
267820
- throw new Error(`Instance ${instance} is not configured`);
267821
- }
267822
- config3.defaultInstance = instance;
267823
- await writeConfig(config3);
267824
- }
267825
267838
  async function removeCredentials(instance) {
267826
267839
  const config3 = await readConfig();
267827
267840
  delete config3.instances[instance];
267828
- if (config3.defaultInstance === instance) {
267829
- config3.defaultInstance = undefined;
267830
- }
267831
267841
  await writeConfig(config3);
267832
267842
  }
267833
267843
 
@@ -267999,6 +268009,7 @@ async function installPackage(names, options = {}) {
267999
268009
  }
268000
268010
 
268001
268011
  // ../utils/dist/package-manager.mjs
268012
+ import TTYTable3 from "tty-table";
268002
268013
  var import_package_json = __toESM(require_lib12(), 1);
268003
268014
  var import_package_json2 = __toESM(require_lib12(), 1);
268004
268015
  async function projectRoot3(fallbackToCwd = false, cwd) {
@@ -268242,7 +268253,7 @@ async function codegenTheGraph(env2, subgraphNames) {
268242
268253
  "x-auth-token": accessToken
268243
268254
  }
268244
268255
  });
268245
- const nameSuffix = capitalizeFirstLetter(name2);
268256
+ const nameSuffix = capitalizeFirstLetter2(name2);
268246
268257
  const graphqlClientVariable = getVariableName(`theGraphClient${nameSuffix}`);
268247
268258
  const graphqlVariable = getVariableName(`theGraphGraphql${nameSuffix}`);
268248
268259
  template.push(...[
@@ -271312,8 +271323,7 @@ async function instancePrompt(env2, accept, freeTextInput = false, isCi = is_in_
271312
271323
  if (defaultPossible) {
271313
271324
  return sanitizeInstanceUrl(defaultInstance);
271314
271325
  }
271315
- const defaultLoginInstance = await getDefaultInstance();
271316
- const defaultPromptInstance = defaultInstance ?? defaultLoginInstance ?? "https://console.settlemint.com";
271326
+ const defaultPromptInstance = defaultInstance ?? (knownInstances.length > 0 ? knownInstances[0] : "https://console.settlemint.com");
271317
271327
  if (isCi) {
271318
271328
  return sanitizeInstanceUrl(defaultPromptInstance);
271319
271329
  }
@@ -271381,11 +271391,12 @@ async function workspacePrompt(env2, workspaces, accept) {
271381
271391
  }
271382
271392
 
271383
271393
  // src/spinners/services.spinner.ts
271384
- async function servicesSpinner(settlemint, application) {
271394
+ async function servicesSpinner(settlemint, applicationUniqueName, types2) {
271385
271395
  return spinner({
271386
271396
  startMessage: "Loading your services",
271387
271397
  stopMessage: "Loaded your services",
271388
271398
  task: async () => {
271399
+ const shouldFetch = (type4) => !types2 || types2?.includes(type4);
271389
271400
  const [
271390
271401
  blockchainNetworks,
271391
271402
  blockchainNodes,
@@ -271396,14 +271407,14 @@ async function servicesSpinner(settlemint, application) {
271396
271407
  insights,
271397
271408
  customDeployments
271398
271409
  ] = await Promise.all([
271399
- settlemint.blockchainNetwork.list(application.uniqueName),
271400
- settlemint.blockchainNode.list(application.uniqueName),
271401
- settlemint.middleware.list(application.uniqueName),
271402
- settlemint.integrationTool.list(application.uniqueName),
271403
- settlemint.storage.list(application.uniqueName),
271404
- settlemint.privateKey.list(application.uniqueName),
271405
- settlemint.insights.list(application.uniqueName),
271406
- settlemint.customDeployment.list(application.uniqueName)
271410
+ shouldFetch("blockchain-network") ? settlemint.blockchainNetwork.list(applicationUniqueName) : Promise.resolve([]),
271411
+ shouldFetch("blockchain-node") ? settlemint.blockchainNode.list(applicationUniqueName) : Promise.resolve([]),
271412
+ shouldFetch("middleware") ? settlemint.middleware.list(applicationUniqueName) : Promise.resolve([]),
271413
+ shouldFetch("integration-tool") ? settlemint.integrationTool.list(applicationUniqueName) : Promise.resolve([]),
271414
+ shouldFetch("storage") ? settlemint.storage.list(applicationUniqueName) : Promise.resolve([]),
271415
+ shouldFetch("private-key") ? settlemint.privateKey.list(applicationUniqueName) : Promise.resolve([]),
271416
+ shouldFetch("insights") ? settlemint.insights.list(applicationUniqueName) : Promise.resolve([]),
271417
+ shouldFetch("custom-deployment") ? settlemint.customDeployment.list(applicationUniqueName) : Promise.resolve([])
271407
271418
  ]);
271408
271419
  return {
271409
271420
  blockchainNetworks,
@@ -272447,6 +272458,9 @@ var BlockchainNetworkFragment = graphql(`
272447
272458
  uniqueName
272448
272459
  name
272449
272460
  status
272461
+ healthStatus
272462
+ provider
272463
+ region
272450
272464
  blockchainNodes {
272451
272465
  ... on BlockchainNode {
272452
272466
  id
@@ -272594,6 +272608,9 @@ var BlockchainNodeFragment = graphql(`
272594
272608
  uniqueName
272595
272609
  name
272596
272610
  status
272611
+ healthStatus
272612
+ provider
272613
+ region
272597
272614
  isEvm
272598
272615
  endpoints {
272599
272616
  id
@@ -272715,6 +272732,9 @@ var CustomDeploymentFragment = graphql(`
272715
272732
  uniqueName
272716
272733
  name
272717
272734
  status
272735
+ healthStatus
272736
+ provider
272737
+ region
272718
272738
  endpoints {
272719
272739
  id
272720
272740
  label
@@ -272841,6 +272861,11 @@ var LoadBalancerFragment = graphql(`
272841
272861
  fragment LoadBalancer on LoadBalancer {
272842
272862
  id
272843
272863
  uniqueName
272864
+ name
272865
+ status
272866
+ healthStatus
272867
+ provider
272868
+ region
272844
272869
  }
272845
272870
  `);
272846
272871
  var getLoadBalancer = graphql(`
@@ -272865,6 +272890,9 @@ var InsightsFragment = graphql(`
272865
272890
  uniqueName
272866
272891
  name
272867
272892
  status
272893
+ healthStatus
272894
+ provider
272895
+ region
272868
272896
  insightsCategory
272869
272897
  endpoints {
272870
272898
  id
@@ -272972,6 +273000,9 @@ var IntegrationFragment = graphql(`
272972
273000
  uniqueName
272973
273001
  name
272974
273002
  status
273003
+ healthStatus
273004
+ provider
273005
+ region
272975
273006
  integrationType
272976
273007
  endpoints {
272977
273008
  id
@@ -273069,6 +273100,9 @@ var StorageFragment = graphql(`
273069
273100
  uniqueName
273070
273101
  name
273071
273102
  status
273103
+ healthStatus
273104
+ provider
273105
+ region
273072
273106
  storageProtocol
273073
273107
  endpoints {
273074
273108
  id
@@ -273166,6 +273200,9 @@ var MiddlewareFragment = graphql(`
273166
273200
  uniqueName
273167
273201
  name
273168
273202
  status
273203
+ healthStatus
273204
+ provider
273205
+ region
273169
273206
  interface
273170
273207
  entityVersion
273171
273208
  serviceUrl
@@ -273350,6 +273387,9 @@ var PrivateKeyFragment = graphql(`
273350
273387
  name
273351
273388
  privateKeyType
273352
273389
  status
273390
+ healthStatus
273391
+ provider
273392
+ region
273353
273393
  }
273354
273394
  `);
273355
273395
  var getPrivateKeys = graphql(`
@@ -273566,7 +273606,7 @@ function connectCommand() {
273566
273606
  const workspace = await workspacePrompt(env2, workspaces, acceptDefaults);
273567
273607
  const application = await applicationPrompt(env2, workspace?.applications ?? [], acceptDefaults);
273568
273608
  const aatToken = await applicationAccessTokenPrompt(env2, application, settlemint, acceptDefaults);
273569
- const { middlewares, integrationTools, storages, privateKeys, insights, customDeployments, blockchainNodes } = await servicesSpinner(settlemint, application);
273609
+ const { middlewares, integrationTools, storages, privateKeys, insights, customDeployments, blockchainNodes } = await servicesSpinner(settlemint, application.uniqueName);
273570
273610
  const blockchainNode = await blockchainNodePrompt({
273571
273611
  env: env2,
273572
273612
  nodes: blockchainNodes,
@@ -273614,20 +273654,68 @@ function connectCommand() {
273614
273654
  });
273615
273655
  if (acceptDefaults) {
273616
273656
  const selectedServices = [
273617
- `Workspace: ${workspace.name} (${workspace.uniqueName})`,
273618
- `Application: ${application.name} (${application.uniqueName})`,
273619
- blockchainNode && `Blockchain Network: ${blockchainNode?.blockchainNetwork?.name} (${blockchainNode?.blockchainNetwork?.uniqueName})`,
273620
- blockchainNode && `Blockchain Node: ${blockchainNode?.name} (${blockchainNode?.uniqueName})`,
273621
- hasura && `Hasura: ${hasura?.name} (${hasura?.uniqueName})`,
273622
- thegraph && `TheGraph: ${thegraph?.name} (${thegraph?.uniqueName})`,
273623
- portal && `Portal: ${portal?.name} (${portal?.uniqueName})`,
273624
- ipfs && `IPFS: ${ipfs?.name} (${ipfs?.uniqueName})`,
273625
- minio && `MinIO: ${minio?.name} (${minio?.uniqueName})`,
273626
- hdPrivateKey && `HD Private Key: ${hdPrivateKey?.name} (${hdPrivateKey?.uniqueName})`,
273627
- cDeployment && `Custom Deployment: ${cDeployment?.name} (${cDeployment?.uniqueName})`,
273628
- blockscout && `Blockscout: ${blockscout?.name} (${blockscout?.uniqueName})`
273657
+ {
273658
+ type: "Workspace",
273659
+ name: workspace.name,
273660
+ uniqueName: workspace.uniqueName
273661
+ },
273662
+ {
273663
+ type: "Application",
273664
+ name: application.name,
273665
+ uniqueName: application.uniqueName
273666
+ },
273667
+ blockchainNode && {
273668
+ type: "Blockchain Network",
273669
+ name: blockchainNode.blockchainNetwork?.name,
273670
+ uniqueName: blockchainNode.blockchainNetwork?.uniqueName
273671
+ },
273672
+ blockchainNode && {
273673
+ type: "Blockchain Node",
273674
+ name: blockchainNode.name,
273675
+ uniqueName: blockchainNode.uniqueName
273676
+ },
273677
+ hasura && {
273678
+ type: "Hasura",
273679
+ name: hasura.name,
273680
+ uniqueName: hasura.uniqueName
273681
+ },
273682
+ thegraph && {
273683
+ type: "TheGraph",
273684
+ name: thegraph.name,
273685
+ uniqueName: thegraph.uniqueName
273686
+ },
273687
+ portal && {
273688
+ type: "Portal",
273689
+ name: portal.name,
273690
+ uniqueName: portal.uniqueName
273691
+ },
273692
+ ipfs && {
273693
+ type: "IPFS",
273694
+ name: ipfs.name,
273695
+ uniqueName: ipfs.uniqueName
273696
+ },
273697
+ minio && {
273698
+ type: "MinIO",
273699
+ name: minio.name,
273700
+ uniqueName: minio.uniqueName
273701
+ },
273702
+ hdPrivateKey && {
273703
+ type: "HD Private Key",
273704
+ name: hdPrivateKey.name,
273705
+ uniqueName: hdPrivateKey.uniqueName
273706
+ },
273707
+ cDeployment && {
273708
+ type: "Custom Deployment",
273709
+ name: cDeployment.name,
273710
+ uniqueName: cDeployment.uniqueName
273711
+ },
273712
+ blockscout && {
273713
+ type: "Blockscout",
273714
+ name: blockscout.name,
273715
+ uniqueName: blockscout.uniqueName
273716
+ }
273629
273717
  ].filter(Boolean);
273630
- list("Selected services", selectedServices);
273718
+ table("Selected services", selectedServices);
273631
273719
  }
273632
273720
  await writeEnvSpinner(!!prod, {
273633
273721
  SETTLEMINT_ACCESS_TOKEN: aatToken,
@@ -274510,7 +274598,7 @@ function loginCommand() {
274510
274598
  command: "login --token-stdin --accept-defaults",
274511
274599
  commandPrefix: "cat ~/my_token.txt | "
274512
274600
  }
274513
- ])).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) => {
274601
+ ])).option("-a, --accept-defaults", "Accept the default and previously set values").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, tokenStdin, instance }, cmd2) => {
274514
274602
  intro("Login to your SettleMint account");
274515
274603
  const autoAccept = !!acceptDefaults || !!tokenStdin;
274516
274604
  const env2 = await loadEnv(false, false);
@@ -274548,9 +274636,6 @@ function loginCommand() {
274548
274636
  cancel2(`Invalid personal access token for instance ${selectedInstance}`);
274549
274637
  }
274550
274638
  await storeCredentials(personalAccessToken, selectedInstance);
274551
- if (isDefault) {
274552
- await setDefaultInstance(selectedInstance);
274553
- }
274554
274639
  outro("Successfully logged in to SettleMint!");
274555
274640
  });
274556
274641
  }
@@ -274575,13 +274660,14 @@ function logoutCommand() {
274575
274660
  outro(`Successfully logged out from ${instance2}`);
274576
274661
  return;
274577
274662
  }
274578
- const defaultInstance = await getDefaultInstance();
274663
+ const env2 = await loadEnv(false, false);
274664
+ const defaultInstance = env2.SETTLEMINT_INSTANCE;
274579
274665
  const instance = await esm_default2({
274580
274666
  message: "Select the instance to logout from:",
274581
274667
  choices: instances.map((instance2) => ({
274582
274668
  value: instance2,
274583
274669
  label: instance2,
274584
- description: instance2 === defaultInstance ? "(default)" : undefined
274670
+ description: defaultInstance && instance2 === defaultInstance ? "(default)" : undefined
274585
274671
  }))
274586
274672
  });
274587
274673
  await removeCredentials(instance);
@@ -274609,17 +274695,25 @@ var SETTLEMINT_CLIENT_MAP = {
274609
274695
  "application access token": "applicationAccessToken"
274610
274696
  };
274611
274697
  var LABELS_MAP = {
274612
- application: { singular: "application", plural: "applications" },
274613
- workspace: { singular: "workspace", plural: "workspaces" },
274614
- "blockchain network": { singular: "blockchain network", plural: "blockchain networks" },
274615
- "blockchain node": { singular: "blockchain node", plural: "blockchain nodes" },
274616
- "custom deployment": { singular: "custom deployment", plural: "custom deployments" },
274617
- "private key": { singular: "private key", plural: "private keys" },
274618
- middleware: { singular: "middleware", plural: "middlewares" },
274619
- "integration tool": { singular: "integration tool", plural: "integration tools" },
274620
- storage: { singular: "storage", plural: "storage" },
274621
- insights: { singular: "insight", plural: "insights" },
274622
- "application access token": { singular: "application access token", plural: "application access tokens" }
274698
+ application: { singular: "application", plural: "applications", command: "app" },
274699
+ workspace: { singular: "workspace", plural: "workspaces", command: "workspace" },
274700
+ "blockchain network": {
274701
+ singular: "blockchain network",
274702
+ plural: "blockchain networks",
274703
+ command: "blockchain-network"
274704
+ },
274705
+ "blockchain node": { singular: "blockchain node", plural: "blockchain nodes", command: "blockchain-node" },
274706
+ "custom deployment": { singular: "custom deployment", plural: "custom deployments", command: "custom-deployment" },
274707
+ "private key": { singular: "private key", plural: "private keys", command: "private-key" },
274708
+ middleware: { singular: "middleware", plural: "middlewares", command: "middleware" },
274709
+ "integration tool": { singular: "integration tool", plural: "integration tools", command: "integration-tool" },
274710
+ storage: { singular: "storage", plural: "storage", command: "storage" },
274711
+ insights: { singular: "insight", plural: "insights", command: "insight" },
274712
+ "application access token": {
274713
+ singular: "application access token",
274714
+ plural: "application access tokens",
274715
+ command: "application-access-token"
274716
+ }
274623
274717
  };
274624
274718
 
274625
274719
  // src/commands/platform/utils/wait-for-completion.ts
@@ -274652,30 +274746,30 @@ async function waitForCompletion({
274652
274746
  const resource = await service.read(uniqueName);
274653
274747
  if (resource.status === "COMPLETED") {
274654
274748
  if (spinner2) {
274655
- spinner2.text = `${capitalizeFirstLetter(type4)} is ${getActionLabel(action)}`;
274749
+ spinner2.text = `${capitalizeFirstLetter2(type4)} is ${getActionLabel(action)}`;
274656
274750
  } else {
274657
- note(`${capitalizeFirstLetter(type4)} is ${getActionLabel(action)}`);
274751
+ note(`${capitalizeFirstLetter2(type4)} is ${getActionLabel(action)}`);
274658
274752
  }
274659
274753
  return true;
274660
274754
  }
274661
274755
  if (resource.status === "FAILED") {
274662
274756
  if (spinner2) {
274663
- spinner2.text = `${capitalizeFirstLetter(type4)} failed to ${getActionLabel(action)}`;
274757
+ spinner2.text = `${capitalizeFirstLetter2(type4)} failed to ${getActionLabel(action)}`;
274664
274758
  } else {
274665
- note(`${capitalizeFirstLetter(type4)} failed to ${getActionLabel(action)}`);
274759
+ note(`${capitalizeFirstLetter2(type4)} failed to ${getActionLabel(action)}`);
274666
274760
  }
274667
274761
  return true;
274668
274762
  }
274669
274763
  if (spinner2) {
274670
- spinner2.text = `${capitalizeFirstLetter(type4)} is not ready yet (status: ${resource.status})`;
274764
+ spinner2.text = `${capitalizeFirstLetter2(type4)} is not ready yet (status: ${resource.status})`;
274671
274765
  } else {
274672
- note(`${capitalizeFirstLetter(type4)} is not ready yet (status: ${resource.status})`);
274766
+ note(`${capitalizeFirstLetter2(type4)} is not ready yet (status: ${resource.status})`);
274673
274767
  }
274674
274768
  } catch (error5) {
274675
274769
  if (spinner2) {
274676
- spinner2.text = `${capitalizeFirstLetter(type4)} is not ready yet (status: UNKNOWN)`;
274770
+ spinner2.text = `${capitalizeFirstLetter2(type4)} is not ready yet (status: UNKNOWN)`;
274677
274771
  } else {
274678
- note(`${capitalizeFirstLetter(type4)} is not ready yet (status: UNKNOWN)`);
274772
+ note(`${capitalizeFirstLetter2(type4)} is not ready yet (status: UNKNOWN)`);
274679
274773
  }
274680
274774
  }
274681
274775
  if (Date.now() - startTime > maxTimeout) {
@@ -274690,7 +274784,7 @@ async function waitForCompletion({
274690
274784
  return await showSpinner();
274691
274785
  } catch (error5) {
274692
274786
  if (restartIfTimeout && error5 instanceof TimeoutError) {
274693
- note(`Restarting ${capitalizeFirstLetter(type4)}`);
274787
+ note(`Restarting ${capitalizeFirstLetter2(type4)}`);
274694
274788
  await service.restart(uniqueName);
274695
274789
  return showSpinner();
274696
274790
  }
@@ -274811,7 +274905,7 @@ function getCreateCommand({
274811
274905
  const showSpinner = (task) => spinner({
274812
274906
  startMessage: `Creating ${type4}`,
274813
274907
  task,
274814
- stopMessage: `${capitalizeFirstLetter(type4)} created`
274908
+ stopMessage: `${capitalizeFirstLetter2(type4)} created`
274815
274909
  });
274816
274910
  const { result, waitFor, mapDefaultEnv } = await createFunction(settlemint, env2, showSpinner);
274817
274911
  if (wait) {
@@ -274823,7 +274917,7 @@ function getCreateCommand({
274823
274917
  restartIfTimeout
274824
274918
  });
274825
274919
  if (waitFor) {
274826
- outro(`${capitalizeFirstLetter(waitFor.resourceType)} ${waitFor.name} created successfully`);
274920
+ outro(`${capitalizeFirstLetter2(waitFor.resourceType)} ${waitFor.name} created successfully`);
274827
274921
  }
274828
274922
  }
274829
274923
  if (isDefault && typeof mapDefaultEnv === "function") {
@@ -274845,9 +274939,9 @@ function getCreateCommand({
274845
274939
  newEnv.SETTLEMINT_BLOCKCHAIN_NETWORK = (await settlemint.blockchainNode.read(newEnv.SETTLEMINT_BLOCKCHAIN_NODE)).blockchainNetwork.uniqueName;
274846
274940
  }
274847
274941
  await writeEnvSpinner(!!prod, newEnv);
274848
- note(`${capitalizeFirstLetter(type4)} ${result.name} set as default`);
274942
+ note(`${capitalizeFirstLetter2(type4)} ${result.name} set as default`);
274849
274943
  }
274850
- outro(`${capitalizeFirstLetter(type4)} ${result.name} created successfully`);
274944
+ outro(`${capitalizeFirstLetter2(type4)} ${result.name} created successfully`);
274851
274945
  });
274852
274946
  return cmd2;
274853
274947
  }
@@ -276046,7 +276140,7 @@ function getDeleteCommand({
276046
276140
  task: async () => {
276047
276141
  return deleteFunction(settlemint, serviceUniqueName);
276048
276142
  },
276049
- stopMessage: `${capitalizeFirstLetter(type4)} deleted`
276143
+ stopMessage: `${capitalizeFirstLetter2(type4)} deleted`
276050
276144
  });
276051
276145
  if (isDefaultUniqueName) {
276052
276146
  const newEnv = {
@@ -276055,9 +276149,9 @@ function getDeleteCommand({
276055
276149
  ...mapDefaultEnv(env2)
276056
276150
  };
276057
276151
  await writeEnvSpinner(!!prod, newEnv);
276058
- note(`${capitalizeFirstLetter(type4)} removed as default`);
276152
+ note(`${capitalizeFirstLetter2(type4)} removed as default`);
276059
276153
  }
276060
- outro(`${capitalizeFirstLetter(type4)} ${result.name} deleted successfully`);
276154
+ outro(`${capitalizeFirstLetter2(type4)} ${result.name} deleted successfully`);
276061
276155
  });
276062
276156
  }
276063
276157
 
@@ -276140,12 +276234,12 @@ function getRestartCommand({
276140
276234
  task: async () => {
276141
276235
  return restartFunction(settlemint, serviceUniqueName);
276142
276236
  },
276143
- stopMessage: `${capitalizeFirstLetter(type4)} restart initiated`
276237
+ stopMessage: `${capitalizeFirstLetter2(type4)} restart initiated`
276144
276238
  });
276145
276239
  if (wait) {
276146
276240
  await waitForCompletion({ settlemint, type: type4, uniqueName: serviceUniqueName, action: "restart" });
276147
276241
  }
276148
- outro(`${capitalizeFirstLetter(type4)} ${result.name} restart initiated successfully`);
276242
+ outro(`${capitalizeFirstLetter2(type4)} ${result.name} restart initiated successfully`);
276149
276243
  });
276150
276244
  }
276151
276245
 
@@ -276341,21 +276435,320 @@ function configCommand() {
276341
276435
  const platformConfig = await settlemint.platform.config();
276342
276436
  const useCases = getUseCases(platformConfig);
276343
276437
  const starterkits = getStarterkits(platformConfig);
276344
- list("Templates (Starterkits)", starterkits.map((starterkit) => starterkit.id).sort());
276345
- list("Use cases (Smart Contract Sets)", useCases.map((useCase) => useCase.id).sort());
276346
- list("Providers and regions", platformConfig.deploymentEngineTargets.filter((provider) => !provider.disabled).sort((a8, b4) => a8.id.localeCompare(b4.id)).reduce((acc, provider) => {
276347
- acc.push(provider.id);
276348
- acc.push(provider.clusters.filter((cluster) => !cluster.disabled).map((region) => getRegionId(region.id)).sort());
276349
- return acc;
276350
- }, []));
276438
+ table("Templates (Starterkits)", starterkits.map((starterkit) => ({
276439
+ id: starterkit.id,
276440
+ name: starterkit.name
276441
+ })).sort((a8, b4) => a8.name.localeCompare(b4.name)));
276442
+ table("Use cases (Smart Contract Sets)", useCases.map((useCase) => ({
276443
+ id: useCase.id,
276444
+ name: useCase.name
276445
+ })).sort((a8, b4) => a8.name.localeCompare(b4.name)));
276446
+ table("Providers and regions", platformConfig.deploymentEngineTargets.filter((provider) => !provider.disabled).flatMap((provider) => provider.clusters.filter((cluster) => !cluster.disabled).map((region) => ({
276447
+ providerId: provider.id,
276448
+ regionId: getRegionId(region.id),
276449
+ providerName: provider.name,
276450
+ regionName: region.name
276451
+ }))).sort((a8, b4) => a8.providerId.localeCompare(b4.providerId) || a8.regionId.localeCompare(b4.regionId)));
276351
276452
  list("Pre-deployed abis (Smart Contract Portal)", platformConfig.preDeployedContracts.sort());
276352
276453
  outro("Platform configuration retrieved");
276353
276454
  });
276354
276455
  }
276355
276456
 
276457
+ // src/commands/platform/utils/formatting/format-service-sub-type.ts
276458
+ function formatServiceSubType(service, printToTerminal = true) {
276459
+ if ("__typename" in service && typeof service.__typename === "string") {
276460
+ return printToTerminal ? camelCaseToWords2(service.__typename) : service.__typename;
276461
+ }
276462
+ return printToTerminal ? "Unknown" : "Unknown";
276463
+ }
276464
+
276465
+ // src/spinners/applications.spinner.ts
276466
+ async function applicationsSpinner(settlemint, workspaceUniqueName) {
276467
+ return spinner({
276468
+ startMessage: "Loading your applications",
276469
+ stopMessage: "Loaded your applications",
276470
+ task: async () => {
276471
+ return settlemint.application.list(workspaceUniqueName);
276472
+ }
276473
+ });
276474
+ }
276475
+
276476
+ // src/utils/get-cluster-service-platform-url.ts
276477
+ function getClusterServicePlatformUrl(instance, application, service, serviceType) {
276478
+ return new URL(`workspaces/${encodeURIComponent(application.workspace.id)}/applications/${encodeURIComponent(application.id)}/${getUrlPathForService(service, serviceType)}`, instance).toString();
276479
+ }
276480
+ function getUrlPathForService(service, serviceType) {
276481
+ if (serviceType === "blockchain-network") {
276482
+ return `networks/${encodeURIComponent(service.id)}/details`;
276483
+ }
276484
+ if (serviceType === "blockchain-node") {
276485
+ return `nodes/${encodeURIComponent(service.id)}/details`;
276486
+ }
276487
+ if (serviceType === "middleware") {
276488
+ return `middlewares/${encodeURIComponent(service.id)}/details`;
276489
+ }
276490
+ if (serviceType === "integration-tool") {
276491
+ return `integration/${encodeURIComponent(service.id)}/details`;
276492
+ }
276493
+ if (serviceType === "private-key") {
276494
+ return `keyvault/${encodeURIComponent(service.id)}/details`;
276495
+ }
276496
+ if (serviceType === "storage") {
276497
+ return `storage/${encodeURIComponent(service.id)}/details`;
276498
+ }
276499
+ if (serviceType === "insights") {
276500
+ return `insights/${encodeURIComponent(service.id)}/details`;
276501
+ }
276502
+ return "";
276503
+ }
276504
+
276505
+ // ../../node_modules/yaml/dist/index.js
276506
+ var composer = require_composer();
276507
+ var Document = require_Document();
276508
+ var Schema = require_Schema();
276509
+ var errors2 = require_errors3();
276510
+ var Alias = require_Alias();
276511
+ var identity3 = require_identity();
276512
+ var Pair = require_Pair();
276513
+ var Scalar = require_Scalar();
276514
+ var YAMLMap = require_YAMLMap();
276515
+ var YAMLSeq = require_YAMLSeq();
276516
+ var cst = require_cst();
276517
+ var lexer = require_lexer2();
276518
+ var lineCounter = require_line_counter();
276519
+ var parser = require_parser2();
276520
+ var publicApi = require_public_api();
276521
+ var visit2 = require_visit();
276522
+ var $Composer = composer.Composer;
276523
+ var $Document = Document.Document;
276524
+ var $Schema = Schema.Schema;
276525
+ var $YAMLError = errors2.YAMLError;
276526
+ var $YAMLParseError = errors2.YAMLParseError;
276527
+ var $YAMLWarning = errors2.YAMLWarning;
276528
+ var $Alias = Alias.Alias;
276529
+ var $isAlias = identity3.isAlias;
276530
+ var $isCollection = identity3.isCollection;
276531
+ var $isDocument = identity3.isDocument;
276532
+ var $isMap = identity3.isMap;
276533
+ var $isNode = identity3.isNode;
276534
+ var $isPair = identity3.isPair;
276535
+ var $isScalar = identity3.isScalar;
276536
+ var $isSeq = identity3.isSeq;
276537
+ var $Pair = Pair.Pair;
276538
+ var $Scalar = Scalar.Scalar;
276539
+ var $YAMLMap = YAMLMap.YAMLMap;
276540
+ var $YAMLSeq = YAMLSeq.YAMLSeq;
276541
+ var $Lexer = lexer.Lexer;
276542
+ var $LineCounter = lineCounter.LineCounter;
276543
+ var $Parser = parser.Parser;
276544
+ var $parse = publicApi.parse;
276545
+ var $parseAllDocuments = publicApi.parseAllDocuments;
276546
+ var $parseDocument = publicApi.parseDocument;
276547
+ var $stringify = publicApi.stringify;
276548
+ var $visit = visit2.visit;
276549
+ var $visitAsync = visit2.visitAsync;
276550
+
276551
+ // src/commands/platform/utils/formatting/format-health-status.ts
276552
+ function formatHealthStatus(healthStatus, printToTerminal = true) {
276553
+ if (healthStatus === "HEALTHY") {
276554
+ return printToTerminal ? greenBright("Healthy") : "Healthy";
276555
+ }
276556
+ const label = `Unhealthy (${camelCaseToWords2(replaceUnderscoresAndHyphensWithSpaces(healthStatus))})`;
276557
+ return printToTerminal ? yellowBright(label) : label;
276558
+ }
276559
+
276560
+ // src/commands/platform/utils/formatting/format-status.ts
276561
+ function formatStatus(status, printToTerminal = true) {
276562
+ const label = camelCaseToWords2(status.toLowerCase());
276563
+ if (status === "FAILED") {
276564
+ return printToTerminal ? redBright(label) : label;
276565
+ }
276566
+ if (status === "PAUSED" || status === "AUTO_PAUSED" || status === "PAUSING" || status === "AUTO_PAUSING") {
276567
+ return printToTerminal ? gray(label) : label;
276568
+ }
276569
+ if (status === "COMPLETED") {
276570
+ return printToTerminal ? greenBright(label) : label;
276571
+ }
276572
+ return printToTerminal ? yellowBright(label) : label;
276573
+ }
276574
+
276575
+ // src/commands/platform/application/services.ts
276576
+ var SERVICE_TYPES = [
276577
+ "blockchain-network",
276578
+ "blockchain-node",
276579
+ "custom-deployment",
276580
+ "insights",
276581
+ "integration-tool",
276582
+ "middleware",
276583
+ "private-key",
276584
+ "storage"
276585
+ ];
276586
+ function servicesCommand() {
276587
+ return new Command("services").alias("s").description("List the application services").usage(createExamples([
276588
+ {
276589
+ description: "List the application services",
276590
+ command: "platform list services"
276591
+ },
276592
+ {
276593
+ description: "List the application services in wide format with more information (such as console url)",
276594
+ command: "platform list services -o wide"
276595
+ },
276596
+ {
276597
+ description: "List the application services in JSON format",
276598
+ command: "platform list services -o json > services.json"
276599
+ },
276600
+ {
276601
+ description: "List the application services in YAML format",
276602
+ command: "platform list services -o yaml > services.yaml"
276603
+ },
276604
+ {
276605
+ description: "List the application services for a specific application",
276606
+ command: "platform list services --application my-app"
276607
+ },
276608
+ {
276609
+ description: "List the application services for a specific application and type",
276610
+ command: "platform list services --application my-app --type middleware"
276611
+ },
276612
+ {
276613
+ description: "List the application services for multiple types",
276614
+ command: "platform list services --type blockchain-network blockchain-node middleware"
276615
+ }
276616
+ ])).option("-app, --application <application>", "The application unique name to list the services in (defaults to application from env)").addOption(new Option("-t, --type <type...>", "The type(s) of service to list").choices(SERVICE_TYPES)).addOption(new Option("-o, --output <output>", "The output format").choices(["wide", "json", "yaml"])).action(async ({ application, type: type4, output }) => {
276617
+ const printToTerminal = !output || output === "wide";
276618
+ if (printToTerminal) {
276619
+ intro("Listing application services");
276620
+ }
276621
+ const env2 = await loadEnv(false, false);
276622
+ const selectedInstance = await instancePrompt(env2, true);
276623
+ const personalAccessToken = await getInstanceCredentials(selectedInstance);
276624
+ if (!personalAccessToken) {
276625
+ return missingPersonalAccessTokenError();
276626
+ }
276627
+ const accessToken = personalAccessToken.personalAccessToken;
276628
+ const settlemint = createSettleMintClient({
276629
+ accessToken,
276630
+ instance: selectedInstance
276631
+ });
276632
+ const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION ?? (printToTerminal ? await selectApplication(settlemint, env2) : null);
276633
+ if (!applicationUniqueName) {
276634
+ return nothingSelectedError("application");
276635
+ }
276636
+ const wide = output === "wide";
276637
+ const servicesToShow = await getServicesAndMapResults({
276638
+ instance: selectedInstance,
276639
+ settlemint,
276640
+ applicationUniqueName,
276641
+ types: type4,
276642
+ printToTerminal,
276643
+ wide
276644
+ });
276645
+ if (printToTerminal) {
276646
+ for (const service of servicesToShow) {
276647
+ table(service.label, service.items, !wide);
276648
+ }
276649
+ } else if (output === "json") {
276650
+ console.log(JSON.stringify(servicesToShow, null, 2));
276651
+ } else if (output === "yaml") {
276652
+ console.log($stringify(servicesToShow));
276653
+ }
276654
+ if (printToTerminal) {
276655
+ outro("Application services listed");
276656
+ }
276657
+ });
276658
+ }
276659
+ async function selectApplication(settlemint, env2) {
276660
+ const workspaces = await workspaceSpinner(settlemint);
276661
+ const workspace = await workspacePrompt(env2, workspaces, true);
276662
+ const applications = await applicationsSpinner(settlemint, workspace.uniqueName);
276663
+ const selectedApplication = await applicationPrompt(env2, applications, true);
276664
+ return selectedApplication.uniqueName;
276665
+ }
276666
+ async function getServicesAndMapResults({
276667
+ instance,
276668
+ settlemint,
276669
+ applicationUniqueName,
276670
+ types: types2,
276671
+ printToTerminal,
276672
+ wide
276673
+ }) {
276674
+ const application = await settlemint.application.read(applicationUniqueName);
276675
+ const services = await servicesSpinner(settlemint, applicationUniqueName, types2);
276676
+ const results = (types2 ?? SERVICE_TYPES).filter((serviceType) => !types2 || types2.includes(serviceType)).map((serviceType) => {
276677
+ const [_5, labels] = Object.entries(LABELS_MAP).find(([key2, value4]) => value4.command === serviceType) ?? [
276678
+ null,
276679
+ { plural: serviceType }
276680
+ ];
276681
+ const serviceItems = getItemsForServiceType(services, serviceType);
276682
+ if (serviceItems.length === 0 && !types2) {
276683
+ return null;
276684
+ }
276685
+ return {
276686
+ label: capitalizeFirstLetter2(labels.plural),
276687
+ items: serviceItems.map((s8) => {
276688
+ const basicFields = {
276689
+ status: formatStatus(s8.status, printToTerminal),
276690
+ healthSatus: formatHealthStatus(s8.healthStatus, printToTerminal),
276691
+ type: formatServiceSubType(s8, printToTerminal),
276692
+ provider: s8.provider,
276693
+ region: s8.region
276694
+ };
276695
+ if (wide) {
276696
+ return {
276697
+ nameAndUniqueName: `${s8.name}
276698
+ ${s8.uniqueName}`,
276699
+ url: getClusterServicePlatformUrl(instance, application, s8, serviceType),
276700
+ ...basicFields
276701
+ };
276702
+ }
276703
+ if (!printToTerminal) {
276704
+ return {
276705
+ name: s8.name,
276706
+ uniqueName: s8.uniqueName,
276707
+ ...basicFields,
276708
+ url: getClusterServicePlatformUrl(instance, application, s8, serviceType)
276709
+ };
276710
+ }
276711
+ return {
276712
+ name: s8.name,
276713
+ uniqueName: s8.uniqueName,
276714
+ ...basicFields
276715
+ };
276716
+ })
276717
+ };
276718
+ }).filter((result) => result !== null);
276719
+ return results;
276720
+ }
276721
+ function getItemsForServiceType(services, serviceType) {
276722
+ switch (serviceType) {
276723
+ case "middleware":
276724
+ return services.middlewares;
276725
+ case "integration-tool":
276726
+ return services.integrationTools;
276727
+ case "storage":
276728
+ return services.storages;
276729
+ case "private-key":
276730
+ return services.privateKeys;
276731
+ case "insights":
276732
+ return services.insights;
276733
+ case "custom-deployment":
276734
+ return services.customDeployments;
276735
+ case "blockchain-network":
276736
+ return services.blockchainNetworks;
276737
+ case "blockchain-node":
276738
+ return services.blockchainNodes;
276739
+ default:
276740
+ return [];
276741
+ }
276742
+ }
276743
+
276744
+ // src/commands/platform/list.ts
276745
+ function listCommand() {
276746
+ return new Command("list").alias("ls").description("List resources in the SettleMint platform").addCommand(servicesCommand());
276747
+ }
276748
+
276356
276749
  // src/commands/platform.ts
276357
276750
  function platformCommand() {
276358
- return new Command("platform").description("Manage SettleMint platform resources").addCommand(configCommand()).addCommand(createCommand3()).addCommand(updateCommand()).addCommand(deleteCommand()).addCommand(restartCommand());
276751
+ return new Command("platform").description("Manage SettleMint platform resources").addCommand(configCommand()).addCommand(createCommand3()).addCommand(updateCommand()).addCommand(deleteCommand()).addCommand(restartCommand()).addCommand(listCommand());
276359
276752
  }
276360
276753
 
276361
276754
  // src/commands/smart-contract-set/create.ts
@@ -276651,7 +277044,7 @@ async function selectTargetNode({
276651
277044
  } else {
276652
277045
  node = await settlemint.blockchainNode.read(nodeUniqueName);
276653
277046
  if (!node.isEvm) {
276654
- cancel2("The specified blockchain node is not an EVM blockchain node. Please specify an EVM blockchain node to continue.");
277047
+ cancel2(`The specified blockchain node '${nodeUniqueName}' is not an EVM blockchain node. Please specify an EVM blockchain node to continue.`);
276655
277048
  }
276656
277049
  }
276657
277050
  if (node.status !== "COMPLETED") {
@@ -276671,11 +277064,15 @@ async function addressPrompt({
276671
277064
  const possiblePrivateKeys = node.privateKeys?.filter((privateKey) => privateKey.privateKeyType !== "HD_ECDSA_P256") ?? [];
276672
277065
  const defaultAddress = env2.SETTLEMINT_SMART_CONTRACT_ADDRESS ?? hardhatConfig.networks?.btp?.from ?? possiblePrivateKeys[0]?.address;
276673
277066
  const defaultPossible = accept && defaultAddress;
276674
- if (defaultPossible) {
276675
- return defaultAddress;
277067
+ if (!node.privateKeys || node.privateKeys.length === 0) {
277068
+ cancel2(`No ECDSA P256 or HSM ECDSA P256 private key is activated on the node '${node.uniqueName}'. Please activate a private key on this node or specify a different node.`);
276676
277069
  }
276677
- if (possiblePrivateKeys.length === 0) {
276678
- cancel2("No ECDSA P256 or HSM ECDSA P256 private key is activated on the node to sign the transaction.");
277070
+ if (defaultPossible) {
277071
+ if (node.privateKeys.some((privateKey) => privateKey.address?.toLowerCase() === defaultAddress?.toLowerCase())) {
277072
+ return defaultAddress;
277073
+ }
277074
+ note(`Private key with address '${defaultAddress}' not activated on the node '${node.uniqueName}'.
277075
+ Please select another key or activate this key on the node and try again.`, "warn");
276679
277076
  }
276680
277077
  const address = await esm_default2({
276681
277078
  message: "Which private key do you want to deploy from?",
@@ -276928,54 +277325,6 @@ function sanitizeName(value4, length = 35) {
276928
277325
  // src/utils/subgraph/subgraph-config.ts
276929
277326
  import { readFile as readFile7, writeFile as writeFile8 } from "node:fs/promises";
276930
277327
  import { basename as basename4, join as join11 } from "node:path";
276931
-
276932
- // ../../node_modules/yaml/dist/index.js
276933
- var composer = require_composer();
276934
- var Document = require_Document();
276935
- var Schema = require_Schema();
276936
- var errors2 = require_errors3();
276937
- var Alias = require_Alias();
276938
- var identity3 = require_identity();
276939
- var Pair = require_Pair();
276940
- var Scalar = require_Scalar();
276941
- var YAMLMap = require_YAMLMap();
276942
- var YAMLSeq = require_YAMLSeq();
276943
- var cst = require_cst();
276944
- var lexer = require_lexer2();
276945
- var lineCounter = require_line_counter();
276946
- var parser = require_parser2();
276947
- var publicApi = require_public_api();
276948
- var visit2 = require_visit();
276949
- var $Composer = composer.Composer;
276950
- var $Document = Document.Document;
276951
- var $Schema = Schema.Schema;
276952
- var $YAMLError = errors2.YAMLError;
276953
- var $YAMLParseError = errors2.YAMLParseError;
276954
- var $YAMLWarning = errors2.YAMLWarning;
276955
- var $Alias = Alias.Alias;
276956
- var $isAlias = identity3.isAlias;
276957
- var $isCollection = identity3.isCollection;
276958
- var $isDocument = identity3.isDocument;
276959
- var $isMap = identity3.isMap;
276960
- var $isNode = identity3.isNode;
276961
- var $isPair = identity3.isPair;
276962
- var $isScalar = identity3.isScalar;
276963
- var $isSeq = identity3.isSeq;
276964
- var $Pair = Pair.Pair;
276965
- var $Scalar = Scalar.Scalar;
276966
- var $YAMLMap = YAMLMap.YAMLMap;
276967
- var $YAMLSeq = YAMLSeq.YAMLSeq;
276968
- var $Lexer = lexer.Lexer;
276969
- var $LineCounter = lineCounter.LineCounter;
276970
- var $Parser = parser.Parser;
276971
- var $parse = publicApi.parse;
276972
- var $parseAllDocuments = publicApi.parseAllDocuments;
276973
- var $parseDocument = publicApi.parseDocument;
276974
- var $stringify = publicApi.stringify;
276975
- var $visit = visit2.visit;
276976
- var $visitAsync = visit2.visitAsync;
276977
-
276978
- // src/utils/subgraph/subgraph-config.ts
276979
277328
  var CONFIG_FILE_PATH = "./subgraph/subgraph.config.json";
276980
277329
  var isGenerated = (path8 = process.cwd()) => exists2(join11(path8, CONFIG_FILE_PATH));
276981
277330
  var getSubgraphYamlFile = async (path8 = process.cwd()) => {
@@ -277290,14 +277639,24 @@ function getCommandPath(command) {
277290
277639
  }
277291
277640
  return parts.join(" ");
277292
277641
  }
277642
+ function isLeafCommand(command) {
277643
+ return command.commands.length === 0;
277644
+ }
277645
+ function isJsonOrYamlOutput(command) {
277646
+ const options = command.opts();
277647
+ return typeof options.output === "string" && (options.output === "json" || options.output === "yaml");
277648
+ }
277293
277649
  function addHooksToCommand(cmd2, rootCmd) {
277294
277650
  const extendedCmd = cmd2;
277295
277651
  extendedCmd.hook("preAction", async (thisCommand) => {
277652
+ if (isLeafCommand(thisCommand) && !isJsonOrYamlOutput(thisCommand)) {
277653
+ ascii();
277654
+ }
277296
277655
  const commandPath = getCommandPath(thisCommand);
277297
277656
  rootCmd._lastCommand = thisCommand;
277298
277657
  rootCmd._lastCommand._commandPath = commandPath;
277299
277658
  }).hook("postAction", async (thisCommand) => {
277300
- if (thisCommand.commands.length === 0) {
277659
+ if (isLeafCommand(thisCommand)) {
277301
277660
  const commandPath = getCommandPath(thisCommand);
277302
277661
  if (commandPath) {
277303
277662
  await telemetry({
@@ -277344,7 +277703,6 @@ function sdkCliCommand(exitOverride = undefined) {
277344
277703
  }
277345
277704
 
277346
277705
  // src/cli.ts
277347
- ascii();
277348
277706
  sdkCliCommand();
277349
277707
 
277350
- //# debugId=67331DA0A7A3651864756E2164756E21
277708
+ //# debugId=2A131BBF36B2671064756E2164756E21