| 7557 | } |
| 7558 | |
| 7559 | static void install_windsurf_config(const char *binary_path, const char *config_path, |
| 7560 | const char *rules_path, bool dry_run) { |
| 7561 | if (g_install_plan) { |
| 7562 | plan_record("Windsurf", "mcp_config", config_path); |
| 7563 | plan_record("Windsurf", "instructions", rules_path); |
| 7564 | return; |
| 7565 | } |
| 7566 | printf("Windsurf:\n"); |
| 7567 | if (!dry_run) { |
| 7568 | if (!prepare_config_parent(config_path) || |
| 7569 | cbm_install_editor_mcp(binary_path, config_path) != CLI_OK) { |
| 7570 | record_agent_config_error(false, "Windsurf", "mcp_install", config_path); |
| 7571 | } |
| 7572 | if (!prepare_config_parent(rules_path) || |
| 7573 | cbm_upsert_windsurf_rules(rules_path, agent_instructions_content) != CLI_OK) { |
| 7574 | record_agent_config_error(false, "Windsurf", "instructions_install", rules_path); |
| 7575 | } |
| 7576 | } |
| 7577 | printf(" mcp: %s\n", config_path); |
| 7578 | printf(" instructions: %s\n", rules_path); |
| 7579 | } |
| 7580 | |
| 7581 | static bool remove_cline_context_hooks(const char *cline_root, const char *binary_path, |
| 7582 | bool dry_run, bool uninstalling); |
no test coverage detected