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

Function uninstall_qoder_durable_context

src/cli/cli.c:9946–9976  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9944 bool dry_run);
9945
9946static void uninstall_qoder_durable_context(const char *home, const char *binary_path,
9947 const char *settings_path, bool config_resolved,
9948 bool dry_run) {
9949 char skills_dir[CLI_BUF_1K];
9950 char agent_path[CLI_BUF_1K];
9951 snprintf(skills_dir, sizeof(skills_dir), "%s/.qoder/skills", home);
9952 snprintf(agent_path, sizeof(agent_path), "%s/.qoder/agents/codebase-memory.md", home);
9953 bool cleanup_ok = true;
9954 if (!dry_run && config_resolved &&
9955 cbm_remove_qoder_context_hook(settings_path, binary_path) != CLI_OK) {
9956 cleanup_ok = false;
9957 record_agent_config_error(true, "Qoder CLI", "context_hook_uninstall", settings_path);
9958 }
9959 const char *hook_status = !config_resolved ? "skipped because the settings path was unresolved"
9960 : dry_run ? "canonical lifecycle/read cleanup planned"
9961 : cleanup_ok
9962 ? "canonical lifecycle/read cleanup complete; modified or "
9963 "foreign entries preserved"
9964 : "canonical lifecycle/read cleanup failed";
9965 printf(" hook: %s\n", hook_status);
9966 uninstall_agent_skill("Qoder CLI", skills_dir, dry_run);
9967 uninstall_tiered_agent_profiles(
9968 (cbm_tiered_profile_set_t){
9969 .label = "Qoder CLI",
9970 .verify_path = agent_path,
9971 .binary_path = binary_path,
9972 .legacy_verify_content = legacy_qoder_verify_agent_content,
9973 .dialect = CBM_GRAPH_DIALECT_QODER,
9974 },
9975 dry_run);
9976}
9977
9978static void uninstall_gitlab_durable_context(const cbm_agent_registry_context_t *registry,
9979 const char *binary_path, bool dry_run) {

Callers 1

Calls 4

uninstall_agent_skillFunction · 0.85

Tested by

no test coverage detected