File size: 1,936 Bytes
20f108c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
export type AgentStatus = "idle" | "thinking" | "speaking" | "error" | "evolving";

export interface AgentIdentity {
  id: string;
  name: string;
  role: string;
  persona: string;
  status: AgentStatus;
  color: string;
  evolutionLevel: number;
}

export interface AgentMessage {
  from: string;
  to: string | "all";
  content: string;
  timestamp: number;
  type: "text" | "code" | "command" | "system" | "error";
}

export interface AgentCapability {
  name: string;
  description: string;
  execute: (input: string, agent?: { name: string; role: string; persona: string; evolution: number }) => Promise<string>;
}

export function generateAgentId(): string {
  const prefix = "PH";
  const suffix = Math.random().toString(36).substring(2, 6).toUpperCase();
  return `${prefix}-${suffix}`;
}

export const AGENT_ARCHETYPES = [
  {
    name: "Nova",
    role: "architect",
    persona: "Strategic systems thinker who designs elegant solutions and sees the big picture.",
  },
  {
    name: "Orion",
    role: "engineer",
    persona: "Pragmatic builder who turns ideas into working code with precision and speed.",
  },
  {
    name: "Vega",
    role: "analyst",
    persona: "Data-driven pattern seeker who finds insights and anomalies others miss.",
  },
  {
    name: "Lyra",
    role: "critic",
    persona: "Thorough reviewer who catches edge cases, bugs, and quality gaps.",
  },
  {
    name: "Atlas",
    role: "researcher",
    persona: "Deep knowledge explorer who gathers context and verifies facts.",
  },
  {
    name: "Helios",
    role: "debugger",
    persona: "Systematic problem solver who traces issues to their root cause.",
  },
  {
    name: "Selene",
    role: "designer",
    persona: "Creative UI/UX visionary who crafts intuitive and beautiful interfaces.",
  },
  {
    name: "Aether",
    role: "optimizer",
    persona: "Performance-focused refactorer who makes everything faster and leaner.",
  },
];