feat(KB-032): add Planning Mode for AI-assisted task creation

- Add PlanningModeModal component with interactive task planning UI
- Implement backend planning API with /api/planning endpoints
- Add PlanningSession class for managing planning state
- Integrate planning mode into dashboard with header button
- Add comprehensive tests for planning components and API routes
- Include AI agent structure for future planning automation
- Update README with Planning Mode documentation
This commit is contained in:
gsxdsm
2026-03-29 21:40:14 -07:00
parent 27a18549b3
commit 385739ee2c
19 changed files with 3024 additions and 10 deletions

View File

@@ -1,8 +1,9 @@
import { Settings, Pause, Play, Square, Download, LayoutGrid, List, Terminal } from "lucide-react";
import { Settings, Pause, Play, Square, Download, LayoutGrid, List, Terminal, Lightbulb } from "lucide-react";
interface HeaderProps {
onOpenSettings?: () => void;
onOpenGitHubImport?: () => void;
onOpenPlanning?: () => void;
onToggleTerminal?: () => void;
globalPaused?: boolean;
enginePaused?: boolean;
@@ -15,6 +16,7 @@ interface HeaderProps {
export function Header({
onOpenSettings,
onOpenGitHubImport,
onOpenPlanning,
onToggleTerminal,
globalPaused,
enginePaused,
@@ -58,6 +60,15 @@ export function Header({
<button className="btn-icon" onClick={onOpenGitHubImport} title="Import from GitHub">
<Download size={16} />
</button>
{/* Plan button - AI-guided task creation */}
<button
className="btn-icon"
onClick={onOpenPlanning}
title="Create a task with AI planning"
data-testid="planning-btn"
>
<Lightbulb size={16} />
</button>
{/* Terminal button - always available for interactive shell access */}
<button
className="btn-icon btn-icon--terminal"