// 运行状态 —— 跨 Studio 与底部抽屉共享。 export type RunPhase = "idle" | "submitting" | "streaming" | "done" | "error"; export interface RunEvent { t: number; // 相对开始的毫秒 label: string; } export interface RunState { phase: RunPhase; taskId?: string; output: string; events: RunEvent[]; error?: string; } export const emptyRun: RunState = { phase: "idle", output: "", events: [] };