mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 12:54:20 +01:00
Add color property to agent definitions
This commit is contained in:
1 parent
8567e9bb2b
commit
bc649d91ee
4 files changed
+6
-1
No files matched your search
@@ -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 } : {}),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user