@aiready/consistency 0.21.16 → 0.21.17

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.21.15 build /Users/pengcao/projects/aiready/packages/consistency
3
+ > @aiready/consistency@0.21.16 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
- ESM dist/cli.mjs 8.85 KB
13
- ESM dist/chunk-72LXOO4N.mjs 32.33 KB
14
12
  ESM dist/index.mjs 3.29 KB
15
- ESM ⚡️ Build success in 59ms
16
- CJS dist/cli.js 42.76 KB
13
+ ESM dist/chunk-72LXOO4N.mjs 32.33 KB
14
+ ESM dist/cli.mjs 8.85 KB
15
+ ESM ⚡️ Build success in 93ms
17
16
  CJS dist/index.js 37.22 KB
18
- CJS ⚡️ Build success in 62ms
17
+ CJS dist/cli.js 42.76 KB
18
+ CJS ⚡️ Build success in 93ms
19
19
  DTS Build start
20
- DTS ⚡️ Build success in 3739ms
20
+ DTS ⚡️ Build success in 2879ms
21
21
  DTS dist/cli.d.ts 20.00 B
22
22
  DTS dist/index.d.ts 3.96 KB
23
23
  DTS dist/cli.d.mts 20.00 B
@@ -1,6 +1,6 @@
1
1
 
2
2
  
3
- > @aiready/consistency@0.21.15 format-check /Users/pengcao/projects/aiready/packages/consistency
3
+ > @aiready/consistency@0.21.16 format-check /Users/pengcao/projects/aiready/packages/consistency
4
4
  > prettier --check . --ignore-path ../../.prettierignore
5
5
 
6
6
  Checking formatting...
@@ -1,5 +1,5 @@
1
1
 
2
2
  
3
- > @aiready/consistency@0.21.15 lint /Users/pengcao/projects/aiready/packages/consistency
3
+ > @aiready/consistency@0.21.16 lint /Users/pengcao/projects/aiready/packages/consistency
4
4
  > eslint src
5
5
 
@@ -1,29 +1,45 @@
1
1
 
2
2
  
3
- > @aiready/consistency@0.21.15 test /Users/pengcao/projects/aiready/packages/consistency
3
+ > @aiready/consistency@0.21.16 test /Users/pengcao/projects/aiready/packages/consistency
4
4
  > vitest run
5
5
 
6
6
  [?25l
7
-  RUN  v4.0.18 /Users/pengcao/projects/aiready/packages/consistency
7
+  RUN  v4.1.2 /Users/pengcao/projects/aiready/packages/consistency
8
8
 
9
9
  [?2026h
10
-  ❯ src/__tests__/contract.test.ts [queued]
10
+  ❯ src/__tests__/scoring.test.ts [queued]
11
11
 
12
12
   Test Files 0 passed (9)
13
13
   Tests 0 passed (0)
14
-  Start at 23:35:40
15
-  Duration 130ms
14
+  Start at 19:19:07
15
+  Duration 321ms
16
16
  [?2026l[?2026h
17
17
   ❯ src/__tests__/analyzer.test.ts [queued]
18
+  ❯ src/__tests__/provider.test.ts [queued]
19
+  ❯ src/__tests__/scoring.test.ts [queued]
20
+
21
+  Test Files 0 passed (9)
22
+  Tests 0 passed (0)
23
+  Start at 19:19:07
24
+  Duration 421ms
25
+ [?2026l[?2026h
26
+  ❯ src/__tests__/analyzer.test.ts [queued]
18
27
   ❯ src/__tests__/contract.test.ts [queued]
28
+  ❯ src/__tests__/language-filter.test.ts [queued]
29
+  ❯ src/__tests__/naming-constants.test.ts [queued]
30
+  ❯ src/__tests__/naming-dotted.test.ts [queued]
31
+  ❯ src/__tests__/naming.test.ts [queued]
32
+  ❯ src/__tests__/provider.test.ts [queued]
33
+  ❯ src/__tests__/scoring.test.ts [queued]
19
34
 
20
35
   Test Files 0 passed (9)
21
36
   Tests 0 passed (0)
22
-  Start at 23:35:40
23
-  Duration 285ms
24
- [?2026l[?2026h
37
+  Start at 19:19:07
38
+  Duration 634ms
39
+ [?2026l[?2026h
25
40
   ❯ src/__tests__/analyzer.test.ts [queued]
26
41
   ❯ src/__tests__/contract.test.ts [queued]
42
+  ❯ src/__tests__/language-filter.test.ts [queued]
27
43
   ❯ src/__tests__/naming-constants.test.ts [queued]
28
44
   ❯ src/__tests__/naming-dotted.test.ts [queued]
29
45
   ❯ src/__tests__/naming.test.ts [queued]
@@ -33,24 +49,24 @@
33
49
 
34
50
   Test Files 0 passed (9)
35
51
   Tests 0 passed (0)
36
-  Start at 23:35:40
37
-  Duration 544ms
38
- [?2026l[?2026h ✓ src/__tests__/scope-tracker.test.ts (11 tests) 8ms
52
+  Start at 19:19:07
53
+  Duration 924ms
54
+ [?2026l[?2026h ✓ src/__tests__/naming-constants.test.ts (14 tests) 12ms
39
55
 
40
56
   ❯ src/__tests__/analyzer.test.ts [queued]
41
57
   ❯ src/__tests__/contract.test.ts [queued]
42
58
   ❯ src/__tests__/language-filter.test.ts [queued]
43
-  ❯ src/__tests__/naming-constants.test.ts 0/14
44
59
   ❯ src/__tests__/naming-dotted.test.ts [queued]
45
60
   ❯ src/__tests__/naming.test.ts [queued]
46
61
   ❯ src/__tests__/provider.test.ts [queued]
62
+  ❯ src/__tests__/scope-tracker.test.ts 0/11
47
63
   ❯ src/__tests__/scoring.test.ts [queued]
48
64
 
49
65
   Test Files 1 passed (9)
50
-  Tests 11 passed (25)
51
-  Start at 23:35:40
52
-  Duration 644ms
53
- [?2026l[?2026h ✓ src/__tests__/naming-constants.test.ts (14 tests) 3ms
66
+  Tests 14 passed (25)
67
+  Start at 19:19:07
68
+  Duration 1.16s
69
+ [?2026l[?2026h ✓ src/__tests__/scope-tracker.test.ts (11 tests) 11ms
54
70
 
55
71
   ❯ src/__tests__/analyzer.test.ts [queued]
56
72
   ❯ src/__tests__/contract.test.ts [queued]
@@ -62,29 +78,41 @@
62
78
 
63
79
   Test Files 2 passed (9)
64
80
   Tests 25 passed (25)
65
-  Start at 23:35:40
66
-  Duration 948ms
81
+  Start at 19:19:07
82
+  Duration 1.95s
67
83
  [?2026l[?2026h
68
84
   ❯ src/__tests__/analyzer.test.ts [queued]
69
85
   ❯ src/__tests__/contract.test.ts [queued]
70
-  ❯ src/__tests__/language-filter.test.ts 0/3
86
+  ❯ src/__tests__/language-filter.test.ts [queued]
71
87
   ❯ src/__tests__/naming-dotted.test.ts [queued]
72
88
   ❯ src/__tests__/naming.test.ts [queued]
73
89
   ❯ src/__tests__/provider.test.ts [queued]
74
-  ❯ src/__tests__/scoring.test.ts [queued]
90
+  ❯ src/__tests__/scoring.test.ts 0/8
75
91
 
76
92
   Test Files 2 passed (9)
77
-  Tests 25 passed (28)
78
-  Start at 23:35:40
79
-  Duration 1.26s
80
- [?2026l[?2026h ✓ src/__tests__/language-filter.test.ts (3 tests) 3ms
81
- ✓ src/__tests__/naming.test.ts (5 tests) 4ms
93
+  Tests 25 passed (33)
94
+  Start at 19:19:07
95
+  Duration 2.80s
96
+ [?2026l[?2026h ✓ src/__tests__/scoring.test.ts (8 tests) 17ms
97
+ ✓ src/__tests__/naming.test.ts (5 tests) 29ms
98
+
99
+
100
+  ❯ src/__tests__/analyzer.test.ts 0/22
101
+  ❯ src/__tests__/contract.test.ts [queued]
102
+  ❯ src/__tests__/language-filter.test.ts [queued]
103
+  ❯ src/__tests__/naming-dotted.test.ts 0/2
104
+  ❯ src/__tests__/provider.test.ts [queued]
105
+
106
+  Test Files 4 passed (9)
107
+  Tests 38 passed (62)
108
+  Start at 19:19:07
109
+  Duration 2.90s
110
+ [?2026l[?2026h ✓ src/__tests__/language-filter.test.ts (3 tests) 6ms
82
111
  ✓ src/__tests__/provider.test.ts (2 tests) 2ms
83
- ✓ src/__tests__/scoring.test.ts (8 tests) 3ms
84
112
  stdout | src/__tests__/contract.test.ts > Consistency Spoke Contract Validation > should produce output matching the SpokeOutput contract
85
113
  Consistency: Skipping unparseable file file1.ts: ENOENT: no such file or directory, open 'file1.ts'
86
114
 
87
- ✓ src/__tests__/contract.test.ts (1 test) 26ms
115
+ ✓ src/__tests__/contract.test.ts (1 test) 14ms
88
116
 
89
117
 
90
118
   ❯ src/__tests__/analyzer.test.ts 1/22
@@ -92,8 +120,8 @@
92
120
 
93
121
   Test Files 7 passed (9)
94
122
   Tests 45 passed (68)
95
-  Start at 23:35:40
96
-  Duration 1.46s
123
+  Start at 19:19:07
124
+  Duration 3.63s
97
125
  [?2026l[?2026h
98
126
 
99
127
   ❯ src/__tests__/analyzer.test.ts 2/22
@@ -101,8 +129,8 @@
101
129
 
102
130
   Test Files 7 passed (9)
103
131
   Tests 46 passed (68)
104
-  Start at 23:35:40
105
-  Duration 1.56s
132
+  Start at 19:19:07
133
+  Duration 3.94s
106
134
  [?2026l[?2026h
107
135
 
108
136
   ❯ src/__tests__/analyzer.test.ts 3/22
@@ -110,23 +138,41 @@
110
138
 
111
139
   Test Files 7 passed (9)
112
140
   Tests 47 passed (68)
113
-  Start at 23:35:40
114
-  Duration 1.66s
115
- [?2026l[?2026h ✓ src/__tests__/analyzer.test.ts (22 tests) 371ms
141
+  Start at 19:19:07
142
+  Duration 4.14s
143
+ [?2026l[?2026h
116
144
 
145
+  ❯ src/__tests__/analyzer.test.ts 20/22
146
+  ❯ src/__tests__/naming-dotted.test.ts 0/2
147
+
148
+  Test Files 7 passed (9)
149
+  Tests 64 passed (68)
150
+  Start at 19:19:07
151
+  Duration 4.44s
152
+ [?2026l[?2026h ✓ src/__tests__/analyzer.test.ts (22 tests) 1510ms
153
+ ✓ should analyze naming issues  676ms
154
+
155
+
156
+  ❯ src/__tests__/naming-dotted.test.ts 0/2
157
+
158
+  Test Files 8 passed (9)
159
+  Tests 66 passed (68)
160
+  Start at 19:19:07
161
+  Duration 4.95s
162
+ [?2026l[?2026h
117
163
 
118
164
   ❯ src/__tests__/naming-dotted.test.ts 1/2
119
165
 
120
166
   Test Files 8 passed (9)
121
167
   Tests 67 passed (68)
122
-  Start at 23:35:40
123
-  Duration 1.97s
124
- [?2026l ✓ src/__tests__/naming-dotted.test.ts (2 tests) 635ms
125
- ✓ should NOT flag dotted identifiers in Python imports  632ms
168
+  Start at 19:19:07
169
+  Duration 5.87s
170
+ [?2026l ✓ src/__tests__/naming-dotted.test.ts (2 tests) 3018ms
171
+ ✓ should NOT flag dotted identifiers in Python imports  3013ms
126
172
 
127
173
   Test Files  9 passed (9)
128
174
   Tests  68 passed (68)
129
-  Start at  23:35:40
130
-  Duration  1.99s (transform 1.90s, setup 0ms, import 7.04s, tests 1.06s, environment 1ms)
175
+  Start at  19:19:07
176
+  Duration  5.90s (transform 4.85s, setup 0ms, import 17.91s, tests 4.62s, environment 1ms)
131
177
 
132
178
  [?25h
@@ -1,5 +1,5 @@
1
1
 
2
2
  
3
- > @aiready/consistency@0.21.15 type-check /Users/pengcao/projects/aiready/packages/consistency
3
+ > @aiready/consistency@0.21.16 type-check /Users/pengcao/projects/aiready/packages/consistency
4
4
  > tsc --noEmit
5
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiready/consistency",
3
- "version": "0.21.16",
3
+ "version": "0.21.17",
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",
@@ -39,17 +39,17 @@
39
39
  },
40
40
  "homepage": "https://github.com/getaiready/aiready-consistency",
41
41
  "dependencies": {
42
- "@typescript-eslint/types": "^8.53.0",
43
- "@typescript-eslint/typescript-estree": "^8.53.0",
44
- "chalk": "^5.3.0",
45
- "commander": "^14.0.0",
46
- "@aiready/core": "0.24.19"
42
+ "@typescript-eslint/types": "^8.58.0",
43
+ "@typescript-eslint/typescript-estree": "^8.58.0",
44
+ "chalk": "^5.6.2",
45
+ "commander": "^14.0.3",
46
+ "@aiready/core": "0.24.20"
47
47
  },
48
48
  "devDependencies": {
49
- "@types/node": "^24.0.0",
50
- "tsup": "^8.3.5",
51
- "typescript": "^5.7.2",
52
- "vitest": "^4.0.0"
49
+ "@types/node": "^24.12.2",
50
+ "tsup": "^8.5.1",
51
+ "typescript": "^6.0.2",
52
+ "vitest": "^4.1.2"
53
53
  },
54
54
  "engines": {
55
55
  "node": ">=18.0.0"
@@ -64,6 +64,7 @@
64
64
  "type-check": "tsc --noEmit",
65
65
  "format-check": "prettier --check . --ignore-path ../../.prettierignore",
66
66
  "format": "prettier --write . --ignore-path ../../.prettierignore",
67
- "lint:fix": "eslint . --fix"
67
+ "lint:fix": "eslint . --fix",
68
+ "test:coverage": "vitest run --coverage"
68
69
  }
69
70
  }
package/tsconfig.json CHANGED
@@ -2,7 +2,8 @@
2
2
  "extends": "../core/tsconfig.json",
3
3
  "compilerOptions": {
4
4
  "outDir": "./dist",
5
- "rootDir": "./src"
5
+ "rootDir": "./src",
6
+ "ignoreDeprecations": "6.0"
6
7
  },
7
8
  "include": ["src/**/*"],
8
9
  "exclude": ["node_modules", "dist"]