Skip to content

armgit / 67.js

Public Imported from GitHub
0

3D engine that AI agents drive

Give the runtime test the look-catalog helpers, accept the agent-scene growth (issue #608)

Nguyen Xuan And8eed6d3c9f6
diff --git a/changes/608.size.md b/changes/608.size.md
index 4859b752..bb6cc282 100644
--- a/changes/608.size.md
+++ b/changes/608.size.md
@@ -4,3 +4,4 @@
- tool-total: the new hdri field and the wider look field in the one shared environment schema (343 bytes), the only MCP surface for catalog HDRIs and .cube looks.
- tool:scene_create: the hdri field and the wider look field (343 bytes), with names listed as an enum so an agent cannot guess a path.
- result:scene_capabilities: the catalogLooks entry lists the shipped HDRI and look names (308 bytes), so an agent finds them without a call to the docs.
+- scene:agent-scene: HDRI and catalog .cube look support in the agent scene (issue #608); opt-in, default renders unchanged.
diff --git a/tests/agent-runtime.test.js b/tests/agent-runtime.test.js
index 2c10ca53..dd417570 100644
--- a/tests/agent-runtime.test.js
+++ b/tests/agent-runtime.test.js
@@ -14,6 +14,7 @@ import { MATERIAL_SNIPPET_CAPABILITIES } from '../src/material-snippet.js';
import { AGENT_SCENE_CAPABILITIES, AGENT_SCENE_DEFAULT_LIMITS, RENDER_PASS_NAMES, RENDER_PASS_DEPTH_RANGE, VIDEO_ENCODERS, MAXIMUM_VIDEO_SECONDS, MAXIMUM_JOB_SIDE, MAXIMUM_JOB_PIXELS, MAXIMUM_MEMORY_MIB, BAKE_WORKER_MAXIMUM_SECONDS } from '../src/agent-scene-capabilities.js';
import { recipeAssetNeeds } from '../src/agent-scene-assets.js';
import { sequenceFrameIds } from '../src/agent-texture-sequence.js';
+import { catalogLookReferences, BUNDLED_ENVIRONMENT_NAMES, BUNDLED_CUBE_LOOK_NAMES } from '../src/look-catalog.js';
import { TEXTURE_SEQUENCE_CAPABILITIES } from '../src/texture-sequence-limits.js';
import { AGENT_ASSET_LIMITS, assertCombinedAssetBytes } from '../src/agent-asset-limits.js';
import { PATH_TRACER_CAPABILITIES } from '../src/path-tracer-capabilities.js';
@@ -111,7 +112,7 @@ async function reviewRuntimeHarness({ failShot, blockShot = false, oversize = fa
readFile: async () => '', packageMetadata: { version: 'test' },
createRequire: () => ({ resolve: () => { throw new Error('no peer in tests'); } }),
VEGETATION_CAPABILITY_NOTE, CROWD_CAPABILITY_NOTE, USER_PASS_CAPABILITIES, MESH_BLEND_CAPABILITIES, MATERIAL_SNIPPET_CAPABILITIES, AGENT_SCENE_CAPABILITIES, AGENT_SCENE_DEFAULT_LIMITS, RENDER_PASS_NAMES, RENDER_PASS_DEPTH_RANGE, VIDEO_ENCODERS, MAXIMUM_VIDEO_SECONDS, MAXIMUM_JOB_SIDE, MAXIMUM_JOB_PIXELS, MAXIMUM_MEMORY_MIB, BAKE_WORKER_MAXIMUM_SECONDS, PATH_TRACER_CAPABILITIES,
- recipeAssetNeeds, sequenceFrameIds, TEXTURE_SEQUENCE_CAPABILITIES, AGENT_ASSET_LIMITS, assertCombinedAssetBytes,
+ recipeAssetNeeds, sequenceFrameIds, catalogLookReferences, BUNDLED_ENVIRONMENT_NAMES, BUNDLED_CUBE_LOOK_NAMES, TEXTURE_SEQUENCE_CAPABILITIES, AGENT_ASSET_LIMITS, assertCombinedAssetBytes,
audioInputArguments, createAudioLibrary, measureStreamSeconds, filmTimelineDuration, filmTimelineShotStarts, sampleFilmTimeline, normalizeReview, REVIEW_LIMITS, isPreviewHost, BRANCH_LIMITS, validateBranchName,
chromium: { launch: async () => browser }, URL, Buffer, process, performance, clearTimeout,
setTimeout: (callback, delay) => { deadlines.push(delay); return setTimeout(callback, delay); },