@settlemint/sdk-cli 2.1.0 → 2.1.1-pr48657fc9

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
@@ -245110,7 +245110,8 @@ var DotEnvSchema = z.object({
245110
245110
  SETTLEMINT_BLOCKSCOUT: UniqueNameSchema.optional(),
245111
245111
  SETTLEMINT_BLOCKSCOUT_GRAPHQL_ENDPOINT: UrlSchema.optional(),
245112
245112
  SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT: UrlSchema.optional(),
245113
- SETTLEMINT_NEW_PROJECT_NAME: z.string().optional()
245113
+ SETTLEMINT_NEW_PROJECT_NAME: z.string().optional(),
245114
+ SETTLEMINT_LOG_LEVEL: z.enum(["debug", "info", "warn", "error", "none"]).default("warn")
245114
245115
  });
245115
245116
  var DotEnvSchemaPartial = DotEnvSchema.partial();
245116
245117
  var IdSchema = z.union([
@@ -245276,7 +245277,7 @@ function pruneCurrentEnv(currentEnv, env2) {
245276
245277
  var package_default = {
245277
245278
  name: "@settlemint/sdk-cli",
245278
245279
  description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
245279
- version: "2.1.0",
245280
+ version: "2.1.1-pr48657fc9",
245280
245281
  type: "module",
245281
245282
  private: false,
245282
245283
  license: "FSL-1.1-MIT",
@@ -245325,9 +245326,9 @@ var package_default = {
245325
245326
  "@inquirer/input": "4.1.9",
245326
245327
  "@inquirer/password": "4.0.12",
245327
245328
  "@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",
245329
+ "@settlemint/sdk-js": "2.1.1-pr48657fc9",
245330
+ "@settlemint/sdk-utils": "2.1.1-pr48657fc9",
245331
+ "@types/node": "22.14.1",
245331
245332
  "@types/semver": "7.7.0",
245332
245333
  "@types/which": "3.0.4",
245333
245334
  "get-tsconfig": "4.10.0",
@@ -245340,7 +245341,7 @@ var package_default = {
245340
245341
  yoctocolors: "2.1.1"
245341
245342
  },
245342
245343
  peerDependencies: {
245343
- hardhat: "2.22.19"
245344
+ hardhat: "2.23.0"
245344
245345
  },
245345
245346
  peerDependenciesMeta: {
245346
245347
  hardhat: {
@@ -246766,7 +246767,8 @@ var DotEnvSchema2 = z.object({
246766
246767
  SETTLEMINT_BLOCKSCOUT: UniqueNameSchema2.optional(),
246767
246768
  SETTLEMINT_BLOCKSCOUT_GRAPHQL_ENDPOINT: UrlSchema2.optional(),
246768
246769
  SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT: UrlSchema2.optional(),
246769
- SETTLEMINT_NEW_PROJECT_NAME: z.string().optional()
246770
+ SETTLEMINT_NEW_PROJECT_NAME: z.string().optional(),
246771
+ SETTLEMINT_LOG_LEVEL: z.enum(["debug", "info", "warn", "error", "none"]).default("warn")
246770
246772
  });
246771
246773
  var DotEnvSchemaPartial2 = DotEnvSchema2.partial();
246772
246774
  var IdSchema2 = z.union([
@@ -250105,9 +250107,9 @@ async function codegenHasura(env2) {
250105
250107
  }
250106
250108
  const hasuraTemplate = `import { createHasuraClient } from "${PACKAGE_NAME}";
250107
250109
  import type { introspection } from "@schemas/hasura-env";
250108
- import { createLogger, requestLogger } from '@settlemint/sdk-utils/logging';
250110
+ import { createLogger, requestLogger, type LogLevel } from '@settlemint/sdk-utils/logging';
250109
250111
 
250110
- const logger = createLogger({ level: process.env.NODE_ENV === "production" ? "warn" : "info" });
250112
+ const logger = createLogger({ level: process.env.SETTLEMINT_LOG_LEVEL as LogLevel });
250111
250113
 
250112
250114
  export const { client: hasuraClient, graphql: hasuraGraphql } = createHasuraClient<{
250113
250115
  introspection: introspection;
@@ -250171,9 +250173,9 @@ async function codegenPortal(env2) {
250171
250173
  });
250172
250174
  const template = `import { createPortalClient } from "${PACKAGE_NAME2}";
250173
250175
  import type { introspection } from "@schemas/portal-env";
250174
- import { createLogger, requestLogger } from '@settlemint/sdk-utils/logging';
250176
+ import { createLogger, requestLogger, type LogLevel } from '@settlemint/sdk-utils/logging';
250175
250177
 
250176
- const logger = createLogger({ level: process.env.NODE_ENV === 'production' ? 'warn' : 'info' });
250178
+ const logger = createLogger({ level: process.env.SETTLEMINT_LOG_LEVEL as LogLevel });
250177
250179
 
250178
250180
  export const { client: portalClient, graphql: portalGraphql } = createPortalClient<{
250179
250181
  introspection: introspection;
@@ -250217,7 +250219,7 @@ async function codegenTheGraph(env2, subgraphNames) {
250217
250219
  }
250218
250220
  const template = [
250219
250221
  `import { createTheGraphClient } from "${PACKAGE_NAME3}";`,
250220
- "import { createLogger, requestLogger } from '@settlemint/sdk-utils/logging';"
250222
+ "import { createLogger, requestLogger, type LogLevel } from '@settlemint/sdk-utils/logging';"
250221
250223
  ];
250222
250224
  const toGenerate = gqlEndpoints.filter((gqlEndpoint) => {
250223
250225
  const name3 = gqlEndpoint.split("/").pop();
@@ -250232,7 +250234,7 @@ async function codegenTheGraph(env2, subgraphNames) {
250232
250234
  template.push(`import type { introspection as ${introspectionVariable} } from "@schemas/the-graph-env-${name3}"`);
250233
250235
  return true;
250234
250236
  });
250235
- template.push("", "const logger = createLogger({ level: process.env.NODE_ENV === 'production' ? 'warn' : 'info' });");
250237
+ template.push("", "const logger = createLogger({ level: process.env.SETTLEMINT_LOG_LEVEL as LogLevel });");
250236
250238
  for (const gqlEndpoint of toGenerate) {
250237
250239
  const name3 = gqlEndpoint.split("/").pop();
250238
250240
  const introspectionVariable = getVariableName(`${name3}Introspection`);
@@ -251813,9 +251815,9 @@ async function codegenBlockscout(env2) {
251813
251815
  }
251814
251816
  const template = `import { createBlockscoutClient } from "${PACKAGE_NAME4}";
251815
251817
  import type { introspection } from "@schemas/blockscout-env";
251816
- import { createLogger, requestLogger } from '@settlemint/sdk-utils/logging';
251818
+ import { createLogger, requestLogger, type LogLevel } from '@settlemint/sdk-utils/logging';
251817
251819
 
251818
- const logger = createLogger({ level: process.env.NODE_ENV === 'production' ? 'warn' : 'info' });
251820
+ const logger = createLogger({ level: process.env.SETTLEMINT_LOG_LEVEL as LogLevel });
251819
251821
 
251820
251822
  export const { client: blockscoutClient, graphql: blockscoutGraphql } = createBlockscoutClient<{
251821
251823
  introspection: introspection;
@@ -252642,7 +252644,8 @@ async function writeEnvSpinner(prod, env2) {
252642
252644
  SETTLEMINT_BLOCKSCOUT: env2.SETTLEMINT_BLOCKSCOUT,
252643
252645
  SETTLEMINT_BLOCKSCOUT_GRAPHQL_ENDPOINT: env2.SETTLEMINT_BLOCKSCOUT_GRAPHQL_ENDPOINT,
252644
252646
  SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT: env2.SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT,
252645
- SETTLEMINT_NEW_PROJECT_NAME: env2.SETTLEMINT_NEW_PROJECT_NAME
252647
+ SETTLEMINT_NEW_PROJECT_NAME: env2.SETTLEMINT_NEW_PROJECT_NAME,
252648
+ SETTLEMINT_LOG_LEVEL: env2.SETTLEMINT_LOG_LEVEL
252646
252649
  };
252647
252650
  await writeEnv({
252648
252651
  prod,
@@ -259868,4 +259871,4 @@ async function sdkCliCommand(argv = process.argv) {
259868
259871
  // src/cli.ts
259869
259872
  sdkCliCommand();
259870
259873
 
259871
- //# debugId=80EB2C049B77347764756E2164756E21
259874
+ //# debugId=C72D9A444604090464756E2164756E21