mirror of
https://github.com/jparkerweb/plan2code.git
synced 2026-07-21 18:33:22 -07:00
feat: add plan2code-bot with --resume capability and state cleanup
Add the autonomous workflow test runner (plan2code-bot) that uses the Claude Agent SDK to run plan2code end-to-end. Includes --resume flag to continue incomplete runs from saved state, and automatic state file cleanup on successful completion.
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
export type BotMode = 'new-project' | 'enhancement';
|
||||
|
||||
export interface BotConfig {
|
||||
workDir: string;
|
||||
projectDir: string;
|
||||
ideaDescription: string;
|
||||
ideaName: string;
|
||||
mode: BotMode;
|
||||
}
|
||||
|
||||
export type StepName = 'init' | 'plan' | 'document' | 'implement' | 'finalize';
|
||||
|
||||
export interface StepResult {
|
||||
step: StepName;
|
||||
success: boolean;
|
||||
sessionId: string | null;
|
||||
duration: number;
|
||||
error: string | null;
|
||||
}
|
||||
|
||||
export interface BotState {
|
||||
config: BotConfig;
|
||||
steps: StepResult[];
|
||||
currentStep: StepName | null;
|
||||
implementPasses: number;
|
||||
allPhasesComplete: boolean;
|
||||
}
|
||||
Reference in New Issue
Block a user