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

Function uninstall_devin_durable_context

src/cli/cli.c:9947–9975  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9945}
9946
9947static void uninstall_devin_durable_context(const cbm_agent_registry_context_t *registry,
9948 const char *binary_path, const char *config_path,
9949 bool config_resolved, bool dry_run) {
9950 char devin_dir[CLI_BUF_1K];
9951 char instructions_path[CLI_BUF_1K];
9952 char skills_dir[CLI_BUF_1K];
9953 if (!cbm_devin_user_dir(registry, devin_dir, sizeof(devin_dir))) {
9954 record_agent_config_error(true, "Devin CLI / Local", "context_resolve", "devin");
9955 return;
9956 }
9957 snprintf(instructions_path, sizeof(instructions_path), "%s/AGENTS.md", devin_dir);
9958 snprintf(skills_dir, sizeof(skills_dir), "%s/skills", devin_dir);
9959 bool cleanup_ok = true;
9960 if (!dry_run && config_resolved &&
9961 cbm_remove_devin_context_hooks(config_path, binary_path) != CLI_OK) {
9962 cleanup_ok = false;
9963 record_agent_config_error(true, "Devin CLI / Local", "lifecycle_hook_uninstall",
9964 config_path);
9965 }
9966 const char *hook_status = !config_resolved ? "skipped because the config path was unresolved"
9967 : dry_run ? "canonical lifecycle cleanup planned"
9968 : cleanup_ok
9969 ? "canonical lifecycle cleanup complete; modified or foreign "
9970 "entries preserved"
9971 : "canonical lifecycle cleanup failed";
9972 printf(" hooks: %s\n", hook_status);
9973 uninstall_managed_agent_instructions("Devin CLI / Local", instructions_path, dry_run);
9974 uninstall_agent_skill("Devin CLI / Local", skills_dir, dry_run);
9975}
9976
9977static void uninstall_pi_durable_context(const char *home, bool dry_run) {
9978 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