spawn/shared
A 26b049cb56
refactor: Reduce complexity in shared/common.sh (#136)
- 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>
2026-02-09 22:04:08 -08:00
..
common.sh refactor: Reduce complexity in shared/common.sh (#136) 2026-02-09 22:04:08 -08:00