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
This commit is contained in:
zenchantlive 2026-02-26 10:22:02 -08:00
parent d727f8b548
commit adcceb68bb
2 changed files with 7 additions and 0 deletions

View file

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

View file

@ -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[];