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

Function uninstall_devin_durable_context

src/cli/cli.c:9991–10019  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9989}
9990
9991static void uninstall_devin_durable_context(const cbm_agent_registry_context_t *registry,
9992 const char *binary_path, const char *config_path,
9993 bool config_resolved, bool dry_run) {
9994 char devin_dir[CLI_BUF_1K];
9995 char instructions_path[CLI_BUF_1K];
9996 char skills_dir[CLI_BUF_1K];
9997 if (!cbm_devin_user_dir(registry, devin_dir, sizeof(devin_dir))) {
9998 record_agent_config_error(true, "Devin CLI / Local", "context_resolve", "devin");
9999 return;
10000 }
10001 snprintf(instructions_path, sizeof(instructions_path), "%s/AGENTS.md", devin_dir);
10002 snprintf(skills_dir, sizeof(skills_dir), "%s/skills", devin_dir);
10003 bool cleanup_ok = true;
10004 if (!dry_run && config_resolved &&
10005 cbm_remove_devin_context_hooks(config_path, binary_path) != CLI_OK) {
10006 cleanup_ok = false;
10007 record_agent_config_error(true, "Devin CLI / Local", "lifecycle_hook_uninstall",
10008 config_path);
10009 }
10010 const char *hook_status = !config_resolved ? "skipped because the config path was unresolved"
10011 : dry_run ? "canonical lifecycle cleanup planned"
10012 : cleanup_ok
10013 ? "canonical lifecycle cleanup complete; modified or foreign "
10014 "entries preserved"
10015 : "canonical lifecycle cleanup failed";
10016 printf(" hooks: %s\n", hook_status);
10017 uninstall_managed_agent_instructions("Devin CLI / Local", instructions_path, dry_run);
10018 uninstall_agent_skill("Devin CLI / Local", skills_dir, dry_run);
10019}
10020
10021static void uninstall_pi_durable_context(const char *home, bool dry_run) {
10022 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