diff --git a/CHANGELOG.md b/CHANGELOG.md index 3e1ed08..87a48f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,22 @@ All notable changes to Plan2Code will be documented in this file. +## v1.11.0 + +### ✨ Added + +- **plan2code-bot** — New autonomous workflow test runner (`plan2code-bot/`) that uses the Claude Agent SDK to simulate a human running the entire plan2code workflow end-to-end + - Two auto-detected modes: **new-project** (generates an app idea, creates a subdirectory, runs init through finalize) and **enhancement** (scans existing codebase, proposes a realistic enhancement) + - `--idea` flag to seed the idea generator with a specific concept + - `--resume` flag to continue incomplete runs from saved state — skips previously succeeded steps and restores idea, config, and implement pass counter + - State file (`.plan2code-bot-state.json`) saved after each step; automatically deleted on full success, preserved on failure for later resume + - Resume auto-detects state files in current directory (enhancement mode) or immediate subdirectories (new-project mode) + - Artifact validation after each step (aborts on missing expected outputs) + - Auto-responder handles `AskUserQuestion` prompts autonomously (approvals, testing gates, name questions) + - Bot-friendly skill installation (copies plan2code skills with `disable-model-invocation` stripped) + - Implement step loops up to 10 passes until all phases are complete + - Installer integration: `C > B` menu option to install bot CLI only + ## v1.10.0 ### ✨ Added diff --git a/package.json b/package.json index e1cb3f8..1efa602 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "plan2code", - "version": "1.10.0", + "version": "1.11.0", "private": true, "bin": { "plan2code": "./install.js" diff --git a/plan2code-bot/CHANGELOG.md b/plan2code-bot/CHANGELOG.md new file mode 100644 index 0000000..70b3fb3 --- /dev/null +++ b/plan2code-bot/CHANGELOG.md @@ -0,0 +1,23 @@ +# Changelog + +## 1.1.0 + +- Add `--resume` flag to continue incomplete runs from saved state +- Skip previously succeeded steps when resuming (init, plan, document, implement, finalize) +- Restore idea name, description, project directory, and implement pass counter from state +- Auto-detect state files in current directory (enhancement mode) or subdirectories (new-project mode) +- Delete state file automatically after a fully successful run +- Preserve state file on failure for later resume +- Add `deleteState()` and `findExistingState()` utilities to bot-state module +- Add bot-state unit tests (saveState, loadState, deleteState, findExistingState) + +## 1.0.0 + +- Initial release +- Two auto-detected modes: new-project and enhancement +- `--idea` flag to seed the idea generator +- Full workflow execution: init → plan → document → implement → finalize +- Artifact validation after each step +- State persistence to `.plan2code-bot-state.json` +- Auto-responder for autonomous Claude Agent SDK sessions +- Bot-friendly skill installation (strips `disable-model-invocation`) diff --git a/plan2code-bot/package.json b/plan2code-bot/package.json index 857a026..5f921e2 100644 --- a/plan2code-bot/package.json +++ b/plan2code-bot/package.json @@ -1,6 +1,6 @@ { "name": "plan2code-bot", - "version": "1.0.0", + "version": "1.1.0", "description": "Plan2Code Bot - Autonomous workflow runner for testing plan2code end-to-end", "type": "module", "main": "dist/index.js", diff --git a/plan2code-bot/src/cli.ts b/plan2code-bot/src/cli.ts index c9d4711..efa02cc 100644 --- a/plan2code-bot/src/cli.ts +++ b/plan2code-bot/src/cli.ts @@ -11,7 +11,7 @@ import type { BotConfig, BotMode, BotState, StepName, StepResult } from './types const BANNER = ` ╔══════════════════════════════════════╗ - ║ plan2code-bot v1.0.0 ║ + ║ plan2code-bot v1.1.0 ║ ║ Autonomous Workflow Test Runner ║ ╚══════════════════════════════════════╝ `;