@aiready/consistency 0.6.3 → 0.6.5

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,6 +1,6 @@
1
1
 
2
2
  
3
- > @aiready/consistency@0.6.3 build /Users/pengcao/projects/aiready/packages/consistency
3
+ > @aiready/consistency@0.6.5 build /Users/pengcao/projects/aiready/packages/consistency
4
4
  > tsup src/index.ts src/cli.ts --format cjs,esm --dts
5
5
 
6
6
  CLI Building entry: src/cli.ts, src/index.ts
@@ -9,15 +9,15 @@
9
9
  CLI Target: es2020
10
10
  CJS Build start
11
11
  ESM Build start
12
- CJS dist/cli.js 45.11 KB
13
- CJS dist/index.js 50.15 KB
14
- CJS ⚡️ Build success in 54ms
12
+ ESM dist/chunk-ON73WHHU.mjs 34.85 KB
15
13
  ESM dist/index.mjs 14.04 KB
16
14
  ESM dist/cli.mjs 8.55 KB
17
- ESM dist/chunk-ON73WHHU.mjs 34.85 KB
18
- ESM ⚡️ Build success in 54ms
15
+ ESM ⚡️ Build success in 40ms
16
+ CJS dist/cli.js 45.11 KB
17
+ CJS dist/index.js 50.15 KB
18
+ CJS ⚡️ Build success in 40ms
19
19
  DTS Build start
20
- DTS ⚡️ Build success in 1007ms
20
+ DTS ⚡️ Build success in 1037ms
21
21
  DTS dist/cli.d.ts 20.00 B
22
22
  DTS dist/index.d.ts 2.73 KB
23
23
  DTS dist/cli.d.mts 20.00 B
@@ -1,14 +1,12 @@
1
1
 
2
2
  
3
- > @aiready/consistency@0.6.3 test /Users/pengcao/projects/aiready/packages/consistency
3
+ > @aiready/consistency@0.6.5 test /Users/pengcao/projects/aiready/packages/consistency
4
4
  > vitest run
5
5
 
6
6
 
7
7
   RUN  v2.1.9 /Users/pengcao/projects/aiready/packages/consistency
8
8
 
9
- [?25l · should detect minimum severity filtering
10
- · analyzeNaming (8)
11
- · should detect single letter variables
9
+ [?25l · should detect single letter variables
12
10
  · should NOT flag acceptable abbreviations
13
11
  · should NOT flag common short English words
14
12
  · should detect snake_case in TypeScript files
@@ -27,51 +25,7 @@
27
25
  · should generate relevant recommendations
28
26
  · should suggest standardizing error handling
29
27
  · should suggest using async/await consistently
30
- [?25l[?25l[?25l[?25l[?25l[?25l ⠙ should detect minimum severity filtering
31
- · analyzeNaming (8)
32
- · should detect single letter variables
33
- · should NOT flag acceptable abbreviations
34
- · should NOT flag common short English words
35
- · should detect snake_case in TypeScript files
36
- · should detect unclear boolean names
37
- · should allow common abbreviations
38
- · should NOT flag multi-line arrow function parameters (Phase 3)
39
- · should NOT flag short-lived comparison variables (Phase 3)
40
- · analyzePatterns (3)
41
- · should detect mixed error handling
42
- · should detect mixed async patterns
43
- · should detect mixed import styles
44
- · consistency scoring (2)
45
- · should calculate consistency score correctly
46
- · should weight critical issues more than info
47
- · recommendations (3)
48
- · should generate relevant recommendations
49
- · should suggest standardizing error handling
50
- · should suggest using async/await consistently
51
- [?25l ⠹ should detect minimum severity filtering
52
- · analyzeNaming (8)
53
- · should detect single letter variables
54
- · should NOT flag acceptable abbreviations
55
- · should NOT flag common short English words
56
- · should detect snake_case in TypeScript files
57
- · should detect unclear boolean names
58
- · should allow common abbreviations
59
- · should NOT flag multi-line arrow function parameters (Phase 3)
60
- · should NOT flag short-lived comparison variables (Phase 3)
61
- · analyzePatterns (3)
62
- · should detect mixed error handling
63
- · should detect mixed async patterns
64
- · should detect mixed import styles
65
- · consistency scoring (2)
66
- · should calculate consistency score correctly
67
- · should weight critical issues more than info
68
- · recommendations (3)
69
- · should generate relevant recommendations
70
- · should suggest standardizing error handling
71
- · should suggest using async/await consistently
72
- [?25l ✓ should detect minimum severity filtering
73
- ✓ analyzeNaming (8)
74
- ✓ should detect single letter variables
28
+ [?25l[?25l[?25l[?25l[?25l[?25l[?25l ✓ should detect single letter variables
75
29
  ✓ should NOT flag acceptable abbreviations
76
30
  ✓ should NOT flag common short English words
77
31
  ✓ should detect snake_case in TypeScript files
@@ -90,7 +44,7 @@
90
44
  ✓ should generate relevant recommendations
91
45
  ✓ should suggest standardizing error handling
92
46
  ✓ should suggest using async/await consistently
93
-  ✓ src/__tests__/analyzer.test.ts (18)
47
+  ✓ src/__tests__/analyzer.test.ts (18)
94
48
  ✓ analyzeConsistency (2)
95
49
  ✓ should analyze naming issues
96
50
  ✓ should detect minimum severity filtering
@@ -117,7 +71,7 @@
117
71
 
118
72
   Test Files  1 passed (1)
119
73
   Tests  18 passed (18)
120
-  Start at  14:32:19
121
-  Duration  723ms (transform 100ms, setup 0ms, collect 314ms, tests 141ms, environment 0ms, prepare 54ms)
74
+  Start at  01:15:32
75
+  Duration  615ms (transform 90ms, setup 0ms, collect 263ms, tests 130ms, environment 0ms, prepare 47ms)
122
76
 
123
77
  [?25h[?25h
package/README.md CHANGED
@@ -246,8 +246,10 @@ AI models work best with consistent codebases because:
246
246
 
247
247
  This tool is part of the [AIReady](https://github.com/caopengau/aiready) ecosystem:
248
248
 
249
- - **@aiready/cli** - Unified interface for all analysis tools
250
- - **@aiready/pattern-detect** - Semantic duplicate detection
249
+ **Related packages:**
250
+ - [**@aiready/cli**](https://www.npmjs.com/package/@aiready/cli) - Unified interface for all analysis tools
251
+ - [**@aiready/pattern-detect**](https://www.npmjs.com/package/@aiready/pattern-detect) - Semantic duplicate detection
252
+ - [**@aiready/context-analyzer**](https://www.npmjs.com/package/@aiready/context-analyzer) - Context window cost analysis
251
253
  - **@aiready/context-analyzer** - Context window cost analysis
252
254
  - **@aiready/consistency** - Consistency analysis (this tool)
253
255
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiready/consistency",
3
- "version": "0.6.3",
3
+ "version": "0.6.5",
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": "^12.1.0",
46
- "@aiready/core": "0.7.3"
46
+ "@aiready/core": "0.7.4"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@types/node": "^22.10.5",