fix: normalize model-visible images with Pi processing

This commit is contained in:
amosblomqvist
2026-10-28 18:16:04 +02:00
parent 8f6fd7cd29
commit 84f93999c5
28 changed files with 1870 additions and 60 deletions
+6
View File
@@ -78,6 +78,11 @@ const nextConfig: NextConfig = {
// npm installs only the current platform's binary, so this glob
// resolves to exactly one Skia binary per build.
"node_modules/@napi-rs/canvas-*/**/*",
// Pi-compatible image resizing runs in an unbundled worker. Photon
// loads its colocated WASM through Node, also in packaged Electron.
"src/agent/image-processing/*.mjs",
"src/agent/image-processing/LICENSE",
"node_modules/@silvia-odwyer/photon-node/**/*",
// Wave E stage 2: resvg rasterizes visual-maker SVGs natively; same
// per-platform-binary story as the canvas above (one per build).
"node_modules/@resvg/resvg-js-*/**/*",
@@ -106,6 +111,7 @@ const nextConfig: NextConfig = {
"@earendil-works/pi-agent-core",
"pdfjs-dist", // sources v0: bundling breaks its node fake-worker path
"@napi-rs/canvas", // native binding — bundling breaks the .node require
"@silvia-odwyer/photon-node", // CJS loads its adjacent WASM from disk
"@resvg/resvg-js", // native binding — same
],
};