@aiready/cli 0.13.8 → 0.14.1

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.
@@ -0,0 +1,62 @@
1
+ {
2
+ "results": [],
3
+ "summary": {
4
+ "totalFiles": 0,
5
+ "totalTokens": 0,
6
+ "avgContextBudget": 0,
7
+ "maxContextBudget": 0,
8
+ "avgImportDepth": 0,
9
+ "maxImportDepth": 0,
10
+ "deepFiles": [],
11
+ "avgFragmentation": 0,
12
+ "fragmentedModules": [],
13
+ "avgCohesion": 0,
14
+ "lowCohesionFiles": [],
15
+ "criticalIssues": 0,
16
+ "majorIssues": 0,
17
+ "minorIssues": 0,
18
+ "totalPotentialSavings": 0,
19
+ "topExpensiveFiles": [],
20
+ "executionTime": 0.04
21
+ },
22
+ "scoring": {
23
+ "toolName": "context-analyzer",
24
+ "score": 100,
25
+ "rawMetrics": {
26
+ "avgContextBudget": 0,
27
+ "maxContextBudget": 0,
28
+ "avgImportDepth": 0,
29
+ "maxImportDepth": 0,
30
+ "avgFragmentation": 0,
31
+ "criticalIssues": 0,
32
+ "majorIssues": 0,
33
+ "estimatedMonthlyCost": {
34
+ "total": 0,
35
+ "range": [
36
+ 0,
37
+ 0
38
+ ],
39
+ "confidence": 0.7
40
+ },
41
+ "estimatedDeveloperHours": 0
42
+ },
43
+ "factors": [
44
+ {
45
+ "name": "Context Budget",
46
+ "impact": 0,
47
+ "description": "Avg 0 tokens per file (excellent)"
48
+ },
49
+ {
50
+ "name": "Import Depth",
51
+ "impact": 0,
52
+ "description": "Avg 0.0 levels (excellent)"
53
+ },
54
+ {
55
+ "name": "Fragmentation",
56
+ "impact": 0,
57
+ "description": "0% fragmentation (well-organized)"
58
+ }
59
+ ],
60
+ "recommendations": []
61
+ }
62
+ }
@@ -0,0 +1,62 @@
1
+ {
2
+ "results": [],
3
+ "summary": {
4
+ "totalFiles": 0,
5
+ "totalTokens": 0,
6
+ "avgContextBudget": 0,
7
+ "maxContextBudget": 0,
8
+ "avgImportDepth": 0,
9
+ "maxImportDepth": 0,
10
+ "deepFiles": [],
11
+ "avgFragmentation": 0,
12
+ "fragmentedModules": [],
13
+ "avgCohesion": 0,
14
+ "lowCohesionFiles": [],
15
+ "criticalIssues": 0,
16
+ "majorIssues": 0,
17
+ "minorIssues": 0,
18
+ "totalPotentialSavings": 0,
19
+ "topExpensiveFiles": [],
20
+ "executionTime": 0.05
21
+ },
22
+ "scoring": {
23
+ "toolName": "context-analyzer",
24
+ "score": 100,
25
+ "rawMetrics": {
26
+ "avgContextBudget": 0,
27
+ "maxContextBudget": 0,
28
+ "avgImportDepth": 0,
29
+ "maxImportDepth": 0,
30
+ "avgFragmentation": 0,
31
+ "criticalIssues": 0,
32
+ "majorIssues": 0,
33
+ "estimatedMonthlyCost": {
34
+ "total": 0,
35
+ "range": [
36
+ 0,
37
+ 0
38
+ ],
39
+ "confidence": 0.7
40
+ },
41
+ "estimatedDeveloperHours": 0
42
+ },
43
+ "factors": [
44
+ {
45
+ "name": "Context Budget",
46
+ "impact": 0,
47
+ "description": "Avg 0 tokens per file (excellent)"
48
+ },
49
+ {
50
+ "name": "Import Depth",
51
+ "impact": 0,
52
+ "description": "Avg 0.0 levels (excellent)"
53
+ },
54
+ {
55
+ "name": "Fragmentation",
56
+ "impact": 0,
57
+ "description": "0% fragmentation (well-organized)"
58
+ }
59
+ ],
60
+ "recommendations": []
61
+ }
62
+ }
@@ -1,6 +1,6 @@
1
1
 
2
2
  
3
- > @aiready/cli@0.13.8 build /Users/pengcao/projects/aiready/packages/cli
3
+ > @aiready/cli@0.14.0 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,20 +10,20 @@
10
10
  CJS Build start
11
11
  ESM Build start
12
12
 
13
-  WARN  ▲ [WARNING] "import.meta" is not available with the "cjs" output format and will be empty [empty-import-meta] 11:09:31 am
13
+ [5:15:59 PM]  WARN  ▲ [WARNING] "import.meta" is not available with the "cjs" output format and will be empty [empty-import-meta]
14
14
 
15
- src/cli.ts:28:31:
16
-  28 │ return dirname(fileURLToPath(import.meta.url));
15
+ src/cli.ts:29:31:
16
+  29 │ return dirname(fileURLToPath(import.meta.url));
17
17
  ╵ ~~~~~~~~~~~
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
- CJS dist/cli.js 80.45 KB
23
+ CJS dist/cli.js 83.57 KB
24
24
  CJS dist/index.js 10.62 KB
25
- CJS ⚡️ Build success in 80ms
25
+ CJS ⚡️ Build success in 70ms
26
+ ESM dist/cli.mjs 69.82 KB
26
27
  ESM dist/chunk-VOKP7FGM.mjs 9.52 KB
27
28
  ESM dist/index.mjs 170.00 B
28
- ESM dist/cli.mjs 66.94 KB
29
- ESM ⚡️ Build success in 80ms
29
+ ESM ⚡️ Build success in 70ms
@@ -1,20 +1,43 @@
1
1
 
2
2
  
3
- > @aiready/cli@0.13.0 test /Users/pengcao/projects/aiready/packages/cli
3
+ > @aiready/cli@0.14.0 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/utils/__tests__/helpers.test.ts (3 tests) 5ms
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
10
37
  stdout | src/commands/__tests__/visualize.test.ts > Visualize CLI Action > should generate HTML from specified report
11
38
  Building graph from report...
12
39
 
13
- ✓ src/commands/__tests__/testability.test.ts (2 tests) 14ms
14
- ✓ src/commands/__tests__/ai-signal-clarity.test.ts (1 test) 13ms
15
- ✓ src/commands/__tests__/deps-health.test.ts (1 test) 12ms
16
- ✓ src/commands/__tests__/doc-drift.test.ts (1 test) 25ms
17
- ✓ src/commands/__tests__/agent-grounding.test.ts (1 test) 25ms
40
+ ✓ src/commands/__tests__/testability.test.ts (2 tests) 7ms
18
41
  stdout | src/commands/__tests__/visualize.test.ts > Visualize CLI Action > should generate HTML from specified report
19
42
  Generating HTML...
20
43
  ✅ Visualization written to: /Users/pengcao/projects/aiready/packages/cli/visualization.html
@@ -42,7 +65,21 @@ Or specify a custom report:
42
65
  Generating HTML...
43
66
  ✅ Visualization written to: /Users/pengcao/projects/aiready/packages/cli/visualization.html
44
67
 
45
- ✓ src/commands/__tests__/visualize.test.ts (4 tests) 34ms
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
46
83
  stdout | src/commands/__tests__/upload.test.ts > Upload CLI Action > should fail if API key is missing
47
84
   Set AIREADY_API_KEY environment variable or use --api-key flag.
48
85
  Get an API key from https://platform.getaiready.dev/dashboard
@@ -57,19 +94,73 @@ Or specify a custom report:
57
94
  Analysis ID: 123
58
95
  Score: 80/100
59
96
 
60
- ✓ src/commands/__tests__/upload.test.ts (2 tests) 5ms
61
- ✓ src/commands/__tests__/consistency.test.ts (4 tests) 4ms
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
62
111
  ✓ src/commands/__tests__/scan.test.ts (6 tests) 77ms
63
- ✓ src/__tests__/unified.test.ts (4 tests) 3ms
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
64
123
  ✓ src/commands/__tests__/extra-commands.test.ts (8 tests) 93ms
65
- ✓ src/__tests__/cli.test.ts (3 tests) 3317ms
66
- ✓ should run unified analysis with both tools  3316ms
67
- ✓ src/__tests__/config-shape.test.ts (3 tests) 3318ms
68
- ✓ should generate a strictly portable AIReadyConfig in summary  3316ms
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
69
160
 
70
161
   Test Files  14 passed (14)
71
162
   Tests  43 passed (43)
72
-  Start at  00:58:55
73
-  Duration  4.20s (transform 1.99s, setup 0ms, import 4.11s, tests 6.94s, environment 1ms)
163
+  Start at  17:20:16
164
+  Duration  3.58s (transform 1.79s, setup 0ms, import 3.47s, tests 5.90s, environment 1ms)
74
165
 
75
166
  [?25h