@aiready/cli 0.14.0 → 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,7 +10,7 @@
10
10
  CJS Build start
11
11
  ESM Build start
12
12
 
13
- [4:13:49 PM]  WARN  ▲ [WARNING] "import.meta" is not available with the "cjs" output format and will be empty [empty-import-meta]
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
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
- ESM dist/index.mjs 170.00 B
24
- ESM dist/cli.mjs 69.82 KB
25
- ESM dist/chunk-VOKP7FGM.mjs 9.52 KB
26
- ESM ⚡️ Build success in 118ms
27
23
  CJS dist/cli.js 83.57 KB
28
24
  CJS dist/index.js 10.62 KB
29
- CJS ⚡️ Build success in 118ms
25
+ CJS ⚡️ Build success in 70ms
26
+ ESM dist/cli.mjs 69.82 KB
27
+ ESM dist/chunk-VOKP7FGM.mjs 9.52 KB
28
+ ESM dist/index.mjs 170.00 B
29
+ ESM ⚡️ Build success in 70ms
@@ -1,34 +1,43 @@
1
1
 
2
2
  
3
- > @aiready/cli@0.13.8 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
- stdout | src/commands/__tests__/upload.test.ts > Upload CLI Action > should fail if API key is missing
10
-  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.
9
+ [?2026h
10
+  src/commands/__tests__/agent-grounding.test.ts [queued]
15
11
 
16
- stdout | src/commands/__tests__/upload.test.ts > Upload CLI Action > should fail if API key is missing
17
- 
18
- Upload successful! (0.00s)
19
- View results: https://dev.platform.getaiready.dev/dashboard
20
- Analysis ID: 123
21
- Score: 80/100
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
22
28
 
23
- ✓ src/commands/__tests__/upload.test.ts (2 tests) 4ms
24
- ✓ src/commands/__tests__/deps-health.test.ts (1 test) 11ms
25
- ✓ src/commands/__tests__/doc-drift.test.ts (1 test) 11ms
26
- ✓ src/commands/__tests__/agent-grounding.test.ts (1 test) 12ms
27
- ✓ src/commands/__tests__/ai-signal-clarity.test.ts (1 test) 10ms
28
- ✓ src/commands/__tests__/testability.test.ts (2 tests) 9ms
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
29
37
  stdout | src/commands/__tests__/visualize.test.ts > Visualize CLI Action > should generate HTML from specified report
30
38
  Building graph from report...
31
39
 
40
+ ✓ src/commands/__tests__/testability.test.ts (2 tests) 7ms
32
41
  stdout | src/commands/__tests__/visualize.test.ts > Visualize CLI Action > should generate HTML from specified report
33
42
  Generating HTML...
34
43
  ✅ Visualization written to: /Users/pengcao/projects/aiready/packages/cli/visualization.html
@@ -56,20 +65,102 @@ Or specify a custom report:
56
65
  Generating HTML...
57
66
  ✅ Visualization written to: /Users/pengcao/projects/aiready/packages/cli/visualization.html
58
67
 
59
- ✓ src/commands/__tests__/visualize.test.ts (4 tests) 30ms
60
- ✓ src/utils/__tests__/helpers.test.ts (3 tests) 3ms
61
- ✓ src/commands/__tests__/consistency.test.ts (4 tests) 4ms
62
- ✓ src/commands/__tests__/scan.test.ts (6 tests) 102ms
63
- ✓ src/commands/__tests__/extra-commands.test.ts (8 tests) 101ms
64
- ✓ src/__tests__/unified.test.ts (4 tests) 6ms
65
- ✓ src/__tests__/cli.test.ts (3 tests) 2662ms
66
- ✓ should run unified analysis with both tools  2661ms
67
- ✓ src/__tests__/config-shape.test.ts (3 tests) 2662ms
68
- ✓ should generate a strictly portable AIReadyConfig in summary  2660ms
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
69
160
 
70
161
   Test Files  14 passed (14)
71
162
   Tests  43 passed (43)
72
-  Start at  16:14:25
73
-  Duration  3.51s (transform 1.81s, setup 0ms, import 3.72s, tests 5.62s, 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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiready/cli",
3
- "version": "0.14.0",
3
+ "version": "0.14.1",
4
4
  "description": "Unified CLI for AIReady analysis tools",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -11,17 +11,17 @@
11
11
  "dependencies": {
12
12
  "chalk": "^5.3.0",
13
13
  "commander": "^14.0.0",
14
- "@aiready/consistency": "0.20.0",
15
- "@aiready/context-analyzer": "0.21.0",
16
- "@aiready/agent-grounding": "0.13.0",
17
- "@aiready/doc-drift": "0.13.0",
18
- "@aiready/deps": "0.13.0",
19
- "@aiready/pattern-detect": "0.16.0",
20
- "@aiready/core": "0.23.0",
21
- "@aiready/change-amplification": "0.13.0",
22
- "@aiready/ai-signal-clarity": "0.13.0",
23
- "@aiready/visualizer": "0.6.0",
24
- "@aiready/testability": "0.6.0"
14
+ "@aiready/core": "0.23.1",
15
+ "@aiready/agent-grounding": "0.13.1",
16
+ "@aiready/context-analyzer": "0.21.1",
17
+ "@aiready/consistency": "0.20.1",
18
+ "@aiready/deps": "0.13.1",
19
+ "@aiready/doc-drift": "0.13.1",
20
+ "@aiready/change-amplification": "0.13.1",
21
+ "@aiready/ai-signal-clarity": "0.13.1",
22
+ "@aiready/pattern-detect": "0.16.1",
23
+ "@aiready/testability": "0.6.1",
24
+ "@aiready/visualizer": "0.6.1"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@types/node": "^24.0.0",