3D engine that AI agents drive
Keep llms.txt and the preview test harness in step with the scene store (part of #658)
Nguyen Xuan An8397b26ac0c0
diff --git a/public/llms.txt b/public/llms.txtindex debe697b..896b26dd 100644--- a/public/llms.txt+++ b/public/llms.txt@@ -39,7 +39,7 @@ Scenes are plain data with stable IDs, so an agent can edit by ID and check each## All tools- `scene_capabilities`: Index of supported recipe features and runtime budgets; pass topic for the detail of one.-- `scene_create`: Create the single active render scene from a JSON recipe.+- `scene_create`: Create a render scene from a JSON recipe; the result has its sessionId.- `scene_asset_catalog`: List content-bound GLB and PNG, JPEG or WebP image IDs from the configured local asset directory.- `scene_create_asset`: Create the active scene from a catalog GLB and editable asset recipe.- `scene_inspect`: Read revision, counts and selected nodes.diff --git a/tests/support/preview-harness.mjs b/tests/support/preview-harness.mjsindex 41044a8f..1102a499 100644--- a/tests/support/preview-harness.mjs+++ b/tests/support/preview-harness.mjs@@ -12,7 +12,8 @@ import { parseGltf } from '../../src/gltf.js';import { hasPatternTextures } from '../../scripts/agent-preview-textures.js';import { assetCopyKey, recipeAssetNeeds } from '../../src/agent-scene-assets.js';import { BRANCH_LIMITS, createBranchStore, printableLabel } from '../../src/agent-branches.js';-import { sessionProblem } from '../../src/agent-errors.js';+import { sessionProblem, SCENE_STORE_LIMITS } from '../../src/agent-errors.js';+import { AGENT_SCENE_DEFAULT_LIMITS } from '../../src/agent-scene-capabilities.js';import { describeApplication } from '../../src/agent-apply-report.js';import { framingProblems, exposureProblems, lumaShares } from '../../src/frame-checks.js';import { agentAssetDecodeOptions, withCatalogLimitAdvice } from '../../src/agent-asset-limits.js';@@ -82,7 +83,7 @@ export function previewHarness() {// The harness loads Manifold from node_modules directly, so the preview's served-file loader is ignored.setManifoldModuleLoader: () => {},needsPhysics, loadPhysicsEngine, physicsEngineLoaded, setPhysicsModuleLoader: () => {},- sceneQueryFor, summarizeWalkMap, walkOptionsFor, createQueryOnlyCache, parseGltf, hasPatternTextures, Uint8Array, atob, sessionProblem, describeApplication, framingProblems, exposureProblems, lumaShares, assetCopyKey, recipeAssetNeeds, agentAssetDecodeOptions, withCatalogLimitAdvice,+ sceneQueryFor, summarizeWalkMap, walkOptionsFor, createQueryOnlyCache, parseGltf, hasPatternTextures, Uint8Array, atob, sessionProblem, SCENE_STORE_LIMITS, AGENT_SCENE_DEFAULT_LIMITS, describeApplication, framingProblems, exposureProblems, lumaShares, assetCopyKey, recipeAssetNeeds, agentAssetDecodeOptions, withCatalogLimitAdvice,applyProjection, applyCameraFields, mat4, resolveAgentShadow, agentEnvironmentMap, BRANCH_LIMITS,// Line art needs a real renderer with render passes, so the fault-injected one gets a no-op install.agentSceneModule: name => (name === 'lineArt' ? { installLineArt: renderer => renderer } : name === 'userPass' ? { ...agentSceneModule(name), installUserPasses: renderer => renderer } : agentSceneModule(name)), agentSceneModuleLoaded, createBranchStore, printableLabel,