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

Function uninstall_qoder_durable_context

src/cli/cli.c:10573–10603  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10571 bool dry_run);
10572
10573static void uninstall_qoder_durable_context(const char *home, const char *binary_path,
10574 const char *settings_path, bool config_resolved,
10575 bool dry_run) {
10576 char skills_dir[CLI_BUF_1K];
10577 char agent_path[CLI_BUF_1K];
10578 snprintf(skills_dir, sizeof(skills_dir), "%s/.qoder/skills", home);
10579 snprintf(agent_path, sizeof(agent_path), "%s/.qoder/agents/codebase-memory.md", home);
10580 bool cleanup_ok = true;
10581 if (!dry_run && config_resolved &&
10582 cbm_remove_qoder_context_hook(settings_path, binary_path) != CLI_OK) {
10583 cleanup_ok = false;
10584 record_agent_config_error(true, "Qoder CLI", "context_hook_uninstall", settings_path);
10585 }
10586 const char *hook_status = !config_resolved ? "skipped because the settings path was unresolved"
10587 : dry_run ? "canonical lifecycle/read cleanup planned"
10588 : cleanup_ok
10589 ? "canonical lifecycle/read cleanup complete; modified or "
10590 "foreign entries preserved"
10591 : "canonical lifecycle/read cleanup failed";
10592 printf(" hook: %s\n", hook_status);
10593 uninstall_agent_skill("Qoder CLI", skills_dir, dry_run);
10594 uninstall_tiered_agent_profiles(
10595 (cbm_tiered_profile_set_t){
10596 .label = "Qoder CLI",
10597 .verify_path = agent_path,
10598 .binary_path = binary_path,
10599 .legacy_verify_content = legacy_qoder_verify_agent_content,
10600 .dialect = CBM_GRAPH_DIALECT_QODER,
10601 },
10602 dry_run);
10603}
10604
10605static void uninstall_gitlab_durable_context(const cbm_agent_registry_context_t *registry,
10606 const char *binary_path, bool dry_run) {

Callers 1

Calls 4

uninstall_agent_skillFunction · 0.85

Tested by

no test coverage detected