Build and revise procedural 3D assets with your coding agent. Local MCP server, CLI and TypeScript engine with rendered review, editable source and GLB export.
JavaScript 3d3d-assets3d-modelingagent-skillsagent-toolsai-agentsasset-pipelinecligame-assetsglbgltfmcpmcp-servermodel-context-protocolprocedural-generationprocedural-modelingtext-to-3dthreejstypescript
import { expect, test } from 'bun:test';
import { readdirSync } from 'node:fs';
import { exampleArchivePath } from '../../scripts/example-archive.mjs';
import { PUBLIC_EXAMPLES, isPublicExample } from './collection.mjs';
test('public gallery excludes archived examples and teaching programs', () => {
for (const name of ['tidal-observatory', 'fire-lookout-tower', 'crate', 'well']) expect(isPublicExample(name)).toBe(false);
for (const name of ['bench-refractor', 'orbital-station', 'abyssal-surveyor']) expect(isPublicExample(name)).toBe(true);
});
test('publishing is an explicit allowlist rather than an implicit file scan', () => {
expect(isPublicExample('new-unreviewed-asset')).toBe(false);
expect(PUBLIC_EXAMPLES).toHaveLength(80);
expect(new Set(PUBLIC_EXAMPLES).size).toBe(PUBLIC_EXAMPLES.length);
const selected = readdirSync(exampleArchivePath())
.filter((name) => name.endsWith('.kiln.js'))
.map((name) => name.slice(0, -'.kiln.js'.length))
.filter(isPublicExample)
.sort();
expect(selected).toEqual([...PUBLIC_EXAMPLES].sort());
});