Print detected agent names on a single line. */
| 7073 | |
| 7074 | /* Print detected agent names on a single line. */ |
| 7075 | static void print_detected_agents(const cbm_detected_agents_t *a, const char *home) { |
| 7076 | struct { |
| 7077 | bool flag; |
| 7078 | const char *name; |
| 7079 | } agents[] = { |
| 7080 | {a->claude_code, "Claude-Code"}, |
| 7081 | {a->codex, "Codex"}, |
| 7082 | {a->gemini, "Gemini-CLI"}, |
| 7083 | {a->zed, "Zed"}, |
| 7084 | {a->opencode, "OpenCode"}, |
| 7085 | {a->antigravity, "Antigravity"}, |
| 7086 | {a->aider, "Aider"}, |
| 7087 | {a->kilocode, "KiloCode"}, |
| 7088 | {a->vscode, "VS-Code"}, |
| 7089 | {a->cursor, "Cursor"}, |
| 7090 | {a->windsurf, "Windsurf"}, |
| 7091 | {a->augment, "Augment-Auggie"}, |
| 7092 | {a->openclaw, "OpenClaw"}, |
| 7093 | {a->kiro, "Kiro"}, |
| 7094 | {a->junie, "Junie"}, |
| 7095 | {a->hermes, "Hermes"}, |
| 7096 | {a->openhands, "OpenHands"}, |
| 7097 | {a->cline, "Cline"}, |
| 7098 | {a->warp, "Warp"}, |
| 7099 | {a->qwen, "Qwen-Code"}, |
| 7100 | {a->copilot_cli, "Copilot-CLI"}, |
| 7101 | {a->factory_droid, "Factory-Droid"}, |
| 7102 | {a->crush, "Crush"}, |
| 7103 | {a->goose, "Goose"}, |
| 7104 | {a->mistral_vibe, "Mistral-Vibe"}, |
| 7105 | }; |
| 7106 | printf("Detected agents:"); |
| 7107 | bool any = false; |
| 7108 | for (int i = 0; i < (int)(sizeof(agents) / sizeof(agents[0])); i++) { |
| 7109 | if (agents[i].flag) { |
| 7110 | printf(" %s", agents[i].name); |
| 7111 | any = true; |
| 7112 | } |
| 7113 | } |
| 7114 | print_detected_registry_agents(home, &any); |
| 7115 | if (!any) { |
| 7116 | printf(" (none)"); |
| 7117 | } |
| 7118 | printf("\n\n"); |
| 7119 | } |
| 7120 | |
| 7121 | /* Install Claude Code-specific configs (skills, MCP, hooks). */ |
| 7122 | /* ── Install plan recorder (issue #388) ──────────────────────────── |
no test coverage detected