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
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

All notable changes to formlit. Versions are `v*.*.*`; each release lists what it added, what it fixed and what is not verified yet.

## v0.57.0 · 2026-11-30

- Fixed: a menu in the menu bar that is taller than the room under the bar no longer covers the bar. It opens just under its name, is at most three quarters of the window tall, and scrolls the rest. Before, Photo, Library and other long menus could open at the very top of the window, over the bar. Submenus keep under the bar the same way.
- Added: a menu with more rows than it can show fades its bottom rows and shows a small pill with a down arrow. Both go away when you reach the last row and come back when you scroll up. A menu that fits shows nothing.
- Fixed: right-click menus (on a photo, a collection, a folder, a keyword, a preset, a panel header and the rest) still open at the pointer, but never above the menu bar and never taller than three quarters of the window, and they show the same hint when rows remain below.
- Added: the About box has Third-party notices under Licences and notices, with the full licence texts of the packages, fonts and data formlit ships.
- Fixed: an edit made in Develop while a photo's settings were still loading is no longer lost.
- Changed: on Windows, agent programs installed through npm, pnpm or bun are started directly, also when the launcher's name differs in letter case.
- Checked here, on Linux only: the frontend type check and build, and the menus measured in the browser demo in headless Chromium. Not verified yet: the desktop app on macOS, Windows and Linux, and the window tests.

## v0.56.1 · 2026-11-29

- Fixed: saving metadata into a JPEG, TIFF or DNG that sits beside a raw file of the same name no longer reads, writes, renames, moves or deletes the raw file's .xmp sidecar. The JPEG, TIFF or DNG keeps its metadata in the file.
Expand Down
2 changes: 1 addition & 1 deletion 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 0.56.1" src="https://img.shields.io/badge/version-0.56.1-eef0f4?style=flat-square">
<img alt="version 0.57.0" src="https://img.shields.io/badge/version-0.57.0-eef0f4?style=flat-square">
<img alt="TypeScript" src="https://img.shields.io/badge/TypeScript-7-3178c6?style=flat-square&logo=typescript&logoColor=white">
<img alt="Python" src="https://img.shields.io/badge/Python-3.12-3776ab?style=flat-square&logo=python&logoColor=white">
<img alt="macOS, Windows, Linux" src="https://img.shields.io/badge/macOS%20%C2%B7%20Windows%20%C2%B7%20Linux-native-2f7bf5?style=flat-square">
Expand Down
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ check whether the problem is still there.

| Version | Supported |
| --- | --- |
| 0.56.x (latest release) | Yes |
| 0.57.x (latest release) | Yes |
| Anything older | No |

## Reporting a vulnerability
Expand Down
2 changes: 1 addition & 1 deletion backend/HASHOUT_LOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Living log of all comment content, explainers, rationale, TODOs and removed code for the engine. Source files stay comment-free; everything they would have said lives here, indexed. Read this first, then edit code surgically.

Current build version: v0.56.1
Current build version: v0.57.0
Last updated: 2026-11-17 · unreleased: overlay.sharpen views, missingModel on 409 answers with model choices, BiRefNet and SAM 2.1 base plus as the recommended selection models, removable and card flags on file roots and camera roots (#review-gaps); camera import, bundled Lensfun profiles and DCP checks merged from feat/camera-import-profiles (#camera-import-profiles). Before: 2026-11-11 · v0.51.3 a failed move to the Trash leaves no copy behind; a cached thumbnail or preview removed while it is read no longer fails the request; setup picks Python by the interpreter's own architecture, native first on Apple silicon (#v0-51-3). Before: 2026-11-10 · v0.51.2 the i18n review covers the demo strings; clean --all removes the venv on Windows whatever else is there; the MCP status names the engine's real port; chat and first messages that start with a dash reach Claude Code as text; FTP makes relative remote folders; eject after import works on Windows; tethered and auto-imported shots count {seq} on; virtual copies follow their master in a copying catalog import; agents install writes a valid Codex config on Windows; session settings find their photos on Windows; video exports check collisions under the name they write; exports stack with their own originals; Rename and Move commit the files that went through when one fails; TIFF orientation and planar TIFFs read one way; agents cannot change the consent and program preferences or open a demo through run_command; TIFF and DNG leave non-ASCII text out of their ASCII tags; Delete from Disk moves each file before it removes the photo (#v0-51-2). Before: 2026-11-10 · v0.51.1 no engine changes (version string only). Before: 2026-11-09 · v0.51.0 demo.open builds the three browser demos as new demo catalogs under Formlit/Demos (#demo-open), _switch_catalog takes publish. Before: 2026-11-07 · v0.50.0 the Form extension host (formext_host.py vendored, cmd_extensions, the extensions router, the files-route guard exemption for GET and HEAD, extensions_list and extension_command); v0.49.3 no backend changes (version string only); v0.49.2 no backend changes (version string only); v0.49.1 no backend changes (version string only); v0.49.0 no backend changes (version string only); 2026-11-05 · v0.48.0 the engine install makes its environment with the same Python choice as the rest of setup (3.13 or 3.12 on Intel Macs), and remakes one an Intel Mac made with 3.14; v0.47.9 the install picks Python 3.12 to 3.14 (3.13 on Intel Macs) and Intel Macs pin the last libraries with Intel builds; 2026-11-04 · v0.47.8 no engine changes (the folder-removal test looks the folder up by its resolved path, as the importer stores it, so it passes on macOS where the temp folder is under the /var symlink); v0.47.7 no engine changes (README in the Form family template, Mackin's #6, merged with main); v0.47.6 no engine changes (version string only); 2026-11-03 · v0.47.5 no engine changes (version string only); 2026-10-31 · v0.47.4 .js, .mjs and .css keep their types on Windows, ffmpeg arrives on first run, the Linux packages pull in the media plugins; 2026-10-30 · v0.47.3 no engine changes (Windows desktop build passes --config, macOS OpenCV pinned, .gitattributes); 2026-10-26 · v0.47.1 the family test suite, no engine changes; 2026-10-23 · v0.46.2 Intelligent Previews and Adaptable preset groups with every built-in id kept (builtin_id), five presets retuned; v0.46.1 no engine changes (releases move to formcompiler, version string only); v0.46.0 no engine changes (the app icon was redrawn, see the frontend log); v0.45.3 no engine changes (LCM DreamShaper and MI-GAN fills measured against LaMa in Remove and not kept; for MI-GAN the mask is 255 to keep, the hole is not blanked, and input must be sRGB: RESEARCH_GENFILL.md); v0.45.2 no engine changes (the SD 1.5 Detail pass was built, measured softer than LaMa and not kept: RESEARCH_GENFILL.md in the sidecar); v0.45.1 no engine changes (generative fill researched and not added: see the sidecar's RESEARCH_GENFILL.md); v0.45.0 Same Surface and Same Depth sample windows, develop.sampleDepth; v0.44.0 Keep Lines for Remove (lines_fill, keep_lines), brush Edge Snap; v0.43.0 control maps (ai.controlMaps, get_control_maps), Remove from the same surface; v0.42.2 no engine changes; v0.42.1 no engine changes; v0.42.0 678 researched presets (978 built in), preset zip packs and group export, Edge Range masks, Remove from the same depth; v0.41.1 no engine changes; v0.41.0 the learned style calibrates itself per control on the person's edits; v0.40.0 PDF/X-1a:2001 passing the preflight gem, Check My Style, the i18n review round trip; v0.39.0 PDF/X-1a with embedded fonts and a self-check, shadows hidden behind the subject; v0.38.0 per-window blend exposure, SFTP, freeze collects all modules, Remove sample-from area, low-sun shadows, CMYK books; v0.37.0 KDP inside margin by page count, proofing pick limit, Send by FTP after export; v0.36.0 Apply My Style (develop.applyStyle, apply_my_style), collapsed-stack filtering, describe smart rule, skin maxSize; v0.35.1 new imports indexed for search; v0.35.0 book PDFs for Lulu, Amazon KDP and IngramSpark; v0.34.1 no engine changes (its user-facing strings are in the window's translation catalogs); v0.34.0 remove controls (shadows and reflections, seeded Refresh, plainest first), remove_object; v0.33.0 flash and window blending, ai.flashBlend, merge_flash_blend; v0.32.0 batch skin retouching, retouch.skin, retouch_skin; v0.31.0 search by description and Find Similar (SigLIP), search.* commands, two MCP tools; v0.30.2 astro sky line at full size, landscape aligned when the camera moved; v0.30.1 astro alignment for wide lenses, checked on a real time-lapse; v0.30.0 client proofing without accounts, astro check on a real photo; v0.29.0 astro stacking; v0.28.0 sessions, settings kept in the session folder, rendered exports without the recipe, MCP session tools; v0.27.0 the learned denoiser (SCUNet); v0.26.3 edge points on AI masks, develop.maskOutline; v0.26.2 hair and skin parts from the parts model, each person apart with the instances model, fills on a crop; v0.26.1 the model features on their real models, four fixes; v0.26.0 skin-tone uniformity, develop.skinPick; v0.25.0 focus stacking; v0.24.0 adjustment layers, addLayer and setLayer; v0.23.0 refine, shift and feather on AI mask components, the refine op; v0.22.0 code replacements, caption variables, required fields; v0.21.0 per-face cull scores, cull.groups, get_cull_groups; v0.20.0 no engine changes; v0.19.0 chat token usage, tool-result images, chat.sessions and chat.adopt, claudecode.open resume; v0.18.0 no engine changes; v0.17.0 photo ids on chat tool events; v0.16.0 chat text, context and note, Stop verified; v0.15.0 the Chat tab's chat.* commands; v0.14.0 Claude Code settings from preferences; v0.13.0 no engine changes; v0.12.0 show_in_window reference; v0.11.0 shoot recipes, templates, noise reduction by ISO, export presets, {shoot} at import; v0.10.0 professional workflow prompts, pro ingest, Refine Photos, version tools, 300 presets; v0.9.1 face-part model requirement, empty masks refused, model pins verified; v0.9.0 match_look, reports on writes, set analysis, save_preset, part masks, a forgiving run_command, 66 more presets; v0.8.0 photo analysis, 134 researched presets, preset previews and search, broken built-in profiles, scaled hues and curves; v0.7.0 the terminal, Claude Code in formlit, the in-app consent token, modern list fields; v0.6.0 outside-agent consent, MCP sessions, the sidecar port; v0.3.4 the preview deadlock, keyword and stack integrity, value ranges; v0.3.3 previews read before answering, search operators; v0.3.2 originals protected, undo moves files, typed parameters, sanitized settings; v0.3.0 look tables, maker notes, DCP baselines, the frozen engine

---
Expand Down
2 changes: 1 addition & 1 deletion backend/app/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""formlit engine: the catalog, the develop pipeline's reference renderer, import, export and the agent surface."""

__version__ = "0.56.1"
__version__ = "0.57.0"
2 changes: 1 addition & 1 deletion demo/HASHOUT_LOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Rationale, decisions and removed or never-written comments for the offline demo. Source files stay comment-free.

Current build version: v0.56.1
Current build version: v0.57.0

## Why a TypeScript port of the pipeline

Expand Down
2 changes: 1 addition & 1 deletion demo/assets/formlit-demo.css

Large diffs are not rendered by default.

21 changes: 10 additions & 11 deletions demo/assets/formlit-demo.js

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
var DEFAULT_THEME = 'studio';
var DEFAULT_ACCENT = '#f97316';
var LIGHT = { 'light': 1, 'sand': 1 };
var OLED = { 'amoled': 1 };
var PROFILES = {
'studio': ['#111111', '#17151b', '#222127', '#2a2a2a', '#34333a', '#f7f7f7', '#a4a4a4', '#717072', '#1c1b1d', '#5e5e60', '#191919'],
'nodemode-dark': ['#0a0a0a', '#121218', '#1a1a24', '#2a2a35', '#3a3a48', '#e8e8ee', '#a8a8b8', '#6a6a7a', '#0a0a0a', 'rgba(255,255,255,0.04)'],
Expand All @@ -39,7 +40,8 @@
'ocean': ['#06131c', '#0a1c29', '#10293c', '#1d425e', '#285578', '#e2eef7', '#96b6cc', '#5b7d94', '#06131c', 'rgba(150,210,255,0.06)'],
'rose': ['#170b10', '#211117', '#301a22', '#4d2b38', '#653a49', '#f5e7ec', '#cfa5b3', '#966b7b', '#170b10', 'rgba(255,190,215,0.05)'],
'terminal': ['#050d05', '#0a140a', '#102010', '#1f3d1f', '#2b522b', '#d8f5d8', '#8fce8f', '#568a56', '#050d05', 'rgba(120,255,120,0.06)'],
'contrast': ['#000000', '#0a0a0a', '#161616', '#555555', '#777777', '#ffffff', '#d8d8d8', '#9a9a9a', '#000000', 'rgba(255,255,255,0.10)']
'contrast': ['#000000', '#0a0a0a', '#161616', '#555555', '#777777', '#ffffff', '#d8d8d8', '#9a9a9a', '#000000', 'rgba(255,255,255,0.10)'],
'amoled': ['#000000', '#000000', '#141414', '#262626', '#3a3a3a', '#ededed', '#a6a6a6', '#858585', '#000000', '#262626', '#000000']
};
var NAMES = ['--bg-primary', '--bg-secondary', '--bg-tertiary', '--border-color', '--border-light', '--text-primary', '--text-secondary', '--text-muted', '--canvas-bg', '--grid-color'];
var theme = DEFAULT_THEME, accent = DEFAULT_ACCENT, intensity = 1;
Expand All @@ -50,6 +52,7 @@
if (raw) { var s = JSON.parse(raw); if (s.appearance === 3 || s.appearance === 2) { if (s.theme && PROFILES[s.theme]) theme = s.theme; if (s.accentColor && !(s.appearance === 2 && s.accentColor === '#aba0d3')) accent = s.accentColor; if (s.appearance === 3 && typeof s.intensity === 'number') intensity = Math.min(1.5, Math.max(0, s.intensity)); } }
} catch (e) { /* private mode or blocked storage: defaults are correct */ }
var p = PROFILES[theme], root = document.documentElement, i;
if (OLED[theme]) root.setAttribute('data-oled', '');
for (i = 0; i < NAMES.length; i++) root.style.setProperty(NAMES[i], p[i]);
root.style.setProperty('--bg-node', p[10] || p[1]);
root.style.setProperty('--shadow-lg', LIGHT[theme] ? '0 4px 14px rgba(96, 90, 70, 0.16)' : '0 8px 32px rgba(0, 0, 0, 0.5)');
Expand Down
2 changes: 1 addition & 1 deletion demos/develop/assets/formlit-develop.css

Large diffs are not rendered by default.

15 changes: 7 additions & 8 deletions demos/develop/assets/formlit-develop.js

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion demos/develop/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
var DEFAULT_THEME = 'studio';
var DEFAULT_ACCENT = '#f97316';
var LIGHT = { 'light': 1, 'sand': 1 };
var OLED = { 'amoled': 1 };
var PROFILES = {
'studio': ['#111111', '#17151b', '#222127', '#2a2a2a', '#34333a', '#f7f7f7', '#a4a4a4', '#717072', '#1c1b1d', '#5e5e60', '#191919'],
'nodemode-dark': ['#0a0a0a', '#121218', '#1a1a24', '#2a2a35', '#3a3a48', '#e8e8ee', '#a8a8b8', '#6a6a7a', '#0a0a0a', 'rgba(255,255,255,0.04)'],
Expand All @@ -39,7 +40,8 @@
'ocean': ['#06131c', '#0a1c29', '#10293c', '#1d425e', '#285578', '#e2eef7', '#96b6cc', '#5b7d94', '#06131c', 'rgba(150,210,255,0.06)'],
'rose': ['#170b10', '#211117', '#301a22', '#4d2b38', '#653a49', '#f5e7ec', '#cfa5b3', '#966b7b', '#170b10', 'rgba(255,190,215,0.05)'],
'terminal': ['#050d05', '#0a140a', '#102010', '#1f3d1f', '#2b522b', '#d8f5d8', '#8fce8f', '#568a56', '#050d05', 'rgba(120,255,120,0.06)'],
'contrast': ['#000000', '#0a0a0a', '#161616', '#555555', '#777777', '#ffffff', '#d8d8d8', '#9a9a9a', '#000000', 'rgba(255,255,255,0.10)']
'contrast': ['#000000', '#0a0a0a', '#161616', '#555555', '#777777', '#ffffff', '#d8d8d8', '#9a9a9a', '#000000', 'rgba(255,255,255,0.10)'],
'amoled': ['#000000', '#000000', '#141414', '#262626', '#3a3a3a', '#ededed', '#a6a6a6', '#858585', '#000000', '#262626', '#000000']
};
var NAMES = ['--bg-primary', '--bg-secondary', '--bg-tertiary', '--border-color', '--border-light', '--text-primary', '--text-secondary', '--text-muted', '--canvas-bg', '--grid-color'];
var theme = DEFAULT_THEME, accent = DEFAULT_ACCENT, intensity = 1;
Expand All @@ -50,6 +52,7 @@
if (raw) { var s = JSON.parse(raw); if (s.appearance === 3 || s.appearance === 2) { if (s.theme && PROFILES[s.theme]) theme = s.theme; if (s.accentColor && !(s.appearance === 2 && s.accentColor === '#aba0d3')) accent = s.accentColor; if (s.appearance === 3 && typeof s.intensity === 'number') intensity = Math.min(1.5, Math.max(0, s.intensity)); } }
} catch (e) { /* private mode or blocked storage: defaults are correct */ }
var p = PROFILES[theme], root = document.documentElement, i;
if (OLED[theme]) root.setAttribute('data-oled', '');
for (i = 0; i < NAMES.length; i++) root.style.setProperty(NAMES[i], p[i]);
root.style.setProperty('--bg-node', p[10] || p[1]);
root.style.setProperty('--shadow-lg', LIGHT[theme] ? '0 4px 14px rgba(96, 90, 70, 0.16)' : '0 8px 32px rgba(0, 0, 0, 0.5)');
Expand Down
2 changes: 1 addition & 1 deletion demos/share/assets/formlit-share.css

Large diffs are not rendered by default.

11 changes: 5 additions & 6 deletions demos/share/assets/formlit-share.js

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion demos/share/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
var DEFAULT_THEME = 'studio';
var DEFAULT_ACCENT = '#f97316';
var LIGHT = { 'light': 1, 'sand': 1 };
var OLED = { 'amoled': 1 };
var PROFILES = {
'studio': ['#111111', '#17151b', '#222127', '#2a2a2a', '#34333a', '#f7f7f7', '#a4a4a4', '#717072', '#1c1b1d', '#5e5e60', '#191919'],
'nodemode-dark': ['#0a0a0a', '#121218', '#1a1a24', '#2a2a35', '#3a3a48', '#e8e8ee', '#a8a8b8', '#6a6a7a', '#0a0a0a', 'rgba(255,255,255,0.04)'],
Expand All @@ -39,7 +40,8 @@
'ocean': ['#06131c', '#0a1c29', '#10293c', '#1d425e', '#285578', '#e2eef7', '#96b6cc', '#5b7d94', '#06131c', 'rgba(150,210,255,0.06)'],
'rose': ['#170b10', '#211117', '#301a22', '#4d2b38', '#653a49', '#f5e7ec', '#cfa5b3', '#966b7b', '#170b10', 'rgba(255,190,215,0.05)'],
'terminal': ['#050d05', '#0a140a', '#102010', '#1f3d1f', '#2b522b', '#d8f5d8', '#8fce8f', '#568a56', '#050d05', 'rgba(120,255,120,0.06)'],
'contrast': ['#000000', '#0a0a0a', '#161616', '#555555', '#777777', '#ffffff', '#d8d8d8', '#9a9a9a', '#000000', 'rgba(255,255,255,0.10)']
'contrast': ['#000000', '#0a0a0a', '#161616', '#555555', '#777777', '#ffffff', '#d8d8d8', '#9a9a9a', '#000000', 'rgba(255,255,255,0.10)'],
'amoled': ['#000000', '#000000', '#141414', '#262626', '#3a3a3a', '#ededed', '#a6a6a6', '#858585', '#000000', '#262626', '#000000']
};
var NAMES = ['--bg-primary', '--bg-secondary', '--bg-tertiary', '--border-color', '--border-light', '--text-primary', '--text-secondary', '--text-muted', '--canvas-bg', '--grid-color'];
var theme = DEFAULT_THEME, accent = DEFAULT_ACCENT, intensity = 1;
Expand All @@ -50,6 +52,7 @@
if (raw) { var s = JSON.parse(raw); if (s.appearance === 3 || s.appearance === 2) { if (s.theme && PROFILES[s.theme]) theme = s.theme; if (s.accentColor && !(s.appearance === 2 && s.accentColor === '#aba0d3')) accent = s.accentColor; if (s.appearance === 3 && typeof s.intensity === 'number') intensity = Math.min(1.5, Math.max(0, s.intensity)); } }
} catch (e) { /* private mode or blocked storage: defaults are correct */ }
var p = PROFILES[theme], root = document.documentElement, i;
if (OLED[theme]) root.setAttribute('data-oled', '');
for (i = 0; i < NAMES.length; i++) root.style.setProperty(NAMES[i], p[i]);
root.style.setProperty('--bg-node', p[10] || p[1]);
root.style.setProperty('--shadow-lg', LIGHT[theme] ? '0 4px 14px rgba(96, 90, 70, 0.16)' : '0 8px 32px rgba(0, 0, 0, 0.5)');
Expand Down
Loading
Loading