2286893544/feishu-dsh-plugin

Plugin插件 Native原生 ⭐ 2 MIT Notifications & Remote通知与远程

Project Overview项目介绍

This repository is a native plugin for DeepSeek Harness (DSH) named dsh-plugin-feishu, shipping with a bundle-manifest and twenty-five feishu_* tools that cover group chat messaging, docx documents (with image, table, and chart insertion), bitable records, classic sheets v2 range reads and writes, and drive permission management, all accessed through a self-built Feishu (Lark) enterprise app. The implementation is pure Node with no external runtime dependencies and no Python, and the client half registers a sidebar settings.section under Settings → 飞书(Feishu) that writes into the feishu-bridge namespace, while a /dsh-plugin-feishu/test-connection host route validates stored credentials and returns only non-secret facts such as app name, tenant name, masked key fingerprint, and the configuration layer that supplied each value.

The intended audience is operators wiring DSH agents into a Feishu workspace so the model can list chats and members, send or recall messages, read chat history, create and edit docx documents, append blocks, insert tables and charts, query bitable schemas, write and read records, and adjust document sharing; new documents are by default shared with grantOpenId (full_access) so the human driving the bot keeps control, and setting wikiSpaceId places new files inside a knowledge base and returns /wiki/ URLs. Installation runs dsh plugin --profile web add dsh-plugin-feishu (or the GitHub variant), after which the profile is reloaded and the sidebar card accepts appId, appSecret, tenantDomain, defaultChatId, grantOpenId, wikiSpaceId, and wikiParentNodeToken, with appSecret tagged role("secret") so it renders as a blank password field and is redacted on every read.

Dependencies and limits include requiring a self-built enterprise app with the bot capability enabled and scopes published for im:message.group_msg, docx read/write, bitable, sheets, and drive permission management, plus the bot being a member of any chat it must read and documents being explicitly shared with the app; charts are rendered locally with a pure-Node PNG encoder and a 5×7 ASCII font so titles and category labels must be ASCII (Chinese labels must be generated externally and inserted via feishu_insert_image_into_document), the sheets tools use the classic v2 range API, and only chats the bot has joined are readable. When no settings service is present the card is hidden and configuration falls back to a profile config patch or the environment variables FEISHU_APP_ID, FEISHU_APP_SECRET, and FEISHU_TENANT_DOMAIN; first-run validation can be performed offline with node scripts/verify-registration.mjs (registers all 25 tools plus the bundled feishu skill and renders a chart) and live-tested with node scripts/smoke.mjs using real credentials, and the project is released under the MIT license.

这是一个面向 DeepSeek Harness(DSH)的飞书/Lark 原生插件,仓库自带 bundle-manifest 清单,共暴露 25 个 feishu_* 工具,覆盖群聊消息、docx 文档(含图片、表格、图表)、多维表格(bitable)、电子表格 v2 区间读写,以及云文档权限管理;通过自建飞书企业应用接入,纯 Node 实现,零外部依赖、无需 Python。安装方式为 dsh plugin --profile web add,支持从 npm 或 GitHub 添加,刷新 profile 后在设置页的"飞书(Feishu)"侧边栏填写 appId、appSecret、tenantDomain、defaultChatId、grantOpenId、wikiSpaceId 等参数,appSecret 会被标记为 role("secret") 自动脱敏。

典型使用场景是企业内把飞书办公套件交给 DSH 代理:让模型读取群历史、群发消息、撤回消息,或创建/读写 docx、多维表格、表格区域,调用图表工具时本地用纯 Node PNG 编码器加 5×7 ASCII 字体渲染;新建文档默认共享给操作者本人,配置 wikiSpaceId 后会写入知识空间并返回 /wiki/ 链接,配 /dsh-plugin-feishu/test-connection 路由可仅用非敏感信息(应用名、租户名、掩码后的密钥指纹)校验连通性。

依赖与限制方面,需要在飞书开放平台开通机器人并发布 im:message.group_msg、docx 读写、bitable、sheets、drive 权限等作用域,机器人必须加入目标群、要读的文档需先共享给应用;图表标题与类别仅支持 ASCII,中文标签需自行生成图片后用 feishu_insert_image_into_document 写入,表格走经典 sheets v2 区间 API,且只能读取机器人已加入的会话。配置缺失设置服务时会回退到 profile patch 或环境变量 FEISHU_APP_ID 等,离线校验脚本 node scripts/verify-registration.mjs 可注册全部 25 个工具并渲染图表,仓库采用 MIT 协议。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 2 stars - very few users, little community feedback星标只有 2,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add dsh-plugin-feishu

把 2286893544/feishu-dsh-plugin 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-plugin-feishu

Feishu (Lark) tools for DeepSeek Harness: 25 feishu_* tools covering chat messages, cloud documents (including images, generated charts and tables), bitable records, spreadsheet ranges and drive permissions — through your own enterprise self-built Feishu app. Pure Node, no external dependencies, no Python.

Install

Requires DeepSeek Harness with plugin support (dsh plugin).

dsh plugin --profile web add dsh-plugin-feishu                  # once published to npm
dsh plugin --profile web add github:2286893544/feishu-dsh-plugin # straight from GitHub

Reload the profile, then configure the plugin on its own settings page: Settings → 飞书(Feishu). The client half (client/client.js) contributes that sidebar page (a settings.section, the same slot community plugins such as the side card use); it writes into the feishu-bridge settings namespace, so a saved change applies immediately:

Field Meaning
appId Feishu app ID of your self-built app (cli_...)
appSecret Feishu app secret — declared role("secret"), so it is redacted from every page read and shown as a password control that starts blank
tenantDomain Optional (acme.feishu.cn); auto-detected from the tenant API when empty
defaultChatId Optional (oc_...) used by the chat tools when a call omits chat_id
grantOpenId Optional (ou_...) — every document/bitable the plugin creates is shared with this user (full_access), so the person operating the bot keeps control of what the bot made
wikiSpaceId Optional knowledge-base space id; when set, new documents are created inside that knowledge base and the returned URL is a /wiki/ link
wikiParentNodeToken Optional default parent node for new wiki documents (empty means the knowledge-base root)

On a host without a settings service the card is simply absent and the composed configuration stands. Both fallbacks remain: the profile patch entry (config: { appId, appSecret, ... }) and the environment variables FEISHU_APP_ID, FEISHU_APP_SECRET, FEISHU_TENANT_DOMAIN.

The page also carries a 测试连接 (test connection) button. It POSTs to the host route /dsh-plugin-feishu/test-connection, which exercises the stored credentials against the Feishu API and answers with non-secret facts only: the app name, the tenant name and domain, a masked key fingerprint (pkQi…E2h (len 32)) and which configuration layers supplied the values. The raw secret never leaves the host, and the route refuses GETs and cross-origin calls.

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-remote-file-system 下一个 Next dsh-delete-turn →