Update agent orchestration and knowledge flow

Add sub-commander orchestration updates, align frontend integrations, and refine knowledge view behavior without including local data artifacts.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-24 21:44:04 +08:00
parent aafa05dc1c
commit 0d89325b09
14 changed files with 529 additions and 650 deletions

View File

@@ -7,6 +7,14 @@ export interface AgentStats {
status: 'active' | 'idle' | 'disabled'
}
export interface AgentHierarchyStatsNode extends AgentStats {
sub_commanders: AgentStats[]
}
export interface AgentHierarchyStats {
main_agents: AgentHierarchyStatsNode[]
}
export interface AgentConfig {
id: string
name: string
@@ -22,6 +30,11 @@ export const agentApi = {
return res.data
},
async getHierarchyStats(): Promise<AgentHierarchyStats> {
const res = await api.get('/api/agents/stats/hierarchy')
return res.data
},
async getConfig(id: string): Promise<AgentConfig> {
const res = await api.get(`/api/agents/config/${id}`)
return res.data