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

Function agent_uninstall_failures_report

src/cli/cli.c:8401–8417  ·  view source on GitHub ↗

The closing list of what uninstall could not clean. Printed AFTER the * executable and the indexes are gone, so nothing in it is a reason to keep * the installation around — each line is one file the user removes an entry * from by hand. */

Source from the content-addressed store, hash-verified

8399 * the installation around — each line is one file the user removes an entry
8400 * from by hand. */
8401static void agent_uninstall_failures_report(bool dry_run) {
8402 if (g_agent_uninstall_failure_count == 0) {
8403 return;
8404 }
8405 (void)fprintf(stderr, "\nerror: uninstall %s with %d agent configuration(s) left uncleaned:\n",
8406 dry_run ? "dry-run finished" : "finished", g_agent_uninstall_failure_count);
8407 for (int i = 0; i < g_agent_uninstall_failure_count; i++) {
8408 const cbm_agent_config_failure_t *entry = &g_agent_uninstall_failures[i];
8409 (void)fprintf(stderr, " %s (%s): %s", entry->agent, entry->operation, entry->path);
8410 if (entry->reason[0]) {
8411 (void)fprintf(stderr, " reason=%s", entry->reason);
8412 }
8413 (void)fputs(entry->detail, stderr);
8414 (void)fputc('\n', stderr);
8415 }
8416 (void)fputs("Remove the codebase-memory-mcp entries from these files by hand.\n", stderr);
8417}
8418
8419static void plan_record(const char *agent, const char *kind, const char *path) {
8420 if (!g_install_plan || !path || !path[0]) {

Callers 1

cbm_cmd_uninstallFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected