From 84737f8905ebbd6da2d97a43679ea18307fe63e5 Mon Sep 17 00:00:00 2001 From: zenchantlive Date: Fri, 20 Feb 2026 17:07:21 -0800 Subject: [PATCH] feat(swarm): define strict archetype and template contracts --- src/lib/types-swarm.ts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/lib/types-swarm.ts diff --git a/src/lib/types-swarm.ts b/src/lib/types-swarm.ts new file mode 100644 index 0000000..49bb88e --- /dev/null +++ b/src/lib/types-swarm.ts @@ -0,0 +1,22 @@ +export interface AgentArchetype { + id: string; + name: string; + description: string; + systemPrompt: string; + capabilities: string[]; + color: string; + createdAt: string; + updatedAt: string; + isBuiltIn: boolean; +} + +export interface SwarmTemplate { + id: string; + name: string; + description: string; + team: { archetypeId: string; count: number }[]; + protoFormula?: string; + createdAt: string; + updatedAt: string; + isBuiltIn: boolean; +}