@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/.turbo/turbo-build.log +25 -26
- package/.turbo/turbo-lint.log +4 -5
- package/.turbo/turbo-test.log +87 -91
- package/dist/chunk-7ZEJGWLN.mjs +1363 -0
- package/dist/chunk-KGVMS4R5.mjs +1750 -0
- package/dist/chunk-VLV6MXPL.mjs +1750 -0
- package/dist/cli.js +0 -4
- package/dist/cli.mjs +1 -1
- package/dist/index.js +0 -4
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
- package/src/__tests__/issue-analyzer.test.ts +1 -1
- package/src/__tests__/provider.test.ts +2 -2
- package/src/__tests__/report/console-report.test.ts +1 -1
- package/src/cli-action.ts +1 -1
- package/src/index.ts +1 -1
- package/src/issue-analyzer.ts +2 -4
- package/src/provider.ts +1 -1
- package/src/report/console-report.ts +1 -1
- package/src/report/html-report.ts +1 -1
- package/src/analyzer.ts +0 -1
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
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aiready/context-analyzer",
|
|
3
|
-
"version": "0.21.
|
|
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.
|
|
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).
|
|
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('../
|
|
7
|
-
const actual = await vi.importActual('../
|
|
6
|
+
vi.mock('../orchestrator', async () => {
|
|
7
|
+
const actual = await vi.importActual('../orchestrator');
|
|
8
8
|
return {
|
|
9
9
|
...actual,
|
|
10
10
|
analyzeContext: vi.fn(),
|
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 './
|
|
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 './
|
|
7
|
+
export * from './orchestrator';
|
|
8
8
|
export * from './graph-builder';
|
|
9
9
|
export * from './metrics';
|
|
10
10
|
export * from './classifier';
|
package/src/issue-analyzer.ts
CHANGED
|
@@ -118,10 +118,8 @@ export function analyzeIssues(params: {
|
|
|
118
118
|
potentialSavings += contextBudget * 0.3;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
|
|
122
|
-
|
|
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 './
|
|
12
|
+
import { analyzeContext } from './orchestrator';
|
|
13
13
|
import { generateSummary } from './summary';
|
|
14
14
|
import { calculateContextScore } from './scoring';
|
|
15
15
|
import { ContextAnalyzerOptions, ContextAnalysisResult } from './types';
|
package/src/analyzer.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './orchestrator';
|