@aiready/context-analyzer 0.7.19 → 0.8.0

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,6 +1,6 @@
1
1
 
2
2
  
3
- > @aiready/context-analyzer@0.7.19 build /Users/pengcao/projects/aiready/packages/context-analyzer
3
+ > @aiready/context-analyzer@0.8.0 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
  CLI Building entry: src/cli.ts, src/index.ts
@@ -9,15 +9,17 @@
9
9
  CLI Target: es2020
10
10
  CJS Build start
11
11
  ESM Build start
12
- ESM dist/cli.mjs 18.50 KB
13
- ESM dist/index.mjs 554.00 B
14
- ESM dist/chunk-G7PO3DNK.mjs 35.66 KB
15
- ESM ⚡️ Build success in 50ms
16
- CJS dist/index.js 37.22 KB
17
- CJS dist/cli.js 49.43 KB
18
- CJS ⚡️ Build success in 51ms
12
+ CJS dist/index.js 45.81 KB
13
+ CJS dist/cli.js 57.56 KB
14
+ CJS ⚡️ Build success in 53ms
15
+ ESM dist/python-context-UOPTQH44.mjs 5.64 KB
16
+ ESM dist/cli.mjs 18.53 KB
17
+ ESM dist/index.mjs 585.00 B
18
+ ESM dist/chunk-JZ2SE4DB.mjs 37.53 KB
19
+ ESM dist/chunk-Y6FXYEAI.mjs 390.00 B
20
+ ESM ⚡️ Build success in 53ms
19
21
  DTS Build start
20
- DTS ⚡️ Build success in 659ms
22
+ DTS ⚡️ Build success in 629ms
21
23
  DTS dist/cli.d.ts 20.00 B
22
24
  DTS dist/index.d.ts 5.95 KB
23
25
  DTS dist/cli.d.mts 20.00 B
@@ -1,17 +1,17 @@
1
1
 
2
2
  
3
- > @aiready/context-analyzer@0.7.19 test /Users/pengcao/projects/aiready/packages/context-analyzer
3
+ > @aiready/context-analyzer@0.8.0 test /Users/pengcao/projects/aiready/packages/context-analyzer
4
4
  > vitest run
5
5
 
6
6
  [?25l
7
7
   RUN  v4.0.17 /Users/pengcao/projects/aiready/packages/context-analyzer
8
8
 
9
9
  [?2026h
10
-  ❯ src/__tests__/scoring.test.ts [queued]
10
+  ❯ src/__tests__/auto-detection.test.ts [queued]
11
11
 
12
12
   Test Files 0 passed (4)
13
13
   Tests 0 passed (0)
14
-  Start at 10:40:28
14
+  Start at 21:02:10
15
15
   Duration 101ms
16
16
  [?2026l[?2026h ✓ src/__tests__/scoring.test.ts (7 tests) 2ms
17
17
 
@@ -21,15 +21,15 @@
21
21
 
22
22
   Test Files 1 passed (4)
23
23
   Tests 7 passed (13)
24
-  Start at 10:40:28
25
-  Duration 403ms
26
- [?2026l ✓ src/__tests__/enhanced-cohesion.test.ts (6 tests) 5ms
27
- ✓ src/__tests__/auto-detection.test.ts (8 tests) 19ms
28
- ✓ src/__tests__/analyzer.test.ts (14 tests) 17ms
24
+  Start at 21:02:10
25
+  Duration 514ms
26
+ [?2026l ✓ src/__tests__/enhanced-cohesion.test.ts (6 tests) 2ms
27
+ ✓ src/__tests__/auto-detection.test.ts (8 tests) 15ms
28
+ ✓ src/__tests__/analyzer.test.ts (14 tests) 20ms
29
29
 
30
30
   Test Files  4 passed (4)
31
31
   Tests  35 passed (35)
32
-  Start at  10:40:28
33
-  Duration  492ms (transform 249ms, setup 0ms, import 1.11s, tests 43ms, environment 0ms)
32
+  Start at  21:02:10
33
+  Duration  594ms (transform 264ms, setup 0ms, import 1.35s, tests 39ms, environment 0ms)
34
34
 
35
35
  [?25h
package/README.md CHANGED
@@ -4,6 +4,43 @@
4
4
 
5
5
  When AI tools try to help with your code, they need to load files into their context window. Fragmented code structures make this expensive and sometimes impossible. This tool analyzes your codebase to identify:
6
6
 
7
+ ## �️ Architecture
8
+
9
+ ```
10
+ 🎯 USER
11
+
12
+
13
+ 🎛️ CLI (orchestrator)
14
+
15
+
16
+ 🏢 HUB (core)
17
+
18
+ ┌──────────────────────┼───────────┬───────────┐
19
+ ▼ ▼ ▼ ▼
20
+ 📊 PATTERN ┌─────────────┐ 🔧 CONSIST 📚 DOC
21
+ DETECT │ 📦 CONTEXT │ ⬅ YOU ARE HERE
22
+ ✅ Ready │ ANALYZER │ ENCY DRIFT
23
+ │ ✅ Ready │ ✅ Ready 🔜 Soon
24
+ └─────────────┘
25
+ ```
26
+
27
+ ## �🌍 Language Support
28
+
29
+ **Currently Supported (64% market coverage):**
30
+ - ✅ **TypeScript** (`.ts`, `.tsx`) - Import chains, context budget, cohesion
31
+ - ✅ **JavaScript** (`.js`, `.jsx`) - Import chains, context budget, cohesion
32
+ - ✅ **Python** (`.py`) - Import chains, context budget, circular deps, cohesion
33
+
34
+ **Roadmap:**
35
+ - 🔜 **Java** (Q3 2026) - Package dependencies, Maven/Gradle analysis
36
+ - 🔜 **Go** (Q4 2026) - Module dependencies, package cohesion
37
+ - 🔜 **Rust** (Q4 2026) - Crate dependencies, module structure
38
+ - 🔜 **C#** (Q1 2027) - Namespace dependencies, project references
39
+
40
+ ## 🎯 Why This Tool?
41
+
42
+ When AI tools try to help with your code, they need to load files into their context window. Fragmented code structures make this expensive and sometimes impossible. This tool analyzes your codebase to identify:
43
+
7
44
  - 📦 **High Context Budget**: Files that cost too many AI tokens to understand (file + dependencies)
8
45
  - 🔗 **Deep Import Chains**: Cascading dependencies that force AI to load many files
9
46
  - 🎯 **Low Cohesion**: Files mixing unrelated concerns (God objects)