설치
npx -y @deepseek-ai/dsh plugin --profile web add github:ztyhehe/unipet-dsh이 설치 명령은 GitHub 저장소 주소에서 생성된 확인되지 않은 시작점입니다.
README
유지 관리자가 작성한 문서 스냅샷입니다.
최근 디렉터리 동기화에서 이 README 스냅샷을 새로 고치지 못했습니다.
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
저장소 정보
- 언어
- JavaScript
- 라이선스
- MIT
- 마지막 업데이트
- 2026. 8. 18. AM 3:29
신중하게 설치하기
소스 코드, 권한, 수명 주기 스크립트, 의존성 및 네트워크 접근을 검토하고 신뢰하지 않는 플러그인은 격리 환경에서 테스트하세요.