@settlemint/sdk-cli 1.1.16-pr9e12784f → 1.1.16-prd12a9b64

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 CHANGED
@@ -10957,7 +10957,7 @@ var require_brace_expansion = __commonJS((exports, module) => {
10957
10957
  }
10958
10958
  });
10959
10959
 
10960
- // ../../node_modules/@commander-js/extra-typings/node_modules/commander/lib/error.js
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/@commander-js/extra-typings/node_modules/commander/lib/argument.js
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/@commander-js/extra-typings/node_modules/commander/lib/help.js
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/@commander-js/extra-typings/node_modules/commander/lib/option.js
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/@commander-js/extra-typings/node_modules/commander/lib/suggestSimilar.js
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/@commander-js/extra-typings/node_modules/commander/lib/command.js
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/@commander-js/extra-typings/node_modules/commander/index.js
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();
@@ -253517,7 +253517,7 @@ import path from "node:path";
253517
253517
  import fs, { promises as fsPromises } from "node:fs";
253518
253518
  import { fileURLToPath } from "node:url";
253519
253519
 
253520
- // ../../node_modules/yocto-queue/index.js
253520
+ // ../../node_modules/p-locate/node_modules/p-limit/node_modules/yocto-queue/index.js
253521
253521
  class Node {
253522
253522
  value;
253523
253523
  next;
@@ -253582,7 +253582,7 @@ class Queue {
253582
253582
  }
253583
253583
  }
253584
253584
 
253585
- // ../../node_modules/p-limit/index.js
253585
+ // ../../node_modules/p-locate/node_modules/p-limit/index.js
253586
253586
  function pLimit(concurrency) {
253587
253587
  if (!((Number.isInteger(concurrency) || concurrency === Number.POSITIVE_INFINITY) && concurrency > 0)) {
253588
253588
  throw new TypeError("Expected `concurrency` to be a number from 1 and up");
@@ -259370,7 +259370,7 @@ async function loadEnvironmentEnv(validateEnv, prod, path4 = process.cwd()) {
259370
259370
  logLevel: "error",
259371
259371
  overload: true,
259372
259372
  quiet: true,
259373
- path: join(path4, ".env")
259373
+ path: [join(path4, ".env"), join(path4, ".env.local")]
259374
259374
  });
259375
259375
  if (!parsed) {
259376
259376
  parsed = {};
@@ -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.1.16-pr9e12784f",
259520
+ version: "1.1.16-prd12a9b64",
259521
259521
  type: "module",
259522
259522
  private: false,
259523
259523
  license: "FSL-1.1-MIT",
@@ -259560,13 +259560,14 @@ var package_default = {
259560
259560
  tinyexec: "0.3.2"
259561
259561
  },
259562
259562
  devDependencies: {
259563
- "@commander-js/extra-typings": "13.1.0",
259563
+ "@commander-js/extra-typings": "11.1.0",
259564
+ commander: "11.1.0",
259564
259565
  "@inquirer/confirm": "5.1.7",
259565
259566
  "@inquirer/input": "4.1.7",
259566
259567
  "@inquirer/password": "4.0.10",
259567
259568
  "@inquirer/select": "4.0.10",
259568
- "@settlemint/sdk-js": "1.1.16-pr9e12784f",
259569
- "@settlemint/sdk-utils": "1.1.16-pr9e12784f",
259569
+ "@settlemint/sdk-js": "1.1.16-prd12a9b64",
259570
+ "@settlemint/sdk-utils": "1.1.16-prd12a9b64",
259570
259571
  "@types/node": "22.13.10",
259571
259572
  "@types/semver": "7.5.8",
259572
259573
  "@types/which": "3.0.4",
@@ -270343,7 +270344,7 @@ function blockchainNetworkBesuCreateCommand() {
270343
270344
  subType: "Besu",
270344
270345
  alias: "b",
270345
270346
  execute: (cmd2, baseAction) => {
270346
- addClusterServiceArgs(cmd2).option("-app, --application <application>", "The unique name of the application to create the network in (defaults to application from env)").requiredOption("--node-name <name>", "Name of the node").option("--chain-id <chainId>", "The chain ID for the network", parseNumber).option("--contract-size-limit <limit>", "Maximum contract size limit", parseNumber).option("--evm-stack-size <size>", "EVM stack size", parseNumber).option("--gas-limit <limit>", "Block gas limit").option("--gas-price <price>", "Gas price in wei", parseNumber).option("--seconds-per-block <seconds>", "Block time in seconds", parseNumber).action(async (name3, {
270347
+ addClusterServiceArgs(cmd2).option("--app, --application <application>", "The unique name of the application to create the network in (defaults to application from env)").requiredOption("--node-name <name>", "Name of the node").option("--chain-id <chainId>", "The chain ID for the network", parseNumber).option("--contract-size-limit <limit>", "Maximum contract size limit", parseNumber).option("--evm-stack-size <size>", "EVM stack size", parseNumber).option("--gas-limit <limit>", "Block gas limit").option("--gas-price <price>", "Gas price in wei", parseNumber).option("--seconds-per-block <seconds>", "Block time in seconds", parseNumber).action(async (name3, {
270347
270348
  application,
270348
270349
  chainId,
270349
270350
  contractSizeLimit,
@@ -270571,7 +270572,7 @@ function applicationAccessTokenCreateCommand() {
270571
270572
  type: "application access token",
270572
270573
  alias: "aat",
270573
270574
  execute: (cmd2, baseAction) => {
270574
- cmd2.option("-app, --application <application>", "The application unique name to create the application access token for (defaults to application from env)").addOption(new Option("-v, --validity-period <period>", "The validity period for the token").choices(["DAYS_7", "DAYS_30", "DAYS_60", "DAYS_90", "NONE"]).default("DAYS_7")).action(async (name3, { application, validityPeriod, ...defaultArgs }) => {
270575
+ cmd2.option("--app, --application <application>", "The application unique name to create the application access token for (defaults to application from env)").addOption(new Option("-v, --validity-period <period>", "The validity period for the token").choices(["DAYS_7", "DAYS_30", "DAYS_60", "DAYS_90", "NONE"]).default("DAYS_7")).action(async (name3, { application, validityPeriod, ...defaultArgs }) => {
270575
270576
  return baseAction(defaultArgs, async (settlemint, env2, showSpinner) => {
270576
270577
  const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
270577
270578
  if (!applicationUniqueName) {
@@ -270739,7 +270740,7 @@ function blockchainNodeBesuCreateCommand() {
270739
270740
  subType: "Besu",
270740
270741
  alias: "b",
270741
270742
  execute: (cmd2, baseAction) => {
270742
- addClusterServiceArgs(cmd2).option("-app, --application <application>", "The application unique name to create the node in (defaults to application from env)").option("--blockchain-network <blockchainNetwork>", "Blockchain network unique name to add this node to").option("--node-identity <nodeIdentity>", "EC DSA P256 private key to use as the node identity").addOption(new Option("--node-type <nodeType>", "Type of the node").choices(["VALIDATOR", "NON_VALIDATOR"]).makeOptionMandatory()).action(async (name3, {
270743
+ addClusterServiceArgs(cmd2).option("--app, --application <application>", "The application unique name to create the node in (defaults to application from env)").option("--blockchain-network <blockchainNetwork>", "Blockchain network unique name to add this node to").option("--node-identity <nodeIdentity>", "EC DSA P256 private key to use as the node identity").addOption(new Option("--node-type <nodeType>", "Type of the node").choices(["VALIDATOR", "NON_VALIDATOR"]).makeOptionMandatory()).action(async (name3, {
270743
270744
  application,
270744
270745
  provider,
270745
270746
  region,
@@ -271855,7 +271856,7 @@ function yamlOutput(data) {
271855
271856
 
271856
271857
  // src/commands/platform/config.ts
271857
271858
  function configCommand() {
271858
- return new Command("config").alias("c").description("Get platform configuration").option("--prod", "Connect to your production environment").option("-i, --instance <instance>", "The instance to connect to (defaults to the instance in the .env file)").addOption(new Option("-o, --output <output>", "The output format").choices(["json", "yaml"])).action(async ({ prod, instance, output }) => {
271859
+ return new Command("config").alias("cfg").description("Get platform configuration").option("--prod", "Connect to your production environment").option("-i, --instance <instance>", "The instance to connect to (defaults to the instance in the .env file)").addOption(new Option("-o, --output <output>", "The output format").choices(["json", "yaml"])).action(async ({ prod, instance, output }) => {
271859
271860
  const printToTerminal = !output;
271860
271861
  if (printToTerminal) {
271861
271862
  intro("Getting platform configuration");
@@ -272099,7 +272100,7 @@ function servicesCommand() {
272099
272100
  description: "List the application services for multiple types",
272100
272101
  command: "platform list services --type blockchain-network blockchain-node middleware"
272101
272102
  }
272102
- ])).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 }) => {
272103
+ ])).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 }) => {
272103
272104
  const printToTerminal = !output || output === "wide";
272104
272105
  if (printToTerminal) {
272105
272106
  intro("Listing application services");
@@ -273278,18 +273279,18 @@ function subgraphRemoveCommand() {
273278
273279
 
273279
273280
  // src/commands/smart-contract.set.ts
273280
273281
  function smartContractSetCommand() {
273281
- const foundry = new Command("foundry").alias("f").description("Foundry commands for building and testing smart contracts");
273282
+ const foundry = new Command("foundry").alias("f").enablePositionalOptions().description("Foundry commands for building and testing smart contracts");
273282
273283
  foundry.addCommand(foundryBuildCommand());
273283
273284
  foundry.addCommand(foundryFormatCommand());
273284
273285
  foundry.addCommand(foundryNetworkCommand());
273285
273286
  foundry.addCommand(foundryTestCommand());
273286
- const hardhat = new Command("hardhat").alias("h").description("Hardhat commands for building, testing and deploying smart contracts");
273287
+ const hardhat = new Command("hardhat").alias("h").enablePositionalOptions().description("Hardhat commands for building, testing and deploying smart contracts");
273287
273288
  hardhat.addCommand(hardhatBuildCommand());
273288
273289
  hardhat.addCommand(hardhatDeployCommand());
273289
273290
  hardhat.addCommand(hardhatNetworkCommand());
273290
273291
  hardhat.addCommand(hardhatScriptCommand());
273291
273292
  hardhat.addCommand(hardhatTestCommand());
273292
- const subgraph = new Command("subgraph").alias("sg").description("Commands for managing TheGraph subgraphs for smart contract indexing");
273293
+ const subgraph = new Command("subgraph").alias("sg").enablePositionalOptions().description("Commands for managing TheGraph subgraphs for smart contract indexing");
273293
273294
  subgraph.addCommand(subgraphBuildCommand());
273294
273295
  subgraph.addCommand(subgraphCodegenCommand());
273295
273296
  subgraph.addCommand(subgraphDeployCommand());
@@ -273415,4 +273416,4 @@ async function sdkCliCommand(argv = process.argv) {
273415
273416
  // src/cli.ts
273416
273417
  sdkCliCommand();
273417
273418
 
273418
- //# debugId=A7E57A767023041164756E2164756E21
273419
+ //# debugId=80813ADBFC04148C64756E2164756E21