mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-10 20:39:59 +00:00
GCP create_server was 64 lines (largest function across all cloud libs). Cherry create_server was 54 lines. Both are now under 30 lines each by extracting focused helpers: GCP (64 -> 25 lines): - _gcp_prepare_instance_files: startup script + SSH key temp files - _gcp_run_create: gcloud command execution with error diagnostics - _gcp_get_instance_ip: IP extraction from instance describe Cherry (54 -> 27 lines): - _cherry_build_server_body: JSON payload construction - _cherry_submit_create: API call with error handling Agent: complexity-hunter Co-authored-by: A <6723574+louisgv@users.noreply.github.com> Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| common.sh | ||