dsh-sansheng-liubu/panel/README.md

38 lines
1.2 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` 的预设宿主插件重复加载。
## 功能
- 在会话头部显示 **Agents** 按钮和当前团队成员数。
- 列出 Lead 与各部门成员,显示角色、运行状态、模型和当前会话。
- 点击成员直接导航到对应会话;Lead 在父会话打开,成员以 `continuable` 子会话打开。
- 显示共享任务摘要,点击负责人可跳转。
- `Alt+1`…`Alt+9` 快速切换,`Alt+Shift+A` 开关面板,`Esc` 关闭。
面板只读 `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
```