返回 AiToEarn
agent.constants.ts
根目录 / project / aitoearn-web / src / store / agent / agent.constants.ts
1 /**
2 * Agent Store - 常量定义
3 * 状态配置、进度配置等常量
4 */
5
6 /** 状态显示配置 */
7 export const STATUS_CONFIG: Record<string, { text: string, color: string }> = {
8 THINKING: { text: 'thinking', color: '#a66ae4' },
9 WAITING: { text: 'waiting', color: '#b78ae9' },
10 GENERATING_CONTENT: { text: 'generatingContent', color: '#a66ae4' },
11 GENERATING_IMAGE: { text: 'generatingImage', color: '#8b4fd9' },
12 GENERATING_VIDEO: { text: 'generatingVideo', color: '#9558de' },
13 GENERATING_TEXT: { text: 'generatingText', color: '#a66ae4' },
14 COMPLETED: { text: 'completed', color: '#52c41a' },
15 FAILED: { text: 'failed', color: '#ff4d4f' },
16 CANCELLED: { text: 'cancelled', color: '#8c8c8c' },
17 }
18
19 /** 基础进度配置 */
20 export const BASE_PROGRESS: Record<string, number> = {
21 THINKING: 10,
22 WAITING: 20,
23 GENERATING_CONTENT: 30,
24 GENERATING_TEXT: 40,
25 GENERATING_IMAGE: 50,
26 GENERATING_VIDEO: 60,
27 COMPLETED: 100,
28 }
29
30 /** 生成中的状态列表 */
31 export const GENERATING_STATUSES = [
32 'GENERATING_CONTENT',
33 'GENERATING_IMAGE',
34 'GENERATING_VIDEO',
35 'GENERATING_TEXT',
36 ]
37
37 lines TYPESCRIPT