refactor(05-03): remove duplicated methods from AutoModeService

- Replace startAutoLoopForProject body with delegation to autoLoopCoordinator
- Replace stopAutoLoopForProject body with delegation to autoLoopCoordinator
- Replace isAutoLoopRunningForProject body with delegation
- Replace getAutoLoopConfigForProject body with delegation
- Replace resumeFeature body with delegation to recoveryService
- Replace resumeInterruptedFeatures body with delegation
- Remove runAutoLoopForProject method (~95 lines) - now in AutoLoopCoordinator
- Remove failure tracking methods (~180 lines) - now in AutoLoopCoordinator
- Remove resolveMaxConcurrency (~40 lines) - now in AutoLoopCoordinator
- Update checkWorktreeCapacity to use coordinator
- Simplify legacy startAutoLoop to delegate
- Remove failure tracking from executeFeature (now handled by coordinator)

Line count reduced from 3604 to 3013 (~591 lines removed)
This commit is contained in:
Shirone
2026-01-27 19:09:56 +01:00
committed by gsxdsm
parent 1b39e25497
commit afa60399dc
2 changed files with 25 additions and 724 deletions

View File

@@ -484,8 +484,9 @@ export class AutoLoopCoordinator {
/**
* Resolve max concurrency from provided value, settings, or default
* @public Used by AutoModeService.checkWorktreeCapacity
*/
private async resolveMaxConcurrency(
async resolveMaxConcurrency(
projectPath: string,
branchName: string | null,
provided?: number