@aiready/cli 0.12.0 → 0.12.3
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 +8 -8
- package/.turbo/turbo-test.log +37 -10
- package/dist/chunk-LTUQDJPO.mjs +229 -0
- package/dist/cli.js +44 -5
- package/dist/cli.mjs +8 -4
- package/dist/index.js +37 -2
- package/dist/index.mjs +1 -1
- package/package.json +12 -12
- package/src/.aiready/aiready-report-20260307-094831.json +50609 -0
- package/src/.aiready/aiready-report-20260307-100539.json +50609 -0
- package/src/.aiready/aiready-report-20260307-103508.json +51329 -0
- package/src/.aiready/aiready-report-20260307-105213.json +51969 -0
- package/src/.aiready/aiready-report-20260307-105633.json +51969 -0
- package/src/commands/scan.ts +11 -3
- package/src/index.ts +38 -1
package/src/commands/scan.ts
CHANGED
|
@@ -156,10 +156,18 @@ export async function scanAction(directory: string, options: ScanOptions) {
|
|
|
156
156
|
);
|
|
157
157
|
|
|
158
158
|
// Dynamic progress callback
|
|
159
|
-
const progressCallback = (event:
|
|
160
|
-
|
|
159
|
+
const progressCallback = (event: any) => {
|
|
160
|
+
// Handle progress messages
|
|
161
|
+
if (event.message) {
|
|
162
|
+
process.stdout.write(`\r\x1b[K [${event.tool}] ${event.message}`);
|
|
163
|
+
return;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
// Handle tool completion
|
|
167
|
+
process.stdout.write('\n'); // Clear the progress line
|
|
168
|
+
console.log(chalk.cyan(`--- ${event.tool.toUpperCase()} RESULTS ---`));
|
|
161
169
|
const res = event.data;
|
|
162
|
-
if (res.summary) {
|
|
170
|
+
if (res && res.summary) {
|
|
163
171
|
if (res.summary.totalIssues !== undefined)
|
|
164
172
|
console.log(` Issues found: ${chalk.bold(res.summary.totalIssues)}`);
|
|
165
173
|
if (res.summary.score !== undefined)
|
package/src/index.ts
CHANGED
|
@@ -12,6 +12,17 @@ import type {
|
|
|
12
12
|
ScoringResult,
|
|
13
13
|
} from '@aiready/core';
|
|
14
14
|
|
|
15
|
+
// Pre-import all tool providers to ensure they are registered by default
|
|
16
|
+
import '@aiready/pattern-detect';
|
|
17
|
+
import '@aiready/context-analyzer';
|
|
18
|
+
import '@aiready/consistency';
|
|
19
|
+
import '@aiready/ai-signal-clarity';
|
|
20
|
+
import '@aiready/agent-grounding';
|
|
21
|
+
import '@aiready/testability';
|
|
22
|
+
import '@aiready/doc-drift';
|
|
23
|
+
import '@aiready/deps';
|
|
24
|
+
import '@aiready/change-amplification';
|
|
25
|
+
|
|
15
26
|
export type { ToolScoringOutput, ScoringResult };
|
|
16
27
|
|
|
17
28
|
export interface UnifiedAnalysisOptions extends ScanOptions {
|
|
@@ -53,8 +64,22 @@ const TOOL_PACKAGE_MAP: Record<string, string> = {
|
|
|
53
64
|
[ToolName.ChangeAmplification]: '@aiready/change-amplification',
|
|
54
65
|
// Aliases handled by registry
|
|
55
66
|
patterns: '@aiready/pattern-detect',
|
|
67
|
+
duplicates: '@aiready/pattern-detect',
|
|
56
68
|
context: '@aiready/context-analyzer',
|
|
69
|
+
fragmentation: '@aiready/context-analyzer',
|
|
57
70
|
consistency: '@aiready/consistency',
|
|
71
|
+
'naming-consistency': '@aiready/consistency',
|
|
72
|
+
'ai-signal': '@aiready/ai-signal-clarity',
|
|
73
|
+
'ai-signal-clarity': '@aiready/ai-signal-clarity',
|
|
74
|
+
grounding: '@aiready/agent-grounding',
|
|
75
|
+
'agent-grounding': '@aiready/agent-grounding',
|
|
76
|
+
testability: '@aiready/testability',
|
|
77
|
+
'testability-index': '@aiready/testability',
|
|
78
|
+
'doc-drift': '@aiready/doc-drift',
|
|
79
|
+
'deps-health': '@aiready/deps',
|
|
80
|
+
'dependency-health': '@aiready/deps',
|
|
81
|
+
'change-amp': '@aiready/change-amplification',
|
|
82
|
+
'change-amplification': '@aiready/change-amplification',
|
|
58
83
|
};
|
|
59
84
|
|
|
60
85
|
/**
|
|
@@ -115,7 +140,19 @@ export async function analyzeUnified(
|
|
|
115
140
|
}
|
|
116
141
|
|
|
117
142
|
try {
|
|
118
|
-
const output = await provider.analyze(
|
|
143
|
+
const output = await provider.analyze({
|
|
144
|
+
...options,
|
|
145
|
+
onProgress: (processed: number, total: number, message: string) => {
|
|
146
|
+
if (options.progressCallback) {
|
|
147
|
+
options.progressCallback({
|
|
148
|
+
tool: provider!.id,
|
|
149
|
+
processed,
|
|
150
|
+
total,
|
|
151
|
+
message,
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
});
|
|
119
156
|
|
|
120
157
|
if (options.progressCallback) {
|
|
121
158
|
options.progressCallback({ tool: provider.id, data: output });
|