dsh-feishu
Feishu/Lark chat channel for DeepSeek Harness (dsh) — a sibling surface over dsh-base
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:itsnone-liu/dsh-feishu说明文档
阅读完整 README ↗飞书侧配置(一次性)
- 开放平台 → 创建企业自建应用
- 添加「机器人」能力
- 权限:
im:message(收)、im:message:send_as_bot(发) - 事件订阅:选择 长连接(WebSocket)模式,订阅
im.message.receive_v1与card.action.trigger - 拿到 App ID / App Secret
配置(~/.dsh/feishu/config.json)
| 键 | 默认 | 说明 |
|---|---|---|
allowedOpenIds | [] | 硬门槛:只处理这些 open_id,其余静默丢弃 |
defaultCwd | — | 新 chat 的默认工作区 |
allowedWorkspaces | [defaultCwd] | 工作区白名单(含子目录) |
agentPreset | minimal | 新 session 的 preset |
provider / model | 空=DSH 默认 | 模型覆盖(如 glm-coding/glm-5.3) |
approval | cards | cards=按钮审批;never=自动拒绝 |
throttleMs | 900 | 卡片节流(也是频控保护) |
askTimeoutMs | 0 | 提问超时(0=永久等) |
transport | auto | sdk/vendored/mock;auto=有官方 SDK 用之 |
环境变量:FEISHU_APP_ID FEISHU_APP_SECRET(密钥只走环境);
DSH_FEISHU_LOG=debug;FEISHU_API_BASE(Lark 海外版 https://open.larksuite.com)。