callgraph-mcp 1.4.1 → 1.4.2
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 +4 -14
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -145,7 +145,7 @@ The agent calls `flowmap_find_cycles(workspacePath)`. Each cycle is returned as
|
|
|
145
145
|
|
|
146
146
|
> *"I want to delete code safely. Give me every function that is provably unreachable — not called by anything, not an entry point. Include file and line number."*
|
|
147
147
|
|
|
148
|
-
The agent calls `flowmap_find_orphans(workspacePath)`. This returns every function not reachable from any entry point in the call graph — with file path and line number for each one.
|
|
148
|
+
The agent calls `flowmap_find_orphans(workspacePath)`. This returns every function not reachable from any entry point in the call graph — with file path and line number for each one.
|
|
149
149
|
|
|
150
150
|
---
|
|
151
151
|
|
|
@@ -173,14 +173,6 @@ The agent calls `flowmap_get_callers` for each modified function and `flowmap_ge
|
|
|
173
173
|
|
|
174
174
|
---
|
|
175
175
|
|
|
176
|
-
### Understand a single file before editing it
|
|
177
|
-
|
|
178
|
-
> *"What does `src/auth/middleware.ts` export and what does it call?"*
|
|
179
|
-
|
|
180
|
-
The agent calls `flowmap_analyze_file("/abs/path/to/src/auth/middleware.ts")` to get a precise list of every function, its parameters, return type, and all outgoing calls — without needing to read the file itself.
|
|
181
|
-
|
|
182
|
-
---
|
|
183
|
-
|
|
184
176
|
### Agentic code generation with structural guardrails
|
|
185
177
|
|
|
186
178
|
When an agent is generating new code, it can call `flowmap_analyze_workspace` before and after to verify:
|
|
@@ -194,9 +186,9 @@ When an agent is generating new code, it can call `flowmap_analyze_workspace` be
|
|
|
194
186
|
|
|
195
187
|
> *"We've been using an AI agent to build this codebase for 3 months. How much logic has it silently duplicated?"*
|
|
196
188
|
|
|
197
|
-
Agents optimize for the current instruction, not long-term architecture.
|
|
189
|
+
Agents optimize for the current instruction, not long-term architecture. It copies, tweaks slightly, and moves on. It satisfied the local goal.
|
|
198
190
|
|
|
199
|
-
The agent calls `flowmap_find_duplicates(workspacePath)`. Each cluster in the result is a group of functions with different names — often in different components — that call the same set of dependencies.
|
|
191
|
+
The agent calls `flowmap_find_duplicates(workspacePath)`. Each cluster in the result is a group of functions with different names — often in different components — that call the same set of dependencies.
|
|
200
192
|
|
|
201
193
|
---
|
|
202
194
|
|
|
@@ -204,9 +196,7 @@ The agent calls `flowmap_find_duplicates(workspacePath)`. Each cluster in the re
|
|
|
204
196
|
|
|
205
197
|
> *"The agent has been adding features for weeks. Are there any circular call dependencies I should know about before this becomes a production problem?"*
|
|
206
198
|
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
The agent calls `flowmap_find_cycles(workspacePath)`. Every cycle is returned with the exact functions involved, their file locations, and the specific edges forming the loop. No guessing about which modules "seem" circular. The result tells you precisely where to break the chain.
|
|
199
|
+
The agent calls `flowmap_find_cycles(workspacePath)`. Every cycle is returned with the exact functions involved.
|
|
210
200
|
|
|
211
201
|
---
|
|
212
202
|
|