@settlemint/sdk-cli 1.0.4-pra9599691 → 1.0.4-prcee1afef
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 +57 -57
- package/dist/cli.js.map +3 -3
- package/package.json +3 -3
package/dist/cli.js
CHANGED
|
@@ -209455,7 +209455,7 @@ ${Bt.cyan(Yt)}
|
|
|
209455
209455
|
code: "ENOENT"
|
|
209456
209456
|
}), getPathInfo = (e9, t7) => {
|
|
209457
209457
|
var r6 = t7.colon || or;
|
|
209458
|
-
var i6 = e9.match(/\//) || nr && e9.match(/\\/) ? [""] : [...nr ? [process.cwd()] : [], ...(t7.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.
|
|
209458
|
+
var i6 = e9.match(/\//) || nr && e9.match(/\\/) ? [""] : [...nr ? [process.cwd()] : [], ...(t7.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.X5wKWWZFFk:/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)];
|
|
209459
209459
|
var n6 = nr ? t7.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
|
|
209460
209460
|
var a5 = nr ? n6.split(r6) : [""];
|
|
209461
209461
|
if (nr) {
|
|
@@ -212592,7 +212592,7 @@ ${whileRunning(e9)}`;
|
|
|
212592
212592
|
};
|
|
212593
212593
|
ni = Object.assign(async function _main() {
|
|
212594
212594
|
var e9 = new Cli({
|
|
212595
|
-
binaryVersion: "1.0.4-
|
|
212595
|
+
binaryVersion: "1.0.4-prcee1afef",
|
|
212596
212596
|
binaryLabel: "gql.tada CLI",
|
|
212597
212597
|
binaryName: "gql.tada"
|
|
212598
212598
|
});
|
|
@@ -220182,7 +220182,7 @@ var require_lib4 = __commonJS((exports, module) => {
|
|
|
220182
220182
|
var rRel = new RegExp(`^\\.${rSlash.source}`);
|
|
220183
220183
|
var getNotFoundError2 = (cmd2) => Object.assign(new Error(`not found: ${cmd2}`), { code: "ENOENT" });
|
|
220184
220184
|
var getPathInfo2 = (cmd2, {
|
|
220185
|
-
path: optPath = "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.
|
|
220185
|
+
path: optPath = "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.X5wKWWZFFk:/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",
|
|
220186
220186
|
pathExt: optPathExt = process.env.PATHEXT,
|
|
220187
220187
|
delimiter: optDelimiter = delimiter
|
|
220188
220188
|
}) => {
|
|
@@ -220386,7 +220386,7 @@ var require_lib5 = __commonJS((exports, module) => {
|
|
|
220386
220386
|
let pathToInitial;
|
|
220387
220387
|
try {
|
|
220388
220388
|
pathToInitial = which.sync(initialCmd, {
|
|
220389
|
-
path: options.env && findInObject(options.env, "PATH") || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.
|
|
220389
|
+
path: options.env && findInObject(options.env, "PATH") || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.X5wKWWZFFk:/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",
|
|
220390
220390
|
pathext: options.env && findInObject(options.env, "PATHEXT") || process.env.PATHEXT
|
|
220391
220391
|
}).toLowerCase();
|
|
220392
220392
|
} catch (err) {
|
|
@@ -221103,7 +221103,7 @@ var require_lib6 = __commonJS((exports, module) => {
|
|
|
221103
221103
|
var rRel = new RegExp(`^\\.${rSlash.source}`);
|
|
221104
221104
|
var getNotFoundError2 = (cmd2) => Object.assign(new Error(`not found: ${cmd2}`), { code: "ENOENT" });
|
|
221105
221105
|
var getPathInfo2 = (cmd2, {
|
|
221106
|
-
path: optPath = "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.
|
|
221106
|
+
path: optPath = "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.X5wKWWZFFk:/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",
|
|
221107
221107
|
pathExt: optPathExt = process.env.PATHEXT,
|
|
221108
221108
|
delimiter: optDelimiter = delimiter
|
|
221109
221109
|
}) => {
|
|
@@ -234964,7 +234964,7 @@ var require_which2 = __commonJS((exports, module) => {
|
|
|
234964
234964
|
const colon = opt2.colon || COLON;
|
|
234965
234965
|
const pathEnv = cmd2.match(/\//) || isWindows2 && cmd2.match(/\\/) ? [""] : [
|
|
234966
234966
|
...isWindows2 ? [process.cwd()] : [],
|
|
234967
|
-
...(opt2.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.
|
|
234967
|
+
...(opt2.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.X5wKWWZFFk:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin").split(colon)
|
|
234968
234968
|
];
|
|
234969
234969
|
const pathExtExe = isWindows2 ? opt2.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
|
|
234970
234970
|
const pathExt = isWindows2 ? pathExtExe.split(colon) : [""];
|
|
@@ -267152,7 +267152,7 @@ function mergeOthers(values, utils, meta) {
|
|
|
267152
267152
|
var maskTokens = (output) => {
|
|
267153
267153
|
return output.replace(/sm_(pat|aat|sat)_[0-9a-zA-Z]+/g, "***");
|
|
267154
267154
|
};
|
|
267155
|
-
var
|
|
267155
|
+
var cancel = (msg) => {
|
|
267156
267156
|
console.log("");
|
|
267157
267157
|
console.log(inverse(redBright(maskTokens(msg))));
|
|
267158
267158
|
console.log("");
|
|
@@ -267258,7 +267258,7 @@ async function loadEnvironmentEnv(validateEnv, prod, path4 = process.cwd()) {
|
|
|
267258
267258
|
...defaultEnv
|
|
267259
267259
|
});
|
|
267260
267260
|
} catch (error) {
|
|
267261
|
-
|
|
267261
|
+
cancel(error.message);
|
|
267262
267262
|
return {};
|
|
267263
267263
|
}
|
|
267264
267264
|
}
|
|
@@ -267438,7 +267438,7 @@ var ascii = () => console.log(magentaBright(`
|
|
|
267438
267438
|
var maskTokens2 = (output) => {
|
|
267439
267439
|
return output.replace(/sm_(pat|aat|sat)_[0-9a-zA-Z]+/g, "***");
|
|
267440
267440
|
};
|
|
267441
|
-
var
|
|
267441
|
+
var cancel2 = (msg) => {
|
|
267442
267442
|
console.log("");
|
|
267443
267443
|
console.log(inverse(redBright(maskTokens2(msg))));
|
|
267444
267444
|
console.log("");
|
|
@@ -267514,7 +267514,7 @@ ${error.stack}`));
|
|
|
267514
267514
|
var package_default = {
|
|
267515
267515
|
name: "@settlemint/sdk-cli",
|
|
267516
267516
|
description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
|
|
267517
|
-
version: "1.0.4-
|
|
267517
|
+
version: "1.0.4-prcee1afef",
|
|
267518
267518
|
type: "module",
|
|
267519
267519
|
private: false,
|
|
267520
267520
|
license: "FSL-1.1-MIT",
|
|
@@ -267567,8 +267567,8 @@ var package_default = {
|
|
|
267567
267567
|
"@inquirer/input": "4.1.3",
|
|
267568
267568
|
"@inquirer/password": "4.0.6",
|
|
267569
267569
|
"@inquirer/select": "4.0.6",
|
|
267570
|
-
"@settlemint/sdk-js": "1.0.4-
|
|
267571
|
-
"@settlemint/sdk-utils": "1.0.4-
|
|
267570
|
+
"@settlemint/sdk-js": "1.0.4-prcee1afef",
|
|
267571
|
+
"@settlemint/sdk-utils": "1.0.4-prcee1afef",
|
|
267572
267572
|
"get-tsconfig": "4.8.1",
|
|
267573
267573
|
giget: "1.2.3"
|
|
267574
267574
|
},
|
|
@@ -267631,15 +267631,15 @@ async function writeTemplate(template, directory, filename) {
|
|
|
267631
267631
|
// src/error/missing-config-error.ts
|
|
267632
267632
|
function missingAccessTokenError(personalAccessTokenExists) {
|
|
267633
267633
|
if (personalAccessTokenExists) {
|
|
267634
|
-
return
|
|
267634
|
+
return cancel2("No access token found, please run `settlemint connect` to connect to your instance.");
|
|
267635
267635
|
}
|
|
267636
|
-
return
|
|
267636
|
+
return cancel2("No personal access token found, please run `settlemint login`, then run `settlemint connect` to connect using an application access token.");
|
|
267637
267637
|
}
|
|
267638
267638
|
function missingPersonalAccessTokenError() {
|
|
267639
|
-
return
|
|
267639
|
+
return cancel2("No personal access token found for instance, please run `settlemint login` to login to your instance");
|
|
267640
267640
|
}
|
|
267641
267641
|
function missingApplication() {
|
|
267642
|
-
return
|
|
267642
|
+
return cancel2("No application configured, please run `settlemint connect` to connect to your application");
|
|
267643
267643
|
}
|
|
267644
267644
|
|
|
267645
267645
|
// src/utils/config.ts
|
|
@@ -267728,7 +267728,7 @@ async function getInstanceCredentials(instance, throwOnMissingInstance = true) {
|
|
|
267728
267728
|
if (!throwOnMissingInstance) {
|
|
267729
267729
|
return;
|
|
267730
267730
|
}
|
|
267731
|
-
|
|
267731
|
+
cancel2(`No configuration found for instance '${instance}'${Object.keys(config3.instances).length > 0 ? `
|
|
267732
267732
|
Configured instances:
|
|
267733
267733
|
${Object.keys(config3.instances).map((i) => `- '${i}'`).join(`
|
|
267734
267734
|
`)}` : ""}`);
|
|
@@ -268002,7 +268002,7 @@ var et2 = l3((Re2, tt2) => {
|
|
|
268002
268002
|
var g6 = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys", Y3 = h5("path"), Bt2 = g6 ? ";" : ":", V4 = U4(), J3 = (t7) => Object.assign(new Error(`not found: ${t7}`), { code: "ENOENT" }), Q3 = (t7, e9) => {
|
|
268003
268003
|
let n6 = e9.colon || Bt2, r6 = t7.match(/\//) || g6 && t7.match(/\\/) ? [""] : [
|
|
268004
268004
|
...g6 ? [process.cwd()] : [],
|
|
268005
|
-
...(e9.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.
|
|
268005
|
+
...(e9.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.X5wKWWZFFk:/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(n6)
|
|
268006
268006
|
], s7 = g6 ? e9.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "", o7 = g6 ? s7.split(n6) : [""];
|
|
268007
268007
|
return g6 && t7.indexOf(".") !== -1 && o7[0] !== "" && o7.unshift(""), {
|
|
268008
268008
|
pathEnv: r6,
|
|
@@ -270577,12 +270577,12 @@ function createPrompt(view) {
|
|
|
270577
270577
|
});
|
|
270578
270578
|
const screen = new ScreenManager(rl);
|
|
270579
270579
|
const { promise, resolve: resolve5, reject } = PromisePolyfill.withResolver();
|
|
270580
|
-
const
|
|
270580
|
+
const cancel3 = () => reject(new CancelPromptError);
|
|
270581
270581
|
if (signal) {
|
|
270582
270582
|
const abort = () => reject(new AbortPromptError({ cause: signal.reason }));
|
|
270583
270583
|
if (signal.aborted) {
|
|
270584
270584
|
abort();
|
|
270585
|
-
return Object.assign(promise, { cancel:
|
|
270585
|
+
return Object.assign(promise, { cancel: cancel3 });
|
|
270586
270586
|
}
|
|
270587
270587
|
signal.addEventListener("abort", abort);
|
|
270588
270588
|
cleanups.add(() => signal.removeEventListener("abort", abort));
|
|
@@ -270623,7 +270623,7 @@ function createPrompt(view) {
|
|
|
270623
270623
|
cleanups.forEach((cleanup) => cleanup());
|
|
270624
270624
|
screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
|
|
270625
270625
|
output.end();
|
|
270626
|
-
}).then(() => promise), { cancel:
|
|
270626
|
+
}).then(() => promise), { cancel: cancel3 });
|
|
270627
270627
|
});
|
|
270628
270628
|
};
|
|
270629
270629
|
return prompt;
|
|
@@ -270791,7 +270791,7 @@ async function subgraphNamePrompt(env2, accept) {
|
|
|
270791
270791
|
return subgraphNames;
|
|
270792
270792
|
}
|
|
270793
270793
|
if (subgraphNames.length === 0) {
|
|
270794
|
-
|
|
270794
|
+
cancel2("No subgraphs found");
|
|
270795
270795
|
}
|
|
270796
270796
|
if (subgraphNames.length === 1) {
|
|
270797
270797
|
return subgraphNames;
|
|
@@ -270805,7 +270805,7 @@ async function subgraphNamePrompt(env2, accept) {
|
|
|
270805
270805
|
default: ALL
|
|
270806
270806
|
});
|
|
270807
270807
|
if (!subgraphName) {
|
|
270808
|
-
|
|
270808
|
+
cancel2("No subgraph selected");
|
|
270809
270809
|
}
|
|
270810
270810
|
return subgraphName === ALL ? subgraphNames : [subgraphName];
|
|
270811
270811
|
}
|
|
@@ -273560,7 +273560,7 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
|
|
|
273560
273560
|
|
|
273561
273561
|
// src/error/nothing-selected-error.ts
|
|
273562
273562
|
function nothingSelectedError(type4) {
|
|
273563
|
-
return
|
|
273563
|
+
return cancel2(`No ${type4} selected. Please select a ${type4} to continue.`);
|
|
273564
273564
|
}
|
|
273565
273565
|
|
|
273566
273566
|
// src/commands/connect/application.prompt.ts
|
|
@@ -273572,7 +273572,7 @@ async function applicationPrompt(env2, applications, accept) {
|
|
|
273572
273572
|
return defaultApplication;
|
|
273573
273573
|
}
|
|
273574
273574
|
if (applications.length === 0) {
|
|
273575
|
-
|
|
273575
|
+
cancel2("No applications found");
|
|
273576
273576
|
}
|
|
273577
273577
|
if (is_in_ci_default) {
|
|
273578
273578
|
nothingSelectedError("application");
|
|
@@ -273586,7 +273586,7 @@ async function applicationPrompt(env2, applications, accept) {
|
|
|
273586
273586
|
default: defaultApplication
|
|
273587
273587
|
});
|
|
273588
273588
|
if (!application) {
|
|
273589
|
-
|
|
273589
|
+
cancel2("No application selected");
|
|
273590
273590
|
}
|
|
273591
273591
|
return application;
|
|
273592
273592
|
}
|
|
@@ -273780,7 +273780,7 @@ async function instancePrompt(env2, accept, freeTextInput = false, isCi = is_in_
|
|
|
273780
273780
|
return sanitizeInstanceUrl(instance);
|
|
273781
273781
|
}
|
|
273782
273782
|
if (knownInstances.length === 0) {
|
|
273783
|
-
|
|
273783
|
+
cancel2("No instances found. Please run `settlemint login` to configure an instance.");
|
|
273784
273784
|
}
|
|
273785
273785
|
if (knownInstances.length === 1) {
|
|
273786
273786
|
return sanitizeInstanceUrl(knownInstances[0]);
|
|
@@ -273943,7 +273943,7 @@ async function workspacePrompt(env2, workspaces, accept) {
|
|
|
273943
273943
|
return defaultWorkspace;
|
|
273944
273944
|
}
|
|
273945
273945
|
if (workspaces.length === 0) {
|
|
273946
|
-
|
|
273946
|
+
cancel2("No workspaces found");
|
|
273947
273947
|
}
|
|
273948
273948
|
if (is_in_ci_default) {
|
|
273949
273949
|
nothingSelectedError("workspace");
|
|
@@ -273957,7 +273957,7 @@ async function workspacePrompt(env2, workspaces, accept) {
|
|
|
273957
273957
|
default: defaultWorkspace
|
|
273958
273958
|
});
|
|
273959
273959
|
if (!workspace) {
|
|
273960
|
-
|
|
273960
|
+
cancel2("No workspace selected");
|
|
273961
273961
|
}
|
|
273962
273962
|
return workspace;
|
|
273963
273963
|
}
|
|
@@ -274102,13 +274102,13 @@ async function namePrompt(env2, argument) {
|
|
|
274102
274102
|
// src/commands/create/template.prompt.ts
|
|
274103
274103
|
async function templatePrompt(templates2, argument) {
|
|
274104
274104
|
if (templates2.length === 0) {
|
|
274105
|
-
|
|
274105
|
+
cancel2("No templates found");
|
|
274106
274106
|
}
|
|
274107
274107
|
const defaultInstance = argument;
|
|
274108
274108
|
if (defaultInstance) {
|
|
274109
274109
|
const template2 = templates2.find((template3) => template3.value === argument);
|
|
274110
274110
|
if (!template2) {
|
|
274111
|
-
|
|
274111
|
+
cancel2(`No template found with name '${argument}'`);
|
|
274112
274112
|
}
|
|
274113
274113
|
return template2;
|
|
274114
274114
|
}
|
|
@@ -274839,7 +274839,7 @@ function createCommand2() {
|
|
|
274839
274839
|
default: false
|
|
274840
274840
|
});
|
|
274841
274841
|
if (!confirmEmpty) {
|
|
274842
|
-
|
|
274842
|
+
cancel2(`Error: A folder with the name ${targetDir} already exists in the current directory.`);
|
|
274843
274843
|
}
|
|
274844
274844
|
await emptyDir(projectDir);
|
|
274845
274845
|
}
|
|
@@ -274920,7 +274920,7 @@ function loginCommand() {
|
|
|
274920
274920
|
let personalAccessToken = "";
|
|
274921
274921
|
if (tokenStdin) {
|
|
274922
274922
|
if (cmd2.args.length > 0) {
|
|
274923
|
-
|
|
274923
|
+
cancel2("A token should be provided using STDIN, not as an argument");
|
|
274924
274924
|
}
|
|
274925
274925
|
personalAccessToken = await Promise.race([
|
|
274926
274926
|
(async () => {
|
|
@@ -274935,7 +274935,7 @@ function loginCommand() {
|
|
|
274935
274935
|
try {
|
|
274936
274936
|
validate2(PersonalAccessTokenSchema2, personalAccessToken);
|
|
274937
274937
|
} catch {
|
|
274938
|
-
|
|
274938
|
+
cancel2("Invalid personal access token");
|
|
274939
274939
|
}
|
|
274940
274940
|
} else {
|
|
274941
274941
|
personalAccessToken = await personalAccessTokenPrompt(env2, selectedInstance, autoAccept);
|
|
@@ -274947,7 +274947,7 @@ function loginCommand() {
|
|
|
274947
274947
|
try {
|
|
274948
274948
|
await loginSpinner(client);
|
|
274949
274949
|
} catch (error5) {
|
|
274950
|
-
|
|
274950
|
+
cancel2(`Invalid personal access token for instance ${selectedInstance}`);
|
|
274951
274951
|
}
|
|
274952
274952
|
await storeCredentials(personalAccessToken, selectedInstance);
|
|
274953
274953
|
if (isDefault) {
|
|
@@ -275108,12 +275108,12 @@ function sanitizeCommandName(name2) {
|
|
|
275108
275108
|
async function providerPrompt(platformConfig, argument) {
|
|
275109
275109
|
const possibleProviders = platformConfig.deploymentEngineTargets.filter((target) => !target.disabled);
|
|
275110
275110
|
if (possibleProviders.length === 0) {
|
|
275111
|
-
|
|
275111
|
+
cancel2("No providers found");
|
|
275112
275112
|
}
|
|
275113
275113
|
if (argument) {
|
|
275114
275114
|
const selectedProvider = possibleProviders.find((target) => target.id === argument);
|
|
275115
275115
|
if (!selectedProvider) {
|
|
275116
|
-
|
|
275116
|
+
cancel2(`No provider found with id '${argument}'. Possible providers: '${possibleProviders.map((target) => target.id).sort().join(", ")}'`);
|
|
275117
275117
|
}
|
|
275118
275118
|
return selectedProvider;
|
|
275119
275119
|
}
|
|
@@ -275139,12 +275139,12 @@ function getRegionId(regionId) {
|
|
|
275139
275139
|
async function regionPrompt(provider, argument) {
|
|
275140
275140
|
const possibleRegions = provider.clusters.filter((cluster) => !cluster.disabled).map((cluster) => ({ ...cluster, id: getRegionId(cluster.id) }));
|
|
275141
275141
|
if (possibleRegions.length === 0) {
|
|
275142
|
-
|
|
275142
|
+
cancel2("No regions found");
|
|
275143
275143
|
}
|
|
275144
275144
|
if (argument) {
|
|
275145
275145
|
const selectedRegion = possibleRegions.find((cluster) => cluster.id === argument);
|
|
275146
275146
|
if (!selectedRegion) {
|
|
275147
|
-
|
|
275147
|
+
cancel2(`No region found with id '${argument}'. Possible regions: '${possibleRegions.map((cluster) => cluster.id).sort().join(", ")}'`);
|
|
275148
275148
|
}
|
|
275149
275149
|
return selectedRegion;
|
|
275150
275150
|
}
|
|
@@ -275995,14 +275995,14 @@ function smartContractPortalMiddlewareCreateCommand() {
|
|
|
275995
275995
|
parsedAbis.push(...parsedAbiResults);
|
|
275996
275996
|
} catch (err) {
|
|
275997
275997
|
const error5 = err;
|
|
275998
|
-
|
|
275998
|
+
cancel2(`Failed to read or parse ABI file: ${error5.message}`);
|
|
275999
275999
|
}
|
|
276000
276000
|
}
|
|
276001
276001
|
if (includePredeployedAbis && includePredeployedAbis.length > 0) {
|
|
276002
276002
|
const platformConfig = await settlemint.platform.config();
|
|
276003
276003
|
const invalidPredeployedAbis = includePredeployedAbis.filter((abi) => !platformConfig.preDeployedContracts.some((contract) => contract === abi));
|
|
276004
276004
|
if (invalidPredeployedAbis.length > 0) {
|
|
276005
|
-
|
|
276005
|
+
cancel2(`Invalid pre-deployed abis: '${invalidPredeployedAbis.join(", ")}'. Possible values: '${platformConfig.preDeployedContracts.sort().join(", ")}'`);
|
|
276006
276006
|
}
|
|
276007
276007
|
}
|
|
276008
276008
|
const result = await showSpinner(() => settlemint.middleware.create({
|
|
@@ -276512,7 +276512,7 @@ function getRestartCommand({
|
|
|
276512
276512
|
const isDefaultUniqueName = uniqueName === "default";
|
|
276513
276513
|
const serviceUniqueName = isDefaultUniqueName ? typeof env2[envKey] === "string" ? env2[envKey] : null : uniqueName;
|
|
276514
276514
|
if (!serviceUniqueName) {
|
|
276515
|
-
|
|
276515
|
+
cancel2(`No default ${type4} found in your .env file. Please provide a valid ${type4} unique name or set a default ${type4} first.`);
|
|
276516
276516
|
}
|
|
276517
276517
|
const result = await spinner({
|
|
276518
276518
|
startMessage: `Restarting ${type4}`,
|
|
@@ -276670,7 +276670,7 @@ function customDeploymentsUpdateCommand() {
|
|
|
276670
276670
|
const env2 = await loadEnv(false, !!prod);
|
|
276671
276671
|
const customDeploymentUniqueName = uniqueName ?? env2.SETTLEMINT_CUSTOM_DEPLOYMENT;
|
|
276672
276672
|
if (!customDeploymentUniqueName) {
|
|
276673
|
-
|
|
276673
|
+
cancel2("No custom deployment unique name specified. Please provide it either via the --unique-name flag or by setting the SETTLEMINT_CUSTOM_DEPLOYMENT environment variable");
|
|
276674
276674
|
}
|
|
276675
276675
|
const instance = await instancePrompt(env2, true);
|
|
276676
276676
|
const accessToken = await getApplicationOrPersonalAccessToken({
|
|
@@ -276749,18 +276749,18 @@ import { join as join10 } from "node:path";
|
|
|
276749
276749
|
// src/commands/smart-contract-set/prompts/use-case.prompt.ts
|
|
276750
276750
|
async function useCasePrompt(platformConfig, argument) {
|
|
276751
276751
|
if (platformConfig.smartContractSets.sets.length === 0) {
|
|
276752
|
-
|
|
276752
|
+
cancel2("No use cases found");
|
|
276753
276753
|
}
|
|
276754
276754
|
const useCasesNotFeatureFlagged = platformConfig.smartContractSets.sets.filter((set) => !set.featureflagged);
|
|
276755
276755
|
if (argument) {
|
|
276756
276756
|
const selectedUseCase = platformConfig.smartContractSets.sets.find((set) => set.id === argument);
|
|
276757
276757
|
if (!selectedUseCase) {
|
|
276758
|
-
|
|
276758
|
+
cancel2(`No use case found with id '${argument}'. Possible use cases: '${useCasesNotFeatureFlagged.map((set) => set.id).sort().join(", ")}'`);
|
|
276759
276759
|
}
|
|
276760
276760
|
return selectedUseCase;
|
|
276761
276761
|
}
|
|
276762
276762
|
if (useCasesNotFeatureFlagged.length === 0) {
|
|
276763
|
-
|
|
276763
|
+
cancel2("No use cases found");
|
|
276764
276764
|
}
|
|
276765
276765
|
if (useCasesNotFeatureFlagged.length === 1) {
|
|
276766
276766
|
return useCasesNotFeatureFlagged[0];
|
|
@@ -276804,7 +276804,7 @@ function createCommand4() {
|
|
|
276804
276804
|
default: false
|
|
276805
276805
|
});
|
|
276806
276806
|
if (!confirmEmpty) {
|
|
276807
|
-
|
|
276807
|
+
cancel2(`Error: A folder with the name ${targetDir} already exists in the current directory.`);
|
|
276808
276808
|
}
|
|
276809
276809
|
await rmdir(projectDir, { recursive: true });
|
|
276810
276810
|
}
|
|
@@ -276982,7 +276982,7 @@ function hardhatDeployLocalCommand() {
|
|
|
276982
276982
|
|
|
276983
276983
|
// src/error/service-not-running-error.ts
|
|
276984
276984
|
function serviceNotRunningError(service, status) {
|
|
276985
|
-
return
|
|
276985
|
+
return cancel2(`The ${service} service is not in a Running state (status: ${status}). ${getStatusAction(status)}`);
|
|
276986
276986
|
}
|
|
276987
276987
|
function getStatusAction(status) {
|
|
276988
276988
|
if (status === "PAUSED" || status === "AUTO_PAUSED") {
|
|
@@ -277010,12 +277010,12 @@ async function selectTargetNode({
|
|
|
277010
277010
|
const nodes = await settlemint.blockchainNode.list(env2.SETTLEMINT_APPLICATION);
|
|
277011
277011
|
const evmNodes = nodes.filter((node2) => node2.isEvm);
|
|
277012
277012
|
if (evmNodes.length === 0) {
|
|
277013
|
-
|
|
277013
|
+
cancel2("No EVM blockchain nodes found. Please create an EVM blockchain node and try again.");
|
|
277014
277014
|
}
|
|
277015
277015
|
const nodesWithPrivateKey = await Promise.all(nodes.map((node2) => settlemint.blockchainNode.read(node2.uniqueName)));
|
|
277016
277016
|
const nodesWithActivePrivateKey = nodesWithPrivateKey.filter((node2) => node2.privateKeys && node2.privateKeys.length > 0);
|
|
277017
277017
|
if (nodesWithActivePrivateKey.length === 0) {
|
|
277018
|
-
|
|
277018
|
+
cancel2("No EVM blockchain nodes with private keys found. Please activate a private key on your EVM blockchain node and try again.");
|
|
277019
277019
|
}
|
|
277020
277020
|
const blockchainNode = await blockchainNodePrompt({
|
|
277021
277021
|
env: env2,
|
|
@@ -277030,7 +277030,7 @@ async function selectTargetNode({
|
|
|
277030
277030
|
} else {
|
|
277031
277031
|
node = await settlemint.blockchainNode.read(nodeUniqueName);
|
|
277032
277032
|
if (!node.isEvm) {
|
|
277033
|
-
|
|
277033
|
+
cancel2("The specified blockchain node is not an EVM blockchain node. Please specify an EVM blockchain node to continue.");
|
|
277034
277034
|
}
|
|
277035
277035
|
}
|
|
277036
277036
|
if (node.status !== "COMPLETED") {
|
|
@@ -277054,7 +277054,7 @@ async function addressPrompt({
|
|
|
277054
277054
|
return defaultAddress;
|
|
277055
277055
|
}
|
|
277056
277056
|
if (possiblePrivateKeys.length === 0) {
|
|
277057
|
-
|
|
277057
|
+
cancel2("No ECDSA P256 or HSM ECDSA P256 private key is activated on the node to sign the transaction.");
|
|
277058
277058
|
}
|
|
277059
277059
|
const address = await esm_default2({
|
|
277060
277060
|
message: "Which private key do you want to deploy from?",
|
|
@@ -277156,7 +277156,7 @@ function hardhatDeployRemoteCommand() {
|
|
|
277156
277156
|
const envConfig = await settlemint.foundry.env(node.uniqueName);
|
|
277157
277157
|
const hardhatConfig = await getHardhatConfigData(envConfig);
|
|
277158
277158
|
if (verify && !hardhatConfig?.etherscan?.apiKey) {
|
|
277159
|
-
|
|
277159
|
+
cancel2("It is not possible to verify the deployment on this network unless you supply an Etherscan API key in the hardhat.config.ts file");
|
|
277160
277160
|
}
|
|
277161
277161
|
const address = await addressPrompt({ env: env2, accept: autoAccept, prod, node, hardhatConfig });
|
|
277162
277162
|
if (!address) {
|
|
@@ -277598,12 +277598,12 @@ function subgraphDeployCommand() {
|
|
|
277598
277598
|
if (generated) {
|
|
277599
277599
|
const currentConfig = await getSubgraphConfig();
|
|
277600
277600
|
if (!currentConfig || currentConfig?.datasources.some((ds) => ds.address === "0x0000000000000000000000000000000000000000")) {
|
|
277601
|
-
|
|
277601
|
+
cancel2('The "subgraph/subgraph.config.json" config has not been set, ensure all the contracts listed have an address added');
|
|
277602
277602
|
}
|
|
277603
277603
|
}
|
|
277604
277604
|
const graphName = await subgraphNamePrompt2(subgraphName, env2, autoAccept, !!prod);
|
|
277605
277605
|
if (!graphName) {
|
|
277606
|
-
|
|
277606
|
+
cancel2("No graph name provided. Please provide a graph name to continue.");
|
|
277607
277607
|
}
|
|
277608
277608
|
const middlewareAdminUrl = new URL(`/${encodeURIComponent(accessToken)}/admin`, theGraphMiddleware.serviceUrl).toString();
|
|
277609
277609
|
await executeCommand(command, [...args, "graph", "create", "--node", middlewareAdminUrl, graphName]);
|
|
@@ -277718,7 +277718,7 @@ function sdkCliCommand(exitOverride = undefined) {
|
|
|
277718
277718
|
message: error5.message
|
|
277719
277719
|
});
|
|
277720
277720
|
}
|
|
277721
|
-
|
|
277721
|
+
cancel2(error5.message);
|
|
277722
277722
|
});
|
|
277723
277723
|
}
|
|
277724
277724
|
return sdkcli;
|
|
@@ -277728,4 +277728,4 @@ function sdkCliCommand(exitOverride = undefined) {
|
|
|
277728
277728
|
ascii();
|
|
277729
277729
|
sdkCliCommand();
|
|
277730
277730
|
|
|
277731
|
-
//# debugId=
|
|
277731
|
+
//# debugId=F3CDBEBBD624E61F64756E2164756E21
|