Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ default-members = [
]

[workspace.package]
version = "0.4.4"
version = "0.4.5"
edition = "2021"
license = "GPL-3.0-or-later"

Expand Down
2 changes: 1 addition & 1 deletion ROADMAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion docs/AUTORESEARCH_HILLCLIMB.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion docs/PHASE1_ARCHITECTURE_AUDIT.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/VERIFICATION_REPORT.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
6 changes: 3 additions & 3 deletions docs/how-to/deploy-http-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@ 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)

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**.
Expand Down
6 changes: 3 additions & 3 deletions docs/reference/apis.md
Original file line number Diff line number Diff line change
@@ -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`).

Expand Down Expand Up @@ -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. |
Expand Down
4 changes: 2 additions & 2 deletions docs/reference/cli.md
Original file line number Diff line number Diff line change
@@ -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`.
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/language-and-formats.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 2 additions & 2 deletions docs/showcase.html
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand All @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/first-part.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Binary file modified wasm/forma.wasm
Binary file not shown.
Loading