Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.
C aiderastclaude-codecode-analysiscode-intelligencecodexcursorcypherdeveloper-toolsgemini-cligraph-visualizationkilocodeknowledge-graphmcpmcp-servermodel-context-protocolopencodesqlitetree-sitterwindsurf
chore(ui): drop sharp and its LGPL libvips; the license gate allows no exception
Martin Vogel9d85701a6d6a
diff --git a/graph-ui/package-lock.json b/graph-ui/package-lock.jsonindex 777055a63..c444f4e41 100644--- a/graph-ui/package-lock.json+++ b/graph-ui/package-lock.json@@ -17,6 +17,7 @@"react-dom": "19.2.8","react-markdown": "10.1.0","remark-gfm": "4.0.1",+ "sharp": "file:./stubs/sharp","three": "0.183.2","yaml": "2.8.3"},@@ -468,16 +469,6 @@"integrity": "sha512-uekIGetywIgopfD97oDL5PfeezkFpNhwlzlaEYNOA0N6ghdsOvh/HYjSMek5Q2O1PYvRSDFcqFVJl4r4ZBwOow==","license": "Apache-2.0"},- "node_modules/@emnapi/runtime": {- "version": "1.11.3",- "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.11.3.tgz",- "integrity": "sha512-Xz4Tpyki7XyrpbUK1jR1AhdAdaXyhhY4lZ3neLodmhpuWfy2PAQN5B46sAiU4liOXGLkHypn/qU+jvfWSCYYLA==",- "license": "MIT",- "optional": true,- "dependencies": {- "tslib": "^2.4.0"- }- },"node_modules/@esbuild/aix-ppc64": {"version": "0.25.12","resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.12.tgz",@@ -948,554 +939,6 @@"sharp": "^0.34.5"}},- "node_modules/@img/colour": {- "version": "1.1.0",- "resolved": "https://registry.npmjs.org/@img/colour/-/colour-1.1.0.tgz",- "integrity": "sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==",- "license": "MIT",- "engines": {- "node": ">=18"- }- },- "node_modules/@img/sharp-darwin-arm64": {- "version": "0.35.5",- "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.35.5.tgz",- "integrity": "sha512-QRUlFQ0WxvdWyqqG/WtI3iupfD5rBzmCHXSdPsY91sAtVtTo7Q4cb6zOccZ3gqEqkr0f1As1ehLqmEpDsRf+lg==",- "cpu": [- "arm64"- ],- "license": "Apache-2.0",- "optional": true,- "os": [- "darwin"- ],- "engines": {- "node": ">=20.9.0"- },- "funding": {- "url": "https://opencollective.com/libvips"- },- "optionalDependencies": {- "@img/sharp-libvips-darwin-arm64": "1.3.4"- }- },- "node_modules/@img/sharp-darwin-x64": {- "version": "0.35.5",- "resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.35.5.tgz",- "integrity": "sha512-+BR255RhDlpygUpOc/Jdt1nT6DQ3XG/ERo5wbcdOf5Q320dKtPCKPLR1LJs9VGXRaMa8l1uUa0tkCNOXiAxZUw==",- "cpu": [- "x64"- ],- "license": "Apache-2.0",- "optional": true,- "os": [- "darwin"- ],- "engines": {- "node": ">=20.9.0"- },- "funding": {- "url": "https://opencollective.com/libvips"- },- "optionalDependencies": {- "@img/sharp-libvips-darwin-x64": "1.3.4"- }- },- "node_modules/@img/sharp-freebsd-wasm32": {- "version": "0.35.5",- "resolved": "https://registry.npmjs.org/@img/sharp-freebsd-wasm32/-/sharp-freebsd-wasm32-0.35.5.tgz",- "integrity": "sha512-Y/z91nEZ4uIBX5X3nfTovjU9lHNKFYbL2lpHCLVNmXQK03VIZvXBBt0KxbPGp2SdGSF+2mQU4e+hQaWOt86iAw==",- "license": "Apache-2.0",- "optional": true,- "os": [- "freebsd"- ],- "dependencies": {- "@img/sharp-wasm32": "0.35.5"- },- "engines": {- "node": ">=20.9.0"- },- "funding": {- "url": "https://opencollective.com/libvips"- }- },- "node_modules/@img/sharp-libvips-darwin-arm64": {- "version": "1.3.4",- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.3.4.tgz",- "integrity": "sha512-5R89nBYiRdUlSWJxPhO+GVtaXzXSxKnRu/xqMn3KTA3L9EB9Oy/P+Nn2f2vlhPuUdy/Zusb2DarbyTpGCfEDuw==",- "cpu": [- "arm64"- ],- "license": "LGPL-3.0-or-later",- "optional": true,- "os": [- "darwin"- ],- "funding": {- "url": "https://opencollective.com/libvips"- }- },- "node_modules/@img/sharp-libvips-darwin-x64": {- "version": "1.3.4",- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.3.4.tgz",- "integrity": "sha512-iR2OKH80yi0U+dUplyh3/xdpFvps6YkCwsXenIJxqxR1v9o+xtKTGbS9H7cps+2Vxjc8B1j96p75NmTGjIhtpQ==",- "cpu": [- "x64"- ],- "license": "LGPL-3.0-or-later",- "optional": true,- "os": [- "darwin"- ],- "funding": {- "url": "https://opencollective.com/libvips"- }- },- "node_modules/@img/sharp-libvips-linux-arm": {- "version": "1.3.4",- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.3.4.tgz",- "integrity": "sha512-LmRtTsOHuvM2+wlO2Db37dx5MiZhB0FvSunciw48YjdOkZz9KAiRbm8ujeMOA1INqmei5NapFxYEK1D1ZSidmw==",- "cpu": [- "arm"- ],- "libc": [- "glibc"- ],- "license": "LGPL-3.0-or-later",- "optional": true,- "os": [- "linux"- ],- "funding": {- "url": "https://opencollective.com/libvips"- }- },- "node_modules/@img/sharp-libvips-linux-arm64": {- "version": "1.3.4",- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.3.4.tgz",- "integrity": "sha512-Y3dgX/6lE2QhQb+Gxy0WZxfg9MEm/JBjamZpS2IklP7xIQoKN4hzAm7KcMVGtaVDt3neE9OKBC7vAfonA/Lr1A==",- "cpu": [- "arm64"- ],- "libc": [- "glibc"- ],- "license": "LGPL-3.0-or-later",- "optional": true,- "os": [- "linux"- ],- "funding": {- "url": "https://opencollective.com/libvips"- }- },- "node_modules/@img/sharp-libvips-linux-ppc64": {- "version": "1.3.4",- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-ppc64/-/sharp-libvips-linux-ppc64-1.3.4.tgz",- "integrity": "sha512-Le6boB8Tai0Nis+gIxIpKx68UDVVIqdR8Tin5Yf1z2LJJQLDJvCDRqRu+jC2qCoD+eIomonmOwB4smBRxfVpYQ==",- "cpu": [- "ppc64"- ],- "libc": [- "glibc"- ],- "license": "LGPL-3.0-or-later",- "optional": true,- "os": [- "linux"- ],- "funding": {- "url": "https://opencollective.com/libvips"- }- },- "node_modules/@img/sharp-libvips-linux-riscv64": {- "version": "1.3.4",- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-riscv64/-/sharp-libvips-linux-riscv64-1.3.4.tgz",- "integrity": "sha512-aHkkIEHPRdQEegJN20MLmGtxYD9R2wQr3Cwpddnu5+YKMt6Uzax7S9h5gpZTo8wyrGuZSlfQ63OevL5mTyOC7Q==",- "cpu": [- "riscv64"- ],- "libc": [- "glibc"- ],- "license": "LGPL-3.0-or-later",- "optional": true,- "os": [- "linux"- ],- "funding": {- "url": "https://opencollective.com/libvips"- }- },- "node_modules/@img/sharp-libvips-linux-s390x": {- "version": "1.3.4",- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.3.4.tgz",- "integrity": "sha512-ra/mB6MikESDUO7Yg+Mi95bFBb9GsObURuhnOv3OqknjGe9sZrG8tCe9q0xSIGrtLgvgw0gKnFWcK4blSgQOuQ==",- "cpu": [- "s390x"- ],- "libc": [- "glibc"- ],- "license": "LGPL-3.0-or-later",- "optional": true,- "os": [- "linux"- ],- "funding": {- "url": "https://opencollective.com/libvips"- }- },- "node_modules/@img/sharp-libvips-linux-x64": {- "version": "1.3.4",- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.3.4.tgz",- "integrity": "sha512-GJ//SSXbnwSDes02umB3nDJLFcQzw8a18V8fyhqr6tV515tOEMdImjjxj1AoafMRz56F3PHgftnj1QEKSU1zkw==",- "cpu": [- "x64"- ],- "libc": [- "glibc"- ],- "license": "LGPL-3.0-or-later",- "optional": true,- "os": [- "linux"- ],- "funding": {- "url": "https://opencollective.com/libvips"- }- },- "node_modules/@img/sharp-libvips-linuxmusl-arm64": {- "version": "1.3.4",- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.3.4.tgz",- "integrity": "sha512-hvulFwtjUcagsis6BBxHwGFwWoNZjgYmULGVrZcyfNbjA8hKILbRxGg15/7w5HDyXHXUos/j6baAWqnCyQ2DWA==",- "cpu": [- "arm64"- ],- "libc": [- "musl"- ],- "license": "LGPL-3.0-or-later",- "optional": true,- "os": [- "linux"- ],- "funding": {- "url": "https://opencollective.com/libvips"- }- },- "node_modules/@img/sharp-libvips-linuxmusl-x64": {- "version": "1.3.4",- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.3.4.tgz",- "integrity": "sha512-6zXKeE/p39I1AmA3cJG35eyBGNqNddLnUXjhwBnsGjFPWqf5VKkDBEqaEkPDoTEtkxwi2vv8Tcr2mDyP4So7Fg==",- "cpu": [- "x64"- ],- "libc": [- "musl"- ],- "license": "LGPL-3.0-or-later",- "optional": true,- "os": [- "linux"- ],- "funding": {- "url": "https://opencollective.com/libvips"- }- },- "node_modules/@img/sharp-linux-arm": {- "version": "0.35.5",- "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.35.5.tgz",- "integrity": "sha512-LEaXK2WdXVK5ykcw0buWyPMsmLLL2vpHLD6yrNSW+JGEL3BZPA4tpKN6iaMc4AxTTAoaX/sU1rOL51lcIz48ZQ==",- "cpu": [- "arm"- ],- "libc": [- "glibc"- ],- "license": "Apache-2.0",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=20.9.0"- },- "funding": {- "url": "https://opencollective.com/libvips"- },- "optionalDependencies": {- "@img/sharp-libvips-linux-arm": "1.3.4"- }- },- "node_modules/@img/sharp-linux-arm64": {- "version": "0.35.5",- "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.35.5.tgz",- "integrity": "sha512-LYVx5JTsOM2CBzmxreh+nl64/3H6Xb09iSLknqH47z2T2DFFxDeFLP5y4dJwe6H7uGQlHPyEEtIqyo3DYsRwdQ==",- "cpu": [- "arm64"- ],- "libc": [- "glibc"- ],- "license": "Apache-2.0",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=20.9.0"- },- "funding": {- "url": "https://opencollective.com/libvips"- },- "optionalDependencies": {- "@img/sharp-libvips-linux-arm64": "1.3.4"- }- },- "node_modules/@img/sharp-linux-ppc64": {- "version": "0.35.5",- "resolved": "https://registry.npmjs.org/@img/sharp-linux-ppc64/-/sharp-linux-ppc64-0.35.5.tgz",- "integrity": "sha512-QVxAAq8evVRI9ia2vqgwrmWucn5Dfv+JdWzj75pD8omHLPSP7f8p20O8jxzjCcuCEQEOtYOZUmX1hkiZ0kdevA==",- "cpu": [- "ppc64"- ],- "libc": [- "glibc"- ],- "license": "Apache-2.0",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=20.9.0"- },- "funding": {- "url": "https://opencollective.com/libvips"- },- "optionalDependencies": {- "@img/sharp-libvips-linux-ppc64": "1.3.4"- }- },- "node_modules/@img/sharp-linux-riscv64": {- "version": "0.35.5",- "resolved": "https://registry.npmjs.org/@img/sharp-linux-riscv64/-/sharp-linux-riscv64-0.35.5.tgz",- "integrity": "sha512-LtdreXguaavKODPIfzJ4kffx7UNt1omwtK0rch4EBbbSTXPnxWmYSayXdLJw0fJzQ97kHt1gL/yh4tvU+nCyRQ==",- "cpu": [- "riscv64"- ],- "libc": [- "glibc"- ],- "license": "Apache-2.0",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=20.9.0"- },- "funding": {- "url": "https://opencollective.com/libvips"- },- "optionalDependencies": {- "@img/sharp-libvips-linux-riscv64": "1.3.4"- }- },- "node_modules/@img/sharp-linux-s390x": {- "version": "0.35.5",- "resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.35.5.tgz",- "integrity": "sha512-UZasTOFiYzotTsGOCu42BfUzP6Tu6Do/947iRm1RsLKvlllxwGcn4RN27LibGWceix4Y+Pmw3jsnTcCQIgWjqA==",- "cpu": [- "s390x"- ],- "libc": [- "glibc"- ],- "license": "Apache-2.0",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=20.9.0"- },- "funding": {- "url": "https://opencollective.com/libvips"- },- "optionalDependencies": {- "@img/sharp-libvips-linux-s390x": "1.3.4"- }- },- "node_modules/@img/sharp-linux-x64": {- "version": "0.35.5",- "resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.35.5.tgz",- "integrity": "sha512-SxFtLTeJInhAA9Q836kux2vZNeOBQEx658qvbboZScr0wIARym3IcGmW7KpVD5sbVg0Ojy+udFQdayYIZyoNog==",- "cpu": [- "x64"- ],- "libc": [- "glibc"- ],- "license": "Apache-2.0",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=20.9.0"- },- "funding": {- "url": "https://opencollective.com/libvips"- },- "optionalDependencies": {- "@img/sharp-libvips-linux-x64": "1.3.4"- }- },- "node_modules/@img/sharp-linuxmusl-arm64": {- "version": "0.35.5",- "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.35.5.tgz",- "integrity": "sha512-9HbMclmI1zlNkFRs3z9/eBtDjfD0sGlrX1z6b1qwmiFY5ElDLh4BC0LPBdVp7z1DXFiKlIcznf+ZlsuZzLxQqg==",- "cpu": [- "arm64"- ],- "libc": [- "musl"- ],- "license": "Apache-2.0",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=20.9.0"- },- "funding": {- "url": "https://opencollective.com/libvips"- },- "optionalDependencies": {- "@img/sharp-libvips-linuxmusl-arm64": "1.3.4"- }- },- "node_modules/@img/sharp-linuxmusl-x64": {- "version": "0.35.5",- "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.35.5.tgz",- "integrity": "sha512-4KOphqB035HrVdqLZfCgMzzERrQkkzOwRhl4OAkRO1YCldbaFjySXMaK534Mo0V+LndnlJk+sbUyLeU0ULyD1A==",- "cpu": [- "x64"- ],- "libc": [- "musl"- ],- "license": "Apache-2.0",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=20.9.0"- },- "funding": {- "url": "https://opencollective.com/libvips"- },- "optionalDependencies": {- "@img/sharp-libvips-linuxmusl-x64": "1.3.4"- }- },- "node_modules/@img/sharp-wasm32": {- "version": "0.35.5",- "resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.35.5.tgz",- "integrity": "sha512-Ptsga1su4tQx+LLF1ECS9U6nz5kmrXKo6XVbtR48Ke3ZRxxgaWBu7IDtEe1quo8hiupwm6WFqxVlXaSf7IINGQ==",- "license": "Apache-2.0 AND LGPL-3.0-or-later AND MIT",- "optional": true,- "dependencies": {- "@emnapi/runtime": "^1.11.3"- },- "engines": {- "node": ">=20.9.0"- },- "funding": {- "url": "https://opencollective.com/libvips"- }- },- "node_modules/@img/sharp-webcontainers-wasm32": {- "version": "0.35.5",- "resolved": "https://registry.npmjs.org/@img/sharp-webcontainers-wasm32/-/sharp-webcontainers-wasm32-0.35.5.tgz",- "integrity": "sha512-hfhF/FmoQyTUkA0bIKFOtw536BQSeBMe6BF6QyWlrPxT754+TFLaZ7sKKTfvvM0yJgKgaYTwnFCIZ/GuDw5SUA==",- "cpu": [- "wasm32"- ],- "license": "Apache-2.0",- "optional": true,- "dependencies": {- "@img/sharp-wasm32": "0.35.5"- },- "engines": {- "node": ">=20.9.0"- },- "funding": {- "url": "https://opencollective.com/libvips"- }- },- "node_modules/@img/sharp-win32-arm64": {- "version": "0.35.5",- "resolved": "https://registry.npmjs.org/@img/sharp-win32-arm64/-/sharp-win32-arm64-0.35.5.tgz",- "integrity": "sha512-X4t7g+7ZA5DKblCBEXGjUqqemj4vczING/5viFwAL8h4N3qYeyjwdCvRLHi4EdOUI+2Z7UFlp1VM+p/AuEtm6Q==",- "cpu": [- "arm64"- ],- "license": "Apache-2.0 AND LGPL-3.0-or-later",- "optional": true,- "os": [- "win32"- ],- "engines": {- "node": ">=20.9.0"- },- "funding": {- "url": "https://opencollective.com/libvips"- }- },- "node_modules/@img/sharp-win32-ia32": {- "version": "0.35.5",- "resolved": "https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.35.5.tgz",- "integrity": "sha512-5Zm82LoBc43nhwNybZlG7Y1KO//Zhsn306fQl29ZOuStHLGTo3BWL83q3cznX0poxSAMuYL1On/BHBxkBeKr6A==",- "cpu": [- "ia32"- ],- "license": "Apache-2.0 AND LGPL-3.0-or-later",- "optional": true,- "os": [- "win32"- ],- "engines": {- "node": "^20.9.0"- },- "funding": {- "url": "https://opencollective.com/libvips"- }- },- "node_modules/@img/sharp-win32-x64": {- "version": "0.35.5",- "resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.35.5.tgz",- "integrity": "sha512-x76eH0vEiHlcMQu8Y8IenntaACtddpT6W0wmXtWrnKcnKI7ME5DdgqhAD6SEWOEl1v2zDvkZDhFA9KnURwpfqg==",- "cpu": [- "x64"- ],- "license": "Apache-2.0 AND LGPL-3.0-or-later",- "optional": true,- "os": [- "win32"- ],- "engines": {- "node": ">=20.9.0"- },- "funding": {- "url": "https://opencollective.com/libvips"- }- },"node_modules/@jridgewell/gen-mapping": {"version": "0.3.13","resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",@@ -2943,15 +2386,6 @@"webgl-constants": "^1.1.1"}},- "node_modules/detect-libc": {- "version": "2.1.2",- "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",- "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==",- "license": "Apache-2.0",- "engines": {- "node": ">=8"- }- },"node_modules/devlop": {"version": "1.1.0","resolved": "https://registry.npmjs.org/devlop/-/devlop-1.1.0.tgz",@@ -5292,65 +4726,8 @@}},"node_modules/sharp": {- "version": "0.35.5",- "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.35.5.tgz",- "integrity": "sha512-Ywn4OnzGukp7CDMrp08RQ50YKmuwG47brZgIVPTvBaaAfQlRlygrRqSrxdCiL9M+LlzLBiJ68IR1QqvzHyjC7g==",- "license": "Apache-2.0",- "dependencies": {- "@img/colour": "^1.1.0",- "detect-libc": "^2.1.2",- "semver": "^7.8.5"- },- "engines": {- "node": ">=20.9.0"- },- "funding": {- "url": "https://opencollective.com/libvips"- },- "optionalDependencies": {- "@img/sharp-darwin-arm64": "0.35.5",- "@img/sharp-darwin-x64": "0.35.5",- "@img/sharp-freebsd-wasm32": "0.35.5",- "@img/sharp-libvips-darwin-arm64": "1.3.4",- "@img/sharp-libvips-darwin-x64": "1.3.4",- "@img/sharp-libvips-linux-arm": "1.3.4",- "@img/sharp-libvips-linux-arm64": "1.3.4",- "@img/sharp-libvips-linux-ppc64": "1.3.4",- "@img/sharp-libvips-linux-riscv64": "1.3.4",- "@img/sharp-libvips-linux-s390x": "1.3.4",- "@img/sharp-libvips-linux-x64": "1.3.4",- "@img/sharp-libvips-linuxmusl-arm64": "1.3.4",- "@img/sharp-libvips-linuxmusl-x64": "1.3.4",- "@img/sharp-linux-arm": "0.35.5",- "@img/sharp-linux-arm64": "0.35.5",- "@img/sharp-linux-ppc64": "0.35.5",- "@img/sharp-linux-riscv64": "0.35.5",- "@img/sharp-linux-s390x": "0.35.5",- "@img/sharp-linux-x64": "0.35.5",- "@img/sharp-linuxmusl-arm64": "0.35.5",- "@img/sharp-linuxmusl-x64": "0.35.5",- "@img/sharp-webcontainers-wasm32": "0.35.5",- "@img/sharp-win32-arm64": "0.35.5",- "@img/sharp-win32-ia32": "0.35.5",- "@img/sharp-win32-x64": "0.35.5"- },- "peerDependenciesMeta": {- "@types/node": {- "optional": true- }- }- },- "node_modules/sharp/node_modules/semver": {- "version": "7.8.5",- "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",- "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==",- "license": "ISC",- "bin": {- "semver": "bin/semver.js"- },- "engines": {- "node": ">=10"- }+ "resolved": "stubs/sharp",+ "link": true},"node_modules/shebang-command": {"version": "2.0.0",@@ -5666,13 +5043,6 @@"url": "https://github.com/sponsors/wooorm"}},- "node_modules/tslib": {- "version": "2.8.1",- "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",- "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",- "license": "0BSD",- "optional": true- },"node_modules/tunnel-rat": {"version": "0.1.2","resolved": "https://registry.npmjs.org/tunnel-rat/-/tunnel-rat-0.1.2.tgz",@@ -6289,6 +5659,10 @@"type": "github","url": "https://github.com/sponsors/wooorm"}+ },+ "stubs/sharp": {+ "version": "0.0.0-cbm-stub",+ "license": "MIT"}}}diff --git a/graph-ui/package.json b/graph-ui/package.jsonindex 22b176916..a38ba6faa 100644--- a/graph-ui/package.json+++ b/graph-ui/package.json@@ -66,9 +66,7 @@"vitest": "4.1.11"},"overrides": {- "@huggingface/transformers": {- "sharp": "0.35.5"- },+ "sharp": "$sharp","monaco-editor": {"dompurify": "3.4.16"},@@ -87,6 +85,7 @@"react-dom": "19.2.8","react-markdown": "10.1.0","remark-gfm": "4.0.1",+ "sharp": "file:./stubs/sharp","three": "0.183.2","yaml": "2.8.3"}diff --git a/graph-ui/stubs/sharp/LICENSE b/graph-ui/stubs/sharp/LICENSEnew file mode 100644index 000000000..0b9535274--- /dev/null+++ b/graph-ui/stubs/sharp/LICENSE@@ -0,0 +1,22 @@+MIT License++ Copyright (c) 2025 DeusData++ Permission is hereby granted, free of charge, to any person obtaining a copy+ of this software and associated documentation files (the "Software"), to deal+ in the Software without restriction, including without limitation the rights+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell+ copies of the Software, and to permit persons to whom the Software is+ furnished to do so, subject to the following conditions:++ The above copyright notice and this permission notice shall be included in all+ copies or substantial portions of the Software.++ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE+ SOFTWARE.+\ No newline at end of filediff --git a/graph-ui/stubs/sharp/index.js b/graph-ui/stubs/sharp/index.jsnew file mode 100644index 000000000..2b1667837--- /dev/null+++ b/graph-ui/stubs/sharp/index.js@@ -0,0 +1,7 @@+'use strict';+// Stand-in for sharp (see package.json). Only the Node image path of+// @huggingface/transformers would call it; CBM Lens runs Transformers in the+// browser and never processes images, so a call here is a bug, not a fallback.+module.exports = function sharp() {+ throw new Error('sharp is not part of CBM Lens: image processing is unsupported');+};diff --git a/graph-ui/stubs/sharp/package.json b/graph-ui/stubs/sharp/package.jsonnew file mode 100644index 000000000..8b10642d4--- /dev/null+++ b/graph-ui/stubs/sharp/package.json@@ -0,0 +1,8 @@+{+ "name": "sharp",+ "version": "0.0.0-cbm-stub",+ "description": "Empty stand-in for sharp. CBM Lens never processes images, and the Transformers browser build already replaces sharp with an empty object; this keeps sharp and its LGPL libvips binaries out of the dependency tree.",+ "license": "MIT",+ "private": true,+ "main": "index.js"+}diff --git a/scripts/gen-ui-licenses.py b/scripts/gen-ui-licenses.pyindex ee38b4c4b..16e882deb 100755--- a/scripts/gen-ui-licenses.py+++ b/scripts/gen-ui-licenses.py@@ -16,7 +16,6 @@ import jsonimport osimport subprocessimport sys-from ui_browser_licenses import verified_browser_exclusionsdef collect(ui_dir, dep_tree, out, excluded):@@ -78,20 +77,13 @@ def main():pkgs = set()excluded = set()collect(ui_dir, tree.get("dependencies"), pkgs, excluded)- try:- browser_excluded = verified_browser_exclusions(ui_dir, pkgs)- except ValueError as exc:- print(f"Cannot generate UI notices: {exc}", file=sys.stderr)- sys.exit(1)- pkgs -= browser_excludedprint("## External Graph UI asset pack — bundled npm packages")print()print("The `-ui` archives ship a compiled frontend asset pack beside the binary.")print("The packages below are its production dependency tree; license texts are")print("reproduced verbatim from the packages as installed at build time.")- print("The build inventory excludes only the reviewed optional package listed below;")- print("other production dependencies remain covered conservatively.")+ print("The whole production dependency tree is covered conservatively.")print()for name, version in sorted(pkgs):@@ -117,14 +109,6 @@ def main():print(f"- {name}@{version}")print()- if browser_excluded:- print("### Installed optional package absent from the browser pack")- print()- print("Verified against the current application and worker build inputs and asset hashes.")- for name, version in sorted(browser_excluded):- print(f"- {name}@{version}: Transformers uses its reviewed empty browser stub.")- print()-if __name__ == "__main__":main()diff --git a/scripts/license-gate-check-npm.py b/scripts/license-gate-check-npm.pyindex 714408966..a7da29b3f 100755--- a/scripts/license-gate-check-npm.py+++ b/scripts/license-gate-check-npm.py@@ -3,18 +3,21 @@Usage: license-gate-check-npm.py <graph-ui-dir> <license-policy.json>-Conservatively walks the production tree (including prebundled dependencies;-exclusions are shared with gen-ui-licenses.py) and fails if ANY package's license is not-on the policy allow-list. Packages with no declared license fall back to-the first line of their shipped license file; if that cannot be resolved-either, the gate fails — unknown is not allowed.+Walks the WHOLE production tree (including prebundled dependencies and+platform-restricted native packages) and fails if ANY package's license is not+on the policy allow-list. There are no exceptions: a package that is installed+but never bundled still blocks, because "unshipped" is a claim about a build,+and a non-permissive license must never be one build change away from shipping.+Packages with no declared license fall back to the first line of their shipped+license file; if that cannot be resolved either, the gate fails — unknown is+not allowed. The current app + worker build evidence must also verify."""import jsonimport osimport reimport subprocessimport sys-from ui_browser_licenses import verified_browser_exclusions+from ui_browser_licenses import validate_browser_buildFILE_HEADER_MAP = {"mit license": "MIT",@@ -52,8 +55,8 @@ def collect(ui_dir, dep_tree, out):meta = json.load(fh)except (OSError, ValueError):continue- if meta.get("os") or meta.get("cpu"):- continue # platform-restricted native build tooling, not bundled+ # Platform-restricted packages (os/cpu) are checked like any other:+ # skipping them is how sharp's LGPL libvips binaries passed unseen.lic = meta.get("license", "")if isinstance(lic, dict):lic = lic.get("type", "")@@ -82,16 +85,13 @@ def main():sys.exit(1)try:- browser_excluded = verified_browser_exclusions(ui_dir, pkgs)+ validate_browser_build(ui_dir)except ValueError as exc:- print(f"BLOCKED: cannot verify browser-only package exclusion: {exc}")+ print(f"BLOCKED: browser build evidence does not verify: {exc}")sys.exit(1)violations = []for (name, version), (lic, pkg_dir) in sorted(pkgs.items()):- if (name, version) in browser_excluded:- print(f"Not shipped (verified app + worker build): {name}@{version}")- continueif name in ignored_pkgs:continueif not lic:@@ -111,7 +111,7 @@ def main():for pkg, lic in violations[:25]:print(f" {pkg}: {lic}")sys.exit(1)- print(f"OK: {len(pkgs) - len(browser_excluded)} npm packages covered, all allow-listed")+ print(f"OK: {len(pkgs)} npm packages covered, all allow-listed")if __name__ == "__main__":diff --git a/scripts/ui_browser_licenses.py b/scripts/ui_browser_licenses.pyindex 6a40033e1..bb57f19af 100644--- a/scripts/ui_browser_licenses.py+++ b/scripts/ui_browser_licenses.py@@ -1,8 +1,11 @@-"""One build-backed exception for an installed, unshipped optional package.+"""Build evidence for the UI browser pack: what ships is exactly the bundler output.-Keep the production dependency inventory conservative. Only the reviewed-Transformers browser build may omit this exact native image-processing package;-missing evidence, upgrades, new payloads, or stale builds fail closed.+There are NO license exceptions. Every package in the production dependency+tree must carry an allow-listed license whether or not it reaches the bundle+(license-gate-check-npm.py); this module only proves the bundle itself: every+asset is inventoried bundler output, and neither sharp nor Node inference code+is in the app or worker graph. Missing evidence, new payloads or stale builds+fail closed."""import hashlibimport json@@ -11,7 +14,6 @@ import reimport sys-OPTIONAL_PACKAGE = ("@img/sharp-wasm32", "0.35.0")BROWSER_ENTRY = "node_modules/@huggingface/transformers/dist/transformers.web.js"# Transformers 4.2.0's published browser distribution contains the upstream# empty `ignore-modules:sharp` stub. Updating it requires a new source review.@@ -30,21 +32,8 @@ def checked_path(root, name):return root.joinpath(*path.parts)-def verified_browser_exclusions(ui_dir, packages):- if OPTIONAL_PACKAGE not in packages:- return set()- try:- meta = json.loads((Path(ui_dir) / "node_modules/@img/sharp-wasm32/package.json").read_text())- if (meta["name"], meta["version"]) != OPTIONAL_PACKAGE:- raise ValueError("optional package identity changed")- except (OSError, KeyError, TypeError, json.JSONDecodeError) as exc:- raise ValueError("optional package identity is unavailable") from exc- validate_browser_build(ui_dir)- return {OPTIONAL_PACKAGE}--def validate_browser_build(ui_dir):- """Also check build evidence on hosts where the optional package is absent."""+ """Raise ValueError unless the current app + worker build evidence holds."""root = Path(ui_dir)try:proof = json.loads((root / ".vite/license-build.json").read_text())diff --git a/tests/test_ui_license_inventory.py b/tests/test_ui_license_inventory.pyindex 5908136b8..0521a1a76 100644--- a/tests/test_ui_license_inventory.py+++ b/tests/test_ui_license_inventory.py@@ -22,8 +22,6 @@ class BrowserLicenseInventory(unittest.TestCase):self.addCleanup(self.tmp.cleanup)self.ui = Path(self.tmp.name) / "graph-ui"self.ui.mkdir()- self.package("@img/sharp-wasm32", "0.35.0",- "Apache-2.0 AND LGPL-3.0-or-later AND MIT")self.package("@huggingface/transformers", "4.2.0", "Apache-2.0")source = ROOT / "graph-ui/node_modules/@huggingface/transformers/dist/transformers.web.js"if not source.is_file():@@ -62,8 +60,7 @@ class BrowserLicenseInventory(unittest.TestCase):}self.write_proof()self.tree = {"dependencies": {- "@huggingface/transformers": {"version": "4.2.0", "dependencies": {- "@img/sharp-wasm32": {"version": "0.35.0"}}}}}+ "@huggingface/transformers": {"version": "4.2.0", "dependencies": {}}}}self.bin = Path(self.tmp.name) / "bin"self.bin.mkdir()shim = self.bin / "npm.py"@@ -72,13 +69,18 @@ class BrowserLicenseInventory(unittest.TestCase):(self.bin / "npm").chmod(0o755)(self.bin / "npm.cmd").write_text('@python "%~dp0npm.py"\r\n')- def package(self, name, version, license_id):+ def package(self, name, version, license_id, **platform):folder = self.ui / "node_modules" / namefolder.mkdir(parents=True)(folder / "package.json").write_text(json.dumps({- "name": name, "version": version, "license": license_id}))+ "name": name, "version": version, "license": license_id, **platform}))(folder / "LICENSE").write_text(license_id)+ def add_transformers_dependency(self, name, version, license_id, **platform):+ self.package(name, version, license_id, **platform)+ deps = self.tree["dependencies"]["@huggingface/transformers"]["dependencies"]+ deps[name] = {"version": version}+def write_proof(self):path = self.ui / ".vite/license-build.json"path.parent.mkdir(exist_ok=True)@@ -96,17 +98,41 @@ class BrowserLicenseInventory(unittest.TestCase):result = self.run_script("license-gate-check-npm.py")self.assertNotEqual(result.returncode, 0, result.stdout + result.stderr)- def test_verified_absent_package_does_not_block_browser_release(self):+ def test_permissive_tree_with_verified_build_passes(self):result = self.run_script("license-gate-check-npm.py")self.assertEqual(result.returncode, 0, result.stdout + result.stderr)- self.assertIn("@img/[email protected]", result.stdout)+ self.assertIn("all allow-listed", result.stdout)- def test_notices_use_the_same_shipped_package_decision(self):+ def test_notices_cover_the_production_tree(self):result = self.run_script("gen-ui-licenses.py")self.assertEqual(result.returncode, 0, result.stdout + result.stderr)- self.assertNotIn("### @img/sharp-wasm32@", result.stdout)self.assertIn("### @huggingface/[email protected]", result.stdout)+ def test_lgpl_package_blocks_even_when_unshipped(self):+ # No exception for "installed but not bundled": sharp's wasm build+ # (LGPL libvips inside) once passed that way. It must block now.+ self.add_transformers_dependency("@img/sharp-wasm32", "0.35.0",+ "Apache-2.0 AND LGPL-3.0-or-later AND MIT")+ result = self.run_script("license-gate-check-npm.py")+ self.assertNotEqual(result.returncode, 0, result.stdout + result.stderr)+ self.assertIn("@img/[email protected]", result.stdout)++ def test_platform_restricted_lgpl_package_blocks(self):+ # os/cpu-restricted native packages used to be skipped as build+ # tooling; that skip let all ten @img/sharp-libvips-* (LGPL) through.+ self.add_transformers_dependency("@img/sharp-libvips-darwin-arm64", "1.3.4",+ "LGPL-3.0-or-later", os=["darwin"], cpu=["arm64"])+ result = self.run_script("license-gate-check-npm.py")+ self.assertNotEqual(result.returncode, 0, result.stdout + result.stderr)+ self.assertIn("@img/[email protected]", result.stdout)++ def test_platform_restricted_permissive_package_passes(self):+ # Checking platform packages must not turn into blocking them.+ self.add_transformers_dependency("@example/native-darwin-arm64", "1.0.0", "MIT",+ os=["darwin"], cpu=["arm64"])+ result = self.run_script("license-gate-check-npm.py")+ self.assertEqual(result.returncode, 0, result.stdout + result.stderr)+def test_missing_proof_blocks(self):(self.ui / ".vite/license-build.json").unlink()self.assert_blocked()@@ -234,14 +260,6 @@ class BrowserLicenseInventory(unittest.TestCase):self.tree["dependencies"]["unrelated"] = {"version": "1.0.0"}self.assert_blocked()- def test_new_package_version_requires_review(self):- package = self.ui / "node_modules/@img/sharp-wasm32/package.json"- meta = json.loads(package.read_text())- meta["version"] = "0.36.0"- package.write_text(json.dumps(meta))- self.tree["dependencies"]["@huggingface/transformers"]["dependencies"]["@img/sharp-wasm32"]["version"] = "0.36.0"- self.assert_blocked()-if __name__ == "__main__":unittest.main()