mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-07 00:50:52 +00:00
- Extract _generate_csrf_state() from try_oauth_flow() (8-line conditional -> 1-line call) - Deduplicate retry loop: extract _cloud_api_retry_loop() shared by generic_cloud_api() and generic_cloud_api_custom_auth() (removed 26 duplicated lines) - Extract OAuth HTML into bash variables with shared CSS, reducing inline string complexity in start_oauth_server() Net reduction: 11 lines, eliminates copy-paste duplication in the API retry logic. 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 | ||