@aiready/context-analyzer 0.21.23 → 0.21.24

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,6 +1,6 @@
1
1
 
2
2
  
3
- > @aiready/context-analyzer@0.21.23 build /Users/pengcao/projects/aiready/packages/context-analyzer
3
+ > @aiready/context-analyzer@0.21.24 build /Users/pengcao/projects/aiready/packages/context-analyzer
4
4
  > tsup src/index.ts src/cli.ts --format cjs,esm --dts
5
5
 
6
6
  CLI Building entry: src/cli.ts, src/index.ts
@@ -10,17 +10,17 @@
10
10
  CJS Build start
11
11
  ESM Build start
12
12
  ESM dist/cli.mjs 4.38 KB
13
- ESM dist/chunk-64U3PNO3.mjs 2.65 KB
14
- ESM dist/python-context-3GZKN3LR.mjs 4.47 KB
13
+ ESM dist/python-context-BWDC4E5Z.mjs 4.48 KB
15
14
  ESM dist/index.mjs 12.40 KB
16
- ESM dist/chunk-J3MUOWHC.mjs 58.58 KB
17
- ESM ⚡️ Build success in 197ms
18
- CJS dist/cli.js 67.80 KB
19
- CJS dist/index.js 81.71 KB
20
- CJS ⚡️ Build success in 199ms
15
+ ESM dist/chunk-Z5WY6A4P.mjs 58.13 KB
16
+ ESM dist/chunk-64U3PNO3.mjs 2.65 KB
17
+ ESM ⚡️ Build success in 748ms
18
+ CJS dist/index.js 81.28 KB
19
+ CJS dist/cli.js 67.37 KB
20
+ CJS ⚡️ Build success in 755ms
21
21
  DTS Build start
22
- DTS ⚡️ Build success in 6374ms
22
+ DTS ⚡️ Build success in 13814ms
23
23
  DTS dist/cli.d.ts 20.00 B
24
- DTS dist/index.d.ts 25.70 KB
24
+ DTS dist/index.d.ts 25.71 KB
25
25
  DTS dist/cli.d.mts 20.00 B
26
- DTS dist/index.d.mts 25.70 KB
26
+ DTS dist/index.d.mts 25.71 KB
@@ -1,40 +1,14 @@
1
1
 
2
2
  
3
- > @aiready/context-analyzer@0.21.22 test /Users/pengcao/projects/aiready/packages/context-analyzer
4
- > vitest run
3
+ > @aiready/context-analyzer@0.21.23 test /Users/pengcao/projects/aiready/packages/context-analyzer
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) 79ms
10
- ✓ src/__tests__/report/html-report.test.ts (11 tests) 26ms
11
- ✓ src/__tests__/issue-analyzer.test.ts (17 tests) 367ms
12
- ✓ should detect high context budget as critical when 50% over limit  360ms
13
- Sourcemap for "/Users/pengcao/projects/aiready/packages/context-analyzer/dist/semantic-analysis.js" points to missing source files
14
- ✓ dist/__tests__/analyzer.test.js (14 tests) 67ms
15
- ✓ dist/__tests__/fragmentation-coupling.test.js (2 tests) 174ms
16
- stderr | src/__tests__/orchestrator.test.ts > analyzeContext > should filter Python files when not present
17
- Failed to analyze src/file2.py: Error: ENOENT: no such file or directory, open 'src/file2.py'
18
-  at open (node:internal/fs/promises:636:25)
19
-  at Object.readFile (node:internal/fs/promises:1273:14)
20
- at analyzePythonContext (/Users/pengcao/projects/aiready/packages/context-analyzer/src/analyzers/python-context.ts:75:20)
21
- at Module.analyzeContext (/Users/pengcao/projects/aiready/packages/context-analyzer/src/orchestrator.ts:79:27)
22
- at /Users/pengcao/projects/aiready/packages/context-analyzer/src/__tests__/orchestrator.test.ts:68:21
23
- at file:///Users/pengcao/projects/aiready/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:915:20 {
24
- errno: -2,
25
- code: 'ENOENT',
26
- syscall: 'open',
27
- path: 'src/file2.py'
28
- }
29
-
30
- ✓ src/__tests__/orchestrator.test.ts (8 tests) 148ms
31
- ✓ dist/__tests__/auto-detection.test.js (8 tests) 151ms
32
- ✓ src/__tests__/contract.test.ts (1 test) 23ms
33
- ✓ dist/__tests__/contract.test.js (1 test) 186ms
34
- ✓ src/__tests__/auto-detection.test.ts (8 tests) 153ms
35
- ✓ src/__tests__/analyzer.test.ts (14 tests) 204ms
36
- ✓ src/__tests__/fragmentation-coupling.test.ts (2 tests) 328ms
37
- ✓ src/__tests__/defaults.test.ts (7 tests) 5ms
9
+ ✓ src/__tests__/report/html-report.test.ts (11 tests) 310ms
10
+ ✓ should generate HTML report with all sections  302ms
11
+ ✓ src/__tests__/report/console-report.test.ts (8 tests) 261ms
38
12
  stderr | src/__tests__/python-context.test.ts > python-context > analyzePythonContext > should filter for Python files only
39
13
  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"?
40
14
  If you need to partially mock a module, you can use "importOriginal" helper inside:
@@ -43,7 +17,7 @@ If you need to partially mock a module, you can use "importOriginal" helper insi
43
17
  at Object.get (file:///Users/pengcao/projects/aiready/node_modules/.pnpm/vitest@4.0.18_@opentelemetry+api@1.9.0_@types+node@24.12.0_jiti@2.6.1_jsdom@29.0.1_ligh_31f3b106720f26894d735ccbd020532a/node_modules/vitest/dist/chunks/startModuleRunner.DEj0jb3e.js:384:16)
44
18
  at Module.analyzePythonContext (/Users/pengcao/projects/aiready/packages/context-analyzer/src/analyzers/python-context.ts:75:26)
45
19
   at processTicksAndRejections (node:internal/process/task_queues:104:5)
46
- at /Users/pengcao/projects/aiready/packages/context-analyzer/src/__tests__/python-context.test.ts:55:23
20
+ at /Users/pengcao/projects/aiready/packages/context-analyzer/src/__tests__/python-context.test.ts:57:23
47
21
  at file:///Users/pengcao/projects/aiready/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:915:20 {
48
22
  codeFrame: 'vi.mock(import("fs"), async (importOriginal) => {\n' +
49
23
  ' const actual = await importOriginal()\n' +
@@ -62,7 +36,7 @@ If you need to partially mock a module, you can use "importOriginal" helper insi
62
36
  at Object.get (file:///Users/pengcao/projects/aiready/node_modules/.pnpm/vitest@4.0.18_@opentelemetry+api@1.9.0_@types+node@24.12.0_jiti@2.6.1_jsdom@29.0.1_ligh_31f3b106720f26894d735ccbd020532a/node_modules/vitest/dist/chunks/startModuleRunner.DEj0jb3e.js:384:16)
63
37
  at Module.analyzePythonContext (/Users/pengcao/projects/aiready/packages/context-analyzer/src/analyzers/python-context.ts:75:26)
64
38
   at processTicksAndRejections (node:internal/process/task_queues:104:5)
65
- at /Users/pengcao/projects/aiready/packages/context-analyzer/src/__tests__/python-context.test.ts:76:23
39
+ at /Users/pengcao/projects/aiready/packages/context-analyzer/src/__tests__/python-context.test.ts:78:23
66
40
  at file:///Users/pengcao/projects/aiready/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:915:20 {
67
41
  codeFrame: 'vi.mock(import("fs"), async (importOriginal) => {\n' +
68
42
  ' const actual = await importOriginal()\n' +
@@ -73,32 +47,45 @@ If you need to partially mock a module, you can use "importOriginal" helper insi
73
47
  '})'
74
48
  }
75
49
 
76
- ✓ src/__tests__/python-context.test.ts (4 tests) 11ms
77
- ✓ src/__tests__/domain-inference.test.ts (26 tests) 8ms
78
- ✓ src/__tests__/consolidation.test.ts (6 tests) 19ms
79
- ✓ src/__tests__/scoring.test.ts (15 tests) 9ms
80
- ✓ dist/__tests__/file-classification.test.js (63 tests) 7ms
81
- ✓ src/__tests__/file-classification.test.ts (63 tests) 10ms
82
- ✓ src/__tests__/structural-cohesion.test.ts (4 tests) 3ms
83
- ✓ src/__tests__/provider.test.ts (2 tests) 9ms
84
- ✓ src/__tests__/boilerplate-barrel.test.ts (7 tests) 4ms
85
- ✓ dist/__tests__/cluster-detector.test.js (3 tests) 7ms
86
- ✓ dist/__tests__/scoring.test.js (15 tests) 9ms
87
- ✓ src/__tests__/remediation.test.ts (6 tests) 3ms
88
- ✓ src/__tests__/enhanced-cohesion.test.ts (6 tests) 4ms
89
- ✓ dist/__tests__/remediation.test.js (6 tests) 9ms
90
- ✓ dist/__tests__/fragmentation-advanced.test.js (3 tests) 4ms
91
- ✓ dist/__tests__/provider.test.js (2 tests) 7ms
92
- ✓ src/__tests__/cluster-detector.test.ts (3 tests) 5ms
93
- ✓ dist/__tests__/enhanced-cohesion.test.js (6 tests) 3ms
94
- ✓ src/__tests__/fragmentation-advanced.test.ts (3 tests) 3ms
95
- ✓ dist/__tests__/structural-cohesion.test.js (4 tests) 3ms
50
+ ✓ src/__tests__/python-context.test.ts (4 tests) 136ms
51
+ ✓ src/__tests__/domain-inference.test.ts (26 tests) 15ms
52
+ ✓ src/__tests__/issue-analyzer.test.ts (17 tests) 90ms
53
+ ✓ src/__tests__/cluster-detector.test.ts (3 tests) 48ms
54
+ ✓ src/__tests__/file-classification.test.ts (63 tests) 9ms
55
+ ✓ src/__tests__/auto-detection.test.ts (8 tests) 59ms
56
+ ✓ src/__tests__/fragmentation-coupling.test.ts (2 tests) 79ms
57
+ stderr | src/__tests__/orchestrator.test.ts > analyzeContext > should filter Python files when not present
58
+ Failed to analyze src/file2.py: Error: ENOENT: no such file or directory, open 'src/file2.py'
59
+  at open (node:internal/fs/promises:636:25)
60
+  at Object.readFile (node:internal/fs/promises:1273:14)
61
+ at analyzePythonContext (/Users/pengcao/projects/aiready/packages/context-analyzer/src/analyzers/python-context.ts:75:20)
62
+ at Module.analyzeContext (/Users/pengcao/projects/aiready/packages/context-analyzer/src/orchestrator.ts:79:27)
63
+ at /Users/pengcao/projects/aiready/packages/context-analyzer/src/__tests__/orchestrator.test.ts:68:21
64
+ at file:///Users/pengcao/projects/aiready/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:915:20 {
65
+ errno: -2,
66
+ code: 'ENOENT',
67
+ syscall: 'open',
68
+ path: 'src/file2.py'
69
+ }
70
+
71
+ ✓ src/__tests__/orchestrator.test.ts (8 tests) 496ms
72
+ ✓ should analyze TypeScript files and return results  331ms
73
+ ✓ src/__tests__/analyzer.test.ts (14 tests) 142ms
74
+ ✓ src/__tests__/contract.test.ts (1 test) 153ms
75
+ ✓ src/__tests__/defaults.test.ts (7 tests) 3ms
76
+ ✓ src/__tests__/provider.test.ts (2 tests) 8ms
77
+ ✓ src/__tests__/consolidation.test.ts (6 tests) 4ms
78
+ ✓ src/__tests__/remediation.test.ts (6 tests) 76ms
79
+ ✓ src/__tests__/scoring.test.ts (15 tests) 6ms
80
+ ✓ src/__tests__/boilerplate-barrel.test.ts (7 tests) 203ms
96
81
  ✓ src/__tests__/fragmentation-log.test.ts (3 tests) 2ms
97
- ✓ dist/__tests__/fragmentation-log.test.js (3 tests) 2ms
82
+ ✓ src/__tests__/fragmentation-advanced.test.ts (3 tests) 3ms
83
+ ✓ src/__tests__/structural-cohesion.test.ts (4 tests) 2ms
84
+ ✓ src/__tests__/enhanced-cohesion.test.ts (6 tests) 4ms
98
85
 
99
-  Test Files  35 passed (35)
100
-  Tests  354 passed (354)
101
-  Start at  13:03:38
102
-  Duration  9.84s (transform 7.86s, setup 0ms, import 64.77s, tests 2.05s, environment 12ms)
86
+  Test Files  22 passed (22)
87
+  Tests  224 passed (224)
88
+  Start at  23:31:08
89
+  Duration  15.16s (transform 25.45s, setup 0ms, import 114.96s, tests 2.11s, environment 2ms)
103
90
 
104
91
  [?25h