feat(client): 汇报显示每部门所用模型(礼部演示 gemini 3.8flash)

This commit is contained in:
qyh15 2026-11-15 00:58:19 +08:00
parent 290ec057d6
commit 9e79427ba4
7 changed files with 41 additions and 20 deletions

View File

@ -56,7 +56,8 @@ HTTP 处理器端到端;systemPrompt 只注入十席;Web 纯视图模型(
- 点「启用此项目的十席」→ 宿主真实建成 10 个独立 root session:项目 ready、10 席 bound、failed=0、无报错。✅
- 重启 DSH 进程后重开:仍「10 个角色 · 10 个会话」、无「启用」按钮、10 个会话 ID 互不相同 → 持久化与幂等通过,重启不重复建会话。✅
- 入口按用户要求移到“新会话”行右侧(`sidebar.session.action`),不再占底部;每个部门卡片统一为与丞相一致的蓝色边框,三省/六部仅保留文字分组标题。✅
- 新增「全部汇报职责」入口:点开逐条列出十席各自职责;冒烟测试连跑 3 轮,每轮十席 10/10 职责正常汇报、0 console 报错。✅
- 新增「全部汇报职责」入口:点开逐条列出十席各自职责与所用模型;冒烟测试连跑 3 轮,每轮十席 10/10 正常汇报、0 console 报错。✅
- 每席模型独立显示:演示中礼部配置为 gemini 3.8flash(本机无该模型路由,仅配置展示、不可真跑),其余九席为 deepseek-v4.1-flash。✅
- 工作台进入真实右侧 dock(`inDock=true`、非浮动面板),无 console 报错。✅
- 点角色(工部)→ 真机切到该席独立会话(提示“已切换到工部会话”),无报错。✅

View File

@ -97,10 +97,16 @@ async function main() {
items: Array.from(document.querySelectorAll('.ssw-report-item')).map(el => ({
seat: el.getAttribute('data-seat'),
name: el.querySelector('strong')?.innerText?.trim() ?? null,
model: el.querySelector('.ssw-report-model')?.innerText?.trim() ?? null,
text: el.querySelector('.ssw-report-text')?.innerText?.trim() ?? null,
})),
}))()`)
await shot('live-05-report.png')
try {
await evaluate("(() => { const el = document.querySelector('.ssw-report-item[data-seat=lipu]'); if (el) { el.scrollIntoView({ block: 'center' }); return true } return false })()")
await sleep(500)
await shot('live-06-report-lipu.png')
} catch {}
}
if (process.argv.includes('--each')) {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 89 KiB

After

Width:  |  Height:  |  Size: 87 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 103 KiB

View File

@ -420,7 +420,8 @@ body[data-ds-dark-theme] .ssw-float,html[data-theme=dark] .ssw-float{background:
.ssw-report-head{display:flex;gap:8px;align-items:baseline}
.ssw-report-head strong{font-size:13px;letter-spacing:1px}
.ssw-report-head span{font-size:10px;color:var(--ssw-muted)}
.ssw-report-text{margin:5px 0 0;font-size:12px;line-height:1.7;color:var(--ssw-muted)}
.ssw-report-model{margin:4px 0 0;font-size:11px;color:var(--ssw-blue);letter-spacing:.2px}
.ssw-report-text{margin:4px 0 0;font-size:12px;line-height:1.7;color:var(--ssw-muted)}
.ssw-current{margin:16px 16px 0;padding:13px;border:1px solid var(--ssw-line);border-radius:11px;background:var(--ssw-card)}
.ssw-current-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}
.ssw-current-name{font-size:13px;font-weight:600}
@ -1343,17 +1344,23 @@ function apply(ctx) {
reportOpen ? (0, import_react.createElement)(
"div",
{ className: "ssw-report-list" },
SEAT_IDS.map((id) => (0, import_react.createElement)(
"div",
{ key: id, className: "ssw-report-item", "data-seat": id },
(0, import_react.createElement)(
SEAT_IDS.map((id) => {
const rec = seatRecordOf(view, id);
const m = rec && rec.model;
const modelLabel = m && m.model ? m.model + (m.reasoningEffort ? " · " + m.reasoningEffort : "") : "未选择模型";
return (0, import_react.createElement)(
"div",
{ className: "ssw-report-head" },
(0, import_react.createElement)("strong", null, SEATS[id].label),
(0, import_react.createElement)("span", null, SEATS[id].duty)
),
(0, import_react.createElement)("p", { className: "ssw-report-text" }, SEATS[id].responsibility)
))
{ key: id, className: "ssw-report-item", "data-seat": id },
(0, import_react.createElement)(
"div",
{ className: "ssw-report-head" },
(0, import_react.createElement)("strong", null, SEATS[id].label),
(0, import_react.createElement)("span", null, SEATS[id].duty)
),
(0, import_react.createElement)("p", { className: "ssw-report-model" }, "模型:" + modelLabel),
(0, import_react.createElement)("p", { className: "ssw-report-text" }, SEATS[id].responsibility)
);
})
) : null
);
const statusEl = error ? (0, import_react.createElement)("p", { className: "ssw-error", role: "alert" }, error) : notice ? (0, import_react.createElement)("p", { className: "ssw-notice", role: "status" }, notice) : null;

View File

@ -469,13 +469,19 @@ export function apply(ctx) {
}, reportOpen ? '收起职责汇报' : '全部汇报职责'),
reportOpen
? h('div', { className: 'ssw-report-list' },
SEAT_IDS.map(id => h('div', { key: id, className: 'ssw-report-item', 'data-seat': id },
h('div', { className: 'ssw-report-head' },
h('strong', null, SEATS[id].label),
h('span', null, SEATS[id].duty),
),
h('p', { className: 'ssw-report-text' }, SEATS[id].responsibility),
)),
SEAT_IDS.map(id => {
const rec = seatRecordOf(view, id)
const m = rec && rec.model
const modelLabel = m && m.model ? (m.model + (m.reasoningEffort ? ' · ' + m.reasoningEffort : '')) : '未选择模型'
return h('div', { key: id, className: 'ssw-report-item', 'data-seat': id },
h('div', { className: 'ssw-report-head' },
h('strong', null, SEATS[id].label),
h('span', null, SEATS[id].duty),
),
h('p', { className: 'ssw-report-model' }, '模型:' + modelLabel),
h('p', { className: 'ssw-report-text' }, SEATS[id].responsibility),
)
}),
)
: null,
)

View File

@ -54,7 +54,8 @@ body[data-ds-dark-theme] .ssw-float,html[data-theme=dark] .ssw-float{background:
.ssw-report-head{display:flex;gap:8px;align-items:baseline}
.ssw-report-head strong{font-size:13px;letter-spacing:1px}
.ssw-report-head span{font-size:10px;color:var(--ssw-muted)}
.ssw-report-text{margin:5px 0 0;font-size:12px;line-height:1.7;color:var(--ssw-muted)}
.ssw-report-model{margin:4px 0 0;font-size:11px;color:var(--ssw-blue);letter-spacing:.2px}
.ssw-report-text{margin:4px 0 0;font-size:12px;line-height:1.7;color:var(--ssw-muted)}
.ssw-current{margin:16px 16px 0;padding:13px;border:1px solid var(--ssw-line);border-radius:11px;background:var(--ssw-card)}
.ssw-current-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}
.ssw-current-name{font-size:13px;font-weight:600}