dsh-pdf-mineru 0.1.3 → 0.1.5
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 +24 -0
- package/README.md +6 -4
- package/lib/index.js +1 -1
- package/lib/types/loopback-rpc.d.ts +1 -1
- package/package.json +41 -41
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.5
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
|
|
7
|
+
- Raise the minimum DSH host to 0.2.0-rc.2 and runtime DSH peers to ^0.2.0-rc.2; pin every development DSH SDK package and workspace release-age exclusion to the exact rc.2 baseline and refresh the lockfile. Cordis, Cosmokit and Schemastery retain the unchanged upstream minimum versions.
|
|
8
|
+
- Align package-contract, native-job and loopback RPC regressions with the published rc.2 SDK, and guard workspace release-age exclusions against baseline drift.
|
|
9
|
+
- Document rc.2 compatibility boundaries and the uninstall/reinstall upgrade flow, including Desktop profile initialization and platform-specific native renderer verification.
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- Restore the offline local/installed-package page smoke fixture's optional attachment injection, so the complete plugin activation chain can exercise both renderers without weakening capability checks; add a built-bundle regression.
|
|
14
|
+
|
|
15
|
+
Provider/config/cache formats, cursor v3, index v2, native-job semantics and tool arguments are unchanged; existing parsed caches require no migration or re-upload. Upgrade the DSH host before installing this plugin version.
|
|
16
|
+
|
|
17
|
+
## 0.1.4
|
|
18
|
+
|
|
19
|
+
### Changed
|
|
20
|
+
|
|
21
|
+
- Raise the minimum DSH host to 0.2.0-rc.1 and runtime DSH peers to ^0.2.0-rc.1; pin development SDK packages and workspace release-age exclusions to the exact new baseline and refresh the lockfile.
|
|
22
|
+
- Align package-contract, native-job and loopback RPC regressions with the published 0.2.0-rc.1 SDK; cover inherited bundle configuration when a profile overrides only non-config entry options.
|
|
23
|
+
- Document the 0.2 compatibility boundary: native jobs, attachment selection, PTC schemas, bundle configuration slots and loopback RPC retain their existing contracts. The plugin does not require the optional schedule bundle or call the changed native-command API.
|
|
24
|
+
|
|
25
|
+
Provider/config/cache formats, cursor v3, index v2 and tool arguments are unchanged; existing parsed caches require no migration or re-upload. Upgrade the DSH host before installing this plugin version.
|
|
26
|
+
|
|
3
27
|
## 0.1.3
|
|
4
28
|
|
|
5
29
|
### Changed
|
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<a href="https://awesome-dsh-plugin.com"><img src="https://awesome-dsh-plugin.com/badge.svg" alt="Awesome DSH Plugin"></a>
|
|
13
13
|
<a href="https://www.npmjs.com/package/dsh-pdf-mineru"><img src="https://img.shields.io/npm/v/dsh-pdf-mineru?style=flat-square&label=npm&color=CB3837" alt="npm version"></a>
|
|
14
14
|
<a href="./package.json"><img src="https://img.shields.io/badge/Node.js-%3E%3D22.19.0-339933?style=flat-square&logo=nodedotjs&logoColor=white" alt="Node.js 22.19.0 or newer"></a>
|
|
15
|
-
<img src="https://img.shields.io/badge/DSH-%3E%3D0.
|
|
15
|
+
<img src="https://img.shields.io/badge/DSH-%3E%3D0.2.0--rc.2%20(RC%20only)-111827?style=flat-square" alt="DSH >=0.2.0-rc.2 (RC only)">
|
|
16
16
|
<img src="https://img.shields.io/badge/MinerU-Official%20v4%20%7C%20Self--hosted%20v2-2563EB?style=flat-square" alt="MinerU v2 and v4">
|
|
17
17
|
<a href="./LICENSE"><img src="https://img.shields.io/badge/license-MIT-2EA44F?style=flat-square" alt="MIT License"></a>
|
|
18
18
|
</p>
|
|
@@ -38,13 +38,13 @@
|
|
|
38
38
|
### 0. 环境要求与版本兼容说明
|
|
39
39
|
|
|
40
40
|
> ⚠️ **重要版本声明与环境要求**:
|
|
41
|
-
> - **最低支持的 DSH 版本**:`>= 0.
|
|
41
|
+
> - **最低支持的 DSH 版本**:`>= 0.2.0-rc.2`。
|
|
42
42
|
> - **仅支持 RC 版本**:本插件**只会对 DeepSeek Harness 的 RC(Release Candidate)版本及后续正式发布版本进行官方支持**。由于早期 `alpha` 测试版本包含较多实验性且剧烈变动的内部 API,本插件不再对 `alpha` 等非稳定测试版本提供兼容与维护支持。
|
|
43
43
|
> - **运行环境要求**:Node.js `^22.19.0 || >=24.0.0`,包管理器推荐 `pnpm@11+`。
|
|
44
44
|
|
|
45
|
-
插件 `0.1.
|
|
45
|
+
插件 `0.1.5` 起以 DSH `v0.2.0-rc.2` 为基线。升级前请先升级宿主;现有 Provider 配置、缓存格式与工具参数无需因本次 DSH 适配而迁移。Web 设置与维护 RPC 仅在 `connection` 和 `webServer` 同时可用时注册;无 WebServer 的宿主仍可使用两个模型工具,但不提供这些 HTTP RPC。
|
|
46
46
|
|
|
47
|
-
后台任务使用
|
|
47
|
+
后台任务使用 DSH 的 SessionId 归属与原生 JobRegistry:阶段进度显示为 `preparing`、`waiting-for-parse`、`reading-result`、`summarizing`,不是页数或百分比;缓存命中跳过等待阶段。完成摘要通过原生任务结果交付,通知、空闲唤醒、输出消费与会话归档准入由 DSH 负责。宿主必须为该会话装配任务控制器(如 `tool-jobs`),否则启动会在解析前拒绝。`job_kill` 仍只取消本次等待,不中止其他调用共用的解析生产者。
|
|
48
48
|
|
|
49
49
|
### 1. 安装插件
|
|
50
50
|
|
|
@@ -54,6 +54,8 @@
|
|
|
54
54
|
dsh plugin --profile web add dsh-pdf-mineru
|
|
55
55
|
```
|
|
56
56
|
|
|
57
|
+
rc.2 暂不支持已安装插件的自动更新。升级已安装版本时,请先升级 DSH 宿主,再在 Plugins 中卸载旧插件并安装 `dsh-pdf-mineru@0.1.5`;操作前备份 profile 配置,不要执行缓存清除。现有解析缓存无需迁移或重新上传。Desktop profile 需先启动过桌面端,生成 profile 后再使用 CLI 管理插件。
|
|
58
|
+
|
|
57
59
|
> 本地开发或测试源码时,可使用:`dsh plugin --profile web add link:/absolute/path/to/dsh-pdf-mineru`
|
|
58
60
|
|
|
59
61
|
### 本地原页渲染的安装条件
|
package/lib/index.js
CHANGED
|
@@ -9561,7 +9561,7 @@ function isLoopbackAuthority(host) {
|
|
|
9561
9561
|
return !match[1].startsWith("127.") || match[1].split(".").every((part) => Number(part) <= 255);
|
|
9562
9562
|
}
|
|
9563
9563
|
/**
|
|
9564
|
-
* Retain channel-local loopback policy on 0.
|
|
9564
|
+
* Retain channel-local loopback policy on 0.2.0-rc.2, whose native rpc.handle no longer
|
|
9565
9565
|
* accepts an authority option. Only this caller's route registration is wrapped;
|
|
9566
9566
|
* the real Connection still owns authentication, envelopes, and cancellation.
|
|
9567
9567
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Context } from '@deepseek-ai/cordis';
|
|
2
2
|
import type { ConnectionRpcHandler } from '@deepseek-ai/dsh-client-connection';
|
|
3
3
|
/**
|
|
4
|
-
* Retain channel-local loopback policy on 0.
|
|
4
|
+
* Retain channel-local loopback policy on 0.2.0-rc.2, whose native rpc.handle no longer
|
|
5
5
|
* accepts an authority option. Only this caller's route registration is wrapped;
|
|
6
6
|
* the real Connection still owns authentication, envelopes, and cancellation.
|
|
7
7
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-pdf-mineru",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "Provider-independent DSH document parsing powered by MinerU, with native background jobs, immutable results, and safe request coalescing.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dsh-plugin"
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"type": "module",
|
|
10
10
|
"engines": {
|
|
11
11
|
"node": "^22.19.0 || >=24.0.0",
|
|
12
|
-
"dsh": ">=0.
|
|
12
|
+
"dsh": ">=0.2.0-rc.2"
|
|
13
13
|
},
|
|
14
14
|
"publishConfig": {
|
|
15
15
|
"access": "public"
|
|
@@ -66,14 +66,14 @@
|
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"@deepseek-ai/cosmokit": "~1.8.5",
|
|
69
|
-
"@deepseek-ai/dsh-settings": "^0.
|
|
69
|
+
"@deepseek-ai/dsh-settings": "^0.2.0-rc.2",
|
|
70
70
|
"@deepseek-ai/cordis": "~4.0.4",
|
|
71
|
-
"@deepseek-ai/dsh-api-remotes": "^0.
|
|
72
|
-
"@deepseek-ai/dsh-client-connection": "^0.
|
|
73
|
-
"@deepseek-ai/dsh-client-locale": "^0.
|
|
74
|
-
"@deepseek-ai/dsh-client-ui-plugin-manager": "^0.
|
|
75
|
-
"@deepseek-ai/dsh-jobs": "^0.
|
|
76
|
-
"@deepseek-ai/dsh-tools": "^0.
|
|
71
|
+
"@deepseek-ai/dsh-api-remotes": "^0.2.0-rc.2",
|
|
72
|
+
"@deepseek-ai/dsh-client-connection": "^0.2.0-rc.2",
|
|
73
|
+
"@deepseek-ai/dsh-client-locale": "^0.2.0-rc.2",
|
|
74
|
+
"@deepseek-ai/dsh-client-ui-plugin-manager": "^0.2.0-rc.2",
|
|
75
|
+
"@deepseek-ai/dsh-jobs": "^0.2.0-rc.2",
|
|
76
|
+
"@deepseek-ai/dsh-tools": "^0.2.0-rc.2",
|
|
77
77
|
"@deepseek-ai/schemastery": "~3.18.4"
|
|
78
78
|
},
|
|
79
79
|
"peerDependenciesMeta": {
|
|
@@ -94,44 +94,44 @@
|
|
|
94
94
|
}
|
|
95
95
|
},
|
|
96
96
|
"devDependencies": {
|
|
97
|
-
"@deepseek-ai/dsh-cmdline": "0.
|
|
97
|
+
"@deepseek-ai/dsh-cmdline": "0.2.0-rc.2",
|
|
98
98
|
"@deepseek-ai/cordis-plugin-timer": "~1.1.6",
|
|
99
|
-
"@deepseek-ai/dsh-hmr": "0.
|
|
99
|
+
"@deepseek-ai/dsh-hmr": "0.2.0-rc.2",
|
|
100
100
|
"@deepseek-ai/cordis-plugin-group": "~1.0.4",
|
|
101
|
-
"@deepseek-ai/dsh-home-paths": "0.
|
|
102
|
-
"@deepseek-ai/dsh-launch-environment": "0.
|
|
101
|
+
"@deepseek-ai/dsh-home-paths": "0.2.0-rc.2",
|
|
102
|
+
"@deepseek-ai/dsh-launch-environment": "0.2.0-rc.2",
|
|
103
103
|
"@deepseek-ai/cosmokit": "~1.8.5",
|
|
104
|
-
"@deepseek-ai/dsh-settings": "0.
|
|
105
|
-
"@deepseek-ai/dsh-app-boot": "0.
|
|
106
|
-
"@deepseek-ai/dsh-config-editor": "0.
|
|
104
|
+
"@deepseek-ai/dsh-settings": "0.2.0-rc.2",
|
|
105
|
+
"@deepseek-ai/dsh-app-boot": "0.2.0-rc.2",
|
|
106
|
+
"@deepseek-ai/dsh-config-editor": "0.2.0-rc.2",
|
|
107
107
|
"@deepseek-ai/cordis": "~4.0.4",
|
|
108
108
|
"@deepseek-ai/cordis-plugin-include": "~1.0.9",
|
|
109
109
|
"@deepseek-ai/cordis-plugin-loader": "~1.0.5",
|
|
110
|
-
"@deepseek-ai/dsh-agent": "0.
|
|
111
|
-
"@deepseek-ai/dsh-api-remotes": "0.
|
|
112
|
-
"@deepseek-ai/dsh-client-connection": "0.
|
|
113
|
-
"@deepseek-ai/dsh-client-locale": "0.
|
|
114
|
-
"@deepseek-ai/dsh-client-ui-plugin-manager": "0.
|
|
115
|
-
"@deepseek-ai/dsh-attachment": "0.
|
|
116
|
-
"@deepseek-ai/dsh-brand": "0.
|
|
117
|
-
"@deepseek-ai/dsh-ptc-runtime": "0.
|
|
118
|
-
"@deepseek-ai/dsh-invariants": "0.
|
|
119
|
-
"@deepseek-ai/dsh-jobs": "0.
|
|
120
|
-
"@deepseek-ai/dsh-llm": "0.
|
|
121
|
-
"@deepseek-ai/dsh-jobs-local": "0.
|
|
122
|
-
"@deepseek-ai/dsh-sandbox": "0.
|
|
123
|
-
"@deepseek-ai/dsh-sandbox-policy": "0.
|
|
124
|
-
"@deepseek-ai/dsh-client-ui-slots": "0.
|
|
125
|
-
"@deepseek-ai/dsh-client-ui-renderer": "0.
|
|
126
|
-
"@deepseek-ai/dsh-scope": "0.
|
|
127
|
-
"@deepseek-ai/dsh-session": "0.
|
|
128
|
-
"@deepseek-ai/dsh-session-projection": "0.
|
|
129
|
-
"@deepseek-ai/dsh-system-prompt": "0.
|
|
130
|
-
"@deepseek-ai/dsh-timeout": "0.
|
|
131
|
-
"@deepseek-ai/dsh-tools": "0.
|
|
132
|
-
"@deepseek-ai/dsh-typert-protocol": "0.
|
|
133
|
-
"@deepseek-ai/dsh-user-approval": "0.
|
|
134
|
-
"@deepseek-ai/dsh-util-values": "0.
|
|
110
|
+
"@deepseek-ai/dsh-agent": "0.2.0-rc.2",
|
|
111
|
+
"@deepseek-ai/dsh-api-remotes": "0.2.0-rc.2",
|
|
112
|
+
"@deepseek-ai/dsh-client-connection": "0.2.0-rc.2",
|
|
113
|
+
"@deepseek-ai/dsh-client-locale": "0.2.0-rc.2",
|
|
114
|
+
"@deepseek-ai/dsh-client-ui-plugin-manager": "0.2.0-rc.2",
|
|
115
|
+
"@deepseek-ai/dsh-attachment": "0.2.0-rc.2",
|
|
116
|
+
"@deepseek-ai/dsh-brand": "0.2.0-rc.2",
|
|
117
|
+
"@deepseek-ai/dsh-ptc-runtime": "0.2.0-rc.2",
|
|
118
|
+
"@deepseek-ai/dsh-invariants": "0.2.0-rc.2",
|
|
119
|
+
"@deepseek-ai/dsh-jobs": "0.2.0-rc.2",
|
|
120
|
+
"@deepseek-ai/dsh-llm": "0.2.0-rc.2",
|
|
121
|
+
"@deepseek-ai/dsh-jobs-local": "0.2.0-rc.2",
|
|
122
|
+
"@deepseek-ai/dsh-sandbox": "0.2.0-rc.2",
|
|
123
|
+
"@deepseek-ai/dsh-sandbox-policy": "0.2.0-rc.2",
|
|
124
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.2.0-rc.2",
|
|
125
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.2.0-rc.2",
|
|
126
|
+
"@deepseek-ai/dsh-scope": "0.2.0-rc.2",
|
|
127
|
+
"@deepseek-ai/dsh-session": "0.2.0-rc.2",
|
|
128
|
+
"@deepseek-ai/dsh-session-projection": "0.2.0-rc.2",
|
|
129
|
+
"@deepseek-ai/dsh-system-prompt": "0.2.0-rc.2",
|
|
130
|
+
"@deepseek-ai/dsh-timeout": "0.2.0-rc.2",
|
|
131
|
+
"@deepseek-ai/dsh-tools": "0.2.0-rc.2",
|
|
132
|
+
"@deepseek-ai/dsh-typert-protocol": "0.2.0-rc.2",
|
|
133
|
+
"@deepseek-ai/dsh-user-approval": "0.2.0-rc.2",
|
|
134
|
+
"@deepseek-ai/dsh-util-values": "0.2.0-rc.2",
|
|
135
135
|
"@deepseek-ai/schemastery": "~3.18.4",
|
|
136
136
|
"@types/node": "^22.0.0",
|
|
137
137
|
"@types/react": "~18.3.1",
|