caoxiaohu7745-bot/kongmu-im-bridge
DeepSeek Harness IM bridge plugin family: core kongmu-im + Feishu adapter kongmu-im-feishu (derived from dsh-im-bridge, MIT). Feishu long-connection, approval cards, group @-mention filter, streaming card updates, /stop command.
Listed
0
Notify
Bundle verified
What it does
Feishu bridge for DeepSeek Harness (derived from dsh-im-bridge): WebSocket long connection, approval cards, group @-mention-only replies, streaming card updates, /stop command.
Best for
- Teams that want to command DSH, receive updates, and approve risky actions from Feishu.
- Group-chat deployments that should respond only when the bot is mentioned.
- Long-running tasks that benefit from streaming card updates and an in-chat /stop command.
Not ideal for
- Organizations that do not use Feishu or do not want a Feishu application and its required credentials, permissions, subscriptions, and publication setup.
- Simple local-only DSH use where IM-based remote control, notifications, and approvals add little value.
- Installations unable to run the paired core and Feishu adapter packages in a DSH Web profile.
README
kongmu-im-bridge
让 DeepSeek Harness 通过飞书可指挥、可通知、可审批的 IM 桥插件家族(衍生自 dsh-im-bridge,MIT 许可,溯源见 UPSTREAM.md)。
packages/im/ 核心插件(ctx.im 服务、会话映射、命令、通知、审批、MockChannel)
packages/im-feishu/ 飞书适配器(官方 SDK 长连接、审批卡片、群聊 @ 过滤、流式卡片)
demo/ 终端演示与联调运行器(跨平台 shell)
docs/ 安装、飞书配置、适配器开发指南
特性(相对上游 v1.0.5 的增强)
-
流式打字机回显:飞书 interactive 卡片 +
im.message.patch原地更新(notifications.streamEdit) -
群聊仅回复 @ 机器人:
groupMentionOnly(默认开),@ 占位符自动清洗 -
/stop命令:IM 内随时中断运行中的任务 - 首次接触不吞首条任务:自动信任后立即派发
- Windows 全兼容:跨平台 shell 执行器、CI 双平台矩阵、凭据/路径测试平台无关
- 完整命令集:
/start /new /status /log /help /mute /unmute /approve /stop /trust /revoke - 审批流:风险规则门 + 按钮/文本审批 + 超时可恢复拒绝 +
approvals.log审计 - 扫码接入:
npx -y kongmu-im-feishu-qr一键创建应用,凭据落本机文件(App Secret 不进浏览器)
快速开始
# 1) 装进 DSH web profile(需 pnpm;Windows 无 pnpm 先 npm install -g pnpm)
dsh plugin --profile web add kongmu-im kongmu-im-feishu -w
# 2) 配凭据(二选一)
# a. 扫码接入(推荐):npx -y kongmu-im-feishu-qr
# b. 环境变量:FEISHU_APP_ID / FEISHU_APP_SECRET(飞书开放平台自建应用)
# 3) 重启 dsh web,飞书里私聊机器人:
# /new → 派活 → /status → /log;危险操作弹审批卡片
配置与命令详解见 docs/install.md; 飞书应用四件事(凭证/权限/订阅/发布)见 docs/feishu-setup.md。
开发
npm install
npm test # 全套离线测试(无真实凭据/网络)
node demo/mock-demo.mjs --auto # 终端 E2E(MockChannel + 模拟 LLM)
许可
MIT。本仓库为 dsh-im-bridge 的衍生作品,保留其版权声明;改动与增强遵循同许可。
Frequently Asked QuestionsFAQ
Use the verified command dsh plugin --profile default add github:caoxiaohu7745-bot/kongmu-im-bridge in a DSH-enabled shell. The command resolves the public package metadata and keeps the plugin attached to the catalog identity shown on this page.
Compatibility follows the bundle and profile status shown above. If a profile is not detected, keep the plugin disabled there and check the repository documentation before enabling it in production.
The GitHub link and activity metadata are the source of truth for releases and maintenance. Revisit this page after a new release to confirm the catalog has observed the latest version.