@settlemint/sdk-cli 2.3.0-prfa205dcb → 2.3.1-pr9c56c214

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/v2.3.0/sdk/cli/docs/settlemint.md) for available commands.
252
+ See the [documentation](https://github.com/settlemint/sdk/tree/v2.3.1/sdk/cli/docs/settlemint.md) for available commands.
253
253
 
254
254
  ## Contributing
255
255
 
package/dist/cli.js CHANGED
@@ -11082,7 +11082,7 @@ var require_brace_expansion = __commonJS((exports, module) => {
11082
11082
  }
11083
11083
  });
11084
11084
 
11085
- // ../../node_modules/commander/lib/error.js
11085
+ // ../../node_modules/@commander-js/extra-typings/node_modules/commander/lib/error.js
11086
11086
  var require_error = __commonJS((exports) => {
11087
11087
  class CommanderError extends Error {
11088
11088
  constructor(exitCode, code, message) {
@@ -11106,7 +11106,7 @@ var require_error = __commonJS((exports) => {
11106
11106
  exports.InvalidArgumentError = InvalidArgumentError;
11107
11107
  });
11108
11108
 
11109
- // ../../node_modules/commander/lib/argument.js
11109
+ // ../../node_modules/@commander-js/extra-typings/node_modules/commander/lib/argument.js
11110
11110
  var require_argument = __commonJS((exports) => {
11111
11111
  var { InvalidArgumentError } = require_error();
11112
11112
 
@@ -11185,7 +11185,7 @@ var require_argument = __commonJS((exports) => {
11185
11185
  exports.humanReadableArgName = humanReadableArgName;
11186
11186
  });
11187
11187
 
11188
- // ../../node_modules/commander/lib/help.js
11188
+ // ../../node_modules/@commander-js/extra-typings/node_modules/commander/lib/help.js
11189
11189
  var require_help = __commonJS((exports) => {
11190
11190
  var { humanReadableArgName } = require_argument();
11191
11191
 
@@ -11432,7 +11432,7 @@ var require_help = __commonJS((exports) => {
11432
11432
  exports.Help = Help;
11433
11433
  });
11434
11434
 
11435
- // ../../node_modules/commander/lib/option.js
11435
+ // ../../node_modules/@commander-js/extra-typings/node_modules/commander/lib/option.js
11436
11436
  var require_option = __commonJS((exports) => {
11437
11437
  var { InvalidArgumentError } = require_error();
11438
11438
 
@@ -11584,7 +11584,7 @@ var require_option = __commonJS((exports) => {
11584
11584
  exports.DualOptions = DualOptions;
11585
11585
  });
11586
11586
 
11587
- // ../../node_modules/commander/lib/suggestSimilar.js
11587
+ // ../../node_modules/@commander-js/extra-typings/node_modules/commander/lib/suggestSimilar.js
11588
11588
  var require_suggestSimilar = __commonJS((exports) => {
11589
11589
  var maxDistance = 3;
11590
11590
  function editDistance(a, b) {
@@ -11657,7 +11657,7 @@ var require_suggestSimilar = __commonJS((exports) => {
11657
11657
  exports.suggestSimilar = suggestSimilar;
11658
11658
  });
11659
11659
 
11660
- // ../../node_modules/commander/lib/command.js
11660
+ // ../../node_modules/@commander-js/extra-typings/node_modules/commander/lib/command.js
11661
11661
  var require_command = __commonJS((exports) => {
11662
11662
  var EventEmitter2 = __require("events").EventEmitter;
11663
11663
  var childProcess = __require("child_process");
@@ -12840,7 +12840,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
12840
12840
  exports.Command = Command;
12841
12841
  });
12842
12842
 
12843
- // ../../node_modules/commander/index.js
12843
+ // ../../node_modules/@commander-js/extra-typings/node_modules/commander/index.js
12844
12844
  var require_commander = __commonJS((exports, module) => {
12845
12845
  var { Argument } = require_argument();
12846
12846
  var { Command } = require_command();
@@ -244830,7 +244830,7 @@ var require_public_api = __commonJS((exports) => {
244830
244830
  });
244831
244831
 
244832
244832
  // ../utils/dist/environment.mjs
244833
- import { join } from "node:path";
244833
+ import { join } from "path";
244834
244834
 
244835
244835
  // ../../node_modules/yoctocolors/base.js
244836
244836
  var exports_base = {};
@@ -249149,9 +249149,9 @@ var z = /* @__PURE__ */ Object.freeze({
249149
249149
 
249150
249150
  // ../utils/dist/environment.mjs
249151
249151
  var import_dotenvx = __toESM(require_main2(), 1);
249152
- import { writeFile } from "node:fs/promises";
249153
- import { join as join3 } from "node:path";
249154
- import { dirname } from "node:path";
249152
+ import { writeFile } from "fs/promises";
249153
+ import { join as join3 } from "path";
249154
+ import { dirname } from "path";
249155
249155
 
249156
249156
  // ../../node_modules/find-up/index.js
249157
249157
  import path2 from "node:path";
@@ -249387,9 +249387,9 @@ async function findUp(name, options = {}) {
249387
249387
  }
249388
249388
 
249389
249389
  // ../utils/dist/environment.mjs
249390
- import { stat } from "node:fs/promises";
249391
- import { readFile } from "node:fs/promises";
249392
- import { dirname as dirname2, join as join2 } from "node:path";
249390
+ import { stat } from "fs/promises";
249391
+ import { readFile } from "fs/promises";
249392
+ import { dirname as dirname2, join as join2 } from "path";
249393
249393
 
249394
249394
  // ../../node_modules/minimatch/dist/esm/index.js
249395
249395
  var import_brace_expansion = __toESM(require_brace_expansion(), 1);
@@ -255168,7 +255168,7 @@ function pruneCurrentEnv(currentEnv, env2) {
255168
255168
  var package_default = {
255169
255169
  name: "@settlemint/sdk-cli",
255170
255170
  description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
255171
- version: "2.3.0-prfa205dcb",
255171
+ version: "2.3.1-pr9c56c214",
255172
255172
  type: "module",
255173
255173
  private: false,
255174
255174
  license: "FSL-1.1-MIT",
@@ -255212,13 +255212,13 @@ var package_default = {
255212
255212
  },
255213
255213
  devDependencies: {
255214
255214
  "@commander-js/extra-typings": "11.1.0",
255215
- commander: "11.1.0",
255215
+ commander: "14.0.0",
255216
255216
  "@inquirer/confirm": "5.1.10",
255217
255217
  "@inquirer/input": "4.1.10",
255218
255218
  "@inquirer/password": "4.0.13",
255219
255219
  "@inquirer/select": "4.2.1",
255220
- "@settlemint/sdk-js": "2.3.0-prfa205dcb",
255221
- "@settlemint/sdk-utils": "2.3.0-prfa205dcb",
255220
+ "@settlemint/sdk-js": "2.3.1-pr9c56c214",
255221
+ "@settlemint/sdk-utils": "2.3.1-pr9c56c214",
255222
255222
  "@types/node": "22.15.18",
255223
255223
  "@types/semver": "7.7.0",
255224
255224
  "@types/which": "3.0.4",
@@ -256377,7 +256377,7 @@ class Separator {
256377
256377
  }
256378
256378
  }
256379
256379
  // ../utils/dist/terminal.mjs
256380
- import { spawn } from "node:child_process";
256380
+ import { spawn } from "child_process";
256381
256381
  var import_console_table_printer2 = __toESM(require_dist2(), 1);
256382
256382
  function shouldPrint() {
256383
256383
  return process.env.SETTLEMINT_DISABLE_TERMINAL !== "true";
@@ -257292,7 +257292,7 @@ function initGraphQLTada() {
257292
257292
  var t2 = initGraphQLTada();
257293
257293
 
257294
257294
  // ../js/dist/settlemint.mjs
257295
- import { createHash } from "node:crypto";
257295
+ import { createHash } from "crypto";
257296
257296
  var graphql = initGraphQLTada();
257297
257297
  var WorkspaceFragment = graphql(`
257298
257298
  fragment Workspace on Workspace {
@@ -258961,10 +258961,10 @@ function createSettleMintClient(options) {
258961
258961
  }
258962
258962
 
258963
258963
  // ../utils/dist/package-manager.mjs
258964
- import { readdir as readdir2, rm } from "node:fs/promises";
258965
- import { resolve as resolve2 } from "node:path";
258966
- import { dirname as dirname3 } from "node:path";
258967
- import { stat as stat2 } from "node:fs/promises";
258964
+ import { readdir as readdir2, rm } from "fs/promises";
258965
+ import { resolve as resolve2 } from "path";
258966
+ import { dirname as dirname3 } from "path";
258967
+ import { stat as stat2 } from "fs/promises";
258968
258968
 
258969
258969
  // ../../node_modules/package-manager-detector/dist/detect.mjs
258970
258970
  import fs2 from "node:fs/promises";
@@ -260043,8 +260043,8 @@ function replaceUnderscoresAndHyphensWithSpaces(s) {
260043
260043
  }
260044
260044
 
260045
260045
  // ../utils/dist/filesystem.mjs
260046
- import { dirname as dirname5 } from "node:path";
260047
- import { stat as stat3 } from "node:fs/promises";
260046
+ import { dirname as dirname5 } from "path";
260047
+ import { stat as stat3 } from "fs/promises";
260048
260048
  async function projectRoot3(fallbackToCwd = false, cwd) {
260049
260049
  const packageJsonPath = await findUp("package.json", { cwd });
260050
260050
  if (!packageJsonPath) {
@@ -260144,24 +260144,26 @@ async function validateSdkVersion(instance) {
260144
260144
  accessToken: "",
260145
260145
  anonymous: true
260146
260146
  });
260147
- const platformConfig = await settlemint.platform.config();
260148
- const currentVersion = package_default.version;
260149
- if (semver.gt(currentVersion, platformConfig.sdkVersion)) {
260150
- const url = new URL(instance);
260151
- const isManagedInstance = url.host === "settlemint.com" || url.host.endsWith(".settlemint.com");
260152
- if (isManagedInstance) {
260153
- return;
260154
- }
260155
- const instructions = await getUpgradeInstructions();
260156
- note(`SDK CLI version mismatch. The platform requires version '${platformConfig.sdkVersion}' but you are using a newer version '${currentVersion}'. This might lead to compatibility issues with the platform.
260147
+ try {
260148
+ const platformConfig = await settlemint.platform.config();
260149
+ const currentVersion = package_default.version;
260150
+ if (semver.gt(currentVersion, platformConfig.sdkVersion)) {
260151
+ const url = new URL(instance);
260152
+ const isManagedInstance = url.host === "settlemint.com" || url.host.endsWith(".settlemint.com");
260153
+ if (isManagedInstance) {
260154
+ return;
260155
+ }
260156
+ const instructions = await getUpgradeInstructions();
260157
+ note(`SDK CLI version mismatch. The platform requires version '${platformConfig.sdkVersion}' but you are using a newer version '${currentVersion}'. This might lead to compatibility issues with the platform.
260157
260158
 
260158
260159
  ${instructions}`, "warn");
260159
- } else if (semver.lt(currentVersion, platformConfig.sdkVersion)) {
260160
- const instructions = await getUpgradeInstructions();
260161
- note(`A newer version of the SDK CLI is available (${platformConfig.sdkVersion}). Please update your SDK CLI to ensure compatibility with the platform.
260160
+ } else if (semver.lt(currentVersion, platformConfig.sdkVersion)) {
260161
+ const instructions = await getUpgradeInstructions();
260162
+ note(`A newer version of the SDK CLI is available (${platformConfig.sdkVersion}). Please update your SDK CLI to ensure compatibility with the platform.
260162
260163
 
260163
260164
  ${instructions}`, "warn");
260164
- }
260165
+ }
260166
+ } catch {}
260165
260167
  }
260166
260168
  async function getInstanceFromCommand(command) {
260167
260169
  const options = command.opts();
@@ -270615,4 +270617,4 @@ async function sdkCliCommand(argv = process.argv) {
270615
270617
  // src/cli.ts
270616
270618
  sdkCliCommand();
270617
270619
 
270618
- //# debugId=C774D69B169686D564756E2164756E21
270620
+ //# debugId=884F8FC9229910F264756E2164756E21