@trycua/cua-driver 0.11.0 → 0.12.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/README.md +37 -17
- package/dist/index.d.ts +0 -6
- package/dist/index.js +6 -0
- package/dist/native/cua_driver_contract-ffi.js +1 -1
- package/dist/native/cua_driver_sdk-ffi.d.ts +27 -17
- package/dist/native/cua_driver_sdk-ffi.js +83 -33
- package/dist/native/cua_driver_sdk.d.ts +265 -41
- package/dist/native/cua_driver_sdk.js +689 -222
- package/dist/native/node-runtime.d.ts +72 -0
- package/dist/native/node-runtime.js +35 -0
- package/package.json +11 -11
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ Rust-backed TypeScript/Node SDK for Cua Driver client applications.
|
|
|
4
4
|
|
|
5
5
|
## Product boundary
|
|
6
6
|
|
|
7
|
-
The package root exposes the native
|
|
7
|
+
The package root exposes the native SDK:
|
|
8
8
|
|
|
9
9
|
```ts
|
|
10
10
|
import { CuaDriver } from "@trycua/cua-driver"
|
|
@@ -21,10 +21,10 @@ runtime-neutral MCP clients and should configure the executable directly:
|
|
|
21
21
|
cua-driver mcp
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
-
The removed pre-release MCP facade used `CuaDriver.stdio()`,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
The removed pre-release MCP facade used `CuaDriver.stdio()`, `*Args`
|
|
25
|
+
interfaces, and a TypeScript stdio transport. Application code imports the
|
|
26
|
+
typed Rust-backed SDK shown below; agent code supplies `cua-driver mcp` to its
|
|
27
|
+
agent SDK.
|
|
28
28
|
|
|
29
29
|
## SDK example
|
|
30
30
|
|
|
@@ -37,8 +37,8 @@ import {
|
|
|
37
37
|
StartSessionInput,
|
|
38
38
|
} from "@trycua/cua-driver"
|
|
39
39
|
|
|
40
|
-
const driver = CuaDriver.
|
|
41
|
-
driver.startSession(
|
|
40
|
+
const driver = CuaDriver.create(undefined) // same process; no daemon
|
|
41
|
+
await driver.startSession(
|
|
42
42
|
StartSessionInput.new({
|
|
43
43
|
session: "demo",
|
|
44
44
|
captureScope: CaptureScope.Desktop,
|
|
@@ -46,27 +46,38 @@ driver.startSession(
|
|
|
46
46
|
)
|
|
47
47
|
|
|
48
48
|
try {
|
|
49
|
-
const desktop = driver.getDesktopState(
|
|
49
|
+
const desktop = await driver.getDesktopState(
|
|
50
50
|
GetDesktopStateInput.new({ session: "demo" }),
|
|
51
51
|
)
|
|
52
52
|
console.log(desktop.images[0]?.mimeType)
|
|
53
53
|
} finally {
|
|
54
|
-
driver.endSession(EndSessionInput.new({ session: "demo" }))
|
|
54
|
+
await driver.endSession(EndSessionInput.new({ session: "demo" }))
|
|
55
|
+
await driver.shutdown()
|
|
55
56
|
driver.uniffiDestroy()
|
|
56
57
|
}
|
|
57
58
|
```
|
|
58
59
|
|
|
59
|
-
|
|
60
|
-
|
|
60
|
+
SDK operations are asynchronous and require a native library matching the host
|
|
61
|
+
OS and architecture. The macOS native package requires macOS 13 or newer.
|
|
62
|
+
Desktop calls return a typed `ToolResult` with text,
|
|
61
63
|
images, verification/error metadata, and `structuredJson` / `rawJson` for
|
|
62
|
-
platform-extensible results. Session lifecycle calls return dedicated
|
|
63
|
-
|
|
64
|
+
platform-extensible results. Session lifecycle calls return dedicated generated
|
|
65
|
+
records.
|
|
64
66
|
|
|
65
|
-
|
|
67
|
+
`CuaDriver.connect(socketPath)` remains available while existing applications
|
|
68
|
+
migrate. It exposes the same methods over the installed daemon, but it does not
|
|
69
|
+
provide a second SDK contract.
|
|
66
70
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
71
|
+
`shutdown()` closes admission, waits for already admitted operations to finish,
|
|
72
|
+
and is idempotent. Calls started after shutdown reject with `DriverError`.
|
|
73
|
+
`uniffiDestroy()` releases the binding handle, but orderly applications should
|
|
74
|
+
await `shutdown()` first.
|
|
75
|
+
|
|
76
|
+
## Daemon-backed MCP hosts
|
|
77
|
+
|
|
78
|
+
A signed desktop application that must also expose MCP to an external agent can
|
|
79
|
+
bundle `cua-driver`, start it as a direct child, and connect both application
|
|
80
|
+
code and its agent runtime to the same private daemon:
|
|
70
81
|
|
|
71
82
|
```ts
|
|
72
83
|
import { CuaDriver, EmbeddedCuaDriverHost } from "@trycua/cua-driver"
|
|
@@ -129,3 +140,12 @@ The npm package installs one optional native package selected for the current
|
|
|
129
140
|
OS and CPU. It does not bundle the `cua-driver` executable: ship that executable
|
|
130
141
|
outside ASAR, preserve its executable bit, and sign it before signing and
|
|
131
142
|
notarizing the enclosing app.
|
|
143
|
+
|
|
144
|
+
Each native package also carries Cua's copy-mode build of the pinned
|
|
145
|
+
`@ubjs/node` N-API runtime. Upstream `0.31.0-3` returns Rust-owned memory through
|
|
146
|
+
external ArrayBuffers, which Electron 20 and newer intentionally reject because
|
|
147
|
+
of V8's memory cage. The copy-mode runtime keeps the generated UniFFI API and
|
|
148
|
+
RustBuffer ownership contract unchanged, but copies at the native/JavaScript
|
|
149
|
+
boundary before freeing Rust-owned return buffers. Regular Node and Electron
|
|
150
|
+
therefore receive the same values; Electron hosts do not need to spawn or
|
|
151
|
+
configure the private daemon themselves.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Rust-backed SDK for Cua Driver client applications.
|
|
3
|
-
*
|
|
4
|
-
* Agents should configure `cua-driver mcp` through their runtime's existing
|
|
5
|
-
* MCP client instead of importing a language MCP facade.
|
|
6
|
-
*/
|
|
7
1
|
export * from "./native/index.js";
|
|
8
2
|
export { default } from "./native/index.js";
|
package/dist/index.js
CHANGED
|
@@ -4,5 +4,11 @@
|
|
|
4
4
|
* Agents should configure `cua-driver mcp` through their runtime's existing
|
|
5
5
|
* MCP client instead of importing a language MCP facade.
|
|
6
6
|
*/
|
|
7
|
+
import { CuaDriver, SdkClientKind } from "./native/cua_driver_sdk.js";
|
|
8
|
+
// The same native library backs Python and TypeScript. The package root tags
|
|
9
|
+
// both the canonical same-process constructor and the temporary daemon
|
|
10
|
+
// compatibility constructor with the importing runtime.
|
|
11
|
+
CuaDriver.create = (options) => CuaDriver.createWithClientKind(options, SdkClientKind.Typescript);
|
|
12
|
+
CuaDriver.connect = (socketPath) => CuaDriver.connectWithClientKind(socketPath, SdkClientKind.Typescript);
|
|
7
13
|
export * from "./native/index.js";
|
|
8
14
|
export { default } from "./native/index.js";
|
|
@@ -56,25 +56,30 @@ interface NativeModuleInterface {
|
|
|
56
56
|
uniffi_cua_driver_sdk_fn_func_open_mac_os_screen_recording_settings(uniffi_out_err: UniffiRustCallStatus): void;
|
|
57
57
|
uniffi_cua_driver_sdk_fn_func_request_mac_os_permissions(uniffi_out_err: UniffiRustCallStatus): Uint8Array;
|
|
58
58
|
uniffi_cua_driver_sdk_fn_constructor_cuadriver_connect(socketPath: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
59
|
+
uniffi_cua_driver_sdk_fn_constructor_cuadriver_connect_with_client_kind(socketPath: Uint8Array, clientKind: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
60
|
+
uniffi_cua_driver_sdk_fn_constructor_cuadriver_create(options: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
61
|
+
uniffi_cua_driver_sdk_fn_constructor_cuadriver_create_with_client_kind(options: Uint8Array, clientKind: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
62
|
+
uniffi_cua_driver_sdk_fn_method_cuadriver_call_tool(uniffiSelf: bigint, name: Uint8Array, argumentsJson: Uint8Array): bigint;
|
|
63
|
+
uniffi_cua_driver_sdk_fn_method_cuadriver_click(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
64
|
+
uniffi_cua_driver_sdk_fn_method_cuadriver_drag(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
65
|
+
uniffi_cua_driver_sdk_fn_method_cuadriver_end_session(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
66
|
+
uniffi_cua_driver_sdk_fn_method_cuadriver_escalate_session(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
67
|
+
uniffi_cua_driver_sdk_fn_method_cuadriver_execution_mode(uniffiSelf: bigint, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
|
|
68
|
+
uniffi_cua_driver_sdk_fn_method_cuadriver_get_cursor_position(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
69
|
+
uniffi_cua_driver_sdk_fn_method_cuadriver_get_desktop_state(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
70
|
+
uniffi_cua_driver_sdk_fn_method_cuadriver_get_screen_size(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
71
|
+
uniffi_cua_driver_sdk_fn_method_cuadriver_get_session_state(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
72
|
+
uniffi_cua_driver_sdk_fn_method_cuadriver_hotkey(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
69
73
|
uniffi_cua_driver_sdk_fn_method_cuadriver_is_available(uniffiSelf: bigint, uniffi_out_err: UniffiRustCallStatus): number;
|
|
70
|
-
uniffi_cua_driver_sdk_fn_method_cuadriver_list_tools_json(uniffiSelf: bigint
|
|
71
|
-
uniffi_cua_driver_sdk_fn_method_cuadriver_metadata(uniffiSelf: bigint
|
|
72
|
-
uniffi_cua_driver_sdk_fn_method_cuadriver_move_cursor(uniffiSelf: bigint, input: Uint8Array
|
|
73
|
-
uniffi_cua_driver_sdk_fn_method_cuadriver_press_key(uniffiSelf: bigint, input: Uint8Array
|
|
74
|
-
uniffi_cua_driver_sdk_fn_method_cuadriver_scroll(uniffiSelf: bigint, input: Uint8Array
|
|
74
|
+
uniffi_cua_driver_sdk_fn_method_cuadriver_list_tools_json(uniffiSelf: bigint): bigint;
|
|
75
|
+
uniffi_cua_driver_sdk_fn_method_cuadriver_metadata(uniffiSelf: bigint): bigint;
|
|
76
|
+
uniffi_cua_driver_sdk_fn_method_cuadriver_move_cursor(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
77
|
+
uniffi_cua_driver_sdk_fn_method_cuadriver_press_key(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
78
|
+
uniffi_cua_driver_sdk_fn_method_cuadriver_scroll(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
79
|
+
uniffi_cua_driver_sdk_fn_method_cuadriver_shutdown(uniffiSelf: bigint): bigint;
|
|
75
80
|
uniffi_cua_driver_sdk_fn_method_cuadriver_socket_path(uniffiSelf: bigint, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
|
|
76
|
-
uniffi_cua_driver_sdk_fn_method_cuadriver_start_session(uniffiSelf: bigint, input: Uint8Array
|
|
77
|
-
uniffi_cua_driver_sdk_fn_method_cuadriver_type_text(uniffiSelf: bigint, input: Uint8Array
|
|
81
|
+
uniffi_cua_driver_sdk_fn_method_cuadriver_start_session(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
82
|
+
uniffi_cua_driver_sdk_fn_method_cuadriver_type_text(uniffiSelf: bigint, input: Uint8Array): bigint;
|
|
78
83
|
uniffi_cua_driver_sdk_fn_constructor_embeddedcuadriverhost_new(binaryPath: Uint8Array, hostBundleId: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
79
84
|
uniffi_cua_driver_sdk_fn_constructor_embeddedcuadriverhost_with_options(options: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
80
85
|
uniffi_cua_driver_sdk_fn_method_embeddedcuadriverhost_connection(uniffiSelf: bigint, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
|
|
@@ -88,11 +93,15 @@ interface NativeModuleInterface {
|
|
|
88
93
|
uniffi_cua_driver_sdk_checksum_func_open_mac_os_screen_recording_settings(): number;
|
|
89
94
|
uniffi_cua_driver_sdk_checksum_func_request_mac_os_permissions(): number;
|
|
90
95
|
uniffi_cua_driver_sdk_checksum_constructor_cuadriver_connect(): number;
|
|
96
|
+
uniffi_cua_driver_sdk_checksum_constructor_cuadriver_connect_with_client_kind(): number;
|
|
97
|
+
uniffi_cua_driver_sdk_checksum_constructor_cuadriver_create(): number;
|
|
98
|
+
uniffi_cua_driver_sdk_checksum_constructor_cuadriver_create_with_client_kind(): number;
|
|
91
99
|
uniffi_cua_driver_sdk_checksum_method_cuadriver_call_tool(): number;
|
|
92
100
|
uniffi_cua_driver_sdk_checksum_method_cuadriver_click(): number;
|
|
93
101
|
uniffi_cua_driver_sdk_checksum_method_cuadriver_drag(): number;
|
|
94
102
|
uniffi_cua_driver_sdk_checksum_method_cuadriver_end_session(): number;
|
|
95
103
|
uniffi_cua_driver_sdk_checksum_method_cuadriver_escalate_session(): number;
|
|
104
|
+
uniffi_cua_driver_sdk_checksum_method_cuadriver_execution_mode(): number;
|
|
96
105
|
uniffi_cua_driver_sdk_checksum_method_cuadriver_get_cursor_position(): number;
|
|
97
106
|
uniffi_cua_driver_sdk_checksum_method_cuadriver_get_desktop_state(): number;
|
|
98
107
|
uniffi_cua_driver_sdk_checksum_method_cuadriver_get_screen_size(): number;
|
|
@@ -104,6 +113,7 @@ interface NativeModuleInterface {
|
|
|
104
113
|
uniffi_cua_driver_sdk_checksum_method_cuadriver_move_cursor(): number;
|
|
105
114
|
uniffi_cua_driver_sdk_checksum_method_cuadriver_press_key(): number;
|
|
106
115
|
uniffi_cua_driver_sdk_checksum_method_cuadriver_scroll(): number;
|
|
116
|
+
uniffi_cua_driver_sdk_checksum_method_cuadriver_shutdown(): number;
|
|
107
117
|
uniffi_cua_driver_sdk_checksum_method_cuadriver_socket_path(): number;
|
|
108
118
|
uniffi_cua_driver_sdk_checksum_method_cuadriver_start_session(): number;
|
|
109
119
|
uniffi_cua_driver_sdk_checksum_method_cuadriver_type_text(): number;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
// @ts-nocheck
|
|
6
|
-
import lib from "
|
|
6
|
+
import lib from "./node-runtime.js";
|
|
7
7
|
const { UniffiNativeModule, FfiType, resolveLibPath } = lib;
|
|
8
8
|
const DEFINITIONS = {
|
|
9
9
|
symbols: {
|
|
@@ -292,55 +292,75 @@ const DEFINITIONS = {
|
|
|
292
292
|
ret: FfiType.Handle,
|
|
293
293
|
hasRustCallStatus: true,
|
|
294
294
|
},
|
|
295
|
+
"uniffi_cua_driver_sdk_fn_constructor_cuadriver_connect_with_client_kind": {
|
|
296
|
+
args: [FfiType.RustBuffer, FfiType.RustBuffer],
|
|
297
|
+
ret: FfiType.Handle,
|
|
298
|
+
hasRustCallStatus: true,
|
|
299
|
+
},
|
|
300
|
+
"uniffi_cua_driver_sdk_fn_constructor_cuadriver_create": {
|
|
301
|
+
args: [FfiType.RustBuffer],
|
|
302
|
+
ret: FfiType.Handle,
|
|
303
|
+
hasRustCallStatus: true,
|
|
304
|
+
},
|
|
305
|
+
"uniffi_cua_driver_sdk_fn_constructor_cuadriver_create_with_client_kind": {
|
|
306
|
+
args: [FfiType.RustBuffer, FfiType.RustBuffer],
|
|
307
|
+
ret: FfiType.Handle,
|
|
308
|
+
hasRustCallStatus: true,
|
|
309
|
+
},
|
|
295
310
|
"uniffi_cua_driver_sdk_fn_method_cuadriver_call_tool": {
|
|
296
311
|
args: [FfiType.Handle, FfiType.RustBuffer, FfiType.RustBuffer],
|
|
297
|
-
ret: FfiType.
|
|
298
|
-
hasRustCallStatus:
|
|
312
|
+
ret: FfiType.Handle,
|
|
313
|
+
hasRustCallStatus: false,
|
|
299
314
|
},
|
|
300
315
|
"uniffi_cua_driver_sdk_fn_method_cuadriver_click": {
|
|
301
316
|
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
302
|
-
ret: FfiType.
|
|
303
|
-
hasRustCallStatus:
|
|
317
|
+
ret: FfiType.Handle,
|
|
318
|
+
hasRustCallStatus: false,
|
|
304
319
|
},
|
|
305
320
|
"uniffi_cua_driver_sdk_fn_method_cuadriver_drag": {
|
|
306
321
|
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
307
|
-
ret: FfiType.
|
|
308
|
-
hasRustCallStatus:
|
|
322
|
+
ret: FfiType.Handle,
|
|
323
|
+
hasRustCallStatus: false,
|
|
309
324
|
},
|
|
310
325
|
"uniffi_cua_driver_sdk_fn_method_cuadriver_end_session": {
|
|
311
326
|
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
312
|
-
ret: FfiType.
|
|
313
|
-
hasRustCallStatus:
|
|
327
|
+
ret: FfiType.Handle,
|
|
328
|
+
hasRustCallStatus: false,
|
|
314
329
|
},
|
|
315
330
|
"uniffi_cua_driver_sdk_fn_method_cuadriver_escalate_session": {
|
|
316
331
|
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
332
|
+
ret: FfiType.Handle,
|
|
333
|
+
hasRustCallStatus: false,
|
|
334
|
+
},
|
|
335
|
+
"uniffi_cua_driver_sdk_fn_method_cuadriver_execution_mode": {
|
|
336
|
+
args: [FfiType.Handle],
|
|
317
337
|
ret: FfiType.RustBuffer,
|
|
318
338
|
hasRustCallStatus: true,
|
|
319
339
|
},
|
|
320
340
|
"uniffi_cua_driver_sdk_fn_method_cuadriver_get_cursor_position": {
|
|
321
341
|
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
322
|
-
ret: FfiType.
|
|
323
|
-
hasRustCallStatus:
|
|
342
|
+
ret: FfiType.Handle,
|
|
343
|
+
hasRustCallStatus: false,
|
|
324
344
|
},
|
|
325
345
|
"uniffi_cua_driver_sdk_fn_method_cuadriver_get_desktop_state": {
|
|
326
346
|
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
327
|
-
ret: FfiType.
|
|
328
|
-
hasRustCallStatus:
|
|
347
|
+
ret: FfiType.Handle,
|
|
348
|
+
hasRustCallStatus: false,
|
|
329
349
|
},
|
|
330
350
|
"uniffi_cua_driver_sdk_fn_method_cuadriver_get_screen_size": {
|
|
331
351
|
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
332
|
-
ret: FfiType.
|
|
333
|
-
hasRustCallStatus:
|
|
352
|
+
ret: FfiType.Handle,
|
|
353
|
+
hasRustCallStatus: false,
|
|
334
354
|
},
|
|
335
355
|
"uniffi_cua_driver_sdk_fn_method_cuadriver_get_session_state": {
|
|
336
356
|
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
337
|
-
ret: FfiType.
|
|
338
|
-
hasRustCallStatus:
|
|
357
|
+
ret: FfiType.Handle,
|
|
358
|
+
hasRustCallStatus: false,
|
|
339
359
|
},
|
|
340
360
|
"uniffi_cua_driver_sdk_fn_method_cuadriver_hotkey": {
|
|
341
361
|
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
342
|
-
ret: FfiType.
|
|
343
|
-
hasRustCallStatus:
|
|
362
|
+
ret: FfiType.Handle,
|
|
363
|
+
hasRustCallStatus: false,
|
|
344
364
|
},
|
|
345
365
|
"uniffi_cua_driver_sdk_fn_method_cuadriver_is_available": {
|
|
346
366
|
args: [FfiType.Handle],
|
|
@@ -349,28 +369,33 @@ const DEFINITIONS = {
|
|
|
349
369
|
},
|
|
350
370
|
"uniffi_cua_driver_sdk_fn_method_cuadriver_list_tools_json": {
|
|
351
371
|
args: [FfiType.Handle],
|
|
352
|
-
ret: FfiType.
|
|
353
|
-
hasRustCallStatus:
|
|
372
|
+
ret: FfiType.Handle,
|
|
373
|
+
hasRustCallStatus: false,
|
|
354
374
|
},
|
|
355
375
|
"uniffi_cua_driver_sdk_fn_method_cuadriver_metadata": {
|
|
356
376
|
args: [FfiType.Handle],
|
|
357
|
-
ret: FfiType.
|
|
358
|
-
hasRustCallStatus:
|
|
377
|
+
ret: FfiType.Handle,
|
|
378
|
+
hasRustCallStatus: false,
|
|
359
379
|
},
|
|
360
380
|
"uniffi_cua_driver_sdk_fn_method_cuadriver_move_cursor": {
|
|
361
381
|
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
362
|
-
ret: FfiType.
|
|
363
|
-
hasRustCallStatus:
|
|
382
|
+
ret: FfiType.Handle,
|
|
383
|
+
hasRustCallStatus: false,
|
|
364
384
|
},
|
|
365
385
|
"uniffi_cua_driver_sdk_fn_method_cuadriver_press_key": {
|
|
366
386
|
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
367
|
-
ret: FfiType.
|
|
368
|
-
hasRustCallStatus:
|
|
387
|
+
ret: FfiType.Handle,
|
|
388
|
+
hasRustCallStatus: false,
|
|
369
389
|
},
|
|
370
390
|
"uniffi_cua_driver_sdk_fn_method_cuadriver_scroll": {
|
|
371
391
|
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
372
|
-
ret: FfiType.
|
|
373
|
-
hasRustCallStatus:
|
|
392
|
+
ret: FfiType.Handle,
|
|
393
|
+
hasRustCallStatus: false,
|
|
394
|
+
},
|
|
395
|
+
"uniffi_cua_driver_sdk_fn_method_cuadriver_shutdown": {
|
|
396
|
+
args: [FfiType.Handle],
|
|
397
|
+
ret: FfiType.Handle,
|
|
398
|
+
hasRustCallStatus: false,
|
|
374
399
|
},
|
|
375
400
|
"uniffi_cua_driver_sdk_fn_method_cuadriver_socket_path": {
|
|
376
401
|
args: [FfiType.Handle],
|
|
@@ -379,13 +404,13 @@ const DEFINITIONS = {
|
|
|
379
404
|
},
|
|
380
405
|
"uniffi_cua_driver_sdk_fn_method_cuadriver_start_session": {
|
|
381
406
|
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
382
|
-
ret: FfiType.
|
|
383
|
-
hasRustCallStatus:
|
|
407
|
+
ret: FfiType.Handle,
|
|
408
|
+
hasRustCallStatus: false,
|
|
384
409
|
},
|
|
385
410
|
"uniffi_cua_driver_sdk_fn_method_cuadriver_type_text": {
|
|
386
411
|
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
387
|
-
ret: FfiType.
|
|
388
|
-
hasRustCallStatus:
|
|
412
|
+
ret: FfiType.Handle,
|
|
413
|
+
hasRustCallStatus: false,
|
|
389
414
|
},
|
|
390
415
|
"uniffi_cua_driver_sdk_fn_constructor_embeddedcuadriverhost_new": {
|
|
391
416
|
args: [FfiType.RustBuffer, FfiType.RustBuffer],
|
|
@@ -452,6 +477,21 @@ const DEFINITIONS = {
|
|
|
452
477
|
ret: FfiType.UInt16,
|
|
453
478
|
hasRustCallStatus: false,
|
|
454
479
|
},
|
|
480
|
+
"uniffi_cua_driver_sdk_checksum_constructor_cuadriver_connect_with_client_kind": {
|
|
481
|
+
args: [],
|
|
482
|
+
ret: FfiType.UInt16,
|
|
483
|
+
hasRustCallStatus: false,
|
|
484
|
+
},
|
|
485
|
+
"uniffi_cua_driver_sdk_checksum_constructor_cuadriver_create": {
|
|
486
|
+
args: [],
|
|
487
|
+
ret: FfiType.UInt16,
|
|
488
|
+
hasRustCallStatus: false,
|
|
489
|
+
},
|
|
490
|
+
"uniffi_cua_driver_sdk_checksum_constructor_cuadriver_create_with_client_kind": {
|
|
491
|
+
args: [],
|
|
492
|
+
ret: FfiType.UInt16,
|
|
493
|
+
hasRustCallStatus: false,
|
|
494
|
+
},
|
|
455
495
|
"uniffi_cua_driver_sdk_checksum_method_cuadriver_call_tool": {
|
|
456
496
|
args: [],
|
|
457
497
|
ret: FfiType.UInt16,
|
|
@@ -477,6 +517,11 @@ const DEFINITIONS = {
|
|
|
477
517
|
ret: FfiType.UInt16,
|
|
478
518
|
hasRustCallStatus: false,
|
|
479
519
|
},
|
|
520
|
+
"uniffi_cua_driver_sdk_checksum_method_cuadriver_execution_mode": {
|
|
521
|
+
args: [],
|
|
522
|
+
ret: FfiType.UInt16,
|
|
523
|
+
hasRustCallStatus: false,
|
|
524
|
+
},
|
|
480
525
|
"uniffi_cua_driver_sdk_checksum_method_cuadriver_get_cursor_position": {
|
|
481
526
|
args: [],
|
|
482
527
|
ret: FfiType.UInt16,
|
|
@@ -532,6 +577,11 @@ const DEFINITIONS = {
|
|
|
532
577
|
ret: FfiType.UInt16,
|
|
533
578
|
hasRustCallStatus: false,
|
|
534
579
|
},
|
|
580
|
+
"uniffi_cua_driver_sdk_checksum_method_cuadriver_shutdown": {
|
|
581
|
+
args: [],
|
|
582
|
+
ret: FfiType.UInt16,
|
|
583
|
+
hasRustCallStatus: false,
|
|
584
|
+
},
|
|
535
585
|
"uniffi_cua_driver_sdk_checksum_method_cuadriver_socket_path": {
|
|
536
586
|
args: [],
|
|
537
587
|
ret: FfiType.UInt16,
|