| 9932 | } |
| 9933 | |
| 9934 | static void uninstall_gitlab_durable_context(const cbm_agent_registry_context_t *registry, |
| 9935 | const char *binary_path, bool dry_run) { |
| 9936 | char hooks_path[CLI_BUF_1K]; |
| 9937 | if (!cbm_gitlab_hooks_path(registry, hooks_path, sizeof(hooks_path))) { |
| 9938 | record_agent_config_error(true, "GitLab Duo CLI", "hook_resolve", "hooks.json"); |
| 9939 | return; |
| 9940 | } |
| 9941 | if (!dry_run && cbm_remove_gitlab_session_hook(hooks_path, binary_path) != CLI_OK) { |
| 9942 | record_agent_config_error(true, "GitLab Duo CLI", "session_hook_uninstall", hooks_path); |
| 9943 | } |
| 9944 | printf(" hook: removed canonical SessionStart entry\n"); |
| 9945 | } |
| 9946 | |
| 9947 | static void uninstall_devin_durable_context(const cbm_agent_registry_context_t *registry, |
| 9948 | const char *binary_path, const char *config_path, |
no test coverage detected