52 lines
1.9 KiB
Markdown
52 lines
1.9 KiB
Markdown
# 三省六部
|
||
|
||
> 2026-11-10 收敛:只保留两个子包——`sansheng/`(治理插件)与 `ds-bot/`(团队底座)。
|
||
> 旧方案(「上朝」preset、右侧十席面板、独立工作台 v0.1)已删除,历史仍在 Git 里(`git log --all`)。
|
||
|
||
## 结构
|
||
|
||
| 目录 | 包名 | 作用 |
|
||
|---|---|---|
|
||
| `sansheng/` | `dsh-sansheng-sansheng` | 在 DS Bot 团队上补三角色(丞相 / 尚书 / 工部)绑定、状态、目标门禁与审查记录 |
|
||
| `ds-bot/` | `ds-bot` | 长驻 Bot 团队、Bot 间消息与群聊(Fei2411/DS-Bot 的 vendored 副本,本地改动见 `ds-bot/PATCHES.md`) |
|
||
| `docs/` | — | [DSBot 开发方案](docs/DSBot-三省六部开发方案.md) 与 P0 / P1 证据 |
|
||
|
||
根目录 `package.json` 只是工作区清单(`workspaces: sansheng, ds-bot`),本身不是 DSH 插件,也不进 `dsh.profile.bundles`。
|
||
|
||
## 装进 DSH
|
||
|
||
两个子包都以 `link:` 依赖挂进 `~/.dsh/profiles/desktop`,并写进 `dsh.profile.bundles`:
|
||
|
||
```json
|
||
"ds-bot": "link:C:/Users/qyh15/三省六部/ds-bot",
|
||
"dsh-sansheng-sansheng": "link:C:/Users/qyh15/三省六部/sansheng"
|
||
```
|
||
|
||
```json
|
||
"bundles": [ ..., "dsh-sansheng-sansheng", "ds-bot" ]
|
||
```
|
||
|
||
改完 profile 必须彻底重启 DSH 才生效。
|
||
|
||
## 验证
|
||
|
||
```sh
|
||
node --test --test-isolation=none sansheng/test/*.test.js # 或在 sansheng/ 里 npm test
|
||
node --check sansheng/index.js
|
||
```
|
||
|
||
Node >= 22。
|
||
|
||
## 历史
|
||
|
||
- 第一代(11-07 ~ 11-09):`dsh-sansheng-liubu-mode`(上朝 Agent Preset)+ `dsh-sansheng-liubu-panel`(右侧十席面板)。
|
||
- 第二代(11-10 上午):`dsh-sansheng-liubu-workbench`(自建数据层 / Host 服务 / HTTP / 前端的独立工作台 v0.1),同日 12:19 被 DS Bot 方案取代。
|
||
- 当前(11-10 起):`ds-bot` + `sansheng`。
|
||
|
||
删除的内容都能从 Git 取回,例如:
|
||
|
||
```sh
|
||
git log --all --oneline -- panel
|
||
git show <sha>:panel/lib/client.js
|
||
```
|