@aiready/consistency 0.21.6 → 0.21.8

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.
@@ -1,23 +1,24 @@
1
-
2
- > @aiready/consistency@0.21.6 build /Users/pengcao/projects/aiready/packages/consistency
3
- > tsup src/index.ts src/cli.ts --format cjs,esm --dts
4
-
5
- CLI Building entry: src/cli.ts, src/index.ts
6
- CLI Using tsconfig: tsconfig.json
7
- CLI tsup v8.5.1
8
- CLI Target: es2020
9
- CJS Build start
10
- ESM Build start
11
- ESM dist/index.mjs 3.26 KB
12
- ESM dist/cli.mjs 8.85 KB
13
- ESM dist/chunk-7DKVZNY7.mjs 30.66 KB
14
- ESM ⚡️ Build success in 169ms
15
- CJS dist/cli.js 41.09 KB
16
- CJS dist/index.js 35.50 KB
17
- CJS ⚡️ Build success in 169ms
18
- DTS Build start
19
- DTS ⚡️ Build success in 11907ms
20
- DTS dist/cli.d.ts 20.00 B
21
- DTS dist/index.d.ts 3.94 KB
22
- DTS dist/cli.d.mts 20.00 B
23
- DTS dist/index.d.mts 3.94 KB
1
+
2
+ 
3
+ > @aiready/consistency@0.21.8 build /Users/pengcao/projects/aiready/packages/consistency
4
+ > tsup src/index.ts src/cli.ts --format cjs,esm --dts
5
+
6
+ CLI Building entry: src/cli.ts, src/index.ts
7
+ CLI Using tsconfig: tsconfig.json
8
+ CLI tsup v8.5.1
9
+ CLI Target: es2020
10
+ CJS Build start
11
+ ESM Build start
12
+ CJS dist/cli.js 41.09 KB
13
+ CJS dist/index.js 35.50 KB
14
+ CJS ⚡️ Build success in 90ms
15
+ ESM dist/cli.mjs 8.85 KB
16
+ ESM dist/chunk-7DKVZNY7.mjs 30.66 KB
17
+ ESM dist/index.mjs 3.26 KB
18
+ ESM ⚡️ Build success in 90ms
19
+ DTS Build start
20
+ DTS ⚡️ Build success in 2961ms
21
+ DTS dist/cli.d.ts 20.00 B
22
+ DTS dist/index.d.ts 3.94 KB
23
+ DTS dist/cli.d.mts 20.00 B
24
+ DTS dist/index.d.mts 3.94 KB
@@ -0,0 +1,7 @@
1
+
2
+ 
3
+ > @aiready/consistency@0.21.8 format-check /Users/pengcao/projects/aiready/packages/consistency
4
+ > prettier --check . --ignore-path ../../.prettierignore
5
+
6
+ Checking formatting...
7
+ .aireadyignoreCONTRIBUTING.mdLICENSEpackage.jsonREADME.mdsrc/__tests__/analyzer.test.tssrc/__tests__/contract.test.tssrc/__tests__/language-filter.test.tssrc/__tests__/naming-constants.test.tssrc/__tests__/naming-dotted.test.tssrc/__tests__/naming.test.tssrc/__tests__/provider.test.tssrc/__tests__/scope-tracker.test.tssrc/__tests__/scoring.test.tssrc/analyzer.tssrc/analyzers/naming-ast.tssrc/analyzers/naming-constants.tssrc/analyzers/naming-generalized.tssrc/analyzers/naming.tssrc/analyzers/patterns.tssrc/cli.tssrc/index.tssrc/provider.tssrc/scoring.tssrc/types.tssrc/utils/ast-parser.tssrc/utils/config-loader.tssrc/utils/context-detector.tssrc/utils/scope-tracker.tstsconfig.jsontsconfig.tsbuildinfoAll matched files use Prettier code style!
@@ -1,4 +1,5 @@
1
-
2
- > @aiready/consistency@0.20.20 lint /Users/pengcao/projects/aiready/packages/consistency
3
- > eslint src
4
-
1
+
2
+ 
3
+ > @aiready/consistency@0.21.8 lint /Users/pengcao/projects/aiready/packages/consistency
4
+ > eslint src
5
+
@@ -1,33 +1,35 @@
1
-
2
- > @aiready/consistency@0.21.5 test /Users/pengcao/projects/aiready/packages/consistency
3
- > vitest run
4
-
5
-
6
-  RUN  v4.0.18 /Users/pengcao/projects/aiready/packages/consistency
7
-
8
- ✓ src/__tests__/scope-tracker.test.ts (11 tests) 58ms
9
- ✓ src/__tests__/naming-constants.test.ts (14 tests) 19ms
10
- ✓ dist/__tests__/scoring.test.js (8 tests) 8ms
11
- ✓ src/__tests__/scoring.test.ts (8 tests) 5ms
12
- ✓ src/__tests__/naming.test.ts (5 tests) 6ms
13
- ✓ src/__tests__/provider.test.ts (2 tests) 3ms
14
- Sourcemap for "/Users/pengcao/projects/aiready/packages/consistency/dist/analyzers/naming-python.js" points to missing source files
15
- ✓ src/__tests__/language-filter.test.ts (3 tests) 11ms
16
- ✓ dist/__tests__/language-filter.test.js (3 tests) 96ms
17
- stdout | src/__tests__/contract.test.ts > Consistency Spoke Contract Validation > should produce output matching the SpokeOutput contract
18
- Consistency: Skipping unparseable file file1.ts: ENOENT: no such file or directory, open 'file1.ts'
19
-
20
- ✓ src/__tests__/contract.test.ts (1 test) 72ms
21
- ✓ dist/__tests__/analyzer.test.js (18 tests) 837ms
22
- ✓ should analyze naming issues  409ms
23
- ✓ src/__tests__/analyzer.test.ts (21 tests) 1443ms
24
- ✓ should analyze naming issues  645ms
25
- ✓ should detect minimum severity filtering  336ms
26
- ✓ src/__tests__/naming-dotted.test.ts (2 tests) 2457ms
27
- ✓ should NOT flag dotted identifiers in Python imports  2455ms
28
-
29
-  Test Files  12 passed (12)
30
-  Tests  96 passed (96)
31
-  Start at  20:27:24
32
-  Duration  7.11s (transform 8.86s, setup 0ms, import 34.22s, tests 5.02s, environment 1ms)
33
-
1
+
2
+ 
3
+ > @aiready/consistency@0.21.7 test /Users/pengcao/projects/aiready/packages/consistency
4
+ > vitest run
5
+
6
+ [?25l
7
+  RUN  v4.0.18 /Users/pengcao/projects/aiready/packages/consistency
8
+
9
+ ✓ src/__tests__/naming-constants.test.ts (14 tests) 10ms
10
+ ✓ src/__tests__/scope-tracker.test.ts (11 tests) 24ms
11
+ ✓ dist/__tests__/scoring.test.js (8 tests) 12ms
12
+ ✓ src/__tests__/provider.test.ts (2 tests) 8ms
13
+ ✓ src/__tests__/naming.test.ts (5 tests) 5ms
14
+ ✓ src/__tests__/language-filter.test.ts (3 tests) 2ms
15
+ stdout | src/__tests__/contract.test.ts > Consistency Spoke Contract Validation > should produce output matching the SpokeOutput contract
16
+ Consistency: Skipping unparseable file file1.ts: ENOENT: no such file or directory, open 'file1.ts'
17
+
18
+ ✓ src/__tests__/contract.test.ts (1 test) 96ms
19
+ ✓ src/__tests__/scoring.test.ts (8 tests) 3ms
20
+ Sourcemap for "/Users/pengcao/projects/aiready/packages/consistency/dist/analyzers/naming-python.js" points to missing source files
21
+ ✓ dist/__tests__/language-filter.test.js (3 tests) 3ms
22
+ ✓ src/__tests__/analyzer.test.ts (21 tests) 1001ms
23
+ ✓ should analyze naming issues  500ms
24
+ ✓ should detect minimum severity filtering  342ms
25
+ ✓ dist/__tests__/analyzer.test.js (18 tests) 860ms
26
+ ✓ should detect minimum severity filtering  438ms
27
+ ✓ src/__tests__/naming-dotted.test.ts (2 tests) 2739ms
28
+ ✓ should NOT flag dotted identifiers in Python imports  2735ms
29
+
30
+  Test Files  12 passed (12)
31
+  Tests  96 passed (96)
32
+  Start at  00:08:32
33
+  Duration  6.21s (transform 7.94s, setup 0ms, import 28.04s, tests 4.76s, environment 1ms)
34
+
35
+ [?25h
@@ -0,0 +1,5 @@
1
+
2
+ 
3
+ > @aiready/consistency@0.21.8 type-check /Users/pengcao/projects/aiready/packages/consistency
4
+ > tsc --noEmit
5
+
package/CONTRIBUTING.md CHANGED
@@ -4,7 +4,7 @@ Thank you for your interest in contributing to AIReady Consistency Checker! We w
4
4
 
5
5
  ## 🐛 Reporting Issues
6
6
 
7
- Found a bug or have a feature request? [Open an issue](https://github.com/caopengau/aiready-consistency/issues) with:
7
+ Found a bug or have a feature request? [Open an issue](https://github.com/getaiready/aiready-consistency/issues) with:
8
8
 
9
9
  - Clear description of the problem or feature
10
10
  - Sample code that demonstrates the issue
@@ -147,7 +147,7 @@ This package is part of the AIReady monorepo. If contributing to the monorepo:
147
147
 
148
148
  ## 📚 Resources
149
149
 
150
- - [AIReady CLI](https://github.com/caopengau/aiready-cli)
150
+ - [AIReady CLI](https://github.com/getaiready/aiready-cli)
151
151
  - [AIReady Documentation](.github/copilot-instructions.md)
152
152
  - [TypeScript Best Practices](https://github.com/labs42io/clean-code-typescript)
153
153
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiready/consistency",
3
- "version": "0.21.6",
3
+ "version": "0.21.8",
4
4
  "description": "Detects consistency issues in naming, patterns, and architecture that confuse AI models",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -43,7 +43,7 @@
43
43
  "@typescript-eslint/typescript-estree": "^8.53.0",
44
44
  "chalk": "^5.3.0",
45
45
  "commander": "^14.0.0",
46
- "@aiready/core": "0.24.6"
46
+ "@aiready/core": "0.24.8"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@types/node": "^24.0.0",
@@ -60,6 +60,8 @@
60
60
  "test": "vitest run",
61
61
  "lint": "eslint src",
62
62
  "clean": "rm -rf dist",
63
- "release": "pnpm build && pnpm publish --no-git-checks"
63
+ "release": "pnpm build && pnpm publish --no-git-checks",
64
+ "type-check": "tsc --noEmit",
65
+ "format-check": "prettier --check . --ignore-path ../../.prettierignore"
64
66
  }
65
67
  }
package/src/cli.ts CHANGED
@@ -3,6 +3,7 @@
3
3
  import { Command } from 'commander';
4
4
  import { analyzeConsistency } from './analyzer';
5
5
  import type { ConsistencyOptions } from './types';
6
+ import { Severity } from '@aiready/core';
6
7
  import chalk from 'chalk';
7
8
  import { writeFileSync, mkdirSync, existsSync } from 'fs';
8
9
  import { dirname } from 'path';
@@ -91,7 +92,8 @@ EXAMPLES:
91
92
  checkNaming: options.naming !== false && mergedConfig.checkNaming,
92
93
  checkPatterns: options.patterns !== false && mergedConfig.checkPatterns,
93
94
  checkArchitecture: options.architecture || mergedConfig.checkArchitecture,
94
- minSeverity: (options.minSeverity as string) || mergedConfig.minSeverity,
95
+ minSeverity:
96
+ (options.minSeverity as Severity) || mergedConfig.minSeverity,
95
97
  include: options.include?.split(',') || mergedConfig.include,
96
98
  exclude: options.exclude?.split(',') || mergedConfig.exclude,
97
99
  };