dsh-mineru 0.1.16 → 0.1.18
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 +13 -0
- package/README.md +1 -1
- package/README.zh.md +1 -1
- package/lib/client.js +33 -0
- package/lib/http.js +23 -11
- package/lib/mineru-client.js +13 -3
- package/lib/token-probe.js +47 -0
- package/package.json +101 -101
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
|
|
3
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
4
|
|
|
5
|
+
## [0.1.18] - 2026-11-11
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- The Settings card's **Test token** button failed for perfectly healthy tokens. It submitted the vendor's own demo PDF (`cdn-mineru.openxlab.org.cn/demo/example.pdf`) through URL mode with `vlm`, and MinerU now rejects exactly that combination at submit time with `-60017 retry limit reached (5 attempts), please replace the file`, so the card reported a token problem that did not exist. The probe is now a 1-page PDF embedded in the package (`lib/token-probe.js`): it is written to a temp file, uploaded through the precision API and polled to `done`, which exercises the credential plus the signed upload/poll/download chain in one call. The test costs about one page of quota, uses the configured `modelVersion` instead of a hard-coded `vlm`, and no longer depends on any third-party file staying online.
|
|
10
|
+
- MinerU error messages now keep the vendor's own words. `parsePayloadError` appends `(MinerU 原文:…)` to the mapped Chinese summary for both top-level `msg` and per-file `err_msg`, and the `-60017` text no longer claims the user must wait for a model upgrade — it names the retry limit and suggests switching the model version to `pipeline`.
|
|
11
|
+
|
|
12
|
+
## [0.1.17] - 2026-11-11
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
|
|
16
|
+
- The MinerU settings panel could be unreachable: the client only registered a `settings.plugins.tab` contribution, and a deployment whose composition ships no Plugins settings section never renders that slot, so the tab was dropped silently and Settings showed no MinerU entry at all. The panel now also registers a standalone `settings.section` (with a `settings.section.icon`), which every settings dialog renders; the tab registration stays for deployments that do have the Plugins section.
|
|
17
|
+
|
|
5
18
|
## [0.1.16] - 2026-11-11
|
|
6
19
|
|
|
7
20
|
### Fixed
|
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
|
|
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
|
|
package/lib/client.js
CHANGED
|
@@ -26,6 +26,7 @@ window.__ModuleLoader__.load({
|
|
|
26
26
|
"settings.retry": "重试",
|
|
27
27
|
"settings.loadFail": "加载配置失败: {err}",
|
|
28
28
|
"settings.title": "MinerU 文档解析",
|
|
29
|
+
"settings.nav": "MinerU 解析",
|
|
29
30
|
"badge.tokenOk": "Token 已配置",
|
|
30
31
|
"badge.tokenMissing": "未配置 Token",
|
|
31
32
|
"badge.current": "当前: {api}",
|
|
@@ -122,6 +123,7 @@ window.__ModuleLoader__.load({
|
|
|
122
123
|
"settings.retry": "Retry",
|
|
123
124
|
"settings.loadFail": "Failed to load settings: {err}",
|
|
124
125
|
"settings.title": "MinerU Document Parsing",
|
|
126
|
+
"settings.nav": "MinerU",
|
|
125
127
|
"badge.tokenOk": "Token configured",
|
|
126
128
|
"badge.tokenMissing": "No token",
|
|
127
129
|
"badge.current": "Current: {api}",
|
|
@@ -789,6 +791,37 @@ window.__ModuleLoader__.load({
|
|
|
789
791
|
} catch (e) { /* locale service unavailable: zh fallback stays */ }
|
|
790
792
|
}
|
|
791
793
|
|
|
794
|
+
// A deployment whose composition ships no Plugins settings section
|
|
795
|
+
// never renders `settings.plugins.tab`, so the registration below is
|
|
796
|
+
// silently dropped there. `settings.section` is the surface every
|
|
797
|
+
// settings dialog renders, so the panel gets a standalone entry of its
|
|
798
|
+
// own; the tab registration stays for deployments that do have the
|
|
799
|
+
// Plugins section.
|
|
800
|
+
ctx.slots.inject("settings.section.icon", () => ctx.slots.register({
|
|
801
|
+
name: "settings.section.icon",
|
|
802
|
+
id: "mineru",
|
|
803
|
+
order: 30,
|
|
804
|
+
label: () => T("settings.nav"),
|
|
805
|
+
}, ({ size }) => jsx("svg", {
|
|
806
|
+
width: size || 16,
|
|
807
|
+
height: size || 16,
|
|
808
|
+
viewBox: "0 0 24 24",
|
|
809
|
+
fill: "none",
|
|
810
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
811
|
+
children: [
|
|
812
|
+
jsx("path", { d: "M7 3h7l4 4v14H7z", stroke: "currentColor", strokeWidth: "1.7", strokeLinejoin: "round" }),
|
|
813
|
+
jsx("path", { d: "M14 3v4h4", stroke: "currentColor", strokeWidth: "1.7", strokeLinejoin: "round" }),
|
|
814
|
+
jsx("path", { d: "M9.5 13h5M9.5 17h5", stroke: "currentColor", strokeWidth: "1.7", strokeLinecap: "round" }),
|
|
815
|
+
],
|
|
816
|
+
})));
|
|
817
|
+
|
|
818
|
+
ctx.slots.inject("settings.section", () => ctx.slots.register({
|
|
819
|
+
name: "settings.section",
|
|
820
|
+
id: "mineru",
|
|
821
|
+
order: 30,
|
|
822
|
+
label: () => T("settings.nav"),
|
|
823
|
+
}, MineruSettingsTab));
|
|
824
|
+
|
|
792
825
|
ctx.slots.inject("settings.plugins.tab", () => ctx.slots.register({
|
|
793
826
|
name: "settings.plugins.tab",
|
|
794
827
|
id: "mineru",
|
package/lib/http.js
CHANGED
|
@@ -10,13 +10,15 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import { createReadStream, createWriteStream } from 'node:fs';
|
|
12
12
|
import { randomBytes } from 'node:crypto';
|
|
13
|
-
import { mkdir, rm, stat } from 'node:fs/promises';
|
|
13
|
+
import { mkdir, mkdtemp, rm, stat, writeFile } from 'node:fs/promises';
|
|
14
|
+
import { tmpdir } from 'node:os';
|
|
14
15
|
import { join } from 'node:path';
|
|
15
16
|
import { SettingsConflictError } from '@deepseek-ai/dsh-settings';
|
|
16
17
|
import { credentialRef } from '@deepseek-ai/dsh-credentials';
|
|
17
18
|
import { MineruError } from './mineru-client.js';
|
|
18
19
|
import { ArtifactError, inlineable, sanitizeFileName } from './artifacts.js';
|
|
19
20
|
import { DEFAULTS, SUPPORTED_EXTENSIONS, validateConfig } from './config.js';
|
|
21
|
+
import { TOKEN_PROBE_FILE_NAME, tokenProbePdf } from './token-probe.js';
|
|
20
22
|
|
|
21
23
|
const JSON_BODY_LIMIT = 1 << 20;
|
|
22
24
|
|
|
@@ -251,10 +253,15 @@ async function handle(req, res, deps) {
|
|
|
251
253
|
sendJson(res, 404, { ok: false, error: 'unknown route: ' + route });
|
|
252
254
|
}
|
|
253
255
|
/**
|
|
254
|
-
* Token connection test:
|
|
255
|
-
* precision API and polls
|
|
256
|
-
*
|
|
257
|
-
*
|
|
256
|
+
* Token connection test: uploads the embedded one-page probe PDF through the
|
|
257
|
+
* precision API and polls until done. Success proves the token works — and,
|
|
258
|
+
* because the probe travels the real upload path, also the signed-PUT upload
|
|
259
|
+
* and the batch poll. This is an explicit user action and consumes at most one
|
|
260
|
+
* page of the daily quota.
|
|
261
|
+
*
|
|
262
|
+
* The probe is embedded rather than fetched from a vendor demo URL: URL mode
|
|
263
|
+
* made the test fail with `-60017 retry limit reached (5 attempts)` whenever
|
|
264
|
+
* the remote fixture was unavailable, which read as "your token is broken".
|
|
258
265
|
*/
|
|
259
266
|
async function testToken(deps) {
|
|
260
267
|
const cfg = deps.config();
|
|
@@ -262,13 +269,12 @@ async function testToken(deps) {
|
|
|
262
269
|
if (!client.precisionEnabled()) {
|
|
263
270
|
return { status: 400, body: { ok: false, error: '未配置 MinerU Token: 请先在上方填写并保存 Token.' } };
|
|
264
271
|
}
|
|
265
|
-
const demo = 'https://cdn-mineru.openxlab.org.cn/demo/example.pdf';
|
|
266
272
|
const opts = {
|
|
267
273
|
language: cfg.language,
|
|
268
274
|
enableTable: true,
|
|
269
275
|
enableFormula: true,
|
|
270
276
|
isOcr: false,
|
|
271
|
-
modelVersion:
|
|
277
|
+
modelVersion: cfg.modelVersion,
|
|
272
278
|
pageRanges: undefined,
|
|
273
279
|
pageRange: undefined,
|
|
274
280
|
extraFormats: [],
|
|
@@ -279,19 +285,24 @@ async function testToken(deps) {
|
|
|
279
285
|
};
|
|
280
286
|
const controller = new AbortController();
|
|
281
287
|
const timer = setTimeout(() => controller.abort(), 185000);
|
|
288
|
+
let probeDir;
|
|
282
289
|
try {
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
290
|
+
probeDir = await mkdtemp(join(tmpdir(), 'dsh-mineru-token-test-'));
|
|
291
|
+
const filePath = join(probeDir, TOKEN_PROBE_FILE_NAME);
|
|
292
|
+
await writeFile(filePath, tokenProbePdf());
|
|
293
|
+
const outcome = await client.submitAndWaitFile({
|
|
294
|
+
filePath,
|
|
295
|
+
fileName: TOKEN_PROBE_FILE_NAME,
|
|
286
296
|
opts,
|
|
287
297
|
api: 'precision',
|
|
288
298
|
signal: controller.signal,
|
|
289
299
|
});
|
|
300
|
+
const ref = outcome.taskId ? 'taskId=' + outcome.taskId : 'batchId=' + outcome.batchId;
|
|
290
301
|
return {
|
|
291
302
|
status: 200,
|
|
292
303
|
body: {
|
|
293
304
|
ok: true,
|
|
294
|
-
message: 'Token
|
|
305
|
+
message: 'Token 有效:测试 PDF 上传并解析成功(' + ref + ')。本次测试消耗约 1 页精准解析额度。',
|
|
295
306
|
},
|
|
296
307
|
};
|
|
297
308
|
} catch (err) {
|
|
@@ -299,6 +310,7 @@ async function testToken(deps) {
|
|
|
299
310
|
return { status: 400, body: { ok: false, error: message } };
|
|
300
311
|
} finally {
|
|
301
312
|
clearTimeout(timer);
|
|
313
|
+
if (probeDir !== undefined) await rm(probeDir, { recursive: true, force: true }).catch(() => {});
|
|
302
314
|
}
|
|
303
315
|
}
|
|
304
316
|
|
package/lib/mineru-client.js
CHANGED
|
@@ -67,7 +67,7 @@ const ERROR_MESSAGES = Object.freeze({
|
|
|
67
67
|
'-60013': 'MinerU 没有权限访问该任务:只能访问自己提交的任务。',
|
|
68
68
|
'-60014': 'MinerU 任务正在运行中,暂不支持删除。',
|
|
69
69
|
'-60015': 'MinerU 文件转换失败:可以手动转为 PDF 再上传。',
|
|
70
|
-
'-60017': 'MinerU
|
|
70
|
+
'-60017': 'MinerU 对这份文件连续重试 5 次仍失败(-60017):请换一份文件或稍后重试;若换文件依旧报错,多为 MinerU 服务端模型临时故障,可把「精准解析模型版本」改成 pipeline 再试。',
|
|
71
71
|
'-60021': 'MinerU 读取文件页数失败,请稍后重试。',
|
|
72
72
|
'-60016': 'MinerU 文件转换失败:可以尝试其他导出格式或重试。',
|
|
73
73
|
'-60018': 'MinerU 每日解析任务数量已达上限,请明日再试。',
|
|
@@ -599,13 +599,23 @@ export class MineruClient {
|
|
|
599
599
|
if (payload && typeof payload === 'object') {
|
|
600
600
|
const code = payload.code;
|
|
601
601
|
const data = payload.data;
|
|
602
|
+
// Keep the vendor's own words: the mapped Chinese line is a summary, and
|
|
603
|
+
// `msg` often carries the actionable half ("please replace the file",
|
|
604
|
+
// "quota exhausted", ...) that the summary drops.
|
|
605
|
+
const vendor = typeof payload.msg === 'string' ? payload.msg.trim() : '';
|
|
602
606
|
if (code !== undefined && code !== 0 && code !== '0') {
|
|
603
607
|
const mapped = messageForCode(code) ?? (data?.err_code !== undefined ? messageForCode(data.err_code) : undefined);
|
|
604
|
-
|
|
608
|
+
const base = mapped ?? ('MinerU 接口错误:' + (vendor || String(code)));
|
|
609
|
+
const message = mapped !== undefined && vendor !== '' && !mapped.includes(vendor) ? base + '(MinerU 原文:' + vendor + ')' : base;
|
|
610
|
+
return new MineruError(message, 'MINERU_API', { rawCode: String(code), api });
|
|
605
611
|
}
|
|
606
612
|
if (data && typeof data === 'object' && data.err_code !== undefined) {
|
|
607
613
|
const mapped = messageForCode(data.err_code);
|
|
608
|
-
|
|
614
|
+
const rawErr = typeof data.err_msg === 'string' ? data.err_msg.trim() : '';
|
|
615
|
+
if (mapped) {
|
|
616
|
+
const message = rawErr !== '' && !mapped.includes(rawErr) ? mapped + '(MinerU 原文:' + rawErr + ')' : mapped;
|
|
617
|
+
return new MineruError(message, 'MINERU_API', { rawCode: String(data.err_code), api });
|
|
618
|
+
}
|
|
609
619
|
}
|
|
610
620
|
}
|
|
611
621
|
return new MineruError('MinerU 返回异常:' + String(payload ?? '').slice(0, 400), 'MINERU_API', { api });
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Embedded one-page probe PDF for the Settings card "test token" action.
|
|
3
|
+
*
|
|
4
|
+
* Historically the test submitted the vendor demo URL
|
|
5
|
+
* (`cdn-mineru.openxlab.org.cn/demo/example.pdf`) through URL mode. That
|
|
6
|
+
* fixture now answers `-60017 retry limit reached (5 attempts), please replace
|
|
7
|
+
* the file`, so a perfectly healthy token reported a failed test, and the test
|
|
8
|
+
* depended on a third-party file staying online.
|
|
9
|
+
*
|
|
10
|
+
* Shipping the bytes keeps the probe hermetic: write it to a temp file, upload
|
|
11
|
+
* it through the precision API, poll to `done`. That exercises token validity,
|
|
12
|
+
* the signed-PUT upload, the batch poll and the zip download in one call, and
|
|
13
|
+
* costs one page of quota instead of depending on any remote fixture.
|
|
14
|
+
*
|
|
15
|
+
* @module dsh-mineru/token-probe
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
/** Base64 of a single-page PDF with four lines of Helvetica text. */
|
|
19
|
+
const PROBE_PDF_BASE64 = [
|
|
20
|
+
'JVBERi0xLjQKJeLjz9MKMSAwIG9iago8PCAvVHlwZSAvQ2F0YWxvZyAvUGFnZXMgMiAwIFIgPj',
|
|
21
|
+
'4KZW5kb2JqCjIgMCBvYmoKPDwgL1R5cGUgL1BhZ2VzIC9LaWRzIFszIDAgUl0gL0NvdW50IDEg',
|
|
22
|
+
'Pj4KZW5kb2JqCjMgMCBvYmoKPDwgL1R5cGUgL1BhZ2UgL1BhcmVudCAyIDAgUiAvTWVkaWFCb3',
|
|
23
|
+
'ggWzAgMCA1OTUgODQyXSAvUmVzb3VyY2VzIDw8IC9Gb250IDw8IC9GMSA0IDAgUiA+PiA+PiAv',
|
|
24
|
+
'Q29udGVudHMgNSAwIFIgPj4KZW5kb2JqCjQgMCBvYmoKPDwgL1R5cGUgL0ZvbnQgL1N1YnR5cG',
|
|
25
|
+
'UgL1R5cGUxIC9CYXNlRm9udCAvSGVsdmV0aWNhID4+CmVuZG9iago1IDAgb2JqCjw8IC9MZW5n',
|
|
26
|
+
'dGggMjc5ID4+CnN0cmVhbQpCVAovRjEgMTggVGYKNzIgNzIwIFRkCihkc2gtbWluZXJ1IHRva2',
|
|
27
|
+
'VuIHRlc3QpIFRqCjAgLTI4IFRkCi9GMSAxMSBUZgooVGhpcyBvbmUtcGFnZSBQREYgaXMgZ2Vu',
|
|
28
|
+
'ZXJhdGVkIGJ5IHRoZSBwbHVnaW4gYW5kIHBhcnNlZCB0aHJvdWdoIHRoZSkgVGoKMCAtMTYgVG',
|
|
29
|
+
'QKKE1pbmVyVSBwcmVjaXNpb24gQVBJLiBBIHN1Y2Nlc3NmdWwgcGFyc2UgcHJvdmVzIHRoZSB0',
|
|
30
|
+
'b2tlbiwgdGhlIHVwbG9hZCkgVGoKMCAtMTYgVGQKKHBhdGggYW5kIHRoZSBwb2xsaW5nIGxvb3',
|
|
31
|
+
'AgYWxsIHdvcmsuKSBUagpFVAplbmRzdHJlYW0KZW5kb2JqCnhyZWYKMCA2CjAwMDAwMDAwMDAg',
|
|
32
|
+
'NjU1MzUgZiAKMDAwMDAwMDAxNSAwMDAwMCBuIAowMDAwMDAwMDY0IDAwMDAwIG4gCjAwMDAwMD',
|
|
33
|
+
'AxMjEgMDAwMDAgbiAKMDAwMDAwMDI0NyAwMDAwMCBuIAowMDAwMDAwMzE3IDAwMDAwIG4gCnRy',
|
|
34
|
+
'YWlsZXIKPDwgL1NpemUgNiAvUm9vdCAxIDAgUiA+PgpzdGFydHhyZWYKNjQ2CiUlRU9GCg==',
|
|
35
|
+
].join('');
|
|
36
|
+
|
|
37
|
+
/** File name used for the uploaded probe; also the artifact stem MinerU reports. */
|
|
38
|
+
export const TOKEN_PROBE_FILE_NAME = 'dsh-mineru-token-test.pdf';
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* A fresh copy of the probe bytes. A Buffer (not a string) so the upload path
|
|
42
|
+
* can stream it unchanged and callers cannot mutate the shared constant.
|
|
43
|
+
* @returns {Buffer}
|
|
44
|
+
*/
|
|
45
|
+
export function tokenProbePdf() {
|
|
46
|
+
return Buffer.from(PROBE_PDF_BASE64, 'base64');
|
|
47
|
+
}
|
package/package.json
CHANGED
|
@@ -1,101 +1,101 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "dsh-mineru",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "dsh-mineru: MinerU 文档解析插件 for DeepSeek Harness — 多模态全格式 (PDF/Word/PPT/Excel/HTML/图片) → 结构化 Markdown. 填 Token 走精准解析 API, 留空走 Agent 轻量解析 API. 注意: 解析需把文件上传至 MinerU 远端(内容出网), 无完全离线模式, 涉密/不得出网材料请勿使用.",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "lib/index.js",
|
|
7
|
-
"types": "lib/types/index.d.ts",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"types": "./lib/types/index.d.ts",
|
|
11
|
-
"default": "./lib/index.js"
|
|
12
|
-
},
|
|
13
|
-
"./client": {
|
|
14
|
-
"types": "./lib/types/client.d.ts",
|
|
15
|
-
"default": "./lib/client.js"
|
|
16
|
-
},
|
|
17
|
-
"./package.json": "./package.json"
|
|
18
|
-
},
|
|
19
|
-
"files": [
|
|
20
|
-
"lib/",
|
|
21
|
-
"cordis.patch.yml",
|
|
22
|
-
"README.md",
|
|
23
|
-
"README.zh.md",
|
|
24
|
-
"CHANGELOG.md",
|
|
25
|
-
"RELEASE.md",
|
|
26
|
-
"CONTRIBUTING.md",
|
|
27
|
-
"LICENSE"
|
|
28
|
-
],
|
|
29
|
-
"dsh": {
|
|
30
|
-
"bundle": {
|
|
31
|
-
"patch": "./cordis.patch.yml"
|
|
32
|
-
},
|
|
33
|
-
"client": {
|
|
34
|
-
"inject": [
|
|
35
|
-
"slots",
|
|
36
|
-
"connection",
|
|
37
|
-
"sessions",
|
|
38
|
-
"conversation",
|
|
39
|
-
"locale"
|
|
40
|
-
],
|
|
41
|
-
"platform": "web"
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
"scripts": {
|
|
45
|
-
"test": "vitest run",
|
|
46
|
-
"test:compat": "vitest run tests/dsh-compat.spec.js"
|
|
47
|
-
},
|
|
48
|
-
"dependencies": {
|
|
49
|
-
"@deepseek-ai/schemastery": "^3.18.0"
|
|
50
|
-
},
|
|
51
|
-
"devDependencies": {
|
|
52
|
-
"@deepseek-ai/cordis": "4.0.5",
|
|
53
|
-
"@deepseek-ai/dsh-agent": "0.2.0-rc.2",
|
|
54
|
-
"@deepseek-ai/dsh-app-boot": "0.2.0-rc.2",
|
|
55
|
-
"@deepseek-ai/dsh-credentials": "0.2.0-rc.2",
|
|
56
|
-
"@deepseek-ai/dsh-host-webserver": "0.2.0-rc.2",
|
|
57
|
-
"@deepseek-ai/dsh-llm": "0.2.0-rc.2",
|
|
58
|
-
"@deepseek-ai/dsh-scope": "0.2.0-rc.2",
|
|
59
|
-
"@deepseek-ai/dsh-settings": "0.2.0-rc.2",
|
|
60
|
-
"@deepseek-ai/dsh-skill": "0.2.0-rc.2",
|
|
61
|
-
"@deepseek-ai/dsh-tools": "0.2.0-rc.2",
|
|
62
|
-
"vitest": "^4.1.11"
|
|
63
|
-
},
|
|
64
|
-
"engines": {
|
|
65
|
-
"node": ">=18.0.0"
|
|
66
|
-
},
|
|
67
|
-
"peerDependencies": {
|
|
68
|
-
"@deepseek-ai/cordis": "^4.0.1",
|
|
69
|
-
"@deepseek-ai/schemastery": "^3.18.0",
|
|
70
|
-
"@deepseek-ai/dsh-tools": "^0.1.5-rc.1 || ^0.2.0-rc.1",
|
|
71
|
-
"@deepseek-ai/dsh-settings": "^0.1.5-rc.1 || ^0.2.0-rc.1",
|
|
72
|
-
"@deepseek-ai/dsh-credentials": "^0.1.5-rc.1 || ^0.2.0-rc.1",
|
|
73
|
-
"@deepseek-ai/dsh-skill": "^0.1.5-rc.1 || ^0.2.0-rc.1",
|
|
74
|
-
"@deepseek-ai/dsh-host-webserver": "^0.1.5-rc.1 || ^0.2.0-rc.1",
|
|
75
|
-
"@deepseek-ai/dsh-llm": "^0.1.5-rc.1 || ^0.2.0-rc.1"
|
|
76
|
-
},
|
|
77
|
-
"license": "MIT",
|
|
78
|
-
"keywords": [
|
|
79
|
-
"deepseek-harness",
|
|
80
|
-
"dsh",
|
|
81
|
-
"dsh-plugin",
|
|
82
|
-
"mineru",
|
|
83
|
-
"document-parsing",
|
|
84
|
-
"pdf",
|
|
85
|
-
"ocr",
|
|
86
|
-
"markdown",
|
|
87
|
-
"multimodal"
|
|
88
|
-
],
|
|
89
|
-
"repository": {
|
|
90
|
-
"type": "git",
|
|
91
|
-
"url": "git+https://github.com/Lee-Hilex/dsh-mineru.git"
|
|
92
|
-
},
|
|
93
|
-
"homepage": "https://github.com/Lee-Hilex/dsh-mineru#readme",
|
|
94
|
-
"bugs": {
|
|
95
|
-
"url": "https://github.com/Lee-Hilex/dsh-mineru/issues"
|
|
96
|
-
},
|
|
97
|
-
"author": {
|
|
98
|
-
"name": "Lee-Hilex",
|
|
99
|
-
"email": "niuniu910417@163.com"
|
|
100
|
-
}
|
|
101
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "dsh-mineru",
|
|
3
|
+
"version": "0.1.18",
|
|
4
|
+
"description": "dsh-mineru: MinerU 文档解析插件 for DeepSeek Harness — 多模态全格式 (PDF/Word/PPT/Excel/HTML/图片) → 结构化 Markdown. 填 Token 走精准解析 API, 留空走 Agent 轻量解析 API. 注意: 解析需把文件上传至 MinerU 远端(内容出网), 无完全离线模式, 涉密/不得出网材料请勿使用.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "lib/index.js",
|
|
7
|
+
"types": "lib/types/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./lib/types/index.d.ts",
|
|
11
|
+
"default": "./lib/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./client": {
|
|
14
|
+
"types": "./lib/types/client.d.ts",
|
|
15
|
+
"default": "./lib/client.js"
|
|
16
|
+
},
|
|
17
|
+
"./package.json": "./package.json"
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"lib/",
|
|
21
|
+
"cordis.patch.yml",
|
|
22
|
+
"README.md",
|
|
23
|
+
"README.zh.md",
|
|
24
|
+
"CHANGELOG.md",
|
|
25
|
+
"RELEASE.md",
|
|
26
|
+
"CONTRIBUTING.md",
|
|
27
|
+
"LICENSE"
|
|
28
|
+
],
|
|
29
|
+
"dsh": {
|
|
30
|
+
"bundle": {
|
|
31
|
+
"patch": "./cordis.patch.yml"
|
|
32
|
+
},
|
|
33
|
+
"client": {
|
|
34
|
+
"inject": [
|
|
35
|
+
"slots",
|
|
36
|
+
"connection",
|
|
37
|
+
"sessions",
|
|
38
|
+
"conversation",
|
|
39
|
+
"locale"
|
|
40
|
+
],
|
|
41
|
+
"platform": "web"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"scripts": {
|
|
45
|
+
"test": "vitest run",
|
|
46
|
+
"test:compat": "vitest run tests/dsh-compat.spec.js"
|
|
47
|
+
},
|
|
48
|
+
"dependencies": {
|
|
49
|
+
"@deepseek-ai/schemastery": "^3.18.0"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"@deepseek-ai/cordis": "4.0.5",
|
|
53
|
+
"@deepseek-ai/dsh-agent": "0.2.0-rc.2",
|
|
54
|
+
"@deepseek-ai/dsh-app-boot": "0.2.0-rc.2",
|
|
55
|
+
"@deepseek-ai/dsh-credentials": "0.2.0-rc.2",
|
|
56
|
+
"@deepseek-ai/dsh-host-webserver": "0.2.0-rc.2",
|
|
57
|
+
"@deepseek-ai/dsh-llm": "0.2.0-rc.2",
|
|
58
|
+
"@deepseek-ai/dsh-scope": "0.2.0-rc.2",
|
|
59
|
+
"@deepseek-ai/dsh-settings": "0.2.0-rc.2",
|
|
60
|
+
"@deepseek-ai/dsh-skill": "0.2.0-rc.2",
|
|
61
|
+
"@deepseek-ai/dsh-tools": "0.2.0-rc.2",
|
|
62
|
+
"vitest": "^4.1.11"
|
|
63
|
+
},
|
|
64
|
+
"engines": {
|
|
65
|
+
"node": ">=18.0.0"
|
|
66
|
+
},
|
|
67
|
+
"peerDependencies": {
|
|
68
|
+
"@deepseek-ai/cordis": "^4.0.1",
|
|
69
|
+
"@deepseek-ai/schemastery": "^3.18.0",
|
|
70
|
+
"@deepseek-ai/dsh-tools": "^0.1.5-rc.1 || ^0.2.0-rc.1",
|
|
71
|
+
"@deepseek-ai/dsh-settings": "^0.1.5-rc.1 || ^0.2.0-rc.1",
|
|
72
|
+
"@deepseek-ai/dsh-credentials": "^0.1.5-rc.1 || ^0.2.0-rc.1",
|
|
73
|
+
"@deepseek-ai/dsh-skill": "^0.1.5-rc.1 || ^0.2.0-rc.1",
|
|
74
|
+
"@deepseek-ai/dsh-host-webserver": "^0.1.5-rc.1 || ^0.2.0-rc.1",
|
|
75
|
+
"@deepseek-ai/dsh-llm": "^0.1.5-rc.1 || ^0.2.0-rc.1"
|
|
76
|
+
},
|
|
77
|
+
"license": "MIT",
|
|
78
|
+
"keywords": [
|
|
79
|
+
"deepseek-harness",
|
|
80
|
+
"dsh",
|
|
81
|
+
"dsh-plugin",
|
|
82
|
+
"mineru",
|
|
83
|
+
"document-parsing",
|
|
84
|
+
"pdf",
|
|
85
|
+
"ocr",
|
|
86
|
+
"markdown",
|
|
87
|
+
"multimodal"
|
|
88
|
+
],
|
|
89
|
+
"repository": {
|
|
90
|
+
"type": "git",
|
|
91
|
+
"url": "git+https://github.com/Lee-Hilex/dsh-mineru.git"
|
|
92
|
+
},
|
|
93
|
+
"homepage": "https://github.com/Lee-Hilex/dsh-mineru#readme",
|
|
94
|
+
"bugs": {
|
|
95
|
+
"url": "https://github.com/Lee-Hilex/dsh-mineru/issues"
|
|
96
|
+
},
|
|
97
|
+
"author": {
|
|
98
|
+
"name": "Lee-Hilex",
|
|
99
|
+
"email": "niuniu910417@163.com"
|
|
100
|
+
}
|
|
101
|
+
}
|