Skip to content

armgit / mimik

Public Imported from GitHub
0

🎬 A browser extension and desktop app that turns your clicks into step-by-step guides with annotated screenshots πŸ“–

feat(desktop): add capture primitives for displays, screenshots, focused window and input

Luis Ortiz778ebab31bde
diff --git a/AGENTS.md b/AGENTS.md
index 4a62489..8b1d323 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -228,6 +228,32 @@ settings file to keep in sync, and `openAsHidden` pairs with the `wasOpenedAsHid
app in `apps/desktop/dist`. `electron-builder.yml` targets dmg/zip, nsis and AppImage/deb, and
`executableName` must stay set or the binary inherits the scoped package name.
+## Desktop Capture Primitives
+
+`apps/desktop/src/main/capture` holds the four things a desktop capture needs. Three come from
+Electron; only two need anything native, and both are prebuilt npm packages rather than a crate we
+maintain.
+
+| Primitive | Source | Native |
+|---|---|---|
+| Displays, DPI, cursor | Electron `screen` | no |
+| Screenshot of a display | Electron `desktopCapturer` | no |
+| Focused foreign window | `get-windows` | prebuilt |
+| Global clicks and keys | `uiohook-napi` | prebuilt |
+
+Anything richer than these four β€” the accessibility tree in particular β€” needs an addon we build and
+maintain ourselves, and that is a separate task.
+
+**Linux is X11 only.** `uiohook-napi` links `libX11`/`libXtst` and hooks through `XRecord`, with no
+Wayland path; on a Wayland session the hook starts and then silently delivers nothing. `get-windows`
+shells out to `xwininfo`, also X11. Both are gated on `XDG_SESSION_TYPE` and refuse up front with
+`reason: 'unsupported-session'` rather than appearing to work. Linux also needs `xwininfo` and
+`xprop` on `PATH`. macOS and Windows are unaffected.
+
+`pnpm --filter @mimik/desktop check:capture` builds and exercises every primitive, printing `ok`,
+`n/a` for a platform limit, or `FAIL`. Only `FAIL` sets a non-zero exit, so the check is meaningful
+on a machine where half the primitives cannot work.
+
## Export Formats
| Format | Generator | Details |
diff --git a/apps/desktop/electron.vite.config.ts b/apps/desktop/electron.vite.config.ts
index eee23d3..bda5490 100644
--- a/apps/desktop/electron.vite.config.ts
+++ b/apps/desktop/electron.vite.config.ts
@@ -6,7 +6,16 @@ const core = resolve(__dirname, '../../packages/core/src');
export default defineConfig({
main: {
plugins: [externalizeDepsPlugin()],
- build: { outDir: resolve(__dirname, 'out/main'), lib: { entry: resolve(__dirname, 'src/main/index.ts') } },
+ build: {
+ outDir: resolve(__dirname, 'out/main'),
+ rollupOptions: {
+ input: {
+ index: resolve(__dirname, 'src/main/index.ts'),
+ 'check-capture': resolve(__dirname, 'scripts/check-capture.ts'),
+ },
+ output: { entryFileNames: '[name].js' },
+ },
+ },
},
preload: {
plugins: [externalizeDepsPlugin()],
diff --git a/apps/desktop/package.json b/apps/desktop/package.json
index 041511c..032223e 100644
--- a/apps/desktop/package.json
+++ b/apps/desktop/package.json
@@ -8,11 +8,14 @@
"dev": "electron-vite dev",
"build": "electron-vite build",
"pack": "electron-vite build && electron-builder --dir",
- "typecheck": "tsc --noEmit -p tsconfig.json"
+ "typecheck": "tsc --noEmit -p tsconfig.json",
+ "check:capture": "electron-vite build && electron out/main/check-capture.js"
},
"dependencies": {
"electron-updater": "^6.6.2",
- "@mimik/core": "workspace:*"
+ "@mimik/core": "workspace:*",
+ "uiohook-napi": "^1.5.5",
+ "get-windows": "^9.3.0"
},
"devDependencies": {
"electron": "^33.2.1",
diff --git a/apps/desktop/scripts/check-capture.ts b/apps/desktop/scripts/check-capture.ts
new file mode 100644
index 0000000..0460add
--- /dev/null
+++ b/apps/desktop/scripts/check-capture.ts
@@ -0,0 +1,56 @@
+import { app } from 'electron';
+import { captureCursorDisplay, cursorPoint, focusedWindow, InputHook, listDisplays } from '../src/main/capture';
+
+type Verdict = 'ok' | 'fail' | 'n/a';
+
+function line(name: string, verdict: Verdict, detail: string): void {
+ const tag = verdict === 'ok' ? 'ok ' : verdict === 'n/a' ? 'n/a ' : 'FAIL';
+ process.stdout.write(`${tag} ${name.padEnd(18)} ${detail}\n`);
+}
+
+app.disableHardwareAcceleration();
+
+app.whenReady().then(async () => {
+ let failures = 0;
+
+ const displays = listDisplays();
+ const displaysOk = displays.length > 0 && displays.every((d) => d.scaleFactor > 0 && d.bounds.width > 0);
+ if (!displaysOk) failures++;
+ line('displays', displaysOk ? 'ok' : 'fail', displays.map((d) => `${d.bounds.width}x${d.bounds.height}@${d.scaleFactor}x`).join(', '));
+
+ const point = cursorPoint();
+ line('cursor', Number.isFinite(point.x) ? 'ok' : 'fail', `${point.x},${point.y}`);
+
+ try {
+ const shot = await captureCursorDisplay();
+ const ok = shot.png.length > 0 && shot.width > 0;
+ if (!ok) failures++;
+ line('screenshot', ok ? 'ok' : 'fail', `${shot.width}x${shot.height}, ${(shot.png.length / 1024).toFixed(0)} KB png`);
+ } catch (error) {
+ failures++;
+ line('screenshot', 'fail', error instanceof Error ? error.message : String(error));
+ }
+
+ const win = await focusedWindow();
+ if (!win.ok && win.reason !== 'unsupported-session') failures++;
+ line(
+ 'focused window',
+ win.ok ? 'ok' : win.reason === 'unsupported-session' ? 'n/a' : 'fail',
+ win.ok ? `${win.window.app.name} β€” ${win.window.title ?? '(untitled)'}` : `${win.reason}: ${win.detail}`,
+ );
+
+ const hook = new InputHook();
+ const started = await hook.start(() => {});
+ if (!started.ok && started.reason !== 'unsupported-session') failures++;
+ line(
+ 'input hook',
+ started.ok ? 'ok' : started.reason === 'unsupported-session' ? 'n/a' : 'fail',
+ started.ok ? 'started' : `${started.reason}: ${started.detail}`,
+ );
+ hook.stop();
+
+ process.stdout.write(
+ `\n${failures === 0 ? 'no failures β€” n/a lines are platform limits, not bugs' : `${failures} failure(s)`}\n`,
+ );
+ app.exit(failures === 0 ? 0 : 1);
+});
diff --git a/apps/desktop/src/main/capture/displays.ts b/apps/desktop/src/main/capture/displays.ts
new file mode 100644
index 0000000..ae05e7e
--- /dev/null
+++ b/apps/desktop/src/main/capture/displays.ts
@@ -0,0 +1,29 @@
+import { screen } from 'electron';
+
+export interface DisplayInfo {
+ id: number;
+ bounds: { x: number; y: number; width: number; height: number };
+ scaleFactor: number;
+ rotation: number;
+ primary: boolean;
+}
+
+export function listDisplays(): DisplayInfo[] {
+ const primaryId = screen.getPrimaryDisplay().id;
+ return screen.getAllDisplays().map((d) => ({
+ id: d.id,
+ bounds: d.bounds,
+ scaleFactor: d.scaleFactor,
+ rotation: d.rotation,
+ primary: d.id === primaryId,
+ }));
+}
+
+export function displayAt(point: { x: number; y: number }): DisplayInfo | null {
+ const match = screen.getDisplayNearestPoint(point);
+ return listDisplays().find((d) => d.id === match.id) ?? null;
+}
+
+export function cursorPoint(): { x: number; y: number } {
+ return screen.getCursorScreenPoint();
+}
diff --git a/apps/desktop/src/main/capture/focused-window.ts b/apps/desktop/src/main/capture/focused-window.ts
new file mode 100644
index 0000000..ffc5bf6
--- /dev/null
+++ b/apps/desktop/src/main/capture/focused-window.ts
@@ -0,0 +1,43 @@
+export interface FocusedWindow {
+ title: string | null;
+ app: { name: string; id?: string };
+ bounds: { x: number; y: number; width: number; height: number } | null;
+}
+
+export type FocusedWindowResult =
+ | { ok: true; window: FocusedWindow }
+ | { ok: false; reason: 'unsupported-session' | 'missing-tooling' | 'permission' | 'unknown'; detail: string };
+
+function classify(message: string): Exclude<FocusedWindowResult, { ok: true }>['reason'] {
+ if (/xwininfo|xprop|ENOENT/i.test(message)) return 'missing-tooling';
+ if (/permission|not authorized|denied/i.test(message)) return 'permission';
+ if (process.platform === 'linux' && process.env.XDG_SESSION_TYPE === 'wayland') return 'unsupported-session';
+ return 'unknown';
+}
+
+export async function focusedWindow(): Promise<FocusedWindowResult> {
+ if (process.platform === 'linux' && process.env.XDG_SESSION_TYPE === 'wayland') {
+ return {
+ ok: false,
+ reason: 'unsupported-session',
+ detail: 'Active-window lookup needs an X11 session; Wayland is not supported yet.',
+ };
+ }
+
+ try {
+ const { activeWindow } = await import('get-windows');
+ const found = await activeWindow();
+ if (!found) return { ok: false, reason: 'unknown', detail: 'no active window reported' };
+ return {
+ ok: true,
+ window: {
+ title: found.title || null,
+ app: { name: found.owner.name, id: 'bundleId' in found.owner ? found.owner.bundleId : found.owner.path },
+ bounds: found.bounds ?? null,
+ },
+ };
+ } catch (error) {
+ const detail = error instanceof Error ? error.message : String(error);
+ return { ok: false, reason: classify(detail), detail };
+ }
+}
diff --git a/apps/desktop/src/main/capture/index.ts b/apps/desktop/src/main/capture/index.ts
new file mode 100644
index 0000000..289584a
--- /dev/null
+++ b/apps/desktop/src/main/capture/index.ts
@@ -0,0 +1,4 @@
+export { cursorPoint, type DisplayInfo, displayAt, listDisplays } from './displays';
+export { type FocusedWindow, type FocusedWindowResult, focusedWindow } from './focused-window';
+export { type InputAction, InputHook, type InputHookStart, type KeyAction, type PointerAction } from './input-hook';
+export { type Capture, captureCursorDisplay, captureDisplay } from './screenshot';
diff --git a/apps/desktop/src/main/capture/input-hook.ts b/apps/desktop/src/main/capture/input-hook.ts
new file mode 100644
index 0000000..703e426
--- /dev/null
+++ b/apps/desktop/src/main/capture/input-hook.ts
@@ -0,0 +1,92 @@
+export interface PointerAction {
+ kind: 'click';
+ button: number;
+ x: number;
+ y: number;
+ clicks: number;
+ at: number;
+}
+
+export interface KeyAction {
+ kind: 'keydown';
+ keycode: number;
+ shift: boolean;
+ alt: boolean;
+ ctrl: boolean;
+ meta: boolean;
+ at: number;
+}
+
+export type InputAction = PointerAction | KeyAction;
+
+export type InputHookStart =
+ | { ok: true }
+ | { ok: false; reason: 'unsupported-session' | 'unavailable'; detail: string };
+
+export class InputHook {
+ private hook: typeof import('uiohook-napi').uIOhook | null = null;
+ private running = false;
+
+ static unsupportedSession(): boolean {
+ return process.platform === 'linux' && process.env.XDG_SESSION_TYPE === 'wayland';
+ }
+
+ async start(onAction: (action: InputAction) => void): Promise<InputHookStart> {
+ if (this.running) return { ok: true };
+
+ if (InputHook.unsupportedSession()) {
+ return {
+ ok: false,
+ reason: 'unsupported-session',
+ detail: 'Global input capture uses X11 XRecord; a Wayland session delivers no events.',
+ };
+ }
+
+ try {
+ const { uIOhook } = await import('uiohook-napi');
+ this.hook = uIOhook;
+
+ uIOhook.on('click', (event) => {
+ onAction({
+ kind: 'click',
+ button: Number(event.button ?? 1),
+ x: event.x,
+ y: event.y,
+ clicks: event.clicks ?? 1,
+ at: Date.now(),
+ });
+ });
+
+ uIOhook.on('keydown', (event) => {
+ onAction({
+ kind: 'keydown',
+ keycode: event.keycode,
+ shift: event.shiftKey,
+ alt: event.altKey,
+ ctrl: event.ctrlKey,
+ meta: event.metaKey,
+ at: Date.now(),
+ });
+ });
+
+ uIOhook.start();
+ this.running = true;
+ return { ok: true };
+ } catch (error) {
+ this.hook = null;
+ return { ok: false, reason: 'unavailable', detail: error instanceof Error ? error.message : String(error) };
+ }
+ }
+
+ stop(): void {
+ if (!this.running || !this.hook) return;
+ this.hook.removeAllListeners();
+ this.hook.stop();
+ this.running = false;
+ this.hook = null;
+ }
+
+ get isRunning(): boolean {
+ return this.running;
+ }
+}
diff --git a/apps/desktop/src/main/capture/screenshot.ts b/apps/desktop/src/main/capture/screenshot.ts
new file mode 100644
index 0000000..1d5549f
--- /dev/null
+++ b/apps/desktop/src/main/capture/screenshot.ts
@@ -0,0 +1,34 @@
+import { desktopCapturer, screen } from 'electron';
+
+export interface Capture {
+ png: Buffer;
+ width: number;
+ height: number;
+ scaleFactor: number;
+ displayId: number;
+}
+
+export async function captureDisplay(displayId: number): Promise<Capture> {
+ const display = screen.getAllDisplays().find((d) => d.id === displayId);
+ if (!display) throw new Error(`no display with id ${displayId}`);
+
+ const { width, height } = display.size;
+ const scaleFactor = display.scaleFactor;
+ const sources = await desktopCapturer.getSources({
+ types: ['screen'],
+ thumbnailSize: { width: Math.round(width * scaleFactor), height: Math.round(height * scaleFactor) },
+ fetchWindowIcons: false,
+ });
+
+ const source = sources.find((s) => s.display_id === String(displayId)) ?? sources[0];
+ if (!source) throw new Error('no screen sources available');
+ if (source.thumbnail.isEmpty()) throw new Error('screen capture returned an empty frame');
+
+ const size = source.thumbnail.getSize();
+ return { png: source.thumbnail.toPNG(), width: size.width, height: size.height, scaleFactor, displayId };
+}
+
+export async function captureCursorDisplay(): Promise<Capture> {
+ const point = screen.getCursorScreenPoint();
+ return captureDisplay(screen.getDisplayNearestPoint(point).id);
+}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 8d14974..2f37981 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -155,6 +155,12 @@ importers:
electron-updater:
specifier: ^6.6.2
version: 6.8.9
+ get-windows:
+ specifier: ^9.3.0
+ version: 9.3.0([email protected])
+ uiohook-napi:
+ specifier: ^1.5.5
+ version: 1.5.5
devDependencies:
electron:
specifier: ^33.2.1
@@ -982,6 +988,10 @@ packages:
resolution: {integrity: sha512-9QOtNffcOF/c1seMCDnjckb3R9WHcG34tky+FHpNKKCW0wc/scYLwMtO+ptyGUfMW0/b/n4qRiALlaFHc9Oj7Q==}
engines: {node: '>= 10.0.0'}
+ '@mapbox/[email protected]':
+ resolution: {integrity: sha512-Yhlar6v9WQgUp/He7BdgzOz8lqMQ8sU+jkCq7Wx8Myc5YFJLbEe7lgui/V7G1qB1DJykHSGwreceSaD60Y0PUQ==}
+ hasBin: true
+
'@napi-rs/[email protected]':
resolution: {integrity: sha512-oTXEIha4SsuXdTA4Iyskj0kpdx2yVXdhd75c2v3xGrHFfVMsbhTPZU/nMPL4sWKo4pBHm3aucLaqGlF696dTyQ==}
engines: {node: ^22.20 || ^24.12 || >=25}
@@ -1004,10 +1014,18 @@ packages:
resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==}
engines: {node: '>= 8'}
+ '@npmcli/[email protected]':
+ resolution: {integrity: sha512-OrcNPXdpSl9UX7qPVRWbmWMCSXrcDa2M9DvrbOTj7ao1S4PlqVFYv9/yLKMkrJKZ/V5A/kDBC690or307i26Og==}
+ engines: {node: ^16.14.0 || >=18.0.0}
+
'@npmcli/[email protected]':
resolution: {integrity: sha512-yOJKRvohFOaLqipNtwYB9WugyZKhC/DZC4VYPmpaCzDBrA8YpK3qHZ8/HGscMnE4GqbkLNuVcCnxkeQEdGt6LQ==}
engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}
+ '@npmcli/[email protected]':
+ resolution: {integrity: sha512-q9CRWjpHCMIh5sVyefoD1cA7PkvILqCZsnSOEUUivORLjxCO/Irmue2DprETiNgEqktDBZaM1Bi+jrarx1XdCg==}
+ engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}
+
'@npmcli/[email protected]':
resolution: {integrity: sha512-mJd2Z5TjYWq/ttPLLGqArdtnC74J6bOzg4rMDnN+p1xTacZ2yPRCk2y0oSWQtygLR9YVQXgOcONrwtnk3JupxQ==}
engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}
@@ -2298,6 +2316,10 @@ packages:
resolution: {integrity: sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==}
+ resolution: {integrity: sha512-6/mh1E2u2YgEsCHdY0Yx5oW+61gZU+1vXaoiHHrpKeuRNNgFvS+/jrwHiQhB5apAf5oB7UB7E19ol2R2LKH8hQ==}
+ engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}
+
resolution: {integrity: sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==}
engines: {node: '>=0.4.0'}
@@ -2389,6 +2411,11 @@ packages:
resolution: {integrity: sha512-+25nxyyznAXF7Nef3y0EbBeqmGZgeN/BxHX29Rs39djAfaFalmQ89SE6CWyDCHzGL0yt/ycBtNOmGTW0FyGWNw==}
engines: {node: '>= 10'}
+ resolution: {integrity: sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw==}
+ engines: {node: '>=10'}
+ deprecated: This package is no longer supported.
+
resolution: {integrity: sha512-QZW4EDmGwlYur0Yyf/b2uGucHQMa8aFUP7eu9ddR73vvhFyt4V0Vl3QHPcTNJ8l6qYOBdxgXdnBXQrHilfRQBg==}
engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}
@@ -2560,6 +2587,10 @@ packages:
resolution: {integrity: sha512-/+Emcj9DAXxX4cwlLmRI9c166RuL3w30zp4R7Joiv2cQTtTtA+jeuCAjH3ZlGnYS3tKENSrKhAzVVP9GVyzeYQ==}
engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}
+ resolution: {integrity: sha512-B+L5iIa9mgcjLbliir2th36yEwPftrzteHYujzsx3dFP/31GCHcIeS8f5MGd80odLOjaOvSpU3EEAmRQptkxLQ==}
+ engines: {node: ^16.14.0 || >=18.0.0}
+
resolution: {integrity: sha512-2/kNscPhpcxrOigMZzbiWF7dz8ilhb/nIHU3EyZiXWXpeq/au8qJ8VhdftMkty3n7Gj6HIGalQG8oiBNB3AJgA==}
engines: {node: '>=10.6.0'}
@@ -3217,6 +3248,10 @@ packages:
resolution: {integrity: sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==}
engines: {node: '>= 8'}
+ resolution: {integrity: sha512-XUBA9XClHbnJWSfBzjkm6RvPsyg3sryZt06BEQoXcF7EK/xpGaQYJgQKDJSUH5SGZ76Y7pFx1QBnXz09rU5Fbw==}
+ engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}
+
resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==}
@@ -3237,6 +3272,11 @@ packages:
resolution: {integrity: sha512-rci1g6U0rdTg6bAaBboP7XdRu01dzTAaKXxFf+PUqGuCv6Xu7o8NZdY1D5MvKGIjb6EdS1g3VlXOgksir1uGkg==}
hasBin: true
+ resolution: {integrity: sha512-+5J6MS/5XksCuXq++uFRsnUd7Ovu1XenbeuIuNRJxYWjgQbPuFhT14lAvsWfqfAmnwluf1OwMjz39HjfLPci0Q==}
+ engines: {node: '>=10'}
+ deprecated: This package is no longer supported.
+
resolution: {integrity: sha512-f9m+BEN5jkg6a0fZjleidjN51VE1X+mPFQ2DJ0uv1V39oCLCbsGe6yjbBnp7eK7z/+GAon99a3nHuqbuuthyPg==}
engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}
@@ -3273,6 +3313,10 @@ packages:
resolution: {integrity: sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==}
engines: {node: '>=8'}
+ resolution: {integrity: sha512-DrOfQSmIcsFax28FfSUjbLTfeOkAG7yeh6NCb/9zzRkDuClXaqYqHuQBPUqcqd1uYS70ygYERSooacMAwvbyVw==}
+ engines: {node: '>=18.18'}
+
resolution: {integrity: sha512-xdr6AdrfGBcfzncONUOlXMBuc5wJDtOueE3c5rdG0oNgtINLD+f2iFZltrBRZYzACRbKr+mSVU/x98zv2u3jmw==}
@@ -3593,6 +3637,10 @@ packages:
resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==}
+ resolution: {integrity: sha512-6B3tLtFqtQS4ekarvLVMZ+X+VlvQekbe4taUkf/rhVO3d/h0M2rfARm/pXLcPEsjjMsFgrFgSrhQIxcSVrBz8w==}
+ engines: {node: '>=18'}
+
resolution: {integrity: sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==}
engines: {node: '>=0.10.0'}
@@ -3906,6 +3954,10 @@ packages:
resolution: {integrity: sha512-E3ZJh4J3S9KfwdjZhe2afj6R9lGIN5Pher1pF39UGrXRqq/VDaGVIGN13BjHd2u8B61hArAGOnso7nBOouW3TQ==}
+ resolution: {integrity: sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==}
+ engines: {node: '>=8'}
+
resolution: {integrity: sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==}
engines: {node: '>=10'}
@@ -3917,6 +3969,10 @@ packages:
resolution: {integrity: sha512-NgOPbRiaQM10DYXvN3/hhGVI2M5MtITFryzBGxHM5p4wnFxsVCbxkrBrDsk+EZ5OB4jEOT7AjDxtdF+KVEFT7w==}
engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}
+ resolution: {integrity: sha512-cKTUFc/rbKUd/9meOvgrpJ2WrNzymt6jfRDdwg5UCnVzv9dTpEj9JS5m3wtziXVCjluIXyL8pcaukYqezIzZQA==}
+ engines: {node: ^16.14.0 || >=18.0.0}
+
resolution: {integrity: sha512-DHnZAD4phTbZ+qnJdjoNEVU1NecYoSdbOOoVmTDH46AuxDkEVh3MxTVpXq10GtcTC6mndN9dkv1rNfpjRcLnOw==}
@@ -4007,10 +4063,18 @@ packages:
resolution: {integrity: sha512-6T6lH0H8OG9kITm/Jm6tdooIbogG9e0tLgpY6mphXSm/A9u8Nq1ryBG+Qspiub9LjWlBPsPS3tWQ/Botq4FdxA==}
engines: {node: '>= 8'}
+ resolution: {integrity: sha512-D7V8PO9oaz7PWGLbCACuI1qEOsq7UKfLotx/C0Aet43fCUB/wfQ7DYeq2oR/svFJGYDHPr38SHATeaj/ZoKHKw==}
+ engines: {node: '>=16 || 14 >=14.17'}
+
resolution: {integrity: sha512-LT49Zi2/WMROHYoqGgdlQIZh8mLPZmOrN2NdJjMXxYe4nkN6FUyuPuOAOedNJDrx0IRGg9+4guZewtp8hE6TxA==}
engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}
+ resolution: {integrity: sha512-2N8elDQAtSnFV0Dk7gt15KHsS0Fyz6CbYZ360h0WTYV1Ty46li3rAXVOQj1THMNLdmrD9Vt5pBPtWtVkpwGBqg==}
+ engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}
+
resolution: {integrity: sha512-TbqTz9cUwWyHS2Dy89P3ocAGUGxKjjLuR9z8w4WUTGAVgEj17/4nhgo2Du56i0Fm3Pm30g4iA8Lcqctc76jCzA==}
engines: {node: '>= 8'}
@@ -4082,16 +4146,38 @@ packages:
resolution: {integrity: sha512-ibPK3iA+vaY1eEjESkQkM0BbCqFOaZMiXRTtdB0u7b4djtY6JnsjvPdUHVMg6xQt3B8fpTTWHI9A+ADjM9frzg==}
+ resolution: {integrity: sha512-VijLXbi3UACN69I0JVXJsX4tjACjNoQDgv2gTF6sx2wWEi8tkSg2eX8p5gSIFi8z2+DL3oHmY6OyKce38SDolg==}
+ engines: {node: ^18 || ^20 || >= 21}
+
resolution: {integrity: sha512-2xP/IGGMmmSQpI1+O/k72jF/ykvZ89JeuKX3TLJAYPDVLUalrshrLHkeVcCCZqG/eEa635cr8IBYzgnDvM2O8Q==}
resolution: {integrity: sha512-g9yhqoedzIUm0nTnTqAQvueMPVOuIY16bqgAJJC8XOOubYFNwz6IER9qs0Gq2Xd0+CecCKFjtdDTMA4u4xG06Q==}
+ resolution: {integrity: sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==}
+ engines: {node: 4.x || >=6.0.0}
+ peerDependencies:
+ encoding: ^0.1.0
+ peerDependenciesMeta:
+ encoding:
+ optional: true
+
resolution: {integrity: sha512-LarFH0+6VfriEhqMMcLX2F7SwSXeWwnEAJEsYm5QKWchiVYVvJyV9v7UDvUv+w5HO23ZpQTXDv/GxdDdMyOuoQ==}
engines: {node: '>= 6.13.0'}
+ resolution: {integrity: sha512-LA4ZjwlnUblHVgq0oBF3Jl/6h/Nvs5fzBLwdEF4nuxnFdsfajde4WfxtJr3CaiH+F6ewcIB/q4jQ4UzPyid+CQ==}
+ hasBin: true
+
+ resolution: {integrity: sha512-Pp3nFHBThHzVtNY7U6JfPjvT/DTE8+o/4xKsLQtBoU+j2HLsGlhcfzflAoUreaJbNmYnX+LlLi0qjV8kpyO6xQ==}
+ engines: {node: ^16.14.0 || >=18.0.0}
+ hasBin: true
+
resolution: {integrity: sha512-OQkWKbjQKbGkMf/xqI1jjy3oCTgMKJac58G2+bjZb3fza6gW2YrCSdMQYaoTb70crvE//Gngr4f0AgVHmqHvBQ==}
engines: {node: ^12.13 || ^14.13 || >=16}
@@ -4103,11 +4189,21 @@ packages:
resolution: {integrity: sha512-1h5gKZCF+pO/o3Iqt5Jp7wc9rH3eJJ0+nh/CIoiRwjRxde/hAHyLPXYN4V3CqKAbiZPSeJFSWHmJsbkicta0Eg==}
+ resolution: {integrity: sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==}
+ engines: {node: '>=6'}
+ hasBin: true
+
resolution: {integrity: sha512-ZwLpbTgdhuZUnZzjd7nb1ZV+4DoiC6/sfiVKok72ym/4Tlf+DFdlHYmT2JPmcNNWV6Pi3SDf1kT+A4r9RTuT9g==}
engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}
hasBin: true
+ resolution: {integrity: sha512-taM24ViiimT/XntxbPyJQzCG+p4EKOpgD3mxFwW38mGjVUrfERQOeY4EDHjdnptttfHuHQXFx+lTP08Q+mLa/w==}
+ engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}
+ hasBin: true
+
resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==}
engines: {node: '>=0.10.0'}
@@ -4116,6 +4212,10 @@ packages:
resolution: {integrity: sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==}
engines: {node: '>=10'}
+ resolution: {integrity: sha512-AqZtDUWOMKs1G/8lwylVjrdYgqA4d9nu8hc+0gzRxlDb1I10+FHBGMXs6aiQHFdCUUlqH99MUMuLfzWDNDtfxw==}
+ deprecated: This package is no longer supported.
+
resolution: {integrity: sha512-/vBvz5Jfr9dT/aFWd0FIRf+T/Q2WBsLENygUaFUqstqsycmZAP/t5BvFJTK0viFmSUxiUKTUplWy5vt+rvKIxg==}
engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}
@@ -4298,6 +4398,10 @@ packages:
resolution: {integrity: sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==}
engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0}
+ resolution: {integrity: sha512-g8+OnU/L2v+wyiVK+D5fA34J7EH8jZ8DDlvwhRCMxmMj7UCBvxiO1mGeN+36JXIKF4zevU4kRBd8lVgG9vLelA==}
+ engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}
+
resolution: {integrity: sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==}
@@ -4653,6 +4757,10 @@ packages:
resolution: {integrity: sha512-Fgl0YPZ902wEsAyiQ+idGd1A7rSFx/ayC1CQVMw5P+EQx2V0SgpGtf6OKFhVjPflPUl9YMmEOnmfjCdMUsygww==}
engines: {node: '>= 10'}
+ resolution: {integrity: sha512-HehCEsotFqbPW9sJ8WVYB6UbmIMv7kUUORIF2Nncq4VQvBfNBLibW9YZR5dlYCSUhwcD628pRllm7n+E+YTzJw==}
+ engines: {node: '>= 14'}
+
resolution: {integrity: sha512-e0VyvkVTwVYViNovRkZ9aodhxVlyoMn7eJhVUPxZ+eK9P/7CBkxvvsBOHqFPEH416726W8tLXXXjKwqgTErrCQ==}
engines: {node: '>= 10.0.0', npm: '>= 3.0.0'}
@@ -4688,6 +4796,10 @@ packages:
resolution: {integrity: sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==}
+ resolution: {integrity: sha512-MGrFH9Z4NP9Iyhqn16sDtBpRRNJ0Y2hNa6D65h736fVSaPCHr4DM4sWUNvVaSuC+0OBGhwsrydQwmgfg5LncqQ==}
+ engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}
+
resolution: {integrity: sha512-o57Wcn66jMQvfHG1FlYbWeZWW/dHZhJXjpIcTfXldXEk5nz5lStPo3mK0OJQfGR3RbZUlbISexbljkJzuEj/8Q==}
engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}
@@ -4844,6 +4956,9 @@ packages:
resolution: {integrity: sha512-LktZQb3IeoUWB9lqR5EWTHgW/VTITCXg4D21M+lvybRVdylLrRMnqaIONLVb5mav8vM19m44HIcGq4qASeu2Qw==}
engines: {node: '>=16'}
+ resolution: {integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==}
+
resolution: {integrity: sha512-bLVMLPtstlZ4iMQHpFHTR7GAGj2jxi8Dg0s2h2MafAE4uSWF98FC/3MomU51iQAMf8/qDUbKWf5GxuvvVcXEhw==}
engines: {node: '>=20'}
@@ -4888,6 +5003,10 @@ packages:
resolution: {integrity: sha512-u3xV3X7uzvi5b1MncmZo3i2Aw222Zk1keqLA1YkHldREkAhAqi65wuPfe7lHx8H/Wzy+8CE7S7uS3jekIM5s8g==}
engines: {node: '>=8'}
+ resolution: {integrity: sha512-oSlTdnECw2GBfsJPTbBQBeE4v/EXP0EZmX6BJq5nzH/JgFaBE8JpFwEA/kLhiEP7HxQw28FViWiYgdIZzWuuJQ==}
+ engines: {node: '>= 16'}
+
resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==}
@@ -4906,10 +5025,18 @@ packages:
resolution: {integrity: sha512-ODWHtkkdx3IAR+veKxFV+VBkUMcN+FaqzUUd7IZzt+0zhDZFPFxhlqwPF3YQvMHx1TD0tdgYl+kuPnJ8E6ql7A==}
engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}
+ resolution: {integrity: sha512-afXhuC55wkAmZ0P18QsVE6kp8JaxrEokN2HGIoIVv2ijHQd419H0+6EigAFcIzXeMIkcIkNBpB3L/DXB3cTS/g==}
+ engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}
+
resolution: {integrity: sha512-8EyMynh679x/0gqE9fT9oilG+qEt+ibFyqjuVTsZn1+CMxH+XLlpvr2UZx4nVcCwTpx81nICr2JQFkM+HPLq4w==}
engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}
+ resolution: {integrity: sha512-WrcA6AyEfqDX5bWige/4NQfPZMtASNVxdmWR76WESYQVAACSgWcR6e9i0mofqqBxYFtL4oAxPIptY73/0YE1DQ==}
+ engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}
+
resolution: {integrity: sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==}
engines: {node: '>= 4.0.0'}
@@ -5131,6 +5258,9 @@ packages:
resolution: {integrity: sha512-c5s35LgVa5tFaHhrZDnr3FpQpjj1BB+RXhLTYUxGqBVN460HkbM8TBtEqdXWbpTKfzwCcjAZVF7zXCYSKtcp9g==}
+ resolution: {integrity: sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==}
+
resolution: {integrity: sha512-BMhLD/Sw+GbJC21C/UgyaZX41nPt8bUTg+jWyDeg7e7YN4xOM05YPSIXceACnXVtqyEw/LMClUQMtMZ+PGGpqQ==}
engines: {node: '>=20'}
@@ -5150,6 +5280,9 @@ packages:
resolution: {integrity: sha512-1to4zXBxmXHV3IiSSEInrreIlu02vUOvrhxJJH5vcxYTBDAx51cqZiKdyTxlecdKNSjj8EcxGBxNf6Vg+945gw==}
engines: {node: ^20.19.0 || ^22.12.0 || >=24.0.0}
+ resolution: {integrity: sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==}
+
resolution: {integrity: sha512-VGkKJ564kzt6Ms1dbgPP/yuIoQCrsFAnRbptpC5wOEsDaNsbCB2bnfnaA8i/vRs5tjUSEOtIuvl9/MyVsvQZCg==}
@@ -5165,6 +5298,11 @@ packages:
engines: {node: '>= 8'}
hasBin: true
+ resolution: {integrity: sha512-GlaYyEb07DPxYCKhKzplCWBJtvxZcZMrL+4UkrTSJHHPyZU4mYYTv3qaOe77H7EODLSSopAUFAc6W8U4yqvscg==}
+ engines: {node: ^16.13.0 || >=18.0.0}
+ hasBin: true
+
resolution: {integrity: sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==}
engines: {node: '>=8'}
@@ -5953,6 +6091,22 @@ snapshots:
transitivePeerDependencies:
- supports-color
+ dependencies:
+ detect-libc: 2.1.2
+ https-proxy-agent: 5.0.1
+ make-dir: 3.1.0
+ node-fetch: 2.7.0([email protected])
+ nopt: 5.0.0
+ npmlog: 5.0.1
+ rimraf: 3.0.2
+ semver: 7.7.4
+ tar: 6.2.1
+ transitivePeerDependencies:
+ - encoding
+ - supports-color
+ optional: true
+
'@napi-rs/[email protected]':
optional: true
@@ -5975,11 +6129,27 @@ snapshots:
'@nodelib/fs.scandir': 2.1.5
fastq: 1.20.1
+ '@npmcli/[email protected]':
+ dependencies:
+ agent-base: 7.1.4
+ http-proxy-agent: 7.0.2
+ https-proxy-agent: 7.0.6
+ lru-cache: 10.4.3
+ socks-proxy-agent: 8.0.5
+ transitivePeerDependencies:
+ - supports-color
+ optional: true
+
'@npmcli/[email protected]':
dependencies:
'@gar/promisify': 1.1.3
semver: 7.7.4
+ '@npmcli/[email protected]':
+ dependencies:
+ semver: 7.7.4
+ optional: true
+
'@npmcli/[email protected]':
dependencies:
mkdirp: 1.0.4
@@ -7220,6 +7390,9 @@ snapshots:
+ optional: true
+
@@ -7360,6 +7533,12 @@ snapshots:
tar-stream: 2.2.0
zip-stream: 4.1.1
+ dependencies:
+ delegates: 1.0.0
+ readable-stream: 3.6.2
+ optional: true
+
dependencies:
delegates: 1.0.0
@@ -7570,6 +7749,22 @@ snapshots:
transitivePeerDependencies:
- bluebird
+ dependencies:
+ '@npmcli/fs': 3.1.1
+ fs-minipass: 3.0.3
+ glob: 10.5.0
+ lru-cache: 10.4.3
+ minipass: 7.1.3
+ minipass-collect: 2.0.1
+ minipass-flush: 1.0.7
+ minipass-pipeline: 1.2.4
+ p-map: 4.0.0
+ ssri: 10.0.6
+ tar: 6.2.1
+ unique-filename: 3.0.0
+ optional: true
+
@@ -8329,6 +8524,11 @@ snapshots:
dependencies:
minipass: 3.3.6
+ dependencies:
+ minipass: 7.1.3
+ optional: true
+
@@ -8348,6 +8548,19 @@ snapshots:
which: 1.2.4
winreg: 0.0.12
+ dependencies:
+ aproba: 2.1.0
+ color-support: 1.1.3
+ console-control-strings: 1.1.0
+ has-unicode: 2.0.1
+ object-assign: 4.1.1
+ signal-exit: 3.0.7
+ string-width: 4.2.3
+ strip-ansi: 6.0.1
+ wide-align: 1.1.5
+ optional: true
+
dependencies:
aproba: 2.1.0
@@ -8391,6 +8604,15 @@ snapshots:
dependencies:
pump: 3.0.4
+ optionalDependencies:
+ '@mapbox/node-pre-gyp': 1.0.11([email protected])
+ node-addon-api: 8.9.2
+ node-gyp: 10.3.1
+ transitivePeerDependencies:
+ - encoding
+ - supports-color
+
@@ -8705,6 +8927,9 @@ snapshots:
+ optional: true
+
@@ -9016,6 +9241,11 @@ snapshots:
'@babel/types': 7.29.0
source-map-js: 1.2.1
+ dependencies:
+ semver: 6.3.1
+ optional: true
+
dependencies:
semver: 7.7.4
@@ -9044,6 +9274,24 @@ snapshots:
- bluebird
- supports-color
+ dependencies:
+ '@npmcli/agent': 2.2.2
+ cacache: 18.0.4
+ http-cache-semantics: 4.2.0
+ is-lambda: 1.0.1
+ minipass: 7.1.3
+ minipass-fetch: 3.0.5
+ minipass-flush: 1.0.7
+ minipass-pipeline: 1.2.4
+ negotiator: 0.6.4
+ proc-log: 4.2.0
+ promise-retry: 2.0.1
+ ssri: 10.0.6
+ transitivePeerDependencies:
+ - supports-color
+ optional: true
+
@@ -9113,6 +9361,11 @@ snapshots:
dependencies:
minipass: 3.3.6
+ dependencies:
+ minipass: 7.1.3
+ optional: true
+
dependencies:
minipass: 3.3.6
@@ -9121,6 +9374,15 @@ snapshots:
optionalDependencies:
encoding: 0.1.13
+ dependencies:
+ minipass: 7.1.3
+ minipass-sized: 1.0.3
+ minizlib: 2.1.2
+ optionalDependencies:
+ encoding: 0.1.13
+ optional: true
+
dependencies:
minipass: 3.3.6
@@ -9183,14 +9445,42 @@ snapshots:
optional: true
+ optional: true
+
dependencies:
semver: 7.7.4
+ dependencies:
+ whatwg-url: 5.0.0
+ optionalDependencies:
+ encoding: 0.1.13
+ optional: true
+
+
+ dependencies:
+ env-paths: 2.2.1
+ exponential-backoff: 3.1.3
+ glob: 10.5.0
+ graceful-fs: 4.2.11
+ make-fetch-happen: 13.0.1
+ nopt: 7.2.1
+ proc-log: 4.2.0
+ semver: 7.7.4
+ tar: 6.2.1
+ which: 4.0.0
+ transitivePeerDependencies:
+ - supports-color
+ optional: true
+
dependencies:
env-paths: 2.2.1
@@ -9219,14 +9509,32 @@ snapshots:
+ dependencies:
+ abbrev: 1.1.1
+ optional: true
+
dependencies:
abbrev: 1.1.1
+ dependencies:
+ abbrev: 2.0.0
+ optional: true
+
+ dependencies:
+ are-we-there-yet: 2.0.0
+ console-control-strings: 1.1.0
+ gauge: 3.0.2
+ set-blocking: 2.0.0
+ optional: true
+
dependencies:
are-we-there-yet: 3.0.1
@@ -9430,6 +9738,9 @@ snapshots:
ansi-styles: 5.2.0
react-is: 17.0.2
+ optional: true
+
@@ -9863,6 +10174,15 @@ snapshots:
transitivePeerDependencies:
- supports-color
+ dependencies:
+ agent-base: 7.1.4
+ debug: 4.4.3
+ socks: 2.8.10
+ transitivePeerDependencies:
+ - supports-color
+ optional: true
+
dependencies:
ip-address: 10.7.1
@@ -9897,6 +10217,11 @@ snapshots:
optional: true
+ dependencies:
+ minipass: 7.1.3
+ optional: true
+
dependencies:
minipass: 3.3.6
@@ -10052,6 +10377,9 @@ snapshots:
dependencies:
tldts: 7.0.27
+ optional: true
+
dependencies:
punycode: 2.3.1
@@ -10083,6 +10411,10 @@ snapshots:
dependencies:
'@lukeed/csprng': 1.1.0
+ dependencies:
+ node-gyp-build: 4.8.4
+
@@ -10110,10 +10442,20 @@ snapshots:
dependencies:
unique-slug: 3.0.0
+ dependencies:
+ unique-slug: 4.0.0
+ optional: true
+
dependencies:
imurmurhash: 0.1.4
+ dependencies:
+ imurmurhash: 0.1.4
+ optional: true
+
@@ -10313,6 +10655,9 @@ snapshots:
+ optional: true
+
@@ -10329,6 +10674,12 @@ snapshots:
transitivePeerDependencies:
- '@noble/hashes'
+ dependencies:
+ tr46: 0.0.3
+ webidl-conversions: 3.0.1
+ optional: true
+
@@ -10342,6 +10693,11 @@ snapshots:
dependencies:
isexe: 2.0.0
+ dependencies:
+ isexe: 3.1.5
+ optional: true
+
dependencies:
siginfo: 2.0.0