dsh-file-convert 0.4.4 → 0.4.6

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 CHANGED
@@ -6,7 +6,7 @@ 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.
9
+ > **Compatibility:** v0.4.6+ targets DeepSeek Harness 0.2.0-rc.2 and its canonical-output tool API. Node.js `^22.19.0 || >=24.0.0` is required.
10
10
 
11
11
  ## Why
12
12
 
@@ -211,10 +211,12 @@ All 26 conversions with their live availability on *this* machine — unavailabl
211
211
  ```sh
212
212
  npm install
213
213
  npm run build # tsc -> lib/
214
- npm test # vitest, 73 tests (plus a few environment-gated suites)
214
+ npm test # vitest, 77 tests (plus environment-gated suites)
215
215
  npm run smoke # end-to-end against lib/
216
216
  ```
217
217
 
218
+ Local development pulls the dsh-tools peer closure into `devDependencies` so typecheck and vitest can load the 0.1.5 tool registry. End users of the published plugin do not install these — the host profile provides them.
219
+
218
220
  Add a conversion = add one capability row + implement it in a converter. Add a backend = implement the `Converter` interface and register it in `createRouter()`.
219
221
 
220
222
  ## Fidelity & safety expectations
@@ -227,10 +229,10 @@ Add a conversion = add one capability row + implement it in a converter. Add a b
227
229
 
228
230
  | Component | Verified version |
229
231
  | --- | --- |
230
- | DeepSeek Harness | 0.1.1-rc.2 |
231
- | @deepseek-ai/dsh-tools | 0.0.1-rc.1 |
232
- | @deepseek-ai/cordis | 4.0.1 |
233
- | Node.js | >= 20 (CI covers 22) |
232
+ | DeepSeek Harness | 0.2.0-rc.2 |
233
+ | @deepseek-ai/dsh-tools | 0.2.0-rc.2 |
234
+ | @deepseek-ai/cordis | 4.0.4 |
235
+ | Node.js | `^22.19.0 \|\| >=24.0.0` (CI covers 22) |
234
236
 
235
237
  DSH is a developer preview and its APIs will move - the plugin keeps all DSH imports inside a thin glue layer so adapting stays cheap.
236
238
 
package/README.zh-CN.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  > **非官方社区插件。** 与 DeepSeek 官方无隶属关系。
8
8
 
9
- > **兼容性:** v0.4.4 起正式适配 DeepSeek Harness 0.1.2-rc.1 及其规范输出工具 API,需要 Node.js 22.13 或更高版本。
9
+ > **兼容性:** v0.4.6 起正式适配 DeepSeek Harness 0.2.0-rc.2 及其规范输出工具 API,需要 Node.js `^22.19.0 || >=24.0.0`。
10
10
 
11
11
  ## 为什么做这个
12
12
 
@@ -191,10 +191,12 @@ PDF 走 Ghostscript 三档预设(printer/ebook/screen)自动迭代:某档
191
191
  ```sh
192
192
  npm install
193
193
  npm run build # tsc -> lib/
194
- npm test # vitest,73 项测试(另有个位数按环境门控的套件)
194
+ npm test # vitest,77 项测试(另有个位数按环境门控的套件)
195
195
  npm run smoke # 针对 lib/ 的端到端冒烟测试
196
196
  ```
197
197
 
198
+ 本地开发会在 `devDependencies` 里拉齐 dsh-tools 的 peer 闭包,便于 typecheck 与 vitest 加载 0.1.5 工具注册表。最终用户安装插件时不需要这些——由宿主 profile 提供。
199
+
198
200
  加一种转换 = 在 converter 的能力表里加一行数据并实现它。加一类后端 = 实现 `Converter` 接口并在 `createRouter()` 注册。
199
201
 
200
202
  ## 保真度与安全预期
@@ -207,10 +209,10 @@ npm run smoke # 针对 lib/ 的端到端冒烟测试
207
209
 
208
210
  | 组件 | 已验证版本 |
209
211
  | --- | --- |
210
- | DeepSeek Harness | 0.1.1-rc.2 |
211
- | @deepseek-ai/dsh-tools | 0.0.1-rc.1 |
212
- | @deepseek-ai/cordis | 4.0.1 |
213
- | Node.js | ≥ 20(CI 覆盖 22) |
212
+ | DeepSeek Harness | 0.2.0-rc.2 |
213
+ | @deepseek-ai/dsh-tools | 0.2.0-rc.2 |
214
+ | @deepseek-ai/cordis | 4.0.4 |
215
+ | Node.js | `^22.19.0 \|\| >=24.0.0`(CI 覆盖 22) |
214
216
 
215
217
  DSH 仍处于 developer preview,API 可能变化——插件把 DSH 依赖隔离在薄胶水层,适配成本被刻意压低。
216
218
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-file-convert",
3
- "version": "0.4.4",
3
+ "version": "0.4.6",
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": ">=22.13.0"
17
+ "node": "^22.19.0 || >=24.0.0"
18
18
  },
19
19
  "files": [
20
20
  "lib",
@@ -42,7 +42,7 @@
42
42
  "local-first"
43
43
  ],
44
44
  "dependencies": {
45
- "@deepseek-ai/schemastery": "^3.18.2",
45
+ "@deepseek-ai/schemastery": "~3.18.4",
46
46
  "@napi-rs/canvas": "^1.0.8",
47
47
  "csv-parse": "^7.0.2",
48
48
  "csv-stringify": "^6.8.3",
@@ -53,12 +53,25 @@
53
53
  "tesseract.js": "^7.0.0"
54
54
  },
55
55
  "peerDependencies": {
56
- "@deepseek-ai/cordis": "^4.0.2",
57
- "@deepseek-ai/dsh-tools": "^0.1.2-rc.1"
56
+ "@deepseek-ai/cordis": "~4.0.4",
57
+ "@deepseek-ai/dsh-tools": "0.2.0-rc.2"
58
58
  },
59
59
  "devDependencies": {
60
- "@deepseek-ai/cordis": "^4.0.2",
61
- "@deepseek-ai/dsh-tools": "^0.1.2-rc.1",
60
+ "@deepseek-ai/cordis": "~4.0.4",
61
+ "@deepseek-ai/dsh-agent": "0.2.0-rc.2",
62
+ "@deepseek-ai/dsh-brand": "0.2.0-rc.2",
63
+ "@deepseek-ai/dsh-invariants": "0.2.0-rc.2",
64
+ "@deepseek-ai/dsh-llm": "0.2.0-rc.2",
65
+ "@deepseek-ai/dsh-ptc-runtime": "0.2.0-rc.2",
66
+ "@deepseek-ai/dsh-sandbox": "0.2.0-rc.2",
67
+ "@deepseek-ai/dsh-sandbox-policy": "0.2.0-rc.2",
68
+ "@deepseek-ai/dsh-scope": "0.2.0-rc.2",
69
+ "@deepseek-ai/dsh-session": "0.2.0-rc.2",
70
+ "@deepseek-ai/dsh-session-projection": "0.2.0-rc.2",
71
+ "@deepseek-ai/dsh-system-prompt": "0.2.0-rc.2",
72
+ "@deepseek-ai/dsh-tools": "0.2.0-rc.2",
73
+ "@deepseek-ai/dsh-user-approval": "0.2.0-rc.2",
74
+ "@deepseek-ai/dsh-util-values": "0.2.0-rc.2",
62
75
  "@types/js-yaml": "^4.0.9",
63
76
  "@types/node": "^22.0.0",
64
77
  "docx": "^9.7.1",