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

Function uninstall_devin_durable_context

src/cli/cli.c:11663–11691  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11661}
11662
11663static void uninstall_devin_durable_context(const cbm_agent_registry_context_t *registry,
11664 const char *binary_path, const char *config_path,
11665 bool config_resolved, bool dry_run) {
11666 char devin_dir[CLI_BUF_1K];
11667 char instructions_path[CLI_BUF_1K];
11668 char skills_dir[CLI_BUF_1K];
11669 if (!cbm_devin_user_dir(registry, devin_dir, sizeof(devin_dir))) {
11670 record_agent_config_error(true, "Devin CLI / Local", "context_resolve", "devin");
11671 return;
11672 }
11673 snprintf(instructions_path, sizeof(instructions_path), "%s/AGENTS.md", devin_dir);
11674 snprintf(skills_dir, sizeof(skills_dir), "%s/skills", devin_dir);
11675 bool cleanup_ok = true;
11676 if (!dry_run && config_resolved &&
11677 cbm_remove_devin_context_hooks(config_path, binary_path) != CLI_OK) {
11678 cleanup_ok = false;
11679 record_agent_config_error(true, "Devin CLI / Local", "lifecycle_hook_uninstall",
11680 config_path);
11681 }
11682 const char *hook_status = !config_resolved ? "skipped because the config path was unresolved"
11683 : dry_run ? "canonical lifecycle cleanup planned"
11684 : cleanup_ok
11685 ? "canonical lifecycle cleanup complete; modified or foreign "
11686 "entries preserved"
11687 : "canonical lifecycle cleanup failed";
11688 printf(" hooks: %s\n", hook_status);
11689 uninstall_managed_agent_instructions("Devin CLI / Local", instructions_path, dry_run);
11690 uninstall_agent_skill("Devin CLI / Local", skills_dir, dry_run);
11691}
11692
11693static void uninstall_pi_durable_context(const char *home, bool dry_run) {
11694 char instructions_path[CLI_BUF_1K];

Callers 1

Calls 5

cbm_devin_user_dirFunction · 0.85
uninstall_agent_skillFunction · 0.85

Tested by

no test coverage detected