| 11616 | bool dry_run); |
| 11617 | |
| 11618 | static void uninstall_qoder_durable_context(const char *home, const char *binary_path, |
| 11619 | const char *settings_path, bool config_resolved, |
| 11620 | bool dry_run) { |
| 11621 | char skills_dir[CLI_BUF_1K]; |
| 11622 | char agent_path[CLI_BUF_1K]; |
| 11623 | snprintf(skills_dir, sizeof(skills_dir), "%s/.qoder/skills", home); |
| 11624 | snprintf(agent_path, sizeof(agent_path), "%s/.qoder/agents/codebase-memory.md", home); |
| 11625 | bool cleanup_ok = true; |
| 11626 | if (!dry_run && config_resolved && |
| 11627 | cbm_remove_qoder_context_hook(settings_path, binary_path) != CLI_OK) { |
| 11628 | cleanup_ok = false; |
| 11629 | record_agent_config_error(true, "Qoder CLI", "context_hook_uninstall", settings_path); |
| 11630 | } |
| 11631 | const char *hook_status = !config_resolved ? "skipped because the settings path was unresolved" |
| 11632 | : dry_run ? "canonical lifecycle/read cleanup planned" |
| 11633 | : cleanup_ok |
| 11634 | ? "canonical lifecycle/read cleanup complete; modified or " |
| 11635 | "foreign entries preserved" |
| 11636 | : "canonical lifecycle/read cleanup failed"; |
| 11637 | printf(" hook: %s\n", hook_status); |
| 11638 | uninstall_agent_skill("Qoder CLI", skills_dir, dry_run); |
| 11639 | uninstall_tiered_agent_profiles( |
| 11640 | (cbm_tiered_profile_set_t){ |
| 11641 | .label = "Qoder CLI", |
| 11642 | .verify_path = agent_path, |
| 11643 | .binary_path = binary_path, |
| 11644 | .legacy_verify_content = legacy_qoder_verify_agent_content, |
| 11645 | .dialect = CBM_GRAPH_DIALECT_QODER, |
| 11646 | }, |
| 11647 | dry_run); |
| 11648 | } |
| 11649 | |
| 11650 | static void uninstall_gitlab_durable_context(const cbm_agent_registry_context_t *registry, |
| 11651 | const char *binary_path, bool dry_run) { |
no test coverage detected