统一:DSH 智能分析、Top100 与图表静默恢复

接入 DSH 专用运行时和对话界面,保留模型原始回答,支持会话分页、连续追问与显式报告。
补齐组合筛选、各维度 Top100、分组查询到排名图的转换,图表故障静默省略并基于保存数据自动恢复。
优化报告风格、图表顺序和表格换行,更新接入说明及构建输入。

验证:独立目录前后端构建通过;118 项 Java、102 项前端、102 项图表、14 项 DSH 应用和 13 项组合筛选检查通过。
仅提交相关源码、锁定依赖与测试;不包含凭据、会话、业务数据或本地产物。
This commit is contained in:
2026-11-12 11:57:41 +08:00
parent cc8832c8e5
commit f1a2fbd494
166 changed files with 26281 additions and 2248 deletions
@@ -37,6 +37,15 @@ test('figures are inserted after the associated complete chapter without removin
test('alternate historical evidence fallback also recovers native prose',()=>{
const data=legacy();data.result.readingSummary.lead='现有证据不足以支持本轮完整分析,已保留可核验统计结果。';assert.equal(originalAnalysisBody(data).answer,original);
});
test('DSH never restores an unverified investigation draft over a checked partial result',()=>{
const data=legacy();data.result.engine='DSH';
data.result.answer='已取得本轮统计结果,答案整理尚未完整完成。';
data.plan.timeline.at(-1).text='TOP5全部属于缺角。';
const body=originalAnalysisBody(data);
assert.equal(body.source,'saved');assert.equal(body.answer,data.result.answer);
assert.doesNotMatch(body.answer,/全部属于缺角/);
data.result.answer='';assert.deepEqual(originalAnalysisBody(data),{answer:'',source:'unavailable'});
});
test('black and bright figures cannot be attached to the opposite stage chapter',()=>{
const body='## 黑片阶段\n\n黑片完整解释。\n\n## 亮片阶段\n\n亮片完整解释。';
const figures=[{id:'black',type:'column',stage:'black',metric:'black_rate',evidenceRefs:[]},{id:'bright',type:'column',stage:'bright',metric:'bright_rate',evidenceRefs:[]}];