ailoushu666/dsh-feishu-bridge1

dsh-feishu-bridge

飞书机器人 ↔ DeepSeek Harness 桥接插件:通过飞书 WebSocket 长连接收发消息,把飞书会话映射到 Harness Agent,并把 Agent 的回复与执行过程回传到飞书。

包名
dsh-feishu-bridge
版本
0.1.0
许可证
MIT
最近更新
2026年8月19日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:ailoushu666/dsh-feishu-bridge

配置文件与凭据位置

内容文件
启用实例 + 插件配置~/.dsh/profiles/web/cordis.patch.yml(Windows:C:\Users\\.dsh\profiles\web\cordis.patch.yml
App Secret(凭据)~/.dsh/.credentials.yaml(Windows:C:\Users\\.dsh\.credentials.yaml

配置项

配置项必填默认值说明
appId飞书应用 App ID(非敏感,直接写明文)
appSecretEnvFEISHU_APP_SECRETApp Secret 的凭据引用名,真正的值在 ~/.dsh/.credentials.yaml
domainfeishufeishu(中国版)/ lark(国际版)
requireMentiontrue群聊是否必须 @机器人
dmModeopen单聊策略:open / allowlist / disabled
groupAllowlist[]chat_id 白名单,空 = 不限制
dmAllowlist[]dmMode: allowlist 时允许的用户 open_id
botOpenId机器人 open_id,用于精确判断“是否 @机器人”;不填则退化为“mentions 非空”
provider / modelHarness 默认为飞书渠道单独指定模型
reasoningEffort模型默认为飞书渠道指定推理强度(如 off/high/max,取决于模型支持)
workspace第一个 WorkspaceAgent 的工作目录
agentPreset默认 PresetAgent 使用的 Preset(决定工具/系统提示组合)
streamProgresstrue是否把执行过程(工具调用)回传飞书
maxProgressMessages10单个 turn 内最多回传多少条过程消息
resetCommand/reset重置会话的指令
compactCommand/compact手动压缩上下文的指令
requireAdminForGroupResettrue群聊重置是否要求群主/管理员(需 im:chat:readonly 权限;设为 false 则群成员也能重置)
errorMessage内置中文提示Agent 出错时返回给用户的统一提示(最长 500 字符)

完整示例:

- id: feishu-bridge
  disabled: false
  config:
    appId: cli_xxxxxxxxxxxxxxxx
    appSecretEnv: FEISHU_APP_SECRET
    domain: feishu
    requireMention: true
    dmMode: open
    # 可选:
    provider: deepseek-official
    model: deepseek-v4-flash
    reasoningEffort: high
    workspace: C:\Project\my-repo
    agentPreset: coding
    streamProgress: true
    maxProgressMessages: 10