Repository navigation
feat: add dx-sap-spartacus-import skill (DX-32793) - #38
Merged
timbenniks-contentstack merged 1 commit intoNov 17, 2026
Merged
Conversation
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
🔒 Security Scan Results
⏱️ SLA Breach Summary
✅ BUILD PASSED - All security checks passed |
pradyumna-garg-contentstack
approved these changes
Nov 17, 2026
Imports a running SAP Commerce Cloud (Spartacus) storefront's CMS content over OCC into a Contentstack stack, shaped for @contentstack/contentstack-spartacus-connector: extract, nav-resolve, model, two approval gates with a starter-pack check, seed, publish, round-trip and Delivery API verify, optional localization. Builds on the public-bundle packaging from #35 and adds what the spartacus-content-modelling-agent gained since: - optional SAP Commerce Cloud marketplace app stage: installs and configures the app once, adds the sap_products picker field to the carousel and fills it, with a verify / repair / fallback procedure - writes with CS_MANAGEMENT_TOKEN or the user's csdx OAuth login - environment Live Preview URLs per locale Co-authored-by: Tim Benniks <tim.benniks@contentstack.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
vaishnavi-kedar-cstk
force-pushed
the
feat/sap-spartacus-import-skill-main
branch
from
November 17, 2026 10:27
e31b414 to
627a1ac
Compare
🔒 Security Scan Results
⏱️ SLA Breach Summary
✅ BUILD PASSED - All security checks passed |
timbenniks-contentstack
approved these changes
Nov 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Base
One commit on
next. It's the same change as #37 (closed), rebased ontonextafter this PR's base moved frommain.What
A new action skill,
dx-sap-spartacus-import. It imports the CMS content of a running SAP Commerce Cloud (Spartacus) storefront into a Contentstack stack, in the model@contentstack/contentstack-spartacus-connectorreads. Optionally, it sets up the SAP Commerce Cloud marketplace app so editors pick carousel products from SAP. Jira: DX-32793.The pipeline:
sap_uid,urlandtitle). When the app is set up, this adds thesap_productspicker field to the carousel and fills it.Origin
This is my
spartacus-content-modelling-agent, packaged for this bundle. It supersedes #35, which packaged an earlier version of the agent. I kept that PR's public-bundle changes:OCC_INSECURE_TLS=1is an explicit opt-in).landing_page.It also adds what the agent gained after #35 was cut.
SAP Commerce Cloud product picker (
scripts/marketplace-app/,references/sap-commerce-app.md):csdx auth:login --oauthsession (a management token can't install apps). Writing the config a second time breaks the install on the app's server (HTTP 414), so re-runs only check an existing install.--reinstall-apprepairs a broken one.sap_productswith the same value the picker saves:code+name, which stays under the 20 KB JSON-field limit.use_products.py, which falls back to the plainproductsSKU list.Auth: every stage writes with
CS_MANAGEMENT_TOKEN, or with the user's csdx login when no token is set (CS_AUTH=auto|token|csdx). The csdx login refreshes the OAuth token once after a 401.Live Preview: the environment gets a URL for every locale (
CS_PREVIEW_URL).Changes for a public bundle beyond #35:
--carousel-field autousessap_productsonly whenSAP_APP_API_BASE_URL,SAP_APP_BASE_SITEandSAP_APP_BACKOFFICE_URLare exported. Otherwise carousels keepproducts. The original hardcodedelectronics-spaand its demo SAP server.OCC_INSECURE_TLS.--inventorywithoutOCC_BASE_URLno longer crashes at nav-resolve. Nav-resolve is skipped when the inventory already has resolved navigation. Writes and--localesstill require an OCC base.Files
skills/dx-sap-spartacus-import/:SKILL.mdreferences/pipeline.md,references/mapping-profile.md,references/sap-commerce-app.mdscripts/(Python 3.9+ stdlib; Node only forcs-seed/csdx_auth.cjsandmarketplace-app/sap_app.cjs)docs/skills/dx-sap-spartacus-import.md, plus a row indocs/skills/index.md, and the skill count bumped to 34 indocs/skills/index.mdanddocs/README.mdREADME.mdevals/routing-dx-sap-spartacus-import-{1,2}: each loads the skill and checks thatmigration-companionis skippedTesting
node scripts/validate.mjs: 34 skills, 7 manifests valid (version 0.4.1).--helpruns, so the imports resolve acrosscs-seed/,marketplace-app/andverify/.SAP_APP_*, carousels go intoproducts.SAP_APP_*, both carousels becomesap_productsplaceholders (11 and 7 SKUs), and the pack check allows the field the seed adds.productsfallback.Not run yet:
snyk-agent-scan(CI runs it).🤖 Generated with Claude Code