@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.
- package/.turbo/turbo-build.log +11 -11
- package/.turbo/turbo-test.log +45 -58
- package/dist/chunk-AMPK6SWS.mjs +1754 -0
- package/dist/chunk-BHCRDEE4.mjs +1745 -0
- package/dist/chunk-IKRP7ECY.mjs +1754 -0
- package/dist/chunk-TWWPY7FD.mjs +1754 -0
- package/dist/chunk-Z5WY6A4P.mjs +1754 -0
- package/dist/cli.js +33 -29
- package/dist/cli.mjs +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +33 -29
- package/dist/index.mjs +1 -1
- package/dist/python-context-BWDC4E5Z.mjs +162 -0
- package/package.json +3 -3
- package/src/__tests__/analyzer.test.ts +14 -14
- package/src/__tests__/auto-detection.test.ts +16 -16
- package/src/__tests__/fragmentation-coupling.test.ts +4 -4
- package/src/__tests__/python-context.test.ts +4 -2
- package/src/__tests__/report/html-report.test.ts +14 -3
- package/src/__tests__/scoring.test.ts +17 -11
- package/src/analyzers/python-context.ts +2 -2
- package/src/ast-utils.ts +3 -3
- package/src/graph-builder.ts +4 -4
- package/src/mapper.ts +6 -0
- package/src/orchestrator.ts +1 -1
- package/src/report/html-report.ts +29 -21
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> @aiready/context-analyzer@0.21.
|
|
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
|
[34mCLI[39m Building entry: src/cli.ts, src/index.ts
|
|
@@ -10,17 +10,17 @@
|
|
|
10
10
|
[34mCJS[39m Build start
|
|
11
11
|
[34mESM[39m Build start
|
|
12
12
|
[32mESM[39m [1mdist/cli.mjs [22m[32m4.38 KB[39m
|
|
13
|
-
[32mESM[39m [1mdist/
|
|
14
|
-
[32mESM[39m [1mdist/python-context-3GZKN3LR.mjs [22m[32m4.47 KB[39m
|
|
13
|
+
[32mESM[39m [1mdist/python-context-BWDC4E5Z.mjs [22m[32m4.48 KB[39m
|
|
15
14
|
[32mESM[39m [1mdist/index.mjs [22m[32m12.40 KB[39m
|
|
16
|
-
[32mESM[39m [1mdist/chunk-
|
|
17
|
-
[32mESM[39m
|
|
18
|
-
[
|
|
19
|
-
[32mCJS[39m [1mdist/index.js [22m[32m81.
|
|
20
|
-
[32mCJS[39m
|
|
15
|
+
[32mESM[39m [1mdist/chunk-Z5WY6A4P.mjs [22m[32m58.13 KB[39m
|
|
16
|
+
[32mESM[39m [1mdist/chunk-64U3PNO3.mjs [22m[32m2.65 KB[39m
|
|
17
|
+
[32mESM[39m ⚡️ Build success in 748ms
|
|
18
|
+
[32mCJS[39m [1mdist/index.js [22m[32m81.28 KB[39m
|
|
19
|
+
[32mCJS[39m [1mdist/cli.js [22m[32m67.37 KB[39m
|
|
20
|
+
[32mCJS[39m ⚡️ Build success in 755ms
|
|
21
21
|
DTS Build start
|
|
22
|
-
DTS ⚡️ Build success in
|
|
22
|
+
DTS ⚡️ Build success in 13814ms
|
|
23
23
|
DTS dist/cli.d.ts 20.00 B
|
|
24
|
-
DTS dist/index.d.ts 25.
|
|
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.
|
|
26
|
+
DTS dist/index.d.mts 25.71 KB
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,40 +1,14 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> @aiready/context-analyzer@0.21.
|
|
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
|
[1m[46m RUN [49m[22m [36mv4.0.18 [39m[90m/Users/pengcao/projects/aiready/packages/context-analyzer[39m
|
|
8
8
|
|
|
9
|
-
[32m✓[39m src/__tests__/report/
|
|
10
|
-
|
|
11
|
-
[32m✓[39m src/__tests__/
|
|
12
|
-
[33m[2m✓[22m[39m should detect high context budget as critical when 50% over limit [33m 360[2mms[22m[39m
|
|
13
|
-
Sourcemap for "/Users/pengcao/projects/aiready/packages/context-analyzer/dist/semantic-analysis.js" points to missing source files
|
|
14
|
-
[32m✓[39m dist/__tests__/analyzer.test.js [2m([22m[2m14 tests[22m[2m)[22m[32m 67[2mms[22m[39m
|
|
15
|
-
[32m✓[39m dist/__tests__/fragmentation-coupling.test.js [2m([22m[2m2 tests[22m[2m)[22m[32m 174[2mms[22m[39m
|
|
16
|
-
[90mstderr[2m | src/__tests__/orchestrator.test.ts[2m > [22m[2manalyzeContext[2m > [22m[2mshould filter Python files when not present
|
|
17
|
-
[22m[39mFailed to analyze src/file2.py: Error: ENOENT: no such file or directory, open 'src/file2.py'
|
|
18
|
-
[90m at open (node:internal/fs/promises:636:25)[39m
|
|
19
|
-
[90m at Object.readFile (node:internal/fs/promises:1273:14)[39m
|
|
20
|
-
at analyzePythonContext [90m(/Users/pengcao/projects/aiready/packages/context-analyzer/[39msrc/analyzers/python-context.ts:75:20[90m)[39m
|
|
21
|
-
at Module.analyzeContext [90m(/Users/pengcao/projects/aiready/packages/context-analyzer/[39msrc/orchestrator.ts:79:27[90m)[39m
|
|
22
|
-
at [90m/Users/pengcao/projects/aiready/packages/context-analyzer/[39msrc/__tests__/orchestrator.test.ts:68:21
|
|
23
|
-
at file:///Users/pengcao/projects/aiready/node_modules/[4m.pnpm[24m/@vitest+runner@4.0.18/node_modules/[4m@vitest/runner[24m/dist/index.js:915:20 {
|
|
24
|
-
errno: [33m-2[39m,
|
|
25
|
-
code: [32m'ENOENT'[39m,
|
|
26
|
-
syscall: [32m'open'[39m,
|
|
27
|
-
path: [32m'src/file2.py'[39m
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
[32m✓[39m src/__tests__/orchestrator.test.ts [2m([22m[2m8 tests[22m[2m)[22m[32m 148[2mms[22m[39m
|
|
31
|
-
[32m✓[39m dist/__tests__/auto-detection.test.js [2m([22m[2m8 tests[22m[2m)[22m[32m 151[2mms[22m[39m
|
|
32
|
-
[32m✓[39m src/__tests__/contract.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 23[2mms[22m[39m
|
|
33
|
-
[32m✓[39m dist/__tests__/contract.test.js [2m([22m[2m1 test[22m[2m)[22m[32m 186[2mms[22m[39m
|
|
34
|
-
[32m✓[39m src/__tests__/auto-detection.test.ts [2m([22m[2m8 tests[22m[2m)[22m[32m 153[2mms[22m[39m
|
|
35
|
-
[32m✓[39m src/__tests__/analyzer.test.ts [2m([22m[2m14 tests[22m[2m)[22m[32m 204[2mms[22m[39m
|
|
36
|
-
[32m✓[39m src/__tests__/fragmentation-coupling.test.ts [2m([22m[2m2 tests[22m[2m)[22m[33m 328[2mms[22m[39m
|
|
37
|
-
[32m✓[39m src/__tests__/defaults.test.ts [2m([22m[2m7 tests[22m[2m)[22m[32m 5[2mms[22m[39m
|
|
9
|
+
[32m✓[39m src/__tests__/report/html-report.test.ts [2m([22m[2m11 tests[22m[2m)[22m[33m 310[2mms[22m[39m
|
|
10
|
+
[33m[2m✓[22m[39m should generate HTML report with all sections [33m 302[2mms[22m[39m
|
|
11
|
+
[32m✓[39m src/__tests__/report/console-report.test.ts [2m([22m[2m8 tests[22m[2m)[22m[32m 261[2mms[22m[39m
|
|
38
12
|
[90mstderr[2m | src/__tests__/python-context.test.ts[2m > [22m[2mpython-context[2m > [22m[2manalyzePythonContext[2m > [22m[2mshould filter for Python files only
|
|
39
13
|
[22m[39mFailed 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/[4m.pnpm[24m/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/[4mvitest[24m/dist/chunks/startModuleRunner.DEj0jb3e.js:384:16)
|
|
44
18
|
at Module.analyzePythonContext [90m(/Users/pengcao/projects/aiready/packages/context-analyzer/[39msrc/analyzers/python-context.ts:75:26[90m)[39m
|
|
45
19
|
[90m at processTicksAndRejections (node:internal/process/task_queues:104:5)[39m
|
|
46
|
-
at [90m/Users/pengcao/projects/aiready/packages/context-analyzer/[39msrc/__tests__/python-context.test.ts:
|
|
20
|
+
at [90m/Users/pengcao/projects/aiready/packages/context-analyzer/[39msrc/__tests__/python-context.test.ts:57:23
|
|
47
21
|
at file:///Users/pengcao/projects/aiready/node_modules/[4m.pnpm[24m/@vitest+runner@4.0.18/node_modules/[4m@vitest/runner[24m/dist/index.js:915:20 {
|
|
48
22
|
codeFrame: [32m'vi.mock(import("fs"), async (importOriginal) => {\n'[39m +
|
|
49
23
|
[32m' const actual = await importOriginal()\n'[39m +
|
|
@@ -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/[4m.pnpm[24m/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/[4mvitest[24m/dist/chunks/startModuleRunner.DEj0jb3e.js:384:16)
|
|
63
37
|
at Module.analyzePythonContext [90m(/Users/pengcao/projects/aiready/packages/context-analyzer/[39msrc/analyzers/python-context.ts:75:26[90m)[39m
|
|
64
38
|
[90m at processTicksAndRejections (node:internal/process/task_queues:104:5)[39m
|
|
65
|
-
at [90m/Users/pengcao/projects/aiready/packages/context-analyzer/[39msrc/__tests__/python-context.test.ts:
|
|
39
|
+
at [90m/Users/pengcao/projects/aiready/packages/context-analyzer/[39msrc/__tests__/python-context.test.ts:78:23
|
|
66
40
|
at file:///Users/pengcao/projects/aiready/node_modules/[4m.pnpm[24m/@vitest+runner@4.0.18/node_modules/[4m@vitest/runner[24m/dist/index.js:915:20 {
|
|
67
41
|
codeFrame: [32m'vi.mock(import("fs"), async (importOriginal) => {\n'[39m +
|
|
68
42
|
[32m' const actual = await importOriginal()\n'[39m +
|
|
@@ -73,32 +47,45 @@ If you need to partially mock a module, you can use "importOriginal" helper insi
|
|
|
73
47
|
[32m'})'[39m
|
|
74
48
|
}
|
|
75
49
|
|
|
76
|
-
[32m✓[39m src/__tests__/python-context.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m
|
|
77
|
-
[32m✓[39m src/__tests__/domain-inference.test.ts [2m([22m[2m26 tests[22m[2m)[22m[32m
|
|
78
|
-
[32m✓[39m src/__tests__/
|
|
79
|
-
[32m✓[39m src/__tests__/
|
|
80
|
-
[32m✓[39m
|
|
81
|
-
[32m✓[39m src/__tests__/
|
|
82
|
-
[32m✓[39m src/__tests__/
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
[
|
|
88
|
-
[
|
|
89
|
-
[
|
|
90
|
-
|
|
91
|
-
[
|
|
92
|
-
[32m
|
|
93
|
-
[32m
|
|
94
|
-
[32m
|
|
95
|
-
|
|
50
|
+
[32m✓[39m src/__tests__/python-context.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 136[2mms[22m[39m
|
|
51
|
+
[32m✓[39m src/__tests__/domain-inference.test.ts [2m([22m[2m26 tests[22m[2m)[22m[32m 15[2mms[22m[39m
|
|
52
|
+
[32m✓[39m src/__tests__/issue-analyzer.test.ts [2m([22m[2m17 tests[22m[2m)[22m[32m 90[2mms[22m[39m
|
|
53
|
+
[32m✓[39m src/__tests__/cluster-detector.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 48[2mms[22m[39m
|
|
54
|
+
[32m✓[39m src/__tests__/file-classification.test.ts [2m([22m[2m63 tests[22m[2m)[22m[32m 9[2mms[22m[39m
|
|
55
|
+
[32m✓[39m src/__tests__/auto-detection.test.ts [2m([22m[2m8 tests[22m[2m)[22m[32m 59[2mms[22m[39m
|
|
56
|
+
[32m✓[39m src/__tests__/fragmentation-coupling.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 79[2mms[22m[39m
|
|
57
|
+
[90mstderr[2m | src/__tests__/orchestrator.test.ts[2m > [22m[2manalyzeContext[2m > [22m[2mshould filter Python files when not present
|
|
58
|
+
[22m[39mFailed to analyze src/file2.py: Error: ENOENT: no such file or directory, open 'src/file2.py'
|
|
59
|
+
[90m at open (node:internal/fs/promises:636:25)[39m
|
|
60
|
+
[90m at Object.readFile (node:internal/fs/promises:1273:14)[39m
|
|
61
|
+
at analyzePythonContext [90m(/Users/pengcao/projects/aiready/packages/context-analyzer/[39msrc/analyzers/python-context.ts:75:20[90m)[39m
|
|
62
|
+
at Module.analyzeContext [90m(/Users/pengcao/projects/aiready/packages/context-analyzer/[39msrc/orchestrator.ts:79:27[90m)[39m
|
|
63
|
+
at [90m/Users/pengcao/projects/aiready/packages/context-analyzer/[39msrc/__tests__/orchestrator.test.ts:68:21
|
|
64
|
+
at file:///Users/pengcao/projects/aiready/node_modules/[4m.pnpm[24m/@vitest+runner@4.0.18/node_modules/[4m@vitest/runner[24m/dist/index.js:915:20 {
|
|
65
|
+
errno: [33m-2[39m,
|
|
66
|
+
code: [32m'ENOENT'[39m,
|
|
67
|
+
syscall: [32m'open'[39m,
|
|
68
|
+
path: [32m'src/file2.py'[39m
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
[32m✓[39m src/__tests__/orchestrator.test.ts [2m([22m[2m8 tests[22m[2m)[22m[33m 496[2mms[22m[39m
|
|
72
|
+
[33m[2m✓[22m[39m should analyze TypeScript files and return results [33m 331[2mms[22m[39m
|
|
73
|
+
[32m✓[39m src/__tests__/analyzer.test.ts [2m([22m[2m14 tests[22m[2m)[22m[32m 142[2mms[22m[39m
|
|
74
|
+
[32m✓[39m src/__tests__/contract.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 153[2mms[22m[39m
|
|
75
|
+
[32m✓[39m src/__tests__/defaults.test.ts [2m([22m[2m7 tests[22m[2m)[22m[32m 3[2mms[22m[39m
|
|
76
|
+
[32m✓[39m src/__tests__/provider.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 8[2mms[22m[39m
|
|
77
|
+
[32m✓[39m src/__tests__/consolidation.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
78
|
+
[32m✓[39m src/__tests__/remediation.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m 76[2mms[22m[39m
|
|
79
|
+
[32m✓[39m src/__tests__/scoring.test.ts [2m([22m[2m15 tests[22m[2m)[22m[32m 6[2mms[22m[39m
|
|
80
|
+
[32m✓[39m src/__tests__/boilerplate-barrel.test.ts [2m([22m[2m7 tests[22m[2m)[22m[32m 203[2mms[22m[39m
|
|
96
81
|
[32m✓[39m src/__tests__/fragmentation-log.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 2[2mms[22m[39m
|
|
97
|
-
[32m✓[39m
|
|
82
|
+
[32m✓[39m src/__tests__/fragmentation-advanced.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 3[2mms[22m[39m
|
|
83
|
+
[32m✓[39m src/__tests__/structural-cohesion.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 2[2mms[22m[39m
|
|
84
|
+
[32m✓[39m src/__tests__/enhanced-cohesion.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
98
85
|
|
|
99
|
-
[2m Test Files [22m [1m[
|
|
100
|
-
[2m Tests [22m [1m[
|
|
101
|
-
[2m Start at [22m
|
|
102
|
-
[2m Duration [22m
|
|
86
|
+
[2m Test Files [22m [1m[32m22 passed[39m[22m[90m (22)[39m
|
|
87
|
+
[2m Tests [22m [1m[32m224 passed[39m[22m[90m (224)[39m
|
|
88
|
+
[2m Start at [22m 23:31:08
|
|
89
|
+
[2m Duration [22m 15.16s[2m (transform 25.45s, setup 0ms, import 114.96s, tests 2.11s, environment 2ms)[22m
|
|
103
90
|
|
|
104
91
|
[?25h
|