@aiready/cli 0.14.1 → 0.14.3

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.
Files changed (33) hide show
  1. package/.aiready/aiready-report-20260314-164626.json +2 -5
  2. package/.aiready/aiready-report-20260314-164741.json +2 -5
  3. package/.turbo/turbo-build.log +7 -7
  4. package/.turbo/turbo-test.log +19 -110
  5. package/dist/cli.js +149 -125
  6. package/dist/cli.mjs +69 -45
  7. package/package.json +12 -12
  8. package/packages/core/src/.aiready/aiready-report-20260314-161145.json +4 -10
  9. package/packages/core/src/.aiready/aiready-report-20260314-161152.json +10 -28
  10. package/packages/pattern-detect/src/.aiready/aiready-report-20260314-161139.json +4 -10
  11. package/src/.aiready/aiready-report-20260312-103623.json +3 -9
  12. package/src/.aiready/aiready-report-20260312-110843.json +3 -9
  13. package/src/.aiready/aiready-report-20260312-110955.json +3 -9
  14. package/src/.aiready/aiready-report-20260314-203209.json +30713 -0
  15. package/src/.aiready/aiready-report-20260314-203736.json +30713 -0
  16. package/src/.aiready/aiready-report-20260314-203857.json +30713 -0
  17. package/src/.aiready/aiready-report-20260314-204047.json +30713 -0
  18. package/src/__tests__/config-shape.test.ts +1 -1
  19. package/src/cli.ts +2 -1
  20. package/src/commands/__tests__/consistency.test.ts +3 -0
  21. package/src/commands/__tests__/extra-commands.test.ts +29 -37
  22. package/src/commands/__tests__/scan.test.ts +3 -1
  23. package/src/commands/__tests__/visualize.test.ts +3 -7
  24. package/src/commands/ai-signal-clarity.ts +1 -56
  25. package/src/commands/deps-health.ts +1 -65
  26. package/src/commands/doc-drift.ts +1 -62
  27. package/src/commands/init.ts +62 -2
  28. package/src/commands/scan.ts +11 -8
  29. package/src/commands/shared/configured-tool-action.ts +35 -0
  30. package/src/commands/shared/standard-tool-actions.ts +126 -0
  31. package/src/commands/visualize.ts +2 -3
  32. package/src/utils/helpers.ts +85 -36
  33. package/vitest.config.ts +5 -12
@@ -32,10 +32,7 @@
32
32
  "majorIssues": 0,
33
33
  "estimatedMonthlyCost": {
34
34
  "total": 0,
35
- "range": [
36
- 0,
37
- 0
38
- ],
35
+ "range": [0, 0],
39
36
  "confidence": 0.7
40
37
  },
41
38
  "estimatedDeveloperHours": 0
@@ -59,4 +56,4 @@
59
56
  ],
60
57
  "recommendations": []
61
58
  }
62
- }
59
+ }
@@ -32,10 +32,7 @@
32
32
  "majorIssues": 0,
33
33
  "estimatedMonthlyCost": {
34
34
  "total": 0,
35
- "range": [
36
- 0,
37
- 0
38
- ],
35
+ "range": [0, 0],
39
36
  "confidence": 0.7
40
37
  },
41
38
  "estimatedDeveloperHours": 0
@@ -59,4 +56,4 @@
59
56
  ],
60
57
  "recommendations": []
61
58
  }
62
- }
59
+ }
@@ -1,6 +1,6 @@
1
1
 
2
2
  
3
- > @aiready/cli@0.14.0 build /Users/pengcao/projects/aiready/packages/cli
3
+ > @aiready/cli@0.14.3 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
@@ -10,7 +10,7 @@
10
10
  CJS Build start
11
11
  ESM Build start
12
12
 
13
- [5:15:59 PM]  WARN  ▲ [WARNING] "import.meta" is not available with the "cjs" output format and will be empty [empty-import-meta]
13
+ [2:02:35 AM]  WARN  ▲ [WARNING] "import.meta" is not available with the "cjs" output format and will be empty [empty-import-meta]
14
14
 
15
15
  src/cli.ts:29:31:
16
16
   29 │ return dirname(fileURLToPath(import.meta.url));
@@ -20,10 +20,10 @@
20
20
 
21
21
 
22
22
 
23
- CJS dist/cli.js 83.57 KB
24
- CJS dist/index.js 10.62 KB
25
- CJS ⚡️ Build success in 70ms
26
- ESM dist/cli.mjs 69.82 KB
27
23
  ESM dist/chunk-VOKP7FGM.mjs 9.52 KB
28
24
  ESM dist/index.mjs 170.00 B
29
- ESM ⚡️ Build success in 70ms
25
+ ESM dist/cli.mjs 70.60 KB
26
+ ESM ⚡️ Build success in 31ms
27
+ CJS dist/index.js 10.62 KB
28
+ CJS dist/cli.js 84.31 KB
29
+ CJS ⚡️ Build success in 31ms
@@ -1,43 +1,15 @@
1
1
 
2
2
  
3
- > @aiready/cli@0.14.0 test /Users/pengcao/projects/aiready/packages/cli
3
+ > @aiready/cli@0.14.2 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
- [?2026h
10
-  ❯ src/commands/__tests__/agent-grounding.test.ts [queued]
11
-
12
-  Test Files 0 passed (14)
13
-  Tests 0 passed (0)
14
-  Start at 17:20:16
15
-  Duration 101ms
16
- [?2026l[?2026h
17
-  ❯ src/__tests__/cli.test.ts [queued]
18
-  ❯ src/__tests__/config-shape.test.ts [queued]
19
-  ❯ src/__tests__/unified.test.ts [queued]
20
-  ❯ src/commands/__tests__/agent-grounding.test.ts 1/1
21
-  ❯ src/commands/__tests__/ai-signal-clarity.test.ts 0/1
22
-  ❯ src/commands/__tests__/deps-health.test.ts 0/1
23
-  ❯ src/commands/__tests__/doc-drift.test.ts 0/1
24
-  ❯ src/commands/__tests__/extra-commands.test.ts [queued]
25
-  ❯ src/commands/__tests__/scan.test.ts [queued]
26
-  ❯ src/commands/__tests__/testability.test.ts 0/2
27
-  ❯ src/commands/__tests__/visualize.test.ts 0/4
28
-
29
-  Test Files 0 passed (14)
30
-  Tests 1 passed (10)
31
-  Start at 17:20:16
32
-  Duration 202ms
33
- [?2026l[?2026h ✓ src/commands/__tests__/agent-grounding.test.ts (1 test) 7ms
34
- ✓ src/commands/__tests__/deps-health.test.ts (1 test) 8ms
35
- ✓ src/commands/__tests__/ai-signal-clarity.test.ts (1 test) 7ms
36
- ✓ src/commands/__tests__/doc-drift.test.ts (1 test) 7ms
37
9
  stdout | src/commands/__tests__/visualize.test.ts > Visualize CLI Action > should generate HTML from specified report
38
10
  Building graph from report...
39
11
 
40
- ✓ src/commands/__tests__/testability.test.ts (2 tests) 7ms
12
+ ✓ src/commands/__tests__/agent-grounding.test.ts (1 test) 6ms
41
13
  stdout | src/commands/__tests__/visualize.test.ts > Visualize CLI Action > should generate HTML from specified report
42
14
  Generating HTML...
43
15
  ✅ Visualization written to: /Users/pengcao/projects/aiready/packages/cli/visualization.html
@@ -65,21 +37,11 @@ Or specify a custom report:
65
37
  Generating HTML...
66
38
  ✅ Visualization written to: /Users/pengcao/projects/aiready/packages/cli/visualization.html
67
39
 
68
- ✓ src/commands/__tests__/visualize.test.ts (4 tests) 28ms
69
-
70
-  ❯ src/__tests__/cli.test.ts [queued]
71
-  ❯ src/__tests__/config-shape.test.ts [queued]
72
-  ❯ src/__tests__/unified.test.ts [queued]
73
-  ❯ src/commands/__tests__/deps-health.test.ts 1/1
74
-  ❯ src/commands/__tests__/extra-commands.test.ts [queued]
75
-  ❯ src/commands/__tests__/scan.test.ts [queued]
76
-  ❯ src/commands/__tests__/upload.test.ts [queued]
77
-
78
-  Test Files 6 passed (14)
79
-  Tests 10 passed (10)
80
-  Start at 17:20:16
81
-  Duration 302ms
82
- [?2026l[?2026h ✓ src/utils/__tests__/helpers.test.ts (3 tests) 4ms
40
+ ✓ src/commands/__tests__/testability.test.ts (2 tests) 12ms
41
+ ✓ src/commands/__tests__/visualize.test.ts (4 tests) 14ms
42
+ ✓ src/commands/__tests__/doc-drift.test.ts (1 test) 16ms
43
+ ✓ src/commands/__tests__/deps-health.test.ts (1 test) 21ms
44
+ ✓ src/commands/__tests__/ai-signal-clarity.test.ts (1 test) 18ms
83
45
  stdout | src/commands/__tests__/upload.test.ts > Upload CLI Action > should fail if API key is missing
84
46
   Set AIREADY_API_KEY environment variable or use --api-key flag.
85
47
  Get an API key from https://platform.getaiready.dev/dashboard
@@ -94,73 +56,20 @@ Or specify a custom report:
94
56
  Analysis ID: 123
95
57
  Score: 80/100
96
58
 
97
- ✓ src/commands/__tests__/upload.test.ts (2 tests) 4ms
98
-
99
-  ❯ src/__tests__/cli.test.ts [queued]
100
-  ❯ src/__tests__/config-shape.test.ts [queued]
101
-  ❯ src/__tests__/unified.test.ts [queued]
102
-  ❯ src/commands/__tests__/consistency.test.ts [queued]
103
-  ❯ src/commands/__tests__/extra-commands.test.ts [queued]
104
-  src/commands/__tests__/scan.test.ts 0/6
105
-
106
-  Test Files 8 passed (14)
107
-  Tests 15 passed (21)
108
-  Start at 17:20:16
109
-  Duration 603ms
110
- [?2026l[?2026h ✓ src/commands/__tests__/consistency.test.ts (4 tests) 4ms
111
- ✓ src/commands/__tests__/scan.test.ts (6 tests) 77ms
112
-
113
-  ❯ src/__tests__/cli.test.ts 0/3
114
-  ❯ src/__tests__/config-shape.test.ts [queued]
115
-  ❯ src/__tests__/unified.test.ts [queued]
116
-  ❯ src/commands/__tests__/extra-commands.test.ts 0/8
117
-
118
-  Test Files 10 passed (14)
119
-  Tests 25 passed (36)
120
-  Start at 17:20:16
121
-  Duration 703ms
122
- [?2026l[?2026h ✓ src/__tests__/unified.test.ts (4 tests) 4ms
123
- ✓ src/commands/__tests__/extra-commands.test.ts (8 tests) 93ms
124
-
125
-  ❯ src/__tests__/cli.test.ts 0/3
126
-  ❯ src/__tests__/config-shape.test.ts 0/3
127
-
128
-  Test Files 12 passed (14)
129
-  Tests 37 passed (43)
130
-  Start at 17:20:16
131
-  Duration 905ms
132
- [?2026l[?2026h
133
-  ❯ src/__tests__/cli.test.ts 0/3
134
-  ❯ src/__tests__/config-shape.test.ts 0/3
135
-
136
-  Test Files 12 passed (14)
137
-  Tests 37 passed (43)
138
-  Start at 17:20:16
139
-  Duration 1.91s
140
- [?2026l[?2026h
141
-  ❯ src/__tests__/cli.test.ts 0/3
142
-  ❯ src/__tests__/config-shape.test.ts 0/3
143
-
144
-  Test Files 12 passed (14)
145
-  Tests 37 passed (43)
146
-  Start at 17:20:16
147
-  Duration 2.92s
148
- [?2026l[?2026h
149
-  ❯ src/__tests__/cli.test.ts 1/3
150
-  ❯ src/__tests__/config-shape.test.ts 0/3
151
-
152
-  Test Files 12 passed (14)
153
-  Tests 38 passed (43)
154
-  Start at 17:20:16
155
-  Duration 3.53s
156
- [?2026l ✓ src/__tests__/cli.test.ts (3 tests) 2826ms
157
- ✓ should run unified analysis with both tools  2825ms
158
- ✓ src/__tests__/config-shape.test.ts (3 tests) 2827ms
159
- ✓ should generate a strictly portable AIReadyConfig in summary  2825ms
59
+ ✓ src/commands/__tests__/upload.test.ts (2 tests) 8ms
60
+ ✓ src/utils/__tests__/helpers.test.ts (3 tests) 4ms
61
+ ✓ src/commands/__tests__/consistency.test.ts (4 tests) 5ms
62
+ ✓ src/commands/__tests__/scan.test.ts (6 tests) 91ms
63
+ ✓ src/commands/__tests__/extra-commands.test.ts (8 tests) 126ms
64
+ ✓ src/__tests__/unified.test.ts (4 tests) 3ms
65
+ ✓ src/__tests__/cli.test.ts (3 tests) 2544ms
66
+ ✓ should run unified analysis with both tools  2543ms
67
+ ✓ src/__tests__/config-shape.test.ts (3 tests) 2545ms
68
+ ✓ should generate a strictly portable AIReadyConfig in summary  2544ms
160
69
 
161
70
   Test Files  14 passed (14)
162
71
   Tests  43 passed (43)
163
-  Start at  17:20:16
164
-  Duration  3.58s (transform 1.79s, setup 0ms, import 3.47s, tests 5.90s, environment 1ms)
72
+  Start at  02:00:22
73
+  Duration  3.39s (transform 2.10s, setup 0ms, import 4.20s, tests 5.41s, environment 1ms)
165
74
 
166
75
  [?25h