codegraphcontext 0.2.9__py3-none-any.whl → 0.2.11__py3-none-any.whl
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.
- codegraphcontext/tool_definitions.py +9 -5
- codegraphcontext/tools/code_finder.py +173 -136
- codegraphcontext/tools/graph_builder.py +12 -1
- codegraphcontext/tools/handlers/analysis_handlers.py +17 -12
- codegraphcontext/tools/languages/csharp.py +12 -12
- codegraphcontext/tools/languages/elixir.py +460 -0
- codegraphcontext/tools/languages/java.py +1 -1
- codegraphcontext/utils/tree_sitter_manager.py +3 -0
- {codegraphcontext-0.2.9.dist-info → codegraphcontext-0.2.11.dist-info}/METADATA +2 -2
- {codegraphcontext-0.2.9.dist-info → codegraphcontext-0.2.11.dist-info}/RECORD +14 -13
- {codegraphcontext-0.2.9.dist-info → codegraphcontext-0.2.11.dist-info}/WHEEL +0 -0
- {codegraphcontext-0.2.9.dist-info → codegraphcontext-0.2.11.dist-info}/entry_points.txt +0 -0
- {codegraphcontext-0.2.9.dist-info → codegraphcontext-0.2.11.dist-info}/licenses/LICENSE +0 -0
- {codegraphcontext-0.2.9.dist-info → codegraphcontext-0.2.11.dist-info}/top_level.txt +0 -0
|
@@ -31,7 +31,7 @@ TOOLS = {
|
|
|
31
31
|
"description": "Find relevant code snippets related to a keyword (e.g., function name, class name, or content).",
|
|
32
32
|
"inputSchema": {
|
|
33
33
|
"type": "object",
|
|
34
|
-
"properties": { "query": {"type": "string", "description": "Keyword or phrase to search for"}, "fuzzy_search": {"type": "boolean", "description": "Whether to use fuzzy search", "default": False}, "edit_distance": {"type": "number", "description": "Edit distance for fuzzy search (between 0-2)", "default": 2}},
|
|
34
|
+
"properties": { "query": {"type": "string", "description": "Keyword or phrase to search for"}, "fuzzy_search": {"type": "boolean", "description": "Whether to use fuzzy search", "default": False}, "edit_distance": {"type": "number", "description": "Edit distance for fuzzy search (between 0-2)", "default": 2}, "repo_path": {"type": "string", "description": "Optional: Path to the repository to restrict the search to."}},
|
|
35
35
|
"required": ["query"]
|
|
36
36
|
}
|
|
37
37
|
},
|
|
@@ -43,7 +43,8 @@ TOOLS = {
|
|
|
43
43
|
"properties": {
|
|
44
44
|
"query_type": {"type": "string", "description": "Type of relationship query to run.", "enum": ["find_callers", "find_callees", "find_all_callers", "find_all_callees", "find_importers", "who_modifies", "class_hierarchy", "overrides", "dead_code", "call_chain", "module_deps", "variable_scope", "find_complexity", "find_functions_by_argument", "find_functions_by_decorator"]},
|
|
45
45
|
"target": {"type": "string", "description": "The function, class, or module to analyze."},
|
|
46
|
-
"context": {"type": "string", "description": "Optional: specific file path for precise results."}
|
|
46
|
+
"context": {"type": "string", "description": "Optional: specific file path for precise results."},
|
|
47
|
+
"repo_path": {"type": "string", "description": "Optional: Path to the repository to restrict the search to."}
|
|
47
48
|
},
|
|
48
49
|
"required": ["query_type", "target"]
|
|
49
50
|
}
|
|
@@ -85,7 +86,8 @@ TOOLS = {
|
|
|
85
86
|
"inputSchema": {
|
|
86
87
|
"type": "object",
|
|
87
88
|
"properties": {
|
|
88
|
-
"exclude_decorated_with": {"type": "array", "items": {"type": "string"}, "description": "Optional: A list of decorator names (e.g., '@app.route') to exclude from dead code detection.", "default": []}
|
|
89
|
+
"exclude_decorated_with": {"type": "array", "items": {"type": "string"}, "description": "Optional: A list of decorator names (e.g., '@app.route') to exclude from dead code detection.", "default": []},
|
|
90
|
+
"repo_path": {"type": "string", "description": "Optional: Path to the repository to restrict the search to."}
|
|
89
91
|
}
|
|
90
92
|
}
|
|
91
93
|
},
|
|
@@ -96,7 +98,8 @@ TOOLS = {
|
|
|
96
98
|
"type": "object",
|
|
97
99
|
"properties": {
|
|
98
100
|
"function_name": {"type": "string", "description": "The name of the function to analyze."},
|
|
99
|
-
"path": {"type": "string", "description": "Optional: The full path to the file containing the function for a more specific query."}
|
|
101
|
+
"path": {"type": "string", "description": "Optional: The full path to the file containing the function for a more specific query."},
|
|
102
|
+
"repo_path": {"type": "string", "description": "Optional: Path to the repository to restrict the search to."}
|
|
100
103
|
},
|
|
101
104
|
"required": ["function_name"]
|
|
102
105
|
}
|
|
@@ -107,7 +110,8 @@ TOOLS = {
|
|
|
107
110
|
"inputSchema": {
|
|
108
111
|
"type": "object",
|
|
109
112
|
"properties": {
|
|
110
|
-
"limit": {"type": "integer", "description": "The maximum number of complex functions to return.", "default": 10}
|
|
113
|
+
"limit": {"type": "integer", "description": "The maximum number of complex functions to return.", "default": 10},
|
|
114
|
+
"repo_path": {"type": "string", "description": "Optional: Path to the repository to restrict the search to."}
|
|
111
115
|
}
|
|
112
116
|
}
|
|
113
117
|
},
|