Skip to content

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.

Extend the license gate to ancestry coverage and the UI dependency tree

Martin Vogel952eea9f1f4f
diff --git a/graph-ui/package-lock.json b/graph-ui/package-lock.json
index caf79da06..3cd7a3715 100644
--- a/graph-ui/package-lock.json
+++ b/graph-ui/package-lock.json
@@ -11,7 +11,6 @@
"@react-three/drei": "^10.7.0",
"@react-three/fiber": "^9.5.0",
"@react-three/postprocessing": "^3.0.4",
- "@tailwindcss/vite": "^4.2.1",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"lucide-react": "^0.577.0",
@@ -23,6 +22,7 @@
"three": "~0.183.0"
},
"devDependencies": {
+ "@tailwindcss/vite": "^4.2.1",
"@testing-library/jest-dom": "^6.6.0",
"@testing-library/react": "^16.1.0",
"@types/react": "^19.0.0",
@@ -483,6 +483,7 @@
"cpu": [
"ppc64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -499,6 +500,7 @@
"cpu": [
"arm"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -515,6 +517,7 @@
"cpu": [
"arm64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -531,6 +534,7 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -547,6 +551,7 @@
"cpu": [
"arm64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -563,6 +568,7 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -579,6 +585,7 @@
"cpu": [
"arm64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -595,6 +602,7 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -611,6 +619,7 @@
"cpu": [
"arm"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -627,6 +636,7 @@
"cpu": [
"arm64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -643,6 +653,7 @@
"cpu": [
"ia32"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -659,6 +670,7 @@
"cpu": [
"loong64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -675,6 +687,7 @@
"cpu": [
"mips64el"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -691,6 +704,7 @@
"cpu": [
"ppc64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -707,6 +721,7 @@
"cpu": [
"riscv64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -723,6 +738,7 @@
"cpu": [
"s390x"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -739,6 +755,7 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -755,6 +772,7 @@
"cpu": [
"arm64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -771,6 +789,7 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -787,6 +806,7 @@
"cpu": [
"arm64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -803,6 +823,7 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -819,6 +840,7 @@
"cpu": [
"arm64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -835,6 +857,7 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -851,6 +874,7 @@
"cpu": [
"arm64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -867,6 +891,7 @@
"cpu": [
"ia32"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -883,6 +908,7 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -934,6 +960,7 @@
"version": "0.3.13",
"resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",
"integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==",
+ "dev": true,
"license": "MIT",
"dependencies": {
"@jridgewell/sourcemap-codec": "^1.5.0",
@@ -944,6 +971,7 @@
"version": "2.3.5",
"resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz",
"integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==",
+ "dev": true,
"license": "MIT",
"dependencies": {
"@jridgewell/gen-mapping": "^0.3.5",
@@ -954,6 +982,7 @@
"version": "3.1.2",
"resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",
"integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",
+ "dev": true,
"license": "MIT",
"engines": {
"node": ">=6.0.0"
@@ -963,12 +992,14 @@
"version": "1.5.5",
"resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",
"integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",
+ "dev": true,
"license": "MIT"
},
"node_modules/@jridgewell/trace-mapping": {
"version": "0.3.31",
"resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz",
"integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==",
+ "dev": true,
"license": "MIT",
"dependencies": {
"@jridgewell/resolve-uri": "^3.1.0",
@@ -2619,6 +2650,7 @@
"cpu": [
"arm"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -2632,6 +2664,7 @@
"cpu": [
"arm64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -2645,6 +2678,7 @@
"cpu": [
"arm64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -2658,6 +2692,7 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -2671,6 +2706,7 @@
"cpu": [
"arm64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -2684,6 +2720,7 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -2697,6 +2734,7 @@
"cpu": [
"arm"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -2710,6 +2748,7 @@
"cpu": [
"arm"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -2723,6 +2762,7 @@
"cpu": [
"arm64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -2736,6 +2776,7 @@
"cpu": [
"arm64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -2749,6 +2790,7 @@
"cpu": [
"loong64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -2762,6 +2804,7 @@
"cpu": [
"loong64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -2775,6 +2818,7 @@
"cpu": [
"ppc64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -2788,6 +2832,7 @@
"cpu": [
"ppc64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -2801,6 +2846,7 @@
"cpu": [
"riscv64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -2814,6 +2860,7 @@
"cpu": [
"riscv64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -2827,6 +2874,7 @@
"cpu": [
"s390x"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -2840,6 +2888,7 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -2853,6 +2902,7 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -2866,6 +2916,7 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -2879,6 +2930,7 @@
"cpu": [
"arm64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -2892,6 +2944,7 @@
"cpu": [
"arm64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -2905,6 +2958,7 @@
"cpu": [
"ia32"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -2918,6 +2972,7 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -2931,6 +2986,7 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -2948,6 +3004,7 @@
"version": "4.2.1",
"resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.2.1.tgz",
"integrity": "sha512-jlx6sLk4EOwO6hHe1oCGm1Q4AN/s0rSrTTPBGPM0/RQ6Uylwq17FuU8IeJJKEjtc6K6O07zsvP+gDO6MMWo7pg==",
+ "dev": true,
"license": "MIT",
"dependencies": {
"@jridgewell/remapping": "^2.3.5",
@@ -2963,6 +3020,7 @@
"version": "4.2.1",
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.2.1.tgz",
"integrity": "sha512-yv9jeEFWnjKCI6/T3Oq50yQEOqmpmpfzG1hcZsAOaXFQPfzWprWrlHSdGPEF3WQTi8zu8ohC9Mh9J470nT5pUw==",
+ "dev": true,
"license": "MIT",
"engines": {
"node": ">= 20"
@@ -2989,6 +3047,7 @@
"cpu": [
"arm64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -3005,6 +3064,7 @@
"cpu": [
"arm64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -3021,6 +3081,7 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -3037,6 +3098,7 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -3053,6 +3115,7 @@
"cpu": [
"arm"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -3069,6 +3132,7 @@
"cpu": [
"arm64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -3085,6 +3149,7 @@
"cpu": [
"arm64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -3101,6 +3166,7 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -3117,6 +3183,7 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -3141,6 +3208,7 @@
"cpu": [
"wasm32"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"dependencies": {
@@ -3220,6 +3288,7 @@
"cpu": [
"arm64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -3236,6 +3305,7 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -3249,6 +3319,7 @@
"version": "4.2.1",
"resolved": "https://registry.npmjs.org/@tailwindcss/vite/-/vite-4.2.1.tgz",
"integrity": "sha512-TBf2sJjYeb28jD2U/OhwdW0bbOsxkWPwQ7SrqGf9sVcoYwZj7rkXljroBO9wKBut9XnmQLXanuDUeqQK0lGg/w==",
+ "dev": true,
"license": "MIT",
"dependencies": {
"@tailwindcss/node": "4.2.1",
@@ -3422,6 +3493,7 @@
"version": "1.0.8",
"resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz",
"integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==",
+ "dev": true,
"license": "MIT"
},
"node_modules/@types/offscreencanvas": {
@@ -4054,6 +4126,7 @@
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",
"integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==",
+ "dev": true,
"license": "Apache-2.0",
"engines": {
"node": ">=8"
@@ -4105,6 +4178,7 @@
"version": "5.20.1",
"resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.20.1.tgz",
"integrity": "sha512-Qohcme7V1inbAfvjItgw0EaxVX5q2rdVEZHRBrEQdRZTssLDGsL8Lwrznl8oQ/6kuTJONLaDcGjkNP247XEhcA==",
+ "dev": true,
"license": "MIT",
"dependencies": {
"graceful-fs": "^4.2.4",
@@ -4187,6 +4261,7 @@
"version": "0.25.12",
"resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.12.tgz",
"integrity": "sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==",
+ "dev": true,
"hasInstallScript": true,
"license": "MIT",
"bin": {
@@ -4258,6 +4333,7 @@
"version": "6.5.0",
"resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",
"integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==",
+ "dev": true,
"license": "MIT",
"engines": {
"node": ">=12.0.0"
@@ -4298,6 +4374,7 @@
"version": "2.3.3",
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
"integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
+ "dev": true,
"hasInstallScript": true,
"license": "MIT",
"optional": true,
@@ -4399,6 +4476,7 @@
"version": "4.2.11",
"resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",
"integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==",
+ "dev": true,
"license": "ISC"
},
"node_modules/has-symbols": {
@@ -4574,6 +4652,7 @@
"version": "2.6.1",
"resolved": "https://registry.npmjs.org/jiti/-/jiti-2.6.1.tgz",
"integrity": "sha512-ekilCSN1jwRvIbgeg/57YFh8qQDNbwDb9xT/qu2DAHbFFZUicIl4ygVaAvzveMhMVr3LnpSKTNnwt8PoOfmKhQ==",
+ "dev": true,
"license": "MIT",
"bin": {
"jiti": "lib/jiti-cli.mjs"
@@ -4666,6 +4745,7 @@
"version": "1.31.1",
"resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.31.1.tgz",
"integrity": "sha512-l51N2r93WmGUye3WuFoN5k10zyvrVs0qfKBhyC5ogUQ6Ew6JUSswh78mbSO+IU3nTWsyOArqPCcShdQSadghBQ==",
+ "dev": true,
"license": "MPL-2.0",
"dependencies": {
"detect-libc": "^2.0.3"
@@ -4698,6 +4778,7 @@
"cpu": [
"arm64"
],
+ "dev": true,
"license": "MPL-2.0",
"optional": true,
"os": [
@@ -4718,6 +4799,7 @@
"cpu": [
"arm64"
],
+ "dev": true,
"license": "MPL-2.0",
"optional": true,
"os": [
@@ -4738,6 +4820,7 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "MPL-2.0",
"optional": true,
"os": [
@@ -4758,6 +4841,7 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "MPL-2.0",
"optional": true,
"os": [
@@ -4778,6 +4862,7 @@
"cpu": [
"arm"
],
+ "dev": true,
"license": "MPL-2.0",
"optional": true,
"os": [
@@ -4798,6 +4883,7 @@
"cpu": [
"arm64"
],
+ "dev": true,
"license": "MPL-2.0",
"optional": true,
"os": [
@@ -4818,6 +4904,7 @@
"cpu": [
"arm64"
],
+ "dev": true,
"license": "MPL-2.0",
"optional": true,
"os": [
@@ -4838,6 +4925,7 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "MPL-2.0",
"optional": true,
"os": [
@@ -4858,6 +4946,7 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "MPL-2.0",
"optional": true,
"os": [
@@ -4878,6 +4967,7 @@
"cpu": [
"arm64"
],
+ "dev": true,
"license": "MPL-2.0",
"optional": true,
"os": [
@@ -4898,6 +4988,7 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "MPL-2.0",
"optional": true,
"os": [
@@ -4955,6 +5046,7 @@
"version": "0.30.21",
"resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz",
"integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==",
+ "dev": true,
"license": "MIT",
"dependencies": {
"@jridgewell/sourcemap-codec": "^1.5.5"
@@ -5039,6 +5131,7 @@
"version": "3.3.11",
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz",
"integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==",
+ "dev": true,
"funding": [
{
"type": "github",
@@ -5111,12 +5204,14 @@
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
"integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",
+ "dev": true,
"license": "ISC"
},
"node_modules/picomatch": {
"version": "4.0.4",
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz",
"integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==",
+ "dev": true,
"license": "MIT",
"engines": {
"node": ">=12"
@@ -5129,6 +5224,7 @@
"version": "8.5.14",
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.14.tgz",
"integrity": "sha512-SoSL4+OSEtR99LHFZQiJLkT59C5B1amGO1NzTwj7TT1qCUgUO6hxOvzkOYxD+vMrXBM3XJIKzokoERdqQq/Zmg==",
+ "dev": true,
"funding": [
{
"type": "opencollective",
@@ -5431,6 +5527,7 @@
"version": "4.59.0",
"resolved": "https://registry.npmjs.org/rollup/-/rollup-4.59.0.tgz",
"integrity": "sha512-2oMpl67a3zCH9H79LeMcbDhXW/UmWG/y2zuqnF2jQq5uq9TbM9TVyXvA4+t+ne2IIkBdrLpAaRQAvo7YI/Yyeg==",
+ "dev": true,
"license": "MIT",
"dependencies": {
"@types/estree": "1.0.8"
@@ -5546,6 +5643,7 @@
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",
"integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",
+ "dev": true,
"license": "BSD-3-Clause",
"engines": {
"node": ">=0.10.0"
@@ -5634,12 +5732,14 @@
"version": "4.2.1",
"resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.2.1.tgz",
"integrity": "sha512-/tBrSQ36vCleJkAOsy9kbNTgaxvGbyOamC30PRePTQe/o1MFwEKHQk4Cn7BNGaPtjp+PuUrByJehM1hgxfq4sw==",
+ "dev": true,
"license": "MIT"
},
"node_modules/tapable": {
"version": "2.3.0",
"resolved": "https://registry.npmjs.org/tapable/-/tapable-2.3.0.tgz",
"integrity": "sha512-g9ljZiwki/LfxmQADO3dEY1CbpmXT5Hm2fJ+QaGKwSXUylMybePR7/67YW7jOrrvjEgL1Fmz5kzyAjWVWLlucg==",
+ "dev": true,
"license": "MIT",
"engines": {
"node": ">=6"
@@ -5708,6 +5808,7 @@
"version": "0.2.15",
"resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz",
"integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==",
+ "dev": true,
"license": "MIT",
"dependencies": {
"fdir": "^6.5.0",
@@ -5959,6 +6060,7 @@
"version": "6.4.2",
"resolved": "https://registry.npmjs.org/vite/-/vite-6.4.2.tgz",
"integrity": "sha512-2N/55r4JDJ4gdrCvGgINMy+HH3iRpNIz8K6SFwVsA+JbQScLiC+clmAxBgwiSPgcG9U15QmvqCGWzMbqda5zGQ==",
+ "dev": true,
"license": "MIT",
"dependencies": {
"esbuild": "^0.25.0",
diff --git a/graph-ui/package.json b/graph-ui/package.json
index 4dcaa06a4..496c66f6e 100644
--- a/graph-ui/package.json
+++ b/graph-ui/package.json
@@ -15,7 +15,6 @@
"@react-three/drei": "^10.7.0",
"@react-three/fiber": "^9.5.0",
"@react-three/postprocessing": "^3.0.4",
- "@tailwindcss/vite": "^4.2.1",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"lucide-react": "^0.577.0",
@@ -27,6 +26,7 @@
"three": "~0.183.0"
},
"devDependencies": {
+ "@tailwindcss/vite": "^4.2.1",
"@testing-library/jest-dom": "^6.6.0",
"@testing-library/react": "^16.1.0",
"@types/react": "^19.0.0",
diff --git a/scripts/license-gate-check-npm.py b/scripts/license-gate-check-npm.py
new file mode 100755
index 000000000..f426f9f7a
--- /dev/null
+++ b/scripts/license-gate-check-npm.py
@@ -0,0 +1,107 @@
+#!/usr/bin/env python3
+"""License-gate check for the graph-UI npm production dependency tree.
+
+Usage: license-gate-check-npm.py <graph-ui-dir> <license-policy.json>
+
+Walks the production tree (the packages whose code is compiled into the UI
+bundle; platform-restricted native build tooling is excluded the same way
+gen-ui-licenses.py excludes it) 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.
+"""
+import json
+import os
+import re
+import subprocess
+import sys
+
+FILE_HEADER_MAP = {
+ "mit license": "MIT",
+ "the mit license": "MIT",
+ "the mit license (mit)": "MIT",
+ "apache license": "Apache-2.0",
+ "isc license": "ISC",
+ "bsd 2-clause license": "BSD-2-Clause",
+ "bsd 3-clause license": "BSD-3-Clause",
+ "the unlicense": "Unlicense",
+}
+
+
+def license_from_file(pkg_dir):
+ for fname in sorted(os.listdir(pkg_dir)):
+ if fname.upper().startswith(("LICENSE", "LICENCE", "COPYING", "UNLICENSE")):
+ try:
+ with open(os.path.join(pkg_dir, fname), encoding="utf-8",
+ errors="replace") as fh:
+ first = fh.readline().strip().lower()
+ return FILE_HEADER_MAP.get(first)
+ except OSError:
+ return None
+ return None
+
+
+def collect(ui_dir, dep_tree, out):
+ for name, info in (dep_tree or {}).items():
+ version = info.get("version")
+ if not version:
+ continue
+ pkg_dir = os.path.join(ui_dir, "node_modules", *name.split("/"))
+ try:
+ with open(os.path.join(pkg_dir, "package.json"), encoding="utf-8") as fh:
+ meta = json.load(fh)
+ except (OSError, ValueError):
+ continue
+ if meta.get("os") or meta.get("cpu"):
+ continue # platform-restricted native build tooling, not bundled
+ lic = meta.get("license", "")
+ if isinstance(lic, dict):
+ lic = lic.get("type", "")
+ out[(name, version)] = (str(lic or ""), pkg_dir)
+ collect(ui_dir, info.get("dependencies"), out)
+
+
+def main():
+ ui_dir, policy_path = sys.argv[1], sys.argv[2]
+ with open(policy_path) as fh:
+ policy = json.load(fh)
+ allowed = {x.lower() for x in policy["allowed_spdx_ids"]}
+ ignored_pkgs = set(policy.get("ignored_npm_packages", []))
+ skip_tokens = {"and", "or", "with", ""}
+
+ ls = subprocess.run(["npm", "ls", "--omit=dev", "--all", "--json"],
+ cwd=ui_dir, capture_output=True, text=True, check=False)
+ tree = json.loads(ls.stdout or "{}")
+ pkgs = {}
+ collect(ui_dir, tree.get("dependencies"), pkgs)
+ if not pkgs:
+ print("FAIL: npm production tree resolved to zero packages — "
+ "is node_modules installed?")
+ sys.exit(1)
+
+ violations = []
+ for (name, version), (lic, pkg_dir) in sorted(pkgs.items()):
+ if name in ignored_pkgs:
+ continue
+ if not lic:
+ lic = license_from_file(pkg_dir) or ""
+ if not lic:
+ violations.append((f"{name}@{version}", "no resolvable license"))
+ continue
+ for tok in re.split(r"[\s()]+", lic):
+ if tok.lower() in skip_tokens:
+ continue
+ if tok.lower() not in allowed:
+ violations.append((f"{name}@{version}", lic))
+ break
+
+ if violations:
+ print("BLOCKED: %d UI package(s) outside the license allow-list:" % len(violations))
+ for pkg, lic in violations[:25]:
+ print(f" {pkg}: {lic}")
+ sys.exit(1)
+ print(f"OK: {len(pkgs)} bundled npm packages, all allow-listed")
+
+
+if __name__ == "__main__":
+ main()
diff --git a/scripts/license-gate.sh b/scripts/license-gate.sh
index 92d08b1df..99b608937 100755
--- a/scripts/license-gate.sh
+++ b/scripts/license-gate.sh
@@ -19,24 +19,45 @@ ROOT="$(cd "$(dirname "$0")/.." && pwd)"
cd "$ROOT"
echo "=== License gate 1/2: structural coverage ==="
+# Rule: every directory under either vendored tree that contains source or
+# data files must have a license file in itself or an ancestor directory
+# WITHIN the vendored tree. No hardcoded component list — newly vendored
+# code with no license is flagged immediately.
MISS=0
-for d in vendored/*/ \
- internal/cbm/vendored/lz4 internal/cbm/vendored/simplecpp \
- internal/cbm/vendored/ts_runtime internal/cbm/vendored/verstable \
- internal/cbm/vendored/wyhash internal/cbm/vendored/zstd \
- internal/cbm/vendored/common internal/cbm/vendored/common/tree_sitter \
- internal/cbm/vendored/grammars/*/; do
- [ -d "$d" ] || continue
- if ! ls "$d" | grep -qiE '^(LICENSE|LICENCE|COPYING|UNLICENSE|NOTICE)'; then
- echo "BLOCKED: no license file in $d"
+has_license_dir() {
+ ls "$1" 2>/dev/null | grep -qiE '^(LICENSE|LICENCE|COPYING|UNLICENSE|NOTICE)'
+}
+for root in vendored internal/cbm/vendored; do
+ find "$root" -type f \
+ \( -name '*.c' -o -name '*.h' -o -name '*.cpp' -o -name '*.hpp' \
+ -o -name '*.S' -o -name '*.bin' -o -name '*.txt' \) \
+ ! -iname 'LICENSE*' ! -iname 'COPYING*' ! -iname 'NOTICE*' \
+ -exec dirname {} \; | LC_ALL=C sort -u | while IFS= read -r d; do
+ cur="$d"
+ covered=1
+ while :; do
+ if has_license_dir "$cur"; then
+ covered=0
+ break
+ fi
+ [ "$cur" = "$root" ] && break
+ cur="$(dirname "$cur")"
+ done
+ if [ $covered -ne 0 ]; then
+ echo "BLOCKED: vendored code in $d has no license file in itself or any ancestor within $root/"
+ fi
+ done > /tmp/license-gate-structural.$$
+ if [ -s /tmp/license-gate-structural.$$ ]; then
+ cat /tmp/license-gate-structural.$$
MISS=1
fi
+ rm -f /tmp/license-gate-structural.$$
done
if [ $MISS -ne 0 ]; then
echo "=== LICENSE GATE FAILED (structural) ==="
exit 1
fi
-echo "OK: every vendored component directory carries a license file"
+echo "OK: every vendored source directory is covered by a license file"
echo "=== License gate 2/2: ScanCode detection ==="
if ! command -v scancode &>/dev/null; then
@@ -67,4 +88,19 @@ scancode --license --quiet --processes 2 --json-pp "$STAGE/scan.json" "$STAGE/tr
}
python3 scripts/license-gate-check.py "$STAGE/scan.json" scripts/license-policy.json
+
+echo "=== License gate 3/3: UI npm production tree ==="
+# The -ui binaries embed the compiled frontend bundle; its production
+# dependency tree must be allow-listed too. --ignore-scripts: no dependency
+# postinstall code runs inside the security job.
+if command -v npm &>/dev/null && [ -f graph-ui/package-lock.json ]; then
+ if [ ! -d graph-ui/node_modules ]; then
+ (cd graph-ui && npm ci --ignore-scripts --silent)
+ fi
+ python3 scripts/license-gate-check-npm.py graph-ui scripts/license-policy.json
+else
+ echo "FAIL: npm or graph-ui/package-lock.json unavailable — UI tree unchecked"
+ exit 1
+fi
+
echo "=== License gate passed ==="