whoisjiahao/dsh-feishu-channel ↗★ 0
dsh-feishu-channel
Feishu/Lark IM channel for DeepSeek Harness: chats drive agents, answers render as streaming rich cards, approvals settle by button clicks
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:whoisjiahao/dsh-feishu-channel说明文档
阅读完整 README ↗常用配置
| 字段 | 默认 | 说明 |
|---|---|---|
| appId / appSecret | — | 应用凭据;不填则扫码注册 |
| domain | open.feishu.cn | 开放平台域名(国际版用 open.larksuite.com) |
| provider / model | 宿主默认 | 聊天 agent 的模型路由 |
| sessionScope | chat | 会话面:chat / chat-thread(话题)/ chat-sender(按发送者) |
| requireMention | true | 群聊必须 @ 才响应 |
| senderAllowlist | [] | 私聊白名单(ou_…);空 = 平台可见者皆可 |
| groupAllowlist | [] | 群白名单(oc_…);空 = 任何被拉入的群 |
| approvers | [] | 审批点击者白名单;空 = 能驱动该聊天者皆可 |
完整配置表(渲染细节等)
| 字段 | 默认 | 说明 |
|---|---|---|
| cwd | ~/.dsh-feishu | agent 会话工作目录;不存在时自动创建 |
| preset | 宿主默认 | 聊天 agent 加入的 preset |
| showProcess | true | 是否展示加载进度与完成态工具动作时间线(不展示原始 reasoning) |
| syncSlashCommands | true | 同步命令到飞书斜杠面板 |
| denyTools | ask_user_question, exit_plan_mode | 聊天 agent 禁用的工具(答案无法到达聊天的工具) |
| footerFields | 见源码 | 终态卡片展开详情字段(model/input/output tokens/cost/context) |
| pricing | 内置 DeepSeek 官方牌价 | 模型单价表(每百万 token):默认已配好 deepseek-v4-flash / deepseek-v4-flash-vision-exp / deepseek-v4-pro 现行峰谷价;自定义条目按模型 id 与内置表合并,同名键整条覆盖。字段:input/output 高峰价、可选 cacheHitInput 缓存命中输入价(缺省按未命中价计,只会高估不会低估)、可选 currency 符号(默认 ¥)、可选 offPeak: { input, output, cacheHitInput? } 空闲档。配置后展开详情多一行「费用」,usage 落在空闲窗口内按折扣计并标「·低谷」,窗外按标准价计并标「·高峰」(未配分时价则不带档位标记) |
| offPeakWindows | DeepSeek 官方峰谷表 | 空闲时段窗口(北京时间 HH:MM 半开区间;end 早于 start 表示跨午夜)。默认按 DeepSeek 定价页:高峰为北京时间 9:00–12:00 与 14:00–18:00,其余为空闲(价格为高峰一半);设为 [] 关闭分时计价 |
| maxTimelineItems | 12 | 时间线最大条目数 |
| tableOverflowMode | compact | 表格超限策略:compact(转字段列表)/ truncate(丢弃) |