WyattJHayes/dsh-feishu-channel0

dsh-feishu-channel

Feishu (Lark) channel plugin for DeepSeek Harness — chat with your local DSH agent from Feishu via WebSocket long connection. Zero inbound ports, zero tunnels.

包名
dsh-feishu-channel
版本
0.1.0-alpha.1
许可证
MIT
最近更新
2026年8月27日

安装

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

配置

在 web profile 的 Cordis patch 中为插件配置显式白名单和允许的项目根目录。所有列表默认为空,空列表会拒绝来源或项目绑定:

- insert:
    - id: feishu-channel
      name: dsh-feishu-channel
      config:
        allowedOpenIds: [ou_example]
        allowedChatIds: [oc_example]
        allowedProjectRoots:
          - /Users/example/Projects
        agentPreset: restricted

私聊至少需要 allowedOpenIds。群聊同时需要发送者的 open_id 和群的 chat_id。项目路径必须是允许根目录内的已有目录,插件会按真实路径检查符号链接和路径边界;不会默认放行当前目录、用户目录或整个文件系统。

可选配置包括 stateFileapprovalTimeoutMsprogressIntervalMsmaxProgressMessagesmaxPromptLengthmaxQueuedPromptsdedupeCapacitydedupeTtlMsagentOperationTimeoutMswhenIdleTimeoutMscancelTimeoutMs。数值配置有保守上限,maxQueuedPrompts 默认是 8,stateFile 只能落在 $DSH_HOME/cache 内。

使用

/project /absolute/path/to/project
/status
请修改一个文件并运行测试
/cancel
/approve 
/deny 
/new
/help

普通文本必须先绑定项目。控制命令不会进入 prompt 队列。未知 slash 文本按普通 prompt 处理。工具参数、文件内容、环境变量和完整模型流不会自动发送到飞书,只回传阶段摘要和最终文本。