@trycua/cua-driver 0.25.0 → 0.26.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.
- package/README.md +31 -3
- package/dist/native/cua_driver_contract.d.ts +423 -29
- package/dist/native/cua_driver_contract.js +794 -40
- package/dist/native/cua_driver_sdk-ffi.d.ts +12 -0
- package/dist/native/cua_driver_sdk-ffi.js +60 -0
- package/dist/native/cua_driver_sdk.d.ts +41 -5
- package/dist/native/cua_driver_sdk.js +197 -5
- package/package.json +7 -7
|
@@ -97,12 +97,15 @@ interface NativeModuleInterface {
|
|
|
97
97
|
uniffi_cua_driver_sdk_fn_method_cuadriver_get_screen_size(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
98
98
|
uniffi_cua_driver_sdk_fn_method_cuadriver_get_session(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
99
99
|
uniffi_cua_driver_sdk_fn_method_cuadriver_get_session_state(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
100
|
+
uniffi_cua_driver_sdk_fn_method_cuadriver_get_window_state(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
100
101
|
uniffi_cua_driver_sdk_fn_method_cuadriver_hotkey(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
101
102
|
uniffi_cua_driver_sdk_fn_method_cuadriver_invoke_menu(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
102
103
|
uniffi_cua_driver_sdk_fn_method_cuadriver_is_available(uniffiSelf: bigint, uniffi_out_err: UniffiRustCallStatus): number;
|
|
104
|
+
uniffi_cua_driver_sdk_fn_method_cuadriver_list_apps(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
103
105
|
uniffi_cua_driver_sdk_fn_method_cuadriver_list_host_sessions_json(uniffiSelf: bigint): bigint;
|
|
104
106
|
uniffi_cua_driver_sdk_fn_method_cuadriver_list_sessions(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
105
107
|
uniffi_cua_driver_sdk_fn_method_cuadriver_list_tools_json(uniffiSelf: bigint): bigint;
|
|
108
|
+
uniffi_cua_driver_sdk_fn_method_cuadriver_list_windows(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
106
109
|
uniffi_cua_driver_sdk_fn_method_cuadriver_metadata(uniffiSelf: bigint): bigint;
|
|
107
110
|
uniffi_cua_driver_sdk_fn_method_cuadriver_move_cursor(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
108
111
|
uniffi_cua_driver_sdk_fn_method_cuadriver_press_key(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
@@ -131,9 +134,12 @@ interface NativeModuleInterface {
|
|
|
131
134
|
uniffi_cua_driver_sdk_fn_method_cuadriversession_get_screen_size(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
132
135
|
uniffi_cua_driver_sdk_fn_method_cuadriversession_get_session(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
133
136
|
uniffi_cua_driver_sdk_fn_method_cuadriversession_get_session_state(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
137
|
+
uniffi_cua_driver_sdk_fn_method_cuadriversession_get_window_state(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
134
138
|
uniffi_cua_driver_sdk_fn_method_cuadriversession_hotkey(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
135
139
|
uniffi_cua_driver_sdk_fn_method_cuadriversession_invoke_menu(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
140
|
+
uniffi_cua_driver_sdk_fn_method_cuadriversession_list_apps(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
136
141
|
uniffi_cua_driver_sdk_fn_method_cuadriversession_list_sessions(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
142
|
+
uniffi_cua_driver_sdk_fn_method_cuadriversession_list_windows(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
137
143
|
uniffi_cua_driver_sdk_fn_method_cuadriversession_move_cursor(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
138
144
|
uniffi_cua_driver_sdk_fn_method_cuadriversession_press_key(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
139
145
|
uniffi_cua_driver_sdk_fn_method_cuadriversession_scroll(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
@@ -195,12 +201,15 @@ interface NativeModuleInterface {
|
|
|
195
201
|
uniffi_cua_driver_sdk_checksum_method_cuadriver_get_screen_size(): number;
|
|
196
202
|
uniffi_cua_driver_sdk_checksum_method_cuadriver_get_session(): number;
|
|
197
203
|
uniffi_cua_driver_sdk_checksum_method_cuadriver_get_session_state(): number;
|
|
204
|
+
uniffi_cua_driver_sdk_checksum_method_cuadriver_get_window_state(): number;
|
|
198
205
|
uniffi_cua_driver_sdk_checksum_method_cuadriver_hotkey(): number;
|
|
199
206
|
uniffi_cua_driver_sdk_checksum_method_cuadriver_invoke_menu(): number;
|
|
200
207
|
uniffi_cua_driver_sdk_checksum_method_cuadriver_is_available(): number;
|
|
208
|
+
uniffi_cua_driver_sdk_checksum_method_cuadriver_list_apps(): number;
|
|
201
209
|
uniffi_cua_driver_sdk_checksum_method_cuadriver_list_host_sessions_json(): number;
|
|
202
210
|
uniffi_cua_driver_sdk_checksum_method_cuadriver_list_sessions(): number;
|
|
203
211
|
uniffi_cua_driver_sdk_checksum_method_cuadriver_list_tools_json(): number;
|
|
212
|
+
uniffi_cua_driver_sdk_checksum_method_cuadriver_list_windows(): number;
|
|
204
213
|
uniffi_cua_driver_sdk_checksum_method_cuadriver_metadata(): number;
|
|
205
214
|
uniffi_cua_driver_sdk_checksum_method_cuadriver_move_cursor(): number;
|
|
206
215
|
uniffi_cua_driver_sdk_checksum_method_cuadriver_press_key(): number;
|
|
@@ -229,9 +238,12 @@ interface NativeModuleInterface {
|
|
|
229
238
|
uniffi_cua_driver_sdk_checksum_method_cuadriversession_get_screen_size(): number;
|
|
230
239
|
uniffi_cua_driver_sdk_checksum_method_cuadriversession_get_session(): number;
|
|
231
240
|
uniffi_cua_driver_sdk_checksum_method_cuadriversession_get_session_state(): number;
|
|
241
|
+
uniffi_cua_driver_sdk_checksum_method_cuadriversession_get_window_state(): number;
|
|
232
242
|
uniffi_cua_driver_sdk_checksum_method_cuadriversession_hotkey(): number;
|
|
233
243
|
uniffi_cua_driver_sdk_checksum_method_cuadriversession_invoke_menu(): number;
|
|
244
|
+
uniffi_cua_driver_sdk_checksum_method_cuadriversession_list_apps(): number;
|
|
234
245
|
uniffi_cua_driver_sdk_checksum_method_cuadriversession_list_sessions(): number;
|
|
246
|
+
uniffi_cua_driver_sdk_checksum_method_cuadriversession_list_windows(): number;
|
|
235
247
|
uniffi_cua_driver_sdk_checksum_method_cuadriversession_move_cursor(): number;
|
|
236
248
|
uniffi_cua_driver_sdk_checksum_method_cuadriversession_press_key(): number;
|
|
237
249
|
uniffi_cua_driver_sdk_checksum_method_cuadriversession_scroll(): number;
|
|
@@ -497,6 +497,11 @@ const DEFINITIONS = {
|
|
|
497
497
|
ret: FfiType.Handle,
|
|
498
498
|
hasRustCallStatus: false,
|
|
499
499
|
},
|
|
500
|
+
"uniffi_cua_driver_sdk_fn_method_cuadriver_get_window_state": {
|
|
501
|
+
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
502
|
+
ret: FfiType.Handle,
|
|
503
|
+
hasRustCallStatus: false,
|
|
504
|
+
},
|
|
500
505
|
"uniffi_cua_driver_sdk_fn_method_cuadriver_hotkey": {
|
|
501
506
|
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
502
507
|
ret: FfiType.Handle,
|
|
@@ -512,6 +517,11 @@ const DEFINITIONS = {
|
|
|
512
517
|
ret: FfiType.Int8,
|
|
513
518
|
hasRustCallStatus: true,
|
|
514
519
|
},
|
|
520
|
+
"uniffi_cua_driver_sdk_fn_method_cuadriver_list_apps": {
|
|
521
|
+
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
522
|
+
ret: FfiType.Handle,
|
|
523
|
+
hasRustCallStatus: false,
|
|
524
|
+
},
|
|
515
525
|
"uniffi_cua_driver_sdk_fn_method_cuadriver_list_host_sessions_json": {
|
|
516
526
|
args: [FfiType.Handle],
|
|
517
527
|
ret: FfiType.Handle,
|
|
@@ -527,6 +537,11 @@ const DEFINITIONS = {
|
|
|
527
537
|
ret: FfiType.Handle,
|
|
528
538
|
hasRustCallStatus: false,
|
|
529
539
|
},
|
|
540
|
+
"uniffi_cua_driver_sdk_fn_method_cuadriver_list_windows": {
|
|
541
|
+
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
542
|
+
ret: FfiType.Handle,
|
|
543
|
+
hasRustCallStatus: false,
|
|
544
|
+
},
|
|
530
545
|
"uniffi_cua_driver_sdk_fn_method_cuadriver_metadata": {
|
|
531
546
|
args: [FfiType.Handle],
|
|
532
547
|
ret: FfiType.Handle,
|
|
@@ -667,6 +682,11 @@ const DEFINITIONS = {
|
|
|
667
682
|
ret: FfiType.Handle,
|
|
668
683
|
hasRustCallStatus: false,
|
|
669
684
|
},
|
|
685
|
+
"uniffi_cua_driver_sdk_fn_method_cuadriversession_get_window_state": {
|
|
686
|
+
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
687
|
+
ret: FfiType.Handle,
|
|
688
|
+
hasRustCallStatus: false,
|
|
689
|
+
},
|
|
670
690
|
"uniffi_cua_driver_sdk_fn_method_cuadriversession_hotkey": {
|
|
671
691
|
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
672
692
|
ret: FfiType.Handle,
|
|
@@ -677,11 +697,21 @@ const DEFINITIONS = {
|
|
|
677
697
|
ret: FfiType.Handle,
|
|
678
698
|
hasRustCallStatus: false,
|
|
679
699
|
},
|
|
700
|
+
"uniffi_cua_driver_sdk_fn_method_cuadriversession_list_apps": {
|
|
701
|
+
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
702
|
+
ret: FfiType.Handle,
|
|
703
|
+
hasRustCallStatus: false,
|
|
704
|
+
},
|
|
680
705
|
"uniffi_cua_driver_sdk_fn_method_cuadriversession_list_sessions": {
|
|
681
706
|
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
682
707
|
ret: FfiType.Handle,
|
|
683
708
|
hasRustCallStatus: false,
|
|
684
709
|
},
|
|
710
|
+
"uniffi_cua_driver_sdk_fn_method_cuadriversession_list_windows": {
|
|
711
|
+
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
712
|
+
ret: FfiType.Handle,
|
|
713
|
+
hasRustCallStatus: false,
|
|
714
|
+
},
|
|
685
715
|
"uniffi_cua_driver_sdk_fn_method_cuadriversession_move_cursor": {
|
|
686
716
|
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
687
717
|
ret: FfiType.Handle,
|
|
@@ -987,6 +1017,11 @@ const DEFINITIONS = {
|
|
|
987
1017
|
ret: FfiType.UInt16,
|
|
988
1018
|
hasRustCallStatus: false,
|
|
989
1019
|
},
|
|
1020
|
+
"uniffi_cua_driver_sdk_checksum_method_cuadriver_get_window_state": {
|
|
1021
|
+
args: [],
|
|
1022
|
+
ret: FfiType.UInt16,
|
|
1023
|
+
hasRustCallStatus: false,
|
|
1024
|
+
},
|
|
990
1025
|
"uniffi_cua_driver_sdk_checksum_method_cuadriver_hotkey": {
|
|
991
1026
|
args: [],
|
|
992
1027
|
ret: FfiType.UInt16,
|
|
@@ -1002,6 +1037,11 @@ const DEFINITIONS = {
|
|
|
1002
1037
|
ret: FfiType.UInt16,
|
|
1003
1038
|
hasRustCallStatus: false,
|
|
1004
1039
|
},
|
|
1040
|
+
"uniffi_cua_driver_sdk_checksum_method_cuadriver_list_apps": {
|
|
1041
|
+
args: [],
|
|
1042
|
+
ret: FfiType.UInt16,
|
|
1043
|
+
hasRustCallStatus: false,
|
|
1044
|
+
},
|
|
1005
1045
|
"uniffi_cua_driver_sdk_checksum_method_cuadriver_list_host_sessions_json": {
|
|
1006
1046
|
args: [],
|
|
1007
1047
|
ret: FfiType.UInt16,
|
|
@@ -1017,6 +1057,11 @@ const DEFINITIONS = {
|
|
|
1017
1057
|
ret: FfiType.UInt16,
|
|
1018
1058
|
hasRustCallStatus: false,
|
|
1019
1059
|
},
|
|
1060
|
+
"uniffi_cua_driver_sdk_checksum_method_cuadriver_list_windows": {
|
|
1061
|
+
args: [],
|
|
1062
|
+
ret: FfiType.UInt16,
|
|
1063
|
+
hasRustCallStatus: false,
|
|
1064
|
+
},
|
|
1020
1065
|
"uniffi_cua_driver_sdk_checksum_method_cuadriver_metadata": {
|
|
1021
1066
|
args: [],
|
|
1022
1067
|
ret: FfiType.UInt16,
|
|
@@ -1157,6 +1202,11 @@ const DEFINITIONS = {
|
|
|
1157
1202
|
ret: FfiType.UInt16,
|
|
1158
1203
|
hasRustCallStatus: false,
|
|
1159
1204
|
},
|
|
1205
|
+
"uniffi_cua_driver_sdk_checksum_method_cuadriversession_get_window_state": {
|
|
1206
|
+
args: [],
|
|
1207
|
+
ret: FfiType.UInt16,
|
|
1208
|
+
hasRustCallStatus: false,
|
|
1209
|
+
},
|
|
1160
1210
|
"uniffi_cua_driver_sdk_checksum_method_cuadriversession_hotkey": {
|
|
1161
1211
|
args: [],
|
|
1162
1212
|
ret: FfiType.UInt16,
|
|
@@ -1167,11 +1217,21 @@ const DEFINITIONS = {
|
|
|
1167
1217
|
ret: FfiType.UInt16,
|
|
1168
1218
|
hasRustCallStatus: false,
|
|
1169
1219
|
},
|
|
1220
|
+
"uniffi_cua_driver_sdk_checksum_method_cuadriversession_list_apps": {
|
|
1221
|
+
args: [],
|
|
1222
|
+
ret: FfiType.UInt16,
|
|
1223
|
+
hasRustCallStatus: false,
|
|
1224
|
+
},
|
|
1170
1225
|
"uniffi_cua_driver_sdk_checksum_method_cuadriversession_list_sessions": {
|
|
1171
1226
|
args: [],
|
|
1172
1227
|
ret: FfiType.UInt16,
|
|
1173
1228
|
hasRustCallStatus: false,
|
|
1174
1229
|
},
|
|
1230
|
+
"uniffi_cua_driver_sdk_checksum_method_cuadriversession_list_windows": {
|
|
1231
|
+
args: [],
|
|
1232
|
+
ret: FfiType.UInt16,
|
|
1233
|
+
hasRustCallStatus: false,
|
|
1234
|
+
},
|
|
1175
1235
|
"uniffi_cua_driver_sdk_checksum_method_cuadriversession_move_cursor": {
|
|
1176
1236
|
args: [],
|
|
1177
1237
|
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 HotkeyInput, type InvokeMenuInput, type ListSessionsInput, type ListSessionsOutput, 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 } 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 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.
|
|
@@ -2263,7 +2263,7 @@ export interface CuaDriverLike {
|
|
|
2263
2263
|
}): Promise<ToolResult>;
|
|
2264
2264
|
click(input: ClickInput, asyncOpts_?: {
|
|
2265
2265
|
signal: AbortSignal;
|
|
2266
|
-
}): Promise<
|
|
2266
|
+
}): Promise<ActionResult>;
|
|
2267
2267
|
clipboardRead(input: ClipboardReadInput, asyncOpts_?: {
|
|
2268
2268
|
signal: AbortSignal;
|
|
2269
2269
|
}): Promise<ToolResult>;
|
|
@@ -2298,6 +2298,9 @@ export interface CuaDriverLike {
|
|
|
2298
2298
|
getSessionState(input: GetSessionStateInput, asyncOpts_?: {
|
|
2299
2299
|
signal: AbortSignal;
|
|
2300
2300
|
}): Promise<SessionStateOutput>;
|
|
2301
|
+
getWindowState(input: GetWindowStateInput, asyncOpts_?: {
|
|
2302
|
+
signal: AbortSignal;
|
|
2303
|
+
}): Promise<WindowStateOutput>;
|
|
2301
2304
|
hotkey(input: HotkeyInput, asyncOpts_?: {
|
|
2302
2305
|
signal: AbortSignal;
|
|
2303
2306
|
}): Promise<ToolResult>;
|
|
@@ -2305,6 +2308,9 @@ export interface CuaDriverLike {
|
|
|
2305
2308
|
signal: AbortSignal;
|
|
2306
2309
|
}): Promise<ToolResult>;
|
|
2307
2310
|
isAvailable(): boolean;
|
|
2311
|
+
listApps(input: ListAppsInput, asyncOpts_?: {
|
|
2312
|
+
signal: AbortSignal;
|
|
2313
|
+
}): Promise<ListAppsOutput>;
|
|
2308
2314
|
/**
|
|
2309
2315
|
* Content-free lifecycle summaries for the trusted host's runtime or
|
|
2310
2316
|
* host-lease namespace. This is deliberately separate from the
|
|
@@ -2322,6 +2328,9 @@ export interface CuaDriverLike {
|
|
|
2322
2328
|
listToolsJson(asyncOpts_?: {
|
|
2323
2329
|
signal: AbortSignal;
|
|
2324
2330
|
}): Promise<string>;
|
|
2331
|
+
listWindows(input: ListWindowsInput, asyncOpts_?: {
|
|
2332
|
+
signal: AbortSignal;
|
|
2333
|
+
}): Promise<ListWindowsOutput>;
|
|
2325
2334
|
metadata(asyncOpts_?: {
|
|
2326
2335
|
signal: AbortSignal;
|
|
2327
2336
|
}): Promise<DriverMetadata>;
|
|
@@ -2462,7 +2471,7 @@ export declare class CuaDriver extends UniffiAbstractObject implements CuaDriver
|
|
|
2462
2471
|
}): Promise<ToolResult>;
|
|
2463
2472
|
click(input: ClickInput, asyncOpts_?: {
|
|
2464
2473
|
signal: AbortSignal;
|
|
2465
|
-
}): Promise<
|
|
2474
|
+
}): Promise<ActionResult>;
|
|
2466
2475
|
clipboardRead(input: ClipboardReadInput, asyncOpts_?: {
|
|
2467
2476
|
signal: AbortSignal;
|
|
2468
2477
|
}): Promise<ToolResult>;
|
|
@@ -2497,6 +2506,9 @@ export declare class CuaDriver extends UniffiAbstractObject implements CuaDriver
|
|
|
2497
2506
|
getSessionState(input: GetSessionStateInput, asyncOpts_?: {
|
|
2498
2507
|
signal: AbortSignal;
|
|
2499
2508
|
}): Promise<SessionStateOutput>;
|
|
2509
|
+
getWindowState(input: GetWindowStateInput, asyncOpts_?: {
|
|
2510
|
+
signal: AbortSignal;
|
|
2511
|
+
}): Promise<WindowStateOutput>;
|
|
2500
2512
|
hotkey(input: HotkeyInput, asyncOpts_?: {
|
|
2501
2513
|
signal: AbortSignal;
|
|
2502
2514
|
}): Promise<ToolResult>;
|
|
@@ -2504,6 +2516,9 @@ export declare class CuaDriver extends UniffiAbstractObject implements CuaDriver
|
|
|
2504
2516
|
signal: AbortSignal;
|
|
2505
2517
|
}): Promise<ToolResult>;
|
|
2506
2518
|
isAvailable(): boolean;
|
|
2519
|
+
listApps(input: ListAppsInput, asyncOpts_?: {
|
|
2520
|
+
signal: AbortSignal;
|
|
2521
|
+
}): Promise<ListAppsOutput>;
|
|
2507
2522
|
/**
|
|
2508
2523
|
* Content-free lifecycle summaries for the trusted host's runtime or
|
|
2509
2524
|
* host-lease namespace. This is deliberately separate from the
|
|
@@ -2521,6 +2536,9 @@ export declare class CuaDriver extends UniffiAbstractObject implements CuaDriver
|
|
|
2521
2536
|
listToolsJson(asyncOpts_?: {
|
|
2522
2537
|
signal: AbortSignal;
|
|
2523
2538
|
}): Promise<string>;
|
|
2539
|
+
listWindows(input: ListWindowsInput, asyncOpts_?: {
|
|
2540
|
+
signal: AbortSignal;
|
|
2541
|
+
}): Promise<ListWindowsOutput>;
|
|
2524
2542
|
metadata(asyncOpts_?: {
|
|
2525
2543
|
signal: AbortSignal;
|
|
2526
2544
|
}): Promise<DriverMetadata>;
|
|
@@ -2576,7 +2594,7 @@ export interface CuaDriverSessionLike {
|
|
|
2576
2594
|
}): Promise<ToolResult>;
|
|
2577
2595
|
click(input: ClickInput, asyncOpts_?: {
|
|
2578
2596
|
signal: AbortSignal;
|
|
2579
|
-
}): Promise<
|
|
2597
|
+
}): Promise<ActionResult>;
|
|
2580
2598
|
clipboardRead(input: ClipboardReadInput, asyncOpts_?: {
|
|
2581
2599
|
signal: AbortSignal;
|
|
2582
2600
|
}): Promise<ToolResult>;
|
|
@@ -2617,15 +2635,24 @@ export interface CuaDriverSessionLike {
|
|
|
2617
2635
|
getSessionState(input: GetSessionStateInput, asyncOpts_?: {
|
|
2618
2636
|
signal: AbortSignal;
|
|
2619
2637
|
}): Promise<SessionStateOutput>;
|
|
2638
|
+
getWindowState(input: GetWindowStateInput, asyncOpts_?: {
|
|
2639
|
+
signal: AbortSignal;
|
|
2640
|
+
}): Promise<WindowStateOutput>;
|
|
2620
2641
|
hotkey(input: HotkeyInput, asyncOpts_?: {
|
|
2621
2642
|
signal: AbortSignal;
|
|
2622
2643
|
}): Promise<ToolResult>;
|
|
2623
2644
|
invokeMenu(input: InvokeMenuInput, asyncOpts_?: {
|
|
2624
2645
|
signal: AbortSignal;
|
|
2625
2646
|
}): Promise<ToolResult>;
|
|
2647
|
+
listApps(input: ListAppsInput, asyncOpts_?: {
|
|
2648
|
+
signal: AbortSignal;
|
|
2649
|
+
}): Promise<ListAppsOutput>;
|
|
2626
2650
|
listSessions(input: ListSessionsInput, asyncOpts_?: {
|
|
2627
2651
|
signal: AbortSignal;
|
|
2628
2652
|
}): Promise<ListSessionsOutput>;
|
|
2653
|
+
listWindows(input: ListWindowsInput, asyncOpts_?: {
|
|
2654
|
+
signal: AbortSignal;
|
|
2655
|
+
}): Promise<ListWindowsOutput>;
|
|
2629
2656
|
moveCursor(input: MoveCursorInput, asyncOpts_?: {
|
|
2630
2657
|
signal: AbortSignal;
|
|
2631
2658
|
}): Promise<ToolResult>;
|
|
@@ -2671,7 +2698,7 @@ export declare class CuaDriverSession extends UniffiAbstractObject implements Cu
|
|
|
2671
2698
|
}): Promise<ToolResult>;
|
|
2672
2699
|
click(input: ClickInput, asyncOpts_?: {
|
|
2673
2700
|
signal: AbortSignal;
|
|
2674
|
-
}): Promise<
|
|
2701
|
+
}): Promise<ActionResult>;
|
|
2675
2702
|
clipboardRead(input: ClipboardReadInput, asyncOpts_?: {
|
|
2676
2703
|
signal: AbortSignal;
|
|
2677
2704
|
}): Promise<ToolResult>;
|
|
@@ -2712,15 +2739,24 @@ export declare class CuaDriverSession extends UniffiAbstractObject implements Cu
|
|
|
2712
2739
|
getSessionState(input: GetSessionStateInput, asyncOpts_?: {
|
|
2713
2740
|
signal: AbortSignal;
|
|
2714
2741
|
}): Promise<SessionStateOutput>;
|
|
2742
|
+
getWindowState(input: GetWindowStateInput, asyncOpts_?: {
|
|
2743
|
+
signal: AbortSignal;
|
|
2744
|
+
}): Promise<WindowStateOutput>;
|
|
2715
2745
|
hotkey(input: HotkeyInput, asyncOpts_?: {
|
|
2716
2746
|
signal: AbortSignal;
|
|
2717
2747
|
}): Promise<ToolResult>;
|
|
2718
2748
|
invokeMenu(input: InvokeMenuInput, asyncOpts_?: {
|
|
2719
2749
|
signal: AbortSignal;
|
|
2720
2750
|
}): Promise<ToolResult>;
|
|
2751
|
+
listApps(input: ListAppsInput, asyncOpts_?: {
|
|
2752
|
+
signal: AbortSignal;
|
|
2753
|
+
}): Promise<ListAppsOutput>;
|
|
2721
2754
|
listSessions(input: ListSessionsInput, asyncOpts_?: {
|
|
2722
2755
|
signal: AbortSignal;
|
|
2723
2756
|
}): Promise<ListSessionsOutput>;
|
|
2757
|
+
listWindows(input: ListWindowsInput, asyncOpts_?: {
|
|
2758
|
+
signal: AbortSignal;
|
|
2759
|
+
}): Promise<ListWindowsOutput>;
|
|
2724
2760
|
moveCursor(input: MoveCursorInput, asyncOpts_?: {
|
|
2725
2761
|
signal: AbortSignal;
|
|
2726
2762
|
}): 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, 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, FfiConverterTypeHotkeyInput, FfiConverterTypeInvokeMenuInput, FfiConverterTypeListSessionsInput, FfiConverterTypeListSessionsOutput, FfiConverterTypeMoveCursorInput, FfiConverterTypePressKeyInput, FfiConverterTypeScrollInput, FfiConverterTypeSessionOutput, 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, 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;
|
|
10
10
|
const uniffiCaller = new UniffiRustCaller(() => ({ code: 0 }));
|
|
11
11
|
const uniffiIsDebug =
|
|
12
12
|
// @ts-ignore -- The process global might not be defined
|
|
@@ -2938,7 +2938,7 @@ export class CuaDriver extends UniffiAbstractObject {
|
|
|
2938
2938
|
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
2939
2939
|
// export. The bytes the runtime hands back must be deserialized
|
|
2940
2940
|
// here using the per-callable return-type converter.
|
|
2941
|
-
/*liftFunc:*/
|
|
2941
|
+
/*liftFunc:*/ FfiConverterTypeActionResult.lift.bind(FfiConverterTypeActionResult),
|
|
2942
2942
|
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
2943
2943
|
/*asyncOpts:*/ asyncOpts_,
|
|
2944
2944
|
/*errorHandler:*/ FfiConverterTypeDriverError.lift.bind(FfiConverterTypeDriverError));
|
|
@@ -3283,6 +3283,35 @@ export class CuaDriver extends UniffiAbstractObject {
|
|
|
3283
3283
|
throw __error;
|
|
3284
3284
|
}
|
|
3285
3285
|
}
|
|
3286
|
+
async getWindowState(input, asyncOpts_) {
|
|
3287
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3288
|
+
try {
|
|
3289
|
+
return await uniffiRustCallAsync(
|
|
3290
|
+
/*rustCaller:*/ uniffiCaller,
|
|
3291
|
+
/*rustFutureFunc:*/ () => {
|
|
3292
|
+
return nativeModule().uniffi_cua_driver_sdk_fn_method_cuadriver_get_window_state(uniffiTypeCuaDriverObjectFactory.clonePointer(this), FfiConverterTypeGetWindowStateInput.lower(input, nativeModule().rustbuffer_alloc));
|
|
3293
|
+
},
|
|
3294
|
+
/*pollFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_poll_rust_buffer,
|
|
3295
|
+
/*cancelFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_cancel_rust_buffer,
|
|
3296
|
+
/*completeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_complete_rust_buffer,
|
|
3297
|
+
/*freeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_free_rust_buffer,
|
|
3298
|
+
// Async returns always go through the JS-side converter: the
|
|
3299
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
3300
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
3301
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
3302
|
+
// here using the per-callable return-type converter.
|
|
3303
|
+
/*liftFunc:*/ FfiConverterTypeWindowStateOutput.lift.bind(FfiConverterTypeWindowStateOutput),
|
|
3304
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
3305
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
3306
|
+
/*errorHandler:*/ FfiConverterTypeDriverError.lift.bind(FfiConverterTypeDriverError));
|
|
3307
|
+
}
|
|
3308
|
+
catch (__error) {
|
|
3309
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3310
|
+
__error.stack = __stack;
|
|
3311
|
+
}
|
|
3312
|
+
throw __error;
|
|
3313
|
+
}
|
|
3314
|
+
}
|
|
3286
3315
|
async hotkey(input, asyncOpts_) {
|
|
3287
3316
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3288
3317
|
try {
|
|
@@ -3348,6 +3377,35 @@ export class CuaDriver extends UniffiAbstractObject {
|
|
|
3348
3377
|
},
|
|
3349
3378
|
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
3350
3379
|
}
|
|
3380
|
+
async listApps(input, asyncOpts_) {
|
|
3381
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3382
|
+
try {
|
|
3383
|
+
return await uniffiRustCallAsync(
|
|
3384
|
+
/*rustCaller:*/ uniffiCaller,
|
|
3385
|
+
/*rustFutureFunc:*/ () => {
|
|
3386
|
+
return nativeModule().uniffi_cua_driver_sdk_fn_method_cuadriver_list_apps(uniffiTypeCuaDriverObjectFactory.clonePointer(this), FfiConverterTypeListAppsInput.lower(input, nativeModule().rustbuffer_alloc));
|
|
3387
|
+
},
|
|
3388
|
+
/*pollFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_poll_rust_buffer,
|
|
3389
|
+
/*cancelFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_cancel_rust_buffer,
|
|
3390
|
+
/*completeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_complete_rust_buffer,
|
|
3391
|
+
/*freeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_free_rust_buffer,
|
|
3392
|
+
// Async returns always go through the JS-side converter: the
|
|
3393
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
3394
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
3395
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
3396
|
+
// here using the per-callable return-type converter.
|
|
3397
|
+
/*liftFunc:*/ FfiConverterTypeListAppsOutput.lift.bind(FfiConverterTypeListAppsOutput),
|
|
3398
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
3399
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
3400
|
+
/*errorHandler:*/ FfiConverterTypeDriverError.lift.bind(FfiConverterTypeDriverError));
|
|
3401
|
+
}
|
|
3402
|
+
catch (__error) {
|
|
3403
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3404
|
+
__error.stack = __stack;
|
|
3405
|
+
}
|
|
3406
|
+
throw __error;
|
|
3407
|
+
}
|
|
3408
|
+
}
|
|
3351
3409
|
/**
|
|
3352
3410
|
* Content-free lifecycle summaries for the trusted host's runtime or
|
|
3353
3411
|
* host-lease namespace. This is deliberately separate from the
|
|
@@ -3443,6 +3501,35 @@ export class CuaDriver extends UniffiAbstractObject {
|
|
|
3443
3501
|
throw __error;
|
|
3444
3502
|
}
|
|
3445
3503
|
}
|
|
3504
|
+
async listWindows(input, asyncOpts_) {
|
|
3505
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3506
|
+
try {
|
|
3507
|
+
return await uniffiRustCallAsync(
|
|
3508
|
+
/*rustCaller:*/ uniffiCaller,
|
|
3509
|
+
/*rustFutureFunc:*/ () => {
|
|
3510
|
+
return nativeModule().uniffi_cua_driver_sdk_fn_method_cuadriver_list_windows(uniffiTypeCuaDriverObjectFactory.clonePointer(this), FfiConverterTypeListWindowsInput.lower(input, nativeModule().rustbuffer_alloc));
|
|
3511
|
+
},
|
|
3512
|
+
/*pollFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_poll_rust_buffer,
|
|
3513
|
+
/*cancelFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_cancel_rust_buffer,
|
|
3514
|
+
/*completeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_complete_rust_buffer,
|
|
3515
|
+
/*freeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_free_rust_buffer,
|
|
3516
|
+
// Async returns always go through the JS-side converter: the
|
|
3517
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
3518
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
3519
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
3520
|
+
// here using the per-callable return-type converter.
|
|
3521
|
+
/*liftFunc:*/ FfiConverterTypeListWindowsOutput.lift.bind(FfiConverterTypeListWindowsOutput),
|
|
3522
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
3523
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
3524
|
+
/*errorHandler:*/ FfiConverterTypeDriverError.lift.bind(FfiConverterTypeDriverError));
|
|
3525
|
+
}
|
|
3526
|
+
catch (__error) {
|
|
3527
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3528
|
+
__error.stack = __stack;
|
|
3529
|
+
}
|
|
3530
|
+
throw __error;
|
|
3531
|
+
}
|
|
3532
|
+
}
|
|
3446
3533
|
async metadata(asyncOpts_) {
|
|
3447
3534
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3448
3535
|
try {
|
|
@@ -3942,7 +4029,7 @@ export class CuaDriverSession extends UniffiAbstractObject {
|
|
|
3942
4029
|
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
3943
4030
|
// export. The bytes the runtime hands back must be deserialized
|
|
3944
4031
|
// here using the per-callable return-type converter.
|
|
3945
|
-
/*liftFunc:*/
|
|
4032
|
+
/*liftFunc:*/ FfiConverterTypeActionResult.lift.bind(FfiConverterTypeActionResult),
|
|
3946
4033
|
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
3947
4034
|
/*asyncOpts:*/ asyncOpts_,
|
|
3948
4035
|
/*errorHandler:*/ FfiConverterTypeDriverError.lift.bind(FfiConverterTypeDriverError));
|
|
@@ -4286,6 +4373,35 @@ export class CuaDriverSession extends UniffiAbstractObject {
|
|
|
4286
4373
|
throw __error;
|
|
4287
4374
|
}
|
|
4288
4375
|
}
|
|
4376
|
+
async getWindowState(input, asyncOpts_) {
|
|
4377
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4378
|
+
try {
|
|
4379
|
+
return await uniffiRustCallAsync(
|
|
4380
|
+
/*rustCaller:*/ uniffiCaller,
|
|
4381
|
+
/*rustFutureFunc:*/ () => {
|
|
4382
|
+
return nativeModule().uniffi_cua_driver_sdk_fn_method_cuadriversession_get_window_state(uniffiTypeCuaDriverSessionObjectFactory.clonePointer(this), FfiConverterTypeGetWindowStateInput.lower(input, nativeModule().rustbuffer_alloc));
|
|
4383
|
+
},
|
|
4384
|
+
/*pollFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_poll_rust_buffer,
|
|
4385
|
+
/*cancelFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_cancel_rust_buffer,
|
|
4386
|
+
/*completeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_complete_rust_buffer,
|
|
4387
|
+
/*freeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_free_rust_buffer,
|
|
4388
|
+
// Async returns always go through the JS-side converter: the
|
|
4389
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
4390
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
4391
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
4392
|
+
// here using the per-callable return-type converter.
|
|
4393
|
+
/*liftFunc:*/ FfiConverterTypeWindowStateOutput.lift.bind(FfiConverterTypeWindowStateOutput),
|
|
4394
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
4395
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
4396
|
+
/*errorHandler:*/ FfiConverterTypeDriverError.lift.bind(FfiConverterTypeDriverError));
|
|
4397
|
+
}
|
|
4398
|
+
catch (__error) {
|
|
4399
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
4400
|
+
__error.stack = __stack;
|
|
4401
|
+
}
|
|
4402
|
+
throw __error;
|
|
4403
|
+
}
|
|
4404
|
+
}
|
|
4289
4405
|
async hotkey(input, asyncOpts_) {
|
|
4290
4406
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4291
4407
|
try {
|
|
@@ -4344,6 +4460,35 @@ export class CuaDriverSession extends UniffiAbstractObject {
|
|
|
4344
4460
|
throw __error;
|
|
4345
4461
|
}
|
|
4346
4462
|
}
|
|
4463
|
+
async listApps(input, asyncOpts_) {
|
|
4464
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4465
|
+
try {
|
|
4466
|
+
return await uniffiRustCallAsync(
|
|
4467
|
+
/*rustCaller:*/ uniffiCaller,
|
|
4468
|
+
/*rustFutureFunc:*/ () => {
|
|
4469
|
+
return nativeModule().uniffi_cua_driver_sdk_fn_method_cuadriversession_list_apps(uniffiTypeCuaDriverSessionObjectFactory.clonePointer(this), FfiConverterTypeListAppsInput.lower(input, nativeModule().rustbuffer_alloc));
|
|
4470
|
+
},
|
|
4471
|
+
/*pollFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_poll_rust_buffer,
|
|
4472
|
+
/*cancelFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_cancel_rust_buffer,
|
|
4473
|
+
/*completeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_complete_rust_buffer,
|
|
4474
|
+
/*freeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_free_rust_buffer,
|
|
4475
|
+
// Async returns always go through the JS-side converter: the
|
|
4476
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
4477
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
4478
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
4479
|
+
// here using the per-callable return-type converter.
|
|
4480
|
+
/*liftFunc:*/ FfiConverterTypeListAppsOutput.lift.bind(FfiConverterTypeListAppsOutput),
|
|
4481
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
4482
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
4483
|
+
/*errorHandler:*/ FfiConverterTypeDriverError.lift.bind(FfiConverterTypeDriverError));
|
|
4484
|
+
}
|
|
4485
|
+
catch (__error) {
|
|
4486
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
4487
|
+
__error.stack = __stack;
|
|
4488
|
+
}
|
|
4489
|
+
throw __error;
|
|
4490
|
+
}
|
|
4491
|
+
}
|
|
4347
4492
|
async listSessions(input, asyncOpts_) {
|
|
4348
4493
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4349
4494
|
try {
|
|
@@ -4373,6 +4518,35 @@ export class CuaDriverSession extends UniffiAbstractObject {
|
|
|
4373
4518
|
throw __error;
|
|
4374
4519
|
}
|
|
4375
4520
|
}
|
|
4521
|
+
async listWindows(input, asyncOpts_) {
|
|
4522
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4523
|
+
try {
|
|
4524
|
+
return await uniffiRustCallAsync(
|
|
4525
|
+
/*rustCaller:*/ uniffiCaller,
|
|
4526
|
+
/*rustFutureFunc:*/ () => {
|
|
4527
|
+
return nativeModule().uniffi_cua_driver_sdk_fn_method_cuadriversession_list_windows(uniffiTypeCuaDriverSessionObjectFactory.clonePointer(this), FfiConverterTypeListWindowsInput.lower(input, nativeModule().rustbuffer_alloc));
|
|
4528
|
+
},
|
|
4529
|
+
/*pollFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_poll_rust_buffer,
|
|
4530
|
+
/*cancelFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_cancel_rust_buffer,
|
|
4531
|
+
/*completeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_complete_rust_buffer,
|
|
4532
|
+
/*freeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_free_rust_buffer,
|
|
4533
|
+
// Async returns always go through the JS-side converter: the
|
|
4534
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
4535
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
4536
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
4537
|
+
// here using the per-callable return-type converter.
|
|
4538
|
+
/*liftFunc:*/ FfiConverterTypeListWindowsOutput.lift.bind(FfiConverterTypeListWindowsOutput),
|
|
4539
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
4540
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
4541
|
+
/*errorHandler:*/ FfiConverterTypeDriverError.lift.bind(FfiConverterTypeDriverError));
|
|
4542
|
+
}
|
|
4543
|
+
catch (__error) {
|
|
4544
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
4545
|
+
__error.stack = __stack;
|
|
4546
|
+
}
|
|
4547
|
+
throw __error;
|
|
4548
|
+
}
|
|
4549
|
+
}
|
|
4376
4550
|
async moveCursor(input, asyncOpts_) {
|
|
4377
4551
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4378
4552
|
try {
|
|
@@ -5339,7 +5513,7 @@ function uniffiEnsureInitialized() {
|
|
|
5339
5513
|
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_call_tool() !== 24493) {
|
|
5340
5514
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriver_call_tool");
|
|
5341
5515
|
}
|
|
5342
|
-
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_click() !==
|
|
5516
|
+
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_click() !== 22807) {
|
|
5343
5517
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriver_click");
|
|
5344
5518
|
}
|
|
5345
5519
|
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_clipboard_read() !== 58238) {
|
|
@@ -5378,6 +5552,9 @@ function uniffiEnsureInitialized() {
|
|
|
5378
5552
|
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_get_session_state() !== 49966) {
|
|
5379
5553
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriver_get_session_state");
|
|
5380
5554
|
}
|
|
5555
|
+
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_get_window_state() !== 62142) {
|
|
5556
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriver_get_window_state");
|
|
5557
|
+
}
|
|
5381
5558
|
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_hotkey() !== 53333) {
|
|
5382
5559
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriver_hotkey");
|
|
5383
5560
|
}
|
|
@@ -5387,6 +5564,9 @@ function uniffiEnsureInitialized() {
|
|
|
5387
5564
|
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_is_available() !== 42961) {
|
|
5388
5565
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriver_is_available");
|
|
5389
5566
|
}
|
|
5567
|
+
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_list_apps() !== 35505) {
|
|
5568
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriver_list_apps");
|
|
5569
|
+
}
|
|
5390
5570
|
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_list_host_sessions_json() !== 13193) {
|
|
5391
5571
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriver_list_host_sessions_json");
|
|
5392
5572
|
}
|
|
@@ -5396,6 +5576,9 @@ function uniffiEnsureInitialized() {
|
|
|
5396
5576
|
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_list_tools_json() !== 33039) {
|
|
5397
5577
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriver_list_tools_json");
|
|
5398
5578
|
}
|
|
5579
|
+
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_list_windows() !== 52601) {
|
|
5580
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriver_list_windows");
|
|
5581
|
+
}
|
|
5399
5582
|
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_metadata() !== 55026) {
|
|
5400
5583
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriver_metadata");
|
|
5401
5584
|
}
|
|
@@ -5441,7 +5624,7 @@ function uniffiEnsureInitialized() {
|
|
|
5441
5624
|
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriversession_call_tool() !== 52859) {
|
|
5442
5625
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriversession_call_tool");
|
|
5443
5626
|
}
|
|
5444
|
-
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriversession_click() !==
|
|
5627
|
+
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriversession_click() !== 50816) {
|
|
5445
5628
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriversession_click");
|
|
5446
5629
|
}
|
|
5447
5630
|
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriversession_clipboard_read() !== 23560) {
|
|
@@ -5480,15 +5663,24 @@ function uniffiEnsureInitialized() {
|
|
|
5480
5663
|
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriversession_get_session_state() !== 55370) {
|
|
5481
5664
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriversession_get_session_state");
|
|
5482
5665
|
}
|
|
5666
|
+
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriversession_get_window_state() !== 21266) {
|
|
5667
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriversession_get_window_state");
|
|
5668
|
+
}
|
|
5483
5669
|
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriversession_hotkey() !== 12820) {
|
|
5484
5670
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriversession_hotkey");
|
|
5485
5671
|
}
|
|
5486
5672
|
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriversession_invoke_menu() !== 2742) {
|
|
5487
5673
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriversession_invoke_menu");
|
|
5488
5674
|
}
|
|
5675
|
+
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriversession_list_apps() !== 51520) {
|
|
5676
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriversession_list_apps");
|
|
5677
|
+
}
|
|
5489
5678
|
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriversession_list_sessions() !== 32840) {
|
|
5490
5679
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriversession_list_sessions");
|
|
5491
5680
|
}
|
|
5681
|
+
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriversession_list_windows() !== 20571) {
|
|
5682
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriversession_list_windows");
|
|
5683
|
+
}
|
|
5492
5684
|
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriversession_move_cursor() !== 35768) {
|
|
5493
5685
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriversession_move_cursor");
|
|
5494
5686
|
}
|