dsh-file-convert 0.4.3 → 0.4.4
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/README.md +3 -1
- package/README.zh-CN.md +3 -1
- package/package.json +10 -6
package/README.md
CHANGED
|
@@ -6,6 +6,8 @@ Convert images, PDFs and data files directly inside your DSH agent sessions —
|
|
|
6
6
|
|
|
7
7
|
> **Unofficial community plugin.** Not affiliated with or endorsed by DeepSeek.
|
|
8
8
|
|
|
9
|
+
> **Compatibility:** v0.4.4+ targets DeepSeek Harness 0.1.2-rc.1 and its canonical-output tool API. Node.js 22.13 or newer is required.
|
|
10
|
+
|
|
9
11
|
## Why
|
|
10
12
|
|
|
11
13
|
Agents constantly need file conversions: "turn this PDF into images", "give me that JSON as YAML", "convert all JPGs in this folder to WebP". Instead of shelling out or pasting data around, `dsh-file-convert` gives your agent seven purpose-built tools backed by battle-tested local libraries.
|
|
@@ -209,7 +211,7 @@ All 26 conversions with their live availability on *this* machine — unavailabl
|
|
|
209
211
|
```sh
|
|
210
212
|
npm install
|
|
211
213
|
npm run build # tsc -> lib/
|
|
212
|
-
npm test # vitest,
|
|
214
|
+
npm test # vitest, 73 tests (plus a few environment-gated suites)
|
|
213
215
|
npm run smoke # end-to-end against lib/
|
|
214
216
|
```
|
|
215
217
|
|
package/README.zh-CN.md
CHANGED
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
> **非官方社区插件。** 与 DeepSeek 官方无隶属关系。
|
|
8
8
|
|
|
9
|
+
> **兼容性:** v0.4.4 起正式适配 DeepSeek Harness 0.1.2-rc.1 及其规范输出工具 API,需要 Node.js 22.13 或更高版本。
|
|
10
|
+
|
|
9
11
|
## 为什么做这个
|
|
10
12
|
|
|
11
13
|
Agent 日常需要各种格式转换:"把这个 PDF 转成图片"、"把这个 JSON 变成 YAML"、"把文件夹里所有 JPG 转成 WebP"。`dsh-file-convert` 提供七个专用 tool,背后是久经考验的本地库,你只需用自然语言提需求。
|
|
@@ -189,7 +191,7 @@ PDF 走 Ghostscript 三档预设(printer/ebook/screen)自动迭代:某档
|
|
|
189
191
|
```sh
|
|
190
192
|
npm install
|
|
191
193
|
npm run build # tsc -> lib/
|
|
192
|
-
npm test # vitest,
|
|
194
|
+
npm test # vitest,73 项测试(另有个位数按环境门控的套件)
|
|
193
195
|
npm run smoke # 针对 lib/ 的端到端冒烟测试
|
|
194
196
|
```
|
|
195
197
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-file-convert",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
4
4
|
"description": "Local-first file conversion for DeepSeek Harness - images, PDF, data, audio/video and office documents. No API keys, no uploads, no token cost.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"homepage": "https://github.com/zzy-12345678/dsh-file-convert#readme",
|
|
16
16
|
"engines": {
|
|
17
|
-
"node": ">=
|
|
17
|
+
"node": ">=22.13.0"
|
|
18
18
|
},
|
|
19
19
|
"files": [
|
|
20
20
|
"lib",
|
|
@@ -42,19 +42,23 @@
|
|
|
42
42
|
"local-first"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@deepseek-ai/
|
|
46
|
-
"@deepseek-ai/dsh-tools": "0.0.1-rc.1",
|
|
47
|
-
"@deepseek-ai/schemastery": "^3.18.1",
|
|
45
|
+
"@deepseek-ai/schemastery": "^3.18.2",
|
|
48
46
|
"@napi-rs/canvas": "^1.0.8",
|
|
49
47
|
"csv-parse": "^7.0.2",
|
|
50
48
|
"csv-stringify": "^6.8.3",
|
|
51
49
|
"file-type": "^22.0.2",
|
|
52
50
|
"js-yaml": "^4.1.0",
|
|
53
|
-
"pdfjs-dist": "^6.
|
|
51
|
+
"pdfjs-dist": "^6.3.289",
|
|
54
52
|
"sharp": "^0.35.4",
|
|
55
53
|
"tesseract.js": "^7.0.0"
|
|
56
54
|
},
|
|
55
|
+
"peerDependencies": {
|
|
56
|
+
"@deepseek-ai/cordis": "^4.0.2",
|
|
57
|
+
"@deepseek-ai/dsh-tools": "^0.1.2-rc.1"
|
|
58
|
+
},
|
|
57
59
|
"devDependencies": {
|
|
60
|
+
"@deepseek-ai/cordis": "^4.0.2",
|
|
61
|
+
"@deepseek-ai/dsh-tools": "^0.1.2-rc.1",
|
|
58
62
|
"@types/js-yaml": "^4.0.9",
|
|
59
63
|
"@types/node": "^22.0.0",
|
|
60
64
|
"docx": "^9.7.1",
|