Soul-driven AI agent with permission-hardened tools, token budgets, and multi-channel access. Runs 24/7 from CLI, Telegram or More.
feat(desktop): Mercury Desktop shell (Tauri 2) with local attach and remote pairing
Salman Qureshi322206f4c8b6
diff --git a/DECISIONS.md b/DECISIONS.mdindex 47fa61a7..a9604b82 100644--- a/DECISIONS.md+++ b/DECISIONS.md@@ -290,3 +290,20 @@- Any new place that filters tools by name (plan mode, members, bots, sub-agents) must decide how it treats the `mcp__` prefix.- Text from an MCP server (descriptions, results, errors) is untrusted input and must never be used to make a permission decision.- Resources, prompts, sampling, OAuth, images in results, bot access and the 2026-07-28 protocol (`versionNegotiation: 'auto'`) are follow-ups.++## ADR-030: Mercury Desktop — a Tauri shell around the one dashboard, over a versioned API++- **Context**: Mercury had one interface outside the terminal: the React dashboard the runtime serves on loopback, behind a cookie login. Users asked for a desktop app (and later phone apps) that can attach to the Mercury on their computer, install one when there is none, and connect to Mercuries elsewhere — a home machine, a server, Termux, Mercury Cloud — side by side. Research covered Hermes Desktop (Electron, separate gateway, connections registry), OpenClaw (native Swift menu-bar app over a gateway), Claude Desktop (Electron plus a hidden VM; 9 processes/1.2 GB idle on Windows reported), the ChatGPT/Codex apps (native Mac app, Electron Codex, merged in 2026), and Tauri 2 versus Electron.+- **Decision**:+ - **Shell.** Tauri 2 (`apps/desktop`): a Rust shell of a few hundred lines around the platform webview, one process plus the runtime. It owns what a tab cannot — window and tray, the OS keychain, finding and starting the runtime on this computer, deep links, updates. Everything the user looks at is the same React dashboard (`ui/`), imported as source through the `@` alias and built with Vite; `resolve.dedupe` keeps one React. Routing is a hash router: a bundled app has no server-side fallback. Phones get native apps later; they share the API, not the UI.+ - **Monorepo.** Desktop under `apps/desktop`, dashboard stays in `ui/`, runtime in `src/`. Release tags per package (`v1.x` runtime, `desktop-v0.x` app, `optimus-v0.x` plugin). The desktop updater polls `https://mercuryagent.sh/desktop/latest.json`, published from `website/static/desktop/` like the plugin catalog, because GitHub's "latest release" can only point at one package.+ - **Contract.** Two numbers: the package version (display) and `API_VERSION` in `/api/health` (compatibility), with `features` flags for additive changes. A client declares the range it understands; outside it, the user is told which side to update and can open the runtime-served dashboard, which always matches. `docs/api-contract.md` is the ledger; no runtime release without a row.+ - **Credentials.** Three kinds, one guard (`src/web/middleware.ts`): the web session (any peer, cookie or Bearer), the attach token (loopback only, per boot — the desktop app attaches to a local runtime with it, zero typing), and device tokens (`mdt_<id>_<secret>`, any peer, long-lived, one per device, hashed at rest in `~/.mercury/devices.json`, constant-time compare, revocable one at a time). `POST /api/auth/token` exchanges the password for one; `mercury devices add|list|revoke` manages them. The app keeps a device token in the OS keychain, never in a file it owns, and never keeps the password.+ - **Cross-origin.** `/api/*` sends CORS headers for the desktop webview origins and `web.corsOrigins`; never a wildcard, never credentials. Event streams from a hosted client are `fetch()`+Bearer with an EventSource-shaped wrapper, because EventSource cannot send a header.+ - **Local runtime.** The app never supervises the daemon itself; `mercury service` (launchd, systemd user unit, Task Scheduler, Termux boot) already does, and the app reuses it. Closing the window hides to the tray; Quit lives in the tray.+- **Alternatives considered**:+ - Electron: same architecture, but a bundled Chromium per app (≈150 MB download, 300–500 MB idle, several processes). The UI is already a web app with no need for Chromium-only APIs.+ - Loading the runtime-served dashboard URL in the window instead of bundling the UI: always version-matched and no CORS, but no offline first run, native integration only through remote-page IPC, and cookie auth that cannot be shared across connections. Kept as the fallback path when versions disagree.+ - Password login from the app on every launch: no revocation per device, and the password would have to be stored.+ - Exposing `/api/health` to unauthenticated remote peers for discovery: rejected; the runtime stays invisible (404) without a credential, and pairing returns the same contract fields.+- **Consequence**: One UI codebase for the web dashboard and the desktop app; the dashboard must keep working in both homes (same-origin cookie, and Bearer from a shell), so no new `window.location` navigation or raw `EventSource` in `ui/` — use `lib/connection.ts` and `lib/sse.ts`. Every API change is judged against the contract rules. The runtime still binds loopback only; remote access means a tunnel, VPN or reverse proxy, which is a later decision with its own ADR. Follow-ups: bundled runtime as a sidecar (install from the app), signed updater artifacts, notifications with actions, the macOS notch capsule, QR pairing over `mercury://`, and the cockpit redesign in `ui/`.diff --git a/apps/desktop/.gitignore b/apps/desktop/.gitignorenew file mode 100644index 00000000..72202ef8--- /dev/null+++ b/apps/desktop/.gitignore@@ -0,0 +1,6 @@+node_modules/+dist/+src-tauri/target/+src-tauri/gen/schemas/+src-tauri/binaries/+*.localdiff --git a/apps/desktop/README.md b/apps/desktop/README.mdnew file mode 100644index 00000000..ec856d03--- /dev/null+++ b/apps/desktop/README.md@@ -0,0 +1,63 @@+# Mercury Desktop++The native desktop app for Mercury: a Tauri 2 shell (Rust, small) around the+same React dashboard the runtime serves (`../../ui`). The shell owns what a+browser tab cannot — window and tray, the OS keychain, finding/starting the+runtime on this computer, deep links, updates — and the dashboard does the+rest over the runtime's HTTP API.++```+apps/desktop/+ src/ the shell's own screens (first run, connections, status)+ src/shell/ connections store, runtime bring-up, native bridge+ src-tauri/ Rust: window, tray, keychain, local-runtime detection+ ../../ui/src the dashboard, imported as source via the "@" alias+```++## How a connection works++| Kind | Address | Credential |+|--------|------------------------------|---------------------------------------------------------|+| local | `http://127.0.0.1:<port>` | the runtime's per-boot attach token (`~/.mercury/attach-token`), read fresh each time |+| remote | any `http(s)://` origin | a device token (`mdt_…`) in the OS keychain, minted by `POST /api/auth/token` or `mercury devices add` |++Before the dashboard loads, the shell calls `GET /api/health` and compares+`apiVersion` with `src/shell/compat.ts`. Out of range → the user is told+which side to update and can open the runtime's own dashboard instead.++## Develop++Prerequisites: Node 22, Rust stable, and the platform bits Tauri lists at+https://v2.tauri.app/start/prerequisites/ (Xcode CLT on macOS; WebView2 ++MSVC on Windows; webkit2gtk 4.1 + libayatana-appindicator on Linux).++```sh+cd ui && npm ci && cd .. # the dashboard's dependencies+cd apps/desktop && npm ci+npm run icons # once: generates src-tauri/icons from icons/source.png+npm run desktop:dev # Tauri window + Vite HMR+```++`npm run dev` alone serves the frontend at http://localhost:1420 in a plain+browser (native calls fall back to no-ops/localStorage); start the runtime+with `MERCURY_DESKTOP_DEV=1` so its CORS allows that origin.++## Build++```sh+npm run desktop:build # .dmg / .msi+.exe / .deb+.AppImage under src-tauri/target/release/bundle+```++Updater artifacts (`createUpdaterArtifacts`) are off in this config until+the signing keys exist; CI turns them on with `TAURI_SIGNING_PRIVATE_KEY`.+The update manifest the app polls is `https://mercuryagent.sh/desktop/latest.json`+(published from `website/static/desktop/`, the same path as the plugin+catalog).++## Not yet here++- Bundled runtime ("Install Mercury here" card) — next brick, as a Tauri+ sidecar fetched from the matching Mercury release at build time.+- QR pairing (`mercury://connect?...` deep link is registered; the phone+ app will emit it).+- Notifications with actions, the macOS notch capsule, auto-start toggle UI.diff --git a/apps/desktop/index.html b/apps/desktop/index.htmlnew file mode 100644index 00000000..edf137a5--- /dev/null+++ b/apps/desktop/index.html@@ -0,0 +1,13 @@+<!DOCTYPE html>+<html lang="en" class="dark">+ <head>+ <meta charset="UTF-8" />+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />+ <meta name="color-scheme" content="dark light" />+ <title>Mercury</title>+ </head>+ <body>+ <div id="root"></div>+ <script type="module" src="/src/main.tsx"></script>+ </body>+</html>diff --git a/apps/desktop/package-lock.json b/apps/desktop/package-lock.jsonnew file mode 100644index 00000000..c9099da4--- /dev/null+++ b/apps/desktop/package-lock.json@@ -0,0 +1,3192 @@+{+ "name": "mercury-desktop",+ "version": "0.1.0",+ "lockfileVersion": 3,+ "requires": true,+ "packages": {+ "": {+ "name": "mercury-desktop",+ "version": "0.1.0",+ "dependencies": {+ "@tauri-apps/api": "^2.12.4",+ "@tauri-apps/plugin-autostart": "^2.7.0",+ "@tauri-apps/plugin-deep-link": "^2.6.2",+ "@tauri-apps/plugin-dialog": "^2.8.3",+ "@tauri-apps/plugin-log": "^2.10.1",+ "@tauri-apps/plugin-notification": "^2.7.0",+ "@tauri-apps/plugin-opener": "^2.7.2",+ "@tauri-apps/plugin-os": "^2.4.0",+ "@tauri-apps/plugin-process": "^2.4.0",+ "@tauri-apps/plugin-store": "^2.5.0",+ "@tauri-apps/plugin-updater": "^2.14.0",+ "@tauri-apps/plugin-window-state": "^2.5.0",+ "clsx": "^2.1.1",+ "framer-motion": "^12.12.1",+ "lucide-react": "^0.511.0",+ "react": "^18.3.1",+ "react-dom": "^18.3.1",+ "react-router-dom": "^7.6.1",+ "tailwind-merge": "^3.3.0",+ "zustand": "^5.0.5"+ },+ "devDependencies": {+ "@tauri-apps/cli": "^2.12.4",+ "@types/react": "^18.3.28",+ "@types/react-dom": "^18.3.7",+ "@vitejs/plugin-react": "^4.5.2",+ "autoprefixer": "^10.4.21",+ "postcss": "^8.5.4",+ "tailwindcss": "^3.4.17",+ "typescript": "^5.7.0",+ "vite": "^5.4.19"+ }+ },+ "node_modules/@alloc/quick-lru": {+ "version": "5.3.0",+ "resolved": "https://registry.npmjs.org/@alloc/quick-lru/-/quick-lru-5.3.0.tgz",+ "integrity": "sha512-U4+70Pc5ZS9osnCBCE5Jha/ciHM+Yp+CNMNC/7HvYbNRk1Ldd+f7qO65W5qfhu/TCv+/ozljlXXe9Nj8419DMA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/@babel/code-frame": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.7.tgz",+ "integrity": "sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-validator-identifier": "^7.29.7",+ "js-tokens": "^4.0.0",+ "picocolors": "^1.1.1"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/compat-data": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.7.tgz",+ "integrity": "sha512-locTkQyKvwIEgBzVrn8693ebc97F2U8ZHjbXwDXJ5Fn2TCpNwTlKcaKLkdHop5c/icOFE7qt7Q9JC5hnKNa6Gg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/core": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.7.tgz",+ "integrity": "sha512-RgHBCvtjbOK2gXSNBNIkNoEc9qoVEtau3hj8gEqKQuL3HZAibKarWFEI3Lfm6EYKkLalOh8eSrj9b+ch9H/VBA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/code-frame": "^7.29.7",+ "@babel/generator": "^7.29.7",+ "@babel/helper-compilation-targets": "^7.29.7",+ "@babel/helper-module-transforms": "^7.29.7",+ "@babel/helpers": "^7.29.7",+ "@babel/parser": "^7.29.7",+ "@babel/template": "^7.29.7",+ "@babel/traverse": "^7.29.7",+ "@babel/types": "^7.29.7",+ "@jridgewell/remapping": "^2.3.5",+ "convert-source-map": "^2.0.0",+ "debug": "^4.1.0",+ "gensync": "^1.0.0-beta.2",+ "json5": "^2.2.3",+ "semver": "^6.3.1"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/babel"+ }+ },+ "node_modules/@babel/generator": {+ "version": "7.29.8",+ "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.8.tgz",+ "integrity": "sha512-gZbepsdh3WDtgZKWL+vTPh71LSBrm/Y4/QDZBVCcYfmeTEEuoOYwlSy+G1StfJg+/Zy550u/3TATbm7qDbbMtg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/parser": "^7.29.8",+ "@babel/types": "^7.29.8",+ "@jridgewell/gen-mapping": "^0.3.12",+ "@jridgewell/trace-mapping": "^0.3.28",+ "jsesc": "^3.0.2"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-compilation-targets": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.29.7.tgz",+ "integrity": "sha512-wem6WaBj4NaVYVdNhLPPVacES6ZJ+KBBfSkTMD3YZxbP3rm3Di85tJU5ljaUNhaOynt+Aj0xruhYuzQBt8n71g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/compat-data": "^7.29.7",+ "@babel/helper-validator-option": "^7.29.7",+ "browserslist": "^4.24.0",+ "lru-cache": "^5.1.1",+ "semver": "^6.3.1"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-globals": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.29.7.tgz",+ "integrity": "sha512-3nQVUAtvkKH9zahfWgw96Jc/uFOmjACE1kQz82E2lqWmHBgjzbNlsC22nuQTfahmWeQtTq5nQ/4Nnd2A1wj4zA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-module-imports": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.29.7.tgz",+ "integrity": "sha512-ejHwrQQYcm9xnTivShn2IDOlIzInN34AXskvq9QicvCtEzq1Vzclu/tKF8Jq1Cg8JG2GL6/EmjgsCT7lXepE3g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/traverse": "^7.29.7",+ "@babel/types": "^7.29.7"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-module-transforms": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.29.7.tgz",+ "integrity": "sha512-UPUVSyXbOh627KiCIGQSgwWzGeBKLkaJ9PJEdrngIwMSzxLR4jS4+f1f1jb7VzBbg8nFLaYotvVPFCTqdrmTAg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-module-imports": "^7.29.7",+ "@babel/helper-validator-identifier": "^7.29.7",+ "@babel/traverse": "^7.29.7"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0"+ }+ },+ "node_modules/@babel/helper-plugin-utils": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.29.7.tgz",+ "integrity": "sha512-G7sHYigPY17oO5SYWnfD/0MTBwVR781S/JI643e/JhUYgVgWE/61SoW3NH9KWUKyKq5LVh3npif99Wkt6j86Jw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-string-parser": {+ "version": "7.29.11",+ "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.11.tgz",+ "integrity": "sha512-snZbO7MEDOof+hvNa97EjEY7qD7h2kwvQr5AJC3ZhQudKW5dnej6k3kP9NQV88hJwaS8vDqRLFo9rivLEhle2g==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-validator-identifier": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz",+ "integrity": "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-validator-option": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.29.7.tgz",+ "integrity": "sha512-N9ZErrD+yW5geCDtBqnOoxmR8+tNKiGuxKlDpuJxfsqpa2dFcexaziGAE/qoHLiDDreVNMupxGmSoNlyvsA3gw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helpers": {+ "version": "7.29.10",+ "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.10.tgz",+ "integrity": "sha512-EMCx3AGZ3WfAl6ht7AyQoPm2Lh+BGYEMdc4Q6Hf7uSCDOZFuLq44qNwL+iaim8VlyYhRAo4X43+weadK8ZB4Yg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/template": "^7.29.7",+ "@babel/types": "^7.29.8"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/parser": {+ "version": "7.29.11",+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.11.tgz",+ "integrity": "sha512-OZ6+oaK7GMyg3IfCpj8JOmn8n+w2rJbDT0LLfVDTLb1ZFeKDh3AiNELgCMUw175IJHSkLl74hG0M0VLsvx+gag==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/types": "^7.29.11"+ },+ "bin": {+ "parser": "bin/babel-parser.js"+ },+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/@babel/plugin-transform-react-jsx-self": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.29.7.tgz",+ "integrity": "sha512-TL0hMc9xzy86VD31nUiwzd5otRAcyEPcsegCxolO0PvcXuH1v0kECe/UIznYFihpkvU5wg/jk4v0TTEFfm53fw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.29.7"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "node_modules/@babel/plugin-transform-react-jsx-source": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.29.7.tgz",+ "integrity": "sha512-06IyK09H3wi4cGbhDBwp5gUGo0IKtnYa8tyTiephirPCK6fbobVGiXMMI5zLQ4aKEYP3wZ3ArU44o+8KMrSG/Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.29.7"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "node_modules/@babel/template": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.29.7.tgz",+ "integrity": "sha512-puq+Gf35oI24FeN11LkoUQFqv9uwNeWpxXZi/Ji3rRIoKAzKnxRaZ+Gkj0vKS9ZCiTESfng1N9LyOyXvo+m+Gg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/code-frame": "^7.29.7",+ "@babel/parser": "^7.29.7",+ "@babel/types": "^7.29.7"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/traverse": {+ "version": "7.29.10",+ "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.10.tgz",+ "integrity": "sha512-B3lYAs2nkKskbgQ1nfy8Ma9ao9Q1rntTAQHrzzyDuj+TSO+X3le6PfWwqDvodsb+OumE10eMFfuMCTQSQ5iuIQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/code-frame": "^7.29.7",+ "@babel/generator": "^7.29.8",+ "@babel/helper-globals": "^7.29.7",+ "@babel/parser": "^7.29.9",+ "@babel/template": "^7.29.7",+ "@babel/types": "^7.29.8",+ "debug": "^4.3.1"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/types": {+ "version": "7.29.11",+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.11.tgz",+ "integrity": "sha512-WCsemW40Cpc6gouC1SrY6PBaZ+oLRlEVY9XBvZBI7il/HyUrb2nJ505wE1MHEFyDZNnrWDEuy4jL50WVHfTTSQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-string-parser": "^7.29.11",+ "@babel/helper-validator-identifier": "^7.29.7"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@esbuild/aix-ppc64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz",+ "integrity": "sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "aix"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/android-arm": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.21.5.tgz",+ "integrity": "sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/android-arm64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.21.5.tgz",+ "integrity": "sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/android-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.21.5.tgz",+ "integrity": "sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/darwin-arm64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz",+ "integrity": "sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/darwin-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.21.5.tgz",+ "integrity": "sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/freebsd-arm64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.21.5.tgz",+ "integrity": "sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/freebsd-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.21.5.tgz",+ "integrity": "sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-arm": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.21.5.tgz",+ "integrity": "sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-arm64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.21.5.tgz",+ "integrity": "sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-ia32": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.21.5.tgz",+ "integrity": "sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-loong64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.21.5.tgz",+ "integrity": "sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-mips64el": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.21.5.tgz",+ "integrity": "sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==",+ "cpu": [+ "mips64el"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-ppc64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.21.5.tgz",+ "integrity": "sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-riscv64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.21.5.tgz",+ "integrity": "sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-s390x": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.21.5.tgz",+ "integrity": "sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==",+ "cpu": [+ "s390x"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.21.5.tgz",+ "integrity": "sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/netbsd-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.21.5.tgz",+ "integrity": "sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/openbsd-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.21.5.tgz",+ "integrity": "sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/sunos-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.21.5.tgz",+ "integrity": "sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "sunos"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/win32-arm64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.21.5.tgz",+ "integrity": "sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/win32-ia32": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.21.5.tgz",+ "integrity": "sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/win32-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.21.5.tgz",+ "integrity": "sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "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.6.0",+ "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz",+ "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==",+ "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/@napi-rs/lzma-linux-x64-gnu": {+ "version": "1.5.1",+ "resolved": "https://registry.npmjs.org/@napi-rs/lzma-linux-x64-gnu/-/lzma-linux-x64-gnu-1.5.1.tgz",+ "integrity": "sha512-oTXEIha4SsuXdTA4Iyskj0kpdx2yVXdhd75c2v3xGrHFfVMsbhTPZU/nMPL4sWKo4pBHm3aucLaqGlF696dTyQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^22.20 || ^24.12 || >=25"+ }+ },+ "node_modules/@nodelib/fs.scandir": {+ "version": "2.1.5",+ "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",+ "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@nodelib/fs.stat": "2.0.5",+ "run-parallel": "^1.1.9"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/@nodelib/fs.stat": {+ "version": "2.0.5",+ "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz",+ "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/@nodelib/fs.walk": {+ "version": "1.2.8",+ "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz",+ "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@nodelib/fs.scandir": "2.1.5",+ "fastq": "^1.6.0"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/@rolldown/pluginutils": {+ "version": "1.0.0-beta.27",+ "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-beta.27.tgz",+ "integrity": "sha512-+d0F4MKMCbeVUJwG96uQ4SgAznZNSq93I3V+9NHA4OpvqG8mRCpGdKmK8l/dl02h2CCDHwW2FqilnTyDcAnqjA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@rollup/rollup-android-arm-eabi": {+ "version": "4.65.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.65.1.tgz",+ "integrity": "sha512-5coxNSjqOI2J3NkVhlp3u+zGcyjnowQFsU9sg7MMz4UPXY4Dv63kFGLt7ConXz9CNq2i0yuOJZAF/2RMrgI2OA==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ]+ },+ "node_modules/@rollup/rollup-android-arm64": {+ "version": "4.65.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.65.1.tgz",+ "integrity": "sha512-K0HFf6XMB3IYs+jDZ1/RRhZaVOwxNXrl0n4MDEyGDjuK7+B6K/nDJp8DCBitO3S1sK/fzNxAf9QZAny4AIUPtg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ]+ },+ "node_modules/@rollup/rollup-darwin-arm64": {+ "version": "4.65.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.65.1.tgz",+ "integrity": "sha512-zkZrXYwNlIcSUmcwY2DpsaDHr0XjVUeQHCuSunG3eQD7/5Wn/DvI7OMUE8NRRweK87yG8ebJ1xGOzmwpMsbZQA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ]+ },+ "node_modules/@rollup/rollup-darwin-x64": {+ "version": "4.65.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.65.1.tgz",+ "integrity": "sha512-Zaed+R3cpkkA3aiNd7NO0GV5KFh/LVf8j6bGcoRdpoXkSm/mWH8M0oX2/3u/nyGcx/bHEovD9CzX+w9/gcpI4A==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ]+ },+ "node_modules/@rollup/rollup-freebsd-arm64": {+ "version": "4.65.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.65.1.tgz",+ "integrity": "sha512-h12p3WJWhyJ9kir0zqAPr0rKNmBzOWIjoaOMT9OULs9KZQZCeOMKd+mGSvERjd9VxJYShd3zIxtrVxkYz6BEVA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ]+ },+ "node_modules/@rollup/rollup-freebsd-x64": {+ "version": "4.65.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.65.1.tgz",+ "integrity": "sha512-yRBwh/5imKY4DydDulVtrjy8Jf7h7NQJUqZbgmZ3zFsCD9QqlnWvZ7RtEF+ecO1b+IukKjXlu5Bb9fehV3tIbg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm-gnueabihf": {+ "version": "4.65.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.65.1.tgz",+ "integrity": "sha512-1XuPiWYYaLE1UDOqhbKVOfsqxvfmFS/lYPSk92U1hEX1qRfSYH0hNeAlbxFIgjp4d6+YQmL95EPRgdvjbZEddA==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm-musleabihf": {+ "version": "4.65.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.65.1.tgz",+ "integrity": "sha512-Y3C5e55Yrf6p2r5rBcc4P9hFWVNi6oqWy/53I/AyCJJGlp3KRSpTP8eoUmVntchTbEnhgBgAgLO9flj9AvOdUw==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm64-gnu": {+ "version": "4.65.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.65.1.tgz",+ "integrity": "sha512-Itj6coSswkYPIcVLczObXmwdplHNQQxyfnK1ppBg4czDaX8RiEzLKqU7EMc64BiBuiDZEUS+M93ktM18rv5llw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm64-musl": {+ "version": "4.65.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.65.1.tgz",+ "integrity": "sha512-KeO8jTEqdrnhvcahufbimyMoI44vedRUp1bVz2QUnRX2vDm/hxzCPt5F8fERVD5fsHyTW/vXmCElT054VOSVOA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-loong64-gnu": {+ "version": "4.65.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.65.1.tgz",+ "integrity": "sha512-dDOz5VZZ+ZGnglpmET6VJefamWXFsgaVtuhSClf2/URZBp048jprD6z1hddsIMN6n1w+oUzGZEBp9u6Mlszsfg==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-loong64-musl": {+ "version": "4.65.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.65.1.tgz",+ "integrity": "sha512-JbfRKz8nJCuo8gn1Dqx8lQWEHw4qhZ3uRaHphw5vrSjnSptJTKTRC/bLKHh8QQMsEnhL4uq+bdg3tkiXbJ2q/A==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-ppc64-gnu": {+ "version": "4.65.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.65.1.tgz",+ "integrity": "sha512-3oQpe1q0emSeCAssVHMQdOz5fz3PBH5my/Fr0ZekV2UMNL4ZiRa1ciikYlGQXyDkeqseYYv1InwOY8YPqY7RIQ==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-ppc64-musl": {+ "version": "4.65.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.65.1.tgz",+ "integrity": "sha512-nNV3HHi23o1LtpGGwH+Bav4hqnc4+klQtC96tSvCfvql8bLlNFTnTFiGl/jai2nve3eEr/vT2ocuyf+h+eMnYQ==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-riscv64-gnu": {+ "version": "4.65.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.65.1.tgz",+ "integrity": "sha512-b5zab0FryBxuocuDeqOsYGAg2EzjKw4mKA6LjQXCyewXjGv/BXqACBsY2cO45xM4hV2weYtdjGThP2VB2ByAYg==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-riscv64-musl": {+ "version": "4.65.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.65.1.tgz",+ "integrity": "sha512-Rh08xZakiUxKNgI3hbgH9mivlx478lSqckS9s+Oc3/TX1VrAH3W8z/5wpJXR/v5VjqcJ/jJNVBg64PU1+iQsTQ==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-s390x-gnu": {+ "version": "4.65.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.65.1.tgz",+ "integrity": "sha512-qDgtS6juN3/k97y4kcD6XLFpXEo4f6CnG8lTOGYwlhrUYTrMyhN0WHdZCPAW5rqS0MqQG7qI7dxnjugt6QB39Q==",+ "cpu": [+ "s390x"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-x64-gnu": {+ "version": "4.65.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.65.1.tgz",+ "integrity": "sha512-44IKzBPqXXVm0kt1O+F5eW4juR5FyIxGNlFkpP8qwIDzucBsjM1HCbdYUQrQw8rU/g6HRl/tfBm0+Qq4H4Ro3w==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-x64-musl": {+ "version": "4.65.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.65.1.tgz",+ "integrity": "sha512-tvYWZ/h2PCHs558Xu7B6LptuRCV8lXV2xI75ONMcldII1m2zlFwuI4BJZi9M6rSMkYqcPLLtPUPrjyqfbzLOdg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-openbsd-x64": {+ "version": "4.65.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.65.1.tgz",+ "integrity": "sha512-gdyeucgZCnei3pXwadKVTEAOgRx0B+c847DUPR/PdOMmp3olhfkYo6r0J4PzRFZB5ZICZQTxntyvgmWH5xT7rg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ]+ },+ "node_modules/@rollup/rollup-openharmony-arm64": {+ "version": "4.65.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.65.1.tgz",+ "integrity": "sha512-Wf/NEKdn2SAL4Nvt8HyDtdkseWTwiLbZEOoNYnEaHkbso0B9eHO42vKnZh+OYsn+IMhAMcWcuIwPlBOgOXsUzg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openharmony"+ ]+ },+ "node_modules/@rollup/rollup-win32-arm64-msvc": {+ "version": "4.65.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.65.1.tgz",+ "integrity": "sha512-x9VSsDmsMsEWy4cr/mFeaEsXnVJ6Kc4NCAU/lCnwml3s7LQbZoa9+/qwc9etWHbuuDT5mYxdyyKUwo76njtjZw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rollup/rollup-win32-ia32-msvc": {+ "version": "4.65.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.65.1.tgz",+ "integrity": "sha512-RIDbiVvvLkN45mOFpbo6eYMgnuiBEB62BGR/0s4QJgGg2AvVxucDDNn67kpAcUoYyfmY8iX8/RifMcmxmmnejA==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rollup/rollup-win32-x64-gnu": {+ "version": "4.65.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.65.1.tgz",+ "integrity": "sha512-+KN8HIr88vN59JNxlrM2fMimzY43Y0lQB7+0xdVsFbvFCAA74CLKCdfzIHzzvndJryBc94Pm+MvwtukKjaS2ug==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rollup/rollup-win32-x64-msvc": {+ "version": "4.65.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.65.1.tgz",+ "integrity": "sha512-+Y1Sd49cSDq60UOl8/U2HI0ebUvnSl/hDhMHQn+ouw17yb8fYwMWIazzJ4JFpSkjPE7sj5NTNSX9IoyEqcFfyQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@tauri-apps/api": {+ "version": "2.12.4",+ "resolved": "https://registry.npmjs.org/@tauri-apps/api/-/api-2.12.4.tgz",+ "integrity": "sha512-pVmfis+4zT8H0Qhp3xPZx9Ju7kpzvA6rr/PSJPyuwfvucTQ8sVt61NYU9KMkK703UFlYadFmjKA4HhybOtN0gg==",+ "license": "Apache-2.0 OR MIT",+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/tauri"+ }+ },+ "node_modules/@tauri-apps/cli": {+ "version": "2.12.4",+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli/-/cli-2.12.4.tgz",+ "integrity": "sha512-JI9bHfudSRJikGOrjbXEm6RjzzvmKuLc+JixB1NE8hNzQkNlCCIC3pTES3uypkR9lxHrsbxzcnSwhI2IxBQphw==",+ "dev": true,+ "license": "Apache-2.0 OR MIT",+ "bin": {+ "tauri": "tauri.js"+ },+ "engines": {+ "node": ">= 10"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/tauri"+ },+ "optionalDependencies": {+ "@tauri-apps/cli-darwin-arm64": "2.12.4",+ "@tauri-apps/cli-darwin-x64": "2.12.4",+ "@tauri-apps/cli-linux-arm-gnueabihf": "2.12.4",+ "@tauri-apps/cli-linux-arm64-gnu": "2.12.4",+ "@tauri-apps/cli-linux-arm64-musl": "2.12.4",+ "@tauri-apps/cli-linux-riscv64-gnu": "2.12.4",+ "@tauri-apps/cli-linux-x64-gnu": "2.12.4",+ "@tauri-apps/cli-linux-x64-musl": "2.12.4",+ "@tauri-apps/cli-win32-arm64-msvc": "2.12.4",+ "@tauri-apps/cli-win32-ia32-msvc": "2.12.4",+ "@tauri-apps/cli-win32-x64-msvc": "2.12.4"+ }+ },+ "node_modules/@tauri-apps/cli-darwin-arm64": {+ "version": "2.12.4",+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-darwin-arm64/-/cli-darwin-arm64-2.12.4.tgz",+ "integrity": "sha512-OxqKSckIkoJ6vX2AjifIJpTasFC0Hbdoo7gEiCmAjauABO3U8m2MRsLWe+QTiBwDx1mIrvgA+rvI7tvDnbnHVg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "Apache-2.0 OR MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tauri-apps/cli-darwin-x64": {+ "version": "2.12.4",+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-darwin-x64/-/cli-darwin-x64-2.12.4.tgz",+ "integrity": "sha512-fz76/77wMMJOaaUN6n3CybRG0P/MTEjjqYk81mGPyhi9m6Ue5T+LWBnJP/AkPooNatBPI2vtulGqomyMJ44lCQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "Apache-2.0 OR MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tauri-apps/cli-linux-arm-gnueabihf": {+ "version": "2.12.4",+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm-gnueabihf/-/cli-linux-arm-gnueabihf-2.12.4.tgz",+ "integrity": "sha512-K0w8Bof6Lt8QKLAYhRy0yy36ZH5iA/35VuSOvnxyjvCUZ+A3JKsUTlALviH/sVgAlisaPzzmeJSH8XOn4Q2HBA==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "Apache-2.0 OR MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tauri-apps/cli-linux-arm64-gnu": {+ "version": "2.12.4",+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm64-gnu/-/cli-linux-arm64-gnu-2.12.4.tgz",+ "integrity": "sha512-j5rOnjmRUwWrm1oosf0zBYl4D+fqydgUROFCk0hvKZxvbTT8SOERes0QB7rBV/XWNy+kM6pCKzb3oSm2sRglzg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "Apache-2.0 OR MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tauri-apps/cli-linux-arm64-musl": {+ "version": "2.12.4",+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm64-musl/-/cli-linux-arm64-musl-2.12.4.tgz",+ "integrity": "sha512-aOue3Fy6Jb7+oWcfAVUsVHfeTybSCt2CZoU06aO4jv4d2Ks/KnaTPwMAK3CLEduGOvBLY1lbBBrIyomqLLH5Sg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "Apache-2.0 OR MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tauri-apps/cli-linux-riscv64-gnu": {+ "version": "2.12.4",+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-riscv64-gnu/-/cli-linux-riscv64-gnu-2.12.4.tgz",+ "integrity": "sha512-Fx6GShY/RvST+t6LMlTHAwd66+1tEaAAGrnU7cysVfaiRP1BKng5Vl6rVmO6rSLOA1Sp1dRzNYM4f0OWQGb7qA==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "Apache-2.0 OR MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tauri-apps/cli-linux-x64-gnu": {+ "version": "2.12.4",+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-x64-gnu/-/cli-linux-x64-gnu-2.12.4.tgz",+ "integrity": "sha512-tNzZSa79Z1nRpHxEpQ38lsAFpKlFlYvoXzjTV+lRRn/zSf3wrdUC3wnLcq2XEadchPu4ttK0zivhYzr+XGD19Q==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "Apache-2.0 OR MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tauri-apps/cli-linux-x64-musl": {+ "version": "2.12.4",+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-x64-musl/-/cli-linux-x64-musl-2.12.4.tgz",+ "integrity": "sha512-jmZ1pr0xEqUhuEusWtt9Yt+GF6lCnGHUmIL+KIknpbjK/XQ2qkhDBhaxK/JMHM2A8dAacVXCxXJk2EXpwhQUfA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "Apache-2.0 OR MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tauri-apps/cli-win32-arm64-msvc": {+ "version": "2.12.4",+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-arm64-msvc/-/cli-win32-arm64-msvc-2.12.4.tgz",+ "integrity": "sha512-fGo8pgEHZxdSYgZ/J98m1usJ7NHKmKbq7k6uT0x1rpOq6Bg2YVzzpaAblWk710f5LHYBJIL5QIFS5IrD+4gmTg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "Apache-2.0 OR MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tauri-apps/cli-win32-ia32-msvc": {+ "version": "2.12.4",+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-ia32-msvc/-/cli-win32-ia32-msvc-2.12.4.tgz",+ "integrity": "sha512-ezl8sQIcjYsye3TUnTH5VcWmWzccZASlQm7hlZt0dYyj1XD0qpVW47u2xYVrIKui0F8uQv/7QGZixdWiClBsbg==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "Apache-2.0 OR MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tauri-apps/cli-win32-x64-msvc": {+ "version": "2.12.4",+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-x64-msvc/-/cli-win32-x64-msvc-2.12.4.tgz",+ "integrity": "sha512-DJhDeCqjLDNMWYFy7ZS8cfeAHX2RK0RbQMLiA3bMVVkXRDJ4NBYiHriGqsUhsr9iG41aTb+dJGkFPmPw1gWwVw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "Apache-2.0 OR MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tauri-apps/plugin-autostart": {+ "version": "2.7.0",+ "resolved": "https://registry.npmjs.org/@tauri-apps/plugin-autostart/-/plugin-autostart-2.7.0.tgz",+ "integrity": "sha512-4uRq+rqKSAh6MWAxgk6FnUPigc8VMG8eDVYTLk3A7OfKs9sLVwfeM8kbUvzjpabRQvyl4zd9tfzXBTrrtuprsA==",+ "license": "MIT OR Apache-2.0",+ "dependencies": {+ "@tauri-apps/api": "^2.12.0"+ }+ },+ "node_modules/@tauri-apps/plugin-deep-link": {+ "version": "2.6.2",+ "resolved": "https://registry.npmjs.org/@tauri-apps/plugin-deep-link/-/plugin-deep-link-2.6.2.tgz",+ "integrity": "sha512-uMsF1VQt1OdYq3jDGsSBlBdtbTp6o7WYFYFnjiNuLfFpBvZsdH0XnolJoSzBOlTzhroROBUys/j1y1PQqdiMZA==",+ "license": "MIT OR Apache-2.0",+ "dependencies": {+ "@tauri-apps/api": "^2.12.0"+ }+ },+ "node_modules/@tauri-apps/plugin-dialog": {+ "version": "2.8.3",+ "resolved": "https://registry.npmjs.org/@tauri-apps/plugin-dialog/-/plugin-dialog-2.8.3.tgz",+ "integrity": "sha512-Hd/yBfk2R5v2MFrz/0VArSXeh8xKLLXGunqSiTtcHKn1zNZwaKujuA0VSwUvNfwC4hDoF1PveS+gBDNe3nHspw==",+ "license": "MIT OR Apache-2.0",+ "dependencies": {+ "@tauri-apps/api": "^2.12.0"+ }+ },+ "node_modules/@tauri-apps/plugin-log": {+ "version": "2.10.1",+ "resolved": "https://registry.npmjs.org/@tauri-apps/plugin-log/-/plugin-log-2.10.1.tgz",+ "integrity": "sha512-QYgxDunUZP+Cd3ev+8ItOc3Q6uUFkEhRHdTolxUtlC/8SGsc5IyVjGgFclprkAx736HUCUYfh2vqUr3qwNfTTw==",+ "license": "MIT OR Apache-2.0",+ "dependencies": {+ "@tauri-apps/api": "^2.12.0"+ }+ },+ "node_modules/@tauri-apps/plugin-notification": {+ "version": "2.7.0",+ "resolved": "https://registry.npmjs.org/@tauri-apps/plugin-notification/-/plugin-notification-2.7.0.tgz",+ "integrity": "sha512-kgdHCPSY/3GIi4gSWuLfd3y555U0kwzP0PmnUjT+sGhgO7RdAM6goFjDqayRaKC8yA5oEYi7w2NnA3oQxIjldw==",+ "license": "MIT OR Apache-2.0",+ "dependencies": {+ "@tauri-apps/api": "^2.12.0"+ }+ },+ "node_modules/@tauri-apps/plugin-opener": {+ "version": "2.7.2",+ "resolved": "https://registry.npmjs.org/@tauri-apps/plugin-opener/-/plugin-opener-2.7.2.tgz",+ "integrity": "sha512-LyybP1VSzTMQiaFYcsbAse47KpivlyXdLZMQzGLEnkgQacGESnpjAfFoQ6h5sqWgAdZDH9szYjPzHMpv0Sz+TQ==",+ "license": "MIT OR Apache-2.0",+ "dependencies": {+ "@tauri-apps/api": "^2.12.0"+ }+ },+ "node_modules/@tauri-apps/plugin-os": {+ "version": "2.4.0",+ "resolved": "https://registry.npmjs.org/@tauri-apps/plugin-os/-/plugin-os-2.4.0.tgz",+ "integrity": "sha512-XFQjntNNI3Vlqdy4WUGwiXX8DByzKVvoemAcUVkBm9NJPGmoDtII5i+vfuAzWaJfOE5cUJJLUDqXBnd4reSAIA==",+ "license": "MIT OR Apache-2.0",+ "dependencies": {+ "@tauri-apps/api": "^2.12.0"+ }+ },+ "node_modules/@tauri-apps/plugin-process": {+ "version": "2.4.0",+ "resolved": "https://registry.npmjs.org/@tauri-apps/plugin-process/-/plugin-process-2.4.0.tgz",+ "integrity": "sha512-GddrmsSLAYrLa/yTXlXK/YRDzUgYeeOnUXTbiyvJWkmI424RmDPD3FVLeqcon7rv6O6ZfhBilcrHWnSo7o6hIQ==",+ "license": "MIT OR Apache-2.0",+ "dependencies": {+ "@tauri-apps/api": "^2.12.0"+ }+ },+ "node_modules/@tauri-apps/plugin-store": {+ "version": "2.5.0",+ "resolved": "https://registry.npmjs.org/@tauri-apps/plugin-store/-/plugin-store-2.5.0.tgz",+ "integrity": "sha512-+ykjiQwMJCSk/U2enHA8peKBWgDKgrP7JfZnGwQpqzwA0nVtKTc0LCyxWr2whOrcQoQqtUdr9NVdDZpfKpT1Xw==",+ "license": "MIT OR Apache-2.0",+ "dependencies": {+ "@tauri-apps/api": "^2.12.0"+ }+ },+ "node_modules/@tauri-apps/plugin-updater": {+ "version": "2.14.0",+ "resolved": "https://registry.npmjs.org/@tauri-apps/plugin-updater/-/plugin-updater-2.14.0.tgz",+ "integrity": "sha512-gdylJ9tger4hkyOn24QZd6MNOKVo2Eh53iw5th2Qj1vKTR/+u4PIwJWuiis5hohYvobn6iOvlnALfrqIPSzh7Q==",+ "license": "MIT OR Apache-2.0",+ "dependencies": {+ "@tauri-apps/api": "^2.12.0"+ }+ },+ "node_modules/@tauri-apps/plugin-window-state": {+ "version": "2.5.0",+ "resolved": "https://registry.npmjs.org/@tauri-apps/plugin-window-state/-/plugin-window-state-2.5.0.tgz",+ "integrity": "sha512-ySI/32fpC1ZTslIZ00/wf9HujyDnkG3OPL16uuLjG53y1hTgjIJ9G2VPuOL1IV8GVr3xeF6lnr6h2T73HuGXow==",+ "license": "MIT OR Apache-2.0",+ "dependencies": {+ "@tauri-apps/api": "^2.12.0"+ }+ },+ "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.9",+ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz",+ "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/prop-types": {+ "version": "15.7.15",+ "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.15.tgz",+ "integrity": "sha512-F6bEyamV9jKGAFBEmlQnesRPGOQqS2+Uwi0Em15xenOxHaf2hv6L8YCVn3rPdPJOiJfPiCnLIRyvwVaqMY3MIw==",+ "devOptional": true,+ "license": "MIT"+ },+ "node_modules/@types/react": {+ "version": "18.3.31",+ "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.31.tgz",+ "integrity": "sha512-vfEqpXTvwT91yhmwdfouStN2hSKwTvyRs8qpLfADyrq/kxDw0hZM7Wk9Ug1FELj8hIby+S/+kQCSRFF32nv2Qw==",+ "devOptional": true,+ "license": "MIT",+ "dependencies": {+ "@types/prop-types": "*",+ "csstype": "^3.2.2"+ }+ },+ "node_modules/@types/react-dom": {+ "version": "18.3.7",+ "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.3.7.tgz",+ "integrity": "sha512-MEe3UeoENYVFXzoXEWsvcpg6ZvlrFNlOQ7EOsvhI3CfAXwzPfO8Qwuxd40nepsYKqyyVQnTdEfv68q91yLcKrQ==",+ "dev": true,+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "^18.0.0"+ }+ },+ "node_modules/@vitejs/plugin-react": {+ "version": "4.7.0",+ "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.7.0.tgz",+ "integrity": "sha512-gUu9hwfWvvEDBBmgtAowQCojwZmJ5mcLn3aufeCsitijs3+f2NsrPtlAWIR6OPiqljl96GVCUbLe0HyqIpVaoA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/core": "^7.28.0",+ "@babel/plugin-transform-react-jsx-self": "^7.27.1",+ "@babel/plugin-transform-react-jsx-source": "^7.27.1",+ "@rolldown/pluginutils": "1.0.0-beta.27",+ "@types/babel__core": "^7.20.5",+ "react-refresh": "^0.17.0"+ },+ "engines": {+ "node": "^14.18.0 || >=16.0.0"+ },+ "peerDependencies": {+ "vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0"+ }+ },+ "node_modules/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/anymatch": {+ "version": "3.1.3",+ "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz",+ "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "normalize-path": "^3.0.0",+ "picomatch": "^2.0.4"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/arg": {+ "version": "5.0.2",+ "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz",+ "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/autoprefixer": {+ "version": "10.6.1",+ "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.6.1.tgz",+ "integrity": "sha512-cL1Qz6ADZhcEbny/8HPfe99J6HhNoYtpX2LFLIbhgGE7Q1hlQVkYFdetDN7Id3KiQxhDrHwzlHr/YQCnZ8+xSA==",+ "dev": true,+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/postcss/"+ },+ {+ "type": "tidelift",+ "url": "https://tidelift.com/funding/github/npm/autoprefixer"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "browserslist": "^4.28.9",+ "caniuse-lite": "^1.0.30001810",+ "fraction.js": "^5.3.4",+ "picocolors": "^1.1.1",+ "postcss-value-parser": "^4.2.0"+ },+ "bin": {+ "autoprefixer": "bin/autoprefixer"+ },+ "engines": {+ "node": "^10 || ^12 || >=14"+ },+ "peerDependencies": {+ "postcss": "^8.1.0"+ }+ },+ "node_modules/baseline-browser-mapping": {+ "version": "2.11.33",+ "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.11.33.tgz",+ "integrity": "sha512-yiVKDX+qCMRKBE084lXvq9EcwFUhKZ2nU8TK1EQQuOgPNR/lmbGxXOeDdlGUqC2Zz11Cs9rk1d/8NfgBmlkt0w==",+ "dev": true,+ "license": "Apache-2.0",+ "bin": {+ "baseline-browser-mapping": "dist/cli.cjs"+ },+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/binary-extensions": {+ "version": "2.3.0",+ "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz",+ "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/braces": {+ "version": "3.0.3",+ "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz",+ "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "fill-range": "^7.1.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/browserslist": {+ "version": "4.29.4",+ "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.29.4.tgz",+ "integrity": "sha512-2TcbbiwXEq+N0kD36tykpCfyyQigUXmuwNQbnPp4Xk4PX9JOqVIKjJlIDjpH7uY6tmRGoAd+apeT1p60T8wsdA==",+ "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.11.29",+ "caniuse-lite": "^1.0.30001816",+ "electron-to-chromium": "^1.5.459",+ "node-releases": "^2.0.59",+ "update-browserslist-db": "^1.3.4"+ },+ "bin": {+ "browserslist": "cli.js"+ },+ "engines": {+ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"+ }+ },+ "node_modules/camelcase-css": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz",+ "integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/caniuse-lite": {+ "version": "1.0.30001819",+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001819.tgz",+ "integrity": "sha512-LFUqIIAwpzsIuevnKnsR9qnStBcgzPShTX61lBwN9uFkkf8o8zLiebEjbW8AYtZiF+1YKDWfdt/pWDtMuG8Xwg==",+ "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": "3.6.0",+ "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz",+ "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "anymatch": "~3.1.2",+ "braces": "~3.0.2",+ "glob-parent": "~5.1.2",+ "is-binary-path": "~2.1.0",+ "is-glob": "~4.0.1",+ "normalize-path": "~3.0.0",+ "readdirp": "~3.6.0"+ },+ "engines": {+ "node": ">= 8.10.0"+ },+ "funding": {+ "url": "https://paulmillr.com/funding/"+ },+ "optionalDependencies": {+ "fsevents": "~2.3.2"+ }+ },+ "node_modules/chokidar/node_modules/glob-parent": {+ "version": "5.1.2",+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",+ "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "is-glob": "^4.0.1"+ },+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/clsx": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz",+ "integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==",+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/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/convert-source-map": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",+ "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/cookie": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/cookie/-/cookie-1.1.1.tgz",+ "integrity": "sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==",+ "license": "MIT",+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/cssesc": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz",+ "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "cssesc": "bin/cssesc"+ },+ "engines": {+ "node": ">=4"+ }+ },+ "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==",+ "devOptional": 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/didyoumean": {+ "version": "1.2.2",+ "resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz",+ "integrity": "sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==",+ "dev": true,+ "license": "Apache-2.0"+ },+ "node_modules/dlv": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz",+ "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/electron-to-chromium": {+ "version": "1.5.464",+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.464.tgz",+ "integrity": "sha512-nRa65aFge40viPAKxMKULIY8tcXKwKboJWNn4RoKwyWXJ6SP7BnrDGKUTzc64818jIciH0PK7LSF8QzZes19GA==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/es-errors": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",+ "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/esbuild": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.21.5.tgz",+ "integrity": "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==",+ "dev": true,+ "hasInstallScript": true,+ "license": "MIT",+ "bin": {+ "esbuild": "bin/esbuild"+ },+ "engines": {+ "node": ">=12"+ },+ "optionalDependencies": {+ "@esbuild/aix-ppc64": "0.21.5",+ "@esbuild/android-arm": "0.21.5",+ "@esbuild/android-arm64": "0.21.5",+ "@esbuild/android-x64": "0.21.5",+ "@esbuild/darwin-arm64": "0.21.5",+ "@esbuild/darwin-x64": "0.21.5",+ "@esbuild/freebsd-arm64": "0.21.5",+ "@esbuild/freebsd-x64": "0.21.5",+ "@esbuild/linux-arm": "0.21.5",+ "@esbuild/linux-arm64": "0.21.5",+ "@esbuild/linux-ia32": "0.21.5",+ "@esbuild/linux-loong64": "0.21.5",+ "@esbuild/linux-mips64el": "0.21.5",+ "@esbuild/linux-ppc64": "0.21.5",+ "@esbuild/linux-riscv64": "0.21.5",+ "@esbuild/linux-s390x": "0.21.5",+ "@esbuild/linux-x64": "0.21.5",+ "@esbuild/netbsd-x64": "0.21.5",+ "@esbuild/openbsd-x64": "0.21.5",+ "@esbuild/sunos-x64": "0.21.5",+ "@esbuild/win32-arm64": "0.21.5",+ "@esbuild/win32-ia32": "0.21.5",+ "@esbuild/win32-x64": "0.21.5"+ }+ },+ "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/fast-glob": {+ "version": "3.3.3",+ "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz",+ "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@nodelib/fs.stat": "^2.0.2",+ "@nodelib/fs.walk": "^1.2.3",+ "glob-parent": "^5.1.2",+ "merge2": "^1.3.0",+ "micromatch": "^4.0.8"+ },+ "engines": {+ "node": ">=8.6.0"+ }+ },+ "node_modules/fast-glob/node_modules/glob-parent": {+ "version": "5.1.2",+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",+ "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "is-glob": "^4.0.1"+ },+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/fastq": {+ "version": "1.20.3",+ "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.20.3.tgz",+ "integrity": "sha512-XKv5nnLs6nLF71NgiKJLIZFLkPyIEuOselLG7ujZnGrRfQK8HpvY+WqKhAJUAdLomwVHErVS4LfxFlPq0/FTAw==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "reusify": "^1.0.4"+ }+ },+ "node_modules/fill-range": {+ "version": "7.1.1",+ "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz",+ "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "to-regex-range": "^5.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/fraction.js": {+ "version": "5.3.4",+ "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-5.3.4.tgz",+ "integrity": "sha512-1X1NTtiJphryn/uLQz3whtY6jK3fTqoE3ohKs0tT+Ujr1W59oopxmoEh7Lu5p6vBaPbgoM0bzveAW4Qi5RyWDQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "*"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/rawify"+ }+ },+ "node_modules/framer-motion": {+ "version": "12.43.0",+ "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-12.43.0.tgz",+ "integrity": "sha512-1eaL3RvR/kAlbG7UYcpMptEyzPoENO0c6w7ZnB3/hh2vSAz/6uGAFn6fdoqTBguNstf3MsFhJHsD/0DHiclG+g==",+ "license": "MIT",+ "dependencies": {+ "motion-dom": "^12.43.0",+ "motion-utils": "^12.39.0",+ "tslib": "^2.4.0"+ },+ "peerDependencies": {+ "@emotion/is-prop-valid": "*",+ "react": "^18.0.0 || ^19.0.0",+ "react-dom": "^18.0.0 || ^19.0.0"+ },+ "peerDependenciesMeta": {+ "@emotion/is-prop-valid": {+ "optional": true+ },+ "react": {+ "optional": true+ },+ "react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/fsevents": {+ "version": "2.3.3",+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",+ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",+ "dev": true,+ "hasInstallScript": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"+ }+ },+ "node_modules/function-bind": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",+ "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",+ "dev": true,+ "license": "MIT",+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "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/glob-parent": {+ "version": "6.0.2",+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",+ "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "is-glob": "^4.0.3"+ },+ "engines": {+ "node": ">=10.13.0"+ }+ },+ "node_modules/hasown": {+ "version": "2.0.4",+ "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz",+ "integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "function-bind": "^1.1.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/is-binary-path": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz",+ "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "binary-extensions": "^2.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/is-core-module": {+ "version": "2.17.0",+ "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.17.0.tgz",+ "integrity": "sha512-J/vG0zBCbIKOQFfufSwyXdMrsohyJIUNkrnmo6WZGzoM7tr/lsbfW5b2BvisL6zsyMzK9UxV9L6c7AoFbyXHOA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "hasown": "^2.0.4"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-extglob": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",+ "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/is-glob": {+ "version": "4.0.3",+ "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",+ "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "is-extglob": "^2.1.1"+ },+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/is-number": {+ "version": "7.0.0",+ "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",+ "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.12.0"+ }+ },+ "node_modules/jiti": {+ "version": "1.21.7",+ "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.21.7.tgz",+ "integrity": "sha512-/imKNG4EbWNrVjoNC/1H5/9GFy+tqjGBHCaSsN+P2RnPqjsLmv6UD3Ej+Kj8nBWaRAwyk7kK5ZUc+OEatnTR3A==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "jiti": "bin/jiti.js"+ }+ },+ "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==",+ "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.4",+ "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.4.tgz",+ "integrity": "sha512-zJZyBmQhArDRefuWTypZxwDpFDIYmrj8ypSBvwGD5P13Y95s6DjzKgu4DVdGbeQa5PDEsAOCAPNk4X+QOR006w==",+ "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/loose-envify": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",+ "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==",+ "license": "MIT",+ "dependencies": {+ "js-tokens": "^3.0.0 || ^4.0.0"+ },+ "bin": {+ "loose-envify": "cli.js"+ }+ },+ "node_modules/lru-cache": {+ "version": "5.1.1",+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz",+ "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "yallist": "^3.0.2"+ }+ },+ "node_modules/lucide-react": {+ "version": "0.511.0",+ "resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-0.511.0.tgz",+ "integrity": "sha512-VK5a2ydJ7xm8GvBeKLS9mu1pVK6ucef9780JVUjw6bAjJL/QXnd4Y0p7SPeOUMC27YhzNCZvm5d/QX0Tp3rc0w==",+ "license": "ISC",+ "peerDependencies": {+ "react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0"+ }+ },+ "node_modules/merge2": {+ "version": "1.4.1",+ "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz",+ "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/micromatch": {+ "version": "4.0.8",+ "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz",+ "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "braces": "^3.0.3",+ "picomatch": "^2.3.1"+ },+ "engines": {+ "node": ">=8.6"+ }+ },+ "node_modules/motion-dom": {+ "version": "12.43.0",+ "resolved": "https://registry.npmjs.org/motion-dom/-/motion-dom-12.43.0.tgz",+ "integrity": "sha512-azKON4d9S65PEoFUiQTMTgPheEmzf2QngdRc50AKfJp9Q9mmcBVw22c8eMq9k8kxOFHdL7+WZY7N/5F/lwiDag==",+ "license": "MIT",+ "dependencies": {+ "motion-utils": "^12.39.0"+ }+ },+ "node_modules/motion-utils": {+ "version": "12.39.0",+ "resolved": "https://registry.npmjs.org/motion-utils/-/motion-utils-12.39.0.tgz",+ "integrity": "sha512-8nadJAJjTtqRkmRF36FoJTrywK9nnFmnPwnSMyxaOCU7GDjN9RTMJIxx9De8ErM+vpPhMccr/6fo5WciyQLnMQ==",+ "license": "MIT"+ },+ "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.20",+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.20.tgz",+ "integrity": "sha512-uKdg2G3GNCKQn9byYOpxbGqrT2fGO5KRt5J/8b3pok8rT6qxGWF6hxMyJiEYtAf+FVyYuD9hRaDqX5uPFYJ4ZQ==",+ "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.60",+ "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.60.tgz",+ "integrity": "sha512-OmO8+GM1JUZqXET720VrJCwkjUCXmCMQm0Z3UDDRbfNLHS4NEAvY60j5jiFv0tkKw2PNNlqOLhahVmwJIOLDIQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/normalize-path": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",+ "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "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/object-hash": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz",+ "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/path-parse": {+ "version": "1.0.7",+ "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz",+ "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==",+ "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": "2.3.2",+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz",+ "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8.6"+ },+ "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/postcss": {+ "version": "8.5.31",+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.31.tgz",+ "integrity": "sha512-YUbWYCgErwnMAVkjUnYa+KlMBzGpHwiIt/DE7f0G33AuX2LH9UcTk6KgWxd3zRU+pN3u/C+Xl3EnMLM4Hea7Sg==",+ "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.20",+ "picocolors": "^1.1.1",+ "source-map-js": "^1.2.2"+ },+ "engines": {+ "node": "^10 || ^12 || >=14"+ }+ },+ "node_modules/postcss-import": {+ "version": "15.1.0",+ "resolved": "https://registry.npmjs.org/postcss-import/-/postcss-import-15.1.0.tgz",+ "integrity": "sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "postcss-value-parser": "^4.0.0",+ "read-cache": "^1.0.0",+ "resolve": "^1.1.7"+ },+ "engines": {+ "node": ">=14.0.0"+ },+ "peerDependencies": {+ "postcss": "^8.0.0"+ }+ },+ "node_modules/postcss-js": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/postcss-js/-/postcss-js-4.1.0.tgz",+ "integrity": "sha512-oIAOTqgIo7q2EOwbhb8UalYePMvYoIeRY2YKntdpFQXNosSu3vLrniGgmH9OKs/qAkfoj5oB3le/7mINW1LCfw==",+ "dev": true,+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/postcss/"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "camelcase-css": "^2.0.1"+ },+ "engines": {+ "node": "^12 || ^14 || >= 16"+ },+ "peerDependencies": {+ "postcss": "^8.4.21"+ }+ },+ "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/postcss-nested": {+ "version": "6.2.0",+ "resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-6.2.0.tgz",+ "integrity": "sha512-HQbt28KulC5AJzG+cZtj9kvKB93CFCdLvog1WFLf1D+xmMvPGlBstkpTEZfK5+AN9hfJocyBFCNiqyS48bpgzQ==",+ "dev": true,+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/postcss/"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "postcss-selector-parser": "^6.1.1"+ },+ "engines": {+ "node": ">=12.0"+ },+ "peerDependencies": {+ "postcss": "^8.2.14"+ }+ },+ "node_modules/postcss-selector-parser": {+ "version": "6.1.5",+ "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.5.tgz",+ "integrity": "sha512-TEHFzb5KRDKaOgJ4TYE+0jyJtFbjLvkdVOu0fZ2b6MTWzoqZd4Le+61aEppWkvTlYePgOX4ATL1wsAIPMLTw6Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "cssesc": "^3.0.0",+ "util-deprecate": "^1.0.2"+ },+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/postcss-value-parser": {+ "version": "4.2.0",+ "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz",+ "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/queue-microtask": {+ "version": "1.2.3",+ "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz",+ "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ],+ "license": "MIT"+ },+ "node_modules/react": {+ "version": "18.3.1",+ "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz",+ "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==",+ "license": "MIT",+ "dependencies": {+ "loose-envify": "^1.1.0"+ },+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/react-dom": {+ "version": "18.3.1",+ "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz",+ "integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==",+ "license": "MIT",+ "dependencies": {+ "loose-envify": "^1.1.0",+ "scheduler": "^0.23.2"+ },+ "peerDependencies": {+ "react": "^18.3.1"+ }+ },+ "node_modules/react-refresh": {+ "version": "0.17.0",+ "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.17.0.tgz",+ "integrity": "sha512-z6F7K9bV85EfseRCp2bzrpyQ0Gkw1uLoCel9XBVWPg/TjRj94SkJzUTGfOa4bs7iJvBWtQG0Wq7wnI0syw3EBQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/react-router": {+ "version": "7.18.4",+ "resolved": "https://registry.npmjs.org/react-router/-/react-router-7.18.4.tgz",+ "integrity": "sha512-PUPQcMhMGRAslLcvtlPz/kmzBEWPhLdgLFrL7pLNepBL6dX0lWj4WD2cUYVgYCuT3jxvghYFg81cDTj44DhetQ==",+ "license": "MIT",+ "dependencies": {+ "cookie": "^1.0.1",+ "set-cookie-parser": "^2.6.0"+ },+ "engines": {+ "node": ">=20.0.0"+ },+ "peerDependencies": {+ "react": ">=18",+ "react-dom": ">=18"+ },+ "peerDependenciesMeta": {+ "react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/react-router-dom": {+ "version": "7.18.4",+ "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-7.18.4.tgz",+ "integrity": "sha512-yrfmJHIpDG7taCpqKjT1G5B6q3O2K+RN8/fgNf0lTjCwiPbQ0ei6vXX9ZjQR+7ld8Tr7Z5xmyMnZ8YJrphWQUw==",+ "license": "MIT",+ "dependencies": {+ "react-router": "7.18.4"+ },+ "engines": {+ "node": ">=20.0.0"+ },+ "peerDependencies": {+ "react": ">=18",+ "react-dom": ">=18"+ }+ },+ "node_modules/read-cache": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.2.tgz",+ "integrity": "sha512-/peqiBB/n07gQGLsWaHho3WfvUyRscw0gYTsEFMhrIe/nWLkYaf5SbKYjGYqtRV3aPwykJgF2VEMo1ac4bnsGA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/readdirp": {+ "version": "3.6.0",+ "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz",+ "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "picomatch": "^2.2.1"+ },+ "engines": {+ "node": ">=8.10.0"+ }+ },+ "node_modules/resolve": {+ "version": "1.22.13",+ "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.13.tgz",+ "integrity": "sha512-Dj/cW9zBV2aRj6XzCxuGIs3ESZKv02jixne3q6jFZYZ3/Tg09gHHviSMDL4kObh9pqSahdRHEnDoaP2gn8YLhA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0",+ "is-core-module": "^2.17.0",+ "path-parse": "^1.0.7",+ "supports-preserve-symlinks-flag": "^1.0.0"+ },+ "bin": {+ "resolve": "bin/resolve"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/reusify": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz",+ "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "iojs": ">=1.0.0",+ "node": ">=0.10.0"+ }+ },+ "node_modules/rollup": {+ "version": "4.65.1",+ "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.65.1.tgz",+ "integrity": "sha512-HzD4IdphaPMvuAacnL/vtoq5B8FwqewKvxTtqYibWvP6VDyZ+UsTtlw5F8HIOIIpLQAkN2NOP/0sM3puo9xN/A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/estree": "1.0.9"+ },+ "bin": {+ "rollup": "dist/bin/rollup"+ },+ "engines": {+ "node": ">=18.0.0",+ "npm": ">=8.0.0"+ },+ "optionalDependencies": {+ "@napi-rs/lzma-linux-x64-gnu": "1.5.1",+ "@rollup/rollup-android-arm-eabi": "4.65.1",+ "@rollup/rollup-android-arm64": "4.65.1",+ "@rollup/rollup-darwin-arm64": "4.65.1",+ "@rollup/rollup-darwin-x64": "4.65.1",+ "@rollup/rollup-freebsd-arm64": "4.65.1",+ "@rollup/rollup-freebsd-x64": "4.65.1",+ "@rollup/rollup-linux-arm-gnueabihf": "4.65.1",+ "@rollup/rollup-linux-arm-musleabihf": "4.65.1",+ "@rollup/rollup-linux-arm64-gnu": "4.65.1",+ "@rollup/rollup-linux-arm64-musl": "4.65.1",+ "@rollup/rollup-linux-loong64-gnu": "4.65.1",+ "@rollup/rollup-linux-loong64-musl": "4.65.1",+ "@rollup/rollup-linux-ppc64-gnu": "4.65.1",+ "@rollup/rollup-linux-ppc64-musl": "4.65.1",+ "@rollup/rollup-linux-riscv64-gnu": "4.65.1",+ "@rollup/rollup-linux-riscv64-musl": "4.65.1",+ "@rollup/rollup-linux-s390x-gnu": "4.65.1",+ "@rollup/rollup-linux-x64-gnu": "4.65.1",+ "@rollup/rollup-linux-x64-musl": "4.65.1",+ "@rollup/rollup-openbsd-x64": "4.65.1",+ "@rollup/rollup-openharmony-arm64": "4.65.1",+ "@rollup/rollup-win32-arm64-msvc": "4.65.1",+ "@rollup/rollup-win32-ia32-msvc": "4.65.1",+ "@rollup/rollup-win32-x64-gnu": "4.65.1",+ "@rollup/rollup-win32-x64-msvc": "4.65.1",+ "fsevents": "~2.3.2"+ }+ },+ "node_modules/run-parallel": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz",+ "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "queue-microtask": "^1.2.2"+ }+ },+ "node_modules/scheduler": {+ "version": "0.23.2",+ "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz",+ "integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==",+ "license": "MIT",+ "dependencies": {+ "loose-envify": "^1.1.0"+ }+ },+ "node_modules/semver": {+ "version": "6.3.1",+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",+ "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",+ "dev": true,+ "license": "ISC",+ "bin": {+ "semver": "bin/semver.js"+ }+ },+ "node_modules/set-cookie-parser": {+ "version": "2.7.3",+ "resolved": "https://registry.npmjs.org/set-cookie-parser/-/set-cookie-parser-2.7.3.tgz",+ "integrity": "sha512-irZHtTqurLna57KQG/s+fzOwv/J6XSH4cs8M/vsrY3uCaQ3S6+QJguAH0WdN47SXlk82voMZ4naWMQf8fdEoIg==",+ "license": "MIT"+ },+ "node_modules/source-map-js": {+ "version": "1.2.2",+ "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.2.tgz",+ "integrity": "sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==",+ "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/supports-preserve-symlinks-flag": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz",+ "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/tailwind-merge": {+ "version": "3.7.0",+ "resolved": "https://registry.npmjs.org/tailwind-merge/-/tailwind-merge-3.7.0.tgz",+ "integrity": "sha512-XPPUyAc+cvspz3lHTcR/QgPfW2A0lv/xQNIjX3HGhLR+Nq2lHaLq5MtTesHn8GUr3W3DguT2KT5x3NVgRtYwmA==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/dcastil"+ }+ },+ "node_modules/tailwindcss": {+ "version": "3.4.19",+ "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.4.19.tgz",+ "integrity": "sha512-3ofp+LL8E+pK/JuPLPggVAIaEuhvIz4qNcf3nA1Xn2o/7fb7s/TYpHhwGDv1ZU3PkBluUVaF8PyCHcm48cKLWQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@alloc/quick-lru": "^5.2.0",+ "arg": "^5.0.2",+ "chokidar": "^3.6.0",+ "didyoumean": "^1.2.2",+ "dlv": "^1.1.3",+ "fast-glob": "^3.3.2",+ "glob-parent": "^6.0.2",+ "is-glob": "^4.0.3",+ "jiti": "^1.21.7",+ "lilconfig": "^3.1.3",+ "micromatch": "^4.0.8",+ "normalize-path": "^3.0.0",+ "object-hash": "^3.0.0",+ "picocolors": "^1.1.1",+ "postcss": "^8.4.47",+ "postcss-import": "^15.1.0",+ "postcss-js": "^4.0.1",+ "postcss-load-config": "^4.0.2 || ^5.0 || ^6.0",+ "postcss-nested": "^6.2.0",+ "postcss-selector-parser": "^6.1.2",+ "resolve": "^1.22.8",+ "sucrase": "^3.35.0"+ },+ "bin": {+ "tailwind": "lib/cli.js",+ "tailwindcss": "lib/cli.js"+ },+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "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/tinyglobby": {+ "version": "0.2.17",+ "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz",+ "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==",+ "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/tinyglobby/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/tinyglobby/node_modules/picomatch": {+ "version": "4.0.7",+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz",+ "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/jonschlinkert"+ }+ },+ "node_modules/to-regex-range": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",+ "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "is-number": "^7.0.0"+ },+ "engines": {+ "node": ">=8.0"+ }+ },+ "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/tslib": {+ "version": "2.8.1",+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",+ "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",+ "license": "0BSD"+ },+ "node_modules/typescript": {+ "version": "5.9.3",+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",+ "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",+ "dev": true,+ "license": "Apache-2.0",+ "bin": {+ "tsc": "bin/tsc",+ "tsserver": "bin/tsserver"+ },+ "engines": {+ "node": ">=14.17"+ }+ },+ "node_modules/update-browserslist-db": {+ "version": "1.3.4",+ "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.3.4.tgz",+ "integrity": "sha512-t8wonIOdQyOjtPd2VktlBu6QjTVTks6v8bSi7kd0r2Vll8TK1JYDZtRRdbmCHOAMphkZgrzK+L+vXK4pyZ8t4A==",+ "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/util-deprecate": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",+ "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/vite": {+ "version": "5.4.21",+ "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.21.tgz",+ "integrity": "sha512-o5a9xKjbtuhY6Bi5S3+HvbRERmouabWbyUcpXXUA1u+GNUKoROi9byOJ8M0nHbHYHkYICiMlqxkg1KkYmm25Sw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "esbuild": "^0.21.3",+ "postcss": "^8.4.43",+ "rollup": "^4.20.0"+ },+ "bin": {+ "vite": "bin/vite.js"+ },+ "engines": {+ "node": "^18.0.0 || >=20.0.0"+ },+ "funding": {+ "url": "https://github.com/vitejs/vite?sponsor=1"+ },+ "optionalDependencies": {+ "fsevents": "~2.3.3"+ },+ "peerDependencies": {+ "@types/node": "^18.0.0 || >=20.0.0",+ "less": "*",+ "lightningcss": "^1.21.0",+ "sass": "*",+ "sass-embedded": "*",+ "stylus": "*",+ "sugarss": "*",+ "terser": "^5.4.0"+ },+ "peerDependenciesMeta": {+ "@types/node": {+ "optional": true+ },+ "less": {+ "optional": true+ },+ "lightningcss": {+ "optional": true+ },+ "sass": {+ "optional": true+ },+ "sass-embedded": {+ "optional": true+ },+ "stylus": {+ "optional": true+ },+ "sugarss": {+ "optional": true+ },+ "terser": {+ "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"+ },+ "node_modules/zustand": {+ "version": "5.0.16",+ "resolved": "https://registry.npmjs.org/zustand/-/zustand-5.0.16.tgz",+ "integrity": "sha512-Uv7e327ihlCfayfja3hDc0M64Upev1LWBKpRobdK4NyovDDPeeX4imWXc/wzC1yc6fkYPoAY/ncKVPAs2jrtQw==",+ "license": "MIT",+ "engines": {+ "node": ">=12.20.0"+ },+ "peerDependencies": {+ "@types/react": ">=18.0.0",+ "immer": ">=9.0.6",+ "react": ">=18.0.0",+ "use-sync-external-store": ">=1.2.0"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "immer": {+ "optional": true+ },+ "react": {+ "optional": true+ },+ "use-sync-external-store": {+ "optional": true+ }+ }+ }+ }+}diff --git a/apps/desktop/package.json b/apps/desktop/package.jsonnew file mode 100644index 00000000..1e575377--- /dev/null+++ b/apps/desktop/package.json@@ -0,0 +1,50 @@+{+ "name": "mercury-desktop",+ "private": true,+ "version": "0.1.0",+ "description": "Mercury Desktop — native shell for the Mercury agent runtime",+ "type": "module",+ "scripts": {+ "dev": "vite",+ "build": "tsc --noEmit && vite build",+ "preview": "vite preview",+ "typecheck": "tsc --noEmit",+ "tauri": "tauri",+ "desktop:dev": "tauri dev",+ "desktop:build": "tauri build",+ "icons": "tauri icon src-tauri/icons/source.png"+ },+ "dependencies": {+ "@tauri-apps/api": "^2.12.4",+ "@tauri-apps/plugin-autostart": "^2.7.0",+ "@tauri-apps/plugin-deep-link": "^2.6.2",+ "@tauri-apps/plugin-dialog": "^2.8.3",+ "@tauri-apps/plugin-log": "^2.10.1",+ "@tauri-apps/plugin-notification": "^2.7.0",+ "@tauri-apps/plugin-opener": "^2.7.2",+ "@tauri-apps/plugin-os": "^2.4.0",+ "@tauri-apps/plugin-process": "^2.4.0",+ "@tauri-apps/plugin-store": "^2.5.0",+ "@tauri-apps/plugin-updater": "^2.14.0",+ "@tauri-apps/plugin-window-state": "^2.5.0",+ "clsx": "^2.1.1",+ "framer-motion": "^12.12.1",+ "lucide-react": "^0.511.0",+ "react": "^18.3.1",+ "react-dom": "^18.3.1",+ "react-router-dom": "^7.6.1",+ "tailwind-merge": "^3.3.0",+ "zustand": "^5.0.5"+ },+ "devDependencies": {+ "@tauri-apps/cli": "^2.12.4",+ "@types/react": "^18.3.28",+ "@types/react-dom": "^18.3.7",+ "@vitejs/plugin-react": "^4.5.2",+ "autoprefixer": "^10.4.21",+ "postcss": "^8.5.4",+ "tailwindcss": "^3.4.17",+ "typescript": "^5.7.0",+ "vite": "^5.4.19"+ }+}diff --git a/apps/desktop/postcss.config.js b/apps/desktop/postcss.config.jsnew file mode 100644index 00000000..2aa7205d--- /dev/null+++ b/apps/desktop/postcss.config.js@@ -0,0 +1,6 @@+export default {+ plugins: {+ tailwindcss: {},+ autoprefixer: {},+ },+};diff --git a/apps/desktop/public/logo-dark.png b/apps/desktop/public/logo-dark.pngnew file mode 100644index 00000000..d115713eBinary files /dev/null and b/apps/desktop/public/logo-dark.png differdiff --git a/apps/desktop/public/logo-full-dark.png b/apps/desktop/public/logo-full-dark.pngnew file mode 100644index 00000000..fb48131aBinary files /dev/null and b/apps/desktop/public/logo-full-dark.png differdiff --git a/apps/desktop/public/logo-full-light.png b/apps/desktop/public/logo-full-light.pngnew file mode 100644index 00000000..4a768f28Binary files /dev/null and b/apps/desktop/public/logo-full-light.png differdiff --git a/apps/desktop/public/logo-light.png b/apps/desktop/public/logo-light.pngnew file mode 100644index 00000000..3cb6ba05Binary files /dev/null and b/apps/desktop/public/logo-light.png differdiff --git a/apps/desktop/src-tauri/Cargo.toml b/apps/desktop/src-tauri/Cargo.tomlnew file mode 100644index 00000000..90039965--- /dev/null+++ b/apps/desktop/src-tauri/Cargo.toml@@ -0,0 +1,44 @@+[package]+name = "mercury-desktop"+version = "0.1.0"+description = "Mercury Desktop — native shell for the Mercury agent runtime"+authors = ["Cosmic Stack"]+license = "MIT"+edition = "2021"+rust-version = "1.80"+publish = false++[lib]+name = "mercury_desktop_lib"+crate-type = ["staticlib", "cdylib", "rlib"]++[build-dependencies]+tauri-build = { version = "2.7", features = [] }++[dependencies]+tauri = { version = "2.12", features = ["tray-icon", "image-png"] }+tauri-plugin-single-instance = { version = "2.5", features = ["deep-link"] }+tauri-plugin-window-state = "2.5"+tauri-plugin-store = "2.5"+tauri-plugin-notification = "2.7"+tauri-plugin-updater = "2.14"+tauri-plugin-autostart = "2.7"+tauri-plugin-deep-link = "2.6"+tauri-plugin-opener = "2.7"+tauri-plugin-os = "2.4"+tauri-plugin-process = "2.4"+tauri-plugin-dialog = "2.8"+tauri-plugin-log = "2.10"+# OS keychain for device tokens: Keychain, Credential Manager, Secret Service.+keyring = { version = "3", features = ["apple-native", "windows-native", "sync-secret-service", "crypto-rust"] }+serde = { version = "1", features = ["derive"] }+serde_json = "1"+dirs = "6"+log = "0.4"++[profile.release]+codegen-units = 1+lto = true+opt-level = "s"+panic = "abort"+strip = truediff --git a/apps/desktop/src-tauri/build.rs b/apps/desktop/src-tauri/build.rsnew file mode 100644index 00000000..d860e1e6--- /dev/null+++ b/apps/desktop/src-tauri/build.rs@@ -0,0 +1,3 @@+fn main() {+ tauri_build::build()+}diff --git a/apps/desktop/src-tauri/capabilities/default.json b/apps/desktop/src-tauri/capabilities/default.jsonnew file mode 100644index 00000000..8d3c8f59--- /dev/null+++ b/apps/desktop/src-tauri/capabilities/default.json@@ -0,0 +1,28 @@+{+ "$schema": "../gen/schemas/desktop-schema.json",+ "identifier": "default",+ "description": "What the main window may ask the native side for.",+ "windows": ["main"],+ "permissions": [+ "core:default",+ "core:window:allow-show",+ "core:window:allow-hide",+ "core:window:allow-set-focus",+ "core:window:allow-minimize",+ "core:window:allow-unminimize",+ "core:window:allow-start-dragging",+ "core:app:allow-version",+ "core:app:allow-name",+ "store:default",+ "notification:default",+ "updater:default",+ "autostart:default",+ "deep-link:default",+ "opener:default",+ "os:default",+ "process:default",+ "dialog:default",+ "log:default",+ "window-state:default"+ ]+}diff --git a/apps/desktop/src-tauri/icons/128x128.png b/apps/desktop/src-tauri/icons/128x128.pngnew file mode 100644index 00000000..8d56ef05Binary files /dev/null and b/apps/desktop/src-tauri/icons/128x128.png differdiff --git a/apps/desktop/src-tauri/icons/[email protected] b/apps/desktop/src-tauri/icons/[email protected]new file mode 100644index 00000000..7e65db5aBinary files /dev/null and b/apps/desktop/src-tauri/icons/[email protected] differdiff --git a/apps/desktop/src-tauri/icons/32x32.png b/apps/desktop/src-tauri/icons/32x32.pngnew file mode 100644index 00000000..483b9723Binary files /dev/null and b/apps/desktop/src-tauri/icons/32x32.png differdiff --git a/apps/desktop/src-tauri/icons/64x64.png b/apps/desktop/src-tauri/icons/64x64.pngnew file mode 100644index 00000000..cbd02683Binary files /dev/null and b/apps/desktop/src-tauri/icons/64x64.png differdiff --git a/apps/desktop/src-tauri/icons/Square107x107Logo.png b/apps/desktop/src-tauri/icons/Square107x107Logo.pngnew file mode 100644index 00000000..ca201e86Binary files /dev/null and b/apps/desktop/src-tauri/icons/Square107x107Logo.png differdiff --git a/apps/desktop/src-tauri/icons/Square142x142Logo.png b/apps/desktop/src-tauri/icons/Square142x142Logo.pngnew file mode 100644index 00000000..e54c7ea2Binary files /dev/null and b/apps/desktop/src-tauri/icons/Square142x142Logo.png differdiff --git a/apps/desktop/src-tauri/icons/Square150x150Logo.png b/apps/desktop/src-tauri/icons/Square150x150Logo.pngnew file mode 100644index 00000000..85c66ce8Binary files /dev/null and b/apps/desktop/src-tauri/icons/Square150x150Logo.png differdiff --git a/apps/desktop/src-tauri/icons/Square284x284Logo.png b/apps/desktop/src-tauri/icons/Square284x284Logo.pngnew file mode 100644index 00000000..09004fe1Binary files /dev/null and b/apps/desktop/src-tauri/icons/Square284x284Logo.png differdiff --git a/apps/desktop/src-tauri/icons/Square30x30Logo.png b/apps/desktop/src-tauri/icons/Square30x30Logo.pngnew file mode 100644index 00000000..1a9f254eBinary files /dev/null and b/apps/desktop/src-tauri/icons/Square30x30Logo.png differdiff --git a/apps/desktop/src-tauri/icons/Square310x310Logo.png b/apps/desktop/src-tauri/icons/Square310x310Logo.pngnew file mode 100644index 00000000..89b7d014Binary files /dev/null and b/apps/desktop/src-tauri/icons/Square310x310Logo.png differdiff --git a/apps/desktop/src-tauri/icons/Square44x44Logo.png b/apps/desktop/src-tauri/icons/Square44x44Logo.pngnew file mode 100644index 00000000..aabfaac6Binary files /dev/null and b/apps/desktop/src-tauri/icons/Square44x44Logo.png differdiff --git a/apps/desktop/src-tauri/icons/Square71x71Logo.png b/apps/desktop/src-tauri/icons/Square71x71Logo.pngnew file mode 100644index 00000000..810ef6a6Binary files /dev/null and b/apps/desktop/src-tauri/icons/Square71x71Logo.png differdiff --git a/apps/desktop/src-tauri/icons/Square89x89Logo.png b/apps/desktop/src-tauri/icons/Square89x89Logo.pngnew file mode 100644index 00000000..b2a40791Binary files /dev/null and b/apps/desktop/src-tauri/icons/Square89x89Logo.png differdiff --git a/apps/desktop/src-tauri/icons/StoreLogo.png b/apps/desktop/src-tauri/icons/StoreLogo.pngnew file mode 100644index 00000000..2ce055d8Binary files /dev/null and b/apps/desktop/src-tauri/icons/StoreLogo.png differdiff --git a/apps/desktop/src-tauri/icons/icon.icns b/apps/desktop/src-tauri/icons/icon.icnsnew file mode 100644index 00000000..52ab836cBinary files /dev/null and b/apps/desktop/src-tauri/icons/icon.icns differdiff --git a/apps/desktop/src-tauri/icons/icon.ico b/apps/desktop/src-tauri/icons/icon.iconew file mode 100644index 00000000..b23da8a2Binary files /dev/null and b/apps/desktop/src-tauri/icons/icon.ico differdiff --git a/apps/desktop/src-tauri/icons/icon.png b/apps/desktop/src-tauri/icons/icon.pngnew file mode 100644index 00000000..d17cb785Binary files /dev/null and b/apps/desktop/src-tauri/icons/icon.png differdiff --git a/apps/desktop/src-tauri/icons/source.png b/apps/desktop/src-tauri/icons/source.pngnew file mode 100644index 00000000..4d2b00ccBinary files /dev/null and b/apps/desktop/src-tauri/icons/source.png differdiff --git a/apps/desktop/src-tauri/src/commands/local.rs b/apps/desktop/src-tauri/src/commands/local.rsnew file mode 100644index 00000000..593f2e57--- /dev/null+++ b/apps/desktop/src-tauri/src/commands/local.rs@@ -0,0 +1,252 @@+//! The Mercury runtime on THIS computer: where it is, whether it is set up+//! as a service, and the per-boot attach token that lets the app talk to it+//! without a login. Mirrors src/cli/service.ts and src/web/auth.ts in the+//! runtime; keep the paths in step.++use serde::Serialize;+use std::{+ env, fs,+ path::{Path, PathBuf},+ process::Command,+};++#[derive(Serialize)]+#[serde(rename_all = "camelCase")]+pub struct LocalRuntime {+ pub mercury_home: String,+ pub binary_path: Option<String>,+ pub binary_version: Option<String>,+ pub port: u16,+ pub attach_token_present: bool,+ pub service_installed: bool,+ pub platform: &'static str,+}++#[derive(Serialize)]+pub struct CommandOutput {+ pub code: i32,+ pub stdout: String,+ pub stderr: String,+}++const DEFAULT_PORT: u16 = 6174;++/// Subcommands the app is allowed to run on the user's behalf. Anything+/// else is refused; the frontend is not a shell.+const ALLOWED_SUBCOMMANDS: &[&str] = &["service", "start", "stop", "status", "devices", "--version"];++fn mercury_home() -> PathBuf {+ if let Ok(home) = env::var("MERCURY_HOME") {+ if !home.is_empty() {+ return PathBuf::from(home);+ }+ }+ dirs::home_dir()+ .unwrap_or_else(|| PathBuf::from("."))+ .join(".mercury")+}++fn binary_name() -> &'static str {+ if cfg!(windows) {+ "mercury.exe"+ } else {+ "mercury"+ }+}++fn platform() -> &'static str {+ if cfg!(target_os = "macos") {+ "macos"+ } else if cfg!(windows) {+ "windows"+ } else if cfg!(target_os = "linux") {+ "linux"+ } else {+ "unknown"+ }+}++/// A Command that never flashes a console window on Windows.+fn quiet_command(program: &Path) -> Command {+ #[allow(unused_mut)]+ let mut command = Command::new(program);+ #[cfg(windows)]+ {+ use std::os::windows::process::CommandExt;+ const CREATE_NO_WINDOW: u32 = 0x0800_0000;+ command.creation_flags(CREATE_NO_WINDOW);+ }+ command+}++fn find_binary(home: &Path) -> Option<PathBuf> {+ let mut candidates = vec![home.join("bin").join(binary_name())];+ if let Some(user) = dirs::home_dir() {+ candidates.push(user.join(".local").join("bin").join(binary_name()));+ }+ if !cfg!(windows) {+ candidates.push(PathBuf::from("/opt/homebrew/bin/mercury"));+ candidates.push(PathBuf::from("/usr/local/bin/mercury"));+ }+ if let Some(path) = env::var_os("PATH") {+ for dir in env::split_paths(&path) {+ candidates.push(dir.join(binary_name()));+ }+ }+ candidates.into_iter().find(|p| p.is_file())+}++fn binary_version(bin: &Path) -> Option<String> {+ let output = quiet_command(bin).arg("--version").output().ok()?;+ if !output.status.success() {+ return None;+ }+ let text = String::from_utf8_lossy(&output.stdout);+ text.lines()+ .map(|l| l.trim().trim_start_matches('v'))+ .find(|l| l.chars().next().is_some_and(|c| c.is_ascii_digit()))+ .map(|s| s.to_string())+}++/// The dashboard port: MERCURY_PORT, else `web.port` in mercury.yaml, else+/// the default. A two-level scan is enough for a key we also write.+fn web_port(home: &Path) -> u16 {+ if let Ok(raw) = env::var("MERCURY_PORT") {+ if let Ok(port) = raw.trim().parse::<u16>() {+ if port > 0 {+ return port;+ }+ }+ }+ if let Ok(yaml) = fs::read_to_string(home.join("mercury.yaml")) {+ let mut in_web = false;+ for line in yaml.lines() {+ let line = line.trim_end();+ if line.is_empty() || line.trim_start().starts_with('#') {+ continue;+ }+ let indented = line.starts_with(' ') || line.starts_with('\t');+ if !indented {+ in_web = line.trim() == "web:";+ continue;+ }+ if in_web {+ if let Some(rest) = line.trim_start().strip_prefix("port:") {+ let value = rest.trim().trim_matches('"').trim_matches('\'');+ if let Ok(port) = value.parse::<u16>() {+ if port > 0 {+ return port;+ }+ }+ }+ }+ }+ }+ DEFAULT_PORT+}++fn service_installed() -> bool {+ let Some(home) = dirs::home_dir() else {+ return false;+ };+ if cfg!(target_os = "macos") {+ return home+ .join("Library/LaunchAgents/com.cosmicstack.mercury.plist")+ .is_file();+ }+ if cfg!(target_os = "linux") {+ return home.join(".config/systemd/user/mercury.service").is_file();+ }+ if cfg!(windows) {+ return quiet_command(Path::new("schtasks"))+ .args(["/query", "/tn", "MercuryAgent"])+ .output()+ .map(|o| o.status.success())+ .unwrap_or(false);+ }+ false+}++#[tauri::command]+pub fn detect_local_runtime() -> LocalRuntime {+ let home = mercury_home();+ let binary = find_binary(&home);+ let version = binary.as_deref().and_then(binary_version);+ LocalRuntime {+ mercury_home: home.to_string_lossy().into_owned(),+ binary_path: binary.map(|p| p.to_string_lossy().into_owned()),+ binary_version: version,+ port: web_port(&home),+ attach_token_present: home.join("attach-token").is_file(),+ service_installed: service_installed(),+ platform: platform(),+ }+}++/// The runtime's per-boot, owner-only attach token (src/web/auth.ts). The+/// app runs as the same user, so reading it is the same trust the CLI has.+#[tauri::command]+pub fn read_attach_token() -> Option<String> {+ let token = fs::read_to_string(mercury_home().join("attach-token")).ok()?;+ let token = token.trim().to_string();+ if token.is_empty() {+ None+ } else {+ Some(token)+ }+}++/// Run the installed `mercury` with an allow-listed subcommand, e.g.+/// `["start", "--daemon"]` or `["service", "install"]`.+#[tauri::command]+pub async fn run_mercury(args: Vec<String>) -> Result<CommandOutput, String> {+ let first = args+ .first()+ .cloned()+ .ok_or_else(|| "missing subcommand".to_string())?;+ if !ALLOWED_SUBCOMMANDS.contains(&first.as_str()) {+ return Err(format!(+ "`mercury {first}` is not something Mercury Desktop runs"+ ));+ }+ if args.iter().any(|a| a.contains('\0')) {+ return Err("bad argument".to_string());+ }+ let home = mercury_home();+ let bin = find_binary(&home)+ .ok_or_else(|| "Mercury is not installed on this computer".to_string())?;++ let output = tauri::async_runtime::spawn_blocking(move || {+ quiet_command(&bin).args(&args).output()+ })+ .await+ .map_err(|e| e.to_string())?+ .map_err(|e| e.to_string())?;++ Ok(CommandOutput {+ code: output.status.code().unwrap_or(-1),+ stdout: String::from_utf8_lossy(&output.stdout).into_owned(),+ stderr: String::from_utf8_lossy(&output.stderr).into_owned(),+ })+}++#[cfg(test)]+mod tests {+ use super::*;++ #[test]+ fn reads_web_port_from_yaml() {+ let dir = std::env::temp_dir().join(format!("mercury-desktop-test-{}", std::process::id()));+ fs::create_dir_all(&dir).unwrap();+ fs::write(+ dir.join("mercury.yaml"),+ "agent:\n name: x\nweb:\n enabled: true\n port: 7000\nmcp: {}\n",+ )+ .unwrap();+ env::remove_var("MERCURY_PORT");+ assert_eq!(web_port(&dir), 7000);+ fs::write(dir.join("mercury.yaml"), "web:\n enabled: true\n").unwrap();+ assert_eq!(web_port(&dir), DEFAULT_PORT);+ fs::remove_dir_all(&dir).unwrap();+ }+}diff --git a/apps/desktop/src-tauri/src/commands/mod.rs b/apps/desktop/src-tauri/src/commands/mod.rsnew file mode 100644index 00000000..0b99e430--- /dev/null+++ b/apps/desktop/src-tauri/src/commands/mod.rs@@ -0,0 +1,2 @@+pub mod local;+pub mod secrets;diff --git a/apps/desktop/src-tauri/src/commands/secrets.rs b/apps/desktop/src-tauri/src/commands/secrets.rsnew file mode 100644index 00000000..c753d47b--- /dev/null+++ b/apps/desktop/src-tauri/src/commands/secrets.rs@@ -0,0 +1,46 @@+//! Device tokens live in the OS keychain (Keychain on macOS, Credential+//! Manager on Windows, Secret Service on Linux), never in a file the app+//! owns. The frontend sees three verbs and a key; the service name is fixed.++use keyring::{Entry, Error as KeyringError};++const SERVICE: &str = "sh.mercuryagent.desktop";+const MAX_KEY_LEN: usize = 128;+const MAX_VALUE_LEN: usize = 4096;++fn entry(key: &str) -> Result<Entry, String> {+ let valid = !key.is_empty()+ && key.len() <= MAX_KEY_LEN+ && key+ .chars()+ .all(|c| c.is_ascii_alphanumeric() || matches!(c, '-' | '_' | ':' | '.'));+ if !valid {+ return Err("bad secret key".to_string());+ }+ Entry::new(SERVICE, key).map_err(|e| e.to_string())+}++#[tauri::command]+pub fn secret_get(key: String) -> Result<Option<String>, String> {+ match entry(&key)?.get_password() {+ Ok(value) => Ok(Some(value)),+ Err(KeyringError::NoEntry) => Ok(None),+ Err(e) => Err(e.to_string()),+ }+}++#[tauri::command]+pub fn secret_set(key: String, value: String) -> Result<(), String> {+ if value.len() > MAX_VALUE_LEN {+ return Err("secret too large".to_string());+ }+ entry(&key)?.set_password(&value).map_err(|e| e.to_string())+}++#[tauri::command]+pub fn secret_delete(key: String) -> Result<(), String> {+ match entry(&key)?.delete_credential() {+ Ok(()) | Err(KeyringError::NoEntry) => Ok(()),+ Err(e) => Err(e.to_string()),+ }+}diff --git a/apps/desktop/src-tauri/src/lib.rs b/apps/desktop/src-tauri/src/lib.rsnew file mode 100644index 00000000..8e8cd4ea--- /dev/null+++ b/apps/desktop/src-tauri/src/lib.rs@@ -0,0 +1,87 @@+//! Mercury Desktop — the native shell.+//!+//! The shell owns what a browser tab cannot: the window and tray, the OS+//! keychain, finding and starting the runtime on this computer, deep links+//! and updates. Everything the user looks at is the shared React dashboard+//! (../../../ui), talking to a runtime over its HTTP API.++mod commands;+mod tray;++use tauri::{AppHandle, Manager, WindowEvent};++pub fn run() {+ tauri::Builder::default()+ // Must be registered first: a second launch focuses this one and+ // hands over its arguments (deep links on Windows and Linux).+ .plugin(tauri_plugin_single_instance::init(|app, _args, _cwd| {+ show_main(app);+ }))+ .plugin(+ tauri_plugin_log::Builder::new()+ .level(log::LevelFilter::Info)+ .build(),+ )+ .plugin(tauri_plugin_window_state::Builder::default().build())+ .plugin(tauri_plugin_store::Builder::default().build())+ .plugin(tauri_plugin_notification::init())+ .plugin(tauri_plugin_updater::Builder::new().build())+ .plugin(tauri_plugin_autostart::init(+ tauri_plugin_autostart::MacosLauncher::LaunchAgent,+ None,+ ))+ .plugin(tauri_plugin_deep_link::init())+ .plugin(tauri_plugin_opener::init())+ .plugin(tauri_plugin_os::init())+ .plugin(tauri_plugin_process::init())+ .plugin(tauri_plugin_dialog::init())+ .invoke_handler(tauri::generate_handler![+ commands::local::detect_local_runtime,+ commands::local::read_attach_token,+ commands::local::run_mercury,+ commands::secrets::secret_get,+ commands::secrets::secret_set,+ commands::secrets::secret_delete,+ ])+ .setup(|app| {+ tray::install(app.handle())?;++ // Installed builds get the `mercury://` scheme from their+ // installer; a dev build must register it itself.+ #[cfg(any(windows, target_os = "linux"))]+ {+ use tauri_plugin_deep_link::DeepLinkExt;+ if cfg!(debug_assertions) {+ let _ = app.deep_link().register_all();+ }+ }+ Ok(())+ })+ .on_window_event(|window, event| {+ // Closing the window keeps Mercury in the tray; Quit lives there.+ if let WindowEvent::CloseRequested { api, .. } = event {+ if window.label() == "main" {+ api.prevent_close();+ let _ = window.hide();+ }+ }+ })+ .build(tauri::generate_context!())+ .expect("error while building Mercury Desktop")+ .run(|app, event| {+ // macOS: clicking the Dock icon with the window hidden brings it back.+ #[cfg(target_os = "macos")]+ if let tauri::RunEvent::Reopen { .. } = event {+ show_main(app);+ }+ let _ = (app, &event);+ });+}++pub(crate) fn show_main(app: &AppHandle) {+ if let Some(window) = app.get_webview_window("main") {+ let _ = window.show();+ let _ = window.unminimize();+ let _ = window.set_focus();+ }+}diff --git a/apps/desktop/src-tauri/src/main.rs b/apps/desktop/src-tauri/src/main.rsnew file mode 100644index 00000000..39ec2f12--- /dev/null+++ b/apps/desktop/src-tauri/src/main.rs@@ -0,0 +1,6 @@+// Prevents an extra console window on Windows in release builds.+#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]++fn main() {+ mercury_desktop_lib::run()+}diff --git a/apps/desktop/src-tauri/src/tray.rs b/apps/desktop/src-tauri/src/tray.rsnew file mode 100644index 00000000..d6ffe546--- /dev/null+++ b/apps/desktop/src-tauri/src/tray.rs@@ -0,0 +1,42 @@+use tauri::{+ menu::{Menu, MenuItem, PredefinedMenuItem},+ tray::{MouseButton, MouseButtonState, TrayIconBuilder, TrayIconEvent},+ AppHandle, Manager,+};++/// The tray icon: the app's persistent presence while the window is hidden.+pub fn install(app: &AppHandle) -> tauri::Result<()> {+ let open = MenuItem::with_id(app, "open", "Open Mercury", true, None::<&str>)?;+ let quit = MenuItem::with_id(app, "quit", "Quit Mercury", true, None::<&str>)?;+ let separator = PredefinedMenuItem::separator(app)?;+ let menu = Menu::with_items(app, &[&open, &separator, &quit])?;++ let icon = app+ .default_window_icon()+ .cloned()+ .ok_or_else(|| tauri::Error::AssetNotFound("default window icon".into()))?;++ TrayIconBuilder::with_id("main")+ .icon(icon)+ .tooltip("Mercury")+ .menu(&menu)+ .show_menu_on_left_click(false)+ .on_menu_event(|app, event| match event.id().as_ref() {+ "open" => crate::show_main(app),+ "quit" => app.exit(0),+ _ => {}+ })+ .on_tray_icon_event(|tray, event| {+ if let TrayIconEvent::Click {+ button: MouseButton::Left,+ button_state: MouseButtonState::Up,+ ..+ } = event+ {+ crate::show_main(tray.app_handle());+ }+ })+ .build(app)?;++ Ok(())+}diff --git a/apps/desktop/src-tauri/tauri.conf.json b/apps/desktop/src-tauri/tauri.conf.jsonnew file mode 100644index 00000000..d74d902c--- /dev/null+++ b/apps/desktop/src-tauri/tauri.conf.json@@ -0,0 +1,85 @@+{+ "$schema": "https://schema.tauri.app/config/2",+ "productName": "Mercury",+ "version": "0.1.0",+ "identifier": "sh.mercuryagent.desktop",+ "build": {+ "beforeDevCommand": "npm run dev",+ "devUrl": "http://localhost:1420",+ "beforeBuildCommand": "npm run build",+ "frontendDist": "../dist"+ },+ "app": {+ "withGlobalTauri": false,+ "windows": [+ {+ "label": "main",+ "title": "Mercury",+ "width": 1280,+ "height": 820,+ "minWidth": 900,+ "minHeight": 600,+ "center": true,+ "resizable": true,+ "dragDropEnabled": true+ }+ ],+ "security": {+ "csp": {+ "default-src": "'self'",+ "script-src": "'self'",+ "style-src": "'self' 'unsafe-inline' https://fonts.googleapis.com",+ "font-src": "'self' data: https://fonts.gstatic.com",+ "img-src": "'self' data: blob: asset: http://asset.localhost http: https:",+ "media-src": "'self' blob: http: https:",+ "connect-src": "'self' ipc: http://ipc.localhost http://127.0.0.1:* http://localhost:* http: https: ws: wss:",+ "worker-src": "'self' blob:",+ "frame-src": "'none'",+ "object-src": "'none'"+ }+ }+ },+ "bundle": {+ "active": true,+ "targets": "all",+ "category": "DeveloperTool",+ "shortDescription": "Mercury Desktop",+ "longDescription": "The native desktop app for Mercury, the soul-driven AI agent. Attaches to a Mercury on this computer or connects to one anywhere.",+ "copyright": "© Cosmic Stack",+ "icon": [+ "icons/32x32.png",+ "icons/128x128.png",+ "icons/[email protected]",+ "icons/icon.icns",+ "icons/icon.ico"+ ],+ "createUpdaterArtifacts": false,+ "macOS": {+ "minimumSystemVersion": "11.0",+ "dmg": {+ "windowSize": { "width": 660, "height": 400 }+ }+ },+ "windows": {+ "webviewInstallMode": { "type": "downloadBootstrapper", "silent": true },+ "nsis": {+ "installMode": "currentUser",+ "languages": ["English"]+ }+ },+ "linux": {+ "appimage": { "bundleMediaFramework": false },+ "deb": { "section": "utils" }+ }+ },+ "plugins": {+ "updater": {+ "endpoints": ["https://mercuryagent.sh/desktop/latest.json"],+ "pubkey": "",+ "windows": { "installMode": "passive" }+ },+ "deep-link": {+ "desktop": { "schemes": ["mercury"] }+ }+ }+}diff --git a/apps/desktop/src/main.tsx b/apps/desktop/src/main.tsxnew file mode 100644index 00000000..dce4380b--- /dev/null+++ b/apps/desktop/src/main.tsx@@ -0,0 +1,15 @@+import React from "react";+import ReactDOM from "react-dom/client";+import { HashRouter } from "react-router-dom";+import { Shell } from "./shell/Shell";+import "./styles.css";++// HashRouter: the bundled app is served from a custom protocol with no+// server-side fallback, so "/chat/abc" must live in the fragment.+ReactDOM.createRoot(document.getElementById("root")!).render(+ <React.StrictMode>+ <HashRouter>+ <Shell />+ </HashRouter>+ </React.StrictMode>+);diff --git a/apps/desktop/src/shell/AddRemote.tsx b/apps/desktop/src/shell/AddRemote.tsxnew file mode 100644index 00000000..44d35f1e--- /dev/null+++ b/apps/desktop/src/shell/AddRemote.tsx@@ -0,0 +1,118 @@+import { useState, type FormEvent } from "react";+import api, { PairError } from "@/lib/api";+import { normalizeBaseUrl } from "@/lib/connection";+import { cn } from "@/lib/utils";+import { desktop } from "./tauri";+import { newConnectionId, useConnections } from "./connections";++/**+ * Pair with a runtime that is not on this computer. Two ways in:+ * - sign in with the dashboard username/password → the runtime mints a+ * device token for this app (POST /api/auth/token);+ * - paste a token made on that machine with `mercury devices add`.+ * Either way the password never persists here; only the token does, in+ * the OS keychain.+ */+export function AddRemote({ onAdded }: { onAdded: () => void }) {+ const [mode, setMode] = useState<"password" | "token">("password");+ const [url, setUrl] = useState("");+ const [username, setUsername] = useState("mercury");+ const [password, setPassword] = useState("");+ const [token, setToken] = useState("");+ const [name, setName] = useState("");+ const [busy, setBusy] = useState(false);+ const [error, setError] = useState<string | null>(null);+ const add = useConnections((s) => s.add);+ const setActive = useConnections((s) => s.setActive);++ async function submit(e: FormEvent) {+ e.preventDefault();+ setError(null);+ const baseUrl = normalizeBaseUrl(url);+ if (!/^https?:\/\//i.test(baseUrl)) {+ setError("Enter the runtime's address, starting with http:// or https://");+ return;+ }+ setBusy(true);+ try {+ const platform = await desktop.platform();+ const host = await desktop.hostname();+ const deviceName = `${host} · Mercury Desktop`;+ let deviceId: string | undefined;+ let credential: string;+ if (mode === "password") {+ const paired = await api.auth.pair(baseUrl, username.trim(), password, deviceName, platform);+ credential = paired.token;+ deviceId = paired.device.id;+ } else {+ credential = token.trim();+ if (!/^mdt_[0-9a-f]{8}_[0-9a-f]{64}$/.test(credential)) throw new Error("That does not look like a device token (mdt_…).");+ const health = await api.health.probe(baseUrl, credential);+ if (!health.ok) throw new Error("The runtime answered, but not with a healthy status.");+ deviceId = credential.split("_")[1];+ }+ const id = newConnectionId();+ const label = name.trim() || new URL(baseUrl).host;+ await add({ id, kind: "remote", name: label, baseUrl, deviceId }, credential);+ await setActive(id);+ setPassword("");+ setToken("");+ onAdded();+ } catch (err) {+ if (err instanceof PairError) {+ setError(err.status === 429 && err.retryAfterSeconds ? `Too many attempts. Try again in ${Math.ceil(err.retryAfterSeconds / 60)} min.` : err.message);+ } else if (err instanceof TypeError) {+ setError("Could not reach that address. Check the URL, and that the runtime is reachable from here (tunnel, VPN, or a public host).");+ } else {+ setError(err instanceof Error ? err.message : String(err));+ }+ } finally {+ setBusy(false);+ }+ }++ return (+ <form onSubmit={(e) => void submit(e)} className="flex flex-1 flex-col gap-2.5">+ <Label htmlFor="remote-url">Address</Label>+ <input id="remote-url" value={url} onChange={(e) => setUrl(e.target.value)} placeholder="https://mercury.tail1234.ts.net" autoCapitalize="off" autoCorrect="off" spellCheck={false} className={inputClass} />++ <div className="flex gap-1 rounded-md border border-border p-0.5 text-[11px]">+ <button type="button" onClick={() => setMode("password")} className={cn("flex-1 rounded px-2 py-1", mode === "password" ? "bg-muted text-foreground" : "text-muted-foreground")}>Sign in</button>+ <button type="button" onClick={() => setMode("token")} className={cn("flex-1 rounded px-2 py-1", mode === "token" ? "bg-muted text-foreground" : "text-muted-foreground")}>Device token</button>+ </div>++ {mode === "password" ? (+ <>+ <Label htmlFor="remote-user">Username</Label>+ <input id="remote-user" value={username} onChange={(e) => setUsername(e.target.value)} autoComplete="username" className={inputClass} />+ <Label htmlFor="remote-pass">Password</Label>+ <input id="remote-pass" type="password" value={password} onChange={(e) => setPassword(e.target.value)} autoComplete="current-password" className={inputClass} />+ </>+ ) : (+ <>+ <Label htmlFor="remote-token">Device token</Label>+ <input id="remote-token" type="password" value={token} onChange={(e) => setToken(e.target.value)} placeholder="mercury devices add on that machine" autoComplete="off" className={inputClass} />+ </>+ )}++ <Label htmlFor="remote-name">Name (optional)</Label>+ <input id="remote-name" value={name} onChange={(e) => setName(e.target.value)} placeholder="Home server" className={inputClass} />++ {error && <div className="rounded-md border border-destructive/40 bg-destructive/10 px-2 py-1.5 text-[11.5px] text-destructive">{error}</div>}++ <div className="flex-1" />+ <div className="flex gap-2">+ <button type="submit" disabled={busy} className="h-10 flex-1 rounded-lg border border-border bg-muted/40 text-sm font-semibold text-foreground hover:bg-muted disabled:opacity-60">+ {busy ? "Connecting…" : "Connect"}+ </button>+ <button type="button" disabled className="h-10 rounded-lg border border-border px-3 text-xs font-semibold text-muted-foreground opacity-60" title="QR pairing arrives with the phone app">Scan QR</button>+ </div>+ </form>+ );+}++const inputClass = "h-9 rounded-md border border-border bg-background px-3 font-mono text-[12.5px] text-foreground outline-none focus:border-primary";++function Label({ children, htmlFor }: { children: string; htmlFor: string }) {+ return <label htmlFor={htmlFor} className="font-mono text-[10px] tracking-wider text-muted-foreground">{children.toUpperCase()}</label>;+}diff --git a/apps/desktop/src/shell/ConnectionPill.tsx b/apps/desktop/src/shell/ConnectionPill.tsxnew file mode 100644index 00000000..0464561b--- /dev/null+++ b/apps/desktop/src/shell/ConnectionPill.tsx@@ -0,0 +1,38 @@+import { useState } from "react";+import type { HealthInfo } from "@/lib/api";+import type { Connection } from "./connections";++/**+ * Where am I connected? A small pill in the corner of the dashboard until+ * the cockpit HUD (design v2, board 02) absorbs it.+ */+export function ConnectionPill({ connection, health, onSwitch }: { connection: Connection; health: HealthInfo; onSwitch: () => void }) {+ const [open, setOpen] = useState(false);+ return (+ <div className="fixed bottom-3 right-3 z-50 flex flex-col items-end gap-1">+ {open && (+ <div className="w-64 rounded-lg border border-border bg-card p-3 text-xs shadow-lg">+ <div className="font-mono text-[11px] text-muted-foreground">{connection.baseUrl}</div>+ <div className="mt-1 flex items-center justify-between">+ <span>Mercury {health.version}</span>+ <span className="text-muted-foreground">API v{health.apiVersion}</span>+ </div>+ <div className="mt-1 text-muted-foreground">+ {connection.kind === "local" ? "On this computer · pid " + health.pid : "Remote · device token"}+ </div>+ <button className="mt-3 w-full rounded-md border border-border px-2 py-1.5 text-xs hover:bg-muted" onClick={onSwitch}>+ Switch connection…+ </button>+ </div>+ )}+ <button+ onClick={() => setOpen((o) => !o)}+ className="flex h-7 items-center gap-2 rounded-full border border-border bg-background/90 px-3 text-xs backdrop-blur hover:bg-muted"+ title={connection.baseUrl}+ >+ <span className="block h-2 w-2 rounded-full bg-primary shadow-[0_0_6px_hsl(var(--primary))]" aria-hidden="true" />+ <span className="max-w-[160px] truncate">{connection.name}</span>+ </button>+ </div>+ );+}diff --git a/apps/desktop/src/shell/Onboarding.tsx b/apps/desktop/src/shell/Onboarding.tsxnew file mode 100644index 00000000..f79885af--- /dev/null+++ b/apps/desktop/src/shell/Onboarding.tsx@@ -0,0 +1,246 @@+import { useEffect, useState } from "react";+import api, { type HealthInfo } from "@/lib/api";+import { cn } from "@/lib/utils";+import { Wordmark } from "./Wordmark";+import { AddRemote } from "./AddRemote";+import { desktop, type LocalRuntime } from "./tauri";+import { LOCAL_CONNECTION_ID, useConnections } from "./connections";++/**+ * First run (design v2, board 01): where should Mercury run?+ * 1. Use the Mercury found on this computer (attach, zero typing);+ * 2. Install Mercury here (next brick: the bundled runtime);+ * 3. Connect to a Mercury elsewhere (URL + password or device token).+ */++type LocalProbe =+ | { state: "probing" }+ | { state: "running"; runtime: LocalRuntime; health: HealthInfo }+ | { state: "installed"; runtime: LocalRuntime }+ | { state: "missing"; runtime: LocalRuntime };++export function Onboarding({ onDone, canCancel }: { onDone: () => void; canCancel: boolean }) {+ const [local, setLocal] = useState<LocalProbe>({ state: "probing" });+ const [busy, setBusy] = useState<string | null>(null);+ const [error, setError] = useState<string | null>(null);+ const add = useConnections((s) => s.add);+ const setActive = useConnections((s) => s.setActive);+ const connections = useConnections((s) => s.connections);++ async function probe() {+ setLocal({ state: "probing" });+ const runtime = await desktop.detectLocalRuntime();+ const baseUrl = `http://127.0.0.1:${runtime.port}`;+ try {+ const health = await api.health.probe(baseUrl, null, 2500);+ setLocal({ state: "running", runtime, health });+ } catch {+ setLocal(runtime.binaryPath ? { state: "installed", runtime } : { state: "missing", runtime });+ }+ }++ useEffect(() => { void probe(); }, []);++ async function useLocal() {+ if (local.state !== "running" && local.state !== "installed") return;+ setBusy("local");+ setError(null);+ try {+ const name = await desktop.hostname();+ await add({ id: LOCAL_CONNECTION_ID, kind: "local", name, baseUrl: `http://127.0.0.1:${local.runtime.port}` });+ await setActive(LOCAL_CONNECTION_ID);+ onDone();+ } catch (err) {+ setError(err instanceof Error ? err.message : String(err));+ } finally {+ setBusy(null);+ }+ }++ async function startLocal() {+ if (local.state !== "installed") return;+ setBusy("start");+ setError(null);+ try {+ const out = await desktop.runMercury(["start", "--daemon"]);+ if (out.code !== 0) throw new Error((out.stderr || out.stdout).trim() || `mercury start exited with ${out.code}`);+ await new Promise((r) => setTimeout(r, 2500));+ await probe();+ } catch (err) {+ setError(err instanceof Error ? err.message : String(err));+ } finally {+ setBusy(null);+ }+ }++ const platformLabel = local.state === "probing" ? "this computer" : platformName(local.runtime.platform);++ return (+ <div className="relative flex h-full flex-col overflow-y-auto bg-background">+ <div aria-hidden="true" className="pointer-events-none absolute inset-0" style={{+ backgroundImage: "linear-gradient(rgba(30,39,46,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(30,39,46,.35) 1px, transparent 1px)",+ backgroundSize: "48px 48px",+ maskImage: "radial-gradient(circle at 50% 30%, #000 0, transparent 70%)",+ WebkitMaskImage: "radial-gradient(circle at 50% 30%, #000 0, transparent 70%)",+ }} />++ <div className="relative mx-auto flex w-full max-w-[1120px] flex-1 flex-col items-center justify-center gap-8 px-6 py-10">+ <div className="flex flex-col items-center gap-3 text-center">+ <Wordmark size={320} />+ <h1 className="sr-only">Mercury Agent</h1>+ <p className="max-w-[520px] text-sm leading-relaxed text-muted-foreground">+ Your agent, running where you choose. We checked {platformLabel} first; pick where Mercury should run.+ Change it later from the connection pill.+ </p>+ </div>++ {error && <div className="w-full rounded-md border border-destructive/40 bg-destructive/10 px-3 py-2 text-xs text-destructive">{error}</div>}++ <div className="grid w-full grid-cols-1 gap-4 md:grid-cols-3">+ {/* 1 · Found here */}+ <Card highlighted={local.state === "running"} badge={local.state === "running" ? `FOUND ON ${platformLabel.toUpperCase()}` : undefined}>+ <CardTitle>Use the Mercury that's here</CardTitle>+ {local.state === "probing" && <CardBody>Looking for a running Mercury…</CardBody>}+ {local.state === "running" && (+ <>+ <CardBody>Mercury {local.health.version} is running{local.runtime.serviceInstalled ? " as a service" : ""}. The app attaches to it. Sessions, memory, skills and plugins stay exactly where they are.</CardBody>+ <Facts rows={[+ ["bin", local.runtime.binaryPath ?? "—"],+ ["daemon", `running · pid ${local.health.pid}`],+ ["api", `127.0.0.1:${local.runtime.port} · v${local.health.apiVersion ?? "?"}`],+ ["state", local.health.state],+ ]} />+ <div className="flex-1" />+ <PrimaryButton onClick={() => void useLocal()} disabled={busy !== null}>{busy === "local" ? "Connecting…" : "Connect"}</PrimaryButton>+ </>+ )}+ {local.state === "installed" && (+ <>+ <CardBody>Mercury {local.runtime.binaryVersion ?? ""} is installed but not running. Start it and the app will attach.</CardBody>+ <Facts rows={[["bin", local.runtime.binaryPath ?? "—"], ["daemon", "stopped"], ["service", local.runtime.serviceInstalled ? "installed" : "not installed"]]} />+ <div className="flex-1" />+ <PrimaryButton onClick={() => void startLocal()} disabled={busy !== null}>{busy === "start" ? "Starting…" : "Start Mercury"}</PrimaryButton>+ </>+ )}+ {local.state === "missing" && (+ <>+ <CardBody>No Mercury on {platformLabel}. Install it with the card beside this one, or connect to one elsewhere.</CardBody>+ <div className="flex-1" />+ <SecondaryButton onClick={() => void probe()}>Check again</SecondaryButton>+ </>+ )}+ </Card>++ {/* 2 · Install here */}+ <Card>+ <CardTitle>Install Mercury here</CardTitle>+ <CardBody>For a fresh machine. The app will carry its own copy of the runtime and set it up the way the installer does, then run it as a service.</CardBody>+ <CardBody muted>Bundled runtime lands in the next build. Until then the one-line installer does the same job:</CardBody>+ <pre className="rounded-md border border-border bg-background px-3 py-2 font-mono text-[11px] leading-relaxed text-muted-foreground" data-selectable>+ {local.state !== "probing" && local.runtime.platform === "windows"+ ? "irm https://mercuryagent.sh/install.ps1 | iex"+ : "curl -fsSL https://mercuryagent.sh/install.sh | sh"}+ </pre>+ <div className="flex-1" />+ <SecondaryButton onClick={() => void desktop.openExternal("https://mercuryagent.sh/docs/getting-started/installation")}>Installation guide</SecondaryButton>+ </Card>++ {/* 3 · Remote */}+ <Card>+ <CardTitle>Connect to a Mercury elsewhere</CardTitle>+ <CardBody>A server, a home machine, a phone running Termux, or Mercury Cloud. Add more connections later and use them side by side.</CardBody>+ <AddRemote onAdded={onDone} />+ </Card>+ </div>++ {connections.length > 0 && (+ <div className="flex flex-wrap items-center justify-center gap-2 text-xs text-muted-foreground">+ <span>Saved:</span>+ {connections.map((c) => (+ <button key={c.id} className="rounded-full border border-border px-3 py-1 hover:bg-muted" onClick={() => { void setActive(c.id).then(onDone); }}>+ {c.name}+ </button>+ ))}+ {canCancel && <button className="ml-2 underline-offset-2 hover:underline" onClick={onDone}>Cancel</button>}+ </div>+ )}++ <Steps />+ </div>+ </div>+ );+}++function platformName(p: LocalRuntime["platform"]): string {+ switch (p) {+ case "macos": return "this Mac";+ case "windows": return "this PC";+ case "linux": return "this machine";+ default: return "this computer";+ }+}++function Card({ children, highlighted, badge }: { children: React.ReactNode; highlighted?: boolean; badge?: string }) {+ return (+ <div className={cn(+ "relative flex min-h-[300px] flex-col gap-3 rounded-xl bg-card p-5",+ highlighted ? "shadow-[inset_0_0_0_1px_hsl(var(--primary)),0_0_40px_rgba(52,225,161,.12)]" : "shadow-[inset_0_0_0_1px_hsl(var(--border))]"+ )}>+ {badge && (+ <span className="absolute -top-2.5 left-4 rounded-full bg-primary px-2 py-0.5 font-mono text-[10px] font-semibold tracking-wider text-primary-foreground">{badge}</span>+ )}+ {children}+ </div>+ );+}++function CardTitle({ children }: { children: React.ReactNode }) {+ return <div className="mt-1 text-base font-semibold text-foreground">{children}</div>;+}++function CardBody({ children, muted }: { children: React.ReactNode; muted?: boolean }) {+ return <div className={cn("text-[12.5px] leading-relaxed", muted ? "text-muted-foreground/80" : "text-muted-foreground")}>{children}</div>;+}++function Facts({ rows }: { rows: Array<[string, string]> }) {+ return (+ <div className="rounded-md border border-border bg-background px-3 py-2 font-mono text-[11px] leading-relaxed text-muted-foreground" data-selectable>+ {rows.map(([k, v]) => (+ <div key={k} className="flex gap-2"><span className="w-14 shrink-0 text-muted-foreground/60">{k}</span><span className="truncate text-foreground/80">{v}</span></div>+ ))}+ </div>+ );+}++function PrimaryButton({ children, onClick, disabled }: { children: React.ReactNode; onClick: () => void; disabled?: boolean }) {+ return (+ <button onClick={onClick} disabled={disabled} className="h-10 rounded-lg bg-primary text-sm font-semibold text-primary-foreground shadow-[0_0_18px_rgba(52,225,161,.35)] disabled:opacity-60">+ {children}+ </button>+ );+}++function SecondaryButton({ children, onClick, disabled }: { children: React.ReactNode; onClick: () => void; disabled?: boolean }) {+ return (+ <button onClick={onClick} disabled={disabled} className="h-10 rounded-lg border border-border bg-muted/40 text-sm font-semibold text-foreground hover:bg-muted disabled:opacity-60">+ {children}+ </button>+ );+}++function Steps() {+ const steps = ["Where it runs", "Model and key", "Ask Me or Allow All", "Plugins"];+ return (+ <div className="flex items-center gap-4 font-mono text-[11px] text-muted-foreground">+ {steps.map((label, i) => (+ <span key={label} className="flex items-center gap-4">+ <span className="flex items-center gap-2">+ <span className={cn("flex h-[18px] w-[18px] items-center justify-center rounded-full", i === 0 ? "bg-primary font-bold text-primary-foreground" : "border border-border")}>{i + 1}</span>+ {label}+ </span>+ {i < steps.length - 1 && <span aria-hidden="true" className="block h-px w-10 bg-border" />}+ </span>+ ))}+ </div>+ );+}diff --git a/apps/desktop/src/shell/Shell.tsx b/apps/desktop/src/shell/Shell.tsxnew file mode 100644index 00000000..8d823ebd--- /dev/null+++ b/apps/desktop/src/shell/Shell.tsx@@ -0,0 +1,136 @@+import { useEffect, useState } from "react";+import { App } from "@/App";+import { configureApi } from "@/lib/connection";+import { useConnections, type Connection } from "./connections";+import { useRuntime } from "./useRuntime";+import { Onboarding } from "./Onboarding";+import { ConnectionPill } from "./ConnectionPill";+import { Wordmark } from "./Wordmark";+import { desktop } from "./tauri";++/**+ * The shell decides what fills the window:+ * - nothing chosen yet → first-run (pick where Mercury runs);+ * - a connection chosen → bring it up, then the dashboard itself.+ */+export function Shell() {+ const loaded = useConnections((s) => s.loaded);+ const connections = useConnections((s) => s.connections);+ const activeId = useConnections((s) => s.activeId);+ const load = useConnections((s) => s.load);+ const [switching, setSwitching] = useState(false);++ useEffect(() => { void load(); }, [load]);++ if (!loaded) return <Splash />;++ const active = connections.find((c) => c.id === activeId) ?? null;+ if (!active || switching) {+ return <Onboarding onDone={() => setSwitching(false)} canCancel={Boolean(active)} />;+ }+ return <Connected key={active.id} connection={active} onSwitch={() => setSwitching(true)} />;+}++function Connected({ connection, onSwitch }: { connection: Connection; onSwitch: () => void }) {+ const setActive = useConnections((s) => s.setActive);+ const { status, retry } = useRuntime(connection, () => { /* shown inline below */ });++ if (status.phase === "ready") {+ return (+ <>+ <App />+ <ConnectionPill connection={connection} health={status.health} onSwitch={onSwitch} />+ </>+ );+ }++ return (+ <div className="flex h-full items-center justify-center bg-background">+ <div className="flex w-[420px] flex-col items-center gap-6 text-center">+ <Wordmark />+ {status.phase === "connecting" && (+ <p className="text-sm text-muted-foreground">Connecting to <span className="text-foreground">{connection.name}</span>…</p>+ )}+ {status.phase === "offline" && (+ <>+ <p className="text-sm text-muted-foreground">+ <span className="text-foreground">{connection.name}</span> is not answering at{" "}+ <span className="font-mono text-xs">{connection.baseUrl}</span>.+ </p>+ <p className="text-xs text-muted-foreground">{status.error}</p>+ {connection.kind === "local" && <StartLocalRuntime onStarted={retry} />}+ <div className="flex gap-2">+ <button className="rounded-md bg-primary px-4 py-2 text-sm font-semibold text-primary-foreground" onClick={retry}>Try again</button>+ <button className="rounded-md border border-border px-4 py-2 text-sm" onClick={onSwitch}>Use another connection</button>+ </div>+ </>+ )}+ {status.phase === "unauthorized" && (+ <>+ <p className="text-sm text-muted-foreground">+ <span className="text-foreground">{connection.name}</span> no longer accepts this device.+ {connection.kind === "remote" ? " The token was revoked or has changed." : " Mercury may have restarted with a new token."}+ </p>+ <div className="flex gap-2">+ <button className="rounded-md bg-primary px-4 py-2 text-sm font-semibold text-primary-foreground" onClick={retry}>Try again</button>+ <button className="rounded-md border border-border px-4 py-2 text-sm" onClick={onSwitch}>Pair again</button>+ </div>+ </>+ )}+ {status.phase === "incompatible" && (+ <>+ <p className="text-sm text-muted-foreground">+ {status.compat.reason === "desktop-too-old"+ ? `Mercury ${status.health.version} speaks a newer API (v${status.compat.apiVersion}) than this app. Update Mercury Desktop, or open the dashboard in your browser — it always matches the runtime.`+ : `Mercury ${status.health.version || "(unknown)"} on ${connection.name} is older than this app supports. Run \`mercury upgrade\` there.`}+ </p>+ <div className="flex gap-2">+ <button className="rounded-md bg-primary px-4 py-2 text-sm font-semibold text-primary-foreground" onClick={() => void desktop.openExternal(connection.baseUrl)}>Open in browser</button>+ <button className="rounded-md border border-border px-4 py-2 text-sm" onClick={onSwitch}>Use another connection</button>+ </div>+ </>+ )}+ <button className="text-xs text-muted-foreground underline-offset-2 hover:underline" onClick={() => { configureApi({ baseUrl: "", token: null }); void setActive(null); }}>+ Forget this connection+ </button>+ </div>+ </div>+ );+}++function StartLocalRuntime({ onStarted }: { onStarted: () => void }) {+ const [state, setState] = useState<"idle" | "starting" | "failed">("idle");+ const [detail, setDetail] = useState("");+ async function start() {+ setState("starting");+ try {+ const out = await desktop.runMercury(["start", "--daemon"]);+ if (out.code !== 0) {+ setState("failed");+ setDetail((out.stderr || out.stdout).trim().slice(0, 400));+ return;+ }+ // The listener binds within a second or two; health polling takes it from here.+ setTimeout(onStarted, 2500);+ } catch (err) {+ setState("failed");+ setDetail(err instanceof Error ? err.message : String(err));+ }+ }+ return (+ <div className="flex flex-col items-center gap-2">+ <button className="rounded-md border border-primary/50 px-4 py-2 text-sm text-primary disabled:opacity-60" disabled={state === "starting"} onClick={() => void start()}>+ {state === "starting" ? "Starting Mercury…" : "Start Mercury on this computer"}+ </button>+ {state === "failed" && <pre className="max-w-[400px] whitespace-pre-wrap text-left font-mono text-[11px] text-destructive">{detail}</pre>}+ </div>+ );+}++function Splash() {+ return (+ <div className="flex h-full items-center justify-center bg-background">+ <Wordmark />+ </div>+ );+}diff --git a/apps/desktop/src/shell/Wordmark.tsx b/apps/desktop/src/shell/Wordmark.tsxnew file mode 100644index 00000000..543add62--- /dev/null+++ b/apps/desktop/src/shell/Wordmark.tsx@@ -0,0 +1,26 @@+import { useThemeStore } from "@/stores/theme";++/** The Mercury wordmark with its breathing glow (first-run hero, board 01). */+export function Wordmark({ size = 300, breathe = true }: { size?: number; breathe?: boolean }) {+ const resolved = useThemeStore((s) => s.resolved);+ return (+ <div className="relative flex items-center justify-center" style={{ width: size * 1.6, height: size * 0.55 }}>+ <div+ aria-hidden="true"+ className={`pointer-events-none absolute rounded-full ${breathe ? "mercury-breathe" : ""}`}+ style={{+ width: size * 1.6,+ height: size * 0.8,+ background: "radial-gradient(closest-side, rgba(52,225,161,.22), rgba(52,225,161,0))",+ }}+ />+ <img+ src={resolved === "dark" ? "/logo-full-dark.png" : "/logo-full-light.png"}+ alt="Mercury Agent"+ className={`relative ${breathe ? "mercury-wordmark" : ""}`}+ style={{ width: size, height: "auto" }}+ draggable={false}+ />+ </div>+ );+}diff --git a/apps/desktop/src/shell/compat.ts b/apps/desktop/src/shell/compat.tsnew file mode 100644index 00000000..771980d1--- /dev/null+++ b/apps/desktop/src/shell/compat.ts@@ -0,0 +1,20 @@+/**+ * The API versions this build of Mercury Desktop understands. The runtime+ * reports its own in /api/health (see src/web/api-contract.ts). A runtime+ * outside this range is not talked to blindly: the user is told which side+ * to update, and can open the runtime's own dashboard in a browser, which+ * always matches it.+ */+export const SUPPORTED_API = Object.freeze({ min: 1, max: 1 });++export type Compat =+ | { ok: true }+ | { ok: false; reason: "runtime-too-old" | "desktop-too-old"; apiVersion: number };++export function checkCompat(apiVersion: number | undefined): Compat {+ // A runtime that does not report apiVersion predates the contract (< 1.5).+ const v = typeof apiVersion === "number" && Number.isFinite(apiVersion) ? apiVersion : 0;+ if (v < SUPPORTED_API.min) return { ok: false, reason: "runtime-too-old", apiVersion: v };+ if (v > SUPPORTED_API.max) return { ok: false, reason: "desktop-too-old", apiVersion: v };+ return { ok: true };+}diff --git a/apps/desktop/src/shell/connections.ts b/apps/desktop/src/shell/connections.tsnew file mode 100644index 00000000..a128e87d--- /dev/null+++ b/apps/desktop/src/shell/connections.ts@@ -0,0 +1,140 @@+/* ═══════════════════════════════════════════════════════════════+ Connections — the runtimes this app knows how to reach.++ Metadata (name, URL, kind) lives in the app's store file; the credential+ never does. A remote connection's device token sits in the OS keychain+ under `connection:<id>`; a local connection has no stored credential at+ all — it reads the runtime's per-boot attach token each time.+ ═══════════════════════════════════════════════════════════════ */++import { create } from "zustand";+import { desktop, isTauri } from "./tauri";++export type ConnectionKind = "local" | "remote";++export interface Connection {+ id: string;+ kind: ConnectionKind;+ name: string;+ /** Origin, no trailing slash: http://127.0.0.1:6174, https://mercury.tail1234.ts.net */+ baseUrl: string;+ /** The runtime's record of this device (remote only). */+ deviceId?: string;+ createdAt: string;+ lastUsedAt?: string;+}++interface PersistedShape {+ version: 1;+ connections: Connection[];+ activeId: string | null;+}++interface ConnectionsState {+ loaded: boolean;+ connections: Connection[];+ activeId: string | null;+ load(): Promise<void>;+ add(connection: Omit<Connection, "createdAt">, token?: string | null): Promise<Connection>;+ remove(id: string): Promise<void>;+ setActive(id: string | null): Promise<void>;+ rename(id: string, name: string): Promise<void>;+}++export const LOCAL_CONNECTION_ID = "local";+const STORE_FILE = "connections.json";+const STORE_KEY = "state";+const DEV_STORAGE_KEY = "mercury-desktop-connections";++export function secretKeyFor(id: string): string {+ return `connection:${id}`;+}++async function readPersisted(): Promise<PersistedShape> {+ const empty: PersistedShape = { version: 1, connections: [], activeId: null };+ try {+ if (isTauri) {+ const { load } = await import("@tauri-apps/plugin-store");+ const store = await load(STORE_FILE, { defaults: {}, autoSave: false });+ const raw = await store.get<PersistedShape>(STORE_KEY);+ return sanitize(raw) ?? empty;+ }+ const raw = localStorage.getItem(DEV_STORAGE_KEY);+ return sanitize(raw ? (JSON.parse(raw) as PersistedShape) : null) ?? empty;+ } catch {+ return empty;+ }+}++async function writePersisted(shape: PersistedShape): Promise<void> {+ if (isTauri) {+ const { load } = await import("@tauri-apps/plugin-store");+ const store = await load(STORE_FILE, { defaults: {}, autoSave: false });+ await store.set(STORE_KEY, shape);+ await store.save();+ return;+ }+ try { localStorage.setItem(DEV_STORAGE_KEY, JSON.stringify(shape)); } catch { /* ignore */ }+}++function sanitize(raw: PersistedShape | null | undefined): PersistedShape | null {+ if (!raw || raw.version !== 1 || !Array.isArray(raw.connections)) return null;+ const connections = raw.connections.filter(+ (c): c is Connection =>+ !!c && typeof c.id === "string" && typeof c.baseUrl === "string" && (c.kind === "local" || c.kind === "remote") && typeof c.name === "string"+ );+ const activeId = typeof raw.activeId === "string" && connections.some((c) => c.id === raw.activeId) ? raw.activeId : null;+ return { version: 1, connections, activeId };+}++export const useConnections = create<ConnectionsState>((set, get) => ({+ loaded: false,+ connections: [],+ activeId: null,++ async load() {+ const shape = await readPersisted();+ set({ loaded: true, connections: shape.connections, activeId: shape.activeId });+ },++ async add(connection, token) {+ const full: Connection = { ...connection, createdAt: new Date().toISOString() };+ if (token) await desktop.secretSet(secretKeyFor(full.id), token);+ const connections = [...get().connections.filter((c) => c.id !== full.id), full];+ set({ connections });+ await writePersisted({ version: 1, connections, activeId: get().activeId });+ return full;+ },++ async remove(id) {+ await desktop.secretDelete(secretKeyFor(id)).catch(() => {});+ const connections = get().connections.filter((c) => c.id !== id);+ const activeId = get().activeId === id ? null : get().activeId;+ set({ connections, activeId });+ await writePersisted({ version: 1, connections, activeId });+ },++ async setActive(id) {+ const connections = get().connections.map((c) => (c.id === id ? { ...c, lastUsedAt: new Date().toISOString() } : c));+ set({ activeId: id, connections });+ await writePersisted({ version: 1, connections, activeId: id });+ },++ async rename(id, name) {+ const connections = get().connections.map((c) => (c.id === id ? { ...c, name } : c));+ set({ connections });+ await writePersisted({ version: 1, connections, activeId: get().activeId });+ },+}));++export function newConnectionId(): string {+ const bytes = new Uint8Array(6);+ crypto.getRandomValues(bytes);+ return Array.from(bytes, (b) => b.toString(16).padStart(2, "0")).join("");+}++/** Resolve the credential a connection needs right now. */+export async function credentialFor(connection: Connection): Promise<string | null> {+ if (connection.kind === "local") return desktop.readAttachToken();+ return desktop.secretGet(secretKeyFor(connection.id));+}diff --git a/apps/desktop/src/shell/tauri.ts b/apps/desktop/src/shell/tauri.tsnew file mode 100644index 00000000..b17071bc--- /dev/null+++ b/apps/desktop/src/shell/tauri.ts@@ -0,0 +1,101 @@+/* ═══════════════════════════════════════════════════════════════+ The native side, as seen from the webview. Every call here has a+ browser fallback so `npm run dev` in a plain browser still works for+ UI work (with localStorage standing in for the keychain — dev only).+ ═══════════════════════════════════════════════════════════════ */++import { invoke } from "@tauri-apps/api/core";++export const isTauri: boolean = typeof window !== "undefined" && "__TAURI_INTERNALS__" in window;++export interface LocalRuntime {+ mercuryHome: string;+ binaryPath: string | null;+ binaryVersion: string | null;+ port: number;+ attachTokenPresent: boolean;+ serviceInstalled: boolean;+ platform: "macos" | "windows" | "linux" | "unknown";+}++export interface CommandOutput {+ code: number;+ stdout: string;+ stderr: string;+}++const DEV_SECRET_PREFIX = "mercury-desktop-dev-secret:";++export const desktop = {+ detectLocalRuntime(): Promise<LocalRuntime> {+ if (!isTauri) {+ return Promise.resolve({+ mercuryHome: "~/.mercury",+ binaryPath: null,+ binaryVersion: null,+ port: 6174,+ attachTokenPresent: false,+ serviceInstalled: false,+ platform: "unknown",+ });+ }+ return invoke<LocalRuntime>("detect_local_runtime");+ },++ readAttachToken(): Promise<string | null> {+ if (!isTauri) return Promise.resolve(null);+ return invoke<string | null>("read_attach_token");+ },++ /** Runs the installed `mercury` binary with an allow-listed subcommand. */+ runMercury(args: string[]): Promise<CommandOutput> {+ if (!isTauri) return Promise.reject(new Error("Not running inside Mercury Desktop"));+ return invoke<CommandOutput>("run_mercury", { args });+ },++ async secretGet(key: string): Promise<string | null> {+ if (!isTauri) {+ try { return localStorage.getItem(DEV_SECRET_PREFIX + key); } catch { return null; }+ }+ return invoke<string | null>("secret_get", { key });+ },++ async secretSet(key: string, value: string): Promise<void> {+ if (!isTauri) {+ try { localStorage.setItem(DEV_SECRET_PREFIX + key, value); } catch { /* private mode */ }+ return;+ }+ await invoke("secret_set", { key, value });+ },++ async secretDelete(key: string): Promise<void> {+ if (!isTauri) {+ try { localStorage.removeItem(DEV_SECRET_PREFIX + key); } catch { /* ignore */ }+ return;+ }+ await invoke("secret_delete", { key });+ },++ async openExternal(url: string): Promise<void> {+ if (!isTauri) {+ window.open(url, "_blank", "noopener,noreferrer");+ return;+ }+ const { openUrl } = await import("@tauri-apps/plugin-opener");+ await openUrl(url);+ },++ async platform(): Promise<LocalRuntime["platform"]> {+ if (!isTauri) return "unknown";+ const { platform } = await import("@tauri-apps/plugin-os");+ const p = platform();+ if (p === "macos" || p === "windows" || p === "linux") return p;+ return "unknown";+ },++ async hostname(): Promise<string> {+ if (!isTauri) return "This computer";+ const { hostname } = await import("@tauri-apps/plugin-os");+ return (await hostname()) || "This computer";+ },+};diff --git a/apps/desktop/src/shell/useRuntime.ts b/apps/desktop/src/shell/useRuntime.tsnew file mode 100644index 00000000..35e86928--- /dev/null+++ b/apps/desktop/src/shell/useRuntime.ts@@ -0,0 +1,96 @@+import { useCallback, useEffect, useRef, useState } from "react";+import api, { type HealthInfo } from "@/lib/api";+import { configureApi } from "@/lib/connection";+import { checkCompat, type Compat } from "./compat";+import { credentialFor, type Connection } from "./connections";++/**+ * Bring one connection to life: resolve its credential, point the shared+ * API client at it, prove the runtime answers, and keep checking.+ */++export type RuntimeStatus =+ | { phase: "connecting" }+ | { phase: "ready"; health: HealthInfo }+ | { phase: "offline"; error: string }+ | { phase: "unauthorized" }+ | { phase: "incompatible"; compat: Extract<Compat, { ok: false }>; health: HealthInfo };++const RECHECK_MS = 15_000;++export function useRuntime(connection: Connection, onUnauthorized: () => void): { status: RuntimeStatus; retry: () => void } {+ const [status, setStatus] = useState<RuntimeStatus>({ phase: "connecting" });+ const [attempt, setAttempt] = useState(0);+ const unauthorizedRef = useRef(onUnauthorized);+ unauthorizedRef.current = onUnauthorized;++ const retry = useCallback(() => setAttempt((n) => n + 1), []);++ useEffect(() => {+ let cancelled = false;+ let timer: ReturnType<typeof setTimeout> | null = null;++ async function bringUp(): Promise<void> {+ setStatus({ phase: "connecting" });+ const token = await credentialFor(connection);+ if (cancelled) return;++ if (connection.kind === "remote" && !token) {+ setStatus({ phase: "unauthorized" });+ return;+ }++ configureApi({+ baseUrl: connection.baseUrl,+ token,+ onUnauthorized: () => {+ // A local runtime rotates its attach token at every boot; one+ // re-read fixes that case. Anything else is the shell's call.+ if (connection.kind === "local") {+ void credentialFor(connection).then((fresh) => {+ if (fresh && fresh !== token) {+ configureApi({ token: fresh });+ retry();+ } else {+ setStatus({ phase: "unauthorized" });+ unauthorizedRef.current();+ }+ });+ return;+ }+ setStatus({ phase: "unauthorized" });+ unauthorizedRef.current();+ },+ onSignedOut: () => unauthorizedRef.current(),+ });++ try {+ const health = await api.health.probe(connection.baseUrl, token);+ if (cancelled) return;+ const compat = checkCompat(health.apiVersion);+ if (!compat.ok) {+ setStatus({ phase: "incompatible", compat, health });+ return;+ }+ setStatus({ phase: "ready", health });+ } catch (err) {+ if (cancelled) return;+ const message = err instanceof Error ? err.message : String(err);+ if (message === "Unauthorized") {+ setStatus({ phase: "unauthorized" });+ return;+ }+ setStatus({ phase: "offline", error: message });+ timer = setTimeout(() => { if (!cancelled) void bringUp(); }, RECHECK_MS);+ }+ }++ void bringUp();+ return () => {+ cancelled = true;+ if (timer) clearTimeout(timer);+ };+ }, [connection, attempt, retry]);++ return { status, retry };+}diff --git a/apps/desktop/src/styles.css b/apps/desktop/src/styles.cssnew file mode 100644index 00000000..02739f49--- /dev/null+++ b/apps/desktop/src/styles.css@@ -0,0 +1,58 @@+@import "../../../ui/src/globals.css";++/* ── Desktop: Mercury green as the live/primary tint (design v2) ──+ Semantic colours (amber = needs you, red = halt, cyan = thinking)+ stay as the dashboard defines them; only the brand/primary moves. */+:root {+ --primary: 158 75% 54%; /* #34E1A1 */+ --primary-foreground: 158 60% 5%;+ --ring: 158 75% 54%;+ --glow-cyan: rgba(52, 225, 161, 0.08);+ --glow-cyan-strong: rgba(52, 225, 161, 0.18);+}++.light, :root:not(.dark) {+ --primary: 157 70% 40%; /* #1FAE78 on light surfaces */+ --primary-foreground: 0 0% 100%;+ --ring: 157 70% 40%;+}++html, body, #root {+ height: 100%;+ margin: 0;+}++body {+ background: hsl(var(--background));+ color: hsl(var(--foreground));+ -webkit-font-smoothing: antialiased;+ overscroll-behavior: none;+ user-select: none;+}++/* Text the user may want to copy stays selectable. */+input, textarea, pre, code, [data-selectable], .prose, .markdown {+ user-select: text;+}++/* ── First-run hero: the wordmark breathes with its glow (design v2, board 01) ── */+.mercury-breathe {+ animation: mercury-breathe 5s ease-in-out infinite;+ transform-origin: 50% 50%;+ will-change: transform, opacity;+}+.mercury-wordmark {+ animation: mercury-wordbreathe 5s ease-in-out infinite;+ will-change: filter;+}+@keyframes mercury-breathe {+ 0%, 100% { transform: scale(1); opacity: 0.7; }+ 50% { transform: scale(1.08); opacity: 1; }+}+@keyframes mercury-wordbreathe {+ 0%, 100% { filter: drop-shadow(0 0 20px rgba(52, 225, 161, 0.3)); }+ 50% { filter: drop-shadow(0 0 34px rgba(52, 225, 161, 0.6)); }+}+@media (prefers-reduced-motion: reduce) {+ .mercury-breathe, .mercury-wordmark { animation: none !important; }+}diff --git a/apps/desktop/tailwind.config.js b/apps/desktop/tailwind.config.jsnew file mode 100644index 00000000..b6d64406--- /dev/null+++ b/apps/desktop/tailwind.config.js@@ -0,0 +1,12 @@+import uiPreset from "../../ui/tailwind.config.js";++/** @type {import('tailwindcss').Config} */+export default {+ presets: [uiPreset],+ darkMode: ["class"],+ content: [+ "./index.html",+ "./src/**/*.{ts,tsx}",+ "../../ui/src/**/*.{ts,tsx}",+ ],+};diff --git a/apps/desktop/tsconfig.json b/apps/desktop/tsconfig.jsonnew file mode 100644index 00000000..67ac47ca--- /dev/null+++ b/apps/desktop/tsconfig.json@@ -0,0 +1,23 @@+{+ "compilerOptions": {+ "target": "ES2022",+ "lib": ["ES2022", "DOM", "DOM.Iterable"],+ "module": "ESNext",+ "moduleResolution": "bundler",+ "jsx": "react-jsx",+ "strict": true,+ "esModuleInterop": true,+ "skipLibCheck": true,+ "forceConsistentCasingInFileNames": true,+ "resolveJsonModule": true,+ "isolatedModules": true,+ "noEmit": true,+ "baseUrl": ".",+ "paths": {+ "@/*": ["../../ui/src/*"]+ },+ "types": ["vite/client"]+ },+ "include": ["src", "../../ui/src"],+ "exclude": ["../../ui/src/**/*.test.ts", "../../ui/src/**/*.test.tsx", "src-tauri", "dist", "node_modules"]+}diff --git a/apps/desktop/vite.config.ts b/apps/desktop/vite.config.tsnew file mode 100644index 00000000..2796dbc5--- /dev/null+++ b/apps/desktop/vite.config.ts@@ -0,0 +1,45 @@+import { defineConfig } from "vite";+import react from "@vitejs/plugin-react";+import path from "node:path";+import { fileURLToPath } from "node:url";++/**+ * Mercury Desktop frontend. The dashboard itself lives in ../../ui/src and+ * is imported here as source (alias "@"), so there is one React UI for the+ * runtime-served dashboard and the desktop app. `dedupe` makes the UI's+ * imports of react/zustand/etc. resolve to THIS package's copies — two+ * React instances would break every hook.+ */++const here = path.dirname(fileURLToPath(import.meta.url));+const uiSrc = path.resolve(here, "../../ui/src");+const repoRoot = path.resolve(here, "../..");++// `tauri dev` sets TAURI_DEV_HOST when the frontend is served to a device.+const host = process.env.TAURI_DEV_HOST;++export default defineConfig({+ plugins: [react()],+ clearScreen: false,+ resolve: {+ alias: { "@": uiSrc },+ dedupe: ["react", "react-dom", "react-router-dom", "zustand", "framer-motion", "lucide-react"],+ },+ server: {+ port: 1420,+ strictPort: true,+ host: host || false,+ hmr: host ? { protocol: "ws", host, port: 1421 } : undefined,+ watch: { ignored: ["**/src-tauri/**"] },+ fs: { allow: [repoRoot] },+ },+ envPrefix: ["VITE_", "TAURI_ENV_*"],+ build: {+ // Tauri uses the platform webview: WebView2 on Windows, WebKit elsewhere.+ target: process.env.TAURI_ENV_PLATFORM === "windows" ? "chrome105" : "safari13",+ minify: process.env.TAURI_ENV_DEBUG ? false : "esbuild",+ sourcemap: Boolean(process.env.TAURI_ENV_DEBUG),+ outDir: "dist",+ chunkSizeWarningLimit: 900,+ },+});diff --git a/docs/api-contract.md b/docs/api-contract.mdnew file mode 100644index 00000000..5e886002--- /dev/null+++ b/docs/api-contract.md@@ -0,0 +1,68 @@+# Mercury API contract++Clients that are not shipped inside the runtime binary — Mercury Desktop,+the phone apps, scripts — talk to a runtime over its HTTP API. This page is+the ledger of that contract. Source of truth in code: `src/web/api-contract.ts`.++## Two version numbers++| Number | Where | Moves when |+|---|---|---|+| **Package version** (`1.5.0`) | `package.json`, `/api/health.version`, `mercury --version` | every release |+| **API version** (`1`) | `API_VERSION`, `/api/health.apiVersion` | only on a change a client cannot tolerate |++A client declares the API range it understands (desktop: `apps/desktop/src/shell/compat.ts`).+Additive changes never bump the integer; they add a **feature flag** to+`/api/health.features`, and clients gate UI on the flag.++## Rules++1. A removed or renamed route, a changed response shape, or a changed auth+ scheme bumps `API_VERSION`, and this table gets a row.+2. A new route, a new optional field, a new event type adds a feature flag.+ Flags are never removed without bumping `API_VERSION`.+3. The runtime is the source of truth. A client compares and either+ proceeds, tells the user to update the runtime (`mercury upgrade`), or+ tells the user to update itself and offers the runtime-served dashboard,+ which always matches.+4. No runtime release ships without checking this file.++## Versions++| apiVersion | Runtime release | Desktop | Notes |+|---|---|---|---|+| 1 | 1.5.0 (unreleased) | 0.1.0 | First contract. Device tokens, `/api/health` for authenticated remote peers, CORS for the desktop origins. |++## Authentication++| Credential | Shape | Scope | Minted by |+|---|---|---|---|+| Web session | cookie `mercury_session` or `Authorization: Bearer <token>` | any peer | `POST /api/auth/login` (form, cookie) |+| Device token | `Authorization: Bearer mdt_<id>_<secret>` | any peer, long-lived, revocable | `POST /api/auth/token` (JSON) or `mercury devices add` |+| Attach token | `Authorization: Bearer <hex>` | loopback only, rotates each boot | runtime, `~/.mercury/attach-token` |++`POST /api/auth/token` body `{ username, password, deviceName?, platform? }`+→ `{ token, device: { id, name, platform, createdAt, lastSeenAt }, apiVersion, features }`.+Ten failed attempts from one address lock it out for fifteen minutes (`429` + `Retry-After`).++`GET /api/auth/devices` → `{ devices: [...], current: <id|null> }` ·+`DELETE /api/auth/devices/:id` · `POST /api/auth/token/revoke` (sign out this device) ·+`POST /api/auth/logout` (Bearer session).++## Health++`GET /api/health` → `{ ok, pid, version, apiVersion, features, state, booting, loopLag, plugins? }`.+Loopback peers need no credential. Any other peer must present one; without it the+runtime answers `404`, so a scanner learns nothing.++## Cross-origin clients++`/api/*` carries CORS headers for `tauri://localhost`, `http://tauri.localhost`,+`https://tauri.localhost` and the origins listed under `web.corsOrigins` in+`mercury.yaml`. Never `*`, never credentials: cross-origin callers use Bearer+tokens, so a hostile page cannot ride the session cookie. Set+`MERCURY_DESKTOP_DEV=1` to also admit the Vite dev server on port 1420.++## Feature flags (apiVersion 1)++`auth.devices`, `chat.sse`, `chat.attachments`, `bots`, `plugins`, `mcp`, `boards`, `brain`.