@aiready/context-analyzer 0.21.25 → 0.21.27

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.
Files changed (78) hide show
  1. package/.turbo/turbo-build.log +32 -25
  2. package/.turbo/turbo-test.log +51 -87
  3. package/coverage/clover.xml +392 -1878
  4. package/coverage/coverage-final.json +15 -19
  5. package/coverage/index.html +48 -63
  6. package/coverage/src/analyzers/index.html +21 -21
  7. package/coverage/src/analyzers/python-context.ts.html +96 -96
  8. package/coverage/src/ast-utils.ts.html +34 -109
  9. package/coverage/src/classifier.ts.html +104 -104
  10. package/coverage/src/classify/classification-patterns.ts.html +1 -1
  11. package/coverage/src/classify/file-classifiers.ts.html +1 -1
  12. package/coverage/src/classify/index.html +1 -1
  13. package/coverage/src/cluster-detector.ts.html +72 -72
  14. package/coverage/src/defaults.ts.html +1 -1
  15. package/coverage/src/graph-builder.ts.html +131 -131
  16. package/coverage/src/index.html +101 -116
  17. package/coverage/src/index.ts.html +2 -2
  18. package/coverage/src/issue-analyzer.ts.html +32 -83
  19. package/coverage/src/mapper.ts.html +20 -2
  20. package/coverage/src/metrics.ts.html +127 -130
  21. package/coverage/src/orchestrator.ts.html +13 -13
  22. package/coverage/src/provider.ts.html +19 -19
  23. package/coverage/src/remediation.ts.html +59 -59
  24. package/coverage/src/report/console-report.ts.html +2 -2
  25. package/coverage/src/report/html-report.ts.html +60 -84
  26. package/coverage/src/report/index.html +7 -7
  27. package/coverage/src/report/interactive-setup.ts.html +1 -1
  28. package/coverage/src/scoring.ts.html +62 -62
  29. package/coverage/src/semantic/co-usage.ts.html +1 -1
  30. package/coverage/src/semantic/consolidation.ts.html +1 -1
  31. package/coverage/src/semantic/domain-inference.ts.html +1 -1
  32. package/coverage/src/semantic/index.html +1 -1
  33. package/coverage/src/semantic/type-graph.ts.html +1 -1
  34. package/coverage/src/summary.ts.html +67 -67
  35. package/coverage/src/types.ts.html +1 -1
  36. package/coverage/src/utils/dependency-graph-utils.ts.html +41 -41
  37. package/coverage/src/utils/index.html +21 -21
  38. package/coverage/src/utils/string-utils.ts.html +1 -1
  39. package/dist/chunk-22ZO4EKZ.mjs +1297 -0
  40. package/dist/chunk-4U4LDWGF.mjs +360 -0
  41. package/dist/chunk-BA7QGUHN.mjs +1722 -0
  42. package/dist/chunk-BCEZGRXI.mjs +1297 -0
  43. package/dist/chunk-BQCISA2F.mjs +91 -0
  44. package/dist/chunk-EMYD7NS6.mjs +137 -0
  45. package/dist/chunk-EWFR366Y.mjs +1740 -0
  46. package/dist/chunk-FO6YT6RG.mjs +1751 -0
  47. package/dist/chunk-J3SZQZNU.mjs +221 -0
  48. package/dist/chunk-OZE3FVZT.mjs +1089 -0
  49. package/dist/chunk-WHB7QI7N.mjs +91 -0
  50. package/dist/cli-action-CXIHOVAC.mjs +95 -0
  51. package/dist/cli-action-SA7SCYNV.mjs +95 -0
  52. package/dist/cli-action-YAJOJCXJ.mjs +95 -0
  53. package/dist/cli.js +688 -566
  54. package/dist/cli.mjs +4 -88
  55. package/dist/index.js +889 -773
  56. package/dist/index.mjs +21 -14
  57. package/dist/orchestrator-3L3NAZYP.mjs +10 -0
  58. package/dist/orchestrator-MONOZHVW.mjs +10 -0
  59. package/dist/orchestrator-ZR7JSKWI.mjs +10 -0
  60. package/dist/summary-7PZVW72O.mjs +7 -0
  61. package/dist/summary-LKUCJAIS.mjs +7 -0
  62. package/package.json +2 -2
  63. package/src/__tests__/analyzer.test.ts +1 -1
  64. package/src/__tests__/enhanced-cohesion.test.ts +4 -1
  65. package/src/__tests__/orchestrator.test.ts +19 -4
  66. package/src/__tests__/python-context.test.ts +6 -0
  67. package/src/__tests__/report/html-report.test.ts +8 -2
  68. package/src/ast-utils.ts +1 -26
  69. package/src/cli-definition.ts +4 -2
  70. package/src/issue-analyzer.ts +4 -19
  71. package/src/metrics.ts +1 -2
  72. package/src/provider.ts +4 -4
  73. package/src/report/html-report.ts +43 -59
  74. package/coverage/dist/chunk-64U3PNO3.mjs.html +0 -367
  75. package/coverage/dist/chunk-J3MUOWHC.mjs.html +0 -5326
  76. package/coverage/dist/index.html +0 -146
  77. package/coverage/dist/index.mjs.html +0 -1396
  78. package/coverage/src/analyzer.ts.html +0 -88
@@ -1,25 +1,32 @@
1
-
2
- > @aiready/context-analyzer@0.21.25 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
- 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
- ESM dist/index.mjs 12.40 KB
15
- 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
20
- DTS Build start
21
- DTS ⚡️ Build success in 7514ms
22
- DTS dist/cli.d.ts 20.00 B
23
- DTS dist/index.d.ts 25.71 KB
24
- DTS dist/cli.d.mts 20.00 B
25
- DTS dist/index.d.mts 25.71 KB
1
+
2
+ 
3
+ > @aiready/context-analyzer@0.21.27 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 69.64 KB
13
+ CJS dist/index.js 83.36 KB
14
+ CJS ⚡️ Build success in 26ms
15
+ ESM dist/summary-7PZVW72O.mjs 119.00 B
16
+ ESM dist/orchestrator-3L3NAZYP.mjs 190.00 B
17
+ ESM dist/python-context-BWDC4E5Z.mjs 4.48 KB
18
+ ESM dist/cli-action-SA7SCYNV.mjs 2.86 KB
19
+ ESM dist/chunk-BQCISA2F.mjs 3.35 KB
20
+ ESM dist/chunk-BCEZGRXI.mjs 40.87 KB
21
+ ESM dist/chunk-64U3PNO3.mjs 2.65 KB
22
+ ESM dist/cli.mjs 1.81 KB
23
+ ESM dist/chunk-EMYD7NS6.mjs 4.91 KB
24
+ ESM dist/index.mjs 12.64 KB
25
+ ESM dist/chunk-J3SZQZNU.mjs 8.11 KB
26
+ ESM ⚡️ Build success in 27ms
27
+ DTS Build start
28
+ DTS ⚡️ Build success in 1742ms
29
+ DTS dist/cli.d.ts 20.00 B
30
+ DTS dist/index.d.ts 25.71 KB
31
+ DTS dist/cli.d.mts 20.00 B
32
+ DTS dist/index.d.mts 25.71 KB
@@ -1,87 +1,51 @@
1
-
2
- > @aiready/context-analyzer@0.21.24 test /Users/pengcao/projects/aiready/packages/context-analyzer
3
- > vitest run --exclude "**/dist/**"
4
-
5
-
6
-  RUN  v4.0.18 /Users/pengcao/projects/aiready/packages/context-analyzer
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
12
- stderr | src/__tests__/python-context.test.ts > python-context > analyzePythonContext > should filter for Python files only
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"?
14
- If you need to partially mock a module, you can use "importOriginal" helper inside:
15
-
16
- at VitestMocker.createError (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:311:17)
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)
18
- at Module.analyzePythonContext (/Users/pengcao/projects/aiready/packages/context-analyzer/src/analyzers/python-context.ts:75:26)
19
-  at processTicksAndRejections (node:internal/process/task_queues:104:5)
20
- at /Users/pengcao/projects/aiready/packages/context-analyzer/src/__tests__/python-context.test.ts:57:23
21
- at file:///Users/pengcao/projects/aiready/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:915:20 {
22
- codeFrame: 'vi.mock(import("fs"), async (importOriginal) => {\n' +
23
- ' const actual = await importOriginal()\n' +
24
- ' return {\n' +
25
- ' ...actual,\n' +
26
- ' // your mocked methods\n' +
27
- ' }\n' +
28
- '})'
29
- }
30
-
31
- stderr | src/__tests__/python-context.test.ts > python-context > analyzePythonContext > should analyze Python files and return metrics
32
- Failed to analyze src/test.py: Error: [vitest] No "default" export is defined on the "fs" mock. Did you forget to return it from "vi.mock"?
33
- If you need to partially mock a module, you can use "importOriginal" helper inside:
34
-
35
- at VitestMocker.createError (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:311:17)
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)
37
- at Module.analyzePythonContext (/Users/pengcao/projects/aiready/packages/context-analyzer/src/analyzers/python-context.ts:75:26)
38
-  at processTicksAndRejections (node:internal/process/task_queues:104:5)
39
- at /Users/pengcao/projects/aiready/packages/context-analyzer/src/__tests__/python-context.test.ts:78:23
40
- at file:///Users/pengcao/projects/aiready/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:915:20 {
41
- codeFrame: 'vi.mock(import("fs"), async (importOriginal) => {\n' +
42
- ' const actual = await importOriginal()\n' +
43
- ' return {\n' +
44
- ' ...actual,\n' +
45
- ' // your mocked methods\n' +
46
- ' }\n' +
47
- '})'
48
- }
49
-
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
53
- stderr | src/__tests__/orchestrator.test.ts > analyzeContext > should filter Python files when not present
54
- Failed to analyze src/file2.py: Error: ENOENT: no such file or directory, open 'src/file2.py'
55
-  at open (node:internal/fs/promises:636:25)
56
-  at Object.readFile (node:internal/fs/promises:1273:14)
57
- at analyzePythonContext (/Users/pengcao/projects/aiready/packages/context-analyzer/src/analyzers/python-context.ts:75:20)
58
- at Module.analyzeContext (/Users/pengcao/projects/aiready/packages/context-analyzer/src/orchestrator.ts:79:27)
59
- at /Users/pengcao/projects/aiready/packages/context-analyzer/src/__tests__/orchestrator.test.ts:68:21
60
- at file:///Users/pengcao/projects/aiready/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:915:20 {
61
- errno: -2,
62
- code: 'ENOENT',
63
- syscall: 'open',
64
- path: 'src/file2.py'
65
- }
66
-
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
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
80
- ✓ src/__tests__/enhanced-cohesion.test.ts (6 tests) 3ms
81
- ✓ src/__tests__/structural-cohesion.test.ts (4 tests) 1ms
82
-
83
-  Test Files  22 passed (22)
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)
87
-
1
+
2
+ 
3
+ > @aiready/context-analyzer@0.21.26 test /Users/pengcao/projects/aiready/packages/context-analyzer
4
+ > vitest run --exclude "**/dist/**"
5
+
6
+ [?25l
7
+  RUN  v4.0.18 /Users/pengcao/projects/aiready/packages/context-analyzer
8
+
9
+ ✓ src/__tests__/report/console-report.test.ts (8 tests) 40ms
10
+ ✓ src/__tests__/report/html-report.test.ts (11 tests) 79ms
11
+ stderr | src/__tests__/python-context.test.ts > python-context > analyzePythonContext > should filter for Python files only
12
+ Failed to analyze src/file2.py: TypeError: Cannot read properties of undefined (reading 'split')
13
+ at Module.analyzePythonContext (/Users/pengcao/projects/aiready/packages/context-analyzer/src/analyzers/python-context.ts:91:32)
14
+  at processTicksAndRejections (node:internal/process/task_queues:104:5)
15
+ at /Users/pengcao/projects/aiready/packages/context-analyzer/src/__tests__/python-context.test.ts:63:23
16
+ at file:///Users/pengcao/projects/aiready/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:915:20
17
+
18
+ stderr | src/__tests__/python-context.test.ts > python-context > analyzePythonContext > should analyze Python files and return metrics
19
+ Failed to analyze src/test.py: TypeError: Cannot read properties of undefined (reading 'split')
20
+ at Module.analyzePythonContext (/Users/pengcao/projects/aiready/packages/context-analyzer/src/analyzers/python-context.ts:91:32)
21
+  at processTicksAndRejections (node:internal/process/task_queues:104:5)
22
+ at /Users/pengcao/projects/aiready/packages/context-analyzer/src/__tests__/python-context.test.ts:84:23
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
+
25
+ ✓ src/__tests__/python-context.test.ts (4 tests) 7ms
26
+ ✓ src/__tests__/scoring.test.ts (15 tests) 4ms
27
+ ✓ src/__tests__/issue-analyzer.test.ts (17 tests) 64ms
28
+ ✓ src/__tests__/cluster-detector.test.ts (3 tests) 4ms
29
+ ✓ src/__tests__/domain-inference.test.ts (26 tests) 7ms
30
+ ✓ src/__tests__/contract.test.ts (1 test) 30ms
31
+ ✓ src/__tests__/auto-detection.test.ts (8 tests) 40ms
32
+ ✓ src/__tests__/analyzer.test.ts (14 tests) 40ms
33
+ ✓ src/__tests__/orchestrator.test.ts (8 tests) 192ms
34
+ ✓ src/__tests__/file-classification.test.ts (63 tests) 110ms
35
+ ✓ src/__tests__/fragmentation-coupling.test.ts (2 tests) 59ms
36
+ ✓ src/__tests__/consolidation.test.ts (6 tests) 6ms
37
+ ✓ src/__tests__/provider.test.ts (2 tests) 11ms
38
+ ✓ src/__tests__/remediation.test.ts (6 tests) 4ms
39
+ ✓ src/__tests__/boilerplate-barrel.test.ts (7 tests) 3ms
40
+ ✓ src/__tests__/structural-cohesion.test.ts (4 tests) 6ms
41
+ ✓ src/__tests__/defaults.test.ts (7 tests) 5ms
42
+ ✓ src/__tests__/fragmentation-log.test.ts (3 tests) 2ms
43
+ ✓ src/__tests__/fragmentation-advanced.test.ts (3 tests) 3ms
44
+ ✓ src/__tests__/enhanced-cohesion.test.ts (6 tests) 4ms
45
+
46
+  Test Files  22 passed (22)
47
+  Tests  224 passed (224)
48
+  Start at  01:33:53
49
+  Duration  8.01s (transform 12.58s, setup 0ms, import 55.97s, tests 716ms, environment 18ms)
50
+
51
+ [?25h