Skip to content

Latest commit

 

History

History
94 lines (50 loc) · 11.8 KB

File metadata and controls

94 lines (50 loc) · 11.8 KB

@salesforce/b2c-tooling-sdk

0.5.0

Minor Changes

  • #155 55c81c3 - Add a new cip command topic for Commerce Intelligence platform (CCAC - Commerce Cloud Analytics) with cip query for raw SQL and curated cip report <report-name> subcommands for analytics workflows, including CIP host override support and tenant-based CIP instance targeting. (Thanks @clavery!)

  • #163 87321c0 - --json no longer switches log output to JSONL. Logs are always human-readable on stderr; --json only controls the structured result on stdout. Use the new --jsonl flag (or SFCC_JSON_LOGS env var) to get machine-readable log lines. (Thanks @clavery!)

  • #133 1485923 - # Add new MCP tools (Thanks @yhsieh1!)

    • scapi-schemas-list: List and fetch SCAPI schemas (standard and custom)
    • scapi-custom-apis-status: Check custom API endpoint registration status
    • mrt_bundle_push: Push and deploy a pre-built Storefront Next PWA Kit project to Managed Runtime
    • cartridge_deploy: Find and deploy cartridges to a B2C Commerce instance via WebDAV
    • storefront_next_development_guidelines: Get critical architecture rules, coding standards, and best practices for Storefront Next development

Patch Changes

  • #181 556f916 - Fix --no-download flag on job export to actually skip downloading the archive from the instance (Thanks @clavery!)

0.4.1

Patch Changes

  • #143 ca9dcf0 - Fix AM role ID mapping between API internal/external formats and improve user display output. Role grant/revoke now correctly handle mixed formats (role IDs in roles array, enum names in roleTenantFilter). User display shows role descriptions, resolves org names, and detects auth errors with actionable --user-auth suggestions. Commands accepting org IDs now also accept friendly org names. (Thanks @clavery!)

0.4.0

Minor Changes

  • #117 59fe546 - Add content export and content list commands for exporting Page Designer pages with components and static assets from content libraries. Supports filtering by page ID (exact or regex), folder classification, offline mode, and dry-run preview. (Thanks @clavery!)

  • 44b67f0 - Embed a default public client ID for implicit OAuth flows. Account Manager, Sandbox, and SLAS commands now work without requiring a pre-configured client ID — the CLI will automatically use a built-in public client for browser-based authentication. (Thanks @clavery!)

  • #98 91593f2 - Add setup instance commands for managing B2C Commerce instance configurations (create, list, remove, set-active). (Thanks @clavery!)

  • #125 0d29262 - Add mrt tail-logs command to stream real-time application logs from Managed Runtime environments. Supports level filtering, regex search with match highlighting, and JSON output. (Thanks @clavery!)

  • #112 33dbd2f - Accept both camelCase and kebab-case for all field names in dw.json and package.json b2c config. For example, clientId and client-id are now equivalent everywhere. Legacy aliases like server, passphrase, and selfsigned continue to work. (Thanks @clavery!)

  • #102 8592727 - Add scaffolding framework for generating B2C Commerce components from templates. Includes 7 built-in scaffolds (cartridge, controller, hook, service, custom-api, job-step, page-designer-component) and support for custom project/user scaffolds. SDK provides programmatic API for IDE integrations and MCP servers. (Thanks @clavery!)

  • #120 908be47 - Add --user-auth flag for simplified browser-based authentication. AM commands now use standard auth method order; enhanced error messages provide role-specific guidance for Account Manager operations. (Thanks @clavery!)

Patch Changes

  • #63 1a3117c - Account Manager (AM) topic with users, roles, and orgs subtopics. Use b2c am users, b2c am roles, and b2c am orgs for user, role, and organization management. (Thanks @amit-kumar8-sf!)

  • #103 7a3015f - Add automatic 401 retry with token refresh to openapi-fetch middleware. This ensures API clients (OCAPI, SLAS, SCAPI, etc.) automatically refresh expired tokens during long-running operations. (Thanks @clavery!)

  • #112 33dbd2f - Support sandbox-api-host in dw.json and other config sources (previously only worked as a CLI flag or environment variable) (Thanks @clavery!)

0.3.0

Minor Changes

  • #83 ddee52e Thanks @clavery! - Add support for realm-instance format in ODS commands. You can now use zzzv-123 or zzzv_123 instead of full UUIDs for ods get, ods start, ods stop, ods restart, and ods delete commands.

  • #77 6859880 Thanks @clavery! - Add log tailing, listing, and retrieval commands for viewing B2C Commerce instance logs. See b2c logs topic.

  • #85 6b89ed6 Thanks @clavery! - Surface config source errors as warnings. When a config source (like dw.json) has malformed content, the error is now displayed as a warning instead of being silently ignored.

  • #94 c34103b Thanks @clavery! - Add two-factor client certificate (mTLS) support for WebDAV operations

0.2.1

Patch Changes

0.2.0

Minor Changes

  • #59 253c1e9 Thanks @clavery! - Adds complete MRT CLI coverage organized by scope: mrt project (CRUD, members, notifications), mrt env (CRUD, variables, redirects, access-control, cache invalidation, B2C connections), mrt bundle (deploy, list, history, download), mrt org (list, B2C instances), and mrt user (profile, API key, email preferences).

  • e0d652a Thanks @clavery! - Add b2c setup skills command for installing agent skills to AI-powered IDEs (Claude Code, Cursor, Windsurf, VS Code/Copilot, Codex, OpenCode)

  • 11a6887 Thanks @clavery! - Add b2c ecdn commands for managing eCDN zones, certificates, WAF, caching, security settings, and related configurations.

  • #66 a14c741 Thanks @clavery! - Add User-Agent header to all HTTP requests. Sets both User-Agent and sfdc_user_agent headers with the SDK or CLI version (e.g., b2c-cli/0.1.0 or b2c-tooling-sdk/0.1.0).

Patch Changes

  • #64 c35f3a7 Thanks @clavery! - Fix HTML response bodies appearing in ERROR log lines. When API requests fail with non-JSON responses (like HTML error pages), error messages now show the HTTP status code (e.g., "HTTP 521 Web Server Is Down") instead of serializing the entire response body.

    Added getApiErrorMessage(error, response) utility that extracts clean error messages from ODS, OCAPI, and SCAPI error patterns with HTTP status fallback.

0.1.0

Minor Changes