@aiready/consistency 0.21.7 → 0.21.8

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.8 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 41.09 KB
13
+ CJS dist/index.js 35.50 KB
14
+ CJS ⚡️ Build success in 90ms
12
15
  ESM dist/cli.mjs 8.85 KB
13
- ESM dist/index.mjs 3.26 KB
14
16
  ESM dist/chunk-7DKVZNY7.mjs 30.66 KB
15
- ESM ⚡️ Build success in 89ms
16
- CJS dist/index.js 35.50 KB
17
- CJS dist/cli.js 41.09 KB
18
- CJS ⚡️ Build success in 92ms
17
+ ESM dist/index.mjs 3.26 KB
18
+ ESM ⚡️ Build success in 90ms
19
19
  DTS Build start
20
- DTS ⚡️ Build success in 6596ms
20
+ DTS ⚡️ Build success in 2961ms
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.8 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.8 lint /Users/pengcao/projects/aiready/packages/consistency
4
+ > eslint src
5
+
@@ -1,35 +1,35 @@
1
1
 
2
2
  
3
- > @aiready/consistency@0.21.6 test /Users/pengcao/projects/aiready/packages/consistency
3
+ > @aiready/consistency@0.21.7 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
15
- 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
9
+ ✓ src/__tests__/naming-constants.test.ts (14 tests) 10ms
10
+ ✓ src/__tests__/scope-tracker.test.ts (11 tests) 24ms
11
+ ✓ dist/__tests__/scoring.test.js (8 tests) 12ms
12
+ ✓ src/__tests__/provider.test.ts (2 tests) 8ms
13
+ ✓ src/__tests__/naming.test.ts (5 tests) 5ms
14
+ ✓ src/__tests__/language-filter.test.ts (3 tests) 2ms
18
15
  stdout | src/__tests__/contract.test.ts > Consistency Spoke Contract Validation > should produce output matching the SpokeOutput contract
19
16
  Consistency: Skipping unparseable file file1.ts: ENOENT: no such file or directory, open 'file1.ts'
20
17
 
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
18
+ ✓ src/__tests__/contract.test.ts (1 test) 96ms
19
+ ✓ src/__tests__/scoring.test.ts (8 tests) 3ms
20
+ Sourcemap for "/Users/pengcao/projects/aiready/packages/consistency/dist/analyzers/naming-python.js" points to missing source files
21
+ ✓ dist/__tests__/language-filter.test.js (3 tests) 3ms
22
+ ✓ src/__tests__/analyzer.test.ts (21 tests) 1001ms
23
+ ✓ should analyze naming issues  500ms
24
+ ✓ should detect minimum severity filtering  342ms
25
+ ✓ dist/__tests__/analyzer.test.js (18 tests) 860ms
26
+ ✓ should detect minimum severity filtering  438ms
27
+ ✓ src/__tests__/naming-dotted.test.ts (2 tests) 2739ms
28
+ ✓ should NOT flag dotted identifiers in Python imports  2735ms
29
29
 
30
30
   Test Files  12 passed (12)
31
31
   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)
32
+  Start at  00:08:32
33
+  Duration  6.21s (transform 7.94s, setup 0ms, import 28.04s, tests 4.76s, environment 1ms)
34
34
 
35
35
  [?25h
@@ -0,0 +1,5 @@
1
+
2
+ 
3
+ > @aiready/consistency@0.21.8 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.8",
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.8"
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
  };