fix(gui): Ensure all tools are visible in Tool Preset Manager

This commit is contained in:
2026-03-10 01:30:11 -04:00
parent dcc13efaf7
commit f213d37287
3 changed files with 55 additions and 12 deletions

View File

@@ -79,6 +79,26 @@ AGENT_TOOL_NAMES = [
"py_get_hierarchy"
]
DEFAULT_TOOL_CATEGORIES: Dict[str, List[str]] = {
"General": ["read_file", "list_directory", "search_files", "get_tree", "get_file_summary"],
"Python": [
"py_get_skeleton",
"py_get_code_outline",
"py_get_definition",
"py_get_signature",
"py_get_class_summary",
"py_get_var_declaration",
"py_get_docstring",
"py_update_definition",
"py_set_signature",
"py_set_var_declaration"
],
"Surgical": ["get_file_slice", "set_file_slice", "edit_file"],
"Web": ["web_search", "fetch_url"],
"Analysis": ["py_find_usages", "py_get_imports", "py_check_syntax", "py_get_hierarchy"],
"Runtime": ["run_powershell", "get_ui_performance"]
}
def parse_history_entries(history_strings: list[str], roles: list[str]) -> list[dict[str, Any]]:
import re
entries = []