dsh-mineru 0.1.13 → 0.1.14
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 +40 -3
- package/README.md +105 -11
- package/README.zh.md +76 -10
- package/RELEASE.md +2 -1
- package/lib/anchors.js +522 -0
- package/lib/artifacts.js +20 -0
- package/lib/chunk-merge.js +80 -0
- package/lib/client.js +27 -13
- package/lib/config.js +14 -11
- package/lib/http.js +15 -4
- package/lib/mineru-client.js +59 -6
- package/lib/page-ranges.js +204 -0
- package/lib/pdf-pages.js +151 -0
- package/lib/run-state.js +114 -0
- package/lib/skill.js +1 -1
- package/lib/tools.js +679 -26
- package/lib/types/client.d.ts +1 -1
- package/lib/types/index.d.ts +2 -0
- package/package.json +21 -10
package/lib/types/client.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* dsh-mineru browser bundle declarations: the Settings tab under
|
|
3
3
|
* Settings -> Plugins and the mineru_* tool-result cards.
|
|
4
4
|
*/
|
|
5
|
-
import type { ClientContext } from '@deepseek-ai/
|
|
5
|
+
import type { Context as ClientContext } from '@deepseek-ai/cordis';
|
|
6
6
|
|
|
7
7
|
export declare const inject: string[];
|
|
8
8
|
export declare function apply(ctx: ClientContext): void;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ import type { Context } from '@deepseek-ai/cordis';
|
|
|
6
6
|
import type z from '@deepseek-ai/schemastery';
|
|
7
7
|
|
|
8
8
|
export declare const name: 'mineru';
|
|
9
|
+
export declare const PLUGIN_VERSION: string;
|
|
9
10
|
export declare const inject: string[];
|
|
10
11
|
export declare const Config: z<object>;
|
|
12
|
+
export declare function settingsNamespace(ctx: Context | undefined): string;
|
|
11
13
|
export declare function apply(ctx: Context, config?: Record<string, unknown>): void;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
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.",
|
|
3
|
+
"version": "0.1.14",
|
|
4
|
+
"description": "dsh-mineru: MinerU 文档解析插件 for DeepSeek Harness — 多模态全格式 (PDF/Word/PPT/Excel/HTML/图片) → 结构化 Markdown. 填 Token 走精准解析 API, 留空走 Agent 轻量解析 API. 注意: 解析需把文件上传至 MinerU 远端(内容出网), 无完全离线模式, 涉密/不得出网材料请勿使用.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"types": "lib/types/index.d.ts",
|
|
@@ -42,13 +42,24 @@
|
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
44
|
"scripts": {
|
|
45
|
-
"test": "vitest run"
|
|
45
|
+
"test": "vitest run",
|
|
46
|
+
"test:compat": "vitest run tests/dsh-compat.spec.js"
|
|
46
47
|
},
|
|
47
48
|
"dependencies": {
|
|
48
49
|
"@deepseek-ai/schemastery": "^3.18.0"
|
|
49
50
|
},
|
|
50
51
|
"devDependencies": {
|
|
51
|
-
"
|
|
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"
|
|
52
63
|
},
|
|
53
64
|
"engines": {
|
|
54
65
|
"node": ">=18.0.0"
|
|
@@ -56,12 +67,12 @@
|
|
|
56
67
|
"peerDependencies": {
|
|
57
68
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
58
69
|
"@deepseek-ai/schemastery": "^3.18.0",
|
|
59
|
-
"@deepseek-ai/dsh-tools": "^0.1.5-rc.1",
|
|
60
|
-
"@deepseek-ai/dsh-settings": "^0.1.5-rc.1",
|
|
61
|
-
"@deepseek-ai/dsh-credentials": "^0.1.5-rc.1",
|
|
62
|
-
"@deepseek-ai/dsh-skill": "^0.1.5-rc.1",
|
|
63
|
-
"@deepseek-ai/dsh-host-webserver": "^0.1.5-rc.1",
|
|
64
|
-
"@deepseek-ai/dsh-llm": "^0.1.5-rc.1"
|
|
70
|
+
"@deepseek-ai/dsh-tools": "^0.1.5-rc.1 || ^0.2.0-rc.2",
|
|
71
|
+
"@deepseek-ai/dsh-settings": "^0.1.5-rc.1 || ^0.2.0-rc.2",
|
|
72
|
+
"@deepseek-ai/dsh-credentials": "^0.1.5-rc.1 || ^0.2.0-rc.2",
|
|
73
|
+
"@deepseek-ai/dsh-skill": "^0.1.5-rc.1 || ^0.2.0-rc.2",
|
|
74
|
+
"@deepseek-ai/dsh-host-webserver": "^0.1.5-rc.1 || ^0.2.0-rc.2",
|
|
75
|
+
"@deepseek-ai/dsh-llm": "^0.1.5-rc.1 || ^0.2.0-rc.2"
|
|
65
76
|
},
|
|
66
77
|
"license": "MIT",
|
|
67
78
|
"keywords": [
|