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): read the control under the click from the accessibility tree

Luis Ortiz3409ae365bc5
diff --git a/AGENTS.md b/AGENTS.md
index 75d1fcf..421c7fc 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -188,13 +188,21 @@ The identity fields are shared, and every source populates them:
| Field | DOM | macOS AX | Windows UIAutomation |
|---|---|---|---|
| `role` | `role` attribute, else tag name | `AXRole` | `ControlType` |
-| `name` | `name` attribute | `AXTitle` | `Name` |
+| `name` | `name` attribute | `AXIdentifier` | `AutomationId` |
| `textContent` | trimmed text | `AXValue` / `AXSelectedText` | `Value` |
-| `ariaLabel` | `aria-label` | `AXDescription` / `AXARIAValueText` | `HelpText` |
-| `placeholder` | `placeholder` | `AXPlaceholderValue` | `Placeholder` |
+| `ariaLabel` | `aria-label` | `AXTitle` / `AXDescription` | `Name` |
+| `placeholder` | `placeholder` | `AXPlaceholderValue` | β€” |
| `altText` | `img.alt` | `AXHelp` | `HelpText` |
| `rect` | `getBoundingClientRect()` | `AXPosition` + `AXSize` | `BoundingRectangle` |
+The mapping is chosen so the shared precedence in `buildFallbackDescription` β€” `ariaLabel`,
+`placeholder`, `textContent`, `altText`, `name`, `role` β€” picks the right string without anyone
+branching on `source`. That is why the accessible name lands in `ariaLabel` rather than `name`:
+`name` sits near the bottom of that list, and a control's accessible name should beat its value.
+`name` therefore holds the stable machine identifier instead, which is what a future desktop replay
+will want. UIAutomation has no placeholder property in the API surface we bind, so that field stays
+null there.
+
A fourth source, `screen`, knows only where the click landed: it fills `rect` with a fixed box around
the click point, `clickPoint`, `devicePixelRatio`, `app` and `window`, and leaves every identity field
null.
@@ -233,8 +241,8 @@ app in `apps/desktop/dist`. `electron-builder.yml` targets dmg/zip, nsis and App
## Desktop Capture Primitives
-`apps/desktop/src/main/capture` holds the four things a desktop capture needs. Only one comes from
-Electron; the other three are prebuilt npm packages rather than a crate we maintain.
+`apps/desktop/src/main/capture` holds the five things a desktop capture needs. One comes from
+Electron, three are prebuilt npm packages, and only the last is a crate we maintain.
| Primitive | Source | Native |
|---|---|---|
@@ -242,6 +250,7 @@ Electron; the other three are prebuilt npm packages rather than a crate we maint
| Screenshot of a display | `node-screenshots` | prebuilt |
| Focused foreign window | `get-windows` | prebuilt |
| Global clicks and keys | `uiohook-napi` | prebuilt |
+| Control under a point | `@mimik/capture-native` | ours |
Screenshots do not go through Electron's `desktopCapturer`. That route asks the xdg desktop portal
on Wayland and fails outright when the portal does not answer, and it was returning frames that
@@ -250,8 +259,8 @@ has a Wayland path and needs no portal. Monitor identifiers there have nothing t
display ids, so the monitor is resolved from a point inside the display's bounds rather than matched
by id.
-Anything richer than these four β€” the accessibility tree in particular β€” needs an addon we build and
-maintain ourselves, and that is a separate task.
+Anything richer than these four β€” the accessibility tree in particular β€” has no prebuilt package
+worth taking, so it is an addon of our own in `packages/capture-native`.
**On Linux, input and window lookup are X11 only; screenshots are not.** `uiohook-napi` links
`libX11`/`libXtst` and hooks through `XRecord`, with no Wayland path; on a Wayland session the hook
@@ -265,6 +274,38 @@ macOS and Windows are unaffected.
`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.
+## Desktop Accessibility Addon
+
+`packages/capture-native` is a napi-rs addon exposing one thing: `elementAtPoint(x, y)`, the
+accessibility metadata for whatever control sits under a screen point. Nothing else belongs in it.
+Displays, screenshots, window lookup and the input hook are all covered by prebuilt npm packages
+already, and the accessibility tree is the only primitive with no usable package behind it β€” the
+candidates on npm either ship no prebuilt binaries at all, bind the wrong API, or are unmaintained,
+and an addon compiled from source at install time would need a full C++ toolchain on every user's
+machine.
+
+Rust rather than C++ because `node-gyp` cannot cross-compile and `cargo` can. `pnpm --filter
+@mimik/capture-native build:windows` produces `capture-native.win32-x64-msvc.node` on a Linux
+machine through `cargo-xwin`, which downloads the Windows SDK headers and import libraries itself.
+
+Windows only. `is_supported()` answers false everywhere else and `elementAtPoint` resolves to null,
+so the app, the checks and the recording pipeline all behave the same as when the binary is simply
+missing. macOS is the same shape of work against `AXUIElementCopyAttributeValue` and is not done.
+
+The implementation is `IUIAutomation::ElementFromPoint` and six property reads. COM is initialised
+multi-threaded once per worker thread and the `IUIAutomation` instance is cached in a thread local,
+because the call runs on the libuv threadpool through `AsyncTask` rather than on the main thread β€”
+a cross-process UIAutomation call against a busy application blocks for as long as that application
+takes to answer, and blocking Electron's main thread there would freeze the overlay mid-recording.
+Rectangles come back in physical pixels, so the caller converts the point with `dipToScreenPoint` on
+the way in and the rectangle with `screenToDipRect` on the way out, the same convention
+`focusedWindow` follows.
+
+`ControlType` is translated to the ARIA-ish role vocabulary the rest of the app already speaks, so
+`role === 'checkbox'` means the same thing whether it came from a DOM attribute or from
+`UIA_CheckBoxControlTypeId`. An unmapped control type yields a null role rather than an invented
+name.
+
## Desktop Storage
The desktop app reuses `@mimik/core/guides` for everything except the screenshot bytes β€” Electron's
@@ -444,9 +485,26 @@ Window bounds come back in the platform's own coordinates. Windows reports physi
every rectangle elsewhere in the app is in DIP, so `focusedWindow` converts through `screenToDipRect`
before returning β€” without it a high-DPI machine crops a rectangle scaled by its own DPI factor.
-`elementSource` is `'screen'` for these steps: the click point, the region-relative target rect, the
-display scale factor, and the foreground app and window title are all known, but nothing about the
-control under the cursor is. Reading that needs the accessibility tree and is a later task.
+`elementSource` is `'uia'` when the accessibility lookup answered and `'screen'` when it did not.
+A `screen` step still knows the click point, a fixed target box around it, the display scale factor
+and the foreground app and window title; it just knows nothing about the control. That is what every
+step degrades to where the addon has no build, where the lookup times out, and on every platform but
+Windows.
+
+The lookup starts the moment the click arrives and is awaited after the grab, so it overlaps the
+settle delay and the screenshot instead of adding to them. That it runs early is not only for speed:
+the control has to be read before the click takes effect, or a menu that has opened or a button that
+has vanished is what answers. It is the mirror of the focused-window read, which has to happen late
+for the same reason β€” the window the click moved to the front is the one being photographed, but the
+control the click landed on is the one that was there before. It is capped at 1500 ms and a miss is
+`null`, never an error β€” a slow or unresponsive foreign application costs a step its metadata, not
+the recording.
+
+`targetRect` decides what the dashed target in the screenshot encloses. The control's own rectangle
+wins when there is one, which is the whole point of reading the accessibility tree; it falls back to
+a 28 px box around the click when there is no element, when the rectangle covers more than half the
+frame, or when it does not fit inside the frame. Without those two guards an unsupported application
+returns its top-level window and the target outlines the entire screenshot.
`DesktopRecorder` takes the display grab as a constructor argument defaulting to `captureDisplay`, so
`check:pipeline` feeds it a generated frame. The crop arithmetic, the sink, the step write and all
@@ -456,7 +514,9 @@ this one's.
`pnpm --filter @mimik/desktop check:pipeline` captures two clicks into a throwaway guide, then
asserts the steps landed on the guide, the screenshot is cropped to the region, the description came
-from the shared heuristic, and HTML, Markdown, PDF and DOCX all export non-empty. It then loads the
+from the shared heuristic, and HTML, Markdown, PDF and DOCX all export non-empty. A stubbed element
+lookup covers the two things the addon feeds: the metadata reaching the written step, and
+`targetRect` preferring the control's rectangle while rejecting an oversized or overflowing one. It then loads the
real `index.html` and asserts that window answers a capture request and navigates to the finished
guide, because the checks otherwise run against their own renderer and never exercise the entry
point the user actually gets.
@@ -470,9 +530,10 @@ rather than the placeholder the extension fills in with AI. Desktop has no AI ti
comes from the recorded application, or a generic one where no application was identified. Without
it the guide screen waits forever on a title that is never written.
-Step descriptions read as bare actions until the accessibility tree lands. A screen capture knows
-where the click was and which application owned it, so `buildFallbackDescription` has no control
-name to work with and every step reads the same.
+Step descriptions are only as good as the element lookup. With one, `buildFallbackDescription` gets
+a role and an accessible name and writes the same wording it writes for the extension. Without one
+it has nothing but the action, and every step in the guide reads the same β€” which is what a
+`screen`-sourced recording looks like.
## Desktop Home Screen
diff --git a/apps/desktop/package.json b/apps/desktop/package.json
index e04490f..1e56aaa 100644
--- a/apps/desktop/package.json
+++ b/apps/desktop/package.json
@@ -15,6 +15,7 @@
"check:pipeline": "electron-vite build && electron out/main/check-pipeline.js"
},
"dependencies": {
+ "@mimik/capture-native": "workspace:*",
"@mimik/core": "workspace:*",
"@mimik/ui": "workspace:*",
"dexie": "^4.3.0",
diff --git a/apps/desktop/scripts/check-capture.ts b/apps/desktop/scripts/check-capture.ts
index 9017ef1..42e7157 100644
--- a/apps/desktop/scripts/check-capture.ts
+++ b/apps/desktop/scripts/check-capture.ts
@@ -1,5 +1,13 @@
import { app, nativeImage, screen } from 'electron';
-import { captureCursorDisplay, cursorPoint, focusedWindow, InputHook, listDisplays } from '../src/main/capture';
+import {
+ captureCursorDisplay,
+ cursorPoint,
+ elementAt,
+ elementLookupAvailable,
+ focusedWindow,
+ InputHook,
+ listDisplays,
+} from '../src/main/capture';
function distinctColours(png: Buffer): number {
const bitmap = nativeImage.createFromBuffer(png).toBitmap();
@@ -66,6 +74,19 @@ app.whenReady().then(async () => {
win.ok ? `${win.window.app.name} β€” ${win.window.title ?? '(untitled)'}` : `${win.reason}: ${win.detail}`,
);
+ const lookup = await elementLookupAvailable();
+ const element = lookup ? await elementAt(point) : null;
+ if (lookup && !element) failures++;
+ line(
+ 'element at point',
+ lookup ? (element ? 'ok' : 'fail') : 'n/a',
+ lookup
+ ? element
+ ? `${element.role ?? 'no role'} β€” ${element.ariaLabel ?? '(unnamed)'}`
+ : 'no element resolved under the cursor'
+ : 'the accessibility addon has no build for this platform',
+ );
+
const hook = new InputHook();
const started = await hook.start(() => {});
if (!started.ok && started.reason !== 'unsupported-session') failures++;
diff --git a/apps/desktop/scripts/check-pipeline.ts b/apps/desktop/scripts/check-pipeline.ts
index ff9516e..f23aaff 100644
--- a/apps/desktop/scripts/check-pipeline.ts
+++ b/apps/desktop/scripts/check-pipeline.ts
@@ -2,7 +2,15 @@ import { randomUUID } from 'node:crypto';
import { join } from 'node:path';
import { app, BrowserWindow, nativeImage, protocol, screen } from 'electron';
import { ask } from '../src/main/ask';
-import { DesktopRecorder, frameFor, isRepeatClick, shouldCapture } from '../src/main/capture/recorder';
+import type { ScreenElement } from '../src/main/capture/element';
+import {
+ type CaptureRequest,
+ DesktopRecorder,
+ frameFor,
+ isRepeatClick,
+ shouldCapture,
+ targetRect,
+} from '../src/main/capture/recorder';
import { clampToDisplays } from '../src/main/capture/region';
import { registerScreenshotProtocol, SCREENSHOT_SCHEME, sweepScreenshots } from '../src/main/capture/screenshot-store';
import { DEFAULT_CAPTURE_SETTINGS, loadSettings, normaliseSettings, saveSettings } from '../src/main/capture/settings';
@@ -128,6 +136,54 @@ app.whenReady().then(async () => {
detail: 'screen takes the display, window takes the window and falls back twice, region takes the region',
});
+ const control: ScreenElement = {
+ role: 'button',
+ name: 'SaveButton',
+ textContent: null,
+ ariaLabel: 'Save',
+ altText: null,
+ rect: { x: region.x + 40, y: region.y + 30, width: 120, height: 32 },
+ };
+ let seen: CaptureRequest | null = null;
+ const metaRecorder = new DesktopRecorder(
+ () => region,
+ (fn) => fn(),
+ (request) => {
+ seen = request;
+ return Promise.resolve(null);
+ },
+ syntheticDisplay,
+ () => ({ ...REGION_MODE, showCursor: false }),
+ () => false,
+ () => Promise.resolve(control),
+ );
+ await metaRecorder.capture({ x: region.x + 60, y: region.y + 40 });
+ const meta = (seen as CaptureRequest | null)?.elementMeta;
+ results.push({
+ name: 'accessibility metadata reaches the step',
+ ok:
+ meta?.source === 'uia' &&
+ meta.ariaLabel === 'Save' &&
+ meta.name === 'SaveButton' &&
+ meta.role === 'button' &&
+ meta.rect.width === 120 &&
+ meta.rect.x === 40,
+ detail: `source ${meta?.source ?? 'none'}, role ${meta?.role ?? 'none'}, named ${meta?.ariaLabel ?? 'none'}`,
+ });
+
+ const page = { x: 0, y: 0, width: 800, height: 600 };
+ const click = { x: 160, y: 66 };
+ const boxed = (rect: ScreenElement['rect']) => targetRect({ ...control, rect }, page, click).width;
+ results.push({
+ name: 'the target box hugs the control',
+ ok:
+ boxed({ x: 100, y: 50, width: 120, height: 32 }) === 120 &&
+ targetRect(null, page, click).width === 28 &&
+ boxed({ x: 0, y: 0, width: 800, height: 600 }) === 28 &&
+ boxed({ x: 700, y: 50, width: 200, height: 32 }) === 28,
+ detail: 'a real rectangle wins; no element, one covering the frame, or one overflowing it falls back to the click box',
+ });
+
activeGuide = await ask<string>(win.webContents, 'mimik:capture:startGuide');
settings = { ...REGION_MODE, screenshotDelayMs: 400, showCursor: false };
diff --git a/apps/desktop/src/main/capture/element.ts b/apps/desktop/src/main/capture/element.ts
new file mode 100644
index 0000000..409ecc9
--- /dev/null
+++ b/apps/desktop/src/main/capture/element.ts
@@ -0,0 +1,76 @@
+import type { UiElement } from '@mimik/capture-native';
+import { screen } from 'electron';
+import { toDip } from './focused-window';
+
+const LOOKUP_TIMEOUT_MS = 1500;
+
+export interface ScreenElement {
+ role: string | null;
+ name: string | null;
+ textContent: string | null;
+ ariaLabel: string | null;
+ altText: string | null;
+ rect: { x: number; y: number; width: number; height: number } | null;
+}
+
+type Addon = {
+ elementAtPoint(x: number, y: number): Promise<UiElement | null>;
+ isSupported(): boolean;
+};
+
+let addon: Addon | null | undefined;
+
+async function load(): Promise<Addon | null> {
+ if (addon === undefined) {
+ try {
+ addon = (await import('@mimik/capture-native')) as unknown as Addon;
+ } catch {
+ addon = null;
+ }
+ }
+ return addon;
+}
+
+function within<T>(work: Promise<T>, ms: number): Promise<T | null> {
+ return new Promise((resolve) => {
+ const timer = setTimeout(() => resolve(null), ms);
+ timer.unref?.();
+ const settle = (value: T | null) => {
+ clearTimeout(timer);
+ resolve(value);
+ };
+ work.then(settle, () => settle(null));
+ });
+}
+
+function toPhysical(point: { x: number; y: number }): { x: number; y: number } {
+ if (process.platform !== 'win32' || typeof screen.dipToScreenPoint !== 'function') return point;
+ try {
+ return screen.dipToScreenPoint(point);
+ } catch {
+ return point;
+ }
+}
+
+export async function elementAt(point: { x: number; y: number }): Promise<ScreenElement | null> {
+ const native = await load();
+ if (!native) return null;
+
+ const at = toPhysical(point);
+ const found = await within(native.elementAtPoint(Math.round(at.x), Math.round(at.y)), LOOKUP_TIMEOUT_MS);
+ if (!found) return null;
+
+ return {
+ role: found.role ?? null,
+ name: found.automationId ?? null,
+ textContent: found.value ?? null,
+ ariaLabel: found.name ?? null,
+ altText: found.helpText ?? null,
+ rect: toDip(found.rect ?? null),
+ };
+}
+
+export async function elementLookupAvailable(): Promise<boolean> {
+ const native = await load();
+ return native?.isSupported() ?? false;
+}
diff --git a/apps/desktop/src/main/capture/focused-window.ts b/apps/desktop/src/main/capture/focused-window.ts
index da14b45..ae47109 100644
--- a/apps/desktop/src/main/capture/focused-window.ts
+++ b/apps/desktop/src/main/capture/focused-window.ts
@@ -17,7 +17,7 @@ function classify(message: string): Exclude<FocusedWindowResult, { ok: true }>['
return 'unknown';
}
-function toDip(bounds: FocusedWindow['bounds']): FocusedWindow['bounds'] {
+export function toDip(bounds: FocusedWindow['bounds']): FocusedWindow['bounds'] {
if (!bounds || bounds.width <= 0 || bounds.height <= 0) return null;
if (process.platform !== 'win32' || typeof screen.screenToDipRect !== 'function') return bounds;
try {
diff --git a/apps/desktop/src/main/capture/index.ts b/apps/desktop/src/main/capture/index.ts
index 289584a..2da581b 100644
--- a/apps/desktop/src/main/capture/index.ts
+++ b/apps/desktop/src/main/capture/index.ts
@@ -1,4 +1,5 @@
export { cursorPoint, type DisplayInfo, displayAt, listDisplays } from './displays';
+export { elementAt, elementLookupAvailable, type ScreenElement } from './element';
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/recorder.ts b/apps/desktop/src/main/capture/recorder.ts
index 48ddfa8..48cd0a8 100644
--- a/apps/desktop/src/main/capture/recorder.ts
+++ b/apps/desktop/src/main/capture/recorder.ts
@@ -2,6 +2,7 @@ import { randomUUID } from 'node:crypto';
import type { CaptureImage } from '@mimik/core/capture/sink';
import type { ElementMeta } from '@mimik/core/guides/types';
import { screen } from 'electron';
+import { elementAt, type ScreenElement } from './element';
import { focusedWindow } from './focused-window';
import { type InputAction, InputHook } from './input-hook';
import type { Region } from './region';
@@ -63,6 +64,27 @@ export function frameFor(
return inside(region, point) ? region : display;
}
+export function targetRect(
+ element: ScreenElement | null,
+ framed: Rect,
+ point: { x: number; y: number },
+): ElementMeta['rect'] {
+ const local = { x: point.x - framed.x, y: point.y - framed.y };
+ const box = {
+ x: local.x - TARGET_SIZE / 2,
+ y: local.y - TARGET_SIZE / 2,
+ width: TARGET_SIZE,
+ height: TARGET_SIZE,
+ };
+ const rect = element?.rect;
+ if (!rect) return box;
+ if (rect.width * rect.height > framed.width * framed.height * 0.5) return box;
+ const inner = { x: rect.x - framed.x, y: rect.y - framed.y, width: rect.width, height: rect.height };
+ if (inner.x < 0 || inner.y < 0) return box;
+ if (inner.x + inner.width > framed.width || inner.y + inner.height > framed.height) return box;
+ return inner;
+}
+
export class DesktopRecorder {
private hook = new InputHook();
private queue: Promise<unknown> = Promise.resolve();
@@ -77,6 +99,7 @@ export class DesktopRecorder {
private readonly grab: (area: Rect) => Promise<Capture> = captureArea,
private readonly settings: () => CaptureSettings = () => DEFAULT_CAPTURE_SETTINGS,
private readonly ignores: (point: { x: number; y: number }) => boolean = () => false,
+ private readonly lookup: (point: { x: number; y: number }) => Promise<ScreenElement | null> = elementAt,
) {}
async start(): Promise<RecorderStart> {
@@ -129,6 +152,7 @@ export class DesktopRecorder {
async capture(point: { x: number; y: number }): Promise<void> {
const settings = this.settings();
+ const element = this.lookup(point);
const region = this.region();
const taken = await this.withHidden(async () => {
@@ -142,23 +166,19 @@ export class DesktopRecorder {
const screenshotId = randomUUID();
const local = { x: point.x - framed.x, y: point.y - framed.y };
+ const target = await element;
await this.send({
action: 'click',
elementMeta: {
- source: 'screen',
- textContent: null,
- ariaLabel: null,
+ source: target ? 'uia' : 'screen',
+ textContent: target?.textContent ?? null,
+ ariaLabel: target?.ariaLabel ?? null,
placeholder: null,
- altText: null,
- name: null,
- role: null,
- rect: {
- x: local.x - TARGET_SIZE / 2,
- y: local.y - TARGET_SIZE / 2,
- width: TARGET_SIZE,
- height: TARGET_SIZE,
- },
+ altText: target?.altText ?? null,
+ name: target?.name ?? null,
+ role: target?.role ?? null,
+ rect: targetRect(target, framed, point),
devicePixelRatio: scale,
clickPoint: local,
...(found.ok ? { app: found.window.app, window: { title: found.window.title } } : {}),
diff --git a/packages/capture-native/.gitignore b/packages/capture-native/.gitignore
new file mode 100644
index 0000000..89fb9af
--- /dev/null
+++ b/packages/capture-native/.gitignore
@@ -0,0 +1,2 @@
+target/
+*.node
diff --git a/packages/capture-native/Cargo.lock b/packages/capture-native/Cargo.lock
new file mode 100644
index 0000000..56de4cc
--- /dev/null
+++ b/packages/capture-native/Cargo.lock
@@ -0,0 +1,400 @@
+# This file is automatically @generated by Cargo.
+# It is not intended for manual editing.
+version = 4
+
+[[package]]
+name = "bitflags"
+version = "2.13.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06"
+
+[[package]]
+name = "cfg-if"
+version = "1.0.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600"
+
+[[package]]
+name = "convert_case"
+version = "0.12.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1af709f1f33454bf52eadfc8c78b3b9ef9cb26fb54d16dc9cd9a7299f899fd1b"
+dependencies = [
+ "unicode-segmentation",
+]
+
+[[package]]
+name = "ctor"
+version = "1.0.13"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "914a755b7c2d4af2bdcff7ce1739e2db9a1b81a9b07123d8015786ae03c0980d"
+
+[[package]]
+name = "futures"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9a31d2a3fbaaeb2af2368bbdd904aa8e812d3c04a1ee10d3171f52d556e5d0a3"
+dependencies = [
+ "futures-channel",
+ "futures-core",
+ "futures-executor",
+ "futures-io",
+ "futures-sink",
+ "futures-task",
+ "futures-util",
+]
+
+[[package]]
+name = "futures-channel"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b1f9e3d69d39e4862ffed03ed071a76f9a13ba1d9109d355b0f0aa6b15e393c4"
+dependencies = [
+ "futures-core",
+ "futures-sink",
+]
+
+[[package]]
+name = "futures-core"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "92d699e522242e69e3003b94ecc1f960f3a5e015aa7c5d7486e65ad01dd94f5e"
+
+[[package]]
+name = "futures-executor"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "031b47cf1a3c6cc8bc2fc76cd437f521619387907d469316e7c0bc278f1f5432"
+dependencies = [
+ "futures-core",
+ "futures-task",
+ "futures-util",
+]
+
+[[package]]
+name = "futures-io"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "53c0fa8157de1303bfffdaa1cc2a673bfffb60102f76b0ef4441659124373fed"
+
+[[package]]
+name = "futures-macro"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9fb9654ba8355388abeb8dcb4fc62f511300867002afc858860463bdd9fe0c44"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.6",
+]
+
+[[package]]
+name = "futures-sink"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1944426bf7d03f1d14f708785e4b33efd750b36d48a157b836b3efc15ede8e1d"
+
+[[package]]
+name = "futures-task"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cd417de3d1d015fc3bfd2b1ea46dfc7bab72ef86f1cc7cc9c78e728b34a6d1fd"
+
+[[package]]
+name = "futures-util"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0d50a92467f8ba5dd6e3ee5d4bd04d73ab2e4e1c44474a0674821dfce14b79bc"
+dependencies = [
+ "futures-channel",
+ "futures-core",
+ "futures-io",
+ "futures-macro",
+ "futures-sink",
+ "futures-task",
+ "memchr",
+ "pin-project-lite",
+ "slab",
+]
+
+[[package]]
+name = "libc"
+version = "0.2.189"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2"
+
+[[package]]
+name = "libloading"
+version = "0.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "754ca22de805bb5744484a5b151a9e1a8e837d5dc232c2d7d8c2e3492edc8b60"
+dependencies = [
+ "cfg-if",
+ "windows-link",
+]
+
+[[package]]
+name = "memchr"
+version = "2.8.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
+
+[[package]]
+name = "mimik-capture-native"
+version = "0.1.0"
+dependencies = [
+ "napi",
+ "napi-build",
+ "napi-derive",
+ "windows",
+]
+
+[[package]]
+name = "napi"
+version = "3.12.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b7d3c1107f2fda46a7bd2676d65221b7b8160054494b38554b0e055c731714db"
+dependencies = [
+ "bitflags",
+ "ctor",
+ "futures",
+ "libc",
+ "napi-build",
+ "napi-sys",
+ "nohash-hasher",
+ "rustc-hash",
+]
+
+[[package]]
+name = "napi-build"
+version = "2.4.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9befcb51d87271051c0c11aaf625d09340266b7f1ac3fef5975e62274dc2813f"
+
+[[package]]
+name = "napi-derive"
+version = "3.6.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7e332e701386d8101b093203e296059ad8aeef58ddd4c75594f3c84ce637405e"
+dependencies = [
+ "convert_case",
+ "ctor",
+ "napi-derive-backend",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "napi-derive-backend"
+version = "6.1.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fd6856fe1686867da90ed0dc292d7c0c87a695eb7c578b913360f33619ee01e3"
+dependencies = [
+ "convert_case",
+ "proc-macro2",
+ "quote",
+ "semver",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "napi-sys"
+version = "3.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6801fc65ba4d7035636e93635e281113f00410401a237dcd4f55b1565ead2115"
+dependencies = [
+ "libloading",
+]
+
+[[package]]
+name = "nohash-hasher"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2bf50223579dc7cdcfb3bfcacf7069ff68243f8c363f62ffa99cf000a6b9c451"
+
+[[package]]
+name = "pin-project-lite"
+version = "0.2.17"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"
+
+[[package]]
+name = "proc-macro2"
+version = "1.0.107"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
+dependencies = [
+ "unicode-ident",
+]
+
+[[package]]
+name = "quote"
+version = "1.0.47"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
+dependencies = [
+ "proc-macro2",
+]
+
+[[package]]
+name = "rustc-hash"
+version = "2.1.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d"
+
+[[package]]
+name = "semver"
+version = "1.0.28"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd"
+
+[[package]]
+name = "slab"
+version = "0.4.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"
+
+[[package]]
+name = "syn"
+version = "2.0.119"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "unicode-ident",
+]
+
+[[package]]
+name = "syn"
+version = "3.0.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8593e8e72159ed2257d083c7a454a85cbf854f37a0966d8d483aff8c8a3ebcee"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "unicode-ident",
+]
+
+[[package]]
+name = "unicode-ident"
+version = "1.0.26"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d245f478577f809a851594d02313b640fb437e0bb33866753cff937863096954"
+
+[[package]]
+name = "unicode-segmentation"
+version = "1.13.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c6f5d3c3b1bf09027a88a6bc961fc00497d651009560b5463668dc81b0fa87a8"
+
+[[package]]
+name = "windows"
+version = "0.62.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "527fadee13e0c05939a6a05d5bd6eec6cd2e3dbd648b9f8e447c6518133d8580"
+dependencies = [
+ "windows-collections",
+ "windows-core",
+ "windows-future",
+ "windows-numerics",
+]
+
+[[package]]
+name = "windows-collections"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "23b2d95af1a8a14a3c7367e1ed4fc9c20e0a26e79551b1454d72583c97cc6610"
+dependencies = [
+ "windows-core",
+]
+
+[[package]]
+name = "windows-core"
+version = "0.62.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb"
+dependencies = [
+ "windows-implement",
+ "windows-interface",
+ "windows-link",
+ "windows-result",
+ "windows-strings",
+]
+
+[[package]]
+name = "windows-future"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e1d6f90251fe18a279739e78025bd6ddc52a7e22f921070ccdc67dde84c605cb"
+dependencies = [
+ "windows-core",
+ "windows-link",
+ "windows-threading",
+]
+
+[[package]]
+name = "windows-implement"
+version = "0.60.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "windows-interface"
+version = "0.59.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "windows-link"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
+
+[[package]]
+name = "windows-numerics"
+version = "0.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6e2e40844ac143cdb44aead537bbf727de9b044e107a0f1220392177d15b0f26"
+dependencies = [
+ "windows-core",
+ "windows-link",
+]
+
+[[package]]
+name = "windows-result"
+version = "0.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5"
+dependencies = [
+ "windows-link",
+]
+
+[[package]]
+name = "windows-strings"
+version = "0.5.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091"
+dependencies = [
+ "windows-link",
+]
+
+[[package]]
+name = "windows-threading"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3949bd5b99cafdf1c7ca86b43ca564028dfe27d66958f2470940f73d86d75b37"
+dependencies = [
+ "windows-link",
+]
diff --git a/packages/capture-native/Cargo.toml b/packages/capture-native/Cargo.toml
new file mode 100644
index 0000000..1040b9b
--- /dev/null
+++ b/packages/capture-native/Cargo.toml
@@ -0,0 +1,26 @@
+[package]
+name = "mimik-capture-native"
+version = "0.1.0"
+edition = "2021"
+publish = false
+
+[lib]
+crate-type = ["cdylib"]
+
+[dependencies]
+napi = { version = "3", default-features = false, features = ["napi4"] }
+napi-derive = "3"
+
+[target.'cfg(windows)'.dependencies]
+windows = { version = "0.62", features = [
+ "Win32_Foundation",
+ "Win32_System_Com",
+ "Win32_UI_Accessibility",
+] }
+
+[build-dependencies]
+napi-build = "2"
+
+[profile.release]
+lto = true
+strip = "symbols"
diff --git a/packages/capture-native/build.rs b/packages/capture-native/build.rs
new file mode 100644
index 0000000..bbfc9e4
--- /dev/null
+++ b/packages/capture-native/build.rs
@@ -0,0 +1,3 @@
+fn main() {
+ napi_build::setup();
+}
diff --git a/packages/capture-native/index.d.ts b/packages/capture-native/index.d.ts
new file mode 100644
index 0000000..90a2eca
--- /dev/null
+++ b/packages/capture-native/index.d.ts
@@ -0,0 +1,30 @@
+/* auto-generated by NAPI-RS */
+/* eslint-disable */
+
+/**
+ * Which binding artifact the generated loader actually loaded: `'native'` for
+ * a native addon, otherwise the `platformArchABI` of the WASI flavor. Every
+ * flavor napi-rs can build is listed, because `NAPI_RS_NATIVE_LIBRARY_PATH`
+ * can point the loader at a WASI artifact this package does not build itself.
+ */
+export declare const __napiBindingTarget: 'native' | 'wasm32-wasi' | 'wasm32-wasip1'
+
+export declare function elementAtPoint(x: number, y: number): Promise<UiElement | null>
+
+export interface ElementRect {
+ x: number
+ y: number
+ width: number
+ height: number
+}
+
+export declare function isSupported(): boolean
+
+export interface UiElement {
+ role?: string
+ name?: string
+ automationId?: string
+ value?: string
+ helpText?: string
+ rect?: ElementRect
+}
diff --git a/packages/capture-native/index.js b/packages/capture-native/index.js
new file mode 100644
index 0000000..1dae1f0
--- /dev/null
+++ b/packages/capture-native/index.js
@@ -0,0 +1,782 @@
+/* eslint-disable */
+// @ts-nocheck
+/* auto-generated by NAPI-RS */
+
+const { readFileSync } = require('fs')
+let nativeBinding = null
+// Which artifact actually loaded. The WASI fallback chain overwrites it with
+// the flavor it resolved; the late native retry below leaves it alone because
+// it only runs while no WASI candidate has been loaded.
+let __napiLoadedBindingTarget = 'native'
+const loadErrors = []
+
+const isMusl = () => {
+ let musl = false
+ if (process.platform === 'linux') {
+ musl = isMuslFromFilesystem()
+ if (musl === null) {
+ musl = isMuslFromReport()
+ }
+ if (musl === null) {
+ musl = isMuslFromChildProcess()
+ }
+ }
+ return musl
+}
+
+const isFileMusl = (f) => f.includes('libc.musl-') || f.includes('ld-musl-')
+
+const isMuslFromFilesystem = () => {
+ try {
+ return readFileSync('/usr/bin/ldd', 'utf-8').includes('musl')
+ } catch {
+ return null
+ }
+}
+
+const isMuslFromReport = () => {
+ let report = null
+ if (process.report && typeof process.report.getReport === 'function') {
+ process.report.excludeNetwork = true
+ report = process.report.getReport()
+ }
+ if (!report) {
+ return null
+ }
+ if (report.header && report.header.glibcVersionRuntime) {
+ return false
+ }
+ if (Array.isArray(report.sharedObjects)) {
+ if (report.sharedObjects.some(isFileMusl)) {
+ return true
+ }
+ }
+ return false
+}
+
+const isMuslFromChildProcess = () => {
+ try {
+ return require('child_process').execSync('ldd --version', { encoding: 'utf8' }).includes('musl')
+ } catch (e) {
+ // If we reach this case, we don't know if the system is musl or not, so is better to just fallback to false
+ return false
+ }
+}
+
+function requireNative() {
+ if (process.env.NAPI_RS_NATIVE_LIBRARY_PATH) {
+ try {
+ const overrideBinding = require(process.env.NAPI_RS_NATIVE_LIBRARY_PATH)
+ // The override may be a generated WASI loader, which already reports its
+ // own flavor. Adopt it: `module.exports` aliases this object, so claiming
+ // 'native' would both misreport the artifact and overwrite the loader's
+ // marker through the alias.
+ __napiLoadedBindingTarget =
+ overrideBinding && typeof overrideBinding.__napiBindingTarget === 'string'
+ ? overrideBinding.__napiBindingTarget
+ : 'native'
+ return overrideBinding
+ } catch (err) {
+ loadErrors.push(err)
+ }
+ } else if (process.platform === 'android') {
+ if (process.arch === 'arm64') {
+ try {
+ return require('./capture-native.android-arm64.node')
+ } catch (e) {
+ loadErrors.push(e)
+ }
+ try {
+ const binding = require('@mimik/capture-native-android-arm64')
+ const bindingPackageVersion = require('@mimik/capture-native-android-arm64/package.json').version
+ if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
+ throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
+ }
+ return binding
+ } catch (e) {
+ loadErrors.push(e)
+ }
+ } else if (process.arch === 'arm') {
+ try {
+ return require('./capture-native.android-arm-eabi.node')
+ } catch (e) {
+ loadErrors.push(e)
+ }
+ try {
+ const binding = require('@mimik/capture-native-android-arm-eabi')
+ const bindingPackageVersion = require('@mimik/capture-native-android-arm-eabi/package.json').version
+ if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
+ throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
+ }
+ return binding
+ } catch (e) {
+ loadErrors.push(e)
+ }
+ } else {
+ loadErrors.push(new Error(`Unsupported architecture on Android ${process.arch}`))
+ }
+ } else if (process.platform === 'win32') {
+ if (process.arch === 'x64') {
+ if ((process.config && process.config.variables && process.config.variables.shlib_suffix === 'dll.a') || (process.config && process.config.variables && process.config.variables.node_target_type === 'shared_library')) {
+ try {
+ return require('./capture-native.win32-x64-gnu.node')
+ } catch (e) {
+ loadErrors.push(e)
+ }
+ try {
+ const binding = require('@mimik/capture-native-win32-x64-gnu')
+ const bindingPackageVersion = require('@mimik/capture-native-win32-x64-gnu/package.json').version
+ if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
+ throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
+ }
+ return binding
+ } catch (e) {
+ loadErrors.push(e)
+ }
+ } else {
+ try {
+ return require('./capture-native.win32-x64-msvc.node')
+ } catch (e) {
+ loadErrors.push(e)
+ }
+ try {
+ const binding = require('@mimik/capture-native-win32-x64-msvc')
+ const bindingPackageVersion = require('@mimik/capture-native-win32-x64-msvc/package.json').version
+ if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
+ throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
+ }
+ return binding
+ } catch (e) {
+ loadErrors.push(e)
+ }
+ }
+ } else if (process.arch === 'ia32') {
+ try {
+ return require('./capture-native.win32-ia32-msvc.node')
+ } catch (e) {
+ loadErrors.push(e)
+ }
+ try {
+ const binding = require('@mimik/capture-native-win32-ia32-msvc')
+ const bindingPackageVersion = require('@mimik/capture-native-win32-ia32-msvc/package.json').version
+ if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
+ throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
+ }
+ return binding
+ } catch (e) {
+ loadErrors.push(e)
+ }
+ } else if (process.arch === 'arm64') {
+ try {
+ return require('./capture-native.win32-arm64-msvc.node')
+ } catch (e) {
+ loadErrors.push(e)
+ }
+ try {
+ const binding = require('@mimik/capture-native-win32-arm64-msvc')
+ const bindingPackageVersion = require('@mimik/capture-native-win32-arm64-msvc/package.json').version
+ if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
+ throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
+ }
+ return binding
+ } catch (e) {
+ loadErrors.push(e)
+ }
+ } else {
+ loadErrors.push(new Error(`Unsupported architecture on Windows: ${process.arch}`))
+ }
+ } else if (process.platform === 'darwin') {
+ try {
+ return require('./capture-native.darwin-universal.node')
+ } catch (e) {
+ loadErrors.push(e)
+ }
+ try {
+ const binding = require('@mimik/capture-native-darwin-universal')
+ const bindingPackageVersion = require('@mimik/capture-native-darwin-universal/package.json').version
+ if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
+ throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
+ }
+ return binding
+ } catch (e) {
+ loadErrors.push(e)
+ }
+ if (process.arch === 'x64') {
+ try {
+ return require('./capture-native.darwin-x64.node')
+ } catch (e) {
+ loadErrors.push(e)
+ }
+ try {
+ const binding = require('@mimik/capture-native-darwin-x64')
+ const bindingPackageVersion = require('@mimik/capture-native-darwin-x64/package.json').version
+ if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
+ throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
+ }
+ return binding
+ } catch (e) {
+ loadErrors.push(e)
+ }
+ } else if (process.arch === 'arm64') {
+ try {
+ return require('./capture-native.darwin-arm64.node')
+ } catch (e) {
+ loadErrors.push(e)
+ }
+ try {
+ const binding = require('@mimik/capture-native-darwin-arm64')
+ const bindingPackageVersion = require('@mimik/capture-native-darwin-arm64/package.json').version
+ if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
+ throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
+ }
+ return binding
+ } catch (e) {
+ loadErrors.push(e)
+ }
+ } else {
+ loadErrors.push(new Error(`Unsupported architecture on macOS: ${process.arch}`))
+ }
+ } else if (process.platform === 'freebsd') {
+ if (process.arch === 'x64') {
+ try {
+ return require('./capture-native.freebsd-x64.node')
+ } catch (e) {
+ loadErrors.push(e)
+ }
+ try {
+ const binding = require('@mimik/capture-native-freebsd-x64')
+ const bindingPackageVersion = require('@mimik/capture-native-freebsd-x64/package.json').version
+ if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
+ throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
+ }
+ return binding
+ } catch (e) {
+ loadErrors.push(e)
+ }
+ } else if (process.arch === 'arm64') {
+ try {
+ return require('./capture-native.freebsd-arm64.node')
+ } catch (e) {
+ loadErrors.push(e)
+ }
+ try {
+ const binding = require('@mimik/capture-native-freebsd-arm64')
+ const bindingPackageVersion = require('@mimik/capture-native-freebsd-arm64/package.json').version
+ if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
+ throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
+ }
+ return binding
+ } catch (e) {
+ loadErrors.push(e)
+ }
+ } else {
+ loadErrors.push(new Error(`Unsupported architecture on FreeBSD: ${process.arch}`))
+ }
+ } else if (process.platform === 'linux') {
+ if (process.arch === 'x64') {
+ if (isMusl()) {
+ try {
+ return require('./capture-native.linux-x64-musl.node')
+ } catch (e) {
+ loadErrors.push(e)
+ }
+ try {
+ const binding = require('@mimik/capture-native-linux-x64-musl')
+ const bindingPackageVersion = require('@mimik/capture-native-linux-x64-musl/package.json').version
+ if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
+ throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
+ }
+ return binding
+ } catch (e) {
+ loadErrors.push(e)
+ }
+ } else {
+ try {
+ return require('./capture-native.linux-x64-gnu.node')
+ } catch (e) {
+ loadErrors.push(e)
+ }
+ try {
+ const binding = require('@mimik/capture-native-linux-x64-gnu')
+ const bindingPackageVersion = require('@mimik/capture-native-linux-x64-gnu/package.json').version
+ if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
+ throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
+ }
+ return binding
+ } catch (e) {
+ loadErrors.push(e)
+ }
+ }
+ } else if (process.arch === 'arm64') {
+ if (isMusl()) {
+ try {
+ return require('./capture-native.linux-arm64-musl.node')
+ } catch (e) {
+ loadErrors.push(e)
+ }
+ try {
+ const binding = require('@mimik/capture-native-linux-arm64-musl')
+ const bindingPackageVersion = require('@mimik/capture-native-linux-arm64-musl/package.json').version
+ if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
+ throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
+ }
+ return binding
+ } catch (e) {
+ loadErrors.push(e)
+ }
+ } else {
+ try {
+ return require('./capture-native.linux-arm64-gnu.node')
+ } catch (e) {
+ loadErrors.push(e)
+ }
+ try {
+ const binding = require('@mimik/capture-native-linux-arm64-gnu')
+ const bindingPackageVersion = require('@mimik/capture-native-linux-arm64-gnu/package.json').version
+ if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
+ throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
+ }
+ return binding
+ } catch (e) {
+ loadErrors.push(e)
+ }
+ }
+ } else if (process.arch === 'arm') {
+ if (isMusl()) {
+ try {
+ return require('./capture-native.linux-arm-musleabihf.node')
+ } catch (e) {
+ loadErrors.push(e)
+ }
+ try {
+ const binding = require('@mimik/capture-native-linux-arm-musleabihf')
+ const bindingPackageVersion = require('@mimik/capture-native-linux-arm-musleabihf/package.json').version
+ if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
+ throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
+ }
+ return binding
+ } catch (e) {
+ loadErrors.push(e)
+ }
+ } else {
+ try {
+ return require('./capture-native.linux-arm-gnueabihf.node')
+ } catch (e) {
+ loadErrors.push(e)
+ }
+ try {
+ const binding = require('@mimik/capture-native-linux-arm-gnueabihf')
+ const bindingPackageVersion = require('@mimik/capture-native-linux-arm-gnueabihf/package.json').version
+ if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
+ throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
+ }
+ return binding
+ } catch (e) {
+ loadErrors.push(e)
+ }
+ }
+ } else if (process.arch === 'loong64') {
+ if (isMusl()) {
+ try {
+ return require('./capture-native.linux-loong64-musl.node')
+ } catch (e) {
+ loadErrors.push(e)
+ }
+ try {
+ const binding = require('@mimik/capture-native-linux-loong64-musl')
+ const bindingPackageVersion = require('@mimik/capture-native-linux-loong64-musl/package.json').version
+ if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
+ throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
+ }
+ return binding
+ } catch (e) {
+ loadErrors.push(e)
+ }
+ } else {
+ try {
+ return require('./capture-native.linux-loong64-gnu.node')
+ } catch (e) {
+ loadErrors.push(e)
+ }
+ try {
+ const binding = require('@mimik/capture-native-linux-loong64-gnu')
+ const bindingPackageVersion = require('@mimik/capture-native-linux-loong64-gnu/package.json').version
+ if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
+ throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
+ }
+ return binding
+ } catch (e) {
+ loadErrors.push(e)
+ }
+ }
+ } else if (process.arch === 'riscv64') {
+ if (isMusl()) {
+ try {
+ return require('./capture-native.linux-riscv64-musl.node')
+ } catch (e) {
+ loadErrors.push(e)
+ }
+ try {
+ const binding = require('@mimik/capture-native-linux-riscv64-musl')
+ const bindingPackageVersion = require('@mimik/capture-native-linux-riscv64-musl/package.json').version
+ if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
+ throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
+ }
+ return binding
+ } catch (e) {
+ loadErrors.push(e)
+ }
+ } else {
+ try {
+ return require('./capture-native.linux-riscv64-gnu.node')
+ } catch (e) {
+ loadErrors.push(e)
+ }
+ try {
+ const binding = require('@mimik/capture-native-linux-riscv64-gnu')
+ const bindingPackageVersion = require('@mimik/capture-native-linux-riscv64-gnu/package.json').version
+ if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
+ throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
+ }
+ return binding
+ } catch (e) {
+ loadErrors.push(e)
+ }
+ }
+ } else if (process.arch === 'ppc64') {
+ try {
+ return require('./capture-native.linux-ppc64-gnu.node')
+ } catch (e) {
+ loadErrors.push(e)
+ }
+ try {
+ const binding = require('@mimik/capture-native-linux-ppc64-gnu')
+ const bindingPackageVersion = require('@mimik/capture-native-linux-ppc64-gnu/package.json').version
+ if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
+ throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
+ }
+ return binding
+ } catch (e) {
+ loadErrors.push(e)
+ }
+ } else if (process.arch === 's390x') {
+ try {
+ return require('./capture-native.linux-s390x-gnu.node')
+ } catch (e) {
+ loadErrors.push(e)
+ }
+ try {
+ const binding = require('@mimik/capture-native-linux-s390x-gnu')
+ const bindingPackageVersion = require('@mimik/capture-native-linux-s390x-gnu/package.json').version
+ if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
+ throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
+ }
+ return binding
+ } catch (e) {
+ loadErrors.push(e)
+ }
+ } else {
+ loadErrors.push(new Error(`Unsupported architecture on Linux: ${process.arch}`))
+ }
+ } else if (process.platform === 'openharmony') {
+ if (process.arch === 'arm64') {
+ try {
+ return require('./capture-native.openharmony-arm64.node')
+ } catch (e) {
+ loadErrors.push(e)
+ }
+ try {
+ const binding = require('@mimik/capture-native-openharmony-arm64')
+ const bindingPackageVersion = require('@mimik/capture-native-openharmony-arm64/package.json').version
+ if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
+ throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
+ }
+ return binding
+ } catch (e) {
+ loadErrors.push(e)
+ }
+ } else if (process.arch === 'x64') {
+ try {
+ return require('./capture-native.openharmony-x64.node')
+ } catch (e) {
+ loadErrors.push(e)
+ }
+ try {
+ const binding = require('@mimik/capture-native-openharmony-x64')
+ const bindingPackageVersion = require('@mimik/capture-native-openharmony-x64/package.json').version
+ if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
+ throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
+ }
+ return binding
+ } catch (e) {
+ loadErrors.push(e)
+ }
+ } else if (process.arch === 'arm') {
+ try {
+ return require('./capture-native.openharmony-arm.node')
+ } catch (e) {
+ loadErrors.push(e)
+ }
+ try {
+ const binding = require('@mimik/capture-native-openharmony-arm')
+ const bindingPackageVersion = require('@mimik/capture-native-openharmony-arm/package.json').version
+ if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
+ throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
+ }
+ return binding
+ } catch (e) {
+ loadErrors.push(e)
+ }
+ } else {
+ loadErrors.push(new Error(`Unsupported architecture on OpenHarmony: ${process.arch}`))
+ }
+ } else {
+ loadErrors.push(new Error(`Unsupported OS: ${process.platform}, architecture: ${process.arch}`))
+ }
+}
+
+function createLoadErrorChain(errors) {
+ return errors.reduce((previous, current) => {
+ let message
+ try {
+ message =
+ current && typeof current.message === 'string'
+ ? current.message
+ : String(current)
+ } catch {
+ message = 'Unknown error'
+ }
+ const error = new Error(message)
+ error.cause = previous
+ return error
+ }, null)
+}
+
+// NAPI_RS_FORCE_WASI is a tri-state flag:
+// unset / any other value β†’ native binding preferred, WASI is only a fallback
+// 'true' β†’ prefer WASI, but retain native as a lazy fallback
+// 'error' β†’ require WASI without initializing a native fallback
+// Treating any non-empty string as truthy (the historical behavior) meant
+// NAPI_RS_FORCE_WASI=false, NAPI_RS_FORCE_WASI=0, etc. inadvertently triggered
+// the WASI path, causing ENOENT for packages shipped without a .wasi.cjs file.
+//
+// NAPI_RS_WASI_FLAVOR selects one exact generated flavor and implies strict
+// WASI loading. It never crosses into another flavor or falls back to native.
+const __napiWasiFlavors = ['wasm32-wasi']
+const __napiWasiFlavor = process.env.NAPI_RS_WASI_FLAVOR
+const __napiWasiFlavorRequested =
+ typeof __napiWasiFlavor === 'string' && __napiWasiFlavor.length > 0
+if (
+ __napiWasiFlavorRequested &&
+ __napiWasiFlavors.indexOf(__napiWasiFlavor) === -1
+) {
+ throw new Error(
+ 'Unsupported WASI flavor "' +
+ __napiWasiFlavor +
+ '". Available flavors: ' +
+ __napiWasiFlavors.join(', '),
+ )
+}
+const forceWasiError = process.env.NAPI_RS_FORCE_WASI === 'error'
+const forceWasi =
+ process.env.NAPI_RS_FORCE_WASI === 'true' ||
+ forceWasiError ||
+ __napiWasiFlavorRequested
+
+if (!forceWasi) {
+ nativeBinding = requireNative()
+}
+
+if (!nativeBinding || forceWasi) {
+ let wasiBinding = null
+ let wasiBindingLoaded = false
+ const wasiBindingErrors = []
+ const __napiWasiResolveCandidate = (specifier, isPackage, localArtifacts) => {
+ try {
+ require.resolve(specifier)
+ } catch (resolveError) {
+ if (!resolveError || resolveError.code !== 'MODULE_NOT_FOUND') {
+ throw resolveError
+ }
+ if (isPackage) {
+ try {
+ require.resolve(specifier + '/package.json')
+ } catch (packageError) {
+ if (packageError && packageError.code === 'MODULE_NOT_FOUND') {
+ return resolveError
+ }
+ // An exports restriction proves the package exists even when its
+ // package.json is not public. Preserve the root resolution failure.
+ throw resolveError
+ }
+ // The package exists but its main/export target is broken.
+ throw resolveError
+ }
+ return resolveError
+ }
+ if (localArtifacts) {
+ let artifactError = null
+ for (let i = 0; i < localArtifacts.length; i++) {
+ try {
+ require.resolve(localArtifacts[i])
+ return null
+ } catch (resolveError) {
+ if (!resolveError || resolveError.code !== 'MODULE_NOT_FOUND') {
+ throw resolveError
+ }
+ artifactError = resolveError
+ }
+ }
+ return artifactError
+ }
+ return null
+ }
+ if (!wasiBindingLoaded && (!__napiWasiFlavorRequested || __napiWasiFlavor === 'wasm32-wasi')) {
+ let candidateError = null
+ let candidateFailed = false
+ try {
+ candidateError = __napiWasiResolveCandidate('./capture-native.wasi.cjs', false, ['./capture-native.wasm32-wasi.debug.wasm', './capture-native.wasm32-wasi.wasm'])
+ candidateFailed = candidateError !== null
+ if (!candidateFailed) {
+ wasiBinding = require('./capture-native.wasi.cjs')
+ nativeBinding = wasiBinding
+ __napiLoadedBindingTarget = 'wasm32-wasi'
+ wasiBindingLoaded = true
+ }
+ } catch (err) {
+ candidateError = err
+ candidateFailed = true
+ }
+ if (candidateFailed) {
+ wasiBindingErrors.push(candidateError)
+ loadErrors.push(candidateError)
+ }
+ }
+ if (!wasiBindingLoaded && (!__napiWasiFlavorRequested || __napiWasiFlavor === 'wasm32-wasi')) {
+ let candidateError = null
+ let candidateFailed = false
+ try {
+ candidateError = __napiWasiResolveCandidate('@mimik/capture-native-wasm32-wasi', true, undefined)
+ candidateFailed = candidateError !== null
+ if (!candidateFailed) {
+ if (process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
+ const bindingPackageVersion = require('@mimik/capture-native-wasm32-wasi/package.json').version
+ if (bindingPackageVersion !== '0.1.0') {
+ throw new Error(`WASI binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
+ }
+ }
+ wasiBinding = require('@mimik/capture-native-wasm32-wasi')
+ nativeBinding = wasiBinding
+ __napiLoadedBindingTarget = 'wasm32-wasi'
+ wasiBindingLoaded = true
+ }
+ } catch (err) {
+ candidateError = err
+ candidateFailed = true
+ }
+ if (candidateFailed) {
+ wasiBindingErrors.push(candidateError)
+ loadErrors.push(candidateError)
+ }
+ }
+ if (
+ !wasiBindingLoaded &&
+ forceWasi &&
+ !forceWasiError &&
+ !__napiWasiFlavorRequested
+ ) {
+ nativeBinding = requireNative()
+ }
+ if ((forceWasiError || __napiWasiFlavorRequested) && !wasiBindingLoaded) {
+ const error = new Error(
+ __napiWasiFlavorRequested
+ ? 'WASI binding for flavor "' + __napiWasiFlavor + '" not found'
+ : 'WASI binding not found and NAPI_RS_FORCE_WASI is set to error',
+ )
+ error.cause = createLoadErrorChain(wasiBindingErrors)
+ throw error
+ }
+}
+
+if (!nativeBinding) {
+ if (loadErrors.length > 0) {
+ const error = new Error(
+ `Cannot find native binding. ` +
+ `npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). ` +
+ 'Please try `npm i` again after removing both package-lock.json and node_modules directory.',
+ )
+ // assign instead of the `new Error(message, { cause })` options form,
+ // which Node < 16.9 silently ignores
+ error.cause = createLoadErrorChain(loadErrors)
+ throw error
+ }
+ throw new Error(`Failed to load native binding`)
+}
+
+function __napiStampBindingTarget(exportsObject, target) {
+ if (
+ Object.prototype.hasOwnProperty.call(exportsObject, '__napiBindingTarget')
+ ) {
+ if (exportsObject.__napiBindingTarget === target) {
+ // Already ours: the root entry aliases the object it loaded, so a WASI
+ // fallback candidate β€” or a `NAPI_RS_NATIVE_LIBRARY_PATH` override that
+ // is a generated loader β€” arrives already stamped with this same value.
+ return target
+ }
+ const error = new Error(
+ '`__napiBindingTarget` is reserved by the generated binding loader, but the loaded binding already exports it. Rename the export, e.g. #[napi(js_name = "...")].',
+ )
+ error.code = 'ERR_NAPI_BINDING_TARGET_CONFLICT'
+ throw error
+ }
+ if (!Object.isExtensible(exportsObject)) {
+ // A `#[napi(module_exports)]` hook may seal or freeze this object
+ // (`Object::seal` / `Object::freeze`). Reporting the artifact is metadata,
+ // never a reason to fail an otherwise successful load, so the stamp is
+ // skipped. What a consumer still sees then follows the entry point: the
+ // browser and deferred loaders declare `__napiBindingTarget` at module
+ // level and go on reporting it, while the CommonJS entries hand back this
+ // very object as `module.exports`, so there the value is absent.
+ return target
+ }
+ try {
+ // [[Define]], not [[Set]]: an ordinary assignment walks the prototype
+ // chain, so an inherited accessor could swallow the value or throw and
+ // fail an otherwise successful load. The descriptor is what a successful
+ // assignment would have produced.
+ Object.defineProperty(exportsObject, '__napiBindingTarget', {
+ configurable: true,
+ enumerable: true,
+ value: target,
+ writable: true,
+ })
+ } catch {
+ // Same rule as the non-extensible skip above: reporting the artifact is
+ // metadata, never a reason to fail an otherwise successful load. An exotic
+ // object (a Proxy whose defineProperty trap refuses) is skipped, not
+ // thrown over.
+ }
+ // The CommonJS loaders assign this return value so `cjs-module-lexer` β€” and
+ // therefore Node's CJS -> ESM named export detection β€” can see
+ // `__napiBindingTarget` statically.
+ return target
+}
+// Stamp before the alias, not after. The guard only reads `nativeBinding`
+// (`hasOwnProperty` plus a comparison), which is safe against any addon
+// accessor; an assignment is not, because a `#[napi(module_exports)]` hook can
+// expose a getter reporting this very value and a setter that throws. So the
+// assignment lands on the loader's own `module.exports`, still the original
+// object here, and the alias below replaces it.
+//
+// The assignment is what keeps the marker a statically visible CommonJS export:
+// `cjs-module-lexer` is Node's CJS -> ESM named export detection, it cannot see
+// a bare call, and the later `module.exports = nativeBinding` does not undo the
+// detection. The assignment itself always succeeds β€” its target is this
+// loader's own, still extensible `module.exports` β€” and the alias below then
+// discards the value it wrote. What a consumer reads is whatever the guard put
+// on `nativeBinding`, so on a frozen binding, where the guard skips, the
+// linked import resolves to `undefined`.
+module.exports.__napiBindingTarget = __napiStampBindingTarget(nativeBinding, __napiLoadedBindingTarget)
+module.exports = nativeBinding
+module.exports.elementAtPoint = nativeBinding.elementAtPoint
+module.exports.isSupported = nativeBinding.isSupported
diff --git a/packages/capture-native/package.json b/packages/capture-native/package.json
new file mode 100644
index 0000000..f318670
--- /dev/null
+++ b/packages/capture-native/package.json
@@ -0,0 +1,20 @@
+{
+ "name": "@mimik/capture-native",
+ "version": "0.1.0",
+ "private": true,
+ "description": "Accessibility metadata for the element under a screen point",
+ "main": "index.js",
+ "types": "index.d.ts",
+ "files": ["index.js", "index.d.ts", "*.node"],
+ "napi": {
+ "binaryName": "capture-native",
+ "targets": ["x86_64-pc-windows-msvc"]
+ },
+ "scripts": {
+ "build": "napi build --platform --release",
+ "build:windows": "napi build --platform --release --target x86_64-pc-windows-msvc --cross-compile"
+ },
+ "devDependencies": {
+ "@napi-rs/cli": "^3.0.0"
+ }
+}
diff --git a/packages/capture-native/rustfmt.toml b/packages/capture-native/rustfmt.toml
new file mode 100644
index 0000000..c8c2ef3
--- /dev/null
+++ b/packages/capture-native/rustfmt.toml
@@ -0,0 +1,2 @@
+tab_spaces = 2
+max_width = 110
diff --git a/packages/capture-native/src/lib.rs b/packages/capture-native/src/lib.rs
new file mode 100644
index 0000000..7237a30
--- /dev/null
+++ b/packages/capture-native/src/lib.rs
@@ -0,0 +1,61 @@
+#![deny(clippy::all)]
+
+use napi::bindgen_prelude::AsyncTask;
+use napi::{Env, Result, Task};
+use napi_derive::napi;
+
+#[cfg(windows)]
+mod win;
+
+#[napi(object)]
+pub struct ElementRect {
+ pub x: f64,
+ pub y: f64,
+ pub width: f64,
+ pub height: f64,
+}
+
+#[napi(object)]
+pub struct UiElement {
+ pub role: Option<String>,
+ pub name: Option<String>,
+ pub automation_id: Option<String>,
+ pub value: Option<String>,
+ pub help_text: Option<String>,
+ pub rect: Option<ElementRect>,
+}
+
+pub struct ElementAtPoint {
+ x: i32,
+ y: i32,
+}
+
+impl Task for ElementAtPoint {
+ type Output = Option<UiElement>;
+ type JsValue = Option<UiElement>;
+
+ #[cfg(windows)]
+ fn compute(&mut self) -> Result<Self::Output> {
+ win::element_at_point(self.x, self.y)
+ }
+
+ #[cfg(not(windows))]
+ fn compute(&mut self) -> Result<Self::Output> {
+ let _ = (self.x, self.y);
+ Ok(None)
+ }
+
+ fn resolve(&mut self, _env: Env, output: Self::Output) -> Result<Self::JsValue> {
+ Ok(output)
+ }
+}
+
+#[napi(ts_return_type = "Promise<UiElement | null>")]
+pub fn element_at_point(x: i32, y: i32) -> AsyncTask<ElementAtPoint> {
+ AsyncTask::new(ElementAtPoint { x, y })
+}
+
+#[napi]
+pub fn is_supported() -> bool {
+ cfg!(windows)
+}
diff --git a/packages/capture-native/src/win.rs b/packages/capture-native/src/win.rs
new file mode 100644
index 0000000..0fc6fe8
--- /dev/null
+++ b/packages/capture-native/src/win.rs
@@ -0,0 +1,128 @@
+use std::cell::RefCell;
+
+use napi::Result;
+use windows::core::{Interface, BSTR};
+use windows::Win32::Foundation::POINT;
+use windows::Win32::System::Com::{
+ CoCreateInstance, CoInitializeEx, CLSCTX_INPROC_SERVER, COINIT_MULTITHREADED,
+};
+use windows::Win32::UI::Accessibility::*;
+
+use crate::{ElementRect, UiElement};
+
+const ROLES: &[(UIA_CONTROLTYPE_ID, &str)] = &[
+ (UIA_ButtonControlTypeId, "button"),
+ (UIA_CalendarControlTypeId, "calendar"),
+ (UIA_CheckBoxControlTypeId, "checkbox"),
+ (UIA_ComboBoxControlTypeId, "combobox"),
+ (UIA_EditControlTypeId, "textbox"),
+ (UIA_HyperlinkControlTypeId, "link"),
+ (UIA_ImageControlTypeId, "img"),
+ (UIA_ListItemControlTypeId, "listitem"),
+ (UIA_ListControlTypeId, "list"),
+ (UIA_MenuControlTypeId, "menu"),
+ (UIA_MenuBarControlTypeId, "menubar"),
+ (UIA_MenuItemControlTypeId, "menuitem"),
+ (UIA_ProgressBarControlTypeId, "progressbar"),
+ (UIA_RadioButtonControlTypeId, "radio"),
+ (UIA_ScrollBarControlTypeId, "scrollbar"),
+ (UIA_SliderControlTypeId, "slider"),
+ (UIA_SpinnerControlTypeId, "spinbutton"),
+ (UIA_StatusBarControlTypeId, "status"),
+ (UIA_TabControlTypeId, "tablist"),
+ (UIA_TabItemControlTypeId, "tab"),
+ (UIA_TextControlTypeId, "text"),
+ (UIA_ToolBarControlTypeId, "toolbar"),
+ (UIA_ToolTipControlTypeId, "tooltip"),
+ (UIA_TreeControlTypeId, "tree"),
+ (UIA_TreeItemControlTypeId, "treeitem"),
+ (UIA_GroupControlTypeId, "group"),
+ (UIA_ThumbControlTypeId, "thumb"),
+ (UIA_DataGridControlTypeId, "grid"),
+ (UIA_DataItemControlTypeId, "row"),
+ (UIA_DocumentControlTypeId, "document"),
+ (UIA_SplitButtonControlTypeId, "button"),
+ (UIA_WindowControlTypeId, "window"),
+ (UIA_PaneControlTypeId, "pane"),
+ (UIA_HeaderControlTypeId, "rowgroup"),
+ (UIA_HeaderItemControlTypeId, "columnheader"),
+ (UIA_TableControlTypeId, "table"),
+ (UIA_TitleBarControlTypeId, "banner"),
+ (UIA_SeparatorControlTypeId, "separator"),
+ (UIA_AppBarControlTypeId, "toolbar"),
+];
+
+thread_local! {
+ static AUTOMATION: RefCell<Option<IUIAutomation>> = const { RefCell::new(None) };
+}
+
+fn automation() -> windows::core::Result<IUIAutomation> {
+ AUTOMATION.with(|cell| {
+ if let Some(found) = cell.borrow().as_ref() {
+ return Ok(found.clone());
+ }
+ unsafe {
+ let _ = CoInitializeEx(None, COINIT_MULTITHREADED);
+ }
+ let created: IUIAutomation = unsafe { CoCreateInstance(&CUIAutomation, None, CLSCTX_INPROC_SERVER)? };
+ *cell.borrow_mut() = Some(created.clone());
+ Ok(created)
+ })
+}
+
+fn clean(value: String) -> Option<String> {
+ let trimmed = value.trim();
+ if trimmed.is_empty() {
+ None
+ } else {
+ Some(trimmed.to_string())
+ }
+}
+
+fn text(value: windows::core::Result<BSTR>) -> Option<String> {
+ clean(value.ok()?.to_string())
+}
+
+fn role(id: UIA_CONTROLTYPE_ID) -> Option<String> {
+ ROLES
+ .iter()
+ .find(|(key, _)| key.0 == id.0)
+ .map(|(_, name)| (*name).to_string())
+}
+
+fn value_of(element: &IUIAutomationElement) -> Option<String> {
+ let pattern = unsafe { element.GetCurrentPattern(UIA_ValuePatternId) }.ok()?;
+ let value = pattern.cast::<IUIAutomationValuePattern>().ok()?;
+ text(unsafe { value.CurrentValue() })
+}
+
+fn rect_of(element: &IUIAutomationElement) -> Option<ElementRect> {
+ let found = unsafe { element.CurrentBoundingRectangle() }.ok()?;
+ let width = f64::from(found.right - found.left);
+ let height = f64::from(found.bottom - found.top);
+ if width <= 0.0 || height <= 0.0 {
+ return None;
+ }
+ Some(ElementRect {
+ x: f64::from(found.left),
+ y: f64::from(found.top),
+ width,
+ height,
+ })
+}
+
+pub fn element_at_point(x: i32, y: i32) -> Result<Option<UiElement>> {
+ let found = automation()
+ .and_then(|uia| unsafe { uia.ElementFromPoint(POINT { x, y }) })
+ .map_err(|error| napi::Error::from_reason(error.message()))?;
+
+ let help = text(unsafe { found.CurrentHelpText() });
+ Ok(Some(UiElement {
+ role: role(unsafe { found.CurrentControlType() }.unwrap_or_default()),
+ name: text(unsafe { found.CurrentName() }),
+ automation_id: text(unsafe { found.CurrentAutomationId() }),
+ value: value_of(&found),
+ help_text: help,
+ rect: rect_of(&found),
+ }))
+}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index e8133f3..daddcce 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -152,6 +152,9 @@ importers:
apps/desktop:
dependencies:
+ '@mimik/capture-native':
+ specifier: workspace:*
+ version: link:../../packages/capture-native
'@mimik/core':
specifier: workspace:*
version: link:../../packages/core
@@ -211,6 +214,12 @@ importers:
specifier: ^6.0.3
+ packages/capture-native:
+ devDependencies:
+ '@napi-rs/cli':
+ specifier: ^3.0.0
+ version: 3.10.4(@emnapi/[email protected])(@emnapi/[email protected])(@types/[email protected])
+
packages/core: {}
packages/ui: {}
@@ -513,15 +522,33 @@ packages:
resolution: {integrity: sha512-fKpv9kg4SPmt+hY7SVBnIYULE9QJl8L3sCfcBsnqbJwwBwAeTLokJ9TRt9y7bK0JAzIW2y78TVVjvnQEms/yyA==}
engines: {node: '>=16.4'}
+ '@emnapi/[email protected]':
+ resolution: {integrity: sha512-TC8MkTuZUtcTSiFeuC0ksCh9QIJ5+F21MvZ4Wn4ORfYaFJ/0dsiudv5tVkejgwZlwQ39jL9WWDe2lz8x0WglOA==}
+
'@emnapi/[email protected]':
resolution: {integrity: sha512-mukuNALVsoix/w1BJwFzwXBN/dHeejQtuVzcDsfOEsdpCumXb/E9j8w11h5S54tT1xhifGfbbSm/ICrObRb3KA==}
+ '@emnapi/[email protected]':
+ resolution: {integrity: sha512-UC+ZhH3XtczQYfOlu3lNEkdW/p4dsJ1r/bP7H8+rhao3TTTMO1ATq/4DdIi23XuGoFY+Cz0JmCbdVl0hz9jZcA==}
+
+ '@emnapi/[email protected]':
+ resolution: {integrity: sha512-kyOl3X0DuTiT1h2ft8r2fYO8JYtU9a9Xis/zBSiGArNaagCOWx90N1k2wxp18czFDH+OgcWGb5ZP/XMt3dcyPA==}
+
'@emnapi/[email protected]':
resolution: {integrity: sha512-VYi5+ZVLhpgK4hQ0TAjiQiZ6ol0oe4mBx7mVv7IflsiEp0OWoVsp/+f9Vc1hOhE0TtkORVrI1GvzyreqpgWtkA==}
+ '@emnapi/[email protected]':
+ resolution: {integrity: sha512-3U4+MIWHImeyu1wnmVygh5WlgfYDtyf0k8AbLhMFxOipihf6nrWC4syIm/SwEeec0mNSafiiNnMJwbza/Is6Lw==}
+
'@emnapi/[email protected]':
resolution: {integrity: sha512-N10dEJNSsUx41Z6pZsXU8FjPjpBEplgH24sfkmITrBED1/U2Esum9F3lfLrMjKHHjmi557zQn7kR9R+XWXu5Rg==}
+ '@emnapi/[email protected]':
+ resolution: {integrity: sha512-uTII7OYF+/Mes/MrcIOYp5yOtSMLBWSIoLPpcgwipoiKbli6k322tcoFsxoIIxPDqW01SQGAgko4EzZi2BNv2w==}
+
+ '@emnapi/[email protected]':
+ resolution: {integrity: sha512-c95qOXkHdydNKhscBTebqEC1CVAZpyqOfVfBzQ1qgzyl3gfeldUjIggDbIZgDKsHLgnsM+igH7TJ/eAasaVuMA==}
+
'@esbuild/[email protected]':
resolution: {integrity: sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==}
engines: {node: '>=12'}
@@ -1002,6 +1029,140 @@ packages:
resolution: {integrity: sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw==}
+ '@inquirer/[email protected]':
+ resolution: {integrity: sha512-WpQM+Ti6Z40EFwwt+uL2p4UabT+W179zHp6HhLVOzfbwnVn05IPO/eXIZXGNqcT1jbQ15SujNLzQ39k4QPPxBQ==}
+ engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'}
+
+ '@inquirer/[email protected]':
+ resolution: {integrity: sha512-bRt8J8m+Fot9CXv+zNQGXUq2ET0MggR1fPz7v6edN6MFYmsbfGnMmkmWZJEegMKqrAC8ej/o1sqisHZXZJMAfQ==}
+ engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'}
+ peerDependencies:
+ '@types/node': '>=18'
+ peerDependenciesMeta:
+ '@types/node':
+ optional: true
+
+ '@inquirer/[email protected]':
+ resolution: {integrity: sha512-Xvr/0HggjddPtGppuqVmxhTw+Hr8PvsZ/k0HmOEaAqQEt80OITNkFWnsdNmyT0/eM4Ab+iJLx2R8rctlEyfSVg==}
+ engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'}
+ peerDependencies:
+ '@types/node': '>=18'
+ peerDependenciesMeta:
+ '@types/node':
+ optional: true
+
+ '@inquirer/[email protected]':
+ resolution: {integrity: sha512-wsSy0sznmXwkty+2PzZwx00Cazc/E0r0B7mAzdGROz2Ct+DFZXaK7WDjGZvgjRldxH5ZhFVfF2lgkYrqgOw2KA==}
+ engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'}
+ peerDependencies:
+ '@types/node': '>=18'
+ peerDependenciesMeta:
+ '@types/node':
+ optional: true
+
+ '@inquirer/[email protected]':
+ resolution: {integrity: sha512-YsKkS2q63IiLtaDK/9nqzdComN97SDQrmKiyNggN+ceP4ty+Z6VwyTz3FpjeUWeW1Efss2xHFKCC9sx7hnrsxg==}
+ engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'}
+ peerDependencies:
+ '@types/node': '>=18'
+ peerDependenciesMeta:
+ '@types/node':
+ optional: true
+
+ '@inquirer/[email protected]':
+ resolution: {integrity: sha512-uHuXLmXW+TtIfT/9vSBotypAkqn1n34Ul+CLGPos/xANyO4Ff5xZzkYhbKR4NEcfVK4a9mHQOpwVZzluSHFRGw==}
+ engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'}
+ peerDependencies:
+ '@types/node': '>=18'
+ peerDependenciesMeta:
+ '@types/node':
+ optional: true
+
+ '@inquirer/[email protected]':
+ resolution: {integrity: sha512-f3QQJRIX5ZEneBHNUIuPjmbdzHnmRFJA8r2dkcb8q+OM5Uv5KtnuAttQumnrjcBVBM3mcTX1CkmtAkU58VRZxg==}
+ engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'}
+ peerDependencies:
+ '@types/node': '>=18'
+ peerDependenciesMeta:
+ '@types/node':
+ optional: true
+
+ '@inquirer/[email protected]':
+ resolution: {integrity: sha512-EAWgUTGQ/Umgga51dE3B2PUHbufuXarDfg86uVgoSgNHNNQnyFKcOrQLWVqYMghuSyHh8+2HUH0Js9cTC1WAdg==}
+ engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'}
+
+ '@inquirer/[email protected]':
+ resolution: {integrity: sha512-HtcJhB2QFVXbLuJ5S3syhNbTUVxYvwqV4VRBDkQceBloC9bmTViUoRFP5PbSaDZb3HzfPmpuU/gG4ybVBz4FHA==}
+ engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'}
+ peerDependencies:
+ '@types/node': '>=18'
+ peerDependenciesMeta:
+ '@types/node':
+ optional: true
+
+ '@inquirer/[email protected]':
+ resolution: {integrity: sha512-6Yuwh1NGSbu1Lo4N1EWjXs1jKRntLg/ZCwhmeorEHde90v1XxAozdbd4Iu30eOQLW+6h1hp2O9ujNfLSbTPJnA==}
+ engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'}
+ peerDependencies:
+ '@types/node': '>=18'
+ peerDependenciesMeta:
+ '@types/node':
+ optional: true
+
+ '@inquirer/[email protected]':
+ resolution: {integrity: sha512-W9zYdyzogK+6110mqwaSJWCBu2yA5Q/OfnGSjjZB1bNpHlmUozXxTl0+QOZBNeVd6Qo81/qT75gW05gLAtITxw==}
+ engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'}
+ peerDependencies:
+ '@types/node': '>=18'
+ peerDependenciesMeta:
+ '@types/node':
+ optional: true
+
+ '@inquirer/[email protected]':
+ resolution: {integrity: sha512-QoRB4wFIjgH5iOhSjoIKMkTvSHDuV+O3OITlIqAYO0oK5x364GJILXiMBvlPiE+klg7Xx9tq5XVqQHcGUDYYPA==}
+ engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'}
+ peerDependencies:
+ '@types/node': '>=18'
+ peerDependenciesMeta:
+ '@types/node':
+ optional: true
+
+ '@inquirer/[email protected]':
+ resolution: {integrity: sha512-1oHky1ONfCOwNrnkQGDE1oaSij/3fI6HFMSf2H/WsGO2lEyDX9My82iggITSy9ddSZ8yk8j9v41OI0fVoSIoaA==}
+ engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'}
+ peerDependencies:
+ '@types/node': '>=18'
+ peerDependenciesMeta:
+ '@types/node':
+ optional: true
+
+ '@inquirer/[email protected]':
+ resolution: {integrity: sha512-fyuIU1Nbpvwlikjg3gXwJFDI11+EFjqQ7P+iByfmivIKQ1vmaykNrD/vy5unHuUqUpsOsnvJ25//tPF7E/RBRA==}
+ engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'}
+ peerDependencies:
+ '@types/node': '>=18'
+ peerDependenciesMeta:
+ '@types/node':
+ optional: true
+
+ '@inquirer/[email protected]':
+ resolution: {integrity: sha512-9kc15hr8r/kI+3DO/xLog5nOzTz1jqsHXa6JBFzmQKhkoJ8Slda1I1L/uD8ZSZ9tF1yp79wwXe7mclvX1rqR2Q==}
+ engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'}
+ peerDependencies:
+ '@types/node': '>=18'
+ peerDependenciesMeta:
+ '@types/node':
+ optional: true
+
+ '@inquirer/[email protected]':
+ resolution: {integrity: sha512-yJoHYrMnxIsJZCY+0Vb66Dy3he3kL3e2wOBKhoSwWWAzZAY82emlxwgprCtp6yRixvNRNq9ztfRWQYPNr3Go7A==}
+ engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'}
+ peerDependencies:
+ '@types/node': '>=18'
+ peerDependenciesMeta:
+ '@types/node':
+ optional: true
+
'@isaacs/[email protected]':
resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==}
engines: {node: '>=12'}
@@ -1042,6 +1203,128 @@ packages:
resolution: {integrity: sha512-Yhlar6v9WQgUp/He7BdgzOz8lqMQ8sU+jkCq7Wx8Myc5YFJLbEe7lgui/V7G1qB1DJykHSGwreceSaD60Y0PUQ==}
hasBin: true
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-7yvXpu/m4p1Re1/DViAooSYAyivYEhqDrjuq66a6haXLEAKrZSzndG7B850g1irngI1pAdZS5xL4tsu0xQ8P9Q==}
+ engines: {node: ^20.17.0 || ^22.13.0 || >= 23.5.0}
+ hasBin: true
+ peerDependencies:
+ '@emnapi/core': ^1.7.1 || ^2.0.0-alpha.4
+ '@emnapi/runtime': ^1.7.1 || ^2.0.0-alpha.4
+ emnapi: ^1.7.1 || ^2.0.0-alpha.4
+ peerDependenciesMeta:
+ '@emnapi/core':
+ optional: true
+ '@emnapi/runtime':
+ optional: true
+ emnapi:
+ optional: true
+
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-ENPfLe4937bsKVTDA6zdABx4pq9w0tHqRrJHyaGxgaPq03a2Bd1unD5XSKjXJjebsABJ+MjAv1A2OvCgK9yehg==}
+ peerDependencies:
+ '@napi-rs/cross-toolchain-arm64-target-aarch64': ^1.0.3
+ '@napi-rs/cross-toolchain-arm64-target-armv7': ^1.0.3
+ '@napi-rs/cross-toolchain-arm64-target-ppc64le': ^1.0.3
+ '@napi-rs/cross-toolchain-arm64-target-s390x': ^1.0.3
+ '@napi-rs/cross-toolchain-arm64-target-x86_64': ^1.0.3
+ '@napi-rs/cross-toolchain-x64-target-aarch64': ^1.0.3
+ '@napi-rs/cross-toolchain-x64-target-armv7': ^1.0.3
+ '@napi-rs/cross-toolchain-x64-target-ppc64le': ^1.0.3
+ '@napi-rs/cross-toolchain-x64-target-s390x': ^1.0.3
+ '@napi-rs/cross-toolchain-x64-target-x86_64': ^1.0.3
+ peerDependenciesMeta:
+ '@napi-rs/cross-toolchain-arm64-target-aarch64':
+ optional: true
+ '@napi-rs/cross-toolchain-arm64-target-armv7':
+ optional: true
+ '@napi-rs/cross-toolchain-arm64-target-ppc64le':
+ optional: true
+ '@napi-rs/cross-toolchain-arm64-target-s390x':
+ optional: true
+ '@napi-rs/cross-toolchain-arm64-target-x86_64':
+ optional: true
+ '@napi-rs/cross-toolchain-x64-target-aarch64':
+ optional: true
+ '@napi-rs/cross-toolchain-x64-target-armv7':
+ optional: true
+ '@napi-rs/cross-toolchain-x64-target-ppc64le':
+ optional: true
+ '@napi-rs/cross-toolchain-x64-target-s390x':
+ optional: true
+ '@napi-rs/cross-toolchain-x64-target-x86_64':
+ optional: true
+
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-sahBe4ko2Z69NPTddaX6ZgbQZu9SDoITxw1S3dWl1gAGynZG34qHHCT8UaUMFxf3h3zMhCJjEzz4basaBxiTuQ==}
+ engines: {node: ^22.20 || ^24.12 || >=25}
+ cpu: [arm]
+ os: [android]
+
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-7tkQAJJuBHxAxiEBNFgSTpvrtGpbwZYYJUSOmGEK3OfbdbNeoT2rdBxpM/gY1s+itEVbtOSlpaRPPG19MnwOzA==}
+ engines: {node: ^22.20 || ^24.12 || >=25}
+ cpu: [arm64]
+ os: [android]
+
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-XWX8gtF+GHGk3nH3Wm3QUZNcxw9QHsFVZz3MzVLhWWHhceede1J4/vD+3dj3E1iKB9G6mualaZxOoD08R3E+7g==}
+ engines: {node: ^22.20 || ^24.12 || >=25}
+ cpu: [arm64]
+ os: [darwin]
+
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-CfsqUpMTI1z8enrA/b+GcHM6YDI8D0kqCiqPYEnst4rbOABQ9KZ92ybTTNnlnZ7A017WoMZKUEWc36KXDwi0xg==}
+ engines: {node: ^22.20 || ^24.12 || >=25}
+ cpu: [x64]
+ os: [darwin]
+
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-bTyNfg90FXIgE61U7l14aMmVOqRQ6AyP5JMT3jmCStaZI18apLNPdzZ8i7yqxZfKvRMVfPjE2brXIw27c+RRgA==}
+ engines: {node: ^22.20 || ^24.12 || >=25}
+ cpu: [x64]
+ os: [freebsd]
+
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-vNE+D8nrw+eOkBsdKCsmDhowDV3pIMKXEhedvXfbgrWbrO7GlZJH+RXL+X+RYLxGwi8Ym61ZMt15sIOnNmh9Sw==}
+ engines: {node: ^22.20 || ^24.12 || >=25}
+ cpu: [arm]
+ os: [linux]
+
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-csUem4WgoKGTprv/pOPm9UIWbb+hrfUwYXefpTHPAEGVFLl5behEFabisJ7FtihCa3yG2Efcl+yw25rlhhrIYw==}
+ engines: {node: ^22.20 || ^24.12 || >=25}
+ cpu: [arm64]
+ os: [linux]
+ libc: [glibc]
+
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-kB/xhlVN1eLvVmDJSKZEjp5Gg2xDYexNrB5jwpSMbOkeGS6N9AasByPBg5VqCpMYC+zZi7DM458DRhtWYhqXTQ==}
+ engines: {node: ^22.20 || ^24.12 || >=25}
+ cpu: [arm64]
+ os: [linux]
+ libc: [musl]
+
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-s28RW0W1yBWQc1nbPdF7tp14koqslY3ZWLVI8uaanX292Dc6ezd4NPVwxEoCNBVON/oD7BmUbWGtyFvmm7dQ5A==}
+ engines: {node: ^22.20 || ^24.12 || >=25}
+ cpu: [ppc64]
+ os: [linux]
+ libc: [glibc]
+
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-+lGNwYlIN14YPMTNvYtIJJqHFevDTd6Juw/1NmXbWx/iRd/LLrjhlM/yluMX6pxs6NkOGsuuEXJJrbbEUS59OQ==}
+ engines: {node: ^22.20 || ^24.12 || >=25}
+ cpu: [riscv64]
+ os: [linux]
+ libc: [glibc]
+
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-PB44FFWWFrLeQowhcep1hPD1YcLqKlnnY60RMU74qrxTlr4YGEyzeMItJqh2uivBfv9kQScOF/B0J9+Vab/oyw==}
+ engines: {node: ^22.20 || ^24.12 || >=25}
+ cpu: [s390x]
+ os: [linux]
+ libc: [glibc]
+
'@napi-rs/[email protected]':
resolution: {integrity: sha512-oTXEIha4SsuXdTA4Iyskj0kpdx2yVXdhd75c2v3xGrHFfVMsbhTPZU/nMPL4sWKo4pBHm3aucLaqGlF696dTyQ==}
engines: {node: ^22.20 || ^24.12 || >=25}
@@ -1049,9 +1332,240 @@ packages:
os: [linux]
libc: [glibc]
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-I3nsYrWtrW9JpeCr+mkJIVDt0HY3m6qVUBs5vTtoIvJQxwqf1PBXSy5IS7T53ksQFH2kd2UX8rLxJ7B4WISpZg==}
+ engines: {node: ^22.20 || ^24.12 || >=25}
+ cpu: [x64]
+ os: [linux]
+ libc: [musl]
+
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-gy3wwPBa6+XEyA4fUzq6CClrXA1ajXjuVf5zbnHytJRgoHznj+mvpU3+co2fxXwqTCmIpn6KrzqH5bRDztBPhA==}
+ engines: {node: ^22.20 || ^24.12 || >=25}
+ cpu: [wasm32]
+
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-dK+huOsHiyH6oJjij+cnjqFCakk2HgWmpI12Xm4pLUyPphe4ebYoJBgehaNAxprmjFqBQ7nL95YPVz9BHyqmPg==}
+ engines: {node: ^22.20 || ^24.12 || >=25}
+ cpu: [arm64]
+ os: [win32]
+
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-dGE8L+0EQ+GyU9ap9InqB/t/PmPG/bLj918q7OsJ29FuTdn8fK4OX3U4IQZhylHIA+/dQ/SXJk5n4yfah2XVvA==}
+ engines: {node: ^22.20 || ^24.12 || >=25}
+ cpu: [ia32]
+ os: [win32]
+
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-EKW4t/iqdCT/xnd5t9oXLvVER/PMNAWXKqUAl3fgvUcOILeZIIht77/dVnfFcc9htA/DCBXC/6YQWdW+LusjFA==}
+ engines: {node: ^22.20 || ^24.12 || >=25}
+ cpu: [x64]
+ os: [win32]
+
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-sgOZ89+y8cDbY+3WbzR8CtIhCuFRWotZ9/2PjPVDJHz6np5KFTAev0DrwiyTJTgFsCRDhfGlbmhMgyhHbWdZ6g==}
+ engines: {node: ^22.20 || ^24.12 || >=25}
+
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-cAhnA10cSusAUbcE9HtjQY/tZ9BH/0w2sKtRcQc94TzIlnm7QSr1htJSd/PPrbWNPtrv1orXb2CkrHlVlbnlHA==}
+ engines: {node: '>= 10'}
+ cpu: [arm]
+ os: [android]
+
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-EslUWHCDBY/g5abTPBiHLsMaML4GagV0TXLm5WL9hAjx/DDtlxz9fegMb77RJ+f7nFLOIsUxF/3QWFvgOT0sMQ==}
+ engines: {node: '>= 10'}
+ cpu: [arm64]
+ os: [android]
+
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-+A42/6ES5G9CQ35BOwzwA+WBjLID28r2jNPgc0dteD2hhClIhng0mva7D2ujUlXBNmgNOsr1LHn3stA4uTf4NQ==}
+ engines: {node: '>= 10'}
+ cpu: [arm64]
+ os: [darwin]
+
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-RYtE8w1dkEvj8hSJCDV5Jw0Rz2i13fsM7u893zv5O9n/4Ad5GNsw/f4RQ7/0YGSFaenkVxqPFrjmEvUHlKzsrg==}
+ engines: {node: '>= 10'}
+ cpu: [x64]
+ os: [darwin]
+
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-rEepBvCJUwcuvUYkY83e8aot8RsR5Jcnal4PsG3tbWGKW1yAvcXhyMXf0fN6ZGpVRZFnB+FJqDyBxvsCPEXKhw==}
+ engines: {node: '>= 10'}
+ cpu: [x64]
+ os: [freebsd]
+
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-an1bJdfyhI5FpZYyTQ20mrqwR+a676i8GkaYc4Uy12dH/a7TJIfrK6Qa2Gm46arZvxUvx56qxoRKXbpOjUPvwA==}
+ engines: {node: '>= 10'}
+ cpu: [arm]
+ os: [linux]
+
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-w++Vtx36T2yHTKws7GVnmHHcUT1ybB59xLWSh9A8bwEpJVG4dG7Qub9mFe5cpcbfrJ+XP2mKKxC3oUJSunK3iQ==}
+ engines: {node: '>= 10'}
+ cpu: [arm64]
+ os: [linux]
+ libc: [glibc]
+
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-Rh6UFhNtj3i4deJHOBINFIeRL0072mgbeyuK5rl1HokKnNoMKx8qKIZNEzBTTqpogMfDHWGvzyTQdnVxes5dpA==}
+ engines: {node: '>= 10'}
+ cpu: [arm64]
+ os: [linux]
+ libc: [musl]
+
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-Cp+AxFbv9zcyAXtnzQi0OzmgDnQgy2w9D4Ubr+iwzMtVgJcztzcEoCcCrN1k2ATdEB01LX2Vb49IaocGOZhC9Q==}
+ engines: {node: '>= 10'}
+ cpu: [ppc64]
+ os: [linux]
+ libc: [glibc]
+
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-ZyscC3SYKTBWyDRYjLOKAd5TyJ7q0KACRdQ8bWrb3rgrra1CCIJD66CsGTH6Dh0AVSdfLwZ8MfIIXU6+14BMjQ==}
+ engines: {node: '>= 10'}
+ cpu: [s390x]
+ os: [linux]
+ libc: [glibc]
+
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-LlIv+zg4fiOQge9LQX/ieBdRWE2fhVDjCTHxnunZkbugNmdhdelxWf1RpZb/6ZujWpNF4LPu4N/MW7ygg2oYAQ==}
+ engines: {node: '>= 10'}
+ cpu: [x64]
+ os: [linux]
+ libc: [glibc]
+
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-gZBeoKLjanOVj55qk4EMu13P2i9M0SuINmlGQkOxm1niIJofexzddHUYtqO5o/5QqtyL8lADmAcZplLILMLhHA==}
+ engines: {node: '>= 10'}
+ cpu: [x64]
+ os: [linux]
+ libc: [musl]
+
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-rwtQ1Mdt/ft6g6I54fJzbUeLspl4yTwj6I3UJ6mitKnrN42soJkcDrdh3Y/FGvlpqZTad2YMQ96fGJl3EtAm2Q==}
+ engines: {node: '>=14.0.0'}
+ cpu: [wasm32]
+
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-30PVp1AehRpfwxmv5wI4cg0yj3WmWBsZ+1QnLGnvEELu7Eu/+dhNU0nrmhI7VfPgLwSRK2eg9DQTB3tP7Wv9bA==}
+ engines: {node: '>= 10'}
+ cpu: [arm64]
+ os: [win32]
+
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-aI3/rmz+izUChiSeaPxcasAOxhf3FpJNuIHMXlxS/vpW+HIxUsSDR5+XV61PEG5DL4L/75iENVUxmSGM5l2yaw==}
+ engines: {node: '>= 10'}
+ cpu: [ia32]
+ os: [win32]
+
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-yJsB2IsrODQVLKbm2Fg1nHiVRbEj49mSPbj4x7JPZWJI0jGVPjohE2Sif0FBbx8OxsVoUODvS0BwksZZ8jl/OA==}
+ engines: {node: '>= 10'}
+ cpu: [x64]
+ os: [win32]
+
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-p6q2HhUc5vwH1CNwfOcrhLoxfgn8ust8Sqlfx+sA4VzAcp1cMbvbkl99tZZlDqOjCHgQNSiTfk/yWPjl/D42qA==}
+ engines: {node: '>= 10'}
+
'@napi-rs/[email protected]':
resolution: {integrity: sha512-p64ah1M1ld8xjWv3qbvFwHiFVWrq1yFvV4f7w+mzaqiR4IlSgkqhcRdHwsGgomwzBH51sRY4NEowLxnaBjcW/A==}
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-AJxoUD2/15ESHbvpcyjU274nsAPLuOtPHCk0vKJM5pj//Fg/B1FXNWjPnXTT9PymCYYiHo4zPj0ZomXBKhoy7g==}
+ engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0}
+ peerDependencies:
+ '@emnapi/core': ^1.7.1 || ^2.0.0-alpha.4
+ '@emnapi/runtime': ^1.7.1 || ^2.0.0-alpha.4
+
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-p6J8PB59I8d/XItXB/go5JH6nKW+xIbpzaL43EBTV0hi7mrS/Z4gs+MsB04ZrlqZN29BdZV8fChRyasuXLhRaA==}
+ engines: {node: '>= 12.22.0'}
+ cpu: [arm]
+ os: [android]
+
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-lWoKN3suypeBSCIRPIw+++sH9V2K6nQkhtdt1opu7XY3v9JwLs6Gw063HWRqkNjphlYpkd/Qy8XcfSPGbJj7nQ==}
+ engines: {node: '>= 12.22.0'}
+ cpu: [arm64]
+ os: [android]
+
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-jfw5vyNDUf6oe0kP8lMveFN9U7cLk1cUosS7uMIfw/xmqmopYfKQ198DAx2g/6aEF7Tm+CqER2gpMpYKui30LA==}
+ engines: {node: '>= 12.22.0'}
+ cpu: [arm64]
+ os: [darwin]
+
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-R+pjeudAB7BYdH1vKkOJM61Tfv5jB6uXkxmFscYd+KKpdUpWBlNG+s4hr0w4i1rMBM91VhIAETZn2pz+MDHK9A==}
+ engines: {node: '>= 12.22.0'}
+ cpu: [x64]
+ os: [darwin]
+
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-hQJTe+aazrT++Vgm6I4lUd9099ItUCFYdd+aKg6Ys6nax6d/cZ1barDLTwA2lwOoVDsXMekJI/FOL6ZvVlIYBg==}
+ engines: {node: '>= 12.22.0'}
+ cpu: [x64]
+ os: [freebsd]
+
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-1TAXJxUHsWGar90k3W/MknavvBMwOWzjh7Q6Spxo8twRcWJbBD5Kow/Q2KhhDq5hxh2sKGDXn3uLc1tdtz4WUg==}
+ engines: {node: '>= 12.22.0'}
+ cpu: [arm64]
+ os: [linux]
+ libc: [glibc]
+
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-7rw3nlubTjNAVRH2LwphCxHy1b/N2/TerXocQ6XRn4Q+buaY1Z7P/hbdALy1i1ex2yfOU2Xcij7ib7ZLi/lKfw==}
+ engines: {node: '>= 12.22.0'}
+ cpu: [arm64]
+ os: [linux]
+ libc: [musl]
+
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-1sel0t9MRjI/tdT89M8Dd6gPfANeeFP24Xa46R11WeHNwhjsXXZh+xUk50uWCRTSGcaCy3ugm3AMK/lmHYQJkg==}
+ engines: {node: '>= 12.22.0'}
+ cpu: [x64]
+ os: [linux]
+ libc: [glibc]
+
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-o2jH5AMfor4EKF2HII1LBnMQxoWu7+usPifTEY8Zk6e9OiSi4EJkAXf9v3ANlX7TI2V/cUEV34OEW7r10GiVIA==}
+ engines: {node: '>= 12.22.0'}
+ cpu: [x64]
+ os: [linux]
+ libc: [musl]
+
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-s6YDtDR1UWrsqJPtaxf+JLYLceWVyn3l8OpQYElHkDhf3Qfz9R6Ba3S0OgznTBv38L5/TIHysQ9Q4yO73Z0csg==}
+ engines: {node: '>=14.0.0'}
+ cpu: [wasm32]
+
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-x+NuxbG84VxU68tU8w7Rf5lSyq0l584M6dVlke5DTweHYFZoMyeqkpbwEq+qsyAX6ivfipK8xRsmFwamb5uDnA==}
+ engines: {node: '>= 12.22.0'}
+ cpu: [arm64]
+ os: [win32]
+
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-mdD96QDEp70SX67rXFTY6c725nVYeqEEjyDqzzbNh6u1APj7CI7IMNpMmvE75XbCRl4C2MHZVU4U6AWdAzvyQQ==}
+ engines: {node: '>= 12.22.0'}
+ cpu: [ia32]
+ os: [win32]
+
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-bVVjuvhlyVX++3eJXfDR63cXdw1ay5QYac6iq0MKQw8wZARInTM+bXCtByDT4fzVFI3+7ZthYb/ERWRdBNIqgQ==}
+ engines: {node: '>= 12.22.0'}
+ cpu: [x64]
+ os: [win32]
+
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-VjHyKEqXAwYZK+HY7iJctYvRm3TFEbaQxeZwvAG1QRkoo1a39phMY8J6x9tUEqJI03W6MysB8F2jacI6wvcx+w==}
+ engines: {node: '>= 12.22.0'}
+
'@nodelib/[email protected]':
resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==}
engines: {node: '>= 8'}
@@ -1081,6 +1595,64 @@ packages:
engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}
deprecated: This functionality has been moved to @npmcli/fs
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-P4YJBPdPSpWTQ1NU4XYdvHvXJJDxM6YwpS0FZHRgP7YFkdVxsWcpWGy/NVqlAA7PcPCnMacXlRm1y2PFZRWL/w==}
+ engines: {node: '>= 20'}
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-L7y8eYc+AwxGr2PWI4WFt1VG4TiJ66c26BD16mXpYIlXxG0SMigM1+m4aTSlYyBr5BlQsGAlz8uDCoZN4SEMcg==}
+ engines: {node: '>= 20'}
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-iXa654H3yFafF/ieHkukfbgWo2rmXD2ceD0ZOtrPhw1bc3FDch1d9N/TNs0FQ1/cIbwb7kspUX8jzIs8nzb9DQ==}
+ engines: {node: '>= 20'}
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-bt/hm03LeU6Vy7FwTrkkC9p3XGT/lBwClglMqxBSe5/q0E5CdJTXeAqEI0vlw89/LF/G6tryTIH8HirZ3prMVg==}
+ engines: {node: '>= 20'}
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-whrdktVs1h6gtR+09+QsNk2+FO+49j6ga1c55YZudfEG+oKJVvJLQi3zkOm5JjiUXAagWK2tI2kTGKJ2Ys7MGA==}
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-9qWOMFNxxLokERcms42rU0PTLqQmVs7g5E41TI4mCOxmpFayD1rfC7XxOL55cG9MBZLFlC31BrR37myMKardwg==}
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-fNVRE7ufJiAA3XUrha2omTA39M6IXIc6GIZLvlbsm8QOQCYvpq/LkMNGyFlB1d8hTDzsAXa3OKtybdMAYsV/fw==}
+ engines: {node: '>= 20'}
+ peerDependencies:
+ '@octokit/core': '>=6'
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-UkOzeEN3W91/eBq9sPZNQ7sUBvYCqYbrrD8gTbBuGtHEuycE4/awMXcYvx6sVYo7LypPhmQwwpUe4Yyu4QZN5Q==}
+ engines: {node: '>= 20'}
+ peerDependencies:
+ '@octokit/core': '>=6'
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-B5yCyIlOJFPqUUeiD0cnBJwWJO8lkJs5d8+ze9QDP6SvfiXSz1BF+91+0MeI1d2yxgOhU/O+CvtiZ9jSkHhFAw==}
+ engines: {node: '>= 20'}
+ peerDependencies:
+ '@octokit/core': '>=6'
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-XZRuT3xZ84D3gYErI1DZvhJ33dCWVV6uzBtWkaBB4TvA/L6eOeTZodxLFVB44bBEEo3vEx7y00UfX1tBLrtLRg==}
+ engines: {node: '>= 20'}
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-A0zWGjHzISIb+9ccG8s0dq7LKO5zVpJLRICjgUb+sJxEWqn8RUHB1rD3AE51+PECvXHIxqZ1VVvs4fHTSD9nUQ==}
+ engines: {node: '>= 20'}
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-Jzbhzl3CEexhnivb1iQ0KJ7s5vvjMWcmRtq5aUsKmKDrRW6z3r84ngmiFKFvpZjpiU/9/S6ITPFRpn5s/3uQJw==}
+ engines: {node: '>= 20'}
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-sKq+9r1Mm4efXW1FCk7hFSeJo4QKreL/tTbR0rz/qx/r1Oa2VV83LTA/H/MuCOX7uCIJmQVRKBcbmWoySjAnSg==}
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-l6bAF43PNxkJp6g+W4PjoUSSkxHomXw2nOum5CTftJz1NlV3vu93NImgOYtLf6CbBUb5j+fiuzW0PPQ5JTSvZA==}
+
'@opentelemetry/[email protected]':
resolution: {integrity: sha512-3giAOQvZiH5F9bMlMiv8+GSPMeqg0dbaeo58/0SlA9sxSqZhnUtxzX9/2FzyhS9sWQf5S0GJE0AKBrFqjpeYcg==}
engines: {node: '>=8.0.0'}
@@ -2171,6 +2743,9 @@ packages:
resolution: {integrity: sha512-9tTaPJLSiejZKx+Bmog4uSubteqTvFrVrURwkmHixBo0G4seD0zUxp98E1DzUBJxLQ3NPwXrGKDiVjwx/DpPsg==}
+ '@tybys/[email protected]':
+ resolution: {integrity: sha512-W3c4gRigFS0T/Ma4qIYF3GDAc5AQdHb1yL5znJT1Zv1YaD9Kitx656wBjvr19qbiosmZT8lWDM5BEMynUqX65A==}
+
resolution: {integrity: sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw==}
@@ -2572,6 +3147,9 @@ packages:
engines: {node: '>=6.0.0'}
hasBin: true
+ resolution: {integrity: sha512-q6tR3RPqIB1pMiTRMFcZwuG5T8vwp+vUvEG0vuI6B+Rikh5BfPp2fQ82c925FOs+b0lcFQ8CFrL+KbilfZFhOQ==}
+
resolution: {integrity: sha512-RKshQI1R3YQ+n9YJz2QQ147P66ELpa1FQEg20Dk8oW9t2KgLbpDLLp9aGZ7y8WHSshDknG0bknqGw5/tyCs5tw==}
@@ -2700,6 +3278,9 @@ packages:
resolution: {integrity: sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==}
engines: {node: ^12.17.0 || ^14.13 || >=16.0.0}
+ resolution: {integrity: sha512-rddelWYNPRrXq6PtNEN2S3f6t9ILzvqaN5pVgi4kqt9jHQaXIial9PznB5iSPVlQSLNaaH22ItWz3EJtQ10+OA==}
+
resolution: {integrity: sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==}
engines: {node: '>= 20.19.0'}
@@ -2761,6 +3342,15 @@ packages:
resolution: {integrity: sha512-xRwvIOMGrfOAnM1JYtqQImuaNtDEv9v6oIYAs4LIHwTiKee8uwvIi363igssOC0O5U04i4AlENs79LQLu9tEMw==}
engines: {node: '>=20'}
+ resolution: {integrity: sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ==}
+ engines: {node: '>= 12'}
+
+ resolution: {integrity: sha512-CXkMQxU6s9GklO/1f714dkKBMu1lopS1WFF0B8o4AxPykR1hpozxSiUZ5ZUeBjfPgCWqbcNOtZVFhB8Lkfp1+Q==}
+ peerDependencies:
+ typanion: '*'
+
resolution: {integrity: sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==}
engines: {node: '>=12'}
@@ -2787,6 +3377,9 @@ packages:
resolution: {integrity: sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==}
hasBin: true
+ resolution: {integrity: sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==}
+
resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==}
engines: {node: '>= 0.8'}
@@ -2841,6 +3434,10 @@ packages:
resolution: {integrity: sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==}
+ resolution: {integrity: sha512-GW4qUsfFo59d0HbUibDlWv5wPz+vAAcaTWbKIuKCf0JkC7wWkSyf8f13IpXn5JkeMlB2P8iTSSIjwXljorg2vA==}
+ engines: {node: '>=22'}
+
resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==}
@@ -3165,6 +3762,9 @@ packages:
resolution: {integrity: sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==}
engines: {node: '>= 0.4'}
+ resolution: {integrity: sha512-XTNEJQh1tY1ZJVcf6ayP/2n4ZPyaHlW2FWs7xvw5ddPuhUVjLD3olQVQS7kf58JbAB48iL0uL/jerTrjtV3lDA==}
+
resolution: {integrity: sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==}
@@ -3249,6 +3849,15 @@ packages:
resolution: {integrity: sha512-dwsoQlS7h9hMeYUq1W++23NDcBLV4KqONnITDV9DjfS3q1SgDGVrBdvvTLUotWtPSD7asWDV9/CmsZPy8Hf70A==}
engines: {node: '>=6'}
+ resolution: {integrity: sha512-0jjjIEL6+0jag3l2XWWizO64/aZVtpiGE3t0Zgqxv0DPuxiMjvB3M24fCyhZUO4KomJQPj3LTSUnDP3GpdwC0g==}
+
+ resolution: {integrity: sha512-gX8LrtNEI5hq8DVUfRQMbr5lpaS4nMIWV+7XEbXk2b8kiQIizgnlr12B4dA3ZEx3308ze0O4Q1R+cHts8kyUJg==}
+
+ resolution: {integrity: sha512-7F2Fl+TjRSenLqlU3UjSH0iyqopqoZIu7eZVpEirP2g1GtWa2G/ecEmBdgz31+Mxr+ELclgg6sokpSFIQiZ02Q==}
+
resolution: {integrity: sha512-GGToxJ/w1x32s/D2EKND7kTil4n8OVk/9mycTc4VDza13lOvpUZTGX3mFSCtV9ksdGBVzvsyAVLM6mHFThxXxw==}
@@ -3548,6 +4157,10 @@ packages:
resolution: {integrity: sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==}
engines: {node: '>=0.10.0'}
+ resolution: {integrity: sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==}
+ engines: {node: '>=0.10.0'}
+
resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==}
@@ -3753,6 +4366,10 @@ packages:
resolution: {integrity: sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA==}
hasBin: true
+ resolution: {integrity: sha512-m+aqu+LwO1O6sIopafj8HUVl5aawITwZQe/yHpMCKjaWBaA/d07B/QdMb3529REftiU+RMMHL3Vlsw3hON7vWg==}
+ hasBin: true
+
resolution: {integrity: sha512-z6JOK5gRO7aMybVq/y/MlIpKh8JIi68FBKMUtKkK2KH/wMSRlCxQ682d08LB9fYXplyY/UXG8P4XXTScmdjApg==}
engines: {node: ^20.19.0 || ^22.13.0 || >=24.0.0}
@@ -3783,6 +4400,9 @@ packages:
resolution: {integrity: sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==}
+ resolution: {integrity: sha512-uwbF/wSSuOgC7qqlq27Xp5B6a2MHVug3t0idZdTqu0JnlFvgJuH7ju+KAk/J06C7GfhoYy2gnb9wz2INqcne7w==}
+
resolution: {integrity: sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==}
engines: {node: '>=6'}
@@ -4195,6 +4815,10 @@ packages:
resolution: {integrity: sha512-I7tSVxHGPlmPN/enE3mS1aOSo6bWBfls+3HmuEeCUBCE7gWnm3cBXCBkpurzFjVRwC6Kld8lLaZ1Iv5vOcjvcQ==}
engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
+ resolution: {integrity: sha512-dkEJPVvun4FryqBmZ5KhDo0K9iDXAwn08tMLDinNdRBNPcYEDiWYysLcc6k3mjTMlbP9KyylvRpd4wFtwrT9rw==}
+ engines: {node: ^20.17.0 || >=22.9.0}
+
resolution: {integrity: sha512-tacvGzUY5o2D8CBh2rrwxyNojUsZNU2zjNTzKQrkgGJQTbGAfArVWXSKMBokBeeg6C7OLRGUEyoFlYbfeWQIqw==}
engines: {node: '>=20.17'}
@@ -4379,6 +5003,10 @@ packages:
resolution: {integrity: sha512-uTqF9MuPraAQ+IsnPf366RG4cP9RtUi7MLO1N3KEc+wb0a6yKpeL0lmk2IB1jY5KHPAlTc6T/JRdC/YqxHNwkQ==}
+ resolution: {integrity: sha512-5vvB5+W7ePv+p3uqxi+RcW1XAzLW0/hxt3/4X4Lc4qHudzOhmBiBwOY6DRob4WnanAEGvNcLjF+KNOufrUoEQw==}
+ engines: {node: '>=12.20.0'}
+
resolution: {integrity: sha512-2W4oUZlVaqAPAil6FUg/difl6YhqhUR7x2eZY4bQCko22UXg3hptq9KLQdqFClV+Wu85UX7hNtdGTngi/1BxcA==}
@@ -4831,6 +5459,11 @@ packages:
engines: {node: '>=10'}
hasBin: true
+ resolution: {integrity: sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==}
+ engines: {node: '>=10'}
+ hasBin: true
+
resolution: {integrity: sha512-2G2y++21dhj2R7iHAdd0FIzjGwuKZld+7Pl/bTU6YIkrC2ZMbVUjm+luj6A6V34Rv9XfKJDKpTWu9W4Gse1D9g==}
engines: {node: '>=14.16'}
@@ -5112,6 +5745,9 @@ packages:
resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==}
+ resolution: {integrity: sha512-ZW/lVMRabETuYCd9O9ZvMhAh8GslSqaUjxmK/JLPCh6l73CvLBiuXswj/+7LdnWOgYsQ130FqLzFz5aGT4I3Ug==}
+
resolution: {integrity: sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==}
engines: {node: '>=10'}
@@ -5136,6 +5772,11 @@ packages:
engines: {node: '>=14.17'}
hasBin: true
+ resolution: {integrity: sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==}
+ engines: {node: '>=14.17'}
+ hasBin: true
+
resolution: {integrity: sha512-yDJTmhydvl5lJzBmy/hyOAA0d+aqCBuwl818haVdYCRrWV84o7YyeVm4QlVHStqNrrJSTb6jKuFAVqAFsr+K3Q==}
@@ -5180,6 +5821,9 @@ packages:
resolution: {integrity: sha512-WrcA6AyEfqDX5bWige/4NQfPZMtASNVxdmWR76WESYQVAACSgWcR6e9i0mofqqBxYFtL4oAxPIptY73/0YE1DQ==}
engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}
+ resolution: {integrity: sha512-TmnEAEAsBJVZM/AADELsK76llnwcf9vMKuPz8JflO1frO8Lchitr0fNaN9d+Ap0BjKtqWqd/J17qeDnXh8CL2A==}
+
resolution: {integrity: sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==}
engines: {node: '>= 4.0.0'}
@@ -5935,22 +6579,54 @@ snapshots:
transitivePeerDependencies:
- supports-color
+ '@emnapi/[email protected]':
+ dependencies:
+ '@emnapi/wasi-threads': 1.2.2
+ tslib: 2.8.1
+ optional: true
+
'@emnapi/[email protected]':
dependencies:
'@emnapi/wasi-threads': 1.2.0
tslib: 2.8.1
optional: true
+ '@emnapi/[email protected]':
+ dependencies:
+ '@emnapi/wasi-threads': 1.2.1
+ tslib: 2.8.1
+ optional: true
+
+ '@emnapi/[email protected]':
+ dependencies:
+ tslib: 2.8.1
+ optional: true
+
'@emnapi/[email protected]':
dependencies:
tslib: 2.8.1
optional: true
+ '@emnapi/[email protected]':
+ dependencies:
+ tslib: 2.8.1
+ optional: true
+
'@emnapi/[email protected]':
dependencies:
tslib: 2.8.1
optional: true
+ '@emnapi/[email protected]':
+ dependencies:
+ tslib: 2.8.1
+ optional: true
+
+ '@emnapi/[email protected]':
+ dependencies:
+ tslib: 2.8.1
+ optional: true
+
'@esbuild/[email protected]':
optional: true
@@ -6199,6 +6875,125 @@ snapshots:
'@gar/[email protected]': {}
+ '@inquirer/[email protected]': {}
+
+ '@inquirer/[email protected](@types/[email protected])':
+ dependencies:
+ '@inquirer/ansi': 2.0.8
+ '@inquirer/core': 12.0.3(@types/[email protected])
+ '@inquirer/figures': 2.0.9
+ '@inquirer/type': 4.1.1(@types/[email protected])
+ optionalDependencies:
+ '@types/node': 25.5.0
+
+ '@inquirer/[email protected](@types/[email protected])':
+ dependencies:
+ '@inquirer/core': 12.0.3(@types/[email protected])
+ '@inquirer/type': 4.1.1(@types/[email protected])
+ optionalDependencies:
+ '@types/node': 25.5.0
+
+ '@inquirer/[email protected](@types/[email protected])':
+ dependencies:
+ '@inquirer/ansi': 2.0.8
+ '@inquirer/figures': 2.0.9
+ '@inquirer/type': 4.1.1(@types/[email protected])
+ cli-width: 4.1.0
+ fast-wrap-ansi: 0.2.2
+ mute-stream: 3.0.0
+ signal-exit: 4.1.0
+ optionalDependencies:
+ '@types/node': 25.5.0
+
+ '@inquirer/[email protected](@types/[email protected])':
+ dependencies:
+ '@inquirer/core': 12.0.3(@types/[email protected])
+ '@inquirer/external-editor': 3.0.5(@types/[email protected])
+ '@inquirer/type': 4.1.1(@types/[email protected])
+ optionalDependencies:
+ '@types/node': 25.5.0
+
+ '@inquirer/[email protected](@types/[email protected])':
+ dependencies:
+ '@inquirer/core': 12.0.3(@types/[email protected])
+ '@inquirer/type': 4.1.1(@types/[email protected])
+ optionalDependencies:
+ '@types/node': 25.5.0
+
+ '@inquirer/[email protected](@types/[email protected])':
+ dependencies:
+ chardet: 2.2.0
+ iconv-lite: 0.7.3
+ optionalDependencies:
+ '@types/node': 25.5.0
+
+ '@inquirer/[email protected]': {}
+
+ '@inquirer/[email protected](@types/[email protected])':
+ dependencies:
+ '@inquirer/core': 12.0.3(@types/[email protected])
+ '@inquirer/type': 4.1.1(@types/[email protected])
+ optionalDependencies:
+ '@types/node': 25.5.0
+
+ '@inquirer/[email protected](@types/[email protected])':
+ dependencies:
+ '@inquirer/core': 12.0.3(@types/[email protected])
+ '@inquirer/type': 4.1.1(@types/[email protected])
+ optionalDependencies:
+ '@types/node': 25.5.0
+
+ '@inquirer/[email protected](@types/[email protected])':
+ dependencies:
+ '@inquirer/ansi': 2.0.8
+ '@inquirer/core': 12.0.3(@types/[email protected])
+ '@inquirer/type': 4.1.1(@types/[email protected])
+ optionalDependencies:
+ '@types/node': 25.5.0
+
+ '@inquirer/[email protected](@types/[email protected])':
+ dependencies:
+ '@inquirer/checkbox': 5.2.5(@types/[email protected])
+ '@inquirer/confirm': 6.3.2(@types/[email protected])
+ '@inquirer/editor': 5.3.3(@types/[email protected])
+ '@inquirer/expand': 5.1.5(@types/[email protected])
+ '@inquirer/input': 5.1.6(@types/[email protected])
+ '@inquirer/number': 4.2.3(@types/[email protected])
+ '@inquirer/password': 5.2.2(@types/[email protected])
+ '@inquirer/rawlist': 5.3.5(@types/[email protected])
+ '@inquirer/search': 4.3.3(@types/[email protected])
+ '@inquirer/select': 5.2.5(@types/[email protected])
+ optionalDependencies:
+ '@types/node': 25.5.0
+
+ '@inquirer/[email protected](@types/[email protected])':
+ dependencies:
+ '@inquirer/core': 12.0.3(@types/[email protected])
+ '@inquirer/type': 4.1.1(@types/[email protected])
+ optionalDependencies:
+ '@types/node': 25.5.0
+
+ '@inquirer/[email protected](@types/[email protected])':
+ dependencies:
+ '@inquirer/core': 12.0.3(@types/[email protected])
+ '@inquirer/figures': 2.0.9
+ '@inquirer/type': 4.1.1(@types/[email protected])
+ optionalDependencies:
+ '@types/node': 25.5.0
+
+ '@inquirer/[email protected](@types/[email protected])':
+ dependencies:
+ '@inquirer/ansi': 2.0.8
+ '@inquirer/core': 12.0.3(@types/[email protected])
+ '@inquirer/figures': 2.0.9
+ '@inquirer/type': 4.1.1(@types/[email protected])
+ optionalDependencies:
+ '@types/node': 25.5.0
+
+ '@inquirer/[email protected](@types/[email protected])':
+ optionalDependencies:
+ '@types/node': 25.5.0
+
'@isaacs/[email protected]':
dependencies:
string-width: 5.1.2
@@ -6260,9 +7055,191 @@ snapshots:
- supports-color
optional: true
+ dependencies:
+ '@inquirer/prompts': 8.7.2(@types/[email protected])
+ '@napi-rs/cross-toolchain': 1.0.3
+ '@napi-rs/wasm-tools': 1.1.0
+ '@octokit/rest': 22.0.1
+ clipanion: 4.0.0-rc.4([email protected])
+ colorette: 2.0.20
+ es-toolkit: 1.52.0
+ js-yaml: 5.4.2
+ obug: 3.0.0
+ semver: 7.8.5
+ typanion: 3.14.0
+ typescript: 6.0.3
+ optionalDependencies:
+ '@emnapi/core': 1.9.2
+ '@emnapi/runtime': 1.9.2
+ transitivePeerDependencies:
+ - '@napi-rs/cross-toolchain-arm64-target-aarch64'
+ - '@napi-rs/cross-toolchain-arm64-target-armv7'
+ - '@napi-rs/cross-toolchain-arm64-target-ppc64le'
+ - '@napi-rs/cross-toolchain-arm64-target-s390x'
+ - '@napi-rs/cross-toolchain-arm64-target-x86_64'
+ - '@napi-rs/cross-toolchain-x64-target-aarch64'
+ - '@napi-rs/cross-toolchain-x64-target-armv7'
+ - '@napi-rs/cross-toolchain-x64-target-ppc64le'
+ - '@napi-rs/cross-toolchain-x64-target-s390x'
+ - '@napi-rs/cross-toolchain-x64-target-x86_64'
+ - '@types/node'
+ - supports-color
+
+ '@napi-rs/[email protected]':
+ dependencies:
+ '@napi-rs/lzma': 1.5.1
+ '@napi-rs/tar': 1.1.1
+ debug: 4.4.3
+ transitivePeerDependencies:
+ - supports-color
+
+ '@napi-rs/[email protected]':
+ optional: true
+
+ '@napi-rs/[email protected]':
+ optional: true
+
+ '@napi-rs/[email protected]':
+ optional: true
+
+ '@napi-rs/[email protected]':
+ optional: true
+
+ '@napi-rs/[email protected]':
+ optional: true
+
+ '@napi-rs/[email protected]':
+ optional: true
+
+ '@napi-rs/[email protected]':
+ optional: true
+
+ '@napi-rs/[email protected]':
+ optional: true
+
+ '@napi-rs/[email protected]':
+ optional: true
+
+ '@napi-rs/[email protected]':
+ optional: true
+
+ '@napi-rs/[email protected]':
+ optional: true
+
'@napi-rs/[email protected]':
optional: true
+ '@napi-rs/[email protected]':
+ optional: true
+
+ '@napi-rs/[email protected]':
+ dependencies:
+ '@emnapi/core': 1.11.2
+ '@emnapi/runtime': 1.11.2
+ '@napi-rs/wasm-runtime': 1.2.4(@emnapi/[email protected])(@emnapi/[email protected])
+ optional: true
+
+ '@napi-rs/[email protected]':
+ optional: true
+
+ '@napi-rs/[email protected]':
+ optional: true
+
+ '@napi-rs/[email protected]':
+ optional: true
+
+ '@napi-rs/[email protected]':
+ optionalDependencies:
+ '@napi-rs/lzma-android-arm-eabi': 1.5.1
+ '@napi-rs/lzma-android-arm64': 1.5.1
+ '@napi-rs/lzma-darwin-arm64': 1.5.1
+ '@napi-rs/lzma-darwin-x64': 1.5.1
+ '@napi-rs/lzma-freebsd-x64': 1.5.1
+ '@napi-rs/lzma-linux-arm-gnueabihf': 1.5.1
+ '@napi-rs/lzma-linux-arm64-gnu': 1.5.1
+ '@napi-rs/lzma-linux-arm64-musl': 1.5.1
+ '@napi-rs/lzma-linux-ppc64-gnu': 1.5.1
+ '@napi-rs/lzma-linux-riscv64-gnu': 1.5.1
+ '@napi-rs/lzma-linux-s390x-gnu': 1.5.1
+ '@napi-rs/lzma-linux-x64-gnu': 1.5.1
+ '@napi-rs/lzma-linux-x64-musl': 1.5.1
+ '@napi-rs/lzma-wasm32-wasi': 1.5.1
+ '@napi-rs/lzma-win32-arm64-msvc': 1.5.1
+ '@napi-rs/lzma-win32-ia32-msvc': 1.5.1
+ '@napi-rs/lzma-win32-x64-msvc': 1.5.1
+
+ '@napi-rs/[email protected]':
+ optional: true
+
+ '@napi-rs/[email protected]':
+ optional: true
+
+ '@napi-rs/[email protected]':
+ optional: true
+
+ '@napi-rs/[email protected]':
+ optional: true
+
+ '@napi-rs/[email protected]':
+ optional: true
+
+ '@napi-rs/[email protected]':
+ optional: true
+
+ '@napi-rs/[email protected]':
+ optional: true
+
+ '@napi-rs/[email protected]':
+ optional: true
+
+ '@napi-rs/[email protected]':
+ optional: true
+
+ '@napi-rs/[email protected]':
+ optional: true
+
+ '@napi-rs/[email protected]':
+ optional: true
+
+ '@napi-rs/[email protected]':
+ optional: true
+
+ '@napi-rs/[email protected]':
+ dependencies:
+ '@emnapi/core': 1.11.2
+ '@emnapi/runtime': 1.11.2
+ '@napi-rs/wasm-runtime': 1.2.4(@emnapi/[email protected])(@emnapi/[email protected])
+ optional: true
+
+ '@napi-rs/[email protected]':
+ optional: true
+
+ '@napi-rs/[email protected]':
+ optional: true
+
+ '@napi-rs/[email protected]':
+ optional: true
+
+ '@napi-rs/[email protected]':
+ optionalDependencies:
+ '@napi-rs/tar-android-arm-eabi': 1.1.1
+ '@napi-rs/tar-android-arm64': 1.1.1
+ '@napi-rs/tar-darwin-arm64': 1.1.1
+ '@napi-rs/tar-darwin-x64': 1.1.1
+ '@napi-rs/tar-freebsd-x64': 1.1.1
+ '@napi-rs/tar-linux-arm-gnueabihf': 1.1.1
+ '@napi-rs/tar-linux-arm64-gnu': 1.1.1
+ '@napi-rs/tar-linux-arm64-musl': 1.1.1
+ '@napi-rs/tar-linux-ppc64-gnu': 1.1.1
+ '@napi-rs/tar-linux-s390x-gnu': 1.1.1
+ '@napi-rs/tar-linux-x64-gnu': 1.1.1
+ '@napi-rs/tar-linux-x64-musl': 1.1.1
+ '@napi-rs/tar-wasm32-wasi': 1.1.1
+ '@napi-rs/tar-win32-arm64-msvc': 1.1.1
+ '@napi-rs/tar-win32-ia32-msvc': 1.1.1
+ '@napi-rs/tar-win32-x64-msvc': 1.1.1
+
'@napi-rs/[email protected]':
dependencies:
'@emnapi/core': 1.9.1
@@ -6270,6 +7247,79 @@ snapshots:
'@tybys/wasm-util': 0.10.1
optional: true
+ dependencies:
+ '@emnapi/core': 1.11.2
+ '@emnapi/runtime': 1.11.2
+ '@tybys/wasm-util': 0.10.4
+ optional: true
+
+ dependencies:
+ '@emnapi/core': 1.9.2
+ '@emnapi/runtime': 1.9.2
+ '@tybys/wasm-util': 0.10.4
+ optional: true
+
+ '@napi-rs/[email protected]':
+ optional: true
+
+ '@napi-rs/[email protected]':
+ optional: true
+
+ '@napi-rs/[email protected]':
+ optional: true
+
+ '@napi-rs/[email protected]':
+ optional: true
+
+ '@napi-rs/[email protected]':
+ optional: true
+
+ '@napi-rs/[email protected]':
+ optional: true
+
+ '@napi-rs/[email protected]':
+ optional: true
+
+ '@napi-rs/[email protected]':
+ optional: true
+
+ '@napi-rs/[email protected]':
+ optional: true
+
+ '@napi-rs/[email protected]':
+ dependencies:
+ '@emnapi/core': 1.9.2
+ '@emnapi/runtime': 1.9.2
+ '@napi-rs/wasm-runtime': 1.2.4(@emnapi/[email protected])(@emnapi/[email protected])
+ optional: true
+
+ '@napi-rs/[email protected]':
+ optional: true
+
+ '@napi-rs/[email protected]':
+ optional: true
+
+ '@napi-rs/[email protected]':
+ optional: true
+
+ '@napi-rs/[email protected]':
+ optionalDependencies:
+ '@napi-rs/wasm-tools-android-arm-eabi': 1.1.0
+ '@napi-rs/wasm-tools-android-arm64': 1.1.0
+ '@napi-rs/wasm-tools-darwin-arm64': 1.1.0
+ '@napi-rs/wasm-tools-darwin-x64': 1.1.0
+ '@napi-rs/wasm-tools-freebsd-x64': 1.1.0
+ '@napi-rs/wasm-tools-linux-arm64-gnu': 1.1.0
+ '@napi-rs/wasm-tools-linux-arm64-musl': 1.1.0
+ '@napi-rs/wasm-tools-linux-x64-gnu': 1.1.0
+ '@napi-rs/wasm-tools-linux-x64-musl': 1.1.0
+ '@napi-rs/wasm-tools-wasm32-wasi': 1.1.0
+ '@napi-rs/wasm-tools-win32-arm64-msvc': 1.1.0
+ '@napi-rs/wasm-tools-win32-ia32-msvc': 1.1.0
+ '@napi-rs/wasm-tools-win32-x64-msvc': 1.1.0
+
'@nodelib/[email protected]':
dependencies:
'@nodelib/fs.stat': 2.0.5
@@ -6308,6 +7358,75 @@ snapshots:
mkdirp: 1.0.4
rimraf: 3.0.2
+ '@octokit/[email protected]': {}
+
+ '@octokit/[email protected]':
+ dependencies:
+ '@octokit/auth-token': 6.0.0
+ '@octokit/graphql': 9.0.5
+ '@octokit/request': 10.0.16
+ '@octokit/request-error': 7.1.2
+ '@octokit/types': 18.0.0
+ before-after-hook: 4.0.0
+ universal-user-agent: 7.0.3
+
+ '@octokit/[email protected]':
+ dependencies:
+ '@octokit/types': 18.0.0
+ universal-user-agent: 7.0.3
+
+ '@octokit/[email protected]':
+ dependencies:
+ '@octokit/request': 10.0.16
+ '@octokit/types': 18.0.0
+ universal-user-agent: 7.0.3
+
+ '@octokit/[email protected]': {}
+
+ '@octokit/[email protected]': {}
+
+ '@octokit/[email protected](@octokit/[email protected])':
+ dependencies:
+ '@octokit/core': 7.0.8
+ '@octokit/types': 16.0.0
+
+ '@octokit/[email protected](@octokit/[email protected])':
+ dependencies:
+ '@octokit/core': 7.0.8
+
+ '@octokit/[email protected](@octokit/[email protected])':
+ dependencies:
+ '@octokit/core': 7.0.8
+ '@octokit/types': 16.0.0
+
+ '@octokit/[email protected]':
+ dependencies:
+ '@octokit/types': 18.0.0
+
+ '@octokit/[email protected]':
+ dependencies:
+ '@octokit/endpoint': 11.0.5
+ '@octokit/request-error': 7.1.2
+ '@octokit/types': 18.0.0
+ content-type: 3.1.1
+ json-with-bigint: 3.5.12
+ universal-user-agent: 7.0.3
+
+ '@octokit/[email protected]':
+ dependencies:
+ '@octokit/core': 7.0.8
+ '@octokit/plugin-paginate-rest': 14.0.0(@octokit/[email protected])
+ '@octokit/plugin-request-log': 6.0.0(@octokit/[email protected])
+ '@octokit/plugin-rest-endpoint-methods': 17.0.0(@octokit/[email protected])
+
+ '@octokit/[email protected]':
+ dependencies:
+ '@octokit/openapi-types': 27.0.0
+
+ '@octokit/[email protected]':
+ dependencies:
+ '@octokit/openapi-types': 29.0.1
+
'@opentelemetry/[email protected]': {}
'@oxc-project/[email protected]': {}
@@ -7322,6 +8441,11 @@ snapshots:
tslib: 2.8.1
optional: true
+ '@tybys/[email protected]':
+ dependencies:
+ tslib: 2.8.1
+ optional: true
+
'@types/[email protected]': {}
@@ -7795,6 +8919,8 @@ snapshots:
+
dependencies:
require-from-string: 2.0.2
@@ -8004,6 +9130,8 @@ snapshots:
+
dependencies:
readdirp: 5.0.0
@@ -8060,6 +9188,12 @@ snapshots:
slice-ansi: 8.0.0
string-width: 8.2.0
+
+ dependencies:
+ typanion: 3.14.0
+
dependencies:
string-width: 4.2.3
@@ -8082,6 +9216,8 @@ snapshots:
+
dependencies:
delayed-stream: 1.0.0
@@ -8137,6 +9273,8 @@ snapshots:
+
@@ -8498,6 +9636,8 @@ snapshots:
has-tostringtag: 1.0.2
hasown: 2.0.4
+
@@ -8641,6 +9781,16 @@ snapshots:
+
+ dependencies:
+ fast-string-truncated-width: 3.0.3
+
+ dependencies:
+ fast-string-width: 3.0.2
+
dependencies:
reusify: 1.1.0
@@ -9016,6 +10166,10 @@ snapshots:
dependencies:
safer-buffer: 2.1.2
+ dependencies:
+ safer-buffer: 2.1.2
+
@@ -9164,6 +10318,10 @@ snapshots:
dependencies:
argparse: 2.0.1
+ dependencies:
+ argparse: 2.0.1
+
dependencies:
'@asamuzakjp/css-color': 5.0.1
@@ -9203,6 +10361,8 @@ snapshots:
optional: true
+
@@ -9625,6 +10785,8 @@ snapshots:
array-union: 3.0.1
minimatch: 3.1.5
+
@@ -9797,6 +10959,8 @@ snapshots:
+
dependencies:
destr: 2.0.5
@@ -10347,6 +11511,8 @@ snapshots:
+
dependencies:
type-fest: 2.19.0
@@ -10630,6 +11796,8 @@ snapshots:
+
optional: true
@@ -10643,6 +11811,8 @@ snapshots:
+
@@ -10696,6 +11866,8 @@ snapshots:
imurmurhash: 0.1.4
optional: true
+