diff --git a/docs/implementation-status.md b/docs/implementation-status.md index 78ac492..a57d3df 100644 --- a/docs/implementation-status.md +++ b/docs/implementation-status.md @@ -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 报错。✅ - 点角色(工部)→ 真机切到该席独立会话(提示“已切换到工部会话”),无报错。✅ diff --git a/preview/check-live.mjs b/preview/check-live.mjs index 2abc227..c2a8105 100644 --- a/preview/check-live.mjs +++ b/preview/check-live.mjs @@ -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')) { diff --git a/preview/live-05-report.png b/preview/live-05-report.png index 6ddaff9..bec9f91 100644 Binary files a/preview/live-05-report.png and b/preview/live-05-report.png differ diff --git a/preview/live-06-report-lipu.png b/preview/live-06-report-lipu.png new file mode 100644 index 0000000..86ef263 Binary files /dev/null and b/preview/live-06-report-lipu.png differ diff --git a/sansheng/client.js b/sansheng/client.js index 889dd67..fc7dc3e 100644 --- a/sansheng/client.js +++ b/sansheng/client.js @@ -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; diff --git a/sansheng/src/client/index.js b/sansheng/src/client/index.js index 4ca2e83..b910c93 100644 --- a/sansheng/src/client/index.js +++ b/sansheng/src/client/index.js @@ -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, ) diff --git a/sansheng/src/client/styles.js b/sansheng/src/client/styles.js index 69c10a1..45327b5 100644 --- a/sansheng/src/client/styles.js +++ b/sansheng/src/client/styles.js @@ -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}