| 4222 | } |
| 4223 | |
| 4224 | static int cbm_remove_copilot_hooks(const char *manifest_path, const char *binary_path) { |
| 4225 | char *manifest = cbm_build_copilot_hook_manifest(binary_path); |
| 4226 | if (!manifest || !manifest_path) { |
| 4227 | free(manifest); |
| 4228 | return CLI_ERR; |
| 4229 | } |
| 4230 | int rc = cbm_text_remove_owned_document(manifest_path, manifest); |
| 4231 | free(manifest); |
| 4232 | return rc >= 0 ? CLI_OK : CLI_ERR; |
| 4233 | } |
| 4234 | |
| 4235 | static int cbm_upsert_factory_mcp(const char *binary_path, const char *config_path) { |
| 4236 | static const char *const path[] = {"mcpServers"}; |
no test coverage detected