diff --git a/.gitignore b/.gitignore index 55e24d3..bec3a54 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,8 @@ node_modules/ # build output dist/ public/build/ +desktop/build/ +desktop/dist-app/ # local Claude Code settings (not shared) .claude/settings.local.json diff --git a/desktop/assets/trayTemplate.png b/desktop/assets/trayTemplate.png new file mode 100644 index 0000000..703a25f Binary files /dev/null and b/desktop/assets/trayTemplate.png differ diff --git a/desktop/assets/trayTemplate@2x.png b/desktop/assets/trayTemplate@2x.png new file mode 100644 index 0000000..278066c Binary files /dev/null and b/desktop/assets/trayTemplate@2x.png differ diff --git a/desktop/build.mjs b/desktop/build.mjs new file mode 100644 index 0000000..7f0bd4f --- /dev/null +++ b/desktop/build.mjs @@ -0,0 +1,24 @@ +/** + * desktop/build.mjs — bundle the Electron main + preload with esbuild. + * + * Source is ESM TypeScript (desktop/src/*.ts); output is CJS (.cjs) so Electron + * loads it as the main/preload entry regardless of package "type". `electron` + * and `node-pty` are marked external (provided by the Electron runtime / loaded + * as a native addon at runtime, never bundled). The compiled server under + * ../dist is loaded via a runtime dynamic import (a computed specifier), so + * esbuild leaves it external automatically. + */ +import { build } from 'esbuild' + +const shared = { + bundle: true, + platform: 'node', + target: 'node20', + format: 'cjs', + sourcemap: true, + logLevel: 'info', + external: ['electron', 'node-pty'], +} + +await build({ ...shared, entryPoints: ['src/main.ts'], outfile: 'build/main.cjs' }) +await build({ ...shared, entryPoints: ['src/preload.ts'], outfile: 'build/preload.cjs' }) diff --git a/desktop/electron-builder.yml b/desktop/electron-builder.yml new file mode 100644 index 0000000..60be90e --- /dev/null +++ b/desktop/electron-builder.yml @@ -0,0 +1,64 @@ +# electron-builder config for the web-terminal desktop shell (Mac focus). +# +# PACKAGING MODEL — server + its node_modules on disk (extraResources), NOT in asar: +# The embedded server (src/server.ts) is ESM, resolves the frontend via +# path.join(__dirname,'..','public'), and imports express/ws/web-push/node-pty. +# embedded-server.ts loads it from process.resourcesPath when packaged. So we ship, +# as real files under Contents/Resources (siblings): dist/ + public/ + node_modules/. +# The server then resolves `require('express')` etc. via a plain Node walk-up to +# Resources/node_modules — no asar, no ESM-from-asar, no native-module-in-asar issues. +# (An earlier build shipped only node-pty and "worked" in-place only because it borrowed +# the repo's node_modules up the tree; from /Applications that failed with +# "Cannot find package 'express'". This ships the full runtime dep tree.) +# +# node_modules is filtered to drop build-only tooling (electron/electron-builder/esbuild/ +# typescript + their heavy binaries) — never the server's runtime deps or their transitives. +# node-pty is rebuilt for the Electron ABI (npmRebuild) before the copy. +# +# App icon: auto-generated from resources/icon.png. Tray icon: shipped in-asar under assets/. +# NOTE: Windows packaging needs a Windows machine (no wine here). +appId: com.webterminal.desktop +productName: Web Terminal +directories: + output: dist-app + buildResources: resources +files: + - build/**/* + - assets/**/* + - package.json +extraMetadata: + main: build/main.cjs +extraResources: + - from: ../dist + to: dist + - from: ../public + to: public + filter: + - "**/*" + - "!**/*.ts" + - "!**/*.map" + - from: node_modules + to: node_modules + filter: + - "**/*" + # build-only tooling — never needed at runtime by express/ws/web-push/node-pty: + - "!electron/**" + - "!electron-builder/**" + - "!esbuild/**" + - "!@esbuild/**" + - "!typescript/**" + - "!app-builder-bin/**" + - "!dmg-builder/**" + - "!7zip-bin/**" + - "!@electron/**" + - "!@develar/**" +# Rebuild native deps (node-pty) against the Electron ABI before packaging + copy. +npmRebuild: true +mac: + target: + - dmg + - zip + category: public.app-category.developer-tools +win: + target: + - nsis diff --git a/desktop/package-lock.json b/desktop/package-lock.json new file mode 100644 index 0000000..b0267f1 --- /dev/null +++ b/desktop/package-lock.json @@ -0,0 +1,4936 @@ +{ + "name": "web-terminal-desktop", + "version": "0.1.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "web-terminal-desktop", + "version": "0.1.0", + "dependencies": { + "express": "^5.2.1", + "node-pty": "^1.1.0", + "web-push": "3.6.7", + "ws": "^8.21.0" + }, + "devDependencies": { + "electron": "^43.0.0", + "electron-builder": "^26.15.3", + "esbuild": "^0.28.1", + "typescript": "^6.0.3" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/@electron-internal/extract-zip": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@electron-internal/extract-zip/-/extract-zip-1.0.4.tgz", + "integrity": "sha512-Zr1Vs7E9tpCNhZHDAbFVXc2gEVCG9RqPDjrno5+bdgB6LRAuvgyMHJut4NCVyYwtAieapMzc3fiQ3CSTi75ARg==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=22.12.0" + } + }, + "node_modules/@electron/asar": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/@electron/asar/-/asar-3.4.1.tgz", + "integrity": "sha512-i4/rNPRS84t0vSRa2HorerGRXWyF4vThfHesw0dmcWHp+cspK743UanA0suA5Q5y8kzY2y6YKrvbIUn69BCAiA==", + "dev": true, + "license": "MIT", + "dependencies": { + "commander": "^5.0.0", + "glob": "^7.1.6", + "minimatch": "^3.0.4" + }, + "bin": { + "asar": "bin/asar.js" + }, + "engines": { + "node": ">=10.12.0" + } + }, + "node_modules/@electron/asar/node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@electron/asar/node_modules/brace-expansion": { + "version": "1.1.15", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.15.tgz", + "integrity": "sha512-EwOCDEex4quD37XhqM3omwtMoJjr//isUZz1JopUNWms+4Z2ViyM/k1YIRePpoVNnQhENnxtFjLaxNHrT7xIUg==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/@electron/asar/node_modules/minimatch": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz", + "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/@electron/fuses": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/@electron/fuses/-/fuses-1.8.0.tgz", + "integrity": "sha512-zx0EIq78WlY/lBb1uXlziZmDZI4ubcCXIMJ4uGjXzZW0nS19TjSPeXPAjzzTmKQlJUZm0SbmZhPKP7tuQ1SsEw==", + "dev": true, + "license": "MIT", + "dependencies": { + "chalk": "^4.1.1", + "fs-extra": "^9.0.1", + "minimist": "^1.2.5" + }, + "bin": { + "electron-fuses": "dist/bin.js" + } + }, + "node_modules/@electron/fuses/node_modules/fs-extra": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", + "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "at-least-node": "^1.0.0", + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@electron/get": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@electron/get/-/get-5.0.0.tgz", + "integrity": "sha512-pjoBpru1KdEtcExBnuHAP1cAc/5faoedw0hzJkL3o4/IJp7HNF1+fbrdxT3gMYRX2oJfvnA/WXeCTVQpYYxyJA==", + "dev": true, + "license": "MIT", + "dependencies": { + "debug": "^4.1.1", + "env-paths": "^3.0.0", + "graceful-fs": "^4.2.11", + "progress": "^2.0.3", + "semver": "^7.6.3", + "sumchecker": "^3.0.1" + }, + "engines": { + "node": ">=22.12.0" + }, + "optionalDependencies": { + "undici": "^7.24.4" + } + }, + "node_modules/@electron/notarize": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@electron/notarize/-/notarize-2.5.0.tgz", + "integrity": "sha512-jNT8nwH1f9X5GEITXaQ8IF/KdskvIkOFfB2CvwumsveVidzpSc+mvhhTMdAGSYF3O+Nq49lJ7y+ssODRXu06+A==", + "dev": true, + "license": "MIT", + "dependencies": { + "debug": "^4.1.1", + "fs-extra": "^9.0.1", + "promise-retry": "^2.0.1" + }, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/@electron/notarize/node_modules/fs-extra": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", + "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "at-least-node": "^1.0.0", + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@electron/osx-sign": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/@electron/osx-sign/-/osx-sign-1.3.3.tgz", + "integrity": "sha512-KZ8mhXvWv2rIEgMbWZ4y33bDHyUKMXnx4M0sTyPNK/vcB81ImdeY9Ggdqy0SWbMDgmbqyQ+phgejh6V3R2QuSg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "compare-version": "^0.1.2", + "debug": "^4.3.4", + "fs-extra": "^10.0.0", + "isbinaryfile": "^4.0.8", + "minimist": "^1.2.6", + "plist": "^3.0.5" + }, + "bin": { + "electron-osx-flat": "bin/electron-osx-flat.js", + "electron-osx-sign": "bin/electron-osx-sign.js" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/@electron/osx-sign/node_modules/isbinaryfile": { + "version": "4.0.10", + "resolved": "https://registry.npmjs.org/isbinaryfile/-/isbinaryfile-4.0.10.tgz", + "integrity": "sha512-iHrqe5shvBUcFbmZq9zOQHBoeOhZJu6RQGrDpBgenUm/Am+F3JM2MgQj+rK3Z601fzrL5gLZWtAPH2OBaSVcyw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 8.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/gjtorikian/" + } + }, + "node_modules/@electron/rebuild": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@electron/rebuild/-/rebuild-4.1.0.tgz", + "integrity": "sha512-GFky+1JeO8fpSqtZCh+2wFRN/MVbAhm7tXI2M7BA1Os79OR8LEoxRtAbRPyxvmKWhEMF/p10rNJkkgP1klI13g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@malept/cross-spawn-promise": "^2.0.0", + "debug": "^4.1.1", + "node-abi": "^4.2.0", + "node-api-version": "^0.2.1", + "node-gyp": "^12.2.0", + "read-binary-file-arch": "^1.0.6" + }, + "bin": { + "electron-rebuild": "lib/cli.js" + }, + "engines": { + "node": ">=22.12.0" + } + }, + "node_modules/@electron/universal": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@electron/universal/-/universal-2.0.3.tgz", + "integrity": "sha512-Wn9sPYIVFRFl5HmwMJkARCCf7rqK/EurkfQ/rJZ14mHP3iYTjZSIOSVonEAnhWeAXwtw7zOekGRlc6yTtZ0t+g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@electron/asar": "^3.3.1", + "@malept/cross-spawn-promise": "^2.0.0", + "debug": "^4.3.1", + "dir-compare": "^4.2.0", + "fs-extra": "^11.1.1", + "minimatch": "^9.0.3", + "plist": "^3.1.0" + }, + "engines": { + "node": ">=16.4" + } + }, + "node_modules/@electron/universal/node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@electron/universal/node_modules/brace-expansion": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.1.tgz", + "integrity": "sha512-WR1cURNjuvBLMZBMbqM0UoE+WAfdUcEV1ccD8PVBVOI+Z3ND4+SZbN8RsfT2bMuG1qwz5RFvPukSZm5fF2D5eA==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/@electron/universal/node_modules/fs-extra": { + "version": "11.3.6", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.3.6.tgz", + "integrity": "sha512-w8ZNZr2mKIc7qeNaQ9AVPT1+iFaI+Avd4xudVOvdDJ8VytREi1Ft5Ih7hd9jjehod8vAM5GMsfQ/TpPf4EyoEA==", + "dev": true, + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=14.14" + } + }, + "node_modules/@electron/universal/node_modules/minimatch": { + "version": "9.0.9", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.9.tgz", + "integrity": "sha512-OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.2" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@electron/windows-sign": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@electron/windows-sign/-/windows-sign-1.2.2.tgz", + "integrity": "sha512-dfZeox66AvdPtb2lD8OsIIQh12Tp0GNCRUDfBHIKGpbmopZto2/A8nSpYYLoedPIHpqkeblZ/k8OV0Gy7PYuyQ==", + "dev": true, + "license": "BSD-2-Clause", + "optional": true, + "peer": true, + "dependencies": { + "cross-dirname": "^0.1.0", + "debug": "^4.3.4", + "fs-extra": "^11.1.1", + "minimist": "^1.2.8", + "postject": "^1.0.0-alpha.6" + }, + "bin": { + "electron-windows-sign": "bin/electron-windows-sign.js" + }, + "engines": { + "node": ">=14.14" + } + }, + "node_modules/@electron/windows-sign/node_modules/fs-extra": { + "version": "11.3.6", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.3.6.tgz", + "integrity": "sha512-w8ZNZr2mKIc7qeNaQ9AVPT1+iFaI+Avd4xudVOvdDJ8VytREi1Ft5Ih7hd9jjehod8vAM5GMsfQ/TpPf4EyoEA==", + "dev": true, + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=14.14" + } + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.28.1", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.28.1.tgz", + "integrity": "sha512-Svl7tq8k/08+p6CXPpRjQ1fKX+1odH/BQbb48fV6fj3CWHhsoIOoY87w1oHXm0qEpkIK3ZfVgp0hed3XBXzXMQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.28.1", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.28.1.tgz", + "integrity": "sha512-0k2F129Xdio1TdJfzJ8sy1Q47vUD2NnwdhiAf7drUN1EBTfPf4hsFCtmMgu/6m8JSzsBrlmVjudMBQqOfG8usQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.28.1", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.28.1.tgz", + "integrity": "sha512-34EGEbCIAgosYz6goLcopX6Mo7NyGv9tfwEM2/7Ce2VcVRk568iSvniGWcUXIy7wEDR1wzolcxcriFVrWYcwBg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.28.1", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.28.1.tgz", + "integrity": "sha512-dbwY7ltSMDWsRatcRpCnES4F+im88OCUgGZjy52shC7GqHRE/cYlxNbB4Z4UpJswpcc4Qxd2oE/ufM0p61IKng==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.28.1", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.28.1.tgz", + "integrity": "sha512-TZbWkQY7kvTAXbXUT7uVACR5cMHsDiSz9z7ZKAX/RTq/WJEk3QyRr0wZpNhBDX+/0CtdqUIJlOiodQcta6tY3Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.28.1", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.28.1.tgz", + "integrity": "sha512-zfdzgK9ACBNZLI/CyHTOx81SyNbM6YXn7rxSgX97VjyiPl9W1i4Ka4fgKECEoFCKGpvBj5qArWIGgQjOwkgskQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.28.1", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.28.1.tgz", + "integrity": "sha512-wG2EA8ENdEI0qhkSZMjfqrdY+ziCYCPMmtZjjIwOmXFjmyzEHn+UUxk5of+SYsjtfs3VpnlC7QLzSI5hY/rOAw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.28.1", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.28.1.tgz", + "integrity": "sha512-i7dZ9vQgnvSCzi/rYCXNgtF/U+eKZNJBzu3eTQbRgHnM7tNSizLOkRFAl3qzVc/Op/u5YkHHa4pf/3DOYHthLQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.28.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.28.1.tgz", + "integrity": "sha512-qVXBOHQS+d5Y722GwJzJUtOLlX7km3CraOaGormF1pDtPd2C/l1SHRPgjLunLGe51Sh5YYWKMFDyV4SxgMQYTQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.28.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.28.1.tgz", + "integrity": "sha512-yHs+0uc8+nvEAfAfxrWQKK5peSNzBc4PegcMO0EJ2hT71uA7vB8Ihg2e77R2P7SG5uYjPbHlLLmve4LLLRCf0g==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.28.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.28.1.tgz", + "integrity": "sha512-d1z4ZuP0ajrfz/FhGT4vv278rX8KnPPJx8i5+AtK7TYbx9Le9F1hyzurZpkEyjkGa9dUGhQow4C1NmeGvqxN2w==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.28.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.28.1.tgz", + "integrity": "sha512-M5sRjUVZrkm1OAPR3dlOYzNmN+loZKGVi1VUQGrwuqLcbR6qeAz+famMhjASeH3YVKvZz+zT1jlh/keC3Rj/lg==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.28.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.28.1.tgz", + "integrity": "sha512-mRObBZeHh2OxcBFPWE/FjylkRgZdYuiTR3vaTozquCGOH14iP9oN4x4Ge81CoIDYQrXmIxpFumJBu5MtZpnQJQ==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.28.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.28.1.tgz", + "integrity": "sha512-slScBsMAb3GFDcdrCgLwZtPYRoH2H/youv10QiZyRjmsP48fznoveWytSgCI/R0ZcUgpc0ZhIUEx6LHts8yrfQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.28.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.28.1.tgz", + "integrity": "sha512-kw0owk1o0GFETUJyW0jc0G4Yzs0BHZn0JDZ8JRT088vjJYX777BAs1fDGxAC+q831qOs2DTC96mNsG2opdfyyQ==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.28.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.28.1.tgz", + "integrity": "sha512-/lAIjX8aYFRByhh6L5rYtPEDRqa9de/4V/juOXcta5frjvzXO4/sqEtyytse0g3zZFuWu5cDN0MkLz2qRDD2Ag==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.28.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.28.1.tgz", + "integrity": "sha512-u/anNYF2mmVOEDwLtnQ1wOr3EZ9sTNGLWrsYGYwHWzGA3Si84IOkHXlbWTD1NB+9/1lcnweYKO54uhxZydNzfA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-arm64": { + "version": "0.28.1", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.28.1.tgz", + "integrity": "sha512-oks0DYbLwWMmaakTsCb+zL4E+aHRVLom9IJZOAthMQEPiQmydXHkziYEsGYRx0uNV/IjEKGAV941JzH02pflqw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.28.1", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.28.1.tgz", + "integrity": "sha512-aeL6lAnN89Hz43Mlh1G8ARasbuoYvSITDEx0tHh5b7jJnHcssqgjy9Yx430GDpmCa6OyrKoS0aNRjKundRizGg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-arm64": { + "version": "0.28.1", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.28.1.tgz", + "integrity": "sha512-MEFJe5C3R8pwXdZ5Y21oo6m7ePiS0d9pWucn99O/wvyJZChoIQKrQDxKrGeW8F5+T0okTHesAmDeiHDTIq0V/Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.28.1", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.28.1.tgz", + "integrity": "sha512-i/ZLIOafE0Z8cI/XANJAixoJL/uRAoS2xOA3rb0xN+KK0K177cMAsQYkzHtBrtMXAKuAc7HGgcWiZ/sRC1Nxgw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openharmony-arm64": { + "version": "0.28.1", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.28.1.tgz", + "integrity": "sha512-ge+Z7EXFNt2BO1oAMsVpiQ8EwndV9i1xXerAeTIK7AtPs3bKFXQM7nlRxDSIUIMeueR1CNXxqztLzdNeReKBJg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.28.1", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.28.1.tgz", + "integrity": "sha512-BEjgtECkL3vY+SaSQ6nzVfiALUeFxpawyp8Jmf5PtYhf1Ug40N1h/hxlhts+f1FvSvarEigdxS3BlSMI2PJLcQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.28.1", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.28.1.tgz", + "integrity": "sha512-lCv9eK/H6ZJWbE7bh2nw54CZ9M2nupBxJcTsdk/QQnWkdSjKGuxmmH8/GWrlT1eMmZfn4dGcCjRte397WqfQXA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.28.1", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.28.1.tgz", + "integrity": "sha512-zvb/mB2bSCoJOpoCBgYKKpX6YM6mJBlBUVUtVj41DlZJVEB6/0CKlRYxP5wWl1C1ILiCoAU5wZZ4q1P3qeS6Eg==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.28.1", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.28.1.tgz", + "integrity": "sha512-bm4Mowrv+GXMlpWX++EcXw/iLyd1o3+bJkC2DkWXYVvgZCqD/bSj9ctZeAMC3cIxgjRVR2Dufaiu4YPxr5gW1A==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@isaacs/fs-minipass": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@isaacs/fs-minipass/-/fs-minipass-4.0.1.tgz", + "integrity": "sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==", + "dev": true, + "license": "ISC", + "dependencies": { + "minipass": "^7.0.4" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@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/@noble/hashes": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-2.2.0.tgz", + "integrity": "sha512-IYqDGiTXab6FniAgnSdZwgWbomxpy9FtYvLKs7wCUs2a8RkITG+DFGO1DM9cr+E3/RgADRpFjrKVaJ1z6sjtEg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 20.19.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@peculiar/asn1-schema": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/@peculiar/asn1-schema/-/asn1-schema-2.8.0.tgz", + "integrity": "sha512-7YT0U/ze0tF2QOBbE15gKZwy5tvgGyLRiRHLzhlbOpf7BT032oBSd0haZqXn5W6l26WLlu3dyxzjM+2638/z2Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@peculiar/utils": "^2.0.2", + "asn1js": "^3.0.10", + "tslib": "^2.8.1" + } + }, + "node_modules/@peculiar/json-schema": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/@peculiar/json-schema/-/json-schema-1.1.12.tgz", + "integrity": "sha512-coUfuoMeIB7B8/NMekxaDzLhaYmp0HZNPEjYRm9goRou8UZIC3z21s0sL9AWoCw4EG876QyO3kYrc61WNF9B/w==", + "dev": true, + "license": "MIT", + "dependencies": { + "tslib": "^2.0.0" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/@peculiar/utils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@peculiar/utils/-/utils-2.0.3.tgz", + "integrity": "sha512-+oL3HPFRIZ1St2K50lWCXiioIgSoxzz7R1J3uF6neO2yl1sgmpgY6XXJH4BdpoDkMWznQTeYF6oWNDZLCdQ4eQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "tslib": "^2.8.1" + } + }, + "node_modules/@peculiar/webcrypto": { + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/@peculiar/webcrypto/-/webcrypto-1.7.1.tgz", + "integrity": "sha512-ODOov0sGMJMf3jPonOkgGqPknTsu+DdQ7kD++gz8aI+aFMOMHFbWAA2taqXXVTdP+OTOQR/znGvSpmkeI0WTYQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@peculiar/asn1-schema": "^2.7.0", + "@peculiar/json-schema": "^1.1.12", + "@peculiar/utils": "^2.0.2", + "tslib": "^2.8.1", + "webcrypto-core": "^1.9.2" + }, + "engines": { + "node": ">=14.18.0" + } + }, + "node_modules/@sindresorhus/is": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-4.6.0.tgz", + "integrity": "sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/is?sponsor=1" + } + }, + "node_modules/@szmarczak/http-timer": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-4.0.6.tgz", + "integrity": "sha512-4BAffykYOgO+5nzBWYwE3W90sBgLJoUPRWWcL8wlyiM8IB8ipJz3UMJ9KXQd1RKQXpKp8Tutn80HZtWsu2u76w==", + "dev": true, + "license": "MIT", + "dependencies": { + "defer-to-connect": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@types/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": "24.13.2", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.13.2.tgz", + "integrity": "sha512-fRa09kZTgu8o71KFcDjUFuc7F+dEbZYZmkI0mg5YBTRs0yMKjYHsq/c0urDKeDb+D5qVgXOdFcuu+DZPKOITwA==", + "dev": true, + "license": "MIT", + "dependencies": { + "undici-types": "~7.18.0" + } + }, + "node_modules/@types/responselike": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@types/responselike/-/responselike-1.0.3.tgz", + "integrity": "sha512-H/+L+UkTV33uf49PH5pCAUBVPNj2nDBXTN+qS1dOwyyg24l3CcicicCA7ca+HMvJBZcFgl5r8e+RR6elsb4Lyw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@xmldom/xmldom": { + "version": "0.8.13", + "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.8.13.tgz", + "integrity": "sha512-KRYzxepc14G/CEpEGc3Yn+JKaAeT63smlDr+vjB8jRfgTBBI9wRj/nkQEO+ucV8p8I9bfKLWp37uHgFrbntPvw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/abbrev": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-4.0.0.tgz", + "integrity": "sha512-a1wflyaL0tHtJSmLSOVybYhy22vRih4eduhhrkcjgrWGnRfrZtovJ2FRjxuTtkkj47O/baf0R86QU5OuYpz8fA==", + "dev": true, + "license": "ISC", + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/accepts": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-2.0.0.tgz", + "integrity": "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==", + "license": "MIT", + "dependencies": { + "mime-types": "^3.0.0", + "negotiator": "^1.0.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/accepts/node_modules/mime-db": { + "version": "1.54.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz", + "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/accepts/node_modules/mime-types": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.2.tgz", + "integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==", + "license": "MIT", + "dependencies": { + "mime-db": "^1.54.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "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==", + "license": "MIT", + "engines": { + "node": ">= 14" + } + }, + "node_modules/ajv": { + "version": "8.20.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.20.0.tgz", + "integrity": "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/app-builder-lib": { + "version": "26.15.3", + "resolved": "https://registry.npmjs.org/app-builder-lib/-/app-builder-lib-26.15.3.tgz", + "integrity": "sha512-2VnyWkqsP5v5XbBhL3tD5Syx8iNPBYsoU7kY4S2fz7wg8Rj/nztWKCUzGKaFRTv0Xwf3/H058CR1Kvtd/3lRow==", + "dev": true, + "license": "MIT", + "dependencies": { + "@electron/asar": "3.4.1", + "@electron/fuses": "^1.8.0", + "@electron/get": "^3.0.0", + "@electron/notarize": "2.5.0", + "@electron/osx-sign": "1.3.3", + "@electron/rebuild": "^4.0.4", + "@electron/universal": "2.0.3", + "@malept/flatpak-bundler": "^0.4.0", + "@noble/hashes": "^2.2.0", + "@peculiar/webcrypto": "^1.7.1", + "@types/fs-extra": "9.0.13", + "ajv": "^8.18.0", + "asn1js": "^3.0.10", + "async-exit-hook": "^2.0.1", + "builder-util": "26.15.3", + "builder-util-runtime": "9.7.0", + "chromium-pickle-js": "^0.2.0", + "ci-info": "4.3.1", + "debug": "^4.3.4", + "dotenv": "^16.4.5", + "dotenv-expand": "^11.0.6", + "ejs": "^3.1.8", + "electron-publish": "26.15.3", + "fs-extra": "^10.1.0", + "hosted-git-info": "^4.1.0", + "isbinaryfile": "^5.0.0", + "jiti": "^2.4.2", + "js-yaml": "^4.1.0", + "json5": "^2.2.3", + "lazy-val": "^1.0.5", + "minimatch": "^10.2.5", + "pkijs": "^3.4.0", + "plist": "3.1.0", + "proper-lockfile": "^4.1.2", + "resedit": "^1.7.0", + "semver": "~7.7.3", + "tar": "^7.5.7", + "temp-file": "^3.4.0", + "tiny-async-pool": "1.3.0", + "unzipper": "^0.12.3", + "which": "^5.0.0" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "dmg-builder": "26.15.3", + "electron-builder-squirrel-windows": "26.15.3" + } + }, + "node_modules/app-builder-lib/node_modules/@electron/get": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@electron/get/-/get-3.1.0.tgz", + "integrity": "sha512-F+nKc0xW+kVbBRhFzaMgPy3KwmuNTYX1fx6+FxxoSnNgwYX6LD7AKBTWkU0MQ6IBoe7dz069CNkR673sPAgkCQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "debug": "^4.1.1", + "env-paths": "^2.2.0", + "fs-extra": "^8.1.0", + "got": "^11.8.5", + "progress": "^2.0.3", + "semver": "^6.2.0", + "sumchecker": "^3.0.1" + }, + "engines": { + "node": ">=14" + }, + "optionalDependencies": { + "global-agent": "^3.0.0" + } + }, + "node_modules/app-builder-lib/node_modules/@electron/get/node_modules/fs-extra": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", + "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", + "dev": true, + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + }, + "engines": { + "node": ">=6 <7 || >=8" + } + }, + "node_modules/app-builder-lib/node_modules/@electron/get/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/app-builder-lib/node_modules/ci-info": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-4.3.1.tgz", + "integrity": "sha512-Wdy2Igu8OcBpI2pZePZ5oWjPC38tmDVx5WKUXKwlLYkA0ozo85sLsLvkBbBn/sZaSCMFOGZJ14fvW9t5/d7kdA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/app-builder-lib/node_modules/env-paths": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", + "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/app-builder-lib/node_modules/jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "dev": true, + "license": "MIT", + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/app-builder-lib/node_modules/semver": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz", + "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/app-builder-lib/node_modules/universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true, + "license": "Python-2.0" + }, + "node_modules/asn1.js": { + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-5.4.1.tgz", + "integrity": "sha512-+I//4cYPccV8LdmBLiX8CYvf9Sp3vQsrqu2QNXRcrbiWvcx/UdlFiqUJJzxRQxgsZmvhXhn4cSKeSmoFjVdupA==", + "license": "MIT", + "dependencies": { + "bn.js": "^4.0.0", + "inherits": "^2.0.1", + "minimalistic-assert": "^1.0.0", + "safer-buffer": "^2.1.0" + } + }, + "node_modules/asn1js": { + "version": "3.0.10", + "resolved": "https://registry.npmjs.org/asn1js/-/asn1js-3.0.10.tgz", + "integrity": "sha512-S2s3aOytiKdFRdulw2qPE51MzjzVOisppcVv7jVFR+Kw0kxwvFrDcYA0h7Ndqbmj0HkMIXYWaoj7fli8kgx1eg==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "pvtsutils": "^1.3.6", + "pvutils": "^1.1.5", + "tslib": "^2.8.1" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/async": { + "version": "3.2.6", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.6.tgz", + "integrity": "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==", + "dev": true, + "license": "MIT" + }, + "node_modules/async-exit-hook": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/async-exit-hook/-/async-exit-hook-2.0.1.tgz", + "integrity": "sha512-NW2cX8m1Q7KPA7a5M2ULQeZ2wR5qI5PAbw5L0UOMxdioVk9PMZ0h1TmyZEkPYrCvYjDlFICusOu1dlEKAAeXBw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/at-least-node": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", + "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/aws4": { + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.13.2.tgz", + "integrity": "sha512-lHe62zvbTB5eEABUVi/AwVh0ZKY9rMMDhmm+eeyuuUQbQ3+J+fONVQOZyj+DdrvD4BY33uYniyRJ4UJIaSKAfw==", + "dev": true, + "license": "MIT" + }, + "node_modules/balanced-match": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz", + "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "18 || 20 || >=22" + } + }, + "node_modules/base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/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/bn.js": { + "version": "4.12.4", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.4.tgz", + "integrity": "sha512-njR1b+ixG2ufvL9Zn9JGneW+b5GV6jqpYyPPpg4QVt723b5kJPGUczkUyWEH9BwEA74UakJZ43I4FDLBF7ci0g==", + "license": "MIT" + }, + "node_modules/body-parser": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.3.0.tgz", + "integrity": "sha512-2cGmJupaNgg+QUwVLAucDuWuoMZ6EX9iHDRswZ5lsNYEmwPaRknMPCLZz07yTzVq/83p4o/wzbDZbBrTvGGTIw==", + "license": "MIT", + "dependencies": { + "bytes": "^3.1.2", + "content-type": "^2.0.0", + "debug": "^4.4.3", + "http-errors": "^2.0.1", + "iconv-lite": "^0.7.2", + "on-finished": "^2.4.1", + "qs": "^6.15.2", + "raw-body": "^3.0.2", + "type-is": "^2.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/body-parser/node_modules/content-type": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-2.0.0.tgz", + "integrity": "sha512-j/O/d7GcZCyNl7/hwZAb606rzqkyvaDctLmckbxLzHvFBzTJHuGEdodATcP3yIRoDrLHkIATJuvzbFlp/ki2cQ==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "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.7", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.7.tgz", + "integrity": "sha512-7oFy703dxfY3/NLxC1fh2SUCQ0H9rmAY+5EpDVfXjUTTs+HEwR2nYaqLv+GWcTsumwxPfiz6CzCNkwXwBUwqCA==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^4.0.2" + }, + "engines": { + "node": "18 || 20 || >=22" + } + }, + "node_modules/buffer-equal-constant-time": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", + "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==", + "license": "BSD-3-Clause" + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/builder-util": { + "version": "26.15.3", + "resolved": "https://registry.npmjs.org/builder-util/-/builder-util-26.15.3.tgz", + "integrity": "sha512-q2hn7Mbo2nFNkVekPiHFx6Nfo3hURmES3tfBn+k5Pqxl2RkmP3QGqZUhH/q9Pch/4G05NRhPjDlVj1O8q4Txvw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/debug": "^4.1.6", + "builder-util-runtime": "9.7.0", + "chalk": "^4.1.2", + "cross-spawn": "^7.0.6", + "debug": "^4.3.4", + "fs-extra": "^10.1.0", + "http-proxy-agent": "^7.0.0", + "https-proxy-agent": "^7.0.0", + "js-yaml": "^4.1.0", + "sanitize-filename": "^1.6.3", + "source-map-support": "^0.5.19", + "stat-mode": "^1.0.0", + "temp-file": "^3.4.0", + "tiny-async-pool": "1.3.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/builder-util-runtime": { + "version": "9.7.0", + "resolved": "https://registry.npmjs.org/builder-util-runtime/-/builder-util-runtime-9.7.0.tgz", + "integrity": "sha512-g/kR520giAFYkSXTzcmF3kqQq7wi8F6N6SzeDgZrqTBN+VHdmgWOyTdD1yD7AATDId/yXLvuP34CxW46/BwCdw==", + "dev": true, + "license": "MIT", + "dependencies": { + "debug": "^4.3.4", + "sax": "^1.2.4" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/bytes": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", + "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/bytestreamjs": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/bytestreamjs/-/bytestreamjs-2.0.1.tgz", + "integrity": "sha512-U1Z/ob71V/bXfVABvNr/Kumf5VyeQRBEm6Txb0PQ6S7V5GpBM3w4Cbqz/xPDicR5tN0uvDifng8C+5qECeGwyQ==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/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==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/call-bound": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", + "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "get-intrinsic": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/chownr": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/chownr/-/chownr-3.0.0.tgz", + "integrity": "sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==", + "dev": true, + "license": "BlueOak-1.0.0", + "engines": { + "node": ">=18" + } + }, + "node_modules/chromium-pickle-js": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/chromium-pickle-js/-/chromium-pickle-js-0.2.0.tgz", + "integrity": "sha512-1R5Fho+jBq0DDydt+/vHWj5KJNJCKdARKOCwZUen84I5BreWoLqRLANH1U87eJy1tiASPtMnGqJJq0ZsLoRPOw==", + "dev": true, + "license": "MIT" + }, + "node_modules/ci-info": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-4.4.0.tgz", + "integrity": "sha512-77PSwercCZU2Fc4sX94eF8k8Pxte6JAwL4/ICZLFjJLqegs7kCuAsqqj/70NQF6TvDpgFjkubQB2FW2ZZddvQg==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "dev": true, + "license": "ISC", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/clone-response": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.3.tgz", + "integrity": "sha512-ROoL94jJH2dUVML2Y/5PEDNaSHgeOdSDicUyS7izcF63G6sTc/FTjLub4b8Il9S8S0beOfYt0TaA5qvFK+w0wA==", + "dev": true, + "license": "MIT", + "dependencies": { + "mimic-response": "^1.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true, + "license": "MIT" + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dev": true, + "license": "MIT", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/commander": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-5.1.0.tgz", + "integrity": "sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/compare-version": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/compare-version/-/compare-version-0.1.2.tgz", + "integrity": "sha512-pJDh5/4wrEnXX/VWRZvruAGHkzKdr46z11OlTPN+VrATlWWhSKewNCJ1futCO5C7eJB3nPMFZA1LeYtcFboZ2A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true, + "license": "MIT" + }, + "node_modules/content-disposition": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-1.1.0.tgz", + "integrity": "sha512-5jRCH9Z/+DRP7rkvY83B+yGIGX96OYdJmzngqnw2SBSxqCFPd0w2km3s5iawpGX8krnwSGmF0FW5Nhr0Hfai3g==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/content-type": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", + "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz", + "integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie-signature": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.2.2.tgz", + "integrity": "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==", + "license": "MIT", + "engines": { + "node": ">=6.6.0" + } + }, + "node_modules/core-util-is": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/cross-dirname": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/cross-dirname/-/cross-dirname-0.1.0.tgz", + "integrity": "sha512-+R08/oI0nl3vfPcqftZRpytksBXDzOUveBq/NBVx0sUp1axwzPQrKinNx5yd5sxPu8j1wIy8AfnVQ+5eFdha6Q==", + "dev": true, + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "dev": true, + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/cross-spawn/node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true, + "license": "ISC" + }, + "node_modules/cross-spawn/node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/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/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/depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", + "license": "MIT", + "engines": { + "node": ">= 0.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.15", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.15.tgz", + "integrity": "sha512-EwOCDEex4quD37XhqM3omwtMoJjr//isUZz1JopUNWms+4Z2ViyM/k1YIRePpoVNnQhENnxtFjLaxNHrT7xIUg==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/dir-compare/node_modules/minimatch": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz", + "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/dmg-builder": { + "version": "26.15.3", + "resolved": "https://registry.npmjs.org/dmg-builder/-/dmg-builder-26.15.3.tgz", + "integrity": "sha512-O3zJUFUYHJKgzPqioHxfxzBzlSC1eXCSr79gMSBKBP5AgjjpmrydMsMLotEg9fAJF36vdUncb+4ndRNxoPdlSQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "app-builder-lib": "26.15.3", + "builder-util": "26.15.3", + "fs-extra": "^10.1.0", + "js-yaml": "^4.1.0" + } + }, + "node_modules/dotenv": { + "version": "16.6.1", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.6.1.tgz", + "integrity": "sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://dotenvx.com" + } + }, + "node_modules/dotenv-expand": { + "version": "11.0.7", + "resolved": "https://registry.npmjs.org/dotenv-expand/-/dotenv-expand-11.0.7.tgz", + "integrity": "sha512-zIHwmZPRshsCdpMDyVsqGmgyP0yT8GAgXUnkdAoJisxvf33k7yO6OuoKmcTGuXPWSsm8Oh88nZicRLA9Y0rUeA==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "dotenv": "^16.4.5" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://dotenvx.com" + } + }, + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/duplexer2": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", + "integrity": "sha512-asLFVfWWtJ90ZyOUHMqk7/S2w2guQKxUI2itj3d92ADHhxUSbCMGi1f1cBcJ7xM1To+pE/Khbwo1yuNbMEPKeA==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "readable-stream": "^2.0.2" + } + }, + "node_modules/ecdsa-sig-formatter": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", + "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", + "license": "Apache-2.0", + "dependencies": { + "safe-buffer": "^5.0.1" + } + }, + "node_modules/ee-first": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==", + "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": "43.0.0", + "resolved": "https://registry.npmjs.org/electron/-/electron-43.0.0.tgz", + "integrity": "sha512-PV60GsWU6qufhuOhw3n+Yix3WPDcqDtBqE8orbEQGQGHEkgp9o/JCPgb7L4vIL0r1HnfPdqSRtboOTqbDkcFDQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@electron-internal/extract-zip": "^1.0.1", + "@electron/get": "^5.0.0", + "@types/node": "^24.9.0" + }, + "bin": { + "electron": "cli.js", + "install-electron": "install.js" + }, + "engines": { + "node": ">= 22.12.0" + } + }, + "node_modules/electron-builder": { + "version": "26.15.3", + "resolved": "https://registry.npmjs.org/electron-builder/-/electron-builder-26.15.3.tgz", + "integrity": "sha512-a1KM5heqS3gQCZzizXEI8RjJy3QVogULPdeSknt76uLDpBIW/HDGsMg/XgP0riP6PI9COsRvFITKKGDqA8fJxA==", + "dev": true, + "license": "MIT", + "dependencies": { + "app-builder-lib": "26.15.3", + "builder-util": "26.15.3", + "builder-util-runtime": "9.7.0", + "chalk": "^4.1.2", + "ci-info": "^4.2.0", + "dmg-builder": "26.15.3", + "fs-extra": "^10.1.0", + "lazy-val": "^1.0.5", + "simple-update-notifier": "2.0.0", + "yargs": "^17.6.2" + }, + "bin": { + "electron-builder": "cli.js", + "install-app-deps": "install-app-deps.js" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/electron-builder-squirrel-windows": { + "version": "26.15.3", + "resolved": "https://registry.npmjs.org/electron-builder-squirrel-windows/-/electron-builder-squirrel-windows-26.15.3.tgz", + "integrity": "sha512-Jc19XPV9y9+2bAdZPkXuVNGNIEFBq9poHC61l8Kv6FdK7DRG3+Ic0rerC0DXOaeHNz8yW0fg/JnF8GQROOF5MA==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "app-builder-lib": "26.15.3", + "builder-util": "26.15.3", + "electron-winstaller": "5.4.0" + } + }, + "node_modules/electron-publish": { + "version": "26.15.3", + "resolved": "https://registry.npmjs.org/electron-publish/-/electron-publish-26.15.3.tgz", + "integrity": "sha512-g/2bn8YTavY4cuS5F+jOS7zmZbXXBV8KZ8yHKfJjFPoKtzBqrpCdNPxBd3tqdBwP7BVd0lGzf7Bk2s0KesWZ4Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/fs-extra": "^9.0.11", + "aws4": "^1.13.2", + "builder-util": "26.15.3", + "builder-util-runtime": "9.7.0", + "chalk": "^4.1.2", + "form-data": "^4.0.5", + "fs-extra": "^10.1.0", + "lazy-val": "^1.0.5", + "mime": "^2.5.2" + } + }, + "node_modules/electron-winstaller": { + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/electron-winstaller/-/electron-winstaller-5.4.0.tgz", + "integrity": "sha512-bO3y10YikuUwUuDUQRM4KfwNkKhnpVO7IPdbsrejwN9/AABJzzTQ4GeHwyzNSrVO+tEH3/Np255a3sVZpZDjvg==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@electron/asar": "^3.2.1", + "debug": "^4.1.1", + "fs-extra": "^7.0.1", + "lodash": "^4.17.21", + "temp": "^0.9.0" + }, + "engines": { + "node": ">=8.0.0" + }, + "optionalDependencies": { + "@electron/windows-sign": "^1.1.2" + } + }, + "node_modules/electron-winstaller/node_modules/fs-extra": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", + "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "graceful-fs": "^4.1.2", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + }, + "engines": { + "node": ">=6 <7 || >=8" + } + }, + "node_modules/electron-winstaller/node_modules/jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "dev": true, + "license": "MIT", + "peer": true, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/electron-winstaller/node_modules/universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true, + "license": "MIT" + }, + "node_modules/encodeurl": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz", + "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/end-of-stream": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.5.tgz", + "integrity": "sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==", + "dev": true, + "license": "MIT", + "dependencies": { + "once": "^1.4.0" + } + }, + "node_modules/env-paths": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-3.0.0.tgz", + "integrity": "sha512-dtJUTepzMW3Lm/NPxRf3wP4642UWhjL2sQxc+ym2YMj1m/H2zDNQOlezafzkHwn6sMstjHTwG6iQQsctDW/b1A==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/err-code": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/err-code/-/err-code-2.0.3.tgz", + "integrity": "sha512-2bmlRpNKBxT/CRmPOlyISQpNj+qSeYvcym/uT0Jx2bMOlKLtSy1ZmLuVxSEKKyor/N5yhvp/ZiG1oE3DEYMSFA==", + "dev": true, + "license": "MIT" + }, + "node_modules/es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", + "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==", + "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==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-set-tostringtag": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", + "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es6-error": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/es6-error/-/es6-error-4.1.1.tgz", + "integrity": "sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==", + "dev": true, + "license": "MIT", + "optional": true + }, + "node_modules/esbuild": { + "version": "0.28.1", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.28.1.tgz", + "integrity": "sha512-HrJrvZv5ayxBzPfwphOoNzkzOIIlifzk0KJrGK2c8R4+LKpMtpYLQeUdjnwjWv/LZlkH2laZk+4w78pi99D4Vw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.28.1", + "@esbuild/android-arm": "0.28.1", + "@esbuild/android-arm64": "0.28.1", + "@esbuild/android-x64": "0.28.1", + "@esbuild/darwin-arm64": "0.28.1", + "@esbuild/darwin-x64": "0.28.1", + "@esbuild/freebsd-arm64": "0.28.1", + "@esbuild/freebsd-x64": "0.28.1", + "@esbuild/linux-arm": "0.28.1", + "@esbuild/linux-arm64": "0.28.1", + "@esbuild/linux-ia32": "0.28.1", + "@esbuild/linux-loong64": "0.28.1", + "@esbuild/linux-mips64el": "0.28.1", + "@esbuild/linux-ppc64": "0.28.1", + "@esbuild/linux-riscv64": "0.28.1", + "@esbuild/linux-s390x": "0.28.1", + "@esbuild/linux-x64": "0.28.1", + "@esbuild/netbsd-arm64": "0.28.1", + "@esbuild/netbsd-x64": "0.28.1", + "@esbuild/openbsd-arm64": "0.28.1", + "@esbuild/openbsd-x64": "0.28.1", + "@esbuild/openharmony-arm64": "0.28.1", + "@esbuild/sunos-x64": "0.28.1", + "@esbuild/win32-arm64": "0.28.1", + "@esbuild/win32-ia32": "0.28.1", + "@esbuild/win32-x64": "0.28.1" + } + }, + "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-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==", + "license": "MIT" + }, + "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/etag": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", + "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "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/express": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/express/-/express-5.2.1.tgz", + "integrity": "sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==", + "license": "MIT", + "dependencies": { + "accepts": "^2.0.0", + "body-parser": "^2.2.1", + "content-disposition": "^1.0.0", + "content-type": "^1.0.5", + "cookie": "^0.7.1", + "cookie-signature": "^1.2.1", + "debug": "^4.4.0", + "depd": "^2.0.0", + "encodeurl": "^2.0.0", + "escape-html": "^1.0.3", + "etag": "^1.8.1", + "finalhandler": "^2.1.0", + "fresh": "^2.0.0", + "http-errors": "^2.0.0", + "merge-descriptors": "^2.0.0", + "mime-types": "^3.0.0", + "on-finished": "^2.4.1", + "once": "^1.4.0", + "parseurl": "^1.3.3", + "proxy-addr": "^2.0.7", + "qs": "^6.14.0", + "range-parser": "^1.2.1", + "router": "^2.2.0", + "send": "^1.1.0", + "serve-static": "^2.2.0", + "statuses": "^2.0.1", + "type-is": "^2.0.1", + "vary": "^1.1.2" + }, + "engines": { + "node": ">= 18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/express/node_modules/mime-db": { + "version": "1.54.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz", + "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/express/node_modules/mime-types": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.2.tgz", + "integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==", + "license": "MIT", + "dependencies": { + "mime-db": "^1.54.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-uri": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.3.tgz", + "integrity": "sha512-i70LwGWUduXqzicKXWshooq+sWL1K3WUU5rKZNG/0i3a1OSoX3HqhH5WbWwTmqWfor4urUakGPiRQcleRZTwOg==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fastify" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fastify" + } + ], + "license": "BSD-3-Clause" + }, + "node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/filelist": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.6.tgz", + "integrity": "sha512-5giy2PkLYY1cP39p17Ech+2xlpTRL9HLspOfEgm0L6CwBXBTgsK5ou0JtzYuepxkaQ/tvhCFIJ5uXo0OrM2DxA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "minimatch": "^5.0.1" + } + }, + "node_modules/filelist/node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/filelist/node_modules/brace-expansion": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.1.tgz", + "integrity": "sha512-WR1cURNjuvBLMZBMbqM0UoE+WAfdUcEV1ccD8PVBVOI+Z3ND4+SZbN8RsfT2bMuG1qwz5RFvPukSZm5fF2D5eA==", + "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/finalhandler": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-2.1.1.tgz", + "integrity": "sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA==", + "license": "MIT", + "dependencies": { + "debug": "^4.4.0", + "encodeurl": "^2.0.0", + "escape-html": "^1.0.3", + "on-finished": "^2.4.1", + "parseurl": "^1.3.3", + "statuses": "^2.0.1" + }, + "engines": { + "node": ">= 18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "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/forwarded": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", + "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fresh": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-2.0.0.tgz", + "integrity": "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/fs-extra": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", + "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "dev": true, + "license": "ISC" + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "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==", + "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==", + "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 i@izs.me", + "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.15", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.15.tgz", + "integrity": "sha512-EwOCDEex4quD37XhqM3omwtMoJjr//isUZz1JopUNWms+4Z2ViyM/k1YIRePpoVNnQhENnxtFjLaxNHrT7xIUg==", + "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/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==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/got": { + "version": "11.8.6", + "resolved": "https://registry.npmjs.org/got/-/got-11.8.6.tgz", + "integrity": "sha512-6tfZ91bOr7bOXnK7PRDCGBLa1H4U080YHNaAQ2KsMGlLEzRbk44nsZF2E1IeRc3vtJHPVbKCYgdFbaGO2ljd8g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@sindresorhus/is": "^4.0.0", + "@szmarczak/http-timer": "^4.0.5", + "@types/cacheable-request": "^6.0.1", + "@types/responselike": "^1.0.0", + "cacheable-lookup": "^5.0.3", + "cacheable-request": "^7.0.2", + "decompress-response": "^6.0.0", + "http2-wrapper": "^1.0.0-beta.5.2", + "lowercase-keys": "^2.0.0", + "p-cancelable": "^2.0.0", + "responselike": "^2.0.0" + }, + "engines": { + "node": ">=10.19.0" + }, + "funding": { + "url": "https://github.com/sindresorhus/got?sponsor=1" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/has-property-descriptors": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", + "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "es-define-property": "^1.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-symbols": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hasown": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz", + "integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==", + "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_ece": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/http_ece/-/http_ece-1.2.0.tgz", + "integrity": "sha512-JrF8SSLVmcvc5NducxgyOrKXe3EsyHMgBFgSaIUGmArKe+rwr0uphRkRXvwiom3I+fpIfoItveHrfudL8/rxuA==", + "license": "MIT", + "engines": { + "node": ">=16" + } + }, + "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-errors": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz", + "integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==", + "license": "MIT", + "dependencies": { + "depd": "~2.0.0", + "inherits": "~2.0.4", + "setprototypeof": "~1.2.0", + "statuses": "~2.0.2", + "toidentifier": "~1.0.1" + }, + "engines": { + "node": ">= 0.8" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "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==", + "license": "MIT", + "dependencies": { + "agent-base": "^7.1.2", + "debug": "4" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/iconv-lite": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.2.tgz", + "integrity": "sha512-im9DjEDQ55s9fL4EYzOAv0yMqmMBSZp6G0VvFyTMPKWxiSBHUj9NW/qqLmXUwXrrM7AvqSlTCfvqRb0cM8yYqw==", + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "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==", + "license": "ISC" + }, + "node_modules/ipaddr.js": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", + "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", + "license": "MIT", + "engines": { + "node": ">= 0.10" + } + }, + "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-promise": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-4.0.0.tgz", + "integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==", + "license": "MIT" + }, + "node_modules/isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/isbinaryfile": { + "version": "5.0.7", + "resolved": "https://registry.npmjs.org/isbinaryfile/-/isbinaryfile-5.0.7.tgz", + "integrity": "sha512-gnWD14Jh3FzS3CPhF0AxNOJ8CxqeblPTADzI38r0wt8ZyQl5edpy75myt08EG2oKvpyiqSqsx+Wkz9vtkbTqYQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 18.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/gjtorikian/" + } + }, + "node_modules/isexe": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-3.1.5.tgz", + "integrity": "sha512-6B3tLtFqtQS4ekarvLVMZ+X+VlvQekbe4taUkf/rhVO3d/h0M2rfARm/pXLcPEsjjMsFgrFgSrhQIxcSVrBz8w==", + "dev": true, + "license": "BlueOak-1.0.0", + "engines": { + "node": ">=18" + } + }, + "node_modules/jake": { + "version": "10.9.4", + "resolved": "https://registry.npmjs.org/jake/-/jake-10.9.4.tgz", + "integrity": "sha512-wpHYzhxiVQL+IV05BLE2Xn34zW1S223hvjtqk0+gsPrwd/8JNLXJgZZM/iPFsYc1xyphF+6M6EvdE5E9MBGkDA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "async": "^3.2.6", + "filelist": "^1.0.4", + "picocolors": "^1.1.1" + }, + "bin": { + "jake": "bin/cli.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jiti": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.7.0.tgz", + "integrity": "sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==", + "dev": true, + "license": "MIT", + "bin": { + "jiti": "lib/jiti-cli.mjs" + } + }, + "node_modules/js-yaml": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.0.tgz", + "integrity": "sha512-1td788aAnnZ5qs7V2QIRl1owjtYpbKt749Y3xauqQgwIIGF/xXWz1wMTEBx5O3LK3lXLVuqXPdPxj2BoFHaW9Q==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/puzrin" + }, + { + "type": "github", + "url": "https://github.com/sponsors/nodeca" + } + ], + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-stringify-safe": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", + "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==", + "dev": true, + "license": "ISC", + "optional": true + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "license": "MIT", + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/jsonfile": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz", + "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/jwa": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/jwa/-/jwa-2.0.1.tgz", + "integrity": "sha512-hRF04fqJIP8Abbkq5NKGN0Bbr3JxlQ+qhZufXVr0DvujKy93ZCbXZMHDL4EOtodSbCWxOqR8MS1tXA5hwqCXDg==", + "license": "MIT", + "dependencies": { + "buffer-equal-constant-time": "^1.0.1", + "ecdsa-sig-formatter": "1.0.11", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/jws": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/jws/-/jws-4.0.1.tgz", + "integrity": "sha512-EKI/M/yqPncGUUh44xz0PxSidXFr/+r0pA70+gIYhjv+et7yxM+s29Y+VGDkovRofQem0fs7Uvf4+YmAdyRduA==", + "license": "MIT", + "dependencies": { + "jwa": "^2.0.1", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/keyv": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "dev": true, + "license": "MIT", + "dependencies": { + "json-buffer": "3.0.1" + } + }, + "node_modules/lazy-val": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/lazy-val/-/lazy-val-1.0.5.tgz", + "integrity": "sha512-0/BnGCCfyUMkBpeDgWihanIAF9JmZhHBgUhEqzvf+adhNGLoP6TaiI5oF8oyb3I45P+PcnrqihSf01M0l0G5+Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/lodash": { + "version": "4.18.1", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.18.1.tgz", + "integrity": "sha512-dMInicTPVE8d1e5otfwmmjlxkZoUpiVLwyeTdUsi/Caj/gfzzblBcCE5sRHV/AsjuCmxWrte2TNGSYuCeCq+0Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/lowercase-keys": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz", + "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/lru-cache": { + "version": "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/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==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/media-typer": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.0.tgz", + "integrity": "sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/merge-descriptors": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-2.0.0.tgz", + "integrity": "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/mime": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-2.6.0.tgz", + "integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==", + "dev": true, + "license": "MIT", + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dev": true, + "license": "MIT", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mimic-response": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", + "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/minimalistic-assert": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", + "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==", + "license": "ISC" + }, + "node_modules/minimatch": { + "version": "10.2.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.5.tgz", + "integrity": "sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "brace-expansion": "^5.0.5" + }, + "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==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/minipass": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.3.tgz", + "integrity": "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==", + "dev": true, + "license": "BlueOak-1.0.0", + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/minizlib": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-3.1.0.tgz", + "integrity": "sha512-KZxYo1BUkWD2TVFLr0MQoM8vUUigWD3LlD83a/75BqC+4qE0Hb1Vo5v1FgcfaNXvfXzr+5EhQ6ing/CaBijTlw==", + "dev": true, + "license": "MIT", + "dependencies": { + "minipass": "^7.1.2" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/mkdirp": { + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", + "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "minimist": "^1.2.6" + }, + "bin": { + "mkdirp": "bin/cmd.js" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" + }, + "node_modules/negotiator": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-1.0.0.tgz", + "integrity": "sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/node-abi": { + "version": "4.32.0", + "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-4.32.0.tgz", + "integrity": "sha512-2cvOMwK7aQ8eQhHTG9DBK/akKfNaJDwtbxgUaA1u3BHGpd6cbUvWCbA0u3aKan+s7Nl60tMGx4tn11+VS1fiUA==", + "dev": true, + "license": "MIT", + "dependencies": { + "semver": "^7.6.3" + }, + "engines": { + "node": ">=22.12.0" + } + }, + "node_modules/node-addon-api": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-7.1.1.tgz", + "integrity": "sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ==", + "license": "MIT" + }, + "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-gyp": { + "version": "12.4.0", + "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-12.4.0.tgz", + "integrity": "sha512-OMcPNvqTCFUnNaBlmdgq+lfNqY7gTiSmNRDjY3uAXRyudeKZEZxu3CLtjMQrx4zZxCX2b/mpNqTtwuCJgXhHkw==", + "dev": true, + "license": "MIT", + "dependencies": { + "env-paths": "^2.2.0", + "exponential-backoff": "^3.1.1", + "graceful-fs": "^4.2.6", + "nopt": "^9.0.0", + "proc-log": "^6.0.0", + "semver": "^7.3.5", + "tar": "^7.5.4", + "tinyglobby": "^0.2.12", + "undici": "^6.25.0", + "which": "^6.0.0" + }, + "bin": { + "node-gyp": "bin/node-gyp.js" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/node-gyp/node_modules/env-paths": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", + "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/node-gyp/node_modules/isexe": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-4.0.0.tgz", + "integrity": "sha512-FFUtZMpoZ8RqHS3XeXEmHWLA4thH+ZxCv2lOiPIn1Xc7CxrqhWzNSDzD+/chS/zbYezmiwWLdQC09JdQKmthOw==", + "dev": true, + "license": "BlueOak-1.0.0", + "engines": { + "node": ">=20" + } + }, + "node_modules/node-gyp/node_modules/undici": { + "version": "6.27.0", + "resolved": "https://registry.npmjs.org/undici/-/undici-6.27.0.tgz", + "integrity": "sha512-YmfV3YnEDzXRC5lZ2jWtWWHKGUm1zIt8AhesR1tens+HTNv+YZlN/dp6G727LOvMJ8xjP9Be7Y2Sdr96LDm+pg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18.17" + } + }, + "node_modules/node-gyp/node_modules/which": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/which/-/which-6.0.1.tgz", + "integrity": "sha512-oGLe46MIrCRqX7ytPUf66EAYvdeMIZYn3WaocqqKZAxrBpkqHfL/qvTyJ/bTk5+AqHCjXmrv3CEWgy368zhRUg==", + "dev": true, + "license": "ISC", + "dependencies": { + "isexe": "^4.0.0" + }, + "bin": { + "node-which": "bin/which.js" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/node-int64": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", + "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", + "dev": true, + "license": "MIT" + }, + "node_modules/node-pty": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/node-pty/-/node-pty-1.1.0.tgz", + "integrity": "sha512-20JqtutY6JPXTUnL0ij1uad7Qe1baT46lyolh2sSENDd4sTzKZ4nmAFkeAARDKwmlLjPx6XKRlwRUxwjOy+lUg==", + "hasInstallScript": true, + "license": "MIT", + "dependencies": { + "node-addon-api": "^7.1.0" + } + }, + "node_modules/nopt": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-9.0.0.tgz", + "integrity": "sha512-Zhq3a+yFKrYwSBluL4H9XP3m3y5uvQkB/09CwDruCiRmR/UJYnn9W4R48ry0uGC70aeTPKLynBtscP9efFFcPw==", + "dev": true, + "license": "ISC", + "dependencies": { + "abbrev": "^4.0.0" + }, + "bin": { + "nopt": "bin/nopt.js" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/normalize-url": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz", + "integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/object-inspect": { + "version": "1.13.4", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", + "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "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/on-finished": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", + "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", + "license": "MIT", + "dependencies": { + "ee-first": "1.1.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "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==", + "license": "ISC", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/p-cancelable": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-2.1.1.tgz", + "integrity": "sha512-BZOr3nRQHOntUjTrH8+Lh54smKHoHyur8We1V8DSMVrl5A2malOOwuJRnKRDjSnkoeBh4at6BwEnb5I7Jl31wg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/parseurl": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-to-regexp": { + "version": "8.4.2", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.4.2.tgz", + "integrity": "sha512-qRcuIdP69NPm4qbACK+aDogI5CBDMi1jKe0ry5rSQJz8JVLsC7jV8XpiJjGRLLol3N+R5ihGYcrPLTno6pAdBA==", + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/pe-library": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/pe-library/-/pe-library-0.4.1.tgz", + "integrity": "sha512-eRWB5LBz7PpDu4PUlwT0PhnQfTQJlDDdPa35urV4Osrm0t0AqQFGn+UIkU3klZvwJ8KPO3VbBFsXquA6p6kqZw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12", + "npm": ">=6" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/jet2jet" + } + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true, + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz", + "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pkijs": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/pkijs/-/pkijs-3.4.0.tgz", + "integrity": "sha512-emEcLuomt2j03vxD54giVB4SxTjnsqkU692xZOZXHDVoYyypEm+b3jpiTcc+Cf+myooc+/Ly0z01jqeNHVgJGw==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "@noble/hashes": "1.4.0", + "asn1js": "^3.0.6", + "bytestreamjs": "^2.0.1", + "pvtsutils": "^1.3.6", + "pvutils": "^1.1.3", + "tslib": "^2.8.1" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/pkijs/node_modules/@noble/hashes": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.4.0.tgz", + "integrity": "sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/plist": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/plist/-/plist-3.1.0.tgz", + "integrity": "sha512-uysumyrvkUX0rX/dEVqt8gC3sTBzd4zoWfLeS29nb53imdaXVvLINYXTI2GNqzaMuvacNx4uJQ8+b3zXR0pkgQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@xmldom/xmldom": "^0.8.8", + "base64-js": "^1.5.1", + "xmlbuilder": "^15.1.1" + }, + "engines": { + "node": ">=10.4.0" + } + }, + "node_modules/postject": { + "version": "1.0.0-alpha.6", + "resolved": "https://registry.npmjs.org/postject/-/postject-1.0.0-alpha.6.tgz", + "integrity": "sha512-b9Eb8h2eVqNE8edvKdwqkrY6O7kAwmI8kcnBv1NScolYJbo59XUF0noFq+lxbC1yN20bmC0WBEbDC5H/7ASb0A==", + "dev": true, + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "commander": "^9.4.0" + }, + "bin": { + "postject": "dist/cli.js" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/postject/node_modules/commander": { + "version": "9.5.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-9.5.0.tgz", + "integrity": "sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==", + "dev": true, + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": "^12.20.0 || >=14" + } + }, + "node_modules/proc-log": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/proc-log/-/proc-log-6.1.0.tgz", + "integrity": "sha512-iG+GYldRf2BQ0UDUAd6JQ/RwzaQy6mXmsk/IzlYyal4A4SNFw54MeH4/tLkF4I5WoWG9SQwuqWzS99jaFQHBuQ==", + "dev": true, + "license": "ISC", + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/process-nextick-args": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", + "dev": true, + "license": "MIT" + }, + "node_modules/progress": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", + "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/promise-retry": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/promise-retry/-/promise-retry-2.0.1.tgz", + "integrity": "sha512-y+WKFlBR8BGXnsNlIHFGPZmyDf3DFMoLhaflAnyZgV6rG6xu+JwesTo2Q9R6XwYmtmwAFCkAk3e35jEdoeh/3g==", + "dev": true, + "license": "MIT", + "dependencies": { + "err-code": "^2.0.2", + "retry": "^0.12.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/proper-lockfile": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/proper-lockfile/-/proper-lockfile-4.1.2.tgz", + "integrity": "sha512-TjNPblN4BwAWMXU8s9AEz4JmQxnD1NNL7bNOY/AKUzyamc379FWASUhc/K1pL2noVb+XmZKLL68cjzLsiOAMaA==", + "dev": true, + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.4", + "retry": "^0.12.0", + "signal-exit": "^3.0.2" + } + }, + "node_modules/proxy-addr": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", + "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", + "license": "MIT", + "dependencies": { + "forwarded": "0.2.0", + "ipaddr.js": "1.9.1" + }, + "engines": { + "node": ">= 0.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/pvtsutils": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/pvtsutils/-/pvtsutils-1.3.6.tgz", + "integrity": "sha512-PLgQXQ6H2FWCaeRak8vvk1GW462lMxB5s3Jm673N82zI4vqtVUPuZdffdZbPDFRoU8kAhItWFtPCWiPpp4/EDg==", + "dev": true, + "license": "MIT", + "dependencies": { + "tslib": "^2.8.1" + } + }, + "node_modules/pvutils": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/pvutils/-/pvutils-1.1.5.tgz", + "integrity": "sha512-KTqnxsgGiQ6ZAzZCVlJH5eOjSnvlyEgx1m8bkRJfOhmGRqfo5KLvmAlACQkrjEtOQ4B7wF9TdSLIs9O90MX9xA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/qs": { + "version": "6.15.3", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.15.3.tgz", + "integrity": "sha512-O9gl3zCl5h5blw1KGUzQKhA5oUXSl8rwUIM5o0S3nCXMliSvy5Dzx7/DJcI+SwgICv+IneSZwhBh1oSyEHA71A==", + "license": "BSD-3-Clause", + "dependencies": { + "es-define-property": "^1.0.1", + "side-channel": "^1.1.1" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "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/range-parser": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.3.0.tgz", + "integrity": "sha512-hek2mFQpPuI4E1BBKrSto+BU3e3x4xuarsbiwr3+lf7p44juvFMV0XFWQAP3xUyqXA4RrXLIoaSUGbSt056ZMw==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/raw-body": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-3.0.2.tgz", + "integrity": "sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==", + "license": "MIT", + "dependencies": { + "bytes": "~3.1.2", + "http-errors": "~2.0.1", + "iconv-lite": "~0.7.0", + "unpipe": "~1.0.0" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/read-binary-file-arch": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/read-binary-file-arch/-/read-binary-file-arch-1.0.6.tgz", + "integrity": "sha512-BNg9EN3DD3GsDXX7Aa8O4p92sryjkmzYYgmgTAc6CA4uGLEDzFfxOxugu21akOxpcXHiEgsYkC6nPsQvLLLmEg==", + "dev": true, + "license": "MIT", + "dependencies": { + "debug": "^4.3.4" + }, + "bin": { + "read-binary-file-arch": "cli.js" + } + }, + "node_modules/readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "dev": true, + "license": "MIT", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/resedit": { + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/resedit/-/resedit-1.7.2.tgz", + "integrity": "sha512-vHjcY2MlAITJhC0eRD/Vv8Vlgmu9Sd3LX9zZvtGzU5ZImdTN3+d6e/4mnTyV8vEbyf1sgNIrWxhWlrys52OkEA==", + "dev": true, + "license": "MIT", + "dependencies": { + "pe-library": "^0.4.1" + }, + "engines": { + "node": ">=12", + "npm": ">=6" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/jet2jet" + } + }, + "node_modules/resolve-alpn": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/resolve-alpn/-/resolve-alpn-1.2.1.tgz", + "integrity": "sha512-0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g==", + "dev": true, + "license": "MIT" + }, + "node_modules/responselike": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/responselike/-/responselike-2.0.1.tgz", + "integrity": "sha512-4gl03wn3hj1HP3yzgdI7d3lCkF95F21Pz4BPGvKHinyQzALR5CapwC8yIi0Rh58DEMQ/SguC03wFj2k0M/mHhw==", + "dev": true, + "license": "MIT", + "dependencies": { + "lowercase-keys": "^2.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/retry": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/retry/-/retry-0.12.0.tgz", + "integrity": "sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/rimraf": { + "version": "2.6.3", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz", + "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==", + "deprecated": "Rimraf versions prior to v4 are no longer supported", + "dev": true, + "license": "ISC", + "peer": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + } + }, + "node_modules/roarr": { + "version": "2.15.4", + "resolved": "https://registry.npmjs.org/roarr/-/roarr-2.15.4.tgz", + "integrity": "sha512-CHhPh+UNHD2GTXNYhPWLnU8ONHdI+5DI+4EYIAOaiD63rHeYlZvyh8P+in5999TTSFgUYuKUAjzRI4mdh/p+2A==", + "dev": true, + "license": "BSD-3-Clause", + "optional": true, + "dependencies": { + "boolean": "^3.0.1", + "detect-node": "^2.0.4", + "globalthis": "^1.0.1", + "json-stringify-safe": "^5.0.1", + "semver-compare": "^1.0.0", + "sprintf-js": "^1.1.2" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/router": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/router/-/router-2.2.0.tgz", + "integrity": "sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==", + "license": "MIT", + "dependencies": { + "debug": "^4.4.0", + "depd": "^2.0.0", + "is-promise": "^4.0.0", + "parseurl": "^1.3.3", + "path-to-regexp": "^8.0.0" + }, + "engines": { + "node": ">= 18" + } + }, + "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==", + "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==", + "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.0", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.6.0.tgz", + "integrity": "sha512-6R3J5M4AcbtLUdZmRv2SygeVaM7IhrLXu9BmnOGmmACak8fiUtOsYNWUS4uK7upbmHIBbLBeFeI//477BKLBzA==", + "dev": true, + "license": "BlueOak-1.0.0", + "engines": { + "node": ">=11.0.0" + } + }, + "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/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/send": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/send/-/send-1.2.1.tgz", + "integrity": "sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ==", + "license": "MIT", + "dependencies": { + "debug": "^4.4.3", + "encodeurl": "^2.0.0", + "escape-html": "^1.0.3", + "etag": "^1.8.1", + "fresh": "^2.0.0", + "http-errors": "^2.0.1", + "mime-types": "^3.0.2", + "ms": "^2.1.3", + "on-finished": "^2.4.1", + "range-parser": "^1.2.1", + "statuses": "^2.0.2" + }, + "engines": { + "node": ">= 18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/send/node_modules/mime-db": { + "version": "1.54.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz", + "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/send/node_modules/mime-types": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.2.tgz", + "integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==", + "license": "MIT", + "dependencies": { + "mime-db": "^1.54.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "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/serve-static": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-2.2.1.tgz", + "integrity": "sha512-xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw==", + "license": "MIT", + "dependencies": { + "encodeurl": "^2.0.0", + "escape-html": "^1.0.3", + "parseurl": "^1.3.3", + "send": "^1.2.0" + }, + "engines": { + "node": ">= 18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/setprototypeof": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", + "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", + "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/side-channel": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.1.tgz", + "integrity": "sha512-6x6dK6zJdpTzF4sQeNYxwtvBzf6Eg4GtlesS94HOvTudUeyK2WXAaIfmDgsyslYrRBeFIlsi54AYsFGUuhmvrQ==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.4", + "side-channel-list": "^1.0.1", + "side-channel-map": "^1.0.1", + "side-channel-weakmap": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-list": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.1.tgz", + "integrity": "sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-map": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", + "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-weakmap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", + "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3", + "side-channel-map": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "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/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/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/statuses": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz", + "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dev": true, + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/sumchecker": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/sumchecker/-/sumchecker-3.0.1.tgz", + "integrity": "sha512-MvjXzkz/BOfyVDkG0oFOtBxHX2u3gKbMHIF/dXblZsgD3BWOFLmHovIpZY7BykJdAjcqRCBi1WYBNdEC9yI7vg==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "debug": "^4.1.0" + }, + "engines": { + "node": ">= 8.0" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/tar": { + "version": "7.5.19", + "resolved": "https://registry.npmjs.org/tar/-/tar-7.5.19.tgz", + "integrity": "sha512-4LeEWl96twnS2Q7Bz4MGqgazLqO+hJN63GZxXoIqh1T3VweYD997gbU1ItNsQafqqXTXd5WFyFdReLtwvRBNiw==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "@isaacs/fs-minipass": "^4.0.0", + "chownr": "^3.0.0", + "minipass": "^7.1.2", + "minizlib": "^3.1.0", + "yallist": "^5.0.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/tar/node_modules/yallist": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-5.0.0.tgz", + "integrity": "sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==", + "dev": true, + "license": "BlueOak-1.0.0", + "engines": { + "node": ">=18" + } + }, + "node_modules/temp": { + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/temp/-/temp-0.9.4.tgz", + "integrity": "sha512-yYrrsWnrXMcdsnu/7YMYAofM1ktpL5By7vZhf15CrXijWWrEYZks5AXBudalfSWJLlnen/QUJUB5aoB0kqZUGA==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "mkdirp": "^0.5.1", + "rimraf": "~2.6.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/temp-file": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/temp-file/-/temp-file-3.4.0.tgz", + "integrity": "sha512-C5tjlC/HCtVUOi3KWVokd4vHVViOmGjtLwIh4MuzPo/nMYTV/p1urt3RnMz2IWXDdKEGJH3k5+KPxtqRsUYGtg==", + "dev": true, + "license": "MIT", + "dependencies": { + "async-exit-hook": "^2.0.1", + "fs-extra": "^10.0.0" + } + }, + "node_modules/tiny-async-pool": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/tiny-async-pool/-/tiny-async-pool-1.3.0.tgz", + "integrity": "sha512-01EAw5EDrcVrdgyCLgoSPvqznC0sVxDSVeiOz09FUpjh71G79VCqneOr+xvt7T1r76CF6ZZfPjHorN2+d+3mqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "semver": "^5.5.0" + } + }, + "node_modules/tiny-async-pool/node_modules/semver": { + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/tinyglobby": { + "version": "0.2.17", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz", + "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==", + "dev": true, + "license": "MIT", + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.4" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "node_modules/tmp": { + "version": "0.2.7", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.7.tgz", + "integrity": "sha512-e0votIpp4Uo2AJYSzVHV6xCcawuiez3DzqDAbrTc3YxBkplN6e+dM13ZeIcZnDg/QpSuU2zfZ3rzwY8ukEnaXw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=14.14" + } + }, + "node_modules/tmp-promise": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/tmp-promise/-/tmp-promise-3.0.3.tgz", + "integrity": "sha512-RwM7MoPojPxsOBYnyd2hy0bxtIlVrihNs9pj5SUvY8Zz1sQcQG2tG1hSr8PDxfgEB8RNKDhqbIlroIarSNDNsQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "tmp": "^0.2.0" + } + }, + "node_modules/toidentifier": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", + "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", + "license": "MIT", + "engines": { + "node": ">=0.6" + } + }, + "node_modules/truncate-utf8-bytes": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/truncate-utf8-bytes/-/truncate-utf8-bytes-1.0.2.tgz", + "integrity": "sha512-95Pu1QXQvruGEhv62XCMO3Mm90GscOCClvrIUwCM0PYOXK3kaF3l3sIHxx71ThJfcbM2O5Au6SO3AWCSEfW4mQ==", + "dev": true, + "license": "WTFPL", + "dependencies": { + "utf8-byte-length": "^1.0.1" + } + }, + "node_modules/tslib": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", + "dev": true, + "license": "0BSD" + }, + "node_modules/type-fest": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.13.1.tgz", + "integrity": "sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==", + "dev": true, + "license": "(MIT OR CC0-1.0)", + "optional": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/type-is": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-2.1.0.tgz", + "integrity": "sha512-faYHw0anBbc/kWF3zFTEnxSFOAGUX9GFbOBthvDdLsIlEoWOFOtS0zgCiQYwIskL9iGXZL3kAXD8OoZ4GmMATA==", + "license": "MIT", + "dependencies": { + "content-type": "^2.0.0", + "media-typer": "^1.1.0", + "mime-types": "^3.0.0" + }, + "engines": { + "node": ">= 18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/type-is/node_modules/content-type": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-2.0.0.tgz", + "integrity": "sha512-j/O/d7GcZCyNl7/hwZAb606rzqkyvaDctLmckbxLzHvFBzTJHuGEdodATcP3yIRoDrLHkIATJuvzbFlp/ki2cQ==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/type-is/node_modules/mime-db": { + "version": "1.54.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz", + "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/type-is/node_modules/mime-types": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.2.tgz", + "integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==", + "license": "MIT", + "dependencies": { + "mime-db": "^1.54.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/typescript": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz", + "integrity": "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/undici": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/undici/-/undici-7.28.0.tgz", + "integrity": "sha512-cRZYrTDwWznlnRiPjggAGxZXanty6M8RV1ff8Wm4LWXBp7/IG8v5DnOm74DtUBp9OONpK75YlPnIjQqX0dBDtA==", + "dev": true, + "license": "MIT", + "optional": true, + "engines": { + "node": ">=20.18.1" + } + }, + "node_modules/undici-types": { + "version": "7.18.2", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.18.2.tgz", + "integrity": "sha512-AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w==", + "dev": true, + "license": "MIT" + }, + "node_modules/universalify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", + "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/unpipe": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/unzipper": { + "version": "0.12.5", + "resolved": "https://registry.npmjs.org/unzipper/-/unzipper-0.12.5.tgz", + "integrity": "sha512-tXYOi9R57Uj/2Z25SOs5RRSzq886MBQj2gY8dPL+xl/kv6s6SvByoKfAtvfVeEuhntWDgjd2o9p2lb4TVPAz0A==", + "dev": true, + "license": "MIT", + "dependencies": { + "bluebird": "~3.7.2", + "duplexer2": "~0.1.4", + "fs-extra": "11.3.1", + "graceful-fs": "^4.2.2", + "node-int64": "^0.4.0" + } + }, + "node_modules/unzipper/node_modules/fs-extra": { + "version": "11.3.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.3.1.tgz", + "integrity": "sha512-eXvGGwZ5CL17ZSwHWd3bbgk7UUpF6IFHtP57NYYakPvHOs8GDgDe5KJI36jIJzDkJ6eJjuzRA8eBQb6SkKue0g==", + "dev": true, + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=14.14" + } + }, + "node_modules/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/vary": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/web-push": { + "version": "3.6.7", + "resolved": "https://registry.npmjs.org/web-push/-/web-push-3.6.7.tgz", + "integrity": "sha512-OpiIUe8cuGjrj3mMBFWY+e4MMIkW3SVT+7vEIjvD9kejGUypv8GPDf84JdPWskK8zMRIJ6xYGm+Kxr8YkPyA0A==", + "license": "MPL-2.0", + "dependencies": { + "asn1.js": "^5.3.0", + "http_ece": "1.2.0", + "https-proxy-agent": "^7.0.0", + "jws": "^4.0.0", + "minimist": "^1.2.5" + }, + "bin": { + "web-push": "src/cli.js" + }, + "engines": { + "node": ">= 16" + } + }, + "node_modules/webcrypto-core": { + "version": "1.9.2", + "resolved": "https://registry.npmjs.org/webcrypto-core/-/webcrypto-core-1.9.2.tgz", + "integrity": "sha512-gsXecm82UQNlTBURJGuqOWy1Ww08S3kZUcr3aOJS02Pk0xLtkfeUAVC0u0xhgdonFme80edSJUIJyuvL/7250Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@peculiar/asn1-schema": "^2.7.0", + "@peculiar/json-schema": "^1.1.12", + "@peculiar/utils": "^2.0.2", + "asn1js": "^3.0.10", + "tslib": "^2.8.1" + } + }, + "node_modules/which": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/which/-/which-5.0.0.tgz", + "integrity": "sha512-JEdGzHwwkrbWoGOlIHqQ5gtprKGOenpDHpxE9zVR1bWbOtYRyPPHMe9FaP6x61CmNaTThSkb0DAJte5jD+DmzQ==", + "dev": true, + "license": "ISC", + "dependencies": { + "isexe": "^3.1.1" + }, + "bin": { + "node-which": "bin/which.js" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/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==", + "license": "ISC" + }, + "node_modules/ws": { + "version": "8.21.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.21.0.tgz", + "integrity": "sha512-Vsp28b7DRcimFQvrqu2Wek3z1iYxDCWqHYB8Qsnk/S4RfaCQzPGPyBNuVjJV3cd6UiKtUtp6sNM77gWvzcCH+g==", + "license": "MIT", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "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/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + } + } +} diff --git a/desktop/package.json b/desktop/package.json new file mode 100644 index 0000000..101f41d --- /dev/null +++ b/desktop/package.json @@ -0,0 +1,33 @@ +{ + "name": "web-terminal-desktop", + "version": "0.1.0", + "private": true, + "type": "module", + "author": "Yaojia Wang", + "description": "Electron desktop shell (Mac + Windows) that embeds the web-terminal server + node-pty. All-in-one: a native terminal that is also the LAN server.", + "main": "build/main.cjs", + "engines": { + "node": ">=18" + }, + "scripts": { + "typecheck": "tsc -p tsconfig.json --noEmit", + "build": "node build.mjs", + "build:server": "cd .. && npm run build && npm run build:web", + "build:all": "npm run build:server && npm run build", + "start": "npm run build:all && electron .", + "dist:mac": "npm run build:all && electron-builder --mac", + "dist:win": "npm run build:all && electron-builder --win" + }, + "dependencies": { + "express": "^5.2.1", + "node-pty": "^1.1.0", + "web-push": "3.6.7", + "ws": "^8.21.0" + }, + "devDependencies": { + "electron": "^43.0.0", + "electron-builder": "^26.15.3", + "esbuild": "^0.28.1", + "typescript": "^6.0.3" + } +} diff --git a/desktop/resources/README.md b/desktop/resources/README.md new file mode 100644 index 0000000..57e0276 --- /dev/null +++ b/desktop/resources/README.md @@ -0,0 +1,13 @@ +# desktop/resources + +App + tray icons for electron-builder packaging. + +Required for `npm run dist:mac` / `dist:win` (P1 packaging, not needed for dev/typecheck/tests): + +- `icon.icns` — macOS app icon (1024×1024 source, `.icns`). +- `icon.ico` — Windows app icon (256×256 `.ico`). +- `trayTemplate.png` / `trayTemplate@2x.png` — menubar/tray icon (macOS template image, monochrome). + +Generate from `../../public/icon.svg` (the existing PWA icon) with any icon toolchain +(e.g. `electron-icon-builder`, or `iconutil` on macOS). These are binary assets and +are intentionally not committed as placeholders — add them before the first packaged build. diff --git a/desktop/resources/icon.png b/desktop/resources/icon.png new file mode 100644 index 0000000..b458990 Binary files /dev/null and b/desktop/resources/icon.png differ diff --git a/desktop/src/deep-link.ts b/desktop/src/deep-link.ts new file mode 100644 index 0000000..7ba1809 --- /dev/null +++ b/desktop/src/deep-link.ts @@ -0,0 +1,73 @@ +/** + * desktop/src/deep-link.ts — B2: terminalapp:// deep-link parsing. + * + * Maps the OS custom-protocol URL `terminalapp://join/` onto the existing + * frontend's `/?join=` route (see DESKTOP_PLAN §4.3). Pure + hand-validated + * (no URL-parsing surprises): the URL class does the heavy lifting inside a + * try/catch so a malformed link yields null instead of throwing at the boundary. + */ + +import type { DeepLink } from './types.js' + +/** Custom protocol registered with the OS (electron app.setAsDefaultProtocolClient). */ +export const DEEP_LINK_PROTOCOL = 'terminalapp' + +/** The single legal host segment: terminalapp://join/. */ +const JOIN_HOST = 'join' + +/** URL.protocol includes the trailing colon, so compare against that form. */ +const PROTOCOL_WITH_COLON = `${DEEP_LINK_PROTOCOL}:` + +/** + * Parse `terminalapp://join/` into a DeepLink, or null if it is not a + * well-formed join link. Rejects: wrong scheme, wrong host, missing/empty id, + * ids with '/' or control chars, and anything the URL parser chokes on. + */ +export function parseDeepLink(url: string): DeepLink | null { + let parsed: URL + try { + parsed = new URL(url) + } catch { + return null + } + + if (parsed.protocol !== PROTOCOL_WITH_COLON) return null + if (parsed.host !== JOIN_HOST) return null + + // pathname is '/' for a single segment; strip the leading slash and require + // exactly one non-empty segment (no nested paths like join/a/b). + const rawPath = parsed.pathname.replace(/^\/+/, '') + if (rawPath === '' || rawPath.includes('/')) return null + + const id = safeDecode(rawPath) + if (id === null) return null + if (!isValidId(id)) return null + + return { join: id } +} + +/** Render a DeepLink as the frontend query-route the window navigates to. */ +export function deepLinkToPath(link: DeepLink): string { + return `/?join=${encodeURIComponent(link.join)}` +} + +/** decodeURIComponent can throw on malformed percent-encoding — narrow to null. */ +function safeDecode(value: string): string | null { + try { + return decodeURIComponent(value) + } catch { + return null + } +} + +/** An id is valid if it is non-empty, not whitespace-only, and control-char free. */ +function isValidId(id: string): boolean { + if (id.trim() === '') return false + if (id.includes('/')) return false + // Reject C0/C1 control characters (they can't be part of a real session id). + for (const ch of id) { + const code = ch.charCodeAt(0) + if (code <= 0x1f || (code >= 0x7f && code <= 0x9f)) return false + } + return true +} diff --git a/desktop/src/embedded-server.ts b/desktop/src/embedded-server.ts new file mode 100644 index 0000000..04b2254 --- /dev/null +++ b/desktop/src/embedded-server.ts @@ -0,0 +1,72 @@ +/** + * desktop/src/embedded-server.ts — GLUE: start the reused backend server inside + * the Electron main process. + * + * All pure logic lives in the sibling modules (port / server-config / shell); + * this file only wires them to electron + the compiled backend under dist/. It + * resolves a DEFINITE free port BEFORE loadConfig (the backend derives + * allowedOrigins from the port — config.ts M1), then dynamically imports the + * compiled ESM server (dist/server.js) and config (dist/config.js) by absolute + * file URL. The specifiers are computed so esbuild leaves them external (never + * bundling native node-pty). The Config type import from ../../src/types.js is + * type-only and erased at build time — no runtime dependency on src/. + */ + +import path from 'node:path' +import { pathToFileURL } from 'node:url' +import { app } from 'electron' +import type { Config } from '../../src/types.js' +import type { DesktopPrefs, EmbeddedServer } from './types.js' +import type { Logger } from './logger.js' +import { pickFreePort } from './port.js' +import { buildServerEnv } from './server-config.js' + +/** Default listen port when the user hasn't pinned one (free-port fallback still applies). */ +const DEFAULT_PORT = 3000 + +export interface EmbeddedServerDeps { + readonly prefs: DesktopPrefs + readonly logger: Logger +} + +/** The runtime handle the compiled backend's startServer() returns. */ +interface ServerHandle { + close(): Promise +} + +/** + * Start the embedded backend and return a lifecycle handle. Throws (after + * logging) if the compiled server can't be imported or fails to start — the app + * is useless without it, so callers must surface the failure, not swallow it. + */ +export async function startEmbeddedServer(deps: EmbeddedServerDeps): Promise { + const { prefs, logger } = deps + const port = await pickFreePort(prefs.port ?? DEFAULT_PORT) + const env = buildServerEnv({ prefs, port, platform: process.platform, env: process.env }) + + // dist/ is a sibling of the desktop dir in dev; under resourcesPath when packaged. + const base = app.isPackaged ? process.resourcesPath : path.join(app.getAppPath(), '..') + const configUrl = pathToFileURL(path.join(base, 'dist', 'config.js')).href + const serverUrl = pathToFileURL(path.join(base, 'dist', 'server.js')).href + + try { + const { loadConfig } = (await import(configUrl)) as { + loadConfig: (e: Record) => Config + } + const { startServer } = (await import(serverUrl)) as { + startServer: (c: Config) => ServerHandle + } + const cfg = loadConfig(env) + const handle = startServer(cfg) + logger.info(`embedded server listening on http://${cfg.bindHost}:${cfg.port}`) + return { + port, + bindHost: cfg.bindHost, + allowedOrigins: cfg.allowedOrigins, + close: () => handle.close(), + } + } catch (err: unknown) { + logger.error('failed to start embedded server', err) + throw err + } +} diff --git a/desktop/src/live-poll.ts b/desktop/src/live-poll.ts new file mode 100644 index 0000000..225b406 --- /dev/null +++ b/desktop/src/live-poll.ts @@ -0,0 +1,75 @@ +/** + * desktop/src/live-poll.ts — B2: validate + map GET /live-sessions. + * + * The response body is untrusted external JSON (`unknown`), so every field is + * hand-checked before it becomes a SessionStatusSnapshot — matching the repo's + * no-validation-library convention (src/config.ts hand-parses everything). + * Boundary contract: never throw. Garbage in → [] or filtered-out elements out. + * + * The /live-sessions endpoint carries id/status/cwd but not approval state, so + * pendingApproval is fixed false and gate null here; approval snapshots come + * from the hook status bus, not this poll. + */ + +import type { DesktopClaudeStatus, SessionStatusSnapshot } from './types.js' + +/** Valid ClaudeStatus literals (mirrors backend ClaudeStatus, src/types.ts). */ +const VALID_STATUSES: ReadonlySet = new Set([ + 'working', + 'waiting', + 'idle', + 'unknown', + 'stuck', +]) + +/** + * Map the untrusted /live-sessions JSON body to snapshots. A non-array body + * yields []; elements missing a string id or a valid status literal are dropped. + */ +export function mapLiveSessions(raw: unknown): SessionStatusSnapshot[] { + if (!Array.isArray(raw)) return [] + + const snapshots: SessionStatusSnapshot[] = [] + for (const element of raw) { + const snapshot = toSnapshot(element) + if (snapshot !== null) snapshots.push(snapshot) + } + return snapshots +} + +/** Narrow one untrusted element to a snapshot, or null if it is invalid. */ +function toSnapshot(element: unknown): SessionStatusSnapshot | null { + if (!isRecord(element)) return null + + const { id, status, cwd, exited } = element + if (typeof id !== 'string' || id === '') return null + if (typeof status !== 'string' || !VALID_STATUSES.has(status)) return null + // Drop already-exited sessions: the backend keeps them in list() until they + // are reclaimed, but a post-exit status flip must not fire a stale "needs + // attention" notification. + if (exited === true) return null + + return { + sessionId: id, + claudeStatus: status as DesktopClaudeStatus, + pendingApproval: false, + gate: null, + title: titleFromCwd(cwd), + } +} + +/** Last path segment of a cwd string, or undefined when cwd is absent/blank. + * Splits on both separators so a Windows backslash path (an explicitly + * supported target — shell.ts defaults to powershell.exe) yields the folder, + * not the whole path. */ +function titleFromCwd(cwd: unknown): string | undefined { + if (typeof cwd !== 'string' || cwd === '') return undefined + const segments = cwd.split(/[\\/]/).filter((segment) => segment !== '') + const last = segments[segments.length - 1] + return last === undefined ? undefined : last +} + +/** Type guard: value is a non-null plain object (indexable by string). */ +function isRecord(value: unknown): value is Record { + return typeof value === 'object' && value !== null && !Array.isArray(value) +} diff --git a/desktop/src/logger.ts b/desktop/src/logger.ts new file mode 100644 index 0000000..8bd321a --- /dev/null +++ b/desktop/src/logger.ts @@ -0,0 +1,32 @@ +/** + * desktop/src/logger.ts — B3: tiny structured logger (GLUE). + * + * A one-line-per-message logger the glue modules (settings-store, embedded- + * server, and the Electron main files) inject instead of calling console.* — + * the project bans console.log everywhere (coding-style). Info goes to stdout; + * warn/error go to stderr. error() appends the underlying Error's message so a + * failure's cause is visible without a stack dump. No dependencies, no state. + */ + +export interface Logger { + info(msg: string): void + warn(msg: string): void + error(msg: string, err?: unknown): void +} + +/** Build a Logger that prefixes every line with `[scope]` and the level. */ +export function createLogger(scope: string): Logger { + return { + info(msg: string): void { + process.stdout.write(`[${scope}] INFO: ${msg}\n`) + }, + warn(msg: string): void { + process.stderr.write(`[${scope}] WARN: ${msg}\n`) + }, + error(msg: string, err?: unknown): void { + // Only Error carries a reliable .message; other thrown values are opaque. + const detail = err instanceof Error ? ` — ${err.message}` : '' + process.stderr.write(`[${scope}] ERROR: ${msg}${detail}\n`) + }, + } +} diff --git a/desktop/src/main.ts b/desktop/src/main.ts new file mode 100644 index 0000000..7ec29d9 --- /dev/null +++ b/desktop/src/main.ts @@ -0,0 +1,251 @@ +/** + * desktop/src/main.ts — the Electron entry point (glue only). + * + * Wires the desktop shell together: starts the embedded server (which hosts the + * unchanged frontend), opens the window against http://127.0.0.1:, installs + * the app menu + tray + login item, registers the terminalapp:// deep link with a + * single-instance lock, and runs a background poller that turns session-status + * transitions into native notifications (the desktop app's core value over a + * browser tab). All real logic lives in the pure modules consumed below; this + * file owns only Electron lifecycle and dependency injection. + * + * __dirname is available because esbuild emits this as a CJS bundle (build.mjs). + */ +import { app, BrowserWindow, Menu, Notification, Tray } from 'electron' +import path from 'node:path' + +import { createLogger } from './logger.js' +import { createSettingsStore } from './settings-store.js' +import { startEmbeddedServer } from './embedded-server.js' +import { computeNotifications } from './notifications.js' +import { mapLiveSessions } from './live-poll.js' +import { parseDeepLink, deepLinkToPath, DEEP_LINK_PROTOCOL } from './deep-link.js' +import { createMainWindow } from './window.js' +import { buildAppMenu } from './menu.js' +import { createTray } from './tray.js' +import type { NotifyOptions } from './notify-policy.js' +import type { EmbeddedServer, SessionStatusSnapshot } from './types.js' + +/** Live-session poll cadence — cheap loopback GET, so a few seconds is plenty. */ +const POLL_INTERVAL_MS = 4000 +/** IPC channel used to hand a deep-link path to the (optional) preload bridge. */ +const DEEP_LINK_CHANNEL = 'deep-link' +/** Preload bundle name, emitted next to this file by esbuild. */ +const PRELOAD_FILE = 'preload.cjs' +/** Tray icon location relative to the build/ output dir (shipped under assets/). */ +const TRAY_ICON_SUBPATH = path.join('..', 'assets', 'trayTemplate.png') + +const logger = createLogger('main') +const settings = createSettingsStore(app.getPath('userData'), process.platform, logger) + +let mainWindow: BrowserWindow | null = null +let tray: Tray | null = null +let server: EmbeddedServer | null = null +let pollTimer: NodeJS.Timeout | null = null +let isQuitting = false +let isShuttingDown = false +// Previous snapshot map, keyed by sessionId; replaced (never mutated) each tick. +let prevSnapshots: ReadonlyMap = new Map() +// Deep link captured before window/server were ready (cold start); dispatched once +// onReady finishes. macOS 'open-url' can fire pre-ready; Win/Linux pass it in argv. +let pendingDeepLink: string | null = null +// The first successful poll seeds the baseline WITHOUT notifying, so launching with +// pre-existing waiting/stuck sessions (e.g. openAtLogin, window unfocused) does not +// burst-notify for transitions that happened before the app started. +let pollPrimed = false + +function errorMessage(err: unknown): string { + return err instanceof Error ? err.message : String(err) +} + +/** Bring the window to the foreground (restoring/showing if hidden or minimized). */ +function focusWindow(): void { + if (!mainWindow) return + if (mainWindow.isMinimized()) mainWindow.restore() + mainWindow.show() + mainWindow.focus() +} + +/** Find the first terminalapp:// argument in a process argv list. */ +function findDeepLinkArg(argv: readonly string[]): string | null { + const prefix = `${DEEP_LINK_PROTOCOL}://` + return argv.find((arg) => arg.startsWith(prefix)) ?? null +} + +/** + * Apply a deep link: validate it, then navigate the window same-origin to + * /?join= (the mechanism the unchanged frontend actually understands). The + * IPC send is a best-effort cooperative hook for any future in-page handler. + */ +function dispatchDeepLink(url: string): void { + const link = parseDeepLink(url) + if (!link) { + logger.warn(`ignoring malformed deep link: ${url}`) + return + } + if (!mainWindow || !server) { + // Cold start: window/server not up yet — buffer for onReady to dispatch. + pendingDeepLink = url + return + } + + const targetPath = deepLinkToPath(link) + focusWindow() + mainWindow.webContents.send(DEEP_LINK_CHANNEL, targetPath) + void mainWindow.loadURL(`http://127.0.0.1:${server.port}${targetPath}`) +} + +/** Hide-to-tray on window close (keep the server alive) unless we're quitting. */ +function installWindowCloseGuard(win: BrowserWindow): void { + win.on('close', (event) => { + if (isQuitting) return + event.preventDefault() + win.hide() + }) + win.on('closed', () => { + mainWindow = null + }) +} + +async function pollOnce(base: string): Promise { + // Read prefs live each tick so notify toggles take effect without a restart + // (a settings UI wiring settings.set() lands in P2). NOTE: /live-sessions + // carries status only, not approval state, so mapLiveSessions fixes + // pendingApproval=false — the notifyOnApproval branch is driven by the hook + // status bus (P2/D8), not this poll; status→'waiting' is the current proxy. + const prefs = settings.get() + try { + const res = await fetch(`${base}/live-sessions`) + if (!res.ok) { + logger.warn(`live-sessions poll returned ${res.status}`) + return + } + const json: unknown = await res.json() + const snapshots = mapLiveSessions(json) + const opts: NotifyOptions = { + windowFocused: mainWindow?.isFocused() ?? false, + notifyOnApproval: prefs.notifyOnApproval, + notifyOnStatusChange: prefs.notifyOnStatusChange, + } + const { decisions, next } = computeNotifications(prevSnapshots, snapshots, opts) + if (pollPrimed) { + for (const decision of decisions) { + new Notification({ title: decision.title, body: decision.body }).show() + } + } else { + // Seed the baseline silently on the first successful poll (no burst). + pollPrimed = true + } + prevSnapshots = next + } catch (err: unknown) { + // A poll failure (server warming up, transient fetch error) must never crash. + logger.warn(`live-sessions poll failed: ${errorMessage(err)}`) + } +} + +function startPoller(base: string): void { + pollTimer = setInterval(() => { + void pollOnce(base) + }, POLL_INTERVAL_MS) +} + +async function onReady(): Promise { + const prefs = settings.get() + server = await startEmbeddedServer({ prefs, logger }) + const base = `http://127.0.0.1:${server.port}` + + mainWindow = createMainWindow(`${base}/`, path.join(__dirname, PRELOAD_FILE)) + installWindowCloseGuard(mainWindow) + + Menu.setApplicationMenu(buildAppMenu()) + try { + tray = createTray(path.join(__dirname, TRAY_ICON_SUBPATH), { + show: () => focusWindow(), + quit: () => { + isQuitting = true + app.quit() + }, + }) + } catch (err: unknown) { + // A missing/invalid tray icon (cosmetic) must not take down a working app. + logger.warn(`tray unavailable (continuing without it): ${errorMessage(err)}`) + } + + // Only register auto-launch when the user enabled it. Calling this on an + // unsigned / non-standard-location build emits a native "Operation not permitted" + // line, so skip it in the default (off) case to keep the log clean. + if (prefs.openAtLogin) { + try { + app.setLoginItemSettings({ openAtLogin: true }) + } catch (err: unknown) { + logger.warn(`could not set login item: ${errorMessage(err)}`) + } + } + startPoller(base) + + // Cold-start deep link: macOS may have buffered an early 'open-url'; Windows/ + // Linux deliver it in argv. Dispatch now that the window + server exist. + const coldLink = pendingDeepLink ?? findDeepLinkArg(process.argv) + if (coldLink) { + pendingDeepLink = null + dispatchDeepLink(coldLink) + } + + logger.info(`desktop ready on ${base} (bind ${server.bindHost})`) +} + +/** Graceful teardown: stop the poller, close the server, then hard-exit. */ +async function shutdown(): Promise { + if (pollTimer) { + clearInterval(pollTimer) + pollTimer = null + } + try { + if (server) await server.close() + } catch (err: unknown) { + logger.error('error while closing embedded server', err) + } finally { + tray?.destroy() + app.exit(0) + } +} + +if (!app.requestSingleInstanceLock()) { + // Another instance owns the lock; it will receive our argv via 'second-instance'. + app.quit() +} else { + app.setAsDefaultProtocolClient(DEEP_LINK_PROTOCOL) + + app.on('second-instance', (_event, argv) => { + focusWindow() + const url = findDeepLinkArg(argv) + if (url) dispatchDeepLink(url) + }) + + // macOS delivers deep links via 'open-url', not argv. + app.on('open-url', (_event, url) => { + dispatchDeepLink(url) + }) + + app.on('activate', () => { + focusWindow() + }) + + // Tray keeps the app (and embedded server) alive after the last window closes, + // so remote devices stay connected. Intentionally does not quit on any platform. + app.on('window-all-closed', () => {}) + + app.on('before-quit', (event) => { + isQuitting = true + if (isShuttingDown) return + isShuttingDown = true + // Take over quit so the async server.close() actually completes before exit. + event.preventDefault() + void shutdown() + }) + + app.whenReady().then(onReady).catch((err: unknown) => { + logger.error('failed to start desktop app', err) + app.quit() + }) +} diff --git a/desktop/src/menu.ts b/desktop/src/menu.ts new file mode 100644 index 0000000..5dc6ae5 --- /dev/null +++ b/desktop/src/menu.ts @@ -0,0 +1,53 @@ +/** + * desktop/src/menu.ts — the native application menu. + * + * Built entirely from Electron's built-in roles (copy/paste/reload/zoom/…) so it + * needs no cooperation from the (unchanged) frontend. There are deliberately no + * page-driving custom actions here — the desktop shell adds native chrome, not + * new terminal behaviour. The caller passes the result to Menu.setApplicationMenu. + */ +import { Menu, type MenuItemConstructorOptions } from 'electron' + +export function buildAppMenu(): Menu { + const isMac = process.platform === 'darwin' + + const template: MenuItemConstructorOptions[] = [ + ...(isMac ? [{ role: 'appMenu' } as MenuItemConstructorOptions] : []), + { + label: 'File', + submenu: [isMac ? { role: 'close' } : { role: 'quit' }], + }, + { + label: 'Edit', + submenu: [ + { role: 'undo' }, + { role: 'redo' }, + { type: 'separator' }, + { role: 'cut' }, + { role: 'copy' }, + { role: 'paste' }, + { role: 'selectAll' }, + ], + }, + { + label: 'View', + submenu: [ + { role: 'reload' }, + { role: 'forceReload' }, + { role: 'toggleDevTools' }, + { type: 'separator' }, + { role: 'resetZoom' }, + { role: 'zoomIn' }, + { role: 'zoomOut' }, + { type: 'separator' }, + { role: 'togglefullscreen' }, + ], + }, + { + label: 'Window', + submenu: [{ role: 'minimize' }, { role: 'close' }], + }, + ] + + return Menu.buildFromTemplate(template) +} diff --git a/desktop/src/notifications.ts b/desktop/src/notifications.ts new file mode 100644 index 0000000..b02733d --- /dev/null +++ b/desktop/src/notifications.ts @@ -0,0 +1,45 @@ +/** + * desktop/src/notifications.ts — B2: batch notification diff across sessions. + * + * Given the previous per-session snapshots and the latest poll, compute which + * sessions warrant a native notification (delegating each decision to + * notify-policy's shouldNotify) and the NEW snapshot map to carry forward. + * + * Pure: never mutates `prev`. The returned `next` map is rebuilt only from the + * current snapshots, so sessions that ended (absent this round) naturally drop + * out and won't re-fire on their next appearance. + */ + +import { shouldNotify, type NotifyOptions } from './notify-policy.js' +import type { NotifyDecision, SessionStatusSnapshot } from './types.js' + +/** Result of diffing a poll: what to fire now + the state to remember. */ +export interface NotificationsResult { + readonly decisions: readonly NotifyDecision[] + /** Fresh snapshot map (sessionId → snapshot) for the next round. Handed off as + * ReadonlyMap so callers can't mutate the carried-forward state (immutability + * is a CRITICAL project rule); the concrete Map is still assignable. */ + readonly next: ReadonlyMap +} + +/** + * Diff the latest snapshots against the previous round. Collect only the + * notifying decisions, and build a new snapshot map keyed by sessionId. The + * input `prev` map is treated as read-only and left untouched. + */ +export function computeNotifications( + prev: ReadonlyMap, + snapshots: readonly SessionStatusSnapshot[], + opts: NotifyOptions, +): NotificationsResult { + const decisions: NotifyDecision[] = [] + const next = new Map() + + for (const snapshot of snapshots) { + const decision = shouldNotify(prev.get(snapshot.sessionId), snapshot, opts) + if (decision.notify) decisions.push(decision) + next.set(snapshot.sessionId, snapshot) + } + + return { decisions, next } +} diff --git a/desktop/src/notify-policy.ts b/desktop/src/notify-policy.ts new file mode 100644 index 0000000..dc45d85 --- /dev/null +++ b/desktop/src/notify-policy.ts @@ -0,0 +1,105 @@ +/** + * desktop/src/notify-policy.ts — B2: pure notification policy for one session. + * + * Decides whether a status transition (prev → next snapshot) is worth a native + * OS notification, and what it should say. This is the "core value" of the + * desktop shell (DESKTOP_PLAN §4.1): approval gates and status changes surface + * even when the window is minimized — but never nag when the user is looking. + * + * Pure & side-effect free; embedded-server/notifications glue calls it per + * snapshot and fires the actual Electron Notification. + */ + +import type { NotifyDecision, SessionStatusSnapshot } from './types.js' + +/** Runtime context the policy needs beyond the two snapshots. */ +export interface NotifyOptions { + /** True when the app window is focused — suppresses all notifications. */ + readonly windowFocused: boolean + /** User pref: notify when a session raises a pending approval. */ + readonly notifyOnApproval: boolean + /** User pref: notify when a session's Claude status changes. */ + readonly notifyOnStatusChange: boolean +} + +/** Length of the session-id prefix used in the fallback label. */ +const ID_LABEL_LENGTH = 8 + +/** A silent decision — reused whenever nothing is worth notifying about. */ +const NO_NOTIFY: NotifyDecision = { notify: false, title: '', body: '' } + +/** + * Statuses worth a notification. 'working'/'idle'/'unknown' are steady-state + * noise; only 'waiting' (needs you) and 'stuck' (something's wrong) are notable. + */ +const NOTABLE_STATUSES: ReadonlySet = new Set(['waiting', 'stuck']) + +/** + * Decide whether next warrants a notification, given the previous snapshot and + * runtime options. Priority: focus-suppression > approval rising-edge > status + * change to a notable status > silence. + */ +export function shouldNotify( + prev: SessionStatusSnapshot | undefined, + next: SessionStatusSnapshot, + opts: NotifyOptions, +): NotifyDecision { + // 1. Don't nag when the user is already looking at the app. + if (opts.windowFocused) return NO_NOTIFY + + // 2. Approval rising edge takes priority — a held gate is the most actionable. + if (isApprovalRisingEdge(prev, next) && opts.notifyOnApproval) { + return approvalDecision(next) + } + + // 3. Status change into a notable state ('waiting' | 'stuck'). + if (opts.notifyOnStatusChange && isNotableStatusChange(prev, next)) { + return statusDecision(next) + } + + return NO_NOTIFY +} + +/** True only on the transition into pendingApproval (false/undefined → true). */ +function isApprovalRisingEdge( + prev: SessionStatusSnapshot | undefined, + next: SessionStatusSnapshot, +): boolean { + return next.pendingApproval === true && prev?.pendingApproval !== true +} + +/** True when the status actually changed and the new status is notable. */ +function isNotableStatusChange( + prev: SessionStatusSnapshot | undefined, + next: SessionStatusSnapshot, +): boolean { + if (prev?.claudeStatus === next.claudeStatus) return false + return NOTABLE_STATUSES.has(next.claudeStatus) +} + +/** Notification for a held approval gate, naming the gate kind when known. */ +function approvalDecision(next: SessionStatusSnapshot): NotifyDecision { + // 'plan' gates read "plan approval"; every other gate (incl. null/tool) reads + // "tool approval" — never the ungrammatical "tool tool". + const gatePhrase = next.gate === 'plan' ? 'plan approval' : 'tool approval' + return { + notify: true, + title: 'Approval needed', + body: `${sessionLabel(next)} is waiting for ${gatePhrase}.`, + } +} + +/** Notification for a notable status change ('waiting' | 'stuck'). */ +function statusDecision(next: SessionStatusSnapshot): NotifyDecision { + const title = next.claudeStatus === 'stuck' ? 'Session may be stuck' : 'Session needs attention' + return { + notify: true, + title, + body: `${sessionLabel(next)} is now ${next.claudeStatus}.`, + } +} + +/** Human label for a session: its title, else a short id prefix. */ +function sessionLabel(snapshot: SessionStatusSnapshot): string { + return snapshot.title ?? `session ${snapshot.sessionId.slice(0, ID_LABEL_LENGTH)}` +} diff --git a/desktop/src/port.ts b/desktop/src/port.ts new file mode 100644 index 0000000..f0a1fbb --- /dev/null +++ b/desktop/src/port.ts @@ -0,0 +1,63 @@ +/** + * desktop/src/port.ts — pick a bindable TCP port for the embedded server. + * + * The backend derives allowedOrigins from the concrete port (config.ts M1), so + * the desktop shell must resolve a DEFINITE port BEFORE loadConfig — never hand + * loadConfig a PORT=0, or http://127.0.0.1: would fall off the Origin + * whitelist. We probe the preferred port on the loopback interface; if it is + * taken (EADDRINUSE) we ask the OS for a free one (listen on 0), read it, and + * close — so the returned port was confirmed bindable a moment ago. + */ + +import net from 'node:net' + +/** Loopback host we probe against — the embedded server always binds here in private mode. */ +const LOOPBACK_HOST = '127.0.0.1' +/** listen(OS_ASSIGN_PORT) → the kernel picks a free ephemeral port for us. */ +const OS_ASSIGN_PORT = 0 + +/** + * Return `preferred` if it can be bound on 127.0.0.1; otherwise an OS-assigned + * free port. A bind failure that is EADDRINUSE falls back to an OS-assigned + * port; any other error (e.g. EACCES on a privileged port) is rethrown. + */ +export async function pickFreePort(preferred: number): Promise { + try { + return await tryBind(preferred) + } catch (err: unknown) { + if (isAddrInUse(err)) return tryBind(OS_ASSIGN_PORT) + throw err + } +} + +/** Bind a throwaway server on `port` (0 → OS-assigned), read the actual port, close, resolve it. */ +function tryBind(port: number): Promise { + return new Promise((resolve, reject) => { + const server = net.createServer() + server.on('error', (err) => { + server.close() + reject(err) + }) + server.listen(port, LOOPBACK_HOST, () => { + const address = server.address() + const bound = address !== null && typeof address === 'object' ? address.port : null + server.close(() => { + if (bound === null) { + reject(new Error('pickFreePort: server.address() did not return an AddressInfo')) + return + } + resolve(bound) + }) + }) + }) +} + +/** True iff `err` is a Node errno error whose code is EADDRINUSE. */ +function isAddrInUse(err: unknown): boolean { + return ( + typeof err === 'object' && + err !== null && + 'code' in err && + err.code === 'EADDRINUSE' + ) +} diff --git a/desktop/src/prefs.ts b/desktop/src/prefs.ts new file mode 100644 index 0000000..3d9372d --- /dev/null +++ b/desktop/src/prefs.ts @@ -0,0 +1,104 @@ +/** + * desktop/src/prefs.ts — B3: pure prefs defaults, validation & merge. + * + * Preferences are persisted as JSON in the app's userData dir (see + * settings-store.ts). Everything read back from disk is UNTRUSTED (a user could + * hand-edit it, or an older/newer app version wrote a different shape), so + * validatePrefs re-derives a fully-formed DesktopPrefs field-by-field, falling + * back to the default whenever a field is the wrong type or out of range — it + * never throws. Validation is hand-rolled (no zod), matching src/config.ts. + * + * All functions are pure and return NEW objects (immutability — coding-style + * CRITICAL rule); they never mutate their arguments. + */ + +import type { DesktopPrefs } from './types.js' + +/** Valid TCP port range (inclusive); mirrors src/config.ts's PORT bounds. */ +const MIN_PORT = 1 +const MAX_PORT = 65535 + +/** + * The baseline preferences for a fresh install. LAN sharing is OFF by default — + * this app hands a full shell to anyone who can reach the port, so binding to + * 127.0.0.1 (private) is the safe default; LAN exposure is an explicit opt-in. + * + * `platform` is accepted for future per-platform defaults; today's defaults are + * platform-independent, but keeping the parameter avoids a signature change + * later (callers already thread the platform through). + */ +export function defaultPrefs(platform: NodeJS.Platform): DesktopPrefs { + void platform // reserved for future per-platform defaults (see doc-comment) + return { + port: null, + lanSharing: false, + shellPath: null, + openAtLogin: false, + notifyOnApproval: true, + notifyOnStatusChange: true, + } +} + +/** True iff `value` is a plain object (not null, not an array) we can index. */ +function isRecord(value: unknown): value is Record { + return typeof value === 'object' && value !== null && !Array.isArray(value) +} + +/** Adopt a boolean field, else fall back — anything non-boolean is rejected. */ +function pickBoolean(value: unknown, fallback: boolean): boolean { + return typeof value === 'boolean' ? value : fallback +} + +/** Adopt an integer port in [MIN_PORT, MAX_PORT] or an explicit null, else fall back. */ +function pickPort(value: unknown, fallback: number | null): number | null { + if (value === null) return null + if ( + typeof value === 'number' && + Number.isInteger(value) && + value >= MIN_PORT && + value <= MAX_PORT + ) { + return value + } + return fallback +} + +/** Adopt a non-empty (non-whitespace) string path or an explicit null, else fall back. */ +function pickShellPath(value: unknown, fallback: string | null): string | null { + if (value === null) return null + if (typeof value === 'string' && value.trim() !== '') return value + return fallback +} + +/** + * Re-derive a fully-formed DesktopPrefs from untrusted parsed-JSON input. + * Starts from defaults and adopts each field only when it is the right type and + * valid; a non-object `raw` (or any bad field) yields the defaults. Never throws. + */ +export function validatePrefs(raw: unknown, platform: NodeJS.Platform): DesktopPrefs { + const defaults = defaultPrefs(platform) + if (!isRecord(raw)) return defaults + return { + port: pickPort(raw['port'], defaults.port), + lanSharing: pickBoolean(raw['lanSharing'], defaults.lanSharing), + shellPath: pickShellPath(raw['shellPath'], defaults.shellPath), + openAtLogin: pickBoolean(raw['openAtLogin'], defaults.openAtLogin), + notifyOnApproval: pickBoolean(raw['notifyOnApproval'], defaults.notifyOnApproval), + notifyOnStatusChange: pickBoolean(raw['notifyOnStatusChange'], defaults.notifyOnStatusChange), + } +} + +/** + * Return a shallow copy of `patch` with `undefined`-valued fields removed, so a + * partial update never clobbers an existing pref with `undefined` (e.g. a form + * that only sends the fields it changed). + */ +function definedFieldsOf(patch: Partial): Partial { + const entries = Object.entries(patch).filter(([, value]) => value !== undefined) + return Object.fromEntries(entries) as Partial +} + +/** Immutably merge a partial patch over a base, ignoring undefined patch fields. */ +export function mergePrefs(base: DesktopPrefs, patch: Partial): DesktopPrefs { + return { ...base, ...definedFieldsOf(patch) } +} diff --git a/desktop/src/preload.ts b/desktop/src/preload.ts new file mode 100644 index 0000000..3d7f9b1 --- /dev/null +++ b/desktop/src/preload.ts @@ -0,0 +1,19 @@ +/** + * desktop/src/preload.ts — the minimal, contextIsolation-safe renderer bridge. + * + * Exposes exactly one thing: a deep-link listener. The unchanged frontend does + * not require this bridge (deep links are actually applied by main via a same- + * origin navigation to /?join=), so it is an optional, forward-looking hook + * for future page-cooperative features. Crucially it exposes NO Node access + * (no require/fs/process) — only a callback registration over one whitelisted + * IPC channel — so it cannot widen the renderer's attack surface. + */ +import { contextBridge, ipcRenderer } from 'electron' + +const DEEP_LINK_CHANNEL = 'deep-link' + +contextBridge.exposeInMainWorld('desktop', { + onDeepLink: (cb: (path: string) => void): void => { + ipcRenderer.on(DEEP_LINK_CHANNEL, (_event, path: string) => cb(path)) + }, +}) diff --git a/desktop/src/server-config.ts b/desktop/src/server-config.ts new file mode 100644 index 0000000..8175513 --- /dev/null +++ b/desktop/src/server-config.ts @@ -0,0 +1,43 @@ +/** + * desktop/src/server-config.ts — build the env overrides fed to the backend's + * loadConfig() for the embedded server. + * + * Starts from a COPY of the ambient env (never mutates it) and pins the four + * values the desktop shell controls: PORT (the free port we already resolved), + * BIND_HOST (private 127.0.0.1 by default; 0.0.0.0 only when LAN sharing is on), + * SHELL_PATH (platform-aware default so Windows gets PowerShell), and USE_TMUX + * (forced off on Windows — tmux is a *nix keepalive; elsewhere respect the + * ambient env, defaulting off). Every other ambient var passes through untouched. + */ + +import type { DesktopPrefs } from './types.js' +import { defaultShellForPlatform } from './shell.js' + +/** Loopback bind host — private mode; the window connects here and always passes Origin checks. */ +const PRIVATE_BIND_HOST = '127.0.0.1' +/** Wildcard bind host — LAN sharing (phones/tablets reconnect); opt-in, no auth. */ +const LAN_BIND_HOST = '0.0.0.0' +/** tmux keepalive is a *nix feature; the desktop shell defaults it off (and forces off on Windows). */ +const TMUX_OFF = '0' + +export interface ServerEnvInput { + readonly prefs: DesktopPrefs + readonly port: number + readonly platform: NodeJS.Platform + readonly env: NodeJS.ProcessEnv +} + +/** + * Produce the env-override object for loadConfig(). Immutable: input.env is + * spread into a NEW object and is never mutated. + */ +export function buildServerEnv(input: ServerEnvInput): Record { + const { prefs, port, platform, env } = input + return { + ...env, + PORT: String(port), + BIND_HOST: prefs.lanSharing ? LAN_BIND_HOST : PRIVATE_BIND_HOST, + SHELL_PATH: prefs.shellPath ?? defaultShellForPlatform(platform, env), + USE_TMUX: platform === 'win32' ? TMUX_OFF : (env.USE_TMUX ?? TMUX_OFF), + } +} diff --git a/desktop/src/settings-store.ts b/desktop/src/settings-store.ts new file mode 100644 index 0000000..20d0963 --- /dev/null +++ b/desktop/src/settings-store.ts @@ -0,0 +1,82 @@ +/** + * desktop/src/settings-store.ts — B3: on-disk prefs persistence (get/set). + * + * A minimal, synchronous JSON store for DesktopPrefs — hand-rolled instead of + * electron-store to match the project's minimal-deps convention. It uses ONLY + * node:fs + node:path (no electron) so it is unit-testable against a real temp + * dir; the caller supplies the userData directory. Reads always go through + * validatePrefs, so a corrupt or hand-edited file degrades to defaults rather + * than crashing the app; writes are best-effort (a failure is logged, and the + * in-memory merged result is still returned so the session reflects the change). + */ + +import fs from 'node:fs' +import path from 'node:path' +import type { Logger } from './logger.js' +import type { DesktopPrefs } from './types.js' +import { defaultPrefs, mergePrefs, validatePrefs } from './prefs.js' + +/** Filename under the store dir; 2-space JSON stays human-readable/editable. */ +const PREFS_FILENAME = 'prefs.json' +const JSON_INDENT = 2 + +export interface SettingsStore { + get(): DesktopPrefs + set(patch: Partial): DesktopPrefs +} + +/** True iff `err` is a Node "file not found" error — the normal first-run case. */ +function isFileNotFound(err: unknown): boolean { + return err instanceof Error && (err as NodeJS.ErrnoException).code === 'ENOENT' +} + +/** + * Create a SettingsStore backed by `/prefs.json`. + * - get(): read + parse + validate; missing file → defaults (silent); + * unreadable/corrupt file → defaults (logged warn, never throws). + * - set(): merge the patch over current prefs, persist, return the merged prefs; + * a write failure is logged (error) but still returns the merged result. + */ +export function createSettingsStore( + dir: string, + platform: NodeJS.Platform, + logger: Logger, +): SettingsStore { + const filePath = path.join(dir, PREFS_FILENAME) + + function get(): DesktopPrefs { + let contents: string + try { + contents = fs.readFileSync(filePath, 'utf8') + } catch (err: unknown) { + // A missing file is expected before the first save — don't cry wolf. + if (!isFileNotFound(err)) { + logger.warn(`could not read prefs at ${filePath}, using defaults`) + } + return defaultPrefs(platform) + } + try { + const parsed: unknown = JSON.parse(contents) + return validatePrefs(parsed, platform) + } catch { + // Corrupt JSON on disk (hand-edit gone wrong) — fall back, don't crash. + logger.warn(`prefs at ${filePath} is not valid JSON, using defaults`) + return defaultPrefs(platform) + } + } + + function set(patch: Partial): DesktopPrefs { + const merged = mergePrefs(get(), patch) + try { + fs.mkdirSync(dir, { recursive: true }) + fs.writeFileSync(filePath, JSON.stringify(merged, null, JSON_INDENT), 'utf8') + } catch (err: unknown) { + // Best-effort persistence: report the failure but still hand back the + // merged prefs so the settings UI reflects the user's change this session. + logger.error(`failed to persist prefs to ${filePath}`, err) + } + return merged + } + + return { get, set } +} diff --git a/desktop/src/shell.ts b/desktop/src/shell.ts new file mode 100644 index 0000000..865bb4e --- /dev/null +++ b/desktop/src/shell.ts @@ -0,0 +1,28 @@ +/** + * desktop/src/shell.ts — the default login shell to spawn per host platform. + * + * The backend's loadConfig defaults SHELL_PATH to `$SHELL ?? /bin/zsh`, which is + * meaningless on Windows (no $SHELL, no /bin/zsh). The desktop shell overrides + * SHELL_PATH with this platform-aware default (see server-config.ts) so a + * Windows install spawns PowerShell (ConPTY-friendly) instead of a bogus path. + */ + +/** Windows default: PowerShell works with node-pty's ConPTY backend out of the box. */ +const WINDOWS_DEFAULT_SHELL = 'powershell.exe' +/** macOS fallback when $SHELL is unset (the default login shell since Catalina). */ +const MACOS_FALLBACK_SHELL = '/bin/zsh' +/** Linux / other POSIX fallback when $SHELL is unset. */ +const POSIX_FALLBACK_SHELL = '/bin/bash' + +/** + * Resolve the shell to spawn for `platform`. win32 → PowerShell; darwin → + * $SHELL or /bin/zsh; anything else (linux, etc.) → $SHELL or /bin/bash. + */ +export function defaultShellForPlatform( + platform: NodeJS.Platform, + env: NodeJS.ProcessEnv, +): string { + if (platform === 'win32') return WINDOWS_DEFAULT_SHELL + if (platform === 'darwin') return env.SHELL ?? MACOS_FALLBACK_SHELL + return env.SHELL ?? POSIX_FALLBACK_SHELL +} diff --git a/desktop/src/tray.ts b/desktop/src/tray.ts new file mode 100644 index 0000000..056a112 --- /dev/null +++ b/desktop/src/tray.ts @@ -0,0 +1,32 @@ +/** + * desktop/src/tray.ts — the menubar/system-tray icon that keeps the app alive + * after its window is hidden (the embedded server must keep running so remote + * devices stay connected — the vibe-coding scenario). + * + * Icon requirement: `iconPath` MUST point at an existing image. new Tray() with a + * missing/invalid path can throw on some platforms; that failure surfaces to the + * caller rather than being swallowed (a broken install should be visible, not + * silently degrade). The caller owns whether to guard startup around it. + */ +import { Menu, Tray } from 'electron' + +const TRAY_TOOLTIP = 'Web Terminal' + +export interface TrayHandlers { + show(): void + quit(): void +} + +export function createTray(iconPath: string, handlers: TrayHandlers): Tray { + const tray = new Tray(iconPath) + + const menu = Menu.buildFromTemplate([ + { label: 'Show Web Terminal', click: handlers.show }, + { type: 'separator' }, + { label: 'Quit', click: handlers.quit }, + ]) + + tray.setToolTip(TRAY_TOOLTIP) + tray.setContextMenu(menu) + return tray +} diff --git a/desktop/src/types.ts b/desktop/src/types.ts new file mode 100644 index 0000000..c5cc3e4 --- /dev/null +++ b/desktop/src/types.ts @@ -0,0 +1,77 @@ +/** + * desktop/src/types.ts — frozen shared contract for the Electron desktop shell. + * + * This is the single source of truth for cross-module data shapes (mirrors the + * backend's src/types.ts role). Modules own disjoint files but all agree here. + * All shapes are readonly (immutability — coding-style CRITICAL rule). + * + * Status/gate string unions are kept in sync with the backend (src/types.ts): + * ClaudeStatus = 'working' | 'waiting' | 'idle' | 'unknown' | 'stuck' + * PermissionGate = 'tool' | 'plan' + * They are re-declared (not imported) so the desktop package stays decoupled; + * notify-policy references these literals directly. + */ + +/** Host platform (subset of NodeJS.Platform we branch on). */ +export type Platform = 'darwin' | 'win32' | 'linux' + +/** Claude activity, mirrored from backend ClaudeStatus (src/types.ts:97). */ +export type DesktopClaudeStatus = 'working' | 'waiting' | 'idle' | 'unknown' | 'stuck' + +/** Approval gate kind, mirrored from backend PermissionGate (src/types.ts:101). */ +export type DesktopPermissionGate = 'tool' | 'plan' + +/** + * User preferences, persisted as JSON in the app's userData dir (hand-rolled + * store — matches the project's minimal-deps convention; no electron-store). + */ +export interface DesktopPrefs { + /** Preferred listen port; null → default (3000, with free-port fallback). */ + readonly port: number | null + /** true → bind 0.0.0.0 (LAN sharing, no auth); false → 127.0.0.1 (private). */ + readonly lanSharing: boolean + /** Shell override; null → platform default (see shell.ts). */ + readonly shellPath: string | null + /** Launch the app on OS login. */ + readonly openAtLogin: boolean + /** Fire a native notification when a session holds a pending approval. */ + readonly notifyOnApproval: boolean + /** Fire a native notification when a session's Claude status changes. */ + readonly notifyOnStatusChange: boolean +} + +/** Handle returned by the embedded server, for lifecycle + window wiring. */ +export interface EmbeddedServer { + /** The concrete port the server bound to (already free-checked). */ + readonly port: number + /** The host it bound to ('0.0.0.0' or '127.0.0.1'). */ + readonly bindHost: string + /** Origins the server will accept (derived by the backend from port + NICs). */ + readonly allowedOrigins: readonly string[] + /** Graceful shutdown: closes HTTP + WS and kills all PTYs. */ + close(): Promise +} + +/** A single session's status snapshot, fed to the notification policy. */ +export interface SessionStatusSnapshot { + readonly sessionId: string + readonly claudeStatus: DesktopClaudeStatus + readonly pendingApproval: boolean + /** Gate kind when an approval is held (for a richer notification body). */ + readonly gate: DesktopPermissionGate | null + /** Human label for the session (folder/process), if known. */ + readonly title: string | undefined +} + +/** The decision produced by notify-policy for one status transition. */ +export interface NotifyDecision { + readonly notify: boolean + readonly title: string + readonly body: string +} + +/** Parsed `terminalapp://` deep link. */ +export interface DeepLink { + /** Session id to join (from terminalapp://join/). */ + readonly join: string +} diff --git a/desktop/src/window.ts b/desktop/src/window.ts new file mode 100644 index 0000000..3a4bed7 --- /dev/null +++ b/desktop/src/window.ts @@ -0,0 +1,54 @@ +/** + * desktop/src/window.ts — creates the single BrowserWindow that hosts the + * unchanged web frontend, loaded from the embedded localhost server. + * + * Hardening (DESKTOP_PLAN §8 / TECH_DOC §7): contextIsolation on, nodeIntegration + * off, sandbox on, preload restricted to a minimal contextBridge. Because the + * only page ever loaded is the trusted embedded http://127.0.0.1: origin, + * we deny every new-window request and block navigation to any foreign origin — + * a defence-in-depth guard against a hijacked page trying to escape localhost. + */ +import { BrowserWindow } from 'electron' + +const WINDOW_WIDTH = 1100 +const WINDOW_HEIGHT = 720 +const BACKGROUND_COLOR = '#0e0f13' + +/** Parse the origin of a URL, returning null for anything malformed. */ +function originOf(url: string): string | null { + try { + return new URL(url).origin + } catch { + return null + } +} + +export function createMainWindow(url: string, preloadPath: string): BrowserWindow { + const win = new BrowserWindow({ + width: WINDOW_WIDTH, + height: WINDOW_HEIGHT, + backgroundColor: BACKGROUND_COLOR, + webPreferences: { + contextIsolation: true, + nodeIntegration: false, + sandbox: true, + preload: preloadPath, + }, + }) + + const allowedOrigin = originOf(url) + + // Never spawn child windows; the frontend has no legitimate reason to. + win.webContents.setWindowOpenHandler(() => ({ action: 'deny' })) + + // Block navigation away from the embedded localhost origin. + win.webContents.on('will-navigate', (event, targetUrl) => { + if (allowedOrigin === null) return + if (originOf(targetUrl) !== allowedOrigin) { + event.preventDefault() + } + }) + + void win.loadURL(url) + return win +} diff --git a/desktop/tsconfig.json b/desktop/tsconfig.json new file mode 100644 index 0000000..5ef5fd4 --- /dev/null +++ b/desktop/tsconfig.json @@ -0,0 +1,18 @@ +{ + "// note": "Electron desktop shell. TYPE-CHECK ONLY (noEmit) — the runnable output is produced by esbuild (build.mjs → build/*.cjs). Mirrors the backend tsconfig (NodeNext, strict). Type-only imports of ../../src/types.js are erased at build time; node-pty & the compiled server (../dist) are loaded at runtime via dynamic import, never bundled.", + "compilerOptions": { + "target": "ES2022", + "module": "NodeNext", + "moduleResolution": "NodeNext", + "lib": ["ES2022"], + "types": ["node"], + "strict": true, + "noUncheckedIndexedAccess": true, + "esModuleInterop": true, + "skipLibCheck": true, + "forceConsistentCasingInFileNames": true, + "resolveJsonModule": true, + "noEmit": true + }, + "include": ["src"] +} diff --git a/docs/DESKTOP_PLAN.md b/docs/DESKTOP_PLAN.md new file mode 100644 index 0000000..a143a49 --- /dev/null +++ b/docs/DESKTOP_PLAN.md @@ -0,0 +1,286 @@ +# DESKTOP_PLAN.md — Electron 桌面客户端(Mac + Windows,一体化) + +> 落地方案文档。目标:把现有 web-terminal 打包成 Mac / Windows 原生桌面 App。 +> 拓扑选型:**一体化(App 内嵌 Node 服务器 + node-pty)**。框架:**Electron**。 +> 状态:**`desktop/` 代码已实现并验证(2026-07-01,分支 `feat/desktop-electron`)** —— P0–P2 的逻辑代码、单测、Electron 加固、esbuild 打包在本环境全部通过(桌面 `tsc` 0 错、全量 1401 tests 绿、覆盖率达标)。**未验证(需真机/CI,见 §9 P1 D5–D7)**:实际启动 Electron GUI、node-pty 的 Electron-ABI 重编译、`.dmg`/`.exe` 打包。详见 `PROGRESS_LOG.md` 首条。本文是"怎么做"的蓝图,配合 `TECH_DOC.md`(why)+ `ARCHITECTURE.md`(how)。 + +--- + +## 0. 目标与范围 + +### 做什么 + +一个 Mac / Windows 原生桌面 App,双击即用: + +- 窗口里是**完全复用的现有前端**(xterm.js 多标签 UI,0 改动)。 +- App **自己内嵌 Node 服务器 + node-pty**,无需单独启动 `npm start`。一次安装 = 一个原生终端 **同时** 又是给手机/平板复用的 LAN 服务器("vibe coding:发个任务走开,手机上重连查看"这个核心场景原样保留)。 +- 原生集成:菜单栏/托盘常驻、**审批门的原生系统通知**(本 App 相对"开浏览器标签"的最大价值)、深链、开机自启。 + +### 不做(v1 范围外) + +- 鉴权/登录、多用户隔离(沿用现有威胁模型:LAN-only,建议 Tailscale)。 +- 自动更新(列为 P3,可选)。 +- 把前端重构成"可配置远程 base-url"——一体化模式下窗口连 `localhost`,用不到。 + +### 一个已被验证掉的大风险 + +现有服务器 **早就为内嵌设计好了**,几乎零重构: + +```ts +// src/server.ts:187 —— 可编程启动,返回 close() 句柄 +export function startServer(cfg: Config): { close(): Promise } +// src/config.ts:245 —— 从 env-like 对象构造 Config +export function loadConfig(env: EnvLike): Config +// server.ts 底部 import.meta.url === process.argv[1] 守卫 +// → 被 import 时【无副作用】,只有作为主脚本直接运行才 listen。 +``` + +Electron 主进程直接 `import { startServer, loadConfig }`,构造 config → 启动 → 拿 `close()` 干净退出。**服务器代码一行不用改。** + +--- + +## 1. 整体架构 / 进程模型 + +``` +┌─────────────────────────── Electron App ───────────────────────────┐ +│ │ +│ Main process (Node.js 运行时) │ +│ ┌───────────────────────────────────────────────────────────┐ │ +│ │ desktop/main.ts │ │ +│ │ 1. pickFreePort() → 选一个空闲端口 │ │ +│ │ 2. cfg = loadConfig({ ...env, PORT, BIND_HOST, SHELL_PATH})│ │ +│ │ 3. server = startServer(cfg) ← 复用 src/server.ts │ │ +│ │ └─ Express + ws + node-pty(native addon 在 main 跑) │ │ +│ │ 4. BrowserWindow.loadURL(`http://127.0.0.1:${PORT}/`) │ │ +│ │ 5. Tray / Notification / deep-link / auto-launch │ │ +│ │ 6. app.on('quit') → server.close() + pty.kill(all) │ │ +│ └───────────────────────────────────────────────────────────┘ │ +│ ▲ IPC (preload) │ +│ │ │ +│ Renderer process (Chromium) │ +│ ┌───────────────────────────────────────────────────────────┐ │ +│ │ 现有前端 public/build/main.js(0 改动) │ │ +│ │ location.host = 127.0.0.1:PORT │ │ +│ │ → WS ws://127.0.0.1:PORT/term ✓ Origin 白名单自动通过 │ │ +│ │ → REST /sessions /prefs … ✓ 同源 │ │ +│ └───────────────────────────────────────────────────────────┘ │ +│ │ +└─────────────────────────────────────────────────────────────────────┘ + ▲ ws://:PORT/term (手机/平板,若开 LAN 模式) +``` + +**为什么服务器跑在 main 进程而不是子进程**:服务器是纯 I/O 的"字节搬运工"(CLAUDE.md 的核心设计点),事件循环压力小,跑在 main 足够;node-pty 原生模块在 main 加载最简单。**升级路**:若未来 main 卡顿,改用 Electron `utilityProcess`(22+,官方推荐的 Node 服务隔离方式,可加载原生模块)把服务器挪出 main,IPC 转发端口即可。P1 先用 in-main。 + +**为什么窗口 loadURL localhost 而不是 file://**(关键决策,来自同源约束):前端严格同源——`buildWsUrl()` 用 `location.host`,所有 `fetch` 是相对路径。窗口加载 `http://127.0.0.1:PORT/` 时 `location.*` 解析到内嵌服务器,WS/REST 全部正确,Origin=`http://127.0.0.1:PORT` 命中白名单(`config.ts` 的 `deriveAllowedOrigins` 默认放行 localhost/127.0.0.1)。**绝不要**把 `public/build` 塞进 `file://` 加载——那会让所有相对请求失效、Origin 变 `file://` 被 401。 + +--- + +## 2. 目录结构 + +新增一个独立 `desktop/`,与现有 `src/`(server)、`public/`(前端)**并列且解耦**——server/前端的 `package.json` 不受 Electron 依赖污染。 + +``` +web-terminal/ +├── src/ # 服务器(不动,复用 startServer/loadConfig) +├── public/ # 前端(不动) +├── dist/ # tsc 输出:dist/server.js …(复用现有 npm run build) +├── public/build/ # esbuild 输出:main.js(复用现有 npm run build:web) +└── desktop/ # ★ 新增,Electron App + ├── package.json # electron + electron-builder + electron-store,"main": "build/main.cjs" + ├── tsconfig.json + ├── src/ + │ ├── main.ts # Electron 入口:起服务器 + 建窗口 + 托盘 + 通知 + 生命周期 + │ ├── preload.ts # contextBridge:renderer ↔ main(通知/深链/设置) + │ ├── embedded-server.ts # pickFreePort + 构造 cfg + startServer 封装 + │ ├── window.ts # BrowserWindow 创建 + splash/loading + │ ├── tray.ts # 托盘图标 + 聚合状态 + 上下文菜单 + │ ├── notifications.ts# 审批门/Claude 状态 → 原生 Notification + │ ├── deep-link.ts # terminalapp://join/ 协议注册 + │ ├── menu.ts # 应用菜单(⌘T 新标签等映射) + │ └── settings.ts # electron-store:端口/LAN 开关/默认 shell/自启 + ├── build/ # esbuild 打包 main/preload 的输出(.cjs) + ├── resources/ # 图标:icon.icns(Mac)/ icon.ico(Win)/ tray png + ├── electron-builder.yml + └── dist-app/ # electron-builder 产物:.dmg / .exe +``` + +**构建管线**(三步,前两步复用现有): +1. `npm run build`(根)→ `dist/server.js`(服务器 ESM)。 +2. `npm run build:web`(根)→ `public/build/main.js`(前端)。 +3. `desktop` 内:esbuild 打包 `desktop/src/main.ts`+`preload.ts` → `desktop/build/*.cjs`(native 依赖 `--external:node-pty`),再 `electron-builder` 出安装包。 + +> 语言细节:Electron main 用 **CJS**(`.cjs`)最省心(`--external:node-pty` + esbuild `--format=cjs --platform=node`);服务器 `dist/*.js` 是 ESM,用动态 `await import('../dist/server.js')` 从 main 里加载即可(CJS 里 `import()` 合法)。若坚持全 ESM,需 Electron ≥28(支持 ESM main)——P1 先走 CJS main + 动态 import server。 + +--- + +## 3. 内嵌服务器(embedded-server.ts) + +```ts +// 伪代码 —— 不可变、显式错误处理 +import net from 'node:net' + +async function pickFreePort(preferred = 3000): Promise { + // 先试 preferred,占用则让 OS 分配(listen(0) 拿到后立即 close,再交给 startServer) + // 注意:不能直接给 startServer 传 PORT=0,因为 allowedOrigins 由 cfg.port 派生, + // 必须先拿到【确定端口】再 loadConfig,才能让 http://127.0.0.1: 进白名单。 +} + +export async function startEmbeddedServer(prefs: DesktopPrefs) { + const port = await pickFreePort(prefs.port ?? 3000) + const { loadConfig } = await import('../../dist/config.js') + const { startServer } = await import('../../dist/server.js') + + const cfg = loadConfig({ + ...process.env, + PORT: String(port), + // LAN 开关:默认 0.0.0.0(保留"手机重连"场景),可在设置里改 127.0.0.1(私有) + BIND_HOST: prefs.lanSharing ? '0.0.0.0' : '127.0.0.1', + // ★ 跨平台默认 shell:config.ts 默认 $SHELL||/bin/zsh,Windows 上必须覆盖 + SHELL_PATH: prefs.shellPath ?? defaultShellForPlatform(), + }) + const handle = startServer(cfg) // { close(): Promise } + return { port, handle, allowedOrigins: cfg.allowedOrigins } +} + +function defaultShellForPlatform(): string { + if (process.platform === 'win32') return 'powershell.exe' // 或 pwsh.exe / cmd.exe + return process.env.SHELL ?? '/bin/zsh' +} +``` + +要点: +- **端口先定后配**:`allowedOrigins` 由 `cfg.port` 派生,所以必须先拿到确定端口再 `loadConfig`,否则 `http://127.0.0.1:` 进不了白名单。 +- **LAN 模式是有意识的开关**:默认 `0.0.0.0` 保留手机重连场景;提供设置项切 `127.0.0.1` 走纯私有。无鉴权的威胁模型不变——设置页里明示"建议配合 Tailscale"。 +- **退出即清理**:`app.on('before-quit')` → `await handle.close()`(内部 `pty.kill()` 所有会话)。 + +--- + +## 4. 原生集成 + +### 4.1 原生通知(本 App 的核心价值) + +前端每个会话已经收 `status` 帧(`pending` 审批、Claude 状态)。要在窗口失焦/最小化时弹系统通知: + +- **快路(P2 起步)**:preload 暴露一个 `notify()`,renderer 在某会话 `pendingApproval` 转 true 或 Claude 状态变化时经 IPC 调 main 的 Electron `Notification`。只覆盖【已开标签】的会话。 +- **全路(一体化独有优势)**:服务器就在 main 进程内,main 可**直接**订阅 session manager 的状态总线(`/hook/status` 已有),对**所有**会话(哪怕没开标签)弹通知。点通知 → 聚焦窗口/切到该会话 → 一键批准(复用现有 approve/reject 协议)。 +- 通知去重/节流:同一会话 pending 只弹一次;已聚焦窗口时不弹。 + +### 4.2 托盘 / 菜单栏 + +Tray 图标显示聚合状态(如"2 会话 · 1 待审批"),点击唤起窗口;右键菜单列会话 + 打开/退出。main 有服务器 → 直接从 live session 列表填充。 + +### 4.3 深链 / 单实例 + +- `app.requestSingleInstanceLock()`:二次启动聚焦已有窗口(同时接住深链参数)。 +- 注册 `terminalapp://` 协议 → `terminalapp://join/` 映射到现有 `/?join=`。 + +### 4.4 应用菜单 / 快捷键 + +原生菜单把 ⌘T 新标签、⌘W 关标签、⌘F 搜索等映射到前端已有能力(经 preload IPC 触发页面事件,或直接注入按键)。 + +### 4.5 开机自启 + +`app.setLoginItemSettings({ openAtLogin })`,设置页开关。 + +### 4.6 Claude Code hooks + +`npm run setup-hooks` 现在指向本地服务器——一体化下服务器就在本机,hooks 天然可用;只需把 setup 指向内嵌服务器的实际端口(可在设置页放一个"安装 hooks"按钮,用当前端口生成配置)。`POST /hook*` 是 loopback-only,localhost 内嵌完全满足。 + +--- + +## 5. node-pty 打包(唯一的原生模块难点) + +- **ABI 重编译**:node-pty 是 native `.node` addon,Electron 的 Node ABI ≠ 系统 Node。`desktop/package.json` 里 `postinstall: electron-builder install-app-deps`(内部走 `@electron/rebuild`)对 Electron ABI 重编译。现有 `node_modules/node-pty/prebuilds` 是**系统 ABI**,不能直接用,但它证明了 node-pty 支持 win32/darwin 两平台,重编译产出 Electron-ABI 版即可。 +- **asar 解包**:`.node` 不能在 asar 内加载。electron-builder 配置 `asarUnpack: ["**/node_modules/node-pty/**"]`。Windows 上 node-pty 依赖 ConPTY(`conpty.dll` / `conpty/`)——一并解包。 +- **打包内容**:`files` 需含 `dist/`(服务器)、`public/`(含 `public/build`)、`desktop/build`,以及生产依赖 `node_modules`(express/ws/node-pty/qrcode/web-push)。 + +--- + +## 6. 打包 · 分发 · 签名(electron-builder) + +```yaml +# desktop/electron-builder.yml(要点) +appId: com..web-terminal +mac: { target: [dmg, zip], category: public.app-category.developer-tools } +win: { target: [nsis] } +asarUnpack: ["**/node_modules/node-pty/**"] +files: ["build/**", "../dist/**", "../public/**", "../node_modules/**"] +``` + +- **Mac 目标**:`.dmg`(可 universal:arm64+x64)。分发要 Apple Developer ID 签名 + 公证(`afterSign` 走 `@electron/notarize`,$99/年)。**自用可自签或不签**(用户首次右键打开绕过 Gatekeeper)。 +- **Windows 目标**:NSIS `.exe`。分发要 Authenticode 证书;自用可不签(SmartScreen 会警告一次)。 +- **自动更新(P3 可选)**:`electron-updater` + GitHub Releases 承载 `latest.yml` / `zip`。 + +--- + +## 7. Windows 特有事项 + +1. **默认 shell**:`config.ts` 默认 `$SHELL || /bin/zsh` 在 Win 无效 → 必须覆盖 `SHELL_PATH=powershell.exe`(或 `pwsh`/`cmd`)。见 §3。 +2. **ConPTY**:node-pty 在 Win 走 ConPTY,需 Win10 1809+;打包解包其依赖(§5)。 +3. **路径分隔符**:服务器涉及 cwd/项目扫描的地方用 Node `path`——现有代码应已跨平台,但 Win 首跑要专门测项目发现/worktree 功能(`src/http/projects.ts` / `worktrees.ts`)。 +4. **`USE_TMUX`**:tmux keepalive 是 *nix 特性,Win 上应默认关(`USE_TMUX=0`)。 + +--- + +## 8. 安全考量(沿用现有威胁模型) + +- **Origin 校验不变**:窗口连 `127.0.0.1` 自动过;开 LAN 模式时 NIC IP 也在白名单。default-deny(空 Origin 被拒)继续保护。 +- **无鉴权**:LAN 模式仍是"谁能连端口谁就有 shell"。设置页明示风险 + 建议 Tailscale;默认可考虑 `127.0.0.1`(私有)让用户显式开 LAN。 +- **loopback hooks**:`/hook*` 仅 loopback,一体化天然满足。 +- **Electron 加固**:`contextIsolation: true`、`nodeIntegration: false`、preload 用 `contextBridge` 暴露最小 API;`webPreferences` 禁 `allowRunningInsecureContent`;只 loadURL 本地端口。 + +--- + +## 9. 分期任务拆解 + 工作量估算 + +> 风格对齐 PLAN.md:每个任务给 Owns / 验证方式 / 估时。P0–P1 出"能跑的一体化 App",P2 加原生价值,P3 分发。 + +### P0 — 骨架跑通("它启动了")· ~1 天 +- **D1** `desktop/` 脚手架:package.json(electron/electron-builder/esbuild)、tsconfig、esbuild 打包脚本。*验证*:`electron .` 能开空窗口。 +- **D2** `embedded-server.ts`:pickFreePort + loadConfig(覆盖 PORT/BIND_HOST/SHELL_PATH) + startServer。*验证*:main 里起服务器,`curl 127.0.0.1:/sessions` 有响应。 +- **D3** `window.ts`:BrowserWindow loadURL localhost,contextIsolation 加固。*验证*:窗口里出现现有终端 UI,能开标签、跑 shell、WS 连通(前端 0 改动)。 +- **D4** 生命周期:`before-quit` → `server.close()`;单实例锁。*验证*:退出无残留 pty 进程。 + +### P1 — 跨平台真安装包 · ~2–4 天 +- **D5** node-pty 对 Electron ABI 重编译(`install-app-deps`)+ `asarUnpack`。*验证*:打包后的 App(非 dev)里 pty 正常 spawn。 +- **D6** electron-builder:Mac `.dmg`。*验证*:装到干净 Mac,双击可用。 +- **D7** electron-builder:Win `.exe` + Windows 默认 shell/ConPTY/USE_TMUX=0。*验证*:装到 Win10+,PowerShell 会话可用,项目发现功能可用。 + +### P2 — 原生集成(相对浏览器标签的价值) · ~2–3 天 +- **D8** 原生通知:审批门/Claude 状态 → Electron Notification(先快路,再接 main 状态总线覆盖全会话)。*验证*:窗口最小化时 Claude 待审批弹系统通知,点通知回到会话。 +- **D9** 托盘 + 聚合状态 + 上下文菜单。 +- **D10** 应用菜单/快捷键映射 + 深链 `terminalapp://` + 开机自启 + 设置页(端口/LAN 开关/默认 shell/自启,electron-store)。 + +### P3 — 分发打磨(可选) · ~1–3 天 +- **D11** 代码签名 + 公证(Mac)/ Authenticode(Win)。 +- **D12** electron-updater 自动更新(GitHub Releases)。 + +**合计**:能跑的一体化 App(P0+P1)≈ **3–5 天**;加满原生价值(P2)再 **2–3 天**;分发签名(P3)视是否对外。 + +--- + +## 10. 风险与开放问题 + +| 风险 / 问题 | 影响 | 缓解 / 待定 | +|---|---|---| +| node-pty Electron ABI 重编译在 CI 上跨平台出包 | 中 | 用 GitHub Actions 的 mac + win runner 分别出包;本地先手动验证 | +| main 进程跑服务器导致 UI 卡顿 | 低 | 服务器是纯 I/O;若真卡,升级 `utilityProcess` 隔离 | +| Windows 首跑项目发现/worktree/OSC 行为差异 | 中 | P1 D7 专测;必要时给 Win 打补丁(应在 server 侧,routes 归属不变) | +| 无鉴权 + 默认 LAN 暴露 | 中 | 默认 `127.0.0.1`,LAN 为显式开关 + Tailscale 提示 | +| 现有 `sw.js` 以 classic 方式注册却用 ESM import(疑似 bug,`main.ts:87` 缺 `{type:'module'}`)| 低 | 桌面壳不依赖 SW;但若在乎浏览器端离线/推送需单独修(与本方案解耦) | +| 是否复用 root `package.json` 还是 npm workspaces | 低 | 倾向 `desktop/` 独立 package + 相对引用 `../dist`;如需统一装依赖再上 workspaces | + +**待你拍板的开放项**: +1. 默认 `BIND_HOST`:`0.0.0.0`(开箱即可手机重连,风险高)还是 `127.0.0.1`(私有,LAN 需手动开)? +2. `appId` / 产品名 / 图标。 +3. 是否现在就要签名分发,还是先自用(不签)。 + +--- + +## 11. 与现有文档的关系 + +- 本文只新增 `desktop/`,**不改** `src/` 与 `public/`(`startServer`/`loadConfig` 已够用)。 +- 若 P1 在 Windows 上发现 server 侧跨平台缺陷,修复归属对应模块(route 文件),并按 CLAUDE.md 记 `PROGRESS_LOG.md`——桌面壳不越界改 server。 +- 冲突时:ARCHITECTURE 管 how、TECH_DOC 管 why/scope;本文是它们之上的"打包/分发"新层,不与协议/会话模型冲突。 + + diff --git a/docs/PROGRESS_LOG.md b/docs/PROGRESS_LOG.md index adbf9c8..9be614b 100644 --- a/docs/PROGRESS_LOG.md +++ b/docs/PROGRESS_LOG.md @@ -24,6 +24,15 @@ > 新会话读到的第一块。保持准确,只描述"此刻"。 +### ✅ 桌面客户端 v0.1 — Electron 一体化壳(代码完成 — 2026-07-01,分支 `feat/desktop-electron`,未提交) +Mac/Windows 桌面 App,**内嵌现有 Node 服务器 + node-pty**(all-in-one):主进程 `startEmbeddedServer` 复用 `src/server.ts` 的 `startServer(cfg)`/`loadConfig`(**服务器零改动** —— 它本就导出可编程启动且 import 无副作用),窗口 `loadURL('http://127.0.0.1:/')` 复用**前端零改动**(前端严格同源,`location.host` 自动指向内嵌服务器;Origin 白名单默认含 localhost)。核心价值 = **原生通知**(轮询 `/live-sessions` → `computeNotifications` → 系统通知)+ 托盘常驻 + 深链 `terminalapp://` + 开机自启。 +- **编排**: ultracode `Workflow` —— 脚手架(orchestrator 冻结 `desktop/src/types.ts` 契约 + package/tsconfig/esbuild/electron-builder)→ Build(4 builder 并行、文件互斥、对齐冻结签名)→ Review(correctness/security/typescript 三 lens 并行、schema 结构化 findings)。纯逻辑尽量抽出可单测;Electron glue(main/window/tray/menu/preload/embedded-server/logger)作为不可单测 wiring 排除出覆盖率(沿用既有 vitest.config 先例)。**无用 zod、无用 electron-store**(遵循项目手写校验 + 手写 JSON 持久化的最小依赖惯例)。 +- **交付**(`desktop/src/` 17 文件 + `test/desktop/` 9 测试文件): 纯模块 `port`(pickFreePort)/`shell`(平台默认 shell,Win→powershell)/`server-config`(env 覆盖映射)/`deep-link`(解析+防注入)/`notify-policy`(通知策略)/`notifications`(批量 diff)/`live-poll`(边界校验 /live-sessions)/`prefs`(手写校验)/`settings-store`(JSON 持久化);glue `embedded-server`/`window`(加固:contextIsolation+sandbox+拒绝外域导航)/`menu`/`tray`/`preload`(最小 bridge)/`main`/`logger`。 +- **Review 结果**: **无 CRITICAL/HIGH 安全问题**(Electron 加固与不可信输入处理被评为扎实)。修复的真实 bug(orchestrator 直接改+补测): ① 冷启动深链丢失(缓冲 open-url/argv 到 ready 后派发) ② `createTray` 无守卫会崩启动(try/catch,失败无托盘继续) ③ 首轮轮询通知轰炸(首 tick 只建基线) ④ poller 捕获过期 prefs(每 tick 读 settings.get) ⑤ notify 'tool tool' 病句→'tool approval' ⑥ live-poll Windows 反斜杠路径 + 未过滤 exited ⑦ `NotificationsResult.next`→ReadonlyMap。 +- **验证**: 桌面 `tsc --noEmit` 0 错;**全量 1401 tests 绿**(基线 1307 +94 桌面,零回归);覆盖率全局 91.65/85.39/92.44/93.48(阈值 80×4 通过)、`desktop/src` 97.56/95.04/100/97.81;esbuild 打包 `main.cjs`/`preload.cjs` 产出、electron/node-pty 保持 external、dist 走运行时动态 import。 +- **本环境无法验证(留真机/CI,DESKTOP_PLAN P1 D5–D7)**: `.exe`(Windows,需真机/无 wine)。**审批门通知源**(`/live-sessions` 不带 pendingApproval)留 P2/D8 接 hook 侧信道 —— 策略已实现且测试,当前以 status→'waiting' 为代理。方案文档 `docs/DESKTOP_PLAN.md`。 +- **✅ Mac 打包 + 启动验证(2026-07-01,本机 arm64,已实测)**: `electron-builder` 出 `.dmg`(arm64,深度 ad-hoc 签名)。**关键修复**:首版只打了 node-pty、漏了服务器其它 npm 依赖(express/ws/web-push),导致**仅原地能跑**(沿目录树借了仓库根 `node_modules`),移到 `/Applications` 即崩 `Cannot find package 'express'`。改 `electron-builder.yml`:把 `dist/` + `public/` + `node_modules`(过滤 electron/electron-builder/esbuild/typescript 等构建工具;node-pty 经 `npmRebuild` 为 Electron 43 ABI 重编译)**全部铺到磁盘 Resources**(Model 2,与 `embedded-server.ts` 的 `process.resourcesPath` 解析匹配),desktop/package.json 补 express/ws/web-push 依赖。**仓库外副本直接执行验证通过**:服务器起、`GET /` + `/build/main.js → 200`、`/live-sessions → []`、node-pty 加载 OK、无 `Cannot find` 报错。`main.ts` 默认不注册开机自启(消除 native "Operation not permitted" 噪音)。**Gatekeeper**:未签名 ad-hoc 在 Sequoia(darwin24)双击被拦 → `xattr -cr` 清 quarantine/provenance + 深度签名后 `open`/双击可正常启动(实测 PID 存活、200)。产物 `desktop/dist-app/Web Terminal-0.1.0-arm64.dmg`(~206M,含完整 node_modules)。**仅 arm64;Intel 需 `--x64`/`--universal`;Windows 需真机;对外分发需 Apple Developer 签名+公证。** + ### ✅ VC 语音命令映射 — 语音直接 approve/reject 权限门(完成 — 2026-07-01,分支 `v0.6-projects`,未提交) 上下文门控:仅当活动 tab 有 held 权限门(`pendingApproval===true` 且 `gate==='tool'`)时,语音「确认/批准/yes…」→ 复用现有 `{type:'approve'}` WS 通道、「拒绝/取消/no…」→ `{type:'reject'}`;其余一律口述不变。**后端零改动**。安全设计:整句精确匹配(否定/口水词攻不破)+ 前导否定守卫 + reject 优先 + 置信度门(仅 approve)+ **可撤销确认窗口(1.5s,提交时复检门身份/连接,防 TOCTOU)** + stale-gate epoch。新增 `public/voice-commands.ts`(纯匹配器 100% 覆盖)+ `public/voice-confirm.ts`(确认窗口 100%),接线 `tabs/voice/terminal-session/main.ts`。**1307 tests 绿**,双 review(code+security)判 CRITICAL 已全修复并补测。规划 `docs/PLAN_VOICE_COMMANDS.md`,详见 Detailed Log 首条。**待办**:confidence fail-open 取舍留给用户;tabs.ts 968 行待拆分。 diff --git a/test/desktop/deep-link.test.ts b/test/desktop/deep-link.test.ts new file mode 100644 index 0000000..1bff331 --- /dev/null +++ b/test/desktop/deep-link.test.ts @@ -0,0 +1,96 @@ +/** + * test/desktop/deep-link.test.ts — B2: parseDeepLink / deepLinkToPath. + */ + +import { describe, test, expect } from 'vitest' +import { + DEEP_LINK_PROTOCOL, + parseDeepLink, + deepLinkToPath, +} from '../../desktop/src/deep-link.js' + +describe('DEEP_LINK_PROTOCOL', () => { + test('is the terminalapp scheme', () => { + expect(DEEP_LINK_PROTOCOL).toBe('terminalapp') + }) +}) + +describe('parseDeepLink', () => { + test('parses a valid terminalapp://join/ link', () => { + // Arrange + const url = 'terminalapp://join/abc123' + + // Act + const result = parseDeepLink(url) + + // Assert + expect(result).toEqual({ join: 'abc123' }) + }) + + test('decodes a percent-encoded id', () => { + // Arrange + const url = 'terminalapp://join/a%20b' + + // Act + const result = parseDeepLink(url) + + // Assert + expect(result).toEqual({ join: 'a b' }) + }) + + test('returns null for a wrong scheme', () => { + expect(parseDeepLink('https://join/abc')).toBeNull() + }) + + test('returns null for a wrong host', () => { + expect(parseDeepLink('terminalapp://open/abc')).toBeNull() + }) + + test('returns null when the id is missing', () => { + expect(parseDeepLink('terminalapp://join')).toBeNull() + expect(parseDeepLink('terminalapp://join/')).toBeNull() + }) + + test('returns null when the id contains a nested slash', () => { + expect(parseDeepLink('terminalapp://join/a/b')).toBeNull() + }) + + test('returns null for a whitespace-only id', () => { + expect(parseDeepLink('terminalapp://join/%20')).toBeNull() + }) + + test('returns null for an id with a control character', () => { + expect(parseDeepLink('terminalapp://join/a%01b')).toBeNull() + }) + + test('returns null for malformed percent-encoding', () => { + expect(parseDeepLink('terminalapp://join/%E0%A4%A')).toBeNull() + }) + + test('returns null for a malformed URL', () => { + expect(parseDeepLink('not a url')).toBeNull() + expect(parseDeepLink('')).toBeNull() + }) +}) + +describe('deepLinkToPath', () => { + test('renders the /?join= route for a simple id', () => { + expect(deepLinkToPath({ join: 'abc123' })).toBe('/?join=abc123') + }) + + test('encodes an id needing escaping', () => { + expect(deepLinkToPath({ join: 'a b/c' })).toBe('/?join=a%20b%2Fc') + }) + + test('round-trips a percent-decoded id back through encoding', () => { + // Arrange + const parsed = parseDeepLink('terminalapp://join/a%20b') + expect(parsed).not.toBeNull() + + // Act + const path = deepLinkToPath(parsed!) + + // Assert + expect(path).toBe('/?join=a%20b') + }) +}) diff --git a/test/desktop/live-poll.test.ts b/test/desktop/live-poll.test.ts new file mode 100644 index 0000000..733ed92 --- /dev/null +++ b/test/desktop/live-poll.test.ts @@ -0,0 +1,134 @@ +/** + * test/desktop/live-poll.test.ts — B2: mapLiveSessions boundary validation. + */ + +import { describe, test, expect } from 'vitest' +import { mapLiveSessions } from '../../desktop/src/live-poll.js' + +describe('mapLiveSessions', () => { + test('returns [] when the body is not an array', () => { + expect(mapLiveSessions(null)).toEqual([]) + expect(mapLiveSessions(undefined)).toEqual([]) + expect(mapLiveSessions({})).toEqual([]) + expect(mapLiveSessions('nope')).toEqual([]) + expect(mapLiveSessions(42)).toEqual([]) + }) + + test('maps a well-formed element to a snapshot', () => { + // Arrange + const raw = [ + { id: 'sess-1', status: 'waiting', cwd: '/Users/me/projects/web-terminal', exited: false }, + ] + + // Act + const result = mapLiveSessions(raw) + + // Assert + expect(result).toEqual([ + { + sessionId: 'sess-1', + claudeStatus: 'waiting', + pendingApproval: false, + gate: null, + title: 'web-terminal', + }, + ]) + }) + + test('accepts every valid status literal', () => { + const raw = [ + { id: 'a', status: 'working', cwd: null }, + { id: 'b', status: 'waiting', cwd: null }, + { id: 'c', status: 'idle', cwd: null }, + { id: 'd', status: 'unknown', cwd: null }, + { id: 'e', status: 'stuck', cwd: null }, + ] + + const result = mapLiveSessions(raw) + + expect(result.map((s) => s.claudeStatus)).toEqual([ + 'working', + 'waiting', + 'idle', + 'unknown', + 'stuck', + ]) + }) + + test('filters out elements missing a string id', () => { + const raw = [ + { status: 'idle', cwd: null }, + { id: 42, status: 'idle', cwd: null }, + { id: '', status: 'idle', cwd: null }, + { id: 'ok', status: 'idle', cwd: null }, + ] + + const result = mapLiveSessions(raw) + + expect(result).toHaveLength(1) + expect(result[0].sessionId).toBe('ok') + }) + + test('filters out elements with an invalid or missing status', () => { + const raw = [ + { id: 'a', status: 'busy', cwd: null }, + { id: 'b', status: 42, cwd: null }, + { id: 'c', cwd: null }, + { id: 'd', status: 'idle', cwd: null }, + ] + + const result = mapLiveSessions(raw) + + expect(result.map((s) => s.sessionId)).toEqual(['d']) + }) + + test('derives the title from the last cwd path segment', () => { + const raw = [{ id: 'a', status: 'idle', cwd: '/Users/me/projects/foo/' }] + + const result = mapLiveSessions(raw) + + expect(result[0].title).toBe('foo') + }) + + test('derives the title from a Windows backslash cwd', () => { + const raw = [{ id: 'a', status: 'idle', cwd: 'C:\\Users\\me\\projects\\foo' }] + + const result = mapLiveSessions(raw) + + expect(result[0].title).toBe('foo') + }) + + test('filters out already-exited sessions', () => { + const raw = [ + { id: 'live', status: 'waiting', cwd: null, exited: false }, + { id: 'dead', status: 'waiting', cwd: null, exited: true }, + ] + + const result = mapLiveSessions(raw) + + expect(result.map((s) => s.sessionId)).toEqual(['live']) + }) + + test('leaves title undefined when cwd is null or blank', () => { + const raw = [ + { id: 'a', status: 'idle', cwd: null }, + { id: 'b', status: 'idle', cwd: '' }, + { id: 'c', status: 'idle' }, + ] + + const result = mapLiveSessions(raw) + + expect(result.map((s) => s.title)).toEqual([undefined, undefined, undefined]) + }) + + test('never throws on garbage array elements', () => { + const raw = [null, undefined, 42, 'str', [], { id: 'ok', status: 'idle', cwd: null }] + + // Act + const act = (): unknown => mapLiveSessions(raw) + + // Assert + expect(act).not.toThrow() + expect(mapLiveSessions(raw)).toHaveLength(1) + }) +}) diff --git a/test/desktop/notifications.test.ts b/test/desktop/notifications.test.ts new file mode 100644 index 0000000..79cf51b --- /dev/null +++ b/test/desktop/notifications.test.ts @@ -0,0 +1,113 @@ +/** + * test/desktop/notifications.test.ts — B2: computeNotifications batch diff. + */ + +import { describe, test, expect } from 'vitest' +import { computeNotifications } from '../../desktop/src/notifications.js' +import type { NotifyOptions } from '../../desktop/src/notify-policy.js' +import type { SessionStatusSnapshot } from '../../desktop/src/types.js' + +function snapshot(overrides: Partial = {}): SessionStatusSnapshot { + return { + sessionId: 'sess-a', + claudeStatus: 'idle', + pendingApproval: false, + gate: null, + title: undefined, + ...overrides, + } +} + +const OPTS: NotifyOptions = { + windowFocused: false, + notifyOnApproval: true, + notifyOnStatusChange: true, +} + +describe('computeNotifications', () => { + test('collects only the notifying decisions', () => { + // Arrange: sess-a raises an approval (notify), sess-b is unchanged (silent). + const prev = new Map([ + ['sess-a', snapshot({ sessionId: 'sess-a', pendingApproval: false })], + ['sess-b', snapshot({ sessionId: 'sess-b', claudeStatus: 'working' })], + ]) + const snapshots = [ + snapshot({ sessionId: 'sess-a', pendingApproval: true, gate: 'tool' }), + snapshot({ sessionId: 'sess-b', claudeStatus: 'working' }), + ] + + // Act + const { decisions } = computeNotifications(prev, snapshots, OPTS) + + // Assert + expect(decisions).toHaveLength(1) + expect(decisions[0].title).toBe('Approval needed') + }) + + test('returns a new map keyed by sessionId', () => { + const snapshots = [ + snapshot({ sessionId: 'sess-a' }), + snapshot({ sessionId: 'sess-b' }), + ] + + const { next } = computeNotifications(new Map(), snapshots, OPTS) + + expect(next).toBeInstanceOf(Map) + expect([...next.keys()].sort()).toEqual(['sess-a', 'sess-b']) + expect(next.get('sess-a')).toEqual(snapshots[0]) + }) + + test('does not mutate the previous map', () => { + // Arrange + const prev = new Map([ + ['sess-a', snapshot({ sessionId: 'sess-a', claudeStatus: 'working' })], + ]) + const snapshots = [snapshot({ sessionId: 'sess-a', claudeStatus: 'waiting' })] + + // Act + const { next } = computeNotifications(prev, snapshots, OPTS) + + // Assert: prev is untouched; next is a distinct object with the new value. + expect(prev.size).toBe(1) + expect(prev.get('sess-a')?.claudeStatus).toBe('working') + expect(next).not.toBe(prev) + expect(next.get('sess-a')?.claudeStatus).toBe('waiting') + }) + + test('drops sessions that ended (absent from snapshots) from next', () => { + // Arrange: sess-b existed before but is gone this round. + const prev = new Map([ + ['sess-a', snapshot({ sessionId: 'sess-a' })], + ['sess-b', snapshot({ sessionId: 'sess-b' })], + ]) + const snapshots = [snapshot({ sessionId: 'sess-a' })] + + // Act + const { next } = computeNotifications(prev, snapshots, OPTS) + + // Assert + expect(next.has('sess-b')).toBe(false) + expect(next.has('sess-a')).toBe(true) + }) + + test('handles multiple notifying sessions', () => { + const snapshots = [ + snapshot({ sessionId: 'sess-a', pendingApproval: true, gate: 'plan' }), + snapshot({ sessionId: 'sess-b', claudeStatus: 'stuck' }), + ] + + const { decisions, next } = computeNotifications(new Map(), snapshots, OPTS) + + expect(decisions).toHaveLength(2) + expect(next.size).toBe(2) + }) + + test('returns no decisions for an empty snapshot list', () => { + const prev = new Map([['sess-a', snapshot()]]) + + const { decisions, next } = computeNotifications(prev, [], OPTS) + + expect(decisions).toEqual([]) + expect(next.size).toBe(0) + }) +}) diff --git a/test/desktop/notify-policy.test.ts b/test/desktop/notify-policy.test.ts new file mode 100644 index 0000000..7df53c6 --- /dev/null +++ b/test/desktop/notify-policy.test.ts @@ -0,0 +1,188 @@ +/** + * test/desktop/notify-policy.test.ts — B2: shouldNotify decision rules. + */ + +import { describe, test, expect } from 'vitest' +import { shouldNotify, type NotifyOptions } from '../../desktop/src/notify-policy.js' +import type { SessionStatusSnapshot } from '../../desktop/src/types.js' + +function snapshot(overrides: Partial = {}): SessionStatusSnapshot { + return { + sessionId: 'sess-1234abcd-ef', + claudeStatus: 'idle', + pendingApproval: false, + gate: null, + title: undefined, + ...overrides, + } +} + +const OPTS: NotifyOptions = { + windowFocused: false, + notifyOnApproval: true, + notifyOnStatusChange: true, +} + +describe('shouldNotify — focus suppression', () => { + test('suppresses everything when the window is focused', () => { + // Arrange + const prev = snapshot() + const next = snapshot({ pendingApproval: true, gate: 'plan', claudeStatus: 'waiting' }) + + // Act + const decision = shouldNotify(prev, next, { ...OPTS, windowFocused: true }) + + // Assert + expect(decision).toEqual({ notify: false, title: '', body: '' }) + }) +}) + +describe('shouldNotify — approval rising edge', () => { + test('notifies on the false → true approval edge', () => { + const prev = snapshot({ pendingApproval: false }) + const next = snapshot({ pendingApproval: true, gate: 'tool' }) + + const decision = shouldNotify(prev, next, OPTS) + + expect(decision.notify).toBe(true) + expect(decision.title).toBe('Approval needed') + expect(decision.body).toContain('tool approval') + expect(decision.body).not.toContain('tool tool') + }) + + test('reads "tool approval" (never "tool tool") for a tool or null gate', () => { + for (const gate of ['tool', null] as const) { + const next = snapshot({ pendingApproval: true, gate }) + + const decision = shouldNotify(undefined, next, OPTS) + + expect(decision.body).toContain('tool approval') + expect(decision.body).not.toContain('tool tool') + } + }) + + test('notifies when there is no previous snapshot and approval is pending', () => { + const next = snapshot({ pendingApproval: true, gate: 'plan' }) + + const decision = shouldNotify(undefined, next, OPTS) + + expect(decision.notify).toBe(true) + expect(decision.body).toContain('plan approval') + }) + + test('does NOT notify when approval was already pending', () => { + const prev = snapshot({ pendingApproval: true, gate: 'tool' }) + const next = snapshot({ pendingApproval: true, gate: 'tool' }) + + const decision = shouldNotify(prev, next, OPTS) + + expect(decision.notify).toBe(false) + }) + + test('is gated off by notifyOnApproval=false', () => { + const prev = snapshot({ pendingApproval: false }) + const next = snapshot({ pendingApproval: true, gate: 'tool' }) + + const decision = shouldNotify(prev, next, { ...OPTS, notifyOnApproval: false }) + + expect(decision.notify).toBe(false) + }) + + test('uses the session title in the body when known', () => { + const next = snapshot({ pendingApproval: true, gate: 'plan', title: 'web-terminal' }) + + const decision = shouldNotify(undefined, next, OPTS) + + expect(decision.body).toContain('web-terminal') + }) + + test('falls back to a short id label when title is undefined', () => { + const next = snapshot({ pendingApproval: true, gate: 'tool', title: undefined }) + + const decision = shouldNotify(undefined, next, OPTS) + + expect(decision.body).toContain('session sess-123') + }) +}) + +describe('shouldNotify — status change', () => { + test('notifies on a transition to waiting', () => { + const prev = snapshot({ claudeStatus: 'working' }) + const next = snapshot({ claudeStatus: 'waiting' }) + + const decision = shouldNotify(prev, next, OPTS) + + expect(decision.notify).toBe(true) + expect(decision.body).toContain('waiting') + }) + + test('notifies on a transition to stuck', () => { + const prev = snapshot({ claudeStatus: 'working' }) + const next = snapshot({ claudeStatus: 'stuck' }) + + const decision = shouldNotify(prev, next, OPTS) + + expect(decision.notify).toBe(true) + expect(decision.title).toBe('Session may be stuck') + expect(decision.body).toContain('stuck') + }) + + test('does NOT notify on a transition to working', () => { + const prev = snapshot({ claudeStatus: 'idle' }) + const next = snapshot({ claudeStatus: 'working' }) + + const decision = shouldNotify(prev, next, OPTS) + + expect(decision.notify).toBe(false) + }) + + test('does NOT notify on a transition to idle', () => { + const prev = snapshot({ claudeStatus: 'working' }) + const next = snapshot({ claudeStatus: 'idle' }) + + const decision = shouldNotify(prev, next, OPTS) + + expect(decision.notify).toBe(false) + }) + + test('does NOT notify when the status is unchanged', () => { + const prev = snapshot({ claudeStatus: 'waiting' }) + const next = snapshot({ claudeStatus: 'waiting' }) + + const decision = shouldNotify(prev, next, OPTS) + + expect(decision.notify).toBe(false) + }) + + test('is gated off by notifyOnStatusChange=false', () => { + const prev = snapshot({ claudeStatus: 'working' }) + const next = snapshot({ claudeStatus: 'waiting' }) + + const decision = shouldNotify(prev, next, { ...OPTS, notifyOnStatusChange: false }) + + expect(decision.notify).toBe(false) + }) +}) + +describe('shouldNotify — priority', () => { + test('approval edge takes priority over a concurrent status change', () => { + // Arrange: both an approval rising edge AND a status change to waiting. + const prev = snapshot({ pendingApproval: false, claudeStatus: 'working' }) + const next = snapshot({ pendingApproval: true, gate: 'plan', claudeStatus: 'waiting' }) + + // Act + const decision = shouldNotify(prev, next, OPTS) + + // Assert: it is the approval notification, not the status one. + expect(decision.title).toBe('Approval needed') + }) + + test('returns a silent decision when nothing is notable', () => { + const prev = snapshot({ claudeStatus: 'working' }) + const next = snapshot({ claudeStatus: 'unknown' }) + + const decision = shouldNotify(prev, next, OPTS) + + expect(decision).toEqual({ notify: false, title: '', body: '' }) + }) +}) diff --git a/test/desktop/port.test.ts b/test/desktop/port.test.ts new file mode 100644 index 0000000..f0b27ff --- /dev/null +++ b/test/desktop/port.test.ts @@ -0,0 +1,97 @@ +/** + * test/desktop/port.test.ts — unit tests for pickFreePort (B1). + * + * Real loopback binds (not mocks) exercise both branches: the preferred port is + * free (return it) and the preferred port is occupied (fall back to an OS port). + */ + +import { describe, test, expect } from 'vitest' +import net from 'node:net' +import { pickFreePort } from '../../desktop/src/port.js' + +const LOOPBACK = '127.0.0.1' +const MIN_PORT = 1 +const MAX_PORT = 65535 + +/** Bind a server on 127.0.0.1:0 and resolve with the live server + its OS-assigned port. */ +function occupyEphemeralPort(): Promise<{ server: net.Server; port: number }> { + return new Promise((resolve, reject) => { + const server = net.createServer() + server.on('error', reject) + server.listen(0, LOOPBACK, () => { + const address = server.address() + if (address !== null && typeof address === 'object') resolve({ server, port: address.port }) + else reject(new Error('no AddressInfo')) + }) + }) +} + +function closeServer(server: net.Server): Promise { + return new Promise((resolve) => server.close(() => resolve())) +} + +/** Acquire a currently-free port number (bind ephemeral, then release it). */ +async function getFreePort(): Promise { + const { server, port } = await occupyEphemeralPort() + await closeServer(server) + return port +} + +/** Confirm a port can be bound right now, then release it. */ +async function isBindable(port: number): Promise { + const server = net.createServer() + try { + await new Promise((resolve, reject) => { + server.on('error', reject) + server.listen(port, LOOPBACK, () => resolve()) + }) + await closeServer(server) + return true + } catch { + return false + } +} + +describe('pickFreePort', () => { + test('returns the preferred port when it is free', async () => { + // Arrange + const preferred = await getFreePort() + + // Act + const result = await pickFreePort(preferred) + + // Assert + expect(result).toBe(preferred) + }) + + test('returns a different, bindable port when the preferred port is occupied', async () => { + // Arrange + const { server, port: occupied } = await occupyEphemeralPort() + try { + // Act + const result = await pickFreePort(occupied) + + // Assert + expect(result).not.toBe(occupied) + expect(Number.isInteger(result)).toBe(true) + expect(result).toBeGreaterThanOrEqual(MIN_PORT) + expect(result).toBeLessThanOrEqual(MAX_PORT) + expect(await isBindable(result)).toBe(true) + } finally { + await closeServer(server) + } + }) + + test('returns an integer within the valid TCP port range', async () => { + // Arrange + const preferred = await getFreePort() + + // Act + const result = await pickFreePort(preferred) + + // Assert + expect(Number.isInteger(result)).toBe(true) + expect(result).toBeGreaterThanOrEqual(MIN_PORT) + expect(result).toBeLessThanOrEqual(MAX_PORT) + }) +}) diff --git a/test/desktop/prefs.test.ts b/test/desktop/prefs.test.ts new file mode 100644 index 0000000..ec173bb --- /dev/null +++ b/test/desktop/prefs.test.ts @@ -0,0 +1,218 @@ +/** + * test/desktop/prefs.test.ts — B3: unit tests for prefs defaults/validate/merge. + * + * Covers: defaultPrefs shape (and platform-independence); validatePrefs adopting + * valid fields and falling back per-field on wrong types / out-of-range port / + * empty shellPath / non-object raw / null / array; that it never throws; and + * mergePrefs immutability + ignoring undefined patch fields. + */ + +import { describe, test, expect } from 'vitest' +import type { DesktopPrefs } from '../../desktop/src/types.js' +import { defaultPrefs, validatePrefs, mergePrefs } from '../../desktop/src/prefs.js' + +const EXPECTED_DEFAULTS: DesktopPrefs = { + port: null, + lanSharing: false, + shellPath: null, + openAtLogin: false, + notifyOnApproval: true, + notifyOnStatusChange: true, +} + +describe('defaultPrefs', () => { + test('returns the documented baseline shape (LAN sharing off by default)', () => { + // Arrange / Act + const prefs = defaultPrefs('darwin') + + // Assert + expect(prefs).toEqual(EXPECTED_DEFAULTS) + }) + + test('is platform-independent (same defaults across platforms)', () => { + // Arrange / Act + const darwin = defaultPrefs('darwin') + const win32 = defaultPrefs('win32') + const linux = defaultPrefs('linux') + + // Assert + expect(win32).toEqual(darwin) + expect(linux).toEqual(darwin) + }) + + test('returns a new object each call (no shared mutable state)', () => { + // Arrange / Act + const a = defaultPrefs('darwin') + const b = defaultPrefs('darwin') + + // Assert + expect(a).not.toBe(b) + }) +}) + +describe('validatePrefs', () => { + test('adopts every field from a fully-valid object', () => { + // Arrange + const raw = { + port: 8080, + lanSharing: true, + shellPath: '/bin/bash', + openAtLogin: true, + notifyOnApproval: false, + notifyOnStatusChange: false, + } + + // Act + const prefs = validatePrefs(raw, 'darwin') + + // Assert + expect(prefs).toEqual(raw) + }) + + test('falls back to defaults when raw is not an object', () => { + // Assert — strings, numbers, booleans are not prefs objects + expect(validatePrefs('nope', 'darwin')).toEqual(EXPECTED_DEFAULTS) + expect(validatePrefs(42, 'darwin')).toEqual(EXPECTED_DEFAULTS) + expect(validatePrefs(true, 'darwin')).toEqual(EXPECTED_DEFAULTS) + }) + + test('falls back to defaults when raw is null', () => { + expect(validatePrefs(null, 'darwin')).toEqual(EXPECTED_DEFAULTS) + }) + + test('falls back to defaults when raw is undefined', () => { + expect(validatePrefs(undefined, 'darwin')).toEqual(EXPECTED_DEFAULTS) + }) + + test('falls back to defaults when raw is an array (arrays are not records)', () => { + expect(validatePrefs([1, 2, 3], 'darwin')).toEqual(EXPECTED_DEFAULTS) + }) + + test('falls back per-field on wrong types, keeping valid siblings', () => { + // Arrange — lanSharing is a number (invalid); port/shellPath are valid + const raw = { + port: 3001, + lanSharing: 1, + shellPath: '/bin/zsh', + openAtLogin: 'yes', + notifyOnApproval: null, + notifyOnStatusChange: 0, + } + + // Act + const prefs = validatePrefs(raw, 'darwin') + + // Assert — valid fields adopted, invalid fields fall back to defaults + expect(prefs.port).toBe(3001) + expect(prefs.shellPath).toBe('/bin/zsh') + expect(prefs.lanSharing).toBe(false) + expect(prefs.openAtLogin).toBe(false) + expect(prefs.notifyOnApproval).toBe(true) + expect(prefs.notifyOnStatusChange).toBe(true) + }) + + test('rejects out-of-range and non-integer ports, keeping default null', () => { + expect(validatePrefs({ port: 0 }, 'darwin').port).toBeNull() + expect(validatePrefs({ port: 65536 }, 'darwin').port).toBeNull() + expect(validatePrefs({ port: -1 }, 'darwin').port).toBeNull() + expect(validatePrefs({ port: 3.5 }, 'darwin').port).toBeNull() + expect(validatePrefs({ port: NaN }, 'darwin').port).toBeNull() + expect(validatePrefs({ port: '3000' }, 'darwin').port).toBeNull() + }) + + test('accepts boundary ports (1 and 65535)', () => { + expect(validatePrefs({ port: 1 }, 'darwin').port).toBe(1) + expect(validatePrefs({ port: 65535 }, 'darwin').port).toBe(65535) + }) + + test('accepts an explicit null port', () => { + expect(validatePrefs({ port: null }, 'darwin').port).toBeNull() + }) + + test('rejects empty and whitespace-only shellPath, keeping default null', () => { + expect(validatePrefs({ shellPath: '' }, 'darwin').shellPath).toBeNull() + expect(validatePrefs({ shellPath: ' ' }, 'darwin').shellPath).toBeNull() + }) + + test('accepts an explicit null shellPath', () => { + expect(validatePrefs({ shellPath: null }, 'darwin').shellPath).toBeNull() + }) + + test('rejects a non-string shellPath, keeping default null', () => { + expect(validatePrefs({ shellPath: 123 }, 'darwin').shellPath).toBeNull() + }) + + test('never throws on hostile input shapes', () => { + // Assert — a grab-bag of malformed inputs must all return defaults, no throw + const hostile: unknown[] = [Symbol('x'), () => 0, new Map(), 0n] + for (const raw of hostile) { + expect(() => validatePrefs(raw, 'darwin')).not.toThrow() + expect(validatePrefs(raw, 'darwin')).toEqual(EXPECTED_DEFAULTS) + } + }) +}) + +describe('mergePrefs', () => { + test('applies defined patch fields over the base', () => { + // Arrange + const base = defaultPrefs('darwin') + + // Act + const merged = mergePrefs(base, { port: 4000, lanSharing: true }) + + // Assert + expect(merged.port).toBe(4000) + expect(merged.lanSharing).toBe(true) + expect(merged.shellPath).toBeNull() + }) + + test('ignores undefined patch fields (does not clobber base)', () => { + // Arrange + const base = mergePrefs(defaultPrefs('darwin'), { port: 5000, shellPath: '/bin/bash' }) + + // Act — an explicit-undefined patch field must be ignored + const merged = mergePrefs(base, { port: undefined, lanSharing: true }) + + // Assert + expect(merged.port).toBe(5000) + expect(merged.shellPath).toBe('/bin/bash') + expect(merged.lanSharing).toBe(true) + }) + + test('applies falsy-but-defined patch fields (false / null)', () => { + // Arrange + const base = mergePrefs(defaultPrefs('darwin'), { port: 6000, notifyOnApproval: true }) + + // Act + const merged = mergePrefs(base, { port: null, notifyOnApproval: false }) + + // Assert — null/false are defined values and must overwrite + expect(merged.port).toBeNull() + expect(merged.notifyOnApproval).toBe(false) + }) + + test('does not mutate the base object (immutability)', () => { + // Arrange + const base = defaultPrefs('darwin') + const snapshot = { ...base } + + // Act + const merged = mergePrefs(base, { port: 7000 }) + + // Assert — base untouched, a new object returned + expect(base).toEqual(snapshot) + expect(merged).not.toBe(base) + }) + + test('does not mutate the patch object', () => { + // Arrange + const base = defaultPrefs('darwin') + const patch = { port: 8000 } + + // Act + mergePrefs(base, patch) + + // Assert + expect(patch).toEqual({ port: 8000 }) + }) +}) diff --git a/test/desktop/server-config.test.ts b/test/desktop/server-config.test.ts new file mode 100644 index 0000000..896b4bd --- /dev/null +++ b/test/desktop/server-config.test.ts @@ -0,0 +1,101 @@ +/** + * test/desktop/server-config.test.ts — unit tests for buildServerEnv (B1). + * + * Covers the PORT / BIND_HOST / SHELL_PATH / USE_TMUX mapping, the immutability + * guarantee (input.env untouched), and pass-through of unrelated env vars. + */ + +import { describe, test, expect } from 'vitest' +import { buildServerEnv } from '../../desktop/src/server-config.js' +import type { DesktopPrefs } from '../../desktop/src/types.js' + +const BASE_PREFS: DesktopPrefs = { + port: null, + lanSharing: false, + shellPath: null, + openAtLogin: false, + notifyOnApproval: true, + notifyOnStatusChange: true, +} + +describe('buildServerEnv', () => { + test('sets PORT to the stringified port', () => { + const result = buildServerEnv({ prefs: BASE_PREFS, port: 4321, platform: 'darwin', env: {} }) + expect(result.PORT).toBe('4321') + }) + + test('binds 127.0.0.1 when lanSharing is off', () => { + const result = buildServerEnv({ prefs: BASE_PREFS, port: 3000, platform: 'darwin', env: {} }) + expect(result.BIND_HOST).toBe('127.0.0.1') + }) + + test('binds 0.0.0.0 when lanSharing is on', () => { + // Arrange + const prefs = { ...BASE_PREFS, lanSharing: true } + + // Act + const result = buildServerEnv({ prefs, port: 3000, platform: 'darwin', env: {} }) + + // Assert + expect(result.BIND_HOST).toBe('0.0.0.0') + }) + + test('uses prefs.shellPath as SHELL_PATH when provided (overriding the platform default)', () => { + // Arrange + const prefs = { ...BASE_PREFS, shellPath: '/usr/bin/fish' } + + // Act + const result = buildServerEnv({ prefs, port: 3000, platform: 'darwin', env: { SHELL: '/bin/zsh' } }) + + // Assert + expect(result.SHELL_PATH).toBe('/usr/bin/fish') + }) + + test('falls back to the platform default SHELL_PATH when prefs.shellPath is null', () => { + const win = buildServerEnv({ prefs: BASE_PREFS, port: 3000, platform: 'win32', env: {} }) + expect(win.SHELL_PATH).toBe('powershell.exe') + + const mac = buildServerEnv({ prefs: BASE_PREFS, port: 3000, platform: 'darwin', env: { SHELL: '/bin/zsh' } }) + expect(mac.SHELL_PATH).toBe('/bin/zsh') + }) + + test('forces USE_TMUX off on win32 even when the ambient env enables it', () => { + const result = buildServerEnv({ prefs: BASE_PREFS, port: 3000, platform: 'win32', env: { USE_TMUX: '1' } }) + expect(result.USE_TMUX).toBe('0') + }) + + test('passes ambient USE_TMUX through on non-Windows platforms', () => { + const result = buildServerEnv({ prefs: BASE_PREFS, port: 3000, platform: 'linux', env: { USE_TMUX: '1' } }) + expect(result.USE_TMUX).toBe('1') + }) + + test('defaults USE_TMUX to off on non-Windows when the env is unset', () => { + const result = buildServerEnv({ prefs: BASE_PREFS, port: 3000, platform: 'linux', env: {} }) + expect(result.USE_TMUX).toBe('0') + }) + + test('does not mutate the input env', () => { + // Arrange + const env = { PATH: '/usr/bin', USE_TMUX: '1' } + const snapshot = { ...env } + + // Act + buildServerEnv({ prefs: BASE_PREFS, port: 3000, platform: 'win32', env }) + + // Assert + expect(env).toEqual(snapshot) + }) + + test('preserves unrelated ambient env vars', () => { + // Arrange + const env = { PATH: '/usr/bin', HOME: '/Users/me', CUSTOM: 'x' } + + // Act + const result = buildServerEnv({ prefs: BASE_PREFS, port: 3000, platform: 'darwin', env }) + + // Assert + expect(result.PATH).toBe('/usr/bin') + expect(result.HOME).toBe('/Users/me') + expect(result.CUSTOM).toBe('x') + }) +}) diff --git a/test/desktop/settings-store.test.ts b/test/desktop/settings-store.test.ts new file mode 100644 index 0000000..89c3945 --- /dev/null +++ b/test/desktop/settings-store.test.ts @@ -0,0 +1,188 @@ +/** + * test/desktop/settings-store.test.ts — B3: unit tests for the on-disk prefs store. + * + * Uses a REAL temp dir under os.tmpdir() (unique per test via process.pid + an + * incrementing counter — Math.random/Date.now are intentionally avoided). Covers: + * missing file → defaults (no warn); set→get round-trip; on-disk file contents; + * corrupt JSON → defaults + warn; and a write failure → error logged, merged + * result still returned. A spy Logger asserts the logging contract. + */ + +import { describe, test, expect, afterEach, vi } from 'vitest' +import fs from 'node:fs' +import os from 'node:os' +import path from 'node:path' +import type { Logger } from '../../desktop/src/logger.js' +import type { DesktopPrefs } from '../../desktop/src/types.js' +import { createSettingsStore } from '../../desktop/src/settings-store.js' +import { defaultPrefs } from '../../desktop/src/prefs.js' + +const PLATFORM: NodeJS.Platform = 'darwin' + +// ── unique temp-dir helper (no Math.random / Date.now) ────────────────────────── +let dirCounter = 0 +const createdDirs: string[] = [] + +function makeTempDir(): string { + dirCounter += 1 + const dir = path.join(os.tmpdir(), `web-terminal-store-test-${process.pid}-${dirCounter}`) + fs.mkdirSync(dir, { recursive: true }) + createdDirs.push(dir) + return dir +} + +interface SpyLogger extends Logger { + info: ReturnType + warn: ReturnType + error: ReturnType +} + +function makeSpyLogger(): SpyLogger { + return { info: vi.fn(), warn: vi.fn(), error: vi.fn() } +} + +afterEach(() => { + for (const dir of createdDirs) { + fs.rmSync(dir, { recursive: true, force: true }) + } + createdDirs.length = 0 +}) + +describe('createSettingsStore.get', () => { + test('returns defaults when the prefs file does not exist (and logs no warn)', () => { + // Arrange + const dir = makeTempDir() + const logger = makeSpyLogger() + const store = createSettingsStore(dir, PLATFORM, logger) + + // Act + const prefs = store.get() + + // Assert — missing file is the normal first-run case, not a warning + expect(prefs).toEqual(defaultPrefs(PLATFORM)) + expect(logger.warn).not.toHaveBeenCalled() + }) + + test('returns defaults and logs a warn when the file is corrupt JSON', () => { + // Arrange + const dir = makeTempDir() + const logger = makeSpyLogger() + fs.writeFileSync(path.join(dir, 'prefs.json'), '{ not valid json', 'utf8') + const store = createSettingsStore(dir, PLATFORM, logger) + + // Act + const prefs = store.get() + + // Assert + expect(prefs).toEqual(defaultPrefs(PLATFORM)) + expect(logger.warn).toHaveBeenCalledTimes(1) + }) + + test('validates untrusted on-disk fields, falling back per bad field', () => { + // Arrange — a hand-edited file with an out-of-range port and wrong-typed flag + const dir = makeTempDir() + const logger = makeSpyLogger() + fs.writeFileSync( + path.join(dir, 'prefs.json'), + JSON.stringify({ port: 999999, lanSharing: 'yes', shellPath: '/bin/bash' }), + 'utf8', + ) + const store = createSettingsStore(dir, PLATFORM, logger) + + // Act + const prefs = store.get() + + // Assert + expect(prefs.port).toBeNull() + expect(prefs.lanSharing).toBe(false) + expect(prefs.shellPath).toBe('/bin/bash') + }) +}) + +describe('createSettingsStore.set', () => { + test('persists the patch and round-trips via a fresh store', () => { + // Arrange + const dir = makeTempDir() + const store = createSettingsStore(dir, PLATFORM, makeSpyLogger()) + + // Act + const merged = store.set({ port: 4321, lanSharing: true }) + const reread = createSettingsStore(dir, PLATFORM, makeSpyLogger()).get() + + // Assert + expect(merged.port).toBe(4321) + expect(merged.lanSharing).toBe(true) + expect(reread).toEqual(merged) + }) + + test('merges over previously-saved prefs rather than replacing them', () => { + // Arrange + const dir = makeTempDir() + const store = createSettingsStore(dir, PLATFORM, makeSpyLogger()) + store.set({ port: 4321, shellPath: '/bin/zsh' }) + + // Act — a second partial set keeps the earlier shellPath + const merged = store.set({ lanSharing: true }) + + // Assert + expect(merged.port).toBe(4321) + expect(merged.shellPath).toBe('/bin/zsh') + expect(merged.lanSharing).toBe(true) + }) + + test('writes pretty 2-space JSON to /prefs.json', () => { + // Arrange + const dir = makeTempDir() + const store = createSettingsStore(dir, PLATFORM, makeSpyLogger()) + + // Act + store.set({ port: 5000 }) + const onDisk = fs.readFileSync(path.join(dir, 'prefs.json'), 'utf8') + const parsed: unknown = JSON.parse(onDisk) + + // Assert — content matches and the file is indented (pretty-printed) + expect(parsed).toMatchObject({ port: 5000 }) + expect(onDisk).toContain('\n "port": 5000') + }) + + test('creates the store directory if it does not yet exist (mkdir -p)', () => { + // Arrange — point at a not-yet-created nested subdir + const dir = path.join(makeTempDir(), 'nested', 'deeper') + const store = createSettingsStore(dir, PLATFORM, makeSpyLogger()) + + // Act + store.set({ port: 6000 }) + + // Assert + expect(fs.existsSync(path.join(dir, 'prefs.json'))).toBe(true) + }) + + test('logs an error but still returns the merged prefs when the write fails', () => { + // Arrange — make the store "dir" live under a regular FILE, so mkdirSync fails + const base = makeTempDir() + const blocker = path.join(base, 'blocker') + fs.writeFileSync(blocker, 'i am a file, not a directory', 'utf8') + const unwritableDir = path.join(blocker, 'sub') + const logger = makeSpyLogger() + const store = createSettingsStore(unwritableDir, PLATFORM, logger) + + // Act + const merged = store.set({ port: 7000 }) + + // Assert — best-effort: error surfaced, caller still gets the change + expect(logger.error).toHaveBeenCalledTimes(1) + expect(merged.port).toBe(7000) + }) + + test('returned merged prefs are a fully-formed DesktopPrefs', () => { + // Arrange + const dir = makeTempDir() + const store = createSettingsStore(dir, PLATFORM, makeSpyLogger()) + + // Act + const merged: DesktopPrefs = store.set({ port: 8000 }) + + // Assert — every field present (defaults + patch) + expect(Object.keys(merged).sort()).toEqual(Object.keys(defaultPrefs(PLATFORM)).sort()) + }) +}) diff --git a/test/desktop/shell.test.ts b/test/desktop/shell.test.ts new file mode 100644 index 0000000..3d82824 --- /dev/null +++ b/test/desktop/shell.test.ts @@ -0,0 +1,39 @@ +/** + * test/desktop/shell.test.ts — unit tests for defaultShellForPlatform (B1). + * + * Covers every platform branch, with and without env.SHELL set. + */ + +import { describe, test, expect } from 'vitest' +import { defaultShellForPlatform } from '../../desktop/src/shell.js' + +describe('defaultShellForPlatform', () => { + test('returns powershell.exe on win32 regardless of env.SHELL', () => { + // Arrange / Act / Assert + expect(defaultShellForPlatform('win32', {})).toBe('powershell.exe') + expect(defaultShellForPlatform('win32', { SHELL: '/bin/zsh' })).toBe('powershell.exe') + }) + + test('returns env.SHELL on darwin when it is set', () => { + // Arrange + const env = { SHELL: '/opt/homebrew/bin/fish' } + + // Act + const result = defaultShellForPlatform('darwin', env) + + // Assert + expect(result).toBe('/opt/homebrew/bin/fish') + }) + + test('falls back to /bin/zsh on darwin when env.SHELL is unset', () => { + expect(defaultShellForPlatform('darwin', {})).toBe('/bin/zsh') + }) + + test('returns env.SHELL on linux when it is set', () => { + expect(defaultShellForPlatform('linux', { SHELL: '/usr/bin/bash' })).toBe('/usr/bin/bash') + }) + + test('falls back to /bin/bash on linux when env.SHELL is unset', () => { + expect(defaultShellForPlatform('linux', {})).toBe('/bin/bash') + }) +}) diff --git a/vitest.config.ts b/vitest.config.ts index a828a68..029ab37 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -24,6 +24,20 @@ export default defineConfig({ 'public/title-util.ts', 'public/voice-commands.ts', 'public/voice-confirm.ts', + // Desktop (Electron) shell: only the PURE logic modules are measured. + // The Electron glue (main/window/tray/menu/notifications/preload/ + // embedded-server/settings-store) is thin, side-effectful wiring around + // the electron/native/dist APIs — untestable as a unit and excluded on + // the same principle as the thin DOM-wiring public/*.ts above. + 'desktop/src/port.ts', + 'desktop/src/shell.ts', + 'desktop/src/server-config.ts', + 'desktop/src/deep-link.ts', + 'desktop/src/notify-policy.ts', + 'desktop/src/notifications.ts', + 'desktop/src/live-poll.ts', + 'desktop/src/prefs.ts', + 'desktop/src/settings-store.ts', ], thresholds: { lines: 80,