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飞书侧配置(一次性)
- 开放平台 → 创建企业自建应用
- 添加「机器人」能力
- 权限:
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 用之 |
vision | null(=默认启用) | inspect_image 识图工具配置;false 关闭(见 docs/VISION-PLAN.md) |
logFile | $DSH_HOME/feishu/bridge.log | 桥自身持久日志(5MB 轮转);none 关闭 |
restartLauncher | 自动探测 | /restart 使用的启动脚本绝对路径 |
cardRetryBaseMs | 1000 | 卡片更新失败退避基数(指数退避至 15×) |
环境变量:FEISHU_APP_ID FEISHU_APP_SECRET(密钥只走环境);
DSH_FEISHU_LOG=debug;FEISHU_API_BASE(Lark 海外版 https://open.larksuite.com)。
⚠️ 生产启动脚本(
start_bridge.ps1/.bat)里如内联了密钥,注意文件权限;推荐改为只读环境。