Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.
Rust acpagent-client-protocolai-agentsai-assistantclaudeclaude-codecodexcoding-agentscursorgeminigemini-cligrok-bot-alternativeiosiphonelinuxmacosmcpopen-sourcerustself-hosted
feat(desktop): start the Electron app for macOS and Linux
leepokai407ed0cab26b
diff --git a/apps/desktop/.gitignore b/apps/desktop/.gitignorenew file mode 100644index 00000000..2e4f8957--- /dev/null+++ b/apps/desktop/.gitignore@@ -0,0 +1,5 @@+node_modules/+out/+dist/+# SF Symbols masks: generated on macOS at build time (npm run icons), never committed.+src/renderer/public/symbols/diff --git a/apps/desktop/electron.vite.config.ts b/apps/desktop/electron.vite.config.tsnew file mode 100644index 00000000..5ba069d9--- /dev/null+++ b/apps/desktop/electron.vite.config.ts@@ -0,0 +1,12 @@+import { resolve } from 'node:path'+import react from '@vitejs/plugin-react'+import { defineConfig, externalizeDepsPlugin } from 'electron-vite'++export default defineConfig({+ main: { plugins: [externalizeDepsPlugin()] },+ preload: { plugins: [externalizeDepsPlugin()] },+ renderer: {+ resolve: { alias: { '@shared': resolve('src/shared') } },+ plugins: [react()],+ },+})diff --git a/apps/desktop/package-lock.json b/apps/desktop/package-lock.jsonnew file mode 100644index 00000000..3d5e021f--- /dev/null+++ b/apps/desktop/package-lock.json@@ -0,0 +1,6187 @@+{+ "name": "codync-desktop",+ "version": "2.6.3",+ "lockfileVersion": 3,+ "requires": true,+ "packages": {+ "": {+ "name": "codync-desktop",+ "version": "2.6.3",+ "license": "UNLICENSED",+ "devDependencies": {+ "@types/node": "^24.0.0",+ "@types/qrcode": "^1.5.6",+ "@types/react": "^19.3.0",+ "@types/react-dom": "^19.3.0",+ "@vitejs/plugin-react": "^5.2.0",+ "electron": "^44.5.1",+ "electron-builder": "^26.15.3",+ "electron-vite": "^5.0.0",+ "lucide": "^1.52.0",+ "qrcode": "^1.5.4",+ "react": "^19.3.0",+ "react-dom": "^19.3.0",+ "typescript": "^6.0.3",+ "vite": "^7.3.6"+ }+ },+ "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.7",+ "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.7.tgz",+ "integrity": "sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-validator-identifier": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz",+ "integrity": "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-validator-option": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.29.7.tgz",+ "integrity": "sha512-N9ZErrD+yW5geCDtBqnOoxmR8+tNKiGuxKlDpuJxfsqpa2dFcexaziGAE/qoHLiDDreVNMupxGmSoNlyvsA3gw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helpers": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.7.tgz",+ "integrity": "sha512-1k2lAGRMfHTcwuNYcCNUmaUffmQv8KWMfh2iJUUeRlwlwH4FdNG7mfPI10NPfLHJFThE4Tyr4mv7kTNZOiPuBg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/template": "^7.29.7",+ "@babel/types": "^7.29.7"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/parser": {+ "version": "7.29.9",+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.9.tgz",+ "integrity": "sha512-CjXrNHTnvqBVqHgdBysY3vk2T8tpJHb5/RMeHJBTyVa9xgugCB0CJTx/3oO8RV2QRQP391RWpB7D6hLjm8V9uA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/types": "^7.29.8"+ },+ "bin": {+ "parser": "bin/babel-parser.js"+ },+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/@babel/plugin-transform-arrow-functions": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.29.7.tgz",+ "integrity": "sha512-N7zArUXWzAMzm+/N0uPBeVB3Fam5lMxtUwMmDK5f/IBBS7a7p1qeUoxd/6CckXoxUdgsntq1Dh8xNW06maZbDQ==",+ "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-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.8",+ "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.8.tgz",+ "integrity": "sha512-I5z7H3bf/41ktsNVLtpN0wAa336HkqIHQ5BuPLEhTkt1jVSyZpeNKIzTgEWmlxjdg81R0IgUCcaE+Ok3NvrfZg==",+ "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.8",+ "@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.8",+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.8.tgz",+ "integrity": "sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-string-parser": "^7.29.7",+ "@babel/helper-validator-identifier": "^7.29.7"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@electron-internal/extract-zip": {+ "version": "1.0.5",+ "resolved": "https://registry.npmjs.org/@electron-internal/extract-zip/-/extract-zip-1.0.5.tgz",+ "integrity": "sha512-+bqFCP98pLI0Tt0XQo1TmlXtwjWchISndDOxCkEcIuUgXWpBnLyRI+2DU+mesvnMMX6L1XDqYNA0lXNDHd/yiA==",+ "dev": true,+ "license": "BSD-2-Clause",+ "engines": {+ "node": ">=22.12.0"+ }+ },+ "node_modules/@electron/asar": {+ "version": "3.4.1",+ "resolved": "https://registry.npmjs.org/@electron/asar/-/asar-3.4.1.tgz",+ "integrity": "sha512-i4/rNPRS84t0vSRa2HorerGRXWyF4vThfHesw0dmcWHp+cspK743UanA0suA5Q5y8kzY2y6YKrvbIUn69BCAiA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "commander": "^5.0.0",+ "glob": "^7.1.6",+ "minimatch": "^3.0.4"+ },+ "bin": {+ "asar": "bin/asar.js"+ },+ "engines": {+ "node": ">=10.12.0"+ }+ },+ "node_modules/@electron/asar/node_modules/balanced-match": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",+ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@electron/asar/node_modules/brace-expansion": {+ "version": "1.1.21",+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.21.tgz",+ "integrity": "sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "balanced-match": "^1.0.0",+ "concat-map": "0.0.1"+ }+ },+ "node_modules/@electron/asar/node_modules/minimatch": {+ "version": "3.1.5",+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz",+ "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "brace-expansion": "^1.1.7"+ },+ "engines": {+ "node": "*"+ }+ },+ "node_modules/@electron/fuses": {+ "version": "1.8.0",+ "resolved": "https://registry.npmjs.org/@electron/fuses/-/fuses-1.8.0.tgz",+ "integrity": "sha512-zx0EIq78WlY/lBb1uXlziZmDZI4ubcCXIMJ4uGjXzZW0nS19TjSPeXPAjzzTmKQlJUZm0SbmZhPKP7tuQ1SsEw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "chalk": "^4.1.1",+ "fs-extra": "^9.0.1",+ "minimist": "^1.2.5"+ },+ "bin": {+ "electron-fuses": "dist/bin.js"+ }+ },+ "node_modules/@electron/fuses/node_modules/fs-extra": {+ "version": "9.1.0",+ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz",+ "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "at-least-node": "^1.0.0",+ "graceful-fs": "^4.2.0",+ "jsonfile": "^6.0.1",+ "universalify": "^2.0.0"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/@electron/get": {+ "version": "5.1.0",+ "resolved": "https://registry.npmjs.org/@electron/get/-/get-5.1.0.tgz",+ "integrity": "sha512-3kSBtG8ObcTVfXanm5vVJ6UnBLEVmVsRk1M+vGqCuMBV+XLCbJYuWQful+yIy0GQDsSlK0kHEriEHn7SPk4EnA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "debug": "^4.1.1",+ "env-paths": "^3.0.0",+ "graceful-fs": "^4.2.11",+ "progress": "^2.0.3",+ "semver": "^7.6.3",+ "sumchecker": "^3.0.1"+ },+ "engines": {+ "node": ">=22.12.0"+ },+ "optionalDependencies": {+ "undici": "^7.24.4"+ }+ },+ "node_modules/@electron/get/node_modules/semver": {+ "version": "7.8.5",+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",+ "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==",+ "dev": true,+ "license": "ISC",+ "bin": {+ "semver": "bin/semver.js"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/@electron/notarize": {+ "version": "2.5.0",+ "resolved": "https://registry.npmjs.org/@electron/notarize/-/notarize-2.5.0.tgz",+ "integrity": "sha512-jNT8nwH1f9X5GEITXaQ8IF/KdskvIkOFfB2CvwumsveVidzpSc+mvhhTMdAGSYF3O+Nq49lJ7y+ssODRXu06+A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "debug": "^4.1.1",+ "fs-extra": "^9.0.1",+ "promise-retry": "^2.0.1"+ },+ "engines": {+ "node": ">= 10.0.0"+ }+ },+ "node_modules/@electron/notarize/node_modules/fs-extra": {+ "version": "9.1.0",+ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz",+ "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "at-least-node": "^1.0.0",+ "graceful-fs": "^4.2.0",+ "jsonfile": "^6.0.1",+ "universalify": "^2.0.0"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/@electron/osx-sign": {+ "version": "1.3.3",+ "resolved": "https://registry.npmjs.org/@electron/osx-sign/-/osx-sign-1.3.3.tgz",+ "integrity": "sha512-KZ8mhXvWv2rIEgMbWZ4y33bDHyUKMXnx4M0sTyPNK/vcB81ImdeY9Ggdqy0SWbMDgmbqyQ+phgejh6V3R2QuSg==",+ "dev": true,+ "license": "BSD-2-Clause",+ "dependencies": {+ "compare-version": "^0.1.2",+ "debug": "^4.3.4",+ "fs-extra": "^10.0.0",+ "isbinaryfile": "^4.0.8",+ "minimist": "^1.2.6",+ "plist": "^3.0.5"+ },+ "bin": {+ "electron-osx-flat": "bin/electron-osx-flat.js",+ "electron-osx-sign": "bin/electron-osx-sign.js"+ },+ "engines": {+ "node": ">=12.0.0"+ }+ },+ "node_modules/@electron/osx-sign/node_modules/isbinaryfile": {+ "version": "4.0.10",+ "resolved": "https://registry.npmjs.org/isbinaryfile/-/isbinaryfile-4.0.10.tgz",+ "integrity": "sha512-iHrqe5shvBUcFbmZq9zOQHBoeOhZJu6RQGrDpBgenUm/Am+F3JM2MgQj+rK3Z601fzrL5gLZWtAPH2OBaSVcyw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 8.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/gjtorikian/"+ }+ },+ "node_modules/@electron/rebuild": {+ "version": "4.2.0",+ "resolved": "https://registry.npmjs.org/@electron/rebuild/-/rebuild-4.2.0.tgz",+ "integrity": "sha512-RKL/O+jGoXJMxrx/5771y1n0xTKmFuOYGO3gMmwypBM6rsH0kou0mswwdXA2JrhIkE4xyC7v9vGk0n6NPzgOxQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@malept/cross-spawn-promise": "^2.0.0",+ "debug": "^4.1.1",+ "node-abi": "^4.2.0",+ "node-api-version": "^0.2.1",+ "node-gyp": "^12.2.0",+ "read-binary-file-arch": "^1.0.6"+ },+ "bin": {+ "electron-rebuild": "lib/cli.js"+ },+ "engines": {+ "node": ">=22.12.0"+ }+ },+ "node_modules/@electron/universal": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/@electron/universal/-/universal-2.0.3.tgz",+ "integrity": "sha512-Wn9sPYIVFRFl5HmwMJkARCCf7rqK/EurkfQ/rJZ14mHP3iYTjZSIOSVonEAnhWeAXwtw7zOekGRlc6yTtZ0t+g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@electron/asar": "^3.3.1",+ "@malept/cross-spawn-promise": "^2.0.0",+ "debug": "^4.3.1",+ "dir-compare": "^4.2.0",+ "fs-extra": "^11.1.1",+ "minimatch": "^9.0.3",+ "plist": "^3.1.0"+ },+ "engines": {+ "node": ">=16.4"+ }+ },+ "node_modules/@electron/universal/node_modules/balanced-match": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",+ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@electron/universal/node_modules/brace-expansion": {+ "version": "2.1.7",+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.7.tgz",+ "integrity": "sha512-uZbew1NqdmPDTMJ8ah1y+b+9QEJrfkXFk3RcTQw3X0jW/xRUvFKsg1CfQdSYGdTbXZWExtU3J3ccxtnfw1Fi0g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "balanced-match": "^1.0.0"+ }+ },+ "node_modules/@electron/universal/node_modules/fs-extra": {+ "version": "11.4.1",+ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.4.1.tgz",+ "integrity": "sha512-KYAb4c9BJQI6QqGKthV68OHe0badztdXJWKo0WtBA9IuCFPTKvE5ZdUBglP833aMjhaSPNO4A5j/EkzZtGlKjA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "graceful-fs": "^4.2.0",+ "jsonfile": "^6.0.1",+ "universalify": "^2.0.0"+ },+ "engines": {+ "node": ">=14.14"+ }+ },+ "node_modules/@electron/universal/node_modules/minimatch": {+ "version": "9.0.9",+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.9.tgz",+ "integrity": "sha512-OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "brace-expansion": "^2.0.2"+ },+ "engines": {+ "node": ">=16 || 14 >=14.17"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/@electron/windows-sign": {+ "version": "1.2.2",+ "resolved": "https://registry.npmjs.org/@electron/windows-sign/-/windows-sign-1.2.2.tgz",+ "integrity": "sha512-dfZeox66AvdPtb2lD8OsIIQh12Tp0GNCRUDfBHIKGpbmopZto2/A8nSpYYLoedPIHpqkeblZ/k8OV0Gy7PYuyQ==",+ "dev": true,+ "license": "BSD-2-Clause",+ "optional": true,+ "peer": true,+ "dependencies": {+ "cross-dirname": "^0.1.0",+ "debug": "^4.3.4",+ "fs-extra": "^11.1.1",+ "minimist": "^1.2.8",+ "postject": "^1.0.0-alpha.6"+ },+ "bin": {+ "electron-windows-sign": "bin/electron-windows-sign.js"+ },+ "engines": {+ "node": ">=14.14"+ }+ },+ "node_modules/@electron/windows-sign/node_modules/fs-extra": {+ "version": "11.4.1",+ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.4.1.tgz",+ "integrity": "sha512-KYAb4c9BJQI6QqGKthV68OHe0badztdXJWKo0WtBA9IuCFPTKvE5ZdUBglP833aMjhaSPNO4A5j/EkzZtGlKjA==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "peer": true,+ "dependencies": {+ "graceful-fs": "^4.2.0",+ "jsonfile": "^6.0.1",+ "universalify": "^2.0.0"+ },+ "engines": {+ "node": ">=14.14"+ }+ },+ "node_modules/@esbuild/aix-ppc64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.12.tgz",+ "integrity": "sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "aix"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/android-arm": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.12.tgz",+ "integrity": "sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/android-arm64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.12.tgz",+ "integrity": "sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/android-x64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.12.tgz",+ "integrity": "sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/darwin-arm64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.12.tgz",+ "integrity": "sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/darwin-x64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.12.tgz",+ "integrity": "sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/freebsd-arm64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.12.tgz",+ "integrity": "sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/freebsd-x64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.12.tgz",+ "integrity": "sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-arm": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.12.tgz",+ "integrity": "sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-arm64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.12.tgz",+ "integrity": "sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-ia32": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.12.tgz",+ "integrity": "sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-loong64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.12.tgz",+ "integrity": "sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-mips64el": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.12.tgz",+ "integrity": "sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==",+ "cpu": [+ "mips64el"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-ppc64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.12.tgz",+ "integrity": "sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-riscv64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.12.tgz",+ "integrity": "sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-s390x": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.12.tgz",+ "integrity": "sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==",+ "cpu": [+ "s390x"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-x64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.12.tgz",+ "integrity": "sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/netbsd-arm64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.12.tgz",+ "integrity": "sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/netbsd-x64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.12.tgz",+ "integrity": "sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/openbsd-arm64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.12.tgz",+ "integrity": "sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/openbsd-x64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.12.tgz",+ "integrity": "sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/openharmony-arm64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.12.tgz",+ "integrity": "sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openharmony"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/sunos-x64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.12.tgz",+ "integrity": "sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "sunos"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/win32-arm64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.12.tgz",+ "integrity": "sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/win32-ia32": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.12.tgz",+ "integrity": "sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/win32-x64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.12.tgz",+ "integrity": "sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@isaacs/fs-minipass": {+ "version": "4.0.1",+ "resolved": "https://registry.npmjs.org/@isaacs/fs-minipass/-/fs-minipass-4.0.1.tgz",+ "integrity": "sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "minipass": "^7.0.4"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "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/@malept/cross-spawn-promise": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/@malept/cross-spawn-promise/-/cross-spawn-promise-2.0.0.tgz",+ "integrity": "sha512-1DpKU0Z5ThltBwjNySMC14g0CkbyhCaz9FkhxqNsZI6uAPJXFS8cMXlBKo26FJ8ZuW6S9GCMcR9IO5k2X5/9Fg==",+ "dev": true,+ "funding": [+ {+ "type": "individual",+ "url": "https://github.com/sponsors/malept"+ },+ {+ "type": "tidelift",+ "url": "https://tidelift.com/subscription/pkg/npm-.malept-cross-spawn-promise?utm_medium=referral&utm_source=npm_fund"+ }+ ],+ "license": "Apache-2.0",+ "dependencies": {+ "cross-spawn": "^7.0.1"+ },+ "engines": {+ "node": ">= 12.13.0"+ }+ },+ "node_modules/@malept/flatpak-bundler": {+ "version": "0.4.0",+ "resolved": "https://registry.npmjs.org/@malept/flatpak-bundler/-/flatpak-bundler-0.4.0.tgz",+ "integrity": "sha512-9QOtNffcOF/c1seMCDnjckb3R9WHcG34tky+FHpNKKCW0wc/scYLwMtO+ptyGUfMW0/b/n4qRiALlaFHc9Oj7Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "debug": "^4.1.1",+ "fs-extra": "^9.0.0",+ "lodash": "^4.17.15",+ "tmp-promise": "^3.0.2"+ },+ "engines": {+ "node": ">= 10.0.0"+ }+ },+ "node_modules/@malept/flatpak-bundler/node_modules/fs-extra": {+ "version": "9.1.0",+ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz",+ "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "at-least-node": "^1.0.0",+ "graceful-fs": "^4.2.0",+ "jsonfile": "^6.0.1",+ "universalify": "^2.0.0"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "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/@noble/hashes": {+ "version": "2.4.0",+ "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-2.4.0.tgz",+ "integrity": "sha512-X5XaVWZIBCT7HHZGm5I7ZQXDwLG+bGXuSrMQAW+7Zvl87h1kmc1ZB1VSRJcpUfoUrGQp4Fkoxm5kZ+Ms+aW+eA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 20.19.0"+ },+ "funding": {+ "url": "https://paulmillr.com/funding/"+ }+ },+ "node_modules/@peculiar/asn1-schema": {+ "version": "2.10.0",+ "resolved": "https://registry.npmjs.org/@peculiar/asn1-schema/-/asn1-schema-2.10.0.tgz",+ "integrity": "sha512-GhokD41lV4gQrrLYm3wCkHfBOnJrnhDMgt4XeMW8gzfE1UdJqIuSwsE+ggf82XBjUXRJylcm+KIGQFa4utIVLw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@peculiar/utils": "^2.0.2",+ "asn1js": "^3.0.10",+ "tslib": "^2.8.1"+ },+ "engines": {+ "node": ">=14"+ }+ },+ "node_modules/@peculiar/json-schema": {+ "version": "1.1.12",+ "resolved": "https://registry.npmjs.org/@peculiar/json-schema/-/json-schema-1.1.12.tgz",+ "integrity": "sha512-coUfuoMeIB7B8/NMekxaDzLhaYmp0HZNPEjYRm9goRou8UZIC3z21s0sL9AWoCw4EG876QyO3kYrc61WNF9B/w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "tslib": "^2.0.0"+ },+ "engines": {+ "node": ">=8.0.0"+ }+ },+ "node_modules/@peculiar/utils": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/@peculiar/utils/-/utils-2.0.3.tgz",+ "integrity": "sha512-+oL3HPFRIZ1St2K50lWCXiioIgSoxzz7R1J3uF6neO2yl1sgmpgY6XXJH4BdpoDkMWznQTeYF6oWNDZLCdQ4eQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "tslib": "^2.8.1"+ }+ },+ "node_modules/@peculiar/webcrypto": {+ "version": "1.7.1",+ "resolved": "https://registry.npmjs.org/@peculiar/webcrypto/-/webcrypto-1.7.1.tgz",+ "integrity": "sha512-ODOov0sGMJMf3jPonOkgGqPknTsu+DdQ7kD++gz8aI+aFMOMHFbWAA2taqXXVTdP+OTOQR/znGvSpmkeI0WTYQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@peculiar/asn1-schema": "^2.7.0",+ "@peculiar/json-schema": "^1.1.12",+ "@peculiar/utils": "^2.0.2",+ "tslib": "^2.8.1",+ "webcrypto-core": "^1.9.2"+ },+ "engines": {+ "node": ">=14.18.0"+ }+ },+ "node_modules/@rolldown/pluginutils": {+ "version": "1.0.0-rc.3",+ "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-rc.3.tgz",+ "integrity": "sha512-eybk3TjzzzV97Dlj5c+XrBFW57eTNhzod66y9HrBlzJ6NsCrWCp/2kaPS3K9wJmurBC0Tdw4yPjXKZqlznim3Q==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@rollup/rollup-android-arm-eabi": {+ "version": "4.64.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.64.0.tgz",+ "integrity": "sha512-FLLpX941CD/7aBvX3GqLGBM9OvY5PGXTryPJkG5r5/OuBpZpV5k45Uo3RxAvqd35tsyc3hH1bhtz921IKzoIzg==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ]+ },+ "node_modules/@rollup/rollup-android-arm64": {+ "version": "4.64.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.64.0.tgz",+ "integrity": "sha512-iI32XM/jnDYJsvx5ai/za/7gWO9XoSeFFtU06/ZCaRgyilfJOjaopD3nOpk2WrTCGOyeDt4hleUiGOAnd5tHNg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ]+ },+ "node_modules/@rollup/rollup-darwin-arm64": {+ "version": "4.64.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.64.0.tgz",+ "integrity": "sha512-dRBZlbt2sEtF8Mn4MODThze9fIPdDoOhVSlXMAKy5dQbOYK9pOOoPY4Fat3OTtr0+8zbJo5TTZwlsfxY/kDNJg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ]+ },+ "node_modules/@rollup/rollup-darwin-x64": {+ "version": "4.64.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.64.0.tgz",+ "integrity": "sha512-Y3whrJOMucfkhgNkvcM93M6j8C53iEAMmPMYD99C6G1kUy4ELigLWk9ar2/4aCBSRgsql0zdlOemLgW2m5GZgQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ]+ },+ "node_modules/@rollup/rollup-freebsd-arm64": {+ "version": "4.64.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.64.0.tgz",+ "integrity": "sha512-S6S1GEzPjFF6IONYJX3AKt/799+8RgBgCcwRnUo+Ep1IvBxUbw5M51iU0TDdK2NWWVnSvCQ8yi6Em0fGASMOng==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ]+ },+ "node_modules/@rollup/rollup-freebsd-x64": {+ "version": "4.64.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.64.0.tgz",+ "integrity": "sha512-Ed1DPoFENkXj4IGzSB12SesV40iP6LxCCrbTIkSGIQBpOOxpBM+0kj62lmaeIHfMWTDoddqTOtqc7s8LYfn+Pw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm-gnueabihf": {+ "version": "4.64.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.64.0.tgz",+ "integrity": "sha512-J/6xhutJPtFyIkmHdf4olOdHHKH5kOJNumojdWn+Elv5ICEYTVOa362Vw27TxsK0BLzb1le3EDlO3UbvFK1lnQ==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm-musleabihf": {+ "version": "4.64.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.64.0.tgz",+ "integrity": "sha512-G4L/Nnx59d2LvDoV/P4S5lZ7oVLT6hodOHMacqjiq2LL2gts86KbkEBTYL53+fBt0odhf7XPIbIATGoYiJctxg==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm64-gnu": {+ "version": "4.64.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.64.0.tgz",+ "integrity": "sha512-zF16pvJDEUksGYRbfnXne7pdklAyj2XDmJeYKgP93oq0cUyX9Y8O7lUo1R+IY1GagP/YBvCEDCe7eEcAKpw//g==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm64-musl": {+ "version": "4.64.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.64.0.tgz",+ "integrity": "sha512-nIggWn8n+w12+R5lsV+PYYoUY8vuObxPAQqJI7WES+9v0qspYuAHoZMfYM0yLxlipasT5BY9ht5W8t5c/rSCkg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-loong64-gnu": {+ "version": "4.64.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.64.0.tgz",+ "integrity": "sha512-WLOTiHPzszP0dxIMsHpFeDSOSB5I49Mj8K4+yKE3H1X/D0JRG5XZ5jrctJLMjnUc/LUzaKiwq6EHWNJ8pup8PA==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-loong64-musl": {+ "version": "4.64.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.64.0.tgz",+ "integrity": "sha512-35RK9aRhh7g7Pmeu5gQ01aCvrhXzj9LoBE6xtUcEH1ns+nyTaSzxSpADmBQINu4QiTDGvmQYwo1j5hlg1rRXFw==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-ppc64-gnu": {+ "version": "4.64.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.64.0.tgz",+ "integrity": "sha512-RqTfnpoTjuWfPAmqK5p2edt2AMCDJWm6oTn7sKfmyx+6tRga0ip05SJ977o6udTcIiDeF/CJMUfkaN4gtWt6Aw==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-ppc64-musl": {+ "version": "4.64.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.64.0.tgz",+ "integrity": "sha512-RQjZPigjxFvFZDijG6rjlSXxhRaTf9zLYVpGK+lVcga64oMqP1GbgVqCb46eHTTceSIgp89Ja0y5aPe3GFBYHg==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-riscv64-gnu": {+ "version": "4.64.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.64.0.tgz",+ "integrity": "sha512-tjL58mgQcTRnDRpeky+Sth1MKQeYi2Ct6r3Luq9E5aTSjnM/i/JbozqZkKqp9thM5+oDSZxo+05f9kdQedfTGA==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-riscv64-musl": {+ "version": "4.64.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.64.0.tgz",+ "integrity": "sha512-ictoRyVaoZ8C67myHef+8hhCa6IplXJJ/xUCkVCxziV4zxMZh+jvhkhGsPBLqj1S72fnqD0QH5zL4lcaa4X7DQ==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-s390x-gnu": {+ "version": "4.64.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.64.0.tgz",+ "integrity": "sha512-8aVvZ2hfr9RLFzBQkQNmYeHLDja8fLeQAmLt757zdKN/B+8L809KlLJKctQjS22wZotptV8G6o7fVPuAs8S1tQ==",+ "cpu": [+ "s390x"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-x64-gnu": {+ "version": "4.64.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.64.0.tgz",+ "integrity": "sha512-2dEF8GAcDKwshUfydD+GhosppNyBzhVUHkdFF3CXd3FpOkzj/RZzF5aoEtzklujklT5qFVRU2GK/cFeLaTNKVg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-x64-musl": {+ "version": "4.64.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.64.0.tgz",+ "integrity": "sha512-3XHTvoo2hKkh0MiOfS7SkhHjMaaWF7P4F3drocZZaho/Z8w7h/jpnuBHm91BOQLfvrKHs1yR+zir4E8RI3XzTQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-openbsd-x64": {+ "version": "4.64.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.64.0.tgz",+ "integrity": "sha512-HKtkzodL4a3KFWDXDoO61cRynAWTR3LnAE0oGtfG9lcNFpNuVYUFOByxDgNqEvic9rvaQbAj+SFwTEWDptRaIw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ]+ },+ "node_modules/@rollup/rollup-openharmony-arm64": {+ "version": "4.64.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.64.0.tgz",+ "integrity": "sha512-JBsxqiY16uyyCujtoC3s7zL+SrYyNElptD7K4V+KUoJ2V8/XG3hPWpheK+SuPwNh1cikJvIZmIdsrYXvD6PLJw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openharmony"+ ]+ },+ "node_modules/@rollup/rollup-win32-arm64-msvc": {+ "version": "4.64.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.64.0.tgz",+ "integrity": "sha512-S5Qrijh37qhnUYQ0ay8WN3LuWeKjow7wTUyCOPMZtnXiBXYXdsZETI6ZLfYnQAKovltckPLBFdNeD61P2rJc7g==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rollup/rollup-win32-ia32-msvc": {+ "version": "4.64.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.64.0.tgz",+ "integrity": "sha512-zbZ6iMmLFEsCtTdc2/y1F/cDFVNNCPF7Ae8PCT/wdPE//hGwYp6r+MyCLMFX+kOeIe09Pz6ASfnnfpSTN1FJQQ==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rollup/rollup-win32-x64-gnu": {+ "version": "4.64.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.64.0.tgz",+ "integrity": "sha512-L6Hw69oNpuYaOr1zCG30v0/DqKYCSRwodPGwIcVZ/6f8SOzq9rxtL/xNVI5MO4wjli+Ko0ErK9uHJL3mNPt8wQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rollup/rollup-win32-x64-msvc": {+ "version": "4.64.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.64.0.tgz",+ "integrity": "sha512-nl+CTWIgOGszQmUz/kanfgrfFZ4qiwxKIfT/ryl3N3Ewk5tqizmYtNXiqb7Bu/fDtNgu1kyxdFiAUJNur3iysg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@sindresorhus/is": {+ "version": "4.6.0",+ "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-4.6.0.tgz",+ "integrity": "sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sindresorhus/is?sponsor=1"+ }+ },+ "node_modules/@szmarczak/http-timer": {+ "version": "4.0.6",+ "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-4.0.6.tgz",+ "integrity": "sha512-4BAffykYOgO+5nzBWYwE3W90sBgLJoUPRWWcL8wlyiM8IB8ipJz3UMJ9KXQd1RKQXpKp8Tutn80HZtWsu2u76w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "defer-to-connect": "^2.0.0"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "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/cacheable-request": {+ "version": "6.0.3",+ "resolved": "https://registry.npmjs.org/@types/cacheable-request/-/cacheable-request-6.0.3.tgz",+ "integrity": "sha512-IQ3EbTzGxIigb1I3qPZc1rWJnH0BmSKv5QYTalEwweFvyBDLSAe24zP0le/hyi7ecGfZVlIVAg4BZqb8WBwKqw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/http-cache-semantics": "*",+ "@types/keyv": "^3.1.4",+ "@types/node": "*",+ "@types/responselike": "^1.0.0"+ }+ },+ "node_modules/@types/debug": {+ "version": "4.1.13",+ "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.13.tgz",+ "integrity": "sha512-KSVgmQmzMwPlmtljOomayoR89W4FynCAi3E8PPs7vmDVPe84hT+vGPKkJfThkmXs0x0jAaa9U8uW8bbfyS2fWw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/ms": "*"+ }+ },+ "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/fs-extra": {+ "version": "9.0.13",+ "resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-9.0.13.tgz",+ "integrity": "sha512-nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/node": "*"+ }+ },+ "node_modules/@types/http-cache-semantics": {+ "version": "4.2.0",+ "resolved": "https://registry.npmjs.org/@types/http-cache-semantics/-/http-cache-semantics-4.2.0.tgz",+ "integrity": "sha512-L3LgimLHXtGkWikKnsPg0/VFx9OGZaC+eN1u4r+OB1XRqH3meBIAVC2zr1WdMH+RHmnRkqliQAOHNJ/E0j/e0Q==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/keyv": {+ "version": "3.1.4",+ "resolved": "https://registry.npmjs.org/@types/keyv/-/keyv-3.1.4.tgz",+ "integrity": "sha512-BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/node": "*"+ }+ },+ "node_modules/@types/ms": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/@types/ms/-/ms-2.1.0.tgz",+ "integrity": "sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/node": {+ "version": "24.19.1",+ "resolved": "https://registry.npmjs.org/@types/node/-/node-24.19.1.tgz",+ "integrity": "sha512-aS3/DG0oM05K0RIXXP+hKjinGG5IgSSVGzswZxW3O0sS3pH4/fycXundUC9XsszgKCk4gHXylTEK6hyFxVxnoQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "undici-types": ">=7.24.0 <7.24.7"+ }+ },+ "node_modules/@types/qrcode": {+ "version": "1.5.6",+ "resolved": "https://registry.npmjs.org/@types/qrcode/-/qrcode-1.5.6.tgz",+ "integrity": "sha512-te7NQcV2BOvdj2b1hCAHzAoMNuj65kNBMz0KBaxM6c3VGBOhU0dURQKOtH8CFNI/dsKkwlv32p26qYQTWoB5bw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/node": "*"+ }+ },+ "node_modules/@types/react": {+ "version": "19.3.0",+ "resolved": "https://registry.npmjs.org/@types/react/-/react-19.3.0.tgz",+ "integrity": "sha512-N0rFCuH9YoxG9/m61l9MfpJKfmLOVU0em7ipIz6TRgSSkvReLB9vL85GB+yr8Bs5leqpvg96JSwF4ZS1s4viQg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "csstype": "^3.2.2"+ }+ },+ "node_modules/@types/react-dom": {+ "version": "19.3.0",+ "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.3.0.tgz",+ "integrity": "sha512-ZI7bU42mZXXKHn/qNLEw2IrbiINU7X5+vfgdixBHkCNpYWXjKgfQ/P+uyGb5CjOLB9UcnTeg3rylQtV2hym44Q==",+ "dev": true,+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "^19.3.0"+ }+ },+ "node_modules/@types/responselike": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/@types/responselike/-/responselike-1.0.3.tgz",+ "integrity": "sha512-H/+L+UkTV33uf49PH5pCAUBVPNj2nDBXTN+qS1dOwyyg24l3CcicicCA7ca+HMvJBZcFgl5r8e+RR6elsb4Lyw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/node": "*"+ }+ },+ "node_modules/@vitejs/plugin-react": {+ "version": "5.2.0",+ "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-5.2.0.tgz",+ "integrity": "sha512-YmKkfhOAi3wsB1PhJq5Scj3GXMn3WvtQ/JC0xoopuHoXSdmtdStOpFrYaT1kie2YgFBcIe64ROzMYRjCrYOdYw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/core": "^7.29.0",+ "@babel/plugin-transform-react-jsx-self": "^7.27.1",+ "@babel/plugin-transform-react-jsx-source": "^7.27.1",+ "@rolldown/pluginutils": "1.0.0-rc.3",+ "@types/babel__core": "^7.20.5",+ "react-refresh": "^0.18.0"+ },+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ },+ "peerDependencies": {+ "vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0"+ }+ },+ "node_modules/@xmldom/xmldom": {+ "version": "0.8.15",+ "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.8.15.tgz",+ "integrity": "sha512-/5NV/vDALVFDXgLmfsy9TRCBlKwO2LNBFzpzvb9iIj+jR+eSc6DLYYvVOdivT/jm7MtU6TebYuRmzEOI7w40UA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10.0.0"+ }+ },+ "node_modules/abbrev": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-4.0.0.tgz",+ "integrity": "sha512-a1wflyaL0tHtJSmLSOVybYhy22vRih4eduhhrkcjgrWGnRfrZtovJ2FRjxuTtkkj47O/baf0R86QU5OuYpz8fA==",+ "dev": true,+ "license": "ISC",+ "engines": {+ "node": "^20.17.0 || >=22.9.0"+ }+ },+ "node_modules/agent-base": {+ "version": "7.1.4",+ "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz",+ "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 14"+ }+ },+ "node_modules/ajv": {+ "version": "8.20.0",+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.20.0.tgz",+ "integrity": "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "fast-deep-equal": "^3.1.3",+ "fast-uri": "^3.0.1",+ "json-schema-traverse": "^1.0.0",+ "require-from-string": "^2.0.2"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/epoberezkin"+ }+ },+ "node_modules/ansi-regex": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/ansi-styles": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",+ "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "color-convert": "^2.0.1"+ },+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"+ }+ },+ "node_modules/app-builder-lib": {+ "version": "26.15.3",+ "resolved": "https://registry.npmjs.org/app-builder-lib/-/app-builder-lib-26.15.3.tgz",+ "integrity": "sha512-2VnyWkqsP5v5XbBhL3tD5Syx8iNPBYsoU7kY4S2fz7wg8Rj/nztWKCUzGKaFRTv0Xwf3/H058CR1Kvtd/3lRow==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@electron/asar": "3.4.1",+ "@electron/fuses": "^1.8.0",+ "@electron/get": "^3.0.0",+ "@electron/notarize": "2.5.0",+ "@electron/osx-sign": "1.3.3",+ "@electron/rebuild": "^4.0.4",+ "@electron/universal": "2.0.3",+ "@malept/flatpak-bundler": "^0.4.0",+ "@noble/hashes": "^2.2.0",+ "@peculiar/webcrypto": "^1.7.1",+ "@types/fs-extra": "9.0.13",+ "ajv": "^8.18.0",+ "asn1js": "^3.0.10",+ "async-exit-hook": "^2.0.1",+ "builder-util": "26.15.3",+ "builder-util-runtime": "9.7.0",+ "chromium-pickle-js": "^0.2.0",+ "ci-info": "4.3.1",+ "debug": "^4.3.4",+ "dotenv": "^16.4.5",+ "dotenv-expand": "^11.0.6",+ "ejs": "^3.1.8",+ "electron-publish": "26.15.3",+ "fs-extra": "^10.1.0",+ "hosted-git-info": "^4.1.0",+ "isbinaryfile": "^5.0.0",+ "jiti": "^2.4.2",+ "js-yaml": "^4.1.0",+ "json5": "^2.2.3",+ "lazy-val": "^1.0.5",+ "minimatch": "^10.2.5",+ "pkijs": "^3.4.0",+ "plist": "3.1.0",+ "proper-lockfile": "^4.1.2",+ "resedit": "^1.7.0",+ "semver": "~7.7.3",+ "tar": "^7.5.7",+ "temp-file": "^3.4.0",+ "tiny-async-pool": "1.3.0",+ "unzipper": "^0.12.3",+ "which": "^5.0.0"+ },+ "engines": {+ "node": ">=14.0.0"+ },+ "peerDependencies": {+ "dmg-builder": "26.15.3",+ "electron-builder-squirrel-windows": "26.15.3"+ }+ },+ "node_modules/app-builder-lib/node_modules/@electron/get": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/@electron/get/-/get-3.1.0.tgz",+ "integrity": "sha512-F+nKc0xW+kVbBRhFzaMgPy3KwmuNTYX1fx6+FxxoSnNgwYX6LD7AKBTWkU0MQ6IBoe7dz069CNkR673sPAgkCQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "debug": "^4.1.1",+ "env-paths": "^2.2.0",+ "fs-extra": "^8.1.0",+ "got": "^11.8.5",+ "progress": "^2.0.3",+ "semver": "^6.2.0",+ "sumchecker": "^3.0.1"+ },+ "engines": {+ "node": ">=14"+ },+ "optionalDependencies": {+ "global-agent": "^3.0.0"+ }+ },+ "node_modules/app-builder-lib/node_modules/@electron/get/node_modules/fs-extra": {+ "version": "8.1.0",+ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz",+ "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "graceful-fs": "^4.2.0",+ "jsonfile": "^4.0.0",+ "universalify": "^0.1.0"+ },+ "engines": {+ "node": ">=6 <7 || >=8"+ }+ },+ "node_modules/app-builder-lib/node_modules/@electron/get/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/app-builder-lib/node_modules/ci-info": {+ "version": "4.3.1",+ "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-4.3.1.tgz",+ "integrity": "sha512-Wdy2Igu8OcBpI2pZePZ5oWjPC38tmDVx5WKUXKwlLYkA0ozo85sLsLvkBbBn/sZaSCMFOGZJ14fvW9t5/d7kdA==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/sibiraj-s"+ }+ ],+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/app-builder-lib/node_modules/env-paths": {+ "version": "2.2.1",+ "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz",+ "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/app-builder-lib/node_modules/jsonfile": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz",+ "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==",+ "dev": true,+ "license": "MIT",+ "optionalDependencies": {+ "graceful-fs": "^4.1.6"+ }+ },+ "node_modules/app-builder-lib/node_modules/semver": {+ "version": "7.7.4",+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz",+ "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==",+ "dev": true,+ "license": "ISC",+ "bin": {+ "semver": "bin/semver.js"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/app-builder-lib/node_modules/universalify": {+ "version": "0.1.2",+ "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz",+ "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 4.0.0"+ }+ },+ "node_modules/argparse": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",+ "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",+ "dev": true,+ "license": "Python-2.0"+ },+ "node_modules/asn1js": {+ "version": "3.0.10",+ "resolved": "https://registry.npmjs.org/asn1js/-/asn1js-3.0.10.tgz",+ "integrity": "sha512-S2s3aOytiKdFRdulw2qPE51MzjzVOisppcVv7jVFR+Kw0kxwvFrDcYA0h7Ndqbmj0HkMIXYWaoj7fli8kgx1eg==",+ "dev": true,+ "license": "BSD-3-Clause",+ "dependencies": {+ "pvtsutils": "^1.3.6",+ "pvutils": "^1.1.5",+ "tslib": "^2.8.1"+ },+ "engines": {+ "node": ">=12.0.0"+ }+ },+ "node_modules/async": {+ "version": "3.2.6",+ "resolved": "https://registry.npmjs.org/async/-/async-3.2.6.tgz",+ "integrity": "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/async-exit-hook": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/async-exit-hook/-/async-exit-hook-2.0.1.tgz",+ "integrity": "sha512-NW2cX8m1Q7KPA7a5M2ULQeZ2wR5qI5PAbw5L0UOMxdioVk9PMZ0h1TmyZEkPYrCvYjDlFICusOu1dlEKAAeXBw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.12.0"+ }+ },+ "node_modules/asynckit": {+ "version": "0.4.0",+ "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",+ "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/at-least-node": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz",+ "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==",+ "dev": true,+ "license": "ISC",+ "engines": {+ "node": ">= 4.0.0"+ }+ },+ "node_modules/aws4": {+ "version": "1.13.2",+ "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.13.2.tgz",+ "integrity": "sha512-lHe62zvbTB5eEABUVi/AwVh0ZKY9rMMDhmm+eeyuuUQbQ3+J+fONVQOZyj+DdrvD4BY33uYniyRJ4UJIaSKAfw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/balanced-match": {+ "version": "4.0.4",+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz",+ "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "18 || 20 || >=22"+ }+ },+ "node_modules/base64-js": {+ "version": "1.5.1",+ "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",+ "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==",+ "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/baseline-browser-mapping": {+ "version": "2.11.27",+ "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.11.27.tgz",+ "integrity": "sha512-ElY12DaROGuan+lMmZ8Cvo/ZUbXPe7Enc/9VU/b1T3Kp4dwytRcNdR8DoSJN5SNJT/CuvcCA0DHDVmMOCePdRQ==",+ "dev": true,+ "license": "Apache-2.0",+ "bin": {+ "baseline-browser-mapping": "dist/cli.cjs"+ },+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/bluebird": {+ "version": "3.7.2",+ "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz",+ "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/boolean": {+ "version": "3.2.0",+ "resolved": "https://registry.npmjs.org/boolean/-/boolean-3.2.0.tgz",+ "integrity": "sha512-d0II/GO9uf9lfUHH2BQsjxzRJZBdsjgsBiW4BvhWk/3qoKwQFjIDVN19PfX8F2D/r9PCMTtLWjYVCFrpeYUzsw==",+ "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.",+ "dev": true,+ "license": "MIT",+ "optional": true+ },+ "node_modules/brace-expansion": {+ "version": "5.0.12",+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.12.tgz",+ "integrity": "sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "balanced-match": "^4.0.2"+ },+ "engines": {+ "node": "20 || >=22"+ }+ },+ "node_modules/browserslist": {+ "version": "4.29.3",+ "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.29.3.tgz",+ "integrity": "sha512-1R4kiYKXGViqEN0CnoDrXc1StD9niAwu+j2dukWzrD4bJgsD4lDmEp0CRbc6E/vYJIfTHwPmwyaKtVSudICdPA==",+ "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.26",+ "caniuse-lite": "^1.0.30001813",+ "electron-to-chromium": "^1.5.439",+ "node-releases": "^2.0.57",+ "update-browserslist-db": "^1.3.3"+ },+ "bin": {+ "browserslist": "cli.js"+ },+ "engines": {+ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"+ }+ },+ "node_modules/buffer-from": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz",+ "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/builder-util": {+ "version": "26.15.3",+ "resolved": "https://registry.npmjs.org/builder-util/-/builder-util-26.15.3.tgz",+ "integrity": "sha512-q2hn7Mbo2nFNkVekPiHFx6Nfo3hURmES3tfBn+k5Pqxl2RkmP3QGqZUhH/q9Pch/4G05NRhPjDlVj1O8q4Txvw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/debug": "^4.1.6",+ "builder-util-runtime": "9.7.0",+ "chalk": "^4.1.2",+ "cross-spawn": "^7.0.6",+ "debug": "^4.3.4",+ "fs-extra": "^10.1.0",+ "http-proxy-agent": "^7.0.0",+ "https-proxy-agent": "^7.0.0",+ "js-yaml": "^4.1.0",+ "sanitize-filename": "^1.6.3",+ "source-map-support": "^0.5.19",+ "stat-mode": "^1.0.0",+ "temp-file": "^3.4.0",+ "tiny-async-pool": "1.3.0"+ },+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/builder-util-runtime": {+ "version": "9.7.0",+ "resolved": "https://registry.npmjs.org/builder-util-runtime/-/builder-util-runtime-9.7.0.tgz",+ "integrity": "sha512-g/kR520giAFYkSXTzcmF3kqQq7wi8F6N6SzeDgZrqTBN+VHdmgWOyTdD1yD7AATDId/yXLvuP34CxW46/BwCdw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "debug": "^4.3.4",+ "sax": "^1.2.4"+ },+ "engines": {+ "node": ">=12.0.0"+ }+ },+ "node_modules/bytestreamjs": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/bytestreamjs/-/bytestreamjs-2.0.1.tgz",+ "integrity": "sha512-U1Z/ob71V/bXfVABvNr/Kumf5VyeQRBEm6Txb0PQ6S7V5GpBM3w4Cbqz/xPDicR5tN0uvDifng8C+5qECeGwyQ==",+ "dev": true,+ "license": "BSD-3-Clause",+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/cac": {+ "version": "6.7.14",+ "resolved": "https://registry.npmjs.org/cac/-/cac-6.7.14.tgz",+ "integrity": "sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/cacheable-lookup": {+ "version": "5.0.4",+ "resolved": "https://registry.npmjs.org/cacheable-lookup/-/cacheable-lookup-5.0.4.tgz",+ "integrity": "sha512-2/kNscPhpcxrOigMZzbiWF7dz8ilhb/nIHU3EyZiXWXpeq/au8qJ8VhdftMkty3n7Gj6HIGalQG8oiBNB3AJgA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10.6.0"+ }+ },+ "node_modules/cacheable-request": {+ "version": "7.0.4",+ "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-7.0.4.tgz",+ "integrity": "sha512-v+p6ongsrp0yTGbJXjgxPow2+DL93DASP4kXCDKb8/bwRtt9OEF3whggkkDkGNzgcWy2XaF4a8nZglC7uElscg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "clone-response": "^1.0.2",+ "get-stream": "^5.1.0",+ "http-cache-semantics": "^4.0.0",+ "keyv": "^4.0.0",+ "lowercase-keys": "^2.0.0",+ "normalize-url": "^6.0.1",+ "responselike": "^2.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/call-bind-apply-helpers": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",+ "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0",+ "function-bind": "^1.1.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/camelcase": {+ "version": "5.3.1",+ "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz",+ "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/caniuse-lite": {+ "version": "1.0.30001814",+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001814.tgz",+ "integrity": "sha512-/Uaf1lAzr59XcMpW0o96WoEfr+VXK2OX4U9AgFoiSHsVJ4HppnIFUjtYzsyDH2+tgANaQb2/oxYGwCPapN1FpA==",+ "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/chalk": {+ "version": "4.1.2",+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",+ "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ansi-styles": "^4.1.0",+ "supports-color": "^7.1.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/chalk/chalk?sponsor=1"+ }+ },+ "node_modules/chownr": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/chownr/-/chownr-3.0.0.tgz",+ "integrity": "sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==",+ "dev": true,+ "license": "BlueOak-1.0.0",+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/chromium-pickle-js": {+ "version": "0.2.0",+ "resolved": "https://registry.npmjs.org/chromium-pickle-js/-/chromium-pickle-js-0.2.0.tgz",+ "integrity": "sha512-1R5Fho+jBq0DDydt+/vHWj5KJNJCKdARKOCwZUen84I5BreWoLqRLANH1U87eJy1tiASPtMnGqJJq0ZsLoRPOw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/ci-info": {+ "version": "4.4.0",+ "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-4.4.0.tgz",+ "integrity": "sha512-77PSwercCZU2Fc4sX94eF8k8Pxte6JAwL4/ICZLFjJLqegs7kCuAsqqj/70NQF6TvDpgFjkubQB2FW2ZZddvQg==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/sibiraj-s"+ }+ ],+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/cliui": {+ "version": "8.0.1",+ "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz",+ "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "string-width": "^4.2.0",+ "strip-ansi": "^6.0.1",+ "wrap-ansi": "^7.0.0"+ },+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/clone-response": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.3.tgz",+ "integrity": "sha512-ROoL94jJH2dUVML2Y/5PEDNaSHgeOdSDicUyS7izcF63G6sTc/FTjLub4b8Il9S8S0beOfYt0TaA5qvFK+w0wA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "mimic-response": "^1.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/color-convert": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "color-name": "~1.1.4"+ },+ "engines": {+ "node": ">=7.0.0"+ }+ },+ "node_modules/color-name": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/combined-stream": {+ "version": "1.0.8",+ "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",+ "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "delayed-stream": "~1.0.0"+ },+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/commander": {+ "version": "5.1.0",+ "resolved": "https://registry.npmjs.org/commander/-/commander-5.1.0.tgz",+ "integrity": "sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/compare-version": {+ "version": "0.1.2",+ "resolved": "https://registry.npmjs.org/compare-version/-/compare-version-0.1.2.tgz",+ "integrity": "sha512-pJDh5/4wrEnXX/VWRZvruAGHkzKdr46z11OlTPN+VrATlWWhSKewNCJ1futCO5C7eJB3nPMFZA1LeYtcFboZ2A==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/concat-map": {+ "version": "0.0.1",+ "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",+ "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",+ "dev": true,+ "license": "MIT"+ },+ "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/core-util-is": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz",+ "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/cross-dirname": {+ "version": "0.1.0",+ "resolved": "https://registry.npmjs.org/cross-dirname/-/cross-dirname-0.1.0.tgz",+ "integrity": "sha512-+R08/oI0nl3vfPcqftZRpytksBXDzOUveBq/NBVx0sUp1axwzPQrKinNx5yd5sxPu8j1wIy8AfnVQ+5eFdha6Q==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "peer": true+ },+ "node_modules/cross-spawn": {+ "version": "7.0.6",+ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",+ "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "path-key": "^3.1.0",+ "shebang-command": "^2.0.0",+ "which": "^2.0.1"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/cross-spawn/node_modules/isexe": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",+ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/cross-spawn/node_modules/which": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",+ "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "isexe": "^2.0.0"+ },+ "bin": {+ "node-which": "bin/node-which"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/csstype": {+ "version": "3.2.3",+ "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz",+ "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/debug": {+ "version": "4.4.3",+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",+ "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ms": "^2.1.3"+ },+ "engines": {+ "node": ">=6.0"+ },+ "peerDependenciesMeta": {+ "supports-color": {+ "optional": true+ }+ }+ },+ "node_modules/decamelize": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz",+ "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/decompress-response": {+ "version": "6.0.0",+ "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz",+ "integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "mimic-response": "^3.1.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/decompress-response/node_modules/mimic-response": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz",+ "integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/defer-to-connect": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-2.0.1.tgz",+ "integrity": "sha512-4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/define-data-property": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz",+ "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "es-define-property": "^1.0.0",+ "es-errors": "^1.3.0",+ "gopd": "^1.0.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/define-properties": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz",+ "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "define-data-property": "^1.0.1",+ "has-property-descriptors": "^1.0.0",+ "object-keys": "^1.1.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/delayed-stream": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",+ "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.4.0"+ }+ },+ "node_modules/detect-node": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz",+ "integrity": "sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==",+ "dev": true,+ "license": "MIT",+ "optional": true+ },+ "node_modules/dijkstrajs": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/dijkstrajs/-/dijkstrajs-1.0.3.tgz",+ "integrity": "sha512-qiSlmBq9+BCdCA/L46dw8Uy93mloxsPSbwnm5yrKn2vMPiy8KyAskTF6zuV/j5BMsmOGZDPs7KjU+mjb670kfA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/dir-compare": {+ "version": "4.2.0",+ "resolved": "https://registry.npmjs.org/dir-compare/-/dir-compare-4.2.0.tgz",+ "integrity": "sha512-2xMCmOoMrdQIPHdsTawECdNPwlVFB9zGcz3kuhmBO6U3oU+UQjsue0i8ayLKpgBcm+hcXPMVSGUN9d+pvJ6+VQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "minimatch": "^3.0.5",+ "p-limit": "^3.1.0 "+ }+ },+ "node_modules/dir-compare/node_modules/balanced-match": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",+ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/dir-compare/node_modules/brace-expansion": {+ "version": "1.1.21",+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.21.tgz",+ "integrity": "sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "balanced-match": "^1.0.0",+ "concat-map": "0.0.1"+ }+ },+ "node_modules/dir-compare/node_modules/minimatch": {+ "version": "3.1.5",+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz",+ "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "brace-expansion": "^1.1.7"+ },+ "engines": {+ "node": "*"+ }+ },+ "node_modules/dmg-builder": {+ "version": "26.15.3",+ "resolved": "https://registry.npmjs.org/dmg-builder/-/dmg-builder-26.15.3.tgz",+ "integrity": "sha512-O3zJUFUYHJKgzPqioHxfxzBzlSC1eXCSr79gMSBKBP5AgjjpmrydMsMLotEg9fAJF36vdUncb+4ndRNxoPdlSQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "app-builder-lib": "26.15.3",+ "builder-util": "26.15.3",+ "fs-extra": "^10.1.0",+ "js-yaml": "^4.1.0"+ }+ },+ "node_modules/dotenv": {+ "version": "16.6.1",+ "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.6.1.tgz",+ "integrity": "sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==",+ "dev": true,+ "license": "BSD-2-Clause",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://dotenvx.com"+ }+ },+ "node_modules/dotenv-expand": {+ "version": "11.0.7",+ "resolved": "https://registry.npmjs.org/dotenv-expand/-/dotenv-expand-11.0.7.tgz",+ "integrity": "sha512-zIHwmZPRshsCdpMDyVsqGmgyP0yT8GAgXUnkdAoJisxvf33k7yO6OuoKmcTGuXPWSsm8Oh88nZicRLA9Y0rUeA==",+ "dev": true,+ "license": "BSD-2-Clause",+ "dependencies": {+ "dotenv": "^16.4.5"+ },+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://dotenvx.com"+ }+ },+ "node_modules/dunder-proto": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",+ "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind-apply-helpers": "^1.0.1",+ "es-errors": "^1.3.0",+ "gopd": "^1.2.0"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/duplexer2": {+ "version": "0.1.4",+ "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz",+ "integrity": "sha512-asLFVfWWtJ90ZyOUHMqk7/S2w2guQKxUI2itj3d92ADHhxUSbCMGi1f1cBcJ7xM1To+pE/Khbwo1yuNbMEPKeA==",+ "dev": true,+ "license": "BSD-3-Clause",+ "dependencies": {+ "readable-stream": "^2.0.2"+ }+ },+ "node_modules/ejs": {+ "version": "3.1.10",+ "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.10.tgz",+ "integrity": "sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==",+ "dev": true,+ "license": "Apache-2.0",+ "dependencies": {+ "jake": "^10.8.5"+ },+ "bin": {+ "ejs": "bin/cli.js"+ },+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/electron": {+ "version": "44.5.1",+ "resolved": "https://registry.npmjs.org/electron/-/electron-44.5.1.tgz",+ "integrity": "sha512-lx7AYoFIiyvEvgvpyWO9kOC60xtNPpiPZAth6Fmg9NutzpCAMLwpUlaBY2EXfZyIgUdzEmLMj9KvK0Vrokl1yQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@electron-internal/extract-zip": "^1.0.1",+ "@electron/get": "^5.0.0",+ "@types/node": "^24.9.0"+ },+ "bin": {+ "electron": "cli.js",+ "install-electron": "install.js"+ },+ "engines": {+ "node": ">= 22.12.0"+ }+ },+ "node_modules/electron-builder": {+ "version": "26.15.3",+ "resolved": "https://registry.npmjs.org/electron-builder/-/electron-builder-26.15.3.tgz",+ "integrity": "sha512-a1KM5heqS3gQCZzizXEI8RjJy3QVogULPdeSknt76uLDpBIW/HDGsMg/XgP0riP6PI9COsRvFITKKGDqA8fJxA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "app-builder-lib": "26.15.3",+ "builder-util": "26.15.3",+ "builder-util-runtime": "9.7.0",+ "chalk": "^4.1.2",+ "ci-info": "^4.2.0",+ "dmg-builder": "26.15.3",+ "fs-extra": "^10.1.0",+ "lazy-val": "^1.0.5",+ "simple-update-notifier": "2.0.0",+ "yargs": "^17.6.2"+ },+ "bin": {+ "electron-builder": "cli.js",+ "install-app-deps": "install-app-deps.js"+ },+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/electron-builder-squirrel-windows": {+ "version": "26.15.3",+ "resolved": "https://registry.npmjs.org/electron-builder-squirrel-windows/-/electron-builder-squirrel-windows-26.15.3.tgz",+ "integrity": "sha512-Jc19XPV9y9+2bAdZPkXuVNGNIEFBq9poHC61l8Kv6FdK7DRG3+Ic0rerC0DXOaeHNz8yW0fg/JnF8GQROOF5MA==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "app-builder-lib": "26.15.3",+ "builder-util": "26.15.3",+ "electron-winstaller": "5.4.0"+ }+ },+ "node_modules/electron-publish": {+ "version": "26.15.3",+ "resolved": "https://registry.npmjs.org/electron-publish/-/electron-publish-26.15.3.tgz",+ "integrity": "sha512-g/2bn8YTavY4cuS5F+jOS7zmZbXXBV8KZ8yHKfJjFPoKtzBqrpCdNPxBd3tqdBwP7BVd0lGzf7Bk2s0KesWZ4Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/fs-extra": "^9.0.11",+ "aws4": "^1.13.2",+ "builder-util": "26.15.3",+ "builder-util-runtime": "9.7.0",+ "chalk": "^4.1.2",+ "form-data": "^4.0.5",+ "fs-extra": "^10.1.0",+ "lazy-val": "^1.0.5",+ "mime": "^2.5.2"+ }+ },+ "node_modules/electron-to-chromium": {+ "version": "1.5.444",+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.444.tgz",+ "integrity": "sha512-5ss/uJfoDYDHT0lfJzT6FbcskIzROIOPf0BbbFkGcvDzoJU7i//9GDrwwIHQVmIsrAGiF3ihpADBRIsrEFt1rQ==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/electron-vite": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/electron-vite/-/electron-vite-5.0.0.tgz",+ "integrity": "sha512-OHp/vjdlubNlhNkPkL/+3JD34ii5ov7M0GpuXEVdQeqdQ3ulvVR7Dg/rNBLfS5XPIFwgoBLDf9sjjrL+CuDyRQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/core": "^7.28.4",+ "@babel/plugin-transform-arrow-functions": "^7.27.1",+ "cac": "^6.7.14",+ "esbuild": "^0.25.11",+ "magic-string": "^0.30.19",+ "picocolors": "^1.1.1"+ },+ "bin": {+ "electron-vite": "bin/electron-vite.js"+ },+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ },+ "peerDependencies": {+ "@swc/core": "^1.0.0",+ "vite": "^5.0.0 || ^6.0.0 || ^7.0.0"+ },+ "peerDependenciesMeta": {+ "@swc/core": {+ "optional": true+ }+ }+ },+ "node_modules/electron-winstaller": {+ "version": "5.4.0",+ "resolved": "https://registry.npmjs.org/electron-winstaller/-/electron-winstaller-5.4.0.tgz",+ "integrity": "sha512-bO3y10YikuUwUuDUQRM4KfwNkKhnpVO7IPdbsrejwN9/AABJzzTQ4GeHwyzNSrVO+tEH3/Np255a3sVZpZDjvg==",+ "dev": true,+ "hasInstallScript": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "@electron/asar": "^3.2.1",+ "debug": "^4.1.1",+ "fs-extra": "^7.0.1",+ "lodash": "^4.17.21",+ "temp": "^0.9.0"+ },+ "engines": {+ "node": ">=8.0.0"+ },+ "optionalDependencies": {+ "@electron/windows-sign": "^1.1.2"+ }+ },+ "node_modules/electron-winstaller/node_modules/fs-extra": {+ "version": "7.0.1",+ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz",+ "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "graceful-fs": "^4.1.2",+ "jsonfile": "^4.0.0",+ "universalify": "^0.1.0"+ },+ "engines": {+ "node": ">=6 <7 || >=8"+ }+ },+ "node_modules/electron-winstaller/node_modules/jsonfile": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz",+ "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "optionalDependencies": {+ "graceful-fs": "^4.1.6"+ }+ },+ "node_modules/electron-winstaller/node_modules/universalify": {+ "version": "0.1.2",+ "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz",+ "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "engines": {+ "node": ">= 4.0.0"+ }+ },+ "node_modules/emoji-regex": {+ "version": "8.0.0",+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/end-of-stream": {+ "version": "1.4.5",+ "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.5.tgz",+ "integrity": "sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "once": "^1.4.0"+ }+ },+ "node_modules/env-paths": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-3.0.0.tgz",+ "integrity": "sha512-dtJUTepzMW3Lm/NPxRf3wP4642UWhjL2sQxc+ym2YMj1m/H2zDNQOlezafzkHwn6sMstjHTwG6iQQsctDW/b1A==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/err-code": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/err-code/-/err-code-2.0.3.tgz",+ "integrity": "sha512-2bmlRpNKBxT/CRmPOlyISQpNj+qSeYvcym/uT0Jx2bMOlKLtSy1ZmLuVxSEKKyor/N5yhvp/ZiG1oE3DEYMSFA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/es-define-property": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",+ "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "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/es-object-atoms": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.2.tgz",+ "integrity": "sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/es-set-tostringtag": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz",+ "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0",+ "get-intrinsic": "^1.2.6",+ "has-tostringtag": "^1.0.2",+ "hasown": "^2.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/es6-error": {+ "version": "4.1.1",+ "resolved": "https://registry.npmjs.org/es6-error/-/es6-error-4.1.1.tgz",+ "integrity": "sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==",+ "dev": true,+ "license": "MIT",+ "optional": true+ },+ "node_modules/esbuild": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.12.tgz",+ "integrity": "sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==",+ "dev": true,+ "hasInstallScript": true,+ "license": "MIT",+ "bin": {+ "esbuild": "bin/esbuild"+ },+ "engines": {+ "node": ">=18"+ },+ "optionalDependencies": {+ "@esbuild/aix-ppc64": "0.25.12",+ "@esbuild/android-arm": "0.25.12",+ "@esbuild/android-arm64": "0.25.12",+ "@esbuild/android-x64": "0.25.12",+ "@esbuild/darwin-arm64": "0.25.12",+ "@esbuild/darwin-x64": "0.25.12",+ "@esbuild/freebsd-arm64": "0.25.12",+ "@esbuild/freebsd-x64": "0.25.12",+ "@esbuild/linux-arm": "0.25.12",+ "@esbuild/linux-arm64": "0.25.12",+ "@esbuild/linux-ia32": "0.25.12",+ "@esbuild/linux-loong64": "0.25.12",+ "@esbuild/linux-mips64el": "0.25.12",+ "@esbuild/linux-ppc64": "0.25.12",+ "@esbuild/linux-riscv64": "0.25.12",+ "@esbuild/linux-s390x": "0.25.12",+ "@esbuild/linux-x64": "0.25.12",+ "@esbuild/netbsd-arm64": "0.25.12",+ "@esbuild/netbsd-x64": "0.25.12",+ "@esbuild/openbsd-arm64": "0.25.12",+ "@esbuild/openbsd-x64": "0.25.12",+ "@esbuild/openharmony-arm64": "0.25.12",+ "@esbuild/sunos-x64": "0.25.12",+ "@esbuild/win32-arm64": "0.25.12",+ "@esbuild/win32-ia32": "0.25.12",+ "@esbuild/win32-x64": "0.25.12"+ }+ },+ "node_modules/escalade": {+ "version": "3.2.0",+ "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",+ "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/escape-string-regexp": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",+ "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/exponential-backoff": {+ "version": "3.1.3",+ "resolved": "https://registry.npmjs.org/exponential-backoff/-/exponential-backoff-3.1.3.tgz",+ "integrity": "sha512-ZgEeZXj30q+I0EN+CbSSpIyPaJ5HVQD18Z1m+u1FXbAeT94mr1zw50q4q6jiiC447Nl/YTcIYSAftiGqetwXCA==",+ "dev": true,+ "license": "Apache-2.0"+ },+ "node_modules/fast-deep-equal": {+ "version": "3.1.3",+ "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",+ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/fast-uri": {+ "version": "3.1.8",+ "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.8.tgz",+ "integrity": "sha512-GZMtZUTNRpOVIECoXwLNZS5xUGE+mVNbTB8h/7Rwh2TFWcBQiPzTgyZi05BF9UMZKkLJv8XBRJTlU7zg8+ZfMg==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/fastify"+ },+ {+ "type": "opencollective",+ "url": "https://opencollective.com/fastify"+ }+ ],+ "license": "BSD-3-Clause"+ },+ "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/filelist": {+ "version": "1.0.6",+ "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.6.tgz",+ "integrity": "sha512-5giy2PkLYY1cP39p17Ech+2xlpTRL9HLspOfEgm0L6CwBXBTgsK5ou0JtzYuepxkaQ/tvhCFIJ5uXo0OrM2DxA==",+ "dev": true,+ "license": "Apache-2.0",+ "dependencies": {+ "minimatch": "^5.0.1"+ }+ },+ "node_modules/filelist/node_modules/balanced-match": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",+ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/filelist/node_modules/brace-expansion": {+ "version": "2.1.7",+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.7.tgz",+ "integrity": "sha512-uZbew1NqdmPDTMJ8ah1y+b+9QEJrfkXFk3RcTQw3X0jW/xRUvFKsg1CfQdSYGdTbXZWExtU3J3ccxtnfw1Fi0g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "balanced-match": "^1.0.0"+ }+ },+ "node_modules/filelist/node_modules/minimatch": {+ "version": "5.1.9",+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.9.tgz",+ "integrity": "sha512-7o1wEA2RyMP7Iu7GNba9vc0RWWGACJOCZBJX2GJWip0ikV+wcOsgVuY9uE8CPiyQhkGFSlhuSkZPavN7u1c2Fw==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "brace-expansion": "^2.0.1"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/find-up": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz",+ "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "locate-path": "^5.0.0",+ "path-exists": "^4.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/form-data": {+ "version": "4.0.6",+ "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.6.tgz",+ "integrity": "sha512-vKatAh4SlVfgbv+YtmhiRjhEMJsYpsG1Y2rMQtR+SVSbytsSD1YGzDIcrAJmdFec88u/+VoGmxnl+80gL1tRCQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "asynckit": "^0.4.0",+ "combined-stream": "^1.0.8",+ "es-set-tostringtag": "^2.1.0",+ "hasown": "^2.0.4",+ "mime-types": "^2.1.35"+ },+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/fs-extra": {+ "version": "10.1.0",+ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz",+ "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "graceful-fs": "^4.2.0",+ "jsonfile": "^6.0.1",+ "universalify": "^2.0.0"+ },+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/fs.realpath": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",+ "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==",+ "dev": true,+ "license": "ISC"+ },+ "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/get-caller-file": {+ "version": "2.0.5",+ "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",+ "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",+ "dev": true,+ "license": "ISC",+ "engines": {+ "node": "6.* || 8.* || >= 10.*"+ }+ },+ "node_modules/get-intrinsic": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz",+ "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind-apply-helpers": "^1.0.2",+ "es-define-property": "^1.0.1",+ "es-errors": "^1.3.0",+ "es-object-atoms": "^1.1.1",+ "function-bind": "^1.1.2",+ "get-proto": "^1.0.1",+ "gopd": "^1.2.0",+ "has-symbols": "^1.1.0",+ "hasown": "^2.0.2",+ "math-intrinsics": "^1.1.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/get-proto": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",+ "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "dunder-proto": "^1.0.1",+ "es-object-atoms": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/get-stream": {+ "version": "5.2.0",+ "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz",+ "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "pump": "^3.0.0"+ },+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/glob": {+ "version": "7.2.3",+ "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",+ "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==",+ "deprecated": "Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting [email protected]",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "fs.realpath": "^1.0.0",+ "inflight": "^1.0.4",+ "inherits": "2",+ "minimatch": "^3.1.1",+ "once": "^1.3.0",+ "path-is-absolute": "^1.0.0"+ },+ "engines": {+ "node": "*"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/glob/node_modules/balanced-match": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",+ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/glob/node_modules/brace-expansion": {+ "version": "1.1.21",+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.21.tgz",+ "integrity": "sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "balanced-match": "^1.0.0",+ "concat-map": "0.0.1"+ }+ },+ "node_modules/glob/node_modules/minimatch": {+ "version": "3.1.5",+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz",+ "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "brace-expansion": "^1.1.7"+ },+ "engines": {+ "node": "*"+ }+ },+ "node_modules/global-agent": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/global-agent/-/global-agent-3.0.0.tgz",+ "integrity": "sha512-PT6XReJ+D07JvGoxQMkT6qji/jVNfX/h364XHZOWeRzy64sSFr+xJ5OX7LI3b4MPQzdL4H8Y8M0xzPpsVMwA8Q==",+ "dev": true,+ "license": "BSD-3-Clause",+ "optional": true,+ "dependencies": {+ "boolean": "^3.0.1",+ "es6-error": "^4.1.1",+ "matcher": "^3.0.0",+ "roarr": "^2.15.3",+ "semver": "^7.3.2",+ "serialize-error": "^7.0.1"+ },+ "engines": {+ "node": ">=10.0"+ }+ },+ "node_modules/global-agent/node_modules/semver": {+ "version": "7.8.5",+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",+ "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==",+ "dev": true,+ "license": "ISC",+ "optional": true,+ "bin": {+ "semver": "bin/semver.js"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/globalthis": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.4.tgz",+ "integrity": "sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "define-properties": "^1.2.1",+ "gopd": "^1.0.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/gopd": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",+ "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/got": {+ "version": "11.8.6",+ "resolved": "https://registry.npmjs.org/got/-/got-11.8.6.tgz",+ "integrity": "sha512-6tfZ91bOr7bOXnK7PRDCGBLa1H4U080YHNaAQ2KsMGlLEzRbk44nsZF2E1IeRc3vtJHPVbKCYgdFbaGO2ljd8g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@sindresorhus/is": "^4.0.0",+ "@szmarczak/http-timer": "^4.0.5",+ "@types/cacheable-request": "^6.0.1",+ "@types/responselike": "^1.0.0",+ "cacheable-lookup": "^5.0.3",+ "cacheable-request": "^7.0.2",+ "decompress-response": "^6.0.0",+ "http2-wrapper": "^1.0.0-beta.5.2",+ "lowercase-keys": "^2.0.0",+ "p-cancelable": "^2.0.0",+ "responselike": "^2.0.0"+ },+ "engines": {+ "node": ">=10.19.0"+ },+ "funding": {+ "url": "https://github.com/sindresorhus/got?sponsor=1"+ }+ },+ "node_modules/graceful-fs": {+ "version": "4.2.11",+ "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",+ "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/has-flag": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",+ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/has-property-descriptors": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz",+ "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "es-define-property": "^1.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/has-symbols": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",+ "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/has-tostringtag": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz",+ "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "has-symbols": "^1.0.3"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "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/hosted-git-info": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.1.0.tgz",+ "integrity": "sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "lru-cache": "^6.0.0"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/hosted-git-info/node_modules/lru-cache": {+ "version": "6.0.0",+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",+ "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "yallist": "^4.0.0"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/hosted-git-info/node_modules/yallist": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",+ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/http-cache-semantics": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.3.0.tgz",+ "integrity": "sha512-M5t5LlJpS1UHMjvwRQVdFHvPISGeLAxNcrWuJkeGh0KxsqCHZ1O3NXZU/8x7cD0BDcGW8kapxMKTvwlqrNkHkA==",+ "dev": true,+ "license": "BSD-2-Clause"+ },+ "node_modules/http-proxy-agent": {+ "version": "7.0.2",+ "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz",+ "integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "agent-base": "^7.1.0",+ "debug": "^4.3.4"+ },+ "engines": {+ "node": ">= 14"+ }+ },+ "node_modules/http2-wrapper": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/http2-wrapper/-/http2-wrapper-1.0.3.tgz",+ "integrity": "sha512-V+23sDMr12Wnz7iTcDeJr3O6AIxlnvT/bmaAAAP/Xda35C90p9599p0F1eHR/N1KILWSoWVAiOMFjBBXaXSMxg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "quick-lru": "^5.1.1",+ "resolve-alpn": "^1.0.0"+ },+ "engines": {+ "node": ">=10.19.0"+ }+ },+ "node_modules/https-proxy-agent": {+ "version": "7.0.6",+ "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz",+ "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "agent-base": "^7.1.2",+ "debug": "4"+ },+ "engines": {+ "node": ">= 14"+ }+ },+ "node_modules/inflight": {+ "version": "1.0.6",+ "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",+ "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==",+ "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "once": "^1.3.0",+ "wrappy": "1"+ }+ },+ "node_modules/inherits": {+ "version": "2.0.4",+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",+ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/is-fullwidth-code-point": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/isarray": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",+ "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/isbinaryfile": {+ "version": "5.0.7",+ "resolved": "https://registry.npmjs.org/isbinaryfile/-/isbinaryfile-5.0.7.tgz",+ "integrity": "sha512-gnWD14Jh3FzS3CPhF0AxNOJ8CxqeblPTADzI38r0wt8ZyQl5edpy75myt08EG2oKvpyiqSqsx+Wkz9vtkbTqYQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 18.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/gjtorikian/"+ }+ },+ "node_modules/isexe": {+ "version": "3.1.5",+ "resolved": "https://registry.npmjs.org/isexe/-/isexe-3.1.5.tgz",+ "integrity": "sha512-6B3tLtFqtQS4ekarvLVMZ+X+VlvQekbe4taUkf/rhVO3d/h0M2rfARm/pXLcPEsjjMsFgrFgSrhQIxcSVrBz8w==",+ "dev": true,+ "license": "BlueOak-1.0.0",+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/jake": {+ "version": "10.9.4",+ "resolved": "https://registry.npmjs.org/jake/-/jake-10.9.4.tgz",+ "integrity": "sha512-wpHYzhxiVQL+IV05BLE2Xn34zW1S223hvjtqk0+gsPrwd/8JNLXJgZZM/iPFsYc1xyphF+6M6EvdE5E9MBGkDA==",+ "dev": true,+ "license": "Apache-2.0",+ "dependencies": {+ "async": "^3.2.6",+ "filelist": "^1.0.4",+ "picocolors": "^1.1.1"+ },+ "bin": {+ "jake": "bin/cli.js"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/jiti": {+ "version": "2.7.0",+ "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.7.0.tgz",+ "integrity": "sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "jiti": "lib/jiti-cli.mjs"+ }+ },+ "node_modules/js-tokens": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",+ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/js-yaml": {+ "version": "4.3.2",+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.2.tgz",+ "integrity": "sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/puzrin"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/nodeca"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "argparse": "^2.0.1"+ },+ "bin": {+ "js-yaml": "bin/js-yaml.js"+ }+ },+ "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/json-buffer": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz",+ "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/json-schema-traverse": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",+ "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/json-stringify-safe": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz",+ "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==",+ "dev": true,+ "license": "ISC",+ "optional": true+ },+ "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/jsonfile": {+ "version": "6.2.1",+ "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz",+ "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "universalify": "^2.0.0"+ },+ "optionalDependencies": {+ "graceful-fs": "^4.1.6"+ }+ },+ "node_modules/keyv": {+ "version": "4.5.4",+ "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz",+ "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "json-buffer": "3.0.1"+ }+ },+ "node_modules/lazy-val": {+ "version": "1.0.5",+ "resolved": "https://registry.npmjs.org/lazy-val/-/lazy-val-1.0.5.tgz",+ "integrity": "sha512-0/BnGCCfyUMkBpeDgWihanIAF9JmZhHBgUhEqzvf+adhNGLoP6TaiI5oF8oyb3I45P+PcnrqihSf01M0l0G5+Q==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/locate-path": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz",+ "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "p-locate": "^4.1.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/lodash": {+ "version": "4.18.1",+ "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.18.1.tgz",+ "integrity": "sha512-dMInicTPVE8d1e5otfwmmjlxkZoUpiVLwyeTdUsi/Caj/gfzzblBcCE5sRHV/AsjuCmxWrte2TNGSYuCeCq+0Q==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/lowercase-keys": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz",+ "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "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": {+ "version": "1.52.0",+ "resolved": "https://registry.npmjs.org/lucide/-/lucide-1.52.0.tgz",+ "integrity": "sha512-XlP0U+m3seobjTPfT0Ybg9YqJeTwSxx1I6R2Ty7vwpA/4HtibMbV28p9tW7AnIwb77YkTboK9x/OPBEqGAzCFg==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/magic-string": {+ "version": "0.30.21",+ "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz",+ "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/sourcemap-codec": "^1.5.5"+ }+ },+ "node_modules/matcher": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/matcher/-/matcher-3.0.0.tgz",+ "integrity": "sha512-OkeDaAZ/bQCxeFAozM55PKcKU0yJMPGifLwV4Qgjitu+5MoAfSQN4lsLJeXZ1b8w0x+/Emda6MZgXS1jvsapng==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "escape-string-regexp": "^4.0.0"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/math-intrinsics": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",+ "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/mime": {+ "version": "2.6.0",+ "resolved": "https://registry.npmjs.org/mime/-/mime-2.6.0.tgz",+ "integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "mime": "cli.js"+ },+ "engines": {+ "node": ">=4.0.0"+ }+ },+ "node_modules/mime-db": {+ "version": "1.52.0",+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",+ "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/mime-types": {+ "version": "2.1.35",+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",+ "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "mime-db": "1.52.0"+ },+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/mimic-response": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz",+ "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/minimatch": {+ "version": "10.2.6",+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.6.tgz",+ "integrity": "sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==",+ "dev": true,+ "license": "BlueOak-1.0.0",+ "dependencies": {+ "brace-expansion": "^5.0.8"+ },+ "engines": {+ "node": "18 || 20 || >=22"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/minimist": {+ "version": "1.2.8",+ "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz",+ "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==",+ "dev": true,+ "license": "MIT",+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/minipass": {+ "version": "7.1.3",+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.3.tgz",+ "integrity": "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==",+ "dev": true,+ "license": "BlueOak-1.0.0",+ "engines": {+ "node": ">=16 || 14 >=14.17"+ }+ },+ "node_modules/minizlib": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-3.1.0.tgz",+ "integrity": "sha512-KZxYo1BUkWD2TVFLr0MQoM8vUUigWD3LlD83a/75BqC+4qE0Hb1Vo5v1FgcfaNXvfXzr+5EhQ6ing/CaBijTlw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "minipass": "^7.1.2"+ },+ "engines": {+ "node": ">= 18"+ }+ },+ "node_modules/mkdirp": {+ "version": "0.5.6",+ "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz",+ "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "minimist": "^1.2.6"+ },+ "bin": {+ "mkdirp": "bin/cmd.js"+ }+ },+ "node_modules/ms": {+ "version": "2.1.3",+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/nanoid": {+ "version": "3.3.19",+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.19.tgz",+ "integrity": "sha512-Y2tUNy4ouw6tq5oDSKeQYGOyhkUBhNOcGV/02KC+6kd9eDGqdZd++mjMiIDilrBYvjEnCYvVtsuHCuP+okSfug==",+ "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-abi": {+ "version": "4.35.0",+ "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-4.35.0.tgz",+ "integrity": "sha512-ymk4aIzxdPopw2giv8Fs1Ec6vybGkjmyxUwVqhkI4MCy2tVfXdkOGGWieWVjL0THgH+7a8lRdevyupoYj3Js/Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "semver": "^7.6.3"+ },+ "engines": {+ "node": ">=22.12.0"+ }+ },+ "node_modules/node-abi/node_modules/semver": {+ "version": "7.8.5",+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",+ "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==",+ "dev": true,+ "license": "ISC",+ "bin": {+ "semver": "bin/semver.js"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/node-api-version": {+ "version": "0.2.1",+ "resolved": "https://registry.npmjs.org/node-api-version/-/node-api-version-0.2.1.tgz",+ "integrity": "sha512-2xP/IGGMmmSQpI1+O/k72jF/ykvZ89JeuKX3TLJAYPDVLUalrshrLHkeVcCCZqG/eEa635cr8IBYzgnDvM2O8Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "semver": "^7.3.5"+ }+ },+ "node_modules/node-api-version/node_modules/semver": {+ "version": "7.8.5",+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",+ "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==",+ "dev": true,+ "license": "ISC",+ "bin": {+ "semver": "bin/semver.js"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/node-gyp": {+ "version": "12.4.0",+ "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-12.4.0.tgz",+ "integrity": "sha512-OMcPNvqTCFUnNaBlmdgq+lfNqY7gTiSmNRDjY3uAXRyudeKZEZxu3CLtjMQrx4zZxCX2b/mpNqTtwuCJgXhHkw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "env-paths": "^2.2.0",+ "exponential-backoff": "^3.1.1",+ "graceful-fs": "^4.2.6",+ "nopt": "^9.0.0",+ "proc-log": "^6.0.0",+ "semver": "^7.3.5",+ "tar": "^7.5.4",+ "tinyglobby": "^0.2.12",+ "undici": "^6.25.0",+ "which": "^6.0.0"+ },+ "bin": {+ "node-gyp": "bin/node-gyp.js"+ },+ "engines": {+ "node": "^20.17.0 || >=22.9.0"+ }+ },+ "node_modules/node-gyp/node_modules/env-paths": {+ "version": "2.2.1",+ "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz",+ "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/node-gyp/node_modules/isexe": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/isexe/-/isexe-4.0.0.tgz",+ "integrity": "sha512-FFUtZMpoZ8RqHS3XeXEmHWLA4thH+ZxCv2lOiPIn1Xc7CxrqhWzNSDzD+/chS/zbYezmiwWLdQC09JdQKmthOw==",+ "dev": true,+ "license": "BlueOak-1.0.0",+ "engines": {+ "node": ">=20"+ }+ },+ "node_modules/node-gyp/node_modules/semver": {+ "version": "7.8.5",+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",+ "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==",+ "dev": true,+ "license": "ISC",+ "bin": {+ "semver": "bin/semver.js"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/node-gyp/node_modules/undici": {+ "version": "6.29.0",+ "resolved": "https://registry.npmjs.org/undici/-/undici-6.29.0.tgz",+ "integrity": "sha512-R+RODBqp6i2pPflGdq+xIOUkl+RNfGgHwoinecKu/JCuf2uO06cOKoDbI2P7Dn6KcswdKwrczbU6IYJ6K8X+wg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=18.17"+ }+ },+ "node_modules/node-gyp/node_modules/which": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/which/-/which-6.0.1.tgz",+ "integrity": "sha512-oGLe46MIrCRqX7ytPUf66EAYvdeMIZYn3WaocqqKZAxrBpkqHfL/qvTyJ/bTk5+AqHCjXmrv3CEWgy368zhRUg==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "isexe": "^4.0.0"+ },+ "bin": {+ "node-which": "bin/which.js"+ },+ "engines": {+ "node": "^20.17.0 || >=22.9.0"+ }+ },+ "node_modules/node-int64": {+ "version": "0.4.0",+ "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz",+ "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/node-releases": {+ "version": "2.0.57",+ "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.57.tgz",+ "integrity": "sha512-kQK9LGGFiHtrWiNhZtA7Qbw17AQz+dmsEKODRIVTXA9+e5MS/2gZEBhYJt13GrAz5/IOZKddH/0Z3TP/Zgo+yw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/nopt": {+ "version": "9.0.0",+ "resolved": "https://registry.npmjs.org/nopt/-/nopt-9.0.0.tgz",+ "integrity": "sha512-Zhq3a+yFKrYwSBluL4H9XP3m3y5uvQkB/09CwDruCiRmR/UJYnn9W4R48ry0uGC70aeTPKLynBtscP9efFFcPw==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "abbrev": "^4.0.0"+ },+ "bin": {+ "nopt": "bin/nopt.js"+ },+ "engines": {+ "node": "^20.17.0 || >=22.9.0"+ }+ },+ "node_modules/normalize-url": {+ "version": "6.1.0",+ "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz",+ "integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/object-keys": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz",+ "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/once": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",+ "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "wrappy": "1"+ }+ },+ "node_modules/p-cancelable": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-2.1.1.tgz",+ "integrity": "sha512-BZOr3nRQHOntUjTrH8+Lh54smKHoHyur8We1V8DSMVrl5A2malOOwuJRnKRDjSnkoeBh4at6BwEnb5I7Jl31wg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/p-limit": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",+ "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "yocto-queue": "^0.1.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/p-locate": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz",+ "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "p-limit": "^2.2.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/p-locate/node_modules/p-limit": {+ "version": "2.3.0",+ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz",+ "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "p-try": "^2.0.0"+ },+ "engines": {+ "node": ">=6"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/p-try": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz",+ "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/path-exists": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",+ "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/path-is-absolute": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",+ "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/path-key": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",+ "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/pe-library": {+ "version": "0.4.1",+ "resolved": "https://registry.npmjs.org/pe-library/-/pe-library-0.4.1.tgz",+ "integrity": "sha512-eRWB5LBz7PpDu4PUlwT0PhnQfTQJlDDdPa35urV4Osrm0t0AqQFGn+UIkU3klZvwJ8KPO3VbBFsXquA6p6kqZw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12",+ "npm": ">=6"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/jet2jet"+ }+ },+ "node_modules/picocolors": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",+ "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/picomatch": {+ "version": "4.0.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/pkijs": {+ "version": "3.4.1",+ "resolved": "https://registry.npmjs.org/pkijs/-/pkijs-3.4.1.tgz",+ "integrity": "sha512-Oo/NZcSWccq8KyoG7gLE9fnltgHns+pNCjCAp/WmjsUySi+sX7y4z4Xqu4fVb42CDHzRPl33fjzT15V1wvcyhA==",+ "dev": true,+ "license": "BSD-3-Clause",+ "workspaces": [+ "website"+ ],+ "dependencies": {+ "@noble/hashes": "1.8.0",+ "asn1js": "^3.0.6",+ "bytestreamjs": "^2.0.1",+ "pvtsutils": "^1.3.6",+ "pvutils": "^1.1.3",+ "tslib": "^2.8.1"+ },+ "engines": {+ "node": ">=16.0.0"+ }+ },+ "node_modules/pkijs/node_modules/@noble/hashes": {+ "version": "1.8.0",+ "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz",+ "integrity": "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "^14.21.3 || >=16"+ },+ "funding": {+ "url": "https://paulmillr.com/funding/"+ }+ },+ "node_modules/plist": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/plist/-/plist-3.1.0.tgz",+ "integrity": "sha512-uysumyrvkUX0rX/dEVqt8gC3sTBzd4zoWfLeS29nb53imdaXVvLINYXTI2GNqzaMuvacNx4uJQ8+b3zXR0pkgQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@xmldom/xmldom": "^0.8.8",+ "base64-js": "^1.5.1",+ "xmlbuilder": "^15.1.1"+ },+ "engines": {+ "node": ">=10.4.0"+ }+ },+ "node_modules/pngjs": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/pngjs/-/pngjs-5.0.0.tgz",+ "integrity": "sha512-40QW5YalBNfQo5yRYmiw7Yz6TKKVr3h6970B2YE+3fQpsWcrbj1PzJgxeJ19DRQjhMbKPIuMY8rFaXc8moolVw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10.13.0"+ }+ },+ "node_modules/postcss": {+ "version": "8.5.28",+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.28.tgz",+ "integrity": "sha512-RRuzqDtt5Y9h3quz5hWhK+TPnsmVs6WwSU6LkJMeY4HstUEDuYTG8UJSdawMRzmzAtV+KEoG8N3Qg2qLy5vM/A==",+ "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.18",+ "picocolors": "^1.1.1",+ "source-map-js": "^1.2.1"+ },+ "engines": {+ "node": "^10 || ^12 || >=14"+ }+ },+ "node_modules/postject": {+ "version": "1.0.0-alpha.6",+ "resolved": "https://registry.npmjs.org/postject/-/postject-1.0.0-alpha.6.tgz",+ "integrity": "sha512-b9Eb8h2eVqNE8edvKdwqkrY6O7kAwmI8kcnBv1NScolYJbo59XUF0noFq+lxbC1yN20bmC0WBEbDC5H/7ASb0A==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "peer": true,+ "dependencies": {+ "commander": "^9.4.0"+ },+ "bin": {+ "postject": "dist/cli.js"+ },+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/postject/node_modules/commander": {+ "version": "9.5.0",+ "resolved": "https://registry.npmjs.org/commander/-/commander-9.5.0.tgz",+ "integrity": "sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "peer": true,+ "engines": {+ "node": "^12.20.0 || >=14"+ }+ },+ "node_modules/proc-log": {+ "version": "6.1.0",+ "resolved": "https://registry.npmjs.org/proc-log/-/proc-log-6.1.0.tgz",+ "integrity": "sha512-iG+GYldRf2BQ0UDUAd6JQ/RwzaQy6mXmsk/IzlYyal4A4SNFw54MeH4/tLkF4I5WoWG9SQwuqWzS99jaFQHBuQ==",+ "dev": true,+ "license": "ISC",+ "engines": {+ "node": "^20.17.0 || >=22.9.0"+ }+ },+ "node_modules/process-nextick-args": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",+ "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/progress": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz",+ "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.4.0"+ }+ },+ "node_modules/promise-retry": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/promise-retry/-/promise-retry-2.0.1.tgz",+ "integrity": "sha512-y+WKFlBR8BGXnsNlIHFGPZmyDf3DFMoLhaflAnyZgV6rG6xu+JwesTo2Q9R6XwYmtmwAFCkAk3e35jEdoeh/3g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "err-code": "^2.0.2",+ "retry": "^0.12.0"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/proper-lockfile": {+ "version": "4.1.2",+ "resolved": "https://registry.npmjs.org/proper-lockfile/-/proper-lockfile-4.1.2.tgz",+ "integrity": "sha512-TjNPblN4BwAWMXU8s9AEz4JmQxnD1NNL7bNOY/AKUzyamc379FWASUhc/K1pL2noVb+XmZKLL68cjzLsiOAMaA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "graceful-fs": "^4.2.4",+ "retry": "^0.12.0",+ "signal-exit": "^3.0.2"+ }+ },+ "node_modules/pump": {+ "version": "3.0.4",+ "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.4.tgz",+ "integrity": "sha512-VS7sjc6KR7e1ukRFhQSY5LM2uBWAUPiOPa/A3mkKmiMwSmRFUITt0xuj+/lesgnCv+dPIEYlkzrcyXgquIHMcA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "end-of-stream": "^1.1.0",+ "once": "^1.3.1"+ }+ },+ "node_modules/pvtsutils": {+ "version": "1.3.6",+ "resolved": "https://registry.npmjs.org/pvtsutils/-/pvtsutils-1.3.6.tgz",+ "integrity": "sha512-PLgQXQ6H2FWCaeRak8vvk1GW462lMxB5s3Jm673N82zI4vqtVUPuZdffdZbPDFRoU8kAhItWFtPCWiPpp4/EDg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "tslib": "^2.8.1"+ }+ },+ "node_modules/pvutils": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/pvutils/-/pvutils-1.2.0.tgz",+ "integrity": "sha512-BbubeCEyTuQjVMakvJQ/Sxbc93F2pwmbsxONT/ZRrwU7Ua38d8unYTwXpTVLAKJ4BDuH9IGztCjQcd/N/39Dvg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=16.0.0"+ }+ },+ "node_modules/qrcode": {+ "version": "1.5.4",+ "resolved": "https://registry.npmjs.org/qrcode/-/qrcode-1.5.4.tgz",+ "integrity": "sha512-1ca71Zgiu6ORjHqFBDpnSMTR2ReToX4l1Au1VFLyVeBTFavzQnv5JxMFr3ukHVKpSrSA2MCk0lNJSykjUfz7Zg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "dijkstrajs": "^1.0.1",+ "pngjs": "^5.0.0",+ "yargs": "^15.3.1"+ },+ "bin": {+ "qrcode": "bin/qrcode"+ },+ "engines": {+ "node": ">=10.13.0"+ }+ },+ "node_modules/qrcode/node_modules/cliui": {+ "version": "6.0.0",+ "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz",+ "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "string-width": "^4.2.0",+ "strip-ansi": "^6.0.0",+ "wrap-ansi": "^6.2.0"+ }+ },+ "node_modules/qrcode/node_modules/wrap-ansi": {+ "version": "6.2.0",+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz",+ "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ansi-styles": "^4.0.0",+ "string-width": "^4.1.0",+ "strip-ansi": "^6.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/qrcode/node_modules/y18n": {+ "version": "4.0.3",+ "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz",+ "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/qrcode/node_modules/yargs": {+ "version": "15.4.1",+ "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz",+ "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "cliui": "^6.0.0",+ "decamelize": "^1.2.0",+ "find-up": "^4.1.0",+ "get-caller-file": "^2.0.1",+ "require-directory": "^2.1.1",+ "require-main-filename": "^2.0.0",+ "set-blocking": "^2.0.0",+ "string-width": "^4.2.0",+ "which-module": "^2.0.0",+ "y18n": "^4.0.0",+ "yargs-parser": "^18.1.2"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/qrcode/node_modules/yargs-parser": {+ "version": "18.1.3",+ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz",+ "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "camelcase": "^5.0.0",+ "decamelize": "^1.2.0"+ },+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/quick-lru": {+ "version": "5.1.1",+ "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-5.1.1.tgz",+ "integrity": "sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/react": {+ "version": "19.3.0",+ "resolved": "https://registry.npmjs.org/react/-/react-19.3.0.tgz",+ "integrity": "sha512-E8LUcbtBWt20bbl2YoHfx4ZDBdxVTfOKtCZn9cDSJ4l6/nuoApcpIBcj47t2wZoVX8g2ZHuMHbiShgCR1T5Sog==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/react-dom": {+ "version": "19.3.0",+ "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.3.0.tgz",+ "integrity": "sha512-JDk8dgif51OjFoDE70+OT9ICyYr+69HlmihNwp1+Nsfbna3t5sIiCa9ZJktDmQ4/1b/rn26hIAR2uYXDMr5r0Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "scheduler": "^0.28.0"+ },+ "peerDependencies": {+ "react": "^19.3.0"+ }+ },+ "node_modules/react-refresh": {+ "version": "0.18.0",+ "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.18.0.tgz",+ "integrity": "sha512-QgT5//D3jfjJb6Gsjxv0Slpj23ip+HtOpnNgnb2S5zU3CB26G/IDPGoy4RJB42wzFE46DRsstbW6tKHoKbhAxw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/read-binary-file-arch": {+ "version": "1.0.6",+ "resolved": "https://registry.npmjs.org/read-binary-file-arch/-/read-binary-file-arch-1.0.6.tgz",+ "integrity": "sha512-BNg9EN3DD3GsDXX7Aa8O4p92sryjkmzYYgmgTAc6CA4uGLEDzFfxOxugu21akOxpcXHiEgsYkC6nPsQvLLLmEg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "debug": "^4.3.4"+ },+ "bin": {+ "read-binary-file-arch": "cli.js"+ }+ },+ "node_modules/readable-stream": {+ "version": "2.3.8",+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz",+ "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "core-util-is": "~1.0.0",+ "inherits": "~2.0.3",+ "isarray": "~1.0.0",+ "process-nextick-args": "~2.0.0",+ "safe-buffer": "~5.1.1",+ "string_decoder": "~1.1.1",+ "util-deprecate": "~1.0.1"+ }+ },+ "node_modules/require-directory": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",+ "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/require-from-string": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz",+ "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/require-main-filename": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz",+ "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/resedit": {+ "version": "1.7.2",+ "resolved": "https://registry.npmjs.org/resedit/-/resedit-1.7.2.tgz",+ "integrity": "sha512-vHjcY2MlAITJhC0eRD/Vv8Vlgmu9Sd3LX9zZvtGzU5ZImdTN3+d6e/4mnTyV8vEbyf1sgNIrWxhWlrys52OkEA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "pe-library": "^0.4.1"+ },+ "engines": {+ "node": ">=12",+ "npm": ">=6"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/jet2jet"+ }+ },+ "node_modules/resolve-alpn": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/resolve-alpn/-/resolve-alpn-1.2.1.tgz",+ "integrity": "sha512-0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/responselike": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/responselike/-/responselike-2.0.1.tgz",+ "integrity": "sha512-4gl03wn3hj1HP3yzgdI7d3lCkF95F21Pz4BPGvKHinyQzALR5CapwC8yIi0Rh58DEMQ/SguC03wFj2k0M/mHhw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "lowercase-keys": "^2.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/retry": {+ "version": "0.12.0",+ "resolved": "https://registry.npmjs.org/retry/-/retry-0.12.0.tgz",+ "integrity": "sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 4"+ }+ },+ "node_modules/rimraf": {+ "version": "2.6.3",+ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz",+ "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==",+ "deprecated": "Rimraf versions prior to v4 are no longer supported",+ "dev": true,+ "license": "ISC",+ "peer": true,+ "dependencies": {+ "glob": "^7.1.3"+ },+ "bin": {+ "rimraf": "bin.js"+ }+ },+ "node_modules/roarr": {+ "version": "2.15.4",+ "resolved": "https://registry.npmjs.org/roarr/-/roarr-2.15.4.tgz",+ "integrity": "sha512-CHhPh+UNHD2GTXNYhPWLnU8ONHdI+5DI+4EYIAOaiD63rHeYlZvyh8P+in5999TTSFgUYuKUAjzRI4mdh/p+2A==",+ "dev": true,+ "license": "BSD-3-Clause",+ "optional": true,+ "dependencies": {+ "boolean": "^3.0.1",+ "detect-node": "^2.0.4",+ "globalthis": "^1.0.1",+ "json-stringify-safe": "^5.0.1",+ "semver-compare": "^1.0.0",+ "sprintf-js": "^1.1.2"+ },+ "engines": {+ "node": ">=8.0"+ }+ },+ "node_modules/rollup": {+ "version": "4.64.0",+ "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.64.0.tgz",+ "integrity": "sha512-gjA/kFeDfffII8COoPsvLPvE16hWDTEc1+0QKQNKUkuV8iJjqsC4xXs8/FzuL0v9EV39kuxTbAgcFoTRyy2TGQ==",+ "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.64.0",+ "@rollup/rollup-android-arm64": "4.64.0",+ "@rollup/rollup-darwin-arm64": "4.64.0",+ "@rollup/rollup-darwin-x64": "4.64.0",+ "@rollup/rollup-freebsd-arm64": "4.64.0",+ "@rollup/rollup-freebsd-x64": "4.64.0",+ "@rollup/rollup-linux-arm-gnueabihf": "4.64.0",+ "@rollup/rollup-linux-arm-musleabihf": "4.64.0",+ "@rollup/rollup-linux-arm64-gnu": "4.64.0",+ "@rollup/rollup-linux-arm64-musl": "4.64.0",+ "@rollup/rollup-linux-loong64-gnu": "4.64.0",+ "@rollup/rollup-linux-loong64-musl": "4.64.0",+ "@rollup/rollup-linux-ppc64-gnu": "4.64.0",+ "@rollup/rollup-linux-ppc64-musl": "4.64.0",+ "@rollup/rollup-linux-riscv64-gnu": "4.64.0",+ "@rollup/rollup-linux-riscv64-musl": "4.64.0",+ "@rollup/rollup-linux-s390x-gnu": "4.64.0",+ "@rollup/rollup-linux-x64-gnu": "4.64.0",+ "@rollup/rollup-linux-x64-musl": "4.64.0",+ "@rollup/rollup-openbsd-x64": "4.64.0",+ "@rollup/rollup-openharmony-arm64": "4.64.0",+ "@rollup/rollup-win32-arm64-msvc": "4.64.0",+ "@rollup/rollup-win32-ia32-msvc": "4.64.0",+ "@rollup/rollup-win32-x64-gnu": "4.64.0",+ "@rollup/rollup-win32-x64-msvc": "4.64.0",+ "fsevents": "~2.3.2"+ }+ },+ "node_modules/safe-buffer": {+ "version": "5.1.2",+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",+ "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/sanitize-filename": {+ "version": "1.6.4",+ "resolved": "https://registry.npmjs.org/sanitize-filename/-/sanitize-filename-1.6.4.tgz",+ "integrity": "sha512-9ZyI08PsvdQl2r/bBIGubpVdR3RR9sY6RDiWFPreA21C/EFlQhmgo20UZlNjZMMZNubusLhAQozkA0Od5J21Eg==",+ "dev": true,+ "license": "WTFPL OR ISC",+ "dependencies": {+ "truncate-utf8-bytes": "^1.0.0"+ }+ },+ "node_modules/sax": {+ "version": "1.6.1",+ "resolved": "https://registry.npmjs.org/sax/-/sax-1.6.1.tgz",+ "integrity": "sha512-42tBVwLWnaQvW5zc4HbZrTuWccECCZfBi92FDuwtqxasH+JbPB3/FOKb1m222K42R4WxuxzzMsTswfzgtSu64Q==",+ "dev": true,+ "license": "BlueOak-1.0.0",+ "engines": {+ "node": ">=11.0.0"+ }+ },+ "node_modules/scheduler": {+ "version": "0.28.0",+ "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.28.0.tgz",+ "integrity": "sha512-juorfCmIkIw8tT+p5BXSm6PJjQF/ycEYmKyzURCIt/RaZIhL+PulbQ9Yu2z1HdOJDdqDTlxA1+xKBmHXJsczAw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/semver": {+ "version": "6.3.1",+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",+ "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",+ "dev": true,+ "license": "ISC",+ "bin": {+ "semver": "bin/semver.js"+ }+ },+ "node_modules/semver-compare": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/semver-compare/-/semver-compare-1.0.0.tgz",+ "integrity": "sha512-YM3/ITh2MJ5MtzaM429anh+x2jiLVjqILF4m4oyQB18W7Ggea7BfqdH/wGMK7dDiMghv/6WG7znWMwUDzJiXow==",+ "dev": true,+ "license": "MIT",+ "optional": true+ },+ "node_modules/serialize-error": {+ "version": "7.0.1",+ "resolved": "https://registry.npmjs.org/serialize-error/-/serialize-error-7.0.1.tgz",+ "integrity": "sha512-8I8TjW5KMOKsZQTvoxjuSIa7foAwPWGOts+6o7sgjz41/qMD9VQHEDxi6PBvK2l0MXUmqZyNpUK+T2tQaaElvw==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "type-fest": "^0.13.1"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/set-blocking": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz",+ "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/shebang-command": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",+ "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "shebang-regex": "^3.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/shebang-regex": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",+ "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/signal-exit": {+ "version": "3.0.7",+ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",+ "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/simple-update-notifier": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/simple-update-notifier/-/simple-update-notifier-2.0.0.tgz",+ "integrity": "sha512-a2B9Y0KlNXl9u/vsW6sTIu9vGEpfKu2wRV6l1H3XEas/0gUIzGzBoP/IouTcUQbm9JWZLH3COxyn03TYlFax6w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "semver": "^7.5.3"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/simple-update-notifier/node_modules/semver": {+ "version": "7.8.5",+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",+ "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==",+ "dev": true,+ "license": "ISC",+ "bin": {+ "semver": "bin/semver.js"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/source-map": {+ "version": "0.6.1",+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",+ "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",+ "dev": true,+ "license": "BSD-3-Clause",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "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/source-map-support": {+ "version": "0.5.21",+ "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz",+ "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "buffer-from": "^1.0.0",+ "source-map": "^0.6.0"+ }+ },+ "node_modules/sprintf-js": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz",+ "integrity": "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==",+ "dev": true,+ "license": "BSD-3-Clause",+ "optional": true+ },+ "node_modules/stat-mode": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/stat-mode/-/stat-mode-1.0.0.tgz",+ "integrity": "sha512-jH9EhtKIjuXZ2cWxmXS8ZP80XyC3iasQxMDV8jzhNJpfDb7VbQLVW4Wvsxz9QZvzV+G4YoSfBUVKDOyxLzi/sg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/string_decoder": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",+ "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "safe-buffer": "~5.1.0"+ }+ },+ "node_modules/string-width": {+ "version": "4.2.3",+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "emoji-regex": "^8.0.0",+ "is-fullwidth-code-point": "^3.0.0",+ "strip-ansi": "^6.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/strip-ansi": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ansi-regex": "^5.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/sumchecker": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/sumchecker/-/sumchecker-3.0.1.tgz",+ "integrity": "sha512-MvjXzkz/BOfyVDkG0oFOtBxHX2u3gKbMHIF/dXblZsgD3BWOFLmHovIpZY7BykJdAjcqRCBi1WYBNdEC9yI7vg==",+ "dev": true,+ "license": "Apache-2.0",+ "dependencies": {+ "debug": "^4.1.0"+ },+ "engines": {+ "node": ">= 8.0"+ }+ },+ "node_modules/supports-color": {+ "version": "7.2.0",+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",+ "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "has-flag": "^4.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/tar": {+ "version": "7.5.22",+ "resolved": "https://registry.npmjs.org/tar/-/tar-7.5.22.tgz",+ "integrity": "sha512-MFO/QzvtAOmJbkhOaCTvbGcFN9L9b+JunIsDwaKljSOdcLMea3NJ1k9Usz/rjdfSXTq4dfzfeS7W4p4YOAAHeA==",+ "dev": true,+ "license": "BlueOak-1.0.0",+ "dependencies": {+ "@isaacs/fs-minipass": "^4.0.0",+ "chownr": "^3.0.0",+ "minipass": "^7.1.2",+ "minizlib": "^3.1.0",+ "yallist": "^5.0.0"+ },+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tar/node_modules/yallist": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-5.0.0.tgz",+ "integrity": "sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==",+ "dev": true,+ "license": "BlueOak-1.0.0",+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/temp": {+ "version": "0.9.4",+ "resolved": "https://registry.npmjs.org/temp/-/temp-0.9.4.tgz",+ "integrity": "sha512-yYrrsWnrXMcdsnu/7YMYAofM1ktpL5By7vZhf15CrXijWWrEYZks5AXBudalfSWJLlnen/QUJUB5aoB0kqZUGA==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "mkdirp": "^0.5.1",+ "rimraf": "~2.6.2"+ },+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/temp-file": {+ "version": "3.4.0",+ "resolved": "https://registry.npmjs.org/temp-file/-/temp-file-3.4.0.tgz",+ "integrity": "sha512-C5tjlC/HCtVUOi3KWVokd4vHVViOmGjtLwIh4MuzPo/nMYTV/p1urt3RnMz2IWXDdKEGJH3k5+KPxtqRsUYGtg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "async-exit-hook": "^2.0.1",+ "fs-extra": "^10.0.0"+ }+ },+ "node_modules/tiny-async-pool": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/tiny-async-pool/-/tiny-async-pool-1.3.0.tgz",+ "integrity": "sha512-01EAw5EDrcVrdgyCLgoSPvqznC0sVxDSVeiOz09FUpjh71G79VCqneOr+xvt7T1r76CF6ZZfPjHorN2+d+3mqA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "semver": "^5.5.0"+ }+ },+ "node_modules/tiny-async-pool/node_modules/semver": {+ "version": "5.7.2",+ "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz",+ "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==",+ "dev": true,+ "license": "ISC",+ "bin": {+ "semver": "bin/semver"+ }+ },+ "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/tmp": {+ "version": "0.2.7",+ "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.7.tgz",+ "integrity": "sha512-e0votIpp4Uo2AJYSzVHV6xCcawuiez3DzqDAbrTc3YxBkplN6e+dM13ZeIcZnDg/QpSuU2zfZ3rzwY8ukEnaXw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=14.14"+ }+ },+ "node_modules/tmp-promise": {+ "version": "3.0.3",+ "resolved": "https://registry.npmjs.org/tmp-promise/-/tmp-promise-3.0.3.tgz",+ "integrity": "sha512-RwM7MoPojPxsOBYnyd2hy0bxtIlVrihNs9pj5SUvY8Zz1sQcQG2tG1hSr8PDxfgEB8RNKDhqbIlroIarSNDNsQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "tmp": "^0.2.0"+ }+ },+ "node_modules/truncate-utf8-bytes": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/truncate-utf8-bytes/-/truncate-utf8-bytes-1.0.2.tgz",+ "integrity": "sha512-95Pu1QXQvruGEhv62XCMO3Mm90GscOCClvrIUwCM0PYOXK3kaF3l3sIHxx71ThJfcbM2O5Au6SO3AWCSEfW4mQ==",+ "dev": true,+ "license": "WTFPL",+ "dependencies": {+ "utf8-byte-length": "^1.0.1"+ }+ },+ "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==",+ "dev": true,+ "license": "0BSD"+ },+ "node_modules/type-fest": {+ "version": "0.13.1",+ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.13.1.tgz",+ "integrity": "sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==",+ "dev": true,+ "license": "(MIT OR CC0-1.0)",+ "optional": true,+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/typescript": {+ "version": "6.0.3",+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz",+ "integrity": "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==",+ "dev": true,+ "license": "Apache-2.0",+ "bin": {+ "tsc": "bin/tsc",+ "tsserver": "bin/tsserver"+ },+ "engines": {+ "node": ">=14.17"+ }+ },+ "node_modules/undici": {+ "version": "7.30.0",+ "resolved": "https://registry.npmjs.org/undici/-/undici-7.30.0.tgz",+ "integrity": "sha512-dkrQXeHSaoamnItlYbmzG0wFYrM0ZwDxCIg0A7aKjTyyhh9svRzCNFEzV+Vm05/yehjCzjDZ31KXfGEjYSztDQ==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "engines": {+ "node": ">=20.18.1"+ }+ },+ "node_modules/undici-types": {+ "version": "7.24.6",+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.24.6.tgz",+ "integrity": "sha512-WRNW+sJgj5OBN4/0JpHFqtqzhpbnV0GuB+OozA9gCL7a993SmU+1JBZCzLNxYsbMfIeDL+lTsphD5jN5N+n0zg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/universalify": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz",+ "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 10.0.0"+ }+ },+ "node_modules/unzipper": {+ "version": "0.12.5",+ "resolved": "https://registry.npmjs.org/unzipper/-/unzipper-0.12.5.tgz",+ "integrity": "sha512-tXYOi9R57Uj/2Z25SOs5RRSzq886MBQj2gY8dPL+xl/kv6s6SvByoKfAtvfVeEuhntWDgjd2o9p2lb4TVPAz0A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "bluebird": "~3.7.2",+ "duplexer2": "~0.1.4",+ "fs-extra": "11.3.1",+ "graceful-fs": "^4.2.2",+ "node-int64": "^0.4.0"+ }+ },+ "node_modules/unzipper/node_modules/fs-extra": {+ "version": "11.3.1",+ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.3.1.tgz",+ "integrity": "sha512-eXvGGwZ5CL17ZSwHWd3bbgk7UUpF6IFHtP57NYYakPvHOs8GDgDe5KJI36jIJzDkJ6eJjuzRA8eBQb6SkKue0g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "graceful-fs": "^4.2.0",+ "jsonfile": "^6.0.1",+ "universalify": "^2.0.0"+ },+ "engines": {+ "node": ">=14.14"+ }+ },+ "node_modules/update-browserslist-db": {+ "version": "1.3.3",+ "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.3.3.tgz",+ "integrity": "sha512-pJ2sYawQS0R/WI928Gj5GlPhTGzbMelq0+4INtSYNDV9ErKJcX6xjGWkoG/VnB3dpUm00zALaqkrUD77pO5TDQ==",+ "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/utf8-byte-length": {+ "version": "1.0.5",+ "resolved": "https://registry.npmjs.org/utf8-byte-length/-/utf8-byte-length-1.0.5.tgz",+ "integrity": "sha512-Xn0w3MtiQ6zoz2vFyUVruaCL53O/DwUvkEeOvj+uulMm0BkUGYWmBYVyElqZaSLhY6ZD0ulfU3aBra2aVT4xfA==",+ "dev": true,+ "license": "(WTFPL OR MIT)"+ },+ "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": "7.3.6",+ "resolved": "https://registry.npmjs.org/vite/-/vite-7.3.6.tgz",+ "integrity": "sha512-4XP60spRGjSZFf1qYH+dJIkK2znL3zQfl9KkOV9MkkRR/3Dls0dxaBsQPTloEc5BLXWPL9vsOxopxyKoMmDueg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "esbuild": "^0.27.0 || ^0.28.0",+ "fdir": "^6.5.0",+ "picomatch": "^4.0.3",+ "postcss": "^8.5.6",+ "rollup": "^4.43.0",+ "tinyglobby": "^0.2.15"+ },+ "bin": {+ "vite": "bin/vite.js"+ },+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ },+ "funding": {+ "url": "https://github.com/vitejs/vite?sponsor=1"+ },+ "optionalDependencies": {+ "fsevents": "~2.3.3"+ },+ "peerDependencies": {+ "@types/node": "^20.19.0 || >=22.12.0",+ "jiti": ">=1.21.0",+ "less": "^4.0.0",+ "lightningcss": "^1.21.0",+ "sass": "^1.70.0",+ "sass-embedded": "^1.70.0",+ "stylus": ">=0.54.8",+ "sugarss": "^5.0.0",+ "terser": "^5.16.0",+ "tsx": "^4.8.1",+ "yaml": "^2.4.2"+ },+ "peerDependenciesMeta": {+ "@types/node": {+ "optional": true+ },+ "jiti": {+ "optional": true+ },+ "less": {+ "optional": true+ },+ "lightningcss": {+ "optional": true+ },+ "sass": {+ "optional": true+ },+ "sass-embedded": {+ "optional": true+ },+ "stylus": {+ "optional": true+ },+ "sugarss": {+ "optional": true+ },+ "terser": {+ "optional": true+ },+ "tsx": {+ "optional": true+ },+ "yaml": {+ "optional": true+ }+ }+ },+ "node_modules/vite/node_modules/@esbuild/aix-ppc64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.28.2.tgz",+ "integrity": "sha512-XExcO+dvLKvVtNTibSTBej1NCAbaGhWn9Ww1ZPx80qsahhPFe/8jgWP0IchNe0F3HwkU7n8ejhH8bjonqht8mQ==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "aix"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/android-arm": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.28.2.tgz",+ "integrity": "sha512-kXXoiPVVGQcnIYGOeaovwOURpniDBpSq4A03qkQ+BMQqtGG6HYap3xne9C1O1yo4TR3qxlCX5IqqmX6fFo2Lqg==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/android-arm64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.28.2.tgz",+ "integrity": "sha512-5YfKeeI8qWfBZIX+u2xZC3Zlb3Os/gLS2sbEKM+I4ZOcsWmHS2WLysCcQZDAFRslDUU5Oiq44gf6PYN1vGwG5A==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/android-x64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.28.2.tgz",+ "integrity": "sha512-O387ite7SzUyCcy3JQX4P4bLtEA7bLLkx+esve5JHnyYfNTxcVpXZo9jhdB0lTKN44gztELTdU7nS8Nr16Fs1Q==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/darwin-arm64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.28.2.tgz",+ "integrity": "sha512-n4KqkOQrraxHJcgjM1RvwbigfQKIKJVpM7xp+KsxiyUSrRdIXnt73VhrPAx0fV44hgfmIVKjxMN9J1t5jySVkw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/darwin-x64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.28.2.tgz",+ "integrity": "sha512-uq6suIWYP37qzGddBKPw5QEQPi6HiLGsO7UmkpfyaYNQ3D+rN6w6WfwH+nuqcGXWvawGwxOEroO4YGnFh95azw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/freebsd-arm64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.28.2.tgz",+ "integrity": "sha512-n+I0BTSRIoy+d6RPKnEVwql5UwBJolytvY4mAOIEJorKlqgPII8ix6slVVrfZ5Tnj7glIZvloylbB/EJPMWEXw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/freebsd-x64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.28.2.tgz",+ "integrity": "sha512-78XJTJkvPs0kz2w61301PJjXl4g7q3JqiYMZ/M/yVI73EHBrCRTgkhu9oqG7vPqq+a/yadEW8aD+agKlk5xrmg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/linux-arm": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.28.2.tgz",+ "integrity": "sha512-XlDnu2q5yoqems+xay6wSAcg9DDD7K9RLKZEBOMZm3ckNpJBvOX20tSfby8KfrrhINDyv9V2YVZKY/SpoGJI8w==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/linux-arm64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.28.2.tgz",+ "integrity": "sha512-pW4AC0P3it8c7do9MVM4p51FzHzdM/TZrerurgRcHJ2WTa1VQ1CIq18xncfpBJw4ojkiZZrKW2yIBWBP92j6Ug==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/linux-ia32": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.28.2.tgz",+ "integrity": "sha512-CYbnj78HsIeA+DhgUKgFCfvNsTHFhMMrinUrMZpDXJXKN8T3XViTZ/+wtHeVxEWY8ewSzTFN+nRmSwO2tZaLUQ==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/linux-loong64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.28.2.tgz",+ "integrity": "sha512-buwkd8nsph4R+ajRvw0qM5Hja/TXQow3ptzWO2EbG/cqcIkHloRrdlBtQlshyYGTNFvfkfJ5tpPLVkY4DtsPfQ==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/linux-mips64el": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.28.2.tgz",+ "integrity": "sha512-ZVykbDyk7519VwiNb9Lcj9m8XM6v5V9uKPvrEMkkEedVewf+0itkhahp4HDpgERXhwLRpWFypsGbG/J8s0QjJA==",+ "cpu": [+ "mips64el"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/linux-ppc64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.28.2.tgz",+ "integrity": "sha512-CAXl+Dtd9UUuJd8pKKdwh6MLm3MUMiqMPmhZ3tTSXPqfyQ3vDl6R5hZdZ/kYojK4ofXtdfSv1tFq8XzWx3heNQ==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/linux-riscv64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.28.2.tgz",+ "integrity": "sha512-GeXCej4IQtU1B+QlDV8W/RRvbzI3O/Stss+/bCXv4lZls5WGRtu2a+3JkA3i4qIUlMXpcHebWpF8AkJhATowuA==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/linux-s390x": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.28.2.tgz",+ "integrity": "sha512-3H1weTYZPxt/WOhByszQZybS9w5lKzUn1FDMsgEChbHWQwHYQQRfBxgCcZvPhjHfKyJjIievvMmEUawJrdY9Dg==",+ "cpu": [+ "s390x"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/linux-x64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.28.2.tgz",+ "integrity": "sha512-4xTZr1FUmSoQW4XIWmit3tzQrUTZM+N3P0XV8xROKYF50XfI7xeO90+1bZvNwxIufQ9hDQVRJH5YhgPVF8A/HQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/netbsd-arm64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.28.2.tgz",+ "integrity": "sha512-sSATRjPeDBg3pdgHoQfoYBob11Kk1FGa9lui5RIHZCoCkJa9QKlvl3/vKz2usCmYYjs7ymJR/2Nnsqe+Hjt5nw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/netbsd-x64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.28.2.tgz",+ "integrity": "sha512-lqnzCV+mM0gIADaKihiCg6ifgfU2L3h5E33rNQBN1Y4MaVGnzryzmvvf7UHxprpQdE8hpqLolJ9Rl+SkIRDpyw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/openbsd-arm64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.28.2.tgz",+ "integrity": "sha512-AL2qJILH7lNjrDmCQDvdxMfAUIv8KMNZOvrwAQ8i8//ntL9FflhOyMJ8OZSMBb8/AWXe3/5v5S20y3zCoZWKoQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/openbsd-x64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.28.2.tgz",+ "integrity": "sha512-QtiuPytchRyC4rwUKhexJdQKvDuZ6hWloi3igqPQNUJCS1/v9EiO3UTOXR6A3FoMo4fnAKbWJdqaIwhOzh8qEw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/openharmony-arm64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.28.2.tgz",+ "integrity": "sha512-WkhYDmpTjLvGlScA1rwjRUmhl4k8oXR3cIbtqWmELgU/dFeHHlEllxDvdWcNJV9rbzCexB5vz8gtNewWLgCT7Q==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openharmony"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/sunos-x64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.28.2.tgz",+ "integrity": "sha512-GPMSkTOtMnv2U2F8gxe4Io6qmVs+YKyp832Etqqxr0hFngmXQ3rzwytelm3GIn7T4VviRUlf3sOgBOiTdvaf7g==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "sunos"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/win32-arm64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.28.2.tgz",+ "integrity": "sha512-PIhhEkE9uPBleRBrQEJpUn7MBnibZzbGzYWPmY3x+YoVg/95zbjB4CxPPOQ8l5tYYM4mMaCthF8/1DIfBQQyWQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/win32-ia32": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.28.2.tgz",+ "integrity": "sha512-YmJbfTlvU7Sdn9BB+4PRES4oB6pxgS37MAONj+hBr/cpXS1aBPKXxNnDbu+QCWPj0o9dgyxeq79g6c5P8KeuYA==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/win32-x64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.28.2.tgz",+ "integrity": "sha512-5ebpxr3nWMzrL/rnUI755Jkuee0bHL/Gq0WTF9lvcpv73wAp5eu8MfBUgWK9bhWvZjj7yX8etf/8tI8Ney695g==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/esbuild": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.28.2.tgz",+ "integrity": "sha512-HKVLS8dvII+xoKW9kmqxbRKrnWEXfJJr/FZhhJmiqIB0e053QNYFqOBouTMO/k5sID4MvCiUCvv8b9M4h32wIA==",+ "dev": true,+ "hasInstallScript": true,+ "license": "MIT",+ "bin": {+ "esbuild": "bin/esbuild"+ },+ "engines": {+ "node": ">=18"+ },+ "optionalDependencies": {+ "@esbuild/aix-ppc64": "0.28.2",+ "@esbuild/android-arm": "0.28.2",+ "@esbuild/android-arm64": "0.28.2",+ "@esbuild/android-x64": "0.28.2",+ "@esbuild/darwin-arm64": "0.28.2",+ "@esbuild/darwin-x64": "0.28.2",+ "@esbuild/freebsd-arm64": "0.28.2",+ "@esbuild/freebsd-x64": "0.28.2",+ "@esbuild/linux-arm": "0.28.2",+ "@esbuild/linux-arm64": "0.28.2",+ "@esbuild/linux-ia32": "0.28.2",+ "@esbuild/linux-loong64": "0.28.2",+ "@esbuild/linux-mips64el": "0.28.2",+ "@esbuild/linux-ppc64": "0.28.2",+ "@esbuild/linux-riscv64": "0.28.2",+ "@esbuild/linux-s390x": "0.28.2",+ "@esbuild/linux-x64": "0.28.2",+ "@esbuild/netbsd-arm64": "0.28.2",+ "@esbuild/netbsd-x64": "0.28.2",+ "@esbuild/openbsd-arm64": "0.28.2",+ "@esbuild/openbsd-x64": "0.28.2",+ "@esbuild/openharmony-arm64": "0.28.2",+ "@esbuild/sunos-x64": "0.28.2",+ "@esbuild/win32-arm64": "0.28.2",+ "@esbuild/win32-ia32": "0.28.2",+ "@esbuild/win32-x64": "0.28.2"+ }+ },+ "node_modules/webcrypto-core": {+ "version": "1.9.2",+ "resolved": "https://registry.npmjs.org/webcrypto-core/-/webcrypto-core-1.9.2.tgz",+ "integrity": "sha512-gsXecm82UQNlTBURJGuqOWy1Ww08S3kZUcr3aOJS02Pk0xLtkfeUAVC0u0xhgdonFme80edSJUIJyuvL/7250Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@peculiar/asn1-schema": "^2.7.0",+ "@peculiar/json-schema": "^1.1.12",+ "@peculiar/utils": "^2.0.2",+ "asn1js": "^3.0.10",+ "tslib": "^2.8.1"+ }+ },+ "node_modules/which": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/which/-/which-5.0.0.tgz",+ "integrity": "sha512-JEdGzHwwkrbWoGOlIHqQ5gtprKGOenpDHpxE9zVR1bWbOtYRyPPHMe9FaP6x61CmNaTThSkb0DAJte5jD+DmzQ==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "isexe": "^3.1.1"+ },+ "bin": {+ "node-which": "bin/which.js"+ },+ "engines": {+ "node": "^18.17.0 || >=20.5.0"+ }+ },+ "node_modules/which-module": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.1.tgz",+ "integrity": "sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/wrap-ansi": {+ "version": "7.0.0",+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",+ "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ansi-styles": "^4.0.0",+ "string-width": "^4.1.0",+ "strip-ansi": "^6.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"+ }+ },+ "node_modules/wrappy": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",+ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/xmlbuilder": {+ "version": "15.1.1",+ "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-15.1.1.tgz",+ "integrity": "sha512-yMqGBqtXyeN1e3TGYvgNgDVZ3j84W4cwkOXQswghol6APgZWaff9lnbvN7MHYJOiXsvGPXtjTYJEiC9J2wv9Eg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8.0"+ }+ },+ "node_modules/y18n": {+ "version": "5.0.8",+ "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",+ "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==",+ "dev": true,+ "license": "ISC",+ "engines": {+ "node": ">=10"+ }+ },+ "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/yargs": {+ "version": "17.7.3",+ "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.3.tgz",+ "integrity": "sha512-GZtjxm/J/4TSxuL3FNYjCmLktBTnIw/rVmKSIyKeYAZpmJB2ig9VauCC5xsa82GNKVKDAqpOn3KVzNt0zmrU0g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "cliui": "^8.0.1",+ "escalade": "^3.1.1",+ "get-caller-file": "^2.0.5",+ "require-directory": "^2.1.1",+ "string-width": "^4.2.3",+ "y18n": "^5.0.5",+ "yargs-parser": "^21.1.1"+ },+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/yargs-parser": {+ "version": "21.1.1",+ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz",+ "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==",+ "dev": true,+ "license": "ISC",+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/yocto-queue": {+ "version": "0.1.0",+ "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",+ "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ }+ }+}diff --git a/apps/desktop/package.json b/apps/desktop/package.jsonnew file mode 100644index 00000000..685c93c1--- /dev/null+++ b/apps/desktop/package.json@@ -0,0 +1,36 @@+{+ "name": "codync-desktop",+ "productName": "Codync",+ "version": "2.6.3",+ "description": "Codync for macOS and Linux: your coding agents as teammates.",+ "author": "leepokai",+ "license": "UNLICENSED",+ "private": true,+ "main": "out/main/index.js",+ "scripts": {+ "dev": "electron-vite dev",+ "build": "electron-vite build",+ "typecheck": "tsc --noEmit -p tsconfig.json",+ "test": "node --test --experimental-strip-types src/**/*.test.ts",+ "icons": "swift tools/export-symbols.swift",+ "dist:mac": "electron-vite build && electron-builder --mac",+ "dist:linux": "electron-vite build && electron-builder --linux"+ },+ "dependencies": {},+ "devDependencies": {+ "@types/node": "^24.0.0",+ "@types/qrcode": "^1.5.6",+ "@types/react": "^19.3.0",+ "@types/react-dom": "^19.3.0",+ "@vitejs/plugin-react": "^5.2.0",+ "electron": "^44.5.1",+ "electron-builder": "^26.15.3",+ "electron-vite": "^5.0.0",+ "lucide": "^1.52.0",+ "qrcode": "^1.5.4",+ "react": "^19.3.0",+ "react-dom": "^19.3.0",+ "typescript": "^6.0.3",+ "vite": "^7.3.6"+ }+}diff --git a/apps/desktop/resources/icon.icns b/apps/desktop/resources/icon.icnsnew file mode 100644index 00000000..625273b4Binary files /dev/null and b/apps/desktop/resources/icon.icns differdiff --git a/apps/desktop/resources/icon.png b/apps/desktop/resources/icon.pngnew file mode 100644index 00000000..b94ae6d7Binary files /dev/null and b/apps/desktop/resources/icon.png differdiff --git a/apps/desktop/resources/tray/trayAlertTemplate.png b/apps/desktop/resources/tray/trayAlertTemplate.pngnew file mode 100644index 00000000..985c934bBinary files /dev/null and b/apps/desktop/resources/tray/trayAlertTemplate.png differdiff --git a/apps/desktop/resources/tray/[email protected] b/apps/desktop/resources/tray/[email protected]new file mode 100644index 00000000..6f013241Binary files /dev/null and b/apps/desktop/resources/tray/[email protected] differdiff --git a/apps/desktop/resources/tray/trayTemplate.png b/apps/desktop/resources/tray/trayTemplate.pngnew file mode 100644index 00000000..af50cc7bBinary files /dev/null and b/apps/desktop/resources/tray/trayTemplate.png differdiff --git a/apps/desktop/resources/tray/[email protected] b/apps/desktop/resources/tray/[email protected]new file mode 100644index 00000000..d62e2825Binary files /dev/null and b/apps/desktop/resources/tray/[email protected] differdiff --git a/apps/desktop/src/main/account.ts b/apps/desktop/src/main/account.tsnew file mode 100644index 00000000..9f768ba7--- /dev/null+++ b/apps/desktop/src/main/account.ts@@ -0,0 +1,31 @@+import { EventEmitter } from 'node:events'+import { ipcMain, type BrowserWindow } from 'electron'+import type { AccountState } from '../shared/ipc'++/**+ * The Codync account: Clerk's sign-in (Apple, Google) through the system browser, with the+ * session kept in the OS keychain. An account session never grants access to a computer by+ * itself: each one still approves this device (spec §4.2).+ */+export class AccountService extends EventEmitter {+ state: AccountState = { ready: true, configured: false, busy: false, error: null, user: null, cloudURL: null }++ register(windows: () => BrowserWindow[]) {+ ipcMain.handle('account:state', () => this.state)+ ipcMain.handle('account:signIn', () => {+ this.set({ error: "Sign-in setup isn't finished yet. You can continue using local pairing." })+ })+ ipcMain.handle('account:signOut', () => {})+ ipcMain.handle('account:token', () => {+ throw new Error('Sign in again to reach your account.')+ })+ this.on('change', () => {+ for (const w of windows()) w.webContents.send('account:change', this.state)+ })+ }++ private set(change: Partial<AccountState>) {+ this.state = { ...this.state, ...change }+ this.emit('change')+ }+}diff --git a/apps/desktop/src/main/auth.ts b/apps/desktop/src/main/auth.tsnew file mode 100644index 00000000..d5a3dff2--- /dev/null+++ b/apps/desktop/src/main/auth.ts@@ -0,0 +1,63 @@+import { app, ipcMain, shell } from 'electron'++// Browser sign-ins that come back to this app on a custom scheme (ASWebAuthenticationSession's+// job on the native apps): connector OAuth (`codync://oauth`) and the account (`com.pokai.Codync://callback`).++export const SCHEMES = ['codync', 'com.pokai.Codync']++interface Pending {+ scheme: string+ resolve: (url: string) => void+ reject: (error: Error) => void+ timer: NodeJS.Timeout+}++let pending: Pending | null = null++export function registerSchemes() {+ for (const scheme of SCHEMES) {+ if (process.defaultApp && process.argv[1]) app.setAsDefaultProtocolClient(scheme, process.execPath, [process.argv[1]])+ else app.setAsDefaultProtocolClient(scheme)+ }+ // macOS delivers the URL here; Linux starts a second instance with it in argv.+ app.on('open-url', (event, url) => {+ event.preventDefault()+ handleURL(url)+ })+}++/** A URL on one of our schemes reached the app (open-url, or a second instance's argv). */+export function handleURL(url: string) {+ const scheme = url.split(':')[0]?.toLowerCase()+ if (pending && scheme === pending.scheme.toLowerCase()) {+ clearTimeout(pending.timer)+ pending.resolve(url)+ pending = null+ }+}++export function urlFromArgv(argv: string[]) {+ return argv.find((a) => SCHEMES.some((s) => a.toLowerCase().startsWith(`${s.toLowerCase()}:`)))+}++/** Opens `url` in the browser and waits (up to 10 minutes) for the return on `scheme`. */+export function authenticate(url: string, scheme: string): Promise<string> {+ if (!/^https:\/\//.test(url)) return Promise.reject(new Error('Sign-in needs an https address.'))+ pending?.reject(new Error('Another sign-in started.'))+ return new Promise((resolve, reject) => {+ pending = {+ scheme,+ resolve,+ reject,+ timer: setTimeout(() => {+ pending = null+ reject(new Error('Sign-in timed out.'))+ }, 10 * 60_000),+ }+ void shell.openExternal(url)+ })+}++export function registerAuthIPC() {+ ipcMain.handle('app:authenticate', (_e, url: string, scheme: string) => authenticate(url, scheme))+}diff --git a/apps/desktop/src/main/files.ts b/apps/desktop/src/main/files.tsnew file mode 100644index 00000000..8a76e48b--- /dev/null+++ b/apps/desktop/src/main/files.ts@@ -0,0 +1,38 @@+import { promises as fs } from 'node:fs'+import { basename } from 'node:path'+import { fileURLToPath } from 'node:url'+import { clipboard } from 'electron'++export async function readFiles(paths: string[]) {+ const out: { name: string; data: Uint8Array }[] = []+ for (const path of paths) {+ try {+ out.push({ name: basename(path), data: new Uint8Array(await fs.readFile(path)) })+ } catch {}+ }+ return out+}++const fileURLFormat = process.platform === 'darwin' ? 'electron application/osclipboard;format="public.file-url"' : 'text/uri-list'++/** ⌘V with a copied file or image: the files it holds (the text field alone would paste a name). */+export async function readClipboardFiles() {+ const items = await clipboard.read()+ const urls: string[] = []+ for (const item of items) {+ if (item.types.includes(fileURLFormat)) {+ const text = await ((await item.getType(fileURLFormat)) as Blob).text()+ urls.push(...text.split(/\r?\n/).filter((l) => l.startsWith('file://')))+ }+ }+ if (urls.length) return readFiles(urls.map((u) => fileURLToPath(u.replace(/\0+$/, ''))))+ const out: { name: string; data: Uint8Array }[] = []+ for (const item of items) {+ const image = item.types.find((t) => t === 'image/png' || t === 'image/jpeg')+ if (image && !item.types.includes('text/plain')) {+ const blob = (await item.getType(image)) as Blob+ out.push({ name: `pasted-${Math.floor(Date.now() / 1000)}.${image === 'image/png' ? 'png' : 'jpg'}`, data: new Uint8Array(await blob.arrayBuffer()) })+ }+ }+ return out+}diff --git a/apps/desktop/src/main/host-controller.ts b/apps/desktop/src/main/host-controller.tsnew file mode 100644index 00000000..4bbf5fe7--- /dev/null+++ b/apps/desktop/src/main/host-controller.ts@@ -0,0 +1,282 @@+import { execFile } from 'node:child_process'+import { createHash } from 'node:crypto'+import { EventEmitter } from 'node:events'+import { existsSync, promises as fs, readFileSync, realpathSync } from 'node:fs'+import { homedir, platform } from 'node:os'+import { join } from 'node:path'+import { app } from 'electron'+import type { HostState, LocalHost } from '../shared/ipc'++/** `CODYNC_PORT` / `CODYNC_HOME` point the app at a dev host started with `codync-host serve`. */+export const devPort = process.env.CODYNC_PORT ? Number(process.env.CODYNC_PORT) : null+export const port = devPort ?? 19222+export const dataDir = process.env.CODYNC_HOME ?? join(homedir(), '.codync')+export const baseURL = `http://127.0.0.1:${port}`++interface Health {+ ok?: boolean+ computerId?: string+ binaryPath?: string+ binaryHash?: string+ busy?: boolean+}++export async function fetchHealth(url = baseURL, timeoutMs = 2000): Promise<Health | null> {+ try {+ const res = await fetch(`${url}/health`, { signal: AbortSignal.timeout(timeoutMs) })+ if (!res.ok) return null+ return (await res.json()) as Health+ } catch {+ return null+ }+}++export function run(bin: string, args: string[]): Promise<{ status: number; output: string }> {+ return new Promise((resolve) => {+ execFile(bin, args, { maxBuffer: 8 * 1024 * 1024 }, (error, stdout, stderr) => {+ const status = error ? (typeof error.code === 'number' ? error.code : 1) : 0+ resolve({ status, output: `${stdout}${stderr}`.trim() })+ })+ })+}++const isMac = platform() === 'darwin'++/** The service definition `codync-host install` writes. */+const serviceFile = isMac+ ? join(homedir(), 'Library/LaunchAgents/com.pokai.codync.host.plist')+ : join(homedir(), '.config/systemd/user/codync-host.service')++/**+ * Manages the local codync-host (binary, background service, health) the way the native+ * apps did: bundled next to the app, else a Homebrew / cargo install.+ */+export class HostController extends EventEmitter {+ state: HostState = { kind: 'starting' }+ local: LocalHost | null = null+ private loop: NodeJS.Timeout | null = null+ private generation = 0+ private installing = false+ private replacedStale = false+ private expectedHash: string | null = null+ private failures = 0+ private preparingForUpdate = false++ get binary(): string | null {+ const candidates = [+ app.isPackaged ? join(process.resourcesPath, 'codync-host') : null,+ process.env.CODYNC_HOST_BIN ?? null,+ '/opt/homebrew/bin/codync-host',+ '/usr/local/bin/codync-host',+ '/usr/bin/codync-host',+ join(homedir(), '.cargo/bin/codync-host'),+ ]+ return candidates.find((c): c is string => !!c && existsSync(c)) ?? null+ }++ get logPath() {+ return join(dataDir, 'host.log')+ }++ private setState(state: HostState) {+ this.state = state+ this.emit('change')+ }++ private setLocal(local: LocalHost | null) {+ this.local = local+ this.emit('change')+ }++ start() {+ void this.refresh()+ }++ private uninstalled() {+ return prefs.get('hostUninstalled') === true+ }++ async refresh() {+ if (this.preparingForUpdate) return+ if (!this.binary && devPort === null) return this.setState({ kind: 'missingBinary' })+ if (devPort === null && prefs.get('hostRestartAfterAppUpdate') === true && existsSync(serviceFile)) return this.install()+ if (devPort === null && !existsSync(serviceFile)) {+ // The app is the way to run the host: set it up right away, unless the user took it out.+ if (this.uninstalled()) return this.setState({ kind: 'notInstalled' })+ return this.install()+ }+ this.connect()+ }++ /** `codync-host install` also routes Claude Code's status line through the host. */+ async install() {+ const bin = this.binary+ if (this.preparingForUpdate || this.installing || !bin) return+ this.installing = true+ this.stopLoop()+ prefs.set('hostUninstalled', false)+ this.setState({ kind: 'starting' })+ try {+ const result = await run(bin, ['install', '--port', String(port)])+ if (result.status !== 0) {+ this.setState({ kind: 'failed', message: result.output || 'Install failed' })+ } else {+ await sleep(1000)+ this.connect()+ }+ } finally {+ this.installing = false+ }+ }++ restart() {+ if (devPort !== null) {+ this.setState({ kind: 'failed', message: 'Restart the manually started development host in its terminal.' })+ return+ }+ this.replacedStale = false+ void this.install()+ }++ async uninstall() {+ const bin = this.binary+ if (!bin) return+ this.stopLoop()+ prefs.set('hostUninstalled', true)+ await run(bin, ['uninstall'])+ this.setLocal(null)+ this.setState({ kind: 'notInstalled' })+ }++ /** Stops the service before the app replaces itself; `resumeAfterCancelledUpdate` undoes it. */+ async prepareForUpdate() {+ if (devPort !== null) return+ if (this.installing) throw new Error('The host is being installed. Try again when it finishes.')+ this.preparingForUpdate = true+ if (existsSync(serviceFile)) prefs.set('hostRestartAfterAppUpdate', true)+ this.stopLoop()+ const bin = this.binary+ if (!bin) throw new Error('The bundled host is missing.')+ const result = await run(bin, ['stop'])+ if (result.status !== 0) throw new Error(result.output || 'The old host could not be stopped.')+ }++ resumeAfterCancelledUpdate() {+ if (!this.preparingForUpdate) return+ this.preparingForUpdate = false+ if (existsSync(serviceFile)) void this.install()+ else void this.refresh()+ }++ async isIdleForUpdate(): Promise<boolean> {+ if (this.installing || this.preparingForUpdate || devPort !== null) return false+ if (!existsSync(serviceFile)) return true+ const health = await fetchHealth()+ return health?.busy === false+ }++ private stopLoop() {+ this.generation+++ if (this.loop) clearTimeout(this.loop)+ this.loop = null+ }++ /** Watches the host's health; the renderer's store handles the event stream itself. */+ private connect() {+ if (this.preparingForUpdate) return+ this.stopLoop()+ const generation = this.generation+ this.failures = 0+ const tick = async () => {+ if (generation !== this.generation) return+ if (await this.attachLocal()) {+ this.failures = 0+ if (generation !== this.generation) return+ this.setState({ kind: 'running' })+ if (devPort === null && prefs.get('hostRestartAfterAppUpdate') === true) prefs.set('hostRestartAfterAppUpdate', false)+ } else {+ this.failures+++ if (this.failures > 5) this.setState({ kind: 'failed', message: "The host isn't responding. See the log for details." })+ else if (this.state.kind !== 'running') this.setState({ kind: 'starting' })+ }+ if (generation === this.generation) this.loop = setTimeout(tick, 5000)+ }+ void (async () => {+ const bin = this.binary+ if (bin && devPort === null) this.expectedHash = await hashFile(bin)+ void tick()+ })()+ }++ /** Attaches the local host once it answers, and again when its token or identity changed. */+ private async attachLocal(): Promise<boolean> {+ const token = await readToken()+ const health = await fetchHealth()+ if (!token || !health?.computerId) return false+ if (devPort === null) {+ // A rebuild can change the host without changing the release version.+ const bin = this.binary+ if (!this.expectedHash || !bin) return false+ const matches = health.binaryHash === this.expectedHash && health.binaryPath === resolved(bin)+ if (!matches) {+ if (!this.replacedStale) {+ this.replacedStale = true+ void this.install()+ }+ return false+ }+ }+ if (this.local?.computerId === health.computerId && this.local.token === token) return true+ this.setLocal({ computerId: health.computerId, baseURL, token })+ return true+ }+}++async function readToken(): Promise<string | null> {+ try {+ return (await fs.readFile(join(dataDir, 'token'), 'utf8')).trim() || null+ } catch {+ return null+ }+}++async function hashFile(path: string): Promise<string | null> {+ try {+ return createHash('sha256').update(await fs.readFile(path)).digest('hex')+ } catch {+ return null+ }+}++function resolved(path: string) {+ try {+ return realpathSync(path)+ } catch {+ return path+ }+}++const sleep = (ms: number) => new Promise((r) => setTimeout(r, ms))++/** Main-process preferences (a small JSON file in the app's data folder). */+export const prefs = (() => {+ const file = () => join(app.getPath('userData'), 'host-prefs.json')+ let cache: Record<string, unknown> | null = null+ const load = () => {+ if (cache) return cache+ try {+ cache = JSON.parse(readFileSync(file(), 'utf8')) as Record<string, unknown>+ } catch {+ cache = {}+ }+ return cache+ }+ return {+ get: (key: string) => load()[key],+ set: (key: string, value: unknown) => {+ const data = load()+ data[key] = value+ void fs.mkdir(app.getPath('userData'), { recursive: true }).then(() => fs.writeFile(file(), JSON.stringify(data)))+ },+ }+})()diff --git a/apps/desktop/src/main/host-proxy.ts b/apps/desktop/src/main/host-proxy.tsnew file mode 100644index 00000000..362350f6--- /dev/null+++ b/apps/desktop/src/main/host-proxy.ts@@ -0,0 +1,104 @@+import { ipcMain, type WebContents } from 'electron'+import type { CallError } from '../shared/ipc'++// Loopback HTTP + SSE for the renderer. The host has no CORS (it's a loopback API for local+// apps), so requests leave from the main process.++const streams = new Map<string, AbortController>()++function isLoopback(url: string) {+ try {+ const host = new URL(url).hostname+ return host === '127.0.0.1' || host === 'localhost' || host === '[::1]'+ } catch {+ return false+ }+}++async function call(baseURL: string, token: string, method: string, body: unknown, timeoutMs: number): Promise<unknown> {+ if (!isLoopback(baseURL)) throw { status: 0, message: 'Not a loopback host.' } satisfies CallError+ let res: Response+ try {+ res = await fetch(`${baseURL}/api/${method}`, {+ method: 'POST',+ headers: { Authorization: `Bearer ${token}`, 'Content-Type': 'application/json' },+ body: JSON.stringify(body ?? {}),+ signal: AbortSignal.timeout(timeoutMs),+ })+ } catch {+ throw { status: 0, message: "Can't reach your computer. Is it on and connected to the internet?" } satisfies CallError+ }+ const text = await res.text()+ if (!res.ok) {+ let message = `Host error ${res.status}`+ try {+ message = (JSON.parse(text) as { error?: string }).error ?? message+ } catch {}+ throw { status: res.status, message } satisfies CallError+ }+ return text ? JSON.parse(text) : {}+}++function stream(sender: WebContents, id: string, url: string, token: string) {+ const controller = new AbortController()+ streams.set(id, controller)+ const send = (channel: string, payload: unknown) => {+ if (!sender.isDestroyed()) sender.send(channel, id, payload)+ }+ void (async () => {+ // Idle timeout, not a total one: the host pings every 15 s, so silence this long means it's gone.+ let idle: NodeJS.Timeout | null = null+ const arm = () => {+ if (idle) clearTimeout(idle)+ idle = setTimeout(() => controller.abort(), 45_000)+ }+ try {+ if (!isLoopback(url)) throw { status: 0, message: 'Not a loopback host.' }+ arm()+ const res = await fetch(url, {+ headers: { Authorization: `Bearer ${token}`, Accept: 'text/event-stream' },+ signal: controller.signal,+ })+ if (res.status !== 200 || !res.body) throw { status: res.status, message: `Host error ${res.status}` }+ const reader = res.body.getReader()+ const decoder = new TextDecoder()+ let buffer = ''+ for (;;) {+ const { value, done } = await reader.read()+ if (done) break+ arm()+ buffer += decoder.decode(value, { stream: true })+ let nl: number+ while ((nl = buffer.indexOf('\n')) >= 0) {+ const line = buffer.slice(0, nl).replace(/\r$/, '')+ buffer = buffer.slice(nl + 1)+ if (line.startsWith('data:')) send('host:stream:data', line.slice(5).trimStart())+ }+ }+ send('host:stream:end', null)+ } catch (error) {+ const e = error as Partial<CallError>+ send('host:stream:end', controller.signal.aborted && streams.has(id)+ ? { status: 0, message: "Can't reach your computer." }+ : { status: e.status ?? 0, message: e.message ?? "Can't reach your computer." })+ } finally {+ if (idle) clearTimeout(idle)+ streams.delete(id)+ }+ })()+}++export function registerHostProxy() {+ ipcMain.handle('host:call', (_e, baseURL: string, token: string, method: string, body: unknown, timeoutMs: number) =>+ call(baseURL, token, method, body, timeoutMs).then(+ (value) => ({ ok: true, value }),+ (error: CallError) => ({ ok: false, error }),+ ),+ )+ ipcMain.on('host:stream:open', (e, id: string, url: string, token: string) => stream(e.sender, id, url, token))+ ipcMain.on('host:stream:close', (_e, id: string) => {+ const controller = streams.get(id)+ streams.delete(id)+ controller?.abort()+ })+}diff --git a/apps/desktop/src/main/index.ts b/apps/desktop/src/main/index.tsnew file mode 100644index 00000000..763fecee--- /dev/null+++ b/apps/desktop/src/main/index.ts@@ -0,0 +1,198 @@+import { join } from 'node:path'+import { app, BrowserWindow, clipboard, dialog, ipcMain, Menu, nativeTheme, session, shell } from 'electron'+import type { HostSnapshot, WindowCommand } from '../shared/ipc'+import { devPort, fetchHealth, HostController } from './host-controller'+import { registerHostProxy } from './host-proxy'+import { readClipboardFiles, readFiles } from './files'+import { Tray } from './tray'+import { AccountService } from './account'+import { Updates } from './updates'+import { handleURL, registerAuthIPC, registerSchemes, urlFromArgv } from './auth'+import { registerSpeech } from './speech'++const host = new HostController()+const account = new AccountService()+const updates = new Updates()+let chat: BrowserWindow | null = null+let pairing: BrowserWindow | null = null+let quitting = false+const isMac = process.platform === 'darwin'++function rendererURL(page: string) {+ return process.env.ELECTRON_RENDERER_URL+ ? `${process.env.ELECTRON_RENDERER_URL}/?window=${page}`+ : `file://${join(__dirname, '../renderer/index.html')}?window=${page}`+}++const background = () => (nativeTheme.shouldUseDarkColors ? '#0A0A0A' : '#FFFFFF')++function snapshot(): HostSnapshot {+ return { state: host.state, local: host.local, dev: devPort !== null, logPath: host.logPath }+}++/** The chat window: roster on the left, the conversation on the right (Grok Bot's desktop layout). */+function openChat() {+ if (chat) {+ chat.show()+ chat.focus()+ return chat+ }+ chat = new BrowserWindow({+ width: 1100,+ height: 760,+ minWidth: 760,+ minHeight: 500,+ title: 'Codync',+ show: false,+ backgroundColor: background(),+ titleBarStyle: isMac ? 'hidden' : 'default',+ webPreferences: { preload: join(__dirname, '../preload/index.js'), sandbox: true, contextIsolation: true },+ })+ chat.on('ready-to-show', () => chat?.show())+ // Closing hides: the window keeps the stores (and the menu bar's data) alive.+ chat.on('close', (e) => {+ if (quitting) return+ e.preventDefault()+ chat?.hide()+ })+ chat.on('closed', () => (chat = null))+ chat.webContents.setWindowOpenHandler(({ url }) => {+ void shell.openExternal(url)+ return { action: 'deny' }+ })+ void chat.loadURL(rendererURL('chat'))+ return chat+}++function openPairing() {+ if (pairing) {+ pairing.webContents.send('app:command', { kind: 'reviewApprovals' } satisfies WindowCommand)+ pairing.show()+ pairing.focus()+ return+ }+ pairing = new BrowserWindow({+ width: 340,+ height: 420,+ useContentSize: true,+ resizable: false,+ title: 'Pair iPhone',+ backgroundColor: background(),+ webPreferences: { preload: join(__dirname, '../preload/index.js'), sandbox: true, contextIsolation: true },+ })+ pairing.on('closed', () => (pairing = null))+ void pairing.loadURL(rendererURL('pairing'))+}++export function send(command: WindowCommand, show = true) {+ const window = show ? openChat() : chat+ if (show && isMac) app.focus({ steal: true })+ window?.webContents.send('app:command', command)+}++function menu() {+ const template: Electron.MenuItemConstructorOptions[] = [+ ...(isMac ? [{ role: 'appMenu' as const }] : []),+ { role: 'fileMenu' },+ { role: 'editMenu' },+ {+ label: 'View',+ submenu: [+ { label: 'Bigger', accelerator: 'CmdOrCtrl+=', click: () => send({ kind: 'stepTextSize', up: true }, false) },+ { label: 'Smaller', accelerator: 'CmdOrCtrl+-', click: () => send({ kind: 'stepTextSize', up: false }, false) },+ { label: 'Actual Size', accelerator: 'CmdOrCtrl+0', click: () => send({ kind: 'stepTextSize', up: null }, false) },+ { type: 'separator' },+ { label: 'New Chat', accelerator: 'CmdOrCtrl+N', click: () => send({ kind: 'newChat' }) },+ { label: 'Search Bots', accelerator: 'CmdOrCtrl+F', click: () => send({ kind: 'search' }) },+ { label: 'Toggle Sidebar', accelerator: 'Ctrl+CmdOrCtrl+S', click: () => send({ kind: 'toggleSidebar' }, false) },+ { label: 'Conversation Details', accelerator: 'Alt+CmdOrCtrl+I', click: () => send({ kind: 'toggleDetails' }, false) },+ { type: 'separator' },+ ...(app.isPackaged ? [] : [{ role: 'toggleDevTools' as const }, { role: 'reload' as const }]),+ { role: 'togglefullscreen' },+ ],+ },+ { role: 'windowMenu' },+ ]+ Menu.setApplicationMenu(Menu.buildFromTemplate(template))+}++function registerIPC(tray: Tray) {+ registerHostProxy()+ ipcMain.on('app:version', (e) => (e.returnValue = app.getVersion()))+ ipcMain.handle('host:snapshot', () => snapshot())+ ipcMain.handle('host:health', (_e, url: string) => fetchHealth(url))+ ipcMain.on('host:install', () => void host.install())+ ipcMain.on('host:restart', () => host.restart())+ ipcMain.on('host:uninstall', () => void host.uninstall())+ ipcMain.on('host:openLog', () => void shell.openPath(host.logPath))+ ipcMain.on('app:openExternal', (_e, url: string) => {+ if (/^(https?|mailto|x-apple\.systempreferences):/.test(url)) void shell.openExternal(url)+ })+ ipcMain.on('app:openSettings', (_e, url: string) => {+ if (url.startsWith('x-apple.systempreferences:')) void shell.openExternal(url)+ })+ ipcMain.on('app:copy', (_e, text: string) => clipboard.writeText(text))+ ipcMain.handle('app:pickFiles', async (e) => {+ const window = BrowserWindow.fromWebContents(e.sender)+ const result = window+ ? await dialog.showOpenDialog(window, { properties: ['openFile', 'multiSelections'] })+ : await dialog.showOpenDialog({ properties: ['openFile', 'multiSelections'] })+ return result.canceled ? [] : readFiles(result.filePaths)+ })+ ipcMain.handle('app:clipboardFiles', () => readClipboardFiles())+ ipcMain.on('app:traySummary', (_e, summary) => tray.update(summary))+ ipcMain.on('app:openPairing', () => openPairing())+ ipcMain.on('app:quit', () => app.quit())+ ipcMain.handle('app:launchAtLogin', () => app.getLoginItemSettings().openAtLogin)+ ipcMain.handle('app:setLaunchAtLogin', (_e, on: boolean) => {+ app.setLoginItemSettings({ openAtLogin: on })+ return app.getLoginItemSettings().openAtLogin+ })+ ipcMain.handle('app:resetAllData', async () => {+ await host.uninstall()+ const { rm } = await import('node:fs/promises')+ const { dataDir } = await import('./host-controller')+ await rm(dataDir, { recursive: true, force: true })+ await rm(app.getPath('userData'), { recursive: true, force: true })+ app.relaunch()+ quitting = true+ app.exit(0)+ })+}++if (!app.requestSingleInstanceLock()) {+ app.quit()+} else {+ registerSchemes()+ app.on('second-instance', (_e, argv) => {+ const url = urlFromArgv(argv)+ if (url) handleURL(url)+ else openChat()+ })+ app.on('before-quit', () => (quitting = true))+ app.on('activate', () => openChat())+ app.on('window-all-closed', () => {+ // A menu bar app: it keeps running with no window.+ })+ void app.whenReady().then(() => {+ const tray = new Tray({ openChat, openPairing, send, host })+ registerIPC(tray)+ registerAuthIPC()+ registerSpeech()+ // Calls use the microphone (realtime voice); nothing else asks for permissions.+ session.defaultSession.setPermissionRequestHandler((_wc, permission, done) => done(permission === 'media' || permission === 'clipboard-sanitized-write'))+ account.register(() => BrowserWindow.getAllWindows())+ updates.register(() => BrowserWindow.getAllWindows())+ menu()+ host.on('change', () => {+ const s = snapshot()+ for (const w of BrowserWindow.getAllWindows()) w.webContents.send('host:change', s)+ tray.hostChanged()+ })+ nativeTheme.on('updated', () => {+ for (const w of BrowserWindow.getAllWindows()) w.setBackgroundColor(background())+ })+ host.start()+ openChat()+ })+}diff --git a/apps/desktop/src/main/speech.ts b/apps/desktop/src/main/speech.tsnew file mode 100644index 00000000..8b97b42c--- /dev/null+++ b/apps/desktop/src/main/speech.ts@@ -0,0 +1,65 @@+import { spawn, type ChildProcessWithoutNullStreams } from 'node:child_process'+import { existsSync } from 'node:fs'+import { join } from 'node:path'+import { app, ipcMain, type WebContents } from 'electron'+import type { SpeechEvent } from '../shared/ipc'++// On-device speech recognition for calls: a small Swift helper (native/speech-macos) runs+// SFSpeechRecognizer on the microphone and prints JSON lines. macOS only.++function helperPath() {+ const candidates = [+ app.isPackaged ? join(process.resourcesPath, 'codync-speech') : null,+ join(__dirname, '../../native/speech-macos/.build/release/codync-speech'),+ join(__dirname, '../../native/speech-macos/.build/debug/codync-speech'),+ ]+ return candidates.find((c): c is string => !!c && existsSync(c)) ?? null+}++let child: ChildProcessWithoutNullStreams | null = null+let listener: WebContents | null = null++function emit(event: SpeechEvent) {+ if (listener && !listener.isDestroyed()) listener.send('speech:event', event)+}++function start(sender: WebContents, locale: string | null) {+ stop()+ listener = sender+ const path = helperPath()+ if (!path) return emit({ type: 'error', message: "On-device speech isn't available in this build." })+ const proc = spawn(path, locale ? ['--locale', locale] : [], { stdio: 'pipe' })+ child = proc+ let buffer = ''+ proc.stdout.on('data', (chunk: Buffer) => {+ buffer += chunk.toString('utf8')+ let nl: number+ while ((nl = buffer.indexOf('\n')) >= 0) {+ const line = buffer.slice(0, nl)+ buffer = buffer.slice(nl + 1)+ try {+ if (child === proc) emit(JSON.parse(line) as SpeechEvent)+ } catch {}+ }+ })+ proc.on('exit', () => {+ if (child === proc) {+ child = null+ emit({ type: 'stopped' })+ }+ })+ proc.on('error', (error) => emit({ type: 'error', message: error.message }))+}++function stop() {+ const proc = child+ child = null+ if (proc && !proc.killed) proc.kill('SIGTERM')+}++export function registerSpeech() {+ ipcMain.on('speech:available', (e) => (e.returnValue = process.platform === 'darwin' && helperPath() !== null))+ ipcMain.on('speech:start', (e, locale: string | null) => start(e.sender, locale))+ ipcMain.on('speech:stop', () => stop())+ app.on('before-quit', stop)+}diff --git a/apps/desktop/src/main/tray.ts b/apps/desktop/src/main/tray.tsnew file mode 100644index 00000000..a1c5a571--- /dev/null+++ b/apps/desktop/src/main/tray.ts@@ -0,0 +1,189 @@+import { join } from 'node:path'+import { app, clipboard, Menu, nativeImage, shell, Tray as ElectronTray } from 'electron'+import type { TraySummary, WindowCommand } from '../shared/ipc'+import type { HostController } from './host-controller'++interface Deps {+ openChat: () => unknown+ openPairing: () => void+ send: (command: WindowCommand, show?: boolean) => void+ host: HostController+}++const resources = () => (app.isPackaged ? process.resourcesPath : join(__dirname, '../../resources'))+const TEXT_SIZES = [11, 12, 13, 14, 15, 16, 18]++/** The menu bar icon and its system menu: macOS owns layout, selection and submenus. */+export class Tray {+ private tray: ElectronTray+ private summary: TraySummary | null = null+ private launchAtLogin = app.getLoginItemSettings().openAtLogin++ constructor(private deps: Deps) {+ this.tray = new ElectronTray(this.icon(false))+ this.tray.setToolTip('Codync')+ this.rebuild()+ }++ private icon(alert: boolean) {+ const image = nativeImage.createFromPath(join(resources(), 'tray', alert ? 'trayAlertTemplate.png' : 'trayTemplate.png'))+ image.setTemplateImage(true)+ return image+ }++ update(summary: TraySummary) {+ const attention = summary.needsAttention !== this.summary?.needsAttention+ this.summary = summary+ if (attention) this.tray.setImage(this.icon(summary.needsAttention))+ this.rebuild()+ }++ hostChanged() {+ this.rebuild()+ }++ private image(dataURL: string | null) {+ if (!dataURL) return undefined+ const image = nativeImage.createFromDataURL(dataURL)+ return image.isEmpty() ? undefined : image+ }++ private rebuild() {+ const { host, send } = this.deps+ const s = this.summary+ const state = host.state+ const items: Electron.MenuItemConstructorOptions[] = []+ const status =+ state.kind === 'missingBinary' ? 'Host not found'+ : state.kind === 'notInstalled' ? 'Host not installed'+ : state.kind === 'starting' ? 'Connecting…'+ : state.kind === 'failed' ? 'Host problem'+ : (s?.status ?? 'Connected')+ items.push({ label: status, enabled: false })+ items.push({ label: 'Open Codync', accelerator: 'CmdOrCtrl+O', click: () => this.deps.openChat() })+ if (state.kind === 'running') {+ items.push({ label: 'Pair iPhone…', enabled: s?.canPair ?? false, click: () => this.deps.openPairing() })+ }+ items.push({ type: 'separator' })++ switch (state.kind) {+ case 'missingBinary':+ items.push({ label: 'Reinstall Codync or install the host with Homebrew.', enabled: false })+ items.push({ label: 'Copy host install command', click: () => clipboard.writeText('brew install leepokai/codync/codync-host') })+ break+ case 'notInstalled':+ items.push({ label: 'Install host', click: () => void host.install() })+ break+ case 'starting':+ items.push({ label: 'Starting the host…', enabled: false })+ break+ case 'failed':+ items.push({ label: state.message, enabled: false })+ items.push({ label: 'Restart host', click: () => host.restart() })+ items.push({ label: 'Open log', click: () => void shell.openPath(host.logPath) })+ break+ case 'running':+ if (s?.approval) {+ items.push({ label: `Review access request from ${s.approval}…`, click: () => send({ kind: 'reviewApprovals' }) })+ items.push({ type: 'separator' })+ }+ if (!s || s.bots.length === 0) {+ items.push({ label: 'No bots yet', enabled: false })+ } else {+ for (const bot of s.bots) {+ const submenu: Electron.MenuItemConstructorOptions[] = [+ { label: bot.detail, enabled: false },+ { label: 'Open conversation', click: () => send({ kind: 'openBot', ref: bot.ref }) },+ ]+ if (bot.working) submenu.push({ label: 'Stop task', click: () => send({ kind: 'stopBot', ref: bot.ref }, false) })+ items.push({ label: bot.name, icon: this.image(bot.avatar), submenu })+ }+ }+ if (s?.screen) {+ items.push({ type: 'separator' })+ items.push({ label: 'Remote screen', submenu: this.screenMenu(s.screen) })+ }+ if (s && s.usage.length) {+ items.push({ type: 'separator' })+ for (const provider of s.usage) {+ // Buttons, not text: the menu dims a disabled item's image. They open the app.+ items.push({ label: provider.name, icon: this.image(provider.icon), click: () => this.deps.openChat() })+ for (const line of provider.lines) {+ items.push({ label: line.title, icon: this.image(line.bar), click: () => this.deps.openChat() })+ }+ }+ }+ break+ }++ items.push({ type: 'separator' })+ items.push({ label: 'Settings', submenu: this.settingsMenu() })+ if (s?.version) items.push({ label: `Version ${s.version}`, enabled: false })+ items.push({ label: 'Quit Codync', accelerator: 'CmdOrCtrl+Q', click: () => app.quit() })+ this.tray.setContextMenu(Menu.buildFromTemplate(items))+ }++ private screenMenu(screen: NonNullable<TraySummary['screen']>): Electron.MenuItemConstructorOptions[] {+ const items: Electron.MenuItemConstructorOptions[] = [+ {+ label: 'Enable remote screen',+ type: 'checkbox',+ checked: screen.enabled,+ click: () => this.deps.send({ kind: 'setRemoteScreen', on: !screen.enabled }, false),+ },+ { label: screen.subtitle, enabled: false },+ ]+ if (screen.enabled) {+ if (screen.needsLoginItem) {+ items.push({ label: 'Allow Codync Screen in Login Items…', click: () => void shell.openExternal('x-apple.systempreferences:com.apple.LoginItems-Settings.extension') })+ } else {+ if (screen.needsCapture) items.push({ label: 'Allow Screen Recording…', click: () => void shell.openExternal('x-apple.systempreferences:com.apple.preference.security?Privacy_ScreenCapture') })+ if (screen.needsInput) items.push({ label: 'Allow Accessibility…', click: () => void shell.openExternal('x-apple.systempreferences:com.apple.preference.security?Privacy_Accessibility') })+ }+ }+ if (screen.error) items.push({ label: screen.error, enabled: false })+ return items+ }++ private settingsMenu(): Electron.MenuItemConstructorOptions[] {+ const { host, send } = this.deps+ const s = this.summary+ const style = s?.usageIconStyle ?? 'character'+ const size = s?.textSize ?? 12+ return [+ {+ label: 'Usage icons',+ submenu: [+ { label: 'Character', type: 'radio', checked: style === 'character', click: () => send({ kind: 'setUsageIconStyle', style: 'character' }, false) },+ { label: 'Original', type: 'radio', checked: style === 'original', click: () => send({ kind: 'setUsageIconStyle', style: 'original' }, false) },+ ],+ },+ {+ label: 'Text Size',+ submenu: TEXT_SIZES.map((pt) => ({+ label: pt === 12 ? `${pt} pt (Default)` : `${pt} pt`,+ type: 'radio' as const,+ checked: pt === size,+ click: () => send({ kind: 'setTextSize', size: pt }, false),+ })),+ },+ {+ label: 'Open at login',+ type: 'checkbox',+ checked: this.launchAtLogin,+ click: () => {+ app.setLoginItemSettings({ openAtLogin: !this.launchAtLogin })+ this.launchAtLogin = app.getLoginItemSettings().openAtLogin+ this.rebuild()+ },+ },+ { type: 'separator' },+ { label: 'Restart host', click: () => host.restart() },+ { label: 'Open log', click: () => void shell.openPath(host.logPath) },+ { type: 'separator' },+ { label: 'Uninstall host service', click: () => void host.uninstall() },+ { type: 'separator' },+ { label: 'Reset all data…', click: () => send({ kind: 'confirmReset' }) },+ ]+ }+}diff --git a/apps/desktop/src/main/updates.ts b/apps/desktop/src/main/updates.tsnew file mode 100644index 00000000..f907c73a--- /dev/null+++ b/apps/desktop/src/main/updates.ts@@ -0,0 +1,36 @@+import { EventEmitter } from 'node:events'+import { app, ipcMain, type BrowserWindow } from 'electron'+import type { UpdateState } from '../shared/ipc'++/** The app's own updates. Release builds only. */+export class Updates extends EventEmitter {+ state: UpdateState = {+ supported: app.isPackaged,+ canCheck: app.isPackaged,+ checking: false,+ availableVersion: null,+ staged: false,+ autoCheck: true,+ autoDownload: true,+ lastCheck: null,+ error: null,+ waitingForApp: null,+ }++ register(windows: () => BrowserWindow[]) {+ ipcMain.handle('updates:state', () => this.state)+ ipcMain.on('updates:check', () => this.check())+ ipcMain.on('updates:autoCheck', (_e, on: boolean) => this.set({ autoCheck: on }))+ ipcMain.on('updates:autoDownload', (_e, on: boolean) => this.set({ autoDownload: on }))+ this.on('change', () => {+ for (const w of windows()) w.webContents.send('updates:change', this.state)+ })+ }++ check() {}++ protected set(change: Partial<UpdateState>) {+ this.state = { ...this.state, ...change }+ this.emit('change')+ }+}diff --git a/apps/desktop/src/preload/index.ts b/apps/desktop/src/preload/index.tsnew file mode 100644index 00000000..e3c4ce41--- /dev/null+++ b/apps/desktop/src/preload/index.ts@@ -0,0 +1,85 @@+import { contextBridge, ipcRenderer, type IpcRendererEvent } from 'electron'+import type { CallError, CodyncBridge, HostSnapshot, TraySummary, WindowCommand } from '../shared/ipc'++let streamId = 0+const streams = new Map<string, { onData: (line: string) => void; onEnd: (error: CallError | null) => void }>()++ipcRenderer.on('host:stream:data', (_e, id: string, line: string) => streams.get(id)?.onData(line))+ipcRenderer.on('host:stream:end', (_e, id: string, error: CallError | null) => {+ const s = streams.get(id)+ streams.delete(id)+ s?.onEnd(error)+})++function listen<T>(channel: string, cb: (value: T) => void) {+ const handler = (_e: IpcRendererEvent, value: T) => cb(value)+ ipcRenderer.on(channel, handler)+ return () => void ipcRenderer.removeListener(channel, handler)+}++const bridge: CodyncBridge = {+ platform: process.platform as CodyncBridge['platform'],+ appVersion: ipcRenderer.sendSync('app:version') as string,+ host: {+ snapshot: () => ipcRenderer.invoke('host:snapshot') as Promise<HostSnapshot>,+ onChange: (cb) => listen('host:change', cb),+ install: () => ipcRenderer.send('host:install'),+ restart: () => ipcRenderer.send('host:restart'),+ uninstall: () => ipcRenderer.send('host:uninstall'),+ openLog: () => ipcRenderer.send('host:openLog'),+ async call(baseURL, token, method, body, timeoutMs) {+ const result = (await ipcRenderer.invoke('host:call', baseURL, token, method, body, timeoutMs)) as+ | { ok: true; value: unknown }+ | { ok: false; error: CallError }+ if (!result.ok) throw result.error+ return result.value+ },+ stream(url, token, onData, onEnd) {+ const id = `s${++streamId}`+ streams.set(id, { onData, onEnd })+ ipcRenderer.send('host:stream:open', id, url, token)+ return () => {+ if (!streams.delete(id)) return+ ipcRenderer.send('host:stream:close', id)+ }+ },+ health: (baseURL) => ipcRenderer.invoke('host:health', baseURL),+ },+ account: {+ state: () => ipcRenderer.invoke('account:state'),+ onChange: (cb) => listen('account:change', cb),+ signIn: (provider) => ipcRenderer.invoke('account:signIn', provider),+ signOut: () => ipcRenderer.invoke('account:signOut'),+ token: () => ipcRenderer.invoke('account:token'),+ },+ speech: {+ available: ipcRenderer.sendSync('speech:available') as boolean,+ start: (locale) => ipcRenderer.send('speech:start', locale),+ stop: () => ipcRenderer.send('speech:stop'),+ onEvent: (cb) => listen('speech:event', cb),+ },+ updates: {+ state: () => ipcRenderer.invoke('updates:state'),+ onChange: (cb) => listen('updates:change', cb),+ check: () => ipcRenderer.send('updates:check'),+ setAutoCheck: (on) => ipcRenderer.send('updates:autoCheck', on),+ setAutoDownload: (on) => ipcRenderer.send('updates:autoDownload', on),+ },+ app: {+ openExternal: (url) => ipcRenderer.send('app:openExternal', url),+ copy: (text) => ipcRenderer.send('app:copy', text),+ pickFiles: () => ipcRenderer.invoke('app:pickFiles'),+ readClipboardFiles: () => ipcRenderer.invoke('app:clipboardFiles'),+ setTraySummary: (summary: TraySummary) => ipcRenderer.send('app:traySummary', summary),+ onCommand: (cb: (c: WindowCommand) => void) => listen('app:command', cb),+ openPairing: () => ipcRenderer.send('app:openPairing'),+ quit: () => ipcRenderer.send('app:quit'),+ resetAllData: () => ipcRenderer.invoke('app:resetAllData'),+ setLaunchAtLogin: (on) => ipcRenderer.invoke('app:setLaunchAtLogin', on),+ launchAtLogin: () => ipcRenderer.invoke('app:launchAtLogin'),+ openSettings: (url) => ipcRenderer.send('app:openSettings', url),+ authenticate: (url, scheme) => ipcRenderer.invoke('app:authenticate', url, scheme),+ },+}++contextBridge.exposeInMainWorld('codync', bridge)diff --git a/apps/desktop/src/renderer/assets/agents/agoragentic-acp.svg b/apps/desktop/src/renderer/assets/agents/agoragentic-acp.svgnew file mode 100644index 00000000..b1372e68--- /dev/null+++ b/apps/desktop/src/renderer/assets/agents/agoragentic-acp.svg@@ -0,0 +1,5 @@+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">+ <circle cx="8" cy="8" r="7" stroke="currentColor" stroke-width="1.5"/>+ <path d="M5.5 10.5L8 4L10.5 10.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>+ <line x1="6.25" y1="8.75" x2="9.75" y2="8.75" stroke="currentColor" stroke-width="1.2" stroke-linecap="round"/>+</svg>diff --git a/apps/desktop/src/renderer/assets/agents/amp-acp.svg b/apps/desktop/src/renderer/assets/agents/amp-acp.svgnew file mode 100644index 00000000..314881af--- /dev/null+++ b/apps/desktop/src/renderer/assets/agents/amp-acp.svg@@ -0,0 +1,6 @@+<svg width="16" height="16" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M13.9197 13.61L17.3816 26.566L14.242 27.4049L11.2645 16.2643L0.119926 13.2906L0.957817 10.15L13.9197 13.61Z" fill="currentColor"/>+<path d="M13.7391 16.0892L4.88169 24.9056L2.58872 22.6019L11.4461 13.7865L13.7391 16.0892Z" fill="currentColor"/>+<path d="M18.9386 8.58315L22.4005 21.5392L19.2609 22.3781L16.2833 11.2374L5.13879 8.26381L5.97668 5.12318L18.9386 8.58315Z" fill="currentColor"/>+<path d="M23.9803 3.55632L27.4422 16.5124L24.3025 17.3512L21.325 6.21062L10.1805 3.23698L11.0183 0.0963593L23.9803 3.55632Z" fill="currentColor"/>+</svg>diff --git a/apps/desktop/src/renderer/assets/agents/antigravity-acp.svg b/apps/desktop/src/renderer/assets/agents/antigravity-acp.svgnew file mode 100644index 00000000..02f65dab--- /dev/null+++ b/apps/desktop/src/renderer/assets/agents/antigravity-acp.svg@@ -0,0 +1,3 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M14.1452 14.6818C14.9937 15.3182 16.2664 14.894 15.0997 13.7273C11.5998 10.3333 12.3421 1 7.99366 1C3.64518 1 4.3876 10.3333 0.887603 13.7273C-0.385123 15 0.993664 15.3182 1.84215 14.6818C5.13002 12.4545 4.9179 8.5303 7.99366 8.5303C11.0694 8.5303 10.8573 12.4545 14.1452 14.6818Z" fill="currentColor"/>+</svg>diff --git a/apps/desktop/src/renderer/assets/agents/auggie.svg b/apps/desktop/src/renderer/assets/agents/auggie.svgnew file mode 100644index 00000000..21510774--- /dev/null+++ b/apps/desktop/src/renderer/assets/agents/auggie.svg@@ -0,0 +1,4 @@+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">+ <path fill="currentColor" d="M9.972 13.193h2.577q.187 0 .277-.09t.091-.294V10.47q0-.324.133-.59.135-.27.36-.424a1 1 0 0 1 .099-.06 1 1 0 0 1-.1-.058 1.1 1.1 0 0 1-.359-.424 1.3 1.3 0 0 1-.133-.59v-2.33q0-.202-.091-.293t-.277-.089H9.972a.38.38 0 0 1-.294-.124.4.4 0 0 1-.108-.281q.002-.176.131-.293a.46.46 0 0 1 .313-.111h2.775c.36 0 .642.097.836.288q.293.29.294.832V8.24q0 .39.152.562.148.168.555.178a.4.4 0 0 1 .27.128.41.41 0 0 1 .104.287.44.44 0 0 1-.1.282.34.34 0 0 1-.277.132c-.266.006-.452.066-.55.177q-.151.174-.152.573v2.318c0 .235-.043.44-.128.607a.85.85 0 0 1-.389.387 1.3 1.3 0 0 1-.534.124V14h-2.854a.45.45 0 0 1-.315-.118.38.38 0 0 1-.129-.286q0-.164.109-.282a.38.38 0 0 1 .293-.123zM1.103 9.108a.4.4 0 0 1 .276-.128q.4-.008.55-.177.15-.173.151-.562V5.923q.002-.543.294-.832c.195-.191.477-.288.836-.288h2.775q.188 0 .313.111a.37.37 0 0 1 .131.293.4.4 0 0 1-.108.281.38.38 0 0 1-.293.123H3.45q-.186 0-.277.09t-.092.292v2.33c0 .213-.044.413-.133.59a1.1 1.1 0 0 1-.359.424 1 1 0 0 1-.1.059 1 1 0 0 1 .1.059q.225.156.359.423t.133.59v2.34q0 .203.092.293.088.09.277.089h2.577a.38.38 0 0 1 .294.123q.108.12.108.281a.38.38 0 0 1-.13.286.45.45 0 0 1-.314.118l-2.775-.003a1.4 1.4 0 0 1-.613-.126.87.87 0 0 1-.388-.387 1.34 1.34 0 0 1-.129-.608v-2.318q0-.4-.151-.572-.151-.168-.55-.177a.35.35 0 0 1-.278-.132.42.42 0 0 1-.102-.28q0-.173.103-.287"/>+ <path fill="currentColor" d="M5.437 10.36a.986.986 0 0 1-.994-.975c0-.538.446-.976.994-.976s.994.438.994.976a.986.986 0 0 1-.994.976M10.562 8.41c.548 0 .994.437.994.975a.986.986 0 0 1-.994.976.986.986 0 0 1-.994-.976c0-.538.446-.976.994-.976M8.74 2c.37 0 .446.15.446.275v.034q0 .034-.009.201-.01.162-.017.549-.018.378-.044 1.06c0 .106-.065.233-.375.233-.311 0-.376-.126-.376-.23l-.07-1.835v-.003c0-.13.078-.284.446-.284M7.256 2c.369 0 .446.15.446.275v.034q0 .034-.01.201-.007.162-.017.549-.017.378-.043 1.06c0 .106-.065.233-.376.233-.31 0-.375-.126-.375-.23l-.07-1.835v-.003C6.81 2.154 6.887 2 7.256 2"/>+</svg>diff --git a/apps/desktop/src/renderer/assets/agents/autohand.svg b/apps/desktop/src/renderer/assets/agents/autohand.svgnew file mode 100644index 00000000..f3bc983c--- /dev/null+++ b/apps/desktop/src/renderer/assets/agents/autohand.svg@@ -0,0 +1,26 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M4.66949 9.56637C4.66949 8.92122 4.13288 8.39823 3.47094 8.39823C2.809 8.39823 2.2724 8.92122 2.2724 9.56637C2.2724 10.2115 2.809 10.7345 3.47094 10.7345V11C2.65856 11 2 10.3581 2 9.56637C2 8.7746 2.65856 8.13274 3.47094 8.13274C4.28332 8.13274 4.94189 8.7746 4.94189 9.56637C4.94189 10.3581 4.28332 11 3.47094 11V10.7345C4.13288 10.7345 4.66949 10.2115 4.66949 9.56637Z" fill="currentColor"/>+<path d="M3.90678 9.59292C3.90678 9.81286 3.72385 9.99115 3.49818 9.99115C3.27252 9.99115 3.08959 9.81286 3.08959 9.59292C3.08959 9.37298 3.27252 9.19469 3.49818 9.19469C3.72385 9.19469 3.90678 9.37298 3.90678 9.59292Z" fill="currentColor"/>+<path d="M3.8523 9.59292C3.8523 9.40231 3.69376 9.24779 3.49818 9.24779C3.30261 9.24779 3.14407 9.40231 3.14407 9.59292C3.14407 9.78353 3.30261 9.93805 3.49818 9.93805V9.99115C3.27252 9.99115 3.08959 9.81286 3.08959 9.59292C3.08959 9.37298 3.27252 9.19469 3.49818 9.19469C3.72385 9.19469 3.90678 9.37298 3.90678 9.59292C3.90678 9.81286 3.72385 9.99115 3.49818 9.99115V9.93805C3.69376 9.93805 3.8523 9.78353 3.8523 9.59292Z" fill="currentColor"/>+<path d="M4.66949 6.43363C4.66949 5.78848 4.13288 5.26549 3.47094 5.26549C2.809 5.26549 2.2724 5.78848 2.2724 6.43363C2.2724 7.07878 2.809 7.60177 3.47094 7.60177V7.86726C2.65856 7.86726 2 7.2254 2 6.43363C2 5.64186 2.65856 5 3.47094 5C4.28332 5 4.94189 5.64186 4.94189 6.43363C4.94189 7.2254 4.28332 7.86726 3.47094 7.86726V7.60177C4.13288 7.60177 4.66949 7.07878 4.66949 6.43363Z" fill="currentColor"/>+<path d="M3.90678 6.46018C3.90678 6.68011 3.72385 6.85841 3.49818 6.85841C3.27252 6.85841 3.08959 6.68011 3.08959 6.46018C3.08959 6.24024 3.27252 6.06195 3.49818 6.06195C3.72385 6.06195 3.90678 6.24024 3.90678 6.46018Z" fill="currentColor"/>+<path d="M3.8523 6.46018C3.8523 6.26957 3.69376 6.11504 3.49818 6.11504C3.30261 6.11504 3.14407 6.26957 3.14407 6.46018C3.14407 6.65079 3.30261 6.80531 3.49818 6.80531V6.85841C3.27252 6.85841 3.08959 6.68011 3.08959 6.46018C3.08959 6.24024 3.27252 6.06195 3.49818 6.06195C3.72385 6.06195 3.90678 6.24024 3.90678 6.46018C3.90678 6.68011 3.72385 6.85841 3.49818 6.85841V6.80531C3.69376 6.80531 3.8523 6.65079 3.8523 6.46018Z" fill="currentColor"/>+<path d="M8.04722 9.56637C8.04722 8.92122 7.51061 8.39823 6.84867 8.39823C6.18673 8.39823 5.65012 8.92122 5.65012 9.56637C5.65012 10.2115 6.18673 10.7345 6.84867 10.7345V11C6.03629 11 5.37772 10.3581 5.37772 9.56637C5.37772 8.7746 6.03629 8.13274 6.84867 8.13274C7.66105 8.13274 8.31961 8.7746 8.31961 9.56637C8.31961 10.3581 7.66105 11 6.84867 11V10.7345C7.51061 10.7345 8.04722 10.2115 8.04722 9.56637Z" fill="currentColor"/>+<path d="M7.2845 9.59292C7.2845 9.81286 7.10157 9.99115 6.87591 9.99115C6.65025 9.99115 6.46731 9.81286 6.46731 9.59292C6.46731 9.37298 6.65025 9.19469 6.87591 9.19469C7.10157 9.19469 7.2845 9.37298 7.2845 9.59292Z" fill="currentColor"/>+<path d="M7.23002 9.59292C7.23002 9.40231 7.07148 9.24779 6.87591 9.24779C6.68033 9.24779 6.52179 9.40231 6.52179 9.59292C6.52179 9.78353 6.68033 9.93805 6.87591 9.93805V9.99115C6.65025 9.99115 6.46731 9.81286 6.46731 9.59292C6.46731 9.37298 6.65025 9.19469 6.87591 9.19469C7.10157 9.19469 7.2845 9.37298 7.2845 9.59292C7.2845 9.81286 7.10157 9.99115 6.87591 9.99115V9.93805C7.07148 9.93805 7.23002 9.78353 7.23002 9.59292Z" fill="currentColor"/>+<path d="M8.04722 6.43363C8.04722 5.78848 7.51061 5.26549 6.84867 5.26549C6.18673 5.26549 5.65012 5.78848 5.65012 6.43363C5.65012 7.07878 6.18673 7.60177 6.84867 7.60177V7.86726C6.03629 7.86726 5.37772 7.2254 5.37772 6.43363C5.37772 5.64186 6.03629 5 6.84867 5C7.66105 5 8.31961 5.64186 8.31961 6.43363C8.31961 7.2254 7.66105 7.86726 6.84867 7.86726V7.60177C7.51061 7.60177 8.04722 7.07878 8.04722 6.43363Z" fill="currentColor"/>+<path d="M7.2845 6.46018C7.2845 6.68011 7.10157 6.85841 6.87591 6.85841C6.65025 6.85841 6.46731 6.68011 6.46731 6.46018C6.46731 6.24024 6.65025 6.06195 6.87591 6.06195C7.10157 6.06195 7.2845 6.24024 7.2845 6.46018Z" fill="currentColor"/>+<path d="M7.23002 6.46018C7.23002 6.26957 7.07148 6.11504 6.87591 6.11504C6.68033 6.11504 6.52179 6.26957 6.52179 6.46018C6.52179 6.65079 6.68033 6.80531 6.87591 6.80531V6.85841C6.65025 6.85841 6.46731 6.68011 6.46731 6.46018C6.46731 6.24024 6.65025 6.06195 6.87591 6.06195C7.10157 6.06195 7.2845 6.24024 7.2845 6.46018C7.2845 6.68011 7.10157 6.85841 6.87591 6.85841V6.80531C7.07148 6.80531 7.23002 6.65079 7.23002 6.46018Z" fill="currentColor"/>+<path d="M11.207 9.56637C11.207 8.92122 10.6704 8.39823 10.0085 8.39823C9.34653 8.39823 8.80993 8.92122 8.80993 9.56637C8.80993 10.2115 9.34653 10.7345 10.0085 10.7345V11C9.19609 11 8.53753 10.3581 8.53753 9.56637C8.53753 8.7746 9.19609 8.13274 10.0085 8.13274C10.8209 8.13274 11.4794 8.7746 11.4794 9.56637C11.4794 10.3581 10.8209 11 10.0085 11V10.7345C10.6704 10.7345 11.207 10.2115 11.207 9.56637Z" fill="currentColor"/>+<path d="M10.4443 9.59292C10.4443 9.81286 10.2614 9.99115 10.0357 9.99115C9.81005 9.99115 9.62712 9.81286 9.62712 9.59292C9.62712 9.37298 9.81005 9.19469 10.0357 9.19469C10.2614 9.19469 10.4443 9.37298 10.4443 9.59292Z" fill="currentColor"/>+<path d="M10.3898 9.59292C10.3898 9.40231 10.2313 9.24779 10.0357 9.24779C9.84014 9.24779 9.6816 9.40231 9.6816 9.59292C9.6816 9.78353 9.84014 9.93805 10.0357 9.93805V9.99115C9.81005 9.99115 9.62712 9.81286 9.62712 9.59292C9.62712 9.37298 9.81005 9.19469 10.0357 9.19469C10.2614 9.19469 10.4443 9.37298 10.4443 9.59292C10.4443 9.81286 10.2614 9.99115 10.0357 9.99115V9.93805C10.2313 9.93805 10.3898 9.78353 10.3898 9.59292Z" fill="currentColor"/>+<path d="M11.207 6.43363C11.207 5.78848 10.6704 5.26549 10.0085 5.26549C9.34653 5.26549 8.80993 5.78848 8.80993 6.43363C8.80993 7.07878 9.34653 7.60177 10.0085 7.60177V7.86726C9.19609 7.86726 8.53753 7.2254 8.53753 6.43363C8.53753 5.64186 9.19609 5 10.0085 5C10.8209 5 11.4794 5.64186 11.4794 6.43363C11.4794 7.2254 10.8209 7.86726 10.0085 7.86726V7.60177C10.6704 7.60177 11.207 7.07878 11.207 6.43363Z" fill="currentColor"/>+<path d="M10.4443 6.46018C10.4443 6.68011 10.2614 6.85841 10.0357 6.85841C9.81005 6.85841 9.62712 6.68011 9.62712 6.46018C9.62712 6.24024 9.81005 6.06195 10.0357 6.06195C10.2614 6.06195 10.4443 6.24024 10.4443 6.46018Z" fill="currentColor"/>+<path d="M10.3898 6.46018C10.3898 6.26957 10.2313 6.11504 10.0357 6.11504C9.84014 6.11504 9.6816 6.26957 9.6816 6.46018C9.6816 6.65079 9.84014 6.80531 10.0357 6.80531V6.85841C9.81005 6.85841 9.62712 6.68011 9.62712 6.46018C9.62712 6.24024 9.81005 6.06195 10.0357 6.06195C10.2614 6.06195 10.4443 6.24024 10.4443 6.46018C10.4443 6.68011 10.2614 6.85841 10.0357 6.85841V6.80531C10.2313 6.80531 10.3898 6.65079 10.3898 6.46018Z" fill="currentColor"/>+<path d="M14.5847 9.56637C14.5847 8.92122 14.0481 8.39823 13.3862 8.39823C12.7243 8.39823 12.1877 8.92122 12.1877 9.56637C12.1877 10.2115 12.7243 10.7345 13.3862 10.7345V11C12.5738 11 11.9153 10.3581 11.9153 9.56637C11.9153 8.7746 12.5738 8.13274 13.3862 8.13274C14.1986 8.13274 14.8571 8.7746 14.8571 9.56637C14.8571 10.3581 14.1986 11 13.3862 11V10.7345C14.0481 10.7345 14.5847 10.2115 14.5847 9.56637Z" fill="currentColor"/>+<path d="M13.822 9.59292C13.822 9.81286 13.6391 9.99115 13.4134 9.99115C13.1878 9.99115 13.0048 9.81286 13.0048 9.59292C13.0048 9.37298 13.1878 9.19469 13.4134 9.19469C13.6391 9.19469 13.822 9.37298 13.822 9.59292Z" fill="currentColor"/>+<path d="M13.7676 9.59292C13.7676 9.40231 13.609 9.24779 13.4134 9.24779C13.2179 9.24779 13.0593 9.40231 13.0593 9.59292C13.0593 9.78353 13.2179 9.93805 13.4134 9.93805V9.99115C13.1878 9.99115 13.0048 9.81286 13.0048 9.59292C13.0048 9.37298 13.1878 9.19469 13.4134 9.19469C13.6391 9.19469 13.822 9.37298 13.822 9.59292C13.822 9.81286 13.6391 9.99115 13.4134 9.99115V9.93805C13.609 9.93805 13.7676 9.78353 13.7676 9.59292Z" fill="currentColor"/>+<path d="M14.5847 6.43363C14.5847 5.78848 14.0481 5.26549 13.3862 5.26549C12.7243 5.26549 12.1877 5.78848 12.1877 6.43363C12.1877 7.07878 12.7243 7.60177 13.3862 7.60177V7.86726C12.5738 7.86726 11.9153 7.2254 11.9153 6.43363C11.9153 5.64186 12.5738 5 13.3862 5C14.1986 5 14.8571 5.64186 14.8571 6.43363C14.8571 7.2254 14.1986 7.86726 13.3862 7.86726V7.60177C14.0481 7.60177 14.5847 7.07878 14.5847 6.43363Z" fill="currentColor"/>+<path d="M13.822 6.46018C13.822 6.68011 13.6391 6.85841 13.4134 6.85841C13.1878 6.85841 13.0048 6.68011 13.0048 6.46018C13.0048 6.24024 13.1878 6.06195 13.4134 6.06195C13.6391 6.06195 13.822 6.24024 13.822 6.46018Z" fill="currentColor"/>+<path d="M13.7676 6.46018C13.7676 6.26957 13.609 6.11504 13.4134 6.11504C13.2179 6.11504 13.0593 6.26957 13.0593 6.46018C13.0593 6.65079 13.2179 6.80531 13.4134 6.80531V6.85841C13.1878 6.85841 13.0048 6.68011 13.0048 6.46018C13.0048 6.24024 13.1878 6.06195 13.4134 6.06195C13.6391 6.06195 13.822 6.24024 13.822 6.46018C13.822 6.68011 13.6391 6.85841 13.4134 6.85841V6.80531C13.609 6.80531 13.7676 6.65079 13.7676 6.46018Z" fill="currentColor"/>+</svg>diff --git a/apps/desktop/src/renderer/assets/agents/claude-acp.svg b/apps/desktop/src/renderer/assets/agents/claude-acp.svgnew file mode 100644index 00000000..98dd82db--- /dev/null+++ b/apps/desktop/src/renderer/assets/agents/claude-acp.svg@@ -0,0 +1,3 @@+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 1200 1200">+ <path fill="currentColor" d="M 233.959793 800.214905 L 468.644287 668.536987 L 472.590637 657.100647 L 468.644287 650.738403 L 457.208069 650.738403 L 417.986633 648.322144 L 283.892639 644.69812 L 167.597321 639.865845 L 54.926208 633.825623 L 26.577238 627.785339 L 3.3e-05 592.751709 L 2.73832 575.27533 L 26.577238 559.248352 L 60.724873 562.228149 L 136.187973 567.382629 L 249.422867 575.194763 L 331.570496 580.026978 L 453.261841 592.671082 L 472.590637 592.671082 L 475.328857 584.859009 L 468.724915 580.026978 L 463.570557 575.194763 L 346.389313 495.785217 L 219.543671 411.865906 L 153.100723 363.543762 L 117.181267 339.060425 L 99.060455 316.107361 L 91.248367 266.01355 L 123.865784 230.093994 L 167.677887 233.073853 L 178.872513 236.053772 L 223.248367 270.201477 L 318.040283 343.570496 L 441.825592 434.738342 L 459.946411 449.798706 L 467.194672 444.64447 L 468.080597 441.020203 L 459.946411 427.409485 L 392.617493 305.718323 L 320.778564 181.932983 L 288.80542 130.630859 L 280.348999 99.865845 C 277.369171 87.221436 275.194641 76.590698 275.194641 63.624268 L 312.322174 13.20813 L 332.8591 6.604126 L 382.389313 13.20813 L 403.248352 31.328979 L 434.013519 101.71814 L 483.865753 212.537048 L 561.181274 363.221497 L 583.812134 407.919434 L 595.892639 449.315491 L 600.40271 461.959839 L 608.214783 461.959839 L 608.214783 454.711609 L 614.577271 369.825623 L 626.335632 265.61084 L 637.771851 131.516846 L 641.718201 93.745117 L 660.402832 48.483276 L 697.530334 24.000122 L 726.52356 37.852417 L 750.362549 72 L 747.060486 94.067139 L 732.886047 186.201416 L 705.100708 330.52356 L 686.979919 427.167847 L 697.530334 427.167847 L 709.61084 415.087341 L 758.496704 350.174561 L 840.644348 247.490051 L 876.885925 206.738342 L 919.167847 161.71814 L 946.308838 140.29541 L 997.61084 140.29541 L 1035.38269 196.429626 L 1018.469849 254.416199 L 965.637634 321.422852 L 921.825562 378.201538 L 859.006714 462.765259 L 819.785278 530.41626 L 823.409424 535.812073 L 832.75177 534.92627 L 974.657776 504.724915 L 1051.328979 490.872559 L 1142.818848 475.167786 L 1184.214844 494.496582 L 1188.724854 514.147644 L 1172.456421 554.335693 L 1074.604126 578.496765 L 959.838989 601.449829 L 788.939636 641.879272 L 786.845764 643.409485 L 789.261841 646.389343 L 866.255127 653.637634 L 899.194702 655.409424 L 979.812134 655.409424 L 1129.932861 666.604187 L 1169.154419 692.537109 L 1192.671265 724.268677 L 1188.724854 748.429688 L 1128.322144 779.194641 L 1046.818848 759.865845 L 856.590759 714.604126 L 791.355774 698.335754 L 782.335693 698.335754 L 782.335693 703.731567 L 836.69812 756.885986 L 936.322205 846.845581 L 1061.073975 962.81897 L 1067.436279 991.490112 L 1051.409424 1014.120911 L 1034.496704 1011.704712 L 924.885986 929.234924 L 882.604126 892.107544 L 786.845764 811.48999 L 780.483276 811.48999 L 780.483276 819.946289 L 802.550415 852.241699 L 919.087341 1027.409424 L 925.127625 1081.127686 L 916.671204 1098.604126 L 886.469849 1109.154419 L 853.288696 1103.114136 L 785.073914 1007.355835 L 714.684631 899.516785 L 657.906067 802.872498 L 650.979858 806.81897 L 617.476624 1167.704834 L 601.771851 1186.147705 L 565.530212 1200 L 535.328857 1177.046997 L 519.302124 1139.919556 L 535.328857 1066.550537 L 554.657776 970.792053 L 570.362488 894.68457 L 584.536926 800.134277 L 592.993347 768.724976 L 592.429626 766.630859 L 585.503479 767.516968 L 514.22821 865.369263 L 405.825531 1011.865906 L 320.053711 1103.677979 L 299.516815 1111.812256 L 263.919525 1093.369263 L 267.221497 1060.429688 L 287.114136 1031.114136 L 405.825531 880.107361 L 477.422913 786.52356 L 523.651062 732.483276 L 523.328918 724.671265 L 520.590698 724.671265 L 205.288605 929.395935 L 149.154434 936.644409 L 124.993355 914.01355 L 127.973183 876.885986 L 139.409409 864.80542 L 234.201385 799.570435 L 233.879227 799.8927 Z"/>+</svg>diff --git a/apps/desktop/src/renderer/assets/agents/cline.svg b/apps/desktop/src/renderer/assets/agents/cline.svgnew file mode 100644index 00000000..aeeafbc6--- /dev/null+++ b/apps/desktop/src/renderer/assets/agents/cline.svg@@ -0,0 +1,6 @@+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 92 96" fill="currentColor">+ <path d="M65.45 16.3c10.89 0 19.71 8.86 19.71 19.8v6.6l5.74 11.46a4.48 4.48 0 0 1-.01 3.6L85.16 69.1v6.6c0 10.94-8.83 19.8-19.71 19.8H26.02c-10.89 0-19.71-8.86-19.71-19.8v-6.6L.45 57.8a4.48 4.48 0 0 1-.01-3.67L6.31 42.7v-6.6c0-10.94 8.83-19.8 19.71-19.8h39.43zm-2.52 5.7H29.19c-9.32 0-16.87 7.56-16.87 16.88v5.62l-4.88 9.46a4.48 4.48 0 0 0 .01 3.68l4.87 9.36v5.62c0 9.32 7.55 16.88 16.87 16.88h33.74c9.32 0 16.87-7.55 16.87-16.88V67l4.77-9.39a4.48 4.48 0 0 0 0-3.61L79.8 44.5v-5.62C79.8 29.56 72.25 22 62.93 22z" fill-rule="nonzero"/>+ <circle cx="45.73" cy="11" r="11"/>+ <rect stroke="currentColor" stroke-width="8" x="31" y="44.5" width="5" height="22" rx="2.5"/>+ <rect stroke="currentColor" stroke-width="8" x="55" y="44.5" width="5" height="22" rx="2.5"/>+</svg>diff --git a/apps/desktop/src/renderer/assets/agents/codebuddy-code.svg b/apps/desktop/src/renderer/assets/agents/codebuddy-code.svgnew file mode 100644index 00000000..735fd352--- /dev/null+++ b/apps/desktop/src/renderer/assets/agents/codebuddy-code.svg@@ -0,0 +1,5 @@+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">+ <path fill="currentColor" d="M12.13 1.25c.15-.14.16-.14.28-.15.18 0 .36.08.64.34.68.62 1.61 1.89 2.2 2.97l.22.42.32.16c.3.16.81.48 1.02.65.09.08.11.08.21.04.45-.18 1.09.05 1.65.6.51.49 1 1.33 1.18 2.03.03.11.06.36.07.54.04.64-.16 1.14-.55 1.37-.08.04-.08.06-.08.26.02.95-.23 1.89-.74 2.82-.58 1.04-1.6 2.11-2.98 3.12-.74.55-2.5 1.58-3.3 1.95-1.9.86-3.43 1.2-4.76 1.03-.79-.09-1.69-.41-2.22-.77-.14-.1-.16-.1-.27-.07-.57.16-1.31-.18-1.94-.88-.25-.28-.66-.98-.79-1.35-.3-.87-.25-1.65.16-2.12.11-.12.09-.33.09-.33-.04-.33-.05-.82-.04-1.14v-.3l-.43-.79c-.68-1.23-1.12-2.25-1.28-3.04-.09-.43-.09-.62.02-.77.07-.09.28-.18.54-.22.66-.12 2.09-.01 3.69.27l.16.03.36-.32c.61-.54 1.01-.84 1.75-1.31.77-.48 1.64-.89 2.62-1.2l.32-.1.17-.46c.62-1.65 1.25-2.86 1.71-3.27h0Zm-5.19 8.45c-.7.41-1.05.61-1.3.84-1.04.93-1.43 2.39-.99 3.71.11.33.31.68.71 1.39.41.71.61 1.06.83 1.32.92 1.05 2.37 1.45 3.68 1 .32-.11.68-.31 1.38-.72l4.02-2.34c.7-.41 1.05-.61 1.3-.84 1.04-.93 1.43-2.39.99-3.71-.11-.33-.31-.68-.71-1.39s-.61-1.06-.83-1.32c-.92-1.05-2.37-1.45-3.68-1-.32.11-.67.31-1.38.72l-4.02 2.34Z"/>+ <path fill="currentColor" fill-opacity="0.4" d="M8.02 12.13c.38-.22.87-.09 1.09.29l.86 1.5c.22.38.09.88-.29 1.09-.38.22-.86.09-1.09-.29l-.86-1.5c-.22-.38-.09-.87.29-1.09Z"/>+ <path fill="currentColor" fill-opacity="0.4" d="M12.31 9.64c.38-.22.87-.09 1.09.29l.86 1.5c.22.38.09.87-.29 1.09s-.87.09-1.09-.29l-.86-1.5c-.22-.38-.09-.88.29-1.09Z"/>+</svg>diff --git a/apps/desktop/src/renderer/assets/agents/codex-acp.svg b/apps/desktop/src/renderer/assets/agents/codex-acp.svgnew file mode 100644index 00000000..42c78a06--- /dev/null+++ b/apps/desktop/src/renderer/assets/agents/codex-acp.svg@@ -0,0 +1,3 @@+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24">+ <path fill="currentColor" d="M22.282 9.821a5.985 5.985 0 0 0-.516-4.91 6.046 6.046 0 0 0-6.51-2.9A6.065 6.065 0 0 0 4.981 4.18a5.985 5.985 0 0 0-3.998 2.9 6.046 6.046 0 0 0 .743 7.097 5.98 5.98 0 0 0 .51 4.911 6.051 6.051 0 0 0 6.515 2.9A5.985 5.985 0 0 0 13.26 24a6.056 6.056 0 0 0 5.772-4.206 5.99 5.99 0 0 0 3.997-2.9 6.056 6.056 0 0 0-.747-7.073zM13.26 22.43a4.476 4.476 0 0 1-2.876-1.04l.141-.081 4.779-2.758a.795.795 0 0 0 .392-.681v-6.737l2.02 1.168a.071.071 0 0 1 .038.052v5.583a4.504 4.504 0 0 1-4.494 4.494zM3.6 18.304a4.47 4.47 0 0 1-.535-3.014l.142.085 4.783 2.759a.771.771 0 0 0 .78 0l5.843-3.369v2.332a.08.08 0 0 1-.033.062L9.74 19.95a4.5 4.5 0 0 1-6.14-1.646zM2.34 7.896a4.485 4.485 0 0 1 2.366-1.973V11.6a.766.766 0 0 0 .388.676l5.815 3.355-2.02 1.168a.076.076 0 0 1-.071 0l-4.83-2.786A4.504 4.504 0 0 1 2.34 7.872zm16.597 3.855l-5.833-3.387L15.119 7.2a.076.076 0 0 1 .071 0l4.83 2.791a4.494 4.494 0 0 1-.676 8.105v-5.678a.79.79 0 0 0-.407-.667zm2.01-3.023l-.141-.085-4.774-2.782a.776.776 0 0 0-.785 0L9.409 9.23V6.897a.066.066 0 0 1 .028-.061l4.83-2.787a4.5 4.5 0 0 1 6.68 4.66zm-12.64 4.135l-2.02-1.164a.08.08 0 0 1-.038-.057V6.075a4.5 4.5 0 0 1 7.375-3.453l-.142.08L8.704 5.46a.795.795 0 0 0-.393.681zm1.097-2.365l2.602-1.5 2.607 1.5v2.999l-2.597 1.5-2.607-1.5z"/>+</svg>diff --git a/apps/desktop/src/renderer/assets/agents/cortex-code.svg b/apps/desktop/src/renderer/assets/agents/cortex-code.svgnew file mode 100644index 00000000..28f87a25--- /dev/null+++ b/apps/desktop/src/renderer/assets/agents/cortex-code.svg@@ -0,0 +1,3 @@+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 362 362" overflow="hidden">+ <path fill="currentColor" fill-rule="evenodd" d="M1562.63,107.07h-4.18v5.15h4.18c1.94,0,3.21-.87,3.21-2.53,0-1.75-1.17-2.62-3.21-2.62ZM1553.3,102.31h9.42c5.15,0,8.55,2.82,8.55,7.19,0,2.72-1.36,4.76-3.4,6.02l3.69,5.34v1.07h-5.34l-3.59-5.15h-4.18v5.15h-5.15v-19.62ZM1579.63,112.51c0-10.49-6.99-18.46-17.68-18.46s-17.49,7.58-17.49,18.46,6.99,18.46,17.49,18.46,17.68-7.97,17.68-18.46ZM1584,112.51c0,12.34-8.26,22.63-22.05,22.63s-21.86-10.39-21.86-22.63,8.16-22.63,21.86-22.63,22.05,10.3,22.05,22.63ZM348.21,156.4l-42.55,24.61,42.55,24.54c10.75,6.22,14.42,19.9,8.21,30.67-6.2,10.7-19.92,14.37-30.63,8.18l-76.21-44c-5.08-2.96-8.61-7.59-10.18-12.8-.74-2.4-1.09-4.87-1-7.31.04-1.76.3-3.53.79-5.29,1.52-5.48,5.1-10.38,10.39-13.46l76.21-43.97c10.71-6.19,24.43-2.51,30.63,8.22,6.22,10.72,2.54,24.41-8.21,30.61ZM307.93,275.68l-76.19-43.94c-4.09-2.38-8.63-3.3-12.99-2.93-11.62.83-20.75,10.53-20.75,22.34v87.98c0,12.4,10,22.45,22.42,22.45s22.45-10.05,22.45-22.45v-49.21l42.66,24.63c10.72,6.23,24.43,2.54,30.61-8.17,6.17-10.74,2.53-24.5-8.21-30.7ZM220.01,189.61l-31.67,31.63c-.91.93-2.65,1.69-3.98,1.69h-9.31c-1.28,0-3.06-.76-3.98-1.69l-31.66-31.63c-.91-.89-1.64-2.68-1.64-3.94v-9.33c0-1.29.73-3.09,1.64-3.99l31.66-31.63c.92-.93,2.7-1.66,3.98-1.66h9.31c1.29,0,3.07.73,3.98,1.66l31.67,31.63c.9.9,1.63,2.7,1.63,3.99v9.33c0,1.26-.73,3.05-1.63,3.94ZM194.7,180.83c0-1.28-.77-3.06-1.68-4l-9.17-9.13c-.9-.9-2.68-1.65-3.96-1.65h-.36c-1.28,0-3.05.75-3.94,1.65l-9.17,9.13c-.92.95-1.62,2.73-1.62,4v.36c0,1.26.7,3.03,1.62,3.95l9.17,9.16c.9.9,2.67,1.65,3.94,1.65h.36c1.28,0,3.06-.75,3.96-1.65l9.17-9.16c.9-.92,1.68-2.68,1.68-3.95v-.36ZM51.48,86.28l76.21,43.99c4.09,2.35,8.64,3.29,13.01,2.93,11.6-.86,20.75-10.58,20.75-22.37V22.84c0-12.37-10.06-22.41-22.42-22.41s-22.45,10.05-22.45,22.41v49.23l-42.7-24.66c-10.71-6.2-24.4-2.53-30.61,8.2-6.19,10.76-2.53,24.47,8.2,30.67ZM218.75,133.19c4.36.36,8.9-.57,12.99-2.93l76.19-43.99c10.74-6.2,14.38-19.91,8.21-30.67-6.18-10.72-19.89-14.4-30.61-8.2l-42.66,24.66V22.84c0-12.37-10.03-22.41-22.45-22.41s-22.42,10.05-22.42,22.41v87.98c0,11.8,9.13,21.51,20.75,22.37ZM140.71,228.8c-4.38-.37-8.92.54-13.01,2.93l-76.21,43.94c-10.72,6.2-14.38,19.96-8.2,30.7,6.22,10.71,19.91,14.4,30.61,8.17l42.7-24.63v49.21c0,12.4,10.03,22.45,22.45,22.45s22.42-10.05,22.42-22.45v-87.98c0-11.81-9.16-21.51-20.75-22.34ZM120.04,187.6c.76-2.4,1.08-4.87,1.02-7.31-.09-1.76-.32-3.53-.82-5.29-1.51-5.48-5.08-10.38-10.44-13.46l-76.15-43.97c-10.75-6.19-24.45-2.51-30.63,8.22-6.23,10.72-2.55,24.41,8.2,30.61l42.55,24.61-42.55,24.54c-10.75,6.22-14.41,19.9-8.2,30.67,6.17,10.7,19.88,14.37,30.63,8.18l76.15-44c5.14-2.96,8.63-7.59,10.23-12.8Z"/>+</svg>diff --git a/apps/desktop/src/renderer/assets/agents/corust-agent.svg b/apps/desktop/src/renderer/assets/agents/corust-agent.svgnew file mode 100644index 00000000..9f30636c--- /dev/null+++ b/apps/desktop/src/renderer/assets/agents/corust-agent.svg@@ -0,0 +1,10 @@+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 12 12">+ <g transform="matrix(0.00160555,0,0,-0.0014599,-0.26812129,11.08482)" fill="currentColor">+ <path d="m 297,6493 c -4,-3 -7,-1357 -7,-3008 0,-2390 3,-3005 12,-3012 13,-10 1199,-9 1224,1 11,4 13,61 10,295 -2,159 -7,294 -10,299 -4,7 -112,11 -312,11 -168,0 -309,3 -314,6 -12,7 -13,4775 -2,4792 6,10 85,13 317,15 l 310,3 v 600 l -611,3 c -336,1 -614,-1 -617,-5 z"/>+ <path d="m 6287,6493 c -4,-3 -7,-136 -7,-294 0,-219 3,-290 13,-296 6,-4 152,-10 322,-13 l 310,-5 3,-2394 c 1,-1545 -1,-2398 -8,-2405 -6,-6 -127,-9 -316,-7 -246,2 -309,0 -315,-11 -5,-7 -9,-145 -9,-305 V 470 l 23,-1 c 158,-4 1192,-2 1200,3 14,9 22,5964 7,6002 l -10,26 h -603 c -332,0 -607,-3 -610,-7 z"/>+ <g transform="matrix(1.0249,0,0,1.0566,-429.39,51.322)">+ <path d="m 2476.7,5111.6 c -64.95,-6.2305 -71.077,-28.66 -73.528,-325.23 -3.6765,-261.68 4.9018,-351.4 36.764,-371.34 7.3528,-4.9844 583.32,-12.461 1276.9,-16.199 l 1262.2,-6.2306 73.528,-34.891 c 191.17,-90.966 300.24,-292.84 284.31,-527.1 -15.931,-223.05 -134.8,-392.52 -314.95,-449.85 -61.274,-19.938 -133.58,-21.184 -727.93,-18.692 -607.83,3.7384 -661.75,2.4922 -682.59,-17.446 -22.058,-19.938 -23.284,-43.614 -23.284,-331.47 0,-190.65 4.9019,-320.25 12.255,-335.2 11.029,-21.184 26.96,-23.676 123.77,-23.676 h 110.29 l 66.176,-63.552 c 36.764,-34.891 125,-125.86 198.53,-201.87 72.303,-76.013 322.3,-333.96 555.14,-571.96 l 424.01,-434.89 519.6,3.7383 c 390.93,2.4922 520.83,7.4767 520.83,18.692 0,7.4766 -223.04,249.22 -496.32,534.58 -562.49,589.41 -666.66,701.56 -660.53,707.79 2.451,2.4922 52.695,8.7227 111.52,13.707 322.3,24.922 593.13,194.39 790.43,495.95 129.9,199.38 187.5,391.28 196.08,660.44 8.5783,245.48 -14.706,368.85 -116.42,600.63 -123.77,286.61 -328.43,492.21 -596.8,601.87 -232.84,95.95 -167.89,92.212 -1574.7,93.458 -691.17,1.2462 -1274.5,1.2462 -1295.3,-1.2461 z"/>+ <path d="m 2430.1,3942.7 c -24.509,-18.692 -24.509,-33.645 -24.509,-1254.8 0,-1163.9 1.2255,-1238.6 22.058,-1271 l 20.833,-33.645 h 337 c 289.21,0 338.23,2.4922 354.16,19.938 18.382,17.446 19.608,145.79 18.382,1267.3 -1.2255,1115.3 -2.4509,1251.1 -19.608,1271 -18.382,18.692 -50.244,21.184 -351.71,21.184 -276.96,-1.2461 -335.78,-3.7383 -356.61,-19.938 z"/>+ </g>+ </g>+</svg>diff --git a/apps/desktop/src/renderer/assets/agents/crow-cli.svg b/apps/desktop/src/renderer/assets/agents/crow-cli.svgnew file mode 100644index 00000000..1169116c--- /dev/null+++ b/apps/desktop/src/renderer/assets/agents/crow-cli.svg@@ -0,0 +1,9 @@+<svg+ width="16"+ height="16"+ viewBox="0 0 366 368"+ xmlns="http://www.w3.org/2000/svg">+ <path+ fill="currentColor"+ d="m 26,275.93574 c 0.65,-9.32 8.46,-15.43 15,-20.96 15.43,-13.04 35.67,-21.92 53,-32.71 20.67,-12.88 61.58,-40.31 80,-55.03 0,0 21,-18.39 21,-18.39 0,0 28,-23.91 28,-23.91 10,-8.33 14.1,-11.65 25,-18.92 7.42,-4.94 19.07,-12.550001 24.52,-19.330001 7.17,-8.93 4.16,-18.82 -4.53,-25.45 -5.67,-4.32 -23.5,-8.94 -30.99,-10.66 -3.1,-0.72 -11.45,-1.57 -13.38,-3.62 -3.22,-3.43 1.67,-6.99 4.38,-8.45 6.61,-3.54 17.51,-5.73 25,-5.82 0,0 4,0 4,0 16.51,-0.2 18.85,-12.47 40,-11.99 9.26,0.21 21.16,2.48 29,7.54 7.87,5.07 12.2,11.73 17.05,19.45 6.31,10.05 12.35,21.16 14.49,33 1.42,7.88 -0.45,13.62 -0.54,21.000001 -0.28,24.26 6.68,37.92 -2.44,63 -5.9,16.24 -14.87,35.36 -23.98,50 -9.34,15 -20.81,30.64 -35.58,40.64 0,0 -16,9.36 -16,9.36 -3.3,1.9 -6.18,2.94 -6.64,7.04 -0.68,2.83 -0.16,7.11 0,9.96 0,0 1.29,8 1.29,8 1.62,5.16 8.51,12.15 12.35,16 3.36,3.37 6.84,7.82 12,7.89 4.2,0.06 8.14,-2.87 12,-4.44 5.24,-2.13 11.35,-3.55 17,-3.94 6.33,-0.43 17.05,1.85 14,10.49 -2.84,-3.54 -6.09,-6.36 -11,-5.57 -2.47,0.4 -10.06,3.6 -8.09,7.08 1.19,2.08 7.67,3.01 10.09,3.88 6.26,2.25 10.83,5.76 14,11.61 0,0 -17,-6.33 -17,-6.33 -9.74,-2.08 -18.73,0.62 -28,3.33 5.49,3.71 8.06,5.51 12,11 -8.23,-1.96 -13.6,-7.46 -26,-6.96 -9.64,0.39 -11.89,4.13 -27,3.96 -9.42,-0.11 -17.78,-4.36 -27,-3.96 -9.45,0.41 -13.16,5.64 -21,8.96 3.16,-14.88 19.73,-16 32,-16 -7.31,-10.21 -20.46,-18.11 -23.28,-26 -0.7,-1.97 -0.69,-3.94 -0.71,-6 0,0 0,-14 0,-14 0.23,-2.35 1.13,-5.62 0,-7.73 -1.66,-2.77 -8.94,-4.64 -12.01,-5.55 -20.1,-5.96 -24.58,-0.84 -43,2.01 0,0 -14,2.11 -14,2.11 -9.78,1.06 -18.83,0.92 -28,5.02 0,0 -15,7.88 -15,7.88 -16.76,8.6 -42.02,22.27 -59,27.93 -9.14,3.04 -16.2,6.24 -26,6.33 0,0 5,-10 5,-10 -3.92,0.18 -15.76,3.08 -17.92,-0.51 -2.44,-4.07 5.28,-9.01 7.92,-10.91 0,0 36,-24.58 36,-24.58 0,0 -19,3.25 -19,3.25 z m 227,1.75 c -2.98,0.84 -11.45,3.61 -12.96,6.27 -0.95,1.89 -0.18,5.54 0,7.73 0.04,2.47 -0.13,4.56 0.61,7 1.52,5.07 11.84,17.33 16.35,19.88 3.38,1.91 15.93,0.11 20,-0.88 -4.12,-8.71 -16.66,-15.05 -21.99,-24 -3.43,-5.75 -0.8,-10.06 -2.01,-16 z" />+</svg>diff --git a/apps/desktop/src/renderer/assets/agents/cursor.svg b/apps/desktop/src/renderer/assets/agents/cursor.svgnew file mode 100644index 00000000..4ca0c250--- /dev/null+++ b/apps/desktop/src/renderer/assets/agents/cursor.svg@@ -0,0 +1,3 @@+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 466.73 532.09">+ <path fill="currentColor" d="M457.43,125.94L244.42,2.96c-6.84-3.95-15.28-3.95-22.12,0L9.3,125.94c-5.75,3.32-9.3,9.46-9.3,16.11v247.99c0,6.65,3.55,12.79,9.3,16.11l213.01,122.98c6.84,3.95,15.28,3.95,22.12,0l213.01-122.98c5.75-3.32,9.3-9.46,9.3-16.11v-247.99c0-6.65-3.55-12.79-9.3-16.11h-.01ZM444.05,151.99l-205.63,356.16c-1.39,2.4-5.06,1.42-5.06-1.36v-233.21c0-4.66-2.49-8.97-6.53-11.31L24.87,145.67c-2.4-1.39-1.42-5.06,1.36-5.06h411.26c5.84,0,9.49,6.33,6.57,11.39h-.01Z"/>+</svg>diff --git a/apps/desktop/src/renderer/assets/agents/deepagents.svg b/apps/desktop/src/renderer/assets/agents/deepagents.svgnew file mode 100644index 00000000..abd818ec--- /dev/null+++ b/apps/desktop/src/renderer/assets/agents/deepagents.svg@@ -0,0 +1,6 @@+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 128 128">+ <path fill="currentColor" d="M40.1024 85.0722C47.6207 77.5537 51.8469 67.3453 51.8469 56.7136C51.8469 46.0818 47.617 35.8734 40.1024 28.355L11.7446 0C4.22995 7.5185 0 17.7269 0 28.3586C0 38.9903 4.22995 49.1987 11.7446 56.7172L40.0987 85.0722H40.1024Z"/>+ <path fill="currentColor" d="M99.4385 87.698C91.9239 80.1832 81.7121 75.9531 71.0844 75.9531C60.4566 75.9531 50.2448 80.1832 42.7266 87.698L71.0844 116.057C78.599 123.571 88.8107 127.802 99.4421 127.802C110.074 127.802 120.282 123.571 127.8 116.057L99.4421 87.698H99.4385Z"/>+ <path fill="currentColor" d="M11.8146 115.987C19.3329 123.502 29.541 127.732 40.1724 127.732V87.6289H0.0664062C0.0700559 98.2606 4.29635 108.469 11.8146 115.987Z"/>+ <path fill="currentColor" d="M110.387 45.7684C102.869 38.2535 92.6608 34.0198 82.0258 34.0234C71.3943 34.0234 61.1863 38.2535 53.668 45.772L82.0258 74.1306L110.387 45.7684Z"/>+</svg>diff --git a/apps/desktop/src/renderer/assets/agents/devin.svg b/apps/desktop/src/renderer/assets/agents/devin.svgnew file mode 100644index 00000000..43170056--- /dev/null+++ b/apps/desktop/src/renderer/assets/agents/devin.svg@@ -0,0 +1,3 @@+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 263 300">+ <path fill="currentColor" d="M1.84577e-10 100.797V38.6224C1.88813e-05 35.8899 1.45777 33.365 3.82414 31.9988L57.6539 0.920185C60.0203 -0.446051 62.9358 -0.446051 65.3022 0.920185L119.132 31.9988C121.498 33.3651 122.956 35.8899 122.956 38.6224V70.375C123.192 80.9262 128.769 91.103 138.577 96.7655C148.384 102.428 159.986 102.169 169.242 97.0979L196.74 81.2217C199.107 79.8554 202.022 79.8554 204.388 81.2217L258.218 112.3C260.585 113.667 262.042 116.191 262.042 118.924V181.081C262.042 183.814 260.585 186.339 258.218 187.705L204.388 218.783C202.022 220.15 199.107 220.15 196.74 218.783L169.464 203.036C160.173 197.847 148.465 197.536 138.579 203.244C128.772 208.906 123.195 219.083 122.959 229.634V261.378C122.959 264.111 121.501 266.635 119.135 268.002L65.3048 299.08C62.9384 300.447 60.0229 300.447 57.6566 299.08L3.82673 268.002C1.46036 266.635 0.00260562 264.111 0.00260562 261.378V199.221C0.0026245 196.488 1.46038 193.963 3.82675 192.597L57.6565 161.519C60.0229 160.152 62.9384 160.152 65.3048 161.519L92.8656 177.431C102.11 182.467 113.679 182.711 123.463 177.062C133.349 171.355 138.934 161.06 139.086 150.419C138.85 139.868 133.274 128.601 123.466 122.938C113.658 117.276 102.056 117.534 92.8007 122.606L65.1758 138.645C62.7991 140.025 59.8649 140.024 57.4894 138.642L3.80216 107.407C1.44816 106.038 -1.88809e-05 103.52 1.84577e-10 100.797Z"/>+</svg>diff --git a/apps/desktop/src/renderer/assets/agents/dimcode.svg b/apps/desktop/src/renderer/assets/agents/dimcode.svgnew file mode 100644index 00000000..1fa31ce8--- /dev/null+++ b/apps/desktop/src/renderer/assets/agents/dimcode.svg@@ -0,0 +1,3 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M3.12109 11.0078H1.99902V5.49316H3.12109V11.0078ZM3.7041 5.49316C4.91979 5.49316 5.31142 5.57449 5.80762 5.7373C6.50208 5.97365 6.85299 6.40958 6.86133 7.04492V9.45605C6.86125 10.207 6.37767 10.6797 5.41016 10.874C4.95546 10.9633 4.69632 11.0078 3.7041 11.0078V10.6064C4.72131 10.6064 4.95994 10.5507 5.34863 10.4404C5.91072 10.2671 6.19576 9.93907 6.2041 9.45605V7.04492C6.20402 6.4883 5.83211 6.13886 5.08789 5.99707C4.74057 5.93405 4.58897 5.89978 3.7041 5.89453V5.49316ZM9.16797 5.49316V11.0078H8.0459V5.49316H9.16797ZM14 6.79297V11.0078H12.8779V8.0791L13.8877 6.79297H14ZM14 5.49316V5.7373L11.3594 8.97852H10.7852L9.74219 6.94531V6.07812H9.86719L11.0723 8.33203L13.4258 5.49316H14Z" fill="currentColor"/>+</svg>diff --git a/apps/desktop/src/renderer/assets/agents/dirac.svg b/apps/desktop/src/renderer/assets/agents/dirac.svgnew file mode 100644index 00000000..4fbb06ce--- /dev/null+++ b/apps/desktop/src/renderer/assets/agents/dirac.svg@@ -0,0 +1,6 @@+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor">+ <text x="8" y="10" text-anchor="middle" font-size="10.5" font-family="Georgia, serif" font-style="italic" fill="currentColor">δ</text>+ <line x1="1" y1="14" x2="15" y2="14" stroke="currentColor" stroke-opacity="0.4" stroke-width="1" stroke-linecap="round"/>+ <line x1="8" y1="14" x2="8" y2="12" stroke="currentColor" stroke-width="1" stroke-linecap="round"/>+ <circle cx="8" cy="11.5" r="0.7" fill="currentColor"/>+</svg>diff --git a/apps/desktop/src/renderer/assets/agents/factory-droid.svg b/apps/desktop/src/renderer/assets/agents/factory-droid.svgnew file mode 100644index 00000000..5c6fb8d1--- /dev/null+++ b/apps/desktop/src/renderer/assets/agents/factory-droid.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 900 900" fill="none"><path fill="currentColor" d="M622.037 192.524a10.58 10.58 0 0 1-4.056-2.001 10.573 10.573 0 0 1-3.98-7.89 10.595 10.595 0 0 1 .804-4.452c20.214-49.194 29.134-88.555 14.74-105.033-38.123-43.716-191.004 43.219-239.75 72.663a10.596 10.596 0 0 1-10.841.041 10.576 10.576 0 0 1-4.396-5.07c-20.491-49.089-42.031-83.233-63.865-84.714-57.871-3.96-104.516 165.624-118.17 220.895a10.574 10.574 0 0 1-1.993 4.057 10.572 10.572 0 0 1-7.884 3.977 10.586 10.586 0 0 1-4.447-.802c-49.194-20.215-88.572-29.134-105.033-14.74-43.717 38.123 43.202 191.005 72.644 239.75a10.553 10.553 0 0 1 1.454 4.279 10.573 10.573 0 0 1-6.481 10.958c-49.072 20.491-83.216 42.031-84.715 63.864-3.944 57.871 165.624 104.516 220.913 118.171a10.566 10.566 0 0 1 5.658 3.601 10.57 10.57 0 0 1 2.355 6.281 10.58 10.58 0 0 1-.799 4.442c-20.214 49.194-29.134 88.572-14.739 105.033 38.121 43.717 191.021-43.202 239.767-72.644a10.566 10.566 0 0 1 15.238 5.027c20.489 49.072 42.013 83.216 63.862 84.715 57.871 3.944 104.516-165.624 118.153-220.913a10.603 10.603 0 0 1 9.895-8.021 10.566 10.566 0 0 1 4.449.808c49.193 20.214 88.553 29.116 105.032 14.738 43.718-38.121-43.219-191.022-72.663-239.767a10.602 10.602 0 0 1 1.326-12.655 10.604 10.604 0 0 1 3.703-2.582c49.089-20.49 83.233-42.031 84.714-63.863 3.96-57.871-165.624-104.516-220.895-118.153Zm-66.394-55.478c11.123 19.938-46.196 152.797-88.83 245.724a8.36 8.36 0 0 1-8.239 4.855 8.374 8.374 0 0 1-7.412-6.043c-17.219-60.42-36.899-131.411-57.957-191.675a10.557 10.557 0 0 1 4.924-12.759c52.586-28.721 142.568-66.86 157.514-40.102ZM303.635 153.49c21.953 6.233 75.365 140.709 110.92 236.564a8.364 8.364 0 0 1-2.394 9.249 8.364 8.364 0 0 1-9.504.978c-54.943-30.493-119.013-66.824-176.522-94.546a10.565 10.565 0 0 1-5.528-12.501c16.926-57.44 53.532-148.095 83.028-139.744ZM137.064 343.322c19.921-11.123 152.795 46.197 245.707 88.83a8.369 8.369 0 0 1-1.189 15.652c-60.401 17.219-131.411 36.899-191.675 57.957a10.552 10.552 0 0 1-12.742-4.925c-28.668-52.584-66.876-142.568-40.101-157.514Zm16.443 252.009c6.217-21.953 140.709-75.365 236.564-110.921a8.368 8.368 0 0 1 10.227 11.898c-30.511 54.945-66.842 119.014-94.563 176.507a10.548 10.548 0 0 1-5.229 5.075 10.544 10.544 0 0 1-7.271.468c-57.441-16.822-148.095-53.531-139.728-83.027ZM343.34 761.902c-11.14-19.922 46.197-152.796 88.829-245.707a8.383 8.383 0 0 1 5.713-4.66 8.38 8.38 0 0 1 7.182 1.664 8.371 8.371 0 0 1 2.758 4.184c17.217 60.403 36.898 131.412 57.957 191.675a10.558 10.558 0 0 1-4.942 12.743c-52.568 28.668-142.568 66.875-157.445 40.101h-.052Zm252.009-16.443c-21.971-6.216-75.383-140.709-110.939-236.564a8.37 8.37 0 0 1 11.916-10.228c54.926 30.494 119.014 66.842 176.506 94.563a10.538 10.538 0 0 1 5.527 12.502c-16.909 57.526-53.515 148.094-83.01 139.727Zm166.57-189.834c-19.938 11.141-152.796-46.197-245.724-88.83a8.367 8.367 0 0 1-2.993-12.892 8.378 8.378 0 0 1 4.182-2.759c60.419-17.218 131.41-36.899 191.675-57.958a10.577 10.577 0 0 1 12.758 4.943c28.652 52.568 66.86 142.569 40.102 157.496Zm-16.444-252.009c-6.232 21.971-140.709 75.383-236.562 110.94a8.371 8.371 0 0 1-10.229-11.917c30.495-54.926 66.825-119.012 94.547-176.505a10.555 10.555 0 0 1 12.5-5.528c57.441 16.909 148.096 53.516 139.744 83.01Z"/></svg>diff --git a/apps/desktop/src/renderer/assets/agents/fast-agent.svg b/apps/desktop/src/renderer/assets/agents/fast-agent.svgnew file mode 100644index 00000000..a07fab28--- /dev/null+++ b/apps/desktop/src/renderer/assets/agents/fast-agent.svg@@ -0,0 +1,293 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 360 360" width="16" height="16">+ <g fill="currentColor">+ <circle cx="100.50" cy="40.50" r="4.50"/>+ <circle cx="112.50" cy="40.50" r="4.50"/>+ <circle cx="124.50" cy="40.50" r="4.50"/>+ <circle cx="136.50" cy="40.50" r="4.50"/>+ <circle cx="148.50" cy="40.50" r="4.50"/>+ <circle cx="76.50" cy="52.50" r="4.50"/>+ <circle cx="88.50" cy="52.50" r="4.50"/>+ <circle cx="100.50" cy="52.50" r="4.50"/>+ <circle cx="136.50" cy="52.50" r="4.50"/>+ <circle cx="148.50" cy="52.50" r="4.50"/>+ <circle cx="160.50" cy="52.50" r="4.50"/>+ <circle cx="64.50" cy="64.50" r="4.50"/>+ <circle cx="76.50" cy="64.50" r="4.50"/>+ <circle cx="88.50" cy="64.50" r="4.50"/>+ <circle cx="100.50" cy="64.50" r="4.50"/>+ <circle cx="136.50" cy="64.50" r="4.50"/>+ <circle cx="148.50" cy="64.50" r="4.50"/>+ <circle cx="160.50" cy="64.50" r="4.50"/>+ <circle cx="172.50" cy="64.50" r="4.50"/>+ <circle cx="52.50" cy="76.50" r="4.50"/>+ <circle cx="64.50" cy="76.50" r="4.50"/>+ <circle cx="76.50" cy="76.50" r="4.50"/>+ <circle cx="88.50" cy="76.50" r="4.50"/>+ <circle cx="100.50" cy="76.50" r="4.50"/>+ <circle cx="136.50" cy="76.50" r="4.50"/>+ <circle cx="148.50" cy="76.50" r="4.50"/>+ <circle cx="160.50" cy="76.50" r="4.50"/>+ <circle cx="52.50" cy="88.50" r="4.50"/>+ <circle cx="64.50" cy="88.50" r="4.50"/>+ <circle cx="76.50" cy="88.50" r="4.50"/>+ <circle cx="88.50" cy="88.50" r="4.50"/>+ <circle cx="100.50" cy="88.50" r="4.50"/>+ <circle cx="148.50" cy="88.50" r="4.50"/>+ <circle cx="52.50" cy="100.50" r="4.50"/>+ <circle cx="64.50" cy="100.50" r="4.50"/>+ <circle cx="76.50" cy="100.50" r="4.50"/>+ <circle cx="88.50" cy="100.50" r="4.50"/>+ <circle cx="100.50" cy="100.50" r="4.50"/>+ <circle cx="52.50" cy="112.50" r="4.50"/>+ <circle cx="64.50" cy="112.50" r="4.50"/>+ <circle cx="76.50" cy="112.50" r="4.50"/>+ <circle cx="88.50" cy="112.50" r="4.50"/>+ <circle cx="100.50" cy="112.50" r="4.50"/>+ <circle cx="52.50" cy="124.50" r="4.50"/>+ <circle cx="64.50" cy="124.50" r="4.50"/>+ <circle cx="76.50" cy="124.50" r="4.50"/>+ <circle cx="88.50" cy="124.50" r="4.50"/>+ <circle cx="100.50" cy="124.50" r="4.50"/>+ <circle cx="232.50" cy="124.50" r="4.50"/>+ <circle cx="244.50" cy="124.50" r="4.50"/>+ <circle cx="256.50" cy="124.50" r="4.50"/>+ <circle cx="28.50" cy="136.50" r="4.50"/>+ <circle cx="40.50" cy="136.50" r="4.50"/>+ <circle cx="52.50" cy="136.50" r="4.50"/>+ <circle cx="64.50" cy="136.50" r="4.50"/>+ <circle cx="76.50" cy="136.50" r="4.50"/>+ <circle cx="88.50" cy="136.50" r="4.50"/>+ <circle cx="100.50" cy="136.50" r="4.50"/>+ <circle cx="112.50" cy="136.50" r="4.50"/>+ <circle cx="124.50" cy="136.50" r="4.50"/>+ <circle cx="196.50" cy="136.50" r="4.50"/>+ <circle cx="208.50" cy="136.50" r="4.50"/>+ <circle cx="220.50" cy="136.50" r="4.50"/>+ <circle cx="232.50" cy="136.50" r="4.50"/>+ <circle cx="244.50" cy="136.50" r="4.50"/>+ <circle cx="256.50" cy="136.50" r="4.50"/>+ <circle cx="268.50" cy="136.50" r="4.50"/>+ <circle cx="280.50" cy="136.50" r="4.50"/>+ <circle cx="28.50" cy="148.50" r="4.50"/>+ <circle cx="40.50" cy="148.50" r="4.50"/>+ <circle cx="52.50" cy="148.50" r="4.50"/>+ <circle cx="64.50" cy="148.50" r="4.50"/>+ <circle cx="76.50" cy="148.50" r="4.50"/>+ <circle cx="88.50" cy="148.50" r="4.50"/>+ <circle cx="100.50" cy="148.50" r="4.50"/>+ <circle cx="112.50" cy="148.50" r="4.50"/>+ <circle cx="124.50" cy="148.50" r="4.50"/>+ <circle cx="172.50" cy="148.50" r="4.50"/>+ <circle cx="184.50" cy="148.50" r="4.50"/>+ <circle cx="196.50" cy="148.50" r="4.50"/>+ <circle cx="256.50" cy="148.50" r="4.50"/>+ <circle cx="268.50" cy="148.50" r="4.50"/>+ <circle cx="280.50" cy="148.50" r="4.50"/>+ <circle cx="292.50" cy="148.50" r="4.50"/>+ <circle cx="52.50" cy="160.50" r="4.50"/>+ <circle cx="64.50" cy="160.50" r="4.50"/>+ <circle cx="76.50" cy="160.50" r="4.50"/>+ <circle cx="88.50" cy="160.50" r="4.50"/>+ <circle cx="100.50" cy="160.50" r="4.50"/>+ <circle cx="160.50" cy="160.50" r="4.50"/>+ <circle cx="172.50" cy="160.50" r="4.50"/>+ <circle cx="184.50" cy="160.50" r="4.50"/>+ <circle cx="196.50" cy="160.50" r="4.50"/>+ <circle cx="256.50" cy="160.50" r="4.50"/>+ <circle cx="268.50" cy="160.50" r="4.50"/>+ <circle cx="280.50" cy="160.50" r="4.50"/>+ <circle cx="292.50" cy="160.50" r="4.50"/>+ <circle cx="304.50" cy="160.50" r="4.50"/>+ <circle cx="52.50" cy="172.50" r="4.50"/>+ <circle cx="64.50" cy="172.50" r="4.50"/>+ <circle cx="76.50" cy="172.50" r="4.50"/>+ <circle cx="88.50" cy="172.50" r="4.50"/>+ <circle cx="100.50" cy="172.50" r="4.50"/>+ <circle cx="160.50" cy="172.50" r="4.50"/>+ <circle cx="172.50" cy="172.50" r="4.50"/>+ <circle cx="184.50" cy="172.50" r="4.50"/>+ <circle cx="196.50" cy="172.50" r="4.50"/>+ <circle cx="208.50" cy="172.50" r="4.50"/>+ <circle cx="256.50" cy="172.50" r="4.50"/>+ <circle cx="268.50" cy="172.50" r="4.50"/>+ <circle cx="280.50" cy="172.50" r="4.50"/>+ <circle cx="292.50" cy="172.50" r="4.50"/>+ <circle cx="304.50" cy="172.50" r="4.50"/>+ <circle cx="52.50" cy="184.50" r="4.50"/>+ <circle cx="64.50" cy="184.50" r="4.50"/>+ <circle cx="76.50" cy="184.50" r="4.50"/>+ <circle cx="88.50" cy="184.50" r="4.50"/>+ <circle cx="100.50" cy="184.50" r="4.50"/>+ <circle cx="160.50" cy="184.50" r="4.50"/>+ <circle cx="172.50" cy="184.50" r="4.50"/>+ <circle cx="184.50" cy="184.50" r="4.50"/>+ <circle cx="196.50" cy="184.50" r="4.50"/>+ <circle cx="208.50" cy="184.50" r="4.50"/>+ <circle cx="256.50" cy="184.50" r="4.50"/>+ <circle cx="268.50" cy="184.50" r="4.50"/>+ <circle cx="280.50" cy="184.50" r="4.50"/>+ <circle cx="292.50" cy="184.50" r="4.50"/>+ <circle cx="304.50" cy="184.50" r="4.50"/>+ <circle cx="52.50" cy="196.50" r="4.50"/>+ <circle cx="64.50" cy="196.50" r="4.50"/>+ <circle cx="76.50" cy="196.50" r="4.50"/>+ <circle cx="88.50" cy="196.50" r="4.50"/>+ <circle cx="100.50" cy="196.50" r="4.50"/>+ <circle cx="172.50" cy="196.50" r="4.50"/>+ <circle cx="184.50" cy="196.50" r="4.50"/>+ <circle cx="196.50" cy="196.50" r="4.50"/>+ <circle cx="256.50" cy="196.50" r="4.50"/>+ <circle cx="268.50" cy="196.50" r="4.50"/>+ <circle cx="280.50" cy="196.50" r="4.50"/>+ <circle cx="292.50" cy="196.50" r="4.50"/>+ <circle cx="304.50" cy="196.50" r="4.50"/>+ <circle cx="52.50" cy="208.50" r="4.50"/>+ <circle cx="64.50" cy="208.50" r="4.50"/>+ <circle cx="76.50" cy="208.50" r="4.50"/>+ <circle cx="88.50" cy="208.50" r="4.50"/>+ <circle cx="100.50" cy="208.50" r="4.50"/>+ <circle cx="244.50" cy="208.50" r="4.50"/>+ <circle cx="256.50" cy="208.50" r="4.50"/>+ <circle cx="268.50" cy="208.50" r="4.50"/>+ <circle cx="280.50" cy="208.50" r="4.50"/>+ <circle cx="292.50" cy="208.50" r="4.50"/>+ <circle cx="304.50" cy="208.50" r="4.50"/>+ <circle cx="52.50" cy="220.50" r="4.50"/>+ <circle cx="64.50" cy="220.50" r="4.50"/>+ <circle cx="76.50" cy="220.50" r="4.50"/>+ <circle cx="88.50" cy="220.50" r="4.50"/>+ <circle cx="100.50" cy="220.50" r="4.50"/>+ <circle cx="220.50" cy="220.50" r="4.50"/>+ <circle cx="232.50" cy="220.50" r="4.50"/>+ <circle cx="256.50" cy="220.50" r="4.50"/>+ <circle cx="268.50" cy="220.50" r="4.50"/>+ <circle cx="280.50" cy="220.50" r="4.50"/>+ <circle cx="292.50" cy="220.50" r="4.50"/>+ <circle cx="304.50" cy="220.50" r="4.50"/>+ <circle cx="52.50" cy="232.50" r="4.50"/>+ <circle cx="64.50" cy="232.50" r="4.50"/>+ <circle cx="76.50" cy="232.50" r="4.50"/>+ <circle cx="88.50" cy="232.50" r="4.50"/>+ <circle cx="100.50" cy="232.50" r="4.50"/>+ <circle cx="196.50" cy="232.50" r="4.50"/>+ <circle cx="208.50" cy="232.50" r="4.50"/>+ <circle cx="220.50" cy="232.50" r="4.50"/>+ <circle cx="256.50" cy="232.50" r="4.50"/>+ <circle cx="268.50" cy="232.50" r="4.50"/>+ <circle cx="280.50" cy="232.50" r="4.50"/>+ <circle cx="292.50" cy="232.50" r="4.50"/>+ <circle cx="304.50" cy="232.50" r="4.50"/>+ <circle cx="52.50" cy="244.50" r="4.50"/>+ <circle cx="64.50" cy="244.50" r="4.50"/>+ <circle cx="76.50" cy="244.50" r="4.50"/>+ <circle cx="88.50" cy="244.50" r="4.50"/>+ <circle cx="100.50" cy="244.50" r="4.50"/>+ <circle cx="184.50" cy="244.50" r="4.50"/>+ <circle cx="196.50" cy="244.50" r="4.50"/>+ <circle cx="208.50" cy="244.50" r="4.50"/>+ <circle cx="256.50" cy="244.50" r="4.50"/>+ <circle cx="268.50" cy="244.50" r="4.50"/>+ <circle cx="280.50" cy="244.50" r="4.50"/>+ <circle cx="292.50" cy="244.50" r="4.50"/>+ <circle cx="304.50" cy="244.50" r="4.50"/>+ <circle cx="52.50" cy="256.50" r="4.50"/>+ <circle cx="64.50" cy="256.50" r="4.50"/>+ <circle cx="76.50" cy="256.50" r="4.50"/>+ <circle cx="88.50" cy="256.50" r="4.50"/>+ <circle cx="100.50" cy="256.50" r="4.50"/>+ <circle cx="172.50" cy="256.50" r="4.50"/>+ <circle cx="184.50" cy="256.50" r="4.50"/>+ <circle cx="196.50" cy="256.50" r="4.50"/>+ <circle cx="208.50" cy="256.50" r="4.50"/>+ <circle cx="256.50" cy="256.50" r="4.50"/>+ <circle cx="268.50" cy="256.50" r="4.50"/>+ <circle cx="280.50" cy="256.50" r="4.50"/>+ <circle cx="292.50" cy="256.50" r="4.50"/>+ <circle cx="304.50" cy="256.50" r="4.50"/>+ <circle cx="52.50" cy="268.50" r="4.50"/>+ <circle cx="64.50" cy="268.50" r="4.50"/>+ <circle cx="76.50" cy="268.50" r="4.50"/>+ <circle cx="88.50" cy="268.50" r="4.50"/>+ <circle cx="100.50" cy="268.50" r="4.50"/>+ <circle cx="160.50" cy="268.50" r="4.50"/>+ <circle cx="172.50" cy="268.50" r="4.50"/>+ <circle cx="184.50" cy="268.50" r="4.50"/>+ <circle cx="196.50" cy="268.50" r="4.50"/>+ <circle cx="256.50" cy="268.50" r="4.50"/>+ <circle cx="268.50" cy="268.50" r="4.50"/>+ <circle cx="280.50" cy="268.50" r="4.50"/>+ <circle cx="292.50" cy="268.50" r="4.50"/>+ <circle cx="304.50" cy="268.50" r="4.50"/>+ <circle cx="52.50" cy="280.50" r="4.50"/>+ <circle cx="64.50" cy="280.50" r="4.50"/>+ <circle cx="76.50" cy="280.50" r="4.50"/>+ <circle cx="88.50" cy="280.50" r="4.50"/>+ <circle cx="100.50" cy="280.50" r="4.50"/>+ <circle cx="160.50" cy="280.50" r="4.50"/>+ <circle cx="172.50" cy="280.50" r="4.50"/>+ <circle cx="184.50" cy="280.50" r="4.50"/>+ <circle cx="196.50" cy="280.50" r="4.50"/>+ <circle cx="208.50" cy="280.50" r="4.50"/>+ <circle cx="256.50" cy="280.50" r="4.50"/>+ <circle cx="268.50" cy="280.50" r="4.50"/>+ <circle cx="280.50" cy="280.50" r="4.50"/>+ <circle cx="292.50" cy="280.50" r="4.50"/>+ <circle cx="304.50" cy="280.50" r="4.50"/>+ <circle cx="52.50" cy="292.50" r="4.50"/>+ <circle cx="64.50" cy="292.50" r="4.50"/>+ <circle cx="76.50" cy="292.50" r="4.50"/>+ <circle cx="88.50" cy="292.50" r="4.50"/>+ <circle cx="100.50" cy="292.50" r="4.50"/>+ <circle cx="160.50" cy="292.50" r="4.50"/>+ <circle cx="172.50" cy="292.50" r="4.50"/>+ <circle cx="184.50" cy="292.50" r="4.50"/>+ <circle cx="196.50" cy="292.50" r="4.50"/>+ <circle cx="208.50" cy="292.50" r="4.50"/>+ <circle cx="220.50" cy="292.50" r="4.50"/>+ <circle cx="232.50" cy="292.50" r="4.50"/>+ <circle cx="244.50" cy="292.50" r="4.50"/>+ <circle cx="256.50" cy="292.50" r="4.50"/>+ <circle cx="268.50" cy="292.50" r="4.50"/>+ <circle cx="280.50" cy="292.50" r="4.50"/>+ <circle cx="292.50" cy="292.50" r="4.50"/>+ <circle cx="304.50" cy="292.50" r="4.50"/>+ <circle cx="52.50" cy="304.50" r="4.50"/>+ <circle cx="64.50" cy="304.50" r="4.50"/>+ <circle cx="76.50" cy="304.50" r="4.50"/>+ <circle cx="88.50" cy="304.50" r="4.50"/>+ <circle cx="100.50" cy="304.50" r="4.50"/>+ <circle cx="160.50" cy="304.50" r="4.50"/>+ <circle cx="172.50" cy="304.50" r="4.50"/>+ <circle cx="184.50" cy="304.50" r="4.50"/>+ <circle cx="196.50" cy="304.50" r="4.50"/>+ <circle cx="208.50" cy="304.50" r="4.50"/>+ <circle cx="220.50" cy="304.50" r="4.50"/>+ <circle cx="232.50" cy="304.50" r="4.50"/>+ <circle cx="256.50" cy="304.50" r="4.50"/>+ <circle cx="268.50" cy="304.50" r="4.50"/>+ <circle cx="280.50" cy="304.50" r="4.50"/>+ <circle cx="292.50" cy="304.50" r="4.50"/>+ <circle cx="304.50" cy="304.50" r="4.50"/>+ <circle cx="316.50" cy="304.50" r="4.50"/>+ <circle cx="328.50" cy="304.50" r="4.50"/>+ <circle cx="28.50" cy="316.50" r="4.50"/>+ <circle cx="40.50" cy="316.50" r="4.50"/>+ <circle cx="52.50" cy="316.50" r="4.50"/>+ <circle cx="64.50" cy="316.50" r="4.50"/>+ <circle cx="76.50" cy="316.50" r="4.50"/>+ <circle cx="88.50" cy="316.50" r="4.50"/>+ <circle cx="100.50" cy="316.50" r="4.50"/>+ <circle cx="112.50" cy="316.50" r="4.50"/>+ <circle cx="124.50" cy="316.50" r="4.50"/>+ <circle cx="172.50" cy="316.50" r="4.50"/>+ <circle cx="184.50" cy="316.50" r="4.50"/>+ <circle cx="196.50" cy="316.50" r="4.50"/>+ <circle cx="208.50" cy="316.50" r="4.50"/>+ <circle cx="220.50" cy="316.50" r="4.50"/>+ <circle cx="268.50" cy="316.50" r="4.50"/>+ <circle cx="280.50" cy="316.50" r="4.50"/>+ <circle cx="292.50" cy="316.50" r="4.50"/>+ <circle cx="304.50" cy="316.50" r="4.50"/>+ <circle cx="316.50" cy="316.50" r="4.50"/>+ </g>+</svg>diff --git a/apps/desktop/src/renderer/assets/agents/gemini.svg b/apps/desktop/src/renderer/assets/agents/gemini.svgnew file mode 100644index 00000000..588d89c5--- /dev/null+++ b/apps/desktop/src/renderer/assets/agents/gemini.svg@@ -0,0 +1,3 @@+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24">+ <path fill="currentColor" d="M11.04 19.32Q12 21.51 12 24q0-2.49.93-4.68.96-2.19 2.58-3.81t3.81-2.55Q21.51 12 24 12q-2.49 0-4.68-.93a12.3 12.3 0 0 1-3.81-2.58 12.3 12.3 0 0 1-2.58-3.81Q12 2.49 12 0q0 2.49-.96 4.68-.93 2.19-2.55 3.81a12.3 12.3 0 0 1-3.81 2.58Q2.49 12 0 12q2.49 0 4.68.96 2.19.93 3.81 2.55t2.55 3.81"/>+</svg>diff --git a/apps/desktop/src/renderer/assets/agents/github-copilot-cli.svg b/apps/desktop/src/renderer/assets/agents/github-copilot-cli.svgnew file mode 100644index 00000000..626d33ba--- /dev/null+++ b/apps/desktop/src/renderer/assets/agents/github-copilot-cli.svg@@ -0,0 +1,5 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<path fill-rule="evenodd" clip-rule="evenodd" d="M7.99816 14.2779C12.0678 14.2779 14.9997 11.6274 14.9997 10.9574V9.3189C14.939 8.77306 14.4165 7.82349 13.6074 7.48636C13.5959 7.42498 13.5859 7.36153 13.5756 7.29542C13.5506 7.13548 13.5231 6.95977 13.4649 6.75954C13.6409 6.31508 13.6873 5.81187 13.6873 5.31135C13.6873 4.54947 13.5757 3.76321 13.0811 3.13712C12.5745 2.4959 11.7737 2.15372 10.6972 2.03411C9.64215 1.91688 8.71828 2.06409 8.12157 2.70342C8.07827 2.74981 8.0345 2.79812 7.99655 2.84746C7.95861 2.79812 7.91805 2.74981 7.87475 2.70342C7.27804 2.06409 6.35416 1.91688 5.29908 2.03411C4.22263 2.15372 3.42181 2.4959 2.91521 3.13712C2.42057 3.76321 2.30905 4.54947 2.30905 5.31135C2.30905 5.81187 2.35539 6.31508 2.53142 6.75954C2.47323 6.95977 2.44574 7.13542 2.42072 7.29536C2.41037 7.3615 2.40044 7.42496 2.38893 7.48636C1.57983 7.82349 1.05728 8.77306 0.996582 9.3189V10.9574C0.996582 11.6274 3.92849 14.2779 7.99816 14.2779ZM10.5523 3.33859C9.63863 3.23707 9.25001 3.41798 9.0811 3.59896C8.90273 3.79007 8.76738 4.19254 8.86971 5.0112C8.94909 5.64627 9.13423 6.08757 9.41018 6.36929C9.67188 6.63645 10.0966 6.8426 10.8435 6.8426C11.6506 6.8426 11.9631 6.66867 12.1051 6.51046C12.2619 6.33577 12.3748 6.00462 12.3748 5.31135C12.3748 4.64141 12.2675 4.22455 12.0513 3.95077C11.8469 3.69214 11.4446 3.43773 10.5523 3.33859ZM6.91639 3.59896C6.74748 3.41798 6.35886 3.23707 5.44518 3.33859C4.55289 3.43773 4.15058 3.69214 3.94624 3.95077C3.72994 4.22455 3.62271 4.64141 3.62271 5.31135C3.62271 6.00462 3.73563 6.33577 3.89239 6.51046C4.03436 6.66867 4.34693 6.8426 5.15396 6.8426C5.90092 6.8426 6.32561 6.63645 6.58731 6.36929C6.86326 6.08757 7.0484 5.64627 7.12778 5.0112C7.23011 4.19254 7.09476 3.79007 6.91639 3.59896ZM7.99818 12.9788C9.99307 12.9788 12.0088 12.0076 12.3748 11.7248V8.00133L12.3546 7.90026C11.9257 8.08369 11.4142 8.1551 10.8435 8.1551C9.84049 8.1551 9.04148 7.86851 8.47257 7.28773C8.28092 7.09208 8.12536 6.87308 7.99978 6.6378C7.8742 6.87308 7.71544 7.09208 7.52378 7.28773C6.95488 7.86851 6.15587 8.1551 5.15283 8.1551C4.58212 8.1551 4.07068 8.08369 3.6418 7.90026L3.62158 8.00133V11.7248C3.98755 12.0076 6.00329 12.9788 7.99818 12.9788Z" fill="currentColor"/>+<path d="M6.46854 9.0301C6.83097 9.0301 7.12479 9.32391 7.12479 9.68635V10.9988C7.12479 11.3613 6.83097 11.6551 6.46854 11.6551C6.1061 11.6551 5.81229 11.3613 5.81229 10.9988V9.68635C5.81229 9.32391 6.1061 9.0301 6.46854 9.0301Z" fill="currentColor"/>+<path d="M10.1873 9.68635C10.1873 9.32391 9.89347 9.0301 9.53104 9.0301C9.1686 9.0301 8.87479 9.32391 8.87479 9.68635V10.9988C8.87479 11.3613 9.1686 11.6551 9.53104 11.6551C9.89347 11.6551 10.1873 11.3613 10.1873 10.9988V9.68635Z" fill="currentColor"/>+</svg>diff --git a/apps/desktop/src/renderer/assets/agents/glm-acp-agent.svg b/apps/desktop/src/renderer/assets/agents/glm-acp-agent.svgnew file mode 100644index 00000000..d552d2a3--- /dev/null+++ b/apps/desktop/src/renderer/assets/agents/glm-acp-agent.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" fill-rule="evenodd"><title>Z.ai</title><path d="M8.07 1.333L6.618 3.302H.435L1.887 1.333h6.184zM15.503 12.699L14.052 14.667h-6.161l1.449-1.968h6.163zM16 1.333L6.176 14.667H0L9.824 1.333H16z"/></svg>diff --git a/apps/desktop/src/renderer/assets/agents/goose.svg b/apps/desktop/src/renderer/assets/agents/goose.svgnew file mode 100644index 00000000..c4928854--- /dev/null+++ b/apps/desktop/src/renderer/assets/agents/goose.svg@@ -0,0 +1,3 @@+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24">+ <path fill="currentColor" d="M20.9093 19.3861L19.5185 18.2413C18.7624 17.619 18.1189 16.8713 17.6157 16.0313C16.9205 14.8706 15.9599 13.8912 14.8133 13.1735L14.2533 12.8475C14.0614 12.7141 13.9276 12.5062 13.9086 12.2716C13.8963 12.1204 13.9326 11.9852 14.0171 11.8662C14.3087 11.4553 15.896 9.74698 16.1722 9.51845C16.528 9.22442 16.9243 8.97987 17.2921 8.69986C17.3443 8.66 17.3968 8.62035 17.4485 8.57989C17.4503 8.57808 17.4529 8.57668 17.4545 8.57508C17.5725 8.48195 17.6838 8.383 17.7724 8.26563C18.2036 7.76631 18.195 7.3443 18.195 7.3443C18.195 7.3443 18.1954 7.3439 18.1956 7.3437C18.1497 7.23133 17.9847 6.88163 17.6492 6.71759C17.9458 6.71178 18.2805 6.82294 18.4323 6.97156C18.6148 6.68534 18.7328 6.49967 18.9162 6.18762C18.9599 6.11352 18.9831 5.97652 18.8996 5.89981C18.8996 5.89981 18.8992 5.89981 18.8988 5.89981C18.8988 5.89981 18.8988 5.8994 18.8988 5.899C18.8972 5.8974 18.8952 5.8962 18.8936 5.8946C18.892 5.893 18.891 5.89119 18.8892 5.88939C18.8892 5.88939 18.8888 5.88939 18.8884 5.88939C18.8884 5.88939 18.8884 5.88899 18.8884 5.88859C18.885 5.88518 18.8812 5.88258 18.8776 5.87938C18.8754 5.87717 18.8736 5.87457 18.8716 5.87217C18.8692 5.87016 18.8665 5.86836 18.8643 5.86616C18.8609 5.86275 18.8587 5.85855 18.8551 5.85534C18.8551 5.85534 18.8545 5.85514 18.8543 5.85534C18.8543 5.85534 18.8543 5.85494 18.8543 5.85454C18.8527 5.85294 18.8507 5.85174 18.8491 5.85013C18.8475 5.84853 18.8463 5.84653 18.8447 5.84493C18.8447 5.84493 18.8441 5.84473 18.8439 5.84493C18.8439 5.84493 18.8439 5.84453 18.8439 5.84413C18.7672 5.7606 18.6302 5.78384 18.5561 5.8275C18.1503 6.06625 17.7555 6.32322 17.3996 6.54855C17.3996 6.54855 16.9778 6.53973 16.4783 6.97116C16.3607 7.05989 16.2618 7.17125 16.1688 7.28902C16.167 7.29082 16.1654 7.29322 16.164 7.29503C16.1234 7.3465 16.0837 7.39898 16.0441 7.45145C15.7639 7.81939 15.5195 8.21556 15.2255 8.57128C14.9971 8.84768 13.2887 10.4348 12.8777 10.7264C12.7587 10.8109 12.6237 10.8474 12.4723 10.835C12.2379 10.8161 12.0298 10.6821 11.8965 10.4903L11.5704 9.93024C10.8527 8.78318 9.87332 7.82299 8.71264 7.12778C7.87262 6.62466 7.12514 5.98092 6.50264 5.22503L5.35778 3.83421C5.3013 3.76571 5.19314 3.77693 5.15268 3.85585C5.02249 4.10941 4.77393 4.64479 4.58346 5.36483C4.57885 5.38186 4.58286 5.39988 4.59407 5.4135C4.83082 5.69952 5.37901 6.32983 6.03196 6.863C6.07742 6.90005 6.04017 6.97336 5.98369 6.95774C5.42047 6.80432 4.87288 6.55796 4.46308 6.34805C4.42964 6.33103 4.38918 6.35226 4.38437 6.38951C4.32068 6.89985 4.30425 7.46027 4.37155 8.05112C4.37355 8.07035 4.38577 8.08697 4.4036 8.09479C4.87088 8.29808 5.61816 8.59311 6.40269 8.78078C6.45958 8.7944 6.45777 8.87632 6.40029 8.88733C5.78941 9.0023 5.14968 9.02794 4.62973 9.02113C4.59327 9.02073 4.56643 9.05518 4.57625 9.09023C4.6806 9.45896 4.822 9.8339 5.00847 10.2115C5.08559 10.3811 5.16951 10.5475 5.25944 10.7104C5.27486 10.7382 5.3047 10.7548 5.33655 10.7534C5.76577 10.7324 6.28452 10.6871 6.80608 10.595C6.89501 10.5794 6.94268 10.6964 6.86757 10.7466C6.51345 10.9834 6.13571 11.1873 5.7844 11.3551C5.73733 11.3777 5.72211 11.4378 5.75315 11.4797C5.96186 11.7625 6.19139 12.0301 6.44075 12.2794C6.44075 12.2794 7.66853 13.5441 7.70198 13.6432C8.41841 12.9096 9.59612 12.0964 10.8966 11.3864C9.15488 12.8036 8.18387 13.8499 7.69517 14.4444L7.35447 14.9225C7.17742 15.1708 7.02379 15.4346 6.89541 15.7112C6.46579 16.6356 5.75756 18.5051 5.75756 18.5051C5.70328 18.6515 5.74754 18.7959 5.84168 18.89C5.84388 18.8922 5.84609 18.8944 5.84849 18.8964C5.85069 18.8986 5.8527 18.901 5.8549 18.9032C5.94924 18.9976 6.09345 19.0416 6.23986 18.9874C6.23986 18.9874 8.10897 18.2791 9.03371 17.8495C9.31031 17.7211 9.57429 17.5673 9.82245 17.3905L10.349 17.0153C10.6278 16.8166 11.0096 16.8483 11.2517 17.0904L12.4655 18.3042C12.7148 18.5535 12.9824 18.7831 13.2652 18.9918C13.3073 19.0226 13.3672 19.0076 13.3898 18.9605C13.5579 18.6094 13.7618 18.2313 13.9983 17.8774C14.0486 17.8022 14.1657 17.8501 14.1499 17.9388C14.0576 18.4606 14.0127 18.9794 13.9915 19.4084C13.9899 19.44 14.0067 19.4701 14.0345 19.4855C14.1972 19.5756 14.3636 19.6595 14.5335 19.7364C14.911 19.9229 15.2862 20.0645 15.6547 20.1687C15.6897 20.1785 15.7242 20.1516 15.7238 20.1152C15.7168 19.595 15.7424 18.9553 15.8576 18.3446C15.8684 18.2869 15.9503 18.2851 15.9641 18.3422C16.1516 19.127 16.4466 19.8742 16.6501 20.3413C16.6579 20.3591 16.6744 20.3712 16.6938 20.3734C17.2847 20.4407 17.8451 20.4242 18.3554 20.3606C18.3929 20.3559 18.4141 20.3155 18.3969 20.2818C18.187 19.872 17.9406 19.3241 17.7872 18.7612C17.7718 18.7046 17.8449 18.6675 17.8819 18.713C18.4151 19.3659 19.0454 19.9141 19.3314 20.1508C19.345 20.1621 19.3633 20.1659 19.3801 20.1615C20.1003 19.9712 20.6357 19.7226 20.8891 19.5922C20.968 19.5518 20.9792 19.4436 20.9107 19.3871L20.9093 19.3861Z"/>+</svg>diff --git a/apps/desktop/src/renderer/assets/agents/grok-build.svg b/apps/desktop/src/renderer/assets/agents/grok-build.svgnew file mode 100644index 00000000..69f573cb--- /dev/null+++ b/apps/desktop/src/renderer/assets/agents/grok-build.svg@@ -0,0 +1,3 @@+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">+ <path fill="currentColor" d="M0.58392448,14.9254204 L0.8326,14.66295 C2.004465,13.42985 3.1678,12.2082 2.45814,10.48105 C1.50813,8.1701 2.061355,5.4619 3.820575,3.70057 C5.6495,1.8709 8.3431,1.40957 10.59295,2.336505 C11.0907,2.52161 11.5245,2.785025 11.86295,3.02993 L9.98425,3.89849 C8.235,3.163775 6.23115,3.66355 5.0081,4.88809 C3.354105,6.5426 3.019895,9.4117 4.95835,11.2656 L-0.335,15.99995 C-0.066496,15.62975 0.2538896,15.275934 0.58392448,14.9254204 Z M14.0391,2.288155 L16.33165,2.57749377e-12 L16.20795,0.172288 C14.4658,2.574355 13.6153,3.749045 14.29795,6.6879 C14.76445,8.68415 14.261,10.90255 12.63545,12.53005 C10.5861,14.58325 7.3066,15.0403 4.6059,13.19215 L6.48885,12.3193 C8.2125,12.99705 10.0983,12.69945 11.4536,11.34255 C12.80895,9.9856 13.1133,8.00925 12.4321,6.3647 C12.30265,6.05285 11.9144,5.97455 11.64275,6.1753 L6.102,10.27035 L14.0391,2.288155 Z"/>+</svg>\ No newline at end of filediff --git a/apps/desktop/src/renderer/assets/agents/harn.svg b/apps/desktop/src/renderer/assets/agents/harn.svgnew file mode 100644index 00000000..af223eca--- /dev/null+++ b/apps/desktop/src/renderer/assets/agents/harn.svg@@ -0,0 +1,3 @@+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">+ <path fill="currentColor" d="M11.2 1.4 14.6 4.8a1 1 0 0 1 0 1.4l-1.5 1.5-4.8-4.8 1.5-1.5a1 1 0 0 1 1.4 0ZM7.6 3.6l4.8 4.8-6.9 6.9a1 1 0 0 1-.5.27l-3.4.73a.6.6 0 0 1-.71-.71l.73-3.4a1 1 0 0 1 .27-.5l5.6-5.6Zm-4.5 8.1-.4 1.9 1.9-.4-1.5-1.5Z"/>+</svg>diff --git a/apps/desktop/src/renderer/assets/agents/junie.svg b/apps/desktop/src/renderer/assets/agents/junie.svgnew file mode 100644index 00000000..63b60e8f--- /dev/null+++ b/apps/desktop/src/renderer/assets/agents/junie.svg@@ -0,0 +1,5 @@+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 40 40" fill="none">+ <path d="M25 15H35V16.75C35 29 30.5001 35 16.5001 35H15V25H16.5001C22.6251 25 25 22.875 25 16.75V15Z" fill="currentColor"/>+ <rect x="5" y="15" width="10" height="10" fill="currentColor"/>+ <rect x="15" y="5" width="10" height="10" fill="currentColor"/>+</svg>\ No newline at end of filediff --git a/apps/desktop/src/renderer/assets/agents/kilo.svg b/apps/desktop/src/renderer/assets/agents/kilo.svgnew file mode 100644index 00000000..8af6e96f--- /dev/null+++ b/apps/desktop/src/renderer/assets/agents/kilo.svg@@ -0,0 +1,3 @@+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 40 40">+ <path fill="currentColor" d="M27.9998324,34.6666921h6.6666279v5.3333023h-8.3809037l-3.6190266-3.6190266v-8.3809037h5.3333023v6.6666279ZM39.9997627,26.2857884l-3.6190266-3.6190266h-8.3809037v5.3333023h6.6666279v6.6666279h5.3333023v-8.3809037ZM17.3332326,22.6667578h-5.3333023v5.3333023h5.3333023v-5.3333023ZM0,36.3809638l3.6190266,3.6190266h13.714206v-5.3333023H5.3333023v-11.9999302H0v13.714206ZM33.9600959,11.9999247V3.619021L30.3410693-.0000056h-7.6745392v5.3333023h5.9602634v6.6666279h-5.9602634v5.3333023h17.3332326v-5.3333023h-6.0396668ZM5.3333023,0H0v17.3332326h5.3333023v-5.9999651h6.6666279v5.9999651h5.3333023v-5.9999651l-5.3333023-5.3333023h-6.6666279V0ZM17.3332326,0h-5.3333023v5.9999651h5.3333023V0Z"/>+</svg>diff --git a/apps/desktop/src/renderer/assets/agents/kimchi.svg b/apps/desktop/src/renderer/assets/agents/kimchi.svgnew file mode 100644index 00000000..081af705--- /dev/null+++ b/apps/desktop/src/renderer/assets/agents/kimchi.svg@@ -0,0 +1,3 @@+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">+ <path fill="currentColor" d="M3 1h2.5v5.5L9 1h3L8.5 6.5 12.5 13H9.5L6 8v5H3V1z"/>+</svg>diff --git a/apps/desktop/src/renderer/assets/agents/kimi.svg b/apps/desktop/src/renderer/assets/agents/kimi.svgnew file mode 100644index 00000000..4f7547cf--- /dev/null+++ b/apps/desktop/src/renderer/assets/agents/kimi.svg@@ -0,0 +1,3 @@+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24">+ <path fill="currentColor" d="M19.514 7.342C19.711 7.862 19.814 8.413 19.816 8.969C19.816 12.494 15.998 14.697 12.946 12.934C11.529 12.116 10.657 10.605 10.657 8.969C10.657 5.646 14.085 3.431 17.115 4.793C15.26 3.373 12.99 2.607 10.655 2.612C4.772 2.614 0.005 7.381 0 13.265C0.002 19.148 4.772 23.918 10.655 23.92C16.538 23.916 21.306 19.147 21.31 13.265C21.312 11.155 20.687 9.095 19.514 7.342ZM14.841 4.666C14.841 8.191 18.657 10.395 21.709 8.632C23.127 7.814 24 6.302 24 4.666C24 1.14 20.184-1.061 17.13 0.699C15.714 1.519 14.841 3.03 14.841 4.666"/>+</svg>diff --git a/apps/desktop/src/renderer/assets/agents/kiro.svg b/apps/desktop/src/renderer/assets/agents/kiro.svgnew file mode 100644index 00000000..5fe3cf68--- /dev/null+++ b/apps/desktop/src/renderer/assets/agents/kiro.svg@@ -0,0 +1,11 @@+<svg width="1200" height="1200" viewBox="0 0 1200 1200" fill="none" xmlns="http://www.w3.org/2000/svg">+<rect width="1200" height="1200" rx="260" fill="#9046FF"/>+<mask id="mask0_1106_4856" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="272" y="202" width="655" height="796">+<path d="M926.578 202.793H272.637V997.857H926.578V202.793Z" fill="white"/>+</mask>+<g mask="url(#mask0_1106_4856)">+<path d="M398.554 818.914C316.315 1001.03 491.477 1046.74 620.672 940.156C658.687 1059.66 801.052 970.473 852.234 877.795C964.787 673.567 919.318 465.357 907.64 422.374C827.637 129.443 427.623 128.946 358.8 423.865C342.651 475.544 342.402 534.18 333.458 595.051C328.986 625.86 325.507 645.488 313.83 677.785C306.873 696.424 297.68 712.819 282.773 740.645C259.915 783.881 269.604 867.113 387.87 823.883L399.051 818.914H398.554Z" fill="white"/>+<path d="M636.123 549.353C603.328 549.353 598.359 510.097 598.359 486.742C598.359 465.623 602.086 448.977 609.293 438.293C615.504 428.852 624.697 424.131 636.123 424.131C647.555 424.131 657.492 428.852 664.447 438.541C672.398 449.474 676.623 466.12 676.623 486.742C676.623 525.998 661.471 549.353 636.375 549.353H636.123Z" fill="black"/>+<path d="M771.24 549.353C738.445 549.353 733.477 510.097 733.477 486.742C733.477 465.623 737.203 448.977 744.41 438.293C750.621 428.852 759.814 424.131 771.24 424.131C782.672 424.131 792.609 428.852 799.564 438.541C807.516 449.474 811.74 466.12 811.74 486.742C811.74 525.998 796.588 549.353 771.492 549.353H771.24Z" fill="black"/>+</g>+</svg>diff --git a/apps/desktop/src/renderer/assets/agents/minimax-code.svg b/apps/desktop/src/renderer/assets/agents/minimax-code.svgnew file mode 100644index 00000000..8b33c770--- /dev/null+++ b/apps/desktop/src/renderer/assets/agents/minimax-code.svg@@ -0,0 +1,3 @@+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">+ <path fill="currentColor" d="M2 3h3l3 5 3-5h3v10h-2V6.5l-4 6-4-6V13H2V3Z"/>+</svg>diff --git a/apps/desktop/src/renderer/assets/agents/minion-code.svg b/apps/desktop/src/renderer/assets/agents/minion-code.svgnew file mode 100644index 00000000..eb3d8eb3--- /dev/null+++ b/apps/desktop/src/renderer/assets/agents/minion-code.svg@@ -0,0 +1,19 @@+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">+ <rect fill="none" stroke="currentColor" stroke-width="1.1" x="4.5" y="2.5" width="7" height="10" rx="3.5"/>+ <line stroke="currentColor" stroke-width="1" x1="3" y1="5.5" x2="13" y2="5.5"/>+ <circle fill="none" stroke="currentColor" stroke-width="1" cx="6.5" cy="5.5" r="1.6"/>+ <circle fill="none" stroke="currentColor" stroke-width="1" cx="9.5" cy="5.5" r="1.6"/>+ <circle fill="currentColor" cx="6.8" cy="5.6" r="0.55"/>+ <circle fill="currentColor" cx="9.8" cy="5.6" r="0.55"/>+ <path fill="none" stroke="currentColor" stroke-width="0.6" stroke-linecap="round" d="M7 8.3 Q8 9 9 8.3"/>+ <path fill="none" stroke="currentColor" stroke-width="0.9" stroke-linecap="round" d="M4.5 8 L3 9.5"/>+ <path fill="none" stroke="currentColor" stroke-width="0.9" stroke-linecap="round" d="M11.5 8 L13 9.5"/>+ <line stroke="currentColor" stroke-width="0.7" x1="5" y1="9.5" x2="11" y2="9.5"/>+ <line stroke="currentColor" stroke-width="0.9" x1="6.5" y1="12.5" x2="6.5" y2="14"/>+ <line stroke="currentColor" stroke-width="0.9" x1="9.5" y1="12.5" x2="9.5" y2="14"/>+ <line stroke="currentColor" stroke-width="0.9" stroke-linecap="round" x1="6.5" y1="14" x2="5.5" y2="14"/>+ <line stroke="currentColor" stroke-width="0.9" stroke-linecap="round" x1="9.5" y1="14" x2="10.5" y2="14"/>+ <line stroke="currentColor" stroke-width="0.7" stroke-linecap="round" x1="8" y1="2.5" x2="7.3" y2="0.8"/>+ <line stroke="currentColor" stroke-width="0.7" stroke-linecap="round" x1="8" y1="2.5" x2="8" y2="0.5"/>+ <line stroke="currentColor" stroke-width="0.7" stroke-linecap="round" x1="8" y1="2.5" x2="8.7" y2="0.8"/>+</svg>diff --git a/apps/desktop/src/renderer/assets/agents/mistral-vibe.svg b/apps/desktop/src/renderer/assets/agents/mistral-vibe.svgnew file mode 100644index 00000000..b13631b9--- /dev/null+++ b/apps/desktop/src/renderer/assets/agents/mistral-vibe.svg@@ -0,0 +1,12 @@+<svg width="16" height="16" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M8.8147 5.35803H5.35791V8.46914H8.8147V5.35803Z" fill="currentColor"/>+<path d="M22.6419 5.35803H19.1851V8.46914H22.6419V5.35803Z" fill="currentColor"/>+<path d="M15.7283 15.7284H12.2715V18.8395H15.7283V15.7284Z" fill="currentColor"/>+<path d="M8.8147 15.7284H5.35791V18.8395H8.8147V15.7284Z" fill="currentColor"/>+<path d="M22.6419 15.7284H19.1851V18.8395H22.6419V15.7284Z" fill="currentColor"/>+<path d="M12.2715 8.81482H5.35791V11.9259H12.2715V8.81482Z" fill="currentColor"/>+<path d="M12.2718 19.1852H1.90137V22.2963H12.2718V19.1852Z" fill="currentColor"/>+<path d="M26.0989 19.1852H15.7285V22.2963H26.0989V19.1852Z" fill="currentColor"/>+<path d="M22.6419 12.2716H5.35791V15.3827H22.6419V12.2716Z" fill="currentColor"/>+<path d="M22.6421 8.81482H15.7285V11.9259H22.6421V8.81482Z" fill="currentColor"/>+</svg>diff --git a/apps/desktop/src/renderer/assets/agents/nova.svg b/apps/desktop/src/renderer/assets/agents/nova.svgnew file mode 100644index 00000000..5e19f588--- /dev/null+++ b/apps/desktop/src/renderer/assets/agents/nova.svg@@ -0,0 +1,10 @@+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">+ <circle cx="8" cy="8" r="6" fill="none" stroke="currentColor" stroke-width="1"/>+ <circle cx="8" cy="8" r="4.5" fill="none" stroke="currentColor" stroke-width="0.3" opacity="0.5"/>+ <line x1="8" y1="8" x2="13.5" y2="13.5" stroke="currentColor" stroke-width="1.3" stroke-linecap="round"/>+ <polygon points="14.5,14.5 12.3,13.5 13.5,12.3" fill="currentColor"/>+ <line x1="8" y1="8" x2="2.5" y2="2.5" stroke="currentColor" stroke-width="1.3" stroke-linecap="round"/>+ <polygon points="1.5,1.5 3.7,2.5 2.5,3.7" fill="currentColor"/>+ <circle cx="8" cy="8" r="1.3" fill="currentColor"/>+ <circle cx="8" cy="8" r="0.6" fill="none" stroke="currentColor" stroke-width="0.5" opacity="0.7"/>+</svg>diff --git a/apps/desktop/src/renderer/assets/agents/opencode.svg b/apps/desktop/src/renderer/assets/agents/opencode.svgnew file mode 100644index 00000000..a38d4cf5--- /dev/null+++ b/apps/desktop/src/renderer/assets/agents/opencode.svg@@ -0,0 +1,3 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<path fill-rule="evenodd" clip-rule="evenodd" d="M13 14H3V2H13V14ZM10.5 4.4H5.5V11.6H10.5V4.4Z" fill="currentColor"/>+</svg>diff --git a/apps/desktop/src/renderer/assets/agents/pi-acp.svg b/apps/desktop/src/renderer/assets/agents/pi-acp.svgnew file mode 100644index 00000000..68ea8fd7--- /dev/null+++ b/apps/desktop/src/renderer/assets/agents/pi-acp.svg@@ -0,0 +1,4 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M1 1H11.7692V7.9999H8.17942V11.4999H4.58982V15H1V1ZM4.58982 4.50005V7.9999H8.17942V4.50005H4.58982Z" fill="currentColor"/>+<path d="M11.7692 7.46154H15V15H11.7692V7.46154Z" fill="currentColor"/>+</svg>diff --git a/apps/desktop/src/renderer/assets/agents/poolside.svg b/apps/desktop/src/renderer/assets/agents/poolside.svgnew file mode 100644index 00000000..91de4c46--- /dev/null+++ b/apps/desktop/src/renderer/assets/agents/poolside.svg@@ -0,0 +1,3 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M2.63653 5.50522L2.18735 5.28559C2.09852 5.46726 2.12787 5.68456 2.26172 5.83616C2.39558 5.98775 2.60757 6.04379 2.79884 5.97814L2.63653 5.50522ZM5.83578 6.94285L5.3732 7.13265L5.5645 7.59886L6.02919 7.40392L5.83578 6.94285ZM10.7441 9.44034L10.2614 9.57083L10.393 10.0573L10.8784 9.92198L10.7441 9.44034ZM2.5 8.24963C2.4998 7.97349 2.27577 7.74979 1.99963 7.75C1.72349 7.75021 1.4998 7.97423 1.5 8.25037L2.5 8.24963ZM13.4143 10.7751C12.0197 13.6273 8.57701 14.8089 5.72485 13.4143L5.28559 14.3126C8.63389 15.9498 12.6754 14.5627 14.3126 11.2144L13.4143 10.7751ZM3.08571 5.72485C4.48031 2.87269 7.92299 1.69111 10.7751 3.08571L11.2144 2.18735C7.86611 0.550151 3.82455 1.93728 2.18735 5.28559L3.08571 5.72485ZM10.7751 3.08571C13.6273 4.48031 14.8089 7.92299 13.4143 10.7751L14.3126 11.2144C15.9498 7.86611 14.5627 3.82455 11.2144 2.18735L10.7751 3.08571ZM2.79884 5.97814C3.02201 5.90155 3.54835 5.84926 4.09141 6.00587C4.61256 6.15616 5.10736 6.48476 5.3732 7.13265L6.29835 6.75304C5.89213 5.76303 5.11508 5.26032 4.3685 5.04503C3.64385 4.83605 2.9066 4.8839 2.47422 5.0323L2.79884 5.97814ZM6.02919 7.40392C6.25314 7.30998 6.55771 7.25841 6.85281 7.36034C7.13062 7.45631 7.49214 7.72014 7.78743 8.4398L8.71257 8.0602C8.3358 7.14195 7.79046 6.62626 7.17931 6.41515C6.58544 6.21001 6.01893 6.32381 5.64236 6.48177L6.02919 7.40392ZM6.26827 7.19375C6.80493 6.26869 8.18817 4.18684 11.1653 3.10654L10.8242 2.16652C7.53166 3.36127 5.99463 5.67263 5.40329 6.69195L6.26827 7.19375ZM14.3364 10.8325C14.1845 10.39 13.7564 9.79897 13.14 9.37995C12.504 8.94759 11.6302 8.67426 10.6099 8.9587L10.8784 9.92198C11.5634 9.73102 12.1368 9.90713 12.5779 10.207C13.0385 10.5201 13.3174 10.9441 13.3905 11.1571L14.3364 10.8325ZM11.2268 9.30984C11.1236 8.92833 10.8783 8.39265 10.3638 8.02453C9.82769 7.6409 9.08331 7.49864 8.11574 7.76836L8.38426 8.73164C9.1221 8.52595 9.53979 8.66454 9.78189 8.83777C10.0457 9.02651 10.1946 9.32371 10.2614 9.57083L11.2268 9.30984ZM11.216 9.60556C11.6225 8.44463 12.4244 5.47936 11.4712 2.48487L10.5183 2.78819C11.3726 5.47172 10.6545 8.18331 10.2722 9.27512L11.216 9.60556ZM7.80082 8.03037L5.05604 13.6438L5.9544 14.0831L8.69918 8.46963L7.80082 8.03037ZM5.72485 13.4143C3.68742 12.4181 2.50158 10.3763 2.5 8.24963L1.5 8.25037C1.50185 10.7441 2.89229 13.1424 5.28559 14.3126L5.72485 13.4143Z" fill="currentColor"/>+</svg>diff --git a/apps/desktop/src/renderer/assets/agents/qoder.svg b/apps/desktop/src/renderer/assets/agents/qoder.svgnew file mode 100644index 00000000..417d8369--- /dev/null+++ b/apps/desktop/src/renderer/assets/agents/qoder.svg@@ -0,0 +1,3 @@+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">+ <path fill="currentColor" d="M8 1C4.134 1 1 4.134 1 8s3.134 7 7 7c1.5 0 2.9-.47 4.05-1.28l1.12 1.12a.75.75 0 1 0 1.06-1.06l-1.12-1.12A6.97 6.97 0 0 0 15 8c0-3.866-3.134-7-7-7Zm0 2c2.761 0 5 2.239 5 5s-2.239 5-5 5-5-2.239-5-5 2.239-5 5-5Z"/>+</svg>diff --git a/apps/desktop/src/renderer/assets/agents/qwen-code.svg b/apps/desktop/src/renderer/assets/agents/qwen-code.svgnew file mode 100644index 00000000..78f88f28--- /dev/null+++ b/apps/desktop/src/renderer/assets/agents/qwen-code.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" data-name="图层 2" viewBox="0 0 141.38 140" width="16" height="16"><path fill="currentColor" d="m140.93 85-16.35-28.33-1.93-3.34 8.66-15a3.323 3.323 0 0 0 0-3.34l-9.62-16.67c-.3-.51-.72-.93-1.22-1.22s-1.07-.45-1.67-.45H82.23l-8.66-15a3.33 3.33 0 0 0-2.89-1.67H51.43c-.59 0-1.17.16-1.66.45-.5.29-.92.71-1.22 1.22L32.19 29.98l-1.92 3.33H12.96c-.59 0-1.17.16-1.66.45-.5.29-.93.71-1.22 1.22L.45 51.66a3.323 3.323 0 0 0 0 3.34l18.28 31.67-8.66 15a3.32 3.32 0 0 0 0 3.34l9.62 16.67c.3.51.72.93 1.22 1.22s1.07.45 1.67.45h36.56l8.66 15a3.35 3.35 0 0 0 2.89 1.67h19.25a3.34 3.34 0 0 0 2.89-1.67l18.28-31.67h17.32c.6 0 1.17-.16 1.67-.45s.92-.71 1.22-1.22l9.62-16.67a3.323 3.323 0 0 0 0-3.34ZM51.44 3.33 61.07 20l-9.63 16.66h76.98l-9.62 16.66H45.67l-11.54-20zM57.21 120H22.58l9.63-16.67h19.25l-38.5-66.67h19.25l9.62 16.67L68.78 100l-11.55 20Zm61.59-33.34-9.62-16.67-38.49 66.67-9.63-16.67 9.63-16.66 26.94-46.67h23.1l17.32 30z" data-name="图层 1"/></svg>\ No newline at end of filediff --git a/apps/desktop/src/renderer/assets/agents/sigit.svg b/apps/desktop/src/renderer/assets/agents/sigit.svgnew file mode 100644index 00000000..334fc95c--- /dev/null+++ b/apps/desktop/src/renderer/assets/agents/sigit.svg@@ -0,0 +1,98 @@+<?xml version="1.0" standalone="no" ?>+<svg+ version="1.0"+ xmlns="http://www.w3.org/2000/svg"+ width="16"+ height="16"+ viewBox="0 0 1024 1024"+ preserveAspectRatio="xMidYMid meet"+>++<g+ transform="translate(0,1024) scale(0.1,-0.1)"+ fill="currentColor"+ stroke="none"+ >+<path+ d="M6428 6358 c-104 -8 -227 -38 -314 -78 -73 -33 -196 -115 -239 -160+-18 -19 -39 -30 -56 -30 -26 0 -27 1 -18 32 5 18 9 52 9 76 0 34 -6 49 -34 80+l-34 37 -319 3 c-412 3 -383 18 -447 -236 -20 -78 -36 -154 -36 -168 0 -14 -5+-35 -12 -47 -6 -12 -21 -60 -33 -107 l-22 -85 -22 43 c-47 91 -179 184 -310+218 -146 37 -375 34 -536 -7 -203 -51 -365 -175 -443 -339 -68 -143 -109 -304+-114 -445 l-2 -70 -127 5 c-70 3 -125 2 -123 -1 5 -8 -27 -21 -34 -14 -3 3 0+5 7 5 7 0 9 5 6 10 -4 6 -11 8 -16 5 -5 -4 -15 -3 -21 2 -7 4 -17 8 -23 8 -5+0 -10 7 -10 15 0 13 -142 15 -1205 18 -663 1 -1212 -1 -1220 -5 -8 -3 -19 -5+-25 -4 -5 1 1 -8 15 -21 13 -13 29 -22 34 -20 5 2 3 -4 -4 -14 -13 -15 -15+-14 -24 5 -5 13 -15 20 -24 16 -7 -3 -157 -5 -333 -5 l-319 0 0 -2540 0 -2540+5120 0 5120 0 0 2540 0 2540 -685 1 c-377 1 -689 2 -694 3 -16 2 -25 16 -10+16 11 0 11 2 -1 10 -8 5 -10 10 -4 10 5 0 16 -6 23 -12 11 -10 13 -10 7 0 -5+8 1 12 18 12 14 0 27 -1 29 -2 1 -2 13 7 27 20 13 12 30 22 37 22 8 0 11 5 8+10 -3 6 -2 10 2 10 5 0 9 8 9 18 1 9 18 82 38 161 20 79 36 158 36 176 0 42+-38 97 -75 109 -17 6 -31 11 -32 11 -1 1 5 23 13 50 20 68 20 137 -2 169 -27+43 -64 56 -155 56 -73 0 -80 2 -74 18 4 9 9 42 12 72 3 44 0 62 -17 88 -38 61+-57 63 -396 60 l-304 -3 0 38 c0 29 -8 46 -34 75 l-34 37 -313 3 c-215 2 -321+-1 -340 -8 -50 -21 -68 -52 -100 -177 l-31 -121 -28 16 c-16 9 -35 30 -43 47+-23 48 -102 130 -168 174 -132 88 -315 126 -531 109z m296 -148 c43 -11 101+-32 129 -47 67 -37 145 -115 170 -172 41 -92 33 -253 -25 -493 l-21 -88 -275+0 -274 0 4 23 c3 12 22 91 42 175 25 102 36 170 34 205 -3 51 -4 52 -39 61+-57 14 -98 -15 -128 -89 -36 -89 -321 -1238 -328 -1321 -5 -66 -4 -72 18 -88+54 -38 118 -7 159 78 28 58 122 403 113 419 -2 4 -27 7 -54 7 -43 0 -50 3 -46+18 3 9 20 79 38 154 l33 137 75 7 c79 7 558 1 566 -8 3 -3 -58 -260 -136 -572+l-141 -566 -174 0 -174 0 0 29 c0 15 -3 49 -6 74 l-7 46 -61 -55 c-33 -30 -94+-72 -135 -92 -74 -37 -76 -37 -201 -37 -126 0 -126 0 -202 38 -203 100 -254+266 -179 592 66 287 235 944 271 1050 72 215 132 298 289 403 144 97 262 130+462 131 95 1 145 -4 203 -19z m-1046 -37 c-3 -10 -18 -71 -33 -135 l-29 -118+-273 0 c-213 0 -271 3 -268 13 2 6 13 50 25 97 11 46 25 101 31 122 l10 38+271 0 c253 0 270 -1 266 -17z m2240 0 c-3 -10 -18 -71 -33 -135 l-29 -118+-273 0 c-213 0 -271 3 -268 13 2 6 13 50 25 97 11 46 25 101 31 122 l10 38+271 0 c253 0 270 -1 266 -17z m722 -139 c0 -3 -13 -59 -30 -124 -16 -65 -30+-126 -30 -134 0 -13 13 -16 65 -16 45 0 65 -4 65 -12 0 -13 -31 -146 -51 -220+l-10 -38 -72 0 -73 0 -132 -532 c-73 -293 -132 -552 -132 -574 0 -47 11 -54+93 -54 26 0 47 -3 47 -7 0 -5 -15 -66 -33 -138 l-33 -130 -165 -3 c-326 -6+-421 26 -459 155 -17 55 2 146 155 761 69 277 125 508 125 513 0 5 -25 9 -55+9 l-55 0 7 28 c3 15 18 74 33 132 l26 105 59 5 59 5 34 138 34 137 264 0 c145+0 264 -3 264 -6z m-4147 -223 c137 -36 218 -93 257 -183 27 -63 24 -128 -12+-278 l-24 -95 -232 -3 c-143 -1 -232 1 -232 7 0 5 9 47 20 93 35 145 26 178+-49 178 -65 0 -117 -79 -128 -195 -9 -104 10 -126 222 -252 211 -127 273 -191+290 -305 14 -94 -44 -332 -112 -458 -105 -195 -319 -301 -607 -300 -253 1+-438 89 -476 225 -17 61 -8 193 21 318 l22 97 234 0 233 0 -5 -22 c-3 -13 -14+-61 -25 -108 -11 -47 -20 -106 -20 -132 0 -40 4 -50 25 -64 31 -20 85 -12 120+19 32 28 64 120 72 203 8 82 7 82 -202 224 -178 120 -243 177 -277 242 -72+138 33 532 175 650 70 59 97 75 175 105 101 38 184 51 328 52 99 1 149 -4 207+-18z m1087 -20 c0 -7 -408 -1652 -426 -1718 l-6 -23 -269 0 c-173 0 -269 4+-269 10 0 6 97 399 216 875 l216 865 269 0 c148 0 269 -4 269 -9z m2240 -1 c0+-5 -97 -397 -215 -871 -118 -474 -215 -863 -215 -865 0 -2 -121 -4 -270 -4+-174 0 -270 4 -270 10 0 6 97 399 216 875 l216 865 269 0 c166 0 269 -4 269+-10z m1040 -742 c0 -5 -5 -6 -11 -2 -8 4 -9 -1 -4 -17 4 -13 4 -21 0 -17 -4 4+-9 21 -11 39 -3 27 -2 30 11 19 8 -7 15 -17 15 -22z m-8192 4 c2 -7 -5 -12+-15 -11 -12 0 -14 2 -4 6 11 5 11 7 0 15 -12 8 -12 9 0 6 8 -3 17 -10 19 -16z+m1840 -1329 c-311 -2 -824 -2 -1140 0 -315 1 -60 2 567 2 627 0 885 -1 573 -2z+m619 1 c-3 -3 -12 -4 -19 -1 -8 3 -5 6 6 6 11 1 17 -2 13 -5z"+ />+<path+ d="M900 6270 c0 -11 6 -20 14 -20 7 0 16 -9 19 -20 5 -20 12 -20 1803+-18 1731 3 1799 4 1802 21 3 12 -4 20 -17 24 -12 3 -21 12 -21 19 0 12 -274+14 -1800 14 -1793 0 -1800 0 -1800 -20z"+ />+<path+ d="M900 6005 c0 -15 6 -25 14 -25 7 0 16 -9 19 -20 5 -20 12 -20 1334+-18 l1328 3 3 23 c3 17 -2 22 -17 22 -14 0 -21 6 -21 20 0 20 -7 20 -1330 20+l-1330 0 0 -25z"+ />+<path+ d="M737 5713 c-12 -12 -7 -43 7 -43 7 0 16 -9 19 -20 5 -20 12 -20 1323+-18 1248 3 1319 4 1322 21 2 9 -4 20 -14 24 -10 3 -26 15 -35 24 -17 17 -83+18 -1317 19 -714 0 -1302 -3 -1305 -7z"+ />+<path+ d="M1953 5412 c-1265 -2 -1273 -2 -1273 -22 0 -11 6 -20 14 -20 7 0 16+-9 19 -20 5 -20 12 -20 1298 -18 1242 3 1294 4 1297 21 3 12 -4 20 -17 24 -12+3 -21 11 -21 18 0 7 -10 14 -22 16 -13 2 -596 3 -1295 1z"+ />+<path d="M9010 5130 c-12 -7 -10 -9 7 -7 12 0 19 5 17 9 -6 10 -6 10 -24 -2z" />+<path+ d="M3180 5109 c0 -5 5 -7 10 -4 6 3 10 8 10 11 0 2 -4 4 -10 4 -5 0 -10+-5 -10 -11z"+ />+</g>+</svg>diff --git a/apps/desktop/src/renderer/assets/agents/stakpak.svg b/apps/desktop/src/renderer/assets/agents/stakpak.svgnew file mode 100644index 00000000..64425076--- /dev/null+++ b/apps/desktop/src/renderer/assets/agents/stakpak.svg@@ -0,0 +1,3 @@+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">+ <path fill="currentColor" d="M6.53 4.412h5.883v3.587H9.471v3.588H3.588V7.999H6.53Z"/>+</svg>diff --git a/apps/desktop/src/renderer/assets/agents/vtcode.svg b/apps/desktop/src/renderer/assets/agents/vtcode.svgnew file mode 100644index 00000000..b47c7b11--- /dev/null+++ b/apps/desktop/src/renderer/assets/agents/vtcode.svg@@ -0,0 +1,4 @@+<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">+ <path d="M0.5 5.5L2.5 8 0.5 10.5" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>+ <text x="3.2" y="11.5" font-family="'SF Mono', 'Fira Code', 'Consolas', monospace" font-size="10" font-weight="600" letter-spacing="-0.5" fill="currentColor">VT</text>+</svg>\ No newline at end of filediff --git a/apps/desktop/src/renderer/assets/computer-linux.svg b/apps/desktop/src/renderer/assets/computer-linux.svgnew file mode 100644index 00000000..56a1c22c--- /dev/null+++ b/apps/desktop/src/renderer/assets/computer-linux.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#000" fill-rule="evenodd" d="M12 1.8C9 1.8 7.6 4.2 7.6 7c0 1.6-.6 2.8-1.6 4.2C4.8 12.9 4 14.8 4 16.8c0 1.2.4 2.2 1 3l-1 1.7c-.2.5.2.9.7.8l3.8-.7c1.1.4 2.3.6 3.5.6s2.4-.2 3.5-.6l3.8.7c.5.1.9-.3.7-.8l-1-1.7c.6-.8 1-1.8 1-3 0-2-.8-3.9-2-5.6-1-1.4-1.6-2.6-1.6-4.2 0-2.8-1.4-5.2-4.4-5.2ZM12 10.6c-2.4 0-4 2.7-4 5.6 0 2.4 1.7 3.8 4 3.8s4-1.4 4-3.8c0-2.9-1.6-5.6-4-5.6ZM10.4 5.3a.9.9 0 1 0 0 1.8.9.9 0 0 0 0-1.8Zm3.2 0a.9.9 0 1 0 0 1.8.9.9 0 0 0 0-1.8ZM10.9 8.1h2.2L12 9.5Z"/></svg>diff --git a/apps/desktop/src/renderer/assets/google.svg b/apps/desktop/src/renderer/assets/google.svgnew file mode 100644index 00000000..afd6b4f6--- /dev/null+++ b/apps/desktop/src/renderer/assets/google.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path fill="#EA4335" d="M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z"/><path fill="#4285F4" d="M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z"/><path fill="#FBBC05" d="M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z"/><path fill="#34A853" d="M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z"/></svg>diff --git a/apps/desktop/src/renderer/client/host-client.ts b/apps/desktop/src/renderer/client/host-client.tsnew file mode 100644index 00000000..d22e363e--- /dev/null+++ b/apps/desktop/src/renderer/client/host-client.ts@@ -0,0 +1,198 @@+import type { CallError } from '@shared/ipc'+import {+ normalizeBot,+ normalizeScreen,+ type AccessRequest,+ type Bot,+ type CloudStatus,+ type Entry,+ type Hello,+ type ScreenState,+ type Usage,+} from '@shared/models'++/** How a client reaches a host API. Only loopback today: the computer's own host or an SSH tunnel. */+export type HostRoute = 'loopback' | 'direct' | 'relay'++export class HostError extends Error {+ constructor(+ readonly status: number,+ message: string,+ ) {+ super(message)+ }++ static unreachable() {+ return new HostError(0, "Can't reach your computer. Is it on and connected to the internet?")+ }++ /** The link failed, not the request: the same call can work once the computer is reachable again. */+ get isTransient() {+ return this.status === 0+ }+}++export interface HostTransport {+ call(method: string, body: unknown, timeoutMs: number): Promise<unknown>+ /** Each element is one event's JSON (what SSE puts after `data:`). */+ stream(path: string, onData: (line: string) => void, onEnd: (error: HostError | null) => void): () => void+}++export class LoopbackTransport implements HostTransport {+ constructor(+ readonly baseURL: string,+ private token: string,+ ) {}++ async call(method: string, body: unknown, timeoutMs: number) {+ try {+ return await window.codync.host.call(this.baseURL, this.token, method, body, timeoutMs)+ } catch (e) {+ const error = e as CallError+ throw new HostError(error.status ?? 0, error.status === 401 ? "This device isn't allowed on that computer anymore." : error.message)+ }+ }++ stream(path: string, onData: (line: string) => void, onEnd: (error: HostError | null) => void) {+ return window.codync.host.stream(`${this.baseURL}${path}`, this.token, onData, (error) =>+ onEnd(error ? new HostError(error.status, error.message) : null),+ )+ }+}++export type HostEvent =+ | { type: 'hello'; hostId: string; rev: number; usage: Usage; screen: ScreenState | null }+ | { type: 'bot'; bot: Bot }+ | { type: 'botDeleted'; id: string; rev: number }+ | { type: 'entry'; entry: Entry }+ | { type: 'usage'; usage: Usage }+ | { type: 'screen'; screen: ScreenState }+ | { type: 'accessRequests'; requests: AccessRequest[] }+ | { type: 'cloud'; cloud: CloudStatus }+ | { type: 'resync' }+ /** An event this app version couldn't read (host newer/older than the app). */+ | { type: 'undecodable'; kind: string }++export function parseEvent(line: string): HostEvent | null {+ let raw: Record<string, unknown>+ try {+ raw = JSON.parse(line) as Record<string, unknown>+ } catch {+ return null+ }+ const type = raw.type+ switch (type) {+ case 'hello':+ return {+ type,+ hostId: (raw.hostId as string) ?? '',+ rev: (raw.rev as number) ?? 0,+ usage: (raw.usage as Usage) ?? { providers: [] },+ screen: normalizeScreen(raw.screen as ScreenState | undefined),+ }+ case 'bot': {+ const bot = raw.bot as (Bot & { deleted?: boolean }) | undefined+ if (!bot || typeof bot.id !== 'string') return { type: 'undecodable', kind: 'bot' }+ if (bot.deleted) return { type: 'botDeleted', id: bot.id, rev: bot.rev ?? 0 }+ return { type, bot: normalizeBot(bot) }+ }+ case 'entry': {+ const entry = raw.entry as Entry | undefined+ if (!entry || typeof entry.id !== 'string' || typeof entry.botId !== 'string') return { type: 'undecodable', kind: 'entry' }+ return { type, entry: { ...entry, data: entry.data ?? {} } }+ }+ case 'usage':+ return raw.usage ? { type, usage: raw.usage as Usage } : null+ case 'screen': {+ const screen = normalizeScreen(raw.screen as ScreenState | undefined)+ return screen ? { type, screen } : null+ }+ case 'accessRequests':+ return { type, requests: (raw.requests as AccessRequest[]) ?? [] }+ case 'cloud':+ return raw.cloud ? { type, cloud: raw.cloud as CloudStatus } : null+ case 'resync':+ return { type }+ default:+ return null+ }+}++/** Typed host calls (host/src/api/mod.rs); anything else goes through `call`. */+export class HostClient {+ constructor(readonly transport: HostTransport) {}++ call<T>(method: string, body: unknown = {}, timeoutMs = 20_000): Promise<T> {+ return this.transport.call(method, body, timeoutMs) as Promise<T>+ }++ /** Catch-up since `since`, then live updates. */+ events(since: number, client: string, onEvent: (e: HostEvent) => void, onEnd: (error: HostError | null) => void) {+ const query = new URLSearchParams({ since: String(since), client })+ return this.transport.stream(`/events?${query}`, (line) => {+ const event = parseEvent(line)+ if (event) onEvent(event)+ }, onEnd)+ }++ hello() {+ return this.call<Hello>('hello').then((h) => ({ ...h, backends: h.backends ?? [], screen: normalizeScreen(h.screen) ?? undefined }))+ }++ async history(botId: string, beforeSeq: number, limit = 100) {+ return (await this.call<{ entries: Entry[] }>('history', { botId, beforeSeq, limit })).entries+ }++ async thread(botId: string, rootId: string) {+ return (await this.call<{ entries: Entry[] }>('thread', { botId, rootId })).entries+ }++ async send(botId: string, text: string, clientNonce: string, threadId: string | null, attachments: string[] | null) {+ return (await this.call<{ entry: Entry }>('send', { botId, text, clientNonce, threadId, attachments })).entry+ }++ /** Bytes per `upload` call: base64 of it stays well under the channel's 1 MiB message. */+ static uploadChunk = 384 * 1024++ async upload(botId: string, uploadId: string, name: string, data: Uint8Array) {+ let offset = 0+ do {+ const end = Math.min(offset + HostClient.uploadChunk, data.length)+ await this.call('upload', { botId, uploadId, name, data: toBase64(data.subarray(offset, end)), offset, done: end === data.length }, 60_000)+ offset = end+ } while (offset < data.length)+ }++ async readUpload(botId: string, uploadId: string) {+ const parts: Uint8Array[] = []+ let size = 0+ for (;;) {+ const res = await this.call<{ data: string; size: number }>('readUpload', { botId, uploadId, offset: size }, 60_000)+ const chunk = fromBase64(res.data)+ if (!chunk.length) break+ parts.push(chunk)+ size += chunk.length+ if (size >= res.size) break+ }+ const out = new Uint8Array(size)+ let at = 0+ for (const p of parts) {+ out.set(p, at)+ at += p.length+ }+ return out+ }+}++export function toBase64(bytes: Uint8Array) {+ let binary = ''+ for (let i = 0; i < bytes.length; i += 0x8000) binary += String.fromCharCode(...bytes.subarray(i, i + 0x8000))+ return btoa(binary)+}++export function fromBase64(text: string) {+ const binary = atob(text)+ const out = new Uint8Array(binary.length)+ for (let i = 0; i < binary.length; i++) out[i] = binary.charCodeAt(i)+ return out+}diff --git a/apps/desktop/src/renderer/components/AgentIcon.tsx b/apps/desktop/src/renderer/components/AgentIcon.tsxnew file mode 100644index 00000000..3b28e503--- /dev/null+++ b/apps/desktop/src/renderer/components/AgentIcon.tsx@@ -0,0 +1,24 @@+import { Icon } from './Icon'++// The ACP registry agents' logos (template images: drawn in the current color).+const icons = import.meta.glob<string>('../assets/agents/*.svg', { eager: true, query: '?url', import: 'default' })+const byId = new Map(Object.entries(icons).map(([path, url]) => [path.split('/').pop()!.replace('.svg', ''), url]))++export function agentIconURL(registry: string | null | undefined) {+ return registry ? (byId.get(registry) ?? null) : null+}++/** An agent's logo from the ACP registry, or a generic terminal when it has none. */+export function AgentIcon({ registry, size, color = 'currentColor' }: { registry?: string | null; size: number; color?: string }) {+ const url = agentIconURL(registry)+ if (!url) return <Icon name="terminal" size={size * 0.8} scaled={false} color={color} />+ return (+ <span+ aria-hidden+ style={{+ display: 'inline-block', width: size, height: size, flex: 'none', backgroundColor: color,+ WebkitMaskImage: `url("${url}")`, WebkitMaskSize: 'contain', WebkitMaskRepeat: 'no-repeat', WebkitMaskPosition: 'center',+ }}+ />+ )+}diff --git a/apps/desktop/src/renderer/components/Avatar.tsx b/apps/desktop/src/renderer/components/Avatar.tsxnew file mode 100644index 00000000..f49b3c23--- /dev/null+++ b/apps/desktop/src/renderer/components/Avatar.tsx@@ -0,0 +1,279 @@+import { memo, useEffect, useRef, type CSSProperties } from 'react'+import { isGroup, isWorking, needsInput, type Bot } from '@shared/models'+import { avatarColor, palette, useDark, useReduceMotion } from '../lib/theme'+import { Icon } from './Icon'++export type Mood = 'idle' | 'working' | 'needsInput'++/** The eight Grok Bot character silhouettes, in a w×h box. */+export function characterPath(kind: string, w: number, h: number) {+ const p = new Path2D()+ let stroke = 0+ switch (kind) {+ case 'pebble':+ p.ellipse(w / 2, h / 2, w / 2, h * 0.4, 0, 0, Math.PI * 2)+ break+ case 'squircle':+ p.roundRect(w * 0.04, h * 0.04, w * 0.92, h * 0.92, w * 0.3)+ break+ case 'tablet':+ p.roundRect(w * 0.14, 0, w * 0.72, h, w * 0.22)+ break+ case 'wedge':+ p.moveTo(w * 0.5, h * 0.04)+ p.quadraticCurveTo(w * 0.9, h * 0.4, w * 0.98, h * 0.86)+ p.quadraticCurveTo(w * 0.5, h * 1.04, w * 0.02, h * 0.86)+ p.quadraticCurveTo(w * 0.1, h * 0.4, w * 0.5, h * 0.04)+ break+ case 'hex':+ for (let i = 0; i < 6; i++) {+ const a = (i * Math.PI) / 3 - Math.PI / 2+ const x = w / 2 + Math.cos(a) * w * 0.49+ const y = h / 2 + Math.sin(a) * h * 0.49+ if (i === 0) p.moveTo(x, y)+ else p.lineTo(x, y)+ }+ p.closePath()+ stroke = w * 0.08+ break+ case 'cloud':+ p.ellipse(w * 0.275, h * 0.575, w * 0.275, h * 0.275, 0, 0, Math.PI * 2)+ p.moveTo(w, h * 0.575)+ p.ellipse(w * 0.725, h * 0.575, w * 0.275, h * 0.275, 0, 0, Math.PI * 2)+ p.moveTo(w * 0.82, h * 0.4)+ p.ellipse(w * 0.5, h * 0.4, w * 0.32, h * 0.32, 0, 0, Math.PI * 2)+ p.roundRect(w * 0.1, h * 0.5, w * 0.8, h * 0.35, w * 0.15)+ break+ case 'teardrop':+ p.moveTo(w * 0.5, 0)+ p.bezierCurveTo(w * 0.62, h * 0.2, w * 0.94, h * 0.38, w * 0.94, h * 0.62)+ p.arc(w * 0.5, h * 0.62, w * 0.44, 0, Math.PI, false)+ p.bezierCurveTo(w * 0.06, h * 0.38, w * 0.38, h * 0.2, w * 0.5, 0)+ break+ default: {+ // blob+ const steps = 64+ for (let i = 0; i <= steps; i++) {+ const a = (i / steps) * 2 * Math.PI+ const rr = 0.46 + 0.035 * Math.sin(a * 3 + 0.6)+ const x = w / 2 + Math.cos(a) * w * rr+ const y = h / 2 + Math.sin(a) * h * rr+ if (i === 0) p.moveTo(x, y)+ else p.lineTo(x, y)+ }+ p.closePath()+ }+ }+ return { path: p, stroke }+}++interface Dot {+ row: number+ col: number+ x: number+ y: number+}++const probe = document.createElement('canvas').getContext('2d')!+const gridCache = new Map<string, Dot[]>()++/** Square-grid dot centers that fall inside the silhouette. */+function grid(shape: string, size: number, cells: number): Dot[] {+ const key = `${shape}|${size}|${cells}`+ const hit = gridCache.get(key)+ if (hit) return hit+ const { path, stroke } = characterPath(shape, size, size)+ const step = size / cells+ const dots: Dot[] = []+ probe.lineWidth = stroke+ probe.lineJoin = 'round'+ for (let row = 0; row < cells; row++) {+ for (let col = 0; col < cells; col++) {+ const x = (col + 0.5) * step+ const y = (row + 0.5) * step+ if (probe.isPointInPath(path, x, y, 'nonzero') || (stroke > 0 && probe.isPointInStroke(path, x, y))) dots.push({ row, col, x, y })+ }+ }+ gridCache.set(key, dots)+ return dots+}++interface CharacterProps {+ shape: string+ /** An avatar palette id, or a CSS color with `tint`. */+ color: string+ tint?: string+ size?: number+ mood?: Mood+ style?: CSSProperties+}++/**+ * Grok-Bot-style character drawn like the app icon: an even grid of dots shaded as if the+ * silhouette were a ball, with hollow eyes that glance while it works and blink now and then.+ */+export const CharacterAvatar = memo(function CharacterAvatar({ shape, color, tint, size = 40, mood = 'idle', style }: CharacterProps) {+ const canvas = useRef<HTMLCanvasElement>(null)+ const dark = useDark()+ const reduce = useReduceMotion()+ const fill = tint ?? avatarColor(color)++ useEffect(() => {+ const el = canvas.current+ if (!el) return+ const ratio = window.devicePixelRatio || 1+ el.width = Math.round(size * ratio)+ el.height = Math.round(size * ratio)+ const ctx = el.getContext('2d')!+ const still = mood === 'idle' || reduce+ let frame = 0+ const draw = (time: number) => {+ ctx.setTransform(ratio, 0, 0, ratio, 0, 0)+ ctx.clearRect(0, 0, size, size)+ drawCharacter(ctx, { shape, fill, size, mood, dark, t: still ? 0 : (time / 1000) % 3600, still })+ if (!still) frame = requestAnimationFrame(draw)+ }+ draw(performance.now())+ return () => cancelAnimationFrame(frame)+ }, [shape, fill, size, mood, dark, reduce])++ return <canvas ref={canvas} aria-hidden style={{ width: size, height: size, display: 'block', flex: 'none', ...style }} />+})++/** Draws one frame of a character at the context's origin (views and menu bar icons). */+export function drawCharacter(+ ctx: CanvasRenderingContext2D,+ { shape, fill, size, mood, dark, t, still }: { shape: string; fill: string; size: number; mood: Mood; dark: boolean; t: number; still: boolean },+) {+ const cells = size < 18 ? 7 : size < 28 ? 9 : 13+ const eyeColumns = cells === 7 ? [2, 4] : cells === 9 ? [3, 6] : [4, 8]+ const eyeRowsAll = cells === 13 ? [4, 5, 6] : cells === 9 ? [3, 4] : [2, 3]+ const step = size / cells+ const dots = grid(shape, size, cells)+ const [tr, tg, tb] = palette(dark).text+ const n = parseInt(fill.slice(1), 16)+ const [cr, cg, cb] = [(n >> 16) & 255, (n >> 8) & 255, n & 255]+ // Glance: whole-cell steps left / center / right, like a small display.+ const glance = mood === 'working' ? Math.round(Math.sin((t * 2 * Math.PI) / 3.2) * 1.4) : 0+ const blinking = !still && (t / 4.7) % 1 < 0.035+ const eyeRows = blinking ? eyeRowsAll.slice(-1) : eyeRowsAll+ const eyeCols = eyeColumns.map((c) => c + glance)+ const half = size / 2+ const yaw = mood === 'working' ? t * 1.4 : -0.7+ const lx = Math.sin(yaw) * 0.8+ const ly = 0.55+ const lz = Math.cos(yaw) * 0.5 + 0.6 // never fully behind+ const ll = Math.hypot(lx, ly, lz)+ for (const d of dots) {+ if (eyeCols.includes(d.col) && eyeRows.includes(d.row)) continue+ const u = (d.x - half) / half+ const v = (half - d.y) / half+ const z = Math.sqrt(Math.max(0.2, 1 - u * u - v * v))+ const nl = Math.hypot(u, v, z)+ let shade = 0.3 + 0.7 * Math.max(0, (u * lx + v * ly + z * lz) / (nl * ll))+ if (mood === 'needsInput') {+ const ripple = 0.5 + 0.5 * Math.sin(Math.hypot(u, v) * 9 - t * 5)+ shade *= 0.6 + 0.4 * ripple+ }+ const r = step * 0.42 * (0.55 + 0.45 * shade)+ const ink = cells < 13 ? 0.4 + 0.4 * shade : 0.2 + 0.4 * Math.min(1, shade / 0.7)+ ctx.beginPath()+ ctx.arc(d.x, d.y, r, 0, Math.PI * 2)+ ctx.fillStyle = `rgba(${tr},${tg},${tb},${ink})`+ ctx.fill()+ if (shade > 0.6) {+ ctx.fillStyle = `rgba(${cr},${cg},${cb},${(shade - 0.6) / 0.4})`+ ctx.fill()+ }+ }+}++export function moodOf(bot: Bot, animated = true): Mood {+ if (!animated) return 'idle'+ return needsInput(bot) ? 'needsInput' : isWorking(bot) ? 'working' : 'idle'+}++export function BotAvatar({ bot, size = 40, animated = true }: { bot: Bot; size?: number; animated?: boolean }) {+ return <CharacterAvatar shape={bot.avatarShape} color={bot.avatarColor} size={size} mood={moodOf(bot, animated)} />+}++/**+ * A group chat's face, clustered like iMessage: two bots tucked diagonally, three in a+ * triangle, four in a 2×2 grid; past four the last cell counts the rest.+ */+export function GroupAvatar({ members, size = 40, animated = true }: { members: Bot[]; size?: number; animated?: boolean }) {+ const place = (bot: Bot, side: number, corner: CSSProperties) => (+ <div key={bot.id} style={{ position: 'absolute', ...corner }}>+ <BotAvatar bot={bot} size={side} animated={animated} />+ </div>+ )+ let content+ switch (members.length) {+ case 0:+ content = (+ <div style={{ display: 'grid', placeItems: 'center', width: '100%', height: '100%', color: 'var(--secondary)' }}>+ <Icon name="person.2" size={size * 0.4} />+ </div>+ )+ break+ case 1:+ content = <BotAvatar bot={members[0]!} size={size} animated={animated} />+ break+ case 2:+ content = [place(members[1]!, size * 0.66, { top: 0, right: 0 }), place(members[0]!, size * 0.66, { bottom: 0, left: 0 })]+ break+ case 3:+ content = [+ place(members[0]!, size * 0.55, { top: 0, left: (size - size * 0.55) / 2 }),+ place(members[1]!, size * 0.55, { bottom: 0, left: 0 }),+ place(members[2]!, size * 0.55, { bottom: 0, right: 0 }),+ ]+ break+ default:+ content = [+ place(members[0]!, size * 0.5, { top: 0, left: 0 }),+ place(members[1]!, size * 0.5, { top: 0, right: 0 }),+ place(members[2]!, size * 0.5, { bottom: 0, left: 0 }),+ members.length === 4 ? (+ place(members[3]!, size * 0.5, { bottom: 0, right: 0 })+ ) : (+ <div+ key="more"+ style={{+ position: 'absolute', right: 0, bottom: 0, width: size * 0.5, height: size * 0.5, display: 'grid', placeItems: 'center',+ fontSize: size * 0.24, fontWeight: 700, color: 'var(--secondary)', fontFamily: 'ui-rounded, var(--font)',+ }}+ >+ +{members.length - 3}+ </div>+ ),+ ]+ }+ return <div aria-hidden style={{ position: 'relative', width: size, height: size, flex: 'none' }}>{content}</div>+}++/** Avatar with the roster status dot: filled = unread, amber = needs you. A group shows its members. */+export function AvatarWithStatus({ bot, members = [], size = 44 }: { bot: Bot; members?: Bot[]; size?: number }) {+ return (+ <div style={{ position: 'relative', width: size, height: size, flex: 'none' }}>+ {isGroup(bot) ? <GroupAvatar members={members} size={size} /> : <BotAvatar bot={bot} size={size} />}+ {needsInput(bot) ? (+ <div+ style={{+ position: 'absolute', right: 0, bottom: 0, width: size * 0.36, height: size * 0.36, borderRadius: '50%',+ background: 'var(--warning)', boxShadow: '0 0 0 2px var(--background)', display: 'grid', placeItems: 'center', color: '#fff',+ }}+ >+ <Icon name="exclamationmark" size={size * 0.2} weight="black" scaled={false} />+ </div>+ ) : bot.unread > 0 ? (+ <div+ style={{+ position: 'absolute', right: 0, bottom: 0, width: size * 0.28, height: size * 0.28, borderRadius: '50%',+ background: 'var(--accent-fill)', boxShadow: '0 0 0 2px var(--background)',+ }}+ />+ ) : null}+ </div>+ )+}diff --git a/apps/desktop/src/renderer/components/Controls.tsx b/apps/desktop/src/renderer/components/Controls.tsxnew file mode 100644index 00000000..c1bd8e06--- /dev/null+++ b/apps/desktop/src/renderer/components/Controls.tsx@@ -0,0 +1,216 @@+import { Children, Fragment, useRef, useState, type CSSProperties, type ReactNode } from 'react'+import { font } from '../lib/fonts'+import { Icon } from './Icon'+import { AnchoredMenu, IconButtonBase, type MenuItem } from './Overlay'+import './controls.css'++// Codync's own controls (kit Controls.swift): never the stock ones.++export const IconButton = IconButtonBase++/** The filled call-to-action (`.primary`) or the quieter filled one (`.secondary`). */+export function Button({ kind = 'primary', children, onClick, disabled, style, className, title }: {+ kind?: 'primary' | 'secondary'+ children: ReactNode+ onClick?: () => void+ disabled?: boolean+ style?: CSSProperties+ className?: string+ title?: string+}) {+ return (+ <button className={`styled-button ${kind} ${className ?? ''}`} onClick={onClick} disabled={disabled} style={style} title={title}>+ {children}+ </button>+ )+}++/** Loading indicator: a thin arc that turns. */+export function Spinner({ size = 14 }: { size?: number }) {+ const w = Math.max(1.5, size / 9)+ const r = (size - w) / 2+ const c = 2 * Math.PI * r+ return (+ <svg className="spinner" width={size} height={size} viewBox={`0 0 ${size} ${size}`} aria-label="Loading" role="img">+ <circle cx={size / 2} cy={size / 2} r={r} fill="none" stroke="var(--secondary)" strokeWidth={w} strokeLinecap="round" strokeDasharray={`${c * 0.7} ${c}`} />+ </svg>+ )+}++/** On/off switch: label on the left, a flat capsule track on the right. */+export function Switch({ on, onChange, children, disabled, style }: { on: boolean; onChange: (on: boolean) => void; children?: ReactNode; disabled?: boolean; style?: CSSProperties }) {+ return (+ <button className="switch" role="switch" aria-checked={on} disabled={disabled} onClick={() => onChange(!on)} style={style}>+ {children !== undefined ? <span className="switch-label">{children}</span> : null}+ <span className={`switch-track ${on ? 'on' : ''}`}>+ <span className="switch-knob" />+ </span>+ </button>+ )+}++/** A button that opens a Codync menu. */+export function DropdownMenu({ items, children, className, style, title }: { items: () => MenuItem[]; children: ReactNode; className?: string; style?: CSSProperties; title?: string }) {+ const [open, setOpen] = useState(false)+ const ref = useRef<HTMLButtonElement>(null)+ return (+ <>+ <button ref={ref} className={className} style={style} title={title} onClick={() => setOpen((o) => !o)}>+ {children}+ </button>+ <AnchoredMenu open={open} onClose={() => setOpen(false)} anchor={ref} items={items} />+ </>+ )+}++/** Picks one value: the current choice in a pill with a chevron, opening a Codync menu. */+export function ChoicePicker<T extends string | number>({ selection, options, onChange, fill, fits = false }: {+ selection: T+ options: { id: T; label: string }[]+ onChange: (id: T) => void+ fill?: string+ fits?: boolean+}) {+ const label = options.find((o) => o.id === selection)?.label ?? 'Choose'+ return (+ <DropdownMenu+ title={label}+ className={`choice-picker ${fill ? '' : 'outlined'}`}+ style={{ background: fill, width: fits ? '100%' : undefined }}+ items={() => options.map((o) => ({ title: o.label, selected: o.id === selection, action: () => onChange(o.id) }))}+ >+ <span className="choice-label">{label}</span>+ <Icon name="chevron.down" size={10} weight="semibold" color="var(--secondary)" />+ </DropdownMenu>+ )+}++/** Picks one of a few values side by side: the replacement for `.segmented`. */+export function SegmentedChoice<T extends string>({ selection, options, onChange }: { selection: T; options: { id: T; label: string }[]; onChange: (id: T) => void }) {+ const index = Math.max(0, options.findIndex((o) => o.id === selection))+ return (+ <div className="segmented">+ <div className="segmented-thumb" style={{ width: `calc((100% - 6px - ${(options.length - 1) * 2}px) / ${options.length})`, transform: `translateX(calc(${index} * (100% + 2px)))` }} />+ {options.map((o) => (+ <button key={o.id} className={`segmented-option ${o.id === selection ? 'on' : ''}`} onClick={() => onChange(o.id)} aria-pressed={o.id === selection}>+ {o.label}+ </button>+ ))}+ </div>+ )+}++/** A list of choices, one per row with a checkmark: the replacement for `.inline` pickers. */+export function ChoiceList<T extends string>({ selection, options, onChange }: { selection: T; options: { id: T; label: string; detail?: string | null }[]; onChange: (id: T) => void }) {+ return (+ <div style={{ display: 'flex', flexDirection: 'column', gap: 10 }}>+ {options.map((o) => (+ <button key={o.id} className="choice-row" onClick={() => onChange(o.id)}>+ <div style={{ flex: 1, display: 'flex', flexDirection: 'column', gap: 2 }}>+ <span style={{ color: 'var(--text)' }}>{o.label}</span>+ {o.detail ? <span style={{ ...font('compactSecondary'), color: 'var(--secondary)' }}>{o.detail}</span> : null}+ </div>+ <span style={{ opacity: o.id === selection ? 1 : 0, display: 'flex' }}>+ <Icon name="checkmark" size={10} weight="semibold" />+ </span>+ </button>+ ))}+ </div>+ )+}++/** A scrolling page of cards: the replacement for `Form` / grouped `List`. */+export function CardForm({ children, style }: { children: ReactNode; style?: CSSProperties }) {+ return (+ <div className="card-form" style={style}>+ <div className="card-form-content">{children}</div>+ </div>+ )+}++/**+ * A titled group of rows (ChatGPT's desktop settings): a small bold heading over a filled,+ * rounded group whose rows are split by inset hairlines.+ */+export function CardSection({ title, footer, accessory, children }: { title?: string | null; footer?: string | null; accessory?: ReactNode; children: ReactNode }) {+ const rows = Children.toArray(children)+ return (+ <section className="card-section">+ {title ? (+ <div className="card-section-title">+ <span style={{ ...font(13, 'semibold'), color: 'var(--text)' }}>{title}</span>+ <span style={{ flex: 1 }} />+ {accessory}+ </div>+ ) : null}+ <div className="card-section-rows">+ {rows.map((row, i) => (+ <Fragment key={i}>+ <div className="card-row">{row}</div>+ {i < rows.length - 1 ? <div className="hairline inset" /> : null}+ </Fragment>+ ))}+ </div>+ {footer ? <div className="card-section-footer">{footer}</div> : null}+ </section>+ )+}++/** A 1-pixel separator line in the border color. */+export function Hairline({ style }: { style?: CSSProperties }) {+ return <div className="hairline" style={style} />+}++/** Label on the left, value on the right: the replacement for `LabeledContent`. */+export function ValueRow({ label, detail, children }: { label: string; detail?: string | null; children?: ReactNode }) {+ return (+ <div className="value-row">+ <div style={{ display: 'flex', flexDirection: 'column', gap: 3, minWidth: 0 }}>+ <span style={{ color: 'var(--text)' }}>{label}</span>+ {detail ? <span style={{ ...font('caption'), color: 'var(--secondary)', lineHeight: 1.35 }}>{detail}</span> : null}+ </div>+ <span style={{ flex: 1, minWidth: 12 }} />+ <span style={{ color: 'var(--secondary)', display: 'flex', alignItems: 'center' }}>{children}</span>+ </div>+ )+}++/** A search box: the replacement for `.searchable`. */+export function SearchField({ value, onChange, prompt = 'Search', inputRef }: { value: string; onChange: (v: string) => void; prompt?: string; inputRef?: React.RefObject<HTMLInputElement | null> }) {+ return (+ <div className="search-field">+ <Icon name="magnifyingglass" size={12} color="var(--secondary)" />+ <input ref={inputRef} value={value} placeholder={prompt} spellCheck={false} onChange={(e) => onChange(e.target.value)} />+ {value ? (+ <button aria-label="Clear search" onClick={() => onChange('')} style={{ display: 'flex', color: 'var(--tertiary)' }}>+ <Icon name="xmark.circle.fill" size={12} />+ </button>+ ) : null}+ </div>+ )+}++/** A row that expands to show more: the replacement for `DisclosureGroup`. */+export function Disclosure({ expanded, onToggle, label, children }: { expanded: boolean; onToggle: () => void; label: ReactNode; children: ReactNode }) {+ return (+ <div style={{ display: 'flex', flexDirection: 'column', gap: 8 }}>+ <button className="disclosure-label" onClick={onToggle} aria-expanded={expanded}>+ {label}+ <span style={{ flex: 1, minWidth: 8 }} />+ <span style={{ display: 'flex', transform: `rotate(${expanded ? 90 : 0}deg)`, transition: 'transform var(--layout)', color: 'var(--secondary)' }}>+ <Icon name="chevron.right" size={10} weight="semibold" />+ </span>+ </button>+ {expanded ? children : null}+ </div>+ )+}++/** A filled rounded value box, or outlined (outline or fill, never both). */+export function Pill({ children, fill = 'var(--background)', outlined = false, style }: { children: ReactNode; fill?: string; outlined?: boolean; style?: CSSProperties }) {+ return (+ <span className="pill" style={{ background: outlined ? 'transparent' : fill, boxShadow: outlined ? 'inset 0 0 0 1px var(--border)' : undefined, ...style }}>+ {children}+ </span>+ )+}diff --git a/apps/desktop/src/renderer/components/Icon.tsx b/apps/desktop/src/renderer/components/Icon.tsxnew file mode 100644index 00000000..2d745ed0--- /dev/null+++ b/apps/desktop/src/renderer/components/Icon.tsx@@ -0,0 +1,99 @@+import { useSyncExternalStore, type CSSProperties } from 'react'+import { fallbackSvg } from './icon-fallbacks'++export type Weight = 'light' | 'regular' | 'medium' | 'semibold' | 'bold' | 'black'++interface Metrics {+ w: number+ h: number+ baseline: number+}++// SF Symbols masks exported at build time on macOS (tools/export-symbols.swift); elsewhere+// (Linux) the Lucide fallbacks draw instead.+let manifest: Record<string, Metrics> | null = null+const listeners = new Set<() => void>()+if (window.codync?.platform === 'darwin') {+ void fetch('./symbols/manifest.json')+ .then((r) => (r.ok ? r.json() : {}))+ .then((m: Record<string, Metrics>) => {+ manifest = m+ for (const l of listeners) l()+ })+ .catch(() => {+ manifest = {}+ for (const l of listeners) l()+ })+} else {+ manifest = {}+}++function useManifest() {+ return useSyncExternalStore(+ (l) => {+ listeners.add(l)+ return () => void listeners.delete(l)+ },+ () => manifest,+ )+}++interface Props {+ /** SF Symbol name. */+ name: string+ /** Point size of the font the symbol is drawn in. */+ size: number+ weight?: Weight+ color?: string+ style?: CSSProperties+ className?: string+ /** Scales with the app's text size (`.appFont`); off for fixed-size chrome. */+ scaled?: boolean+ title?: string+}++/** An SF Symbol (`Image(systemName:)`) in the current text color. */+export function Icon({ name, size, weight = 'regular', color, style, className, scaled = true, title }: Props) {+ const m = useManifest()+ const metrics = m?.[name]+ const unit = scaled ? `${size}px * var(--scale)` : `${size}px`+ if (metrics) {+ const url = `url("./symbols/${name}.${weight}.png")`+ return (+ <span+ className={className}+ title={title}+ aria-hidden={title ? undefined : true}+ style={{+ display: 'inline-block',+ flex: 'none',+ width: `calc(${metrics.w} * ${unit})`,+ height: `calc(${metrics.h} * ${unit})`,+ backgroundColor: color ?? 'currentColor',+ WebkitMaskImage: url,+ maskImage: url,+ WebkitMaskSize: '100% 100%',+ maskSize: '100% 100%',+ WebkitMaskRepeat: 'no-repeat',+ ...style,+ }}+ />+ )+ }+ // Lucide fallback, about the same visual size as the symbol.+ const stroke = { light: 1.5, regular: 1.75, medium: 2, semibold: 2.25, bold: 2.5, black: 2.75 }[weight]+ return (+ <svg+ className={className}+ aria-hidden={title ? undefined : true}+ viewBox="0 0 24 24"+ fill="none"+ stroke={color ?? 'currentColor'}+ strokeWidth={stroke}+ strokeLinecap="round"+ strokeLinejoin="round"+ style={{ width: `calc(1.2 * ${unit})`, height: `calc(1.2 * ${unit})`, flex: 'none', ...style }}+ dangerouslySetInnerHTML={{ __html: (title ? `<title>${title}</title>` : '') + fallbackSvg(name) }}+ />+ )+}diff --git a/apps/desktop/src/renderer/components/Overlay.tsx b/apps/desktop/src/renderer/components/Overlay.tsxnew file mode 100644index 00000000..b0e2626b--- /dev/null+++ b/apps/desktop/src/renderer/components/Overlay.tsx@@ -0,0 +1,329 @@+import { createContext, useContext, useEffect, useLayoutEffect, useRef, useState, type ReactNode, type RefObject } from 'react'+import { createPortal } from 'react-dom'+import { font } from '../lib/fonts'+import { reduceMotion } from '../lib/theme'+import { Icon } from './Icon'+import './overlay.css'++/** Keeps a layer mounted while it animates away; `shown` drives the CSS transition. */+export function usePresence(open: boolean, exitMs = 300) {+ const [mounted, setMounted] = useState(open)+ const [shown, setShown] = useState(false)+ useLayoutEffect(() => {+ if (open) {+ setMounted(true)+ const frame = requestAnimationFrame(() => requestAnimationFrame(() => setShown(true)))+ return () => cancelAnimationFrame(frame)+ }+ setShown(false)+ const timer = setTimeout(() => setMounted(false), reduceMotion() ? 0 : exitMs)+ return () => clearTimeout(timer)+ }, [open, exitMs])+ return { mounted, shown }+}++/** Closes the modal the view is in (kit's `\.dismissModal`). */+export const DismissContext = createContext<() => void>(() => {})+export const useDismiss = () => useContext(DismissContext)++/** Stack depth: only the top layer takes Escape. */+const stack: number[] = []+let nextLayer = 0+function useEscape(active: boolean, onEscape: () => void) {+ const handler = useRef(onEscape)+ handler.current = onEscape+ useEffect(() => {+ if (!active) return+ const id = ++nextLayer+ stack.push(id)+ const onKey = (e: KeyboardEvent) => {+ if (e.key === 'Escape' && stack[stack.length - 1] === id) {+ e.preventDefault()+ e.stopPropagation()+ handler.current()+ }+ }+ window.addEventListener('keydown', onKey, true)+ return () => {+ window.removeEventListener('keydown', onKey, true)+ stack.splice(stack.indexOf(id), 1)+ }+ }, [active])+}++/** The Mac modal (`.codyncSheet`): a centered card over a dim; the content sizes it. */+export function Sheet({ open, onClose, width, height, children }: {+ open: boolean+ onClose: () => void+ width?: number | string+ height?: number | string+ children: ReactNode+}) {+ const { mounted, shown } = usePresence(open)+ const last = useRef(children)+ if (open) last.current = children+ useEscape(open, onClose)+ if (!mounted) return null+ return createPortal(+ <DismissContext.Provider value={onClose}>+ <div className={`modal-card ${shown ? 'shown' : ''}`} role="dialog" aria-modal>+ <div className="modal-dim" />+ <div className="modal-content" style={{ width, height, maxWidth: 'calc(100vw - 48px)', maxHeight: 'calc(100vh - 48px)' }}>+ {open ? children : last.current}+ </div>+ </div>+ </DismissContext.Provider>,+ document.body,+ )+}++export interface DialogAction {+ title: string+ destructive?: boolean+ action: () => void+}++/** A centered card over a dimmed screen with the actions and Cancel (`.codyncDialog`). */+export function Dialog({ open, title, message, actions, cancel = 'Cancel', onClose }: {+ open: boolean+ title: string+ message?: string | null+ actions: DialogAction[]+ cancel?: string | null+ onClose: () => void+}) {+ const { mounted, shown } = usePresence(open, 120)+ const last = useRef({ title, message, actions })+ if (open) last.current = { title, message, actions }+ useEscape(open && cancel !== null, onClose)+ if (!mounted) return null+ const shownContent = last.current+ return createPortal(+ <div className={`dialog ${shown ? 'shown' : ''}`} role="alertdialog" aria-modal>+ <div className="dialog-dim" onClick={() => cancel !== null && onClose()} />+ <div className="dialog-card">+ <div className="dialog-text">+ <div style={font('headline')}>{shownContent.title}</div>+ {shownContent.message ? <div style={{ ...font('compactSecondary'), color: 'var(--secondary)' }}>{shownContent.message}</div> : null}+ </div>+ <div className="dialog-buttons">+ {shownContent.actions.map((a) => (+ <button+ key={a.title}+ className={`dialog-button ${a.destructive ? 'destructive' : 'prominent'}`}+ onClick={() => {+ onClose()+ a.action()+ }}+ >+ {a.title}+ </button>+ ))}+ {cancel !== null ? (+ <button className="dialog-button" onClick={onClose}>+ {cancel}+ </button>+ ) : null}+ </div>+ </div>+ </div>,+ document.body,+ )+}++/** One row in a Codync menu: an action, or a choice when `selected` is set. */+export interface MenuItem {+ title: string+ icon?: string+ selected?: boolean+ destructive?: boolean+ divider?: boolean+ action: () => void+}++/** A row of emoji above a message's menu (Slack's quick reactions). */+export interface ReactionPick {+ emoji: string[]+ chosen: string[]+ toggle: (emoji: string) => void+}++export function ReactionStrip({ pick, dismiss, size = 26 }: { pick: ReactionPick; dismiss?: () => void; size?: number }) {+ return (+ <div style={{ display: 'flex' }}>+ {pick.emoji.map((emoji) => {+ const chosen = pick.chosen.includes(emoji)+ return (+ <button+ key={emoji}+ className={`reaction-button ${chosen ? 'chosen' : ''}`}+ style={{ width: size, height: size, borderRadius: size * 0.28 }}+ title={chosen ? `Remove ${emoji}` : `React ${emoji}`}+ aria-label={chosen ? `Remove reaction ${emoji}` : `React ${emoji}`}+ onClick={() => {+ dismiss?.()+ pick.toggle(emoji)+ }}+ >+ <span style={font(14)}>{emoji}</span>+ </button>+ )+ })}+ </div>+ )+}++/** The floating panel of menu rows. */+export function MenuPanel({ items, reactions, dismiss, maxHeight }: { items: MenuItem[]; reactions?: ReactionPick; dismiss: () => void; maxHeight?: number }) {+ const [highlight, setHighlight] = useState(-1)+ useEffect(() => {+ const onKey = (e: KeyboardEvent) => {+ if (e.key === 'ArrowDown' || e.key === 'ArrowUp') {+ e.preventDefault()+ setHighlight((h) => (h + (e.key === 'ArrowDown' ? 1 : -1) + items.length) % items.length)+ } else if (e.key === 'Enter' && highlight >= 0) {+ e.preventDefault()+ dismiss()+ items[highlight]?.action()+ }+ }+ window.addEventListener('keydown', onKey)+ return () => window.removeEventListener('keydown', onKey)+ }, [items, highlight, dismiss])+ return (+ <div className="menu-panel" style={{ maxHeight }}>+ {reactions ? (+ <div style={{ paddingBottom: 4 }}>+ <ReactionStrip pick={reactions} dismiss={dismiss} />+ </div>+ ) : null}+ {items.map((item, i) => (+ <div key={`${item.title}-${i}`}>+ {item.divider ? <div className="menu-divider" /> : null}+ <button+ className={`menu-row ${item.destructive ? 'destructive' : ''} ${highlight === i ? 'highlight' : ''}`}+ title={item.title}+ onMouseEnter={() => setHighlight(i)}+ onClick={() => {+ dismiss()+ item.action()+ }}+ >+ {item.icon ? (+ <span className="menu-icon">+ <Icon name={item.icon} size={12} />+ </span>+ ) : null}+ <span className="menu-title">{item.title}</span>+ {item.selected !== undefined ? (+ <span style={{ opacity: item.selected ? 1 : 0, display: 'flex' }}>+ <Icon name="checkmark" size={10} weight="semibold" />+ </span>+ ) : null}+ </button>+ </div>+ ))}+ </div>+ )+}++/**+ * Presents `MenuPanel` next to `anchor` (or at `point`, for right-clicks), flipping to stay on+ * screen; a click anywhere else closes it (`.codyncMenu` / `.contextActions`).+ */+export function AnchoredMenu({ open, onClose, anchor, point, items, reactions }: {+ open: boolean+ onClose: () => void+ anchor?: RefObject<HTMLElement | null>+ point?: { x: number; y: number } | null+ items: () => MenuItem[]+ reactions?: ReactionPick+}) {+ const { mounted, shown } = usePresence(open, 120)+ const [rect, setRect] = useState<DOMRect | null>(null)+ const frozen = useRef<MenuItem[]>([])+ if (open) frozen.current = items()+ useLayoutEffect(() => {+ if (!open) return+ if (point) setRect(new DOMRect(point.x, point.y, 0, 0))+ else if (anchor?.current) setRect(anchor.current.getBoundingClientRect())+ }, [open, point, anchor])+ useEscape(open, onClose)+ if (!mounted || !rect) return null+ const W = window.innerWidth+ const H = window.innerHeight+ const roomBelow = Math.max(0, H - rect.bottom - 14)+ const roomAbove = Math.max(0, rect.top - 14)+ const below = roomBelow >= roomAbove+ const leading = rect.left + rect.width / 2 < W * 0.6+ const width = Math.min(320, W - 16)+ const inset = Math.max(8, W - width - 8)+ const style: React.CSSProperties = {+ position: 'absolute',+ [below ? 'top' : 'bottom']: below ? rect.bottom + 6 : H - rect.top + 6,+ ...(leading ? { left: Math.min(Math.max(8, rect.left), inset) } : { right: Math.min(Math.max(8, W - rect.right), inset) }),+ maxWidth: width,+ transformOrigin: `${below ? 'top' : 'bottom'} ${leading ? 'left' : 'right'}`,+ }+ return createPortal(+ <div className={`anchored ${shown ? 'shown' : ''}`} onMouseDown={(e) => e.target === e.currentTarget && onClose()} onContextMenu={(e) => { e.preventDefault(); onClose() }}>+ <div className="anchored-panel" style={style}>+ <MenuPanel items={frozen.current} reactions={reactions} dismiss={onClose} maxHeight={Math.min(420, below ? roomBelow : roomAbove)} />+ </div>+ </div>,+ document.body,+ )+}++/** Right-click opens a Codync menu at the pointer (kit's `.contextActions`). */+export function useContextMenu() {+ const [point, setPoint] = useState<{ x: number; y: number } | null>(null)+ return {+ point,+ open: point !== null,+ onContextMenu: (e: React.MouseEvent) => {+ e.preventDefault()+ e.stopPropagation()+ setPoint({ x: e.clientX, y: e.clientY })+ },+ close: () => setPoint(null),+ }+}++/** A modal's title row: title, optional trailing actions, and a close button. */+export function ModalHeader({ title, trailing }: { title: string; trailing?: ReactNode }) {+ const dismiss = useDismiss()+ return (+ <div className="modal-header">+ <div style={{ ...font('compactBody', 'semibold'), flex: 1, minWidth: 0, overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }}>{title}</div>+ {trailing}+ <IconButtonBase title="Close" icon="xmark" onClick={dismiss} />+ </div>+ )+}++/** Plain icon button that lights up on hover and press. Icon-only, labelled for VoiceOver. */+export function IconButtonBase({ title, icon, onClick, selected = false, size = 28, disabled, className, buttonRef }: {+ title: string+ icon: string+ onClick?: (e: React.MouseEvent) => void+ selected?: boolean+ size?: number+ disabled?: boolean+ className?: string+ buttonRef?: RefObject<HTMLButtonElement | null>+}) {+ return (+ <button+ ref={buttonRef}+ className={`icon-button ${selected ? 'selected' : ''} ${className ?? ''}`}+ style={{ width: size, height: size, borderRadius: size * 0.28 }}+ title={title}+ aria-label={title}+ disabled={disabled}+ onClick={onClick}+ >+ <Icon name={icon} size={size / 2} weight="medium" />+ </button>+ )+}diff --git a/apps/desktop/src/renderer/components/ThinkingOrb.tsx b/apps/desktop/src/renderer/components/ThinkingOrb.tsxnew file mode 100644index 00000000..d882795a--- /dev/null+++ b/apps/desktop/src/renderer/components/ThinkingOrb.tsx@@ -0,0 +1,213 @@+import { useEffect, useRef } from 'react'+import { useDark, useReduceMotion } from '../lib/theme'++// thinking-orbs 0.3.1, commit de85557 (MIT, Jakub Antalik): src/engine/{core,orbits,lattice,web}.ts+// with the resolved 20/64 pt presets, as ported in kit's ThinkingOrbGeometry.++export type OrbState = 'working' | 'searching' | 'listening' | 'connecting'++interface Dot { x: number; y: number; z: number; radius: number; white: number; alpha: number }+interface Line { x1: number; y1: number; x2: number; y2: number; white: number; alpha: number; width: number }+type P3 = [number, number, number]++function speed(state: OrbState, size: number) {+ const small = size < 40+ switch (state) {+ case 'working': return small ? 3.9 : 1.885+ case 'searching': return small ? 2.665 : 2.015+ case 'listening': return small ? 3.998 : 4.388+ case 'connecting': return small ? 6.63 : 3.315+ }+}++function projector(yaw: number, tilt: number, size: number, scale: number) {+ const sy = Math.sin(yaw), cy = Math.cos(yaw), st = Math.sin(tilt), ct = Math.cos(tilt)+ return (p: P3): P3 => {+ const x = p[0] * cy + p[2] * sy+ const z = -p[0] * sy + p[2] * cy+ return [size / 2 + x * scale, size / 2 - (p[1] * ct - z * st) * scale, p[1] * st + z * ct]+ }+}+const hash = (a: number, b: number) => {+ const h = Math.sin(a * 12.9898 + b * 78.233) * 43758.5453+ return h - Math.floor(h)+}+function noise(x: number, y: number) {+ const xi = Math.floor(x), yi = Math.floor(y)+ const dx = x - xi, dy = y - yi+ const fx = dx * dx * (3 - 2 * dx), fy = dy * dy * (3 - 2 * dy)+ const a = hash(xi, yi), b = hash(xi + 1, yi), c = hash(xi, yi + 1), d = hash(xi + 1, yi + 1)+ return a + (b - a) * fx + (c - a) * fy + (a - b - c + d) * fx * fy+}+const len = (p: P3) => Math.hypot(p[0], p[1], p[2])+const scale3 = (p: P3, s: number): P3 => [p[0] * s, p[1] * s, p[2] * s]+const add3 = (a: P3, b: P3): P3 => [a[0] + b[0], a[1] + b[1], a[2] + b[2]]+const sub3 = (a: P3, b: P3): P3 => [a[0] - b[0], a[1] - b[1], a[2] - b[2]]++function orbits(size: number, t: number) {+ const small = size < 40, radius = (size / 2) * 0.82+ const project = projector(t * 0.12, 0.3, size, 1)+ const rs = Math.pow(size / 300, 0.6), multiplier = small ? 2.4 : 1+ const orbitCount = small ? 3 : 12, ghostCount = small ? 10 : 40+ const dots: Dot[] = []+ for (let orb = 0; orb < orbitCount; orb++) {+ const h1 = hash(orb, 1.7), h2 = hash(orb, 5.2), h3 = hash(orb, 8.9)+ const ro = radius * (0.45 + 0.52 * h1), theta = h1 * 2 * Math.PI, phi = Math.acos(2 * h2 - 1)+ const normal: P3 = [Math.sin(phi) * Math.cos(theta), Math.cos(phi), Math.sin(phi) * Math.sin(theta)]+ let u: P3 = [-normal[1], normal[0], 0]+ u = scale3(u, 1 / Math.max(1e-6, len(u)))+ const v: P3 = [-normal[2] * u[1], normal[2] * u[0], normal[0] * u[1] - normal[1] * u[0]]+ const sp = (0.25 + 0.55 * h3) * (h3 > 0.5 ? 1 : -1)+ for (let k = 0; k < ghostCount; k++) {+ const angle = (k / ghostCount) * 2 * Math.PI+ const p = project(scale3(add3(scale3(u, Math.cos(angle)), scale3(v, Math.sin(angle))), ro))+ const depth = (p[2] / ro + 1) / 2+ dots.push({ x: p[0], y: p[1], z: p[2], radius: 0.9 * multiplier * rs, white: 0.72, alpha: 0.5 * (0.4 + 0.6 * depth) })+ }+ for (let m = 0; m < 3; m++) {+ const angle = t * sp + (m / 3) * 2 * Math.PI + h2 * 6+ const p = project(scale3(add3(scale3(u, Math.cos(angle)), scale3(v, Math.sin(angle))), ro))+ const depth = (p[2] / ro + 1) / 2+ dots.push({ x: p[0], y: p[1], z: p[2], radius: (1.2 + 1.6 * depth) * multiplier * rs, white: 0.3 - 0.22 * depth, alpha: 1 })+ }+ }+ return { dots, lines: [] as Line[] }+}++function lattice(size: number, t: number, listening: boolean) {+ const small = size < 40, rs = Math.pow(size / 300, 0.6)+ const rings = listening ? (small ? 5 : 9) : small ? 6 : 11+ const density = listening ? (small ? 13 : 23) : small ? 14 : 29+ const multiplier = listening ? (small ? 1.6 : 1) : small ? 1.75 : 1.15+ const radius = (size / 2) * (listening ? 0.874 : 0.82)+ const tilt = listening ? 0.38 : 0.4 + 0.06 * Math.sin(t * 0.35)+ const project = projector(t * (listening ? 0.18 : 0.5), tilt, size, listening ? 1 : radius)+ const scan = t * (0.5 + 1.2 * (small ? 4.335 : 4.08))+ const dots: Dot[] = []+ for (let ri = 0; ri <= rings; ri++) {+ const lat = -Math.PI / 2 + (ri / rings) * Math.PI+ const cosLat = Math.cos(lat), sinLat = Math.sin(lat)+ const wave = 0.62 * Math.sin(t * 2.1 - ri * 0.52) + 0.38 * Math.sin(t * 1.27 + ri * 0.83)+ const rr = listening ? radius * (0.88 + 0.105 * wave) : 1+ const lonCount = Math.max(1, Math.round(Math.abs(cosLat) * density))+ for (let j = 0; j < lonCount; j++) {+ const lon = (j / lonCount) * 2 * Math.PI+ const p = project(scale3([cosLat * Math.cos(lon), sinLat, cosLat * Math.sin(lon)], rr))+ const depth = (p[2] / (listening ? radius : 1) + 1) / 2+ if (listening) {+ const crest = Math.max(0, wave)+ dots.push({ x: p[0], y: p[1], z: p[2], radius: (0.6 + 1.7 * depth) * multiplier * (1 + 0.4 * crest) * rs, white: 0.66 - 0.56 * depth - 0.1 * crest, alpha: 1 })+ } else {+ const angle = lon + t * 0.5 - scan+ const delta = Math.atan2(Math.sin(angle), Math.cos(angle))+ const boost = Math.exp(-(delta * delta) / 0.18) * Math.max(0, p[2])+ dots.push({ x: p[0], y: p[1], z: p[2], radius: ((0.6 + 1.7 * depth) * multiplier + boost) * rs, white: 0.62 - 0.54 * depth, alpha: 0.45 + 0.55 * Math.min(1, boost) })+ }+ }+ }+ return { dots, lines: [] as Line[] }+}++function web(size: number, t: number) {+ const small = size < 40, rs = Math.pow(size / 300, 0.6)+ const count = small ? 8 : 41, signals = small ? 1 : 7+ const multiplier = small ? 1.52 : 0.95, threshold = 0.72+ const project = projector(t * 0.12, 0.32, size, (size / 2) * 0.8)+ const golden = Math.PI * (3 - Math.sqrt(5))+ const nodes: P3[] = []+ for (let i = 0; i < count; i++) {+ const y = 1 - (2 * (i + 0.5)) / count+ const r = Math.sqrt(1 - y * y), a = i * golden+ const p: P3 = [r * Math.cos(a), y, r * Math.sin(a)]+ p[0] += 0.3 * (noise(i * 0.31 + 9, t * 0.24) - 0.5) * 2+ p[1] += 0.3 * (noise(i * 0.53 + 27, t * 0.21) - 0.5) * 2+ p[2] += 0.3 * (noise(i * 0.77 + 55, t * 0.27) - 0.5) * 2+ nodes.push(scale3(p, 1 / len(p)))+ }+ const dots: Dot[] = []+ const lines: Line[] = []+ for (let i = 0; i < count; i++) {+ for (let j = i + 1; j < count; j++) {+ const distance = len(sub3(nodes[i]!, nodes[j]!))+ if (distance >= threshold) continue+ const a = project(nodes[i]!), b = project(nodes[j]!), depth = ((a[2] + b[2]) / 2 + 1) / 2+ lines.push({ x1: a[0], y1: a[1], x2: b[0], y2: b[1], white: 0.42, alpha: (1 - distance / threshold) * (0.3 + 0.55 * depth), width: Math.max(0.6, 0.8 * rs) })+ }+ const p = project(nodes[i]!), depth = (p[2] + 1) / 2+ const pulse = 1 + 0.25 * Math.sin(t * 1.4 + i * 2.7)+ dots.push({ x: p[0], y: p[1], z: p[2], radius: (1.4 + 1.8 * depth) * multiplier * pulse * rs, white: 0.55 - 0.45 * depth, alpha: 1 })+ }+ for (let s = 0; s < signals; s++) {+ const segment = Math.floor(t * 0.55 + s * 7.31)+ const a = Math.floor(hash(segment, s * 3.1 + 1.7) * count)+ const b = Math.floor(hash(segment, s * 5.7 + 4.2) * count)+ if (a === b) continue+ const tick = t * 0.55 + s * 7.31, fraction = tick - Math.floor(tick)+ const node = add3(nodes[a]!, scale3(sub3(nodes[b]!, nodes[a]!), fraction))+ const p = project(scale3(node, 1 / Math.max(1e-6, len(node)))), depth = (p[2] + 1) / 2+ dots.push({ x: p[0], y: p[1], z: p[2], radius: (1.4 * 1.5 + 1.8 * depth) * multiplier * rs, white: 0.05, alpha: 0.5 + 0.5 * depth })+ }+ return { dots, lines }+}++export function orbFrame(state: OrbState, size: number, time: number) {+ const f = state === 'working' ? orbits(size, time) : state === 'connecting' ? web(size, time) : lattice(size, time, state === 'listening')+ return {+ dots: f.dots.filter((d) => d.alpha >= 0.02).map((d) => ({ ...d, radius: Math.max(0.3, d.radius) })).sort((a, b) => a.z - b.z),+ lines: f.lines.filter((l) => l.alpha >= 0.02),+ }+}++const ink = (white: number, alpha: number) => (1 - Math.min(1, Math.max(0, white))) * alpha++/** Thinking-orbs states with their tuned dot geometry and depth shading (decorative). */+export function ThinkingOrb({ state = 'working', size = 16, color = 'var(--text)', animated = true }: { state?: OrbState; size?: number; color?: string; animated?: boolean }) {+ const canvas = useRef<HTMLCanvasElement>(null)+ const reduce = useReduceMotion()+ const dark = useDark()+ useEffect(() => {+ const el = canvas.current+ if (!el) return+ const ratio = window.devicePixelRatio || 1+ el.width = Math.round(size * ratio)+ el.height = Math.round(size * ratio)+ const ctx = el.getContext('2d')!+ const resolved = getComputedStyle(el).color+ const running = animated && !reduce+ const epoch = performance.now()+ let frame = 0+ let last = 0+ const draw = (now: number) => {+ if (running && now - last < 1000 / 30) {+ frame = requestAnimationFrame(draw)+ return+ }+ last = now+ const time = 0.6 + (running ? ((now - epoch) / 1000) * speed(state, size) : 0)+ const f = orbFrame(state, size, time)+ ctx.setTransform(ratio, 0, 0, ratio, 0, 0)+ ctx.clearRect(0, 0, size, size)+ ctx.strokeStyle = resolved+ ctx.fillStyle = resolved+ for (const l of f.lines) {+ ctx.globalAlpha = ink(l.white, l.alpha)+ ctx.lineWidth = l.width+ ctx.beginPath()+ ctx.moveTo(l.x1, l.y1)+ ctx.lineTo(l.x2, l.y2)+ ctx.stroke()+ }+ for (const d of f.dots) {+ ctx.globalAlpha = ink(d.white, d.alpha)+ ctx.beginPath()+ ctx.arc(d.x, d.y, d.radius, 0, Math.PI * 2)+ ctx.fill()+ }+ ctx.globalAlpha = 1+ if (running) frame = requestAnimationFrame(draw)+ }+ frame = requestAnimationFrame(draw)+ return () => cancelAnimationFrame(frame)+ }, [state, size, animated, reduce, color, dark])+ return <canvas ref={canvas} aria-hidden style={{ width: size, height: size, color, display: 'block', flex: 'none' }} />+}diff --git a/apps/desktop/src/renderer/components/controls.css b/apps/desktop/src/renderer/components/controls.cssnew file mode 100644index 00000000..c611d91f--- /dev/null+++ b/apps/desktop/src/renderer/components/controls.css@@ -0,0 +1,236 @@+.styled-button {+ font-size: calc(12px * var(--scale));+ font-weight: 500;+ padding: 6px 12px;+ border-radius: 999px;+ display: inline-flex;+ align-items: center;+ justify-content: center;+ gap: 6px;+ transition: transform var(--press), opacity var(--press);+}+.styled-button.primary {+ background: var(--accent-fill);+ color: var(--on-accent);+}+.styled-button.secondary {+ background: var(--bubble-user);+ color: var(--text);+}+.styled-button:active:not(:disabled) {+ transform: scale(0.98);+ opacity: 0.85;+}+.styled-button:disabled {+ opacity: 0.4;+}++.spinner {+ animation: spin 0.8s linear infinite;+ flex: none;+}+@keyframes spin {+ to {+ transform: rotate(360deg);+ }+}+@media (prefers-reduced-motion: reduce) {+ .spinner {+ animation: none;+ }+}++.switch {+ display: flex;+ align-items: center;+ gap: 12px;+ width: 100%;+}+.switch:disabled {+ opacity: 0.4;+}+.switch-label {+ flex: 1;+ min-width: 0;+}+.switch-track {+ position: relative;+ width: 34px;+ height: 20px;+ border-radius: 999px;+ background: var(--bubble-user);+ flex: none;+ transition: background-color var(--hover);+}+.switch-track.on {+ background: var(--accent-fill);+}+.switch-knob {+ position: absolute;+ top: 2px;+ left: 2px;+ width: 16px;+ height: 16px;+ border-radius: 50%;+ background: #fff;+ transition: transform var(--hover), background-color var(--hover);+}+.switch-track.on .switch-knob {+ transform: translateX(14px);+ background: var(--on-accent);+}++.choice-picker {+ display: inline-flex;+ align-items: center;+ gap: 6px;+ font-size: calc(12px * var(--scale));+ color: var(--text);+ padding: 5px 9px;+ border-radius: 10px;+ max-width: 100%;+}+.choice-picker.outlined {+ box-shadow: inset 0 0 0 1px var(--border);+}+.choice-label {+ white-space: nowrap;+ overflow: hidden;+ text-overflow: ellipsis;+ flex: 1;+ min-width: 0;+}++.segmented {+ position: relative;+ display: flex;+ gap: 2px;+ padding: 3px;+ background: var(--bubble-user);+ border-radius: 999px;+}+.segmented-thumb {+ position: absolute;+ top: 3px;+ bottom: 3px;+ left: 3px;+ border-radius: 999px;+ background: var(--background);+ transition: transform var(--morph);+}+.segmented-option {+ position: relative;+ flex: 1;+ text-align: center;+ font-size: calc(11px * var(--scale));+ font-weight: 500;+ color: var(--secondary);+ padding: 5px 0;+ white-space: nowrap;+}+.segmented-option.on {+ color: var(--text);+}++.choice-row {+ display: flex;+ align-items: center;+ gap: 10px;+ width: 100%;+}++.card-form {+ height: 100%;+ overflow-y: auto;+ background: var(--background);+}+.card-form-content {+ display: flex;+ flex-direction: column;+ gap: 28px;+ padding: 14px;+ font-size: calc(12px * var(--scale));+}++.card-section {+ display: flex;+ flex-direction: column;+ gap: 10px;+ width: 100%;+}+.card-section-title {+ display: flex;+ align-items: center;+ gap: 8px;+ padding-left: 2px;+}+.card-section-rows {+ background: var(--surface);+ border-radius: 16px;+ display: flex;+ flex-direction: column;+}+.card-row {+ min-height: 28px;+ padding: 12px 16px;+ display: flex;+ align-items: center;+}+.card-row > * {+ flex: 1;+ min-width: 0;+}+.card-section-footer {+ font-size: calc(10px * var(--scale));+ color: var(--secondary);+ line-height: 1.4;+ padding: 0 2px;+}++.hairline {+ height: 1px;+ background: var(--border);+ flex: none;+}+@media (min-resolution: 2dppx) {+ .hairline {+ height: 0.5px;+ }+}+.hairline.inset {+ margin: 0 16px;+}++.value-row {+ display: flex;+ align-items: center;+ width: 100%;+}++.search-field {+ display: flex;+ align-items: center;+ gap: 8px;+ padding: 7px 10px;+ background: var(--bubble-agent);+ border-radius: 999px;+ font-size: calc(12px * var(--scale));+}+.search-field input {+ flex: 1;+ min-width: 0;+}++.disclosure-label {+ display: flex;+ align-items: center;+ gap: 6px;+ width: 100%;+}++.pill {+ display: inline-flex;+ align-items: center;+ padding: 5px 9px;+ border-radius: 10px;+}diff --git a/apps/desktop/src/renderer/components/icon-fallbacks.ts b/apps/desktop/src/renderer/components/icon-fallbacks.tsnew file mode 100644index 00000000..64725e48--- /dev/null+++ b/apps/desktop/src/renderer/components/icon-fallbacks.ts@@ -0,0 +1,168 @@+import * as L from 'lucide'++type IconNode = L.IconNode++// The closest Lucide icon for each SF Symbol, for platforms without SF Symbols (Linux).+const map: Record<string, IconNode> = {+ 'arrow.clockwise': L.RotateCw,+ 'arrow.counterclockwise': L.RotateCcw,+ 'arrow.down': L.ArrowDown,+ 'arrow.down.circle': L.CircleArrowDown,+ 'arrow.down.right.and.arrow.up.left': L.Minimize2,+ 'arrow.left': L.ArrowLeft,+ 'arrow.right': L.ArrowRight,+ 'arrow.right.doc.on.clipboard': L.ClipboardCopy,+ 'arrow.up.doc.on.clipboard': L.ClipboardPaste,+ 'arrow.right.to.line': L.ArrowRightToLine,+ 'arrow.triangle.2.circlepath': L.RefreshCw,+ 'arrow.triangle.branch': L.GitBranch,+ 'arrow.up': L.ArrowUp,+ 'arrow.up.right.square': L.SquareArrowOutUpRight,+ 'arrowshape.turn.up.left': L.Reply,+ 'apple.logo': L.Apple,+ 'bell.badge': L.BellDot,+ bolt: L.Zap,+ book: L.BookOpen,+ 'book.closed': L.Book,+ 'book.pages': L.BookOpenText,+ 'bubble.left': L.MessageSquare,+ 'bubble.left.and.bubble.right': L.MessagesSquare,+ calendar: L.Calendar,+ 'chart.bar': L.ChartColumn,+ checklist: L.ListChecks,+ checkmark: L.Check,+ 'checkmark.circle': L.CircleCheck,+ 'checkmark.circle.fill': L.CircleCheck,+ 'checkmark.seal': L.BadgeCheck,+ 'chevron.down': L.ChevronDown,+ 'chevron.left': L.ChevronLeft,+ 'chevron.left.2': L.ChevronsLeft,+ 'chevron.right': L.ChevronRight,+ 'chevron.right.2': L.ChevronsRight,+ 'chevron.up': L.ChevronUp,+ 'chevron.up.chevron.down': L.ChevronsUpDown,+ circle: L.Circle,+ 'circle.dotted': L.CircleDashed,+ clock: L.Clock,+ 'clock.arrow.circlepath': L.History,+ cloud: L.Cloud,+ cpu: L.Cpu,+ 'cursorarrow.motionlines': L.MousePointerClick,+ desktopcomputer: L.Monitor,+ 'desktopcomputer.trianglebadge.exclamationmark': L.MonitorX,+ display: L.Monitor,+ 'display.2': L.MonitorSmartphone,+ 'display.trianglebadge.exclamationmark': L.MonitorX,+ doc: L.File,+ 'doc.badge.plus': L.FilePlus,+ 'doc.on.clipboard': L.Clipboard,+ 'doc.on.clipboard.fill': L.Clipboard,+ 'doc.on.doc': L.Copy,+ 'doc.plaintext': L.FileText,+ 'doc.richtext': L.FileText,+ 'doc.text': L.FileText,+ 'doc.zipper': L.FileArchive,+ ellipsis: L.Ellipsis,+ 'ellipsis.circle': L.CircleEllipsis,+ exclamationmark: L.TriangleAlert,+ 'exclamationmark.circle': L.CircleAlert,+ 'exclamationmark.circle.fill': L.CircleAlert,+ 'exclamationmark.triangle': L.TriangleAlert,+ 'exclamationmark.triangle.fill': L.TriangleAlert,+ eye: L.Eye,+ 'eye.slash': L.EyeOff,+ film: L.Film,+ folder: L.Folder,+ 'gauge.with.dots.needle.33percent': L.Gauge,+ gearshape: L.Settings,+ globe: L.Globe,+ hammer: L.Hammer,+ 'hand.point.up.left': L.Pointer,+ 'hand.raised': L.Hand,+ 'hand.raised.slash': L.HandMetal,+ 'info.circle': L.Info,+ iphone: L.Smartphone,+ key: L.Key,+ 'key.fill': L.KeyRound,+ 'keyboard.chevron.compact.down': L.Keyboard,+ laptopcomputer: L.Laptop,+ link: L.Link,+ 'list.bullet': L.List,+ 'list.bullet.rectangle': L.ScrollText,+ 'lock.display': L.MonitorDot,+ 'lock.shield': L.ShieldCheck,+ macmini: L.Server,+ 'macpro.gen3': L.Server,+ macstudio: L.Server,+ magnifyingglass: L.Search,+ mic: L.Mic,+ 'mic.fill': L.Mic,+ 'mic.slash': L.MicOff,+ 'mic.slash.fill': L.MicOff,+ 'minus.circle': L.CircleMinus,+ 'music.note': L.Music,+ network: L.Network,+ pencil: L.Pencil,+ person: L.User,+ 'person.2': L.Users,+ 'person.crop.circle': L.CircleUser,+ 'person.crop.circle.badge.checkmark': L.UserCheck,+ 'person.crop.circle.badge.plus': L.UserPlus,+ 'person.fill': L.User,+ 'phone.down.fill': L.PhoneOff,+ photo: L.Image,+ 'photo.on.rectangle': L.Images,+ pin: L.Pin,+ 'pin.fill': L.Pin,+ 'pin.slash': L.PinOff,+ 'play.circle': L.CirclePlay,+ plus: L.Plus,+ 'plus.circle': L.CirclePlus,+ 'point.3.connected.trianglepath.dotted': L.Waypoints,+ power: L.Power,+ qrcode: L.QrCode,+ 'record.circle': L.CircleDot,+ 'rectangle.and.hand.point.up.left': L.MousePointer2,+ 'rectangle.portrait.and.arrow.right': L.LogOut,+ 'rotate.right': L.RotateCw,+ safari: L.Compass,+ 'server.rack': L.Server,+ shippingbox: L.Package,+ 'sidebar.left': L.PanelLeft,+ 'slider.horizontal.3': L.SlidersHorizontal,+ sparkles: L.Sparkles,+ 'speaker.slash.fill': L.VolumeX,+ 'speaker.wave.2': L.Volume2,+ 'speaker.wave.2.fill': L.Volume2,+ 'square.and.arrow.up': L.Share,+ 'square.and.pencil': L.SquarePen,+ 'square.grid.2x2': L.LayoutGrid,+ 'square.grid.3x3': L.Grid3x3,+ 'square.on.square': L.Copy,+ 'stop.circle': L.CircleStop,+ 'stop.fill': L.Square,+ terminal: L.Terminal,+ 'text.bubble': L.MessageSquareText,+ tray: L.Inbox,+ trash: L.Trash2,+ waveform: L.AudioLines,+ wifi: L.Wifi,+ 'wifi.slash': L.WifiOff,+ 'wrench.and.screwdriver': L.Wrench,+ xmark: L.X,+ 'xmark.circle': L.CircleX,+ 'xmark.circle.fill': L.CircleX,+}++const cache = new Map<string, string>()++export function fallbackSvg(name: string): string {+ const hit = cache.get(name)+ if (hit !== undefined) return hit+ const node = map[name] ?? L.Circle+ const svg = node+ .map(([tag, attrs]) => `<${tag} ${Object.entries(attrs).filter(([, v]) => v !== undefined).map(([k, v]) => `${k}="${v}"`).join(' ')}/>`)+ .join('')+ cache.set(name, svg)+ return svg+}diff --git a/apps/desktop/src/renderer/components/overlay.css b/apps/desktop/src/renderer/components/overlay.cssnew file mode 100644index 00000000..2c3e87e4--- /dev/null+++ b/apps/desktop/src/renderer/components/overlay.css@@ -0,0 +1,217 @@+/* Sheets: a centered card over a dim, scaling in with the layout spring. */+.modal-card {+ position: fixed;+ inset: 0;+ z-index: 100;+ display: grid;+ place-items: center;+}+.modal-dim {+ position: absolute;+ inset: 0;+ background: rgba(0, 0, 0, 0.4);+ opacity: 0;+ transition: opacity var(--layout);+}+.modal-content {+ position: relative;+ background: var(--background);+ border-radius: 20px;+ overflow: hidden;+ box-shadow: 0 12px 60px rgba(0, 0, 0, 0.3);+ opacity: 0;+ transform: scale(0.96);+ transition: opacity var(--layout), transform var(--layout);+ display: flex;+ flex-direction: column;+}+.modal-card.shown .modal-dim {+ opacity: 1;+}+.modal-card.shown .modal-content {+ opacity: 1;+ transform: none;+}++.modal-header {+ display: flex;+ align-items: center;+ gap: 8px;+ height: 48px;+ padding: 0 10px 0 16px;+ flex: none;+}++/* Dialogs */+.dialog {+ position: fixed;+ inset: 0;+ z-index: 200;+ display: grid;+ place-items: center;+ opacity: 0;+ transform: scale(0.98);+ transition: opacity var(--fade), transform var(--fade);+}+.dialog.shown {+ opacity: 1;+ transform: none;+}+.dialog-dim {+ position: absolute;+ inset: 0;+ background: rgba(0, 0, 0, 0.35);+}+.dialog-card {+ position: relative;+ width: min(320px, calc(100vw - 48px));+ padding: 18px;+ background: var(--bubble-agent);+ border-radius: 22px;+ box-shadow: 0 10px 48px rgba(0, 0, 0, 0.25);+ display: flex;+ flex-direction: column;+ gap: 14px;+}+.dialog-text {+ display: flex;+ flex-direction: column;+ gap: 6px;+ text-align: center;+ color: var(--text);+}+.dialog-buttons {+ display: flex;+ flex-direction: column;+ gap: 8px;+}+.dialog-button {+ font-size: calc(12px * var(--scale));+ font-weight: 500;+ text-align: center;+ padding: 8px 0;+ border-radius: 999px;+ background: var(--bubble-user);+ color: var(--text);+ transition: transform var(--press), opacity var(--press);+}+.dialog-button.prominent {+ background: var(--accent-fill);+ color: var(--on-accent);+}+.dialog-button.destructive {+ background: var(--danger);+ color: #fff;+}+.dialog-button:active {+ transform: scale(0.98);+ opacity: 0.85;+}++/* Menus */+.anchored {+ position: fixed;+ inset: 0;+ z-index: 300;+ opacity: 0;+ transition: opacity var(--fade);+}+.anchored.shown {+ opacity: 1;+}+.anchored-panel {+ background: var(--bubble-agent);+ border-radius: 14px;+ box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);+ overflow: hidden;+ transform: scale(0.98);+ transition: transform var(--layout);+}+.anchored.shown .anchored-panel {+ transform: none;+}+.menu-panel {+ padding: 6px;+ display: flex;+ flex-direction: column;+ gap: 2px;+ overflow-y: auto;+ min-width: 160px;+}+.menu-divider {+ height: 0.5px;+ background: rgba(var(--text-rgb), 0.1);+ margin: 4px 10px;+}+.menu-row {+ display: flex;+ align-items: center;+ gap: 10px;+ width: 100%;+ padding: 6px 10px;+ border-radius: 8px;+ font-size: calc(12px * var(--scale));+ color: var(--text);+ transition: background-color var(--hover);+}+.menu-row.destructive {+ color: var(--danger);+}+.menu-row.highlight {+ background: rgba(var(--text-rgb), 0.07);+}+.menu-icon {+ width: 18px;+ display: flex;+ justify-content: center;+ flex: none;+}+.menu-title {+ flex: 1;+ margin-right: 16px;+}++.reaction-button {+ display: grid;+ place-items: center;+ transition: background-color var(--hover), transform var(--press);+}+.reaction-button span {+ transition: transform var(--hover);+}+.reaction-button:hover {+ background: rgba(var(--text-rgb), 0.06);+}+.reaction-button:hover span {+ transform: scale(1.15);+}+.reaction-button:active span {+ transform: scale(0.85);+}+.reaction-button.chosen {+ background: rgba(var(--text-rgb), 0.12);+}++/* Icon buttons */+.icon-button {+ display: grid;+ place-items: center;+ color: var(--secondary);+ flex: none;+ transition: background-color var(--hover), color var(--hover), transform var(--press);+}+.icon-button:hover:not(:disabled) {+ color: var(--text);+ background: rgba(var(--text-rgb), 0.08);+}+.icon-button:active:not(:disabled) {+ background: rgba(var(--text-rgb), 0.14);+ transform: scale(0.98);+}+.icon-button.selected {+ background: var(--accent-fill);+ color: var(--on-accent);+}+.icon-button:disabled {+ opacity: 0.35;+}diff --git a/apps/desktop/src/renderer/components/symbols.json b/apps/desktop/src/renderer/components/symbols.jsonnew file mode 100644index 00000000..0a0fa609--- /dev/null+++ b/apps/desktop/src/renderer/components/symbols.json@@ -0,0 +1,151 @@+[+"apple.logo",+"arrow.clockwise",+"arrow.counterclockwise",+"arrow.down",+"arrow.down.circle",+"arrow.down.doc.on.clipboard",+"arrow.down.right.and.arrow.up.left",+"arrow.left",+"arrow.right",+"arrow.right.doc.on.clipboard",+"arrow.right.to.line",+"arrow.triangle.2.circlepath",+"arrow.triangle.branch",+"arrow.up",+"arrow.up.doc.on.clipboard",+"arrow.up.right.square",+"arrowshape.turn.up.left",+"bell.badge",+"bolt",+"book",+"book.closed",+"book.pages",+"bubble.left",+"bubble.left.and.bubble.right",+"calendar",+"chart.bar",+"checklist",+"checkmark",+"checkmark.circle",+"checkmark.circle.fill",+"checkmark.seal",+"chevron.down",+"chevron.left",+"chevron.left.2",+"chevron.right",+"chevron.right.2",+"chevron.up",+"chevron.up.chevron.down",+"circle",+"circle.dotted",+"clock",+"clock.arrow.circlepath",+"cloud",+"cpu",+"cursorarrow.motionlines",+"desktopcomputer",+"desktopcomputer.trianglebadge.exclamationmark",+"display",+"display.2",+"display.trianglebadge.exclamationmark",+"doc",+"doc.badge.plus",+"doc.on.clipboard",+"doc.on.clipboard.fill",+"doc.on.doc",+"doc.plaintext",+"doc.richtext",+"doc.text",+"doc.zipper",+"ellipsis",+"ellipsis.circle",+"exclamationmark",+"exclamationmark.circle",+"exclamationmark.circle.fill",+"exclamationmark.triangle",+"exclamationmark.triangle.fill",+"eye",+"eye.slash",+"film",+"folder",+"gauge.with.dots.needle.33percent",+"gearshape",+"globe",+"hammer",+"hand.point.up.left",+"hand.raised",+"hand.raised.slash",+"info.circle",+"iphone",+"key",+"key.fill",+"keyboard.chevron.compact.down",+"laptopcomputer",+"link",+"list.bullet",+"list.bullet.rectangle",+"lock.display",+"lock.shield",+"macmini",+"macpro.gen3",+"macstudio",+"magnifyingglass",+"mic",+"mic.fill",+"mic.slash",+"mic.slash.fill",+"minus.circle",+"music.note",+"network",+"pencil",+"person",+"person.2",+"person.crop.circle",+"person.crop.circle.badge.checkmark",+"person.crop.circle.badge.plus",+"person.fill",+"phone.down.fill",+"photo",+"photo.on.rectangle",+"pin",+"pin.fill",+"pin.slash",+"play.circle",+"plus",+"plus.circle",+"point.3.connected.trianglepath.dotted",+"power",+"qrcode",+"record.circle",+"rectangle.and.hand.point.up.left",+"rectangle.portrait.and.arrow.right",+"rotate.right",+"safari",+"server.rack",+"shippingbox",+"sidebar.left",+"slider.horizontal.3",+"sparkles",+"speaker.slash.fill",+"speaker.wave.2",+"speaker.wave.2.fill",+"square.and.arrow.up",+"square.and.pencil",+"square.grid.2x2",+"square.grid.3x3",+"square.on.square",+"stop.circle",+"stop.fill",+"terminal",+"text.bubble",+"trash",+"tray",+"waveform",+"wifi",+"wifi.slash",+"wrench.and.screwdriver",+"xmark",+"xmark.circle",+"xmark.circle.fill"+]\ No newline at end of filediff --git a/apps/desktop/src/renderer/env.d.ts b/apps/desktop/src/renderer/env.d.tsnew file mode 100644index 00000000..599fa535--- /dev/null+++ b/apps/desktop/src/renderer/env.d.ts@@ -0,0 +1,10 @@+/// <reference types="vite/client" />+import type { CodyncBridge } from '@shared/ipc'++declare global {+ interface Window {+ codync: CodyncBridge+ }+}++export {}diff --git a/apps/desktop/src/renderer/index.html b/apps/desktop/src/renderer/index.htmlnew file mode 100644index 00000000..913c7a6a--- /dev/null+++ b/apps/desktop/src/renderer/index.html@@ -0,0 +1,12 @@+<!doctype html>+<html lang="en">+ <head>+ <meta charset="UTF-8" />+ <meta http-equiv="Content-Security-Policy" content="default-src 'self'; img-src 'self' data: blob: https:; style-src 'self' 'unsafe-inline'; connect-src 'self' https: wss:; media-src 'self' blob: data:" />+ <title>Codync</title>+ </head>+ <body>+ <div id="root"></div>+ <script type="module" src="./main.tsx"></script>+ </body>+</html>diff --git a/apps/desktop/src/renderer/lib/fonts.ts b/apps/desktop/src/renderer/lib/fonts.tsnew file mode 100644index 00000000..b51ade62--- /dev/null+++ b/apps/desktop/src/renderer/lib/fonts.ts@@ -0,0 +1,39 @@+import type { CSSProperties } from 'react'++// macOS text styles in points (NSFont.preferredFont), scaled by the app's text size preference+// like kit's `AppFont`.+export const TextStyle = {+ largeTitle: 26,+ title: 22,+ title2: 17,+ title3: 15,+ headline: 13,+ body: 13,+ callout: 12,+ subheadline: 11,+ footnote: 10,+ caption: 10,+ caption2: 10,+ /** Codync's compact desktop body (12) and secondary (11). */+ compactBody: 12,+ compactSecondary: 11,+} as const++export type TextStyleName = keyof typeof TextStyle++/** `calc(<pt>px * var(--scale))` */+export const px = (size: number) => `calc(${size}px * var(--scale))`++type Weight = 'regular' | 'medium' | 'semibold' | 'bold' | 'black' | 'light'+const weights: Record<Weight, number> = { light: 300, regular: 400, medium: 500, semibold: 600, bold: 700, black: 900 }++/** `.appFont(...)`: a text style name or a point size, with weight and design. */+export function font(style: TextStyleName | number, weight?: Weight, design?: 'monospaced' | 'rounded'): CSSProperties {+ const size = typeof style === 'number' ? style : TextStyle[style]+ const w = weight ?? (style === 'headline' ? 'bold' : 'regular')+ return {+ fontSize: px(size),+ fontWeight: weights[w],+ ...(design === 'monospaced' ? { fontFamily: 'var(--mono)' } : design === 'rounded' ? { fontFamily: 'ui-rounded, var(--font)' } : {}),+ }+}diff --git a/apps/desktop/src/renderer/lib/observable.ts b/apps/desktop/src/renderer/lib/observable.tsnew file mode 100644index 00000000..fb880178--- /dev/null+++ b/apps/desktop/src/renderer/lib/observable.ts@@ -0,0 +1,54 @@+import { useCallback, useRef, useSyncExternalStore } from 'react'++/** A model object views follow: `changed()` re-renders every view that uses it. */+export class Observable {+ private listeners = new Set<() => void>()+ private version = 0+ private pending = false++ /** Coalesced to one notification per microtask, like SwiftUI's batched updates. */+ protected changed() {+ if (this.pending) return+ this.pending = true+ queueMicrotask(() => {+ this.pending = false+ this.version+++ for (const listener of [...this.listeners]) listener()+ })+ }++ subscribe = (listener: () => void) => {+ this.listeners.add(listener)+ return () => void this.listeners.delete(listener)+ }++ getVersion = () => this.version+}++/** Re-renders the component when `model` changes; returns it for convenience. */+export function useModel<T extends Observable | null | undefined>(model: T): T {+ useSyncExternalStore(+ model ? model.subscribe : noopSubscribe,+ model ? model.getVersion : zero,+ )+ return model+}++const noopSubscribe = () => () => {}+const zero = () => 0++/** Re-renders on a change to any of `models` (a list whose length may change). */+export function useModels(models: Observable[]) {+ const key = useRef<{ models: Observable[]; version: number }>({ models, version: 0 })+ key.current.models = models+ useSyncExternalStore(+ useCallback((cb: () => void) => {+ const offs = key.current.models.map((m) => m.subscribe(() => {+ key.current.version+++ cb()+ }))+ return () => offs.forEach((off) => off())+ }, [models.length, ...models]),+ () => key.current.version,+ )+}diff --git a/apps/desktop/src/renderer/lib/prefs.ts b/apps/desktop/src/renderer/lib/prefs.tsnew file mode 100644index 00000000..90329a0f--- /dev/null+++ b/apps/desktop/src/renderer/lib/prefs.ts@@ -0,0 +1,70 @@+import { useSyncExternalStore } from 'react'++/** A per-window preference in localStorage (kit's `@AppStorage`), observable by views. */+export function pref<T>(key: string, fallback: T) {+ const listeners = new Set<() => void>()+ let value: T = (() => {+ try {+ const raw = localStorage.getItem(key)+ return raw === null ? fallback : (JSON.parse(raw) as T)+ } catch {+ return fallback+ }+ })()+ window.addEventListener('storage', (e) => {+ if (e.key !== key) return+ try {+ value = e.newValue === null ? fallback : (JSON.parse(e.newValue) as T)+ } catch {+ value = fallback+ }+ for (const l of listeners) l()+ })+ return {+ get: () => value,+ set(next: T) {+ value = next+ try {+ localStorage.setItem(key, JSON.stringify(next))+ } catch {}+ for (const l of listeners) l()+ },+ subscribe(l: () => void) {+ listeners.add(l)+ return () => void listeners.delete(l)+ },+ }+}++export type Pref<T> = ReturnType<typeof pref<T>>++export function usePref<T>(p: Pref<T>): [T, (v: T) => void] {+ const value = useSyncExternalStore(p.subscribe, p.get)+ return [value, p.set]+}++export const TEXT_SIZES = [11, 12, 13, 14, 15, 16, 18]+export const DEFAULT_TEXT_SIZE = 12++/** The next larger (`up`) or smaller size for ⌘+ / ⌘−, staying at either end. */+export function stepTextSize(size: number, up: boolean) {+ return (up ? TEXT_SIZES.find((s) => s > size) : [...TEXT_SIZES].reverse().find((s) => s < size)) ?? size+}++export const prefs = {+ textSize: pref('conversationFontSize', DEFAULT_TEXT_SIZE),+ sidebarCompact: pref('sidebarCompact', false),+ sidebarWidth: pref('desktopSidebarWidth', 296),+ hiddenComputers: pref('hiddenComputers', ''),+ usageIconStyle: pref<'character' | 'original'>('usageIconStyle', 'character'),+ onboardingDone: pref('macAccountOnboardingCompleted', false),+}++/** The Mac preference supplies one scale for conversation text and app chrome. */+export function applyTextSize(size: number) {+ const clamped = Number.isFinite(size) ? Math.min(Math.max(size, 11), 18) : DEFAULT_TEXT_SIZE+ document.documentElement.style.setProperty('--scale', String(clamped / DEFAULT_TEXT_SIZE))+ document.documentElement.style.setProperty('--conversation', `${clamped}px`)+}++prefs.textSize.subscribe(() => applyTextSize(prefs.textSize.get()))diff --git a/apps/desktop/src/renderer/lib/theme.ts b/apps/desktop/src/renderer/lib/theme.tsnew file mode 100644index 00000000..e9cd7f3b--- /dev/null+++ b/apps/desktop/src/renderer/lib/theme.ts@@ -0,0 +1,59 @@+import { useSyncExternalStore } from 'react'++const darkQuery = window.matchMedia('(prefers-color-scheme: dark)')+const motionQuery = window.matchMedia('(prefers-reduced-motion: reduce)')++const subscribe = (query: MediaQueryList) => (cb: () => void) => {+ query.addEventListener('change', cb)+ return () => query.removeEventListener('change', cb)+}++export function useDark() {+ return useSyncExternalStore(subscribe(darkQuery), () => darkQuery.matches)+}++export function useReduceMotion() {+ return useSyncExternalStore(subscribe(motionQuery), () => motionQuery.matches)+}++export const isDark = () => darkQuery.matches+export const reduceMotion = () => motionQuery.matches++/** Palette values for drawing code (canvas) that can't read CSS variables. */+export const palette = (dark: boolean) => ({+ text: dark ? [242, 242, 242] : [20, 20, 20],+ secondary: dark ? '#9a9a9a' : '#6b6b6b',+ background: dark ? '#0a0a0a' : '#ffffff',+})++export interface Swatch {+ id: string+ label: string+ hex: string+}++export const AVATAR_COLORS: Swatch[] = [+ { id: 'black', label: 'Black', hex: '#2B2B2B' },+ { id: 'brown', label: 'Brown', hex: '#936439' },+ { id: 'red', label: 'Red', hex: '#FF263C' },+ { id: 'orange', label: 'Orange', hex: '#FF6700' },+ { id: 'yellow', label: 'Yellow', hex: '#FF9800' },+ { id: 'green', label: 'Green', hex: '#00C972' },+ { id: 'cyan', label: 'Cyan', hex: '#00BCA6' },+ { id: 'blue', label: 'Blue', hex: '#1084FE' },+ { id: 'violet', label: 'Violet', hex: '#9159FE' },+ { id: 'magenta', label: 'Magenta', hex: '#FF309B' },+ { id: 'gray', label: 'Gray', hex: '#777777' },+]++export const AVATAR_SHAPES = ['blob', 'pebble', 'squircle', 'tablet', 'wedge', 'hex', 'cloud', 'teardrop']++export function avatarColor(id: string) {+ return (AVATAR_COLORS.find((c) => c.id === id) ?? AVATAR_COLORS[7]!).hex+}++/** `#RRGGBB` → `rgba(r, g, b, a)`. */+export function withAlpha(hex: string, alpha: number) {+ const n = parseInt(hex.slice(1), 16)+ return `rgba(${(n >> 16) & 255}, ${(n >> 8) & 255}, ${n & 255}, ${alpha})`+}diff --git a/apps/desktop/src/renderer/main.tsx b/apps/desktop/src/renderer/main.tsxnew file mode 100644index 00000000..56246990--- /dev/null+++ b/apps/desktop/src/renderer/main.tsx@@ -0,0 +1,21 @@+import { createRoot } from 'react-dom/client'+import './styles/theme.css'+import { ChatWindow } from './views/ChatWindow'+import { PairingWindow } from './views/PairingWindow'+import { AppModel } from './store/app-model'+import { AppContext } from './store/context'+import { applyTextSize, prefs } from './lib/prefs'+import { account } from './store/account'++const page = new URLSearchParams(location.search).get('window') ?? 'chat'+document.documentElement.dataset.platform = window.codync.platform+applyTextSize(prefs.textSize.get())++// The pairing window only needs this computer's host, not a mirror of its bots.+const app = new AppModel(page !== 'pairing')+void app.start()+if (page !== 'pairing') void account.start()++createRoot(document.getElementById('root')!).render(+ <AppContext.Provider value={app}>{page === 'pairing' ? <PairingWindow /> : <ChatWindow />}</AppContext.Provider>,+)diff --git a/apps/desktop/src/renderer/store/account.ts b/apps/desktop/src/renderer/store/account.tsnew file mode 100644index 00000000..200e30fd--- /dev/null+++ b/apps/desktop/src/renderer/store/account.ts@@ -0,0 +1,60 @@+import { Observable, useModel } from '../lib/observable'++export type SignInProvider = 'apple' | 'google'++export interface AccountInfo {+ userId: string+ email: string | null+ avatarURL: string | null+}++/**+ * The Codync account (Clerk, through the main process). An account never grants access to a+ * computer by itself: each one still approves this device (spec §4.2).+ */+export class AccountSession extends Observable {+ isBusy = false+ isReady = true+ isConfigured = false+ errorMessage: string | null = null+ user: AccountInfo | null = null+ cloudURL: string | null = null++ get isSignedIn() {+ return this.user !== null+ }++ async start() {+ const state = await window.codync.account.state()+ this.apply(state)+ window.codync.account.onChange((s) => this.apply(s))+ }++ private apply(s: Awaited<ReturnType<typeof window.codync.account.state>>) {+ this.isReady = s.ready+ this.isConfigured = s.configured+ this.isBusy = s.busy+ this.errorMessage = s.error+ this.user = s.user+ this.cloudURL = s.cloudURL+ this.changed()+ }++ async signIn(provider: SignInProvider) {+ await window.codync.account.signIn(provider)+ }++ async signOut() {+ await window.codync.account.signOut()+ }++ sessionToken() {+ return window.codync.account.token()+ }+}++export const account = new AccountSession()++export function useAccount() {+ return useModel(account)+}diff --git a/apps/desktop/src/renderer/store/app-model.ts b/apps/desktop/src/renderer/store/app-model.tsnew file mode 100644index 00000000..62f321a9--- /dev/null+++ b/apps/desktop/src/renderer/store/app-model.ts@@ -0,0 +1,187 @@+import type { HostSnapshot } from '@shared/ipc'+import type { AccessRequest, Bot, Computer } from '@shared/models'+import { LoopbackTransport } from '../client/host-client'+import { Observable } from '../lib/observable'+import { BotStore } from './bot-store'++/** A bot on a computer: bot ids are only unique per computer. */+export interface BotRef {+ computerId: string+ botId: string+}++export const refKey = (r: BotRef) => `${r.computerId}/${r.botId}`+export const parseRef = (key: string): BotRef | null => {+ const at = key.indexOf('/')+ return at < 0 ? null : { computerId: key.slice(0, at), botId: key.slice(at + 1) }+}+export const sameRef = (a: BotRef | null, b: BotRef | null) => !!a && !!b && a.computerId === b.computerId && a.botId === b.botId++export interface RosterItem {+ ref: BotRef+ bot: Bot+ computer: Computer+ store: BotStore+}++/** A device asking a computer this app manages for access. */+export interface Approval {+ id: string+ store: BotStore+ request: AccessRequest+}++/**+ * The window's model: this computer's own host (from the main process), one `BotStore` per+ * computer, the selection, and what the menu bar shows. Ports the Mac app's `HostController`+ * (renderer side) and kit's `AccountStore`.+ */+export class AppModel extends Observable {+ host: HostSnapshot = { state: { kind: 'starting' }, local: null, dev: false, logPath: '' }+ computers: Computer[] = []+ stores = new Map<string, BotStore>()+ selection: BotRef | null = null+ lastError: string | null = null+ /** Approvals closed with "later"; they come back when the request changes (its code arrives). */+ private deferred = new Set<string>()+ private storeSubscriptions = new Map<string, () => void>()++ constructor(private mirrors = true) {+ super()+ }++ async start() {+ window.codync.host.onChange((s) => this.setHost(s))+ this.setHost(await window.codync.host.snapshot())+ }++ private setHost(snapshot: HostSnapshot) {+ const old = this.host.local+ this.host = snapshot+ const local = snapshot.local+ if (!this.mirrors) return this.changed()+ if (local && (old?.computerId !== local.computerId || old.token !== local.token || !this.stores.has(local.computerId))) {+ if (old && old.computerId !== local.computerId) this.detach(old.computerId)+ const cached = this.computers.find((c) => c.id === local.computerId)+ const computer: Computer = cached ?? { id: local.computerId, name: 'This computer', signKey: '', urls: [] }+ this.attach(computer, new BotStore(computer, true, () => new LoopbackTransport(local.baseURL, local.token)))+ } else if (!local && old) {+ this.detach(old.computerId)+ }+ this.changed()+ }++ /** The computer's own host store. */+ get local(): BotStore | null {+ return this.host.local ? (this.stores.get(this.host.local.computerId) ?? null) : null+ }++ attach(computer: Computer, store: BotStore) {+ this.detach(computer.id)+ this.computers = [...this.computers.filter((c) => c.id !== computer.id), computer]+ this.stores.set(computer.id, store)+ store.onComputerChanged = (c) => {+ this.computers = this.computers.map((x) => (x.id === c.id ? c : x))+ this.changed()+ }+ store.onRosterChanged = () => this.changed()+ // Kit views select a new bot on their own store; that becomes the window's selection.+ this.storeSubscriptions.set(computer.id, store.subscribe(() => {+ if (store.selection) {+ const botId = store.selection+ store.selection = null+ this.select({ computerId: computer.id, botId })+ }+ }))+ store.start()+ this.changed()+ }++ detach(id: string) {+ this.storeSubscriptions.get(id)?.()+ this.storeSubscriptions.delete(id)+ this.stores.get(id)?.retire()+ this.stores.delete(id)+ this.computers = this.computers.filter((c) => c.id !== id)+ if (this.selection?.computerId === id) this.selection = null+ this.changed()+ }++ store(id: string) {+ return this.stores.get(id) ?? null+ }++ /** Every computer's visible bots, pinned first, then most recent activity. */+ get roster(): RosterItem[] {+ const items: RosterItem[] = []+ for (const computer of this.computers) {+ const store = this.stores.get(computer.id)+ if (!store) continue+ for (const bot of store.roster) items.push({ ref: { computerId: computer.id, botId: bot.id }, bot, computer: store.computer, store })+ }+ return items.sort((a, b) => (a.bot.pinned !== b.bot.pinned ? (a.bot.pinned ? -1 : 1) : b.bot.lastAt - a.bot.lastAt))+ }++ select(ref: BotRef | null) {+ this.selection = ref+ this.changed()+ }++ get selectedStore() {+ return this.selection ? this.store(this.selection.computerId) : null+ }++ /** Computers this app manages over loopback (itself and SSH tunnels): they take approvals and pairing. */+ get managedStores() {+ return [...this.stores.values()].filter((s) => s.isLoopback)+ }++ get approvals(): Approval[] {+ return this.managedStores.flatMap((store) =>+ store.accessRequests.map((request) => ({ id: `${store.computer.id}/${request.requestId}`, store, request })),+ )+ }++ /** The approval to show now: the first one not put off, or put off before its code arrived. */+ get currentApproval(): Approval | null {+ return this.approvals.find((a) => !this.deferred.has(deferKey(a))) ?? null+ }++ deferApproval(a: Approval) {+ this.deferred.add(deferKey(a))+ this.changed()+ }++ /** Brings every waiting request back (the menu's Review). */+ reviewApprovals() {+ this.deferred.clear()+ this.changed()+ }++ async decide(a: Approval, approve: boolean) {+ const client = await a.store.ready()+ await client.call('decideAccessRequest', { requestId: a.request.requestId, approve }, 30_000)+ }++ get needsAttention() {+ return this.roster.some((i) => i.bot.status === 'needsInput') || this.approvals.length > 0+ }++ get working() {+ return this.roster.filter((i) => i.bot.status === 'working' || i.bot.status === 'needsInput').length+ }++ get errorMessage(): string | null {+ if (this.lastError) return this.lastError+ for (const store of this.stores.values()) if (store.lastError) return store.lastError+ return null+ }++ clearErrors() {+ this.lastError = null+ for (const store of this.stores.values()) store.lastError = null+ this.changed()+ }+}++const deferKey = (a: Approval) => `${a.id}/${a.request.code ?? ''}`diff --git a/apps/desktop/src/renderer/store/bot-store.ts b/apps/desktop/src/renderer/store/bot-store.tsnew file mode 100644index 00000000..d1739e69--- /dev/null+++ b/apps/desktop/src/renderer/store/bot-store.ts@@ -0,0 +1,907 @@+import { checkVersions, isBelow, type VersionMismatch } from '@shared/compat'+import {+ isChat,+ isWorking,+ needsInput,+ type AccessRequest,+ type Bot,+ type BotDraft,+ type CloudStatus,+ type Computer,+ type DirListing,+ type Entry,+ type GroupDraft,+ type Hello,+ type ScreenState,+ type Usage,+} from '@shared/models'+import { HostClient, HostError, type HostEvent, type HostRoute, type HostTransport } from '../client/host-client'+import { Observable } from '../lib/observable'++export type Connection =+ | { kind: 'unpaired' }+ | { kind: 'connecting' }+ | { kind: 'online' }+ | { kind: 'computerOffline'; lastSeen: number | null }+ | { kind: 'offline'; message: string }+ | { kind: 'unauthorized'; message: string }++/** A file picked in the composer, sent with the next message. */+export interface OutgoingFile {+ id: string+ name: string+ data: Uint8Array+}++/** Anything larger is refused by the computer. */+export const MAX_FILE_SIZE = 100 * 1024 * 1024++export const QUICK_REACTIONS = ['👍', '❤️', '😂', '🎉', '👀', '✅']++const DROP_GRACE = 5000+const INITIAL_GRACE = 1000+const ACTION_PATIENCE = 20_000+const MISMATCH_RECHECK = 30_000++const sleep = (ms: number) => new Promise((r) => setTimeout(r, ms))+const same = (a: Connection, b: Connection) => a.kind === b.kind && JSON.stringify(a) === JSON.stringify(b)++/**+ * One computer's mirror (bots, transcripts), kept by one events stream (catch-up since+ * `rev`, then live). Port of kit's `BotStore`.+ */+export class BotStore extends Observable {+ computer: Computer+ connection: Connection = { kind: 'connecting' }+ hostRoute: HostRoute | null = null+ client: HostClient | null = null+ hello: Hello | null = null+ hostVersion: { version: string; minApp?: string | null } | null = null+ bots = new Map<string, Bot>()+ entries = new Map<string, Entry[]>()+ usage: Usage = { providers: [] }+ screen: ScreenState | null = null+ accessRequests: AccessRequest[] = []+ cloud: CloudStatus | null = null+ historyComplete = new Set<string>()+ routineDrafts = new Map<string, string>()+ lastError: string | null = null+ /** A kit view selected a bot on this store (new chat, editor); the account picks it up. */+ selection: string | null = null+ /** Permission cards whose answer is on its way, with the chosen option. */+ answering = new Map<string, string>()++ onRosterChanged: (() => void) | null = null+ onComputerChanged: ((c: Computer) => void) | null = null++ private heldDrop: Connection | null = null+ private dropTimer: ReturnType<typeof setTimeout> | null = null+ private waiting = 0+ private rev = 0+ private hostId: string | null = null+ private retired = false+ private closeEvents: (() => void) | null = null+ private eventsLoop = 0+ private rewound = false+ private unreadable = false+ private saveTimer: ReturnType<typeof setTimeout> | null = null+ private outgoingFiles = new Map<string, OutgoingFile[]>()+ private readingViews = new Map<string, { botId: string; thread: string | null }>()+ private cacheStamp: string | null = null++ constructor(+ computer: Computer,+ readonly isLoopback: boolean,+ private makeTransport: () => HostTransport,+ private clientKind = 'mac',+ private appVersion = window.codync.appVersion,+ readonly contextId = 'local',+ ) {+ super()+ this.computer = computer+ this.loadCache()+ }++ // MARK: derived++ get isOffline() {+ const k = this.connection.kind+ return k === 'computerOffline' || k === 'offline' || k === 'unauthorized'+ }++ /** Loopback has no relay mailbox. */+ get canQueue() {+ return false+ }++ /** What headers show: a reconnect the grace period keeps quiet reads "Connecting…" while an action waits. */+ get shownConnection(): Connection {+ return this.waiting > 0 && this.connection.kind === 'online' ? { kind: 'connecting' } : this.connection+ }++ get hostName() {+ return this.hello?.name ?? this.computer.name+ }++ get mismatch(): VersionMismatch | null {+ if (!this.hostVersion) return null+ const found = checkVersions(this.appVersion, this.hostVersion.version, this.hostVersion.minApp)+ if (found) return found+ if (this.unreadable && isBelow(this.appVersion, this.hostVersion.version)) return { kind: 'updateApp', minimum: this.hostVersion.version }+ return null+ }++ /** Roster order: pinned first, then most recent activity. */+ get roster(): Bot[] {+ return [...this.bots.values()].filter((b) => !b.hidden).sort((a, b) => (a.pinned !== b.pinned ? (a.pinned ? -1 : 1) : b.lastAt - a.lastAt))+ }++ get hiddenBots(): Bot[] {+ return [...this.bots.values()].filter((b) => b.hidden).sort((a, b) => a.name.localeCompare(b.name))+ }++ backendName(id: string) {+ return this.hello?.backends.find((b) => b.id === id)?.name ?? builtInBackendName(id)+ }++ /** A bot's or group's main chat (thread replies are left out). */+ chat(botId: string) {+ return (this.entries.get(botId) ?? []).filter((e) => !e.threadId)+ }++ allEntries(botId: string) {+ return this.entries.get(botId) ?? []+ }++ replies(botId: string, root: string) {+ return (this.entries.get(botId) ?? []).filter((e) => e.threadId === root)+ }++ members(group: Bot) {+ return group.members.map((id) => this.bots.get(id)).filter((b): b is Bot => !!b)+ }++ authorName(id: string | null | undefined) {+ return (id && this.bots.get(id)?.name) || 'A deleted bot'+ }++ /** The latest thinking of the turn running in a chat (`thread` null) or thread. */+ currentThinking(botId: string, thread: string | null) {+ const list = this.allEntries(botId)+ for (let i = list.length - 1; i >= 0; i--) {+ const e = list[i]!+ if ((e.threadId ?? null) !== thread) continue+ if (e.kind === 'user' || (e.kind === 'agent' && e.data.final === true)) return null+ if (e.kind === 'thought' && e.data.text) return e.data.text+ }+ return null+ }++ get connectionLabel() {+ switch (this.shownConnection.kind) {+ case 'online':+ return this.mismatch ? 'Needs update' : 'Connected'+ case 'connecting':+ return 'Connecting…'+ case 'computerOffline':+ case 'offline':+ return 'Offline'+ case 'unauthorized':+ return 'No access'+ case 'unpaired':+ return 'Not paired'+ }+ }++ updateComputer(change: (c: Computer) => Computer) {+ const next = change({ ...this.computer })+ if (JSON.stringify(next) === JSON.stringify(this.computer)) return+ this.computer = next+ this.onComputerChanged?.(next)+ this.changed()+ }++ // MARK: lifecycle++ retire() {+ this.retired = true+ this.stopTransport()+ if (this.saveTimer) clearTimeout(this.saveTimer)+ this.onRosterChanged = null+ this.onComputerChanged = null+ this.client = null+ this.selection = null+ }++ start() {+ this.restartStream()+ }++ restartStream() {+ if (this.retired) return+ this.stopTransport()+ if (this.connection.kind !== 'online') this.setConnection({ kind: 'connecting' })+ const transport = this.makeTransport()+ this.client = new HostClient(transport)+ this.hostRoute = this.isLoopback ? 'loopback' : null+ this.runEvents(this.client)+ }++ private stopTransport() {+ this.eventsLoop+++ this.closeEvents?.()+ this.closeEvents = null+ if (this.dropTimer) clearTimeout(this.dropTimer)+ this.dropTimer = null+ this.heldDrop = null+ }++ /** Give initial connection failures a second to recover and online drops five seconds. */+ private setConnection(next: Connection) {+ const transient = next.kind === 'connecting' || next.kind === 'offline' || next.kind === 'computerOffline'+ const recovering = next.kind === 'online' && (this.connection.kind !== 'online' || this.heldDrop !== null)+ const initialFailure = this.connection.kind === 'connecting' && transient && next.kind !== 'connecting'+ if (transient && (this.connection.kind === 'online' || initialFailure)) {+ const grace = this.connection.kind === 'online' ? DROP_GRACE : INITIAL_GRACE+ this.heldDrop = next+ if (!this.dropTimer) {+ this.dropTimer = setTimeout(() => {+ this.dropTimer = null+ const held = this.heldDrop+ this.heldDrop = null+ if (held && !this.retired) {+ this.connection = held+ this.changed()+ }+ }, grace)+ }+ return+ }+ if (this.dropTimer) clearTimeout(this.dropTimer)+ this.dropTimer = null+ this.heldDrop = null+ if (!same(next, this.connection)) {+ this.connection = next+ this.changed()+ }+ if (recovering) for (const scope of this.readingViews.values()) this.markRead(scope.botId, scope.thread)+ }++ /** Events (catch-up since `rev`, then live) for as long as the store lives. */+ private runEvents(client: HostClient) {+ const loop = ++this.eventsLoop+ let backoff = 1000+ const alive = () => loop === this.eventsLoop && !this.retired+ const attempt = async () => {+ if (!alive()) return+ try {+ await this.refreshHello(client)+ if (!alive()) return+ if (this.mismatch) {+ this.setConnection({ kind: 'online' })+ await sleep(MISMATCH_RECHECK)+ return void attempt()+ }+ if (this.isLoopback) {+ try {+ this.accessRequests = (await client.call<{ requests: AccessRequest[] }>('accessRequests')).requests+ } catch {}+ try {+ this.cloud = await client.call<CloudStatus>('cloudStatus')+ } catch {}+ this.changed()+ }+ if (!alive()) return+ await new Promise<void>((resolve, reject) => {+ this.closeEvents = client.events(+ this.rev,+ this.clientKind,+ (event) => {+ if (!alive()) return+ this.setConnection({ kind: 'online' })+ backoff = 1000+ this.apply(event)+ },+ (error) => (error ? reject(error) : resolve()),+ )+ })+ } catch (error) {+ if (!alive()) return+ const message = error instanceof Error ? error.message : String(error)+ this.setConnection({ kind: 'offline', message })+ if (error instanceof HostError && error.status === 401) return+ }+ if (!alive()) return+ await sleep(backoff)+ backoff = Math.min(backoff * 2, 20_000)+ void attempt()+ }+ void attempt()+ }++ /** Resubscribes from the current `rev` on the same link. */+ private restartEvents() {+ if (!this.client) return+ this.closeEvents?.()+ this.runEvents(this.client)+ }++ private async refreshHello(client: HostClient) {+ const h = await client.hello()+ if (this.retired) return+ this.hello = h+ this.noteHostVersion({ version: h.version, minApp: h.minApp })+ if (this.isLoopback) this.updateComputer((c) => ({ ...c, name: h.name, device: h.device ?? c.device }))+ this.changed()+ }++ private noteHostVersion(next: { version: string; minApp?: string | null }) {+ const cached = this.cacheStamp !== null && this.cacheStamp !== `${this.appVersion}/${next.version}`+ if (cached || (this.hostVersion && this.hostVersion.version !== next.version)) {+ // A different host version or app build: data may carry new fields, so fetch it all again.+ this.rev = 0+ this.rewound = false+ this.unreadable = false+ }+ this.cacheStamp = null+ this.hostVersion = next+ }++ private apply(event: HostEvent) {+ switch (event.type) {+ case 'hello':+ if (this.hostId && this.hostId !== event.hostId) this.resetMirror()+ this.hostId = event.hostId+ this.usage = event.usage+ this.screen = event.screen+ if (event.rev < this.rev) this.rev = 0+ break+ case 'bot':+ this.bots.set(event.bot.id, event.bot)+ this.bump(event.bot.rev)+ this.onRosterChanged?.()+ if (event.bot.unread > 0) this.acknowledgeVisible(event.bot.id)+ break+ case 'botDeleted':+ this.bots.delete(event.id)+ this.entries.delete(event.id)+ this.bump(event.rev)+ if (this.selection === event.id) this.selection = null+ this.onRosterChanged?.()+ break+ case 'entry':+ this.upsert(event.entry)+ this.bump(event.entry.rev)+ this.acknowledgeVisible(event.entry.botId, event.entry)+ break+ case 'usage':+ this.usage = event.usage+ break+ case 'screen':+ this.screen = event.screen+ break+ case 'accessRequests':+ this.accessRequests = event.requests+ break+ case 'cloud':+ this.cloud = event.cloud+ break+ case 'resync':+ this.restartEvents()+ break+ case 'undecodable':+ // Never skip past data we couldn't read: rewind once and fetch everything again.+ if (!this.rewound) {+ this.rewound = true+ this.rev = 0+ this.restartEvents()+ } else if (!this.unreadable) {+ this.unreadable = true+ if (this.mismatch) this.restartEvents()+ }+ break+ }+ this.changed()+ this.scheduleSave()+ }++ private resetMirror() {+ this.bots = new Map()+ const kept = new Map<string, Entry[]>()+ for (const [id, list] of this.entries) {+ const local = list.filter((e) => e.id.startsWith('local-'))+ if (local.length) kept.set(id, local)+ }+ this.entries = kept+ this.selection = null+ this.onRosterChanged?.()+ this.rev = 0+ this.hostId = null+ this.historyComplete = new Set()+ this.screen = null+ this.saveCache()+ }++ private bump(r: number) {+ this.rev = Math.max(this.rev, r)+ }++ private upsert(e: Entry) {+ const list = [...(this.entries.get(e.botId) ?? [])]+ const i = list.findIndex((x) => x.id === e.id)+ if (i >= 0) {+ // A late API response mustn't undo a newer SSE update.+ if (e.rev < list[i]!.rev) return+ list[i] = e+ } else {+ // Replace the optimistic copy of a message we sent.+ const nonce = e.kind === 'user' ? e.data.clientNonce : undefined+ const filtered = nonce ? list.filter((x) => x.id !== `local-${nonce}`) : list+ const last = filtered[filtered.length - 1]+ if (last && last.seq > e.seq && e.seq > 0) {+ const at = filtered.findIndex((x) => x.seq > e.seq)+ filtered.splice(at < 0 ? filtered.length : at, 0, e)+ } else {+ filtered.push(e)+ }+ this.entries.set(e.botId, filtered)+ return+ }+ this.entries.set(e.botId, list)+ }++ // MARK: actions++ private get live(): HostClient | null {+ return this.connection.kind === 'online' && !this.heldDrop && !this.retired ? this.client : null+ }++ /** The client once the link is up. A reconnect in progress is waited out (headers show it). */+ async ready(deadline = Date.now() + ACTION_PATIENCE): Promise<HostClient> {+ let counted = false+ let retried = false+ try {+ while (!this.retired) {+ if (this.live) return this.live+ switch (this.connection.kind) {+ case 'online':+ case 'connecting':+ break+ case 'offline':+ if (!retried) {+ retried = true+ this.restartStream()+ break+ }+ throw HostError.unreachable()+ case 'unpaired':+ throw HostError.unreachable()+ case 'computerOffline':+ throw new HostError(0, 'Your computer is offline.')+ case 'unauthorized':+ throw new HostError(401, this.connection.message)+ }+ if (Date.now() >= deadline) break+ if (!counted) {+ counted = true+ this.waiting+++ this.changed()+ }+ await sleep(100)+ }+ throw HostError.unreachable()+ } finally {+ if (counted) {+ this.waiting--+ this.changed()+ }+ }+ }++ /** Runs `op` once the link is up; with `replay`, a call the link dropped under is tried again. */+ private async withLink<T>(op: (c: HostClient) => Promise<T>, replay = false): Promise<T> {+ const deadline = Date.now() + ACTION_PATIENCE+ for (;;) {+ const client = await this.ready(deadline)+ try {+ return await op(client)+ } catch (error) {+ if (replay && error instanceof HostError && error.isTransient && Date.now() < deadline) {+ await sleep(500)+ continue+ }+ throw error+ }+ }+ }++ private perform(op: (c: HostClient) => Promise<unknown>, replay = false) {+ void this.withLink(op, replay).catch((error: unknown) => {+ this.lastError = error instanceof Error ? error.message : String(error)+ this.changed()+ })+ }++ send(text: string, botId: string, thread: string | null = null, files: OutgoingFile[] = [], nonce: string = crypto.randomUUID()) {+ const trimmed = text.trim()+ if ((!trimmed && !files.length) || this.retired) return+ const data: Entry['data'] = { text: trimmed, status: 'sending', clientNonce: nonce }+ if (files.length) {+ data.attachments = files.map((f) => ({ id: f.id, name: f.name, size: f.data.length }))+ this.outgoingFiles.set(nonce, files)+ }+ this.upsert({+ id: `local-${nonce}`, seq: Number.MAX_SAFE_INTEGER, botId, threadId: thread, rev: 0, kind: 'user',+ turn: 0, data, createdAt: Date.now(), updatedAt: 0,+ })+ this.changed()+ void (async () => {+ try {+ // Safe to repeat: the computer skips a nonce it already has.+ const e = await this.withLink(async (client) => {+ let ids: string[] | null = null+ const pending = this.outgoingFiles.get(nonce)+ if (pending) {+ ids = []+ for (const file of pending) {+ const id = crypto.randomUUID()+ await client.upload(botId, id, file.name, file.data)+ cacheAttachment(id, file.data)+ ids.push(id)+ }+ }+ return client.send(botId, trimmed, nonce, thread, ids)+ }, true)+ this.outgoingFiles.delete(nonce)+ this.upsert(e)+ this.changed()+ } catch (error) {+ if (this.outgoingFiles.has(nonce)) this.lastError = `Couldn't send the files: ${error instanceof Error ? error.message : error}`+ this.markLocal(nonce, botId, 'failed')+ }+ })()+ }++ retry(entry: Entry) {+ const files = (entry.data.clientNonce && this.outgoingFiles.get(entry.data.clientNonce)) || []+ const text = entry.data.text ?? ''+ if (!text && !files.length) return+ this.entries.set(entry.botId, this.allEntries(entry.botId).filter((e) => e.id !== entry.id))+ this.send(text, entry.botId, entry.threadId ?? null, files, entry.data.clientNonce ?? crypto.randomUUID())+ }++ discard(entry: Entry) {+ if (entry.data.clientNonce) this.outgoingFiles.delete(entry.data.clientNonce)+ this.entries.set(entry.botId, this.allEntries(entry.botId).filter((e) => e.id !== entry.id))+ this.changed()+ this.scheduleSave()+ }++ cancelQueued(_entry: Entry) {+ // Loopback never queues in a relay mailbox.+ }++ private markLocal(nonce: string, botId: string, status: string) {+ const list = this.entries.get(botId)+ const i = list?.findIndex((e) => e.id === `local-${nonce}`) ?? -1+ if (!list || i < 0) return+ const next = [...list]+ next[i] = { ...next[i]!, data: { ...next[i]!.data, status } }+ this.entries.set(botId, next)+ this.changed()+ this.scheduleSave()+ }++ /** A sent file's bytes: cached after the first fetch (sent files never change). */+ async attachmentData(fileId: string, botId: string): Promise<Uint8Array | null> {+ const cached = attachmentCache.get(fileId)+ if (cached) return cached+ const client = this.live+ if (!client) return null+ try {+ const data = await client.readUpload(botId, fileId)+ cacheAttachment(fileId, data)+ return data+ } catch {+ return null+ }+ }++ stop(botId: string) {+ this.perform((c) => c.call('stop', { botId }), true)+ }++ newSession(botId: string) {+ this.perform((c) => c.call('newSession', { botId }))+ }++ logCall(botId: string, seconds: number) {+ this.perform((c) => c.call('logCall', { botId, seconds }))+ }++ screenTakeover(on: boolean) {+ this.perform(async (c) => {+ this.screen = await c.call<ScreenState>('screenTakeover', { on })+ this.changed()+ }, true)+ }++ /** Only the computer itself may turn remote screen on. */+ async setScreenEnabled(on: boolean) {+ this.screen = await (await this.ready()).call<ScreenState>('setScreenEnabled', { enabled: on })+ this.changed()+ }++ /** Toggles the user's reaction; shown at once, then replaced by the host's copy. */+ react(entry: Entry, emoji: string) {+ const list = this.entries.get(entry.botId)+ const i = list?.findIndex((e) => e.id === entry.id) ?? -1+ if (!list || i < 0) return+ const reactions = [...(list[i]!.data.reactions ?? [])]+ const at = reactions.indexOf(emoji)+ if (at >= 0) reactions.splice(at, 1)+ else reactions.push(emoji)+ const next = [...list]+ next[i] = { ...next[i]!, data: { ...next[i]!.data, reactions } }+ this.entries.set(entry.botId, next)+ this.changed()+ this.perform(async (c) => {+ const res = await c.call<{ entry: Entry }>('react', { entryId: entry.id, emoji })+ this.upsert(res.entry)+ this.changed()+ })+ }++ respond(entry: Entry, option: string | null) {+ if (this.answering.has(entry.id)) return+ this.answering.set(entry.id, option ?? '')+ this.changed()+ void (async () => {+ try {+ await this.withLink((c) => c.call('respondPermission', { entryId: entry.id, optionId: option }), true)+ // The card's own update follows on the events stream; hold the spinner until then.+ await sleep(2000)+ } catch (error) {+ this.lastError = error instanceof Error ? error.message : String(error)+ }+ this.answering.delete(entry.id)+ this.changed()+ })()+ }++ /** Views register while visible. Multiple windows may read the same conversation. */+ setReading(token: string, botId: string, thread: string | null, active: boolean) {+ if (active) {+ this.readingViews.set(token, { botId, thread })+ if (this.connection.kind === 'online') this.markRead(botId, thread)+ } else {+ this.readingViews.delete(token)+ }+ }++ private acknowledgeVisible(botId: string, entry?: Entry) {+ if (this.connection.kind !== 'online') return+ const seen = new Set<string>()+ for (const scope of this.readingViews.values()) {+ if (scope.botId !== botId) continue+ if (entry && (!isChat(entry) || (entry.threadId ?? null) !== scope.thread)) continue+ const key = `${scope.botId}/${scope.thread}`+ if (seen.has(key)) continue+ seen.add(key)+ this.markRead(botId, scope.thread)+ }+ }++ markRead(botId: string, thread: string | null = null) {+ void (async () => {+ if (!this.live) await sleep(INITIAL_GRACE)+ const client = this.live+ if (!client) return+ try {+ await client.call('markRead', { botId, threadId: thread, all: false })+ } catch {+ // The visible scope is acknowledged again when the link recovers.+ }+ })()+ }++ /** The roster's "Mark as read": the chat and all its threads. */+ markAllRead(botId: string) {+ const bot = this.bots.get(botId)+ if (!bot || bot.unread <= 0) return+ this.bots.set(botId, { ...bot, unread: 0 })+ this.changed()+ this.perform((c) => c.call('markRead', { botId, threadId: null, all: true }), true)+ }++ private patchBot(bot: Bot, change: Partial<BotDraft>) {+ const current = this.bots.get(bot.id)+ if (current) this.bots.set(bot.id, { ...current, ...change } as Bot)+ this.changed()+ this.perform((c) => c.call('updateBot', { ...updatePayload(bot), ...change }), true)+ }++ setPinned(bot: Bot, pinned: boolean) {+ this.patchBot(bot, { pinned })+ }++ setHidden(bot: Bot, hidden: boolean) {+ this.patchBot(bot, { hidden })+ }++ delete(bot: Bot) {+ this.bots.delete(bot.id)+ this.entries.delete(bot.id)+ this.onRosterChanged?.()+ this.changed()+ this.perform((c) => c.call('deleteBot', { botId: bot.id }), true)+ }++ /** Creates a group chat (or opens the one these bots already share) and selects it. */+ async createGroup(name: string, description: string, members: string[]) {+ const draft: GroupDraft = { kind: 'group', name, description, members }+ const res = await (await this.ready()).call<{ bot: Bot }>('createBot', draft)+ this.bots.set(res.bot.id, res.bot)+ this.selection = res.bot.id+ this.onRosterChanged?.()+ this.changed()+ return res.bot+ }++ async updateGroup(draft: GroupDraft) {+ const res = await (await this.ready()).call<{ bot: Bot }>('updateBot', draft)+ this.bots.set(res.bot.id, res.bot)+ this.changed()+ }++ async loadThread(botId: string, root: string) {+ if (!this.client) return+ try {+ for (const e of await this.client.thread(botId, root)) this.upsert(e)+ this.changed()+ } catch {}+ }++ async save(draft: BotDraft) {+ const client = await this.ready()+ const res = draft.id+ ? await client.call<{ bot: Bot }>('updateBot', { ...draft, model: draft.model ?? null })+ : await client.call<{ bot: Bot }>('createBot', draft)+ this.bots.set(res.bot.id, res.bot)+ this.onRosterChanged?.()+ this.changed()+ return res.bot+ }++ async refreshBackends() {+ if (!this.client || !this.hello) return+ try {+ const res = await this.client.call<{ backends: Hello['backends'] }>('refreshBackends', {}, 60_000)+ this.hello = { ...this.hello, backends: res.backends }+ this.changed()+ } catch {}+ }++ async listDirs(path: string | null) {+ return (await this.ready()).call<DirListing>('listDirs', { path })+ }++ async refreshUsage() {+ if (this.retired || !this.client) return+ try {+ this.usage = await this.client.call<Usage>('usage', { refresh: true })+ this.changed()+ } catch {}+ }++ async loadOlder(botId: string) {+ if (!this.client || this.historyComplete.has(botId)) return+ const first = this.chat(botId).find((e) => e.seq > 0 && e.seq !== Number.MAX_SAFE_INTEGER)?.seq ?? Number.MAX_SAFE_INTEGER+ try {+ const older = await this.client.history(botId, first, 100)+ if (older.length < 100) this.historyComplete.add(botId)+ for (const e of older) this.upsert(e)+ this.changed()+ } catch {}+ }++ setError(message: string | null) {+ this.lastError = message+ this.changed()+ }++ setSelection(id: string | null) {+ this.selection = id+ this.changed()+ }++ consumeRoutineDraft(botId: string) {+ const value = this.routineDrafts.get(botId)+ if (value !== undefined) {+ this.routineDrafts.delete(botId)+ this.changed()+ }+ return value+ }++ setRoutineDraft(botId: string, text: string) {+ this.routineDrafts.set(botId, text)+ this.changed()+ }++ // MARK: cache (instant launch, offline reading)++ private get cacheKey() {+ return `codync-mirror-${this.contextId}-${this.computer.id}`+ }++ private loadCache() {+ try {+ const raw = localStorage.getItem(this.cacheKey)+ if (!raw) return+ const cache = JSON.parse(raw) as { stamp?: string; hostId?: string; rev: number; bots: Bot[]; entries: Entry[] }+ this.cacheStamp = cache.stamp ?? ''+ this.hostId = cache.hostId ?? null+ this.rev = cache.rev+ this.bots = new Map(cache.bots.map((b) => [b.id, b]))+ const grouped = new Map<string, Entry[]>()+ for (const e of cache.entries) grouped.set(e.botId, [...(grouped.get(e.botId) ?? []), e])+ this.entries = grouped+ } catch {}+ }++ private scheduleSave() {+ if (this.retired) return+ if (this.saveTimer) clearTimeout(this.saveTimer)+ this.saveTimer = setTimeout(() => this.saveCache(), 2000)+ }++ saveCache() {+ if (this.retired) return+ // Keep the newest 200 entries per bot; older ones page in from the host.+ const kept: Entry[] = []+ for (const list of this.entries.values()) {+ kept.push(...list.filter((e) => !e.id.startsWith('local-')).slice(-200))+ kept.push(...list.filter((e) => e.id.startsWith('local-') && e.data.status === 'failed'))+ }+ const cache = { stamp: `${this.appVersion}/${this.hello?.version ?? ''}`, hostId: this.hostId, rev: this.rev, bots: [...this.bots.values()], entries: kept }+ try {+ localStorage.setItem(this.cacheKey, JSON.stringify(cache))+ } catch {}+ }+}++/** A full editor update must explicitly clear a previous model override. */+function updatePayload(bot: Bot): BotDraft {+ return {+ id: bot.id, name: bot.name, description: bot.description, avatarColor: bot.avatarColor, avatarShape: bot.avatarShape,+ backend: bot.backend, command: bot.command ?? null, cwd: bot.managedWorkspace ? '' : bot.cwd, permission: bot.permission,+ model: bot.model ?? null, pinned: bot.pinned, hidden: bot.hidden, notify: bot.notify ?? null,+ connectors: bot.connectors, skills: bot.skills, computer: bot.computer,+ }+}++export function builtInBackendName(id: string) {+ switch (id) {+ case 'claude':+ return 'Claude Code'+ case 'codex':+ return 'Codex'+ case 'opencode':+ return 'OpenCode'+ case 'grok':+ return 'Grok Build'+ case 'gemini':+ return 'Gemini CLI'+ default:+ return 'Custom agent'+ }+}++// ponytail: in-memory attachment cache; a disk cache (main process) if relaunches refetching hurts.+const attachmentCache = new Map<string, Uint8Array>()+function cacheAttachment(id: string, data: Uint8Array) {+ attachmentCache.set(id, data)+}++export { isWorking, needsInput }diff --git a/apps/desktop/src/renderer/store/context.ts b/apps/desktop/src/renderer/store/context.tsnew file mode 100644index 00000000..b1270054--- /dev/null+++ b/apps/desktop/src/renderer/store/context.ts@@ -0,0 +1,29 @@+import { createContext, useContext } from 'react'+import { useModel } from '../lib/observable'+import type { AppModel } from './app-model'+import type { BotStore } from './bot-store'++export const AppContext = createContext<AppModel | null>(null)++/** The window's model, re-rendering on its changes. */+export function useApp(): AppModel {+ const app = useContext(AppContext)+ if (!app) throw new Error('AppContext missing')+ return useModel(app)+}++/** The store of the computer a view works on (kit's `@Environment(BotStore.self)`). */+export const StoreContext = createContext<BotStore | null>(null)++export function useStore(): BotStore {+ const store = useContext(StoreContext)+ if (!store) throw new Error('StoreContext missing')+ return useModel(store)+}++/** The store without following its changes: for rows that get their data as props. */+export function useStoreRef(): BotStore {+ const store = useContext(StoreContext)+ if (!store) throw new Error('StoreContext missing')+ return store+}diff --git a/apps/desktop/src/renderer/styles/theme.css b/apps/desktop/src/renderer/styles/theme.cssnew file mode 100644index 00000000..582e83ae--- /dev/null+++ b/apps/desktop/src/renderer/styles/theme.css@@ -0,0 +1,175 @@+/* Black and white: a pure black (or white) ground, grey bubbles, and color that comes only+ from the bots; amber marks "needs you" and red marks errors. (kit Palette) */+:root {+ color-scheme: light dark;+ --background: #ffffff;+ --surface: #f4f4f4;+ --bubble-agent: #f0f0f0;+ --bubble-user: #e2e2e2;+ --border: #e6e6e6;+ --text: #141414;+ --text-rgb: 20, 20, 20;+ --secondary: #6b6b6b;+ --tertiary: #9b9b9b;+ --accent-fill: #000000;+ --accent: #000000;+ --on-accent: #ffffff;+ --accent-dim: #d9d9d9;+ --danger: #c23a2b;+ --warning: #f0a030;+ --code-background: #f4f4f4;+ --added: #2e7d32;+ --removed: #c62828;+ /* Floating menus and account panel. */+ --panel: #fafafa;+ /* Grok's frosted floating surfaces (title pill, call bar). */+ --frosted: rgba(244, 244, 244, 0.82);++ /* The Mac text preference: conversation size / 12 pt scales the chrome too. */+ --scale: 1;+ --conversation: 12px;++ /* Grok Bot's motion. */+ --ease: cubic-bezier(0.25, 0.1, 0.25, 1);+ --hover: 0.12s var(--ease);+ --fade: 0.12s var(--ease);+ --press: 0.05s var(--ease);+ --morph: 0.2s cubic-bezier(0.22, 1, 0.36, 1);+ /* Critically damped 0.3 s spring. */+ --spring: linear(0, 0.0712, 0.2244, 0.3992, 0.5638, 0.7018, 0.8077, 0.8834, 0.9342, 0.9663, 0.9853, 0.9958, 1.0009, 1.0028, 1.0029, 1);+ --layout: 0.3s var(--spring);+ --conversation-motion: 0.42s var(--spring);++ --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Segoe UI', system-ui, sans-serif;+ --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, 'DejaVu Sans Mono', monospace;+}++@media (prefers-color-scheme: dark) {+ :root {+ --background: #0a0a0a;+ --surface: #141414;+ --bubble-agent: #1c1c1c;+ --bubble-user: #3a3a3a;+ --border: #262626;+ --text: #f2f2f2;+ --text-rgb: 242, 242, 242;+ --secondary: #9a9a9a;+ --tertiary: #6e6e6e;+ --accent-fill: #ffffff;+ --accent: #ffffff;+ --on-accent: #000000;+ --accent-dim: #333333;+ --danger: #f0a7a7;+ --code-background: #111111;+ --added: #8fd18b;+ --removed: #f0a7a7;+ --panel: #1b1b1b;+ --frosted: rgba(35, 35, 35, 0.82);+ }+}++@media (prefers-reduced-motion: reduce) {+ :root {+ --hover: 0s;+ --fade: 0s;+ --press: 0s;+ --morph: 0s;+ --layout: 0s;+ --conversation-motion: 0s;+ }+}++*,+*::before,+*::after {+ box-sizing: border-box;+}++html,+body,+#root {+ margin: 0;+ height: 100%;+ overflow: hidden;+}++body {+ background: var(--background);+ color: var(--text);+ font-family: var(--font);+ /* macOS .body */+ font-size: calc(13px * var(--scale));+ line-height: normal;+ -webkit-font-smoothing: antialiased;+ user-select: none;+ cursor: default;+}++/* No scroll bars anywhere. */+::-webkit-scrollbar {+ display: none;+}+* {+ scrollbar-width: none;+}++button {+ font: inherit;+ color: inherit;+ background: none;+ border: none;+ padding: 0;+ margin: 0;+ cursor: default;+ text-align: inherit;+}+button:focus-visible {+ outline: none;+}+button:disabled {+ cursor: default;+}++input,+textarea {+ font: inherit;+ color: inherit;+ background: transparent;+ border: none;+ outline: none;+ padding: 0;+ margin: 0;+ resize: none;+}+input::placeholder,+textarea::placeholder {+ color: var(--tertiary);+}++.selectable {+ user-select: text;+ cursor: text;+}++::selection {+ background: rgba(var(--text-rgb), 0.2);+}++a {+ color: inherit;+}++/* Hover/press feedback shared by plain buttons (PressScale). */+.press {+ transition: transform var(--press);+}+.press:active:not(:disabled) {+ transform: scale(0.98);+}++.drag {+ -webkit-app-region: drag;+}+.no-drag {+ -webkit-app-region: no-drag;+}diff --git a/apps/desktop/src/renderer/views/AccountWelcomeView.tsx b/apps/desktop/src/renderer/views/AccountWelcomeView.tsxnew file mode 100644index 00000000..f2d80290--- /dev/null+++ b/apps/desktop/src/renderer/views/AccountWelcomeView.tsx@@ -0,0 +1,168 @@+import { useEffect, useState, type CSSProperties } from 'react'+import { CharacterAvatar, type Mood } from '../components/Avatar'+import { Button, Spinner } from '../components/Controls'+import { Icon } from '../components/Icon'+import { font } from '../lib/fonts'+import { useReduceMotion } from '../lib/theme'+import { useAccount } from '../store/account'+import googleLogo from '../assets/google.svg'++const deviceName = window.codync.platform === 'darwin' ? 'Mac' : 'computer'++/** First-run account choice. A restored session skips this screen as soon as it is back. */+export function AccountWelcomeView({ onContinue }: { onContinue: () => void }) {+ const account = useAccount()+ const reduce = useReduceMotion()+ const [beat, setBeat] = useState(reduce ? 4 : 0)++ useEffect(() => {+ if (account.isSignedIn) onContinue()+ }, [account.isSignedIn, onContinue])++ useEffect(() => {+ if (reduce) return setBeat(4)+ const timers = [150, 430, 710, 990].map((at, i) => setTimeout(() => setBeat(i + 1), at))+ return () => timers.forEach(clearTimeout)+ }, [reduce])++ if (!account.isReady) {+ // Keep first-run sign-in choices behind the persisted-session restore on launch.+ return (+ <div style={{ height: '100%', display: 'flex', flexDirection: 'column', alignItems: 'center', justifyContent: 'center', gap: 14 }}>+ <Spinner size={24} />+ <div style={{ ...font('callout'), color: 'var(--secondary)' }}>Checking for a saved account…</div>+ <button style={{ color: 'var(--secondary)' }} onClick={onContinue}>+ Continue on this {deviceName}+ </button>+ </div>+ )+ }++ const rise = (shown: boolean): CSSProperties => ({+ opacity: shown ? 1 : 0,+ transform: shown ? 'none' : 'translateY(14px)',+ transition: 'opacity 0.6s cubic-bezier(0.34, 1.3, 0.64, 1), transform 0.6s cubic-bezier(0.34, 1.3, 0.64, 1)',+ })++ return (+ <div style={{ height: '100%', overflowY: 'auto', background: 'var(--background)' }}>+ <div style={{ minHeight: '100%', maxWidth: 480, margin: '0 auto', display: 'flex', flexDirection: 'column', padding: '0 24px 12px' }}>+ <div style={{ flex: 1, minHeight: 24 }} />+ <WelcomeCrew shown={beat >= 1} />+ <div style={{ flex: 1, minHeight: 24 }} />+ <div style={{ paddingBottom: 24 }}>+ <WelcomeChatGlimpse shown={beat >= 2} />+ </div>+ <div style={{ display: 'flex', flexDirection: 'column', gap: 10, ...rise(beat >= 3) }}>+ <div style={{ fontSize: 34, fontWeight: 600, letterSpacing: -0.6, color: 'var(--text)', lineHeight: 1.15 }}>+ Your coding agents,+ <br />+ as teammates.+ </div>+ <div style={{ ...font('body'), color: 'var(--secondary)' }}>Give each one a name and a project. They work on your computer while you're away.</div>+ </div>+ <div style={{ flex: 1, minHeight: 32 }} />+ <div style={{ display: 'flex', flexDirection: 'column', gap: 10, ...rise(beat >= 4) }}>+ <Button onClick={onContinue} style={{ ...font('headline'), minHeight: 50, width: '100%' }}>+ Continue on this {deviceName}+ </Button>+ <Button onClick={() => void account.signIn('apple')} disabled={!account.isConfigured || account.isBusy} style={{ ...font('headline'), minHeight: 50, width: '100%' }}>+ {account.isBusy ? (+ <Spinner size={18} />+ ) : (+ <span style={{ display: 'flex', alignItems: 'center', gap: 10 }}>+ <Icon name="apple.logo" size={20} />+ Continue with Apple+ </span>+ )}+ </Button>+ <Button kind="secondary" onClick={() => void account.signIn('google')} disabled={!account.isConfigured || account.isBusy} style={{ ...font('headline'), minHeight: 50, width: '100%' }}>+ {account.isBusy ? (+ <Spinner size={18} />+ ) : (+ <span style={{ display: 'flex', alignItems: 'center', gap: 10 }}>+ <img src={googleLogo} alt="" width={20} height={20} />+ Continue with Google+ </span>+ )}+ </Button>+ {!account.isConfigured ? (+ <div style={{ ...font('footnote'), color: 'var(--tertiary)' }}>Sign-in isn't configured in this build. You can still use Codync on this {deviceName}.</div>+ ) : null}+ {account.errorMessage ? <div style={{ ...font('footnote'), color: 'var(--warning)' }}>{account.errorMessage}</div> : null}+ </div>+ </div>+ </div>+ )+}++const crew: { shape: string; color: string; size: number; x: number; y: number; mood: Mood }[] = [+ { shape: 'blob', color: 'blue', size: 92, x: 0, y: 0, mood: 'working' },+ { shape: 'squircle', color: 'orange', size: 64, x: -104, y: -34, mood: 'idle' },+ { shape: 'teardrop', color: 'violet', size: 58, x: 100, y: -46, mood: 'working' },+ { shape: 'hex', color: 'green', size: 48, x: -76, y: 64, mood: 'idle' },+ { shape: 'cloud', color: 'magenta', size: 52, x: 84, y: 58, mood: 'needsInput' },+]++/** The animated bot group from the first iPhone onboarding screen. */+function WelcomeCrew({ shown }: { shown: boolean }) {+ const reduce = useReduceMotion()+ const [t, setT] = useState(0)+ useEffect(() => {+ if (reduce || !shown) return+ let frame = 0+ const tick = (now: number) => {+ setT(now / 1000)+ frame = requestAnimationFrame(tick)+ }+ frame = requestAnimationFrame(tick)+ return () => cancelAnimationFrame(frame)+ }, [reduce, shown])+ return (+ <div aria-hidden style={{ position: 'relative', height: 170 }}>+ {crew.map((m, i) => (+ <div+ key={m.shape}+ style={{+ position: 'absolute', left: '50%', top: '50%',+ transform: `translate(calc(-50% + ${m.x}px), calc(-50% + ${m.y + (reduce ? 0 : Math.sin(t * 1.3 + i * 1.7) * 5)}px)) scale(${shown ? 1 : 0.3})`,+ opacity: shown ? 1 : 0,+ transition: `opacity 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) ${i * 0.07}s, scale 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) ${i * 0.07}s`,+ }}+ >+ <CharacterAvatar shape={m.shape} color={m.color} size={m.size} mood={m.mood} />+ </div>+ ))}+ </div>+ )+}++/** A short animated user and bot exchange, matching the iPhone onboarding preview. */+function WelcomeChatGlimpse({ shown }: { shown: boolean }) {+ const reduce = useReduceMotion()+ const [replied, setReplied] = useState(false)+ useEffect(() => {+ if (!shown) return+ const timer = setTimeout(() => setReplied(true), reduce ? 0 : 1600)+ return () => clearTimeout(timer)+ }, [shown, reduce])+ const rise: CSSProperties = { opacity: shown ? 1 : 0, transform: shown ? 'none' : 'translateY(14px)', transition: 'opacity 0.6s, transform 0.6s cubic-bezier(0.34, 1.3, 0.64, 1)' }+ return (+ <div style={{ display: 'flex', flexDirection: 'column', gap: 10 }}>+ <div style={{ display: 'flex', justifyContent: 'flex-end', ...rise }}>+ <span style={{ ...font('subheadline'), color: 'var(--text)', padding: '9px 14px', background: 'var(--bubble-user)', borderRadius: 18 }}>Fix the flaky login test</span>+ </div>+ <div style={{ display: 'flex', alignItems: 'flex-end', gap: 8, ...rise }}>+ <CharacterAvatar shape="blob" color="blue" size={28} mood={replied ? 'idle' : 'working'} />+ {replied ? (+ <span style={{ ...font('subheadline'), color: 'var(--text)', padding: '9px 14px', background: 'var(--bubble-agent)', borderRadius: 18, animation: 'bubble-in 0.45s cubic-bezier(0.34, 1.3, 0.64, 1) both', transformOrigin: 'bottom left' }}>+ Done. It raced the session refresh; tests pass on fix/login.+ </span>+ ) : (+ <span style={{ ...font('subheadline'), color: 'var(--tertiary)' }}>Working…</span>+ )}+ </div>+ <style>{'@keyframes bubble-in { from { opacity: 0; transform: scale(0.92) } }'}</style>+ </div>+ )+}diff --git a/apps/desktop/src/renderer/views/BotRow.tsx b/apps/desktop/src/renderer/views/BotRow.tsxnew file mode 100644index 00000000..3c046ef3--- /dev/null+++ b/apps/desktop/src/renderer/views/BotRow.tsx@@ -0,0 +1,69 @@+import { memo } from 'react'+import { folderName, isWorking, needsInput, type Bot } from '@shared/models'+import { AvatarWithStatus } from '../components/Avatar'+import { Icon } from '../components/Icon'+import { ThinkingOrb } from '../components/ThinkingOrb'+import { font } from '../lib/fonts'+import type { BotStore } from '../store/bot-store'++/** A roster row: avatar with status, name, and the live activity or last message (Grok Bot's desktop sidebar). */+export const BotRow = memo(function BotRow({ bot, store, compact, usingComputer, members }: { bot: Bot; store: BotStore; compact: boolean; usingComputer: boolean; members: Bot[] }) {+ return (+ <div style={{ display: 'flex', alignItems: 'center', gap: compact ? 0 : 8, padding: '6px 0', width: '100%', justifyContent: compact ? 'center' : 'flex-start' }}>+ <AvatarWithStatus bot={bot} members={members} size={30} />+ <div+ aria-hidden={compact}+ style={{+ display: 'flex', flexDirection: 'column', gap: 1, minWidth: 0, overflow: 'hidden',+ width: compact ? 0 : undefined, flex: compact ? 'none' : 1, opacity: compact ? 0 : 1,+ transition: 'opacity var(--layout)',+ }}+ >+ <div style={{ display: 'flex', alignItems: 'baseline', gap: 4, minWidth: 0 }}>+ {bot.pinned ? <Icon name="pin.fill" size={10} color="var(--tertiary)" /> : null}+ <span style={{ ...font('compactBody', 'semibold'), color: 'var(--text)', whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis' }}>{bot.name}</span>+ {usingComputer ? <Icon name="cursorarrow.motionlines" size={10} color="var(--accent)" title="Using the computer" /> : null}+ </div>+ <div style={{ display: 'flex', alignItems: 'center', gap: 6, minWidth: 0 }}>+ <div style={{ flex: 1, minWidth: 0, display: 'flex' }}>+ <Preview bot={bot} store={store} />+ </div>+ {bot.unread > 0 ? (+ <span+ style={{+ ...font('caption2', 'semibold'), color: 'var(--on-accent)', background: 'var(--accent-fill)', borderRadius: 999,+ padding: '0 6px', minWidth: 18, height: 18, display: 'grid', placeItems: 'center', flex: 'none',+ }}+ >+ {bot.unread}+ </span>+ ) : null}+ </div>+ </div>+ </div>+ )+})++const line: React.CSSProperties = { ...font('compactSecondary'), whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis', minWidth: 0 }++/** Live activity while working, otherwise the last message (Grok Bot row behavior). */+function Preview({ bot, store }: { bot: Bot; store: BotStore }) {+ if (needsInput(bot)) {+ return (+ <span style={{ display: 'flex', alignItems: 'center', gap: 6, color: 'var(--warning)', minWidth: 0 }}>+ <ThinkingOrb state="listening" size={16} color="var(--warning)" />+ <span style={line}>{bot.activity || 'Needs your approval'}</span>+ </span>+ )+ }+ if (isWorking(bot)) {+ return (+ <span style={{ display: 'flex', alignItems: 'center', gap: 6, color: 'var(--secondary)', minWidth: 0 }}>+ <ThinkingOrb size={13} color="var(--secondary)" />+ <span style={line}>{bot.activity || 'Working…'}</span>+ </span>+ )+ }+ if (bot.status === 'error') return <span style={{ ...line, color: 'var(--danger)' }}>{bot.lastMessage ?? 'Something went wrong'}</span>+ return <span style={{ ...line, color: 'var(--secondary)' }}>{bot.lastMessage ?? `${store.backendName(bot.backend)} · ${folderName(bot)}`}</span>+}diff --git a/apps/desktop/src/renderer/views/ChatWindow.tsx b/apps/desktop/src/renderer/views/ChatWindow.tsxnew file mode 100644index 00000000..0fc4cf6e--- /dev/null+++ b/apps/desktop/src/renderer/views/ChatWindow.tsx@@ -0,0 +1,627 @@+import { useEffect, useMemo, useRef, useState, type ReactNode } from 'react'+import type { WindowCommand } from '@shared/ipc'+import { draftOf, isGroup, type Bot, type BotDraft } from '@shared/models'+import { CharacterAvatar } from '../components/Avatar'+import { Button, ChoicePicker, IconButton } from '../components/Controls'+import { Icon } from '../components/Icon'+import { AnchoredMenu, Dialog, Sheet, type MenuItem } from '../components/Overlay'+import { font } from '../lib/fonts'+import { useModels } from '../lib/observable'+import { prefs, stepTextSize, usePref, DEFAULT_TEXT_SIZE } from '../lib/prefs'+import { useApp, StoreContext } from '../store/context'+import { refKey, sameRef, parseRef, type BotRef } from '../store/app-model'+import type { BotStore } from '../store/bot-store'+import { BotRow } from './BotRow'+import { ComputerFilterHeader, computerSelection } from './ComputerFilterHeader'+import { ThreadView } from './thread/ThreadView'+import { NewChatView } from './bots/NewChatView'+import { BotEditorView } from './bots/BotEditorView'+import { MarketplaceView } from './marketplace/MarketplaceView'+import { SettingsView, type SettingsPage } from './settings/SettingsView'+import { ApprovalSheet } from './settings/ApprovalSheet'+import { UpdateNeededCard } from './UpdateNeededCard'+import { AccountWelcomeView } from './AccountWelcomeView'+import { useTraySummary } from './tray-summary'+import './chat-window.css'++const isMac = window.codync.platform === 'darwin'++/** Native desktop chat: roster on the left, the conversation on the right (Grok Bot's desktop layout). */+export function ChatWindow() {+ const app = useApp()+ const [onboarded, setOnboarded] = usePref(prefs.onboardingDone)+ const [confirmReset, setConfirmReset] = useState(false)+ useTraySummary(app)+ const showsChat = app.host.state.kind === 'running' || app.computers.length > 0++ useEffect(+ () =>+ window.codync.app.onCommand((c: WindowCommand) => {+ switch (c.kind) {+ case 'confirmReset':+ return setConfirmReset(true)+ case 'reviewApprovals':+ return app.reviewApprovals()+ case 'setTextSize':+ return prefs.textSize.set(c.size)+ case 'stepTextSize':+ return prefs.textSize.set(c.up === null ? DEFAULT_TEXT_SIZE : stepTextSize(prefs.textSize.get(), c.up))+ case 'setUsageIconStyle':+ return prefs.usageIconStyle.set(c.style)+ case 'openBot': {+ const ref = parseRef(c.ref)+ if (ref) app.select(ref)+ return+ }+ case 'stopBot': {+ const ref = parseRef(c.ref)+ if (ref) app.store(ref.computerId)?.stop(ref.botId)+ return+ }+ case 'setRemoteScreen':+ void app.local?.setScreenEnabled(c.on).catch((e: unknown) => app.local?.setError(e instanceof Error ? e.message : String(e)))+ return+ }+ }),+ [app],+ )++ const approval = app.currentApproval+ return (+ <div className="chat-window">+ {onboarded ? (+ showsChat ? (+ <ChatSplitView />+ ) : (+ <HostStateView />+ )+ ) : (+ <AccountWelcomeView onContinue={() => setOnboarded(true)} />+ )}+ <Dialog+ open={confirmReset}+ title="Reset all data?"+ message="Signs out every account and deletes this computer's bots, conversations, keys and settings. Codync then starts over from the welcome screen."+ actions={[{ title: 'Reset everything', destructive: true, action: () => void window.codync.app.resetAllData() }]}+ onClose={() => setConfirmReset(false)}+ />+ {/* Approving a device: the code the device shows must match (spec §4.2 B). Closing puts it off. */}+ <Sheet open={approval !== null} onClose={() => approval && app.deferApproval(approval)}>+ {approval ? <ApprovalSheet key={approval.id} approval={approval} /> : null}+ </Sheet>+ </div>+ )+}++/** What stands between this computer and the chat, with the one action that fixes it. */+function HostStateView() {+ const app = useApp()+ const state = app.host.state+ switch (state.kind) {+ case 'notInstalled':+ return <EmptyState icon="desktopcomputer" title={`Set up this ${isMac ? 'Mac' : 'computer'}`} message={`Codync runs your coding agents through the host, a small background service on this ${isMac ? 'Mac' : 'computer'}.`} action={['Install host', () => window.codync.host.install()]} />+ case 'missingBinary':+ return <EmptyState icon="desktopcomputer.trianglebadge.exclamationmark" title="The host is missing" message="This copy of Codync doesn't include codync-host. Download Codync again from codync.dev or GitHub." />+ case 'failed':+ return <EmptyState icon="desktopcomputer.trianglebadge.exclamationmark" title="The host isn't running" message={state.message} action={['Try again', () => window.codync.host.restart()]} />+ default:+ return <EmptyState icon="desktopcomputer" title="Starting the host…" message="This takes a few seconds." />+ }+}++/** A quiet placeholder for an empty screen: icon, title, a line of help and an optional action. */+export function EmptyState({ icon, title, message, action }: { icon: string; title: string; message: string; action?: [string, () => void] }) {+ return (+ <div className="empty-state">+ <Icon name={icon} size={36} weight="light" color="var(--tertiary)" />+ <div style={{ ...font('title3', 'semibold'), color: 'var(--text)' }}>{title}</div>+ <div style={{ ...font('callout'), color: 'var(--secondary)', textAlign: 'center', maxWidth: 360 }}>{message}</div>+ {action ? (+ <Button onClick={action[1]} style={{ marginTop: 4 }}>+ {action[0]}+ </Button>+ ) : null}+ </div>+ )+}++interface BotTarget {+ bot: Bot+ store: BotStore+}++interface EditTarget {+ id: string+ draft: BotDraft+ store: BotStore+}++function ChatSplitView() {+ const app = useApp()+ const [compact, setCompact] = usePref(prefs.sidebarCompact)+ const [sidebarWidth, setSidebarWidth] = usePref(prefs.sidebarWidth)+ const [hidden, setHidden] = usePref(prefs.hiddenComputers)+ const [search, setSearch] = useState('')+ const [composing, setComposing] = useState(false)+ const [composingGroup, setComposingGroup] = useState(false)+ const [composeComputer, setComposeComputer] = useState<string | null>(null)+ const previousSelection = useRef<BotRef | null>(null)+ const [newMenu, setNewMenu] = useState(false)+ const [railNewMenu, setRailNewMenu] = useState(false)+ const [hovered, setHovered] = useState<string | null>(null)+ const [contextBot, setContextBot] = useState<{ target: BotTarget; x: number; y: number } | null>(null)+ const [editing, setEditing] = useState<EditTarget | null>(null)+ const [confirmDelete, setConfirmDelete] = useState<BotTarget | null>(null)+ const [newSessionBot, setNewSessionBot] = useState<BotTarget | null>(null)+ const [marketplace, setMarketplace] = useState<string | null>(null)+ const [settings, setSettings] = useState<SettingsPage | null>(null)+ const [showAccount, setShowAccount] = useState(false)+ const [windowSize, setWindowSize] = useState({ width: window.innerWidth, height: window.innerHeight })+ const searchRef = useRef<HTMLInputElement>(null)+ const newButton = useRef<HTMLButtonElement>(null)+ const railNewButton = useRef<HTMLButtonElement>(null)+ const listRef = useRef<HTMLDivElement>(null)+ useModels([...app.stores.values()])++ useEffect(() => {+ const onResize = () => {+ setWindowSize({ width: window.innerWidth, height: window.innerHeight })+ setSidebarWidth(Math.min(prefs.sidebarWidth.get(), Math.max(260, window.innerWidth - 420)))+ }+ window.addEventListener('resize', onResize)+ return () => window.removeEventListener('resize', onResize)+ }, [setSidebarWidth])++ const sheetHeight = Math.max(420, windowSize.height - 76)+ const stores = app.computers.map((c) => app.store(c.id)).filter((s): s is BotStore => !!s)+ const shown = new Set(computerSelection(app.computers.map((c) => c.id), hidden).shown)+ const onlineStores = stores.filter((s) => shown.has(s.computer.id) && s.connection.kind === 'online' && !s.mismatch)+ const selectedStore = app.selectedStore+ const composeStore = composeComputer ? app.store(composeComputer) : null+ const query = search.trim().toLowerCase()+ const visibleRoster = app.roster.filter(+ (item) =>+ shown.has(item.ref.computerId) &&+ (compact || !query || item.bot.name.toLowerCase().includes(query) || (item.bot.lastMessage ?? '').toLowerCase().includes(query)),+ )++ const compose = (group = false) => {+ setComposingGroup(group)+ // The selected bot's computer if it's online, else this computer, else any online one.+ const target = [selectedStore, app.local].find((s) => s && onlineStores.includes(s)) ?? onlineStores[0]+ if (!target) return+ if (!composing) previousSelection.current = app.selection+ setComposeComputer(target.computer.id)+ app.select(null)+ setComposing(true)+ }++ useEffect(() => {+ if (app.selection) setComposing(false)+ }, [app.selection])++ useEffect(+ () =>+ window.codync.app.onCommand((c) => {+ if (c.kind === 'newChat' && onlineStores.length) compose()+ if (c.kind === 'search') {+ setCompact(false)+ setTimeout(() => searchRef.current?.focus(), 0)+ }+ if (c.kind === 'toggleSidebar') setCompact(!prefs.sidebarCompact.get())+ }),+ )++ const newItems = (): MenuItem[] => [+ { title: 'New chat', icon: 'square.and.pencil', action: () => compose() },+ { title: 'New group chat', icon: 'person.2', action: () => compose(true) },+ ]++ const openMarketplace = () => setMarketplace((selectedStore ?? app.local ?? onlineStores[0])?.computer.id ?? null)++ const botActions = (bot: Bot, store: BotStore): MenuItem[] => [+ { title: bot.pinned ? 'Unpin' : 'Pin', icon: 'pin', action: () => store.setPinned(bot, !bot.pinned) },+ { title: 'Mark as Read', icon: 'bell.badge', action: () => store.markAllRead(bot.id) },+ { title: 'Edit Profile…', icon: 'square.and.pencil', divider: true, action: () => setEditing({ id: crypto.randomUUID(), draft: draftOf(bot), store }) },+ { title: 'Copy conversation ID', icon: 'square.on.square', divider: true, action: () => window.codync.app.copy(bot.id) },+ { title: 'New session', icon: 'arrow.counterclockwise', action: () => setNewSessionBot({ bot, store }) },+ { title: 'Hide from sidebar', icon: 'eye.slash', divider: true, action: () => store.setHidden(bot, true) },+ { title: 'Delete', icon: 'trash', destructive: true, action: () => setConfirmDelete({ bot, store }) },+ ]++ // ↑/↓ in the roster move the selection.+ const onListKey = (e: React.KeyboardEvent) => {+ if (e.key !== 'ArrowUp' && e.key !== 'ArrowDown') return+ const refs = visibleRoster.map((i) => i.ref)+ if (!refs.length) return+ e.preventDefault()+ const current = refs.findIndex((r) => sameRef(r, app.selection))+ const next = e.key === 'ArrowDown' ? Math.min(current + 1, refs.length - 1) : Math.max(current - 1, 0)+ app.select(refs[next]!)+ }++ // The sidebar's edge drags its width; narrower than 180 collapses it to the rail.+ const dragStart = useRef<{ x: number; width: number } | null>(null)+ const onDividerDown = (e: React.PointerEvent) => {+ ;(e.target as HTMLElement).setPointerCapture(e.pointerId)+ dragStart.current = { x: e.clientX, width: compact ? 76 : sidebarWidth }+ }+ const onDividerMove = (e: React.PointerEvent) => {+ if (!dragStart.current) return+ const proposed = dragStart.current.width + e.clientX - dragStart.current.x+ const nextCompact = proposed < 180+ if (nextCompact !== compact) setCompact(nextCompact)+ if (!nextCompact) setSidebarWidth(Math.min(Math.max(260, proposed), Math.min(420, window.innerWidth - 420)))+ }++ const errorMessage = app.errorMessage+ const mismatchStores = stores.filter((s) => shown.has(s.computer.id) && s.mismatch)+ const selected = app.selection+ const selectedBot = selected && selectedStore?.bots.get(selected.botId)++ let detail: ReactNode+ if (composing && composeStore) {+ detail = (+ <div className="detail-column" key={`${composeStore.computer.id}-${composingGroup}`}>+ {onlineStores.length > 1 ? (+ <ComputerPicker stores={onlineStores} value={composeStore.computer.id} onChange={setComposeComputer} />+ ) : null}+ <StoreContext.Provider value={composeStore}>+ <NewChatView+ group={composingGroup}+ onClose={() => {+ setComposing(false)+ if (!app.selection) app.select(previousSelection.current)+ }}+ />+ </StoreContext.Provider>+ </div>+ )+ } else if (selected && selectedStore && selectedBot) {+ detail = (+ <StoreContext.Provider value={selectedStore}>+ <ThreadView key={refKey(selected)} botId={selected.botId} />+ </StoreContext.Provider>+ )+ } else {+ detail = (+ <div className="empty-detail">+ <div style={{ display: 'flex' }}>+ <CharacterAvatar shape="blob" color="blue" size={60} mood="working" />+ <CharacterAvatar shape="squircle" color="orange" size={60} style={{ marginLeft: -10 }} />+ <CharacterAvatar shape="teardrop" color="violet" size={60} mood="working" style={{ marginLeft: -10 }} />+ </div>+ <div style={font('title2', 'semibold')}>Your coding agents, as teammates.</div>+ <div style={{ color: 'var(--secondary)', textAlign: 'center', maxWidth: 420 }}>Pick a bot, or create one for each kind of work and point it at a project.</div>+ <Button onClick={() => compose()} disabled={!onlineStores.length}>+ New Bot+ </Button>+ </div>+ )+ }++ const width = compact ? 76 : sidebarWidth+ return (+ <div className="split" style={{ pointerEvents: showAccount || contextBot ? 'none' : undefined }}>+ <aside className={`sidebar ${compact ? 'compact' : ''}`} style={{ width }}>+ <div className="sidebar-header drag" style={{ paddingLeft: compact ? 0 : isMac ? 80 : 18, opacity: compact ? 0 : 1, pointerEvents: compact ? 'none' : undefined }} aria-hidden={compact}>+ <span style={{ flex: 1 }} />+ <div className="no-drag" style={{ display: 'flex', alignItems: 'center', gap: 6 }}>+ <ComputerFilterHeader hidden={hidden} setHidden={setHidden} manage={() => setSettings('computers')} />+ <IconButton title="New" icon="plus" buttonRef={newButton} onClick={() => setNewMenu((o) => !o)} disabled={!onlineStores.length} />+ </div>+ <AnchoredMenu open={newMenu} onClose={() => setNewMenu(false)} anchor={newButton} items={newItems} />+ </div>+ {compact ? (+ <div style={{ width: 70, alignSelf: 'center' }} className="drag">+ <div className="no-drag" style={{ display: 'flex', justifyContent: 'center' }}>+ <ComputerFilterHeader hidden={hidden} setHidden={setHidden} manage={() => setSettings('computers')} compact />+ </div>+ </div>+ ) : null}+ {!compact ? (+ <div className="search">+ <Icon name="magnifyingglass" size={13} color="var(--secondary)" />+ <input+ ref={searchRef}+ value={search}+ placeholder="Search"+ aria-label="Search bots"+ spellCheck={false}+ onChange={(e) => setSearch(e.target.value)}+ onKeyDown={(e) => {+ if (e.key === 'Escape') {+ setSearch('')+ searchRef.current?.blur()+ }+ }}+ />+ {search ? (+ <button className="search-clear" aria-label="Clear search" title="Clear search" onClick={() => setSearch('')}>+ <Icon name="xmark.circle.fill" size={13} color="var(--secondary)" />+ </button>+ ) : null}+ </div>+ ) : null}+ <div className="roster" ref={listRef} tabIndex={0} onKeyDown={onListKey}>+ {!compact+ ? mismatchStores.map((s) => (+ <div key={s.computer.id} style={{ paddingBottom: 8 }}>+ <StoreContext.Provider value={s}>+ <UpdateNeededCard />+ </StoreContext.Provider>+ </div>+ ))+ : null}+ {visibleRoster.map((item) => {+ const key = refKey(item.ref)+ const isSelected = sameRef(item.ref, selected)+ return (+ <button+ key={key}+ className="roster-row"+ style={{+ padding: compact ? 0 : '0 8px',+ background: isSelected ? 'var(--bubble-user)' : hovered === key ? 'var(--bubble-agent)' : 'transparent',+ }}+ aria-label={stores.length > 1 ? `${item.bot.name}, on ${item.store.hostName}` : item.bot.name}+ aria-selected={isSelected}+ title={stores.length > 1 ? `${item.bot.name} · ${item.store.hostName}` : item.bot.name}+ onMouseEnter={() => setHovered(key)}+ onMouseLeave={() => setHovered((h) => (h === key ? null : h))}+ onClick={() => app.select(item.ref)}+ onContextMenu={(e) => {+ e.preventDefault()+ setContextBot({ target: { bot: item.bot, store: item.store }, x: e.clientX, y: e.clientY })+ }}+ >+ <BotRow bot={item.bot} store={item.store} compact={compact} usingComputer={item.store.screen?.agentBot === item.bot.id} members={isGroup(item.bot) ? item.store.members(item.bot) : noMembers} />+ </button>+ )+ })}+ {visibleRoster.length === 0 && !compact && mismatchStores.length === 0 ? (+ <div className="roster-empty">+ <div style={font(13, 'medium')}>{search ? 'No matching bots' : 'No bots yet'}</div>+ <div style={{ ...font(12), color: 'var(--secondary)' }}>{search ? 'Try another name or message.' : 'Use + to start a new chat.'}</div>+ </div>+ ) : null}+ </div>+ {compact ? (+ <div className="rail-actions">+ <IconButton title="New" icon="plus" size={36} buttonRef={railNewButton} disabled={!onlineStores.length} onClick={() => setRailNewMenu((o) => !o)} />+ <AnchoredMenu open={railNewMenu} onClose={() => setRailNewMenu(false)} anchor={railNewButton} items={newItems} />+ <IconButton title="Marketplace" icon="square.grid.2x2" size={36} onClick={openMarketplace} />+ <button className="rail-profile" style={{ background: showAccount ? 'var(--bubble-agent)' : undefined }} aria-label="Open account menu for Account" title="Account" onClick={() => setShowAccount((s) => !s)}>+ <ProfileAvatar />+ </button>+ </div>+ ) : (+ <div className="sidebar-footer">+ <button className="footer-row" onClick={openMarketplace}>+ <span className="footer-icon">+ <Icon name="square.grid.2x2" size={14} />+ </span>+ <span>Marketplace</span>+ </button>+ <button className={`footer-row account ${showAccount ? 'active' : ''}`} aria-label="Open account menu for Account" title="Account menu" onClick={() => setShowAccount((s) => !s)}>+ <ProfileAvatar />+ <span style={{ whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis' }}>Account</span>+ </button>+ </div>+ )}+ </aside>+ <div className="sidebar-divider" onPointerDown={onDividerDown} onPointerMove={onDividerMove} onPointerUp={() => (dragStart.current = null)} role="separator" aria-label="Resize sidebar" aria-valuenow={width} />+ <main className="detail">{detail}</main>++ {showAccount ? (+ <AccountPanelLayer+ compact={compact}+ approvals={app.approvals.length}+ onDismiss={() => setShowAccount(false)}+ onUsage={() => {+ setShowAccount(false)+ setSettings('usage')+ }}+ onSettings={() => {+ setShowAccount(false)+ setSettings('general')+ }}+ />+ ) : null}+ {contextBot ? (+ <div className="context-layer" onMouseDown={(e) => e.target === e.currentTarget && setContextBot(null)}>+ <DesktopActionMenu+ items={botActions(contextBot.target.bot, contextBot.target.store)}+ onDismiss={() => setContextBot(null)}+ style={{ left: Math.min(Math.max(8, contextBot.x), windowSize.width - 268), top: Math.min(Math.max(8, contextBot.y), Math.max(8, windowSize.height - 344)) }}+ />+ </div>+ ) : null}++ <Sheet open={editing !== null} onClose={() => setEditing(null)} width={520} height={Math.min(680, sheetHeight)}>+ {editing ? (+ <StoreContext.Provider value={editing.store}>+ <BotEditorView key={editing.id} draft={editing.draft} />+ </StoreContext.Provider>+ ) : null}+ </Sheet>+ <Sheet open={marketplace !== null} onClose={() => setMarketplace(null)} width={Math.min(920, windowSize.width - 80)} height={sheetHeight}>+ {marketplace && app.store(marketplace) ? (+ <StoreContext.Provider value={app.store(marketplace)!}>+ <MarketplaceView key={marketplace} computers={onlineStores.map((s) => ({ id: s.computer.id, name: s.hostName }))} computer={marketplace} onComputer={setMarketplace} />+ </StoreContext.Provider>+ ) : null}+ </Sheet>+ <Sheet open={settings !== null} onClose={() => setSettings(null)} width={Math.min(800, windowSize.width - 80)} height={Math.min(620, sheetHeight)}>+ {settings ? <SettingsView page={settings} /> : null}+ </Sheet>+ <Dialog+ open={newSessionBot !== null}+ title="Start a new session?"+ message="The conversation stays here, but the agent starts with a fresh context."+ actions={newSessionBot ? [{ title: 'New session', action: () => newSessionBot.store.newSession(newSessionBot.bot.id) }] : []}+ onClose={() => setNewSessionBot(null)}+ />+ <Dialog+ open={confirmDelete !== null}+ title={`Delete ${confirmDelete?.bot.name ?? 'bot'}?`}+ message="Files it changed on your computer stay as they are."+ actions={confirmDelete ? [{ title: 'Delete bot and its conversation', destructive: true, action: () => confirmDelete.store.delete(confirmDelete.bot) }] : []}+ onClose={() => setConfirmDelete(null)}+ />+ <Dialog open={errorMessage !== null} title="Something went wrong" message={errorMessage} actions={[]} cancel="OK" onClose={() => app.clearErrors()} />+ </div>+ )+}++const noMembers: Bot[] = []++/** Which computer a new chat goes to, when more than one is online. */+function ComputerPicker({ stores, value, onChange }: { stores: BotStore[]; value: string; onChange: (id: string) => void }) {+ const options = useMemo(() => stores.map((s) => ({ id: s.computer.id, label: s.hostName })), [stores])+ return (+ <div style={{ display: 'flex', alignItems: 'center', gap: 8, padding: '12px 22px 0', ...font('callout') }}>+ <span style={{ color: 'var(--secondary)' }}>On</span>+ <ChoicePicker selection={value} options={options} onChange={onChange} />+ </div>+ )+}++function ProfileAvatar() {+ return (+ <span className="profile-avatar" aria-hidden>+ <Icon name="person.fill" size={15} weight="medium" color="var(--secondary)" />+ </span>+ )+}++interface PanelItem {+ title: string+ icon: string+ detail?: string | null+ chevron?: boolean+ disabled?: boolean+ destructive?: boolean+ action: () => void+}++/** The account menu: a window-local floating surface (no system menu styling). */+function AccountPanelLayer({ compact, approvals, onDismiss, onUsage, onSettings }: {+ compact: boolean+ approvals: number+ onDismiss: () => void+ onUsage: () => void+ onSettings: () => void+}) {+ const [page, setPage] = useState<'main' | 'support'>('main')+ const open = (url: string) => {+ onDismiss()+ window.codync.app.openExternal(url)+ }+ const items: PanelItem[] =+ page === 'support'+ ? [+ { title: 'Support', icon: 'chevron.left', action: () => setPage('main') },+ { title: 'Help & documentation', icon: 'book', chevron: true, action: () => open('https://github.com/leepokai/codync#readme') },+ { title: 'Report an issue', icon: 'bubble.left', chevron: true, action: () => open('https://github.com/leepokai/codync/issues') },+ ]+ : [+ { title: 'Usage', icon: 'gauge.with.dots.needle.33percent', chevron: true, action: onUsage },+ { title: 'Get Codync for mobile', icon: 'iphone', action: () => open('https://apps.apple.com/app/id6760984418') },+ { title: 'Support', icon: 'book.closed', chevron: true, action: () => setPage('support') },+ { title: 'Settings', icon: 'gearshape', detail: approvals > 0 ? String(approvals) : null, action: onSettings },+ ]+ return (+ <div className="context-layer" onMouseDown={(e) => e.target === e.currentTarget && onDismiss()}>+ <div className="account-panel" style={{ width: Math.min(260, window.innerWidth - 32), left: 16, bottom: compact ? 68 : 64 }}>+ <PanelRows+ items={items}+ onDismiss={onDismiss}+ after={(i) =>+ page === 'main' && i === 3 ? (+ <>+ <div className="panel-divider" />+ <div className="panel-identity">+ <Icon name="person.crop.circle" size={15} />+ <span style={{ ...font(12), flex: 1, whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis' }}>Account</span>+ <span style={font(11)}>Not signed in</span>+ </div>+ </>+ ) : page === 'support' && i === 0 ? (+ <div className="panel-divider" />+ ) : null+ }+ />+ </div>+ </div>+ )+}++function PanelRows({ items, onDismiss, after, dismissOnActivate = false }: { items: PanelItem[]; onDismiss: () => void; after?: (i: number) => ReactNode; dismissOnActivate?: boolean }) {+ const [highlighted, setHighlighted] = useState(0)+ useEffect(() => {+ const onKey = (e: KeyboardEvent) => {+ if (e.key === 'Escape') {+ e.preventDefault()+ onDismiss()+ } else if (e.key === 'ArrowDown' || (e.key === 'Tab' && !e.shiftKey)) {+ e.preventDefault()+ setHighlighted((h) => (h + 1) % items.length)+ } else if (e.key === 'ArrowUp' || (e.key === 'Tab' && e.shiftKey)) {+ e.preventDefault()+ setHighlighted((h) => (h - 1 + items.length) % items.length)+ } else if (e.key === 'Enter' || e.key === ' ') {+ e.preventDefault()+ const item = items[highlighted]+ if (item && !item.disabled) {+ if (dismissOnActivate) onDismiss()+ item.action()+ }+ }+ }+ window.addEventListener('keydown', onKey)+ return () => window.removeEventListener('keydown', onKey)+ }, [items, highlighted, onDismiss, dismissOnActivate])+ return (+ <div style={{ display: 'flex', flexDirection: 'column', gap: 2 }}>+ {items.map((item, i) => (+ <div key={item.title}>+ <button+ className={`panel-row ${highlighted === i ? 'highlight' : ''}`}+ style={{ color: item.destructive ? 'var(--danger)' : 'var(--text)' }}+ disabled={item.disabled}+ onMouseEnter={() => setHighlighted(i)}+ onClick={() => {+ if (dismissOnActivate) onDismiss()+ item.action()+ }}+ >+ <span style={{ width: 20, display: 'flex', justifyContent: 'center' }}>+ <Icon name={item.icon} size={14} />+ </span>+ <span style={{ ...font(12), flex: 1, whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis' }}>{item.title}</span>+ {item.detail ? <span style={{ ...font(13), color: 'var(--secondary)' }}>{item.detail}</span> : null}+ {item.chevron ? <Icon name="chevron.right" size={11} color="var(--secondary)" /> : null}+ </button>+ {after?.(i)}+ </div>+ ))}+ </div>+ )+}++/** The roster's right-click actions, shared by pointer and keyboard. */+function DesktopActionMenu({ items, onDismiss, style }: { items: MenuItem[]; onDismiss: () => void; style: React.CSSProperties }) {+ const rows = items.map<PanelItem>((m) => ({ title: m.title, icon: m.icon ?? 'circle', destructive: m.destructive, action: m.action }))+ return (+ <div className="action-menu" style={style}>+ <PanelRows+ items={rows}+ onDismiss={onDismiss}+ dismissOnActivate+ after={(i) => (items[i + 1]?.divider ? <div className="panel-divider" /> : null)}+ />+ </div>+ )+}+diff --git a/apps/desktop/src/renderer/views/ComputerBadge.tsx b/apps/desktop/src/renderer/views/ComputerBadge.tsxnew file mode 100644index 00000000..4516a673--- /dev/null+++ b/apps/desktop/src/renderer/views/ComputerBadge.tsx@@ -0,0 +1,22 @@+import type { Computer } from '@shared/models'+import { Icon } from '../components/Icon'+import { avatarColor } from '../lib/theme'+import linux from '../assets/computer-linux.svg'++const symbol = (device?: string | null) =>+ ({ laptop: 'laptopcomputer', macmini: 'macmini', macstudio: 'macstudio', imac: 'desktopcomputer', macpro: 'macpro.gen3' })[device ?? ''] ?? 'desktopcomputer'++/** A computer's icon showing what it is (laptop, Mac mini, Linux…), in the color picked for it. */+export function ComputerBadge({ computer, size = 36 }: { computer: Computer | null; size?: number }) {+ const color = computer?.color ? avatarColor(computer.color) : 'var(--text)'+ return (+ <span aria-hidden style={{ width: size, height: size, display: 'grid', placeItems: 'center', flex: 'none', color }}>+ {computer?.device === 'linux' ? (+ // SF Symbols has no penguin.+ <span style={{ width: size * 0.55, height: size * 0.55, backgroundColor: color, WebkitMaskImage: `url("${linux}")`, WebkitMaskSize: 'contain', WebkitMaskRepeat: 'no-repeat', WebkitMaskPosition: 'center' }} />+ ) : (+ <Icon name={symbol(computer?.device)} size={size * 0.5} weight="medium" />+ )}+ </span>+ )+}diff --git a/apps/desktop/src/renderer/views/ComputerFilterHeader.tsx b/apps/desktop/src/renderer/views/ComputerFilterHeader.tsxnew file mode 100644index 00000000..2d019f07--- /dev/null+++ b/apps/desktop/src/renderer/views/ComputerFilterHeader.tsx@@ -0,0 +1,66 @@+import type { Computer } from '@shared/models'+import { DropdownMenu } from '../components/Controls'+import { Icon } from '../components/Icon'+import type { MenuItem } from '../components/Overlay'+import { font } from '../lib/fonts'+import { useApp } from '../store/context'+import type { Connection } from '../store/bot-store'++/** An empty exclusion list means all computers, including newly paired ones. */+export function computerSelection(all: string[], hidden: string) {+ const excluded = new Set(hidden.split(',').filter(Boolean))+ const visible = all.filter((id) => !excluded.has(id))+ const shown = visible.length ? visible : all+ const encoded = (ids: Set<string>) => [...ids].sort().join(',')+ return {+ shown,+ toggling(id: string) {+ if (!all.includes(id)) return encoded(new Set(all.filter((x) => !shown.includes(x))))+ const next = new Set(shown)+ if (next.has(id)) {+ if (next.size > 1) next.delete(id)+ } else next.add(id)+ return encoded(new Set(all.filter((x) => !next.has(x))))+ },+ only(id: string) {+ return all.includes(id) ? encoded(new Set(all.filter((x) => x !== id))) : ''+ },+ }+}++function summary(connections: Connection[]) {+ if (!connections.length) return 'Computers'+ const online = connections.filter((c) => c.kind === 'online').length+ if (online === connections.length) return `${online} connected`+ if (online > 0) return `${online}/${connections.length} connected`+ if (connections.some((c) => c.kind === 'connecting')) return 'Connecting…'+ if (connections.every((c) => c.kind === 'unauthorized')) return 'No access'+ if (connections.every((c) => c.kind === 'unpaired')) return 'Not paired'+ return `${connections.length} offline`+}++/** The roster's only connection surface: a quiet summary, with details and filters on demand. */+export function ComputerFilterHeader({ hidden, setHidden, manage, compact = false }: { hidden: string; setHidden: (v: string) => void; manage: () => void; compact?: boolean }) {+ const app = useApp()+ const selection = computerSelection(app.computers.map((c) => c.id), hidden)+ const stores = selection.shown.map((id) => app.store(id)).filter((s) => !!s)+ const text = summary(stores.map((s) => s.shownConnection))+ const title = (c: Computer) => {+ const store = app.store(c.id)+ return store ? `${store.hostName} · ${store.connectionLabel}` : c.name+ }+ const items = (): MenuItem[] => {+ const list: MenuItem[] = [{ title: 'All computers', selected: selection.shown.length === app.computers.length, action: () => setHidden('') }]+ for (const c of app.computers) list.push({ title: title(c), selected: selection.shown.includes(c.id), action: () => setHidden(selection.toggling(c.id)) })+ if (app.computers.length > 1) app.computers.forEach((c, i) => list.push({ title: `Only ${c.name}`, divider: i === 0, action: () => setHidden(selection.only(c.id)) }))+ if (stores.length) list.push({ title: 'Reconnect', icon: 'arrow.clockwise', divider: true, action: () => stores.forEach((s) => s.restartStream()) })+ list.push({ title: 'Manage computers', icon: 'desktopcomputer', action: manage })+ return list+ }+ return (+ <DropdownMenu items={items} title={text} style={{ display: 'flex', alignItems: 'center', gap: 4, padding: '6px 0', ...font(12, 'medium'), color: 'var(--secondary)' }}>+ {compact ? <Icon name="desktopcomputer" size={12} weight="medium" /> : <span style={{ whiteSpace: 'nowrap' }} aria-label={`Computers, ${text}. Filter conversations`}>{text}</span>}+ <Icon name="chevron.down" size={8} weight="semibold" />+ </DropdownMenu>+ )+}diff --git a/apps/desktop/src/renderer/views/PairingWindow.tsx b/apps/desktop/src/renderer/views/PairingWindow.tsxnew file mode 100644index 00000000..2dfb2db0--- /dev/null+++ b/apps/desktop/src/renderer/views/PairingWindow.tsx@@ -0,0 +1,88 @@+import { useCallback, useEffect, useState } from 'react'+import QRCode from 'qrcode'+import type { CloudStatus, PairingInfo } from '@shared/models'+import { IconButton, Spinner } from '../components/Controls'+import { font } from '../lib/fonts'+import { LoopbackTransport } from '../client/host-client'+import { useApp } from '../store/context'++/** A one-time pairing QR (v3) from this computer: its keys, a code, and how to reach it. */+export function PairingWindow() {+ const app = useApp()+ const local = app.host.local+ const [info, setInfo] = useState<PairingInfo | null>(null)+ const [qr, setQr] = useState<string | null>(null)+ const [cloud, setCloud] = useState<CloudStatus | null>(null)+ const [name, setName] = useState('this computer')+ const [error, setError] = useState<string | null>(null)++ const load = useCallback(async () => {+ if (!local) return setError("This computer's host isn't connected.")+ const transport = new LoopbackTransport(local.baseURL, local.token)+ try {+ const [pairing, status, hello] = await Promise.all([+ transport.call('pairing', {}, 20_000) as Promise<PairingInfo>,+ transport.call('cloudStatus', {}, 20_000).catch(() => null) as Promise<CloudStatus | null>,+ transport.call('hello', {}, 20_000).catch(() => null) as Promise<{ name?: string } | null>,+ ])+ setInfo(pairing)+ setCloud(status)+ if (hello?.name) setName(hello.name)+ setQr(await QRCode.toDataURL(pairing.pairingUrl, { errorCorrectionLevel: 'M', margin: 0, width: 400, color: { dark: '#000000', light: '#ffffff' } }))+ setError(null)+ } catch (e) {+ setError(e instanceof Error ? e.message : String(e))+ }+ }, [local])++ // A new code each time "Pair iPhone…" is chosen (the window stays open between uses)…+ useEffect(() => {+ void load()+ return window.codync.app.onCommand((c) => c.kind === 'reviewApprovals' && void load())+ }, [load])++ // …and a fresh one when this code expires while it's on screen.+ useEffect(() => {+ if (!info?.expiresAt) return+ const timer = setTimeout(() => void load(), Math.max(1000, info.expiresAt - Date.now()))+ return () => clearTimeout(timer)+ }, [info?.expiresAt, load])++ return (+ <div style={{ width: 340, padding: 16, display: 'flex', flexDirection: 'column', alignItems: 'center', gap: 12 }}>+ {info && qr ? (+ <>+ <div style={{ padding: 10, background: '#fff', borderRadius: 12 }}>+ <img src={qr} alt={`Pairing code for ${name}`} width={200} height={200} style={{ display: 'block', imageRendering: 'pixelated' }} />+ </div>+ <div style={{ ...font('caption'), color: 'var(--secondary)', textAlign: 'center' }}>+ Scan with the Codync app or the iPhone Camera. No Tailscale or open ports needed: your iPhone connects directly on the same Wi-Fi, and through the encrypted relay anywhere else.+ </div>+ {cloud?.enabled !== true ? (+ <div style={{ ...font('caption'), color: 'var(--warning)', textAlign: 'center' }}>+ {info.urls.length === 0+ ? 'No network address found and “Reach from anywhere” is off. Connect to Wi-Fi or turn it on.'+ : `“Reach from anywhere” is off, so the iPhone only reaches ${name} on the same network.`}+ </div>+ ) : null}+ <div style={{ display: 'flex', alignItems: 'center', gap: 4 }}>+ {info.expiresAt ? (+ <span style={{ ...font('caption2'), color: 'var(--tertiary)' }}>+ Works once, until {new Date(info.expiresAt).toLocaleTimeString(undefined, { hour: 'numeric', minute: '2-digit' })}+ </span>+ ) : null}+ <IconButton title="New code" icon="arrow.clockwise" onClick={() => void load()} />+ <IconButton title="Copy pairing link" icon="doc.on.doc" onClick={() => window.codync.app.copy(info.pairingUrl)} />+ </div>+ </>+ ) : error ? (+ <>+ <div style={{ ...font('caption'), color: 'var(--danger)', textAlign: 'center' }}>{error}</div>+ <IconButton title="Try again" icon="arrow.clockwise" onClick={() => void load()} />+ </>+ ) : (+ <Spinner size={20} />+ )}+ </div>+ )+}diff --git a/apps/desktop/src/renderer/views/UpdateNeededCard.tsx b/apps/desktop/src/renderer/views/UpdateNeededCard.tsxnew file mode 100644index 00000000..97214cba--- /dev/null+++ b/apps/desktop/src/renderer/views/UpdateNeededCard.tsx@@ -0,0 +1,58 @@+import type { VersionMismatch } from '@shared/compat'+import { Button } from '../components/Controls'+import { Icon } from '../components/Icon'+import { font } from '../lib/fonts'+import { useApp, useStore } from '../store/context'++/** The words every client uses for a version mismatch (iOS, the TUI and this app). */+export const updateNeededText = {+ title(m: VersionMismatch, host: string) {+ return m.kind === 'updateApp' ? 'Update this app' : `Update Codync on ${host}`+ },+ detail(m: VersionMismatch, host: string, hostVersion: string | null | undefined, os: string | null | undefined, instructions = true) {+ if (m.kind === 'updateApp') {+ const runs = hostVersion ? `${host} runs Codync ${hostVersion} and` : host+ return `${runs} needs this app to be ${m.minimum} or newer. Your chats are safe on the computer.`+ }+ const how =+ os === 'macos' ? 'Open Codync on that Mac and choose Check for Updates.'+ : os === 'linux' ? 'Run codync-host update there, or use Check for updates in its Codync app.'+ : 'Update Codync on that computer.'+ const needs = `${host} runs Codync ${m.version}; this app needs ${m.minimum} or newer.`+ return instructions ? `${needs} ${how}` : needs+ },+}++/**+ * Says which side has to update before this app and a computer can work together, and offers+ * the update where this app can start it. Shown instead of the composer and above the bots.+ */+export function UpdateNeededCard() {+ const app = useApp()+ const store = useStore()+ const mismatch = store.mismatch+ if (!mismatch) return null+ // This app updates itself; this computer's own host is put back on the app's bundled copy.+ const action: [string, () => void] | null =+ mismatch.kind === 'updateApp'+ ? ['Update Codync', () => window.codync.updates.check()]+ : store === app.local && !app.host.dev+ ? [`Update ${store.hostName}`, () => window.codync.host.restart()]+ : null+ return (+ <div style={{ display: 'flex', alignItems: 'flex-start', gap: 12, padding: 14, background: 'var(--surface)', borderRadius: 16 }}>+ <Icon name="arrow.down.circle" size={15} color="var(--warning)" />+ <div style={{ display: 'flex', flexDirection: 'column', gap: 6, flex: 1, minWidth: 0 }}>+ <div style={{ ...font('subheadline', 'semibold'), color: 'var(--text)' }}>{updateNeededText.title(mismatch, store.hostName)}</div>+ <div style={{ ...font('footnote'), color: 'var(--secondary)' }}>+ {updateNeededText.detail(mismatch, store.hostName, store.hostVersion?.version, store.hello?.os, action === null)}+ </div>+ {action ? (+ <Button onClick={action[1]} style={{ marginTop: 4, alignSelf: 'flex-start' }}>+ {action[0]}+ </Button>+ ) : null}+ </div>+ </div>+ )+}diff --git a/apps/desktop/src/renderer/views/bots/BotEditorView.tsx b/apps/desktop/src/renderer/views/bots/BotEditorView.tsxnew file mode 100644index 00000000..1fe3c338--- /dev/null+++ b/apps/desktop/src/renderer/views/bots/BotEditorView.tsx@@ -0,0 +1,7 @@+import type { BotDraft } from '@shared/models'+export function BotEditorView(_: { draft: BotDraft }) {+ return <div style={{ padding: 24 }}>Bot editor</div>+}+export function BotSettingsPanel(_: { botId: string }) {+ return <div style={{ padding: 24 }}>Bot settings</div>+}diff --git a/apps/desktop/src/renderer/views/bots/BotTemplateView.tsx b/apps/desktop/src/renderer/views/bots/BotTemplateView.tsxnew file mode 100644index 00000000..ba76f2b2--- /dev/null+++ b/apps/desktop/src/renderer/views/bots/BotTemplateView.tsx@@ -0,0 +1,4 @@+import type { BotDraft } from '@shared/models'+export function BotTemplateView(_: { draft: BotDraft }) {+ return <div style={{ padding: 24 }}>Template</div>+}diff --git a/apps/desktop/src/renderer/views/bots/GroupEditorView.tsx b/apps/desktop/src/renderer/views/bots/GroupEditorView.tsxnew file mode 100644index 00000000..3be3179b--- /dev/null+++ b/apps/desktop/src/renderer/views/bots/GroupEditorView.tsx@@ -0,0 +1,4 @@+import type { Bot } from '@shared/models'+export function GroupEditorView(_: { group: Bot | null }) {+ return <div style={{ padding: 24 }}>Group editor</div>+}diff --git a/apps/desktop/src/renderer/views/bots/NewChatView.tsx b/apps/desktop/src/renderer/views/bots/NewChatView.tsxnew file mode 100644index 00000000..6d9a8821--- /dev/null+++ b/apps/desktop/src/renderer/views/bots/NewChatView.tsx@@ -0,0 +1,3 @@+export function NewChatView(_: { group: boolean; onClose: () => void }) {+ return <div style={{ padding: 24 }}>New chat</div>+}diff --git a/apps/desktop/src/renderer/views/call/CallView.tsx b/apps/desktop/src/renderer/views/call/CallView.tsxnew file mode 100644index 00000000..2386244e--- /dev/null+++ b/apps/desktop/src/renderer/views/call/CallView.tsx@@ -0,0 +1,3 @@+export function CallView(_: { botId: string; onSpeaking: (s: boolean) => void; interrupt: { current: (() => void) | null }; onEnd: () => void }) {+ return <div>Call</div>+}diff --git a/apps/desktop/src/renderer/views/chat-window.css b/apps/desktop/src/renderer/views/chat-window.cssnew file mode 100644index 00000000..e32d2af4--- /dev/null+++ b/apps/desktop/src/renderer/views/chat-window.css@@ -0,0 +1,250 @@+.chat-window {+ height: 100%;+ min-width: 760px;+ min-height: 500px;+ background: var(--background);+ position: relative;+}++.empty-state {+ height: 100%;+ padding: 32px;+ display: flex;+ flex-direction: column;+ align-items: center;+ justify-content: center;+ gap: 10px;+}++.split {+ display: flex;+ height: 100%;+}++.sidebar {+ flex: none;+ height: 100%;+ background: var(--surface);+ display: flex;+ flex-direction: column;+ overflow: hidden;+ transition: width var(--layout);+}+.sidebar-header {+ display: flex;+ align-items: center;+ gap: 6px;+ height: 44px;+ padding-right: 18px;+ flex: none;+ transition: opacity var(--layout), padding var(--layout);+}++.search {+ display: flex;+ align-items: center;+ gap: 6px;+ height: 28px;+ margin: 4px 12px 8px;+ padding: 0 9px;+ border-radius: 8px;+ background: var(--bubble-agent);+ font-size: calc(13px * var(--scale));+ flex: none;+}+.search input {+ flex: 1;+ min-width: 0;+}+.search-clear {+ display: flex;+}++.roster {+ flex: 1;+ overflow-y: auto;+ padding: 4px 12px 0;+ display: flex;+ flex-direction: column;+ gap: 2px;+ outline: none;+ position: relative;+}+.sidebar.compact .roster {+ padding-top: 4px;+}+.roster-row {+ width: 100%;+ border-radius: 10px;+ display: flex;+ transition: background-color var(--hover);+ flex: none;+}+.roster-empty {+ position: absolute;+ inset: 0;+ display: flex;+ flex-direction: column;+ align-items: center;+ justify-content: center;+ gap: 8px;+ pointer-events: none;+}++.sidebar-footer {+ display: flex;+ flex-direction: column;+ gap: 4px;+ padding: 6px 12px 10px;+ font-size: calc(13px * var(--scale));+ font-weight: 500;+ color: var(--text);+ flex: none;+}+.footer-row {+ display: flex;+ align-items: center;+ gap: 10px;+ height: 36px;+ padding: 0 8px;+ border-radius: 10px;+ transition: background-color var(--hover);+}+.footer-row.account {+ height: 38px;+}+.footer-row:hover,+.footer-row.active {+ background: var(--bubble-agent);+}+.footer-icon {+ width: 30px;+ height: 30px;+ border-radius: 50%;+ background: rgba(var(--text-rgb), 0.025);+ display: grid;+ place-items: center;+ flex: none;+}+.profile-avatar {+ width: 28px;+ height: 28px;+ border-radius: 50%;+ background: var(--bubble-user);+ display: grid;+ place-items: center;+ flex: none;+}++.rail-actions {+ display: flex;+ flex-direction: column;+ align-items: center;+ gap: 4px;+ padding: 8px 0 10px;+ flex: none;+}+.rail-profile {+ width: 44px;+ height: 44px;+ border-radius: 12px;+ display: grid;+ place-items: center;+ margin-top: 4px;+}++.sidebar-divider {+ width: 1px;+ flex: none;+ background: var(--border);+ position: relative;+ z-index: 2;+}+.sidebar-divider::after {+ content: '';+ position: absolute;+ top: 0;+ bottom: 0;+ left: -4px;+ width: 9px;+ cursor: col-resize;+}++.detail {+ flex: 1;+ min-width: 420px;+ height: 100%;+ position: relative;+ overflow: hidden;+}+.detail-column {+ display: flex;+ flex-direction: column;+ height: 100%;+}+.empty-detail {+ height: 100%;+ padding: 32px;+ display: flex;+ flex-direction: column;+ align-items: center;+ justify-content: center;+ gap: 14px;+}++.context-layer {+ position: fixed;+ inset: 0;+ z-index: 50;+ pointer-events: auto;+}+.account-panel,+.action-menu {+ position: absolute;+ padding: 7px;+ background: var(--panel);+ box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);+ animation: panel-in var(--fade) both;+}+.account-panel {+ border-radius: 18px;+ transform-origin: bottom left;+}+.action-menu {+ width: 260px;+ border-radius: 14px;+}+@keyframes panel-in {+ from {+ opacity: 0;+ transform: scale(0.97);+ }+}+.panel-row {+ display: flex;+ align-items: center;+ gap: 8px;+ width: 100%;+ height: 30px;+ padding: 0 10px;+ border-radius: 10px;+}+.panel-row.highlight {+ background: rgba(var(--text-rgb), 0.08);+}+.panel-row:disabled {+ opacity: 0.4;+}+.panel-divider {+ height: 0.5px;+ background: rgba(var(--text-rgb), 0.13);+ margin: 5px 10px;+}+.panel-identity {+ display: flex;+ align-items: center;+ gap: 8px;+ height: 30px;+ padding: 0 10px;+ color: var(--secondary);+}diff --git a/apps/desktop/src/renderer/views/marketplace/ConnectionRequestCard.tsx b/apps/desktop/src/renderer/views/marketplace/ConnectionRequestCard.tsxnew file mode 100644index 00000000..03827743--- /dev/null+++ b/apps/desktop/src/renderer/views/marketplace/ConnectionRequestCard.tsx@@ -0,0 +1,4 @@+import type { Entry } from '@shared/models'+export function ConnectionRequestCard(_: { entry: Entry }) {+ return <div style={{ padding: 16 }}>Connection request</div>+}diff --git a/apps/desktop/src/renderer/views/marketplace/MarketplaceView.tsx b/apps/desktop/src/renderer/views/marketplace/MarketplaceView.tsxnew file mode 100644index 00000000..b3860541--- /dev/null+++ b/apps/desktop/src/renderer/views/marketplace/MarketplaceView.tsx@@ -0,0 +1,3 @@+export function MarketplaceView(_: { computers: { id: string; name: string }[]; computer: string; onComputer: (id: string) => void }) {+ return <div style={{ padding: 24 }}>Marketplace</div>+}diff --git a/apps/desktop/src/renderer/views/routines/RoutinesView.tsx b/apps/desktop/src/renderer/views/routines/RoutinesView.tsxnew file mode 100644index 00000000..73339391--- /dev/null+++ b/apps/desktop/src/renderer/views/routines/RoutinesView.tsx@@ -0,0 +1,3 @@+export function RoutinesView(_: { botId: string; initialId: string | null; onClose?: () => void }) {+ return <div>Routines</div>+}diff --git a/apps/desktop/src/renderer/views/settings/ApprovalSheet.tsx b/apps/desktop/src/renderer/views/settings/ApprovalSheet.tsxnew file mode 100644index 00000000..fa768f1c--- /dev/null+++ b/apps/desktop/src/renderer/views/settings/ApprovalSheet.tsx@@ -0,0 +1,4 @@+import type { Approval } from '../../store/app-model'+export function ApprovalSheet(_: { approval: Approval }) {+ return <div style={{ padding: 24 }}>Approval</div>+}diff --git a/apps/desktop/src/renderer/views/settings/SettingsView.tsx b/apps/desktop/src/renderer/views/settings/SettingsView.tsxnew file mode 100644index 00000000..3bdb6371--- /dev/null+++ b/apps/desktop/src/renderer/views/settings/SettingsView.tsx@@ -0,0 +1,4 @@+export type SettingsPage = 'general' | 'usage' | 'computers'+export function SettingsView(_: { page: SettingsPage }) {+ return <div style={{ padding: 24 }}>Settings</div>+}diff --git a/apps/desktop/src/renderer/views/thread/Attachments.tsx b/apps/desktop/src/renderer/views/thread/Attachments.tsxnew file mode 100644index 00000000..6fc6a1d1--- /dev/null+++ b/apps/desktop/src/renderer/views/thread/Attachments.tsx@@ -0,0 +1,90 @@+import { useEffect, useState } from 'react'+import { isImageName, type Attachment } from '@shared/models'+import { Icon } from '../../components/Icon'+import { ModalHeader, Sheet } from '../../components/Overlay'+import { font } from '../../lib/fonts'+import { useStoreRef } from '../../store/context'++/** The symbol for a file by its extension. */+export function attachmentSymbol(name: string) {+ const ext = name.split('.').pop()?.toLowerCase() ?? ''+ if (['png', 'jpg', 'jpeg', 'heic', 'gif', 'webp', 'tiff', 'bmp'].includes(ext)) return 'photo'+ if (ext === 'pdf') return 'doc.richtext'+ if (['zip', 'gz', 'tar', '7z'].includes(ext)) return 'doc.zipper'+ if (['mov', 'mp4', 'm4v'].includes(ext)) return 'film'+ if (['mp3', 'm4a', 'wav', 'aac'].includes(ext)) return 'waveform'+ return 'doc'+}++export function byteCount(bytes: number) {+ if (bytes < 1000) return `${bytes} bytes`+ const units = ['KB', 'MB', 'GB']+ let value = bytes / 1000+ let unit = 0+ while (value >= 1000 && unit < units.length - 1) {+ value /= 1000+ unit+++ }+ return `${value < 10 ? value.toFixed(1) : Math.round(value)} ${units[unit]}`+}++/** Files sent with a message: images as pictures (click for full size), other files as cards. */+export function AttachmentList({ attachments, botId }: { attachments: Attachment[]; botId: string }) {+ const [viewing, setViewing] = useState<Attachment | null>(null)+ return (+ <div style={{ display: 'flex', flexDirection: 'column', alignItems: 'flex-end', gap: 4 }}>+ {attachments.map((file) =>+ isImageName(file.name) ? (+ <button key={file.id} aria-label={file.name} onClick={() => setViewing(file)} style={{ borderRadius: 16, overflow: 'hidden', maxWidth: 220, maxHeight: 280, display: 'flex' }}>+ <AttachmentImage file={file} botId={botId} style={{ maxWidth: 220, maxHeight: 280 }} />+ </button>+ ) : (+ <div key={file.id} style={{ display: 'flex', alignItems: 'center', gap: 8, padding: '8px 12px', background: 'var(--bubble-user)', borderRadius: 16 }}>+ <Icon name={attachmentSymbol(file.name)} size={16} color="var(--secondary)" />+ <div style={{ display: 'flex', flexDirection: 'column', gap: 1, minWidth: 0 }}>+ <span style={{ ...font('subheadline'), color: 'var(--text)', whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis', maxWidth: 200 }}>{file.name}</span>+ <span style={{ ...font('caption2'), color: 'var(--tertiary)' }}>{byteCount(file.size)}</span>+ </div>+ </div>+ ),+ )}+ <Sheet open={viewing !== null} onClose={() => setViewing(null)} width={720} height={560}>+ {viewing ? (+ <div style={{ display: 'flex', flexDirection: 'column', height: '100%', background: 'var(--background)' }}>+ <ModalHeader title={viewing.name} />+ <div style={{ flex: 1, minHeight: 0, padding: 12, display: 'grid', placeItems: 'center' }}>+ <AttachmentImage file={viewing} botId={botId} style={{ maxWidth: '100%', maxHeight: '100%', objectFit: 'contain' }} />+ </div>+ </div>+ ) : null}+ </Sheet>+ </div>+ )+}++/** A sent image, fetched from the computer once and then read from the cache. */+function AttachmentImage({ file, botId, style }: { file: Attachment; botId: string; style?: React.CSSProperties }) {+ const store = useStoreRef()+ const [url, setUrl] = useState<string | null>(null)+ useEffect(() => {+ let revoked = false+ let made: string | null = null+ void store.attachmentData(file.id, botId).then((data) => {+ if (!data || revoked) return+ made = URL.createObjectURL(new Blob([data as BlobPart]))+ setUrl(made)+ })+ return () => {+ revoked = true+ if (made) URL.revokeObjectURL(made)+ }+ }, [store, file.id, botId])+ if (!url) {+ return (+ <div style={{ width: 160, height: 120, borderRadius: 16, background: 'var(--bubble-user)', display: 'grid', placeItems: 'center' }}>+ <Icon name="photo" size={13} color="var(--tertiary)" />+ </div>+ )+ }+ return <img src={url} alt="" style={{ display: 'block', ...style }} />+}diff --git a/apps/desktop/src/renderer/views/thread/ChatRows.tsx b/apps/desktop/src/renderer/views/thread/ChatRows.tsxnew file mode 100644index 00000000..9d6bd6ce--- /dev/null+++ b/apps/desktop/src/renderer/views/thread/ChatRows.tsx@@ -0,0 +1,328 @@+import { memo, useEffect, useState } from 'react'+import { isGroup, isWorking, needsInput, type Bot, type Entry, type ThreadSummary } from '@shared/models'+import { BotAvatar } from '../../components/Avatar'+import { IconButton } from '../../components/Controls'+import { Icon } from '../../components/Icon'+import { AnchoredMenu, ReactionStrip, useContextMenu, type MenuItem, type ReactionPick } from '../../components/Overlay'+import { ThinkingOrb } from '../../components/ThinkingOrb'+import { font, px } from '../../lib/fonts'+import { avatarColor } from '../../lib/theme'+import { useStore as useLiveStore, useStoreRef as useStore } from '../../store/context'+import { QUICK_REACTIONS, type BotStore } from '../../store/bot-store'+import { AttachmentList } from './Attachments'+import { relativeTime } from './chat-items'+import { MarkdownText } from './Markdown'+import { PermissionCard } from './PermissionCard'+import { ConnectionRequestCard } from '../marketplace/ConnectionRequestCard'++export function reactionPick(store: BotStore, entry: Entry): ReactionPick {+ return { emoji: QUICK_REACTIONS, chosen: entry.data.reactions ?? [], toggle: (e) => store.react(entry, e) }+}++/** One chat-visible entry in a chat or a thread, with what can be done to it. */+export const ChatRow = memo(function ChatRow({ entry, groupStart, chat, openTrace, openThread }: {+ entry: Entry+ groupStart: boolean+ chat: Bot | null+ openTrace: () => void+ /** Main chat only: start (or open) the thread on this message. */+ openThread?: (e: Entry) => void+}) {+ const reply = openThread ? () => openThread(entry) : undefined+ const chip = entry.data.thread && entry.data.thread.count > 0 && openThread ? <ThreadChip summary={entry.data.thread} open={() => openThread(entry)} /> : null+ switch (entry.kind) {+ case 'user':+ return (+ <div style={{ display: 'flex', flexDirection: 'column', alignItems: 'flex-end', gap: 4, paddingTop: groupStart ? 12 : 4 }}>+ <UserBubble entry={entry} botWorking={!!chat && isWorking(chat)} reply={reply} />+ <ReactionsRow entry={entry} />+ {chip}+ </div>+ )+ case 'agent':+ return (+ <div style={{ display: 'flex', flexDirection: 'column', alignItems: 'flex-start', gap: 4, paddingTop: groupStart ? 12 : 4 }}>+ {chat && isGroup(chat) && groupStart ? <AuthorLabel botId={entry.data.author} /> : null}+ <AgentBubble entry={entry} openTrace={openTrace} reply={reply} />+ <div style={{ paddingLeft: chat && isGroup(chat) ? 34 : 0, display: 'flex', flexDirection: 'column', gap: 4 }}>+ <ReactionsRow entry={entry} />+ {chip}+ </div>+ </div>+ )+ case 'permission':+ return (+ <div style={{ display: 'flex', flexDirection: 'column', gap: 4, paddingTop: 12 }}>+ {chat && isGroup(chat) ? <AuthorLabel botId={entry.data.author} /> : null}+ <LivePermission entry={entry} />+ </div>+ )+ default:+ if (entry.data.connectionRequest) return <div style={{ paddingTop: 12 }}><ConnectionRequestCard entry={entry} /></div>+ return <div style={{ paddingTop: 10 }}><NoticeRow entry={entry} /></div>+ }+})++/** Follows the store: the card shows a spinner while its answer is on its way. */+function LivePermission({ entry }: { entry: Entry }) {+ const store = useLiveStore()+ return <PermissionCard entry={entry} hostName={store.hostName} answering={store.answering.get(entry.id) ?? null} respond={(o) => store.respond(entry, o)} />+}++/** Who wrote a message in a group: their avatar and name in their color. */+export function AuthorLabel({ botId }: { botId?: string | null }) {+ const store = useStore()+ const bot = botId ? store.bots.get(botId) : undefined+ return (+ <div style={{ display: 'flex', alignItems: 'center', gap: 8 }}>+ {bot ? <BotAvatar bot={bot} size={26} animated={false} /> : null}+ <span style={{ ...font('subheadline', 'medium'), color: bot ? avatarColor(bot.avatarColor) : 'var(--secondary)' }}>{store.authorName(botId)}</span>+ </div>+ )+}++/** Under a message with a thread (Slack's): who replied, how many, how recently. */+export function ThreadChip({ summary, open }: { summary: ThreadSummary; open: () => void }) {+ const store = useStore()+ const authors = summary.authors.map((id) => store.bots.get(id)).filter((b): b is Bot => !!b).slice(0, 3)+ const unread = summary.unread ?? 0+ return (+ <button+ className="press thread-chip"+ onClick={open}+ title="View thread"+ aria-label={`View thread, ${summary.count} ${summary.count === 1 ? 'reply' : 'replies'}${unread > 0 ? `, ${unread} new` : ''}`}+ >+ {authors.length ? (+ <span style={{ display: 'flex' }}>+ {authors.map((b, i) => (+ <span key={b.id} style={{ marginLeft: i ? -6 : 0 }}>+ <BotAvatar bot={b} size={18} animated={false} />+ </span>+ ))}+ </span>+ ) : null}+ <span style={{ ...font('footnote', 'semibold'), color: 'var(--accent)' }}>{summary.count === 1 ? '1 reply' : `${summary.count} replies`}</span>+ {unread > 0 ? (+ <span style={{ ...font('footnote', 'semibold'), color: 'var(--text)' }}>{unread} new</span>+ ) : (+ <span style={{ ...font('footnote'), color: 'var(--tertiary)' }}>{relativeTime.day(summary.lastAt)}</span>+ )}+ <Icon name="chevron.right" size={10} color="var(--tertiary)" />+ </button>+ )+}++/** A message's text with a right-click menu (with quick reactions on top). */+function Bubble({ className, items, reactions, children }: { className: string; items: () => MenuItem[]; reactions: ReactionPick; children: React.ReactNode }) {+ const menu = useContextMenu()+ return (+ <>+ <div className={className} onContextMenu={menu.onContextMenu}>+ {children}+ </div>+ <AnchoredMenu open={menu.open} onClose={menu.close} point={menu.point} items={items} reactions={reactions} />+ </>+ )+}++export function UserBubble({ entry, botWorking, reply }: { entry: Entry; botWorking: boolean; reply?: () => void }) {+ const store = useStore()+ const [hovering, setHovering] = useState(false)+ const status = entry.data.status+ const copy = () => entry.data.text && window.codync.app.copy(entry.data.text)+ return (+ <div className="message user" onMouseEnter={() => setHovering(true)} onMouseLeave={() => setHovering(false)}>+ {entry.data.attachments?.length ? <AttachmentList attachments={entry.data.attachments} botId={entry.botId} /> : null}+ {entry.data.text ? (+ <Bubble+ className="bubble user selectable"+ reactions={reactionPick(store, entry)}+ items={() => [+ { title: 'Copy', icon: 'square.on.square', action: copy },+ ...(reply ? [{ title: 'Reply in thread', icon: 'arrowshape.turn.up.left', action: reply }] : []),+ ]}+ >+ {entry.data.text}+ </Bubble>+ ) : null}+ <div className="message-footer">+ {hovering && (!status || status === 'sent') ? <MessageActions reactions={reactionPick(store, entry)} reply={reply} copy={copy} /> : null}+ <UserStatus entry={entry} botWorking={botWorking} />+ </div>+ </div>+ )+}++function UserStatus({ entry, botWorking }: { entry: Entry; botWorking: boolean }) {+ const store = useStore()+ const caption = { ...font('caption2'), color: 'var(--tertiary)' }+ switch (entry.data.status) {+ case 'sending':+ return <span style={caption}>Sending…</span>+ case 'queued':+ return <span style={caption}>{botWorking ? 'Queued until this response finishes' : 'Queued'}</span>+ case 'failed':+ return (+ <span style={{ display: 'flex', alignItems: 'center', gap: 10, ...font('caption2', 'semibold') }}>+ <span style={{ color: 'var(--danger)' }}>Failed to send</span>+ <button title="Resend" aria-label="Resend" style={{ display: 'flex' }} onClick={() => store.retry(entry)}>+ <Icon name="arrow.clockwise" size={10} weight="semibold" />+ </button>+ <button title="Delete" aria-label="Delete" style={{ display: 'flex' }} onClick={() => store.discard(entry)}>+ <Icon name="trash" size={10} weight="semibold" />+ </button>+ </span>+ )+ case 'cancelled':+ return <span style={caption}>Not sent — stopped</span>+ case 'waiting':+ return (+ <span style={{ display: 'flex', alignItems: 'center', gap: 10, ...font('caption2') }}>+ <span style={{ color: 'var(--tertiary)' }}>Waiting for the computer to come online</span>+ <button title="Don't send" aria-label="Don't send" style={{ display: 'flex' }} onClick={() => store.cancelQueued(entry)}>+ <Icon name="xmark.circle" size={10} />+ </button>+ </span>+ )+ case 'delivering':+ return <span style={caption}>Delivered to the computer</span>+ default:+ return <span style={{ ...font(10), color: 'var(--tertiary)' }}>{relativeTime.time(entry.createdAt)}</span>+ }+}++export function AgentBubble({ entry, openTrace, reply }: { entry: Entry; openTrace: () => void; reply?: () => void }) {+ const store = useStore()+ const [hovering, setHovering] = useState(false)+ const copy = () => entry.data.text && window.codync.app.copy(entry.data.text)+ return (+ <div className="message agent" onMouseEnter={() => setHovering(true)} onMouseLeave={() => setHovering(false)}>+ <Bubble+ className="bubble agent"+ reactions={reactionPick(store, entry)}+ items={() => [+ { title: 'Copy', icon: 'square.on.square', action: copy },+ ...(reply ? [{ title: 'Reply in thread', icon: 'arrowshape.turn.up.left', action: reply }] : []),+ { title: 'Show what it did', icon: 'list.bullet', action: openTrace },+ ]}+ >+ <MarkdownText text={entry.data.text ?? ''} streaming={entry.data.final === false} />+ </Bubble>+ <div className="message-footer" style={{ paddingLeft: 12 }}>+ <span style={{ ...font(10), color: 'var(--tertiary)' }}>{relativeTime.time(entry.createdAt)}</span>+ {hovering ? <MessageActions reactions={reactionPick(store, entry)} reply={reply} trace={openTrace} copy={copy} /> : null}+ </div>+ </div>+ )+}++export function NoticeRow({ entry }: { entry: Entry }) {+ const text = entry.data.text ?? ''+ if (entry.data.callSeconds !== undefined) {+ const s = entry.data.callSeconds+ return (+ <div style={{ display: 'flex', justifyContent: 'center', alignItems: 'center', gap: 6, ...font('footnote'), fontVariantNumeric: 'tabular-nums', color: 'var(--secondary)' }}>+ <Icon name="waveform" size={10} />+ {`${text} · ${String(Math.floor(s / 60)).padStart(2, '0')}:${String(s % 60).padStart(2, '0')}`}+ </div>+ )+ }+ switch (entry.data.style) {+ case 'divider':+ return (+ <div style={{ display: 'flex', alignItems: 'center', gap: 10, padding: '6px 0' }}>+ <div style={{ flex: 1, height: 1, background: 'var(--border)' }} />+ <span style={{ ...font('caption2'), color: 'var(--tertiary)', textAlign: 'center', maxWidth: 260 }}>{text}</span>+ <div style={{ flex: 1, height: 1, background: 'var(--border)' }} />+ </div>+ )+ case 'error':+ return (+ <div style={{ display: 'flex', alignItems: 'flex-start', gap: 8, padding: 12, borderRadius: 12, background: 'color-mix(in srgb, var(--danger) 12%, transparent)' }}>+ <Icon name="exclamationmark.triangle.fill" size={10} color="var(--danger)" />+ <span className="selectable" style={{ ...font('footnote'), color: 'var(--text)' }}>{text}</span>+ </div>+ )+ default:+ return <div style={{ ...font('footnote'), color: 'var(--secondary)', textAlign: 'center' }}>{text}</div>+ }+}++/**+ * The bot's live activity line: a turning orb, what it's doing and for how long. Clicking it+ * unfolds what the bot is thinking right now.+ */+export function WorkingIndicator({ bot, thinking }: { bot: Bot; thinking: string | null }) {+ const [expanded, setExpanded] = useState(false)+ const waiting = needsInput(bot)+ return (+ <div style={{ display: 'flex', alignItems: 'center', gap: 10, paddingRight: 40 }}>+ <button className="working" disabled={!thinking} onClick={() => setExpanded((e) => !e)} aria-expanded={thinking ? expanded : undefined}>+ <span style={{ display: 'flex', alignItems: 'center', gap: 8 }}>+ <ThinkingOrb state={waiting ? 'listening' : 'working'} size={16} color={waiting ? 'var(--warning)' : 'var(--secondary)'} />+ <span style={{ ...font('subheadline'), color: waiting ? 'var(--warning)' : 'var(--secondary)', whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis' }}>{bot.activity || 'Working…'}</span>+ {bot.startedAt ? <Timer since={bot.startedAt} /> : null}+ {thinking ? (+ <span style={{ display: 'flex', transform: `rotate(${expanded ? 180 : 0}deg)`, transition: 'transform var(--layout)' }}>+ <Icon name="chevron.down" size={10} weight="semibold" color="var(--tertiary)" />+ </span>+ ) : null}+ </span>+ {expanded && thinking ? (+ <div className="selectable thinking" style={{ ...font('footnote'), color: 'var(--secondary)' }} ref={(el) => {+ if (el) el.scrollTop = el.scrollHeight+ }}>+ {thinking}+ </div>+ ) : null}+ </button>+ </div>+ )+}++/** `Text(date, style: .timer)`: 0:42, 12:05, 1:02:33. */+function Timer({ since }: { since: number }) {+ const [now, setNow] = useState(Date.now())+ useEffect(() => {+ const timer = setInterval(() => setNow(Date.now()), 1000)+ return () => clearInterval(timer)+ }, [])+ const s = Math.max(0, Math.floor((now - since) / 1000))+ const h = Math.floor(s / 3600)+ const m = Math.floor((s % 3600) / 60)+ const sec = String(s % 60).padStart(2, '0')+ return <span style={{ ...font('footnote'), fontVariantNumeric: 'tabular-nums', color: 'var(--tertiary)' }}>{h ? `${h}:${String(m).padStart(2, '0')}:${sec}` : `${m}:${sec}`}</span>+}++/** The user's reactions under a message; clicking one takes it back. */+export function ReactionsRow({ entry }: { entry: Entry }) {+ const store = useStore()+ const reactions = entry.data.reactions+ if (!reactions?.length) return null+ return (+ <div style={{ display: 'flex', gap: 4 }}>+ {reactions.map((emoji) => (+ <button key={emoji} className="press reaction-chip" title={`Remove ${emoji}`} aria-label={`Remove reaction ${emoji}`} onClick={() => store.react(entry, emoji)}>+ <span style={{ fontSize: px(13) }}>{emoji}</span>+ </button>+ ))}+ </div>+ )+}++/**+ * A message's quick actions, in its footer beside the time while the pointer is over it:+ * reactions, reply in thread, what it did, copy.+ */+function MessageActions({ reactions, reply, trace, copy }: { reactions: ReactionPick; reply?: () => void; trace?: () => void; copy: () => void }) {+ return (+ <div className="message-actions">+ <ReactionStrip pick={reactions} />+ <div style={{ width: 1, height: 12, background: 'rgba(var(--text-rgb), 0.12)', margin: '0 4px' }} />+ {reply ? <IconButton title="Reply in thread" icon="arrowshape.turn.up.left" size={26} onClick={reply} /> : null}+ {trace ? <IconButton title="Show what it did" icon="list.bullet" size={26} onClick={trace} /> : null}+ <IconButton title="Copy" icon="square.on.square" size={26} onClick={copy} />+ </div>+ )+}diff --git a/apps/desktop/src/renderer/views/thread/Composer.tsx b/apps/desktop/src/renderer/views/thread/Composer.tsxnew file mode 100644index 00000000..2c95d7dd--- /dev/null+++ b/apps/desktop/src/renderer/views/thread/Composer.tsx@@ -0,0 +1,193 @@+import { useEffect, useLayoutEffect, useRef, useState } from 'react'+import { isGroup, isWorkingIn, type Bot } from '@shared/models'+import { BotAvatar } from '../../components/Avatar'+import { Icon } from '../../components/Icon'+import { font } from '../../lib/fonts'+import { useStore } from '../../store/context'+import { MAX_FILE_SIZE, type OutgoingFile } from '../../store/bot-store'+import { attachmentSymbol } from './Attachments'++type Trailing = 'interrupt' | 'stop' | 'call' | 'send'++/**+ * The message box under a chat or a thread: send, or stop while the bot (or the group) is+ * working there. In a group, typing `@` suggests its bots.+ */+export function Composer({ botId, thread = null, onCall, onInterrupt }: {+ botId: string+ thread?: string | null+ /** Starts a voice call; while the box is empty it takes the send button's place. */+ onCall?: (() => void) | null+ /** Interrupts the bot while it is speaking in a voice call. */+ onInterrupt?: (() => void) | null+}) {+ const store = useStore()+ const bot = store.bots.get(botId) ?? null+ const [draft, setDraft] = useState('')+ const [files, setFiles] = useState<OutgoingFile[]>([])+ const field = useRef<HTMLTextAreaElement>(null)+ const working = !!bot && isWorkingIn(bot, botId, thread)+ const empty = !draft.trim() && !files.length+ const canSend = !empty && (store.connection.kind === 'online' || (store.canQueue && !files.length))+ const canAttach = !!bot && !isGroup(bot)++ const placeholder = thread ? 'Reply…' : bot && isGroup(bot) ? `Message ${bot.name} · @ to ask one bot` : working ? `Queue a message for ${bot?.name ?? ''}` : `Ask ${bot?.name ?? ''}`++ // A routine's "Try it" fills the box.+ const routineDraft = store.routineDrafts.get(botId)+ useEffect(() => {+ if (thread || routineDraft === undefined) return+ setDraft((d) => (d ? `${d}\n${routineDraft}` : routineDraft))+ store.consumeRoutineDraft(botId)+ field.current?.focus()+ }, [routineDraft, thread, botId, store])++ // One to eight lines, growing with the text.+ useLayoutEffect(() => {+ const el = field.current+ if (!el) return+ el.style.height = '0px'+ const line = parseFloat(getComputedStyle(el).lineHeight) || 15+ el.style.height = `${Math.min(el.scrollHeight, line * 8)}px`+ }, [draft])++ const mentionQuery = (() => {+ if (!bot || !isGroup(bot)) return null+ const at = draft.lastIndexOf('@')+ if (at < 0) return null+ if (at > 0 && !/\s/.test(draft[at - 1]!)) return null+ const query = draft.slice(at + 1)+ return /\n/.test(query) || query.length > 24 ? null : query+ })()+ const suggestions: Bot[] =+ mentionQuery !== null && bot ? store.members(bot).filter((m) => !mentionQuery || m.name.toLowerCase().includes(mentionQuery.toLowerCase())) : []++ const mention = (member: Bot) => {+ const at = draft.lastIndexOf('@')+ if (at < 0) return+ setDraft(`${draft.slice(0, at)}@${member.name} `)+ field.current?.focus()+ }++ const append = (incoming: { name: string; data: Uint8Array }[]) => {+ if (!canAttach) return+ const accepted: OutgoingFile[] = []+ for (const f of incoming) {+ if (f.data.length > MAX_FILE_SIZE) {+ store.setError(`${f.name} is larger than 100 MB.`)+ continue+ }+ accepted.push({ id: crypto.randomUUID(), name: f.name, data: f.data })+ }+ setFiles((list) => [...list, ...accepted])+ }++ const submit = () => {+ if (!canSend) return+ store.send(draft, botId, thread, files)+ setDraft('')+ setFiles([])+ }++ const trailing: Trailing = onInterrupt && !draft && !files.length ? 'interrupt' : working && !draft ? 'stop' : onCall && !draft && !files.length ? 'call' : 'send'+ const [symbol, label, size] = ({+ interrupt: ['stop.fill', 'Interrupt', 12],+ stop: ['stop.fill', 'Stop', 12],+ call: ['waveform', 'Call', 15],+ send: ['arrow.up', 'Send', 14],+ } as const)[trailing]+ const fill = trailing === 'interrupt' ? 'var(--danger)' : trailing === 'send' ? (canSend ? 'var(--accent-fill)' : 'var(--accent-dim)') : 'var(--accent-fill)'+ const ink = trailing === 'interrupt' ? '#fff' : trailing === 'send' ? (canSend ? 'var(--on-accent)' : 'var(--tertiary)') : 'var(--on-accent)'+ const enabled = trailing !== 'send' || canSend++ return (+ <div style={{ display: 'flex', flexDirection: 'column', gap: 6 }}>+ {suggestions.length ? (+ <div className="mentions">+ {suggestions.map((m) => (+ <button key={m.id} className="press mention" onClick={() => mention(m)}>+ <BotAvatar bot={m} size={18} animated={false} />+ <span style={{ ...font('subheadline'), color: 'var(--text)' }}>{m.name}</span>+ </button>+ ))}+ </div>+ ) : null}+ <div+ className="composer"+ onDragOver={(e) => {+ if (canAttach && e.dataTransfer.types.includes('Files')) e.preventDefault()+ }}+ onDrop={(e) => {+ if (!canAttach) return+ e.preventDefault()+ void Promise.all([...e.dataTransfer.files].map(async (f) => ({ name: f.name, data: new Uint8Array(await f.arrayBuffer()) }))).then(append)+ }}+ >+ {canAttach ? (+ <button className="press composer-add" aria-label="Add files" title="Add files" onClick={() => void window.codync.app.pickFiles().then(append)}>+ <Icon name="plus" size={13} weight="medium" color="var(--text)" />+ </button>+ ) : null}+ <div className="composer-surface">+ {files.length ? (+ <div className="file-chips">+ {files.map((f) => (+ <span key={f.id} className="file-chip">+ <Icon name={attachmentSymbol(f.name)} size={10} color="var(--secondary)" />+ <span style={{ ...font('footnote'), color: 'var(--text)', maxWidth: 160, whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis' }}>{f.name}</span>+ <button aria-label={`Remove ${f.name}`} title="Remove" style={{ display: 'flex' }} onClick={() => setFiles((list) => list.filter((x) => x.id !== f.id))}>+ <Icon name="xmark" size={10} weight="bold" color="var(--secondary)" />+ </button>+ </span>+ ))}+ </div>+ ) : null}+ <div className="composer-box">+ <textarea+ ref={field}+ rows={1}+ value={draft}+ placeholder={placeholder}+ spellCheck+ onChange={(e) => setDraft(e.target.value)}+ onKeyDown={(e) => {+ // Return sends, Shift-Return adds a line; an input method's Return picks its candidate.+ if (e.key === 'Enter' && !e.shiftKey && !e.nativeEvent.isComposing && e.keyCode !== 229) {+ e.preventDefault()+ submit()+ }+ }}+ onPaste={(e) => {+ // ⌘V with a copied file or image: attach it (the field alone would paste a name).+ if (!canAttach) return+ const types = [...e.clipboardData.types]+ const hasFiles = types.includes('Files')+ if (!hasFiles || (types.includes('text/plain') && !e.clipboardData.files.length)) return+ e.preventDefault()+ void window.codync.app.readClipboardFiles().then((picked) => {+ if (picked.length) return append(picked)+ return Promise.all([...e.clipboardData.files].map(async (f) => ({ name: f.name || `pasted-${Date.now()}.png`, data: new Uint8Array(await f.arrayBuffer()) }))).then(append)+ })+ }}+ />+ <button+ className="press composer-send"+ disabled={!enabled}+ aria-label={label}+ title={label}+ style={{ background: fill, color: ink, width: trailing === 'call' ? 28 * 1.35 : 28 }}+ onClick={() => {+ if (trailing === 'interrupt') onInterrupt?.()+ else if (trailing === 'stop') store.stop(botId)+ else if (trailing === 'call') onCall?.()+ else submit()+ }}+ >+ <Icon key={symbol} name={symbol} size={size} weight="bold" className="symbol-swap" />+ </button>+ </div>+ </div>+ </div>+ </div>+ )+}diff --git a/apps/desktop/src/renderer/views/thread/DetailsPanel.tsx b/apps/desktop/src/renderer/views/thread/DetailsPanel.tsxnew file mode 100644index 00000000..27f96fe6--- /dev/null+++ b/apps/desktop/src/renderer/views/thread/DetailsPanel.tsx@@ -0,0 +1,173 @@+import type { ReactNode } from 'react'+import { folderName, isGroup, isWorking, type Bot } from '@shared/models'+import { AgentIcon } from '../../components/AgentIcon'+import { BotAvatar } from '../../components/Avatar'+import { CardSection } from '../../components/Controls'+import { Icon } from '../../components/Icon'+import { font } from '../../lib/fonts'+import { useStore } from '../../store/context'+import { BotSettingsPanel } from '../bots/BotEditorView'+import { ComputerBadge } from '../ComputerBadge'+import { RoutinesView } from '../routines/RoutinesView'++const isMac = window.codync.platform === 'darwin'++/** The inspector beside a conversation: the computer, the agent, and the bot's settings. */+export function DetailsPanel({ botId, routineId, editing, setEditing, editGroup, share, close }: {+ botId: string+ routineId: string | null+ editing: boolean+ setEditing: (on: boolean) => void+ editGroup: () => void+ share: () => void+ close: () => void+}) {+ const store = useStore()+ const bot = store.bots.get(botId) ?? null+ let header: ReactNode+ if (editing) {+ header = (+ <>+ <RoundButton label="Back to details" symbol="chevron.left" action={() => setEditing(false)} />+ <PanelTitle>Settings</PanelTitle>+ <span style={{ flex: 1 }} />+ </>+ )+ } else if (bot && isGroup(bot)) {+ header = (+ <>+ <PanelTitle>Members</PanelTitle>+ <span style={{ flex: 1 }} />+ <RoundButton label="Edit group" symbol="gearshape" action={editGroup} />+ </>+ )+ } else {+ header = (+ <>+ <PanelTitle>Details</PanelTitle>+ <span style={{ flex: 1 }} />+ <RoundButton label="Create template" symbol="square.and.arrow.up" action={share} />+ <RoundButton label="Bot settings" symbol="gearshape" action={() => setEditing(true)} />+ </>+ )+ }+ return (+ <div style={{ display: 'flex', flexDirection: 'column', height: '100%', background: 'var(--background)' }}>+ <div style={{ display: 'flex', alignItems: 'center', gap: 8, height: 54, padding: '0 12px', flex: 'none' }}>+ {header}+ <RoundButton label="Close details" symbol="chevron.right.2" action={close} />+ </div>+ <div style={{ flex: 1, minHeight: 0, position: 'relative', overflow: 'hidden' }}>+ {bot && isGroup(bot) ? (+ <GroupMembersList group={bot} />+ ) : editing ? (+ <div className="panel-slide from-trailing" style={{ height: '100%' }}>+ <BotSettingsPanel botId={botId} />+ </div>+ ) : (+ <div className="panel-slide from-leading" style={{ height: '100%', overflowY: 'auto' }}>+ <div style={{ display: 'flex', flexDirection: 'column', gap: 28, padding: '4px 16px 24px' }}>+ <ComputerSummary botId={botId} />+ <RoutinesView botId={botId} initialId={routineId} />+ {bot ? <AgentSummary bot={bot} /> : null}+ </div>+ </div>+ )}+ </div>+ </div>+ )+}++function PanelTitle({ children }: { children: ReactNode }) {+ return <span style={{ ...font(15, 'semibold'), color: 'var(--text)', paddingLeft: 4 }}>{children}</span>+}++/** A round action in the panel's header, frosted like the chat's title pill (Grok's style). */+function RoundButton({ label, symbol, action }: { label: string; symbol: string; action: () => void }) {+ return (+ <button className="press round-button" onClick={action} aria-label={label} title={label}>+ <Icon name={symbol} size={13} weight="medium" color="var(--text)" />+ </button>+ )+}++/** A group's bots; clicking one opens its own chat. */+function GroupMembersList({ group }: { group: Bot }) {+ const store = useStore()+ return (+ <div style={{ height: '100%', overflowY: 'auto', padding: '0 16px' }}>+ <div style={{ ...font(13, 'semibold'), paddingBottom: 6 }}>{group.members.length} bots</div>+ {store.members(group).map((bot) => (+ <button key={bot.id} className="press" title={`Open ${bot.name}'s own chat`} onClick={() => store.setSelection(bot.id)} style={{ display: 'flex', alignItems: 'center', gap: 10, padding: '6px 0', width: '100%' }}>+ <BotAvatar bot={bot} size={26} />+ <span style={{ display: 'flex', flexDirection: 'column', gap: 1, minWidth: 0, flex: 1 }}>+ <span style={{ ...font(13), color: 'var(--text)' }}>{bot.name}</span>+ <span style={{ ...font(11), color: 'var(--tertiary)', whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis' }}>{isWorking(bot) ? bot.activity || 'Working…' : folderName(bot)}</span>+ </span>+ </button>+ ))}+ </div>+ )+}++function ComputerSummary({ botId }: { botId: string }) {+ const store = useStore()+ const screen = store.screen+ const ready = !store.isOffline && !!screen?.enabled && screen.connected && screen.capture+ const symbol = !screen?.enabled ? 'power' : !screen.connected ? 'arrow.triangle.2.circlepath' : !screen.capture ? 'exclamationmark.circle' : screen.agentBot === botId ? 'cursorarrow.motionlines' : 'checkmark.circle'+ const status = !screen?.enabled+ ? 'Remote screen is off'+ : !screen.connected+ ? 'Connecting to computer…'+ : !screen.capture+ ? 'Screen recording permission needed'+ : screen.agentBot === botId+ ? `This bot is using your ${isMac ? 'Mac' : 'computer'}`+ : 'Ready to connect'+ return (+ <div style={{ display: 'flex', flexDirection: 'column', gap: 16, padding: 16, background: 'var(--surface)', borderRadius: 16 }}>+ <div style={{ display: 'flex', alignItems: 'center', gap: 12 }}>+ <ComputerBadge computer={store.computer} size={32} />+ <div style={{ display: 'flex', flexDirection: 'column', gap: 4, minWidth: 0 }}>+ <span style={{ ...font(15, 'medium'), color: 'var(--text)', overflow: 'hidden', display: '-webkit-box', WebkitLineClamp: 2, WebkitBoxOrient: 'vertical' }}>{store.hostName}</span>+ <span style={{ ...font(13), color: 'var(--secondary)' }}>Remote screen</span>+ </div>+ </div>+ {!store.isOffline ? (+ <span style={{ display: 'flex', alignItems: 'center', gap: 6, ...font(13), color: 'var(--text)' }}>+ <Icon name={symbol} size={13} />+ {status}+ </span>+ ) : null}+ {ready ? <div style={{ ...font(12), color: 'var(--secondary)', marginTop: -8 }}>View and control this {isMac ? 'Mac' : 'computer'} from your iPhone.</div> : null}+ </div>+ )+}++function InfoRow({ label, children, title }: { label: string; children: ReactNode; title?: string }) {+ return (+ <div style={{ display: 'flex', alignItems: 'center', gap: 12, ...font(13) }}>+ <span style={{ color: 'var(--secondary)' }}>{label}</span>+ <span style={{ flex: 1, minWidth: 8 }} />+ <span title={title} style={{ color: 'var(--text)', whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis', display: 'flex', alignItems: 'center', gap: 6, minWidth: 0 }}>+ {children}+ </span>+ </div>+ )+}++function AgentSummary({ bot }: { bot: Bot }) {+ const store = useStore()+ return (+ <CardSection title="Agent" footer={bot.description || null}>+ <InfoRow label="Runtime">+ <AgentIcon registry={store.hello?.backends.find((b) => b.id === bot.backend)?.registry} size={14} />+ <span>{store.backendName(bot.backend)}</span>+ </InfoRow>+ <InfoRow label={bot.managedWorkspace ? 'Workspace' : 'Folder'} title={bot.managedWorkspace ? 'Personal workspace, managed by Codync' : bot.cwd}>+ {bot.managedWorkspace ? 'Personal' : folderName(bot)}+ </InfoRow>+ {bot.model ? <InfoRow label="Model">{bot.model}</InfoRow> : null}+ </CardSection>+ )+}diff --git a/apps/desktop/src/renderer/views/thread/Markdown.tsx b/apps/desktop/src/renderer/views/thread/Markdown.tsxnew file mode 100644index 00000000..26568de3--- /dev/null+++ b/apps/desktop/src/renderer/views/thread/Markdown.tsx@@ -0,0 +1,136 @@+import { memo, type ReactNode } from 'react'+import { px } from '../../lib/fonts'++// The Mac's Markdown renderer (kit MarkdownText.swift): paragraphs, headings, lists, quotes and+// fenced code; inline styling like `AttributedString(markdown:)` (inline only, whitespace kept).++type Block =+ | { kind: 'paragraph'; text: string }+ | { kind: 'heading'; text: string; level: number }+ | { kind: 'bullet'; text: string; marker: string }+ | { kind: 'quote'; text: string }+ | { kind: 'code'; text: string; language: string }++export function parseMarkdown(source: string): Block[] {+ const blocks: Block[] = []+ let paragraph: string[] = []+ let code: string[] | null = null+ let language = ''+ const flush = () => {+ if (paragraph.length) blocks.push({ kind: 'paragraph', text: paragraph.join('\n') })+ paragraph = []+ }+ for (const raw of source.split('\n')) {+ const line = raw.trim()+ if (line.startsWith('```')) {+ if (code) {+ blocks.push({ kind: 'code', text: code.join('\n'), language })+ code = null+ } else {+ flush()+ code = []+ language = line.slice(3)+ }+ continue+ }+ if (code) {+ code.push(raw)+ continue+ }+ const heading = /^(#+) (.*)$/.exec(line)+ const ordered = /^(\d+\.) (.*)$/.exec(line)+ if (!line) flush()+ else if (heading) {+ flush()+ blocks.push({ kind: 'heading', text: heading[2]!.trim(), level: heading[1]!.length })+ } else if (line.startsWith('- ') || line.startsWith('* ') || line.startsWith('• ')) {+ flush()+ blocks.push({ kind: 'bullet', text: line.slice(2), marker: '•' })+ } else if (ordered) {+ flush()+ blocks.push({ kind: 'bullet', text: ordered[2]!, marker: ordered[1]! })+ } else if (line.startsWith('> ')) {+ flush()+ blocks.push({ kind: 'quote', text: line.slice(2) })+ } else paragraph.push(raw)+ }+ if (code) blocks.push({ kind: 'code', text: code.join('\n'), language })+ flush()+ return blocks+}++/** Inline Markdown: `code`, **bold**, *italic*, ~~strike~~, [links](url). */+export function inline(text: string, key = 'i'): ReactNode[] {+ const out: ReactNode[] = []+ // Code spans first: nothing inside them is styled.+ const parts = text.split(/(`[^`\n]+`)/)+ parts.forEach((part, i) => {+ if (part.startsWith('`') && part.endsWith('`') && part.length > 2) {+ out.push(<code key={`${key}${i}`} style={{ fontFamily: 'var(--mono)', fontSize: '0.92em' }}>{part.slice(1, -1)}</code>)+ } else if (part) {+ out.push(...emphasis(part, `${key}${i}-`))+ }+ })+ return out+}++const pattern = /\[([^\]]+)\]\(([^)\s]+)\)|\*\*([^*]+)\*\*|__([^_]+)__|~~([^~]+)~~|\*([^*\n]+)\*|(?<![\w])_([^_\n]+)_(?![\w])/+function emphasis(text: string, key: string): ReactNode[] {+ const out: ReactNode[] = []+ let rest = text+ let n = 0+ while (rest) {+ const m = pattern.exec(rest)+ if (!m) {+ out.push(rest)+ break+ }+ if (m.index > 0) out.push(rest.slice(0, m.index))+ const k = `${key}${n++}`+ if (m[1] !== undefined) {+ const url = m[2]!+ out.push(+ <a key={k} href={url} onClick={(e) => { e.preventDefault(); window.codync.app.openExternal(url) }} style={{ color: 'var(--accent)', textDecoration: 'none', cursor: 'pointer' }}>+ {emphasis(m[1], `${k}-`)}+ </a>,+ )+ } else if (m[3] !== undefined || m[4] !== undefined) out.push(<strong key={k} style={{ fontWeight: 600 }}>{emphasis(m[3] ?? m[4]!, `${k}-`)}</strong>)+ else if (m[5] !== undefined) out.push(<s key={k}>{emphasis(m[5], `${k}-`)}</s>)+ else out.push(<em key={k}>{emphasis(m[6] ?? m[7]!, `${k}-`)}</em>)+ rest = rest.slice(m.index + m[0].length)+ }+ return out+}++const headingSize = (level: number) => (level === 1 ? 15 : level === 2 ? 13 : 11)++export const MarkdownText = memo(function MarkdownText({ text }: { text: string; streaming?: boolean }) {+ const blocks = parseMarkdown(text)+ return (+ <div className="markdown selectable" style={{ display: 'flex', flexDirection: 'column', gap: 8, minWidth: 0 }}>+ {blocks.map((b, i) => {+ switch (b.kind) {+ case 'paragraph':+ return <div key={i} style={{ fontSize: 'var(--conversation)', color: 'var(--text)', whiteSpace: 'pre-wrap', overflowWrap: 'anywhere' }}>{inline(b.text)}</div>+ case 'heading':+ return <div key={i} style={{ fontSize: px(headingSize(b.level)), fontWeight: b.level === 2 ? 600 : 700, color: 'var(--text)' }}>{inline(b.text)}</div>+ case 'bullet':+ return (+ <div key={i} style={{ display: 'flex', alignItems: 'baseline', gap: 6, fontSize: 'var(--conversation)' }}>+ <span style={{ color: 'var(--secondary)', fontVariantNumeric: 'tabular-nums', flex: 'none' }}>{b.marker}</span>+ <span style={{ color: 'var(--text)', whiteSpace: 'pre-wrap', overflowWrap: 'anywhere', minWidth: 0 }}>{inline(b.text)}</span>+ </div>+ )+ case 'quote':+ return <div key={i} style={{ fontSize: 'var(--conversation)', color: 'var(--secondary)', paddingLeft: 10, boxShadow: 'inset 3px 0 0 var(--border)', whiteSpace: 'pre-wrap' }}>{inline(b.text)}</div>+ case 'code':+ return (+ <div key={i} style={{ background: 'var(--code-background)', borderRadius: 8, overflowX: 'auto' }}>+ <pre style={{ margin: 0, padding: 10, fontFamily: 'var(--mono)', fontSize: px(10), color: 'var(--text)', width: 'max-content' }}>{b.text}</pre>+ </div>+ )+ }+ })}+ </div>+ )+})diff --git a/apps/desktop/src/renderer/views/thread/PermissionCard.tsx b/apps/desktop/src/renderer/views/thread/PermissionCard.tsxnew file mode 100644index 00000000..6d5689f7--- /dev/null+++ b/apps/desktop/src/renderer/views/thread/PermissionCard.tsx@@ -0,0 +1,157 @@+import { useState } from 'react'+import type { Entry, FileDiff, PermissionOption } from '@shared/models'+import { Disclosure, Spinner } from '../../components/Controls'+import { Icon } from '../../components/Icon'+import { font, px } from '../../lib/fonts'++const headline = (toolKind?: string) => {+ switch (toolKind) {+ case 'execute':+ return 'Wants to run a command'+ case 'edit':+ case 'delete':+ case 'move':+ return 'Wants to change files'+ case 'fetch':+ return 'Wants to access the web'+ case 'read':+ case 'search':+ return 'Wants to read files'+ default:+ return 'Wants to use a tool'+ }+}++const rank: Record<string, number> = { allow_once: 0, allow_always: 1, reject_once: 2, reject_always: 3 }++function optionLabel(o: PermissionOption) {+ switch (o.kind) {+ case 'allow_once':+ return 'Allow once'+ case 'allow_always':+ return 'Always allow'+ case 'reject_once':+ return 'Deny'+ case 'reject_always':+ return 'Never'+ default:+ return o.name+ }+}++/** Approval card in Grok Bot's choice-card style: what the agent wants, where it runs, the answers. */+export function PermissionCard({ entry, hostName, answering, respond }: { entry: Entry; hostName: string; answering: string | null; respond: (option: string | null) => void }) {+ const [expanded, setExpanded] = useState(false)+ const d = entry.data+ const pending = d.status === 'pending'+ const hasDetail = !!d.command || !!d.detail || !!d.diffs?.length+ const options = [...(d.options ?? [])].sort((a, b) => (rank[a.kind] ?? 9) - (rank[b.kind] ?? 9))+ const cwd = d.cwd ? ` · ${d.cwd.split('/').filter(Boolean).pop() ?? d.cwd}` : ''+ return (+ <div style={{ paddingRight: 40 }}>+ <div style={{ display: 'flex', flexDirection: 'column', gap: 10, padding: 16, background: 'var(--bubble-agent)', borderRadius: 22 }}>+ <div style={{ display: 'flex', alignItems: 'center', gap: 8 }}>+ <span style={{ ...font('headline'), color: 'var(--text)' }}>{headline(d.toolKind)}</span>+ {pending ? <span style={{ width: 7, height: 7, borderRadius: '50%', background: 'var(--warning)' }} /> : null}+ </div>+ <div+ className="selectable"+ style={{+ ...font('subheadline', undefined, 'monospaced'), color: 'var(--secondary)', overflowWrap: 'anywhere',+ ...(expanded ? {} : { display: '-webkit-box', WebkitLineClamp: 3, WebkitBoxOrient: 'vertical', overflow: 'hidden' }),+ }}+ >+ {d.title ?? ''}+ </div>+ <div style={{ display: 'flex', alignItems: 'center', gap: 6, ...font('caption'), color: 'var(--tertiary)' }}>+ <Icon name="desktopcomputer" size={10} />+ {`Runs on ${hostName}${cwd}`}+ </div>+ {hasDetail ? (+ <Disclosure expanded={expanded} onToggle={() => setExpanded((e) => !e)} label={<span style={{ ...font('caption', 'medium'), color: 'var(--secondary)' }}>Details</span>}>+ <div style={{ display: 'flex', flexDirection: 'column', gap: 8, paddingTop: 6 }}>+ {d.command ? <CodeBox text={d.command} /> : null}+ {d.detail ? <CodeBox text={d.detail.slice(0, 2000)} /> : null}+ {(d.diffs ?? []).map((diff, i) => <DiffView key={i} diff={diff} />)}+ </div>+ </Disclosure>+ ) : null}+ {pending ? (+ <div style={{ background: 'var(--background)', borderRadius: 14, marginTop: 4 }}>+ {options.map((o, i) => (+ <div key={o.optionId}>+ {i > 0 ? <div style={{ height: 0.5, background: 'var(--border)' }} /> : null}+ <button+ disabled={answering !== null}+ onClick={() => respond(o.optionId)}+ style={{ display: 'flex', alignItems: 'center', gap: 8, width: '100%', minHeight: 46, padding: '0 14px', opacity: answering === null || answering === o.optionId ? 1 : 0.4 }}+ >+ <span style={{ ...font('body', o.kind === 'allow_once' ? 'semibold' : 'regular'), color: o.kind.startsWith('allow') ? 'var(--text)' : 'var(--danger)', flex: 1 }}>{optionLabel(o)}</span>+ {answering === o.optionId ? <Spinner size={14} /> : null}+ </button>+ </div>+ ))}+ </div>+ ) : (+ <div style={{ ...font('caption', 'medium'), color: 'var(--secondary)' }}>{outcome(entry)}</div>+ )}+ </div>+ </div>+ )+}++function outcome(entry: Entry) {+ const d = entry.data+ switch (d.status) {+ case 'answered': {+ const chosen = d.options?.find((o) => o.optionId === d.selected)+ switch (chosen?.kind) {+ case 'allow_once':+ return 'Allowed once'+ case 'allow_always':+ return 'Always allowed'+ case 'reject_once':+ return 'Denied'+ case 'reject_always':+ return 'Never allowed'+ default:+ return chosen?.name ?? 'Answered'+ }+ }+ case 'cancelled':+ return 'Cancelled'+ default:+ return 'Expired — the agent moved on'+ }+}++export function CodeBox({ text }: { text: string }) {+ return (+ <div style={{ background: 'var(--code-background)', borderRadius: 8, overflow: 'auto', maxHeight: 240 }}>+ <pre className="selectable" style={{ margin: 0, padding: 8, fontFamily: 'var(--mono)', fontSize: px(10), color: 'var(--text)', width: 'max-content' }}>{text}</pre>+ </div>+ )+}++export function DiffView({ diff }: { diff: FileDiff }) {+ const lines = diff.patch.split('\n').slice(0, 80)+ return (+ <div style={{ display: 'flex', flexDirection: 'column', gap: 4 }}>+ <div style={{ display: 'flex', alignItems: 'center', gap: 6, ...font('caption', undefined, 'monospaced'), color: 'var(--secondary)' }}>+ <Icon name={diff.isNew ? 'doc.badge.plus' : 'doc.text'} size={10} />+ <span style={{ flex: 1, whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis' }}>{diff.path.split('/').pop()}</span>+ <span style={{ color: 'var(--added)' }}>+{diff.added}</span>+ <span style={{ color: 'var(--removed)' }}>−{diff.removed}</span>+ </div>+ <div style={{ background: 'var(--code-background)', borderRadius: 8, overflow: 'auto', maxHeight: 260 }}>+ <div style={{ padding: 8, fontFamily: 'var(--mono)', fontSize: px(10), width: 'max-content' }}>+ {lines.map((line, i) => (+ <div key={i} style={{ whiteSpace: 'pre', color: line.startsWith('+') ? 'var(--added)' : line.startsWith('-') ? 'var(--removed)' : 'var(--secondary)' }}>+ {line || ' '}+ </div>+ ))}+ </div>+ </div>+ </div>+ )+}diff --git a/apps/desktop/src/renderer/views/thread/RepliesView.tsx b/apps/desktop/src/renderer/views/thread/RepliesView.tsxnew file mode 100644index 00000000..2d6496ae--- /dev/null+++ b/apps/desktop/src/renderer/views/thread/RepliesView.tsx@@ -0,0 +1,87 @@+import { useEffect, useLayoutEffect, useRef, useState } from 'react'+import { isWorkingIn } from '@shared/models'+import { IconButton } from '../../components/Controls'+import { Sheet } from '../../components/Overlay'+import { font } from '../../lib/fonts'+import { useStore } from '../../store/context'+import { UpdateNeededCard } from '../UpdateNeededCard'+import { buildChat } from './chat-items'+import { ChatRow, WorkingIndicator } from './ChatRows'+import { Composer } from './Composer'+import { TraceView } from './TraceView'+import { useReading } from './reading'++/**+ * A thread (Slack's "reply in thread"): the message it started on, its replies and a box to+ * continue there. In a bot's own chat the thread is a separate branch of the conversation (its+ * own session, forked from the chat); in a group the room answers inside the thread.+ */+export function RepliesView({ botId, rootId, close }: { botId: string; rootId: string; close: () => void }) {+ const store = useStore()+ const chat = store.bots.get(botId) ?? null+ const root = store.allEntries(botId).find((e) => e.id === rootId)+ const replies = store.replies(botId, rootId)+ const live = !!chat && isWorkingIn(chat, botId, rootId) && !store.isOffline+ const [showTrace, setShowTrace] = useState(false)+ const scroller = useRef<HTMLDivElement>(null)+ useReading(store, botId, rootId)++ useEffect(() => {+ void store.loadThread(botId, rootId)+ }, [store, botId, rootId])++ useLayoutEffect(() => {+ const el = scroller.current+ if (el) el.scrollTop = el.scrollHeight+ }, [replies.length, replies[replies.length - 1]?.data.text, live])++ const openTrace = () => setShowTrace(true)+ return (+ <div style={{ display: 'flex', flexDirection: 'column', height: '100%', background: 'var(--background)' }}>+ <div style={{ display: 'flex', alignItems: 'center', gap: 8, height: 48, padding: '0 10px 0 16px', flex: 'none' }}>+ <div style={{ display: 'flex', flexDirection: 'column', flex: 1, minWidth: 0 }}>+ <span style={{ ...font('compactBody', 'semibold'), color: 'var(--text)' }}>Thread</span>+ <span style={{ ...font('caption'), color: 'var(--tertiary)', whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis' }}>{chat?.name ?? ''}</span>+ </div>+ <IconButton title="Close thread" icon="xmark" onClick={close} />+ </div>+ <div style={{ height: 0.5, background: 'var(--border)', flex: 'none' }} />+ <div ref={scroller} style={{ flex: 1, overflowY: 'auto' }}>+ <div style={{ padding: '8px 16px 0' }}>+ {root ? (+ <>+ <ChatRow entry={root} groupStart chat={chat} openTrace={openTrace} />+ <div style={{ display: 'flex', alignItems: 'center', gap: 10, padding: '12px 0' }}>+ <span style={{ ...font('caption'), color: 'var(--tertiary)', whiteSpace: 'nowrap' }}>+ {replies.length === 0 ? 'No replies yet' : replies.length === 1 ? '1 reply' : `${replies.length} replies`}+ </span>+ <div style={{ flex: 1, height: 1, background: 'var(--border)' }} />+ </div>+ </>+ ) : null}+ {buildChat(replies, live).map((item) =>+ item.kind === 'entry' ? <ChatRow key={item.id} entry={item.entry} groupStart={item.groupStart} chat={chat} openTrace={openTrace} /> : null,+ )}+ {chat && live ? (+ <div style={{ paddingTop: 6 }}>+ <WorkingIndicator bot={chat} thinking={store.currentThinking(botId, rootId)} />+ </div>+ ) : null}+ <div style={{ height: 8 }} />+ </div>+ </div>+ <div style={{ flex: 'none' }}>+ {store.mismatch ? (+ <div style={{ padding: '0 16px 8px' }}>+ <UpdateNeededCard />+ </div>+ ) : (+ <Composer botId={botId} thread={rootId} />+ )}+ </div>+ <Sheet open={showTrace} onClose={() => setShowTrace(false)} width={620} height={560}>+ <TraceView botId={botId} thread={rootId} />+ </Sheet>+ </div>+ )+}diff --git a/apps/desktop/src/renderer/views/thread/ThreadView.tsx b/apps/desktop/src/renderer/views/thread/ThreadView.tsxnew file mode 100644index 00000000..d06653d4--- /dev/null+++ b/apps/desktop/src/renderer/views/thread/ThreadView.tsx@@ -0,0 +1,356 @@+import { useCallback, useEffect, useLayoutEffect, useRef, useState, type ReactNode } from 'react'+import { draftOf, isGroup, isWorkingIn, type Bot, type BotDraft } from '@shared/models'+import { BotAvatar, GroupAvatar } from '../../components/Avatar'+import { IconButton, Spinner } from '../../components/Controls'+import { Icon } from '../../components/Icon'+import { Dialog, Sheet } from '../../components/Overlay'+import { font } from '../../lib/fonts'+import { useStore } from '../../store/context'+import { UpdateNeededCard } from '../UpdateNeededCard'+import { buildChat, relativeTime, type ChatItem } from './chat-items'+import { ChatRow, WorkingIndicator } from './ChatRows'+import { Composer } from './Composer'+import { DetailsPanel } from './DetailsPanel'+import { RepliesView } from './RepliesView'+import { TraceView } from './TraceView'+import { useReading } from './reading'+import { GroupEditorView } from '../bots/GroupEditorView'+import { BotTemplateView } from '../bots/BotTemplateView'+import { RoutinesView } from '../routines/RoutinesView'+import { CallView } from '../call/CallView'+import './thread.css'++const WIDE = 680++/**+ * One endless conversation with a bot or a group chat. Only deliberate messages show here; tool+ * calls and thinking live in the "Full conversation" sheet. Any message can start a thread,+ * which opens beside the chat.+ */+export function ThreadView({ botId }: { botId: string }) {+ const store = useStore()+ const bot = store.bots.get(botId) ?? null+ const [showTrace, setShowTrace] = useState(false)+ const [openThread, setOpenThread] = useState<string | null>(null)+ const [editingGroup, setEditingGroup] = useState(false)+ const [templateDraft, setTemplateDraft] = useState<BotDraft | null>(null)+ const [confirmNewSession, setConfirmNewSession] = useState(false)+ const [confirmDelete, setConfirmDelete] = useState<Bot | null>(null)+ const [showSettings, setShowSettings] = useState(true)+ const [editingDetails, setEditingDetails] = useState(false)+ const [compactDetails, setCompactDetails] = useState(false)+ const [calling, setCalling] = useState(false)+ const [callSpeaking, setCallSpeaking] = useState(false)+ const interruptCall = useRef<(() => void) | null>(null)+ const [routineId, setRoutineId] = useState<string | null>(null)+ const [routineRequest, setRoutineRequest] = useState(0)+ const [showRoutines, setShowRoutines] = useState(false)+ const root = useRef<HTMLDivElement>(null)+ const [width, setWidth] = useState(800)+ useReading(store, botId, null)++ useLayoutEffect(() => {+ const el = root.current+ if (!el) return+ const observer = new ResizeObserver(([e]) => setWidth(e!.contentRect.width))+ observer.observe(el)+ return () => observer.disconnect()+ }, [])++ const wide = width >= WIDE+ const toggleDetails = useCallback(() => {+ if (!wide) setCompactDetails((c) => !c)+ else setShowSettings((s) => !s)+ }, [wide])++ useEffect(+ () =>+ window.codync.app.onCommand((c) => {+ if (c.kind === 'toggleDetails') toggleDetails()+ }),+ [toggleDetails],+ )++ const openTrace = useCallback(() => setShowTrace(true), [])+ const openThreadOn = useCallback((root: { id: string }) => setOpenThread(root.id), [])+ const closeThread = useCallback(() => setOpenThread(null), [])++ const presentRoutine = (id: string | null) => {+ setRoutineId(id)+ setRoutineRequest((r) => r + 1)+ setEditingDetails(false)+ setOpenThread(null)+ setShowSettings(true)+ if (!wide) setCompactDetails(true)+ }++ const details = (+ <DetailsPanel+ key={routineRequest}+ botId={botId}+ routineId={routineId}+ editing={editingDetails}+ setEditing={setEditingDetails}+ editGroup={() => setEditingGroup(true)}+ share={() => {+ setCompactDetails(false)+ if (bot) setTemplateDraft(draftOf(bot))+ }}+ close={() => {+ setShowSettings(false)+ setCompactDetails(false)+ }}+ />+ )++ return (+ <div className="thread-view" ref={root}>+ <div className="conversation">+ <div className="top-chrome">+ <TopFade />+ <div className="top-chrome-row">+ <span style={{ flex: 1 }} />+ {!showSettings || !wide ? (+ <span className="frosted-circle">+ <IconButton title="Conversation details" icon="chevron.left.2" onClick={toggleDetails} />+ </span>+ ) : null}+ </div>+ <button className="title-pill" onClick={toggleDetails} aria-label="View conversation details" title="View conversation details">+ <span style={{ display: 'flex', alignItems: 'center', gap: 7 }}>+ {bot ? isGroup(bot) ? <GroupAvatar members={store.members(bot)} size={22} /> : <BotAvatar bot={bot} size={22} /> : null}+ <span style={{ ...font(14, 'semibold'), color: 'var(--text)', whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis' }}>{bot?.name ?? ''}</span>+ </span>+ {store.shownConnection.kind !== 'online' || store.mismatch ? <ConnectionSubtitle /> : null}+ </button>+ </div>+ <Transcript botId={botId} openTrace={openTrace} openThread={openThreadOn} openRoutine={presentRoutine} />+ <div className="composer-dock">+ {store.mismatch ? (+ <div style={{ padding: '0 16px 8px' }}>+ <UpdateNeededCard />+ </div>+ ) : (+ <Composer+ botId={botId}+ onCall={!calling && bot && !isGroup(bot) ? () => setCalling(true) : null}+ onInterrupt={callSpeaking ? () => interruptCall.current?.() : null}+ />+ )}+ </div>+ {calling ? (+ <div className="call-overlay">+ <CallView botId={botId} onSpeaking={setCallSpeaking} interrupt={interruptCall} onEnd={() => setCalling(false)} />+ </div>+ ) : null}+ </div>+ {openThread && wide ? (+ <SidePanel key={openThread} width={Math.min(420, width * 0.45)}>+ <RepliesView botId={botId} rootId={openThread} close={closeThread} />+ </SidePanel>+ ) : showSettings && wide ? (+ <SidePanel width={292}>{details}</SidePanel>+ ) : null}++ <Sheet open={compactDetails} onClose={() => setCompactDetails(false)} width={340} height={600}>+ {details}+ </Sheet>+ <Sheet open={openThread !== null && !wide} onClose={closeThread} width={440} height={600}>+ {openThread ? <RepliesView botId={botId} rootId={openThread} close={closeThread} /> : null}+ </Sheet>+ <Sheet open={showTrace} onClose={() => setShowTrace(false)} width={620} height={560}>+ <TraceView botId={botId} />+ </Sheet>+ <Sheet open={templateDraft !== null} onClose={() => setTemplateDraft(null)}>+ {templateDraft ? <BotTemplateView draft={templateDraft} /> : null}+ </Sheet>+ <Sheet open={editingGroup} onClose={() => setEditingGroup(false)} width={420} height={560}>+ <GroupEditorView group={bot} />+ </Sheet>+ <Sheet open={showRoutines} onClose={() => setShowRoutines(false)} width={440} height={580}>+ <div style={{ overflowY: 'auto', padding: 20 }}>+ <RoutinesView botId={botId} initialId={routineId} onClose={() => setShowRoutines(false)} />+ </div>+ </Sheet>+ <Dialog+ open={confirmNewSession}+ title="Start a new session?"+ message="The conversation stays here, but the agent starts with a fresh context."+ actions={[{ title: 'New session', action: () => store.newSession(botId) }]}+ onClose={() => setConfirmNewSession(false)}+ />+ <Dialog+ open={confirmDelete !== null}+ title={`Delete ${confirmDelete?.name ?? 'bot'}?`}+ message={confirmDelete && isGroup(confirmDelete) ? 'Its bots and their own chats stay.' : 'Files it changed on your computer stay as they are.'}+ actions={confirmDelete ? [{ title: 'Delete bot and its conversation', destructive: true, action: () => store.delete(confirmDelete) }] : []}+ onClose={() => setConfirmDelete(null)}+ />+ </div>+ )+}++/** The panel beside the chat (a thread, or the bot's details), sliding in from the trailing edge. */+function SidePanel({ width, children }: { width: number; children: ReactNode }) {+ return (+ <div className="side-panel" style={{ width: width + 1 }}>+ <div className="side-panel-border" />+ <div style={{ width, height: '100%' }}>{children}</div>+ </div>+ )+}++/** The top edge of the chat: messages fade out gradually as they scroll under the title pill. */+function TopFade() {+ return <div className="top-fade" />+}++function ConnectionSubtitle() {+ const store = useStore()+ const connecting = store.shownConnection.kind === 'connecting'+ const symbol = store.connection.kind !== 'online' ? 'wifi.slash' : store.hostRoute === 'relay' ? 'cloud' : store.hostRoute === 'direct' ? 'wifi' : store.hostRoute === 'loopback' ? 'desktopcomputer' : 'network'+ const description = (() => {+ switch (store.shownConnection.kind) {+ case 'connecting':+ return 'Connecting'+ case 'computerOffline':+ case 'offline':+ return 'Offline'+ case 'unauthorized':+ return 'No access'+ case 'unpaired':+ return 'Not paired'+ }+ if (store.mismatch) return 'Needs update'+ return store.hostRoute === 'relay' ? 'Connected through Cloudflare' : store.hostRoute === 'direct' ? 'Connected over Wi-Fi or Tailscale' : store.hostRoute === 'loopback' ? 'Connected locally' : 'Connected'+ })()+ return (+ <span style={{ display: 'flex', alignItems: 'center', gap: 6, ...font(10, 'medium'), color: 'var(--secondary)' }} title={`${store.hostName} · ${description}`} aria-label={`${store.hostName}, ${description}`}>+ <span style={{ width: 12, display: 'flex', justifyContent: 'center' }}>{connecting ? <Spinner size={8} /> : <Icon name={symbol} size={8} weight="medium" />}</span>+ <span style={{ whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis' }}>{store.connectionLabel}</span>+ </span>+ )+}++/** The messages: every loaded message, brought to the newest as it changes while the reader is at the bottom. */+function Transcript({ botId, openTrace, openThread, openRoutine }: { botId: string; openTrace: () => void; openThread: (e: { id: string }) => void; openRoutine: (id: string | null) => void }) {+ const store = useStore()+ const bot = store.bots.get(botId) ?? null+ const thread = store.chat(botId)+ const live = !!bot && isWorkingIn(bot, botId, null) && !store.isOffline+ const items = buildChat(thread, live)+ const scroller = useRef<HTMLDivElement>(null)+ const atBottom = useRef(true)+ const seen = useRef<Set<string> | null>(null)+ const last = items[items.length - 1]++ // New items (after the first render) slide up from the bottom.+ const fresh = new Set<string>()+ if (seen.current) for (const item of items) if (!seen.current.has(item.id)) fresh.add(item.id)+ useEffect(() => {+ seen.current = new Set(items.map((i) => i.id))+ })++ const toBottom = (smooth: boolean) => {+ const el = scroller.current+ if (el) el.scrollTo({ top: el.scrollHeight, behavior: smooth ? 'smooth' : 'auto' })+ }++ useLayoutEffect(() => toBottom(false), [])+ const lastText = last?.kind === 'entry' ? last.entry.data.text : undefined+ const lastIsUser = last?.kind === 'entry' && last.entry.kind === 'user'+ useLayoutEffect(() => {+ if (atBottom.current || lastIsUser) toBottom(true)+ }, [last?.id, lastIsUser])+ useLayoutEffect(() => {+ if (atBottom.current) toBottom(false)+ }, [lastText, live])++ // The text size changes the layout: stay at the bottom if the reader was there.+ useEffect(() => {+ const el = scroller.current+ if (!el) return+ const observer = new ResizeObserver(() => {+ if (atBottom.current) toBottom(false)+ })+ observer.observe(el.firstElementChild!)+ return () => observer.disconnect()+ }, [])++ return (+ <div+ className="transcript"+ ref={scroller}+ onScroll={(e) => {+ const el = e.currentTarget+ atBottom.current = el.scrollHeight - el.scrollTop - el.clientHeight < 48+ }}+ >+ <div className="transcript-content">+ {!store.historyComplete.has(botId) && thread.length >= 50 ? (+ <button className="load-earlier" onClick={() => void store.loadOlder(botId)}>+ Load earlier messages+ </button>+ ) : null}+ {items.length === 0 && bot ? <div style={{ paddingTop: 40 }}>{isGroup(bot) ? <GroupIntroCard group={bot} /> : <IntroCard bot={bot} />}</div> : null}+ {items.map((item) => (+ <div key={item.id} className={fresh.has(item.id) && item.id === last?.id ? 'enter' : undefined}>+ <Row item={item} chat={bot} openTrace={openTrace} openThread={openThread} openRoutine={openRoutine} />+ </div>+ ))}+ {bot && live ? (+ <div style={{ paddingTop: 6 }}>+ <WorkingIndicator bot={bot} thinking={store.currentThinking(botId, null)} />+ </div>+ ) : null}+ <div style={{ height: 8 }} />+ </div>+ </div>+ )+}++function Row({ item, chat, openTrace, openThread, openRoutine }: { item: ChatItem; chat: Bot | null; openTrace: () => void; openThread: (e: { id: string }) => void; openRoutine: (id: string | null) => void }) {+ if (item.kind === 'separator') {+ return <div style={{ ...font('footnote'), color: 'var(--tertiary)', textAlign: 'center', padding: '18px 0 6px' }}>{relativeTime.separator(item.date)}</div>+ }+ const e = item.entry+ if (e.kind === 'notice' && e.data.routineId) {+ return (+ <button onClick={() => openRoutine(e.data.routineId!)} style={{ display: 'flex', alignItems: 'center', gap: 6, ...font('footnote'), color: 'var(--secondary)', padding: '10px 0', margin: '0 auto' }}>+ <Icon name="clock.arrow.circlepath" size={10} />+ {e.data.text ?? 'Routine'}+ </button>+ )+ }+ return <ChatRow entry={e} groupStart={item.groupStart} chat={chat} openTrace={openTrace} openThread={openThread} />+}++/** The start of an empty group chat: who's in it and how the room works. */+function GroupIntroCard({ group }: { group: Bot }) {+ const store = useStore()+ const members = store.members(group)+ return (+ <div className="intro-card">+ <GroupAvatar members={members} size={72} />+ <div style={{ ...font('title2', 'semibold'), color: 'var(--text)' }}>{group.name}</div>+ <div style={{ ...font('subheadline'), color: 'var(--secondary)' }}>{members.map((m) => m.name).join(' · ')}</div>+ {group.description ? <div style={{ ...font('subheadline'), color: 'var(--secondary)' }}>{group.description}</div> : null}+ <div style={{ ...font('footnote'), color: 'var(--tertiary)', paddingTop: 4 }}>Everyone answers in turn. @mention a bot to ask just that one. Each bot works in its own folder.</div>+ </div>+ )+}++function IntroCard({ bot }: { bot: Bot }) {+ const store = useStore()+ return (+ <div className="intro-card">+ <BotAvatar bot={bot} size={72} />+ <div style={{ ...font('title2', 'semibold'), color: 'var(--text)' }}>{bot.name}</div>+ <div style={{ ...font('footnote', undefined, 'monospaced'), color: 'var(--tertiary)' }}>+ {bot.managedWorkspace ? `${store.backendName(bot.backend)} · Personal workspace` : `${store.backendName(bot.backend)} in ${bot.cwd}`}+ </div>+ {bot.description ? <div style={{ ...font('subheadline'), color: 'var(--secondary)' }}>{bot.description}</div> : null}+ <div style={{ ...font('footnote'), color: 'var(--tertiary)', paddingTop: 4 }}>Tell it what you need. You'll get a notification when it's done or needs you.</div>+ </div>+ )+}diff --git a/apps/desktop/src/renderer/views/thread/TraceView.tsx b/apps/desktop/src/renderer/views/thread/TraceView.tsxnew file mode 100644index 00000000..abf5618c--- /dev/null+++ b/apps/desktop/src/renderer/views/thread/TraceView.tsx@@ -0,0 +1,160 @@+import { useLayoutEffect, useRef, useState } from 'react'+import type { Entry, EntryData } from '@shared/models'+import { CardSection, Disclosure } from '../../components/Controls'+import { Icon } from '../../components/Icon'+import { ModalHeader } from '../../components/Overlay'+import { ThinkingOrb } from '../../components/ThinkingOrb'+import { font } from '../../lib/fonts'+import { useStore } from '../../store/context'+import { MarkdownText } from './Markdown'+import { CodeBox, DiffView } from './PermissionCard'++/**+ * "Full conversation": everything the agent did (narration, thinking, tool calls with output+ * and diffs, plans) grouped by turn. A chat's trace, or one thread's (`thread`: its root).+ */+export function TraceView({ botId, thread = null }: { botId: string; thread?: string | null }) {+ const store = useStore()+ const turns = new Map<number, Entry[]>()+ for (const e of store.allEntries(botId)) {+ if ((e.threadId ?? null) !== thread) continue+ turns.set(e.turn, [...(turns.get(e.turn) ?? []), e])+ }+ const sorted = [...turns.entries()].sort((a, b) => a[0] - b[0])+ const scroller = useRef<HTMLDivElement>(null)+ useLayoutEffect(() => {+ const el = scroller.current+ if (el) el.scrollTop = el.scrollHeight+ }, [])+ return (+ <div style={{ display: 'flex', flexDirection: 'column', height: '100%', background: 'var(--background)' }}>+ <ModalHeader title="Full conversation" />+ <div ref={scroller} style={{ flex: 1, overflowY: 'auto' }}>+ <div style={{ display: 'flex', flexDirection: 'column', gap: 14, padding: 14, fontSize: 'calc(12px * var(--scale))' }}>+ {sorted.length === 0 ? <span style={{ color: 'var(--tertiary)' }}>Nothing yet.</span> : null}+ {sorted.map(([turn, entries]) => (+ <div key={turn} style={{ display: 'flex', flexDirection: 'column', gap: 8 }}>+ <div style={{ ...font('compactSecondary', 'semibold'), color: 'var(--text)', paddingLeft: 4, whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis' }}>+ {entries.find((e) => e.kind === 'user')?.data.text ?? `Turn ${turn}`}+ </div>+ <CardSection>+ {entries.map((e) => (+ <TraceRow key={e.id} entry={e} />+ ))}+ </CardSection>+ </div>+ ))}+ </div>+ </div>+ </div>+ )+}++function Label({ icon, children, style }: { icon: React.ReactNode; children: React.ReactNode; style?: React.CSSProperties }) {+ return (+ <span style={{ display: 'flex', alignItems: 'flex-start', gap: 6, ...style }}>+ <span style={{ display: 'flex', alignItems: 'center', minHeight: '1.25em' }}>{icon}</span>+ <span style={{ minWidth: 0 }}>{children}</span>+ </span>+ )+}++function TraceRow({ entry }: { entry: Entry }) {+ const [expanded, setExpanded] = useState(false)+ const d = entry.data+ switch (entry.kind) {+ case 'user':+ return (+ <Label icon={<Icon name="person.fill" size={11} color="var(--secondary)" />} style={font('subheadline')}>+ <span style={{ color: 'var(--text)' }}>{d.text ?? ''}</span>+ </Label>+ )+ case 'agent':+ return (+ <div style={{ display: 'flex', flexDirection: 'column', gap: 4 }}>+ <span style={{ ...font('caption2', 'semibold'), color: 'var(--tertiary)' }}>{d.final ? 'Reply' : 'Said'}</span>+ <MarkdownText text={d.text ?? ''} />+ </div>+ )+ case 'thought':+ return (+ <Disclosure+ expanded={expanded}+ onToggle={() => setExpanded((x) => !x)}+ label={+ <span style={{ display: 'flex', alignItems: 'center', gap: 6, ...font('subheadline'), color: 'var(--secondary)' }}>+ <ThinkingOrb size={16} color="var(--secondary)" animated={false} />+ Thinking+ </span>+ }+ >+ <div className="selectable" style={{ ...font('footnote'), color: 'var(--secondary)', whiteSpace: 'pre-wrap' }}>{d.text ?? ''}</div>+ </Disclosure>+ )+ case 'tool':+ return <ToolRow data={d} />+ case 'plan':+ return (+ <div style={{ display: 'flex', flexDirection: 'column', gap: 6 }}>+ <Label icon={<Icon name="checklist" size={11} weight="bold" />} style={font('subheadline', 'bold')}>+ Plan+ </Label>+ {(d.entries ?? []).map((item, i) => (+ <Label+ key={i}+ style={font('footnote')}+ icon={+ <Icon+ name={item.status === 'completed' ? 'checkmark.circle.fill' : item.status === 'in_progress' ? 'circle.dotted' : 'circle'}+ size={10}+ color={item.status === 'completed' ? 'var(--accent)' : 'var(--tertiary)'}+ />+ }+ >+ <span style={{ color: 'var(--text)', textDecoration: item.status === 'completed' ? 'line-through' : undefined }}>{item.content}</span>+ </Label>+ ))}+ </div>+ )+ case 'permission':+ return (+ <Label icon={<Icon name="hand.raised" size={11} />} style={{ ...font('subheadline'), color: 'var(--secondary)' }}>+ {d.title ?? 'Approval'}+ </Label>+ )+ default:+ return <span style={{ ...font('footnote'), color: 'var(--tertiary)' }}>{d.text ?? ''}</span>+ }+}++const toolIcon = (kind?: string) =>+ ({ read: 'doc.text', edit: 'pencil', delete: 'trash', move: 'arrow.right.doc.on.clipboard', search: 'magnifyingglass', execute: 'terminal', think: 'brain', fetch: 'globe' })[kind ?? ''] ?? 'wrench.and.screwdriver'++export function ToolRow({ data }: { data: EntryData }) {+ const [expanded, setExpanded] = useState(false)+ const hasBody = !!data.output || !!data.diffs?.length+ const label = (+ <span style={{ display: 'flex', alignItems: 'center', gap: 8, ...font('caption'), flex: 1, minWidth: 0 }}>+ <span style={{ width: 18, display: 'flex', justifyContent: 'center', color: 'var(--secondary)' }}>+ <Icon name={toolIcon(data.toolKind)} size={10} />+ </span>+ <span style={{ ...font('subheadline'), color: 'var(--text)', flex: 1, minWidth: 0, display: '-webkit-box', WebkitLineClamp: 2, WebkitBoxOrient: 'vertical', overflow: 'hidden' }}>{data.title ?? 'Tool'}</span>+ {data.status === 'completed' ? (+ <Icon name="checkmark" size={10} color="var(--accent)" />+ ) : data.status === 'failed' ? (+ <Icon name="xmark" size={10} color="var(--danger)" />+ ) : (+ <ThinkingOrb state={data.toolKind === 'search' ? 'searching' : data.toolKind === 'fetch' ? 'connecting' : 'working'} size={16} color="var(--secondary)" />+ )}+ </span>+ )+ if (!hasBody) return label+ return (+ <Disclosure expanded={expanded} onToggle={() => setExpanded((x) => !x)} label={label}>+ <div style={{ display: 'flex', flexDirection: 'column', gap: 8 }}>+ {(data.diffs ?? []).map((diff, i) => <DiffView key={i} diff={diff} />)}+ {data.output ? <CodeBox text={data.output} /> : null}+ </div>+ </Disclosure>+ )+}diff --git a/apps/desktop/src/renderer/views/thread/chat-items.ts b/apps/desktop/src/renderer/views/thread/chat-items.tsnew file mode 100644index 00000000..d24405d3--- /dev/null+++ b/apps/desktop/src/renderer/views/thread/chat-items.ts@@ -0,0 +1,68 @@+import { isChat, type Entry } from '@shared/models'++export type ChatItem =+ | { id: string; kind: 'separator'; date: number }+ | { id: string; kind: 'entry'; entry: Entry; groupStart: boolean }++/**+ * Chat-visible entries plus time separators (gaps > 1 h) and author grouping. `streaming`: a+ * turn is running in this chat, so the text being generated right now (the lane's last entry,+ * still `final == false`) shows in place and never pops in later.+ */+export function buildChat(entries: Entry[], streaming = false): ChatItem[] {+ const out: ChatItem[] = []+ let lastDate: number | null = null+ let lastAuthor: string | null = null+ const lastEntry = entries[entries.length - 1]+ const live = streaming && lastEntry && lastEntry.kind === 'agent' && lastEntry.data.final === false ? lastEntry.id : null+ for (const e of entries) {+ if (!(isChat(e) || (e.id === live && e.data.text && e.data.text !== '(pass)'))) continue+ const id = e.kind === 'user' && e.data.clientNonce ? `user-${e.data.clientNonce}` : e.id+ if (lastDate === null || e.createdAt - lastDate > 3_600_000) {+ out.push({ id: `sep-${id}`, kind: 'separator', date: e.createdAt })+ lastAuthor = null+ }+ // In a group each bot is its own author.+ const author = e.kind === 'user' ? 'user' : e.kind === 'agent' ? `agent:${e.data.author ?? ''}` : e.kind+ out.push({ id, kind: 'entry', entry: e, groupStart: author !== lastAuthor })+ lastAuthor = author === 'user' || e.kind === 'agent' ? author : null+ lastDate = e.createdAt+ }+ return out+}++const time = new Intl.DateTimeFormat(undefined, { hour: 'numeric', minute: '2-digit' })+const monthDay = new Intl.DateTimeFormat(undefined, { month: 'short', day: 'numeric' })+const weekday = new Intl.DateTimeFormat(undefined, { weekday: 'long' })++const sameDay = (a: Date, b: Date) => a.getFullYear() === b.getFullYear() && a.getMonth() === b.getMonth() && a.getDate() === b.getDate()++export const relativeTime = {+ time: (ms: number) => time.format(new Date(ms)),+ /** Chat separator: Today 3:27 AM · Yesterday 5:20 PM · Sep 16 9:02 AM */+ separator(ms: number) {+ const date = new Date(ms)+ const now = new Date()+ const yesterday = new Date(now.getTime() - 86_400_000)+ const day = sameDay(date, now) ? 'Today' : sameDay(date, yesterday) ? 'Yesterday' : monthDay.format(date)+ return `${day} ${time.format(date)}`+ },+ /** Roster stamp: 3:45 AM · Yesterday · Wednesday · Sep 16 */+ day(ms: number) {+ const date = new Date(ms)+ const now = new Date()+ if (sameDay(date, now)) return time.format(date)+ if (sameDay(date, new Date(now.getTime() - 86_400_000))) return 'Yesterday'+ if (now.getTime() - ms < 6 * 86_400_000) return weekday.format(date)+ return monthDay.format(date)+ },+ /** Grok-style compact age: now · 5m · 3h · 2d · Sep 3 */+ short(ms: number) {+ const s = Math.max(0, (Date.now() - ms) / 1000)+ if (s < 60) return 'now'+ if (s < 3600) return `${Math.floor(s / 60)}m`+ if (s < 86_400) return `${Math.floor(s / 3600)}h`+ if (s < 86_400 * 7) return `${Math.floor(s / 86_400)}d`+ return monthDay.format(new Date(ms))+ },+}diff --git a/apps/desktop/src/renderer/views/thread/reading.ts b/apps/desktop/src/renderer/views/thread/reading.tsnew file mode 100644index 00000000..eb7077c1--- /dev/null+++ b/apps/desktop/src/renderer/views/thread/reading.ts@@ -0,0 +1,21 @@+import { useEffect, useId } from 'react'+import type { BotStore } from '../../store/bot-store'++/** A scoped read receipt that follows the view's visibility (and the window's), not the selection. */+export function useReading(store: BotStore, botId: string, thread: string | null) {+ const token = useId()+ const connected = store.connection.kind+ useEffect(() => {+ const update = () => store.setReading(token, botId, thread, document.visibilityState === 'visible' && document.hasFocus())+ update()+ window.addEventListener('focus', update)+ window.addEventListener('blur', update)+ document.addEventListener('visibilitychange', update)+ return () => {+ window.removeEventListener('focus', update)+ window.removeEventListener('blur', update)+ document.removeEventListener('visibilitychange', update)+ store.setReading(token, botId, thread, false)+ }+ }, [store, token, botId, thread, connected])+}diff --git a/apps/desktop/src/renderer/views/thread/thread.css b/apps/desktop/src/renderer/views/thread/thread.cssnew file mode 100644index 00000000..e4f3c02c--- /dev/null+++ b/apps/desktop/src/renderer/views/thread/thread.css@@ -0,0 +1,355 @@+.thread-view {+ display: flex;+ height: 100%;+ overflow: hidden;+}+.conversation {+ flex: 1;+ min-width: 0;+ height: 100%;+ position: relative;+ display: flex;+ flex-direction: column;+ background: var(--background);+}++/* Grok's desktop chat: no title bar. The chat blurs and fades as it scrolls up, with the bot in+ a floating solid pill and the actions as frosted buttons on the right. */+.top-chrome {+ position: absolute;+ top: 0;+ left: 0;+ right: 0;+ z-index: 5;+ padding: 10px 16px 14px;+ display: grid;+ place-items: center;+ pointer-events: none;+ -webkit-app-region: drag;+}+.top-chrome > * {+ grid-area: 1 / 1;+}+.top-chrome-row {+ display: flex;+ width: 100%;+ align-items: center;+ gap: 8px;+}+.top-chrome-row > *,+.title-pill {+ pointer-events: auto;+ -webkit-app-region: no-drag;+}+.top-fade {+ position: absolute;+ inset: 0;+ pointer-events: none;+ background: linear-gradient(to bottom, var(--background) 0%, color-mix(in srgb, var(--background) 60%, transparent) 35%, transparent 100%);+}+.top-fade::before {+ content: '';+ position: absolute;+ inset: 0;+ backdrop-filter: blur(20px);+ -webkit-mask-image: linear-gradient(to bottom, #000, transparent 50%);+ mask-image: linear-gradient(to bottom, #000, transparent 50%);+}+.title-pill {+ position: relative;+ display: flex;+ flex-direction: column;+ align-items: center;+ gap: 2px;+ padding: 9px 16px 9px 10px;+ background: var(--background);+ border-radius: 999px;+ box-shadow: 0 4px 32px rgba(0, 0, 0, 0.12);+ max-width: 60%;+}+.frosted-circle {+ border-radius: 50%;+ background: var(--frosted);+ backdrop-filter: blur(20px);+ display: flex;+}+.frosted-circle .icon-button {+ border-radius: 50% !important;+}+.round-button {+ width: 32px;+ height: 32px;+ border-radius: 50%;+ background: var(--frosted);+ backdrop-filter: blur(20px);+ display: grid;+ place-items: center;+ flex: none;+}++.transcript {+ flex: 1;+ overflow-y: auto;+ overflow-anchor: none;+}+.transcript-content {+ max-width: 820px;+ margin: 0 auto;+ /* The floating title pill sits over the top of the list. */+ padding: 72px 16px 0;+}+.transcript-content > .enter {+ animation: message-in var(--conversation-motion) both;+}+@keyframes message-in {+ from {+ opacity: 0;+ transform: translateY(24px);+ }+}+.load-earlier {+ display: block;+ width: 100%;+ text-align: center;+ padding: 12px 0;+ font-size: calc(10px * var(--scale));+ color: var(--secondary);+}+.intro-card {+ display: flex;+ flex-direction: column;+ align-items: center;+ gap: 12px;+ padding: 0 24px;+ text-align: center;+}++.composer-dock {+ flex: none;+}++/* Messages */+.message {+ display: flex;+ flex-direction: column;+ gap: 4px;+ width: 100%;+}+.message.user {+ align-items: flex-end;+ padding-left: 56px;+}+.message.agent {+ align-items: flex-start;+ padding-right: 64px;+}+.bubble {+ padding: 8px 12px;+ border-radius: 22px;+ max-width: 100%;+ min-width: 0;+}+.bubble.user {+ background: var(--bubble-user);+ color: var(--text);+ font-size: var(--conversation);+ white-space: pre-wrap;+ overflow-wrap: anywhere;+}+.bubble.agent {+ background: var(--bubble-agent);+}+.message-footer {+ display: flex;+ align-items: center;+ gap: 6px;+ min-height: 26px;+}+.message-actions {+ display: flex;+ align-items: center;+ animation: fade-in var(--fade) both;+}+@keyframes fade-in {+ from {+ opacity: 0;+ }+}+.reaction-chip {+ padding: 3px 8px;+ border-radius: 999px;+ background: var(--surface);+}+.thread-chip {+ display: flex;+ align-items: center;+ gap: 6px;+ padding: 5px 10px;+ border-radius: 999px;+ background: var(--surface);+}+.working {+ display: flex;+ flex-direction: column;+ gap: 8px;+ padding: 12px;+ border-radius: 22px;+ background: var(--bubble-agent);+ text-align: left;+ min-width: 0;+}+.thinking {+ max-height: 180px;+ overflow-y: auto;+ white-space: pre-wrap;+ text-align: left;+}++/* Composer */+.mentions {+ display: flex;+ gap: 6px;+ padding: 0 16px;+ overflow-x: auto;+}+.mention {+ display: flex;+ align-items: center;+ gap: 6px;+ padding: 6px 10px;+ border-radius: 999px;+ background: var(--surface);+ flex: none;+}+.composer {+ display: flex;+ align-items: flex-end;+ gap: 8px;+ padding: 6px 16px 16px;+ max-width: 820px;+ margin: 0 auto;+ width: 100%;+}+.composer-add {+ /* The one-line field's height. */+ width: calc(max(round(up, calc(var(--conversation) * 1.25), 1px) + 14px, 28px) + 8px);+ height: calc(max(round(up, calc(var(--conversation) * 1.25), 1px) + 14px, 28px) + 8px);+ border-radius: 50%;+ background: var(--bubble-user);+ box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);+ display: grid;+ place-items: center;+ flex: none;+}+.composer-surface {+ flex: 1;+ min-width: 0;+ background: var(--bubble-user);+ border-radius: 24px;+ box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);+ display: flex;+ flex-direction: column;+}+.composer-box {+ display: flex;+ align-items: flex-end;+ gap: 8px;+ padding: 4px 6px 4px 14px;+}+.composer-box textarea {+ flex: 1;+ min-width: 0;+ font-size: var(--conversation);+ line-height: calc(round(up, calc(var(--conversation) * 1.25), 1px));+ padding: 7px 0;+ color: var(--text);+ user-select: text;+ cursor: text;+}+.composer-send {+ height: 28px;+ border-radius: 999px;+ display: grid;+ place-items: center;+ flex: none;+ margin-bottom: calc(max(0px, (round(up, calc(var(--conversation) * 1.25), 1px) + 14px - 28px) / 2));+ transition: width var(--morph), background-color var(--morph), color var(--morph), transform var(--press);+}+.symbol-swap {+ animation: symbol-in var(--morph) both;+}+@keyframes symbol-in {+ from {+ opacity: 0;+ transform: scale(0.6);+ }+}+.file-chips {+ display: flex;+ gap: 6px;+ padding: 8px 10px 0;+ overflow-x: auto;+}+.file-chip {+ display: flex;+ align-items: center;+ gap: 6px;+ padding: 6px 10px;+ border-radius: 999px;+ background: var(--surface);+ flex: none;+}++.call-overlay {+ position: absolute;+ top: 4px;+ left: 0;+ right: 0;+ z-index: 6;+ display: flex;+ justify-content: center;+ animation: call-in var(--layout) both;+}+@keyframes call-in {+ from {+ opacity: 0;+ transform: translateY(-100%);+ }+}++.side-panel {+ height: 100%;+ display: flex;+ flex: none;+ animation: panel-slide var(--layout) both;+ overflow: hidden;+}+.side-panel-border {+ width: 1px;+ background: var(--border);+ flex: none;+}+@keyframes panel-slide {+ from {+ opacity: 0;+ transform: translateX(40px);+ }+}+.panel-slide.from-trailing {+ animation: from-trailing var(--layout) both;+}+.panel-slide.from-leading {+ animation: from-leading var(--layout) both;+}+@keyframes from-trailing {+ from {+ opacity: 0;+ transform: translateX(30%);+ }+}+@keyframes from-leading {+ from {+ opacity: 0;+ transform: translateX(-30%);+ }+}diff --git a/apps/desktop/src/renderer/views/tray-summary.ts b/apps/desktop/src/renderer/views/tray-summary.tsnew file mode 100644index 00000000..e1a72ad3--- /dev/null+++ b/apps/desktop/src/renderer/views/tray-summary.ts@@ -0,0 +1,143 @@+import { useEffect } from 'react'+import type { TraySummary } from '@shared/ipc'+import { isGroup, isWorking, needsInput, folderName, type Bot, type UsageWindow } from '@shared/models'+import { drawCharacter, moodOf } from '../components/Avatar'+import { useModels } from '../lib/observable'+import { prefs, usePref } from '../lib/prefs'+import { avatarColor, isDark } from '../lib/theme'+import type { AppModel } from '../store/app-model'+import { providerTint, resetDate, untilText, windowTitle } from './usage/usage-model'+import { mascotDataURL } from './usage/ProviderMascot'++const isMac = window.codync.platform === 'darwin'++/** Rendered icons by what they show and the appearance: nothing is redrawn while nothing changed. */+const cache = new Map<string, string>()++function canvasURL(key: string, width: number, height: number, draw: (ctx: CanvasRenderingContext2D) => void) {+ const full = `${key}|${isDark()}`+ const hit = cache.get(full)+ if (hit) return hit+ const ratio = 2+ const canvas = document.createElement('canvas')+ canvas.width = width * ratio+ canvas.height = height * ratio+ const ctx = canvas.getContext('2d')!+ ctx.scale(ratio, ratio)+ draw(ctx)+ const url = canvas.toDataURL('image/png')+ cache.set(full, url)+ return url+}++function avatarIcon(bot: Bot) {+ const key = `bot|${bot.id}|${bot.avatarShape}|${bot.avatarColor}|${bot.status}|${bot.unread > 0}`+ return canvasURL(key, 20, 20, (ctx) => {+ const dark = isDark()+ drawCharacter(ctx, { shape: bot.avatarShape, fill: avatarColor(bot.avatarColor), size: 20, mood: moodOf(bot, false), dark, t: 0, still: true })+ const badge = needsInput(bot) ? '#F0A030' : bot.unread > 0 ? (dark ? '#FFFFFF' : '#000000') : null+ if (badge) {+ const r = needsInput(bot) ? 3.6 : 2.8+ ctx.beginPath()+ ctx.arc(20 - r, 20 - r, r + 1, 0, Math.PI * 2)+ ctx.fillStyle = dark ? '#1e1e1e' : '#f2f2f2'+ ctx.fill()+ ctx.beginPath()+ ctx.arc(20 - r, 20 - r, r, 0, Math.PI * 2)+ ctx.fillStyle = badge+ ctx.fill()+ }+ })+}++/** One usage limit's bar in the provider's color: amber from 70%, red from 90%. */+function barIcon(providerId: string, window: UsageWindow) {+ const percent = Math.round(window.percent)+ return canvasURL(`bar|${providerId}|${percent}`, 60, 16, (ctx) => {+ const dark = isDark()+ const color = window.percent >= 90 ? (dark ? '#F0A7A7' : '#C23A2B') : window.percent >= 70 ? '#F0A030' : providerTint(providerId)+ ctx.fillStyle = dark ? 'rgba(255,255,255,0.12)' : 'rgba(0,0,0,0.12)'+ ctx.beginPath()+ ctx.roundRect(0, 5.5, 60, 5, 2.5)+ ctx.fill()+ if (window.percent > 0) {+ ctx.fillStyle = color+ ctx.beginPath()+ ctx.roundRect(0, 5.5, Math.max(5, 60 * Math.min(1, window.percent / 100)), 5, 2.5)+ ctx.fill()+ }+ })+}++function usageLine(w: UsageWindow) {+ const reset = resetDate(w)+ return `${windowTitle(w)} · ${Math.round(w.percent)}%${reset ? ` · resets in ${untilText(reset)}` : ''}`+}++/** Sends what the menu bar shows whenever the stores change. */+export function useTraySummary(app: AppModel) {+ const stores = [...app.stores.values()]+ useModels(stores)+ const [textSize] = usePref(prefs.textSize)+ const [iconStyle] = usePref(prefs.usageIconStyle)+ useEffect(() => {+ const timer = setTimeout(() => {+ const local = app.local+ const roster = app.roster.filter((i) => !isGroup(i.bot))+ const status = app.approvals.length+ ? 'A device asks for access'+ : app.needsAttention+ ? 'A bot needs you'+ : app.working > 0+ ? `${app.working} bot${app.working === 1 ? '' : 's'} working`+ : 'Connected'+ const screen = local?.screen+ const summary: TraySummary = {+ status,+ canPair: !!local,+ approval: app.approvals[0]?.request.deviceName ?? null,+ bots: roster.map((i) => ({+ ref: `${i.ref.computerId}/${i.ref.botId}`,+ name: app.computers.length > 1 ? `${i.bot.name} · ${i.computer.name}` : i.bot.name,+ detail: needsInput(i.bot) ? 'Needs your response' : isWorking(i.bot) ? i.bot.activity || 'Working…' : (i.bot.lastMessage ?? folderName(i.bot)),+ working: isWorking(i.bot),+ avatar: avatarIcon(i.bot),+ })),+ usage: (local?.usage.providers ?? []).map((p) => ({+ name: p.name,+ icon: mascotDataURL(p, 16, iconStyle, isDark()),+ lines: p.windows.map((w) => ({ title: usageLine(w), bar: barIcon(p.id, w) })),+ })),+ screen: screen+ ? {+ enabled: screen.enabled,+ subtitle: screenSubtitle(app),+ needsLoginItem: false,+ needsCapture: screen.enabled && screen.connected && !screen.capture,+ needsInput: screen.enabled && screen.connected && !screen.input,+ error: null,+ }+ : null,+ version: local?.hello?.version ?? null,+ needsAttention: app.needsAttention,+ textSize,+ usageIconStyle: iconStyle,+ }+ window.codync.app.setTraySummary(summary)+ }, 150)+ return () => clearTimeout(timer)+ })+}++function screenSubtitle(app: AppModel) {+ const local = app.local+ const screen = local?.screen+ if (!local || !screen || !screen.enabled) return `Control this ${isMac ? 'Mac' : 'computer'} from your iPhone`+ if (!screen.connected) return 'Starting Codync Screen…'+ if (!screen.capture || !screen.input) return 'Needs permission'+ if (screen.viewers > 0) return screen.viewers === 1 ? 'Your iPhone is viewing' : `${screen.viewers} viewers`+ const bot = screen.agentBot ? local.bots.get(screen.agentBot) : null+ if (bot) return `${bot.name} is using it`+ const display = screen.displays.find((d) => d.main)?.name ?? screen.displays[0]?.name+ return display ? `Ready · ${display}` : 'Ready'+}diff --git a/apps/desktop/src/renderer/views/usage/ProviderMascot.tsx b/apps/desktop/src/renderer/views/usage/ProviderMascot.tsxnew file mode 100644index 00000000..09a93986--- /dev/null+++ b/apps/desktop/src/renderer/views/usage/ProviderMascot.tsx@@ -0,0 +1,66 @@+import type { UsageProvider } from '@shared/models'+import { agentIconURL, AgentIcon } from '../../components/AgentIcon'+import { CharacterAvatar, drawCharacter } from '../../components/Avatar'+import { Icon } from '../../components/Icon'+import { mascotShape, providerRegistry, providerTint, providerTintCSS, tightest } from './usage-model'++/** A provider's character, with a red "!" once any of its limits is nearly used up. */+export function ProviderMascot({ provider, size, style = 'character' }: { provider: UsageProvider; size: number; style?: 'character' | 'original' }) {+ const full = (tightest(provider)?.percent ?? 0) >= 90+ if (style === 'original') {+ return (+ <span style={{ width: size, height: size, display: 'grid', placeItems: 'center', flex: 'none' }}>+ <AgentIcon registry={providerRegistry(provider.id)} size={size * 0.84} color={providerTintCSS(provider.id)} />+ </span>+ )+ }+ return (+ <span style={{ position: 'relative', width: size, height: size, flex: 'none', display: 'block' }}>+ <CharacterAvatar shape={mascotShape(provider.id)} color="" tint={providerTint(provider.id)} size={size} mood={full ? 'needsInput' : 'idle'} />+ {full ? (+ <span style={{ position: 'absolute', top: -size * 0.12, right: -size * 0.12, display: 'flex', color: 'var(--danger)', background: '#fff', borderRadius: '50%' }}>+ <Icon name="exclamationmark.circle.fill" size={size * 0.34} weight="bold" scaled={false} />+ </span>+ ) : null}+ </span>+ )+}++const loaded = new Map<string, HTMLImageElement>()++/** The mascot as a menu bar image (16 pt). Original logos load once, then appear on the next update. */+export function mascotDataURL(provider: UsageProvider, size: number, style: 'character' | 'original', dark: boolean): string | null {+ const ratio = 2+ const canvas = document.createElement('canvas')+ canvas.width = size * ratio+ canvas.height = size * ratio+ const ctx = canvas.getContext('2d')!+ ctx.scale(ratio, ratio)+ const tint = provider.id === 'claude' ? '#D97757' : dark ? '#FFFFFF' : '#000000'+ if (style === 'original') {+ const url = agentIconURL(providerRegistry(provider.id))+ if (!url) return null+ const image = loaded.get(url)+ if (!image) {+ const img = new Image()+ img.src = url+ img.onload = () => loaded.set(url, img)+ return null+ }+ const inset = size * 0.08+ ctx.drawImage(image, inset, inset, size - inset * 2, size - inset * 2)+ ctx.globalCompositeOperation = 'source-in'+ ctx.fillStyle = tint+ ctx.fillRect(0, 0, size, size)+ return canvas.toDataURL('image/png')+ }+ const full = (tightest(provider)?.percent ?? 0) >= 90+ drawCharacter(ctx, { shape: mascotShape(provider.id), fill: tint, size, mood: full ? 'needsInput' : 'idle', dark, t: 0, still: true })+ if (full) {+ ctx.beginPath()+ ctx.arc(size * 0.92, size * 0.08, size * 0.17, 0, Math.PI * 2)+ ctx.fillStyle = dark ? '#F0A7A7' : '#C23A2B'+ ctx.fill()+ }+ return canvas.toDataURL('image/png')+}diff --git a/apps/desktop/src/renderer/views/usage/usage-model.ts b/apps/desktop/src/renderer/views/usage/usage-model.tsnew file mode 100644index 00000000..a5f6fb49--- /dev/null+++ b/apps/desktop/src/renderer/views/usage/usage-model.ts@@ -0,0 +1,99 @@+import type { UsageProvider, UsageWindow } from '@shared/models'+import { isDark } from '../../lib/theme'++/** Claude keeps its orange; everyone else is ink, like the rest of the app. */+export function providerTint(id: string) {+ return id === 'claude' ? '#D97757' : isDark() ? '#FFFFFF' : '#000000'+}++/** CSS color for views (follows the scheme by itself). */+export const providerTintCSS = (id: string) => (id === 'claude' ? '#D97757' : 'var(--accent)')++/** ACP registry id of the provider's agent, for its logo. */+export const providerRegistry = (id: string) => (['claude', 'codex'].includes(id) ? `${id}-acp` : id)++/** The character that stands for this provider. */+export const mascotShape = (id: string) => (id === 'codex' ? 'hex' : 'blob')++export const tightest = (p: UsageProvider) => p.windows.reduce<UsageWindow | null>((a, w) => (!a || w.percent > a.percent ? w : a), null)++/** "Session" for the 5-hour window, "Opus" for "Weekly · Opus", else the label. */+export function windowTitle(w: UsageWindow) {+ if (w.label === '5-hour') return 'Session'+ const model = w.label.split(' · ')[1]+ return model ?? w.label+}++const MONTHS = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']++/**+ * Claude Code's text: "Sep 26 at 12pm (Asia/Taipei)", "Sep 25 at 7:30pm (Asia/Taipei)", or just+ * "7:30pm (…)". The year isn't given: the next such date from `now`.+ */+export function parseReset(text: string, now = new Date()): Date | null {+ const m = /^(?:(\w{3}) (\d{1,2}) at )?(\d{1,2})(?::(\d{2}))?(am|pm)(?: \(([^)]+)\))?$/.exec(text)+ if (!m) return null+ const zone = m[6]+ // Wall time in `zone` → epoch: guess, then correct by the zone's offset at that instant.+ const parts = zonedParts(now, zone)+ let month = parts.month+ let day = parts.day+ if (m[1]) {+ const mi = MONTHS.indexOf(m[1])+ if (mi < 0) return null+ month = mi + 1+ day = Number(m[2])+ }+ const hour = (Number(m[3]) % 12) + (m[5] === 'pm' ? 12 : 0)+ const minute = m[4] ? Number(m[4]) : 0+ const at = (year: number, mo: number, d: number) => fromZoned(year, mo, d, hour, minute, zone)+ let date = at(parts.year, month, day)+ if (date.getTime() < now.getTime() - 86_400_000 || (!m[1] && date < now)) {+ date = m[1] ? at(parts.year + 1, month, day) : new Date(date.getTime() + 86_400_000)+ }+ return date+}++function zonedParts(date: Date, zone?: string) {+ try {+ const f = new Intl.DateTimeFormat('en-US', { timeZone: zone, year: 'numeric', month: 'numeric', day: 'numeric' })+ const p = Object.fromEntries(f.formatToParts(date).map((x) => [x.type, x.value]))+ return { year: Number(p.year), month: Number(p.month), day: Number(p.day) }+ } catch {+ return { year: date.getFullYear(), month: date.getMonth() + 1, day: date.getDate() }+ }+}++function fromZoned(year: number, month: number, day: number, hour: number, minute: number, zone?: string) {+ const guess = Date.UTC(year, month - 1, day, hour, minute)+ try {+ const f = new Intl.DateTimeFormat('en-US', { timeZone: zone, hourCycle: 'h23', year: 'numeric', month: 'numeric', day: 'numeric', hour: 'numeric', minute: 'numeric' })+ const p = Object.fromEntries(f.formatToParts(new Date(guess)).map((x) => [x.type, x.value]))+ const asZone = Date.UTC(Number(p.year), Number(p.month) - 1, Number(p.day), Number(p.hour), Number(p.minute))+ return new Date(guess - (asZone - guess))+ } catch {+ return new Date(year, month - 1, day, hour, minute)+ }+}++export function resetDate(w: UsageWindow): Date | null {+ if (w.resetsAt) return new Date(w.resetsAt)+ return w.resetsText ? parseReset(w.resetsText) : null+}++/** "3h 20m", "2d", "45m". */+export function untilText(date: Date, now = new Date()) {+ const s = Math.max(0, (date.getTime() - now.getTime()) / 1000)+ const h = Math.floor(s / 3600)+ const m = Math.floor((s % 3600) / 60)+ if (h >= 48) return `${Math.floor(h / 24)}d`+ if (h > 0) return `${h}h ${m}m`+ return `${m}m`+}++/** "resets in 3h 20m" / "resets Sep 26 at 12pm", or null. */+export function resetDescription(w: UsageWindow) {+ const d = resetDate(w)+ if (d) return `resets in ${untilText(d)}`+ return w.resetsText ? `resets ${w.resetsText.replace(/ \(.*\)$/, '')}` : null+}diff --git a/apps/desktop/src/shared/compat.ts b/apps/desktop/src/shared/compat.tsnew file mode 100644index 00000000..a433777d--- /dev/null+++ b/apps/desktop/src/shared/compat.ts@@ -0,0 +1,42 @@+// Phone/host compatibility: each side names the oldest version of the other it still works+// with (docs/reference/compatibility.md). Mirrors host/src/compat.rs.++export type VersionMismatch =+ | { kind: 'updateApp'; minimum: string }+ | { kind: 'updateHost'; version: string; minimum: string }++/** The oldest host this app works with. */+export const MIN_HOST = '2.3.0'++/** `major.minor.patch`, ignoring a leading `v` and any pre-release or build suffix. */+export function parseVersion(version: string): number[] | null {+ let core = version.trim()+ if (core.startsWith('v')) core = core.slice(1)+ core = core.split('-')[0]!.split('+')[0]!+ const parts = core.split('.')+ if (parts.length < 1 || parts.length > 3) return null+ const out: number[] = []+ for (const part of parts) {+ if (!/^[0-9]+$/.test(part)) return null+ out.push(Number(part))+ }+ while (out.length < 3) out.push(0)+ return out+}++/** Whether `version` is below `minimum`; an unreadable version never is. */+export function isBelow(version: string, minimum: string): boolean {+ const v = parseVersion(version)+ const m = parseVersion(minimum)+ if (!v || !m) return false+ for (let i = 0; i < 3; i++) {+ if (v[i]! !== m[i]!) return v[i]! < m[i]!+ }+ return false+}++export function checkVersions(app: string, hostVersion: string, minApp: string | null | undefined): VersionMismatch | null {+ if (minApp && isBelow(app, minApp)) return { kind: 'updateApp', minimum: minApp }+ if (isBelow(hostVersion, MIN_HOST)) return { kind: 'updateHost', version: hostVersion, minimum: MIN_HOST }+ return null+}diff --git a/apps/desktop/src/shared/ipc.ts b/apps/desktop/src/shared/ipc.tsnew file mode 100644index 00000000..d1da02ef--- /dev/null+++ b/apps/desktop/src/shared/ipc.ts@@ -0,0 +1,159 @@+// The bridge between the main process (host lifecycle, loopback HTTP, tray, windows)+// and the renderer (stores and UI). Exposed as `window.codync` by the preload script.++export type HostState =+ | { kind: 'missingBinary' }+ | { kind: 'notInstalled' }+ | { kind: 'starting' }+ | { kind: 'running' }+ | { kind: 'failed'; message: string }++/** This computer's own host, once it answered. */+export interface LocalHost {+ computerId: string+ baseURL: string+ token: string+}++export interface HostSnapshot {+ state: HostState+ local: LocalHost | null+ /** Started against a manually run host (`CODYNC_PORT`). */+ dev: boolean+ logPath: string+}++export interface CallError {+ status: number+ message: string+}++/** What the tray menu shows; the renderer owns the stores and sends this on every change. */+export interface TraySummary {+ status: string+ canPair: boolean+ bots: { ref: string; name: string; detail: string; working: boolean; avatar: string | null }[]+ approval: string | null+ usage: { name: string; icon: string | null; lines: { title: string; bar: string | null }[] }[]+ screen: {+ enabled: boolean+ subtitle: string+ needsLoginItem: boolean+ needsCapture: boolean+ needsInput: boolean+ error: string | null+ } | null+ version: string | null+ needsAttention: boolean+ textSize: number+ usageIconStyle: 'character' | 'original'+}++/** Things the tray menu (or the app menu) asks the window to do. */+export type WindowCommand =+ | { kind: 'openBot'; ref: string }+ | { kind: 'stopBot'; ref: string }+ | { kind: 'reviewApprovals' }+ | { kind: 'confirmReset' }+ | { kind: 'setTextSize'; size: number }+ | { kind: 'stepTextSize'; up: boolean | null }+ | { kind: 'setUsageIconStyle'; style: 'character' | 'original' }+ | { kind: 'setRemoteScreen'; on: boolean }+ | { kind: 'newChat' }+ | { kind: 'search' }+ | { kind: 'toggleSidebar' }+ | { kind: 'toggleDetails' }++/** The app's own updates (electron-updater, release builds only). */+export interface UpdateState {+ supported: boolean+ canCheck: boolean+ checking: boolean+ availableVersion: string | null+ /** Downloaded and ready: installs on restart. */+ staged: boolean+ autoCheck: boolean+ autoDownload: boolean+ lastCheck: number | null+ error: string | null+ /** The release waits until paired iPhones can get the app it needs. */+ waitingForApp: string | null+}++export interface AccountState {+ /** The persisted session has been restored (or there was none). */+ ready: boolean+ /** This build has a Clerk key and a cloud. */+ configured: boolean+ busy: boolean+ error: string | null+ user: { userId: string; email: string | null; avatarURL: string | null } | null+ cloudURL: string | null+}++export type SpeechEvent =+ | { type: 'partial' | 'final'; text: string }+ | { type: 'level'; value: number }+ | { type: 'started' }+ | { type: 'stopped' }+ | { type: 'error'; message: string }++export interface CodyncBridge {+ platform: 'darwin' | 'linux' | 'win32'+ appVersion: string+ host: {+ snapshot(): Promise<HostSnapshot>+ onChange(cb: (s: HostSnapshot) => void): () => void+ install(): void+ restart(): void+ uninstall(): void+ openLog(): void+ /** POST /api/<method> on a loopback host. Rejects with a `CallError`. */+ call(baseURL: string, token: string, method: string, body: unknown, timeoutMs: number): Promise<unknown>+ /** SSE on a loopback host: each `data:` line, then `onEnd` (with an error when it failed). */+ stream(url: string, token: string, onData: (line: string) => void, onEnd: (error: CallError | null) => void): () => void+ health(baseURL: string): Promise<{ computerId?: string; busy?: boolean } | null>+ }+ account: {+ state(): Promise<AccountState>+ onChange(cb: (s: AccountState) => void): () => void+ signIn(provider: 'apple' | 'google'): Promise<void>+ signOut(): Promise<void>+ /** The signed-in session's JWT for the Codync cloud. */+ token(): Promise<string>+ }+ /** On-device speech recognition (macOS: SFSpeechRecognizer in a helper; unavailable on Linux). */+ speech: {+ available: boolean+ start(locale: string | null): void+ stop(): void+ onEvent(cb: (e: SpeechEvent) => void): () => void+ }+ updates: {+ state(): Promise<UpdateState>+ onChange(cb: (s: UpdateState) => void): () => void+ check(): void+ setAutoCheck(on: boolean): void+ setAutoDownload(on: boolean): void+ }+ app: {+ openExternal(url: string): void+ copy(text: string): void+ /** Files picked in the system dialog: name and bytes. */+ pickFiles(): Promise<{ name: string; data: Uint8Array }[]>+ readClipboardFiles(): Promise<{ name: string; data: Uint8Array }[]>+ setTraySummary(summary: TraySummary): void+ onCommand(cb: (command: WindowCommand) => void): () => void+ openPairing(): void+ quit(): void+ resetAllData(): Promise<void>+ setLaunchAtLogin(on: boolean): Promise<boolean>+ launchAtLogin(): Promise<boolean>+ openSettings(url: string): void+ /**+ * Opens `url` in the system browser and resolves with the URL it returns to on `scheme`+ * (`codync://…`), like ASWebAuthenticationSession. Rejects when cancelled or timed out.+ */+ authenticate(url: string, scheme: string): Promise<string>+ }+}diff --git a/apps/desktop/src/shared/models.ts b/apps/desktop/src/shared/models.tsnew file mode 100644index 00000000..e847fc26--- /dev/null+++ b/apps/desktop/src/shared/models.ts@@ -0,0 +1,412 @@+// Wire types for codync-host (see host/src/api/mod.rs). Field names match the+// host's camelCase JSON. Timestamps are epoch milliseconds.++export type BotStatus = 'idle' | 'working' | 'needsInput' | 'error'++export interface Bot {+ id: string+ /** `agent`, or `group`: several bots and the user in one chat. */+ kind: string+ members: string[]+ name: string+ description: string+ avatarColor: string+ avatarShape: string+ backend: string+ command?: string | null+ cwd: string+ /** Host-allocated personal workspace rather than a user-selected project. */+ managedWorkspace: boolean+ /** `ask` or `auto`. */+ permission: string+ model?: string | null+ pinned: boolean+ hidden: boolean+ notify?: boolean | null+ connectors: string[]+ skills: string[]+ /** The bot can see and operate the computer's desktop. */+ computer: boolean+ autoName: boolean+ createdAt: number+ rev: number+ status: BotStatus | string+ activity: string+ startedAt?: number | null+ workingChat?: string | null+ workingThread?: string | null+ unread: number+ lastMessage?: string | null+ lastAt: number+}++/** Lenient: a host that is a little newer or older than the app still yields a usable bot. */+export function normalizeBot(raw: Partial<Bot> & { id: string }): Bot {+ const createdAt = raw.createdAt ?? 0+ return {+ id: raw.id,+ kind: raw.kind ?? 'agent',+ members: raw.members ?? [],+ name: raw.name ?? 'Bot',+ description: raw.description ?? '',+ avatarColor: raw.avatarColor ?? 'blue',+ avatarShape: raw.avatarShape ?? 'blob',+ backend: raw.backend ?? 'custom',+ command: raw.command ?? null,+ cwd: raw.cwd ?? '',+ managedWorkspace: raw.managedWorkspace ?? false,+ permission: raw.permission ?? 'auto',+ model: raw.model ?? null,+ pinned: raw.pinned ?? false,+ hidden: raw.hidden ?? false,+ notify: raw.notify ?? null,+ connectors: raw.connectors ?? [],+ skills: raw.skills ?? [],+ computer: raw.computer ?? false,+ autoName: raw.autoName ?? false,+ createdAt,+ rev: raw.rev ?? 0,+ status: raw.status ?? 'idle',+ activity: raw.activity ?? '',+ startedAt: raw.startedAt ?? null,+ workingChat: raw.workingChat ?? null,+ workingThread: raw.workingThread ?? null,+ unread: raw.unread ?? 0,+ lastMessage: raw.lastMessage ?? null,+ lastAt: raw.lastAt ?? createdAt,+ }+}++export const isGroup = (b: Bot) => b.kind === 'group'+export const isWorking = (b: Bot) => b.status === 'working' || b.status === 'needsInput'+export const needsInput = (b: Bot) => b.status === 'needsInput'+/** Working right now in this chat's main conversation (`thread == null`) or in that thread. */+export const isWorkingIn = (b: Bot, chat: string, thread: string | null | undefined) =>+ isWorking(b) && (b.workingChat ?? b.id) === chat && (b.workingThread ?? null) === (thread ?? null)+export const folderName = (b: Bot) =>+ b.managedWorkspace ? 'Personal workspace' : (b.cwd.split('/').filter(Boolean).pop() ?? b.cwd)++export interface FileDiff {+ path: string+ added: number+ removed: number+ isNew: boolean+ startLine: number+ patch: string+}++export interface PermissionOption {+ optionId: string+ name: string+ /** allow_once | allow_always | reject_once | reject_always */+ kind: string+}++export interface PlanItem {+ content: string+ status: string+ priority?: string+}++export interface ThreadSummary {+ count: number+ lastAt: number+ /** Who replied, first reply first: bot ids, and `user`. */+ authors: string[]+ unread?: number+}++export interface Attachment {+ id: string+ name: string+ size: number+}++export const isImageName = (name: string) =>+ ['png', 'jpg', 'jpeg', 'heic', 'gif', 'webp', 'tiff', 'bmp'].includes(name.split('.').pop()?.toLowerCase() ?? '')++export interface ConnectionRequest {+ [key: string]: unknown+}++export interface EntryData {+ connectionRequest?: ConnectionRequest+ routineId?: string+ runId?: string+ text?: string+ final?: boolean+ /** user: queued | sent | cancelled | failed · tool: pending | in_progress | completed | failed · permission: pending | answered | cancelled | expired */+ status?: string+ clientNonce?: string+ title?: string+ toolKind?: string+ output?: string+ diffs?: FileDiff[]+ locations?: { path: string; line?: number }[]+ options?: PermissionOption[]+ selected?: string+ command?: string+ detail?: string+ cwd?: string+ entries?: PlanItem[]+ /** notice: info | error | divider */+ style?: string+ author?: string+ thread?: ThreadSummary+ reactions?: string[]+ attachments?: Attachment[]+ callSeconds?: number+}++export interface Entry {+ id: string+ seq: number+ botId: string+ threadId?: string | null+ rev: number+ /** user | agent | thought | tool | plan | permission | notice */+ kind: string+ turn: number+ data: EntryData+ createdAt: number+ updatedAt: number+}++/** Chat-visible (Grok Bot model): user messages, final replies, approval cards, notices. */+export function isChat(e: Entry): boolean {+ switch (e.kind) {+ case 'user':+ case 'permission':+ case 'notice':+ return true+ case 'agent':+ return e.data.final === true+ default:+ return false+ }+}++export interface UsageWindow {+ id: string+ label: string+ percent: number+ resetsAt?: number | null+ resetsText?: string | null+}++export interface UsageProvider {+ id: string+ name: string+ windows: UsageWindow[]+ source: string+ updatedAt: number+}++export interface Usage {+ providers: UsageProvider[]+}++export interface Backend {+ id: string+ name: string+ available: boolean+ command: string+ installHint: string+ registry?: string+ description?: string+ installed?: boolean+ curated?: boolean+ signedIn?: boolean+ canInstall?: boolean+}++export interface ScreenDisplay {+ id: number+ name: string+ width: number+ height: number+ main: boolean+}++export interface ScreenState {+ enabled: boolean+ connected: boolean+ platform: string+ capture: boolean+ input: boolean+ displays: ScreenDisplay[]+ userControl: boolean+ agentBot?: string | null+ viewers: number+}++export function normalizeScreen(raw: Partial<ScreenState> | undefined | null): ScreenState | null {+ if (!raw) return null+ return {+ enabled: raw.enabled ?? false,+ connected: raw.connected ?? false,+ platform: raw.platform ?? '',+ capture: raw.capture ?? false,+ input: raw.input ?? false,+ displays: raw.displays ?? [],+ userControl: raw.userControl ?? false,+ agentBot: raw.agentBot ?? null,+ viewers: raw.viewers ?? 0,+ }+}++export interface Hello {+ hostId: string+ name: string+ version: string+ os: string+ device?: string+ home?: string+ backends: Backend[]+ rev: number+ screen?: ScreenState+ urls?: string[]+ computerId?: string+ signKey?: string+ boxKey?: string+ minApp?: string+ cloud?: string | null+}++export interface PairingInfo {+ pairingUrl: string+ urls: string[]+ svg?: string+ expiresAt?: number+}++export interface DirItem {+ name: string+ path: string+ isGit: boolean+}++export interface DirListing {+ path: string+ parent?: string | null+ isGit: boolean+ dirs: DirItem[]+}++/** A pending request as the computer shows it (loopback `accessRequests`). */+export interface AccessRequest {+ requestId: string+ deviceKey: string+ deviceName: string+ platform?: string | null+ email?: string | null+ /** The SAS; nil until the phone revealed its nonce (Approve stays disabled). */+ code?: string | null+ createdAt?: number | null+ expiresAt?: number | null+}++/** A device the host authorized (loopback `devices`). */+export interface AuthorizedDevice {+ key: string+ name: string+ platform?: string | null+ /** `local` (QR) or `account`. */+ source: string+ scopes?: string[]+ leaseUntil?: number | null+ createdAt?: number | null+ lastSeenAt?: number | null+ connected?: boolean | null+}++export interface CloudOwner {+ userId: string+ email?: string | null+}++/** `code`: compare the 6-digit code at the computer; `auto`: let account devices in. */+export type AccountApproval = 'code' | 'auto'++export interface CloudStatus {+ enabled: boolean+ url?: string | null+ registered?: boolean | null+ connected?: boolean | null+ owner?: CloudOwner | null+ lastError?: string | null+ approval?: AccountApproval | null+}++export interface ClaimSignature {+ computerId: string+ signKey: string+ boxKey: string+ name: string+ platform: string+ device?: string | null+ version: string+ sig: string+}++/** A computer this device talks to. Holds no secrets: only pinned public keys and addresses. */+export interface Computer {+ id: string+ name: string+ signKey: string+ boxKey?: string | null+ urls: string[]+ cloud?: string | null+ device?: string | null+ color?: string | null+}++/** Create / update payload for a bot. */+export interface BotDraft {+ id?: string+ name: string+ description: string+ avatarColor: string+ avatarShape: string+ backend: string+ command?: string | null+ cwd: string+ permission: string+ model?: string | null+ pinned?: boolean+ hidden?: boolean+ notify?: boolean | null+ connectors?: string[]+ skills?: string[]+ computer?: boolean+}++export function draftOf(bot: Bot): BotDraft {+ return {+ id: bot.id,+ name: bot.name,+ description: bot.description,+ avatarColor: bot.avatarColor,+ avatarShape: bot.avatarShape,+ backend: bot.backend,+ command: bot.command ?? null,+ cwd: bot.managedWorkspace ? '' : bot.cwd,+ permission: bot.permission,+ model: bot.model ?? null,+ pinned: bot.pinned,+ hidden: bot.hidden,+ notify: bot.notify ?? null,+ connectors: bot.connectors,+ skills: bot.skills,+ computer: bot.computer,+ }+}++export interface GroupDraft {+ id?: string+ kind: 'group'+ name: string+ description: string+ members: string[]+ pinned?: boolean+}diff --git a/apps/desktop/tools/export-symbols.swift b/apps/desktop/tools/export-symbols.swiftnew file mode 100644index 00000000..80008bc0--- /dev/null+++ b/apps/desktop/tools/export-symbols.swift@@ -0,0 +1,62 @@+// Renders the SF Symbols the desktop app uses into alpha masks for the macOS build+// (`npm run icons`, macOS only). SF Symbols may only ship in apps for Apple platforms, so the+// output is generated at build time, never committed, and Linux builds use the Lucide fallbacks.+//+// Reads src/renderer/components/symbols.json (names) and writes+// src/renderer/public/symbols/<name>.<weight>.png plus manifest.json with each symbol's+// size and baseline in points per point of font size.+import AppKit++let root = URL(fileURLWithPath: CommandLine.arguments.count > 1 ? CommandLine.arguments[1] : FileManager.default.currentDirectoryPath)+let names = try JSONDecoder().decode([String].self, from: Data(contentsOf: root.appending(path: "src/renderer/components/symbols.json")))+let out = root.appending(path: "src/renderer/public/symbols")+try? FileManager.default.removeItem(at: out)+try FileManager.default.createDirectory(at: out, withIntermediateDirectories: true)++let weights: [(String, NSFont.Weight)] = [+ ("light", .light), ("regular", .regular), ("medium", .medium), ("semibold", .semibold), ("bold", .bold), ("black", .black),+]+/// Rendered at this point size and scale: crisp up to ~40 pt at 2x.+let pointSize: CGFloat = 40+let scale: CGFloat = 2++struct Metrics: Encodable { var w: Double; var h: Double; var baseline: Double }+var manifest: [String: Metrics] = [:]+var missing: [String] = []++for name in names {+ guard NSImage(systemSymbolName: name, accessibilityDescription: nil) != nil else {+ missing.append(name)+ continue+ }+ for (label, weight) in weights {+ let config = NSImage.SymbolConfiguration(pointSize: pointSize, weight: weight, scale: .medium)+ guard let image = NSImage(systemSymbolName: name, accessibilityDescription: nil)?.withSymbolConfiguration(config) else { continue }+ let size = image.size+ if label == "regular" {+ // The alignment rect's bottom sits on the text baseline.+ manifest[name] = Metrics(w: size.width / pointSize, h: size.height / pointSize,+ baseline: image.alignmentRect.minY / pointSize)+ }+ let px = NSSize(width: ceil(size.width * scale), height: ceil(size.height * scale))+ guard let rep = NSBitmapImageRep(bitmapDataPlanes: nil, pixelsWide: Int(px.width), pixelsHigh: Int(px.height),+ bitsPerSample: 8, samplesPerPixel: 4, hasAlpha: true, isPlanar: false,+ colorSpaceName: .deviceRGB, bytesPerRow: 0, bitsPerPixel: 0) else { continue }+ rep.size = size+ NSGraphicsContext.saveGraphicsState()+ NSGraphicsContext.current = NSGraphicsContext(bitmapImageRep: rep)+ let tinted = NSImage(size: size, flipped: false) { rect in+ image.draw(in: rect)+ NSColor.black.set()+ rect.fill(using: .sourceAtop)+ return true+ }+ tinted.draw(in: NSRect(origin: .zero, size: size))+ NSGraphicsContext.restoreGraphicsState()+ try rep.representation(using: .png, properties: [:])?.write(to: out.appending(path: "\(name).\(label).png"))+ }+}++try JSONEncoder().encode(manifest).write(to: out.appending(path: "manifest.json"))+print("exported \(manifest.count) symbols to \(out.path)")+if !missing.isEmpty { print("unknown symbols: \(missing.joined(separator: ", "))") }diff --git a/apps/desktop/tsconfig.json b/apps/desktop/tsconfig.jsonnew file mode 100644index 00000000..7d7457bf--- /dev/null+++ b/apps/desktop/tsconfig.json@@ -0,0 +1,22 @@+{+ "compilerOptions": {+ "target": "ES2023",+ "module": "ESNext",+ "moduleResolution": "Bundler",+ "lib": ["ES2023", "DOM", "DOM.Iterable"],+ "jsx": "react-jsx",+ "strict": true,+ "noUnusedLocals": true,+ "noUnusedParameters": true,+ "noFallthroughCasesInSwitch": true,+ "skipLibCheck": true,+ "isolatedModules": true,+ "allowImportingTsExtensions": true,+ "noEmit": true,+ "types": ["node"],+ "ignoreDeprecations": "6.0",+ "baseUrl": ".",+ "paths": { "@shared/*": ["src/shared/*"] }+ },+ "include": ["src", "electron.vite.config.ts"]+}