@settlemint/sdk-cli 2.2.3-mainddaf32aa → 2.2.3-maine1eb65f7

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
@@ -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.2.3-mainddaf32aa",
255171
+ version: "2.2.3-maine1eb65f7",
255172
255172
  type: "module",
255173
255173
  private: false,
255174
255174
  license: "FSL-1.1-MIT",
@@ -255217,8 +255217,8 @@ var package_default = {
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.2.3-mainddaf32aa",
255221
- "@settlemint/sdk-utils": "2.2.3-mainddaf32aa",
255220
+ "@settlemint/sdk-js": "2.2.3-maine1eb65f7",
255221
+ "@settlemint/sdk-utils": "2.2.3-maine1eb65f7",
255222
255222
  "@types/node": "22.15.18",
255223
255223
  "@types/semver": "7.7.0",
255224
255224
  "@types/which": "3.0.4",
@@ -260345,7 +260345,7 @@ async function codegenPortal(env2) {
260345
260345
  "x-auth-token": accessToken ?? ""
260346
260346
  }
260347
260347
  });
260348
- const template = `import { createPortalClient } from "${PACKAGE_NAME2}";
260348
+ const template = `import { createPortalClient, getWebsocketClient } from "${PACKAGE_NAME2}";
260349
260349
  import type { introspection } from "@schemas/portal-env";
260350
260350
  import { createLogger, requestLogger, type LogLevel } from '@settlemint/sdk-utils/logging';
260351
260351
 
@@ -260363,7 +260363,13 @@ export const { client: portalClient, graphql: portalGraphql } = createPortalClie
260363
260363
  accessToken: process.env.SETTLEMINT_ACCESS_TOKEN!,
260364
260364
  }, {
260365
260365
  fetch: requestLogger(logger, "portal", fetch) as typeof fetch,
260366
- });`;
260366
+ });
260367
+
260368
+ export const getPortalWebsocketClient = getWebsocketClient({
260369
+ portalGraphqlEndpoint: process.env.SETTLEMINT_PORTAL_GRAPHQL_ENDPOINT!,
260370
+ accessToken: process.env.SETTLEMINT_ACCESS_TOKEN!,
260371
+ });
260372
+ `;
260367
260373
  await writeTemplate(template, "/lib/settlemint", "portal.ts");
260368
260374
  const projectDir = await projectRoot3();
260369
260375
  if (!await isPackageInstalled(PACKAGE_NAME2, projectDir)) {
@@ -270609,4 +270615,4 @@ async function sdkCliCommand(argv = process.argv) {
270609
270615
  // src/cli.ts
270610
270616
  sdkCliCommand();
270611
270617
 
270612
- //# debugId=EED82C0DDB4DA31364756E2164756E21
270618
+ //# debugId=CBCC7417A1F2717364756E2164756E21