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.

564 B
Raw Blame
export function legacyDestination(hash: string, known: readonly string[]) {
  if (!hash.startsWith('#/')) return null;
  const slug = hash.slice(2).replace(/\/$/, '');
  return known.includes(slug) ? `/gallery/archive/${slug}/` : '/gallery/archive/';
}
export function matchesAsset(
  asset: { pack: string | null; packs?: readonly string[]; category: string },
  pack: string,
  category: string,
) {
  return (
    (pack === 'all' || (asset.packs ?? [asset.pack ?? 'standalone']).includes(pack)) &&
    (category === 'all' || asset.category === category)
  );
}