dsh-tool-vision 0.10.1 → 0.10.2
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 +4 -0
- package/README.zh.md +4 -0
- package/cordis.patch.yml +8 -8
- package/index.js +8 -8
- package/package.json +102 -100
package/README.md
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
# dsh-tool-vision
|
|
2
|
+
|
|
3
|
+
## DSH 0.2.1-rc.1
|
|
4
|
+
|
|
5
|
+
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
6
|
|
|
3
7
|
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
8
|
|
package/README.zh.md
CHANGED
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,102 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "dsh-tool-vision",
|
|
3
|
-
"version": "0.10.
|
|
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
|
-
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
"
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"README.
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
"
|
|
57
|
-
|
|
58
|
-
"dsh
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
"
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
"
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
"
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
"@deepseek-ai/dsh
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
|
|
100
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "dsh-tool-vision",
|
|
3
|
+
"version": "0.10.2",
|
|
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",
|
|
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
|
+
},
|
|
38
|
+
"node": ">=20.18",
|
|
39
|
+
"profiles": [
|
|
40
|
+
"web",
|
|
41
|
+
"desktop"
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"files": [
|
|
46
|
+
"locale",
|
|
47
|
+
"index.js",
|
|
48
|
+
"client.js",
|
|
49
|
+
"cordis.patch.yml",
|
|
50
|
+
"README.md",
|
|
51
|
+
"README.zh.md",
|
|
52
|
+
"LICENSE",
|
|
53
|
+
"lib",
|
|
54
|
+
"vendor"
|
|
55
|
+
],
|
|
56
|
+
"homepage": "https://github.com/Scorp1o117/dsh-tool-vision",
|
|
57
|
+
"keywords": [
|
|
58
|
+
"dsh",
|
|
59
|
+
"dsh-plugin",
|
|
60
|
+
"deepseek-harness",
|
|
61
|
+
"vision",
|
|
62
|
+
"multimodal",
|
|
63
|
+
"image",
|
|
64
|
+
"openai-compatible",
|
|
65
|
+
"qwen-vl",
|
|
66
|
+
"glm-4v",
|
|
67
|
+
"ollama"
|
|
68
|
+
],
|
|
69
|
+
"license": "MIT",
|
|
70
|
+
"engines": {
|
|
71
|
+
"node": ">=20.18",
|
|
72
|
+
"dsh": ">=0.2.0-rc.2 <0.3.0 || 0.2.1-rc.1"
|
|
73
|
+
},
|
|
74
|
+
"repository": {
|
|
75
|
+
"type": "git",
|
|
76
|
+
"url": "git+https://github.com/Scorp1o117/dsh-tool-vision.git"
|
|
77
|
+
},
|
|
78
|
+
"bugs": {
|
|
79
|
+
"url": "https://github.com/Scorp1o117/dsh-tool-vision/issues"
|
|
80
|
+
},
|
|
81
|
+
"dependencies": {
|
|
82
|
+
"@deepseek-ai/schemastery": "^3.18.4"
|
|
83
|
+
},
|
|
84
|
+
"peerDependencies": {
|
|
85
|
+
"@deepseek-ai/dsh-settings": ">=0.2.0-rc.2 <0.3.0 || 0.2.1-rc.1",
|
|
86
|
+
"@deepseek-ai/dsh-tools": ">=0.2.0-rc.2 <0.3.0 || 0.2.1-rc.1",
|
|
87
|
+
"react": "^18.2.0"
|
|
88
|
+
},
|
|
89
|
+
"optionalDependencies": {
|
|
90
|
+
"potrace": "^2.1.8",
|
|
91
|
+
"puppeteer-core": "^25.6.0",
|
|
92
|
+
"sharp": ">=0.35.3 <1"
|
|
93
|
+
},
|
|
94
|
+
"devDependencies": {
|
|
95
|
+
"@deepseek-ai/dsh": "0.2.1-rc.1",
|
|
96
|
+
"@deepseek-ai/dsh-settings": "0.2.1-rc.1",
|
|
97
|
+
"@deepseek-ai/dsh-tools": "0.2.1-rc.1",
|
|
98
|
+
"jsdom": "^30.0.1",
|
|
99
|
+
"react": "^18.3.1",
|
|
100
|
+
"react-dom": "^18.3.1"
|
|
101
|
+
}
|
|
102
|
+
}
|