@aiready/cli 0.9.38 โ†’ 0.9.40

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/src/index.ts CHANGED
@@ -9,7 +9,7 @@ import type { ConsistencyReport } from '@aiready/consistency';
9
9
  import type { ConsistencyOptions } from '@aiready/consistency';
10
10
 
11
11
  export interface UnifiedAnalysisOptions extends ScanOptions {
12
- tools?: ('patterns' | 'context' | 'consistency' | 'doc-drift' | 'deps-health' | 'hallucination' | 'grounding' | 'testability')[];
12
+ tools?: ('patterns' | 'context' | 'consistency' | 'doc-drift' | 'deps-health' | 'aiSignalClarity' | 'grounding' | 'testability' | 'changeAmplification')[];
13
13
  minSimilarity?: number;
14
14
  minLines?: number;
15
15
  maxCandidatesPerBlock?: number;
@@ -26,9 +26,10 @@ export interface UnifiedAnalysisResult {
26
26
  consistency?: ConsistencyReport;
27
27
  docDrift?: any;
28
28
  deps?: any;
29
- hallucination?: any;
29
+ aiSignalClarity?: any;
30
30
  grounding?: any;
31
31
  testability?: any;
32
+ changeAmplification?: any;
32
33
  summary: {
33
34
  totalIssues: number;
34
35
  toolsRun: string[];
@@ -173,18 +174,18 @@ export async function analyzeUnified(
173
174
  result.summary.totalIssues += report.issues?.length || 0;
174
175
  }
175
176
 
176
- // Run Hallucination Risk analysis
177
- if (tools.includes('hallucination')) {
178
- const { analyzeHallucinationRisk } = await import('@aiready/hallucination-risk');
179
- const report = await analyzeHallucinationRisk({
177
+ // Run AI Signal Clarity analysis
178
+ if (tools.includes('aiSignalClarity')) {
179
+ const { analyzeAiSignalClarity } = await import('@aiready/ai-signal-clarity');
180
+ const report = await analyzeAiSignalClarity({
180
181
  rootDir: options.rootDir,
181
182
  include: options.include,
182
183
  exclude: options.exclude,
183
184
  });
184
185
  if (options.progressCallback) {
185
- options.progressCallback({ tool: 'hallucination', data: report });
186
+ options.progressCallback({ tool: 'aiSignalClarity', data: report });
186
187
  }
187
- result.hallucination = report;
188
+ result.aiSignalClarity = report;
188
189
  result.summary.totalIssues += report.results?.reduce((sum: number, r: any) => sum + (r.issues?.length || 0), 0) || 0;
189
190
  }
190
191
 
@@ -218,6 +219,21 @@ export async function analyzeUnified(
218
219
  result.summary.totalIssues += report.issues?.length || 0;
219
220
  }
220
221
 
222
+ // Run Change Amplification analysis
223
+ if (tools.includes('changeAmplification')) {
224
+ const { analyzeChangeAmplification } = await import('@aiready/change-amplification');
225
+ const report = await analyzeChangeAmplification({
226
+ rootDir: options.rootDir,
227
+ include: options.include,
228
+ exclude: options.exclude,
229
+ });
230
+ if (options.progressCallback) {
231
+ options.progressCallback({ tool: 'changeAmplification', data: report });
232
+ }
233
+ result.changeAmplification = report;
234
+ result.summary.totalIssues += report.summary?.totalIssues || 0;
235
+ }
236
+
221
237
  result.summary.executionTime = Date.now() - startTime;
222
238
  return result;
223
239
  }
@@ -250,8 +266,8 @@ export function generateUnifiedSummary(result: UnifiedAnalysisResult): string {
250
266
  output += `๐Ÿ“ฆ Dependency Health: ${result.deps.issues?.length || 0} issues\n`;
251
267
  }
252
268
 
253
- if (result.hallucination) {
254
- output += `๐Ÿง  Hallucination Risk: ${result.hallucination.summary?.totalSignals || 0} signals\n`;
269
+ if (result.aiSignalClarity) {
270
+ output += `๐Ÿง  AI Signal Clarity: ${result.aiSignalClarity.summary?.totalSignals || 0} signals\n`;
255
271
  }
256
272
 
257
273
  if (result.grounding) {
@@ -262,5 +278,9 @@ export function generateUnifiedSummary(result: UnifiedAnalysisResult): string {
262
278
  output += `๐Ÿงช Testability Index: ${result.testability.issues?.length || 0} issues\n`;
263
279
  }
264
280
 
281
+ if (result.changeAmplification) {
282
+ output += `๐Ÿ’ฅ Change Amplification: ${result.changeAmplification.summary?.totalIssues || 0} cascading risks\n`;
283
+ }
284
+
265
285
  return output;
266
286
  }