Installation
npx -y @deepseek-ai/dsh plugin --profile web add github:ztyhehe/unipet-dshThis installation command is an unverified starting point generated from the GitHub repository address.
README
Maintainer-authored documentation snapshot.
This README snapshot could not be refreshed during the latest directory sync.
unipet-dsh
DSH(DeepSeek Harness)→ UniPet 桌面宠物联动插件:监听 DSH 的 agent / session 生命周期事件,把状态实时推送给本地 UniPet 宠物(HTTP API,默认 127.0.0.1:8768),让桌宠反映 AI 的干活状态。
✨ 状态映射
| DSH 事件 | UniPet 状态 | 气泡文案 |
|---|---|---|
turn/start(新轮次开始) | running | Thinking… |
tool/call(工具调用前) | running | Editing code / Running command / Searching / Delegating |
approval/asked(权限询问) | waiting | Waiting for your approval |
| 提问类工具(ask/question) | waiting | Waiting for your answer |
tool/result 失败 / agent/error | failed | Task failed |
agent/status idle(轮次结束) | review | Done - ready for review(8s 后自动复位) |
📦 安装(标准 bundle 通道)
cd ~/.dsh && dsh plugin --profile web add git+https://github.com/ztyhehe/unipet-dsh.git
安装后重启 dsh web 即生效。
若 profile 的
cordis.patch.yml里还留着旧的手工挂载行(name: './plugins/unipet-dsh/index.js'),请删除该条 insert,避免双实例重复推送。
卸载
cd ~/.dsh && dsh plugin --profile web remove unipet-dsh
⚙️ 配置(可选)
默认值即可使用;需要时在 profile 的 cordis.patch.yml 里覆盖插件 insert 的 config:
| 键 | 默认 | 说明 |
|---|---|---|
host | 127.0.0.1 | UniPet HTTP 地址 |
port | 8768 | UniPet HTTP 端口 |
source | dsh | 事件来源标识(宠物侧区分多来源) |
autoStart | true | 宠物不在线时尝试 unipet start 拉起 |
ttl.{idle,running,waiting,failed,review} | 见源码 | 各状态气泡存活毫秒数 |
🔒 说明
- 纯 host 侧插件(无 client 半),仅访问本机回环地址,不外发任何数据
- 与 UniPet 自身交互的工具不会回推状态,避免自激
- 卸载时清理全部定时器
📄 许可
MIT
Repository information
- Language
- JavaScript
- License
- MIT
- Last updated
- Aug 18, 2026, 3:29 AM
Install deliberately
Review source code, permissions, lifecycle hooks, dependencies and network access. Test untrusted plugins in an isolated environment.