@aiready/consistency 0.21.0 → 0.21.2

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,5 +1,5 @@
1
1
 
2
- > @aiready/consistency@0.21.0 build /Users/pengcao/projects/aiready/packages/consistency
2
+ > @aiready/consistency@0.21.2 build /Users/pengcao/projects/aiready/packages/consistency
3
3
  > tsup src/index.ts src/cli.ts --format cjs,esm --dts
4
4
 
5
5
  CLI Building entry: src/cli.ts, src/index.ts
@@ -8,16 +8,16 @@ CLI tsup v8.5.1
8
8
  CLI Target: es2020
9
9
  CJS Build start
10
10
  ESM Build start
11
- CJS dist/index.js 32.95 KB
12
- CJS dist/cli.js 38.60 KB
13
- CJS ⚡️ Build success in 352ms
14
- ESM dist/chunk-YHHXE2JX.mjs 27.77 KB
15
- ESM dist/index.mjs 3.50 KB
16
- ESM dist/cli.mjs 8.83 KB
17
- ESM ⚡️ Build success in 352ms
11
+ CJS dist/cli.js 41.01 KB
12
+ CJS dist/index.js 35.42 KB
13
+ CJS ⚡️ Build success in 100ms
14
+ ESM dist/index.mjs 3.27 KB
15
+ ESM dist/cli.mjs 8.85 KB
16
+ ESM dist/chunk-ZG3KFSD3.mjs 30.58 KB
17
+ ESM ⚡️ Build success in 100ms
18
18
  DTS Build start
19
- DTS ⚡️ Build success in 8625ms
19
+ DTS ⚡️ Build success in 7814ms
20
20
  DTS dist/cli.d.ts 20.00 B
21
- DTS dist/index.d.ts 3.87 KB
21
+ DTS dist/index.d.ts 3.94 KB
22
22
  DTS dist/cli.d.mts 20.00 B
23
- DTS dist/index.d.mts 3.87 KB
23
+ DTS dist/index.d.mts 3.94 KB
@@ -1,30 +1,59 @@
1
1
 
2
- > @aiready/consistency@0.20.23 test /Users/pengcao/projects/aiready/packages/consistency
2
+ > @aiready/consistency@0.21.1 test /Users/pengcao/projects/aiready/packages/consistency
3
3
  > vitest run
4
4
 
5
5
 
6
6
   RUN  v4.0.18 /Users/pengcao/projects/aiready/packages/consistency
7
7
 
8
- ✓ src/__tests__/scope-tracker.test.ts (11 tests) 51ms
9
- ✓ src/__tests__/naming-constants.test.ts (14 tests) 34ms
10
- ✓ dist/__tests__/scoring.test.js (8 tests) 9ms
11
- ✓ src/__tests__/naming.test.ts (5 tests) 5ms
12
- ✓ src/__tests__/language-filter.test.ts (3 tests) 19ms
8
+ ✓ src/__tests__/naming-constants.test.ts (14 tests) 11ms
9
+ ✓ dist/__tests__/scoring.test.js (8 tests) 11ms
10
+ ✓ src/__tests__/scope-tracker.test.ts (11 tests) 13ms
13
11
  ✓ src/__tests__/scoring.test.ts (8 tests) 3ms
14
- ✓ src/__tests__/provider.test.ts (2 tests) 16ms
12
+ ✓ src/__tests__/language-filter.test.ts (3 tests) 6ms
15
13
  Sourcemap for "/Users/pengcao/projects/aiready/packages/consistency/dist/analyzers/naming-python.js" points to missing source files
14
+ ✓ dist/__tests__/language-filter.test.js (3 tests) 3ms
15
+ ❯ src/__tests__/naming.test.ts (5 tests | 1 failed) 6ms
16
+  × should detect single letter variables 4ms
17
+ ✓ should not detect common loop variables 0ms
18
+ ✓ should detect snake_case in TypeScript files 0ms
19
+ ✓ should not detect snake_case in non-TS/JS files 0ms
20
+ ✓ should detect vague short names 0ms
21
+ ✓ src/__tests__/provider.test.ts (2 tests) 6ms
16
22
  stdout | src/__tests__/contract.test.ts > Consistency Spoke Contract Validation > should produce output matching the SpokeOutput contract
17
23
  Consistency: Skipping unparseable file file1.ts: ENOENT: no such file or directory, open 'file1.ts'
18
24
 
19
- ✓ src/__tests__/contract.test.ts (1 test) 8ms
20
- ✓ dist/__tests__/language-filter.test.js (3 tests) 3ms
21
- ✓ dist/__tests__/analyzer.test.js (18 tests) 686ms
22
- ✓ src/__tests__/analyzer.test.ts (21 tests) 1338ms
23
- ✓ should analyze naming issues  433ms
24
- ✓ should detect minimum severity filtering  413ms
25
+ ✓ src/__tests__/contract.test.ts (1 test) 22ms
26
+ ✓ dist/__tests__/analyzer.test.js (18 tests) 834ms
27
+ ✓ should analyze naming issues  387ms
28
+ ✓ should detect minimum severity filtering  332ms
29
+ ✓ src/__tests__/analyzer.test.ts (21 tests) 1247ms
30
+ ✓ should analyze naming issues  642ms
31
+
32
+ ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯
33
+
34
+  FAIL  src/__tests__/naming.test.ts > analyzeNaming > single letter variables detection > should detect single letter variables
35
+ AssertionError: expected [ …(2) ] to have a length of 3 but got 2
36
+
37
+ - Expected
38
+ + Received
39
+
40
+ - 3
41
+ + 2
42
+
43
+  ❯ src/__tests__/naming.test.ts:25:22
44
+  23|  const issues = await analyzeNaming(['test.ts']);
45
+  24| 
46
+  25|  expect(issues).toHaveLength(3);
47
+  |  ^
48
+  26|  expect(issues[0].type).toBe('poor-naming');
49
+  27|  expect(issues[0].suggestion).toContain('single letter');
50
+
51
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/1]⎯
52
+
25
53
 
26
-  Test Files  11 passed (11)
27
-  Tests  94 passed (94)
28
-  Start at  15:17:51
29
-  Duration  4.64s (transform 6.09s, setup 0ms, import 18.87s, tests 2.17s, environment 1ms)
54
+  Test Files  1 failed | 10 passed (11)
55
+  Tests  1 failed | 93 passed (94)
56
+  Start at  14:03:17
57
+  Duration  4.89s (transform 10.22s, setup 0ms, import 26.32s, tests 2.16s, environment 1ms)
30
58
 
59
+  ELIFECYCLE  Test failed. See above for more details.
package/README.md CHANGED
@@ -21,11 +21,11 @@ Consistent naming and projectAI models reason better when your code follows cons
21
21
 
22
22
 
23
23
  🎛️ @aiready/cli (orchestrator)
24
- │ │ │ │ │ │ │ │ │
25
- ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼
26
- [PAT] [CTX] [CON] [AMP] [DEP] [DOC] [SIG] [AGT] [TST]
27
- │ │ │ │ │ │ │ │ │
28
- └─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┘
24
+ │ │ │ │ │ │ │ │ │
25
+ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼
26
+ [PAT] [CTX] [CON] [AMP] [DEP] [DOC] [SIG] [AGT] [TST] [CTR]
27
+ │ │ │ │ │ │ │ │ │
28
+ └─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┘
29
29
 
30
30
 
31
31
  🏢 @aiready/core
@@ -35,7 +35,8 @@ Legend:
35
35
  CON = consistency ★ AMP = change-amplification
36
36
  DEP = deps-health DOC = doc-drift
37
37
  SIG = ai-signal-clarity AGT = agent-grounding
38
- TST = testability = YOU ARE HERE
38
+ TST = testability CTR = contract-enforcement
39
+ ★ = YOU ARE HERE
39
40
  ```
40
41
 
41
42
  ## Features