3D engine that AI agents drive
Release 0.18.0
Nguyen Xuan An96717991ed17
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.jsonindex b9bc8a39..b3d7831d 100644--- a/.claude-plugin/marketplace.json+++ b/.claude-plugin/marketplace.json@@ -13,7 +13,7 @@"source": "./skills","strict": false,"description": "The 67js MCP server and the build-67js-scene and render-67js-media skills.",- "version": "0.17.0",+ "version": "0.18.0","category": "development","homepage": "https://67js.codepawl.com","repository": "https://github.com/codepawl/67.js",diff --git a/.gitignore b/.gitignoreindex 296956b6..2380697c 100644--- a/.gitignore+++ b/.gitignore@@ -60,6 +60,7 @@ public/agent-review.md.claude/worktrees/bench/gaussian-splats/data/public/gaussian-splats.md+public/runtime.md# Optional denoiser binaries fetched by packages/denoise-oidn/fetch-oidn.mjspackages/denoise-oidn/vendor/diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 70cb9ed3..56444027 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -1,5 +1,26 @@# Changelog+## 0.18.0++- Clip layers on an imported asset take a `strip` with start, scale, repeat, blend in and out, extend and blend mode, so a walk repeated three times can crossfade into an idle (#693)+- Particle emitters take points from a mesh surface (weighted by area), its vertices or its closed volume, push them along the normal, and draw each particle as one of up to 8 listed nodes with a random or surface-aligned rotation (#695)+- `scene_apply` takes `bake-motion`: it samples nodes over a range into keyframe tracks (tracks, IK, constraints, drivers, ragdoll and rigid bodies), optionally drops keys within a position and angle tolerance, and removes the sources it replaced, so the motion exports as a clip (#697)+- `sdf` geometry meshes a tree of sphere, box, round box, capsule, cylinder and torus shapes with union, subtract, intersect, smooth blends and offset by surface nets, so blobby bodies and rounded joins need no hand modeling (#700)+- `curve` geometry takes `kind` poly or nurbs, several `splines`, arc, spiral and star `shape`s and a `trim`, so rails, ropes and a growing vine need no hand-placed points (#701)+- `uv_project` (cube, cylinder, sphere) and `uv_pack` mesh edits write and pack UVs with one texel density (#702)+- `mesh_edit` gains `poke`, `dual`, `tris_to_quads`, `symmetrize`, `scale_elements` and `extrude_edges` (#703)+- Add a `build` mesh modifier that reveals faces over `start` and `length` frames in index, seeded random or axis order, with `reverse` (#704).+- `scene_restore` takes `revision` to undo the last few `scene_apply` edits in one call, with no checkpoint made first (#744)+- Docs: add an FAQ page for the questions from the launch: three.js, size and speed, tokens, what the agent sees, undo and diffs (#745).+- Set `SIXTYSEVENJS_MCP_LOG=<file>` to log each MCP tool call (tool, duration, ok, result size, never arguments), and run `scripts/summarize-mcp-log.mjs` for calls, error rate and median duration per tool (#746)+- Depth precision by default (#751, phase 1 of 2): the colour pass draws with reversed-Z and a 32-bit float depth buffer wherever `EXT_clip_control` exists, at any far / near ratio, from the first frame; the 16-bit depth buffer is gone; without the extension the depth buffer is 24-bit and the near plane fits the visible bounds when the camera left near unset; `reversedDepth: false` opts out; `installDepthPrecision`, `hasFarOverlap` and `requestReversedDepth` are removed (use `installCoplanarDiagnostics` for the warning); `bench/flicker/index.html` is a viewer with a flicker probe+- Flush faces stop flickering by default (#751, phase 2, step 1 of 2): faces that lie on one plane or a few millimetres apart, inside one mesh or across parts, are ranked per triangle and drawn with a small view-space depth bias, so the face in front wins at every distance and on every depth format; agent scenes do it unless `environment.resolveCoplanar` is `false`, a renderer does it with `resolveCoplanar: resolveFlushParts`; `decal` and `depthLayer` use the same bias; what cannot be ranked (more than 15 faces stacked on one plane, double-sided faces a gap apart) comes back as a `coplanar-overlap` warning with a `reason`; `coplanarLayers`, `resolveCoplanarParts` and `EXACT_FLUSH_DISTANCE` are removed; `bench/flicker` has trap scenes (`?trap=`, `probe.mjs --traps`)+- Hidden flush faces are cut away (#751, phase 2, step 2 of 2): where an opaque face covers another on exactly the same plane (1 cm2 or more), the covered part is cut out of the copy the hidden face draws with, every vertex array interpolated, so a stack of any depth on one plane stops flickering and no longer reports `rank-overflow`; parts and their geometry stay as they are (`flushOrderOf(part).geometry` holds the cut copy), instances of one geometry share a cut, and the path tracer traces the cut geometry; a face under a blended or masked face, or a double-sided face under a one-sided one, is still ranked; `bench/flicker` gains the `plaque-closeup-0.5m` trap with an open-pixel count+- Near-flush faces are cut too (#751): an opaque face in front of another by at most a thousandth of the side of their shared area (from 1 mm to 1 cm) cuts the face behind it, as a flush face does, instead of taking a rank; the Melbourne city model, whose stacked blocks nest facades 5 to 17 mm apart up to 17 deep, now reports no `rank-overflow`+- scene_inspect and scene_capabilities take the inputs Haiku sent in the bench: short mesh edit branch names (meshEdit.inset), dotted fields (environment.spotLights), near topic names (uvs, scene.terrain), source nodes without a mesh of their own, includeBounds with kind hierarchy; an unwalkable path start names the nearest walkable point (#761)+- scene_inspect with a node ID lists the parts below it and tags each with `fromNode`; a node with no part below it, such as a skeleton joint, returns its transform (parent, joint flag, local translation, rotation and scale, rest world position) instead of an error (#761)+- `67js/addons/runtime` adds `createRuntime`, a live game loop with fixed, variable or interpolated steps, ordered pluggable systems, pause on a hidden tab and a frame-time readout (#770)+## 0.17.0- bake.gridFog: the sun the fog scatters is dimmed by the fog between it and the sun (#543)diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex ddf94f0e..44960081 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -82,7 +82,7 @@ Keep site assets out of the npm package: the `files` list in `package.json` deciMaintainers make releases. `package.json` holds the version, and the publish workflow runs when it changes on `main`.-1. Update the version in `package.json` and in `src/version.js`, then run `npm run changes:fold`. It writes the files in `changes/` into `CHANGELOG.md` as that version's section and deletes them. Read `npm run changes` first to see what it will fold. It also deletes the `changes/*.size.md` notes.+1. Update the version in `package.json` and in `src/version.js`, run `npm run plugin:sync` to copy it into `.claude-plugin/marketplace.json`, then run `npm run changes:fold`. It writes the files in `changes/` into `CHANGELOG.md` as that version's section and deletes them. Read `npm run changes` first to see what it will fold. It also deletes the `changes/*.size.md` notes.2. Run `npm run size:release` and `npm run tool-cost:release`. They reset the size budgets, the baseline and the tool cost ceilings to the release numbers. Read the diffs of `bench/size/budgets.json` and `bench/tool-cost-budgets.json`.3. Run `npm test`, `npm run build` and `npm run smoke:package`.4. Commit and push to `main`.diff --git a/bench/size/baseline.json b/bench/size/baseline.jsonindex 7d5d4e8e..ec9e6aeb 100644--- a/bench/size/baseline.json+++ b/bench/size/baseline.json@@ -14,14 +14,9 @@},"bundles": {"entry:core": {- "min": 277284,- "gzip": 83286,- "brotli": 70705- },- "entry:core+lazy": {- "min": 291209,- "gzip": 89221,- "brotli": 76033+ "min": 284588,+ "gzip": 85724,+ "brotli": 72374},"entry:model": {"min": 40093,@@ -44,19 +39,19 @@"brotli": 7331},"entry:gltf": {- "min": 157909,- "gzip": 52258,- "brotli": 45056+ "min": 157862,+ "gzip": 51915,+ "brotli": 44933},"entry:gltf+lazy": {- "min": 226804,- "gzip": 75858,- "brotli": 66223+ "min": 212705,+ "gzip": 69532,+ "brotli": 60727},"entry:modeling": {- "min": 21149,- "gzip": 8439,- "brotli": 7477+ "min": 39345,+ "gzip": 14788,+ "brotli": 13226},"entry:sculpt": {"min": 5937,@@ -79,9 +74,9 @@"brotli": 14875},"entry:mesh": {- "min": 262361,- "gzip": 89080,- "brotli": 75043+ "min": 278645,+ "gzip": 93833,+ "brotli": 78906},"entry:shrinkwrap": {"min": 56422,@@ -109,14 +104,14 @@"brotli": 16498},"entry:crowd-skinning": {- "min": 63669,- "gzip": 19708,- "brotli": 16936+ "min": 63921,+ "gzip": 19802,+ "brotli": 16941},"entry:skeleton-pose": {- "min": 75142,- "gzip": 25019,- "brotli": 21578+ "min": 75494,+ "gzip": 25103,+ "brotli": 21693},"entry:vehicle": {"min": 47322,@@ -139,9 +134,9 @@"brotli": 1232},"entry:navmesh": {- "min": 7206,- "gzip": 3257,- "brotli": 2924+ "min": 7470,+ "gzip": 3373,+ "brotli": 3041},"entry:grass": {"min": 24946,@@ -154,59 +149,59 @@"brotli": 9310},"entry:light-bake": {- "min": 80327,- "gzip": 29391,- "brotli": 25988+ "min": 80908,+ "gzip": 29532,+ "brotli": 26054},"entry:light-bake-gpu": {- "min": 93804,- "gzip": 34276,- "brotli": 29949+ "min": 94459,+ "gzip": 34435,+ "brotli": 30150},"entry:light-bake-gpu+lazy": {- "min": 252194,- "gzip": 79298,- "brotli": 69318+ "min": 252849,+ "gzip": 79457,+ "brotli": 69519},"entry:ground-bounce": {- "min": 35973,- "gzip": 12803,- "brotli": 11559+ "min": 36546,+ "gzip": 12938,+ "brotli": 11742},"entry:floor-sky-visibility": {- "min": 47616,- "gzip": 17878,- "brotli": 16057+ "min": 48189,+ "gzip": 18016,+ "brotli": 16144},"entry:path-tracer": {- "min": 58313,- "gzip": 23104,- "brotli": 20444+ "min": 58387,+ "gzip": 23125,+ "brotli": 20463},"entry:path-tracer+lazy": {- "min": 212719,- "gzip": 66459,- "brotli": 58455+ "min": 212793,+ "gzip": 66480,+ "brotli": 58474},"entry:path-tracer-progressive": {- "min": 103784,- "gzip": 33722,- "brotli": 29761+ "min": 103858,+ "gzip": 33743,+ "brotli": 29769},"entry:path-tracer-progressive+lazy": {- "min": 187494,- "gzip": 56648,- "brotli": 49795+ "min": 187568,+ "gzip": 56669,+ "brotli": 49803},"entry:path-tracer-realtime": {- "min": 118620,- "gzip": 38209,- "brotli": 33905+ "min": 118694,+ "gzip": 38233,+ "brotli": 33929},"entry:path-tracer-realtime+lazy": {- "min": 231917,- "gzip": 70640,- "brotli": 62422+ "min": 231991,+ "gzip": 70664,+ "brotli": 62448},"entry:texture-set": {"min": 1837,@@ -214,24 +209,24 @@"brotli": 762},"entry:agent-scene": {- "min": 213702,- "gzip": 75802,- "brotli": 66730+ "min": 219481,+ "gzip": 77976,+ "brotli": 68679},"entry:agent-scene+lazy": {- "min": 1124424,- "gzip": 410069,- "brotli": 364262+ "min": 1195859,+ "gzip": 436329,+ "brotli": 387768},"entry:agent-asset": {- "min": 358200,- "gzip": 124691,- "brotli": 109585+ "min": 367653,+ "gzip": 128391,+ "brotli": 112799},"entry:agent-asset+lazy": {- "min": 1167627,- "gzip": 424311,- "brotli": 376048+ "min": 1240526,+ "gzip": 451183,+ "brotli": 399989},"entry:hdri": {"min": 18870,@@ -244,9 +239,9 @@"brotli": 7163},"entry:water-reflection": {- "min": 37501,- "gzip": 13173,- "brotli": 11881+ "min": 38074,+ "gzip": 13308,+ "brotli": 12017},"entry:render-passes": {"min": 29848,@@ -259,9 +254,9 @@"brotli": 7227},"entry:line-art": {- "min": 49461,- "gzip": 14526,- "brotli": 13071+ "min": 49713,+ "gzip": 14616,+ "brotli": 13137},"entry:mesh-blend": {"min": 12261,@@ -269,14 +264,14 @@"brotli": 4140},"entry:coplanar-overlap": {- "min": 9060,- "gzip": 4032,- "brotli": 3613+ "min": 28040,+ "gzip": 11523,+ "brotli": 10306},"entry:reversed-depth": {- "min": 31617,- "gzip": 11783,- "brotli": 9744+ "min": 22978,+ "gzip": 8021,+ "brotli": 6410},"entry:material-layer-shaders": {"min": 11423,@@ -344,64 +339,54 @@"brotli": 9174},"entry:replace-textured-parts": {- "min": 64294,- "gzip": 19327,- "brotli": 16536- },- "entry:replace-textured-parts+lazy": {- "min": 78219,- "gzip": 25261,- "brotli": 21860+ "min": 46895,+ "gzip": 13293,+ "brotli": 11891},"entry:texture-update": {- "min": 66090,- "gzip": 19925,- "brotli": 17081- },- "entry:texture-update+lazy": {- "min": 80015,- "gzip": 25859,- "brotli": 22406+ "min": 48684,+ "gzip": 13883,+ "brotli": 12405},"entry:cloth": {"min": 10112,"gzip": 4260,"brotli": 3841},+ "entry:runtime": {+ "min": 6793,+ "gzip": 2657,+ "brotli": 2372+ },"entry:update-part-vertices": {"min": 1254,"gzip": 693,"brotli": 609},"scene:lit-box": {- "min": 182265,- "gzip": 52410,- "brotli": 45258- },- "scene:lit-box+lazy": {- "min": 196190,- "gzip": 58344,- "brotli": 50586+ "min": 189645,+ "gzip": 54868,+ "brotli": 46909},"scene:gltf-box": {- "min": 272095,- "gzip": 83182,- "brotli": 71596+ "min": 279714,+ "gzip": 85837,+ "brotli": 73623},"scene:gltf-box+lazy": {- "min": 340990,- "gzip": 106780,- "brotli": 92762+ "min": 334557,+ "gzip": 103453,+ "brotli": 89422},"scene:agent-scene": {- "min": 347506,- "gzip": 113555,- "brotli": 99203+ "min": 360725,+ "gzip": 118290,+ "brotli": 103185},"scene:agent-scene+lazy": {- "min": 1229297,- "gzip": 440419,- "brotli": 390224+ "min": 1301910,+ "gzip": 466542,+ "brotli": 413056}}}diff --git a/bench/size/budgets.json b/bench/size/budgets.jsonindex 82dee000..3e281901 100644--- a/bench/size/budgets.json+++ b/bench/size/budgets.json@@ -1,64 +1,63 @@{- "archiveBytes": 1236423,+ "archiveBytes": 1278995,"goals": {"lit-box": 50000,"gltf-box": 80000,"agent-scene": 100000},"budgets": {- "entry:core": 85000,- "entry:core+lazy": 91100,+ "entry:core": 87500,"entry:model": 14300,"entry:nature": 18700,"entry:motion": 15700,"entry:canvas2d": 9400,- "entry:gltf": 53400,- "entry:gltf+lazy": 77400,- "entry:modeling": 8700,+ "entry:gltf": 53000,+ "entry:gltf+lazy": 71000,+ "entry:modeling": 15100,"entry:sculpt": 2500,"entry:surface": 10100,"entry:mesh-query": 16000,"entry:scene-query": 18000,- "entry:mesh": 90900,+ "entry:mesh": 95800,"entry:shrinkwrap": 18300,"entry:surface-attachment": 13600,"entry:physics": 19600,"entry:spume": 12900,"entry:retarget": 19700,"entry:crowd-skinning": 20200,- "entry:skeleton-pose": 25600,+ "entry:skeleton-pose": 25700,"entry:vehicle": 16700,"entry:vegetation": 30100,"entry:terrain": 10300,"entry:heightfield": 1500,- "entry:navmesh": 3400,+ "entry:navmesh": 3500,"entry:grass": 9600,"entry:clutter": 10600,- "entry:light-bake": 30000,- "entry:light-bake-gpu": 35000,- "entry:light-bake-gpu+lazy": 80900,- "entry:ground-bounce": 13100,- "entry:floor-sky-visibility": 18300,+ "entry:light-bake": 30200,+ "entry:light-bake-gpu": 35200,+ "entry:light-bake-gpu+lazy": 81100,+ "entry:ground-bounce": 13200,+ "entry:floor-sky-visibility": 18400,"entry:path-tracer": 23600,- "entry:path-tracer+lazy": 67800,- "entry:path-tracer-progressive": 34400,- "entry:path-tracer-progressive+lazy": 57800,+ "entry:path-tracer+lazy": 67900,+ "entry:path-tracer-progressive": 34500,+ "entry:path-tracer-progressive+lazy": 57900,"entry:path-tracer-realtime": 39000,"entry:path-tracer-realtime+lazy": 72100,"entry:texture-set": 900,- "entry:agent-scene": 77400,- "entry:agent-scene+lazy": 418300,- "entry:agent-asset": 127200,- "entry:agent-asset+lazy": 432800,+ "entry:agent-scene": 79600,+ "entry:agent-scene+lazy": 445100,+ "entry:agent-asset": 131000,+ "entry:agent-asset+lazy": 460300,"entry:hdri": 6700,"entry:camera-effects": 9000,- "entry:water-reflection": 13500,+ "entry:water-reflection": 13600,"entry:render-passes": 10800,"entry:user-pass": 8300,- "entry:line-art": 14900,+ "entry:line-art": 15000,"entry:mesh-blend": 4700,- "entry:coplanar-overlap": 4200,- "entry:reversed-depth": 12100,+ "entry:coplanar-overlap": 11800,+ "entry:reversed-depth": 8200,"entry:material-layer-shaders": 3500,"entry:view-transform-shader": 2600,"entry:view-transform": 2100,@@ -72,17 +71,15 @@"entry:light-shapes": 3400,"entry:compact-color": 700,"entry:gaussian-splats": 11400,- "entry:replace-textured-parts": 19800,- "entry:replace-textured-parts+lazy": 25800,- "entry:texture-update": 20400,- "entry:texture-update+lazy": 26400,+ "entry:replace-textured-parts": 13600,+ "entry:texture-update": 14200,"entry:cloth": 4400,+ "entry:runtime": 2800,"entry:update-part-vertices": 800,- "scene:lit-box": 53500,- "scene:lit-box+lazy": 59600,- "scene:gltf-box": 84900,- "scene:gltf-box+lazy": 109000,- "scene:agent-scene": 115900,- "scene:agent-scene+lazy": 449300+ "scene:lit-box": 56000,+ "scene:gltf-box": 87600,+ "scene:gltf-box+lazy": 105600,+ "scene:agent-scene": 120700,+ "scene:agent-scene+lazy": 475900}}diff --git a/bench/tool-cost-budgets.json b/bench/tool-cost-budgets.jsonindex 49500a8a..fe9965b4 100644--- a/bench/tool-cost-budgets.json+++ b/bench/tool-cost-budgets.json@@ -1,14 +1,14 @@{- "schemaTotalBytes": 69410,+ "schemaTotalBytes": 70280,"schemaToolBytes": {- "scene_apply": 21200,- "scene_create": 12990,+ "scene_apply": 21770,+ "scene_create": 13000,"scene_create_asset": 8950,"scene_render_submit": 4270},"schemaOtherToolBytes": 4000,"resultBytes": {- "scene_capabilities": 1440,+ "scene_capabilities": 1460,"scene_create": 1200,"scene_inspect": 1150,"mesh_inspect": 1110,diff --git a/changes/693.md b/changes/693.mddeleted file mode 100644index befba728..00000000--- a/changes/693.md+++ /dev/null@@ -1 +0,0 @@-- Clip layers on an imported asset take a `strip` with start, scale, repeat, blend in and out, extend and blend mode, so a walk repeated three times can crossfade into an idle (#693)diff --git a/changes/693.size.md b/changes/693.size.mddeleted file mode 100644index 8bdfd30e..00000000--- a/changes/693.size.md+++ /dev/null@@ -1 +0,0 @@-- scene:agent-scene+lazy: clip strips (start, scale, repeat, fades, extend, add) are an animation capability the lead approved; they cost 701 bytes gzip in the lazy asset path and no tool schema bytesdiff --git a/changes/695.md b/changes/695.mddeleted file mode 100644index 4b333364..00000000--- a/changes/695.md+++ /dev/null@@ -1 +0,0 @@-- Particle emitters take points from a mesh surface (weighted by area), its vertices or its closed volume, push them along the normal, and draw each particle as one of up to 8 listed nodes with a random or surface-aligned rotation (#695)diff --git a/changes/695.size.md b/changes/695.size.mddeleted file mode 100644index 46c375e3..00000000--- a/changes/695.size.md+++ /dev/null@@ -1,3 +0,0 @@-- scene:agent-scene: mesh emitters and instanced particles are a simulation capability the lead approved; 86 bytes gzip in the core bundle (capabilities text), no tool schema bytes-- scene:agent-scene+lazy: mesh surface, vertex and volume emission plus instance picking and orientation (2011 bytes gzip in the lazy particles path) are a simulation capability the lead approved-- goal:agent-scene: the 86 bytes are the particle capabilities topic text that tells an agent how to use the emitter; the code itself loads lazilydiff --git a/changes/697.md b/changes/697.mddeleted file mode 100644index d46bdf2f..00000000--- a/changes/697.md+++ /dev/null@@ -1 +0,0 @@-- `scene_apply` takes `bake-motion`: it samples nodes over a range into keyframe tracks (tracks, IK, constraints, drivers, ragdoll and rigid bodies), optionally drops keys within a position and angle tolerance, and removes the sources it replaced, so the motion exports as a clip (#697)diff --git a/changes/697.size.md b/changes/697.size.mddeleted file mode 100644index 249d19bb..00000000--- a/changes/697.size.md+++ /dev/null@@ -1,5 +0,0 @@-- tool-total: one scene_apply operation lets an agent hand a physics, IK or constraint motion to export as keys; its detail sits in scene_capabilities motionBake-- tool:scene_apply: the bake-motion operation has five flat fields (nodes, start, end, step, tolerance) with no descriptions-- scene:agent-scene: the core grows only by the bake hook, the shared node-pose helper and a short capabilities note; the sampler and the simplifier load on demand-- goal:agent-scene: the core growth is the hook and the note; the bake code itself is a lazy module-- scene:agent-scene+lazy: the lazy bake module (sampling, Ramer-Douglas-Peucker simplification, source removal) is the featurediff --git a/changes/700.md b/changes/700.mddeleted file mode 100644index 5204fce9..00000000--- a/changes/700.md+++ /dev/null@@ -1 +0,0 @@-- `sdf` geometry meshes a tree of sphere, box, round box, capsule, cylinder and torus shapes with union, subtract, intersect, smooth blends and offset by surface nets, so blobby bodies and rounded joins need no hand modeling (#700)diff --git a/changes/700.size.md b/changes/700.size.mddeleted file mode 100644index b7f51a42..00000000--- a/changes/700.size.md+++ /dev/null@@ -1,4 +0,0 @@-- entry:modeling: signed-distance shapes with smooth union, offset and surface-nets meshing are a modeling capability agents lacked (3255 bytes gzip)-- scene:agent-scene: the sdf geometry type, its capability text and the lazy-load marker (242 bytes gzip)-- scene:agent-scene+lazy: the same code ships in the lazy bundle (3149 bytes gzip)-- goal:agent-scene: the capability is worth 242 bytes gzip over the goal; lead approved growth for modeling featuresdiff --git a/changes/701.md b/changes/701.mddeleted file mode 100644index 09c1a40d..00000000--- a/changes/701.md+++ /dev/null@@ -1 +0,0 @@-- `curve` geometry takes `kind` poly or nurbs, several `splines`, arc, spiral and star `shape`s and a `trim`, so rails, ropes and a growing vine need no hand-placed points (#701)diff --git a/changes/701.size.md b/changes/701.size.mddeleted file mode 100644index d0abd7cb..00000000--- a/changes/701.size.md+++ /dev/null@@ -1,4 +0,0 @@-- entry:modeling: arc, spiral and star primitives, poly and NURBS splines, trim and several splines per curve are a modeling capability agents lacked (3094 bytes gzip)-- scene:agent-scene: the curve geometry accepts shape, splines, kind, weights and trim (244 bytes gzip)-- scene:agent-scene+lazy: the same code ships in the lazy bundle (3366 bytes gzip)-- goal:agent-scene: the capability is worth 244 bytes gzip over the goal; lead approved growth for modeling featuresdiff --git a/changes/702.md b/changes/702.mddeleted file mode 100644index aff31695..00000000--- a/changes/702.md+++ /dev/null@@ -1 +0,0 @@-- `uv_project` (cube, cylinder, sphere) and `uv_pack` mesh edits write and pack UVs with one texel density (#702)diff --git a/changes/702.size.md b/changes/702.size.mddeleted file mode 100644index 12a71255..00000000--- a/changes/702.size.md+++ /dev/null@@ -1,3 +0,0 @@-- scene:agent-scene: cube, cylinder and sphere UV projection and island packing are a modeling capability agents lacked (352 bytes gzip)-- scene:agent-scene+lazy: the same code ships in the lazy bundle (1612 bytes gzip)-- goal:agent-scene: the capability is worth 352 bytes gzip over the goal; lead approved growth for modeling featuresdiff --git a/changes/703.md b/changes/703.mddeleted file mode 100644index 423efa4b..00000000--- a/changes/703.md+++ /dev/null@@ -1 +0,0 @@-- `mesh_edit` gains `poke`, `dual`, `tris_to_quads`, `symmetrize`, `scale_elements` and `extrude_edges` (#703)diff --git a/changes/703.size.md b/changes/703.size.mddeleted file mode 100644index 5b7122c6..00000000--- a/changes/703.size.md+++ /dev/null@@ -1,5 +0,0 @@-- entry:mesh: poke, dual, tris to quads, symmetrize, scale elements and extrude edges are modeling edits agents lacked (2815 bytes gzip); the lead approved growth for modeling capabilities-- scene:agent-scene: the six edit names and their validators ship in the core bundle (75 bytes gzip)-- scene:agent-scene+lazy: the same edits ship in the lazy bundle (2823 bytes gzip)-- goal:agent-scene: the capability is worth 75 bytes gzip over the goal; lead approved growth for modeling features-- tool:mesh_edit: six new op names in the op enum (76 bytes); field detail stays in the meshEdit.<op> capabilities topicdiff --git a/changes/704.md b/changes/704.mddeleted file mode 100644index 8cf2d716..00000000--- a/changes/704.md+++ /dev/null@@ -1 +0,0 @@-- Add a `build` mesh modifier that reveals faces over `start` and `length` frames in index, seeded random or axis order, with `reverse` (#704).diff --git a/changes/704.size.md b/changes/704.size.mddeleted file mode 100644index 68893257..00000000--- a/changes/704.size.md+++ /dev/null@@ -1,3 +0,0 @@-- scene:agent-scene: build is a new modeling capability (face-by-face reveal for construction shots) and the lead approves its small growth.-- scene:agent-scene+lazy: the same build modifier, loaded with the mesh engine.-- goal:agent-scene: new modeling capability approved by the lead; the bundle grows 170 bytes gzip.diff --git a/changes/744.md b/changes/744.mddeleted file mode 100644index d1eab6bc..00000000--- a/changes/744.md+++ /dev/null@@ -1 +0,0 @@-- `scene_restore` takes `revision` to undo the last few `scene_apply` edits in one call, with no checkpoint made first (#744)diff --git a/changes/744.size.md b/changes/744.size.mddeleted file mode 100644index 9d394021..00000000--- a/changes/744.size.md+++ /dev/null@@ -1,4 +0,0 @@-- tool:scene_restore: a cold agent that never made a checkpoint can still undo its last edits with one call (a `revision` field), 99 bytes on one tool-- scene:agent-scene: undo by revision keeps the last 4 states and a budget-aware drop of the oldest, 324 bytes gzip for an agent-facing capability-- scene:agent-scene+lazy: same code as scene:agent-scene-- goal:agent-scene: the growth is the revision history; no tool schema beyond 99 bytes grew, and agents can undo without planning a checkpointdiff --git a/changes/745.md b/changes/745.mddeleted file mode 100644index 655e4a66..00000000--- a/changes/745.md+++ /dev/null@@ -1 +0,0 @@-- Docs: add an FAQ page for the questions from the launch: three.js, size and speed, tokens, what the agent sees, undo and diffs (#745).diff --git a/changes/746.md b/changes/746.mddeleted file mode 100644index 9c621d68..00000000--- a/changes/746.md+++ /dev/null@@ -1 +0,0 @@-- Set `SIXTYSEVENJS_MCP_LOG=<file>` to log each MCP tool call (tool, duration, ok, result size, never arguments), and run `scripts/summarize-mcp-log.mjs` for calls, error rate and median duration per tool (#746)diff --git a/changes/751-flush-clip.size.md b/changes/751-flush-clip.size.mddeleted file mode 100644index 8ad8c9a5..00000000--- a/changes/751-flush-clip.size.md+++ /dev/null@@ -1,17 +0,0 @@-- entry:coplanar-overlap: cutting hidden flush faces (flush-clip.js: subtract the covering triangle, interpolate the vertex arrays, give every seam vertex to both sides of its edge), +3584 bytes gzip on top of step 1 (7880 to 11464); an addon chunk, loaded by agent scenes and by renderers that pass resolveCoplanar; it is what settles stacks deeper than the 16 ranks and gives the path tracer one face per plane-- entry:core: the renderer draws a cut geometry beside the part and the path tracer reads it, +45 bytes gzip on top of step 1 (85679 to 85724)-- scene:lit-box: same core growth (+52 bytes gzip); accepted for flicker-free rendering-- scene:gltf-box: same core growth (+51 bytes gzip); accepted for flicker-free rendering-- scene:gltf-box+lazy: same core growth; accepted for flicker-free rendering-- scene:agent-scene: same core growth (+71 bytes gzip); accepted for flicker-free rendering-- scene:agent-scene+lazy: the core growth plus the larger flush chunk; it is the fix, so it has to load-- goal:lit-box: the growth is the cut-geometry lookup in the core; accepted for flicker-free rendering-- goal:gltf-box: the growth is the cut-geometry lookup in the core; accepted for flicker-free rendering-- goal:agent-scene: the growth is the cut-geometry lookup in the core; accepted for flicker-free rendering--Measured in Node on the Melbourne drape map (9,718 pairs, 6,543 of them on one plane), one run on a loaded machine:-the flush pass takes 1.4 s where the search alone takes 0.9 s, and 0.7 s on a second run of the unchanged scene (cuts and orders are kept);-cut parts draw from their own copy of the vertex arrays: walls 110,368 to 119,988 vertices, glass 20,360 to 23,970, roofs 48,901 to 49,693, canopy 82,848 to 82,886, about 9 MB at 32 bytes a vertex (inferred from the counts, not read from the renderer);-triangles drawn: walls 55,184 to 62,547, glass 10,180 to 13,154, roofs 38,116 to 38,927, canopy 138,080 to 138,128.-Frame time and draw calls were not measured for this step.-Tool cost: no schema or result grew.diff --git a/changes/751-flush-rank.size.md b/changes/751-flush-rank.size.mddeleted file mode 100644index 7c19dea4..00000000--- a/changes/751-flush-rank.size.md+++ /dev/null@@ -1,17 +0,0 @@-- entry:core: the depth rank (a view-space bias in the vertex shader, ranked index ranges in the draw loop) lives in the core, +494 bytes gzip (85185 to 85679); it is what makes decals and flush faces separate the same way on every depth format-- entry:coplanar-overlap: the triangle-level flush search and the rank resolver, +3848 bytes gzip (4032 to 7880); an addon chunk, loaded by agent scenes and by renderers that pass resolveCoplanar-- scene:lit-box: same core growth (+483 bytes gzip); accepted for flicker-free rendering, optimisation later-- scene:gltf-box: same core growth (+509 bytes gzip); accepted for flicker-free rendering, optimisation later-- scene:gltf-box+lazy: same core growth (+509 bytes gzip); accepted for flicker-free rendering, optimisation later-- scene:agent-scene: same core growth plus the leftover report wiring (+749 bytes gzip); accepted for flicker-free rendering, optimisation later-- scene:agent-scene+lazy: the core growth plus the larger flush search chunk; it is the fix, so it has to load-- goal:lit-box: the growth is the depth rank code in the core; accepted for flicker-free rendering, optimisation later-- goal:gltf-box: the growth is the depth rank code in the core; accepted for flicker-free rendering, optimisation later-- goal:agent-scene: the growth is the depth rank code in the core; accepted for flicker-free rendering, optimisation later--Measured on the Melbourne drape map (282,399 triangles, 9 parts; RTX 3060 through Chrome, 1920x1080, 4 samples):-search and ranking once per parts change 0.9 to 1.4 s in Node (16,751 pairs on the drape file, 108,955 on the flat file); the search holds about 21 MB of typed arrays per 282k triangles while it runs (144 MB at the 2 M triangle budget);-one ranked index copy per affected batch, 3.2 MB on the CPU and +2.76 MiB of GPU index buffers (geometry 13.52 to 16.29 MiB);-draw calls 9 to 40 (walls 12 ranges, glass 15, roofs 6, canopy 2);-frame time 1.11 to 1.24 ms without ranks and 1.15 to 1.22 ms with ranks (median of 5 rounds of 60 frames ended by a readPixels, two runs, two views): no difference outside the noise.-Tool cost: no schema or result grew (`npm run tool-cost`); the detail sits in the depthBias topic of scene_capabilities.diff --git a/changes/751-near-flush.size.md b/changes/751-near-flush.size.mddeleted file mode 100644index 40f6d826..00000000--- a/changes/751-near-flush.size.md+++ /dev/null@@ -1 +0,0 @@-- scene:agent-scene+lazy: the near-flush cut (+80 bytes) settles nested facades a few millimetres apart, which left 22 rank-overflow triangles on the Melbourne city modeldiff --git a/changes/751.md b/changes/751.mddeleted file mode 100644index 1865b5b8..00000000--- a/changes/751.md+++ /dev/null@@ -1,4 +0,0 @@-- Depth precision by default (#751, phase 1 of 2): the colour pass draws with reversed-Z and a 32-bit float depth buffer wherever `EXT_clip_control` exists, at any far / near ratio, from the first frame; the 16-bit depth buffer is gone; without the extension the depth buffer is 24-bit and the near plane fits the visible bounds when the camera left near unset; `reversedDepth: false` opts out; `installDepthPrecision`, `hasFarOverlap` and `requestReversedDepth` are removed (use `installCoplanarDiagnostics` for the warning); `bench/flicker/index.html` is a viewer with a flicker probe-- Flush faces stop flickering by default (#751, phase 2, step 1 of 2): faces that lie on one plane or a few millimetres apart, inside one mesh or across parts, are ranked per triangle and drawn with a small view-space depth bias, so the face in front wins at every distance and on every depth format; agent scenes do it unless `environment.resolveCoplanar` is `false`, a renderer does it with `resolveCoplanar: resolveFlushParts`; `decal` and `depthLayer` use the same bias; what cannot be ranked (more than 15 faces stacked on one plane, double-sided faces a gap apart) comes back as a `coplanar-overlap` warning with a `reason`; `coplanarLayers`, `resolveCoplanarParts` and `EXACT_FLUSH_DISTANCE` are removed; `bench/flicker` has trap scenes (`?trap=`, `probe.mjs --traps`)-- Hidden flush faces are cut away (#751, phase 2, step 2 of 2): where an opaque face covers another on exactly the same plane (1 cm2 or more), the covered part is cut out of the copy the hidden face draws with, every vertex array interpolated, so a stack of any depth on one plane stops flickering and no longer reports `rank-overflow`; parts and their geometry stay as they are (`flushOrderOf(part).geometry` holds the cut copy), instances of one geometry share a cut, and the path tracer traces the cut geometry; a face under a blended or masked face, or a double-sided face under a one-sided one, is still ranked; `bench/flicker` gains the `plaque-closeup-0.5m` trap with an open-pixel count-- Near-flush faces are cut too (#751): an opaque face in front of another by at most a thousandth of the side of their shared area (from 1 mm to 1 cm) cuts the face behind it, as a flush face does, instead of taking a rank; the Melbourne city model, whose stacked blocks nest facades 5 to 17 mm apart up to 17 deep, now reports no `rank-overflow`diff --git a/changes/751.size.md b/changes/751.size.mddeleted file mode 100644index 650da559..00000000--- a/changes/751.size.md+++ /dev/null@@ -1,7 +0,0 @@-- entry:core: reversed-Z moved into the core (+1859 bytes gzip, 83284 to 85143) so the first frame is already drawn with the right depth; owner accepted the cost for flicker-free rendering, optimisation later-- scene:lit-box: same core growth (+1880 bytes gzip); owner accepted the cost for flicker-free rendering, optimisation later-- scene:gltf-box: same core growth (+2050 bytes gzip); owner accepted the cost for flicker-free rendering, optimisation later-- scene:agent-scene: same core growth (+2035 bytes gzip); owner accepted the cost for flicker-free rendering, optimisation later-- goal:lit-box: the growth is the reversed-Z code and the near-plane fit; owner accepted the cost for flicker-free rendering, optimisation later-- goal:gltf-box: the growth is the reversed-Z code and the near-plane fit; owner accepted the cost for flicker-free rendering, optimisation later-- goal:agent-scene: the growth is the reversed-Z code and the near-plane fit; owner accepted the cost for flicker-free rendering, optimisation laterdiff --git a/changes/761.md b/changes/761.mddeleted file mode 100644index ce2199f9..00000000--- a/changes/761.md+++ /dev/null@@ -1,2 +0,0 @@-- scene_inspect and scene_capabilities take the inputs Haiku sent in the bench: short mesh edit branch names (meshEdit.inset), dotted fields (environment.spotLights), near topic names (uvs, scene.terrain), source nodes without a mesh of their own, includeBounds with kind hierarchy; an unwalkable path start names the nearest walkable point (#761)-- scene_inspect with a node ID lists the parts below it and tags each with `fromNode`; a node with no part below it, such as a skeleton joint, returns its transform (parent, joint flag, local translation, rotation and scale, rest world position) instead of an error (#761)diff --git a/changes/761.size.md b/changes/761.size.mddeleted file mode 100644index bdebc9bc..00000000--- a/changes/761.size.md+++ /dev/null@@ -1,2 +0,0 @@-- entry:navmesh: the unwalkable-start error names the nearest walkable point, so an agent fixes its start in one call instead of probing.-- scene:agent-scene+lazy: node IDs in scene_inspect expand to their parts, and scene_capabilities takes branch prefixes, dotted fields and near topic names; these were the failed calls of the bench run.diff --git a/changes/770.md b/changes/770.mddeleted file mode 100644index b8428452..00000000--- a/changes/770.md+++ /dev/null@@ -1 +0,0 @@-- `67js/addons/runtime` adds `createRuntime`, a live game loop with fixed, variable or interpolated steps, ordered pluggable systems, pause on a hidden tab and a frame-time readout (#770)diff --git a/package-lock.json b/package-lock.jsonindex 9c1ea6bb..f68b3b5d 100644--- a/package-lock.json+++ b/package-lock.json@@ -1,12 +1,12 @@{"name": "@codepawlhq/67js",- "version": "0.15.0",+ "version": "0.18.0","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "@codepawlhq/67js",- "version": "0.15.0",+ "version": "0.18.0","license": "MIT","dependencies": {"playwright-core": "1.64.1"diff --git a/package.json b/package.jsonindex 97aad972..fbd7554d 100644--- a/package.json+++ b/package.json@@ -1,6 +1,6 @@{"name": "@codepawlhq/67js",- "version": "0.17.0",+ "version": "0.18.0","private": false,"type": "module","description": "3D engine that AI agents drive: an MCP server, PNG previews and CPU or GPU export to images and video",@@ -175,7 +175,7 @@"smoke:agent-review-close": "node scripts/smoke-agent-review-close.mjs","smoke:film-physics": "node scripts/smoke-film-physics.mjs","plugin:sync": "node scripts/sync-plugin-version.mjs",- "publish:ci":"node scripts/publish-ci.mjs",+ "publish:ci": "node scripts/publish-ci.mjs","smoke:character": "node scripts/smoke-character.mjs","smoke:modeling": "node scripts/smoke-modeling.mjs","smoke:material-maps": "node scripts/smoke-material-maps.mjs",diff --git a/src/version.js b/src/version.jsindex 8d262655..2113701c 100644--- a/src/version.js+++ b/src/version.js@@ -1,2 +1,2 @@// Kept as a literal so bundles do not carry all of package.json. tests/version.test.js keeps it in step.-export const VERSION = '0.17.0';+export const VERSION = '0.18.0';