dsh-sansheng-liubu/panel/README.md

40 lines
1.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# dsh-sansheng-liubu-panel
三省六部 Agent Team 的 DSH Web 客户端面板。它是独立插件包,避免与 `dsh-sansheng-liubu-mode` 的预设宿主插件重复加载。
## 功能
- 在会话头部显示当前团队成员数。
- 朝堂编制与任务流转收进会话右侧栏,用「朝堂 / 任务」页签切换;不再占用工作区主视图。
- 右侧栏顶部提供协作状态、`输入 @ 选择部门` 提示和子会话返回按钮;四个统计卡固定在侧栏内,可点击切换朝堂或任务。
- 朝堂图按丞相、三省、六部分层展示;选中部门后在侧栏下方配置模型、推理等级或进入其会话。
- 在 DSH 原生会话输入框输入 `@`,可直接选择已设官的部门并进入其子会话发送任务;不另造聊天框,也不会静默改写接收人。
- 进入部门子会话后侧栏自动选中对应部门;返回丞相主会话时恢复丞相选中。
- 复用 DSH 主题变量,支持明亮、深色和窄侧栏布局。
面板只读 `agentTeam` 投影并复用现有 `uiWorkspace.openSession`,不创建 Agent、不调用工具、不改变权限边界。
## 安装
在 DSH profile 的 `package.json` 中加入:
```json
"dependencies": {
"dsh-sansheng-liubu-panel": "link:C:/Users/qyh15/三省六部/panel"
},
"dsh": {
"profile": {
"bundles": ["dsh-sansheng-liubu-panel"]
}
}
```
安装后需要重启 DSH Host,再刷新 Web 页面。客户端 bundle 会在页面启动时由 `dsh-client-modules` 组合;只刷新页面不会让 Host 重新扫描新插件。
## 验证
```bash
node --test --test-isolation=none panel/test/client.test.js
node ../scripts/check-install.mjs
```