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 { materialViewerSelection } from './material-preview';
export const workspaceSections = ['projects', 'live', 'library', 'materials'] as const;
export function initialWorkspaceSection(search: string, remembered: string | null | undefined) {
const params = new URLSearchParams(search);
if (params.has('asset') || params.has('open')) return 'library';
if (materialViewerSelection(search)) return 'materials';
return remembered && workspaceSections.some((section) => section === remembered)
? remembered
: 'library';
}