BrainAPI is a knowledge graph–powered AI memory layer that transforms unstructured data into structured knowledge, enabling intelligent search, recommendations, and contextual memory for AI agents and applications.
Python ai-agentsai-memoryknowledge-graphknowledge-managementknowledge-representationreccomendation-system
feat(console): migration to lumen's ui kit
Christian649f5e569de8
diff --git a/console/index.html b/console/index.htmlindex 5f05a0a..11bc306 100644--- a/console/index.html+++ b/console/index.html@@ -1,5 +1,5 @@<!doctype html>-<html lang="en">+<html lang="en" data-lumen-palette="brainapi"><head><meta charset="UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1.0" />diff --git a/console/package-lock.json b/console/package-lock.jsonindex e45be78..4d482a8 100644--- a/console/package-lock.json+++ b/console/package-lock.json@@ -8,6 +8,13 @@"name": "brainapi-console","version": "0.1.0","dependencies": {+ "@carbon/icons-react": "^11.84.0",+ "@fontsource/inter": "^5.3.0",+ "graphology": "^0.26.0",+ "graphology-communities-louvain": "^2.0.2",+ "graphology-layout-forceatlas2": "^0.10.1",+ "graphology-layout-noverlap": "^0.4.2",+ "lumen-ui-kit": "^0.1.0","react": "^19.1.0","react-dom": "^19.1.0","react-router-dom": "^7.6.0",@@ -306,6 +313,31 @@"node": ">=6.9.0"}},+ "node_modules/@carbon/icon-helpers": {+ "version": "10.78.0",+ "resolved": "https://registry.npmjs.org/@carbon/icon-helpers/-/icon-helpers-10.78.0.tgz",+ "integrity": "sha512-WOPmO722eqsRKr1UGjboH5eRv0486SjDc/5brx18cOCFzkdGxkR42+D5vmAKWkJzJAazdPIPuWdyoCb58xSdCw==",+ "hasInstallScript": true,+ "license": "Apache-2.0",+ "dependencies": {+ "@ibm/telemetry-js": "^1.5.0"+ }+ },+ "node_modules/@carbon/icons-react": {+ "version": "11.84.0",+ "resolved": "https://registry.npmjs.org/@carbon/icons-react/-/icons-react-11.84.0.tgz",+ "integrity": "sha512-Z/D7A5LKpwjuyKD5lJxmfO5m6liiJDoeha2f9YsQQSyT6I4bnetzj7H5XAhDMCdq4SKeJHF3SOOC9mqVYwQLBA==",+ "hasInstallScript": true,+ "license": "Apache-2.0",+ "dependencies": {+ "@carbon/icon-helpers": "^10.78.0",+ "@ibm/telemetry-js": "^1.5.0",+ "prop-types": "^15.8.1"+ },+ "peerDependencies": {+ "react": ">=16"+ }+ },"node_modules/@egjs/hammerjs": {"version": "2.0.17","resolved": "https://registry.npmjs.org/@egjs/hammerjs/-/hammerjs-2.0.17.tgz",@@ -761,56 +793,806 @@"node": ">=18"}},- "node_modules/@jridgewell/gen-mapping": {- "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,+ "node_modules/@floating-ui/core": {+ "version": "1.8.0",+ "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.8.0.tgz",+ "integrity": "sha512-0CIZ5itps/8x7BG8dEIhs53BvCUH2PCoogtakwRTut+Arm58sJooJ0AuZhLw2HJYIR5cMLNPBSS728sPho2khQ==",+ "license": "MIT",+ "dependencies": {+ "@floating-ui/utils": "^0.2.12"+ }+ },+ "node_modules/@floating-ui/dom": {+ "version": "1.8.0",+ "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.8.0.tgz",+ "integrity": "sha512-yXSrzeHZBTZadLOlfyhCkJHNeLJnHRnRInwdZ40L7ZiaAtrBwoYlsDrX3v5zB1Utk7CLfzcOVnVVWoXEky7Ceg==",+ "license": "MIT",+ "dependencies": {+ "@floating-ui/core": "^1.8.0",+ "@floating-ui/utils": "^0.2.12"+ }+ },+ "node_modules/@floating-ui/react-dom": {+ "version": "2.1.9",+ "resolved": "https://registry.npmjs.org/@floating-ui/react-dom/-/react-dom-2.1.9.tgz",+ "integrity": "sha512-JDjEFGCpImxDCA7JJKviA0M9+RtmJdj0m/NVU5IMgBK+AmZouAQQ7/+2GLH0GXXY0YMw9oXPB8hKdbPYg5QLYg==",+ "license": "MIT",+ "dependencies": {+ "@floating-ui/dom": "^1.8.0"+ },+ "peerDependencies": {+ "react": ">=16.8.0",+ "react-dom": ">=16.8.0"+ }+ },+ "node_modules/@floating-ui/utils": {+ "version": "0.2.12",+ "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.12.tgz",+ "integrity": "sha512-HpCo8tmWzLVad5s2d19EhAz5zqrrQ6s69qd6moPMQvkOuSwDT1YgRfWSVuc4ennqrgv3OHppiOGMQ7oC13yIww==",+ "license": "MIT"+ },+ "node_modules/@fontsource/inter": {+ "version": "5.3.0",+ "resolved": "https://registry.npmjs.org/@fontsource/inter/-/inter-5.3.0.tgz",+ "integrity": "sha512-RofMylZmjlJEfELXeNHFWBRcSs75rGU/6bV2S2jfnvv/3rPXPGe0LgUJTklcHZ9lM4OZmAVFhcJPnACfb91A3g==",+ "license": "OFL-1.1",+ "funding": {+ "url": "https://github.com/sponsors/ayuhito"+ }+ },+ "node_modules/@ibm/telemetry-js": {+ "version": "1.11.0",+ "resolved": "https://registry.npmjs.org/@ibm/telemetry-js/-/telemetry-js-1.11.0.tgz",+ "integrity": "sha512-RO/9j+URJnSfseWg9ZkEX9p+a3Ousd33DBU7rOafoZB08RqdzxFVYJ2/iM50dkBuD0o7WX7GYt1sLbNgCoE+pA==",+ "license": "Apache-2.0",+ "bin": {+ "ibmtelemetry": "dist/collect.js"+ }+ },+ "node_modules/@jridgewell/gen-mapping": {+ "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",+ "@jridgewell/trace-mapping": "^0.3.24"+ }+ },+ "node_modules/@jridgewell/remapping": {+ "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",+ "@jridgewell/trace-mapping": "^0.3.24"+ }+ },+ "node_modules/@jridgewell/resolve-uri": {+ "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"+ }+ },+ "node_modules/@jridgewell/sourcemap-codec": {+ "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",+ "@jridgewell/sourcemap-codec": "^1.4.14"+ }+ },+ "node_modules/@radix-ui/primitive": {+ "version": "1.1.7",+ "resolved": "https://registry.npmjs.org/@radix-ui/primitive/-/primitive-1.1.7.tgz",+ "integrity": "sha512-rqWnm76nYT8HoNNqEjpgJ7Pw/DrBj5iBTrmEPo6HTX5+VJyBNOqTdv4g89G63HuR5g0AaENoAcH7Is5fF2kZ8Q==",+ "license": "MIT"+ },+ "node_modules/@radix-ui/react-arrow": {+ "version": "1.1.15",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-arrow/-/react-arrow-1.1.15.tgz",+ "integrity": "sha512-v4zggRcjadnI+ClKDuijlQEW4tw3NoaeHc/PwpKnLoLLKNUG4InLegkstooLcRIUWCs+8L22dGURCVuFfOKfnA==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-primitive": "2.1.10"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-collection": {+ "version": "1.1.15",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-collection/-/react-collection-1.1.15.tgz",+ "integrity": "sha512-9W+B9NPF0NaaPh/1NJd3+KqsnlLqU9H7T2rvww+fp+T/evVXdNAyYcnfRQZFOjkR1ajQp3yORlqnI8soawLvNA==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-compose-refs": "1.1.5",+ "@radix-ui/react-context": "1.2.2",+ "@radix-ui/react-primitive": "2.1.10",+ "@radix-ui/react-slot": "1.3.3"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-compose-refs": {+ "version": "1.1.5",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.1.5.tgz",+ "integrity": "sha512-+48PbAAbq3didjJxa+OaWY2ZwgAKsNiRGyeHKszblZMQ+kcpd9pAaT11cMkGEie0vsOi3QdeTE6d5Fe3Gn61kA==",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-context": {+ "version": "1.2.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.2.2.tgz",+ "integrity": "sha512-RHCUGwKHDr0hDGg4X7ma4JG4/+12qxw8rkh5QKdDldlCvtja6nUx1Ef/8HVrJze81lEsgLQlqjzjGNHantgnQA==",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-dialog": {+ "version": "1.1.23",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-dialog/-/react-dialog-1.1.23.tgz",+ "integrity": "sha512-Ksw4WeROkO4rC9k/onilX/Ao2Cr1ku1unMNH+XSCcP4jSXYu7HDsg9n4ojMjVb22XpYjAQ9qfrFlVbru1vXDUA==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/primitive": "1.1.7",+ "@radix-ui/react-compose-refs": "1.1.5",+ "@radix-ui/react-context": "1.2.2",+ "@radix-ui/react-dismissable-layer": "1.1.19",+ "@radix-ui/react-focus-guards": "1.1.6",+ "@radix-ui/react-focus-scope": "1.1.16",+ "@radix-ui/react-id": "1.1.4",+ "@radix-ui/react-portal": "1.1.17",+ "@radix-ui/react-presence": "1.1.10",+ "@radix-ui/react-primitive": "2.1.10",+ "@radix-ui/react-slot": "1.3.3",+ "@radix-ui/react-use-controllable-state": "1.2.6",+ "@radix-ui/react-use-layout-effect": "1.1.4",+ "aria-hidden": "^1.2.4",+ "react-remove-scroll": "^2.7.2"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-direction": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-direction/-/react-direction-1.1.4.tgz",+ "integrity": "sha512-5pzg4FGQNpExhnhT2zlrP1wZFaYCd1K0nYWoFAdcYoYK868IEigqMX3B3f8yIoRlAhAeDWciLI6ZdCKHF9P4Vg==",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-dismissable-layer": {+ "version": "1.1.19",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-dismissable-layer/-/react-dismissable-layer-1.1.19.tgz",+ "integrity": "sha512-8g4pfOL9HoKKLWGiypT+dphVqjFfmcXO5GBnhsG6zI+lxAx/8feQpr+1LSN8Re3hiZ+XkLNS4O9ztK11/LzQ6w==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/primitive": "1.1.7",+ "@radix-ui/react-compose-refs": "1.1.5",+ "@radix-ui/react-primitive": "2.1.10",+ "@radix-ui/react-use-callback-ref": "1.1.4",+ "@radix-ui/react-use-effect-event": "0.0.5"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-dropdown-menu": {+ "version": "2.1.24",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-dropdown-menu/-/react-dropdown-menu-2.1.24.tgz",+ "integrity": "sha512-geq8l2rJkxvkXsT9RMgtUE3P8pITFpTsvYpbySi1IH4fZEABD/Gp85myayFgxk0ktljGMJnCbeFkyTusvSvv7g==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/primitive": "1.1.7",+ "@radix-ui/react-compose-refs": "1.1.5",+ "@radix-ui/react-context": "1.2.2",+ "@radix-ui/react-id": "1.1.4",+ "@radix-ui/react-menu": "2.1.24",+ "@radix-ui/react-primitive": "2.1.10",+ "@radix-ui/react-use-controllable-state": "1.2.6"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-focus-guards": {+ "version": "1.1.6",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-focus-guards/-/react-focus-guards-1.1.6.tgz",+ "integrity": "sha512-RNOJjfZMTyBM6xYmV3IVGXkPjIhcBAuv48POevAXwrGJhkWZ9p1rFoIS1JFooPuT193AZmRsCPhpoVJxx6OPoQ==",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-focus-scope": {+ "version": "1.1.16",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-focus-scope/-/react-focus-scope-1.1.16.tgz",+ "integrity": "sha512-wmRZ2WWLvmt6KHy2rNPOdPUjwq5xOHY02+m+udwJTn0aNIox/rkskAvJTyTLGhPK6KgrUjlJUJpgmx/+wFiFIQ==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-compose-refs": "1.1.5",+ "@radix-ui/react-primitive": "2.1.10",+ "@radix-ui/react-use-callback-ref": "1.1.4"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-id": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-id/-/react-id-1.1.4.tgz",+ "integrity": "sha512-TMQp2llA+RYn7JcjnrMnz7wN4pcVttPZnRZo52PLQsoLVKzNlVwUeHmfePgTgRluXFvlD3GD5g5MOVVTJCO0qA==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-use-layout-effect": "1.1.4"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-menu": {+ "version": "2.1.24",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-menu/-/react-menu-2.1.24.tgz",+ "integrity": "sha512-uW7RVuU6Lp/ZtfeY4b3kL32zccgEWvPv1+cf17ubYzHa9cL8AHokmk36cG/XEiH/smbQvumnieXX9j/e9RqJWA==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/primitive": "1.1.7",+ "@radix-ui/react-collection": "1.1.15",+ "@radix-ui/react-compose-refs": "1.1.5",+ "@radix-ui/react-context": "1.2.2",+ "@radix-ui/react-direction": "1.1.4",+ "@radix-ui/react-dismissable-layer": "1.1.19",+ "@radix-ui/react-focus-guards": "1.1.6",+ "@radix-ui/react-focus-scope": "1.1.16",+ "@radix-ui/react-id": "1.1.4",+ "@radix-ui/react-popper": "1.3.7",+ "@radix-ui/react-portal": "1.1.17",+ "@radix-ui/react-presence": "1.1.10",+ "@radix-ui/react-primitive": "2.1.10",+ "@radix-ui/react-roving-focus": "1.1.19",+ "@radix-ui/react-slot": "1.3.3",+ "@radix-ui/react-use-callback-ref": "1.1.4",+ "aria-hidden": "^1.2.4",+ "react-remove-scroll": "^2.7.2"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-popover": {+ "version": "1.1.23",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-popover/-/react-popover-1.1.23.tgz",+ "integrity": "sha512-mw58MrBlyHWFisTOYignD0vf/3gdcgAR+9of1s9G/38CbFiUwH1nCDkc0AUM9IrXFgN5Ue8n45j9WCgyM1sbiQ==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/primitive": "1.1.7",+ "@radix-ui/react-compose-refs": "1.1.5",+ "@radix-ui/react-context": "1.2.2",+ "@radix-ui/react-dismissable-layer": "1.1.19",+ "@radix-ui/react-focus-guards": "1.1.6",+ "@radix-ui/react-focus-scope": "1.1.16",+ "@radix-ui/react-id": "1.1.4",+ "@radix-ui/react-popper": "1.3.7",+ "@radix-ui/react-portal": "1.1.17",+ "@radix-ui/react-presence": "1.1.10",+ "@radix-ui/react-primitive": "2.1.10",+ "@radix-ui/react-slot": "1.3.3",+ "@radix-ui/react-use-controllable-state": "1.2.6",+ "aria-hidden": "^1.2.4",+ "react-remove-scroll": "^2.7.2"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-popper": {+ "version": "1.3.7",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-popper/-/react-popper-1.3.7.tgz",+ "integrity": "sha512-UsJrrd7w4wuKKTdvd/DNERVlwSlUcyXzjhyDwBk+3aPOsCjOY6ZSbxuw8E6lZTjjfP8Cpd0J8VVkrYUWyGYXyg==",+ "license": "MIT",+ "dependencies": {+ "@floating-ui/react-dom": "^2.0.0",+ "@radix-ui/react-arrow": "1.1.15",+ "@radix-ui/react-compose-refs": "1.1.5",+ "@radix-ui/react-context": "1.2.2",+ "@radix-ui/react-primitive": "2.1.10",+ "@radix-ui/react-use-callback-ref": "1.1.4",+ "@radix-ui/react-use-layout-effect": "1.1.4",+ "@radix-ui/react-use-rect": "1.1.4",+ "@radix-ui/react-use-size": "1.1.4",+ "@radix-ui/rect": "1.1.3"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-portal": {+ "version": "1.1.17",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-portal/-/react-portal-1.1.17.tgz",+ "integrity": "sha512-vKQLcWypUnwZVvfV7UkGahH2g6ySe8M8R+zYBwPrv5byZ9QAW6cQVvNKo7GgmD+p8aYb6D9JBuvy8/WhOno2wQ==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-primitive": "2.1.10",+ "@radix-ui/react-use-layout-effect": "1.1.4"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-presence": {+ "version": "1.1.10",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-presence/-/react-presence-1.1.10.tgz",+ "integrity": "sha512-3wyzCQ6+ubRA+D4uv9m95JYLXxmOHp05qjrkjeA7uKHHtjpPggQzc6DAb0URl7j67oR0K2foO4ip27TiX037Bw==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-use-layout-effect": "1.1.4"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-primitive": {+ "version": "2.1.10",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.10.tgz",+ "integrity": "sha512-MucOnzh6hR5mid6VpkbglRAMYMjKLqRnGBbjXkzjK52fuQDd1qbkx78a5P40mkcnVXJdEVxm26E9OPAiUq7nBg==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-slot": "1.3.3"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-roving-focus": {+ "version": "1.1.19",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-roving-focus/-/react-roving-focus-1.1.19.tgz",+ "integrity": "sha512-V9jI6hDjT7l3jsCQD9bLNvDLM3tH/gdbOTp7Tefp3hbbgCGQoK7tUvrWiRlcoBHIZ809ElXwNQwVo0B98LuTXQ==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/primitive": "1.1.7",+ "@radix-ui/react-collection": "1.1.15",+ "@radix-ui/react-compose-refs": "1.1.5",+ "@radix-ui/react-context": "1.2.2",+ "@radix-ui/react-direction": "1.1.4",+ "@radix-ui/react-id": "1.1.4",+ "@radix-ui/react-primitive": "2.1.10",+ "@radix-ui/react-use-callback-ref": "1.1.4",+ "@radix-ui/react-use-controllable-state": "1.2.6",+ "@radix-ui/react-use-is-hydrated": "0.1.3",+ "@radix-ui/react-use-layout-effect": "1.1.4"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-slot": {+ "version": "1.3.3",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.3.3.tgz",+ "integrity": "sha512-qx7oqnYbxnK9kYI9m317qmFmEgo6ywqWvbTogdj7cL9p3/yx4M48p7Rnw5z3H890cL/ow/EeWJsuTykeZVXP5Q==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-compose-refs": "1.1.5"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-tabs": {+ "version": "1.1.21",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-tabs/-/react-tabs-1.1.21.tgz",+ "integrity": "sha512-UKxJlZid7FVtsk/WTxj4i4uSEgj2Au+KBbS7SQyTlzMhhn+86Cz3tISZdTa87bfEfcuvZezf2ZsxD4xuEKtkog==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/primitive": "1.1.7",+ "@radix-ui/react-context": "1.2.2",+ "@radix-ui/react-direction": "1.1.4",+ "@radix-ui/react-id": "1.1.4",+ "@radix-ui/react-presence": "1.1.10",+ "@radix-ui/react-primitive": "2.1.10",+ "@radix-ui/react-roving-focus": "1.1.19",+ "@radix-ui/react-use-controllable-state": "1.2.6"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-tooltip": {+ "version": "1.2.16",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-tooltip/-/react-tooltip-1.2.16.tgz",+ "integrity": "sha512-6EamKFRRnlpdadndbZ6LMwycfwkwPte1B42hs6QA0gYhjaOKqW4PZ4pjaW9UrlDX5eVt/OjncE7BFTPL5nmZhg==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/primitive": "1.1.7",+ "@radix-ui/react-compose-refs": "1.1.5",+ "@radix-ui/react-context": "1.2.2",+ "@radix-ui/react-dismissable-layer": "1.1.19",+ "@radix-ui/react-id": "1.1.4",+ "@radix-ui/react-popper": "1.3.7",+ "@radix-ui/react-portal": "1.1.17",+ "@radix-ui/react-presence": "1.1.10",+ "@radix-ui/react-primitive": "2.1.10",+ "@radix-ui/react-slot": "1.3.3",+ "@radix-ui/react-use-controllable-state": "1.2.6",+ "@radix-ui/react-use-layout-effect": "1.1.4",+ "@radix-ui/react-visually-hidden": "1.2.11"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-use-callback-ref": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-callback-ref/-/react-use-callback-ref-1.1.4.tgz",+ "integrity": "sha512-R6OUY2e2fA6Yn6s+VSx5KBV6Nx8LQEhu+cz7LCej18rQ1HLyg9PSC9jP/ZNx0o6FAIK9c0F1kHylzSxKsdlkrQ==",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-use-controllable-state": {+ "version": "1.2.6",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-controllable-state/-/react-use-controllable-state-1.2.6.tgz",+ "integrity": "sha512-uEQJGT97ZA/TgP/Hydw47lHu+/vQj6z/0jA+WeTbK1o9Rx45GImjpD0tc3W5ad3D6XTSR6e1yEO0FvGq6WQfVQ==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/primitive": "1.1.7",+ "@radix-ui/react-use-effect-event": "0.0.5",+ "@radix-ui/react-use-layout-effect": "1.1.4"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-use-effect-event": {+ "version": "0.0.5",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-effect-event/-/react-use-effect-event-0.0.5.tgz",+ "integrity": "sha512-7cshFL8HGS/7HEiHH+9kL9HBwp2sa9yX18Knwek6KYWmXwM7pegMgta2AXMQKI+rq3JnfSj9x8wYqFMTdG1Jgg==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-use-layout-effect": "1.1.4"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-use-is-hydrated": {+ "version": "0.1.3",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-is-hydrated/-/react-use-is-hydrated-0.1.3.tgz",+ "integrity": "sha512-umO/aJ+82CpOnhDZUTbILCQf7kU/g0iv+oGs/Q8jw7IkhWBzaEP4sA268PhFAJTFetbwp3ICc6ktpI4TqtxcIw==",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-use-layout-effect": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-layout-effect/-/react-use-layout-effect-1.1.4.tgz",+ "integrity": "sha512-K20DkRkUwDnxEYMBPcg3Y6voLkEy5p5QQmszZgLngKKiC7dzBR/aEuK3w1qlx2JWDUNH6FluahYdgR3BP+QbYw==","license": "MIT",- "dependencies": {- "@jridgewell/sourcemap-codec": "^1.5.0",- "@jridgewell/trace-mapping": "^0.3.24"+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }}},- "node_modules/@jridgewell/remapping": {- "version": "2.3.5",- "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz",- "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==",- "dev": true,+ "node_modules/@radix-ui/react-use-rect": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-rect/-/react-use-rect-1.1.4.tgz",+ "integrity": "sha512-cSOCh6JlkmfjLyNcLiu2nB4v+nm+dkZ+Q5KHWk/soo4U7ZLiEQFKHK9/YmtBHjfCEaU43IBKQOc4/uJmCaiCTQ==","license": "MIT","dependencies": {- "@jridgewell/gen-mapping": "^0.3.5",- "@jridgewell/trace-mapping": "^0.3.24"+ "@radix-ui/rect": "1.1.3"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }}},- "node_modules/@jridgewell/resolve-uri": {- "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,+ "node_modules/@radix-ui/react-use-size": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-size/-/react-use-size-1.1.4.tgz",+ "integrity": "sha512-D3anSY15EJoxrihpsXI6SMrmmonnQtR2ni7arO+Lfdg3O95b9hNXxONk8jA5C8ANdF/h5HMAxejgs8PWJ6rlhw==","license": "MIT",- "engines": {- "node": ">=6.0.0"+ "dependencies": {+ "@radix-ui/react-use-layout-effect": "1.1.4"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }}},- "node_modules/@jridgewell/sourcemap-codec": {- "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,+ "node_modules/@radix-ui/react-visually-hidden": {+ "version": "1.2.11",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-visually-hidden/-/react-visually-hidden-1.2.11.tgz",+ "integrity": "sha512-NFS86RYYZb4/exihaESBGOpMJFz8MGLAfu3mOBSGByVnVPC9JPASfYubxd/8KbkQK0sYAv8lVQDEQukDX/qXvQ==","license": "MIT","dependencies": {- "@jridgewell/resolve-uri": "^3.1.0",- "@jridgewell/sourcemap-codec": "^1.4.14"+ "@radix-ui/react-primitive": "2.1.10"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }}},+ "node_modules/@radix-ui/rect": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/@radix-ui/rect/-/rect-1.1.3.tgz",+ "integrity": "sha512-JtyZR+mqgBibTo8xea3B6ZRmzZiM/YeVBtUkas6zMuXjAlfIFIW2FgqeM9eLyvEaYX66vr6DJMK+4U6LV0KhNw==",+ "license": "MIT"+ },"node_modules/@rolldown/pluginutils": {"version": "1.0.0-beta.27","resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-beta.27.tgz",@@ -1503,7 +2285,7 @@"version": "19.2.15","resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.15.tgz","integrity": "sha512-eRwcGNHve+E8qtEQSSRl6urh+rFop4v8gm6O8rGv25CodbvFdLjA1vVQ1KkiFE0w0UPOnb8tDiFKL5lp0rtY5Q==",- "dev": true,+ "devOptional": true,"license": "MIT","dependencies": {"csstype": "^3.2.2"@@ -1513,7 +2295,7 @@"version": "19.2.3","resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.2.3.tgz","integrity": "sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ==",- "dev": true,+ "devOptional": true,"license": "MIT","peerDependencies": {"@types/react": "^19.2.0"@@ -1540,6 +2322,18 @@"vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0"}},+ "node_modules/aria-hidden": {+ "version": "1.2.6",+ "resolved": "https://registry.npmjs.org/aria-hidden/-/aria-hidden-1.2.6.tgz",+ "integrity": "sha512-ik3ZgC9dY/lYVVM++OISsaYDeg1tb0VtP5uL3ouh1koGOaUMDPpbFIei4JkFimWUFPn90sbMNMXQAIVOlnYKJA==",+ "license": "MIT",+ "dependencies": {+ "tslib": "^2.0.0"+ },+ "engines": {+ "node": ">=10"+ }+ },"node_modules/baseline-browser-mapping": {"version": "2.10.33","resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.33.tgz",@@ -1608,6 +2402,27 @@],"license": "CC-BY-4.0"},+ "node_modules/class-variance-authority": {+ "version": "0.7.1",+ "resolved": "https://registry.npmjs.org/class-variance-authority/-/class-variance-authority-0.7.1.tgz",+ "integrity": "sha512-Ka+9Trutv7G8M6WT6SeiRWz792K5qEqIGEGzXKhAE6xOWAY6pPH8U+9IY3oCMv6kqTmLsv7Xh/2w2RigkePMsg==",+ "license": "Apache-2.0",+ "dependencies": {+ "clsx": "^2.1.1"+ },+ "funding": {+ "url": "https://polar.sh/cva"+ }+ },+ "node_modules/clsx": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz",+ "integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==",+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },"node_modules/component-emitter": {"version": "2.0.0","resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-2.0.0.tgz",@@ -1645,7 +2460,7 @@"version": "3.2.3","resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz","integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==",- "dev": true,+ "devOptional": true,"license": "MIT"},"node_modules/debug": {@@ -1676,6 +2491,12 @@"node": ">=8"}},+ "node_modules/detect-node-es": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/detect-node-es/-/detect-node-es-1.1.0.tgz",+ "integrity": "sha512-ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ==",+ "license": "MIT"+ },"node_modules/electron-to-chromium": {"version": "1.5.364","resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.364.tgz",@@ -1749,6 +2570,15 @@"node": ">=6"}},+ "node_modules/events": {+ "version": "3.3.0",+ "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz",+ "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==",+ "license": "MIT",+ "engines": {+ "node": ">=0.8.x"+ }+ },"node_modules/fdir": {"version": "6.5.0","resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",@@ -1792,6 +2622,15 @@"node": ">=6.9.0"}},+ "node_modules/get-nonce": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/get-nonce/-/get-nonce-1.0.1.tgz",+ "integrity": "sha512-FJhYRoDaiatfEkUK8HKlicmu/3SGFD51q3itKDGoSTysQJBnfOcxU5GxnhE1E6soB76MbT0MBtnKJuXyAx+96Q==",+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },"node_modules/graceful-fs": {"version": "4.2.11","resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",@@ -1799,6 +2638,86 @@"dev": true,"license": "ISC"},+ "node_modules/graphology": {+ "version": "0.26.0",+ "resolved": "https://registry.npmjs.org/graphology/-/graphology-0.26.0.tgz",+ "integrity": "sha512-8SSImzgUUYC89Z042s+0r/vMibY7GX/Emz4LDO5e7jYXhuoWfHISPFJYjpRLUSJGq6UQ6xlenvX1p/hJdfXuXg==",+ "license": "MIT",+ "dependencies": {+ "events": "^3.3.0"+ },+ "peerDependencies": {+ "graphology-types": ">=0.24.0"+ }+ },+ "node_modules/graphology-communities-louvain": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/graphology-communities-louvain/-/graphology-communities-louvain-2.0.2.tgz",+ "integrity": "sha512-zt+2hHVPYxjEquyecxWXoUoIuN/UvYzsvI7boDdMNz0rRvpESQ7+e+Ejv6wK7AThycbZXuQ6DkG8NPMCq6XwoA==",+ "license": "MIT",+ "dependencies": {+ "graphology-indices": "^0.17.0",+ "graphology-utils": "^2.4.4",+ "mnemonist": "^0.39.0",+ "pandemonium": "^2.4.1"+ },+ "peerDependencies": {+ "graphology-types": ">=0.19.0"+ }+ },+ "node_modules/graphology-indices": {+ "version": "0.17.0",+ "resolved": "https://registry.npmjs.org/graphology-indices/-/graphology-indices-0.17.0.tgz",+ "integrity": "sha512-A7RXuKQvdqSWOpn7ZVQo4S33O0vCfPBnUSf7FwE0zNCasqwZVUaCXePuWo5HBpWw68KJcwObZDHpFk6HKH6MYQ==",+ "license": "MIT",+ "dependencies": {+ "graphology-utils": "^2.4.2",+ "mnemonist": "^0.39.0"+ },+ "peerDependencies": {+ "graphology-types": ">=0.20.0"+ }+ },+ "node_modules/graphology-layout-forceatlas2": {+ "version": "0.10.1",+ "resolved": "https://registry.npmjs.org/graphology-layout-forceatlas2/-/graphology-layout-forceatlas2-0.10.1.tgz",+ "integrity": "sha512-ogzBeF1FvWzjkikrIFwxhlZXvD2+wlY54lqhsrWprcdPjopM2J9HoMweUmIgwaTvY4bUYVimpSsOdvDv1gPRFQ==",+ "license": "MIT",+ "dependencies": {+ "graphology-utils": "^2.1.0"+ },+ "peerDependencies": {+ "graphology-types": ">=0.19.0"+ }+ },+ "node_modules/graphology-layout-noverlap": {+ "version": "0.4.2",+ "resolved": "https://registry.npmjs.org/graphology-layout-noverlap/-/graphology-layout-noverlap-0.4.2.tgz",+ "integrity": "sha512-13WwZSx96zim6l1dfZONcqLh3oqyRcjIBsqz2c2iJ3ohgs3605IDWjldH41Gnhh462xGB1j6VGmuGhZ2FKISXA==",+ "license": "MIT",+ "dependencies": {+ "graphology-utils": "^2.3.0"+ },+ "peerDependencies": {+ "graphology-types": ">=0.19.0"+ }+ },+ "node_modules/graphology-types": {+ "version": "0.24.8",+ "resolved": "https://registry.npmjs.org/graphology-types/-/graphology-types-0.24.8.tgz",+ "integrity": "sha512-hDRKYXa8TsoZHjgEaysSRyPdT6uB78Ci8WnjgbStlQysz7xR52PInxNsmnB7IBOM1BhikxkNyCVEFgmPKnpx3Q==",+ "license": "MIT",+ "peer": true+ },+ "node_modules/graphology-utils": {+ "version": "2.5.2",+ "resolved": "https://registry.npmjs.org/graphology-utils/-/graphology-utils-2.5.2.tgz",+ "integrity": "sha512-ckHg8MXrXJkOARk56ZaSCM1g1Wihe2d6iTmz1enGOz4W/l831MBCKSayeFQfowgF8wd+PQ4rlch/56Vs/VZLDQ==",+ "license": "MIT",+ "peerDependencies": {+ "graphology-types": ">=0.23.0"+ }+ },"node_modules/jiti": {"version": "2.7.0","resolved": "https://registry.npmjs.org/jiti/-/jiti-2.7.0.tgz",@@ -1813,7 +2732,6 @@"version": "4.0.0","resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz","integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",- "dev": true,"license": "MIT"},"node_modules/jsesc": {@@ -2110,6 +3028,18 @@"url": "https://opencollective.com/parcel"}},+ "node_modules/loose-envify": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",+ "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==",+ "license": "MIT",+ "dependencies": {+ "js-tokens": "^3.0.0 || ^4.0.0"+ },+ "bin": {+ "loose-envify": "cli.js"+ }+ },"node_modules/lru-cache": {"version": "5.1.1","resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz",@@ -2120,6 +3050,67 @@"yallist": "^3.0.2"}},+ "node_modules/lumen-ui-kit": {+ "version": "0.1.3",+ "resolved": "https://registry.npmjs.org/lumen-ui-kit/-/lumen-ui-kit-0.1.3.tgz",+ "integrity": "sha512-VYa6IPssbyykFnhJXhCiOvk5pURh6Q6lmmlk6JuFhKIykvLnpk0HT2EvNsa1596Fw1EuZF+Pl+3iAZJi8EKLsg==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-dialog": "^1.1.18",+ "@radix-ui/react-dropdown-menu": "^2.1.19",+ "@radix-ui/react-popover": "^1.1.18",+ "@radix-ui/react-tabs": "^1.1.16",+ "@radix-ui/react-tooltip": "^1.2.11",+ "class-variance-authority": "^0.7.1",+ "clsx": "^2.1.1",+ "tailwind-merge": "^3.6.0"+ },+ "bin": {+ "lumen-ui-mcp": "dist/mcp/index.js"+ },+ "peerDependencies": {+ "@carbon/icons-react": ">=11.84 <12",+ "@modelcontextprotocol/sdk": ">=1.30 <2",+ "graphology": ">=0.26 <1",+ "graphology-communities-louvain": ">=2 <3",+ "graphology-layout-forceatlas2": ">=0.10 <1",+ "graphology-layout-noverlap": ">=0.4 <1",+ "next": ">=15 <17",+ "react": ">=18.3 <20",+ "react-dom": ">=18.3 <20",+ "vis-data": ">=8 <9",+ "vis-network": ">=10 <11"+ },+ "peerDependenciesMeta": {+ "@carbon/icons-react": {+ "optional": true+ },+ "@modelcontextprotocol/sdk": {+ "optional": true+ },+ "graphology": {+ "optional": true+ },+ "graphology-communities-louvain": {+ "optional": true+ },+ "graphology-layout-forceatlas2": {+ "optional": true+ },+ "graphology-layout-noverlap": {+ "optional": true+ },+ "next": {+ "optional": true+ },+ "vis-data": {+ "optional": true+ },+ "vis-network": {+ "optional": true+ }+ }+ },"node_modules/magic-string": {"version": "0.30.21","resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz",@@ -2130,6 +3121,15 @@"@jridgewell/sourcemap-codec": "^1.5.5"}},+ "node_modules/mnemonist": {+ "version": "0.39.8",+ "resolved": "https://registry.npmjs.org/mnemonist/-/mnemonist-0.39.8.tgz",+ "integrity": "sha512-vyWo2K3fjrUw8YeeZ1zF0fy6Mu59RHokURlld8ymdUPjMlD9EC9ov1/YPqTgqRvUN9nTr3Gqfz29LYAmu0PHPQ==",+ "license": "MIT",+ "dependencies": {+ "obliterator": "^2.0.1"+ }+ },"node_modules/ms": {"version": "2.1.3","resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",@@ -2166,6 +3166,30 @@"node": ">=18"}},+ "node_modules/object-assign": {+ "version": "4.1.1",+ "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",+ "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/obliterator": {+ "version": "2.0.5",+ "resolved": "https://registry.npmjs.org/obliterator/-/obliterator-2.0.5.tgz",+ "integrity": "sha512-42CPE9AhahZRsMNslczq0ctAEtqk8Eka26QofnqC346BZdHDySk3LWka23LI7ULIw11NmltpiLagIq8gBozxTw==",+ "license": "MIT"+ },+ "node_modules/pandemonium": {+ "version": "2.4.1",+ "resolved": "https://registry.npmjs.org/pandemonium/-/pandemonium-2.4.1.tgz",+ "integrity": "sha512-wRqjisUyiUfXowgm7MFH2rwJzKIr20rca5FsHXCMNm1W5YPP1hCtrZfgmQ62kP7OZ7Xt+cR858aB28lu5NX55g==",+ "license": "MIT",+ "dependencies": {+ "mnemonist": "^0.39.2"+ }+ },"node_modules/picocolors": {"version": "1.1.1","resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",@@ -2215,6 +3239,17 @@"node": "^10 || ^12 || >=14"}},+ "node_modules/prop-types": {+ "version": "15.8.1",+ "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz",+ "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==",+ "license": "MIT",+ "dependencies": {+ "loose-envify": "^1.4.0",+ "object-assign": "^4.1.1",+ "react-is": "^16.13.1"+ }+ },"node_modules/react": {"version": "19.2.6","resolved": "https://registry.npmjs.org/react/-/react-19.2.6.tgz",@@ -2236,6 +3271,12 @@"react": "^19.2.6"}},+ "node_modules/react-is": {+ "version": "16.13.1",+ "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz",+ "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==",+ "license": "MIT"+ },"node_modules/react-refresh": {"version": "0.17.0","resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.17.0.tgz",@@ -2246,6 +3287,53 @@"node": ">=0.10.0"}},+ "node_modules/react-remove-scroll": {+ "version": "2.7.2",+ "resolved": "https://registry.npmjs.org/react-remove-scroll/-/react-remove-scroll-2.7.2.tgz",+ "integrity": "sha512-Iqb9NjCCTt6Hf+vOdNIZGdTiH1QSqr27H/Ek9sv/a97gfueI/5h1s3yRi1nngzMUaOOToin5dI1dXKdXiF+u0Q==",+ "license": "MIT",+ "dependencies": {+ "react-remove-scroll-bar": "^2.3.7",+ "react-style-singleton": "^2.2.3",+ "tslib": "^2.1.0",+ "use-callback-ref": "^1.3.3",+ "use-sidecar": "^1.1.3"+ },+ "engines": {+ "node": ">=10"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/react-remove-scroll-bar": {+ "version": "2.3.8",+ "resolved": "https://registry.npmjs.org/react-remove-scroll-bar/-/react-remove-scroll-bar-2.3.8.tgz",+ "integrity": "sha512-9r+yi9+mgU33AKcj6IbT9oRCO78WriSj6t/cF8DWBZJ9aOGPOTEDvdUDz1FwKim7QXWwmHqtdHnRJfhAxEG46Q==",+ "license": "MIT",+ "dependencies": {+ "react-style-singleton": "^2.2.2",+ "tslib": "^2.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },"node_modules/react-router": {"version": "7.16.0","resolved": "https://registry.npmjs.org/react-router/-/react-router-7.16.0.tgz",@@ -2284,6 +3372,28 @@"react-dom": ">=18"}},+ "node_modules/react-style-singleton": {+ "version": "2.2.3",+ "resolved": "https://registry.npmjs.org/react-style-singleton/-/react-style-singleton-2.2.3.tgz",+ "integrity": "sha512-b6jSvxvVnyptAiLjbkWLE/lOnR4lfTtDAl+eUC7RZy+QQWc6wRzIV2CE6xBuMmDxc2qIihtDCZD5NPOFl7fRBQ==",+ "license": "MIT",+ "dependencies": {+ "get-nonce": "^1.0.0",+ "tslib": "^2.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },"node_modules/rollup": {"version": "4.60.4","resolved": "https://registry.npmjs.org/rollup/-/rollup-4.60.4.tgz",@@ -2361,6 +3471,16 @@"node": ">=0.10.0"}},+ "node_modules/tailwind-merge": {+ "version": "3.6.0",+ "resolved": "https://registry.npmjs.org/tailwind-merge/-/tailwind-merge-3.6.0.tgz",+ "integrity": "sha512-uxL7qAVQriqRQPAyK3pj66VqskWqoZ37PW94jwOTwNfq/z9oyu1V+eqrZqtR2+fCiXdYOZe/Modt8GtvqNzu+w==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/dcastil"+ }+ },"node_modules/tailwindcss": {"version": "4.3.0","resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.3.0.tgz",@@ -2399,6 +3519,12 @@"url": "https://github.com/sponsors/SuperchupuDev"}},+ "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"+ },"node_modules/typescript": {"version": "5.9.3","resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",@@ -2444,6 +3570,49 @@"browserslist": ">= 4.21.0"}},+ "node_modules/use-callback-ref": {+ "version": "1.3.3",+ "resolved": "https://registry.npmjs.org/use-callback-ref/-/use-callback-ref-1.3.3.tgz",+ "integrity": "sha512-jQL3lRnocaFtu3V00JToYz/4QkNWswxijDaCVNZRiRTO3HQDLsdu1ZtmIUvV4yPp+rvWm5j0y0TG/S61cuijTg==",+ "license": "MIT",+ "dependencies": {+ "tslib": "^2.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/use-sidecar": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/use-sidecar/-/use-sidecar-1.1.3.tgz",+ "integrity": "sha512-Fedw0aZvkhynoPYlA5WXrMCAMm+nSWdZt6lzJQ7Ok8S6Q+VsHmHpRWndVRJ8Be0ZbkfPc5LRYH+5XrzXcEeLRQ==",+ "license": "MIT",+ "dependencies": {+ "detect-node-es": "^1.1.0",+ "tslib": "^2.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },"node_modules/uuid": {"version": "14.0.0","resolved": "https://registry.npmjs.org/uuid/-/uuid-14.0.0.tgz",diff --git a/console/package.json b/console/package.jsonindex 190378f..043fb26 100644--- a/console/package.json+++ b/console/package.json@@ -9,6 +9,13 @@"preview": "vite preview"},"dependencies": {+ "@carbon/icons-react": "^11.84.0",+ "@fontsource/inter": "^5.3.0",+ "graphology": "^0.26.0",+ "graphology-communities-louvain": "^2.0.2",+ "graphology-layout-forceatlas2": "^0.10.1",+ "graphology-layout-noverlap": "^0.4.2",+ "lumen-ui-kit": "^0.1.0","react": "^19.1.0","react-dom": "^19.1.0","react-router-dom": "^7.6.0",diff --git a/console/src/components/GraphCanvas.tsx b/console/src/components/GraphCanvas.tsxdeleted file mode 100644index cf29183..0000000--- a/console/src/components/GraphCanvas.tsx+++ /dev/null@@ -1,210 +0,0 @@-import { useEffect, useRef } from "react";-import { DataSet, Network } from "vis-network/standalone";-import "vis-network/styles/vis-network.min.css";-import { colorForLabel, primaryLabel } from "../lib/graphColors";-import type { GraphEdge, GraphEntity } from "../lib/graphModel";--interface GraphCanvasProps {- entities: GraphEntity[];- edges: GraphEdge[];- selectedId: string | null;- physics: boolean;- onSelect: (entity: GraphEntity | null) => void;- onExpand: (entity: GraphEntity) => void;-}--function truncate(text: string, max: number): string {- if (text.length <= max) return text;- return `${text.slice(0, max - 1)}…`;-}--function buildNode(entity: GraphEntity, selected: boolean) {- const label = primaryLabel(entity.labels);- const color = colorForLabel(label);- return {- id: entity.uuid,- label: truncate(entity.name || entity.uuid, 28),- title: [entity.name, label, entity.description ?? "", entity.uuid]- .filter(Boolean)- .join("\n"),- shape: "dot" as const,- size: selected ? 28 : 22,- color: {- background: color,- border: selected ? "#ffffff" : "#1e293b",- highlight: { background: color, border: "#ffffff" },- hover: { background: color, border: "#e2e8f0" },- },- font: {- color: "#e2e8f0",- size: 13,- face: "Inter, system-ui, sans-serif",- },- borderWidth: selected ? 3 : 1.5,- entity,- };-}--function buildEdgeItem(e: GraphEdge) {- return {- id: e.id,- from: e.from,- to: e.to,- label: truncate(e.label, 28),- title: e.label,- arrows: { to: { enabled: true, scaleFactor: 0.8 } },- color: {- color: "#94a3b8",- highlight: "#e2e8f0",- hover: "#f1f5f9",- opacity: 0.95,- },- font: {- color: "#cbd5e1",- size: 12,- strokeWidth: 0,- align: "horizontal" as const,- background: "#1a1d23",- },- width: 2,- smooth: { enabled: true, type: "continuous", roundness: 0.35 },- };-}--export default function GraphCanvas({- entities,- edges,- selectedId,- physics,- onSelect,- onExpand,-}: GraphCanvasProps) {- const containerRef = useRef<HTMLDivElement>(null);- const networkRef = useRef<Network | null>(null);- const nodesRef = useRef<DataSet<ReturnType<typeof buildNode>> | null>(null);- const edgesRef = useRef<DataSet<ReturnType<typeof buildEdgeItem>> | null>(null);- const entitiesRef = useRef(entities);- entitiesRef.current = entities;-- useEffect(() => {- if (!containerRef.current) return;-- const nodes = new DataSet(entities.map((e) => buildNode(e, false)));- const edgeSet = new DataSet(edges.map(buildEdgeItem));- nodesRef.current = nodes;- edgesRef.current = edgeSet;-- const network = new Network(- containerRef.current,- { nodes, edges: edgeSet },- {- autoResize: true,- interaction: {- hover: true,- tooltipDelay: 120,- multiselect: false,- navigationButtons: true,- keyboard: true,- },- physics: {- enabled: physics,- solver: "forceAtlas2Based",- forceAtlas2Based: {- gravitationalConstant: -50,- centralGravity: 0.01,- springLength: 160,- springConstant: 0.08,- damping: 0.4,- avoidOverlap: 0.5,- },- stabilization: { enabled: true, iterations: 200, updateInterval: 25 },- },- layout: { improvedLayout: true },- nodes: {- shadow: {- enabled: true,- size: 8,- x: 0,- y: 2,- color: "rgba(0,0,0,0.35)",- },- },- edges: {- width: 2,- selectionWidth: 3,- smooth: { enabled: true, type: "continuous", roundness: 0.35 },- },- },- );-- network.on("click", (params) => {- if (!params.nodes.length) {- onSelect(null);- return;- }- const id = String(params.nodes[0]);- onSelect(entitiesRef.current.find((e) => e.uuid === id) ?? null);- });-- network.on("doubleClick", (params) => {- if (!params.nodes.length) return;- const entity = entitiesRef.current.find(- (e) => e.uuid === String(params.nodes[0]),- );- if (entity) onExpand(entity);- });-- network.once("stabilizationIterationsDone", () => {- network.fit({ animation: { duration: 350, easingFunction: "easeInOutQuad" } });- });-- networkRef.current = network;-- return () => {- network.destroy();- networkRef.current = null;- nodesRef.current = null;- edgesRef.current = null;- };- }, []);-- useEffect(() => {- const nodes = nodesRef.current;- const edgeSet = edgesRef.current;- if (!nodes || !edgeSet) return;-- const nodeIds = new Set(entities.map((e) => e.uuid));- for (const id of nodes.getIds().map(String)) {- if (!nodeIds.has(id)) nodes.remove(id);- }- for (const entity of entities) {- const item = buildNode(entity, entity.uuid === selectedId);- if (nodes.get(entity.uuid)) nodes.update(item);- else nodes.add(item);- }-- const nodeIdSet = new Set(nodes.getIds().map(String));- const validEdges = edges.filter(- (e) => nodeIdSet.has(e.from) && nodeIdSet.has(e.to),- );- const edgeIds = new Set(validEdges.map((e) => e.id));- for (const id of edgeSet.getIds().map(String)) {- if (!edgeIds.has(id)) edgeSet.remove(id);- }- for (const e of validEdges) {- const item = buildEdgeItem(e);- if (edgeSet.get(e.id)) edgeSet.update(item);- else edgeSet.add(item);- }- }, [entities, edges, selectedId]);-- useEffect(() => {- networkRef.current?.setOptions({ physics: { enabled: physics } });- }, [physics]);-- return (- <div ref={containerRef} className="h-full w-full rounded-xl bg-[#1a1d23]" />- );-}--export type { GraphEntity, GraphEdge };diff --git a/console/src/components/Layout.tsx b/console/src/components/Layout.tsxindex 7afdd9d..0da7b5d 100644--- a/console/src/components/Layout.tsx+++ b/console/src/components/Layout.tsx@@ -1,5 +1,48 @@import { useCallback, useEffect, useState } from "react";-import { NavLink, Outlet, useNavigate } from "react-router-dom";+import { Outlet, useLocation, useNavigate } from "react-router-dom";+import {+ AppShell,+ AppShellMain,+ AppShellRail,+ AppShellSidebar,+ AppShellSidebarContent,+ AppShellSidebarFooter,+ AppShellSidebarHeader,+ Button,+ DescriptionDetails,+ DescriptionList,+ DescriptionTerm,+ Disclosure,+ DisclosureContent,+ DisclosureTrigger,+ Drawer,+ DrawerClose,+ DrawerContent,+ DrawerDescription,+ DrawerTitle,+ DrawerTrigger,+ Field,+ FieldDescription,+ FieldLabel,+ GlobalHeader,+ GlobalHeaderActions,+ GlobalHeaderBrand,+ GlobalHeaderInner,+ Select,+ SideNav,+ SideNavGroup,+ SideNavGroupLabel,+ SideNavItem,+ SideNavLink,+ SideNavList,+ SkipLink,+ StatusIndicator,+ Toolbar,+ ToolbarGroup,+ ToolbarItem,+ ToolbarLabel,+} from "lumen-ui-kit";+import { CloseIcon, Icon, MenuIcon, UserIcon } from "lumen-ui-kit/icons";import {fetchBrainsList,getSession,@@ -9,18 +52,256 @@ import {} from "../lib/api";import { clearSession, loadSession, saveSession } from "../lib/auth";-const navItems = [- { to: "/", label: "Overview", end: true },- { to: "/graph", label: "Graph" },- { to: "/data", label: "Data" },- { to: "/observations", label: "Observations" },- { to: "/vectors", label: "Vectors" },- { to: "/tasks", label: "Tasks" },- { to: "/ingest", label: "Ingest" },+const navGroups: {+ label: string;+ items: { to: string; label: string; end?: boolean }[];+}[] = [+ {+ label: "Explore",+ items: [+ { to: "/", label: "Overview", end: true },+ { to: "/graph", label: "Graph" },+ ],+ },+ {+ label: "Memory",+ items: [+ { to: "/data", label: "Data" },+ { to: "/observations", label: "Observations" },+ { to: "/vectors", label: "Vectors" },+ ],+ },+ {+ label: "Operations",+ items: [+ { to: "/tasks", label: "Tasks" },+ { to: "/ingest", label: "Ingest" },+ ],+ },];+function isNavCurrent(pathname: string, to: string, end?: boolean) {+ if (end) return pathname === to;+ return pathname === to || pathname.startsWith(`${to}/`);+}++function BrainSwitcher({+ id,+ canSwitchBrains,+ brainId,+ brainOptions,+ loadingBrains,+ brainsError,+ onSwitch,+ onRetry,+ compact = false,+}: {+ id: string;+ canSwitchBrains: boolean;+ brainId: string;+ brainOptions: BrainRecord[];+ loadingBrains: boolean;+ brainsError: string | null;+ onSwitch: (id: string) => void;+ onRetry: () => void;+ compact?: boolean;+}) {+ if (compact) {+ return (+ <Toolbar+ aria-label="Brain workspace"+ density="compact"+ variant="plain"+ className="items-center"+ >+ <ToolbarLabel id={`${id}-label`}>Brain</ToolbarLabel>+ {canSwitchBrains ? (+ <ToolbarGroup aria-labelledby={`${id}-label`} className="items-center">+ <ToolbarItem className="flex items-center">+ <Select+ id={id}+ variant="ghost"+ value={brainId}+ onChange={(e) => onSwitch(e.target.value)}+ disabled={loadingBrains}+ className="h-9 w-auto min-w-[8rem] max-w-[14rem]"+ >+ {brainOptions.map((b) => (+ <option key={b.name_key} value={b.name_key}>+ {b.name_key}+ </option>+ ))}+ </Select>+ </ToolbarItem>+ {loadingBrains ? (+ <ToolbarItem>+ <span className="px-1 text-xs text-lumen-muted-foreground">+ Loading…+ </span>+ </ToolbarItem>+ ) : null}+ {brainsError ? (+ <ToolbarItem>+ <Button+ type="button"+ variant="secondary"+ size="small"+ onClick={onRetry}+ >+ Retry+ </Button>+ </ToolbarItem>+ ) : null}+ </ToolbarGroup>+ ) : (+ <ToolbarGroup aria-labelledby={`${id}-label`} className="items-center">+ <ToolbarItem>+ <span className="px-1 text-sm font-medium text-lumen-foreground">+ {brainId}+ </span>+ </ToolbarItem>+ </ToolbarGroup>+ )}+ </Toolbar>+ );+ }++ if (!canSwitchBrains) {+ return (+ <div className="text-sm">+ <div className="text-lumen-muted-foreground">Active brain</div>+ <div className="font-medium text-lumen-foreground">{brainId}</div>+ <div className="mt-1 text-xs text-lumen-muted-foreground">+ Scoped PAT — this brain only+ </div>+ </div>+ );+ }++ return (+ <Field>+ <FieldLabel htmlFor={id}>Brain</FieldLabel>+ <Select+ id={id}+ value={brainId}+ onChange={(e) => onSwitch(e.target.value)}+ disabled={loadingBrains}+ >+ {brainOptions.map((b) => (+ <option key={b.name_key} value={b.name_key}>+ {b.name_key}+ </option>+ ))}+ </Select>+ {loadingBrains && <FieldDescription>Loading brains…</FieldDescription>}+ {brainsError && (+ <Button+ type="button"+ variant="secondary"+ size="small"+ onClick={onRetry}+ className="mt-1"+ >+ Retry brain list+ </Button>+ )}+ </Field>+ );+}++function ConsoleSideNav({+ pathname,+ onNavigate,+}: {+ pathname: string;+ onNavigate?: () => void;+}) {+ const navigate = useNavigate();++ return (+ <SideNav expression="compact" aria-label="Console sections">+ <SideNavList>+ {navGroups.map((group) => (+ <SideNavGroup key={group.label}>+ <SideNavGroupLabel>{group.label}</SideNavGroupLabel>+ <SideNavList>+ {group.items.map((item) => {+ const current = isNavCurrent(pathname, item.to, item.end);+ const href = `/console${item.to === "/" ? "/" : item.to}`;+ return (+ <SideNavItem key={item.to}>+ <SideNavLink+ href={href}+ current={current}+ onClick={(e) => {+ e.preventDefault();+ navigate(item.to);+ onNavigate?.();+ }}+ >+ {item.label}+ </SideNavLink>+ </SideNavItem>+ );+ })}+ </SideNavList>+ </SideNavGroup>+ ))}+ </SideNavList>+ </SideNav>+ );+}++function SessionRail({+ brainId,+ apiBaseUrl,+ canSwitchBrains,+ isSystemPat,+}: {+ brainId: string;+ apiBaseUrl: string;+ canSwitchBrains: boolean;+ isSystemPat: boolean;+}) {+ return (+ <div className="flex flex-col gap-4 p-4">+ <div>+ <h2 className="text-sm font-semibold text-lumen-foreground">+ Session+ </h2>+ <p className="mt-1 text-xs text-lumen-muted-foreground">+ Connection and workspace context for this console.+ </p>+ </div>+ <DescriptionList className="gap-3 text-sm">+ <DescriptionTerm>Brain</DescriptionTerm>+ <DescriptionDetails className="font-mono text-xs">+ {brainId}+ </DescriptionDetails>+ <DescriptionTerm>API</DescriptionTerm>+ <DescriptionDetails className="break-all font-mono text-xs">+ {apiBaseUrl}+ </DescriptionDetails>+ <DescriptionTerm>Credentials</DescriptionTerm>+ <DescriptionDetails>+ {isSystemPat ? "System PAT" : "Per-brain PAT"}+ </DescriptionDetails>+ <DescriptionTerm>Status</DescriptionTerm>+ <DescriptionDetails>+ <StatusIndicator status="success">Connected</StatusIndicator>+ </DescriptionDetails>+ <DescriptionTerm>Switching</DescriptionTerm>+ <DescriptionDetails>+ {canSwitchBrains ? "Enabled" : "Locked to brain"}+ </DescriptionDetails>+ </DescriptionList>+ </div>+ );+}+export default function Layout() {const navigate = useNavigate();+ const location = useLocation();const session = getSession();const [brains, setBrains] = useState<BrainRecord[]>([]);const [brainId, setBrainId] = useState(session?.brainId ?? "default");@@ -29,6 +310,7 @@ export default function Layout() {);const [loadingBrains, setLoadingBrains] = useState(false);const [brainsError, setBrainsError] = useState<string | null>(null);+ const [drawerOpen, setDrawerOpen] = useState(false);const loadBrains = useCallback(async () => {const current = getSession();@@ -78,79 +360,191 @@ export default function Layout() {}const brainOptions = mergeBrainOptions(brains, brainId);+ const pathname = location.pathname;+ const apiBaseUrl = session?.apiBaseUrl ?? "—";+ const isSystemPat = session?.isSystemPat ?? false;++ const headerBrain = (+ <BrainSwitcher+ id="header-brain-select"+ canSwitchBrains={canSwitchBrains}+ brainId={brainId}+ brainOptions={brainOptions}+ loadingBrains={loadingBrains}+ brainsError={brainsError}+ onSwitch={switchBrain}+ onRetry={loadBrains}+ compact+ />+ );++ const drawerBrain = (+ <BrainSwitcher+ id="drawer-brain-select"+ canSwitchBrains={canSwitchBrains}+ brainId={brainId}+ brainOptions={brainOptions}+ loadingBrains={loadingBrains}+ brainsError={brainsError}+ onSwitch={switchBrain}+ onRetry={loadBrains}+ compact+ />+ );return (- <div className="flex min-h-screen">- <aside className="flex w-56 shrink-0 flex-col border-r border-slate-800 bg-slate-950 p-4">- <div className="mb-6">- <div className="text-lg font-semibold text-cyan-400">BrainAPI</div>- <div className="text-xs text-slate-500">Local Console</div>- </div>- {canSwitchBrains ? (- <label className="mb-4 flex flex-col gap-1 text-xs">- <span className="text-slate-500">Brain</span>- <select- value={brainId}- onChange={(e) => switchBrain(e.target.value)}- disabled={loadingBrains}- className="rounded-lg border border-slate-700 bg-slate-900 px-2 py-1.5 text-sm text-slate-200 disabled:opacity-50"- >- {brainOptions.map((b) => (- <option key={b.name_key} value={b.name_key}>- {b.name_key}- </option>- ))}- </select>- {loadingBrains && (- <span className="text-slate-600">Loading brains…</span>- )}- {brainsError && (- <button- type="button"- onClick={loadBrains}- className="text-left text-amber-500 hover:underline"+ <div className="flex min-h-screen flex-col bg-lumen-background">+ <SkipLink href="#console-main">Skip to main content</SkipLink>++ <GlobalHeader sticky className="border-b border-lumen-border">+ <GlobalHeaderInner className="max-w-none">+ <div className="lg:hidden">+ <Drawer open={drawerOpen} onOpenChange={setDrawerOpen}>+ <DrawerTrigger asChild>+ <Button+ size="icon"+ variant="ghost"+ aria-label="Open console navigation"+ >+ <Icon source={MenuIcon} />+ </Button>+ </DrawerTrigger>+ <DrawerContent+ side="left"+ className="w-[min(20rem,calc(100vw-2rem))] gap-0 p-0">- {brainsError} — retry- </button>- )}- </label>- ) : (- <p className="mb-4 text-xs text-slate-600">- Brain: <span className="text-cyan-600">{brainId}</span>- <span className="mt-1 block text-slate-700">- Per-brain PAT — scoped to this brain+ <AppShellSidebarHeader className="flex items-center justify-between gap-3 border-b border-lumen-border p-3">+ <DrawerTitle className="font-semibold">Console</DrawerTitle>+ <DrawerClose asChild>+ <Button+ size="icon"+ variant="ghost"+ aria-label="Close console navigation"+ >+ <Icon source={CloseIcon} />+ </Button>+ </DrawerClose>+ </AppShellSidebarHeader>+ <DrawerDescription className="sr-only">+ Navigate BrainAPI Console sections.+ </DrawerDescription>+ <div className="border-b border-lumen-border p-3">+ {drawerBrain}+ </div>+ <AppShellSidebarContent className="p-0">+ <ConsoleSideNav+ pathname={pathname}+ onNavigate={() => setDrawerOpen(false)}+ />+ </AppShellSidebarContent>+ <AppShellSidebarFooter className="mt-auto border-t border-lumen-border p-3">+ <Button+ type="button"+ variant="secondary"+ isFullWidth+ onClick={logout}+ >+ Log out+ </Button>+ </AppShellSidebarFooter>+ </DrawerContent>+ </Drawer>+ </div>+ <GlobalHeaderBrand href="/console/">+ <span+ aria-hidden="true"+ className="grid size-8 shrink-0 place-items-center bg-lumen-primary text-xs font-bold text-lumen-on-primary"+ >+ B</span>- </p>- )}- <nav className="flex flex-1 flex-col gap-1">- {navItems.map((item) => (- <NavLink- key={item.to}- to={item.to}- end={item.end}- className={({ isActive }) =>- `rounded-lg px-3 py-2 text-sm transition-colors ${- isActive- ? "bg-cyan-950 text-cyan-300"- : "text-slate-400 hover:bg-slate-900 hover:text-slate-200"- }`- }+ <span className="grid leading-tight">+ <span className="font-semibold">BrainAPI</span>+ <span className="text-xs font-normal text-lumen-muted-foreground">+ Operations console+ </span>+ </span>+ </GlobalHeaderBrand>+ <GlobalHeaderActions className="ml-auto flex-nowrap items-center gap-3">+ <div className="hidden md:flex md:items-center">{headerBrain}</div>+ <div className="hidden max-w-[14rem] truncate text-xs text-lumen-muted-foreground xl:block">+ {apiBaseUrl}+ </div>+ <StatusIndicator status="success" className="hidden sm:inline-flex">+ Live+ </StatusIndicator>+ <Button+ type="button"+ size="small"+ variant="secondary"+ onClick={logout}>- {item.label}- </NavLink>- ))}- </nav>- <button- type="button"- onClick={logout}- className="mt-4 rounded-lg border border-slate-700 px-3 py-2 text-sm text-slate-400 hover:border-slate-500 hover:text-slate-200"+ <Icon source={UserIcon} />+ Log out+ </Button>+ </GlobalHeaderActions>+ </GlobalHeaderInner>+ </GlobalHeader>++ <AppShell+ layout="sidebar-rail"+ className="min-h-0 flex-1 overflow-hidden"+ style={{+ minHeight:+ "calc(100vh - var(--lumen-layout-header-height, 3.5rem))",+ }}+ >+ <AppShellSidebar className="hidden min-h-0 overflow-hidden lg:flex">+ <AppShellSidebarHeader className="border-b border-lumen-border font-normal">+ <p className="text-xs font-medium uppercase tracking-wide text-lumen-muted-foreground">+ Workspace+ </p>+ <p className="mt-1 font-mono text-sm text-lumen-foreground">+ {brainId}+ </p>+ </AppShellSidebarHeader>+ <AppShellSidebarContent className="min-h-0 overflow-auto">+ <ConsoleSideNav pathname={pathname} />+ </AppShellSidebarContent>+ <AppShellSidebarFooter className="border-t border-lumen-border text-xs text-lumen-muted-foreground">+ {isSystemPat ? "System credentials" : "Scoped credentials"}+ </AppShellSidebarFooter>+ </AppShellSidebar>++ <AppShellMain+ as="main"+ id="console-main"+ className="flex min-h-0 min-w-0 flex-col overflow-hidden"+ >+ <Outlet />+ <div className="border-t border-lumen-border px-4 pb-4 pt-3 xl:hidden">+ <Disclosure className="border border-lumen-border bg-lumen-surface">+ <DisclosureTrigger className="w-full px-4 py-3 text-left text-sm font-medium">+ Workspace context+ </DisclosureTrigger>+ <DisclosureContent>+ <SessionRail+ brainId={brainId}+ apiBaseUrl={apiBaseUrl}+ canSwitchBrains={canSwitchBrains}+ isSystemPat={isSystemPat}+ />+ </DisclosureContent>+ </Disclosure>+ </div>+ </AppShellMain>++ <AppShellRail+ className="hidden min-h-0 overflow-auto xl:flex"+ aria-label="Workspace context">- Log out- </button>- </aside>- <main className="flex-1 overflow-auto p-6">- <Outlet />- </main>+ <SessionRail+ brainId={brainId}+ apiBaseUrl={apiBaseUrl}+ canSwitchBrains={canSwitchBrains}+ isSystemPat={isSystemPat}+ />+ </AppShellRail>+ </AppShell></div>);}diff --git a/console/src/components/Workbench.tsx b/console/src/components/Workbench.tsxnew file mode 100644index 0000000..039a3e1--- /dev/null+++ b/console/src/components/Workbench.tsx@@ -0,0 +1,206 @@+import type { ReactNode } from "react";+import {+ Button,+ CodeBlock,+ PageHeader,+ PageHeaderActions,+ PageHeaderContent,+ PageHeaderDescription,+ PageHeaderTitle,+} from "lumen-ui-kit";+import { CloseIcon, Icon } from "lumen-ui-kit/icons";++export function InlineField({+ id,+ label,+ children,+ className = "",+}: {+ id: string;+ label: ReactNode;+ children: ReactNode;+ className?: string;+}) {+ return (+ <div+ className={`flex min-w-0 flex-row flex-wrap items-center gap-2 ${className}`.trim()}+ >+ <label+ htmlFor={id}+ className="mb-0 shrink-0 whitespace-nowrap text-sm font-medium text-lumen-muted-foreground"+ >+ {label}+ </label>+ <div className="min-w-0 [&_[data-slot=input]]:h-9 [&_[data-slot=select]]:h-9 [&_input]:h-9 [&_select]:h-9">+ {children}+ </div>+ </div>+ );+}++export function HeaderActions({+ children,+ className = "",+}: {+ children: ReactNode;+ className?: string;+}) {+ return (+ <PageHeaderActions+ className={`flex flex-wrap items-center gap-2 ${className}`.trim()}+ >+ {children}+ </PageHeaderActions>+ );+}++export function FilterBar({+ children,+ className = "",+}: {+ children: ReactNode;+ className?: string;+}) {+ return (+ <div+ className={`flex flex-wrap items-center gap-2 ${className}`.trim()}+ role="group"+ >+ {children}+ </div>+ );+}++export function Workbench({+ title,+ description,+ actions,+ toolbar,+ children,+ inspector,+ flush = false,+}: {+ title: ReactNode;+ description?: ReactNode;+ actions?: ReactNode;+ toolbar?: ReactNode;+ children: ReactNode;+ inspector?: ReactNode;+ flush?: boolean;+}) {+ return (+ <div className="flex min-h-0 flex-1 flex-col">+ <div+ className={+ flush+ ? "border-b border-lumen-border px-4 py-3 sm:px-6"+ : "px-4 pt-6 sm:px-6"+ }+ >+ <PageHeader className="sm:items-center">+ <PageHeaderContent>+ <PageHeaderTitle>{title}</PageHeaderTitle>+ {description ? (+ <PageHeaderDescription>{description}</PageHeaderDescription>+ ) : null}+ </PageHeaderContent>+ {actions ? <HeaderActions>{actions}</HeaderActions> : null}+ </PageHeader>+ {toolbar ? <div className="mt-4">{toolbar}</div> : null}+ </div>++ <div+ className={+ flush+ ? "flex min-h-0 flex-1"+ : "mt-4 flex min-h-0 flex-1 gap-0 px-4 pb-6 sm:px-6"+ }+ >+ <div+ className={+ flush+ ? "min-h-0 min-w-0 flex-1 overflow-auto"+ : "min-h-0 min-w-0 flex-1 overflow-auto border border-lumen-border bg-lumen-surface"+ }+ >+ {children}+ </div>+ {inspector}+ </div>+ </div>+ );+}++export function DetailInspector({+ title,+ subtitle,+ onClose,+ children,+}: {+ title: ReactNode;+ subtitle?: ReactNode;+ onClose: () => void;+ children: ReactNode;+}) {+ return (+ <aside+ className="flex w-full shrink-0 flex-col border-t border-lumen-border bg-lumen-surface xl:w-[var(--lumen-layout-rail-width)] xl:border-l xl:border-t-0"+ aria-label="Record detail"+ >+ <div className="flex items-center justify-between gap-3 border-b border-lumen-border px-4 py-3">+ <div className="min-w-0">+ <h2 className="truncate text-sm font-semibold text-lumen-foreground">+ {title}+ </h2>+ {subtitle ? (+ <p className="mt-0.5 truncate font-mono text-[11px] text-lumen-muted-foreground">+ {subtitle}+ </p>+ ) : null}+ </div>+ <Button+ type="button"+ size="icon"+ variant="ghost"+ aria-label="Close detail panel"+ onClick={onClose}+ >+ <Icon source={CloseIcon} />+ </Button>+ </div>+ <div className="min-h-0 flex-1 overflow-auto p-4">{children}</div>+ </aside>+ );+}++export function JsonInspector({+ title,+ subtitle,+ value,+ onClose,+}: {+ title: ReactNode;+ subtitle?: ReactNode;+ value: unknown;+ onClose: () => void;+}) {+ return (+ <DetailInspector title={title} subtitle={subtitle} onClose={onClose}>+ <CodeBlock className="text-[11px] leading-relaxed">+ {JSON.stringify(value, null, 2)}+ </CodeBlock>+ </DetailInspector>+ );+}++export function PageFrame({+ children,+ className = "",+}: {+ children: ReactNode;+ className?: string;+}) {+ return (+ <div className={`px-4 py-6 sm:px-6 ${className}`.trim()}>{children}</div>+ );+}diff --git a/console/src/index.css b/console/src/index.cssindex 2efda8c..2a250f2 100644--- a/console/src/index.css+++ b/console/src/index.css@@ -1,34 +1,35 @@@import "tailwindcss";+@import "lumen-ui-kit/styles.css";+@import "lumen-ui-kit/graph/styles.css";+@source "../node_modules/lumen-ui-kit/dist";-body {+html,+body,+#root {+ height: 100%;margin: 0;- min-height: 100vh;- font-family:- ui-sans-serif,- system-ui,- -apple-system,- BlinkMacSystemFont,- "Segoe UI",- sans-serif;- background: #0f1419;- color: #e7ecf3;}-#root {+body {min-height: 100vh;+ background-color: var(--lumen-color-background);+ color: var(--lumen-color-foreground);+ font-family: var(--font-lumen-sans);+ font-size: 1rem;+ font-weight: 400;+ line-height: 1.5;+ -webkit-font-smoothing: antialiased;+ -moz-osx-font-smoothing: grayscale;+ text-rendering: optimizeLegibility;}-.vis-network:focus {- outline: none;-}--div.vis-navigation div.vis-button {- background-color: #1e293b;- border: 1px solid #334155;- color: #94a3b8;+[data-slot="app-shell"] {+ height: calc(100vh - var(--lumen-layout-header-height, 3.5rem));}-div.vis-navigation div.vis-button:hover {- background-color: #334155;- color: #e2e8f0;+[data-slot="app-shell-main"] {+ display: flex;+ min-height: 0;+ flex-direction: column;+ overflow: hidden;}diff --git a/console/src/lib/graphColors.ts b/console/src/lib/graphColors.tsdeleted file mode 100644index 04ed711..0000000--- a/console/src/lib/graphColors.ts+++ /dev/null@@ -1,27 +0,0 @@-const PALETTE = [- "#68BDF6",- "#6DCE9E",- "#FF756E",- "#DE9BF9",- "#FB95AF",- "#FFC766",- "#8DCC93",- "#4C8EDA",- "#F16667",- "#FFB174",- "#A4DD00",- "#D9C8AE",-];--export function colorForLabel(label: string): string {- let hash = 0;- for (let i = 0; i < label.length; i += 1) {- hash = label.charCodeAt(i) + ((hash << 5) - hash);- }- return PALETTE[Math.abs(hash) % PALETTE.length];-}--export function primaryLabel(labels: string[] | undefined): string {- if (!labels?.length) return "Entity";- return labels[0];-}diff --git a/console/src/main.tsx b/console/src/main.tsxindex 9162abf..7e3500d 100644--- a/console/src/main.tsx+++ b/console/src/main.tsx@@ -1,6 +1,10 @@import { StrictMode } from "react";import { createRoot } from "react-dom/client";import { BrowserRouter } from "react-router-dom";+import "@fontsource/inter/400.css";+import "@fontsource/inter/500.css";+import "@fontsource/inter/600.css";+import "@fontsource/inter/700.css";import App from "./App";import "./index.css";diff --git a/console/src/pages/DataPage.tsx b/console/src/pages/DataPage.tsxindex 9a63305..de92446 100644--- a/console/src/pages/DataPage.tsx+++ b/console/src/pages/DataPage.tsx@@ -1,5 +1,26 @@import { useEffect, useState } from "react";+import {+ Alert,+ Button,+ SearchInput,+ Select,+ Table,+ TableBody,+ TableCell,+ TableEmptyState,+ TableHead,+ TableHeader,+ TablePagination,+ TableRow,+ TableToolbar,+ TableToolbarContent,+ TableToolbarFilters,+ Tabs,+ TabsList,+ TabsTrigger,+} from "lumen-ui-kit";import { apiFetch } from "../lib/api";+import { JsonInspector, InlineField, Workbench } from "../components/Workbench";type Tab = "chunks" | "structured";@@ -74,138 +95,147 @@ export default function DataPage() {};}, [tab, query, skip, limit, selectedType]);+ const start = total === 0 ? 0 : skip + 1;+ const end = Math.min(skip + limit, total);+ const selectedId = selected+ ? String(selected.id ?? selected.resource_id ?? "Record")+ : "";+return (- <div>- <h1 className="mb-4 text-2xl font-semibold">Data</h1>- <div className="mb-4 flex gap-2">- {(["chunks", "structured"] as Tab[]).map((t) => (- <button- key={t}- type="button"- onClick={() => {- setTab(t);+ <Workbench+ flush+ title="Data"+ description={`${total.toLocaleString()} records in the active brain memory store`}+ toolbar={+ <div className="flex flex-col gap-3">+ <Tabs+ value={tab}+ onValueChange={(value) => {+ setTab(value as Tab);setSkip(0);setSelected(null);}}- className={`rounded-lg px-4 py-2 text-sm ${- tab === t- ? "bg-cyan-900 text-cyan-300"- : "bg-slate-900 text-slate-400 hover:text-slate-200"- }`}- >- {t === "chunks" ? "Text chunks" : "Structured data"}- </button>- ))}- </div>-- <div className="mb-4 flex flex-wrap gap-2">- <input- type="search"- placeholder="Search…"- value={query}- onChange={(e) => {- setQuery(e.target.value);- setSkip(0);- }}- className="rounded-lg border border-slate-700 bg-slate-900 px-3 py-2 text-sm"- />- {tab === "structured" && (- <select- value={selectedType}- onChange={(e) => {- setSelectedType(e.target.value);- setSkip(0);- }}- className="rounded-lg border border-slate-700 bg-slate-900 px-3 py-2 text-sm">- <option value="">All types</option>- {types.map((t) => (- <option key={t} value={t}>- {t}- </option>- ))}- </select>- )}- </div>-- {error && <p className="mb-2 text-sm text-red-400">{error}</p>}-- <div className="flex gap-4">- <div className="flex-1 overflow-hidden rounded-xl border border-slate-800">- <table className="w-full text-left text-sm">- <thead className="border-b border-slate-800 bg-slate-950 text-slate-500">- <tr>- <th className="px-4 py-2">ID</th>- <th className="px-4 py-2">Preview</th>- </tr>- </thead>- <tbody>- {loading ? (- <tr>- <td colSpan={2} className="px-4 py-8 text-center text-slate-500">- Loading…- </td>- </tr>- ) : items.length === 0 ? (- <tr>- <td colSpan={2} className="px-4 py-8 text-center text-slate-500">- No results- </td>- </tr>- ) : (- items.map((item) => {- const id = String(item.id ?? item.resource_id ?? "—");- const preview =- tab === "chunks"- ? String(item.text ?? item.content ?? "").slice(0, 120)- : JSON.stringify(item.json_data ?? item).slice(0, 120);- return (- <tr- key={id}- onClick={() => setSelected(item)}- className="cursor-pointer border-b border-slate-900 hover:bg-slate-900/50"- >- <td className="max-w-[140px] truncate px-4 py-2 font-mono text-xs text-cyan-600">- {id}- </td>- <td className="px-4 py-2 text-slate-400">{preview}</td>- </tr>- );- })+ <TabsList>+ <TabsTrigger value="chunks">Text chunks</TabsTrigger>+ <TabsTrigger value="structured">Structured data</TabsTrigger>+ </TabsList>+ </Tabs>+ <TableToolbar>+ <TableToolbarFilters className="sm:items-center">+ <SearchInput+ aria-label="Search data"+ placeholder="Search records…"+ value={query}+ onChange={(e) => {+ setQuery(e.target.value);+ setSkip(0);+ }}+ className="h-9 min-w-[16rem] flex-1"+ />+ {tab === "structured" && (+ <InlineField id="data-type-filter" label="Type">+ <Select+ id="data-type-filter"+ value={selectedType}+ onChange={(e) => {+ setSelectedType(e.target.value);+ setSkip(0);+ }}+ >+ <option value="">All types</option>+ {types.map((t) => (+ <option key={t} value={t}>+ {t}+ </option>+ ))}+ </Select>+ </InlineField>)}- </tbody>- </table>- <div className="flex items-center justify-between border-t border-slate-800 px-4 py-2 text-sm text-slate-500">- <span>- {skip + 1}–{Math.min(skip + limit, total)} of {total}- </span>- <div className="flex gap-2">- <button- type="button"- disabled={skip === 0}- onClick={() => setSkip(Math.max(0, skip - limit))}- className="rounded border border-slate-700 px-2 py-1 disabled:opacity-40"- >- Prev- </button>- <button- type="button"- disabled={skip + limit >= total}- onClick={() => setSkip(skip + limit)}- className="rounded border border-slate-700 px-2 py-1 disabled:opacity-40"- >- Next- </button>- </div>- </div>+ </TableToolbarFilters>+ <TableToolbarContent />+ </TableToolbar>+ {error && (+ <Alert variant="danger" title="Failed to load">+ {error}+ </Alert>+ )}</div>-- {selected && (- <pre className="w-96 shrink-0 overflow-auto rounded-xl border border-slate-800 bg-slate-950 p-4 text-xs text-slate-400">- {JSON.stringify(selected, null, 2)}- </pre>- )}- </div>- </div>+ }+ inspector={+ selected ? (+ <JsonInspector+ title="Selected record"+ subtitle={selectedId}+ value={selected}+ onClose={() => setSelected(null)}+ />+ ) : undefined+ }+ >+ <Table containerProps={{ "aria-label": "Data records" }}>+ <TableHeader>+ <TableRow>+ <TableHead>ID</TableHead>+ <TableHead>Preview</TableHead>+ </TableRow>+ </TableHeader>+ <TableBody>+ {loading ? (+ <TableEmptyState colSpan={2} title="Loading…" />+ ) : items.length === 0 ? (+ <TableEmptyState colSpan={2} title="No results" />+ ) : (+ items.map((item, index) => {+ const id = String(item.id ?? item.resource_id ?? `row-${index}`);+ const preview =+ tab === "chunks"+ ? String(item.text ?? item.content ?? "").slice(0, 160)+ : JSON.stringify(item.json_data ?? item).slice(0, 160);+ const isSelected = selected === item;+ return (+ <TableRow+ key={id}+ onClick={() => setSelected(item)}+ aria-selected={isSelected}+ className={+ isSelected+ ? "cursor-pointer bg-lumen-muted"+ : "cursor-pointer"+ }+ >+ <TableCell className="max-w-[180px] truncate font-mono text-xs">+ {id}+ </TableCell>+ <TableCell className="text-lumen-muted-foreground">+ {preview}+ </TableCell>+ </TableRow>+ );+ })+ )}+ </TableBody>+ </Table>+ <TablePagination start={start} end={end} total={total}>+ <Button+ type="button"+ size="small"+ variant="secondary"+ disabled={skip === 0}+ onClick={() => setSkip(Math.max(0, skip - limit))}+ >+ Prev+ </Button>+ <Button+ type="button"+ size="small"+ variant="secondary"+ disabled={skip + limit >= total}+ onClick={() => setSkip(skip + limit)}+ >+ Next+ </Button>+ </TablePagination>+ </Workbench>);}diff --git a/console/src/pages/GraphPage.tsx b/console/src/pages/GraphPage.tsxindex ddac1b7..504a688 100644--- a/console/src/pages/GraphPage.tsx+++ b/console/src/pages/GraphPage.tsx@@ -1,30 +1,122 @@import { useCallback, useEffect, useMemo, useState } from "react";-import GraphCanvas from "../components/GraphCanvas";+import {+ Alert,+ Button,+ CodeBlock,+ NumberInput,+ Tag,+ Toolbar,+ ToolbarGroup,+ ToolbarItem,+ ToolbarLabel,+ ToolbarSeparator,+ ToolbarSpacer,+} from "lumen-ui-kit";+import {+ GraphExplorer,+ GraphInspector,+ getGraphTone,+ type GraphFilterState,+ type GraphNode,+ type GraphPropertyValue,+ type GraphRelationship as LumenRelationship,+ type GraphSelection,+} from "lumen-ui-kit/graph";+import { RestartIcon, Icon } from "lumen-ui-kit/icons";import { apiFetch, getSession } from "../lib/api";-import { colorForLabel, primaryLabel } from "../lib/graphColors";import {filterRelationshipsByEntities,filterRelationshipsByLabel,filterRelationshipsByQuery,mergeGraphData,normalizeTriples,- relationshipsToEdges,type GraphEntity,type GraphRelationship,} from "../lib/graphModel";+import { Workbench } from "../components/Workbench";++const LOAD_PRESETS = [100, 250, 500, 1000, 2000] as const;+const MIN_LIMIT = 1;+const MAX_LIMIT = 5000;++function clampLimit(value: number): number {+ if (!Number.isFinite(value)) return 250;+ return Math.min(MAX_LIMIT, Math.max(MIN_LIMIT, Math.round(value)));+}interface NeighborEntry {neighbor: GraphEntity;relationship: { name: string; uuid?: string };}-interface GraphFilters {- label: string;- query: string;- limit: number;+const EMPTY_FILTERS: GraphFilterState = {+ query: "",+ nodeLabels: [],+ relationshipTypes: [],+};++function toPropertyValue(value: unknown): GraphPropertyValue | undefined {+ if (+ value === null ||+ typeof value === "string" ||+ typeof value === "number" ||+ typeof value === "boolean"+ ) {+ return value;+ }+ if (Array.isArray(value)) {+ const scalars = value.filter(+ (item): item is string | number | boolean | null =>+ item === null ||+ typeof item === "string" ||+ typeof item === "number" ||+ typeof item === "boolean",+ );+ return scalars;+ }+ return JSON.stringify(value);+}++function toLumenProperties(+ properties?: Record<string, unknown>,+): Record<string, GraphPropertyValue> | undefined {+ if (!properties) return undefined;+ const next: Record<string, GraphPropertyValue> = {};+ for (const [key, value] of Object.entries(properties)) {+ const mapped = toPropertyValue(value);+ if (mapped !== undefined) next[key] = mapped;+ }+ return next;+}++function entityToNode(entity: GraphEntity): GraphNode {+ const labels = entity.labels?.length ? entity.labels : ["Entity"];+ return {+ id: entity.uuid,+ label: entity.name,+ labels,+ description: entity.description,+ properties: toLumenProperties(entity.properties),+ tone: getGraphTone(labels[0] ?? "Entity"),+ };}-const DEFAULT_FILTERS: GraphFilters = { label: "", query: "", limit: 250 };+function relationshipToLumen(+ rel: GraphRelationship,+ index: number,+): LumenRelationship {+ const type = rel.predicate.name || "RELATED";+ return {+ id:+ rel.predicate.uuid ??+ `${rel.subject.uuid}-${type}-${rel.object.uuid}-${index}`,+ source: rel.subject.uuid,+ target: rel.object.uuid,+ type,+ label: type,+ directed: true,+ };+}function mergeEntities(current: GraphEntity[],@@ -54,105 +146,84 @@ function mergeRelationships(function applyGraphFilters(rels: GraphRelationship[],entities: GraphEntity[],- filters: GraphFilters,+ label: string,+ query: string,): GraphRelationship[] {- const hasFilters = !!(filters.label || filters.query);+ const hasFilters = !!(label || query);if (!hasFilters) return rels;- if (filters.label && filters.query) {+ if (label && query) {return filterRelationshipsByQuery(- filterRelationshipsByLabel(rels, filters.label),- filters.query,+ filterRelationshipsByLabel(rels, label),+ query,);}- if (filters.label) {- return filterRelationshipsByLabel(rels, filters.label);+ if (label) {+ return filterRelationshipsByLabel(rels, label);}if (entities.length > 0) {return filterRelationshipsByEntities(rels, entities);}- return filterRelationshipsByQuery(rels, filters.query);+ return filterRelationshipsByQuery(rels, query);+}++function asEntityOrFallback(+ value: GraphEntity | null | undefined,+ fallback: GraphEntity | null,+): GraphEntity {+ if (value?.uuid) return value;+ if (fallback) return fallback;+ throw new Error("missing entity");}export default function GraphPage() {const [entities, setEntities] = useState<GraphEntity[]>([]);const [relationships, setRelationships] = useState<GraphRelationship[]>([]);- const [labels, setLabels] = useState<string[]>([]);- const [draftLabel, setDraftLabel] = useState("");- const [draftQuery, setDraftQuery] = useState("");- const [draftLimit, setDraftLimit] = useState(DEFAULT_FILTERS.limit);- const [selectedNode, setSelectedNode] = useState<GraphEntity | null>(null);+ const [limit, setLimit] = useState(250);+ const [draftLimit, setDraftLimit] = useState(250);const [loading, setLoading] = useState(true);const [expanding, setExpanding] = useState(false);const [error, setError] = useState<string | null>(null);- const [physics, setPhysics] = useState(true);- const [activeFilters, setActiveFilters] = useState<GraphFilters>(DEFAULT_FILTERS);+ const [physicsEnabled, setPhysicsEnabled] = useState(true);+ const [filterState, setFilterState] =+ useState<GraphFilterState>(EMPTY_FILTERS);+ const [selection, setSelection] = useState<GraphSelection>(null);const activeBrainId = getSession()?.brainId ?? "default";- const loadGraph = useCallback(async (filters: GraphFilters) => {+ const loadGraph = useCallback(async (nextLimit: number) => {+ const applied = clampLimit(nextLimit);setLoading(true);setError(null);- setSelectedNode(null);- setActiveFilters(filters);-- const hasFilters = !!(filters.label || filters.query);+ setSelection(null);try {const relParams = new URLSearchParams({- limit: String(filters.limit),+ limit: String(applied),skip: "0",});- if (filters.query) relParams.set("query_text", filters.query);- const entityParams = new URLSearchParams({- limit: String(filters.limit),- skip: "0",- });- if (filters.label) entityParams.set("node_labels", filters.label);- if (filters.query) entityParams.set("query_text", filters.query);-- const [relRes, labelRes, entityRes] = await Promise.all([+ const [relRes] = await Promise.all([apiFetch<{ relationships: unknown[]; total?: number }>(`/retrieve/relationships?${relParams}`,),- apiFetch<string[]>("/meta/entity-labels"),- hasFilters- ? apiFetch<{ entities: GraphEntity[]; total?: number }>(- `/retrieve/entities?${entityParams}`,- )- : Promise.resolve({ entities: [] as GraphEntity[], total: 0 }),]);const normalizedRels = normalizeTriples(relRes.relationships ?? []);- const entityList = entityRes.entities ?? [];-- let filteredRels = applyGraphFilters(- normalizedRels,- entityList,- filters,- );-- const merged = mergeGraphData(entityList, filteredRels);-- if (!hasFilters) {- if (merged.entities.length === 0) {- const fallback = await apiFetch<{ entities: GraphEntity[] }>(- `/retrieve/entities?limit=${filters.limit}&skip=0`,- );- setEntities(- mergeGraphData(fallback.entities ?? [], normalizedRels).entities,- );- setRelationships(normalizedRels);- } else {- setEntities(merged.entities);- setRelationships(merged.relationships);- }+ const filteredRels = applyGraphFilters(normalizedRels, [], "", "");+ const merged = mergeGraphData([], filteredRels);++ if (merged.entities.length === 0) {+ const fallback = await apiFetch<{ entities: GraphEntity[] }>(+ `/retrieve/entities?limit=${applied}&skip=0`,+ );+ setEntities(+ mergeGraphData(fallback.entities ?? [], normalizedRels).entities,+ );+ setRelationships(normalizedRels);} else {setEntities(merged.entities);setRelationships(merged.relationships);}-- setLabels(Array.isArray(labelRes) ? labelRes : []);} catch (err) {setError(err instanceof Error ? err.message : "Failed to load graph");} finally {@@ -161,45 +232,27 @@ export default function GraphPage() {}, []);useEffect(() => {- loadGraph(DEFAULT_FILTERS);+ loadGraph(limit);}, [loadGraph]);- function runQuery() {- loadGraph({- label: draftLabel,- query: draftQuery.trim(),- limit: draftLimit,- });- }-- function clearFilters() {- setDraftLabel("");- setDraftQuery("");- setDraftLimit(DEFAULT_FILTERS.limit);- loadGraph(DEFAULT_FILTERS);+ function applyLoadLimit(next?: number) {+ const applied = clampLimit(next ?? draftLimit);+ setDraftLimit(applied);+ setLimit(applied);+ void loadGraph(applied);}- const nodeIds = useMemo(- () => new Set(entities.map((e) => e.uuid)),- [entities],- );-- const edges = useMemo(- () =>- relationshipsToEdges(relationships).filter(- (e) => nodeIds.has(e.from) && nodeIds.has(e.to),- ),- [relationships, nodeIds],+ const nodes = useMemo(() => entities.map(entityToNode), [entities]);+ const lumenRelationships = useMemo(+ () => relationships.map(relationshipToLumen),+ [relationships],);- const legendLabels = useMemo(() => {- const set = new Set<string>();- for (const e of entities) set.add(primaryLabel(e.labels));- return [...set].sort();+ const entityById = useMemo(() => {+ const map = new Map(entities.map((entity) => [entity.uuid, entity]));+ return map;}, [entities]);- const hasActiveFilters = !!(activeFilters.label || activeFilters.query);-async function expandNode(center: GraphEntity) {setExpanding(true);try {@@ -231,7 +284,7 @@ export default function GraphPage() {setEntities((prev) => mergeEntities(prev, newEntities));setRelationships((prev) => mergeRelationships(prev, newRels));- setSelectedNode(centerNode);+ setSelection({ kind: "node", id: centerNode.uuid });} catch {/* ignore */} finally {@@ -240,205 +293,174 @@ export default function GraphPage() {}return (- <div className="flex h-[calc(100vh-3rem)] flex-col">- <div className="mb-3 flex flex-wrap items-end gap-2">- <div className="mr-2">- <h1 className="text-2xl font-semibold">Graph Explorer</h1>- <p className="text-xs text-slate-500">- Brain <span className="text-cyan-600">{activeBrainId}</span> ·{" "}- {entities.length} nodes · {edges.length} edges · {relationships.length}{" "}- relationships loaded · double-click to expand- </p>- </div>- <select- value={draftLabel}- onChange={(e) => setDraftLabel(e.target.value)}- className="rounded-lg border border-slate-700 bg-slate-900 px-3 py-1.5 text-sm"- >- <option value="">All labels</option>- {labels.map((l) => (- <option key={l} value={l}>- {l}- </option>- ))}- </select>- <input- type="search"- placeholder="Search nodes…"- value={draftQuery}- onChange={(e) => setDraftQuery(e.target.value)}- onKeyDown={(e) => e.key === "Enter" && runQuery()}- className="min-w-[180px] rounded-lg border border-slate-700 bg-slate-900 px-3 py-1.5 text-sm"- />- <select- value={draftLimit}- onChange={(e) => setDraftLimit(Number(e.target.value))}- className="rounded-lg border border-slate-700 bg-slate-900 px-3 py-1.5 text-sm"- >- {[100, 250, 500].map((n) => (- <option key={n} value={n}>- Limit {n}- </option>- ))}- </select>- <button- type="button"- onClick={runQuery}- disabled={loading}- className="rounded-lg bg-cyan-800 px-3 py-1.5 text-sm hover:bg-cyan-700 disabled:opacity-50"- >- {loading ? "Running…" : "Run"}- </button>- {hasActiveFilters && (- <button- type="button"- onClick={clearFilters}- disabled={loading}- className="rounded-lg border border-slate-700 px-3 py-1.5 text-sm text-slate-300 hover:border-slate-500 disabled:opacity-50"+ <Workbench+ flush+ title="Graph"+ description={`Brain ${activeBrainId} · ${nodes.length} nodes · ${lumenRelationships.length} relationships · limit ${limit}`}+ toolbar={+ <div className="flex flex-col gap-3">+ <Toolbar+ aria-label="Graph load controls"+ density="compact"+ className="items-center">- Clear- </button>- )}- <button- type="button"- onClick={() => setPhysics((p) => !p)}- className={`rounded-lg border px-3 py-1.5 text-sm ${- physics- ? "border-cyan-700 text-cyan-400"- : "border-slate-700 text-slate-400"- }`}- >- Physics {physics ? "on" : "off"}- </button>- </div>-- {error && <p className="mb-2 text-sm text-red-400">{error}</p>}-- <div className="relative flex min-h-0 flex-1 gap-3">- <div className="relative min-w-0 flex-1 overflow-hidden rounded-xl border border-slate-800">- {loading ? (- <div className="flex h-full items-center justify-center bg-[#1a1d23] text-slate-500">- Loading graph…- </div>- ) : entities.length === 0 ? (- <div className="flex h-full flex-col items-center justify-center gap-2 bg-[#1a1d23] px-6 text-center text-slate-500">- <p>- {hasActiveFilters- ? "No matches — try a different label or search term"- : "No nodes in this brain"}- </p>- <p className="max-w-md text-xs text-slate-600">- Active brain:{" "}- <span className="text-cyan-700">{activeBrainId}</span>- {activeBrainId === "default"- ? ". System PAT defaults to default — switch to locomoconv26 (or your ingest brain) in the sidebar."- : ". If you expected data here, confirm ingest used this same brain id."}- </p>- </div>- ) : (- <GraphCanvas- entities={entities}- edges={edges}- selectedId={selectedNode?.uuid ?? null}- physics={physics}- onSelect={setSelectedNode}- onExpand={expandNode}- />- )}-- {legendLabels.length > 0 && !loading && (- <div className="pointer-events-none absolute bottom-3 left-3 max-h-40 overflow-auto rounded-lg border border-slate-700/80 bg-slate-950/90 p-2 text-xs shadow-lg">- <div className="mb-1 font-medium text-slate-400">Labels</div>- {legendLabels.map((label) => (- <div key={label} className="flex items-center gap-2 py-0.5">- <span- className="inline-block h-2.5 w-2.5 rounded-full"- style={{ backgroundColor: colorForLabel(label) }}- />- <span className="text-slate-300">{label}</span>- </div>+ <ToolbarLabel id="graph-load-limit-label">Load limit</ToolbarLabel>+ <ToolbarGroup+ aria-labelledby="graph-load-limit-label"+ variant="segmented"+ >+ {LOAD_PRESETS.map((preset) => (+ <ToolbarItem key={preset}>+ <Button+ type="button"+ size="small"+ variant="secondary"+ aria-pressed={draftLimit === preset}+ onClick={() => setDraftLimit(preset)}+ >+ {preset.toLocaleString()}+ </Button>+ </ToolbarItem>))}- </div>- )}+ </ToolbarGroup>+ <ToolbarSeparator />+ <ToolbarGroup aria-label="Custom load limit" className="items-center">+ <ToolbarItem className="flex items-center">+ <NumberInput+ id="graph-custom-limit"+ aria-label="Custom load limit"+ min={MIN_LIMIT}+ max={MAX_LIMIT}+ step={50}+ value={draftLimit}+ onChange={(e) =>+ setDraftLimit(clampLimit(Number(e.target.value)))+ }+ className="h-9 w-24"+ />+ </ToolbarItem>+ </ToolbarGroup>+ <ToolbarSpacer />+ <ToolbarGroup aria-label="Load actions" className="items-center">+ <ToolbarItem>+ <Button+ type="button"+ size="small"+ variant="secondary"+ onClick={() => applyLoadLimit()}+ disabled={loading}+ >+ Apply+ </Button>+ </ToolbarItem>+ <ToolbarItem>+ <Button+ type="button"+ size="small"+ onClick={() => applyLoadLimit(limit)}+ isPending={loading}+ pendingLabel="Loading…"+ >+ <Icon source={RestartIcon} />+ Reload+ </Button>+ </ToolbarItem>+ </ToolbarGroup>+ </Toolbar>+ {error ? (+ <Alert variant="danger" title="Failed to load graph">+ {error}+ </Alert>+ ) : null}</div>-- <div className="w-80 shrink-0 overflow-auto rounded-xl border border-slate-800 bg-slate-950 p-4">- {selectedNode ? (- <>- <div className="mb-3 flex items-start justify-between gap-2">- <div>- <h2 className="text-lg font-semibold text-cyan-400">- {selectedNode.name}- </h2>- <p className="mt-0.5 font-mono text-[10px] text-slate-600">- {selectedNode.uuid}- </p>+ }+ >+ {loading ? (+ <div className="flex h-full min-h-[28rem] items-center justify-center text-lumen-muted-foreground">+ Loading graph…+ </div>+ ) : nodes.length === 0 ? (+ <div className="p-6">+ <Alert title="No nodes in this brain">+ Active brain: {activeBrainId}+ {activeBrainId === "default"+ ? ". System PAT defaults to default — switch to your ingest brain in the header."+ : ". If you expected data here, confirm ingest used this same brain id."}+ </Alert>+ </div>+ ) : (+ <GraphExplorer+ ariaLabel="Knowledge graph explorer"+ className="h-full min-h-[32rem]"+ nodes={nodes}+ relationships={lumenRelationships}+ filterState={filterState}+ onFilterStateChange={setFilterState}+ selection={selection}+ onSelectionChange={setSelection}+ physicsEnabled={physicsEnabled}+ onPhysicsEnabledChange={setPhysicsEnabled}+ renderInspector={(context) => {+ if (context.selection.kind !== "node") {+ return <GraphInspector {...context} onClose={context.close} />;+ }+ const entity = entityById.get(context.selection.id);+ const node = context.nodes.find((n) => n.id === context.selection.id);+ return (+ <aside className="flex h-full flex-col gap-3 overflow-auto border-l border-lumen-border p-4">+ <div className="flex items-start justify-between gap-2">+ <div>+ <h2 className="text-lg font-semibold text-lumen-foreground">+ {node?.label ?? entity?.name ?? context.selection.id}+ </h2>+ <p className="mt-0.5 font-mono text-[10px] text-lumen-muted-foreground">+ {context.selection.id}+ </p>+ </div>+ <Button+ type="button"+ size="small"+ variant="ghost"+ onClick={context.close}+ >+ Close+ </Button></div>- <span- className="mt-1 h-4 w-4 shrink-0 rounded-full"- style={{- backgroundColor: colorForLabel(- primaryLabel(selectedNode.labels),- ),- }}- />- </div>- {selectedNode.labels?.length > 0 && (- <div className="mb-3 flex flex-wrap gap-1">- {selectedNode.labels.map((l) => (- <span- key={l}- className="rounded-full px-2 py-0.5 text-xs"- style={{- backgroundColor: `${colorForLabel(l)}33`,- color: colorForLabel(l),- }}- >- {l}- </span>- ))}+ {node?.labels?.length ? (+ <div className="flex flex-wrap gap-1">+ {node.labels.map((label) => (+ <Tag key={label}>{label}</Tag>+ ))}+ </div>+ ) : null}+ {node?.description ? (+ <p className="text-sm text-lumen-muted-foreground">+ {node.description}+ </p>+ ) : null}+ {entity ? (+ <Button+ type="button"+ variant="secondary"+ isFullWidth+ isPending={expanding}+ pendingLabel="Expanding…"+ onClick={() => expandNode(entity)}+ >+ Expand neighbors+ </Button>+ ) : null}+ <div className="text-xs font-medium uppercase tracking-wide text-lumen-muted-foreground">+ Properties</div>- )}- {selectedNode.description && (- <p className="mb-3 text-sm leading-relaxed text-slate-400">- {selectedNode.description}- </p>- )}- <button- type="button"- disabled={expanding}- onClick={() => expandNode(selectedNode)}- className="mb-3 w-full rounded-lg border border-slate-600 py-2 text-sm text-slate-200 hover:border-cyan-600 hover:text-cyan-300 disabled:opacity-50"- >- {expanding ? "Expanding…" : "Expand neighbors"}- </button>- <div className="text-xs font-medium uppercase tracking-wide text-slate-500">- Properties- </div>- <pre className="mt-2 overflow-auto rounded-lg bg-slate-900 p-3 text-xs text-slate-400">- {JSON.stringify(selectedNode.properties ?? {}, null, 2)}- </pre>- </>- ) : (- <div className="text-sm text-slate-500">- <p className="mb-2 font-medium text-slate-400">Node details</p>- <p>Click a node to inspect it.</p>- <p className="mt-2">- Double-click to expand its neighborhood.- </p>- </div>- )}- </div>- </div>- </div>+ <CodeBlock>+ {JSON.stringify(node?.properties ?? {}, null, 2)}+ </CodeBlock>+ </aside>+ );+ }}+ />+ )}+ </Workbench>);}--function asEntityOrFallback(- value: GraphEntity | null | undefined,- fallback: GraphEntity | null,-): GraphEntity {- if (value?.uuid) return value;- if (fallback) return fallback;- throw new Error("missing entity");-}diff --git a/console/src/pages/IngestPage.tsx b/console/src/pages/IngestPage.tsxindex 0167aa9..5ba998f 100644--- a/console/src/pages/IngestPage.tsx+++ b/console/src/pages/IngestPage.tsx@@ -1,6 +1,31 @@import { useEffect, useState } from "react";-import { Link } from "react-router-dom";-import { apiFetch, fetchBrainsList, getSession, type BrainRecord } from "../lib/api";+import { Link as RouterLink } from "react-router-dom";+import {+ Alert,+ Button,+ ClipboardCopy,+ Field,+ FieldLabel,+ List,+ ListItem,+ SectionBand,+ SectionBandContent,+ SectionBandDescription,+ SectionBandEyebrow,+ SectionBandHeader,+ SectionBandTitle,+ SectionStack,+ Stack,+ Textarea,+ TextField,+} from "lumen-ui-kit";+import {+ apiFetch,+ fetchBrainsList,+ getSession,+ type BrainRecord,+} from "../lib/api";+import { PageFrame } from "../components/Workbench";export default function IngestPage() {const session = getSession();@@ -35,12 +60,15 @@ export default function IngestPage() {setIngestResult(null);setTaskId(null);try {- const res = await apiFetch<{ message: string; task_id: string }>("/ingest/", {- method: "POST",- body: JSON.stringify({- data: { data_type: "text", text_data: text },- }),- });+ const res = await apiFetch<{ message: string; task_id: string }>(+ "/ingest/",+ {+ method: "POST",+ body: JSON.stringify({+ data: { data_type: "text", text_data: text },+ }),+ },+ );setIngestResult(res.message);setTaskId(res.task_id);setText("");@@ -65,110 +93,163 @@ export default function IngestPage() {setBrains((prev) => [...prev, res]);setNewBrainId("");} catch (err) {- setBrainsError(err instanceof Error ? err.message : "Failed to create brain");+ setBrainsError(+ err instanceof Error ? err.message : "Failed to create brain",+ );} finally {setCreating(false);}}return (- <div className="max-w-2xl space-y-8">- <div>- <h1 className="mb-1 text-2xl font-semibold">Ingest</h1>- <p className="text-sm text-slate-500">- Ingesting into brain{" "}- <span className="text-cyan-400">{session?.brainId}</span>- </p>- </div>+ <PageFrame className="overflow-auto">+ <SectionStack className="max-w-4xl border border-lumen-border">+ <SectionBand tone="accent">+ <SectionBandHeader>+ <SectionBandEyebrow>Pipeline</SectionBandEyebrow>+ <SectionBandTitle>Ingest</SectionBandTitle>+ <SectionBandDescription>+ Submitting into brain{" "}+ <span className="font-mono text-lumen-foreground">+ {session?.brainId}+ </span>+ . Completed jobs appear under Tasks.+ </SectionBandDescription>+ </SectionBandHeader>+ </SectionBand>- <form onSubmit={handleIngest} className="space-y-4 rounded-xl border border-slate-800 bg-slate-950 p-6">- <label className="flex flex-col gap-2 text-sm">- <span className="text-slate-400">Text to ingest</span>- <textarea- value={text}- onChange={(e) => setText(e.target.value)}- rows={6}- required- className="rounded-lg border border-slate-700 bg-slate-900 px-3 py-2 text-slate-100 outline-none focus:border-cyan-600"- placeholder="Emily organized the AI Ethics Meetup in London on March 8, 2024."- />- </label>- {ingestError && (- <p className="text-sm text-red-400">{ingestError}</p>- )}- {ingestResult && (- <p className="text-sm text-emerald-400">- {ingestResult}- {taskId && (- <>- {" "}- —{" "}- <Link to="/tasks" className="text-cyan-500 hover:underline">- View task {taskId}- </Link>- </>- )}- </p>- )}- <button- type="submit"- disabled={ingesting || !text.trim()}- className="rounded-lg bg-cyan-700 px-4 py-2 text-sm font-medium hover:bg-cyan-600 disabled:opacity-50"- >- {ingesting ? "Submitting…" : "Ingest text"}- </button>- </form>-- <div className="rounded-xl border border-slate-800 bg-slate-950 p-6">- <h2 className="mb-1 font-semibold">Brains</h2>- <p className="mb-4 text-xs text-slate-500">- Requires system BRAINPAT_TOKEN from your .env- </p>+ <SectionBand>+ <SectionBandHeader>+ <SectionBandEyebrow>Content</SectionBandEyebrow>+ <SectionBandTitle>Text ingest</SectionBandTitle>+ <SectionBandDescription>+ Free-form text is queued for extraction and storage.+ </SectionBandDescription>+ </SectionBandHeader>+ <SectionBandContent>+ <form onSubmit={handleIngest}>+ <Stack gap="md">+ <Field>+ <FieldLabel htmlFor="ingest-text">Text to ingest</FieldLabel>+ <Textarea+ id="ingest-text"+ value={text}+ onChange={(e) => setText(e.target.value)}+ rows={8}+ required+ placeholder="Emily organized the AI Ethics Meetup in London on March 8, 2024."+ />+ </Field>+ {ingestError && (+ <Alert variant="danger" title="Ingest failed">+ {ingestError}+ </Alert>+ )}+ {ingestResult && (+ <Alert variant="success" title="Submitted">+ {ingestResult}+ {taskId && (+ <>+ {" "}+ —{" "}+ <RouterLink+ to="/tasks"+ className="underline underline-offset-2"+ >+ View task {taskId}+ </RouterLink>+ </>+ )}+ </Alert>+ )}+ <div className="flex flex-wrap gap-2">+ <Button+ type="submit"+ disabled={!text.trim()}+ isPending={ingesting}+ pendingLabel="Submitting…"+ >+ Ingest text+ </Button>+ <RouterLink+ to="/tasks"+ className="inline-flex h-11 items-center border border-lumen-control-border bg-lumen-action-secondary px-4 text-sm font-medium text-lumen-on-action-secondary"+ >+ Open tasks+ </RouterLink>+ </div>+ </Stack>+ </form>+ </SectionBandContent>+ </SectionBand>- {brainsError && (- <p className="mb-3 text-sm text-amber-400">{brainsError}</p>- )}+ <SectionBand tone="muted">+ <SectionBandHeader>+ <SectionBandEyebrow>Administration</SectionBandEyebrow>+ <SectionBandTitle>Brains</SectionBandTitle>+ <SectionBandDescription>+ Creating brains requires the system BRAINPAT_TOKEN from your+ environment.+ </SectionBandDescription>+ </SectionBandHeader>+ <SectionBandContent>+ <Stack gap="md">+ {brainsError && (+ <Alert variant="warning" title="Brains unavailable">+ {brainsError}+ </Alert>+ )}- {brains.length > 0 && (- <ul className="mb-4 space-y-1 text-sm">- {brains.map((b) => (- <li key={b.id ?? b.name_key} className="text-slate-400">- <span className="text-cyan-400">{b.name_key}</span>- {b.pat && (- <span className="ml-2 font-mono text-xs text-slate-600">- pat: {b.pat.slice(0, 8)}…- </span>- )}- </li>- ))}- </ul>- )}+ {brains.length > 0 && (+ <List>+ {brains.map((b) => (+ <ListItem key={b.id ?? b.name_key}>+ <span className="font-mono text-sm text-lumen-foreground">+ {b.name_key}+ </span>+ {b.pat ? (+ <span className="ml-2 font-mono text-xs text-lumen-muted-foreground">+ pat {b.pat.slice(0, 8)}…+ </span>+ ) : null}+ </ListItem>+ ))}+ </List>+ )}- <form onSubmit={handleCreateBrain} className="flex gap-2">- <input- type="text"- value={newBrainId}- onChange={(e) => setNewBrainId(e.target.value)}- pattern="[a-zA-Z][a-zA-Z0-9]*"- placeholder="newBrainId"- className="flex-1 rounded-lg border border-slate-700 bg-slate-900 px-3 py-2 text-sm"- />- <button- type="submit"- disabled={creating || !newBrainId.trim()}- className="rounded-lg border border-slate-700 px-4 py-2 text-sm hover:border-cyan-700 disabled:opacity-50"- >- Create- </button>- </form>+ <form+ onSubmit={handleCreateBrain}+ className="flex flex-wrap items-end gap-2"+ >+ <TextField+ id="new-brain-id"+ label="New brain id"+ value={newBrainId}+ onChange={(e) => setNewBrainId(e.target.value)}+ pattern="[a-zA-Z][a-zA-Z0-9]*"+ placeholder="newBrainId"+ containerClassName="min-w-[14rem] flex-1"+ />+ <Button+ type="submit"+ variant="secondary"+ disabled={!newBrainId.trim()}+ isPending={creating}+ pendingLabel="Creating…"+ >+ Create brain+ </Button>+ </form>- {createdPat && (- <div className="mt-4 rounded-lg border border-emerald-900 bg-emerald-950/30 p-3">- <p className="mb-1 text-xs text-emerald-400">New brain PAT (copy now):</p>- <code className="break-all text-xs text-slate-300">{createdPat}</code>- </div>- )}- </div>- </div>+ {createdPat && (+ <Alert variant="success" title="New brain PAT (copy now)">+ <ClipboardCopy value={createdPat} label="Copy PAT" />+ </Alert>+ )}+ </Stack>+ </SectionBandContent>+ </SectionBand>+ </SectionStack>+ </PageFrame>);}diff --git a/console/src/pages/LoginPage.tsx b/console/src/pages/LoginPage.tsxindex 2c7702a..5e0a58f 100644--- a/console/src/pages/LoginPage.tsx+++ b/console/src/pages/LoginPage.tsx@@ -1,5 +1,13 @@import { useState } from "react";import { useNavigate } from "react-router-dom";+import {+ Alert,+ Button,+ Callout,+ PasswordField,+ Stack,+ TextField,+} from "lumen-ui-kit";import { loadSession, saveSession } from "../lib/auth";import { connectSession, setSession } from "../lib/api";@@ -31,60 +39,104 @@ export default function LoginPage() {}return (- <div className="flex min-h-screen items-center justify-center p-6">- <div className="w-full max-w-md rounded-xl border border-slate-800 bg-slate-950 p-8 shadow-xl">- <h1 className="mb-1 text-2xl font-semibold text-cyan-400">BrainAPI Console</h1>- <p className="mb-6 text-sm text-slate-500">- Connect to your local BrainAPI instance with a BrainPAT token.- </p>- <form onSubmit={handleSubmit} className="flex flex-col gap-4">- <label className="flex flex-col gap-1 text-sm">- <span className="text-slate-400">API base URL</span>- <input- type="url"- value={apiBaseUrl}- onChange={(e) => setApiBaseUrl(e.target.value)}- className="rounded-lg border border-slate-700 bg-slate-900 px-3 py-2 text-slate-100 outline-none focus:border-cyan-600"- required- />- </label>- <label className="flex flex-col gap-1 text-sm">- <span className="text-slate-400">BrainPAT</span>- <input- type="password"- value={pat}- onChange={(e) => setPat(e.target.value)}- placeholder="brainpat_… or system token"- className="rounded-lg border border-slate-700 bg-slate-900 px-3 py-2 text-slate-100 outline-none focus:border-cyan-600"- required- />- </label>- <div className="rounded-lg border border-slate-800 bg-slate-900/50 p-3 text-xs text-slate-500">- <p className="mb-1">- <strong className="text-slate-400">System PAT</strong> — from{" "}- <code className="text-cyan-600">BRAINPAT_TOKEN</code> in your{" "}- <code className="text-cyan-600">.env</code>. Starts on the default- brain; switch brains from the sidebar after login.- </p>- <p>- <strong className="text-slate-400">Per-brain PAT</strong> — returned- when creating a brain. Scoped to that brain only.- </p>+ <div className="grid min-h-screen lg:grid-cols-[minmax(0,0.9fr)_minmax(0,1.1fr)]">+ <aside className="relative hidden flex-col justify-between border-r border-lumen-border bg-lumen-surface p-10 lg:flex">+ <div>+ <div className="grid size-10 place-items-center bg-lumen-primary text-sm font-bold text-lumen-on-primary">+ B</div>- {error && (- <p className="rounded-lg border border-red-900 bg-red-950/50 px-3 py-2 text-sm text-red-300">- {error}- </p>- )}- <button- type="submit"- disabled={loading}- className="rounded-lg bg-cyan-700 px-4 py-2 text-sm font-medium text-white hover:bg-cyan-600 disabled:opacity-50"- >- {loading ? "Connecting…" : "Connect"}- </button>- </form>- </div>+ <h1 className="mt-8 text-3xl font-semibold tracking-tight text-lumen-foreground">+ BrainAPI+ <span className="mt-2 block text-lg font-normal text-lumen-muted-foreground">+ Operations console+ </span>+ </h1>+ <p className="mt-4 max-w-sm text-sm leading-relaxed text-lumen-muted-foreground">+ Connect a local or remote BrainAPI instance with a BrainPAT, then+ inspect memory, graph topology, vectors, and ingestion tasks.+ </p>+ </div>+ <dl className="grid gap-4 text-sm">+ <div>+ <dt className="text-lumen-muted-foreground">Typical workflow</dt>+ <dd className="mt-1 text-lumen-foreground">+ Ingest → Tasks → Graph / Data+ </dd>+ </div>+ <div>+ <dt className="text-lumen-muted-foreground">Auth modes</dt>+ <dd className="mt-1 text-lumen-foreground">+ System PAT or per-brain PAT+ </dd>+ </div>+ </dl>+ </aside>++ <main className="flex items-center justify-center p-6 sm:p-10">+ <div className="w-full max-w-md">+ <div className="mb-8 lg:hidden">+ <div className="grid size-9 place-items-center bg-lumen-primary text-xs font-bold text-lumen-on-primary">+ B+ </div>+ <h1 className="mt-4 text-2xl font-semibold text-lumen-foreground">+ BrainAPI Console+ </h1>+ </div>++ <h2 className="text-xl font-semibold text-lumen-foreground">+ Connect instance+ </h2>+ <p className="mt-1 text-sm text-lumen-muted-foreground">+ Use your API base URL and a BrainPAT token to enter the workspace.+ </p>++ <form onSubmit={handleSubmit} className="mt-8">+ <Stack gap="md">+ <TextField+ id="login-api-base-url"+ label="API base URL"+ type="url"+ value={apiBaseUrl}+ onChange={(e) => setApiBaseUrl(e.target.value)}+ required+ />+ <PasswordField+ id="login-brainpat"+ label="BrainPAT"+ value={pat}+ onChange={(e) => setPat(e.target.value)}+ placeholder="brainpat_… or system token"+ required+ />+ <Callout title="Token types">+ <p className="mb-2">+ <strong>System PAT</strong> — from{" "}+ <code>BRAINPAT_TOKEN</code> in your <code>.env</code>. Starts+ on the default brain; switch brains from the header after+ login.+ </p>+ <p>+ <strong>Per-brain PAT</strong> — returned when creating a+ brain. Scoped to that brain only.+ </p>+ </Callout>+ {error && (+ <Alert variant="danger" title="Connection failed">+ {error}+ </Alert>+ )}+ <Button+ type="submit"+ isFullWidth+ isPending={loading}+ pendingLabel="Connecting…"+ >+ Connect to console+ </Button>+ </Stack>+ </form>+ </div>+ </main></div>);}diff --git a/console/src/pages/ObservationsPage.tsx b/console/src/pages/ObservationsPage.tsxindex b8ac087..80158ef 100644--- a/console/src/pages/ObservationsPage.tsx+++ b/console/src/pages/ObservationsPage.tsx@@ -1,5 +1,26 @@import { useEffect, useState } from "react";+import {+ Alert,+ Button,+ EmptyState,+ Input,+ ResourceList,+ ResourceListContent,+ ResourceListDescription,+ ResourceListItem,+ ResourceListMetadata,+ ResourceListMetadataItem,+ ResourceListTitle,+ SearchInput,+ Select,+} from "lumen-ui-kit";import { apiFetch } from "../lib/api";+import {+ FilterBar,+ InlineField,+ JsonInspector,+ Workbench,+} from "../components/Workbench";interface Observation {id: string;@@ -46,7 +67,9 @@ export default function ObservationsPage() {if (!cancelled) setObservations(res.observations ?? []);} catch (err) {if (!cancelled) {- setError(err instanceof Error ? err.message : "Failed to load observations");+ setError(+ err instanceof Error ? err.message : "Failed to load observations",+ );}} finally {if (!cancelled) setLoading(false);@@ -59,97 +82,144 @@ export default function ObservationsPage() {}, [query, resourceId, selectedLabel, skip, limit]);return (- <div>- <h1 className="mb-4 text-2xl font-semibold">Observations</h1>- <div className="mb-4 flex flex-wrap gap-2">- <input- type="search"- placeholder="Search text…"- value={query}- onChange={(e) => {- setQuery(e.target.value);- setSkip(0);- }}- className="rounded-lg border border-slate-700 bg-slate-900 px-3 py-2 text-sm"- />- <input- type="text"- placeholder="Resource ID"- value={resourceId}- onChange={(e) => {- setResourceId(e.target.value);- setSkip(0);- }}- className="rounded-lg border border-slate-700 bg-slate-900 px-3 py-2 text-sm"- />- <select- value={selectedLabel}- onChange={(e) => {- setSelectedLabel(e.target.value);- setSkip(0);- }}- className="rounded-lg border border-slate-700 bg-slate-900 px-3 py-2 text-sm"- >- <option value="">All labels</option>- {labels.map((l) => (- <option key={l} value={l}>- {l}- </option>- ))}- </select>- </div>-- {error && <p className="mb-2 text-sm text-red-400">{error}</p>}-- <div className="flex gap-4">- <div className="flex-1 space-y-2">- {loading ? (- <p className="text-slate-500">Loading…</p>- ) : observations.length === 0 ? (- <p className="text-slate-500">No observations</p>- ) : (- observations.map((obs) => (- <button- key={obs.id}- type="button"- onClick={() => setSelected(obs)}- className={`w-full rounded-xl border p-4 text-left transition-colors ${- selected?.id === obs.id- ? "border-cyan-700 bg-cyan-950/30"- : "border-slate-800 bg-slate-950 hover:border-slate-700"- }`}+ <Workbench+ flush+ title="Observations"+ description="Filter and inspect observation records attached to memory resources"+ toolbar={+ <div className="flex flex-col gap-3">+ <FilterBar>+ <SearchInput+ aria-label="Search observations"+ placeholder="Search text…"+ value={query}+ onChange={(e) => {+ setQuery(e.target.value);+ setSkip(0);+ }}+ className="h-9 min-w-[14rem] flex-1"+ />+ <InlineField id="observation-resource-id" label="Resource">+ <Input+ id="observation-resource-id"+ value={resourceId}+ onChange={(e) => {+ setResourceId(e.target.value);+ setSkip(0);+ }}+ placeholder="Resource ID"+ className="min-w-[12rem]"+ />+ </InlineField>+ <InlineField id="observation-label" label="Label">+ <Select+ id="observation-label"+ value={selectedLabel}+ onChange={(e) => {+ setSelectedLabel(e.target.value);+ setSkip(0);+ }}>- <p className="text-sm text-slate-200">{obs.text}</p>- <p className="mt-2 font-mono text-xs text-slate-500">{obs.id}</p>- </button>- ))+ <option value="">All labels</option>+ {labels.map((l) => (+ <option key={l} value={l}>+ {l}+ </option>+ ))}+ </Select>+ </InlineField>+ </FilterBar>+ {error && (+ <Alert variant="danger" title="Failed to load">+ {error}+ </Alert>)}- <div className="flex gap-2 pt-2">- <button- type="button"- disabled={skip === 0}- onClick={() => setSkip(Math.max(0, skip - limit))}- className="rounded border border-slate-700 px-3 py-1 text-sm disabled:opacity-40"- >- Prev- </button>- <button- type="button"- disabled={observations.length < limit}- onClick={() => setSkip(skip + limit)}- className="rounded border border-slate-700 px-3 py-1 text-sm disabled:opacity-40"- >- Next- </button>- </div></div>-- {selected && (- <pre className="w-96 shrink-0 overflow-auto rounded-xl border border-slate-800 bg-slate-950 p-4 text-xs text-slate-400">- {JSON.stringify(selected, null, 2)}- </pre>+ }+ inspector={+ selected ? (+ <JsonInspector+ title="Observation"+ subtitle={selected.id}+ value={selected}+ onClose={() => setSelected(null)}+ />+ ) : undefined+ }+ >+ <div className="flex min-h-full flex-col">+ {loading ? (+ <p className="p-6 text-lumen-muted-foreground">Loading…</p>+ ) : observations.length === 0 ? (+ <div className="p-6">+ <EmptyState title="No observations" />+ </div>+ ) : (+ <ResourceList className="divide-y divide-lumen-border">+ {observations.map((obs) => {+ const isSelected = selected?.id === obs.id;+ return (+ <ResourceListItem+ key={obs.id}+ className={+ isSelected+ ? "cursor-pointer bg-lumen-muted px-4 py-3"+ : "cursor-pointer px-4 py-3 hover:bg-lumen-muted/40"+ }+ onClick={() => setSelected(obs)}+ onKeyDown={(e) => {+ if (e.key === "Enter" || e.key === " ") {+ e.preventDefault();+ setSelected(obs);+ }+ }}+ tabIndex={0}+ aria-selected={isSelected}+ >+ <ResourceListContent>+ <ResourceListTitle>{obs.text}</ResourceListTitle>+ <ResourceListDescription className="font-mono text-xs">+ {obs.id}+ </ResourceListDescription>+ <ResourceListMetadata>+ {obs.resource_id ? (+ <ResourceListMetadataItem>+ resource {obs.resource_id}+ </ResourceListMetadataItem>+ ) : null}+ {obs.inserted_at ? (+ <ResourceListMetadataItem>+ {obs.inserted_at}+ </ResourceListMetadataItem>+ ) : null}+ </ResourceListMetadata>+ </ResourceListContent>+ </ResourceListItem>+ );+ })}+ </ResourceList>)}+ <div className="mt-auto flex gap-2 border-t border-lumen-border p-3">+ <Button+ type="button"+ size="small"+ variant="secondary"+ disabled={skip === 0}+ onClick={() => setSkip(Math.max(0, skip - limit))}+ >+ Prev+ </Button>+ <Button+ type="button"+ size="small"+ variant="secondary"+ disabled={observations.length < limit}+ onClick={() => setSkip(skip + limit)}+ >+ Next+ </Button>+ </div></div>- </div>+ </Workbench>);}diff --git a/console/src/pages/OverviewPage.tsx b/console/src/pages/OverviewPage.tsxindex 206e5e5..8a0d330 100644--- a/console/src/pages/OverviewPage.tsx+++ b/console/src/pages/OverviewPage.tsx@@ -1,21 +1,81 @@import { useEffect, useState } from "react";+import { Link as RouterLink } from "react-router-dom";+import {+ Inline,+ SectionBand,+ SectionBandContent,+ SectionBandDescription,+ SectionBandEyebrow,+ SectionBandHeader,+ SectionBandTitle,+ SectionStack,+ Stat,+ StatLabel,+ StatValue,+ StatusIndicator,+} from "lumen-ui-kit";import { apiFetch, getSession } from "../lib/api";+import { PageFrame } from "../components/Workbench";interface StatCard {label: string;value: string | number;loading: boolean;+ failed: boolean;+ to: string;}+const shortcuts = [+ {+ title: "Inspect graph",+ description: "Explore entities and relationships for the active brain.",+ to: "/graph",+ },+ {+ title: "Browse memory",+ description: "Search text chunks, structured records, and observations.",+ to: "/data",+ },+ {+ title: "Ingest text",+ description: "Submit new content and track the resulting task pipeline.",+ to: "/ingest",+ },+];+export default function OverviewPage() {const session = getSession();const [stats, setStats] = useState<StatCard[]>([- { label: "Entities", value: "—", loading: true },- { label: "Relationships", value: "—", loading: true },- { label: "Text chunks", value: "—", loading: true },- { label: "Observations", value: "—", loading: true },- { label: "Tasks", value: "—", loading: true },- { label: "Vectors", value: "—", loading: true },+ { label: "Entities", value: "—", loading: true, failed: false, to: "/graph" },+ {+ label: "Relationships",+ value: "—",+ loading: true,+ failed: false,+ to: "/graph",+ },+ {+ label: "Text chunks",+ value: "—",+ loading: true,+ failed: false,+ to: "/data",+ },+ {+ label: "Observations",+ value: "—",+ loading: true,+ failed: false,+ to: "/observations",+ },+ { label: "Tasks", value: "—", loading: true, failed: false, to: "/tasks" },+ {+ label: "Vectors",+ value: "—",+ loading: true,+ failed: false,+ to: "/vectors",+ },]);useEffect(() => {@@ -25,30 +85,45 @@ export default function OverviewPage() {const results = [...stats];try {- const entities = await apiFetch<{ total?: number; entities?: unknown[] }>(+ const entities = await apiFetch<{ total?: number }>("/retrieve/entities?limit=1",);- results[0] = { label: "Entities", value: entities.total ?? 0, loading: false };+ results[0] = {+ ...results[0],+ value: entities.total ?? 0,+ loading: false,+ failed: false,+ };} catch {- results[0] = { label: "Entities", value: "?", loading: false };+ results[0] = { ...results[0], value: "?", loading: false, failed: true };}try {const rels = await apiFetch<{ total?: number }>("/retrieve/relationships?limit=1",);- results[1] = { label: "Relationships", value: rels.total ?? 0, loading: false };+ results[1] = {+ ...results[1],+ value: rels.total ?? 0,+ loading: false,+ failed: false,+ };} catch {- results[1] = { label: "Relationships", value: "?", loading: false };+ results[1] = { ...results[1], value: "?", loading: false, failed: true };}try {const chunks = await apiFetch<{ total?: number }>("/retrieve/text-chunks?limit=1",);- results[2] = { label: "Text chunks", value: chunks.total ?? 0, loading: false };+ results[2] = {+ ...results[2],+ value: chunks.total ?? 0,+ loading: false,+ failed: false,+ };} catch {- results[2] = { label: "Text chunks", value: "?", loading: false };+ results[2] = { ...results[2], value: "?", loading: false, failed: true };}try {@@ -56,23 +131,25 @@ export default function OverviewPage() {"/retrieve/observations?limit=1",);results[3] = {- label: "Observations",+ ...results[3],value: obs.count ?? obs.observations?.length ?? 0,loading: false,+ failed: false,};} catch {- results[3] = { label: "Observations", value: "?", loading: false };+ results[3] = { ...results[3], value: "?", loading: false, failed: true };}try {const tasks = await apiFetch<{ tasks?: unknown[] }>("/tasks/");results[4] = {- label: "Tasks",+ ...results[4],value: tasks.tasks?.length ?? 0,loading: false,+ failed: false,};} catch {- results[4] = { label: "Tasks", value: "?", loading: false };+ results[4] = { ...results[4], value: "?", loading: false, failed: true };}try {@@ -86,9 +163,14 @@ export default function OverviewPage() {);vectorTotal += res.total ?? 0;}- results[5] = { label: "Vectors", value: vectorTotal, loading: false };+ results[5] = {+ ...results[5],+ value: vectorTotal,+ loading: false,+ failed: false,+ };} catch {- results[5] = { label: "Vectors", value: "?", loading: false };+ results[5] = { ...results[5], value: "?", loading: false, failed: true };}if (!cancelled) setStats(results);@@ -100,26 +182,120 @@ export default function OverviewPage() {};}, []);+ const healthy = stats.filter((s) => !s.loading && !s.failed).length;+ const failed = stats.filter((s) => s.failed).length;+return (- <div>- <h1 className="mb-1 text-2xl font-semibold">Overview</h1>- <p className="mb-6 text-sm text-slate-500">- Brain <span className="text-cyan-400">{session?.brainId}</span> on{" "}- <span className="text-slate-400">{session?.apiBaseUrl}</span>- </p>- <div className="grid grid-cols-2 gap-4 md:grid-cols-3">- {stats.map((stat) => (- <div- key={stat.label}- className="rounded-xl border border-slate-800 bg-slate-950 p-5"- >- <div className="text-sm text-slate-500">{stat.label}</div>- <div className="mt-1 text-3xl font-semibold text-cyan-400">- {stat.loading ? "…" : stat.value}+ <PageFrame className="overflow-auto">+ <SectionStack className="border border-lumen-border">+ <SectionBand tone="accent">+ <SectionBandHeader>+ <SectionBandEyebrow>Operations</SectionBandEyebrow>+ <SectionBandTitle>Brain health</SectionBandTitle>+ <SectionBandDescription>+ Live inventory for{" "}+ <span className="font-mono text-lumen-foreground">+ {session?.brainId}+ </span>{" "}+ on {session?.apiBaseUrl}+ </SectionBandDescription>+ </SectionBandHeader>+ <SectionBandContent>+ <Inline gap="md" className="flex-wrap items-center">+ <StatusIndicator status="success">+ {healthy} endpoints responding+ </StatusIndicator>+ {failed > 0 ? (+ <StatusIndicator status="warning">+ {failed} unavailable+ </StatusIndicator>+ ) : (+ <StatusIndicator status="neutral">+ All sampled counts available+ </StatusIndicator>+ )}+ <RouterLink+ to="/ingest"+ className="inline-flex h-9 items-center border border-lumen-control-border bg-lumen-action-secondary px-3 text-sm font-medium text-lumen-on-action-secondary"+ >+ Ingest data+ </RouterLink>+ </Inline>+ </SectionBandContent>+ </SectionBand>++ <SectionBand>+ <SectionBandHeader>+ <SectionBandEyebrow>Inventory</SectionBandEyebrow>+ <SectionBandTitle>Memory footprint</SectionBandTitle>+ <SectionBandDescription>+ Counts are sampled with limit=1 queries against retrieve and task+ endpoints.+ </SectionBandDescription>+ </SectionBandHeader>+ <SectionBandContent className="p-0">+ <div className="grid grid-cols-2 border border-lumen-border md:grid-cols-3">+ {stats.map((stat) => (+ <RouterLink+ key={stat.label}+ to={stat.to}+ className="border-b border-r border-lumen-border p-5 transition-colors last:border-r-0 md:[&:nth-child(3n)]:border-r-0 hover:bg-lumen-muted focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-[-2px] focus-visible:outline-lumen-primary"+ >+ <Stat>+ <StatLabel className="text-sm text-lumen-muted-foreground">+ {stat.label}+ </StatLabel>+ <StatValue className="mt-1 text-3xl font-semibold text-lumen-foreground">+ {stat.loading ? "…" : stat.value}+ </StatValue>+ {stat.loading ? (+ <StatusIndicator status="neutral" className="mt-2">+ Loading+ </StatusIndicator>+ ) : stat.failed ? (+ <StatusIndicator status="warning" className="mt-2">+ Unavailable+ </StatusIndicator>+ ) : (+ <StatusIndicator status="success" className="mt-2">+ Open {stat.label.toLowerCase()}+ </StatusIndicator>+ )}+ </Stat>+ </RouterLink>+ ))}+ </div>+ </SectionBandContent>+ </SectionBand>++ <SectionBand tone="muted">+ <SectionBandHeader>+ <SectionBandEyebrow>Workflows</SectionBandEyebrow>+ <SectionBandTitle>Common console paths</SectionBandTitle>+ <SectionBandDescription>+ Jump into the densest operational views for this brain.+ </SectionBandDescription>+ </SectionBandHeader>+ <SectionBandContent>+ <div className="grid gap-0 border border-lumen-border md:grid-cols-3">+ {shortcuts.map((item) => (+ <RouterLink+ key={item.to}+ to={item.to}+ className="border-b border-lumen-border p-4 last:border-b-0 md:border-b-0 md:border-r md:last:border-r-0"+ >+ <div className="text-sm font-semibold text-lumen-foreground">+ {item.title}+ </div>+ <p className="mt-1 text-sm text-lumen-muted-foreground">+ {item.description}+ </p>+ </RouterLink>+ ))}</div>- </div>- ))}- </div>- </div>+ </SectionBandContent>+ </SectionBand>+ </SectionStack>+ </PageFrame>);}diff --git a/console/src/pages/TasksPage.tsx b/console/src/pages/TasksPage.tsxindex 094fb05..f6d36f0 100644--- a/console/src/pages/TasksPage.tsx+++ b/console/src/pages/TasksPage.tsx@@ -1,6 +1,21 @@import { useEffect, useState } from "react";-import { Link } from "react-router-dom";+import { Link as RouterLink } from "react-router-dom";+import {+ Alert,+ Button,+ EmptyState,+ StatusIndicator,+ Table,+ TableBody,+ TableCell,+ TableEmptyState,+ TableHead,+ TableHeader,+ TableRow,+} from "lumen-ui-kit";+import { RestartIcon, Icon } from "lumen-ui-kit/icons";import { apiFetch } from "../lib/api";+import { JsonInspector, Workbench } from "../components/Workbench";interface TaskItem {id?: string;@@ -13,18 +28,18 @@ interface TaskItem {const TERMINAL = new Set(["completed", "failed", "error"]);-function statusColor(status: string): string {+function statusFor(status: string): "success" | "danger" | "warning" | "neutral" {switch (status) {case "completed":- return "text-emerald-400";+ return "success";case "failed":case "error":- return "text-red-400";+ return "danger";case "started":case "queued":- return "text-amber-400";+ return "warning";default:- return "text-slate-400";+ return "neutral";}}@@ -32,7 +47,7 @@ export default function TasksPage() {const [tasks, setTasks] = useState<TaskItem[]>([]);const [loading, setLoading] = useState(true);const [error, setError] = useState<string | null>(null);- const [expanded, setExpanded] = useState<string | null>(null);+ const [selectedId, setSelectedId] = useState<string | null>(null);const [detail, setDetail] = useState<TaskItem | null>(null);async function loadTasks() {@@ -56,13 +71,8 @@ export default function TasksPage() {return () => clearInterval(interval);}, []);- async function expandTask(taskId: string) {- if (expanded === taskId) {- setExpanded(null);- setDetail(null);- return;- }- setExpanded(taskId);+ async function selectTask(taskId: string) {+ setSelectedId(taskId);try {const res = await apiFetch<TaskItem>(`/tasks/${taskId}`);setDetail(res);@@ -71,59 +81,107 @@ export default function TasksPage() {}}+ const activeCount = tasks.filter((t) => !TERMINAL.has(t.status)).length;+return (- <div>- <div className="mb-4 flex items-center justify-between">- <h1 className="text-2xl font-semibold">Tasks</h1>- <button- type="button"- onClick={loadTasks}- className="rounded-lg border border-slate-700 px-3 py-1.5 text-sm hover:border-cyan-700"- >+ <Workbench+ flush+ title="Tasks"+ description={+ loading+ ? "Loading pipeline activity…"+ : `${tasks.length} tasks · ${activeCount} active · auto-refresh every 5s`+ }+ actions={+ <Button type="button" variant="secondary" size="small" onClick={loadTasks}>+ <Icon source={RestartIcon} />Refresh- </button>- </div>-- {error && <p className="mb-2 text-sm text-red-400">{error}</p>}-+ </Button>+ }+ toolbar={+ error ? (+ <Alert variant="danger" title="Failed to load">+ {error}+ </Alert>+ ) : undefined+ }+ inspector={+ selectedId ? (+ <JsonInspector+ title="Task detail"+ subtitle={selectedId}+ value={detail ?? { id: selectedId, status: "loading" }}+ onClose={() => {+ setSelectedId(null);+ setDetail(null);+ }}+ />+ ) : undefined+ }+ >{loading ? (- <p className="text-slate-500">Loading…</p>+ <p className="p-6 text-lumen-muted-foreground">Loading…</p>) : tasks.length === 0 ? (- <p className="text-slate-500">- No tasks yet.{" "}- <Link to="/ingest" className="text-cyan-500 hover:underline">- Ingest some data- </Link>- </p>- ) : (- <div className="space-y-2">- {tasks.map((task) => {- const id = task.id ?? task.task_id ?? "unknown";- return (- <div- key={id}- className="rounded-xl border border-slate-800 bg-slate-950"- >- <button- type="button"- onClick={() => expandTask(id)}- className="flex w-full items-center justify-between px-4 py-3 text-left"- >- <span className="font-mono text-xs text-cyan-600">{id}</span>- <span className={`text-sm font-medium ${statusColor(task.status)}`}>- {task.status}- </span>- </button>- {expanded === id && detail && (- <pre className="overflow-auto border-t border-slate-800 p-4 text-xs text-slate-400">- {JSON.stringify(detail, null, 2)}- </pre>- )}- </div>- );- })}+ <div className="p-6">+ <EmptyState+ title="No tasks yet"+ description="Ingest some data to create processing tasks."+ >+ <RouterLink+ to="/ingest"+ className="text-sm font-medium text-lumen-foreground underline underline-offset-2"+ >+ Go to Ingest+ </RouterLink>+ </EmptyState></div>+ ) : (+ <Table containerProps={{ "aria-label": "Ingestion tasks" }}>+ <TableHeader>+ <TableRow>+ <TableHead>Task ID</TableHead>+ <TableHead>Status</TableHead>+ <TableHead>Created</TableHead>+ </TableRow>+ </TableHeader>+ <TableBody>+ {tasks.length === 0 ? (+ <TableEmptyState colSpan={3} title="No tasks" />+ ) : (+ tasks.map((task) => {+ const id = task.id ?? task.task_id ?? "unknown";+ const isSelected = selectedId === id;+ return (+ <TableRow+ key={id}+ onClick={() => selectTask(id)}+ aria-selected={isSelected}+ className={+ isSelected+ ? "cursor-pointer bg-lumen-muted"+ : "cursor-pointer"+ }+ >+ <TableCell className="max-w-[240px] truncate font-mono text-xs">+ {id}+ </TableCell>+ <TableCell>+ <StatusIndicator status={statusFor(task.status)}>+ {task.status}+ </StatusIndicator>+ </TableCell>+ <TableCell className="text-lumen-muted-foreground">+ {task.created_at+ ? new Date(task.created_at * 1000).toLocaleString()+ : "—"}+ </TableCell>+ </TableRow>+ );+ })+ )}+ </TableBody>+ </Table>)}- </div>+ </Workbench>);}diff --git a/console/src/pages/VectorsPage.tsx b/console/src/pages/VectorsPage.tsxindex 5614fca..33efc58 100644--- a/console/src/pages/VectorsPage.tsx+++ b/console/src/pages/VectorsPage.tsx@@ -1,5 +1,25 @@import { useEffect, useState } from "react";+import {+ Alert,+ Button,+ Checkbox,+ ChoiceField,+ ChoiceFieldLabel,+ Select,+ Table,+ TableBody,+ TableCell,+ TableEmptyState,+ TableHead,+ TableHeader,+ TablePagination,+ TableRow,+ TableToolbar,+ TableToolbarContent,+ TableToolbarFilters,+} from "lumen-ui-kit";import { apiFetch } from "../lib/api";+import { JsonInspector, InlineField, Workbench } from "../components/Workbench";interface VectorItem {id: string;@@ -30,7 +50,9 @@ export default function VectorsPage() {setStores(res.stores ?? []);if (res.stores?.[0]) setStore(res.stores[0].name);})- .catch((err) => setError(err instanceof Error ? err.message : "Failed to load stores"));+ .catch((err) =>+ setError(err instanceof Error ? err.message : "Failed to load stores"),+ );}, []);useEffect(() => {@@ -55,7 +77,9 @@ export default function VectorsPage() {}} catch (err) {if (!cancelled) {- setError(err instanceof Error ? err.message : "Failed to load vectors");+ setError(+ err instanceof Error ? err.message : "Failed to load vectors",+ );}} finally {if (!cancelled) setLoading(false);@@ -67,124 +91,140 @@ export default function VectorsPage() {};}, [store, skip, limit, includeEmbeddings]);- return (- <div>- <h1 className="mb-4 text-2xl font-semibold">Vectors</h1>- <div className="mb-4 flex flex-wrap items-center gap-3">- <select- value={store}- onChange={(e) => {- setStore(e.target.value);- setSkip(0);- }}- className="rounded-lg border border-slate-700 bg-slate-900 px-3 py-2 text-sm"- >- {stores.map((s) => (- <option key={s.name} value={s.name}>- {s.name} (dim {s.dimension})- </option>- ))}- </select>- <label className="flex items-center gap-2 text-sm text-slate-400">- <input- type="checkbox"- checked={includeEmbeddings}- onChange={(e) => setIncludeEmbeddings(e.target.checked)}- />- Include embeddings- </label>- <span className="text-sm text-slate-500">{total} total</span>- </div>+ const start = total === 0 ? 0 : skip + 1;+ const end = Math.min(skip + limit, total);- {error && <p className="mb-2 text-sm text-red-400">{error}</p>}-- <div className="flex gap-4">- <div className="flex-1 overflow-hidden rounded-xl border border-slate-800">- <table className="w-full text-left text-sm">- <thead className="border-b border-slate-800 bg-slate-950 text-slate-500">- <tr>- <th className="px-4 py-2">ID</th>- <th className="px-4 py-2">Metadata</th>- <th className="px-4 py-2">Dim</th>- </tr>- </thead>- <tbody>- {loading ? (- <tr>- <td colSpan={3} className="px-4 py-8 text-center text-slate-500">- Loading…- </td>- </tr>- ) : vectors.length === 0 ? (- <tr>- <td colSpan={3} className="px-4 py-8 text-center text-slate-500">- No vectors- </td>- </tr>- ) : (- vectors.map((v) => (- <tr- key={v.id}- onClick={() => setSelected(v)}- className="cursor-pointer border-b border-slate-900 hover:bg-slate-900/50"- >- <td className="max-w-[160px] truncate px-4 py-2 font-mono text-xs text-cyan-600">- {v.id}- </td>- <td className="max-w-md truncate px-4 py-2 text-slate-400">- {JSON.stringify(v.metadata).slice(0, 80)}- </td>- <td className="px-4 py-2 text-slate-500">- {v.embeddings?.length ?? "—"}- </td>- </tr>- ))- )}- </tbody>- </table>- <div className="flex items-center justify-between border-t border-slate-800 px-4 py-2 text-sm text-slate-500">- <span>- {skip + 1}–{Math.min(skip + limit, total)} of {total}- </span>- <div className="flex gap-2">- <button- type="button"- disabled={skip === 0}- onClick={() => setSkip(Math.max(0, skip - limit))}- className="rounded border border-slate-700 px-2 py-1 disabled:opacity-40"- >- Prev- </button>- <button- type="button"- disabled={skip + limit >= total}- onClick={() => setSkip(skip + limit)}- className="rounded border border-slate-700 px-2 py-1 disabled:opacity-40"- >- Next- </button>- </div>- </div>+ return (+ <Workbench+ flush+ title="Vectors"+ description={+ store+ ? `Store ${store} · ${total.toLocaleString()} vectors`+ : "Select a vector store"+ }+ toolbar={+ <div className="flex flex-col gap-3">+ <TableToolbar>+ <TableToolbarFilters className="sm:items-center">+ <InlineField id="vector-store" label="Store">+ <Select+ id="vector-store"+ value={store}+ onChange={(e) => {+ setStore(e.target.value);+ setSkip(0);+ setSelected(null);+ }}+ >+ {stores.map((s) => (+ <option key={s.name} value={s.name}>+ {s.name} (dim {s.dimension})+ </option>+ ))}+ </Select>+ </InlineField>+ <ChoiceField className="min-h-9 items-center py-0">+ <Checkbox+ id="include-embeddings"+ checked={includeEmbeddings}+ onChange={(e) => setIncludeEmbeddings(e.target.checked)}+ />+ <ChoiceFieldLabel htmlFor="include-embeddings">+ Include embeddings+ </ChoiceFieldLabel>+ </ChoiceField>+ </TableToolbarFilters>+ <TableToolbarContent />+ </TableToolbar>+ {error && (+ <Alert variant="danger" title="Failed to load">+ {error}+ </Alert>+ )}</div>-- {selected && (- <pre className="w-96 shrink-0 overflow-auto rounded-xl border border-slate-800 bg-slate-950 p-4 text-xs text-slate-400">- {JSON.stringify(- {- ...selected,- embeddings: selected.embeddings- ? [- ...selected.embeddings.slice(0, 16),- ...(selected.embeddings.length > 16 ? ["…"] : []),- ]- : null,- },- null,- 2,- )}- </pre>- )}- </div>- </div>+ }+ inspector={+ selected ? (+ <JsonInspector+ title="Vector detail"+ subtitle={selected.id}+ value={{+ ...selected,+ embeddings: selected.embeddings+ ? [+ ...selected.embeddings.slice(0, 16),+ ...(selected.embeddings.length > 16 ? ["…"] : []),+ ]+ : null,+ }}+ onClose={() => setSelected(null)}+ />+ ) : undefined+ }+ >+ <Table containerProps={{ "aria-label": "Vectors" }}>+ <TableHeader>+ <TableRow>+ <TableHead>ID</TableHead>+ <TableHead>Metadata</TableHead>+ <TableHead>Dim</TableHead>+ </TableRow>+ </TableHeader>+ <TableBody>+ {loading ? (+ <TableEmptyState colSpan={3} title="Loading…" />+ ) : vectors.length === 0 ? (+ <TableEmptyState colSpan={3} title="No vectors" />+ ) : (+ vectors.map((v) => {+ const isSelected = selected?.id === v.id;+ return (+ <TableRow+ key={v.id}+ onClick={() => setSelected(v)}+ aria-selected={isSelected}+ className={+ isSelected+ ? "cursor-pointer bg-lumen-muted"+ : "cursor-pointer"+ }+ >+ <TableCell className="max-w-[180px] truncate font-mono text-xs">+ {v.id}+ </TableCell>+ <TableCell className="max-w-md truncate text-lumen-muted-foreground">+ {JSON.stringify(v.metadata).slice(0, 100)}+ </TableCell>+ <TableCell className="text-lumen-muted-foreground">+ {v.embeddings?.length ?? "—"}+ </TableCell>+ </TableRow>+ );+ })+ )}+ </TableBody>+ </Table>+ <TablePagination start={start} end={end} total={total}>+ <Button+ type="button"+ size="small"+ variant="secondary"+ disabled={skip === 0}+ onClick={() => setSkip(Math.max(0, skip - limit))}+ >+ Prev+ </Button>+ <Button+ type="button"+ size="small"+ variant="secondary"+ disabled={skip + limit >= total}+ onClick={() => setSkip(skip + limit)}+ >+ Next+ </Button>+ </TablePagination>+ </Workbench>);}diff --git a/console/tsconfig.tsbuildinfo b/console/tsconfig.tsbuildinfoindex 5221685..c688bcf 100644--- a/console/tsconfig.tsbuildinfo+++ b/console/tsconfig.tsbuildinfo@@ -1 +1 @@-{"root":["./src/app.tsx","./src/main.tsx","./src/vite-env.d.ts","./src/components/graphcanvas.tsx","./src/components/layout.tsx","./src/lib/api.ts","./src/lib/auth.ts","./src/lib/graphcolors.ts","./src/lib/graphmodel.ts","./src/pages/datapage.tsx","./src/pages/graphpage.tsx","./src/pages/ingestpage.tsx","./src/pages/loginpage.tsx","./src/pages/observationspage.tsx","./src/pages/overviewpage.tsx","./src/pages/taskspage.tsx","./src/pages/vectorspage.tsx"],"version":"5.9.3"}\ No newline at end of file+{"root":["./src/app.tsx","./src/main.tsx","./src/vite-env.d.ts","./src/components/layout.tsx","./src/components/workbench.tsx","./src/lib/api.ts","./src/lib/auth.ts","./src/lib/graphmodel.ts","./src/pages/datapage.tsx","./src/pages/graphpage.tsx","./src/pages/ingestpage.tsx","./src/pages/loginpage.tsx","./src/pages/observationspage.tsx","./src/pages/overviewpage.tsx","./src/pages/taskspage.tsx","./src/pages/vectorspage.tsx"],"version":"5.9.3"}\ No newline at end of file