feat(dashboard): dynamic agent metrics + model list from config, no more hardcoded data
This commit is contained in:
@@ -77,6 +77,9 @@ interface DashboardAgentInfo {
|
||||
currentTask: string
|
||||
description?: string
|
||||
tags?: string[]
|
||||
progress?: number
|
||||
workload?: number
|
||||
goal?: string | null
|
||||
}
|
||||
|
||||
interface DashboardOperationEntry {
|
||||
@@ -217,9 +220,10 @@ function enrichAgent(api: DashboardAgentInfo): AgentNodeData {
|
||||
color: catalog.color ?? '#6b7385',
|
||||
icon: catalog.icon ?? 'bot',
|
||||
hero: catalog.hero ?? false,
|
||||
goal: catalog.goal ?? 'No goal set',
|
||||
progress: catalog.progress ?? 0,
|
||||
workload: catalog.workload ?? 0,
|
||||
// Use API-provided values with catalog fallback for metrics
|
||||
goal: api.goal ?? catalog.goal ?? 'No goal set',
|
||||
progress: api.progress ?? catalog.progress ?? 0,
|
||||
workload: api.workload ?? catalog.workload ?? 0,
|
||||
runtimeSeconds: 0,
|
||||
workingFeed: catalog.workingFeed ?? [],
|
||||
thinkingStream: catalog.thinkingStream ?? [],
|
||||
|
||||
Reference in New Issue
Block a user