重构 API 路由并新增工作流编排功能

后端:
- 重构 agents, heartbeats, locks, meetings, resources, roles, workflows 路由
- 新增 orchestrator 和 providers 路由
- 新增 CLI 调用器和流程编排服务
- 添加日志配置和依赖项

前端:
- 更新 AgentsPage、SettingsPage、WorkflowPage 页面
- 扩展 api.ts 新增 API 接口

其他:
- 清理测试 agent 数据文件
- 新增示例工作流和项目审计报告

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Claude Code
2026-03-10 16:36:25 +08:00
parent 7a5a58b4e5
commit 1719d1f1f9
54 changed files with 3175 additions and 612 deletions

View File

@@ -15,7 +15,7 @@
},
"agent-001": {
"agent_id": "agent-001",
"last_heartbeat": "2026-03-09T09:28:05.259883",
"last_heartbeat": "2026-03-10T09:46:01.524675",
"status": "working",
"current_task": "测试任务",
"progress": 50
@@ -61,5 +61,54 @@
"status": "idle",
"current_task": "",
"progress": 0
},
"test-api-001": {
"agent_id": "test-api-001",
"last_heartbeat": "2026-03-10T09:51:56.468836",
"status": "idle",
"current_task": "",
"progress": 100
},
"chef-001": {
"agent_id": "chef-001",
"last_heartbeat": "2026-03-10T14:01:11.073277",
"status": "idle",
"current_task": "",
"progress": 100
},
"health-001": {
"agent_id": "health-001",
"last_heartbeat": "2026-03-10T14:01:10.054540",
"status": "idle",
"current_task": "",
"progress": 100
},
"budget-001": {
"agent_id": "budget-001",
"last_heartbeat": "2026-03-10T14:01:10.399576",
"status": "idle",
"current_task": "",
"progress": 100
},
"chef-claude": {
"agent_id": "chef-claude",
"last_heartbeat": "2026-03-10T15:08:32.140273",
"status": "idle",
"current_task": "",
"progress": 100
},
"health-kimi": {
"agent_id": "health-kimi",
"last_heartbeat": "2026-03-10T15:06:31.463105",
"status": "idle",
"current_task": "",
"progress": 100
},
"budget-opencode": {
"agent_id": "budget-opencode",
"last_heartbeat": "2026-03-10T15:06:51.417016",
"status": "idle",
"current_task": "",
"progress": 100
}
}

View File

@@ -35,15 +35,16 @@
"meeting_id": "test-meeting-001",
"title": "测试会议",
"expected_attendees": [
"claude-001",
"kimi-001"
"agent-001",
"agent-002"
],
"arrived_attendees": [
"claude-001"
"agent-001",
"agent-002"
],
"status": "waiting",
"created_at": "2026-03-09T18:05:28.657165",
"started_at": "",
"status": "ended",
"created_at": "2026-03-10T09:46:01.575444",
"started_at": "2026-03-10T09:46:02.608852",
"min_required": 2
},
"meeting-001": {
@@ -79,5 +80,17 @@
"created_at": "2026-03-09T17:23:43.445453",
"started_at": "2026-03-09T17:23:43.501216",
"min_required": 3
},
"meeting-1773107507": {
"meeting_id": "meeting-1773107507",
"title": "API 测试会议",
"expected_attendees": [
"test-api-001"
],
"arrived_attendees": [],
"status": "ended",
"created_at": "2026-03-10T09:51:47.354477",
"started_at": "",
"min_required": 1
}
}