@trycua/cua-driver 0.19.2 → 0.20.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.
@@ -90,10 +90,13 @@ interface NativeModuleInterface {
90
90
  uniffi_cua_driver_sdk_fn_method_cuadriver_get_cursor_position(uniffiSelf: bigint, input: Uint8Array): bigint;
91
91
  uniffi_cua_driver_sdk_fn_method_cuadriver_get_desktop_state(uniffiSelf: bigint, input: Uint8Array): bigint;
92
92
  uniffi_cua_driver_sdk_fn_method_cuadriver_get_screen_size(uniffiSelf: bigint, input: Uint8Array): bigint;
93
+ uniffi_cua_driver_sdk_fn_method_cuadriver_get_session(uniffiSelf: bigint, input: Uint8Array): bigint;
93
94
  uniffi_cua_driver_sdk_fn_method_cuadriver_get_session_state(uniffiSelf: bigint, input: Uint8Array): bigint;
94
95
  uniffi_cua_driver_sdk_fn_method_cuadriver_hotkey(uniffiSelf: bigint, input: Uint8Array): bigint;
95
96
  uniffi_cua_driver_sdk_fn_method_cuadriver_invoke_menu(uniffiSelf: bigint, input: Uint8Array): bigint;
96
97
  uniffi_cua_driver_sdk_fn_method_cuadriver_is_available(uniffiSelf: bigint, uniffi_out_err: UniffiRustCallStatus): number;
98
+ uniffi_cua_driver_sdk_fn_method_cuadriver_list_host_sessions_json(uniffiSelf: bigint): bigint;
99
+ uniffi_cua_driver_sdk_fn_method_cuadriver_list_sessions(uniffiSelf: bigint, input: Uint8Array): bigint;
97
100
  uniffi_cua_driver_sdk_fn_method_cuadriver_list_tools_json(uniffiSelf: bigint): bigint;
98
101
  uniffi_cua_driver_sdk_fn_method_cuadriver_metadata(uniffiSelf: bigint): bigint;
99
102
  uniffi_cua_driver_sdk_fn_method_cuadriver_move_cursor(uniffiSelf: bigint, input: Uint8Array): bigint;
@@ -121,9 +124,11 @@ interface NativeModuleInterface {
121
124
  uniffi_cua_driver_sdk_fn_method_cuadriversession_get_cursor_position(uniffiSelf: bigint, input: Uint8Array): bigint;
122
125
  uniffi_cua_driver_sdk_fn_method_cuadriversession_get_desktop_state(uniffiSelf: bigint, input: Uint8Array): bigint;
123
126
  uniffi_cua_driver_sdk_fn_method_cuadriversession_get_screen_size(uniffiSelf: bigint, input: Uint8Array): bigint;
127
+ uniffi_cua_driver_sdk_fn_method_cuadriversession_get_session(uniffiSelf: bigint, input: Uint8Array): bigint;
124
128
  uniffi_cua_driver_sdk_fn_method_cuadriversession_get_session_state(uniffiSelf: bigint, input: Uint8Array): bigint;
125
129
  uniffi_cua_driver_sdk_fn_method_cuadriversession_hotkey(uniffiSelf: bigint, input: Uint8Array): bigint;
126
130
  uniffi_cua_driver_sdk_fn_method_cuadriversession_invoke_menu(uniffiSelf: bigint, input: Uint8Array): bigint;
131
+ uniffi_cua_driver_sdk_fn_method_cuadriversession_list_sessions(uniffiSelf: bigint, input: Uint8Array): bigint;
127
132
  uniffi_cua_driver_sdk_fn_method_cuadriversession_move_cursor(uniffiSelf: bigint, input: Uint8Array): bigint;
128
133
  uniffi_cua_driver_sdk_fn_method_cuadriversession_press_key(uniffiSelf: bigint, input: Uint8Array): bigint;
129
134
  uniffi_cua_driver_sdk_fn_method_cuadriversession_scroll(uniffiSelf: bigint, input: Uint8Array): bigint;
@@ -175,10 +180,13 @@ interface NativeModuleInterface {
175
180
  uniffi_cua_driver_sdk_checksum_method_cuadriver_get_cursor_position(): number;
176
181
  uniffi_cua_driver_sdk_checksum_method_cuadriver_get_desktop_state(): number;
177
182
  uniffi_cua_driver_sdk_checksum_method_cuadriver_get_screen_size(): number;
183
+ uniffi_cua_driver_sdk_checksum_method_cuadriver_get_session(): number;
178
184
  uniffi_cua_driver_sdk_checksum_method_cuadriver_get_session_state(): number;
179
185
  uniffi_cua_driver_sdk_checksum_method_cuadriver_hotkey(): number;
180
186
  uniffi_cua_driver_sdk_checksum_method_cuadriver_invoke_menu(): number;
181
187
  uniffi_cua_driver_sdk_checksum_method_cuadriver_is_available(): number;
188
+ uniffi_cua_driver_sdk_checksum_method_cuadriver_list_host_sessions_json(): number;
189
+ uniffi_cua_driver_sdk_checksum_method_cuadriver_list_sessions(): number;
182
190
  uniffi_cua_driver_sdk_checksum_method_cuadriver_list_tools_json(): number;
183
191
  uniffi_cua_driver_sdk_checksum_method_cuadriver_metadata(): number;
184
192
  uniffi_cua_driver_sdk_checksum_method_cuadriver_move_cursor(): number;
@@ -206,9 +214,11 @@ interface NativeModuleInterface {
206
214
  uniffi_cua_driver_sdk_checksum_method_cuadriversession_get_cursor_position(): number;
207
215
  uniffi_cua_driver_sdk_checksum_method_cuadriversession_get_desktop_state(): number;
208
216
  uniffi_cua_driver_sdk_checksum_method_cuadriversession_get_screen_size(): number;
217
+ uniffi_cua_driver_sdk_checksum_method_cuadriversession_get_session(): number;
209
218
  uniffi_cua_driver_sdk_checksum_method_cuadriversession_get_session_state(): number;
210
219
  uniffi_cua_driver_sdk_checksum_method_cuadriversession_hotkey(): number;
211
220
  uniffi_cua_driver_sdk_checksum_method_cuadriversession_invoke_menu(): number;
221
+ uniffi_cua_driver_sdk_checksum_method_cuadriversession_list_sessions(): number;
212
222
  uniffi_cua_driver_sdk_checksum_method_cuadriversession_move_cursor(): number;
213
223
  uniffi_cua_driver_sdk_checksum_method_cuadriversession_press_key(): number;
214
224
  uniffi_cua_driver_sdk_checksum_method_cuadriversession_scroll(): number;
@@ -462,6 +462,11 @@ const DEFINITIONS = {
462
462
  ret: FfiType.Handle,
463
463
  hasRustCallStatus: false,
464
464
  },
465
+ "uniffi_cua_driver_sdk_fn_method_cuadriver_get_session": {
466
+ args: [FfiType.Handle, FfiType.RustBuffer],
467
+ ret: FfiType.Handle,
468
+ hasRustCallStatus: false,
469
+ },
465
470
  "uniffi_cua_driver_sdk_fn_method_cuadriver_get_session_state": {
466
471
  args: [FfiType.Handle, FfiType.RustBuffer],
467
472
  ret: FfiType.Handle,
@@ -482,6 +487,16 @@ const DEFINITIONS = {
482
487
  ret: FfiType.Int8,
483
488
  hasRustCallStatus: true,
484
489
  },
490
+ "uniffi_cua_driver_sdk_fn_method_cuadriver_list_host_sessions_json": {
491
+ args: [FfiType.Handle],
492
+ ret: FfiType.Handle,
493
+ hasRustCallStatus: false,
494
+ },
495
+ "uniffi_cua_driver_sdk_fn_method_cuadriver_list_sessions": {
496
+ args: [FfiType.Handle, FfiType.RustBuffer],
497
+ ret: FfiType.Handle,
498
+ hasRustCallStatus: false,
499
+ },
485
500
  "uniffi_cua_driver_sdk_fn_method_cuadriver_list_tools_json": {
486
501
  args: [FfiType.Handle],
487
502
  ret: FfiType.Handle,
@@ -617,6 +632,11 @@ const DEFINITIONS = {
617
632
  ret: FfiType.Handle,
618
633
  hasRustCallStatus: false,
619
634
  },
635
+ "uniffi_cua_driver_sdk_fn_method_cuadriversession_get_session": {
636
+ args: [FfiType.Handle, FfiType.RustBuffer],
637
+ ret: FfiType.Handle,
638
+ hasRustCallStatus: false,
639
+ },
620
640
  "uniffi_cua_driver_sdk_fn_method_cuadriversession_get_session_state": {
621
641
  args: [FfiType.Handle, FfiType.RustBuffer],
622
642
  ret: FfiType.Handle,
@@ -632,6 +652,11 @@ const DEFINITIONS = {
632
652
  ret: FfiType.Handle,
633
653
  hasRustCallStatus: false,
634
654
  },
655
+ "uniffi_cua_driver_sdk_fn_method_cuadriversession_list_sessions": {
656
+ args: [FfiType.Handle, FfiType.RustBuffer],
657
+ ret: FfiType.Handle,
658
+ hasRustCallStatus: false,
659
+ },
635
660
  "uniffi_cua_driver_sdk_fn_method_cuadriversession_move_cursor": {
636
661
  args: [FfiType.Handle, FfiType.RustBuffer],
637
662
  ret: FfiType.Handle,
@@ -887,6 +912,11 @@ const DEFINITIONS = {
887
912
  ret: FfiType.UInt16,
888
913
  hasRustCallStatus: false,
889
914
  },
915
+ "uniffi_cua_driver_sdk_checksum_method_cuadriver_get_session": {
916
+ args: [],
917
+ ret: FfiType.UInt16,
918
+ hasRustCallStatus: false,
919
+ },
890
920
  "uniffi_cua_driver_sdk_checksum_method_cuadriver_get_session_state": {
891
921
  args: [],
892
922
  ret: FfiType.UInt16,
@@ -907,6 +937,16 @@ const DEFINITIONS = {
907
937
  ret: FfiType.UInt16,
908
938
  hasRustCallStatus: false,
909
939
  },
940
+ "uniffi_cua_driver_sdk_checksum_method_cuadriver_list_host_sessions_json": {
941
+ args: [],
942
+ ret: FfiType.UInt16,
943
+ hasRustCallStatus: false,
944
+ },
945
+ "uniffi_cua_driver_sdk_checksum_method_cuadriver_list_sessions": {
946
+ args: [],
947
+ ret: FfiType.UInt16,
948
+ hasRustCallStatus: false,
949
+ },
910
950
  "uniffi_cua_driver_sdk_checksum_method_cuadriver_list_tools_json": {
911
951
  args: [],
912
952
  ret: FfiType.UInt16,
@@ -1042,6 +1082,11 @@ const DEFINITIONS = {
1042
1082
  ret: FfiType.UInt16,
1043
1083
  hasRustCallStatus: false,
1044
1084
  },
1085
+ "uniffi_cua_driver_sdk_checksum_method_cuadriversession_get_session": {
1086
+ args: [],
1087
+ ret: FfiType.UInt16,
1088
+ hasRustCallStatus: false,
1089
+ },
1045
1090
  "uniffi_cua_driver_sdk_checksum_method_cuadriversession_get_session_state": {
1046
1091
  args: [],
1047
1092
  ret: FfiType.UInt16,
@@ -1057,6 +1102,11 @@ const DEFINITIONS = {
1057
1102
  ret: FfiType.UInt16,
1058
1103
  hasRustCallStatus: false,
1059
1104
  },
1105
+ "uniffi_cua_driver_sdk_checksum_method_cuadriversession_list_sessions": {
1106
+ args: [],
1107
+ ret: FfiType.UInt16,
1108
+ hasRustCallStatus: false,
1109
+ },
1060
1110
  "uniffi_cua_driver_sdk_checksum_method_cuadriversession_move_cursor": {
1061
1111
  args: [],
1062
1112
  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 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";
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";
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.
@@ -30,7 +30,11 @@ export type RuntimeAuthorizationOptions = {
30
30
  */
31
31
  compatibilityMode: SessionPermissionMode;
32
32
  /**
33
- * Required only when `compatibility_mode` is bounded.
33
+ * Optional in standard and unrestricted; required when compatibility mode is bounded.
34
+ */
35
+ compatibilityCapabilityManifestPath?: string;
36
+ /**
37
+ * Deprecated alias for `compatibility_capability_manifest_path`.
34
38
  */
35
39
  compatibilityBoundedManifestPath?: string;
36
40
  unrestrictedAcknowledged: boolean;
@@ -41,8 +45,8 @@ export type RuntimeAuthorizationOptions = {
41
45
  * Generated factory for {@link RuntimeAuthorizationOptions} record objects.
42
46
  */
43
47
  export declare const RuntimeAuthorizationOptions: Readonly<{
44
- create: (partial: Partial<RuntimeAuthorizationOptions> & Required<Omit<RuntimeAuthorizationOptions, "compatibilityBoundedManifestPath">>) => RuntimeAuthorizationOptions;
45
- new: (partial: Partial<RuntimeAuthorizationOptions> & Required<Omit<RuntimeAuthorizationOptions, "compatibilityBoundedManifestPath">>) => RuntimeAuthorizationOptions;
48
+ create: (partial: Partial<RuntimeAuthorizationOptions> & Required<Omit<RuntimeAuthorizationOptions, "compatibilityCapabilityManifestPath" | "compatibilityBoundedManifestPath">>) => RuntimeAuthorizationOptions;
49
+ new: (partial: Partial<RuntimeAuthorizationOptions> & Required<Omit<RuntimeAuthorizationOptions, "compatibilityCapabilityManifestPath" | "compatibilityBoundedManifestPath">>) => RuntimeAuthorizationOptions;
46
50
  defaults: () => Partial<RuntimeAuthorizationOptions>;
47
51
  }>;
48
52
  /**
@@ -247,6 +251,11 @@ export type EmbeddedDriverHostOptions = {
247
251
  startupTimeoutMs?: bigint;
248
252
  shutdownTimeoutMs?: bigint;
249
253
  permissionMode?: EmbeddedPermissionMode;
254
+ capabilityManifestPath?: string;
255
+ approveCapabilityManifest: boolean;
256
+ /**
257
+ * Deprecated aliases retained for compatibility.
258
+ */
250
259
  sessionPolicyPath?: string;
251
260
  approveSessionPolicy: boolean;
252
261
  dangerouslyBypassApprovals: boolean;
@@ -257,8 +266,8 @@ export type EmbeddedDriverHostOptions = {
257
266
  * Generated factory for {@link EmbeddedDriverHostOptions} record objects.
258
267
  */
259
268
  export declare const EmbeddedDriverHostOptions: Readonly<{
260
- create: (partial: Partial<EmbeddedDriverHostOptions> & Required<Omit<EmbeddedDriverHostOptions, "socketPath" | "permissionMode" | "startupTimeoutMs" | "shutdownTimeoutMs" | "sessionPolicyPath">>) => EmbeddedDriverHostOptions;
261
- new: (partial: Partial<EmbeddedDriverHostOptions> & Required<Omit<EmbeddedDriverHostOptions, "socketPath" | "permissionMode" | "startupTimeoutMs" | "shutdownTimeoutMs" | "sessionPolicyPath">>) => EmbeddedDriverHostOptions;
269
+ create: (partial: Partial<EmbeddedDriverHostOptions> & Required<Omit<EmbeddedDriverHostOptions, "socketPath" | "permissionMode" | "startupTimeoutMs" | "shutdownTimeoutMs" | "capabilityManifestPath" | "approveCapabilityManifest" | "sessionPolicyPath">>) => EmbeddedDriverHostOptions;
270
+ new: (partial: Partial<EmbeddedDriverHostOptions> & Required<Omit<EmbeddedDriverHostOptions, "socketPath" | "permissionMode" | "startupTimeoutMs" | "shutdownTimeoutMs" | "capabilityManifestPath" | "approveCapabilityManifest" | "sessionPolicyPath">>) => EmbeddedDriverHostOptions;
262
271
  defaults: () => Partial<EmbeddedDriverHostOptions>;
263
272
  }>;
264
273
  export type ImageContent = {
@@ -344,14 +353,18 @@ export type TrustedSessionOptions = {
344
353
  mode: SessionPermissionMode;
345
354
  ttlSeconds: bigint;
346
355
  idleTtlSeconds: bigint;
356
+ capabilityManifestPath?: string;
357
+ /**
358
+ * Deprecated alias for `capability_manifest_path`.
359
+ */
347
360
  boundedManifestPath?: string;
348
361
  };
349
362
  /**
350
363
  * Generated factory for {@link TrustedSessionOptions} record objects.
351
364
  */
352
365
  export declare const TrustedSessionOptions: Readonly<{
353
- create: (partial: Partial<TrustedSessionOptions> & Required<Omit<TrustedSessionOptions, "boundedManifestPath">>) => TrustedSessionOptions;
354
- new: (partial: Partial<TrustedSessionOptions> & Required<Omit<TrustedSessionOptions, "boundedManifestPath">>) => TrustedSessionOptions;
366
+ create: (partial: Partial<TrustedSessionOptions> & Required<Omit<TrustedSessionOptions, "capabilityManifestPath" | "boundedManifestPath">>) => TrustedSessionOptions;
367
+ new: (partial: Partial<TrustedSessionOptions> & Required<Omit<TrustedSessionOptions, "capabilityManifestPath" | "boundedManifestPath">>) => TrustedSessionOptions;
355
368
  defaults: () => Partial<TrustedSessionOptions>;
356
369
  }>;
357
370
  export declare enum ActionCompletion {
@@ -2051,6 +2064,9 @@ export interface CuaDriverLike {
2051
2064
  getScreenSize(input: GetScreenSizeInput, asyncOpts_?: {
2052
2065
  signal: AbortSignal;
2053
2066
  }): Promise<ToolResult>;
2067
+ getSession(input: GetSessionInput, asyncOpts_?: {
2068
+ signal: AbortSignal;
2069
+ }): Promise<SessionOutput>;
2054
2070
  getSessionState(input: GetSessionStateInput, asyncOpts_?: {
2055
2071
  signal: AbortSignal;
2056
2072
  }): Promise<SessionStateOutput>;
@@ -2061,6 +2077,17 @@ export interface CuaDriverLike {
2061
2077
  signal: AbortSignal;
2062
2078
  }): Promise<ToolResult>;
2063
2079
  isAvailable(): boolean;
2080
+ /**
2081
+ * Content-free lifecycle summaries for the trusted host's runtime or
2082
+ * host-lease namespace. This is deliberately separate from the
2083
+ * agent-facing `list_sessions` tool, whose view is transport scoped.
2084
+ */
2085
+ listHostSessionsJson(asyncOpts_?: {
2086
+ signal: AbortSignal;
2087
+ }): Promise<string>;
2088
+ listSessions(input: ListSessionsInput, asyncOpts_?: {
2089
+ signal: AbortSignal;
2090
+ }): Promise<ListSessionsOutput>;
2064
2091
  /**
2065
2092
  * Canonical tool inventory for MCP and other protocol adapters.
2066
2093
  */
@@ -2236,6 +2263,9 @@ export declare class CuaDriver extends UniffiAbstractObject implements CuaDriver
2236
2263
  getScreenSize(input: GetScreenSizeInput, asyncOpts_?: {
2237
2264
  signal: AbortSignal;
2238
2265
  }): Promise<ToolResult>;
2266
+ getSession(input: GetSessionInput, asyncOpts_?: {
2267
+ signal: AbortSignal;
2268
+ }): Promise<SessionOutput>;
2239
2269
  getSessionState(input: GetSessionStateInput, asyncOpts_?: {
2240
2270
  signal: AbortSignal;
2241
2271
  }): Promise<SessionStateOutput>;
@@ -2246,6 +2276,17 @@ export declare class CuaDriver extends UniffiAbstractObject implements CuaDriver
2246
2276
  signal: AbortSignal;
2247
2277
  }): Promise<ToolResult>;
2248
2278
  isAvailable(): boolean;
2279
+ /**
2280
+ * Content-free lifecycle summaries for the trusted host's runtime or
2281
+ * host-lease namespace. This is deliberately separate from the
2282
+ * agent-facing `list_sessions` tool, whose view is transport scoped.
2283
+ */
2284
+ listHostSessionsJson(asyncOpts_?: {
2285
+ signal: AbortSignal;
2286
+ }): Promise<string>;
2287
+ listSessions(input: ListSessionsInput, asyncOpts_?: {
2288
+ signal: AbortSignal;
2289
+ }): Promise<ListSessionsOutput>;
2249
2290
  /**
2250
2291
  * Canonical tool inventory for MCP and other protocol adapters.
2251
2292
  */
@@ -2342,6 +2383,9 @@ export interface CuaDriverSessionLike {
2342
2383
  getScreenSize(input: GetScreenSizeInput, asyncOpts_?: {
2343
2384
  signal: AbortSignal;
2344
2385
  }): Promise<ToolResult>;
2386
+ getSession(input: GetSessionInput, asyncOpts_?: {
2387
+ signal: AbortSignal;
2388
+ }): Promise<SessionOutput>;
2345
2389
  getSessionState(input: GetSessionStateInput, asyncOpts_?: {
2346
2390
  signal: AbortSignal;
2347
2391
  }): Promise<SessionStateOutput>;
@@ -2351,6 +2395,9 @@ export interface CuaDriverSessionLike {
2351
2395
  invokeMenu(input: InvokeMenuInput, asyncOpts_?: {
2352
2396
  signal: AbortSignal;
2353
2397
  }): Promise<ToolResult>;
2398
+ listSessions(input: ListSessionsInput, asyncOpts_?: {
2399
+ signal: AbortSignal;
2400
+ }): Promise<ListSessionsOutput>;
2354
2401
  moveCursor(input: MoveCursorInput, asyncOpts_?: {
2355
2402
  signal: AbortSignal;
2356
2403
  }): Promise<ToolResult>;
@@ -2431,6 +2478,9 @@ export declare class CuaDriverSession extends UniffiAbstractObject implements Cu
2431
2478
  getScreenSize(input: GetScreenSizeInput, asyncOpts_?: {
2432
2479
  signal: AbortSignal;
2433
2480
  }): Promise<ToolResult>;
2481
+ getSession(input: GetSessionInput, asyncOpts_?: {
2482
+ signal: AbortSignal;
2483
+ }): Promise<SessionOutput>;
2434
2484
  getSessionState(input: GetSessionStateInput, asyncOpts_?: {
2435
2485
  signal: AbortSignal;
2436
2486
  }): Promise<SessionStateOutput>;
@@ -2440,6 +2490,9 @@ export declare class CuaDriverSession extends UniffiAbstractObject implements Cu
2440
2490
  invokeMenu(input: InvokeMenuInput, asyncOpts_?: {
2441
2491
  signal: AbortSignal;
2442
2492
  }): Promise<ToolResult>;
2493
+ listSessions(input: ListSessionsInput, asyncOpts_?: {
2494
+ signal: AbortSignal;
2495
+ }): Promise<ListSessionsOutput>;
2443
2496
  moveCursor(input: MoveCursorInput, asyncOpts_?: {
2444
2497
  signal: AbortSignal;
2445
2498
  }): 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, 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, FfiConverterTypeGetSessionStateInput, FfiConverterTypeHotkeyInput, FfiConverterTypeInvokeMenuInput, FfiConverterTypeMoveCursorInput, FfiConverterTypePressKeyInput, FfiConverterTypeScrollInput, 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, FfiConverterTypeHotkeyInput, FfiConverterTypeInvokeMenuInput, FfiConverterTypeListSessionsInput, FfiConverterTypeListSessionsOutput, FfiConverterTypeMoveCursorInput, FfiConverterTypePressKeyInput, FfiConverterTypeScrollInput, FfiConverterTypeSessionOutput, FfiConverterTypeSessionStateOutput, FfiConverterTypeSetAgentCursorEnabledInput, FfiConverterTypeSetAgentCursorMotionInput, FfiConverterTypeSetAgentCursorThemeInput, FfiConverterTypeSetWindowFrameInput, FfiConverterTypeStartSessionInput, FfiConverterTypeStartSessionOutput, FfiConverterTypeTypeTextInput, FfiConverterTypeVerifyStateInput, FfiConverterTypeVerifyStateOutput } = 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
@@ -118,7 +118,9 @@ const FfiConverterString = uniffiCreateFfiConverterString(stringConverter);
118
118
  * Generated factory for {@link RuntimeAuthorizationOptions} record objects.
119
119
  */
120
120
  export const RuntimeAuthorizationOptions = (() => {
121
- const defaults = () => ({});
121
+ const defaults = () => ({
122
+ compatibilityCapabilityManifestPath: undefined,
123
+ });
122
124
  const create = (() => {
123
125
  return uniffiCreateRecord(defaults);
124
126
  })();
@@ -134,6 +136,7 @@ const FfiConverterTypeRuntimeAuthorizationOptions = (() => {
134
136
  return {
135
137
  allowedModes: FfiConverterSequenceTypeSessionPermissionMode.read(from),
136
138
  compatibilityMode: FfiConverterTypeSessionPermissionMode.read(from),
139
+ compatibilityCapabilityManifestPath: FfiConverterOptionalString.read(from),
137
140
  compatibilityBoundedManifestPath: FfiConverterOptionalString.read(from),
138
141
  unrestrictedAcknowledged: FfiConverterBool.read(from),
139
142
  maxSessionTtlSeconds: FfiConverterUInt64.read(from),
@@ -143,6 +146,7 @@ const FfiConverterTypeRuntimeAuthorizationOptions = (() => {
143
146
  write(value, into) {
144
147
  FfiConverterSequenceTypeSessionPermissionMode.write(value.allowedModes, into);
145
148
  FfiConverterTypeSessionPermissionMode.write(value.compatibilityMode, into);
149
+ FfiConverterOptionalString.write(value.compatibilityCapabilityManifestPath, into);
146
150
  FfiConverterOptionalString.write(value.compatibilityBoundedManifestPath, into);
147
151
  FfiConverterBool.write(value.unrestrictedAcknowledged, into);
148
152
  FfiConverterUInt64.write(value.maxSessionTtlSeconds, into);
@@ -151,6 +155,7 @@ const FfiConverterTypeRuntimeAuthorizationOptions = (() => {
151
155
  allocationSize(value) {
152
156
  return FfiConverterSequenceTypeSessionPermissionMode.allocationSize(value.allowedModes) +
153
157
  FfiConverterTypeSessionPermissionMode.allocationSize(value.compatibilityMode) +
158
+ FfiConverterOptionalString.allocationSize(value.compatibilityCapabilityManifestPath) +
154
159
  FfiConverterOptionalString.allocationSize(value.compatibilityBoundedManifestPath) +
155
160
  FfiConverterBool.allocationSize(value.unrestrictedAcknowledged) +
156
161
  FfiConverterUInt64.allocationSize(value.maxSessionTtlSeconds) +
@@ -696,7 +701,10 @@ const FfiConverterTypeEmbeddedPermissionMode = (() => {
696
701
  * Generated factory for {@link EmbeddedDriverHostOptions} record objects.
697
702
  */
698
703
  export const EmbeddedDriverHostOptions = (() => {
699
- const defaults = () => ({});
704
+ const defaults = () => ({
705
+ capabilityManifestPath: undefined,
706
+ approveCapabilityManifest: false,
707
+ });
700
708
  const create = (() => {
701
709
  return uniffiCreateRecord(defaults);
702
710
  })();
@@ -716,6 +724,8 @@ const FfiConverterTypeEmbeddedDriverHostOptions = (() => {
716
724
  startupTimeoutMs: FfiConverterOptionalUInt64.read(from),
717
725
  shutdownTimeoutMs: FfiConverterOptionalUInt64.read(from),
718
726
  permissionMode: FfiConverterOptionalTypeEmbeddedPermissionMode.read(from),
727
+ capabilityManifestPath: FfiConverterOptionalString.read(from),
728
+ approveCapabilityManifest: FfiConverterBool.read(from),
719
729
  sessionPolicyPath: FfiConverterOptionalString.read(from),
720
730
  approveSessionPolicy: FfiConverterBool.read(from),
721
731
  dangerouslyBypassApprovals: FfiConverterBool.read(from),
@@ -730,6 +740,8 @@ const FfiConverterTypeEmbeddedDriverHostOptions = (() => {
730
740
  FfiConverterOptionalUInt64.write(value.startupTimeoutMs, into);
731
741
  FfiConverterOptionalUInt64.write(value.shutdownTimeoutMs, into);
732
742
  FfiConverterOptionalTypeEmbeddedPermissionMode.write(value.permissionMode, into);
743
+ FfiConverterOptionalString.write(value.capabilityManifestPath, into);
744
+ FfiConverterBool.write(value.approveCapabilityManifest, into);
733
745
  FfiConverterOptionalString.write(value.sessionPolicyPath, into);
734
746
  FfiConverterBool.write(value.approveSessionPolicy, into);
735
747
  FfiConverterBool.write(value.dangerouslyBypassApprovals, into);
@@ -743,6 +755,8 @@ const FfiConverterTypeEmbeddedDriverHostOptions = (() => {
743
755
  FfiConverterOptionalUInt64.allocationSize(value.startupTimeoutMs) +
744
756
  FfiConverterOptionalUInt64.allocationSize(value.shutdownTimeoutMs) +
745
757
  FfiConverterOptionalTypeEmbeddedPermissionMode.allocationSize(value.permissionMode) +
758
+ FfiConverterOptionalString.allocationSize(value.capabilityManifestPath) +
759
+ FfiConverterBool.allocationSize(value.approveCapabilityManifest) +
746
760
  FfiConverterOptionalString.allocationSize(value.sessionPolicyPath) +
747
761
  FfiConverterBool.allocationSize(value.approveSessionPolicy) +
748
762
  FfiConverterBool.allocationSize(value.dangerouslyBypassApprovals) +
@@ -929,7 +943,9 @@ const FfiConverterTypeToolResult = (() => {
929
943
  * Generated factory for {@link TrustedSessionOptions} record objects.
930
944
  */
931
945
  export const TrustedSessionOptions = (() => {
932
- const defaults = () => ({});
946
+ const defaults = () => ({
947
+ capabilityManifestPath: undefined,
948
+ });
933
949
  const create = (() => {
934
950
  return uniffiCreateRecord(defaults);
935
951
  })();
@@ -947,6 +963,7 @@ const FfiConverterTypeTrustedSessionOptions = (() => {
947
963
  mode: FfiConverterTypeSessionPermissionMode.read(from),
948
964
  ttlSeconds: FfiConverterUInt64.read(from),
949
965
  idleTtlSeconds: FfiConverterUInt64.read(from),
966
+ capabilityManifestPath: FfiConverterOptionalString.read(from),
950
967
  boundedManifestPath: FfiConverterOptionalString.read(from)
951
968
  };
952
969
  }
@@ -955,6 +972,7 @@ const FfiConverterTypeTrustedSessionOptions = (() => {
955
972
  FfiConverterTypeSessionPermissionMode.write(value.mode, into);
956
973
  FfiConverterUInt64.write(value.ttlSeconds, into);
957
974
  FfiConverterUInt64.write(value.idleTtlSeconds, into);
975
+ FfiConverterOptionalString.write(value.capabilityManifestPath, into);
958
976
  FfiConverterOptionalString.write(value.boundedManifestPath, into);
959
977
  }
960
978
  allocationSize(value) {
@@ -962,6 +980,7 @@ const FfiConverterTypeTrustedSessionOptions = (() => {
962
980
  FfiConverterTypeSessionPermissionMode.allocationSize(value.mode) +
963
981
  FfiConverterUInt64.allocationSize(value.ttlSeconds) +
964
982
  FfiConverterUInt64.allocationSize(value.idleTtlSeconds) +
983
+ FfiConverterOptionalString.allocationSize(value.capabilityManifestPath) +
965
984
  FfiConverterOptionalString.allocationSize(value.boundedManifestPath);
966
985
  }
967
986
  }
@@ -2471,6 +2490,35 @@ export class CuaDriver extends UniffiAbstractObject {
2471
2490
  throw __error;
2472
2491
  }
2473
2492
  }
2493
+ async getSession(input, asyncOpts_) {
2494
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
2495
+ try {
2496
+ return await uniffiRustCallAsync(
2497
+ /*rustCaller:*/ uniffiCaller,
2498
+ /*rustFutureFunc:*/ () => {
2499
+ return nativeModule().uniffi_cua_driver_sdk_fn_method_cuadriver_get_session(uniffiTypeCuaDriverObjectFactory.clonePointer(this), FfiConverterTypeGetSessionInput.lower(input, nativeModule().rustbuffer_alloc));
2500
+ },
2501
+ /*pollFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_poll_rust_buffer,
2502
+ /*cancelFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_cancel_rust_buffer,
2503
+ /*completeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_complete_rust_buffer,
2504
+ /*freeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_free_rust_buffer,
2505
+ // Async returns always go through the JS-side converter: the
2506
+ // FFI symbol returns the future handle (u64), and the user-level
2507
+ // RustBuffer comes back via the shared `rust_future_complete_*`
2508
+ // export. The bytes the runtime hands back must be deserialized
2509
+ // here using the per-callable return-type converter.
2510
+ /*liftFunc:*/ FfiConverterTypeSessionOutput.lift.bind(FfiConverterTypeSessionOutput),
2511
+ /*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
2512
+ /*asyncOpts:*/ asyncOpts_,
2513
+ /*errorHandler:*/ FfiConverterTypeDriverError.lift.bind(FfiConverterTypeDriverError));
2514
+ }
2515
+ catch (__error) {
2516
+ if (uniffiIsDebug && __error instanceof Error) {
2517
+ __error.stack = __stack;
2518
+ }
2519
+ throw __error;
2520
+ }
2521
+ }
2474
2522
  async getSessionState(input, asyncOpts_) {
2475
2523
  const __stack = uniffiIsDebug ? new Error().stack : undefined;
2476
2524
  try {
@@ -2565,6 +2613,69 @@ export class CuaDriver extends UniffiAbstractObject {
2565
2613
  },
2566
2614
  /*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
2567
2615
  }
2616
+ /**
2617
+ * Content-free lifecycle summaries for the trusted host's runtime or
2618
+ * host-lease namespace. This is deliberately separate from the
2619
+ * agent-facing `list_sessions` tool, whose view is transport scoped.
2620
+ */
2621
+ async listHostSessionsJson(asyncOpts_) {
2622
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
2623
+ try {
2624
+ return await uniffiRustCallAsync(
2625
+ /*rustCaller:*/ uniffiCaller,
2626
+ /*rustFutureFunc:*/ () => {
2627
+ return nativeModule().uniffi_cua_driver_sdk_fn_method_cuadriver_list_host_sessions_json(uniffiTypeCuaDriverObjectFactory.clonePointer(this));
2628
+ },
2629
+ /*pollFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_poll_rust_buffer,
2630
+ /*cancelFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_cancel_rust_buffer,
2631
+ /*completeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_complete_rust_buffer,
2632
+ /*freeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_free_rust_buffer,
2633
+ // Async returns always go through the JS-side converter: the
2634
+ // FFI symbol returns the future handle (u64), and the user-level
2635
+ // RustBuffer comes back via the shared `rust_future_complete_*`
2636
+ // export. The bytes the runtime hands back must be deserialized
2637
+ // here using the per-callable return-type converter.
2638
+ /*liftFunc:*/ FfiConverterString.lift.bind(FfiConverterString),
2639
+ /*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
2640
+ /*asyncOpts:*/ asyncOpts_,
2641
+ /*errorHandler:*/ FfiConverterTypeDriverError.lift.bind(FfiConverterTypeDriverError));
2642
+ }
2643
+ catch (__error) {
2644
+ if (uniffiIsDebug && __error instanceof Error) {
2645
+ __error.stack = __stack;
2646
+ }
2647
+ throw __error;
2648
+ }
2649
+ }
2650
+ async listSessions(input, asyncOpts_) {
2651
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
2652
+ try {
2653
+ return await uniffiRustCallAsync(
2654
+ /*rustCaller:*/ uniffiCaller,
2655
+ /*rustFutureFunc:*/ () => {
2656
+ return nativeModule().uniffi_cua_driver_sdk_fn_method_cuadriver_list_sessions(uniffiTypeCuaDriverObjectFactory.clonePointer(this), FfiConverterTypeListSessionsInput.lower(input, nativeModule().rustbuffer_alloc));
2657
+ },
2658
+ /*pollFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_poll_rust_buffer,
2659
+ /*cancelFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_cancel_rust_buffer,
2660
+ /*completeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_complete_rust_buffer,
2661
+ /*freeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_free_rust_buffer,
2662
+ // Async returns always go through the JS-side converter: the
2663
+ // FFI symbol returns the future handle (u64), and the user-level
2664
+ // RustBuffer comes back via the shared `rust_future_complete_*`
2665
+ // export. The bytes the runtime hands back must be deserialized
2666
+ // here using the per-callable return-type converter.
2667
+ /*liftFunc:*/ FfiConverterTypeListSessionsOutput.lift.bind(FfiConverterTypeListSessionsOutput),
2668
+ /*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
2669
+ /*asyncOpts:*/ asyncOpts_,
2670
+ /*errorHandler:*/ FfiConverterTypeDriverError.lift.bind(FfiConverterTypeDriverError));
2671
+ }
2672
+ catch (__error) {
2673
+ if (uniffiIsDebug && __error instanceof Error) {
2674
+ __error.stack = __stack;
2675
+ }
2676
+ throw __error;
2677
+ }
2678
+ }
2568
2679
  /**
2569
2680
  * Canonical tool inventory for MCP and other protocol adapters.
2570
2681
  */
@@ -3382,6 +3493,35 @@ export class CuaDriverSession extends UniffiAbstractObject {
3382
3493
  throw __error;
3383
3494
  }
3384
3495
  }
3496
+ async getSession(input, asyncOpts_) {
3497
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3498
+ try {
3499
+ return await uniffiRustCallAsync(
3500
+ /*rustCaller:*/ uniffiCaller,
3501
+ /*rustFutureFunc:*/ () => {
3502
+ return nativeModule().uniffi_cua_driver_sdk_fn_method_cuadriversession_get_session(uniffiTypeCuaDriverSessionObjectFactory.clonePointer(this), FfiConverterTypeGetSessionInput.lower(input, nativeModule().rustbuffer_alloc));
3503
+ },
3504
+ /*pollFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_poll_rust_buffer,
3505
+ /*cancelFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_cancel_rust_buffer,
3506
+ /*completeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_complete_rust_buffer,
3507
+ /*freeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_free_rust_buffer,
3508
+ // Async returns always go through the JS-side converter: the
3509
+ // FFI symbol returns the future handle (u64), and the user-level
3510
+ // RustBuffer comes back via the shared `rust_future_complete_*`
3511
+ // export. The bytes the runtime hands back must be deserialized
3512
+ // here using the per-callable return-type converter.
3513
+ /*liftFunc:*/ FfiConverterTypeSessionOutput.lift.bind(FfiConverterTypeSessionOutput),
3514
+ /*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
3515
+ /*asyncOpts:*/ asyncOpts_,
3516
+ /*errorHandler:*/ FfiConverterTypeDriverError.lift.bind(FfiConverterTypeDriverError));
3517
+ }
3518
+ catch (__error) {
3519
+ if (uniffiIsDebug && __error instanceof Error) {
3520
+ __error.stack = __stack;
3521
+ }
3522
+ throw __error;
3523
+ }
3524
+ }
3385
3525
  async getSessionState(input, asyncOpts_) {
3386
3526
  const __stack = uniffiIsDebug ? new Error().stack : undefined;
3387
3527
  try {
@@ -3469,6 +3609,35 @@ export class CuaDriverSession extends UniffiAbstractObject {
3469
3609
  throw __error;
3470
3610
  }
3471
3611
  }
3612
+ async listSessions(input, asyncOpts_) {
3613
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3614
+ try {
3615
+ return await uniffiRustCallAsync(
3616
+ /*rustCaller:*/ uniffiCaller,
3617
+ /*rustFutureFunc:*/ () => {
3618
+ return nativeModule().uniffi_cua_driver_sdk_fn_method_cuadriversession_list_sessions(uniffiTypeCuaDriverSessionObjectFactory.clonePointer(this), FfiConverterTypeListSessionsInput.lower(input, nativeModule().rustbuffer_alloc));
3619
+ },
3620
+ /*pollFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_poll_rust_buffer,
3621
+ /*cancelFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_cancel_rust_buffer,
3622
+ /*completeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_complete_rust_buffer,
3623
+ /*freeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_free_rust_buffer,
3624
+ // Async returns always go through the JS-side converter: the
3625
+ // FFI symbol returns the future handle (u64), and the user-level
3626
+ // RustBuffer comes back via the shared `rust_future_complete_*`
3627
+ // export. The bytes the runtime hands back must be deserialized
3628
+ // here using the per-callable return-type converter.
3629
+ /*liftFunc:*/ FfiConverterTypeListSessionsOutput.lift.bind(FfiConverterTypeListSessionsOutput),
3630
+ /*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
3631
+ /*asyncOpts:*/ asyncOpts_,
3632
+ /*errorHandler:*/ FfiConverterTypeDriverError.lift.bind(FfiConverterTypeDriverError));
3633
+ }
3634
+ catch (__error) {
3635
+ if (uniffiIsDebug && __error instanceof Error) {
3636
+ __error.stack = __stack;
3637
+ }
3638
+ throw __error;
3639
+ }
3640
+ }
3472
3641
  async moveCursor(input, asyncOpts_) {
3473
3642
  const __stack = uniffiIsDebug ? new Error().stack : undefined;
3474
3643
  try {
@@ -4462,6 +4631,9 @@ function uniffiEnsureInitialized() {
4462
4631
  if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_get_screen_size() !== 55616) {
4463
4632
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriver_get_screen_size");
4464
4633
  }
4634
+ if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_get_session() !== 17834) {
4635
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriver_get_session");
4636
+ }
4465
4637
  if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_get_session_state() !== 49966) {
4466
4638
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriver_get_session_state");
4467
4639
  }
@@ -4474,6 +4646,12 @@ function uniffiEnsureInitialized() {
4474
4646
  if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_is_available() !== 42961) {
4475
4647
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriver_is_available");
4476
4648
  }
4649
+ if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_list_host_sessions_json() !== 13193) {
4650
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriver_list_host_sessions_json");
4651
+ }
4652
+ if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_list_sessions() !== 40131) {
4653
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriver_list_sessions");
4654
+ }
4477
4655
  if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_list_tools_json() !== 33039) {
4478
4656
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriver_list_tools_json");
4479
4657
  }
@@ -4555,6 +4733,9 @@ function uniffiEnsureInitialized() {
4555
4733
  if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriversession_get_screen_size() !== 9763) {
4556
4734
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriversession_get_screen_size");
4557
4735
  }
4736
+ if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriversession_get_session() !== 54666) {
4737
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriversession_get_session");
4738
+ }
4558
4739
  if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriversession_get_session_state() !== 55370) {
4559
4740
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriversession_get_session_state");
4560
4741
  }
@@ -4564,6 +4745,9 @@ function uniffiEnsureInitialized() {
4564
4745
  if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriversession_invoke_menu() !== 2742) {
4565
4746
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriversession_invoke_menu");
4566
4747
  }
4748
+ if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriversession_list_sessions() !== 32840) {
4749
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriversession_list_sessions");
4750
+ }
4567
4751
  if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriversession_move_cursor() !== 35768) {
4568
4752
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriversession_move_cursor");
4569
4753
  }