dsh-mineru 0.1.8 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -1
- package/README.md +37 -12
- package/README.zh.md +37 -12
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,7 +4,13 @@ All notable changes to **dsh-mineru** are documented here. The format follows [K
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
-
- 无(当前为最新发布版本 0.1.
|
|
7
|
+
- 无(当前为最新发布版本 0.1.9)
|
|
8
|
+
|
|
9
|
+
## [0.1.9] - 2026-08-16
|
|
10
|
+
|
|
11
|
+
### Docs
|
|
12
|
+
|
|
13
|
+
- 快速开始章节按官方插件 README 规范重构:安装拆分为「从 npm 安装(推荐)」与「从源码构建」双通道;新增第 2 步 `dsh --profile web --dump-config` 验证安装;新增 headless 冒烟测试示例;前置条件改为 Note 提示(中英两版同步)。
|
|
8
14
|
|
|
9
15
|
## [0.1.8] - 2026-08-16
|
|
10
16
|
|
|
@@ -58,6 +64,7 @@ All notable changes to **dsh-mineru** are documented here. The format follows [K
|
|
|
58
64
|
- 限流感知(令牌桶 + 429 退避 + 每日限额);
|
|
59
65
|
- Artifact 落地与 Web 界面(设置卡片、工具结果卡片、HMAC 签名预览)。
|
|
60
66
|
|
|
67
|
+
[0.1.9]: https://github.com/Lee-Hilex/dsh-mineru/releases/tag/v0.1.9
|
|
61
68
|
[0.1.8]: https://github.com/Lee-Hilex/dsh-mineru/releases/tag/v0.1.8
|
|
62
69
|
[0.1.7]: https://github.com/Lee-Hilex/dsh-mineru/releases/tag/v0.1.7
|
|
63
70
|
[0.1.6]: https://github.com/Lee-Hilex/dsh-mineru/releases/tag/v0.1.6
|
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# dsh-mineru
|
|
2
2
|
|
|
3
3
|
[](LICENSE)
|
|
4
|
-
[](https://github.com/Lee-Hilex/dsh-mineru/releases)
|
|
5
5
|
[](https://github.com/deepseek-ai/deepseek-harness)
|
|
6
6
|
[](https://mineru.net/apiManage/docs)
|
|
7
7
|
|
|
@@ -54,25 +54,44 @@ Typical use cases:
|
|
|
54
54
|
|
|
55
55
|
### Step 1: Install
|
|
56
56
|
|
|
57
|
-
|
|
57
|
+
> **Note**: Requires an existing DeepSeek Harness installation (`0.1.0-rc.6` or a compatible `0.1.x`) with the `dsh` CLI available.
|
|
58
|
+
|
|
59
|
+
**From npm (recommended)**
|
|
58
60
|
|
|
59
61
|
```bash
|
|
60
|
-
# Web profile
|
|
61
|
-
dsh plugin --profile
|
|
62
|
+
dsh plugin --profile web add dsh-mineru # Web profile
|
|
63
|
+
dsh plugin --profile headless add dsh-mineru # Headless profile
|
|
64
|
+
```
|
|
62
65
|
|
|
63
|
-
|
|
64
|
-
|
|
66
|
+
**Build from source** (development / preview latest changes)
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
git clone git@github.com:Lee-Hilex/dsh-mineru.git
|
|
70
|
+
cd dsh-mineru
|
|
71
|
+
npm install # installs peer deps (no build step for this package)
|
|
72
|
+
npm pack # produces dsh-mineru-<version>.tgz
|
|
73
|
+
dsh plugin --profile web add ./dsh-mineru-<version>.tgz
|
|
65
74
|
```
|
|
66
75
|
|
|
67
|
-
|
|
76
|
+
Run `npm pack` again and re-install after changing the source. Local installs must use the tarball (`pnpm link:` installs resolve `@deepseek-ai` peers outside the profile).
|
|
68
77
|
|
|
69
|
-
|
|
78
|
+
### Step 2: Verify the install
|
|
70
79
|
|
|
71
80
|
```bash
|
|
72
|
-
dsh
|
|
81
|
+
dsh --profile web --dump-config | grep -A 2 "id: mineru"
|
|
73
82
|
```
|
|
74
83
|
|
|
75
|
-
|
|
84
|
+
Expected output (a `# ==` comment line plus your plugin row):
|
|
85
|
+
|
|
86
|
+
```
|
|
87
|
+
# == dsh-mineru
|
|
88
|
+
- id: mineru
|
|
89
|
+
name: dsh-mineru
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Then restart a running Web profile (`dsh web`) and open **Settings → Plugins → MinerU 解析**.
|
|
93
|
+
|
|
94
|
+
### Step 3: Configure (optional)
|
|
76
95
|
|
|
77
96
|
**No token needed to get started** — the plugin automatically falls back to the tokenless Agent API. Add a token to unlock the full feature set (Precision API, batch parsing, HTML, more formats):
|
|
78
97
|
|
|
@@ -81,7 +100,7 @@ dsh plugin --profile web add <path>/dsh-mineru-0.1.8.tgz
|
|
|
81
100
|
|
|
82
101
|
The token is resolved once per operation — **rotations take effect on the very next call without a restart**. Get a token by registering at <https://mineru.net> (API management page).
|
|
83
102
|
|
|
84
|
-
### Step
|
|
103
|
+
### Step 4: Use it
|
|
85
104
|
|
|
86
105
|
**Web UI** (drag-and-drop friendly):
|
|
87
106
|
|
|
@@ -91,7 +110,13 @@ The token is resolved once per operation — **rotations take effect on the very
|
|
|
91
110
|
|
|
92
111
|
**URL parsing**: just tell the agent "parse this document: https://example.com/paper.pdf".
|
|
93
112
|
|
|
94
|
-
**Headless
|
|
113
|
+
**Headless smoke test**: one-off tasks run on the headless profile:
|
|
114
|
+
|
|
115
|
+
```bash
|
|
116
|
+
dsh --profile headless "Parse C:/docs/sample.pdf to Markdown and summarize the first 3 paragraphs"
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
Headless and Web share the same tool semantics; you can also type `/mineru-tools` in a conversation to load the usage skill.
|
|
95
120
|
|
|
96
121
|
## Two API modes
|
|
97
122
|
|
package/README.zh.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# dsh-mineru
|
|
2
2
|
|
|
3
3
|
[](LICENSE)
|
|
4
|
-
[](https://github.com/Lee-Hilex/dsh-mineru/releases)
|
|
5
5
|
[](https://github.com/deepseek-ai/deepseek-harness)
|
|
6
6
|
[](https://mineru.net/apiManage/docs)
|
|
7
7
|
|
|
@@ -54,25 +54,44 @@ dsh-mineru 把 [MinerU](https://mineru.net)(OpenDataLab 出品的高精度文
|
|
|
54
54
|
|
|
55
55
|
### 第 1 步:安装
|
|
56
56
|
|
|
57
|
-
|
|
57
|
+
> **Note**: 需要已安装 DeepSeek Harness(`0.1.0-rc.6` 或兼容的 `0.1.x`),且 `dsh` 命令可用。
|
|
58
|
+
|
|
59
|
+
**从 npm 安装(推荐)**
|
|
58
60
|
|
|
59
61
|
```bash
|
|
60
|
-
# Web 界面使用
|
|
61
|
-
dsh plugin --profile
|
|
62
|
+
dsh plugin --profile web add dsh-mineru # Web 界面使用
|
|
63
|
+
dsh plugin --profile headless add dsh-mineru # 无头(Headless)模式使用
|
|
64
|
+
```
|
|
62
65
|
|
|
63
|
-
|
|
64
|
-
|
|
66
|
+
**从源码构建**(开发 / 预览最新改动)
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
git clone git@github.com:Lee-Hilex/dsh-mineru.git
|
|
70
|
+
cd dsh-mineru
|
|
71
|
+
npm install # 安装 peer 依赖(本包无构建步骤,无需 build)
|
|
72
|
+
npm pack # 产出 dsh-mineru-<version>.tgz
|
|
73
|
+
dsh plugin --profile web add ./dsh-mineru-<version>.tgz
|
|
65
74
|
```
|
|
66
75
|
|
|
67
|
-
|
|
76
|
+
修改源码后重新 `npm pack` 并重装即可。注意本地安装请用 tgz(`pnpm link:` 安装会使 `@deepseek-ai` 依赖解析脱离 profile)。
|
|
68
77
|
|
|
69
|
-
|
|
78
|
+
### 第 2 步:验证安装
|
|
70
79
|
|
|
71
80
|
```bash
|
|
72
|
-
dsh
|
|
81
|
+
dsh --profile web --dump-config | grep -A 2 "id: mineru"
|
|
73
82
|
```
|
|
74
83
|
|
|
75
|
-
|
|
84
|
+
期望输出(`# ==` 注释行 + 你的插件行):
|
|
85
|
+
|
|
86
|
+
```
|
|
87
|
+
# == dsh-mineru
|
|
88
|
+
- id: mineru
|
|
89
|
+
name: dsh-mineru
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
然后重启 Web profile(`dsh web`),在 **设置 → 插件 → MinerU 解析** 中即可看到本插件。
|
|
93
|
+
|
|
94
|
+
### 第 3 步:配置(可选)
|
|
76
95
|
|
|
77
96
|
**不配 Token 也能用**(自动走 Agent 轻量解析)。配 Token 可以解锁完整能力(精准解析 + 批量 + HTML + 更多格式):
|
|
78
97
|
|
|
@@ -81,7 +100,7 @@ dsh plugin --profile web add <路径>/dsh-mineru-0.1.8.tgz
|
|
|
81
100
|
|
|
82
101
|
Token 每次调用时实时解析,**轮换后无需重启立即生效**。Token 去哪领:<https://mineru.net> 注册后到 API 管理页面获取。
|
|
83
102
|
|
|
84
|
-
### 第
|
|
103
|
+
### 第 4 步:开始使用
|
|
85
104
|
|
|
86
105
|
**Web 界面**(推荐方式,支持拖拽):
|
|
87
106
|
|
|
@@ -91,7 +110,13 @@ Token 每次调用时实时解析,**轮换后无需重启立即生效**。Toke
|
|
|
91
110
|
|
|
92
111
|
**URL 解析**:直接告诉 Agent「解析这个网页/文档:https://example.com/paper.pdf」即可。
|
|
93
112
|
|
|
94
|
-
**Headless
|
|
113
|
+
**Headless 快速验证(冒烟测试)**:一次性任务走 headless profile:
|
|
114
|
+
|
|
115
|
+
```bash
|
|
116
|
+
dsh --profile headless "把 C:/docs/sample.pdf 解析成 Markdown,并总结前 3 段"
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
Headless 与 Web 共用同一套工具语义;也可以在会话中输入 `/mineru-tools` 加载使用说明技能。
|
|
95
120
|
|
|
96
121
|
## 两种 API 模式
|
|
97
122
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-mineru",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "dsh-mineru: MinerU 文档解析插件 for DeepSeek Harness — 多模态全格式 (PDF/Word/PPT/Excel/HTML/图片) → 结构化 Markdown. 填 Token 走精准解析 API, 留空走 Agent 轻量解析 API.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|