| 10376 | } |
| 10377 | |
| 10378 | static void uninstall_gitlab_durable_context(const cbm_agent_registry_context_t *registry, |
| 10379 | const char *binary_path, bool dry_run) { |
| 10380 | char hooks_path[CLI_BUF_1K]; |
| 10381 | if (!cbm_gitlab_hooks_path(registry, hooks_path, sizeof(hooks_path))) { |
| 10382 | record_agent_config_error(true, "GitLab Duo CLI", "hook_resolve", "hooks.json"); |
| 10383 | return; |
| 10384 | } |
| 10385 | if (!dry_run && cbm_remove_gitlab_session_hook(hooks_path, binary_path) != CLI_OK) { |
| 10386 | record_agent_config_error(true, "GitLab Duo CLI", "session_hook_uninstall", hooks_path); |
| 10387 | } |
| 10388 | printf(" hook: removed canonical SessionStart entry\n"); |
| 10389 | } |
| 10390 | |
| 10391 | static void uninstall_devin_durable_context(const cbm_agent_registry_context_t *registry, |
| 10392 | const char *binary_path, const char *config_path, |
no test coverage detected