From 3e3943f1fdccb6230bbf53bf09292ed59045b027 Mon Sep 17 00:00:00 2001 From: nodemode-ai Date: Mon, 30 Nov 2026 20:28:12 -0500 Subject: [PATCH 1/2] fix(build): the Windows engine freeze passes the notices file and the next option as two arguments A missing space after the THIRD-PARTY-NOTICES.txt --add-data value joined it to --paths in cmd, so PyInstaller took the wrong word as the script and stopped with "unrecognized arguments" on the engine script. Windows builds failed at the freeze step; macOS and Linux use their own freeze script, which was never affected. --- setup/freeze_backend.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/freeze_backend.bat b/setup/freeze_backend.bat index facdbf5..73b9f16 100644 --- a/setup/freeze_backend.bat +++ b/setup/freeze_backend.bat @@ -13,7 +13,7 @@ if not "%FORMTOOLS_ENGINE_WINDOWED%"=="0" set "FT_EXTRA_HIDDEN_IMPORT_ARGS=!FT_E if exist build\pyinstaller rmdir /s /q build\pyinstaller if exist dist-engine rmdir /s /q dist-engine set "PYTHONPATH=%ROOT%\backend;%PYTHONPATH%" -pyinstaller --noconfirm --clean --onedir --name formtools-engine --distpath dist-engine --workpath build\pyinstaller --specpath build\pyinstaller --add-data "%ROOT%\frontend\dist;ui" --add-data "%ROOT%\THIRD-PARTY-NOTICES.txt;."--paths "%ROOT%\backend" --collect-submodules app --collect-submodules uvicorn --hidden-import OpenEXR --hidden-import rawpy --hidden-import psd_tools --collect-submodules fontTools --collect-submodules trimesh --collect-submodules send2trash --hidden-import libarchive --hidden-import zstandard --hidden-import blake3 --hidden-import xxhash --hidden-import psutil --hidden-import brotli --collect-all winpty --collect-submodules keyring --copy-metadata keyring %FT_EXTRA_HIDDEN_IMPORT_ARGS% "%ROOT%\backend\formtools_engine.py" || exit /b 1 +pyinstaller --noconfirm --clean --onedir --name formtools-engine --distpath dist-engine --workpath build\pyinstaller --specpath build\pyinstaller --add-data "%ROOT%\frontend\dist;ui" --add-data "%ROOT%\THIRD-PARTY-NOTICES.txt;." --paths "%ROOT%\backend" --collect-submodules app --collect-submodules uvicorn --hidden-import OpenEXR --hidden-import rawpy --hidden-import psd_tools --collect-submodules fontTools --collect-submodules trimesh --collect-submodules send2trash --hidden-import libarchive --hidden-import zstandard --hidden-import blake3 --hidden-import xxhash --hidden-import psutil --hidden-import brotli --collect-all winpty --collect-submodules keyring --copy-metadata keyring %FT_EXTRA_HIDDEN_IMPORT_ARGS% "%ROOT%\backend\formtools_engine.py" || exit /b 1 if exist "%ROOT%\src-tauri\engine" rmdir /s /q "%ROOT%\src-tauri\engine" xcopy /e /i /q /y dist-engine\formtools-engine "%ROOT%\src-tauri\engine" >nul || exit /b 1 "%ROOT%\src-tauri\engine\formtools-engine.exe" --selfcheck || exit /b 1 From 320338af353d8cfff8bc2e624c0aa37340fd62cf Mon Sep 17 00:00:00 2001 From: nodemode-ai Date: Mon, 30 Nov 2026 20:30:46 -0500 Subject: [PATCH 2/2] chore(release): version 0.15.1 (0.15.1), the Windows engine freeze runs again The version moves to 0.15.1 in backend/app/__init__.py, frontend/package.json, frontend/package-lock.json, frontend/src/version.ts, setup/cli.py, setup/mcp_stdio.py, setup/mcpb/manifest.json, src-tauri (Cargo.toml, Cargo.lock, tauri.conf.json), the README badge and the Stage line of the two agent guide files at the repository root, each by hand. CHANGELOG.md describes 0.15.1, which also carries the unpublished 0.15.0. The browser demos are rebuilt with npm run demo; only demo/assets/demo.js changed (the version string). Ran on Linux: tsc --noEmit (clean), npm run demo, vitest (257 passed), ./formtools mcpb check and setup/notices.py --check (clean). Not run: ./formtools agents check (the engine dependencies are not installed here), the engine tests, the desktop shell, macOS and Windows. --- AGENTS.md | 2 +- CHANGELOG.md | 6 ++++++ CLAUDE.md | 2 +- README.md | 2 +- backend/app/__init__.py | 2 +- demo/assets/demo.js | 2 +- frontend/package-lock.json | 4 ++-- frontend/package.json | 2 +- frontend/src/version.ts | 2 +- setup/cli.py | 4 ++-- setup/mcp_stdio.py | 4 ++-- setup/mcpb/manifest.json | 2 +- src-tauri/Cargo.lock | 2 +- src-tauri/Cargo.toml | 2 +- src-tauri/tauri.conf.json | 2 +- 15 files changed, 23 insertions(+), 17 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 697ee22..99c1f1d 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -2,7 +2,7 @@ Rules for any coding agent (Claude Code, Codex, Cursor, Antigravity) working in this repository. `CLAUDE.md` is the full rule set; read it first. -- Stage: released (v0.15.0), built and bundled for macOS, Windows and Linux. `./formtools agents sync` mirrors `.claude/skills` into `.agents/skills`; `./formtools agents check` (also in CI) fails on drift. The plan of record is `DEV_PLAN.md` in the planning sidecar. Code changes route through `.claude/skills/formtools-harness`; using the app through MCP routes through `.claude/skills/formtools-driving`. +- Stage: released (v0.15.1), built and bundled for macOS, Windows and Linux. `./formtools agents sync` mirrors `.claude/skills` into `.agents/skills`; `./formtools agents check` (also in CI) fails on drift. The plan of record is `DEV_PLAN.md` in the planning sidecar. Code changes route through `.claude/skills/formtools-harness`; using the app through MCP routes through `.claude/skills/formtools-driving`. - You are an outside agent to the running app. Tools that only read always work. Any other tool (including the ones behind `./formtools cli convert`, `resize` and `rename --apply`) is asked about in the formtools window (Deny, Allow once, Always allow) unless the person chose Allowed in Settings, Integration, Outside agents, and is refused under Blocked or when no window is open to ask. Only the window can change that choice: when a call is refused, tell the person what the refusal says and stop. `agents/manifest.json` lists every tool and which ones ask. - Research lives in `docs/encyclopedia/` (start at `INDEX.md`). Paraphrase only; every page keeps its Sources list. - Before adding a dependency, check `docs/encyclopedia/engines/engine-licensing-matrix.md` and add a `NOTICE.md` row in the same commit. diff --git a/CHANGELOG.md b/CHANGELOG.md index ff765b7..6357694 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 0.15.1 · 2026-11-30 + +A small fix release for Windows. 0.15.0 was never published, so this release also carries everything listed under 0.15.0. + +- Windows: the app builds again. The step that packs the engine stopped with "unrecognized arguments", because the licence notices file and the option after it ran together into one argument. + ## 0.15.0 · 2026-11-30 Menus that fit the window. diff --git a/CLAUDE.md b/CLAUDE.md index 2732e0a..ccf4cac 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -4,7 +4,7 @@ The form* family's media and file utility belt: viewers, batch image tools, 3D v ## Stage -Released (v0.15.0), built and bundled for macOS, Windows and Linux: Phases 1 to 9 of the approved plan, with Phase 2b for formvis and the repository side of Phase 10. Run `./formtools agents sync` after changing a skill and `./formtools agents check` before committing. The plan of record (`DEV_PLAN.md`), `BUILD_NOTES.md` and the root `HASHOUT_LOG.md` ship in the planning sidecar zip; read them, then the in-tree logs (`frontend/`, `backend/`, `src-tauri/`, `setup/` `HASHOUT_LOG.md`), before changing anything. For changing the code route through `.claude/skills/formtools-harness`; for using the app through MCP, `.claude/skills/formtools-driving`. +Released (v0.15.1), built and bundled for macOS, Windows and Linux: Phases 1 to 9 of the approved plan, with Phase 2b for formvis and the repository side of Phase 10. Run `./formtools agents sync` after changing a skill and `./formtools agents check` before committing. The plan of record (`DEV_PLAN.md`), `BUILD_NOTES.md` and the root `HASHOUT_LOG.md` ship in the planning sidecar zip; read them, then the in-tree logs (`frontend/`, `backend/`, `src-tauri/`, `setup/` `HASHOUT_LOG.md`), before changing anything. For changing the code route through `.claude/skills/formtools-harness`; for using the app through MCP, `.claude/skills/formtools-driving`. ## Layout notes diff --git a/README.md b/README.md index e1241d1..8b0f986 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@

- version 0.15.0 + version 0.15.1 TypeScript Python FastAPI engine macOS, Windows, Linux diff --git a/backend/app/__init__.py b/backend/app/__init__.py index 9da2f8f..903e77c 100644 --- a/backend/app/__init__.py +++ b/backend/app/__init__.py @@ -1 +1 @@ -__version__ = "0.15.0" +__version__ = "0.15.1" diff --git a/demo/assets/demo.js b/demo/assets/demo.js index 7eb5c6e..b4a482c 100644 --- a/demo/assets/demo.js +++ b/demo/assets/demo.js @@ -4853,7 +4853,7 @@ startxref Engine starting - `);hint=z(this.root,`.ft-st-hint`);engine=z(this.root,`.ft-st-engine`);mount(e){z(this.root,`.ft-st-slot`).replaceWith(e)}setHint(e){I(this.hint,e),gt(this.hint,e)}setEngine(e,t){L(this.engine,`is-up`,e===`up`),L(this.engine,`is-down`,e===`down`),I(z(this.engine,`.ft-st-engine-text`),t)}},eme=`0.15.0`;St();var n0=e=>String(Number(e.toFixed(3))),r0=(e,t,n)=>Math.min(n,Math.max(t,e)),i0=(e,t)=>(t&&(e.dataset.pref=t),e);function a0(e,...t){let n=R(`

`);return I(z(n,`.cv-prefs-label`),e),n.append(...t),n}var o0=e=>{let t=R(`

`);return I(t,e),t},tme=(...e)=>{let t=R(`
`);return t.append(...e),t};function s0(e,t,n,r,i,a=``,o){let s=R(`
`),c=z(s,`span`);I(c,e);let l=z(s,`input[type="range"]`),u=z(s,`input.cv-num`);i0(l,a),l.setAttribute(`aria-label`,e),u.setAttribute(`aria-label`,`${e} value`);let d=()=>{let e=n-t,r=`${e>0?r0((l.valueAsNumber-t)/e*100,0,100):0}%`;l.style.getPropertyValue(`--pct`)!==r&&l.style.setProperty(`--pct`,r)};if(l.addEventListener(`input`,()=>{d();let e=l.valueAsNumber;u.value=n0(e),i(e)}),u.addEventListener(`change`,()=>{let e=u.valueAsNumber;if(!Number.isFinite(e))return;let a=r0(Math.round(e/r)*r,t,n);u.value=n0(a),l.value=String(a),d(),i(a)}),u.addEventListener(`keydown`,e=>{e.key===`Enter`&&(e.preventDefault(),u.blur())}),o!==void 0){let e=()=>{l.value=String(o),d(),u.value=n0(o),i(o)};c.addEventListener(`dblclick`,e),l.addEventListener(`dblclick`,e),c.title=`Double-click to reset`}let f=null;c.classList.add(`cv-scrub`),c.addEventListener(`pointerdown`,e=>{e.button===0&&(f={x:e.clientX,v:l.valueAsNumber,id:e.pointerId,on:!1},c.setPointerCapture(e.pointerId))}),c.addEventListener(`pointermove`,e=>{if(!f||e.pointerId!==f.id)return;let i=e.clientX-f.x;if(!f.on){if(Math.abs(i)<3)return;f.on=!0}let a=(n-t)/250*(e.shiftKey?10:e.altKey?.1:1);l.value=String(r0(Number((Math.round((f.v+i*a)/r)*r).toFixed(6)),t,n)),l.dispatchEvent(new Event(`input`,{bubbles:!0}))});let p=e=>{c.hasPointerCapture(e.pointerId)&&c.releasePointerCapture(e.pointerId),f=null};return c.addEventListener(`pointerup`,p),c.addEventListener(`pointercancel`,p),d(),{el:s,set(e){l.valueAsNumber!==e&&(l.value=String(e)),d(),vt(u,n0(e))}}}function c0(e,t,n,r=``){let i=R(``);I(z(i,`span`),e);let a=i0(z(i,`select`),r);return a.addEventListener(`change`,()=>n(a.value)),{el:i,set(e){a.value!==e&&(a.value=e)}}}var nme=``;function l0(e,t,n=``){let r=R(``);I(z(r,`span`),e);let i=i0(z(r,`input`),n);return i.setAttribute(`role`,`switch`),i.addEventListener(`change`,()=>t(i.checked)),{el:r,set(e){yt(i,e)}}}function u0(e,t,n,r=``){let i=R(`
${t.map(([e,t])=>``).join(``)}
`);I(z(i,`span`),e);let a=i0(z(i,`.cv-seg`),r);a.setAttribute(`aria-label`,e);let o=Array.from(a.querySelectorAll(`.cv-seg-btn`)),s=``,c=()=>{let e=o.findIndex(e=>e.dataset.value===s);o.forEach((t,n)=>{let r=n===e;t.getAttribute(`aria-checked`)!==String(r)&&t.setAttribute(`aria-checked`,String(r)),t.classList.toggle(`is-on`,r);let i=r||e<0&&n===0?`0`:`-1`;t.getAttribute(`tabindex`)!==i&&t.setAttribute(`tabindex`,i)})},l=e=>{e!==s&&(s=e,c(),n(e))};return a.addEventListener(`click`,e=>{let t=e.target instanceof Element?e.target.closest(`.cv-seg-btn`):null;t?.dataset.value!==void 0&&l(t.dataset.value)}),a.addEventListener(`keydown`,e=>{let t=e.key===`ArrowLeft`||e.key===`ArrowUp`?-1:+(e.key===`ArrowRight`||e.key===`ArrowDown`);if(!t)return;e.preventDefault();let n=Math.max(0,o.findIndex(e=>e.dataset.value===s)),r=o[(n+t+o.length)%o.length];l(r.dataset.value??s),r.focus()}),{el:i,set(e){e!==s&&(s=e,c())}}}function rme(e,t,n=``){let r=R(``);I(z(r,`span`),e);let i=i0(z(r,`input`),n);return i.addEventListener(`input`,()=>t(i.value)),{el:r,set(e){vt(i,e)}}}function d0(e,t,n,r=``){let i=R(`
`);I(z(i,`span`),e);let a=z(i,`button`);return I(a,t),a.addEventListener(`click`,n),{el:i,button:a}}function f0(e,t=!1){let n=R(`
${t?``:``}
`);if(I(z(n,`span`),e),t){let t=z(n,`input`);return t.setAttribute(`aria-label`,e),{el:n,set(e){t.value!==e&&(t.value=e)}}}let r=z(n,`.cv-value`);return{el:n,set(e){I(r,e)}}}Oe(),St();var ime=class{commands;el=R(`

The shortcut list appears when Preferences opens inside the app.

`);built=!1;constructor(e){this.commands=e}refresh(){let e=this.commands;if(this.built||!e)return;let t=new Map;for(let n of e.all()){if(!n.keys?.length)continue;let r=R(`
`);r.title=n.description,I(z(r,`.cv-keys-name`),n.label.replace(/\.\.\.$/,``));let i=z(r,`.cv-keys-keys`);for(let t of n.keys){let r=document.createElement(`kbd`);I(r,e.keyLabel({...n,keys:[t]})),i.appendChild(r)}let a=t.get(n.group)??[];a.push(r),t.set(n.group,a)}let n=document.createDocumentFragment();for(let[e,r]of t){let t=R(`

`);I(t,e),n.append(t,...r)}z(this.el,`.cv-keys-empty`).remove(),this.el.appendChild(n),this.built=!0}},ame=class{status=R(`
`);data=R(`
`);state=f0(`Status`);version=f0(`Engine version`);system=f0(`System`);tools=f0(`Tools`);folder=f0(`Data folder`,!0);storage=f0(`Preferences`);check=d0(`Engine`,`Check again`,()=>void this.refresh());busy=!1;constructor(){this.status.append(this.state.el,this.version.el,this.system.el,this.tools.el,this.check.el),this.data.append(this.folder.el,this.storage.el),this.state.set(`Not checked yet`),this.version.set(`-`),this.system.set(`-`),this.tools.set(`-`),this.folder.set(``),this.storage.set(`This window, in local storage`)}async refresh(){if(this.busy)return;this.busy=!0;let[e,t]=await Promise.allSettled([De.health(),De.capabilities()]);this.busy=!1;let n=e.status===`fulfilled`&&e.value.ok;if(this.state.set(n?`Running`:`Not reachable`),this.version.set(e.status===`fulfilled`?e.value.version:`-`),t.status===`fulfilled`){let e=t.value;this.system.set(e.os===`macos`?`macOS`:e.os===`windows`?`Windows`:`Linux`),this.tools.set(`${e.tools.length} ready`),this.folder.set(e.dataDir??e.data_dir??`Not reported by this engine version`)}else this.system.set(`-`),this.tools.set(`-`),this.folder.set(`Shown when the engine is running`)}};Oe(),St(),Yn();var p0=new Set,m0=null,h0=null;function g0(){return h0||(h0=De.agentState().then(e=>{m0=e;for(let t of p0)t(e);return e},()=>m0).finally(()=>{h0=null}),h0)}function ome(e){p0.add(e),m0&&e(m0)}var sme={unavailable:`No system keychain is available on this computer, so Allowed cannot be kept. formtools asks each time.`},cme=class{el=R(`
`);row;note=R(`

`);status=R(`

`);constructor(){this.row=c0(`Outside agents`,[[`ask`,`Ask each time`],[`allowed`,`Allowed`],[`blocked`,`Blocked`]],e=>void this.choose(e),`agentAccess`),I(this.note,`Programs outside formtools, such as an AI agent or the command line, ask in the window before they change anything. Always allow in that question sets this to Allowed, for every outside agent and not only the one that asked. Blocked also stops the Chat, Claude Code, Codex, Cursor and Antigravity tabs inside formtools from changing anything; under Ask each time and Allowed those tabs are not asked. Reading is always allowed.`),this.el.append(this.row.el,this.note,this.status),ome(e=>this.apply(e))}async choose(e){try{await De.agentSetAccess(e)}catch(e){Kn(e instanceof Error?e.message:`The choice was not saved.`,`error`,6e3)}await g0()}apply(e){this.row.set(e.access),I(this.status,e.notice||sme[e.seal]||``)}};St(),Se();var lme=`Loading the notices...`,ume=`The notices could not be loaded. THIRD-PARTY-NOTICES.txt beside the app holds the same text.`;async function dme(){let e=await fetch(`/api/notices`,_e());if(!e.ok)throw Error(`The engine answered ${e.status}.`);return e.text()}function fme(e=dme){let t=R(`
`);I(z(t,`summary`),`Third-party notices`);let n=z(t,`.ft-notices-text`);I(n,lme);let r=!1;return t.addEventListener(`toggle`,()=>{t.open&&!r&&(r=!0,e().then(e=>{I(n,e)}).catch(()=>{r=!1,I(n,ume)}))}),t}St(),ie();var _0=`formtools.prefsRailCollapsed`,v0=`formtools.dialogSpots`,y0=[[`General`,`pfGeneral`],[`Appearance`,`pfInterface`],[`Browser`,`ftBrowse`],[`Viewer`,`ftViewer`],[`Desktop utilities`,`ftDesk`],[`Integration`,`ftFamily`],[`Keyboard shortcuts`,`pfTools`],[`Privacy and data`,`pfFile`],[`Engine`,`pfPerformance`],[`About`,`info`]],pme={desk:`Desktop utilities`,shortcuts:`Keyboard shortcuts`,data:`Privacy and data`,privacy:`Privacy and data`},mme=e=>e.startsWith(`formtools.`)||e===`formtools_desk_prefs`||e===`formtools_user_skin`||e.startsWith(`formtools_meta_`)||e===`nodemode_ui_settings`,hme=class{root;frame;pages;nav;shell;sections=new Map;setters=[];openers=[];grid;accent;intensity;menusRow;shortcuts;engine=new ame;agents=new cme;resetBtn;resetTimer=0;prefs=In();lastFocus=null;current=``;spyRaf=0;spyMuted=0;wireRaf=0;wireD=``;portY=-1;offset={x:0,y:0};constructor(e){Wn(this.prefs),this.shortcuts=new ime(e),this.root=R(`