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
docs(discovery): state that profile solids output no UV0 and name the UV repair (#177)
Matt Kissinger72feb546c24f
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 56b75cdd..005c7b40 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -26,6 +26,12 @@ does not publish a package.delivery, and keep superseded entries as immutable `history[]` rather than rewriting them.Guidance only; standalone assets and the engine surface are unchanged([#180](https://github.com/instruktlabs/kiln/issues/180)).+- State plainly in Discovery that `extrudeProfile`, `revolveProfile` and `roundedBoxGeo`+ output no UV0, and relate `projectUV` and `autoUnwrap` from the first two. The+ `MAT_TEXTURE_UV_MISSING` repair now names both `projectUV` (for example box projection)+ and `autoUnwrap` instead of a generic "unwrap". The block is unchanged: a texture-backed+ material on geometry without UV0 still fails QA, and no projection is added+ automatically ([#177](https://github.com/instruktlabs/kiln/issues/177)).## 1.4.0 (2026-10-23)diff --git a/skills/kiln-author-asset/references/geometry-recipes.md b/skills/kiln-author-asset/references/geometry-recipes.mdindex a8a8b249..e6623fb7 100644--- a/skills/kiln-author-asset/references/geometry-recipes.md+++ b/skills/kiln-author-asset/references/geometry-recipes.md@@ -547,6 +547,8 @@ For textures, preserve valid primitive UVs. Use `copyGeometry` before independenbuffer edits, `remapUV` to scale/offset UVs, and `projectUV` for explicit planar,box or cylindrical mapping in a geometry-local frame. Fetch its exact Discoverycontract for rotated frames, partial angular ranges, caps and seam sampling.+`extrudeProfile`, `revolveProfile` and `roundedBoxGeo` output no UV0, so a+texture-backed material on them is blocked until `projectUV` or `autoUnwrap` adds it.`autoUnwrap` is the separate atlas operation. Removed shape unwrap names do notselect a preservation or projection fallback.diff --git a/src/discovery/catalog.test.ts b/src/discovery/catalog.test.tsindex a109dca8..1f988e55 100644--- a/src/discovery/catalog.test.ts+++ b/src/discovery/catalog.test.ts@@ -11,6 +11,7 @@ import {} from '../primitives';import { geometryDiagnostics } from '../geometry';import { sweepProfile } from '../sweep';+import { extrudeProfile, revolveProfile, roundedBoxGeo } from '../profile';import { listHelperSpecs } from './helper-specs';import { parseCatalog, type DiscoveryEntry } from './catalog-schema';import { listDiscoveryEntries, DISCOVERY_HELPER_RETIREMENTS } from './catalog';@@ -30,6 +31,43 @@ describe('executable Discovery catalog', () => {}});+ test('manifold-backed profile solids state that they output no UV0 and lead to the UV helpers', async () => {+ const outline: Array<[number, number]> = [+ [-1, -1],+ [1, -1],+ [1, 1],+ [-1, 1],+ ];+ const built = {+ extrudeProfile: await extrudeProfile(outline, { depth: 0.2 }),+ revolveProfile: await revolveProfile([+ [0, 0],+ [1, 0],+ [1, 1],+ [0, 1],+ ]),+ roundedBoxGeo: await roundedBoxGeo(1, 1, 1, 0.1),+ };+ for (const [name, geometry] of Object.entries(built)) {+ // The claim below is only true while the helper really emits no UV0.+ expect(geometry.getAttribute('uv')).toBeUndefined();+ const entry = byName().get(name);+ if (!entry || !executable(entry)) throw new Error(`Missing helper ${name}`);+ const preservation = entry.contract.preservation.join(' ');+ expect(preservation).toContain('no UV0');+ expect(preservation).toContain('projectUV');+ expect(preservation).toContain('autoUnwrap');+ expect(preservation).not.toContain('does not carry authored UVs');+ }+ for (const name of ['extrudeProfile', 'revolveProfile']) {+ const related = byName()+ .get(name)!+ .related.map((link) => link.id);+ expect(related).toContain('operation:projectUV');+ expect(related).toContain('operation:autoUnwrap');+ }+ });+test('every retained sandbox function has exactly one complete, typed contract', () => {const retired = new Set<string>(DISCOVERY_HELPER_RETIREMENTS.map((entry) => entry.name));const names = Object.entries(buildSandboxGlobals())diff --git a/src/discovery/helper-contracts.ts b/src/discovery/helper-contracts.tsindex 978779b5..caaa3f62 100644--- a/src/discovery/helper-contracts.ts+++ b/src/discovery/helper-contracts.ts@@ -2257,7 +2257,9 @@ const profileFacts: Facts = {topology: ['Manifold-backed solid generation from valid profiles; not a guarantee that any arbitrary input describes the intended solid.',],- preservation: ['New geometry/normals/bounds; does not carry authored UVs from an input mesh.'],+ preservation: [+ 'New geometry/normals/bounds. The output has no UV0 (no TEXCOORD_0), and input UVs are not carried. A texture-backed material on it is blocked by MAT_TEXTURE_UV_MISSING until you add UV0 with projectUV (for example box projection) or autoUnwrap.',+ ],cost: 'WASM complexity depends on profile vertices, segments and divisions; no general allocation bound is claimed.',};const profileMetadata: Metadata = {@@ -2301,6 +2303,8 @@ define(related: [{ name: 'circleProfile', relation: 'companion' },{ name: 'sweepProfile', relation: 'alternative' },+ { name: 'projectUV', relation: 'companion' },+ { name: 'autoUnwrap', relation: 'companion' },],},);@@ -2320,7 +2324,11 @@ define(...profileMetadata,aliases: ['solid revolution', 'turned solid'],intents: ['turn a closed section into a solid vessel or knob'],- related: [{ name: 'revolveGeo', relation: 'alternative' }],+ related: [+ { name: 'revolveGeo', relation: 'alternative' },+ { name: 'projectUV', relation: 'companion' },+ { name: 'autoUnwrap', relation: 'companion' },+ ],},);define(diff --git a/src/qa/blocked-feedback.test.ts b/src/qa/blocked-feedback.test.tsindex 26617fe1..a7f4ef34 100644--- a/src/qa/blocked-feedback.test.ts+++ b/src/qa/blocked-feedback.test.ts@@ -31,7 +31,9 @@ test.each(['in-process', 'worker'] as const)(expect(failed.error).toContain('"material":"Wood"');expect(failed.error).toContain('"attribute":"map"');expect(failed.error).not.toContain('GoodRail');- expect(failed.error).toContain('FIX: Unwrap the geometry');+ expect(failed.error).toContain('FIX: ');+ expect(failed.error).toContain('projectUV');+ expect(failed.error).toContain('autoUnwrap');const repaired = (await render.run({code: code.replace("geometry.deleteAttribute('uv');", ''),diff --git a/src/qa/material.ts b/src/qa/material.tsindex fdd9b2c6..8997124c 100644--- a/src/qa/material.ts+++ b/src/qa/material.ts@@ -151,7 +151,8 @@ function validateTextureSlot(profile: 'material.portablePbr',message: `${slot} texture is used on geometry without TEXCOORD_0 UVs.`,affected: affected(mesh, material, texture, slot),- repairText: 'Unwrap the geometry before assigning a texture-backed material.',+ repairText:+ 'Add UV0 to this geometry before assigning a texture-backed material: projectUV (for example box projection) for directional or tiling textures, or autoUnwrap for a baked atlas.',});}}