@aiready/context-analyzer 0.22.12 → 0.22.14

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.
@@ -1,33 +1,34 @@
1
-
2
- > @aiready/context-analyzer@0.22.9 build /Users/pengcao/projects/aiready/packages/context-analyzer
3
- > tsup src/index.ts src/cli.ts --format cjs,esm --dts
4
-
5
- CLI Building entry: src/cli.ts, src/index.ts
6
- CLI Using tsconfig: tsconfig.json
7
- CLI tsup v8.5.1
8
- CLI Target: es2020
9
- CJS Build start
10
- ESM Build start
11
- CJS dist/index.js 70.37 KB
12
- CJS dist/cli.js 71.51 KB
13
- CJS ⚡️ Build success in 84ms
14
- ESM dist/python-context-BWDC4E5Z.mjs 4.48 KB
15
- ESM dist/cli.mjs 1.81 KB
16
- ESM dist/orchestrator-QNE2E4TE.mjs 190.00 B
17
- ESM dist/chunk-ISWPFG2C.mjs 39.61 KB
18
- ESM dist/index.mjs 9.02 KB
19
- ESM dist/chunk-JSM7Q5CY.mjs 4.98 KB
20
- ESM dist/interactive-setup-JGFBFI3M.mjs 2.44 KB
21
- ESM dist/summary-TZFB6ZFM.mjs 119.00 B
22
- ESM dist/chunk-HD4Y3GYL.mjs 4.48 KB
23
- ESM dist/html-report-ULELSIYG.mjs 2.15 KB
24
- ESM dist/console-report-AP4JYNQY.mjs 3.54 KB
25
- ESM dist/cli-action-W7TESWAV.mjs 3.00 KB
26
- ESM dist/chunk-64U3PNO3.mjs 2.65 KB
27
- ESM ⚡️ Build success in 86ms
28
- DTS Build start
29
- DTS ⚡️ Build success in 3366ms
30
- DTS dist/cli.d.ts 20.00 B
31
- DTS dist/index.d.ts 14.57 KB
32
- DTS dist/cli.d.mts 20.00 B
33
- DTS dist/index.d.mts 14.57 KB
1
+
2
+ 
3
+ > @aiready/context-analyzer@0.22.13 build /Users/pengcao/projects/aiready/packages/context-analyzer
4
+ > tsup src/index.ts src/cli.ts --format cjs,esm --dts
5
+
6
+ CLI Building entry: src/cli.ts, src/index.ts
7
+ CLI Using tsconfig: tsconfig.json
8
+ CLI tsup v8.5.1
9
+ CLI Target: es2020
10
+ CJS Build start
11
+ ESM Build start
12
+ CJS dist/cli.js 71.51 KB
13
+ CJS dist/index.js 70.37 KB
14
+ CJS ⚡️ Build success in 202ms
15
+ ESM dist/chunk-ISWPFG2C.mjs 39.61 KB
16
+ ESM dist/index.mjs 9.02 KB
17
+ ESM dist/chunk-HD4Y3GYL.mjs 4.48 KB
18
+ ESM dist/chunk-64U3PNO3.mjs 2.65 KB
19
+ ESM dist/interactive-setup-JGFBFI3M.mjs 2.44 KB
20
+ ESM dist/python-context-BWDC4E5Z.mjs 4.48 KB
21
+ ESM dist/orchestrator-QNE2E4TE.mjs 190.00 B
22
+ ESM dist/console-report-AP4JYNQY.mjs 3.54 KB
23
+ ESM dist/summary-TZFB6ZFM.mjs 119.00 B
24
+ ESM dist/cli.mjs 1.81 KB
25
+ ESM dist/cli-action-W7TESWAV.mjs 3.00 KB
26
+ ESM dist/chunk-JSM7Q5CY.mjs 4.98 KB
27
+ ESM dist/html-report-ULELSIYG.mjs 2.15 KB
28
+ ESM ⚡️ Build success in 203ms
29
+ DTS Build start
30
+ DTS ⚡️ Build success in 1731ms
31
+ DTS dist/cli.d.ts 20.00 B
32
+ DTS dist/index.d.ts 14.57 KB
33
+ DTS dist/cli.d.mts 20.00 B
34
+ DTS dist/index.d.mts 14.57 KB
@@ -1,6 +1,6 @@
1
1
 
2
2
  
3
- > @aiready/context-analyzer@0.22.9 format-check /Users/pengcao/projects/aiready/packages/context-analyzer
3
+ > @aiready/context-analyzer@0.22.13 format-check /Users/pengcao/projects/aiready/packages/context-analyzer
4
4
  > prettier --check . --ignore-path ../../.prettierignore
5
5
 
6
6
  Checking formatting...
@@ -1,13 +1,5 @@
1
1
 
2
2
  
3
- > @aiready/context-analyzer@0.22.9 lint /Users/pengcao/projects/aiready/packages/context-analyzer
3
+ > @aiready/context-analyzer@0.22.13 lint /Users/pengcao/projects/aiready/packages/context-analyzer
4
4
  > eslint src
5
5
 
6
- 
7
- /Users/pengcao/projects/aiready/packages/context-analyzer/src/__tests__/file-classification.test.ts
8
- 4:3 warning 'adjustFragmentationForClassification' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars
9
- 5:3 warning 'adjustCohesionForClassification' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars
10
- 6:3 warning 'getClassificationRecommendations' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars
11
-
12
- ✖ 3 problems (0 errors, 3 warnings)
13
- 
@@ -1,13 +1,14 @@
1
1
 
2
2
  
3
- > @aiready/context-analyzer@0.22.8 test /Users/pengcao/projects/aiready/packages/context-analyzer
3
+ > @aiready/context-analyzer@0.22.13 test /Users/pengcao/projects/aiready/packages/context-analyzer
4
4
  > vitest run --exclude "**/dist/**"
5
5
 
6
6
  [?25l
7
7
   RUN  v4.0.18 /Users/pengcao/projects/aiready/packages/context-analyzer
8
8
 
9
- ✓ src/__tests__/report/console-report.test.ts (8 tests) 42ms
10
- ✓ src/__tests__/report/html-report.test.ts (11 tests) 67ms
9
+ ✓ src/__tests__/report/console-report.test.ts (8 tests) 26ms
10
+ ✓ src/__tests__/consolidation.test.ts (6 tests) 2ms
11
+ ✓ src/__tests__/report/html-report.test.ts (11 tests) 22ms
11
12
  stderr | src/__tests__/python-context.test.ts > python-context > analyzePythonContext > should filter for Python files only
12
13
  Failed to analyze src/file2.py: TypeError: Cannot read properties of undefined (reading 'split')
13
14
  at Module.analyzePythonContext (/Users/pengcao/projects/aiready/packages/context-analyzer/src/analyzers/python-context.ts:91:32)
@@ -22,30 +23,29 @@
22
23
  at /Users/pengcao/projects/aiready/packages/context-analyzer/src/__tests__/python-context.test.ts:84:23
23
24
  at file:///Users/pengcao/projects/aiready/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:915:20
24
25
 
25
- ✓ src/__tests__/python-context.test.ts (4 tests) 13ms
26
- ✓ src/__tests__/domain-inference.test.ts (26 tests) 6ms
26
+ ✓ src/__tests__/python-context.test.ts (4 tests) 34ms
27
+ ✓ src/__tests__/scoring.test.ts (15 tests) 10ms
28
+ ✓ src/__tests__/issue-analyzer.test.ts (17 tests) 35ms
29
+ ✓ src/__tests__/domain-inference.test.ts (26 tests) 7ms
30
+ ✓ src/__tests__/defaults.test.ts (7 tests) 3ms
27
31
  ✓ src/__tests__/cluster-detector.test.ts (3 tests) 3ms
28
- ✓ src/__tests__/issue-analyzer.test.ts (17 tests) 99ms
29
- ✓ src/__tests__/orchestrator.test.ts (8 tests) 70ms
30
- ✓ src/__tests__/auto-detection.test.ts (8 tests) 25ms
31
- ✓ src/__tests__/contract.test.ts (1 test) 19ms
32
- ✓ src/__tests__/consolidation.test.ts (6 tests) 2ms
33
- ✓ src/__tests__/fragmentation-coupling.test.ts (2 tests) 64ms
34
- ✓ src/__tests__/structural-cohesion.test.ts (4 tests) 3ms
35
- ✓ src/__tests__/analyzer.test.ts (14 tests) 47ms
36
- ✓ src/__tests__/file-classification.test.ts (63 tests) 6ms
37
- ✓ src/__tests__/remediation.test.ts (6 tests) 3ms
38
- ✓ src/__tests__/provider.test.ts (2 tests) 4ms
32
+ ✓ src/__tests__/contract.test.ts (1 test) 18ms
33
+ ✓ src/__tests__/analyzer.test.ts (14 tests) 55ms
34
+ ✓ src/__tests__/orchestrator.test.ts (8 tests) 110ms
35
+ ✓ src/__tests__/fragmentation-coupling.test.ts (2 tests) 40ms
36
+ ✓ src/__tests__/auto-detection.test.ts (8 tests) 35ms
37
+ ✓ src/__tests__/fragmentation-log.test.ts (3 tests) 3ms
39
38
  ✓ src/__tests__/fragmentation-advanced.test.ts (3 tests) 2ms
40
- ✓ src/__tests__/scoring.test.ts (15 tests) 6ms
41
- ✓ src/__tests__/defaults.test.ts (7 tests) 5ms
39
+ ✓ src/__tests__/remediation.test.ts (6 tests) 3ms
40
+ ✓ src/__tests__/provider.test.ts (2 tests) 2ms
42
41
  ✓ src/__tests__/enhanced-cohesion.test.ts (6 tests) 2ms
43
- ✓ src/__tests__/fragmentation-log.test.ts (3 tests) 3ms
42
+ ✓ src/__tests__/structural-cohesion.test.ts (4 tests) 3ms
44
43
  ✓ src/__tests__/boilerplate-barrel.test.ts (7 tests) 4ms
44
+ ✓ src/__tests__/file-classification.test.ts (1 test) 2ms
45
45
 
46
46
   Test Files  22 passed (22)
47
-  Tests  224 passed (224)
48
-  Start at  00:14:06
49
-  Duration  4.74s (transform 8.07s, setup 0ms, import 29.32s, tests 494ms, environment 2ms)
47
+  Tests  162 passed (162)
48
+  Start at  21:15:39
49
+  Duration  2.35s (transform 2.91s, setup 0ms, import 16.24s, tests 422ms, environment 2ms)
50
50
 
51
51
  [?25h
@@ -1,5 +1,5 @@
1
1
 
2
2
  
3
- > @aiready/context-analyzer@0.22.9 type-check /Users/pengcao/projects/aiready/packages/context-analyzer
3
+ > @aiready/context-analyzer@0.22.13 type-check /Users/pengcao/projects/aiready/packages/context-analyzer
4
4
  > tsc --noEmit
5
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiready/context-analyzer",
3
- "version": "0.22.12",
3
+ "version": "0.22.14",
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.24.13"
52
+ "@aiready/core": "0.24.15"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@types/node": "^24.0.0",
@@ -1,10 +1,5 @@
1
1
  import { describe, it, expect } from 'vitest';
2
- import {
3
- classifyFile,
4
- adjustFragmentationForClassification,
5
- adjustCohesionForClassification,
6
- getClassificationRecommendations,
7
- } from '../index';
2
+ import { classifyFile } from '../index';
8
3
  import { createNode } from './file-classification.fixtures';
9
4
 
10
5
  describe('file classification core', () => {