DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Plugin Documents — DeepSeek Harness 插件(DSH Plugin)
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins
P

dsh-plugin-documents

Plugin Documents

面向模型的 DSH 工具,用于读取和写入 Word (.docx)、PDF 和纯文本文件

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add github:LR611415/dsh-plugin-documents#80a8461331ca7866d85b9827c7b5531acc19f228
README兼容性版本

兼容性与来源证明

Plugin Documents 以 dsh-plugin-documents 发布,当前版本为 0.1.0。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
any
发布来源
github
Registry 更新时间
2026/9/24

版本

0.1.0stable
2026/9/24

相关插件

正在加载相关插件…

最新版
0.1.0
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
any
许可证
MIT
发布源
github
GitHub
★ 0
周下载
0
最近提交
2026/9/24
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

相关插件

继续浏览 productivity-workflow 分类下经过校验的插件。

Acp App@deepseek-ai/dsh-acp-appdsh ACP 配置文件包:基于 dsh-base 的仅限自动化的 JSON-RPC stdio 和进程生命周期管理Client Ui Task Board@linxin666/dsh-client-ui-task-board面向 DSH Web GUI 的主机权威任务面板,支持实际会话执行、主机 cron 调度以及可选的跨平台空闲睡眠保护;以挂载方式提供,无需修改 DSH 源代码。Web All@linxin666/dsh-web-allDSH Web UI 全家桶聚合插件:一键安装全部功能插件(task-board / git-graph / pet / remote-web-ui / web-ui-settings / skin-center / community-plugins / compat shim)。compat 桥接层已并入本包(src/client),无需独立 compat npm 包。Codex Ui@michengai/dsh-codex-uiDSH Codex UI — 为 DeepSeek Harness Web 提供 Codex 风格侧栏、工作区会话树、全局搜索和轮次导航

README

dsh-plugin-documents

一个 DeepSeek Harness (DSH / Cordis) 插件,给模型提供两个工具,用来读写 Word (.docx)、PDF 和纯文本 (.txt/.md 等) 文件。

工具

read_document

读取一个 .docx / .pdf / 文本文件,返回提取出的纯文本内容。

参数类型必填说明
file_pathstring是要读取的文件路径(相对路径按会话工作目录解析)
formatstring否auto(默认,按扩展名识别)/ text / docx / pdf

write_document

把纯文本内容写入一个 .docx / .pdf / 文本文件。输出格式由扩展名决定。

参数类型必填说明
file_pathstring是目标路径;扩展名决定格式(.docx / .pdf / 文本)
contentstring是要写入的文本内容

能力与限制

  • 文本:读写 .txt .md 等 UTF-8 文本文件。
  • Word (.docx):读——提取 word/document.xml 中的段落/表格文本;写——生成一个最小但合法、可用 Word/WPS 打开的 .docx(每个换行一个段落,支持中文)。
  • PDF:读——扫描对象、解压 Flate/ASCIIHex/ASCII85/RunLength 流,提取 Tj/TJ/'/"/T* 文本,支持 CID 字体的 UTF-16BE(中文可提取);写——生成带经典 xref 的合法 PDF,使用内置 Adobe STSong-Light + UniGB-UCS2-H 绘制,中文/英文可直接显示(Adobe Reader、Chrome/Edge、Foxit、WPS)。

限制(best-effort):PDF 读取无法 OCR 图片型 PDF,也不处理加密 PDF;复杂排版(表格、分栏)会按内容流顺序摊平成文本。.doc(老式二进制 Word)不支持,请先另存为 .docx。

安装

插件是一个带 dsh.bundle 声明的 npm 包。用 dsh 命令行装进某个 profile:

# 从本地目录安装(profile 名按你的实际 profile 填,桌面默认通常是 web)
dsh plugin --profile web add "C:\\Users\\李\\Desktop\\知识点\\dsh-plugin-documents"

dsh plugin 会在 profile 目录里用 pnpm 安装这个包,并自动把它加进 dsh.profile.bundles。装完后重启 DSH Desktop 即可。

也可以手动安装:把本目录放进 profile 的 node_modules,并在 profile 的 package.json 里把 dsh-plugin-documents 加进 dsh.profile.bundles 数组。

目录结构

dsh-plugin-documents/
├── package.json          # 声明 dsh.bundle.patch + adm-zip 依赖
├── cordis.patch.yml      # 把插件插入 entry list
├── README.md
└── lib/
    ├── index.js          # 插件入口,注册 read_document / write_document
    ├── util.js           # 格式识别 + XML 转义
    ├── docx.js           # Word 读写
    └── pdf.js            # PDF 读写