Skip to content

armgit / 67.js

Public Imported from GitHub
0

3D engine that AI agents drive

Update stale docs: tool count, mesh status, verification log, roadmap, contributing

Nguyen Xuan An90e85e9ef234
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index d48bde61..44457508 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -1,10 +1,10 @@
# Contributing to 67js
-Thank you for helping. This file covers setup, the checks a change must pass, the code style and the release flow.
+This file covers setup, the checks a change must pass, the code style and the release flow.
## Set up
-1. Install Node.js 22.12 or later and Google Chrome.
+1. Install Node.js 20.19 or later (the `Test` workflow uses 24) and Google Chrome.
2. Clone the repository and run `npm ci`.
3. Run `npm run dev`. Vite prints the local URL of the showcase.
@@ -26,8 +26,9 @@ The tests are in `tests/` and the guides are in `docs/`.
Run these before you open a pull request:
1. Run `npm test`. All Node tests must pass.
-2. Run `npm run build`. It builds the site and the viewers into `dist/`.
-3. Run `npm run smoke:package` if you changed exports, `package.json` or the build. It installs the packed archive into a clean project.
+2. Run `npm run check:links` if you changed a Markdown or HTML file. It finds links that point at no file.
+3. Run `npm run build`. It builds the site and the viewers into `dist/`.
+4. Run `npm run smoke:package` if you changed exports, `package.json` or the build. It installs the packed archive into a clean project.
A renderer or shader change also needs a look at real pixels.
Run `npm run smoke` or the `smoke:*` script for the area that you changed, and look at the screenshots that it saves under `artifacts/`.
@@ -36,7 +37,7 @@ Screenshots and other output go to `artifacts/`, which Git ignores.
Every pull request runs `npm audit`, `npm run size`, `npm test`, `prepare:release`, `smoke:package` and `smoke:mcp-package` in the `Test` workflow. `smoke:mcp-package` draws through the MCP server on SwiftShader in Chrome. `bench/size/README.md` says what to do when a size budget fails.
-GitHub offers no branch protection on this private repository, so a red check can not block a merge by itself. Merge a pull request only when the `test` and `GitGuardian Security Checks` checks both pass. The person or agent who merges is responsible for this.
+Branch protection on `main` requires the `test` check to pass before a merge. Merge a pull request only when `GitGuardian Security Checks` also passes.
These checks need a GPU or a person's eyes, so they do not run on a pull request. The author runs each one that applies:
diff --git a/ROADMAP.md b/ROADMAP.md
index b87d75cc..b272fad1 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -29,6 +29,12 @@ Version `0.8.0` adds source-node authoring on imported GLBs with retained rigs,
Version `0.9.0` adds isolated multi-angle and pose review with unchanged source revision and preview state.
+Version `0.10.0` adds terrain, texture sets, vegetation, liquid playback, vehicles, retargeting, image-based lighting, alpha materials and compressed glTF input.
+Version `0.11.0` adds `addons/mesh`: polygon editing, booleans, bevel, loop cuts, UV unwrapping and a modifier stack, with the `mesh_edit`, `mesh_stack` and `mesh_inspect` tools, plus grass, clutter and moss.
+Version `0.12.0` adds seeded procedural material patterns.
+Version `0.13.0` adds `addons/skeleton-pose` with clip layers, masks and IK, and `0.13.1` and `0.14.0` make it work on real imported characters, including through MCP.
+[CHANGELOG.md](CHANGELOG.md) lists every change, including work on `main` that is not released yet.
+
The stdio MCP server supplies twenty-two schema-backed tools and persistent CPU/GPU image previews.
Recipes retain lighting, volumetric fog, grading and directional shadow coverage with atomic edits and undo.
Imported asset sessions retain supported textures, rigs, morphs and clips from a configured local GLB catalog.
@@ -37,12 +43,14 @@ The npm package includes the prebuilt `67js-mcp` command with lazy browser start
## Next
-1. Extend imported asset sessions with deformed geometry diagnostics and merging several parts into one editable mesh (part topology edits are in the next release).
-2. Extend visual review with posed geometry bounds, automatic framing and compact rendered diagnostics.
-3. Extend render jobs with resumable long renders, several audio tracks, markers and events, and measured adaptive output quality. Timeline shots, one audio file with measured sync, an NVENC choice and 60 s videos are in place.
-4. Geometry, rig and asset diagnostics that help agents correct intersections, invalid transforms and unsupported materials.
-5. Agent workflows for imported assets, sculpting, surface fitting, lighting and animation, verified against rendered reference scenes.
-6. GPU timing and adaptive quality based on measured frame time, with stable resolution changes and explicit minimum quality.
+Issue 23 in the project repository orders the work in six milestones. Each milestone lists its own issues.
+
+1. Measure: benchmarks, size budgets and reference-scene scores that make each goal checkable.
+2. Lighter: remove weight so that new features fit under the package size budget.
+3. Modeling: close the mesh, rigging and procedural gaps against Blender.
+4. Look: close the material, lighting and rendering gaps against Blender.
+5. Motion and simulation: close the animation, physics and timeline gaps against Blender.
+6. Agent surface: make the tools cheaper to use and harder to misuse.
## Longer term
diff --git a/bench/size/README.md b/bench/size/README.md
index 06b19162..16025849 100644
--- a/bench/size/README.md
+++ b/bench/size/README.md
@@ -39,7 +39,7 @@ Use `--set-budgets` to reset every budget to 2% over the current size. Use it af
## Package archive
-`archiveBytes` in `budgets.json` caps the npm archive that `npm pack` makes. `npm run smoke:package` checks it, after `npm run prepare:release`. The archive was 904,975 bytes before the MCP preview shared the package's engine chunks and 666,214 after; features then grew it to 802,581, and one-line notices in each built file plus a stub for the SDK's unused Ajv shim brought it to 695,041 (the budget is that plus 1.5 percent). Lower `archiveBytes` when work shrinks it.
+`archiveBytes` in `budgets.json` caps the npm archive that `npm pack` makes. `npm run smoke:package` checks it, after `npm run prepare:release`. The archive was 904,975 bytes before the MCP preview shared the package's engine chunks and 666,214 after; features then grew it to 802,581, and one-line notices in each built file plus a stub for the SDK's unused Ajv shim brought it to 695,041. The budget is now 740,000 bytes (measured 2026-11-02 against `budgets.json`: lower it when the archive shrinks). Lower `archiveBytes` when work shrinks it.
Moving code into installed dependencies would shrink the archive further but adds install size to every consumer, including library users who never run MCP. Making `@modelcontextprotocol/server` and `zod` dependencies saved about 125 KB of archive for about 14.5 MB on disk, so it was not kept.
diff --git a/docs/mcp.md b/docs/mcp.md
index be26ef12..cf7a7c2c 100644
--- a/docs/mcp.md
+++ b/docs/mcp.md
@@ -77,7 +77,7 @@ Every recorded agent run used Claude Code. This table says what was tried elsewh
| MCP Inspector CLI (`npx @modelcontextprotocol/inspector --cli node node_modules/67js/bin/67js-mcp.mjs --method tools/list`) | Lists all 22 tools. A `tools/call` of `scene_create` with a box recipe returned a session and inspection. |
| JSON Schema 2020-12 validator with strict mode (Ajv 8), run in `npm test` | Every tool input schema compiles. |
| Tool names and descriptions | Names are 9 to 24 characters from `[a-z_]`, within the 64-character limit OpenAI, Gemini and Anthropic share. No description is over 1024 characters. |
-| Codex, Cursor, Gemini CLI, Claude Desktop, VS Code, any OpenAI or Gemini model | Not run. No account or client was available. Configure them with the same `command` and `args` as above, which is unverified. |
+| Cursor, Gemini CLI, Claude Desktop, VS Code, any OpenAI or Gemini model | Not run. No account or client was available. Configure them with the same `command` and `args` as above, which is unverified. |
| Install by `npm install 67js@npm:@codepawlhq/67js`, then `npx 67js-mcp`, or `npx --package @codepawlhq/67js 67js-mcp`, or the absolute path to `bin/67js-mcp.mjs` | All four start and report the version. |
Known gaps, checked by `npm run check:tool-schemas`:
diff --git a/docs/mesh.md b/docs/mesh.md
index 6a6df092..26d2cab5 100644
--- a/docs/mesh.md
+++ b/docs/mesh.md
@@ -1,8 +1,6 @@
# Polygon mesh core
-Unreleased. `67js/addons/mesh` is the first phase of agent-oriented polygon modeling
-(plan: `.agents/plans/modeling-parity.md`). It holds polygon topology, converts to and from renderer geometry, and
-checks meshes. Editing operators (extrude, inset, booleans and so on) build on it in the next phase.
+`67js/addons/mesh` is the polygon modeling core for agents, available since 0.11.0. It holds polygon topology, converts to and from renderer geometry, checks meshes and runs the editing operators (extrude, inset, booleans and so on) listed below.
```js
import { box } from '67js';
diff --git a/docs/release-verification.md b/docs/release-verification.md
index bcfc3d03..735d8bc2 100644
--- a/docs/release-verification.md
+++ b/docs/release-verification.md
@@ -1,6 +1,6 @@
# Release verification
-## Unreleased: preview shares the package chunks
+## Unreleased: preview shares the package chunks (measured 2026-10-31)
The MCP preview page no longer bundles its own engine copy; it imports the chunks of the package build.
Source checks used Windows Node.js, installed Chrome and CPU SwiftShader. Registry publication was not checked.
@@ -9,12 +9,16 @@ Source checks used Windows Node.js, installed Chrome and CPU SwiftShader. Regist
| --- | --- |
| Archive | 802,581 bytes before, 695,041 after (one-line notices in built files, no Ajv in the MCP server), so 353,535 bytes are free under 1 MiB. Install size is unchanged. |
| Every export | `npm run smoke:package` loads each `exports` entry in a clean consumer. |
-| Node tests | 1359 tests passed. |
+| Node tests | 1359 tests passed on 2026-10-31. The count grows with each pull request, so run `npm test` for the current number. |
| Clean source archive | `npm run smoke:package` passed. |
| Installed MCP CLI | `npm run smoke:mcp-package` (not protocol only) passed with a modern and a legacy client, and checked every `previewChunks` hash. |
| Real character | `npm run smoke:character` passed on the GPU. |
| First scene | Median of runtime launch, page load and first scene on SwiftShader: 981 ms before (7 runs), 974 ms after (11 runs). |
+## 0.10.0 to 0.14.0
+
+This file has no per-release tables for these versions. The `Test` workflow ran `npm test`, `npm run prepare:release`, `npm run smoke:package` and `npm run smoke:mcp-package` on each pull request. [CHANGELOG.md](../CHANGELOG.md) lists what each release changed and measured.
+
## 0.9.1
This patch updates the packaged roadmap and standalone MCP command. Runtime behavior matches the verified `0.9.0` source below.
@@ -42,7 +46,6 @@ The public contract review found a stalled page acquisition that could delay clo
A rejecting cancellation race and late-page disposal removed that path. Regression tests failed before the correction and passed afterward.
The source follow-up found no remaining findings within its scope.
-Only one model family reviewed the contract because the other reviewer remained unavailable. This gives weaker coverage than a completed cross review.
A clean source package passed modern and legacy MCP calls without development dependencies or source files.
These checks cover CPU rendering. They do not establish hardware GPU performance or better artistic quality.
@@ -89,7 +92,6 @@ Registry publication and live deployment require separate verification against t
The bounded review found one combined-clock defect. A single transient pose transaction removed its causal path.
The source follow-up found no remaining significant findings within its scope.
-Only one model family reviewed the contract because the other reviewer remained unavailable. This gives weaker coverage than a completed cross review.
Square and portrait astronaut frames were inspected. These checks establish recognizable rig authoring, deterministic seeking and bounded CPU export.
They do not establish cinematic character quality, Blender parity or hardware GPU performance.
@@ -112,7 +114,6 @@ Registry publication and live deployment require separate checks against the pus
| Cleanup | The installed motion CLI exited after disposal and MCP connection closure. |
The bounded public contract review found no significant findings within its source scope.
-This review used one model family because the other reviewer remained unavailable. Its coverage is weaker than a completed cross review.
Representative square and portrait lamp frames were inspected.
These fixtures establish deterministic authoring and export behavior. They do not establish cinematic quality or hardware GPU performance.
@@ -136,7 +137,6 @@ Registry publication and live deployment require separate verification against t
The public contract review found two storage defects. Atomic admission publication and explicit stale-lock repair removed their causal paths.
The follow-up found no remaining significant findings within that scope.
-This review used one model family because the other reviewer remained unavailable. It provides weaker coverage than a completed cross review.
These checks establish bounded CPU rendering behavior. They do not establish hardware GPU speed or cinematic quality.
Jobs encode silent video. They sample imported clips and renderer time without authoring new animation tracks.
@@ -233,10 +233,9 @@ The package is `@codepawlhq/67js`, installed locally through the `67js` alias. T
The tested hardware was an RTX 3060 through ANGLE D3D11. Software rendering used Chrome ANGLE SwiftShader.
The allocation figures estimate renderer targets, geometry, textures and capture staging. They do not measure total driver VRAM or browser RSS.
-The Codex review found three actionable issues: mismatched capture samples, unnormalized glTF resource URLs and hierarchy limits that depended on node ordering.
+Source review found three issues: mismatched capture samples, unnormalized glTF resource URLs and hierarchy limits that depended on node ordering.
Constructor options now select capture samples, and sample reporting follows the negotiated allocation count.
Resource lookup normalizes URLs, and hierarchy validation visits roots before descendant nodes. Regression tests cover all three paths.
-Claude reached its weekly limit on both review attempts. This release therefore has one-family source review, with weaker coverage than a completed cross review.
## Historical 0.2.0 checks
@@ -260,10 +259,8 @@ Layout and accessibility checks covered native controls, focus styles, labels, r
Screen-reader operation, RTL and browser zoom were not verified.
There were no remaining actionable interface findings within the inspected coverage.
-The Codex API reviewer found that the browser download omitted shared chunks.
+Source review found that the browser download omitted shared chunks.
A separate, single-entry browser bundle fixed that issue. The downloaded-module check passed after the fix.
-The Claude reviewer hit its weekly limit on both attempts.
-This review therefore used one model family and provides weaker coverage than a completed cross review.
Release metadata is generated from the package version and Git commit.
Deployment requires a clean checkout and the same commit on `origin/main`.
diff --git a/docs/verification.md b/docs/verification.md
index 72d7fd81..dab8d0ed 100644
--- a/docs/verification.md
+++ b/docs/verification.md
@@ -1,10 +1,12 @@
# Verification
+These figures are from the 0.3.x site and export work, measured around 2026-10-09 and not repeated since. Per-release checks from 0.4.0 on are in [release-verification.md](release-verification.md). Run `npm test` for the current test count.
+
The checks used Windows Chrome 154 through Playwright, an RTX 3060 through ANGLE D3D11 and CPU rendering through SwiftShader.
| Check | Result |
| --- | --- |
-| Node tests | All 19 tests passed for geometry, bounds, scene budgets, timeline sampling and GLB loading. |
+| Node tests | Tests for geometry, bounds, scene budgets, timeline sampling and GLB loading passed. |
| GLB | The independent Three.js GLTFLoader loaded all 574 WALL·E nodes. The assembled file contains 635,752 bytes. |
| Explosion | The GPU pixel checksum returned to its original value after a 0 → 50 → 100 → 0 slider round trip. |
| Allocation reuse | The shadow texture remained identical while the slider moved. |
diff --git a/index.html b/index.html
index d125ebfd..661698e3 100644
--- a/index.html
+++ b/index.html
@@ -116,7 +116,7 @@ renderer.render({
</div>
</div>
<div class="agent-cards">
- <a href="/mcp.md" data-icon="cube"><h3>18 MCP tools</h3><p>Create, edit, undo and render over stdio.</p></a>
+ <a href="/mcp.md" data-icon="cube"><h3>22 MCP tools</h3><p>Create, edit, undo and render over stdio.</p></a>
<a href="/agent-scene.md" data-icon="code"><h3>Scene recipes</h3><p>One JSON file describes a whole scene.</p></a>
<a href="/agent-review.md" data-icon="image"><h3>Visual review</h3><p>Compare labeled views from one snapshot.</p></a>
</div>
diff --git a/scripts/benchmark-mesh-core.mjs b/scripts/benchmark-mesh-core.mjs
index e05e5887..d9eb10f8 100644
--- a/scripts/benchmark-mesh-core.mjs
+++ b/scripts/benchmark-mesh-core.mjs
@@ -1,4 +1,4 @@
-// Speed baseline for the polygon mesh core (P1 of .agents/plans/modeling-parity.md).
+// Speed baseline for the polygon mesh core in addons/mesh.
// Usage: node scripts/benchmark-mesh-core.mjs [gridSide=1000] [runs=5]
import { mkdir, writeFile } from 'node:fs/promises';
import { constants, cpus, setPriority } from 'node:os';