@aiready/context-analyzer 0.21.25 → 0.21.26

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,5 +1,5 @@
1
1
 
2
- > @aiready/context-analyzer@0.21.25 build /Users/pengcao/projects/aiready/packages/context-analyzer
2
+ > @aiready/context-analyzer@0.21.26 build /Users/pengcao/projects/aiready/packages/context-analyzer
3
3
  > tsup src/index.ts src/cli.ts --format cjs,esm --dts
4
4
 
5
5
  CLI Building entry: src/cli.ts, src/index.ts
@@ -8,17 +8,17 @@ CLI tsup v8.5.1
8
8
  CLI Target: es2020
9
9
  CJS Build start
10
10
  ESM Build start
11
+ CJS dist/index.js 81.13 KB
12
+ CJS dist/cli.js 67.22 KB
13
+ CJS ⚡️ Build success in 75ms
11
14
  ESM dist/cli.mjs 4.38 KB
12
- ESM dist/chunk-VLV6MXPL.mjs 57.97 KB
13
- ESM dist/python-context-BWDC4E5Z.mjs 4.48 KB
14
15
  ESM dist/index.mjs 12.40 KB
15
16
  ESM dist/chunk-64U3PNO3.mjs 2.65 KB
16
- ESM ⚡️ Build success in 613ms
17
- CJS dist/cli.js 67.22 KB
18
- CJS dist/index.js 81.13 KB
19
- CJS ⚡️ Build success in 613ms
17
+ ESM dist/chunk-VLV6MXPL.mjs 57.97 KB
18
+ ESM dist/python-context-BWDC4E5Z.mjs 4.48 KB
19
+ ESM ⚡️ Build success in 79ms
20
20
  DTS Build start
21
- DTS ⚡️ Build success in 7514ms
21
+ DTS ⚡️ Build success in 2862ms
22
22
  DTS dist/cli.d.ts 20.00 B
23
23
  DTS dist/index.d.ts 25.71 KB
24
24
  DTS dist/cli.d.mts 20.00 B
@@ -1,14 +1,13 @@
1
1
 
2
- > @aiready/context-analyzer@0.21.24 test /Users/pengcao/projects/aiready/packages/context-analyzer
2
+ > @aiready/context-analyzer@0.21.25 test /Users/pengcao/projects/aiready/packages/context-analyzer
3
3
  > vitest run --exclude "**/dist/**"
4
4
 
5
5
 
6
6
   RUN  v4.0.18 /Users/pengcao/projects/aiready/packages/context-analyzer
7
7
 
8
- ✓ src/__tests__/report/html-report.test.ts (11 tests) 30ms
9
- ✓ src/__tests__/report/console-report.test.ts (8 tests) 47ms
10
- ✓ src/__tests__/domain-inference.test.ts (26 tests) 4ms
11
- ✓ src/__tests__/issue-analyzer.test.ts (17 tests) 15ms
8
+ ✓ src/__tests__/remediation.test.ts (6 tests) 2ms
9
+ ✓ src/__tests__/report/console-report.test.ts (8 tests) 142ms
10
+ ✓ src/__tests__/consolidation.test.ts (6 tests) 4ms
12
11
  stderr | src/__tests__/python-context.test.ts > python-context > analyzePythonContext > should filter for Python files only
13
12
  Failed to analyze src/file2.py: Error: [vitest] No "default" export is defined on the "fs" mock. Did you forget to return it from "vi.mock"?
14
13
  If you need to partially mock a module, you can use "importOriginal" helper inside:
@@ -47,9 +46,9 @@ If you need to partially mock a module, you can use "importOriginal" helper insi
47
46
  '})'
48
47
  }
49
48
 
50
- ✓ src/__tests__/python-context.test.ts (4 tests) 15ms
51
- ✓ src/__tests__/scoring.test.ts (15 tests) 4ms
52
- ✓ src/__tests__/defaults.test.ts (7 tests) 3ms
49
+ ✓ src/__tests__/python-context.test.ts (4 tests) 21ms
50
+ ✓ src/__tests__/report/html-report.test.ts (11 tests) 125ms
51
+ ✓ src/__tests__/domain-inference.test.ts (26 tests) 4ms
53
52
  stderr | src/__tests__/orchestrator.test.ts > analyzeContext > should filter Python files when not present
54
53
  Failed to analyze src/file2.py: Error: ENOENT: no such file or directory, open 'src/file2.py'
55
54
   at open (node:internal/fs/promises:636:25)
@@ -64,24 +63,25 @@ If you need to partially mock a module, you can use "importOriginal" helper insi
64
63
  path: 'src/file2.py'
65
64
  }
66
65
 
67
- ✓ src/__tests__/orchestrator.test.ts (8 tests) 67ms
68
- ✓ src/__tests__/fragmentation-coupling.test.ts (2 tests) 15ms
69
- ✓ src/__tests__/contract.test.ts (1 test) 24ms
70
- ✓ src/__tests__/analyzer.test.ts (14 tests) 25ms
71
- ✓ src/__tests__/auto-detection.test.ts (8 tests) 17ms
72
- ✓ src/__tests__/remediation.test.ts (6 tests) 24ms
73
- ✓ src/__tests__/cluster-detector.test.ts (3 tests) 3ms
74
- ✓ src/__tests__/consolidation.test.ts (6 tests) 9ms
66
+ ✓ src/__tests__/orchestrator.test.ts (8 tests) 92ms
67
+ ✓ src/__tests__/auto-detection.test.ts (8 tests) 29ms
68
+ ✓ src/__tests__/analyzer.test.ts (14 tests) 32ms
69
+ ✓ src/__tests__/contract.test.ts (1 test) 30ms
70
+ ✓ src/__tests__/issue-analyzer.test.ts (17 tests) 39ms
71
+ ✓ src/__tests__/fragmentation-coupling.test.ts (2 tests) 244ms
72
+ ✓ src/__tests__/scoring.test.ts (15 tests) 6ms
73
+ ✓ src/__tests__/boilerplate-barrel.test.ts (7 tests) 3ms
74
+ ✓ src/__tests__/fragmentation-advanced.test.ts (3 tests) 1ms
75
75
  ✓ src/__tests__/file-classification.test.ts (63 tests) 6ms
76
- ✓ src/__tests__/provider.test.ts (2 tests) 3ms
77
- ✓ src/__tests__/boilerplate-barrel.test.ts (7 tests) 6ms
78
- ✓ src/__tests__/fragmentation-log.test.ts (3 tests) 2ms
79
- ✓ src/__tests__/fragmentation-advanced.test.ts (3 tests) 4ms
76
+ ✓ src/__tests__/cluster-detector.test.ts (3 tests) 3ms
77
+ ✓ src/__tests__/provider.test.ts (2 tests) 8ms
80
78
  ✓ src/__tests__/enhanced-cohesion.test.ts (6 tests) 3ms
81
- ✓ src/__tests__/structural-cohesion.test.ts (4 tests) 1ms
79
+ ✓ src/__tests__/defaults.test.ts (7 tests) 10ms
80
+ ✓ src/__tests__/fragmentation-log.test.ts (3 tests) 2ms
81
+ ✓ src/__tests__/structural-cohesion.test.ts (4 tests) 3ms
82
82
 
83
83
   Test Files  22 passed (22)
84
84
   Tests  224 passed (224)
85
-  Start at  19:03:34
86
-  Duration  3.46s (transform 6.68s, setup 0ms, import 21.66s, tests 329ms, environment 2ms)
85
+  Start at  19:39:17
86
+  Duration  4.67s (transform 5.84s, setup 0ms, import 28.95s, tests 810ms, environment 2ms)
87
87
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiready/context-analyzer",
3
- "version": "0.21.25",
3
+ "version": "0.21.26",
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.22"
52
+ "@aiready/core": "0.23.23"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@types/node": "^24.0.0",