Skip to content

armgit / forma

Public Imported from GitHub
0

A 1.2 MB pure-Rust rewrite of headless Blender built for AI agents — 3D B-rep modeling engine, CLI, and MCP server

chore: release v0.4.5

wrong-nebula012ed66f4329
diff --git a/Cargo.lock b/Cargo.lock
index cdb1bf8..1db03e7 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4,7 +4,7 @@ version = 4
[[package]]
name = "forma-cli"
-version = "0.4.4"
+version = "0.4.5"
dependencies = [
"forma-core",
"forma-lang",
@@ -13,7 +13,7 @@ dependencies = [
[[package]]
name = "forma-core"
-version = "0.4.4"
+version = "0.4.5"
dependencies = [
"serde",
"serde_json",
@@ -23,14 +23,14 @@ dependencies = [
[[package]]
name = "forma-lang"
-version = "0.4.4"
+version = "0.4.5"
dependencies = [
"forma-core",
]
[[package]]
name = "forma-mcp"
-version = "0.4.4"
+version = "0.4.5"
dependencies = [
"forma-core",
"forma-lang",
@@ -50,7 +50,7 @@ dependencies = [
[[package]]
name = "forma-server"
-version = "0.4.4"
+version = "0.4.5"
dependencies = [
"forma-core",
"forma-lang",
@@ -59,7 +59,7 @@ dependencies = [
[[package]]
name = "forma-wasm"
-version = "0.4.4"
+version = "0.4.5"
dependencies = [
"forma-core",
"forma-lang",
diff --git a/Cargo.toml b/Cargo.toml
index 247828c..99bf2bd 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -17,7 +17,7 @@ default-members = [
]
[workspace.package]
-version = "0.4.4"
+version = "0.4.5"
edition = "2021"
license = "GPL-3.0-or-later"
diff --git a/ROADMAP.md b/ROADMAP.md
index 88ba164..3a9dadf 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -2,7 +2,7 @@
A quick look at what works today, what's up next, and where to jump in. See [`CONTRIBUTING.md`](CONTRIBUTING.md) to get started.
-## Works Today (`v0.4.4`)
+## Works Today (`v0.4.5`)
- **Watertight pure-Rust mesh kernel:** booleans (with multi-hole batching), bevels, shell, crease-aware Catmull-Clark `subsurf`, voxel `remesh`, QEM `decimate`, `pipe`, `loft`, `sweep`, `thread`, `text3d`, and linear/radial patterns.
- **`Forma-Pipe` & strict safety:** semantic selectors, relational placement (`on`, `align`), `clearance()` / `section()` queries, transactional rollback, strict-by-default manifold checks, and GBNF grammar.
diff --git a/docs/AUTORESEARCH_HILLCLIMB.md b/docs/AUTORESEARCH_HILLCLIMB.md
index 86255f8..53d7e2b 100644
--- a/docs/AUTORESEARCH_HILLCLIMB.md
+++ b/docs/AUTORESEARCH_HILLCLIMB.md
@@ -1,5 +1,5 @@
> [!NOTE]
-> **Archived optimization log (`v0.2`–`v0.4`).** Some historical sizes, token counts, and early WASM symbol names (such as `eval_pipe_text`) have since evolved (current WASM C-ABI uses `forma_session_*`). For current `v0.4.4` APIs and specs, see [docs/reference/apis.md](reference/apis.md).
+> **Archived optimization log (`v0.2`–`v0.4`).** Some historical sizes, token counts, and early WASM symbol names (such as `eval_pipe_text`) have since evolved (current WASM C-ABI uses `forma_session_*`). For current `v0.4.5` APIs and specs, see [docs/reference/apis.md](reference/apis.md).
# `forma` v0.2 Autoresearch Hill-Climb & Universal Core Upgrade Log
diff --git a/docs/PHASE1_ARCHITECTURE_AUDIT.md b/docs/PHASE1_ARCHITECTURE_AUDIT.md
index c281afa..f41c326 100644
--- a/docs/PHASE1_ARCHITECTURE_AUDIT.md
+++ b/docs/PHASE1_ARCHITECTURE_AUDIT.md
@@ -1,5 +1,5 @@
> [!NOTE]
-> **Archived engineering snapshot (initial v0.1 architecture study).** Binary sizes, memory figures, and architecture details reflect the initial pre-build Blender audit. For current `v0.4.4` architecture and specs, see [docs/explanation/architecture.md](explanation/architecture.md) and [README.md](../README.md).
+> **Archived engineering snapshot (initial v0.1 architecture study).** Binary sizes, memory figures, and architecture details reflect the initial pre-build Blender audit. For current `v0.4.5` architecture and specs, see [docs/explanation/architecture.md](explanation/architecture.md) and [README.md](../README.md).
# Phase 1.1 — Blender 5.3.0 Architecture Audit & Build-vs-Slice Decision Record
diff --git a/docs/README.md b/docs/README.md
index a414074..bc3018d 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -1,6 +1,6 @@
# Forma Documentation
-Forma (`v0.4.4`) is a headless, pure-Rust 3D polyhedral modeling engine built for AI agents, edge runtimes, CI pipelines, and developers. It runs through a native CLI (`forma`), a zero-dependency universal npm WASM package (`forma-3d` for Node.js, Cloudflare Workers, Edge, and browsers), an MCP stdio server (`forma-mcp` / `forma-3d-mcp`), an opt-in HTTP microservice (`forma-server`), and an offline Python sandbox kit (`sandbox/forma.py`).
+Forma (`v0.4.5`) is a headless, pure-Rust 3D polyhedral modeling engine built for AI agents, edge runtimes, CI pipelines, and developers. It runs through a native CLI (`forma`), a zero-dependency universal npm WASM package (`forma-3d` for Node.js, Cloudflare Workers, Edge, and browsers), an MCP stdio server (`forma-mcp` / `forma-3d-mcp`), an opt-in HTTP microservice (`forma-server`), and an offline Python sandbox kit (`sandbox/forma.py`).
```mermaid
flowchart LR
diff --git a/docs/VERIFICATION_REPORT.md b/docs/VERIFICATION_REPORT.md
index fc38f54..9d93312 100644
--- a/docs/VERIFICATION_REPORT.md
+++ b/docs/VERIFICATION_REPORT.md
@@ -1,5 +1,5 @@
> [!NOTE]
-> **Archived verification snapshot (v0.2 release gate).** Measurements such as binary size (`1.1 MB`), peak RSS (`2.16 MB`), and MCP tokens (`722`) reflect v0.2 before later features (`.step`, `.3mf`, `units()`, LSCM UVs, Surface Nets remeshing). For current `v0.4.4` footprints and specs, see [README.md](../README.md) and [docs/reference/apis.md](reference/apis.md).
+> **Archived verification snapshot (v0.2 release gate).** Measurements such as binary size (`1.1 MB`), peak RSS (`2.16 MB`), and MCP tokens (`722`) reflect v0.2 before later features (`.step`, `.3mf`, `units()`, LSCM UVs, Surface Nets remeshing). For current `v0.4.5` footprints and specs, see [README.md](../README.md) and [docs/reference/apis.md](reference/apis.md).
# Phase 3.6 — Independent Automated Verification Report
diff --git a/docs/how-to/deploy-http-server.md b/docs/how-to/deploy-http-server.md
index b6482ee..7c3824c 100644
--- a/docs/how-to/deploy-http-server.md
+++ b/docs/how-to/deploy-http-server.md
@@ -28,7 +28,7 @@ curl -s http://127.0.0.1:8080/health
Expected response:
```json
-{"status":"ok","version":"0.4.4","workers":4}
+{"status":"ok","version":"0.4.5","workers":4}
```
## Option B: Deploy the `FROM scratch` Docker image (AWS, Cloudflare, Cloud Run, Fly.io)
@@ -36,8 +36,8 @@ Expected response:
The repository [`Dockerfile`](../../Dockerfile) builds static `musl` binaries (`forma-server` and `forma` using `--profile static-release`) and copies them into `FROM scratch` (`< 5 MB` final image) with `FORMA_BIND=0.0.0.0:8080` and port `8080` exposed:
```bash
-docker build -t forma-server:0.4.4 .
-docker run --rm -p 8080:8080 -e FORMA_WORKERS=4 forma-server:0.4.4
+docker build -t forma-server:0.4.5 .
+docker run --rm -p 8080:8080 -e FORMA_WORKERS=4 forma-server:0.4.5
```
Because the container requires zero GPU and ~15 MB RAM, it deploys directly to **AWS ECS/Fargate/App Runner**, **Cloudflare Containers**, **Google Cloud Run**, **Azure Container Apps**, **Fly.io**, **Railway**, and **Render**.
diff --git a/docs/reference/apis.md b/docs/reference/apis.md
index 8e0e60b..69092da 100644
--- a/docs/reference/apis.md
+++ b/docs/reference/apis.md
@@ -1,13 +1,13 @@
# MCP, JS/TS/Edge, and HTTP API reference
-Exact interface contracts verified against `wrong-nebula/forma` `v0.4.4` (`crates/forma-mcp/src/main.rs`, `bin/forma-mcp.mjs`, `lib/edge.mjs`, `lib/workerd.mjs`, `lib/index.mjs`, `lib/index.d.ts`, and `crates/forma-server/src/main.rs`).
+Exact interface contracts verified against `wrong-nebula/forma` `v0.4.5` (`crates/forma-mcp/src/main.rs`, `bin/forma-mcp.mjs`, `lib/edge.mjs`, `lib/workerd.mjs`, `lib/index.mjs`, `lib/index.d.ts`, and `crates/forma-server/src/main.rs`).
## MCP stdio JSON-RPC 2.0 API
- **Executables**: native `forma-mcp` (`crates/forma-mcp`) or npm WASM `forma-3d-mcp` / `forma-3d mcp` (`bin/forma-mcp.mjs`).
- **Transport**: newline-delimited JSON-RPC 2.0 over stdin/stdout.
- **Protocol version**: `"2024-11-05"`.
-- **Server identity**: `{ "name": "forma-mcp", "version": "0.4.4" }`.
+- **Server identity**: `{ "name": "forma-mcp", "version": "0.4.5" }`.
- **Supported methods**: `initialize`, `ping`, `tools/list`, `tools/call`.
- **Token footprint**: `721` `o200k` tokens across all 4 tool definitions (hard contributor ceiling `< 800`).
@@ -87,7 +87,7 @@ Binary built with `cargo build --profile static-release -p forma-server` (exclud
| Method and path | Request | Response |
| --- | --- | --- |
-| `GET /health` | None | `200 OK` JSON: `{"status":"ok","version":"0.4.4","workers":N}` |
+| `GET /health` | None | `200 OK` JSON: `{"status":"ok","version":"0.4.5","workers":N}` |
| `GET /spec` | Optional query `gbnf=1`, `dialect=compact`, or `topic=<name>` | `200 OK` `text/plain; charset=utf-8` |
| `POST /v1/eval` | JSON `{ code, strict?, dialect?, format?, size?, part?, unit?, assets? }` | `format="json"` (default) returns JSON (`ok`, `elapsed_ms`, `text`, `parts`, `diff`, `warnings`); `format="text"` returns `text/plain`; `glb`, `obj`, `stl`, `3mf`, `step`/`stp`, `png`, `svg` return binary + `X-Forma-*` headers. |
| `POST /v1/process` | JSON `{ asset_base64, input_format?, output_format?, size?, yup?, scale?, center_z0?, decimate?, target_faces?, unit? }` | `scale` accepts a uniform number or `[sx, sy, sz]`; `target_faces` works with or without `decimate`. Returns binary mesh/render (`output_format` defaults to `"glb"`) + `X-Forma-*` headers. |
diff --git a/docs/reference/cli.md b/docs/reference/cli.md
index ff6c6dc..59c2c39 100644
--- a/docs/reference/cli.md
+++ b/docs/reference/cli.md
@@ -1,6 +1,6 @@
# CLI reference (forma and forma-3d)
-Forma ships two command-line executables backed by the same `forma-lang` and `forma-core` crates (`v0.4.4`):
+Forma ships two command-line executables backed by the same `forma-lang` and `forma-core` crates (`v0.4.5`):
- `forma`: native Rust binary compiled from `crates/forma-cli/src/main.rs`.
- `forma-3d` (alias `forma` inside the npm package): Node.js (`>=18.0.0`) WebAssembly wrapper at `bin/forma.mjs`.
@@ -15,7 +15,7 @@ Forma ships two command-line executables backed by the same `forma-lang` and `fo
| `draw` | Yes | Yes | Evaluate a script and generate a 3-view orthographic SVG blueprint (`--out blueprint.svg` required; pass `--scene` for all parts). |
| `spec` | Yes | Yes | Print the compiled `Forma-Pipe` or `Forma-DSL` specification, a progressive `--topic` spec, or the `--gbnf` grammar. |
| `mcp` | Separate binary (`forma-mcp`) | Yes (`forma-3d mcp` / `forma-3d-mcp`) | Start the stdio JSON-RPC 2.0 MCP server. |
-| `version` / `--version` / `-V` | Yes | Yes | Print the CLI version string (`forma 0.4.4`). |
+| `version` / `--version` / `-V` | Yes | Yes | Print the CLI version string (`forma 0.4.5`). |
| `help` / `--help` / `-h` | Yes | Yes | Print usage summary. |
## `eval` options
diff --git a/docs/reference/language-and-formats.md b/docs/reference/language-and-formats.md
index 0477c6e..887d879 100644
--- a/docs/reference/language-and-formats.md
+++ b/docs/reference/language-and-formats.md
@@ -1,6 +1,6 @@
# Language, units, and formats reference
-Authoritative specification for Forma's two modeling dialects, semantic selectors, progressive topic extensions, unit system, and import/export formats (`v0.4.4`). For the exact live compiled prompt text, run `forma spec` or `npx forma-3d spec`.
+Authoritative specification for Forma's two modeling dialects, semantic selectors, progressive topic extensions, unit system, and import/export formats (`v0.4.5`). For the exact live compiled prompt text, run `forma spec` or `npx forma-3d spec`.
## Coordinate system and evaluation rules
diff --git a/docs/showcase.html b/docs/showcase.html
index ef638bb..00c6f25 100644
--- a/docs/showcase.html
+++ b/docs/showcase.html
@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8"/>
-<title>Forma v0.4.4 — Pure-Rust 3D Polyhedral Engine Built for AI Agents</title>
+<title>Forma v0.4.5 — Pure-Rust 3D Polyhedral Engine Built for AI Agents</title>
<style>
:root { --bg:#0b1020; --panel:#131b30; --border:#24324d; --text:#f1f5f9; --muted:#94a3b8; --cyan:#38bdf8; --mint:#34d399; --gold:#fbbf24; }
* { box-sizing:border-box; }
@@ -27,7 +27,7 @@
</head>
<body>
<header>
- <h1><span>FORMA</span> v0.4.4 — Watertight 3D Built for AI</h1>
+ <h1><span>FORMA</span> v0.4.5 — Watertight 3D Built for AI</h1>
<div class="sub">A ~1.7 MB native (~0.8 MB WASM) pure-Rust polyhedral modeling engine, Unix CLI, 723-token MCP server, GBNF grammar, and zero-GPU studio renderer — ~77×–89× faster and ~530× smaller than headless Blender.</div>
<div class="pills">
<div class="pill">~1.7 MB Native · ~0.8 MB WASM</div>
diff --git a/docs/tutorials/first-part.md b/docs/tutorials/first-part.md
index fc6839d..cc66a78 100644
--- a/docs/tutorials/first-part.md
+++ b/docs/tutorials/first-part.md
@@ -19,7 +19,7 @@ Check that `npx forma-3d` runs cleanly:
npx -y forma-3d --version
```
-You should see `forma 0.4.4`.
+You should see `forma 0.4.5`.
## Step 1: Create and verify a base plate
diff --git a/package.json b/package.json
index b63fe28..e2d7ff9 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "forma-3d",
- "version": "0.4.4",
+ "version": "0.4.5",
"description": "Lightweight pure-Rust headless 3D polyhedral modeling engine built for AI agents — CLI, ~0.8 MB WASM library, and MCP server.",
"license": "GPL-3.0-or-later",
"author": "wrong-nebula",
diff --git a/wasm/forma.wasm b/wasm/forma.wasm
index 0d24ce4..288fcaa 100755
Binary files a/wasm/forma.wasm and b/wasm/forma.wasm differ