feat(圆桌): Step3 三产物并行 + 大屏多页模式 + 后台挂起查看恢复流程

后台挂起 Step3:
- engine 总结报告/结果绘制/大屏数据 asyncio.gather 三流并行,故障隔离
- request.state 回归修复(进程内虚拟 request 补 state),恢复后台报告
- ROUNDTABLE_JOB_GATEWAY 默认 inprocess;产物自愈重试(截断/缺失纠偏)
- 大屏后端只产 report-json(dashboardJson),前端按当前主题渲染

结果绘制大屏多页模式(模式二):
- report-template 模板渲染(report-json→大屏HTML),零截断、主题跟随
- 与模式一同款交互(流式+沙箱+可修改);沙箱新窗口打开按钮

最终方案展示:左侧席位栏+总控头像、交付/文件合并、收展动画、内联沙箱

后台挂起查看=恢复实时流程:
- handleLoadDraft 返回 Promise,await hydrate 后订阅 streamJob SSE 跟随
- saveDraftNow 强制存(发起前+查看前各一次)防丢

第二步优化:总控判断串/并行(并行单列可写)、席位上下文+交付模板、
peerDeliveries、失败重试、共识标记、流程图小窗(缩放/拖动/并行批)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@
This commit is contained in:
董宏凯 committed 2026-06-13 10:36:46 +08:00
1 parent a7596001c5
commit d5f319d9cb
51 files changed
+5016 -1186

No files matched your search

@@ -11,6 +11,7 @@ import test from "node:test";
import {
detectFlowIntent,
extractFlowGraph,
hasFlowFence,
layoutFlowGraph,
stripFlowFence,
} from "./flow-graph";
@@ -128,6 +129,16 @@ test("detectFlowIntent:普通措辞不误触发", () => {
assert.equal(detectFlowIntent(undefined), false);
});
test("hasFlowFence:判定回复主产物是否为流程图(流式半截也算)", () => {
assert.ok(hasFlowFence(FULL)); // 完整闭合块
assert.ok(hasFlowFence('说明文字\n```flow-json\n{"nodes":[')); // 流式半截、未闭合
assert.equal(hasFlowFence("纯文字报告正文,没有流程图"), false);
assert.equal(hasFlowFence("```json\n{}\n```"), false); // 普通 json 块不算
assert.equal(hasFlowFence(""), false);
assert.equal(hasFlowFence(null), false);
assert.equal(hasFlowFence(undefined), false);
});
test("layoutFlowGraph:环不死循环", () => {
const text = [
"```flow-json",