// Agent Types for Council - SiteMente Ecosystem

export interface Agent {
  id: string;
  name: string;
  role: string;
  description: string;
  status: "idle" | "working" | "completed" | "error";
  project: string;
  lastRun?: string;
  currentTask?: string;
}

export interface AgentTeam {
  id: string;
  name: string;
  icon: string;
  description: string;
  agents: Agent[];
}

export const defaultTeams: AgentTeam[] = [
  // === HORUS - Master Orchestrator ===
  {
    id: "horus-team",
    name: "Horus Command",
    icon: "👁️",
    description: "Lead orchestrator - delegates to all agents",
    agents: [
      { id: "horus", name: "Horus", role: "Master Orchestrator", description: "Command center, delegates tasks, manages all agents", status: "idle", project: "horus" },
    ],
  },
  
  // === SiteMente Squad ===
  {
    id: "sitemente-squad",
    name: "SiteMente Squad",
    icon: "🌐",
    description: "Building and growing SiteMente B2B platform",
    agents: [
      { id: "thoth", name: "Thoth", role: "Strategy & Research", description: "SiteMente planning, research, analysis", status: "idle", project: "sitemente" },
      { id: "ptah", name: "Ptah", role: "Dev \& Ops", description: "Development, deployment, technical implementation", status: "idle", project: "sitemente" },
      { id: "seshat", name: "Seshat", role: "Content \& SEO", description: "Content strategy, SEO, marketing copy", status: "idle", project: "sitemente" },
      { id: "anubis", name: "Anubis", role: "Outreach \& Growth", description: "Lead generation, client acquisition", status: "idle", project: "sitemente" },
    ],
  },
  
  // === Trading Squad ===
  {
    id: "trading-squad",
    name: "Trading Squad",
    icon: "📈",
    description: "Crypto market research and trade execution",
    agents: [
      { id: "thoth-trading", name: "Thoth Trading", role: "Research \& Analysis", description: "Market research, chart analysis", status: "idle", project: "trading" },
      { id: "sekhmet", name: "Sekhmet", role: "Trade Executor", description: "Risk management, position sizing", status: "idle", project: "trading" },
    ],
  },
  
  // === HolaCompi Squad (Paused) ===
  {
    id: "holacompi-squad",
    name: "HolaCompi Squad",
    icon: "🤝",
    description: "Consumer AI ally (paused until revenue)",
    agents: [
      { id: "hc-product", name: "Product Manager", role: "Flows \& UX", description: "User flows, product decisions", status: "idle", project: "holacompi" },
      { id: "hc-telephony", name: "Telephony Engineer", role: "Voice \& Telco", description: "Telnyx, Vapi, phone lines", status: "idle", project: "holacompi" },
      { id: "hc-voice", name: "Voice UX", role: "Conversation Design", description: "Dialogues, prompts, voice UX", status: "idle", project: "holacompi" },
    ],
  },
  
  // === Infrastructure ===
  {
    id: "infrastructure-team",
    name: "Infrastructure",
    icon: "🔧",
    description: "Security, backups, and system ops",
    agents: [
      { id: "infra-sec", name: "Security Lead", role: "Hardening \& Audits", description: "UFW, SSH, security audits", status: "idle", project: "infrastructure" },
      { id: "infra-ops", name: "Ops Manager", role: "DevOps \& Backups", description: "Deployments, backups, monitoring", status: "idle", project: "infrastructure" },
    ],
  },
];

export const agentRoles = [
  { id: "orchestrator", name: "Orchestrator", icon: "👁️" },
  { id: "architect", name: "Architect / PM", icon: "📋" },
  { id: "frontend", name: "Frontend Dev", icon: "🎨" },
  { id: "backend", name: "Backend Dev", icon: "⚙️" },
  { id: "ai-engineer", name: "AI Engineer", icon: "🤖" },
  { id: "seo", name: "SEO / Copy", icon: "📝" },
  { id: "product", name: "Product Manager", icon: "📦" },
  { id: "security", name: "Security", icon: "🛡️" },
  { id: "devops", name: "DevOps", icon: "🚀" },
  { id: "trader", name: "Trader", icon: "📈" },
  { id: "researcher", name: "Researcher", icon: "🔍" },
  { id: "outreach", name: "Outreach", icon: "📣" },
];
