| 9982 | } |
| 9983 | |
| 9984 | static void uninstall_gitlab_durable_context(const cbm_agent_registry_context_t *registry, |
| 9985 | const char *binary_path, bool dry_run) { |
| 9986 | char hooks_path[CLI_BUF_1K]; |
| 9987 | if (!cbm_gitlab_hooks_path(registry, hooks_path, sizeof(hooks_path))) { |
| 9988 | record_agent_config_error(true, "GitLab Duo CLI", "hook_resolve", "hooks.json"); |
| 9989 | return; |
| 9990 | } |
| 9991 | if (!dry_run && cbm_remove_gitlab_session_hook(hooks_path, binary_path) != CLI_OK) { |
| 9992 | record_agent_config_error(true, "GitLab Duo CLI", "session_hook_uninstall", hooks_path); |
| 9993 | } |
| 9994 | printf(" hook: removed canonical SessionStart entry\n"); |
| 9995 | } |
| 9996 | |
| 9997 | static void uninstall_devin_durable_context(const cbm_agent_registry_context_t *registry, |
| 9998 | const char *binary_path, const char *config_path, |
no test coverage detected