← 返回列表
D

dsh-dingtalk-channel

v0.1.0 · 2 天前发布

DingTalk IM bot channel for DeepSeek Harness: each chat drives its own agent, replies and thinking come back as messages over the Stream-mode long connection.

dshdsh-plugindeepseekdeepseek-harnessdingtalkdingdingchannelchatbotim-botcordis

README

dsh-dingtalk-channel

DeepSeek Harness 的钉钉 IM 机器人 channel——每条单聊/群聊背后都是一个真正带工具的 agent,消息即入口,回复回到对话里。

通过钉钉官方 Stream 模式(WebSocket 长连接)把钉钉「机器人」接入 dsh。不需要公网回调地址、不需要服务器配置 webhook,机器人私聊或群里 @ 它即可驱动完整 agent(带 bash、read、edit、skills 等工具,按 preset 挂载)。

架构沿袭 dsh-lark-channel(BSD-3-Clause)的 channel 设计:窄宿主契约 + 传输层端口 + 会话爬梯 + 事件渲染。

✨ 特性

  • 🤖 一会话一 agent——会话 id 由会话键确定性派生(ding-<chatId>),跨重启稳定;sessionScope: chat-sender 可让共享群里每人一个 agent

  • 即时反馈——每条消息先回执「🤔 已收到」,再流式到达最终答案(钉钉无打字指示,回执是唯一即时反馈)

  • 🤫 静默过程——中间过程只在回执/思考表情里暗示,agent 调用 bash/read/edit 等工具不发聊天消息,只把最终答案发成 markdown

  • 🛡️ 访问策略——单聊/群聊各自 senderAllowlist / groupAllowlist,群聊 requireMention;审批按聊天回复「允许一次 / 拒绝」结算

  • 📡 长连接自愈——SDK
  • 查看完整 README →

    版本兼容矩阵

    DSH 版本状态说明
    dsh@0.1.0-rc.6 ✅ 兼容 cordis patch ✅
    dsh@0.1.0 ✅ 兼容 标准 patch ✅
    dsh@0.2.0 ⚠️ 待验证 待实测(API 可能在变)
    dsh@0.3.0+ ❓ 未知 尚未发布

    💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正

    元数据

    License
    MIT
    npm
    dsh-dingtalk-channel
    Repo
    git+https://github.com/ttmouse/dsh-dingtalk-channel.git
    Engines
    {"node":"^22.19.0 || >=24.0.0"}
    Weekly DL
    0
    Monthly DL
    0
    dsh.bundle
    {"bundle":{"patch":"./cordis.patch.yml"}}