spawn/gcore/lib
A 5eeb4068c9
refactor: extract helper functions in discovery.sh and gcore/lib/common.sh (#1100)
- Extract watchdog monitoring logic from run_single_cycle() into _monitor_process() helper
- Extract gcore project loading, detection, and config saving into separate functions:
  - _load_gcore_project_from_config()
  - _auto_detect_gcore_project()
  - _save_gcore_project_to_config()
- Simplify ensure_gcore_project() by delegating to helper functions
- Reduces cyclomatic complexity and improves testability

Agent: complexity-hunter

Co-authored-by: Spawn Refactor Service <refactor@spawn.service>
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-14 09:23:30 -05:00
..
common.sh refactor: extract helper functions in discovery.sh and gcore/lib/common.sh (#1100) 2026-02-14 09:23:30 -05:00