dsh-tool-vision 0.3.3 → 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.
- package/index.js +7 -0
- package/package.json +1 -1
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