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
2 changes: 1 addition & 1 deletion .docs/wiki/Agents-and-MCP.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Never exposed: provider keys (reading, writing or testing them), engine settings

## The cost rule

`generate` costs money. It refuses unless the call carries `acceptCostUsd` at or above the estimate, so the agent must call `plan_generation` or `estimate_cost` first and pass the figure. The calls are idempotent by `clientRequestId`. A cancelled World Labs job may still be charged by the provider.
`generate` costs money. It refuses unless the call carries `acceptCostUsd` at or above the estimate, so the agent must call `plan_generation` or `estimate_cost` first and pass the figure. A remembered generate approval covers later generates up to the approved cost. New agent programs start at Ask. The calls are idempotent by `clientRequestId`. A cancelled World Labs job may still be charged by the provider.

## Connect a client

Expand Down
2 changes: 1 addition & 1 deletion .docs/wiki/Edit-studio.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Blur, nine mask kinds (with feather, invert and stroke), keyframes on any movabl

## Export

Export writes MP4 or WebM to disk and to the library. The export panel checks what this computer can encode, in the window or in the engine, and says plainly what is missing. The studio is locked while it renders, Cancel always cleans up, and an export left running when the window closes is stopped. Linux builds need a webview or system ffmpeg with an H.264 encoder for MP4.
Export writes MP4 or WebM to disk and to the library. Exports today are MP4, WebM, PNG and the `.fcrft` project file; there is no GIF, image sequence or mesh export yet. The export panel checks what this computer can encode, in the window or in the engine, and says plainly what is missing. The studio is locked while it renders, Cancel always cleans up, and an export left running when the window closes is stopped. Linux builds need a webview or system ffmpeg with an H.264 encoder for MP4.

## Bringing media in

Expand Down
4 changes: 2 additions & 2 deletions .docs/wiki/Install.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ There are two ways to get formcraft: install the desktop app that formcompiler b

## Install the desktop app

Installers are produced for macOS (dmg, macOS 14 or newer), Windows (NSIS, Windows 10 or newer) and Linux (AppImage and deb, glibc 2.35 or newer). FormPortal lists formcraft once a release exists, installs it, opens `.fcrft` files with it and can connect it to your coding agents (see [[Agents-and-MCP]]). No release has been published yet, so until then build it yourself.
Installers are produced for macOS (dmg, macOS 14 or newer), Windows (NSIS, Windows 10 or newer) and Linux (AppImage and deb, glibc 2.35 or newer). FormPortal lists formcraft once a release exists, installs it, opens `.fcrft` files with it and can connect it to your coding agents (see [[Agents-and-MCP]]). No release has been published yet, so until then build it yourself. So far only the Linux build has been built and opened. The release pipeline produces the macOS and Windows builds, and they are newly tested.

On first start formcraft downloads the LGPL build of ffmpeg once and checks it file by file, unless another form app already installed one.

## Run from the repository

Requirements: git, Python 3.11 or newer, Node 20.19 or newer. For the desktop window also Rust stable, and on Linux the WebKitGTK 4.1 packages (`libwebkit2gtk-4.1-dev libayatana-appindicator3-dev librsvg2-dev libxdo-dev patchelf libssl-dev build-essential pkg-config`).
Requirements: git, Python 3.11 or newer (the installer uses Python 3.12 when it is present, since that is the tested version), Node 20.19 or newer. For the desktop window also Rust stable, and on Linux the WebKitGTK 4.1 packages (`libwebkit2gtk-4.1-dev libayatana-appindicator3-dev librsvg2-dev libxdo-dev patchelf libssl-dev build-essential pkg-config`).

```shell
chmod +x formcraft formcraft_oc_install
Expand Down
2 changes: 1 addition & 1 deletion .docs/wiki/Studios.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Boards of pictures, videos, notes, colours and links in a fast grid with section

## Tools

Tools are single-purpose pages in the studio switcher: Angles (an orbit sphere for camera angles), Remove background, Remove region (paint a mask on an image or a video frame), Frame extractor, Background change (swap a video's background from a reference picture), Storyboard and Mesh tools (split, segment, clean and remesh a model). FBX files convert to GLB on upload.
Tools are single-purpose pages in the studio switcher: Angles (an orbit sphere for camera angles), Remove background, Remove region (paint a mask on an image or a video frame), Frame extractor, Background change (swap a video's background from a reference picture), Storyboard and Mesh tools (split, segment, clean and remesh a model). FBX files convert to GLB on upload. GLB, glTF and FBX open and can be placed in a scene. OBJ, STL, USDZ and DAE are stored in the library but cannot be previewed or placed yet.

## Library

Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,26 @@ jobs:
- name: Engine tests
working-directory: backend
run: python -m pytest

install:
name: install (ubuntu-latest)
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Engine data folder
run: echo "FORMCRAFT_DATA_DIR=$RUNNER_TEMP/formcraft-data" >> "$GITHUB_ENV"
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: '22'
cache: npm
cache-dependency-path: frontend/package-lock.json
- uses: actions/setup-python@v7
with:
python-version: '3.12'
- name: Installer
run: ./formcraft install
- name: Engine self-check
run: |
source backend/venv/bin/activate
python backend/formcraft_engine.py --selfcheck
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,28 @@

Versions follow `v*.*.*` with dots. Dates are UTC.

## 0.9.3 · 2026-11-28

### Changed

- Every package carries the LGPL 2.1 text as `licenses/LGPL-2.1.txt`, for the WebKitGTK, GTK and libsoup libraries the AppImage includes. NOTICE and LICENSES.md say so.
- The desktop engine no longer ships source maps: its interface files drop from 26 MB to 8.5 MB.
- The installer uses Python 3.12 when it is present, since that is the tested version, and says which Python it chose when it has to use another.
- The README and wiki say which 3D formats open (GLB, glTF, FBX), which are only stored (OBJ, STL, USDZ, DAE), what can be exported, and that only the Linux build has been opened so far.

### Fixed

- Keys: with no system password store, the key file and its folder are readable by you alone from the first write. Before, each save made the file with default permissions for a moment.
- Preferences, Connections: the key note names the store the last save really used.
- Upload and library: a 3D file the viewer cannot show says it is stored and can be downloaded, but cannot be previewed or placed in a scene yet.
- Agents: a generate request with no cost estimate no longer offers "Remember this choice", which did nothing there.
- `./formcraft agents sync --check` fails when the engine's list of window tools and the manifest's list differ, and names the tools.

### Checked

- Type check, production build with no source maps, 1186 frontend tests, 478 engine tests, the engine self-check, the version check, the skills check and the agents check pass on Linux.
- Not run: the installer and the new CI install job, the engine freeze, the desktop build, and the window in a browser.

## 0.9.2 · 2026-11-28

### Changed
Expand Down
6 changes: 3 additions & 3 deletions LICENSES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Third-party licences · formcraft

Version v0.9.2 · 2026-11-28
Version v0.9.3 · 2026-11-28

formcraft is licensed under the Apache License, Version 2.0 (see `LICENSE`), Copyright 2026 NodeAgentc, Inc. This file lists every third-party item that ships with formcraft or is used to build it, with its version, licence, where it ships and what the licence asks of us. `NOTICE` carries the short list of obligations that travel with the app and points here.

Expand Down Expand Up @@ -200,7 +200,7 @@ Tools used only to drive and watch the app under a virtual display during verifi

| Item | Version | Licence | Where it ships | Obligation |
| --- | --- | --- | --- | --- |
| WebKitGTK (`webkit2gtk-4.1`), GTK, libsoup | 2.52, 3.24, 3 | LGPL-2.1-or-later (WebKitGTK also has BSD parts) | Linux only. The deb, the rpm and the tar.gz made by `setup/package_desktop.py linux-tar` (the deb's `usr` tree) contain none of them; the app loads them from the system. The AppImage that `tauri build` makes carries them, with the shared libraries they need, as separate files copied unmodified from the build machine's Ubuntu packages (`libwebkit2gtk-4.1-dev` in formcompiler's `linux_packages`) | LGPL as separate, replaceable shared libraries: dynamic linking only, no modification. The Linux packages do not contain the LGPL text or a written offer (`tauri.conf.json` `bundle.resources` ships only `LICENSE`, `NOTICE` and `LICENSES.md`). `NOTICE` gives the LGPL 2.1 text's address (https://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt) and where the source is: the upstream releases (https://webkitgtk.org/releases/, https://download.gnome.org/sources/gtk+/, https://download.gnome.org/sources/libsoup/) and, for the exact build in an AppImage, the Ubuntu source package of the same name and version. The version in the Version cell is the record's; the AppImage carries whatever the build machine has, which is not recorded per release (section 11) |
| WebKitGTK (`webkit2gtk-4.1`), GTK, libsoup | 2.52, 3.24, 3 | LGPL-2.1-or-later (WebKitGTK also has BSD parts) | Linux only. The deb, the rpm and the tar.gz made by `setup/package_desktop.py linux-tar` (the deb's `usr` tree) contain none of them; the app loads them from the system. The AppImage that `tauri build` makes carries them, with the shared libraries they need, as separate files copied unmodified from the build machine's Ubuntu packages (`libwebkit2gtk-4.1-dev` in formcompiler's `linux_packages`) | LGPL as separate, replaceable shared libraries: dynamic linking only, no modification. The LGPL 2.1 text ships in every package as `licenses/LGPL-2.1.txt` (`tauri.conf.json` `bundle.resources`, from `licenses/LGPL-2.1.txt` in the repository). `NOTICE` says the libraries are unmodified and where the source is: the upstream releases (https://webkitgtk.org/releases/, https://download.gnome.org/sources/gtk+/, https://download.gnome.org/sources/libsoup/) and, for the exact build in an AppImage, the Ubuntu source package of the same name and version. The version in the Version cell is the record's; the AppImage carries whatever the build machine has, which is not recorded per release (section 11) |

---

Expand Down Expand Up @@ -281,7 +281,7 @@ Listed so that nobody has to ask. None is a dependency and none ships a file.
- Rust package count: the shell record counted 412 packages across all targets; `Cargo.lock` went from 412 to 450 when `tauri-plugin-single-instance` was added and from 450 to 497 with `tauri-plugin-updater`. It holds 497 at v0.9.1 (recounted); section 1 uses 497.
- The title-bar record names its tabs file `ui/tabs.ts`; the file in the tree is `ui/doc-tabs.ts`. This file uses `ui/doc-tabs.ts`.
- The window record lists only the `core` and `window` lazy chunks of `@tauri-apps/api`; the title-bar work added `menu`, and `app.ts` also imports `event`. Section 3 lists all four.
- Bundle resources: `src-tauri/tauri.conf.json` ships `LICENSE`, `NOTICE` and `LICENSES.md` under `licenses/` in every installer, and nothing else. No LGPL text and no written offer is stored in this repository or produced by the build, so none ships in the Linux packages; `NOTICE` and section 5 say so and give the addresses of the LGPL 2.1 text and of the source instead. Only the AppImage distributes LGPL libraries (WebKitGTK, GTK, libsoup and what the bundler copies with them); their versions are those installed on the build machine and no step records them per release. Shipping the text and an offer would need a file in the repository and a `bundle.resources` entry (or `bundle.linux.appimage.files`) in `tauri.conf.json`.
- Bundle resources: `src-tauri/tauri.conf.json` ships `LICENSE`, `NOTICE` and `LICENSES.md` and `licenses/LGPL-2.1.txt` (the official LGPL 2.1 text, kept in `licenses/` at the repository root) under `licenses/` in every installer. No written offer is stored in this repository or produced by the build. Only the AppImage distributes LGPL libraries (WebKitGTK, GTK, libsoup and what the bundler copies with them); they are unmodified, `NOTICE` and section 5 say where their source is, and their versions are those installed on the build machine, which no step records per release.
- No build step collects the third-party licence texts (Rust crates, Python packages, npm packages) into the installer; there is no `setup/collect_licenses.py` or any other collector. Where a row says "Keep the licence text", the text is today in the published package of that name and version, and the installer carries only `LICENSE`, `NOTICE` and `LICENSES.md`.
- The npm production tree (`npm ls --omit=dev --all`, recounted for v0.9.1) is twelve packages: the nine direct dependencies in `frontend/package.json`, `fflate` (through Spark) and the two type packages of mediabunny.
- No record covers the system web views on macOS (WKWebView) or Windows (WebView2); only WebKitGTK on Linux is listed. One record mentions that the Linux binary loads libdbus-1 through GTK and WebKitGTK, and no record gives its licence. No rows were added for either.
Expand Down
5 changes: 2 additions & 3 deletions NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,8 @@ shared libraries. The deb, the rpm and the tar.gz contain none of them: the app
the system at run time. The AppImage carries them, with the shared libraries they need, as
separate files copied unmodified from the build machine's Ubuntu packages (the
libwebkit2gtk-4.1 package and its dependencies); they are dynamically linked, never statically
linked, and can be replaced. The Linux packages do not contain the LGPL text or a written offer.
The LGPL 2.1 text is at https://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt. The source of
these libraries is published by their projects (https://webkitgtk.org/releases/,
linked, and can be replaced. They are not modified. The LGPL 2.1 text ships in every package as
licenses/LGPL-2.1.txt, beside this file. The source of these libraries is published by their projects (https://webkitgtk.org/releases/,
https://download.gnome.org/sources/gtk+/ and https://download.gnome.org/sources/libsoup/) and,
for the exact build an AppImage carries, by Ubuntu as the source package of the same name and
version (https://packages.ubuntu.com). The versions are those of the build machine and are not
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</p>

<p align="center">
<img alt="version v0.9.2" src="https://img.shields.io/badge/version-v0.9.2-eef0f4?style=flat-square">
<img alt="version v0.9.3" src="https://img.shields.io/badge/version-v0.9.3-eef0f4?style=flat-square">
<img alt="TypeScript, Vite and Three.js" src="https://img.shields.io/badge/TypeScript%20%C2%B7%20Vite%20%C2%B7%20Three.js-3178c6?style=flat-square&logo=typescript&logoColor=white">
<img alt="Python and FastAPI" src="https://img.shields.io/badge/Python%20%C2%B7%20FastAPI-3776ab?style=flat-square">
<img alt="macOS, Windows and Linux" src="https://img.shields.io/badge/macOS%20%C2%B7%20Windows%20%C2%B7%20Linux-native-2f7bf5?style=flat-square">
Expand Down Expand Up @@ -77,7 +77,7 @@
<tr>
<td width="33%" valign="top"><h4>122 catalogued models</h4>32 image · 43 video · 12 audio · 17 mesh · 5 world · 13 utility · each field, limit and price read from the provider</td>
<td width="33%" valign="top"><h4>Studios and tools</h4>Create · Canvas · Scene · Board · Edit · Angles · Remove background · Remove region · Frame extractor · Background change · Storyboard · Mesh tools</td>
<td width="33%" valign="top"><h4>Formats</h4>Opens: PNG · JPEG · WEBP · GIF · MP4 · MOV · WEBM · MP3 · WAV · GLB · FBX · OBJ · SPLAT · Native: <code>.fcrft</code></td>
<td width="33%" valign="top"><h4>Formats</h4>Opens: PNG · JPEG · WEBP · GIF · MP4 · MOV · WEBM · MP3 · WAV · GLB · glTF · FBX · SPLAT · Native: <code>.fcrft</code>. OBJ, STL, USDZ and DAE are stored in the library but cannot be previewed or placed yet. Exports: MP4 · WebM · PNG · <code>.fcrft</code>; no GIF, image sequence or mesh export yet.</td>
</tr>
</table>

Expand Down Expand Up @@ -117,7 +117,7 @@ All FormCraft builds are compiled and released from [FormCompiler](https://githu

For anyone who wants the web UI in a browser or wants to contribute.

**Requires:** git, Node 20.19+ or 22.12+, Python 3.11+. Desktop builds also need Rust.
**Requires:** git, Node 20.19+ or 22.12+, Python 3.11+. The installer uses Python 3.12 when it is present, since that is the tested version. Desktop builds also need Rust.

```sh
git clone git@github.com:nodemode-dev/formcraft.git
Expand All @@ -137,7 +137,7 @@ On Windows use `formcraft_oc_install.bat` and `formcraft.bat boot`. The engine l
| `FORMCRAFT_MCP_URL` | `formcraft mcp` attaches to the engine at this URL |

> [!IMPORTANT]
> **Status:** released. All 24 planned phases have landed and the Linux build is checked. Generation was checked against the providers' published schemas and a mock, not against the live services, and the macOS and Windows builds are untested.
> **Status:** released. All 24 planned phases have landed and only the Linux build has been built and opened so far. The release pipeline also produces macOS and Windows builds, which are newly tested. Generation was checked against the providers' published schemas and a mock, not against the live services.

**Contributing:** branch from `main`, keep changes to source here, and leave packaging and releases to FormCompiler. See [`CONTRIBUTING.md`](CONTRIBUTING.md), [`CODE_OF_CONDUCT.md`](CODE_OF_CONDUCT.md), [`.docs/BRANCHING.md`](.docs/BRANCHING.md) and [`AGENTS.md`](AGENTS.md). Report security issues privately as [`SECURITY.md`](SECURITY.md) describes.

Expand Down
Loading
Loading