diff --git a/.docs/wiki/Releasing.md b/.docs/wiki/Releasing.md index 55fab01b..57381baf 100644 --- a/.docs/wiki/Releasing.md +++ b/.docs/wiki/Releasing.md @@ -52,7 +52,7 @@ The updater stays off until you do all three: generate the key pair (above), pas A file named `portable` or `portable.txt` beside the engine makes it keep everything in a `FormvisData` folder there, and the shell moves the web view's data into the same folder. The zip carries `portable.txt`. `FORMVIS_PORTABLE=1` or `--portable` does the same for a source checkout. -`./formvis libcheck [--dialogs]` (Linux) names the shared libraries the desktop program cannot find and what the file dialogs need; the deb installs the same script as `/usr/share/formvis/libcheck`, and `./build_app --open` runs it first. A program missing a library never reaches its own code, so the check also runs before it starts: `formvis-launch` (the deb installs it as `/usr/bin/formvis-launch`; it lives in `packaging/linux/`) runs libcheck on the program, shows the missing libraries and the install command with zenity, kdialog or notify-send (whichever exists; it always prints them), and starts formvis only when nothing is missing. For an AppImage run `FORMVIS_PROGRAM=/path/formvis.AppImage formvis-launch`, which checks the window's libraries by name (`libcheck --names`); `FORMVIS_SKIP_LIBCHECK=1` skips the check. `libcheck --dialogs` also says when neither zenity nor kdialog is installed (formvis's own dialogs are GTK and do not need them), and when a file dialog closes at once the shell shows and prints the same facts (session, display, session bus). One running window owns each data folder on Linux: a second launch on the same folder hands its files to that window, and a launch on another folder (`--user-data-dir`, `FORMVIS_DATA_DIR`, portable) opens its own. Help, System Info lists graphics memory when `nvidia-smi` (or, on Windows, the performance counters) can read it. +`./formvis libcheck [--dialogs]` (Linux) names the shared libraries the desktop program cannot find and what the file dialogs need; the deb and the rpm install the same script as `/usr/share/formvis/libcheck`, and `./build_app --open` runs it first. A program missing a library never reaches its own code, so the check also runs before it starts: `formvis-launch` (the deb and the rpm install it as `/usr/bin/formvis-launch`; it lives in `packaging/linux/`) runs libcheck on the program, shows the missing libraries and the install command with zenity, kdialog or notify-send (whichever exists; it always prints them), and starts formvis only when nothing is missing. For an AppImage run `FORMVIS_PROGRAM=/path/formvis.AppImage formvis-launch`, which checks the window's libraries by name (`libcheck --names`); `FORMVIS_SKIP_LIBCHECK=1` skips the check. `libcheck --dialogs` also says when neither zenity nor kdialog is installed (formvis's own dialogs are GTK and do not need them), and when a file dialog closes at once the shell shows and prints the same facts (session, display, session bus). One running window owns each data folder on Linux: a second launch on the same folder hands its files to that window, and a launch on another folder (`--user-data-dir`, `FORMVIS_DATA_DIR`, portable) opens its own. Help, System Info lists graphics memory when `nvidia-smi` (or, on Windows, the performance counters) can read it. ## Notes diff --git a/CHANGELOG.md b/CHANGELOG.md index 87a4e354..6c72cae7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,14 @@ Versions follow `v*.*.*` with dots. Dates are UTC. From 1.50.1 the last number r The app was renamed formvis at 1.50.5; its projects were `.fmv` until 1.87.0 and are `.fvd` since. The entries below read with the new name throughout; the git history keeps the former one. +## 2.8.2 · 2026-11-26 + +On Linux, the rpm now carries the launcher and the library check that the deb has. + +- Installed from the rpm, FormVis's menu entry starts `formvis-launch`, which checks that the libraries the window needs are installed and names any that are missing before starting the program. Until now only the deb did this; the rpm started the program directly, and a missing library ended it with no message. +- The rpm also installs the check itself as `/usr/share/formvis/libcheck`. +- Nothing else changed: the program, the engine and the other packages are the same as 2.8.1. + ## 2.8.1 · 2026-11-20 The check on what each agent tool says about itself now also covers files, and two documents written before the release say at their top that FormVis is released. diff --git a/README.md b/README.md index c0b8dd31..f03e6fc4 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@
-
+
diff --git a/backend/HASHOUT_LOG.md b/backend/HASHOUT_LOG.md
index 30f551ce..9927a14d 100644
--- a/backend/HASHOUT_LOG.md
+++ b/backend/HASHOUT_LOG.md
@@ -2,6 +2,14 @@
Living log for the engine service side, _v0.1.0. Read the map and the TOC first; entries are anchored by file and symbol, and removed code is quoted in full.
+## The rpm carries the launcher and the library check, as the deb does · 2.8.2 (src-tauri/tauri.conf.json `bundle.linux.rpm`)
+
+- Kind: fix · logged 2026-11-26 · asked after a Linux tester's FormVis, installed from its rpm, closed right after starting.
+- **What was there.** `bundle.linux` had a `deb` section (the desktop entry from `packaging/linux/formvis-deb.desktop`, whose `Exec` is `formvis-launch`, plus `/usr/bin/formvis-launch` and `/usr/share/formvis/libcheck`) and an `appimage` section (the launcher), and no `rpm` section. The rpm therefore held `usr/bin/formvis` and Tauri's stock desktop entry (`Exec=formvis`): no launcher, no library check, so a missing library on an rpm system ended the program before any message.
+- **The change.** An `rpm` section with the same `desktopTemplate` and the same two `files` as the deb. The template's name says deb; it holds nothing deb-specific and is used as it is. The deb's `recommends` are Debian package names and are not copied. formcompiler's `--config` for the rpm (`compression: none`) merges into this section.
+- **Not the cause of the tester's report.** That was FormPortal's AppImage passing its own GTK settings to what it starts (fixed in FormPortal 0.73.1); the rpm's program runs on its own. This closes the gap found while looking.
+- **Seen.** The section's keys are in `RpmConfig` of the Tauri CLI's `config.schema.json` (2.12.1, `additionalProperties: false`), and both sources exist. The deb's tree, which has the same two files at the same two paths, was run on Ubuntu 24.04: `formvis-launch` starts `formvis`. Not built here: no rpm was made with this section, so that the launcher arrives executable in the rpm is shown only by the release build.
+
## A tool that declares files must be one whose path a folder check covers, and a headless file tool must declare files · 2.8.1 (app/routers/mcp.py `_HEADLESS_FILES`, `declaration_faults`; tests/test_agent_approvals.py)
- Kind: fix · logged 2026-11-20 · the queued follow-up "the per-tool declaration check (read-only, approval-gated, folder-confined, document-only)".
diff --git a/backend/app/__init__.py b/backend/app/__init__.py
index 90dfe6ab..27caed59 100644
--- a/backend/app/__init__.py
+++ b/backend/app/__init__.py
@@ -21,4 +21,4 @@
except ImportError:
pass
-__version__ = "2.8.1"
+__version__ = "2.8.2"
diff --git a/demo/assets/demo.js b/demo/assets/demo.js
index 53b1e036..e0f3bed1 100644
--- a/demo/assets/demo.js
+++ b/demo/assets/demo.js
@@ -1,4 +1,4 @@
-(function(){var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(e){throw n=[e],e}},s=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports),c=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;li[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},u=(n,r,o)=>(o=n==null?{}:e(i(n)),l(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n)),d=`2.8.1`,f=`This needs the desktop engine. The demo runs the picture engine in the page; saving to the library, camera raw, colour conversion, local models, video and agents belong to the desktop app.`,p=(e,t=200)=>new Response(JSON.stringify(e),{status:t,headers:{"Content-Type":`application/json`}}),m={name:`formvis`,version:d,desktop:!1,decode:{heic:!1,tiff:!0,engine:`page`},removeBackground:{ml:!1,lite:!1,default:null,model:``},dataDir:``},h={"/library":[],"/plugins":[],"/outputs":[],"/jobs":[],"/mcp/bridge/changed":{},"/mcp/bridge/stop":{}},g=e=>e===`/capabilities`?p(m):e in h?p(h[e]):p({detail:f},503),_=class extends EventTarget{url;static CONNECTING=0;static OPEN=1;static CLOSING=2;static CLOSED=3;readyState=0;binaryType=`blob`;onopen=null;onclose=null;onerror=null;onmessage=null;constructor(e){super(),this.url=e,window.setTimeout(()=>{this.readyState=3;let e=new Event(`close`);this.onclose?.(e),this.dispatchEvent(e)},0)}send(){}close(){this.readyState=3}},v=window.WebSocket;window.WebSocket=new Proxy(v,{construct(e,t){let n=String(t[0]);return/^wss?:\/\/(api\/|\/)/.test(n)||n.includes(`/api/`)?new _(n):new e(...t)}});var y=window.fetch.bind(window);window.fetch=(e,t)=>{let n=typeof e==`string`?e:e instanceof URL?e.href:e.url,r=n.indexOf(`/api/`);if(!(n.startsWith(`/api/`)||n.startsWith(`file:`)&&r>=0))return y(e,t);let i=n.slice(r+4).split(`?`)[0];return Promise.resolve(g(i))};function b(e){let t=document.createElement(`canvas`);return t.width=Math.max(1,e.naturalWidth),t.height=Math.max(1,e.naturalHeight),t.getContext(`2d`).drawImage(e,0,0),t}async function x(e){let t=new Image;return t.src=e,await t.decode(),b(t)}function S(e){let t=e.getContext(`2d`,{willReadFrequently:!0}),n=t.getImageData(0,0,e.width,e.height),r=n.data;for(let e=0;e
=0){let n=l*s,r=u*s;for(let i=0;i=0){let n=u*s;for(let r=0;r=.1))return new ImageData(new Uint8ClampedArray(e.data),n,r);let i=Xt(e.data),a=Qt(t).map(e=>(e-1)/2);if(!Oe(i,n,r,a)){let e=new Float32Array(i.length);for(let t of a)$t(i,e,n,r,t,!0),$t(e,i,n,r,t,!1)}return Zt(i,n,r)}function tn(e){return Math.ceil(3*e)+1}function nn(e,t,n,r,i,a){let o=Math.floor(r),s=Math.floor(i),c=r-o,l=i-s;for(let r=0;r<4;r++){let i=0;for(let a=0;a<2;a++){let u=s+a;if(u<0||u>=n)continue;let d=a?l:1-l;for(let n=0;n<2;n++){let a=o+n;a<0||a>=t||(i+=d*(n?c:1-c)*e[(u*t+a)*4+r])}}a[r]+=i}}function rn(e,t,n){let{width:r,height:i}=e,a=Xt(e.data),o=new Float32Array(a.length),s=t*Math.PI/180,c=Math.cos(s),l=-Math.sin(s),u=Math.max(2,Math.min(96,Math.ceil(n)+1)),d=Array.from({length:u},(e,t)=>-n/2+n*t/(u-1)),f=new Float64Array(4);for(let e=0;e=r&&(o[e+t]=Math.round(_t(o[e+t]+n*s,0,255)))}return a}function sn(e){return e=e+2654435769|0,e=Math.imul(e^e>>>16,2246822507),e=Math.imul(e^e>>>13,3266489909),(e^e>>>16)>>>0}function cn(e,t,n,r,i){let a=new ImageData(new Uint8ClampedArray(e.data),e.width,e.height),o=a.data,s=t/100*127.5;if(!n&&je(o,s,r,i))return a;for(let e=0,t=0;t=i))for(let e=-c;e<=c;e+=u){let i=t+e;if(i<0||i>=r||e*e+n*n>c*c)continue;let u=a[(s*r+i)*4+o],m=Math.abs(u-d);if(m>l)continue;let h=1-m/(l*2.5);f+=u*h,p+=h}}s[n+o]=p?Math.round(f/p):d}}return o}function En(e,t,n){let r=[0,t/8,t/4,t/2,t].filter((e,t,n)=>t===0||e>n[t-1]+.01),i=r.map(t=>t<.3?e:en(e,t)),{width:a,height:o}=e,s=xn(e),c=s.data;for(let e=0;e0&&i>=r?l:1;c[e*4]=ra[o[e*4]]*a*t,c[e*4+1]=ra[o[e*4+1]]*a*t,c[e*4+2]=ra[o[e*4+2]]*a*t,c[e*4+3]=t}let u=Wi(c,i,a,t),d=new ImageData(i,a),f=d.data;for(let e=0;e{let a=Math.min(t-1,Math.max(0,r)),o=Math.min(n-1,Math.max(0,i)),s=Math.floor(a),c=Math.floor(o),l=Math.min(t-1,s+1),u=Math.min(n-1,c+1),d=a-s,f=o-c;return(e[c*t+s]*(1-d)+e[c*t+l]*d)*(1-f)+(e[u*t+s]*(1-d)+e[u*t+l]*d)*f};for(let e=0;er?255:0}}return i}function No(e,t,n){let r=$n(e),i=Zn(n,e.width,e.height);if(!i)return r;let a=Math.max(1,Math.round(t)),o=e.data,s=r.data,c=e.width;for(let t=Math.floor((i.y0-n.y0)/a);n.y0+t*a0?0:1;e<=h;e++){let r=er(Math.floor(s),0,t-1),o=er(Math.floor(c),0,n-1)*t+r,f=Math.exp(-(e*e)/(2*Math.max(1,h*h*.25)));i[0]+=l[o*3]*f,i[1]+=l[o*3+1]*f,i[2]+=l[o*3+2]*f,i[3]+=g[o]*f,a+=f;let m=p[o*2],_=p[o*2+1];m*u+_*d<0&&(m=-m,_=-_),u=m,d=_,s+=u,c+=d}}let o=e*t+r;for(let e=0;e<4;e++)_[o*4+e]=i[e]/a}let v=new Float32Array(s);for(let e=0;e127&&(n[e+t]=255-n[e+t]);return t}function aee(e,t,n,r,i,a,o,s){let c=Zn(a,e.width,e.height),l=$n(e);if(!c)return l;let u=e.data,d=l.data,f=e.width,p=Math.max(1,Math.min(a.x1-a.x0,a.y1-a.y0)/Math.max(1,t)),m=p*n/100;for(let e=c.y0;e