@trycua/cua-driver 0.26.1 → 0.27.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 CHANGED
@@ -14,7 +14,10 @@ import { CuaDriver } from "@trycua/cua-driver"
14
14
  organizational `/embedded` entrypoint; they are the same generated Rust object.
15
15
  The `/electron` entrypoint is a thin compatibility naming layer over the same
16
16
  generated macOS permission functions. The package does not contain a TypeScript
17
- MCP client. Agents already have
17
+ MCP protocol implementation. The optional `/fleet` entrypoint forwards service
18
+ bytes to the shared Rust typed-MCP client and returns the canonical Driver.
19
+ See [the candidate Fleet connection guide](../docs/shared-fleet-mcp-client.md)
20
+ for prerequisites, ownership, and release limits. Agents already have
18
21
  runtime-neutral MCP clients and should configure the executable directly:
19
22
 
20
23
  ```text
@@ -0,0 +1,48 @@
1
+ import { type CuaDriverLike } from './index.js';
2
+ /** Structural subset of Fleet's generated Sandbox record. */
3
+ export interface FleetDriverSandbox {
4
+ namespace: string;
5
+ claim: string;
6
+ name: string;
7
+ services: string[];
8
+ }
9
+ /** Compatible with the generated Fleet client; no shared native pointers. */
10
+ export interface FleetDriverClient {
11
+ serviceRequest(sandbox: FleetDriverSandbox, service: string, path: string, request: {
12
+ method: string;
13
+ url: string;
14
+ headers: {
15
+ name: string;
16
+ value: string;
17
+ }[];
18
+ body?: ArrayBuffer;
19
+ timeoutSecs?: bigint;
20
+ maxResponseBytes?: bigint;
21
+ }, options?: {
22
+ signal: AbortSignal;
23
+ }): Promise<{
24
+ status: number;
25
+ headers: {
26
+ name: string;
27
+ value: string;
28
+ }[];
29
+ body: ArrayBuffer;
30
+ }>;
31
+ }
32
+ export interface FleetDriverConnection {
33
+ readonly driver: CuaDriverLike;
34
+ readonly sessionName: string;
35
+ /** Close before releasing the Fleet claim. This never releases the claim. */
36
+ close(): Promise<void>;
37
+ }
38
+ /**
39
+ * Connect to an advertised service on the caller's live Fleet claim.
40
+ * The caller owns the client and claim, and must await close before releasing
41
+ * either. Abort closes this connection; it does not undo desktop actions.
42
+ */
43
+ export declare function connectFleetDriver({ client, sandbox, service, signal, }: {
44
+ client: FleetDriverClient;
45
+ sandbox: FleetDriverSandbox;
46
+ service?: string;
47
+ signal?: AbortSignal;
48
+ }): Promise<FleetDriverConnection>;
package/dist/fleet.js ADDED
@@ -0,0 +1,98 @@
1
+ /** Node-only composition of an existing Fleet client and the shared Rust Driver. */
2
+ import { randomUUID } from 'node:crypto';
3
+ import { openMcpDriverChannel, DriverServiceTransportError, } from './index.js';
4
+ const FLEET_DRIVER_MAX_RESPONSE_BYTES = 16n * 1024n * 1024n;
5
+ /**
6
+ * Connect to an advertised service on the caller's live Fleet claim.
7
+ * The caller owns the client and claim, and must await close before releasing
8
+ * either. Abort closes this connection; it does not undo desktop actions.
9
+ */
10
+ export async function connectFleetDriver({ client, sandbox, service = 'mcp', signal, }) {
11
+ const target = {
12
+ namespace: sandbox.namespace,
13
+ claim: sandbox.claim,
14
+ name: sandbox.name,
15
+ services: [...sandbox.services],
16
+ };
17
+ if (!target.services.includes(service)) {
18
+ throw new Error('Fleet sandbox does not advertise the requested Driver service');
19
+ }
20
+ if (signal?.aborted)
21
+ throw new Error('Fleet Driver connection aborted');
22
+ const serviceRequest = client.serviceRequest.bind(client);
23
+ let closing;
24
+ async function send(request) {
25
+ // Keep routing authority in Fleet even if the native boundary changes.
26
+ if (!request.path.startsWith('/') ||
27
+ request.path.length > 2048 ||
28
+ request.path.startsWith('//') ||
29
+ /[\\?#\s%]/u.test(request.path) ||
30
+ request.path.split('/').some((part) => part === '.' || part === '..') ||
31
+ request.timeoutMs <= 0n ||
32
+ request.timeoutMs > 2147483647n) {
33
+ throw new DriverServiceTransportError.Failed({
34
+ reason: 'Invalid bounded Driver service request',
35
+ });
36
+ }
37
+ const controller = new AbortController();
38
+ const timeout = setTimeout(() => controller.abort(), Number(request.timeoutMs));
39
+ let onAbort = () => { };
40
+ const aborted = new Promise((_, reject) => {
41
+ onAbort = () => reject(new Error('Fleet Driver service request canceled'));
42
+ controller.signal.addEventListener('abort', onAbort, { once: true });
43
+ });
44
+ try {
45
+ const response = await Promise.race([
46
+ serviceRequest({ ...target, services: [...target.services] }, service, request.path, {
47
+ method: request.method,
48
+ url: `https://service.invalid${request.path}`,
49
+ headers: request.headers.map((header) => ({ ...header })),
50
+ body: request.body,
51
+ timeoutSecs: (request.timeoutMs + 999n) / 1000n,
52
+ maxResponseBytes: FLEET_DRIVER_MAX_RESPONSE_BYTES,
53
+ }, { signal: controller.signal }),
54
+ aborted,
55
+ ]);
56
+ if (BigInt(response.body.byteLength) > FLEET_DRIVER_MAX_RESPONSE_BYTES) {
57
+ throw new Error('Fleet Driver response exceeds the configured size limit');
58
+ }
59
+ return response;
60
+ }
61
+ catch {
62
+ // Native callback errors must not expose Fleet credentials or response bodies.
63
+ throw new DriverServiceTransportError.Failed({
64
+ reason: 'Fleet Driver service request failed',
65
+ });
66
+ }
67
+ finally {
68
+ clearTimeout(timeout);
69
+ controller.signal.removeEventListener('abort', onAbort);
70
+ }
71
+ }
72
+ const channel = openMcpDriverChannel({ send }, `fleet:${randomUUID()}`);
73
+ const close = () => {
74
+ if (!closing) {
75
+ signal?.removeEventListener('abort', onAbort);
76
+ // Retain the promise so cancellation cannot orphan cleanup or hide errors
77
+ // from a later explicit close. Rust bounds its own session teardown.
78
+ closing = channel.close();
79
+ }
80
+ return closing;
81
+ };
82
+ const onAbort = () => {
83
+ void close().catch(() => { });
84
+ };
85
+ signal?.addEventListener('abort', onAbort, { once: true });
86
+ try {
87
+ if (signal?.aborted)
88
+ throw new Error('Fleet Driver connection aborted');
89
+ await channel.open();
90
+ if (signal?.aborted || closing)
91
+ throw new Error('Fleet Driver connection aborted');
92
+ return Object.freeze({ driver: channel.driver(), sessionName: channel.publicSession(), close });
93
+ }
94
+ catch (error) {
95
+ await close();
96
+ throw error;
97
+ }
98
+ }
@@ -56,18 +56,24 @@ interface NativeModuleInterface {
56
56
  uniffi_cua_driver_sdk_fn_free_driveractivityobserver(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): void;
57
57
  uniffi_cua_driver_sdk_fn_clone_driverauthorizationhost(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
58
58
  uniffi_cua_driver_sdk_fn_free_driverauthorizationhost(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): void;
59
+ uniffi_cua_driver_sdk_fn_clone_driverservicetransport(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
60
+ uniffi_cua_driver_sdk_fn_free_driverservicetransport(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): void;
59
61
  uniffi_cua_driver_sdk_fn_clone_embeddedcuadriverhost(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
60
62
  uniffi_cua_driver_sdk_fn_free_embeddedcuadriverhost(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): void;
61
63
  uniffi_cua_driver_sdk_fn_clone_foreigndriverenvelopechannel(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
62
64
  uniffi_cua_driver_sdk_fn_free_foreigndriverenvelopechannel(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): void;
65
+ uniffi_cua_driver_sdk_fn_clone_mcpdriverchannel(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
66
+ uniffi_cua_driver_sdk_fn_free_mcpdriverchannel(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): void;
63
67
  uniffi_cua_driver_sdk_fn_init_callback_vtable_driveractivityobserver(vtable: UniffiVTableCallbackInterfaceCuaDriverSdkDriverActivityObserver): void;
64
68
  uniffi_cua_driver_sdk_fn_init_callback_vtable_driverauthorizationhost(vtable: UniffiVTableCallbackInterfaceCuaDriverSdkDriverAuthorizationHost): void;
69
+ uniffi_cua_driver_sdk_fn_init_callback_vtable_driverservicetransport(vtable: UniffiVTableCallbackInterfaceCuaDriverSdkDriverServiceTransport): void;
65
70
  uniffi_cua_driver_sdk_fn_init_callback_vtable_foreigndriverenvelopechannel(vtable: UniffiVTableCallbackInterfaceCuaDriverSdkForeignDriverEnvelopeChannel): void;
66
71
  uniffi_cua_driver_sdk_fn_func_connect_remote_channel(channel: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
67
72
  uniffi_cua_driver_sdk_fn_func_create_remote_trusted_session(driver: bigint, options: Uint8Array): bigint;
68
73
  uniffi_cua_driver_sdk_fn_func_create_trusted_session(driver: bigint, options: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
69
74
  uniffi_cua_driver_sdk_fn_func_current_mac_os_permission_status(uniffi_out_err: UniffiRustCallStatus): Uint8Array;
70
75
  uniffi_cua_driver_sdk_fn_func_open_mac_os_screen_recording_settings(uniffi_out_err: UniffiRustCallStatus): void;
76
+ uniffi_cua_driver_sdk_fn_func_open_mcp_driver_channel(transport: bigint, authenticatedPrincipal: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
71
77
  uniffi_cua_driver_sdk_fn_func_request_mac_os_permissions(uniffi_out_err: UniffiRustCallStatus): Uint8Array;
72
78
  uniffi_cua_driver_sdk_fn_constructor_cuadriver_connect(socketPath: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
73
79
  uniffi_cua_driver_sdk_fn_constructor_cuadriver_connect_with_client_kind(socketPath: Uint8Array, clientKind: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
@@ -152,6 +158,7 @@ interface NativeModuleInterface {
152
158
  uniffi_cua_driver_sdk_fn_method_cuadriversession_verify_state(uniffiSelf: bigint, input: Uint8Array): bigint;
153
159
  uniffi_cua_driver_sdk_fn_method_driveractivityobserver_on_activity(uniffiSelf: bigint, event: Uint8Array, uniffi_out_err: UniffiRustCallStatus): void;
154
160
  uniffi_cua_driver_sdk_fn_method_driverauthorizationhost_authorize(uniffiSelf: bigint, request: Uint8Array): bigint;
161
+ uniffi_cua_driver_sdk_fn_method_driverservicetransport_send(uniffiSelf: bigint, request: Uint8Array): bigint;
155
162
  uniffi_cua_driver_sdk_fn_constructor_embeddedcuadriverhost_new(binaryPath: Uint8Array, hostBundleId: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
156
163
  uniffi_cua_driver_sdk_fn_constructor_embeddedcuadriverhost_with_options(options: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
157
164
  uniffi_cua_driver_sdk_fn_method_embeddedcuadriverhost_connection(uniffiSelf: bigint, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
@@ -166,12 +173,17 @@ interface NativeModuleInterface {
166
173
  uniffi_cua_driver_sdk_fn_method_foreigndriverenvelopechannel_bind_session(uniffiSelf: bigint, options: Uint8Array): bigint;
167
174
  uniffi_cua_driver_sdk_fn_method_foreigndriverenvelopechannel_cancel(uniffiSelf: bigint, requestId: Uint8Array): bigint;
168
175
  uniffi_cua_driver_sdk_fn_method_foreigndriverenvelopechannel_close(uniffiSelf: bigint): bigint;
176
+ uniffi_cua_driver_sdk_fn_method_mcpdriverchannel_close(uniffiSelf: bigint): bigint;
177
+ uniffi_cua_driver_sdk_fn_method_mcpdriverchannel_driver(uniffiSelf: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
178
+ uniffi_cua_driver_sdk_fn_method_mcpdriverchannel_open(uniffiSelf: bigint): bigint;
179
+ uniffi_cua_driver_sdk_fn_method_mcpdriverchannel_public_session(uniffiSelf: bigint, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
169
180
  ffi_cua_driver_sdk_uniffi_contract_version(): number;
170
181
  uniffi_cua_driver_sdk_checksum_func_connect_remote_channel(): number;
171
182
  uniffi_cua_driver_sdk_checksum_func_create_remote_trusted_session(): number;
172
183
  uniffi_cua_driver_sdk_checksum_func_create_trusted_session(): number;
173
184
  uniffi_cua_driver_sdk_checksum_func_current_mac_os_permission_status(): number;
174
185
  uniffi_cua_driver_sdk_checksum_func_open_mac_os_screen_recording_settings(): number;
186
+ uniffi_cua_driver_sdk_checksum_func_open_mcp_driver_channel(): number;
175
187
  uniffi_cua_driver_sdk_checksum_func_request_mac_os_permissions(): number;
176
188
  uniffi_cua_driver_sdk_checksum_constructor_cuadriver_connect(): number;
177
189
  uniffi_cua_driver_sdk_checksum_constructor_cuadriver_connect_with_client_kind(): number;
@@ -256,6 +268,7 @@ interface NativeModuleInterface {
256
268
  uniffi_cua_driver_sdk_checksum_method_cuadriversession_verify_state(): number;
257
269
  uniffi_cua_driver_sdk_checksum_method_driveractivityobserver_on_activity(): number;
258
270
  uniffi_cua_driver_sdk_checksum_method_driverauthorizationhost_authorize(): number;
271
+ uniffi_cua_driver_sdk_checksum_method_driverservicetransport_send(): number;
259
272
  uniffi_cua_driver_sdk_checksum_constructor_embeddedcuadriverhost_new(): number;
260
273
  uniffi_cua_driver_sdk_checksum_constructor_embeddedcuadriverhost_with_options(): number;
261
274
  uniffi_cua_driver_sdk_checksum_method_embeddedcuadriverhost_connection(): number;
@@ -270,6 +283,10 @@ interface NativeModuleInterface {
270
283
  uniffi_cua_driver_sdk_checksum_method_foreigndriverenvelopechannel_bind_session(): number;
271
284
  uniffi_cua_driver_sdk_checksum_method_foreigndriverenvelopechannel_cancel(): number;
272
285
  uniffi_cua_driver_sdk_checksum_method_foreigndriverenvelopechannel_close(): number;
286
+ uniffi_cua_driver_sdk_checksum_method_mcpdriverchannel_close(): number;
287
+ uniffi_cua_driver_sdk_checksum_method_mcpdriverchannel_driver(): number;
288
+ uniffi_cua_driver_sdk_checksum_method_mcpdriverchannel_open(): number;
289
+ uniffi_cua_driver_sdk_checksum_method_mcpdriverchannel_public_session(): number;
273
290
  rustbuffer_alloc(n: number): Uint8Array;
274
291
  rustbuffer_free(view: Uint8Array): void;
275
292
  }
@@ -302,6 +319,14 @@ export type UniffiVTableCallbackInterfaceCuaDriverSdkDriverAuthorizationHost = {
302
319
  uniffi_clone: UniffiCallbackInterfaceCloneCuaDriverSdkDriverAuthorizationHost;
303
320
  authorize: UniffiCallbackInterfaceCuaDriverSdkDriverAuthorizationHostMethod0;
304
321
  };
322
+ type UniffiCallbackInterfaceCuaDriverSdkDriverServiceTransportMethod0 = (uniffiHandle: bigint, request: Uint8Array, uniffiFutureCallback: UniffiForeignFutureCompleterustBuffer, uniffiCallbackData: bigint) => UniffiForeignFutureDroppedCallbackStruct;
323
+ type UniffiCallbackInterfaceCloneCuaDriverSdkDriverServiceTransport = (handle: bigint) => UniffiResult<void>;
324
+ type UniffiCallbackInterfaceFreeCuaDriverSdkDriverServiceTransport = (handle: bigint) => void;
325
+ export type UniffiVTableCallbackInterfaceCuaDriverSdkDriverServiceTransport = {
326
+ uniffi_free: UniffiCallbackInterfaceFreeCuaDriverSdkDriverServiceTransport;
327
+ uniffi_clone: UniffiCallbackInterfaceCloneCuaDriverSdkDriverServiceTransport;
328
+ send: UniffiCallbackInterfaceCuaDriverSdkDriverServiceTransportMethod0;
329
+ };
305
330
  type UniffiCallbackInterfaceCuaDriverSdkForeignDriverEnvelopeChannelMethod0 = (uniffiHandle: bigint) => Uint8Array;
306
331
  type UniffiCallbackInterfaceCuaDriverSdkForeignDriverEnvelopeChannelMethod1 = (uniffiHandle: bigint, uniffiFutureCallback: UniffiForeignFutureCompleterustBuffer, uniffiCallbackData: bigint) => UniffiForeignFutureDroppedCallbackStruct;
307
332
  type UniffiCallbackInterfaceCuaDriverSdkForeignDriverEnvelopeChannelMethod2 = (uniffiHandle: bigint, request: Uint8Array, uniffiFutureCallback: UniffiForeignFutureCompleterustBuffer, uniffiCallbackData: bigint) => UniffiForeignFutureDroppedCallbackStruct;
@@ -292,6 +292,16 @@ const DEFINITIONS = {
292
292
  ret: FfiType.Void,
293
293
  hasRustCallStatus: true,
294
294
  },
295
+ "uniffi_cua_driver_sdk_fn_clone_driverservicetransport": {
296
+ args: [FfiType.Handle],
297
+ ret: FfiType.Handle,
298
+ hasRustCallStatus: true,
299
+ },
300
+ "uniffi_cua_driver_sdk_fn_free_driverservicetransport": {
301
+ args: [FfiType.Handle],
302
+ ret: FfiType.Void,
303
+ hasRustCallStatus: true,
304
+ },
295
305
  "uniffi_cua_driver_sdk_fn_clone_embeddedcuadriverhost": {
296
306
  args: [FfiType.Handle],
297
307
  ret: FfiType.Handle,
@@ -312,6 +322,16 @@ const DEFINITIONS = {
312
322
  ret: FfiType.Void,
313
323
  hasRustCallStatus: true,
314
324
  },
325
+ "uniffi_cua_driver_sdk_fn_clone_mcpdriverchannel": {
326
+ args: [FfiType.Handle],
327
+ ret: FfiType.Handle,
328
+ hasRustCallStatus: true,
329
+ },
330
+ "uniffi_cua_driver_sdk_fn_free_mcpdriverchannel": {
331
+ args: [FfiType.Handle],
332
+ ret: FfiType.Void,
333
+ hasRustCallStatus: true,
334
+ },
315
335
  "uniffi_cua_driver_sdk_fn_init_callback_vtable_driveractivityobserver": {
316
336
  args: [FfiType.Reference(FfiType.Struct("VTableCallbackInterfaceCuaDriverSdkDriverActivityObserver"))],
317
337
  ret: FfiType.Void,
@@ -322,6 +342,11 @@ const DEFINITIONS = {
322
342
  ret: FfiType.Void,
323
343
  hasRustCallStatus: false,
324
344
  },
345
+ "uniffi_cua_driver_sdk_fn_init_callback_vtable_driverservicetransport": {
346
+ args: [FfiType.Reference(FfiType.Struct("VTableCallbackInterfaceCuaDriverSdkDriverServiceTransport"))],
347
+ ret: FfiType.Void,
348
+ hasRustCallStatus: false,
349
+ },
325
350
  "uniffi_cua_driver_sdk_fn_init_callback_vtable_foreigndriverenvelopechannel": {
326
351
  args: [FfiType.Reference(FfiType.Struct("VTableCallbackInterfaceCuaDriverSdkForeignDriverEnvelopeChannel"))],
327
352
  ret: FfiType.Void,
@@ -352,6 +377,11 @@ const DEFINITIONS = {
352
377
  ret: FfiType.Void,
353
378
  hasRustCallStatus: true,
354
379
  },
380
+ "uniffi_cua_driver_sdk_fn_func_open_mcp_driver_channel": {
381
+ args: [FfiType.Handle, FfiType.RustBuffer],
382
+ ret: FfiType.Handle,
383
+ hasRustCallStatus: true,
384
+ },
355
385
  "uniffi_cua_driver_sdk_fn_func_request_mac_os_permissions": {
356
386
  args: [],
357
387
  ret: FfiType.RustBuffer,
@@ -772,6 +802,11 @@ const DEFINITIONS = {
772
802
  ret: FfiType.Handle,
773
803
  hasRustCallStatus: false,
774
804
  },
805
+ "uniffi_cua_driver_sdk_fn_method_driverservicetransport_send": {
806
+ args: [FfiType.Handle, FfiType.RustBuffer],
807
+ ret: FfiType.Handle,
808
+ hasRustCallStatus: false,
809
+ },
775
810
  "uniffi_cua_driver_sdk_fn_constructor_embeddedcuadriverhost_new": {
776
811
  args: [FfiType.RustBuffer, FfiType.RustBuffer],
777
812
  ret: FfiType.Handle,
@@ -842,6 +877,26 @@ const DEFINITIONS = {
842
877
  ret: FfiType.Handle,
843
878
  hasRustCallStatus: false,
844
879
  },
880
+ "uniffi_cua_driver_sdk_fn_method_mcpdriverchannel_close": {
881
+ args: [FfiType.Handle],
882
+ ret: FfiType.Handle,
883
+ hasRustCallStatus: false,
884
+ },
885
+ "uniffi_cua_driver_sdk_fn_method_mcpdriverchannel_driver": {
886
+ args: [FfiType.Handle],
887
+ ret: FfiType.Handle,
888
+ hasRustCallStatus: true,
889
+ },
890
+ "uniffi_cua_driver_sdk_fn_method_mcpdriverchannel_open": {
891
+ args: [FfiType.Handle],
892
+ ret: FfiType.Handle,
893
+ hasRustCallStatus: false,
894
+ },
895
+ "uniffi_cua_driver_sdk_fn_method_mcpdriverchannel_public_session": {
896
+ args: [FfiType.Handle],
897
+ ret: FfiType.RustBuffer,
898
+ hasRustCallStatus: true,
899
+ },
845
900
  "ffi_cua_driver_sdk_uniffi_contract_version": {
846
901
  args: [],
847
902
  ret: FfiType.UInt32,
@@ -872,6 +927,11 @@ const DEFINITIONS = {
872
927
  ret: FfiType.UInt16,
873
928
  hasRustCallStatus: false,
874
929
  },
930
+ "uniffi_cua_driver_sdk_checksum_func_open_mcp_driver_channel": {
931
+ args: [],
932
+ ret: FfiType.UInt16,
933
+ hasRustCallStatus: false,
934
+ },
875
935
  "uniffi_cua_driver_sdk_checksum_func_request_mac_os_permissions": {
876
936
  args: [],
877
937
  ret: FfiType.UInt16,
@@ -1292,6 +1352,11 @@ const DEFINITIONS = {
1292
1352
  ret: FfiType.UInt16,
1293
1353
  hasRustCallStatus: false,
1294
1354
  },
1355
+ "uniffi_cua_driver_sdk_checksum_method_driverservicetransport_send": {
1356
+ args: [],
1357
+ ret: FfiType.UInt16,
1358
+ hasRustCallStatus: false,
1359
+ },
1295
1360
  "uniffi_cua_driver_sdk_checksum_constructor_embeddedcuadriverhost_new": {
1296
1361
  args: [],
1297
1362
  ret: FfiType.UInt16,
@@ -1362,6 +1427,26 @@ const DEFINITIONS = {
1362
1427
  ret: FfiType.UInt16,
1363
1428
  hasRustCallStatus: false,
1364
1429
  },
1430
+ "uniffi_cua_driver_sdk_checksum_method_mcpdriverchannel_close": {
1431
+ args: [],
1432
+ ret: FfiType.UInt16,
1433
+ hasRustCallStatus: false,
1434
+ },
1435
+ "uniffi_cua_driver_sdk_checksum_method_mcpdriverchannel_driver": {
1436
+ args: [],
1437
+ ret: FfiType.UInt16,
1438
+ hasRustCallStatus: false,
1439
+ },
1440
+ "uniffi_cua_driver_sdk_checksum_method_mcpdriverchannel_open": {
1441
+ args: [],
1442
+ ret: FfiType.UInt16,
1443
+ hasRustCallStatus: false,
1444
+ },
1445
+ "uniffi_cua_driver_sdk_checksum_method_mcpdriverchannel_public_session": {
1446
+ args: [],
1447
+ ret: FfiType.UInt16,
1448
+ hasRustCallStatus: false,
1449
+ },
1365
1450
  },
1366
1451
  callbacks: {
1367
1452
  "RustFutureContinuationCallback": {
@@ -1411,6 +1496,22 @@ const DEFINITIONS = {
1411
1496
  ret: FfiType.Void,
1412
1497
  hasRustCallStatus: false,
1413
1498
  },
1499
+ "CallbackInterfaceCuaDriverSdkDriverServiceTransportMethod0": {
1500
+ args: [FfiType.Handle, FfiType.RustBuffer, FfiType.Callback("ForeignFutureCompleterust_buffer"), FfiType.Handle],
1501
+ ret: FfiType.Struct("ForeignFutureDroppedCallbackStruct"),
1502
+ hasRustCallStatus: false,
1503
+ outReturn: true,
1504
+ },
1505
+ "CallbackInterfaceCloneCuaDriverSdk_DriverServiceTransport": {
1506
+ args: [FfiType.Handle],
1507
+ ret: FfiType.Handle,
1508
+ hasRustCallStatus: false,
1509
+ },
1510
+ "CallbackInterfaceFreeCuaDriverSdk_DriverServiceTransport": {
1511
+ args: [FfiType.Handle],
1512
+ ret: FfiType.Void,
1513
+ hasRustCallStatus: false,
1514
+ },
1414
1515
  "CallbackInterfaceCuaDriverSdkForeignDriverEnvelopeChannelMethod0": {
1415
1516
  args: [FfiType.Handle],
1416
1517
  ret: FfiType.RustBuffer,
@@ -1482,6 +1583,11 @@ const DEFINITIONS = {
1482
1583
  { name: "uniffi_clone", type: FfiType.Callback("CallbackInterfaceCloneCuaDriverSdk_DriverAuthorizationHost") },
1483
1584
  { name: "authorize", type: FfiType.Callback("CallbackInterfaceCuaDriverSdkDriverAuthorizationHostMethod0") },
1484
1585
  ],
1586
+ "VTableCallbackInterfaceCuaDriverSdkDriverServiceTransport": [
1587
+ { name: "uniffi_free", type: FfiType.Callback("CallbackInterfaceFreeCuaDriverSdk_DriverServiceTransport") },
1588
+ { name: "uniffi_clone", type: FfiType.Callback("CallbackInterfaceCloneCuaDriverSdk_DriverServiceTransport") },
1589
+ { name: "send", type: FfiType.Callback("CallbackInterfaceCuaDriverSdkDriverServiceTransportMethod0") },
1590
+ ],
1485
1591
  "ForeignFutureResultVoid": [
1486
1592
  { name: "call_status", type: FfiType.RustCallStatus },
1487
1593
  ],