codemap-ai 3.4.0 → 3.6.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.
- package/README.md +59 -1
- package/dist/chunk-6TAWVGMT.js +3539 -0
- package/dist/chunk-6TAWVGMT.js.map +1 -0
- package/dist/{chunk-VB74K47A.js → chunk-BRVRY5KT.js} +62 -1
- package/dist/chunk-BRVRY5KT.js.map +1 -0
- package/dist/{chunk-LXZ73T7X.js → chunk-EEMILSZ4.js} +58 -3
- package/dist/chunk-EEMILSZ4.js.map +1 -0
- package/dist/cli.js +38 -2927
- package/dist/cli.js.map +1 -1
- package/dist/{flow-server-4XSR5P4N.js → flow-server-U3IPHQ3N.js} +3 -3
- package/dist/{flow-server-4XSR5P4N.js.map → flow-server-U3IPHQ3N.js.map} +1 -1
- package/dist/index.js +628 -4
- package/dist/index.js.map +1 -1
- package/dist/mcp-server.js +2 -2
- package/dist/mcp-server.js.map +1 -1
- package/dist/visualize-LB2A4KEA.js +230 -0
- package/dist/visualize-LB2A4KEA.js.map +1 -0
- package/package.json +21 -3
- package/web-dist/assets/index-AyyZ2Kpr.js +96 -0
- package/web-dist/assets/index-CeA2-_I-.css +1 -0
- package/web-dist/index.html +14 -0
- package/dist/chunk-LXZ73T7X.js.map +0 -1
- package/dist/chunk-VB74K47A.js.map +0 -1
package/README.md
CHANGED
|
@@ -8,11 +8,38 @@ Stop guessing what breaks when you change code. CodeMap builds a complete call g
|
|
|
8
8
|
|
|
9
9
|
- 🔍 **Call Graph Analysis** - Trace every function call across your entire codebase
|
|
10
10
|
- 🎯 **Impact Analysis** - Know exactly what breaks before you change code
|
|
11
|
-
-
|
|
11
|
+
- 🔄 **Data Flow Analysis** - Track property accesses and detect breaking data shape changes (NEW in v3.5)
|
|
12
|
+
- 🔗 **Cross-File Resolution** - Follows imports and tracks dependencies (90%+ accuracy)
|
|
12
13
|
- 🚀 **FastAPI Support** - Detects HTTP endpoints and dependency injection
|
|
13
14
|
- 💾 **Incremental Updates** - Only re-indexes changed files (git-aware)
|
|
14
15
|
- 🤖 **Claude Code Integration** - MCP server for AI-powered code queries
|
|
15
16
|
|
|
17
|
+
### New in v3.5.0: Data Flow Analysis
|
|
18
|
+
|
|
19
|
+
CodeMap now tracks **property accesses** and **return shapes** to detect breaking changes:
|
|
20
|
+
|
|
21
|
+
```python
|
|
22
|
+
# Developer changes this:
|
|
23
|
+
def get_user():
|
|
24
|
+
return {"id": 1, "name": "John", "email": "john@example.com"}
|
|
25
|
+
|
|
26
|
+
# To this:
|
|
27
|
+
def get_user():
|
|
28
|
+
return {"id": 1, "name": "John"} # email removed!
|
|
29
|
+
|
|
30
|
+
# CodeMap detects:
|
|
31
|
+
# 🔴 CRITICAL: email accessed but no longer returned:
|
|
32
|
+
# • send_welcome_email() - line 78
|
|
33
|
+
# • validate_user_data() - line 120
|
|
34
|
+
# Impact: 15 functions will break
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
**Phase 3 captures:**
|
|
38
|
+
- 6,976+ property accesses (`user.email`, `config.database.host`)
|
|
39
|
+
- 890+ return shapes (object structures)
|
|
40
|
+
- Breaking change detection (removed properties, type changes)
|
|
41
|
+
- Severity scoring (CRITICAL for id/email/token/auth)
|
|
42
|
+
|
|
16
43
|
## Installation
|
|
17
44
|
|
|
18
45
|
```bash
|
|
@@ -122,6 +149,37 @@ Risk Assessment:
|
|
|
122
149
|
|
|
123
150
|
---
|
|
124
151
|
|
|
152
|
+
### `codemap visualize` - Interactive Impact Visualization ✨ NEW
|
|
153
|
+
|
|
154
|
+
Visualize impact analysis in an interactive web interface:
|
|
155
|
+
|
|
156
|
+
```bash
|
|
157
|
+
npx codemap-ai visualize
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
**What it does:**
|
|
161
|
+
1. Analyzes impact of your changes
|
|
162
|
+
2. Starts a local web server (port 37421)
|
|
163
|
+
3. Opens browser with interactive graph visualization
|
|
164
|
+
4. Shows call chains, severity levels, and affected functions
|
|
165
|
+
|
|
166
|
+
**Features:**
|
|
167
|
+
- 🎨 Color-coded severity (Red=CRITICAL, Orange=HIGH, Yellow=MEDIUM, Green=LOW)
|
|
168
|
+
- 🔍 Zoom, pan, and explore the call graph
|
|
169
|
+
- 💎 Changed functions highlighted
|
|
170
|
+
- 📊 Impact statistics sidebar
|
|
171
|
+
- 📝 Detailed function information on click
|
|
172
|
+
|
|
173
|
+
**Perfect for:**
|
|
174
|
+
- Understanding complex impact chains
|
|
175
|
+
- PR reviews and demos
|
|
176
|
+
- Identifying critical paths
|
|
177
|
+
- Sharing impact visualizations with team
|
|
178
|
+
|
|
179
|
+
See [Visualization Guide](./docs/VISUALIZATION.md) for details.
|
|
180
|
+
|
|
181
|
+
---
|
|
182
|
+
|
|
125
183
|
### `codemap reindex` - Force Full Rebuild
|
|
126
184
|
|
|
127
185
|
Force re-index everything from scratch:
|