Skip to content

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.

feat(console): added local console to view data + removed watch uvcorn for prod env

Christianc6ee7dfe06c8
diff --git a/Makefile b/Makefile
index 5c67917..a8d0164 100644
--- a/Makefile
+++ b/Makefile
@@ -51,13 +51,13 @@ delete-mongo-volumes:
docker compose -f src/lib/mongo/docker-compose.yaml down -v --remove-orphans
start-api:
- ENV=development poetry run python -m uvicorn src.services.api.app:app --host 0.0.0.0 --port 8000 --access-log --log-level info --reload
+ ENV=development CONSOLE_ENABLED=true poetry run python -m uvicorn src.services.api.app:app --host 0.0.0.0 --port 8000 --access-log --log-level info --reload --reload-dir src
stop-api:
pkill -f "uvicorn src.services.api.app"
start-mcp:
- ENV=development poetry run python -m uvicorn src.services.mcp.app:app --host 0.0.0.0 --port 8001 --access-log --log-level info --reload
+ ENV=development poetry run python -m uvicorn src.services.mcp.app:app --host 0.0.0.0 --port 8001 --access-log --log-level info --reload --reload-dir src
MCP_BRIDGE_DIR := mcp-stdio-http-bridge
MCP_BRIDGE_VERSION := $(shell grep '^version = ' $(MCP_BRIDGE_DIR)/Cargo.toml | head -1 | sed 's/version = "\(.*\)"/\1/')
@@ -181,4 +181,10 @@ install-extras-all:
poetry run python scripts/install_extras.py --all
check-extras:
- poetry run python scripts/install_extras.py --check
\ No newline at end of file
+ poetry run python scripts/install_extras.py --check
+
+build-console:
+ cd console && npm install && npm run build
+
+start-console-dev:
+ cd console && npm install && npm run dev
\ No newline at end of file
diff --git a/README.md b/README.md
index 32e15f4..6793ae4 100644
--- a/README.md
+++ b/README.md
@@ -118,6 +118,27 @@ If Python (≥3.11) or Docker is missing, the TUI suggests platform-aware instal
Override with `BRAINAPI_HOME`, `BRAINAPI_REPO_URL`, or `BRAINAPI_BRANCH`. Full CLI reference → [`tui/README.md`](tui/README.md).
+### Local Console
+
+A web UI for browsing your local BrainAPI data — graph, text chunks, vectors, tasks, and observations — with BrainPAT login.
+
+**Build and serve from the API (single port):**
+
+```sh
+make build-console
+make start-api
+# open http://localhost:8000/console
+```
+
+**Dev mode with hot reload:**
+
+```sh
+make start-api # terminal 1
+make start-console-dev # terminal 2 → http://localhost:5173/console/
+```
+
+Log in with your `BRAINPAT_TOKEN` from `.env` (system PAT) or a per-brain PAT. Set `CONSOLE_ENABLED=false` to disable static serving in non-development environments.
+
### Alternative: clone and run from source
For contributors or when working inside this repo:
diff --git a/console/.gitignore b/console/.gitignore
new file mode 100644
index 0000000..f06235c
--- /dev/null
+++ b/console/.gitignore
@@ -0,0 +1,2 @@
+node_modules
+dist
diff --git a/console/index.html b/console/index.html
new file mode 100644
index 0000000..5f05a0a
--- /dev/null
+++ b/console/index.html
@@ -0,0 +1,12 @@
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="UTF-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ <title>BrainAPI Console</title>
+ </head>
+ <body>
+ <div id="root"></div>
+ <script type="module" src="/src/main.tsx"></script>
+ </body>
+</html>
diff --git a/console/package-lock.json b/console/package-lock.json
new file mode 100644
index 0000000..e45be78
--- /dev/null
+++ b/console/package-lock.json
@@ -0,0 +1,2594 @@
+{
+ "name": "brainapi-console",
+ "version": "0.1.0",
+ "lockfileVersion": 3,
+ "requires": true,
+ "packages": {
+ "": {
+ "name": "brainapi-console",
+ "version": "0.1.0",
+ "dependencies": {
+ "react": "^19.1.0",
+ "react-dom": "^19.1.0",
+ "react-router-dom": "^7.6.0",
+ "vis-data": "^8.0.3",
+ "vis-network": "^10.0.2"
+ },
+ "devDependencies": {
+ "@tailwindcss/vite": "^4.1.8",
+ "@types/react": "^19.1.2",
+ "@types/react-dom": "^19.1.2",
+ "@vitejs/plugin-react": "^4.4.1",
+ "tailwindcss": "^4.1.8",
+ "typescript": "^5.8.3",
+ "vite": "^6.3.5"
+ }
+ },
+ "node_modules/@babel/code-frame": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.7.tgz",
+ "integrity": "sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-validator-identifier": "^7.29.7",
+ "js-tokens": "^4.0.0",
+ "picocolors": "^1.1.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/compat-data": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.7.tgz",
+ "integrity": "sha512-locTkQyKvwIEgBzVrn8693ebc97F2U8ZHjbXwDXJ5Fn2TCpNwTlKcaKLkdHop5c/icOFE7qt7Q9JC5hnKNa6Gg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/core": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.7.tgz",
+ "integrity": "sha512-RgHBCvtjbOK2gXSNBNIkNoEc9qoVEtau3hj8gEqKQuL3HZAibKarWFEI3Lfm6EYKkLalOh8eSrj9b+ch9H/VBA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/code-frame": "^7.29.7",
+ "@babel/generator": "^7.29.7",
+ "@babel/helper-compilation-targets": "^7.29.7",
+ "@babel/helper-module-transforms": "^7.29.7",
+ "@babel/helpers": "^7.29.7",
+ "@babel/parser": "^7.29.7",
+ "@babel/template": "^7.29.7",
+ "@babel/traverse": "^7.29.7",
+ "@babel/types": "^7.29.7",
+ "@jridgewell/remapping": "^2.3.5",
+ "convert-source-map": "^2.0.0",
+ "debug": "^4.1.0",
+ "gensync": "^1.0.0-beta.2",
+ "json5": "^2.2.3",
+ "semver": "^6.3.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/babel"
+ }
+ },
+ "node_modules/@babel/generator": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.7.tgz",
+ "integrity": "sha512-DkXD5OJQaAQIdZ1bt3UZdEnHAn9Imd3IVBdX03UFe+ony9Ojw5pzr9YVKGDY1jt+Gcn/FnGkNf8r+Vj5NOJWtQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/parser": "^7.29.7",
+ "@babel/types": "^7.29.7",
+ "@jridgewell/gen-mapping": "^0.3.12",
+ "@jridgewell/trace-mapping": "^0.3.28",
+ "jsesc": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-compilation-targets": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.29.7.tgz",
+ "integrity": "sha512-wem6WaBj4NaVYVdNhLPPVacES6ZJ+KBBfSkTMD3YZxbP3rm3Di85tJU5ljaUNhaOynt+Aj0xruhYuzQBt8n71g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/compat-data": "^7.29.7",
+ "@babel/helper-validator-option": "^7.29.7",
+ "browserslist": "^4.24.0",
+ "lru-cache": "^5.1.1",
+ "semver": "^6.3.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-globals": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.29.7.tgz",
+ "integrity": "sha512-3nQVUAtvkKH9zahfWgw96Jc/uFOmjACE1kQz82E2lqWmHBgjzbNlsC22nuQTfahmWeQtTq5nQ/4Nnd2A1wj4zA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-module-imports": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.29.7.tgz",
+ "integrity": "sha512-ejHwrQQYcm9xnTivShn2IDOlIzInN34AXskvq9QicvCtEzq1Vzclu/tKF8Jq1Cg8JG2GL6/EmjgsCT7lXepE3g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/traverse": "^7.29.7",
+ "@babel/types": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-module-transforms": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.29.7.tgz",
+ "integrity": "sha512-UPUVSyXbOh627KiCIGQSgwWzGeBKLkaJ9PJEdrngIwMSzxLR4jS4+f1f1jb7VzBbg8nFLaYotvVPFCTqdrmTAg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-module-imports": "^7.29.7",
+ "@babel/helper-validator-identifier": "^7.29.7",
+ "@babel/traverse": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0"
+ }
+ },
+ "node_modules/@babel/helper-plugin-utils": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.29.7.tgz",
+ "integrity": "sha512-G7sHYigPY17oO5SYWnfD/0MTBwVR781S/JI643e/JhUYgVgWE/61SoW3NH9KWUKyKq5LVh3npif99Wkt6j86Jw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-string-parser": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.7.tgz",
+ "integrity": "sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-validator-identifier": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz",
+ "integrity": "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-validator-option": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.29.7.tgz",
+ "integrity": "sha512-N9ZErrD+yW5geCDtBqnOoxmR8+tNKiGuxKlDpuJxfsqpa2dFcexaziGAE/qoHLiDDreVNMupxGmSoNlyvsA3gw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helpers": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.7.tgz",
+ "integrity": "sha512-1k2lAGRMfHTcwuNYcCNUmaUffmQv8KWMfh2iJUUeRlwlwH4FdNG7mfPI10NPfLHJFThE4Tyr4mv7kTNZOiPuBg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/template": "^7.29.7",
+ "@babel/types": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/parser": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.7.tgz",
+ "integrity": "sha512-hnORnjP/1P/zFEndoeX+n+t1RwWRJiJpM/jO7FW32Kn9r5+sJB2JWOdYo4L6k78j15eCwY3Gm/7364B1EMwtNg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.29.7"
+ },
+ "bin": {
+ "parser": "bin/babel-parser.js"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-react-jsx-self": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.29.7.tgz",
+ "integrity": "sha512-TL0hMc9xzy86VD31nUiwzd5otRAcyEPcsegCxolO0PvcXuH1v0kECe/UIznYFihpkvU5wg/jk4v0TTEFfm53fw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-react-jsx-source": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.29.7.tgz",
+ "integrity": "sha512-06IyK09H3wi4cGbhDBwp5gUGo0IKtnYa8tyTiephirPCK6fbobVGiXMMI5zLQ4aKEYP3wZ3ArU44o+8KMrSG/Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/template": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.29.7.tgz",
+ "integrity": "sha512-puq+Gf35oI24FeN11LkoUQFqv9uwNeWpxXZi/Ji3rRIoKAzKnxRaZ+Gkj0vKS9ZCiTESfng1N9LyOyXvo+m+Gg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/code-frame": "^7.29.7",
+ "@babel/parser": "^7.29.7",
+ "@babel/types": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/traverse": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.7.tgz",
+ "integrity": "sha512-EhlfNQtZ+NK22w5BM61ciuiq1m58ed33Wr1Xan//ZRTy6hgjnwyCffRYwzsGXdASJSUJ1guZILsErh1eQcl+zw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/code-frame": "^7.29.7",
+ "@babel/generator": "^7.29.7",
+ "@babel/helper-globals": "^7.29.7",
+ "@babel/parser": "^7.29.7",
+ "@babel/template": "^7.29.7",
+ "@babel/types": "^7.29.7",
+ "debug": "^4.3.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/types": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.7.tgz",
+ "integrity": "sha512-4zBIxpPzowiZpusoFkyGVwakdRJUyuH5PxQ/PrqghfdFWWasvnCdPfQXHrenDai+gyLARulZjZowCOj6fjT4pA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-string-parser": "^7.29.7",
+ "@babel/helper-validator-identifier": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@egjs/hammerjs": {
+ "version": "2.0.17",
+ "resolved": "https://registry.npmjs.org/@egjs/hammerjs/-/hammerjs-2.0.17.tgz",
+ "integrity": "sha512-XQsZgjm2EcVUiZQf11UBJQfmZeEmOW8DpI1gsFeln6w0ae0ii4dMQEQ0kjl6DspdWX1aGY1/loyXnP0JS06e/A==",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "@types/hammerjs": "^2.0.36"
+ },
+ "engines": {
+ "node": ">=0.8.0"
+ }
+ },
+ "node_modules/@esbuild/aix-ppc64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.12.tgz",
+ "integrity": "sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "aix"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/android-arm": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.12.tgz",
+ "integrity": "sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/android-arm64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.12.tgz",
+ "integrity": "sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/android-x64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.12.tgz",
+ "integrity": "sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/darwin-arm64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.12.tgz",
+ "integrity": "sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/darwin-x64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.12.tgz",
+ "integrity": "sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/freebsd-arm64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.12.tgz",
+ "integrity": "sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/freebsd-x64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.12.tgz",
+ "integrity": "sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-arm": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.12.tgz",
+ "integrity": "sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-arm64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.12.tgz",
+ "integrity": "sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-ia32": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.12.tgz",
+ "integrity": "sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-loong64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.12.tgz",
+ "integrity": "sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==",
+ "cpu": [
+ "loong64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-mips64el": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.12.tgz",
+ "integrity": "sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==",
+ "cpu": [
+ "mips64el"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-ppc64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.12.tgz",
+ "integrity": "sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-riscv64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.12.tgz",
+ "integrity": "sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-s390x": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.12.tgz",
+ "integrity": "sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==",
+ "cpu": [
+ "s390x"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-x64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.12.tgz",
+ "integrity": "sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/netbsd-arm64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.12.tgz",
+ "integrity": "sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "netbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/netbsd-x64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.12.tgz",
+ "integrity": "sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "netbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/openbsd-arm64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.12.tgz",
+ "integrity": "sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/openbsd-x64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.12.tgz",
+ "integrity": "sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/openharmony-arm64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.12.tgz",
+ "integrity": "sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openharmony"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/sunos-x64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.12.tgz",
+ "integrity": "sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "sunos"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/win32-arm64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.12.tgz",
+ "integrity": "sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/win32-ia32": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.12.tgz",
+ "integrity": "sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/win32-x64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.12.tgz",
+ "integrity": "sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "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,
+ "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/@rolldown/pluginutils": {
+ "version": "1.0.0-beta.27",
+ "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-beta.27.tgz",
+ "integrity": "sha512-+d0F4MKMCbeVUJwG96uQ4SgAznZNSq93I3V+9NHA4OpvqG8mRCpGdKmK8l/dl02h2CCDHwW2FqilnTyDcAnqjA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@rollup/rollup-android-arm-eabi": {
+ "version": "4.60.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.60.4.tgz",
+ "integrity": "sha512-F5QXMSiFebS9hKZj02XhWLLnRpJ3B3AROP0tWbFBSj+6kCbg5m9j5JoHKd4mmSVy5mS/IMQloYgYxCuJC0fxEQ==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ]
+ },
+ "node_modules/@rollup/rollup-android-arm64": {
+ "version": "4.60.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.60.4.tgz",
+ "integrity": "sha512-GxxTKApUpzRhof7poWvCJHRF51C67u1R7D6DiluBE8wKU1u5GWE8t+v81JvJYtbawoBFX1hLv5Ei4eVjkWokaw==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ]
+ },
+ "node_modules/@rollup/rollup-darwin-arm64": {
+ "version": "4.60.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.60.4.tgz",
+ "integrity": "sha512-tua0TaJxMOB1R0V0RS1jFZ/RpURFDJIOR2A6jWwQeawuFyS4gBW+rntLRaQd0EQ4bd6Vp44Z2rXW+YYDBsj6IA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ]
+ },
+ "node_modules/@rollup/rollup-darwin-x64": {
+ "version": "4.60.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.60.4.tgz",
+ "integrity": "sha512-CSKq7MsP+5PFIcydhAiR1K0UhEI1A2jWXVKHPCBZ151yOutENwvnPocgVHkivu2kviURtCEB6zUQw0vs8RrhMg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ]
+ },
+ "node_modules/@rollup/rollup-freebsd-arm64": {
+ "version": "4.60.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.60.4.tgz",
+ "integrity": "sha512-+O8OkVdyvXMtJEciu2wS/pzm1IxntEEQx3z5TAVy4l32G0etZn+RsA48ARRrFm6Ri8fvqPQfgrvNxSjKAbnd3g==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ]
+ },
+ "node_modules/@rollup/rollup-freebsd-x64": {
+ "version": "4.60.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.60.4.tgz",
+ "integrity": "sha512-Iw3oMskH3AfNuhU0MSN7vNbdi4me/NiYo2azqPz/Le16zHSa+3RRmliCMWWQmh4lcndccU40xcJuTYJZxNo/lw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-arm-gnueabihf": {
+ "version": "4.60.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.60.4.tgz",
+ "integrity": "sha512-EIPRXTVQpHyF8WOo219AD2yEltPehLTcTMz2fn6JsatLYSzQf00hj3rulF+yauOlF9/FtM2WpkT/hJh/KJFGhA==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-arm-musleabihf": {
+ "version": "4.60.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.60.4.tgz",
+ "integrity": "sha512-J3Yh9PzzF1Ovah2At+lHiGQdsYgArxBbXv/zHfSyaiFQEqvNv7DcW98pCrmdjCZBrqBiKrKKe2V+aaSGWuBe/w==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-arm64-gnu": {
+ "version": "4.60.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.60.4.tgz",
+ "integrity": "sha512-BFDEZMYfUvLn37ONE1yMBojPxnMlTFsdyNoqncT0qFq1mAfllL+ATMMJd8TeuVMiX84s1KbcxcZbXInmcO2mRg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-arm64-musl": {
+ "version": "4.60.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.60.4.tgz",
+ "integrity": "sha512-pc9EYOSlOgdQ2uPl1o9PF6/kLSgaUosia7gOuS8mB69IxJvlclko1MECXysjs5ryez1/5zjYqx3+xYU0TU6R1A==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-loong64-gnu": {
+ "version": "4.60.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.60.4.tgz",
+ "integrity": "sha512-NxnomyxYerDh5n4iLrNa+sH+Z+U4BMEE46V2PgQ/hoB909i8gV1M5wPojWg9fk1jWpO3IQnOs20K4wyZuFLEFQ==",
+ "cpu": [
+ "loong64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-loong64-musl": {
+ "version": "4.60.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.60.4.tgz",
+ "integrity": "sha512-nbJnQ8a3z1mtmrwImCYhc6BGpThAyYVRQxw9uKSKG4wR6aAYno9sVjJ0zaZcW9BPJX1GbrDPf+SvdWjgTuDmnw==",
+ "cpu": [
+ "loong64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-ppc64-gnu": {
+ "version": "4.60.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.60.4.tgz",
+ "integrity": "sha512-2EU6acNrQLd8tYvo/LXW535wupT3m6fo7HKo6lr7ktQoItxTyOL1ZCR/GfGCuXl2vR+zmfI6eRXkSemafv+iVg==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-ppc64-musl": {
+ "version": "4.60.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.60.4.tgz",
+ "integrity": "sha512-WeBtoMuaMxiiIrO2IYP3xs6GMWkJP2C0EoT8beTLkUPmzV1i/UcOSVw1d5r9KBODtHKilG5yFxsGRnBbK3wJ4A==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-riscv64-gnu": {
+ "version": "4.60.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.60.4.tgz",
+ "integrity": "sha512-FJHFfqpKUI3A10WrWKiFbBZ7yVbGT4q4B5o1qKFFojqpaYoh9LrQgqWCmmcxQzVSXYtyB5bzkXrYzlHTs21MYA==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-riscv64-musl": {
+ "version": "4.60.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.60.4.tgz",
+ "integrity": "sha512-mcEl6CUT5IAUmQf1m9FYSmVqCJlpQ8r8eyftFUHG8i9OhY7BkBXSUdnLH5DOf0wCOjcP9v/QO93zpmF1SptCCw==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-s390x-gnu": {
+ "version": "4.60.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.60.4.tgz",
+ "integrity": "sha512-ynt3JxVd2w2buzoKDWIyiV1pJW93xlQic1THVLXilz429oijRpSHivZAgp65KBu+cMcgf1eVVjdnTLvPxgCuoQ==",
+ "cpu": [
+ "s390x"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-x64-gnu": {
+ "version": "4.60.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.60.4.tgz",
+ "integrity": "sha512-Boiz5+MsaROEWDf+GGEwF8VMHGhlUoQMtIPjOgA5fv4osupqTVnJteQNKJwUcnUog2G55jYXH7KZFFiJe0TEzQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-x64-musl": {
+ "version": "4.60.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.60.4.tgz",
+ "integrity": "sha512-+qfSY27qIrFfI/Hom04KYFw3GKZSGU4lXus51wsb5EuySfFlWRwjkKWoE9emgRw/ukoT4Udsj4W/+xxG8VbPKg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-openbsd-x64": {
+ "version": "4.60.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.60.4.tgz",
+ "integrity": "sha512-VpTfOPHgVXEBeeR8hZ2O0F3aSso+JDWqTWmTmzcQKted54IAdUVbxE+j/MVxUsKa8L20HJhv3vUezVPoquqWjA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openbsd"
+ ]
+ },
+ "node_modules/@rollup/rollup-openharmony-arm64": {
+ "version": "4.60.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.60.4.tgz",
+ "integrity": "sha512-IPOsh5aRYuLv/nkU51X10Bf75Bsf6+gZdx1X+QP5QM6lIJFHHqbHLG0uJn/hWthzo13UAc2umiUorqZy3axoZg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openharmony"
+ ]
+ },
+ "node_modules/@rollup/rollup-win32-arm64-msvc": {
+ "version": "4.60.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.60.4.tgz",
+ "integrity": "sha512-4QzE9E81OohJ/HKzHhsqU+zcYYojVOXlFMs1DdyMT6qXl/niOH7AVElmmEdUNHHS/oRkc++d5k6Vy85zFs0DEw==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ]
+ },
+ "node_modules/@rollup/rollup-win32-ia32-msvc": {
+ "version": "4.60.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.60.4.tgz",
+ "integrity": "sha512-zTPgT1YuHHcd+Tmx7h8aml0FWFVelV5N54oHow9SLj+GfoDy/huQ+UV396N/C7KpMDMiPspRktzM1/0r1usYEA==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ]
+ },
+ "node_modules/@rollup/rollup-win32-x64-gnu": {
+ "version": "4.60.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.60.4.tgz",
+ "integrity": "sha512-DRS4G7mi9lJxqEDezIkKCaUIKCrLUUDCUaCsTPCi/rtqaC6D/jjwslMQyiDU50Ka0JKpeXeRBFBAXwArY52vBw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ]
+ },
+ "node_modules/@rollup/rollup-win32-x64-msvc": {
+ "version": "4.60.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.60.4.tgz",
+ "integrity": "sha512-QVTUovf40zgTqlFVrKA1uXMVvU2QWEFWfAH8Wdc48IxLvrJMQVMBRjuQyUpzZCDkakImib9eVazbWlC6ksWtJw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ]
+ },
+ "node_modules/@tailwindcss/node": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.3.0.tgz",
+ "integrity": "sha512-aFb4gUhFOgdh9AXo4IzBEOzBkkAxm9VigwDJnMIYv3lcfXCJVesNfbEaBl4BNgVRyid92AmdviqwBUBRKSeY3g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/remapping": "^2.3.5",
+ "enhanced-resolve": "^5.21.0",
+ "jiti": "^2.6.1",
+ "lightningcss": "1.32.0",
+ "magic-string": "^0.30.21",
+ "source-map-js": "^1.2.1",
+ "tailwindcss": "4.3.0"
+ }
+ },
+ "node_modules/@tailwindcss/oxide": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.3.0.tgz",
+ "integrity": "sha512-F7HZGBeN9I0/AuuJS5PwcD8xayx5ri5GhjYUDBEVYUkexyA/giwbDNjRVrxSezE3T250OU2K/wp/ltWx3UOefg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 20"
+ },
+ "optionalDependencies": {
+ "@tailwindcss/oxide-android-arm64": "4.3.0",
+ "@tailwindcss/oxide-darwin-arm64": "4.3.0",
+ "@tailwindcss/oxide-darwin-x64": "4.3.0",
+ "@tailwindcss/oxide-freebsd-x64": "4.3.0",
+ "@tailwindcss/oxide-linux-arm-gnueabihf": "4.3.0",
+ "@tailwindcss/oxide-linux-arm64-gnu": "4.3.0",
+ "@tailwindcss/oxide-linux-arm64-musl": "4.3.0",
+ "@tailwindcss/oxide-linux-x64-gnu": "4.3.0",
+ "@tailwindcss/oxide-linux-x64-musl": "4.3.0",
+ "@tailwindcss/oxide-wasm32-wasi": "4.3.0",
+ "@tailwindcss/oxide-win32-arm64-msvc": "4.3.0",
+ "@tailwindcss/oxide-win32-x64-msvc": "4.3.0"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-android-arm64": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-android-arm64/-/oxide-android-arm64-4.3.0.tgz",
+ "integrity": "sha512-TJPiq67tKlLuObP6RkwvVGDoxCMBVtDgKkLfa/uyj7/FyxvQwHS+UOnVrXXgbEsfUaMgiVvC4KbJnRr26ho4Ng==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">= 20"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-darwin-arm64": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-arm64/-/oxide-darwin-arm64-4.3.0.tgz",
+ "integrity": "sha512-oMN/WZRb+SO37BmUElEgeEWuU8E/HXRkiODxJxLe1UTHVXLrdVSgfaJV7pSlhRGMSOiXLuxTIjfsF3wYvz8cgQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">= 20"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-darwin-x64": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-x64/-/oxide-darwin-x64-4.3.0.tgz",
+ "integrity": "sha512-N6CUmu4a6bKVADfw77p+iw6Yd9Q3OBhe0veaDX+QazfuVYlQsHfDgxBrsjQ/IW+zywL8mTrNd0SdJT/zgtvMdA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">= 20"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-freebsd-x64": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-freebsd-x64/-/oxide-freebsd-x64-4.3.0.tgz",
+ "integrity": "sha512-zDL5hBkQdH5C6MpqbK3gQAgP80tsMwSI26vjOzjJtNCMUo0lFgOItzHKBIupOZNQxt3ouPH7RPhvNhiTfCe5CQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">= 20"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-linux-arm-gnueabihf": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm-gnueabihf/-/oxide-linux-arm-gnueabihf-4.3.0.tgz",
+ "integrity": "sha512-R06HdNi7A7OEoMsf6d4tjZ71RCWnZQPHj2mnotSFURjNLdBC+cIgXQ7l81CqeoiQftjf6OOblxXMInMgN2VzMA==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 20"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-linux-arm64-gnu": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-gnu/-/oxide-linux-arm64-gnu-4.3.0.tgz",
+ "integrity": "sha512-qTJHELX8jetjhRQHCLilkVLmybpzNQAtaI/gaoVoidn/ufbNDbAo8KlK2J+yPoc8wQxvDxCmh/5lr8nC1+lTbg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 20"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-linux-arm64-musl": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-musl/-/oxide-linux-arm64-musl-4.3.0.tgz",
+ "integrity": "sha512-Z6sukiQsngnWO+l39X4pPbiWT81IC+PLKF+PHxIlyZbGNb9MODfYlXEVlFvej5BOZInWX01kVyzeLvHsXhfczQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 20"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-linux-x64-gnu": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-gnu/-/oxide-linux-x64-gnu-4.3.0.tgz",
+ "integrity": "sha512-DRNdQRpSGzRGfARVuVkxvM8Q12nh19l4BF/G7zGA1oe+9wcC6saFBHTISrpIcKzhiXtSrlSrluCfvMuledoCTQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 20"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-linux-x64-musl": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-musl/-/oxide-linux-x64-musl-4.3.0.tgz",
+ "integrity": "sha512-Z0IADbDo8bh6I7h2IQMx601AdXBLfFpEdUotft86evd/8ZPflZe9COPO8Q1vw+pfLWIUo9zN/JGZvwuAJqduqg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 20"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-wasm32-wasi": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-wasm32-wasi/-/oxide-wasm32-wasi-4.3.0.tgz",
+ "integrity": "sha512-HNZGOUxEmElksYR7S6sC5jTeNGpobAsy9u7Gu0AskJ8/20FR9GqebUyB+HBcU/ax6BHuiuJi+Oda4B+YX6H1yA==",
+ "bundleDependencies": [
+ "@napi-rs/wasm-runtime",
+ "@emnapi/core",
+ "@emnapi/runtime",
+ "@tybys/wasm-util",
+ "@emnapi/wasi-threads",
+ "tslib"
+ ],
+ "cpu": [
+ "wasm32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "@emnapi/core": "^1.10.0",
+ "@emnapi/runtime": "^1.10.0",
+ "@emnapi/wasi-threads": "^1.2.1",
+ "@napi-rs/wasm-runtime": "^1.1.4",
+ "@tybys/wasm-util": "^0.10.1",
+ "tslib": "^2.8.1"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-win32-arm64-msvc": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-arm64-msvc/-/oxide-win32-arm64-msvc-4.3.0.tgz",
+ "integrity": "sha512-Pe+RPVTi1T+qymuuRpcdvwSVZjnll/f7n8gBxMMh3xLTctMDKqpdfGimbMyioqtLhUYZxdJ9wGNhV7MKHvgZsQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 20"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-win32-x64-msvc": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-x64-msvc/-/oxide-win32-x64-msvc-4.3.0.tgz",
+ "integrity": "sha512-Mvrf2kXW/yeW/OTezZlCGOirXRcUuLIBx/5Y12BaPM7wJoryG6dfS/NJL8aBPqtTEx/Vm4T4vKzFUcKDT+TKUA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 20"
+ }
+ },
+ "node_modules/@tailwindcss/vite": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/vite/-/vite-4.3.0.tgz",
+ "integrity": "sha512-t6J3OrB5Fc0ExuhohouH0fWUGMYL6PTLhW+E7zIk/pdbnJARZDCwjBznFnkh5ynRnIRSI4YjtTH0t6USjJISrw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@tailwindcss/node": "4.3.0",
+ "@tailwindcss/oxide": "4.3.0",
+ "tailwindcss": "4.3.0"
+ },
+ "peerDependencies": {
+ "vite": "^5.2.0 || ^6 || ^7 || ^8"
+ }
+ },
+ "node_modules/@types/babel__core": {
+ "version": "7.20.5",
+ "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz",
+ "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/parser": "^7.20.7",
+ "@babel/types": "^7.20.7",
+ "@types/babel__generator": "*",
+ "@types/babel__template": "*",
+ "@types/babel__traverse": "*"
+ }
+ },
+ "node_modules/@types/babel__generator": {
+ "version": "7.27.0",
+ "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz",
+ "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.0.0"
+ }
+ },
+ "node_modules/@types/babel__template": {
+ "version": "7.4.4",
+ "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz",
+ "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/parser": "^7.1.0",
+ "@babel/types": "^7.0.0"
+ }
+ },
+ "node_modules/@types/babel__traverse": {
+ "version": "7.28.0",
+ "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz",
+ "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.28.2"
+ }
+ },
+ "node_modules/@types/estree": {
+ "version": "1.0.8",
+ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz",
+ "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/hammerjs": {
+ "version": "2.0.46",
+ "resolved": "https://registry.npmjs.org/@types/hammerjs/-/hammerjs-2.0.46.tgz",
+ "integrity": "sha512-ynRvcq6wvqexJ9brDMS4BnBLzmr0e14d6ZJTEShTBWKymQiHwlAyGu0ZPEFI2Fh1U53F7tN9ufClWM5KvqkKOw==",
+ "license": "MIT",
+ "peer": true
+ },
+ "node_modules/@types/react": {
+ "version": "19.2.15",
+ "resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.15.tgz",
+ "integrity": "sha512-eRwcGNHve+E8qtEQSSRl6urh+rFop4v8gm6O8rGv25CodbvFdLjA1vVQ1KkiFE0w0UPOnb8tDiFKL5lp0rtY5Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "csstype": "^3.2.2"
+ }
+ },
+ "node_modules/@types/react-dom": {
+ "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,
+ "license": "MIT",
+ "peerDependencies": {
+ "@types/react": "^19.2.0"
+ }
+ },
+ "node_modules/@vitejs/plugin-react": {
+ "version": "4.7.0",
+ "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.7.0.tgz",
+ "integrity": "sha512-gUu9hwfWvvEDBBmgtAowQCojwZmJ5mcLn3aufeCsitijs3+f2NsrPtlAWIR6OPiqljl96GVCUbLe0HyqIpVaoA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/core": "^7.28.0",
+ "@babel/plugin-transform-react-jsx-self": "^7.27.1",
+ "@babel/plugin-transform-react-jsx-source": "^7.27.1",
+ "@rolldown/pluginutils": "1.0.0-beta.27",
+ "@types/babel__core": "^7.20.5",
+ "react-refresh": "^0.17.0"
+ },
+ "engines": {
+ "node": "^14.18.0 || >=16.0.0"
+ },
+ "peerDependencies": {
+ "vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0"
+ }
+ },
+ "node_modules/baseline-browser-mapping": {
+ "version": "2.10.33",
+ "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.33.tgz",
+ "integrity": "sha512-bA6+tcSLpz2tIEdDXZPpPTIuxBcC4+w6SieaYyfigIa4h8GlFxbA17v22Vx3JUtuZQj9SgOsnbK+aTBzyDyEuw==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "bin": {
+ "baseline-browser-mapping": "dist/cli.cjs"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/browserslist": {
+ "version": "4.28.2",
+ "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.2.tgz",
+ "integrity": "sha512-48xSriZYYg+8qXna9kwqjIVzuQxi+KYWp2+5nCYnYKPTr0LvD89Jqk2Or5ogxz0NUMfIjhh2lIUX/LyX9B4oIg==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/browserslist"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/browserslist"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "baseline-browser-mapping": "^2.10.12",
+ "caniuse-lite": "^1.0.30001782",
+ "electron-to-chromium": "^1.5.328",
+ "node-releases": "^2.0.36",
+ "update-browserslist-db": "^1.2.3"
+ },
+ "bin": {
+ "browserslist": "cli.js"
+ },
+ "engines": {
+ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"
+ }
+ },
+ "node_modules/caniuse-lite": {
+ "version": "1.0.30001793",
+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001793.tgz",
+ "integrity": "sha512-iwSsYWaCOoh26cV8NwNRViHlrfUvYsHDfRVcbtmw0Kg6PJIZZXwMkj1442FYLBGkeUf1juAsU3DTfxW579mrPA==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/browserslist"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/caniuse-lite"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "CC-BY-4.0"
+ },
+ "node_modules/component-emitter": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-2.0.0.tgz",
+ "integrity": "sha512-4m5s3Me2xxlVKG9PkZpQqHQR7bgpnN7joDMJ4yvVkVXngjoITG76IaZmzmywSeRTeTpc6N6r3H3+KyUurV8OYw==",
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/convert-source-map": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",
+ "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/cookie": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/cookie/-/cookie-1.1.1.tgz",
+ "integrity": "sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/csstype": {
+ "version": "3.2.3",
+ "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz",
+ "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/debug": {
+ "version": "4.4.3",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
+ "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ms": "^2.1.3"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/detect-libc": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",
+ "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/electron-to-chromium": {
+ "version": "1.5.364",
+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.364.tgz",
+ "integrity": "sha512-G/dYE3+AYhyHwzTwg8UbnXf7zqMERYh7l2jJ3QujhFsH8agSYwtnGAR2aZ7f0AakIKJXd5En/Hre4igIUrdlYw==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/enhanced-resolve": {
+ "version": "5.22.1",
+ "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.22.1.tgz",
+ "integrity": "sha512-6QEuw3zoX1SJQc7b87aBXke/no+mG2bTBgw29gWMQonLmpEkWoCAVkl+M49e48AZlWzxiDzDZzYdp6kobcyLww==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "graceful-fs": "^4.2.4",
+ "tapable": "^2.3.3"
+ },
+ "engines": {
+ "node": ">=10.13.0"
+ }
+ },
+ "node_modules/esbuild": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.12.tgz",
+ "integrity": "sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "MIT",
+ "bin": {
+ "esbuild": "bin/esbuild"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "optionalDependencies": {
+ "@esbuild/aix-ppc64": "0.25.12",
+ "@esbuild/android-arm": "0.25.12",
+ "@esbuild/android-arm64": "0.25.12",
+ "@esbuild/android-x64": "0.25.12",
+ "@esbuild/darwin-arm64": "0.25.12",
+ "@esbuild/darwin-x64": "0.25.12",
+ "@esbuild/freebsd-arm64": "0.25.12",
+ "@esbuild/freebsd-x64": "0.25.12",
+ "@esbuild/linux-arm": "0.25.12",
+ "@esbuild/linux-arm64": "0.25.12",
+ "@esbuild/linux-ia32": "0.25.12",
+ "@esbuild/linux-loong64": "0.25.12",
+ "@esbuild/linux-mips64el": "0.25.12",
+ "@esbuild/linux-ppc64": "0.25.12",
+ "@esbuild/linux-riscv64": "0.25.12",
+ "@esbuild/linux-s390x": "0.25.12",
+ "@esbuild/linux-x64": "0.25.12",
+ "@esbuild/netbsd-arm64": "0.25.12",
+ "@esbuild/netbsd-x64": "0.25.12",
+ "@esbuild/openbsd-arm64": "0.25.12",
+ "@esbuild/openbsd-x64": "0.25.12",
+ "@esbuild/openharmony-arm64": "0.25.12",
+ "@esbuild/sunos-x64": "0.25.12",
+ "@esbuild/win32-arm64": "0.25.12",
+ "@esbuild/win32-ia32": "0.25.12",
+ "@esbuild/win32-x64": "0.25.12"
+ }
+ },
+ "node_modules/escalade": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",
+ "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/fdir": {
+ "version": "6.5.0",
+ "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",
+ "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12.0.0"
+ },
+ "peerDependencies": {
+ "picomatch": "^3 || ^4"
+ },
+ "peerDependenciesMeta": {
+ "picomatch": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/fsevents": {
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
+ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
+ }
+ },
+ "node_modules/gensync": {
+ "version": "1.0.0-beta.2",
+ "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz",
+ "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/graceful-fs": {
+ "version": "4.2.11",
+ "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",
+ "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/jiti": {
+ "version": "2.7.0",
+ "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.7.0.tgz",
+ "integrity": "sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "jiti": "lib/jiti-cli.mjs"
+ }
+ },
+ "node_modules/js-tokens": {
+ "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": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz",
+ "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "jsesc": "bin/jsesc"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/json5": {
+ "version": "2.2.3",
+ "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",
+ "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "json5": "lib/cli.js"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/keycharm": {
+ "version": "0.4.0",
+ "resolved": "https://registry.npmjs.org/keycharm/-/keycharm-0.4.0.tgz",
+ "integrity": "sha512-TyQTtsabOVv3MeOpR92sIKk/br9wxS+zGj4BG7CR8YbK4jM3tyIBaF0zhzeBUMx36/Q/iQLOKKOT+3jOQtemRQ==",
+ "license": "(Apache-2.0 OR MIT)",
+ "peer": true
+ },
+ "node_modules/lightningcss": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.32.0.tgz",
+ "integrity": "sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==",
+ "dev": true,
+ "license": "MPL-2.0",
+ "dependencies": {
+ "detect-libc": "^2.0.3"
+ },
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ },
+ "optionalDependencies": {
+ "lightningcss-android-arm64": "1.32.0",
+ "lightningcss-darwin-arm64": "1.32.0",
+ "lightningcss-darwin-x64": "1.32.0",
+ "lightningcss-freebsd-x64": "1.32.0",
+ "lightningcss-linux-arm-gnueabihf": "1.32.0",
+ "lightningcss-linux-arm64-gnu": "1.32.0",
+ "lightningcss-linux-arm64-musl": "1.32.0",
+ "lightningcss-linux-x64-gnu": "1.32.0",
+ "lightningcss-linux-x64-musl": "1.32.0",
+ "lightningcss-win32-arm64-msvc": "1.32.0",
+ "lightningcss-win32-x64-msvc": "1.32.0"
+ }
+ },
+ "node_modules/lightningcss-android-arm64": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.32.0.tgz",
+ "integrity": "sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-darwin-arm64": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.32.0.tgz",
+ "integrity": "sha512-RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-darwin-x64": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.32.0.tgz",
+ "integrity": "sha512-U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-freebsd-x64": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.32.0.tgz",
+ "integrity": "sha512-JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-linux-arm-gnueabihf": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.32.0.tgz",
+ "integrity": "sha512-x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-linux-arm64-gnu": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.32.0.tgz",
+ "integrity": "sha512-0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-linux-arm64-musl": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.32.0.tgz",
+ "integrity": "sha512-UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-linux-x64-gnu": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.32.0.tgz",
+ "integrity": "sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-linux-x64-musl": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.32.0.tgz",
+ "integrity": "sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-win32-arm64-msvc": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.32.0.tgz",
+ "integrity": "sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-win32-x64-msvc": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.32.0.tgz",
+ "integrity": "sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lru-cache": {
+ "version": "5.1.1",
+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz",
+ "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "yallist": "^3.0.2"
+ }
+ },
+ "node_modules/magic-string": {
+ "version": "0.30.21",
+ "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz",
+ "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/sourcemap-codec": "^1.5.5"
+ }
+ },
+ "node_modules/ms": {
+ "version": "2.1.3",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/nanoid": {
+ "version": "3.3.12",
+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.12.tgz",
+ "integrity": "sha512-ZB9RH/39qpq5Vu6Y+NmUaFhQR6pp+M2Xt76XBnEwDaGcVAqhlvxrl3B2bKS5D3NH3QR76v3aSrKaF/Kiy7lEtQ==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "bin": {
+ "nanoid": "bin/nanoid.cjs"
+ },
+ "engines": {
+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
+ }
+ },
+ "node_modules/node-releases": {
+ "version": "2.0.46",
+ "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.46.tgz",
+ "integrity": "sha512-GYVXHE2KnrzAfsAjl4uP++evGFCrAU1jta4ubEjIG7YWt/64Gqv66a30yKwWczVjA6j3bM4nBwH7Pk1JmDHaxQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/picocolors": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
+ "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/picomatch": {
+ "version": "4.0.4",
+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz",
+ "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/jonschlinkert"
+ }
+ },
+ "node_modules/postcss": {
+ "version": "8.5.15",
+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.15.tgz",
+ "integrity": "sha512-FfR8sjd4em2T6fb3I2MwAJU7HWVMr9zba+enmQeeWFfCbm+UOC/0X4DS8XtpUTMwWMGbjKYP7xjfNekzyGmB3A==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/postcss/"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/postcss"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "nanoid": "^3.3.12",
+ "picocolors": "^1.1.1",
+ "source-map-js": "^1.2.1"
+ },
+ "engines": {
+ "node": "^10 || ^12 || >=14"
+ }
+ },
+ "node_modules/react": {
+ "version": "19.2.6",
+ "resolved": "https://registry.npmjs.org/react/-/react-19.2.6.tgz",
+ "integrity": "sha512-sfWGGfavi0xr8Pg0sVsyHMAOziVYKgPLNrS7ig+ivMNb3wbCBw3KxtflsGBAwD3gYQlE/AEZsTLgToRrSCjb0Q==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/react-dom": {
+ "version": "19.2.6",
+ "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.6.tgz",
+ "integrity": "sha512-0prMI+hvBbPjsWnxDLxlCGyM8PN6UuWjEUCYmZhO67xIV9Xasa/r/vDnq+Xyq4Lo27g8QSbO5YzARu0D1Sps3g==",
+ "license": "MIT",
+ "dependencies": {
+ "scheduler": "^0.27.0"
+ },
+ "peerDependencies": {
+ "react": "^19.2.6"
+ }
+ },
+ "node_modules/react-refresh": {
+ "version": "0.17.0",
+ "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.17.0.tgz",
+ "integrity": "sha512-z6F7K9bV85EfseRCp2bzrpyQ0Gkw1uLoCel9XBVWPg/TjRj94SkJzUTGfOa4bs7iJvBWtQG0Wq7wnI0syw3EBQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/react-router": {
+ "version": "7.16.0",
+ "resolved": "https://registry.npmjs.org/react-router/-/react-router-7.16.0.tgz",
+ "integrity": "sha512-wArC8lVyJb3+jM9OpDyW6hLCizACWkvQR/sSGqSs+o5uEXEtGlqdZ4v8hENR3Jad6i+LRkK93q/+bQAcvl6V1A==",
+ "license": "MIT",
+ "dependencies": {
+ "cookie": "^1.0.1",
+ "set-cookie-parser": "^2.6.0"
+ },
+ "engines": {
+ "node": ">=20.0.0"
+ },
+ "peerDependencies": {
+ "react": ">=18",
+ "react-dom": ">=18"
+ },
+ "peerDependenciesMeta": {
+ "react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/react-router-dom": {
+ "version": "7.16.0",
+ "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-7.16.0.tgz",
+ "integrity": "sha512-kMUAbimWB5FVbF4Bce4bJsiKJWLIUHq/mEG8+CFDnCSgltptBiG5nguducmsJeGKytlCvQud9Qhzpn49iduTlA==",
+ "license": "MIT",
+ "dependencies": {
+ "react-router": "7.16.0"
+ },
+ "engines": {
+ "node": ">=20.0.0"
+ },
+ "peerDependencies": {
+ "react": ">=18",
+ "react-dom": ">=18"
+ }
+ },
+ "node_modules/rollup": {
+ "version": "4.60.4",
+ "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.60.4.tgz",
+ "integrity": "sha512-WHeFSbZYsPu3+bLoNRUuAO+wavNlocOPf3wSHTP7hcFKVnJeWsYlCDbr3mTS14FCizf9ccIxXA8sGL8zKeQN3g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/estree": "1.0.8"
+ },
+ "bin": {
+ "rollup": "dist/bin/rollup"
+ },
+ "engines": {
+ "node": ">=18.0.0",
+ "npm": ">=8.0.0"
+ },
+ "optionalDependencies": {
+ "@rollup/rollup-android-arm-eabi": "4.60.4",
+ "@rollup/rollup-android-arm64": "4.60.4",
+ "@rollup/rollup-darwin-arm64": "4.60.4",
+ "@rollup/rollup-darwin-x64": "4.60.4",
+ "@rollup/rollup-freebsd-arm64": "4.60.4",
+ "@rollup/rollup-freebsd-x64": "4.60.4",
+ "@rollup/rollup-linux-arm-gnueabihf": "4.60.4",
+ "@rollup/rollup-linux-arm-musleabihf": "4.60.4",
+ "@rollup/rollup-linux-arm64-gnu": "4.60.4",
+ "@rollup/rollup-linux-arm64-musl": "4.60.4",
+ "@rollup/rollup-linux-loong64-gnu": "4.60.4",
+ "@rollup/rollup-linux-loong64-musl": "4.60.4",
+ "@rollup/rollup-linux-ppc64-gnu": "4.60.4",
+ "@rollup/rollup-linux-ppc64-musl": "4.60.4",
+ "@rollup/rollup-linux-riscv64-gnu": "4.60.4",
+ "@rollup/rollup-linux-riscv64-musl": "4.60.4",
+ "@rollup/rollup-linux-s390x-gnu": "4.60.4",
+ "@rollup/rollup-linux-x64-gnu": "4.60.4",
+ "@rollup/rollup-linux-x64-musl": "4.60.4",
+ "@rollup/rollup-openbsd-x64": "4.60.4",
+ "@rollup/rollup-openharmony-arm64": "4.60.4",
+ "@rollup/rollup-win32-arm64-msvc": "4.60.4",
+ "@rollup/rollup-win32-ia32-msvc": "4.60.4",
+ "@rollup/rollup-win32-x64-gnu": "4.60.4",
+ "@rollup/rollup-win32-x64-msvc": "4.60.4",
+ "fsevents": "~2.3.2"
+ }
+ },
+ "node_modules/scheduler": {
+ "version": "0.27.0",
+ "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.27.0.tgz",
+ "integrity": "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==",
+ "license": "MIT"
+ },
+ "node_modules/semver": {
+ "version": "6.3.1",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",
+ "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ }
+ },
+ "node_modules/set-cookie-parser": {
+ "version": "2.7.2",
+ "resolved": "https://registry.npmjs.org/set-cookie-parser/-/set-cookie-parser-2.7.2.tgz",
+ "integrity": "sha512-oeM1lpU/UvhTxw+g3cIfxXHyJRc/uidd3yK1P242gzHds0udQBYzs3y8j4gCCW+ZJ7ad0yctld8RYO+bdurlvw==",
+ "license": "MIT"
+ },
+ "node_modules/source-map-js": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",
+ "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/tailwindcss": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.3.0.tgz",
+ "integrity": "sha512-y6nxMGB1nMW9R6k96e5gdIFzcfL/gTJRNaqGes1YvkLnPVXzWgbqFF2yLC0T8G774n24cx3Pe8XrKoniCOAH+Q==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/tapable": {
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.3.3.tgz",
+ "integrity": "sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/webpack"
+ }
+ },
+ "node_modules/tinyglobby": {
+ "version": "0.2.16",
+ "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.16.tgz",
+ "integrity": "sha512-pn99VhoACYR8nFHhxqix+uvsbXineAasWm5ojXoN8xEwK5Kd3/TrhNn1wByuD52UxWRLy8pu+kRMniEi6Eq9Zg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fdir": "^6.5.0",
+ "picomatch": "^4.0.4"
+ },
+ "engines": {
+ "node": ">=12.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/SuperchupuDev"
+ }
+ },
+ "node_modules/typescript": {
+ "version": "5.9.3",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",
+ "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "bin": {
+ "tsc": "bin/tsc",
+ "tsserver": "bin/tsserver"
+ },
+ "engines": {
+ "node": ">=14.17"
+ }
+ },
+ "node_modules/update-browserslist-db": {
+ "version": "1.2.3",
+ "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz",
+ "integrity": "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/browserslist"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/browserslist"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "escalade": "^3.2.0",
+ "picocolors": "^1.1.1"
+ },
+ "bin": {
+ "update-browserslist-db": "cli.js"
+ },
+ "peerDependencies": {
+ "browserslist": ">= 4.21.0"
+ }
+ },
+ "node_modules/uuid": {
+ "version": "14.0.0",
+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-14.0.0.tgz",
+ "integrity": "sha512-Qo+uWgilfSmAhXCMav1uYFynlQO7fMFiMVZsQqZRMIXp0O7rR7qjkj+cPvBHLgBqi960QCoo/PH2/6ZtVqKvrg==",
+ "funding": [
+ "https://github.com/sponsors/broofa",
+ "https://github.com/sponsors/ctavan"
+ ],
+ "license": "MIT",
+ "peer": true,
+ "bin": {
+ "uuid": "dist-node/bin/uuid"
+ }
+ },
+ "node_modules/vis-data": {
+ "version": "8.0.4",
+ "resolved": "https://registry.npmjs.org/vis-data/-/vis-data-8.0.4.tgz",
+ "integrity": "sha512-TsN0sMHqIRpdfg6TNPtfdINpkgxtnQP6JNWCaiSwvou5seXqKiP5eERkaBg+Y56wyJ4FZTeOEs/dEmWEPrpltQ==",
+ "license": "(Apache-2.0 OR MIT)",
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/visjs"
+ },
+ "peerDependencies": {
+ "uuid": "^3.4.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0 || ^13.0.0 || ^14.0.0",
+ "vis-util": ">=6.0.0"
+ }
+ },
+ "node_modules/vis-network": {
+ "version": "10.1.0",
+ "resolved": "https://registry.npmjs.org/vis-network/-/vis-network-10.1.0.tgz",
+ "integrity": "sha512-D7b5p/C6SwWv1BlH9EDdtP0Tje/PJzSBWKef9qy2DyTC14QB7KBcnAZxIyW2m7mFYyfoeR+k5GF747zDcIhaKA==",
+ "license": "(Apache-2.0 OR MIT)",
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/visjs"
+ },
+ "peerDependencies": {
+ "@egjs/hammerjs": "^2.0.0",
+ "component-emitter": "^1.3.0 || ^2.0.0",
+ "keycharm": "^0.2.0 || ^0.3.0 || ^0.4.0",
+ "uuid": "^3.4.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0 || ^13.0.0 || ^14.0.0",
+ "vis-data": ">=8.0.0",
+ "vis-util": ">=6.0.0"
+ }
+ },
+ "node_modules/vis-util": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/vis-util/-/vis-util-6.0.0.tgz",
+ "integrity": "sha512-qtpts3HRma0zPe4bO7t9A2uejkRNj8Z2Tb6do6lN85iPNWExFkUiVhdAq5uLGIUqBFduyYeqWJKv/jMkxX0R5g==",
+ "license": "(Apache-2.0 OR MIT)",
+ "peer": true,
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/visjs"
+ },
+ "peerDependencies": {
+ "@egjs/hammerjs": "^2.0.0",
+ "component-emitter": "^1.3.0 || ^2.0.0"
+ }
+ },
+ "node_modules/vite": {
+ "version": "6.4.2",
+ "resolved": "https://registry.npmjs.org/vite/-/vite-6.4.2.tgz",
+ "integrity": "sha512-2N/55r4JDJ4gdrCvGgINMy+HH3iRpNIz8K6SFwVsA+JbQScLiC+clmAxBgwiSPgcG9U15QmvqCGWzMbqda5zGQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "esbuild": "^0.25.0",
+ "fdir": "^6.4.4",
+ "picomatch": "^4.0.2",
+ "postcss": "^8.5.3",
+ "rollup": "^4.34.9",
+ "tinyglobby": "^0.2.13"
+ },
+ "bin": {
+ "vite": "bin/vite.js"
+ },
+ "engines": {
+ "node": "^18.0.0 || ^20.0.0 || >=22.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/vitejs/vite?sponsor=1"
+ },
+ "optionalDependencies": {
+ "fsevents": "~2.3.3"
+ },
+ "peerDependencies": {
+ "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0",
+ "jiti": ">=1.21.0",
+ "less": "*",
+ "lightningcss": "^1.21.0",
+ "sass": "*",
+ "sass-embedded": "*",
+ "stylus": "*",
+ "sugarss": "*",
+ "terser": "^5.16.0",
+ "tsx": "^4.8.1",
+ "yaml": "^2.4.2"
+ },
+ "peerDependenciesMeta": {
+ "@types/node": {
+ "optional": true
+ },
+ "jiti": {
+ "optional": true
+ },
+ "less": {
+ "optional": true
+ },
+ "lightningcss": {
+ "optional": true
+ },
+ "sass": {
+ "optional": true
+ },
+ "sass-embedded": {
+ "optional": true
+ },
+ "stylus": {
+ "optional": true
+ },
+ "sugarss": {
+ "optional": true
+ },
+ "terser": {
+ "optional": true
+ },
+ "tsx": {
+ "optional": true
+ },
+ "yaml": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/yallist": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz",
+ "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==",
+ "dev": true,
+ "license": "ISC"
+ }
+ }
+}
diff --git a/console/package.json b/console/package.json
new file mode 100644
index 0000000..190378f
--- /dev/null
+++ b/console/package.json
@@ -0,0 +1,27 @@
+{
+ "name": "brainapi-console",
+ "private": true,
+ "version": "0.1.0",
+ "type": "module",
+ "scripts": {
+ "dev": "vite",
+ "build": "tsc -b && vite build",
+ "preview": "vite preview"
+ },
+ "dependencies": {
+ "react": "^19.1.0",
+ "react-dom": "^19.1.0",
+ "react-router-dom": "^7.6.0",
+ "vis-data": "^8.0.3",
+ "vis-network": "^10.0.2"
+ },
+ "devDependencies": {
+ "@tailwindcss/vite": "^4.1.8",
+ "@types/react": "^19.1.2",
+ "@types/react-dom": "^19.1.2",
+ "@vitejs/plugin-react": "^4.4.1",
+ "tailwindcss": "^4.1.8",
+ "typescript": "^5.8.3",
+ "vite": "^6.3.5"
+ }
+}
diff --git a/console/src/App.tsx b/console/src/App.tsx
new file mode 100644
index 0000000..226aec3
--- /dev/null
+++ b/console/src/App.tsx
@@ -0,0 +1,43 @@
+import { Navigate, Route, Routes } from "react-router-dom";
+import { getSession } from "./lib/api";
+import Layout from "./components/Layout";
+import LoginPage from "./pages/LoginPage";
+import OverviewPage from "./pages/OverviewPage";
+import GraphPage from "./pages/GraphPage";
+import DataPage from "./pages/DataPage";
+import ObservationsPage from "./pages/ObservationsPage";
+import VectorsPage from "./pages/VectorsPage";
+import TasksPage from "./pages/TasksPage";
+import IngestPage from "./pages/IngestPage";
+
+function RequireAuth({ children }: { children: React.ReactNode }) {
+ if (!getSession()) {
+ return <Navigate to="/login" replace />;
+ }
+ return <>{children}</>;
+}
+
+export default function App() {
+ return (
+ <Routes>
+ <Route path="/login" element={<LoginPage />} />
+ <Route
+ path="/"
+ element={
+ <RequireAuth>
+ <Layout />
+ </RequireAuth>
+ }
+ >
+ <Route index element={<OverviewPage />} />
+ <Route path="graph" element={<GraphPage />} />
+ <Route path="data" element={<DataPage />} />
+ <Route path="observations" element={<ObservationsPage />} />
+ <Route path="vectors" element={<VectorsPage />} />
+ <Route path="tasks" element={<TasksPage />} />
+ <Route path="ingest" element={<IngestPage />} />
+ </Route>
+ <Route path="*" element={<Navigate to="/login" replace />} />
+ </Routes>
+ );
+}
diff --git a/console/src/components/GraphCanvas.tsx b/console/src/components/GraphCanvas.tsx
new file mode 100644
index 0000000..cf29183
--- /dev/null
+++ b/console/src/components/GraphCanvas.tsx
@@ -0,0 +1,210 @@
+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.tsx
new file mode 100644
index 0000000..7afdd9d
--- /dev/null
+++ b/console/src/components/Layout.tsx
@@ -0,0 +1,156 @@
+import { useCallback, useEffect, useState } from "react";
+import { NavLink, Outlet, useNavigate } from "react-router-dom";
+import {
+ fetchBrainsList,
+ getSession,
+ mergeBrainOptions,
+ setSession,
+ type BrainRecord,
+} 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" },
+];
+
+export default function Layout() {
+ const navigate = useNavigate();
+ const session = getSession();
+ const [brains, setBrains] = useState<BrainRecord[]>([]);
+ const [brainId, setBrainId] = useState(session?.brainId ?? "default");
+ const [canSwitchBrains, setCanSwitchBrains] = useState(
+ session?.isSystemPat ?? false,
+ );
+ const [loadingBrains, setLoadingBrains] = useState(false);
+ const [brainsError, setBrainsError] = useState<string | null>(null);
+
+ const loadBrains = useCallback(async () => {
+ const current = getSession();
+ if (!current?.isSystemPat) {
+ setCanSwitchBrains(false);
+ setBrains([]);
+ return;
+ }
+
+ setCanSwitchBrains(true);
+ setLoadingBrains(true);
+ setBrainsError(null);
+ try {
+ const list = await fetchBrainsList(current);
+ setBrains(mergeBrainOptions(list, current.brainId));
+ } catch (err) {
+ setBrainsError(
+ err instanceof Error ? err.message : "Failed to load brains",
+ );
+ setBrains(mergeBrainOptions([], current.brainId));
+ } finally {
+ setLoadingBrains(false);
+ }
+ }, []);
+
+ useEffect(() => {
+ setBrainId(session?.brainId ?? "default");
+ setCanSwitchBrains(session?.isSystemPat ?? false);
+ loadBrains();
+ }, [loadBrains, session?.brainId, session?.isSystemPat]);
+
+ function switchBrain(id: string) {
+ setBrainId(id);
+ const current = loadSession();
+ if (current) {
+ const next = { ...current, brainId: id };
+ saveSession(next);
+ setSession(next);
+ window.location.reload();
+ }
+ }
+
+ function logout() {
+ clearSession();
+ setSession(null);
+ navigate("/login");
+ }
+
+ const brainOptions = mergeBrainOptions(brains, brainId);
+
+ 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"
+ >
+ {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
+ </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"
+ }`
+ }
+ >
+ {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"
+ >
+ Log out
+ </button>
+ </aside>
+ <main className="flex-1 overflow-auto p-6">
+ <Outlet />
+ </main>
+ </div>
+ );
+}
diff --git a/console/src/index.css b/console/src/index.css
new file mode 100644
index 0000000..2efda8c
--- /dev/null
+++ b/console/src/index.css
@@ -0,0 +1,34 @@
+@import "tailwindcss";
+
+body {
+ margin: 0;
+ min-height: 100vh;
+ font-family:
+ ui-sans-serif,
+ system-ui,
+ -apple-system,
+ BlinkMacSystemFont,
+ "Segoe UI",
+ sans-serif;
+ background: #0f1419;
+ color: #e7ecf3;
+}
+
+#root {
+ min-height: 100vh;
+}
+
+.vis-network:focus {
+ outline: none;
+}
+
+div.vis-navigation div.vis-button {
+ background-color: #1e293b;
+ border: 1px solid #334155;
+ color: #94a3b8;
+}
+
+div.vis-navigation div.vis-button:hover {
+ background-color: #334155;
+ color: #e2e8f0;
+}
diff --git a/console/src/lib/api.ts b/console/src/lib/api.ts
new file mode 100644
index 0000000..1b6dfdd
--- /dev/null
+++ b/console/src/lib/api.ts
@@ -0,0 +1,195 @@
+import { clearSession, loadSession, normalizeBaseUrl, type AuthSession } from "./auth";
+
+export class ApiError extends Error {
+ status: number;
+
+ constructor(status: number, message: string) {
+ super(message);
+ this.status = status;
+ }
+}
+
+export interface BrainRecord {
+ id?: string;
+ name_key: string;
+ pat?: string;
+}
+
+export interface ApiFetchOptions {
+ logoutOn401?: boolean;
+}
+
+let session: AuthSession | null = loadSession();
+
+export function getSession(): AuthSession | null {
+ return session;
+}
+
+export function setSession(next: AuthSession | null): void {
+ session = next;
+}
+
+function authHeaders(pat: string, brainId?: string, path?: string): Headers {
+ const headers = new Headers();
+ headers.set("BrainPAT", pat);
+ headers.set("Authorization", `Bearer ${pat}`);
+ if (brainId && path && !path.startsWith("/system")) {
+ headers.set("X-Brain-ID", brainId);
+ }
+ return headers;
+}
+
+function normalizeBrains(data: unknown): BrainRecord[] {
+ if (Array.isArray(data)) {
+ return data.filter(
+ (item): item is BrainRecord =>
+ typeof item === "object" &&
+ item !== null &&
+ typeof (item as BrainRecord).name_key === "string",
+ );
+ }
+ if (typeof data === "object" && data !== null && "brains" in data) {
+ return normalizeBrains((data as { brains: unknown }).brains);
+ }
+ return [];
+}
+
+export async function probeSystemPat(
+ pat: string,
+ apiBaseUrl: string,
+): Promise<boolean> {
+ const token = pat.trim();
+ const url = `${normalizeBaseUrl(apiBaseUrl)}/system/brains-list`;
+ const response = await fetch(url, {
+ headers: authHeaders(token),
+ });
+ return response.ok;
+}
+
+export async function fetchBrainsList(
+ s: AuthSession = session!,
+): Promise<BrainRecord[]> {
+ const pat = s.pat.trim();
+ const url = `${normalizeBaseUrl(s.apiBaseUrl)}/system/brains-list`;
+ const response = await fetch(url, {
+ headers: authHeaders(pat),
+ });
+ if (!response.ok) {
+ throw new ApiError(response.status, `Failed to load brains (${response.status})`);
+ }
+ const data = await response.json();
+ return normalizeBrains(data);
+}
+
+export async function apiFetch<T>(
+ path: string,
+ options: RequestInit = {},
+ overrideBrainId?: string,
+ fetchOptions: ApiFetchOptions = {},
+): Promise<T> {
+ if (!session) {
+ throw new ApiError(401, "Not authenticated");
+ }
+
+ const headers = authHeaders(session.pat, overrideBrainId ?? session.brainId, path);
+ for (const [key, value] of new Headers(options.headers).entries()) {
+ headers.set(key, value);
+ }
+ if (options.body && !headers.has("Content-Type")) {
+ headers.set("Content-Type", "application/json");
+ }
+
+ const url = `${normalizeBaseUrl(session.apiBaseUrl)}${path}`;
+ const response = await fetch(url, { ...options, headers });
+
+ if (response.status === 401 && fetchOptions.logoutOn401 !== false) {
+ clearSession();
+ setSession(null);
+ if (!window.location.pathname.endsWith("/login")) {
+ window.location.href = "/console/login";
+ }
+ throw new ApiError(401, "Unauthorized");
+ }
+
+ const text = await response.text();
+ let data: unknown = null;
+ if (text) {
+ try {
+ data = JSON.parse(text);
+ } catch {
+ data = text;
+ }
+ }
+
+ if (!response.ok) {
+ const detail =
+ typeof data === "object" && data && "detail" in data
+ ? String((data as { detail: unknown }).detail)
+ : `Request failed (${response.status})`;
+ throw new ApiError(response.status, detail);
+ }
+
+ return data as T;
+}
+
+export interface LoginInfo {
+ is_system_pat: boolean;
+ brain_id: string;
+}
+
+export async function resolveLoginInfo(
+ pat: string,
+ apiBaseUrl: string,
+): Promise<LoginInfo> {
+ const token = pat.trim();
+ const url = `${normalizeBaseUrl(apiBaseUrl)}/meta/login-info`;
+ const response = await fetch(url, {
+ headers: authHeaders(token),
+ });
+ if (!response.ok) {
+ throw new ApiError(response.status, "Invalid BrainPAT");
+ }
+ return (await response.json()) as LoginInfo;
+}
+
+export async function connectSession(
+ apiBaseUrl: string,
+ pat: string,
+): Promise<AuthSession> {
+ const loginInfo = await resolveLoginInfo(pat, apiBaseUrl);
+ const next: AuthSession = {
+ apiBaseUrl: normalizeBaseUrl(apiBaseUrl),
+ pat: pat.trim(),
+ brainId: loginInfo.brain_id,
+ isSystemPat: loginInfo.is_system_pat,
+ };
+ session = next;
+ await apiFetch<string[]>("/meta/entity-labels");
+ return next;
+}
+
+export async function validateSession(s: AuthSession): Promise<boolean> {
+ session = s;
+ try {
+ await apiFetch<string[]>("/meta/entity-labels");
+ return s.isSystemPat ?? false;
+ } finally {
+ session = loadSession() ?? s;
+ }
+}
+
+export function mergeBrainOptions(
+ brains: BrainRecord[],
+ activeBrainId: string,
+): BrainRecord[] {
+ const byKey = new Map<string, BrainRecord>();
+ for (const brain of brains) {
+ byKey.set(brain.name_key, brain);
+ }
+ if (activeBrainId && !byKey.has(activeBrainId)) {
+ byKey.set(activeBrainId, { name_key: activeBrainId });
+ }
+ return [...byKey.values()].sort((a, b) =>
+ a.name_key.localeCompare(b.name_key),
+ );
+}
diff --git a/console/src/lib/auth.ts b/console/src/lib/auth.ts
new file mode 100644
index 0000000..c166a93
--- /dev/null
+++ b/console/src/lib/auth.ts
@@ -0,0 +1,30 @@
+export interface AuthSession {
+ apiBaseUrl: string;
+ pat: string;
+ brainId: string;
+ isSystemPat?: boolean;
+}
+
+const STORAGE_KEY = "brainapi-console-session";
+
+export function loadSession(): AuthSession | null {
+ const raw = sessionStorage.getItem(STORAGE_KEY);
+ if (!raw) return null;
+ try {
+ return JSON.parse(raw) as AuthSession;
+ } catch {
+ return null;
+ }
+}
+
+export function saveSession(session: AuthSession): void {
+ sessionStorage.setItem(STORAGE_KEY, JSON.stringify(session));
+}
+
+export function clearSession(): void {
+ sessionStorage.removeItem(STORAGE_KEY);
+}
+
+export function normalizeBaseUrl(url: string): string {
+ return url.replace(/\/+$/, "");
+}
diff --git a/console/src/lib/graphColors.ts b/console/src/lib/graphColors.ts
new file mode 100644
index 0000000..04ed711
--- /dev/null
+++ b/console/src/lib/graphColors.ts
@@ -0,0 +1,27 @@
+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/lib/graphModel.ts b/console/src/lib/graphModel.ts
new file mode 100644
index 0000000..424b1e6
--- /dev/null
+++ b/console/src/lib/graphModel.ts
@@ -0,0 +1,161 @@
+export interface GraphEntity {
+ uuid: string;
+ name: string;
+ labels: string[];
+ description?: string;
+ properties?: Record<string, unknown>;
+}
+
+export interface GraphRelationship {
+ subject: GraphEntity;
+ object: GraphEntity;
+ predicate: { name: string; uuid?: string };
+}
+
+function asEntity(value: unknown): GraphEntity | null {
+ if (!value || typeof value !== "object") return null;
+ const v = value as Record<string, unknown>;
+ const uuid = typeof v.uuid === "string" ? v.uuid : "";
+ if (!uuid) return null;
+ return {
+ uuid,
+ name: typeof v.name === "string" ? v.name : uuid,
+ labels: Array.isArray(v.labels) ? (v.labels as string[]) : [],
+ description: typeof v.description === "string" ? v.description : undefined,
+ properties:
+ v.properties && typeof v.properties === "object"
+ ? (v.properties as Record<string, unknown>)
+ : undefined,
+ };
+}
+
+export function normalizeTriple(raw: unknown): GraphRelationship | null {
+ if (!raw || typeof raw !== "object") return null;
+ const row = raw as Record<string, unknown>;
+ const subject = asEntity(row.subject);
+ const object = asEntity(row.object);
+ if (!subject || !object) return null;
+ const predicateRaw = row.predicate;
+ let predName = "RELATED";
+ let predUuid: string | undefined;
+ if (predicateRaw && typeof predicateRaw === "object") {
+ const p = predicateRaw as Record<string, unknown>;
+ if (typeof p.name === "string" && p.name.trim()) predName = p.name;
+ if (typeof p.uuid === "string") predUuid = p.uuid;
+ }
+ return {
+ subject,
+ object,
+ predicate: { name: predName, uuid: predUuid },
+ };
+}
+
+export function normalizeTriples(raw: unknown[]): GraphRelationship[] {
+ return raw.map(normalizeTriple).filter((r): r is GraphRelationship => r !== null);
+}
+
+export function mergeGraphData(
+ entities: GraphEntity[],
+ relationships: GraphRelationship[],
+): { entities: GraphEntity[]; relationships: GraphRelationship[] } {
+ const entityMap = new Map<string, GraphEntity>();
+ for (const entity of entities) {
+ entityMap.set(entity.uuid, entity);
+ }
+ for (const rel of relationships) {
+ entityMap.set(rel.subject.uuid, rel.subject);
+ entityMap.set(rel.object.uuid, rel.object);
+ }
+ return {
+ entities: [...entityMap.values()],
+ relationships,
+ };
+}
+
+export interface GraphEdge {
+ id: string;
+ from: string;
+ to: string;
+ label: string;
+}
+
+export function normalizeLabel(label: string): string {
+ return label
+ .replace(/ /g, "_")
+ .toUpperCase()
+ .replace(/-/g, "_")
+ .replace(/\./g, "_")
+ .replace(/,/g, "_")
+ .replace(/:/g, "_")
+ .replace(/;/g, "_")
+ .replace(/\(/g, "_")
+ .replace(/\)/g, "_")
+ .replace(/\[/g, "_")
+ .replace(/\]/g, "_")
+ .replace(/\{/g, "_")
+ .replace(/\}/g, "_")
+ .replace(/'/g, "_");
+}
+
+function entityMatchesLabel(entity: GraphEntity, label: string): boolean {
+ const wanted = normalizeLabel(label);
+ return entity.labels.some((value) => normalizeLabel(value) === wanted);
+}
+
+export function filterRelationshipsByEntities(
+ rels: GraphRelationship[],
+ entities: GraphEntity[],
+): GraphRelationship[] {
+ if (entities.length === 0) return rels;
+ const ids = new Set(entities.map((e) => e.uuid));
+ return rels.filter(
+ (r) => ids.has(r.subject.uuid) || ids.has(r.object.uuid),
+ );
+}
+
+export function filterRelationshipsByLabel(
+ rels: GraphRelationship[],
+ label: string,
+): GraphRelationship[] {
+ return rels.filter(
+ (r) =>
+ entityMatchesLabel(r.subject, label) || entityMatchesLabel(r.object, label),
+ );
+}
+
+export function filterRelationshipsByQuery(
+ rels: GraphRelationship[],
+ query: string,
+): GraphRelationship[] {
+ const q = query.trim().toLowerCase();
+ if (!q) return rels;
+ return rels.filter(
+ (r) =>
+ r.subject.name.toLowerCase().includes(q) ||
+ r.object.name.toLowerCase().includes(q) ||
+ r.predicate.name.toLowerCase().includes(q),
+ );
+}
+
+export function relationshipsToEdges(
+ rels: GraphRelationship[],
+): GraphEdge[] {
+ const seen = new Map<string, number>();
+ const edges: GraphEdge[] = [];
+ for (const rel of rels) {
+ const from = rel.subject.uuid;
+ const to = rel.object.uuid;
+ if (!from || !to) continue;
+ const label = rel.predicate?.name?.trim() || "RELATED";
+ const key = `${from}|${to}|${label}`;
+ const count = seen.get(key) ?? 0;
+ seen.set(key, count + 1);
+ edges.push({
+ id: `${from}-${to}-${label}-${count}`,
+ from,
+ to,
+ label,
+ });
+ }
+ return edges;
+}
diff --git a/console/src/main.tsx b/console/src/main.tsx
new file mode 100644
index 0000000..9162abf
--- /dev/null
+++ b/console/src/main.tsx
@@ -0,0 +1,13 @@
+import { StrictMode } from "react";
+import { createRoot } from "react-dom/client";
+import { BrowserRouter } from "react-router-dom";
+import App from "./App";
+import "./index.css";
+
+createRoot(document.getElementById("root")!).render(
+ <StrictMode>
+ <BrowserRouter basename="/console">
+ <App />
+ </BrowserRouter>
+ </StrictMode>,
+);
diff --git a/console/src/pages/DataPage.tsx b/console/src/pages/DataPage.tsx
new file mode 100644
index 0000000..9a63305
--- /dev/null
+++ b/console/src/pages/DataPage.tsx
@@ -0,0 +1,211 @@
+import { useEffect, useState } from "react";
+import { apiFetch } from "../lib/api";
+
+type Tab = "chunks" | "structured";
+
+export default function DataPage() {
+ const [tab, setTab] = useState<Tab>("chunks");
+ const [query, setQuery] = useState("");
+ const [skip, setSkip] = useState(0);
+ const [limit] = useState(20);
+ const [loading, setLoading] = useState(true);
+ const [error, setError] = useState<string | null>(null);
+ const [items, setItems] = useState<Record<string, unknown>[]>([]);
+ const [total, setTotal] = useState(0);
+ const [selected, setSelected] = useState<Record<string, unknown> | null>(null);
+ const [types, setTypes] = useState<string[]>([]);
+ const [selectedType, setSelectedType] = useState("");
+
+ useEffect(() => {
+ if (tab === "structured") {
+ apiFetch<{ types?: string[] }>("/retrieve/structured-data/types")
+ .then((res) => setTypes(res.types ?? []))
+ .catch(() => setTypes([]));
+ }
+ }, [tab]);
+
+ useEffect(() => {
+ let cancelled = false;
+ async function load() {
+ setLoading(true);
+ setError(null);
+ try {
+ if (tab === "chunks") {
+ const params = new URLSearchParams({
+ limit: String(limit),
+ skip: String(skip),
+ });
+ if (query) params.set("query_text", query);
+ const res = await apiFetch<{
+ data: Record<string, unknown>[];
+ total: number;
+ }>(`/retrieve/text-chunks?${params}`);
+ if (!cancelled) {
+ setItems(res.data ?? []);
+ setTotal(res.total ?? 0);
+ }
+ } else {
+ const params = new URLSearchParams({
+ limit: String(limit),
+ skip: String(skip),
+ });
+ if (query) params.set("query_text", query);
+ if (selectedType) params.set("types", selectedType);
+ const res = await apiFetch<{
+ data: Record<string, unknown>[];
+ total: number;
+ }>(`/retrieve/structured-data?${params}`);
+ if (!cancelled) {
+ setItems(res.data ?? []);
+ setTotal(res.total ?? 0);
+ }
+ }
+ } catch (err) {
+ if (!cancelled) {
+ setError(err instanceof Error ? err.message : "Failed to load data");
+ }
+ } finally {
+ if (!cancelled) setLoading(false);
+ }
+ }
+ load();
+ return () => {
+ cancelled = true;
+ };
+ }, [tab, query, skip, limit, selectedType]);
+
+ 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);
+ 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>
+ );
+ })
+ )}
+ </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>
+ </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>
+ );
+}
diff --git a/console/src/pages/GraphPage.tsx b/console/src/pages/GraphPage.tsx
new file mode 100644
index 0000000..5002975
--- /dev/null
+++ b/console/src/pages/GraphPage.tsx
@@ -0,0 +1,433 @@
+import { useCallback, useEffect, useMemo, useState } from "react";
+import GraphCanvas from "../components/GraphCanvas";
+import { apiFetch } from "../lib/api";
+import { colorForLabel, primaryLabel } from "../lib/graphColors";
+import {
+ filterRelationshipsByEntities,
+ filterRelationshipsByLabel,
+ filterRelationshipsByQuery,
+ mergeGraphData,
+ normalizeTriples,
+ relationshipsToEdges,
+ type GraphEntity,
+ type GraphRelationship,
+} from "../lib/graphModel";
+
+interface NeighborEntry {
+ neighbor: GraphEntity;
+ relationship: { name: string; uuid?: string };
+}
+
+interface GraphFilters {
+ label: string;
+ query: string;
+ limit: number;
+}
+
+const DEFAULT_FILTERS: GraphFilters = { label: "", query: "", limit: 250 };
+
+function mergeEntities(
+ current: GraphEntity[],
+ incoming: GraphEntity[],
+): GraphEntity[] {
+ const map = new Map(current.map((e) => [e.uuid, e]));
+ for (const e of incoming) map.set(e.uuid, e);
+ return [...map.values()];
+}
+
+function mergeRelationships(
+ current: GraphRelationship[],
+ incoming: GraphRelationship[],
+): GraphRelationship[] {
+ const map = new Map(
+ current.map((r) => [
+ `${r.subject.uuid}-${r.object.uuid}-${r.predicate.name}`,
+ r,
+ ]),
+ );
+ for (const r of incoming) {
+ map.set(`${r.subject.uuid}-${r.object.uuid}-${r.predicate.name}`, r);
+ }
+ return [...map.values()];
+}
+
+function applyGraphFilters(
+ rels: GraphRelationship[],
+ entities: GraphEntity[],
+ filters: GraphFilters,
+): GraphRelationship[] {
+ const hasFilters = !!(filters.label || filters.query);
+ if (!hasFilters) return rels;
+
+ if (filters.label && filters.query) {
+ return filterRelationshipsByQuery(
+ filterRelationshipsByLabel(rels, filters.label),
+ filters.query,
+ );
+ }
+ if (filters.label) {
+ return filterRelationshipsByLabel(rels, filters.label);
+ }
+ if (entities.length > 0) {
+ return filterRelationshipsByEntities(rels, entities);
+ }
+ return filterRelationshipsByQuery(rels, filters.query);
+}
+
+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 [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 loadGraph = useCallback(async (filters: GraphFilters) => {
+ setLoading(true);
+ setError(null);
+ setSelectedNode(null);
+ setActiveFilters(filters);
+
+ const hasFilters = !!(filters.label || filters.query);
+
+ try {
+ const relParams = new URLSearchParams({
+ limit: String(filters.limit),
+ 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([
+ 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);
+ }
+ } 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 {
+ setLoading(false);
+ }
+ }, []);
+
+ useEffect(() => {
+ loadGraph(DEFAULT_FILTERS);
+ }, [loadGraph]);
+
+ function runQuery() {
+ loadGraph({
+ label: draftLabel,
+ query: draftQuery.trim(),
+ limit: draftLimit,
+ });
+ }
+
+ function clearFilters() {
+ setDraftLabel("");
+ setDraftQuery("");
+ setDraftLimit(DEFAULT_FILTERS.limit);
+ loadGraph(DEFAULT_FILTERS);
+ }
+
+ 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 legendLabels = useMemo(() => {
+ const set = new Set<string>();
+ for (const e of entities) set.add(primaryLabel(e.labels));
+ return [...set].sort();
+ }, [entities]);
+
+ const hasActiveFilters = !!(activeFilters.label || activeFilters.query);
+
+ async function expandNode(center: GraphEntity) {
+ setExpanding(true);
+ try {
+ const res = await apiFetch<{
+ main_node: GraphEntity;
+ neighbors?: NeighborEntry[];
+ }>(
+ `/retrieve/entities/neighbors?uuid=${encodeURIComponent(center.uuid)}&limit=40`,
+ );
+
+ const centerNode = asEntityOrFallback(res.main_node, center);
+ const neighbors = res.neighbors ?? [];
+ const newEntities: GraphEntity[] = [centerNode];
+ const newRels: GraphRelationship[] = [];
+
+ for (const entry of neighbors) {
+ const neighbor = asEntityOrFallback(entry.neighbor, null);
+ if (!neighbor) continue;
+ newEntities.push(neighbor);
+ newRels.push({
+ subject: centerNode,
+ object: neighbor,
+ predicate: {
+ name: entry.relationship?.name?.trim() || "RELATED",
+ uuid: entry.relationship?.uuid,
+ },
+ });
+ }
+
+ setEntities((prev) => mergeEntities(prev, newEntities));
+ setRelationships((prev) => mergeRelationships(prev, newRels));
+ setSelectedNode(centerNode);
+ } catch {
+ /* ignore */
+ } finally {
+ setExpanding(false);
+ }
+ }
+
+ 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">
+ {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"
+ >
+ 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 items-center justify-center bg-[#1a1d23] text-slate-500">
+ {hasActiveFilters
+ ? "No matches — try a different label or search term"
+ : "No nodes — ingest data or change filters"}
+ </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>
+ ))}
+ </div>
+ )}
+ </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>
+ </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>
+ ))}
+ </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>
+ );
+}
+
+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.tsx
new file mode 100644
index 0000000..0167aa9
--- /dev/null
+++ b/console/src/pages/IngestPage.tsx
@@ -0,0 +1,174 @@
+import { useEffect, useState } from "react";
+import { Link } from "react-router-dom";
+import { apiFetch, fetchBrainsList, getSession, type BrainRecord } from "../lib/api";
+
+export default function IngestPage() {
+ const session = getSession();
+ const [text, setText] = useState("");
+ const [ingesting, setIngesting] = useState(false);
+ const [ingestResult, setIngestResult] = useState<string | null>(null);
+ const [ingestError, setIngestError] = useState<string | null>(null);
+ const [taskId, setTaskId] = useState<string | null>(null);
+
+ const [brains, setBrains] = useState<BrainRecord[]>([]);
+ const [brainsError, setBrainsError] = useState<string | null>(null);
+ const [newBrainId, setNewBrainId] = useState("");
+ const [creating, setCreating] = useState(false);
+ const [createdPat, setCreatedPat] = useState<string | null>(null);
+
+ useEffect(() => {
+ if (!getSession()?.isSystemPat) {
+ setBrainsError("Brain list requires system BRAINPAT_TOKEN");
+ return;
+ }
+ fetchBrainsList()
+ .then(setBrains)
+ .catch(() =>
+ setBrainsError("Brain list requires system BRAINPAT_TOKEN"),
+ );
+ }, []);
+
+ async function handleIngest(e: React.FormEvent) {
+ e.preventDefault();
+ setIngesting(true);
+ setIngestError(null);
+ 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 },
+ }),
+ });
+ setIngestResult(res.message);
+ setTaskId(res.task_id);
+ setText("");
+ } catch (err) {
+ setIngestError(err instanceof Error ? err.message : "Ingest failed");
+ } finally {
+ setIngesting(false);
+ }
+ }
+
+ async function handleCreateBrain(e: React.FormEvent) {
+ e.preventDefault();
+ setCreating(true);
+ setBrainsError(null);
+ setCreatedPat(null);
+ try {
+ const res = await apiFetch<BrainRecord>("/system/brains", {
+ method: "POST",
+ body: JSON.stringify({ brain_id: newBrainId.trim() }),
+ });
+ setCreatedPat(res.pat ?? null);
+ setBrains((prev) => [...prev, res]);
+ setNewBrainId("");
+ } catch (err) {
+ 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>
+
+ <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>
+
+ {brainsError && (
+ <p className="mb-3 text-sm text-amber-400">{brainsError}</p>
+ )}
+
+ {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>
+ )}
+
+ <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>
+
+ {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>
+ );
+}
diff --git a/console/src/pages/LoginPage.tsx b/console/src/pages/LoginPage.tsx
new file mode 100644
index 0000000..2c7702a
--- /dev/null
+++ b/console/src/pages/LoginPage.tsx
@@ -0,0 +1,90 @@
+import { useState } from "react";
+import { useNavigate } from "react-router-dom";
+import { loadSession, saveSession } from "../lib/auth";
+import { connectSession, setSession } from "../lib/api";
+
+export default function LoginPage() {
+ const navigate = useNavigate();
+ const existing = loadSession();
+ const [apiBaseUrl, setApiBaseUrl] = useState(
+ existing?.apiBaseUrl ?? "http://localhost:8000",
+ );
+ const [pat, setPat] = useState(existing?.pat ?? "");
+ const [error, setError] = useState<string | null>(null);
+ const [loading, setLoading] = useState(false);
+
+ async function handleSubmit(e: React.FormEvent) {
+ e.preventDefault();
+ setError(null);
+ setLoading(true);
+ try {
+ const session = await connectSession(apiBaseUrl, pat);
+ saveSession(session);
+ setSession(session);
+ navigate("/");
+ } catch (err) {
+ setSession(null);
+ setError(err instanceof Error ? err.message : "Login failed");
+ } finally {
+ setLoading(false);
+ }
+ }
+
+ 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>
+ {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>
+ </div>
+ );
+}
diff --git a/console/src/pages/ObservationsPage.tsx b/console/src/pages/ObservationsPage.tsx
new file mode 100644
index 0000000..b8ac087
--- /dev/null
+++ b/console/src/pages/ObservationsPage.tsx
@@ -0,0 +1,155 @@
+import { useEffect, useState } from "react";
+import { apiFetch } from "../lib/api";
+
+interface Observation {
+ id: string;
+ text: string;
+ resource_id?: string;
+ metadata?: Record<string, unknown>;
+ inserted_at?: string;
+}
+
+export default function ObservationsPage() {
+ const [observations, setObservations] = useState<Observation[]>([]);
+ const [labels, setLabels] = useState<string[]>([]);
+ const [query, setQuery] = useState("");
+ const [resourceId, setResourceId] = useState("");
+ const [selectedLabel, setSelectedLabel] = useState("");
+ const [skip, setSkip] = useState(0);
+ const [limit] = useState(20);
+ const [loading, setLoading] = useState(true);
+ const [error, setError] = useState<string | null>(null);
+ const [selected, setSelected] = useState<Observation | null>(null);
+
+ useEffect(() => {
+ apiFetch<{ labels?: string[] }>("/retrieve/observations/labels")
+ .then((res) => setLabels(res.labels ?? []))
+ .catch(() => setLabels([]));
+ }, []);
+
+ useEffect(() => {
+ let cancelled = false;
+ async function load() {
+ setLoading(true);
+ setError(null);
+ try {
+ const params = new URLSearchParams({
+ limit: String(limit),
+ skip: String(skip),
+ });
+ if (query) params.set("query_text", query);
+ if (resourceId) params.set("resource_id", resourceId);
+ if (selectedLabel) params.set("labels", selectedLabel);
+ const res = await apiFetch<{ observations: Observation[] }>(
+ `/retrieve/observations?${params}`,
+ );
+ if (!cancelled) setObservations(res.observations ?? []);
+ } catch (err) {
+ if (!cancelled) {
+ setError(err instanceof Error ? err.message : "Failed to load observations");
+ }
+ } finally {
+ if (!cancelled) setLoading(false);
+ }
+ }
+ load();
+ return () => {
+ cancelled = true;
+ };
+ }, [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"
+ }`}
+ >
+ <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>
+ ))
+ )}
+ <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>
+ )}
+ </div>
+ </div>
+ );
+}
diff --git a/console/src/pages/OverviewPage.tsx b/console/src/pages/OverviewPage.tsx
new file mode 100644
index 0000000..206e5e5
--- /dev/null
+++ b/console/src/pages/OverviewPage.tsx
@@ -0,0 +1,125 @@
+import { useEffect, useState } from "react";
+import { apiFetch, getSession } from "../lib/api";
+
+interface StatCard {
+ label: string;
+ value: string | number;
+ loading: boolean;
+}
+
+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 },
+ ]);
+
+ useEffect(() => {
+ let cancelled = false;
+
+ async function load() {
+ const results = [...stats];
+
+ try {
+ const entities = await apiFetch<{ total?: number; entities?: unknown[] }>(
+ "/retrieve/entities?limit=1",
+ );
+ results[0] = { label: "Entities", value: entities.total ?? 0, loading: false };
+ } catch {
+ results[0] = { label: "Entities", value: "?", loading: false };
+ }
+
+ try {
+ const rels = await apiFetch<{ total?: number }>(
+ "/retrieve/relationships?limit=1",
+ );
+ results[1] = { label: "Relationships", value: rels.total ?? 0, loading: false };
+ } catch {
+ results[1] = { label: "Relationships", value: "?", loading: false };
+ }
+
+ try {
+ const chunks = await apiFetch<{ total?: number }>(
+ "/retrieve/text-chunks?limit=1",
+ );
+ results[2] = { label: "Text chunks", value: chunks.total ?? 0, loading: false };
+ } catch {
+ results[2] = { label: "Text chunks", value: "?", loading: false };
+ }
+
+ try {
+ const obs = await apiFetch<{ count?: number; observations?: unknown[] }>(
+ "/retrieve/observations?limit=1",
+ );
+ results[3] = {
+ label: "Observations",
+ value: obs.count ?? obs.observations?.length ?? 0,
+ loading: false,
+ };
+ } catch {
+ results[3] = { label: "Observations", value: "?", loading: false };
+ }
+
+ try {
+ const tasks = await apiFetch<{ tasks?: unknown[] }>("/tasks/");
+ results[4] = {
+ label: "Tasks",
+ value: tasks.tasks?.length ?? 0,
+ loading: false,
+ };
+ } catch {
+ results[4] = { label: "Tasks", value: "?", loading: false };
+ }
+
+ try {
+ const stores = await apiFetch<{ stores: { name: string }[] }>(
+ "/retrieve/vectors/stores",
+ );
+ let vectorTotal = 0;
+ for (const store of stores.stores) {
+ const res = await apiFetch<{ total?: number }>(
+ `/retrieve/vectors/${store.name}?limit=1`,
+ );
+ vectorTotal += res.total ?? 0;
+ }
+ results[5] = { label: "Vectors", value: vectorTotal, loading: false };
+ } catch {
+ results[5] = { label: "Vectors", value: "?", loading: false };
+ }
+
+ if (!cancelled) setStats(results);
+ }
+
+ load();
+ return () => {
+ cancelled = true;
+ };
+ }, []);
+
+ 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}
+ </div>
+ </div>
+ ))}
+ </div>
+ </div>
+ );
+}
diff --git a/console/src/pages/TasksPage.tsx b/console/src/pages/TasksPage.tsx
new file mode 100644
index 0000000..094fb05
--- /dev/null
+++ b/console/src/pages/TasksPage.tsx
@@ -0,0 +1,129 @@
+import { useEffect, useState } from "react";
+import { Link } from "react-router-dom";
+import { apiFetch } from "../lib/api";
+
+interface TaskItem {
+ id?: string;
+ task_id?: string;
+ status: string;
+ result?: unknown;
+ data?: unknown;
+ created_at?: number;
+}
+
+const TERMINAL = new Set(["completed", "failed", "error"]);
+
+function statusColor(status: string): string {
+ switch (status) {
+ case "completed":
+ return "text-emerald-400";
+ case "failed":
+ case "error":
+ return "text-red-400";
+ case "started":
+ case "queued":
+ return "text-amber-400";
+ default:
+ return "text-slate-400";
+ }
+}
+
+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 [detail, setDetail] = useState<TaskItem | null>(null);
+
+ async function loadTasks() {
+ try {
+ const res = await apiFetch<{ tasks: TaskItem[] }>("/tasks/");
+ setTasks(res.tasks ?? []);
+ setError(null);
+ } catch (err) {
+ setError(err instanceof Error ? err.message : "Failed to load tasks");
+ } finally {
+ setLoading(false);
+ }
+ }
+
+ useEffect(() => {
+ loadTasks();
+ const interval = setInterval(() => {
+ const hasActive = tasks.some((t) => !TERMINAL.has(t.status));
+ if (hasActive || tasks.length === 0) loadTasks();
+ }, 5000);
+ return () => clearInterval(interval);
+ }, []);
+
+ async function expandTask(taskId: string) {
+ if (expanded === taskId) {
+ setExpanded(null);
+ setDetail(null);
+ return;
+ }
+ setExpanded(taskId);
+ try {
+ const res = await apiFetch<TaskItem>(`/tasks/${taskId}`);
+ setDetail(res);
+ } catch {
+ setDetail(null);
+ }
+ }
+
+ 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"
+ >
+ Refresh
+ </button>
+ </div>
+
+ {error && <p className="mb-2 text-sm text-red-400">{error}</p>}
+
+ {loading ? (
+ <p className="text-slate-500">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>
+ )}
+ </div>
+ );
+}
diff --git a/console/src/pages/VectorsPage.tsx b/console/src/pages/VectorsPage.tsx
new file mode 100644
index 0000000..5614fca
--- /dev/null
+++ b/console/src/pages/VectorsPage.tsx
@@ -0,0 +1,190 @@
+import { useEffect, useState } from "react";
+import { apiFetch } from "../lib/api";
+
+interface VectorItem {
+ id: string;
+ embeddings?: number[] | null;
+ metadata: Record<string, unknown>;
+}
+
+interface VectorStore {
+ name: string;
+ dimension: number;
+}
+
+export default function VectorsPage() {
+ const [stores, setStores] = useState<VectorStore[]>([]);
+ const [store, setStore] = useState("");
+ const [vectors, setVectors] = useState<VectorItem[]>([]);
+ const [total, setTotal] = useState(0);
+ const [skip, setSkip] = useState(0);
+ const [limit] = useState(20);
+ const [includeEmbeddings, setIncludeEmbeddings] = useState(false);
+ const [loading, setLoading] = useState(true);
+ const [error, setError] = useState<string | null>(null);
+ const [selected, setSelected] = useState<VectorItem | null>(null);
+
+ useEffect(() => {
+ apiFetch<{ stores: VectorStore[] }>("/retrieve/vectors/stores")
+ .then((res) => {
+ setStores(res.stores ?? []);
+ if (res.stores?.[0]) setStore(res.stores[0].name);
+ })
+ .catch((err) => setError(err instanceof Error ? err.message : "Failed to load stores"));
+ }, []);
+
+ useEffect(() => {
+ if (!store) return;
+ let cancelled = false;
+ async function load() {
+ setLoading(true);
+ setError(null);
+ try {
+ const params = new URLSearchParams({
+ limit: String(limit),
+ skip: String(skip),
+ include_embeddings: String(includeEmbeddings),
+ });
+ const res = await apiFetch<{
+ vectors: VectorItem[];
+ total: number;
+ }>(`/retrieve/vectors/${store}?${params}`);
+ if (!cancelled) {
+ setVectors(res.vectors ?? []);
+ setTotal(res.total ?? 0);
+ }
+ } catch (err) {
+ if (!cancelled) {
+ setError(err instanceof Error ? err.message : "Failed to load vectors");
+ }
+ } finally {
+ if (!cancelled) setLoading(false);
+ }
+ }
+ load();
+ return () => {
+ cancelled = true;
+ };
+ }, [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>
+
+ {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>
+ </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>
+ );
+}
diff --git a/console/src/vite-env.d.ts b/console/src/vite-env.d.ts
new file mode 100644
index 0000000..11f02fe
--- /dev/null
+++ b/console/src/vite-env.d.ts
@@ -0,0 +1 @@
+/// <reference types="vite/client" />
diff --git a/console/tsconfig.json b/console/tsconfig.json
new file mode 100644
index 0000000..93e40ea
--- /dev/null
+++ b/console/tsconfig.json
@@ -0,0 +1,21 @@
+{
+ "compilerOptions": {
+ "target": "ES2022",
+ "useDefineForClassFields": true,
+ "lib": ["ES2022", "DOM", "DOM.Iterable"],
+ "module": "ESNext",
+ "skipLibCheck": true,
+ "moduleResolution": "bundler",
+ "allowImportingTsExtensions": true,
+ "isolatedModules": true,
+ "moduleDetection": "force",
+ "noEmit": true,
+ "jsx": "react-jsx",
+ "strict": true,
+ "noUnusedLocals": true,
+ "noUnusedParameters": true,
+ "noFallthroughCasesInSwitch": true,
+ "noUncheckedSideEffectImports": true
+ },
+ "include": ["src"]
+}
diff --git a/console/tsconfig.node.json b/console/tsconfig.node.json
new file mode 100644
index 0000000..7366cef
--- /dev/null
+++ b/console/tsconfig.node.json
@@ -0,0 +1,10 @@
+{
+ "compilerOptions": {
+ "target": "ES2022",
+ "lib": ["ES2023"],
+ "module": "ESNext",
+ "skipLibCheck": true,
+ "moduleResolution": "bundler"
+ },
+ "include": ["vite.config.ts"]
+}
diff --git a/console/tsconfig.tsbuildinfo b/console/tsconfig.tsbuildinfo
new file mode 100644
index 0000000..5221685
--- /dev/null
+++ b/console/tsconfig.tsbuildinfo
@@ -0,0 +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
diff --git a/console/vite.config.ts b/console/vite.config.ts
new file mode 100644
index 0000000..2330201
--- /dev/null
+++ b/console/vite.config.ts
@@ -0,0 +1,18 @@
+import { defineConfig } from "vite";
+import react from "@vitejs/plugin-react";
+import tailwindcss from "@tailwindcss/vite";
+
+export default defineConfig({
+ plugins: [react(), tailwindcss()],
+ base: "/console/",
+ server: {
+ port: 5173,
+ proxy: {
+ "/ingest": { target: "http://localhost:8000", changeOrigin: true },
+ "/retrieve": { target: "http://localhost:8000", changeOrigin: true },
+ "/meta": { target: "http://localhost:8000", changeOrigin: true },
+ "/tasks": { target: "http://localhost:8000", changeOrigin: true },
+ "/system": { target: "http://localhost:8000", changeOrigin: true },
+ },
+ },
+});
diff --git a/package-lock.json b/package-lock.json
new file mode 100644
index 0000000..4f8e291
--- /dev/null
+++ b/package-lock.json
@@ -0,0 +1,6 @@
+{
+ "name": "brainapi2",
+ "lockfileVersion": 3,
+ "requires": true,
+ "packages": {}
+}
diff --git a/poetry.lock b/poetry.lock
index 18b858b..d3104c1 100644
--- a/poetry.lock
+++ b/poetry.lock
@@ -8145,6 +8145,126 @@ files = [
[package.dependencies]
colorama = {version = ">=0.4.6", markers = "sys_platform == \"win32\" and python_version >= \"3.7\""}
+[[package]]
+name = "watchfiles"
+version = "1.2.0"
+description = "Simple, modern and high performance file watching and code reload in python."
+optional = false
+python-versions = ">=3.10"
+groups = ["main"]
+files = [
+ {file = "watchfiles-1.2.0-cp310-cp310-macosx_10_12_x86_64.whl", hash = "sha256:bb68bf4df85abebe5efddc53cf2075520f243a59868d9b3973278b23e76962a9"},
+ {file = "watchfiles-1.2.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:c16cb06dd17d43b9d185094268459eac92c9538356f050e55b54e82cf700e1d4"},
+ {file = "watchfiles-1.2.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:77a0feab9af4c021c581f695258c642b3d10c5fd4c676e33a0d8606425d82631"},
+ {file = "watchfiles-1.2.0-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:a16ffe19bf5cf9f5edaa1ad1dd830c5a816e8feec430c522302ab55483a4b994"},
+ {file = "watchfiles-1.2.0-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:204f299afcbd65918ab78dbc52626b0ae45e9d8cef403fdbf33ecf9e40eac66e"},
+ {file = "watchfiles-1.2.0-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:11743adfa510bfffebe97659fb280182b5c9b238708f667e866f308c3430dc19"},
+ {file = "watchfiles-1.2.0-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:eb72919d93e3a16fc451d3aa3d4b1698423daca1b382d3d959c9ac51297c12a8"},
+ {file = "watchfiles-1.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b62f042afde2dde21ec1d2c1a74361e804673df86f51e418a999c9acfe671b07"},
+ {file = "watchfiles-1.2.0-cp310-cp310-manylinux_2_31_riscv64.whl", hash = "sha256:027ae72bfdfd254862065d8b3e2a815c6ab9b1853ce41e6648ece84afd34a551"},
+ {file = "watchfiles-1.2.0-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:e1cfd51e97e13ff3bd047c140764d277fc9b95b7cb5da59e46a47d167adab310"},
+ {file = "watchfiles-1.2.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:24b2405c0a46738dd9e1cf7135aa5dbdb9d42d024628651b3b13d5117e99f8df"},
+ {file = "watchfiles-1.2.0-cp310-cp310-win32.whl", hash = "sha256:8c520725602756229f045b032a1ff33d7ef0f7404189d62f6c2438cb6d8ef6a1"},
+ {file = "watchfiles-1.2.0-cp310-cp310-win_amd64.whl", hash = "sha256:03b14855c6f35539e2d95c442ae9530a75762f1e26567152b9ed05f96534a74d"},
+ {file = "watchfiles-1.2.0-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:704fd259e332e01f9b9c178f4bce9e49027e5587cc2600eeeaf8e76e1c846201"},
+ {file = "watchfiles-1.2.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:6543cf55d170003296d185c0af981f3e1311564907e1f4e08671fc7693a890a5"},
+ {file = "watchfiles-1.2.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:89d8c2394a065ca86f5d2910ff263ae67c127e1376ccc4f9fc35c71db879f80a"},
+ {file = "watchfiles-1.2.0-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:772b80df316480d894a0e3165fdd19cf77f5d17f9a787f94029465ad0e3529d1"},
+ {file = "watchfiles-1.2.0-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d158cd89df6053823533e06fb1d73c549133bff5f0396170c0e53d9559340717"},
+ {file = "watchfiles-1.2.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:d516b3283a758e087841aedb8031549fb41ced08f3db10aa6d2bf32dc042525b"},
+ {file = "watchfiles-1.2.0-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:53b2290c92e0506d102cd448fbc610d87079553f86caa39d67440856a8b8bba5"},
+ {file = "watchfiles-1.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a711b51aec4370d0dcda5b6c09463206f133a5759341d7744b953a7b62e1100e"},
+ {file = "watchfiles-1.2.0-cp311-cp311-manylinux_2_31_riscv64.whl", hash = "sha256:e2ca07fa7d89195ec0865d3d285666286740bfa83d83e5cee204043a31ecc165"},
+ {file = "watchfiles-1.2.0-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:e0618518f282c4ebff60f5e5b1247b6d91bb8b9f4476947563a1e74acc66f3c6"},
+ {file = "watchfiles-1.2.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:0d191c054d0715c3c95c99df9b8dbf6fd096d8c1e021e8f212e1bd8bc444ccb5"},
+ {file = "watchfiles-1.2.0-cp311-cp311-win32.whl", hash = "sha256:9342472aff9b093c5acd4f6d8f70ae0937964ab56542502bcf5579782da69ae8"},
+ {file = "watchfiles-1.2.0-cp311-cp311-win_amd64.whl", hash = "sha256:dbd6c97045dad81227c8d040173da044c1de08de64a5ea8b555da4aee1d5fa22"},
+ {file = "watchfiles-1.2.0-cp311-cp311-win_arm64.whl", hash = "sha256:57a2d9fa4fb4c2ecae57b13dfff2c7ab53e21a2ba674fe9f05506680fcdcc0d7"},
+ {file = "watchfiles-1.2.0-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:bc13eb17538be00c874699dc0abe4ee2bc8d50bb1166a6b9e175ef3fd7eb8f26"},
+ {file = "watchfiles-1.2.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:2d95ddc1eb6914154253d239089900813f6a767e174b8e6a50e7fdacb7e4236c"},
+ {file = "watchfiles-1.2.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8f70d8b291ef6e88d19b1f297a6905ddb978888d9272b0d05e6f53309856bcfc"},
+ {file = "watchfiles-1.2.0-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:56d8641cf834c2836922899105bd3ce3d0dfc69291d52edf0b4d0436829b34c0"},
+ {file = "watchfiles-1.2.0-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:2581a94056e55d7d0a31a823ea92bf73749c489ca2285bfdc0fbe6b2bb49d50c"},
+ {file = "watchfiles-1.2.0-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:41bc1199f7523b3f82843c88cbb979180c949caef0342cf90968f178e5d49b01"},
+ {file = "watchfiles-1.2.0-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:7571e4464cb6e434958f867f7f730b8ab0b75e3f8e5eac0499168486ab3c33a8"},
+ {file = "watchfiles-1.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e53a384f76b631c3ae5334ce6a52f0baa3a911eb94a4eac7f160079868b716d5"},
+ {file = "watchfiles-1.2.0-cp312-cp312-manylinux_2_31_riscv64.whl", hash = "sha256:d20029a60a71a052a24c4db7673bc4de39ab89adbaccbfb5d67987c5d73f424d"},
+ {file = "watchfiles-1.2.0-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:2cb93af48550faf1cea04c303107c8b75833de7013e57ce27d3b8d21d8d0f58c"},
+ {file = "watchfiles-1.2.0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:2995c176de7692b86a2e4c58d9ec718f753150a979cb4a754e2b4ffa38e70906"},
+ {file = "watchfiles-1.2.0-cp312-cp312-win32.whl", hash = "sha256:7a2cffd17d27d2ecbb310c2b1d8174f222a5495b1a721894afa88ec11e25b898"},
+ {file = "watchfiles-1.2.0-cp312-cp312-win_amd64.whl", hash = "sha256:f155b3a1b2a5fc89cdc70d47ee5d54e3b75e88efa34982028a35daef9ba00379"},
+ {file = "watchfiles-1.2.0-cp312-cp312-win_arm64.whl", hash = "sha256:8fa585ede612ee9f9e91b18bebf9ba11b9ae29a4e3a0d0cf6fca3e382133f0d5"},
+ {file = "watchfiles-1.2.0-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:01ea8d66f0693b9b60a6541c8d10263091ca9a9060d242f3c1f3143f9aad2c98"},
+ {file = "watchfiles-1.2.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:7ba0480b9a74af058f43b337e937a451e109295c420916d68ad24e3dc02f5e44"},
+ {file = "watchfiles-1.2.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4f34e26a19f91f710c08e0183429f0d1d15df734e6bc78c31e77b9ea9c433658"},
+ {file = "watchfiles-1.2.0-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:b4e77f6a55f858504069abd35d336a637555c09bca453dde1ee1e5ada8a6a1fb"},
+ {file = "watchfiles-1.2.0-cp313-cp313-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:0cb4d80e212f116474a545c21c912b445f16bb0cef9e6a73a498164223e14e2f"},
+ {file = "watchfiles-1.2.0-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b974946a10af379d425e2eef5b62f5c6ebeaccf91d45eaad6f5b27ecd4f91aa0"},
+ {file = "watchfiles-1.2.0-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:86bc13c25a8d1fcd70b51d0ce7c9b65e90de5666fcbfd3e34957cc73ee19aeb5"},
+ {file = "watchfiles-1.2.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ca148d73dea36c9763aaa351e4d7a51780ec1584217c45276f4fe8239c768b71"},
+ {file = "watchfiles-1.2.0-cp313-cp313-manylinux_2_31_riscv64.whl", hash = "sha256:c525543d91961c6955b2636b308569e84a1d1c5f5f2932041ab9ef46422f43e3"},
+ {file = "watchfiles-1.2.0-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:a204794696ffb8f9b10fba6f7cb5216d42f3b2b71860ccac6b6e42f5f10973b0"},
+ {file = "watchfiles-1.2.0-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:10d86db20695afe7997ac9e1717637d6714a8d0220458c33f3d2061f54cec427"},
+ {file = "watchfiles-1.2.0-cp313-cp313-win32.whl", hash = "sha256:eb283ee99e21ad6443c8cdb06ac5b34b1308c329cbdf03fa02b445363714c799"},
+ {file = "watchfiles-1.2.0-cp313-cp313-win_amd64.whl", hash = "sha256:a0f27f01bee51861392bb6b7c4fdb290b27d1eb194e9e28788d68102a0e898d9"},
+ {file = "watchfiles-1.2.0-cp313-cp313-win_arm64.whl", hash = "sha256:3651aa7058595e9cfb75d35dd5ada2bf9f48a5b8a0f3562821d3e210c507e077"},
+ {file = "watchfiles-1.2.0-cp313-cp313t-macosx_10_12_x86_64.whl", hash = "sha256:faea288b6f0ab1902ef08f4ca6de005dccf856c4e0c4f21b8c5fce02d90a1b08"},
+ {file = "watchfiles-1.2.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:01859b11fd9fbca670f4d5da00fbac282cfea9bd67a2125d8b2833a3b5617ea9"},
+ {file = "watchfiles-1.2.0-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:fff610d7bb2256a317bb1e96f0d7862c7aa8076733ee5df0fd41bbe76a24a4f4"},
+ {file = "watchfiles-1.2.0-cp313-cp313t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:b141a4891c995a039cd89e9a49e62df1dc8a559a5d1a6e4c7106d16c12777a55"},
+ {file = "watchfiles-1.2.0-cp313-cp313t-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f22943b7770483f6ea0721c6b11d022947a98eb0acae14694de034f4d0d38925"},
+ {file = "watchfiles-1.2.0-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:1bc6195825b7dcd217968bb1f801a60fd4c16e8eeab5bedc7fe917d7d5995ab4"},
+ {file = "watchfiles-1.2.0-cp313-cp313t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d4a4b147f5dca2a5d325a06a832fb43f345751adfbc63204aec30e0d9ca965a2"},
+ {file = "watchfiles-1.2.0-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4543579a9bdb0c9560039b4ffddbdb39545707659fbc430ce4c10f3f68d557f9"},
+ {file = "watchfiles-1.2.0-cp313-cp313t-manylinux_2_31_riscv64.whl", hash = "sha256:20aa0e708b920bde876a4aa82dc7dd6ebea228a63a67cda6632c2fc87b787efa"},
+ {file = "watchfiles-1.2.0-cp313-cp313t-musllinux_1_1_aarch64.whl", hash = "sha256:d413349d565dab74297f2a63e84a097936be69bf8f3b3801f27f380e32040f44"},
+ {file = "watchfiles-1.2.0-cp313-cp313t-musllinux_1_1_x86_64.whl", hash = "sha256:f28b2725eb8cce327b9b3ab02415c853011dc55c95832fe90de6bc56f5315f72"},
+ {file = "watchfiles-1.2.0-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:b8c8358484d5fa12ef34f05b7f4168eaf1932f408725ff6d023c33ec17bd79d4"},
+ {file = "watchfiles-1.2.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:9f04b092229ad2c50126dd3c922c8822e51e605993764a33058d4a791ab42281"},
+ {file = "watchfiles-1.2.0-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7a7ce236284f002a156f70add88efe5c70879cccbb658be0822c54b1306fc09d"},
+ {file = "watchfiles-1.2.0-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:b9909cc2b48468b575eefa944919e1fe8a36c5849d5c7c168f80a8c1db69398e"},
+ {file = "watchfiles-1.2.0-cp314-cp314-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:0a37faaed405c67e28e6be45a1fa4f206ef5a2860f27c237db9fa30704c38242"},
+ {file = "watchfiles-1.2.0-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9649193aa27bd9ff2e80ff29bfaa93085496c7a3a377592823cc58b77ee88add"},
+ {file = "watchfiles-1.2.0-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:4e4ff8e37f99cf1da89e255e07c9c4b37c214038c4283707bdec308cb1b0ea1f"},
+ {file = "watchfiles-1.2.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:054dc20fd2e3132b4c3883b4a00d72fd6e1f56fdaf89fccd12e8057d74cd74d7"},
+ {file = "watchfiles-1.2.0-cp314-cp314-manylinux_2_31_riscv64.whl", hash = "sha256:e140ed30ebde76796b686e67c182cff10ea2fbab186fafd1560f74bb5a473a6e"},
+ {file = "watchfiles-1.2.0-cp314-cp314-musllinux_1_1_aarch64.whl", hash = "sha256:bb7e52ecf68ba46d22df23467b87cffeb2146908aa523ebfe803019618cfda06"},
+ {file = "watchfiles-1.2.0-cp314-cp314-musllinux_1_1_x86_64.whl", hash = "sha256:23282a321c8baf9b3a3c4afff673f9fe65eb7fdc2338d765ccad9d3d1916a5ba"},
+ {file = "watchfiles-1.2.0-cp314-cp314-win32.whl", hash = "sha256:c0db965c5f79aa49fe672d297cf1febc5ad149b658594944f49a54a2b96270a7"},
+ {file = "watchfiles-1.2.0-cp314-cp314-win_amd64.whl", hash = "sha256:71283b39fd17e5408eb123bd37aeecfd9d54c81fc184421943208aadb879d103"},
+ {file = "watchfiles-1.2.0-cp314-cp314-win_arm64.whl", hash = "sha256:c5c19526f4e54a00f2666a6c0e9e40d582c09e865055ea7378bf0009aab857b3"},
+ {file = "watchfiles-1.2.0-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:d73a585accffa5ae39c17264c36ec3166d2fad7000c780f5ef83b2722afb9dd2"},
+ {file = "watchfiles-1.2.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:ae99b14c5f21e026e0e9d96f40e07d8570ebee6cafd9d8fc318354606daa7a28"},
+ {file = "watchfiles-1.2.0-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4429f3b105524a10b72c3a819b091c495d2811d419c1e1e8df773a5a5974f831"},
+ {file = "watchfiles-1.2.0-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:43d818978d06062d9b22c4fab2ebe44cf5213d42dc8e62bda8c2760cfa2eeb33"},
+ {file = "watchfiles-1.2.0-cp314-cp314t-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b9f732dc58b2dbe69e464ccf8fff7a03b0dd0be439da4c0720d3558527d3d6b4"},
+ {file = "watchfiles-1.2.0-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:8f200104103feb097de4cab8fe4f5dd18a2026934c7dea98c55a2f5fd6d5a33b"},
+ {file = "watchfiles-1.2.0-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:63ac26eefbf4af1741247d6fb68b11c49a25b2f7413fbd318a83a12aaa9cf666"},
+ {file = "watchfiles-1.2.0-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0c4997d4e4a55f0d02b6cde327322daf3a0400e5df6c6b15948994bf72497925"},
+ {file = "watchfiles-1.2.0-cp314-cp314t-manylinux_2_31_riscv64.whl", hash = "sha256:4c887eba18b7945ac73067a8b4a66f21cd46c2539b2bc68588f7be6c7eb6d26b"},
+ {file = "watchfiles-1.2.0-cp314-cp314t-musllinux_1_1_aarch64.whl", hash = "sha256:3416ff151bb6b5a8d8d11664974fbef4d9305b9b2957839ab5a270468fd8df30"},
+ {file = "watchfiles-1.2.0-cp314-cp314t-musllinux_1_1_x86_64.whl", hash = "sha256:0e831a271c035d89789cffc386b6aa1375f39f1cd25eb7ca0997e4970d152fc5"},
+ {file = "watchfiles-1.2.0-cp315-cp315-macosx_10_12_x86_64.whl", hash = "sha256:37a6721cdf3f65dbb13aa9503510ccb4451603ac837e44d265d7992a597e1374"},
+ {file = "watchfiles-1.2.0-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:2b37d10b5a63bd4d87e18472d80fa525bd670586fae62e5dd580452764879b65"},
+ {file = "watchfiles-1.2.0-cp315-cp315-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0a105bc2283f67e8fbec74253ec2d94925de92ed72c0393f1206bf326b7b7b69"},
+ {file = "watchfiles-1.2.0-cp315-cp315-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:5327989a465505f05cfe06f04fa9d0c2fd5432bb243e10e6f012b1bdca3c8579"},
+ {file = "watchfiles-1.2.0-cp315-cp315-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ecb47f183a8025b2aa18b546725c3657e542112ae9c0613a2af79b4fa8d04ad7"},
+ {file = "watchfiles-1.2.0-cp315-cp315-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:8520a4ab0e37f770afc34459c4f8f7019e153f9124dc101c15538365875d1ab2"},
+ {file = "watchfiles-1.2.0-cp315-cp315-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:71cd71740ed2c15211ebb237ced4e39a1cdf6f80566e5fe95428da1626f4fde6"},
+ {file = "watchfiles-1.2.0-cp315-cp315-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f88af53d6ddaf72179ef613ddc905e6f4785f712b49b80b3bef9f3525e6194b4"},
+ {file = "watchfiles-1.2.0-cp315-cp315-manylinux_2_31_riscv64.whl", hash = "sha256:cee9d5efd929efdac5f7e58f72b3376f676b64050a91c5b99a7094c5b2317488"},
+ {file = "watchfiles-1.2.0-cp315-cp315-musllinux_1_1_aarch64.whl", hash = "sha256:b718bf356bbc15e559bd8ef41782b573b8ae0e3f177ab244b440568d7ea02cfb"},
+ {file = "watchfiles-1.2.0-cp315-cp315-musllinux_1_1_x86_64.whl", hash = "sha256:922c0e019fe68b3ae392965a766b02a71ba1168c932cebc3733cd52c5fe5b377"},
+ {file = "watchfiles-1.2.0-pp311-pypy311_pp73-macosx_10_12_x86_64.whl", hash = "sha256:4674d49eb94706dfe666c069fc0a1b646ffcf920473492e209f6d5f60d3f0cc2"},
+ {file = "watchfiles-1.2.0-pp311-pypy311_pp73-macosx_11_0_arm64.whl", hash = "sha256:094b9b70103d4e963499bdea001ee3c2697b144cd9ae6218a62c0f89ec9e31db"},
+ {file = "watchfiles-1.2.0-pp311-pypy311_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b0ef001f8c25ad0fa9529f914c1600647ecd0f542d11c19b7894768c67b6acb7"},
+ {file = "watchfiles-1.2.0-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a88fc94e647bc4eec523f1caa540258eb71d14278b9daf72fa1e2658a98df0f0"},
+ {file = "watchfiles-1.2.0.tar.gz", hash = "sha256:c995fba777f1ea992f090f9236e9284cf7a5d1a0130dd5a3d82c598cacd76838"},
+]
+
+[package.dependencies]
+anyio = ">=3.0.0"
+
[[package]]
name = "wcwidth"
version = "0.2.14"
@@ -8627,4 +8747,4 @@ postgresql-backend = ["networkx", "pgvector", "psycopg2-binary"]
[metadata]
lock-version = "2.1"
python-versions = ">=3.11,<4.0.0"
-content-hash = "41d6b74fdf57bc4a7e2e0ea9f8842110b191a8431670f07b2ac52f91d0eb0e95"
+content-hash = "8693e34580d951fe9851d43c42cb2f9cf8db391d267ed27c0dc65a20a71add6d"
diff --git a/pyproject.toml b/pyproject.toml
index cdcc152..04aa895 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -41,6 +41,7 @@ dependencies = [
"mcp (>=1.26.0,<2.0.0)",
"boto3 (>=1.40.19,<2.0.0)",
"langchain-aws (>=1.0.0,<2.0.0)",
+ "watchfiles (>=1.2.0,<2.0.0)",
]
[project.optional-dependencies]
@@ -93,6 +94,7 @@ langid = ">=1.1.6,<2.0.0"
mcp = ">=1.26.0,<2.0.0"
boto3 = ">=1.40.19,<2.0.0"
langchain-aws = ">=1.0.0,<2.0.0"
+watchfiles = ">=1.2.0,<2.0.0"
[tool.poetry.group.docling-ocr]
optional = true
@@ -101,6 +103,7 @@ optional = true
docling = ">=2.0.0,<3.0.0"
accelerate = ">=1.0.0,<2.0.0"
+
[tool.pylint.messages_control]
enable = ["abstract-method"]
diff --git a/src/adapters/data.py b/src/adapters/data.py
index ef9d5ae..bb84be0 100644
--- a/src/adapters/data.py
+++ b/src/adapters/data.py
@@ -95,6 +95,12 @@ class DataAdapter:
"""
return self.data.get_brain(name_key=name_key)
+ def get_brain_by_pat(self, pat: str) -> Brain | None:
+ """
+ Get a brain from the data client by its PAT.
+ """
+ return self.data.get_brain_by_pat(pat=pat)
+
def get_brains_list(self) -> List[Brain]:
"""
Get the list of brains from the data client.
diff --git a/src/adapters/embeddings.py b/src/adapters/embeddings.py
index cc54324..aa44725 100644
--- a/src/adapters/embeddings.py
+++ b/src/adapters/embeddings.py
@@ -214,6 +214,21 @@ class VectorStoreAdapter:
"""
return self.vector_store.remove_vectors(ids, store, brain_id)
+ def list_vectors(
+ self,
+ store: str,
+ brain_id: str = "default",
+ limit: int = 10,
+ skip: int = 0,
+ include_embeddings: bool = False,
+ ) -> tuple[list[Vector], int]:
+ """
+ List vectors in a store with pagination.
+ """
+ return self.vector_store.list_vectors(
+ store, brain_id, limit, skip, include_embeddings
+ )
+
_embeddings_adapter = EmbeddingsAdapter()
_vector_store_adapter = VectorStoreAdapter()
diff --git a/src/adapters/interfaces/data.py b/src/adapters/interfaces/data.py
index e0db157..97331aa 100644
--- a/src/adapters/interfaces/data.py
+++ b/src/adapters/interfaces/data.py
@@ -9,7 +9,7 @@ Modified By: Christian Nonis <[email protected]>
"""
from abc import ABC, abstractmethod
-from typing import List, Tuple
+from typing import List, Optional, Tuple
from pydantic import BaseModel
@@ -94,6 +94,13 @@ class DataClient(ABC):
"""
raise NotImplementedError("get_brain method not implemented")
+ @abstractmethod
+ def get_brain_by_pat(self, pat: str) -> Optional[Brain]:
+ """
+ Get a brain from the data client by its PAT.
+ """
+ raise NotImplementedError("get_brain_by_pat method not implemented")
+
@abstractmethod
def get_brains_list(self) -> List[Brain]:
"""
diff --git a/src/adapters/interfaces/embeddings.py b/src/adapters/interfaces/embeddings.py
index cafd623..3314813 100644
--- a/src/adapters/interfaces/embeddings.py
+++ b/src/adapters/interfaces/embeddings.py
@@ -93,3 +93,17 @@ class VectorStoreClient(ABC):
Remove vectors from the vector store.
"""
raise NotImplementedError("remove_vectors method not implemented")
+
+ @abstractmethod
+ def list_vectors(
+ self,
+ store: str,
+ brain_id: str,
+ limit: int = 10,
+ skip: int = 0,
+ include_embeddings: bool = False,
+ ) -> tuple[list[Vector], int]:
+ """
+ List vectors in a store with pagination.
+ """
+ raise NotImplementedError("list_vectors method not implemented")
diff --git a/src/lib/milvus/client.py b/src/lib/milvus/client.py
index 70c1baa..05c8850 100644
--- a/src/lib/milvus/client.py
+++ b/src/lib/milvus/client.py
@@ -371,5 +371,50 @@ class MilvusClient(VectorStoreClient):
except Exception as e:
print(f"[Milvus] Failed to remove vectors from {store}: {e}")
+ def list_vectors(
+ self,
+ store: str,
+ brain_id: str,
+ limit: int = 10,
+ skip: int = 0,
+ include_embeddings: bool = False,
+ ) -> tuple[list[Vector], int]:
+ client = self._get_client(brain_id)
+ self._ensure_store(store, brain_id)
+ try:
+ client.load_collection(store)
+ except Exception:
+ pass
+
+ output_fields = ["uuid", "$meta"]
+ if include_embeddings:
+ output_fields.insert(0, "embeddings")
+
+ stats = client.get_collection_stats(store)
+ total = int(stats.get("row_count", 0))
+
+ rows = client.query(
+ collection_name=store,
+ filter="id >= 0",
+ output_fields=output_fields,
+ limit=limit,
+ offset=skip,
+ )
+ results = []
+ for row in rows or []:
+ metadata = {
+ k: v
+ for k, v in row.items()
+ if k not in ["id", "embeddings", "distance", "uuid"]
+ }
+ results.append(
+ Vector(
+ id=row.get("uuid", str(row.get("id", ""))),
+ embeddings=row.get("embeddings") if include_embeddings else None,
+ metadata=metadata,
+ )
+ )
+ return results, total
+
_milvus_client = MilvusClient()
diff --git a/src/lib/mongo/client.py b/src/lib/mongo/client.py
index 4140c8e..1b645cc 100644
--- a/src/lib/mongo/client.py
+++ b/src/lib/mongo/client.py
@@ -151,6 +151,17 @@ class MongoClient(DataClient):
pat=result.get("pat"),
)
+ def get_brain_by_pat(self, pat: str) -> Brain | None:
+ collection = self.get_collection("brains", config.mongo.system_database)
+ result = collection.find_one({"pat": pat})
+ if not result:
+ return None
+ return Brain(
+ id=str(result["_id"]),
+ name_key=result["name_key"],
+ pat=result.get("pat"),
+ )
+
def get_brains_list(self) -> List[Brain]:
collection = self.get_collection("brains", config.mongo.system_database)
result = collection.find()
diff --git a/src/lib/postgresql/_naming.py b/src/lib/postgresql/_naming.py
index 8053d1e..49c1189 100644
--- a/src/lib/postgresql/_naming.py
+++ b/src/lib/postgresql/_naming.py
@@ -17,7 +17,7 @@ from __future__ import annotations
import hashlib
import re
-__all__ = ["brain_db_name", "BRAIN_DB_PREFIX"]
+__all__ = ["brain_db_name", "brain_id_from_db_name", "BRAIN_DB_PREFIX", "is_internal_brain_db_suffix"]
BRAIN_DB_PREFIX = "brain_"
@@ -47,3 +47,17 @@ def brain_db_name(brain_id: str) -> str:
head_budget = _MAX_DBNAME_LEN - len(BRAIN_DB_PREFIX) - len(digest) - 1
head = sanitized[:head_budget].rstrip("_")
return f"{BRAIN_DB_PREFIX}{head}_{digest}"
+
+
+def brain_id_from_db_name(db_name: str) -> str | None:
+ if not db_name.startswith(BRAIN_DB_PREFIX):
+ return None
+ suffix = db_name[len(BRAIN_DB_PREFIX) :]
+ return suffix or None
+
+
+def is_internal_brain_db_suffix(suffix: str) -> bool:
+ compact = suffix.replace("_", "")
+ if len(compact) < 32:
+ return False
+ return all(ch in "0123456789abcdef" for ch in compact)
diff --git a/src/lib/postgresql/_provisioning.py b/src/lib/postgresql/_provisioning.py
index 20d6f3f..1aa36da 100644
--- a/src/lib/postgresql/_provisioning.py
+++ b/src/lib/postgresql/_provisioning.py
@@ -36,7 +36,7 @@ from psycopg2 import sql
from src.config import config
-from ._naming import brain_db_name
+from ._naming import BRAIN_DB_PREFIX, brain_db_name
logger = logging.getLogger(__name__)
@@ -188,3 +188,13 @@ def ensure_system_database() -> str:
dbname = _system_dbname()
ensure_database_exists(dbname)
return dbname
+
+
+def list_brain_database_names() -> list[str]:
+ with borrow(_registry.get(_maintenance_dbname())) as conn:
+ with conn.cursor() as cur:
+ cur.execute(
+ "SELECT datname FROM pg_database WHERE datname LIKE %s ORDER BY datname",
+ (f"{BRAIN_DB_PREFIX}%",),
+ )
+ return [row[0] for row in cur.fetchall()]
diff --git a/src/lib/postgresql/data.py b/src/lib/postgresql/data.py
index d16caee..75ca9fa 100644
--- a/src/lib/postgresql/data.py
+++ b/src/lib/postgresql/data.py
@@ -26,12 +26,18 @@ from src.constants.data import (
TextChunk,
)
+from ._naming import (
+ brain_db_name,
+ brain_id_from_db_name,
+ is_internal_brain_db_suffix,
+)
from ._provisioning import (
borrow,
ensure_brain_database,
ensure_database_exists,
get_brain_pool,
get_system_pool,
+ list_brain_database_names,
)
@@ -353,7 +359,7 @@ class PostgreSQLDataClient(DataClient):
),
)
conn.commit()
- self._ensure_brain_schema(brain.id)
+ self._ensure_brain_schema(name_key)
return brain
def get_brain(self, name_key: str) -> Optional[Brain]:
@@ -368,12 +374,39 @@ class PostgreSQLDataClient(DataClient):
return None
return Brain.model_validate(row["document"])
+ def get_brain_by_pat(self, pat: str) -> Optional[Brain]:
+ with self._system_connection() as conn:
+ with conn.cursor(cursor_factory=psycopg2.extras.RealDictCursor) as cur:
+ cur.execute(
+ "SELECT document FROM data_brains WHERE pat = %s",
+ (pat,),
+ )
+ row = cur.fetchone()
+ if not row:
+ return None
+ return Brain.model_validate(row["document"])
+
def get_brains_list(self) -> List[Brain]:
with self._system_connection() as conn:
with conn.cursor(cursor_factory=psycopg2.extras.RealDictCursor) as cur:
cur.execute("SELECT document FROM data_brains")
rows = cur.fetchall()
- return [Brain.model_validate(row["document"]) for row in rows]
+ registered = [Brain.model_validate(row["document"]) for row in rows]
+ by_key = {brain.name_key: brain for brain in registered}
+ known_db_names = {
+ brain_db_name(brain.name_key) for brain in registered
+ } | {brain_db_name(brain.id) for brain in registered}
+
+ for db_name in list_brain_database_names():
+ if db_name in known_db_names:
+ continue
+ suffix = brain_id_from_db_name(db_name)
+ if not suffix or is_internal_brain_db_suffix(suffix):
+ continue
+ if suffix not in by_key:
+ by_key[suffix] = Brain(name_key=suffix)
+
+ return sorted(by_key.values(), key=lambda brain: brain.name_key)
def save_kg_changes(self, kg_changes: KGChanges, brain_id: str) -> KGChanges:
document = kg_changes.model_dump(mode="json")
diff --git a/src/lib/postgresql/graph_store.py b/src/lib/postgresql/graph_store.py
index 823be1d..7e02117 100644
--- a/src/lib/postgresql/graph_store.py
+++ b/src/lib/postgresql/graph_store.py
@@ -210,9 +210,59 @@ class PostgreSQLGraphStore:
key=row["uuid"],
**payload,
)
+ if brain.graph.number_of_edges() == 0:
+ self._hydrate_relationships_from_vectors(brain_id, brain)
self._brains[brain_id] = brain
return brain
+ def _hydrate_relationships_from_vectors(
+ self, brain_id: str, brain: _BrainGraph
+ ) -> None:
+ with self._connection(brain_id) as conn:
+ with conn.cursor(cursor_factory=psycopg2.extras.RealDictCursor) as cur:
+ cur.execute(
+ """
+ SELECT 1 FROM information_schema.tables
+ WHERE table_schema = 'public' AND table_name = 'vectors_relationships'
+ """
+ )
+ if not cur.fetchone():
+ return
+ cur.execute("SELECT uuid, metadata FROM vectors_relationships")
+ rows = cur.fetchall()
+
+ for row in rows:
+ meta = dict(row.get("metadata") or {})
+ rel_uuid = str(meta.get("uuid") or row.get("uuid") or "")
+ if not rel_uuid:
+ continue
+ node_ids = meta.get("node_ids") or []
+ if len(node_ids) < 2:
+ continue
+ source_uuid = str(node_ids[0])
+ target_uuid = str(node_ids[1])
+ if (
+ source_uuid not in brain.graph
+ or target_uuid not in brain.graph
+ ):
+ continue
+ rel_type = str(meta.get("predicate") or "RELATED")
+ edge_data = {"rel_type": rel_type, "deprecated": False}
+ brain.graph.add_edge(
+ source_uuid,
+ target_uuid,
+ key=rel_uuid,
+ **edge_data,
+ )
+ self._persist_relationship(
+ brain_id,
+ rel_uuid,
+ rel_type,
+ source_uuid,
+ target_uuid,
+ edge_data,
+ )
+
def _persist_node(self, brain_id: str, uuid: str, data: dict) -> None:
payload = dict(data)
payload.pop("uuid", None)
diff --git a/src/lib/postgresql/networkx_client.py b/src/lib/postgresql/networkx_client.py
index 81bce4d..4adec5e 100644
--- a/src/lib/postgresql/networkx_client.py
+++ b/src/lib/postgresql/networkx_client.py
@@ -78,6 +78,9 @@ class NetworkXGraphClient(GraphClient):
for label in labels
]
+ def _node_label_set(self, brain, node_uuid: str) -> set[str]:
+ return set(self._clean_labels(list(brain.labels(node_uuid))))
+
def _clean_property_key(self, property_key: str) -> str:
words = property_key.split()
return words[0].lower() + "".join(word.capitalize() for word in words[1:])
@@ -568,9 +571,13 @@ class NetworkXGraphClient(GraphClient):
continue
if relationship_uuids and key not in relationship_uuids and edge_data.get("uuid") not in relationship_uuids:
continue
- if from_labels and not from_labels.intersection(brain.labels(source)):
+ if from_labels and not from_labels.intersection(
+ self._node_label_set(brain, source)
+ ):
continue
- if to_labels and not to_labels.intersection(brain.labels(target)):
+ if to_labels and not to_labels.intersection(
+ self._node_label_set(brain, target)
+ ):
continue
if text_lower:
haystacks = [
@@ -643,7 +650,9 @@ class NetworkXGraphClient(GraphClient):
if uuid_filter is not None and node_uuid not in uuid_filter:
continue
if allowed_labels is not None:
- if not allowed_labels.intersection(set(brain.labels(node_uuid))):
+ if not allowed_labels.intersection(
+ self._node_label_set(brain, node_uuid)
+ ):
continue
if text_lower is not None:
if text_lower not in str(data.get("name", "")).lower():
diff --git a/src/lib/postgresql/vectors.py b/src/lib/postgresql/vectors.py
index 104b767..7dba716 100644
--- a/src/lib/postgresql/vectors.py
+++ b/src/lib/postgresql/vectors.py
@@ -355,6 +355,47 @@ class PostgreSQLVectorStoreClient(VectorStoreClient):
except Exception as exc:
print(f"[PostgreSQLVectorStore] Failed to remove vectors from {store}: {exc}")
+ def list_vectors(
+ self,
+ store: str,
+ brain_id: str,
+ limit: int = 10,
+ skip: int = 0,
+ include_embeddings: bool = False,
+ ) -> tuple[list[Vector], int]:
+ self._ensure_store(store, brain_id)
+ table = _table_name(store)
+ embedding_col = ", embeddings" if include_embeddings else ""
+ with self._connection(brain_id) as conn:
+ with conn.cursor(cursor_factory=psycopg2.extras.RealDictCursor) as cur:
+ cur.execute(f"SELECT COUNT(*) AS total FROM {table}")
+ total = int(cur.fetchone()["total"])
+ cur.execute(
+ f"""
+ SELECT id, uuid, metadata{embedding_col}
+ FROM {table}
+ ORDER BY id
+ LIMIT %s OFFSET %s
+ """,
+ (limit, skip),
+ )
+ rows = cur.fetchall()
+ results: list[Vector] = []
+ for row in rows:
+ embeddings = None
+ if include_embeddings:
+ embeddings = row.get("embeddings")
+ if embeddings is not None and not isinstance(embeddings, list):
+ embeddings = list(embeddings)
+ results.append(
+ Vector(
+ id=row["uuid"] or str(row["id"]),
+ embeddings=embeddings,
+ metadata=dict(row["metadata"] or {}),
+ )
+ )
+ return results, total
+
_postgresql_vector_store_client: Optional[PostgreSQLVectorStoreClient] = None
diff --git a/src/services/api/app.py b/src/services/api/app.py
index edfd38d..331c3c2 100644
--- a/src/services/api/app.py
+++ b/src/services/api/app.py
@@ -10,8 +10,11 @@ dotenv.load_dotenv(_project_root / ".env")
from fastapi import FastAPI, Response
from fastapi.middleware.cors import CORSMiddleware
+from fastapi.responses import RedirectResponse
from uvicorn import run
+from src.services.api.console_static import SPAStaticFiles
+
from src.services.api.middlewares.auth import BrainPATMiddleware
from src.services.api.middlewares.brains import BrainMiddleware
from src.services.api.routes.ingest import ingest_router
@@ -26,6 +29,11 @@ from src.lib.tracing.runtime import start_runtime_monitoring, stop_runtime_monit
logger = logging.getLogger("brainapi.plugins")
PLUGINS_DIR = Path(os.getenv("PLUGINS_DIR", str(_project_root / "plugins")))
+CONSOLE_DIST = _project_root / "console" / "dist"
+
+
+def _console_enabled() -> bool:
+ return os.getenv("CONSOLE_ENABLED", "true").strip().lower() != "false"
@asynccontextmanager
@@ -139,5 +147,29 @@ async def root():
return Response(content="ok", status_code=200)
+if _console_enabled():
+
+ @app.get("/console", include_in_schema=False)
+ async def console_redirect():
+ return RedirectResponse(url="/console/", status_code=307)
+
+ if CONSOLE_DIST.is_dir():
+ app.mount(
+ "/console",
+ SPAStaticFiles(directory=str(CONSOLE_DIST), html=True),
+ name="console",
+ )
+ logger.info("Local console mounted at /console")
+ else:
+ logger.warning(
+ "Console enabled but %s not found — run: make build-console",
+ CONSOLE_DIST,
+ )
+elif os.getenv("CONSOLE_ENABLED", "").strip().lower() == "true":
+ logger.warning(
+ "CONSOLE_ENABLED=true but console is disabled — set CONSOLE_ENABLED=false to silence",
+ )
+
+
if __name__ == "__main__":
- run(app, host="0.0.0.0", port=8000, reload=os.getenv("ENV") == "development")
+ run(app, host="0.0.0.0", port=8000)
diff --git a/src/services/api/console_static.py b/src/services/api/console_static.py
new file mode 100644
index 0000000..2fc02aa
--- /dev/null
+++ b/src/services/api/console_static.py
@@ -0,0 +1,16 @@
+from starlette.exceptions import HTTPException
+from starlette.staticfiles import StaticFiles
+
+
+def is_console_path(path: str) -> bool:
+ return path == "/console" or path.startswith("/console/")
+
+
+class SPAStaticFiles(StaticFiles):
+ async def get_response(self, path: str, scope):
+ try:
+ return await super().get_response(path, scope)
+ except HTTPException as exc:
+ if exc.status_code == 404:
+ return await super().get_response("index.html", scope)
+ raise exc
diff --git a/src/services/api/controllers/meta.py b/src/services/api/controllers/meta.py
index 2bd1b52..3aca7f0 100644
--- a/src/services/api/controllers/meta.py
+++ b/src/services/api/controllers/meta.py
@@ -9,9 +9,34 @@ Modified By: the developer formerly known as Christian Nonis at <alch.infoemail@
"""
import asyncio
+import os
+
+from fastapi import HTTPException, Request
+
+from src.services.data.main import data_adapter
from src.services.kg_agent.main import graph_adapter
+async def get_login_info(request: Request):
+ brainpat = request.headers.get("BrainPAT")
+ if not brainpat:
+ auth = request.headers.get("Authorization")
+ if auth:
+ brainpat = auth.split(" ")[-1].rstrip()
+ if not brainpat:
+ raise HTTPException(status_code=401, detail="Invalid or missing BrainPAT header")
+
+ system_pat = os.getenv("BRAINPAT_TOKEN")
+ if brainpat == system_pat:
+ return {"is_system_pat": True, "brain_id": "default"}
+
+ brain = await asyncio.to_thread(data_adapter.get_brain_by_pat, brainpat)
+ if not brain:
+ raise HTTPException(status_code=401, detail="Invalid or missing BrainPAT header")
+
+ return {"is_system_pat": False, "brain_id": brain.name_key}
+
+
async def get_entities_labels(brain_id: str):
"""
Retrieve node labels (types) for the graph identified by `brain_id`.
@@ -49,4 +74,4 @@ async def get_entity_properties(brain_id: str):
list[str]: Unique property key names present on nodes in the graph.
"""
result = await asyncio.to_thread(graph_adapter.get_graph_node_properties, brain_id)
- return result
\ No newline at end of file
+ return result
diff --git a/src/services/api/controllers/vectors.py b/src/services/api/controllers/vectors.py
new file mode 100644
index 0000000..1fc7c30
--- /dev/null
+++ b/src/services/api/controllers/vectors.py
@@ -0,0 +1,46 @@
+"""
+File: /vectors.py
+Created Date: Saturday May 30th 2026
+Author: Christian Nonis <[email protected]>
+"""
+
+import asyncio
+
+from fastapi.responses import JSONResponse
+
+from src.constants.embeddings import EMBEDDING_STORES_SIZES
+from src.services.kg_agent.main import vector_store_adapter
+
+
+async def get_vector_stores():
+ return {
+ "stores": [
+ {"name": name, "dimension": dim}
+ for name, dim in EMBEDDING_STORES_SIZES.items()
+ ]
+ }
+
+
+async def list_vectors(
+ store: str,
+ brain_id: str,
+ limit: int = 10,
+ skip: int = 0,
+ include_embeddings: bool = False,
+):
+ vectors, total = await asyncio.to_thread(
+ vector_store_adapter.list_vectors,
+ store,
+ brain_id,
+ limit,
+ skip,
+ include_embeddings,
+ )
+ return JSONResponse(
+ content={
+ "message": "Vectors retrieved successfully",
+ "store": store,
+ "vectors": [v.model_dump(mode="json") for v in vectors],
+ "total": total,
+ }
+ )
diff --git a/src/services/api/middlewares/auth.py b/src/services/api/middlewares/auth.py
index 45b76c3..5e6c65c 100644
--- a/src/services/api/middlewares/auth.py
+++ b/src/services/api/middlewares/auth.py
@@ -14,21 +14,27 @@ from fastapi.responses import JSONResponse
from starlette.middleware.base import BaseHTTPMiddleware
from starlette import status
+from src.services.api.console_static import is_console_path
from src.services.kg_agent.main import cache_adapter
from src.services.data.main import data_adapter
class BrainPATMiddleware(BaseHTTPMiddleware):
- excluded_prefixes: set[str] = set()
+ excluded_prefixes: set[str] = {"/console"}
+ auth_exempt_paths: set[str] = {"/meta/login-info"}
async def dispatch(self, request: Request, call_next):
if request.method == "OPTIONS":
return await call_next(request)
+ if is_console_path(request.url.path):
+ return await call_next(request)
+
if any(request.url.path.startswith(p) for p in self.excluded_prefixes):
return await call_next(request)
- # Variables ----------------------------------------------
+ if request.url.path in self.auth_exempt_paths:
+ return await call_next(request)
brainpat = request.headers.get("BrainPAT") or getattr(
request.state, "pat", None
)
@@ -39,7 +45,6 @@ class BrainPATMiddleware(BaseHTTPMiddleware):
if brainpat:
brainpat = brainpat.rstrip()
system_pat = os.getenv("BRAINPAT_TOKEN")
- print(brainpat, system_pat)
if request.url.path.startswith("/system") or request.url.path == "/":
if brainpat == system_pat:
return await call_next(request)
diff --git a/src/services/api/middlewares/brains.py b/src/services/api/middlewares/brains.py
index dc7f704..527f964 100644
--- a/src/services/api/middlewares/brains.py
+++ b/src/services/api/middlewares/brains.py
@@ -19,6 +19,7 @@ from pymongo.errors import OperationFailure, ServerSelectionTimeoutError
from starlette.middleware.base import BaseHTTPMiddleware
from starlette import status
+from src.services.api.console_static import is_console_path
from src.services.data.main import data_adapter
from src.services.kg_agent.main import cache_adapter
@@ -43,12 +44,19 @@ def _brain_id_from_multipart(body: bytes, content_type: str) -> str | None:
class BrainMiddleware(BaseHTTPMiddleware):
- excluded_prefixes: set[str] = set()
+ excluded_prefixes: set[str] = {"/console"}
+ brain_exempt_paths: set[str] = {"/meta/login-info"}
async def dispatch(self, request: Request, call_next):
+ if is_console_path(request.url.path):
+ return await call_next(request)
+
if any(request.url.path.startswith(p) for p in self.excluded_prefixes):
return await call_next(request)
+ if request.url.path in self.brain_exempt_paths:
+ return await call_next(request)
+
async def _get_brain_id():
brain_id = None
diff --git a/src/services/api/routes/meta.py b/src/services/api/routes/meta.py
index 96c4162..fd89411 100644
--- a/src/services/api/routes/meta.py
+++ b/src/services/api/routes/meta.py
@@ -8,17 +8,25 @@ Modified By: the developer formerly known as Christian Nonis at <alch.infoemail@
-----
"""
-from fastapi import APIRouter, Depends
+from fastapi import APIRouter, Depends, Request
from src.services.api.dependencies import get_brain_id
from src.services.api.controllers.meta import (
get_entities_labels as get_entities_labels_controller,
+ get_login_info as get_login_info_controller,
get_relationships_properties as get_relationships_properties_controller,
get_entity_properties as get_entity_properties_controller,
)
meta_router = APIRouter(prefix="/meta", tags=["meta"])
+@meta_router.get(path="/login-info")
+async def get_login_info(request: Request):
+ """
+ Resolve whether a BrainPAT is the system token or scoped to a single brain.
+ """
+ return await get_login_info_controller(request)
+
@meta_router.get(path="/relationships-properties")
async def get_relationships_properties(
brain_id: str = Depends(get_brain_id),
diff --git a/src/services/api/routes/retrieve.py b/src/services/api/routes/retrieve.py
index 998326a..0cd3ed3 100644
--- a/src/services/api/routes/retrieve.py
+++ b/src/services/api/routes/retrieve.py
@@ -53,6 +53,10 @@ from src.services.api.controllers.entities import (
get_entity_sibilings as get_entity_sibilings_controller,
get_entity_status as get_entity_status_controller,
)
+from src.services.api.controllers.vectors import (
+ get_vector_stores as get_vector_stores_controller,
+ list_vectors as list_vectors_controller,
+)
retrieve_router = APIRouter(prefix="/retrieve", tags=["retrieve"])
@@ -508,3 +512,27 @@ async def get_entity_status(
status (dict): A dictionary containing the entity's status details.
"""
return await get_entity_status_controller(target, types or [], brain_id)
+
+
+@retrieve_router.get(path="/vectors/stores")
+async def get_vector_stores():
+ """
+ List available vector store names and dimensions.
+ """
+ return await get_vector_stores_controller()
+
+
+@retrieve_router.get(path="/vectors/{store}")
+async def get_vectors_list(
+ store: str,
+ limit: int = 10,
+ skip: int = 0,
+ include_embeddings: bool = False,
+ brain_id: str = Depends(get_brain_id),
+):
+ """
+ List vectors in a store with pagination.
+ """
+ return await list_vectors_controller(
+ store, brain_id, limit, skip, include_embeddings
+ )
diff --git a/tui/src/commands/start.ts b/tui/src/commands/start.ts
index 8be2c3d..ac1cfce 100644
--- a/tui/src/commands/start.ts
+++ b/tui/src/commands/start.ts
@@ -12,6 +12,7 @@ import {
missingRequiredPythonDeps,
} from "../lib/python.js";
import { runParallel } from "../lib/parallel.js";
+import { ensureConsoleBuilt } from "../lib/console-build.js";
import {
API_DEFAULT_PORT,
MCP_DEFAULT_PORT,
@@ -121,13 +122,26 @@ export async function runStart(opts: StartOptions = {}): Promise<void> {
return;
}
+ if (wantApi) {
+ await ensureConsoleBuilt();
+ }
+
const processEnv = envFileToProcessEnv(env);
+ if (!processEnv.ENV) {
+ processEnv.ENV = "development";
+ }
+ if (!processEnv.CONSOLE_ENABLED) {
+ processEnv.CONSOLE_ENABLED = "true";
+ }
const jobs = buildJobs({ wantApi, wantMcp, wantWorker, processEnv });
p.note(
jobs
.map((j) => `${pc.bold(j.name.padEnd(7))} ${pc.dim(`${j.bin} ${j.args.join(" ")}`)}`)
- .join("\n"),
+ .join("\n") +
+ (wantApi
+ ? `\n\n${pc.cyan("Local console:")} http://localhost:${API_DEFAULT_PORT}/console`
+ : ""),
"Starting (Ctrl-C to stop everything)",
);
@@ -175,7 +189,6 @@ function buildJobs(opts: {
"0.0.0.0",
"--port",
String(API_DEFAULT_PORT),
- "--reload",
],
cwd,
env: opts.processEnv,
@@ -191,7 +204,6 @@ function buildJobs(opts: {
"0.0.0.0",
"--port",
String(MCP_DEFAULT_PORT),
- "--reload",
],
cwd,
env: opts.processEnv,
diff --git a/tui/src/lib/console-build.ts b/tui/src/lib/console-build.ts
new file mode 100644
index 0000000..7910a7c
--- /dev/null
+++ b/tui/src/lib/console-build.ts
@@ -0,0 +1,44 @@
+import { access } from "node:fs/promises";
+import path from "node:path";
+import * as p from "@clack/prompts";
+import pc from "picocolors";
+import { sourcePath } from "./paths.js";
+import { runInherit } from "./exec.js";
+
+const CONSOLE_DIST = path.join(sourcePath(), "console", "dist", "index.html");
+
+export async function consoleDistExists(): Promise<boolean> {
+ try {
+ await access(CONSOLE_DIST);
+ return true;
+ } catch {
+ return false;
+ }
+}
+
+export async function ensureConsoleBuilt(): Promise<void> {
+ if (await consoleDistExists()) {
+ return;
+ }
+ const consoleDir = path.join(sourcePath(), "console");
+ const spinner = p.spinner();
+ spinner.start("Building local console (first run)");
+ try {
+ const install = await runInherit("npm", ["install"], { cwd: consoleDir });
+ if (!install.ok) {
+ throw new Error("npm install failed in console/");
+ }
+ const build = await runInherit("npm", ["run", "build"], { cwd: consoleDir });
+ if (!build.ok) {
+ throw new Error("npm run build failed in console/");
+ }
+ spinner.stop("Local console built");
+ } catch (err) {
+ spinner.stop(pc.red("Console build failed"));
+ p.log.warn(
+ `Could not build console UI: ${
+ err instanceof Error ? err.message : String(err)
+ }. Run ${pc.cyan("make build-console")} manually.`,
+ );
+ }
+}
diff --git a/tui/src/lib/sync-source.ts b/tui/src/lib/sync-source.ts
index 9309a19..778a281 100644
--- a/tui/src/lib/sync-source.ts
+++ b/tui/src/lib/sync-source.ts
@@ -11,6 +11,20 @@ const SYNC_PATHS = [
"src/lib/llm",
"src/lib/embeddings",
"src/lib/postgresql",
+ "src/services/api/app.py",
+ "src/services/api/console_static.py",
+ "src/services/api/middlewares/auth.py",
+ "src/services/api/middlewares/brains.py",
+ "src/services/api/controllers/meta.py",
+ "src/services/api/routes/meta.py",
+ "src/adapters/interfaces/data.py",
+ "src/adapters/data.py",
+ "src/services/api/controllers/vectors.py",
+ "src/services/api/routes/retrieve.py",
+ "src/adapters/interfaces/embeddings.py",
+ "src/adapters/embeddings.py",
+ "src/lib/milvus/client.py",
+ "console",
] as const;
async function pathExists(target: string): Promise<boolean> {
diff --git a/tui/src/lib/write-env.ts b/tui/src/lib/write-env.ts
index fdcf0db..67ce44c 100644
--- a/tui/src/lib/write-env.ts
+++ b/tui/src/lib/write-env.ts
@@ -60,6 +60,8 @@ export async function writeEnvFromChoices(choices: InitChoices): Promise<void> {
values[ENV_KEYS.celeryWorkerConcurrency] = 4;
values[ENV_KEYS.brainpatToken] = choices.auth.brainpatToken;
+ values["ENV"] = "development";
+ values["CONSOLE_ENABLED"] = "true";
values[ENV_KEYS.redisHost] = choices.connections.redis.host;
values[ENV_KEYS.redisPort] = choices.connections.redis.port;