@aiready/consistency 0.21.6 → 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.
- package/.turbo/turbo-build.log +24 -23
- package/.turbo/turbo-format-check.log +7 -0
- package/.turbo/turbo-lint.log +5 -4
- package/.turbo/turbo-test.log +35 -33
- package/.turbo/turbo-type-check.log +5 -0
- package/CONTRIBUTING.md +2 -2
- package/package.json +5 -3
- package/src/cli.ts +3 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
DTS
|
|
20
|
-
DTS
|
|
21
|
-
DTS dist/
|
|
22
|
-
DTS dist/
|
|
23
|
-
DTS dist/
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
> @aiready/consistency@0.21.8 build /Users/pengcao/projects/aiready/packages/consistency
|
|
4
|
+
> tsup src/index.ts src/cli.ts --format cjs,esm --dts
|
|
5
|
+
|
|
6
|
+
[34mCLI[39m Building entry: src/cli.ts, src/index.ts
|
|
7
|
+
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
8
|
+
[34mCLI[39m tsup v8.5.1
|
|
9
|
+
[34mCLI[39m Target: es2020
|
|
10
|
+
[34mCJS[39m Build start
|
|
11
|
+
[34mESM[39m Build start
|
|
12
|
+
[32mCJS[39m [1mdist/cli.js [22m[32m41.09 KB[39m
|
|
13
|
+
[32mCJS[39m [1mdist/index.js [22m[32m35.50 KB[39m
|
|
14
|
+
[32mCJS[39m ⚡️ Build success in 90ms
|
|
15
|
+
[32mESM[39m [1mdist/cli.mjs [22m[32m8.85 KB[39m
|
|
16
|
+
[32mESM[39m [1mdist/chunk-7DKVZNY7.mjs [22m[32m30.66 KB[39m
|
|
17
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m3.26 KB[39m
|
|
18
|
+
[32mESM[39m ⚡️ Build success in 90ms
|
|
19
|
+
DTS Build start
|
|
20
|
+
DTS ⚡️ Build success in 2961ms
|
|
21
|
+
DTS dist/cli.d.ts 20.00 B
|
|
22
|
+
DTS dist/index.d.ts 3.94 KB
|
|
23
|
+
DTS dist/cli.d.mts 20.00 B
|
|
24
|
+
DTS dist/index.d.mts 3.94 KB
|
|
@@ -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
|
+
.aireadyignore[2K[1GCONTRIBUTING.md[2K[1GLICENSE[2K[1Gpackage.json[2K[1GREADME.md[2K[1Gsrc/__tests__/analyzer.test.ts[2K[1Gsrc/__tests__/contract.test.ts[2K[1Gsrc/__tests__/language-filter.test.ts[2K[1Gsrc/__tests__/naming-constants.test.ts[2K[1Gsrc/__tests__/naming-dotted.test.ts[2K[1Gsrc/__tests__/naming.test.ts[2K[1Gsrc/__tests__/provider.test.ts[2K[1Gsrc/__tests__/scope-tracker.test.ts[2K[1Gsrc/__tests__/scoring.test.ts[2K[1Gsrc/analyzer.ts[2K[1Gsrc/analyzers/naming-ast.ts[2K[1Gsrc/analyzers/naming-constants.ts[2K[1Gsrc/analyzers/naming-generalized.ts[2K[1Gsrc/analyzers/naming.ts[2K[1Gsrc/analyzers/patterns.ts[2K[1Gsrc/cli.ts[2K[1Gsrc/index.ts[2K[1Gsrc/provider.ts[2K[1Gsrc/scoring.ts[2K[1Gsrc/types.ts[2K[1Gsrc/utils/ast-parser.ts[2K[1Gsrc/utils/config-loader.ts[2K[1Gsrc/utils/context-detector.ts[2K[1Gsrc/utils/scope-tracker.ts[2K[1Gtsconfig.json[2K[1Gtsconfig.tsbuildinfo[2K[1GAll matched files use Prettier code style!
|
package/.turbo/turbo-lint.log
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
>
|
|
4
|
-
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
> @aiready/consistency@0.21.8 lint /Users/pengcao/projects/aiready/packages/consistency
|
|
4
|
+
> eslint src
|
|
5
|
+
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,33 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
[
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
[32m✓[39m src/__tests__/naming-constants.test.ts [2m([22m[2m14 tests[22m[2m)[22m[32m
|
|
10
|
-
[32m✓[39m
|
|
11
|
-
[32m✓[39m
|
|
12
|
-
[32m✓[39m src/__tests__/
|
|
13
|
-
[32m✓[39m src/__tests__/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
[
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
[32m✓[39m dist/__tests__/
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
[33m[2m✓[22m[39m should
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
[2m
|
|
31
|
-
[2m
|
|
32
|
-
[2m
|
|
33
|
-
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
> @aiready/consistency@0.21.7 test /Users/pengcao/projects/aiready/packages/consistency
|
|
4
|
+
> vitest run
|
|
5
|
+
|
|
6
|
+
[?25l
|
|
7
|
+
[1m[46m RUN [49m[22m [36mv4.0.18 [39m[90m/Users/pengcao/projects/aiready/packages/consistency[39m
|
|
8
|
+
|
|
9
|
+
[32m✓[39m src/__tests__/naming-constants.test.ts [2m([22m[2m14 tests[22m[2m)[22m[32m 10[2mms[22m[39m
|
|
10
|
+
[32m✓[39m src/__tests__/scope-tracker.test.ts [2m([22m[2m11 tests[22m[2m)[22m[32m 24[2mms[22m[39m
|
|
11
|
+
[32m✓[39m dist/__tests__/scoring.test.js [2m([22m[2m8 tests[22m[2m)[22m[32m 12[2mms[22m[39m
|
|
12
|
+
[32m✓[39m src/__tests__/provider.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 8[2mms[22m[39m
|
|
13
|
+
[32m✓[39m src/__tests__/naming.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 5[2mms[22m[39m
|
|
14
|
+
[32m✓[39m src/__tests__/language-filter.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 2[2mms[22m[39m
|
|
15
|
+
[90mstdout[2m | src/__tests__/contract.test.ts[2m > [22m[2mConsistency Spoke Contract Validation[2m > [22m[2mshould produce output matching the SpokeOutput contract
|
|
16
|
+
[22m[39mConsistency: Skipping unparseable file file1.ts: ENOENT: no such file or directory, open 'file1.ts'
|
|
17
|
+
|
|
18
|
+
[32m✓[39m src/__tests__/contract.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 96[2mms[22m[39m
|
|
19
|
+
[32m✓[39m src/__tests__/scoring.test.ts [2m([22m[2m8 tests[22m[2m)[22m[32m 3[2mms[22m[39m
|
|
20
|
+
Sourcemap for "/Users/pengcao/projects/aiready/packages/consistency/dist/analyzers/naming-python.js" points to missing source files
|
|
21
|
+
[32m✓[39m dist/__tests__/language-filter.test.js [2m([22m[2m3 tests[22m[2m)[22m[32m 3[2mms[22m[39m
|
|
22
|
+
[32m✓[39m src/__tests__/analyzer.test.ts [2m([22m[2m21 tests[22m[2m)[22m[33m 1001[2mms[22m[39m
|
|
23
|
+
[33m[2m✓[22m[39m should analyze naming issues [33m 500[2mms[22m[39m
|
|
24
|
+
[33m[2m✓[22m[39m should detect minimum severity filtering [33m 342[2mms[22m[39m
|
|
25
|
+
[32m✓[39m dist/__tests__/analyzer.test.js [2m([22m[2m18 tests[22m[2m)[22m[33m 860[2mms[22m[39m
|
|
26
|
+
[33m[2m✓[22m[39m should detect minimum severity filtering [33m 438[2mms[22m[39m
|
|
27
|
+
[32m✓[39m src/__tests__/naming-dotted.test.ts [2m([22m[2m2 tests[22m[2m)[22m[33m 2739[2mms[22m[39m
|
|
28
|
+
[33m[2m✓[22m[39m should NOT flag dotted identifiers in Python imports [33m 2735[2mms[22m[39m
|
|
29
|
+
|
|
30
|
+
[2m Test Files [22m [1m[32m12 passed[39m[22m[90m (12)[39m
|
|
31
|
+
[2m Tests [22m [1m[32m96 passed[39m[22m[90m (96)[39m
|
|
32
|
+
[2m Start at [22m 00:08:32
|
|
33
|
+
[2m Duration [22m 6.21s[2m (transform 7.94s, setup 0ms, import 28.04s, tests 4.76s, environment 1ms)[22m
|
|
34
|
+
|
|
35
|
+
[?25h
|
package/CONTRIBUTING.md
CHANGED
|
@@ -4,7 +4,7 @@ Thank you for your interest in contributing to AIReady Consistency Checker! We w
|
|
|
4
4
|
|
|
5
5
|
## 🐛 Reporting Issues
|
|
6
6
|
|
|
7
|
-
Found a bug or have a feature request? [Open an issue](https://github.com/
|
|
7
|
+
Found a bug or have a feature request? [Open an issue](https://github.com/getaiready/aiready-consistency/issues) with:
|
|
8
8
|
|
|
9
9
|
- Clear description of the problem or feature
|
|
10
10
|
- Sample code that demonstrates the issue
|
|
@@ -147,7 +147,7 @@ This package is part of the AIReady monorepo. If contributing to the monorepo:
|
|
|
147
147
|
|
|
148
148
|
## 📚 Resources
|
|
149
149
|
|
|
150
|
-
- [AIReady CLI](https://github.com/
|
|
150
|
+
- [AIReady CLI](https://github.com/getaiready/aiready-cli)
|
|
151
151
|
- [AIReady Documentation](.github/copilot-instructions.md)
|
|
152
152
|
- [TypeScript Best Practices](https://github.com/labs42io/clean-code-typescript)
|
|
153
153
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aiready/consistency",
|
|
3
|
-
"version": "0.21.
|
|
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.
|
|
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:
|
|
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
|
};
|