feat: add resume interrupted features endpoint and handler

- Introduced a new endpoint `/resume-interrupted` to handle resuming features that were interrupted during server restarts.
- Implemented the `createResumeInterruptedHandler` to check for and resume interrupted features based on the project path.
- Enhanced the `AutoModeService` to track and manage the execution state of features, ensuring they can be resumed correctly.
- Updated relevant types and prompts to include the new 'ux-reviewer' enhancement mode for better user experience handling.
- Added new templates for UX review and other enhancement modes to improve task descriptions from a user experience perspective.
This commit is contained in:
webdevcody
2026-01-11 01:37:13 -05:00
parent 0db8808b2a
commit 7115460804
39 changed files with 1748 additions and 538 deletions

View File

@@ -173,6 +173,19 @@ export function getBranchTrackingPath(projectPath: string): string {
return path.join(getAutomakerDir(projectPath), 'active-branches.json');
}
/**
* Get the execution state file path for a project
*
* Stores JSON metadata about auto-mode execution state for recovery on restart.
* Tracks which features were running and auto-loop configuration.
*
* @param projectPath - Absolute path to project directory
* @returns Absolute path to {projectPath}/.automaker/execution-state.json
*/
export function getExecutionStatePath(projectPath: string): string {
return path.join(getAutomakerDir(projectPath), 'execution-state.json');
}
/**
* Create the automaker directory structure for a project if it doesn't exist
*