MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / uninstall_qoder_durable_context

Function uninstall_qoder_durable_context

src/cli/cli.c:11837–11867  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11835 bool dry_run);
11836
11837static void uninstall_qoder_durable_context(const char *home, const char *binary_path,
11838 const char *settings_path, bool config_resolved,
11839 bool dry_run) {
11840 char skills_dir[CLI_BUF_1K];
11841 char agent_path[CLI_BUF_1K];
11842 snprintf(skills_dir, sizeof(skills_dir), "%s/.qoder/skills", home);
11843 snprintf(agent_path, sizeof(agent_path), "%s/.qoder/agents/codebase-memory.md", home);
11844 bool cleanup_ok = true;
11845 if (!dry_run && config_resolved &&
11846 cbm_remove_qoder_context_hook(settings_path, binary_path) != CLI_OK) {
11847 cleanup_ok = false;
11848 record_agent_config_error(true, "Qoder CLI", "context_hook_uninstall", settings_path);
11849 }
11850 const char *hook_status = !config_resolved ? "skipped because the settings path was unresolved"
11851 : dry_run ? "canonical lifecycle/read cleanup planned"
11852 : cleanup_ok
11853 ? "canonical lifecycle/read cleanup complete; modified or "
11854 "foreign entries preserved"
11855 : "canonical lifecycle/read cleanup failed";
11856 printf(" hook: %s\n", hook_status);
11857 uninstall_agent_skill("Qoder CLI", skills_dir, dry_run);
11858 uninstall_tiered_agent_profiles(
11859 (cbm_tiered_profile_set_t){
11860 .label = "Qoder CLI",
11861 .verify_path = agent_path,
11862 .binary_path = binary_path,
11863 .legacy_verify_content = legacy_qoder_verify_agent_content,
11864 .dialect = CBM_GRAPH_DIALECT_QODER,
11865 },
11866 dry_run);
11867}
11868
11869static void uninstall_gitlab_durable_context(const cbm_agent_registry_context_t *registry,
11870 const char *binary_path, bool dry_run) {

Callers 1

Calls 4

uninstall_agent_skillFunction · 0.85

Tested by

no test coverage detected