@deepblend/dsh-blender-tool 0.6.2 → 0.6.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/lib/tools.js +6 -2
- package/package.json +2 -2
package/lib/tools.js
CHANGED
|
@@ -157,7 +157,8 @@ function recipeList(ctx) {
|
|
|
157
157
|
description:
|
|
158
158
|
'List locally available, validated product recipes without launching Blender or creating a project. ' +
|
|
159
159
|
'Returns recipes with id, version, digest, title, author, declared license, source, preview URL and ' +
|
|
160
|
-
'
|
|
160
|
+
'parameter IDs, types, defaults and allowed ranges, plus errors for packages that could not be accepted. ' +
|
|
161
|
+
'Internal geometry binding maps stay in the Host and saved recipe source. Content hashes ' +
|
|
161
162
|
'check loaded bytes; they do not certify authorship or artistic quality. Use the returned id, version ' +
|
|
162
163
|
'and digest together in blender_project_create.recipe. Only pass parameter IDs and ranges declared ' +
|
|
163
164
|
'by that recipe. This tool never downloads or installs anything.',
|
|
@@ -168,7 +169,10 @@ function recipeList(ctx) {
|
|
|
168
169
|
if (resolved.unavailable !== undefined) return { ok: false, ...resolved.unavailable }
|
|
169
170
|
try {
|
|
170
171
|
const { data, canonicalWarnings } = await canonicalCall(resolved.studio.listRecipes(), warning)
|
|
171
|
-
|
|
172
|
+
const catalog = { ...data, recipes: data.recipes.map(recipe => ({ ...recipe,
|
|
173
|
+
parameters: recipe.parameters.map(({ bindings, ...parameter }) => parameter),
|
|
174
|
+
})) }
|
|
175
|
+
return { ok: true, text: renderSuccess('Available product recipes.', catalog, { warnings: canonicalWarnings }), data: catalog }
|
|
172
176
|
} catch (cause) {
|
|
173
177
|
return { ok: false, ...renderFailure(cause, 'RECIPE_LIST_FAILED') }
|
|
174
178
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepblend/dsh-blender-tool",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Agent-preset tool consumer: registers the model-visible DeepBlend Blender tools. Publishes no service.",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"./package.json": "./package.json"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@deepblend/dsh-blender-contracts": "0.6.
|
|
14
|
+
"@deepblend/dsh-blender-contracts": "0.6.4"
|
|
15
15
|
},
|
|
16
16
|
"license": "MIT",
|
|
17
17
|
"repository": {
|