0b9af194a6f0b5ec0438864b216d2cf06d21410d
dsh-watch
DeepSeek Harness 插件:把当前 Harness 变成一个可被 DSHWatch 手机/手表远程控制的端点。
安装
像安装其他 DSH 插件一样,对 Harness 说"安装这个插件":
dsh plugin --profile desktop add dsh-watch
或本地开发安装:
dsh plugin --profile desktop add link:D:/project/DeepSeek_Harness_Watch/dsh-watch
然后在 profile 的 cordis.patch.yml 配置:
- id: dsh-watch
config:
mode: relay # relay | direct
serverUrl: "ws://你的服务器:8787"
userId: "dalong"
token: "与服务器/客户端一致的 token"
reconnectMs: 5000
timeoutMs: 30000
两种模式
1. 直连模式(direct)
插件在本机起一个 WebSocket 服务,手机端直接填主机/端口/token 连进来(可配合内网穿透/NAT 转发)。
- id: dsh-watch
config:
mode: direct
host: "0.0.0.0"
port: 18321
token: "你自己定的 token"
手机端填:ws://主机IP:18321 和同一个 token。
2. 服务器中转模式(relay)
插件主动外连 DSHWatch_Server(预设或手动填 serverUrl),手机端连同一个服务器,用同样的 userId/token。适合公网、不需要给电脑开端口。
- id: dsh-watch
config:
mode: relay
serverUrl: "wss://your-server:8787"
userId: "someone"
token: "shared-secret"
暴露方法
透传 DSH apiProxy:
- harness.status / harness.prompt / harness.cancel
- session.list create history prompt cancel rename fork models selectModel attachment
- goal.* subagent.* workspace.* host.*
- skill.list agentPreset.* llm.* settings.* credentials.*
事件推送:session/event、session/projection、status。
依赖
- node >= 18
- ws(装在 DSH 宿主里即可)
仓库
- 服务端:DSHWatch_Server
- 手表端:DSHWatch
- 手机端:DSHWatchPhone
Languages
JavaScript
96.1%
Shell
2%
Batchfile
1.9%