@aiready/cli 0.13.8 → 0.14.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.
- package/.turbo/turbo-build.log +9 -9
- package/.turbo/turbo-test.log +32 -32
- package/dist/cli.js +290 -188
- package/dist/cli.mjs +239 -137
- package/package.json +12 -12
- package/packages/core/src/.aiready/aiready-report-20260314-161145.json +230 -0
- package/packages/core/src/.aiready/aiready-report-20260314-161152.json +253 -0
- package/packages/pattern-detect/src/.aiready/aiready-report-20260314-161139.json +230 -0
- package/src/cli.ts +15 -0
- package/src/commands/index.ts +1 -0
- package/src/commands/init.ts +97 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -10,20 +10,20 @@
|
|
|
10
10
|
[34mCJS[39m Build start
|
|
11
11
|
[34mESM[39m Build start
|
|
12
12
|
|
|
13
|
-
[43m[30m WARN [39m[49m [33m▲ [43;33m[[43;30mWARNING[43;33m][0m [1m"import.meta" is not available with the "cjs" output format and will be empty[0m [empty-import-meta]
|
|
13
|
+
[90m[[90m4:13:49 PM[90m][39m [43m[30m WARN [39m[49m [33m▲ [43;33m[[43;30mWARNING[43;33m][0m [1m"import.meta" is not available with the "cjs" output format and will be empty[0m [empty-import-meta]
|
|
14
14
|
|
|
15
|
-
src/cli.ts:
|
|
16
|
-
[37m
|
|
15
|
+
src/cli.ts:29:31:
|
|
16
|
+
[37m 29 │ return dirname(fileURLToPath([32mimport.meta[37m.url));
|
|
17
17
|
╵ [32m~~~~~~~~~~~[0m
|
|
18
18
|
|
|
19
19
|
You need to set the output format to "esm" for "import.meta" to work correctly.
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
[32mCJS[39m [1mdist/cli.js [22m[32m80.45 KB[39m
|
|
24
|
-
[32mCJS[39m [1mdist/index.js [22m[32m10.62 KB[39m
|
|
25
|
-
[32mCJS[39m ⚡️ Build success in 80ms
|
|
26
|
-
[32mESM[39m [1mdist/chunk-VOKP7FGM.mjs [22m[32m9.52 KB[39m
|
|
27
23
|
[32mESM[39m [1mdist/index.mjs [22m[32m170.00 B[39m
|
|
28
|
-
[32mESM[39m [1mdist/cli.mjs [22m[
|
|
29
|
-
[32mESM[39m
|
|
24
|
+
[32mESM[39m [1mdist/cli.mjs [22m[32m69.82 KB[39m
|
|
25
|
+
[32mESM[39m [1mdist/chunk-VOKP7FGM.mjs [22m[32m9.52 KB[39m
|
|
26
|
+
[32mESM[39m ⚡️ Build success in 118ms
|
|
27
|
+
[32mCJS[39m [1mdist/cli.js [22m[32m83.57 KB[39m
|
|
28
|
+
[32mCJS[39m [1mdist/index.js [22m[32m10.62 KB[39m
|
|
29
|
+
[32mCJS[39m ⚡️ Build success in 118ms
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,20 +1,34 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> @aiready/cli@0.13.
|
|
3
|
+
> @aiready/cli@0.13.8 test /Users/pengcao/projects/aiready/packages/cli
|
|
4
4
|
> vitest run
|
|
5
5
|
|
|
6
6
|
[?25l
|
|
7
7
|
[1m[46m RUN [49m[22m [36mv4.0.18 [39m[90m/Users/pengcao/projects/aiready/packages/cli[39m
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
[90mstdout[2m | src/commands/__tests__/upload.test.ts[2m > [22m[2mUpload CLI Action[2m > [22m[2mshould fail if API key is missing
|
|
10
|
+
[22m[39m Set AIREADY_API_KEY environment variable or use --api-key flag.
|
|
11
|
+
Get an API key from https://platform.getaiready.dev/dashboard
|
|
12
|
+
🚀 Uploading report to https://dev.platform.getaiready.dev...
|
|
13
|
+
Reading report from /Users/pengcao/projects/aiready/packages/cli/report.json...
|
|
14
|
+
Successfully parsed report JSON.
|
|
15
|
+
|
|
16
|
+
[90mstdout[2m | src/commands/__tests__/upload.test.ts[2m > [22m[2mUpload CLI Action[2m > [22m[2mshould fail if API key is missing
|
|
17
|
+
[22m[39m
|
|
18
|
+
✅ Upload successful! (0.00s)
|
|
19
|
+
View results: https://dev.platform.getaiready.dev/dashboard
|
|
20
|
+
Analysis ID: 123
|
|
21
|
+
Score: 80/100
|
|
22
|
+
|
|
23
|
+
[32m✓[39m src/commands/__tests__/upload.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
24
|
+
[32m✓[39m src/commands/__tests__/deps-health.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 11[2mms[22m[39m
|
|
25
|
+
[32m✓[39m src/commands/__tests__/doc-drift.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 11[2mms[22m[39m
|
|
26
|
+
[32m✓[39m src/commands/__tests__/agent-grounding.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 12[2mms[22m[39m
|
|
27
|
+
[32m✓[39m src/commands/__tests__/ai-signal-clarity.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 10[2mms[22m[39m
|
|
28
|
+
[32m✓[39m src/commands/__tests__/testability.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 9[2mms[22m[39m
|
|
10
29
|
[90mstdout[2m | src/commands/__tests__/visualize.test.ts[2m > [22m[2mVisualize CLI Action[2m > [22m[2mshould generate HTML from specified report
|
|
11
30
|
[22m[39mBuilding graph from report...
|
|
12
31
|
|
|
13
|
-
[32m✓[39m src/commands/__tests__/testability.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 14[2mms[22m[39m
|
|
14
|
-
[32m✓[39m src/commands/__tests__/ai-signal-clarity.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 13[2mms[22m[39m
|
|
15
|
-
[32m✓[39m src/commands/__tests__/deps-health.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 12[2mms[22m[39m
|
|
16
|
-
[32m✓[39m src/commands/__tests__/doc-drift.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 25[2mms[22m[39m
|
|
17
|
-
[32m✓[39m src/commands/__tests__/agent-grounding.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 25[2mms[22m[39m
|
|
18
32
|
[90mstdout[2m | src/commands/__tests__/visualize.test.ts[2m > [22m[2mVisualize CLI Action[2m > [22m[2mshould generate HTML from specified report
|
|
19
33
|
[22m[39mGenerating HTML...
|
|
20
34
|
✅ Visualization written to: /Users/pengcao/projects/aiready/packages/cli/visualization.html
|
|
@@ -42,34 +56,20 @@ Or specify a custom report:
|
|
|
42
56
|
[22m[39mGenerating HTML...
|
|
43
57
|
✅ Visualization written to: /Users/pengcao/projects/aiready/packages/cli/visualization.html
|
|
44
58
|
|
|
45
|
-
[32m✓[39m src/commands/__tests__/visualize.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m
|
|
46
|
-
[
|
|
47
|
-
[22m[39m Set AIREADY_API_KEY environment variable or use --api-key flag.
|
|
48
|
-
Get an API key from https://platform.getaiready.dev/dashboard
|
|
49
|
-
🚀 Uploading report to https://dev.platform.getaiready.dev...
|
|
50
|
-
Reading report from /Users/pengcao/projects/aiready/packages/cli/report.json...
|
|
51
|
-
Successfully parsed report JSON.
|
|
52
|
-
|
|
53
|
-
[90mstdout[2m | src/commands/__tests__/upload.test.ts[2m > [22m[2mUpload CLI Action[2m > [22m[2mshould fail if API key is missing
|
|
54
|
-
[22m[39m
|
|
55
|
-
✅ Upload successful! (0.00s)
|
|
56
|
-
View results: https://dev.platform.getaiready.dev/dashboard
|
|
57
|
-
Analysis ID: 123
|
|
58
|
-
Score: 80/100
|
|
59
|
-
|
|
60
|
-
[32m✓[39m src/commands/__tests__/upload.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 5[2mms[22m[39m
|
|
59
|
+
[32m✓[39m src/commands/__tests__/visualize.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 30[2mms[22m[39m
|
|
60
|
+
[32m✓[39m src/utils/__tests__/helpers.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 3[2mms[22m[39m
|
|
61
61
|
[32m✓[39m src/commands/__tests__/consistency.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
62
|
-
[32m✓[39m src/commands/__tests__/scan.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m
|
|
63
|
-
[32m✓[39m src/__tests__/
|
|
64
|
-
[32m✓[39m src/
|
|
65
|
-
[32m✓[39m src/__tests__/cli.test.ts [2m([22m[2m3 tests[22m[2m)[22m[33m
|
|
66
|
-
[33m[2m✓[22m[39m should run unified analysis with both tools [33m
|
|
67
|
-
[32m✓[39m src/__tests__/config-shape.test.ts [2m([22m[2m3 tests[22m[2m)[22m[33m
|
|
68
|
-
[33m[2m✓[22m[39m should generate a strictly portable AIReadyConfig in summary [33m
|
|
62
|
+
[32m✓[39m src/commands/__tests__/scan.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m 102[2mms[22m[39m
|
|
63
|
+
[32m✓[39m src/commands/__tests__/extra-commands.test.ts [2m([22m[2m8 tests[22m[2m)[22m[32m 101[2mms[22m[39m
|
|
64
|
+
[32m✓[39m src/__tests__/unified.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 6[2mms[22m[39m
|
|
65
|
+
[32m✓[39m src/__tests__/cli.test.ts [2m([22m[2m3 tests[22m[2m)[22m[33m 2662[2mms[22m[39m
|
|
66
|
+
[33m[2m✓[22m[39m should run unified analysis with both tools [33m 2661[2mms[22m[39m
|
|
67
|
+
[32m✓[39m src/__tests__/config-shape.test.ts [2m([22m[2m3 tests[22m[2m)[22m[33m 2662[2mms[22m[39m
|
|
68
|
+
[33m[2m✓[22m[39m should generate a strictly portable AIReadyConfig in summary [33m 2660[2mms[22m[39m
|
|
69
69
|
|
|
70
70
|
[2m Test Files [22m [1m[32m14 passed[39m[22m[90m (14)[39m
|
|
71
71
|
[2m Tests [22m [1m[32m43 passed[39m[22m[90m (43)[39m
|
|
72
|
-
[2m Start at [22m
|
|
73
|
-
[2m Duration [22m
|
|
72
|
+
[2m Start at [22m 16:14:25
|
|
73
|
+
[2m Duration [22m 3.51s[2m (transform 1.81s, setup 0ms, import 3.72s, tests 5.62s, environment 1ms)[22m
|
|
74
74
|
|
|
75
75
|
[?25h
|