cmfok/dsh-feishucard3

dsh-feishucard

DeepSeek Harness <-> Feishu (Lark) bridge with a streaming reply card: official-SDK long connection (no public URL), per-chat dedicated agent sessions, /new /switch /list /help commands, collapsible tool-call panels with status symbols, inline agent notes, rate-limit / backoff / circuit-breaker / text fallback. Self-developed (not a fork).

AI Analysis

核心用途是将 DSH 接入飞书机器人,实现企业级协同与流式卡片交互。适合使用飞书办公、需要将 AI 助手引入工作流的团队或个人。

Package
dsh-feishucard
Version
0.1.0
License
MIT
Last updated
Aug 16, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:cmfok/dsh-feishucard

配置 / Configuration

写在 ~/.dsh-feishucard/feishu.config.json(与仓库解耦 / decoupled from any repo):

{
  "bots": [
    {
      "name": "我的机器人",
      "workspace": "C:\\path\\to\\workspace",
      "appId": "cli_xxxxxxxxxxxxxxxx",
      "appSecret": "your_app_secret",
      "reactionEmoji": "OnIt"
    }
  ]
}

会话状态持久化在 ~/.dsh-feishucard/state-.json。配置支持热更新(10 秒轮询),改完无需重启。Session state persists to ~/.dsh-feishucard/state-.json; config is hot-reloaded every 10s.

从旧插件迁移 / migrating from the legacy plugin:无需手动操作。首次启动若新路径无配置而 ~/.cc-connect/feishu.config.json 存在,自动复制迁移(日志 migrated config from legacy ...)。Nothing to do — the legacy config is copied automatically on first boot.

飞书开放平台一次性配置 / One-time Feishu Open Platform setup

  • 创建企业自建应用,启用机器人 / create an enterprise self-built app, enable the bot
  • 权限 / permissions:im:message.p2p_msg:readonlyim:message.group_at_msg:readonlyim:message:send_as_botim:message.reaction(可选 / optional)
  • 事件与回调 → 订阅方式选「使用长连接接收事件」→ 添加事件 im.message.receive_v1 / events & callbacks → long-connection mode → add im.message.receive_v1
  • 创建版本并发布 / create a version and publish