@insmind/cli 2.1.7 → 2.1.8
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.
|
@@ -24,7 +24,12 @@ export const canvasModelBindings = [
|
|
|
24
24
|
["video.enhance", "video-enhance-standard", "canvas-video-enhance-fast", "canvas-video-enhance", "标准视频超分", "dify"],
|
|
25
25
|
["video.enhance", "video-enhance-smart", "canvas-video-enhance-smart", "canvas-video-enhance", "智能视频修复", "dify"]
|
|
26
26
|
];
|
|
27
|
-
|
|
27
|
+
// MNS uses both associations for layers: production uses AI-image-tool, FAT uses special-agent-tools.
|
|
28
|
+
export const canvasSceneTools = new Map([
|
|
29
|
+
...canvasModelBindings.map(([tool, , , scene]) => [scene, tool]),
|
|
30
|
+
["AI-image-tool", "image.layers"]
|
|
31
|
+
]);
|
|
32
|
+
export const canvasSceneCodes = [...canvasSceneTools.keys()];
|
|
28
33
|
export function canvasProtocol(model) {
|
|
29
34
|
const binding = canvasModelBindings.find(([, id]) => id === model);
|
|
30
35
|
if (!binding)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { cleanCatalogText as cleanText, normalizeParameter as parameter } from "#model-catalog";
|
|
2
2
|
import { RemoteRequestError } from "../../platform/signed-http-transport.js";
|
|
3
3
|
import { defaultToolDefinitions } from "./catalog.js";
|
|
4
|
-
import { canvasModel, canvasModelBindings, canvasSceneCodes } from "./canvas-models.js";
|
|
4
|
+
import { canvasModel, canvasModelBindings, canvasSceneCodes, canvasSceneTools } from "./canvas-models.js";
|
|
5
5
|
import { canvasPricingSupported } from "./canvas-pricing.js";
|
|
6
6
|
export const ROOT_SCENE_CODES = [
|
|
7
7
|
"image-model-art",
|
|
@@ -54,12 +54,12 @@ function collectScenes(raw) {
|
|
|
54
54
|
const root = roots.get(rootCode);
|
|
55
55
|
if (!root)
|
|
56
56
|
continue;
|
|
57
|
-
const
|
|
58
|
-
scenes.push({ code: rootCode, tool
|
|
57
|
+
const tool = canvasSceneTools.get(rootCode);
|
|
58
|
+
scenes.push({ code: rootCode, tool, sort: number(root.sort) });
|
|
59
59
|
// Canvas pickers include first-level children; generic generation keeps its existing root membership.
|
|
60
60
|
for (const child of roots.values()) {
|
|
61
61
|
if (child.parent_id === root.id && child !== root) {
|
|
62
|
-
scenes.push({ code: requiredText(child.code), tool
|
|
62
|
+
scenes.push({ code: requiredText(child.code), tool, sort: number(child.sort) });
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@insmind/cli",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.8",
|
|
4
4
|
"description": "insMind command-line interface for agents and people.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"#model-catalog": "./dist/shared/model-catalog/index.js"
|
|
51
51
|
},
|
|
52
52
|
"gaodingRelease": {
|
|
53
|
-
"sourceCommit": "
|
|
54
|
-
"pipelineId": "
|
|
55
|
-
"pipelineUrl": "https://git.intra.gaoding.com/gtt/gaoding-cli/-/pipelines/
|
|
53
|
+
"sourceCommit": "73af28fbe85c58880ecc38056269cd72d7e62364",
|
|
54
|
+
"pipelineId": "272102",
|
|
55
|
+
"pipelineUrl": "https://git.intra.gaoding.com/gtt/gaoding-cli/-/pipelines/272102"
|
|
56
56
|
}
|
|
57
57
|
}
|