Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
f3fa60f
feat: AM2.0 suppport in config module
Feb 12, 2026
683f128
Revert "Revert "udpated schema json to indvidual content type files""
cs-raj Feb 16, 2026
5bd4313
Merge branch 'v2-beta-dev' into enhancement/DX-4443
Feb 17, 2026
3967dc7
fix: updated the transform url logic
Feb 17, 2026
2f86f5e
fix:updated failing test cases
Feb 18, 2026
9e043aa
Merge branch 'v2-beta-dev' into enhancement/DX-4443
Feb 18, 2026
edfef23
merged latest changes
shafeeqd959 Feb 19, 2026
255d0b4
Merge pull request #2419 from contentstack/v2-beta
cs-raj Feb 19, 2026
d7b9b6e
Merge branch 'v2-beta-dev' of github.com:contentstack/cli into revert…
shafeeqd959 Feb 23, 2026
ac66b24
fix: log mode consistecny
Feb 23, 2026
a382de7
fix: update the logic to resolve host
Feb 23, 2026
dd6d1ef
fix: updated url in test cases
Feb 23, 2026
b9f9742
Merge branch 'v2-beta-dev' into enhancement/DX-4443
Feb 23, 2026
1408786
version bumps
Feb 23, 2026
22c0a0c
fixed audit plugin
shafeeqd959 Feb 23, 2026
bade454
feat: validate referenced entry content types in entries audit
cs-raj Feb 23, 2026
22f7911
Removed Redundant Code
cs-raj Feb 24, 2026
2a0f09e
fix: update schema handling in content types and field rules tests
harshithad0703 Feb 24, 2026
3b3556e
Merge pull request #2424 from contentstack/feat/DX-3800-beta
cs-raj Feb 24, 2026
38eb6e4
bumped management sdk
shafeeqd959 Feb 24, 2026
d1783d6
merged latest changes
shafeeqd959 Feb 24, 2026
107e67c
Merge branch 'v2-beta-dev' into enhancement/DX-4443
Feb 24, 2026
5e5f3fa
Merge pull request #2387 from contentstack/enhancement/DX-4443
naman-contentstack Feb 24, 2026
95c3fc2
Merge branch 'v2-beta-dev' into fix/DX-4416
naman-contentstack Feb 24, 2026
cc96950
merged latest changes
shafeeqd959 Feb 24, 2026
400b1cf
removed invalid arguement
shafeeqd959 Feb 24, 2026
d314ab4
added field rules files in read content type ignore file set
shafeeqd959 Feb 24, 2026
626e051
Merge pull request #2399 from contentstack/revert-2398-revert-2375-DX…
shafeeqd959 Feb 24, 2026
b452da5
fix: Experience import errors when variants reference Lytics audiences
cs-raj Feb 24, 2026
fbdf372
Merge pull request #2428 from contentstack/fix/DX-3445-beta
cs-raj Feb 25, 2026
5640784
Revert "Revert "udpated schema json to indvidual content type files""
cs-raj Feb 16, 2026
c5caba9
fixed audit plugin
shafeeqd959 Feb 23, 2026
1639275
fix: update schema handling in content types and field rules tests
harshithad0703 Feb 24, 2026
202acbe
bumped management sdk
shafeeqd959 Feb 24, 2026
19ebfd2
removed invalid arguement
shafeeqd959 Feb 24, 2026
fcfe586
added field rules files in read content type ignore file set
shafeeqd959 Feb 24, 2026
bf154d5
fix: Experience import errors when variants reference Lytics audiences
cs-raj Feb 24, 2026
b03b240
chore: version bumps
Feb 25, 2026
2318faf
Merge branch 'v2-beta-dev' into fix/DX-4416
Feb 25, 2026
97bb819
chore: updated path
Feb 25, 2026
8a8d79d
Merge pull request #2421 from contentstack/fix/DX-4416
naman-contentstack Feb 25, 2026
19e91f2
revert: restore completion message in info logs after showConsoleLogs…
Feb 25, 2026
0654d88
Merge pull request #2429 from contentstack/fix/DX-4416
naman-contentstack Feb 26, 2026
2a2c48f
fix: added filter for lytics audience
cs-raj Feb 26, 2026
6c42272
Merge pull request #2434 from contentstack/fix/variant
cs-raj Feb 27, 2026
05897e6
fix: Changed the mapper path from contentDir to backupDir for taxonom…
cs-raj Feb 27, 2026
90cda88
Merge pull request #2438 from contentstack/fix/DX-5129
cs-raj Feb 27, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 4 additions & 15 deletions .talismanrc
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@

fileignoreconfig:
- filename: packages/contentstack-import/src/import/modules/environments.ts
checksum: f61c635eaec8026e0cfa80a5ab8272f7946531f6d89505dc0d247b4c7ab0eab7
- filename: pnpm-lock.yaml
checksum: c3020538089092e55f086c39cc4c027ef3d48f6c786a217db9c5e49f55ab8380
- filename: package-lock.json
checksum: 099edd9ec7ed92eb61ce916511ac87e2fc1ff985efe64a25749ac88ba0d3fa7d
- filename: packages/contentstack-bootstrap/src/bootstrap/utils.ts
checksum: 5ab20e057fa9c4c300f7a882d30e1c68bbc91ed19de520488107e8c37239682a
- filename: packages/contentstack-migration/README.md
checksum: 0deea9c8e43a89a4f20fb25ffe1a38cccd19020fe4fedae80f1ca24d34307f2b
- filename: packages/contentstack-import/src/import/modules/taxonomies.ts
checksum: f4f44b6031d2936ec2da98b39bb5f5c1bd0f3be34dbe498c75e64a35b7d25a33
- filename: packages/contentstack/README.md
checksum: 3a0fab964797476a71d2149ce261d265f410bd756eb9cde9400be9e5250fdc35
- filename: package-lock.json
checksum: 45100667793fc7dfaae3e24787871257e7f29e06df69ba10ec05b358d59ff15d
- filename: pnpm-lock.yaml
checksum: 87d001c32b1d7f9df30a289c277e0ea13cfd8a0e2e5fa5118956ff4183683e5c
version: '1.0'
2,883 changes: 1,557 additions & 1,326 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/contentstack-audit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ $ npm install -g @contentstack/cli-audit
$ csdx COMMAND
running command...
$ csdx (--version|-v)
@contentstack/cli-audit/2.0.0-beta.3 darwin-arm64 node-v24.12.0
@contentstack/cli-audit/2.0.0-beta.3 darwin-arm64 node-v22.13.1
$ csdx --help [COMMAND]
USAGE
$ csdx COMMAND
Expand Down
4 changes: 2 additions & 2 deletions packages/contentstack-audit/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@contentstack/cli-audit",
"version": "2.0.0-beta.4",
"version": "2.0.0-beta.5",
"description": "Contentstack audit plugin",
"author": "Contentstack CLI",
"homepage": "https://github.com/contentstack/cli",
Expand All @@ -19,7 +19,7 @@
],
"dependencies": {
"@contentstack/cli-command": "~2.0.0-beta",
"@contentstack/cli-utilities": "~2.0.0-beta",
"@contentstack/cli-utilities": "~2.0.0-beta.1",
"@oclif/core": "^4.3.0",
"@oclif/plugin-help": "^6.2.28",
"chalk": "^4.1.2",
Expand Down
32 changes: 19 additions & 13 deletions packages/contentstack-audit/src/audit-base-command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,17 @@ import { v4 as uuid } from 'uuid';
import isEmpty from 'lodash/isEmpty';
import { join, resolve } from 'path';
import cloneDeep from 'lodash/cloneDeep';
import { cliux, sanitizePath, TableFlags, TableHeader, log, configHandler, CLIProgressManager, clearProgressModuleSetting } from '@contentstack/cli-utilities';
import {
cliux,
sanitizePath,
TableFlags,
TableHeader,
log,
configHandler,
CLIProgressManager,
clearProgressModuleSetting,
readContentTypeSchemas,
} from '@contentstack/cli-utilities';
import { createWriteStream, existsSync, mkdirSync, readFileSync, writeFileSync, rmSync } from 'fs';
import config from './config';
import { print } from './util/log';
Expand Down Expand Up @@ -59,7 +69,7 @@ export abstract class AuditBaseCommand extends BaseCommand<typeof AuditBaseComma
*/
async start(command: CommandNames): Promise<boolean> {
this.currentCommand = command;

// Set progress supported module and console logs setting BEFORE any log calls
// This ensures the logger respects the setting when it's initialized
const logConfig = configHandler.get('log') || {};
Expand All @@ -68,10 +78,10 @@ export abstract class AuditBaseCommand extends BaseCommand<typeof AuditBaseComma
configHandler.set('log.showConsoleLogs', false);
}
configHandler.set('log.progressSupportedModule', 'audit');

// Initialize global summary for progress tracking
CLIProgressManager.initializeGlobalSummary('AUDIT', '', 'Auditing content...');

await this.promptQueue();
await this.createBackUp();
this.sharedConfig.reportPath = resolve(this.flags['report-path'] || process.cwd(), 'audit-report');
Expand Down Expand Up @@ -166,7 +176,7 @@ export abstract class AuditBaseCommand extends BaseCommand<typeof AuditBaseComma

// Print comprehensive summary at the end
CLIProgressManager.printGlobalSummary();

// Clear progress module setting now that audit is complete
clearProgressModuleSetting();

Expand Down Expand Up @@ -234,11 +244,11 @@ export abstract class AuditBaseCommand extends BaseCommand<typeof AuditBaseComma

let dataModuleWise: Record<string, any> = await new ModuleDataReader(cloneDeep(constructorParam)).run();
log.debug(`Data module wise: ${JSON.stringify(dataModuleWise)}`, this.auditContext);

// Extract logConfig and showConsoleLogs once before the loop to reuse throughout
const logConfig = configHandler.get('log') || {};
const showConsoleLogs = logConfig.showConsoleLogs ?? false;

for (const module of this.sharedConfig.flags.modules || this.sharedConfig.modules) {
// Update audit context with current module
this.auditContext = { module: module };
Expand Down Expand Up @@ -480,19 +490,15 @@ export abstract class AuditBaseCommand extends BaseCommand<typeof AuditBaseComma
* `gfSchema`. The values of these properties are the parsed JSON data from two different files.
*/
getCtAndGfSchema() {
const ctPath = join(
this.sharedConfig.basePath,
this.sharedConfig.moduleConfig['content-types'].dirName,
this.sharedConfig.moduleConfig['content-types'].fileName,
);
const ctDirPath = join(this.sharedConfig.basePath, this.sharedConfig.moduleConfig['content-types'].dirName);
const gfPath = join(
this.sharedConfig.basePath,
this.sharedConfig.moduleConfig['global-fields'].dirName,
this.sharedConfig.moduleConfig['global-fields'].fileName,
);

const gfSchema = existsSync(gfPath) ? (JSON.parse(readFileSync(gfPath, 'utf8')) as ContentTypeStruct[]) : [];
const ctSchema = existsSync(ctPath) ? (JSON.parse(readFileSync(ctPath, 'utf8')) as ContentTypeStruct[]) : [];
const ctSchema = (readContentTypeSchemas(ctDirPath) || []) as ContentTypeStruct[];

return { ctSchema, gfSchema };
}
Expand Down
2 changes: 1 addition & 1 deletion packages/contentstack-audit/src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const config = {
moduleConfig: {
'content-types': {
name: 'content type',
fileName: 'schema.json',
fileName: 'schema.json', // Not used - reads from individual files
dirName: 'content_types',
},
'global-fields': {
Expand Down
Loading
Loading