PBI-67 Phase 2: Add update-idea-plan-reviewed MCP tool

- Create src/tools/update-idea-plan-reviewed.ts: saves review-log and transitions idea status to PLAN_REVIEWED
- Add PLAN_REVIEW_RESULT to IdeaLogType enum (both repos)
- Register tool in src/index.ts
- Update Prisma schemas (both repos): add plan_review_log and reviewed_at fields to Idea model
- Add REVIEWING_PLAN, PLAN_REVIEW_FAILED, PLAN_REVIEWED to IdeaStatus enum (MCP schema)
- Add IDEA_REVIEW_PLAN to ClaudeJobKind enum (MCP schema)
- Tool includes transaction safety and convergence metrics logging

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
Janpeter Visser 2026-05-14 02:37:07 +02:00
parent 1fb3cc093e
commit 873b42a87e

View file

@ -128,6 +128,7 @@ enum IdeaLogType {
NOTE NOTE
GRILL_RESULT GRILL_RESULT
PLAN_RESULT PLAN_RESULT
PLAN_REVIEW_RESULT
STATUS_CHANGE STATUS_CHANGE
JOB_EVENT JOB_EVENT
} }