@@ -246,90 +246,48 @@ async fn collect_transitive_deps(
246
246
247
247
/// List data flow analysis tools
248
248
pub fn list_tools ( ) -> Vec < Tool > {
249
- vec ! [
250
- Tool {
251
- name: "trace_data_flow" . to_string( ) ,
252
- title: Some ( "Trace Data Flow" . to_string( ) ) ,
253
- description: "Trace data flow through the codebase with variable and parameter tracking" . to_string( ) ,
254
- input_schema: serde_json:: json!( {
255
- "type" : "object" ,
256
- "properties" : {
257
- "variable_or_parameter" : {
258
- "type" : "string" ,
259
- "description" : "Variable or parameter to trace"
260
- } ,
261
- "direction" : {
262
- "type" : "string" ,
263
- "enum" : [ "forward" , "backward" , "both" ] ,
264
- "default" : "forward" ,
265
- "description" : "Direction to trace data flow"
266
- } ,
267
- "include_transformations" : {
268
- "type" : "boolean" ,
269
- "default" : true ,
270
- "description" : "Include data transformations in trace"
271
- } ,
272
- "max_depth" : {
273
- "type" : "integer" ,
274
- "default" : 10 ,
275
- "description" : "Maximum depth for flow traversal"
276
- } ,
277
- "follow_function_calls" : {
278
- "type" : "boolean" ,
279
- "default" : true ,
280
- "description" : "Follow data flow through function calls"
281
- } ,
282
- "include_field_access" : {
283
- "type" : "boolean" ,
284
- "default" : true ,
285
- "description" : "Include field access in data flow"
286
- }
249
+ vec ! [ Tool {
250
+ name: "trace_data_flow" . to_string( ) ,
251
+ title: Some ( "Trace Data Flow" . to_string( ) ) ,
252
+ description: "Trace data flow through the codebase with variable and parameter tracking"
253
+ . to_string( ) ,
254
+ input_schema: serde_json:: json!( {
255
+ "type" : "object" ,
256
+ "properties" : {
257
+ "variable_or_parameter" : {
258
+ "type" : "string" ,
259
+ "description" : "Variable or parameter to trace"
287
260
} ,
288
- "required" : [ "variable_or_parameter" ]
289
- } ) ,
290
- } ,
291
- Tool {
292
- name: "analyze_transitive_dependencies" . to_string( ) ,
293
- title: Some ( "Analyze Transitive Dependencies" . to_string( ) ) ,
294
- description: "Analyze complete dependency chains, detect cycles, and map transitive relationships" . to_string( ) ,
295
- input_schema: serde_json:: json!( {
296
- "type" : "object" ,
297
- "properties" : {
298
- "target" : {
299
- "type" : "string" ,
300
- "description" : "Symbol ID or file path to analyze"
301
- } ,
302
- "max_depth" : {
303
- "type" : "number" ,
304
- "description" : "Maximum depth for transitive analysis" ,
305
- "default" : 5 ,
306
- "minimum" : 1 ,
307
- "maximum" : 20
308
- } ,
309
- "detect_cycles" : {
310
- "type" : "boolean" ,
311
- "description" : "Detect circular dependencies" ,
312
- "default" : true
313
- } ,
314
- "include_external_dependencies" : {
315
- "type" : "boolean" ,
316
- "description" : "Include external/third-party dependencies" ,
317
- "default" : false
318
- } ,
319
- "dependency_types" : {
320
- "type" : "array" ,
321
- "items" : {
322
- "type" : "string" ,
323
- "enum" : [ "calls" , "imports" , "reads" , "writes" , "extends" , "implements" , "all" ]
324
- } ,
325
- "description" : "Types of dependencies to analyze" ,
326
- "default" : [ "all" ]
327
- }
261
+ "direction" : {
262
+ "type" : "string" ,
263
+ "enum" : [ "forward" , "backward" , "both" ] ,
264
+ "default" : "forward" ,
265
+ "description" : "Direction to trace data flow"
328
266
} ,
329
- "required" : [ "target" ]
330
- } ) ,
331
- }
332
- ]
267
+ "include_transformations" : {
268
+ "type" : "boolean" ,
269
+ "default" : true ,
270
+ "description" : "Include data transformations in trace"
271
+ } ,
272
+ "max_depth" : {
273
+ "type" : "integer" ,
274
+ "default" : 10 ,
275
+ "description" : "Maximum depth for flow traversal"
276
+ } ,
277
+ "follow_function_calls" : {
278
+ "type" : "boolean" ,
279
+ "default" : true ,
280
+ "description" : "Follow data flow through function calls"
281
+ } ,
282
+ "include_field_access" : {
283
+ "type" : "boolean" ,
284
+ "default" : true ,
285
+ "description" : "Include field access in data flow"
286
+ }
287
+ } ,
288
+ "required" : [ "variable_or_parameter" ]
289
+ } ) ,
290
+ } ]
333
291
}
334
292
335
293
/// Call data flow analysis tool
0 commit comments