@settlemint/sdk-cli 2.1.0 → 2.1.1-main25da2665

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.1.0/sdk/cli/docs/settlemint.md) for available commands.
252
+ See the [documentation](https://github.com/settlemint/sdk/tree/v2.1.1/sdk/cli/docs/settlemint.md) for available commands.
253
253
 
254
254
  ## Contributing
255
255
 
package/dist/cli.js CHANGED
@@ -837,7 +837,7 @@ var require_dist2 = __commonJS((exports) => {
837
837
  // ../../node_modules/@dotenvx/dotenvx/package.json
838
838
  var require_package = __commonJS((exports, module) => {
839
839
  module.exports = {
840
- version: "1.39.0",
840
+ version: "1.39.1",
841
841
  name: "@dotenvx/dotenvx",
842
842
  description: "a better dotenv–from the creator of `dotenv`",
843
843
  author: "@motdotla",
@@ -3329,7 +3329,7 @@ var require_fsx = __commonJS((exports, module) => {
3329
3329
  var require_package2 = __commonJS((exports, module) => {
3330
3330
  module.exports = {
3331
3331
  name: "dotenv",
3332
- version: "16.4.7",
3332
+ version: "16.5.0",
3333
3333
  description: "Loads environment variables from .env file",
3334
3334
  main: "lib/main.js",
3335
3335
  types: "lib/main.d.ts",
@@ -3360,6 +3360,7 @@ var require_package2 = __commonJS((exports, module) => {
3360
3360
  type: "git",
3361
3361
  url: "git://github.com/motdotla/dotenv.git"
3362
3362
  },
3363
+ homepage: "https://github.com/motdotla/dotenv#readme",
3363
3364
  funding: "https://dotenvx.com",
3364
3365
  keywords: [
3365
3366
  "dotenv",
@@ -3445,9 +3446,6 @@ var require_main = __commonJS((exports, module) => {
3445
3446
  }
3446
3447
  return DotenvModule.parse(decrypted);
3447
3448
  }
3448
- function _log(message) {
3449
- console.log(`[dotenv@${version}][INFO] ${message}`);
3450
- }
3451
3449
  function _warn(message) {
3452
3450
  console.log(`[dotenv@${version}][WARN] ${message}`);
3453
3451
  }
@@ -3520,7 +3518,10 @@ var require_main = __commonJS((exports, module) => {
3520
3518
  return envPath[0] === "~" ? path.join(os.homedir(), envPath.slice(1)) : envPath;
3521
3519
  }
3522
3520
  function _configVault(options) {
3523
- _log("Loading env from encrypted .env.vault");
3521
+ const debug = Boolean(options && options.debug);
3522
+ if (debug) {
3523
+ _debug("Loading env from encrypted .env.vault");
3524
+ }
3524
3525
  const parsed = DotenvModule._parseVault(options);
3525
3526
  let processEnv = process.env;
3526
3527
  if (options && options.processEnv != null) {
@@ -245110,7 +245111,8 @@ var DotEnvSchema = z.object({
245110
245111
  SETTLEMINT_BLOCKSCOUT: UniqueNameSchema.optional(),
245111
245112
  SETTLEMINT_BLOCKSCOUT_GRAPHQL_ENDPOINT: UrlSchema.optional(),
245112
245113
  SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT: UrlSchema.optional(),
245113
- SETTLEMINT_NEW_PROJECT_NAME: z.string().optional()
245114
+ SETTLEMINT_NEW_PROJECT_NAME: z.string().optional(),
245115
+ SETTLEMINT_LOG_LEVEL: z.enum(["debug", "info", "warn", "error", "none"]).default("warn")
245114
245116
  });
245115
245117
  var DotEnvSchemaPartial = DotEnvSchema.partial();
245116
245118
  var IdSchema = z.union([
@@ -245276,7 +245278,7 @@ function pruneCurrentEnv(currentEnv, env2) {
245276
245278
  var package_default = {
245277
245279
  name: "@settlemint/sdk-cli",
245278
245280
  description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
245279
- version: "2.1.0",
245281
+ version: "2.1.1-main25da2665",
245280
245282
  type: "module",
245281
245283
  private: false,
245282
245284
  license: "FSL-1.1-MIT",
@@ -245325,9 +245327,9 @@ var package_default = {
245325
245327
  "@inquirer/input": "4.1.9",
245326
245328
  "@inquirer/password": "4.0.12",
245327
245329
  "@inquirer/select": "4.1.1",
245328
- "@settlemint/sdk-js": "2.1.0",
245329
- "@settlemint/sdk-utils": "2.1.0",
245330
- "@types/node": "22.14.0",
245330
+ "@settlemint/sdk-js": "2.1.1-main25da2665",
245331
+ "@settlemint/sdk-utils": "2.1.1-main25da2665",
245332
+ "@types/node": "22.14.1",
245331
245333
  "@types/semver": "7.7.0",
245332
245334
  "@types/which": "3.0.4",
245333
245335
  "get-tsconfig": "4.10.0",
@@ -245340,7 +245342,7 @@ var package_default = {
245340
245342
  yoctocolors: "2.1.1"
245341
245343
  },
245342
245344
  peerDependencies: {
245343
- hardhat: "2.22.19"
245345
+ hardhat: "2.23.0"
245344
245346
  },
245345
245347
  peerDependenciesMeta: {
245346
245348
  hardhat: {
@@ -246766,7 +246768,8 @@ var DotEnvSchema2 = z.object({
246766
246768
  SETTLEMINT_BLOCKSCOUT: UniqueNameSchema2.optional(),
246767
246769
  SETTLEMINT_BLOCKSCOUT_GRAPHQL_ENDPOINT: UrlSchema2.optional(),
246768
246770
  SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT: UrlSchema2.optional(),
246769
- SETTLEMINT_NEW_PROJECT_NAME: z.string().optional()
246771
+ SETTLEMINT_NEW_PROJECT_NAME: z.string().optional(),
246772
+ SETTLEMINT_LOG_LEVEL: z.enum(["debug", "info", "warn", "error", "none"]).default("warn")
246770
246773
  });
246771
246774
  var DotEnvSchemaPartial2 = DotEnvSchema2.partial();
246772
246775
  var IdSchema2 = z.union([
@@ -250105,9 +250108,9 @@ async function codegenHasura(env2) {
250105
250108
  }
250106
250109
  const hasuraTemplate = `import { createHasuraClient } from "${PACKAGE_NAME}";
250107
250110
  import type { introspection } from "@schemas/hasura-env";
250108
- import { createLogger, requestLogger } from '@settlemint/sdk-utils/logging';
250111
+ import { createLogger, requestLogger, type LogLevel } from '@settlemint/sdk-utils/logging';
250109
250112
 
250110
- const logger = createLogger({ level: process.env.NODE_ENV === "production" ? "warn" : "info" });
250113
+ const logger = createLogger({ level: process.env.SETTLEMINT_LOG_LEVEL as LogLevel });
250111
250114
 
250112
250115
  export const { client: hasuraClient, graphql: hasuraGraphql } = createHasuraClient<{
250113
250116
  introspection: introspection;
@@ -250171,9 +250174,9 @@ async function codegenPortal(env2) {
250171
250174
  });
250172
250175
  const template = `import { createPortalClient } from "${PACKAGE_NAME2}";
250173
250176
  import type { introspection } from "@schemas/portal-env";
250174
- import { createLogger, requestLogger } from '@settlemint/sdk-utils/logging';
250177
+ import { createLogger, requestLogger, type LogLevel } from '@settlemint/sdk-utils/logging';
250175
250178
 
250176
- const logger = createLogger({ level: process.env.NODE_ENV === 'production' ? 'warn' : 'info' });
250179
+ const logger = createLogger({ level: process.env.SETTLEMINT_LOG_LEVEL as LogLevel });
250177
250180
 
250178
250181
  export const { client: portalClient, graphql: portalGraphql } = createPortalClient<{
250179
250182
  introspection: introspection;
@@ -250217,7 +250220,7 @@ async function codegenTheGraph(env2, subgraphNames) {
250217
250220
  }
250218
250221
  const template = [
250219
250222
  `import { createTheGraphClient } from "${PACKAGE_NAME3}";`,
250220
- "import { createLogger, requestLogger } from '@settlemint/sdk-utils/logging';"
250223
+ "import { createLogger, requestLogger, type LogLevel } from '@settlemint/sdk-utils/logging';"
250221
250224
  ];
250222
250225
  const toGenerate = gqlEndpoints.filter((gqlEndpoint) => {
250223
250226
  const name3 = gqlEndpoint.split("/").pop();
@@ -250232,7 +250235,7 @@ async function codegenTheGraph(env2, subgraphNames) {
250232
250235
  template.push(`import type { introspection as ${introspectionVariable} } from "@schemas/the-graph-env-${name3}"`);
250233
250236
  return true;
250234
250237
  });
250235
- template.push("", "const logger = createLogger({ level: process.env.NODE_ENV === 'production' ? 'warn' : 'info' });");
250238
+ template.push("", "const logger = createLogger({ level: process.env.SETTLEMINT_LOG_LEVEL as LogLevel });");
250236
250239
  for (const gqlEndpoint of toGenerate) {
250237
250240
  const name3 = gqlEndpoint.split("/").pop();
250238
250241
  const introspectionVariable = getVariableName(`${name3}Introspection`);
@@ -250265,6 +250268,7 @@ export const { client: ${graphqlClientVariable}, graphql: ${graphqlVariable} } =
250265
250268
  instances: JSON.parse(process.env.SETTLEMINT_THEGRAPH_SUBGRAPHS_ENDPOINTS || '[]'),
250266
250269
  accessToken: process.env.SETTLEMINT_ACCESS_TOKEN!,
250267
250270
  subgraphName: "${name3}",
250271
+ cache: "force-cache",
250268
250272
  }, {
250269
250273
  fetch: requestLogger(logger, "the-graph-${name3}", fetch) as typeof fetch,
250270
250274
  });`
@@ -251813,9 +251817,9 @@ async function codegenBlockscout(env2) {
251813
251817
  }
251814
251818
  const template = `import { createBlockscoutClient } from "${PACKAGE_NAME4}";
251815
251819
  import type { introspection } from "@schemas/blockscout-env";
251816
- import { createLogger, requestLogger } from '@settlemint/sdk-utils/logging';
251820
+ import { createLogger, requestLogger, type LogLevel } from '@settlemint/sdk-utils/logging';
251817
251821
 
251818
- const logger = createLogger({ level: process.env.NODE_ENV === 'production' ? 'warn' : 'info' });
251822
+ const logger = createLogger({ level: process.env.SETTLEMINT_LOG_LEVEL as LogLevel });
251819
251823
 
251820
251824
  export const { client: blockscoutClient, graphql: blockscoutGraphql } = createBlockscoutClient<{
251821
251825
  introspection: introspection;
@@ -252642,7 +252646,8 @@ async function writeEnvSpinner(prod, env2) {
252642
252646
  SETTLEMINT_BLOCKSCOUT: env2.SETTLEMINT_BLOCKSCOUT,
252643
252647
  SETTLEMINT_BLOCKSCOUT_GRAPHQL_ENDPOINT: env2.SETTLEMINT_BLOCKSCOUT_GRAPHQL_ENDPOINT,
252644
252648
  SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT: env2.SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT,
252645
- SETTLEMINT_NEW_PROJECT_NAME: env2.SETTLEMINT_NEW_PROJECT_NAME
252649
+ SETTLEMINT_NEW_PROJECT_NAME: env2.SETTLEMINT_NEW_PROJECT_NAME,
252650
+ SETTLEMINT_LOG_LEVEL: env2.SETTLEMINT_LOG_LEVEL
252646
252651
  };
252647
252652
  await writeEnv({
252648
252653
  prod,
@@ -259868,4 +259873,4 @@ async function sdkCliCommand(argv = process.argv) {
259868
259873
  // src/cli.ts
259869
259874
  sdkCliCommand();
259870
259875
 
259871
- //# debugId=80EB2C049B77347764756E2164756E21
259876
+ //# debugId=F60453255B57581064756E2164756E21