mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +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
@@ -6,6 +6,7 @@ export const architectAgent: AgentDefinition = {
|
||||
displayName: 'Architect',
|
||||
description: 'Memory-aware planning agent that researches, designs, and persists implementation plans',
|
||||
mode: 'primary',
|
||||
color: '#ef4444',
|
||||
temperature: 0.0,
|
||||
permission: {
|
||||
edit: {
|
||||
|
||||
@@ -6,6 +6,7 @@ export const codeAgent: AgentDefinition = {
|
||||
displayName: 'Code',
|
||||
description: 'Primary coding agent with awareness of project memory and conventions',
|
||||
mode: 'primary',
|
||||
color: '#3b82f6',
|
||||
tools: {
|
||||
exclude: ['memory-plan-execute'],
|
||||
},
|
||||
|
||||
@@ -9,6 +9,7 @@ export interface AgentDefinition {
|
||||
systemPrompt: string
|
||||
mode?: 'primary' | 'subagent' | 'all'
|
||||
hidden?: boolean
|
||||
color?: string
|
||||
tools?: {
|
||||
include?: string[]
|
||||
exclude?: string[]
|
||||
@@ -29,5 +30,6 @@ export interface AgentConfig {
|
||||
temperature?: number
|
||||
maxSteps?: number
|
||||
hidden?: boolean
|
||||
color?: string
|
||||
permission?: Record<string, unknown>
|
||||
}
|
||||
@@ -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