| 10344 | bool dry_run); |
| 10345 | |
| 10346 | static void uninstall_qoder_durable_context(const char *home, const char *binary_path, |
| 10347 | const char *settings_path, bool config_resolved, |
| 10348 | bool dry_run) { |
| 10349 | char skills_dir[CLI_BUF_1K]; |
| 10350 | char agent_path[CLI_BUF_1K]; |
| 10351 | snprintf(skills_dir, sizeof(skills_dir), "%s/.qoder/skills", home); |
| 10352 | snprintf(agent_path, sizeof(agent_path), "%s/.qoder/agents/codebase-memory.md", home); |
| 10353 | bool cleanup_ok = true; |
| 10354 | if (!dry_run && config_resolved && |
| 10355 | cbm_remove_qoder_context_hook(settings_path, binary_path) != CLI_OK) { |
| 10356 | cleanup_ok = false; |
| 10357 | record_agent_config_error(true, "Qoder CLI", "context_hook_uninstall", settings_path); |
| 10358 | } |
| 10359 | const char *hook_status = !config_resolved ? "skipped because the settings path was unresolved" |
| 10360 | : dry_run ? "canonical lifecycle/read cleanup planned" |
| 10361 | : cleanup_ok |
| 10362 | ? "canonical lifecycle/read cleanup complete; modified or " |
| 10363 | "foreign entries preserved" |
| 10364 | : "canonical lifecycle/read cleanup failed"; |
| 10365 | printf(" hook: %s\n", hook_status); |
| 10366 | uninstall_agent_skill("Qoder CLI", skills_dir, dry_run); |
| 10367 | uninstall_tiered_agent_profiles( |
| 10368 | (cbm_tiered_profile_set_t){ |
| 10369 | .label = "Qoder CLI", |
| 10370 | .verify_path = agent_path, |
| 10371 | .binary_path = binary_path, |
| 10372 | .legacy_verify_content = legacy_qoder_verify_agent_content, |
| 10373 | .dialect = CBM_GRAPH_DIALECT_QODER, |
| 10374 | }, |
| 10375 | dry_run); |
| 10376 | } |
| 10377 | |
| 10378 | static void uninstall_gitlab_durable_context(const cbm_agent_registry_context_t *registry, |
| 10379 | const char *binary_path, bool dry_run) { |
no test coverage detected