Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1045 commits
Select commit Hold shift + click to select a range
c16270e
fix: add success url in bulk delete and move
Jun 2, 2026
b589b1b
chore: fix lint issues
Jun 2, 2026
346f945
fixed test
cs-raj Jun 3, 2026
012175e
Merge pull request #197 from contentstack/enhc/DX-8556
cs-raj Jun 3, 2026
760c8ce
chore: update func/var names according to convention
Jun 3, 2026
25a45be
Merge branch 'v2-dev' into feat/taxonomy-publishing
cs-raj Jun 3, 2026
8f53ebf
Merge pull request #143 from contentstack/feat/taxonomy-publishing
cs-raj Jun 3, 2026
56da1a3
chore: update test cases
Jun 4, 2026
651fb20
Merge branch 'v2-dev' into fix/DX-8552
naman-contentstack Jun 4, 2026
baecb48
Merge pull request #196 from contentstack/fix/DX-8552
naman-contentstack Jun 4, 2026
54a2ce2
merged latest changes
shafeeqd959 Jun 4, 2026
e8b9a0a
Merge pull request #149 from contentstack/DX-7332
shafeeqd959 Jun 4, 2026
f8ac0d1
chore: fixed unit test cases
cs-raj Jun 4, 2026
e6631ba
Merge branch 'v2-dev' into DX-8739
cs-raj Jun 4, 2026
e64f9e7
feat: add pagination and test cases for AM package
Jun 4, 2026
c250459
lock file update
cs-raj Jun 4, 2026
a53e075
chore fixed test
cs-raj Jun 4, 2026
afd1e17
Merge pull request #208 from contentstack/DX-8739
cs-raj Jun 4, 2026
1352322
refactor: move default space mapping logic to correct position in imp…
Jun 6, 2026
06dbdec
chore: fix test cases
Jun 7, 2026
a798a61
Merge branch 'v2-dev' into feat/DX-8625
Jun 7, 2026
6c4fbdd
chore: version bumps
Jun 7, 2026
205d991
Merge pull request #213 from contentstack/version_bumps
naman-contentstack Jun 8, 2026
2cd7c60
Merge pull request #212 from contentstack/v2-dev
naman-contentstack Jun 8, 2026
0decc23
Merge pull request #215 from contentstack/v2-beta
naman-contentstack Jun 8, 2026
ccf0a90
Merge branch 'v2-dev' into feat/DX-8625
Jun 9, 2026
0f608ad
Merge branch 'v2-dev' into fix/import_space_bug
naman-contentstack Jun 9, 2026
6c8a833
revert: readme file
Jun 9, 2026
8439e35
Merge pull request #211 from contentstack/fix/import_space_bug
naman-contentstack Jun 9, 2026
e4b512f
Merge branch 'development' into fix/back-merge-dev
Jun 11, 2026
9475887
chore: update lockfile
Jun 11, 2026
e32d7d5
Merge pull request #230 from contentstack/fix/back-merge-dev
naman-contentstack Jun 11, 2026
3e57fa8
chore: update logic to stay consistent with CLI export package
Jun 11, 2026
ebdc2ae
feat: add retry mechanism for transient HTTP errors
Jun 11, 2026
8e305a9
Merge branch 'v2-dev' into feat/DX-8625
Jun 12, 2026
512423d
chore: update lockfile
Jun 12, 2026
7c84381
Bumps the minimum supported Node.js version from >=18.0.0 (and variou…
cs-raj Jun 24, 2026
8f0bc84
Lock file update
cs-raj Jun 24, 2026
90a0c87
upgrade eslint to v10
harshitha-cstk Jun 24, 2026
7c17d34
Merge pull request #240 from contentstack/fix/DX-9300
cs-raj Jun 24, 2026
0739547
Merge branch 'v2-dev' into enh/dx-9299-eslint-upgrade
harshitha-cstk Jun 24, 2026
b150485
fixed unit test cases
Jun 24, 2026
dc1ec4a
add eslint.config.js file
harshitha-cstk Jun 24, 2026
33d0233
remove eslintrc and eslintignore files
harshitha-cstk Jun 24, 2026
2c570c0
add eslintrc.js for cli-tsgen and external migrate packages
harshitha-cstk Jun 24, 2026
fb5eb2a
Updated posttest and lint scripts in package.json files
harshitha-cstk Jun 24, 2026
d382dbe
update eslint config
harshitha-cstk Jun 24, 2026
5e2aec5
update eslint config
harshitha-cstk Jun 24, 2026
2c6781e
update eslint config
harshitha-cstk Jun 24, 2026
68e8c5a
Merge pull request #241 from contentstack/enh/dx-9299-eslint-upgrade
harshitha-cstk Jun 24, 2026
eaa18a6
Merge v2-dev in feat/DX-8625
Jun 26, 2026
53caf2b
fix: enhance error logging in ImportAssetTypes and ImportAssets
Jun 27, 2026
9bd3f91
revert: asset localisation
Jun 29, 2026
13237c7
chore: update lockfile
Jun 29, 2026
738be48
Merge pull request #209 from contentstack/feat/DX-8625
naman-contentstack Jun 29, 2026
19c5041
fix(regex-validate): remove eslint-config-oclif-typescript from flat …
cs-raj Jun 29, 2026
d25ad18
lock file update
cs-raj Jun 29, 2026
0bd4b21
Merge pull request #253 from contentstack/fix/dev
cs-raj Jun 29, 2026
fa179b3
version bump
harshitha-cstk Jun 29, 2026
aea8fd2
update pnpm lock file
harshitha-cstk Jun 29, 2026
da53c1f
Merge branch 'v2-dev' into fix/version-bump-v2
harshitha-cstk Jun 29, 2026
1f1b75b
Merge pull request #254 from contentstack/fix/version-bump-v2
harshitha-cstk Jun 29, 2026
22633be
Merge pull request #248 from contentstack/v2-dev
harshitha-cstk Jun 29, 2026
55b8e09
version bump import setup plugin
harshitha-cstk Jun 29, 2026
cc3c589
Merge pull request #255 from contentstack/fix/version-bump--v2
harshitha-cstk Jun 29, 2026
c528e1f
Merge pull request #256 from contentstack/v2-beta
harshitha-cstk Jun 30, 2026
74ab428
fix: show login error on console and improve API key validation
harshitha-cstk Jun 30, 2026
a144f07
Merge branch 'main' into fix/back-merge-development-v2
harshitha-cstk Jun 30, 2026
c03512c
update pnpm lock file
harshitha-cstk Jun 30, 2026
aa3ed22
Merge pull request #259 from contentstack/fix/back-merge-development-v2
harshitha-cstk Jun 30, 2026
7af59f5
Merge branch 'v2-dev' into fix/dx-7893-login-error-validate-api-key
harshitha-cstk Jun 30, 2026
ce01740
pnpm lock update
harshitha-cstk Jun 30, 2026
d840c17
fix(flags): normalize short flag consistency across cli-cm-regex-vali…
cs-raj Jun 30, 2026
1fcb265
updated short flags of external commands
cs-raj Jul 1, 2026
ebefac5
updated unit test workflow
cs-raj Jul 1, 2026
956306e
updated unit test workflow
cs-raj Jul 1, 2026
2136d28
updated unit test workflow and added parallel execution
cs-raj Jul 1, 2026
c03672c
fixed test case and removed parallel test execution
cs-raj Jul 1, 2026
000ca75
fixed seed tests
cs-raj Jul 1, 2026
c57bef9
Removed character flag from the command and removed seed test from wo…
cs-raj Jul 1, 2026
1116da1
fix: show backup folder path on command completion
harshitha-cstk Jul 2, 2026
0c8b660
Revert "fix: show backup folder path on command completion"
harshitha-cstk Jul 2, 2026
504e7b6
Merge branch 'v2-dev' into fix/test-case-import-setup
harshitha-cstk Jul 2, 2026
8292c50
Merge pull request #242 from contentstack/fix/test-case-import-setup
cs-raj Jul 2, 2026
79bdfae
Merge branch 'v2-dev' into fix/dx-7895-import-setup-backup-folder-path
harshitha-cstk Jul 2, 2026
5cdde34
Merge branch 'v2-dev' into fix/dx-7893-login-error-validate-api-key
harshitha-cstk Jul 2, 2026
33c2959
Merge pull request #258 from contentstack/fix/dx-7893-login-error-val…
harshitha-cstk Jul 2, 2026
5d0fe3c
Merge branch 'v2-dev' into fix/dx-7895-import-setup-backup-folder-path
harshitha-cstk Jul 3, 2026
c2c6b63
fix: show backup folder path on command completion
harshitha-cstk Jul 3, 2026
ca3011f
fix(export,import): validate --module flag value before execution
cs-raj Jul 3, 2026
a7b2e78
Merge pull request #264 from contentstack/fix/dx-7895-import-setup-ba…
harshitha-cstk Jul 3, 2026
f2cc5a8
version bump
harshitha-cstk Jul 3, 2026
695cc32
Merge branch 'v2-dev' into fix/DX-9444
cs-raj Jul 3, 2026
afb8915
Merge branch 'v2-dev' into fix/DX-9363
netrajpatel Jul 3, 2026
0ec25d9
fixed the commits
cs-raj Jul 3, 2026
efaaf46
Merge pull request #266 from contentstack/fix/DX-9444
cs-raj Jul 3, 2026
5410870
Merge branch 'v2-dev' into fix/DX-9363
netrajpatel Jul 3, 2026
0a1eab2
version bump
harshitha-cstk Jul 3, 2026
d6acd8b
Merge branch 'v2-dev' into fix/version-bump
harshitha-cstk Jul 3, 2026
e22e8b6
Merge pull request #261 from contentstack/fix/DX-9363
cs-raj Jul 3, 2026
c78ebd7
pnpm update
harshitha-cstk Jul 3, 2026
6c89dbd
Merge branch 'v2-dev' into fix/version-bump
harshitha-cstk Jul 3, 2026
3cb1c6e
override added
cs-raj Jul 3, 2026
e32c2a5
lock file update
cs-raj Jul 3, 2026
3bf33df
Merge pull request #267 from contentstack/fix/version-bump
harshitha-cstk Jul 3, 2026
66a9bf9
feat: enhance AM with asset publishing
Jul 3, 2026
7ee5d17
version bump
harshitha-cstk Jul 3, 2026
388afbe
Merge pull request #269 from contentstack/fix/version-bumps
harshitha-cstk Jul 3, 2026
933e6b9
added publishing rules and varient entries
cs-raj Jul 3, 2026
3c2632c
Merge pull request #270 from contentstack/fix/v2-dev
cs-raj Jul 3, 2026
517cdd2
docs: comprehensive README audit, package.json standardization, and s…
cs-raj Jul 5, 2026
17256f8
fix bulk operation and export-to-csv
cs-raj Jul 5, 2026
0095452
Merge branch 'v2-dev' into fix/DX-9346
Jul 6, 2026
b1e3722
Merge pull request #265 from contentstack/v2-dev
OMpawar-21 Jul 6, 2026
d9ed638
Merge pull request #274 from contentstack/v2-beta
OMpawar-21 Jul 6, 2026
4caa096
Merge branch 'v2-dev' into fix/DX-9364
cs-raj Jul 6, 2026
59464c4
Merge branch 'v2-dev' into feat/DX-9443
Jul 6, 2026
ddd50d9
fix: resolve Snyk hardcoded secret false positives in message constants
harshitha-cstk Jul 7, 2026
a36a2eb
resolve path traversal issue
harshitha-cstk Jul 7, 2026
883a216
fix formatting
harshitha-cstk Jul 7, 2026
d153d43
fix formatting
harshitha-cstk Jul 7, 2026
a10275f
Merge pull request #271 from contentstack/fix/DX-9364
cs-raj Jul 7, 2026
88683fb
Merge branch 'v2-dev' into fix/DX-9346
naman-contentstack Jul 7, 2026
8f039f4
fix: failing test cases
Jul 7, 2026
d83d6e9
feat: add oauth support in AM
Jul 7, 2026
8783af2
Merge pull request #249 from contentstack/fix/DX-9346
naman-contentstack Jul 7, 2026
7d78b64
Merge branch 'v2-dev' into feat/DX-9341-v2
naman-contentstack Jul 8, 2026
23cc422
Merge branch 'v2-dev' into fix/dx-8733-snyk-fix-v2
harshitha-cstk Jul 9, 2026
02a2861
Merge pull request #275 from contentstack/fix/dx-8733-snyk-fix-v2
harshitha-cstk Jul 9, 2026
3493f90
git merge fix/dx-8733-snyk-fix-low-risk
harshitha-cstk Jul 9, 2026
2a284b7
fix: hardcoded secret issues
harshitha-cstk Jul 9, 2026
4bfbdd8
fix(personalize): fix CT linking failure from empty-audience experien…
cs-raj Jul 10, 2026
ddc69b1
test(variants): add unit tests for DX-9469 fix in experiences import
cs-raj Jul 10, 2026
fbdeb70
fix(variants): make variant-skip warning message generic [DX-9469]
cs-raj Jul 10, 2026
f866d10
chore(variants): remove unused lodash/values and lodash/cloneDeep imp…
cs-raj Jul 10, 2026
e39a8a8
Merge pull request #281 from contentstack/fix/DX-9469-v2
cs-raj Jul 10, 2026
d74ed43
feat: Implement CS Assets delete/move operations in bulk-assets command
Jul 11, 2026
511fe2b
chore: version bump
Jul 13, 2026
582e033
Merge pull request #287 from contentstack/version_Bumps/13-07-26_release
naman-contentstack Jul 13, 2026
2593854
Merge pull request #283 from contentstack/v2-dev
naman-contentstack Jul 13, 2026
e2c1f0f
Merge branch 'v2-dev' into fix/dx-8733-snyk-fix-low-risk-v2
harshitha-cstk Jul 13, 2026
626238e
Merge pull request #290 from contentstack/fix/dx-8733-snyk-fix-low-ri…
harshitha-cstk Jul 13, 2026
34e6086
Merge branch 'development' into backmerge/dev-v2-dev
Jul 14, 2026
22fd7d3
Add char option for stack-api-key flag
naman-contentstack Jul 14, 2026
ec822a5
feat(bulk-operations): integrate progress manager UI
harshitha-cstk Jul 14, 2026
4708f1a
Merge branch 'v2-dev' into fix/dx-3882-bulk-operation-progress-manager
harshitha-cstk Jul 14, 2026
9ee5caf
Merge branch 'v2-dev' into feat/DX-9341-v2
naman-contentstack Jul 14, 2026
6eba3ba
update lockfile
Jul 14, 2026
2424bba
refactor(bulk-operations): align progress-manager wiring
harshitha-cstk Jul 14, 2026
ed26bf8
fix: null-safe bulkOperationConfig access in beginOperationSummary
harshitha-cstk Jul 14, 2026
bc26306
fix: correct wrong property name in getOrgUid test assertion
cs-raj Jul 14, 2026
25c61ad
fix: address progress-manager review feedback
harshitha-cstk Jul 14, 2026
1983f23
refactor(bulk-operations): move progress-module flag out of pure buil…
harshitha-cstk Jul 14, 2026
9e408b0
Merge pull request #292 from contentstack/backmerge/dev-v2-dev
naman-contentstack Jul 15, 2026
3d80f4d
Merge branch 'v2-dev' into feat/DX-9443
Jul 16, 2026
35b4dbf
Merge branch 'v2-dev' into feat/DX-9341-v2
Jul 16, 2026
e50ecbf
Merge branch 'v2-dev' into feat/DX-9450
Jul 16, 2026
0e3b8ca
add test cases for progress manager
harshitha-cstk Jul 16, 2026
cede56e
feat: integrate asset count API for exact pagination totals
Jul 16, 2026
a3bead5
Merge pull request #286 from contentstack/feat/DX-9450
naman-contentstack Jul 16, 2026
64a5512
Merge branch 'v2-dev' into fix/dx-3882-bulk-operation-progress-manager
harshitha-cstk Jul 17, 2026
29fe1df
Merge pull request #293 from contentstack/fix/dx-3882-bulk-operation-…
harshitha-cstk Jul 17, 2026
700bfc1
fix(bulk-operations): chunk CS Assets bulk delete/move to the 100-ite…
Jul 17, 2026
a116af3
chore: version bump
Jul 19, 2026
f403282
update lockfile
Jul 20, 2026
1753bfd
Merge pull request #300 from contentstack/version/bump
naman-contentstack Jul 20, 2026
3521f2a
Merge branch 'v2-beta' into fix/dev
Jul 20, 2026
49e854d
Merge pull request #301 from contentstack/fix/dev
naman-contentstack Jul 20, 2026
f08876d
Merge pull request #299 from contentstack/v2-dev
naman-contentstack Jul 20, 2026
35c61e0
Merge pull request #302 from contentstack/v2-beta
naman-contentstack Jul 21, 2026
0fb6d20
Merge branch 'v2-dev' into feat/DX-9443
Jul 21, 2026
4ceb421
Merge pull request #268 from contentstack/feat/DX-9443
naman-contentstack Jul 21, 2026
3dca413
feat(DX-9754): force api_version 3.2 on all entry/asset publish/unpub…
cs-raj Jul 21, 2026
cd41eaf
feat(DX-9756): remove dead --api-version flag from bulk-entries
cs-raj Jul 21, 2026
445cb7d
test(DX-9755): fix operation-executor mock and assert api_version hea…
cs-raj Jul 21, 2026
0ea5e11
chore: whitelist CHANGELOG.md in talismanrc (--api-version flag text …
cs-raj Jul 21, 2026
fb1c94e
docs: document breaking change and NRP header fix in CHANGELOG
cs-raj Jul 21, 2026
517a21d
feat: harden NRP header on taxonomy publish and fix include-variants …
cs-raj Jul 21, 2026
52e855f
test: fix base-class mock and assert api_version header on publish-as…
cs-raj Jul 21, 2026
2131f00
test: assert api_version 3.2 in bulk publish and unpublish payload body
cs-raj Jul 21, 2026
b577469
chore: remove dead api-version fields from CommandFlags and BulkOpera…
cs-raj Jul 21, 2026
292867a
test: remove dead apiVersion undefined assertion from config-builder …
cs-raj Jul 21, 2026
d12e46b
chore: drop dead TaxonomyPublishWithBranch and TaxonomyOperationApi t…
cs-raj Jul 21, 2026
c5bc3a7
fix(bulk-assets): collect all locales and deduplicate asset UIDs in b…
cs-raj Jul 22, 2026
7bf0996
Merge remote-tracking branch 'origin/development' into DX-9770-v2-dev
netrajpatel Jul 22, 2026
411be70
test(external-migrate): add scheduleEntryAction api_version header as…
cs-raj Jul 22, 2026
60823a4
test: normalize plugin test scripts, add tsgen coverage, package-wise…
netrajpatel Jul 22, 2026
3374169
ci: run unit tests in a single job, not a per-package matrix [DX-9770]
netrajpatel Jul 22, 2026
634bc5f
test: prune dead/orphaned integration, fix bootstrap suite, declare s…
netrajpatel Jul 22, 2026
379cd76
chore: refresh .talismanrc allowlist for regex-validate test + lockfi…
netrajpatel Jul 22, 2026
193944e
feat(global-fields): switch to per-file export/import format
cs-raj Jul 22, 2026
3646824
ci: drop nyc from apps-cli test to fix CI failure [DX-9770]
netrajpatel Jul 23, 2026
a4a44d5
fix(apps-cli,lint): make apps-cli tests hermetic; repair ESLint-10 co…
netrajpatel Jul 23, 2026
56bc1ae
fix(export): detect AM 2.0 via plan-check, skip assets under manageme…
Jul 23, 2026
8d2d356
Merge pull request #304 from contentstack/enhc/DX-9753
cs-raj Jul 23, 2026
1d24e01
Merge branch 'v2-dev' into enhc/DX-9464
cs-raj Jul 23, 2026
da8e395
fix(apps-cli): drop oclif manifest from build so tests load src, not …
netrajpatel Jul 23, 2026
9e73968
Merge branch 'v2-dev' into DX-9770-v2-dev [DX-9770]
netrajpatel Jul 23, 2026
5a96df9
test(external-migrate): convert merged create-stack.test.ts from vite…
netrajpatel Jul 23, 2026
982c814
test(asset-management): fix flaky import assets test (unique temp dir…
netrajpatel Jul 23, 2026
471180b
test(DX-9464): fix broken export tests, remove 13 stale globalfields.…
cs-raj Jul 23, 2026
5326571
Merge pull request #306 from contentstack/DX-9770-v2-dev
netrajpatel Jul 23, 2026
a8332ee
Merge branch 'v2-dev' into feat/DX-9314
netrajpatel Jul 23, 2026
52d8909
Merge branch 'v2-dev' into enhc/DX-9464
cs-raj Jul 23, 2026
79af654
Merge pull request #307 from contentstack/enhc/DX-9464
cs-raj Jul 24, 2026
b9336dd
fix: resolve package root by directory depth in clone command
cs-raj Jul 24, 2026
1fdd4a5
chore: fixed entry publish
cs-raj Jul 24, 2026
6aad8da
Merge pull request #314 from contentstack/fix/entry-publish
cs-raj Jul 24, 2026
cee60d3
fix: added local env mapping for entries as 1x
cs-raj Jul 24, 2026
ab1c29a
Merge branch 'v2-dev' into fix/entry-publish
cs-raj Jul 24, 2026
af38948
added locale of the entry to the publish detail
cs-raj Jul 25, 2026
8c675f9
Merge pull request #315 from contentstack/fix/entry-publish
cs-raj Jul 25, 2026
7e0b17b
version bump
harshitha-cstk Jul 27, 2026
eebe2f4
Merge branch 'v2-dev' into feat/DX-9336
Jul 28, 2026
a2cd18f
Merge pull request #295 from contentstack/feat/DX-9336
naman-contentstack Jul 28, 2026
069e1a5
Merge branch 'v2-dev' into fix/DX-9732
Jul 28, 2026
7c4e504
Merge branch 'v2-dev' into feat/DX-9314
netrajpatel Jul 28, 2026
27dcc22
Merge pull request #297 from contentstack/fix/DX-9732
naman-contentstack Jul 28, 2026
154a34d
Merge branch 'v2-dev' into feat/DX-9314
netrajpatel Jul 28, 2026
36f8f8f
chore: resolve PR comments
Jul 28, 2026
333af16
Merge branch 'v2-dev' into feat/DX-9341-v2
Jul 28, 2026
6088508
Merge pull request #277 from contentstack/feat/DX-9341-v2
naman-contentstack Jul 28, 2026
2849d2a
Merge branch 'v2-dev' into feat/DX-9314
netrajpatel Jul 28, 2026
08d3ab9
Merge branch 'v2-dev' into fix/DX-8736
cs-raj Jul 29, 2026
8bcbb4b
Merge pull request #309 from contentstack/fix/DX-8736
cs-raj Jul 29, 2026
de27716
Merge branch 'v2-dev' into feat/DX-9314
naman-contentstack Jul 29, 2026
426d9c2
update pnpm lock file
harshitha-cstk Jul 29, 2026
d03985b
fix: mixed logs
Jul 29, 2026
a463eb3
update lockfile
Jul 29, 2026
a0783c3
fix: lint issues
Jul 29, 2026
2d66ea1
fix: test cases
Jul 29, 2026
367a07d
Merge pull request #308 from contentstack/feat/DX-9314
cs-raj Jul 29, 2026
c5f3042
Merge branch 'v2-dev' into fix/version-bump-27-07
Jul 29, 2026
a8a3e69
Merge pull request #316 from contentstack/fix/version-bump-27-07
naman-contentstack Jul 29, 2026
3c2f46b
Merge pull request #313 from contentstack/v2-dev
OMpawar-21 Jul 29, 2026
1b19693
Merge pull request #321 from contentstack/v2-beta
harshitha-cstk Jul 30, 2026
8485314
feat(DX-10057): remove deprecated aliases, hidden flags, and deprecat…
cs-raj Jul 31, 2026
e3f4e05
fix(DX-10057): remove dead sampleapp branch in bootstrap
cs-raj Jul 31, 2026
1c383cd
fix(DX-10057): remove reference-only dead flag from audit commands an…
cs-raj Jul 31, 2026
c798969
fix(DX-10057): fix CI test failures in migration and seed packages
cs-raj Jul 31, 2026
1c69742
fix: update lock file
cs-raj Jul 31, 2026
59883e2
fix(DX-10057): update seed-stacks tests to reflect stack-starter-app …
cs-raj Jul 31, 2026
7f734b7
fix(DX-10057): restore --locale hidden flag in seed — required by boo…
cs-raj Aug 3, 2026
07aaae2
Merge branch 'development' into v2-dev
cs-raj Aug 4, 2026
c404f9a
Merge pull request #331 from contentstack/fix/v2-dev-back-merge
netrajpatel Aug 4, 2026
edc5e09
Merge branch 'v2-dev' into feat/DX-10057-cleanup-deprecated-flags-ali…
cs-raj Aug 4, 2026
66e6062
Merge pull request #325 from contentstack/feat/DX-10057-cleanup-depre…
netrajpatel Aug 4, 2026
41d6dd1
Merge branch 'v2-beta' into fix/merge-v2-beta-development
harshitha-cstk Aug 5, 2026
4921b22
update release and unit test workflow
harshitha-cstk Aug 5, 2026
a86213f
Merge branch 'v2-dev' into fix/merge-v2-dev
harshitha-cstk Aug 5, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
188 changes: 77 additions & 111 deletions .cursor/commands/code-review.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: code-review
description: Automated PR review using comprehensive checklist tailored for modularized Contentstack CLI
description: Automated PR review using comprehensive checklist tailored for Contentstack CLI plugins
---

# Code Review Command
Expand All @@ -10,147 +10,113 @@ description: Automated PR review using comprehensive checklist tailored for modu
### Scope-Based Reviews
- `/code-review` - Review all current changes with full checklist
- `/code-review --scope typescript` - Focus on TypeScript configuration and patterns
- `/code-review --scope testing` - Focus on Mocha/Chai test patterns
- `/code-review --scope testing` - Focus on Mocha/Chai/Sinon test patterns
- `/code-review --scope contentstack` - Focus on API integration and CLI patterns
- `/code-review --scope oclif` - Focus on command structure and OCLIF patterns
- `/code-review --scope packages` - Focus on package structure and organization

### Severity Filtering
- `/code-review --severity critical` - Show only critical issues (security, breaking changes)
- `/code-review --severity high` - Show high and critical issues
- `/code-review --severity all` - Show all issues including suggestions

### Package-Aware Reviews
- `/code-review --package contentstack-import` - Review changes in import package
- `/code-review --package contentstack-export` - Review changes in export package
- `/code-review --package-type plugin` - Review all plugin packages (all 12 packages are plugins)
- `/code-review --package-scope cm` - Review CM (content management) related packages
- `/code-review --package contentstack-import` - Review changes in specific package
- `/code-review --package-type plugin` - Review plugin packages only
- `/code-review --package-type library` - Review library packages (e.g., variants)

### File Type Focus
- `/code-review --files commands` - Review command files only
- `/code-review --files tests` - Review test files only
- `/code-review --files utils` - Review utility files
- `/code-review --files modules` - Review import/export modules

## Comprehensive Review Checklist

### Monorepo Structure Compliance
- **Package organization**: 12 plugin packages under `packages/contentstack-*`
- **pnpm workspace**: Correct `pnpm-workspace.yaml` configuration
- **Package organization**: Proper placement in `packages/` structure
- **pnpm workspace**: Correct `package.json` workspace configuration
- **Build artifacts**: No `lib/` directories committed to version control
- **Dependencies**: Proper use of shared utilities (`@contentstack/cli-command`, `@contentstack/cli-utilities`)
- **Scripts**: Consistent build, test, and lint scripts across packages

### Package-Specific Structure
- **All packages are plugins**: Each has `oclif.commands` configuration pointing to `./lib/commands`
- **Plugin topics**: All commands under `cm:` topic (content management)
- **Base commands**: Each plugin defines its own `BaseCommand` extending `@contentstack/cli-command` Command
- **Inter-plugin dependencies**: Some plugins depend on others (e.g., import depends on audit)
- **Dependency versions**: Using consistent versions across plugins

### TypeScript Standards
- **Configuration compliance**: Follows package TypeScript config (`strict: false`, `target: es2017`)
### TypeScript Standards (Repository-Specific)
- **Configuration compliance**: Follows package-specific TypeScript config
- **Naming conventions**: kebab-case files, PascalCase classes, camelCase functions
- **Type safety**: Appropriate use of strict mode vs relaxed settings per package
- **Import patterns**: ES modules with proper default/named exports
- **Type safety**: No unnecessary `any` types in production code

### OCLIF Command Patterns
- **Base class usage**: Extends plugin-specific `BaseCommand` or `@contentstack/cli-command` Command
- **Command structure**: Proper `static id`, `static description`, `static examples`, `static flags`
- **Topic organization**: Uses `cm:stacks:*` structure (`cm:stacks:import`, `cm:stacks:export`, `cm:stacks:audit`)
- **Error handling**: Uses `handleAndLogError` from utilities with context
- **Flag validation**: Early validation and user-friendly error messages
- **Service delegation**: Commands are thin, services handle business logic

### Testing Excellence (Mocha/Chai Stack)
- **Framework compliance**: Uses Mocha + Chai (not Jest)
- **File patterns**: Follows `*.test.ts` naming convention
- **Directory structure**: Proper placement in `test/unit/`
- **Test organization**: Arrange-Act-Assert pattern consistently used
- **Isolation**: Proper setup/teardown with beforeEach/afterEach
- **Migration strategy**: Proper use of `@ts-ignore` during gradual migration

### OCLIF Command Patterns (Actual Implementation)
- **Base class usage**: Extends `@contentstack/cli-command` (not `@oclif/core`)
- **Command structure**: Proper `static description`, `examples`, `flags`
- **Topic organization**: Uses `cm` topic structure (`cm:stacks:import`)
- **Error handling**: Uses `handleAndLogError` from utilities
- **Validation**: Early flag validation and user-friendly error messages
- **Service delegation**: Commands orchestrate, services implement business logic

### Testing Excellence (Mocha/Chai/Sinon Stack)
- **Framework compliance**: Uses Mocha + Chai + Sinon (not Jest)
- **File patterns**: Follows `*.test.ts` naming (or `*.test.js` for bootstrap)
- **Directory structure**: Proper placement in `test/unit/`, `test/lib/`, etc.
- **Mock patterns**: Proper Sinon stubbing of SDK methods
- **Coverage configuration**: Correct nyc setup (watch for `inlcude` typo)
- **Test isolation**: Proper `beforeEach`/`afterEach` with `sinon.restore()`
- **No real API calls**: All external dependencies properly mocked

### Error Handling Standards
- **Consistent patterns**: Use `handleAndLogError` from utilities
- **User-friendly messages**: Clear error descriptions for end users
- **Logging**: Proper use of `log.debug` for diagnostic information
- **Status messages**: Use `cliux` for user feedback (success, error, info)

### Build and Compilation
- **TypeScript compilation**: Clean compilation with no errors
- **OCLIF manifest**: Generated for command discovery
- **README generation**: Commands documented in package README
- **Source maps**: Properly configured for debugging
- **No build artifacts in commit**: `.gitignore` excludes `lib/` directories

### Testing Coverage
- **Test structure**: Tests in `test/unit/` with descriptive names
- **Command testing**: Uses @oclif/test for command validation
- **Error scenarios**: Tests for both success and failure paths
- **Mocking**: All dependencies properly mocked

### Package.json Compliance
- **Correct metadata**: name, description, version, author
- **Script definitions**: build, compile, test, lint scripts present
- **Dependencies**: Correct versions of shared packages
- **Main/types**: Properly configured for library packages
- **OCLIF config**: Present for plugin packages
### Contentstack API Integration (Real Patterns)
- **SDK usage**: Proper `managementSDKClient` and fluent API chaining
- **Authentication**: Correct `configHandler` and token alias handling
- **Rate limiting compliance**:
- Batch spacing (minimum 1 second between batches)
- 429 retry handling with exponential backoff
- Pagination throttling for variants
- **Error handling**: Proper `handleAndLogError` usage and user-friendly messages
- **Configuration**: Proper regional endpoint and management token handling

### Import/Export Module Architecture
- **BaseClass extension**: Proper inheritance from import/export BaseClass
- **Batch processing**: Correct use of `makeConcurrentCall` and `logMsgAndWaitIfRequired`
- **Module organization**: Proper entity-specific module structure
- **Configuration handling**: Proper `ModuleClassParams` usage
- **Progress feedback**: Appropriate user feedback during long operations

### Security and Best Practices
- **No secrets**: No API keys or tokens in code or tests
- **Token security**: No API keys or tokens logged or committed
- **Input validation**: Proper validation of user inputs and flags
- **Process management**: Appropriate use of error codes
- **File operations**: Safe handling of file system operations

### Code Quality
- **Naming consistency**: Follow established conventions
- **Comments**: Only for non-obvious logic (no "narration" comments)
- **Error messages**: Clear, actionable messages for users
- **Module organization**: Proper separation of concerns
- **Error exposure**: No sensitive information in error messages
- **File permissions**: Proper handling of file system operations
- **Process management**: Appropriate use of `process.exit(1)` for critical failures

### Performance Considerations
- **Concurrent processing**: Proper use of `Promise.allSettled` for batch operations
- **Memory management**: Appropriate handling of large datasets
- **Rate limiting**: Compliance with Contentstack API limits (10 req/sec)
- **Batch sizing**: Appropriate batch sizes for different operations
- **Progress tracking**: Efficient progress reporting without performance impact

### Package-Specific Patterns
- **Plugin vs Library**: Correct `oclif.commands` configuration for plugin packages
- **Command compilation**: Proper build pipeline (`tsc` → `lib/commands` → `oclif manifest`)
- **Dependency management**: Correct use of shared vs package-specific dependencies
- **Test variations**: Handles different test patterns per package (JS vs TS, different structures)

## Review Execution

### Automated Checks
1. **Lint compliance**: ESLint checks for code style
2. **TypeScript compiler**: Successful compilation to `lib/` directories
3. **Test execution**: All tests pass successfully
4. **Build verification**: Build scripts complete without errors
1. **Lint compliance**: ESLint and TypeScript compiler checks
2. **Test coverage**: nyc coverage thresholds (where enforced)
3. **Build verification**: Successful compilation to `lib/` directories
4. **Dependency audit**: No security vulnerabilities in dependencies

### Manual Review Focus Areas
1. **Command usability**: Clear help text and realistic examples
2. **Error handling**: Appropriate error messages and recovery options
3. **Test quality**: Comprehensive test coverage for critical paths
4. **Monorepo consistency**: Consistent patterns across all packages
5. **Flag design**: Intuitive flag names and combinations
1. **API integration patterns**: Verify proper SDK usage and error handling
2. **Rate limiting implementation**: Check for proper throttling mechanisms
3. **Test quality**: Verify comprehensive mocking and error scenario coverage
4. **Command usability**: Ensure clear help text and examples
5. **Monorepo consistency**: Check for consistent patterns across packages

### Common Issues to Flag
- **Inconsistent TypeScript settings**: Mixed strict mode without reason
- **Real API calls in tests**: Unmocked external dependencies
- **Missing error handling**: Commands that fail silently
- **Poor test organization**: Tests without clear Arrange-Act-Assert
- **Build artifacts committed**: `lib/` directories in version control
- **Unclear error messages**: Non-actionable error descriptions
- **Inconsistent flag naming**: Similar flags with different names
- **Missing command examples**: Examples not showing actual usage

## Repository-Specific Checklist

### For Modularized CLI
- [ ] Command properly extends `@contentstack/cli-command` Command
- [ ] Flags defined with proper types from `@contentstack/cli-utilities`
- [ ] Error handling uses `handleAndLogError` utility
- [ ] User feedback uses `cliux` utilities
- [ ] Tests use Mocha + Chai pattern with mocked dependencies
- [ ] Package.json has correct scripts (build, compile, test, lint)
- [ ] TypeScript compiles with no errors
- [ ] Tests pass: `pnpm test`
- [ ] No `.only` or `.skip` in test files
- [ ] Build succeeds: `pnpm run build`
- [ ] OCLIF manifest generated successfully

### Before Merge
- [ ] All review items addressed
- [ ] No build artifacts in commit
- [ ] Tests added for new functionality
- [ ] Documentation updated if needed
- [ ] No console.log() statements (use log.debug instead)
- [ ] Error messages are user-friendly
- [ ] No secrets or credentials in code
- **Coverage config typos**: `"inlcude"` instead of `"include"` in `.nycrc.json`
- **Inconsistent TypeScript**: Mixed strict mode usage without migration plan
- **Real API calls in tests**: Any unmocked external dependencies
- **Missing rate limiting**: API calls without proper throttling
- **Build artifacts committed**: Any `lib/` directories in version control
- **Inconsistent error handling**: Not using utilities error handling patterns
Loading
Loading