@settlemint/sdk-cli 1.2.1 → 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 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.1/sdk/cli/docs/settlemint.md) for available commands.
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
@@ -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.1",
259520
+ version: "1.2.2-main4f82daf4",
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.7",
259566
- "@inquirer/input": "4.1.7",
259567
- "@inquirer/password": "4.0.10",
259568
- "@inquirer/select": "4.0.10",
259569
- "@settlemint/sdk-js": "1.2.1",
259570
- "@settlemint/sdk-utils": "1.2.1",
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) => "123456789".includes(key.name);
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.clearLine(0);
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 (subgraphNames.length === 0 && !allowNew) {
265288
- cancel2("No subgraphs found");
265289
- }
265290
- if (subgraphNames.length === 1) {
265291
- return subgraphNames;
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=43BEC3639E4EBB3F64756E2164756E21
273429
+ //# debugId=D10F145FC41809A664756E2164756E21