@aiready/cli 0.14.2 → 0.14.4

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 (44) 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 +29 -28
  4. package/.turbo/turbo-lint.log +0 -32
  5. package/.turbo/turbo-test.log +35 -125
  6. package/aiready-report.json +30703 -0
  7. package/dist/cli.js +415 -378
  8. package/dist/cli.mjs +358 -320
  9. package/package.json +12 -12
  10. package/packages/core/src/.aiready/aiready-report-20260314-161145.json +4 -10
  11. package/packages/core/src/.aiready/aiready-report-20260314-161152.json +10 -28
  12. package/packages/pattern-detect/src/.aiready/aiready-report-20260314-161139.json +4 -10
  13. package/src/.aiready/aiready-report-20260312-103623.json +3 -9
  14. package/src/.aiready/aiready-report-20260312-110843.json +3 -9
  15. package/src/.aiready/aiready-report-20260312-110955.json +3 -9
  16. package/src/.aiready/aiready-report-20260314-203209.json +3 -9
  17. package/src/.aiready/aiready-report-20260314-203736.json +3 -9
  18. package/src/.aiready/aiready-report-20260314-203857.json +3 -9
  19. package/src/.aiready/aiready-report-20260314-204047.json +3 -9
  20. package/src/__tests__/cli.test.ts +1 -1
  21. package/src/__tests__/config-shape.test.ts +0 -1
  22. package/src/__tests__/unified.test.ts +1 -1
  23. package/src/cli.ts +2 -1
  24. package/src/commands/__tests__/consistency.test.ts +3 -0
  25. package/src/commands/__tests__/extra-commands.test.ts +29 -38
  26. package/src/commands/__tests__/init.test.ts +56 -0
  27. package/src/commands/__tests__/scan.test.ts +4 -2
  28. package/src/commands/__tests__/upload.test.ts +0 -1
  29. package/src/commands/__tests__/visualize.test.ts +3 -7
  30. package/src/commands/ai-signal-clarity.ts +1 -56
  31. package/src/commands/bug.ts +1 -2
  32. package/src/commands/deps-health.ts +1 -65
  33. package/src/commands/doc-drift.ts +1 -62
  34. package/src/commands/init.ts +58 -2
  35. package/src/commands/patterns.ts +3 -1
  36. package/src/commands/report-formatter.ts +128 -0
  37. package/src/commands/scan.ts +29 -120
  38. package/src/commands/shared/configured-tool-action.ts +35 -0
  39. package/src/commands/shared/standard-tool-actions.ts +126 -0
  40. package/src/commands/upload.ts +15 -13
  41. package/src/commands/visualize.ts +11 -4
  42. package/src/index.ts +18 -3
  43. package/src/utils/helpers.ts +86 -37
  44. 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,28 +1,29 @@
1
-
2
- > @aiready/cli@0.14.1 build /Users/pengcao/projects/aiready/packages/cli
3
- > tsup src/index.ts src/cli.ts --format cjs,esm
4
-
5
- CLI Building entry: src/cli.ts, src/index.ts
6
- CLI Using tsconfig: tsconfig.json
7
- CLI tsup v8.5.1
8
- CLI Target: es2020
9
- CJS Build start
10
- ESM Build start
11
-
12
- WARN ▲ [WARNING] "import.meta" is not available with the "cjs" output format and will be empty [empty-import-meta]
13
-
14
- src/cli.ts:29:31:
15
-  29 │ return dirname(fileURLToPath(import.meta.url));
16
- ~~~~~~~~~~~
17
-
18
- You need to set the output format to "esm" for "import.meta" to work correctly.
19
-
20
-
21
-
22
- ESM dist/chunk-VOKP7FGM.mjs 9.52 KB
23
- ESM dist/index.mjs 170.00 B
24
- ESM dist/cli.mjs 69.82 KB
25
- ESM ⚡️ Build success in 29ms
26
- CJS dist/index.js 10.62 KB
27
- CJS dist/cli.js 83.57 KB
28
- CJS ⚡️ Build success in 29ms
1
+
2
+ 
3
+ > @aiready/cli@0.14.4 build /Users/pengcao/projects/aiready/packages/cli
4
+ > tsup src/index.ts src/cli.ts --format cjs,esm
5
+
6
+ CLI Building entry: src/cli.ts, src/index.ts
7
+ CLI Using tsconfig: tsconfig.json
8
+ CLI tsup v8.5.1
9
+ CLI Target: es2020
10
+ CJS Build start
11
+ ESM Build start
12
+
13
+  WARN  ▲ [WARNING] "import.meta" is not available with the "cjs" output format and will be empty [empty-import-meta] 10:24:33 pm
14
+
15
+ src/cli.ts:29:31:
16
+  29 │ return dirname(fileURLToPath(import.meta.url));
17
+ ╵ ~~~~~~~~~~~
18
+
19
+ You need to set the output format to "esm" for "import.meta" to work correctly.
20
+
21
+
22
+
23
+ CJS dist/index.js 10.62 KB
24
+ CJS dist/cli.js 84.50 KB
25
+ CJS ⚡️ Build success in 85ms
26
+ ESM dist/cli.mjs 70.71 KB
27
+ ESM dist/index.mjs 170.00 B
28
+ ESM dist/chunk-VOKP7FGM.mjs 9.52 KB
29
+ ESM ⚡️ Build success in 88ms
@@ -1,32 +0,0 @@
1
-
2
- 
3
- > @aiready/cli@0.12.20 lint /Users/pengcao/projects/aiready/packages/cli
4
- > eslint src
5
-
6
- 
7
- /Users/pengcao/projects/aiready/packages/cli/src/__tests__/cli.test.ts
8
- 1:55 warning 'vi' is defined but never used @typescript-eslint/no-unused-vars
9
-
10
- /Users/pengcao/projects/aiready/packages/cli/src/__tests__/config-shape.test.ts
11
- 79:7 error Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free @typescript-eslint/ban-ts-comment
12
-
13
- /Users/pengcao/projects/aiready/packages/cli/src/commands/scan.ts
14
- 12:3 warning 'getElapsedTime' is defined but never used @typescript-eslint/no-unused-vars
15
- 15:3 warning 'formatToolScore' is defined but never used @typescript-eslint/no-unused-vars
16
- 17:3 warning 'estimateCostFromBudget' is defined but never used @typescript-eslint/no-unused-vars
17
- 18:3 warning 'getModelPreset' is defined but never used @typescript-eslint/no-unused-vars
18
- 20:3 warning 'getRatingDisplay' is defined but never used @typescript-eslint/no-unused-vars
19
- 23:3 warning 'IssueType' is defined but never used @typescript-eslint/no-unused-vars
20
- 25:3 warning 'ToolRegistry' is defined but never used @typescript-eslint/no-unused-vars
21
- 31:3 warning 'truncateArray' is defined but never used @typescript-eslint/no-unused-vars
22
- 135:9 error 'finalOptions' is never reassigned. Use 'const' instead prefer-const
23
-
24
- /Users/pengcao/projects/aiready/packages/cli/src/index.ts
25
- 6:3 warning 'GLOBAL_SCAN_OPTIONS' is defined but never used @typescript-eslint/no-unused-vars
26
- 12:3 warning 'AnalysisResult' is defined but never used @typescript-eslint/no-unused-vars
27
- 14:3 warning 'SpokeOutput' is defined but never used @typescript-eslint/no-unused-vars
28
-
29
- ✖ 14 problems (2 errors, 12 warnings)
30
-  1 error and 0 warnings potentially fixable with the `--fix` option.
31
- 
32
-  ELIFECYCLE  Command failed with exit code 1.
@@ -1,43 +1,34 @@
1
1
 
2
2
  
3
- > @aiready/cli@0.14.0 test /Users/pengcao/projects/aiready/packages/cli
3
+ > @aiready/cli@0.14.3 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]
9
+ ✓ src/commands/__tests__/testability.test.ts (2 tests) 14ms
10
+ ✓ src/commands/__tests__/agent-grounding.test.ts (1 test) 12ms
11
+ ✓ src/commands/__tests__/ai-signal-clarity.test.ts (1 test) 15ms
12
+ ✓ src/commands/__tests__/deps-health.test.ts (1 test) 18ms
13
+ ✓ src/commands/__tests__/doc-drift.test.ts (1 test) 11ms
14
+ stdout | src/commands/__tests__/upload.test.ts > Upload CLI Action > should fail if API key is missing
15
+  Set AIREADY_API_KEY environment variable or use --api-key flag.
16
+ Get an API key from https://platform.getaiready.dev/dashboard
17
+ 🚀 Uploading report to https://dev.platform.getaiready.dev...
18
+ Reading report from /Users/pengcao/projects/aiready/packages/cli/report.json...
19
+ Successfully parsed report JSON.
11
20
 
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
21
+ stdout | src/commands/__tests__/upload.test.ts > Upload CLI Action > should fail if API key is missing
22
+ 
23
+ Upload successful! (0.00s)
24
+ View results: https://dev.platform.getaiready.dev/dashboard
25
+ Analysis ID: 123
26
+ Score: 80/100
28
27
 
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
28
+ ✓ src/commands/__tests__/upload.test.ts (2 tests) 9ms
37
29
  stdout | src/commands/__tests__/visualize.test.ts > Visualize CLI Action > should generate HTML from specified report
38
30
  Building graph from report...
39
31
 
40
- ✓ src/commands/__tests__/testability.test.ts (2 tests) 7ms
41
32
  stdout | src/commands/__tests__/visualize.test.ts > Visualize CLI Action > should generate HTML from specified report
42
33
  Generating HTML...
43
34
  ✅ Visualization written to: /Users/pengcao/projects/aiready/packages/cli/visualization.html
@@ -65,102 +56,21 @@ Or specify a custom report:
65
56
  Generating HTML...
66
57
  ✅ Visualization written to: /Users/pengcao/projects/aiready/packages/cli/visualization.html
67
58
 
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
83
- stdout | src/commands/__tests__/upload.test.ts > Upload CLI Action > should fail if API key is missing
84
-  Set AIREADY_API_KEY environment variable or use --api-key flag.
85
- Get an API key from https://platform.getaiready.dev/dashboard
86
- 🚀 Uploading report to https://dev.platform.getaiready.dev...
87
- Reading report from /Users/pengcao/projects/aiready/packages/cli/report.json...
88
- Successfully parsed report JSON.
89
-
90
- stdout | src/commands/__tests__/upload.test.ts > Upload CLI Action > should fail if API key is missing
91
- 
92
- ✅ Upload successful! (0.00s)
93
- View results: https://dev.platform.getaiready.dev/dashboard
94
- Analysis ID: 123
95
- Score: 80/100
96
-
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
160
-
161
-  Test Files  14 passed (14)
162
-  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)
59
+ ✓ src/commands/__tests__/visualize.test.ts (4 tests) 24ms
60
+ ✓ src/utils/__tests__/helpers.test.ts (3 tests) 2ms
61
+ ✓ src/commands/__tests__/init.test.ts (3 tests) 5ms
62
+ ✓ src/commands/__tests__/consistency.test.ts (4 tests) 4ms
63
+ ✓ src/commands/__tests__/scan.test.ts (6 tests) 129ms
64
+ ✓ src/commands/__tests__/extra-commands.test.ts (8 tests) 111ms
65
+ ✓ src/__tests__/unified.test.ts (4 tests) 3ms
66
+ ✓ src/__tests__/config-shape.test.ts (3 tests) 3386ms
67
+ ✓ should generate a strictly portable AIReadyConfig in summary  3385ms
68
+ ✓ src/__tests__/cli.test.ts (3 tests) 3388ms
69
+ ✓ should run unified analysis with both tools  3386ms
70
+
71
+  Test Files  15 passed (15)
72
+  Tests  46 passed (46)
73
+  Start at  22:22:10
74
+  Duration  4.77s (transform 3.47s, setup 0ms, import 7.38s, tests 7.13s, environment 1ms)
165
75
 
166
76
  [?25h