'use client' import { useState, useRef, useEffect } from 'react' import { motion } from 'framer-motion' import { Terminal, Mic, Send } from 'lucide-react' const COMMANDS = ['/new-project', '/analyze-competitors', '/generate-report', '/deploy-app', '/automate-workflow', '/research'] const LINES = [ { text: '> God Agent OS is listening...', color: '#6366f1' }, { text: '> Multi-agent system ready. Gemini · Sambanova · GitHub Models active.', color: '#22d3ee' }, { text: '> How may I assist in your divine mission?', color: 'var(--text-secondary)' }, ] export default function CommandCenter() { const [input, setInput] = useState('') const [history, setHistory] = useState([]) const inputRef = useRef(null) const handleSubmit = (cmd?: string) => { const command = cmd || input.trim() if (!command) return setHistory(prev => [...prev, `> ${command}`, ' Executing…']) setInput('') setTimeout(() => { setHistory(prev => [...prev, ' ✓ Task dispatched to agent fleet.']) }, 800) } return (
{/* Header */}
Command Center
{/* Terminal */}
{LINES.map((line, i) => (
{line.text}
))} {history.map((line, i) => (
{line}
))}
{/* Command Chips */}
{COMMANDS.map(cmd => ( ))}
setInput(e.target.value)} onKeyDown={e => e.key === 'Enter' && handleSubmit()} placeholder="Custom command…" className="cmd-input px-3 py-1.5 text-xs w-36" />
) }