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. */
| 8399 | * the installation around — each line is one file the user removes an entry |
| 8400 | * from by hand. */ |
| 8401 | static 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 | |
| 8419 | static void plan_record(const char *agent, const char *kind, const char *path) { |
| 8420 | if (!g_install_plan || !path || !path[0]) { |