Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
feat(desktop): agent console with OAuth sign-in, secure store, live SSE, notifications and auto-update
nirholas58823f317c64
diff --git a/apps/desktop/package-lock.json b/apps/desktop/package-lock.jsonnew file mode 100644index 000000000..932305dc8--- /dev/null+++ b/apps/desktop/package-lock.json@@ -0,0 +1,5450 @@+{+ "name": "three-ws-companion-desktop",+ "version": "0.1.0",+ "lockfileVersion": 3,+ "requires": true,+ "packages": {+ "": {+ "name": "three-ws-companion-desktop",+ "version": "0.1.0",+ "license": "Apache-2.0",+ "dependencies": {+ "@three-ws/companion": "file:../../packages/companion-sdk",+ "dompurify": "^3.4.15",+ "electron-updater": "^6.8.9",+ "marked": "^18.0.13",+ "smol-toml": "^1.8.0"+ },+ "devDependencies": {+ "electron": "^33.2.0",+ "electron-builder": "^25.1.8"+ }+ },+ "../../packages/companion-sdk": {+ "name": "@three-ws/companion",+ "version": "0.1.0",+ "license": "Apache-2.0",+ "bin": {+ "companion": "src/cli.mjs"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "@modelcontextprotocol/sdk": ">=1.0.0",+ "imapflow": ">=1.0.0"+ },+ "peerDependenciesMeta": {+ "@modelcontextprotocol/sdk": {+ "optional": true+ },+ "imapflow": {+ "optional": true+ }+ }+ },+ "node_modules/@develar/schema-utils": {+ "version": "2.6.5",+ "resolved": "https://registry.npmjs.org/@develar/schema-utils/-/schema-utils-2.6.5.tgz",+ "integrity": "sha512-0cp4PsWQ/9avqTVMCtZ+GirikIA36ikvjtHweU4/j8yLtgObI0+JUPhYFScgwlteveGB1rt3Cm8UhN04XayDig==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ajv": "^6.12.0",+ "ajv-keywords": "^3.4.1"+ },+ "engines": {+ "node": ">= 8.9.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/webpack"+ }+ },+ "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/get": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/@electron/get/-/get-2.0.3.tgz",+ "integrity": "sha512-Qkzpg2s9GnVV2I2BjRksUi43U5e6+zaQMcjoJy0C+C5oxaKl+fmckGDQFtRpZpZV0NQekuZZ+tGz7EA9TVnQtQ==",+ "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": ">=12"+ },+ "optionalDependencies": {+ "global-agent": "^3.0.0"+ }+ },+ "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/notarize/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/@electron/notarize/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/@electron/osx-sign": {+ "version": "1.3.1",+ "resolved": "https://registry.npmjs.org/@electron/osx-sign/-/osx-sign-1.3.1.tgz",+ "integrity": "sha512-BAfviURMHpmb1Yb50YbCxnOY0wfwaLXH5KJ4+80zS0gUkzDX3ec23naTlEqKsN+PwYn+a1cCzM7BJ4Wcd3sGzw==",+ "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/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/@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/osx-sign/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/@electron/osx-sign/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/@electron/rebuild": {+ "version": "3.6.1",+ "resolved": "https://registry.npmjs.org/@electron/rebuild/-/rebuild-3.6.1.tgz",+ "integrity": "sha512-f6596ZHpEq/YskUd8emYvOUne89ij8mQgjYFA5ru25QwbrRO+t1SImofdDv7kKOuWCmVOuU5tvfkbgGxIl3E/w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@malept/cross-spawn-promise": "^2.0.0",+ "chalk": "^4.0.0",+ "debug": "^4.1.1",+ "detect-libc": "^2.0.1",+ "fs-extra": "^10.0.0",+ "got": "^11.7.0",+ "node-abi": "^3.45.0",+ "node-api-version": "^0.2.0",+ "node-gyp": "^9.0.0",+ "ora": "^5.1.0",+ "read-binary-file-arch": "^1.0.6",+ "semver": "^7.3.5",+ "tar": "^6.0.5",+ "yargs": "^17.0.1"+ },+ "bin": {+ "electron-rebuild": "lib/cli.js"+ },+ "engines": {+ "node": ">=12.13.0"+ }+ },+ "node_modules/@electron/rebuild/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/@electron/rebuild/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/@electron/rebuild/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/rebuild/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/@electron/universal": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/@electron/universal/-/universal-2.0.1.tgz",+ "integrity": "sha512-fKpv9kg4SPmt+hY7SVBnIYULE9QJl8L3sCfcBsnqbJwwBwAeTLokJ9TRt9y7bK0JAzIW2y78TVVjvnQEms/yyA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@electron/asar": "^3.2.7",+ "@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.0",+ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.4.0.tgz",+ "integrity": "sha512-EQsFzMUJkCKGr1ePqlYADkIUmHW1s3ZXr5Yqy6wbGrfUCphpl2maM/kyOIRA2HpP3AaFQTZXD4ldjek+nccddA==",+ "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/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/@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/universal/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/@gar/promisify": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/@gar/promisify/-/promisify-1.1.3.tgz",+ "integrity": "sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@isaacs/cliui": {+ "version": "8.0.2",+ "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz",+ "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "string-width": "^5.1.2",+ "string-width-cjs": "npm:string-width@^4.2.0",+ "strip-ansi": "^7.0.1",+ "strip-ansi-cjs": "npm:strip-ansi@^6.0.1",+ "wrap-ansi": "^8.1.0",+ "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0"+ },+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@isaacs/cliui/node_modules/ansi-regex": {+ "version": "6.3.0",+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.3.0.tgz",+ "integrity": "sha512-WpDfL7NO6j7tH88IDBNVdUJxDh9nmCteAVW9dsep846XdwF4naCBK+/tGLX3KJgcpgMRXCFlTM2hKGoK9FsdrQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/chalk/ansi-regex?sponsor=1"+ }+ },+ "node_modules/@isaacs/cliui/node_modules/ansi-styles": {+ "version": "6.2.3",+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz",+ "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"+ }+ },+ "node_modules/@isaacs/cliui/node_modules/emoji-regex": {+ "version": "9.2.2",+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz",+ "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@isaacs/cliui/node_modules/string-width": {+ "version": "5.1.2",+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz",+ "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "eastasianwidth": "^0.2.0",+ "emoji-regex": "^9.2.2",+ "strip-ansi": "^7.0.1"+ },+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/@isaacs/cliui/node_modules/strip-ansi": {+ "version": "7.2.0",+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz",+ "integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ansi-regex": "^6.2.2"+ },+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/chalk/strip-ansi?sponsor=1"+ }+ },+ "node_modules/@isaacs/cliui/node_modules/wrap-ansi": {+ "version": "8.1.0",+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz",+ "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ansi-styles": "^6.1.0",+ "string-width": "^5.0.1",+ "strip-ansi": "^7.0.1"+ },+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"+ }+ },+ "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/@malept/flatpak-bundler/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/@malept/flatpak-bundler/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/@npmcli/fs": {+ "version": "2.1.2",+ "resolved": "https://registry.npmjs.org/@npmcli/fs/-/fs-2.1.2.tgz",+ "integrity": "sha512-yOJKRvohFOaLqipNtwYB9WugyZKhC/DZC4VYPmpaCzDBrA8YpK3qHZ8/HGscMnE4GqbkLNuVcCnxkeQEdGt6LQ==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "@gar/promisify": "^1.1.3",+ "semver": "^7.3.5"+ },+ "engines": {+ "node": "^12.13.0 || ^14.15.0 || >=16.0.0"+ }+ },+ "node_modules/@npmcli/fs/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/@npmcli/move-file": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/@npmcli/move-file/-/move-file-2.0.1.tgz",+ "integrity": "sha512-mJd2Z5TjYWq/ttPLLGqArdtnC74J6bOzg4rMDnN+p1xTacZ2yPRCk2y0oSWQtygLR9YVQXgOcONrwtnk3JupxQ==",+ "deprecated": "This functionality has been moved to @npmcli/fs",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "mkdirp": "^1.0.4",+ "rimraf": "^3.0.2"+ },+ "engines": {+ "node": "^12.13.0 || ^14.15.0 || >=16.0.0"+ }+ },+ "node_modules/@pkgjs/parseargs": {+ "version": "0.11.0",+ "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz",+ "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "engines": {+ "node": ">=14"+ }+ },+ "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/@three-ws/companion": {+ "resolved": "../../packages/companion-sdk",+ "link": true+ },+ "node_modules/@tootallnate/once": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-2.0.1.tgz",+ "integrity": "sha512-HqmEUIGRJ5fSXchkVgR5F7qn48bDBzv0kWj/Kfu5e6uci4UlEeng4331LnBkWffb++Ei3FOVLxo8JJWMFBDMeQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 10"+ }+ },+ "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/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": "20.19.43",+ "resolved": "https://registry.npmjs.org/@types/node/-/node-20.19.43.tgz",+ "integrity": "sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "undici-types": "~6.21.0"+ }+ },+ "node_modules/@types/plist": {+ "version": "3.0.5",+ "resolved": "https://registry.npmjs.org/@types/plist/-/plist-3.0.5.tgz",+ "integrity": "sha512-E6OCaRmAe4WDmWNsL/9RMqdkkzDCY1etutkflWk4c+AcjDU07Pcz1fQwTX0TQz+Pxqn9i4L1TU3UFpjnrcDgxA==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "@types/node": "*",+ "xmlbuilder": ">=11.0.1"+ }+ },+ "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/@types/trusted-types": {+ "version": "2.0.7",+ "resolved": "https://registry.npmjs.org/@types/trusted-types/-/trusted-types-2.0.7.tgz",+ "integrity": "sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==",+ "license": "MIT",+ "optional": true+ },+ "node_modules/@types/verror": {+ "version": "1.10.11",+ "resolved": "https://registry.npmjs.org/@types/verror/-/verror-1.10.11.tgz",+ "integrity": "sha512-RlDm9K7+o5stv0Co8i8ZRGxDbrTxhJtgjqjFyVh/tXQyl/rYtTKlnTvZ88oSTeYREWurwx20Js4kTuKCsFkUtg==",+ "dev": true,+ "license": "MIT",+ "optional": true+ },+ "node_modules/@types/yauzl": {+ "version": "2.10.3",+ "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.3.tgz",+ "integrity": "sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "@types/node": "*"+ }+ },+ "node_modules/@xmldom/xmldom": {+ "version": "0.9.12",+ "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.9.12.tgz",+ "integrity": "sha512-5AXjrcMClTryPe9LgZrygpB1lj7s0S9E0+W+AHaVKAVyHanafK86iPSvG5xHVSp/jC+VH1UXu0TAEmY279xH7A==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=14.6"+ }+ },+ "node_modules/7zip-bin": {+ "version": "5.2.0",+ "resolved": "https://registry.npmjs.org/7zip-bin/-/7zip-bin-5.2.0.tgz",+ "integrity": "sha512-ukTPVhqG4jNzMro2qA9HSCSSVJN3aN7tlb+hfqYCt3ER0yWroeA2VR38MNrOHLQ/cVj+DaIMad0kFCtWWowh/A==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/abbrev": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz",+ "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==",+ "dev": true,+ "license": "ISC"+ },+ "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/agentkeepalive": {+ "version": "4.6.0",+ "resolved": "https://registry.npmjs.org/agentkeepalive/-/agentkeepalive-4.6.0.tgz",+ "integrity": "sha512-kja8j7PjmncONqaTsB8fQ+wE2mSU2DJ9D4XKoJ5PFWIdRMa6SLSN1ff4mOr4jCbfRSsxR4keIiySJU0N9T5hIQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "humanize-ms": "^1.2.1"+ },+ "engines": {+ "node": ">= 8.0.0"+ }+ },+ "node_modules/aggregate-error": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz",+ "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "clean-stack": "^2.0.0",+ "indent-string": "^4.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/ajv": {+ "version": "6.15.0",+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.15.0.tgz",+ "integrity": "sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "fast-deep-equal": "^3.1.1",+ "fast-json-stable-stringify": "^2.0.0",+ "json-schema-traverse": "^0.4.1",+ "uri-js": "^4.2.2"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/epoberezkin"+ }+ },+ "node_modules/ajv-keywords": {+ "version": "3.5.2",+ "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz",+ "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==",+ "dev": true,+ "license": "MIT",+ "peerDependencies": {+ "ajv": "^6.9.1"+ }+ },+ "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-bin": {+ "version": "5.0.0-alpha.10",+ "resolved": "https://registry.npmjs.org/app-builder-bin/-/app-builder-bin-5.0.0-alpha.10.tgz",+ "integrity": "sha512-Ev4jj3D7Bo+O0GPD2NMvJl+PGiBAfS7pUGawntBNpCbxtpncfUixqFj9z9Jme7V7s3LBGqsWZZP54fxBX3JKJw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/app-builder-lib": {+ "version": "25.1.8",+ "resolved": "https://registry.npmjs.org/app-builder-lib/-/app-builder-lib-25.1.8.tgz",+ "integrity": "sha512-pCqe7dfsQFBABC1jeKZXQWhGcCPF3rPCXDdfqVKjIeWBcXzyC1iOWZdfFhGl+S9MyE/k//DFmC6FzuGAUudNDg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@develar/schema-utils": "~2.6.5",+ "@electron/notarize": "2.5.0",+ "@electron/osx-sign": "1.3.1",+ "@electron/rebuild": "3.6.1",+ "@electron/universal": "2.0.1",+ "@malept/flatpak-bundler": "^0.4.0",+ "@types/fs-extra": "9.0.13",+ "async-exit-hook": "^2.0.1",+ "bluebird-lst": "^1.0.9",+ "builder-util": "25.1.7",+ "builder-util-runtime": "9.2.10",+ "chromium-pickle-js": "^0.2.0",+ "config-file-ts": "0.2.8-rc1",+ "debug": "^4.3.4",+ "dotenv": "^16.4.5",+ "dotenv-expand": "^11.0.6",+ "ejs": "^3.1.8",+ "electron-publish": "25.1.7",+ "form-data": "^4.0.0",+ "fs-extra": "^10.1.0",+ "hosted-git-info": "^4.1.0",+ "is-ci": "^3.0.0",+ "isbinaryfile": "^5.0.0",+ "js-yaml": "^4.1.0",+ "json5": "^2.2.3",+ "lazy-val": "^1.0.5",+ "minimatch": "^10.0.0",+ "resedit": "^1.7.0",+ "sanitize-filename": "^1.6.3",+ "semver": "^7.3.8",+ "tar": "^6.1.12",+ "temp-file": "^3.4.0"+ },+ "engines": {+ "node": ">=14.0.0"+ },+ "peerDependencies": {+ "dmg-builder": "25.1.8",+ "electron-builder-squirrel-windows": "25.1.8"+ }+ },+ "node_modules/app-builder-lib/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/app-builder-lib/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/app-builder-lib/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/app-builder-lib/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/aproba": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/aproba/-/aproba-2.1.0.tgz",+ "integrity": "sha512-tLIEcj5GuR2RSTnxNKdkK0dJ/GrC7P38sUkiDmDuHfsHmbagTFAxDVIBltoklXEVIQ/f14IL8IMJ5pn9Hez1Ew==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/archiver": {+ "version": "5.3.2",+ "resolved": "https://registry.npmjs.org/archiver/-/archiver-5.3.2.tgz",+ "integrity": "sha512-+25nxyyznAXF7Nef3y0EbBeqmGZgeN/BxHX29Rs39djAfaFalmQ89SE6CWyDCHzGL0yt/ycBtNOmGTW0FyGWNw==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "archiver-utils": "^2.1.0",+ "async": "^3.2.4",+ "buffer-crc32": "^0.2.1",+ "readable-stream": "^3.6.0",+ "readdir-glob": "^1.1.2",+ "tar-stream": "^2.2.0",+ "zip-stream": "^4.1.0"+ },+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/archiver-utils": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/archiver-utils/-/archiver-utils-2.1.0.tgz",+ "integrity": "sha512-bEL/yUb/fNNiNTuUz979Z0Yg5L+LzLxGJz8x79lYmR54fmTIb6ob/hNQgkQnIUDWIFjZVQwl9Xs356I6BAMHfw==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "glob": "^7.1.4",+ "graceful-fs": "^4.2.0",+ "lazystream": "^1.0.0",+ "lodash.defaults": "^4.2.0",+ "lodash.difference": "^4.5.0",+ "lodash.flatten": "^4.4.0",+ "lodash.isplainobject": "^4.0.6",+ "lodash.union": "^4.6.0",+ "normalize-path": "^3.0.0",+ "readable-stream": "^2.0.0"+ },+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/archiver-utils/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",+ "peer": true,+ "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/archiver-utils/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",+ "peer": true+ },+ "node_modules/archiver-utils/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",+ "peer": true,+ "dependencies": {+ "safe-buffer": "~5.1.0"+ }+ },+ "node_modules/are-we-there-yet": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-3.0.1.tgz",+ "integrity": "sha512-QZW4EDmGwlYur0Yyf/b2uGucHQMa8aFUP7eu9ddR73vvhFyt4V0Vl3QHPcTNJ8l6qYOBdxgXdnBXQrHilfRQBg==",+ "deprecated": "This package is no longer supported.",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "delegates": "^1.0.0",+ "readable-stream": "^3.6.0"+ },+ "engines": {+ "node": "^12.13.0 || ^14.15.0 || >=16.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==",+ "license": "Python-2.0"+ },+ "node_modules/assert-plus": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz",+ "integrity": "sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "engines": {+ "node": ">=0.8"+ }+ },+ "node_modules/astral-regex": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz",+ "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "engines": {+ "node": ">=8"+ }+ },+ "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/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/bl": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz",+ "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "buffer": "^5.5.0",+ "inherits": "^2.0.4",+ "readable-stream": "^3.4.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/bluebird-lst": {+ "version": "1.0.9",+ "resolved": "https://registry.npmjs.org/bluebird-lst/-/bluebird-lst-1.0.9.tgz",+ "integrity": "sha512-7B1Rtx82hjnSD4PGLAjVWeYH3tHAcVUmChh85a3lltKQm6FresXh9ErQo6oAv6CqxttczC3/kEg8SY5NluPuUw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "bluebird": "^3.5.5"+ }+ },+ "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/buffer": {+ "version": "5.7.1",+ "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz",+ "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "base64-js": "^1.3.1",+ "ieee754": "^1.1.13"+ }+ },+ "node_modules/buffer-crc32": {+ "version": "0.2.13",+ "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz",+ "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "*"+ }+ },+ "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": "25.1.7",+ "resolved": "https://registry.npmjs.org/builder-util/-/builder-util-25.1.7.tgz",+ "integrity": "sha512-7jPjzBwEGRbwNcep0gGNpLXG9P94VA3CPAZQCzxkFXiV2GMQKlziMbY//rXPI7WKfhsvGgFXjTcXdBEwgXw9ww==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/debug": "^4.1.6",+ "7zip-bin": "~5.2.0",+ "app-builder-bin": "5.0.0-alpha.10",+ "bluebird-lst": "^1.0.9",+ "builder-util-runtime": "9.2.10",+ "chalk": "^4.1.2",+ "cross-spawn": "^7.0.3",+ "debug": "^4.3.4",+ "fs-extra": "^10.1.0",+ "http-proxy-agent": "^7.0.0",+ "https-proxy-agent": "^7.0.0",+ "is-ci": "^3.0.0",+ "js-yaml": "^4.1.0",+ "source-map-support": "^0.5.19",+ "stat-mode": "^1.0.0",+ "temp-file": "^3.4.0"+ }+ },+ "node_modules/builder-util-runtime": {+ "version": "9.2.10",+ "resolved": "https://registry.npmjs.org/builder-util-runtime/-/builder-util-runtime-9.2.10.tgz",+ "integrity": "sha512-6p/gfG1RJSQeIbz8TK5aPNkoztgY1q5TgmGFMAXcY8itsGW6Y2ld1ALsZ5UJn8rog7hKF3zHx5iQbNQ8uLcRlw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "debug": "^4.3.4",+ "sax": "^1.2.4"+ },+ "engines": {+ "node": ">=12.0.0"+ }+ },+ "node_modules/builder-util/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/builder-util/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/builder-util/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/cacache": {+ "version": "16.1.3",+ "resolved": "https://registry.npmjs.org/cacache/-/cacache-16.1.3.tgz",+ "integrity": "sha512-/+Emcj9DAXxX4cwlLmRI9c166RuL3w30zp4R7Joiv2cQTtTtA+jeuCAjH3ZlGnYS3tKENSrKhAzVVP9GVyzeYQ==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "@npmcli/fs": "^2.1.0",+ "@npmcli/move-file": "^2.0.0",+ "chownr": "^2.0.0",+ "fs-minipass": "^2.1.0",+ "glob": "^8.0.1",+ "infer-owner": "^1.0.4",+ "lru-cache": "^7.7.1",+ "minipass": "^3.1.6",+ "minipass-collect": "^1.0.2",+ "minipass-flush": "^1.0.5",+ "minipass-pipeline": "^1.2.4",+ "mkdirp": "^1.0.4",+ "p-map": "^4.0.0",+ "promise-inflight": "^1.0.1",+ "rimraf": "^3.0.2",+ "ssri": "^9.0.0",+ "tar": "^6.1.11",+ "unique-filename": "^2.0.0"+ },+ "engines": {+ "node": "^12.13.0 || ^14.15.0 || >=16.0.0"+ }+ },+ "node_modules/cacache/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/cacache/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/cacache/node_modules/glob": {+ "version": "8.1.0",+ "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz",+ "integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==",+ "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": "^5.0.1",+ "once": "^1.3.0"+ },+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/cacache/node_modules/lru-cache": {+ "version": "7.18.3",+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz",+ "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==",+ "dev": true,+ "license": "ISC",+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/cacache/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/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/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": "2.0.0",+ "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz",+ "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==",+ "dev": true,+ "license": "ISC",+ "engines": {+ "node": ">=10"+ }+ },+ "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": "3.9.0",+ "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz",+ "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/sibiraj-s"+ }+ ],+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/clean-stack": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz",+ "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/cli-cursor": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz",+ "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "restore-cursor": "^3.1.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/cli-spinners": {+ "version": "2.9.2",+ "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.9.2.tgz",+ "integrity": "sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/cli-truncate": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-2.1.0.tgz",+ "integrity": "sha512-n8fOixwDD6b/ObinzTrp1ZKFzbgvKZvuz/TvejnLn1aQfC6r52XEx85FmuC+3HI+JM7coBRXUvNqEU2PHVrHpg==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "slice-ansi": "^3.0.0",+ "string-width": "^4.2.0"+ },+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "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": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz",+ "integrity": "sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.8"+ }+ },+ "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/color-support": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz",+ "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==",+ "dev": true,+ "license": "ISC",+ "bin": {+ "color-support": "bin.js"+ }+ },+ "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/compress-commons": {+ "version": "4.1.2",+ "resolved": "https://registry.npmjs.org/compress-commons/-/compress-commons-4.1.2.tgz",+ "integrity": "sha512-D3uMHtGc/fcO1Gt1/L7i1e33VOvD4A9hfQLP+6ewd+BvG/gQ84Yh4oftEhAdjSMgBgwGL+jsppT7JYNpo6MHHg==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "buffer-crc32": "^0.2.13",+ "crc32-stream": "^4.0.2",+ "normalize-path": "^3.0.0",+ "readable-stream": "^3.6.0"+ },+ "engines": {+ "node": ">= 10"+ }+ },+ "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/config-file-ts": {+ "version": "0.2.8-rc1",+ "resolved": "https://registry.npmjs.org/config-file-ts/-/config-file-ts-0.2.8-rc1.tgz",+ "integrity": "sha512-GtNECbVI82bT4RiDIzBSVuTKoSHufnU7Ce7/42bkWZJZFLjmDF2WBpVsvRkhKCfKBnTBb3qZrBwPpFBU/Myvhg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "glob": "^10.3.12",+ "typescript": "^5.4.3"+ }+ },+ "node_modules/config-file-ts/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/config-file-ts/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/config-file-ts/node_modules/glob": {+ "version": "10.5.0",+ "resolved": "https://registry.npmjs.org/glob/-/glob-10.5.0.tgz",+ "integrity": "sha512-DfXN8DfhJ7NH3Oe7cFmu3NCu1wKbkReJ8TorzSAFbSKrlNaQSKfIzqYqVY8zlbs2NLBbWpRiU52GX2PbaBVNkg==",+ "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": {+ "foreground-child": "^3.1.0",+ "jackspeak": "^3.1.2",+ "minimatch": "^9.0.4",+ "minipass": "^7.1.2",+ "package-json-from-dist": "^1.0.0",+ "path-scurry": "^1.11.1"+ },+ "bin": {+ "glob": "dist/esm/bin.mjs"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/config-file-ts/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/config-file-ts/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/console-control-strings": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz",+ "integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/core-util-is": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",+ "integrity": "sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/crc": {+ "version": "3.8.0",+ "resolved": "https://registry.npmjs.org/crc/-/crc-3.8.0.tgz",+ "integrity": "sha512-iX3mfgcTMIq3ZKLIsVFAbv7+Mc10kxabAGQb8HvjA1o3T1PIYprbakQ65d3I+2HGHt6nSKkM9PYjgoJO2KcFBQ==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "buffer": "^5.1.0"+ }+ },+ "node_modules/crc-32": {+ "version": "1.2.2",+ "resolved": "https://registry.npmjs.org/crc-32/-/crc-32-1.2.2.tgz",+ "integrity": "sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ==",+ "dev": true,+ "license": "Apache-2.0",+ "peer": true,+ "bin": {+ "crc32": "bin/crc32.njs"+ },+ "engines": {+ "node": ">=0.8"+ }+ },+ "node_modules/crc32-stream": {+ "version": "4.0.3",+ "resolved": "https://registry.npmjs.org/crc32-stream/-/crc32-stream-4.0.3.tgz",+ "integrity": "sha512-NT7w2JVU7DFroFdYkeq8cywxrgjPHWkdX1wjpRQXPX5Asews3tA+Ght6lddQO5Mkumffp3X7GEqku3epj2toIw==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "crc-32": "^1.2.0",+ "readable-stream": "^3.4.0"+ },+ "engines": {+ "node": ">= 10"+ }+ },+ "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/debug": {+ "version": "4.4.3",+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",+ "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",+ "license": "MIT",+ "dependencies": {+ "ms": "^2.1.3"+ },+ "engines": {+ "node": ">=6.0"+ },+ "peerDependenciesMeta": {+ "supports-color": {+ "optional": true+ }+ }+ },+ "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/defaults": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.4.tgz",+ "integrity": "sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "clone": "^1.0.2"+ },+ "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/delegates": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz",+ "integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/detect-libc": {+ "version": "2.1.2",+ "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",+ "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==",+ "dev": true,+ "license": "Apache-2.0",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/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/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": "25.1.8",+ "resolved": "https://registry.npmjs.org/dmg-builder/-/dmg-builder-25.1.8.tgz",+ "integrity": "sha512-NoXo6Liy2heSklTI5OIZbCgXC1RzrDQsZkeEwXhdOro3FT1VBOvbubvscdPnjVuQ4AMwwv61oaH96AbiYg9EnQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "app-builder-lib": "25.1.8",+ "builder-util": "25.1.7",+ "builder-util-runtime": "9.2.10",+ "fs-extra": "^10.1.0",+ "iconv-lite": "^0.6.2",+ "js-yaml": "^4.1.0"+ },+ "optionalDependencies": {+ "dmg-license": "^1.0.11"+ }+ },+ "node_modules/dmg-builder/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/dmg-builder/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/dmg-builder/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/dmg-license": {+ "version": "1.0.11",+ "resolved": "https://registry.npmjs.org/dmg-license/-/dmg-license-1.0.11.tgz",+ "integrity": "sha512-ZdzmqwKmECOWJpqefloC5OJy1+WZBBse5+MR88z9g9Zn4VY+WYUkAyojmhzJckH5YbbZGcYIuGAkY5/Ys5OM2Q==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "dependencies": {+ "@types/plist": "^3.0.1",+ "@types/verror": "^1.10.3",+ "ajv": "^6.10.0",+ "crc": "^3.8.0",+ "iconv-corefoundation": "^1.1.7",+ "plist": "^3.0.4",+ "smart-buffer": "^4.0.2",+ "verror": "^1.10.0"+ },+ "bin": {+ "dmg-license": "bin/dmg-license.js"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/dompurify": {+ "version": "3.4.15",+ "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.4.15.tgz",+ "integrity": "sha512-EUBjM+B+lkDE41iE82DDSCfkoPGfXx8IxFxPMjNzm/Uk4xDet77rTN9wqlxlVg71kK7XGuUMv6wUxJUwwv+Xyw==",+ "license": "(MPL-2.0 OR Apache-2.0)",+ "optionalDependencies": {+ "@types/trusted-types": "^2.0.7"+ }+ },+ "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/eastasianwidth": {+ "version": "0.2.0",+ "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz",+ "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==",+ "dev": true,+ "license": "MIT"+ },+ "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": "33.4.11",+ "resolved": "https://registry.npmjs.org/electron/-/electron-33.4.11.tgz",+ "integrity": "sha512-xmdAs5QWRkInC7TpXGNvzo/7exojubk+72jn1oJL7keNeIlw7xNglf8TGtJtkR4rWC5FJq0oXiIXPS9BcK2Irg==",+ "dev": true,+ "hasInstallScript": true,+ "license": "MIT",+ "dependencies": {+ "@electron/get": "^2.0.0",+ "@types/node": "^20.9.0",+ "extract-zip": "^2.0.1"+ },+ "bin": {+ "electron": "cli.js"+ },+ "engines": {+ "node": ">= 12.20.55"+ }+ },+ "node_modules/electron-builder": {+ "version": "25.1.8",+ "resolved": "https://registry.npmjs.org/electron-builder/-/electron-builder-25.1.8.tgz",+ "integrity": "sha512-poRgAtUHHOnlzZnc9PK4nzG53xh74wj2Jy7jkTrqZ0MWPoHGh1M2+C//hGeYdA+4K8w4yiVCNYoLXF7ySj2Wig==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "app-builder-lib": "25.1.8",+ "builder-util": "25.1.7",+ "builder-util-runtime": "9.2.10",+ "chalk": "^4.1.2",+ "dmg-builder": "25.1.8",+ "fs-extra": "^10.1.0",+ "is-ci": "^3.0.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": "25.1.8",+ "resolved": "https://registry.npmjs.org/electron-builder-squirrel-windows/-/electron-builder-squirrel-windows-25.1.8.tgz",+ "integrity": "sha512-2ntkJ+9+0GFP6nAISiMabKt6eqBB0kX1QqHNWFWAXgi0VULKGisM46luRFpIBiU3u/TDmhZMM8tzvo2Abn3ayg==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "app-builder-lib": "25.1.8",+ "archiver": "^5.3.1",+ "builder-util": "25.1.7",+ "fs-extra": "^10.1.0"+ }+ },+ "node_modules/electron-builder-squirrel-windows/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",+ "peer": true,+ "dependencies": {+ "graceful-fs": "^4.2.0",+ "jsonfile": "^6.0.1",+ "universalify": "^2.0.0"+ },+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/electron-builder-squirrel-windows/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",+ "peer": true,+ "dependencies": {+ "universalify": "^2.0.0"+ },+ "optionalDependencies": {+ "graceful-fs": "^4.1.6"+ }+ },+ "node_modules/electron-builder-squirrel-windows/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",+ "peer": true,+ "engines": {+ "node": ">= 10.0.0"+ }+ },+ "node_modules/electron-builder/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/electron-builder/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/electron-builder/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/electron-publish": {+ "version": "25.1.7",+ "resolved": "https://registry.npmjs.org/electron-publish/-/electron-publish-25.1.7.tgz",+ "integrity": "sha512-+jbTkR9m39eDBMP4gfbqglDd6UvBC7RLh5Y0MhFSsc6UkGHj9Vj9TWobxevHYMMqmoujL11ZLjfPpMX+Pt6YEg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/fs-extra": "^9.0.11",+ "builder-util": "25.1.7",+ "builder-util-runtime": "9.2.10",+ "chalk": "^4.1.2",+ "fs-extra": "^10.1.0",+ "lazy-val": "^1.0.5",+ "mime": "^2.5.2"+ }+ },+ "node_modules/electron-publish/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/electron-publish/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/electron-publish/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/electron-updater": {+ "version": "6.8.9",+ "resolved": "https://registry.npmjs.org/electron-updater/-/electron-updater-6.8.9.tgz",+ "integrity": "sha512-ZhVxM9iGONUpZGI1FxdMRgJjUFXi7AYGVa5PwKlO1tV1/4zDxQmfKpXOHVztKrd6L9rLcFjERvi1Mf2vxyTkig==",+ "license": "MIT",+ "dependencies": {+ "builder-util-runtime": "9.7.0",+ "fs-extra": "^10.1.0",+ "js-yaml": "^4.1.0",+ "lazy-val": "^1.0.5",+ "lodash.escaperegexp": "^4.1.2",+ "lodash.isequal": "^4.5.0",+ "semver": "~7.7.3",+ "tiny-typed-emitter": "^2.1.0"+ }+ },+ "node_modules/electron-updater/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==",+ "license": "MIT",+ "dependencies": {+ "debug": "^4.3.4",+ "sax": "^1.2.4"+ },+ "engines": {+ "node": ">=12.0.0"+ }+ },+ "node_modules/electron-updater/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==",+ "license": "MIT",+ "dependencies": {+ "graceful-fs": "^4.2.0",+ "jsonfile": "^6.0.1",+ "universalify": "^2.0.0"+ },+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/electron-updater/node_modules/jsonfile": {+ "version": "6.2.1",+ "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz",+ "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==",+ "license": "MIT",+ "dependencies": {+ "universalify": "^2.0.0"+ },+ "optionalDependencies": {+ "graceful-fs": "^4.1.6"+ }+ },+ "node_modules/electron-updater/node_modules/semver": {+ "version": "7.7.4",+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz",+ "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==",+ "license": "ISC",+ "bin": {+ "semver": "bin/semver.js"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/electron-updater/node_modules/universalify": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz",+ "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==",+ "license": "MIT",+ "engines": {+ "node": ">= 10.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/encoding": {+ "version": "0.1.13",+ "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.13.tgz",+ "integrity": "sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "iconv-lite": "^0.6.2"+ }+ },+ "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": "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/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/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/extract-zip": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz",+ "integrity": "sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==",+ "dev": true,+ "license": "BSD-2-Clause",+ "dependencies": {+ "debug": "^4.1.1",+ "get-stream": "^5.1.0",+ "yauzl": "^2.10.0"+ },+ "bin": {+ "extract-zip": "cli.js"+ },+ "engines": {+ "node": ">= 10.17.0"+ },+ "optionalDependencies": {+ "@types/yauzl": "^2.9.1"+ }+ },+ "node_modules/extsprintf": {+ "version": "1.4.1",+ "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.4.1.tgz",+ "integrity": "sha512-Wrk35e8ydCKDj/ArClo1VrPVmN8zph5V4AtHwIuHhvMXsKf73UT3BOD+azBIW+3wOJ4FhEH7zyaJCFvChjYvMA==",+ "dev": true,+ "engines": [+ "node >=0.6.0"+ ],+ "license": "MIT",+ "optional": true+ },+ "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-json-stable-stringify": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",+ "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/fd-slicer": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz",+ "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "pend": "~1.2.0"+ }+ },+ "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/foreground-child": {+ "version": "3.3.1",+ "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz",+ "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "cross-spawn": "^7.0.6",+ "signal-exit": "^4.0.1"+ },+ "engines": {+ "node": ">=14"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/foreground-child/node_modules/signal-exit": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz",+ "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==",+ "dev": true,+ "license": "ISC",+ "engines": {+ "node": ">=14"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "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-constants": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz",+ "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==",+ "dev": true,+ "license": "MIT",+ "peer": true+ },+ "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/fs-minipass": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz",+ "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "minipass": "^3.0.0"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "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/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/gauge": {+ "version": "4.0.4",+ "resolved": "https://registry.npmjs.org/gauge/-/gauge-4.0.4.tgz",+ "integrity": "sha512-f9m+BEN5jkg6a0fZjleidjN51VE1X+mPFQ2DJ0uv1V39oCLCbsGe6yjbBnp7eK7z/+GAon99a3nHuqbuuthyPg==",+ "deprecated": "This package is no longer supported.",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "aproba": "^1.0.3 || ^2.0.0",+ "color-support": "^1.1.3",+ "console-control-strings": "^1.1.0",+ "has-unicode": "^2.0.1",+ "signal-exit": "^3.0.7",+ "string-width": "^4.2.3",+ "strip-ansi": "^6.0.1",+ "wide-align": "^1.1.5"+ },+ "engines": {+ "node": "^12.13.0 || ^14.15.0 || >=16.0.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==",+ "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/has-unicode": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz",+ "integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==",+ "dev": true,+ "license": "ISC"+ },+ "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/http-cache-semantics": {+ "version": "4.2.0",+ "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.2.0.tgz",+ "integrity": "sha512-dTxcvPXqPvXBQpq5dUr6mEMJX4oIEFv6bwom3FDwKRDsuIjjJGANqhBuoAn9c1RQJIdAKav33ED65E2ys+87QQ==",+ "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/humanize-ms": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/humanize-ms/-/humanize-ms-1.2.1.tgz",+ "integrity": "sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ms": "^2.0.0"+ }+ },+ "node_modules/iconv-corefoundation": {+ "version": "1.1.7",+ "resolved": "https://registry.npmjs.org/iconv-corefoundation/-/iconv-corefoundation-1.1.7.tgz",+ "integrity": "sha512-T10qvkw0zz4wnm560lOEg0PovVqUXuOFhhHAkixw8/sycy7TJt7v/RrkEKEQnAw2viPSJu6iAkErxnzR0g8PpQ==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "dependencies": {+ "cli-truncate": "^2.1.0",+ "node-addon-api": "^1.6.3"+ },+ "engines": {+ "node": "^8.11.2 || >=10"+ }+ },+ "node_modules/iconv-lite": {+ "version": "0.6.3",+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz",+ "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "safer-buffer": ">= 2.1.2 < 3.0.0"+ },+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/ieee754": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",+ "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==",+ "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": "BSD-3-Clause"+ },+ "node_modules/imurmurhash": {+ "version": "0.1.4",+ "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",+ "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.8.19"+ }+ },+ "node_modules/indent-string": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz",+ "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/infer-owner": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/infer-owner/-/infer-owner-1.0.4.tgz",+ "integrity": "sha512-IClj+Xz94+d7irH5qRyfJonOdfTzuDaifE6ZPWfx0N0+/ATZCbuTPq2prFl526urkQd90WyUKIh1DfBQ2hMz9A==",+ "dev": true,+ "license": "ISC"+ },+ "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/ip-address": {+ "version": "10.7.2",+ "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.7.2.tgz",+ "integrity": "sha512-7H/2gFSIitxc0hG3nOI1glS8QLo/EHBFFLk8vEUjXY/xu0AdL8jZ9U1IzO2PUm0d2D/ofQcAifb0g6OBkt8U7w==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 12"+ }+ },+ "node_modules/is-ci": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-3.0.1.tgz",+ "integrity": "sha512-ZYvCgrefwqoQ6yTyYUbQu64HsITZ3NfKX1lzaEYdkTDcfKzzCI/wthRRYKkdjHKFVgNiXKAKm65Zo1pk2as/QQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ci-info": "^3.2.0"+ },+ "bin": {+ "is-ci": "bin.js"+ }+ },+ "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/is-interactive": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz",+ "integrity": "sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/is-lambda": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/is-lambda/-/is-lambda-1.0.1.tgz",+ "integrity": "sha512-z7CMFGNrENq5iFB9Bqo64Xk6Y9sg+epq1myIcdHaGnbMTYOxvzsEtdYqQUylB7LxfkvgrrjP32T6Ywciio9UIQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/is-unicode-supported": {+ "version": "0.1.0",+ "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz",+ "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "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",+ "peer": true+ },+ "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": "2.0.0",+ "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",+ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/jackspeak": {+ "version": "3.4.3",+ "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz",+ "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==",+ "dev": true,+ "license": "BlueOak-1.0.0",+ "dependencies": {+ "@isaacs/cliui": "^8.0.2"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ },+ "optionalDependencies": {+ "@pkgjs/parseargs": "^0.11.0"+ }+ },+ "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/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==",+ "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/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": "0.4.1",+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",+ "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",+ "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": "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/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==",+ "license": "MIT"+ },+ "node_modules/lazystream": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/lazystream/-/lazystream-1.0.1.tgz",+ "integrity": "sha512-b94GiNHQNy6JNTrt5w6zNyffMrNkXZb3KTkCZJb2V1xaEGCk093vkZ2jk3tpaeP33/OiXC+WvK9AxUebnf5nbw==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "readable-stream": "^2.0.5"+ },+ "engines": {+ "node": ">= 0.6.3"+ }+ },+ "node_modules/lazystream/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",+ "peer": true,+ "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/lazystream/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",+ "peer": true+ },+ "node_modules/lazystream/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",+ "peer": true,+ "dependencies": {+ "safe-buffer": "~5.1.0"+ }+ },+ "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/lodash.defaults": {+ "version": "4.2.0",+ "resolved": "https://registry.npmjs.org/lodash.defaults/-/lodash.defaults-4.2.0.tgz",+ "integrity": "sha512-qjxPLHd3r5DnsdGacqOMU6pb/avJzdh9tFX2ymgoZE27BmjXrNy/y4LoaiTeAb+O3gL8AfpJGtqfX/ae2leYYQ==",+ "dev": true,+ "license": "MIT",+ "peer": true+ },+ "node_modules/lodash.difference": {+ "version": "4.5.0",+ "resolved": "https://registry.npmjs.org/lodash.difference/-/lodash.difference-4.5.0.tgz",+ "integrity": "sha512-dS2j+W26TQ7taQBGN8Lbbq04ssV3emRw4NY58WErlTO29pIqS0HmoT5aJ9+TUQ1N3G+JOZSji4eugsWwGp9yPA==",+ "dev": true,+ "license": "MIT",+ "peer": true+ },+ "node_modules/lodash.escaperegexp": {+ "version": "4.1.2",+ "resolved": "https://registry.npmjs.org/lodash.escaperegexp/-/lodash.escaperegexp-4.1.2.tgz",+ "integrity": "sha512-TM9YBvyC84ZxE3rgfefxUWiQKLilstD6k7PTGt6wfbtXF8ixIJLOL3VYyV/z+ZiPLsVxAsKAFVwWlWeb2Y8Yyw==",+ "license": "MIT"+ },+ "node_modules/lodash.flatten": {+ "version": "4.4.0",+ "resolved": "https://registry.npmjs.org/lodash.flatten/-/lodash.flatten-4.4.0.tgz",+ "integrity": "sha512-C5N2Z3DgnnKr0LOpv/hKCgKdb7ZZwafIrsesve6lmzvZIRZRGaZ/l6Q8+2W7NaT+ZwO3fFlSCzCzrDCFdJfZ4g==",+ "dev": true,+ "license": "MIT",+ "peer": true+ },+ "node_modules/lodash.isequal": {+ "version": "4.5.0",+ "resolved": "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz",+ "integrity": "sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==",+ "deprecated": "This package is deprecated. Use require('node:util').isDeepStrictEqual instead.",+ "license": "MIT"+ },+ "node_modules/lodash.isplainobject": {+ "version": "4.0.6",+ "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz",+ "integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==",+ "dev": true,+ "license": "MIT",+ "peer": true+ },+ "node_modules/lodash.union": {+ "version": "4.6.0",+ "resolved": "https://registry.npmjs.org/lodash.union/-/lodash.union-4.6.0.tgz",+ "integrity": "sha512-c4pB2CdGrGdjMKYLA+XiRDO7Y0PRQbm/Gzg8qMj+QH+pFVAoTp5sBpO0odL3FjoPCGjK96p6qsP+yQoiLoOBcw==",+ "dev": true,+ "license": "MIT",+ "peer": true+ },+ "node_modules/log-symbols": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz",+ "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "chalk": "^4.1.0",+ "is-unicode-supported": "^0.1.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "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": "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/make-fetch-happen": {+ "version": "10.2.1",+ "resolved": "https://registry.npmjs.org/make-fetch-happen/-/make-fetch-happen-10.2.1.tgz",+ "integrity": "sha512-NgOPbRiaQM10DYXvN3/hhGVI2M5MtITFryzBGxHM5p4wnFxsVCbxkrBrDsk+EZ5OB4jEOT7AjDxtdF+KVEFT7w==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "agentkeepalive": "^4.2.1",+ "cacache": "^16.1.0",+ "http-cache-semantics": "^4.1.0",+ "http-proxy-agent": "^5.0.0",+ "https-proxy-agent": "^5.0.0",+ "is-lambda": "^1.0.1",+ "lru-cache": "^7.7.1",+ "minipass": "^3.1.6",+ "minipass-collect": "^1.0.2",+ "minipass-fetch": "^2.0.3",+ "minipass-flush": "^1.0.5",+ "minipass-pipeline": "^1.2.4",+ "negotiator": "^0.6.3",+ "promise-retry": "^2.0.1",+ "socks-proxy-agent": "^7.0.0",+ "ssri": "^9.0.0"+ },+ "engines": {+ "node": "^12.13.0 || ^14.15.0 || >=16.0.0"+ }+ },+ "node_modules/make-fetch-happen/node_modules/agent-base": {+ "version": "6.0.2",+ "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz",+ "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "debug": "4"+ },+ "engines": {+ "node": ">= 6.0.0"+ }+ },+ "node_modules/make-fetch-happen/node_modules/http-proxy-agent": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-5.0.0.tgz",+ "integrity": "sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@tootallnate/once": "2",+ "agent-base": "6",+ "debug": "4"+ },+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/make-fetch-happen/node_modules/https-proxy-agent": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz",+ "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "agent-base": "6",+ "debug": "4"+ },+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/make-fetch-happen/node_modules/lru-cache": {+ "version": "7.18.3",+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz",+ "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==",+ "dev": true,+ "license": "ISC",+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/marked": {+ "version": "18.0.13",+ "resolved": "https://registry.npmjs.org/marked/-/marked-18.0.13.tgz",+ "integrity": "sha512-xTxVzZsBFwunP6HDmtBkabUQEYArnP7/rMDGmPj9SlrKlQ4i8MdYVow+nJL0eOqwpUqhzBoTBRADGN6uYwPyOw==",+ "license": "MIT",+ "bin": {+ "marked": "bin/marked.js"+ },+ "engines": {+ "node": ">= 20"+ }+ },+ "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-fn": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz",+ "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=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": "3.3.6",+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz",+ "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "yallist": "^4.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/minipass-collect": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/minipass-collect/-/minipass-collect-1.0.2.tgz",+ "integrity": "sha512-6T6lH0H8OG9kITm/Jm6tdooIbogG9e0tLgpY6mphXSm/A9u8Nq1ryBG+Qspiub9LjWlBPsPS3tWQ/Botq4FdxA==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "minipass": "^3.0.0"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/minipass-fetch": {+ "version": "2.1.2",+ "resolved": "https://registry.npmjs.org/minipass-fetch/-/minipass-fetch-2.1.2.tgz",+ "integrity": "sha512-LT49Zi2/WMROHYoqGgdlQIZh8mLPZmOrN2NdJjMXxYe4nkN6FUyuPuOAOedNJDrx0IRGg9+4guZewtp8hE6TxA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "minipass": "^3.1.6",+ "minipass-sized": "^1.0.3",+ "minizlib": "^2.1.2"+ },+ "engines": {+ "node": "^12.13.0 || ^14.15.0 || >=16.0.0"+ },+ "optionalDependencies": {+ "encoding": "^0.1.13"+ }+ },+ "node_modules/minipass-flush": {+ "version": "1.0.7",+ "resolved": "https://registry.npmjs.org/minipass-flush/-/minipass-flush-1.0.7.tgz",+ "integrity": "sha512-TbqTz9cUwWyHS2Dy89P3ocAGUGxKjjLuR9z8w4WUTGAVgEj17/4nhgo2Du56i0Fm3Pm30g4iA8Lcqctc76jCzA==",+ "dev": true,+ "license": "BlueOak-1.0.0",+ "dependencies": {+ "minipass": "^3.0.0"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/minipass-pipeline": {+ "version": "1.2.4",+ "resolved": "https://registry.npmjs.org/minipass-pipeline/-/minipass-pipeline-1.2.4.tgz",+ "integrity": "sha512-xuIq7cIOt09RPRJ19gdi4b+RiNvDFYe5JH+ggNvBqGqpQXcru3PcRmOZuHBKWK1Txf9+cQ+HMVN4d6z46LZP7A==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "minipass": "^3.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/minipass-sized": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/minipass-sized/-/minipass-sized-1.0.3.tgz",+ "integrity": "sha512-MbkQQ2CTiBMlA2Dm/5cY+9SWFEN8pzzOXi6rlM5Xxq0Yqbda5ZQy9sU75a673FE9ZK0Zsbr6Y5iP6u9nktfg2g==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "minipass": "^3.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/minizlib": {+ "version": "2.1.2",+ "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz",+ "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "minipass": "^3.0.0",+ "yallist": "^4.0.0"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/mkdirp": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz",+ "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "mkdirp": "bin/cmd.js"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "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==",+ "license": "MIT"+ },+ "node_modules/negotiator": {+ "version": "0.6.4",+ "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.4.tgz",+ "integrity": "sha512-myRT3DiWPHqho5PrJaIRyaMv2kgYf0mUVgBNOYMuCH5Ki1yEiQaf/ZJuQ62nvpc44wL5WDbTX7yGJi1Neevw8w==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/node-abi": {+ "version": "3.96.0",+ "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-3.96.0.tgz",+ "integrity": "sha512-rebQ/lz7i0EkoLzUVSrKRzA69zMkwLp95kKMWoMDkkM00Suxz0D7zEQPwRml5fQum24mj7bPvmlgLAmu2JCiYg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "semver": "^7.3.5"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "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-addon-api": {+ "version": "1.7.2",+ "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-1.7.2.tgz",+ "integrity": "sha512-ibPK3iA+vaY1eEjESkQkM0BbCqFOaZMiXRTtdB0u7b4djtY6JnsjvPdUHVMg6xQt3B8fpTTWHI9A+ADjM9frzg==",+ "dev": true,+ "license": "MIT",+ "optional": true+ },+ "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": "9.4.1",+ "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-9.4.1.tgz",+ "integrity": "sha512-OQkWKbjQKbGkMf/xqI1jjy3oCTgMKJac58G2+bjZb3fza6gW2YrCSdMQYaoTb70crvE//Gngr4f0AgVHmqHvBQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "env-paths": "^2.2.0",+ "exponential-backoff": "^3.1.1",+ "glob": "^7.1.4",+ "graceful-fs": "^4.2.6",+ "make-fetch-happen": "^10.0.3",+ "nopt": "^6.0.0",+ "npmlog": "^6.0.0",+ "rimraf": "^3.0.2",+ "semver": "^7.3.5",+ "tar": "^6.1.2",+ "which": "^2.0.2"+ },+ "bin": {+ "node-gyp": "bin/node-gyp.js"+ },+ "engines": {+ "node": "^12.13 || ^14.13 || >=16"+ }+ },+ "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/nopt": {+ "version": "6.0.0",+ "resolved": "https://registry.npmjs.org/nopt/-/nopt-6.0.0.tgz",+ "integrity": "sha512-ZwLpbTgdhuZUnZzjd7nb1ZV+4DoiC6/sfiVKok72ym/4Tlf+DFdlHYmT2JPmcNNWV6Pi3SDf1kT+A4r9RTuT9g==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "abbrev": "^1.0.0"+ },+ "bin": {+ "nopt": "bin/nopt.js"+ },+ "engines": {+ "node": "^12.13.0 || ^14.15.0 || >=16.0.0"+ }+ },+ "node_modules/normalize-path": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",+ "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "engines": {+ "node": ">=0.10.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/npmlog": {+ "version": "6.0.2",+ "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-6.0.2.tgz",+ "integrity": "sha512-/vBvz5Jfr9dT/aFWd0FIRf+T/Q2WBsLENygUaFUqstqsycmZAP/t5BvFJTK0viFmSUxiUKTUplWy5vt+rvKIxg==",+ "deprecated": "This package is no longer supported.",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "are-we-there-yet": "^3.0.0",+ "console-control-strings": "^1.1.0",+ "gauge": "^4.0.3",+ "set-blocking": "^2.0.0"+ },+ "engines": {+ "node": "^12.13.0 || ^14.15.0 || >=16.0.0"+ }+ },+ "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/onetime": {+ "version": "5.1.2",+ "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz",+ "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "mimic-fn": "^2.1.0"+ },+ "engines": {+ "node": ">=6"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/ora": {+ "version": "5.4.1",+ "resolved": "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz",+ "integrity": "sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "bl": "^4.1.0",+ "chalk": "^4.1.0",+ "cli-cursor": "^3.1.0",+ "cli-spinners": "^2.5.0",+ "is-interactive": "^1.0.0",+ "is-unicode-supported": "^0.1.0",+ "log-symbols": "^4.1.0",+ "strip-ansi": "^6.0.0",+ "wcwidth": "^1.0.1"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "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-map": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz",+ "integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "aggregate-error": "^3.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/package-json-from-dist": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz",+ "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==",+ "dev": true,+ "license": "BlueOak-1.0.0"+ },+ "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/path-scurry": {+ "version": "1.11.1",+ "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz",+ "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==",+ "dev": true,+ "license": "BlueOak-1.0.0",+ "dependencies": {+ "lru-cache": "^10.2.0",+ "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0"+ },+ "engines": {+ "node": ">=16 || 14 >=14.18"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/path-scurry/node_modules/lru-cache": {+ "version": "10.4.3",+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz",+ "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/path-scurry/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/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/pend": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz",+ "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/picocolors": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",+ "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/plist": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/plist/-/plist-3.1.1.tgz",+ "integrity": "sha512-ZIfcLJC+7E7FBFnDxm9MPmt7D+DidyQ26lewieO75AdhA2ayMtsJSES0iWzqJQbcVRSrTufQoy0DR94xHue0oA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@xmldom/xmldom": "^0.9.10",+ "base64-js": "^1.5.1",+ "xmlbuilder": "^15.1.1"+ },+ "engines": {+ "node": ">=10.4.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",+ "peer": true+ },+ "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-inflight": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/promise-inflight/-/promise-inflight-1.0.1.tgz",+ "integrity": "sha512-6zWPyEOFaQBJYcGMHBKTKJ3u6TBsnMFOIZSa6ce1e/ZrrsOlnHRHbabMjLiBYKp+n44X9eUI6VUPaukCXHuG4g==",+ "dev": true,+ "license": "ISC"+ },+ "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/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/punycode": {+ "version": "2.3.1",+ "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz",+ "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==",+ "dev": true,+ "license": "MIT",+ "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/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": "3.6.2",+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",+ "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "inherits": "^2.0.3",+ "string_decoder": "^1.1.1",+ "util-deprecate": "^1.0.1"+ },+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/readdir-glob": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/readdir-glob/-/readdir-glob-1.1.3.tgz",+ "integrity": "sha512-v05I2k7xN8zXvPD9N+z/uhXPaj0sUFCe2rcWZIpBsqxfP7xXFQ0tipAd/wjj1YxWyWtUS5IDJpOG82JKt2EAVA==",+ "dev": true,+ "license": "Apache-2.0",+ "peer": true,+ "dependencies": {+ "minimatch": "^5.1.0"+ }+ },+ "node_modules/readdir-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",+ "peer": true+ },+ "node_modules/readdir-glob/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",+ "peer": true,+ "dependencies": {+ "balanced-match": "^1.0.0"+ }+ },+ "node_modules/readdir-glob/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",+ "peer": true,+ "dependencies": {+ "brace-expansion": "^2.0.1"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "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/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/restore-cursor": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz",+ "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "onetime": "^5.1.0",+ "signal-exit": "^3.0.2"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "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": "3.0.2",+ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",+ "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",+ "deprecated": "Rimraf versions prior to v4 are no longer supported",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "glob": "^7.1.3"+ },+ "bin": {+ "rimraf": "bin.js"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "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/safe-buffer": {+ "version": "5.2.1",+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",+ "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",+ "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/safer-buffer": {+ "version": "2.1.2",+ "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",+ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",+ "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==",+ "license": "BlueOak-1.0.0",+ "engines": {+ "node": ">=11.0.0"+ }+ },+ "node_modules/semver": {+ "version": "6.3.1",+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",+ "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",+ "dev": true,+ "license": "ISC",+ "bin": {+ "semver": "bin/semver.js"+ }+ },+ "node_modules/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/slice-ansi": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-3.0.0.tgz",+ "integrity": "sha512-pSyv7bSTC7ig9Dcgbw9AuRNUb5k5V6oDudjZoMBSr13qpLBG7tB+zgCkARjq7xIUgdz5P1Qe8u+rSGdouOOIyQ==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "ansi-styles": "^4.0.0",+ "astral-regex": "^2.0.0",+ "is-fullwidth-code-point": "^3.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/smart-buffer": {+ "version": "4.2.0",+ "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz",+ "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 6.0.0",+ "npm": ">= 3.0.0"+ }+ },+ "node_modules/smol-toml": {+ "version": "1.8.0",+ "resolved": "https://registry.npmjs.org/smol-toml/-/smol-toml-1.8.0.tgz",+ "integrity": "sha512-kCZr2V3ch9i00x8zXRhjUNVcjG9ijES5dDudkXvUVCT5QlJNQWElSJdZqyPemffHoLNUYwOcou0Fy+ojN0uHSQ==",+ "license": "BSD-3-Clause",+ "engines": {+ "node": ">= 18"+ },+ "funding": {+ "url": "https://github.com/sponsors/cyyynthia"+ }+ },+ "node_modules/socks": {+ "version": "2.8.10",+ "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.10.tgz",+ "integrity": "sha512-e0VyvkVTwVYViNovRkZ9aodhxVlyoMn7eJhVUPxZ+eK9P/7CBkxvvsBOHqFPEH416726W8tLXXXjKwqgTErrCQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ip-address": "^10.1.1",+ "smart-buffer": "^4.2.0"+ },+ "engines": {+ "node": ">= 10.0.0",+ "npm": ">= 3.0.0"+ }+ },+ "node_modules/socks-proxy-agent": {+ "version": "7.0.0",+ "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-7.0.0.tgz",+ "integrity": "sha512-Fgl0YPZ902wEsAyiQ+idGd1A7rSFx/ayC1CQVMw5P+EQx2V0SgpGtf6OKFhVjPflPUl9YMmEOnmfjCdMUsygww==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "agent-base": "^6.0.2",+ "debug": "^4.3.3",+ "socks": "^2.6.2"+ },+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/socks-proxy-agent/node_modules/agent-base": {+ "version": "6.0.2",+ "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz",+ "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "debug": "4"+ },+ "engines": {+ "node": ">= 6.0.0"+ }+ },+ "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-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/ssri": {+ "version": "9.0.1",+ "resolved": "https://registry.npmjs.org/ssri/-/ssri-9.0.1.tgz",+ "integrity": "sha512-o57Wcn66jMQvfHG1FlYbWeZWW/dHZhJXjpIcTfXldXEk5nz5lStPo3mK0OJQfGR3RbZUlbISexbljkJzuEj/8Q==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "minipass": "^3.1.1"+ },+ "engines": {+ "node": "^12.13.0 || ^14.15.0 || >=16.0.0"+ }+ },+ "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.3.0",+ "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz",+ "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "safe-buffer": "~5.2.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/string-width-cjs": {+ "name": "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/strip-ansi-cjs": {+ "name": "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": "6.2.1",+ "resolved": "https://registry.npmjs.org/tar/-/tar-6.2.1.tgz",+ "integrity": "sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A==",+ "deprecated": "Old versions of tar 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": {+ "chownr": "^2.0.0",+ "fs-minipass": "^2.0.0",+ "minipass": "^5.0.0",+ "minizlib": "^2.1.1",+ "mkdirp": "^1.0.3",+ "yallist": "^4.0.0"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/tar-stream": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz",+ "integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "bl": "^4.0.3",+ "end-of-stream": "^1.4.1",+ "fs-constants": "^1.0.0",+ "inherits": "^2.0.3",+ "readable-stream": "^3.1.1"+ },+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/tar/node_modules/minipass": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz",+ "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==",+ "dev": true,+ "license": "ISC",+ "engines": {+ "node": ">=8"+ }+ },+ "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/temp-file/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/temp-file/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/temp-file/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/tiny-typed-emitter": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/tiny-typed-emitter/-/tiny-typed-emitter-2.1.0.tgz",+ "integrity": "sha512-qVtvMxeXbVej0cQWKqVSSAHmKZEHAvxdF8HEUBFWts8h+xEo5m/lEiPakuyZ3BnCBjOD8i24kzNOiOLLgsSxhA==",+ "license": "MIT"+ },+ "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/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": "5.9.3",+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",+ "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",+ "dev": true,+ "license": "Apache-2.0",+ "bin": {+ "tsc": "bin/tsc",+ "tsserver": "bin/tsserver"+ },+ "engines": {+ "node": ">=14.17"+ }+ },+ "node_modules/undici-types": {+ "version": "6.21.0",+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz",+ "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/unique-filename": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-2.0.1.tgz",+ "integrity": "sha512-ODWHtkkdx3IAR+veKxFV+VBkUMcN+FaqzUUd7IZzt+0zhDZFPFxhlqwPF3YQvMHx1TD0tdgYl+kuPnJ8E6ql7A==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "unique-slug": "^3.0.0"+ },+ "engines": {+ "node": "^12.13.0 || ^14.15.0 || >=16.0.0"+ }+ },+ "node_modules/unique-slug": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/unique-slug/-/unique-slug-3.0.0.tgz",+ "integrity": "sha512-8EyMynh679x/0gqE9fT9oilG+qEt+ibFyqjuVTsZn1+CMxH+XLlpvr2UZx4nVcCwTpx81nICr2JQFkM+HPLq4w==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "imurmurhash": "^0.1.4"+ },+ "engines": {+ "node": "^12.13.0 || ^14.15.0 || >=16.0.0"+ }+ },+ "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/uri-js": {+ "version": "4.4.1",+ "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",+ "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==",+ "dev": true,+ "license": "BSD-2-Clause",+ "dependencies": {+ "punycode": "^2.1.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/verror": {+ "version": "1.10.1",+ "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.1.tgz",+ "integrity": "sha512-veufcmxri4e3XSrT0xwfUR7kguIkaxBeosDg00yDWhk49wdwkSUrvvsm7nc75e1PUyvIeZj6nS8VQRYz2/S4Xg==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "assert-plus": "^1.0.0",+ "core-util-is": "1.0.2",+ "extsprintf": "^1.2.0"+ },+ "engines": {+ "node": ">=0.6.0"+ }+ },+ "node_modules/wcwidth": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz",+ "integrity": "sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "defaults": "^1.0.3"+ }+ },+ "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/wide-align": {+ "version": "1.1.5",+ "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz",+ "integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "string-width": "^1.0.2 || 2 || 3 || 4"+ }+ },+ "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/wrap-ansi-cjs": {+ "name": "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": "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/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/yauzl": {+ "version": "2.10.0",+ "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz",+ "integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "buffer-crc32": "~0.2.3",+ "fd-slicer": "~1.1.0"+ }+ },+ "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"+ }+ },+ "node_modules/zip-stream": {+ "version": "4.1.1",+ "resolved": "https://registry.npmjs.org/zip-stream/-/zip-stream-4.1.1.tgz",+ "integrity": "sha512-9qv4rlDiopXg4E69k+vMHjNN63YFMe9sZMrdlvKnCjlCRWeCBswPPMPUfx+ipsAWq1LXHe70RcbaHdJJpS6hyQ==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "archiver-utils": "^3.0.4",+ "compress-commons": "^4.1.2",+ "readable-stream": "^3.6.0"+ },+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/zip-stream/node_modules/archiver-utils": {+ "version": "3.0.4",+ "resolved": "https://registry.npmjs.org/archiver-utils/-/archiver-utils-3.0.4.tgz",+ "integrity": "sha512-KVgf4XQVrTjhyWmx6cte4RxonPLR9onExufI1jhvw/MQ4BB6IsZD5gT8Lq+u/+pRkWna/6JoHpiQioaqFP5Rzw==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "glob": "^7.2.3",+ "graceful-fs": "^4.2.0",+ "lazystream": "^1.0.0",+ "lodash.defaults": "^4.2.0",+ "lodash.difference": "^4.5.0",+ "lodash.flatten": "^4.4.0",+ "lodash.isplainobject": "^4.0.6",+ "lodash.union": "^4.6.0",+ "normalize-path": "^3.0.0",+ "readable-stream": "^3.6.0"+ },+ "engines": {+ "node": ">= 10"+ }+ }+ }+}diff --git a/apps/desktop/package.json b/apps/desktop/package.jsonindex 219f3f584..f17fbfa35 100644--- a/apps/desktop/package.json+++ b/apps/desktop/package.json@@ -23,7 +23,11 @@"dist:linux": "electron-builder --linux --publish never"},"dependencies": {- "@three-ws/companion": "file:../../packages/companion-sdk"+ "@three-ws/companion": "file:../../packages/companion-sdk",+ "dompurify": "^3.4.15",+ "electron-updater": "^6.8.9",+ "marked": "^18.0.13",+ "smol-toml": "^1.8.0"},"devDependencies": {"electron": "^33.2.0",diff --git a/apps/desktop/src/console-preload.cjs b/apps/desktop/src/console-preload.cjsnew file mode 100644index 000000000..86ff90856--- /dev/null+++ b/apps/desktop/src/console-preload.cjs@@ -0,0 +1,90 @@+// The only bridge between the console renderer and the machine.+//+// The renderer is sandboxed and context-isolated. It gets typed calls into the+// main process and nothing else: no fs, no process, no raw ipcRenderer, and no+// token. Every call resolves with data or throws an Error carrying the+// server's `code`, so views can tell "signed out" from "offline" from+// "preview expired".++const { contextBridge, ipcRenderer } = require('electron');++async function call(channel, ...args) {+ const res = await ipcRenderer.invoke(channel, ...args);+ if (res && res.ok) return res.data;+ const err = new Error(res?.error?.message || 'Something went wrong');+ err.code = res?.error?.code || null;+ err.status = res?.error?.status || null;+ throw err;+}++function on(channel, handler) {+ const listener = (_event, payload) => handler(payload);+ ipcRenderer.on(channel, listener);+ return () => ipcRenderer.removeListener(channel, listener);+}++contextBridge.exposeInMainWorld('threews', {+ session: {+ status: () => call('session:status'),+ signIn: (opts) => call('session:signIn', opts),+ cancelSignIn: () => call('session:cancelSignIn'),+ signOut: () => call('session:signOut'),+ refreshUser: () => call('session:refreshUser'),+ onChange: (fn) => on('session:changed', fn),+ },+ capabilities: () => call('capabilities'),+ agents: {+ list: () => call('agents:list'),+ setStatus: (agentId, running) => call('agents:setStatus', agentId, running),+ },+ chat: {+ history: (agentId) => call('chat:history', agentId),+ send: (payload) => call('chat:send', payload),+ abort: (requestId) => call('chat:abort', requestId),+ onEvent: (fn) => on('chat:event', fn),+ },+ runs: {+ list: (agentId) => call('runs:list', agentId),+ detail: (runId) => call('runs:detail', runId),+ create: (agentId, input) => call('runs:create', agentId, input),+ cancel: (runId) => call('runs:cancel', runId),+ watch: (runId) => call('runs:watch', runId),+ unwatch: (runId) => call('runs:unwatch', runId),+ onEvent: (fn) => on('runs:event', fn),+ },+ wallet: {+ get: (agentId) => call('wallet:get', agentId),+ dismissProposal: (agentId, proposalId) => call('proposal:dismiss', agentId, proposalId),+ },+ previews: {+ create: (kind, input) => call('preview:create', kind, input),+ approve: (previewId) => call('preview:approve', previewId),+ cancel: (previewId) => call('preview:cancel', previewId),+ },+ notifications: {+ list: (opts) => call('notifications:list', opts),+ read: (id) => call('notifications:read', id),+ readAll: () => call('notifications:readAll'),+ onUnread: (fn) => on('notifications:unread', fn),+ },+ editors: {+ detect: () => call('editors:detect'),+ connect: (id) => call('editors:connect', id),+ disconnect: (id) => call('editors:disconnect', id),+ },+ app: {+ info: () => call('app:info'),+ setCompanion: (enabled) => call('app:setCompanion', enabled),+ companionSignIn: () => call('app:companionSignIn'),+ checkUpdates: () => call('app:checkUpdates'),+ installUpdate: () => call('app:installUpdate'),+ setLaunchAtLogin: (enabled) => call('app:setLaunchAtLogin', enabled),+ openExternal: (url) => call('app:openExternal', url),+ onNavigate: (fn) => on('app:navigate', fn),+ onCompanion: (fn) => on('app:companion', fn),+ onUpdate: (fn) => on('updater:state', fn),+ },+ api: {+ get: (path) => call('api:get', path),+ },+});diff --git a/apps/desktop/src/console/app.js b/apps/desktop/src/console/app.jsnew file mode 100644index 000000000..1fb93dcad--- /dev/null+++ b/apps/desktop/src/console/app.js@@ -0,0 +1,176 @@+// The console renderer's entry: boot, the sign-in gate, the router, and the+// pieces every view shares (agent store, toasts, markdown, badges).++import { marked } from '../../node_modules/marked/lib/marked.esm.js';+import DOMPurify from '../../node_modules/dompurify/dist/purify.es.mjs';+import { html, mount, avatar } from './lib/dom.js';+import { createAgentStore } from './lib/agents-store.js';+import { mountSignIn } from './views/signin.js';+import { mountAgents } from './views/agents.js';+import { mountChat } from './views/chat.js';+import { mountRuns } from './views/runs.js';+import { mountWallet } from './views/wallet.js';+import { mountNotifications } from './views/notifications.js';+import { mountEditors } from './views/editors.js';+import { mountSettings } from './views/settings.js';++const bridge = window.threews;+const VIEWS = {+ agents: mountAgents,+ chat: mountChat,+ runs: mountRuns,+ wallet: mountWallet,+ notifications: mountNotifications,+ editors: mountEditors,+ settings: mountSettings,+};+const ORDER = Object.keys(VIEWS);++const $ = (id) => document.getElementById(id);+const els = { boot: $('boot'), signin: $('signin'), app: $('app'), view: $('view'), nav: $('nav'), account: $('account'), unread: $('unread'), toasts: $('toasts'), updatePill: $('update-pill') };++if (navigator.userAgent.includes('Macintosh')) document.body.classList.add('mac');++marked.setOptions({ gfm: true, breaks: true });+function markdown(text) {+ return DOMPurify.sanitize(marked.parse(String(text || '')), { USE_PROFILES: { html: true }, FORBID_TAGS: ['style', 'form', 'input', 'img'] });+}++function toast(message, kind = '') {+ const el = document.createElement('div');+ el.className = `toast ${kind}`;+ el.textContent = message;+ els.toasts.append(el);+ setTimeout(() => {+ el.classList.add('out');+ el.addEventListener('transitionend', () => el.remove(), { once: true });+ }, kind === 'bad' ? 6000 : 3500);+}++const agents = createAgentStore(bridge);+let session = null;+let current = { view: null, cleanup: null };++const ctx = {+ bridge,+ agents,+ markdown,+ toast,+ navigate,+ session: () => session,+ // Views that start a flow in another view (chat proposing a send) leave+ // their hand-off here; the receiving view consumes it once.+ handoff: null,+};++function parseHash() {+ const [view, query = ''] = location.hash.replace(/^#/, '').split('?');+ return { view: VIEWS[view] ? view : 'agents', params: Object.fromEntries(new URLSearchParams(query)) };+}++function navigate(view, params = {}) {+ const qs = new URLSearchParams(params).toString();+ const target = `#${view}${qs ? `?${qs}` : ''}`;+ if (location.hash === target) route();+ else location.hash = target;+}++function route() {+ if (!session?.signedIn) return;+ const { view, params } = parseHash();+ current.cleanup?.();+ for (const a of els.nav.querySelectorAll('.nav-item')) {+ if (a.dataset.view === view) a.setAttribute('aria-current', 'page');+ else a.removeAttribute('aria-current');+ }+ const root = document.createElement('div');+ els.view.replaceChildren(root);+ els.view.scrollTop = 0;+ current = { view, cleanup: VIEWS[view](root, ctx, params) || null };+}++function renderAccount() {+ const u = session?.user;+ const host = session?.apiBase ? new URL(session.apiBase).host : 'three.ws';+ mount(els.account, html`${avatar({ id: u?.id, name: u?.name, thumbnail: u?.avatarUrl }, 32)}<span class="who"><b>${u?.name || 'Your account'}</b><span>${u?.username ? `@${u.username}` : host}</span></span>`);+}++function setUnread(count) {+ els.unread.hidden = !count;+ els.unread.textContent = count > 99 ? '99+' : String(count);+}++function renderUpdate(state) {+ const ready = state?.status === 'ready';+ els.updatePill.hidden = !ready;+ if (ready) mount(els.updatePill, html`<b>Update ready</b><br />Restart to install ${state.available || ''}`);+}++function showSignedIn() {+ els.signin.hidden = true;+ els.app.hidden = false;+ renderAccount();+ route();+}++let signInCleanup = null;+function showSignedOut() {+ current.cleanup?.();+ current = { view: null, cleanup: null };+ agents.reset();+ els.app.hidden = true;+ els.signin.hidden = false;+ signInCleanup?.();+ signInCleanup = mountSignIn(els.signin, ctx);+}++function applySession(next) {+ const was = session?.signedIn;+ session = next;+ els.boot.hidden = true;+ if (session.signedIn) {+ signInCleanup?.();+ signInCleanup = null;+ if (!was || els.app.hidden) showSignedIn();+ else renderAccount();+ } else if (was !== false) {+ showSignedOut();+ }+}++// Cmd/Ctrl + 1..7 jumps between views, in sidebar order.+document.addEventListener('keydown', (event) => {+ if (!session?.signedIn) return;+ const mod = event.metaKey || event.ctrlKey;+ if (mod && /^[1-7]$/.test(event.key)) {+ event.preventDefault();+ navigate(ORDER[Number(event.key) - 1]);+ }+});++els.account.addEventListener('click', () => navigate('settings'));+els.updatePill.addEventListener('click', () => bridge.app.installUpdate().catch((err) => toast(err.message, 'bad')));+window.addEventListener('hashchange', route);++// Links rendered in agent replies or notifications open in the browser.+document.addEventListener('click', (event) => {+ const a = event.target.closest('a[href]');+ if (!a) return;+ const href = a.getAttribute('href');+ if (href.startsWith('#')) return;+ event.preventDefault();+ bridge.app.openExternal(href).then((ok) => {+ if (!ok) toast('That link was blocked because it is not a web address.', 'bad');+ });+});++bridge.session.onChange(applySession);+bridge.notifications.onUnread(setUnread);+bridge.app.onNavigate((view) => navigate(view));+bridge.app.onUpdate(renderUpdate);++bridge.session.status().then(applySession).catch((err) => {+ els.boot.hidden = true;+ toast(err.message, 'bad');+});+bridge.app.info().then((info) => renderUpdate(info.update)).catch(() => {});diff --git a/apps/desktop/src/console/console.css b/apps/desktop/src/console/console.cssnew file mode 100644index 000000000..a4b37df56--- /dev/null+++ b/apps/desktop/src/console/console.css@@ -0,0 +1,366 @@+/* three.ws Desktop console. Tokens match the site (pages/*.html) so the app+ and three.ws read as one product. Dark by default, light follows the OS. */++:root {+ --bg: #0d0d10;+ --bg-2: #121216;+ --card: #17171c;+ --card-2: #1d1d23;+ --line: rgba(255, 255, 255, 0.07);+ --line-2: rgba(255, 255, 255, 0.12);+ --text: #e7e9ee;+ --muted: rgba(231, 233, 238, 0.6);+ --dim: rgba(231, 233, 238, 0.38);+ --blue: #3b82f6;+ --blue-2: #2f6fd8;+ --blue-soft: rgba(59, 130, 246, 0.14);+ --green: #22c55e;+ --green-soft: rgba(34, 197, 94, 0.14);+ --amber: #f59e0b;+ --amber-soft: rgba(245, 158, 11, 0.14);+ --red: #ef4444;+ --red-soft: rgba(239, 68, 68, 0.12);+ --radius: 12px;+ --radius-sm: 8px;+ --sk: rgba(255, 255, 255, 0.05);+ --sk-sheen: rgba(255, 255, 255, 0.09);+ --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);+ --font: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;+ --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;+ color-scheme: dark;+}++@media (prefers-color-scheme: light) {+ :root {+ --bg: #f5f5f7;+ --bg-2: #ececf0;+ --card: #ffffff;+ --card-2: #f7f7f9;+ --line: rgba(0, 0, 0, 0.07);+ --line-2: rgba(0, 0, 0, 0.13);+ --text: #111216;+ --muted: rgba(17, 18, 22, 0.6);+ --dim: rgba(17, 18, 22, 0.4);+ --sk: rgba(0, 0, 0, 0.05);+ --sk-sheen: rgba(0, 0, 0, 0.09);+ --shadow: 0 12px 40px rgba(0, 0, 0, 0.12);+ color-scheme: light;+ }+}++* { box-sizing: border-box; margin: 0; padding: 0; }+html, body { height: 100%; }+body {+ background: var(--bg);+ color: var(--text);+ font: 14px/1.5 var(--font);+ -webkit-font-smoothing: antialiased;+ overflow: hidden;+ user-select: none;+}+input, textarea, select, button { font: inherit; color: inherit; }+a { color: inherit; text-decoration: none; }+code, .mono { font-family: var(--mono); font-size: 12.5px; }+.selectable, .msg, .step-body, .mono, p { user-select: text; }+:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }+[hidden] { display: none !important; }+.drag { -webkit-app-region: drag; }+.drag button, .drag a, .drag input, .drag select { -webkit-app-region: no-drag; }++/* ── Icons (masked inline SVG, so they take currentColor) ─────────────────── */+.ico { display: inline-block; width: 16px; height: 16px; background: currentColor; flex: none;+ -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }+.ico-agents { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 4-6 8-6s8 2 8 6'/%3E%3C/svg%3E"); }+.ico-chat { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H9l-5 4z'/%3E%3C/svg%3E"); }+.ico-runs { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='6' cy='6' r='2'/%3E%3Ccircle cx='6' cy='18' r='2'/%3E%3Cpath d='M6 8v8M10 6h10M10 12h8M10 18h10'/%3E%3C/svg%3E"); }+.ico-wallet { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='18' height='13' rx='2'/%3E%3Cpath d='M16 12.5h2M3 9h15V6'/%3E%3C/svg%3E"); }+.ico-bell { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 16V11a6 6 0 0 1 12 0v5l1.5 2h-15z'/%3E%3Cpath d='M10 21h4'/%3E%3C/svg%3E"); }+.ico-code { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 7l-5 5 5 5M16 7l5 5-5 5'/%3E%3C/svg%3E"); }+.ico-gear { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 2v3M12 19v3M2 12h3M19 12h3M4.9 4.9l2.1 2.1M17 17l2.1 2.1M4.9 19.1L7 17M17 7l2.1-2.1'/%3E%3C/svg%3E"); }+.ico-alert { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 3l10 18H2z'/%3E%3Cpath d='M12 10v4M12 17.5v.5'/%3E%3C/svg%3E"); }+.ico-empty { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M3 13l3-8h12l3 8v6H3z'/%3E%3Cpath d='M3 13h5l1 2h6l1-2h5'/%3E%3C/svg%3E"); }+.ico-check { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E"); }+.ico-refresh { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M20 11a8 8 0 1 0-2.3 5.7M20 4v7h-7'/%3E%3C/svg%3E"); }+.ico-copy { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='8' y='8' width='12' height='12' rx='2'/%3E%3Cpath d='M16 8V5a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h3'/%3E%3C/svg%3E"); }+.ico-out { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M14 4h6v6M20 4l-9 9M18 14v5H5V6h5'/%3E%3C/svg%3E"); }+.ico-send { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M4 12l16-8-6 16-3-6z'/%3E%3C/svg%3E"); }+.ico-stop { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='6' y='6' width='12' height='12' rx='2'/%3E%3C/svg%3E"); }+.ico-tool { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M14.5 5.5a4 4 0 0 0 4.9 4.9L21 12l-9 9-3-3 9-9M3 21l5-5'/%3E%3C/svg%3E"); }++/* ── Boot ─────────────────────────────────────────────────────────────────── */+.boot { position: fixed; inset: 0; display: grid; place-items: center; }+.boot-mark { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, var(--blue), #8b5cf6); animation: pulse 1.4s ease-in-out infinite; }+@keyframes pulse { 50% { transform: scale(0.92); opacity: 0.6; } }++/* ── Layout ───────────────────────────────────────────────────────────────── */+.app { display: grid; grid-template-columns: 224px 1fr; height: 100vh; animation: fade 0.2s ease; }+@keyframes fade { from { opacity: 0; } }+.side { display: flex; flex-direction: column; gap: 6px; padding: 14px 10px 12px; background: var(--bg-2); border-right: 1px solid var(--line); min-height: 0; }+.brand { display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 10px; margin-bottom: 8px; }+body.mac .brand { padding-top: 24px; height: 58px; }+.brand-mark { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, var(--blue), #8b5cf6); }+.brand-name { font-weight: 700; letter-spacing: -0.01em; }+.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow: auto; }+.nav-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--muted); font-weight: 500; transition: background 0.12s, color 0.12s; position: relative; }+.nav-item:hover { background: var(--line); color: var(--text); }+.nav-item:active { transform: translateY(1px); }+.nav-item[aria-current='page'] { background: var(--blue-soft); color: var(--text); }+.nav-item[aria-current='page'] .ico { color: var(--blue); }+.nav-item kbd { margin-left: auto; font: 11px var(--mono); color: var(--dim); opacity: 0; transition: opacity 0.12s; }+.nav-item:hover kbd { opacity: 1; }+.badge { margin-left: auto; min-width: 18px; height: 18px; padding: 0 6px; border-radius: 9px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }+.badge + kbd { margin-left: 6px; }+.update-pill { margin: 4px 2px; padding: 9px 11px; border-radius: var(--radius-sm); background: var(--green-soft); color: var(--text); font-size: 12.5px; cursor: pointer; border: 1px solid transparent; text-align: left; }+.update-pill:hover { border-color: var(--green); }+.account { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--radius-sm); background: none; border: 1px solid transparent; cursor: pointer; text-align: left; transition: background 0.12s, border-color 0.12s; }+.account:hover { background: var(--line); border-color: var(--line-2); }+.account .who { min-width: 0; }+.account .who b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }+.account .who span { display: block; font-size: 11.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }+.main { overflow: auto; min-width: 0; outline: none; }+.view { max-width: 1040px; margin: 0 auto; padding: 28px 32px 48px; animation: rise 0.18s ease; }+.view-full { max-width: none; height: 100%; padding: 0; display: flex; flex-direction: column; }+@keyframes rise { from { opacity: 0; transform: translateY(4px); } }+.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }+.head h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }+.head p { color: var(--muted); margin-top: 4px; font-size: 13.5px; }+.head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }+h2 { font-size: 14px; font-weight: 650; margin: 28px 0 10px; letter-spacing: -0.005em; }+h2 small { color: var(--dim); font-weight: 500; margin-left: 6px; }++/* ── Controls ─────────────────────────────────────────────────────────────── */+.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--card); font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; transition: border-color 0.12s, background 0.12s, transform 0.08s, opacity 0.12s; }+.btn:hover { border-color: rgba(120, 160, 255, 0.55); }+.btn:active { transform: translateY(1px); }+.btn:disabled { opacity: 0.45; cursor: default; transform: none; }+.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }+.btn-primary:hover { background: var(--blue-2); border-color: var(--blue-2); }+.btn-danger { color: var(--red); }+.btn-danger:hover { border-color: rgba(239, 68, 68, 0.5); background: var(--red-soft); }+.btn-go { background: var(--green); border-color: var(--green); color: #04130a; }+.btn-go:hover { filter: brightness(1.08); border-color: var(--green); }+.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }+.btn-ghost:hover { color: var(--text); background: var(--line); border-color: transparent; }+.btn-sm { height: 28px; padding: 0 10px; font-size: 12px; }+.btn-icon { width: 34px; padding: 0; }+.btn .spin, .spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite; }+@keyframes spin { to { transform: rotate(360deg); } }+.field { display: flex; flex-direction: column; gap: 6px; }+.field label, .label { font-size: 12px; color: var(--muted); font-weight: 500; }+.input, .select, .textarea { width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 8px 11px; transition: border-color 0.12s, box-shadow 0.12s; user-select: text; }+.input:hover, .select:hover, .textarea:hover { border-color: rgba(120, 160, 255, 0.4); }+.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }+.input[aria-invalid='true'] { border-color: var(--red); }+.select { appearance: none; padding-right: 30px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; background-size: 16px; }+.textarea { resize: none; min-height: 40px; line-height: 1.5; }+.row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }+.row > .field { flex: 1; min-width: 140px; }+.toggle { position: relative; width: 38px; height: 22px; flex: none; appearance: none; border-radius: 11px; background: var(--line-2); cursor: pointer; transition: background 0.15s; }+.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.15s; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }+.toggle:checked { background: var(--blue); }+.toggle:checked::after { transform: translateX(16px); }+.toggle:disabled { opacity: 0.4; cursor: default; }+.chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 11.5px; font-weight: 600; background: var(--line); color: var(--muted); white-space: nowrap; }+.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }+.chip-ok { background: var(--green-soft); color: var(--green); }+.chip-warn { background: var(--amber-soft); color: var(--amber); }+.chip-bad { background: var(--red-soft); color: var(--red); }+.chip-info { background: var(--blue-soft); color: var(--blue); }+.chip-plain::before { display: none; }++/* ── Cards ────────────────────────────────────────────────────────────────── */+.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }+.card + .card { margin-top: 12px; }+.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }+.agent-card { display: flex; flex-direction: column; gap: 12px; transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }+.agent-card:hover { border-color: var(--line-2); transform: translateY(-1px); box-shadow: var(--shadow); }+.agent-top { display: flex; gap: 12px; align-items: center; min-width: 0; }+.agent-top .meta { min-width: 0; flex: 1; }+.agent-top h3 { font-size: 15px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }+.agent-top .sub { font-size: 12px; color: var(--dim); display: flex; gap: 6px; align-items: center; }+.agent-desc { color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 39px; }+.agent-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }+.avatar { width: 40px; height: 40px; border-radius: 11px; object-fit: cover; flex: none; background: var(--card-2); }+.avatar-initials { display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; background: linear-gradient(135deg, hsl(var(--h) 70% 52%), hsl(calc(var(--h) + 40) 70% 42%)); }+.toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }+.toolbar .input { max-width: 280px; }+.toolbar .select { width: auto; }++/* ── Skeletons ────────────────────────────────────────────────────────────── */+.sk { background: linear-gradient(90deg, var(--sk) 0%, var(--sk-sheen) 50%, var(--sk) 100%); background-size: 200% 100%; animation: sheen 1.3s ease-in-out infinite; border-radius: 6px; }+@keyframes sheen { from { background-position: 150% 0; } to { background-position: -50% 0; } }+.sk-line { height: 12px; margin: 8px 0; }+.sk-title { height: 16px; width: 55%; }+.sk-avatar { width: 40px; height: 40px; border-radius: 11px; flex: none; }+.sk-block { height: 90px; border-radius: var(--radius); }+.sk-bubble { height: 44px; border-radius: 14px; margin: 10px 0; }++/* ── States ───────────────────────────────────────────────────────────────── */+.state { text-align: center; padding: 48px 24px; border: 1px dashed var(--line-2); border-radius: var(--radius); background: var(--card); }+.state h3 { font-size: 16px; margin-top: 12px; }+.state p { color: var(--muted); max-width: 440px; margin: 6px auto 0; font-size: 13.5px; }+.state-ico { width: 40px; height: 40px; margin: 0 auto; color: var(--dim); background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }+.state-error { border-style: solid; border-color: rgba(239, 68, 68, 0.3); }+.state-error .state-ico { color: var(--red); }+.state-actions { display: flex; gap: 8px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }+.banner { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--blue-soft); font-size: 13px; margin-bottom: 16px; }+.banner.warn { background: var(--amber-soft); }+.banner.bad { background: var(--red-soft); }+.banner .ico { margin-top: 2px; }++/* ── Sign in ──────────────────────────────────────────────────────────────── */+.signin { position: fixed; inset: 0; display: grid; place-items: center; padding: 24px; background: radial-gradient(1200px 600px at 50% -10%, rgba(59, 130, 246, 0.18), transparent 60%), var(--bg); -webkit-app-region: drag; }+.signin-card { width: 100%; max-width: 420px; text-align: center; -webkit-app-region: no-drag; animation: rise 0.25s ease; }+.signin-card .brand-mark { width: 52px; height: 52px; border-radius: 15px; margin: 0 auto 18px; }+.signin-card h1 { font-size: 26px; letter-spacing: -0.025em; }+.signin-card > p { color: var(--muted); margin: 8px 0 24px; }+.signin-card .btn { width: 100%; height: 42px; font-size: 14px; }+.signin-list { text-align: left; margin: 26px 0 0; display: grid; gap: 10px; }+.signin-list li { list-style: none; display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 13px; }+.signin-list .ico { color: var(--blue); }+.signin-wait { margin-top: 14px; font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; justify-content: center; }+.signin-error { margin-top: 14px; color: var(--red); font-size: 13px; }+.signin-server { margin-top: 22px; font-size: 12px; color: var(--dim); }+.signin-server summary { cursor: pointer; }+.signin-server .input { margin-top: 8px; text-align: center; }++/* ── Chat ─────────────────────────────────────────────────────────────────── */+.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 24px; border-bottom: 1px solid var(--line); min-height: 64px; }+body.mac .chat-head { padding-top: 14px; }+.chat-head .select { width: auto; min-width: 220px; }+.chat-head .spacer { flex: 1; }+.chat-log { flex: 1; overflow: auto; padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }+.chat-inner { max-width: 760px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }+.msg { max-width: 86%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.55; animation: rise 0.15s ease; overflow-wrap: anywhere; }+.msg-user { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 5px; white-space: pre-wrap; }+.msg-agent { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 5px; }+.msg-agent p + p, .msg-agent ul, .msg-agent ol, .msg-agent pre { margin-top: 8px; }+.msg-agent ul, .msg-agent ol { padding-left: 20px; }+.msg-agent code { background: var(--line); padding: 1px 5px; border-radius: 4px; }+.msg-agent pre { background: var(--bg-2); padding: 10px; border-radius: 8px; overflow: auto; }+.msg-agent pre code { background: none; padding: 0; }+.msg-agent a { color: var(--blue); text-decoration: underline; }+.msg-meta { font-size: 11px; color: var(--dim); margin-top: 4px; display: flex; gap: 8px; align-items: center; }+.msg-error { align-self: flex-start; background: var(--red-soft); color: var(--text); border: 1px solid rgba(239, 68, 68, 0.3); }+.caret::after { content: ''; display: inline-block; width: 7px; height: 14px; margin-left: 2px; vertical-align: -2px; background: var(--muted); animation: blink 1s steps(2) infinite; }+@keyframes blink { 50% { opacity: 0; } }+.tools { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; }+.tool { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 13px; background: var(--card); border: 1px solid var(--line); font-size: 12px; color: var(--muted); animation: rise 0.15s ease; }+.tool.running .ico { animation: spin 1.2s linear infinite; color: var(--blue); }+.tool.done .ico { color: var(--green); }+.tool.waiting .ico { color: var(--amber); }+.action-card { align-self: flex-start; max-width: 86%; border: 1px solid rgba(245, 158, 11, 0.35); background: var(--amber-soft); border-radius: var(--radius); padding: 12px 14px; font-size: 13px; }+.action-card b { display: block; margin-bottom: 4px; }+.action-card .btn { margin-top: 10px; }+.chat-empty { margin: auto; text-align: center; max-width: 440px; padding: 32px 0; }+.chat-empty h3 { font-size: 18px; margin: 14px 0 6px; }+.chat-empty p { color: var(--muted); font-size: 13.5px; }+.chat-empty .avatar { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto; font-size: 20px; }+.suggestions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }+.suggestion { height: 32px; padding: 0 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line-2); cursor: pointer; font-size: 12.5px; color: var(--muted); transition: color 0.12s, border-color 0.12s; }+.suggestion:hover { color: var(--text); border-color: var(--blue); }+.composer { padding: 14px 24px 18px; border-top: 1px solid var(--line); }+.composer-inner { max-width: 760px; margin: 0 auto; display: flex; gap: 10px; align-items: flex-end; background: var(--card); border: 1px solid var(--line-2); border-radius: 14px; padding: 8px 8px 8px 14px; transition: border-color 0.12s, box-shadow 0.12s; }+.composer-inner:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }+.composer textarea { flex: 1; border: 0; background: transparent; resize: none; outline: none; max-height: 180px; padding: 6px 0; user-select: text; }+.composer-hint { max-width: 760px; margin: 6px auto 0; font-size: 11.5px; color: var(--dim); display: flex; justify-content: space-between; }++/* ── Runs ─────────────────────────────────────────────────────────────────── */+.split { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 16px; align-items: start; }+.list { display: flex; flex-direction: column; gap: 6px; }+.list-item { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--card); cursor: pointer; text-align: left; transition: border-color 0.12s, background 0.12s; width: 100%; }+.list-item:hover { border-color: var(--line-2); }+.list-item[aria-selected='true'] { border-color: var(--blue); background: var(--blue-soft); }+.list-item .top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }+.list-item .goal { font-weight: 600; font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }+.list-item .sub { font-size: 12px; color: var(--dim); }+.timeline { position: relative; padding-left: 26px; }+.timeline::before { content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--line-2); border-radius: 1px; }+.step { position: relative; padding: 0 0 18px; animation: rise 0.15s ease; }+.step::before { content: ''; position: absolute; left: -23px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--card); border: 2px solid var(--blue); }+.step.tool::before { border-color: var(--amber); }+.step.error::before { border-color: var(--red); background: var(--red); }+.step.done::before { border-color: var(--green); background: var(--green); }+.step-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }+.step-head b { font-size: 13.5px; }+.step-head span { font-size: 11.5px; color: var(--dim); }+.step-body { margin-top: 6px; font-size: 12.5px; color: var(--muted); background: var(--bg-2); border-radius: var(--radius-sm); padding: 8px 10px; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--mono); }+.step-body + .step-body { margin-top: 4px; }+.step-body.err { color: var(--red); }+.run-summary { display: flex; gap: 18px; flex-wrap: wrap; margin: 12px 0 18px; font-size: 12.5px; color: var(--muted); }+.run-summary b { color: var(--text); font-weight: 600; }++/* ── Wallet ───────────────────────────────────────────────────────────────── */+.balance { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }+.balance .big { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; }+.balance .big small { font-size: 16px; color: var(--muted); margin-left: 6px; font-weight: 600; }+.addr { display: inline-flex; gap: 6px; align-items: center; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }+.table { width: 100%; border-collapse: collapse; font-size: 13px; }+.table td, .table th { padding: 9px 4px; border-bottom: 1px solid var(--line); text-align: left; }+.table th { color: var(--dim); font-weight: 500; font-size: 12px; }+.table td.num { text-align: right; font-variant-numeric: tabular-nums; }+.preview { border: 1px solid rgba(245, 158, 11, 0.4); background: linear-gradient(180deg, var(--amber-soft), transparent 70%), var(--card); }+.preview h3 { font-size: 15px; display: flex; gap: 8px; align-items: center; }+.preview .table td:first-child { color: var(--muted); width: 38%; }+.preview .table td:last-child { font-weight: 600; overflow-wrap: anywhere; user-select: text; }+.preview-actions { display: flex; gap: 8px; margin-top: 14px; align-items: center; flex-wrap: wrap; }+.preview-actions .expires { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }+.checks { margin-top: 10px; display: grid; gap: 4px; font-size: 12.5px; }+.checks li { list-style: none; display: flex; gap: 8px; }+.checks .ok { color: var(--green); }+.checks .no { color: var(--red); }+.result { border-color: rgba(34, 197, 94, 0.4); background: linear-gradient(180deg, var(--green-soft), transparent 70%), var(--card); }++/* ── Notifications ────────────────────────────────────────────────────────── */+.notif { display: flex; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer; transition: background 0.12s, border-color 0.12s; width: 100%; background: none; text-align: left; }+.notif:hover { background: var(--card); border-color: var(--line); }+.notif .dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; flex: none; background: transparent; }+.notif.unread .dot { background: var(--blue); }+.notif .body { flex: 1; min-width: 0; }+.notif .body b { font-size: 13px; }+.notif .body p { font-size: 13px; color: var(--muted); }+.notif.unread .body p { color: var(--text); }+.notif time { font-size: 11.5px; color: var(--dim); white-space: nowrap; }++/* ── Editors ──────────────────────────────────────────────────────────────── */+.editor { display: flex; gap: 14px; align-items: center; padding: 14px 16px; }+.editor + .editor { border-top: 1px solid var(--line); }+.editor .meta { flex: 1; min-width: 0; }+.editor .meta b { font-size: 14px; }+.editor .meta .path { font-size: 11.5px; color: var(--dim); font-family: var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }+.editor .meta .err { color: var(--red); font-size: 12px; }+.editor-logo { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 12px; color: #fff; flex: none; }+.servers { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }+.server { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--line); }+.server b { font-size: 13px; }+.server p { font-size: 12px; color: var(--muted); margin-top: 2px; }+.server code { display: block; margin-top: 6px; color: var(--dim); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }++/* ── Settings ─────────────────────────────────────────────────────────────── */+.setting { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 14px 0; }+.setting + .setting { border-top: 1px solid var(--line); }+.setting .meta b { font-size: 13.5px; font-weight: 600; }+.setting .meta p { font-size: 12.5px; color: var(--muted); margin-top: 2px; }+.progress { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 8px; width: 200px; }+.progress span { display: block; height: 100%; background: var(--green); transition: width 0.3s ease; }++/* ── Toasts ───────────────────────────────────────────────────────────────── */+.toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 50; pointer-events: none; }+.toast { pointer-events: auto; max-width: 360px; padding: 11px 14px; border-radius: var(--radius-sm); background: var(--card-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 13px; animation: rise 0.18s ease; transition: opacity 0.2s, transform 0.2s; }+.toast.out { opacity: 0; transform: translateY(6px); }+.toast.bad { border-color: rgba(239, 68, 68, 0.5); }+.toast.ok { border-color: rgba(34, 197, 94, 0.5); }++@media (max-width: 900px) {+ .app { grid-template-columns: 64px 1fr; }+ .brand-name, .nav-item kbd, .account .who, .update-pill { display: none; }+ .nav-item { justify-content: center; font-size: 0; gap: 0; }+ .nav-item .badge { position: absolute; top: 2px; right: 4px; font-size: 10px; }+ .brand { justify-content: center; padding: 0; }+ .split { grid-template-columns: 1fr; }+ .view { padding: 22px 18px 40px; }+}++@media (prefers-reduced-motion: reduce) {+ *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }+}diff --git a/apps/desktop/src/console/index.html b/apps/desktop/src/console/index.htmlnew file mode 100644index 000000000..811d23f04--- /dev/null+++ b/apps/desktop/src/console/index.html@@ -0,0 +1,44 @@+<!doctype html>+<html lang="en" data-theme="dark">+ <head>+ <meta charset="utf-8" />+ <meta name="viewport" content="width=device-width, initial-scale=1" />+ <!-- The console has no network access of its own: every request goes+ through the main process. Images are the one exception (agent+ thumbnails served over https). -->+ <meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' https: data:; font-src 'self'; connect-src 'none'; base-uri 'none'; form-action 'none'; frame-src 'none'" />+ <title>three.ws</title>+ <link rel="stylesheet" href="console.css" />+ </head>+ <body>+ <div class="boot" id="boot" aria-busy="true" aria-label="Loading">+ <div class="boot-mark" aria-hidden="true"></div>+ </div>++ <section class="signin" id="signin" hidden aria-labelledby="signin-title"></section>++ <div class="app" id="app" hidden>+ <aside class="side" aria-label="Main">+ <div class="brand drag">+ <span class="brand-mark" aria-hidden="true"></span>+ <span class="brand-name">three.ws</span>+ </div>+ <nav class="nav" id="nav">+ <a class="nav-item" href="#agents" data-view="agents"><span class="ico ico-agents" aria-hidden="true"></span>Agents<kbd>1</kbd></a>+ <a class="nav-item" href="#chat" data-view="chat"><span class="ico ico-chat" aria-hidden="true"></span>Chat<kbd>2</kbd></a>+ <a class="nav-item" href="#runs" data-view="runs"><span class="ico ico-runs" aria-hidden="true"></span>Runs<kbd>3</kbd></a>+ <a class="nav-item" href="#wallet" data-view="wallet"><span class="ico ico-wallet" aria-hidden="true"></span>Wallet<kbd>4</kbd></a>+ <a class="nav-item" href="#notifications" data-view="notifications"><span class="ico ico-bell" aria-hidden="true"></span>Notifications<span class="badge" id="unread" hidden></span><kbd>5</kbd></a>+ <a class="nav-item" href="#editors" data-view="editors"><span class="ico ico-code" aria-hidden="true"></span>Editors<kbd>6</kbd></a>+ <a class="nav-item" href="#settings" data-view="settings"><span class="ico ico-gear" aria-hidden="true"></span>Settings<kbd>7</kbd></a>+ </nav>+ <div class="update-pill" id="update-pill" hidden></div>+ <button type="button" class="account" id="account" aria-label="Account settings"></button>+ </aside>+ <main class="main" id="view" tabindex="-1"></main>+ </div>++ <div class="toasts" id="toasts" role="status" aria-live="polite"></div>+ <script type="module" src="app.js"></script>+ </body>+</html>diff --git a/apps/desktop/src/console/lib/agents-store.js b/apps/desktop/src/console/lib/agents-store.jsnew file mode 100644index 000000000..f2b1610e7--- /dev/null+++ b/apps/desktop/src/console/lib/agents-store.js@@ -0,0 +1,76 @@+// The agent list every view shares, and which agent is selected. One fetch+// feeds Agents, Chat, Runs and Wallet, and picking an agent in one view keeps+// it picked in the others (remembered across launches when storage allows).++import { html } from './dom.js';++const KEY = 'console:selected-agent';++export function createAgentStore(bridge, storage = globalThis.localStorage) {+ let agents = null;+ let inflight = null;+ let selected = null;+ try {+ selected = storage?.getItem(KEY) || null;+ } catch {+ selected = null;+ }++ async function load(force = false) {+ if (agents && !force) return agents;+ if (inflight) return inflight;+ inflight = bridge.agents.list().then((list) => {+ agents = list;+ if (!agents.some((a) => a.id === selected)) selected = agents[0]?.id || null;+ return agents;+ }).finally(() => {+ inflight = null;+ });+ return inflight;+ }++ function select(id) {+ if (!agents?.some((a) => a.id === id)) return;+ selected = id;+ try {+ storage?.setItem(KEY, id);+ } catch {+ // Storage blocked: the selection lasts for this session only.+ }+ }++ function replace(agent) {+ if (!agents) return;+ agents = agents.map((a) => (a.id === agent.id ? { ...a, ...agent } : a));+ }++ return {+ load,+ select,+ replace,+ reset: () => {+ agents = null;+ },+ list: () => agents || [],+ selectedId: () => selected,+ selected: () => agents?.find((a) => a.id === selected) || null,+ };+}++export function agentPicker(agents, selectedId, label = 'Agent') {+ return html`<label class="sr-label" hidden for="agent-picker">${label}</label>+ <select class="select" id="agent-picker" data-role="agent-picker" aria-label="${label}">+ ${agents.map((a) => html`<option value="${a.id}" ${a.id === selectedId ? 'selected' : ''}>${a.name}</option>`)}+ </select>`;+}++// Wires a view's agent picker to the shared store.+export function bindPicker(root, store, onPick) {+ const listener = (event) => {+ if (event.target?.dataset?.role !== 'agent-picker') return;+ store.select(event.target.value);+ onPick(event.target.value);+ };+ root.addEventListener('change', listener);+ return () => root.removeEventListener('change', listener);+}diff --git a/apps/desktop/src/console/lib/dom.js b/apps/desktop/src/console/lib/dom.jsnew file mode 100644index 000000000..bdf8d6a92--- /dev/null+++ b/apps/desktop/src/console/lib/dom.js@@ -0,0 +1,99 @@+// Rendering helpers for the console views. A tagged template that escapes+// every interpolation unless it is already-safe markup, plus the shared+// loading, empty and error states so every view designs them the same way.++class Safe {+ constructor(value) {+ this.value = value;+ }+ toString() {+ return this.value;+ }+}++export function esc(value) {+ return String(value ?? '').replace(/[&<>"']/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' })[c]);+}++export function raw(markup) {+ return new Safe(String(markup ?? ''));+}++function part(v) {+ if (v == null || v === false) return '';+ if (v instanceof Safe) return v.value;+ if (Array.isArray(v)) return v.map(part).join('');+ return esc(v);+}++export function html(strings, ...values) {+ let out = strings[0];+ for (let i = 0; i < values.length; i++) out += part(values[i]) + strings[i + 1];+ return new Safe(out);+}++export function mount(el, markup) {+ el.innerHTML = String(markup);+ return el;+}++export function skeletonLines(n = 3, cls = '') {+ return html`${Array.from({ length: n }, (_, i) => html`<div class="sk sk-line ${cls}" style="width:${[92, 76, 84, 64, 88][i % 5]}%"></div>`)}`;+}++export function emptyState({ icon = 'empty', title, message, actions = [] }) {+ return html`<div class="state state-empty">+ <div class="state-ico ico-${icon}" aria-hidden="true"></div>+ <h3>${title}</h3>+ ${message ? html`<p>${message}</p>` : ''}+ ${actions.length ? html`<div class="state-actions">${actions.map((a) => html`<button type="button" class="btn ${a.primary ? 'btn-primary' : ''}" data-action="${a.action}">${a.label}</button>`)}</div>` : ''}+ </div>`;+}++// What went wrong, in the server's own words, and a way out.+export function errorState(err, { title = 'Something went wrong', retry = 'retry' } = {}) {+ const offline = /fetch failed|ENOTFOUND|ECONNREFUSED|network/i.test(String(err?.message || ''));+ const message = offline+ ? 'three.ws could not be reached. Check your connection, then try again.'+ : err?.message || 'The server did not answer.';+ return html`<div class="state state-error" role="alert">+ <div class="state-ico ico-alert" aria-hidden="true"></div>+ <h3>${offline ? 'You are offline' : title}</h3>+ <p>${message}</p>+ <div class="state-actions"><button type="button" class="btn" data-action="${retry}">Try again</button></div>+ </div>`;+}++export function initials(name) {+ const parts = String(name || '?').trim().split(/\s+/).filter(Boolean);+ return ((parts[0]?.[0] || '?') + (parts[1]?.[0] || '')).toUpperCase();+}++// A stable hue from an id, so an agent without a thumbnail keeps its color.+export function hueFor(id) {+ let h = 0;+ for (const ch of String(id || '')) h = (h * 31 + ch.charCodeAt(0)) % 360;+ return h;+}++export function avatar(agent, size = 40) {+ if (agent?.thumbnail && /^https:\/\//.test(agent.thumbnail)) {+ return html`<img class="avatar" src="${agent.thumbnail}" alt="" width="${size}" height="${size}" loading="lazy" />`;+ }+ return html`<span class="avatar avatar-initials" style="--h:${hueFor(agent?.id)};width:${size}px;height:${size}px" aria-hidden="true">${initials(agent?.name)}</span>`;+}++// Delegated click handling by `data-action`, so a view re-rendering its own+// markup never has to re-bind listeners.+export function onAction(root, handlers) {+ const listener = (event) => {+ const el = event.target.closest('[data-action]');+ if (!el || !root.contains(el)) return;+ const fn = handlers[el.dataset.action];+ if (!fn) return;+ event.preventDefault();+ fn(el, event);+ };+ root.addEventListener('click', listener);+ return () => root.removeEventListener('click', listener);+}diff --git a/apps/desktop/src/console/views/agents.js b/apps/desktop/src/console/views/agents.jsnew file mode 100644index 000000000..04ed9f2e1--- /dev/null+++ b/apps/desktop/src/console/views/agents.js@@ -0,0 +1,152 @@+// Agents: every agent on the account, searchable and sortable, each one a+// jump-off into chat, runs, its wallet, or its public page.++import { html, mount, onAction, emptyState, errorState, avatar } from '../lib/dom.js';+import { relativeTime, shortAddress } from '../../shared/normalize.js';++const SORTS = {+ recent: (a, b) => Date.parse(b.updatedAt || 0) - Date.parse(a.updatedAt || 0),+ name: (a, b) => a.name.localeCompare(b.name),+};++export function statusChip(agent) {+ if (agent.status === 'running') return html`<span class="chip chip-ok">Running</span>`;+ if (agent.status === 'stopped') return html`<span class="chip chip-warn">Stopped</span>`;+ if (agent.status === 'draft' || !agent.isPublished) return html`<span class="chip">Draft</span>`;+ return html`<span class="chip chip-info">Live</span>`;+}++export function agentCard(agent, { v1 = false } = {}) {+ const page = agent.homeUrl || `/agents/${encodeURIComponent(agent.id)}`;+ return html`<article class="card agent-card" data-agent="${agent.id}">+ <div class="agent-top">+ ${avatar(agent)}+ <div class="meta">+ <h3 title="${agent.name}">${agent.name}</h3>+ <div class="sub">${statusChip(agent)}${agent.solanaAddress ? html`<span class="mono" title="${agent.solanaAddress}">${shortAddress(agent.solanaAddress)}</span>` : ''}</div>+ </div>+ </div>+ <p class="agent-desc">${agent.description || 'No description yet. Give this agent a persona on three.ws.'}</p>+ <div class="agent-actions">+ <button type="button" class="btn btn-sm btn-primary" data-action="chat" data-id="${agent.id}">Chat</button>+ <button type="button" class="btn btn-sm" data-action="runs" data-id="${agent.id}">Runs</button>+ <button type="button" class="btn btn-sm" data-action="wallet" data-id="${agent.id}">Wallet</button>+ ${v1 && agent.status ? html`<button type="button" class="btn btn-sm btn-ghost" data-action="toggle" data-id="${agent.id}" data-running="${agent.status === 'running'}">${agent.status === 'running' ? 'Stop' : 'Start'}</button>` : ''}+ <button type="button" class="btn btn-sm btn-ghost btn-icon" data-action="open" data-href="${page}" aria-label="Open ${agent.name} on three.ws" title="Open on three.ws"><span class="ico ico-out" aria-hidden="true"></span></button>+ </div>+ ${agent.updatedAt ? html`<div class="sub" style="font-size:11.5px;color:var(--dim)">Updated ${relativeTime(agent.updatedAt)}</div>` : ''}+ </article>`;+}++export function filterAgents(list, query, sort = 'recent') {+ const q = String(query || '').trim().toLowerCase();+ const filtered = q ? list.filter((a) => a.name.toLowerCase().includes(q) || a.description.toLowerCase().includes(q) || (a.solanaAddress || '').toLowerCase().includes(q)) : list.slice();+ return filtered.sort(SORTS[sort] || SORTS.recent);+}++export function mountAgents(root, ctx) {+ const { bridge, agents, navigate, toast } = ctx;+ let state = { phase: 'loading', error: null, query: '', sort: 'recent', v1: false };++ function skeleton() {+ return html`<div class="grid">${Array.from({ length: 6 }, () => html`<div class="card agent-card" aria-hidden="true">+ <div class="agent-top"><div class="sk sk-avatar"></div><div class="meta"><div class="sk sk-line sk-title"></div><div class="sk sk-line" style="width:40%"></div></div></div>+ <div><div class="sk sk-line"></div><div class="sk sk-line" style="width:70%"></div></div>+ <div class="agent-actions"><div class="sk" style="width:60px;height:28px"></div><div class="sk" style="width:60px;height:28px"></div></div>+ </div>`)}</div>`;+ }++ function body() {+ if (state.phase === 'loading') return skeleton();+ if (state.phase === 'error') return errorState(state.error, { title: 'Your agents could not load' });+ const list = agents.list();+ if (!list.length) {+ return emptyState({+ icon: 'agents',+ title: 'No agents yet',+ message: 'An agent is an AI with its own 3D body, persona and Solana wallet. Create your first one on three.ws and it appears here.',+ actions: [{ action: 'create', label: 'Create an agent', primary: true }, { action: 'retry', label: 'Refresh' }],+ });+ }+ const shown = filterAgents(list, state.query, state.sort);+ return html`<div class="toolbar">+ <input class="input" type="search" id="agent-search" placeholder="Search agents" aria-label="Search agents" value="${state.query}" />+ <select class="select" id="agent-sort" aria-label="Sort agents">+ <option value="recent" ${state.sort === 'recent' ? 'selected' : ''}>Recently updated</option>+ <option value="name" ${state.sort === 'name' ? 'selected' : ''}>Name</option>+ </select>+ <span style="color:var(--dim);font-size:12.5px">${shown.length} of ${list.length}</span>+ </div>+ ${shown.length+ ? html`<div class="grid">${shown.map((a) => agentCard(a, { v1: state.v1 }))}</div>`+ : emptyState({ icon: 'empty', title: 'No agent matches', message: `Nothing matches "${state.query}". Try a name, a word from a description, or a wallet address.` })}`;+ }++ function render() {+ mount(root, html`<div class="view">+ <header class="head">+ <div><h1>Agents</h1><p>Everything you run on three.ws, in one place.</p></div>+ <div class="head-actions">+ <button type="button" class="btn btn-ghost" data-action="retry" aria-label="Refresh agents"><span class="ico ico-refresh" aria-hidden="true"></span>Refresh</button>+ <button type="button" class="btn btn-primary" data-action="create">New agent</button>+ </div>+ </header>+ <div id="agents-body">${body()}</div>+ </div>`);+ const search = root.querySelector('#agent-search');+ search?.addEventListener('input', (e) => {+ state.query = e.target.value;+ const pos = e.target.selectionStart;+ render();+ const next = root.querySelector('#agent-search');+ next.focus();+ next.setSelectionRange(pos, pos);+ });+ root.querySelector('#agent-sort')?.addEventListener('change', (e) => {+ state.sort = e.target.value;+ render();+ });+ }++ async function load(force) {+ state.phase = 'loading';+ render();+ try {+ const [, caps] = await Promise.all([agents.load(force), bridge.capabilities().catch(() => ({ v1: false }))]);+ state = { ...state, phase: 'ready', v1: Boolean(caps?.v1) };+ } catch (err) {+ state = { ...state, phase: 'error', error: err };+ }+ render();+ }++ const go = (view) => (el) => {+ agents.select(el.dataset.id);+ navigate(view);+ };++ const off = onAction(root, {+ retry: () => load(true),+ create: () => bridge.app.openExternal('/create'),+ chat: go('chat'),+ runs: go('runs'),+ wallet: go('wallet'),+ open: (el) => bridge.app.openExternal(el.dataset.href),+ toggle: async (el) => {+ const running = el.dataset.running === 'true';+ el.disabled = true;+ try {+ const updated = await bridge.agents.setStatus(el.dataset.id, !running);+ agents.replace(updated);+ toast(running ? 'Agent stopped. Its automations and runs are paused.' : 'Agent started.', 'ok');+ render();+ } catch (err) {+ toast(err.message, 'bad');+ el.disabled = false;+ }+ },+ });++ load(false);+ return off;+}diff --git a/apps/desktop/src/console/views/signin.js b/apps/desktop/src/console/views/signin.jsnew file mode 100644index 000000000..8e26e024a--- /dev/null+++ b/apps/desktop/src/console/views/signin.js@@ -0,0 +1,67 @@+// The signed-out screen. One button: it opens three.ws in the browser, the+// person approves "three.ws Desktop" on the consent screen, and the browser+// hands the code back to this app on a loopback port. No password ever+// touches the app.++import { html, mount, onAction } from '../lib/dom.js';++const DEFAULT_SERVER = 'https://three.ws';++export function mountSignIn(root, ctx) {+ const { bridge } = ctx;+ let phase = 'idle';+ let error = null;+ let server = DEFAULT_SERVER;++ function render() {+ const waiting = phase === 'waiting';+ mount(root, html`<div class="signin-card">+ <div class="brand-mark" aria-hidden="true"></div>+ <h1 id="signin-title">Your agents, on your desktop</h1>+ <p>Sign in with your three.ws account to chat with your agents, follow their runs, approve what they want to spend, and connect your editor.</p>+ ${waiting+ ? html`<button type="button" class="btn" data-action="cancel">Cancel sign-in</button>+ <div class="signin-wait"><span class="spin" aria-hidden="true"></span>Finish signing in in your browser.</div>`+ : html`<button type="button" class="btn btn-primary" data-action="signin" autofocus>Sign in with three.ws</button>`}+ ${error ? html`<div class="signin-error" role="alert">${error}</div>` : ''}+ <ul class="signin-list">+ <li><span class="ico ico-check" aria-hidden="true"></span>You approve the app by name on three.ws, and can revoke it any time.</li>+ <li><span class="ico ico-check" aria-hidden="true"></span>Nothing moves money without a preview and your confirmation.</li>+ <li><span class="ico ico-check" aria-hidden="true"></span>Your session is stored in the system keychain.</li>+ </ul>+ <details class="signin-server">+ <summary>Server</summary>+ <input class="input" id="server" type="url" value="${server}" aria-label="Server address" spellcheck="false" ${waiting ? 'disabled' : ''} />+ </details>+ </div>`);+ root.querySelector('#server')?.addEventListener('input', (e) => {+ server = e.target.value.trim() || DEFAULT_SERVER;+ });+ }++ async function signIn() {+ phase = 'waiting';+ error = null;+ render();+ try {+ await bridge.session.signIn({ apiBase: server });+ phase = 'done';+ } catch (err) {+ phase = 'idle';+ error = err.code === 'cancelled' ? null : err.message;+ render();+ }+ }++ const off = onAction(root, {+ signin: signIn,+ cancel: () => bridge.session.cancelSignIn(),+ });++ bridge.session.status().then((s) => {+ if (s?.apiBase) server = s.apiBase;+ render();+ }).catch(() => render());+ render();+ return off;+}diff --git a/apps/desktop/src/main.js b/apps/desktop/src/main.jsindex 07c94aa44..5bbb86019 100644--- a/apps/desktop/src/main.js+++ b/apps/desktop/src/main.js@@ -1,202 +1,181 @@-// three.ws Companion for the desktop - the main process.+// three.ws Desktop: the main process.//-// What this app is: a transparent, click-through window the size of your screen-// with a 3D character living in it. The character walks across the bottom of-// the desktop, and when something arrives that clears your bar (a message from-// a saved contact, a meeting about to start, a one-time code, an agent that-// decided you need to know), it walks over, turns to you, and says it out loud.+// One app, two faces://-// Three details make it feel like part of the machine rather than a browser:+// - The console: a window for operating your agents. Sign in once through+// the browser (OAuth 2.1 + PKCE on a loopback port), then see your agents,+// chat with them and watch their tools work, follow runs step by step,+// check wallets and approve or cancel what an agent wants to spend,+// receive account notifications as native OS notifications, and wire+// three.ws into every coding client on the machine in one click.+// - Companion mode (src/main/companion.js): the 3D character that walks the+// desktop and delivers what matters in person. Toggle it from the tray or+// from Settings.//-// 1. The window ignores the mouse everywhere except the character and its-// speech bubble. `setIgnoreMouseEvents(true, { forward: true })` still-// delivers move events to the renderer, so the renderer tells us the-// moment the pointer is over something clickable and we hand input back.-// 2. It is visible on every workspace, including over full-screen apps-// (macOS panel level), so it is a companion rather than another window to-// manage.-// 3. It holds no credentials of its own. The bridge token is the same one the-// CLI uses (packages/companion-sdk/src/config.js), so `companion login` on-// the command line signs this app in too, and rotating the token at-// three.ws/companion revokes every device at once.--import { app, BrowserWindow, Tray, Menu, ipcMain, screen, shell, Notification, nativeImage } from 'electron';+// Security posture: the console renderer is sandboxed, context-isolated, has+// no network access of its own (its CSP allows no connections), and never sees+// a token. Every request goes through this process, which attaches the bearer.+// Anything that moves money goes through src/main/previews.js: a single-use+// preview id, then a native confirmation built from the stored request.++import { app, BrowserWindow, Tray, Menu, ipcMain, shell, Notification, nativeImage, dialog, safeStorage } from 'electron';import { fileURLToPath } from 'node:url';import { dirname, join } from 'node:path';-import { spawn } from 'node:child_process';-import { createCompanionClient } from '@three-ws/companion';-import { resolveCredentials, writeConfig, configPath } from '@three-ws/companion/config';+import { homedir } from 'node:os';+import { execFile } from 'node:child_process';+import { readFileSync, writeFileSync, mkdirSync } from 'node:fs';+import { randomUUID } from 'node:crypto';+import { createSecureStore } from './main/secure-store.js';+import { createSession } from './main/session.js';+import { createConsoleApi } from './main/console-api.js';+import { createPreviewRegistry, isGuardedPath } from './main/previews.js';+import { createNotifier } from './main/notifier.js';+import { createUpdater } from './main/updater.js';+import { createCompanion } from './main/companion.js';+import { detectEditors, connectEditor, disconnectEditor, mcpServers } from './main/editors.js';++const SRC = dirname(fileURLToPath(import.meta.url));+const ASSETS = join(SRC, '..', 'assets');++// ── Settings (non-secret preferences) ────────────────────────────────────────++const settingsFile = () => join(app.getPath('userData'), 'settings.json');++function readSettings() {+ try {+ return JSON.parse(readFileSync(settingsFile(), 'utf8'));+ } catch {+ return {};+ }+}-const __dirname = dirname(fileURLToPath(import.meta.url));-const ASSETS = join(__dirname, '..', 'assets');+function writeSettings(patch) {+ const next = { ...readSettings(), ...patch };+ mkdirSync(dirname(settingsFile()), { recursive: true });+ writeFileSync(settingsFile(), JSON.stringify(next, null, 2));+ return next;+}-// How tall a strip of the screen the companion lives in. The window is only as-// large as it needs to be: a full-screen transparent window over every display-// costs compositor work for nothing.-const STAGE_HEIGHT = 420;+// ── State ────────────────────────────────────────────────────────────────────const state = {- window: null,+ console: null,tray: null,- client: null,- stopStream: null,- paused: false,- lastDelivery: null,- connected: false,- signInWindow: null,+ unread: 0,+ chats: new Map(),+ runWatches: new Map(),};-function credentials() {- return resolveCredentials();+let session;+let api;+let previews;+let notifier;+let updater;+let companion;+let store;++function sendToConsole(channel, payload) {+ const win = state.console;+ if (win && !win.isDestroyed()) win.webContents.send(channel, payload);}-// ── The stage window ─────────────────────────────────────────────────────────--function createStageWindow() {- const display = screen.getPrimaryDisplay();- const { x, y, width, height } = display.workArea;+// ── Console window ───────────────────────────────────────────────────────────+function openConsole(view) {+ if (state.console && !state.console.isDestroyed()) {+ if (state.console.isMinimized()) state.console.restore();+ state.console.show();+ state.console.focus();+ if (view) sendToConsole('app:navigate', view);+ return state.console;+ }+ if (process.platform === 'darwin') app.dock?.show();const win = new BrowserWindow({- x,- y: y + Math.max(0, height - STAGE_HEIGHT),- width,- height: Math.min(STAGE_HEIGHT, height),- transparent: true,- frame: false,- resizable: false,- movable: false,- minimizable: false,- maximizable: false,- fullscreenable: false,- skipTaskbar: true,- hasShadow: false,- focusable: false,- // 'panel' floats above full-screen apps on macOS; the other platforms- // take the plain always-on-top path.- ...(process.platform === 'darwin' ? { type: 'panel' } : {}),+ width: 1180,+ height: 780,+ minWidth: 860,+ minHeight: 560,+ show: false,+ title: 'three.ws',+ backgroundColor: '#0d0d10',+ ...(process.platform === 'darwin' ? { titleBarStyle: 'hiddenInset', trafficLightPosition: { x: 16, y: 18 } } : {}),+ icon: join(ASSETS, 'icon.png'),webPreferences: {- preload: join(__dirname, 'preload.cjs'),+ preload: join(SRC, 'console-preload.cjs'),contextIsolation: true,nodeIntegration: false,- // The renderer embeds three.ws/walk-embed in an iframe; that is the- // only remote content it loads, and it runs sandboxed.- sandbox: false,+ sandbox: true,+ spellcheck: true,},});-- win.setAlwaysOnTop(true, 'screen-saver');- win.setVisibleOnAllWorkspaces(true, { visibleOnFullScreen: true });- // Click-through by default; the renderer hands input back when the pointer- // is genuinely over the character or its bubble.- win.setIgnoreMouseEvents(true, { forward: true });- win.loadFile(join(__dirname, 'renderer', 'index.html'));-+ win.loadFile(join(SRC, 'console', 'index.html'), view ? { hash: view } : undefined);+ win.once('ready-to-show', () => win.show());+ win.on('focus', () => notifier?.setFocused(true));+ win.on('blur', () => notifier?.setFocused(false));+ win.on('closed', () => {+ state.console = null;+ notifier?.setFocused(false);+ for (const c of state.chats.values()) c.abort();+ state.chats.clear();+ for (const w of state.runWatches.values()) w.abort();+ state.runWatches.clear();+ if (process.platform === 'darwin') app.dock?.hide();+ });if (process.argv.includes('--dev')) win.webContents.openDevTools({ mode: 'detach' });-- // Keep the stage glued to the bottom of whatever the display becomes.- const reposition = () => {- if (win.isDestroyed()) return;- const area = screen.getPrimaryDisplay().workArea;- win.setBounds({- x: area.x,- y: area.y + Math.max(0, area.height - STAGE_HEIGHT),- width: area.width,- height: Math.min(STAGE_HEIGHT, area.height),- });- };- screen.on('display-metrics-changed', reposition);- screen.on('display-added', reposition);- screen.on('display-removed', reposition);-+ state.console = win;return win;}-function send(channel, payload) {- if (state.window && !state.window.isDestroyed()) state.window.webContents.send(channel, payload);+// Links out of the app: https anywhere, and site-relative paths on the server+// the person signed in to. Everything else is dropped.+function openExternal(url) {+ const target = String(url || '');+ if (/^https:\/\//i.test(target)) return shell.openExternal(target).then(() => true);+ if (/^\/(?!\/)/.test(target)) return shell.openExternal(`${session.apiBase()}${target}`).then(() => true);+ if (/^http:\/\/(127\.0\.0\.1|localhost)(:\d+)?\//i.test(target)) return shell.openExternal(target).then(() => true);+ return Promise.resolve(false);}-// ── The delivery stream ──────────────────────────────────────────────────────--function connect() {- state.stopStream?.();- state.stopStream = null;- state.connected = false;-- const { token, apiBase } = credentials();- if (!token) {- send('companion:status', { signedIn: false, apiBase });- refreshTray();- return;- }-- state.client = createCompanionClient({ token, apiBase });- send('companion:status', { signedIn: true, apiBase, paused: state.paused });-- state.stopStream = state.client.stream({- onOpen: (hello) => {- state.connected = true;- refreshTray();- send('companion:connected', { ...hello, apiBase });- },- onDelivery: (delivery) => {- state.lastDelivery = delivery;- if (state.paused) return;- send('companion:delivery', delivery);- // The stage says it; the OS notification is the fallback for a- // machine whose screen is locked or whose GPU refused the renderer.- if (!state.window || state.window.isDestroyed()) notifyNatively(delivery);- state.client.markDelivered(delivery.id).catch(() => {});- },- onError: () => {- state.connected = false;- refreshTray();- },- });- refreshTray();-}+// ── Tray / menu bar ──────────────────────────────────────────────────────────-function notifyNatively(delivery) {- if (!Notification.isSupported()) return;- new Notification({- title: delivery.speaker || 'Your companion',- body: delivery.spoken_line || delivery.title,- silent: false,- }).show();+function trayIcon() {+ const img = nativeImage.createFromPath(join(ASSETS, process.platform === 'darwin' ? 'trayTemplate.png' : 'tray-icon.png'));+ if (img.isEmpty()) return nativeImage.createEmpty();+ if (process.platform === 'darwin') img.setTemplateImage(true);+ return img;}-// ── Tray ─────────────────────────────────────────────────────────────────────-function refreshTray() {if (!state.tray) return;- const { token } = credentials();- const status = !token- ? 'Not signed in'- : state.paused- ? 'Paused'- : state.connected- ? 'Listening'- : 'Reconnecting…';-- state.tray.setToolTip(`three.ws Companion - ${status}`);- state.tray.setContextMenu(Menu.buildFromTemplate([- { label: `three.ws Companion (${status})`, enabled: false },+ const s = session.status();+ const c = companion.status();+ const u = updater.state();+ const who = s.signedIn ? (s.user?.name || 'Signed in') : 'Not signed in';+ state.tray.setToolTip(`three.ws Desktop: ${who}${state.unread ? `, ${state.unread} unread` : ''}`);+ if (process.platform === 'darwin') state.tray.setTitle(state.unread ? String(state.unread) : '');++ const template = [+ { label: `three.ws Desktop · ${who}`, enabled: false },{ type: 'separator' },- {- label: state.paused ? 'Resume' : 'Pause deliveries',- click: () => {- state.paused = !state.paused;- send('companion:status', { signedIn: Boolean(token), paused: state.paused });- refreshTray();- },- },- {- label: 'Say the last one again',- enabled: Boolean(state.lastDelivery),- click: () => state.lastDelivery && send('companion:delivery', state.lastDelivery),- },+ { label: 'Open console', accelerator: 'CommandOrControl+Shift+Space', click: () => openConsole() },+ ...(s.signedIn ? [+ { label: state.unread ? `Notifications (${state.unread} unread)` : 'Notifications', click: () => openConsole('notifications') },+ { label: 'Chat', click: () => openConsole('chat') },+ { label: 'Wallet and approvals', click: () => openConsole('wallet') },+ ] : [+ { label: 'Sign in…', click: () => openConsole() },+ ]),+ { type: 'separator' },+ { label: 'Companion mode', type: 'checkbox', checked: c.enabled, click: (item) => setCompanionMode(item.checked) },+ ...(c.enabled ? [+ { label: c.paused ? 'Resume deliveries' : 'Pause deliveries', click: () => companion.togglePause() },+ { label: 'Say the last one again', enabled: c.hasLastDelivery, click: () => companion.replayLast() },+ { label: c.signedIn ? 'Change bridge token…' : 'Connect companion…', click: () => companion.openSignIn() },+ ] : []),{ type: 'separator' },- { label: token ? 'Change bridge token…' : 'Sign in…', click: openSignIn },- { label: 'Open three.ws/companion', click: () => shell.openExternal(`${credentials().apiBase}/companion`) },+ u.status === 'ready'+ ? { label: `Restart to update to ${u.available}`, click: () => updater.installNow() }+ : { label: u.status === 'checking' ? 'Checking for updates…' : u.status === 'downloading' ? `Downloading update${u.progress != null ? ` (${u.progress}%)` : ''}…` : 'Check for updates', enabled: app.isPackaged && !['checking', 'downloading'].includes(u.status), click: () => updater.check() },{label: 'Start at login',type: 'checkbox',@@ -204,112 +183,275 @@ function refreshTray() {click: (item) => app.setLoginItemSettings({ openAtLogin: item.checked, openAsHidden: true }),},{ type: 'separator' },- { label: `Config: ${configPath()}`, enabled: false },- { label: 'Quit', role: 'quit' },- ]));+ { label: 'Quit three.ws', role: 'quit' },+ ];+ state.tray.setContextMenu(Menu.buildFromTemplate(template));}-// ── Sign in ──────────────────────────────────────────────────────────────────+function setCompanionMode(enabled) {+ writeSettings({ companionMode: Boolean(enabled) });+ const s = enabled ? companion.enable() : companion.disable();+ sendToConsole('app:companion', s);+ refreshTray();+ return s;+}-function openSignIn() {- if (state.signInWindow && !state.signInWindow.isDestroyed()) {- state.signInWindow.focus();- return;- }- state.signInWindow = new BrowserWindow({- width: 460,- height: 380,- resizable: false,- title: 'Sign in to your companion',- webPreferences: {- preload: join(__dirname, 'preload.cjs'),- contextIsolation: true,- nodeIntegration: false,- },+// ── Native notifications ─────────────────────────────────────────────────────++function showNativeNotification(n) {+ if (!Notification.isSupported()) return;+ const toast = new Notification({ title: n.title, body: n.text, silent: false });+ toast.on('click', () => {+ openConsole('notifications');+ api.markRead(n.id).catch(() => {});});- state.signInWindow.loadFile(join(__dirname, 'renderer', 'sign-in.html'));- state.signInWindow.on('closed', () => {- state.signInWindow = null;+ toast.show();+}++// The last gate before real funds move. Built from the summary the main+// process stored with the preview, never from anything the renderer sent.+async function confirmFinancial(summary) {+ const lines = [+ `Recipient: ${summary.recipient || 'unknown'}`,+ `Amount: ${summary.amount ?? 'unknown'} ${summary.token || ''}`.trim(),+ `Chain: ${summary.chain || 'Solana'}`,+ summary.usd != null ? `Value: about $${Number(summary.usd).toFixed(2)}` : null,+ '',+ 'This moves real funds and cannot be undone.',+ ].filter((l) => l !== null);+ const parent = state.console && !state.console.isDestroyed() ? state.console : undefined;+ const { response } = await dialog.showMessageBox(parent, {+ type: 'warning',+ buttons: ['Cancel', 'Send'],+ defaultId: 0,+ cancelId: 0,+ noLink: true,+ title: 'Confirm send',+ message: `Send ${summary.amount ?? ''} ${summary.token || ''} to ${summary.recipient || 'this address'}?`.replace(/\s+/g, ' '),+ detail: lines.join('\n'),});+ return response === 1;}// ── IPC ──────────────────────────────────────────────────────────────────────-ipcMain.handle('companion:credentials', () => {- const { token, apiBase } = credentials();- return { signedIn: Boolean(token), apiBase, paused: state.paused, configPath: configPath() };-});--ipcMain.handle('companion:save-token', async (_event, { token, apiBase }) => {- const trimmed = String(token || '').trim();- if (!trimmed) return { ok: false, error: 'Paste the bridge token from three.ws/companion.' };- const base = String(apiBase || credentials().apiBase);- try {- // Prove it before storing it: a bad token should fail here, in a window- // the person is looking at, not silently at 3am.- await createCompanionClient({ token: trimmed, apiBase: base }).list({ limit: 1 });- } catch (err) {- return { ok: false, error: `That token was refused: ${err.message}` };- }- writeConfig({ token: trimmed, apiBase: base });- connect();- return { ok: true };-});+// Every console call answers { ok, data } or { ok: false, error }, because a+// rejected ipcMain.handle loses everything but the message, and the renderer+// needs the code (signed_out, preview_expired, ...) to pick the right state.+function handle(channel, fn) {+ ipcMain.handle(channel, async (event, ...args) => {+ if (!state.console || event.sender !== state.console.webContents) return { ok: false, error: { message: 'Not allowed from this window', code: 'forbidden' } };+ try {+ return { ok: true, data: await fn(...args) };+ } catch (err) {+ return { ok: false, error: { message: err?.message || String(err), code: err?.code || null, status: err?.status || null } };+ }+ });+}-ipcMain.handle('companion:open-external', (_event, url) => {- const target = String(url || '');- if (!/^https?:\/\//i.test(target)) return false;- shell.openExternal(target);- return true;-});--// The renderer owns hit-testing: it knows where the character and bubble are.-ipcMain.on('companion:set-interactive', (_event, interactive) => {- if (!state.window || state.window.isDestroyed()) return;- state.window.setIgnoreMouseEvents(!interactive, { forward: true });-});--// macOS ships a real speech synthesiser; used when the hosted voice lanes and-// the renderer's own speech synthesis both come up empty.-ipcMain.on('companion:say-native', (_event, text) => {- if (process.platform !== 'darwin') return;- try {- spawn('say', [String(text).slice(0, 500)], { stdio: 'ignore', detached: true }).unref();- } catch {- /* no `say` binary: the bubble already carries the line */- }-});+function editorContext() {+ return {+ home: homedir(),+ platform: process.platform,+ env: process.env,+ claudeCli: (args) => new Promise((resolve, reject) => {+ execFile('claude', args, { timeout: 20_000, shell: process.platform === 'win32' }, (err, stdout) => (err ? reject(err) : resolve(stdout)));+ }),+ };+}-ipcMain.on('companion:notify-native', (_event, delivery) => notifyNatively(delivery || {}));+function appInfo() {+ return {+ version: app.getVersion(),+ platform: process.platform,+ arch: process.arch,+ packaged: app.isPackaged,+ update: updater.state(),+ companion: companion.status(),+ encryptedStore: store.encrypted(),+ launchAtLogin: app.getLoginItemSettings().openAtLogin,+ mcpServers: mcpServers(session.apiBase()),+ };+}-// ── Lifecycle ────────────────────────────────────────────────────────────────+function registerIpc() {+ handle('session:status', () => session.status());+ handle('session:signIn', (opts) => session.signIn(opts || {}));+ handle('session:cancelSignIn', () => session.cancelSignIn());+ handle('session:signOut', async () => {+ notifier.stop();+ api.resetCapabilities();+ return session.signOut();+ });+ handle('session:refreshUser', () => session.refreshUser());++ handle('capabilities', () => api.capabilities());+ handle('agents:list', () => api.listAgents());+ handle('agents:setStatus', (agentId, running) => api.setAgentStatus(agentId, running));++ handle('chat:history', (agentId) => api.chatHistory(agentId));+ handle('chat:send', ({ agentId, message, history }) => {+ const requestId = randomUUID();+ const controller = new AbortController();+ state.chats.set(requestId, controller);+ api.sendChat({ agentId, message, history, signal: controller.signal }, (evt) => sendToConsole('chat:event', { requestId, ...evt }))+ .catch((err) => {+ if (controller.signal.aborted) sendToConsole('chat:event', { requestId, type: 'aborted' });+ else sendToConsole('chat:event', { requestId, type: 'error', message: err.message, code: err.code || null });+ })+ .finally(() => {+ state.chats.delete(requestId);+ sendToConsole('chat:event', { requestId, type: 'end' });+ });+ return { requestId };+ });+ handle('chat:abort', (requestId) => {+ state.chats.get(requestId)?.abort();+ return true;+ });-// One instance only: two companions on one desktop would speak in unison.-if (!app.requestSingleInstanceLock()) {- app.quit();-} else {- app.on('second-instance', () => openSignIn());+ handle('runs:list', (agentId) => api.listRuns(agentId));+ handle('runs:detail', (runId) => api.runDetail(runId));+ handle('runs:create', (agentId, input) => api.createRun(agentId, input));+ handle('runs:cancel', (runId) => api.cancelRun(runId));+ handle('runs:watch', (runId) => {+ state.runWatches.get(runId)?.abort();+ const controller = new AbortController();+ state.runWatches.set(runId, controller);+ api.streamRun(runId, (evt) => sendToConsole('runs:event', { runId, ...evt }), controller.signal)+ .catch((err) => {+ if (!controller.signal.aborted) sendToConsole('runs:event', { runId, type: 'error', message: err.message });+ })+ .finally(() => {+ if (state.runWatches.get(runId) === controller) state.runWatches.delete(runId);+ sendToConsole('runs:event', { runId, type: 'end' });+ });+ return true;+ });+ handle('runs:unwatch', (runId) => {+ state.runWatches.get(runId)?.abort();+ state.runWatches.delete(runId);+ return true;+ });- app.whenReady().then(() => {- // The dock icon is noise for something that lives in the menu bar.- if (process.platform === 'darwin') app.dock?.hide();+ handle('wallet:get', (agentId) => api.wallet(agentId));+ handle('preview:create', (kind, input) => previews.create(kind, input));+ handle('preview:approve', (previewId) => previews.approve(previewId));+ handle('preview:cancel', (previewId) => previews.cancel(previewId));+ handle('proposal:dismiss', (agentId, proposalId) => api.dismissProposal(agentId, proposalId));- state.window = createStageWindow();+ handle('notifications:list', (opts) => api.notifications(opts || {}));+ handle('notifications:read', async (id) => {+ await api.markRead(id);+ return notifier.poll();+ });+ handle('notifications:readAll', async () => {+ await api.markAllRead();+ return notifier.poll();+ });- const icon = nativeImage.createFromPath(join(ASSETS, 'tray-icon.png'));- state.tray = new Tray(icon.isEmpty() ? nativeImage.createEmpty() : icon.resize({ width: 18, height: 18 }));+ handle('editors:detect', () => detectEditors(editorContext(), session.apiBase()));+ handle('editors:connect', (id) => connectEditor(editorContext(), id, session.apiBase()));+ handle('editors:disconnect', (id) => disconnectEditor(editorContext(), id, session.apiBase()));++ handle('app:info', () => appInfo());+ handle('app:setCompanion', (enabled) => setCompanionMode(enabled));+ handle('app:companionSignIn', () => companion.openSignIn());+ handle('app:checkUpdates', () => updater.check());+ handle('app:installUpdate', () => updater.installNow());+ handle('app:setLaunchAtLogin', (enabled) => {+ app.setLoginItemSettings({ openAtLogin: Boolean(enabled), openAsHidden: true });refreshTray();- state.tray.on('click', () => state.tray.popUpContextMenu());+ return app.getLoginItemSettings().openAtLogin;+ });+ handle('app:openExternal', (url) => openExternal(url));+ // A generic read for views that need a route not wrapped above. Reads only:+ // every write has its own typed channel, and money has none but previews.+ handle('api:get', (path) => {+ if (isGuardedPath(path, 'GET')) throw new Error('Not allowed');+ return session.request(String(path));+ });+}++// ── Lifecycle ────────────────────────────────────────────────────────────────- connect();+function lockDownNavigation() {+ app.on('web-contents-created', (_event, contents) => {+ contents.setWindowOpenHandler(({ url }) => {+ openExternal(url);+ return { action: 'deny' };+ });+ contents.on('will-navigate', (event, url) => {+ if (!url.startsWith('file://')) {+ event.preventDefault();+ openExternal(url);+ }+ });+ });+}- if (!credentials().token) openSignIn();+function boot() {+ store = createSecureStore({ file: join(app.getPath('userData'), 'session.bin'), safeStorage });+ session = createSession({+ store,+ version: app.getVersion(),+ openBrowser: (url) => shell.openExternal(url),+ onChange: (status) => {+ sendToConsole('session:changed', status);+ if (status.signedIn) notifier?.start();+ else notifier?.stop();+ refreshTray();+ },+ });+ api = createConsoleApi({ session });+ previews = createPreviewRegistry({ request: (path, init) => session.request(path, init), confirm: confirmFinancial });+ notifier = createNotifier({+ api,+ onNew: showNativeNotification,+ onUnread: (count) => {+ state.unread = count;+ sendToConsole('notifications:unread', count);+ if (process.platform !== 'win32') app.setBadgeCount(count);+ refreshTray();+ },+ });+ updater = createUpdater({+ app,+ onState: (s) => {+ sendToConsole('updater:state', s);+ refreshTray();+ },});+ companion = createCompanion({ srcDir: SRC, onChange: (s) => { sendToConsole('app:companion', s); refreshTray(); } });++ registerIpc();++ state.tray = new Tray(trayIcon());+ state.tray.on('click', () => (process.platform === 'darwin' ? state.tray.popUpContextMenu() : openConsole()));+ refreshTray();++ if (readSettings().companionMode) companion.enable();+ if (session.status().signedIn) notifier.start();+ updater.start();- // A companion has no windows to close back into: it lives in the tray.- app.on('window-all-closed', (event) => event.preventDefault?.());+ // Launched at login stays in the tray; launched by hand opens the console.+ const hidden = app.getLoginItemSettings().wasOpenedAsHidden || process.argv.includes('--hidden');+ if (!hidden) openConsole();+}+// One instance only: two consoles would double every notification.+if (!app.requestSingleInstanceLock()) {+ app.quit();+} else {+ app.setAppUserModelId('ws.three.desktop');+ lockDownNavigation();+ app.on('second-instance', () => openConsole());+ app.on('activate', () => openConsole());+ app.whenReady().then(boot);+ // Closing the console leaves the app in the tray; Quit lives in the tray menu.+ app.on('window-all-closed', () => {});app.on('before-quit', () => {- state.stopStream?.();+ companion?.stop();+ notifier?.stop();});}diff --git a/apps/desktop/src/main/companion.js b/apps/desktop/src/main/companion.jsnew file mode 100644index 000000000..ceacced22--- /dev/null+++ b/apps/desktop/src/main/companion.js@@ -0,0 +1,272 @@+// Companion mode: a transparent, click-through strip along the bottom of the+// screen with a 3D character living in it. The character walks across the+// desktop, and when something arrives that clears your bar (a message from a+// saved contact, a meeting about to start, a one-time code, an agent that+// decided you need to know), it walks over, turns to you, and says it aloud.+//+// Three details make it feel like part of the machine rather than a browser:+//+// 1. The window ignores the mouse everywhere except the character and its+// speech bubble. `setIgnoreMouseEvents(true, { forward: true })` still+// delivers move events to the renderer, so the renderer tells us the+// moment the pointer is over something clickable and we hand input back.+// 2. It is visible on every workspace, including over full-screen apps+// (macOS panel level), so it is a companion rather than another window.+// 3. Its credential is the bridge token the companion CLI uses+// (packages/companion-sdk/src/config.js), so `companion login` on the+// command line signs this mode in too, and rotating the token at+// three.ws/companion revokes every device at once.++import { BrowserWindow, ipcMain, screen, shell, Notification } from 'electron';+import { join } from 'node:path';+import { spawn } from 'node:child_process';+import { createCompanionClient } from '@three-ws/companion';+import { resolveCredentials, writeConfig, configPath } from '@three-ws/companion/config';++// How tall a strip of the screen the companion lives in. A full-screen+// transparent window over every display costs compositor work for nothing.+const STAGE_HEIGHT = 420;++export function createCompanion({ srcDir, onChange }) {+ const state = {+ enabled: false,+ window: null,+ client: null,+ stopStream: null,+ paused: false,+ lastDelivery: null,+ connected: false,+ signInWindow: null,+ };++ const credentials = () => resolveCredentials();+ const changed = () => onChange(status());++ function status() {+ const { token, apiBase } = credentials();+ return {+ enabled: state.enabled,+ signedIn: Boolean(token),+ apiBase,+ paused: state.paused,+ connected: state.connected,+ hasLastDelivery: Boolean(state.lastDelivery),+ configPath: configPath(),+ };+ }++ function stageBounds() {+ const area = screen.getPrimaryDisplay().workArea;+ return {+ x: area.x,+ y: area.y + Math.max(0, area.height - STAGE_HEIGHT),+ width: area.width,+ height: Math.min(STAGE_HEIGHT, area.height),+ };+ }++ function reposition() {+ if (state.window && !state.window.isDestroyed()) state.window.setBounds(stageBounds());+ }++ function createStageWindow() {+ const win = new BrowserWindow({+ ...stageBounds(),+ transparent: true,+ frame: false,+ resizable: false,+ movable: false,+ minimizable: false,+ maximizable: false,+ fullscreenable: false,+ skipTaskbar: true,+ hasShadow: false,+ focusable: false,+ show: false,+ // 'panel' floats above full-screen apps on macOS; the other platforms+ // take the plain always-on-top path.+ ...(process.platform === 'darwin' ? { type: 'panel' } : {}),+ webPreferences: {+ preload: join(srcDir, 'preload.cjs'),+ contextIsolation: true,+ nodeIntegration: false,+ // The renderer embeds three.ws/walk-embed in an iframe; that is the+ // only remote content it loads.+ sandbox: false,+ },+ });+ win.setAlwaysOnTop(true, 'screen-saver');+ win.setVisibleOnAllWorkspaces(true, { visibleOnFullScreen: true });+ // Click-through by default; the renderer hands input back when the+ // pointer is genuinely over the character or its bubble.+ win.setIgnoreMouseEvents(true, { forward: true });+ win.loadFile(join(srcDir, 'renderer', 'index.html'));+ win.once('ready-to-show', () => win.showInactive());+ if (process.argv.includes('--dev')) win.webContents.openDevTools({ mode: 'detach' });+ return win;+ }++ function send(channel, payload) {+ if (state.window && !state.window.isDestroyed()) state.window.webContents.send(channel, payload);+ }++ function connect() {+ state.stopStream?.();+ state.stopStream = null;+ state.connected = false;++ const { token, apiBase } = credentials();+ if (!token) {+ send('companion:status', { signedIn: false, apiBase });+ changed();+ return;+ }++ state.client = createCompanionClient({ token, apiBase });+ send('companion:status', { signedIn: true, apiBase, paused: state.paused });++ state.stopStream = state.client.stream({+ onOpen: (hello) => {+ state.connected = true;+ changed();+ send('companion:connected', { ...hello, apiBase });+ },+ onDelivery: (delivery) => {+ state.lastDelivery = delivery;+ changed();+ if (state.paused) return;+ send('companion:delivery', delivery);+ // The stage says it; the OS notification is the fallback for a+ // machine whose GPU refused the renderer.+ if (!state.window || state.window.isDestroyed()) notifyNatively(delivery);+ state.client.markDelivered(delivery.id).catch(() => {});+ },+ onError: () => {+ state.connected = false;+ changed();+ },+ });+ changed();+ }++ function notifyNatively(delivery) {+ if (!Notification.isSupported()) return;+ new Notification({+ title: delivery.speaker || 'Your companion',+ body: delivery.spoken_line || delivery.title || '',+ silent: false,+ }).show();+ }++ function openSignIn() {+ if (state.signInWindow && !state.signInWindow.isDestroyed()) {+ state.signInWindow.focus();+ return;+ }+ state.signInWindow = new BrowserWindow({+ width: 460,+ height: 400,+ resizable: false,+ title: 'Connect companion mode',+ webPreferences: {+ preload: join(srcDir, 'preload.cjs'),+ contextIsolation: true,+ nodeIntegration: false,+ },+ });+ state.signInWindow.loadFile(join(srcDir, 'renderer', 'sign-in.html'));+ state.signInWindow.on('closed', () => {+ state.signInWindow = null;+ });+ }++ function enable() {+ if (state.enabled) return status();+ state.enabled = true;+ state.window = createStageWindow();+ screen.on('display-metrics-changed', reposition);+ screen.on('display-added', reposition);+ screen.on('display-removed', reposition);+ connect();+ if (!credentials().token) openSignIn();+ changed();+ return status();+ }++ function disable() {+ if (!state.enabled) return status();+ state.enabled = false;+ state.stopStream?.();+ state.stopStream = null;+ state.connected = false;+ screen.removeListener('display-metrics-changed', reposition);+ screen.removeListener('display-added', reposition);+ screen.removeListener('display-removed', reposition);+ if (state.window && !state.window.isDestroyed()) state.window.destroy();+ state.window = null;+ changed();+ return status();+ }++ function togglePause() {+ state.paused = !state.paused;+ send('companion:status', { signedIn: Boolean(credentials().token), paused: state.paused });+ changed();+ return status();+ }++ function replayLast() {+ if (state.lastDelivery) send('companion:delivery', state.lastDelivery);+ }++ // ── IPC for the stage and its bridge-token window ────────────────────────+ ipcMain.handle('companion:credentials', () => {+ const { token, apiBase } = credentials();+ return { signedIn: Boolean(token), apiBase, paused: state.paused, configPath: configPath() };+ });++ ipcMain.handle('companion:save-token', async (_event, { token, apiBase }) => {+ const trimmed = String(token || '').trim();+ if (!trimmed) return { ok: false, error: 'Paste the bridge token from three.ws/companion.' };+ const base = String(apiBase || credentials().apiBase);+ try {+ // Prove it before storing it: a bad token should fail here, in a window+ // the person is looking at, not silently at 3am.+ await createCompanionClient({ token: trimmed, apiBase: base }).list({ limit: 1 });+ } catch (err) {+ return { ok: false, error: `That token was refused: ${err.message}` };+ }+ writeConfig({ token: trimmed, apiBase: base });+ if (state.enabled) connect();+ changed();+ return { ok: true };+ });++ ipcMain.handle('companion:open-external', (_event, url) => {+ const target = String(url || '');+ if (!/^https?:\/\//i.test(target)) return false;+ shell.openExternal(target);+ return true;+ });++ // The renderer owns hit-testing: it knows where the character and bubble are.+ ipcMain.on('companion:set-interactive', (_event, interactive) => {+ if (!state.window || state.window.isDestroyed()) return;+ state.window.setIgnoreMouseEvents(!interactive, { forward: true });+ });++ // macOS ships a real speech synthesiser; used when the hosted voice lanes and+ // the renderer's own speech synthesis both come up empty.+ ipcMain.on('companion:say-native', (_event, text) => {+ if (process.platform !== 'darwin') return;+ try {+ spawn('say', [String(text).slice(0, 500)], { stdio: 'ignore', detached: true }).unref();+ } catch {+ // No `say` binary: the bubble already carries the line.+ }+ });++ ipcMain.on('companion:notify-native', (_event, delivery) => notifyNatively(delivery || {}));++ return { enable, disable, status, togglePause, replayLast, openSignIn, stop: () => state.stopStream?.() };+}diff --git a/apps/desktop/src/main/console-api.js b/apps/desktop/src/main/console-api.jsnew file mode 100644index 000000000..759a618d7--- /dev/null+++ b/apps/desktop/src/main/console-api.js@@ -0,0 +1,272 @@+// Everything the console reads and does, as typed calls over the session.+// Electron-free, so it is tested against a recorded fetch.+//+// Feature detection, not version pinning: the v1 Agents API (runs with step+// timelines, server-side chat history) is probed once per session. Where the+// server has it, the console uses it; where it does not yet, the same views+// run on the routes v1 wraps: /api/agents, the streaming /api/chat, and the+// signed action log at /api/agent-actions.++import {+ normalizeAgents, normalizeAgent, normalizeRuns, normalizeRun, normalizeSteps,+ normalizeActivity, describeNotification, listFrom, objectFrom,+} from '../shared/normalize.js';+import { readSse } from './sse.js';+import { errorFromBody } from './session.js';++const enc = encodeURIComponent;++export function createConsoleApi({ session }) {+ let v1 = null;++ async function hasV1() {+ if (v1 !== null) return v1;+ try {+ const res = await session.authorizedFetch('/api/v1/agents?limit=1');+ const type = res.headers.get('content-type') || '';+ v1 = res.ok && type.includes('application/json');+ await res.body?.cancel?.();+ } catch (err) {+ if (err.code === 'signed_out') throw err;+ v1 = false;+ }+ return v1;+ }++ function resetCapabilities() {+ v1 = null;+ }++ async function capabilities() {+ return { v1: await hasV1() };+ }++ // ── Agents ──────────────────────────────────────────────────────────────+ async function listAgents() {+ const body = (await hasV1())+ ? await session.request('/api/v1/agents?limit=100')+ : await session.request('/api/agents');+ return normalizeAgents(body);+ }++ async function setAgentStatus(agentId, running) {+ if (!(await hasV1())) throw new Error('Starting and stopping agents needs the v1 Agents API on this server.');+ const body = await session.request(`/api/v1/agents/${enc(agentId)}/${running ? 'start' : 'stop'}`, { method: 'POST' });+ return normalizeAgent(objectFrom(body, 'agent'));+ }++ // ── Chat ────────────────────────────────────────────────────────────────+ async function chatHistory(agentId) {+ if (!(await hasV1())) return { serverHistory: false, messages: [] };+ const body = await session.request(`/api/v1/agents/${enc(agentId)}/messages?limit=50`);+ const messages = listFrom(body, 'messages').map((m) => ({+ role: m.role === 'user' ? 'user' : 'assistant',+ content: String(m.content ?? m.text ?? ''),+ channel: m.channel || null,+ at: m.created_at || m.createdAt || null,+ toolCalls: Array.isArray(m.tool_calls || m.toolCalls) ? (m.tool_calls || m.toolCalls).map((t) => String(t.name || t.tool || t)) : [],+ })).filter((m) => m.content);+ // Oldest first for rendering.+ messages.sort((a, b) => Date.parse(a.at || 0) - Date.parse(b.at || 0));+ return { serverHistory: true, messages };+ }++ // Streams one exchange. `emit` receives { type: 'chunk' | 'tool' | 'action' |+ // 'done' | 'error', ... }. Resolves with the final reply text.+ async function sendChat({ agentId, message, history = [], signal }, emit) {+ if (await hasV1()) {+ emit({ type: 'tool', status: 'thinking', label: 'Thinking' });+ const body = await session.request(`/api/v1/agents/${enc(agentId)}/messages`, {+ method: 'POST',+ body: { message, channel: 'desktop' },+ signal,+ });+ const d = objectFrom(body, 'message');+ const tools = d.tool_calls || d.toolCalls || [];+ for (const t of tools) emit({ type: 'tool', status: 'done', label: String(t.name || t.tool || t) });+ const signatures = d.signatures || d.transaction_signatures || [];+ const reply = String(d.content ?? d.reply ?? '');+ emit({ type: 'chunk', text: reply });+ emit({ type: 'done', reply, signatures, usage: d.usage || null, cost: d.cost ?? d.cost_credits ?? null });+ return reply;+ }++ const res = await session.authorizedFetch('/api/chat', {+ method: 'POST',+ signal,+ headers: { 'content-type': 'application/json', accept: 'text/event-stream' },+ body: JSON.stringify({+ message,+ agentId,+ history: history.slice(-20).map((m) => ({ role: m.role === 'user' ? 'user' : 'assistant', content: String(m.content).slice(0, 4000) })),+ }),+ });+ const type = res.headers.get('content-type') || '';+ if (!type.includes('text/event-stream')) {+ let parsed = null;+ try {+ parsed = await res.json();+ } catch {+ parsed = null;+ }+ if (!res.ok) throw errorFromBody(res.status, parsed, `Chat failed with ${res.status}`);+ const reply = String(parsed?.reply ?? '');+ emit({ type: 'chunk', text: reply });+ emit({ type: 'done', reply, actions: parsed?.actions || [] });+ return reply;+ }+ let reply = '';+ let failed = null;+ await readSse(res, ({ json }) => {+ if (!json) return;+ if (json.type === 'chunk') {+ reply += json.text || '';+ emit({ type: 'chunk', text: json.text || '' });+ } else if (json.type === 'home_tool') {+ emit({ type: 'tool', status: json.status || 'running', label: String(json.tool || 'tool').replace(/_/g, ' '), detail: json.data?.summary || null });+ } else if (json.type === 'error') {+ failed = json;+ } else if (json.type === 'done') {+ if (json.reply && !reply) {+ reply = json.reply;+ emit({ type: 'chunk', text: json.reply });+ }+ for (const a of json.actions || []) emit({ type: 'action', action: a });+ emit({ type: 'done', reply: json.reply || reply, model: json.model || null, governance: json.governance || null });+ }+ }, { signal });+ if (failed) {+ const err = new Error(failed.message || 'The agent could not answer.');+ err.code = failed.code || 'chat_error';+ throw err;+ }+ return reply;+ }++ // ── Runs ────────────────────────────────────────────────────────────────+ async function listRuns(agentId) {+ if (!(await hasV1())) {+ const body = await session.request(`/api/agent-actions?agent_id=${enc(agentId)}&limit=50`);+ return { mode: 'activity', activity: normalizeActivity(body) };+ }+ const body = await session.request(`/api/v1/agents/${enc(agentId)}/runs?limit=50`);+ return { mode: 'runs', runs: normalizeRuns(body) };+ }++ async function runDetail(runId) {+ const [run, steps] = await Promise.all([+ session.request(`/api/v1/runs/${enc(runId)}`),+ session.request(`/api/v1/runs/${enc(runId)}/steps`),+ ]);+ return { run: normalizeRun(objectFrom(run, 'run')), steps: normalizeSteps(steps) };+ }++ async function createRun(agentId, { goal, maxSteps, budgetUsd }) {+ const text = String(goal || '').trim();+ if (!text) throw new Error('Describe the goal for this run.');+ const body = await session.request(`/api/v1/agents/${enc(agentId)}/runs`, {+ method: 'POST',+ body: {+ goal: text,+ ...(Number(maxSteps) > 0 ? { max_steps: Math.min(60, Math.round(Number(maxSteps))) } : {}),+ ...(Number(budgetUsd) > 0 ? { budget_usd: Number(budgetUsd) } : {}),+ },+ });+ return normalizeRun(objectFrom(body, 'run'));+ }++ async function cancelRun(runId) {+ const body = await session.request(`/api/v1/runs/${enc(runId)}/cancel`, { method: 'POST' });+ return normalizeRun(objectFrom(body, 'run'));+ }++ async function streamRun(runId, emit, signal) {+ const res = await session.authorizedFetch(`/api/v1/runs/${enc(runId)}/events`, { headers: { accept: 'text/event-stream' }, signal });+ if (!res.ok) {+ let parsed = null;+ try {+ parsed = await res.json();+ } catch {+ parsed = null;+ }+ throw errorFromBody(res.status, parsed, `Run stream failed with ${res.status}`);+ }+ await readSse(res, ({ event, json }) => {+ if (!json) return;+ if (json.step || event === 'step') emit({ type: 'step', step: normalizeSteps([json.step || json])[0] });+ if (json.run || event === 'status' || event === 'done') emit({ type: 'run', run: normalizeRun(json.run || json) });+ }, { signal });+ }++ // ── Wallet ──────────────────────────────────────────────────────────────+ async function wallet(agentId) {+ const [summary, holdings, proposals] = await Promise.allSettled([+ session.request(`/api/agents/${enc(agentId)}/solana`),+ session.request(`/api/agents/${enc(agentId)}/solana/holdings`),+ session.request(`/api/autopilot/proposals?agentId=${enc(agentId)}&status=pending`),+ ]);+ if (summary.status === 'rejected') throw summary.reason;+ const s = objectFrom(summary.value);+ const h = holdings.status === 'fulfilled' ? objectFrom(holdings.value) : {};+ return {+ address: s.address || null,+ network: s.network || 'mainnet',+ sol: s.sol ?? null,+ balanceError: s.balance_error || null,+ signable: s.signable !== false,+ signableReason: s.signable_reason || null,+ tokens: Array.isArray(h.tokens) ? h.tokens.map((t) => ({+ mint: t.mint,+ amount: t.ui_amount,+ stable: Boolean(t.is_usdc),+ })) : [],+ holdingsError: holdings.status === 'rejected' ? holdings.reason.message : null,+ proposals: proposals.status === 'fulfilled'+ ? (proposals.value?.proposals || []).map((p) => ({+ id: p.id,+ kind: p.kind,+ title: p.title,+ rationale: p.rationale,+ financial: p.kind === 'wallet_transfer',+ confidence: p.confidence,+ createdAt: p.createdAt,+ }))+ : [],+ proposalsError: proposals.status === 'rejected' ? proposals.reason.message : null,+ };+ }++ async function dismissProposal(agentId, proposalId) {+ await session.request('/api/autopilot/proposals', { method: 'POST', body: { agentId, action: 'dismiss', proposalId } });+ return { ok: true };+ }++ // ── Notifications ───────────────────────────────────────────────────────+ async function notifications({ before } = {}) {+ const qs = new URLSearchParams({ limit: '30' });+ if (before) qs.set('before', before);+ const body = await session.request(`/api/notifications?${qs}`);+ return {+ items: (body?.notifications || []).map(describeNotification),+ unread: Number(body?.unread_count || 0),+ hasMore: Boolean(body?.has_more),+ };+ }++ async function markRead(id) {+ return session.request(`/api/notifications/${enc(id)}/read`, { method: 'POST' });+ }++ async function markAllRead() {+ return session.request('/api/notifications/read-all', { method: 'POST' });+ }++ return {+ capabilities, resetCapabilities,+ listAgents, setAgentStatus,+ chatHistory, sendChat,+ listRuns, runDetail, createRun, cancelRun, streamRun,+ wallet, dismissProposal,+ notifications, markRead, markAllRead,+ };+}diff --git a/apps/desktop/src/main/editors.js b/apps/desktop/src/main/editors.jsnew file mode 100644index 000000000..1cf77c1c8--- /dev/null+++ b/apps/desktop/src/main/editors.js@@ -0,0 +1,206 @@+// "Connect your editor": writes the three.ws hosted MCP servers into every+// coding client on this machine, in each client's own config format.+//+// No credential is ever written. Each client runs the MCP OAuth flow itself+// the first time it calls a server (the 401 from /api/mcp points it at+// /.well-known/oauth-protected-resource), so the person approves each editor+// by name on the three.ws consent screen and can revoke it from+// /dashboard/connections without touching this app's own session.+//+// Clients that speak Streamable HTTP get the URL directly. The ones whose+// config only launches a local process (Claude Desktop, Codex) get the+// `mcp-remote` stdio bridge, which does the same OAuth dance.+//+// Electron-free: `home`, `platform`, `env` and the fs are injected so the+// tests can run every client format against a temp directory.++import { readFileSync, writeFileSync, mkdirSync, existsSync, copyFileSync, renameSync, statSync } from 'node:fs';+import { join, dirname } from 'node:path';+import { parse as parseToml, stringify as stringifyToml } from 'smol-toml';++export function mcpServers(apiBase = 'https://three.ws') {+ return [+ { key: 'three-ws', name: 'three.ws', url: `${apiBase}/api/mcp`, auth: 'oauth', about: 'Avatars, agents, memory and glTF tools' },+ { key: 'three-ws-agent', name: 'Agent wallet', url: `${apiBase}/api/mcp-agent`, auth: 'oauth', about: 'Your agent wallet: balances, services, payments' },+ { key: 'three-ws-3d', name: '3D Studio', url: `${apiBase}/api/mcp-3d`, auth: 'oauth', about: 'Text and image to 3D, rigging, optimization' },+ { key: 'three-ws-studio', name: '3D Studio (free)', url: `${apiBase}/api/mcp-studio`, auth: 'none', about: 'Free text to 3D and rigged avatars, no sign-in' },+ ];+}++const remoteBridge = (url) => ({ command: 'npx', args: ['-y', 'mcp-remote', url] });++function appData({ home, platform, env }) {+ if (platform === 'darwin') return join(home, 'Library', 'Application Support');+ if (platform === 'win32') return env.APPDATA || join(home, 'AppData', 'Roaming');+ return env.XDG_CONFIG_HOME || join(home, '.config');+}++// Each client: where its config lives, how to tell it is installed, and how to+// write (and remove) one server entry in its format.+export function editorClients(ctx) {+ const { home } = ctx;+ const ad = appData(ctx);+ const jsonMap = (file, rootKey, entryFor) => ({ file, format: 'json', rootKey, entryFor });+ return [+ {+ id: 'claude-code',+ name: 'Claude Code',+ detect: [join(home, '.claude.json'), join(home, '.claude')],+ ...jsonMap(join(home, '.claude.json'), 'mcpServers', (s) => ({ type: 'http', url: s.url })),+ },+ {+ id: 'claude-desktop',+ name: 'Claude Desktop',+ detect: [join(ad, 'Claude')],+ ...jsonMap(join(ad, 'Claude', 'claude_desktop_config.json'), 'mcpServers', (s) => remoteBridge(s.url)),+ },+ {+ id: 'cursor',+ name: 'Cursor',+ detect: [join(home, '.cursor')],+ ...jsonMap(join(home, '.cursor', 'mcp.json'), 'mcpServers', (s) => ({ url: s.url })),+ },+ {+ id: 'windsurf',+ name: 'Windsurf',+ detect: [join(home, '.codeium', 'windsurf')],+ ...jsonMap(join(home, '.codeium', 'windsurf', 'mcp_config.json'), 'mcpServers', (s) => ({ serverUrl: s.url })),+ },+ {+ id: 'vscode',+ name: 'VS Code',+ detect: [join(ad, 'Code', 'User')],+ ...jsonMap(join(ad, 'Code', 'User', 'mcp.json'), 'servers', (s) => ({ type: 'http', url: s.url })),+ },+ {+ id: 'gemini',+ name: 'Gemini CLI',+ detect: [join(home, '.gemini')],+ ...jsonMap(join(home, '.gemini', 'settings.json'), 'mcpServers', (s) => ({ httpUrl: s.url })),+ },+ {+ id: 'codex',+ name: 'Codex',+ detect: [join(home, '.codex')],+ file: join(home, '.codex', 'config.toml'),+ format: 'toml',+ rootKey: 'mcp_servers',+ entryFor: (s) => remoteBridge(s.url),+ },+ ];+}++function readConfig(client) {+ if (!existsSync(client.file)) return {};+ const raw = readFileSync(client.file, 'utf8');+ if (!raw.trim()) return {};+ try {+ return client.format === 'toml' ? parseToml(raw) : JSON.parse(raw);+ } catch (err) {+ const e = new Error(`${client.name}'s config at ${client.file} is not valid ${client.format.toUpperCase()}, so it was left untouched. Fix it and try again. (${err.message})`);+ e.code = 'invalid_config';+ throw e;+ }+}++function writeConfig(client, data) {+ mkdirSync(dirname(client.file), { recursive: true });+ // One backup, taken the first time this app edits the file, so the+ // person's original is always recoverable.+ const backup = `${client.file}.three-ws.bak`;+ if (existsSync(client.file) && !existsSync(backup)) copyFileSync(client.file, backup);+ const text = client.format === 'toml' ? `${stringifyToml(data)}\n` : `${JSON.stringify(data, null, 2)}\n`;+ let mode;+ try {+ mode = statSync(client.file).mode & 0o777;+ } catch {+ mode = 0o600;+ }+ const tmp = `${client.file}.${process.pid}.tmp`;+ writeFileSync(tmp, text, { mode });+ renameSync(tmp, client.file);+}++function installed(client) {+ return client.detect.some((p) => existsSync(p));+}++export function detectEditors(ctx, apiBase) {+ const servers = mcpServers(apiBase);+ return editorClients(ctx).map((client) => {+ let configured = [];+ let error = null;+ try {+ const root = readConfig(client)[client.rootKey] || {};+ configured = servers.filter((s) => root[s.key]).map((s) => s.key);+ } catch (err) {+ error = err.message;+ }+ return {+ id: client.id,+ name: client.name,+ installed: installed(client),+ configPath: client.file,+ configured,+ total: servers.length,+ error,+ };+ });+}++// Claude Code rewrites ~/.claude.json constantly while it runs, so when its+// CLI is on the PATH (`ctx.claudeCli` runs it) the entry goes in through+// `claude mcp add`, which owns that file. Editing the file is the fallback.+async function connectViaClaudeCli(ctx, client, servers) {+ for (const s of servers) {+ await ctx.claudeCli(['mcp', 'remove', '--scope', 'user', s.key]).catch(() => {});+ await ctx.claudeCli(['mcp', 'add', '--transport', 'http', '--scope', 'user', s.key, s.url]);+ }+ return { id: client.id, name: client.name, configPath: client.file, added: servers.map((s) => s.key), via: 'claude mcp add' };+}++export async function connectEditor(ctx, clientId, apiBase, serverKeys) {+ const client = editorClients(ctx).find((c) => c.id === clientId);+ if (!client) throw new Error(`Unknown client: ${clientId}`);+ const servers = mcpServers(apiBase).filter((s) => !serverKeys || serverKeys.includes(s.key));+ if (client.id === 'claude-code' && ctx.claudeCli) {+ try {+ return await connectViaClaudeCli(ctx, client, servers);+ } catch {+ // The CLI is missing or refused; the file write below is equivalent.+ }+ }+ const data = readConfig(client);+ const root = { ...(data[client.rootKey] || {}) };+ for (const s of servers) root[s.key] = client.entryFor(s);+ writeConfig(client, { ...data, [client.rootKey]: root });+ return { id: client.id, name: client.name, configPath: client.file, added: servers.map((s) => s.key) };+}++export async function disconnectEditor(ctx, clientId, apiBase) {+ const client = editorClients(ctx).find((c) => c.id === clientId);+ if (!client) throw new Error(`Unknown client: ${clientId}`);+ if (client.id === 'claude-code' && ctx.claudeCli) {+ try {+ const removed = [];+ for (const s of mcpServers(apiBase)) {+ await ctx.claudeCli(['mcp', 'remove', '--scope', 'user', s.key]).then(() => removed.push(s.key), () => {});+ }+ if (removed.length) return { id: client.id, name: client.name, removed, via: 'claude mcp remove' };+ } catch {+ // Fall through to the file edit.+ }+ }+ if (!existsSync(client.file)) return { id: client.id, removed: [] };+ const data = readConfig(client);+ const root = { ...(data[client.rootKey] || {}) };+ const removed = [];+ for (const s of mcpServers(apiBase)) {+ if (root[s.key]) {+ delete root[s.key];+ removed.push(s.key);+ }+ }+ if (removed.length) writeConfig(client, { ...data, [client.rootKey]: root });+ return { id: client.id, name: client.name, removed };+}diff --git a/apps/desktop/src/main/notifier.js b/apps/desktop/src/main/notifier.jsnew file mode 100644index 000000000..6e689e38d--- /dev/null+++ b/apps/desktop/src/main/notifier.js@@ -0,0 +1,77 @@+// Polls the account inbox and hands genuinely new notifications to the OS.+//+// The platform has no notification stream, so this polls /api/notifications on+// a relaxed interval (faster while the console is focused, slower in the+// tray). The first poll after sign-in only records what is already there:+// launching the app must not replay a backlog as a burst of OS toasts.++export function createNotifier({ api, onNew, onUnread = () => {}, focusedMs = 20_000, idleMs = 60_000, setTimer = setTimeout, clearTimer = clearTimeout }) {+ const seen = new Set();+ let primed = false;+ let timer = null;+ let running = false;+ let focused = false;+ let lastUnread = null;++ async function poll() {+ const { items, unread } = await api.notifications();+ if (unread !== lastUnread) {+ lastUnread = unread;+ onUnread(unread);+ }+ const fresh = [];+ for (const n of items) {+ if (seen.has(n.id)) continue;+ seen.add(n.id);+ if (primed && !n.read) fresh.push(n);+ }+ primed = true;+ // Oldest first, so the OS stacks them in the order they happened.+ for (const n of fresh.reverse()) onNew(n);+ return fresh.length;+ }++ function schedule() {+ clearTimer(timer);+ if (!running) return;+ timer = setTimer(tick, focused ? focusedMs : idleMs);+ }++ async function tick() {+ try {+ await poll();+ } catch (err) {+ if (err?.code === 'signed_out') {+ stop();+ return;+ }+ // Offline or a 5xx: try again on the next interval.+ }+ schedule();+ }++ function start() {+ if (running) return;+ running = true;+ tick();+ }++ function stop() {+ running = false;+ clearTimer(timer);+ timer = null;+ seen.clear();+ primed = false;+ lastUnread = null;+ }++ function setFocused(value) {+ const next = Boolean(value);+ if (next === focused) return;+ focused = next;+ if (running && focused) tick();+ else schedule();+ }++ return { start, stop, poll, setFocused, get running() { return running; } };+}diff --git a/apps/desktop/src/main/oauth.js b/apps/desktop/src/main/oauth.jsnew file mode 100644index 000000000..162d687d9--- /dev/null+++ b/apps/desktop/src/main/oauth.js@@ -0,0 +1,224 @@+// OAuth 2.1 sign-in for a native app (RFC 8252), with no Electron in it so the+// whole flow is unit-testable from Node.+//+// The shape: register once as a public client whose redirect is the loopback+// IP literal, then on every sign-in bind an ephemeral port on 127.0.0.1, send+// the browser to /api/oauth/authorize with a PKCE challenge, and catch the code+// on that port. The authorization server accepts any port on a registered+// loopback IP redirect (RFC 8252 §7.3, api/oauth/[action].js), so the client+// registers exactly once per server and never burns the per-IP registration+// budget re-registering.++import { createServer } from 'node:http';+import { randomBytes, createHash } from 'node:crypto';++export const CALLBACK_PATH = '/callback';+export const REGISTERED_REDIRECT = `http://127.0.0.1${CALLBACK_PATH}`;++// What the console reads and does. `wallet:write` is here because approving a+// previewed send is a console feature; every such send still stops at the+// preview-id rule and a native confirmation (src/main/previews.js).+export const DESKTOP_SCOPES = Object.freeze([+ 'profile',+ 'offline_access',+ 'agents:read',+ 'agents:write',+ 'avatars:read',+ 'memory:read',+ 'wallet:read',+ 'wallet:write',+]);++const SIGN_IN_TIMEOUT_MS = 5 * 60_000;++function base64url(buf) {+ return Buffer.from(buf).toString('base64url');+}++export function pkcePair() {+ const verifier = base64url(randomBytes(32));+ const challenge = base64url(createHash('sha256').update(verifier).digest());+ return { verifier, challenge };+}++export function randomState() {+ return base64url(randomBytes(16));+}++async function readOAuthJson(res, what) {+ let body = null;+ try {+ body = await res.json();+ } catch {+ body = null;+ }+ if (!res.ok) {+ const code = body?.error || `http_${res.status}`;+ const detail = body?.error_description || body?.message || res.statusText;+ const err = new Error(`${what} failed: ${detail}`);+ err.code = code;+ err.status = res.status;+ throw err;+ }+ return body || {};+}++export async function registerClient({ apiBase, version, fetchImpl = fetch }) {+ const res = await fetchImpl(`${apiBase}/api/oauth/register`, {+ method: 'POST',+ headers: { 'content-type': 'application/json' },+ body: JSON.stringify({+ client_name: 'three.ws Desktop',+ client_uri: 'https://three.ws/desktop',+ logo_uri: 'https://three.ws/apple-touch-icon.png',+ redirect_uris: [REGISTERED_REDIRECT],+ token_endpoint_auth_method: 'none',+ grant_types: ['authorization_code', 'refresh_token'],+ response_types: ['code'],+ scope: DESKTOP_SCOPES.join(' '),+ software_id: 'ws.three.desktop',+ software_version: String(version || '0.0.0'),+ }),+ });+ const body = await readOAuthJson(res, 'Client registration');+ if (!body.client_id) throw new Error('Client registration returned no client_id');+ return { clientId: body.client_id, scope: body.scope || DESKTOP_SCOPES.join(' ') };+}++export function buildAuthorizeUrl({ apiBase, clientId, redirectUri, challenge, state, scope }) {+ const url = new URL('/api/oauth/authorize', apiBase);+ url.search = new URLSearchParams({+ response_type: 'code',+ client_id: clientId,+ redirect_uri: redirectUri,+ scope: scope || DESKTOP_SCOPES.join(' '),+ state,+ code_challenge: challenge,+ code_challenge_method: 'S256',+ }).toString();+ return url.toString();+}++const DONE_PAGE = (title, line) => `<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>${title}</title><style>:root{color-scheme:dark light}body{margin:0;min-height:100vh;display:grid;place-items:center;font:15px/1.5 -apple-system,system-ui,Segoe UI,Roboto,sans-serif;background:#0d0d10;color:#e7e9ee}@media (prefers-color-scheme:light){body{background:#f5f5f7;color:#111}}.card{max-width:380px;padding:28px;text-align:center}h1{font-size:19px;margin:0 0 8px}p{margin:0;opacity:.7}</style></head><body><div class="card"><h1>${title}</h1><p>${line}</p></div></body></html>`;++function escapeHtml(s) {+ return String(s).replace(/[&<>"']/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' })[c]);+}++// Binds 127.0.0.1 on a port the OS picks and resolves with the authorization+// code once the browser comes back with a matching `state`. Any other request+// to the port gets a 404 and changes nothing.+export function listenForCallback({ state, timeoutMs = SIGN_IN_TIMEOUT_MS } = {}) {+ return new Promise((resolveListen, rejectListen) => {+ let settle;+ const codePromise = new Promise((resolve, reject) => {+ settle = { resolve, reject };+ });+ const server = createServer((req, res) => {+ const url = new URL(req.url, 'http://127.0.0.1');+ if (url.pathname !== CALLBACK_PATH) {+ res.writeHead(404).end();+ return;+ }+ const send = (status, title, line) => {+ res.writeHead(status, { 'content-type': 'text/html; charset=utf-8', 'cache-control': 'no-store' });+ res.end(DONE_PAGE(escapeHtml(title), escapeHtml(line)));+ };+ if (url.searchParams.get('state') !== state) {+ send(400, 'Sign-in did not match', 'This link belongs to a different sign-in attempt. Start again from the app.');+ return;+ }+ const oauthError = url.searchParams.get('error');+ if (oauthError) {+ send(200, 'Sign-in cancelled', 'Nothing was shared. You can close this tab.');+ const err = new Error(oauthError === 'access_denied' ? 'You cancelled the sign-in.' : `Sign-in failed: ${oauthError}`);+ err.code = oauthError;+ finish(err);+ return;+ }+ const code = url.searchParams.get('code');+ if (!code) {+ send(400, 'Sign-in failed', 'The server sent no authorization code. Start again from the app.');+ finish(new Error('The server returned no authorization code.'));+ return;+ }+ send(200, 'You are signed in', 'Return to three.ws Desktop. You can close this tab.');+ finish(null, code);+ });++ let timer = null;+ let done = false;+ function finish(err, code) {+ if (done) return;+ done = true;+ clearTimeout(timer);+ server.close();+ if (err) settle.reject(err);+ else settle.resolve(code);+ }++ server.on('error', (err) => rejectListen(err));+ server.listen(0, '127.0.0.1', () => {+ const { port } = server.address();+ timer = setTimeout(() => {+ const err = new Error('Sign-in timed out. Start again from the app.');+ err.code = 'timeout';+ finish(err);+ }, timeoutMs);+ resolveListen({+ redirectUri: `http://127.0.0.1:${port}${CALLBACK_PATH}`,+ code: codePromise,+ cancel: () => {+ const err = new Error('Sign-in cancelled.');+ err.code = 'cancelled';+ finish(err);+ },+ });+ });+ });+}++function tokenSet(body) {+ if (!body.access_token) throw new Error('The token endpoint returned no access token');+ return {+ accessToken: body.access_token,+ refreshToken: body.refresh_token || null,+ scope: body.scope || '',+ expiresAt: Date.now() + Number(body.expires_in || 3600) * 1000,+ };+}++async function postForm(url, form, fetchImpl) {+ return fetchImpl(url, {+ method: 'POST',+ headers: { 'content-type': 'application/x-www-form-urlencoded', accept: 'application/json' },+ body: new URLSearchParams(form).toString(),+ });+}++export async function exchangeCode({ apiBase, clientId, code, redirectUri, verifier, fetchImpl = fetch }) {+ const res = await postForm(`${apiBase}/api/oauth/token`, {+ grant_type: 'authorization_code',+ client_id: clientId,+ code,+ redirect_uri: redirectUri,+ code_verifier: verifier,+ }, fetchImpl);+ return tokenSet(await readOAuthJson(res, 'Sign-in'));+}++// Refresh tokens rotate on every use (api/_lib/auth.js rotateRefreshToken), so+// the caller must persist the returned set before using it.+export async function refreshTokens({ apiBase, clientId, refreshToken, fetchImpl = fetch }) {+ const res = await postForm(`${apiBase}/api/oauth/token`, {+ grant_type: 'refresh_token',+ client_id: clientId,+ refresh_token: refreshToken,+ }, fetchImpl);+ return tokenSet(await readOAuthJson(res, 'Session refresh'));+}++export async function revokeToken({ apiBase, clientId, token, fetchImpl = fetch }) {+ const res = await postForm(`${apiBase}/api/oauth/revoke`, { client_id: clientId, token }, fetchImpl);+ return res.ok;+}diff --git a/apps/desktop/src/main/previews.js b/apps/desktop/src/main/previews.jsnew file mode 100644index 000000000..ccf25ad38--- /dev/null+++ b/apps/desktop/src/main/previews.js@@ -0,0 +1,178 @@+// The preview-id rule for anything that moves money or takes an irreversible+// action from the console.+//+// 1. A preview is created here, in the main process, from a live server-side+// simulation or dry run. The exact request that would execute it is stored+// next to it under a random `previewId`.+// 2. The renderer only ever holds the id. Approving sends the id and nothing+// else, so a compromised or buggy renderer cannot change the recipient or+// the amount between preview and execution.+// 3. An id is single use and expires (PREVIEW_TTL_MS). An expired preview has+// to be re-run, which re-reads the balance and the price.+// 4. Before a financial preview executes, `confirm` (a native OS dialog built+// from the stored summary, not from anything the renderer sent) asks the+// person one last time.+//+// The renderer's generic data channel refuses the executing endpoints outright+// (isGuardedPath below), so this module is the only way to reach them.++import { randomBytes, randomUUID } from 'node:crypto';++export const PREVIEW_TTL_MS = 120_000;++const GUARDED = [+ /^\/api\/agents\/[^/]+\/(solana|wallet)\/(withdraw|trade|send)(\/|$|\?)/,+ /^\/api\/agents\/[^/]+\/trade(\/|$|\?)/,+ /^\/api\/agents\/[^/]+\/intents\/run(\/|$|\?)/,+ /^\/api\/agents\/(agent-trade|solana-trade)(\/|$|\?)/,+ /^\/api\/agent\/send-sol(\/|$|\?)/,+];++// True for a path the renderer may not call directly with a mutating method.+export function isGuardedPath(path, method = 'GET') {+ const m = String(method).toUpperCase();+ if (m === 'GET' || m === 'HEAD') return false;+ const p = String(path);+ if (GUARDED.some((re) => re.test(p))) return true;+ // Autopilot: reading and dismissing are free; executing is a preview action.+ return /^\/api\/autopilot\/proposals(\?|$)/.test(p);+}++const newId = () => `pv_${randomBytes(12).toString('base64url')}`;++function pickSignature(result) {+ const r = result?.data || result || {};+ return r.signature || r.receipt?.signature || r.action?.signature || null;+}++function explorerFor(result, signature, network) {+ const r = result?.data || result || {};+ if (r.explorer) return r.explorer;+ if (r.receipt?.explorer) return r.receipt.explorer;+ if (!signature) return null;+ return `https://solscan.io/tx/${signature}${network === 'devnet' ? '?cluster=devnet' : ''}`;+}++export function createPreviewRegistry({ request, confirm, now = Date.now, ttlMs = PREVIEW_TTL_MS, idFactory = newId }) {+ const previews = new Map();++ function sweep() {+ const t = now();+ for (const [id, p] of previews) if (p.expiresAt <= t) previews.delete(id);+ }++ function publicView(p) {+ return { previewId: p.id, kind: p.kind, agentId: p.agentId, financial: p.financial, expiresAt: p.expiresAt, summary: p.summary };+ }++ async function previewWithdraw({ agentId, destination, amount, network = 'mainnet' }) {+ const dest = String(destination || '').trim();+ const amt = String(amount ?? '').trim();+ if (!dest) throw new Error('Enter the address to send to.');+ if (amt !== 'max' && !(Number(amt) > 0)) throw new Error('Enter an amount greater than zero, or send the maximum.');+ const net = network === 'devnet' ? 'devnet' : 'mainnet';+ const base = { destination: dest, amount: amt === 'max' ? 'max' : Number(amt), asset: 'SOL', network: net };+ const path = `/api/agents/${encodeURIComponent(agentId)}/solana/withdraw`;+ const sim = await request(path, { method: 'POST', body: { ...base, simulate: true } });+ const d = sim?.data || {};+ return {+ financial: true,+ summary: {+ action: 'Send SOL from the agent wallet',+ recipient: d.destination || dest,+ amount: d.amount != null ? String(d.amount) : String(base.amount),+ token: 'SOL',+ chain: net === 'devnet' ? 'Solana devnet' : 'Solana mainnet',+ usd: d.usd ?? null,+ note: d.note || null,+ simulationError: d.err ? JSON.stringify(d.err) : null,+ computeUnits: d.units_consumed ?? null,+ network: net,+ },+ execute: { path, body: { ...base, idempotency_key: randomUUID() } },+ };+ }++ async function previewProposal({ agentId, proposalId }) {+ // The dry run answers with checks only; the recipient and amount the+ // confirmation must show come from the proposal row itself.+ const list = await request(`/api/autopilot/proposals?agentId=${encodeURIComponent(agentId)}&status=pending`);+ const proposal = (list?.proposals || []).find((row) => row.id === proposalId);+ if (!proposal) throw new Error('That proposal is no longer pending.');+ const res = await request('/api/autopilot/proposals', { method: 'POST', body: { agentId, action: 'dryrun', proposalId } });+ const p = { kind: proposal.kind, ...(res?.preview || {}) };+ const financial = p.kind === 'wallet_transfer';+ const params = proposal?.params || {};+ return {+ financial,+ summary: {+ action: p.willDo || 'Run this proposal',+ kind: p.kind || null,+ checks: Array.isArray(p.checks) ? p.checks.map((c) => ({ label: String(c.label), ok: Boolean(c.ok), detail: c.detail ? String(c.detail) : '' })) : [],+ blocked: Boolean(p.blocked),+ ...(financial ? {+ recipient: params.recipient || null,+ amount: params.amount_sol != null ? String(params.amount_sol) : null,+ token: 'SOL',+ chain: 'Solana mainnet',+ network: 'mainnet',+ } : {}),+ },+ execute: { path: '/api/autopilot/proposals', body: { agentId, action: 'execute', proposalId, confirm: true } },+ };+ }++ async function create(kind, input = {}) {+ sweep();+ if (!input.agentId) throw new Error('Pick an agent first.');+ let built;+ if (kind === 'withdraw') built = await previewWithdraw(input);+ else if (kind === 'proposal') built = await previewProposal(input);+ else throw new Error(`Unknown preview kind: ${kind}`);+ const p = { id: idFactory(), kind, agentId: input.agentId, createdAt: now(), expiresAt: now() + ttlMs, ...built };+ previews.set(p.id, p);+ return publicView(p);+ }++ async function approve(previewId) {+ sweep();+ const p = previews.get(previewId);+ if (!p) {+ const err = new Error('This preview expired or was already used. Preview it again to see the current numbers.');+ err.code = 'preview_expired';+ throw err;+ }+ // Single use from this point on, whatever happens next.+ previews.delete(previewId);+ if (p.summary.blocked) {+ const err = new Error('The dry run found a check that fails, so nothing was sent. Fix it and preview again.');+ err.code = 'preview_blocked';+ throw err;+ }+ if (p.financial) {+ const ok = await confirm(p.summary);+ if (!ok) return { status: 'cancelled', previewId };+ }+ const result = await request(p.execute.path, { method: 'POST', body: p.execute.body });+ const signature = pickSignature(result);+ return {+ status: 'executed',+ previewId,+ signature,+ explorer: explorerFor(result, signature, p.summary.network),+ result: result?.data || result,+ };+ }++ function cancel(previewId) {+ return { status: 'cancelled', previewId, existed: previews.delete(previewId) };+ }++ function get(previewId) {+ sweep();+ const p = previews.get(previewId);+ return p ? publicView(p) : null;+ }++ return { create, approve, cancel, get, size: () => (sweep(), previews.size) };+}diff --git a/apps/desktop/src/main/secure-store.js b/apps/desktop/src/main/secure-store.jsnew file mode 100644index 000000000..a2ccd6d0d--- /dev/null+++ b/apps/desktop/src/main/secure-store.js@@ -0,0 +1,58 @@+// One JSON object on disk, encrypted with the OS keychain when the platform+// offers one (Keychain on macOS, DPAPI on Windows, libsecret/kwallet on Linux)+// through Electron's safeStorage. With no keychain the file is still written+// owner-only (0600), and `encrypted` in the status says so.++import { readFileSync, writeFileSync, rmSync, mkdirSync, renameSync } from 'node:fs';+import { dirname } from 'node:path';++const MAGIC_ENCRYPTED = 'tws1:';+const MAGIC_PLAIN = 'tws0:';++export function createSecureStore({ file, safeStorage }) {+ const canEncrypt = () => {+ try {+ return Boolean(safeStorage?.isEncryptionAvailable());+ } catch {+ return false;+ }+ };++ function read() {+ let raw;+ try {+ raw = readFileSync(file, 'utf8');+ } catch {+ return null;+ }+ try {+ if (raw.startsWith(MAGIC_ENCRYPTED)) {+ if (!canEncrypt()) return null;+ return JSON.parse(safeStorage.decryptString(Buffer.from(raw.slice(MAGIC_ENCRYPTED.length), 'base64')));+ }+ if (raw.startsWith(MAGIC_PLAIN)) return JSON.parse(raw.slice(MAGIC_PLAIN.length));+ } catch {+ // A file encrypted under another OS user or a wiped keychain cannot be+ // read back: treat it as signed out rather than crash on launch.+ return null;+ }+ return null;+ }++ function write(value) {+ const json = JSON.stringify(value);+ const payload = canEncrypt()+ ? MAGIC_ENCRYPTED + safeStorage.encryptString(json).toString('base64')+ : MAGIC_PLAIN + json;+ mkdirSync(dirname(file), { recursive: true });+ const tmp = `${file}.${process.pid}.tmp`;+ writeFileSync(tmp, payload, { mode: 0o600 });+ renameSync(tmp, file);+ }++ function clear() {+ rmSync(file, { force: true });+ }++ return { read, write, clear, encrypted: canEncrypt };+}diff --git a/apps/desktop/src/main/session.js b/apps/desktop/src/main/session.jsnew file mode 100644index 000000000..dc6586522--- /dev/null+++ b/apps/desktop/src/main/session.js@@ -0,0 +1,217 @@+// The signed-in session: who you are, which server, and the tokens that prove+// it. Electron-free; the caller injects a `store` (read/write/clear of one JSON+// object, encrypted at rest by src/main/secure-store.js) and an `openBrowser`.+//+// The renderer never sees a token. It asks the main process for data, and the+// main process attaches the bearer here, refreshes it a minute before expiry,+// and retries a request once if the server says the token went stale.++import {+ registerClient, listenForCallback, pkcePair, randomState,+ buildAuthorizeUrl, exchangeCode, refreshTokens, revokeToken,+} from './oauth.js';++export const DEFAULT_API_BASE = 'https://three.ws';+const REFRESH_SKEW_MS = 60_000;++export class AuthError extends Error {+ constructor(message, code = 'signed_out') {+ super(message);+ this.code = code;+ this.status = 401;+ }+}++export class ApiError extends Error {+ constructor(message, { status, code, details } = {}) {+ super(message);+ this.status = status;+ this.code = code || `http_${status}`;+ this.details = details || null;+ }+}++export function normalizeApiBase(value) {+ const raw = String(value || '').trim() || DEFAULT_API_BASE;+ const url = new URL(raw);+ if (url.protocol !== 'https:' && !['127.0.0.1', 'localhost', '[::1]'].includes(url.hostname)) {+ throw new Error('The server must use https (plain http is allowed only for a local development server).');+ }+ return url.origin;+}++// Both error envelopes the platform speaks: the v1 `{ error: { code, message } }`+// and the older flat `{ error: 'code', error_description | message }`.+export function errorFromBody(status, body, fallback) {+ const e = body?.error;+ if (e && typeof e === 'object') return new ApiError(e.message || fallback, { status, code: e.code, details: e.details });+ const message = body?.error_description || body?.message || (typeof e === 'string' ? e.replace(/_/g, ' ') : null) || fallback;+ return new ApiError(message, { status, code: typeof e === 'string' ? e : undefined, details: body?.details });+}++export function createSession({ store, version, openBrowser, fetchImpl = fetch, onChange = () => {} }) {+ let state = store.read() || {};+ let refreshing = null;+ let pendingSignIn = null;++ const apiBase = () => state.apiBase || DEFAULT_API_BASE;++ function save(next) {+ state = next;+ if (state.accessToken || state.clientId) store.write(state);+ else store.clear();+ onChange(status());+ }++ function status() {+ return {+ signedIn: Boolean(state.accessToken),+ apiBase: apiBase(),+ user: state.user || null,+ scope: state.scope || '',+ signingIn: Boolean(pendingSignIn),+ };+ }++ async function ensureClient(base) {+ if (state.clientId && state.clientApiBase === base) return state.clientId;+ const { clientId } = await registerClient({ apiBase: base, version, fetchImpl });+ state = { ...state, clientId, clientApiBase: base };+ store.write(state);+ return clientId;+ }++ async function signIn({ apiBase: requestedBase } = {}) {+ if (pendingSignIn) return pendingSignIn.promise;+ const base = normalizeApiBase(requestedBase || apiBase());+ const run = (async () => {+ const clientId = await ensureClient(base);+ const { verifier, challenge } = pkcePair();+ const stateParam = randomState();+ const listener = await listenForCallback({ state: stateParam });+ pendingSignIn.cancel = listener.cancel;+ onChange(status());+ await openBrowser(buildAuthorizeUrl({ apiBase: base, clientId, redirectUri: listener.redirectUri, challenge, state: stateParam }));+ const code = await listener.code;+ const tokens = await exchangeCode({ apiBase: base, clientId, code, redirectUri: listener.redirectUri, verifier, fetchImpl });+ state = { ...state, apiBase: base, ...tokens, user: null };+ store.write(state);+ const user = await loadUser();+ save({ ...state, user });+ return status();+ })();+ pendingSignIn = { promise: run, cancel: null };+ onChange(status());+ try {+ return await run;+ } finally {+ pendingSignIn = null;+ onChange(status());+ }+ }++ function cancelSignIn() {+ pendingSignIn?.cancel?.();+ }++ async function loadUser() {+ const body = await request('/api/me');+ const u = body?.user || {};+ return {+ id: u.id || null,+ name: u.display_name || u.username || u.handle || 'Your account',+ username: u.username || u.handle || null,+ avatarUrl: u.avatar_url || null,+ };+ }++ async function refresh() {+ if (refreshing) return refreshing;+ refreshing = (async () => {+ if (!state.refreshToken || !state.clientId) {+ save({ clientId: state.clientId, clientApiBase: state.clientApiBase, apiBase: apiBase() });+ throw new AuthError('Your session ended. Sign in again.');+ }+ try {+ const tokens = await refreshTokens({ apiBase: apiBase(), clientId: state.clientId, refreshToken: state.refreshToken, fetchImpl });+ save({ ...state, ...tokens });+ } catch (err) {+ // A 400 invalid_grant means the refresh token was revoked or already+ // rotated elsewhere: the session is over. Anything else (offline, a 5xx)+ // keeps the session so the next request can try again.+ if (err.status >= 400 && err.status < 500) {+ save({ clientId: state.clientId, clientApiBase: state.clientApiBase, apiBase: apiBase() });+ throw new AuthError('Your session ended. Sign in again.');+ }+ throw err;+ }+ })();+ try {+ return await refreshing;+ } finally {+ refreshing = null;+ }+ }++ async function authorizedFetch(path, init = {}) {+ if (!state.accessToken) throw new AuthError('Sign in to continue.');+ if (!String(path).startsWith('/api/')) throw new ApiError('Only /api paths are reachable', { status: 400, code: 'bad_path' });+ if (state.expiresAt && state.expiresAt - REFRESH_SKEW_MS < Date.now()) await refresh();+ const attempt = () => fetchImpl(`${apiBase()}${path}`, {+ ...init,+ headers: { accept: 'application/json', ...(init.headers || {}), authorization: `Bearer ${state.accessToken}` },+ });+ let res = await attempt();+ if (res.status === 401 && state.refreshToken) {+ await refresh();+ res = await attempt();+ }+ if (res.status === 401) {+ save({ clientId: state.clientId, clientApiBase: state.clientApiBase, apiBase: apiBase() });+ throw new AuthError('Your session ended. Sign in again.');+ }+ return res;+ }++ // JSON request. Throws ApiError with the server's own message on a non-2xx.+ async function request(path, { method = 'GET', body, signal } = {}) {+ const res = await authorizedFetch(path, {+ method,+ signal,+ ...(body !== undefined ? { body: JSON.stringify(body), headers: { 'content-type': 'application/json' } } : {}),+ });+ let parsed = null;+ const text = await res.text();+ if (text) {+ try {+ parsed = JSON.parse(text);+ } catch {+ parsed = null;+ }+ }+ if (!res.ok) throw errorFromBody(res.status, parsed, `${method} ${path} failed with ${res.status}`);+ return parsed;+ }++ async function signOut() {+ const { refreshToken, accessToken, clientId } = state;+ save({ clientId: state.clientId, clientApiBase: state.clientApiBase, apiBase: apiBase() });+ // Revocation is best effort: the local session is already gone, and an+ // offline machine must still be able to sign out.+ const base = apiBase();+ await Promise.allSettled([+ refreshToken && clientId ? revokeToken({ apiBase: base, clientId, token: refreshToken, fetchImpl }) : null,+ accessToken && clientId ? revokeToken({ apiBase: base, clientId, token: accessToken, fetchImpl }) : null,+ ]);+ return status();+ }++ async function refreshUser() {+ if (!state.accessToken) return status();+ const user = await loadUser();+ save({ ...state, user });+ return status();+ }++ return { status, signIn, cancelSignIn, signOut, request, authorizedFetch, refreshUser, apiBase };+}diff --git a/apps/desktop/src/main/sse.js b/apps/desktop/src/main/sse.jsnew file mode 100644index 000000000..fccaf7058--- /dev/null+++ b/apps/desktop/src/main/sse.js@@ -0,0 +1,74 @@+// A small Server-Sent Events reader over a fetch Response body, for the chat+// and run streams. Handles both frame styles the platform emits: data-only+// frames carrying a JSON `type` (POST /api/chat) and named `event:` frames+// (the v1 run stream). Comment lines (`: tool swap_quote`) are surfaced too,+// because /api/agent/run reports tool activity that way.++export function createSseParser(onEvent) {+ let buffer = '';+ let event = null;+ let data = [];++ function dispatch() {+ if (!data.length && !event) return;+ const raw = data.join('\n');+ let json = null;+ try {+ json = raw ? JSON.parse(raw) : null;+ } catch {+ json = null;+ }+ onEvent({ event: event || 'message', data: raw, json });+ event = null;+ data = [];+ }++ function line(l) {+ if (l === '') return dispatch();+ if (l.startsWith(':')) {+ onEvent({ event: 'comment', data: l.slice(1).trim(), json: null });+ return;+ }+ const idx = l.indexOf(':');+ const field = idx === -1 ? l : l.slice(0, idx);+ let value = idx === -1 ? '' : l.slice(idx + 1);+ if (value.startsWith(' ')) value = value.slice(1);+ if (field === 'event') event = value;+ else if (field === 'data') data.push(value);+ }++ return {+ push(chunk) {+ buffer += chunk;+ let nl;+ while ((nl = buffer.search(/\r\n|\n|\r/)) !== -1) {+ const l = buffer.slice(0, nl);+ buffer = buffer.slice(nl + (buffer[nl] === '\r' && buffer[nl + 1] === '\n' ? 2 : 1));+ line(l);+ }+ },+ end() {+ if (buffer) line(buffer);+ buffer = '';+ dispatch();+ },+ };+}++export async function readSse(response, onEvent, { signal } = {}) {+ const parser = createSseParser(onEvent);+ const reader = response.body.getReader();+ const decoder = new TextDecoder();+ const abort = () => reader.cancel().catch(() => {});+ signal?.addEventListener('abort', abort, { once: true });+ try {+ for (;;) {+ const { done, value } = await reader.read();+ if (done) break;+ parser.push(decoder.decode(value, { stream: true }));+ }+ parser.end();+ } finally {+ signal?.removeEventListener('abort', abort);+ }+}diff --git a/apps/desktop/src/main/updater.js b/apps/desktop/src/main/updater.jsnew file mode 100644index 000000000..44261f5f5--- /dev/null+++ b/apps/desktop/src/main/updater.js@@ -0,0 +1,61 @@+// Auto-update over the release feed that apps/desktop/cloudbuild.yaml publishes+// to the release bucket behind the three.ws CDN (https://three.ws/releases/desktop/).+// electron-builder bakes that feed into the installed app as app-update.yml+// (the `publish` block in electron-builder.config.cjs), so a packaged build+// needs no configuration here. THREE_WS_UPDATE_FEED points a build at another+// generic feed, which is how a second build is proven to update the first.++import electronUpdater from 'electron-updater';++const { autoUpdater } = electronUpdater;+const CHECK_EVERY_MS = 4 * 60 * 60 * 1000;++export function createUpdater({ app, onState }) {+ let state = { status: app.isPackaged ? 'idle' : 'unpackaged', version: app.getVersion(), available: null, progress: null, error: null };+ let interval = null;++ const set = (patch) => {+ state = { ...state, ...patch };+ onState(state);+ };++ if (app.isPackaged) {+ autoUpdater.autoDownload = true;+ autoUpdater.autoInstallOnAppQuit = true;+ autoUpdater.allowDowngrade = false;+ if (process.env.THREE_WS_UPDATE_FEED) {+ autoUpdater.setFeedURL({ provider: 'generic', url: process.env.THREE_WS_UPDATE_FEED });+ }+ autoUpdater.on('checking-for-update', () => set({ status: 'checking', error: null }));+ autoUpdater.on('update-not-available', () => set({ status: 'current', available: null, progress: null }));+ autoUpdater.on('update-available', (info) => set({ status: 'downloading', available: info?.version || null, progress: 0 }));+ autoUpdater.on('download-progress', (p) => set({ status: 'downloading', progress: Math.round(p?.percent || 0) }));+ autoUpdater.on('update-downloaded', (info) => set({ status: 'ready', available: info?.version || state.available, progress: 100 }));+ autoUpdater.on('error', (err) => set({ status: 'error', error: err?.message || String(err) }));+ }++ async function check() {+ if (!app.isPackaged) return state;+ try {+ await autoUpdater.checkForUpdates();+ } catch (err) {+ set({ status: 'error', error: err?.message || String(err) });+ }+ return state;+ }++ function start() {+ if (!app.isPackaged || interval) return;+ check();+ interval = setInterval(check, CHECK_EVERY_MS);+ }++ function installNow() {+ if (state.status !== 'ready') return false;+ // isSilent=false shows the installer UI on Windows; forceRunAfter reopens the app.+ setImmediate(() => autoUpdater.quitAndInstall(false, true));+ return true;+ }++ return { start, check, installNow, state: () => state };+}diff --git a/apps/desktop/src/shared/normalize.js b/apps/desktop/src/shared/normalize.jsnew file mode 100644index 000000000..b90dc7d1d--- /dev/null+++ b/apps/desktop/src/shared/normalize.js@@ -0,0 +1,190 @@+// Shape adapters between the platform's API responses and what the console+// renders. Pure, dependency-free, and shared by the main process and the+// renderer, so the tests exercise exactly the code that ships.+//+// Two API generations are live at once: the v1 Agents API (/api/v1/agents, runs+// and steps, `{ data, meta }` envelopes) and the routes it wraps (/api/agents,+// /api/agent-actions). Every adapter accepts both.++export function listFrom(body, ...keys) {+ if (Array.isArray(body)) return body;+ for (const k of ['data', ...keys, 'items', 'results']) {+ const v = body?.[k];+ if (Array.isArray(v)) return v;+ if (v && typeof v === 'object') {+ for (const inner of keys) if (Array.isArray(v[inner])) return v[inner];+ }+ }+ return [];+}++export function objectFrom(body, ...keys) {+ for (const k of ['data', ...keys]) {+ const v = body?.[k];+ if (v && typeof v === 'object' && !Array.isArray(v)) return v;+ }+ return body && typeof body === 'object' ? body : {};+}++const pick = (o, ...keys) => {+ for (const k of keys) if (o?.[k] != null && o[k] !== '') return o[k];+ return null;+};++export function normalizeAgent(a = {}) {+ return {+ id: String(pick(a, 'id', 'agent_id', 'agentId') || ''),+ name: String(pick(a, 'name', 'display_name') || 'Untitled agent'),+ description: pick(a, 'description', 'persona') || '',+ thumbnail: pick(a, 'avatar_thumbnail_url', 'thumbnail_url', 'thumbnailUrl', 'avatarUrl', 'image') || null,+ solanaAddress: pick(a, 'solana_address', 'solanaAddress', 'wallet_solana') || null,+ walletReady: Boolean(pick(a, 'wallet_ready', 'walletReady')),+ // `status` arrives with the v1 lifecycle (running | stopped); older rows+ // carry only publication state.+ status: pick(a, 'status') || (a.is_published === false ? 'draft' : null),+ isPublished: a.is_published !== false,+ updatedAt: pick(a, 'updated_at', 'updatedAt', 'created_at', 'createdAt'),+ homeUrl: pick(a, 'home_url', 'homeUrl') || null,+ };+}++export function normalizeAgents(body) {+ return listFrom(body, 'agents').map(normalizeAgent).filter((a) => a.id);+}++const RUN_TERMINAL = new Set(['completed', 'failed', 'cancelled', 'budget_exhausted']);++export function normalizeRun(r = {}) {+ const status = String(pick(r, 'status') || 'queued');+ return {+ id: String(pick(r, 'id', 'run_id', 'runId') || ''),+ agentId: pick(r, 'agent_id', 'agentId'),+ goal: String(pick(r, 'goal', 'title') || ''),+ status,+ terminal: RUN_TERMINAL.has(status),+ steps: Number(pick(r, 'step_count', 'stepCount', 'steps_count') || 0),+ maxSteps: Number(pick(r, 'max_steps', 'maxSteps') || 0) || null,+ spentUsd: Number(pick(r, 'spent_usd', 'spentUsd') || 0) + Number(pick(r, 'spent_credits_usd', 'spentCreditsUsd') || 0),+ budgetUsd: Number(pick(r, 'budget_usd', 'budgetUsd') || 0) + Number(pick(r, 'budget_credits_usd', 'budgetCreditsUsd') || 0),+ result: pick(r, 'result') || null,+ error: pick(r, 'error') || null,+ createdAt: pick(r, 'created_at', 'createdAt'),+ finishedAt: pick(r, 'finished_at', 'finishedAt'),+ };+}++export function normalizeRuns(body) {+ return listFrom(body, 'runs').map(normalizeRun).filter((r) => r.id);+}++function brief(value, max = 280) {+ if (value == null) return '';+ const s = typeof value === 'string' ? value : JSON.stringify(value);+ return s.length > max ? `${s.slice(0, max - 1)}…` : s;+}++export function normalizeStep(s = {}) {+ const kind = String(pick(s, 'kind', 'type', 'step_type') || 'step');+ const tool = pick(s, 'tool', 'tool_name', 'toolName', 'name');+ return {+ id: String(pick(s, 'id', 'step_id') ?? ''),+ index: Number(pick(s, 'idx', 'index', 'seq', 'step') ?? 0),+ kind,+ tool: tool ? String(tool) : null,+ title: tool ? String(tool) : kind.replace(/_/g, ' '),+ input: brief(pick(s, 'input', 'args', 'arguments', 'prompt')),+ output: brief(pick(s, 'output', 'result', 'content', 'text')),+ error: pick(s, 'error') ? brief(s.error) : null,+ costUsd: Number(pick(s, 'cost_usd', 'costUsd', 'cost') || 0),+ signature: pick(s, 'signature', 'tx_signature') || null,+ at: pick(s, 'created_at', 'createdAt', 'ts', 'timestamp'),+ };+}++export function normalizeSteps(body) {+ return listFrom(body, 'steps').map(normalizeStep);+}++// /api/agent-actions rows: the signed action log every agent writes.+export function normalizeActivity(body) {+ return listFrom(body, 'actions').map((a) => {+ const payload = a.payload || {};+ return {+ id: String(a.id),+ kind: String(a.type || 'action'),+ title: String(a.type || 'action').replace(/[._]/g, ' '),+ detail: brief(payload.summary || payload.message || payload.text || payload.title || (Object.keys(payload).length ? payload : ''), 200),+ skill: a.source_skill || null,+ signature: a.signature || null,+ at: a.created_at || null,+ };+ });+}++const NOTIFICATION_TEXT = {+ payment_received: (p) => `Payment received${p.amount_usd ? `: $${Number(p.amount_usd).toFixed(2)}` : ''}${p.agent_name ? ` by ${p.agent_name}` : ''}`,+ 'payment-earned': (p) => `Payment received${p.actor ? ` from ${p.actor}` : ''}`,+ withdrawal_completed: () => 'Your withdrawal was sent',+ withdrawal_failed: (p) => `A withdrawal failed${p.reason ? `: ${p.reason}` : ''}`,+ forge_complete: (p) => (p.prompt ? `Your 3D model "${String(p.prompt).slice(0, 60)}" is ready` : 'Your 3D model finished generating'),+ forge_failed: (p) => (p.prompt ? `Your generation "${String(p.prompt).slice(0, 60)}" failed` : 'A 3D generation failed'),+ companion_delivery: (p) => p.line || p.title || 'Something needs you',+ agent_review: (p) => (p.actor ? `${p.actor} reviewed your agent` : 'Your agent received a new review'),+ dm_received: (p) => (p.actor ? `New message from ${p.actor}` : 'You have a new message'),+ follow: (p) => (p.actor ? `${p.actor} started following you` : 'Someone started following you'),+ quest_complete: (p) => (p.mission ? `You finished "${p.mission}"` : 'You finished a quest'),+};++export function describeNotification(n = {}) {+ const p = n.payload || {};+ const type = String(n.type || 'notice');+ const text = NOTIFICATION_TEXT[type]?.(p) || p.title || p.message || p.line || type.replace(/[_-]/g, ' ');+ const title = p.agent_name || p.sender || p.actor || 'three.ws';+ let link = p.link || (p.tx_signature ? `https://solscan.io/tx/${encodeURIComponent(p.tx_signature)}` : null) || (p.agent_id ? `/agents/${encodeURIComponent(p.agent_id)}` : null);+ // Only same-site paths or https URLs: a hostile payload must not steer the+ // app into a script URL or a protocol-relative redirect.+ if (link && !(/^\/(?!\/)/.test(link) || /^https:\/\//i.test(link))) link = null;+ return {+ id: String(n.id || ''),+ type,+ title: String(title),+ text: String(text),+ link,+ read: Boolean(n.read_at),+ at: n.created_at || null,+ };+}++// "3m ago" style, with an absolute fallback past a week.+export function relativeTime(value, now = Date.now()) {+ if (!value) return '';+ const t = typeof value === 'number' ? value : Date.parse(value);+ if (!Number.isFinite(t)) return '';+ const s = Math.round((now - t) / 1000);+ if (s < 45) return 'just now';+ const m = Math.round(s / 60);+ if (m < 60) return `${m}m ago`;+ const h = Math.round(m / 60);+ if (h < 24) return `${h}h ago`;+ const d = Math.round(h / 24);+ if (d < 7) return `${d}d ago`;+ return new Date(t).toISOString().slice(0, 10);+}++export function shortAddress(addr, head = 4, tail = 4) {+ const s = String(addr || '');+ return s.length <= head + tail + 1 ? s : `${s.slice(0, head)}…${s.slice(-tail)}`;+}++export function formatUsd(n) {+ const v = Number(n);+ if (!Number.isFinite(v)) return '';+ if (v !== 0 && Math.abs(v) < 0.01) return `$${v.toFixed(4)}`;+ return v.toLocaleString('en-US', { style: 'currency', currency: 'USD' });+}++export function formatAmount(n, max = 6) {+ const v = Number(n);+ if (!Number.isFinite(v)) return String(n ?? '');+ return v.toLocaleString('en-US', { maximumFractionDigits: max });+}