From 3e1e04934abd9eab0e699b25b2212b896e99d51d Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Wed, 29 Apr 2026 21:28:47 +0100 Subject: [PATCH] Add Epiphany typed graph web viewer --- .gitignore | 1 + README.md | 26 + web/epiphany-graph-viewer/README.md | 65 + web/epiphany-graph-viewer/index.html | 12 + web/epiphany-graph-viewer/package-lock.json | 2296 +++++++++++++++++ web/epiphany-graph-viewer/package.json | 44 + web/epiphany-graph-viewer/src/App.tsx | 73 + web/epiphany-graph-viewer/src/index.ts | 15 + .../src/lib/EpiphanyGraphViewer.tsx | 1314 ++++++++++ web/epiphany-graph-viewer/src/lib/layout.ts | 287 +++ .../src/lib/mock-state.json | 295 +++ .../src/lib/mock-state.ts | 4 + web/epiphany-graph-viewer/src/lib/types.ts | 115 + .../src/lib/validation.ts | 135 + web/epiphany-graph-viewer/src/main.tsx | 9 + web/epiphany-graph-viewer/tsconfig.json | 17 + web/epiphany-graph-viewer/vite.config.ts | 20 + 17 files changed, 4728 insertions(+) create mode 100644 web/epiphany-graph-viewer/README.md create mode 100644 web/epiphany-graph-viewer/index.html create mode 100644 web/epiphany-graph-viewer/package-lock.json create mode 100644 web/epiphany-graph-viewer/package.json create mode 100644 web/epiphany-graph-viewer/src/App.tsx create mode 100644 web/epiphany-graph-viewer/src/index.ts create mode 100644 web/epiphany-graph-viewer/src/lib/EpiphanyGraphViewer.tsx create mode 100644 web/epiphany-graph-viewer/src/lib/layout.ts create mode 100644 web/epiphany-graph-viewer/src/lib/mock-state.json create mode 100644 web/epiphany-graph-viewer/src/lib/mock-state.ts create mode 100644 web/epiphany-graph-viewer/src/lib/types.ts create mode 100644 web/epiphany-graph-viewer/src/lib/validation.ts create mode 100644 web/epiphany-graph-viewer/src/main.tsx create mode 100644 web/epiphany-graph-viewer/tsconfig.json create mode 100644 web/epiphany-graph-viewer/vite.config.ts diff --git a/.gitignore b/.gitignore index 0c9a3a3..4eeb7df 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ nupkg/ .vs/ .vscode/ node_modules/ +dist/ diff --git a/README.md b/README.md index b7a0e36..0649c5b 100644 --- a/README.md +++ b/README.md @@ -172,6 +172,32 @@ That keeps structurally separated note graphs from vanishing just because they n There is also a small web-side `elkjs` probe under `web/elk-probe/`. It inspects which algorithms and options are actually present in the installed `elkjs` build and can relayout existing `source-tree.json` / `control-flow.json` outputs without crossing the C# boundary. +## Epiphany Graph Viewer + +There is now also a real web-side viewer package under `web/epiphany-graph-viewer/`. + +It consumes the typed Epiphany graph state shape directly: + +- `graphs.architecture` +- `graphs.dataflow` +- `graphs.links` + +and packages: + +- `elkjs` layout +- zoom and pan +- zoom-gated label and detail pop-in +- node, edge, and code-ref inspection +- typed cross-link browsing between architecture and dataflow + +Run it locally with: + +```powershell +cd E:\Projects\EpiphanyGraph\web\epiphany-graph-viewer +npm install +npm run dev +``` + ## Notes - unresolved and ambiguous links are written to `warnings.txt` diff --git a/web/epiphany-graph-viewer/README.md b/web/epiphany-graph-viewer/README.md new file mode 100644 index 0000000..e515fdb --- /dev/null +++ b/web/epiphany-graph-viewer/README.md @@ -0,0 +1,65 @@ +# Epiphany Graph Viewer + +Small React component package for browsing Epiphany's durable typed graph state with `elkjs`. + +This is the part where the graphs stop being dead export artifacts and start acting like UI: + +- `graphs.architecture` and `graphs.dataflow` render as first-class views +- `graphs.links` show cross-graph correspondences instead of vanishing into a sidecar file +- zoom reveals more node detail instead of trying to print the whole phone book at once +- selection opens purpose, mechanism, metaphor, status, and code references in a detail pane + +## Install + +```powershell +cd E:\Projects\EpiphanyGraph\web\epiphany-graph-viewer +npm install +``` + +## Run The Demo + +```powershell +npm run dev +``` + +The demo uses mocked JSON shaped like the current Epiphany typed state contract. + +## Build + +```powershell +npm run build +``` + +This writes: + +- `dist/index.js` +- `dist/index.cjs` +- `dist/index.d.ts` +- `dist/demo/` + +## Use In Another App + +```tsx +import { EpiphanyGraphViewer } from "@epiphanygraph/epiphany-graph-viewer"; +import type { EpiphanyGraphsState } from "@epiphanygraph/epiphany-graph-viewer"; + +const state: EpiphanyGraphsState = { + architecture: { nodes: [], edges: [] }, + dataflow: { nodes: [], edges: [] }, + links: [], +}; + +export function Screen() { + return ; +} +``` + +## Current Shape + +- the viewer lays out each graph with `elkjs` on the client +- `architecture` defaults to layered layout +- `dataflow` defaults to stress layout +- links are exposed in the detail pane and through node badges +- zoom gates title, purpose, and metadata visibility + +This is a prototype seam for EpiphanyAgent, not a final cathedral. The point is to package the behavior, the contract, and the rendering policy in one place so the upcoming GUI can steal it without ceremony. diff --git a/web/epiphany-graph-viewer/index.html b/web/epiphany-graph-viewer/index.html new file mode 100644 index 0000000..a19a1c1 --- /dev/null +++ b/web/epiphany-graph-viewer/index.html @@ -0,0 +1,12 @@ + + + + + + Epiphany Graph Viewer + + +
+ + + diff --git a/web/epiphany-graph-viewer/package-lock.json b/web/epiphany-graph-viewer/package-lock.json new file mode 100644 index 0000000..1608644 --- /dev/null +++ b/web/epiphany-graph-viewer/package-lock.json @@ -0,0 +1,2296 @@ +{ + "name": "@epiphanygraph/epiphany-graph-viewer", + "version": "0.1.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "@epiphanygraph/epiphany-graph-viewer", + "version": "0.1.0", + "dependencies": { + "elkjs": "^0.11.0" + }, + "devDependencies": { + "@types/react": "^19.2.2", + "@types/react-dom": "^19.2.2", + "@vitejs/plugin-react": "^5.1.1", + "react": "^19.2.0", + "react-dom": "^19.2.0", + "tsup": "^8.5.0", + "typescript": "^5.9.3", + "vite": "^7.2.4" + }, + "peerDependencies": { + "react": "^19.0.0", + "react-dom": "^19.0.0" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.0.tgz", + "integrity": "sha512-9NhCeYjq9+3uxgdtp20LSiJXJvN0FeCtNGpJxuMFZ1Kv3cWUNb6DOhJwUvcVCzKGR66cw4njwM6hrJLqgOwbcw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-validator-identifier": "^7.28.5", + "js-tokens": "^4.0.0", + "picocolors": "^1.1.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.0.tgz", + "integrity": "sha512-T1NCJqT/j9+cn8fvkt7jtwbLBfLC/1y1c7NtCeXFRgzGTsafi68MRv8yzkYSapBnFA6L3U2VSc02ciDzoAJhJg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.0.tgz", + "integrity": "sha512-CGOfOJqWjg2qW/Mb6zNsDm+u5vFQ8DxXfbM09z69p5Z6+mE1ikP2jUXw+j42Pf1XTYED2Rni5f95npYeuwMDQA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.0", + "@babel/generator": "^7.29.0", + "@babel/helper-compilation-targets": "^7.28.6", + "@babel/helper-module-transforms": "^7.28.6", + "@babel/helpers": "^7.28.6", + "@babel/parser": "^7.29.0", + "@babel/template": "^7.28.6", + "@babel/traverse": "^7.29.0", + "@babel/types": "^7.29.0", + "@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.1", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.1.tgz", + "integrity": "sha512-qsaF+9Qcm2Qv8SRIMMscAvG4O3lJ0F1GuMo5HR/Bp02LopNgnZBC/EkbevHFeGs4ls/oPz9v+Bsmzbkbe+0dUw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.29.0", + "@babel/types": "^7.29.0", + "@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.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.28.6.tgz", + "integrity": "sha512-JYtls3hqi15fcx5GaSNL7SCTJ2MNmjrkHXg4FSpOA/grxK8KwyZ5bubHsCq8FXCkua6xhuaaBit+3b7+VZRfcA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/compat-data": "^7.28.6", + "@babel/helper-validator-option": "^7.27.1", + "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.28.0", + "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz", + "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.28.6.tgz", + "integrity": "sha512-l5XkZK7r7wa9LucGw9LwZyyCUscb4x37JWTPz7swwFE/0FMQAGpiWUZn8u9DzkSBWEcK25jmvubfpw2dnAMdbw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/traverse": "^7.28.6", + "@babel/types": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.6.tgz", + "integrity": "sha512-67oXFAYr2cDLDVGLXTEABjdBJZ6drElUSI7WKp70NrpyISso3plG9SAGEF6y7zbha/wOzUByWWTJvEDVNIUGcA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.28.6", + "@babel/helper-validator-identifier": "^7.28.5", + "@babel/traverse": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.28.6.tgz", + "integrity": "sha512-S9gzZ/bz83GRysI7gAD4wPT/AI3uCnY+9xn+Mx/KPs2JwHJIz1W8PZkg2cqyt3RNOBM8ejcXhV6y8Og7ly/Dug==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", + "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz", + "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz", + "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.29.2", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.2.tgz", + "integrity": "sha512-HoGuUs4sCZNezVEKdVcwqmZN8GoHirLUcLaYVNBK2J0DadGtdcqgr3BCbvH8+XUo4NGjNl3VOtSjEKNzqfFgKw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/template": "^7.28.6", + "@babel/types": "^7.29.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.29.2", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.2.tgz", + "integrity": "sha512-4GgRzy/+fsBa72/RZVJmGKPmZu9Byn8o4MoLpmNe1m8ZfYnz5emHLQz3U4gLud6Zwl0RZIcgiLD7Uq7ySFuDLA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.29.0" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx-self": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.27.1.tgz", + "integrity": "sha512-6UzkCs+ejGdZ5mFFC/OCUrv028ab2fp1znZmCZjAOBKiBK2jXD1O+BPSfX8X2qjJ75fZBMSnQn3Rq2mrBJK2mw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx-source": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.27.1.tgz", + "integrity": "sha512-zbwoTsBruTeKB9hSq73ha66iFeJHuaFkUbwvqElnygoNbj/jHRsSeokowZFN3CZ64IvEqcmmkVe89OPXc7ldAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/template": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.28.6.tgz", + "integrity": "sha512-YA6Ma2KsCdGb+WC6UpBVFJGXL58MDA6oyONbjyF/+5sBgxY/dwkhLogbMT2GXXyU84/IhRw/2D1Os1B/giz+BQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.28.6", + "@babel/parser": "^7.28.6", + "@babel/types": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.0.tgz", + "integrity": "sha512-4HPiQr0X7+waHfyXPZpWPfWL/J7dcN1mx9gL6WdQVMbPnF3+ZhSMs8tCxN7oHddJE9fhNE7+lxdnlyemKfJRuA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.0", + "@babel/generator": "^7.29.0", + "@babel/helper-globals": "^7.28.0", + "@babel/parser": "^7.29.0", + "@babel/template": "^7.28.6", + "@babel/types": "^7.29.0", + "debug": "^4.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.0.tgz", + "integrity": "sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.27.1", + "@babel/helper-validator-identifier": "^7.28.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.7.tgz", + "integrity": "sha512-EKX3Qwmhz1eMdEJokhALr0YiD0lhQNwDqkPYyPhiSwKrh7/4KRjQc04sZ8db+5DVVnZ1LmbNDI1uAMPEUBnQPg==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.27.7.tgz", + "integrity": "sha512-jbPXvB4Yj2yBV7HUfE2KHe4GJX51QplCN1pGbYjvsyCZbQmies29EoJbkEc+vYuU5o45AfQn37vZlyXy4YJ8RQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.27.7.tgz", + "integrity": "sha512-62dPZHpIXzvChfvfLJow3q5dDtiNMkwiRzPylSCfriLvZeq0a1bWChrGx/BbUbPwOrsWKMn8idSllklzBy+dgQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.27.7.tgz", + "integrity": "sha512-x5VpMODneVDb70PYV2VQOmIUUiBtY3D3mPBG8NxVk5CogneYhkR7MmM3yR/uMdITLrC1ml/NV1rj4bMJuy9MCg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.27.7.tgz", + "integrity": "sha512-5lckdqeuBPlKUwvoCXIgI2D9/ABmPq3Rdp7IfL70393YgaASt7tbju3Ac+ePVi3KDH6N2RqePfHnXkaDtY9fkw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.27.7.tgz", + "integrity": "sha512-rYnXrKcXuT7Z+WL5K980jVFdvVKhCHhUwid+dDYQpH+qu+TefcomiMAJpIiC2EM3Rjtq0sO3StMV/+3w3MyyqQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.27.7.tgz", + "integrity": "sha512-B48PqeCsEgOtzME2GbNM2roU29AMTuOIN91dsMO30t+Ydis3z/3Ngoj5hhnsOSSwNzS+6JppqWsuhTp6E82l2w==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.27.7.tgz", + "integrity": "sha512-jOBDK5XEjA4m5IJK3bpAQF9/Lelu/Z9ZcdhTRLf4cajlB+8VEhFFRjWgfy3M1O4rO2GQ/b2dLwCUGpiF/eATNQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.27.7.tgz", + "integrity": "sha512-RkT/YXYBTSULo3+af8Ib0ykH8u2MBh57o7q/DAs3lTJlyVQkgQvlrPTnjIzzRPQyavxtPtfg0EopvDyIt0j1rA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.27.7.tgz", + "integrity": "sha512-RZPHBoxXuNnPQO9rvjh5jdkRmVizktkT7TCDkDmQ0W2SwHInKCAV95GRuvdSvA7w4VMwfCjUiPwDi0ZO6Nfe9A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.27.7.tgz", + "integrity": "sha512-GA48aKNkyQDbd3KtkplYWT102C5sn/EZTY4XROkxONgruHPU72l+gW+FfF8tf2cFjeHaRbWpOYa/uRBz/Xq1Pg==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.27.7.tgz", + "integrity": "sha512-a4POruNM2oWsD4WKvBSEKGIiWQF8fZOAsycHOt6JBpZ+JN2n2JH9WAv56SOyu9X5IqAjqSIPTaJkqN8F7XOQ5Q==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.27.7.tgz", + "integrity": "sha512-KabT5I6StirGfIz0FMgl1I+R1H73Gp0ofL9A3nG3i/cYFJzKHhouBV5VWK1CSgKvVaG4q1RNpCTR2LuTVB3fIw==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.27.7.tgz", + "integrity": "sha512-gRsL4x6wsGHGRqhtI+ifpN/vpOFTQtnbsupUF5R5YTAg+y/lKelYR1hXbnBdzDjGbMYjVJLJTd2OFmMewAgwlQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.27.7.tgz", + "integrity": "sha512-hL25LbxO1QOngGzu2U5xeXtxXcW+/GvMN3ejANqXkxZ/opySAZMrc+9LY/WyjAan41unrR3YrmtTsUpwT66InQ==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.27.7.tgz", + "integrity": "sha512-2k8go8Ycu1Kb46vEelhu1vqEP+UeRVj2zY1pSuPdgvbd5ykAw82Lrro28vXUrRmzEsUV0NzCf54yARIK8r0fdw==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.27.7.tgz", + "integrity": "sha512-hzznmADPt+OmsYzw1EE33ccA+HPdIqiCRq7cQeL1Jlq2gb1+OyWBkMCrYGBJ+sxVzve2ZJEVeePbLM2iEIZSxA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.27.7.tgz", + "integrity": "sha512-b6pqtrQdigZBwZxAn1UpazEisvwaIDvdbMbmrly7cDTMFnw/+3lVxxCTGOrkPVnsYIosJJXAsILG9XcQS+Yu6w==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.27.7.tgz", + "integrity": "sha512-OfatkLojr6U+WN5EDYuoQhtM+1xco+/6FSzJJnuWiUw5eVcicbyK3dq5EeV/QHT1uy6GoDhGbFpprUiHUYggrw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.27.7.tgz", + "integrity": "sha512-AFuojMQTxAz75Fo8idVcqoQWEHIXFRbOc1TrVcFSgCZtQfSdc1RXgB3tjOn/krRHENUB4j00bfGjyl2mJrU37A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.27.7.tgz", + "integrity": "sha512-+A1NJmfM8WNDv5CLVQYJ5PshuRm/4cI6WMZRg1by1GwPIQPCTs1GLEUHwiiQGT5zDdyLiRM/l1G0Pv54gvtKIg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openharmony-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.27.7.tgz", + "integrity": "sha512-+KrvYb/C8zA9CU/g0sR6w2RBw7IGc5J2BPnc3dYc5VJxHCSF1yNMxTV5LQ7GuKteQXZtspjFbiuW5/dOj7H4Yw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.27.7.tgz", + "integrity": "sha512-ikktIhFBzQNt/QDyOL580ti9+5mL/YZeUPKU2ivGtGjdTYoqz6jObj6nOMfhASpS4GU4Q/Clh1QtxWAvcYKamA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.27.7.tgz", + "integrity": "sha512-7yRhbHvPqSpRUV7Q20VuDwbjW5kIMwTHpptuUzV+AA46kiPze5Z7qgt6CLCK3pWFrHeNfDd1VKgyP4O+ng17CA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.27.7.tgz", + "integrity": "sha512-SmwKXe6VHIyZYbBLJrhOoCJRB/Z1tckzmgTLfFYOfpMAx63BJEaL9ExI8x7v0oAO3Zh6D/Oi1gVxEYr5oUCFhw==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.27.7.tgz", + "integrity": "sha512-56hiAJPhwQ1R4i+21FVF7V8kSD5zZTdHcVuRFMW0hn753vVfQN8xlx4uOPT4xoGH0Z/oVATuR82AiqSTDIpaHg==", + "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-rc.3", + "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-rc.3.tgz", + "integrity": "sha512-eybk3TjzzzV97Dlj5c+XrBFW57eTNhzod66y9HrBlzJ6NsCrWCp/2kaPS3K9wJmurBC0Tdw4yPjXKZqlznim3Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/@rollup/rollup-android-arm-eabi": { + "version": "4.60.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.60.2.tgz", + "integrity": "sha512-dnlp69efPPg6Uaw2dVqzWRfAWRnYVb1XJ8CyyhIbZeaq4CA5/mLeZ1IEt9QqQxmbdvagjLIm2ZL8BxXv5lH4Yw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.60.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.60.2.tgz", + "integrity": "sha512-OqZTwDRDchGRHHm/hwLOL7uVPB9aUvI0am/eQuWMNyFHf5PSEQmyEeYYheA0EPPKUO/l0uigCp+iaTjoLjVoHg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.60.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.60.2.tgz", + "integrity": "sha512-UwRE7CGpvSVEQS8gUMBe1uADWjNnVgP3Iusyda1nSRwNDCsRjnGc7w6El6WLQsXmZTbLZx9cecegumcitNfpmA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-darwin-x64": { + "version": "4.60.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.60.2.tgz", + "integrity": "sha512-gjEtURKLCC5VXm1I+2i1u9OhxFsKAQJKTVB8WvDAHF+oZlq0GTVFOlTlO1q3AlCTE/DF32c16ESvfgqR7343/g==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-freebsd-arm64": { + "version": "4.60.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.60.2.tgz", + "integrity": "sha512-Bcl6CYDeAgE70cqZaMojOi/eK63h5Me97ZqAQoh77VPjMysA/4ORQBRGo3rRy45x4MzVlU9uZxs8Uwy7ZaKnBw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-freebsd-x64": { + "version": "4.60.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.60.2.tgz", + "integrity": "sha512-LU+TPda3mAE2QB0/Hp5VyeKJivpC6+tlOXd1VMoXV/YFMvk/MNk5iXeBfB4MQGRWyOYVJ01625vjkr0Az98OJQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-linux-arm-gnueabihf": { + "version": "4.60.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.60.2.tgz", + "integrity": "sha512-2QxQrM+KQ7DAW4o22j+XZ6RKdxjLD7BOWTP0Bv0tmjdyhXSsr2Ul1oJDQqh9Zf5qOwTuTc7Ek83mOFaKnodPjg==", + "cpu": [ + "arm" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm-musleabihf": { + "version": "4.60.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.60.2.tgz", + "integrity": "sha512-TbziEu2DVsTEOPif2mKWkMeDMLoYjx95oESa9fkQQK7r/Orta0gnkcDpzwufEcAO2BLBsD7mZkXGFqEdMRRwfw==", + "cpu": [ + "arm" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-gnu": { + "version": "4.60.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.60.2.tgz", + "integrity": "sha512-bO/rVDiDUuM2YfuCUwZ1t1cP+/yqjqz+Xf2VtkdppefuOFS2OSeAfgafaHNkFn0t02hEyXngZkxtGqXcXwO8Rg==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-musl": { + "version": "4.60.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.60.2.tgz", + "integrity": "sha512-hr26p7e93Rl0Za+JwW7EAnwAvKkehh12BU1Llm9Ykiibg4uIr2rbpxG9WCf56GuvidlTG9KiiQT/TXT1yAWxTA==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-gnu": { + "version": "4.60.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.60.2.tgz", + "integrity": "sha512-pOjB/uSIyDt+ow3k/RcLvUAOGpysT2phDn7TTUB3n75SlIgZzM6NKAqlErPhoFU+npgY3/n+2HYIQVbF70P9/A==", + "cpu": [ + "loong64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-musl": { + "version": "4.60.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.60.2.tgz", + "integrity": "sha512-2/w+q8jszv9Ww1c+6uJT3OwqhdmGP2/4T17cu8WuwyUuuaCDDJ2ojdyYwZzCxx0GcsZBhzi3HmH+J5pZNXnd+Q==", + "cpu": [ + "loong64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-gnu": { + "version": "4.60.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.60.2.tgz", + "integrity": "sha512-11+aL5vKheYgczxtPVVRhdptAM2H7fcDR5Gw4/bTcteuZBlH4oP9f5s9zYO9aGZvoGeBpqXI/9TZZihZ609wKw==", + "cpu": [ + "ppc64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-musl": { + "version": "4.60.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.60.2.tgz", + "integrity": "sha512-i16fokAGK46IVZuV8LIIwMdtqhin9hfYkCh8pf8iC3QU3LpwL+1FSFGej+O7l3E/AoknL6Dclh2oTdnRMpTzFQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-gnu": { + "version": "4.60.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.60.2.tgz", + "integrity": "sha512-49FkKS6RGQoriDSK/6E2GkAsAuU5kETFCh7pG4yD/ylj9rKhTmO3elsnmBvRD4PgJPds5W2PkhC82aVwmUcJ7A==", + "cpu": [ + "riscv64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-musl": { + "version": "4.60.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.60.2.tgz", + "integrity": "sha512-mjYNkHPfGpUR00DuM1ZZIgs64Hpf4bWcz9Z41+4Q+pgDx73UwWdAYyf6EG/lRFldmdHHzgrYyge5akFUW0D3mQ==", + "cpu": [ + "riscv64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-s390x-gnu": { + "version": "4.60.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.60.2.tgz", + "integrity": "sha512-ALyvJz965BQk8E9Al/JDKKDLH2kfKFLTGMlgkAbbYtZuJt9LU8DW3ZoDMCtQpXAltZxwBHevXz5u+gf0yA0YoA==", + "cpu": [ + "s390x" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.60.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.60.2.tgz", + "integrity": "sha512-UQjrkIdWrKI626Du8lCQ6MJp/6V1LAo2bOK9OTu4mSn8GGXIkPXk/Vsp4bLHCd9Z9Iz2OTEaokUE90VweJgIYQ==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-musl": { + "version": "4.60.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.60.2.tgz", + "integrity": "sha512-bTsRGj6VlSdn/XD4CGyzMnzaBs9bsRxy79eTqTCBsA8TMIEky7qg48aPkvJvFe1HyzQ5oMZdg7AnVlWQSKLTnw==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-openbsd-x64": { + "version": "4.60.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.60.2.tgz", + "integrity": "sha512-6d4Z3534xitaA1FcMWP7mQPq5zGwBmGbhphh2DwaA1aNIXUu3KTOfwrWpbwI4/Gr0uANo7NTtaykFyO2hPuFLg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ] + }, + "node_modules/@rollup/rollup-openharmony-arm64": { + "version": "4.60.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.60.2.tgz", + "integrity": "sha512-NetAg5iO2uN7eB8zE5qrZ3CSil+7IJt4WDFLcC75Ymywq1VZVD6qJ6EvNLjZ3rEm6gB7XW5JdT60c6MN35Z85Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ] + }, + "node_modules/@rollup/rollup-win32-arm64-msvc": { + "version": "4.60.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.60.2.tgz", + "integrity": "sha512-NCYhOotpgWZ5kdxCZsv6Iudx0wX8980Q/oW4pNFNihpBKsDbEA1zpkfxJGC0yugsUuyDZ7gL37dbzwhR0VI7pQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-ia32-msvc": { + "version": "4.60.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.60.2.tgz", + "integrity": "sha512-RXsaOqXxfoUBQoOgvmmijVxJnW2IGB0eoMO7F8FAjaj0UTywUO/luSqimWBJn04WNgUkeNhh7fs7pESXajWmkg==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-gnu": { + "version": "4.60.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.60.2.tgz", + "integrity": "sha512-qdAzEULD+/hzObedtmV6iBpdL5TIbKVztGiK7O3/KYSf+HIzU257+MX1EXJcyIiDbMAqmbwaufcYPvyRryeZtA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.60.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.60.2.tgz", + "integrity": "sha512-Nd/SgG27WoA9e+/TdK74KnHz852TLa94ovOYySo/yMPuTmpckK/jIF2jSwS3g7ELSKXK13/cVdmg1Z/DaCWKxA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "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/react": { + "version": "19.2.14", + "resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.14.tgz", + "integrity": "sha512-ilcTH/UniCkMdtexkoCN0bI7pMcJDvmQFPvuPvmEaYA/NSfFTAgdUSLAoVjaRJm7+6PvcM+q1zYOwS4wTYMF9w==", + "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": "5.2.0", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-5.2.0.tgz", + "integrity": "sha512-YmKkfhOAi3wsB1PhJq5Scj3GXMn3WvtQ/JC0xoopuHoXSdmtdStOpFrYaT1kie2YgFBcIe64ROzMYRjCrYOdYw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.29.0", + "@babel/plugin-transform-react-jsx-self": "^7.27.1", + "@babel/plugin-transform-react-jsx-source": "^7.27.1", + "@rolldown/pluginutils": "1.0.0-rc.3", + "@types/babel__core": "^7.20.5", + "react-refresh": "^0.18.0" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "peerDependencies": { + "vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/acorn": { + "version": "8.16.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.16.0.tgz", + "integrity": "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==", + "dev": true, + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/any-promise": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz", + "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==", + "dev": true, + "license": "MIT" + }, + "node_modules/baseline-browser-mapping": { + "version": "2.10.24", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.24.tgz", + "integrity": "sha512-I2NkZOOrj2XuguvWCK6OVh9GavsNjZjK908Rq3mIBK25+GD8vPX5w2WdxVqnQ7xx3SrZJiCiZFu+/Oz50oSYSA==", + "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/bundle-require": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/bundle-require/-/bundle-require-5.1.0.tgz", + "integrity": "sha512-3WrrOuZiyaaZPWiEt4G3+IffISVC9HYlWueJEBWED4ZH4aIAC2PnkdnuRrR94M+w6yGWn4AglWtJtBI8YqvgoA==", + "dev": true, + "license": "MIT", + "dependencies": { + "load-tsconfig": "^0.2.3" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "peerDependencies": { + "esbuild": ">=0.18" + } + }, + "node_modules/cac": { + "version": "6.7.14", + "resolved": "https://registry.npmjs.org/cac/-/cac-6.7.14.tgz", + "integrity": "sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001791", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001791.tgz", + "integrity": "sha512-yk0l/YSrOnFZk3UROpDLQD9+kC1l4meK/wed583AXrzoarMGJcbRi2Q4RaUYbKxYAsZ8sWmaSa/DsLmdBeI1vQ==", + "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/chokidar": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz", + "integrity": "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==", + "dev": true, + "license": "MIT", + "dependencies": { + "readdirp": "^4.0.1" + }, + "engines": { + "node": ">= 14.16.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/commander": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", + "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/confbox": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.1.8.tgz", + "integrity": "sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==", + "dev": true, + "license": "MIT" + }, + "node_modules/consola": { + "version": "3.4.2", + "resolved": "https://registry.npmjs.org/consola/-/consola-3.4.2.tgz", + "integrity": "sha512-5IKcdX0nnYavi6G7TtOhwkYzyjfJlatbjMjuLSfE2kYT5pMDOilZ4OvMhi637CcDICTmz3wARPoyhqyX1Y+XvA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^14.18.0 || >=16.10.0" + } + }, + "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/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/electron-to-chromium": { + "version": "1.5.344", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.344.tgz", + "integrity": "sha512-4MxfbmNDm+KPh066EZy+eUnkcDPcZ35wNmOWzFuh/ijvHsve6kbLTLURy88uCNK5FbpN+yk2nQY6BYh1GEt+wg==", + "dev": true, + "license": "ISC" + }, + "node_modules/elkjs": { + "version": "0.11.1", + "resolved": "https://registry.npmjs.org/elkjs/-/elkjs-0.11.1.tgz", + "integrity": "sha512-zxxR9k+rx5ktMwT/FwyLdPCrq7xN6e4VGGHH8hA01vVYKjTFik7nHOxBnAYtrgYUB1RpAiLvA1/U2YraWxyKKg==", + "license": "EPL-2.0" + }, + "node_modules/esbuild": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.7.tgz", + "integrity": "sha512-IxpibTjyVnmrIQo5aqNpCgoACA/dTKLTlhMHihVHhdkxKyPO1uBBthumT0rdHmcsk9uMonIWS0m4FljWzILh3w==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.27.7", + "@esbuild/android-arm": "0.27.7", + "@esbuild/android-arm64": "0.27.7", + "@esbuild/android-x64": "0.27.7", + "@esbuild/darwin-arm64": "0.27.7", + "@esbuild/darwin-x64": "0.27.7", + "@esbuild/freebsd-arm64": "0.27.7", + "@esbuild/freebsd-x64": "0.27.7", + "@esbuild/linux-arm": "0.27.7", + "@esbuild/linux-arm64": "0.27.7", + "@esbuild/linux-ia32": "0.27.7", + "@esbuild/linux-loong64": "0.27.7", + "@esbuild/linux-mips64el": "0.27.7", + "@esbuild/linux-ppc64": "0.27.7", + "@esbuild/linux-riscv64": "0.27.7", + "@esbuild/linux-s390x": "0.27.7", + "@esbuild/linux-x64": "0.27.7", + "@esbuild/netbsd-arm64": "0.27.7", + "@esbuild/netbsd-x64": "0.27.7", + "@esbuild/openbsd-arm64": "0.27.7", + "@esbuild/openbsd-x64": "0.27.7", + "@esbuild/openharmony-arm64": "0.27.7", + "@esbuild/sunos-x64": "0.27.7", + "@esbuild/win32-arm64": "0.27.7", + "@esbuild/win32-ia32": "0.27.7", + "@esbuild/win32-x64": "0.27.7" + } + }, + "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/fix-dts-default-cjs-exports": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/fix-dts-default-cjs-exports/-/fix-dts-default-cjs-exports-1.0.1.tgz", + "integrity": "sha512-pVIECanWFC61Hzl2+oOCtoJ3F17kglZC/6N94eRWycFgBH35hHx0Li604ZIzhseh97mf2p0cv7vVrOZGoqhlEg==", + "dev": true, + "license": "MIT", + "dependencies": { + "magic-string": "^0.30.17", + "mlly": "^1.7.4", + "rollup": "^4.34.8" + } + }, + "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/joycon": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/joycon/-/joycon-3.1.1.tgz", + "integrity": "sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "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/lilconfig": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.3.tgz", + "integrity": "sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/antonk52" + } + }, + "node_modules/lines-and-columns": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", + "dev": true, + "license": "MIT" + }, + "node_modules/load-tsconfig": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/load-tsconfig/-/load-tsconfig-0.2.5.tgz", + "integrity": "sha512-IXO6OCs9yg8tMKzfPZ1YmheJbZCiEsnBdcB03l0OcfK9prKnJb96siuHCr5Fl37/yo9DnKU+TLpxzTUspw9shg==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + } + }, + "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/mlly": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/mlly/-/mlly-1.8.2.tgz", + "integrity": "sha512-d+ObxMQFmbt10sretNDytwt85VrbkhhUA/JBGm1MPaWJ65Cl4wOgLaB1NYvJSZ0Ef03MMEU/0xpPMXUIQ29UfA==", + "dev": true, + "license": "MIT", + "dependencies": { + "acorn": "^8.16.0", + "pathe": "^2.0.3", + "pkg-types": "^1.3.1", + "ufo": "^1.6.3" + } + }, + "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/mz": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz", + "integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "any-promise": "^1.0.0", + "object-assign": "^4.0.1", + "thenify-all": "^1.0.0" + } + }, + "node_modules/nanoid": { + "version": "3.3.11", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz", + "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==", + "dev": true, + "funding": [ + { + "type": "github", + "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.38", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.38.tgz", + "integrity": "sha512-3qT/88Y3FbH/Kx4szpQQ4HzUbVrHPKTLVpVocKiLfoYvw9XSGOX2FmD2d6DrXbVYyAQTF2HeF6My8jmzx7/CRw==", + "dev": true, + "license": "MIT" + }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/pathe": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", + "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", + "dev": true, + "license": "MIT" + }, + "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/pirates": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.7.tgz", + "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/pkg-types": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-1.3.1.tgz", + "integrity": "sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "confbox": "^0.1.8", + "mlly": "^1.7.4", + "pathe": "^2.0.1" + } + }, + "node_modules/postcss": { + "version": "8.5.12", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.12.tgz", + "integrity": "sha512-W62t/Se6rA0Az3DfCL0AqJwXuKwBeYg6nOaIgzP+xZ7N5BFCI7DYi1qs6ygUYT6rvfi6t9k65UMLJC+PHZpDAA==", + "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.11", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/postcss-load-config": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-6.0.1.tgz", + "integrity": "sha512-oPtTM4oerL+UXmx+93ytZVN82RrlY/wPUV8IeDxFrzIjXOLF1pN+EmKPLbubvKHT2HC20xXsCAH2Z+CKV6Oz/g==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "lilconfig": "^3.1.1" + }, + "engines": { + "node": ">= 18" + }, + "peerDependencies": { + "jiti": ">=1.21.0", + "postcss": ">=8.0.9", + "tsx": "^4.8.1", + "yaml": "^2.4.2" + }, + "peerDependenciesMeta": { + "jiti": { + "optional": true + }, + "postcss": { + "optional": true + }, + "tsx": { + "optional": true + }, + "yaml": { + "optional": true + } + } + }, + "node_modules/react": { + "version": "19.2.5", + "resolved": "https://registry.npmjs.org/react/-/react-19.2.5.tgz", + "integrity": "sha512-llUJLzz1zTUBrskt2pwZgLq59AemifIftw4aB7JxOqf1HY2FDaGDxgwpAPVzHU1kdWabH7FauP4i1oEeer2WCA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-dom": { + "version": "19.2.5", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.5.tgz", + "integrity": "sha512-J5bAZz+DXMMwW/wV3xzKke59Af6CHY7G4uYLN1OvBcKEsWOs4pQExj86BBKamxl/Ik5bx9whOrvBlSDfWzgSag==", + "dev": true, + "license": "MIT", + "dependencies": { + "scheduler": "^0.27.0" + }, + "peerDependencies": { + "react": "^19.2.5" + } + }, + "node_modules/react-refresh": { + "version": "0.18.0", + "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.18.0.tgz", + "integrity": "sha512-QgT5//D3jfjJb6Gsjxv0Slpj23ip+HtOpnNgnb2S5zU3CB26G/IDPGoy4RJB42wzFE46DRsstbW6tKHoKbhAxw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/readdirp": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.1.2.tgz", + "integrity": "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 14.18.0" + }, + "funding": { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/rollup": { + "version": "4.60.2", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.60.2.tgz", + "integrity": "sha512-J9qZyW++QK/09NyN/zeO0dG/1GdGfyp9lV8ajHnRVLfo/uFsbji5mHnDgn/qYdUHyCkM2N+8VyspgZclfAh0eQ==", + "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.2", + "@rollup/rollup-android-arm64": "4.60.2", + "@rollup/rollup-darwin-arm64": "4.60.2", + "@rollup/rollup-darwin-x64": "4.60.2", + "@rollup/rollup-freebsd-arm64": "4.60.2", + "@rollup/rollup-freebsd-x64": "4.60.2", + "@rollup/rollup-linux-arm-gnueabihf": "4.60.2", + "@rollup/rollup-linux-arm-musleabihf": "4.60.2", + "@rollup/rollup-linux-arm64-gnu": "4.60.2", + "@rollup/rollup-linux-arm64-musl": "4.60.2", + "@rollup/rollup-linux-loong64-gnu": "4.60.2", + "@rollup/rollup-linux-loong64-musl": "4.60.2", + "@rollup/rollup-linux-ppc64-gnu": "4.60.2", + "@rollup/rollup-linux-ppc64-musl": "4.60.2", + "@rollup/rollup-linux-riscv64-gnu": "4.60.2", + "@rollup/rollup-linux-riscv64-musl": "4.60.2", + "@rollup/rollup-linux-s390x-gnu": "4.60.2", + "@rollup/rollup-linux-x64-gnu": "4.60.2", + "@rollup/rollup-linux-x64-musl": "4.60.2", + "@rollup/rollup-openbsd-x64": "4.60.2", + "@rollup/rollup-openharmony-arm64": "4.60.2", + "@rollup/rollup-win32-arm64-msvc": "4.60.2", + "@rollup/rollup-win32-ia32-msvc": "4.60.2", + "@rollup/rollup-win32-x64-gnu": "4.60.2", + "@rollup/rollup-win32-x64-msvc": "4.60.2", + "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==", + "dev": true, + "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/source-map": { + "version": "0.7.6", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.6.tgz", + "integrity": "sha512-i5uvt8C3ikiWeNZSVZNWcfZPItFQOsYTUAOkcUPGd8DqDy1uOUikjt5dG+uRlwyvR108Fb9DOd4GvXfT0N2/uQ==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">= 12" + } + }, + "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/sucrase": { + "version": "3.35.1", + "resolved": "https://registry.npmjs.org/sucrase/-/sucrase-3.35.1.tgz", + "integrity": "sha512-DhuTmvZWux4H1UOnWMB3sk0sbaCVOoQZjv8u1rDoTV0HTdGem9hkAZtl4JZy8P2z4Bg0nT+YMeOFyVr4zcG5Tw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.2", + "commander": "^4.0.0", + "lines-and-columns": "^1.1.6", + "mz": "^2.7.0", + "pirates": "^4.0.1", + "tinyglobby": "^0.2.11", + "ts-interface-checker": "^0.1.9" + }, + "bin": { + "sucrase": "bin/sucrase", + "sucrase-node": "bin/sucrase-node" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/thenify": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz", + "integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==", + "dev": true, + "license": "MIT", + "dependencies": { + "any-promise": "^1.0.0" + } + }, + "node_modules/thenify-all": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/thenify-all/-/thenify-all-1.6.0.tgz", + "integrity": "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==", + "dev": true, + "license": "MIT", + "dependencies": { + "thenify": ">= 3.1.0 < 4" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/tinyexec": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-0.3.2.tgz", + "integrity": "sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==", + "dev": true, + "license": "MIT" + }, + "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/tree-kill": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/tree-kill/-/tree-kill-1.2.2.tgz", + "integrity": "sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==", + "dev": true, + "license": "MIT", + "bin": { + "tree-kill": "cli.js" + } + }, + "node_modules/ts-interface-checker": { + "version": "0.1.13", + "resolved": "https://registry.npmjs.org/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz", + "integrity": "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==", + "dev": true, + "license": "Apache-2.0" + }, + "node_modules/tsup": { + "version": "8.5.1", + "resolved": "https://registry.npmjs.org/tsup/-/tsup-8.5.1.tgz", + "integrity": "sha512-xtgkqwdhpKWr3tKPmCkvYmS9xnQK3m3XgxZHwSUjvfTjp7YfXe5tT3GgWi0F2N+ZSMsOeWeZFh7ZZFg5iPhing==", + "dev": true, + "license": "MIT", + "dependencies": { + "bundle-require": "^5.1.0", + "cac": "^6.7.14", + "chokidar": "^4.0.3", + "consola": "^3.4.0", + "debug": "^4.4.0", + "esbuild": "^0.27.0", + "fix-dts-default-cjs-exports": "^1.0.0", + "joycon": "^3.1.1", + "picocolors": "^1.1.1", + "postcss-load-config": "^6.0.1", + "resolve-from": "^5.0.0", + "rollup": "^4.34.8", + "source-map": "^0.7.6", + "sucrase": "^3.35.0", + "tinyexec": "^0.3.2", + "tinyglobby": "^0.2.11", + "tree-kill": "^1.2.2" + }, + "bin": { + "tsup": "dist/cli-default.js", + "tsup-node": "dist/cli-node.js" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@microsoft/api-extractor": "^7.36.0", + "@swc/core": "^1", + "postcss": "^8.4.12", + "typescript": ">=4.5.0" + }, + "peerDependenciesMeta": { + "@microsoft/api-extractor": { + "optional": true + }, + "@swc/core": { + "optional": true + }, + "postcss": { + "optional": true + }, + "typescript": { + "optional": true + } + } + }, + "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/ufo": { + "version": "1.6.4", + "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.6.4.tgz", + "integrity": "sha512-JFNbkD1Svwe0KvGi8GOeLcP4kAWQ609twvCdcHxq1oSL8svv39ZuSvajcD8B+5D0eL4+s1Is2D/O6KN3qcTeRA==", + "dev": true, + "license": "MIT" + }, + "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/vite": { + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/vite/-/vite-7.3.2.tgz", + "integrity": "sha512-Bby3NOsna2jsjfLVOHKes8sGwgl4TT0E6vvpYgnAYDIF/tie7MRaFthmKuHx1NSXjiTueXH3do80FMQgvEktRg==", + "dev": true, + "license": "MIT", + "dependencies": { + "esbuild": "^0.27.0", + "fdir": "^6.5.0", + "picomatch": "^4.0.3", + "postcss": "^8.5.6", + "rollup": "^4.43.0", + "tinyglobby": "^0.2.15" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^20.19.0 || >=22.12.0", + "jiti": ">=1.21.0", + "less": "^4.0.0", + "lightningcss": "^1.21.0", + "sass": "^1.70.0", + "sass-embedded": "^1.70.0", + "stylus": ">=0.54.8", + "sugarss": "^5.0.0", + "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/web/epiphany-graph-viewer/package.json b/web/epiphany-graph-viewer/package.json new file mode 100644 index 0000000..fcba68b --- /dev/null +++ b/web/epiphany-graph-viewer/package.json @@ -0,0 +1,44 @@ +{ + "name": "@epiphanygraph/epiphany-graph-viewer", + "version": "0.1.0", + "type": "module", + "description": "React ELK graph viewer for Epiphany typed graph state.", + "main": "./dist/index.cjs", + "module": "./dist/index.js", + "types": "./dist/index.d.ts", + "exports": { + ".": { + "types": "./dist/index.d.ts", + "import": "./dist/index.js", + "require": "./dist/index.cjs" + } + }, + "files": [ + "dist" + ], + "scripts": { + "dev": "vite", + "build": "npm run build:lib && npm run build:demo", + "build:lib": "tsup src/index.ts --format esm,cjs --dts --external react --external react-dom --clean", + "build:demo": "vite build --outDir dist/demo", + "typecheck": "tsc --noEmit", + "preview": "vite preview" + }, + "peerDependencies": { + "react": "^19.0.0", + "react-dom": "^19.0.0" + }, + "dependencies": { + "elkjs": "^0.11.0" + }, + "devDependencies": { + "@types/react": "^19.2.2", + "@types/react-dom": "^19.2.2", + "@vitejs/plugin-react": "^5.1.1", + "react": "^19.2.0", + "react-dom": "^19.2.0", + "tsup": "^8.5.0", + "typescript": "^5.9.3", + "vite": "^7.2.4" + } +} diff --git a/web/epiphany-graph-viewer/src/App.tsx b/web/epiphany-graph-viewer/src/App.tsx new file mode 100644 index 0000000..33f59b0 --- /dev/null +++ b/web/epiphany-graph-viewer/src/App.tsx @@ -0,0 +1,73 @@ +import { EpiphanyGraphViewer } from "./lib/EpiphanyGraphViewer"; +import { mockEpiphanyGraphState } from "./lib/mock-state"; + +export function App() { + return ( +
+
+
+ EpiphanyAgent Graph Mock +
+
+

+ Typed graphs, now with less ceremonial SVG corpse handling. +

+

+ This demo uses mocked Epiphany state shaped like the current protocol: + architecture graph, dataflow graph, and typed cross-links between them. + Zoom in and the details stop hiding under the floorboards. +

+
+
+
+ +
+
+ ); +} diff --git a/web/epiphany-graph-viewer/src/index.ts b/web/epiphany-graph-viewer/src/index.ts new file mode 100644 index 0000000..a0dbd9f --- /dev/null +++ b/web/epiphany-graph-viewer/src/index.ts @@ -0,0 +1,15 @@ +export { EpiphanyGraphViewer } from "./lib/EpiphanyGraphViewer"; +export { mockEpiphanyGraphState } from "./lib/mock-state"; +export { validateEpiphanyGraphsState } from "./lib/validation"; +export type { + EpiphanyCodeRef, + EpiphanyGraph, + EpiphanyGraphEdge, + EpiphanyGraphLink, + EpiphanyGraphNode, + EpiphanyGraphsState, + EpiphanyGraphViewerProps, + EpiphanyValidationIssue, + GraphKey, + ViewerSelection, +} from "./lib/types"; diff --git a/web/epiphany-graph-viewer/src/lib/EpiphanyGraphViewer.tsx b/web/epiphany-graph-viewer/src/lib/EpiphanyGraphViewer.tsx new file mode 100644 index 0000000..4940046 --- /dev/null +++ b/web/epiphany-graph-viewer/src/lib/EpiphanyGraphViewer.tsx @@ -0,0 +1,1314 @@ +import { + startTransition, + useEffect, + useLayoutEffect, + useRef, + useState, + type ReactNode, + type PointerEvent as ReactPointerEvent, + type WheelEvent as ReactWheelEvent, +} from "react"; +import { layoutEpiphanyGraphs } from "./layout"; +import type { + EpiphanyCodeRef, + EpiphanyGraphLink, + EpiphanyGraphViewerProps, + EpiphanyValidationIssue, + GraphKey, + GraphLayout, + PositionedEdge, + PositionedNode, + PositionedPoint, + ViewerSelection, +} from "./types"; +import { validateEpiphanyGraphsState } from "./validation"; + +type ViewTransform = { + x: number; + y: number; + scale: number; + userMoved: boolean; +}; + +const PANEL_SURFACE = "rgba(7, 16, 30, 0.76)"; +const PANEL_BORDER = "1px solid rgba(148, 163, 184, 0.18)"; + +export function EpiphanyGraphViewer({ + state, + initialGraph = "architecture", + style, + className, + title = "Epiphany Graph Viewer", + onCodeRefSelect, +}: EpiphanyGraphViewerProps) { + const [activeGraphKey, setActiveGraphKey] = useState(initialGraph); + const [selection, setSelection] = useState(null); + const [layouts, setLayouts] = useState | null>(null); + const [issues, setIssues] = useState([]); + const [status, setStatus] = useState<"loading" | "ready" | "error">("loading"); + const [errorMessage, setErrorMessage] = useState(null); + const [viewportSize, setViewportSize] = useState({ width: 0, height: 0 }); + const [transforms, setTransforms] = useState>({ + architecture: { x: 0, y: 0, scale: 1, userMoved: false }, + dataflow: { x: 0, y: 0, scale: 1, userMoved: false }, + }); + + const viewportRef = useRef(null); + const dragRef = useRef<{ + active: boolean; + originX: number; + originY: number; + startX: number; + startY: number; + } | null>(null); + + useEffect(() => { + let cancelled = false; + setStatus("loading"); + setErrorMessage(null); + setIssues(validateEpiphanyGraphsState(state)); + + layoutEpiphanyGraphs(state) + .then((nextLayouts) => { + if (cancelled) { + return; + } + setLayouts(nextLayouts); + setStatus("ready"); + }) + .catch((error) => { + if (cancelled) { + return; + } + setStatus("error"); + setErrorMessage(error instanceof Error ? error.message : String(error)); + }); + + return () => { + cancelled = true; + }; + }, [state]); + + useLayoutEffect(() => { + const element = viewportRef.current; + if (!element) { + return; + } + const observer = new ResizeObserver(([entry]) => { + const box = entry.contentRect; + setViewportSize({ + width: box.width, + height: box.height, + }); + }); + observer.observe(element); + return () => observer.disconnect(); + }, []); + + useEffect(() => { + if (!layouts || viewportSize.width <= 0 || viewportSize.height <= 0) { + return; + } + setTransforms((current) => ({ + architecture: current.architecture.userMoved + ? current.architecture + : fitGraphToViewport(layouts.architecture, viewportSize.width, viewportSize.height), + dataflow: current.dataflow.userMoved + ? current.dataflow + : fitGraphToViewport(layouts.dataflow, viewportSize.width, viewportSize.height), + })); + }, [layouts, viewportSize.height, viewportSize.width]); + + const activeLayout = layouts?.[activeGraphKey] ?? null; + const activeTransform = transforms[activeGraphKey]; + const selectedNode = + selection?.kind === "node" && selection.graphKey === activeGraphKey && activeLayout + ? activeLayout.nodes.find((node) => node.id === selection.nodeId) ?? null + : null; + const selectedEdge = + selection?.kind === "edge" && selection.graphKey === activeGraphKey && activeLayout + ? activeLayout.edges.find((edge) => edge.resolvedId === selection.edgeId) ?? null + : null; + + const neighboringIds = new Set(); + if (selectedNode && activeLayout) { + for (const edge of activeLayout.edges) { + if (edge.source_id === selectedNode.id) { + neighboringIds.add(edge.target_id); + } + if (edge.target_id === selectedNode.id) { + neighboringIds.add(edge.source_id); + } + } + } + + const linkedNodes = selectedNode + ? findLinkedNodes(selectedNode.id, activeGraphKey, state) + : []; + + return ( +
+
+
+
+
+ {title} + {status} +
+
+ + startTransition(() => { + setActiveGraphKey("architecture"); + if (selection?.graphKey && selection.graphKey !== "architecture") { + setSelection(null); + } + }) + } + /> + + startTransition(() => { + setActiveGraphKey("dataflow"); + if (selection?.graphKey && selection.graphKey !== "dataflow") { + setSelection(null); + } + }) + } + /> + + +
+
+
+ nudgeZoom(activeGraphKey, 1.18, setTransforms)}>+ + nudgeZoom(activeGraphKey, 1 / 1.18, setTransforms)}>- + { + if (!activeLayout || viewportSize.width <= 0 || viewportSize.height <= 0) { + return; + } + setTransforms((current) => ({ + ...current, + [activeGraphKey]: fitGraphToViewport( + activeLayout, + viewportSize.width, + viewportSize.height, + ), + })); + }} + > + Reset + +
+
+ +
+
+
+ {activeGraphKey === "architecture" ? "Architecture graph" : "Dataflow graph"} +
+
Wheel to zoom. Drag the void to pan. Click something interesting and the side panel stops being decorative.
+
+ + {status === "loading" && Laying out the graph. ELK is thinking noble thoughts.} + {status === "error" && {errorMessage ?? "Layout failed."}} + {status === "ready" && activeLayout && ( + + handleWheel(event, activeGraphKey, transforms, setTransforms) + } + onPointerDown={(event) => + handlePointerDown(event, activeTransform, dragRef) + } + onPointerMove={(event) => + handlePointerMove(event, activeGraphKey, dragRef, setTransforms) + } + onPointerUp={() => handlePointerUp(dragRef)} + onPointerLeave={() => handlePointerUp(dragRef)} + onClick={(event) => { + if (event.target === event.currentTarget) { + setSelection(null); + } + }} + style={{ width: "100%", height: "100%", display: "block", cursor: dragRef.current?.active ? "grabbing" : "grab" }} + > + + + + + + + + + + + {renderBackdropGrid(activeLayout, activeGraphKey)} + {activeLayout.edges.map((edge) => { + const isSelected = selectedEdge?.resolvedId === edge.resolvedId; + const isConnected = + selectedNode && + (edge.source_id === selectedNode.id || edge.target_id === selectedNode.id); + return ( + + { + event.stopPropagation(); + setSelection({ + kind: "edge", + graphKey: activeGraphKey, + edgeId: edge.resolvedId, + }); + }} + /> + + {activeTransform.scale > 1.25 && edge.label?.trim() && ( + + + + {edge.label} + + + )} + + ); + })} + + {activeLayout.nodes.map((node) => { + const isSelected = selectedNode?.id === node.id; + const isNeighbor = neighboringIds.has(node.id); + const emphasis = nodeOpacity(node, selectedNode, isNeighbor); + return ( + { + event.stopPropagation(); + setSelection({ + kind: "node", + graphKey: activeGraphKey, + nodeId: node.id, + }); + }} + style={{ cursor: "pointer" }} + > + + + + + {node.badgeText} + + + {node.status?.trim() && activeTransform.scale > 0.66 && ( + + + + {node.status.toUpperCase()} + + + )} + + {node.linkCount > 0 && ( + + + + {node.linkCount} + + + )} + + + + {clip(node.title, 30)} + + + + + + {clip(node.purpose, 78)} + + + + + {node.mechanism?.trim() && ( + + {clip(node.mechanism, 84)} + + )} + {node.metaphor?.trim() && ( + + {clip(node.metaphor, 78)} + + )} + + + ); + })} + + + )} +
+
+ + +
+ ); +} + +function GraphTab({ + active, + label, + count, + onClick, +}: { + active: boolean; + label: string; + count: number; + onClick: () => void; +}) { + return ( + + ); +} + +function Pill({ label, value, accent }: { label: string; value: string; accent: string }) { + return ( +
+ {label} + {value} +
+ ); +} + +function ActionButton({ + children, + onClick, +}: { + children: string; + onClick: () => void; +}) { + return ( + + ); +} + +function StageMessage({ + children, + tone, +}: { + children: string; + tone: string; +}) { + return ( +
+ {children} +
+ ); +} + +function NodeDetails({ + node, + graphKey, + linkedNodes, + links, + onJump, + onCodeRefSelect, +}: { + node: PositionedNode; + graphKey: GraphKey; + linkedNodes: Array<{ + graphKey: GraphKey; + nodeId: string; + title: string; + relationship: string | null; + }>; + links: EpiphanyGraphLink[]; + onJump: (graphKey: GraphKey, nodeId: string) => void; + onCodeRefSelect: (codeRef: EpiphanyCodeRef) => void; +}) { + const crossLinkCount = graphKey === "architecture" + ? links.filter((link) => link.architecture_node_id === node.id).length + : links.filter((link) => link.dataflow_node_id === node.id).length; + + return ( + <> +
+
+ Selected node +
+
+

{node.title}

+
+ + {node.status?.trim() && } + + +
+
+
+ + {node.purpose} + {node.mechanism?.trim() && {node.mechanism}} + {node.metaphor?.trim() && {node.metaphor}} + +
+
+ Cross-links +
+ {linkedNodes.length === 0 ? ( +
+ No typed cross-links for this node yet. +
+ ) : ( + linkedNodes.map((linked) => ( + + )) + )} +
+ + + + ); +} + +function EdgeDetails({ + edge, + onCodeRefSelect, +}: { + edge: PositionedEdge; + onCodeRefSelect: (codeRef: EpiphanyCodeRef) => void; +}) { + return ( + <> +
+
+ Selected edge +
+

+ {edge.label?.trim() || edge.kind} +

+
+ + {edge.id?.trim() && } +
+
+ + {edge.source_id} → {edge.target_id} + + {edge.mechanism?.trim() && {edge.mechanism}} + + + ); +} + +function EmptyDetails({ activeGraphKey }: { activeGraphKey: GraphKey }) { + return ( + <> +
+
+ Details +
+

+ Click a node, or keep staring until the graph volunteers. +

+
+ + {activeGraphKey === "architecture" + ? "Architecture nodes describe durable system parts: stores, renderers, promoters, bridges, and shells." + : "Dataflow nodes describe the movement of evidence and structure through the pipeline: observations, proposals, validation, fragments, turns."} + + + Titles appear first. Then purpose. Then mechanism and metaphor. The graph gets to be a map before it has to be a filing cabinet. + + + Nodes with the pink badge have typed correspondences in the other graph. Selecting them exposes the jump points instead of making you infer the relation from aura alone. + + + ); +} + +function DetailBlock({ title, children }: { title: string; children: ReactNode }) { + return ( +
+
+ {title} +
+
+ {children} +
+
+ ); +} + +function StatusChip({ label, tone }: { label: string; tone: string }) { + return ( + + {label} + + ); +} + +function CodeRefsList({ + codeRefs, + onCodeRefSelect, +}: { + codeRefs: EpiphanyCodeRef[]; + onCodeRefSelect: (codeRef: EpiphanyCodeRef) => void; +}) { + return ( +
+
+ Code refs +
+ {codeRefs.length === 0 ? ( +
+ No code refs on this element yet. +
+ ) : ( + codeRefs.map((codeRef, index) => ( + + )) + )} +
+ ); +} + +function renderBackdropGrid(layout: GraphLayout, graphKey: GraphKey) { + const stroke = graphKey === "architecture" ? "rgba(103, 232, 249, 0.08)" : "rgba(251, 113, 133, 0.08)"; + const columns = Math.ceil(layout.width / 160); + const rows = Math.ceil(layout.height / 120); + const lines = []; + + for (let column = 0; column <= columns; column += 1) { + const x = column * 160; + lines.push( + , + ); + } + + for (let row = 0; row <= rows; row += 1) { + const y = row * 120; + lines.push( + , + ); + } + + return {lines}; +} + +function findLinkedNodes( + nodeId: string, + graphKey: GraphKey, + state: EpiphanyGraphViewerProps["state"], +) { + if (graphKey === "architecture") { + return state.links + .filter((link) => link.architecture_node_id === nodeId) + .map((link) => ({ + graphKey: "dataflow" as const, + nodeId: link.dataflow_node_id, + title: + state.dataflow.nodes.find((node) => node.id === link.dataflow_node_id)?.title ?? + link.dataflow_node_id, + relationship: link.relationship ?? null, + })); + } + + return state.links + .filter((link) => link.dataflow_node_id === nodeId) + .map((link) => ({ + graphKey: "architecture" as const, + nodeId: link.architecture_node_id, + title: + state.architecture.nodes.find((node) => node.id === link.architecture_node_id)?.title ?? + link.architecture_node_id, + relationship: link.relationship ?? null, + })); +} + +function fitGraphToViewport(layout: GraphLayout, width: number, height: number): ViewTransform { + const padding = 76; + const scale = clamp( + Math.min((width - padding * 2) / layout.width, (height - padding * 2) / layout.height), + 0.36, + 1.12, + ); + return { + x: (width - layout.width * scale) / 2, + y: (height - layout.height * scale) / 2, + scale, + userMoved: false, + }; +} + +function handleWheel( + event: ReactWheelEvent, + graphKey: GraphKey, + transforms: Record, + setTransforms: React.Dispatch>>, +) { + event.preventDefault(); + const rect = event.currentTarget.getBoundingClientRect(); + const cursorX = event.clientX - rect.left; + const cursorY = event.clientY - rect.top; + const current = transforms[graphKey]; + const zoomFactor = event.deltaY < 0 ? 1.12 : 1 / 1.12; + const nextScale = clamp(current.scale * zoomFactor, 0.28, 2.8); + const worldX = (cursorX - current.x) / current.scale; + const worldY = (cursorY - current.y) / current.scale; + const nextX = cursorX - worldX * nextScale; + const nextY = cursorY - worldY * nextScale; + + setTransforms((existing) => ({ + ...existing, + [graphKey]: { + x: nextX, + y: nextY, + scale: nextScale, + userMoved: true, + }, + })); +} + +function handlePointerDown( + event: ReactPointerEvent, + transform: ViewTransform, + dragRef: React.MutableRefObject<{ + active: boolean; + originX: number; + originY: number; + startX: number; + startY: number; + } | null>, +) { + if (event.target !== event.currentTarget) { + return; + } + dragRef.current = { + active: true, + originX: event.clientX, + originY: event.clientY, + startX: transform.x, + startY: transform.y, + }; +} + +function handlePointerMove( + event: ReactPointerEvent, + graphKey: GraphKey, + dragRef: React.MutableRefObject<{ + active: boolean; + originX: number; + originY: number; + startX: number; + startY: number; + } | null>, + setTransforms: React.Dispatch>>, +) { + if (!dragRef.current?.active) { + return; + } + const deltaX = event.clientX - dragRef.current.originX; + const deltaY = event.clientY - dragRef.current.originY; + setTransforms((existing) => ({ + ...existing, + [graphKey]: { + ...existing[graphKey], + x: dragRef.current!.startX + deltaX, + y: dragRef.current!.startY + deltaY, + userMoved: true, + }, + })); +} + +function handlePointerUp( + dragRef: React.MutableRefObject<{ + active: boolean; + originX: number; + originY: number; + startX: number; + startY: number; + } | null>, +) { + if (dragRef.current) { + dragRef.current.active = false; + } +} + +function nudgeZoom( + graphKey: GraphKey, + factor: number, + setTransforms: React.Dispatch>>, +) { + setTransforms((current) => ({ + ...current, + [graphKey]: { + ...current[graphKey], + scale: clamp(current[graphKey].scale * factor, 0.28, 2.8), + userMoved: true, + }, + })); +} + +function edgeColor(graphKey: GraphKey, isSelected: boolean, isConnected: boolean | null) { + if (isSelected) { + return "#fde68a"; + } + if (isConnected) { + return graphKey === "architecture" ? "#67e8f9" : "#fb7185"; + } + return graphKey === "architecture" ? "#22d3ee" : "#f43f5e"; +} + +function nodeOpacity( + node: PositionedNode, + selectedNode: PositionedNode | null, + isNeighbor: boolean, +) { + if (!selectedNode) { + return 1; + } + if (selectedNode.id === node.id || isNeighbor) { + return 1; + } + return 0.36; +} + +function fadeBetween(value: number, start: number, end: number) { + if (value <= start) { + return 0; + } + if (value >= end) { + return 1; + } + return (value - start) / (end - start); +} + +function clip(text: string, maxLength: number) { + if (text.length <= maxLength) { + return text; + } + return `${text.slice(0, Math.max(0, maxLength - 1))}…`; +} + +function formatCodeRef(codeRef: EpiphanyCodeRef) { + const linePart = + codeRef.start_line != null + ? codeRef.end_line != null && codeRef.end_line !== codeRef.start_line + ? `:${codeRef.start_line}-${codeRef.end_line}` + : `:${codeRef.start_line}` + : ""; + const symbolPart = codeRef.symbol?.trim() ? ` • ${codeRef.symbol}` : ""; + return `${codeRef.path}${linePart}${symbolPart}`; +} + +function clamp(value: number, min: number, max: number) { + return Math.min(max, Math.max(min, value)); +} diff --git a/web/epiphany-graph-viewer/src/lib/layout.ts b/web/epiphany-graph-viewer/src/lib/layout.ts new file mode 100644 index 0000000..9e72d0e --- /dev/null +++ b/web/epiphany-graph-viewer/src/lib/layout.ts @@ -0,0 +1,287 @@ +import ELK from "elkjs/lib/elk.bundled.js"; +import type { + EpiphanyGraph, + EpiphanyGraphEdge, + EpiphanyGraphLink, + EpiphanyGraphsState, + GraphKey, + GraphLayout, + PositionedEdge, + PositionedNode, + PositionedPoint, +} from "./types"; + +const elk = new ELK(); + +type ElkSection = { + startPoint?: { x: number; y: number }; + endPoint?: { x: number; y: number }; + bendPoints?: Array<{ x: number; y: number }>; +}; + +type ElkLayoutNode = { + id: string; + x?: number; + y?: number; + width?: number; + height?: number; +}; + +type ElkLayoutEdge = { + id?: string; + sections?: ElkSection[]; +}; + +type ElkLayoutGraph = { + width?: number; + height?: number; + children?: ElkLayoutNode[]; + edges?: ElkLayoutEdge[]; +}; + +export async function layoutEpiphanyGraphs( + state: EpiphanyGraphsState, +): Promise> { + const [architecture, dataflow] = await Promise.all([ + layoutGraph("architecture", state.architecture, state.links), + layoutGraph("dataflow", state.dataflow, state.links), + ]); + + return { architecture, dataflow }; +} + +async function layoutGraph( + graphKey: GraphKey, + graph: EpiphanyGraph, + links: EpiphanyGraphLink[], +): Promise { + const nodeDegrees = buildNodeDegrees(graph); + const linkCounts = buildLinkCounts(graphKey, links); + const nodes = graph.nodes.map((node) => { + const size = estimateNodeSize(node, graphKey); + return { + id: node.id, + width: size.width, + height: size.height, + labels: [{ text: node.title }], + }; + }); + const edges = graph.edges.map((edge, index) => ({ + id: resolveEdgeId(edge, index), + sources: [edge.source_id], + targets: [edge.target_id], + })); + + const elkGraph = { + id: graphKey, + layoutOptions: { + "elk.algorithm": + graphKey === "architecture" ? "org.eclipse.elk.layered" : "org.eclipse.elk.stress", + ...(graphKey === "architecture" + ? { + "elk.direction": "DOWN", + "elk.edgeRouting": "SPLINES", + "elk.spacing.nodeNode": "48", + "elk.layered.spacing.nodeNodeBetweenLayers": "88", + "elk.layered.nodePlacement.strategy": "NETWORK_SIMPLEX", + "elk.padding": "[top=40,left=40,bottom=40,right=40]", + } + : { + "elk.spacing.nodeNode": "80", + "elk.edgeRouting": "SPLINES", + "elk.padding": "[top=60,left=60,bottom=60,right=60]", + "elk.stress.desiredEdgeLength": "128", + }), + }, + children: nodes, + edges, + }; + + const layout = (await elk.layout(elkGraph)) as ElkLayoutGraph; + const childLookup = new Map((layout.children ?? []).map((child) => [child.id, child])); + + const positionedNodes: PositionedNode[] = graph.nodes.map((node) => { + const child = childLookup.get(node.id); + const degree = nodeDegrees.get(node.id) ?? 0; + const linkCount = linkCounts.get(node.id) ?? 0; + return { + ...node, + code_refs: node.code_refs ?? [], + graphKey, + x: child?.x ?? 0, + y: child?.y ?? 0, + width: child?.width ?? estimateNodeSize(node, graphKey).width, + height: child?.height ?? estimateNodeSize(node, graphKey).height, + degree, + linkCount, + badgeText: nodeBadgeText(node.title), + fill: nodeFill(graphKey, node.status), + stroke: nodeStroke(graphKey, node.status), + }; + }); + + const edgeLookup = new Map(graph.edges.map((edge, index) => [resolveEdgeId(edge, index), edge])); + const positionedEdges: PositionedEdge[] = (layout.edges ?? []).map((edge, index) => { + const resolvedId = edge.id ?? `edge-${graphKey}-${index}`; + const source = edgeLookup.get(resolvedId) ?? graph.edges[index]; + const points = edgeSectionsToPoints(edge.sections ?? []); + return { + ...source, + id: source.id ?? null, + label: source.label ?? null, + mechanism: source.mechanism ?? null, + code_refs: source.code_refs ?? [], + graphKey, + resolvedId, + points, + path: pointsToPath(points), + midpoint: edgeMidpoint(points), + }; + }); + + return { + graphKey, + width: Math.max(720, layout.width ?? 720), + height: Math.max(520, layout.height ?? 520), + nodes: positionedNodes, + edges: positionedEdges, + }; +} + +function buildNodeDegrees(graph: EpiphanyGraph) { + const degrees = new Map(); + for (const node of graph.nodes ?? []) { + degrees.set(node.id, 0); + } + for (const edge of graph.edges ?? []) { + degrees.set(edge.source_id, (degrees.get(edge.source_id) ?? 0) + 1); + degrees.set(edge.target_id, (degrees.get(edge.target_id) ?? 0) + 1); + } + return degrees; +} + +function buildLinkCounts(graphKey: GraphKey, links: EpiphanyGraphLink[]) { + const counts = new Map(); + for (const link of links ?? []) { + const nodeId = + graphKey === "architecture" ? link.architecture_node_id : link.dataflow_node_id; + counts.set(nodeId, (counts.get(nodeId) ?? 0) + 1); + } + return counts; +} + +function resolveEdgeId(edge: EpiphanyGraphEdge, index: number) { + return edge.id?.trim() ? edge.id : `${edge.source_id}->${edge.target_id}:${edge.kind}:${index}`; +} + +function estimateNodeSize( + node: { title: string; purpose: string; mechanism?: string | null; metaphor?: string | null }, + graphKey: GraphKey, +) { + const titleWeight = Math.min(node.title.length, 36); + const purposeWeight = Math.min(node.purpose.length, 110); + const widthFloor = graphKey === "architecture" ? 232 : 248; + const width = clamp(widthFloor + titleWeight * 2.3 + purposeWeight * 0.22, widthFloor, 360); + const detailLines = + 2 + + (node.mechanism?.trim() ? 1 : 0) + + (node.metaphor?.trim() ? 1 : 0); + const height = clamp(100 + detailLines * 16, 108, 168); + return { width, height }; +} + +function edgeSectionsToPoints(sections: ElkSection[]) { + const points: PositionedPoint[] = []; + for (const section of sections) { + if (section.startPoint) { + points.push(section.startPoint); + } + for (const bendPoint of section.bendPoints ?? []) { + points.push(bendPoint); + } + if (section.endPoint) { + points.push(section.endPoint); + } + } + return dedupeSequentialPoints(points); +} + +function pointsToPath(points: PositionedPoint[]) { + if (points.length === 0) { + return ""; + } + const [first, ...rest] = points; + return `M ${fmt(first.x)} ${fmt(first.y)} ${rest + .map((point) => `L ${fmt(point.x)} ${fmt(point.y)}`) + .join(" ")}`; +} + +function edgeMidpoint(points: PositionedPoint[]) { + if (points.length === 0) { + return { x: 0, y: 0 }; + } + const midIndex = Math.floor(points.length / 2); + return points[midIndex]; +} + +function dedupeSequentialPoints(points: PositionedPoint[]) { + const deduped: PositionedPoint[] = []; + for (const point of points) { + const previous = deduped[deduped.length - 1]; + if (!previous || previous.x !== point.x || previous.y !== point.y) { + deduped.push(point); + } + } + return deduped; +} + +function nodeBadgeText(title: string) { + const words = title.split(/[\s/_-]+/).filter(Boolean); + if (words.length === 0) { + return "??"; + } + if (words.length === 1) { + return words[0].slice(0, 2).toUpperCase(); + } + return `${words[0][0] ?? ""}${words[1][0] ?? ""}`.toUpperCase(); +} + +function nodeFill(graphKey: GraphKey, status?: string | null) { + if (status === "verified") { + return graphKey === "architecture" ? "rgba(15, 118, 110, 0.28)" : "rgba(120, 53, 15, 0.3)"; + } + if (status === "active") { + return "rgba(67, 56, 202, 0.3)"; + } + if (status === "prototype") { + return "rgba(91, 33, 182, 0.28)"; + } + return graphKey === "architecture" ? "rgba(8, 47, 73, 0.66)" : "rgba(58, 12, 33, 0.68)"; +} + +function nodeStroke(graphKey: GraphKey, status?: string | null) { + if (status === "verified") { + return "#5eead4"; + } + if (status === "in_progress") { + return "#fbbf24"; + } + if (status === "active") { + return "#93c5fd"; + } + if (status === "prototype") { + return "#c084fc"; + } + if (status === "proposed") { + return "#f9a8d4"; + } + return graphKey === "architecture" ? "#67e8f9" : "#fb7185"; +} + +function clamp(value: number, min: number, max: number) { + return Math.min(max, Math.max(min, value)); +} + +function fmt(value: number) { + return Number(value).toFixed(2).replace(/\.00$/, ""); +} diff --git a/web/epiphany-graph-viewer/src/lib/mock-state.json b/web/epiphany-graph-viewer/src/lib/mock-state.json new file mode 100644 index 0000000..0bae5a7 --- /dev/null +++ b/web/epiphany-graph-viewer/src/lib/mock-state.json @@ -0,0 +1,295 @@ +{ + "architecture": { + "nodes": [ + { + "id": "arch-session-state", + "title": "Session state store", + "purpose": "Carry durable objective, graph, evidence, and churn state across turns.", + "mechanism": "Lives on the session and gets rehydrated when the thread wakes back up.", + "metaphor": "The map pinned to the workshop wall so nobody wanders off whistling.", + "status": "verified", + "code_refs": [ + { + "path": "core/src/state/session.rs", + "start_line": 36, + "end_line": 121, + "symbol": "SessionState::epiphany_state", + "note": "Stored thread state" + } + ] + }, + { + "id": "arch-prompt-renderer", + "title": "Prompt renderer", + "purpose": "Turn durable Epiphany state into a bounded instruction block for the agent.", + "mechanism": "Summarizes the frontier, recent evidence, and live constraints into a compact prompt fragment.", + "metaphor": "A folded field guide, not the whole filing cabinet.", + "status": "in_progress", + "code_refs": [ + { + "path": "core/src/context/epiphany_state_instructions.rs", + "start_line": 1, + "end_line": 220, + "symbol": "render_epiphany_state", + "note": "Prompt shaping" + } + ] + }, + { + "id": "arch-graph-promoter", + "title": "Graph promoter", + "purpose": "Promote observations and map updates into durable typed graph state.", + "mechanism": "Validates graph patches before they enter the session state.", + "metaphor": "The customs desk that stops counterfeit structure at the border.", + "status": "verified", + "code_refs": [ + { + "path": "epiphany-core/src/promotion.rs", + "start_line": 268, + "end_line": 352, + "symbol": "validate_graphs", + "note": "Patch validation" + } + ] + }, + { + "id": "arch-tool-bridge", + "title": "Tool bridge", + "purpose": "Translate model intent into tool calls without letting the prompt turn into soup.", + "mechanism": "Binds the runtime tool surface to the working context and execution policy.", + "metaphor": "The gearbox between intention and actual machinery.", + "status": "proposed", + "code_refs": [ + { + "path": "vendor/codex/codex-rs/core/src/tools/mod.rs", + "symbol": "ToolRuntime", + "note": "Tool execution seam" + } + ] + }, + { + "id": "arch-gui-shell", + "title": "Graph GUI shell", + "purpose": "Expose architecture, dataflow, and cross-links in a browsable visual surface.", + "mechanism": "Embeds the web viewer and routes clicks back into the rest of the application.", + "metaphor": "The dashboard where the workshop lights stop flickering and start admitting what they power.", + "status": "prototype", + "code_refs": [ + { + "path": "gui/src/routes/graphs.tsx", + "symbol": "GraphRoute", + "note": "Planned viewer slot" + } + ] + } + ], + "edges": [ + { + "id": "edge-session-renderer", + "source_id": "arch-session-state", + "target_id": "arch-prompt-renderer", + "kind": "renders-into", + "label": "bounded fragment", + "mechanism": "Session state is summarized into prompt context.", + "code_refs": [ + { + "path": "vendor/codex/codex-rs/core/src/session/mod.rs", + "symbol": "build_initial_context", + "note": "Prompt assembly slot" + } + ] + }, + { + "id": "edge-promoter-session", + "source_id": "arch-graph-promoter", + "target_id": "arch-session-state", + "kind": "writes", + "label": "validated updates", + "mechanism": "Promotion mutates durable state only after structural checks pass." + }, + { + "id": "edge-tool-renderer", + "source_id": "arch-tool-bridge", + "target_id": "arch-prompt-renderer", + "kind": "feeds", + "label": "tool surface", + "mechanism": "The prompt renderer reflects which tools the agent can actually use." + }, + { + "id": "edge-gui-session", + "source_id": "arch-gui-shell", + "target_id": "arch-session-state", + "kind": "reads", + "label": "typed state", + "mechanism": "The GUI consumes the same durable graph state the agent sees." + }, + { + "id": "edge-gui-promoter", + "source_id": "arch-gui-shell", + "target_id": "arch-graph-promoter", + "kind": "inspects", + "label": "validation status", + "mechanism": "Viewer health should expose whether the underlying graph is coherent." + } + ] + }, + "dataflow": { + "nodes": [ + { + "id": "flow-observations", + "title": "Observations stream", + "purpose": "Capture recent findings and raw signals before they harden into durable structure.", + "mechanism": "Tool results and textual observations get queued as evidence inputs.", + "metaphor": "Shavings on the floor before you decide what piece of furniture you were making.", + "status": "verified", + "code_refs": [ + { + "path": "epiphany-core/src/evidence.rs", + "symbol": "EpiphanyObservation", + "note": "Evidence capture" + } + ] + }, + { + "id": "flow-proposal", + "title": "Graph proposal", + "purpose": "Stage candidate graph edits before promotion.", + "mechanism": "Proposals carry candidate nodes, edges, and cross-links for validation.", + "metaphor": "Wet concrete in the formwork, not the finished slab.", + "status": "verified", + "code_refs": [ + { + "path": "epiphany-core/src/proposal.rs", + "symbol": "EpiphanyProposal", + "note": "Proposal assembly" + } + ] + }, + { + "id": "flow-validated-graph", + "title": "Validated graph patch", + "purpose": "Produce a structurally safe graph update that can survive contact with persistence.", + "mechanism": "Checks required fields, reference integrity, and duplicate IDs before promotion.", + "metaphor": "A passport stamped by someone who actually looked at the face.", + "status": "verified", + "code_refs": [ + { + "path": "epiphany-core/src/promotion.rs", + "start_line": 268, + "end_line": 352, + "symbol": "validate_graph", + "note": "Graph validation" + } + ] + }, + { + "id": "flow-state-fragment", + "title": "Epiphany state fragment", + "purpose": "Expose the live graph frontier to the prompt without dumping the whole machine room into context.", + "mechanism": "Summarizes only the active map and recent changes.", + "metaphor": "A flashlight beam, not the sun.", + "status": "prototype", + "code_refs": [ + { + "path": "core/src/context/epiphany_state_instructions.rs", + "symbol": "render_epiphany_state", + "note": "Prompt fragment" + } + ] + }, + { + "id": "flow-agent-turn", + "title": "Agent turn", + "purpose": "Consume the bounded state and produce the next action, hypothesis, or patch.", + "mechanism": "The model uses the rendered map as one constraint surface among several.", + "metaphor": "The monkey at the lathe, but hopefully with a checklist.", + "status": "active", + "code_refs": [ + { + "path": "vendor/codex/codex-rs/core/src/session/mod.rs", + "symbol": "run_turn", + "note": "Turn execution" + } + ] + } + ], + "edges": [ + { + "id": "edge-observations-proposal", + "source_id": "flow-observations", + "target_id": "flow-proposal", + "kind": "feeds", + "label": "candidate structure", + "mechanism": "Raw observations feed proposal generation." + }, + { + "id": "edge-proposal-validation", + "source_id": "flow-proposal", + "target_id": "flow-validated-graph", + "kind": "validated-as", + "label": "structural checks", + "mechanism": "Only well-formed graph edits get promoted." + }, + { + "id": "edge-validated-fragment", + "source_id": "flow-validated-graph", + "target_id": "flow-state-fragment", + "kind": "rendered-as", + "label": "bounded summary", + "mechanism": "Validated graph state is summarized into promptable form." + }, + { + "id": "edge-fragment-turn", + "source_id": "flow-state-fragment", + "target_id": "flow-agent-turn", + "kind": "feeds", + "label": "active map", + "mechanism": "The current state fragment shapes the next turn." + }, + { + "id": "edge-turn-observations", + "source_id": "flow-agent-turn", + "target_id": "flow-observations", + "kind": "produces", + "label": "new evidence", + "mechanism": "Actions create more observations, because life is a wheel." + } + ] + }, + "links": [ + { + "dataflow_node_id": "flow-state-fragment", + "architecture_node_id": "arch-prompt-renderer", + "relationship": "rendered-by", + "code_refs": [ + { + "path": "core/src/context/epiphany_state_instructions.rs", + "symbol": "render_epiphany_state", + "note": "Renderer implementation" + } + ] + }, + { + "dataflow_node_id": "flow-validated-graph", + "architecture_node_id": "arch-graph-promoter", + "relationship": "promoted-by", + "code_refs": [ + { + "path": "epiphany-core/src/promotion.rs", + "symbol": "validate_graphs", + "note": "Promotion validation" + } + ] + }, + { + "dataflow_node_id": "flow-agent-turn", + "architecture_node_id": "arch-tool-bridge", + "relationship": "executes-through" + }, + { + "dataflow_node_id": "flow-agent-turn", + "architecture_node_id": "arch-gui-shell", + "relationship": "inspected-in" + } + ] +} diff --git a/web/epiphany-graph-viewer/src/lib/mock-state.ts b/web/epiphany-graph-viewer/src/lib/mock-state.ts new file mode 100644 index 0000000..48e2735 --- /dev/null +++ b/web/epiphany-graph-viewer/src/lib/mock-state.ts @@ -0,0 +1,4 @@ +import rawState from "./mock-state.json"; +import type { EpiphanyGraphsState } from "./types"; + +export const mockEpiphanyGraphState = rawState as EpiphanyGraphsState; diff --git a/web/epiphany-graph-viewer/src/lib/types.ts b/web/epiphany-graph-viewer/src/lib/types.ts new file mode 100644 index 0000000..8495b98 --- /dev/null +++ b/web/epiphany-graph-viewer/src/lib/types.ts @@ -0,0 +1,115 @@ +import type { CSSProperties } from "react"; + +export type GraphKey = "architecture" | "dataflow"; + +export interface EpiphanyCodeRef { + path: string; + start_line?: number | null; + end_line?: number | null; + symbol?: string | null; + note?: string | null; +} + +export interface EpiphanyGraphNode { + id: string; + title: string; + purpose: string; + mechanism?: string | null; + metaphor?: string | null; + status?: string | null; + code_refs?: EpiphanyCodeRef[]; +} + +export interface EpiphanyGraphEdge { + source_id: string; + target_id: string; + kind: string; + id?: string | null; + label?: string | null; + mechanism?: string | null; + code_refs?: EpiphanyCodeRef[]; +} + +export interface EpiphanyGraph { + nodes: EpiphanyGraphNode[]; + edges: EpiphanyGraphEdge[]; +} + +export interface EpiphanyGraphLink { + dataflow_node_id: string; + architecture_node_id: string; + relationship?: string | null; + code_refs?: EpiphanyCodeRef[]; +} + +export interface EpiphanyGraphsState { + architecture: EpiphanyGraph; + dataflow: EpiphanyGraph; + links: EpiphanyGraphLink[]; +} + +export interface EpiphanyValidationIssue { + scope: string; + message: string; +} + +export type ViewerSelection = + | { + kind: "node"; + graphKey: GraphKey; + nodeId: string; + } + | { + kind: "edge"; + graphKey: GraphKey; + edgeId: string; + }; + +export interface EpiphanyGraphViewerProps { + state: EpiphanyGraphsState; + initialGraph?: GraphKey; + style?: CSSProperties; + className?: string; + title?: string; + onCodeRefSelect?: ( + codeRef: EpiphanyCodeRef, + context: { + graphKey: GraphKey; + selection: ViewerSelection | null; + }, + ) => void; +} + +export interface PositionedPoint { + x: number; + y: number; +} + +export interface PositionedNode extends EpiphanyGraphNode { + graphKey: GraphKey; + x: number; + y: number; + width: number; + height: number; + degree: number; + linkCount: number; + badgeText: string; + fill: string; + stroke: string; +} + +export interface PositionedEdge extends EpiphanyGraphEdge { + resolvedId: string; + graphKey: GraphKey; + points: PositionedPoint[]; + path: string; + midpoint: PositionedPoint; +} + +export interface GraphLayout { + graphKey: GraphKey; + width: number; + height: number; + nodes: PositionedNode[]; + edges: PositionedEdge[]; +} diff --git a/web/epiphany-graph-viewer/src/lib/validation.ts b/web/epiphany-graph-viewer/src/lib/validation.ts new file mode 100644 index 0000000..a3b4c88 --- /dev/null +++ b/web/epiphany-graph-viewer/src/lib/validation.ts @@ -0,0 +1,135 @@ +import type { + EpiphanyGraph, + EpiphanyGraphsState, + EpiphanyValidationIssue, + GraphKey, +} from "./types"; + +export function validateEpiphanyGraphsState(state: EpiphanyGraphsState): EpiphanyValidationIssue[] { + const issues: EpiphanyValidationIssue[] = []; + const architectureIds = validateGraph("architecture", state.architecture, issues); + const dataflowIds = validateGraph("dataflow", state.dataflow, issues); + const linkPairs = new Set(); + + for (const link of state.links ?? []) { + if (!link.dataflow_node_id?.trim()) { + issues.push({ + scope: "links", + message: "Link is missing a nonempty dataflow_node_id.", + }); + } + if (!link.architecture_node_id?.trim()) { + issues.push({ + scope: "links", + message: "Link is missing a nonempty architecture_node_id.", + }); + } + if (link.dataflow_node_id?.trim() && !dataflowIds.has(link.dataflow_node_id)) { + issues.push({ + scope: "links", + message: `Link references missing dataflow node '${link.dataflow_node_id}'.`, + }); + } + if (link.architecture_node_id?.trim() && !architectureIds.has(link.architecture_node_id)) { + issues.push({ + scope: "links", + message: `Link references missing architecture node '${link.architecture_node_id}'.`, + }); + } + const pairKey = `${link.dataflow_node_id}::${link.architecture_node_id}`; + if (linkPairs.has(pairKey)) { + issues.push({ + scope: "links", + message: `Duplicate cross-link '${pairKey}'.`, + }); + } + linkPairs.add(pairKey); + } + + return issues; +} + +function validateGraph( + graphKey: GraphKey, + graph: EpiphanyGraph, + issues: EpiphanyValidationIssue[], +): Set { + const nodeIds = new Set(); + const edgeIds = new Set(); + + for (const node of graph.nodes ?? []) { + if (!node.id?.trim()) { + issues.push({ + scope: graphKey, + message: "Node is missing a nonempty id.", + }); + } + if (!node.title?.trim()) { + issues.push({ + scope: graphKey, + message: `Node '${node.id || ""}' is missing a nonempty title.`, + }); + } + if (!node.purpose?.trim()) { + issues.push({ + scope: graphKey, + message: `Node '${node.id || ""}' is missing a nonempty purpose.`, + }); + } + if (nodeIds.has(node.id)) { + issues.push({ + scope: graphKey, + message: `Duplicate node id '${node.id}'.`, + }); + } + nodeIds.add(node.id); + } + + for (const edge of graph.edges ?? []) { + if (!edge.source_id?.trim()) { + issues.push({ + scope: graphKey, + message: "Edge is missing a nonempty source_id.", + }); + } + if (!edge.target_id?.trim()) { + issues.push({ + scope: graphKey, + message: "Edge is missing a nonempty target_id.", + }); + } + if (!edge.kind?.trim()) { + issues.push({ + scope: graphKey, + message: "Edge is missing a nonempty kind.", + }); + } + if (edge.source_id?.trim() && !nodeIds.has(edge.source_id)) { + issues.push({ + scope: graphKey, + message: `Edge '${edge.id || fallbackEdgeId(edge)}' references missing source node '${edge.source_id}'.`, + }); + } + if (edge.target_id?.trim() && !nodeIds.has(edge.target_id)) { + issues.push({ + scope: graphKey, + message: `Edge '${edge.id || fallbackEdgeId(edge)}' references missing target node '${edge.target_id}'.`, + }); + } + if (edge.id?.trim()) { + if (edgeIds.has(edge.id)) { + issues.push({ + scope: graphKey, + message: `Duplicate edge id '${edge.id}'.`, + }); + } + edgeIds.add(edge.id); + } + } + + return nodeIds; +} + +function fallbackEdgeId(edge: { source_id: string; target_id: string; kind: string }) { + return `${edge.source_id}->${edge.target_id}:${edge.kind}`; +} diff --git a/web/epiphany-graph-viewer/src/main.tsx b/web/epiphany-graph-viewer/src/main.tsx new file mode 100644 index 0000000..cadecce --- /dev/null +++ b/web/epiphany-graph-viewer/src/main.tsx @@ -0,0 +1,9 @@ +import React from "react"; +import ReactDOM from "react-dom/client"; +import { App } from "./App"; + +ReactDOM.createRoot(document.getElementById("root")!).render( + + + , +); diff --git a/web/epiphany-graph-viewer/tsconfig.json b/web/epiphany-graph-viewer/tsconfig.json new file mode 100644 index 0000000..989ce10 --- /dev/null +++ b/web/epiphany-graph-viewer/tsconfig.json @@ -0,0 +1,17 @@ +{ + "compilerOptions": { + "target": "ES2022", + "module": "ESNext", + "moduleResolution": "Bundler", + "lib": ["DOM", "DOM.Iterable", "ES2022"], + "jsx": "react-jsx", + "strict": true, + "skipLibCheck": true, + "allowSyntheticDefaultImports": true, + "resolveJsonModule": true, + "isolatedModules": true, + "noEmit": true, + "types": ["vite/client"] + }, + "include": ["src", "vite.config.ts"] +} diff --git a/web/epiphany-graph-viewer/vite.config.ts b/web/epiphany-graph-viewer/vite.config.ts new file mode 100644 index 0000000..bf4efd9 --- /dev/null +++ b/web/epiphany-graph-viewer/vite.config.ts @@ -0,0 +1,20 @@ +import react from "@vitejs/plugin-react"; +import { defineConfig } from "vite"; + +export default defineConfig({ + plugins: [react()], + build: { + rollupOptions: { + output: { + manualChunks: { + react: ["react", "react-dom"], + elk: ["elkjs/lib/elk.bundled.js"], + }, + }, + }, + }, + server: { + host: "127.0.0.1", + port: 4177, + }, +});