跳到正文

beancookie/dsh-plugin-anydoc

50最近提交 2026年8月14日

dsh-plugin-anydoc DSH 插件

该插件将 @firecrawl/anydoc 的 `anydoc` 工具注册到 DSH Agent,实现文档到 Markdown 的转换,无需外部进程。基于 libuv 线程池执行,不阻塞事件循环。支持 Word、PowerPoint、Excel、PDF、EPUB 等多种格式。

如何安装 dsh-plugin-anydoc DSH 插件

dsh plugin --profile web add github:beancookie/dsh-plugin-anydoc

复制不会执行命令。安装 dsh-plugin-anydoc DSH 插件前请核对仓库和版本。

dsh-plugin-anydoc DSH 插件数据来源

dsh-plugin-anydoc DSH 插件快照日期:2026年8月16日

discovered

dsh-plugin-anydoc DSH 插件能做什么

  • 转换 .doc、.docx、.docm、.ppt、.pptx、.xls、.xlsx、.pdf、.epub、.csv、.rtf、.odt、.ods、.odp 为 GitHub-Flavored Markdown
  • 自动检测文件格式,也可手动指定
  • 可选择将结果写入文件并返回摘要,而非返回完整 Markdown
  • 在 libuv 线程池中运行,不阻塞事件循环
  • 无需外部进程或 Python 环境,基于 Rust 原生绑定(napi-rs)

dsh-plugin-anydoc DSH 插件适合哪些场景

  • 将一份 .docx 报告转换为 Markdown,以便在 DSH 对话中进一步分析
  • 从 .pdf 文件中提取数据并以 Markdown 表格形式呈现
  • 批量处理多个 .xlsx 文件,并将结果写入独立的 Markdown 文件
  • 在 DSH Agent 的自动化工作流中集成文档转换功能

dsh-plugin-anydoc DSH 插件适合谁

  • 经常需要将文档内容(Word、PDF 等)整合到 DSH 对话中的用户
  • 希望将文档转换为 Markdown 以便于文档编写或处理的开发者和技术写作者

dsh-plugin-anydoc DSH 插件的限制

  • 不支持 HTML、JSON、XML、图片和音频文件
  • 仅支持本地文件路径,文件必须能被 DSH Agent 访问
  • 转换质量依赖于底层 @firecrawl/anydoc 库,复杂排版可能无法完全保留

dsh-plugin-anydoc DSH 插件的仓库 README 摘录

以下文字摘自 dsh-plugin-anydoc DSH 插件的上游仓库 beancookie/dsh-plugin-anydoc 的 README,版权归原作者,仅作引用。

一个 DeepSeek Harness (DSH) 插件,将 `@firecrawl/anydoc` 作为 `anydoc` 工具注册给 Agent,把多种文档格式转换为 GitHub-Flavored Markdown。 基于 [@firecrawl/anydoc](https://github.com/firecrawl/anydoc)(Rust 原生绑定,napi-rs),在 libuv 线程池中执行,不阻塞事件循环,无需任何外部进程或 Python 环境。 ## 支持的格式 | 类别 | 扩展名 | | --- | --- | | Word | `.doc` `.docx` `.docm` | | PowerPoint | `.ppt` `.pps` `.pot` `.pptx` `.pptm` `.ppsx` `.ppsm` | | Excel | `.xls` `.xlsx` `.xlsm` `.xlsb` | | OpenDocument | `.odt` `.ods` `.odp` | | Rich Text | `.rtf` | | EPUB | `.epub` | | CSV | `.csv` | | PDF | `.pdf` | > 不支持 HTML、JSON、XML、图片与音频。 ## 安装 ```sh dsh plugin --profile web add github:beancookie/dsh-plugin-anydoc ``` 安装完成后直接启动: ```sh dsh web ``` ### 卸载 ```sh dsh plugin --profile web remove dsh-plugin-anydoc ``` ## 使用 启动 DSH Web 后,向 Agent 发送类似指令: ``` 请将 /path/to/report.docx 转换为 Markdown ``` Agent 会调用 `anydoc` 工具,返回转换后的 Markdown 内容。 ## 工具参数 | 参数 | 类型 | 必填 | 说明 | | --- | --- | --- | --- | | `filePath` | string | 是 | 要转换文件的绝对或相对路径 | | `format` | string | 否 | 显式指定格式(如 `csv`);缺省时根据文件内容自动检测 | | `outputFilePath` | string | 否 | 将结果写入该文件并返回摘要,而非返回完整 Markdown | ## 开发 ```sh # 安装依赖 pnpm install # 编译 TypeScript 到 lib/ pnpm build ``` 本地加载(--patch 开发模式): ```sh

阅读完整 README仓库未声明许可,使用前请先与作者确认。

dsh-plugin-anydoc DSH 插件常见问题

如何安装 dsh-plugin-anydoc?

在终端中运行 `dsh plugin --profile web add github:beancookie/dsh-plugin-anydoc`,然后启动 DSH:`dsh web`。插件会自动加载。

支持哪些文档格式?

支持 Word(.doc、.docx、.docm)、PowerPoint(.ppt、.pps、.pot、.pptx、.pptm、.ppsx、.ppsm)、Excel(.xls、.xlsx、.xlsm、.xlsb)、OpenDocument(.odt、.ods、.odp)、富文本(.rtf)、EPUB(.epub)、CSV(.csv)和 PDF(.pdf)。不支持 HTML、JSON、XML、图片和音频。

可以不指定格式直接转换文件吗?

可以,插件会自动根据文件内容检测格式。如果你希望手动指定,可以使用 `format` 参数,例如 `csv`。

如何将转换后的 Markdown 保存到文件而不是直接返回?

在调用 `anydoc` 工具时传入 `outputFilePath` 参数。插件会将转换后的 Markdown 写入该文件,并返回一条摘要信息。

插件需要依赖 Pandoc 或 Python 等外部工具吗?

不需要。插件基于 Rust 原生绑定(napi-rs),完全在 Node.js 内部运行,无需任何外部进程或 Python 环境,开箱即用。