mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-06 16:31:08 +00:00
The 5 per-cloud live recording functions (_live_hetzner, _live_digitalocean, _live_vultr, _live_linode, _live_civo) each duplicated 50-65 lines of identical create->save->extract-id->delete->save logic. Extract a generic _live_create_delete_cycle helper that handles the shared flow, with per-cloud body builder functions providing only the cloud-specific parts. Reduces test/record.sh by 112 lines (1016 -> 904) while preserving all behavior including cloud-specific delete delays and empty-response fallbacks. 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> |
||
|---|---|---|
| .. | ||
| fixtures | ||
| mock.sh | ||
| qa-dry-run.sh | ||
| record.sh | ||
| run.sh | ||
| update-readme.py | ||