mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-06 08:10:48 +00:00
Extract 4 helper functions from ensure_multi_credentials() (94 lines, CC=14 -> 48 lines, CC=4): _multi_creds_all_env_set, _multi_creds_load_config, _multi_creds_prompt, _multi_creds_validate. Flatten handleDefaultCommand() (39 lines, CC=7 -> 15 lines, CC=3) by extracting suggestCloudsForPrompt() and using early returns to eliminate nested if/else blocks. Agent: complexity-hunter Co-authored-by: A <6723574+louisgv@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| common.sh | ||