zxlbxx/dsh-feishu-channel ↗★ 0

dsh-feishu-channel

DSH ⇄ 飞书/Lark 通道:会话完成/出错自动推送到手机,手机上发的消息回投给工作区会话。Feishu notification + task channel for DeepSeek Harness.

Package
dsh-feishu-channel
Compatibility
Unverified
Version
0.4.0
License
MIT
Last updated
Nov 11, 2026

Other repositories with this package name

Install

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

配置

1. 飞书自建应用

在 飞书开放平台 建一个企业自建应用(个人版租户会报 21001 Access denied due to platform policy,必须用企业租户):

  1. 开启机器人能力;
  2. 申请权限:im:message、im:message:send_as_bot、im:message.group_msg、im:chat:readonly;
  3. 发布版本并在企业内可用;
  4. 把机器人拉进一个群(im/v1/chats 只列群,不列单聊)。

2. 本机配置

~/.dsh/feishu/app.json(权限 600):

{
  "app_id": "cli_xxxxxxxxxxxxxxxx",
  "app_secret": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "chat_id": "oc_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}

~/.dsh/feishu/plugin.json:

{
  "enabled": true,
  "minIntervalSec": 60,
  "events": ["done", "error"],
  "taskEnabled": true,
  "taskPollSeconds": 15,
  "tasks": {}
}
  • enabled:是否推送会话结果,默认 false(避免和其他通知插件双发);
  • events:推哪些事件,done / error;
  • minIntervalSec:同一会话两条推送的最小间隔;
  • taskEnabled:是否轮询群消息并投递到会话;
  • tasks:/feishu bind 写入的「群 → 会话」绑定表,一般不用手改。

3. 工作区路由(可选)

~/.dsh/notify/config.json:

{
  "feishu": { "chat_id": "oc_默认群" },
  "routing": [
    { "match": "/Users/me/work/project-a", "chat_id": "oc_项目A群", "name": "project-a" }
  ],
  "task": {
    "chats": {
      "oc_项目A群": "/Users/me/work/project-a"
    }
  }
}
  • routing:桌面 → 手机的按目录路由;
  • task.chats:群 → 工作区,决定手机消息投到哪个工作区(用于「最近会话」兜底)。

2. 本机配置

~/.dsh/feishu/app.json(权限 600):

{
  "app_id": "cli_xxxxxxxxxxxxxxxx",
  "app_secret": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "chat_id": "oc_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}

~/.dsh/feishu/plugin.json:

{
  "enabled": true,
  "minIntervalSec": 60,
  "events": ["done", "error"],
  "taskEnabled": true,
  "taskPollSeconds": 15,
  "tasks": {}
}
  • enabled:是否推送会话结果,默认 false(避免和其他通知插件双发);
  • events:推哪些事件,done / error;
  • minIntervalSec:同一会话两条推送的最小间隔;
  • taskEnabled:是否轮询群消息并投递到会话;
  • tasks:/feishu bind 写入的「群 → 会话」绑定表,一般不用手改。