@settlemint/sdk-cli 1.0.6-prb6f74840 → 1.0.6-prc02eac07

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);
@@ -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.vahMieJKr8:/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.8qZ0hyxphY:/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-prb6f74840",
212605
+ binaryVersion: "1.0.6-prc02eac07",
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.vahMieJKr8:/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.8qZ0hyxphY:/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.vahMieJKr8:/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.8qZ0hyxphY:/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.vahMieJKr8:/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.8qZ0hyxphY:/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.vahMieJKr8:/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.8qZ0hyxphY:/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) {
@@ -267466,6 +267469,7 @@ var {
267466
267469
 
267467
267470
  // ../utils/dist/terminal.mjs
267468
267471
  import { spawn } from "node:child_process";
267472
+ import TTYTable2 from "tty-table";
267469
267473
  var ascii = () => console.log(magentaBright(`
267470
267474
  _________ __ __ .__ _____ .__ __
267471
267475
  / _____/ _____/ |__/ |_| | ____ / \\ |__| _____/ |_
@@ -267530,14 +267534,15 @@ function list(title, items) {
267530
267534
  const formatItems = (items2) => {
267531
267535
  return items2.map((item) => {
267532
267536
  if (Array.isArray(item)) {
267533
- return item.map((subItem) => ` • ${subItem}`).join(`
267537
+ return item.map((subItem) => ` • ${subItem}`).join(`
267534
267538
  `);
267535
267539
  }
267536
- return `• ${item}`;
267540
+ return ` • ${item}`;
267537
267541
  }).join(`
267538
267542
  `);
267539
267543
  };
267540
267544
  return note(`${title}:
267545
+
267541
267546
  ${formatItems(items)}`);
267542
267547
  }
267543
267548
  var outro = (msg) => {
@@ -267562,11 +267567,40 @@ ${error.stack}`));
267562
267567
  process.exit(1);
267563
267568
  }
267564
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
+ }
267565
267599
  // package.json
267566
267600
  var package_default = {
267567
267601
  name: "@settlemint/sdk-cli",
267568
267602
  description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
267569
- version: "1.0.6-prb6f74840",
267603
+ version: "1.0.6-prc02eac07",
267570
267604
  type: "module",
267571
267605
  private: false,
267572
267606
  license: "FSL-1.1-MIT",
@@ -267607,7 +267641,8 @@ var package_default = {
267607
267641
  },
267608
267642
  dependencies: {
267609
267643
  hardhat: "2.22.18",
267610
- tinyexec: "0.3.2"
267644
+ tinyexec: "0.3.2",
267645
+ "tty-table": "4.2.3"
267611
267646
  },
267612
267647
  devDependencies: {
267613
267648
  "@types/semver": "7.5.8",
@@ -267621,10 +267656,11 @@ var package_default = {
267621
267656
  "@inquirer/input": "4.1.3",
267622
267657
  "@inquirer/password": "4.0.6",
267623
267658
  "@inquirer/select": "4.0.6",
267624
- "@settlemint/sdk-js": "1.0.6-prb6f74840",
267625
- "@settlemint/sdk-utils": "1.0.6-prb6f74840",
267659
+ "@settlemint/sdk-js": "1.0.6-prc02eac07",
267660
+ "@settlemint/sdk-utils": "1.0.6-prc02eac07",
267626
267661
  "get-tsconfig": "4.8.1",
267627
- giget: "1.2.3"
267662
+ giget: "1.2.3",
267663
+ yaml: "2.7.0"
267628
267664
  },
267629
267665
  peerDependencies: {},
267630
267666
  engines: {
@@ -267736,9 +267772,18 @@ async function retryWhenFailed(fn, maxRetries = 5, initialSleepTime = 1000, stop
267736
267772
  }
267737
267773
  throw new Error("Retry failed");
267738
267774
  }
267739
- function capitalizeFirstLetter(val) {
267775
+ function capitalizeFirstLetter2(val) {
267740
267776
  return String(val).charAt(0).toUpperCase() + String(val).slice(1);
267741
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
+ }
267742
267787
 
267743
267788
  // src/utils/config.ts
267744
267789
  var CONFIG_DIR = join6(homedir(), ".config", "settlemint");
@@ -267770,9 +267815,6 @@ async function storeCredentials(token, instance) {
267770
267815
  personalAccessToken: token,
267771
267816
  lastUsed: new Date().toISOString()
267772
267817
  };
267773
- if (!config3.defaultInstance || Object.keys(config3.instances).length === 1) {
267774
- config3.defaultInstance = instance;
267775
- }
267776
267818
  await writeConfig(config3);
267777
267819
  }
267778
267820
  async function getInstanceCredentials(instance, throwOnMissingInstance = true) {
@@ -267793,24 +267835,9 @@ async function getInstances() {
267793
267835
  const config3 = await readConfig();
267794
267836
  return Object.keys(config3.instances);
267795
267837
  }
267796
- async function getDefaultInstance() {
267797
- const config3 = await readConfig();
267798
- return config3.defaultInstance;
267799
- }
267800
- async function setDefaultInstance(instance) {
267801
- const config3 = await readConfig();
267802
- if (!config3.instances[instance]) {
267803
- throw new Error(`Instance ${instance} is not configured`);
267804
- }
267805
- config3.defaultInstance = instance;
267806
- await writeConfig(config3);
267807
- }
267808
267838
  async function removeCredentials(instance) {
267809
267839
  const config3 = await readConfig();
267810
267840
  delete config3.instances[instance];
267811
- if (config3.defaultInstance === instance) {
267812
- config3.defaultInstance = undefined;
267813
- }
267814
267841
  await writeConfig(config3);
267815
267842
  }
267816
267843
 
@@ -267982,6 +268009,7 @@ async function installPackage(names, options = {}) {
267982
268009
  }
267983
268010
 
267984
268011
  // ../utils/dist/package-manager.mjs
268012
+ import TTYTable3 from "tty-table";
267985
268013
  var import_package_json = __toESM(require_lib12(), 1);
267986
268014
  var import_package_json2 = __toESM(require_lib12(), 1);
267987
268015
  async function projectRoot3(fallbackToCwd = false, cwd) {
@@ -268225,7 +268253,7 @@ async function codegenTheGraph(env2, subgraphNames) {
268225
268253
  "x-auth-token": accessToken
268226
268254
  }
268227
268255
  });
268228
- const nameSuffix = capitalizeFirstLetter(name2);
268256
+ const nameSuffix = capitalizeFirstLetter2(name2);
268229
268257
  const graphqlClientVariable = getVariableName(`theGraphClient${nameSuffix}`);
268230
268258
  const graphqlVariable = getVariableName(`theGraphGraphql${nameSuffix}`);
268231
268259
  template.push(...[
@@ -271295,8 +271323,7 @@ async function instancePrompt(env2, accept, freeTextInput = false, isCi = is_in_
271295
271323
  if (defaultPossible) {
271296
271324
  return sanitizeInstanceUrl(defaultInstance);
271297
271325
  }
271298
- const defaultLoginInstance = await getDefaultInstance();
271299
- const defaultPromptInstance = defaultInstance ?? defaultLoginInstance ?? "https://console.settlemint.com";
271326
+ const defaultPromptInstance = defaultInstance ?? (knownInstances.length > 0 ? knownInstances[0] : "https://console.settlemint.com");
271300
271327
  if (isCi) {
271301
271328
  return sanitizeInstanceUrl(defaultPromptInstance);
271302
271329
  }
@@ -271364,11 +271391,12 @@ async function workspacePrompt(env2, workspaces, accept) {
271364
271391
  }
271365
271392
 
271366
271393
  // src/spinners/services.spinner.ts
271367
- async function servicesSpinner(settlemint, application) {
271394
+ async function servicesSpinner(settlemint, applicationUniqueName, types2) {
271368
271395
  return spinner({
271369
271396
  startMessage: "Loading your services",
271370
271397
  stopMessage: "Loaded your services",
271371
271398
  task: async () => {
271399
+ const shouldFetch = (type4) => !types2 || types2?.includes(type4);
271372
271400
  const [
271373
271401
  blockchainNetworks,
271374
271402
  blockchainNodes,
@@ -271379,14 +271407,14 @@ async function servicesSpinner(settlemint, application) {
271379
271407
  insights,
271380
271408
  customDeployments
271381
271409
  ] = await Promise.all([
271382
- settlemint.blockchainNetwork.list(application.uniqueName),
271383
- settlemint.blockchainNode.list(application.uniqueName),
271384
- settlemint.middleware.list(application.uniqueName),
271385
- settlemint.integrationTool.list(application.uniqueName),
271386
- settlemint.storage.list(application.uniqueName),
271387
- settlemint.privateKey.list(application.uniqueName),
271388
- settlemint.insights.list(application.uniqueName),
271389
- 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([])
271390
271418
  ]);
271391
271419
  return {
271392
271420
  blockchainNetworks,
@@ -271423,8 +271451,7 @@ async function writeEnvSpinner(prod, env2) {
271423
271451
  SETTLEMINT_ACCESS_TOKEN: env2.SETTLEMINT_ACCESS_TOKEN,
271424
271452
  SETTLEMINT_HASURA_ADMIN_SECRET: env2.SETTLEMINT_HASURA_ADMIN_SECRET,
271425
271453
  SETTLEMINT_MINIO_SECRET_KEY: env2.SETTLEMINT_MINIO_SECRET_KEY,
271426
- SETTLEMINT_HASURA_DATABASE_URL: env2.SETTLEMINT_HASURA_DATABASE_URL,
271427
- ...isLocalOrbstack(env2.SETTLEMINT_INSTANCE) ? { NODE_TLS_REJECT_UNAUTHORIZED: "0" } : {}
271454
+ SETTLEMINT_HASURA_DATABASE_URL: env2.SETTLEMINT_HASURA_DATABASE_URL
271428
271455
  };
271429
271456
  await writeEnv({
271430
271457
  prod,
@@ -271472,17 +271499,6 @@ async function writeEnvSpinner(prod, env2) {
271472
271499
  }
271473
271500
  });
271474
271501
  }
271475
- var isLocalOrbstack = (instance) => {
271476
- if (!instance) {
271477
- return false;
271478
- }
271479
- try {
271480
- const url = new URL(instance);
271481
- return url.hostname === "console.k8s.orb.local";
271482
- } catch (error5) {
271483
- return false;
271484
- }
271485
- };
271486
271502
 
271487
271503
  // src/utils/get-cluster-service-endpoint.ts
271488
271504
  async function getGraphEndpoint(settlemint, service, graphName) {
@@ -272442,6 +272458,9 @@ var BlockchainNetworkFragment = graphql(`
272442
272458
  uniqueName
272443
272459
  name
272444
272460
  status
272461
+ healthStatus
272462
+ provider
272463
+ region
272445
272464
  blockchainNodes {
272446
272465
  ... on BlockchainNode {
272447
272466
  id
@@ -272589,6 +272608,9 @@ var BlockchainNodeFragment = graphql(`
272589
272608
  uniqueName
272590
272609
  name
272591
272610
  status
272611
+ healthStatus
272612
+ provider
272613
+ region
272592
272614
  isEvm
272593
272615
  endpoints {
272594
272616
  id
@@ -272710,6 +272732,9 @@ var CustomDeploymentFragment = graphql(`
272710
272732
  uniqueName
272711
272733
  name
272712
272734
  status
272735
+ healthStatus
272736
+ provider
272737
+ region
272713
272738
  endpoints {
272714
272739
  id
272715
272740
  label
@@ -272836,6 +272861,11 @@ var LoadBalancerFragment = graphql(`
272836
272861
  fragment LoadBalancer on LoadBalancer {
272837
272862
  id
272838
272863
  uniqueName
272864
+ name
272865
+ status
272866
+ healthStatus
272867
+ provider
272868
+ region
272839
272869
  }
272840
272870
  `);
272841
272871
  var getLoadBalancer = graphql(`
@@ -272860,6 +272890,9 @@ var InsightsFragment = graphql(`
272860
272890
  uniqueName
272861
272891
  name
272862
272892
  status
272893
+ healthStatus
272894
+ provider
272895
+ region
272863
272896
  insightsCategory
272864
272897
  endpoints {
272865
272898
  id
@@ -272967,6 +273000,9 @@ var IntegrationFragment = graphql(`
272967
273000
  uniqueName
272968
273001
  name
272969
273002
  status
273003
+ healthStatus
273004
+ provider
273005
+ region
272970
273006
  integrationType
272971
273007
  endpoints {
272972
273008
  id
@@ -273064,6 +273100,9 @@ var StorageFragment = graphql(`
273064
273100
  uniqueName
273065
273101
  name
273066
273102
  status
273103
+ healthStatus
273104
+ provider
273105
+ region
273067
273106
  storageProtocol
273068
273107
  endpoints {
273069
273108
  id
@@ -273161,6 +273200,9 @@ var MiddlewareFragment = graphql(`
273161
273200
  uniqueName
273162
273201
  name
273163
273202
  status
273203
+ healthStatus
273204
+ provider
273205
+ region
273164
273206
  interface
273165
273207
  entityVersion
273166
273208
  serviceUrl
@@ -273345,6 +273387,9 @@ var PrivateKeyFragment = graphql(`
273345
273387
  name
273346
273388
  privateKeyType
273347
273389
  status
273390
+ healthStatus
273391
+ provider
273392
+ region
273348
273393
  }
273349
273394
  `);
273350
273395
  var getPrivateKeys = graphql(`
@@ -273561,7 +273606,7 @@ function connectCommand() {
273561
273606
  const workspace = await workspacePrompt(env2, workspaces, acceptDefaults);
273562
273607
  const application = await applicationPrompt(env2, workspace?.applications ?? [], acceptDefaults);
273563
273608
  const aatToken = await applicationAccessTokenPrompt(env2, application, settlemint, acceptDefaults);
273564
- 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);
273565
273610
  const blockchainNode = await blockchainNodePrompt({
273566
273611
  env: env2,
273567
273612
  nodes: blockchainNodes,
@@ -273609,20 +273654,68 @@ function connectCommand() {
273609
273654
  });
273610
273655
  if (acceptDefaults) {
273611
273656
  const selectedServices = [
273612
- `Workspace: ${workspace.name} (${workspace.uniqueName})`,
273613
- `Application: ${application.name} (${application.uniqueName})`,
273614
- blockchainNode && `Blockchain Network: ${blockchainNode?.blockchainNetwork?.name} (${blockchainNode?.blockchainNetwork?.uniqueName})`,
273615
- blockchainNode && `Blockchain Node: ${blockchainNode?.name} (${blockchainNode?.uniqueName})`,
273616
- hasura && `Hasura: ${hasura?.name} (${hasura?.uniqueName})`,
273617
- thegraph && `TheGraph: ${thegraph?.name} (${thegraph?.uniqueName})`,
273618
- portal && `Portal: ${portal?.name} (${portal?.uniqueName})`,
273619
- ipfs && `IPFS: ${ipfs?.name} (${ipfs?.uniqueName})`,
273620
- minio && `MinIO: ${minio?.name} (${minio?.uniqueName})`,
273621
- hdPrivateKey && `HD Private Key: ${hdPrivateKey?.name} (${hdPrivateKey?.uniqueName})`,
273622
- cDeployment && `Custom Deployment: ${cDeployment?.name} (${cDeployment?.uniqueName})`,
273623
- 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
+ }
273624
273717
  ].filter(Boolean);
273625
- list("Selected services", selectedServices);
273718
+ table("Selected services", selectedServices);
273626
273719
  }
273627
273720
  await writeEnvSpinner(!!prod, {
273628
273721
  SETTLEMINT_ACCESS_TOKEN: aatToken,
@@ -274505,7 +274598,7 @@ function loginCommand() {
274505
274598
  command: "login --token-stdin --accept-defaults",
274506
274599
  commandPrefix: "cat ~/my_token.txt | "
274507
274600
  }
274508
- ])).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) => {
274509
274602
  intro("Login to your SettleMint account");
274510
274603
  const autoAccept = !!acceptDefaults || !!tokenStdin;
274511
274604
  const env2 = await loadEnv(false, false);
@@ -274543,9 +274636,6 @@ function loginCommand() {
274543
274636
  cancel2(`Invalid personal access token for instance ${selectedInstance}`);
274544
274637
  }
274545
274638
  await storeCredentials(personalAccessToken, selectedInstance);
274546
- if (isDefault) {
274547
- await setDefaultInstance(selectedInstance);
274548
- }
274549
274639
  outro("Successfully logged in to SettleMint!");
274550
274640
  });
274551
274641
  }
@@ -274570,13 +274660,14 @@ function logoutCommand() {
274570
274660
  outro(`Successfully logged out from ${instance2}`);
274571
274661
  return;
274572
274662
  }
274573
- const defaultInstance = await getDefaultInstance();
274663
+ const env2 = await loadEnv(false, false);
274664
+ const defaultInstance = env2.SETTLEMINT_INSTANCE;
274574
274665
  const instance = await esm_default2({
274575
274666
  message: "Select the instance to logout from:",
274576
274667
  choices: instances.map((instance2) => ({
274577
274668
  value: instance2,
274578
274669
  label: instance2,
274579
- description: instance2 === defaultInstance ? "(default)" : undefined
274670
+ description: defaultInstance && instance2 === defaultInstance ? "(default)" : undefined
274580
274671
  }))
274581
274672
  });
274582
274673
  await removeCredentials(instance);
@@ -274604,17 +274695,25 @@ var SETTLEMINT_CLIENT_MAP = {
274604
274695
  "application access token": "applicationAccessToken"
274605
274696
  };
274606
274697
  var LABELS_MAP = {
274607
- application: { singular: "application", plural: "applications" },
274608
- workspace: { singular: "workspace", plural: "workspaces" },
274609
- "blockchain network": { singular: "blockchain network", plural: "blockchain networks" },
274610
- "blockchain node": { singular: "blockchain node", plural: "blockchain nodes" },
274611
- "custom deployment": { singular: "custom deployment", plural: "custom deployments" },
274612
- "private key": { singular: "private key", plural: "private keys" },
274613
- middleware: { singular: "middleware", plural: "middlewares" },
274614
- "integration tool": { singular: "integration tool", plural: "integration tools" },
274615
- storage: { singular: "storage", plural: "storage" },
274616
- insights: { singular: "insight", plural: "insights" },
274617
- "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
+ }
274618
274717
  };
274619
274718
 
274620
274719
  // src/commands/platform/utils/wait-for-completion.ts
@@ -274647,30 +274746,30 @@ async function waitForCompletion({
274647
274746
  const resource = await service.read(uniqueName);
274648
274747
  if (resource.status === "COMPLETED") {
274649
274748
  if (spinner2) {
274650
- spinner2.text = `${capitalizeFirstLetter(type4)} is ${getActionLabel(action)}`;
274749
+ spinner2.text = `${capitalizeFirstLetter2(type4)} is ${getActionLabel(action)}`;
274651
274750
  } else {
274652
- note(`${capitalizeFirstLetter(type4)} is ${getActionLabel(action)}`);
274751
+ note(`${capitalizeFirstLetter2(type4)} is ${getActionLabel(action)}`);
274653
274752
  }
274654
274753
  return true;
274655
274754
  }
274656
274755
  if (resource.status === "FAILED") {
274657
274756
  if (spinner2) {
274658
- spinner2.text = `${capitalizeFirstLetter(type4)} failed to ${getActionLabel(action)}`;
274757
+ spinner2.text = `${capitalizeFirstLetter2(type4)} failed to ${getActionLabel(action)}`;
274659
274758
  } else {
274660
- note(`${capitalizeFirstLetter(type4)} failed to ${getActionLabel(action)}`);
274759
+ note(`${capitalizeFirstLetter2(type4)} failed to ${getActionLabel(action)}`);
274661
274760
  }
274662
274761
  return true;
274663
274762
  }
274664
274763
  if (spinner2) {
274665
- spinner2.text = `${capitalizeFirstLetter(type4)} is not ready yet (status: ${resource.status})`;
274764
+ spinner2.text = `${capitalizeFirstLetter2(type4)} is not ready yet (status: ${resource.status})`;
274666
274765
  } else {
274667
- note(`${capitalizeFirstLetter(type4)} is not ready yet (status: ${resource.status})`);
274766
+ note(`${capitalizeFirstLetter2(type4)} is not ready yet (status: ${resource.status})`);
274668
274767
  }
274669
274768
  } catch (error5) {
274670
274769
  if (spinner2) {
274671
- spinner2.text = `${capitalizeFirstLetter(type4)} is not ready yet (status: UNKNOWN)`;
274770
+ spinner2.text = `${capitalizeFirstLetter2(type4)} is not ready yet (status: UNKNOWN)`;
274672
274771
  } else {
274673
- note(`${capitalizeFirstLetter(type4)} is not ready yet (status: UNKNOWN)`);
274772
+ note(`${capitalizeFirstLetter2(type4)} is not ready yet (status: UNKNOWN)`);
274674
274773
  }
274675
274774
  }
274676
274775
  if (Date.now() - startTime > maxTimeout) {
@@ -274685,7 +274784,7 @@ async function waitForCompletion({
274685
274784
  return await showSpinner();
274686
274785
  } catch (error5) {
274687
274786
  if (restartIfTimeout && error5 instanceof TimeoutError) {
274688
- note(`Restarting ${capitalizeFirstLetter(type4)}`);
274787
+ note(`Restarting ${capitalizeFirstLetter2(type4)}`);
274689
274788
  await service.restart(uniqueName);
274690
274789
  return showSpinner();
274691
274790
  }
@@ -274806,7 +274905,7 @@ function getCreateCommand({
274806
274905
  const showSpinner = (task) => spinner({
274807
274906
  startMessage: `Creating ${type4}`,
274808
274907
  task,
274809
- stopMessage: `${capitalizeFirstLetter(type4)} created`
274908
+ stopMessage: `${capitalizeFirstLetter2(type4)} created`
274810
274909
  });
274811
274910
  const { result, waitFor, mapDefaultEnv } = await createFunction(settlemint, env2, showSpinner);
274812
274911
  if (wait) {
@@ -274818,7 +274917,7 @@ function getCreateCommand({
274818
274917
  restartIfTimeout
274819
274918
  });
274820
274919
  if (waitFor) {
274821
- outro(`${capitalizeFirstLetter(waitFor.resourceType)} ${waitFor.name} created successfully`);
274920
+ outro(`${capitalizeFirstLetter2(waitFor.resourceType)} ${waitFor.name} created successfully`);
274822
274921
  }
274823
274922
  }
274824
274923
  if (isDefault && typeof mapDefaultEnv === "function") {
@@ -274840,9 +274939,9 @@ function getCreateCommand({
274840
274939
  newEnv.SETTLEMINT_BLOCKCHAIN_NETWORK = (await settlemint.blockchainNode.read(newEnv.SETTLEMINT_BLOCKCHAIN_NODE)).blockchainNetwork.uniqueName;
274841
274940
  }
274842
274941
  await writeEnvSpinner(!!prod, newEnv);
274843
- note(`${capitalizeFirstLetter(type4)} ${result.name} set as default`);
274942
+ note(`${capitalizeFirstLetter2(type4)} ${result.name} set as default`);
274844
274943
  }
274845
- outro(`${capitalizeFirstLetter(type4)} ${result.name} created successfully`);
274944
+ outro(`${capitalizeFirstLetter2(type4)} ${result.name} created successfully`);
274846
274945
  });
274847
274946
  return cmd2;
274848
274947
  }
@@ -276041,7 +276140,7 @@ function getDeleteCommand({
276041
276140
  task: async () => {
276042
276141
  return deleteFunction(settlemint, serviceUniqueName);
276043
276142
  },
276044
- stopMessage: `${capitalizeFirstLetter(type4)} deleted`
276143
+ stopMessage: `${capitalizeFirstLetter2(type4)} deleted`
276045
276144
  });
276046
276145
  if (isDefaultUniqueName) {
276047
276146
  const newEnv = {
@@ -276050,9 +276149,9 @@ function getDeleteCommand({
276050
276149
  ...mapDefaultEnv(env2)
276051
276150
  };
276052
276151
  await writeEnvSpinner(!!prod, newEnv);
276053
- note(`${capitalizeFirstLetter(type4)} removed as default`);
276152
+ note(`${capitalizeFirstLetter2(type4)} removed as default`);
276054
276153
  }
276055
- outro(`${capitalizeFirstLetter(type4)} ${result.name} deleted successfully`);
276154
+ outro(`${capitalizeFirstLetter2(type4)} ${result.name} deleted successfully`);
276056
276155
  });
276057
276156
  }
276058
276157
 
@@ -276135,12 +276234,12 @@ function getRestartCommand({
276135
276234
  task: async () => {
276136
276235
  return restartFunction(settlemint, serviceUniqueName);
276137
276236
  },
276138
- stopMessage: `${capitalizeFirstLetter(type4)} restart initiated`
276237
+ stopMessage: `${capitalizeFirstLetter2(type4)} restart initiated`
276139
276238
  });
276140
276239
  if (wait) {
276141
276240
  await waitForCompletion({ settlemint, type: type4, uniqueName: serviceUniqueName, action: "restart" });
276142
276241
  }
276143
- outro(`${capitalizeFirstLetter(type4)} ${result.name} restart initiated successfully`);
276242
+ outro(`${capitalizeFirstLetter2(type4)} ${result.name} restart initiated successfully`);
276144
276243
  });
276145
276244
  }
276146
276245
 
@@ -276336,21 +276435,320 @@ function configCommand() {
276336
276435
  const platformConfig = await settlemint.platform.config();
276337
276436
  const useCases = getUseCases(platformConfig);
276338
276437
  const starterkits = getStarterkits(platformConfig);
276339
- list("Templates (Starterkits)", starterkits.map((starterkit) => starterkit.id).sort());
276340
- list("Use cases (Smart Contract Sets)", useCases.map((useCase) => useCase.id).sort());
276341
- list("Providers and regions", platformConfig.deploymentEngineTargets.filter((provider) => !provider.disabled).sort((a8, b4) => a8.id.localeCompare(b4.id)).reduce((acc, provider) => {
276342
- acc.push(provider.id);
276343
- acc.push(provider.clusters.filter((cluster) => !cluster.disabled).map((region) => getRegionId(region.id)).sort());
276344
- return acc;
276345
- }, []));
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)));
276346
276452
  list("Pre-deployed abis (Smart Contract Portal)", platformConfig.preDeployedContracts.sort());
276347
276453
  outro("Platform configuration retrieved");
276348
276454
  });
276349
276455
  }
276350
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
+
276351
276749
  // src/commands/platform.ts
276352
276750
  function platformCommand() {
276353
- 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());
276354
276752
  }
276355
276753
 
276356
276754
  // src/commands/smart-contract-set/create.ts
@@ -276923,54 +277321,6 @@ function sanitizeName(value4, length = 35) {
276923
277321
  // src/utils/subgraph/subgraph-config.ts
276924
277322
  import { readFile as readFile7, writeFile as writeFile8 } from "node:fs/promises";
276925
277323
  import { basename as basename4, join as join11 } from "node:path";
276926
-
276927
- // ../../node_modules/yaml/dist/index.js
276928
- var composer = require_composer();
276929
- var Document = require_Document();
276930
- var Schema = require_Schema();
276931
- var errors2 = require_errors3();
276932
- var Alias = require_Alias();
276933
- var identity3 = require_identity();
276934
- var Pair = require_Pair();
276935
- var Scalar = require_Scalar();
276936
- var YAMLMap = require_YAMLMap();
276937
- var YAMLSeq = require_YAMLSeq();
276938
- var cst = require_cst();
276939
- var lexer = require_lexer2();
276940
- var lineCounter = require_line_counter();
276941
- var parser = require_parser2();
276942
- var publicApi = require_public_api();
276943
- var visit2 = require_visit();
276944
- var $Composer = composer.Composer;
276945
- var $Document = Document.Document;
276946
- var $Schema = Schema.Schema;
276947
- var $YAMLError = errors2.YAMLError;
276948
- var $YAMLParseError = errors2.YAMLParseError;
276949
- var $YAMLWarning = errors2.YAMLWarning;
276950
- var $Alias = Alias.Alias;
276951
- var $isAlias = identity3.isAlias;
276952
- var $isCollection = identity3.isCollection;
276953
- var $isDocument = identity3.isDocument;
276954
- var $isMap = identity3.isMap;
276955
- var $isNode = identity3.isNode;
276956
- var $isPair = identity3.isPair;
276957
- var $isScalar = identity3.isScalar;
276958
- var $isSeq = identity3.isSeq;
276959
- var $Pair = Pair.Pair;
276960
- var $Scalar = Scalar.Scalar;
276961
- var $YAMLMap = YAMLMap.YAMLMap;
276962
- var $YAMLSeq = YAMLSeq.YAMLSeq;
276963
- var $Lexer = lexer.Lexer;
276964
- var $LineCounter = lineCounter.LineCounter;
276965
- var $Parser = parser.Parser;
276966
- var $parse = publicApi.parse;
276967
- var $parseAllDocuments = publicApi.parseAllDocuments;
276968
- var $parseDocument = publicApi.parseDocument;
276969
- var $stringify = publicApi.stringify;
276970
- var $visit = visit2.visit;
276971
- var $visitAsync = visit2.visitAsync;
276972
-
276973
- // src/utils/subgraph/subgraph-config.ts
276974
277324
  var CONFIG_FILE_PATH = "./subgraph/subgraph.config.json";
276975
277325
  var isGenerated = (path8 = process.cwd()) => exists2(join11(path8, CONFIG_FILE_PATH));
276976
277326
  var getSubgraphYamlFile = async (path8 = process.cwd()) => {
@@ -277285,14 +277635,24 @@ function getCommandPath(command) {
277285
277635
  }
277286
277636
  return parts.join(" ");
277287
277637
  }
277638
+ function isLeafCommand(command) {
277639
+ return command.commands.length === 0;
277640
+ }
277641
+ function isJsonOrYamlOutput(command) {
277642
+ const options = command.opts();
277643
+ return typeof options.output === "string" && (options.output === "json" || options.output === "yaml");
277644
+ }
277288
277645
  function addHooksToCommand(cmd2, rootCmd) {
277289
277646
  const extendedCmd = cmd2;
277290
277647
  extendedCmd.hook("preAction", async (thisCommand) => {
277648
+ if (isLeafCommand(thisCommand) && !isJsonOrYamlOutput(thisCommand)) {
277649
+ ascii();
277650
+ }
277291
277651
  const commandPath = getCommandPath(thisCommand);
277292
277652
  rootCmd._lastCommand = thisCommand;
277293
277653
  rootCmd._lastCommand._commandPath = commandPath;
277294
277654
  }).hook("postAction", async (thisCommand) => {
277295
- if (thisCommand.commands.length === 0) {
277655
+ if (isLeafCommand(thisCommand)) {
277296
277656
  const commandPath = getCommandPath(thisCommand);
277297
277657
  if (commandPath) {
277298
277658
  await telemetry({
@@ -277339,7 +277699,6 @@ function sdkCliCommand(exitOverride = undefined) {
277339
277699
  }
277340
277700
 
277341
277701
  // src/cli.ts
277342
- ascii();
277343
277702
  sdkCliCommand();
277344
277703
 
277345
- //# debugId=345B6A1B50E31D2964756E2164756E21
277704
+ //# debugId=3711762F2CA83BA264756E2164756E21