@aiready/context-analyzer 0.21.27 → 0.22.1
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 +12 -12
- package/.turbo/turbo-test.log +49 -51
- package/README.md +7 -6
- package/package.json +2 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> @aiready/context-analyzer@0.
|
|
3
|
+
> @aiready/context-analyzer@0.22.1 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
|
|
@@ -9,23 +9,23 @@
|
|
|
9
9
|
[34mCLI[39m Target: es2020
|
|
10
10
|
[34mCJS[39m Build start
|
|
11
11
|
[34mESM[39m Build start
|
|
12
|
-
[32mCJS[39m [1mdist/cli.js [22m[32m69.64 KB[39m
|
|
13
12
|
[32mCJS[39m [1mdist/index.js [22m[32m83.36 KB[39m
|
|
14
|
-
[32mCJS[39m
|
|
15
|
-
[
|
|
16
|
-
[32mESM[39m [1mdist/orchestrator-3L3NAZYP.mjs [22m[32m190.00 B[39m
|
|
13
|
+
[32mCJS[39m [1mdist/cli.js [22m[32m69.64 KB[39m
|
|
14
|
+
[32mCJS[39m ⚡️ Build success in 294ms
|
|
17
15
|
[32mESM[39m [1mdist/python-context-BWDC4E5Z.mjs [22m[32m4.48 KB[39m
|
|
18
|
-
[32mESM[39m [1mdist/cli-action-SA7SCYNV.mjs [22m[32m2.86 KB[39m
|
|
19
|
-
[32mESM[39m [1mdist/chunk-BQCISA2F.mjs [22m[32m3.35 KB[39m
|
|
20
|
-
[32mESM[39m [1mdist/chunk-BCEZGRXI.mjs [22m[32m40.87 KB[39m
|
|
21
|
-
[32mESM[39m [1mdist/chunk-64U3PNO3.mjs [22m[32m2.65 KB[39m
|
|
22
16
|
[32mESM[39m [1mdist/cli.mjs [22m[32m1.81 KB[39m
|
|
23
|
-
[32mESM[39m [1mdist/chunk-EMYD7NS6.mjs [22m[32m4.91 KB[39m
|
|
24
17
|
[32mESM[39m [1mdist/index.mjs [22m[32m12.64 KB[39m
|
|
18
|
+
[32mESM[39m [1mdist/cli-action-SA7SCYNV.mjs [22m[32m2.86 KB[39m
|
|
19
|
+
[32mESM[39m [1mdist/summary-7PZVW72O.mjs [22m[32m119.00 B[39m
|
|
20
|
+
[32mESM[39m [1mdist/chunk-BCEZGRXI.mjs [22m[32m40.87 KB[39m
|
|
25
21
|
[32mESM[39m [1mdist/chunk-J3SZQZNU.mjs [22m[32m8.11 KB[39m
|
|
26
|
-
[32mESM[39m
|
|
22
|
+
[32mESM[39m [1mdist/orchestrator-3L3NAZYP.mjs [22m[32m190.00 B[39m
|
|
23
|
+
[32mESM[39m [1mdist/chunk-EMYD7NS6.mjs [22m[32m4.91 KB[39m
|
|
24
|
+
[32mESM[39m [1mdist/chunk-BQCISA2F.mjs [22m[32m3.35 KB[39m
|
|
25
|
+
[32mESM[39m [1mdist/chunk-64U3PNO3.mjs [22m[32m2.65 KB[39m
|
|
26
|
+
[32mESM[39m ⚡️ Build success in 295ms
|
|
27
27
|
DTS Build start
|
|
28
|
-
DTS ⚡️ Build success in
|
|
28
|
+
DTS ⚡️ Build success in 4469ms
|
|
29
29
|
DTS dist/cli.d.ts 20.00 B
|
|
30
30
|
DTS dist/index.d.ts 25.71 KB
|
|
31
31
|
DTS dist/cli.d.mts 20.00 B
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,51 +1,49 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
[
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
[32m✓[39m src/__tests__/report/
|
|
10
|
-
[32m✓[39m src/__tests__/report/
|
|
11
|
-
[90mstderr[2m | src/__tests__/python-context.test.ts[2m > [22m[2mpython-context[2m > [22m[2manalyzePythonContext[2m > [22m[2mshould filter for Python files only
|
|
12
|
-
[22m[39mFailed to analyze src/file2.py: TypeError: Cannot read properties of undefined (reading 'split')
|
|
13
|
-
at Module.analyzePythonContext [90m(/Users/pengcao/projects/aiready/packages/context-analyzer/[39msrc/analyzers/python-context.ts:91:32[90m)[39m
|
|
14
|
-
[90m at processTicksAndRejections (node:internal/process/task_queues:104:5)[39m
|
|
15
|
-
at [90m/Users/pengcao/projects/aiready/packages/context-analyzer/[39msrc/__tests__/python-context.test.ts:63:23
|
|
16
|
-
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
|
|
17
|
-
|
|
18
|
-
[90mstderr[2m | src/__tests__/python-context.test.ts[2m > [22m[2mpython-context[2m > [22m[2manalyzePythonContext[2m > [22m[2mshould analyze Python files and return metrics
|
|
19
|
-
[22m[39mFailed to analyze src/test.py: TypeError: Cannot read properties of undefined (reading 'split')
|
|
20
|
-
at Module.analyzePythonContext [90m(/Users/pengcao/projects/aiready/packages/context-analyzer/[39msrc/analyzers/python-context.ts:91:32[90m)[39m
|
|
21
|
-
[90m at processTicksAndRejections (node:internal/process/task_queues:104:5)[39m
|
|
22
|
-
at [90m/Users/pengcao/projects/aiready/packages/context-analyzer/[39msrc/__tests__/python-context.test.ts:84:23
|
|
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
|
-
|
|
25
|
-
[32m✓[39m src/__tests__/python-context.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m
|
|
26
|
-
[32m✓[39m src/__tests__/
|
|
27
|
-
[32m✓[39m src/__tests__/
|
|
28
|
-
[32m✓[39m src/__tests__/
|
|
29
|
-
[32m✓[39m src/__tests__/
|
|
30
|
-
[32m✓[39m src/__tests__/
|
|
31
|
-
[32m✓[39m src/__tests__/auto-detection.test.ts [2m([22m[2m8 tests[22m[2m)[22m[32m
|
|
32
|
-
[32m✓[39m src/__tests__/
|
|
33
|
-
[32m✓[39m src/__tests__/
|
|
34
|
-
[32m✓[39m src/__tests__/
|
|
35
|
-
[32m✓[39m src/__tests__/
|
|
36
|
-
[32m✓[39m src/__tests__/
|
|
37
|
-
[32m✓[39m src/__tests__/
|
|
38
|
-
[32m✓[39m src/__tests__/
|
|
39
|
-
[32m✓[39m src/__tests__/
|
|
40
|
-
[32m✓[39m src/__tests__/
|
|
41
|
-
[32m✓[39m src/__tests__/
|
|
42
|
-
[32m✓[39m src/__tests__/
|
|
43
|
-
[32m✓[39m src/__tests__/fragmentation-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
[2m
|
|
47
|
-
[2m
|
|
48
|
-
[2m
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
[?25h
|
|
1
|
+
|
|
2
|
+
> @aiready/context-analyzer@0.21.27 test /Users/pengcao/projects/aiready/packages/context-analyzer
|
|
3
|
+
> vitest run --exclude "**/dist/**"
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
[1m[46m RUN [49m[22m [36mv4.0.18 [39m[90m/Users/pengcao/projects/aiready/packages/context-analyzer[39m
|
|
7
|
+
|
|
8
|
+
[32m✓[39m src/__tests__/domain-inference.test.ts [2m([22m[2m26 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[32m 40[2mms[22m[39m
|
|
10
|
+
[32m✓[39m src/__tests__/report/console-report.test.ts [2m([22m[2m8 tests[22m[2m)[22m[32m 122[2mms[22m[39m
|
|
11
|
+
[90mstderr[2m | src/__tests__/python-context.test.ts[2m > [22m[2mpython-context[2m > [22m[2manalyzePythonContext[2m > [22m[2mshould filter for Python files only
|
|
12
|
+
[22m[39mFailed to analyze src/file2.py: TypeError: Cannot read properties of undefined (reading 'split')
|
|
13
|
+
at Module.analyzePythonContext [90m(/Users/pengcao/projects/aiready/packages/context-analyzer/[39msrc/analyzers/python-context.ts:91:32[90m)[39m
|
|
14
|
+
[90m at processTicksAndRejections (node:internal/process/task_queues:104:5)[39m
|
|
15
|
+
at [90m/Users/pengcao/projects/aiready/packages/context-analyzer/[39msrc/__tests__/python-context.test.ts:63:23
|
|
16
|
+
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
|
|
17
|
+
|
|
18
|
+
[90mstderr[2m | src/__tests__/python-context.test.ts[2m > [22m[2mpython-context[2m > [22m[2manalyzePythonContext[2m > [22m[2mshould analyze Python files and return metrics
|
|
19
|
+
[22m[39mFailed to analyze src/test.py: TypeError: Cannot read properties of undefined (reading 'split')
|
|
20
|
+
at Module.analyzePythonContext [90m(/Users/pengcao/projects/aiready/packages/context-analyzer/[39msrc/analyzers/python-context.ts:91:32[90m)[39m
|
|
21
|
+
[90m at processTicksAndRejections (node:internal/process/task_queues:104:5)[39m
|
|
22
|
+
at [90m/Users/pengcao/projects/aiready/packages/context-analyzer/[39msrc/__tests__/python-context.test.ts:84:23
|
|
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
|
+
|
|
25
|
+
[32m✓[39m src/__tests__/python-context.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 8[2mms[22m[39m
|
|
26
|
+
[32m✓[39m src/__tests__/consolidation.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m 103[2mms[22m[39m
|
|
27
|
+
[32m✓[39m src/__tests__/provider.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
28
|
+
[32m✓[39m src/__tests__/file-classification.test.ts [2m([22m[2m63 tests[22m[2m)[22m[32m 6[2mms[22m[39m
|
|
29
|
+
[32m✓[39m src/__tests__/issue-analyzer.test.ts [2m([22m[2m17 tests[22m[2m)[22m[32m 23[2mms[22m[39m
|
|
30
|
+
[32m✓[39m src/__tests__/structural-cohesion.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 6[2mms[22m[39m
|
|
31
|
+
[32m✓[39m src/__tests__/auto-detection.test.ts [2m([22m[2m8 tests[22m[2m)[22m[32m 61[2mms[22m[39m
|
|
32
|
+
[32m✓[39m src/__tests__/orchestrator.test.ts [2m([22m[2m8 tests[22m[2m)[22m[32m 167[2mms[22m[39m
|
|
33
|
+
[32m✓[39m src/__tests__/fragmentation-coupling.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 26[2mms[22m[39m
|
|
34
|
+
[32m✓[39m src/__tests__/contract.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 63[2mms[22m[39m
|
|
35
|
+
[32m✓[39m src/__tests__/analyzer.test.ts [2m([22m[2m14 tests[22m[2m)[22m[32m 221[2mms[22m[39m
|
|
36
|
+
[32m✓[39m src/__tests__/remediation.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m 53[2mms[22m[39m
|
|
37
|
+
[32m✓[39m src/__tests__/defaults.test.ts [2m([22m[2m7 tests[22m[2m)[22m[32m 6[2mms[22m[39m
|
|
38
|
+
[32m✓[39m src/__tests__/enhanced-cohesion.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m 2[2mms[22m[39m
|
|
39
|
+
[32m✓[39m src/__tests__/cluster-detector.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 3[2mms[22m[39m
|
|
40
|
+
[32m✓[39m src/__tests__/scoring.test.ts [2m([22m[2m15 tests[22m[2m)[22m[32m 24[2mms[22m[39m
|
|
41
|
+
[32m✓[39m src/__tests__/fragmentation-advanced.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 2[2mms[22m[39m
|
|
42
|
+
[32m✓[39m src/__tests__/boilerplate-barrel.test.ts [2m([22m[2m7 tests[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
43
|
+
[32m✓[39m src/__tests__/fragmentation-log.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 3[2mms[22m[39m
|
|
44
|
+
|
|
45
|
+
[2m Test Files [22m [1m[32m22 passed[39m[22m[90m (22)[39m
|
|
46
|
+
[2m Tests [22m [1m[32m224 passed[39m[22m[90m (224)[39m
|
|
47
|
+
[2m Start at [22m 15:17:50
|
|
48
|
+
[2m Duration [22m 5.09s[2m (transform 6.36s, setup 0ms, import 31.37s, tests 951ms, environment 2ms)[22m
|
|
49
|
+
|
package/README.md
CHANGED
|
@@ -21,11 +21,11 @@ AI tokens are expensive and context windows are finite. **Context Analyzer** hel
|
|
|
21
21
|
│
|
|
22
22
|
▼
|
|
23
23
|
🎛️ @aiready/cli (orchestrator)
|
|
24
|
-
│ │ │ │ │ │ │ │ │
|
|
25
|
-
▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼
|
|
26
|
-
[PAT] [CTX] [CON] [AMP] [DEP] [DOC] [SIG] [AGT] [TST]
|
|
27
|
-
│ │ │ │ │ │ │ │ │
|
|
28
|
-
|
|
24
|
+
│ │ │ │ │ │ │ │ │ │
|
|
25
|
+
▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼
|
|
26
|
+
[PAT] [CTX] [CON] [AMP] [DEP] [DOC] [SIG] [AGT] [TST] [CTR]
|
|
27
|
+
│ │ │ │ │ │ │ │ │ │
|
|
28
|
+
└─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┘
|
|
29
29
|
│
|
|
30
30
|
▼
|
|
31
31
|
🏢 @aiready/core
|
|
@@ -35,7 +35,8 @@ Legend:
|
|
|
35
35
|
CON = consistency AMP = change-amplification
|
|
36
36
|
DEP = deps-health DOC = doc-drift
|
|
37
37
|
SIG = ai-signal-clarity AGT = agent-grounding
|
|
38
|
-
TST = testability
|
|
38
|
+
TST = testability CTR = contract-enforcement
|
|
39
|
+
★ = YOU ARE HERE
|
|
39
40
|
```
|
|
40
41
|
|
|
41
42
|
## Features
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aiready/context-analyzer",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.1",
|
|
4
4
|
"description": "AI context window cost analysis - detect fragmented code, deep import chains, and expensive context budgets",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"commander": "^14.0.0",
|
|
50
50
|
"chalk": "^5.3.0",
|
|
51
51
|
"prompts": "^2.4.2",
|
|
52
|
-
"@aiready/core": "0.
|
|
52
|
+
"@aiready/core": "0.24.1"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@types/node": "^24.0.0",
|