@aiready/cli 0.9.40 → 0.9.41

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.
@@ -183,27 +183,17 @@
183
183
  "linesOfCode": 631,
184
184
  "importDepth": 1,
185
185
  "dependencyCount": 5,
186
- "dependencyList": [
187
- "chalk",
188
- "fs",
189
- "path",
190
- "../index",
191
- "../utils/helpers"
192
- ],
186
+ "dependencyList": ["chalk", "fs", "path", "../index", "../utils/helpers"],
193
187
  "circularDeps": [],
194
188
  "cohesionScore": 1,
195
- "domains": [
196
- "user"
197
- ],
189
+ "domains": ["user"],
198
190
  "exportCount": 2,
199
191
  "contextBudget": 7248,
200
192
  "fragmentationScore": 0,
201
193
  "relatedFiles": [],
202
194
  "fileClassification": "cohesive-module",
203
195
  "severity": "info",
204
- "issues": [
205
- "No significant issues detected"
206
- ],
196
+ "issues": ["No significant issues detected"],
207
197
  "recommendations": [
208
198
  "File is well-structured for AI context usage",
209
199
  "Module has good cohesion despite its size"
@@ -226,9 +216,7 @@
226
216
  ],
227
217
  "circularDeps": [],
228
218
  "cohesionScore": 1,
229
- "domains": [
230
- "aiready"
231
- ],
219
+ "domains": ["aiready"],
232
220
  "exportCount": 3,
233
221
  "contextBudget": 2542,
234
222
  "fragmentationScore": 0.05353290043290044,
@@ -246,9 +234,7 @@
246
234
  ],
247
235
  "fileClassification": "cohesive-module",
248
236
  "severity": "info",
249
- "issues": [
250
- "No significant issues detected"
251
- ],
237
+ "issues": ["No significant issues detected"],
252
238
  "recommendations": [
253
239
  "File is well-structured for AI context usage",
254
240
  "Module has good cohesion despite its size"
@@ -269,9 +255,7 @@
269
255
  ],
270
256
  "circularDeps": [],
271
257
  "cohesionScore": 1,
272
- "domains": [
273
- "aiready"
274
- ],
258
+ "domains": ["aiready"],
275
259
  "exportCount": 4,
276
260
  "contextBudget": 2539,
277
261
  "fragmentationScore": 0,
@@ -289,9 +273,7 @@
289
273
  ],
290
274
  "fileClassification": "barrel-export",
291
275
  "severity": "info",
292
- "issues": [
293
- "No significant issues detected"
294
- ],
276
+ "issues": ["No significant issues detected"],
295
277
  "recommendations": [
296
278
  "File is well-structured for AI context usage",
297
279
  "Barrel export file detected - multiple domains are expected here"
@@ -304,12 +286,7 @@
304
286
  "linesOfCode": 191,
305
287
  "importDepth": 1,
306
288
  "dependencyCount": 4,
307
- "dependencyList": [
308
- "commander",
309
- "fs",
310
- "path",
311
- "url"
312
- ],
289
+ "dependencyList": ["commander", "fs", "path", "url"],
313
290
  "circularDeps": [],
314
291
  "cohesionScore": 1,
315
292
  "domains": [],
@@ -322,9 +299,7 @@
322
299
  ],
323
300
  "fileClassification": "cohesive-module",
324
301
  "severity": "minor",
325
- "issues": [
326
- "High fragmentation (15%) - scattered implementation"
327
- ],
302
+ "issues": ["High fragmentation (15%) - scattered implementation"],
328
303
  "recommendations": [
329
304
  "Consolidate with related files in same domain",
330
305
  "Module has good cohesion despite its size"
@@ -337,17 +312,10 @@
337
312
  "linesOfCode": 192,
338
313
  "importDepth": 1,
339
314
  "dependencyCount": 4,
340
- "dependencyList": [
341
- "chalk",
342
- "path",
343
- "@aiready/core",
344
- "../utils/helpers"
345
- ],
315
+ "dependencyList": ["chalk", "path", "@aiready/core", "../utils/helpers"],
346
316
  "circularDeps": [],
347
317
  "cohesionScore": 1,
348
- "domains": [
349
- "aiready"
350
- ],
318
+ "domains": ["aiready"],
351
319
  "exportCount": 1,
352
320
  "contextBudget": 1991,
353
321
  "fragmentationScore": 0.05353290043290044,
@@ -365,9 +333,7 @@
365
333
  ],
366
334
  "fileClassification": "cohesive-module",
367
335
  "severity": "info",
368
- "issues": [
369
- "No significant issues detected"
370
- ],
336
+ "issues": ["No significant issues detected"],
371
337
  "recommendations": [
372
338
  "File is well-structured for AI context usage",
373
339
  "Module has good cohesion despite its size"
@@ -389,9 +355,7 @@
389
355
  ],
390
356
  "circularDeps": [],
391
357
  "cohesionScore": 1,
392
- "domains": [
393
- "aiready"
394
- ],
358
+ "domains": ["aiready"],
395
359
  "exportCount": 1,
396
360
  "contextBudget": 1778,
397
361
  "fragmentationScore": 0.05353290043290044,
@@ -409,9 +373,7 @@
409
373
  ],
410
374
  "fileClassification": "cohesive-module",
411
375
  "severity": "info",
412
- "issues": [
413
- "No significant issues detected"
414
- ],
376
+ "issues": ["No significant issues detected"],
415
377
  "recommendations": [
416
378
  "File is well-structured for AI context usage",
417
379
  "Module has good cohesion despite its size"
@@ -424,17 +386,10 @@
424
386
  "linesOfCode": 179,
425
387
  "importDepth": 1,
426
388
  "dependencyCount": 4,
427
- "dependencyList": [
428
- "chalk",
429
- "path",
430
- "@aiready/core",
431
- "../utils/helpers"
432
- ],
389
+ "dependencyList": ["chalk", "path", "@aiready/core", "../utils/helpers"],
433
390
  "circularDeps": [],
434
391
  "cohesionScore": 1,
435
- "domains": [
436
- "aiready"
437
- ],
392
+ "domains": ["aiready"],
438
393
  "exportCount": 2,
439
394
  "contextBudget": 1664,
440
395
  "fragmentationScore": 0.05353290043290044,
@@ -452,9 +407,7 @@
452
407
  ],
453
408
  "fileClassification": "cohesive-module",
454
409
  "severity": "info",
455
- "issues": [
456
- "No significant issues detected"
457
- ],
410
+ "issues": ["No significant issues detected"],
458
411
  "recommendations": [
459
412
  "File is well-structured for AI context usage",
460
413
  "Module has good cohesion despite its size"
@@ -467,17 +420,10 @@
467
420
  "linesOfCode": 133,
468
421
  "importDepth": 1,
469
422
  "dependencyCount": 4,
470
- "dependencyList": [
471
- "path",
472
- "fs",
473
- "chalk",
474
- "@aiready/core"
475
- ],
423
+ "dependencyList": ["path", "fs", "chalk", "@aiready/core"],
476
424
  "circularDeps": [],
477
425
  "cohesionScore": 0.975,
478
- "domains": [
479
- "aiready"
480
- ],
426
+ "domains": ["aiready"],
481
427
  "exportCount": 5,
482
428
  "contextBudget": 1229,
483
429
  "fragmentationScore": 0.03568860028860029,
@@ -495,9 +441,7 @@
495
441
  ],
496
442
  "fileClassification": "utility-module",
497
443
  "severity": "info",
498
- "issues": [
499
- "No significant issues detected"
500
- ],
444
+ "issues": ["No significant issues detected"],
501
445
  "recommendations": [
502
446
  "File is well-structured for AI context usage",
503
447
  "Utility module detected - multiple domains are acceptable here"
@@ -510,15 +454,10 @@
510
454
  "linesOfCode": 61,
511
455
  "importDepth": 1,
512
456
  "dependencyCount": 2,
513
- "dependencyList": [
514
- "chalk",
515
- "@aiready/core"
516
- ],
457
+ "dependencyList": ["chalk", "@aiready/core"],
517
458
  "circularDeps": [],
518
459
  "cohesionScore": 1,
519
- "domains": [
520
- "aiready"
521
- ],
460
+ "domains": ["aiready"],
522
461
  "exportCount": 1,
523
462
  "contextBudget": 489,
524
463
  "fragmentationScore": 0.05353290043290044,
@@ -536,9 +475,7 @@
536
475
  ],
537
476
  "fileClassification": "cohesive-module",
538
477
  "severity": "info",
539
- "issues": [
540
- "No significant issues detected"
541
- ],
478
+ "issues": ["No significant issues detected"],
542
479
  "recommendations": [
543
480
  "File is well-structured for AI context usage",
544
481
  "Module has good cohesion despite its size"
@@ -551,15 +488,10 @@
551
488
  "linesOfCode": 57,
552
489
  "importDepth": 1,
553
490
  "dependencyCount": 2,
554
- "dependencyList": [
555
- "chalk",
556
- "@aiready/core"
557
- ],
491
+ "dependencyList": ["chalk", "@aiready/core"],
558
492
  "circularDeps": [],
559
493
  "cohesionScore": 1,
560
- "domains": [
561
- "aiready"
562
- ],
494
+ "domains": ["aiready"],
563
495
  "exportCount": 1,
564
496
  "contextBudget": 430,
565
497
  "fragmentationScore": 0.05353290043290044,
@@ -577,9 +509,7 @@
577
509
  ],
578
510
  "fileClassification": "cohesive-module",
579
511
  "severity": "info",
580
- "issues": [
581
- "No significant issues detected"
582
- ],
512
+ "issues": ["No significant issues detected"],
583
513
  "recommendations": [
584
514
  "File is well-structured for AI context usage",
585
515
  "Module has good cohesion despite its size"
@@ -592,15 +522,10 @@
592
522
  "linesOfCode": 57,
593
523
  "importDepth": 1,
594
524
  "dependencyCount": 2,
595
- "dependencyList": [
596
- "chalk",
597
- "@aiready/core"
598
- ],
525
+ "dependencyList": ["chalk", "@aiready/core"],
599
526
  "circularDeps": [],
600
527
  "cohesionScore": 1,
601
- "domains": [
602
- "aiready"
603
- ],
528
+ "domains": ["aiready"],
604
529
  "exportCount": 1,
605
530
  "contextBudget": 417,
606
531
  "fragmentationScore": 0.05353290043290044,
@@ -618,9 +543,7 @@
618
543
  ],
619
544
  "fileClassification": "cohesive-module",
620
545
  "severity": "info",
621
- "issues": [
622
- "No significant issues detected"
623
- ],
546
+ "issues": ["No significant issues detected"],
624
547
  "recommendations": [
625
548
  "File is well-structured for AI context usage",
626
549
  "Module has good cohesion despite its size"
@@ -633,17 +556,10 @@
633
556
  "linesOfCode": 52,
634
557
  "importDepth": 1,
635
558
  "dependencyCount": 4,
636
- "dependencyList": [
637
- "chalk",
638
- "fs",
639
- "path",
640
- "@aiready/core"
641
- ],
559
+ "dependencyList": ["chalk", "fs", "path", "@aiready/core"],
642
560
  "circularDeps": [],
643
561
  "cohesionScore": 1,
644
- "domains": [
645
- "aiready"
646
- ],
562
+ "domains": ["aiready"],
647
563
  "exportCount": 1,
648
564
  "contextBudget": 408,
649
565
  "fragmentationScore": 0.05353290043290044,
@@ -661,9 +577,7 @@
661
577
  ],
662
578
  "fileClassification": "cohesive-module",
663
579
  "severity": "info",
664
- "issues": [
665
- "No significant issues detected"
666
- ],
580
+ "issues": ["No significant issues detected"],
667
581
  "recommendations": [
668
582
  "File is well-structured for AI context usage",
669
583
  "Module has good cohesion despite its size"
@@ -676,15 +590,10 @@
676
590
  "linesOfCode": 48,
677
591
  "importDepth": 1,
678
592
  "dependencyCount": 2,
679
- "dependencyList": [
680
- "chalk",
681
- "@aiready/core"
682
- ],
593
+ "dependencyList": ["chalk", "@aiready/core"],
683
594
  "circularDeps": [],
684
595
  "cohesionScore": 1,
685
- "domains": [
686
- "aiready"
687
- ],
596
+ "domains": ["aiready"],
688
597
  "exportCount": 1,
689
598
  "contextBudget": 392,
690
599
  "fragmentationScore": 0.05353290043290044,
@@ -702,9 +611,7 @@
702
611
  ],
703
612
  "fileClassification": "cohesive-module",
704
613
  "severity": "info",
705
- "issues": [
706
- "No significant issues detected"
707
- ],
614
+ "issues": ["No significant issues detected"],
708
615
  "recommendations": [
709
616
  "File is well-structured for AI context usage",
710
617
  "Module has good cohesion despite its size"
@@ -730,9 +637,7 @@
730
637
  ],
731
638
  "fileClassification": "cohesive-module",
732
639
  "severity": "minor",
733
- "issues": [
734
- "High fragmentation (15%) - scattered implementation"
735
- ],
640
+ "issues": ["High fragmentation (15%) - scattered implementation"],
736
641
  "recommendations": [
737
642
  "Consolidate with related files in same domain",
738
643
  "Module has good cohesion despite its size"
@@ -745,9 +650,7 @@
745
650
  "linesOfCode": 4,
746
651
  "importDepth": 1,
747
652
  "dependencyCount": 1,
748
- "dependencyList": [
749
- "@aiready/change-amplification/dist/cli.js"
750
- ],
653
+ "dependencyList": ["@aiready/change-amplification/dist/cli.js"],
751
654
  "circularDeps": [],
752
655
  "cohesionScore": 1,
753
656
  "domains": [],
@@ -760,9 +663,7 @@
760
663
  ],
761
664
  "fileClassification": "cohesive-module",
762
665
  "severity": "minor",
763
- "issues": [
764
- "High fragmentation (15%) - scattered implementation"
765
- ],
666
+ "issues": ["High fragmentation (15%) - scattered implementation"],
766
667
  "recommendations": [
767
668
  "Consolidate with related files in same domain",
768
669
  "Module has good cohesion despite its size"
@@ -7565,9 +7466,7 @@
7565
7466
  "totalSymbols": 398,
7566
7467
  "totalExports": 33
7567
7468
  },
7568
- "recommendations": [
7569
- "Extract 438 magic literals into named constants"
7570
- ]
7469
+ "recommendations": ["Extract 438 magic literals into named constants"]
7571
7470
  },
7572
7471
  "grounding": {
7573
7472
  "summary": {
@@ -8049,4 +7948,4 @@
8049
7948
  "normalized": "[(99 × 22) + (100 × 19) + (88 × 14) + (83 × 11) + (88 × 10) + (29 × 10) + (71 × 8) + (70 × 10) + (96 × 10)] / 114 = 84"
8050
7949
  }
8051
7950
  }
8052
- }
7951
+ }
@@ -1,5 +1,5 @@
1
- github: ["caopengau"]
1
+ github: ['caopengau']
2
2
  custom:
3
3
  - https://github.com/sponsors/caopengau
4
4
  - https://receiptclaimer.com
5
- - mailto:caopengau@gmail.com
5
+ - mailto:caopengau@gmail.com
@@ -1,6 +1,6 @@
1
1
 
2
2
  
3
- > @aiready/cli@0.9.40 build /Users/pengcao/projects/aiready/packages/cli
3
+ > @aiready/cli@0.9.41 build /Users/pengcao/projects/aiready/packages/cli
4
4
  > tsup src/index.ts src/cli.ts --format cjs,esm
5
5
 
6
6
  CLI Building entry: src/cli.ts, src/index.ts
@@ -9,8 +9,12 @@
9
9
  CLI Target: es2020
10
10
  CJS Build start
11
11
  ESM Build start
12
+ ESM dist/index.mjs 138.00 B
13
+ ESM dist/cli.mjs 70.01 KB
14
+ ESM dist/chunk-HLBKROD3.mjs 7.85 KB
15
+ ESM ⚡️ Build success in 84ms
12
16
 
13
- [2:35:42 PM]  WARN  ▲ [WARNING] "import.meta" is not available with the "cjs" output format and will be empty [empty-import-meta]
17
+ [10:18:57 PM]  WARN  ▲ [WARNING] "import.meta" is not available with the "cjs" output format and will be empty [empty-import-meta]
14
18
 
15
19
  src/cli.ts:23:31:
16
20
   23 │ return dirname(fileURLToPath(import.meta.url));
@@ -20,10 +24,6 @@
20
24
 
21
25
 
22
26
 
23
- ESM dist/cli.mjs 65.28 KB
24
- ESM dist/index.mjs 138.00 B
25
- ESM dist/chunk-PDOONNSK.mjs 7.80 KB
26
- ESM ⚡️ Build success in 491ms
27
- CJS dist/index.js 9.15 KB
28
- CJS dist/cli.js 75.53 KB
29
- CJS ⚡️ Build success in 492ms
27
+ CJS dist/index.js 9.20 KB
28
+ CJS dist/cli.js 80.33 KB
29
+ CJS ⚡️ Build success in 101ms
@@ -1,17 +1,17 @@
1
1
 
2
2
  
3
- > @aiready/cli@0.9.40 test /Users/pengcao/projects/aiready/packages/cli
3
+ > @aiready/cli@0.9.41 test /Users/pengcao/projects/aiready/packages/cli
4
4
  > vitest run
5
5
 
6
6
  [?25l
7
7
   RUN  v4.0.18 /Users/pengcao/projects/aiready/packages/cli
8
8
 
9
- ✓ src/__tests__/cli.test.ts (3 tests) 5ms
10
- ✓ dist/__tests__/cli.test.js (3 tests) 2ms
9
+ ✓ dist/__tests__/cli.test.js (3 tests) 9ms
10
+ ✓ src/__tests__/cli.test.ts (3 tests) 4ms
11
11
 
12
12
   Test Files  2 passed (2)
13
13
   Tests  6 passed (6)
14
-  Start at  14:39:26
15
-  Duration  11.33s (transform 3.58s, setup 0ms, import 16.97s, tests 6ms, environment 0ms)
14
+  Start at  22:19:18
15
+  Duration  1.91s (transform 392ms, setup 0ms, import 2.04s, tests 13ms, environment 0ms)
16
16
 
17
17
  [?25h
package/CONTRIBUTING.md CHANGED
@@ -5,6 +5,7 @@ Thank you for your interest in contributing to AIReady CLI! We welcome bug repor
5
5
  ## 🎯 What is the CLI?
6
6
 
7
7
  The CLI is the **unified interface** for all AIReady analysis tools. It provides:
8
+
8
9
  - **Unified scanning**: Run multiple tools (patterns, context, consistency) with one command
9
10
  - **Individual tool access**: Use each tool directly for focused analysis
10
11
  - **Consistent output**: Unified reporting across all tools
@@ -41,6 +42,7 @@ The CLI follows a **hub-and-spoke** pattern:
41
42
  ## 🐛 Reporting Issues
42
43
 
43
44
  Found a bug or have a feature request? [Open an issue](https://github.com/caopengau/aiready-cli/issues) with:
45
+
44
46
  - Clear description of the problem or feature
45
47
  - Steps to reproduce (for bugs)
46
48
  - Expected vs actual behavior
@@ -69,6 +71,7 @@ pnpm link
69
71
  ## 📝 Making Changes
70
72
 
71
73
  1. **Fork the repository** and create a new branch:
74
+
72
75
  ```bash
73
76
  git checkout -b fix/cli-output-format
74
77
  # or
@@ -82,15 +85,17 @@ pnpm link
82
85
  - Keep commands modular and focused
83
86
 
84
87
  3. **Test your changes**:
88
+
85
89
  ```bash
86
90
  pnpm build
87
91
  pnpm test
88
-
92
+
89
93
  # Test CLI locally
90
94
  ./dist/cli.js scan /path/to/project
91
95
  ```
92
96
 
93
97
  4. **Commit using conventional commits**:
98
+
94
99
  ```bash
95
100
  git commit -m "fix: correct output format for JSON"
96
101
  git commit -m "feat: add new tool integration"
@@ -121,6 +126,7 @@ We use [Conventional Commits](https://www.conventionalcommits.org/):
121
126
  - Test edge cases (missing arguments, invalid paths)
122
127
 
123
128
  Example test:
129
+
124
130
  ```typescript
125
131
  test('scan command runs all tools by default', async () => {
126
132
  const result = await runCli(['scan', './test-project']);
@@ -157,10 +163,11 @@ src/
157
163
  ### Adding a New Command
158
164
 
159
165
  1. Create `src/commands/your-command.ts`:
166
+
160
167
  ```typescript
161
168
  import { Command } from 'commander';
162
169
  import { globalOptions } from '../options/global';
163
-
170
+
164
171
  export const yourCommand = new Command('your-command')
165
172
  .description('Description of your command')
166
173
  .argument('<directory>', 'Directory to analyze')
@@ -187,6 +194,7 @@ src/
187
194
  ## 🎯 Areas for Contribution
188
195
 
189
196
  Great places to start:
197
+
190
198
  - **New commands**: Add new CLI commands
191
199
  - **Tool integration**: Integrate new analysis tools
192
200
  - **Output formats**: Add new output options (XML, CSV, HTML)
@@ -211,6 +219,7 @@ Great places to start:
211
219
  ## 💡 Feature Ideas
212
220
 
213
221
  Looking for inspiration? Consider:
222
+
214
223
  - Interactive mode with guided analysis
215
224
  - Watch mode for file changes
216
225
  - IDE plugins integration