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

Function uninstall_devin_durable_context

src/cli/cli.c:11882–11910  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11880}
11881
11882static void uninstall_devin_durable_context(const cbm_agent_registry_context_t *registry,
11883 const char *binary_path, const char *config_path,
11884 bool config_resolved, bool dry_run) {
11885 char devin_dir[CLI_BUF_1K];
11886 char instructions_path[CLI_BUF_1K];
11887 char skills_dir[CLI_BUF_1K];
11888 if (!cbm_devin_user_dir(registry, devin_dir, sizeof(devin_dir))) {
11889 record_agent_config_error(true, "Devin CLI / Local", "context_resolve", "devin");
11890 return;
11891 }
11892 snprintf(instructions_path, sizeof(instructions_path), "%s/AGENTS.md", devin_dir);
11893 snprintf(skills_dir, sizeof(skills_dir), "%s/skills", devin_dir);
11894 bool cleanup_ok = true;
11895 if (!dry_run && config_resolved &&
11896 cbm_remove_devin_context_hooks(config_path, binary_path) != CLI_OK) {
11897 cleanup_ok = false;
11898 record_agent_config_error(true, "Devin CLI / Local", "lifecycle_hook_uninstall",
11899 config_path);
11900 }
11901 const char *hook_status = !config_resolved ? "skipped because the config path was unresolved"
11902 : dry_run ? "canonical lifecycle cleanup planned"
11903 : cleanup_ok
11904 ? "canonical lifecycle cleanup complete; modified or foreign "
11905 "entries preserved"
11906 : "canonical lifecycle cleanup failed";
11907 printf(" hooks: %s\n", hook_status);
11908 uninstall_managed_agent_instructions("Devin CLI / Local", instructions_path, dry_run);
11909 uninstall_agent_skill("Devin CLI / Local", skills_dir, dry_run);
11910}
11911
11912static void uninstall_pi_durable_context(const char *home, bool dry_run) {
11913 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