| 1 | namespace CascadeIDE.Services; |
| 2 | |
| 3 | /// <summary>Команды Hybrid Codebase Index (паритет имён с MCP <c>hybrid-codebase-index</c>, ADR 0105/0106).</summary> |
| 4 | public static partial class IdeCommands |
| 5 | { |
| 6 | // ——— Hybrid Codebase Index (паритет tool name с внешним MCP) |
| 7 | |
| 8 | /// <summary>Статус локального индекса (как tool <c>codebase_index_status</c>). workspace_path и solution_path опциональны — по умолчанию текущее открытое решение. args: workspace_path?:string, solution_path?:string; returns: json; example: {"workspace_path":"D:\\repo"}.</summary> |
| 9 | public const string CodebaseIndexStatus = "codebase_index_status"; |
| 10 | |
| 11 | /// <summary>Гибридный поиск по индексу (как tool <c>codebase_index_search</c>). query обязателен; workspace/solution по умолчанию — текущее решение. args: workspace_path?:string, solution_path?:string, query:string, top_n?:integer, semantic?:boolean, alpha?:number, beta?:number, vec_top_k?:integer, path_prefix?:string, exclude_path_prefixes?:string[], extensions?:string[]; returns: json; example: {"query":"HybridIndexOrchestrator"}.</summary> |
| 12 | public const string CodebaseIndexSearch = "codebase_index_search"; |
| 13 | |
| 14 | /// <summary>Explain одного hit (как tool <c>codebase_index_explain</c>). hit_id обязателен. args: workspace_path?:string, solution_path?:string, hit_id:integer; returns: json; example: {"hit_id":1}.</summary> |
| 15 | public const string CodebaseIndexExplain = "codebase_index_explain"; |
| 16 | |
| 17 | /// <summary>Переиндексация: по умолчанию инкремент (как tool <c>codebase_index_reindex</c>); full_rebuild=true — полная перестройка. args: workspace_path?:string, solution_path?:string, full_rebuild?:boolean; returns: json; example: {}.</summary> |
| 18 | public const string CodebaseIndexReindex = "codebase_index_reindex"; |
| 19 | } |
| 20 | |