gestament 0.5.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/dist/displaySession.d.ts +2 -2
  2. package/dist/displaySession.d.ts.map +1 -1
  3. package/dist/element.d.ts +2 -2
  4. package/dist/element.d.ts.map +1 -1
  5. package/dist/errors.d.ts +2 -2
  6. package/dist/generated/packageMetadata.d.ts +4 -4
  7. package/dist/gestament-config.d.ts +2 -2
  8. package/dist/gestament-launcher-driver.cjs +46 -1
  9. package/dist/gestament-launcher-driver.cjs.map +1 -1
  10. package/dist/gestament-launcher-driver.d.ts +2 -2
  11. package/dist/gestament-launcher-driver.mjs +46 -1
  12. package/dist/gestament-launcher-driver.mjs.map +1 -1
  13. package/dist/gestament-tray-host.cjs +1 -1
  14. package/dist/gestament-tray-host.d.ts +2 -2
  15. package/dist/gestament-tray-host.mjs +1 -1
  16. package/dist/gestament-xvfb-pool-probe.cjs +1 -1
  17. package/dist/gestament-xvfb-pool-probe.d.ts +2 -2
  18. package/dist/gestament-xvfb-pool-probe.mjs +1 -1
  19. package/dist/gestament-xvfb-worker.d.ts +2 -2
  20. package/dist/gestament-xvfb.d.ts +2 -2
  21. package/dist/gestament.cjs +1 -1
  22. package/dist/gestament.d.ts +2 -2
  23. package/dist/gestament.mjs +1 -1
  24. package/dist/index.cjs +1 -1
  25. package/dist/index.d.ts +2 -2
  26. package/dist/index.mjs +1 -1
  27. package/dist/input.d.ts +21 -0
  28. package/dist/input.d.ts.map +1 -0
  29. package/dist/{launchGtkApp-EI6OIpPI.js → launchGtkApp-BTBwPwyj.js} +216 -2
  30. package/dist/launchGtkApp-BTBwPwyj.js.map +1 -0
  31. package/dist/{launchGtkApp-CzYcrc9f.cjs → launchGtkApp-Csx4r7AQ.cjs} +218 -4
  32. package/dist/launchGtkApp-Csx4r7AQ.cjs.map +1 -0
  33. package/dist/launchGtkApp.d.ts +2 -2
  34. package/dist/launchGtkApp.d.ts.map +1 -1
  35. package/dist/launcherDriverProtocol.d.ts +37 -4
  36. package/dist/launcherDriverProtocol.d.ts.map +1 -1
  37. package/dist/{native-DlCBBWlV.js → native-BRWJbzfa.js} +53 -11
  38. package/dist/native-BRWJbzfa.js.map +1 -0
  39. package/dist/{native-Kfm95Uxw.cjs → native-C1llTPc6.cjs} +46 -4
  40. package/dist/native-C1llTPc6.cjs.map +1 -0
  41. package/dist/native.d.ts +22 -2
  42. package/dist/native.d.ts.map +1 -1
  43. package/dist/output.d.ts +2 -2
  44. package/dist/packageMetadata-DSIckEfC.cjs +4 -0
  45. package/dist/{packageMetadata-CewXH0iF.cjs.map → packageMetadata-DSIckEfC.cjs.map} +1 -1
  46. package/dist/packageMetadata-__qCDuxC.js +5 -0
  47. package/dist/{packageMetadata-DjxyJCJm.js.map → packageMetadata-__qCDuxC.js.map} +1 -1
  48. package/dist/prerequisites.d.ts +2 -2
  49. package/dist/testing.d.ts +2 -2
  50. package/dist/tray.d.ts +2 -2
  51. package/dist/types.d.ts +106 -2
  52. package/dist/types.d.ts.map +1 -1
  53. package/dist/wait.d.ts +2 -2
  54. package/package.json +7 -7
  55. package/prebuilds/linux-arm/gtk3/node.napi.armv7.glibc.node +0 -0
  56. package/prebuilds/linux-arm/gtk4/node.napi.armv7.glibc.node +0 -0
  57. package/prebuilds/linux-arm64/gtk3/node.napi.glibc.node +0 -0
  58. package/prebuilds/linux-arm64/gtk4/node.napi.glibc.node +0 -0
  59. package/prebuilds/linux-ia32/gtk3/node.napi.glibc.node +0 -0
  60. package/prebuilds/linux-ia32/gtk4/node.napi.glibc.node +0 -0
  61. package/prebuilds/linux-riscv64/gtk3/node.napi.glibc.node +0 -0
  62. package/prebuilds/linux-riscv64/gtk4/node.napi.glibc.node +0 -0
  63. package/prebuilds/linux-x64/gtk3/node.napi.glibc.node +0 -0
  64. package/prebuilds/linux-x64/gtk4/node.napi.glibc.node +0 -0
  65. package/dist/launchGtkApp-CzYcrc9f.cjs.map +0 -1
  66. package/dist/launchGtkApp-EI6OIpPI.js.map +0 -1
  67. package/dist/native-DlCBBWlV.js.map +0 -1
  68. package/dist/native-Kfm95Uxw.cjs.map +0 -1
  69. package/dist/packageMetadata-CewXH0iF.cjs +0 -4
  70. package/dist/packageMetadata-DjxyJCJm.js +0 -5
@@ -1,15 +1,15 @@
1
1
  /*!
2
2
  * name: gestament
3
- * version: 0.5.0
3
+ * version: 0.7.0
4
4
  * description: TypeScript based test driver for GTK
5
5
  * author: Kouji Matsui (@kekyo@mi.kekyo.net)
6
6
  * license: MIT
7
7
  * repository.url: https://github.com/kekyo/gestament.git
8
- * git.commit.hash: 368fd995a6a10f20aea97cb0389ac3e12cfbedb3
8
+ * git.commit.hash: 0a8d7a04d56247736d3de0aab8933fb383569e38
9
9
  */
10
10
 
11
- import { GtkAutomationErrorCode, GtkAppOutput, GtkAppOutputEvent, GtkCaptureBounds, GtkImagePoint, GtkImageSize, GtkSystemOutputSource, GtkTrayItemSelector, GtkWidgetKind } from './types.js';
12
- export type DriverCommand = 'launcher.environment' | 'launcher.launch' | 'launcher.release' | 'launcher.reset' | 'app.environment' | 'app.output' | 'app.release' | 'app.capture' | 'app.findById' | 'app.getById' | 'app.findByPath' | 'app.getByPath' | 'app.windowAt' | 'app.getWindowCount' | 'app.findTrayItem' | 'app.getTrayItem' | 'app.trayItemAt' | 'app.getTrayItemCount' | 'element.info' | 'element.capture' | 'element.bounds' | 'element.childAt' | 'element.getChildCount' | 'element.click' | 'element.text' | 'element.setText' | 'element.isChecked' | 'element.toggle' | 'element.value' | 'element.valueInfo' | 'element.setValue' | 'element.increment' | 'element.decrement' | 'element.getSelectedChildCount' | 'element.selectedChildAt' | 'element.isChildSelected' | 'element.selectChildAt' | 'element.deselectChildAt' | 'element.selectAllChildren' | 'element.clearSelection' | 'element.getRowCount' | 'element.getColumnCount' | 'element.cellAt' | 'element.selectedRows' | 'element.selectedColumns' | 'element.isRowSelected' | 'element.isColumnSelected' | 'element.isCellSelected' | 'element.selectRow' | 'element.deselectRow' | 'element.selectColumn' | 'element.deselectColumn' | 'element.imageInfo' | 'window.resizeHints' | 'window.x11Info' | 'imageInfo.capture' | 'tray.metadata' | 'tray.element' | 'tray.capture' | 'tray.click' | 'tray.openMenu';
11
+ import { GtkAutomationErrorCode, GtkAppOutput, GtkAppOutputEvent, GtkCaptureBounds, GtkImagePoint, GtkImageSize, GtkKeyboardModifier, GtkMouseButton, GtkSystemOutputSource, GtkTrayItemSelector, GtkWidgetKind } from './types.js';
12
+ export type DriverCommand = 'launcher.environment' | 'launcher.launch' | 'launcher.release' | 'launcher.reset' | 'app.environment' | 'app.output' | 'app.release' | 'app.capture' | 'app.findById' | 'app.getById' | 'app.findByPath' | 'app.getByPath' | 'app.windowAt' | 'app.getWindowCount' | 'app.inputSetModifier' | 'app.inputPressKeyName' | 'app.inputPressKeySym' | 'app.inputMoveMouse' | 'app.inputSetMouseButton' | 'app.inputScrollWheel' | 'app.findTrayItem' | 'app.getTrayItem' | 'app.trayItemAt' | 'app.getTrayItemCount' | 'element.info' | 'element.capture' | 'element.bounds' | 'element.childAt' | 'element.getChildCount' | 'element.click' | 'element.text' | 'element.setText' | 'element.isChecked' | 'element.toggle' | 'element.value' | 'element.valueInfo' | 'element.setValue' | 'element.increment' | 'element.decrement' | 'element.getSelectedChildCount' | 'element.selectedChildAt' | 'element.isChildSelected' | 'element.selectChildAt' | 'element.deselectChildAt' | 'element.selectAllChildren' | 'element.clearSelection' | 'element.getRowCount' | 'element.getColumnCount' | 'element.cellAt' | 'element.selectedRows' | 'element.selectedColumns' | 'element.isRowSelected' | 'element.isColumnSelected' | 'element.isCellSelected' | 'element.selectRow' | 'element.deselectRow' | 'element.selectColumn' | 'element.deselectColumn' | 'element.imageInfo' | 'window.moveTo' | 'window.resizeHints' | 'window.resizeTo' | 'window.setBounds' | 'window.activate' | 'window.x11Info' | 'imageInfo.capture' | 'tray.metadata' | 'tray.element' | 'tray.capture' | 'tray.click' | 'tray.openMenu';
13
13
  export type WireGtkAppEnvironment = Readonly<Record<string, string | null>>;
14
14
  export type DriverEventChannel = 'app.output' | 'system.output';
15
15
  export interface DriverLaunchPayload {
@@ -51,6 +51,39 @@ export interface DriverTextPayload {
51
51
  export interface DriverValuePayload {
52
52
  readonly value: number;
53
53
  }
54
+ export interface DriverKeyboardModifierPayload {
55
+ readonly modifier: GtkKeyboardModifier;
56
+ readonly pressed: boolean;
57
+ }
58
+ export interface DriverKeyNamePayload {
59
+ readonly key: string;
60
+ }
61
+ export interface DriverKeySymPayload {
62
+ readonly keysym: number;
63
+ }
64
+ export interface DriverMouseMovePayload {
65
+ readonly x: number;
66
+ readonly y: number;
67
+ }
68
+ export interface DriverMouseButtonPayload {
69
+ readonly button: GtkMouseButton;
70
+ readonly pressed: boolean;
71
+ }
72
+ export interface DriverMouseWheelPayload {
73
+ readonly xSteps: number;
74
+ readonly ySteps: number;
75
+ }
76
+ export interface DriverWindowMovePayload {
77
+ readonly x: number;
78
+ readonly y: number;
79
+ }
80
+ export interface DriverWindowResizePayload {
81
+ readonly height: number;
82
+ readonly width: number;
83
+ }
84
+ export interface DriverWindowBoundsPayload {
85
+ readonly bounds: GtkCaptureBounds;
86
+ }
54
87
  export interface DriverIdPayload {
55
88
  readonly id: string;
56
89
  }
@@ -1 +1 @@
1
- {"version":3,"file":"launcherDriverProtocol.d.ts","sourceRoot":"","sources":["../src/launcherDriverProtocol.ts"],"names":[],"mappings":";;;;;;;;;AAKA,OAAO,KAAK,EACV,sBAAsB,EACtB,YAAY,EACZ,iBAAiB,EACjB,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,qBAAqB,EACrB,mBAAmB,EACnB,aAAa,EACd,MAAM,SAAS,CAAC;AAIjB,MAAM,MAAM,aAAa,GACrB,sBAAsB,GACtB,iBAAiB,GACjB,kBAAkB,GAClB,gBAAgB,GAChB,iBAAiB,GACjB,YAAY,GACZ,aAAa,GACb,aAAa,GACb,iBAAc,GACd,aAAa,GACb,gBAAgB,GAChB,e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QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,MAAM,EAAE,gBAAgB,CAAC;IAClC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,aAAa,EAAE,gBAAgB,CAAC;CAC1C;AAED,MAAM,MAAM,qBAAqB,GAAG,iBAAiB,CAAC;AAEtD,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC;AAE5C,MAAM,MAAM,mBAAmB,GAC3B;IACE,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,MAAM,EAAE,qBAAqB,CAAC;IACvC,QAAQ,CAAC,MAAM,EAAE,QAAQ,GAAG,QAAQ,CAAC;IACrC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;CACxB,GACD;IACE,QAAQ,CAAC,MAAM,EAAE,qBAAqB,CAAC;IACvC,QAAQ,CAAC,MAAM,EAAE,QAAQ,GAAG,QAAQ,CAAC;IACrC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;CACxB,CAAC;AAEN,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,MAAM,EAAE,gBAAgB,CAAC;IAClC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,QAAQ,EAAE,aAAa,CAAC;IACjC,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC;CAC7B"}
@@ -3,7 +3,7 @@ import { existsSync } from "node:fs";
3
3
  import { resolve, dirname } from "node:path";
4
4
  import { fileURLToPath } from "node:url";
5
5
  import { n as normalizeNativeError } from "./errors-CCW4ATME.js";
6
- import { v as version } from "./packageMetadata-DjxyJCJm.js";
6
+ import { v as version } from "./packageMetadata-__qCDuxC.js";
7
7
  import { a as appendPrerequisiteInstallHint } from "./prerequisites-JB0SKPVd.js";
8
8
  const require$1 = createRequire(import.meta.url);
9
9
  const packageRoot = resolve(dirname(fileURLToPath(import.meta.url)), "..");
@@ -165,6 +165,20 @@ const nativeSetValue = (element, value) => {
165
165
  };
166
166
  const nativeCapture = (element) => callNative(() => loadNativeAddon().capture(element));
167
167
  const nativeBounds = (element) => callNative(() => loadNativeAddon().bounds(element));
168
+ const nativeMoveWindow = (element, x, y) => callNative(() => loadNativeAddon().moveWindow(element, x, y));
169
+ const nativeResizeWindow = (element, width, height) => callNative(() => loadNativeAddon().resizeWindow(element, width, height));
170
+ const nativeSetWindowBounds = (element, bounds) => callNative(
171
+ () => loadNativeAddon().setWindowBounds(
172
+ element,
173
+ bounds.x,
174
+ bounds.y,
175
+ bounds.width,
176
+ bounds.height
177
+ )
178
+ );
179
+ const nativeActivateWindow = (element) => {
180
+ callNative(() => loadNativeAddon().activateWindow(element));
181
+ };
168
182
  const nativeResizeHints = (element) => callNative(() => loadNativeAddon().resizeHints(element));
169
183
  const nativeX11Info = (element) => callNative(() => loadNativeAddon().x11Info(element));
170
184
  const nativeCaptureScreen = () => callNative(() => loadNativeAddon().captureScreen());
@@ -176,6 +190,24 @@ const nativeCaptureBounds = (bounds) => callNative(
176
190
  bounds.height
177
191
  )
178
192
  );
193
+ const nativeInputSetModifier = (modifier, pressed) => {
194
+ callNative(() => loadNativeAddon().inputSetModifier(modifier, pressed));
195
+ };
196
+ const nativeInputPressKeyName = (key) => {
197
+ callNative(() => loadNativeAddon().inputPressKeyName(key));
198
+ };
199
+ const nativeInputPressKeySym = (keysym) => {
200
+ callNative(() => loadNativeAddon().inputPressKeySym(keysym));
201
+ };
202
+ const nativeInputMoveMouse = (x, y) => {
203
+ callNative(() => loadNativeAddon().inputMoveMouse(x, y));
204
+ };
205
+ const nativeInputSetMouseButton = (button, pressed) => {
206
+ callNative(() => loadNativeAddon().inputSetMouseButton(button, pressed));
207
+ };
208
+ const nativeInputScrollWheel = (xSteps, ySteps) => {
209
+ callNative(() => loadNativeAddon().inputScrollWheel(xSteps, ySteps));
210
+ };
179
211
  const nativeMappedX11WindowCount = () => callNative(() => loadNativeAddon().mappedX11WindowCount());
180
212
  const nativeElementInfo = (element) => callNative(() => loadNativeAddon().elementInfo(element));
181
213
  const nativeTrayItems = (processId) => callNative(() => loadNativeAddon().trayItems(processId));
@@ -190,15 +222,25 @@ export {
190
222
  nativeSetText as E,
191
223
  nativeX11Info as F,
192
224
  nativeResizeHints as G,
193
- nativeBounds as H,
194
- nativeCapture as I,
195
- nativeTableCellAt as J,
196
- nativeFindAnyById as K,
197
- nativeTrayItems as L,
198
- nativeWindowCount as M,
199
- nativeWindowAt as N,
200
- nativeFindById as O,
201
- nativeProcessAtspiReadiness as P,
225
+ nativeActivateWindow as H,
226
+ nativeSetWindowBounds as I,
227
+ nativeResizeWindow as J,
228
+ nativeMoveWindow as K,
229
+ nativeBounds as L,
230
+ nativeCapture as M,
231
+ nativeTableCellAt as N,
232
+ nativeFindAnyById as O,
233
+ nativeTrayItems as P,
234
+ nativeWindowCount as Q,
235
+ nativeWindowAt as R,
236
+ nativeFindById as S,
237
+ nativeProcessAtspiReadiness as T,
238
+ nativeInputScrollWheel as U,
239
+ nativeInputSetMouseButton as V,
240
+ nativeInputMoveMouse as W,
241
+ nativeInputPressKeySym as X,
242
+ nativeInputPressKeyName as Y,
243
+ nativeInputSetModifier as Z,
202
244
  nativeCaptureScreen as a,
203
245
  nativeMappedX11WindowCount as b,
204
246
  nativeElementInfo as c,
@@ -226,4 +268,4 @@ export {
226
268
  nativeSelectedChildCount as y,
227
269
  nativeChildCount as z
228
270
  };
229
- //# sourceMappingURL=native-DlCBBWlV.js.map
271
+ //# sourceMappingURL=native-BRWJbzfa.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"native-BRWJbzfa.js","sources":["../src/native.ts"],"sourcesContent":["// gestament - TypeScript based test driver for GTK.\n// Copyright (c) Kouji Matsui. (@kekyo@mi.kekyo.net)\n// Under MIT.\n// https://github.com/kekyo/gestament\n\nimport { createRequire } from 'node:module';\nimport { existsSync } from 'node:fs';\nimport { dirname, resolve } from 'node:path';\nimport { fileURLToPath } from 'node:url';\n\nimport { normalizeNativeError } from './errors';\nimport { version as packageVersion } from './generated/packageMetadata';\nimport { appendPrerequisiteInstallHint } from './prerequisites';\nimport type { GtkAutomationError } from './types';\n\n/////////////////////////////////////////////////////////////////////////////////////////\n\ninterface NativeInfo {\n readonly version: string;\n readonly arch: string;\n readonly gtkBackend: GtkBackend;\n readonly napiVersion: number;\n}\n\nexport interface NativeCaptureBounds {\n readonly x: number;\n readonly y: number;\n readonly width: number;\n readonly height: number;\n}\n\nexport interface NativeCapture {\n readonly image: Buffer;\n readonly bounds: NativeCaptureBounds;\n readonly visibleBounds: NativeCaptureBounds;\n readonly clipped: boolean;\n}\n\nexport interface NativeWindowResizeHints {\n readonly baseWidth: number;\n readonly baseHeight: number;\n readonly minWidth: number;\n readonly minHeight: number;\n readonly widthIncrement: number;\n readonly heightIncrement: number;\n}\n\nexport interface NativeX11WindowInfo {\n readonly windowId: string;\n readonly title: string;\n readonly className: string;\n readonly instanceName: string;\n readonly normalHints: NativeWindowResizeHints;\n}\n\nexport interface NativeElementInfo {\n readonly roleName: string;\n readonly localizedRoleName: string;\n readonly accessibleId: string;\n readonly name: string;\n readonly description: string;\n readonly interfaces: string[];\n readonly states: string[];\n}\n\n/** AT-SPI Value metadata returned by the native layer. */\nexport interface NativeValueInfo {\n /** Current numeric value. */\n readonly value: number;\n\n /** Minimum accepted numeric value. */\n readonly minimum: number;\n\n /** Maximum accepted numeric value. */\n readonly maximum: number;\n\n /** Minimum increment used by step-based controls. */\n readonly minimumIncrement: number;\n\n /** Text representation reported by AT-SPI, when available. */\n readonly text: string;\n}\n\n/** Point returned by the native layer. */\nexport interface NativeImagePoint {\n /** Horizontal pixel coordinate. */\n readonly x: number;\n\n /** Vertical pixel coordinate. */\n readonly y: number;\n}\n\n/** Image size returned by the native layer. */\nexport interface NativeImageSize {\n /** Image width in physical pixels. */\n readonly width: number;\n\n /** Image height in physical pixels. */\n readonly height: number;\n}\n\n/** AT-SPI Image metadata returned by the native layer. */\nexport interface NativeImageInfo {\n /** Text description reported by AT-SPI. */\n readonly description: string;\n\n /** Image locale reported by AT-SPI. */\n readonly locale: string;\n\n /** Image position reported by AT-SPI. */\n readonly position: NativeImagePoint;\n\n /** Image size reported by AT-SPI. */\n readonly size: NativeImageSize;\n\n /** Screen-relative image bounds reported by AT-SPI. */\n readonly bounds: NativeCaptureBounds;\n}\n\n/** Opaque native element handle backed by an AT-SPI accessible proxy. */\nexport type NativeElementHandle = object;\n\n/** AT-SPI readiness state reported by the native layer. */\nexport type NativeAtspiReadiness =\n | 'ready'\n | 'missing-bus-name'\n | 'missing-root'\n | 'missing-cache';\n\n/** StatusNotifier tray item metadata reported by the native layer. */\nexport interface NativeTrayItem {\n readonly busName: string;\n readonly objectPath: string;\n readonly id: string;\n readonly title: string;\n readonly status: string;\n readonly iconName: string;\n readonly accessibleId: string;\n}\n\ninterface NativeAddon {\n readonly findById: (\n processId: number,\n id: string\n ) => NativeElementHandle | undefined;\n readonly processAtspiReadiness: (processId: number) => NativeAtspiReadiness;\n readonly findAnyById: (id: string) => NativeElementHandle | undefined;\n readonly setTextById: (processId: number, id: string, text: string) => void;\n readonly clickById: (processId: number, id: string) => void;\n readonly textById: (processId: number, id: string) => string;\n readonly captureById: (processId: number, id: string) => NativeCapture;\n readonly windowCount: (processId: number) => number;\n readonly windowAt: (\n processId: number,\n index: number\n ) => NativeElementHandle | undefined;\n readonly childCount: (element: NativeElementHandle) => number;\n readonly childAt: (\n element: NativeElementHandle,\n index: number\n ) => NativeElementHandle | undefined;\n readonly selectedChildCount: (element: NativeElementHandle) => number;\n readonly selectedChildAt: (\n element: NativeElementHandle,\n index: number\n ) => NativeElementHandle | undefined;\n readonly isChildSelected: (\n element: NativeElementHandle,\n index: number\n ) => boolean;\n readonly selectChildAt: (element: NativeElementHandle, index: number) => void;\n readonly deselectChildAt: (\n element: NativeElementHandle,\n index: number\n ) => void;\n readonly selectAllChildren: (element: NativeElementHandle) => void;\n readonly clearSelection: (element: NativeElementHandle) => void;\n readonly tableRowCount: (element: NativeElementHandle) => number;\n readonly tableColumnCount: (element: NativeElementHandle) => number;\n readonly tableCellAt: (\n element: NativeElementHandle,\n row: number,\n column: number\n ) => NativeElementHandle | undefined;\n readonly tableSelectedRows: (element: NativeElementHandle) => number[];\n readonly tableSelectedColumns: (element: NativeElementHandle) => number[];\n readonly tableIsRowSelected: (\n element: NativeElementHandle,\n row: number\n ) => boolean;\n readonly tableIsColumnSelected: (\n element: NativeElementHandle,\n column: number\n ) => boolean;\n readonly tableIsCellSelected: (\n element: NativeElementHandle,\n row: number,\n column: number\n ) => boolean;\n readonly tableSelectRow: (element: NativeElementHandle, row: number) => void;\n readonly tableDeselectRow: (\n element: NativeElementHandle,\n row: number\n ) => void;\n readonly tableSelectColumn: (\n element: NativeElementHandle,\n column: number\n ) => void;\n readonly tableDeselectColumn: (\n element: NativeElementHandle,\n column: number\n ) => void;\n readonly setText: (element: NativeElementHandle, text: string) => void;\n readonly click: (element: NativeElementHandle) => void;\n readonly text: (element: NativeElementHandle) => string;\n readonly valueInfo: (element: NativeElementHandle) => NativeValueInfo;\n readonly imageInfo: (element: NativeElementHandle) => NativeImageInfo;\n readonly setValue: (element: NativeElementHandle, value: number) => void;\n readonly capture: (element: NativeElementHandle) => NativeCapture;\n readonly bounds: (element: NativeElementHandle) => NativeCaptureBounds;\n readonly moveWindow: (\n element: NativeElementHandle,\n x: number,\n y: number\n ) => NativeCaptureBounds;\n readonly resizeWindow: (\n element: NativeElementHandle,\n width: number,\n height: number\n ) => NativeCaptureBounds;\n readonly setWindowBounds: (\n element: NativeElementHandle,\n x: number,\n y: number,\n width: number,\n height: number\n ) => NativeCaptureBounds;\n readonly activateWindow: (element: NativeElementHandle) => void;\n readonly resizeHints: (\n element: NativeElementHandle\n ) => NativeWindowResizeHints;\n readonly x11Info: (element: NativeElementHandle) => NativeX11WindowInfo;\n readonly captureScreen: () => NativeCapture;\n readonly captureBounds: (\n x: number,\n y: number,\n width: number,\n height: number\n ) => NativeCapture;\n readonly inputSetModifier: (modifier: string, pressed: boolean) => void;\n readonly inputPressKeyName: (key: string) => void;\n readonly inputPressKeySym: (keysym: number) => void;\n readonly inputMoveMouse: (x: number, y: number) => void;\n readonly inputSetMouseButton: (button: string, pressed: boolean) => void;\n readonly inputScrollWheel: (xSteps: number, ySteps: number) => void;\n readonly mappedX11WindowCount: () => number;\n readonly elementInfo: (element: NativeElementHandle) => NativeElementInfo;\n readonly trayItems: (processId: number) => NativeTrayItem[];\n readonly runTrayHost: () => void;\n readonly nativeInfo: () => NativeInfo;\n}\n\ntype GtkBackend = 'gtk3' | 'gtk4';\ntype GtkBackendSelection = GtkBackend | 'auto';\n\nconst require = createRequire(import.meta.url);\nconst packageRoot = resolve(dirname(fileURLToPath(import.meta.url)), '..');\n\nlet loadedAddon: NativeAddon | undefined;\n\nconst createNativeLoadError = (message: string): GtkAutomationError => {\n const loadError = new Error(message) as GtkAutomationError;\n Object.defineProperty(loadError, 'code', {\n enumerable: true,\n value: 'NATIVE_LOAD_FAILED',\n });\n return loadError;\n};\n\nconst selectedGtkBackend = (): GtkBackendSelection => {\n const value = process.env.GESTAMENT_GTK_BACKEND;\n if (value === undefined || value.length === 0) {\n return 'gtk3';\n }\n if (value === 'gtk3' || value === 'gtk4' || value === 'auto') {\n return value;\n }\n throw createNativeLoadError(\n `Unsupported GESTAMENT_GTK_BACKEND: ${value}. Expected gtk3, gtk4, or auto.`\n );\n};\n\nconst candidateGtkBackends = (): readonly GtkBackend[] => {\n const selected = selectedGtkBackend();\n return selected === 'auto' ? ['gtk3', 'gtk4'] : [selected];\n};\n\nconst prebuildDirectory = (): string => {\n if (process.platform !== 'linux') {\n throw createNativeLoadError(\n `Unsupported platform for gestament native prebuilds: ${process.platform}.`\n );\n }\n\n switch (process.arch) {\n case 'x64':\n return 'linux-x64';\n case 'ia32':\n return 'linux-ia32';\n case 'arm64':\n return 'linux-arm64';\n case 'arm':\n return 'linux-arm';\n case 'riscv64':\n return 'linux-riscv64';\n default:\n throw createNativeLoadError(\n `Unsupported architecture for gestament native prebuilds: ${process.arch}.`\n );\n }\n};\n\nconst prebuildFile = (): string =>\n process.arch === 'arm'\n ? 'node.napi.armv7.glibc.node'\n : 'node.napi.glibc.node';\n\nconst prebuildPath = (backend: GtkBackend): string =>\n resolve(\n packageRoot,\n 'prebuilds',\n prebuildDirectory(),\n backend,\n prebuildFile()\n );\n\nconst loadNativePrebuild = (backend: GtkBackend): NativeAddon => {\n const path = prebuildPath(backend);\n if (!existsSync(path)) {\n throw new Error(`Missing ${backend} native prebuild: ${path}`);\n }\n return require(path) as NativeAddon;\n};\n\nconst loadNativeAddon = (): NativeAddon => {\n if (loadedAddon !== undefined) {\n return loadedAddon;\n }\n\n const errors: string[] = [];\n for (const backend of candidateGtkBackends()) {\n try {\n const addon = loadNativePrebuild(backend);\n const nativeInfo = addon.nativeInfo();\n if (nativeInfo.version !== packageVersion) {\n throw new Error(\n `gestament native prebuild version mismatch: native=${nativeInfo.version}, package=${packageVersion}`\n );\n }\n if (nativeInfo.gtkBackend !== backend) {\n throw new Error(\n `gestament native prebuild backend mismatch: native=${nativeInfo.gtkBackend}, requested=${backend}`\n );\n }\n loadedAddon = addon;\n return loadedAddon;\n } catch (error) {\n const message =\n error instanceof Error\n ? error.message\n : `Unknown error: ${String(error)}`;\n errors.push(`${backend}: ${message}`);\n }\n }\n\n throw createNativeLoadError(\n appendPrerequisiteInstallHint(\n `Failed to load a compatible gestament native prebuild from ${packageRoot} ` +\n `(GESTAMENT_GTK_BACKEND=${selectedGtkBackend()}). Ensure this package ` +\n 'includes prebuilds for the current Linux/glibc architecture and selected ' +\n 'GTK backend, and that runtime libraries such as libatspi, glib, gio, ' +\n `GTK, X11, and dbus are installed. Original errors: ${errors.join(' | ')}`\n )\n );\n};\n\nconst callNative = <Result>(operation: () => Result): Result => {\n try {\n return operation();\n } catch (error) {\n throw normalizeNativeError(error);\n }\n};\n\n/////////////////////////////////////////////////////////////////////////////////////////\n\n/** Resolves an accessible id to a native element when it exists. */\nexport const nativeFindById = (\n processId: number,\n id: string\n): NativeElementHandle | undefined =>\n callNative(() => loadNativeAddon().findById(processId, id));\n\n/** Checks whether a GTK process has completed AT-SPI root/cache registration. */\nexport const nativeProcessAtspiReadiness = (\n processId: number\n): NativeAtspiReadiness =>\n callNative(() => loadNativeAddon().processAtspiReadiness(processId));\n\n/** Resolves an accessible id to a native element across all exposed processes. */\nexport const nativeFindAnyById = (\n id: string\n): NativeElementHandle | undefined =>\n callNative(() => loadNativeAddon().findAnyById(id));\n\n/** Sets text contents on the accessible with the given id. */\nexport const nativeSetTextById = (\n processId: number,\n id: string,\n text: string\n): void => {\n callNative(() => loadNativeAddon().setTextById(processId, id, text));\n};\n\n/** Executes the first action on the accessible with the given id. */\nexport const nativeClickById = (processId: number, id: string): void => {\n callNative(() => loadNativeAddon().clickById(processId, id));\n};\n\n/** Reads text from the accessible with the given id. */\nexport const nativeTextById = (processId: number, id: string): string =>\n callNative(() => loadNativeAddon().textById(processId, id));\n\n/** Captures real screen pixels for the accessible with the given id. */\nexport const nativeCaptureById = (\n processId: number,\n id: string\n): NativeCapture =>\n callNative(() => loadNativeAddon().captureById(processId, id));\n\n/** Counts top-level windows hosted by the process. */\nexport const nativeWindowCount = (processId: number): number =>\n callNative(() => loadNativeAddon().windowCount(processId));\n\n/** Resolves a top-level window index to an element handle when it exists. */\nexport const nativeWindowAt = (\n processId: number,\n index: number\n): NativeElementHandle | undefined =>\n callNative(() => loadNativeAddon().windowAt(processId, index));\n\n/** Counts direct children for an element handle. */\nexport const nativeChildCount = (element: NativeElementHandle): number =>\n callNative(() => loadNativeAddon().childCount(element));\n\n/** Resolves a direct child index to an element handle when it exists. */\nexport const nativeChildAt = (\n element: NativeElementHandle,\n index: number\n): NativeElementHandle | undefined =>\n callNative(() => loadNativeAddon().childAt(element, index));\n\n/** Counts selected children for a selectable element handle. */\nexport const nativeSelectedChildCount = (\n element: NativeElementHandle\n): number => callNative(() => loadNativeAddon().selectedChildCount(element));\n\n/** Resolves a selected child index to an element handle when it exists. */\nexport const nativeSelectedChildAt = (\n element: NativeElementHandle,\n index: number\n): NativeElementHandle | undefined =>\n callNative(() => loadNativeAddon().selectedChildAt(element, index));\n\n/** Reads whether a direct child is selected. */\nexport const nativeIsChildSelected = (\n element: NativeElementHandle,\n index: number\n): boolean =>\n callNative(() => loadNativeAddon().isChildSelected(element, index));\n\n/** Selects a direct child for a selectable element handle. */\nexport const nativeSelectChildAt = (\n element: NativeElementHandle,\n index: number\n): void => {\n callNative(() => loadNativeAddon().selectChildAt(element, index));\n};\n\n/** Deselects a direct child for a selectable element handle. */\nexport const nativeDeselectChildAt = (\n element: NativeElementHandle,\n index: number\n): void => {\n callNative(() => loadNativeAddon().deselectChildAt(element, index));\n};\n\n/** Selects all children for a selectable element handle. */\nexport const nativeSelectAllChildren = (element: NativeElementHandle): void => {\n callNative(() => loadNativeAddon().selectAllChildren(element));\n};\n\n/** Clears child selection for a selectable element handle. */\nexport const nativeClearSelection = (element: NativeElementHandle): void => {\n callNative(() => loadNativeAddon().clearSelection(element));\n};\n\n/** Counts table rows for a table element handle. */\nexport const nativeTableRowCount = (element: NativeElementHandle): number =>\n callNative(() => loadNativeAddon().tableRowCount(element));\n\n/** Counts table columns for a table element handle. */\nexport const nativeTableColumnCount = (element: NativeElementHandle): number =>\n callNative(() => loadNativeAddon().tableColumnCount(element));\n\n/** Resolves a table cell element handle by row and column when it exists. */\nexport const nativeTableCellAt = (\n element: NativeElementHandle,\n row: number,\n column: number\n): NativeElementHandle | undefined =>\n callNative(() => loadNativeAddon().tableCellAt(element, row, column));\n\n/** Reads selected table row indexes. */\nexport const nativeTableSelectedRows = (\n element: NativeElementHandle\n): number[] => callNative(() => loadNativeAddon().tableSelectedRows(element));\n\n/** Reads selected table column indexes. */\nexport const nativeTableSelectedColumns = (\n element: NativeElementHandle\n): number[] =>\n callNative(() => loadNativeAddon().tableSelectedColumns(element));\n\n/** Reads whether a table row is selected. */\nexport const nativeTableIsRowSelected = (\n element: NativeElementHandle,\n row: number\n): boolean =>\n callNative(() => loadNativeAddon().tableIsRowSelected(element, row));\n\n/** Reads whether a table column is selected. */\nexport const nativeTableIsColumnSelected = (\n element: NativeElementHandle,\n column: number\n): boolean =>\n callNative(() => loadNativeAddon().tableIsColumnSelected(element, column));\n\n/** Reads whether a table cell is selected. */\nexport const nativeTableIsCellSelected = (\n element: NativeElementHandle,\n row: number,\n column: number\n): boolean =>\n callNative(() => loadNativeAddon().tableIsCellSelected(element, row, column));\n\n/** Selects a table row. */\nexport const nativeTableSelectRow = (\n element: NativeElementHandle,\n row: number\n): void => {\n callNative(() => loadNativeAddon().tableSelectRow(element, row));\n};\n\n/** Deselects a table row. */\nexport const nativeTableDeselectRow = (\n element: NativeElementHandle,\n row: number\n): void => {\n callNative(() => loadNativeAddon().tableDeselectRow(element, row));\n};\n\n/** Selects a table column. */\nexport const nativeTableSelectColumn = (\n element: NativeElementHandle,\n column: number\n): void => {\n callNative(() => loadNativeAddon().tableSelectColumn(element, column));\n};\n\n/** Deselects a table column. */\nexport const nativeTableDeselectColumn = (\n element: NativeElementHandle,\n column: number\n): void => {\n callNative(() => loadNativeAddon().tableDeselectColumn(element, column));\n};\n\n/** Sets text contents on the accessible resolved by an element handle. */\nexport const nativeSetText = (\n element: NativeElementHandle,\n text: string\n): void => {\n callNative(() => loadNativeAddon().setText(element, text));\n};\n\n/** Executes the first action on the accessible resolved by an element handle. */\nexport const nativeClick = (element: NativeElementHandle): void => {\n callNative(() => loadNativeAddon().click(element));\n};\n\n/** Reads text from the accessible resolved by an element handle. */\nexport const nativeText = (element: NativeElementHandle): string =>\n callNative(() => loadNativeAddon().text(element));\n\n/** Reads value metadata from the accessible resolved by an element handle. */\nexport const nativeValueInfo = (\n element: NativeElementHandle\n): NativeValueInfo => callNative(() => loadNativeAddon().valueInfo(element));\n\n/** Reads image metadata from the accessible resolved by an element handle. */\nexport const nativeImageInfo = (\n element: NativeElementHandle\n): NativeImageInfo => callNative(() => loadNativeAddon().imageInfo(element));\n\n/** Sets a numeric value on the accessible resolved by an element handle. */\nexport const nativeSetValue = (\n element: NativeElementHandle,\n value: number\n): void => {\n callNative(() => loadNativeAddon().setValue(element, value));\n};\n\n/** Captures real screen pixels for the accessible resolved by an element handle. */\nexport const nativeCapture = (element: NativeElementHandle): NativeCapture =>\n callNative(() => loadNativeAddon().capture(element));\n\n/** Reads screen-relative bounds for the accessible resolved by an element handle. */\nexport const nativeBounds = (\n element: NativeElementHandle\n): NativeCaptureBounds => callNative(() => loadNativeAddon().bounds(element));\n\n/** Moves a window element and returns the observed screen-relative bounds. */\nexport const nativeMoveWindow = (\n element: NativeElementHandle,\n x: number,\n y: number\n): NativeCaptureBounds =>\n callNative(() => loadNativeAddon().moveWindow(element, x, y));\n\n/** Resizes a window element and returns the observed screen-relative bounds. */\nexport const nativeResizeWindow = (\n element: NativeElementHandle,\n width: number,\n height: number\n): NativeCaptureBounds =>\n callNative(() => loadNativeAddon().resizeWindow(element, width, height));\n\n/** Moves and resizes a window element and returns the observed bounds. */\nexport const nativeSetWindowBounds = (\n element: NativeElementHandle,\n bounds: NativeCaptureBounds\n): NativeCaptureBounds =>\n callNative(() =>\n loadNativeAddon().setWindowBounds(\n element,\n bounds.x,\n bounds.y,\n bounds.width,\n bounds.height\n )\n );\n\n/** Activates a window element through the current display session. */\nexport const nativeActivateWindow = (element: NativeElementHandle): void => {\n callNative(() => loadNativeAddon().activateWindow(element));\n};\n\n/** Reads X11 WM_NORMAL_HINTS for the accessible resolved by an element handle. */\nexport const nativeResizeHints = (\n element: NativeElementHandle\n): NativeWindowResizeHints =>\n callNative(() => loadNativeAddon().resizeHints(element));\n\n/** Reads X11 window metadata for the accessible resolved by an element handle. */\nexport const nativeX11Info = (\n element: NativeElementHandle\n): NativeX11WindowInfo => callNative(() => loadNativeAddon().x11Info(element));\n\n/** Captures the full X11 root window currently addressed by DISPLAY. */\nexport const nativeCaptureScreen = (): NativeCapture =>\n callNative(() => loadNativeAddon().captureScreen());\n\n/** Captures real screen pixels for explicit screen-relative bounds. */\nexport const nativeCaptureBounds = (\n bounds: NativeCaptureBounds\n): NativeCapture =>\n callNative(() =>\n loadNativeAddon().captureBounds(\n bounds.x,\n bounds.y,\n bounds.width,\n bounds.height\n )\n );\n\n/** Presses or releases a keyboard modifier in the current display session. */\nexport const nativeInputSetModifier = (\n modifier: string,\n pressed: boolean\n): void => {\n callNative(() => loadNativeAddon().inputSetModifier(modifier, pressed));\n};\n\n/** Sends one press-and-release key input by X11 keysym name. */\nexport const nativeInputPressKeyName = (key: string): void => {\n callNative(() => loadNativeAddon().inputPressKeyName(key));\n};\n\n/** Sends one press-and-release key input by numeric X11 keysym value. */\nexport const nativeInputPressKeySym = (keysym: number): void => {\n callNative(() => loadNativeAddon().inputPressKeySym(keysym));\n};\n\n/** Moves the mouse pointer in the current display session. */\nexport const nativeInputMoveMouse = (x: number, y: number): void => {\n callNative(() => loadNativeAddon().inputMoveMouse(x, y));\n};\n\n/** Presses or releases one mouse button in the current display session. */\nexport const nativeInputSetMouseButton = (\n button: string,\n pressed: boolean\n): void => {\n callNative(() => loadNativeAddon().inputSetMouseButton(button, pressed));\n};\n\n/** Sends wheel steps in the current display session. */\nexport const nativeInputScrollWheel = (\n xSteps: number,\n ySteps: number\n): void => {\n callNative(() => loadNativeAddon().inputScrollWheel(xSteps, ySteps));\n};\n\n/** Counts mapped top-level X11 windows currently addressed by DISPLAY. */\nexport const nativeMappedX11WindowCount = (): number =>\n callNative(() => loadNativeAddon().mappedX11WindowCount());\n\n/** Reads AT-SPI metadata for the accessible resolved by an element handle. */\nexport const nativeElementInfo = (\n element: NativeElementHandle\n): NativeElementInfo =>\n callNative(() => loadNativeAddon().elementInfo(element));\n\n/** Lists StatusNotifier tray items owned by the process. */\nexport const nativeTrayItems = (processId: number): NativeTrayItem[] =>\n callNative(() => loadNativeAddon().trayItems(processId));\n\n/** Runs the test tray host until the process is terminated. */\nexport const nativeRunTrayHost = (): void => {\n callNative(() => loadNativeAddon().runTrayHost());\n};\n"],"names":["require","packageVersion"],"mappings":";;;;;;;AAyQA,MAAMA,YAAU,cAAc,YAAY,GAAG;AAC7C,MAAM,cAAc,QAAQ,QAAQ,cAAc,YAAY,GAAG,CAAC,GAAG,IAAI;AAEzE,IAAI;AAEJ,MAAM,wBAAwB,CAAC,YAAwC;AACrE,QAAM,YAAY,IAAI,MAAM,OAAO;AACnC,SAAO,eAAe,WAAW,QAAQ;AAAA,IACvC,YAAY;AAAA,IACZ,OAAO;AAAA,EAAA,CACR;AACD,SAAO;AACT;AAEA,MAAM,qBAAqB,MAA2B;AACpD,QAAM,QAAQ,QAAQ,IAAI;AAC1B,MAAI,UAAU,UAAa,MAAM,WAAW,GAAG;AAC7C,WAAO;AAAA,EACT;AACA,MAAI,UAAU,UAAU,UAAU,UAAU,UAAU,QAAQ;AAC5D,WAAO;AAAA,EACT;AACA,QAAM;AAAA,IACJ,sCAAsC,KAAK;AAAA,EAAA;AAE/C;AAEA,MAAM,uBAAuB,MAA6B;AACxD,QAAM,WAAW,mBAAA;AACjB,SAAO,aAAa,SAAS,CAAC,QAAQ,MAAM,IAAI,CAAC,QAAQ;AAC3D;AAEA,MAAM,oBAAoB,MAAc;AACtC,MAAI,QAAQ,aAAa,SAAS;AAChC,UAAM;AAAA,MACJ,wDAAwD,QAAQ,QAAQ;AAAA,IAAA;AAAA,EAE5E;AAEA,UAAQ,QAAQ,MAAA;AAAA,IACd,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AACH,aAAO;AAAA,IACT;AACE,YAAM;AAAA,QACJ,4DAA4D,QAAQ,IAAI;AAA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AAM,sBAAsB,CACjC,WAEA;AAAA,EAAW,MACT,kBAAkB;AAAA,IAChB,OAAO;AAAA,IACP,OAAO;AAAA,IACP,OAAO;AAAA,IACP,OAAO;AAAA,EAAA;AAEX;AAGK,MAAM,yBAAyB,CACpC,UACA,YACS;AACT,aAAW,MAAM,gBAAA,EAAkB,iBAAiB,UAAU,OAAO,CAAC;AACxE;AAGO,MAAM,0BAA0B,CAAC,QAAsB;AAC5D,aAAW,MAAM,gBAAA,EAAkB,kBAAkB,GAAG,CAAC;AAC3D;AAGO,MAAM,yBAAyB,CAAC,WAAyB;AAC9D,aAAW,MAAM,gBAAA,EAAkB,iBAAiB,MAAM,CAAC;AAC7D;AAGO,MAAM,uBAAuB,CAAC,GAAW,MAAoB;AAClE,aAAW,MAAM,gBAAA,EAAkB,eAAe,GAAG,CAAC,CAAC;AACzD;AAGO,MAAM,4BAA4B,CACvC,QACA,YACS;AACT,aAAW,MAAM,gBAAA,EAAkB,oBAAoB,QAAQ,OAAO,CAAC;AACzE;AAGO,MAAM,yBAAyB,CACpC,QACA,WACS;AACT,aAAW,MAAM,gBAAA,EAAkB,iBAAiB,QAAQ,MAAM,CAAC;AACrE;AAGO,MAAM,6BAA6B,MACxC,WAAW,MAAM,gBAAA,EAAkB,sBAAsB;AAGpD,MAAM,oBAAoB,CAC/B,YAEA,WAAW,MAAM,gBAAA,EAAkB,YAAY,OAAO,CAAC;AAGlD,MAAM,kBAAkB,CAAC,cAC9B,WAAW,MAAM,gBAAA,EAAkB,UAAU,SAAS,CAAC;AAGlD,MAAM,oBAAoB,MAAY;AAC3C,aAAW,MAAM,kBAAkB,aAAa;AAClD;"}
@@ -4,11 +4,11 @@ const node_fs = require("node:fs");
4
4
  const node_path = require("node:path");
5
5
  const node_url = require("node:url");
6
6
  const errors = require("./errors-6gj5YuLw.cjs");
7
- const packageMetadata = require("./packageMetadata-CewXH0iF.cjs");
7
+ const packageMetadata = require("./packageMetadata-DSIckEfC.cjs");
8
8
  const prerequisites = require("./prerequisites-BuZST2Dy.cjs");
9
9
  var _documentCurrentScript = typeof document !== "undefined" ? document.currentScript : null;
10
- const require$1 = node_module.createRequire(typeof document === "undefined" ? require("url").pathToFileURL(__filename).href : _documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === "SCRIPT" && _documentCurrentScript.src || new URL("native-Kfm95Uxw.cjs", document.baseURI).href);
11
- const packageRoot = node_path.resolve(node_path.dirname(node_url.fileURLToPath(typeof document === "undefined" ? require("url").pathToFileURL(__filename).href : _documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === "SCRIPT" && _documentCurrentScript.src || new URL("native-Kfm95Uxw.cjs", document.baseURI).href)), "..");
10
+ const require$1 = node_module.createRequire(typeof document === "undefined" ? require("url").pathToFileURL(__filename).href : _documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === "SCRIPT" && _documentCurrentScript.src || new URL("native-C1llTPc6.cjs", document.baseURI).href);
11
+ const packageRoot = node_path.resolve(node_path.dirname(node_url.fileURLToPath(typeof document === "undefined" ? require("url").pathToFileURL(__filename).href : _documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === "SCRIPT" && _documentCurrentScript.src || new URL("native-C1llTPc6.cjs", document.baseURI).href)), "..");
12
12
  let loadedAddon;
13
13
  const createNativeLoadError = (message) => {
14
14
  const loadError = new Error(message);
@@ -167,6 +167,20 @@ const nativeSetValue = (element, value) => {
167
167
  };
168
168
  const nativeCapture = (element) => callNative(() => loadNativeAddon().capture(element));
169
169
  const nativeBounds = (element) => callNative(() => loadNativeAddon().bounds(element));
170
+ const nativeMoveWindow = (element, x, y) => callNative(() => loadNativeAddon().moveWindow(element, x, y));
171
+ const nativeResizeWindow = (element, width, height) => callNative(() => loadNativeAddon().resizeWindow(element, width, height));
172
+ const nativeSetWindowBounds = (element, bounds) => callNative(
173
+ () => loadNativeAddon().setWindowBounds(
174
+ element,
175
+ bounds.x,
176
+ bounds.y,
177
+ bounds.width,
178
+ bounds.height
179
+ )
180
+ );
181
+ const nativeActivateWindow = (element) => {
182
+ callNative(() => loadNativeAddon().activateWindow(element));
183
+ };
170
184
  const nativeResizeHints = (element) => callNative(() => loadNativeAddon().resizeHints(element));
171
185
  const nativeX11Info = (element) => callNative(() => loadNativeAddon().x11Info(element));
172
186
  const nativeCaptureScreen = () => callNative(() => loadNativeAddon().captureScreen());
@@ -178,12 +192,31 @@ const nativeCaptureBounds = (bounds) => callNative(
178
192
  bounds.height
179
193
  )
180
194
  );
195
+ const nativeInputSetModifier = (modifier, pressed) => {
196
+ callNative(() => loadNativeAddon().inputSetModifier(modifier, pressed));
197
+ };
198
+ const nativeInputPressKeyName = (key) => {
199
+ callNative(() => loadNativeAddon().inputPressKeyName(key));
200
+ };
201
+ const nativeInputPressKeySym = (keysym) => {
202
+ callNative(() => loadNativeAddon().inputPressKeySym(keysym));
203
+ };
204
+ const nativeInputMoveMouse = (x, y) => {
205
+ callNative(() => loadNativeAddon().inputMoveMouse(x, y));
206
+ };
207
+ const nativeInputSetMouseButton = (button, pressed) => {
208
+ callNative(() => loadNativeAddon().inputSetMouseButton(button, pressed));
209
+ };
210
+ const nativeInputScrollWheel = (xSteps, ySteps) => {
211
+ callNative(() => loadNativeAddon().inputScrollWheel(xSteps, ySteps));
212
+ };
181
213
  const nativeMappedX11WindowCount = () => callNative(() => loadNativeAddon().mappedX11WindowCount());
182
214
  const nativeElementInfo = (element) => callNative(() => loadNativeAddon().elementInfo(element));
183
215
  const nativeTrayItems = (processId) => callNative(() => loadNativeAddon().trayItems(processId));
184
216
  const nativeRunTrayHost = () => {
185
217
  callNative(() => loadNativeAddon().runTrayHost());
186
218
  };
219
+ exports.nativeActivateWindow = nativeActivateWindow;
187
220
  exports.nativeBounds = nativeBounds;
188
221
  exports.nativeCapture = nativeCapture;
189
222
  exports.nativeCaptureBounds = nativeCaptureBounds;
@@ -197,10 +230,18 @@ exports.nativeElementInfo = nativeElementInfo;
197
230
  exports.nativeFindAnyById = nativeFindAnyById;
198
231
  exports.nativeFindById = nativeFindById;
199
232
  exports.nativeImageInfo = nativeImageInfo;
233
+ exports.nativeInputMoveMouse = nativeInputMoveMouse;
234
+ exports.nativeInputPressKeyName = nativeInputPressKeyName;
235
+ exports.nativeInputPressKeySym = nativeInputPressKeySym;
236
+ exports.nativeInputScrollWheel = nativeInputScrollWheel;
237
+ exports.nativeInputSetModifier = nativeInputSetModifier;
238
+ exports.nativeInputSetMouseButton = nativeInputSetMouseButton;
200
239
  exports.nativeIsChildSelected = nativeIsChildSelected;
201
240
  exports.nativeMappedX11WindowCount = nativeMappedX11WindowCount;
241
+ exports.nativeMoveWindow = nativeMoveWindow;
202
242
  exports.nativeProcessAtspiReadiness = nativeProcessAtspiReadiness;
203
243
  exports.nativeResizeHints = nativeResizeHints;
244
+ exports.nativeResizeWindow = nativeResizeWindow;
204
245
  exports.nativeRunTrayHost = nativeRunTrayHost;
205
246
  exports.nativeSelectAllChildren = nativeSelectAllChildren;
206
247
  exports.nativeSelectChildAt = nativeSelectChildAt;
@@ -208,6 +249,7 @@ exports.nativeSelectedChildAt = nativeSelectedChildAt;
208
249
  exports.nativeSelectedChildCount = nativeSelectedChildCount;
209
250
  exports.nativeSetText = nativeSetText;
210
251
  exports.nativeSetValue = nativeSetValue;
252
+ exports.nativeSetWindowBounds = nativeSetWindowBounds;
211
253
  exports.nativeTableCellAt = nativeTableCellAt;
212
254
  exports.nativeTableColumnCount = nativeTableColumnCount;
213
255
  exports.nativeTableDeselectColumn = nativeTableDeselectColumn;
@@ -226,4 +268,4 @@ exports.nativeValueInfo = nativeValueInfo;
226
268
  exports.nativeWindowAt = nativeWindowAt;
227
269
  exports.nativeWindowCount = nativeWindowCount;
228
270
  exports.nativeX11Info = nativeX11Info;
229
- //# sourceMappingURL=native-Kfm95Uxw.cjs.map
271
+ //# sourceMappingURL=native-C1llTPc6.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"native-C1llTPc6.cjs","sources":["../src/native.ts"],"sourcesContent":["// gestament - TypeScript based test driver for GTK.\n// Copyright (c) Kouji Matsui. (@kekyo@mi.kekyo.net)\n// Under MIT.\n// https://github.com/kekyo/gestament\n\nimport { createRequire } from 'node:module';\nimport { existsSync } from 'node:fs';\nimport { dirname, resolve } from 'node:path';\nimport { fileURLToPath } from 'node:url';\n\nimport { normalizeNativeError } from './errors';\nimport { version as packageVersion } from './generated/packageMetadata';\nimport { appendPrerequisiteInstallHint } from './prerequisites';\nimport type { GtkAutomationError } from './types';\n\n/////////////////////////////////////////////////////////////////////////////////////////\n\ninterface NativeInfo {\n readonly version: string;\n readonly arch: string;\n readonly gtkBackend: GtkBackend;\n readonly napiVersion: number;\n}\n\nexport interface NativeCaptureBounds {\n readonly x: number;\n readonly y: number;\n readonly width: number;\n readonly height: number;\n}\n\nexport interface NativeCapture {\n readonly image: Buffer;\n readonly bounds: NativeCaptureBounds;\n readonly visibleBounds: NativeCaptureBounds;\n readonly clipped: boolean;\n}\n\nexport interface NativeWindowResizeHints {\n readonly baseWidth: number;\n readonly baseHeight: number;\n readonly minWidth: number;\n readonly minHeight: number;\n readonly widthIncrement: number;\n readonly heightIncrement: number;\n}\n\nexport interface NativeX11WindowInfo {\n readonly windowId: string;\n readonly title: string;\n readonly className: string;\n readonly instanceName: string;\n readonly normalHints: NativeWindowResizeHints;\n}\n\nexport interface NativeElementInfo {\n readonly roleName: string;\n readonly localizedRoleName: string;\n readonly accessibleId: string;\n readonly name: string;\n readonly description: string;\n readonly interfaces: string[];\n readonly states: string[];\n}\n\n/** AT-SPI Value metadata returned by the native layer. */\nexport interface NativeValueInfo {\n /** Current numeric value. */\n readonly value: number;\n\n /** Minimum accepted numeric value. */\n readonly minimum: number;\n\n /** Maximum accepted numeric value. */\n readonly maximum: number;\n\n /** Minimum increment used by step-based controls. */\n readonly minimumIncrement: number;\n\n /** Text representation reported by AT-SPI, when available. */\n readonly text: string;\n}\n\n/** Point returned by the native layer. */\nexport interface NativeImagePoint {\n /** Horizontal pixel coordinate. */\n readonly x: number;\n\n /** Vertical pixel coordinate. */\n readonly y: number;\n}\n\n/** Image size returned by the native layer. */\nexport interface NativeImageSize {\n /** Image width in physical pixels. */\n readonly width: number;\n\n /** Image height in physical pixels. */\n readonly height: number;\n}\n\n/** AT-SPI Image metadata returned by the native layer. */\nexport interface NativeImageInfo {\n /** Text description reported by AT-SPI. */\n readonly description: string;\n\n /** Image locale reported by AT-SPI. */\n readonly locale: string;\n\n /** Image position reported by AT-SPI. */\n readonly position: NativeImagePoint;\n\n /** Image size reported by AT-SPI. */\n readonly size: NativeImageSize;\n\n /** Screen-relative image bounds reported by AT-SPI. */\n readonly bounds: NativeCaptureBounds;\n}\n\n/** Opaque native element handle backed by an AT-SPI accessible proxy. */\nexport type NativeElementHandle = object;\n\n/** AT-SPI readiness state reported by the native layer. */\nexport type NativeAtspiReadiness =\n | 'ready'\n | 'missing-bus-name'\n | 'missing-root'\n | 'missing-cache';\n\n/** StatusNotifier tray item metadata reported by the native layer. */\nexport interface NativeTrayItem {\n readonly busName: string;\n readonly objectPath: string;\n readonly id: string;\n readonly title: string;\n readonly status: string;\n readonly iconName: string;\n readonly accessibleId: string;\n}\n\ninterface NativeAddon {\n readonly findById: (\n processId: number,\n id: string\n ) => NativeElementHandle | undefined;\n readonly processAtspiReadiness: (processId: number) => NativeAtspiReadiness;\n readonly findAnyById: (id: string) => NativeElementHandle | undefined;\n readonly setTextById: (processId: number, id: string, text: string) => void;\n readonly clickById: (processId: number, id: string) => void;\n readonly textById: (processId: number, id: string) => string;\n readonly captureById: (processId: number, id: string) => NativeCapture;\n readonly windowCount: (processId: number) => number;\n readonly windowAt: (\n processId: number,\n index: number\n ) => NativeElementHandle | undefined;\n readonly childCount: (element: NativeElementHandle) => number;\n readonly childAt: (\n element: NativeElementHandle,\n index: number\n ) => NativeElementHandle | undefined;\n readonly selectedChildCount: (element: NativeElementHandle) => number;\n readonly selectedChildAt: (\n element: NativeElementHandle,\n index: number\n ) => NativeElementHandle | undefined;\n readonly isChildSelected: (\n element: NativeElementHandle,\n index: number\n ) => boolean;\n readonly selectChildAt: (element: NativeElementHandle, index: number) => void;\n readonly deselectChildAt: (\n element: NativeElementHandle,\n index: number\n ) => void;\n readonly selectAllChildren: (element: NativeElementHandle) => void;\n readonly clearSelection: (element: NativeElementHandle) => void;\n readonly tableRowCount: (element: NativeElementHandle) => number;\n readonly tableColumnCount: (element: NativeElementHandle) => number;\n readonly tableCellAt: (\n element: NativeElementHandle,\n row: number,\n column: number\n ) => NativeElementHandle | undefined;\n readonly tableSelectedRows: (element: NativeElementHandle) => number[];\n readonly tableSelectedColumns: (element: NativeElementHandle) => number[];\n readonly tableIsRowSelected: (\n element: NativeElementHandle,\n row: number\n ) => boolean;\n readonly tableIsColumnSelected: (\n element: NativeElementHandle,\n column: number\n ) => boolean;\n readonly tableIsCellSelected: (\n element: NativeElementHandle,\n row: number,\n column: number\n ) => boolean;\n readonly tableSelectRow: (element: NativeElementHandle, row: number) => void;\n readonly tableDeselectRow: (\n element: NativeElementHandle,\n row: number\n ) => void;\n readonly tableSelectColumn: (\n element: NativeElementHandle,\n column: number\n ) => void;\n readonly tableDeselectColumn: (\n element: NativeElementHandle,\n column: number\n ) => void;\n readonly setText: (element: NativeElementHandle, text: string) => void;\n readonly click: (element: NativeElementHandle) => void;\n readonly text: (element: NativeElementHandle) => string;\n readonly valueInfo: (element: NativeElementHandle) => NativeValueInfo;\n readonly imageInfo: (element: NativeElementHandle) => NativeImageInfo;\n readonly setValue: (element: NativeElementHandle, value: number) => void;\n readonly capture: (element: NativeElementHandle) => NativeCapture;\n readonly bounds: (element: NativeElementHandle) => NativeCaptureBounds;\n readonly moveWindow: (\n element: NativeElementHandle,\n x: number,\n y: number\n ) => NativeCaptureBounds;\n readonly resizeWindow: (\n element: NativeElementHandle,\n width: number,\n height: number\n ) => NativeCaptureBounds;\n readonly setWindowBounds: (\n element: NativeElementHandle,\n x: number,\n y: number,\n width: number,\n height: number\n ) => NativeCaptureBounds;\n readonly activateWindow: (element: NativeElementHandle) => void;\n readonly resizeHints: (\n element: NativeElementHandle\n ) => NativeWindowResizeHints;\n readonly x11Info: (element: NativeElementHandle) => NativeX11WindowInfo;\n readonly captureScreen: () => NativeCapture;\n readonly captureBounds: (\n x: number,\n y: number,\n width: number,\n height: number\n ) => NativeCapture;\n readonly inputSetModifier: (modifier: string, pressed: boolean) => void;\n readonly inputPressKeyName: (key: string) => void;\n readonly inputPressKeySym: (keysym: number) => void;\n readonly inputMoveMouse: (x: number, y: number) => void;\n readonly inputSetMouseButton: (button: string, pressed: boolean) => void;\n readonly inputScrollWheel: (xSteps: number, ySteps: number) => void;\n readonly mappedX11WindowCount: () => number;\n readonly elementInfo: (element: NativeElementHandle) => NativeElementInfo;\n readonly trayItems: (processId: number) => NativeTrayItem[];\n readonly runTrayHost: () => void;\n readonly nativeInfo: () => NativeInfo;\n}\n\ntype GtkBackend = 'gtk3' | 'gtk4';\ntype GtkBackendSelection = GtkBackend | 'auto';\n\nconst require = createRequire(import.meta.url);\nconst packageRoot = resolve(dirname(fileURLToPath(import.meta.url)), '..');\n\nlet loadedAddon: NativeAddon | undefined;\n\nconst createNativeLoadError = (message: string): GtkAutomationError => {\n const loadError = new Error(message) as GtkAutomationError;\n Object.defineProperty(loadError, 'code', {\n enumerable: true,\n value: 'NATIVE_LOAD_FAILED',\n });\n return loadError;\n};\n\nconst selectedGtkBackend = (): GtkBackendSelection => {\n const value = process.env.GESTAMENT_GTK_BACKEND;\n if (value === undefined || value.length === 0) {\n return 'gtk3';\n }\n if (value === 'gtk3' || value === 'gtk4' || value === 'auto') {\n return value;\n }\n throw createNativeLoadError(\n `Unsupported GESTAMENT_GTK_BACKEND: ${value}. Expected gtk3, gtk4, or auto.`\n );\n};\n\nconst candidateGtkBackends = (): readonly GtkBackend[] => {\n const selected = selectedGtkBackend();\n return selected === 'auto' ? ['gtk3', 'gtk4'] : [selected];\n};\n\nconst prebuildDirectory = (): string => {\n if (process.platform !== 'linux') {\n throw createNativeLoadError(\n `Unsupported platform for gestament native prebuilds: ${process.platform}.`\n );\n }\n\n switch (process.arch) {\n case 'x64':\n return 'linux-x64';\n case 'ia32':\n return 'linux-ia32';\n case 'arm64':\n return 'linux-arm64';\n case 'arm':\n return 'linux-arm';\n case 'riscv64':\n return 'linux-riscv64';\n default:\n throw createNativeLoadError(\n `Unsupported architecture for gestament native prebuilds: ${process.arch}.`\n );\n }\n};\n\nconst prebuildFile = (): string =>\n process.arch === 'arm'\n ? 'node.napi.armv7.glibc.node'\n : 'node.napi.glibc.node';\n\nconst prebuildPath = (backend: GtkBackend): string =>\n resolve(\n packageRoot,\n 'prebuilds',\n prebuildDirectory(),\n backend,\n prebuildFile()\n );\n\nconst loadNativePrebuild = (backend: GtkBackend): NativeAddon => {\n const path = prebuildPath(backend);\n if (!existsSync(path)) {\n throw new Error(`Missing ${backend} native prebuild: ${path}`);\n }\n return require(path) as NativeAddon;\n};\n\nconst loadNativeAddon = (): NativeAddon => {\n if (loadedAddon !== undefined) {\n return loadedAddon;\n }\n\n const errors: string[] = [];\n for (const backend of candidateGtkBackends()) {\n try {\n const addon = loadNativePrebuild(backend);\n const nativeInfo = addon.nativeInfo();\n if (nativeInfo.version !== packageVersion) {\n throw new Error(\n `gestament native prebuild version mismatch: native=${nativeInfo.version}, package=${packageVersion}`\n );\n }\n if (nativeInfo.gtkBackend !== backend) {\n throw new Error(\n `gestament native prebuild backend mismatch: native=${nativeInfo.gtkBackend}, requested=${backend}`\n );\n }\n loadedAddon = addon;\n return loadedAddon;\n } catch (error) {\n const message =\n error instanceof Error\n ? error.message\n : `Unknown error: ${String(error)}`;\n errors.push(`${backend}: ${message}`);\n }\n }\n\n throw createNativeLoadError(\n appendPrerequisiteInstallHint(\n `Failed to load a compatible gestament native prebuild from ${packageRoot} ` +\n `(GESTAMENT_GTK_BACKEND=${selectedGtkBackend()}). Ensure this package ` +\n 'includes prebuilds for the current Linux/glibc architecture and selected ' +\n 'GTK backend, and that runtime libraries such as libatspi, glib, gio, ' +\n `GTK, X11, and dbus are installed. Original errors: ${errors.join(' | ')}`\n )\n );\n};\n\nconst callNative = <Result>(operation: () => Result): Result => {\n try {\n return operation();\n } catch (error) {\n throw normalizeNativeError(error);\n }\n};\n\n/////////////////////////////////////////////////////////////////////////////////////////\n\n/** Resolves an accessible id to a native element when it exists. */\nexport const nativeFindById = (\n processId: number,\n id: string\n): NativeElementHandle | undefined =>\n callNative(() => loadNativeAddon().findById(processId, id));\n\n/** Checks whether a GTK process has completed AT-SPI root/cache registration. */\nexport const nativeProcessAtspiReadiness = (\n processId: number\n): NativeAtspiReadiness =>\n callNative(() => loadNativeAddon().processAtspiReadiness(processId));\n\n/** Resolves an accessible id to a native element across all exposed processes. */\nexport const nativeFindAnyById = (\n id: string\n): NativeElementHandle | undefined =>\n callNative(() => loadNativeAddon().findAnyById(id));\n\n/** Sets text contents on the accessible with the given id. */\nexport const nativeSetTextById = (\n processId: number,\n id: string,\n text: string\n): void => {\n callNative(() => loadNativeAddon().setTextById(processId, id, text));\n};\n\n/** Executes the first action on the accessible with the given id. */\nexport const nativeClickById = (processId: number, id: string): void => {\n callNative(() => loadNativeAddon().clickById(processId, id));\n};\n\n/** Reads text from the accessible with the given id. */\nexport const nativeTextById = (processId: number, id: string): string =>\n callNative(() => loadNativeAddon().textById(processId, id));\n\n/** Captures real screen pixels for the accessible with the given id. */\nexport const nativeCaptureById = (\n processId: number,\n id: string\n): NativeCapture =>\n callNative(() => loadNativeAddon().captureById(processId, id));\n\n/** Counts top-level windows hosted by the process. */\nexport const nativeWindowCount = (processId: number): number =>\n callNative(() => loadNativeAddon().windowCount(processId));\n\n/** Resolves a top-level window index to an element handle when it exists. */\nexport const nativeWindowAt = (\n processId: number,\n index: number\n): NativeElementHandle | undefined =>\n callNative(() => loadNativeAddon().windowAt(processId, index));\n\n/** Counts direct children for an element handle. */\nexport const nativeChildCount = (element: NativeElementHandle): number =>\n callNative(() => loadNativeAddon().childCount(element));\n\n/** Resolves a direct child index to an element handle when it exists. */\nexport const nativeChildAt = (\n element: NativeElementHandle,\n index: number\n): NativeElementHandle | undefined =>\n callNative(() => loadNativeAddon().childAt(element, index));\n\n/** Counts selected children for a selectable element handle. */\nexport const nativeSelectedChildCount = (\n element: NativeElementHandle\n): number => callNative(() => loadNativeAddon().selectedChildCount(element));\n\n/** Resolves a selected child index to an element handle when it exists. */\nexport const nativeSelectedChildAt = (\n element: NativeElementHandle,\n index: number\n): NativeElementHandle | undefined =>\n callNative(() => loadNativeAddon().selectedChildAt(element, index));\n\n/** Reads whether a direct child is selected. */\nexport const nativeIsChildSelected = (\n element: NativeElementHandle,\n index: number\n): boolean =>\n callNative(() => loadNativeAddon().isChildSelected(element, index));\n\n/** Selects a direct child for a selectable element handle. */\nexport const nativeSelectChildAt = (\n element: NativeElementHandle,\n index: number\n): void => {\n callNative(() => loadNativeAddon().selectChildAt(element, index));\n};\n\n/** Deselects a direct child for a selectable element handle. */\nexport const nativeDeselectChildAt = (\n element: NativeElementHandle,\n index: number\n): void => {\n callNative(() => loadNativeAddon().deselectChildAt(element, index));\n};\n\n/** Selects all children for a selectable element handle. */\nexport const nativeSelectAllChildren = (element: NativeElementHandle): void => {\n callNative(() => loadNativeAddon().selectAllChildren(element));\n};\n\n/** Clears child selection for a selectable element handle. */\nexport const nativeClearSelection = (element: NativeElementHandle): void => {\n callNative(() => loadNativeAddon().clearSelection(element));\n};\n\n/** Counts table rows for a table element handle. */\nexport const nativeTableRowCount = (element: NativeElementHandle): number =>\n callNative(() => loadNativeAddon().tableRowCount(element));\n\n/** Counts table columns for a table element handle. */\nexport const nativeTableColumnCount = (element: NativeElementHandle): number =>\n callNative(() => loadNativeAddon().tableColumnCount(element));\n\n/** Resolves a table cell element handle by row and column when it exists. */\nexport const nativeTableCellAt = (\n element: NativeElementHandle,\n row: number,\n column: number\n): NativeElementHandle | undefined =>\n callNative(() => loadNativeAddon().tableCellAt(element, row, column));\n\n/** Reads selected table row indexes. */\nexport const nativeTableSelectedRows = (\n element: NativeElementHandle\n): number[] => callNative(() => loadNativeAddon().tableSelectedRows(element));\n\n/** Reads selected table column indexes. */\nexport const nativeTableSelectedColumns = (\n element: NativeElementHandle\n): number[] =>\n callNative(() => loadNativeAddon().tableSelectedColumns(element));\n\n/** Reads whether a table row is selected. */\nexport const nativeTableIsRowSelected = (\n element: NativeElementHandle,\n row: number\n): boolean =>\n callNative(() => loadNativeAddon().tableIsRowSelected(element, row));\n\n/** Reads whether a table column is selected. */\nexport const nativeTableIsColumnSelected = (\n element: NativeElementHandle,\n column: number\n): boolean =>\n callNative(() => loadNativeAddon().tableIsColumnSelected(element, column));\n\n/** Reads whether a table cell is selected. */\nexport const nativeTableIsCellSelected = (\n element: NativeElementHandle,\n row: number,\n column: number\n): boolean =>\n callNative(() => loadNativeAddon().tableIsCellSelected(element, row, column));\n\n/** Selects a table row. */\nexport const nativeTableSelectRow = (\n element: NativeElementHandle,\n row: number\n): void => {\n callNative(() => loadNativeAddon().tableSelectRow(element, row));\n};\n\n/** Deselects a table row. */\nexport const nativeTableDeselectRow = (\n element: NativeElementHandle,\n row: number\n): void => {\n callNative(() => loadNativeAddon().tableDeselectRow(element, row));\n};\n\n/** Selects a table column. */\nexport const nativeTableSelectColumn = (\n element: NativeElementHandle,\n column: number\n): void => {\n callNative(() => loadNativeAddon().tableSelectColumn(element, column));\n};\n\n/** Deselects a table column. */\nexport const nativeTableDeselectColumn = (\n element: NativeElementHandle,\n column: number\n): void => {\n callNative(() => loadNativeAddon().tableDeselectColumn(element, column));\n};\n\n/** Sets text contents on the accessible resolved by an element handle. */\nexport const nativeSetText = (\n element: NativeElementHandle,\n text: string\n): void => {\n callNative(() => loadNativeAddon().setText(element, text));\n};\n\n/** Executes the first action on the accessible resolved by an element handle. */\nexport const nativeClick = (element: NativeElementHandle): void => {\n callNative(() => loadNativeAddon().click(element));\n};\n\n/** Reads text from the accessible resolved by an element handle. */\nexport const nativeText = (element: NativeElementHandle): string =>\n callNative(() => loadNativeAddon().text(element));\n\n/** Reads value metadata from the accessible resolved by an element handle. */\nexport const nativeValueInfo = (\n element: NativeElementHandle\n): NativeValueInfo => callNative(() => loadNativeAddon().valueInfo(element));\n\n/** Reads image metadata from the accessible resolved by an element handle. */\nexport const nativeImageInfo = (\n element: NativeElementHandle\n): NativeImageInfo => callNative(() => loadNativeAddon().imageInfo(element));\n\n/** Sets a numeric value on the accessible resolved by an element handle. */\nexport const nativeSetValue = (\n element: NativeElementHandle,\n value: number\n): void => {\n callNative(() => loadNativeAddon().setValue(element, value));\n};\n\n/** Captures real screen pixels for the accessible resolved by an element handle. */\nexport const nativeCapture = (element: NativeElementHandle): NativeCapture =>\n callNative(() => loadNativeAddon().capture(element));\n\n/** Reads screen-relative bounds for the accessible resolved by an element handle. */\nexport const nativeBounds = (\n element: NativeElementHandle\n): NativeCaptureBounds => callNative(() => loadNativeAddon().bounds(element));\n\n/** Moves a window element and returns the observed screen-relative bounds. */\nexport const nativeMoveWindow = (\n element: NativeElementHandle,\n x: number,\n y: number\n): NativeCaptureBounds =>\n callNative(() => loadNativeAddon().moveWindow(element, x, y));\n\n/** Resizes a window element and returns the observed screen-relative bounds. */\nexport const nativeResizeWindow = (\n element: NativeElementHandle,\n width: number,\n height: number\n): NativeCaptureBounds =>\n callNative(() => loadNativeAddon().resizeWindow(element, width, height));\n\n/** Moves and resizes a window element and returns the observed bounds. */\nexport const nativeSetWindowBounds = (\n element: NativeElementHandle,\n bounds: NativeCaptureBounds\n): NativeCaptureBounds =>\n callNative(() =>\n loadNativeAddon().setWindowBounds(\n element,\n bounds.x,\n bounds.y,\n bounds.width,\n bounds.height\n )\n );\n\n/** Activates a window element through the current display session. */\nexport const nativeActivateWindow = (element: NativeElementHandle): void => {\n callNative(() => loadNativeAddon().activateWindow(element));\n};\n\n/** Reads X11 WM_NORMAL_HINTS for the accessible resolved by an element handle. */\nexport const nativeResizeHints = (\n element: NativeElementHandle\n): NativeWindowResizeHints =>\n callNative(() => loadNativeAddon().resizeHints(element));\n\n/** Reads X11 window metadata for the accessible resolved by an element handle. */\nexport const nativeX11Info = (\n element: NativeElementHandle\n): NativeX11WindowInfo => callNative(() => loadNativeAddon().x11Info(element));\n\n/** Captures the full X11 root window currently addressed by DISPLAY. */\nexport const nativeCaptureScreen = (): NativeCapture =>\n callNative(() => loadNativeAddon().captureScreen());\n\n/** Captures real screen pixels for explicit screen-relative bounds. */\nexport const nativeCaptureBounds = (\n bounds: NativeCaptureBounds\n): NativeCapture =>\n callNative(() =>\n loadNativeAddon().captureBounds(\n bounds.x,\n bounds.y,\n bounds.width,\n bounds.height\n )\n );\n\n/** Presses or releases a keyboard modifier in the current display session. */\nexport const nativeInputSetModifier = (\n modifier: string,\n pressed: boolean\n): void => {\n callNative(() => loadNativeAddon().inputSetModifier(modifier, pressed));\n};\n\n/** Sends one press-and-release key input by X11 keysym name. */\nexport const nativeInputPressKeyName = (key: string): void => {\n callNative(() => loadNativeAddon().inputPressKeyName(key));\n};\n\n/** Sends one press-and-release key input by numeric X11 keysym value. */\nexport const nativeInputPressKeySym = (keysym: number): void => {\n callNative(() => loadNativeAddon().inputPressKeySym(keysym));\n};\n\n/** Moves the mouse pointer in the current display session. */\nexport const nativeInputMoveMouse = (x: number, y: number): void => {\n callNative(() => loadNativeAddon().inputMoveMouse(x, y));\n};\n\n/** Presses or releases one mouse button in the current display session. */\nexport const nativeInputSetMouseButton = (\n button: string,\n pressed: boolean\n): void => {\n callNative(() => loadNativeAddon().inputSetMouseButton(button, pressed));\n};\n\n/** Sends wheel steps in the current display session. */\nexport const nativeInputScrollWheel = (\n xSteps: number,\n ySteps: number\n): void => {\n callNative(() => loadNativeAddon().inputScrollWheel(xSteps, ySteps));\n};\n\n/** Counts mapped top-level X11 windows currently addressed by DISPLAY. */\nexport const nativeMappedX11WindowCount = (): number =>\n callNative(() => loadNativeAddon().mappedX11WindowCount());\n\n/** Reads AT-SPI metadata for the accessible resolved by an element handle. */\nexport const nativeElementInfo = (\n element: NativeElementHandle\n): NativeElementInfo =>\n callNative(() => loadNativeAddon().elementInfo(element));\n\n/** Lists StatusNotifier tray items owned by the process. */\nexport const nativeTrayItems = (processId: number): NativeTrayItem[] =>\n callNative(() => loadNativeAddon().trayItems(processId));\n\n/** Runs the test tray host until the process is terminated. */\nexport const nativeRunTrayHost = (): void => {\n callNative(() => loadNativeAddon().runTrayHost());\n};\n"],"names":["require","createRequire","resolve","dirname","fileURLToPath","existsSync","errors","packageVersion","appendPrerequisiteInstallHint","normalizeNativeError"],"mappings":";;;;;;;;;AAyQA,MAAMA,YAAUC,YAAAA,0QAA6B;AAC7C,MAAM,cAAcC,UAAAA,QAAQC,UAAAA,QAAQC,SAAAA,cAAc,OAAA,aAAA,cAAA,QAAA,KAAA,EAAA,cAAA,UAAA,EAAA,OAAA,0BAAA,uBAAA,QAAA,YAAA,MAAA,YAAA,uBAAA,OAAA,IAAA,IAAA,uBAAA,SAAA,OAAA,EAAA,IAAe,CAAC,GAAG,IAAI;AAEzE,IAAI;AAEJ,MAAM,wBAAwB,CAAC,YAAwC;AACrE,QAAM,YAAY,IAAI,MAAM,OAAO;AACnC,SAAO,eAAe,WAAW,QAAQ;AAAA,IACvC,YAAY;AAAA,IACZ,OAAO;AAAA,EAAA,CACR;AACD,SAAO;AACT;AAEA,MAAM,qBAAqB,MAA2B;AACpD,QAAM,QAAQ,QAAQ,IAAI;AAC1B,MAAI,UAAU,UAAa,MAAM,WAAW,GAAG;AAC7C,WAAO;AAAA,EACT;AACA,MAAI,UAAU,UAAU,UAAU,UAAU,UAAU,QAAQ;AAC5D,WAAO;AAAA,EACT;AACA,QAAM;AAAA,IACJ,sCAAsC,KAAK;AAAA,EAAA;AAE/C;AAEA,MAAM,uBAAuB,MAA6B;AACxD,QAAM,WAAW,mBAAA;AACjB,SAAO,aAAa,SAAS,CAAC,QAAQ,MAAM,IAAI,CAAC,QAAQ;AAC3D;AAEA,MAAM,oBAAoB,MAAc;AACtC,MAAI,QAAQ,aAAa,SAAS;AAChC,UAAM;AAAA,MACJ,wDAAwD,QAAQ,QAAQ;AAAA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AU,SAAS,CAAC;AAGlD,MAAM,oBAAoB,MAAY;AAC3C,aAAW,MAAM,kBAAkB,aAAa;AAClD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/native.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * name: gestament
3
- * version: 0.5.0
3
+ * version: 0.7.0
4
4
  * description: TypeScript based test driver for GTK
5
5
  * author: Kouji Matsui (@kekyo@mi.kekyo.net)
6
6
  * license: MIT
7
7
  * repository.url: https://github.com/kekyo/gestament.git
8
- * git.commit.hash: 368fd995a6a10f20aea97cb0389ac3e12cfbedb3
8
+ * git.commit.hash: 0a8d7a04d56247736d3de0aab8933fb383569e38
9
9
  */
10
10
 
11
11
  export interface NativeCaptureBounds {
@@ -174,6 +174,14 @@ export declare const nativeSetValue: (element: NativeElementHandle, value: numbe
174
174
  export declare const nativeCapture: (element: NativeElementHandle) => NativeCapture;
175
175
  /** Reads screen-relative bounds for the accessible resolved by an element handle. */
176
176
  export declare const nativeBounds: (element: NativeElementHandle) => NativeCaptureBounds;
177
+ /** Moves a window element and returns the observed screen-relative bounds. */
178
+ export declare const nativeMoveWindow: (element: NativeElementHandle, x: number, y: number) => NativeCaptureBounds;
179
+ /** Resizes a window element and returns the observed screen-relative bounds. */
180
+ export declare const nativeResizeWindow: (element: NativeElementHandle, width: number, height: number) => NativeCaptureBounds;
181
+ /** Moves and resizes a window element and returns the observed bounds. */
182
+ export declare const nativeSetWindowBounds: (element: NativeElementHandle, bounds: NativeCaptureBounds) => NativeCaptureBounds;
183
+ /** Activates a window element through the current display session. */
184
+ export declare const nativeActivateWindow: (element: NativeElementHandle) => void;
177
185
  /** Reads X11 WM_NORMAL_HINTS for the accessible resolved by an element handle. */
178
186
  export declare const nativeResizeHints: (element: NativeElementHandle) => NativeWindowResizeHints;
179
187
  /** Reads X11 window metadata for the accessible resolved by an element handle. */
@@ -182,6 +190,18 @@ export declare const nativeX11Info: (element: NativeElementHandle) => NativeX11W
182
190
  export declare const nativeCaptureScreen: () => NativeCapture;
183
191
  /** Captures real screen pixels for explicit screen-relative bounds. */
184
192
  export declare const nativeCaptureBounds: (bounds: NativeCaptureBounds) => NativeCapture;
193
+ /** Presses or releases a keyboard modifier in the current display session. */
194
+ export declare const nativeInputSetModifier: (modifier: string, pressed: boolean) => void;
195
+ /** Sends one press-and-release key input by X11 keysym name. */
196
+ export declare const nativeInputPressKeyName: (key: string) => void;
197
+ /** Sends one press-and-release key input by numeric X11 keysym value. */
198
+ export declare const nativeInputPressKeySym: (keysym: number) => void;
199
+ /** Moves the mouse pointer in the current display session. */
200
+ export declare const nativeInputMoveMouse: (x: number, y: number) => void;
201
+ /** Presses or releases one mouse button in the current display session. */
202
+ export declare const nativeInputSetMouseButton: (button: string, pressed: boolean) => void;
203
+ /** Sends wheel steps in the current display session. */
204
+ export declare const nativeInputScrollWheel: (xSteps: number, ySteps: number) => void;
185
205
  /** Counts mapped top-level X11 windows currently addressed by DISPLAY. */
186
206
  export declare const nativeMappedX11WindowCount: () => number;
187
207
  /** Reads AT-SPI metadata for the accessible resolved by an element handle. */
@@ -1 +1 @@
1
- {"version":3,"file":"native.d.ts","sourceRoot":"","sources":["../src/native.ts"],"names":[],"mappings":";;;;;;;;;AAwBA,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,mBAAmB,CAAC;IACrC,QAAQ,CAAC,aAAa,EAAE,mBAAmB,CAAC;IAC5C,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;CAC3B;AAED,MAAM,WAAW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ypeScript based test driver for GTK
5
5
  * author: Kouji Matsui (@kekyo@mi.kekyo.net)
6
6
  * license: MIT
7
7
  * repository.url: https://github.com/kekyo/gestament.git
8
- * git.commit.hash: 368fd995a6a10f20aea97cb0389ac3e12cfbedb3
8
+ * git.commit.hash: 0a8d7a04d56247736d3de0aab8933fb383569e38
9
9
  */
10
10
 
11
11
  import { GtkAppOutput, GtkAppOutputEvent, GtkAppOutputStream, GtkSystemOutput, GtkSystemOutputEvent, GtkSystemOutputSource } from './types.js';
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ const version = "0.7.0";
3
+ exports.version = version;
4
+ //# sourceMappingURL=packageMetadata-DSIckEfC.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"packageMetadata-CewXH0iF.cjs","sources":["../src/generated/packageMetadata.ts"],"sourcesContent":["// @ts-nocheck\n// This file is auto-generated by screw-up plugin\n// Do not edit manually\n\nexport const name = \"gestament\";\nexport const version = \"0.5.0\";\nexport const description = \"TypeScript based test driver for GTK\";\nexport const author = \"Kouji Matsui (@kekyo@mi.kekyo.net)\";\nexport const license = \"MIT\";\nexport const repository_url = \"https://github.com/kekyo/gestament.git\";\nexport const git_commit_hash = \"368fd995a6a10f20aea97cb0389ac3e12cfbedb3\";\n"],"names":[],"mappings":";AAKO,MAAM,UAAU;;"}
1
+ {"version":3,"file":"packageMetadata-DSIckEfC.cjs","sources":["../src/generated/packageMetadata.ts"],"sourcesContent":["// @ts-nocheck\n// This file is auto-generated by screw-up plugin\n// Do not edit manually\n\nexport const name = \"gestament\";\nexport const version = \"0.7.0\";\nexport const description = \"TypeScript based test driver for GTK\";\nexport const author = \"Kouji Matsui (@kekyo@mi.kekyo.net)\";\nexport const license = \"MIT\";\nexport const repository_url = \"https://github.com/kekyo/gestament.git\";\nexport const git_commit_hash = \"0a8d7a04d56247736d3de0aab8933fb383569e38\";\n"],"names":[],"mappings":";AAKO,MAAM,UAAU;;"}
@@ -0,0 +1,5 @@
1
+ const version = "0.7.0";
2
+ export {
3
+ version as v
4
+ };
5
+ //# sourceMappingURL=packageMetadata-__qCDuxC.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"packageMetadata-DjxyJCJm.js","sources":["../src/generated/packageMetadata.ts"],"sourcesContent":["// @ts-nocheck\n// This file is auto-generated by screw-up plugin\n// Do not edit manually\n\nexport const name = \"gestament\";\nexport const version = \"0.5.0\";\nexport const description = \"TypeScript based test driver for GTK\";\nexport const author = \"Kouji Matsui (@kekyo@mi.kekyo.net)\";\nexport const license = \"MIT\";\nexport const repository_url = \"https://github.com/kekyo/gestament.git\";\nexport const git_commit_hash = \"368fd995a6a10f20aea97cb0389ac3e12cfbedb3\";\n"],"names":[],"mappings":"AAKO,MAAM,UAAU;"}
1
+ {"version":3,"file":"packageMetadata-__qCDuxC.js","sources":["../src/generated/packageMetadata.ts"],"sourcesContent":["// @ts-nocheck\n// This file is auto-generated by screw-up plugin\n// Do not edit manually\n\nexport const name = \"gestament\";\nexport const version = \"0.7.0\";\nexport const description = \"TypeScript based test driver for GTK\";\nexport const author = \"Kouji Matsui (@kekyo@mi.kekyo.net)\";\nexport const license = \"MIT\";\nexport const repository_url = \"https://github.com/kekyo/gestament.git\";\nexport const git_commit_hash = \"0a8d7a04d56247736d3de0aab8933fb383569e38\";\n"],"names":[],"mappings":"AAKO,MAAM,UAAU;"}
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * name: gestament
3
- * version: 0.5.0
3
+ * version: 0.7.0
4
4
  * description: TypeScript based test driver for GTK
5
5
  * author: Kouji Matsui (@kekyo@mi.kekyo.net)
6
6
  * license: MIT
7
7
  * repository.url: https://github.com/kekyo/gestament.git
8
- * git.commit.hash: 368fd995a6a10f20aea97cb0389ac3e12cfbedb3
8
+ * git.commit.hash: 0a8d7a04d56247736d3de0aab8933fb383569e38
9
9
  */
10
10
 
11
11
  /**
package/dist/testing.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * name: gestament
3
- * version: 0.5.0
3
+ * version: 0.7.0
4
4
  * description: TypeScript based test driver for GTK
5
5
  * author: Kouji Matsui (@kekyo@mi.kekyo.net)
6
6
  * license: MIT
7
7
  * repository.url: https://github.com/kekyo/gestament.git
8
- * git.commit.hash: 368fd995a6a10f20aea97cb0389ac3e12cfbedb3
8
+ * git.commit.hash: 0a8d7a04d56247736d3de0aab8933fb383569e38
9
9
  */
10
10
 
11
11
  import { GtkCapture, Releasable } from './types.js';
package/dist/tray.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * name: gestament
3
- * version: 0.5.0
3
+ * version: 0.7.0
4
4
  * description: TypeScript based test driver for GTK
5
5
  * author: Kouji Matsui (@kekyo@mi.kekyo.net)
6
6
  * license: MIT
7
7
  * repository.url: https://github.com/kekyo/gestament.git
8
- * git.commit.hash: 368fd995a6a10f20aea97cb0389ac3e12cfbedb3
8
+ * git.commit.hash: 0a8d7a04d56247736d3de0aab8933fb383569e38
9
9
  */
10
10
 
11
11
  import { NativeTrayItem } from './native.js';