@aiready/context-analyzer 0.21.24 → 0.21.25

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.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,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.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
+