mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-07 09:10:55 +00:00
- Extract _hetzner_find_candidates helper to eliminate duplicated jq candidate-search logic (same-family and any-family searches were nearly identical 15-line blocks) - Consolidate 3 separate jq calls for wanted_cpu/cores/memory into a single jq invocation - Replace duplicated replacement-picking code with a loop over family strategies Function reduced from 106 to ~72 lines (plus 17-line reusable helper). 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 | ||