dsh-tool-vision 0.3.2 → 0.3.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.
Files changed (3) hide show
  1. package/client.js +1 -1
  2. package/index.js +7 -0
  3. package/package.json +3 -3
package/client.js CHANGED
@@ -1,4 +1,4 @@
1
- /**
1
+ /**
2
2
  * dsh-tool-vision — browser half.
3
3
  *
4
4
  * A "视觉模型" section inside the Web UI settings page: edits the
package/index.js CHANGED
@@ -29,6 +29,7 @@ import os from "node:os";
29
29
  import z from "@deepseek-ai/schemastery";
30
30
  import { defineTool } from "@deepseek-ai/dsh-tools";
31
31
  import { installSettingsSection, settingsNamespace } from "@deepseek-ai/dsh-settings";
32
+ import { ensureSettingsNamespaceExposed } from "./vendor/dsh-settings-expose.js";
32
33
 
33
34
  /** Cordis plugin name. */
34
35
  const name = "tool-vision";
@@ -365,6 +366,12 @@ function apply(ctx, config) {
365
366
  onChange: () => {},
366
367
  });
367
368
 
369
+ // dsh-host-apiproxy hard-codes which settings namespaces the Web client may
370
+ // see; without this, the settings section answers `settings-not-exposed`
371
+ // on any stock install. Patch the allowlist idempotently (self-heals after
372
+ // dsh updates overwrite the file).
373
+ ensureSettingsNamespaceExposed(ctx, "tool-vision", ctx.logger);
374
+
368
375
  // ── image bridge: pasted images become inspect_image hints on text-only models ──
369
376
  if (getConfig().bridgeTextOnly) {
370
377
  const exportDir = getConfig().bridgeExportDir || join(os.tmpdir(), "dsh-vision-bridge");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
- {
1
+ {
2
2
  "name": "dsh-tool-vision",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "description": "DeepSeek Harness 外置视觉模型插件:inspect_image 把本地图片或 http(s) 图片 URL 发给任意 OpenAI 兼容端点,视觉模型看图的文字回答直接带回对话;附 Web UI 设置栏。",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -53,4 +53,4 @@
53
53
  "peerDependencies": {
54
54
  "react": "^18.2.0"
55
55
  }
56
- }
56
+ }