@aiready/consistency 0.8.32 → 0.8.36

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.8.32 build /Users/pengcao/projects/aiready/packages/consistency
3
+ > @aiready/consistency@0.8.36 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,16 +9,16 @@
9
9
  CLI Target: es2020
10
10
  CJS Build start
11
11
  ESM Build start
12
+ CJS dist/cli.js 51.74 KB
13
+ CJS dist/index.js 56.89 KB
14
+ CJS ⚡️ Build success in 241ms
12
15
  ESM dist/cli.mjs 8.83 KB
13
- ESM dist/chunk-J5IFYDVU.mjs 41.75 KB
14
16
  ESM dist/index.mjs 13.46 KB
15
- ESM ⚡️ Build success in 99ms
16
- CJS dist/index.js 56.89 KB
17
- CJS dist/cli.js 51.74 KB
18
- CJS ⚡️ Build success in 100ms
17
+ ESM dist/chunk-J5IFYDVU.mjs 41.75 KB
18
+ ESM ⚡️ Build success in 251ms
19
19
  DTS Build start
20
- DTS ⚡️ Build success in 5038ms
20
+ DTS ⚡️ Build success in 4860ms
21
21
  DTS dist/cli.d.ts 20.00 B
22
- DTS dist/index.d.ts 3.41 KB
22
+ DTS dist/index.d.ts 3.43 KB
23
23
  DTS dist/cli.d.mts 20.00 B
24
- DTS dist/index.d.mts 3.41 KB
24
+ DTS dist/index.d.mts 3.43 KB
@@ -0,0 +1,5 @@
1
+
2
+ 
3
+ > @aiready/consistency@0.8.32 lint /Users/pengcao/projects/aiready/packages/consistency
4
+ > eslint src
5
+
@@ -1,24 +1,27 @@
1
1
 
2
2
  
3
- > @aiready/consistency@0.8.32 test /Users/pengcao/projects/aiready/packages/consistency
3
+ > @aiready/consistency@0.8.34 test /Users/pengcao/projects/aiready/packages/consistency
4
4
  > vitest run
5
5
 
6
6
  [?25l
7
7
   RUN  v4.0.18 /Users/pengcao/projects/aiready/packages/consistency
8
8
 
9
- ✓ dist/__tests__/scoring.test.js (8 tests) 3ms
10
- ✓ dist/__tests__/language-filter.test.js (3 tests) 5ms
11
- ✓ src/__tests__/language-filter.test.ts (3 tests) 7ms
12
- ✓ src/__tests__/scoring.test.ts (8 tests) 5ms
13
- ✓ dist/__tests__/analyzer.test.js (18 tests) 912ms
14
- ✓ should analyze naming issues  342ms
15
- ✓ should detect minimum severity filtering  455ms
16
- ✓ src/__tests__/analyzer.test.ts (18 tests) 728ms
17
- ✓ should analyze naming issues  379ms
9
+ ✓ dist/__tests__/scoring.test.js (8 tests) 17ms
10
+ ✓ src/__tests__/scoring.test.ts (8 tests) 20ms
11
+ ✓ dist/__tests__/language-filter.test.js (3 tests) 14ms
12
+ ✓ src/__tests__/language-filter.test.ts (3 tests) 65ms
13
+ ✓ src/__tests__/analyzer.test.ts (18 tests) 4963ms
14
+ ✓ should analyze naming issues  1922ms
15
+ ✓ should detect minimum severity filtering  1275ms
16
+ ✓ should generate relevant recommendations  1761ms
17
+ ✓ dist/__tests__/analyzer.test.js (18 tests) 5053ms
18
+ ✓ should analyze naming issues  1838ms
19
+ ✓ should detect minimum severity filtering  1767ms
20
+ ✓ should generate relevant recommendations  1288ms
18
21
 
19
22
   Test Files  6 passed (6)
20
23
   Tests  58 passed (58)
21
-  Start at  22:19:18
22
-  Duration  2.58s (transform 1.87s, setup 0ms, import 6.52s, tests 1.66s, environment 0ms)
24
+  Start at  00:56:32
25
+  Duration  13.62s (transform 11.16s, setup 0ms, import 33.40s, tests 10.13s, environment 1ms)
23
26
 
24
27
  [?25h
package/dist/index.d.mts CHANGED
@@ -26,6 +26,7 @@ interface NamingIssue {
26
26
  identifier: string;
27
27
  suggestion?: string;
28
28
  severity: 'critical' | 'major' | 'minor' | 'info';
29
+ category?: 'naming';
29
30
  }
30
31
  interface PatternIssue {
31
32
  files: string[];
package/dist/index.d.ts CHANGED
@@ -26,6 +26,7 @@ interface NamingIssue {
26
26
  identifier: string;
27
27
  suggestion?: string;
28
28
  severity: 'critical' | 'major' | 'minor' | 'info';
29
+ category?: 'naming';
29
30
  }
30
31
  interface PatternIssue {
31
32
  files: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiready/consistency",
3
- "version": "0.8.32",
3
+ "version": "0.8.36",
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.9.33"
46
+ "@aiready/core": "0.9.37"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@types/node": "^24.0.0",
@@ -1,6 +1,5 @@
1
1
  import { describe, it, expect } from 'vitest';
2
2
  import { analyzeConsistency } from '../analyzer';
3
- import { analyzeNaming } from '../analyzers/naming';
4
3
  import { analyzePatterns } from '../analyzers/patterns';
5
4
 
6
5
  describe('analyzeConsistency', () => {
@@ -39,8 +38,9 @@ const x = 10;
39
38
  const y = 20;
40
39
  const result = x + y;
41
40
  `;
42
- void testCode;
43
- // In a real test, we'd create temp files or mock file reading
41
+ void testCode;
42
+ void 0;
43
+ // In a real test, we'd create temp files or mock file reading
44
44
  // For now, this is a placeholder structure
45
45
  expect(true).toBe(true);
46
46
  });
@@ -111,7 +111,7 @@ function analyzeFileNamingAST(
111
111
  }
112
112
 
113
113
  // Track variable declarations
114
- if (node.type === 'VariableDeclarator') {
114
+ if (node.type === 'VariableDeclarator') {
115
115
  if (node.id.type === 'Identifier') {
116
116
  void isCoverageContext(node, ancestors);
117
117
  scopeTracker.declareVariable(
@@ -184,7 +184,9 @@ function toPascalCase(str: string): string {
184
184
  /**
185
185
  * Detect common Python anti-patterns in naming
186
186
  */
187
- export function detectPythonNamingAntiPatterns(_files: string[]): NamingIssue[] {
187
+ export function detectPythonNamingAntiPatterns(
188
+ _files: string[]
189
+ ): NamingIssue[] {
188
190
  const issues: NamingIssue[] = [];
189
191
 
190
192
  // Parameter currently unused; reference to avoid lint warnings
package/src/types.ts CHANGED
@@ -32,6 +32,7 @@ export interface NamingIssue {
32
32
  identifier: string;
33
33
  suggestion?: string;
34
34
  severity: 'critical' | 'major' | 'minor' | 'info';
35
+ category?: 'naming';
35
36
  }
36
37
 
37
38
  export interface PatternIssue {