| 7364 | } |
| 7365 | |
| 7366 | static void install_windsurf_config(const char *binary_path, const char *config_path, |
| 7367 | const char *rules_path, bool dry_run) { |
| 7368 | if (g_install_plan) { |
| 7369 | plan_record("Windsurf", "mcp_config", config_path); |
| 7370 | plan_record("Windsurf", "instructions", rules_path); |
| 7371 | return; |
| 7372 | } |
| 7373 | printf("Windsurf:\n"); |
| 7374 | if (!dry_run) { |
| 7375 | if (!prepare_config_parent(config_path) || |
| 7376 | cbm_install_editor_mcp(binary_path, config_path) != CLI_OK) { |
| 7377 | record_agent_config_error(false, "Windsurf", "mcp_install", config_path); |
| 7378 | } |
| 7379 | if (!prepare_config_parent(rules_path) || |
| 7380 | cbm_upsert_windsurf_rules(rules_path, agent_instructions_content) != CLI_OK) { |
| 7381 | record_agent_config_error(false, "Windsurf", "instructions_install", rules_path); |
| 7382 | } |
| 7383 | } |
| 7384 | printf(" mcp: %s\n", config_path); |
| 7385 | printf(" instructions: %s\n", rules_path); |
| 7386 | } |
| 7387 | |
| 7388 | static bool remove_cline_context_hooks(const char *cline_root, const char *binary_path, |
| 7389 | bool dry_run, bool uninstalling); |
no test coverage detected