IvanWu2015/dsh-connect--packages-connect-feishu ↗★ 0
dsh-connect-feishu
Feishu/Lark channel adapter for dsh-connect: long-connection event intake, message normalization, streaming replies, and work summary cards
安装
此插件尚未提供可验证的 bundle,或兼容性检查未通过。请先阅读仓库说明。 阅读完整 README ↗
说明文档
阅读完整 README ↗dsh-connect
English · 中文
把 DeepSeek Harness(DSH)的 Agent 接入聊天软件(飞书/Lark 先行,后续钉钉、企业微信等),实现信息同步 + 工作安排:在飞书里给 DSH 派任务、看它流式执行、多轮带上下文,任务结束主动推送结果卡片。
特性
- 双向信息同步:飞书消息 → DSH Agent(
agent.followup),Agent 回复流式回写飞书(打字机卡片)。 - 多轮上下文:每个飞书会话(单聊/群)绑定一个 DSH
Session,进程重启后自动resume。 - 工作安排:任务跑完主动推送「结果摘要」卡片;
ctx.connect.notify()供 goals/jobs 钩子主动推送进度。 - 安全:群聊默认需 @机器人;用户/群白名单;飞书凭据走环境变量或加密配置。
- 命令:本地指令(不消耗模型):
/status/task/chat/dir/new/clear/stop/help。 - 可扩展:
dsh-connect(核心,渠道无关)+dsh-connect-feishu(飞书适配器)分层,新增钉钉只需再加一个适配器包。
仓库结构
packages/
connect/ dsh-connect 核心层:服务、绑定、驱动、流式桥、命令
connect-feishu/ dsh-connect-feishu 飞书适配器:createLarkChannel 长连接、归一化、流式回写
docs/
QUICKSTART.md 分步运行指南(DSH 端 + 飞书端)
feishu-setup.md 飞书开放平台配置手册
PUBLISHING.md 命名 + GitHub/npm 可发现性指南
examples/
profile-cordis.patch.yml
快速开始
- 构建:
pnpm install
pnpm build
- 把两个包安装到你的 DSH profile(用绝对路径,因为
dsh plugin是在 profile 目录内转发 pnpm):
dsh plugin --profile web add D:\路径\到\dsh-connect\packages\connect D:\路径\到\dsh-connect\packages\connect-feishu
# 或从 npm 安装(发布后):
dsh plugin --profile web add dsh-connect dsh-connect-feishu
- 在 profile 的
cordis.patch.yml($DSH_HOME/profiles/web/cordis.patch.yml)里用insert追加(Host 平面):
- insert:
- id: connect
name: dsh-connect
- id: connect-feishu
name: dsh-connect-feishu
config:
appId: cli_xxxx
appSecret: cli_secret_xxxx
transport: websocket
requireMention: true
dmMode: open