Forge
csharpdeeb25a2
1// <auto-generated/>
2using System.Collections.Generic;
3
4namespace CascadeIDE.Services;
5
6internal static class IdeCommandsContractGenerated
7{
8 private static readonly Dictionary<string, IdeReturnKind> ReturnsByCommandId = new(StringComparer.Ordinal)
9 {
10 ["about"] = IdeReturnKind.Text,
11 ["activate_document"] = IdeReturnKind.Text,
12 ["add_control"] = IdeReturnKind.Text,
13 ["append_agent_notes"] = IdeReturnKind.Text,
14 ["append_knowledge_file"] = IdeReturnKind.Text,
15 ["apply_cursor_like_theme"] = IdeReturnKind.Text,
16 ["apply_dark_theme"] = IdeReturnKind.Text,
17 ["apply_edit"] = IdeReturnKind.Text,
18 ["apply_light_theme"] = IdeReturnKind.Text,
19 ["apply_power_classic_theme"] = IdeReturnKind.Text,
20 ["build"] = IdeReturnKind.Json,
21 ["build_solution_ui"] = IdeReturnKind.Text,
22 ["build_structured"] = IdeReturnKind.Json,
23 ["cancel_focus_step"] = IdeReturnKind.Text,
24 ["capture_window"] = IdeReturnKind.Json,
25 ["casa_field_infer"] = IdeReturnKind.Json,
26 ["casa_field_query"] = IdeReturnKind.Json,
27 ["chat_edit_message"] = IdeReturnKind.Json,
28 ["chat_export_readable"] = IdeReturnKind.Json,
29 ["chat_get_product_spine"] = IdeReturnKind.Json,
30 ["chat_get_sedm_scope"] = IdeReturnKind.Json,
31 ["chat_get_selected_message"] = IdeReturnKind.Json,
32 ["chat_open_selected_thread"] = IdeReturnKind.Text,
33 ["chat_record_sedm_decision"] = IdeReturnKind.Text,
34 ["chat_record_sedm_intent"] = IdeReturnKind.Text,
35 ["chat_select_message"] = IdeReturnKind.Text,
36 ["chat_select_next_message"] = IdeReturnKind.Text,
37 ["chat_select_next_thread"] = IdeReturnKind.Text,
38 ["chat_select_prev_message"] = IdeReturnKind.Text,
39 ["chat_select_prev_thread"] = IdeReturnKind.Text,
40 ["chat_set_product_spine"] = IdeReturnKind.Text,
41 ["chat_show_thread_overview"] = IdeReturnKind.Text,
42 ["chat_toggle_product_spine_in_agent_context"] = IdeReturnKind.Text,
43 ["chat_toggle_selected_thinking"] = IdeReturnKind.Text,
44 ["chat_toggle_show_thinking_in_history"] = IdeReturnKind.Text,
45 ["click_control"] = IdeReturnKind.Text,
46 ["close_correspondence_page"] = IdeReturnKind.Text,
47 ["close_document"] = IdeReturnKind.Text,
48 ["close_environment_readiness_page"] = IdeReturnKind.Text,
49 ["cockpit.open_command_line"] = IdeReturnKind.Text,
50 ["codebase_index_explain"] = IdeReturnKind.Json,
51 ["codebase_index_reindex"] = IdeReturnKind.Json,
52 ["codebase_index_search"] = IdeReturnKind.Json,
53 ["codebase_index_status"] = IdeReturnKind.Json,
54 ["compact_hot_context"] = IdeReturnKind.Json,
55 ["confirm_focus_step"] = IdeReturnKind.Text,
56 ["create_new_solution_dialog"] = IdeReturnKind.Text,
57 ["create_project_in_solution"] = IdeReturnKind.Json,
58 ["cycle_code_navigation_map_detail_level"] = IdeReturnKind.Text,
59 ["cycle_code_navigation_map_level"] = IdeReturnKind.Text,
60 ["cycle_code_navigation_map_presentation"] = IdeReturnKind.Text,
61 ["cycle_code_navigation_map_related_graph_layout"] = IdeReturnKind.Text,
62 ["cycle_ui_mode"] = IdeReturnKind.Text,
63 ["debug_attach"] = IdeReturnKind.Text,
64 ["debug_continue"] = IdeReturnKind.Text,
65 ["debug_launch"] = IdeReturnKind.Text,
66 ["debug_ping"] = IdeReturnKind.Text,
67 ["debug_stack_trace"] = IdeReturnKind.Text,
68 ["debug_step_into"] = IdeReturnKind.Text,
69 ["debug_step_out"] = IdeReturnKind.Text,
70 ["debug_step_over"] = IdeReturnKind.Text,
71 ["debug_stop"] = IdeReturnKind.Text,
72 ["debug_stop_context"] = IdeReturnKind.Text,
73 ["debug_variables"] = IdeReturnKind.Text,
74 ["delete_knowledge_file"] = IdeReturnKind.Text,
75 ["delete_knowledge_section"] = IdeReturnKind.Text,
76 ["editor.reveal_code"] = IdeReturnKind.Text,
77 ["editor.select_code"] = IdeReturnKind.Text,
78 ["emergency_stop"] = IdeReturnKind.Text,
79 ["exit_application"] = IdeReturnKind.None,
80 ["explain_current_step"] = IdeReturnKind.Text,
81 ["explain_trace_step"] = IdeReturnKind.Text,
82 ["export_expanded_markdown"] = IdeReturnKind.Text,
83 ["extract_from_archive"] = IdeReturnKind.Json,
84 ["fetch_web_public_url"] = IdeReturnKind.Json,
85 ["fix_failing_tests"] = IdeReturnKind.Text,
86 ["focus_checkpoint"] = IdeReturnKind.Text,
87 ["focus_editor"] = IdeReturnKind.Text,
88 ["focus_rollback"] = IdeReturnKind.Text,
89 ["focus_solution_explorer_filter"] = IdeReturnKind.Text,
90 ["forge.artifact.goto"] = IdeReturnKind.Text,
91 ["forge_lens.auth_status"] = IdeReturnKind.Text,
92 ["forge_lens.connect"] = IdeReturnKind.Text,
93 ["forge_lens.create_issue"] = IdeReturnKind.Text,
94 ["forge_lens.create_merge_request"] = IdeReturnKind.Text,
95 ["forge_lens.disconnect"] = IdeReturnKind.Text,
96 ["fork_chat_thread"] = IdeReturnKind.Text,
97 ["get_build_output"] = IdeReturnKind.Json,
98 ["get_cockpit_surface"] = IdeReturnKind.Json,
99 ["get_code_metrics"] = IdeReturnKind.Json,
100 ["get_code_navigation_context"] = IdeReturnKind.Json,
101 ["get_colors_under_cursor"] = IdeReturnKind.Json,
102 ["get_control_appearance"] = IdeReturnKind.Json,
103 ["get_correspondence_context"] = IdeReturnKind.Json,
104 ["get_current_file_diagnostics"] = IdeReturnKind.Json,
105 ["get_debug_snapshot"] = IdeReturnKind.Json,
106 ["get_editor_content_range"] = IdeReturnKind.Json,
107 ["get_editor_state"] = IdeReturnKind.Json,
108 ["get_ide_state"] = IdeReturnKind.Json,
109 ["get_open_document_text"] = IdeReturnKind.Text,
110 ["get_solution_files"] = IdeReturnKind.Json,
111 ["get_solution_info"] = IdeReturnKind.Json,
112 ["get_supported_editor_languages"] = IdeReturnKind.Json,
113 ["get_ui_layout"] = IdeReturnKind.Json,
114 ["get_ui_modes_diagnostics"] = IdeReturnKind.Json,
115 ["get_ui_theme"] = IdeReturnKind.Json,
116 ["git_branch"] = IdeReturnKind.Json,
117 ["git_commit"] = IdeReturnKind.Text,
118 ["git_diff"] = IdeReturnKind.Json,
119 ["git_fetch"] = IdeReturnKind.Json,
120 ["git_log"] = IdeReturnKind.Json,
121 ["git_preflight"] = IdeReturnKind.Json,
122 ["git_preflight_fix_safe"] = IdeReturnKind.Json,
123 ["git_pull"] = IdeReturnKind.Json,
124 ["git_push"] = IdeReturnKind.Text,
125 ["git_show"] = IdeReturnKind.Json,
126 ["git_status"] = IdeReturnKind.Json,
127 ["git_submodule"] = IdeReturnKind.Json,
128 ["go_to_position"] = IdeReturnKind.Text,
129 ["hide_build_output_panel"] = IdeReturnKind.Text,
130 ["highlight_control"] = IdeReturnKind.Text,
131 ["ide_agent_cancel"] = IdeReturnKind.Json,
132 ["ide_agent_last"] = IdeReturnKind.Json,
133 ["ide_agent_sandbox_prepare"] = IdeReturnKind.Json,
134 ["ide_agent_status"] = IdeReturnKind.Json,
135 ["ide_agent_verify"] = IdeReturnKind.Json,
136 ["ide_agent_verify_batch"] = IdeReturnKind.Json,
137 ["install_ollama_model"] = IdeReturnKind.Text,
138 ["intercom.agent_provision"] = IdeReturnKind.Text,
139 ["intercom.attach_diagnostic"] = IdeReturnKind.Text,
140 ["intercom.attach_scope"] = IdeReturnKind.Text,
141 ["intercom.attach_selection"] = IdeReturnKind.Text,
142 ["intercom.connect_team"] = IdeReturnKind.Text,
143 ["intercom.disconnect_team"] = IdeReturnKind.Text,
144 ["intercom.message_relate"] = IdeReturnKind.Json,
145 ["intercom.messages_for_code"] = IdeReturnKind.Json,
146 ["intercom.reveal_attachment"] = IdeReturnKind.Text,
147 ["intercom.server_start"] = IdeReturnKind.Text,
148 ["intercom.server_status"] = IdeReturnKind.Text,
149 ["intercom.server_stop"] = IdeReturnKind.Text,
150 ["intercom.team_members"] = IdeReturnKind.Text,
151 ["investigate_nullref"] = IdeReturnKind.Text,
152 ["list_agent_notes_revisions"] = IdeReturnKind.Json,
153 ["list_knowledge_files"] = IdeReturnKind.Json,
154 ["list_tools"] = IdeReturnKind.Json,
155 ["load_solution"] = IdeReturnKind.Text,
156 ["memory_health"] = IdeReturnKind.Json,
157 ["move_document_to_group_1"] = IdeReturnKind.Text,
158 ["move_document_to_group_2"] = IdeReturnKind.Text,
159 ["move_document_to_group_3"] = IdeReturnKind.Text,
160 ["open_chat_clarification_batch"] = IdeReturnKind.Text,
161 ["open_docs_template"] = IdeReturnKind.Text,
162 ["open_file"] = IdeReturnKind.Text,
163 ["open_file_dialog"] = IdeReturnKind.Text,
164 ["open_folder_dialog"] = IdeReturnKind.Text,
165 ["open_preview_window"] = IdeReturnKind.Text,
166 ["open_settings"] = IdeReturnKind.Text,
167 ["open_solution_dialog"] = IdeReturnKind.Text,
168 ["open_theme_file_dialog"] = IdeReturnKind.Text,
169 ["open_workspace_adr_correspondence"] = IdeReturnKind.Text,
170 ["open_workspace_feature_docs"] = IdeReturnKind.Text,
171 ["pause_autonomous"] = IdeReturnKind.Text,
172 ["ping"] = IdeReturnKind.Json,
173 ["prepare_commit"] = IdeReturnKind.Text,
174 ["read_agent_notes"] = IdeReturnKind.Text,
175 ["read_hot_context"] = IdeReturnKind.Json,
176 ["read_knowledge_file"] = IdeReturnKind.Text,
177 ["read_workspace_file"] = IdeReturnKind.Json,
178 ["refresh_workspace_snapshot"] = IdeReturnKind.Text,
179 ["remove_breakpoint"] = IdeReturnKind.Text,
180 ["reopen_closed_document"] = IdeReturnKind.Text,
181 ["request_confirmation"] = IdeReturnKind.Text,
182 ["reset_ui_language_to_system"] = IdeReturnKind.Text,
183 ["restart_mcp_clients"] = IdeReturnKind.Json,
184 ["resume_autonomous"] = IdeReturnKind.Text,
185 ["reveal_editor_range"] = IdeReturnKind.Text,
186 ["rollback_agent_notes"] = IdeReturnKind.Text,
187 ["rollback_trace_step"] = IdeReturnKind.Text,
188 ["route_context"] = IdeReturnKind.Json,
189 ["run_affected_tests"] = IdeReturnKind.Json,
190 ["run_code_cleanup"] = IdeReturnKind.Json,
191 ["run_tests"] = IdeReturnKind.Json,
192 ["safety.autonomous"] = IdeReturnKind.Text,
193 ["safety.confirm"] = IdeReturnKind.Text,
194 ["safety.observe"] = IdeReturnKind.Text,
195 ["save_document"] = IdeReturnKind.Json,
196 ["search_agent_notes"] = IdeReturnKind.Json,
197 ["search_web_public_query"] = IdeReturnKind.Json,
198 ["search_workspace_text"] = IdeReturnKind.Json,
199 ["select"] = IdeReturnKind.Text,
200 ["send_chat"] = IdeReturnKind.Text,
201 ["send_keys"] = IdeReturnKind.Text,
202 ["set_breakpoint"] = IdeReturnKind.Text,
203 ["set_build_output_visible"] = IdeReturnKind.Text,
204 ["set_code_navigation_map_level"] = IdeReturnKind.Text,
205 ["set_control_layout"] = IdeReturnKind.Text,
206 ["set_control_text"] = IdeReturnKind.Text,
207 ["set_dual_editor_group"] = IdeReturnKind.Text,
208 ["set_focus"] = IdeReturnKind.Text,
209 ["set_git_panel_visible"] = IdeReturnKind.Text,
210 ["set_instrumentation_dock_visible"] = IdeReturnKind.Text,
211 ["set_mfd_region_expanded"] = IdeReturnKind.Text,
212 ["set_mfd_shell_page"] = IdeReturnKind.Text,
213 ["set_panel_size"] = IdeReturnKind.Text,
214 ["set_pfd_region_expanded"] = IdeReturnKind.Text,
215 ["set_primary_work_surface"] = IdeReturnKind.Text,
216 ["set_secondary_shell_page"] = IdeReturnKind.Text,
217 ["set_single_editor_group"] = IdeReturnKind.Text,
218 ["set_terminal_visible"] = IdeReturnKind.Text,
219 ["set_triple_editor_group"] = IdeReturnKind.Text,
220 ["set_ui_language"] = IdeReturnKind.Text,
221 ["set_ui_mode"] = IdeReturnKind.Text,
222 ["set_ui_theme"] = IdeReturnKind.Text,
223 ["show_build_output_panel"] = IdeReturnKind.Text,
224 ["show_chat_page"] = IdeReturnKind.Text,
225 ["show_correspondence_page"] = IdeReturnKind.Text,
226 ["show_editor_preview"] = IdeReturnKind.Text,
227 ["show_environment_readiness_page"] = IdeReturnKind.Text,
228 ["show_hybrid_index_page"] = IdeReturnKind.Text,
229 ["show_markdown_preview_page"] = IdeReturnKind.Text,
230 ["show_pfd_region_panel"] = IdeReturnKind.Text,
231 ["show_preview"] = IdeReturnKind.Text,
232 ["show_related_files_mfd_page"] = IdeReturnKind.Text,
233 ["show_solution_explorer_page"] = IdeReturnKind.Text,
234 ["show_terminal_panel"] = IdeReturnKind.Text,
235 ["show_web_ai_portal_page"] = IdeReturnKind.Text,
236 ["start_autonomous"] = IdeReturnKind.Text,
237 ["submit_chat_clarification_response"] = IdeReturnKind.Text,
238 ["toggle_build_output"] = IdeReturnKind.Text,
239 ["toggle_command_palette"] = IdeReturnKind.Text,
240 ["toggle_git_panel"] = IdeReturnKind.Text,
241 ["toggle_instrumentation_dock"] = IdeReturnKind.Text,
242 ["toggle_mfd_host_window"] = IdeReturnKind.Text,
243 ["toggle_mfd_region_expanded"] = IdeReturnKind.Text,
244 ["toggle_pfd_region_expanded"] = IdeReturnKind.Text,
245 ["toggle_pin_document"] = IdeReturnKind.Text,
246 ["toggle_pm_split_host_window"] = IdeReturnKind.Text,
247 ["toggle_primary_work_surface"] = IdeReturnKind.Text,
248 ["toggle_terminal"] = IdeReturnKind.Text,
249 ["toggle_workspace_splitters_lock"] = IdeReturnKind.Text,
250 ["upsert_agent_notes_section"] = IdeReturnKind.Text,
251 ["upsert_knowledge_section"] = IdeReturnKind.Text,
252 ["workspace_go_to_file"] = IdeReturnKind.Text,
253 ["write_agent_notes"] = IdeReturnKind.Text,
254 ["write_knowledge_file"] = IdeReturnKind.Text,
255 };
256
257 private static readonly Dictionary<string, string> ExampleByCommandId = new(StringComparer.Ordinal)
258 {
259 ["activate_document"] = "{\"file_path\":\"C:\\\\\\\\tmp\\\\\\\\a.cs\"}",
260 ["add_control"] = "{\"parent_name\":\"Root\",\"control_type\":\"TextBlock\",\"content\":\"Hi\"}",
261 ["append_agent_notes"] = "{\"content\":\"\\\\n# Update\\\\n...\"}",
262 ["append_knowledge_file"] = "{\"file_path\":\"META/x.md\",\"content\":\"more\",\"save_revision\":true}",
263 ["apply_edit"] = "{\"file_path\":\"C:\\\\tmp\\\\a.cs\",\"start_line\":1,\"start_column\":1,\"end_line\":1,\"end_column\":1,\"new_text\":\"// hi\\n\"}",
264 ["capture_window"] = "{\"scope\":\"all\",\"workspace_path\":\"D:\\\\\\\\tmp\\\\\\\\ws\",\"output_path\":\".cascade-ide/window-{n}.png\"}",
265 ["casa_field_infer"] = "{\"query\":\"согласно приказу\"}",
266 ["casa_field_query"] = "{\"query\":\"import knowledge delta\",\"open\":true}",
267 ["chat_edit_message"] = "{\"message_id\":\"a1b2c3d4e5f6789012345678901234ab\",\"new_content\":\"fixed text\"}",
268 ["chat_export_readable"] = "{\"write_file\":true}",
269 ["chat_get_sedm_scope"] = "{}",
270 ["chat_record_sedm_decision"] = "{\"outcome\":\"S1 events in log\",\"chosen_approach\":\"append-only\",\"touched_paths\":[\"Features/Chat/Foo.cs\"]}",
271 ["chat_record_sedm_intent"] = "{\"outcome\":\"scope strip shows open worklines\",\"chosen_approach\":\"meta projection\",\"considered\":[{\"approach\":\"New Chat\",\"rejected_because\":\"flat chat\"}]}",
272 ["chat_select_message"] = "{\"ordinal\":3}",
273 ["chat_set_product_spine"] = "{\"current_focus\":\"Topic cards + spine MCP\",\"milestones\":\"ADR 0096\\\\nMCP get/set\"}",
274 ["click_control"] = "{\"name\":\"BuildButton\"}",
275 ["close_document"] = "{\"file_path\":\"C:\\\\\\\\tmp\\\\\\\\a.cs\"}",
276 ["cockpit.open_command_line"] = "{\"initial_text\":\"/intercom message anchors list\"}",
277 ["codebase_index_explain"] = "{\"hit_id\":1}",
278 ["codebase_index_reindex"] = "{}",
279 ["codebase_index_search"] = "{\"query\":\"HybridIndexOrchestrator\"}",
280 ["codebase_index_status"] = "{\"workspace_path\":\"D:\\\\repo\"}",
281 ["compact_hot_context"] = "{\"apply\":false}",
282 ["create_project_in_solution"] = "{\"template\":\"console\",\"project_name\":\"MyApp\"}",
283 ["debug_attach"] = "{\"workspace_path\":\"D:\\\\\\\\proj\",\"process_id\":12345}",
284 ["debug_launch"] = "{\"workspace_path\":\"D:\\\\\\\\proj\",\"target_path\":\"samples\\\\\\\\DebugTarget\\\\\\\\bin\\\\\\\\Debug\\\\\\\\net10.0\\\\\\\\DebugTarget.dll\"}",
285 ["debug_stop_context"] = "{\"frame_index\":0,\"fast\":true}",
286 ["debug_variables"] = "{\"frame_index\":0}",
287 ["delete_knowledge_file"] = "{\"file_path\":\"tmp.md\"}",
288 ["delete_knowledge_section"] = "{\"file_path\":\"index.md\",\"section_id\":\"foo\"}",
289 ["editor.reveal_code"] = "{\"code_ref\":\"[M:Run]\",\"active_file\":\"src/Foo.cs\",\"duration_ms\":4000}",
290 ["editor.select_code"] = "{\"code_ref\":\"[M:Run]\",\"active_file\":\"src/Foo.cs\"}",
291 ["explain_trace_step"] = "{\"step_index\":0}",
292 ["extract_from_archive"] = "{\"query\":\"ActiveProjectId\",\"head_limit\":10,\"context_lines\":2}",
293 ["forge.artifact.goto"] = "{\"bracket\":\"[FRG:issue:1]\",\"select_code\":true}",
294 ["forge_lens.auth_status"] = "{\"base_url\":\"http://127.0.0.1:8770\"}",
295 ["forge_lens.connect"] = "{\"base_url\":\"http://127.0.0.1:8770\"}",
296 ["forge_lens.create_issue"] = "{\"title\":\"Zone leak\",\"file_path\":\"src/Zones.cs\",\"line_start\":10}",
297 ["forge_lens.create_merge_request"] = "{\"title\":\"feat: zones\",\"source_branch\":\"feat/zones\"}",
298 ["forge_lens.disconnect"] = "{\"base_url\":\"http://127.0.0.1:8770\"}",
299 ["fork_chat_thread"] = "{\"display_title\":\"ADR review\"}",
300 ["get_code_metrics"] = "{\"scope\":\"solution\",\"path\":\".\"}",
301 ["get_code_navigation_context"] = "{\"mode\":\"related\",\"file_path\":\"src/Foo.cs\",\"preset\":\"no_namespace_noise\",\"level\":\"controlFlow\"}",
302 ["get_control_appearance"] = "{\"name\":\"BuildButton\"}",
303 ["get_correspondence_context"] = "{\"file_path\":\"Features/WorkspaceNavigation/Application/DocReverseAnchorResolver.cs\"}",
304 ["get_editor_content_range"] = "{\"start_line\":1,\"end_line\":40}",
305 ["get_editor_state"] = "{\"max_preview_chars\":0}",
306 ["git_branch"] = "{\"action\":\"list\"}",
307 ["git_commit"] = "{\"message\":\"chore: update\",\"paths\":[\"a.txt\"]}",
308 ["git_diff"] = "{\"path\":\"README.md\",\"staged\":false}",
309 ["git_fetch"] = "{\"prune\":true,\"dry_run\":true}",
310 ["git_log"] = "{\"n\":20}",
311 ["git_preflight"] = "{\"staged\":false,\"include_untracked\":true,\"include_patches\":true}",
312 ["git_preflight_fix_safe"] = "{\"include_patches\":true}",
313 ["git_pull"] = "{\"ff_only\":true}",
314 ["git_push"] = "{\"remote\":\"origin\",\"branch\":\"main\",\"dry_run\":true}",
315 ["git_show"] = "{\"rev\":\"HEAD\",\"stat_only\":true}",
316 ["git_submodule"] = "{\"action\":\"status\"}",
317 ["go_to_position"] = "{\"file_path\":\"C:\\\\tmp\\\\a.cs\",\"line\":10,\"column\":1}",
318 ["highlight_control"] = "{\"name\":\"BuildButton\"}",
319 ["ide_agent_sandbox_prepare"] = "{\"profile\":\"agent_ephemeral\"}",
320 ["ide_agent_verify"] = "{\"policy\":\"standard\"}",
321 ["install_ollama_model"] = "{\"model\":\"qwen2.5-coder:7b\"}",
322 ["intercom.agent_provision"] = "{\"display_name\":\"Nova\"}",
323 ["intercom.message_relate"] = "{\"start_ordinal\":3,\"end_ordinal\":5,\"use_selection\":true}",
324 ["intercom.messages_for_code"] = "{\"use_selection\":true}",
325 ["intercom.reveal_attachment"] = "{\"file\":\"src/Foo.cs\",\"line_start\":10,\"line_end\":25}",
326 ["intercom.server_start"] = "{\"base_url\":\"http://127.0.0.1:5080\"}",
327 ["list_agent_notes_revisions"] = "{\"limit\":20}",
328 ["list_knowledge_files"] = "{\"subdir\":\"work\",\"knowledge_root_id\":\"group\"}",
329 ["load_solution"] = "{\"path\":\"D:\\\\repo\\\\MyApp.csproj\"}",
330 ["memory_health"] = "{\"active_scope\":\"door-to-singularity\"}",
331 ["move_document_to_group_1"] = "{\"file_path\":\"C:\\\\\\\\tmp\\\\\\\\a.cs\"}",
332 ["move_document_to_group_2"] = "{\"file_path\":\"C:\\\\\\\\tmp\\\\\\\\a.cs\"}",
333 ["move_document_to_group_3"] = "{\"file_path\":\"C:\\\\\\\\tmp\\\\\\\\a.cs\"}",
334 ["open_chat_clarification_batch"] = "{\"batch_json\":\"{\\\"id\\\":\\\"...\\\",\\\"title\\\":\\\"Нужно уточнить\\\",\\\"items\\\":[]}\"}",
335 ["open_docs_template"] = "{\"path\":\"docs/templates/feature.md\"}",
336 ["open_file"] = "{\"path\":\"C:\\\\tmp\\\\a.txt\"}",
337 ["read_hot_context"] = "{\"active_scope\":\"door-to-singularity\"}",
338 ["read_knowledge_file"] = "{\"file_path\":\"META/integrity-core.md\",\"offset\":2,\"limit\":20}",
339 ["read_workspace_file"] = "{\"file_path\":\"src/Program.cs\"}",
340 ["remove_breakpoint"] = "{\"file_path\":\"C:\\\\tmp\\\\a.cs\",\"line\":42}",
341 ["request_confirmation"] = "{\"message\":\"Продолжить?\"}",
342 ["reveal_editor_range"] = "{\"file_path\":\"C:\\\\tmp\\\\a.cs\",\"start_line\":10,\"end_line\":25,\"duration_ms\":4000}",
343 ["rollback_agent_notes"] = "{\"revision_file\":\"20260402-120000-write-acde123.md\"}",
344 ["rollback_trace_step"] = "{\"step_index\":0}",
345 ["route_context"] = "{\"query\":\"CascadeIDE notes structure\",\"max_sections\":5,\"max_chars\":12000}",
346 ["run_affected_tests"] = "{\"changed_paths\":[\"a.cs\",\"b.cs\"]}",
347 ["run_code_cleanup"] = "{\"include_path\":\"src\"}",
348 ["save_document"] = "{\"file_path\":\"src/Program.cs\"}",
349 ["search_agent_notes"] = "{\"query\":\"ActiveProjectId\",\"head_limit\":20}",
350 ["select"] = "{\"file_path\":\"C:\\\\tmp\\\\a.cs\",\"start_line\":1,\"start_column\":1,\"end_line\":1,\"end_column\":10}",
351 ["send_chat"] = "{\"message\":\"hello\"}",
352 ["send_keys"] = "{\"keys\":\"Ctrl+S\"}",
353 ["set_breakpoint"] = "{\"file_path\":\"C:\\\\tmp\\\\a.cs\",\"line\":42}",
354 ["set_build_output_visible"] = "{\"visible\":true}",
355 ["set_code_navigation_map_level"] = "{\"level\":\"file\"}",
356 ["set_control_layout"] = "{\"name\":\"BuildButton\",\"layout\":\"{}\"}",
357 ["set_control_text"] = "{\"name\":\"ChatInput\",\"text\":\"hi\"}",
358 ["set_focus"] = "{\"name\":\"Editor\"}",
359 ["set_git_panel_visible"] = "{\"visible\":true}",
360 ["set_instrumentation_dock_visible"] = "{\"visible\":true}",
361 ["set_mfd_region_expanded"] = "{\"visible\":true}",
362 ["set_mfd_shell_page"] = "{\"page\":\"Chat\"}",
363 ["set_panel_size"] = "{\"panel\":\"terminal\",\"height\":300}",
364 ["set_pfd_region_expanded"] = "{\"visible\":true}",
365 ["set_primary_work_surface"] = "{\"surface\":\"intercom\"}",
366 ["set_secondary_shell_page"] = "{\"page\":\"Chat\"}",
367 ["set_terminal_visible"] = "{\"visible\":true}",
368 ["set_ui_language"] = "{\"culture\":\"ru-RU\"}",
369 ["set_ui_mode"] = "{\"mode\":\"Flight\"}",
370 ["set_ui_theme"] = "{\"theme\":\"{}\"}",
371 ["show_preview"] = "{\"title\":\"Plan\",\"content\":\"- step 1\\n- step 2\"}",
372 ["submit_chat_clarification_response"] = "{\"response_json\":\"{\\\"batchId\\\":\\\"...\\\",\\\"answersByItemId\\\":{\\\"scope\\\":\\\"mfd\\\"}}\"}",
373 ["toggle_pin_document"] = "{\"file_path\":\"C:\\\\\\\\tmp\\\\\\\\a.cs\"}",
374 ["upsert_agent_notes_section"] = "{\"section_id\":\"active\",\"content\":\"ActiveProjectId: cascade-ide\"}",
375 ["upsert_knowledge_section"] = "{\"file_path\":\"index.md\",\"section_id\":\"foo\",\"content\":\"body\"}",
376 ["write_agent_notes"] = "{\"content\":\"notes\"}",
377 ["write_knowledge_file"] = "{\"file_path\":\"META/x.md\",\"content\":\"# Hi\",\"save_revision\":true}",
378 };
379
380 public static bool TryGetReturns(string commandId, out IdeReturnKind kind) =>
381 ReturnsByCommandId.TryGetValue(commandId, out kind);
382
383 public static bool TryGetExample(string commandId, out string example) =>
384 ExampleByCommandId.TryGetValue(commandId, out example);
385}
386
View only · write via MCP/CIDE