(appPath: string, iteration: number | undefined, stage: string)
| 152 | |
| 153 | // Helper functions for reducing code duplication |
| 154 | async function performCommit(appPath: string, iteration: number | undefined, stage: string): Promise<void> { |
| 155 | const commitResult = await commit({ appPath, iteration }); |
| 156 | if (!commitResult.success) { |
| 157 | logger.printWarnLog(`Git commit (${stage}) failed: ${commitResult.message}`); |
| 158 | } else if (iteration === undefined) { |
| 159 | logger.printSuccessLog(`Initial project committed successfully, starting validation loop...`); |
| 160 | } |
| 161 | } |
| 162 | |
| 163 | function saveIterationAndProcessedJson( |
| 164 | iterations: IterationLog[], |
no test coverage detected