@aiready/context-analyzer 0.21.24 → 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,26 +1,25 @@
1
-
2
- 
3
- > @aiready/context-analyzer@0.21.24 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
- ESM dist/cli.mjs 4.38 KB
13
- ESM dist/python-context-BWDC4E5Z.mjs 4.48 KB
14
- ESM dist/index.mjs 12.40 KB
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
- DTS Build start
22
- DTS ⚡️ Build success in 13814ms
23
- DTS dist/cli.d.ts 20.00 B
24
- DTS dist/index.d.ts 25.71 KB
25
- DTS dist/cli.d.mts 20.00 B
26
- DTS dist/index.d.mts 25.71 KB
1
+
2
+ > @aiready/context-analyzer@0.21.26 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 81.13 KB
12
+ CJS dist/cli.js 67.22 KB
13
+ CJS ⚡️ Build success in 75ms
14
+ ESM dist/cli.mjs 4.38 KB
15
+ ESM dist/index.mjs 12.40 KB
16
+ ESM dist/chunk-64U3PNO3.mjs 2.65 KB
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
+ DTS Build start
21
+ DTS ⚡️ Build success in 2862ms
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,5 +1,4 @@
1
-
2
- 
3
- > @aiready/context-analyzer@0.21.22 lint /Users/pengcao/projects/aiready/packages/context-analyzer
4
- > eslint src
5
-
1
+
2
+ > @aiready/context-analyzer@0.21.24 lint /Users/pengcao/projects/aiready/packages/context-analyzer
3
+ > eslint src
4
+
@@ -1,91 +1,87 @@
1
-
2
- 
3
- > @aiready/context-analyzer@0.21.23 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/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
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) 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
81
- ✓ src/__tests__/fragmentation-log.test.ts (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
85
-
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)
90
-
91
- [?25h
1
+
2
+ > @aiready/context-analyzer@0.21.25 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__/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
11
+ stderr | src/__tests__/python-context.test.ts > python-context > analyzePythonContext > should filter for Python files only
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"?
13
+ If you need to partially mock a module, you can use "importOriginal" helper inside:
14
+
15
+ 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)
16
+ 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)
17
+ at Module.analyzePythonContext (/Users/pengcao/projects/aiready/packages/context-analyzer/src/analyzers/python-context.ts:75:26)
18
+  at processTicksAndRejections (node:internal/process/task_queues:104:5)
19
+ at /Users/pengcao/projects/aiready/packages/context-analyzer/src/__tests__/python-context.test.ts:57:23
20
+ at file:///Users/pengcao/projects/aiready/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:915:20 {
21
+ codeFrame: 'vi.mock(import("fs"), async (importOriginal) => {\n' +
22
+ ' const actual = await importOriginal()\n' +
23
+ ' return {\n' +
24
+ ' ...actual,\n' +
25
+ ' // your mocked methods\n' +
26
+ ' }\n' +
27
+ '})'
28
+ }
29
+
30
+ stderr | src/__tests__/python-context.test.ts > python-context > analyzePythonContext > should analyze Python files and return metrics
31
+ 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"?
32
+ If you need to partially mock a module, you can use "importOriginal" helper inside:
33
+
34
+ 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)
35
+ 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)
36
+ at Module.analyzePythonContext (/Users/pengcao/projects/aiready/packages/context-analyzer/src/analyzers/python-context.ts:75:26)
37
+  at processTicksAndRejections (node:internal/process/task_queues:104:5)
38
+ at /Users/pengcao/projects/aiready/packages/context-analyzer/src/__tests__/python-context.test.ts:78:23
39
+ at file:///Users/pengcao/projects/aiready/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:915:20 {
40
+ codeFrame: 'vi.mock(import("fs"), async (importOriginal) => {\n' +
41
+ ' const actual = await importOriginal()\n' +
42
+ ' return {\n' +
43
+ ' ...actual,\n' +
44
+ ' // your mocked methods\n' +
45
+ ' }\n' +
46
+ '})'
47
+ }
48
+
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
52
+ stderr | src/__tests__/orchestrator.test.ts > analyzeContext > should filter Python files when not present
53
+ Failed to analyze src/file2.py: Error: ENOENT: no such file or directory, open 'src/file2.py'
54
+  at open (node:internal/fs/promises:636:25)
55
+  at Object.readFile (node:internal/fs/promises:1273:14)
56
+ at analyzePythonContext (/Users/pengcao/projects/aiready/packages/context-analyzer/src/analyzers/python-context.ts:75:20)
57
+ at Module.analyzeContext (/Users/pengcao/projects/aiready/packages/context-analyzer/src/orchestrator.ts:79:27)
58
+ at /Users/pengcao/projects/aiready/packages/context-analyzer/src/__tests__/orchestrator.test.ts:68:21
59
+ at file:///Users/pengcao/projects/aiready/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:915:20 {
60
+ errno: -2,
61
+ code: 'ENOENT',
62
+ syscall: 'open',
63
+ path: 'src/file2.py'
64
+ }
65
+
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
+ ✓ src/__tests__/file-classification.test.ts (63 tests) 6ms
76
+ ✓ src/__tests__/cluster-detector.test.ts (3 tests) 3ms
77
+ ✓ src/__tests__/provider.test.ts (2 tests) 8ms
78
+ ✓ src/__tests__/enhanced-cohesion.test.ts (6 tests) 3ms
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
+
83
+  Test Files  22 passed (22)
84
+  Tests  224 passed (224)
85
+  Start at  19:39:17
86
+  Duration  4.67s (transform 5.84s, setup 0ms, import 28.95s, tests 810ms, environment 2ms)
87
+