From adcceb68bb637e4a00400fa499f7b1a1ace201d9 Mon Sep 17 00:00:00 2001 From: zenchantlive Date: Thu, 26 Feb 2026 10:22:02 -0800 Subject: [PATCH] feat(types): add templateId to BeadIssue and enhance swarm types - Add templateId: string | null to BeadIssue (links epics to templates) - Add icon field to AgentArchetype for emoji/icon display - Add color and icon fields to SwarmTemplate for visual customization --- src/lib/types-swarm.ts | 6 ++++++ src/lib/types.ts | 1 + 2 files changed, 7 insertions(+) diff --git a/src/lib/types-swarm.ts b/src/lib/types-swarm.ts index 49bb88e..f55737a 100644 --- a/src/lib/types-swarm.ts +++ b/src/lib/types-swarm.ts @@ -5,6 +5,8 @@ export interface AgentArchetype { systemPrompt: string; capabilities: string[]; color: string; + /** Optional emoji or icon identifier. If not set, displays first letter of name. */ + icon?: string; createdAt: string; updatedAt: string; isBuiltIn: boolean; @@ -16,6 +18,10 @@ export interface SwarmTemplate { description: string; team: { archetypeId: string; count: number }[]; protoFormula?: string; + /** Color for template display. Defaults to amber if not set. */ + color?: string; + /** Optional emoji or icon identifier. If not set, displays first letter of name. */ + icon?: string; createdAt: string; updatedAt: string; isBuiltIn: boolean; diff --git a/src/lib/types.ts b/src/lib/types.ts index 46a9d4f..2f36cbf 100644 --- a/src/lib/types.ts +++ b/src/lib/types.ts @@ -40,6 +40,7 @@ export interface BeadIssue { priority: number; issue_type: BeadIssueType; assignee: string | null; + templateId: string | null; owner: string | null; labels: string[]; dependencies: BeadDependency[];