perf: 渲染逻辑处理

This commit is contained in:
rd
2025-08-27 17:18:47 +08:00
parent 6e7bf7f9e4
commit 1360717647
6 changed files with 262 additions and 100 deletions

View File

@ -1,25 +1,22 @@
declare global {
namespace MESSAGE {
type TASK_STATUS =
| 'RunStarted'
| 'RunResponseContent'
| 'RunCompleted'
| 'TeamRunStarted'
| 'TeamRunResponseContent'
| 'TeamRunCompleted';
type RUN_TASK_STATUS = 'RunStarted' | 'RunResponseContent' | 'RunCompleted';
type TEAM_RUN_TASK_STATUS = 'TeamRunStarted' | 'TeamRunResponseContent' | 'TeamRunCompleted';
interface Answer {
message: string;
node: string;
output: string;
run_id: string;
team_run_id: string;
status: TASK_STATUS;
extra_data: {
message?: string;
node?: string;
output?: string;
run_id?: string;
teamRunTaskId?: string;
isCollapse?: boolean;
status?: RUN_TASK_STATUS | TEAM_RUN_TASK_STATUS;
runStatus?: RUN_TASK_STATUS;
teamRunStatus?: TEAM_RUN_TASK_STATUS;
extra_data?: {
type: string;
data: Record<string, any>;
};
team_session_state: any;
}
}
}