Skip to content

armgit / 67.js

Public Imported from GitHub
0

3D engine that AI agents drive

Accept the fracture-node tool cost and list fragment in the geometry type test (#979)

Nguyen Xuan An9528173403c5
diff --git a/changes/979-recipe.size.md b/changes/979-recipe.size.md
index 9f089b94..438fa14d 100644
--- a/changes/979-recipe.size.md
+++ b/changes/979-recipe.size.md
@@ -2,3 +2,5 @@
- scene:agent-scene+lazy: the new on-demand fracture module (recipe operation, piece cache) and the fracture code it pulls in
- goal:agent-scene: an agent can only fracture a part without writing code through a recipe operation, which needs these paths
- tool:scene_capabilities: the physics topic text for fracture-node and the fragment geometry type
+- tool:scene_apply: the fracture-node operation and the fragment geometry type, 782 bytes, so an agent breaks a part without writing code
+- tool-total: the same two schema entries; the field detail stays in scene_capabilities physics
diff --git a/tests/mcp-tools.test.js b/tests/mcp-tools.test.js
index 6f4b5c62..a3752ba2 100644
--- a/tests/mcp-tools.test.js
+++ b/tests/mcp-tools.test.js
@@ -156,7 +156,7 @@ test('SDK advertises the complete strict JSON contract and truthful annotations'
assert.equal(recipeSchema.properties.materials.maxItems, 256);
assert.equal(recipeSchema.properties.geometries.maxItems, 256);
// The tool lists the common fields; the strict schema still validates and scene_capabilities serves the full outline.
- assert.deepEqual(recipeSchema.properties.geometries.items.properties.type.enum, ['box', 'cylinder', 'sphere', 'torus', 'lathe', 'extrude', 'tube', 'curve', 'sdf', 'text', 'terrain', 'grid', 'plane', 'cone', 'icoSphere', 'circle', 'line', 'mesh']);
+ assert.deepEqual(recipeSchema.properties.geometries.items.properties.type.enum, ['box', 'cylinder', 'sphere', 'torus', 'lathe', 'extrude', 'tube', 'curve', 'sdf', 'text', 'terrain', 'grid', 'plane', 'cone', 'icoSphere', 'circle', 'line', 'fragment', 'mesh']);
assert.ok(recipeSchema.properties.environment.properties.setup);
assert.equal(recipeSchema.properties.shadow.additionalProperties, false);
for (const topic of ['geometries', 'environment', 'effects', 'motion', 'physics', 'cloth', 'armatures', 'materialFields', 'meshEdit', 'meshStack']) {