jiazekang/dsh-office
可以读写办公文件的插件,支持拖动办公文件到对话框
Project Overview项目介绍
dsh-office is a native plugin built exclusively for DeepSeek Harness (DSH), designed to add office document handling capabilities to the DSH agent environment. Its core features include reading content from Excel files, making precise edits to specific cells or ranges in Excel, and enabling users to drag and drop any office file directly into DSH’s conversation attachment bar. The plugin follows DSH’s official plugin development conventions, and can be installed either from the official npm registry or via a custom local development link for testing and customization by plugin developers.
This plugin targets DSH users who need to process Excel documents as part of their regular AI-assisted office work, including data workers, administrative staff, and software developers. When a user drags an Excel file into the DSH conversation attachment bar, the plugin first reads the full structured content of the file so the DSH agent can understand and analyze it. After the user submits a clear edit request, the plugin locates the target cells, makes the requested changes, and outputs the updated file for the user to download directly from the conversation.
The plugin relies on the exceljs library to handle all common Excel read and write operations. Development uses the pnpm package manager for full dependency installation, building, smoke testing, and hot reloading during active development of the plugin. Installing from the official npm registry automatically pulls in the exceljs dependency, but when using a local development link, you have to add exceljs to your local DSH profile manually. The project is released under the permissive MIT open source license, so it can be used freely for both personal and commercial purposes.
这是一个专为DeepSeek Harness(DSH)开发的原生文档处理插件,核心能力包括读取Excel文件内容、对Excel文件进行精准修改,同时支持将任意办公文件直接拖入对话的附件栏。插件使用TypeScript开发,严格遵循DSH的插件开发规范,打包后可通过npm公开发行版或者本地开发链接的方式安装到DSH的web配置环境中。
该插件面向需要在DSH对话中处理Excel办公文档的开发人员、行政办公人员和数据处理人员使用。典型工作流程为:用户将需要处理的Excel文件拖入对话附件栏,插件读取文件的完整内容后交给AI进行分析;用户提出具体的修改需求后,插件会精准定位目标单元格完成修改,最终输出修改后的新文件供用户下载使用。
插件依赖exceljs库实现Excel的读写操作,开发阶段使用pnpm进行依赖安装和打包构建,支持本地开发联调、冒烟测试和热构建等工作流。项目采用MIT许可证开源,个人和商业使用都无限制,npm安装时会自动处理依赖,本地开发链接模式则需要手动添加exceljs依赖到配置文件。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-office(jiazekang/dsh-office)
仓库:https://github.com/jiazekang/dsh-office
本站详情页:https://www.yhbd.top/plugins/jiazekang-dsh-office/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 2 · 最近提交 2026-08-15 · 主语言 TypeScript · 未检测到 DSH 插件清单
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- Only 2 stars - very few users, little community feedback星标只有 2,几乎没人在用,遇到问题缺少社区反馈
- No DSH plugin manifest detected - it may only carry the dsh-plugin topic, so the install method must be confirmed on the spot未检测到 DSH 插件清单:可能只是打了 dsh-plugin 话题,安装方式要现场确认
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 exceljs
把 jiazekang/dsh-office 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-office
DSH Office 文档插件:Excel 读取 + 精准修改 + 办公文件拖入附件栏。
结构
packages/
dsh-office/ # Office 文档工具插件:Excel 读取/精准修改(exceljs)+ 拖入附件栏
常用命令(在仓库根目录执行)
pnpm install # 安装所有包依赖
pnpm --filter dsh-office build # 构建单个插件(tsc 类型检查 + tsdown 打包到 lib/)
pnpm --filter dsh-office smoke # dsh-office 冒烟测试(真实文件读写验证)
pnpm --filter dsh-office watch # 开发热构建
pnpm -r typecheck # 全部包类型检查
安装 / 联调(web profile)
# 把本地开发版挂到 web profile(link: 协议,改完重新 build 即生效)
dsh plugin --profile web add link:D:\Porject\DSH\dsh-office\packages\dsh-office
# dsh-office 的 exceljs 是外部依赖,link: 开发模式下需单独装进 profile
dsh plugin --profile web add exceljs
# 不启动服务查看合并后的配置树,确认插件行已进入
dsh --profile web --dump-config
# 重启 dsh web 后生效
发布到 npm
cd packages/dsh-office
npm publish
# 用户安装:dsh plugin --profile web add dsh-office
# (npm 安装会自动带上 exceljs 依赖,无需手动装)
插件写法速记
- 插件 = 导出
name/inject/Config/apply的 npm 包。 - 工具用
defineTool({ name, description, parameters, output, execute })定义, 参数与输出都必须是 JSON Schema,output.render返回ContentBlock[]。 - 所有注册都包在
ctx.effect(fn, label)里,卸载时自动清理。 @deepseek-ai/*运行时服务声明为 peerDependencies,构建时保持外部(deps.neverBundle), 运行时由宿主进程解析,避免重复实例。- 包内
cordis.patch.yml用insert把插件行加进 roster;声明dsh.bundle.patch后dsh plugin add会自动把它加入 profile 的 bundles 层。
更完整的参考:@linxin666/dsh-ssh(服务端全流程)与 @linxin666/dsh-client-ui-task-board(客户端全流程),
源码见 https://github.com/zhu1090093659/dsh-web-ui。
ZSeven-W/dsh-openpencil
joeseesun/qiaomu-rss-dsh
LAU-MARS/dsh-cad
penguin-oo/dsh-bookmarks
tylina/dsh-tylina
SherUnlocked-4869/dsh-plugin-msg-nav