Skip to content

armgit / 67.js

Public Imported from GitHub
0

3D engine that AI agents drive

Give the runtime test sandbox the pack limits (#984)

Nguyen Xuan Anfbca8b100daf
diff --git a/tests/agent-runtime.test.js b/tests/agent-runtime.test.js
index 9445052d..47dbcc9a 100644
--- a/tests/agent-runtime.test.js
+++ b/tests/agent-runtime.test.js
@@ -32,6 +32,8 @@ import { normalizeReview, REVIEW_LIMITS } from '../scripts/agent-review.mjs';
import { BRANCH_LIMITS, validateBranchName } from '../src/agent-branches.js';
import { sessionProblem, SCENE_STORE_LIMITS } from '../src/agent-errors.js';
import { ANNOTATE_LIMITS } from '../src/agent-annotate.js';
+import * as packLimits from '../src/pack-manifest.js';
+import { createPackRegistry } from '../scripts/agent-packs.mjs';
test('runtime reports real scene capabilities without launching a browser and closes idempotently', async () => {
const runtime = createAgentRuntime({ backend: 'cpu', memory: 64 });
@@ -126,6 +128,7 @@ async function reviewRuntimeHarness({ failShot, blockShot = false, oversize = fa
recipeAssetNeeds, gameAssetIds, 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, sessionProblem, SCENE_STORE_LIMITS,
runAnnotateSession: async () => ({ outcome: 'timeout' }), openInDefaultBrowser: async () => {}, ANNOTATE_LIMITS,
+ ...packLimits, createPackRegistry,
chromium: { launch: async () => browser }, URL, Buffer, process, performance, clearTimeout,
runtimeOptions, mkdir, rm, join, isAbsolute, fileURLToPath, writeWebBuild, EXPORT_DIRECTORY_NAME, createAgentRenderJobs: async () => ({ list: () => [], close: async () => {} }), ...contextOverrides,
setTimeout: (callback, delay) => { deadlines.push(delay); return setTimeout(callback, delay); },