openclaw-agent-dashboard 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/release.yml +56 -0
- package/README.md +302 -0
- package/docs/CHANGELOG_AGENT_MODIFICATIONS.md +132 -0
- package/docs/RELEASE-LATEST.md +189 -0
- package/docs/RELEASE-MODEL-CONFIG.md +95 -0
- package/docs/release-guide.md +259 -0
- package/docs/release-operations-manual.md +167 -0
- package/docs/specs/tr3-install-system.md +580 -0
- package/docs/windows-collaboration-model-paths-troubleshooting.md +0 -0
- package/frontend/index.html +12 -0
- package/frontend/package-lock.json +1240 -0
- package/frontend/package.json +19 -0
- package/frontend/src/App.vue +331 -0
- package/frontend/src/components/AgentCard.vue +796 -0
- package/frontend/src/components/AgentConfigPanel.vue +539 -0
- package/frontend/src/components/AgentDetailPanel.vue +738 -0
- package/frontend/src/components/ErrorAnalysisView.vue +546 -0
- package/frontend/src/components/ErrorCenterPanel.vue +844 -0
- package/frontend/src/components/PerformanceMonitor.vue +515 -0
- package/frontend/src/components/SettingsPanel.vue +236 -0
- package/frontend/src/components/TokenAnalysisPanel.vue +683 -0
- package/frontend/src/components/chain/ChainEdge.vue +85 -0
- package/frontend/src/components/chain/ChainNode.vue +166 -0
- package/frontend/src/components/chain/TaskChainView.vue +425 -0
- package/frontend/src/components/chain/index.ts +3 -0
- package/frontend/src/components/chain/types.ts +70 -0
- package/frontend/src/components/collaboration/CollaborationFlowSection.vue +1032 -0
- package/frontend/src/components/collaboration/CollaborationFlowWrapper.vue +113 -0
- package/frontend/src/components/performance/PerformancePanel.vue +119 -0
- package/frontend/src/components/performance/PerformanceSection.vue +1137 -0
- package/frontend/src/components/tasks/TaskStatusSection.vue +973 -0
- package/frontend/src/components/timeline/TimelineConnector.vue +31 -0
- package/frontend/src/components/timeline/TimelineRound.vue +135 -0
- package/frontend/src/components/timeline/TimelineStep.vue +691 -0
- package/frontend/src/components/timeline/TimelineToolLink.vue +109 -0
- package/frontend/src/components/timeline/TimelineView.vue +540 -0
- package/frontend/src/components/timeline/index.ts +5 -0
- package/frontend/src/components/timeline/types.ts +120 -0
- package/frontend/src/composables/index.ts +7 -0
- package/frontend/src/composables/useDebounce.ts +48 -0
- package/frontend/src/composables/useRealtime.ts +52 -0
- package/frontend/src/composables/useState.ts +52 -0
- package/frontend/src/composables/useThrottle.ts +46 -0
- package/frontend/src/composables/useVirtualScroll.ts +106 -0
- package/frontend/src/main.ts +4 -0
- package/frontend/src/managers/EventDispatcher.ts +127 -0
- package/frontend/src/managers/RealtimeDataManager.ts +293 -0
- package/frontend/src/managers/StateManager.ts +128 -0
- package/frontend/src/managers/index.ts +5 -0
- package/frontend/src/types/collaboration.ts +135 -0
- package/frontend/src/types/index.ts +20 -0
- package/frontend/src/types/performance.ts +105 -0
- package/frontend/src/types/task.ts +38 -0
- package/frontend/vite.config.ts +18 -0
- package/package.json +22 -0
- package/plugin/README.md +99 -0
- package/plugin/config.json.example +1 -0
- package/plugin/index.js +250 -0
- package/plugin/openclaw.plugin.json +17 -0
- package/plugin/package.json +21 -0
- package/scripts/build-plugin.js +67 -0
- package/scripts/bundle.sh +62 -0
- package/scripts/install-plugin.sh +162 -0
- package/scripts/install-python-deps.js +346 -0
- package/scripts/install-python-deps.sh +226 -0
- package/scripts/install.js +512 -0
- package/scripts/install.sh +367 -0
- package/scripts/lib/common.js +490 -0
- package/scripts/lib/common.sh +137 -0
- package/scripts/release-pack.sh +110 -0
- package/scripts/start.js +50 -0
- package/scripts/test_available_models.py +284 -0
- package/scripts/test_websocket_ping.py +44 -0
- package/src/backend/agents.py +73 -0
- package/src/backend/api/__init__.py +1 -0
- package/src/backend/api/agent_config_api.py +90 -0
- package/src/backend/api/agents.py +73 -0
- package/src/backend/api/agents_config.py +75 -0
- package/src/backend/api/chains.py +126 -0
- package/src/backend/api/collaboration.py +902 -0
- package/src/backend/api/debug_paths.py +39 -0
- package/src/backend/api/error_analysis.py +146 -0
- package/src/backend/api/errors.py +281 -0
- package/src/backend/api/performance.py +784 -0
- package/src/backend/api/subagents.py +770 -0
- package/src/backend/api/timeline.py +144 -0
- package/src/backend/api/websocket.py +251 -0
- package/src/backend/collaboration.py +405 -0
- package/src/backend/data/__init__.py +1 -0
- package/src/backend/data/agent_config_manager.py +270 -0
- package/src/backend/data/chain_reader.py +299 -0
- package/src/backend/data/config_reader.py +153 -0
- package/src/backend/data/error_analyzer.py +430 -0
- package/src/backend/data/session_reader.py +445 -0
- package/src/backend/data/subagent_reader.py +244 -0
- package/src/backend/data/task_history.py +118 -0
- package/src/backend/data/timeline_reader.py +981 -0
- package/src/backend/errors.py +63 -0
- package/src/backend/main.py +89 -0
- package/src/backend/mechanism_reader.py +131 -0
- package/src/backend/mechanisms.py +32 -0
- package/src/backend/performance.py +474 -0
- package/src/backend/requirements.txt +5 -0
- package/src/backend/session_reader.py +238 -0
- package/src/backend/status/__init__.py +1 -0
- package/src/backend/status/error_detector.py +122 -0
- package/src/backend/status/status_calculator.py +301 -0
- package/src/backend/status_calculator.py +121 -0
- package/src/backend/subagent_reader.py +229 -0
- package/src/backend/watchers/__init__.py +4 -0
- package/src/backend/watchers/file_watcher.py +159 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
// Task Chain 类型定义
|
|
2
|
+
|
|
3
|
+
/** 节点状态 */
|
|
4
|
+
export type ChainNodeStatus = 'pending' | 'running' | 'completed' | 'error'
|
|
5
|
+
|
|
6
|
+
/** 链路状态 */
|
|
7
|
+
export type ChainStatus = 'running' | 'completed' | 'error'
|
|
8
|
+
|
|
9
|
+
/** 链路节点 */
|
|
10
|
+
export interface ChainNode {
|
|
11
|
+
agentId: string
|
|
12
|
+
agentName: string
|
|
13
|
+
role: string
|
|
14
|
+
|
|
15
|
+
status: ChainNodeStatus
|
|
16
|
+
startedAt?: number
|
|
17
|
+
endedAt?: number
|
|
18
|
+
duration?: number
|
|
19
|
+
|
|
20
|
+
task?: string
|
|
21
|
+
runId?: string
|
|
22
|
+
|
|
23
|
+
input?: string
|
|
24
|
+
output?: string
|
|
25
|
+
artifacts: string[]
|
|
26
|
+
|
|
27
|
+
toolCallCount: number
|
|
28
|
+
tokenUsage: { input: number; output: number }
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/** 链路边 */
|
|
32
|
+
export interface ChainEdge {
|
|
33
|
+
from: string
|
|
34
|
+
to: string
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/** 任务链 */
|
|
38
|
+
export interface TaskChain {
|
|
39
|
+
chainId: string
|
|
40
|
+
projectId?: string
|
|
41
|
+
rootTask: string
|
|
42
|
+
|
|
43
|
+
startedAt?: number
|
|
44
|
+
status: ChainStatus
|
|
45
|
+
|
|
46
|
+
nodes: ChainNode[]
|
|
47
|
+
edges: ChainEdge[]
|
|
48
|
+
|
|
49
|
+
progress: number
|
|
50
|
+
completedNodes: number
|
|
51
|
+
totalNodes: number
|
|
52
|
+
totalDuration: number
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/** 任务链响应 */
|
|
56
|
+
export interface TaskChainResponse {
|
|
57
|
+
chains: TaskChain[]
|
|
58
|
+
activeChain?: TaskChain
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/** 节点状态配置 */
|
|
62
|
+
export const nodeStatusConfig: Record<ChainNodeStatus, { icon: string; bgColor: string; borderColor: string; label: string }> = {
|
|
63
|
+
pending: { icon: '⏳', bgColor: '#f3f4f6', borderColor: '#9ca3af', label: '等待中' },
|
|
64
|
+
running: { icon: '🔄', bgColor: '#eff6ff', borderColor: '#3b82f6', label: '进行中' },
|
|
65
|
+
completed: { icon: '✅', bgColor: '#f0fdf4', borderColor: '#22c55e', label: '已完成' },
|
|
66
|
+
error: { icon: '❌', bgColor: '#fef2f2', borderColor: '#ef4444', label: '失败' }
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/** Agent 角色顺序 */
|
|
70
|
+
export const agentRoleOrder = ['main', 'analyst', 'architect', 'devops']
|