refactor: Rename agent modes breakdown→plan, decompose→detail
Full rename across the codebase for clarity: - breakdown (initiative→phases) is now "plan" - decompose (phase→tasks) is now "detail" Updates schema enums, TypeScript types, events, prompts, output handler, tRPC procedures, CLI commands, frontend components, tests, and docs. Also fixes 0022 migration multi-statement issue (adds statement-breakpoint markers).
This commit is contained in:
@@ -63,7 +63,7 @@ The initiative detail page has three tabs managed via local state (not URL param
|
||||
|-----------|---------|
|
||||
| `ExecutionTab` | Main execution view container |
|
||||
| `ExecutionContext` | React context for execution state |
|
||||
| `PhaseDetailPanel` | Phase detail with tasks, dependencies, breakdown |
|
||||
| `PhaseDetailPanel` | Phase detail with tasks, dependencies, plan |
|
||||
| `PhaseSidebar` | Phase list sidebar |
|
||||
| `TaskDetailPanel` | Task detail with agent status, output |
|
||||
|
||||
@@ -88,7 +88,7 @@ shadcn/ui components: badge, button, card, dialog, dropdown-menu, input, label,
|
||||
| Hook | Purpose |
|
||||
|------|---------|
|
||||
| `useRefineAgent` | Manages refine agent lifecycle for initiative |
|
||||
| `useDecomposeAgent` | Manages decompose agent for phase breakdown |
|
||||
| `useDetailAgent` | Manages detail agent for phase planning |
|
||||
| `useAgentOutput` | Subscribes to live agent output stream |
|
||||
|
||||
## tRPC Client
|
||||
@@ -120,9 +120,9 @@ Configured in `src/lib/trpc.ts`. Uses `@trpc/react-query` with TanStack Query fo
|
||||
3. Approve phases → queue for dispatch
|
||||
4. Tasks auto-queued when phase starts
|
||||
|
||||
### Decomposing Phases
|
||||
1. Select phase → "Breakdown" button
|
||||
2. `spawnArchitectDecompose` mutation → agent creates task proposals
|
||||
### Detailing Phases
|
||||
1. Select phase → "Detail" button
|
||||
2. `spawnArchitectDetail` mutation → agent creates task proposals
|
||||
3. Accept proposals → tasks created under phase
|
||||
4. View tasks in phase detail panel
|
||||
|
||||
|
||||
Reference in New Issue
Block a user