@aiready/cli 0.10.0 → 0.10.2
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 +7 -7
- package/.turbo/turbo-test.log +3 -3
- package/dist/chunk-VUCNUYI7.mjs +417 -0
- package/dist/cli.js +3 -0
- package/dist/cli.mjs +1 -1
- package/dist/index.js +3 -0
- package/dist/index.mjs +1 -1
- package/package.json +12 -12
- package/src/.aiready/aiready-report-20260305-171001.json +8317 -0
- package/src/.aiready/aiready-report-20260305-201337.json +8317 -0
- package/src/index.ts +6 -3
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> @aiready/cli@0.
|
|
3
|
+
> @aiready/cli@0.10.1 build /Users/pengcao/projects/aiready/packages/cli
|
|
4
4
|
> tsup src/index.ts src/cli.ts --format cjs,esm
|
|
5
5
|
|
|
6
6
|
[34mCLI[39m Building entry: src/cli.ts, src/index.ts
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
[34mCJS[39m Build start
|
|
11
11
|
[34mESM[39m Build start
|
|
12
12
|
|
|
13
|
-
[
|
|
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] [90m8:13:10 pm[39m
|
|
14
14
|
|
|
15
15
|
src/cli.ts:25:31:
|
|
16
16
|
[37m 25 │ return dirname(fileURLToPath([32mimport.meta[37m.url));
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
[32mESM[39m [1mdist/index.mjs [22m[32m170.00 B[39m
|
|
24
|
-
[32mESM[39m [1mdist/chunk-
|
|
24
|
+
[32mESM[39m [1mdist/chunk-VUCNUYI7.mjs [22m[32m13.44 KB[39m
|
|
25
25
|
[32mESM[39m [1mdist/cli.mjs [22m[32m73.88 KB[39m
|
|
26
|
-
[32mESM[39m ⚡️ Build success in
|
|
27
|
-
[32mCJS[39m [1mdist/index.js [22m[32m14.
|
|
28
|
-
[32mCJS[39m [1mdist/cli.js [22m[32m90.
|
|
29
|
-
[32mCJS[39m ⚡️ Build success in
|
|
26
|
+
[32mESM[39m ⚡️ Build success in 27ms
|
|
27
|
+
[32mCJS[39m [1mdist/index.js [22m[32m14.84 KB[39m
|
|
28
|
+
[32mCJS[39m [1mdist/cli.js [22m[32m90.12 KB[39m
|
|
29
|
+
[32mCJS[39m ⚡️ Build success in 27ms
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> @aiready/cli@0.
|
|
3
|
+
> @aiready/cli@0.10.1 test /Users/pengcao/projects/aiready/packages/cli
|
|
4
4
|
> vitest run
|
|
5
5
|
|
|
6
6
|
[?25l
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
[2m Test Files [22m [1m[32m1 passed[39m[22m[90m (1)[39m
|
|
12
12
|
[2m Tests [22m [1m[32m3 passed[39m[22m[90m (3)[39m
|
|
13
|
-
[2m Start at [22m
|
|
14
|
-
[2m Duration [22m
|
|
13
|
+
[2m Start at [22m 20:13:28
|
|
14
|
+
[2m Duration [22m 377ms[2m (transform 81ms, setup 0ms, import 258ms, tests 2ms, environment 0ms)[22m
|
|
15
15
|
|
|
16
16
|
[?25h
|
|
@@ -0,0 +1,417 @@
|
|
|
1
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
2
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
3
|
+
}) : x)(function(x) {
|
|
4
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
5
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
// src/index.ts
|
|
9
|
+
import { analyzePatterns } from "@aiready/pattern-detect";
|
|
10
|
+
import { analyzeContext } from "@aiready/context-analyzer";
|
|
11
|
+
import { analyzeConsistency } from "@aiready/consistency";
|
|
12
|
+
import {
|
|
13
|
+
calculateOverallScore,
|
|
14
|
+
calculateTokenBudget
|
|
15
|
+
} from "@aiready/core";
|
|
16
|
+
var severityOrder = {
|
|
17
|
+
critical: 4,
|
|
18
|
+
major: 3,
|
|
19
|
+
minor: 2,
|
|
20
|
+
info: 1
|
|
21
|
+
};
|
|
22
|
+
function sortBySeverity(results) {
|
|
23
|
+
return results.map((file) => {
|
|
24
|
+
const sortedIssues = [...file.issues].sort((a, b) => {
|
|
25
|
+
const severityDiff = (severityOrder[b.severity] || 0) - (severityOrder[a.severity] || 0);
|
|
26
|
+
if (severityDiff !== 0) return severityDiff;
|
|
27
|
+
return (a.location?.line || 0) - (b.location?.line || 0);
|
|
28
|
+
});
|
|
29
|
+
return { ...file, issues: sortedIssues };
|
|
30
|
+
}).sort((a, b) => {
|
|
31
|
+
const aMaxSeverity = Math.max(
|
|
32
|
+
...a.issues.map((i) => severityOrder[i.severity] || 0),
|
|
33
|
+
0
|
|
34
|
+
);
|
|
35
|
+
const bMaxSeverity = Math.max(
|
|
36
|
+
...b.issues.map((i) => severityOrder[i.severity] || 0),
|
|
37
|
+
0
|
|
38
|
+
);
|
|
39
|
+
if (aMaxSeverity !== bMaxSeverity) {
|
|
40
|
+
return bMaxSeverity - aMaxSeverity;
|
|
41
|
+
}
|
|
42
|
+
if (a.issues.length !== b.issues.length) {
|
|
43
|
+
return b.issues.length - a.issues.length;
|
|
44
|
+
}
|
|
45
|
+
return a.fileName.localeCompare(b.fileName);
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
async function analyzeUnified(options) {
|
|
49
|
+
const startTime = Date.now();
|
|
50
|
+
const tools = options.tools || ["patterns", "context", "consistency"];
|
|
51
|
+
const result = {
|
|
52
|
+
summary: {
|
|
53
|
+
totalIssues: 0,
|
|
54
|
+
toolsRun: tools,
|
|
55
|
+
executionTime: 0
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
if (tools.includes("patterns")) {
|
|
59
|
+
const patternResult = await analyzePatterns(options);
|
|
60
|
+
if (options.progressCallback) {
|
|
61
|
+
options.progressCallback({ tool: "patterns", data: patternResult });
|
|
62
|
+
}
|
|
63
|
+
result.patternDetect = {
|
|
64
|
+
results: sortBySeverity(patternResult.results),
|
|
65
|
+
summary: patternResult.summary || {},
|
|
66
|
+
duplicates: patternResult.duplicates || []
|
|
67
|
+
};
|
|
68
|
+
result.summary.totalIssues += patternResult.results.reduce(
|
|
69
|
+
(sum, file) => sum + file.issues.length,
|
|
70
|
+
0
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
if (tools.includes("context")) {
|
|
74
|
+
const contextResults = await analyzeContext(options);
|
|
75
|
+
if (options.progressCallback) {
|
|
76
|
+
options.progressCallback({ tool: "context", data: contextResults });
|
|
77
|
+
}
|
|
78
|
+
const sorted = contextResults.sort((a, b) => {
|
|
79
|
+
const severityDiff = (severityOrder[b.severity] || 0) - (severityOrder[a.severity] || 0);
|
|
80
|
+
if (severityDiff !== 0) return severityDiff;
|
|
81
|
+
if (a.tokenCost !== b.tokenCost) return b.tokenCost - a.tokenCost;
|
|
82
|
+
return b.fragmentationScore - a.fragmentationScore;
|
|
83
|
+
});
|
|
84
|
+
const { generateSummary: genContextSummary } = await import("@aiready/context-analyzer");
|
|
85
|
+
result.contextAnalyzer = {
|
|
86
|
+
results: sorted,
|
|
87
|
+
summary: genContextSummary(sorted)
|
|
88
|
+
};
|
|
89
|
+
result.summary.totalIssues += sorted.length;
|
|
90
|
+
}
|
|
91
|
+
if (tools.includes("consistency")) {
|
|
92
|
+
const consistencyOptions = {
|
|
93
|
+
rootDir: options.rootDir,
|
|
94
|
+
include: options.include,
|
|
95
|
+
exclude: options.exclude,
|
|
96
|
+
...options.consistency || {}
|
|
97
|
+
};
|
|
98
|
+
const report = await analyzeConsistency(consistencyOptions);
|
|
99
|
+
if (options.progressCallback) {
|
|
100
|
+
options.progressCallback({ tool: "consistency", data: report });
|
|
101
|
+
}
|
|
102
|
+
result.consistency = {
|
|
103
|
+
results: report.results ? sortBySeverity(report.results) : [],
|
|
104
|
+
summary: report.summary
|
|
105
|
+
};
|
|
106
|
+
result.summary.totalIssues += report.summary.totalIssues;
|
|
107
|
+
}
|
|
108
|
+
if (tools.includes("doc-drift")) {
|
|
109
|
+
const { analyzeDocDrift } = await import("@aiready/doc-drift");
|
|
110
|
+
const report = await analyzeDocDrift({
|
|
111
|
+
rootDir: options.rootDir,
|
|
112
|
+
include: options.include,
|
|
113
|
+
exclude: options.exclude,
|
|
114
|
+
onProgress: options.onProgress
|
|
115
|
+
});
|
|
116
|
+
if (options.progressCallback) {
|
|
117
|
+
options.progressCallback({ tool: "doc-drift", data: report });
|
|
118
|
+
}
|
|
119
|
+
result.docDrift = {
|
|
120
|
+
results: report.results || [],
|
|
121
|
+
summary: report.summary || {}
|
|
122
|
+
};
|
|
123
|
+
result.summary.totalIssues += report.issues?.length || 0;
|
|
124
|
+
}
|
|
125
|
+
if (tools.includes("deps-health")) {
|
|
126
|
+
const { analyzeDeps } = await import("@aiready/deps");
|
|
127
|
+
const report = await analyzeDeps({
|
|
128
|
+
rootDir: options.rootDir,
|
|
129
|
+
include: options.include,
|
|
130
|
+
exclude: options.exclude,
|
|
131
|
+
onProgress: options.onProgress
|
|
132
|
+
});
|
|
133
|
+
if (options.progressCallback) {
|
|
134
|
+
options.progressCallback({ tool: "deps-health", data: report });
|
|
135
|
+
}
|
|
136
|
+
result.dependencyHealth = {
|
|
137
|
+
results: report.results || [],
|
|
138
|
+
summary: report.summary || {}
|
|
139
|
+
};
|
|
140
|
+
result.summary.totalIssues += report.issues?.length || 0;
|
|
141
|
+
}
|
|
142
|
+
if (tools.includes("ai-signal-clarity")) {
|
|
143
|
+
const { analyzeAiSignalClarity } = await import("@aiready/ai-signal-clarity");
|
|
144
|
+
const report = await analyzeAiSignalClarity({
|
|
145
|
+
rootDir: options.rootDir,
|
|
146
|
+
include: options.include,
|
|
147
|
+
exclude: options.exclude,
|
|
148
|
+
onProgress: options.onProgress
|
|
149
|
+
});
|
|
150
|
+
if (options.progressCallback) {
|
|
151
|
+
options.progressCallback({ tool: "ai-signal-clarity", data: report });
|
|
152
|
+
}
|
|
153
|
+
result.aiSignalClarity = {
|
|
154
|
+
...report,
|
|
155
|
+
results: report.results || [],
|
|
156
|
+
summary: report.summary || {}
|
|
157
|
+
};
|
|
158
|
+
result.summary.totalIssues += report.results?.reduce(
|
|
159
|
+
(sum, r) => sum + (r.issues?.length || 0),
|
|
160
|
+
0
|
|
161
|
+
) || 0;
|
|
162
|
+
}
|
|
163
|
+
if (tools.includes("agent-grounding")) {
|
|
164
|
+
const { analyzeAgentGrounding } = await import("@aiready/agent-grounding");
|
|
165
|
+
const report = await analyzeAgentGrounding({
|
|
166
|
+
rootDir: options.rootDir,
|
|
167
|
+
include: options.include,
|
|
168
|
+
exclude: options.exclude,
|
|
169
|
+
onProgress: options.onProgress
|
|
170
|
+
});
|
|
171
|
+
if (options.progressCallback) {
|
|
172
|
+
options.progressCallback({ tool: "agent-grounding", data: report });
|
|
173
|
+
}
|
|
174
|
+
result.agentGrounding = {
|
|
175
|
+
...report,
|
|
176
|
+
results: report.results || [],
|
|
177
|
+
summary: report.summary || {}
|
|
178
|
+
};
|
|
179
|
+
result.summary.totalIssues += report.issues?.length || 0;
|
|
180
|
+
}
|
|
181
|
+
if (tools.includes("testability")) {
|
|
182
|
+
const { analyzeTestability } = await import("@aiready/testability");
|
|
183
|
+
const report = await analyzeTestability({
|
|
184
|
+
rootDir: options.rootDir,
|
|
185
|
+
include: options.include,
|
|
186
|
+
exclude: options.exclude,
|
|
187
|
+
onProgress: options.onProgress
|
|
188
|
+
});
|
|
189
|
+
if (options.progressCallback) {
|
|
190
|
+
options.progressCallback({ tool: "testability", data: report });
|
|
191
|
+
}
|
|
192
|
+
result.testability = {
|
|
193
|
+
...report,
|
|
194
|
+
results: report.results || [],
|
|
195
|
+
summary: report.summary || {}
|
|
196
|
+
};
|
|
197
|
+
result.summary.totalIssues += report.issues?.length || 0;
|
|
198
|
+
}
|
|
199
|
+
if (tools.includes("change-amplification")) {
|
|
200
|
+
const { analyzeChangeAmplification } = await import("@aiready/change-amplification");
|
|
201
|
+
const report = await analyzeChangeAmplification({
|
|
202
|
+
rootDir: options.rootDir,
|
|
203
|
+
include: options.include,
|
|
204
|
+
exclude: options.exclude,
|
|
205
|
+
onProgress: options.onProgress
|
|
206
|
+
});
|
|
207
|
+
if (options.progressCallback) {
|
|
208
|
+
options.progressCallback({ tool: "change-amplification", data: report });
|
|
209
|
+
}
|
|
210
|
+
result.changeAmplification = {
|
|
211
|
+
results: report.results || [],
|
|
212
|
+
summary: report.summary || {}
|
|
213
|
+
};
|
|
214
|
+
result.summary.totalIssues += report.summary?.totalIssues || 0;
|
|
215
|
+
}
|
|
216
|
+
result.summary.executionTime = Date.now() - startTime;
|
|
217
|
+
return result;
|
|
218
|
+
}
|
|
219
|
+
async function scoreUnified(results, options) {
|
|
220
|
+
const toolScores = /* @__PURE__ */ new Map();
|
|
221
|
+
if (results.patternDetect) {
|
|
222
|
+
const { calculatePatternScore } = await import("@aiready/pattern-detect");
|
|
223
|
+
try {
|
|
224
|
+
const patternScore = calculatePatternScore(
|
|
225
|
+
results.patternDetect.duplicates,
|
|
226
|
+
results.patternDetect.results?.length || 0
|
|
227
|
+
);
|
|
228
|
+
const wastedTokens = results.patternDetect.duplicates.reduce(
|
|
229
|
+
(sum, d) => sum + (d.tokenCost || 0),
|
|
230
|
+
0
|
|
231
|
+
);
|
|
232
|
+
patternScore.tokenBudget = calculateTokenBudget({
|
|
233
|
+
totalContextTokens: wastedTokens * 2,
|
|
234
|
+
// Estimated context
|
|
235
|
+
wastedTokens: {
|
|
236
|
+
duplication: wastedTokens,
|
|
237
|
+
fragmentation: 0,
|
|
238
|
+
chattiness: 0
|
|
239
|
+
}
|
|
240
|
+
});
|
|
241
|
+
toolScores.set("pattern-detect", patternScore);
|
|
242
|
+
} catch (err) {
|
|
243
|
+
void err;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
if (results.contextAnalyzer) {
|
|
247
|
+
const { calculateContextScore } = await import("@aiready/context-analyzer");
|
|
248
|
+
try {
|
|
249
|
+
const ctxSummary = results.contextAnalyzer.summary;
|
|
250
|
+
const contextScore = calculateContextScore(ctxSummary);
|
|
251
|
+
contextScore.tokenBudget = calculateTokenBudget({
|
|
252
|
+
totalContextTokens: ctxSummary.totalTokens,
|
|
253
|
+
wastedTokens: {
|
|
254
|
+
duplication: 0,
|
|
255
|
+
fragmentation: ctxSummary.totalPotentialSavings || 0,
|
|
256
|
+
chattiness: 0
|
|
257
|
+
}
|
|
258
|
+
});
|
|
259
|
+
toolScores.set("context-analyzer", contextScore);
|
|
260
|
+
} catch (err) {
|
|
261
|
+
void err;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
if (results.consistency) {
|
|
265
|
+
const { calculateConsistencyScore } = await import("@aiready/consistency");
|
|
266
|
+
try {
|
|
267
|
+
const issues = results.consistency.results?.flatMap((r) => r.issues) || [];
|
|
268
|
+
const totalFiles = results.consistency.summary?.filesAnalyzed || 0;
|
|
269
|
+
const consistencyScore = calculateConsistencyScore(issues, totalFiles);
|
|
270
|
+
toolScores.set("consistency", consistencyScore);
|
|
271
|
+
} catch (err) {
|
|
272
|
+
void err;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
if (results.aiSignalClarity) {
|
|
276
|
+
const { calculateAiSignalClarityScore } = await import("@aiready/ai-signal-clarity");
|
|
277
|
+
try {
|
|
278
|
+
const hrScore = calculateAiSignalClarityScore(results.aiSignalClarity);
|
|
279
|
+
toolScores.set("ai-signal-clarity", hrScore);
|
|
280
|
+
} catch (err) {
|
|
281
|
+
void err;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
if (results.agentGrounding) {
|
|
285
|
+
const { calculateGroundingScore } = await import("@aiready/agent-grounding");
|
|
286
|
+
try {
|
|
287
|
+
const agScore = calculateGroundingScore(results.agentGrounding);
|
|
288
|
+
toolScores.set("agent-grounding", agScore);
|
|
289
|
+
} catch (err) {
|
|
290
|
+
void err;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
if (results.testability) {
|
|
294
|
+
const { calculateTestabilityScore } = await import("@aiready/testability");
|
|
295
|
+
try {
|
|
296
|
+
const tbScore = calculateTestabilityScore(results.testability);
|
|
297
|
+
toolScores.set("testability", tbScore);
|
|
298
|
+
} catch (err) {
|
|
299
|
+
void err;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
if (results.docDrift) {
|
|
303
|
+
toolScores.set("doc-drift", {
|
|
304
|
+
toolName: "doc-drift",
|
|
305
|
+
score: results.docDrift.summary.score || results.docDrift.summary.totalScore || 0,
|
|
306
|
+
rawMetrics: results.docDrift.summary,
|
|
307
|
+
factors: [],
|
|
308
|
+
recommendations: (results.docDrift.summary.recommendations || []).map(
|
|
309
|
+
(action) => ({
|
|
310
|
+
action,
|
|
311
|
+
estimatedImpact: 5,
|
|
312
|
+
priority: "medium"
|
|
313
|
+
})
|
|
314
|
+
)
|
|
315
|
+
});
|
|
316
|
+
}
|
|
317
|
+
if (results.dependencyHealth) {
|
|
318
|
+
toolScores.set("dependency-health", {
|
|
319
|
+
toolName: "dependency-health",
|
|
320
|
+
score: results.dependencyHealth.summary.score || 0,
|
|
321
|
+
rawMetrics: results.dependencyHealth.summary,
|
|
322
|
+
factors: [],
|
|
323
|
+
recommendations: (results.dependencyHealth.summary.recommendations || []).map((action) => ({
|
|
324
|
+
action,
|
|
325
|
+
estimatedImpact: 5,
|
|
326
|
+
priority: "medium"
|
|
327
|
+
}))
|
|
328
|
+
});
|
|
329
|
+
}
|
|
330
|
+
if (results.changeAmplification) {
|
|
331
|
+
toolScores.set("change-amplification", {
|
|
332
|
+
toolName: "change-amplification",
|
|
333
|
+
score: results.changeAmplification.summary.score || 0,
|
|
334
|
+
rawMetrics: results.changeAmplification.summary,
|
|
335
|
+
factors: [],
|
|
336
|
+
recommendations: (results.changeAmplification.summary.recommendations || []).map((action) => ({
|
|
337
|
+
action,
|
|
338
|
+
estimatedImpact: 5,
|
|
339
|
+
priority: "medium"
|
|
340
|
+
}))
|
|
341
|
+
});
|
|
342
|
+
}
|
|
343
|
+
if (toolScores.size === 0) {
|
|
344
|
+
return {
|
|
345
|
+
overall: 0,
|
|
346
|
+
rating: "Critical",
|
|
347
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
348
|
+
toolsUsed: [],
|
|
349
|
+
breakdown: [],
|
|
350
|
+
calculation: {
|
|
351
|
+
formula: "0 / 0 = 0",
|
|
352
|
+
weights: {},
|
|
353
|
+
normalized: "0 / 0 = 0"
|
|
354
|
+
}
|
|
355
|
+
};
|
|
356
|
+
}
|
|
357
|
+
return calculateOverallScore(toolScores, options, void 0);
|
|
358
|
+
}
|
|
359
|
+
function generateUnifiedSummary(result) {
|
|
360
|
+
const { summary } = result;
|
|
361
|
+
let output = `\u{1F680} AIReady Analysis Complete
|
|
362
|
+
|
|
363
|
+
`;
|
|
364
|
+
output += `\u{1F4CA} Summary:
|
|
365
|
+
`;
|
|
366
|
+
output += ` Tools run: ${summary.toolsRun.join(", ")}
|
|
367
|
+
`;
|
|
368
|
+
output += ` Total issues found: ${summary.totalIssues}
|
|
369
|
+
`;
|
|
370
|
+
output += ` Execution time: ${(summary.executionTime / 1e3).toFixed(2)}s
|
|
371
|
+
|
|
372
|
+
`;
|
|
373
|
+
if (result.patternDetect) {
|
|
374
|
+
output += `\u{1F50D} Pattern Analysis: ${result.patternDetect.results.length} issues
|
|
375
|
+
`;
|
|
376
|
+
}
|
|
377
|
+
if (result.contextAnalyzer) {
|
|
378
|
+
output += `\u{1F9E0} Context Analysis: ${result.contextAnalyzer.results.length} issues
|
|
379
|
+
`;
|
|
380
|
+
}
|
|
381
|
+
if (result.consistency) {
|
|
382
|
+
output += `\u{1F3F7}\uFE0F Consistency Analysis: ${result.consistency.summary.totalIssues} issues
|
|
383
|
+
`;
|
|
384
|
+
}
|
|
385
|
+
if (result.docDrift) {
|
|
386
|
+
output += `\u{1F4DD} Doc Drift Analysis: ${result.docDrift.results?.length || 0} issues
|
|
387
|
+
`;
|
|
388
|
+
}
|
|
389
|
+
if (result.dependencyHealth) {
|
|
390
|
+
output += `\u{1F4E6} Dependency Health: ${result.dependencyHealth.results?.length || 0} issues
|
|
391
|
+
`;
|
|
392
|
+
}
|
|
393
|
+
if (result.aiSignalClarity) {
|
|
394
|
+
output += `\u{1F9E0} AI Signal Clarity: ${result.aiSignalClarity.summary?.totalSignals || 0} signals
|
|
395
|
+
`;
|
|
396
|
+
}
|
|
397
|
+
if (result.agentGrounding) {
|
|
398
|
+
output += `\u{1F9ED} Agent Grounding: ${result.agentGrounding.results?.length || 0} issues
|
|
399
|
+
`;
|
|
400
|
+
}
|
|
401
|
+
if (result.testability) {
|
|
402
|
+
output += `\u{1F9EA} Testability Index: ${result.testability.results?.length || 0} issues
|
|
403
|
+
`;
|
|
404
|
+
}
|
|
405
|
+
if (result.changeAmplification) {
|
|
406
|
+
output += `\u{1F4A5} Change Amplification: ${result.changeAmplification.summary?.totalIssues || 0} cascading risks
|
|
407
|
+
`;
|
|
408
|
+
}
|
|
409
|
+
return output;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
export {
|
|
413
|
+
__require,
|
|
414
|
+
analyzeUnified,
|
|
415
|
+
scoreUnified,
|
|
416
|
+
generateUnifiedSummary
|
|
417
|
+
};
|
package/dist/cli.js
CHANGED
|
@@ -178,6 +178,7 @@ async function analyzeUnified(options) {
|
|
|
178
178
|
options.progressCallback({ tool: "ai-signal-clarity", data: report });
|
|
179
179
|
}
|
|
180
180
|
result.aiSignalClarity = {
|
|
181
|
+
...report,
|
|
181
182
|
results: report.results || [],
|
|
182
183
|
summary: report.summary || {}
|
|
183
184
|
};
|
|
@@ -198,6 +199,7 @@ async function analyzeUnified(options) {
|
|
|
198
199
|
options.progressCallback({ tool: "agent-grounding", data: report });
|
|
199
200
|
}
|
|
200
201
|
result.agentGrounding = {
|
|
202
|
+
...report,
|
|
201
203
|
results: report.results || [],
|
|
202
204
|
summary: report.summary || {}
|
|
203
205
|
};
|
|
@@ -215,6 +217,7 @@ async function analyzeUnified(options) {
|
|
|
215
217
|
options.progressCallback({ tool: "testability", data: report });
|
|
216
218
|
}
|
|
217
219
|
result.testability = {
|
|
220
|
+
...report,
|
|
218
221
|
results: report.results || [],
|
|
219
222
|
summary: report.summary || {}
|
|
220
223
|
};
|
package/dist/cli.mjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -177,6 +177,7 @@ async function analyzeUnified(options) {
|
|
|
177
177
|
options.progressCallback({ tool: "ai-signal-clarity", data: report });
|
|
178
178
|
}
|
|
179
179
|
result.aiSignalClarity = {
|
|
180
|
+
...report,
|
|
180
181
|
results: report.results || [],
|
|
181
182
|
summary: report.summary || {}
|
|
182
183
|
};
|
|
@@ -197,6 +198,7 @@ async function analyzeUnified(options) {
|
|
|
197
198
|
options.progressCallback({ tool: "agent-grounding", data: report });
|
|
198
199
|
}
|
|
199
200
|
result.agentGrounding = {
|
|
201
|
+
...report,
|
|
200
202
|
results: report.results || [],
|
|
201
203
|
summary: report.summary || {}
|
|
202
204
|
};
|
|
@@ -214,6 +216,7 @@ async function analyzeUnified(options) {
|
|
|
214
216
|
options.progressCallback({ tool: "testability", data: report });
|
|
215
217
|
}
|
|
216
218
|
result.testability = {
|
|
219
|
+
...report,
|
|
217
220
|
results: report.results || [],
|
|
218
221
|
summary: report.summary || {}
|
|
219
222
|
};
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aiready/cli",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.2",
|
|
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/
|
|
15
|
-
"@aiready/
|
|
16
|
-
"@aiready/
|
|
17
|
-
"@aiready/
|
|
18
|
-
"@aiready/
|
|
19
|
-
"@aiready/
|
|
20
|
-
"@aiready/
|
|
21
|
-
"@aiready/
|
|
22
|
-
"@aiready/ai-signal-clarity": "0.9.
|
|
23
|
-
"@aiready/
|
|
24
|
-
"@aiready/
|
|
14
|
+
"@aiready/context-analyzer": "0.17.2",
|
|
15
|
+
"@aiready/agent-grounding": "0.9.2",
|
|
16
|
+
"@aiready/core": "0.19.2",
|
|
17
|
+
"@aiready/deps": "0.9.2",
|
|
18
|
+
"@aiready/doc-drift": "0.9.2",
|
|
19
|
+
"@aiready/consistency": "0.16.2",
|
|
20
|
+
"@aiready/change-amplification": "0.9.2",
|
|
21
|
+
"@aiready/testability": "0.2.2",
|
|
22
|
+
"@aiready/ai-signal-clarity": "0.9.2",
|
|
23
|
+
"@aiready/pattern-detect": "0.12.2",
|
|
24
|
+
"@aiready/visualizer": "0.2.2"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/node": "^24.0.0",
|