@aiready/consistency 0.2.5 → 0.3.0

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.2.5 build /Users/pengcao/projects/aiready/packages/consistency
3
+ > @aiready/consistency@0.3.0 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
@@ -11,13 +11,13 @@
11
11
  ESM Build start
12
12
  CJS dist/index.js 14.13 KB
13
13
  CJS dist/cli.js 23.02 KB
14
- CJS ⚡️ Build success in 58ms
15
- ESM dist/cli.mjs 8.54 KB
14
+ CJS ⚡️ Build success in 57ms
16
15
  ESM dist/index.mjs 220.00 B
16
+ ESM dist/cli.mjs 8.54 KB
17
17
  ESM dist/chunk-CF4LU7KE.mjs 12.90 KB
18
- ESM ⚡️ Build success in 58ms
18
+ ESM ⚡️ Build success in 57ms
19
19
  DTS Build start
20
- DTS ⚡️ Build success in 548ms
20
+ DTS ⚡️ Build success in 558ms
21
21
  DTS dist/cli.d.ts 20.00 B
22
22
  DTS dist/index.d.ts 2.60 KB
23
23
  DTS dist/cli.d.mts 20.00 B
@@ -1,6 +1,6 @@
1
1
 
2
2
  
3
- > @aiready/consistency@0.2.5 test /Users/pengcao/projects/aiready/packages/consistency
3
+ > @aiready/consistency@0.3.0 test /Users/pengcao/projects/aiready/packages/consistency
4
4
  > vitest run
5
5
 
6
6
 
@@ -49,7 +49,7 @@
49
49
 
50
50
   Test Files  1 passed (1)
51
51
   Tests  14 passed (14)
52
-  Start at  07:25:15
53
-  Duration  323ms (transform 63ms, setup 0ms, collect 73ms, tests 23ms, environment 0ms, prepare 43ms)
52
+  Start at  07:46:28
53
+  Duration  441ms (transform 95ms, setup 0ms, collect 166ms, tests 25ms, environment 0ms, prepare 49ms)
54
54
 
55
55
  [?25h[?25h
package/README.md CHANGED
@@ -124,15 +124,31 @@ Create `aiready.json` in your project root:
124
124
 
125
125
  ```json
126
126
  {
127
- "consistency": {
128
- "checkNaming": true,
129
- "checkPatterns": true,
130
- "minSeverity": "minor",
127
+ "scan": {
128
+ "include": ["src/**/*.{ts,tsx,js,jsx}"],
131
129
  "exclude": ["**/dist/**", "**/node_modules/**"]
130
+ },
131
+ "tools": {
132
+ "consistency": {
133
+ "checkNaming": true,
134
+ "checkPatterns": true,
135
+ "minSeverity": "minor"
136
+ }
137
+ },
138
+ "output": {
139
+ "format": "console"
132
140
  }
133
141
  }
134
142
  ```
135
143
 
144
+ **Configuration Options:**
145
+
146
+ | Option | Type | Default | Description |
147
+ |--------|------|---------|-------------|
148
+ | `checkNaming` | boolean | `true` | Check naming conventions |
149
+ | `checkPatterns` | boolean | `true` | Check code pattern consistency |
150
+ | `minSeverity` | string | `'info'` | Filter: `'info'`, `'minor'`, `'major'`, `'critical'` |
151
+
136
152
  ## 🔧 Programmatic API
137
153
 
138
154
  ```typescript
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiready/consistency",
3
- "version": "0.2.5",
3
+ "version": "0.3.0",
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",