Skip to content

The open-source AI receptionist for businesses. Answers every call, books the appointment and hands over to a person when needed. You own the code and the data.

Desktop apps for macOS and Windows (PR 2067)

Tim Gutberletd25cf09935b5
diff --git a/.github/workflows/desktop.yml b/.github/workflows/desktop.yml
new file mode 100644
index 00000000..2463ac70
--- /dev/null
+++ b/.github/workflows/desktop.yml
@@ -0,0 +1,226 @@
+name: Desktop apps
+
+# Builds the Linedesk desktop app for macOS (.dmg) and Windows (installer) (apps/desktop, Electron; LIN-903) and
+# installs each on its runner: it must start, and refuse a debugging port as a shipped app does. A test build of the
+# same code (LINEDESK_DESKTOP_E2E=1: it takes the debugging port, never shipped) is installed the same way and tested
+# (e2e/smoke.spec.ts: the sign-in page, a password sign-in with the App Review demo account, the inbox, a notification),
+# with screenshots. Nothing is published: the installers and the screenshots are kept as artifacts (14 days).
+# The apps load Linedesk Cloud (https://app.linedesk.ai); `server` (a run by hand) builds and tests them against another.
+# macOS signing, only when the Developer ID certificate is set up: MAC_CSC_P12_B64 and MAC_CSC_PASSWORD (Developer ID
+# Application of team GSQ3VDC7Y2, made by the Apple Account Holder), notarized with the App Store Connect API key
+# (ASC_KEY_ID, ASC_ISSUER_ID, ASC_KEY_P8_B64). Without them the .dmg is only ad-hoc signed (Gatekeeper refuses it on other Macs; notifications need a signature). Windows is
+# unsigned (no certificate).
+on:
+ pull_request:
+ paths: ['apps/desktop/**', 'apps/web/src/native/**', '.github/workflows/desktop.yml']
+ push:
+ branches: [master-dev]
+ paths: ['apps/desktop/**', 'apps/web/src/native/**', '.github/workflows/desktop.yml']
+ workflow_dispatch:
+ inputs:
+ server:
+ description: Server the app loads
+ default: https://app.linedesk.ai
+
+permissions:
+ contents: read
+
+concurrency:
+ group: desktop-${{ github.ref }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
+env:
+ LINEDESK_APP_URL: ${{ inputs.server || 'https://app.linedesk.ai' }}
+ # The App Review demo account (a demo workspace, read only here); the sign-in step is skipped without it.
+ E2E_EMAIL: ${{ secrets.DEMO_EMAIL }}
+ E2E_PASSWORD: ${{ secrets.DEMO_PASSWORD }}
+
+jobs:
+ checks:
+ name: Desktop checks
+ runs-on: ${{ (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) && vars.CI_RUNNER || 'ubuntu-24.04' }}
+ timeout-minutes: 10
+ steps:
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
+ with:
+ persist-credentials: false
+ - uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6
+ - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7
+ with:
+ node-version: 22
+ cache: pnpm
+ - run: pnpm install --frozen-lockfile --filter "@linedesk/desktop..."
+ - run: pnpm --filter @linedesk/desktop typecheck
+ - run: pnpm --filter @linedesk/desktop test
+
+ mac:
+ name: macOS
+ # GitHub's runner: it has a screen session for the screenshots (screencapture), Depot's macOS runner has none.
+ runs-on: macos-15
+ timeout-minutes: 45
+ steps:
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
+ with:
+ persist-credentials: false
+ - uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6
+ - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7
+ with:
+ node-version: 22
+ cache: pnpm
+ - run: pnpm install --frozen-lockfile --filter "@linedesk/desktop..."
+ - name: Signing keys
+ env:
+ MAC_CSC_P12_B64: ${{ secrets.MAC_CSC_P12_B64 }}
+ ASC_KEY_P8_B64: ${{ secrets.ASC_KEY_P8_B64 }}
+ run: |
+ if [ -n "$MAC_CSC_P12_B64" ]; then
+ mkdir -p "$RUNNER_TEMP/keys"
+ printf '%s' "$ASC_KEY_P8_B64" | base64 --decode > "$RUNNER_TEMP/keys/asc.p8"
+ echo "SIGNED=true" >> "$GITHUB_ENV"
+ else
+ echo "SIGNED=false" >> "$GITHUB_ENV"
+ echo "macOS: no Developer ID certificate (MAC_CSC_P12_B64), the .dmg is unsigned." >> "$GITHUB_STEP_SUMMARY"
+ fi
+ - name: Build
+ working-directory: apps/desktop
+ env:
+ CSC_LINK: ${{ secrets.MAC_CSC_P12_B64 }}
+ CSC_KEY_PASSWORD: ${{ secrets.MAC_CSC_PASSWORD }}
+ APPLE_API_KEY_ID: ${{ secrets.ASC_KEY_ID }}
+ APPLE_API_ISSUER: ${{ secrets.ASC_ISSUER_ID }}
+ run: |
+ if [ "$SIGNED" = true ]; then
+ export APPLE_API_KEY="$RUNNER_TEMP/keys/asc.p8"
+ pnpm dist:mac
+ else
+ # Ad-hoc signed (identity "-"): macOS shows notifications only from a signed app, and this one runs on this Mac.
+ export CSC_IDENTITY_AUTO_DISCOVERY=false
+ pnpm dist:mac -c.mac.notarize=false -c.mac.identity=-
+ fi
+ - name: Check the signature
+ if: env.SIGNED == 'true'
+ working-directory: apps/desktop/release
+ run: |
+ APP="$(ls -d mac-universal/Linedesk.app)"
+ codesign --verify --deep --strict --verbose=2 "$APP"
+ spctl --assess --type execute --verbose "$APP"
+ xcrun stapler validate "$(ls Linedesk-*.dmg)"
+ - name: Install from the .dmg and start it
+ working-directory: apps/desktop/release
+ run: |
+ hdiutil attach -nobrowse -mountpoint /Volumes/Linedesk "$(ls Linedesk-*.dmg)"
+ cp -R /Volumes/Linedesk/Linedesk.app /Applications/
+ hdiutil detach /Volumes/Linedesk
+ APP=/Applications/Linedesk.app/Contents/MacOS/Linedesk
+ # A shipped app refuses a debugging port (it ends at once with 1).
+ set +e; "$APP" --remote-debugging-port=9339; code=$?; set -e
+ [ "$code" = 1 ] || { echo "the shipped app took a debugging port (exit $code)"; exit 1; }
+ "$APP" & pid=$!; sleep 15
+ kill -0 "$pid" || { echo "the shipped app did not keep running"; exit 1; }
+ kill "$pid"; wait "$pid" || true
+ rm -rf /Applications/Linedesk.app "$HOME/Library/Application Support/Linedesk"
+ - name: Test build
+ working-directory: apps/desktop
+ env:
+ LINEDESK_DESKTOP_E2E: '1'
+ CSC_IDENTITY_AUTO_DISCOVERY: 'false'
+ run: |
+ node scripts/build.mjs
+ pnpm exec electron-builder --mac dir --arm64 --publish never -c.directories.output=release-e2e -c.mac.notarize=false -c.mac.identity=-
+ cp -R release-e2e/mac-arm64/Linedesk.app /Applications/
+ - name: Test the installed app
+ working-directory: apps/desktop
+ env:
+ E2E_APP: /Applications/Linedesk.app/Contents/MacOS/Linedesk
+ E2E_SHOTS: ${{ runner.temp }}/shots
+ run: pnpm exec playwright test -c e2e/playwright.config.ts e2e/smoke.spec.ts
+ - name: Keep the .dmg
+ uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
+ with:
+ name: linedesk-desktop-mac-${{ github.run_number }}
+ path: apps/desktop/release/Linedesk-*.dmg
+ retention-days: 14
+ - name: Keep the screenshots
+ if: always()
+ uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
+ with:
+ name: linedesk-desktop-mac-screenshots-${{ github.run_number }}
+ path: ${{ runner.temp }}/shots
+ if-no-files-found: ignore
+ retention-days: 14
+ - name: Remove the keys
+ if: always()
+ run: rm -rf "$RUNNER_TEMP/keys"
+
+ windows:
+ name: Windows
+ runs-on: windows-2025
+ timeout-minutes: 45
+ steps:
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
+ with:
+ persist-credentials: false
+ - uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6
+ - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7
+ with:
+ node-version: 22
+ cache: pnpm
+ - run: pnpm install --frozen-lockfile --filter "@linedesk/desktop..."
+ - name: Build (unsigned)
+ working-directory: apps/desktop
+ env:
+ CSC_IDENTITY_AUTO_DISCOVERY: 'false'
+ run: pnpm dist:win
+ - name: Install and start it
+ working-directory: apps/desktop/release
+ shell: pwsh
+ run: |
+ $setup = Get-ChildItem Linedesk-*-setup.exe | Select-Object -First 1
+ Start-Process -Wait -FilePath $setup.FullName -ArgumentList '/S'
+ Start-Sleep 3
+ Get-Process Linedesk -ErrorAction SilentlyContinue | Stop-Process -Force
+ $app = (Get-ChildItem "$env:LOCALAPPDATA\Programs" -Recurse -Filter Linedesk.exe | Select-Object -First 1).FullName
+ if (-not $app) { throw 'not installed' }
+ Write-Output "installed: $app"
+ # A shipped app refuses a debugging port (it ends at once with 1).
+ $p = Start-Process -FilePath $app -ArgumentList '--remote-debugging-port=9339' -PassThru
+ if (-not $p.WaitForExit(20000) -or $p.ExitCode -ne 1) { throw "the shipped app took a debugging port" }
+ $p = Start-Process -FilePath $app -PassThru
+ Start-Sleep 15
+ if ($p.HasExited) { throw 'the shipped app did not keep running' }
+ Get-Process Linedesk -ErrorAction SilentlyContinue | Stop-Process -Force
+ - name: Test build, installed over it
+ working-directory: apps/desktop
+ shell: pwsh
+ env:
+ LINEDESK_DESKTOP_E2E: '1'
+ CSC_IDENTITY_AUTO_DISCOVERY: 'false'
+ run: |
+ node scripts/build.mjs
+ pnpm exec electron-builder --win nsis --x64 --publish never '-c.directories.output=release-e2e'
+ $setup = Get-ChildItem release-e2e\Linedesk-*-setup.exe | Select-Object -First 1
+ Start-Process -Wait -FilePath $setup.FullName -ArgumentList '/S'
+ Start-Sleep 3
+ Get-Process Linedesk -ErrorAction SilentlyContinue | Stop-Process -Force
+ - name: Test the installed app
+ working-directory: apps/desktop
+ shell: pwsh
+ env:
+ E2E_SHOTS: ${{ runner.temp }}\shots
+ run: |
+ $env:E2E_APP = (Get-ChildItem "$env:LOCALAPPDATA\Programs" -Recurse -Filter Linedesk.exe | Select-Object -First 1).FullName
+ pnpm exec playwright test -c e2e/playwright.config.ts e2e/smoke.spec.ts
+ - name: Keep the installer
+ uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
+ with:
+ name: linedesk-desktop-windows-${{ github.run_number }}
+ path: apps/desktop/release/Linedesk-*-setup.exe
+ retention-days: 14
+ - name: Keep the screenshots
+ if: always()
+ uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
+ with:
+ name: linedesk-desktop-windows-screenshots-${{ github.run_number }}
+ path: ${{ runner.temp }}\shots
+ if-no-files-found: ignore
+ retention-days: 14
diff --git a/apps/desktop/.gitignore b/apps/desktop/.gitignore
new file mode 100644
index 00000000..822f2756
--- /dev/null
+++ b/apps/desktop/.gitignore
@@ -0,0 +1,3 @@
+release/
+e2e/shots/
+test-results/
diff --git a/apps/desktop/README.md b/apps/desktop/README.md
new file mode 100644
index 00000000..f131a89e
--- /dev/null
+++ b/apps/desktop/README.md
@@ -0,0 +1,56 @@
+# Linedesk app for macOS and Windows
+
+A native shell around the web app (Electron), like the mobile app (`apps/mobile`). The window opens the server's own
+pages (Linedesk Cloud by default), so the session, sync and every update of the web app come from the server as on the
+web. The web app finds the shell by `window.linedeskDesktop` (`src/preload.ts`, only on the server's own pages) and
+uses it for what a browser tab cannot do (`apps/web/src/native/desktop.ts`):
+
+- **Sign-in with a provider** (Google, Apple, Microsoft, GitHub, single sign-on) runs in the system's browser. The
+ session comes back with the same one-use code and PKCE as in the mobile app (`apps/api/src/app-sign-in.ts`), but on a
+ loopback address only this app listens on: `http://127.0.0.1:<port>/app-sign-in/back?code=…` (RFC 8252, 7.3;
+ `src/signIn.ts`). The browser then shows "Go back to the Linedesk app". Email codes and passwords work in the window.
+- **Notifications**: while the app runs (also with its window closed: Dock on macOS, tray on Windows) it notifies about
+ calls from its own sync, as a browser tab does: an urgent call as soon as the assistant flags it (it stays on screen
+ on Windows, the Dock icon bounces on macOS), every call when it ends. Electron has no push service, so nothing comes
+ while the app is not running.
+- **Links**: the app opens `linedesk://open/#call/…` (the start page with its page, like links in emails). A browser
+ on a Mac or a PC hands links from emails to the app when "Open links in the desktop app" is on in that browser
+ (User settings › Profile; `apps/web/src/native/openInDesktop.ts`).
+- **Menus**: the macOS menu bar (Settings ⌘,, Back ⌘[, Forward ⌘], Reload ⌘R, Edit, Window), the Windows tray. Their
+ words come from the web app in the person's language. No menu key takes one the web app uses.
+- **Window**: only the server's pages and a fixed list of sites the web app sends it to and that lead back (Stripe
+ Checkout, the calendars' and integrations' consent pages: `IN_WINDOW_SITES` in `src/links.ts`) open in it; other
+ links open in the browser. Context isolation, sandbox, no Node in pages, permissions only for the server
+ (notifications, microphone for test calls), Electron's fuses set for a shipped app. A shipped app refuses a debugging
+ port and ignores `LINEDESK_DESKTOP_SERVER`; both work only in development and in CI's test build
+ (`LINEDESK_DESKTOP_E2E=1` at build time, never shipped).
+- **Updates**: built in (`electron-updater`, `src/updates.ts`) and off until Linedesk publishes desktop releases.
+
+Buying works in the desktop app as on the web (it is no store app).
+
+## Build
+
+```sh
+pnpm install
+cd apps/desktop
+pnpm electron:install # Electron's binary, once (pnpm does not run its install script)
+pnpm start # opens Linedesk Cloud; LINEDESK_DESKTOP_SERVER=https://your.server for another
+LINEDESK_APP_URL=https://your.server pnpm dist:mac # .dmg in release/ (on a Mac)
+LINEDESK_APP_URL=https://your.server pnpm dist:win # installer in release/ (on Windows)
+```
+
+Signing: macOS with a Developer ID Application certificate (`CSC_LINK`, `CSC_KEY_PASSWORD`) and notarization with an
+App Store Connect API key (`APPLE_API_KEY`, `APPLE_API_KEY_ID`, `APPLE_API_ISSUER`); without them the build is
+unsigned. Windows with `WIN_CSC_LINK` and `WIN_CSC_KEY_PASSWORD`. Icons come from `brand/` (`pnpm icons`).
+
+CI (`.github/workflows/desktop.yml`) builds both on a pull request that changes the app, installs each on its runner
+and tests it with screenshots; the installers are kept as artifacts. Nothing is published.
+
+## Tests
+
+- `pnpm test`: the link and sign-in rules (`src/*.test.ts`).
+- `e2e/flow.spec.ts`, against a local dev stack with the demo data and a GitHub app set (`GITHUB_CLIENT_ID` and
+ `GITHUB_CLIENT_SECRET`, any values: GitHub itself is never reached): the whole provider sign-in through the browser
+ and the loopback port, the inbox, and an urgent call's notification with the window closed.
+ `E2E_SERVER=<web origin> pnpm e2e e2e/flow.spec.ts` (Linux without a screen: `xvfb-run -a`, `ELECTRON_DISABLE_SANDBOX=1`).
+- `e2e/smoke.spec.ts`: an installed test build (`LINEDESK_DESKTOP_E2E=1`; `E2E_APP=<its executable>`), as CI runs it.
diff --git a/apps/desktop/build/entitlements.mac.plist b/apps/desktop/build/entitlements.mac.plist
new file mode 100644
index 00000000..8a4dbb28
--- /dev/null
+++ b/apps/desktop/build/entitlements.mac.plist
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<!-- Hardened runtime: what Electron's JavaScript engine needs (JIT), and the microphone for test calls. -->
+<plist version="1.0">
+ <dict>
+ <key>com.apple.security.cs.allow-jit</key>
+ <true/>
+ <key>com.apple.security.device.audio-input</key>
+ <true/>
+ </dict>
+</plist>
diff --git a/apps/desktop/build/icon-mac.svg b/apps/desktop/build/icon-mac.svg
new file mode 100644
index 00000000..ef4bc844
--- /dev/null
+++ b/apps/desktop/build/icon-mac.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" width="1024" height="1024"><title>Linedesk</title><defs><filter id="s" x="-10%" y="-10%" width="120%" height="125%"><feDropShadow dx="0" dy="10" stdDeviation="12" flood-color="#000" flood-opacity="0.3"/></filter></defs><rect x="100" y="100" width="824" height="824" rx="185" fill="#1C1917" filter="url(#s)"/><g transform="translate(195.3,195.3) scale(13.195)"><rect x="4.5" y="14.5" width="39" height="19" rx="9.5" fill="none" stroke="#FAFAF8" stroke-width="3.5"/><circle cx="14" cy="24" r="4.25" fill="#4ADE80"/><line x1="22" y1="24" x2="35" y2="24" stroke="#FAFAF8" stroke-width="3.5" stroke-linecap="round"/></g></svg>
diff --git a/apps/desktop/build/icon-win.svg b/apps/desktop/build/icon-win.svg
new file mode 100644
index 00000000..fb7e1bfa
--- /dev/null
+++ b/apps/desktop/build/icon-win.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512"><title>Linedesk</title><rect width="512" height="512" rx="112.64" fill="#1C1917"/><g transform="translate(59.2,59.2) scale(8.2)"><rect x="4.5" y="14.5" width="39" height="19" rx="9.5" fill="none" stroke="#FAFAF8" stroke-width="3.5"/><circle cx="14" cy="24" r="4.25" fill="#4ADE80"/><line x1="22" y1="24" x2="35" y2="24" stroke="#FAFAF8" stroke-width="3.5" stroke-linecap="round"/></g></svg>
diff --git a/apps/desktop/build/icon.ico b/apps/desktop/build/icon.ico
new file mode 100644
index 00000000..663f00b1
Binary files /dev/null and b/apps/desktop/build/icon.ico differ
diff --git a/apps/desktop/build/icon.png b/apps/desktop/build/icon.png
new file mode 100644
index 00000000..a4137e22
Binary files /dev/null and b/apps/desktop/build/icon.png differ
diff --git a/apps/desktop/e2e/flow.spec.ts b/apps/desktop/e2e/flow.spec.ts
new file mode 100644
index 00000000..a2f1205d
--- /dev/null
+++ b/apps/desktop/e2e/flow.spec.ts
@@ -0,0 +1,98 @@
+// Against a local dev stack (E2E_SERVER, its demo data seeded, a GitHub app configured with any id: GitHub itself is
+// never reached): the app shows the sign-in page; "Continue with GitHub" opens the server's sign-in page in "the
+// system browser" (here a second Chromium the test drives); that browser signs in (by password, after the start, in
+// place of GitHub), confirms, and hands the one-use code to the app's loopback port; the app redeems it and shows the
+// inbox. Then a running call becomes urgent and the app shows its notification. Screenshots in E2E_SHOTS.
+import { mkdirSync } from 'node:fs'
+import { join } from 'node:path'
+import { _electron as electron, chromium, expect, test } from '@playwright/test'
+
+const server = process.env.E2E_SERVER ?? 'http://localhost:5173'
+const email = process.env.E2E_EMAIL ?? '[email protected]'
+const password = process.env.E2E_PASSWORD ?? 'brightwater-demo'
+const shots = process.env.E2E_SHOTS ?? join(import.meta.dirname, 'shots')
+mkdirSync(shots, { recursive: true })
+
+test('sign-in through the browser, inbox, urgent call notification', async () => {
+ const app = await electron.launch({
+ args: [join(import.meta.dirname, '..')],
+ env: { ...process.env, LINEDESK_DESKTOP_SERVER: server },
+ })
+ // "The system browser": every address the app hands to the system lands here.
+ await app.evaluate(({ shell }) => {
+ const g = globalThis as { opened?: string[] }
+ g.opened = []
+ shell.openExternal = async (url: string) => {
+ g.opened!.push(url)
+ }
+ })
+ await app.evaluate(({ Notification }) => {
+ const g = globalThis as { shown?: { title: string; body: string }[] }
+ g.shown = []
+ const show = Notification.prototype.show
+ Notification.prototype.show = function (this: Electron.Notification) {
+ g.shown!.push({ title: this.title, body: this.body })
+ return show.call(this)
+ }
+ })
+ const win = await app.firstWindow()
+ // Signed out, as a new install: an earlier run's session and data go.
+ await app.evaluate(({ session }) => session.defaultSession.clearStorageData())
+ await win.reload()
+ await win.setViewportSize({ width: 1280, height: 800 })
+ await expect(win.getByRole('heading', { name: /Sign in to/ })).toBeVisible({ timeout: 30_000 })
+ expect(await win.evaluate(() => typeof (window as { linedeskDesktop?: unknown }).linedeskDesktop)).toBe('object')
+ await win.screenshot({ path: join(shots, '1-sign-in.png') })
+
+ await win.getByRole('button', { name: /GitHub/ }).click()
+ const start = await expect
+ .poll(() => app.evaluate(() => (globalThis as { opened?: string[] }).opened?.[0]), { timeout: 15_000 })
+ .toMatch(/\/app-sign-in\?provider=github&challenge=[\w-]{43}&port=\d+$/)
+ .then(() => app.evaluate(() => (globalThis as { opened?: string[] }).opened![0]!))
+
+ const browser = await chromium.launch()
+ const page = await browser.newPage()
+ // The page posts the challenge (a cookie of this browser), then leaves for GitHub: stopped here.
+ await page.route('https://github.com/**', route => route.abort())
+ const started = page.waitForResponse(r => r.url().endsWith('/api/auth/app-sign-in/start'))
+ await page.goto(start).catch(() => {})
+ expect((await started).ok()).toBe(true)
+ // In place of GitHub: a sign-in of this browser after the start.
+ const signedIn = await page.request.post(`${server}/api/auth/sign-in/email`, {
+ data: { email, password },
+ headers: { origin: server },
+ })
+ expect(signedIn.ok()).toBe(true)
+ const port = new URL(start).searchParams.get('port')
+ await page.goto(`${server}/app-sign-in?done=1&port=${port}`)
+ await expect(page.getByText(`on this computer. The app is then signed in as ${email}`)).toBeVisible()
+ await page.screenshot({ path: join(shots, '2-browser-confirm.png') })
+ await page.getByRole('button', { name: 'Continue' }).click()
+ await page.waitForURL(/\/app-sign-in\/back\?desktop=1$/)
+ await expect(page.getByText('Go back to the Linedesk app. You can close this tab.')).toBeVisible()
+ await page.screenshot({ path: join(shots, '3-browser-done.png') })
+ // The browser's own session ended with the hand-back.
+ expect(await (await page.request.get(`${server}/api/auth/get-session`)).json()).toBeNull()
+ await browser.close()
+
+ await expect(win.getByRole('navigation').first()).toBeVisible({ timeout: 30_000 })
+ await expect(win.locator('[data-call-id]').first()).toBeVisible({ timeout: 30_000 })
+ await win.screenshot({ path: join(shots, '4-inbox.png') })
+
+ // A call becomes urgent while the window is closed (the app keeps running): the app shows it. E2E_URGENT is a
+ // command that sets a running call of the demo workspace urgent (E2E_URGENT_RESET, run first, sets it back).
+ if (process.env.E2E_URGENT) {
+ const { execSync } = await import('node:child_process')
+ if (process.env.E2E_URGENT_RESET) execSync(process.env.E2E_URGENT_RESET, { stdio: 'inherit' })
+ await win.waitForTimeout(3000)
+ await app.evaluate(({ BrowserWindow }) => BrowserWindow.getAllWindows()[0]?.close())
+ expect(await app.evaluate(({ BrowserWindow }) => BrowserWindow.getAllWindows()[0]?.isVisible())).toBe(false)
+ execSync(process.env.E2E_URGENT, { stdio: 'inherit' })
+ await expect
+ .poll(() => app.evaluate(() => (globalThis as { shown?: { title: string }[] }).shown?.map(s => s.title)), {
+ timeout: 30_000,
+ })
+ .toContainEqual(expect.stringMatching(/^Urgent: /))
+ }
+ await app.close()
+})
diff --git a/apps/desktop/e2e/playwright.config.ts b/apps/desktop/e2e/playwright.config.ts
new file mode 100644
index 00000000..92ee61fc
--- /dev/null
+++ b/apps/desktop/e2e/playwright.config.ts
@@ -0,0 +1,12 @@
+// The desktop app's own tests in a running app (LIN-903). `flow.spec.ts`: the whole sign-in hand-back, the inbox and
+// a call's notification against a local dev stack (apps/desktop/README.md). `smoke.spec.ts`: an installed build on
+// macOS or Windows (CI), its window, a password sign-in and a notification, with screenshots.
+import { defineConfig } from '@playwright/test'
+
+export default defineConfig({
+ testDir: '.',
+ timeout: 120_000,
+ workers: 1,
+ reporter: [['list']],
+ use: { trace: 'off' },
+})
diff --git a/apps/desktop/e2e/smoke.spec.ts b/apps/desktop/e2e/smoke.spec.ts
new file mode 100644
index 00000000..7c884977
--- /dev/null
+++ b/apps/desktop/e2e/smoke.spec.ts
@@ -0,0 +1,104 @@
+// An installed build (E2E_APP: the app's executable), started as a person would, with the debugging port only so the
+// test can look in: the sign-in page, a password sign-in (E2E_EMAIL, E2E_PASSWORD; skipped without them), the inbox,
+// and a call's notification. Screenshots in E2E_SHOTS: the window's content (`*.png`)
+// and the whole screen with the system's own window frame and notification (`*-screen.png`, macOS and Windows).
+import { type ChildProcess, execFileSync, spawn } from 'node:child_process'
+import { mkdirSync } from 'node:fs'
+import { createServer } from 'node:net'
+import { join } from 'node:path'
+import { chromium, expect, type Page, test } from '@playwright/test'
+
+const exe = process.env.E2E_APP ?? ''
+const shots = process.env.E2E_SHOTS ?? join(import.meta.dirname, 'shots')
+mkdirSync(shots, { recursive: true })
+
+/** The whole screen, with the system's window frame and notifications. */
+function screen(name: string) {
+ const file = join(shots, `${name}-screen.png`)
+ try {
+ if (process.platform === 'darwin') execFileSync('screencapture', ['-x', file])
+ else if (process.platform === 'win32')
+ execFileSync('powershell', [
+ '-NoProfile',
+ '-Command',
+ `Add-Type -AssemblyName System.Windows.Forms,System.Drawing; $b=[System.Windows.Forms.Screen]::PrimaryScreen.Bounds; $i=New-Object System.Drawing.Bitmap $b.Width,$b.Height; $g=[System.Drawing.Graphics]::FromImage($i); $g.CopyFromScreen($b.Location,[System.Drawing.Point]::Empty,$b.Size); $i.Save('${file}')`,
+ ])
+ } catch (e) {
+ console.warn(`no screen capture: ${e instanceof Error ? e.message : e}`)
+ }
+}
+
+/** A free port for the app's debugging endpoint (a fixed one may belong to another browser on the machine). */
+const freePort = () =>
+ new Promise<number>(resolve => {
+ const probe = createServer().listen(0, '127.0.0.1', () => {
+ const { port } = probe.address() as { port: number }
+ probe.close(() => resolve(port))
+ })
+ })
+
+let app: ChildProcess | undefined
+test.afterAll(() => app?.kill())
+
+test('installed app: sign-in page, inbox, notification', async () => {
+ test.setTimeout(300_000)
+ test.skip(!exe, 'E2E_APP is not set')
+ const port = await freePort()
+ app = spawn(exe, [`--remote-debugging-port=${port}`], { stdio: 'inherit', env: process.env })
+ let browser = null
+ for (let i = 0; i < 60 && !browser; i++) {
+ browser = await chromium.connectOverCDP(`http://127.0.0.1:${port}`).catch(() => null)
+ if (!browser) await new Promise(r => setTimeout(r, 1000))
+ }
+ if (!browser) throw new Error('the app did not start')
+ const context = browser.contexts()[0]!
+ const page: Page = context.pages()[0] ?? (await context.waitForEvent('page'))
+ console.log('step: connected')
+ await expect(page.getByRole('heading', { name: /Sign in to/ })).toBeVisible({ timeout: 60_000 })
+ const bridge = await page.evaluate(() => (window as { linedeskDesktop?: { platform: string } }).linedeskDesktop)
+ expect(bridge?.platform).toBe(process.platform === 'darwin' ? 'mac' : 'windows')
+ await page.waitForTimeout(1500)
+ await page.screenshot({ path: join(shots, '1-sign-in.png') })
+ screen('1-sign-in')
+
+ console.log('step: sign-in page')
+ const email = process.env.E2E_EMAIL
+ const password = process.env.E2E_PASSWORD
+ if (email && password) {
+ // The password sign-in of the page itself, as its form sends it.
+ const ok = await page.evaluate(
+ async ({ email, password }) =>
+ (
+ await fetch('/api/auth/sign-in/email', {
+ method: 'POST',
+ credentials: 'include',
+ headers: { 'content-type': 'application/json' },
+ body: JSON.stringify({ email, password }),
+ })
+ ).ok,
+ { email, password },
+ )
+ expect(ok).toBe(true)
+ await page.reload()
+ await expect(page.locator('[data-call-id]').first()).toBeVisible({ timeout: 60_000 })
+ await page.waitForTimeout(2000)
+ await page.screenshot({ path: join(shots, '2-inbox.png') })
+ screen('2-inbox')
+ }
+
+ console.log('step: inbox')
+ // A notification as the web app sends it for an urgent call (a shipped app shows none while its window is in front;
+ // the test build does, for this screenshot).
+ await page.evaluate(() =>
+ (window as { linedeskDesktop?: { notify: (n: object) => void } }).linedeskDesktop?.notify({
+ id: 'e2e-urgent',
+ title: 'Urgent: Burst pipe under the kitchen sink',
+ body: 'Sarah Whitfield · Water is coming through the ceiling below the kitchen.',
+ urgent: true,
+ }),
+ )
+ console.log('step: notified')
+ await page.waitForTimeout(4000)
+ screen('3-notification')
+ await browser.close()
+})
diff --git a/apps/desktop/electron-builder.yml b/apps/desktop/electron-builder.yml
new file mode 100644
index 00000000..02039e5c
--- /dev/null
+++ b/apps/desktop/electron-builder.yml
@@ -0,0 +1,71 @@
+# Packages the desktop app (LIN-903): macOS .dmg (universal: Apple silicon and Intel) and a Windows installer (NSIS,
+# per user, x64 and arm64). Signing: macOS with a Developer ID certificate from the environment (CSC_LINK,
+# CSC_KEY_PASSWORD) and notarized with the App Store Connect API key (APPLE_API_KEY, APPLE_API_KEY_ID,
+# APPLE_API_ISSUER); without them the build is unsigned. Windows is unsigned until Linedesk has a code signing
+# certificate (WIN_CSC_LINK, WIN_CSC_KEY_PASSWORD). `--publish never` everywhere: nothing is uploaded from here.
+appId: ai.linedesk.desktop
+productName: Linedesk
+copyright: Copyright © Linedesk
+artifactName: Linedesk-${version}-${os}-${arch}.${ext}
+directories:
+ output: release
+ buildResources: build
+files:
+ - dist/**
+ - static/**
+ - package.json
+asar: true
+# The package's own name is @linedesk/desktop (the workspace); installed, the app is `linedesk` (install folder, Linux
+# binary).
+extraMetadata:
+ name: linedesk
+# The app needs no node_modules at run time (scripts/build.mjs bundles its code; every package is a devDependency).
+npmRebuild: false
+protocols:
+ - name: Linedesk
+ schemes: [linedesk]
+# Electron's switches that a shipped app does not need (https://www.electronjs.org/docs/latest/tutorial/fuses).
+electronFuses:
+ runAsNode: false
+ enableCookieEncryption: true
+ enableNodeOptionsEnvironmentVariable: false
+ enableNodeCliInspectArguments: false
+ enableEmbeddedAsarIntegrityValidation: true
+ onlyLoadAppFromAsar: true
+ grantFileProtocolExtraPrivileges: false
+mac:
+ category: public.app-category.business
+ icon: build/icon.png
+ target:
+ - target: dmg
+ arch: [universal]
+ hardenedRuntime: true
+ gatekeeperAssess: false
+ entitlements: build/entitlements.mac.plist
+ entitlementsInherit: build/entitlements.mac.plist
+ extendInfo:
+ NSMicrophoneUsageDescription: Linedesk uses the microphone for test calls with your assistant.
+ notarize: true
+dmg:
+ title: Linedesk
+ writeUpdateInfo: false
+win:
+ icon: build/icon.ico
+ target:
+ - target: nsis
+ arch: [x64, arm64]
+nsis:
+ oneClick: true
+ perMachine: false
+ deleteAppDataOnUninstall: false
+ differentialPackage: false
+ artifactName: Linedesk-${version}-win-setup.${ext}
+linux:
+ icon: build/icon.png
+ target: [dir]
+ category: Office
+ executableName: linedesk
+# Prepared for automatic updates (src/updates.ts, off): the feed electron-updater would read. Nothing is published there yet.
+publish:
+ provider: generic
+ url: https://downloads.linedesk.ai/desktop/${os}
diff --git a/apps/desktop/package.json b/apps/desktop/package.json
new file mode 100644
index 00000000..e31ba59c
--- /dev/null
+++ b/apps/desktop/package.json
@@ -0,0 +1,32 @@
+{
+ "name": "@linedesk/desktop",
+ "private": true,
+ "license": "MIT",
+ "type": "module",
+ "version": "1.0.0",
+ "productName": "Linedesk",
+ "description": "Linedesk for macOS and Windows",
+ "author": "Linedesk",
+ "homepage": "https://linedesk.ai",
+ "main": "dist/main.cjs",
+ "scripts": {
+ "build": "node scripts/build.mjs",
+ "start": "node scripts/build.mjs && electron .",
+ "electron:install": "node node_modules/electron/install.js",
+ "dist:mac": "node scripts/build.mjs && electron-builder --mac --publish never",
+ "dist:win": "node scripts/build.mjs && electron-builder --win --publish never",
+ "dist:linux": "node scripts/build.mjs && electron-builder --linux dir --publish never",
+ "icons": "sh scripts/icons.sh",
+ "test": "node --disable-warning=ExperimentalWarning --test src/*.test.ts",
+ "e2e": "playwright test -c e2e/playwright.config.ts",
+ "typecheck": "tsc -p . --checkers 1"
+ },
+ "devDependencies": {
+ "@playwright/test": "1.65.1",
+ "@types/node": "^26.6.6",
+ "electron": "45.5.0",
+ "electron-builder": "26.18.0",
+ "electron-updater": "6.8.11",
+ "esbuild": "0.28.2"
+ }
+}
diff --git a/apps/desktop/scripts/build.mjs b/apps/desktop/scripts/build.mjs
new file mode 100644
index 00000000..858867e2
--- /dev/null
+++ b/apps/desktop/scripts/build.mjs
@@ -0,0 +1,27 @@
+// Bundles the main process and the preload into dist/ (CommonJS: a sandboxed preload must be one file). The server
+// the app opens and whether updates are on are fixed here, at build time (src/config.ts).
+import { build } from 'esbuild'
+
+const server = new URL(process.env.LINEDESK_APP_URL || 'https://app.linedesk.ai').origin
+const updates = process.env.LINEDESK_DESKTOP_UPDATES === '1'
+// A test build for CI only (debugging port, server override): never shipped (src/config.ts E2E_BUILD).
+const e2e = process.env.LINEDESK_DESKTOP_E2E === '1'
+
+const common = {
+ bundle: true,
+ platform: 'node',
+ format: 'cjs',
+ target: 'node22',
+ external: ['electron'],
+ sourcemap: false,
+ logLevel: 'warning',
+ define: {
+ __LINEDESK_SERVER__: JSON.stringify(server),
+ __LINEDESK_UPDATES__: JSON.stringify(updates),
+ __LINEDESK_E2E__: JSON.stringify(e2e),
+ },
+}
+
+await build({ ...common, entryPoints: ['src/main.ts'], outfile: 'dist/main.cjs' })
+await build({ ...common, entryPoints: ['src/preload.ts'], outfile: 'dist/preload.cjs' })
+console.log(`dist/: opens ${server}, updates ${updates ? 'on' : 'off'}${e2e ? ', TEST BUILD' : ''}`)
diff --git a/apps/desktop/scripts/icons.sh b/apps/desktop/scripts/icons.sh
new file mode 100644
index 00000000..e23f287f
--- /dev/null
+++ b/apps/desktop/scripts/icons.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+# The app's icons from the brand (brand/linedesk-icon.svg; macOS: the same key on Apple's icon grid, 824 of 1024 px
+# with a shadow). Renders with headless Chromium (Playwright's, from apps/web), so strokes look like in a browser.
+# Writes build/icon.png (macOS, 1024), build/icon.ico (Windows, 16-256), static/icon.png and static/tray.png.
+set -eu
+cd "$(dirname "$0")/.."
+node scripts/render-icons.mjs
+convert build/win-256.png build/win-128.png build/win-64.png build/win-48.png build/win-32.png build/win-16.png build/icon.ico
+rm -f build/win-*.png
diff --git a/apps/desktop/scripts/render-icons.mjs b/apps/desktop/scripts/render-icons.mjs
new file mode 100644
index 00000000..2eb8f53c
--- /dev/null
+++ b/apps/desktop/scripts/render-icons.mjs
@@ -0,0 +1,19 @@
+// Renders the icon SVGs to PNGs at their sizes with headless Chromium (scripts/icons.sh).
+import { readFileSync } from 'node:fs'
+import { chromium } from '@playwright/test'
+
+const svg = name => readFileSync(new URL(`../build/${name}`, import.meta.url), 'utf8')
+const browser = await chromium.launch()
+const page = await browser.newPage()
+async function render(source, size, out) {
+ await page.setViewportSize({ width: size, height: size })
+ await page.setContent(
+ `<style>html,body{margin:0;background:transparent}svg{width:${size}px;height:${size}px;display:block}</style>${source}`,
+ )
+ await page.screenshot({ path: new URL(`../${out}`, import.meta.url).pathname, omitBackground: true })
+}
+await render(svg('icon-mac.svg'), 1024, 'build/icon.png')
+for (const size of [256, 128, 64, 48, 32, 16]) await render(svg('icon-win.svg'), size, `build/win-${size}.png`)
+await render(svg('icon-win.svg'), 512, 'static/icon.png')
+await render(svg('icon-win.svg'), 32, 'static/tray.png')
+await browser.close()
diff --git a/apps/desktop/src/bridge.ts b/apps/desktop/src/bridge.ts
new file mode 100644
index 00000000..74df2416
--- /dev/null
+++ b/apps/desktop/src/bridge.ts
@@ -0,0 +1,55 @@
+// What the web app and this shell say to each other (the preload's `window.linedeskDesktop`, the IPC channels). The
+// web app's side of it: apps/web/src/native/desktop.ts.
+
+export const CHANNEL = {
+ signIn: 'linedesk:sign-in',
+ notify: 'linedesk:notify',
+ labels: 'linedesk:labels',
+ badge: 'linedesk:badge',
+ /** Main to page: open this call (a notification was clicked). */
+ openCall: 'linedesk:open-call',
+} as const
+
+/** A notification about a call; one per call (`id`): a newer one replaces it. */
+export type CallNotice = { id: string; title: string; body: string; urgent: boolean }
+
+/**
+ * The words of the menus and the tray in the person's language, from the web app (its i18n), so this shell carries
+ * none of its own. Until they come, the system's own words (menu roles) and the app's name stand in.
+ */
+export type Labels = {
+ open: string
+ settings: string
+ quit: string
+ back: string
+ forward: string
+ reload: string
+ file: string
+ edit: string
+ view: string
+ window: string
+ help: string
+ docs: string
+}
+
+export const isCallNotice = (v: unknown): v is CallNotice => {
+ const n = v as CallNotice
+ return (
+ !!n &&
+ typeof n.id === 'string' &&
+ n.id.length <= 100 &&
+ typeof n.title === 'string' &&
+ n.title.length <= 300 &&
+ typeof n.body === 'string' &&
+ n.body.length <= 1000 &&
+ typeof n.urgent === 'boolean'
+ )
+}
+
+export const isLabels = (v: unknown): v is Labels =>
+ !!v &&
+ typeof v === 'object' &&
+ Object.values(v as object).every(s => typeof s === 'string' && s.length <= 80) &&
+ ['open', 'settings', 'quit', 'back', 'forward', 'reload', 'file', 'edit', 'view', 'window', 'help', 'docs'].every(
+ k => k in (v as object),
+ )
diff --git a/apps/desktop/src/config.ts b/apps/desktop/src/config.ts
new file mode 100644
index 00000000..c41f060b
--- /dev/null
+++ b/apps/desktop/src/config.ts
@@ -0,0 +1,23 @@
+// The server this build opens and what it was built with (scripts/build.mjs puts the values in at build time).
+import { app } from 'electron'
+
+const isPackaged = () => app.isPackaged
+declare const __LINEDESK_SERVER__: string
+declare const __LINEDESK_UPDATES__: boolean
+declare const __LINEDESK_E2E__: boolean
+
+/** A test build of CI (LINEDESK_DESKTOP_E2E=1 at build time): never shipped. */
+export const E2E_BUILD = __LINEDESK_E2E__
+
+/**
+ * The server's origin: Linedesk Cloud unless the build was made for another (LINEDESK_APP_URL at build time, as for
+ * the mobile app). LINEDESK_DESKTOP_SERVER at start overrides it only in development and test builds: a shipped app
+ * never trusts another server (security review of LIN-903, L2).
+ */
+const override = (!isPackaged() || __LINEDESK_E2E__) && process.env.LINEDESK_DESKTOP_SERVER
+export const SERVER = new URL(override || __LINEDESK_SERVER__).origin
+
+/** Automatic updates are built in but off until Linedesk publishes desktop releases (LINEDESK_DESKTOP_UPDATES=1). */
+export const UPDATES_ON = __LINEDESK_UPDATES__
+
+export const APP_ID = 'ai.linedesk.desktop'
diff --git a/apps/desktop/src/links.test.ts b/apps/desktop/src/links.test.ts
new file mode 100644
index 00000000..edbf1587
--- /dev/null
+++ b/apps/desktop/src/links.test.ts
@@ -0,0 +1,49 @@
+import assert from 'node:assert/strict'
+import { test } from 'node:test'
+import { linkInArgs, navigationTarget, newWindowTarget, pageForLink } from './links.ts'
+
+const server = 'https://app.linedesk.ai'
+
+test('the window keeps the server and the flows it starts; other addresses go out or nowhere', () => {
+ assert.equal(navigationTarget('https://app.linedesk.ai/#call/1', server), 'app')
+ assert.equal(navigationTarget('https://checkout.stripe.com/c/pay/x', server), 'app')
+ assert.equal(navigationTarget('https://accounts.zoho.eu/oauth/v2/auth', server), 'app')
+ assert.equal(navigationTarget('https://brightwater.myshopify.com/admin/oauth/authorize?x=1', server), 'app')
+ assert.equal(navigationTarget('https://attacker.myshopify.com/sign-in', server), 'external')
+ assert.equal(navigationTarget('https://github.com/login/oauth/authorize', server), 'app')
+ assert.equal(navigationTarget('https://github.com/attacker/repo', server), 'external')
+ assert.equal(navigationTarget('https://gist.github.com/x', server), 'external')
+ assert.equal(navigationTarget('https://evil.example/sign-in', server), 'external')
+ assert.equal(navigationTarget('https://notstripe.com/', server), 'external')
+ assert.equal(navigationTarget('http://checkout.stripe.com/', server), 'external')
+ assert.equal(navigationTarget('mailto:[email protected]', server), 'external')
+ assert.equal(navigationTarget('tel:+15035550100', server), 'external')
+ assert.equal(navigationTarget('file:///etc/passwd', server), 'block')
+ assert.equal(navigationTarget('javascript:alert(1)', server), 'block')
+ assert.equal(navigationTarget('not a url', server), 'block')
+})
+
+test('new windows: the server in the app, other sites in the browser', () => {
+ assert.equal(newWindowTarget('https://app.linedesk.ai/#contacts', server), 'app')
+ assert.equal(newWindowTarget('https://docs.linedesk.ai/', server), 'external')
+ assert.equal(newWindowTarget('http://example.com/', server), 'external')
+ assert.equal(newWindowTarget('file:///tmp/x', server), 'block')
+ assert.equal(newWindowTarget('linedesk://open/#x', server), 'block')
+})
+
+test('links open the start page with their page, nothing else', () => {
+ assert.equal(pageForLink('linedesk://open/#call/abc', server), 'https://app.linedesk.ai/#call/abc')
+ assert.equal(pageForLink('linedesk://open#call/abc', server), 'https://app.linedesk.ai/#call/abc')
+ assert.equal(pageForLink('linedesk://open/?invite=x#y', server), 'https://app.linedesk.ai/?invite=x#y')
+ assert.equal(pageForLink('https://app.linedesk.ai/#call/abc', server), 'https://app.linedesk.ai/#call/abc')
+ assert.equal(pageForLink('linedesk://open/api/auth/sign-out', server), null)
+ assert.equal(pageForLink('linedesk://evil.example/#x', server), null)
+ assert.equal(pageForLink('https://evil.example/#call/abc', server), null)
+ assert.equal(pageForLink('https://app.linedesk.ai/v1/actions/x', server), null)
+ assert.equal(pageForLink('nonsense', server), null)
+})
+
+test('a clicked link among the arguments', () => {
+ assert.equal(linkInArgs(['Linedesk.exe', '--flag', 'linedesk://open/#call/1']), 'linedesk://open/#call/1')
+ assert.equal(linkInArgs(['Linedesk.exe']), null)
+})
diff --git a/apps/desktop/src/links.ts b/apps/desktop/src/links.ts
new file mode 100644
index 00000000..6d8b176f
--- /dev/null
+++ b/apps/desktop/src/links.ts
@@ -0,0 +1,106 @@
+// Which addresses the Linedesk window may show, and what a `linedesk://` link opens. Pure functions, no Electron, so
+// they are tested on their own (links.test.ts).
+
+/** The scheme the app registers with the system: `linedesk://open/#call/…` opens that page of the app's server. */
+export const PROTOCOL = 'linedesk'
+
+/**
+ * Sites whose pages the web app sends the window to and that lead back to the server, which needs the window's
+ * session there: Stripe Checkout and its billing portal, and the consent pages of the calendars and integrations
+ * (`apps/api`: their authorize addresses). Exact hosts, and only the sign-in paths where a site carries anyone's pages
+ * (security review of LIN-903). Every other site opens in the browser,
+ * so the window, which has no address bar, never shows a page that could pass for Linedesk's (security review of
+ * LIN-903, L1). The window sends Electron's own user agent, so a provider that refuses embedded windows can say so.
+ */
+export const IN_WINDOW_SITES: readonly { host: string | RegExp; path?: RegExp }[] = [
+ { host: 'checkout.stripe.com' },
+ { host: 'billing.stripe.com' },
+ { host: 'accounts.google.com' },
+ { host: 'login.microsoftonline.com' },
+ { host: 'login.live.com' },
+ { host: 'appleid.apple.com' },
+ // GitHub's sign-in and consent only: other github.com pages carry anyone's content.
+ { host: 'github.com', path: /^\/(login|session|sessions)(\/|$)/ },
+ { host: 'auth.calendly.com' },
+ { host: 'calendly.com', path: /^\/(login|oauth)(\/|$)/ },
+ { host: 'app.cal.com' },
+ { host: 'app.hubspot.com' },
+ { host: 'slack.com' },
+ { host: 'api.getjobber.com' },
+ { host: 'secure.getjobber.com' },
+ { host: 'admin.shopify.com' },
+ { host: 'accounts.shopify.com' },
+ // A shop's own domain: only its admin's consent page (the rest is the shop's storefront, anyone's HTML).
+ { host: /^[a-z0-9][a-z0-9-]*\.myshopify\.com$/, path: /^\/admin\/oauth\// },
+ { host: 'openrouter.ai' },
+ { host: /^accounts\.zoho\.(com|eu|in|com\.au|jp|sa)$/ },
+ { host: 'accounts.zohocloud.ca' },
+]
+
+const inWindowSite = (url: URL) =>
+ IN_WINDOW_SITES.some(
+ site =>
+ (typeof site.host === 'string' ? url.hostname === site.host : site.host.test(url.hostname)) &&
+ (!site.path || site.path.test(url.pathname)),
+ )
+
+/**
+ * Where an address goes when the window would navigate to it:
+ * - `app`: the server's own pages, and the https pages of IN_WINDOW_SITES.
+ * - `external`: other http(s) pages, mail and phone links: the system's browser and apps.
+ * - `block`: anything else (file:, javascript:, data:, another app's scheme).
+ */
+export function navigationTarget(address: string, server: string): 'app' | 'external' | 'block' {
+ let url: URL
+ try {
+ url = new URL(address)
+ } catch {
+ return 'block'
+ }
+ if (url.origin === new URL(server).origin) return 'app'
+ if (url.protocol === 'https:' && inWindowSite(url)) return 'app'
+ if (['https:', 'http:', 'mailto:', 'tel:'].includes(url.protocol)) return 'external'
+ return 'block'
+}
+
+/**
+ * A page opened in a new window (a link with target=_blank, window.open): the server's own pages open in another
+ * Linedesk window, http(s) pages of other sites, mail and phone links in the system's apps, nothing else.
+ */
+export function newWindowTarget(address: string, server: string): 'app' | 'external' | 'block' {
+ let url: URL
+ try {
+ url = new URL(address)
+ } catch {
+ return 'block'
+ }
+ if (url.origin === new URL(server).origin) return 'app'
+ if (['https:', 'http:', 'mailto:', 'tel:'].includes(url.protocol)) return 'external'
+ return 'block'
+}
+
+/**
+ * The server page a link opens in the app: `linedesk://open/#call/…` (from the web app's "Open in the desktop app")
+ * and the server's own `https://…/#call/…` (a link given to the app on the command line). Only the start page with
+ * its page in the hash, like the links in emails, and like the mobile app (apps/web/src/native/init.ts pageToOpen).
+ * Null for anything else.
+ */
+export function pageForLink(link: string, server: string): string | null {
+ let url: URL
+ try {
+ url = new URL(link)
+ } catch {
+ return null
+ }
+ const origin = new URL(server).origin
+ if (url.protocol === `${PROTOCOL}:`) {
+ if (url.hostname !== 'open' || (url.pathname !== '' && url.pathname !== '/')) return null
+ } else if (url.origin !== origin || url.pathname !== '/') return null
+ const page = new URL('/', origin)
+ page.search = url.search
+ page.hash = url.hash
+ return page.toString()
+}
+
+/** The first `linedesk://` link among a process's arguments (Windows passes a clicked link that way). */
+export const linkInArgs = (args: readonly string[]) => args.find(a => a.startsWith(`${PROTOCOL}://`)) ?? null
diff --git a/apps/desktop/src/main.ts b/apps/desktop/src/main.ts
new file mode 100644
index 00000000..626a0275
--- /dev/null
+++ b/apps/desktop/src/main.ts
@@ -0,0 +1,281 @@
+// The Linedesk desktop app for macOS and Windows: a window around the web app of the server (Linedesk Cloud by
+// default), like the mobile app (apps/mobile). The web app finds this shell by `window.linedeskDesktop` (preload.ts)
+// and uses it for what a browser tab cannot do: provider sign-ins in the system browser (signIn.ts), notifications
+// about calls while the window is closed, the menus' words. Everything else (sessions, sync, updates of the web app)
+// works as on the web.
+import { join } from 'node:path'
+import {
+ app,
+ BrowserWindow,
+ ipcMain,
+ type IpcMainEvent,
+ type IpcMainInvokeEvent,
+ Menu,
+ Notification,
+ nativeImage,
+ session,
+ shell,
+ type Tray,
+ type WebContents,
+} from 'electron'
+import { CHANNEL, type CallNotice, isCallNotice, isLabels, type Labels } from './bridge.ts'
+import { APP_ID, E2E_BUILD, SERVER } from './config.ts'
+import { linkInArgs, navigationTarget, newWindowTarget, PROTOCOL, pageForLink } from './links.ts'
+import { appMenu, type MenuActions, makeTray, trayMenu } from './menu.ts'
+import { isStartPage, type Waiting, waitForSignIn } from './signIn.ts'
+import { startUpdates } from './updates.ts'
+import { keepWindowState, readWindowState } from './windowState.ts'
+
+const isMac = process.platform === 'darwin'
+const staticFile = (name: string) => join(__dirname, '..', 'static', name)
+/** The page of the web app that holds the settings (the profile and preferences). */
+const SETTINGS_HASH = '#account/profile'
+
+let main: BrowserWindow | null = null
+let tray: Tray | null = null
+let labels: Labels | null = null
+let quitting = false
+let pendingLink: string | null = linkInArgs(process.argv)
+let signIn: Waiting | null = null
+/** Shown notifications, kept so their click handlers live (Windows drops them otherwise), one per call. */
+const notices = new Map<string, Notification>()
+
+app.setAppUserModelId(APP_ID)
+
+// A shipped app takes no debugging port: a local process could read its session through it (security review of
+// LIN-903, L2). Only a test build of CI (LINEDESK_DESKTOP_E2E=1) and development allow it.
+if (
+ app.isPackaged &&
+ !E2E_BUILD &&
+ ['remote-debugging-port', 'remote-debugging-pipe'].some(s => app.commandLine.hasSwitch(s))
+)
+ app.exit(1)
+
+// One app at a time: a second start (a clicked link on Windows) hands its link to the first one.
+if (!app.requestSingleInstanceLock()) app.quit()
+app.on('second-instance', (_e, args) => {
+ const link = linkInArgs(args)
+ if (link) openLink(link)
+ else showMain()
+})
+// macOS gives clicked links here, also before the app is ready.
+app.on('open-url', (e, link) => {
+ e.preventDefault()
+ openLink(link)
+})
+if (!app.isDefaultProtocolClient(PROTOCOL)) {
+ if (process.defaultApp && process.argv[1])
+ app.setAsDefaultProtocolClient(PROTOCOL, process.execPath, [process.argv[1]])
+ else app.setAsDefaultProtocolClient(PROTOCOL)
+}
+
+/** Messages only count from the app's own server pages (a Stripe or provider page in the window gets no say). */
+const fromServer = (e: IpcMainEvent | IpcMainInvokeEvent) => {
+ try {
+ return new URL(e.senderFrame?.url ?? '').origin === SERVER
+ } catch {
+ return false
+ }
+}
+
+function openLink(link: string) {
+ const page = pageForLink(link, SERVER)
+ if (!page) return
+ if (!main) {
+ pendingLink = link
+ return
+ }
+ void main.loadURL(page)
+ showMain()
+}
+
+function showMain() {
+ if (!main) return createMain()
+ if (main.isMinimized()) main.restore()
+ main.show()
+ main.focus()
+}
+
+const actions: MenuActions = {
+ open: () => showMain(),
+ settings: () => {
+ showMain()
+ void main?.webContents.executeJavaScript(`window.location.hash = ${JSON.stringify(SETTINGS_HASH)}`)
+ },
+ back: () => main?.webContents.navigationHistory.canGoBack() && main.webContents.navigationHistory.goBack(),
+ forward: () => main?.webContents.navigationHistory.canGoForward() && main.webContents.navigationHistory.goForward(),
+ quit: () => {
+ quitting = true
+ app.quit()
+ },
+}
+
+function setMenus() {
+ Menu.setApplicationMenu(appMenu(labels, actions))
+ tray?.setContextMenu(trayMenu(labels, actions))
+}
+
+/** Rules for every window's page: where it may go, what opens elsewhere, no other window kinds. */
+function guard(contents: WebContents) {
+ const onNavigate = (e: Electron.Event, url: string) => {
+ const target = navigationTarget(url, SERVER)
+ if (target === 'app') return
+ e.preventDefault()
+ if (target === 'external') void shell.openExternal(url)
+ }
+ contents.on('will-navigate', onNavigate)
+ contents.on('will-redirect', onNavigate)
+ contents.on('will-frame-navigate', e => {
+ // Frames of the server's pages (a recording player, a preview) keep the same rules as the window.
+ if (!e.isMainFrame && navigationTarget(e.url, SERVER) === 'block') e.preventDefault()
+ })
+ contents.setWindowOpenHandler(({ url }) => {
+ const target = newWindowTarget(url, SERVER)
+ if (target === 'app') return { action: 'allow', overrideBrowserWindowOptions: windowOptions() }
+ if (target === 'external') void shell.openExternal(url)
+ return { action: 'deny' }
+ })
+ contents.on('will-attach-webview', e => e.preventDefault())
+}
+
+function windowOptions(): Electron.BrowserWindowConstructorOptions {
+ return {
+ minWidth: 380,
+ minHeight: 480,
+ backgroundColor: '#FAFAF8',
+ title: app.getName(),
+ autoHideMenuBar: !isMac,
+ icon: isMac ? undefined : staticFile('icon.png'),
+ webPreferences: {
+ preload: join(__dirname, 'preload.cjs'),
+ contextIsolation: true,
+ sandbox: true,
+ nodeIntegration: false,
+ webviewTag: false,
+ spellcheck: true,
+ // Calls arrive while the window is hidden: sync and notifications keep running.
+ backgroundThrottling: false,
+ additionalArguments: [
+ `--linedesk-server=${SERVER}`,
+ `--linedesk-platform=${isMac ? 'mac' : process.platform === 'win32' ? 'windows' : 'linux'}`,
+ `--linedesk-version=${app.getVersion()}`,
+ ],
+ },
+ }
+}
+
+function createMain() {
+ const state = readWindowState()
+ main = new BrowserWindow({ ...windowOptions(), ...state, show: false })
+ if (state.maximized) main.maximize()
+ keepWindowState(main)
+ main.once('ready-to-show', () => main?.show())
+ // Closing the window keeps the app running (Dock on macOS, tray on Windows), so calls still notify; Quit ends it.
+ main.on('close', e => {
+ if (quitting) return
+ e.preventDefault()
+ main?.hide()
+ })
+ main.on('closed', () => {
+ main = null
+ })
+ // The server cannot be reached at start: a page that says so and tries again.
+ main.webContents.on('did-fail-load', (_e, code, _desc, url, isMainFrame) => {
+ if (!isMainFrame || code === -3 /* aborted: a navigation replaced it */) return
+ if (new URL(url).origin !== SERVER) return
+ void main?.loadFile(staticFile('offline.html'), { query: { server: SERVER } })
+ })
+ const link = pendingLink ? pageForLink(pendingLink, SERVER) : null
+ pendingLink = null
+ void main.loadURL(link ?? `${SERVER}/`)
+}
+
+function notify(notice: CallNotice) {
+ // Not while the person looks at the app: the call shows in the window (CI's test build shows it anyway, for its
+ // screenshot).
+ const inFront = main?.isVisible() && main.isFocused() && !main.isMinimized()
+ if (!Notification.isSupported() || (inFront && !E2E_BUILD)) return
+ notices.get(notice.id)?.close()
+ const n = new Notification({
+ title: notice.title,
+ body: notice.body,
+ silent: false,
+ urgency: notice.urgent ? 'critical' : 'normal',
+ // Windows: an urgent call stays on screen until the person acts on it.
+ timeoutType: notice.urgent ? 'never' : 'default',
+ })
+ n.on('click', () => {
+ showMain()
+ main?.webContents.send(CHANNEL.openCall, notice.id)
+ })
+ n.on('close', () => notices.delete(notice.id))
+ notices.set(notice.id, n)
+ n.show()
+ // macOS: the Dock icon bounces once for an urgent call while the app is in the background.
+ if (isMac && notice.urgent) app.dock?.bounce('informational')
+}
+
+ipcMain.handle(CHANNEL.signIn, async (e, url: unknown) => {
+ if (!fromServer(e) || typeof url !== 'string' || !isStartPage(url, SERVER)) throw new Error('refused')
+ signIn?.cancel()
+ const waiting = await waitForSignIn(url, SERVER)
+ signIn = waiting
+ await shell.openExternal(waiting.url)
+ try {
+ const back = await waiting.done
+ showMain()
+ return { url: back }
+ } finally {
+ if (signIn === waiting) signIn = null
+ }
+})
+ipcMain.on(CHANNEL.notify, (e, notice: unknown) => {
+ if (fromServer(e) && isCallNotice(notice)) notify(notice)
+})
+ipcMain.on(CHANNEL.labels, (e, next: unknown) => {
+ if (!fromServer(e) || !isLabels(next)) return
+ labels = next
+ setMenus()
+})
+ipcMain.on(CHANNEL.badge, (e, count: unknown) => {
+ if (!fromServer(e) || typeof count !== 'number' || !Number.isInteger(count) || count < 0) return
+ app.setBadgeCount(count)
+})
+
+app.whenReady().then(() => {
+ // Only what the web app needs: notifications, the microphone for a test call, clipboard, full screen; only for the
+ // server's own pages.
+ const allowed = new Set(['notifications', 'media', 'clipboard-sanitized-write', 'fullscreen'])
+ const ownPage = (url: string) => {
+ try {
+ return new URL(url).origin === SERVER
+ } catch {
+ return false
+ }
+ }
+ session.defaultSession.setPermissionRequestHandler((contents, permission, done, details) => {
+ const media = permission !== 'media' || (details as { mediaTypes?: string[] }).mediaTypes?.every(t => t === 'audio')
+ done(allowed.has(permission) && !!media && ownPage(details.requestingUrl ?? contents.getURL()))
+ })
+ session.defaultSession.setPermissionCheckHandler(
+ (_contents, permission, origin) => allowed.has(permission) && ownPage(origin),
+ )
+ app.on('web-contents-created', (_e, contents) => guard(contents))
+ createMain()
+ if (!isMac) {
+ tray = makeTray(staticFile('tray.png'), actions)
+ } else {
+ app.dock?.setIcon(nativeImage.createFromPath(staticFile('icon.png')))
+ }
+ setMenus()
+ void startUpdates()
+})
+
+app.on('activate', () => showMain())
+app.on('before-quit', () => {
+ quitting = true
+})
+// Windows: the window is only hidden on close; the app ends from the tray or the menu.
+app.on('window-all-closed', () => {
+ if (quitting) app.quit()
+})
diff --git a/apps/desktop/src/menu.ts b/apps/desktop/src/menu.ts
new file mode 100644
index 00000000..d3fc33a3
--- /dev/null
+++ b/apps/desktop/src/menu.ts
@@ -0,0 +1,99 @@
+// The app menu (macOS: the menu bar; Windows: hidden, its keys still work) and the tray icon (Windows: the app keeps
+// running there when its window is closed, for notifications). The words come from the web app (bridge.ts Labels);
+// until then the system's own (menu roles) and the app's name. No key here takes one the web app uses (⌘K, ⌘S, ⌘A,
+// ⌘Enter, single letters): only the system's own and ⌘, ⌘[ ⌘] ⌘R.
+import { app, Menu, type MenuItemConstructorOptions, nativeImage, shell, Tray } from 'electron'
+import type { Labels } from './bridge.ts'
+
+export type MenuActions = {
+ open: () => void
+ settings: () => void
+ back: () => void
+ forward: () => void
+ quit: () => void
+}
+
+const DOCS_URL = 'https://linedesk.ai/docs'
+const isMac = process.platform === 'darwin'
+
+export function appMenu(labels: Labels | null, actions: MenuActions): Menu {
+ const name = app.getName()
+ const template: MenuItemConstructorOptions[] = [
+ ...(isMac
+ ? [
+ {
+ label: name,
+ submenu: [
+ { role: 'about' },
+ { type: 'separator' },
+ ...(labels ? [{ label: `${labels.settings}…`, accelerator: 'Cmd+,', click: actions.settings }] : []),
+ { type: 'separator' },
+ { role: 'services' },
+ { type: 'separator' },
+ { role: 'hide' },
+ { role: 'hideOthers' },
+ { role: 'unhide' },
+ { type: 'separator' },
+ { role: 'quit', ...(labels ? { label: labels.quit } : {}), click: actions.quit },
+ ],
+ } satisfies MenuItemConstructorOptions,
+ ]
+ : [
+ {
+ label: labels?.file ?? name,
+ submenu: [
+ ...(labels ? [{ label: labels.settings, accelerator: 'Ctrl+,', click: actions.settings }] : []),
+ { type: 'separator' },
+ labels ? { label: labels.quit, accelerator: 'Ctrl+Q', click: actions.quit } : { role: 'quit' },
+ ],
+ } satisfies MenuItemConstructorOptions,
+ ]),
+ { role: 'editMenu', ...(labels ? { label: labels.edit } : {}) },
+ {
+ label: labels?.view,
+ role: labels ? undefined : 'viewMenu',
+ submenu: labels
+ ? [
+ { label: labels.back, accelerator: 'CmdOrCtrl+[', click: actions.back },
+ { label: labels.forward, accelerator: 'CmdOrCtrl+]', click: actions.forward },
+ { label: labels.reload, accelerator: 'CmdOrCtrl+R', role: 'reload' },
+ { type: 'separator' },
+ { role: 'resetZoom' },
+ { role: 'zoomIn' },
+ { role: 'zoomOut' },
+ { type: 'separator' },
+ { role: 'togglefullscreen' },
+ ...(app.isPackaged ? [] : [{ role: 'toggleDevTools' } as const]),
+ ]
+ : undefined,
+ },
+ { role: 'windowMenu', ...(labels ? { label: labels.window } : {}) },
+ ...(labels
+ ? [
+ {
+ role: 'help',
+ label: labels.help,
+ submenu: [{ label: labels.docs, click: () => void shell.openExternal(DOCS_URL) }],
+ } satisfies MenuItemConstructorOptions,
+ ]
+ : []),
+ ]
+ return Menu.buildFromTemplate(template)
+}
+
+/** The tray (Windows; macOS has the Dock). Click: the window. */
+export function makeTray(icon: string, actions: MenuActions): Tray {
+ const tray = new Tray(nativeImage.createFromPath(icon))
+ tray.setToolTip(app.getName())
+ tray.on('click', actions.open)
+ return tray
+}
+
+export function trayMenu(labels: Labels | null, actions: MenuActions): Menu {
+ const name = app.getName()
+ return Menu.buildFromTemplate([
+ { label: labels?.open ?? name, click: actions.open },
+ { type: 'separator' },
+ labels ? { label: labels.quit, click: actions.quit } : { role: 'quit' },
+ ])
+}
diff --git a/apps/desktop/src/preload.ts b/apps/desktop/src/preload.ts
new file mode 100644
index 00000000..20e9556b
--- /dev/null
+++ b/apps/desktop/src/preload.ts
@@ -0,0 +1,27 @@
+// The bridge the web app sees as `window.linedeskDesktop` (apps/web/src/native/desktop.ts), only on the app's own
+// server: a provider sign-in or Stripe page in this window gets nothing. The main process checks the sender's origin
+// again for every message.
+import { contextBridge, ipcRenderer } from 'electron'
+import { CHANNEL, type CallNotice, type Labels } from './bridge.ts'
+
+const arg = (name: string) => process.argv.find(a => a.startsWith(`--${name}=`))?.slice(name.length + 3) ?? ''
+const server = arg('linedesk-server')
+const platform = arg('linedesk-platform')
+const version = arg('linedesk-version')
+
+if (server && window.location.origin === server) {
+ contextBridge.exposeInMainWorld('linedeskDesktop', {
+ platform,
+ version,
+ /** Opens the server's sign-in page in the system browser; resolves with the loopback address it came back on. */
+ signIn: (url: string): Promise<{ url: string }> => ipcRenderer.invoke(CHANNEL.signIn, url),
+ notify: (notice: CallNotice) => ipcRenderer.send(CHANNEL.notify, notice),
+ setLabels: (labels: Labels) => ipcRenderer.send(CHANNEL.labels, labels),
+ setBadge: (count: number) => ipcRenderer.send(CHANNEL.badge, count),
+ onOpenCall: (fn: (id: string) => void) => {
+ const listener = (_: unknown, id: unknown) => typeof id === 'string' && fn(id)
+ ipcRenderer.on(CHANNEL.openCall, listener)
+ return () => ipcRenderer.off(CHANNEL.openCall, listener)
+ },
+ })
+}
diff --git a/apps/desktop/src/signIn.test.ts b/apps/desktop/src/signIn.test.ts
new file mode 100644
index 00000000..be1e4aba
--- /dev/null
+++ b/apps/desktop/src/signIn.test.ts
@@ -0,0 +1,45 @@
+import assert from 'node:assert/strict'
+import { test } from 'node:test'
+import { isStartPage, waitForSignIn } from './signIn.ts'
+
+const server = 'https://app.linedesk.ai'
+const challenge = 'a'.repeat(43)
+const start = `${server}/app-sign-in?provider=google&challenge=${challenge}`
+
+test('only the server’s own start page opens in the browser', () => {
+ assert.equal(isStartPage(start, server), true)
+ assert.equal(isStartPage(`https://evil.example/app-sign-in?provider=google&challenge=${challenge}`, server), false)
+ assert.equal(isStartPage(`${server}/elsewhere?provider=google&challenge=${challenge}`, server), false)
+ assert.equal(isStartPage(`${server}/app-sign-in?provider=google&challenge=short`, server), false)
+ assert.equal(isStartPage(`${start}&port=1234`, server), false)
+ assert.equal(isStartPage('file:///x', server), false)
+})
+
+test('the browser hands the code back on the loopback port, then sees the server’s note', async () => {
+ const waiting = await waitForSignIn(start, server)
+ const port = new URL(waiting.url).searchParams.get('port')
+ assert.match(port ?? '', /^\d+$/)
+ const other = await fetch(`http://127.0.0.1:${port}/favicon.ico`)
+ assert.equal(other.status, 404)
+ // A malformed code and another host name are ignored; the wait goes on.
+ assert.equal((await fetch(`http://127.0.0.1:${port}/app-sign-in/back?code=short`)).status, 404)
+ const rebound = await fetch(`http://localhost:${port}/app-sign-in/back?code=${'c'.repeat(43)}`).catch(() => null)
+ assert.notEqual(rebound?.status, 302)
+ const res = await fetch(`http://127.0.0.1:${port}/app-sign-in/back?code=${'c'.repeat(43)}`, { redirect: 'manual' })
+ assert.equal(res.status, 302)
+ assert.equal(res.headers.get('location'), `${server}/app-sign-in/back?desktop=1`)
+ const back = new URL(await waiting.done)
+ assert.equal(back.searchParams.get('code'), 'c'.repeat(43))
+ // One use: the port is closed now.
+ await assert.rejects(fetch(`http://127.0.0.1:${port}/app-sign-in/back?code=x`))
+})
+
+test('an error comes back as an error; cancel rejects', async () => {
+ const waiting = await waitForSignIn(start, server)
+ const port = new URL(waiting.url).searchParams.get('port')
+ await fetch(`http://127.0.0.1:${port}/app-sign-in/back?error=access_denied`, { redirect: 'manual' })
+ assert.equal(new URL(await waiting.done).searchParams.get('error'), 'access_denied')
+ const other = await waitForSignIn(start, server)
+ other.cancel()
+ await assert.rejects(other.done, /cancelled/)
+})
diff --git a/apps/desktop/src/signIn.ts b/apps/desktop/src/signIn.ts
new file mode 100644
index 00000000..83641912
--- /dev/null
+++ b/apps/desktop/src/signIn.ts
@@ -0,0 +1,84 @@
+// A provider sign-in for the desktop app (the whole flow: apps/api/src/app-sign-in.ts). Google and others refuse
+// sign-ins inside an app's window, so it runs in the system's browser, and the one-use code comes back on a loopback
+// address only this app listens on (RFC 8252, 7.3): `http://127.0.0.1:<port>/app-sign-in/back?code=…`. The web app in
+// the window keeps the PKCE verifier and redeems the code; this side only opens the browser and waits for the address.
+import { createServer, type Server } from 'node:http'
+import type { AddressInfo } from 'node:net'
+
+/** Where the browser page hands the code back (the web app's APP_SIGN_IN_BACK_PATH). */
+export const BACK_PATH = '/app-sign-in/back'
+/** The browser page of the sign-in (the web app's APP_SIGN_IN_PATH). */
+export const START_PATH = '/app-sign-in'
+/** A sign-in the person does not finish in this time ends as cancelled. */
+const WAIT_MS = 10 * 60 * 1000
+/** A one-use code: 32 random bytes, base64url. */
+const CODE = /^[A-Za-z0-9_-]{43}$/
+
+export type Waiting = { url: string; done: Promise<string>; cancel: () => void }
+
+/**
+ * Whether `address` is the server's own sign-in page with a provider and a challenge, and nothing else: the only page
+ * this app opens in the browser for the web app.
+ */
+export function isStartPage(address: string, server: string): boolean {
+ try {
+ const url = new URL(address)
+ return (
+ url.origin === new URL(server).origin &&
+ url.pathname === START_PATH &&
+ /^[a-z]{2,20}$/.test(url.searchParams.get('provider') ?? '') &&
+ /^[A-Za-z0-9_-]{43}$/.test(url.searchParams.get('challenge') ?? '') &&
+ !url.searchParams.has('port')
+ )
+ } catch {
+ return false
+ }
+}
+
+/**
+ * Listens on a free loopback port, gives the start page with that port, and resolves with the address the browser
+ * came back on (with `code`, or `error`). The browser then goes on to the server's note "go back to the app".
+ * One request on BACK_PATH ends it; anything else gets 404. Rejects with `cancelled` on `cancel()` or after WAIT_MS.
+ */
+export async function waitForSignIn(start: string, server: string): Promise<Waiting> {
+ let settle: { resolve: (url: string) => void; reject: (e: Error) => void } | undefined
+ const done = new Promise<string>((resolve, reject) => {
+ settle = { resolve, reject }
+ })
+ const httpServer: Server = createServer((req, res) => {
+ const url = new URL(req.url ?? '/', 'http://127.0.0.1')
+ const code = url.searchParams.get('code')
+ // Only the browser page's own hand-back: this address (not another name for it, DNS rebinding), and a code of the
+ // right form or an error. Anything else is ignored and the wait goes on (security review of LIN-903, L3).
+ const fits = code ? CODE.test(code) : url.searchParams.has('error')
+ if (req.method !== 'GET' || url.pathname !== BACK_PATH || req.headers.host !== `127.0.0.1:${port}` || !fits) {
+ res.writeHead(404).end()
+ return
+ }
+ const answer = new URL(`http://127.0.0.1:${port}${BACK_PATH}`)
+ if (code) answer.searchParams.set('code', code)
+ else answer.searchParams.set('error', url.searchParams.get('error') || 'cancelled')
+ const note = new URL(BACK_PATH, server)
+ note.searchParams.set('desktop', '1')
+ res.writeHead(302, { location: note.toString(), 'cache-control': 'no-store' }).end()
+ finish()
+ settle?.resolve(answer.toString())
+ })
+ const timer = setTimeout(() => cancel(), WAIT_MS)
+ const finish = () => {
+ clearTimeout(timer)
+ httpServer.close()
+ }
+ const cancel = () => {
+ finish()
+ settle?.reject(new Error('cancelled'))
+ }
+ await new Promise<void>((resolve, reject) => {
+ httpServer.once('error', reject)
+ httpServer.listen(0, '127.0.0.1', () => resolve())
+ })
+ const port = (httpServer.address() as AddressInfo).port
+ const url = new URL(start)
+ url.searchParams.set('port', String(port))
+ return { url: url.toString(), done, cancel }
+}
diff --git a/apps/desktop/src/updates.ts b/apps/desktop/src/updates.ts
new file mode 100644
index 00000000..cda81029
--- /dev/null
+++ b/apps/desktop/src/updates.ts
@@ -0,0 +1,17 @@
+// Automatic updates (electron-updater): built in, off. When Linedesk publishes desktop releases, a build with
+// LINEDESK_DESKTOP_UPDATES=1 checks the release feed (electron-builder.yml `publish`) at start and every 6 hours,
+// downloads in the background and installs on the next quit. Until then nothing is checked or downloaded.
+import { app } from 'electron'
+import { UPDATES_ON } from './config.ts'
+
+const EVERY_MS = 6 * 60 * 60 * 1000
+
+export async function startUpdates() {
+ if (!UPDATES_ON || !app.isPackaged) return
+ const { autoUpdater } = await import('electron-updater')
+ autoUpdater.autoDownload = true
+ autoUpdater.autoInstallOnAppQuit = true
+ const check = () => void autoUpdater.checkForUpdates().catch(() => {})
+ check()
+ setInterval(check, EVERY_MS).unref()
+}
diff --git a/apps/desktop/src/windowState.ts b/apps/desktop/src/windowState.ts
new file mode 100644
index 00000000..e7dd4201
--- /dev/null
+++ b/apps/desktop/src/windowState.ts
@@ -0,0 +1,44 @@
+// The window's size and place, kept between starts (a small JSON file in the app's data folder).
+import { readFileSync, writeFileSync } from 'node:fs'
+import { join } from 'node:path'
+import { app, type BrowserWindow, screen } from 'electron'
+
+type State = { x?: number; y?: number; width: number; height: number; maximized?: boolean }
+const DEFAULT: State = { width: 1280, height: 820 }
+const file = () => join(app.getPath('userData'), 'window-state.json')
+
+export function readWindowState(): State {
+ try {
+ const state = JSON.parse(readFileSync(file(), 'utf8')) as State
+ if (typeof state.width !== 'number' || typeof state.height !== 'number') return DEFAULT
+ // A place on a screen that is gone (another monitor) is dropped; the system centers the window.
+ const visible =
+ state.x === undefined ||
+ screen.getAllDisplays().some(d => {
+ const b = d.workArea
+ return state.x! >= b.x - 50 && state.y! >= b.y - 50 && state.x! < b.x + b.width && state.y! < b.y + b.height
+ })
+ return visible ? state : { width: state.width, height: state.height }
+ } catch {
+ return DEFAULT
+ }
+}
+
+export function keepWindowState(win: BrowserWindow) {
+ let timer: NodeJS.Timeout | undefined
+ const save = () => {
+ clearTimeout(timer)
+ timer = setTimeout(() => {
+ if (win.isDestroyed()) return
+ const b = win.getNormalBounds()
+ try {
+ writeFileSync(file(), JSON.stringify({ ...b, maximized: win.isMaximized() }))
+ } catch {
+ // A read-only data folder: the next start opens at the default size.
+ }
+ }, 500)
+ }
+ win.on('resize', save)
+ win.on('move', save)
+ win.on('close', save)
+}
diff --git a/apps/desktop/static/icon.png b/apps/desktop/static/icon.png
new file mode 100644
index 00000000..ff99cdec
Binary files /dev/null and b/apps/desktop/static/icon.png differ
diff --git a/apps/desktop/static/offline.html b/apps/desktop/static/offline.html
new file mode 100644
index 00000000..4bddbf8c
--- /dev/null
+++ b/apps/desktop/static/offline.html
@@ -0,0 +1,44 @@
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8" />
+
+ <title>Linedesk</title>
+ <style>
+ html, body { height: 100%; margin: 0; }
+ body {
+ display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
+ padding: 24px;
+ background: #fafaf8; color: #1c1917; text-align: center;
+ font: 16px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
+ }
+ @media (prefers-color-scheme: dark) { body { background: #1c1917; color: #fafaf8; } button { background: #fafaf8; color: #1c1917; } }
+ h1 { font-size: 20px; margin: 0; }
+ p { margin: 0; max-width: 320px; opacity: 0.7; }
+ button { border: 0; border-radius: 10px; padding: 12px 20px; font: inherit; font-weight: 600; background: #1c1917; color: #fafaf8; }
+ </style>
+ </head>
+ <body>
+ <!-- Before the web app (and its translations) loads, so the text is chosen here by the system's language. -->
+ <h1 id="title">No connection</h1>
+ <p id="text">Linedesk needs the internet. Check your connection and try again.</p>
+ <button id="retry" type="button">Try again</button>
+ <script>
+ const words = {
+ de: ['Keine Verbindung', 'Linedesk braucht Internet. Prüfe deine Verbindung und versuche es noch einmal.', 'Noch einmal'],
+ es: ['Sin conexión', 'Linedesk necesita internet. Revisa tu conexión y vuelve a intentarlo.', 'Reintentar'],
+ fr: ['Pas de connexion', 'Linedesk a besoin d’internet. Vérifiez votre connexion et réessayez.', 'Réessayer'],
+ pt: ['Sem conexão', 'O Linedesk precisa de internet. Verifique sua conexão e tente de novo.', 'Tentar de novo'],
+ ja: ['接続がありません', 'Linedesk にはインターネット接続が必要です。接続を確認して、もう一度お試しください。', '再試行'],
+ }
+ const w = words[(navigator.language || 'en').slice(0, 2)]
+ if (w) {
+ document.documentElement.lang = navigator.language.slice(0, 2)
+ document.getElementById('title').textContent = w[0]
+ document.getElementById('text').textContent = w[1]
+ document.getElementById('retry').textContent = w[2]
+ }
+ document.getElementById('retry').onclick = () => { const server = new URLSearchParams(location.search).get('server'); if (server && /^https?:\/\/[^/]+$/.test(server)) location.href = `${server}/` }
+ </script>
+ </body>
+</html>
diff --git a/apps/desktop/static/tray.png b/apps/desktop/static/tray.png
new file mode 100644
index 00000000..907cf02b
Binary files /dev/null and b/apps/desktop/static/tray.png differ
diff --git a/apps/desktop/tsconfig.json b/apps/desktop/tsconfig.json
new file mode 100644
index 00000000..d1cdbfae
--- /dev/null
+++ b/apps/desktop/tsconfig.json
@@ -0,0 +1,5 @@
+{
+ "extends": "../../tsconfig.base.json",
+ "compilerOptions": { "types": ["node"], "lib": ["ES2023", "DOM"] },
+ "include": ["src", "e2e", "scripts/*.ts"]
+}
diff --git a/apps/web/src/auth.ts b/apps/web/src/auth.ts
index 4e95e540..e37f2ea3 100644
--- a/apps/web/src/auth.ts
+++ b/apps/web/src/auth.ts
@@ -13,6 +13,7 @@ import { readLastUsedMethod } from './sign-in-methods.ts'
import { announceSwitch } from './tabWorkspace.ts'
import { brandName } from './brand.ts'
import { i18n } from './i18n/index.tsx'
+import { desktopApp, isDesktopApp } from './native/desktop.ts'
import { isNativeApp } from './native/platform.ts'
export type { AuthMethods, LegalLinks, SsoMethod }
@@ -330,8 +331,13 @@ export function signInWithCode(email: string, otp: string) {
return auth.signIn.emailOtp({ email, otp })
}
-/** Whether this browser can use passkeys: WebAuthn, on https or localhost. */
+/**
+ * Whether this browser can use passkeys: WebAuthn, on https or localhost. Not in the macOS desktop app yet: Electron
+ * offers passkeys there only to a signed app with the server as its associated domain (app.configureWebAuthn), which
+ * the app does not have before its first signed release.
+ */
export function passkeySupported(): boolean {
+ if (desktopApp()?.platform === 'mac') return false
return typeof window !== 'undefined' && window.isSecureContext && typeof window.PublicKeyCredential === 'function'
}
@@ -341,14 +347,14 @@ export function signInWithPasskey() {
}
/**
- * Leaves the page for the provider; the session exists when the browser comes back. In the Linedesk app the provider
- * page opens in the system's sign-in browser instead and the session comes back by a one-use code (native/appSignIn.ts):
+ * Leaves the page for the provider; the session exists when the browser comes back. In the Linedesk app (phone or
+ * desktop) the provider page opens in the system's sign-in browser instead and the session comes back by a one-use code (native/appSignIn.ts):
* Google refuses sign-ins inside an app's web view. `cancelled`: the person closed that browser, nothing to say.
*/
export async function startSso(
method: SsoMethod,
): Promise<{ error: { code?: string; message?: string } | null; cancelled?: true }> {
- if (!isNativeApp()) {
+ if (!isNativeApp() && !isDesktopApp()) {
const res = await auth.signIn.social({ provider: method.id, ...back() })
return { error: res.error }
}
diff --git a/apps/web/src/i18n/index.tsx b/apps/web/src/i18n/index.tsx
index ef15aac6..102b0528 100644
--- a/apps/web/src/i18n/index.tsx
+++ b/apps/web/src/i18n/index.tsx
@@ -103,6 +103,9 @@ const subscribe = (listener: () => void) => {
return () => listeners.delete(listener)
}
+/** Calls `listener` after the language changed (outside React: the desktop app's menus). */
+export const onLocaleChange = subscribe
+
/** Gives the app the active language; everything below re-renders when it changes. */
export function LocaleRoot({ children }: { children: ReactNode }) {
const value = useSyncExternalStore(subscribe, () => current)
diff --git a/apps/web/src/main.tsx b/apps/web/src/main.tsx
index 7fd0acfd..6acdc0bd 100644
--- a/apps/web/src/main.tsx
+++ b/apps/web/src/main.tsx
@@ -3,7 +3,10 @@ import { createRoot } from 'react-dom/client'
import { App } from './App.tsx'
import { AppSignInPage } from './native/AppSignInPage.tsx'
import { readAppSignInPage } from './native/appSignIn.ts'
+import { desktopAppReady, startDesktopApp } from './native/desktop.ts'
import { nativeAppReady, startNativeApp } from './native/init.ts'
+import { OpenedInDesktopPage } from './native/OpenedInDesktopPage.tsx'
+import { desktopLinkHere } from './native/openInDesktop.ts'
// Fonts ship with the app: no request to a font CDN when a self-hosted install opens.
import '@fontsource/geist/400.css'
import '@fontsource/geist/500.css'
@@ -27,6 +30,8 @@ import { installTooltips } from './ui/tooltips.ts'
// Inside the iOS or Android app: status bar, back button, links (native/init.ts). Nothing in a browser.
startNativeApp()
+// Inside the desktop app: notifications' clicks, its CSS class (native/desktop.ts). Nothing in a browser.
+startDesktopApp()
// Signed out on any screen: the app goes to the sign-in page (signedOutWatch.ts, App.tsx).
watchUnauthorized()
// The last errors on the page, for Help › Report a bug (feedback/errorLog.ts).
@@ -45,6 +50,9 @@ if (openRouterBack) window.history.replaceState(null, '', `${window.location.pat
// The Linedesk app's provider sign-in, in the system browser (native/appSignIn.ts): only its own page, not the app.
const appSignIn = readAppSignInPage()
+// A link from an email that this browser hands to the desktop app (native/openInDesktop.ts): only a note stays here.
+const toDesktop = appSignIn ? null : desktopLinkHere()
+if (toDesktop) window.location.href = toDesktop
// The language's messages load before the first render (the static boot line shows meanwhile), so no English flashes.
// A language that fails to load leaves English.
@@ -56,6 +64,8 @@ void activate(initialLocale(), { remember: !languageFromAddress() })
<LocaleRoot>
{appSignIn ? (
<AppSignInPage page={appSignIn} />
+ ) : toDesktop ? (
+ <OpenedInDesktopPage link={toDesktop} />
) : (
<>
<App />
@@ -66,4 +76,9 @@ void activate(initialLocale(), { remember: !languageFromAddress() })
</StrictMode>,
),
)
- .then(() => requestAnimationFrame(nativeAppReady))
+ .then(() =>
+ requestAnimationFrame(() => {
+ nativeAppReady()
+ desktopAppReady()
+ }),
+ )
diff --git a/apps/web/src/native/AppSignInPage.tsx b/apps/web/src/native/AppSignInPage.tsx
index 2e70bb7f..0f8f8749 100644
--- a/apps/web/src/native/AppSignInPage.tsx
+++ b/apps/web/src/native/AppSignInPage.tsx
@@ -1,6 +1,7 @@
// The page the Linedesk app opens in the system's sign-in browser (native/appSignIn.ts): straight on to the provider;
// back from it, who signed in and the person's OK; then the hand-back to the app. Shown in place of the whole web app.
// The OK is a tap on purpose: no code ever leaves without it, and on Android a tap lets the verified link open the app.
+// For the desktop app (`port` in the address) the code goes to its loopback port, and the browser ends on a note.
import { useT } from '@linedesk/i18n/react'
import { useEffect, useState } from 'react'
import { WaitLine } from '../shell/SignedInAuthPage.tsx'
@@ -24,20 +25,21 @@ export function AppSignInPage({ page }: { page: Page }) {
const t = useT()
const [view, setView] = useState<View>(page.step === 'back' ? { back: true } : { wait: true })
const [busy, setBusy] = useState(false)
+ const port = page.step === 'back' ? null : page.port
useEffect(() => {
let left = false
void (async () => {
if (page.step === 'start') {
- started ??= startProviderForApp(page.provider, page.challenge)
+ started ??= startProviderForApp(page.provider, page.challenge, page.port)
const { error } = await started
- if (error && !left) setView({ failed: appReturnUrl({ error }) })
+ if (error && !left) setView({ failed: appReturnUrl({ error }, page.port) })
} else if (page.step === 'done') {
- if (page.error) return setView({ failed: appReturnUrl({ error: page.error }) })
+ if (page.error) return setView({ failed: appReturnUrl({ error: page.error }, page.port) })
looked ??= signedInEmail()
const email = await looked
if (left) return
- setView(email ? { confirm: email } : { failed: appReturnUrl({ error: 'APP_SIGN_IN_REFUSED' }) })
+ setView(email ? { confirm: email } : { failed: appReturnUrl({ error: 'APP_SIGN_IN_REFUSED' }, page.port) })
}
})()
return () => {
@@ -47,7 +49,7 @@ export function AppSignInPage({ page }: { page: Page }) {
const confirm = async () => {
setBusy(true)
- window.location.href = await codeForApp()
+ window.location.href = await codeForApp(port)
}
return (
@@ -57,11 +59,13 @@ export function AppSignInPage({ page }: { page: Page }) {
{'wait' in view && <WaitLine />}
{'confirm' in view && (
<>
- <p className="auth-note">{t('auth.appSignIn.confirm', { email: view.confirm })}</p>
+ <p className="auth-note">
+ {t(port ? 'auth.appSignIn.confirmDesktop' : 'auth.appSignIn.confirm', { email: view.confirm })}
+ </p>
<Button variant="primary" size="lg" busy={busy} onClick={() => void confirm()}>
{t('auth.appSignIn.continue')}
</Button>
- <a className="auth-switch auth-more" href={appReturnUrl({ error: 'cancelled' })}>
+ <a className="auth-switch auth-more" href={appReturnUrl({ error: 'cancelled' }, port)}>
{t('common.action.cancel')}
</a>
</>
@@ -74,7 +78,11 @@ export function AppSignInPage({ page }: { page: Page }) {
</a>
</>
)}
- {'back' in view && <p className="auth-note">{t('auth.appSignIn.openApp')}</p>}
+ {'back' in view && (
+ <p className="auth-note">
+ {t(page.step === 'back' && page.desktop ? 'auth.appSignIn.desktopDone' : 'auth.appSignIn.openApp')}
+ </p>
+ )}
</div>
</AuthPage>
)
diff --git a/apps/web/src/native/OpenedInDesktopPage.tsx b/apps/web/src/native/OpenedInDesktopPage.tsx
new file mode 100644
index 00000000..b3624450
--- /dev/null
+++ b/apps/web/src/native/OpenedInDesktopPage.tsx
@@ -0,0 +1,29 @@
+// Shown in the browser tab whose page went on to the desktop app (native/openInDesktop.ts): where it went, the link
+// again, and the way to stay here.
+import { useT } from '@linedesk/i18n/react'
+import { brandName } from '../brand.ts'
+import { AuthPage, Button } from '../ui/kit.tsx'
+import { stayInBrowser } from './openInDesktop.ts'
+
+export function OpenedInDesktopPage({ link }: { link: string }) {
+ const t = useT()
+ const brand = brandName()
+ const stay = () => {
+ stayInBrowser()
+ window.location.reload()
+ }
+ return (
+ <AuthPage>
+ <div className="auth-card">
+ <h1>{t('shell.desktop.openedTitle', { brand })}</h1>
+ <p className="auth-note">{t('shell.desktop.openedText', { brand })}</p>
+ <Button variant="primary" size="lg" onClick={stay}>
+ {t('shell.desktop.openHere')}
+ </Button>
+ <a className="auth-switch auth-more" href={link}>
+ {t('shell.desktop.openAgain', { brand })}
+ </a>
+ </div>
+ </AuthPage>
+ )
+}
diff --git a/apps/web/src/native/appSignIn.test.ts b/apps/web/src/native/appSignIn.test.ts
new file mode 100644
index 00000000..2c418829
--- /dev/null
+++ b/apps/web/src/native/appSignIn.test.ts
@@ -0,0 +1,50 @@
+// The desktop app's part of the sign-in page (LIN-903): its loopback port rides in the address, and the code goes
+// only to 127.0.0.1 on that port; the phone apps' hand-back is unchanged.
+import { expect, test } from 'vitest'
+import { appReturnUrl, readAppSignInPage } from './appSignIn.ts'
+
+const challenge = 'a'.repeat(43)
+const mac = { userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) Chrome/142 Safari/537.36', maxTouchPoints: 0 }
+const at = (pathname: string, search: string, nav = mac) => readAppSignInPage({ pathname, search }, nav)
+
+test('the start and the return read the desktop app’s port; a bad port counts as none', () => {
+ expect(at('/app-sign-in', `?provider=google&challenge=${challenge}&port=51234`)).toEqual({
+ step: 'start',
+ provider: 'google',
+ challenge,
+ port: 51234,
+ })
+ expect(at('/app-sign-in', `?provider=google&challenge=${challenge}`)).toMatchObject({ port: null })
+ for (const port of ['80', '99999', '5123x', '-1', '1023'])
+ expect(at('/app-sign-in', `?provider=google&challenge=${challenge}&port=${port}`)).toMatchObject({ port: null })
+ expect(at('/app-sign-in', '?done=1&port=51234')).toEqual({ step: 'done', error: null, port: 51234 })
+ // On a phone or tablet the port never counts: another app there could listen on it.
+ const android = {
+ userAgent: 'Mozilla/5.0 (Linux; Android 15; Pixel 9) Chrome/142 Mobile Safari/537.36',
+ maxTouchPoints: 5,
+ }
+ const ipad = { ...mac, maxTouchPoints: 5 }
+ const iphone = { userAgent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 18_0 like Mac OS X) Safari/604.1', maxTouchPoints: 5 }
+ const tablet = { userAgent: 'Mozilla/5.0 (X11; Linux x86_64) Chrome/142 Safari/537.36', maxTouchPoints: 10 }
+ for (const phone of [android, ipad, iphone, tablet])
+ expect(at('/app-sign-in', `?provider=google&challenge=${challenge}&port=51234`, phone)).toMatchObject({
+ port: null,
+ })
+ const windows = { userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) Chrome/142', maxTouchPoints: 0 }
+ expect(at('/app-sign-in', '?done=1&port=51234', windows)).toMatchObject({ port: 51234 })
+ expect(at('/app-sign-in/back', '?desktop=1')).toEqual({ step: 'back', desktop: true })
+ expect(at('/app-sign-in/back', '?code=x')).toEqual({ step: 'back', desktop: false })
+})
+
+test('the code goes to the loopback port for the desktop app, to the server for the phone apps', () => {
+ const code = 'c'.repeat(43)
+ expect(appReturnUrl({ code }, 51234, 'https://app.linedesk.ai')).toBe(
+ `http://127.0.0.1:51234/app-sign-in/back?code=${code}`,
+ )
+ expect(appReturnUrl({ code }, null, 'https://app.linedesk.ai')).toBe(
+ `https://app.linedesk.ai/app-sign-in/back?code=${code}`,
+ )
+ expect(appReturnUrl({ error: 'cancelled' }, 51234, 'https://app.linedesk.ai')).toBe(
+ 'http://127.0.0.1:51234/app-sign-in/back?error=cancelled',
+ )
+})
diff --git a/apps/web/src/native/appSignIn.ts b/apps/web/src/native/appSignIn.ts
index 368f4efc..066f094b 100644
--- a/apps/web/src/native/appSignIn.ts
+++ b/apps/web/src/native/appSignIn.ts
@@ -1,8 +1,11 @@
// A provider sign-in from the Linedesk app (apps/api/src/app-sign-in.ts has the whole flow). In the app: open this
// install's own page in the system's sign-in browser with a PKCE challenge, then redeem the code that comes back. In
// that browser: the provider sign-in, the person's OK, a one-use code for the app, and back to the app with it on the
-// server's own https address (a universal link / verified app link only the real app receives).
+// server's own https address (a universal link / verified app link only the real app receives). The desktop app
+// (apps/desktop) does the same, but its code comes back on a loopback address only it listens on (RFC 8252, 7.3):
+// `http://127.0.0.1:<port>/app-sign-in/back?code=…`, the port in the page's address (`port`).
import { auth } from '../auth.ts'
+import { desktopApp } from './desktop.ts'
import { LinedeskAuth } from './plugins.ts'
/**
@@ -15,6 +18,9 @@ export const APP_SIGN_IN_PATH = '/app-sign-in'
export const APP_SIGN_IN_BACK_PATH = '/app-sign-in/back'
const START_PARAM = 'provider'
const DONE_PARAM = 'done'
+/** The desktop app's loopback port (its sign-in) and the note it sends the browser to afterwards. */
+const PORT_PARAM = 'port'
+const DESKTOP_PARAM = 'desktop'
const CHALLENGE_KEY = 'linedesk.appSignInChallenge'
const base64url = (bytes: Uint8Array) =>
@@ -52,13 +58,17 @@ export function readAppReturn(address: string): { code: string } | { error: stri
/**
* In the app: the provider sign-in in the system browser, then the session for this web view. Resolves with an error
* code for the sign-in page (cancelled, the provider's own code, or APP_SIGN_IN_REFUSED), or nothing when signed in.
+ * The desktop app opens the browser and waits on its loopback port; the phone apps use their sign-in browser.
*/
export async function nativeProviderSignIn(provider: string): Promise<{ error?: string }> {
const verifier = newVerifier()
const start = appSignInStartUrl(window.location.origin, provider, await challengeOf(verifier))
+ const desktop = desktopApp()
let back: { url: string }
try {
- back = await LinedeskAuth.start({ url: start, callbackPath: APP_SIGN_IN_BACK_PATH })
+ back = desktop
+ ? await desktop.signIn(start)
+ : await LinedeskAuth.start({ url: start, callbackPath: APP_SIGN_IN_BACK_PATH })
} catch {
return { error: 'cancelled' }
}
@@ -75,24 +85,55 @@ export async function nativeProviderSignIn(provider: string): Promise<{ error?:
// --- In the system browser -------------------------------------------------------------------------------------------
+/** `port`: the desktop app's loopback port, null for the phone apps. */
export type AppSignInPage =
- | { step: 'start'; provider: string; challenge: string }
- | { step: 'done'; error: string | null }
- | { step: 'back' }
+ | { step: 'start'; provider: string; challenge: string; port: number | null }
+ | { step: 'done'; error: string | null; port: number | null }
+ | { step: 'back'; desktop: boolean }
+
+type Nav = Pick<Navigator, 'userAgent' | 'maxTouchPoints'>
+
+/**
+ * A browser of a computer (macOS, Windows, Linux), where the desktop app runs: not a phone or tablet. On a phone another
+ * app could listen on a loopback port and start a sign-in with its own challenge and `port`, so there the code only
+ * ever goes to the app's verified https address (security review of LIN-903, M1).
+ */
+export function computerBrowser(nav: Nav | undefined = typeof navigator === 'undefined' ? undefined : navigator) {
+ if (!nav) return false
+ const ua = nav.userAgent
+ if (/Android|iPhone|iPad|iPod|Mobile/i.test(ua)) return false
+ if (/Macintosh/.test(ua)) return nav.maxTouchPoints <= 1 // an iPad asks for the desktop site as a Mac with touch
+ if (/Windows NT/.test(ua)) return true
+ // Linux and ChromeOS without touch: an Android tablet asking for the desktop site says "Linux" too.
+ return /Linux|CrOS/.test(ua) && nav.maxTouchPoints <= 1
+}
+
+/** A loopback port the desktop app can listen on (not a privileged one), only in a computer's browser. */
+function readPort(params: URLSearchParams, nav?: Nav): number | null {
+ if (!computerBrowser(nav)) return null
+ const raw = params.get(PORT_PARAM)
+ if (!raw || !/^\d{4,5}$/.test(raw)) return null
+ const port = Number(raw)
+ return port >= 1024 && port <= 65535 ? port : null
+}
/** Whether this page load is the app's sign-in in the system browser, and which step. */
export function readAppSignInPage(
location: Pick<Location, 'pathname' | 'search'> = window.location,
+ nav?: Nav,
): AppSignInPage | null {
// The app did not take the hand-back address (not installed, or opened in another browser): only a note.
- if (location.pathname === APP_SIGN_IN_BACK_PATH) return { step: 'back' }
+ // The desktop app took it and sent the browser here (`desktop=1`): only a note to go back to the app.
+ if (location.pathname === APP_SIGN_IN_BACK_PATH)
+ return { step: 'back', desktop: new URLSearchParams(location.search).has(DESKTOP_PARAM) }
if (location.pathname !== APP_SIGN_IN_PATH) return null
const params = new URLSearchParams(location.search)
const provider = params.get(START_PARAM)
const challenge = params.get('challenge')
+ const port = readPort(params, nav)
if (provider && challenge && /^[a-z]{2,20}$/.test(provider) && /^[A-Za-z0-9_-]{43}$/.test(challenge))
- return { step: 'start', provider, challenge }
- if (params.has(DONE_PARAM)) return { step: 'done', error: params.get('error') }
+ return { step: 'start', provider, challenge, port }
+ if (params.has(DONE_PARAM)) return { step: 'done', error: params.get('error'), port }
return null
}
@@ -104,18 +145,32 @@ const postJson = (path: string, body: object) =>
body: JSON.stringify(body),
})
-/** Step 1 in the browser: the server keeps the challenge with the time (a cookie of this browser), then the provider. */
-export async function startProviderForApp(provider: string, challenge: string): Promise<{ error?: string }> {
+/**
+ * Step 1 in the browser: the server keeps the challenge with the time (a cookie of this browser), then the provider.
+ * The desktop app's port rides along in the address the provider comes back to.
+ */
+export async function startProviderForApp(
+ provider: string,
+ challenge: string,
+ port: number | null = null,
+): Promise<{ error?: string }> {
const started = await postJson('/api/auth/app-sign-in/start', { challenge }).catch(() => null)
if (!started?.ok) return { error: 'APP_SIGN_IN_REFUSED' }
- const back = `${window.location.origin}${APP_SIGN_IN_PATH}?${DONE_PARAM}=1`
+ const back = `${window.location.origin}${APP_SIGN_IN_PATH}?${DONE_PARAM}=1${port ? `&${PORT_PARAM}=${port}` : ''}`
const res = await auth.signIn.social({ provider, callbackURL: back, errorCallbackURL: back })
return res.error ? { error: res.error.code ?? 'failed' } : {}
}
-/** The address that hands the browser back to the app (with a code, or with what went wrong). */
-export function appReturnUrl(answer: { code: string } | { error: string }, origin = window.location.origin) {
- const url = new URL(APP_SIGN_IN_BACK_PATH, origin)
+/**
+ * The address that hands the browser back to the app (with a code, or with what went wrong): the server's own https
+ * address for the phone apps, the loopback port for the desktop app (only ever 127.0.0.1).
+ */
+export function appReturnUrl(
+ answer: { code: string } | { error: string },
+ port: number | null = null,
+ origin = window.location.origin,
+) {
+ const url = new URL(APP_SIGN_IN_BACK_PATH, port ? `http://127.0.0.1:${port}` : origin)
if ('code' in answer) url.searchParams.set('code', answer.code)
else url.searchParams.set('error', answer.error)
return url.toString()
@@ -132,10 +187,10 @@ export async function signedInEmail(): Promise<string | null> {
* Step 3, after the person's OK: a one-use code for the app (the server ends this browser's session when the app
* redeems it). Resolves with the address that returns to the app.
*/
-export async function codeForApp(): Promise<string> {
+export async function codeForApp(port: number | null = null): Promise<string> {
const res = await postJson('/api/auth/app-sign-in/code', {}).catch(() => null)
const body = (await res?.json().catch(() => null)) as { code?: unknown } | null
return typeof body?.code === 'string'
- ? appReturnUrl({ code: body.code })
- : appReturnUrl({ error: 'APP_SIGN_IN_REFUSED' })
+ ? appReturnUrl({ code: body.code }, port)
+ : appReturnUrl({ error: 'APP_SIGN_IN_REFUSED' }, port)
}
diff --git a/apps/web/src/native/desktop.ts b/apps/web/src/native/desktop.ts
new file mode 100644
index 00000000..7f43dc89
--- /dev/null
+++ b/apps/web/src/native/desktop.ts
@@ -0,0 +1,67 @@
+// The Linedesk desktop app for macOS and Windows (apps/desktop, Electron around these same pages). Its preload gives
+// the server's own pages `window.linedeskDesktop`; in a browser and in the mobile app it is missing and everything
+// here says "no". Unlike the mobile app (native/platform.ts isNativeApp), the desktop app is no store app: buying
+// works in it as on the web.
+import { brandName } from '../brand.ts'
+import { i18n, onLocaleChange } from '../i18n/index.tsx'
+import { callHash } from '../shell/useRoute.ts'
+
+/** A notification about a call (one per call id; a newer one replaces it). */
+export type DesktopNotice = { id: string; title: string; body: string; urgent: boolean }
+
+/** The bridge (apps/desktop/src/preload.ts and bridge.ts on the other side). */
+export interface DesktopBridge {
+ platform: 'mac' | 'windows' | 'linux'
+ version: string
+ /** Opens the server's sign-in page in the system browser; resolves with the loopback address it came back on. */
+ signIn(url: string): Promise<{ url: string }>
+ notify(notice: DesktopNotice): void
+ setLabels(labels: Record<string, string>): void
+ setBadge(count: number): void
+ onOpenCall(fn: (id: string) => void): () => void
+}
+
+/** The desktop app's bridge, or null in a browser and in the mobile app. */
+export const desktopApp = (): DesktopBridge | null =>
+ typeof window === 'undefined' ? null : ((window as { linedeskDesktop?: DesktopBridge }).linedeskDesktop ?? null)
+
+/** True inside the desktop app. */
+export const isDesktopApp = (): boolean => desktopApp() !== null
+
+/** The menus' and the tray's words in the person's language (the shell carries none of its own). */
+function menuLabels(): Record<string, string> {
+ const { t } = i18n()
+ const brand = brandName()
+ return {
+ open: t('shell.desktop.open', { brand }),
+ settings: t('shell.desktop.settings'),
+ quit: t('shell.desktop.quit', { brand }),
+ back: t('shell.desktop.back'),
+ forward: t('shell.desktop.forward'),
+ reload: t('shell.desktop.reload'),
+ file: t('shell.desktop.file'),
+ edit: t('shell.desktop.edit'),
+ view: t('shell.desktop.view'),
+ window: t('shell.desktop.window'),
+ help: t('shell.desktop.help'),
+ docs: t('shell.desktop.docs', { brand }),
+ }
+}
+
+/** Once at start in the desktop app: a class for its CSS, and a clicked notification opens its call here. */
+export function startDesktopApp() {
+ const desktop = desktopApp()
+ if (!desktop) return
+ document.documentElement.classList.add('desktop-app', `desktop-${desktop.platform}`)
+ desktop.onOpenCall(id => {
+ window.location.hash = callHash(id)
+ })
+}
+
+/** After the first paint (the language is loaded), and again when it changes: the menus' words. */
+export function desktopAppReady() {
+ const desktop = desktopApp()
+ if (!desktop) return
+ desktop.setLabels(menuLabels())
+ onLocaleChange(() => desktop.setLabels(menuLabels()))
+}
diff --git a/apps/web/src/native/openInDesktop.test.ts b/apps/web/src/native/openInDesktop.test.ts
new file mode 100644
index 00000000..2dea3886
--- /dev/null
+++ b/apps/web/src/native/openInDesktop.test.ts
@@ -0,0 +1,53 @@
+import { afterEach, beforeEach, expect, test, vi } from 'vitest'
+import { canOpenInDesktop, desktopLink, desktopLinkForPageLoad, stayInBrowser } from './openInDesktop.ts'
+
+// The tests run without a DOM: a window with only the session storage this needs.
+const session = new Map<string, string>()
+beforeEach(() =>
+ vi.stubGlobal('window', {
+ sessionStorage: {
+ getItem: (k: string) => session.get(k) ?? null,
+ setItem: (k: string, v: string) => session.set(k, v),
+ },
+ }),
+)
+afterEach(() => {
+ session.clear()
+ vi.unstubAllGlobals()
+})
+
+const location = { origin: 'https://app.linedesk.ai', pathname: '/', search: '', hash: '#call/abc' }
+const fromEmail = { location, navigation: 'navigate', referrer: '' }
+
+test('a page from an email goes to the desktop app when the setting is on', () => {
+ expect(desktopLinkForPageLoad(fromEmail, true)).toBe('linedesk://open/#call/abc')
+ expect(desktopLinkForPageLoad(fromEmail, false)).toBeNull()
+})
+
+test('reloads, Linedesk’s own links and the bare start page stay in the browser', () => {
+ expect(desktopLinkForPageLoad({ ...fromEmail, navigation: 'reload' }, true)).toBeNull()
+ expect(desktopLinkForPageLoad({ ...fromEmail, navigation: 'back_forward' }, true)).toBeNull()
+ expect(desktopLinkForPageLoad({ ...fromEmail, referrer: 'https://app.linedesk.ai/#inbox' }, true)).toBeNull()
+ expect(desktopLinkForPageLoad({ ...fromEmail, location: { ...location, hash: '' } }, true)).toBeNull()
+ expect(desktopLinkForPageLoad({ ...fromEmail, referrer: 'https://mail.google.com/' }, true)).toBe(
+ 'linedesk://open/#call/abc',
+ )
+})
+
+test('"Open here instead" keeps this tab in the browser', () => {
+ stayInBrowser()
+ expect(desktopLinkForPageLoad(fromEmail, true)).toBeNull()
+})
+
+test('only the start page with a page is a link for the app', () => {
+ expect(desktopLink({ pathname: '/', search: '?ws=1', hash: '#call/x' })).toBe('linedesk://open/?ws=1#call/x')
+ expect(desktopLink({ pathname: '/app-sign-in', search: '', hash: '#x' })).toBeNull()
+})
+
+test('only browsers on a Mac or a Windows PC', () => {
+ const mac = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 Chrome/142 Safari/537.36'
+ expect(canOpenInDesktop({ userAgent: mac, maxTouchPoints: 0 })).toBe(true)
+ expect(canOpenInDesktop({ userAgent: mac, maxTouchPoints: 5 })).toBe(false) // an iPad
+ expect(canOpenInDesktop({ userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64)', maxTouchPoints: 0 })).toBe(true)
+ expect(canOpenInDesktop({ userAgent: 'Mozilla/5.0 (Linux; Android 15)', maxTouchPoints: 5 })).toBe(false)
+})
diff --git a/apps/web/src/native/openInDesktop.ts b/apps/web/src/native/openInDesktop.ts
new file mode 100644
index 00000000..2cbeb97a
--- /dev/null
+++ b/apps/web/src/native/openInDesktop.ts
@@ -0,0 +1,82 @@
+// Links from emails in the desktop app (apps/desktop). Emails link to the server's https pages, which open in the
+// browser; a person who uses the desktop app turns on "Open links in the desktop app" in this browser (User settings ›
+// Profile, Preferences), and from then on a page that came from outside (a link in an email or another app, not a
+// click inside Linedesk) goes on to the app as `linedesk://open/<the same page>`, while this tab says so and offers to
+// stay. The app opens only the start page with its page in the hash (apps/desktop/src/links.ts pageForLink).
+import { isDesktopApp } from './desktop.ts'
+import { isNativeApp } from './platform.ts'
+
+const SETTING_KEY = 'linedesk.openLinksInDesktop'
+/** This tab stays in the browser (the person chose "Open here instead"). */
+const STAY_KEY = 'linedesk.stayInBrowser'
+
+const read = (store: () => Storage, key: string) => {
+ try {
+ return store().getItem(key)
+ } catch {
+ return null
+ }
+}
+
+/** A browser on a Mac or a Windows PC, where the desktop app can be installed (not a phone, not an iPad, not in an app). */
+export function canOpenInDesktop(nav: Pick<Navigator, 'userAgent' | 'maxTouchPoints'> = navigator): boolean {
+ if (isNativeApp() || isDesktopApp()) return false
+ const mac = /Macintosh/.test(nav.userAgent) && nav.maxTouchPoints <= 1
+ const windows = /Windows NT/.test(nav.userAgent)
+ return mac || windows
+}
+
+export const opensLinksInDesktop = () => read(() => window.localStorage, SETTING_KEY) === '1'
+
+export function setOpensLinksInDesktop(on: boolean) {
+ try {
+ if (on) window.localStorage.setItem(SETTING_KEY, '1')
+ else window.localStorage.removeItem(SETTING_KEY)
+ } catch {
+ // Private mode: links keep opening here.
+ }
+}
+
+/** "Open here instead": this tab stays (also after the reload it does). */
+export function stayInBrowser() {
+ try {
+ window.sessionStorage.setItem(STAY_KEY, '1')
+ } catch {
+ // Without storage the reload asks again; the link below the note still works.
+ }
+}
+
+type PageLoad = {
+ location: Pick<Location, 'origin' | 'pathname' | 'search' | 'hash'>
+ /** How this page load started (PerformanceNavigationTiming.type). */
+ navigation: string | undefined
+ referrer: string
+}
+
+/** The `linedesk://` link for a page, when its start page shows a page (`/#call/…`). */
+export function desktopLink(location: Pick<Location, 'pathname' | 'search' | 'hash'>): string | null {
+ if (location.pathname !== '/' || location.hash.length < 2) return null
+ return `linedesk://open/${location.search}${location.hash}`
+}
+
+/**
+ * The link to hand this page load to the desktop app, or null to stay: the setting is on, this tab did not choose to
+ * stay, and the page came from outside (a new navigation, not a reload, not from a Linedesk page) to a page of the app.
+ */
+export function desktopLinkForPageLoad(load: PageLoad, setting = opensLinksInDesktop()): string | null {
+ if (!setting || read(() => window.sessionStorage, STAY_KEY) === '1') return null
+ if (load.navigation !== 'navigate') return null
+ try {
+ if (load.referrer && new URL(load.referrer).origin === load.location.origin) return null
+ } catch {
+ // An unreadable referrer counts as outside.
+ }
+ return desktopLink(load.location)
+}
+
+/** This page load's link for the desktop app, when it should go there (main.tsx, before the app starts). */
+export function desktopLinkHere(): string | null {
+ if (!canOpenInDesktop()) return null
+ const entry = performance.getEntriesByType?.('navigation')[0] as PerformanceNavigationTiming | undefined
+ return desktopLinkForPageLoad({ location: window.location, navigation: entry?.type, referrer: document.referrer })
+}
diff --git a/apps/web/src/push.ts b/apps/web/src/push.ts
index ac0ab8a5..2bac924d 100644
--- a/apps/web/src/push.ts
+++ b/apps/web/src/push.ts
@@ -2,6 +2,7 @@
// whether it gets pushes in the open workspace, and ending its subscription on sign-out. The
// subscription (endpoint and keys) only goes to the API (push.subscribe); it is never stored here.
import { type NotificationSettingsData, pushDeviceId } from '@linedesk/actions'
+import { isDesktopApp } from './native/desktop.ts'
import { isNativeApp, nativePlatform } from './native/platform.ts'
import { nativeEndpointHere, onNativePushOpensCall, registerNativePush, unregisterNativePush } from './native/push.ts'
import { serviceWorkerSupported } from './serviceWorker.ts'
@@ -15,10 +16,15 @@ const isInstalled = () =>
window.matchMedia?.('(display-mode: standalone)').matches ||
(navigator as { standalone?: boolean }).standalone === true
-/** iOS and iPadOS only offer push to an app added to the Home Screen. The Linedesk app has its own (native/push.ts). */
+/**
+ * iOS and iPadOS only offer push to an app added to the Home Screen. The Linedesk app has its own (native/push.ts).
+ * The desktop app has no push service (Electron has none): it notifies from its own sync while it runs, also with its
+ * window closed (shell/useCallNotifications.ts).
+ */
export function pushSupport(): PushSupport {
if (typeof window === 'undefined') return 'unsupported'
if (isNativeApp()) return 'supported'
+ if (isDesktopApp()) return 'unsupported'
if (isIos() && !isInstalled()) return 'ios-needs-install'
if (!serviceWorkerSupported() || !('PushManager' in window) || !('Notification' in window)) return 'unsupported'
return 'supported'
diff --git a/apps/web/src/settings/Notifications.tsx b/apps/web/src/settings/Notifications.tsx
index 3f2cf9ef..b16c935f 100644
--- a/apps/web/src/settings/Notifications.tsx
+++ b/apps/web/src/settings/Notifications.tsx
@@ -7,6 +7,7 @@ import { T, useT } from '@linedesk/i18n/react'
import { type ReactNode, useEffect, useState } from 'react'
import { brandName } from '../brand.ts'
import { i18n } from '../i18n/index.tsx'
+import { isDesktopApp } from '../native/desktop.ts'
import { nativePlatform } from '../native/platform.ts'
import { registerNativePush } from '../native/push.ts'
import { currentEndpoint, pushSupport, subscribeThisBrowser, thisDeviceId } from '../push.ts'
@@ -164,8 +165,9 @@ export function useDeviceNotifications(settings: NotificationSettingsData) {
if (result.id) device.setId(result.id)
}
- const fallback =
- pushSupport() === 'supported'
+ const fallback = isDesktopApp()
+ ? t('account.notify.desktopApp', { brand: brandName() })
+ : pushSupport() === 'supported'
? t('account.notify.whileOpenNoPush', { brand: brandName() })
: t('account.notify.whileOpenNoBrowser', { brand: brandName() })
const note = unavailable
diff --git a/apps/web/src/settings/account/Preferences.tsx b/apps/web/src/settings/account/Preferences.tsx
index 144db701..bb54357a 100644
--- a/apps/web/src/settings/account/Preferences.tsx
+++ b/apps/web/src/settings/account/Preferences.tsx
@@ -19,8 +19,11 @@ import {
} from '../../i18n/LanguageSelect.tsx'
import { browserLanguages, missingBrowserLanguage } from '../../i18n/locale.ts'
import { chooseLocale } from '../../i18n/user.ts'
+import { canOpenInDesktop, opensLinksInDesktop, setOpensLinksInDesktop } from '../../native/openInDesktop.ts'
+import { Switch } from '../../ui/controls.tsx'
import { FeatureLine, LineGroup } from '../../ui/FeatureLine.tsx'
import { Button, Note } from '../../ui/kit.tsx'
+import { SettingRow } from '../../ui/SettingRow.tsx'
import { Notifications } from '../Notifications.tsx'
const DISMISSED_KEY = 'linedesk.languageNoteDismissed'
@@ -78,6 +81,29 @@ function MissingLanguageNote() {
)
}
+/**
+ * In a browser on a Mac or a Windows PC: links from emails open in the desktop app (native/openInDesktop.ts). Kept in
+ * this browser, not on the account: another computer may not have the app.
+ */
+function DesktopLinks() {
+ const t = useT()
+ const [on, setOn] = useState(opensLinksInDesktop)
+ if (!canOpenInDesktop()) return null
+ const change = (next: boolean) => {
+ setOpensLinksInDesktop(next)
+ setOn(next)
+ }
+ return (
+ <section className="k-card ac-desktop-links" aria-label={t('account.desktopLinks.title')}>
+ <SettingRow
+ title={t('account.desktopLinks.title')}
+ description={t('account.desktopLinks.description', { brand: brandName() })}
+ control={<Switch label={t('account.desktopLinks.title')} on={on} onChange={change} />}
+ />
+ </section>
+ )
+}
+
/**
* `saved`: reloads the account, so the choice shows when the page opens again. `hasWorkspace`: false on the screen
* without a workspace (NoWorkspace.tsx), which has no notifications to set. `languageOpen`: a link to the language
@@ -138,6 +164,7 @@ export function Preferences({
/>
{error && <Note tone="danger">{error}</Note>}
</FeatureLine>
+ <DesktopLinks />
{hasWorkspace && (
<>
<LineGroup>{t('account.nav.notifications.label')}</LineGroup>
diff --git a/apps/web/src/shell/useCallNotifications.test.ts b/apps/web/src/shell/useCallNotifications.test.ts
index f4956f8a..44fdc174 100644
--- a/apps/web/src/shell/useCallNotifications.test.ts
+++ b/apps/web/src/shell/useCallNotifications.test.ts
@@ -1,6 +1,6 @@
import type { Call } from '@linedesk/db/types'
import { expect, test } from 'vitest'
-import { newlyFinished } from './useCallNotifications.ts'
+import { newlyFinished, newlyUrgent, type Seen } from './useCallNotifications.ts'
const since = Date.parse('2026-11-10T17:00:00Z')
const call = (id: string, over: Partial<Call> = {}) =>
@@ -11,13 +11,15 @@ const call = (id: string, over: Partial<Call> = {}) =>
deleted_at: null,
source: 'phone',
outcome: 'message',
+ urgency: 'normal',
+ started_at: '2026-11-10T17:01:00Z',
...over,
}) as Call
test('only calls that just finished are news', () => {
- const before = new Map<string, Call['status']>([
- ['live', 'live'],
- ['old', 'completed'],
+ const before = new Map<string, Seen>([
+ ['live', { status: 'live', urgency: 'normal' }],
+ ['old', { status: 'completed', urgency: 'normal' }],
])
const calls = [
call('live'), // was live, now completed
@@ -30,3 +32,19 @@ test('only calls that just finished are news', () => {
]
expect(newlyFinished(calls, before, since).map(c => c.id)).toEqual(['live', 'new'])
})
+
+test('a running call notifies once when it becomes urgent', () => {
+ const before = new Map<string, Seen>([
+ ['flagged', { status: 'live', urgency: 'normal' }],
+ ['already', { status: 'live', urgency: 'urgent' }],
+ ])
+ const calls = [
+ call('flagged', { status: 'live', ended_at: null, urgency: 'urgent' }), // the assistant just flagged it
+ call('already', { status: 'live', ended_at: null, urgency: 'urgent' }), // notified before
+ call('arrived', { status: 'live', ended_at: null, urgency: 'urgent' }), // new and urgent
+ call('old', { status: 'live', ended_at: null, urgency: 'urgent', started_at: '2026-11-09T10:00:00Z' }),
+ call('done', { urgency: 'urgent' }), // finished: newlyFinished's
+ call('test', { status: 'live', ended_at: null, urgency: 'urgent', source: 'test' }),
+ ]
+ expect(newlyUrgent(calls, before, since).map(c => c.id)).toEqual(['flagged', 'arrived'])
+})
diff --git a/apps/web/src/shell/useCallNotifications.ts b/apps/web/src/shell/useCallNotifications.ts
index 38936de0..4b318194 100644
--- a/apps/web/src/shell/useCallNotifications.ts
+++ b/apps/web/src/shell/useCallNotifications.ts
@@ -2,7 +2,9 @@
// device switch in User settings › Preferences is on: this browser subscribed for push (the page's
// notification and the push share a tag, so one shows), or, where push cannot work, the member's
// `browser` setting. Only when the tab is in the background, only for calls that finished after the app
-// opened, never for test calls or spam. Clicking one opens the call.
+// opened, never for test calls or spam; an urgent call already while it runs, when the assistant flags it (like the
+// push of kind `urgent`; the same tag, so its end replaces it). Clicking one opens the call. In the desktop app
+// (native/desktop.ts) the app shows them, also with its window closed.
import type { NotificationSettingsData } from '@linedesk/actions'
import type { Call } from '@linedesk/db/types'
import { useEffect, useRef } from 'react'
@@ -13,6 +15,7 @@ import { readAction } from '../settings/settings-api.ts'
import { useRows } from '../store.tsx'
import { callHash } from './useRoute.ts'
import { i18n } from '../i18n/index.tsx'
+import { desktopApp } from '../native/desktop.ts'
// The member's settings, shared by this hook and Account settings, Notifications (which updates them on
// change): the last known at once (also across page loads), checked again in the background.
@@ -26,23 +29,37 @@ export const setNotificationSettings = (next: NotificationSettingsData) =>
export const browserNotificationsSupported = () => typeof window !== 'undefined' && 'Notification' in window
+/** What a call was when last seen: news is a change of these. */
+export type Seen = Pick<Call, 'status' | 'urgency'>
+
+const isNoise = (c: Call) => !!c.deleted_at || c.source === 'test' || c.outcome === 'spam'
+
/**
* Calls that just finished: completed now, not completed (or not there) before, and ended after
* `sinceMs` (the first sync of a fresh browser brings old calls too: they are history, not news).
*/
-export function newlyFinished(
- calls: readonly Call[],
- before: ReadonlyMap<string, Call['status']>,
- sinceMs: number,
-): Call[] {
+export function newlyFinished(calls: readonly Call[], before: ReadonlyMap<string, Seen>, sinceMs: number): Call[] {
return calls.filter(
c =>
c.status === 'completed' &&
- before.get(c.id) !== 'completed' &&
+ before.get(c.id)?.status !== 'completed' &&
Date.parse(c.ended_at ?? '') >= sinceMs &&
- !c.deleted_at &&
- c.source !== 'test' &&
- c.outcome !== 'spam',
+ !isNoise(c),
+ )
+}
+
+/**
+ * Calls still running that just became urgent (the assistant flagged them): urgent now, not before, started after
+ * `sinceMs`. They notify at once; a finished one is newlyFinished's.
+ */
+export function newlyUrgent(calls: readonly Call[], before: ReadonlyMap<string, Seen>, sinceMs: number): Call[] {
+ return calls.filter(
+ c =>
+ c.status !== 'completed' &&
+ c.urgency === 'urgent' &&
+ before.get(c.id)?.urgency !== 'urgent' &&
+ Date.parse(c.started_at ?? '') >= sinceMs &&
+ !isNoise(c),
)
}
@@ -57,8 +74,13 @@ function notificationTitle(call: Call): string {
}
function show(call: Call, callerName: (call: Call) => string) {
- const notification = new Notification(notificationTitle(call), {
- body: [callerName(call), call.summary].filter(Boolean).join(' · '),
+ const title = notificationTitle(call)
+ const body = [callerName(call), call.summary].filter(Boolean).join(' · ')
+ // The desktop app shows it itself: urgent ones stay, a click brings its window back (native/desktop.ts).
+ const desktop = desktopApp()
+ if (desktop) return desktop.notify({ id: call.id, title, body, urgent: call.urgency === 'urgent' })
+ const notification = new Notification(title, {
+ body,
tag: `call-${call.id}`, // one notification per call, even with several tabs open
})
notification.onclick = () => {
@@ -91,7 +113,7 @@ function refreshPushOnce() {
export function useCallNotifications(callerName: (call: Call) => string) {
const calls = useRows('calls')
const prefs = useNotificationSettings()
- const seen = useRef<Map<string, Call['status']>>(new Map())
+ const seen = useRef<Map<string, Seen>>(new Map())
const since = useRef(Date.now() - SLACK_MS)
const name = useRef(callerName)
name.current = callerName
@@ -110,10 +132,11 @@ export function useCallNotifications(callerName: (call: Call) => string) {
useEffect(() => {
const before = seen.current
- seen.current = new Map(calls.map(c => [c.id, c.status]))
+ seen.current = new Map(calls.map(c => [c.id, { status: c.status, urgency: c.urgency }]))
if (!prefs || !browserNotificationsSupported() || Notification.permission !== 'granted') return
- if (document.visibilityState === 'visible' && document.hasFocus()) return
- const fresh = newlyFinished(calls, before, since.current)
+ // The desktop app decides itself whether its window is in front (a hidden window may still report focus).
+ if (!desktopApp() && document.visibilityState === 'visible' && document.hasFocus()) return
+ const fresh = [...newlyUrgent(calls, before, since.current), ...newlyFinished(calls, before, since.current)]
if (fresh.length === 0) return
void notifiesHere(prefs).then(on => {
if (on) for (const call of fresh) show(call, name.current)
diff --git a/docs/architecture.md b/docs/architecture.md
index 9ff32712..c22e31fd 100644
--- a/docs/architecture.md
+++ b/docs/architecture.md
@@ -552,3 +552,4 @@ Design: [white-label.md](white-label.md) (decided 2026-11-17). A partner (`partn
- **No buying in the apps.** The store rules (App Store 3.1.1 and 3.1.3(b), Google Play payments) allow a multiplatform service whose plans are bought elsewhere, without calls to action. Inside the app every purchase step is hidden: Settings › Billing, the billing banner, the trial link, the plan step of onboarding (a neutral "Your plan is managed on the web" step that waits for the plan), extra paid phone numbers, the partner's activation and billing, prices of call quality levels, and trial wording on the sign-up and sign-in pages.
- **Account deletion** (App Store 5.1.1(v)): Account › Profile › Delete account opens Workspace settings › Danger zone, where leaving the last workspace or deleting an owned one deletes the account.
- **Builds.** CI builds both apps on a pull request that changes `apps/mobile`; on the trunk the iOS build goes to TestFlight (App Store Connect API key, signed in the cloud) and the signed Android bundle (upload key) is kept for Google Play.
+- **Desktop (macOS, Windows).** `apps/desktop` is an Electron shell around the same pages (decision of 2026-12-03; Electron over Tauri: TypeScript like the rest, the same Chromium on both systems, and its packaging signs, notarizes and makes the Windows installer). The web app finds it by `window.linedeskDesktop` (`apps/web/src/native/desktop.ts`; the preload gives it only to the server's own pages, and the main process checks every message's origin), not by `isNativeApp()`: it is no store app, so buying works as on the web. A provider sign-in runs in the system browser with the hand-back above, except that the code comes back on a loopback address only the app listens on (RFC 8252, 7.3): the app's start page carries `port`, the browser page sends the code to `http://127.0.0.1:<port>/app-sign-in/back` (never another host) and then shows `/app-sign-in/back?desktop=1` ("go back to the app"); the server is unchanged. No push service in Electron: while the app runs (its window closed too) it notifies from its own sync (`useCallNotifications.ts`: an urgent call as soon as it is flagged, every call when it ends; the main process shows them when its window is not in front). `linedesk://open/<search><hash>` opens the start page with that page; a browser on a Mac or PC hands links from emails to the app when "Open links in the desktop app" is on there (`native/openInDesktop.ts`, kept in that browser). Only the server's pages and a fixed list of consent and checkout sites that lead back to it stay in the window (`IN_WINDOW_SITES`); other links open in the browser. The browser page takes `port` only in a computer's browser: on a phone another app could listen on a loopback port, so there the code goes only to the verified https address. A shipped app refuses a debugging port. Automatic updates are built in and off. CI builds a .dmg and a Windows installer, installs and tests them, and keeps them as artifacts; nothing is published.
diff --git a/package.json b/package.json
index 12c8a799..01bb08ca 100644
--- a/package.json
+++ b/package.json
@@ -36,7 +36,9 @@
"pnpm": {
"overrides": {
"@esbuild-kit/core-utils>esbuild": "^0.25.12",
- "@livekit/throws-transformer>glob": "^14.0.6"
+ "@livekit/throws-transformer>glob": "^14.0.6",
+ "@electron/asar>glob": "^14.0.6",
+ "electron-builder-squirrel-windows": "-"
},
"auditConfig": {
"ignoreGhsas": [
@@ -45,7 +47,8 @@
},
"ignorePatchFailures": false,
"patchedDependencies": {
- "@livekit/agents": "patches/@livekit__agents.patch"
+ "@livekit/agents": "patches/@livekit__agents.patch",
+ "@electron/[email protected]": "patches/@[email protected]"
}
}
-}
\ No newline at end of file
+}
diff --git a/packages/i18n/locales/en/account.json b/packages/i18n/locales/en/account.json
index 14c0c274..0cb74bd8 100644
--- a/packages/i18n/locales/en/account.json
+++ b/packages/i18n/locales/en/account.json
@@ -94,6 +94,8 @@
"delete.buttonTitle": "Opens Workspace settings › Danger zone",
"delete.text": "Deletes your account and your sign-in for good. Your account goes with your last workspace: leave it, or delete it if you own it. Both are under <link>Workspace settings › Danger zone</link>.",
"delete.title": "Delete account",
+ "desktopLinks.description": "Links from emails open in the {brand} app for Mac or Windows on this computer, not in this browser.",
+ "desktopLinks.title": "Open links in the desktop app",
"device.apiClient": "API client",
"device.browserOn": "{browser} on {system}",
"device.unknown": "Unknown device",
@@ -150,6 +152,7 @@
"notify.card.otherDevices": "{count, plural, one {push notifications on # other device} other {push notifications on # other devices}}",
"notify.card.setup": "setup emails",
"notify.card.withSummary": "Push notifications say what the call was about.",
+ "notify.desktopApp": "New calls while the {brand} app runs, also with its window closed. Urgent calls stay on screen until you look.",
"notify.iosInstall": "On iPhone and iPad, add {brand} to your Home Screen first (Share, Add to Home Screen), then open it from there.",
"notify.oneplace": "Call emails: <link>Assistant › Email notifications</link>",
"notify.perWorkspace": "Each workspace has its own. Switch workspace to change another's.",
diff --git a/packages/i18n/locales/en/auth.json b/packages/i18n/locales/en/auth.json
index 77d33b4e..36ad8ccc 100644
--- a/packages/i18n/locales/en/auth.json
+++ b/packages/i18n/locales/en/auth.json
@@ -18,7 +18,9 @@
"addPasskey.whyUnnamedProvider": "Sign in with one touch next time.",
"appSignIn.back": "Back to the Linedesk app",
"appSignIn.confirm": "Continue only if you just tapped Sign in in the Linedesk app on this phone. The app is then signed in as {email}.",
+ "appSignIn.confirmDesktop": "Continue only if you just clicked Sign in in the Linedesk app on this computer. The app is then signed in as {email}.",
"appSignIn.continue": "Continue",
+ "appSignIn.desktopDone": "Go back to the Linedesk app. You can close this tab.",
"appSignIn.failed": "The sign-in did not work. Go back to the app and try again.",
"appSignIn.openApp": "Open the Linedesk app to finish signing in.",
"appSignIn.title": "Signing in for the Linedesk app",
diff --git a/packages/i18n/locales/en/shell.json b/packages/i18n/locales/en/shell.json
index 80c4216a..578d3af9 100644
--- a/packages/i18n/locales/en/shell.json
+++ b/packages/i18n/locales/en/shell.json
@@ -64,6 +64,22 @@
"command.unblockNumber": "Unblock number",
"command.undo": "Undo",
"command.zapier": "Connect Zapier",
+ "desktop.back": "Back",
+ "desktop.docs": "{brand} help",
+ "desktop.edit": "Edit",
+ "desktop.file": "File",
+ "desktop.forward": "Forward",
+ "desktop.help": "Help",
+ "desktop.open": "Open {brand}",
+ "desktop.openAgain": "Open in the {brand} app again",
+ "desktop.openHere": "Open here instead",
+ "desktop.openedText": "This link went to the {brand} desktop app. If nothing opened, the app is not installed on this computer.",
+ "desktop.openedTitle": "Opened in the {brand} app",
+ "desktop.quit": "Quit {brand}",
+ "desktop.reload": "Reload",
+ "desktop.settings": "Settings",
+ "desktop.view": "View",
+ "desktop.window": "Window",
"disabledWorkspace.bar": "This workspace is disabled. Calls are not answered and nothing can be changed.",
"disabledWorkspace.readOnly": "This workspace is disabled, so nothing can be changed.",
"feedback.attachTitle": "Send with it",
diff --git a/patches/@[email protected] b/patches/@[email protected]
new file mode 100644
index 00000000..b6670a15
--- /dev/null
+++ b/patches/@[email protected]
@@ -0,0 +1,14 @@
+diff --git a/lib/crawlfs.js b/lib/crawlfs.js
+index bc614aba8e5bd1a59df20d2e4b82287f4d0dd506..420f184f7f656795949177aa124b1bab5685fa5d 100644
+--- a/lib/crawlfs.js
++++ b/lib/crawlfs.js
+@@ -32,7 +32,8 @@ const util_1 = require("util");
+ const glob_1 = require("glob");
+ const wrapped_fs_1 = __importDefault(require("./wrapped-fs"));
+ const path = __importStar(require("path"));
+-const glob = (0, util_1.promisify)(glob_1.glob);
++// glob 14 (pnpm override: glob 7 is unsupported) has a promise API and no callback.
++const glob = (pattern, options) => glob_1.glob(pattern, options);
+ async function determineFileType(filename) {
+ const stat = await wrapped_fs_1.default.lstat(filename);
+ if (stat.isFile()) {
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 9a6ea149..d3c19b38 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -7,8 +7,13 @@ settings:
overrides:
'@esbuild-kit/core-utils>esbuild': ^0.25.12
'@livekit/throws-transformer>glob': ^14.0.6
+ '@electron/asar>glob': ^14.0.6
+ electron-builder-squirrel-windows: '-'
patchedDependencies:
+ '@electron/[email protected]':
+ hash: 4a8402e9f484660437af0057dab4e1f94110e4d0dae6373893c6e17c2e7b0968
+ path: patches/@[email protected]
'@livekit/agents':
hash: 31cc1a85d72dbb6841a3481b2e666714073f1a9fcc2a02372920867e7c191034
path: patches/@livekit__agents.patch
@@ -92,7 +97,7 @@ importers:
version: 4.23.15
vitest:
specifier: ^5.1.1
ws:
specifier: ^8.23.0
version: 8.23.0
@@ -101,7 +106,7 @@ importers:
dependencies:
'@better-auth/passkey':
specifier: 1.7.19
'@hono/node-server':
specifier: ^2.1.11
version: 2.1.11([email protected])
@@ -143,7 +148,7 @@ importers:
version: 1.0.20
better-auth:
specifier: ^1.7.26
date-holidays:
specifier: 3.39.1
version: 3.39.1
@@ -192,7 +197,28 @@ importers:
version: 4.23.15
vitest:
specifier: ^5.1.1
+
+ apps/desktop:
+ devDependencies:
+ '@playwright/test':
+ specifier: 1.65.1
+ version: 1.65.1
+ '@types/node':
+ specifier: ^26.6.6
+ version: 26.6.6
+ electron:
+ specifier: 45.5.0
+ version: 45.5.0
+ electron-builder:
+ specifier: 26.18.0
+ version: 26.18.0
+ electron-updater:
+ specifier: 6.8.11
+ version: 6.8.11
+ esbuild:
+ specifier: 0.28.2
+ version: 0.28.2
apps/mobile:
dependencies:
@@ -241,7 +267,7 @@ importers:
dependencies:
'@better-auth/passkey':
specifier: 1.7.19
'@capacitor/core':
specifier: 8.6.2
version: 8.6.2
@@ -280,7 +306,7 @@ importers:
better-auth:
specifier: ^1.7.26
canvas-confetti:
specifier: ^1.9.4
version: 1.9.4
@@ -323,13 +349,13 @@ importers:
version: 19.3.0(@types/[email protected])
'@vitejs/plugin-react':
specifier: ^6.3.0
vite:
specifier: ^8.3.8
vitest:
specifier: ^5.1.1
packages/actions:
dependencies:
@@ -348,7 +374,7 @@ importers:
devDependencies:
vitest:
specifier: ^5.1.1
packages/billing:
dependencies:
@@ -364,13 +390,13 @@ importers:
version: 26.6.6
vitest:
specifier: ^5.1.1
packages/calendar:
devDependencies:
vitest:
specifier: ^5.1.1
packages/cli:
devDependencies:
@@ -379,7 +405,7 @@ importers:
version: 26.6.6
vitest:
specifier: ^5.1.1
packages/connectors:
dependencies:
@@ -389,7 +415,7 @@ importers:
devDependencies:
vitest:
specifier: ^5.1.1
packages/db:
dependencies:
@@ -442,13 +468,13 @@ importers:
version: 19.3.1
vitest:
specifier: ^5.1.1
packages/mail:
devDependencies:
vitest:
specifier: ^5.1.1
packages/scrub:
dependencies:
@@ -461,7 +487,7 @@ importers:
vitest:
specifier: ^5.1.1
packages/sync:
dependencies:
@@ -480,7 +506,7 @@ importers:
version: 6.2.8
vitest:
specifier: ^5.1.1
packages/telephony:
devDependencies:
@@ -489,7 +515,7 @@ importers:
version: 26.6.6
vitest:
specifier: ^5.1.1
packages:
@@ -732,6 +758,45 @@ packages:
resolution: {integrity: sha512-b0cym3YWXL6PbQmEF0xDRsLt2xgXX46stvOSRAIXRPAP6dLZIHZL0o0HxeTdsZ27L3PbIg6Pw6KnyanRVGtWPA==}
hasBin: true
+ '@electron-internal/[email protected]':
+ resolution: {integrity: sha512-3ZpfrVbqRKZ1/K0BjUfziapy3aZQzDeJX70SbsO8tc+gGlzJYnFAgZGE8LtxMV19RsoF8+Uwvd04FtIiMD4KyA==}
+ engines: {node: '>=22.12.0'}
+
+ '@electron/[email protected]':
+ resolution: {integrity: sha512-i4/rNPRS84t0vSRa2HorerGRXWyF4vThfHesw0dmcWHp+cspK743UanA0suA5Q5y8kzY2y6YKrvbIUn69BCAiA==}
+ engines: {node: '>=10.12.0'}
+ hasBin: true
+
+ '@electron/[email protected]':
+ resolution: {integrity: sha512-zx0EIq78WlY/lBb1uXlziZmDZI4ubcCXIMJ4uGjXzZW0nS19TjSPeXPAjzzTmKQlJUZm0SbmZhPKP7tuQ1SsEw==}
+ hasBin: true
+
+ '@electron/[email protected]':
+ resolution: {integrity: sha512-F+nKc0xW+kVbBRhFzaMgPy3KwmuNTYX1fx6+FxxoSnNgwYX6LD7AKBTWkU0MQ6IBoe7dz069CNkR673sPAgkCQ==}
+ engines: {node: '>=14'}
+
+ '@electron/[email protected]':
+ resolution: {integrity: sha512-3kSBtG8ObcTVfXanm5vVJ6UnBLEVmVsRk1M+vGqCuMBV+XLCbJYuWQful+yIy0GQDsSlK0kHEriEHn7SPk4EnA==}
+ engines: {node: '>=22.12.0'}
+
+ '@electron/[email protected]':
+ resolution: {integrity: sha512-jNT8nwH1f9X5GEITXaQ8IF/KdskvIkOFfB2CvwumsveVidzpSc+mvhhTMdAGSYF3O+Nq49lJ7y+ssODRXu06+A==}
+ engines: {node: '>= 10.0.0'}
+
+ '@electron/[email protected]':
+ resolution: {integrity: sha512-KZ8mhXvWv2rIEgMbWZ4y33bDHyUKMXnx4M0sTyPNK/vcB81ImdeY9Ggdqy0SWbMDgmbqyQ+phgejh6V3R2QuSg==}
+ engines: {node: '>=12.0.0'}
+ hasBin: true
+
+ '@electron/[email protected]':
+ resolution: {integrity: sha512-IS4pG3BysRrCLJ8xTAfvg+IQDbiUoAzdJy2SfjcYKnLDy5DpCdjnPdhS5Zf5UMfrkB24xu0KC+TqcOxg+eG+6w==}
+ engines: {node: '>=22.12.0'}
+ hasBin: true
+
+ '@electron/[email protected]':
+ resolution: {integrity: sha512-Wn9sPYIVFRFl5HmwMJkARCCf7rqK/EurkfQ/rJZ14mHP3iYTjZSIOSVonEAnhWeAXwtw7zOekGRlc6yTtZ0t+g==}
+ engines: {node: '>=16.4'}
+
'@emnapi/[email protected]':
resolution: {integrity: sha512-MzCVoWtcg4Pm2B3je5mMvYMvj3MmBKw+fU7vbsJc9/iT8ip6/eYIHo/Dsm/mr+wsHB6SEyJDuxB09Yy6r/8+4A==}
@@ -1547,6 +1612,14 @@ packages:
'@livekit/[email protected]':
resolution: {integrity: sha512-9bl0k4MgBPZu3Qu3R3xy12rmbW17e3bE9yf4YY85gJIQ3ezLEj/uzpKHWBsLaDoL5Mozz8QCgggwIBudYQWeQg==}
+ '@malept/[email protected]':
+ resolution: {integrity: sha512-1DpKU0Z5ThltBwjNySMC14g0CkbyhCaz9FkhxqNsZI6uAPJXFS8cMXlBKo26FJ8ZuW6S9GCMcR9IO5k2X5/9Fg==}
+ engines: {node: '>= 12.13.0'}
+
+ '@malept/[email protected]':
+ resolution: {integrity: sha512-9QOtNffcOF/c1seMCDnjckb3R9WHcG34tky+FHpNKKCW0wc/scYLwMtO+ptyGUfMW0/b/n4qRiALlaFHc9Oj7Q==}
+ engines: {node: '>= 10.0.0'}
+
'@microsoft/[email protected]':
resolution: {integrity: sha512-W6CLUJ2eBMw3Rec70qrsEW0jOm/3twwJv21mrmj2yORiaVmVYGS4sSS5yUwvQc1ZlDLYGPnClVWmUUMagKNsfA==}
@@ -1573,6 +1646,10 @@ packages:
resolution: {integrity: sha512-AnjFn0Jv92laAkvMrghlFZq4qQCIN/4DxFV/eooqtC2YTjB7kBeLMS2T9KJX4Dn+ZVXLOwK0lSgqDtx9gvxtiw==}
engines: {node: '>= 20.19.0'}
+ '@noble/[email protected]':
+ resolution: {integrity: sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==}
+ engines: {node: ^14.21.3 || >=16}
+
resolution: {integrity: sha512-X5XaVWZIBCT7HHZGm5I7ZQXDwLG+bGXuSrMQAW+7Zvl87h1kmc1ZB1VSRJcpUfoUrGQp4Fkoxm5kZ+Ms+aW+eA==}
engines: {node: '>= 20.19.0'}
@@ -2026,9 +2103,17 @@ packages:
resolution: {integrity: sha512-SXU4/X6B3FquqQAN6ARI0bFDUV7+L1WlvPEPMKzEMkstd2D7UyM0r93fv241+OjdhqAKYGx5MvV3gzZMAp0APA==}
engines: {node: '>=14'}
+ '@peculiar/[email protected]':
+ resolution: {integrity: sha512-coUfuoMeIB7B8/NMekxaDzLhaYmp0HZNPEjYRm9goRou8UZIC3z21s0sL9AWoCw4EG876QyO3kYrc61WNF9B/w==}
+ engines: {node: '>=8.0.0'}
+
'@peculiar/[email protected]':
resolution: {integrity: sha512-+oL3HPFRIZ1St2K50lWCXiioIgSoxzz7R1J3uF6neO2yl1sgmpgY6XXJH4BdpoDkMWznQTeYF6oWNDZLCdQ4eQ==}
+ '@peculiar/[email protected]':
+ resolution: {integrity: sha512-ktTSACRJ5WdpfjHjFT2EWJQQPacGv1cPCDfEbdmpAHOxdFiYqPe4lfnXGA3D8Dg9/0kHPYSvyRlgujIOVlTdvQ==}
+ engines: {node: '>=14.18.0'}
+
'@peculiar/[email protected]':
resolution: {integrity: sha512-C2Xj8FZ0uHWeCXXqX5B4/gVFQmtSkiuOolzAgutjTfseNOHT3pUjljDZsTSxXFGgio54bCzVFqmEOUrIVk8RDA==}
engines: {node: '>=20.0.0'}
@@ -2232,12 +2317,20 @@ packages:
resolution: {integrity: sha512-LelX/lcy5cjc15A86i/aNxHhB5eU7dd20QsbP0VLAf9e38+SLlsnqCCyecx3xqfGofhmX05h1J9fKRYWxw+luA==}
engines: {node: '>=20.0.0'}
+ '@sindresorhus/[email protected]':
+ resolution: {integrity: sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==}
+ engines: {node: '>=10'}
+
'@stablelib/[email protected]':
resolution: {integrity: sha512-1bnPQqSxSuc3Ii6MhBysoWCg58j97aUjuCSZrGSmDxNqtytIi0k8utUenAwTZN4V5mXXYGsVUI9zeBqy+jBOSQ==}
'@standard-schema/[email protected]':
resolution: {integrity: sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==}
+ '@szmarczak/[email protected]':
+ resolution: {integrity: sha512-4BAffykYOgO+5nzBWYwE3W90sBgLJoUPRWWcL8wlyiM8IB8ipJz3UMJ9KXQd1RKQXpKp8Tutn80HZtWsu2u76w==}
+ engines: {node: '>=10'}
+
'@tanstack/[email protected]':
resolution: {integrity: sha512-JoNsByXR68fNlB2NZuT3bSk8uYBxuOWl6YNJ7djTrw7IMwBWuaOtffxj/TcuMa80WmL6byb+80i1NEM/8Qmocw==}
peerDependencies:
@@ -2287,12 +2380,18 @@ packages:
resolution: {integrity: sha512-dOGOPxlaNV+G046mZzN+9C0dAcQZeSKcXiVaM0TYy/LM4ttTmgSBDxYfovcYI8Em3+eAbiAYpvWLOv8+ZVRJKA==}
+ '@types/[email protected]':
+ resolution: {integrity: sha512-IQ3EbTzGxIigb1I3qPZc1rWJnH0BmSKv5QYTalEwweFvyBDLSAe24zP0le/hyi7ecGfZVlIVAg4BZqb8WBwKqw==}
+
resolution: {integrity: sha512-aBGj/dULrimR1XDZLtG9JwxX1b4HPRF6CX9Yfwh3NvstZEm1ZL7RBnel4keCPSqs1ANRu1u2Aoz9R+VmtjYuTg==}
resolution: {integrity: sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==}
+ '@types/[email protected]':
+ resolution: {integrity: sha512-KSVgmQmzMwPlmtljOomayoR89W4FynCAi3E8PPs7vmDVPe84hT+vGPKkJfThkmXs0x0jAaa9U8uW8bbfyS2fWw==}
+
resolution: {integrity: sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==}
@@ -2305,6 +2404,21 @@ packages:
resolution: {integrity: sha512-0dzKcwO+S8s2kuF5Z9oUWatQJj5Uq/iqphEtE3GQJVRRYm/tD1LglU2UnXi2A8jLq5umkGouOXOR9y0n613ZwQ==}
+ '@types/[email protected]':
+ resolution: {integrity: sha512-nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA==}
+
+ '@types/[email protected]':
+ resolution: {integrity: sha512-L3LgimLHXtGkWikKnsPg0/VFx9OGZaC+eN1u4r+OB1XRqH3meBIAVC2zr1WdMH+RHmnRkqliQAOHNJ/E0j/e0Q==}
+
+ '@types/[email protected]':
+ resolution: {integrity: sha512-BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg==}
+
+ '@types/[email protected]':
+ resolution: {integrity: sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==}
+
+ '@types/[email protected]':
+ resolution: {integrity: sha512-s04odlR3ksJrLu7QLi+pddkWLD0RmSbcP9KuWn2/ozQKAp/YgwBC/6x9kJj8yAzZnGPfxePm7zm7nysVPCRagw==}
+
resolution: {integrity: sha512-MzQj+8Kx3XI40OmUAE6Qoh58ZMNstNNMwn2nfd3qWsfe7nDNSqJNzes4njhz6AHwrSHOffSLwXU6yb474Q4aog==}
@@ -2322,6 +2436,9 @@ packages:
resolution: {integrity: sha512-N0rFCuH9YoxG9/m61l9MfpJKfmLOVU0em7ipIz6TRgSSkvReLB9vL85GB+yr8Bs5leqpvg96JSwF4ZS1s4viQg==}
+ '@types/[email protected]':
+ resolution: {integrity: sha512-H/+L+UkTV33uf49PH5pCAUBVPNj2nDBXTN+qS1dOwyyg24l3CcicicCA7ca+HMvJBZcFgl5r8e+RR6elsb4Lyw==}
+
resolution: {integrity: sha512-ikIFF0EaYt/2XetIYYVeMj6SB52oVXFasJUXDzWHgzNJS5ep2Pbsu7f8f3Za+dEie8HQtt3Zr9mHYBpWT0XgxQ==}
@@ -2487,10 +2604,18 @@ packages:
'@xml-tools/[email protected]':
resolution: {integrity: sha512-YNIPbmr/7ClPpWyk0MLImLBLyVLgW+BeOkbd4UDp8w0tCcgU8lmA4karXBF9EQwaQzDTzaBbJtmSA0G2NKKlPA==}
+ '@xmldom/[email protected]':
+ resolution: {integrity: sha512-/5NV/vDALVFDXgLmfsy9TRCBlKwO2LNBFzpzvb9iIj+jR+eSc6DLYYvVOdivT/jm7MtU6TebYuRmzEOI7w40UA==}
+ engines: {node: '>=10.0.0'}
+
'@xmldom/[email protected]':
resolution: {integrity: sha512-5AXjrcMClTryPe9LgZrygpB1lj7s0S9E0+W+AHaVKAVyHanafK86iPSvG5xHVSp/jC+VH1UXu0TAEmY279xH7A==}
engines: {node: '>=14.6'}
+ resolution: {integrity: sha512-a1wflyaL0tHtJSmLSOVybYhy22vRih4eduhhrkcjgrWGnRfrZtovJ2FRjxuTtkkj47O/baf0R86QU5OuYpz8fA==}
+ engines: {node: ^20.17.0 || >=22.9.0}
+
resolution: {integrity: sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==}
engines: {node: '>=6.5'}
@@ -2499,6 +2624,9 @@ packages:
resolution: {integrity: sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==}
engines: {node: '>= 14'}
+ resolution: {integrity: sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==}
+
resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==}
engines: {node: '>=8'}
@@ -2507,6 +2635,15 @@ packages:
resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==}
engines: {node: '>=8'}
+ resolution: {integrity: sha512-lx+KkuCSZHcbECf4R3IAcC9VOFk0+cMUwljO63s5y8yqS1Lw0sRGmjPaWsPwP3zv3ohZYbMhUvjXeiQXXZhJXA==}
+ engines: {node: '>=14.0.0'}
+ peerDependencies:
+ dmg-builder: 26.18.0
+
+ resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==}
+
resolution: {integrity: sha512-fwWK3Zq22l4XJJjx5mcBHGikIk+hJqO+32dPm0Jur7+rtG5x1scOjSfdT9ZKeWHPpsya/l0HHK4tDImBkTrtvA==}
@@ -2529,9 +2666,16 @@ packages:
resolution: {integrity: sha512-kD87oezczQTJYp6SW07l9X/fyssEg4/GSFmxBN1Xk8TRN7h4tkQddRK/VJnlHkbzmK1w16s/7dUtUO4EUKLDpA==}
engines: {node: '>=12.0.0'}
+ resolution: {integrity: sha512-NW2cX8m1Q7KPA7a5M2ULQeZ2wR5qI5PAbw5L0UOMxdioVk9PMZ0h1TmyZEkPYrCvYjDlFICusOu1dlEKAAeXBw==}
+ engines: {node: '>=0.12.0'}
+
resolution: {integrity: sha512-eAkdoKxU6/LkKDBzLpT+t6Ff5EtfSF4wx1WfJiPEEV7WNLnDaRXk0oVysiEPm262roaachGexwUv94WhSgN5TQ==}
+ resolution: {integrity: sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==}
+
resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==}
@@ -2543,9 +2687,15 @@ packages:
resolution: {integrity: sha512-kNOjDqAh7px0XWNI+4QbzoiR/nTkHAWNud2uvnJquD1/x5a7EQZMJT0AczqK0Qn67oY/TTQ1LbUKajZpp3I9tQ==}
engines: {node: '>=8.0.0'}
+ resolution: {integrity: sha512-lHe62zvbTB5eEABUVi/AwVh0ZKY9rMMDhmm+eeyuuUQbQ3+J+fONVQOZyj+DdrvD4BY33uYniyRJ4UJIaSKAfw==}
+
resolution: {integrity: sha512-/djoAN709iY65ETD6LKCtyyEI04XIBP5xVvfmNxsEP0uJB5tyaGBztSryRr4HqMStr9R06PisQE7m9zDTXKu6g==}
+ resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==}
+
resolution: {integrity: sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==}
engines: {node: 18 || 20 || >=22}
@@ -2632,12 +2782,19 @@ packages:
resolution: {integrity: sha512-QxD8cf2eVqJOOz63z6JIN9BzvVs/dlySa5HGSBH5xtR8dPteIRQnBxxKqkNTiT6jbDTF6jAfrd4oMcND9RGbQg==}
engines: {node: '>=0.6'}
+ resolution: {integrity: sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==}
+
resolution: {integrity: sha512-3aRg6/JxfffFD+OlOjOFR3Vo79l39ooBTFucxx+MT3dhCtzn3EmiUPQo+6/OZuI2jbXi3YKgmiTFBgChQMwIRQ==}
resolution: {integrity: sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==}
+ resolution: {integrity: sha512-d0II/GO9uf9lfUHH2BQsjxzRJZBdsjgsBiW4BvhWk/3qoKwQFjIDVN19PfX8F2D/r9PCMTtLWjYVCFrpeYUzsw==}
+ deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
+
resolution: {integrity: sha512-sXaHZicyEEmY86WyueLTQesbeoH/mquvarJaQNbjuOQO+7gbFcDEWqKmcWA4cOTLzFlfgvkiVxolk1k5bBIpmg==}
@@ -2649,6 +2806,12 @@ packages:
resolution: {integrity: sha512-apC2+fspHGI3mMKj+dGevkGo/tCqVB8jMb6i+OX+E29p0Iposz07fABkRIfVUPNd5A5VbuOz1bZbnmkKLYF+wQ==}
engines: {node: '>= 5.10.0'}
+ resolution: {integrity: sha512-CKLDTuSsN0+r1ThM0WkzzBI7dnPI6xEGfa/JnVYIK9JNBA1N1NyPwXVHor//NKD/y3sDxp764sZdLhFK7pH8XQ==}
+
+ resolution: {integrity: sha512-BnlDzDYQoplTsZSvPi86CNzmbcb07X8ufR8fk1zivaiEJlXJkiq1MQyDCVmlWcsWbj6aWXqHnrwwevbrm/Saig==}
+
resolution: {integrity: sha512-Vh3dmFbc4wZeox7M9I/0L9GfFd83Su4+yCck/OF9Gi/P/dAHn0RT7X4K9R7gMNMhDck3DvhR6QXsnQdjjgwNvQ==}
engines: {node: 20 || >=22}
@@ -2665,6 +2828,26 @@ packages:
resolution: {integrity: sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==}
+ resolution: {integrity: sha512-g/kR520giAFYkSXTzcmF3kqQq7wi8F6N6SzeDgZrqTBN+VHdmgWOyTdD1yD7AATDId/yXLvuP34CxW46/BwCdw==}
+ engines: {node: '>=12.0.0'}
+
+ resolution: {integrity: sha512-RLyJhB7Si3YkzKR9ubQslWuXW3Vhs3CGe1i+SeixBZ0qTd1mk3XBmssvY22TlB6CS5blyko8Gu1JzpYk8UkYAg==}
+ engines: {node: '>=14.0.0'}
+
+ resolution: {integrity: sha512-U1Z/ob71V/bXfVABvNr/Kumf5VyeQRBEm6Txb0PQ6S7V5GpBM3w4Cbqz/xPDicR5tN0uvDifng8C+5qECeGwyQ==}
+ engines: {node: '>=6.0.0'}
+
+ resolution: {integrity: sha512-2/kNscPhpcxrOigMZzbiWF7dz8ilhb/nIHU3EyZiXWXpeq/au8qJ8VhdftMkty3n7Gj6HIGalQG8oiBNB3AJgA==}
+ engines: {node: '>=10.6.0'}
+
+ resolution: {integrity: sha512-v+p6ongsrp0yTGbJXjgxPow2+DL93DASP4kXCDKb8/bwRtt9OEF3whggkkDkGNzgcWy2XaF4a8nZglC7uElscg==}
+ engines: {node: '>=8'}
+
resolution: {integrity: sha512-RtO0e0m5Qk36Qqd038V1qn6f8esmbmK16fYlGj9wlack3CD1VGzFJ7B4HacVOprbPkyCR+P3JHnlTYGoMpJUVQ==}
engines: {node: '>=12.0.0'}
@@ -2680,6 +2863,10 @@ packages:
resolution: {integrity: sha512-XWAtwJ6OHO+tj0EKCs0Y2UamnyOxseZWltU4x2U2wh8g4AigdjwvtUjvLP2tqkA/avxHEtzxNaqGq/YGNwckKg==}
engines: {node: '>=18'}
+ resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==}
+ engines: {node: '>=10'}
+
resolution: {integrity: sha512-wy3mC1x4ye+O+QkEinVJkPf5u2vsrDIYW9G7ZuwFl6v/Yu0LwUuT2POsb+NUWApebyxfkQq6+yDfRExbnI5rcw==}
@@ -2687,6 +2874,17 @@ packages:
resolution: {integrity: sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==}
engines: {node: '>=18'}
+ resolution: {integrity: sha512-1R5Fho+jBq0DDydt+/vHWj5KJNJCKdARKOCwZUen84I5BreWoLqRLANH1U87eJy1tiASPtMnGqJJq0ZsLoRPOw==}
+
+ resolution: {integrity: sha512-Wdy2Igu8OcBpI2pZePZ5oWjPC38tmDVx5WKUXKwlLYkA0ozo85sLsLvkBbBn/sZaSCMFOGZJ14fvW9t5/d7kdA==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-d1uM8k5UZEyPza1n/MG3ko8nKupKN0KJpFsipgPcgaCCvV+IqIfJ+NzTjetlLM+UcXZx3+cLrNr76+eAO7G1Mw==}
+ engines: {node: '>=8'}
+
resolution: {integrity: sha512-lmNyBzi6iYiqyrExTctfmjd8tInx+dHu9PBomTfH5RXS53c27JMFJgzNv5TyAnm3PgGf+MLy0+Ws41/HlVxdKQ==}
@@ -2694,6 +2892,9 @@ packages:
resolution: {integrity: sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==}
engines: {node: '>=12'}
+ resolution: {integrity: sha512-ROoL94jJH2dUVML2Y/5PEDNaSHgeOdSDicUyS7izcF63G6sTc/FTjLub4b8Il9S8S0beOfYt0TaA5qvFK+w0wA==}
+
resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==}
engines: {node: '>=7.0.0'}
@@ -2712,10 +2913,24 @@ packages:
resolution: {integrity: sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==}
engines: {node: '>=18'}
+ resolution: {integrity: sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==}
+ engines: {node: '>= 6'}
+
resolution: {integrity: sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==}
engines: {node: '>= 12'}
+ resolution: {integrity: sha512-pJDh5/4wrEnXX/VWRZvruAGHkzKdr46z11OlTPN+VrATlWWhSKewNCJ1futCO5C7eJB3nPMFZA1LeYtcFboZ2A==}
+ engines: {node: '>=0.10.0'}
+
+ resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==}
+
+ resolution: {integrity: sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==}
+
resolution: {integrity: sha512-kpoxgQyveO1l29nw+FWdvmotyV7eOSzGHQpxiXOEZIDOjqO1iR6kfgJ0PVHTuV26uBemKq3ppzma7dHFAG7viw==}
engines: {node: '>=18'}
@@ -2776,14 +2991,30 @@ packages:
supports-color:
optional: true
+ resolution: {integrity: sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==}
+ engines: {node: '>=10'}
+
resolution: {integrity: sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==}
engines: {node: '>=0.10.0'}
+ resolution: {integrity: sha512-4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg==}
+ engines: {node: '>=10'}
+
+ resolution: {integrity: sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==}
+ engines: {node: '>= 0.4'}
+
resolution: {integrity: sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==}
engines: {node: '>=8'}
+ resolution: {integrity: sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==}
+ engines: {node: '>= 0.4'}
+
resolution: {integrity: sha512-7z22QmUWiQ/2d0KkdYmANbRUVABpZ9SNYyH5vx6PZ+nE5bcC0l7uFvEfHlyld/HcGBFTL536ClDt3DEcSlEJAQ==}
@@ -2798,10 +3029,19 @@ packages:
resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==}
engines: {node: '>=8'}
+ resolution: {integrity: sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==}
+
resolution: {integrity: sha512-vtcDfH3TOjP8UekytvnHH1o1P4FcUdt4eQ1Y+Abap1tk/OB2MWQvcwS2ClCd1zuIhc3JKOx6p3kod8Vfys3E+A==}
engines: {node: '>=0.3.1'}
+ resolution: {integrity: sha512-2xMCmOoMrdQIPHdsTawECdNPwlVFB9zGcz3kuhmBO6U3oU+UQjsue0i8ayLKpgBcm+hcXPMVSGUN9d+pvJ6+VQ==}
+
+ resolution: {integrity: sha512-ozCGC54wi2C1RkS2v69y9lQxvoQ1Coh+iT8CmWiyY8y1ZuOKVvuNson2Hd+HEOs9+EZNNsOBbzKgQZ4SNqWd0w==}
+
resolution: {integrity: sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag==}
@@ -2815,6 +3055,14 @@ packages:
resolution: {integrity: sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==}
+ resolution: {integrity: sha512-zIHwmZPRshsCdpMDyVsqGmgyP0yT8GAgXUnkdAoJisxvf33k7yO6OuoKmcTGuXPWSsm8Oh88nZicRLA9Y0rUeA==}
+ engines: {node: '>=12'}
+
+ resolution: {integrity: sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==}
+ engines: {node: '>=12'}
+
resolution: {integrity: sha512-nI4U3TottKAcAD9LLud4Cb7b2QztQMUEfHbvhTH09bqXTxnSie8WnjPALV/WMCrJZ6UV/qHJ6L03OqO3LcdYZw==}
engines: {node: '>=12'}
@@ -2922,9 +3170,33 @@ packages:
resolution: {integrity: sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==}
engines: {node: '>= 0.4'}
+ resolution: {integrity: sha512-asLFVfWWtJ90ZyOUHMqk7/S2w2guQKxUI2itj3d92ADHhxUSbCMGi1f1cBcJ7xM1To+pE/Khbwo1yuNbMEPKeA==}
+
resolution: {integrity: sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==}
+ resolution: {integrity: sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==}
+ engines: {node: '>=0.10.0'}
+ hasBin: true
+
+ resolution: {integrity: sha512-ASgIuQnOq4RuD8jMhS9hI0LS3EMRT1I/M5R6utqifB/BHN80IcCjBdt+DED+NmNPvmBgEtrlExXZitNdA7kXOg==}
+ engines: {node: '>=14.0.0'}
+ hasBin: true
+
+ resolution: {integrity: sha512-MagnqaZSALSWjcdKu5HEVhYUZD/2BDL3q7XzrqWwub6gf/UfD3ItMgmthVDv9w5y9E0gH1C3JWqKaXwf6f4ROg==}
+
+ resolution: {integrity: sha512-12U/mbzaIKQS3Q543aQ7DjyAZMXeVJy1Wpu0qdq5ne4RXpIQDpWYm25zRjgXngAoo6swMrm4C4owGyiIipelsg==}
+
+ resolution: {integrity: sha512-rBQ0Czu1Qrtrs6Fygq7Qtfcgkhpt79SylMkaFb1AhtXItdxh0Wq3ERQoPfBYECYf+FxptAiXKCZ7p+H/39CWIA==}
+ engines: {node: '>= 22.12.0'}
+ hasBin: true
+
resolution: {integrity: sha512-wkgGT6kugeQk/P6VZ/f4T+4HB41BVgNBq5CDIZVbQ02nvTVqAiVTbskxxu3eA/X96lMlfYOwnLQpN2v5E1zDEg==}
engines: {node: '>= 0.4.0'}
@@ -2942,6 +3214,13 @@ packages:
resolution: {integrity: sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==}
engines: {node: '>=6'}
+ resolution: {integrity: sha512-dtJUTepzMW3Lm/NPxRf3wP4642UWhjL2sQxc+ym2YMj1m/H2zDNQOlezafzkHwn6sMstjHTwG6iQQsctDW/b1A==}
+ engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
+
+ resolution: {integrity: sha512-2bmlRpNKBxT/CRmPOlyISQpNj+qSeYvcym/uT0Jx2bMOlKLtSy1ZmLuVxSEKKyor/N5yhvp/ZiG1oE3DEYMSFA==}
+
resolution: {integrity: sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==}
engines: {node: '>= 0.4'}
@@ -2964,6 +3243,9 @@ packages:
resolution: {integrity: sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==}
engines: {node: '>= 0.4'}
+ resolution: {integrity: sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==}
+
resolution: {integrity: sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==}
engines: {node: '>=18'}
@@ -2978,6 +3260,10 @@ packages:
resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==}
engines: {node: '>=6'}
+ resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==}
+ engines: {node: '>=10'}
+
resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==}
@@ -3001,6 +3287,9 @@ packages:
resolution: {integrity: sha512-KfYbmpRm0VbLjEvVa9yGwCi9GI34xvi7A/HXYWQO65CSD2u3MczUJSuwXKFIxlGsgBQizV9q5J9NHj4VG0n+pA==}
engines: {node: '>=12.0.0'}
+ resolution: {integrity: sha512-ZgEeZXj30q+I0EN+CbSSpIyPaJ5HVQD18Z1m+u1FXbAeT94mr1zw50q4q6jiiC447Nl/YTcIYSAftiGqetwXCA==}
+
resolution: {integrity: sha512-mpVW/HLUqwKXJ6F/s0hMgdK1eQfM4ncTHDioNGHWL0WKV3VcZCoZq1NKgboBbAge07aRCO7L48yziKssL59XEQ==}
engines: {node: '>=18'}
@@ -3011,6 +3300,9 @@ packages:
resolution: {integrity: sha512-Ctcuv1tplX+8bX/VBu6DD8gZyDEtbP+jo+jnNCR9LVNSWR6DWauNol44WGQC2+uMCnFG7oRw/67ldmTIADdtgA==}
+ resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==}
+
resolution: {integrity: sha512-dwsoQlS7h9hMeYUq1W++23NDcBLV4KqONnITDV9DjfS3q1SgDGVrBdvvTLUotWtPSD7asWDV9/CmsZPy8Hf70A==}
engines: {node: '>=6'}
@@ -3021,6 +3313,9 @@ packages:
resolution: {integrity: sha512-n11RGP/lrWEFI/bWdygLxhI+pVeo1ZYIVwvvPkW7azl/rOy+F3HYRZ2K5zeE9mmkhQppyv9sQFx0JM9UabnpPQ==}
+ resolution: {integrity: sha512-hS/0Wt3Ya043oKXs0sIxrMpKQITXhMLIrVAKKXi4gozGC9v7YRWVnXIZzjNPTO02M9BdxLCWqK1yRXgNziVyJQ==}
+
resolution: {integrity: sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==}
@@ -3033,6 +3328,9 @@ packages:
picomatch:
optional: true
+ resolution: {integrity: sha512-5giy2PkLYY1cP39p17Ech+2xlpTRL9HLspOfEgm0L6CwBXBTgsK5ou0JtzYuepxkaQ/tvhCFIJ5uXo0OrM2DxA==}
+
resolution: {integrity: sha512-Be3narBNt2s6bsaqP6Jzq91heDgOEaDCJAXcE3qcma/EJBSy5FB4cvO31XBInuAuKBx8Kptf8dkhjK0IOru39Q==}
engines: {node: '>=18'}
@@ -3046,10 +3344,18 @@ packages:
resolution: {integrity: sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==}
engines: {node: '>=12'}
+ resolution: {integrity: sha512-eXvGGwZ5CL17ZSwHWd3bbgk7UUpF6IFHtP57NYYakPvHOs8GDgDe5KJI36jIJzDkJ6eJjuzRA8eBQb6SkKue0g==}
+ engines: {node: '>=14.14'}
+
resolution: {integrity: sha512-KYAb4c9BJQI6QqGKthV68OHe0badztdXJWKo0WtBA9IuCFPTKvE5ZdUBglP833aMjhaSPNO4A5j/EkzZtGlKjA==}
engines: {node: '>=14.14'}
+ resolution: {integrity: sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==}
+ engines: {node: '>=6 <7 || >=8'}
+
resolution: {integrity: sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==}
engines: {node: '>=10'}
@@ -3074,6 +3380,10 @@ packages:
resolution: {integrity: sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==}
engines: {node: '>= 0.4'}
+ resolution: {integrity: sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==}
+ engines: {node: '>=8'}
+
resolution: {integrity: sha512-++QEw4DIY7WGoukz+/+A/8dGYPT9l9yIadnmSgZ8Rjr3YVSVDipQSO9CdnJo9ePqFqUUqh+wk9uIaoiAwsiPkA==}
@@ -3081,10 +3391,22 @@ packages:
resolution: {integrity: sha512-OwXjVP2svY5EyLY75Vek96C8qK43gqrt4xsZ+qSILdnaEiJPXkd62mcfUSNx/TQErQRdu5uM5kF67sfONragKw==}
engines: {node: 18 || 20 || >=22}
+ resolution: {integrity: sha512-PT6XReJ+D07JvGoxQMkT6qji/jVNfX/h364XHZOWeRzy64sSFr+xJ5OX7LI3b4MPQzdL4H8Y8M0xzPpsVMwA8Q==}
+ engines: {node: '>=10.0'}
+
+ resolution: {integrity: sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==}
+ engines: {node: '>= 0.4'}
+
resolution: {integrity: sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==}
engines: {node: '>= 0.4'}
+ resolution: {integrity: sha512-6tfZ91bOr7bOXnK7PRDCGBLa1H4U080YHNaAQ2KsMGlLEzRbk44nsZF2E1IeRc3vtJHPVbKCYgdFbaGO2ljd8g==}
+ engines: {node: '>=10.19.0'}
+
resolution: {integrity: sha512-iuyGF2E4oafQfPsRrG2wtY2ILupMhvtdrhzrxB+0VcjsPpSPttpfYdjnGFGsTi5MaJFjI1jOKHPQ6UTbTj9TAw==}
@@ -3092,6 +3414,13 @@ packages:
resolution: {integrity: sha512-is3hDn9zb8XXnjbEeAEIqxTpLHUiGBqjegLmXPuyMBfKAggpadWFku4/AP8iYAGBX6qR9/5UIUIp47V0XI3aMw==}
hasBin: true
+ resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==}
+
resolution: {integrity: sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==}
engines: {node: '>= 0.4'}
@@ -3119,6 +3448,21 @@ packages:
resolution: {integrity: sha512-xo6gecEJQ+CjTtOUUbcLHE8CdRKMeF4qITe+DT+OhFnSUmZR/ZBa9XavAfiGh4HlukmlaHFdaK4dz5tkTYFNmA==}
engines: {node: '>=16.9.0'}
+ resolution: {integrity: sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA==}
+ engines: {node: '>=10'}
+
+ resolution: {integrity: sha512-M5t5LlJpS1UHMjvwRQVdFHvPISGeLAxNcrWuJkeGh0KxsqCHZ1O3NXZU/8x7cD0BDcGW8kapxMKTvwlqrNkHkA==}
+
+ resolution: {integrity: sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==}
+ engines: {node: '>= 14'}
+
+ resolution: {integrity: sha512-V+23sDMr12Wnz7iTcDeJr3O6AIxlnvT/bmaAAAP/Xda35C90p9599p0F1eHR/N1KILWSoWVAiOMFjBBXaXSMxg==}
+ engines: {node: '>=10.19.0'}
+
resolution: {integrity: sha512-JrF8SSLVmcvc5NducxgyOrKXe3EsyHMgBFgSaIUGmArKe+rwr0uphRkRXvwiom3I+fpIfoItveHrfudL8/rxuA==}
engines: {node: '>=16'}
@@ -3157,13 +3501,41 @@ packages:
resolution: {integrity: sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==}
engines: {node: '>=8'}
+ resolution: {integrity: sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==}
+
+ resolution: {integrity: sha512-iHrqe5shvBUcFbmZq9zOQHBoeOhZJu6RQGrDpBgenUm/Am+F3JM2MgQj+rK3Z601fzrL5gLZWtAPH2OBaSVcyw==}
+ engines: {node: '>= 8.0.0'}
+
+ resolution: {integrity: sha512-gnWD14Jh3FzS3CPhF0AxNOJ8CxqeblPTADzI38r0wt8ZyQl5edpy75myt08EG2oKvpyiqSqsx+Wkz9vtkbTqYQ==}
+ engines: {node: '>= 18.0.0'}
+
resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==}
+ resolution: {integrity: sha512-6B3tLtFqtQS4ekarvLVMZ+X+VlvQekbe4taUkf/rhVO3d/h0M2rfARm/pXLcPEsjjMsFgrFgSrhQIxcSVrBz8w==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-FFUtZMpoZ8RqHS3XeXEmHWLA4thH+ZxCv2lOiPIn1Xc7CxrqhWzNSDzD+/chS/zbYezmiwWLdQC09JdQKmthOw==}
+ engines: {node: '>=20'}
+
+ resolution: {integrity: sha512-wpHYzhxiVQL+IV05BLE2Xn34zW1S223hvjtqk0+gsPrwd/8JNLXJgZZM/iPFsYc1xyphF+6M6EvdE5E9MBGkDA==}
+ engines: {node: '>=10'}
+ hasBin: true
+
resolution: {integrity: sha512-qzTmjw6lZ3V4znyNA8ceYoGgFR+CcF+xEfIYZNcK2ZR0mzdMpMZ6iAcdRPvMgxUVdPMh6QLWCANpTcCJow2U+Q==}
engines: {node: '>=20'}
+ resolution: {integrity: sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==}
+ hasBin: true
+
resolution: {integrity: sha512-s+3Al/p9g32Iq+oqXxkW//7jk2Vig6FF1CFqzVXoTUXt2qz89YWbL+OwS17NFYEvxC35n0FKeGO2LGYSxeM2Gg==}
@@ -3174,17 +3546,38 @@ packages:
resolution: {integrity: sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==}
engines: {node: '>=10'}
+ resolution: {integrity: sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA==}
+ hasBin: true
+
resolution: {integrity: sha512-paNr4LFIFPjeeSmwNYdrb8FafLLG/Cr2Af3GjbsHJ5CxIjH4r0c2emlmRdAtpPAieP1gRVzk6buBbVP5gBMGAg==}
hasBin: true
+ resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==}
+
resolution: {integrity: sha512-+DWg8jCJG2TEnpy7kOm/7/AxaYoaRbjVB4LFZLySZlWn8exGs3A4OLJR966cVvU26N7X9TWxl+Jsw7dzAqKT6g==}
engines: {node: '>=16'}
+ resolution: {integrity: sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==}
+
resolution: {integrity: sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==}
+ resolution: {integrity: sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==}
+
+ resolution: {integrity: sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==}
+ engines: {node: '>=6'}
+ hasBin: true
+
+ resolution: {integrity: sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==}
+
resolution: {integrity: sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==}
@@ -3198,6 +3591,9 @@ packages:
resolution: {integrity: sha512-EKI/M/yqPncGUUh44xz0PxSidXFr/+r0pA70+gIYhjv+et7yxM+s29Y+VGDkovRofQem0fs7Uvf4+YmAdyRduA==}
+ resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==}
+
resolution: {integrity: sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==}
engines: {node: '>=6'}
@@ -3210,6 +3606,9 @@ packages:
resolution: {integrity: sha512-K48ErswC3MlIcBqR0pYIIEl+n9rIgwxgzaM1FxKHMXn7egxr1NHj7bCeF98mXl9A3/QoL5I7mo5S/mLXgeDgGA==}
engines: {node: '>=22.0.0'}
+ resolution: {integrity: sha512-0/BnGCCfyUMkBpeDgWihanIAF9JmZhHBgUhEqzvf+adhNGLoP6TaiI5oF8oyb3I45P+PcnrqihSf01M0l0G5+Q==}
+
resolution: {integrity: sha512-V92dxRHhYTsHF5B6IjR8rtKW6qL7xKuERPFFqZt7XQl8A+NikbwEzjhxGpM+R6JnWjaL7/wokWSdTG/eyYAscQ==}
@@ -3296,6 +3695,13 @@ packages:
resolution: {integrity: sha512-41/6Piz6emgjco9+kXbiu98qsuoOKbCE4tUZMcBan0r1b5phoCiuLYoanLDAd74Cd0i6GNaUn6KLb8hR1lDhCw==}
engines: {node: '>=19'}
+ resolution: {integrity: sha512-TM9YBvyC84ZxE3rgfefxUWiQKLilstD6k7PTGt6wfbtXF8ixIJLOL3VYyV/z+ZiPLsVxAsKAFVwWlWeb2Y8Yyw==}
+
+ resolution: {integrity: sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==}
+ deprecated: This package is deprecated. Use require('node:util').isDeepStrictEqual instead.
+
resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==}
@@ -3306,10 +3712,18 @@ packages:
resolution: {integrity: sha512-HgMmCqIJSAKqo68l0rS2AanEWfkxaZ5wNiEFb5ggm08lDs9Xl2KxBlX3PTcaD2chBM1gXAYf491/M2Rv8Jwayg==}
engines: {node: '>= 0.6.0'}
+ resolution: {integrity: sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==}
+ engines: {node: '>=8'}
+
resolution: {integrity: sha512-U4N8FgzmWxc8k1VH8Kr6lQg18U7Fjvby6wXHVRX/ZZ7IwWbRMgrRbP0Wrb5q5NVinryp4SQampHKdvtecItxUg==}
engines: {node: 20 || >=22}
+ resolution: {integrity: sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==}
+ engines: {node: '>=10'}
+
resolution: {integrity: sha512-vtEhXh/gNjI9Yg1u4jX/0YVPMvxzHuGgCm6tC5kZyb08yjGWGnqAjGJvcXbqQR2P3MyMEFnRbpcdFS6PBcLqew==}
engines: {node: '>=12'}
@@ -3321,6 +3735,10 @@ packages:
resolution: {integrity: sha512-oLLC2+YvQUfAa+vxoufE/yc1icb87M9iXIRqAoR/2EhE/8cb3SF/+Gi0c2By1B+5Vz2e2vQtUvHiu1+63Znh+w==}
+ resolution: {integrity: sha512-OkeDaAZ/bQCxeFAozM55PKcKU0yJMPGifLwV4Qgjitu+5MoAfSQN4lsLJeXZ1b8w0x+/Emda6MZgXS1jvsapng==}
+ engines: {node: '>=10'}
+
resolution: {integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==}
engines: {node: '>= 0.4'}
@@ -3333,13 +3751,41 @@ packages:
resolution: {integrity: sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==}
engines: {node: '>= 0.6'}
+ resolution: {integrity: sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==}
+ engines: {node: '>=4.0.0'}
+ hasBin: true
+
+ resolution: {integrity: sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==}
+ engines: {node: '>=4'}
+
+ resolution: {integrity: sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==}
+ engines: {node: '>=10'}
+
resolution: {integrity: sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==}
+ resolution: {integrity: sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==}
+ engines: {node: 18 || 20 || >=22}
+
resolution: {integrity: sha512-KCFkfyjqerNlSstjlhIGNXIKZGA/6O4V4RlhZ+Dsr621SPPw0mzlypE9D9ZOoPiVefHID+j7/XuMMlqfD/F60Q==}
engines: {node: 20 || >=22}
+ resolution: {integrity: sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==}
+
+ resolution: {integrity: sha512-7o1wEA2RyMP7Iu7GNba9vc0RWWGACJOCZBJX2GJWip0ikV+wcOsgVuY9uE8CPiyQhkGFSlhuSkZPavN7u1c2Fw==}
+ engines: {node: '>=10'}
+
+ resolution: {integrity: sha512-OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg==}
+ engines: {node: '>=16 || 14 >=14.17'}
+
resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==}
@@ -3383,6 +3829,13 @@ packages:
engines: {node: '>=16.0.0'}
hasBin: true
+ resolution: {integrity: sha512-sey5XPoGJ2VBCcwtHhvwSbMMkYvXyvZkn+FjHsoFij3bcWjJRN4+3Zt7GsZOkgZ8J0maJFCWsYtralZDJVQncg==}
+ engines: {node: '>=22.12.0'}
+
+ resolution: {integrity: sha512-2xP/IGGMmmSQpI1+O/k72jF/ykvZ89JeuKX3TLJAYPDVLUalrshrLHkeVcCCZqG/eEa635cr8IBYzgnDvM2O8Q==}
+
resolution: {integrity: sha512-g9yhqoedzIUm0nTnTqAQvueMPVOuIY16bqgAJJC8XOOubYFNwz6IER9qs0Gq2Xd0+CecCKFjtdDTMA4u4xG06Q==}
@@ -3399,9 +3852,17 @@ packages:
resolution: {integrity: sha512-LA4ZjwlnUblHVgq0oBF3Jl/6h/Nvs5fzBLwdEF4nuxnFdsfajde4WfxtJr3CaiH+F6ewcIB/q4jQ4UzPyid+CQ==}
hasBin: true
+ resolution: {integrity: sha512-OMcPNvqTCFUnNaBlmdgq+lfNqY7gTiSmNRDjY3uAXRyudeKZEZxu3CLtjMQrx4zZxCX2b/mpNqTtwuCJgXhHkw==}
+ engines: {node: ^20.17.0 || >=22.9.0}
+ hasBin: true
+
resolution: {integrity: sha512-RaBPP3+51hPne/OolXxcz89iYvQvKOydaqoePpOgXcrOKZhjVIzmpKZz+Hd/RBO2/zN2q6CNJhQzucVz+u3Jyw==}
+ resolution: {integrity: sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==}
+
resolution: {integrity: sha512-d7kfFfS/tR4Aca+SBvRaQ+MXKNv7d2JiRe5TxaRcFT/kYMh4GGPnW9aKksTIEvyEbA7d/7HYWE4YPDEHxzJj/g==}
engines: {node: '>=20.0.0'}
@@ -3410,9 +3871,22 @@ packages:
resolution: {integrity: sha512-TMB1uHiGsHRGv1uYclfhivcnf0/PdFp2pNqRxXjncaAsjYMoisaQJI+SSZCqRq+VliwRTC8tsMQfmrWjDMhkPQ==}
engines: {node: '>=20'}
+ resolution: {integrity: sha512-Zhq3a+yFKrYwSBluL4H9XP3m3y5uvQkB/09CwDruCiRmR/UJYnn9W4R48ry0uGC70aeTPKLynBtscP9efFFcPw==}
+ engines: {node: ^20.17.0 || >=22.9.0}
+ hasBin: true
+
+ resolution: {integrity: sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==}
+ engines: {node: '>=10'}
+
resolution: {integrity: sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==}
+ resolution: {integrity: sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==}
+ engines: {node: '>= 0.4'}
+
resolution: {integrity: sha512-5vvB5+W7ePv+p3uqxi+RcW1XAzLW0/hxt3/4X4Lc4qHudzOhmBiBwOY6DRob4WnanAEGvNcLjF+KNOufrUoEQw==}
engines: {node: '>=12.20.0'}
@@ -3459,6 +3933,14 @@ packages:
resolution: {integrity: sha512-BKmaZZXp667kLC8Od/ivIkbw6yaxTSqw8ViI1Tvl21E6r+6NLdwDmo43LpL2Ebt/PDMu1d4tcdBucMSor+cL1g==}
engines: {node: ^20.19.0 || >=22.12.0}
+ resolution: {integrity: sha512-BZOr3nRQHOntUjTrH8+Lh54smKHoHyur8We1V8DSMVrl5A2malOOwuJRnKRDjSnkoeBh4at6BwEnb5I7Jl31wg==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==}
+ engines: {node: '>=10'}
+
resolution: {integrity: sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==}
@@ -3476,6 +3958,10 @@ packages:
resolution: {integrity: sha512-V/mpyJAoTsN4cnP31vc0wfNA1+p20evqqnap0KLoRUN0Yk/p3wN52DOEsL4oBFcLdb76hlpKPtzJIgo67j/XLw==}
+ resolution: {integrity: sha512-eRWB5LBz7PpDu4PUlwT0PhnQfTQJlDDdPa35urV4Osrm0t0AqQFGn+UIkU3klZvwJ8KPO3VbBFsXquA6p6kqZw==}
+ engines: {node: '>=12', npm: '>=6'}
+
resolution: {integrity: sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==}
@@ -3566,6 +4052,10 @@ packages:
resolution: {integrity: sha512-wQ0b/W4Fr01qtpHlqSqspcj3EhBvimsdh0KlHhH8HRZnMsEa0ea2fTULOXOS9ccQr3om+GcGRk4e+isrZWV8qQ==}
engines: {node: '>=16.20.0'}
+ resolution: {integrity: sha512-V9kOzaItwDgqlryhXysQsAXUEKi5O7kqWUaP3dXI7MLvkPqWWMb4wVb1QAtmEDCKI+XIAINsZoNKMFF7sZb1eg==}
+ engines: {node: '>=16.0.0'}
+
resolution: {integrity: sha512-hqPpz7blSMPxWVdoeE1yiBSzXsKiVOd2k+kjCvmUywD2GPO2Dd9HfcWnq9NN0GHbNZDFgZ9JfBFr+X5/BLo0qw==}
engines: {node: '>=20'}
@@ -3576,6 +4066,10 @@ packages:
engines: {node: '>=20'}
hasBin: true
+ resolution: {integrity: sha512-uysumyrvkUX0rX/dEVqt8gC3sTBzd4zoWfLeS29nb53imdaXVvLINYXTI2GNqzaMuvacNx4uJQ8+b3zXR0pkgQ==}
+ engines: {node: '>=10.4.0'}
+
resolution: {integrity: sha512-ZIfcLJC+7E7FBFnDxm9MPmt7D+DidyQ26lewieO75AdhA2ayMtsJSES0iWzqJQbcVRSrTufQoy0DR94xHue0oA==}
engines: {node: '>=10.4.0'}
@@ -3609,6 +4103,13 @@ packages:
engines: {node: '>=10.13.0'}
hasBin: true
+ resolution: {integrity: sha512-iG+GYldRf2BQ0UDUAd6JQ/RwzaQy6mXmsk/IzlYyal4A4SNFw54MeH4/tLkF4I5WoWG9SQwuqWzS99jaFQHBuQ==}
+ engines: {node: ^20.17.0 || >=22.9.0}
+
+ resolution: {integrity: sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==}
+
resolution: {integrity: sha512-mqn0kFRl0EoqhnL0GQ0veqFHyIN1yig9RHh/InzORTUiZHFRAur+aMtRkELNwGs9aNwKS6tg/An4NYBPGwvtzQ==}
@@ -3619,10 +4120,21 @@ packages:
resolution: {integrity: sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==}
engines: {node: '>= 0.6.0'}
+ resolution: {integrity: sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==}
+ engines: {node: '>=0.4.0'}
+
+ resolution: {integrity: sha512-y+WKFlBR8BGXnsNlIHFGPZmyDf3DFMoLhaflAnyZgV6rG6xu+JwesTo2Q9R6XwYmtmwAFCkAk3e35jEdoeh/3g==}
+ engines: {node: '>=10'}
+
resolution: {integrity: sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==}
engines: {node: '>= 6'}
+ resolution: {integrity: sha512-TjNPblN4BwAWMXU8s9AEz4JmQxnD1NNL7bNOY/AKUzyamc379FWASUhc/K1pL2noVb+XmZKLL68cjzLsiOAMaA==}
+
resolution: {integrity: sha512-VS7sjc6KR7e1ukRFhQSY5LM2uBWAUPiOPa/A3mkKmiMwSmRFUITt0xuj+/lesgnCv+dPIEYlkzrcyXgquIHMcA==}
@@ -3636,6 +4148,10 @@ packages:
resolution: {integrity: sha512-tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg==}
+ resolution: {integrity: sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==}
+ engines: {node: '>=10'}
+
resolution: {integrity: sha512-Y0bARz53lhEC1NMCASs0/j+faB/zqt3R8hpvg1e8+61ZVJ4UL0UdC4cBbXfZMcIuhrfgeILTLe+ZeBCavQPtKQ==}
peerDependencies:
@@ -3651,6 +4167,13 @@ packages:
resolution: {integrity: sha512-QNhWdt7nrgVWWQG58QuGsAR3jv3Hbe4mb4vz7w2csnHavciZJgda1CPNaldF6eVxv90ud3jUXpKlHL69gO38yw==}
engines: {node: '>=0.10.0'}
+ resolution: {integrity: sha512-BNg9EN3DD3GsDXX7Aa8O4p92sryjkmzYYgmgTAc6CA4uGLEDzFfxOxugu21akOxpcXHiEgsYkC6nPsQvLLLmEg==}
+ hasBin: true
+
+ resolution: {integrity: sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==}
+
resolution: {integrity: sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==}
engines: {node: '>= 6'}
@@ -3673,18 +4196,40 @@ packages:
resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==}
engines: {node: '>=0.10.0'}
+ resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==}
+ engines: {node: '>=0.10.0'}
+
resolution: {integrity: sha512-QT7FVMXfWOYFbeRBF6nu+I6tr2Tf3u0q8RIEjNob/heKY/nh7drD/k7eeMFmSQgnTtCzLDcCu/XEnpW2wk4xCQ==}
engines: {node: '>=9.3.0 || >=8.10.0 <9.0.0'}
+ resolution: {integrity: sha512-vHjcY2MlAITJhC0eRD/Vv8Vlgmu9Sd3LX9zZvtGzU5ZImdTN3+d6e/4mnTyV8vEbyf1sgNIrWxhWlrys52OkEA==}
+ engines: {node: '>=12', npm: '>=6'}
+
+ resolution: {integrity: sha512-0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g==}
+
resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==}
+ resolution: {integrity: sha512-4gl03wn3hj1HP3yzgdI7d3lCkF95F21Pz4BPGvKHinyQzALR5CapwC8yIi0Rh58DEMQ/SguC03wFj2k0M/mHhw==}
+
+ resolution: {integrity: sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==}
+ engines: {node: '>= 4'}
+
resolution: {integrity: sha512-Fk3reQDVPZUMbEm7Zwxz03BWQMW3V5buSk9aU8OckTrO8A1nQtbqvYsAantGNermwsIsXcuOBqcoJ3HuMELctw==}
engines: {node: 20 || >=22}
hasBin: true
+ resolution: {integrity: sha512-CHhPh+UNHD2GTXNYhPWLnU8ONHdI+5DI+4EYIAOaiD63rHeYlZvyh8P+in5999TTSFgUYuKUAjzRI4mdh/p+2A==}
+ engines: {node: '>=8.0'}
+
resolution: {integrity: sha512-QIiV1J9d0pzN4jeeTH4sjPy0AZ6cAy2cG0ExeoE1+U8Rvj+hR3gYkokx0YbeUNGlZqiQJJ2utcETe0oKXwzsuA==}
engines: {node: ^20.19.0 || >=22.12.0}
@@ -3699,6 +4244,9 @@ packages:
resolution: {integrity: sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA==}
+ resolution: {integrity: sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==}
+
resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==}
@@ -3709,6 +4257,9 @@ packages:
resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==}
+ resolution: {integrity: sha512-+dVApt46/oAFWRP0KBSnYNLRw1peY7o/b12tmpllPNFpjfwkPuZut1+DiKaD9zYx5r2SHwc+XMLSBaDiyUJw3g==}
+
resolution: {integrity: sha512-5f3k2PbGGp+YtKJjOItpg3P99IMD84E4HOvcfleTb5joCHNXYLsR9yWFPOYGgaeMPDubQILTCMdsFb2OMeOjtg==}
@@ -3732,6 +4283,22 @@ packages:
resolution: {integrity: sha512-lnd81MQEZKjhW/Gd2TQqdd4XP6QYNdDW/EP+I7nTrFHP9y2LmaGPIHk9xsnzcOiEr1c39c/e84xFgGviQKBTRw==}
+ resolution: {integrity: sha512-YM3/ITh2MJ5MtzaM429anh+x2jiLVjqILF4m4oyQB18W7Ggea7BfqdH/wGMK7dDiMghv/6WG7znWMwUDzJiXow==}
+
+ resolution: {integrity: sha512-kM18BPOqTi0+TB68703/GJRpAML5Me+IDQsR1J26YB3EFKKNEyHIVZuWDX7+WKQB3tHwDwgk24BfhdpWUbytvQ==}
+ hasBin: true
+
+ resolution: {integrity: sha512-GYrCADwpu6yV5OAvchkQ27Z5wwMxWAEMg5NNWjyHh/5DboFFqbdbvYNIvZouQpxXyeMPoTOh0vdPYKlf0ZswdQ==}
+ hasBin: true
+
+ resolution: {integrity: sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==}
+ engines: {node: '>=10'}
+ hasBin: true
+
resolution: {integrity: sha512-9lpSSU4Mly3mrtruwLs1eLK6+gzbzqeBFwRNjIjE+9LuDpWdYctrQlQ3ej1Ilgi7gknpsTRnPoLP8DpCHqHIJw==}
engines: {node: '>=10'}
@@ -3746,6 +4313,10 @@ packages:
resolution: {integrity: sha512-FT1EL2Pz7lAWA48I6Qb1qHEvGT9ZGz2pb1sYZ9Dhu2t+RmHN6O12WMu7HzFcqFRQaUWEl3Q+++EYBTrZpCoykQ==}
engines: {node: '>=20'}
+ resolution: {integrity: sha512-8I8TjW5KMOKsZQTvoxjuSIa7foAwPWGOts+6o7sgjz41/qMD9VQHEDxi6PBvK2l0MXUmqZyNpUK+T2tQaaElvw==}
+ engines: {node: '>=10'}
+
resolution: {integrity: sha512-bDO7NdAkLprNt3BNl3LAh0oVnOS5+WspzxOxiboo7vRIyTqj2pvFmNWYEFynSGQgpJ+7yG/9nc/aSG20UDBUpg==}
@@ -3772,6 +4343,10 @@ packages:
resolution: {integrity: sha512-iMSw5i0XseMnrhtIzRb7XpQEXepa9xhWxGUojHBL43SIpQuDQkh3Wpy67ZbDzZVr6EKxvwVChnVpdl8hEVLDiw==}
+ resolution: {integrity: sha512-a2B9Y0KlNXl9u/vsW6sTIu9vGEpfKu2wRV6l1H3XEas/0gUIzGzBoP/IouTcUQbm9JWZLH3COxyn03TYlFax6w==}
+ engines: {node: '>=10'}
+
resolution: {integrity: sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==}
@@ -3803,9 +4378,16 @@ packages:
resolution: {integrity: sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==}
engines: {node: '>= 10.x'}
+ resolution: {integrity: sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==}
+
resolution: {integrity: sha512-5W9skHjqAm2dlA9wWvglTP+oX47JX4lFXVk1aJV7+TG1snvTR4QXaVgPscEzvOw9GRreeavMwbqEeL+MGhZHCg==}
+ resolution: {integrity: sha512-jH9EhtKIjuXZ2cWxmXS8ZP80XyC3iasQxMDV8jzhNJpfDb7VbQLVW4Wvsxz9QZvzV+G4YoSfBUVKDOyxLzi/sg==}
+ engines: {node: '>= 6'}
+
resolution: {integrity: sha512-OtU/EgQ1kIm5KwqQpBC6ZEMXrZRui11w8zgfTWp8cdO9B8OaPsbA8bTHO2P+HNo1VlUTGMVBwPhydu6poeXiag==}
@@ -3817,6 +4399,9 @@ packages:
resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==}
engines: {node: '>=8'}
+ resolution: {integrity: sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==}
+
resolution: {integrity: sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==}
@@ -3841,6 +4426,14 @@ packages:
'@types/node':
optional: true
+ resolution: {integrity: sha512-MvjXzkz/BOfyVDkG0oFOtBxHX2u3gKbMHIF/dXblZsgD3BWOFLmHovIpZY7BykJdAjcqRCBi1WYBNdEC9yI7vg==}
+ engines: {node: '>= 8.0'}
+
+ resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==}
+ engines: {node: '>=8'}
+
resolution: {integrity: sha512-yEFYrVhod+hdNyx7g5Bnkkb0G6si8HJurOoOEgC8B/O0uXLHlaey/65KRv6cuWBNhBgHKAROVpc7QyYqE5gFng==}
engines: {node: '>=20'}
@@ -3849,6 +4442,9 @@ packages:
resolution: {integrity: sha512-lkukzdoGngZHJZXxW4S/E4Fp9ghTDlyZXrQGRNoJ/LXvDKcXUTq2sg5yQe74po7Voea6n/IN09+wE/QvJMiifA==}
engines: {node: '>=18'}
+ resolution: {integrity: sha512-C5tjlC/HCtVUOi3KWVokd4vHVViOmGjtLwIh4MuzPo/nMYTV/p1urt3RnMz2IWXDdKEGJH3k5+KPxtqRsUYGtg==}
+
resolution: {integrity: sha512-wxVoanmDeavXie1vu2JaQ3WIc3JZnWAOYFBsJyATaVsXsycKYUflGsyBmrRSnoCpZJpwPyr38VpgSUlQ8CbFxg==}
@@ -3861,6 +4457,12 @@ packages:
resolution: {integrity: sha512-iOqSav00cVxEEICeD7TjLB1sueEL+81Wpzp2bY17uZjZN0pWZPuo4suZ/61VujxmqSGFfgOcNuTZ85QJwNZQpw==}
+ resolution: {integrity: sha512-01EAw5EDrcVrdgyCLgoSPvqznC0sVxDSVeiOz09FUpjh71G79VCqneOr+xvt7T1r76CF6ZZfPjHorN2+d+3mqA==}
+
+ resolution: {integrity: sha512-qVtvMxeXbVej0cQWKqVSSAHmKZEHAvxdF8HEUBFWts8h+xEo5m/lEiPakuyZ3BnCBjOD8i24kzNOiOLLgsSxhA==}
+
resolution: {integrity: sha512-Al01C2JIBnO2CXCAPbpAl6sUiOZHeThGtHYNTa51JRw9PyWOCdr+9Ong05R4qg/Sk3+H645E8ov1h2c58ityNw==}
engines: {node: '>=20.0.0'}
@@ -3880,13 +4482,23 @@ packages:
resolution: {integrity: sha512-48dH6aSpQnpbzDUc4vIQZ1VjB8tkK+e8c1yx05/SZK+rkssgjEOlxDd/yU8/a4vGYQ9vRgJr9dwMq9TJ0b3X2Q==}
hasBin: true
- resolution: {integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==}
+ resolution: {integrity: sha512-RwM7MoPojPxsOBYnyd2hy0bxtIlVrihNs9pj5SUvY8Zz1sQcQG2tG1hSr8PDxfgEB8RNKDhqbIlroIarSNDNsQ==}
+
+ resolution: {integrity: sha512-e0votIpp4Uo2AJYSzVHV6xCcawuiez3DzqDAbrTc3YxBkplN6e+dM13ZeIcZnDg/QpSuU2zfZ3rzwY8ukEnaXw==}
+ engines: {node: '>=14.14'}
+
+ resolution: {integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==}
resolution: {integrity: sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==}
hasBin: true
+ resolution: {integrity: sha512-95Pu1QXQvruGEhv62XCMO3Mm90GscOCClvrIUwCM0PYOXK3kaF3l3sIHxx71ThJfcbM2O5Au6SO3AWCSEfW4mQ==}
+
resolution: {integrity: sha512-FPAhNPFMrkwz76P7cdjdmiShwMynZYN6SgOujD1urY4oNm80Ou9oMdmbR45LotcKOXoy7wSmHkRFE6Mxbrhefw==}
@@ -3915,6 +4527,10 @@ packages:
resolution: {integrity: sha512-2EZ8StW6tqaj71HGF60oUOmJrPQHidmZ5dcwv2VORofya9JthVrfZhxbzRMx/QxjPwYi754i2h5RFsZSDzpnaQ==}
hasBin: true
+ resolution: {integrity: sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==}
+ engines: {node: '>=10'}
+
resolution: {integrity: sha512-NoSdpq/WEiAg5sjmBkmV/hfxv6HJH4NqPNrqjtSO5CwRmpsDfaf4begxW34KdJykH/l1yHtwBWQkCRdoXO8mPA==}
engines: {node: '>=20'}
@@ -3930,13 +4546,24 @@ packages:
resolution: {integrity: sha512-JFNbkD1Svwe0KvGi8GOeLcP4kAWQ609twvCdcHxq1oSL8svv39ZuSvajcD8B+5D0eL4+s1Is2D/O6KN3qcTeRA==}
+ resolution: {integrity: sha512-WRNW+sJgj5OBN4/0JpHFqtqzhpbnV0GuB+OozA9gCL7a993SmU+1JBZCzLNxYsbMfIeDL+lTsphD5jN5N+n0zg==}
+
resolution: {integrity: sha512-KTDyRTYX8sWmKXAikPHHSyc63CRPETMctyjKFupcC6OBLXT3xsN0e9aF7m+mIXutFWpUXuedtowG7iLOzp0kQg==}
+ resolution: {integrity: sha512-EvRlUt/QqAEvXdQeRMYUfwOQsfzpDztykrG2owGEE/rBOBoYv9uF39ZzsNDh4lTFHhTr2XOZjKkYgueD12ZmGA==}
+ engines: {node: '>=18.17'}
+
resolution: {integrity: sha512-mLyPQnHwUxaM/rideoK/+KL8DaAJLRl4aBCfmX444aCSLnIaomqPLtNRe2jdCYcsk5wZzXrDIQC8ZeYNRAYyIA==}
engines: {node: '>=20.18.1'}
+ resolution: {integrity: sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==}
+ engines: {node: '>= 4.0.0'}
+
resolution: {integrity: sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==}
engines: {node: '>= 10.0.0'}
@@ -3945,9 +4572,15 @@ packages:
resolution: {integrity: sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw==}
engines: {node: '>=8'}
+ resolution: {integrity: sha512-tXYOi9R57Uj/2Z25SOs5RRSzq886MBQj2gY8dPL+xl/kv6s6SvByoKfAtvfVeEuhntWDgjd2o9p2lb4TVPAz0A==}
+
resolution: {integrity: sha512-0rjE8iEJe4YmT9TOhwsZtqCMRLc5DXZUI2UEYUUg63ikBkqqE5EYWaI0etFe/5KUcmcYwLih2RND1kq+hrUJXA==}
+ resolution: {integrity: sha512-Xn0w3MtiQ6zoz2vFyUVruaCL53O/DwUvkEeOvj+uulMm0BkUGYWmBYVyElqZaSLhY6ZD0ulfU3aBra2aVT4xfA==}
+
resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==}
@@ -4043,6 +4676,9 @@ packages:
resolution: {integrity: sha512-Dmy+vdO1UPMqXiAtZSNayhl4f794Bxfd94W4HIj2HlYtczEQfEOon969memlcpcHrTuOKLa5baFjX7WbgmOq+A==}
+ resolution: {integrity: sha512-gsXecm82UQNlTBURJGuqOWy1Ww08S3kZUcr3aOJS02Pk0xLtkfeUAVC0u0xhgdonFme80edSJUIJyuvL/7250Q==}
+
resolution: {integrity: sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==}
@@ -4062,6 +4698,16 @@ packages:
engines: {node: '>= 8'}
hasBin: true
+ resolution: {integrity: sha512-JEdGzHwwkrbWoGOlIHqQ5gtprKGOenpDHpxE9zVR1bWbOtYRyPPHMe9FaP6x61CmNaTThSkb0DAJte5jD+DmzQ==}
+ engines: {node: ^18.17.0 || >=20.5.0}
+ hasBin: true
+
+ resolution: {integrity: sha512-oGLe46MIrCRqX7ytPUf66EAYvdeMIZYn3WaocqqKZAxrBpkqHfL/qvTyJ/bTk5+AqHCjXmrv3CEWgy368zhRUg==}
+ engines: {node: ^20.17.0 || >=22.9.0}
+ hasBin: true
+
resolution: {integrity: sha512-Tb2FUhB4vUsGQlfSquQLYkApkuPAFQXGFzxWKHHumVz2dK+X1RUm/HnID4+TfIGYJ1kTcwOaCk/buYCEJr6YjQ==}
engines: {node: '>=20.11'}
@@ -4118,6 +4764,9 @@ packages:
resolution: {integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==}
engines: {node: '>=10'}
+ resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==}
+
resolution: {integrity: sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==}
engines: {node: '>=18'}
@@ -4133,6 +4782,10 @@ packages:
resolution: {integrity: sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==}
+ resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==}
+ engines: {node: '>=10'}
+
resolution: {integrity: sha512-O/PgfnpT1xKSDeQYSCfRI5Gy3hPf91mKVDuYLUHZJMiDFptvP41MSnWofm8dnCm0256ZNfZIM7DSzuSMAFnjHA==}
peerDependencies:
@@ -4203,14 +4856,14 @@ snapshots:
'@better-auth/utils': 0.5.1
dependencies:
'@better-auth/utils': 0.5.1
'@better-fetch/fetch': 1.3.3
'@simplewebauthn/browser': 13.3.0
'@simplewebauthn/server': 13.3.3
better-call: 1.4.5([email protected])
nanostores: 1.5.5
zod: 4.6.7
@@ -4369,6 +5022,89 @@ snapshots:
optionalDependencies:
'@rollup/rollup-darwin-arm64': 4.68.7
+ '@electron-internal/[email protected]': {}
+
+ '@electron/[email protected](patch_hash=4a8402e9f484660437af0057dab4e1f94110e4d0dae6373893c6e17c2e7b0968)':
+ dependencies:
+ commander: 5.1.0
+ glob: 14.0.6
+ minimatch: 3.1.5
+
+ '@electron/[email protected]':
+ dependencies:
+ chalk: 4.1.2
+ fs-extra: 9.1.0
+ minimist: 1.2.8
+
+ '@electron/[email protected]':
+ dependencies:
+ debug: 4.4.3
+ env-paths: 2.2.1
+ fs-extra: 8.1.0
+ got: 11.8.6
+ progress: 2.0.3
+ semver: 6.3.2
+ sumchecker: 3.0.1
+ optionalDependencies:
+ global-agent: 3.0.0
+ transitivePeerDependencies:
+ - supports-color
+
+ '@electron/[email protected]':
+ dependencies:
+ debug: 4.4.3
+ env-paths: 3.0.0
+ graceful-fs: 4.2.12
+ progress: 2.0.3
+ semver: 7.8.6
+ sumchecker: 3.0.1
+ optionalDependencies:
+ undici: 7.30.2
+ transitivePeerDependencies:
+ - supports-color
+
+ '@electron/[email protected]':
+ dependencies:
+ debug: 4.4.3
+ fs-extra: 9.1.0
+ promise-retry: 2.0.1
+ transitivePeerDependencies:
+ - supports-color
+
+ '@electron/[email protected]':
+ dependencies:
+ compare-version: 0.1.2
+ debug: 4.4.3
+ fs-extra: 10.1.0
+ isbinaryfile: 4.0.10
+ minimist: 1.2.8
+ plist: 3.1.1
+ transitivePeerDependencies:
+ - supports-color
+
+ '@electron/[email protected]':
+ dependencies:
+ '@malept/cross-spawn-promise': 2.0.0
+ debug: 4.4.3
+ node-abi: 4.43.0
+ node-api-version: 0.2.1
+ node-gyp: 12.4.0
+ read-binary-file-arch: 1.0.6
+ transitivePeerDependencies:
+ - supports-color
+
+ '@electron/[email protected]':
+ dependencies:
+ '@electron/asar': 3.4.1(patch_hash=4a8402e9f484660437af0057dab4e1f94110e4d0dae6373893c6e17c2e7b0968)
+ '@malept/cross-spawn-promise': 2.0.0
+ debug: 4.4.3
+ dir-compare: 4.2.0
+ fs-extra: 11.4.1
+ minimatch: 9.0.9
+ plist: 3.1.1
+ transitivePeerDependencies:
+ - supports-color
+
'@emnapi/[email protected]':
dependencies:
'@emnapi/wasi-threads': 2.2.0
@@ -5087,6 +5823,19 @@ snapshots:
'@livekit/[email protected]': {}
+ '@malept/[email protected]':
+ dependencies:
+ cross-spawn: 7.0.6
+
+ '@malept/[email protected]':
+ dependencies:
+ debug: 4.4.3
+ fs-extra: 9.1.0
+ lodash: 4.18.1
+ tmp-promise: 3.0.3
+ transitivePeerDependencies:
+ - supports-color
+
'@microsoft/[email protected]': {}
'@modelcontextprotocol/[email protected]':
@@ -5117,6 +5866,8 @@ snapshots:
'@noble/[email protected]': {}
+ '@noble/[email protected]': {}
+
'@noble/[email protected]': {}
'@opentelemetry/[email protected]':
@@ -5493,10 +6244,22 @@ snapshots:
asn1js: 3.1.0
tslib: 2.9.1
+ '@peculiar/[email protected]':
+ dependencies:
+ tslib: 2.9.1
+
'@peculiar/[email protected]':
dependencies:
tslib: 2.9.1
+ '@peculiar/[email protected]':
+ dependencies:
+ '@peculiar/asn1-schema': 2.11.1
+ '@peculiar/json-schema': 1.1.12
+ '@peculiar/utils': 2.0.3
+ tslib: 2.9.1
+ webcrypto-core: 1.9.2
+
'@peculiar/[email protected]':
dependencies:
'@peculiar/asn1-cms': 2.11.1
@@ -5680,10 +6443,16 @@ snapshots:
'@peculiar/asn1-x509': 2.11.1
'@peculiar/x509': 1.14.3
+ '@sindresorhus/[email protected]': {}
+
'@stablelib/[email protected]': {}
'@standard-schema/[email protected]': {}
+ '@szmarczak/[email protected]':
+ dependencies:
+ defer-to-connect: 2.0.1
+
dependencies:
'@tanstack/virtual-core': 3.19.9
@@ -5737,6 +6506,13 @@ snapshots:
tslib: 2.9.1
optional: true
+ '@types/[email protected]':
+ dependencies:
+ '@types/http-cache-semantics': 4.2.0
+ '@types/keyv': 3.1.4
+ '@types/node': 26.6.6
+ '@types/responselike': 1.0.3
+
'@types/[email protected]': {}
@@ -5744,6 +6520,10 @@ snapshots:
'@types/deep-eql': 4.0.2
assertion-error: 2.0.1
+ '@types/[email protected]':
+ dependencies:
+ '@types/ms': 2.1.0
+
'@types/[email protected]': {}
'@types/[email protected]': {}
@@ -5754,6 +6534,22 @@ snapshots:
dependencies:
'@types/node': 26.6.6
+ '@types/[email protected]':
+ dependencies:
+ '@types/node': 26.6.6
+
+ '@types/[email protected]': {}
+
+ '@types/[email protected]':
+ dependencies:
+ '@types/node': 26.6.6
+
+ '@types/[email protected]': {}
+
+ '@types/[email protected]':
+ dependencies:
+ undici-types: 7.24.6
+
dependencies:
undici-types: 8.9.0
@@ -5774,6 +6570,10 @@ snapshots:
dependencies:
csstype: 3.2.4
+ '@types/[email protected]':
+ dependencies:
+ '@types/node': 26.6.6
+
'@types/[email protected]': {}
'@types/[email protected]': {}
@@ -5846,19 +6646,19 @@ snapshots:
'@typescript/[email protected]':
optional: true
dependencies:
'@rolldown/pluginutils': 1.1.1
dependencies:
'@jridgewell/trace-mapping': 0.3.31
'@vitest/spy': 5.1.1
estree-walker: 3.0.3
magic-string: 1.4.5
optionalDependencies:
'@vitest/[email protected]': {}
@@ -5866,20 +6666,80 @@ snapshots:
dependencies:
chevrotain: 7.1.1
+ '@xmldom/[email protected]': {}
+
'@xmldom/[email protected]': {}
+
dependencies:
event-target-shim: 5.0.1
+ dependencies:
+ fast-deep-equal: 3.1.3
+ fast-uri: 3.1.9
+ json-schema-traverse: 1.0.0
+ require-from-string: 2.0.2
+
dependencies:
color-convert: 2.0.1
+ dependencies:
+ '@electron/asar': 3.4.1(patch_hash=4a8402e9f484660437af0057dab4e1f94110e4d0dae6373893c6e17c2e7b0968)
+ '@electron/fuses': 1.8.0
+ '@electron/get': 3.1.0
+ '@electron/notarize': 2.5.0
+ '@electron/osx-sign': 1.3.3
+ '@electron/rebuild': 4.2.1
+ '@electron/universal': 2.0.3
+ '@malept/flatpak-bundler': 0.4.0
+ '@noble/hashes': 1.8.0
+ '@peculiar/webcrypto': 1.7.2
+ '@types/fs-extra': 9.0.13
+ ajv: 8.20.0
+ asn1js: 3.1.0
+ async-exit-hook: 2.0.1
+ builder-util: 26.16.0
+ builder-util-runtime: 9.7.0
+ chromium-pickle-js: 0.2.0
+ ci-info: 4.3.1
+ debug: 4.4.3
+ dmg-builder: 26.18.0
+ dotenv: 16.6.1
+ dotenv-expand: 11.0.7
+ ejs: 3.1.10
+ electron-publish: 26.18.0
+ fs-extra: 10.1.0
+ hosted-git-info: 4.1.0
+ isbinaryfile: 5.0.7
+ jiti: 2.7.0
+ js-yaml: 4.3.2
+ json5: 2.2.3
+ lazy-val: 1.0.5
+ minimatch: 10.2.6
+ pkijs: 3.4.3
+ plist: 3.1.0
+ proper-lockfile: 4.1.2
+ resedit: 1.7.2
+ semver: 7.7.4
+ tar: 7.5.23
+ temp-file: 3.4.0
+ tiny-async-pool: 1.3.0
+ unzipper: 0.12.5
+ which: 5.0.0
+ transitivePeerDependencies:
+ - supports-color
+
+
@@ -5901,21 +6761,29 @@ snapshots:
+
+
+
+
dependencies:
@@ -5940,7 +6808,7 @@ snapshots:
pg: 8.23.1
react: 19.3.1
react-dom: 19.3.1([email protected])
transitivePeerDependencies:
- '@opentelemetry/api'
@@ -5964,10 +6832,15 @@ snapshots:
+
+ optional: true
+
dependencies:
stream-buffers: 2.2.0
@@ -5980,6 +6853,15 @@ snapshots:
dependencies:
big-integer: 1.6.52
+ dependencies:
+ balanced-match: 1.0.2
+ concat-map: 0.0.1
+
+ dependencies:
+ balanced-match: 1.0.2
+
dependencies:
balanced-match: 4.0.4
@@ -5995,6 +6877,46 @@ snapshots:
base64-js: 1.5.1
ieee754: 1.2.1
+ dependencies:
+ debug: 4.4.3
+ sax: 1.6.1
+ transitivePeerDependencies:
+ - supports-color
+
+ dependencies:
+ '@types/debug': 4.1.13
+ builder-util-runtime: 9.7.0
+ chalk: 4.1.2
+ cross-spawn: 7.0.6
+ debug: 4.4.3
+ fs-extra: 10.1.0
+ http-proxy-agent: 7.0.2
+ https-proxy-agent: 7.0.6
+ js-yaml: 4.3.2
+ sanitize-filename: 1.6.5
+ source-map-support: 0.5.21
+ stat-mode: 1.0.0
+ temp-file: 3.4.0
+ tiny-async-pool: 1.3.0
+ transitivePeerDependencies:
+ - supports-color
+
+
+
+ dependencies:
+ clone-response: 1.0.3
+ get-stream: 5.2.0
+ http-cache-semantics: 4.3.0
+ keyv: 4.5.4
+ lowercase-keys: 2.0.0
+ normalize-url: 6.1.0
+ responselike: 2.0.1
+
dependencies:
moment-timezone: 0.6.6
@@ -6008,12 +6930,23 @@ snapshots:
+ dependencies:
+ ansi-styles: 4.3.0
+ supports-color: 7.2.0
+
dependencies:
regexp-to-ast: 0.5.0
+
+
+
@@ -6022,6 +6955,10 @@ snapshots:
strip-ansi: 6.0.1
wrap-ansi: 7.0.0
+ dependencies:
+ mimic-response: 1.0.1
+
dependencies:
color-name: 1.1.4
@@ -6036,8 +6973,16 @@ snapshots:
+
+
+
+
dependencies:
luxon: 3.7.2
@@ -6097,10 +7042,30 @@ snapshots:
dependencies:
ms: 2.1.3
+ dependencies:
+ mimic-response: 3.1.0
+
+
+ dependencies:
+ es-define-property: 1.0.1
+ es-errors: 1.3.0
+ gopd: 1.2.0
+ optional: true
+
+ dependencies:
+ define-data-property: 1.1.4
+ has-property-descriptors: 1.0.2
+ object-keys: 1.1.1
+ optional: true
+
@@ -6109,8 +7074,25 @@ snapshots:
+ optional: true
+
+ dependencies:
+ minimatch: 3.1.5
+ p-limit: 3.1.0
+
+ dependencies:
+ app-builder-lib: 26.18.0([email protected])
+ builder-util: 26.16.0
+ fs-extra: 10.1.0
+ js-yaml: 4.3.2
+ transitivePeerDependencies:
+ - supports-color
+
dependencies:
domelementtype: 2.3.0
@@ -6129,6 +7111,12 @@ snapshots:
domelementtype: 2.3.0
domhandler: 4.3.1
+ dependencies:
+ dotenv: 16.6.1
+
+
@@ -6151,10 +7139,68 @@ snapshots:
es-errors: 1.3.0
gopd: 1.2.0
+ dependencies:
+ readable-stream: 2.3.8
+
dependencies:
safe-buffer: 5.2.1
+ dependencies:
+ jake: 10.9.4
+
+ dependencies:
+ app-builder-lib: 26.18.0([email protected])
+ builder-util: 26.16.0
+ builder-util-runtime: 9.7.0
+ chalk: 4.1.2
+ ci-info: 4.5.0
+ dmg-builder: 26.18.0
+ fs-extra: 10.1.0
+ lazy-val: 1.0.5
+ simple-update-notifier: 2.0.0
+ yargs: 17.7.2
+ transitivePeerDependencies:
+ - supports-color
+
+ dependencies:
+ '@types/fs-extra': 9.0.13
+ aws4: 1.13.2
+ builder-util: 26.16.0
+ builder-util-runtime: 9.7.0
+ chalk: 4.1.2
+ form-data: 4.0.6
+ fs-extra: 10.1.0
+ lazy-val: 1.0.5
+ mime: 2.6.0
+ transitivePeerDependencies:
+ - supports-color
+
+ dependencies:
+ builder-util-runtime: 9.7.0
+ fs-extra: 10.1.0
+ js-yaml: 4.3.2
+ lazy-val: 1.0.5
+ lodash.escaperegexp: 4.1.2
+ lodash.isequal: 4.5.0
+ semver: 7.7.4
+ tiny-typed-emitter: 2.1.0
+ transitivePeerDependencies:
+ - supports-color
+
+ dependencies:
+ '@electron-internal/extract-zip': 1.0.10
+ '@electron/get': 5.1.0
+ '@types/node': 24.19.4
+ transitivePeerDependencies:
+ - supports-color
+
dependencies:
sax: 1.1.4
@@ -6169,6 +7215,10 @@ snapshots:
+
+
@@ -6188,6 +7238,9 @@ snapshots:
has-tostringtag: 1.0.2
hasown: 2.0.4
+ optional: true
+
optionalDependencies:
'@esbuild/aix-ppc64': 0.25.12
@@ -6248,6 +7301,9 @@ snapshots:
+ optional: true
+
dependencies:
'@types/estree': 1.0.10
@@ -6264,18 +7320,24 @@ snapshots:
+
+
+
dependencies:
pend: 1.2.0
@@ -6284,6 +7346,10 @@ snapshots:
optionalDependencies:
picomatch: 4.0.7
+ dependencies:
+ minimatch: 5.1.9
+
dependencies:
async: 0.2.10
@@ -6303,12 +7369,24 @@ snapshots:
jsonfile: 6.2.1
universalify: 2.0.1
+ dependencies:
+ graceful-fs: 4.2.12
+ jsonfile: 6.2.1
+ universalify: 2.0.1
+
dependencies:
graceful-fs: 4.2.12
jsonfile: 6.2.1
universalify: 2.0.1
+ dependencies:
+ graceful-fs: 4.2.12
+ jsonfile: 4.0.0
+ universalify: 0.1.2
+
dependencies:
at-least-node: 1.0.0
@@ -6341,6 +7419,10 @@ snapshots:
dunder-proto: 1.0.1
es-object-atoms: 1.1.2
+ dependencies:
+ pump: 3.0.4
+
dependencies:
resolve-pkg-maps: 1.0.0
@@ -6351,14 +7433,51 @@ snapshots:
minipass: 7.1.3
path-scurry: 3.0.0
+ dependencies:
+ boolean: 3.2.0
+ es6-error: 4.1.1
+ matcher: 3.0.0
+ roarr: 2.15.4
+ semver: 7.8.6
+ serialize-error: 7.0.1
+ optional: true
+
+ dependencies:
+ define-properties: 1.2.1
+ gopd: 1.2.0
+ optional: true
+
+ dependencies:
+ '@sindresorhus/is': 4.6.0
+ '@szmarczak/http-timer': 4.0.6
+ '@types/cacheable-request': 6.0.3
+ '@types/responselike': 1.0.3
+ cacheable-lookup: 5.0.4
+ cacheable-request: 7.0.4
+ decompress-response: 6.0.0
+ http2-wrapper: 1.0.3
+ lowercase-keys: 2.0.0
+ p-cancelable: 2.1.1
+ responselike: 2.0.1
+
dependencies:
lodash.merge: 4.6.2
+
+ dependencies:
+ es-define-property: 1.0.1
+ optional: true
+
@@ -6377,6 +7496,24 @@ snapshots:
+ dependencies:
+ lru-cache: 6.0.0
+
+
+ dependencies:
+ agent-base: 7.1.4
+ debug: 4.4.3
+ transitivePeerDependencies:
+ - supports-color
+
+ dependencies:
+ quick-lru: 5.1.1
+ resolve-alpn: 1.2.1
+
@@ -6411,27 +7548,62 @@ snapshots:
dependencies:
is-docker: 2.2.1
+
+
+
+
+
+ dependencies:
+ async: 3.2.6
+ filelist: 1.0.6
+ picocolors: 1.1.1
+
+
+ dependencies:
+ argparse: 2.0.1
+
dependencies:
argparse: 3.0.4
+
dependencies:
'@babel/runtime': 7.29.14
ts-algebra: 2.0.0
+
+ optional: true
+
+
+ optionalDependencies:
+ graceful-fs: 4.2.12
+
dependencies:
universalify: 2.0.1
@@ -6451,12 +7623,18 @@ snapshots:
jwa: 2.0.1
safe-buffer: 5.2.1
+ dependencies:
+ json-buffer: 3.0.1
+
+
@@ -6529,14 +7707,24 @@ snapshots:
'@livekit/protocol': 1.54.1
jose: 5.10.0
+
+
+
+ dependencies:
+ yallist: 4.0.0
+
@@ -6545,6 +7733,11 @@ snapshots:
dependencies:
'@jridgewell/sourcemap-codec': 1.6.0
+ dependencies:
+ escape-string-regexp: 4.0.0
+ optional: true
+
@@ -6553,13 +7746,35 @@ snapshots:
dependencies:
mime-db: 1.52.0
+
+
+
+ dependencies:
+ brace-expansion: 5.0.13
+
dependencies:
'@isaacs/nonrecursive-glob-match': 1.1.0
brace-expansion: 5.0.13
+ dependencies:
+ brace-expansion: 1.1.22
+
+ dependencies:
+ brace-expansion: 2.1.8
+
+ dependencies:
+ brace-expansion: 2.1.8
+
@@ -6602,6 +7817,14 @@ snapshots:
transitivePeerDependencies:
- supports-color
+ dependencies:
+ semver: 7.8.6
+
+ dependencies:
+ semver: 7.8.6
+
@@ -6610,19 +7833,43 @@ snapshots:
+ dependencies:
+ env-paths: 2.2.1
+ exponential-backoff: 3.1.3
+ graceful-fs: 4.2.12
+ nopt: 9.0.0
+ proc-log: 6.1.0
+ semver: 7.8.6
+ tar: 7.5.23
+ tinyglobby: 0.2.17
+ undici: 6.29.1
+ which: 6.0.1
+
dependencies:
css-select: 4.3.0
he: 1.2.0
+
+ dependencies:
+ abbrev: 4.0.0
+
+
dependencies:
boolbase: 1.0.0
+ optional: true
+
@@ -6696,6 +7943,12 @@ snapshots:
'@oxc-parser/binding-win32-ia32-msvc': 0.158.0
'@oxc-parser/binding-win32-x64-msvc': 0.158.0
+
+ dependencies:
+ yocto-queue: 0.1.0
+
@@ -6714,6 +7967,8 @@ snapshots:
pako: 1.0.11
tslib: 1.14.1
+
@@ -6847,12 +8102,27 @@ snapshots:
+ dependencies:
+ '@noble/hashes': 1.8.0
+ asn1js: 3.1.0
+ bytestreamjs: 2.0.1
+ pvtsutils: 1.3.6
+ pvutils: 1.2.0
+ tslib: 2.9.1
+
dependencies:
playwright-core: 1.65.1
+ dependencies:
+ '@xmldom/xmldom': 0.8.15
+ base64-js: 1.5.1
+ xmlbuilder: 15.1.1
+
dependencies:
'@xmldom/xmldom': 0.9.12
@@ -6879,17 +8149,34 @@ snapshots:
+
+
+
+ dependencies:
+ err-code: 2.0.3
+ retry: 0.12.0
+
dependencies:
kleur: 3.0.3
sisteransi: 1.0.5
+ dependencies:
+ graceful-fs: 4.2.12
+ retry: 0.12.0
+ signal-exit: 3.0.7
+
dependencies:
end-of-stream: 1.4.5
@@ -6903,6 +8190,8 @@ snapshots:
+
dependencies:
react: 19.3.1
@@ -6918,6 +8207,22 @@ snapshots:
+ dependencies:
+ debug: 4.4.3
+ transitivePeerDependencies:
+ - supports-color
+
+ dependencies:
+ core-util-is: 1.0.3
+ inherits: 2.0.4
+ isarray: 1.0.0
+ process-nextick-args: 2.0.1
+ safe-buffer: 5.1.2
+ string_decoder: 1.1.1
+ util-deprecate: 1.0.2
+
dependencies:
inherits: 2.0.4
@@ -6940,6 +8245,8 @@ snapshots:
+
dependencies:
debug: 4.4.3
@@ -6947,13 +8254,35 @@ snapshots:
transitivePeerDependencies:
- supports-color
+ dependencies:
+ pe-library: 0.4.1
+
+
+ dependencies:
+ lowercase-keys: 2.0.0
+
+
dependencies:
glob: 14.0.6
package-json-from-dist: 1.0.1
+ dependencies:
+ boolean: 3.2.0
+ detect-node: 2.1.0
+ globalthis: 1.0.4
+ json-stringify-safe: 5.0.1
+ semver-compare: 1.0.0
+ sprintf-js: 1.1.3
+ optional: true
+
dependencies:
'@oxc-project/types': 0.156.0
@@ -6987,12 +8316,18 @@ snapshots:
tslib: 2.9.1
optional: true
+
+ dependencies:
+ truncate-utf8-bytes: 1.0.2
+
@@ -7007,6 +8342,15 @@ snapshots:
+ optional: true
+
+
+
+
@@ -7016,6 +8360,11 @@ snapshots:
non-error: 0.1.0
type-fest: 5.10.0
+ dependencies:
+ type-fest: 0.13.1
+ optional: true
+
@@ -7065,6 +8414,10 @@ snapshots:
bplist-parser: 0.3.1
plist: 3.1.1
+ dependencies:
+ semver: 7.8.6
+
@@ -7096,11 +8449,16 @@ snapshots:
+ optional: true
+
dependencies:
'@stablelib/base64': 1.0.1
fast-sha256: 1.3.0
+
@@ -7111,6 +8469,10 @@ snapshots:
is-fullwidth-code-point: 3.0.0
strip-ansi: 6.0.1
+ dependencies:
+ safe-buffer: 5.1.2
+
dependencies:
safe-buffer: 5.2.1
@@ -7127,6 +8489,16 @@ snapshots:
optionalDependencies:
'@types/node': 26.6.6
+ dependencies:
+ debug: 4.4.3
+ transitivePeerDependencies:
+ - supports-color
+
+ dependencies:
+ has-flag: 4.0.0
+
@@ -7137,6 +8509,11 @@ snapshots:
minizlib: 3.1.0
yallist: 5.0.0
+ dependencies:
+ async-exit-hook: 2.0.1
+ fs-extra: 10.1.0
+
@@ -7151,6 +8528,12 @@ snapshots:
dependencies:
readable-stream: 3.6.2
+ dependencies:
+ semver: 5.7.3
+
+
@@ -7166,10 +8549,20 @@ snapshots:
dependencies:
tldts-core: 7.5.4
+ dependencies:
+ tmp: 0.2.7
+
+
+ dependencies:
+ utf8-byte-length: 1.0.5
+
@@ -7199,6 +8592,9 @@ snapshots:
'@turbo/windows-64': 2.11.13
'@turbo/windows-arm64': 2.11.13
+ optional: true
+
dependencies:
tagged-tag: 1.0.0
@@ -7232,19 +8628,35 @@ snapshots:
+
+
+
+ dependencies:
+ bluebird: 3.7.2
+ duplexer2: 0.1.4
+ fs-extra: 11.3.1
+ graceful-fs: 4.2.12
+ node-int64: 0.4.0
+
+
dependencies:
lightningcss: 1.33.0
picomatch: 4.0.7
@@ -7255,12 +8667,13 @@ snapshots:
'@types/node': 26.6.6
esbuild: 0.28.2
fsevents: 2.3.3
+ jiti: 2.7.0
tsx: 4.23.15
dependencies:
'@types/chai': 5.2.3
chai: 6.3.0
es-module-lexer: 2.3.2
expect-type: 1.4.0
@@ -7271,7 +8684,7 @@ snapshots:
tinybench: 6.2.3
tinyexec: 1.3.1
tinyglobby: 0.2.17
why-is-node-running: 3.2.1
optionalDependencies:
'@opentelemetry/api': 1.10.0
@@ -7291,6 +8704,14 @@ snapshots:
+ dependencies:
+ '@peculiar/asn1-schema': 2.11.1
+ '@peculiar/json-schema': 1.1.12
+ '@peculiar/utils': 2.0.3
+ asn1js: 3.1.0
+ tslib: 2.9.1
+
@@ -7310,6 +8731,14 @@ snapshots:
dependencies:
isexe: 2.0.0
+ dependencies:
+ isexe: 3.1.5
+
+ dependencies:
+ isexe: 4.0.0
+
@@ -7345,6 +8774,8 @@ snapshots:
+
@@ -7364,6 +8795,8 @@ snapshots:
buffer-crc32: 0.2.13
fd-slicer: 1.1.0
+
dependencies:
zod: 4.6.7
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index f2b328a8..a5e58eea 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -6,6 +6,9 @@ packages:
# only checks the binary its platform package (an optional dependency) already brings; the two LiveKit packages'
# install scripts are empty (prebuilt binaries, also from platform packages).
ignoredBuiltDependencies:
+ # apps/desktop: Electron's binary is fetched only where the desktop app is built or tested (its electron:install
+ # script); electron-builder brings its own copy for packaging.
+ - electron
- '@livekit/blingfire'
- '@livekit/local-inference'
- esbuild