78 lines
2.9 KiB
Markdown
78 lines
2.9 KiB
Markdown
# @sidaocai/dsh-markmag
|
||
|
||
DeepSeek Harness 插件 · 四道菜团队中台。
|
||
|
||
## 它做什么
|
||
|
||
装上之后,DSH 里会有三样东西:
|
||
|
||
1. **公司模型通道** —— 模型选择器里多出「四道菜 · GLM-5.3 / GLM-5.3-Flash」,走公司网关,用你自己的团队钥匙
|
||
2. **弹匣工具面** —— AI 能直接查团队的任务、项目、逾期,也能建任务、标记完成、改期
|
||
3. **侧边栏面板** —— 个人看板:今天的活、我可见的范围、项目卡,行内就能完成/改期
|
||
|
||
个人 DeepSeek 账号那条通道完全不动,两条线并存。
|
||
|
||
## 装(新同事)
|
||
|
||
一条命令(2026-11-11 起插件从 Gitea 直装,无需本地仓库):
|
||
|
||
```bash
|
||
bash <(curl -fsSL https://brain.sidaocai.cn/git/sidaocai/dsh-markmag/raw/branch/main/scripts/bootstrap.sh)
|
||
```
|
||
|
||
它做两件事:从 Gitea 装插件(profile 默认 desktop)→ 打开浏览器取一次性码,你粘回来,key 自动写进 DSH 凭据。
|
||
|
||
只装插件不换 key(key 已有):
|
||
|
||
```bash
|
||
dsh plugin --profile desktop add https://brain.sidaocai.cn/git/sidaocai/dsh-markmag.git
|
||
```
|
||
|
||
然后重启 DSH。
|
||
|
||
> 维护者本机(有本地仓库 + 老桌面 profile)仍可用全量版:
|
||
> `node ~/Documents/Essay_AI/Essay_system/dsh-markmag/scripts/setup-account.mjs`
|
||
|
||
## 更新(已装过)
|
||
|
||
```bash
|
||
node ~/Documents/Essay_AI/Essay_system/dsh-markmag/scripts/update.mjs
|
||
```
|
||
|
||
重启 DSH 生效。已是最新时会直接退出;要强制重装加 `--force`。
|
||
|
||
## 发布(维护者)
|
||
|
||
```bash
|
||
node scripts/build-client.mjs # 或交给 prepack 自动做
|
||
npm version patch # 修 bug 用 patch,加功能用 minor
|
||
git push gitea main --follow-tags
|
||
npm publish # 推到 Gitea 私有 registry
|
||
```
|
||
|
||
发布前的七项检查由 `prepublishOnly` 自动跑(敏感文件、白名单、产物新鲜度、CHANGELOG 等)。
|
||
|
||
包地址:`https://brain.sidaocai.cn/git/api/packages/sidaocai/npm/@sidaocai/dsh-markmag`
|
||
|
||
## 出问题怎么救
|
||
|
||
| 症状 | 处理 |
|
||
|---|---|
|
||
| 插件加载失败、侧边栏消失 | 先看 `~/.dsh/markmag-plugin-state.json` 停在哪一步 |
|
||
| **其他插件全都不见了** | DSH 启动失败会把 bundles 重置成只剩官方包,跑 `node scripts/repair-profile.mjs` 恢复 |
|
||
| 模型列表没有 GLM | 检查 `~/.dsh/.credentials.yaml` 里有没有 `MARKMAG_TEAM_KEY` |
|
||
| 面板空白/报错 | 面板调 `/__markmag/*`,先看 `~/.dsh/markmag-plugin-state.json` 有没有 `panel-api-registered` |
|
||
|
||
## 文档
|
||
|
||
- `docs/发布与更新方案.md` —— 发布链路、踩坑记录、待办
|
||
- `docs/panel-ui-plan.md` —— 面板的信息架构与交互规范
|
||
|
||
## 边界
|
||
|
||
**面板只读 + 少量操作,规则永远只有一份。**
|
||
|
||
面板的写操作(完成/改期/建任务)全部落到弹匣的 `tasks_store`,
|
||
状态机、字段白名单、部门可见性、活动日志、依赖预警都在弹匣侧判定。
|
||
面板不复制任何业务规则,因此不会出现「两端不一致」。
|