feat(swarm): define strict archetype and template contracts

This commit is contained in:
zenchantlive 2026-02-20 17:07:21 -08:00
parent 14a50ad4ae
commit 84737f8905

22
src/lib/types-swarm.ts Normal file
View file

@ -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;
}