@aiready/consistency 0.2.4 → 0.2.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.2.4 build /Users/pengcao/projects/aiready/packages/consistency
3
+ > @aiready/consistency@0.2.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 23.02 KB
13
12
  CJS dist/index.js 14.13 KB
14
- CJS ⚡️ Build success in 54ms
15
- ESM dist/index.mjs 220.00 B
13
+ CJS dist/cli.js 23.02 KB
14
+ CJS ⚡️ Build success in 58ms
16
15
  ESM dist/cli.mjs 8.54 KB
16
+ ESM dist/index.mjs 220.00 B
17
17
  ESM dist/chunk-CF4LU7KE.mjs 12.90 KB
18
- ESM ⚡️ Build success in 55ms
18
+ ESM ⚡️ Build success in 58ms
19
19
  DTS Build start
20
- DTS ⚡️ Build success in 556ms
20
+ DTS ⚡️ Build success in 548ms
21
21
  DTS dist/cli.d.ts 20.00 B
22
22
  DTS dist/index.d.ts 2.60 KB
23
23
  DTS dist/cli.d.mts 20.00 B
@@ -0,0 +1,55 @@
1
+
2
+ 
3
+ > @aiready/consistency@0.2.5 test /Users/pengcao/projects/aiready/packages/consistency
4
+ > vitest run
5
+
6
+
7
+  RUN  v2.1.9 /Users/pengcao/projects/aiready/packages/consistency
8
+
9
+ [?25l ❯ src/__tests__/analyzer.test.ts (14)
10
+ ❯ analyzeConsistency (2)
11
+ ⠙ should analyze naming issues
12
+ · should detect minimum severity filtering
13
+ · analyzeNaming (4)
14
+ · should detect single letter variables
15
+ · should detect snake_case in TypeScript files
16
+ · should detect unclear boolean names
17
+ · should allow common abbreviations
18
+ · analyzePatterns (3)
19
+ · should detect mixed error handling
20
+ · should detect mixed async patterns
21
+ · should detect mixed import styles
22
+ · consistency scoring (2)
23
+ · should calculate consistency score correctly
24
+ · should weight critical issues more than info
25
+ · recommendations (3)
26
+ · should generate relevant recommendations
27
+ · should suggest standardizing error handling
28
+ · should suggest using async/await consistently
29
+  ✓ src/__tests__/analyzer.test.ts (14)
30
+ ✓ analyzeConsistency (2)
31
+ ✓ should analyze naming issues
32
+ ✓ should detect minimum severity filtering
33
+ ✓ analyzeNaming (4)
34
+ ✓ should detect single letter variables
35
+ ✓ should detect snake_case in TypeScript files
36
+ ✓ should detect unclear boolean names
37
+ ✓ should allow common abbreviations
38
+ ✓ analyzePatterns (3)
39
+ ✓ should detect mixed error handling
40
+ ✓ should detect mixed async patterns
41
+ ✓ should detect mixed import styles
42
+ ✓ consistency scoring (2)
43
+ ✓ should calculate consistency score correctly
44
+ ✓ should weight critical issues more than info
45
+ ✓ recommendations (3)
46
+ ✓ should generate relevant recommendations
47
+ ✓ should suggest standardizing error handling
48
+ ✓ should suggest using async/await consistently
49
+
50
+  Test Files  1 passed (1)
51
+  Tests  14 passed (14)
52
+  Start at  07:25:15
53
+  Duration  323ms (transform 63ms, setup 0ms, collect 73ms, tests 23ms, environment 0ms, prepare 43ms)
54
+
55
+ [?25h[?25h
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiready/consistency",
3
- "version": "0.2.4",
3
+ "version": "0.2.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",
@@ -41,7 +41,7 @@
41
41
  "dependencies": {
42
42
  "chalk": "^5.3.0",
43
43
  "commander": "^12.1.0",
44
- "@aiready/core": "0.5.5"
44
+ "@aiready/core": "0.5.6"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@types/node": "^22.10.5",