@trycua/cua-driver 0.16.0 → 0.18.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.
@@ -506,6 +506,28 @@ export declare const HotkeyInput: Readonly<{
506
506
  new: (partial: Partial<HotkeyInput> & Required<Omit<HotkeyInput, "session">>) => HotkeyInput;
507
507
  defaults: () => Partial<HotkeyInput>;
508
508
  }>;
509
+ /**
510
+ * Exact, immediate-child application menu path to resolve and invoke through
511
+ * the operating system's accessibility API. Path labels are matched after
512
+ * trimming surrounding whitespace and otherwise remain case-sensitive.
513
+ */
514
+ export type InvokeMenuInput = {
515
+ pid: number;
516
+ windowId: bigint;
517
+ path: Array<string>;
518
+ /**
519
+ * Optional session id.
520
+ */
521
+ session?: string;
522
+ };
523
+ /**
524
+ * Generated factory for {@link InvokeMenuInput} record objects.
525
+ */
526
+ export declare const InvokeMenuInput: Readonly<{
527
+ create: (partial: Partial<InvokeMenuInput> & Required<Omit<InvokeMenuInput, "session">>) => InvokeMenuInput;
528
+ new: (partial: Partial<InvokeMenuInput> & Required<Omit<InvokeMenuInput, "session">>) => InvokeMenuInput;
529
+ defaults: () => Partial<InvokeMenuInput>;
530
+ }>;
509
531
  export type MoveCursorInput = {
510
532
  x: number;
511
533
  y: number;
@@ -736,7 +758,7 @@ export type StartSessionInput = {
736
758
  */
737
759
  session: string;
738
760
  /**
739
- * Per-session perception/action modality. auto starts window-only and requires explicit escalation before desktop tools; window and desktop are strict. Immutable for the live session.
761
+ * Per-session perception/action modality. auto starts window-only and requires explicit escalation before desktop tools; escalation permanently switches that session to desktop scope. To recover window scope, call end_session, then start_session with a new session id. window and desktop are strict. Immutable for the live session.
740
762
  */
741
763
  captureScope?: CaptureScope;
742
764
  /**
@@ -1169,6 +1191,13 @@ declare const _default: Readonly<{
1169
1191
  lift(value: UniffiByteArray): HotkeyInput;
1170
1192
  lower(value: HotkeyInput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
1171
1193
  };
1194
+ FfiConverterTypeInvokeMenuInput: {
1195
+ read(from: RustBuffer): InvokeMenuInput;
1196
+ write(value: InvokeMenuInput, into: RustBuffer): void;
1197
+ allocationSize(value: InvokeMenuInput): number;
1198
+ lift(value: UniffiByteArray): InvokeMenuInput;
1199
+ lower(value: InvokeMenuInput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
1200
+ };
1172
1201
  FfiConverterTypeMoveCursorInput: {
1173
1202
  read(from: RustBuffer): MoveCursorInput;
1174
1203
  write(value: MoveCursorInput, into: RustBuffer): void;
@@ -1490,6 +1490,46 @@ const FfiConverterTypeHotkeyInput = (() => {
1490
1490
  ;
1491
1491
  return new FFIConverter();
1492
1492
  })();
1493
+ /**
1494
+ * Generated factory for {@link InvokeMenuInput} record objects.
1495
+ */
1496
+ export const InvokeMenuInput = (() => {
1497
+ const defaults = () => ({});
1498
+ const create = (() => {
1499
+ return uniffiCreateRecord(defaults);
1500
+ })();
1501
+ return Object.freeze({
1502
+ create,
1503
+ new: create,
1504
+ defaults: () => Object.freeze(defaults()),
1505
+ });
1506
+ })();
1507
+ const FfiConverterTypeInvokeMenuInput = (() => {
1508
+ class FFIConverter extends AbstractFfiConverterByteArray {
1509
+ read(from) {
1510
+ return {
1511
+ pid: FfiConverterUInt32.read(from),
1512
+ windowId: FfiConverterUInt64.read(from),
1513
+ path: FfiConverterSequenceString.read(from),
1514
+ session: FfiConverterOptionalString.read(from)
1515
+ };
1516
+ }
1517
+ write(value, into) {
1518
+ FfiConverterUInt32.write(value.pid, into);
1519
+ FfiConverterUInt64.write(value.windowId, into);
1520
+ FfiConverterSequenceString.write(value.path, into);
1521
+ FfiConverterOptionalString.write(value.session, into);
1522
+ }
1523
+ allocationSize(value) {
1524
+ return FfiConverterUInt32.allocationSize(value.pid) +
1525
+ FfiConverterUInt64.allocationSize(value.windowId) +
1526
+ FfiConverterSequenceString.allocationSize(value.path) +
1527
+ FfiConverterOptionalString.allocationSize(value.session);
1528
+ }
1529
+ }
1530
+ ;
1531
+ return new FFIConverter();
1532
+ })();
1493
1533
  /**
1494
1534
  * Generated factory for {@link MoveCursorInput} record objects.
1495
1535
  */
@@ -2584,6 +2624,7 @@ export default Object.freeze({
2584
2624
  FfiConverterTypeGetScreenSizeInput,
2585
2625
  FfiConverterTypeGetSessionStateInput,
2586
2626
  FfiConverterTypeHotkeyInput,
2627
+ FfiConverterTypeInvokeMenuInput,
2587
2628
  FfiConverterTypeMoveCursorInput,
2588
2629
  FfiConverterTypePlatform,
2589
2630
  FfiConverterTypePredicateOutcome,
@@ -92,6 +92,7 @@ interface NativeModuleInterface {
92
92
  uniffi_cua_driver_sdk_fn_method_cuadriver_get_screen_size(uniffiSelf: bigint, input: Uint8Array): bigint;
93
93
  uniffi_cua_driver_sdk_fn_method_cuadriver_get_session_state(uniffiSelf: bigint, input: Uint8Array): bigint;
94
94
  uniffi_cua_driver_sdk_fn_method_cuadriver_hotkey(uniffiSelf: bigint, input: Uint8Array): bigint;
95
+ uniffi_cua_driver_sdk_fn_method_cuadriver_invoke_menu(uniffiSelf: bigint, input: Uint8Array): bigint;
95
96
  uniffi_cua_driver_sdk_fn_method_cuadriver_is_available(uniffiSelf: bigint, uniffi_out_err: UniffiRustCallStatus): number;
96
97
  uniffi_cua_driver_sdk_fn_method_cuadriver_list_tools_json(uniffiSelf: bigint): bigint;
97
98
  uniffi_cua_driver_sdk_fn_method_cuadriver_metadata(uniffiSelf: bigint): bigint;
@@ -122,6 +123,7 @@ interface NativeModuleInterface {
122
123
  uniffi_cua_driver_sdk_fn_method_cuadriversession_get_screen_size(uniffiSelf: bigint, input: Uint8Array): bigint;
123
124
  uniffi_cua_driver_sdk_fn_method_cuadriversession_get_session_state(uniffiSelf: bigint, input: Uint8Array): bigint;
124
125
  uniffi_cua_driver_sdk_fn_method_cuadriversession_hotkey(uniffiSelf: bigint, input: Uint8Array): bigint;
126
+ uniffi_cua_driver_sdk_fn_method_cuadriversession_invoke_menu(uniffiSelf: bigint, input: Uint8Array): bigint;
125
127
  uniffi_cua_driver_sdk_fn_method_cuadriversession_move_cursor(uniffiSelf: bigint, input: Uint8Array): bigint;
126
128
  uniffi_cua_driver_sdk_fn_method_cuadriversession_press_key(uniffiSelf: bigint, input: Uint8Array): bigint;
127
129
  uniffi_cua_driver_sdk_fn_method_cuadriversession_scroll(uniffiSelf: bigint, input: Uint8Array): bigint;
@@ -175,6 +177,7 @@ interface NativeModuleInterface {
175
177
  uniffi_cua_driver_sdk_checksum_method_cuadriver_get_screen_size(): number;
176
178
  uniffi_cua_driver_sdk_checksum_method_cuadriver_get_session_state(): number;
177
179
  uniffi_cua_driver_sdk_checksum_method_cuadriver_hotkey(): number;
180
+ uniffi_cua_driver_sdk_checksum_method_cuadriver_invoke_menu(): number;
178
181
  uniffi_cua_driver_sdk_checksum_method_cuadriver_is_available(): number;
179
182
  uniffi_cua_driver_sdk_checksum_method_cuadriver_list_tools_json(): number;
180
183
  uniffi_cua_driver_sdk_checksum_method_cuadriver_metadata(): number;
@@ -205,6 +208,7 @@ interface NativeModuleInterface {
205
208
  uniffi_cua_driver_sdk_checksum_method_cuadriversession_get_screen_size(): number;
206
209
  uniffi_cua_driver_sdk_checksum_method_cuadriversession_get_session_state(): number;
207
210
  uniffi_cua_driver_sdk_checksum_method_cuadriversession_hotkey(): number;
211
+ uniffi_cua_driver_sdk_checksum_method_cuadriversession_invoke_menu(): number;
208
212
  uniffi_cua_driver_sdk_checksum_method_cuadriversession_move_cursor(): number;
209
213
  uniffi_cua_driver_sdk_checksum_method_cuadriversession_press_key(): number;
210
214
  uniffi_cua_driver_sdk_checksum_method_cuadriversession_scroll(): number;
@@ -472,6 +472,11 @@ const DEFINITIONS = {
472
472
  ret: FfiType.Handle,
473
473
  hasRustCallStatus: false,
474
474
  },
475
+ "uniffi_cua_driver_sdk_fn_method_cuadriver_invoke_menu": {
476
+ args: [FfiType.Handle, FfiType.RustBuffer],
477
+ ret: FfiType.Handle,
478
+ hasRustCallStatus: false,
479
+ },
475
480
  "uniffi_cua_driver_sdk_fn_method_cuadriver_is_available": {
476
481
  args: [FfiType.Handle],
477
482
  ret: FfiType.Int8,
@@ -622,6 +627,11 @@ const DEFINITIONS = {
622
627
  ret: FfiType.Handle,
623
628
  hasRustCallStatus: false,
624
629
  },
630
+ "uniffi_cua_driver_sdk_fn_method_cuadriversession_invoke_menu": {
631
+ args: [FfiType.Handle, FfiType.RustBuffer],
632
+ ret: FfiType.Handle,
633
+ hasRustCallStatus: false,
634
+ },
625
635
  "uniffi_cua_driver_sdk_fn_method_cuadriversession_move_cursor": {
626
636
  args: [FfiType.Handle, FfiType.RustBuffer],
627
637
  ret: FfiType.Handle,
@@ -887,6 +897,11 @@ const DEFINITIONS = {
887
897
  ret: FfiType.UInt16,
888
898
  hasRustCallStatus: false,
889
899
  },
900
+ "uniffi_cua_driver_sdk_checksum_method_cuadriver_invoke_menu": {
901
+ args: [],
902
+ ret: FfiType.UInt16,
903
+ hasRustCallStatus: false,
904
+ },
890
905
  "uniffi_cua_driver_sdk_checksum_method_cuadriver_is_available": {
891
906
  args: [],
892
907
  ret: FfiType.UInt16,
@@ -1037,6 +1052,11 @@ const DEFINITIONS = {
1037
1052
  ret: FfiType.UInt16,
1038
1053
  hasRustCallStatus: false,
1039
1054
  },
1055
+ "uniffi_cua_driver_sdk_checksum_method_cuadriversession_invoke_menu": {
1056
+ args: [],
1057
+ ret: FfiType.UInt16,
1058
+ hasRustCallStatus: false,
1059
+ },
1040
1060
  "uniffi_cua_driver_sdk_checksum_method_cuadriversession_move_cursor": {
1041
1061
  args: [],
1042
1062
  ret: FfiType.UInt16,
@@ -1,4 +1,4 @@
1
- import { type ActionResult, type ClickInput, type ClipboardReadInput, type ClipboardWriteInput, type DragInput, type EndSessionInput, type EndSessionOutput, type EscalateSessionInput, type GetAgentCursorStateInput, type GetCursorPositionInput, type GetDesktopStateInput, type GetScreenSizeInput, type GetSessionStateInput, type HotkeyInput, type MoveCursorInput, type PressKeyInput, type ScrollInput, type SessionStateOutput, type SetAgentCursorEnabledInput, type SetAgentCursorMotionInput, type SetAgentCursorThemeInput, type SetWindowFrameInput, type StartSessionInput, type StartSessionOutput, type TypeTextInput, type VerifyStateInput, type VerifyStateOutput } from "./cua_driver_contract.js";
1
+ import { type ActionResult, type ClickInput, type ClipboardReadInput, type ClipboardWriteInput, type DragInput, type EndSessionInput, type EndSessionOutput, type EscalateSessionInput, type GetAgentCursorStateInput, type GetCursorPositionInput, type GetDesktopStateInput, type GetScreenSizeInput, type GetSessionStateInput, type HotkeyInput, type InvokeMenuInput, type MoveCursorInput, type PressKeyInput, type ScrollInput, type SessionStateOutput, type SetAgentCursorEnabledInput, type SetAgentCursorMotionInput, type SetAgentCursorThemeInput, type SetWindowFrameInput, type StartSessionInput, type StartSessionOutput, type TypeTextInput, type VerifyStateInput, type VerifyStateOutput } from "./cua_driver_contract.js";
2
2
  import { type UniffiByteArray, type UniffiGcObject, type UniffiHandle, FfiConverterObject, FfiConverterObjectWithCallbacks, RustBuffer, UniffiAbstractObject, destructorGuardSymbol, pointerLiteralSymbol, uniffiTypeNameSymbol } from "@ubjs/core";
3
3
  /**
4
4
  * Generated-language host factory for a session-bound action surface.
@@ -2057,6 +2057,9 @@ export interface CuaDriverLike {
2057
2057
  hotkey(input: HotkeyInput, asyncOpts_?: {
2058
2058
  signal: AbortSignal;
2059
2059
  }): Promise<ToolResult>;
2060
+ invokeMenu(input: InvokeMenuInput, asyncOpts_?: {
2061
+ signal: AbortSignal;
2062
+ }): Promise<ToolResult>;
2060
2063
  isAvailable(): boolean;
2061
2064
  /**
2062
2065
  * Canonical tool inventory for MCP and other protocol adapters.
@@ -2239,6 +2242,9 @@ export declare class CuaDriver extends UniffiAbstractObject implements CuaDriver
2239
2242
  hotkey(input: HotkeyInput, asyncOpts_?: {
2240
2243
  signal: AbortSignal;
2241
2244
  }): Promise<ToolResult>;
2245
+ invokeMenu(input: InvokeMenuInput, asyncOpts_?: {
2246
+ signal: AbortSignal;
2247
+ }): Promise<ToolResult>;
2242
2248
  isAvailable(): boolean;
2243
2249
  /**
2244
2250
  * Canonical tool inventory for MCP and other protocol adapters.
@@ -2342,6 +2348,9 @@ export interface CuaDriverSessionLike {
2342
2348
  hotkey(input: HotkeyInput, asyncOpts_?: {
2343
2349
  signal: AbortSignal;
2344
2350
  }): Promise<ToolResult>;
2351
+ invokeMenu(input: InvokeMenuInput, asyncOpts_?: {
2352
+ signal: AbortSignal;
2353
+ }): Promise<ToolResult>;
2345
2354
  moveCursor(input: MoveCursorInput, asyncOpts_?: {
2346
2355
  signal: AbortSignal;
2347
2356
  }): Promise<ToolResult>;
@@ -2428,6 +2437,9 @@ export declare class CuaDriverSession extends UniffiAbstractObject implements Cu
2428
2437
  hotkey(input: HotkeyInput, asyncOpts_?: {
2429
2438
  signal: AbortSignal;
2430
2439
  }): Promise<ToolResult>;
2440
+ invokeMenu(input: InvokeMenuInput, asyncOpts_?: {
2441
+ signal: AbortSignal;
2442
+ }): Promise<ToolResult>;
2431
2443
  moveCursor(input: MoveCursorInput, asyncOpts_?: {
2432
2444
  signal: AbortSignal;
2433
2445
  }): Promise<ToolResult>;
@@ -6,7 +6,7 @@
6
6
  import nativeModule from "./cua_driver_sdk-ffi.js";
7
7
  import { AbstractFfiConverterByteArray, FfiConverterArray, FfiConverterBool, FfiConverterInt32, FfiConverterObject, FfiConverterObjectWithCallbacks, FfiConverterOptional, FfiConverterUInt32, FfiConverterUInt64, UniffiAbstractObject, UniffiError, UniffiInternalError, UniffiResult, UniffiRustCaller, destructorGuardSymbol, pointerLiteralSymbol, uniffiCreateFfiConverterString, uniffiCreateRecord, uniffiRustCallAsync, uniffiTraitInterfaceCall, uniffiTraitInterfaceCallAsyncWithError, uniffiTypeNameSymbol, } from "@ubjs/core";
8
8
  import uniffiCuaDriverContractModule from "./cua_driver_contract.js";
9
- const { FfiConverterTypeActionResult, FfiConverterTypeClickInput, FfiConverterTypeClipboardReadInput, FfiConverterTypeClipboardWriteInput, FfiConverterTypeDragInput, FfiConverterTypeEndSessionInput, FfiConverterTypeEndSessionOutput, FfiConverterTypeEscalateSessionInput, FfiConverterTypeGetAgentCursorStateInput, FfiConverterTypeGetCursorPositionInput, FfiConverterTypeGetDesktopStateInput, FfiConverterTypeGetScreenSizeInput, FfiConverterTypeGetSessionStateInput, FfiConverterTypeHotkeyInput, FfiConverterTypeMoveCursorInput, FfiConverterTypePressKeyInput, FfiConverterTypeScrollInput, FfiConverterTypeSessionStateOutput, FfiConverterTypeSetAgentCursorEnabledInput, FfiConverterTypeSetAgentCursorMotionInput, FfiConverterTypeSetAgentCursorThemeInput, FfiConverterTypeSetWindowFrameInput, FfiConverterTypeStartSessionInput, FfiConverterTypeStartSessionOutput, FfiConverterTypeTypeTextInput, FfiConverterTypeVerifyStateInput, FfiConverterTypeVerifyStateOutput } = uniffiCuaDriverContractModule.converters;
9
+ const { FfiConverterTypeActionResult, FfiConverterTypeClickInput, FfiConverterTypeClipboardReadInput, FfiConverterTypeClipboardWriteInput, FfiConverterTypeDragInput, FfiConverterTypeEndSessionInput, FfiConverterTypeEndSessionOutput, FfiConverterTypeEscalateSessionInput, FfiConverterTypeGetAgentCursorStateInput, FfiConverterTypeGetCursorPositionInput, FfiConverterTypeGetDesktopStateInput, FfiConverterTypeGetScreenSizeInput, FfiConverterTypeGetSessionStateInput, FfiConverterTypeHotkeyInput, FfiConverterTypeInvokeMenuInput, FfiConverterTypeMoveCursorInput, FfiConverterTypePressKeyInput, FfiConverterTypeScrollInput, FfiConverterTypeSessionStateOutput, FfiConverterTypeSetAgentCursorEnabledInput, FfiConverterTypeSetAgentCursorMotionInput, FfiConverterTypeSetAgentCursorThemeInput, FfiConverterTypeSetWindowFrameInput, FfiConverterTypeStartSessionInput, FfiConverterTypeStartSessionOutput, FfiConverterTypeTypeTextInput, FfiConverterTypeVerifyStateInput, FfiConverterTypeVerifyStateOutput } = uniffiCuaDriverContractModule.converters;
10
10
  const uniffiCaller = new UniffiRustCaller(() => ({ code: 0 }));
11
11
  const uniffiIsDebug =
12
12
  // @ts-ignore -- The process global might not be defined
@@ -2529,6 +2529,35 @@ export class CuaDriver extends UniffiAbstractObject {
2529
2529
  throw __error;
2530
2530
  }
2531
2531
  }
2532
+ async invokeMenu(input, asyncOpts_) {
2533
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
2534
+ try {
2535
+ return await uniffiRustCallAsync(
2536
+ /*rustCaller:*/ uniffiCaller,
2537
+ /*rustFutureFunc:*/ () => {
2538
+ return nativeModule().uniffi_cua_driver_sdk_fn_method_cuadriver_invoke_menu(uniffiTypeCuaDriverObjectFactory.clonePointer(this), FfiConverterTypeInvokeMenuInput.lower(input, nativeModule().rustbuffer_alloc));
2539
+ },
2540
+ /*pollFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_poll_rust_buffer,
2541
+ /*cancelFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_cancel_rust_buffer,
2542
+ /*completeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_complete_rust_buffer,
2543
+ /*freeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_free_rust_buffer,
2544
+ // Async returns always go through the JS-side converter: the
2545
+ // FFI symbol returns the future handle (u64), and the user-level
2546
+ // RustBuffer comes back via the shared `rust_future_complete_*`
2547
+ // export. The bytes the runtime hands back must be deserialized
2548
+ // here using the per-callable return-type converter.
2549
+ /*liftFunc:*/ FfiConverterTypeToolResult.lift.bind(FfiConverterTypeToolResult),
2550
+ /*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
2551
+ /*asyncOpts:*/ asyncOpts_,
2552
+ /*errorHandler:*/ FfiConverterTypeDriverError.lift.bind(FfiConverterTypeDriverError));
2553
+ }
2554
+ catch (__error) {
2555
+ if (uniffiIsDebug && __error instanceof Error) {
2556
+ __error.stack = __stack;
2557
+ }
2558
+ throw __error;
2559
+ }
2560
+ }
2532
2561
  isAvailable() {
2533
2562
  return FfiConverterBool.lift(uniffiCaller.rustCall(
2534
2563
  /*caller:*/ (callStatus) => {
@@ -3411,6 +3440,35 @@ export class CuaDriverSession extends UniffiAbstractObject {
3411
3440
  throw __error;
3412
3441
  }
3413
3442
  }
3443
+ async invokeMenu(input, asyncOpts_) {
3444
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3445
+ try {
3446
+ return await uniffiRustCallAsync(
3447
+ /*rustCaller:*/ uniffiCaller,
3448
+ /*rustFutureFunc:*/ () => {
3449
+ return nativeModule().uniffi_cua_driver_sdk_fn_method_cuadriversession_invoke_menu(uniffiTypeCuaDriverSessionObjectFactory.clonePointer(this), FfiConverterTypeInvokeMenuInput.lower(input, nativeModule().rustbuffer_alloc));
3450
+ },
3451
+ /*pollFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_poll_rust_buffer,
3452
+ /*cancelFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_cancel_rust_buffer,
3453
+ /*completeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_complete_rust_buffer,
3454
+ /*freeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_free_rust_buffer,
3455
+ // Async returns always go through the JS-side converter: the
3456
+ // FFI symbol returns the future handle (u64), and the user-level
3457
+ // RustBuffer comes back via the shared `rust_future_complete_*`
3458
+ // export. The bytes the runtime hands back must be deserialized
3459
+ // here using the per-callable return-type converter.
3460
+ /*liftFunc:*/ FfiConverterTypeToolResult.lift.bind(FfiConverterTypeToolResult),
3461
+ /*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
3462
+ /*asyncOpts:*/ asyncOpts_,
3463
+ /*errorHandler:*/ FfiConverterTypeDriverError.lift.bind(FfiConverterTypeDriverError));
3464
+ }
3465
+ catch (__error) {
3466
+ if (uniffiIsDebug && __error instanceof Error) {
3467
+ __error.stack = __stack;
3468
+ }
3469
+ throw __error;
3470
+ }
3471
+ }
3414
3472
  async moveCursor(input, asyncOpts_) {
3415
3473
  const __stack = uniffiIsDebug ? new Error().stack : undefined;
3416
3474
  try {
@@ -4410,6 +4468,9 @@ function uniffiEnsureInitialized() {
4410
4468
  if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_hotkey() !== 53333) {
4411
4469
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriver_hotkey");
4412
4470
  }
4471
+ if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_invoke_menu() !== 13118) {
4472
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriver_invoke_menu");
4473
+ }
4413
4474
  if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_is_available() !== 42961) {
4414
4475
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriver_is_available");
4415
4476
  }
@@ -4500,6 +4561,9 @@ function uniffiEnsureInitialized() {
4500
4561
  if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriversession_hotkey() !== 12820) {
4501
4562
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriversession_hotkey");
4502
4563
  }
4564
+ if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriversession_invoke_menu() !== 2742) {
4565
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriversession_invoke_menu");
4566
+ }
4503
4567
  if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriversession_move_cursor() !== 35768) {
4504
4568
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriversession_move_cursor");
4505
4569
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trycua/cua-driver",
3
- "version": "0.16.0",
3
+ "version": "0.18.0",
4
4
  "description": "Rust-backed Cua Driver SDK and embedded Node host",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -42,11 +42,11 @@
42
42
  "@ubjs/node": "0.31.0-3"
43
43
  },
44
44
  "optionalDependencies": {
45
- "@trycua/cua-driver-darwin-arm64": "0.16.0",
46
- "@trycua/cua-driver-darwin-x64": "0.16.0",
47
- "@trycua/cua-driver-linux-arm64-gnu": "0.16.0",
48
- "@trycua/cua-driver-linux-x64-gnu": "0.16.0",
49
- "@trycua/cua-driver-win32-arm64-msvc": "0.16.0",
50
- "@trycua/cua-driver-win32-x64-msvc": "0.16.0"
45
+ "@trycua/cua-driver-darwin-arm64": "0.18.0",
46
+ "@trycua/cua-driver-darwin-x64": "0.18.0",
47
+ "@trycua/cua-driver-linux-arm64-gnu": "0.18.0",
48
+ "@trycua/cua-driver-linux-x64-gnu": "0.18.0",
49
+ "@trycua/cua-driver-win32-arm64-msvc": "0.18.0",
50
+ "@trycua/cua-driver-win32-x64-msvc": "0.18.0"
51
51
  }
52
52
  }