@aiready/context-analyzer 0.21.24 → 0.21.25

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/dist/cli.js CHANGED
@@ -686,10 +686,6 @@ function analyzeIssues(params) {
686
686
  recommendations.push("Consolidate with related files in same domain");
687
687
  potentialSavings += contextBudget * 0.3;
688
688
  }
689
- if (issues.length === 0) {
690
- issues.push("No significant issues detected");
691
- recommendations.push("File is well-structured for AI context usage");
692
- }
693
689
  if (isBuildArtifact(file)) {
694
690
  issues.push("Detected build artifact (bundled/output file)");
695
691
  recommendations.push("Exclude build outputs from analysis");
package/dist/cli.mjs CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  generateHTMLReport,
6
6
  generateSummary,
7
7
  runInteractiveSetup
8
- } from "./chunk-Z5WY6A4P.mjs";
8
+ } from "./chunk-VLV6MXPL.mjs";
9
9
  import "./chunk-64U3PNO3.mjs";
10
10
 
11
11
  // src/cli.ts
package/dist/index.js CHANGED
@@ -790,10 +790,6 @@ function analyzeIssues(params) {
790
790
  recommendations.push("Consolidate with related files in same domain");
791
791
  potentialSavings += contextBudget * 0.3;
792
792
  }
793
- if (issues.length === 0) {
794
- issues.push("No significant issues detected");
795
- recommendations.push("File is well-structured for AI context usage");
796
- }
797
793
  if (isBuildArtifact(file)) {
798
794
  issues.push("Detected build artifact (bundled/output file)");
799
795
  recommendations.push("Exclude build outputs from analysis");
package/dist/index.mjs CHANGED
@@ -52,7 +52,7 @@ import {
52
52
  isTypeDefinition,
53
53
  isUtilityModule,
54
54
  runInteractiveSetup
55
- } from "./chunk-Z5WY6A4P.mjs";
55
+ } from "./chunk-VLV6MXPL.mjs";
56
56
  import "./chunk-64U3PNO3.mjs";
57
57
 
58
58
  // src/index.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiready/context-analyzer",
3
- "version": "0.21.24",
3
+ "version": "0.21.25",
4
4
  "description": "AI context window cost analysis - detect fragmented code, deep import chains, and expensive context budgets",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -49,7 +49,7 @@
49
49
  "commander": "^14.0.0",
50
50
  "chalk": "^5.3.0",
51
51
  "prompts": "^2.4.2",
52
- "@aiready/core": "0.23.21"
52
+ "@aiready/core": "0.23.22"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@types/node": "^24.0.0",
@@ -20,7 +20,7 @@ describe('analyzeIssues', () => {
20
20
  const result = analyzeIssues(baseParams);
21
21
 
22
22
  expect(result.severity).toBe(Severity.Info);
23
- expect(result.issues).toContain('No significant issues detected');
23
+ expect(result.issues).toHaveLength(0);
24
24
  expect(result.potentialSavings).toBe(0);
25
25
  });
26
26
 
@@ -3,8 +3,8 @@ import { ContextAnalyzerProvider } from '../provider';
3
3
  import * as analyzer from '../index';
4
4
  import * as summary from '../summary';
5
5
 
6
- vi.mock('../analyzer', async () => {
7
- const actual = await vi.importActual('../analyzer');
6
+ vi.mock('../orchestrator', async () => {
7
+ const actual = await vi.importActual('../orchestrator');
8
8
  return {
9
9
  ...actual,
10
10
  analyzeContext: vi.fn(),
@@ -17,7 +17,7 @@ vi.mock('chalk', () => ({
17
17
  }));
18
18
 
19
19
  // Mock the analyzer to provide the results type
20
- vi.mock('../../analyzer', () => ({
20
+ vi.mock('../../orchestrator', () => ({
21
21
  analyzeContext: vi.fn(),
22
22
  }));
23
23
 
package/src/cli-action.ts CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  getElapsedTime,
6
6
  resolveOutputPath,
7
7
  } from '@aiready/core';
8
- import { analyzeContext } from './analyzer';
8
+ import { analyzeContext } from './orchestrator';
9
9
  import { generateSummary } from './summary';
10
10
  import { displayConsoleReport } from './report/console-report';
11
11
  import { generateHTMLReport } from './report/html-report';
package/src/index.ts CHANGED
@@ -4,7 +4,7 @@ import { ContextAnalyzerProvider } from './provider';
4
4
  // Register with global registry
5
5
  ToolRegistry.register(ContextAnalyzerProvider);
6
6
 
7
- export * from './analyzer';
7
+ export * from './orchestrator';
8
8
  export * from './graph-builder';
9
9
  export * from './metrics';
10
10
  export * from './classifier';
@@ -118,10 +118,8 @@ export function analyzeIssues(params: {
118
118
  potentialSavings += contextBudget * 0.3;
119
119
  }
120
120
 
121
- if (issues.length === 0) {
122
- issues.push('No significant issues detected');
123
- recommendations.push('File is well-structured for AI context usage');
124
- }
121
+ // Don't create issues when there are no real problems
122
+ // This prevents false positives that artificially lower scores
125
123
 
126
124
  // Detect build artifacts
127
125
  if (isBuildArtifact(file)) {
package/src/provider.ts CHANGED
@@ -9,7 +9,7 @@ import {
9
9
  IssueType,
10
10
  SpokeOutputSchema,
11
11
  } from '@aiready/core';
12
- import { analyzeContext } from './analyzer';
12
+ import { analyzeContext } from './orchestrator';
13
13
  import { generateSummary } from './summary';
14
14
  import { calculateContextScore } from './scoring';
15
15
  import { ContextAnalyzerOptions, ContextAnalysisResult } from './types';
@@ -1,5 +1,5 @@
1
1
  import chalk from 'chalk';
2
- import { analyzeContext } from '../analyzer';
2
+ import { analyzeContext } from '../orchestrator';
3
3
  import { generateSummary } from '../summary';
4
4
 
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { analyzeContext } from '../analyzer';
1
+ import { analyzeContext } from '../orchestrator';
2
2
  import { generateSummary } from '../summary';
3
3
  import {
4
4
  generateReportHead,
package/src/analyzer.ts DELETED
@@ -1 +0,0 @@
1
- export * from './orchestrator';