Skip to content

armgit / kiln

Public Imported from GitHub
0

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.

539 B
Raw Blame
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';
}