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

Function uninstall_devin_durable_context

src/cli/cli.c:10618–10646  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10616}
10617
10618static void uninstall_devin_durable_context(const cbm_agent_registry_context_t *registry,
10619 const char *binary_path, const char *config_path,
10620 bool config_resolved, bool dry_run) {
10621 char devin_dir[CLI_BUF_1K];
10622 char instructions_path[CLI_BUF_1K];
10623 char skills_dir[CLI_BUF_1K];
10624 if (!cbm_devin_user_dir(registry, devin_dir, sizeof(devin_dir))) {
10625 record_agent_config_error(true, "Devin CLI / Local", "context_resolve", "devin");
10626 return;
10627 }
10628 snprintf(instructions_path, sizeof(instructions_path), "%s/AGENTS.md", devin_dir);
10629 snprintf(skills_dir, sizeof(skills_dir), "%s/skills", devin_dir);
10630 bool cleanup_ok = true;
10631 if (!dry_run && config_resolved &&
10632 cbm_remove_devin_context_hooks(config_path, binary_path) != CLI_OK) {
10633 cleanup_ok = false;
10634 record_agent_config_error(true, "Devin CLI / Local", "lifecycle_hook_uninstall",
10635 config_path);
10636 }
10637 const char *hook_status = !config_resolved ? "skipped because the config path was unresolved"
10638 : dry_run ? "canonical lifecycle cleanup planned"
10639 : cleanup_ok
10640 ? "canonical lifecycle cleanup complete; modified or foreign "
10641 "entries preserved"
10642 : "canonical lifecycle cleanup failed";
10643 printf(" hooks: %s\n", hook_status);
10644 uninstall_managed_agent_instructions("Devin CLI / Local", instructions_path, dry_run);
10645 uninstall_agent_skill("Devin CLI / Local", skills_dir, dry_run);
10646}
10647
10648static void uninstall_pi_durable_context(const char *home, bool dry_run) {
10649 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