@aiready/consistency 0.21.7 → 0.21.9

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.7 build /Users/pengcao/projects/aiready/packages/consistency
3
+ > @aiready/consistency@0.21.9 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/index.mjs 3.26 KB
14
- ESM dist/chunk-7DKVZNY7.mjs 30.66 KB
15
- ESM ⚡️ Build success in 89ms
16
12
  CJS dist/index.js 35.50 KB
17
13
  CJS dist/cli.js 41.09 KB
18
- CJS ⚡️ Build success in 92ms
14
+ CJS ⚡️ Build success in 44ms
15
+ ESM dist/chunk-7DKVZNY7.mjs 30.66 KB
16
+ ESM dist/index.mjs 3.26 KB
17
+ ESM dist/cli.mjs 8.85 KB
18
+ ESM ⚡️ Build success in 44ms
19
19
  DTS Build start
20
- DTS ⚡️ Build success in 6596ms
20
+ DTS ⚡️ Build success in 1839ms
21
21
  DTS dist/cli.d.ts 20.00 B
22
22
  DTS dist/index.d.ts 3.94 KB
23
23
  DTS dist/cli.d.mts 20.00 B
@@ -0,0 +1,7 @@
1
+
2
+ 
3
+ > @aiready/consistency@0.21.9 format-check /Users/pengcao/projects/aiready/packages/consistency
4
+ > prettier --check . --ignore-path ../../.prettierignore
5
+
6
+ Checking formatting...
7
+ .aireadyignoreCONTRIBUTING.mdLICENSEpackage.jsonREADME.mdsrc/__tests__/analyzer.test.tssrc/__tests__/contract.test.tssrc/__tests__/language-filter.test.tssrc/__tests__/naming-constants.test.tssrc/__tests__/naming-dotted.test.tssrc/__tests__/naming.test.tssrc/__tests__/provider.test.tssrc/__tests__/scope-tracker.test.tssrc/__tests__/scoring.test.tssrc/analyzer.tssrc/analyzers/naming-ast.tssrc/analyzers/naming-constants.tssrc/analyzers/naming-generalized.tssrc/analyzers/naming.tssrc/analyzers/patterns.tssrc/cli.tssrc/index.tssrc/provider.tssrc/scoring.tssrc/types.tssrc/utils/ast-parser.tssrc/utils/config-loader.tssrc/utils/context-detector.tssrc/utils/scope-tracker.tstsconfig.jsontsconfig.tsbuildinfoAll matched files use Prettier code style!
@@ -1,4 +1,5 @@
1
-
2
- > @aiready/consistency@0.20.20 lint /Users/pengcao/projects/aiready/packages/consistency
3
- > eslint src
4
-
1
+
2
+ 
3
+ > @aiready/consistency@0.21.9 lint /Users/pengcao/projects/aiready/packages/consistency
4
+ > eslint src
5
+
@@ -1,35 +1,34 @@
1
1
 
2
2
  
3
- > @aiready/consistency@0.21.6 test /Users/pengcao/projects/aiready/packages/consistency
3
+ > @aiready/consistency@0.21.8 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
- ✓ src/__tests__/naming-constants.test.ts (14 tests) 4ms
10
- ✓ src/__tests__/scope-tracker.test.ts (11 tests) 51ms
11
- ✓ dist/__tests__/scoring.test.js (8 tests) 10ms
12
- ✓ src/__tests__/naming.test.ts (5 tests) 41ms
13
- ✓ src/__tests__/scoring.test.ts (8 tests) 27ms
14
- ✓ src/__tests__/provider.test.ts (2 tests) 21ms
9
+ ✓ src/__tests__/naming-constants.test.ts (14 tests) 5ms
10
+ ✓ src/__tests__/scope-tracker.test.ts (11 tests) 3ms
11
+ ✓ dist/__tests__/scoring.test.js (8 tests) 11ms
15
12
  Sourcemap for "/Users/pengcao/projects/aiready/packages/consistency/dist/analyzers/naming-python.js" points to missing source files
16
- ✓ dist/__tests__/language-filter.test.js (3 tests) 142ms
17
- ✓ src/__tests__/language-filter.test.ts (3 tests) 3ms
13
+ ✓ src/__tests__/scoring.test.ts (8 tests) 46ms
14
+ ✓ src/__tests__/naming.test.ts (5 tests) 5ms
15
+ ✓ dist/__tests__/language-filter.test.js (3 tests) 3ms
18
16
  stdout | src/__tests__/contract.test.ts > Consistency Spoke Contract Validation > should produce output matching the SpokeOutput contract
19
17
  Consistency: Skipping unparseable file file1.ts: ENOENT: no such file or directory, open 'file1.ts'
20
18
 
21
- ✓ src/__tests__/contract.test.ts (1 test) 31ms
22
- ✓ dist/__tests__/analyzer.test.js (18 tests) 1262ms
23
- ✓ should detect minimum severity filtering  533ms
24
- ✓ should generate relevant recommendations  452ms
25
- ✓ src/__tests__/naming-dotted.test.ts (2 tests) 1864ms
26
- ✓ should NOT flag dotted identifiers in Python imports  1861ms
27
- ✓ src/__tests__/analyzer.test.ts (21 tests) 1498ms
28
- ✓ should analyze naming issues  710ms
19
+ ✓ src/__tests__/contract.test.ts (1 test) 4ms
20
+ ✓ src/__tests__/provider.test.ts (2 tests) 3ms
21
+ ✓ src/__tests__/language-filter.test.ts (3 tests) 3ms
22
+ ✓ dist/__tests__/analyzer.test.js (18 tests) 681ms
23
+ ✓ should generate relevant recommendations  348ms
24
+ ✓ src/__tests__/analyzer.test.ts (21 tests) 924ms
25
+ ✓ should analyze naming issues  344ms
26
+ ✓ src/__tests__/naming-dotted.test.ts (2 tests) 2374ms
27
+ ✓ should NOT flag dotted identifiers in Python imports  2371ms
29
28
 
30
29
   Test Files  12 passed (12)
31
30
   Tests  96 passed (96)
32
-  Start at  22:04:25
33
-  Duration  8.20s (transform 13.27s, setup 0ms, import 45.11s, tests 4.95s, environment 1ms)
31
+  Start at  00:14:06
32
+  Duration  4.93s (transform 4.78s, setup 0ms, import 18.96s, tests 4.06s, environment 1ms)
34
33
 
35
34
  [?25h
@@ -0,0 +1,5 @@
1
+
2
+ 
3
+ > @aiready/consistency@0.21.9 type-check /Users/pengcao/projects/aiready/packages/consistency
4
+ > tsc --noEmit
5
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiready/consistency",
3
- "version": "0.21.7",
3
+ "version": "0.21.9",
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.24.7"
46
+ "@aiready/core": "0.24.9"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@types/node": "^24.0.0",
@@ -60,6 +60,8 @@
60
60
  "test": "vitest run",
61
61
  "lint": "eslint src",
62
62
  "clean": "rm -rf dist",
63
- "release": "pnpm build && pnpm publish --no-git-checks"
63
+ "release": "pnpm build && pnpm publish --no-git-checks",
64
+ "type-check": "tsc --noEmit",
65
+ "format-check": "prettier --check . --ignore-path ../../.prettierignore"
64
66
  }
65
67
  }
package/src/cli.ts CHANGED
@@ -3,6 +3,7 @@
3
3
  import { Command } from 'commander';
4
4
  import { analyzeConsistency } from './analyzer';
5
5
  import type { ConsistencyOptions } from './types';
6
+ import { Severity } from '@aiready/core';
6
7
  import chalk from 'chalk';
7
8
  import { writeFileSync, mkdirSync, existsSync } from 'fs';
8
9
  import { dirname } from 'path';
@@ -91,7 +92,8 @@ EXAMPLES:
91
92
  checkNaming: options.naming !== false && mergedConfig.checkNaming,
92
93
  checkPatterns: options.patterns !== false && mergedConfig.checkPatterns,
93
94
  checkArchitecture: options.architecture || mergedConfig.checkArchitecture,
94
- minSeverity: (options.minSeverity as string) || mergedConfig.minSeverity,
95
+ minSeverity:
96
+ (options.minSeverity as Severity) || mergedConfig.minSeverity,
95
97
  include: options.include?.split(',') || mergedConfig.include,
96
98
  exclude: options.exclude?.split(',') || mergedConfig.exclude,
97
99
  };