dsh-mineru 0.1.9 → 0.1.11
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 +88 -73
- package/CONTRIBUTING.md +30 -30
- package/LICENSE +21 -21
- package/README.md +405 -405
- package/README.zh.md +405 -405
- package/RELEASE.md +87 -87
- package/cordis.patch.yml +8 -8
- package/lib/artifacts.js +306 -306
- package/lib/client.js +559 -559
- package/lib/config.js +173 -173
- package/lib/http.js +452 -452
- package/lib/index.js +134 -135
- package/lib/mineru-client.js +825 -825
- package/lib/skill.js +9 -9
- package/lib/tools.js +666 -666
- package/lib/types/client.d.ts +8 -8
- package/lib/types/index.d.ts +11 -11
- package/lib/zip.js +336 -336
- package/package.json +77 -77
package/CHANGELOG.md
CHANGED
|
@@ -1,73 +1,88 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to **dsh-mineru** are documented here. The format follows [Keep a Changelog](https://keepachangelog.com/zh-CN/1.1.0/), and versioning follows [Semantic Versioning](https://semver.org/lang/zh-CN/). 版本号唯一来源是 `package.json`。
|
|
4
|
-
|
|
5
|
-
## [Unreleased]
|
|
6
|
-
|
|
7
|
-
-
|
|
8
|
-
|
|
9
|
-
## [0.1.
|
|
10
|
-
|
|
11
|
-
###
|
|
12
|
-
|
|
13
|
-
-
|
|
14
|
-
|
|
15
|
-
## [0.1.
|
|
16
|
-
|
|
17
|
-
###
|
|
18
|
-
|
|
19
|
-
-
|
|
20
|
-
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
[0.1.
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to **dsh-mineru** are documented here. The format follows [Keep a Changelog](https://keepachangelog.com/zh-CN/1.1.0/), and versioning follows [Semantic Versioning](https://semver.org/lang/zh-CN/). 版本号唯一来源是 `package.json`。
|
|
4
|
+
|
|
5
|
+
## [Unreleased]
|
|
6
|
+
|
|
7
|
+
- No changes yet (latest release is 0.1.11).
|
|
8
|
+
|
|
9
|
+
## [0.1.11] - 2026-09-13
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- Fix invisible button labels in dark mode: the platform binds `--dsw-alias-brand-primary` to its near-black (light) / near-white (dark) foreground, so the primary buttons rendered white-on-white in dark themes. Primary buttons and the artifact preview link now use the platform accent token `--dsw-alias-brand-primary-new-colorprimary-new-color`. Fixes #3.
|
|
14
|
+
|
|
15
|
+
## [0.1.10] - 2026-09-11
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
|
|
19
|
+
- Fix boot failure on the DSH 0.1.5 line: `@deepseek-ai/dsh-settings` dropped `settingsNamespace()`, so `lib/index.js` now registers the plain lowercase namespace `'mineru'` (the old import failed during ESM instantiation and took down the whole plugin tree). Fixes #1.
|
|
20
|
+
- Raise the six `@deepseek-ai/dsh-*` `peerDependencies` ranges from `^0.1.0-rc.6` to `^0.1.5-rc.1`: under semver prerelease rules `0.1.5-rc.x` cannot satisfy the old range, so every install reported unmet peers.
|
|
21
|
+
|
|
22
|
+
## [0.1.9] - 2026-08-16
|
|
23
|
+
|
|
24
|
+
### Docs
|
|
25
|
+
|
|
26
|
+
- 快速开始章节按官方插件 README 规范重构:安装拆分为「从 npm 安装(推荐)」与「从源码构建」双通道;新增第 2 步 `dsh --profile web --dump-config` 验证安装;新增 headless 冒烟测试示例;前置条件改为 Note 提示(中英两版同步)。
|
|
27
|
+
|
|
28
|
+
## [0.1.8] - 2026-08-16
|
|
29
|
+
|
|
30
|
+
### Docs
|
|
31
|
+
|
|
32
|
+
- 重写双语 README 为详细版:新增三步快速开始、工具完整参数表、22 项配置参考、错误码速查与 FAQ(中英两版结构对称)。
|
|
33
|
+
- 新增 `CHANGELOG.md`(Keep a Changelog)与 `RELEASE.md`(发布 SOP 清单)。
|
|
34
|
+
- `CONTRIBUTING.md` 补充提交规范:commit message 描述一律使用英文。
|
|
35
|
+
- `package.json` `files` 字段加入 `CHANGELOG.md` / `RELEASE.md`。
|
|
36
|
+
|
|
37
|
+
## [0.1.7] - 2026-08-16
|
|
38
|
+
|
|
39
|
+
### Fixed
|
|
40
|
+
|
|
41
|
+
- 拖拽上传改为**填入输入框草稿(不自动发送)**:文件落到会话工作区后,其路径填入输入框,由用户补充需求后自行发送,完全绕开纯文本模型会拒绝的原生图片附件通道。
|
|
42
|
+
- 清除拖拽残留的全屏遮罩(拖拽结束或取消后遮罩层不再残留)。
|
|
43
|
+
|
|
44
|
+
## [0.1.6] - 2026-08-16
|
|
45
|
+
|
|
46
|
+
### Docs
|
|
47
|
+
|
|
48
|
+
- 双语 README:`README.md`(默认英文)+ `README.zh.md`(简体中文)。
|
|
49
|
+
- 统一仓库 / npm / MinerU 链接与介绍结构。
|
|
50
|
+
|
|
51
|
+
## [0.1.5] - 2026-08-16
|
|
52
|
+
|
|
53
|
+
### Fixed
|
|
54
|
+
|
|
55
|
+
- P3–P8 自检问题批量修复:
|
|
56
|
+
- `presentCall` 未定义(工具调用上下文缺失时崩溃);
|
|
57
|
+
- 批量解析自动分批(每批 ≤50 文件 / ≤200 URL,单次 ≤1000);
|
|
58
|
+
- 错误码映射补齐(A0202/A0211、-60005/-60006、-30001~-30003、-60018 等全部映射为可操作提示);
|
|
59
|
+
- ZIP 解包 CRC 校验与截断防护;
|
|
60
|
+
- 上传同名文件冲突处理;
|
|
61
|
+
- 版本号改为单一来源(`package.json`)。
|
|
62
|
+
|
|
63
|
+
## [0.1.4] - 2026-08-16
|
|
64
|
+
|
|
65
|
+
### Fixed
|
|
66
|
+
|
|
67
|
+
- 工具结果序列化失败(`value is not lossless JSON`);
|
|
68
|
+
- `mineru-tools` skill 加载失败(`source must be a string`)。
|
|
69
|
+
|
|
70
|
+
## [0.1.2] - 2026-08-16
|
|
71
|
+
|
|
72
|
+
### Added
|
|
73
|
+
|
|
74
|
+
- 首个可用版本:MinerU 多模态文档解析插件 for DeepSeek Harness。
|
|
75
|
+
- 双 API 模式:精准解析 API(需 Token)/ Agent 轻量解析 API(免 Token);
|
|
76
|
+
- 工具:`mineru_parse`、`mineru_batch_parse`、`mineru_task`、`mineru_activate`(progressive 引导)与 `mineru-tools` 技能;
|
|
77
|
+
- 限流感知(令牌桶 + 429 退避 + 每日限额);
|
|
78
|
+
- Artifact 落地与 Web 界面(设置卡片、工具结果卡片、HMAC 签名预览)。
|
|
79
|
+
|
|
80
|
+
[0.1.11]: https://github.com/Lee-Hilex/dsh-mineru/releases/tag/v0.1.11
|
|
81
|
+
[0.1.10]: https://github.com/Lee-Hilex/dsh-mineru/releases/tag/v0.1.10
|
|
82
|
+
[0.1.9]: https://github.com/Lee-Hilex/dsh-mineru/releases/tag/v0.1.9
|
|
83
|
+
[0.1.8]: https://github.com/Lee-Hilex/dsh-mineru/releases/tag/v0.1.8
|
|
84
|
+
[0.1.7]: https://github.com/Lee-Hilex/dsh-mineru/releases/tag/v0.1.7
|
|
85
|
+
[0.1.6]: https://github.com/Lee-Hilex/dsh-mineru/releases/tag/v0.1.6
|
|
86
|
+
[0.1.5]: https://github.com/Lee-Hilex/dsh-mineru/releases/tag/v0.1.5
|
|
87
|
+
[0.1.4]: https://github.com/Lee-Hilex/dsh-mineru/releases/tag/v0.1.4
|
|
88
|
+
[0.1.2]: https://github.com/Lee-Hilex/dsh-mineru/releases/tag/v0.1.2
|
package/CONTRIBUTING.md
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
[English](README.md) · [简体中文](README.zh.md) · [更新日志](CHANGELOG.md) · [发布 SOP](RELEASE.md)
|
|
2
|
-
|
|
3
|
-
# 贡献指南 (Contributing)
|
|
4
|
-
|
|
5
|
-
欢迎提交 Issue 与 Pull Request。开始前请阅读:
|
|
6
|
-
|
|
7
|
-
- **Bug 报告**:在 [Issues](https://github.com/Lee-Hilex/dsh-mineru/issues) 中描述复现步骤、DSH 版本(`dsh --version`)、插件版本与相关日志;请勿在 Issue 中贴出 MinerU Token。
|
|
8
|
-
- **功能建议**:说明使用场景与期望行为,优先讨论再实现。
|
|
9
|
-
- **PR**:基于 `main` 分支,保持 `lib/` 下为可直接加载的 ESM 与打包形态的 `lib/client.js`;提交前运行 `node --check lib/*.js` 并在本地 profile 安装验证(见 README)。
|
|
10
|
-
|
|
11
|
-
## 本地开发循环
|
|
12
|
-
|
|
13
|
-
```
|
|
14
|
-
npm pack --pack-destination <目录> # 打包 tgz
|
|
15
|
-
dsh plugin --profile web add <目录>/dsh-mineru-<version>.tgz # 安装进 profile
|
|
16
|
-
# 重启 web profile 后验证; 修改代码后需重新打包并升版本号再安装
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
Web profile 重启可复用 `D:\Users\Lee\Desktop\dsh\.dsh-restart\restart.ps1`(杀 3080 端口旧进程并重启)。
|
|
20
|
-
|
|
21
|
-
注意:本地路径直装(pnpm link)会使 @deepseek-ai 依赖解析脱离 profile,请用 tgz 安装。
|
|
22
|
-
|
|
23
|
-
## 提交规范 (Commit conventions)
|
|
24
|
-
|
|
25
|
-
- 提交信息格式:`<type>: <英文描述>[, 版本 X.Y.Z]`,`type` 取 `feat` / `fix` / `docs` / `refactor` / `chore`;**描述一律用英文**(如 `fix: drag-drop fills composer draft instead of auto-send`)。
|
|
26
|
-
- 文档变更(README / CHANGELOG / CONTRIBUTING / RELEASE)与代码变更**必须同一次提交**,不要分开发。
|
|
27
|
-
|
|
28
|
-
## 发布流程
|
|
29
|
-
|
|
30
|
-
新版本发布请严格按 [RELEASE.md](RELEASE.md) 清单执行:升版本号(唯一来源 `package.json`)→ 更新 CHANGELOG 与双语 README → `npm pack` → 本地验证 → 打 tag 推送 → `npm publish`。
|
|
1
|
+
[English](README.md) · [简体中文](README.zh.md) · [更新日志](CHANGELOG.md) · [发布 SOP](RELEASE.md)
|
|
2
|
+
|
|
3
|
+
# 贡献指南 (Contributing)
|
|
4
|
+
|
|
5
|
+
欢迎提交 Issue 与 Pull Request。开始前请阅读:
|
|
6
|
+
|
|
7
|
+
- **Bug 报告**:在 [Issues](https://github.com/Lee-Hilex/dsh-mineru/issues) 中描述复现步骤、DSH 版本(`dsh --version`)、插件版本与相关日志;请勿在 Issue 中贴出 MinerU Token。
|
|
8
|
+
- **功能建议**:说明使用场景与期望行为,优先讨论再实现。
|
|
9
|
+
- **PR**:基于 `main` 分支,保持 `lib/` 下为可直接加载的 ESM 与打包形态的 `lib/client.js`;提交前运行 `node --check lib/*.js` 并在本地 profile 安装验证(见 README)。
|
|
10
|
+
|
|
11
|
+
## 本地开发循环
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
npm pack --pack-destination <目录> # 打包 tgz
|
|
15
|
+
dsh plugin --profile web add <目录>/dsh-mineru-<version>.tgz # 安装进 profile
|
|
16
|
+
# 重启 web profile 后验证; 修改代码后需重新打包并升版本号再安装
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Web profile 重启可复用 `D:\Users\Lee\Desktop\dsh\.dsh-restart\restart.ps1`(杀 3080 端口旧进程并重启)。
|
|
20
|
+
|
|
21
|
+
注意:本地路径直装(pnpm link)会使 @deepseek-ai 依赖解析脱离 profile,请用 tgz 安装。
|
|
22
|
+
|
|
23
|
+
## 提交规范 (Commit conventions)
|
|
24
|
+
|
|
25
|
+
- 提交信息格式:`<type>: <英文描述>[, 版本 X.Y.Z]`,`type` 取 `feat` / `fix` / `docs` / `refactor` / `chore`;**描述一律用英文**(如 `fix: drag-drop fills composer draft instead of auto-send`)。
|
|
26
|
+
- 文档变更(README / CHANGELOG / CONTRIBUTING / RELEASE)与代码变更**必须同一次提交**,不要分开发。
|
|
27
|
+
|
|
28
|
+
## 发布流程
|
|
29
|
+
|
|
30
|
+
新版本发布请严格按 [RELEASE.md](RELEASE.md) 清单执行:升版本号(唯一来源 `package.json`)→ 更新 CHANGELOG 与双语 README → `npm pack` → 本地验证 → 打 tag 推送 → `npm publish`。
|
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 dsh-mineru contributors
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 dsh-mineru contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|