| 3574 | } |
| 3575 | |
| 3576 | static int cbm_remove_copilot_hooks(const char *manifest_path, const char *binary_path) { |
| 3577 | char *manifest = cbm_build_copilot_hook_manifest(binary_path); |
| 3578 | if (!manifest || !manifest_path) { |
| 3579 | free(manifest); |
| 3580 | return CLI_ERR; |
| 3581 | } |
| 3582 | int rc = cbm_text_remove_owned_document(manifest_path, manifest); |
| 3583 | free(manifest); |
| 3584 | return rc >= 0 ? CLI_OK : CLI_ERR; |
| 3585 | } |
| 3586 | |
| 3587 | static int cbm_upsert_factory_mcp(const char *binary_path, const char *config_path) { |
| 3588 | static const char *const path[] = {"mcpServers"}; |
no test coverage detected