treg
superdesigndev
OpenRouter for agent tools. Join community here: https://discord.gg/6mQYYfFMAn
ramouse/mineru-plug-for-ds
DSH 文档解析插件:用 MinerU 把 PDF/Word/PPT/Excel/图片/HTML 转成干净 Markdown 供 Agent 阅读,内置拖拽上传面板,免费 Agent API 快速模式 + Token 精准模式自动路由。MinerU document parsing plugin for DSH (DeepSeek Harness) — PDF/Office/image/HTML → Markdown, agent tools + drag-drop panel.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:ramouse/mineru-plug-for-ds
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
让 DSH(DeepSeek Harness)中的 Agent"读懂" PDF / Word / PPT / Excel / 图片 / HTML:通过 MinerU 云端 API 解析为干净 Markdown 并落盘工作区,Agent 用 read 按需阅读;GUI 提供可视化面板——拖拽上传、API Key 管理、任务进度、一键发给 Agent。
MinerU DSH plugin: dual-mode cloud document parsing (free Agent API / Standard API with token and auto-routing), agent tools + browser panel with drag-drop upload. English overview
npm install -g mineru-dsh-plugin # 全局安装(含 CLI)
mineru-dsh-plugin # 一键安装:镜像 + junction + 补丁注入
# 重启 DSH → 任何预设、任何会话自动生效(工具 + 面板 + 拖拽上传)
CLI 做的事(跨平台,纯 Node 零依赖):
%DSH_HOME%\plugins\mineru-dsh-plugin(稳定目录,npm 升级不影响已安装实例);DSH_HOME\profiles\node_modules、E:\ds harness\deepseek-harness\node_modules,可用 --install-dir 指定);DSH_HOME\profiles\*\cordis.patch.yml(DSH 官方用户扩展点)写入 insert 补丁——插件进程级全局挂载,无需预设。mineru-dsh-plugin status # 查看安装状态
mineru-dsh-plugin uninstall # 卸载(补丁 + 链接)
mineru-dsh-plugin uninstall --purge # 连镜像一起删
mineru-dsh-plugin --data-dir D:\data # 自定义数据目录(上传文件 + 解析产物)
数据目录默认值:从仓库(git clone)安装 → 仓库目录本身;npm -g 安装 → 插件镜像目录。上传源文件与解析产物分别落在 <数据目录>\.mineru\inputs 与 .mineru\out,可用 --data-dir 指定任意位置。
git clone https://github.com/ramouse/mineru-plug-for-ds.git
cd mineru-dsh-plugin
pwsh -File tools\install.ps1 # 全局插件(写补丁层 + junction)
pwsh -File tools\install.ps1 -Uninstall
详细安装/卸载/更新/排障见 docs/INSTALL.md。
| ⚡ 快速模式 | 🎯 精准模式 | |
|---|---|---|
| 触发 | 面板未设置 API Key | 设置 Key 后自动路由(大文件/导出格式/HTML 自动升级;小文件仍走快速省额度) |
| 后端 | MinerU Agent API(免费免登录) | MinerU Standard API(Bearer Token) |
| 限制 | ≤10MB / ≤20 页,仅 Markdown | ≤200MB / ≤200 页,zip(MD+images+JSON,可选 docx/html/latex) |
| 额度 | IP 限流 | 免费 1000 页/天高优先级 |
Key 获取:https://mineru.net/apiManage/token(面板保存时即时校验有效性)。
parse_document(解析,返回概要+预览+落盘路径,正文用 read 分页阅读)、mineru_status(队列/结果)、mineru_doctor(环境自检)。| 路径 | 说明 |
|---|---|
packages/mineru-plugin/ |
DSH 插件包(Host:工具+HTTP 端点+任务队列;Client:面板 bundle) |
tools/mineru/mineru.py |
自研纯标准库 Python 客户端(Python ≥3.8,零依赖;路由/重试/轮询/安全解压/--json/--doctor/--selftest) |
tools/install.ps1 |
一键安装/卸载器 |
docs/DESIGN.md |
设计定稿(架构、实测决策、环境约束) |
docs/INSTALL.md |
安装/卸载/更新/排障手册 |
<!-- image--> 占位符;设置 API Key 后走精准模式,图片随 zip 解压保存到 <输出目录>\images\。python 或 py 在 PATH 中),无需 pip 安装、无需 GPU。python tools/mineru/mineru.py --selftest # 离线单测(路由/命名/zip 安全)
python tools/mineru/mineru.py --doctor --json # 环境自检(Python/网络/Token)
python tools/mineru/mineru.py docs.pdf --json # 真实解析
A plugin for DSH (DeepSeek Harness) that lets the agent "read" PDF / Word / PPT / Excel / image / HTML documents: MinerU cloud APIs parse them into clean Markdown saved into the workspace; the agent reads them on demand with the read tool. The GUI panel supports drag-drop upload, API-key management, job progress, and one-click "send to agent".
git clone this repo, then pwsh -File tools\install.ps1 — writes one insert entry into the DSH user patch layer (cordis.patch.yml), the official user extension point; the plugin loads process-wide (global): every session and every preset gets it. Restart DSH once for the panel.pwsh -File tools\install.ps1 -Uninstall -RemovePreset.License: MIT.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: api。