beancookie/dsh-plugin-anydoc 预览 preview

beancookie/dsh-plugin-anydoc

DSH插件:基于@firecrawl/anydoc将Word、PPT、Excel、PDF、EPUB、CSV等文档转换为GitHub风格Markdown

Project Overview项目介绍

This is a native plugin built exclusively for DeepSeek Harness (DSH) that registers the @firecrawl/anydoc tool to DSH agents, enabling conversion of multiple common document formats to GitHub-Flavored Markdown. Built on top of the Rust-native napi-rs bindings from @firecrawl/anydoc, this plugin runs on the libuv thread pool, so it does not block DSH’s event loop. To install the plugin, DSH users simply run the command dsh plugin --profile web add github:beancookie/dsh-plugin-anydoc in their terminal, then restart their DSH web instance to start using it.

After installation and startup, users can issue natural language commands to their DSH agent to convert documents directly in their existing DSH workflow. For example, a user can ask the agent “Please convert /path/to/report.docx to Markdown”, and the agent will automatically call the anydoc tool to handle the conversion. The plugin accepts optional parameters for explicit format specification and output file path, making it flexible for different use cases. This plugin is ideal for DSH users who regularly work with office documents and need a fast, integrated way to convert those files to Markdown for documentation or development purposes.

The plugin supports a wide range of common file formats, including all major Microsoft Office formats, OpenDocument files, RTF, EPUB, CSV, and PDF, but it does not support HTML, JSON, XML, images, or audio files. For developers who want to modify the plugin, the process is straightforward: install dependencies with pnpm, build the TypeScript code to the lib directory, then load the local build using DSH’s --patch development mode. The project is released under the open-source MIT license, and it is actively developed with support from the LINUX DO community.

这是一款专为 DeepSeek Harness (DSH) 开发的原生插件,它将 @firecrawl/anydoc 作为 anydoc 工具注册给 DSH Agent,支持把多种常用文档格式转换为 GitHub Flavored Markdown。该插件基于 @firecrawl/anydoc 的 Rust 原生绑定(通过 napi-rs)实现,在 libuv 线程池中执行,不会阻塞事件循环,也无需依赖任何外部进程或 Python 环境。

安装方式十分简单,用户只需在终端执行 dsh plugin --profile web add github:beancookie/dsh-plugin-anydoc 命令即可完成安装,安装完成后启动 dsh web 就能使用。使用时,用户只需向 DSH Agent 发送指令,指定需要转换的文件路径,Agent 就会自动调用 anydoc 工具完成转换,返回 Markdown 内容。它面向需要在 DSH 工作流中快速转换办公文档格式的开发者和写作者。

该插件支持多种常用格式,包括 Word、PowerPoint、Excel 等 Office 文档,还有 OpenDocument、RTF、EPUB、CSV、PDF 等,但不支持 HTML、JSON、XML 以及各类多媒体文件。项目采用 MIT 许可协议开源,开发者可以通过 pnpm 安装依赖、编译 TypeScript 代码,还能使用 DSH 的 --patch 开发模式进行本地调试开发。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 2 warnings2 项注意
  • No license declared - all rights reserved by default; ask the author before commercial use or redistribution未声明开源许可证 —— 默认「保留所有权利」,商用或再分发前先问作者
  • Only 7 stars - very few users, little community feedback星标只有 7,几乎没人在用,遇到问题缺少社区反馈
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 github:beancookie/dsh-plugin-anydoc

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

READMEREADME

dsh-plugin-anydoc

一个 DeepSeek Harness (DSH) 插件,将 @firecrawl/anydoc 作为 anydoc 工具注册给 Agent,把多种文档格式转换为 GitHub-Flavored Markdown。

基于 @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、图片与音频。

安装

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

安装完成后直接启动:

dsh web

卸载

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

开发

# 安装依赖
pnpm install

# 编译 TypeScript 到 lib/
pnpm build

本地加载(--patch 开发模式):

pnpm dsh web --patch "/path/to/dsh-plugin-anydoc/dev.cordis.patch.yml"

社区

本项目积极支持并感谢 LINUX DO 社区——一个面向技术爱好者的友好交流空间。

许可

MIT

← 上一个 Prev dsh-self-evolving 下一个 Next dsh-pdf →