'use client' import { useState } from 'react' import Link from 'next/link' import { ArrowLeft, Cpu, Brain, MessageSquare, Database, Activity, ChevronDown, ChevronRight, GitBranch, Layers, FileText, Zap, RefreshCw, } from 'lucide-react' import { OverviewSection, AgentTypesSection, SoulFilesSection, MessageBusSection, SharedBrainSection, TaskRoutingSection, SessionLifecycleSection, DatabaseSchemaSection, } from './_components' import type { Section } from './_components' const SECTIONS: Section[] = [ { id: 'overview', title: 'System-Uebersicht', icon: , content: , }, { id: 'agents', title: 'Agent-Typen', icon: , content: , }, { id: 'soul-files', title: 'SOUL-Files (Persoenlichkeiten)', icon: , content: , }, { id: 'message-bus', title: 'Message Bus & Kommunikation', icon: , content: , }, { id: 'shared-brain', title: 'Shared Brain (Gedaechtnis)', icon: , content: , }, { id: 'task-routing', title: 'Task Routing', icon: , content: , }, { id: 'session-lifecycle', title: 'Session Lifecycle', icon: , content: , }, { id: 'database', title: 'Datenbank-Schema', icon: , content: , }, ] export default function ArchitecturePage() { const [expandedSections, setExpandedSections] = useState([ 'overview', 'agents', 'soul-files', ]) const toggleSection = (id: string) => { setExpandedSections(prev => prev.includes(id) ? prev.filter(s => s !== id) : [...prev, id] ) } return ( {/* Header */} Zurueck zur Agent-Verwaltung Multi-Agent Architektur Technische Dokumentation des Breakpilot Multi-Agent-Systems {/* Table of Contents */} Inhaltsverzeichnis {SECTIONS.map(section => ( { if (!expandedSections.includes(section.id)) { setExpandedSections(prev => [...prev, section.id]) } document.getElementById(section.id)?.scrollIntoView({ behavior: 'smooth' }) }} className="flex items-center gap-2 text-sm text-gray-600 hover:text-teal-600 text-left p-2 rounded-lg hover:bg-gray-100 transition-colors" > {section.icon} {section.title} ))} {/* Sections */} {SECTIONS.map(section => ( toggleSection(section.id)} className="w-full flex items-center justify-between p-5 hover:bg-gray-50 transition-colors" > {section.icon} {section.title} {expandedSections.includes(section.id) ? ( ) : ( )} {expandedSections.includes(section.id) && ( {section.content} )} ))} {/* Footer Links */} Weiterfuehrende Ressourcen Agent-Uebersicht Aktive Sessions Statistiken ) }
Technische Dokumentation des Breakpilot Multi-Agent-Systems