| 7619 | } |
| 7620 | |
| 7621 | static void install_windsurf_config(const char *binary_path, const char *config_path, |
| 7622 | const char *rules_path, bool dry_run) { |
| 7623 | if (g_install_plan) { |
| 7624 | plan_record("Windsurf", "mcp_config", config_path); |
| 7625 | plan_record("Windsurf", "instructions", rules_path); |
| 7626 | return; |
| 7627 | } |
| 7628 | printf("Windsurf:\n"); |
| 7629 | if (!dry_run) { |
| 7630 | if (!prepare_config_parent(config_path) || |
| 7631 | cbm_install_editor_mcp(binary_path, config_path) != CLI_OK) { |
| 7632 | record_agent_config_error(false, "Windsurf", "mcp_install", config_path); |
| 7633 | } |
| 7634 | if (!prepare_config_parent(rules_path) || |
| 7635 | cbm_upsert_windsurf_rules(rules_path, agent_instructions_content) != CLI_OK) { |
| 7636 | record_agent_config_error(false, "Windsurf", "instructions_install", rules_path); |
| 7637 | } |
| 7638 | } |
| 7639 | printf(" mcp: %s\n", config_path); |
| 7640 | printf(" instructions: %s\n", rules_path); |
| 7641 | } |
| 7642 | |
| 7643 | static bool remove_cline_context_hooks(const char *cline_root, const char *binary_path, |
| 7644 | bool dry_run, bool uninstalling); |
no test coverage detected