export type RoomStatus = 'pending' | 'thinking' | 'working' export type RoomType = 'dept' | 'leader' export interface Room { id: string name: string type: RoomType status: RoomStatus master: string activeAgent?: string action?: string } export interface Message { id: string agent: string role: 'user' | 'master' | 'member' content: string streaming?: boolean } export interface AgentInfo { name: string } export interface SkillMeta { name: string description: string path: string } export type WsEvent = | { type: 'agent_message'; agent: string; role: 'master' | 'member'; content: string; streaming: boolean } | { type: 'room_status'; status: RoomStatus; active_agent?: string; action?: string } | { type: 'task_assign'; from: string; to: string; task: string } | { type: 'tasks_update'; content: string } | { type: 'workspace_file'; filename: string; content: string }