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.

820 B
Raw Blame
import { z } from 'zod';

/** Full-mode artifact bytes changed when rigid-group merging replaced flatten/join. */
export const FULL_OPTIMIZATION_PIPELINE = 'rigid-v1' as const;

/** Recorded effective export inputs. This excludes host credentials, execution mode and QA authority. */
export const rebuildOptionsSchema = z.object({
  // Optional when reading older saved receipts; new builds always record the effective policy.
  indexPolicy: z.enum(['indexed', 'asBuilt']).optional(),
  gltfExporter: z.enum(['legacy', 'three']),
  geometryPolicy: z.enum(['warn', 'strict']),
  optimize: z.enum(['off', 'auto', 'palette', 'full']),
  optimizationPipeline: z.literal(FULL_OPTIMIZATION_PIPELINE).optional(),
  instance: z.enum(['off', 'auto', 'on']),
});
export type RebuildOptions = z.infer<typeof rebuildOptionsSchema>;