-
feat(ai-script): 深度档流式可见过程(GPT/Claude 式:规划→撰写→自检→修订) · 60ce7324
深度档原来是 start →(黑盒30-60s)→ done,看不到中间过程。改成逐步可见: 后端: - deep.strategy 加 runStream():逐步 yield step 事件(plan/write/verify/repair 的 running/done + 各步摘要:大纲/质量分/问题数);撰写/修订步走 runner.stream 逐字 partial(打字机)。run() 保留不动。 - orchestrator 深度档 SSE 路径改为消费 runStream → 转发 step + partial 事件;新增 PlanScriptStreamEvent.step。 前端: - use-script-stream 解析 step 事件,维护 steps 时间线(done 后保留可回看)。 - 新增 ScriptDeepProcess 组件:步骤时间线(spinner/✓ + 大纲展示 + 接地安全/质量分 + 修订问题数)。 - plan-detail-app 在话术区顶部渲染过程面板;正文 sections 在下方逐字流。 端到端实测(本地 deepseek-v4-flash):start→step plan(running/done)→step write+逐字partial→ step verify→step repair→done,全程事件正常流出。abort/停止复用现有。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
luoqi committed
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| plan-script.orchestrator.ts | Loading commit data... | |
| plan-summary.orchestrator.ts | Loading commit data... |