cli: dedupe agent display-name and hook-agent-option building in setup
main·
Commit

The name→display-type mapping loop appeared three times (setup twice, InstalledAgentDisplayNames once) — extract agentDisplayNames. The hook-supporting/non-test-only agent selector options were built twice with only the preselection set differing — extract hookAgentOptions. Covered by the existing setup/manage-agents tests.
Co-Authored-By: Claude Fable 5 noreply@anthropic.com Entire-Checkpoint: 76f119a87828
Checkpoints
/goal simplify this repo, make sure to de-slop it continue until you are happy, make sure to backfill tests and validate any significant change. The output of this should be a PR with green CI, review
Claude CodeFable 5
View sessionCheckpoint 1