@settlemint/sdk-cli 1.2.2 → 1.2.3-main441a55ee
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 +27 -21
- package/dist/cli.js.map +5 -5
- package/package.json +7 -7
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.3/sdk/cli/docs/settlemint.md) for available commands.
|
253
253
|
|
254
254
|
## Contributing
|
255
255
|
|
package/dist/cli.js
CHANGED
@@ -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.3-main441a55ee",
|
259521
259521
|
type: "module",
|
259522
259522
|
private: false,
|
259523
259523
|
license: "FSL-1.1-MIT",
|
@@ -259562,12 +259562,12 @@ var package_default = {
|
|
259562
259562
|
devDependencies: {
|
259563
259563
|
"@commander-js/extra-typings": "11.1.0",
|
259564
259564
|
commander: "11.1.0",
|
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.
|
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.3-main441a55ee",
|
259570
|
+
"@settlemint/sdk-utils": "1.2.3-main441a55ee",
|
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 {
|
@@ -265135,7 +265135,8 @@ var selectTheme = {
|
|
265135
265135
|
disabled: (text2) => import_yoctocolors_cjs3.default.dim(`- ${text2}`),
|
265136
265136
|
description: (text2) => import_yoctocolors_cjs3.default.cyan(text2)
|
265137
265137
|
},
|
265138
|
-
helpMode: "auto"
|
265138
|
+
helpMode: "auto",
|
265139
|
+
indexMode: "hidden"
|
265139
265140
|
};
|
265140
265141
|
function isSelectable(item) {
|
265141
265142
|
return !Separator.isSeparator(item) && !item.disabled;
|
@@ -265200,13 +265201,15 @@ var esm_default3 = createPrompt((config3, done) => {
|
|
265200
265201
|
} while (!isSelectable(items[next]));
|
265201
265202
|
setActive(next);
|
265202
265203
|
}
|
265203
|
-
} else if (isNumberKey(key2)) {
|
265204
|
-
rl.
|
265205
|
-
const position = Number(key2.name) - 1;
|
265204
|
+
} else if (isNumberKey(key2) && !Number.isNaN(Number(rl.line))) {
|
265205
|
+
const position = Number(rl.line) - 1;
|
265206
265206
|
const item = items[position];
|
265207
265207
|
if (item != null && isSelectable(item)) {
|
265208
265208
|
setActive(position);
|
265209
265209
|
}
|
265210
|
+
searchTimeoutRef.current = setTimeout(() => {
|
265211
|
+
rl.clearLine(0);
|
265212
|
+
}, 700);
|
265210
265213
|
} else if (isBackspaceKey(key2)) {
|
265211
265214
|
rl.clearLine(0);
|
265212
265215
|
} else {
|
@@ -265242,17 +265245,18 @@ ${theme.style.help("(Use arrow keys to reveal more choices)")}`;
|
|
265242
265245
|
const page = usePagination({
|
265243
265246
|
items,
|
265244
265247
|
active,
|
265245
|
-
renderItem({ item, isActive }) {
|
265248
|
+
renderItem({ item, isActive, index }) {
|
265246
265249
|
if (Separator.isSeparator(item)) {
|
265247
265250
|
return ` ${item.separator}`;
|
265248
265251
|
}
|
265252
|
+
const indexLabel = theme.indexMode === "number" ? `${index + 1}. ` : "";
|
265249
265253
|
if (item.disabled) {
|
265250
265254
|
const disabledLabel = typeof item.disabled === "string" ? item.disabled : "(disabled)";
|
265251
|
-
return theme.style.disabled(`${item.name} ${disabledLabel}`);
|
265255
|
+
return theme.style.disabled(`${indexLabel}${item.name} ${disabledLabel}`);
|
265252
265256
|
}
|
265253
265257
|
const color = isActive ? theme.style.highlight : (x6) => x6;
|
265254
265258
|
const cursor = isActive ? theme.icon.cursor : ` `;
|
265255
|
-
return color(`${cursor} ${item.name}`);
|
265259
|
+
return color(`${cursor} ${indexLabel}${item.name}`);
|
265256
265260
|
},
|
265257
265261
|
pageSize,
|
265258
265262
|
loop
|
@@ -265288,11 +265292,13 @@ async function subgraphPrompt({
|
|
265288
265292
|
}
|
265289
265293
|
return subgraphNames.length === 1 ? subgraphNames : [];
|
265290
265294
|
}
|
265291
|
-
if (
|
265292
|
-
|
265293
|
-
|
265294
|
-
|
265295
|
-
|
265295
|
+
if (!allowNew) {
|
265296
|
+
if (subgraphNames.length === 0) {
|
265297
|
+
cancel2("No subgraphs found");
|
265298
|
+
}
|
265299
|
+
if (subgraphNames.length === 1) {
|
265300
|
+
return subgraphNames;
|
265301
|
+
}
|
265296
265302
|
}
|
265297
265303
|
const choices = subgraphNames.slice().sort();
|
265298
265304
|
if (allowAll) {
|
@@ -273420,4 +273426,4 @@ async function sdkCliCommand(argv = process.argv) {
|
|
273420
273426
|
// src/cli.ts
|
273421
273427
|
sdkCliCommand();
|
273422
273428
|
|
273423
|
-
//# debugId=
|
273429
|
+
//# debugId=6C2CBDBD15C862CB64756E2164756E21
|