dsh-tool-vision 0.10.1 → 0.10.3

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
@@ -1,4 +1,12 @@
1
1
  # dsh-tool-vision
2
+
3
+ ## DSH 0.2.1-rc.2
4
+
5
+ Supports DSH 0.2.1-rc.2, including explicit prerelease engines.dsh and peer ranges. This host update adds DeepSeek V4.1 Flash 1017 and Search/Fetch APIs; the plugin APIs used here remain unchanged. Existing reasoning settings and the opt-in augmentation policy are preserved.
6
+
7
+ ## DSH 0.2.1-rc.1
8
+
9
+ Supports DSH 0.2.1-rc.1. Compatibility is declared through `engines.dsh` and matching peer ranges, including this exact prerelease. The existing 0.2.0-rc.2 support is retained.
2
10
 
3
11
  The plugin follows the DSH language setting (Chinese and English in DSH 0.2.0-rc.2), including configuration, status messages and plugin-list metadata. Language-pack locales use the host fallback chain. Switching languages preserves unsaved settings; there is no separate plugin language selector.
4
12
 
package/README.zh.md CHANGED
@@ -1,4 +1,12 @@
1
1
  # dsh-tool-vision
2
+
3
+ ## DSH 0.2.1-rc.2
4
+
5
+ 适配 DSH 0.2.1-rc.2,明确声明该预发布版本的 engines.dsh 与 peer 范围。宿主新增 DeepSeek V4.1 Flash 1017 及 Search/Fetch API,本插件使用的接口保持不变。保留已有推理配置及自动补齐显式开启策略。
6
+
7
+ ## DSH 0.2.1-rc.1
8
+
9
+ 支持 DSH 0.2.1-rc.1,通过 `engines.dsh` 和一致的 peer 范围声明兼容,明确包含该预发布版本,并保留已有 0.2.0-rc.2 支持。
2
10
 
3
11
  插件跟随 DSH 的语言设置(DSH 0.2.0-rc.2 内置中文和 English),配置页面、状态提示和插件列表名称/简介同步切换。扩展语言使用宿主的回退链。切换语言保留未保存的设置,无需单独选择插件语言。
4
12
 
package/cordis.patch.yml CHANGED
@@ -1,8 +1,8 @@
1
- # dsh-tool-vision — bundle patch layer
2
- #
3
- # Declares the plugin as a Cordis loader entry, making the package a standard
4
- # profile bundle: `dsh plugin --profile <p> add dsh-tool-vision` installs and
5
- # mounts it without manual cordis.patch.yml edits.
6
- - insert:
7
- - id: tool-vision
8
- name: 'dsh-tool-vision'
1
+ # dsh-tool-vision — bundle patch layer
2
+ #
3
+ # Declares the plugin as a Cordis loader entry, making the package a standard
4
+ # profile bundle: `dsh plugin --profile <p> add dsh-tool-vision` installs and
5
+ # mounts it without manual cordis.patch.yml edits.
6
+ - insert:
7
+ - id: tool-vision
8
+ name: 'dsh-tool-vision'
package/index.js CHANGED
@@ -221,7 +221,7 @@ const Config = z.object({
221
221
  /** Fixed session id override for callers without a dsh session context.
222
222
  * Empty = auto (per-process stable id). */
223
223
  sessionId: z.string().default(""),
224
- }).volatile();
224
+ }).volatile();
225
225
 
226
226
  const MIME_BY_EXT = {
227
227
  ".png": "image/png",
@@ -1165,7 +1165,7 @@ function apply(ctx, config) {
1165
1165
  // would be undefined (apiKey included).
1166
1166
  let current = config;
1167
1167
  let sourceGetter = null;
1168
- const getConfig = () => (sourceGetter ? sourceGetter() : typeof current.get === "function" ? current.get() : current);
1168
+ const getConfig = () => (sourceGetter ? sourceGetter() : typeof current.get === "function" ? current.get() : current);
1169
1169
  // The registered settings scope, kept so tools can PERSIST what they measure.
1170
1170
  // Null whenever no settings provider is mounted (composition-entry-only runs),
1171
1171
  // in which case a probe still reports its verdict but cannot record it.
@@ -1435,12 +1435,12 @@ function apply(ctx, config) {
1435
1435
  // `installSettingsSection` export (the provider now lives at ctx.settings).
1436
1436
  // Inline the same logic via ctx.inject(["settings"]) — works on both
1437
1437
  // 0.1.1 (module export wrapper) and 0.1.2 (ctx.settings) hosts.
1438
- sourceGetter = () => typeof config.get === "function" ? config.get() : config;
1439
- settingsScope = { update: (patch) => ctx.settings.update(NS, patch) };
1440
- ctx.on("settings/document-updated", (id) => {
1441
- if (id === NS) syncFeatures();
1442
- });
1443
- ctx.effect(() => () => uninstallFeatures());
1438
+ sourceGetter = () => typeof config.get === "function" ? config.get() : config;
1439
+ settingsScope = { update: (patch) => ctx.settings.update(NS, patch) };
1440
+ ctx.on("settings/document-updated", (id) => {
1441
+ if (id === NS) syncFeatures();
1442
+ });
1443
+ ctx.effect(() => () => uninstallFeatures());
1444
1444
 
1445
1445
  // ── model catalog route: settings support, so it lives on THIS fiber ───────
1446
1446
  // The master switch disposes the feature fiber on purpose (tools, bridge,
package/package.json CHANGED
@@ -1,100 +1,103 @@
1
- {
2
- "name": "dsh-tool-vision",
3
- "version": "0.10.1",
4
- "description": "DeepSeek Harness 外置视觉模型插件:inspect_image 把本地图片或 http(s) 图片 URL 发给任意 OpenAI 兼容端点,视觉模型看图的文字回答直接带回对话;附 Web UI 设置栏。",
5
- "type": "module",
6
- "main": "index.js",
7
- "scripts": {
8
- "test": "node tests/preview-regex.test.mjs && node tests/preview-route.test.mjs && node tests/auto-image.test.mjs && node tests/dispatch-image.test.mjs && node --test tests/bridge-export.test.mjs tests/vision-tools.test.js tests/vision-tools-tools.test.js && node --test tests/settings-scope-compat.test.mjs tests/settings-atomic-write.test.mjs tests/switch-behaviour.test.mjs tests/model-lists.test.mjs tests/model-probe.test.mjs && node --test tests/plugin-page.test.mjs && node --test tests/locale.test.mjs",
9
- "test:render": "node tests/render-panel.test.mjs"
10
- },
11
- "exports": {
12
- ".": "./index.js",
13
- "./client": "./client.js",
14
- "./package.json": "./package.json",
15
- "./locale/*.json": "./locale/*.json"
16
- },
17
- "dsh": {
18
- "bundle": {
19
- "patch": "./cordis.patch.yml"
20
- },
21
- "client": {
22
- "platform": "web"
23
- },
24
- "compatibility": {
25
- "dsh": ">=0.2.0-rc.2 <0.3.0",
26
- "dshReleases": {
27
- "0.1.5-rc.2": "incompatible",
28
- "0.1.5-rc.3": "incompatible",
29
- "0.1.6-alpha.1": "unknown",
30
- "0.1.6-alpha.2": "unknown",
31
- "0.1.7-alpha.1": "unknown",
32
- "0.1.7-alpha.2": "unknown",
33
- "0.1.7-rc.1": "incompatible",
34
- "0.1.7-rc.2": "incompatible",
35
- "0.2.0-rc.2": "compatible"
36
- },
37
- "node": ">=20.18",
38
- "profiles": [
39
- "web",
40
- "desktop"
41
- ]
42
- }
43
- },
44
- "files": [
45
- "locale",
46
- "index.js",
47
- "client.js",
48
- "cordis.patch.yml",
49
- "README.md",
50
- "README.zh.md",
51
- "LICENSE",
52
- "lib",
53
- "vendor"
54
- ],
55
- "homepage": "https://github.com/Scorp1o117/dsh-tool-vision",
56
- "keywords": [
57
- "dsh",
58
- "dsh-plugin",
59
- "deepseek-harness",
60
- "vision",
61
- "multimodal",
62
- "image",
63
- "openai-compatible",
64
- "qwen-vl",
65
- "glm-4v",
66
- "ollama"
67
- ],
68
- "license": "MIT",
69
- "engines": {
70
- "node": ">=20.18"
71
- },
72
- "repository": {
73
- "type": "git",
74
- "url": "git+https://github.com/Scorp1o117/dsh-tool-vision.git"
75
- },
76
- "bugs": {
77
- "url": "https://github.com/Scorp1o117/dsh-tool-vision/issues"
78
- },
79
- "dependencies": {
80
- "@deepseek-ai/schemastery": "^3.18.4"
81
- },
82
- "peerDependencies": {
83
- "@deepseek-ai/dsh-settings": ">=0.2.0-rc.2 <0.3.0",
84
- "@deepseek-ai/dsh-tools": ">=0.2.0-rc.2 <0.3.0",
85
- "react": "^18.2.0"
86
- },
87
- "optionalDependencies": {
88
- "potrace": "^2.1.8",
89
- "puppeteer-core": "^25.6.0",
90
- "sharp": ">=0.35.3 <1"
91
- },
92
- "devDependencies": {
93
- "@deepseek-ai/dsh": "0.2.0-rc.2",
94
- "@deepseek-ai/dsh-settings": "0.2.0-rc.2",
95
- "@deepseek-ai/dsh-tools": "0.2.0-rc.2",
96
- "jsdom": "^30.0.1",
97
- "react": "^18.3.1",
98
- "react-dom": "^18.3.1"
99
- }
100
- }
1
+ {
2
+ "name": "dsh-tool-vision",
3
+ "version": "0.10.3",
4
+ "description": "DeepSeek Harness 外置视觉模型插件:inspect_image 把本地图片或 http(s) 图片 URL 发给任意 OpenAI 兼容端点,视觉模型看图的文字回答直接带回对话;附 Web UI 设置栏。",
5
+ "type": "module",
6
+ "main": "index.js",
7
+ "scripts": {
8
+ "test": "node tests/preview-regex.test.mjs && node tests/preview-route.test.mjs && node tests/auto-image.test.mjs && node tests/dispatch-image.test.mjs && node --test tests/bridge-export.test.mjs tests/vision-tools.test.js tests/vision-tools-tools.test.js && node --test tests/settings-scope-compat.test.mjs tests/settings-atomic-write.test.mjs tests/switch-behaviour.test.mjs tests/model-lists.test.mjs tests/model-probe.test.mjs && node --test tests/plugin-page.test.mjs && node --test tests/locale.test.mjs",
9
+ "test:render": "node tests/render-panel.test.mjs"
10
+ },
11
+ "exports": {
12
+ ".": "./index.js",
13
+ "./client": "./client.js",
14
+ "./package.json": "./package.json",
15
+ "./locale/*.json": "./locale/*.json"
16
+ },
17
+ "dsh": {
18
+ "bundle": {
19
+ "patch": "./cordis.patch.yml"
20
+ },
21
+ "client": {
22
+ "platform": "web"
23
+ },
24
+ "compatibility": {
25
+ "dsh": ">=0.2.0-rc.2 <0.3.0 || 0.2.1-rc.1 || 0.2.1-rc.2",
26
+ "dshReleases": {
27
+ "0.1.5-rc.2": "incompatible",
28
+ "0.1.5-rc.3": "incompatible",
29
+ "0.1.6-alpha.1": "unknown",
30
+ "0.1.6-alpha.2": "unknown",
31
+ "0.1.7-alpha.1": "unknown",
32
+ "0.1.7-alpha.2": "unknown",
33
+ "0.1.7-rc.1": "incompatible",
34
+ "0.1.7-rc.2": "incompatible",
35
+ "0.2.0-rc.2": "compatible",
36
+ "0.2.1-rc.1": "compatible",
37
+ "0.2.1-rc.2": "compatible"
38
+ },
39
+ "node": ">=20.18",
40
+ "profiles": [
41
+ "web",
42
+ "desktop"
43
+ ]
44
+ }
45
+ },
46
+ "files": [
47
+ "locale",
48
+ "index.js",
49
+ "client.js",
50
+ "cordis.patch.yml",
51
+ "README.md",
52
+ "README.zh.md",
53
+ "LICENSE",
54
+ "lib",
55
+ "vendor"
56
+ ],
57
+ "homepage": "https://github.com/Scorp1o117/dsh-tool-vision",
58
+ "keywords": [
59
+ "dsh",
60
+ "dsh-plugin",
61
+ "deepseek-harness",
62
+ "vision",
63
+ "multimodal",
64
+ "image",
65
+ "openai-compatible",
66
+ "qwen-vl",
67
+ "glm-4v",
68
+ "ollama"
69
+ ],
70
+ "license": "MIT",
71
+ "engines": {
72
+ "node": ">=20.18",
73
+ "dsh": ">=0.2.0-rc.2 <0.3.0 || 0.2.1-rc.1 || 0.2.1-rc.2"
74
+ },
75
+ "repository": {
76
+ "type": "git",
77
+ "url": "git+https://github.com/Scorp1o117/dsh-tool-vision.git"
78
+ },
79
+ "bugs": {
80
+ "url": "https://github.com/Scorp1o117/dsh-tool-vision/issues"
81
+ },
82
+ "dependencies": {
83
+ "@deepseek-ai/schemastery": "^3.18.4"
84
+ },
85
+ "peerDependencies": {
86
+ "@deepseek-ai/dsh-settings": ">=0.2.0-rc.2 <0.3.0 || 0.2.1-rc.1 || 0.2.1-rc.2",
87
+ "@deepseek-ai/dsh-tools": ">=0.2.0-rc.2 <0.3.0 || 0.2.1-rc.1 || 0.2.1-rc.2",
88
+ "react": "^18.2.0"
89
+ },
90
+ "optionalDependencies": {
91
+ "potrace": "^2.1.8",
92
+ "puppeteer-core": "^25.6.0",
93
+ "sharp": ">=0.35.3 <1"
94
+ },
95
+ "devDependencies": {
96
+ "@deepseek-ai/dsh": "0.2.1-rc.2",
97
+ "@deepseek-ai/dsh-settings": "0.2.1-rc.2",
98
+ "@deepseek-ai/dsh-tools": "0.2.1-rc.2",
99
+ "jsdom": "^30.0.1",
100
+ "react": "^18.3.1",
101
+ "react-dom": "^18.3.1"
102
+ }
103
+ }