dsh-tool-vision 0.9.3 → 0.9.5
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/LICENSE +23 -23
- package/README.md +15 -11
- package/README.zh.md +346 -343
- package/client.js +2 -2
- package/cordis.patch.yml +8 -8
- package/index.js +1496 -1499
- package/lib/model-probe.js +274 -274
- package/lib/session-header.js +57 -57
- package/lib/vision-tools.js +2485 -2485
- package/package.json +82 -78
package/client.js
CHANGED
|
@@ -72,7 +72,7 @@ window.__ModuleLoader__.load({
|
|
|
72
72
|
|
|
73
73
|
// ── locale ────────────────────────────────────────────────────────────
|
|
74
74
|
var NS = "toolVision";
|
|
75
|
-
var inject = ["slots", "locale", "
|
|
75
|
+
var inject = ["slots", "locale", "configForms"];
|
|
76
76
|
var zh = {
|
|
77
77
|
nav: "视觉模型",
|
|
78
78
|
intro: "外置视觉模型配置:Agent 通过 inspect_image 工具把图片发给该端点分析。修改后即时生效(settings.yaml 热重载)。",
|
|
@@ -939,7 +939,7 @@ window.__ModuleLoader__.load({
|
|
|
939
939
|
function apply(ctx) {
|
|
940
940
|
var t = ctx.locale.bind(NS);
|
|
941
941
|
ctx.effect(function () { return ctx.locale.register(NS, { zh: zh, en: en }); }, "dsh-tool-vision: dictionaries");
|
|
942
|
-
var scope = ctx.
|
|
942
|
+
var scope = ctx.configForms.get("tool-vision");
|
|
943
943
|
attachBridgePreview(ctx, scope);
|
|
944
944
|
ctx.slots.inject("settings.section", function () {
|
|
945
945
|
return ctx.slots.register({
|
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'
|