@trycua/cua-driver 0.14.2 → 0.17.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/dist/native/cua_driver_contract.d.ts +545 -0
- package/dist/native/cua_driver_contract.js +1060 -25
- package/dist/native/cua_driver_sdk-ffi.d.ts +20 -0
- package/dist/native/cua_driver_sdk-ffi.js +100 -0
- package/dist/native/cua_driver_sdk.d.ts +65 -4
- package/dist/native/cua_driver_sdk.js +331 -6
- package/package.json +7 -7
|
@@ -80,6 +80,8 @@ interface NativeModuleInterface {
|
|
|
80
80
|
uniffi_cua_driver_sdk_fn_constructor_cuadriver_create_with_client_kind(options: Uint8Array, clientKind: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
81
81
|
uniffi_cua_driver_sdk_fn_method_cuadriver_call_tool(uniffiSelf: bigint, name: Uint8Array, argumentsJson: Uint8Array): bigint;
|
|
82
82
|
uniffi_cua_driver_sdk_fn_method_cuadriver_click(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
83
|
+
uniffi_cua_driver_sdk_fn_method_cuadriver_clipboard_read(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
84
|
+
uniffi_cua_driver_sdk_fn_method_cuadriver_clipboard_write(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
83
85
|
uniffi_cua_driver_sdk_fn_method_cuadriver_drag(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
84
86
|
uniffi_cua_driver_sdk_fn_method_cuadriver_end_session(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
85
87
|
uniffi_cua_driver_sdk_fn_method_cuadriver_escalate_session(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
@@ -90,6 +92,7 @@ interface NativeModuleInterface {
|
|
|
90
92
|
uniffi_cua_driver_sdk_fn_method_cuadriver_get_screen_size(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
91
93
|
uniffi_cua_driver_sdk_fn_method_cuadriver_get_session_state(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
92
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;
|
|
93
96
|
uniffi_cua_driver_sdk_fn_method_cuadriver_is_available(uniffiSelf: bigint, uniffi_out_err: UniffiRustCallStatus): number;
|
|
94
97
|
uniffi_cua_driver_sdk_fn_method_cuadriver_list_tools_json(uniffiSelf: bigint): bigint;
|
|
95
98
|
uniffi_cua_driver_sdk_fn_method_cuadriver_metadata(uniffiSelf: bigint): bigint;
|
|
@@ -100,12 +103,16 @@ interface NativeModuleInterface {
|
|
|
100
103
|
uniffi_cua_driver_sdk_fn_method_cuadriver_set_agent_cursor_enabled(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
101
104
|
uniffi_cua_driver_sdk_fn_method_cuadriver_set_agent_cursor_motion(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
102
105
|
uniffi_cua_driver_sdk_fn_method_cuadriver_set_agent_cursor_theme(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
106
|
+
uniffi_cua_driver_sdk_fn_method_cuadriver_set_window_frame(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
103
107
|
uniffi_cua_driver_sdk_fn_method_cuadriver_shutdown(uniffiSelf: bigint): bigint;
|
|
104
108
|
uniffi_cua_driver_sdk_fn_method_cuadriver_socket_path(uniffiSelf: bigint, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
|
|
105
109
|
uniffi_cua_driver_sdk_fn_method_cuadriver_start_session(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
106
110
|
uniffi_cua_driver_sdk_fn_method_cuadriver_type_text(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
111
|
+
uniffi_cua_driver_sdk_fn_method_cuadriver_verify_state(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
107
112
|
uniffi_cua_driver_sdk_fn_method_cuadriversession_call_tool(uniffiSelf: bigint, name: Uint8Array, argumentsJson: Uint8Array): bigint;
|
|
108
113
|
uniffi_cua_driver_sdk_fn_method_cuadriversession_click(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
114
|
+
uniffi_cua_driver_sdk_fn_method_cuadriversession_clipboard_read(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
115
|
+
uniffi_cua_driver_sdk_fn_method_cuadriversession_clipboard_write(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
109
116
|
uniffi_cua_driver_sdk_fn_method_cuadriversession_close(uniffiSelf: bigint, uniffi_out_err: UniffiRustCallStatus): void;
|
|
110
117
|
uniffi_cua_driver_sdk_fn_method_cuadriversession_drag(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
111
118
|
uniffi_cua_driver_sdk_fn_method_cuadriversession_end_session(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
@@ -116,14 +123,17 @@ interface NativeModuleInterface {
|
|
|
116
123
|
uniffi_cua_driver_sdk_fn_method_cuadriversession_get_screen_size(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
117
124
|
uniffi_cua_driver_sdk_fn_method_cuadriversession_get_session_state(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
118
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;
|
|
119
127
|
uniffi_cua_driver_sdk_fn_method_cuadriversession_move_cursor(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
120
128
|
uniffi_cua_driver_sdk_fn_method_cuadriversession_press_key(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
121
129
|
uniffi_cua_driver_sdk_fn_method_cuadriversession_scroll(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
122
130
|
uniffi_cua_driver_sdk_fn_method_cuadriversession_set_agent_cursor_enabled(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
123
131
|
uniffi_cua_driver_sdk_fn_method_cuadriversession_set_agent_cursor_motion(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
124
132
|
uniffi_cua_driver_sdk_fn_method_cuadriversession_set_agent_cursor_theme(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
133
|
+
uniffi_cua_driver_sdk_fn_method_cuadriversession_set_window_frame(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
125
134
|
uniffi_cua_driver_sdk_fn_method_cuadriversession_start_session(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
126
135
|
uniffi_cua_driver_sdk_fn_method_cuadriversession_type_text(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
136
|
+
uniffi_cua_driver_sdk_fn_method_cuadriversession_verify_state(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
127
137
|
uniffi_cua_driver_sdk_fn_method_driveractivityobserver_on_activity(uniffiSelf: bigint, event: Uint8Array, uniffi_out_err: UniffiRustCallStatus): void;
|
|
128
138
|
uniffi_cua_driver_sdk_fn_method_driverauthorizationhost_authorize(uniffiSelf: bigint, request: Uint8Array): bigint;
|
|
129
139
|
uniffi_cua_driver_sdk_fn_constructor_embeddedcuadriverhost_new(binaryPath: Uint8Array, hostBundleId: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
@@ -155,6 +165,8 @@ interface NativeModuleInterface {
|
|
|
155
165
|
uniffi_cua_driver_sdk_checksum_constructor_cuadriver_create_with_client_kind(): number;
|
|
156
166
|
uniffi_cua_driver_sdk_checksum_method_cuadriver_call_tool(): number;
|
|
157
167
|
uniffi_cua_driver_sdk_checksum_method_cuadriver_click(): number;
|
|
168
|
+
uniffi_cua_driver_sdk_checksum_method_cuadriver_clipboard_read(): number;
|
|
169
|
+
uniffi_cua_driver_sdk_checksum_method_cuadriver_clipboard_write(): number;
|
|
158
170
|
uniffi_cua_driver_sdk_checksum_method_cuadriver_drag(): number;
|
|
159
171
|
uniffi_cua_driver_sdk_checksum_method_cuadriver_end_session(): number;
|
|
160
172
|
uniffi_cua_driver_sdk_checksum_method_cuadriver_escalate_session(): number;
|
|
@@ -165,6 +177,7 @@ interface NativeModuleInterface {
|
|
|
165
177
|
uniffi_cua_driver_sdk_checksum_method_cuadriver_get_screen_size(): number;
|
|
166
178
|
uniffi_cua_driver_sdk_checksum_method_cuadriver_get_session_state(): number;
|
|
167
179
|
uniffi_cua_driver_sdk_checksum_method_cuadriver_hotkey(): number;
|
|
180
|
+
uniffi_cua_driver_sdk_checksum_method_cuadriver_invoke_menu(): number;
|
|
168
181
|
uniffi_cua_driver_sdk_checksum_method_cuadriver_is_available(): number;
|
|
169
182
|
uniffi_cua_driver_sdk_checksum_method_cuadriver_list_tools_json(): number;
|
|
170
183
|
uniffi_cua_driver_sdk_checksum_method_cuadriver_metadata(): number;
|
|
@@ -175,12 +188,16 @@ interface NativeModuleInterface {
|
|
|
175
188
|
uniffi_cua_driver_sdk_checksum_method_cuadriver_set_agent_cursor_enabled(): number;
|
|
176
189
|
uniffi_cua_driver_sdk_checksum_method_cuadriver_set_agent_cursor_motion(): number;
|
|
177
190
|
uniffi_cua_driver_sdk_checksum_method_cuadriver_set_agent_cursor_theme(): number;
|
|
191
|
+
uniffi_cua_driver_sdk_checksum_method_cuadriver_set_window_frame(): number;
|
|
178
192
|
uniffi_cua_driver_sdk_checksum_method_cuadriver_shutdown(): number;
|
|
179
193
|
uniffi_cua_driver_sdk_checksum_method_cuadriver_socket_path(): number;
|
|
180
194
|
uniffi_cua_driver_sdk_checksum_method_cuadriver_start_session(): number;
|
|
181
195
|
uniffi_cua_driver_sdk_checksum_method_cuadriver_type_text(): number;
|
|
196
|
+
uniffi_cua_driver_sdk_checksum_method_cuadriver_verify_state(): number;
|
|
182
197
|
uniffi_cua_driver_sdk_checksum_method_cuadriversession_call_tool(): number;
|
|
183
198
|
uniffi_cua_driver_sdk_checksum_method_cuadriversession_click(): number;
|
|
199
|
+
uniffi_cua_driver_sdk_checksum_method_cuadriversession_clipboard_read(): number;
|
|
200
|
+
uniffi_cua_driver_sdk_checksum_method_cuadriversession_clipboard_write(): number;
|
|
184
201
|
uniffi_cua_driver_sdk_checksum_method_cuadriversession_close(): number;
|
|
185
202
|
uniffi_cua_driver_sdk_checksum_method_cuadriversession_drag(): number;
|
|
186
203
|
uniffi_cua_driver_sdk_checksum_method_cuadriversession_end_session(): number;
|
|
@@ -191,14 +208,17 @@ interface NativeModuleInterface {
|
|
|
191
208
|
uniffi_cua_driver_sdk_checksum_method_cuadriversession_get_screen_size(): number;
|
|
192
209
|
uniffi_cua_driver_sdk_checksum_method_cuadriversession_get_session_state(): number;
|
|
193
210
|
uniffi_cua_driver_sdk_checksum_method_cuadriversession_hotkey(): number;
|
|
211
|
+
uniffi_cua_driver_sdk_checksum_method_cuadriversession_invoke_menu(): number;
|
|
194
212
|
uniffi_cua_driver_sdk_checksum_method_cuadriversession_move_cursor(): number;
|
|
195
213
|
uniffi_cua_driver_sdk_checksum_method_cuadriversession_press_key(): number;
|
|
196
214
|
uniffi_cua_driver_sdk_checksum_method_cuadriversession_scroll(): number;
|
|
197
215
|
uniffi_cua_driver_sdk_checksum_method_cuadriversession_set_agent_cursor_enabled(): number;
|
|
198
216
|
uniffi_cua_driver_sdk_checksum_method_cuadriversession_set_agent_cursor_motion(): number;
|
|
199
217
|
uniffi_cua_driver_sdk_checksum_method_cuadriversession_set_agent_cursor_theme(): number;
|
|
218
|
+
uniffi_cua_driver_sdk_checksum_method_cuadriversession_set_window_frame(): number;
|
|
200
219
|
uniffi_cua_driver_sdk_checksum_method_cuadriversession_start_session(): number;
|
|
201
220
|
uniffi_cua_driver_sdk_checksum_method_cuadriversession_type_text(): number;
|
|
221
|
+
uniffi_cua_driver_sdk_checksum_method_cuadriversession_verify_state(): number;
|
|
202
222
|
uniffi_cua_driver_sdk_checksum_method_driveractivityobserver_on_activity(): number;
|
|
203
223
|
uniffi_cua_driver_sdk_checksum_method_driverauthorizationhost_authorize(): number;
|
|
204
224
|
uniffi_cua_driver_sdk_checksum_constructor_embeddedcuadriverhost_new(): number;
|
|
@@ -412,6 +412,16 @@ const DEFINITIONS = {
|
|
|
412
412
|
ret: FfiType.Handle,
|
|
413
413
|
hasRustCallStatus: false,
|
|
414
414
|
},
|
|
415
|
+
"uniffi_cua_driver_sdk_fn_method_cuadriver_clipboard_read": {
|
|
416
|
+
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
417
|
+
ret: FfiType.Handle,
|
|
418
|
+
hasRustCallStatus: false,
|
|
419
|
+
},
|
|
420
|
+
"uniffi_cua_driver_sdk_fn_method_cuadriver_clipboard_write": {
|
|
421
|
+
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
422
|
+
ret: FfiType.Handle,
|
|
423
|
+
hasRustCallStatus: false,
|
|
424
|
+
},
|
|
415
425
|
"uniffi_cua_driver_sdk_fn_method_cuadriver_drag": {
|
|
416
426
|
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
417
427
|
ret: FfiType.Handle,
|
|
@@ -462,6 +472,11 @@ const DEFINITIONS = {
|
|
|
462
472
|
ret: FfiType.Handle,
|
|
463
473
|
hasRustCallStatus: false,
|
|
464
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
|
+
},
|
|
465
480
|
"uniffi_cua_driver_sdk_fn_method_cuadriver_is_available": {
|
|
466
481
|
args: [FfiType.Handle],
|
|
467
482
|
ret: FfiType.Int8,
|
|
@@ -512,6 +527,11 @@ const DEFINITIONS = {
|
|
|
512
527
|
ret: FfiType.Handle,
|
|
513
528
|
hasRustCallStatus: false,
|
|
514
529
|
},
|
|
530
|
+
"uniffi_cua_driver_sdk_fn_method_cuadriver_set_window_frame": {
|
|
531
|
+
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
532
|
+
ret: FfiType.Handle,
|
|
533
|
+
hasRustCallStatus: false,
|
|
534
|
+
},
|
|
515
535
|
"uniffi_cua_driver_sdk_fn_method_cuadriver_shutdown": {
|
|
516
536
|
args: [FfiType.Handle],
|
|
517
537
|
ret: FfiType.Handle,
|
|
@@ -532,6 +552,11 @@ const DEFINITIONS = {
|
|
|
532
552
|
ret: FfiType.Handle,
|
|
533
553
|
hasRustCallStatus: false,
|
|
534
554
|
},
|
|
555
|
+
"uniffi_cua_driver_sdk_fn_method_cuadriver_verify_state": {
|
|
556
|
+
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
557
|
+
ret: FfiType.Handle,
|
|
558
|
+
hasRustCallStatus: false,
|
|
559
|
+
},
|
|
535
560
|
"uniffi_cua_driver_sdk_fn_method_cuadriversession_call_tool": {
|
|
536
561
|
args: [FfiType.Handle, FfiType.RustBuffer, FfiType.RustBuffer],
|
|
537
562
|
ret: FfiType.Handle,
|
|
@@ -542,6 +567,16 @@ const DEFINITIONS = {
|
|
|
542
567
|
ret: FfiType.Handle,
|
|
543
568
|
hasRustCallStatus: false,
|
|
544
569
|
},
|
|
570
|
+
"uniffi_cua_driver_sdk_fn_method_cuadriversession_clipboard_read": {
|
|
571
|
+
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
572
|
+
ret: FfiType.Handle,
|
|
573
|
+
hasRustCallStatus: false,
|
|
574
|
+
},
|
|
575
|
+
"uniffi_cua_driver_sdk_fn_method_cuadriversession_clipboard_write": {
|
|
576
|
+
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
577
|
+
ret: FfiType.Handle,
|
|
578
|
+
hasRustCallStatus: false,
|
|
579
|
+
},
|
|
545
580
|
"uniffi_cua_driver_sdk_fn_method_cuadriversession_close": {
|
|
546
581
|
args: [FfiType.Handle],
|
|
547
582
|
ret: FfiType.Void,
|
|
@@ -592,6 +627,11 @@ const DEFINITIONS = {
|
|
|
592
627
|
ret: FfiType.Handle,
|
|
593
628
|
hasRustCallStatus: false,
|
|
594
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
|
+
},
|
|
595
635
|
"uniffi_cua_driver_sdk_fn_method_cuadriversession_move_cursor": {
|
|
596
636
|
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
597
637
|
ret: FfiType.Handle,
|
|
@@ -622,6 +662,11 @@ const DEFINITIONS = {
|
|
|
622
662
|
ret: FfiType.Handle,
|
|
623
663
|
hasRustCallStatus: false,
|
|
624
664
|
},
|
|
665
|
+
"uniffi_cua_driver_sdk_fn_method_cuadriversession_set_window_frame": {
|
|
666
|
+
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
667
|
+
ret: FfiType.Handle,
|
|
668
|
+
hasRustCallStatus: false,
|
|
669
|
+
},
|
|
625
670
|
"uniffi_cua_driver_sdk_fn_method_cuadriversession_start_session": {
|
|
626
671
|
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
627
672
|
ret: FfiType.Handle,
|
|
@@ -632,6 +677,11 @@ const DEFINITIONS = {
|
|
|
632
677
|
ret: FfiType.Handle,
|
|
633
678
|
hasRustCallStatus: false,
|
|
634
679
|
},
|
|
680
|
+
"uniffi_cua_driver_sdk_fn_method_cuadriversession_verify_state": {
|
|
681
|
+
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
682
|
+
ret: FfiType.Handle,
|
|
683
|
+
hasRustCallStatus: false,
|
|
684
|
+
},
|
|
635
685
|
"uniffi_cua_driver_sdk_fn_method_driveractivityobserver_on_activity": {
|
|
636
686
|
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
637
687
|
ret: FfiType.Void,
|
|
@@ -787,6 +837,16 @@ const DEFINITIONS = {
|
|
|
787
837
|
ret: FfiType.UInt16,
|
|
788
838
|
hasRustCallStatus: false,
|
|
789
839
|
},
|
|
840
|
+
"uniffi_cua_driver_sdk_checksum_method_cuadriver_clipboard_read": {
|
|
841
|
+
args: [],
|
|
842
|
+
ret: FfiType.UInt16,
|
|
843
|
+
hasRustCallStatus: false,
|
|
844
|
+
},
|
|
845
|
+
"uniffi_cua_driver_sdk_checksum_method_cuadriver_clipboard_write": {
|
|
846
|
+
args: [],
|
|
847
|
+
ret: FfiType.UInt16,
|
|
848
|
+
hasRustCallStatus: false,
|
|
849
|
+
},
|
|
790
850
|
"uniffi_cua_driver_sdk_checksum_method_cuadriver_drag": {
|
|
791
851
|
args: [],
|
|
792
852
|
ret: FfiType.UInt16,
|
|
@@ -837,6 +897,11 @@ const DEFINITIONS = {
|
|
|
837
897
|
ret: FfiType.UInt16,
|
|
838
898
|
hasRustCallStatus: false,
|
|
839
899
|
},
|
|
900
|
+
"uniffi_cua_driver_sdk_checksum_method_cuadriver_invoke_menu": {
|
|
901
|
+
args: [],
|
|
902
|
+
ret: FfiType.UInt16,
|
|
903
|
+
hasRustCallStatus: false,
|
|
904
|
+
},
|
|
840
905
|
"uniffi_cua_driver_sdk_checksum_method_cuadriver_is_available": {
|
|
841
906
|
args: [],
|
|
842
907
|
ret: FfiType.UInt16,
|
|
@@ -887,6 +952,11 @@ const DEFINITIONS = {
|
|
|
887
952
|
ret: FfiType.UInt16,
|
|
888
953
|
hasRustCallStatus: false,
|
|
889
954
|
},
|
|
955
|
+
"uniffi_cua_driver_sdk_checksum_method_cuadriver_set_window_frame": {
|
|
956
|
+
args: [],
|
|
957
|
+
ret: FfiType.UInt16,
|
|
958
|
+
hasRustCallStatus: false,
|
|
959
|
+
},
|
|
890
960
|
"uniffi_cua_driver_sdk_checksum_method_cuadriver_shutdown": {
|
|
891
961
|
args: [],
|
|
892
962
|
ret: FfiType.UInt16,
|
|
@@ -907,6 +977,11 @@ const DEFINITIONS = {
|
|
|
907
977
|
ret: FfiType.UInt16,
|
|
908
978
|
hasRustCallStatus: false,
|
|
909
979
|
},
|
|
980
|
+
"uniffi_cua_driver_sdk_checksum_method_cuadriver_verify_state": {
|
|
981
|
+
args: [],
|
|
982
|
+
ret: FfiType.UInt16,
|
|
983
|
+
hasRustCallStatus: false,
|
|
984
|
+
},
|
|
910
985
|
"uniffi_cua_driver_sdk_checksum_method_cuadriversession_call_tool": {
|
|
911
986
|
args: [],
|
|
912
987
|
ret: FfiType.UInt16,
|
|
@@ -917,6 +992,16 @@ const DEFINITIONS = {
|
|
|
917
992
|
ret: FfiType.UInt16,
|
|
918
993
|
hasRustCallStatus: false,
|
|
919
994
|
},
|
|
995
|
+
"uniffi_cua_driver_sdk_checksum_method_cuadriversession_clipboard_read": {
|
|
996
|
+
args: [],
|
|
997
|
+
ret: FfiType.UInt16,
|
|
998
|
+
hasRustCallStatus: false,
|
|
999
|
+
},
|
|
1000
|
+
"uniffi_cua_driver_sdk_checksum_method_cuadriversession_clipboard_write": {
|
|
1001
|
+
args: [],
|
|
1002
|
+
ret: FfiType.UInt16,
|
|
1003
|
+
hasRustCallStatus: false,
|
|
1004
|
+
},
|
|
920
1005
|
"uniffi_cua_driver_sdk_checksum_method_cuadriversession_close": {
|
|
921
1006
|
args: [],
|
|
922
1007
|
ret: FfiType.UInt16,
|
|
@@ -967,6 +1052,11 @@ const DEFINITIONS = {
|
|
|
967
1052
|
ret: FfiType.UInt16,
|
|
968
1053
|
hasRustCallStatus: false,
|
|
969
1054
|
},
|
|
1055
|
+
"uniffi_cua_driver_sdk_checksum_method_cuadriversession_invoke_menu": {
|
|
1056
|
+
args: [],
|
|
1057
|
+
ret: FfiType.UInt16,
|
|
1058
|
+
hasRustCallStatus: false,
|
|
1059
|
+
},
|
|
970
1060
|
"uniffi_cua_driver_sdk_checksum_method_cuadriversession_move_cursor": {
|
|
971
1061
|
args: [],
|
|
972
1062
|
ret: FfiType.UInt16,
|
|
@@ -997,6 +1087,11 @@ const DEFINITIONS = {
|
|
|
997
1087
|
ret: FfiType.UInt16,
|
|
998
1088
|
hasRustCallStatus: false,
|
|
999
1089
|
},
|
|
1090
|
+
"uniffi_cua_driver_sdk_checksum_method_cuadriversession_set_window_frame": {
|
|
1091
|
+
args: [],
|
|
1092
|
+
ret: FfiType.UInt16,
|
|
1093
|
+
hasRustCallStatus: false,
|
|
1094
|
+
},
|
|
1000
1095
|
"uniffi_cua_driver_sdk_checksum_method_cuadriversession_start_session": {
|
|
1001
1096
|
args: [],
|
|
1002
1097
|
ret: FfiType.UInt16,
|
|
@@ -1007,6 +1102,11 @@ const DEFINITIONS = {
|
|
|
1007
1102
|
ret: FfiType.UInt16,
|
|
1008
1103
|
hasRustCallStatus: false,
|
|
1009
1104
|
},
|
|
1105
|
+
"uniffi_cua_driver_sdk_checksum_method_cuadriversession_verify_state": {
|
|
1106
|
+
args: [],
|
|
1107
|
+
ret: FfiType.UInt16,
|
|
1108
|
+
hasRustCallStatus: false,
|
|
1109
|
+
},
|
|
1010
1110
|
"uniffi_cua_driver_sdk_checksum_method_driveractivityobserver_on_activity": {
|
|
1011
1111
|
args: [],
|
|
1012
1112
|
ret: FfiType.UInt16,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ClickInput, 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 StartSessionInput, type StartSessionOutput, type TypeTextInput } 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.
|
|
@@ -323,7 +323,8 @@ export type ToolResult = {
|
|
|
323
323
|
structuredJson?: string;
|
|
324
324
|
isError: boolean;
|
|
325
325
|
errorCode?: string;
|
|
326
|
-
|
|
326
|
+
action?: ActionResult;
|
|
327
|
+
verification?: VerifyStateOutput;
|
|
327
328
|
degraded: boolean;
|
|
328
329
|
rawJson: string;
|
|
329
330
|
};
|
|
@@ -331,8 +332,8 @@ export type ToolResult = {
|
|
|
331
332
|
* Generated factory for {@link ToolResult} record objects.
|
|
332
333
|
*/
|
|
333
334
|
export declare const ToolResult: Readonly<{
|
|
334
|
-
create: (partial: Partial<ToolResult> & Required<Omit<ToolResult, "errorCode" | "structuredJson" | "
|
|
335
|
-
new: (partial: Partial<ToolResult> & Required<Omit<ToolResult, "errorCode" | "structuredJson" | "
|
|
335
|
+
create: (partial: Partial<ToolResult> & Required<Omit<ToolResult, "errorCode" | "action" | "structuredJson" | "verification">>) => ToolResult;
|
|
336
|
+
new: (partial: Partial<ToolResult> & Required<Omit<ToolResult, "errorCode" | "action" | "structuredJson" | "verification">>) => ToolResult;
|
|
336
337
|
defaults: () => Partial<ToolResult>;
|
|
337
338
|
}>;
|
|
338
339
|
/**
|
|
@@ -2022,6 +2023,12 @@ export interface CuaDriverLike {
|
|
|
2022
2023
|
click(input: ClickInput, asyncOpts_?: {
|
|
2023
2024
|
signal: AbortSignal;
|
|
2024
2025
|
}): Promise<ToolResult>;
|
|
2026
|
+
clipboardRead(input: ClipboardReadInput, asyncOpts_?: {
|
|
2027
|
+
signal: AbortSignal;
|
|
2028
|
+
}): Promise<ToolResult>;
|
|
2029
|
+
clipboardWrite(input: ClipboardWriteInput, asyncOpts_?: {
|
|
2030
|
+
signal: AbortSignal;
|
|
2031
|
+
}): Promise<ToolResult>;
|
|
2025
2032
|
drag(input: DragInput, asyncOpts_?: {
|
|
2026
2033
|
signal: AbortSignal;
|
|
2027
2034
|
}): Promise<ToolResult>;
|
|
@@ -2050,6 +2057,9 @@ export interface CuaDriverLike {
|
|
|
2050
2057
|
hotkey(input: HotkeyInput, asyncOpts_?: {
|
|
2051
2058
|
signal: AbortSignal;
|
|
2052
2059
|
}): Promise<ToolResult>;
|
|
2060
|
+
invokeMenu(input: InvokeMenuInput, asyncOpts_?: {
|
|
2061
|
+
signal: AbortSignal;
|
|
2062
|
+
}): Promise<ToolResult>;
|
|
2053
2063
|
isAvailable(): boolean;
|
|
2054
2064
|
/**
|
|
2055
2065
|
* Canonical tool inventory for MCP and other protocol adapters.
|
|
@@ -2079,6 +2089,9 @@ export interface CuaDriverLike {
|
|
|
2079
2089
|
setAgentCursorTheme(input: SetAgentCursorThemeInput, asyncOpts_?: {
|
|
2080
2090
|
signal: AbortSignal;
|
|
2081
2091
|
}): Promise<ToolResult>;
|
|
2092
|
+
setWindowFrame(input: SetWindowFrameInput, asyncOpts_?: {
|
|
2093
|
+
signal: AbortSignal;
|
|
2094
|
+
}): Promise<ToolResult>;
|
|
2082
2095
|
/**
|
|
2083
2096
|
* Stop accepting new embedded operations. Repeated calls are harmless;
|
|
2084
2097
|
* daemon compatibility clients do not own the daemon and therefore no-op.
|
|
@@ -2097,6 +2110,9 @@ export interface CuaDriverLike {
|
|
|
2097
2110
|
typeText(input: TypeTextInput, asyncOpts_?: {
|
|
2098
2111
|
signal: AbortSignal;
|
|
2099
2112
|
}): Promise<ToolResult>;
|
|
2113
|
+
verifyState(input: VerifyStateInput, asyncOpts_?: {
|
|
2114
|
+
signal: AbortSignal;
|
|
2115
|
+
}): Promise<ToolResult>;
|
|
2100
2116
|
}
|
|
2101
2117
|
/**
|
|
2102
2118
|
* @deprecated Use `CuaDriverLike` instead.
|
|
@@ -2192,6 +2208,12 @@ export declare class CuaDriver extends UniffiAbstractObject implements CuaDriver
|
|
|
2192
2208
|
click(input: ClickInput, asyncOpts_?: {
|
|
2193
2209
|
signal: AbortSignal;
|
|
2194
2210
|
}): Promise<ToolResult>;
|
|
2211
|
+
clipboardRead(input: ClipboardReadInput, asyncOpts_?: {
|
|
2212
|
+
signal: AbortSignal;
|
|
2213
|
+
}): Promise<ToolResult>;
|
|
2214
|
+
clipboardWrite(input: ClipboardWriteInput, asyncOpts_?: {
|
|
2215
|
+
signal: AbortSignal;
|
|
2216
|
+
}): Promise<ToolResult>;
|
|
2195
2217
|
drag(input: DragInput, asyncOpts_?: {
|
|
2196
2218
|
signal: AbortSignal;
|
|
2197
2219
|
}): Promise<ToolResult>;
|
|
@@ -2220,6 +2242,9 @@ export declare class CuaDriver extends UniffiAbstractObject implements CuaDriver
|
|
|
2220
2242
|
hotkey(input: HotkeyInput, asyncOpts_?: {
|
|
2221
2243
|
signal: AbortSignal;
|
|
2222
2244
|
}): Promise<ToolResult>;
|
|
2245
|
+
invokeMenu(input: InvokeMenuInput, asyncOpts_?: {
|
|
2246
|
+
signal: AbortSignal;
|
|
2247
|
+
}): Promise<ToolResult>;
|
|
2223
2248
|
isAvailable(): boolean;
|
|
2224
2249
|
/**
|
|
2225
2250
|
* Canonical tool inventory for MCP and other protocol adapters.
|
|
@@ -2249,6 +2274,9 @@ export declare class CuaDriver extends UniffiAbstractObject implements CuaDriver
|
|
|
2249
2274
|
setAgentCursorTheme(input: SetAgentCursorThemeInput, asyncOpts_?: {
|
|
2250
2275
|
signal: AbortSignal;
|
|
2251
2276
|
}): Promise<ToolResult>;
|
|
2277
|
+
setWindowFrame(input: SetWindowFrameInput, asyncOpts_?: {
|
|
2278
|
+
signal: AbortSignal;
|
|
2279
|
+
}): Promise<ToolResult>;
|
|
2252
2280
|
/**
|
|
2253
2281
|
* Stop accepting new embedded operations. Repeated calls are harmless;
|
|
2254
2282
|
* daemon compatibility clients do not own the daemon and therefore no-op.
|
|
@@ -2267,6 +2295,9 @@ export declare class CuaDriver extends UniffiAbstractObject implements CuaDriver
|
|
|
2267
2295
|
typeText(input: TypeTextInput, asyncOpts_?: {
|
|
2268
2296
|
signal: AbortSignal;
|
|
2269
2297
|
}): Promise<ToolResult>;
|
|
2298
|
+
verifyState(input: VerifyStateInput, asyncOpts_?: {
|
|
2299
|
+
signal: AbortSignal;
|
|
2300
|
+
}): Promise<ToolResult>;
|
|
2270
2301
|
uniffiDestroy(): void;
|
|
2271
2302
|
static instanceOf(obj_: any): obj_ is CuaDriver;
|
|
2272
2303
|
}
|
|
@@ -2277,6 +2308,12 @@ export interface CuaDriverSessionLike {
|
|
|
2277
2308
|
click(input: ClickInput, asyncOpts_?: {
|
|
2278
2309
|
signal: AbortSignal;
|
|
2279
2310
|
}): Promise<ToolResult>;
|
|
2311
|
+
clipboardRead(input: ClipboardReadInput, asyncOpts_?: {
|
|
2312
|
+
signal: AbortSignal;
|
|
2313
|
+
}): Promise<ToolResult>;
|
|
2314
|
+
clipboardWrite(input: ClipboardWriteInput, asyncOpts_?: {
|
|
2315
|
+
signal: AbortSignal;
|
|
2316
|
+
}): Promise<ToolResult>;
|
|
2280
2317
|
/**
|
|
2281
2318
|
* Revoke the session-bound authority and release its native handle.
|
|
2282
2319
|
*
|
|
@@ -2311,6 +2348,9 @@ export interface CuaDriverSessionLike {
|
|
|
2311
2348
|
hotkey(input: HotkeyInput, asyncOpts_?: {
|
|
2312
2349
|
signal: AbortSignal;
|
|
2313
2350
|
}): Promise<ToolResult>;
|
|
2351
|
+
invokeMenu(input: InvokeMenuInput, asyncOpts_?: {
|
|
2352
|
+
signal: AbortSignal;
|
|
2353
|
+
}): Promise<ToolResult>;
|
|
2314
2354
|
moveCursor(input: MoveCursorInput, asyncOpts_?: {
|
|
2315
2355
|
signal: AbortSignal;
|
|
2316
2356
|
}): Promise<ToolResult>;
|
|
@@ -2329,12 +2369,18 @@ export interface CuaDriverSessionLike {
|
|
|
2329
2369
|
setAgentCursorTheme(input: SetAgentCursorThemeInput, asyncOpts_?: {
|
|
2330
2370
|
signal: AbortSignal;
|
|
2331
2371
|
}): Promise<ToolResult>;
|
|
2372
|
+
setWindowFrame(input: SetWindowFrameInput, asyncOpts_?: {
|
|
2373
|
+
signal: AbortSignal;
|
|
2374
|
+
}): Promise<ToolResult>;
|
|
2332
2375
|
startSession(input: StartSessionInput, asyncOpts_?: {
|
|
2333
2376
|
signal: AbortSignal;
|
|
2334
2377
|
}): Promise<StartSessionOutput>;
|
|
2335
2378
|
typeText(input: TypeTextInput, asyncOpts_?: {
|
|
2336
2379
|
signal: AbortSignal;
|
|
2337
2380
|
}): Promise<ToolResult>;
|
|
2381
|
+
verifyState(input: VerifyStateInput, asyncOpts_?: {
|
|
2382
|
+
signal: AbortSignal;
|
|
2383
|
+
}): Promise<ToolResult>;
|
|
2338
2384
|
}
|
|
2339
2385
|
/**
|
|
2340
2386
|
* @deprecated Use `CuaDriverSessionLike` instead.
|
|
@@ -2351,6 +2397,12 @@ export declare class CuaDriverSession extends UniffiAbstractObject implements Cu
|
|
|
2351
2397
|
click(input: ClickInput, asyncOpts_?: {
|
|
2352
2398
|
signal: AbortSignal;
|
|
2353
2399
|
}): Promise<ToolResult>;
|
|
2400
|
+
clipboardRead(input: ClipboardReadInput, asyncOpts_?: {
|
|
2401
|
+
signal: AbortSignal;
|
|
2402
|
+
}): Promise<ToolResult>;
|
|
2403
|
+
clipboardWrite(input: ClipboardWriteInput, asyncOpts_?: {
|
|
2404
|
+
signal: AbortSignal;
|
|
2405
|
+
}): Promise<ToolResult>;
|
|
2354
2406
|
/**
|
|
2355
2407
|
* Revoke the session-bound authority and release its native handle.
|
|
2356
2408
|
*
|
|
@@ -2385,6 +2437,9 @@ export declare class CuaDriverSession extends UniffiAbstractObject implements Cu
|
|
|
2385
2437
|
hotkey(input: HotkeyInput, asyncOpts_?: {
|
|
2386
2438
|
signal: AbortSignal;
|
|
2387
2439
|
}): Promise<ToolResult>;
|
|
2440
|
+
invokeMenu(input: InvokeMenuInput, asyncOpts_?: {
|
|
2441
|
+
signal: AbortSignal;
|
|
2442
|
+
}): Promise<ToolResult>;
|
|
2388
2443
|
moveCursor(input: MoveCursorInput, asyncOpts_?: {
|
|
2389
2444
|
signal: AbortSignal;
|
|
2390
2445
|
}): Promise<ToolResult>;
|
|
@@ -2403,12 +2458,18 @@ export declare class CuaDriverSession extends UniffiAbstractObject implements Cu
|
|
|
2403
2458
|
setAgentCursorTheme(input: SetAgentCursorThemeInput, asyncOpts_?: {
|
|
2404
2459
|
signal: AbortSignal;
|
|
2405
2460
|
}): Promise<ToolResult>;
|
|
2461
|
+
setWindowFrame(input: SetWindowFrameInput, asyncOpts_?: {
|
|
2462
|
+
signal: AbortSignal;
|
|
2463
|
+
}): Promise<ToolResult>;
|
|
2406
2464
|
startSession(input: StartSessionInput, asyncOpts_?: {
|
|
2407
2465
|
signal: AbortSignal;
|
|
2408
2466
|
}): Promise<StartSessionOutput>;
|
|
2409
2467
|
typeText(input: TypeTextInput, asyncOpts_?: {
|
|
2410
2468
|
signal: AbortSignal;
|
|
2411
2469
|
}): Promise<ToolResult>;
|
|
2470
|
+
verifyState(input: VerifyStateInput, asyncOpts_?: {
|
|
2471
|
+
signal: AbortSignal;
|
|
2472
|
+
}): Promise<ToolResult>;
|
|
2412
2473
|
uniffiDestroy(): void;
|
|
2413
2474
|
static instanceOf(obj_: any): obj_ is CuaDriverSession;
|
|
2414
2475
|
}
|