Print detected agent names on a single line. */
| 7216 | |
| 7217 | /* Print detected agent names on a single line. */ |
| 7218 | static void print_detected_agents(const cbm_detected_agents_t *a, const char *home) { |
| 7219 | struct { |
| 7220 | bool flag; |
| 7221 | const char *name; |
| 7222 | } agents[] = { |
| 7223 | {a->claude_code, "Claude-Code"}, |
| 7224 | {a->codex, "Codex"}, |
| 7225 | {a->gemini, "Gemini-CLI"}, |
| 7226 | {a->zed, "Zed"}, |
| 7227 | {a->opencode, "OpenCode"}, |
| 7228 | {a->antigravity, "Antigravity"}, |
| 7229 | {a->aider, "Aider"}, |
| 7230 | {a->kilocode, "KiloCode"}, |
| 7231 | {a->vscode, "VS-Code"}, |
| 7232 | {a->cursor, "Cursor"}, |
| 7233 | {a->windsurf, "Windsurf"}, |
| 7234 | {a->augment, "Augment-Auggie"}, |
| 7235 | {a->openclaw, "OpenClaw"}, |
| 7236 | {a->kiro, "Kiro"}, |
| 7237 | {a->junie, "Junie"}, |
| 7238 | {a->hermes, "Hermes"}, |
| 7239 | {a->openhands, "OpenHands"}, |
| 7240 | {a->cline, "Cline"}, |
| 7241 | {a->warp, "Warp"}, |
| 7242 | {a->qwen, "Qwen-Code"}, |
| 7243 | {a->copilot_cli, "Copilot-CLI"}, |
| 7244 | {a->factory_droid, "Factory-Droid"}, |
| 7245 | {a->crush, "Crush"}, |
| 7246 | {a->goose, "Goose"}, |
| 7247 | {a->mistral_vibe, "Mistral-Vibe"}, |
| 7248 | }; |
| 7249 | printf("Detected agents:"); |
| 7250 | bool any = false; |
| 7251 | for (int i = 0; i < (int)(sizeof(agents) / sizeof(agents[0])); i++) { |
| 7252 | if (agents[i].flag) { |
| 7253 | printf(" %s", agents[i].name); |
| 7254 | any = true; |
| 7255 | } |
| 7256 | } |
| 7257 | print_detected_registry_agents(home, &any); |
| 7258 | if (!any) { |
| 7259 | printf(" (none)"); |
| 7260 | } |
| 7261 | printf("\n\n"); |
| 7262 | } |
| 7263 | |
| 7264 | /* Install Claude Code-specific configs (skills, MCP, hooks). */ |
| 7265 | /* ── Install plan recorder (issue #388) ──────────────────────────── |
no test coverage detected