Skip to content

Make authoring safer: geometry reference, effect and type checks, % unit - #3

Merged
primitiveailabs merged 1 commit into
mainfrom
make/authoring-2
Nov 26, 2026
Merged

primitiveailabs merged 1 commit into
mainfrom
make/authoring-2

Conversation

@primitiveailabs

Copy link
Copy Markdown
Contributor
  • Skill: new skills/decoder/GEOMETRY.md lists every geometry type (from buildPrimitive) with params and defaults, plus modifiers and booleans. SKILL.md links it and explains that effect radius is particle size.
  • Validator: UNKNOWN_GEOMETRY_TYPE error (an unknown type used to render a placeholder cube silently). EFFECT_RADIUS_TOO_LARGE warning when an effect's reach (radius × 3.5) passes a quarter of the model's largest dimension. Built-in exhibits and the DJ deck raise neither.
  • Units: % added; outputs format as 42.5%.
  • Speed: bundle:standalone skips when the hashes of its inputs, the lockfile and the script are unchanged. build:package passes --force.
  • THREE_CJS: npm run decoder loaded three-bvh-csg's UMD build, which required a second copy of three. It now imports the ES source; the warning is gone and only one copy of three loads. The published lib/ was already fine.

Local: npm run check, verify:exports, build:package and the lib CLI smoke test all pass. 3 new tests.

…nit, faster commands

- skills/decoder/GEOMETRY.md lists every geometry type with its params and
  defaults, plus modifiers and booleans; SKILL.md links it.
- validate errors on an unknown geometry type (it used to draw a placeholder
  cube silently) and warns when an effect radius swamps the model.
- '%' is a measurement unit; outputs read "42.5%".
- The standalone bundle is skipped when nothing it reads has changed, so
  every npm command no longer rebuilds it. build:package always rebuilds.
- Import three-bvh-csg's ES source, so the dev CLI loads one copy of three
  and the THREE_CJS deprecation warning is gone.
@primitiveailabs
primitiveailabs merged commit 61de008 into main Nov 26, 2026
1 check passed
@primitiveailabs
primitiveailabs deleted the make/authoring-2 branch November 26, 2026 00:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant