Print detected agent names on a single line. */
| 7237 | |
| 7238 | /* Print detected agent names on a single line. */ |
| 7239 | static void print_detected_agents(const cbm_detected_agents_t *a, const char *home) { |
| 7240 | struct { |
| 7241 | bool flag; |
| 7242 | const char *name; |
| 7243 | } agents[] = { |
| 7244 | {a->claude_code, "Claude-Code"}, |
| 7245 | {a->codex, "Codex"}, |
| 7246 | {a->gemini, "Gemini-CLI"}, |
| 7247 | {a->zed, "Zed"}, |
| 7248 | {a->opencode, "OpenCode"}, |
| 7249 | {a->antigravity, "Antigravity"}, |
| 7250 | {a->aider, "Aider"}, |
| 7251 | {a->kilocode, "KiloCode"}, |
| 7252 | {a->vscode, "VS-Code"}, |
| 7253 | {a->cursor, "Cursor"}, |
| 7254 | {a->windsurf, "Windsurf"}, |
| 7255 | {a->augment, "Augment-Auggie"}, |
| 7256 | {a->openclaw, "OpenClaw"}, |
| 7257 | {a->kiro, "Kiro"}, |
| 7258 | {a->junie, "Junie"}, |
| 7259 | {a->hermes, "Hermes"}, |
| 7260 | {a->openhands, "OpenHands"}, |
| 7261 | {a->cline, "Cline"}, |
| 7262 | {a->warp, "Warp"}, |
| 7263 | {a->qwen, "Qwen-Code"}, |
| 7264 | {a->copilot_cli, "Copilot-CLI"}, |
| 7265 | {a->factory_droid, "Factory-Droid"}, |
| 7266 | {a->crush, "Crush"}, |
| 7267 | {a->goose, "Goose"}, |
| 7268 | {a->mistral_vibe, "Mistral-Vibe"}, |
| 7269 | }; |
| 7270 | printf("Detected agents:"); |
| 7271 | bool any = false; |
| 7272 | for (int i = 0; i < (int)(sizeof(agents) / sizeof(agents[0])); i++) { |
| 7273 | if (agents[i].flag) { |
| 7274 | printf(" %s", agents[i].name); |
| 7275 | any = true; |
| 7276 | } |
| 7277 | } |
| 7278 | print_detected_registry_agents(home, &any); |
| 7279 | if (!any) { |
| 7280 | printf(" (none)"); |
| 7281 | } |
| 7282 | printf("\n\n"); |
| 7283 | } |
| 7284 | |
| 7285 | /* Install Claude Code-specific configs (skills, MCP, hooks). */ |
| 7286 | /* ── Install plan recorder (issue #388) ──────────────────────────── |
no test coverage detected