Chinesezjc/dsh-interconnect ↗★ 34
dsh-interconnect
Cross-instance message/event handoff plugins for DeepSeek Harness (DSH): interconnect service + model-facing tools + companion skill 适合需要在多个DSH实例间进行寻址、消息转发和会话唤醒的分布式任务。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Chinesezjc/dsh-interconnect配置
interconnect 行的 config(全部可选,下表为默认值):
| 字段 | 默认 | 说明 |
|---|---|---|
instanceId | 'dsh' | 本实例自报的 id,出现在 ping/send/list 的回包里。也作为「对端如何寻址到我」的身份 |
requestTimeoutMs | 10000 | 出站请求超时,上限 60000 |
peers | {} | 对端路由映射:{ [对端 instanceId]: 我拨向它的 origin },例如隧道端点 http://127.0.0.1:13080。激活时对每个对端自动建持久 WS 链;send/reply/ping/list 都按 instanceId 走对应链接 |
delivery | 'followup' | 入站消息未带 delivery 时的默认投递模式 |
allowResume | true | 是否允许发送方用 resume 唤醒本机的离线 session |
- id: interconnect
config:
instanceId: my-box
peers:
peer-a: http://127.0.0.1:13080 # 我拨向对端 peer-a 的 origin
peer-b: http://127.0.0.1:13081
delivery: followup
allowResume: false # 拒绝一切唤醒请求
鉴权用的共享密钥不在这里,而是取自 credentials 的 DSH_INTERCONNECT_TOKEN(fail-closed:
没有 token 时端点返回 403)。