@trycua/cua-driver 0.28.2 → 0.28.3
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.
- package/dist/native/cua_driver_contract.d.ts +660 -10
- package/dist/native/cua_driver_contract.js +1095 -164
- package/dist/native/cua_driver_sdk-ffi.d.ts +4 -0
- package/dist/native/cua_driver_sdk-ffi.js +20 -0
- package/dist/native/cua_driver_sdk.d.ts +15 -3
- package/dist/native/cua_driver_sdk.js +65 -1
- package/package.json +7 -7
|
@@ -114,6 +114,7 @@ interface NativeModuleInterface {
|
|
|
114
114
|
uniffi_cua_driver_sdk_fn_method_cuadriver_list_windows(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
115
115
|
uniffi_cua_driver_sdk_fn_method_cuadriver_metadata(uniffiSelf: bigint): bigint;
|
|
116
116
|
uniffi_cua_driver_sdk_fn_method_cuadriver_move_cursor(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
117
|
+
uniffi_cua_driver_sdk_fn_method_cuadriver_parse_visual_regions(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
117
118
|
uniffi_cua_driver_sdk_fn_method_cuadriver_press_key(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
118
119
|
uniffi_cua_driver_sdk_fn_method_cuadriver_runtime_scope_prefix(uniffiSelf: bigint, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
|
|
119
120
|
uniffi_cua_driver_sdk_fn_method_cuadriver_scroll(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
@@ -147,6 +148,7 @@ interface NativeModuleInterface {
|
|
|
147
148
|
uniffi_cua_driver_sdk_fn_method_cuadriversession_list_sessions(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
148
149
|
uniffi_cua_driver_sdk_fn_method_cuadriversession_list_windows(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
149
150
|
uniffi_cua_driver_sdk_fn_method_cuadriversession_move_cursor(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
151
|
+
uniffi_cua_driver_sdk_fn_method_cuadriversession_parse_visual_regions(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
150
152
|
uniffi_cua_driver_sdk_fn_method_cuadriversession_press_key(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
151
153
|
uniffi_cua_driver_sdk_fn_method_cuadriversession_scroll(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
152
154
|
uniffi_cua_driver_sdk_fn_method_cuadriversession_set_agent_cursor_enabled(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
@@ -224,6 +226,7 @@ interface NativeModuleInterface {
|
|
|
224
226
|
uniffi_cua_driver_sdk_checksum_method_cuadriver_list_windows(): number;
|
|
225
227
|
uniffi_cua_driver_sdk_checksum_method_cuadriver_metadata(): number;
|
|
226
228
|
uniffi_cua_driver_sdk_checksum_method_cuadriver_move_cursor(): number;
|
|
229
|
+
uniffi_cua_driver_sdk_checksum_method_cuadriver_parse_visual_regions(): number;
|
|
227
230
|
uniffi_cua_driver_sdk_checksum_method_cuadriver_press_key(): number;
|
|
228
231
|
uniffi_cua_driver_sdk_checksum_method_cuadriver_runtime_scope_prefix(): number;
|
|
229
232
|
uniffi_cua_driver_sdk_checksum_method_cuadriver_scroll(): number;
|
|
@@ -257,6 +260,7 @@ interface NativeModuleInterface {
|
|
|
257
260
|
uniffi_cua_driver_sdk_checksum_method_cuadriversession_list_sessions(): number;
|
|
258
261
|
uniffi_cua_driver_sdk_checksum_method_cuadriversession_list_windows(): number;
|
|
259
262
|
uniffi_cua_driver_sdk_checksum_method_cuadriversession_move_cursor(): number;
|
|
263
|
+
uniffi_cua_driver_sdk_checksum_method_cuadriversession_parse_visual_regions(): number;
|
|
260
264
|
uniffi_cua_driver_sdk_checksum_method_cuadriversession_press_key(): number;
|
|
261
265
|
uniffi_cua_driver_sdk_checksum_method_cuadriversession_scroll(): number;
|
|
262
266
|
uniffi_cua_driver_sdk_checksum_method_cuadriversession_set_agent_cursor_enabled(): number;
|
|
@@ -582,6 +582,11 @@ const DEFINITIONS = {
|
|
|
582
582
|
ret: FfiType.Handle,
|
|
583
583
|
hasRustCallStatus: false,
|
|
584
584
|
},
|
|
585
|
+
"uniffi_cua_driver_sdk_fn_method_cuadriver_parse_visual_regions": {
|
|
586
|
+
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
587
|
+
ret: FfiType.Handle,
|
|
588
|
+
hasRustCallStatus: false,
|
|
589
|
+
},
|
|
585
590
|
"uniffi_cua_driver_sdk_fn_method_cuadriver_press_key": {
|
|
586
591
|
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
587
592
|
ret: FfiType.Handle,
|
|
@@ -747,6 +752,11 @@ const DEFINITIONS = {
|
|
|
747
752
|
ret: FfiType.Handle,
|
|
748
753
|
hasRustCallStatus: false,
|
|
749
754
|
},
|
|
755
|
+
"uniffi_cua_driver_sdk_fn_method_cuadriversession_parse_visual_regions": {
|
|
756
|
+
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
757
|
+
ret: FfiType.Handle,
|
|
758
|
+
hasRustCallStatus: false,
|
|
759
|
+
},
|
|
750
760
|
"uniffi_cua_driver_sdk_fn_method_cuadriversession_press_key": {
|
|
751
761
|
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
752
762
|
ret: FfiType.Handle,
|
|
@@ -1132,6 +1142,11 @@ const DEFINITIONS = {
|
|
|
1132
1142
|
ret: FfiType.UInt16,
|
|
1133
1143
|
hasRustCallStatus: false,
|
|
1134
1144
|
},
|
|
1145
|
+
"uniffi_cua_driver_sdk_checksum_method_cuadriver_parse_visual_regions": {
|
|
1146
|
+
args: [],
|
|
1147
|
+
ret: FfiType.UInt16,
|
|
1148
|
+
hasRustCallStatus: false,
|
|
1149
|
+
},
|
|
1135
1150
|
"uniffi_cua_driver_sdk_checksum_method_cuadriver_press_key": {
|
|
1136
1151
|
args: [],
|
|
1137
1152
|
ret: FfiType.UInt16,
|
|
@@ -1297,6 +1312,11 @@ const DEFINITIONS = {
|
|
|
1297
1312
|
ret: FfiType.UInt16,
|
|
1298
1313
|
hasRustCallStatus: false,
|
|
1299
1314
|
},
|
|
1315
|
+
"uniffi_cua_driver_sdk_checksum_method_cuadriversession_parse_visual_regions": {
|
|
1316
|
+
args: [],
|
|
1317
|
+
ret: FfiType.UInt16,
|
|
1318
|
+
hasRustCallStatus: false,
|
|
1319
|
+
},
|
|
1300
1320
|
"uniffi_cua_driver_sdk_checksum_method_cuadriversession_press_key": {
|
|
1301
1321
|
args: [],
|
|
1302
1322
|
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 GetSessionInput, type GetSessionStateInput, type GetWindowStateInput, type HotkeyInput, type InvokeMenuInput, type ListAppsInput, type ListAppsOutput, type ListSessionsInput, type ListSessionsOutput, type ListWindowsInput, type ListWindowsOutput, type MoveCursorInput, type PressKeyInput, type ScrollInput, type SessionOutput, type SessionStateOutput, type SetAgentCursorEnabledInput, type SetAgentCursorMotionInput, type SetAgentCursorThemeInput, type SetWindowFrameInput, type StartSessionInput, type StartSessionOutput, type TypeTextInput, type VerifyStateInput, type VerifyStateOutput, type WindowStateOutput } 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 GetSessionInput, type GetSessionStateInput, type GetWindowStateInput, type HotkeyInput, type InvokeMenuInput, type ListAppsInput, type ListAppsOutput, type ListSessionsInput, type ListSessionsOutput, type ListWindowsInput, type ListWindowsOutput, type MoveCursorInput, type ParseVisualRegionsInput, type PressKeyInput, type ScrollInput, type SessionOutput, type SessionStateOutput, type SetAgentCursorEnabledInput, type SetAgentCursorMotionInput, type SetAgentCursorThemeInput, type SetWindowFrameInput, type StartSessionInput, type StartSessionOutput, type TypeTextInput, type VerifyStateInput, type VerifyStateOutput, type WindowStateOutput } 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
|
* Connect the canonical typed Driver to a host-provided remote carrier.
|
|
@@ -475,8 +475,8 @@ export type ForeignDriverResponseEnvelope = {
|
|
|
475
475
|
* Generated factory for {@link ForeignDriverResponseEnvelope} record objects.
|
|
476
476
|
*/
|
|
477
477
|
export declare const ForeignDriverResponseEnvelope: Readonly<{
|
|
478
|
-
create: (partial: Partial<ForeignDriverResponseEnvelope> & Required<Omit<ForeignDriverResponseEnvelope, "
|
|
479
|
-
new: (partial: Partial<ForeignDriverResponseEnvelope> & Required<Omit<ForeignDriverResponseEnvelope, "
|
|
478
|
+
create: (partial: Partial<ForeignDriverResponseEnvelope> & Required<Omit<ForeignDriverResponseEnvelope, "error" | "errorCode" | "resultJson">>) => ForeignDriverResponseEnvelope;
|
|
479
|
+
new: (partial: Partial<ForeignDriverResponseEnvelope> & Required<Omit<ForeignDriverResponseEnvelope, "error" | "errorCode" | "resultJson">>) => ForeignDriverResponseEnvelope;
|
|
480
480
|
defaults: () => Partial<ForeignDriverResponseEnvelope>;
|
|
481
481
|
}>;
|
|
482
482
|
/**
|
|
@@ -2474,6 +2474,9 @@ export interface CuaDriverLike {
|
|
|
2474
2474
|
moveCursor(input: MoveCursorInput, asyncOpts_?: {
|
|
2475
2475
|
signal: AbortSignal;
|
|
2476
2476
|
}): Promise<ToolResult>;
|
|
2477
|
+
parseVisualRegions(input: ParseVisualRegionsInput, asyncOpts_?: {
|
|
2478
|
+
signal: AbortSignal;
|
|
2479
|
+
}): Promise<ToolResult>;
|
|
2477
2480
|
pressKey(input: PressKeyInput, asyncOpts_?: {
|
|
2478
2481
|
signal: AbortSignal;
|
|
2479
2482
|
}): Promise<ToolResult>;
|
|
@@ -2682,6 +2685,9 @@ export declare class CuaDriver extends UniffiAbstractObject implements CuaDriver
|
|
|
2682
2685
|
moveCursor(input: MoveCursorInput, asyncOpts_?: {
|
|
2683
2686
|
signal: AbortSignal;
|
|
2684
2687
|
}): Promise<ToolResult>;
|
|
2688
|
+
parseVisualRegions(input: ParseVisualRegionsInput, asyncOpts_?: {
|
|
2689
|
+
signal: AbortSignal;
|
|
2690
|
+
}): Promise<ToolResult>;
|
|
2685
2691
|
pressKey(input: PressKeyInput, asyncOpts_?: {
|
|
2686
2692
|
signal: AbortSignal;
|
|
2687
2693
|
}): Promise<ToolResult>;
|
|
@@ -2793,6 +2799,9 @@ export interface CuaDriverSessionLike {
|
|
|
2793
2799
|
moveCursor(input: MoveCursorInput, asyncOpts_?: {
|
|
2794
2800
|
signal: AbortSignal;
|
|
2795
2801
|
}): Promise<ToolResult>;
|
|
2802
|
+
parseVisualRegions(input: ParseVisualRegionsInput, asyncOpts_?: {
|
|
2803
|
+
signal: AbortSignal;
|
|
2804
|
+
}): Promise<ToolResult>;
|
|
2796
2805
|
pressKey(input: PressKeyInput, asyncOpts_?: {
|
|
2797
2806
|
signal: AbortSignal;
|
|
2798
2807
|
}): Promise<ToolResult>;
|
|
@@ -2897,6 +2906,9 @@ export declare class CuaDriverSession extends UniffiAbstractObject implements Cu
|
|
|
2897
2906
|
moveCursor(input: MoveCursorInput, asyncOpts_?: {
|
|
2898
2907
|
signal: AbortSignal;
|
|
2899
2908
|
}): Promise<ToolResult>;
|
|
2909
|
+
parseVisualRegions(input: ParseVisualRegionsInput, asyncOpts_?: {
|
|
2910
|
+
signal: AbortSignal;
|
|
2911
|
+
}): Promise<ToolResult>;
|
|
2900
2912
|
pressKey(input: PressKeyInput, asyncOpts_?: {
|
|
2901
2913
|
signal: AbortSignal;
|
|
2902
2914
|
}): Promise<ToolResult>;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import nativeModule from "./cua_driver_sdk-ffi.js";
|
|
7
7
|
import { AbstractFfiConverterByteArray, FfiConverterArray, FfiConverterArrayBuffer, FfiConverterBool, FfiConverterInt32, FfiConverterObject, FfiConverterObjectWithCallbacks, FfiConverterOptional, FfiConverterUInt16, FfiConverterUInt32, FfiConverterUInt64, UniffiAbstractObject, UniffiError, UniffiInternalError, UniffiResult, UniffiRustCaller, destructorGuardSymbol, pointerLiteralSymbol, uniffiCreateFfiConverterString, uniffiCreateRecord, uniffiRustCallAsync, uniffiTraitInterfaceCall, uniffiTraitInterfaceCallAsyncWithError, uniffiTraitInterfaceCallWithError, 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, FfiConverterTypeGetSessionInput, FfiConverterTypeGetSessionStateInput, FfiConverterTypeGetWindowStateInput, FfiConverterTypeHotkeyInput, FfiConverterTypeInvokeMenuInput, FfiConverterTypeListAppsInput, FfiConverterTypeListAppsOutput, FfiConverterTypeListSessionsInput, FfiConverterTypeListSessionsOutput, FfiConverterTypeListWindowsInput, FfiConverterTypeListWindowsOutput, FfiConverterTypeMoveCursorInput, FfiConverterTypePressKeyInput, FfiConverterTypeScrollInput, FfiConverterTypeSessionOutput, FfiConverterTypeSessionStateOutput, FfiConverterTypeSetAgentCursorEnabledInput, FfiConverterTypeSetAgentCursorMotionInput, FfiConverterTypeSetAgentCursorThemeInput, FfiConverterTypeSetWindowFrameInput, FfiConverterTypeStartSessionInput, FfiConverterTypeStartSessionOutput, FfiConverterTypeTypeTextInput, FfiConverterTypeVerifyStateInput, FfiConverterTypeVerifyStateOutput, FfiConverterTypeWindowStateOutput } = uniffiCuaDriverContractModule.converters;
|
|
9
|
+
const { FfiConverterTypeActionResult, FfiConverterTypeClickInput, FfiConverterTypeClipboardReadInput, FfiConverterTypeClipboardWriteInput, FfiConverterTypeDragInput, FfiConverterTypeEndSessionInput, FfiConverterTypeEndSessionOutput, FfiConverterTypeEscalateSessionInput, FfiConverterTypeGetAgentCursorStateInput, FfiConverterTypeGetCursorPositionInput, FfiConverterTypeGetDesktopStateInput, FfiConverterTypeGetScreenSizeInput, FfiConverterTypeGetSessionInput, FfiConverterTypeGetSessionStateInput, FfiConverterTypeGetWindowStateInput, FfiConverterTypeHotkeyInput, FfiConverterTypeInvokeMenuInput, FfiConverterTypeListAppsInput, FfiConverterTypeListAppsOutput, FfiConverterTypeListSessionsInput, FfiConverterTypeListSessionsOutput, FfiConverterTypeListWindowsInput, FfiConverterTypeListWindowsOutput, FfiConverterTypeMoveCursorInput, FfiConverterTypeParseVisualRegionsInput, FfiConverterTypePressKeyInput, FfiConverterTypeScrollInput, FfiConverterTypeSessionOutput, FfiConverterTypeSessionStateOutput, FfiConverterTypeSetAgentCursorEnabledInput, FfiConverterTypeSetAgentCursorMotionInput, FfiConverterTypeSetAgentCursorThemeInput, FfiConverterTypeSetWindowFrameInput, FfiConverterTypeStartSessionInput, FfiConverterTypeStartSessionOutput, FfiConverterTypeTypeTextInput, FfiConverterTypeVerifyStateInput, FfiConverterTypeVerifyStateOutput, FfiConverterTypeWindowStateOutput } = 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
|
|
@@ -3789,6 +3789,35 @@ export class CuaDriver extends UniffiAbstractObject {
|
|
|
3789
3789
|
throw __error;
|
|
3790
3790
|
}
|
|
3791
3791
|
}
|
|
3792
|
+
async parseVisualRegions(input, asyncOpts_) {
|
|
3793
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3794
|
+
try {
|
|
3795
|
+
return await uniffiRustCallAsync(
|
|
3796
|
+
/*rustCaller:*/ uniffiCaller,
|
|
3797
|
+
/*rustFutureFunc:*/ () => {
|
|
3798
|
+
return nativeModule().uniffi_cua_driver_sdk_fn_method_cuadriver_parse_visual_regions(uniffiTypeCuaDriverObjectFactory.clonePointer(this), FfiConverterTypeParseVisualRegionsInput.lower(input, nativeModule().rustbuffer_alloc));
|
|
3799
|
+
},
|
|
3800
|
+
/*pollFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_poll_rust_buffer,
|
|
3801
|
+
/*cancelFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_cancel_rust_buffer,
|
|
3802
|
+
/*completeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_complete_rust_buffer,
|
|
3803
|
+
/*freeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_free_rust_buffer,
|
|
3804
|
+
// Async returns always go through the JS-side converter: the
|
|
3805
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
3806
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
3807
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
3808
|
+
// here using the per-callable return-type converter.
|
|
3809
|
+
/*liftFunc:*/ FfiConverterTypeToolResult.lift.bind(FfiConverterTypeToolResult),
|
|
3810
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
3811
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
3812
|
+
/*errorHandler:*/ FfiConverterTypeDriverError.lift.bind(FfiConverterTypeDriverError));
|
|
3813
|
+
}
|
|
3814
|
+
catch (__error) {
|
|
3815
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3816
|
+
__error.stack = __stack;
|
|
3817
|
+
}
|
|
3818
|
+
throw __error;
|
|
3819
|
+
}
|
|
3820
|
+
}
|
|
3792
3821
|
async pressKey(input, asyncOpts_) {
|
|
3793
3822
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3794
3823
|
try {
|
|
@@ -4777,6 +4806,35 @@ export class CuaDriverSession extends UniffiAbstractObject {
|
|
|
4777
4806
|
throw __error;
|
|
4778
4807
|
}
|
|
4779
4808
|
}
|
|
4809
|
+
async parseVisualRegions(input, asyncOpts_) {
|
|
4810
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4811
|
+
try {
|
|
4812
|
+
return await uniffiRustCallAsync(
|
|
4813
|
+
/*rustCaller:*/ uniffiCaller,
|
|
4814
|
+
/*rustFutureFunc:*/ () => {
|
|
4815
|
+
return nativeModule().uniffi_cua_driver_sdk_fn_method_cuadriversession_parse_visual_regions(uniffiTypeCuaDriverSessionObjectFactory.clonePointer(this), FfiConverterTypeParseVisualRegionsInput.lower(input, nativeModule().rustbuffer_alloc));
|
|
4816
|
+
},
|
|
4817
|
+
/*pollFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_poll_rust_buffer,
|
|
4818
|
+
/*cancelFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_cancel_rust_buffer,
|
|
4819
|
+
/*completeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_complete_rust_buffer,
|
|
4820
|
+
/*freeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_free_rust_buffer,
|
|
4821
|
+
// Async returns always go through the JS-side converter: the
|
|
4822
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
4823
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
4824
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
4825
|
+
// here using the per-callable return-type converter.
|
|
4826
|
+
/*liftFunc:*/ FfiConverterTypeToolResult.lift.bind(FfiConverterTypeToolResult),
|
|
4827
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
4828
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
4829
|
+
/*errorHandler:*/ FfiConverterTypeDriverError.lift.bind(FfiConverterTypeDriverError));
|
|
4830
|
+
}
|
|
4831
|
+
catch (__error) {
|
|
4832
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
4833
|
+
__error.stack = __stack;
|
|
4834
|
+
}
|
|
4835
|
+
throw __error;
|
|
4836
|
+
}
|
|
4837
|
+
}
|
|
4780
4838
|
async pressKey(input, asyncOpts_) {
|
|
4781
4839
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4782
4840
|
try {
|
|
@@ -6093,6 +6151,9 @@ function uniffiEnsureInitialized() {
|
|
|
6093
6151
|
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_move_cursor() !== 18320) {
|
|
6094
6152
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriver_move_cursor");
|
|
6095
6153
|
}
|
|
6154
|
+
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_parse_visual_regions() !== 15013) {
|
|
6155
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriver_parse_visual_regions");
|
|
6156
|
+
}
|
|
6096
6157
|
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_press_key() !== 63712) {
|
|
6097
6158
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriver_press_key");
|
|
6098
6159
|
}
|
|
@@ -6192,6 +6253,9 @@ function uniffiEnsureInitialized() {
|
|
|
6192
6253
|
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriversession_move_cursor() !== 35768) {
|
|
6193
6254
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriversession_move_cursor");
|
|
6194
6255
|
}
|
|
6256
|
+
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriversession_parse_visual_regions() !== 31748) {
|
|
6257
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriversession_parse_visual_regions");
|
|
6258
|
+
}
|
|
6195
6259
|
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriversession_press_key() !== 36768) {
|
|
6196
6260
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriversession_press_key");
|
|
6197
6261
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trycua/cua-driver",
|
|
3
|
-
"version": "0.28.
|
|
3
|
+
"version": "0.28.3",
|
|
4
4
|
"description": "Rust-backed Cua Driver SDK and embedded Node host",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -48,11 +48,11 @@
|
|
|
48
48
|
"@ubjs/node": "0.31.0-3"
|
|
49
49
|
},
|
|
50
50
|
"optionalDependencies": {
|
|
51
|
-
"@trycua/cua-driver-darwin-arm64": "0.28.
|
|
52
|
-
"@trycua/cua-driver-darwin-x64": "0.28.
|
|
53
|
-
"@trycua/cua-driver-linux-arm64-gnu": "0.28.
|
|
54
|
-
"@trycua/cua-driver-linux-x64-gnu": "0.28.
|
|
55
|
-
"@trycua/cua-driver-win32-arm64-msvc": "0.28.
|
|
56
|
-
"@trycua/cua-driver-win32-x64-msvc": "0.28.
|
|
51
|
+
"@trycua/cua-driver-darwin-arm64": "0.28.3",
|
|
52
|
+
"@trycua/cua-driver-darwin-x64": "0.28.3",
|
|
53
|
+
"@trycua/cua-driver-linux-arm64-gnu": "0.28.3",
|
|
54
|
+
"@trycua/cua-driver-linux-x64-gnu": "0.28.3",
|
|
55
|
+
"@trycua/cua-driver-win32-arm64-msvc": "0.28.3",
|
|
56
|
+
"@trycua/cua-driver-win32-x64-msvc": "0.28.3"
|
|
57
57
|
}
|
|
58
58
|
}
|