@settlemint/sdk-cli 1.0.6-prc02eac07 → 1.0.6-prd74d0513
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/README.md +1 -1
- package/dist/cli.js +187 -577
- package/dist/cli.js.map +22 -29
- package/package.json +5 -7
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
|
|
59236
|
-
return declareSymbol(
|
|
59235
|
+
const table = parent3 ? parent3.exports : file.jsGlobalAugmentations || (file.jsGlobalAugmentations = createSymbolTable());
|
|
59236
|
+
return declareSymbol(table, 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
|
|
63735
|
+
let table;
|
|
63736
63736
|
(getSymbolOfDeclaration(location).members || emptySymbols).forEach((memberSymbol, key) => {
|
|
63737
63737
|
if (memberSymbol.flags & (788968 & ~67108864)) {
|
|
63738
|
-
(
|
|
63738
|
+
(table || (table = createSymbolTable())).set(key, memberSymbol);
|
|
63739
63739
|
}
|
|
63740
63740
|
});
|
|
63741
|
-
if (
|
|
63741
|
+
if (table && (result = callback(table, 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(
|
|
108973
|
-
if (!
|
|
108972
|
+
function processLabeledJumps(table, isBreak, loopResultName, outerLoop, caseClauses) {
|
|
108973
|
+
if (!table) {
|
|
108974
108974
|
return;
|
|
108975
108975
|
}
|
|
108976
|
-
|
|
108976
|
+
table.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.
|
|
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.DudkAtzuGk:/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-
|
|
212605
|
+
binaryVersion: "1.0.6-prd74d0513",
|
|
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.
|
|
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.DudkAtzuGk:/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.
|
|
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.DudkAtzuGk:/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.
|
|
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.DudkAtzuGk:/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.
|
|
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.DudkAtzuGk:/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,6 +249498,57 @@ ${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
|
+
|
|
249501
249552
|
// ../../node_modules/yaml/dist/nodes/identity.js
|
|
249502
249553
|
var require_identity = __commonJS((exports) => {
|
|
249503
249554
|
var ALIAS = Symbol.for("yaml.alias");
|
|
@@ -256384,57 +256435,6 @@ var require_public_api = __commonJS((exports) => {
|
|
|
256384
256435
|
exports.stringify = stringify3;
|
|
256385
256436
|
});
|
|
256386
256437
|
|
|
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,9 +256743,6 @@ 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
|
-
|
|
256749
256746
|
// ../../node_modules/zod/lib/index.mjs
|
|
256750
256747
|
var util;
|
|
256751
256748
|
(function(util2) {
|
|
@@ -267469,7 +267466,6 @@ var {
|
|
|
267469
267466
|
|
|
267470
267467
|
// ../utils/dist/terminal.mjs
|
|
267471
267468
|
import { spawn } from "node:child_process";
|
|
267472
|
-
import TTYTable2 from "tty-table";
|
|
267473
267469
|
var ascii = () => console.log(magentaBright(`
|
|
267474
267470
|
_________ __ __ .__ _____ .__ __
|
|
267475
267471
|
/ _____/ _____/ |__/ |_| | ____ / \\ |__| _____/ |_
|
|
@@ -267534,15 +267530,14 @@ function list(title, items) {
|
|
|
267534
267530
|
const formatItems = (items2) => {
|
|
267535
267531
|
return items2.map((item) => {
|
|
267536
267532
|
if (Array.isArray(item)) {
|
|
267537
|
-
return item.map((subItem) => `
|
|
267533
|
+
return item.map((subItem) => ` • ${subItem}`).join(`
|
|
267538
267534
|
`);
|
|
267539
267535
|
}
|
|
267540
|
-
return
|
|
267536
|
+
return `• ${item}`;
|
|
267541
267537
|
}).join(`
|
|
267542
267538
|
`);
|
|
267543
267539
|
};
|
|
267544
267540
|
return note(`${title}:
|
|
267545
|
-
|
|
267546
267541
|
${formatItems(items)}`);
|
|
267547
267542
|
}
|
|
267548
267543
|
var outro = (msg) => {
|
|
@@ -267567,40 +267562,11 @@ ${error.stack}`));
|
|
|
267567
267562
|
process.exit(1);
|
|
267568
267563
|
}
|
|
267569
267564
|
};
|
|
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
|
-
}
|
|
267599
267565
|
// package.json
|
|
267600
267566
|
var package_default = {
|
|
267601
267567
|
name: "@settlemint/sdk-cli",
|
|
267602
267568
|
description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
|
|
267603
|
-
version: "1.0.6-
|
|
267569
|
+
version: "1.0.6-prd74d0513",
|
|
267604
267570
|
type: "module",
|
|
267605
267571
|
private: false,
|
|
267606
267572
|
license: "FSL-1.1-MIT",
|
|
@@ -267641,8 +267607,7 @@ var package_default = {
|
|
|
267641
267607
|
},
|
|
267642
267608
|
dependencies: {
|
|
267643
267609
|
hardhat: "2.22.18",
|
|
267644
|
-
tinyexec: "0.3.2"
|
|
267645
|
-
"tty-table": "4.2.3"
|
|
267610
|
+
tinyexec: "0.3.2"
|
|
267646
267611
|
},
|
|
267647
267612
|
devDependencies: {
|
|
267648
267613
|
"@types/semver": "7.5.8",
|
|
@@ -267656,11 +267621,10 @@ var package_default = {
|
|
|
267656
267621
|
"@inquirer/input": "4.1.3",
|
|
267657
267622
|
"@inquirer/password": "4.0.6",
|
|
267658
267623
|
"@inquirer/select": "4.0.6",
|
|
267659
|
-
"@settlemint/sdk-js": "1.0.6-
|
|
267660
|
-
"@settlemint/sdk-utils": "1.0.6-
|
|
267624
|
+
"@settlemint/sdk-js": "1.0.6-prd74d0513",
|
|
267625
|
+
"@settlemint/sdk-utils": "1.0.6-prd74d0513",
|
|
267661
267626
|
"get-tsconfig": "4.8.1",
|
|
267662
|
-
giget: "1.2.3"
|
|
267663
|
-
yaml: "2.7.0"
|
|
267627
|
+
giget: "1.2.3"
|
|
267664
267628
|
},
|
|
267665
267629
|
peerDependencies: {},
|
|
267666
267630
|
engines: {
|
|
@@ -267772,18 +267736,9 @@ async function retryWhenFailed(fn, maxRetries = 5, initialSleepTime = 1000, stop
|
|
|
267772
267736
|
}
|
|
267773
267737
|
throw new Error("Retry failed");
|
|
267774
267738
|
}
|
|
267775
|
-
function
|
|
267739
|
+
function capitalizeFirstLetter(val) {
|
|
267776
267740
|
return String(val).charAt(0).toUpperCase() + String(val).slice(1);
|
|
267777
267741
|
}
|
|
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
|
-
}
|
|
267787
267742
|
|
|
267788
267743
|
// src/utils/config.ts
|
|
267789
267744
|
var CONFIG_DIR = join6(homedir(), ".config", "settlemint");
|
|
@@ -268009,7 +267964,6 @@ async function installPackage(names, options = {}) {
|
|
|
268009
267964
|
}
|
|
268010
267965
|
|
|
268011
267966
|
// ../utils/dist/package-manager.mjs
|
|
268012
|
-
import TTYTable3 from "tty-table";
|
|
268013
267967
|
var import_package_json = __toESM(require_lib12(), 1);
|
|
268014
267968
|
var import_package_json2 = __toESM(require_lib12(), 1);
|
|
268015
267969
|
async function projectRoot3(fallbackToCwd = false, cwd) {
|
|
@@ -268253,7 +268207,7 @@ async function codegenTheGraph(env2, subgraphNames) {
|
|
|
268253
268207
|
"x-auth-token": accessToken
|
|
268254
268208
|
}
|
|
268255
268209
|
});
|
|
268256
|
-
const nameSuffix =
|
|
268210
|
+
const nameSuffix = capitalizeFirstLetter(name2);
|
|
268257
268211
|
const graphqlClientVariable = getVariableName(`theGraphClient${nameSuffix}`);
|
|
268258
268212
|
const graphqlVariable = getVariableName(`theGraphGraphql${nameSuffix}`);
|
|
268259
268213
|
template.push(...[
|
|
@@ -271391,12 +271345,11 @@ async function workspacePrompt(env2, workspaces, accept) {
|
|
|
271391
271345
|
}
|
|
271392
271346
|
|
|
271393
271347
|
// src/spinners/services.spinner.ts
|
|
271394
|
-
async function servicesSpinner(settlemint,
|
|
271348
|
+
async function servicesSpinner(settlemint, application) {
|
|
271395
271349
|
return spinner({
|
|
271396
271350
|
startMessage: "Loading your services",
|
|
271397
271351
|
stopMessage: "Loaded your services",
|
|
271398
271352
|
task: async () => {
|
|
271399
|
-
const shouldFetch = (type4) => !types2 || types2?.includes(type4);
|
|
271400
271353
|
const [
|
|
271401
271354
|
blockchainNetworks,
|
|
271402
271355
|
blockchainNodes,
|
|
@@ -271407,14 +271360,14 @@ async function servicesSpinner(settlemint, applicationUniqueName, types2) {
|
|
|
271407
271360
|
insights,
|
|
271408
271361
|
customDeployments
|
|
271409
271362
|
] = await Promise.all([
|
|
271410
|
-
|
|
271411
|
-
|
|
271412
|
-
|
|
271413
|
-
|
|
271414
|
-
|
|
271415
|
-
|
|
271416
|
-
|
|
271417
|
-
|
|
271363
|
+
settlemint.blockchainNetwork.list(application.uniqueName),
|
|
271364
|
+
settlemint.blockchainNode.list(application.uniqueName),
|
|
271365
|
+
settlemint.middleware.list(application.uniqueName),
|
|
271366
|
+
settlemint.integrationTool.list(application.uniqueName),
|
|
271367
|
+
settlemint.storage.list(application.uniqueName),
|
|
271368
|
+
settlemint.privateKey.list(application.uniqueName),
|
|
271369
|
+
settlemint.insights.list(application.uniqueName),
|
|
271370
|
+
settlemint.customDeployment.list(application.uniqueName)
|
|
271418
271371
|
]);
|
|
271419
271372
|
return {
|
|
271420
271373
|
blockchainNetworks,
|
|
@@ -272458,9 +272411,6 @@ var BlockchainNetworkFragment = graphql(`
|
|
|
272458
272411
|
uniqueName
|
|
272459
272412
|
name
|
|
272460
272413
|
status
|
|
272461
|
-
healthStatus
|
|
272462
|
-
provider
|
|
272463
|
-
region
|
|
272464
272414
|
blockchainNodes {
|
|
272465
272415
|
... on BlockchainNode {
|
|
272466
272416
|
id
|
|
@@ -272608,9 +272558,6 @@ var BlockchainNodeFragment = graphql(`
|
|
|
272608
272558
|
uniqueName
|
|
272609
272559
|
name
|
|
272610
272560
|
status
|
|
272611
|
-
healthStatus
|
|
272612
|
-
provider
|
|
272613
|
-
region
|
|
272614
272561
|
isEvm
|
|
272615
272562
|
endpoints {
|
|
272616
272563
|
id
|
|
@@ -272732,9 +272679,6 @@ var CustomDeploymentFragment = graphql(`
|
|
|
272732
272679
|
uniqueName
|
|
272733
272680
|
name
|
|
272734
272681
|
status
|
|
272735
|
-
healthStatus
|
|
272736
|
-
provider
|
|
272737
|
-
region
|
|
272738
272682
|
endpoints {
|
|
272739
272683
|
id
|
|
272740
272684
|
label
|
|
@@ -272861,11 +272805,6 @@ var LoadBalancerFragment = graphql(`
|
|
|
272861
272805
|
fragment LoadBalancer on LoadBalancer {
|
|
272862
272806
|
id
|
|
272863
272807
|
uniqueName
|
|
272864
|
-
name
|
|
272865
|
-
status
|
|
272866
|
-
healthStatus
|
|
272867
|
-
provider
|
|
272868
|
-
region
|
|
272869
272808
|
}
|
|
272870
272809
|
`);
|
|
272871
272810
|
var getLoadBalancer = graphql(`
|
|
@@ -272890,9 +272829,6 @@ var InsightsFragment = graphql(`
|
|
|
272890
272829
|
uniqueName
|
|
272891
272830
|
name
|
|
272892
272831
|
status
|
|
272893
|
-
healthStatus
|
|
272894
|
-
provider
|
|
272895
|
-
region
|
|
272896
272832
|
insightsCategory
|
|
272897
272833
|
endpoints {
|
|
272898
272834
|
id
|
|
@@ -273000,9 +272936,6 @@ var IntegrationFragment = graphql(`
|
|
|
273000
272936
|
uniqueName
|
|
273001
272937
|
name
|
|
273002
272938
|
status
|
|
273003
|
-
healthStatus
|
|
273004
|
-
provider
|
|
273005
|
-
region
|
|
273006
272939
|
integrationType
|
|
273007
272940
|
endpoints {
|
|
273008
272941
|
id
|
|
@@ -273100,9 +273033,6 @@ var StorageFragment = graphql(`
|
|
|
273100
273033
|
uniqueName
|
|
273101
273034
|
name
|
|
273102
273035
|
status
|
|
273103
|
-
healthStatus
|
|
273104
|
-
provider
|
|
273105
|
-
region
|
|
273106
273036
|
storageProtocol
|
|
273107
273037
|
endpoints {
|
|
273108
273038
|
id
|
|
@@ -273200,9 +273130,6 @@ var MiddlewareFragment = graphql(`
|
|
|
273200
273130
|
uniqueName
|
|
273201
273131
|
name
|
|
273202
273132
|
status
|
|
273203
|
-
healthStatus
|
|
273204
|
-
provider
|
|
273205
|
-
region
|
|
273206
273133
|
interface
|
|
273207
273134
|
entityVersion
|
|
273208
273135
|
serviceUrl
|
|
@@ -273387,9 +273314,6 @@ var PrivateKeyFragment = graphql(`
|
|
|
273387
273314
|
name
|
|
273388
273315
|
privateKeyType
|
|
273389
273316
|
status
|
|
273390
|
-
healthStatus
|
|
273391
|
-
provider
|
|
273392
|
-
region
|
|
273393
273317
|
}
|
|
273394
273318
|
`);
|
|
273395
273319
|
var getPrivateKeys = graphql(`
|
|
@@ -273606,7 +273530,7 @@ function connectCommand() {
|
|
|
273606
273530
|
const workspace = await workspacePrompt(env2, workspaces, acceptDefaults);
|
|
273607
273531
|
const application = await applicationPrompt(env2, workspace?.applications ?? [], acceptDefaults);
|
|
273608
273532
|
const aatToken = await applicationAccessTokenPrompt(env2, application, settlemint, acceptDefaults);
|
|
273609
|
-
const { middlewares, integrationTools, storages, privateKeys, insights, customDeployments, blockchainNodes } = await servicesSpinner(settlemint, application
|
|
273533
|
+
const { middlewares, integrationTools, storages, privateKeys, insights, customDeployments, blockchainNodes } = await servicesSpinner(settlemint, application);
|
|
273610
273534
|
const blockchainNode = await blockchainNodePrompt({
|
|
273611
273535
|
env: env2,
|
|
273612
273536
|
nodes: blockchainNodes,
|
|
@@ -273654,68 +273578,20 @@ function connectCommand() {
|
|
|
273654
273578
|
});
|
|
273655
273579
|
if (acceptDefaults) {
|
|
273656
273580
|
const selectedServices = [
|
|
273657
|
-
{
|
|
273658
|
-
|
|
273659
|
-
|
|
273660
|
-
|
|
273661
|
-
}
|
|
273662
|
-
{
|
|
273663
|
-
|
|
273664
|
-
|
|
273665
|
-
|
|
273666
|
-
}
|
|
273667
|
-
|
|
273668
|
-
|
|
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
|
-
}
|
|
273581
|
+
`Workspace: ${workspace.name} (${workspace.uniqueName})`,
|
|
273582
|
+
`Application: ${application.name} (${application.uniqueName})`,
|
|
273583
|
+
blockchainNode && `Blockchain Network: ${blockchainNode?.blockchainNetwork?.name} (${blockchainNode?.blockchainNetwork?.uniqueName})`,
|
|
273584
|
+
blockchainNode && `Blockchain Node: ${blockchainNode?.name} (${blockchainNode?.uniqueName})`,
|
|
273585
|
+
hasura && `Hasura: ${hasura?.name} (${hasura?.uniqueName})`,
|
|
273586
|
+
thegraph && `TheGraph: ${thegraph?.name} (${thegraph?.uniqueName})`,
|
|
273587
|
+
portal && `Portal: ${portal?.name} (${portal?.uniqueName})`,
|
|
273588
|
+
ipfs && `IPFS: ${ipfs?.name} (${ipfs?.uniqueName})`,
|
|
273589
|
+
minio && `MinIO: ${minio?.name} (${minio?.uniqueName})`,
|
|
273590
|
+
hdPrivateKey && `HD Private Key: ${hdPrivateKey?.name} (${hdPrivateKey?.uniqueName})`,
|
|
273591
|
+
cDeployment && `Custom Deployment: ${cDeployment?.name} (${cDeployment?.uniqueName})`,
|
|
273592
|
+
blockscout && `Blockscout: ${blockscout?.name} (${blockscout?.uniqueName})`
|
|
273717
273593
|
].filter(Boolean);
|
|
273718
|
-
|
|
273594
|
+
list("Selected services", selectedServices);
|
|
273719
273595
|
}
|
|
273720
273596
|
await writeEnvSpinner(!!prod, {
|
|
273721
273597
|
SETTLEMINT_ACCESS_TOKEN: aatToken,
|
|
@@ -274695,25 +274571,17 @@ var SETTLEMINT_CLIENT_MAP = {
|
|
|
274695
274571
|
"application access token": "applicationAccessToken"
|
|
274696
274572
|
};
|
|
274697
274573
|
var LABELS_MAP = {
|
|
274698
|
-
application: { singular: "application", plural: "applications"
|
|
274699
|
-
workspace: { singular: "workspace", plural: "workspaces"
|
|
274700
|
-
"blockchain network": {
|
|
274701
|
-
|
|
274702
|
-
|
|
274703
|
-
|
|
274704
|
-
},
|
|
274705
|
-
"
|
|
274706
|
-
|
|
274707
|
-
|
|
274708
|
-
|
|
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
|
-
}
|
|
274574
|
+
application: { singular: "application", plural: "applications" },
|
|
274575
|
+
workspace: { singular: "workspace", plural: "workspaces" },
|
|
274576
|
+
"blockchain network": { singular: "blockchain network", plural: "blockchain networks" },
|
|
274577
|
+
"blockchain node": { singular: "blockchain node", plural: "blockchain nodes" },
|
|
274578
|
+
"custom deployment": { singular: "custom deployment", plural: "custom deployments" },
|
|
274579
|
+
"private key": { singular: "private key", plural: "private keys" },
|
|
274580
|
+
middleware: { singular: "middleware", plural: "middlewares" },
|
|
274581
|
+
"integration tool": { singular: "integration tool", plural: "integration tools" },
|
|
274582
|
+
storage: { singular: "storage", plural: "storage" },
|
|
274583
|
+
insights: { singular: "insight", plural: "insights" },
|
|
274584
|
+
"application access token": { singular: "application access token", plural: "application access tokens" }
|
|
274717
274585
|
};
|
|
274718
274586
|
|
|
274719
274587
|
// src/commands/platform/utils/wait-for-completion.ts
|
|
@@ -274746,30 +274614,30 @@ async function waitForCompletion({
|
|
|
274746
274614
|
const resource = await service.read(uniqueName);
|
|
274747
274615
|
if (resource.status === "COMPLETED") {
|
|
274748
274616
|
if (spinner2) {
|
|
274749
|
-
spinner2.text = `${
|
|
274617
|
+
spinner2.text = `${capitalizeFirstLetter(type4)} is ${getActionLabel(action)}`;
|
|
274750
274618
|
} else {
|
|
274751
|
-
note(`${
|
|
274619
|
+
note(`${capitalizeFirstLetter(type4)} is ${getActionLabel(action)}`);
|
|
274752
274620
|
}
|
|
274753
274621
|
return true;
|
|
274754
274622
|
}
|
|
274755
274623
|
if (resource.status === "FAILED") {
|
|
274756
274624
|
if (spinner2) {
|
|
274757
|
-
spinner2.text = `${
|
|
274625
|
+
spinner2.text = `${capitalizeFirstLetter(type4)} failed to ${getActionLabel(action)}`;
|
|
274758
274626
|
} else {
|
|
274759
|
-
note(`${
|
|
274627
|
+
note(`${capitalizeFirstLetter(type4)} failed to ${getActionLabel(action)}`);
|
|
274760
274628
|
}
|
|
274761
274629
|
return true;
|
|
274762
274630
|
}
|
|
274763
274631
|
if (spinner2) {
|
|
274764
|
-
spinner2.text = `${
|
|
274632
|
+
spinner2.text = `${capitalizeFirstLetter(type4)} is not ready yet (status: ${resource.status})`;
|
|
274765
274633
|
} else {
|
|
274766
|
-
note(`${
|
|
274634
|
+
note(`${capitalizeFirstLetter(type4)} is not ready yet (status: ${resource.status})`);
|
|
274767
274635
|
}
|
|
274768
274636
|
} catch (error5) {
|
|
274769
274637
|
if (spinner2) {
|
|
274770
|
-
spinner2.text = `${
|
|
274638
|
+
spinner2.text = `${capitalizeFirstLetter(type4)} is not ready yet (status: UNKNOWN)`;
|
|
274771
274639
|
} else {
|
|
274772
|
-
note(`${
|
|
274640
|
+
note(`${capitalizeFirstLetter(type4)} is not ready yet (status: UNKNOWN)`);
|
|
274773
274641
|
}
|
|
274774
274642
|
}
|
|
274775
274643
|
if (Date.now() - startTime > maxTimeout) {
|
|
@@ -274784,7 +274652,7 @@ async function waitForCompletion({
|
|
|
274784
274652
|
return await showSpinner();
|
|
274785
274653
|
} catch (error5) {
|
|
274786
274654
|
if (restartIfTimeout && error5 instanceof TimeoutError) {
|
|
274787
|
-
note(`Restarting ${
|
|
274655
|
+
note(`Restarting ${capitalizeFirstLetter(type4)}`);
|
|
274788
274656
|
await service.restart(uniqueName);
|
|
274789
274657
|
return showSpinner();
|
|
274790
274658
|
}
|
|
@@ -274905,7 +274773,7 @@ function getCreateCommand({
|
|
|
274905
274773
|
const showSpinner = (task) => spinner({
|
|
274906
274774
|
startMessage: `Creating ${type4}`,
|
|
274907
274775
|
task,
|
|
274908
|
-
stopMessage: `${
|
|
274776
|
+
stopMessage: `${capitalizeFirstLetter(type4)} created`
|
|
274909
274777
|
});
|
|
274910
274778
|
const { result, waitFor, mapDefaultEnv } = await createFunction(settlemint, env2, showSpinner);
|
|
274911
274779
|
if (wait) {
|
|
@@ -274917,7 +274785,7 @@ function getCreateCommand({
|
|
|
274917
274785
|
restartIfTimeout
|
|
274918
274786
|
});
|
|
274919
274787
|
if (waitFor) {
|
|
274920
|
-
outro(`${
|
|
274788
|
+
outro(`${capitalizeFirstLetter(waitFor.resourceType)} ${waitFor.name} created successfully`);
|
|
274921
274789
|
}
|
|
274922
274790
|
}
|
|
274923
274791
|
if (isDefault && typeof mapDefaultEnv === "function") {
|
|
@@ -274939,9 +274807,9 @@ function getCreateCommand({
|
|
|
274939
274807
|
newEnv.SETTLEMINT_BLOCKCHAIN_NETWORK = (await settlemint.blockchainNode.read(newEnv.SETTLEMINT_BLOCKCHAIN_NODE)).blockchainNetwork.uniqueName;
|
|
274940
274808
|
}
|
|
274941
274809
|
await writeEnvSpinner(!!prod, newEnv);
|
|
274942
|
-
note(`${
|
|
274810
|
+
note(`${capitalizeFirstLetter(type4)} ${result.name} set as default`);
|
|
274943
274811
|
}
|
|
274944
|
-
outro(`${
|
|
274812
|
+
outro(`${capitalizeFirstLetter(type4)} ${result.name} created successfully`);
|
|
274945
274813
|
});
|
|
274946
274814
|
return cmd2;
|
|
274947
274815
|
}
|
|
@@ -276140,7 +276008,7 @@ function getDeleteCommand({
|
|
|
276140
276008
|
task: async () => {
|
|
276141
276009
|
return deleteFunction(settlemint, serviceUniqueName);
|
|
276142
276010
|
},
|
|
276143
|
-
stopMessage: `${
|
|
276011
|
+
stopMessage: `${capitalizeFirstLetter(type4)} deleted`
|
|
276144
276012
|
});
|
|
276145
276013
|
if (isDefaultUniqueName) {
|
|
276146
276014
|
const newEnv = {
|
|
@@ -276149,9 +276017,9 @@ function getDeleteCommand({
|
|
|
276149
276017
|
...mapDefaultEnv(env2)
|
|
276150
276018
|
};
|
|
276151
276019
|
await writeEnvSpinner(!!prod, newEnv);
|
|
276152
|
-
note(`${
|
|
276020
|
+
note(`${capitalizeFirstLetter(type4)} removed as default`);
|
|
276153
276021
|
}
|
|
276154
|
-
outro(`${
|
|
276022
|
+
outro(`${capitalizeFirstLetter(type4)} ${result.name} deleted successfully`);
|
|
276155
276023
|
});
|
|
276156
276024
|
}
|
|
276157
276025
|
|
|
@@ -276234,12 +276102,12 @@ function getRestartCommand({
|
|
|
276234
276102
|
task: async () => {
|
|
276235
276103
|
return restartFunction(settlemint, serviceUniqueName);
|
|
276236
276104
|
},
|
|
276237
|
-
stopMessage: `${
|
|
276105
|
+
stopMessage: `${capitalizeFirstLetter(type4)} restart initiated`
|
|
276238
276106
|
});
|
|
276239
276107
|
if (wait) {
|
|
276240
276108
|
await waitForCompletion({ settlemint, type: type4, uniqueName: serviceUniqueName, action: "restart" });
|
|
276241
276109
|
}
|
|
276242
|
-
outro(`${
|
|
276110
|
+
outro(`${capitalizeFirstLetter(type4)} ${result.name} restart initiated successfully`);
|
|
276243
276111
|
});
|
|
276244
276112
|
}
|
|
276245
276113
|
|
|
@@ -276435,320 +276303,21 @@ function configCommand() {
|
|
|
276435
276303
|
const platformConfig = await settlemint.platform.config();
|
|
276436
276304
|
const useCases = getUseCases(platformConfig);
|
|
276437
276305
|
const starterkits = getStarterkits(platformConfig);
|
|
276438
|
-
|
|
276439
|
-
|
|
276440
|
-
|
|
276441
|
-
|
|
276442
|
-
|
|
276443
|
-
|
|
276444
|
-
|
|
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)));
|
|
276306
|
+
list("Templates (Starterkits)", starterkits.map((starterkit) => starterkit.id).sort());
|
|
276307
|
+
list("Use cases (Smart Contract Sets)", useCases.map((useCase) => useCase.id).sort());
|
|
276308
|
+
list("Providers and regions", platformConfig.deploymentEngineTargets.filter((provider) => !provider.disabled).sort((a8, b4) => a8.id.localeCompare(b4.id)).reduce((acc, provider) => {
|
|
276309
|
+
acc.push(provider.id);
|
|
276310
|
+
acc.push(provider.clusters.filter((cluster) => !cluster.disabled).map((region) => getRegionId(region.id)).sort());
|
|
276311
|
+
return acc;
|
|
276312
|
+
}, []));
|
|
276452
276313
|
list("Pre-deployed abis (Smart Contract Portal)", platformConfig.preDeployedContracts.sort());
|
|
276453
276314
|
outro("Platform configuration retrieved");
|
|
276454
276315
|
});
|
|
276455
276316
|
}
|
|
276456
276317
|
|
|
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
|
-
|
|
276749
276318
|
// src/commands/platform.ts
|
|
276750
276319
|
function platformCommand() {
|
|
276751
|
-
return new Command("platform").description("Manage SettleMint platform resources").addCommand(configCommand()).addCommand(createCommand3()).addCommand(updateCommand()).addCommand(deleteCommand()).addCommand(restartCommand())
|
|
276320
|
+
return new Command("platform").description("Manage SettleMint platform resources").addCommand(configCommand()).addCommand(createCommand3()).addCommand(updateCommand()).addCommand(deleteCommand()).addCommand(restartCommand());
|
|
276752
276321
|
}
|
|
276753
276322
|
|
|
276754
276323
|
// src/commands/smart-contract-set/create.ts
|
|
@@ -277050,6 +276619,7 @@ async function selectTargetNode({
|
|
|
277050
276619
|
if (node.status !== "COMPLETED") {
|
|
277051
276620
|
serviceNotRunningError("blockchain node", node.status);
|
|
277052
276621
|
}
|
|
276622
|
+
note(`Using blockchain node ${node.uniqueName}`);
|
|
277053
276623
|
return node;
|
|
277054
276624
|
}
|
|
277055
276625
|
|
|
@@ -277084,6 +276654,7 @@ async function addressPrompt({
|
|
|
277084
276654
|
SETTLEMINT_SMART_CONTRACT_ADDRESS: address
|
|
277085
276655
|
});
|
|
277086
276656
|
}
|
|
276657
|
+
note(`Deploying from ${address}`);
|
|
277087
276658
|
return address;
|
|
277088
276659
|
}
|
|
277089
276660
|
|
|
@@ -277321,6 +276892,54 @@ function sanitizeName(value4, length = 35) {
|
|
|
277321
276892
|
// src/utils/subgraph/subgraph-config.ts
|
|
277322
276893
|
import { readFile as readFile7, writeFile as writeFile8 } from "node:fs/promises";
|
|
277323
276894
|
import { basename as basename4, join as join11 } from "node:path";
|
|
276895
|
+
|
|
276896
|
+
// ../../node_modules/yaml/dist/index.js
|
|
276897
|
+
var composer = require_composer();
|
|
276898
|
+
var Document = require_Document();
|
|
276899
|
+
var Schema = require_Schema();
|
|
276900
|
+
var errors2 = require_errors3();
|
|
276901
|
+
var Alias = require_Alias();
|
|
276902
|
+
var identity3 = require_identity();
|
|
276903
|
+
var Pair = require_Pair();
|
|
276904
|
+
var Scalar = require_Scalar();
|
|
276905
|
+
var YAMLMap = require_YAMLMap();
|
|
276906
|
+
var YAMLSeq = require_YAMLSeq();
|
|
276907
|
+
var cst = require_cst();
|
|
276908
|
+
var lexer = require_lexer2();
|
|
276909
|
+
var lineCounter = require_line_counter();
|
|
276910
|
+
var parser = require_parser2();
|
|
276911
|
+
var publicApi = require_public_api();
|
|
276912
|
+
var visit2 = require_visit();
|
|
276913
|
+
var $Composer = composer.Composer;
|
|
276914
|
+
var $Document = Document.Document;
|
|
276915
|
+
var $Schema = Schema.Schema;
|
|
276916
|
+
var $YAMLError = errors2.YAMLError;
|
|
276917
|
+
var $YAMLParseError = errors2.YAMLParseError;
|
|
276918
|
+
var $YAMLWarning = errors2.YAMLWarning;
|
|
276919
|
+
var $Alias = Alias.Alias;
|
|
276920
|
+
var $isAlias = identity3.isAlias;
|
|
276921
|
+
var $isCollection = identity3.isCollection;
|
|
276922
|
+
var $isDocument = identity3.isDocument;
|
|
276923
|
+
var $isMap = identity3.isMap;
|
|
276924
|
+
var $isNode = identity3.isNode;
|
|
276925
|
+
var $isPair = identity3.isPair;
|
|
276926
|
+
var $isScalar = identity3.isScalar;
|
|
276927
|
+
var $isSeq = identity3.isSeq;
|
|
276928
|
+
var $Pair = Pair.Pair;
|
|
276929
|
+
var $Scalar = Scalar.Scalar;
|
|
276930
|
+
var $YAMLMap = YAMLMap.YAMLMap;
|
|
276931
|
+
var $YAMLSeq = YAMLSeq.YAMLSeq;
|
|
276932
|
+
var $Lexer = lexer.Lexer;
|
|
276933
|
+
var $LineCounter = lineCounter.LineCounter;
|
|
276934
|
+
var $Parser = parser.Parser;
|
|
276935
|
+
var $parse = publicApi.parse;
|
|
276936
|
+
var $parseAllDocuments = publicApi.parseAllDocuments;
|
|
276937
|
+
var $parseDocument = publicApi.parseDocument;
|
|
276938
|
+
var $stringify = publicApi.stringify;
|
|
276939
|
+
var $visit = visit2.visit;
|
|
276940
|
+
var $visitAsync = visit2.visitAsync;
|
|
276941
|
+
|
|
276942
|
+
// src/utils/subgraph/subgraph-config.ts
|
|
277324
276943
|
var CONFIG_FILE_PATH = "./subgraph/subgraph.config.json";
|
|
277325
276944
|
var isGenerated = (path8 = process.cwd()) => exists2(join11(path8, CONFIG_FILE_PATH));
|
|
277326
276945
|
var getSubgraphYamlFile = async (path8 = process.cwd()) => {
|
|
@@ -277635,24 +277254,14 @@ function getCommandPath(command) {
|
|
|
277635
277254
|
}
|
|
277636
277255
|
return parts.join(" ");
|
|
277637
277256
|
}
|
|
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
|
-
}
|
|
277645
277257
|
function addHooksToCommand(cmd2, rootCmd) {
|
|
277646
277258
|
const extendedCmd = cmd2;
|
|
277647
277259
|
extendedCmd.hook("preAction", async (thisCommand) => {
|
|
277648
|
-
if (isLeafCommand(thisCommand) && !isJsonOrYamlOutput(thisCommand)) {
|
|
277649
|
-
ascii();
|
|
277650
|
-
}
|
|
277651
277260
|
const commandPath = getCommandPath(thisCommand);
|
|
277652
277261
|
rootCmd._lastCommand = thisCommand;
|
|
277653
277262
|
rootCmd._lastCommand._commandPath = commandPath;
|
|
277654
277263
|
}).hook("postAction", async (thisCommand) => {
|
|
277655
|
-
if (
|
|
277264
|
+
if (thisCommand.commands.length === 0) {
|
|
277656
277265
|
const commandPath = getCommandPath(thisCommand);
|
|
277657
277266
|
if (commandPath) {
|
|
277658
277267
|
await telemetry({
|
|
@@ -277699,6 +277308,7 @@ function sdkCliCommand(exitOverride = undefined) {
|
|
|
277699
277308
|
}
|
|
277700
277309
|
|
|
277701
277310
|
// src/cli.ts
|
|
277311
|
+
ascii();
|
|
277702
277312
|
sdkCliCommand();
|
|
277703
277313
|
|
|
277704
|
-
//# debugId=
|
|
277314
|
+
//# debugId=19221616086277D264756E2164756E21
|