@settlemint/sdk-cli 1.2.1-prff8f415d → 1.2.2-main4f82daf4
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 +39 -29
- package/dist/cli.js.map +7 -7
- package/package.json +8 -8
package/README.md
CHANGED
@@ -249,7 +249,7 @@ settlemint scs subgraph deploy --accept-defaults <subgraph-name>
|
|
249
249
|
|
250
250
|
## API Reference
|
251
251
|
|
252
|
-
See the [documentation](https://github.com/settlemint/sdk/tree/v1.2.
|
252
|
+
See the [documentation](https://github.com/settlemint/sdk/tree/v1.2.2/sdk/cli/docs/settlemint.md) for available commands.
|
253
253
|
|
254
254
|
## Contributing
|
255
255
|
|
package/dist/cli.js
CHANGED
@@ -10957,7 +10957,7 @@ var require_brace_expansion = __commonJS((exports, module) => {
|
|
10957
10957
|
}
|
10958
10958
|
});
|
10959
10959
|
|
10960
|
-
// ../../node_modules
|
10960
|
+
// ../../node_modules/commander/lib/error.js
|
10961
10961
|
var require_error = __commonJS((exports) => {
|
10962
10962
|
class CommanderError extends Error {
|
10963
10963
|
constructor(exitCode, code, message) {
|
@@ -10981,7 +10981,7 @@ var require_error = __commonJS((exports) => {
|
|
10981
10981
|
exports.InvalidArgumentError = InvalidArgumentError;
|
10982
10982
|
});
|
10983
10983
|
|
10984
|
-
// ../../node_modules
|
10984
|
+
// ../../node_modules/commander/lib/argument.js
|
10985
10985
|
var require_argument = __commonJS((exports) => {
|
10986
10986
|
var { InvalidArgumentError } = require_error();
|
10987
10987
|
|
@@ -11060,7 +11060,7 @@ var require_argument = __commonJS((exports) => {
|
|
11060
11060
|
exports.humanReadableArgName = humanReadableArgName;
|
11061
11061
|
});
|
11062
11062
|
|
11063
|
-
// ../../node_modules
|
11063
|
+
// ../../node_modules/commander/lib/help.js
|
11064
11064
|
var require_help = __commonJS((exports) => {
|
11065
11065
|
var { humanReadableArgName } = require_argument();
|
11066
11066
|
|
@@ -11307,7 +11307,7 @@ var require_help = __commonJS((exports) => {
|
|
11307
11307
|
exports.Help = Help;
|
11308
11308
|
});
|
11309
11309
|
|
11310
|
-
// ../../node_modules
|
11310
|
+
// ../../node_modules/commander/lib/option.js
|
11311
11311
|
var require_option = __commonJS((exports) => {
|
11312
11312
|
var { InvalidArgumentError } = require_error();
|
11313
11313
|
|
@@ -11459,7 +11459,7 @@ var require_option = __commonJS((exports) => {
|
|
11459
11459
|
exports.DualOptions = DualOptions;
|
11460
11460
|
});
|
11461
11461
|
|
11462
|
-
// ../../node_modules
|
11462
|
+
// ../../node_modules/commander/lib/suggestSimilar.js
|
11463
11463
|
var require_suggestSimilar = __commonJS((exports) => {
|
11464
11464
|
var maxDistance = 3;
|
11465
11465
|
function editDistance(a, b) {
|
@@ -11532,7 +11532,7 @@ var require_suggestSimilar = __commonJS((exports) => {
|
|
11532
11532
|
exports.suggestSimilar = suggestSimilar;
|
11533
11533
|
});
|
11534
11534
|
|
11535
|
-
// ../../node_modules
|
11535
|
+
// ../../node_modules/commander/lib/command.js
|
11536
11536
|
var require_command = __commonJS((exports) => {
|
11537
11537
|
var EventEmitter2 = __require("events").EventEmitter;
|
11538
11538
|
var childProcess = __require("child_process");
|
@@ -12715,7 +12715,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
12715
12715
|
exports.Command = Command;
|
12716
12716
|
});
|
12717
12717
|
|
12718
|
-
// ../../node_modules
|
12718
|
+
// ../../node_modules/commander/index.js
|
12719
12719
|
var require_commander = __commonJS((exports, module) => {
|
12720
12720
|
var { Argument } = require_argument();
|
12721
12721
|
var { Command } = require_command();
|
@@ -259517,7 +259517,7 @@ function pruneCurrentEnv(currentEnv, env2) {
|
|
259517
259517
|
var package_default = {
|
259518
259518
|
name: "@settlemint/sdk-cli",
|
259519
259519
|
description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
|
259520
|
-
version: "1.2.
|
259520
|
+
version: "1.2.2-main4f82daf4",
|
259521
259521
|
type: "module",
|
259522
259522
|
private: false,
|
259523
259523
|
license: "FSL-1.1-MIT",
|
@@ -259561,13 +259561,13 @@ var package_default = {
|
|
259561
259561
|
},
|
259562
259562
|
devDependencies: {
|
259563
259563
|
"@commander-js/extra-typings": "11.1.0",
|
259564
|
-
commander: "
|
259565
|
-
"@inquirer/confirm": "5.1.
|
259566
|
-
"@inquirer/input": "4.1.
|
259567
|
-
"@inquirer/password": "4.0.
|
259568
|
-
"@inquirer/select": "4.0
|
259569
|
-
"@settlemint/sdk-js": "1.2.
|
259570
|
-
"@settlemint/sdk-utils": "1.2.
|
259564
|
+
commander: "11.1.0",
|
259565
|
+
"@inquirer/confirm": "5.1.8",
|
259566
|
+
"@inquirer/input": "4.1.8",
|
259567
|
+
"@inquirer/password": "4.0.11",
|
259568
|
+
"@inquirer/select": "4.1.0",
|
259569
|
+
"@settlemint/sdk-js": "1.2.2-main4f82daf4",
|
259570
|
+
"@settlemint/sdk-utils": "1.2.2-main4f82daf4",
|
259571
259571
|
"@types/node": "22.13.10",
|
259572
259572
|
"@types/semver": "7.5.8",
|
259573
259573
|
"@types/which": "3.0.4",
|
@@ -259659,7 +259659,7 @@ var {
|
|
259659
259659
|
var isUpKey = (key) => key.name === "up" || key.name === "k" || key.ctrl && key.name === "p";
|
259660
259660
|
var isDownKey = (key) => key.name === "down" || key.name === "j" || key.ctrl && key.name === "n";
|
259661
259661
|
var isBackspaceKey = (key) => key.name === "backspace";
|
259662
|
-
var isNumberKey = (key) => "
|
259662
|
+
var isNumberKey = (key) => "1234567890".includes(key.name);
|
259663
259663
|
var isEnterKey = (key) => key.name === "enter" || key.name === "return";
|
259664
259664
|
// ../../node_modules/@inquirer/core/dist/esm/lib/errors.js
|
259665
259665
|
class AbortPromptError extends Error {
|
@@ -262199,6 +262199,8 @@ var createCustomDeployment = graphql(`
|
|
262199
262199
|
$port: Int!
|
262200
262200
|
$provider: String!
|
262201
262201
|
$region: String!
|
262202
|
+
$size: ClusterServiceSize
|
262203
|
+
$type: ClusterServiceType
|
262202
262204
|
) {
|
262203
262205
|
createCustomDeployment(
|
262204
262206
|
applicationId: $applicationId
|
@@ -262210,6 +262212,8 @@ var createCustomDeployment = graphql(`
|
|
262210
262212
|
environmentVariables: $environmentVariables
|
262211
262213
|
provider: $provider
|
262212
262214
|
region: $region
|
262215
|
+
size: $size
|
262216
|
+
type: $type
|
262213
262217
|
) {
|
262214
262218
|
...CustomDeployment
|
262215
262219
|
}
|
@@ -265131,7 +265135,8 @@ var selectTheme = {
|
|
265131
265135
|
disabled: (text2) => import_yoctocolors_cjs3.default.dim(`- ${text2}`),
|
265132
265136
|
description: (text2) => import_yoctocolors_cjs3.default.cyan(text2)
|
265133
265137
|
},
|
265134
|
-
helpMode: "auto"
|
265138
|
+
helpMode: "auto",
|
265139
|
+
indexMode: "hidden"
|
265135
265140
|
};
|
265136
265141
|
function isSelectable(item) {
|
265137
265142
|
return !Separator.isSeparator(item) && !item.disabled;
|
@@ -265196,13 +265201,15 @@ var esm_default3 = createPrompt((config3, done) => {
|
|
265196
265201
|
} while (!isSelectable(items[next]));
|
265197
265202
|
setActive(next);
|
265198
265203
|
}
|
265199
|
-
} else if (isNumberKey(key2)) {
|
265200
|
-
rl.
|
265201
|
-
const position = Number(key2.name) - 1;
|
265204
|
+
} else if (isNumberKey(key2) && !Number.isNaN(Number(rl.line))) {
|
265205
|
+
const position = Number(rl.line) - 1;
|
265202
265206
|
const item = items[position];
|
265203
265207
|
if (item != null && isSelectable(item)) {
|
265204
265208
|
setActive(position);
|
265205
265209
|
}
|
265210
|
+
searchTimeoutRef.current = setTimeout(() => {
|
265211
|
+
rl.clearLine(0);
|
265212
|
+
}, 700);
|
265206
265213
|
} else if (isBackspaceKey(key2)) {
|
265207
265214
|
rl.clearLine(0);
|
265208
265215
|
} else {
|
@@ -265238,17 +265245,18 @@ ${theme.style.help("(Use arrow keys to reveal more choices)")}`;
|
|
265238
265245
|
const page = usePagination({
|
265239
265246
|
items,
|
265240
265247
|
active,
|
265241
|
-
renderItem({ item, isActive }) {
|
265248
|
+
renderItem({ item, isActive, index }) {
|
265242
265249
|
if (Separator.isSeparator(item)) {
|
265243
265250
|
return ` ${item.separator}`;
|
265244
265251
|
}
|
265252
|
+
const indexLabel = theme.indexMode === "number" ? `${index + 1}. ` : "";
|
265245
265253
|
if (item.disabled) {
|
265246
265254
|
const disabledLabel = typeof item.disabled === "string" ? item.disabled : "(disabled)";
|
265247
|
-
return theme.style.disabled(`${item.name} ${disabledLabel}`);
|
265255
|
+
return theme.style.disabled(`${indexLabel}${item.name} ${disabledLabel}`);
|
265248
265256
|
}
|
265249
265257
|
const color = isActive ? theme.style.highlight : (x6) => x6;
|
265250
265258
|
const cursor = isActive ? theme.icon.cursor : ` `;
|
265251
|
-
return color(`${cursor} ${item.name}`);
|
265259
|
+
return color(`${cursor} ${indexLabel}${item.name}`);
|
265252
265260
|
},
|
265253
265261
|
pageSize,
|
265254
265262
|
loop
|
@@ -265284,11 +265292,13 @@ async function subgraphPrompt({
|
|
265284
265292
|
}
|
265285
265293
|
return subgraphNames.length === 1 ? subgraphNames : [];
|
265286
265294
|
}
|
265287
|
-
if (
|
265288
|
-
|
265289
|
-
|
265290
|
-
|
265291
|
-
|
265295
|
+
if (!allowNew) {
|
265296
|
+
if (subgraphNames.length === 0) {
|
265297
|
+
cancel2("No subgraphs found");
|
265298
|
+
}
|
265299
|
+
if (subgraphNames.length === 1) {
|
265300
|
+
return subgraphNames;
|
265301
|
+
}
|
265292
265302
|
}
|
265293
265303
|
const choices = subgraphNames.slice().sort();
|
265294
265304
|
if (allowAll) {
|
@@ -273416,4 +273426,4 @@ async function sdkCliCommand(argv = process.argv) {
|
|
273416
273426
|
// src/cli.ts
|
273417
273427
|
sdkCliCommand();
|
273418
273428
|
|
273419
|
-
//# debugId=
|
273429
|
+
//# debugId=D10F145FC41809A664756E2164756E21
|