Skip to content

Forma v0.4.3

Choose a tag to compare

@wrong-nebula wrong-nebula released this 03 Dec 14:57
· 81 commits to main since this release

Highlights

Language Expressiveness (Forma-Pipe)

  • Watertight involute spur gear primitive: gear(teeth, module=1.0, h=1.0, pressure_angle=20, bore=0) with tooth 0 aligned on +X and standard backlash for collision-free meshing.
  • Parametric macros: def name(p1, p2=default) = expr (supports multi-line | pipelines, scoped parameters, keyword/default arguments, and recursion/call guards).
  • List comprehensions: [expr for i in range(n | start, stop | start, stop, step)] for bolt circles, hole arrays, and procedural point lists.
  • Additional trig helpers: tan(x), atan(x), and atan2(y, x).
  • Local _-prefixed variables: _tmp = ... stays local to the script and never leaks into scene.parts or multi-node scene: true exports.
  • Updated GBNF grammar: grammar/forma_pipe.gbnf updated with full coverage of all new syntax and functions.

MCP, CLI & WASM Ergonomics

  • Transactional scalar persistence: Non-_ scalar variables now persist across MCP eval calls and roll back with tx (checkpoint, rollback, undo, reset, and strict auto-rollback).
  • Multi-part scene previews (scene: true): export({ path: "preview.png", scene: true }) and .svg blueprints (plus CLI --scene --render / --draw) render all named scene parts together with their materials across native and WASM.
  • Smaller MCP tool schema: Updated SPEC_PIPE covers all new features while shrinking tools/list to 721–723 o200k tokens (strictly < 800).
  • Streamlined agent guides: Updated SKILL.md, AGENTS.md, llms.txt, and docs/ for low-roundtrip batched MCP workflows.

Kernel & Reliability Fixes

  • Fixed false-positive self-intersection detection in tris_overlap_3d on smoothly curved meshes (deform("curve", ...)).
  • Hardened forma-server, native/WASM CLI parity (--unit, SVG units, exit codes, .blend bridge), and bench/verify.py Y-up/Z-up handling.
  • Verified with 88/88 Rust workspace tests (including 11,750+ randomized fuzz ops across gears, meshing pairs, macros, comprehensions, and curved booleans), 5/5 npm/WASM smoke suites, 12/12 independent trimesh/Blender gate checks, and 8/8 Tier-1 Blender parity gates.