Add color property to agent definitions

This commit is contained in:
Chris Scott committed 2026-02-24 23:16:14 -05:00
1 parent 8567e9bb2b
commit bc649d91ee
4 files changed
+6 -1

No files matched your search

+2 -1
View File
@@ -1,6 +1,6 @@
import type { AgentRole, AgentDefinition, AgentConfig } from './agents'
const REPLACED_BUILTIN_AGENTS = ['build']
const REPLACED_BUILTIN_AGENTS = ['build', 'plan']
const ENHANCED_BUILTIN_AGENTS: Record<string, { tools: Record<string, boolean> }> = {
plan: {
@@ -68,6 +68,7 @@ function createAgentConfigs(agents: Record<AgentRole, AgentDefinition>): Record<
...(agent.temperature !== undefined ? { temperature: agent.temperature } : {}),
...(agent.maxSteps !== undefined ? { maxSteps: agent.maxSteps } : {}),
...(agent.hidden ? { hidden: agent.hidden } : {}),
...(agent.color ? { color: agent.color } : {}),
...(agent.permission ? { permission: agent.permission } : {}),
}
}