@trycua/cua-driver 0.34.1 → 0.35.2

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.
@@ -500,30 +500,38 @@ export declare const ClipboardWriteOutput: Readonly<{
500
500
  defaults: () => Partial<ClipboardWriteOutput>;
501
501
  }>;
502
502
  /**
503
- * Per-effect overrides for the agent cursor. Unset fields are omitted on the wire, so they
504
- * keep their current setting.
503
+ * One cursor effect: `on`, `off`, or `default` (the style's own setting).
504
+ */
505
+ export declare enum CursorEffectSetting {
506
+ On = 0,
507
+ Off = 1,
508
+ Default = 2
509
+ }
510
+ /**
511
+ * Per-effect overrides for the agent cursor. An omitted field keeps the current setting.
512
+ * `on` and `off` set it; `default` restores the style default.
505
513
  */
506
514
  export type CursorMotionEffects = {
507
515
  /**
508
516
  * Short fading trail behind the cursor.
509
517
  */
510
- trail?: boolean;
518
+ trail?: CursorEffectSetting | boolean;
511
519
  /**
512
520
  * Soft glow around the cursor that grows with speed.
513
521
  */
514
- glow?: boolean;
522
+ glow?: CursorEffectSetting | boolean;
515
523
  /**
516
524
  * Target glow when the `magnetic` style locks on.
517
525
  */
518
- magnet?: boolean;
526
+ magnet?: CursorEffectSetting | boolean;
519
527
  /**
520
528
  * Ring that expands from the hotspot on click.
521
529
  */
522
- ripple?: boolean;
530
+ ripple?: CursorEffectSetting | boolean;
523
531
  /**
524
532
  * Brief scale-down of the cursor on click.
525
533
  */
526
- squish?: boolean;
534
+ squish?: CursorEffectSetting | boolean;
527
535
  };
528
536
  /**
529
537
  * Generated factory for {@link CursorMotionEffects} record objects.
@@ -562,7 +570,11 @@ export declare enum CursorMotionStyle {
562
570
  export declare enum CursorMotionTiming {
563
571
  Native = 0,
564
572
  Fitts = 1,
565
- Fixed = 2
573
+ Fixed = 2,
574
+ Relaxed = 3,
575
+ Steady = 4,
576
+ Calm = 5,
577
+ Deliberate = 6
566
578
  }
567
579
  export type CursorMotionOutput = {
568
580
  startHandle: number;
@@ -611,13 +623,15 @@ export type CursorMotionSelection = {
611
623
  */
612
624
  style?: CursorMotionStyle;
613
625
  /**
626
+ * `steady` (default) keeps the style's timing but makes every move take at least 600 ms,
627
+ * with a gentler ease; `relaxed` and `calm` do the same with a 450 or 750 ms floor.
614
628
  * `native` uses the style's own timing; `fitts` scales the move time with distance and
615
- * target size; `fixed` uses glide_duration_ms (1430 ms when 0).
629
+ * target size; `deliberate` is a slower Fitts curve (450..1300 ms); `fixed` uses
630
+ * glide_duration_ms (1430 ms when 0).
616
631
  */
617
632
  timing?: CursorMotionTiming;
618
633
  /**
619
- * Turn single effects on or off. An omitted effect keeps its current setting; null
620
- * restores the style's default.
634
+ * Turn effects on or off. Omit a field to keep it; `"default"` restores the style default.
621
635
  */
622
636
  effects?: CursorMotionEffects;
623
637
  /**
@@ -647,7 +661,8 @@ export type CursorMotionSelection = {
647
661
  spring?: number;
648
662
  /**
649
663
  * Move duration in milliseconds for `fixed` timing (1430 ms when 0, the default). A
650
- * nonzero value with `native` timing also fixes the duration. Clamped to 0..5000.
664
+ * nonzero value with `native` or the default `steady` timing also fixes the duration.
665
+ * Clamped to 0..5000.
651
666
  */
652
667
  glideDurationMs?: number;
653
668
  /**
@@ -1026,13 +1041,31 @@ export type GetWindowStateInput = {
1026
1041
  * partial tree flagged `truncated` rather than failing.
1027
1042
  */
1028
1043
  timeoutMs?: number;
1044
+ /**
1045
+ * Tree representation to return: `markdown` (default), `elements`, or
1046
+ * `both`.
1047
+ */
1048
+ treeFormat?: string;
1049
+ /**
1050
+ * Return only what changed since this earlier `snapshot_id`.
1051
+ */
1052
+ since?: string;
1053
+ /**
1054
+ * Include `_note` and the full `background_input` report.
1055
+ */
1056
+ verbose?: boolean;
1057
+ /**
1058
+ * Restore the previous full response (both representations, all
1059
+ * metadata, platform walk limits).
1060
+ */
1061
+ fullOutput?: boolean;
1029
1062
  };
1030
1063
  /**
1031
1064
  * Generated factory for {@link GetWindowStateInput} record objects.
1032
1065
  */
1033
1066
  export declare const GetWindowStateInput: Readonly<{
1034
- create: (partial: Partial<GetWindowStateInput> & Required<Omit<GetWindowStateInput, "session" | "screenshotOutFile" | "maxImageDimension" | "query" | "includeAccessibilityTree" | "includeScreenshot" | "maxElements" | "maxDepth" | "maxDimension" | "timeoutMs">>) => GetWindowStateInput;
1035
- new: (partial: Partial<GetWindowStateInput> & Required<Omit<GetWindowStateInput, "session" | "screenshotOutFile" | "maxImageDimension" | "query" | "includeAccessibilityTree" | "includeScreenshot" | "maxElements" | "maxDepth" | "maxDimension" | "timeoutMs">>) => GetWindowStateInput;
1067
+ create: (partial: Partial<GetWindowStateInput> & Required<Omit<GetWindowStateInput, "session" | "screenshotOutFile" | "maxImageDimension" | "query" | "includeAccessibilityTree" | "includeScreenshot" | "maxElements" | "maxDepth" | "maxDimension" | "timeoutMs" | "treeFormat" | "since" | "verbose" | "fullOutput">>) => GetWindowStateInput;
1068
+ new: (partial: Partial<GetWindowStateInput> & Required<Omit<GetWindowStateInput, "session" | "screenshotOutFile" | "maxImageDimension" | "query" | "includeAccessibilityTree" | "includeScreenshot" | "maxElements" | "maxDepth" | "maxDimension" | "timeoutMs" | "treeFormat" | "since" | "verbose" | "fullOutput">>) => GetWindowStateInput;
1036
1069
  defaults: () => Partial<GetWindowStateInput>;
1037
1070
  }>;
1038
1071
  export type HotkeyInput = {
@@ -1881,13 +1914,15 @@ export type SetAgentCursorMotionInput = {
1881
1914
  */
1882
1915
  style?: CursorMotionStyle;
1883
1916
  /**
1917
+ * `steady` (default) keeps the style's timing but makes every move take at least 600 ms,
1918
+ * with a gentler ease; `relaxed` and `calm` do the same with a 450 or 750 ms floor.
1884
1919
  * `native` uses the style's own timing; `fitts` scales the move time with distance and
1885
- * target size; `fixed` uses glide_duration_ms (1430 ms when 0).
1920
+ * target size; `deliberate` is a slower Fitts curve (450..1300 ms); `fixed` uses
1921
+ * glide_duration_ms (1430 ms when 0).
1886
1922
  */
1887
1923
  timing?: CursorMotionTiming;
1888
1924
  /**
1889
- * Turn single effects on or off. An omitted effect keeps its current setting; null
1890
- * restores the style's default.
1925
+ * Turn effects on or off. Omit a field to keep it; `"default"` restores the style default.
1891
1926
  */
1892
1927
  effects?: CursorMotionEffects;
1893
1928
  /**
@@ -1917,7 +1952,8 @@ export type SetAgentCursorMotionInput = {
1917
1952
  spring?: number;
1918
1953
  /**
1919
1954
  * Move duration in milliseconds for `fixed` timing (1430 ms when 0, the default). A
1920
- * nonzero value with `native` timing also fixes the duration. Clamped to 0..5000.
1955
+ * nonzero value with `native` or the default `steady` timing also fixes the duration.
1956
+ * Clamped to 0..5000.
1921
1957
  */
1922
1958
  glideDurationMs?: number;
1923
1959
  /**
@@ -2276,6 +2312,29 @@ export type WindowStateOutput = {
2276
2312
  degradedReason?: string;
2277
2313
  truncated?: boolean;
2278
2314
  truncationReason?: string;
2315
+ /**
2316
+ * Plain-language line saying the tree was cut at `max_elements` and how
2317
+ * to read more.
2318
+ */
2319
+ truncationHint?: string;
2320
+ /**
2321
+ * Which representation this response carries.
2322
+ */
2323
+ treeFormat?: string;
2324
+ /**
2325
+ * The `since` snapshot_id the caller asked to diff against.
2326
+ */
2327
+ since?: string;
2328
+ /**
2329
+ * `diff`, `no_change`, or the reason a full read was returned instead
2330
+ * (`unknown_snapshot`, `other_window`, `view_changed`, `too_much_changed`,
2331
+ * `diff_too_large`, `no_snapshot`).
2332
+ */
2333
+ sinceStatus?: string;
2334
+ /**
2335
+ * Added/changed/removed rows against `since`, one per line.
2336
+ */
2337
+ treeDiff?: string;
2279
2338
  screenshotWidth?: number;
2280
2339
  screenshotHeight?: number;
2281
2340
  screenshotScale?: number;
@@ -2292,8 +2351,8 @@ export type WindowStateOutput = {
2292
2351
  * Generated factory for {@link WindowStateOutput} record objects.
2293
2352
  */
2294
2353
  export declare const WindowStateOutput: Readonly<{
2295
- create: (partial: Partial<WindowStateOutput> & Required<Omit<WindowStateOutput, "appName" | "snapshotId" | "windowTitle" | "treeMarkdown" | "elements" | "elementCount" | "totalElementCount" | "returnedElementCount" | "filteredElementCount" | "elementsComplete" | "degraded" | "degradedReason" | "truncated" | "truncationReason" | "screenshotWidth" | "screenshotHeight" | "screenshotScale" | "screenshotMimeType" | "screenshotFilePath" | "screenshotFrameValid" | "windowBounds">>) => WindowStateOutput;
2296
- new: (partial: Partial<WindowStateOutput> & Required<Omit<WindowStateOutput, "appName" | "snapshotId" | "windowTitle" | "treeMarkdown" | "elements" | "elementCount" | "totalElementCount" | "returnedElementCount" | "filteredElementCount" | "elementsComplete" | "degraded" | "degradedReason" | "truncated" | "truncationReason" | "screenshotWidth" | "screenshotHeight" | "screenshotScale" | "screenshotMimeType" | "screenshotFilePath" | "screenshotFrameValid" | "windowBounds">>) => WindowStateOutput;
2354
+ create: (partial: Partial<WindowStateOutput> & Required<Omit<WindowStateOutput, "treeFormat" | "since" | "appName" | "snapshotId" | "windowTitle" | "treeMarkdown" | "elements" | "elementCount" | "totalElementCount" | "returnedElementCount" | "filteredElementCount" | "elementsComplete" | "degraded" | "degradedReason" | "truncated" | "truncationReason" | "truncationHint" | "sinceStatus" | "treeDiff" | "screenshotWidth" | "screenshotHeight" | "screenshotScale" | "screenshotMimeType" | "screenshotFilePath" | "screenshotFrameValid" | "windowBounds">>) => WindowStateOutput;
2355
+ new: (partial: Partial<WindowStateOutput> & Required<Omit<WindowStateOutput, "treeFormat" | "since" | "appName" | "snapshotId" | "windowTitle" | "treeMarkdown" | "elements" | "elementCount" | "totalElementCount" | "returnedElementCount" | "filteredElementCount" | "elementsComplete" | "degraded" | "degradedReason" | "truncated" | "truncationReason" | "truncationHint" | "sinceStatus" | "treeDiff" | "screenshotWidth" | "screenshotHeight" | "screenshotScale" | "screenshotMimeType" | "screenshotFilePath" | "screenshotFrameValid" | "windowBounds">>) => WindowStateOutput;
2297
2356
  defaults: () => Partial<WindowStateOutput>;
2298
2357
  }>;
2299
2358
  export declare enum Platform {
@@ -2476,6 +2535,13 @@ declare const _default: Readonly<{
2476
2535
  lift(value: UniffiByteArray): CursorAction;
2477
2536
  lower(value: CursorAction, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
2478
2537
  };
2538
+ FfiConverterTypeCursorEffectSetting: {
2539
+ read(from: RustBuffer): boolean | CursorEffectSetting;
2540
+ write(value: boolean | CursorEffectSetting, into: RustBuffer): void;
2541
+ allocationSize(value: boolean | CursorEffectSetting): number;
2542
+ lift(value: UniffiByteArray): boolean | CursorEffectSetting;
2543
+ lower(value: boolean | CursorEffectSetting, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
2544
+ };
2479
2545
  FfiConverterTypeCursorMotionEffects: {
2480
2546
  read(from: RustBuffer): CursorMotionEffects;
2481
2547
  write(value: CursorMotionEffects, into: RustBuffer): void;
@@ -1032,6 +1032,42 @@ const FfiConverterTypeClipboardWriteOutput = (() => {
1032
1032
  ;
1033
1033
  return new FFIConverter();
1034
1034
  })();
1035
+ /**
1036
+ * One cursor effect: `on`, `off`, or `default` (the style's own setting).
1037
+ */
1038
+ export var CursorEffectSetting;
1039
+ (function (CursorEffectSetting) {
1040
+ CursorEffectSetting[CursorEffectSetting["On"] = 0] = "On";
1041
+ CursorEffectSetting[CursorEffectSetting["Off"] = 1] = "Off";
1042
+ CursorEffectSetting[CursorEffectSetting["Default"] = 2] = "Default";
1043
+ })(CursorEffectSetting || (CursorEffectSetting = {}));
1044
+ const FfiConverterTypeCursorEffectSetting = (() => {
1045
+ const ordinalConverter = FfiConverterInt32;
1046
+ class FFIConverter extends AbstractFfiConverterByteArray {
1047
+ read(from) {
1048
+ switch (ordinalConverter.read(from)) {
1049
+ case 1: return CursorEffectSetting.On;
1050
+ case 2: return CursorEffectSetting.Off;
1051
+ case 3: return CursorEffectSetting.Default;
1052
+ default: throw new UniffiInternalError.UnexpectedEnumCase();
1053
+ }
1054
+ }
1055
+ write(value, into) {
1056
+ if (typeof value === "boolean")
1057
+ value = value ? CursorEffectSetting.On : CursorEffectSetting.Off;
1058
+ switch (value) {
1059
+ case CursorEffectSetting.On: return ordinalConverter.write(1, into);
1060
+ case CursorEffectSetting.Off: return ordinalConverter.write(2, into);
1061
+ case CursorEffectSetting.Default: return ordinalConverter.write(3, into);
1062
+ default: throw new UniffiInternalError.UnexpectedEnumCase();
1063
+ }
1064
+ }
1065
+ allocationSize(value) {
1066
+ return ordinalConverter.allocationSize(0);
1067
+ }
1068
+ }
1069
+ return new FFIConverter();
1070
+ })();
1035
1071
  /**
1036
1072
  * Generated factory for {@link CursorMotionEffects} record objects.
1037
1073
  */
@@ -1050,26 +1086,26 @@ const FfiConverterTypeCursorMotionEffects = (() => {
1050
1086
  class FFIConverter extends AbstractFfiConverterByteArray {
1051
1087
  read(from) {
1052
1088
  return {
1053
- trail: FfiConverterOptionalBoolean.read(from),
1054
- glow: FfiConverterOptionalBoolean.read(from),
1055
- magnet: FfiConverterOptionalBoolean.read(from),
1056
- ripple: FfiConverterOptionalBoolean.read(from),
1057
- squish: FfiConverterOptionalBoolean.read(from)
1089
+ trail: FfiConverterOptionalTypeCursorEffectSetting.read(from),
1090
+ glow: FfiConverterOptionalTypeCursorEffectSetting.read(from),
1091
+ magnet: FfiConverterOptionalTypeCursorEffectSetting.read(from),
1092
+ ripple: FfiConverterOptionalTypeCursorEffectSetting.read(from),
1093
+ squish: FfiConverterOptionalTypeCursorEffectSetting.read(from)
1058
1094
  };
1059
1095
  }
1060
1096
  write(value, into) {
1061
- FfiConverterOptionalBoolean.write(value.trail, into);
1062
- FfiConverterOptionalBoolean.write(value.glow, into);
1063
- FfiConverterOptionalBoolean.write(value.magnet, into);
1064
- FfiConverterOptionalBoolean.write(value.ripple, into);
1065
- FfiConverterOptionalBoolean.write(value.squish, into);
1097
+ FfiConverterOptionalTypeCursorEffectSetting.write(value.trail, into);
1098
+ FfiConverterOptionalTypeCursorEffectSetting.write(value.glow, into);
1099
+ FfiConverterOptionalTypeCursorEffectSetting.write(value.magnet, into);
1100
+ FfiConverterOptionalTypeCursorEffectSetting.write(value.ripple, into);
1101
+ FfiConverterOptionalTypeCursorEffectSetting.write(value.squish, into);
1066
1102
  }
1067
1103
  allocationSize(value) {
1068
- return FfiConverterOptionalBoolean.allocationSize(value.trail) +
1069
- FfiConverterOptionalBoolean.allocationSize(value.glow) +
1070
- FfiConverterOptionalBoolean.allocationSize(value.magnet) +
1071
- FfiConverterOptionalBoolean.allocationSize(value.ripple) +
1072
- FfiConverterOptionalBoolean.allocationSize(value.squish);
1104
+ return FfiConverterOptionalTypeCursorEffectSetting.allocationSize(value.trail) +
1105
+ FfiConverterOptionalTypeCursorEffectSetting.allocationSize(value.glow) +
1106
+ FfiConverterOptionalTypeCursorEffectSetting.allocationSize(value.magnet) +
1107
+ FfiConverterOptionalTypeCursorEffectSetting.allocationSize(value.ripple) +
1108
+ FfiConverterOptionalTypeCursorEffectSetting.allocationSize(value.squish);
1073
1109
  }
1074
1110
  }
1075
1111
  ;
@@ -1162,6 +1198,10 @@ export var CursorMotionTiming;
1162
1198
  CursorMotionTiming[CursorMotionTiming["Native"] = 0] = "Native";
1163
1199
  CursorMotionTiming[CursorMotionTiming["Fitts"] = 1] = "Fitts";
1164
1200
  CursorMotionTiming[CursorMotionTiming["Fixed"] = 2] = "Fixed";
1201
+ CursorMotionTiming[CursorMotionTiming["Relaxed"] = 3] = "Relaxed";
1202
+ CursorMotionTiming[CursorMotionTiming["Steady"] = 4] = "Steady";
1203
+ CursorMotionTiming[CursorMotionTiming["Calm"] = 5] = "Calm";
1204
+ CursorMotionTiming[CursorMotionTiming["Deliberate"] = 6] = "Deliberate";
1165
1205
  })(CursorMotionTiming || (CursorMotionTiming = {}));
1166
1206
  const FfiConverterTypeCursorMotionTiming = (() => {
1167
1207
  const ordinalConverter = FfiConverterInt32;
@@ -1171,6 +1211,10 @@ const FfiConverterTypeCursorMotionTiming = (() => {
1171
1211
  case 1: return CursorMotionTiming.Native;
1172
1212
  case 2: return CursorMotionTiming.Fitts;
1173
1213
  case 3: return CursorMotionTiming.Fixed;
1214
+ case 4: return CursorMotionTiming.Relaxed;
1215
+ case 5: return CursorMotionTiming.Steady;
1216
+ case 6: return CursorMotionTiming.Calm;
1217
+ case 7: return CursorMotionTiming.Deliberate;
1174
1218
  default: throw new UniffiInternalError.UnexpectedEnumCase();
1175
1219
  }
1176
1220
  }
@@ -1179,6 +1223,10 @@ const FfiConverterTypeCursorMotionTiming = (() => {
1179
1223
  case CursorMotionTiming.Native: return ordinalConverter.write(1, into);
1180
1224
  case CursorMotionTiming.Fitts: return ordinalConverter.write(2, into);
1181
1225
  case CursorMotionTiming.Fixed: return ordinalConverter.write(3, into);
1226
+ case CursorMotionTiming.Relaxed: return ordinalConverter.write(4, into);
1227
+ case CursorMotionTiming.Steady: return ordinalConverter.write(5, into);
1228
+ case CursorMotionTiming.Calm: return ordinalConverter.write(6, into);
1229
+ case CursorMotionTiming.Deliberate: return ordinalConverter.write(7, into);
1182
1230
  }
1183
1231
  }
1184
1232
  allocationSize(value) {
@@ -2144,7 +2192,11 @@ const FfiConverterTypeGetSessionStateInput = (() => {
2144
2192
  */
2145
2193
  export const GetWindowStateInput = (() => {
2146
2194
  const defaults = () => ({
2147
- timeoutMs: undefined
2195
+ timeoutMs: undefined,
2196
+ treeFormat: undefined,
2197
+ since: undefined,
2198
+ verbose: undefined,
2199
+ fullOutput: undefined
2148
2200
  });
2149
2201
  const create = (() => {
2150
2202
  return uniffiCreateRecord(defaults);
@@ -2170,7 +2222,11 @@ const FfiConverterTypeGetWindowStateInput = (() => {
2170
2222
  maxDepth: FfiConverterOptionalUInt32.read(from),
2171
2223
  maxDimension: FfiConverterOptionalUInt32.read(from),
2172
2224
  maxImageDimension: FfiConverterOptionalUInt32.read(from),
2173
- timeoutMs: FfiConverterOptionalUInt32.read(from)
2225
+ timeoutMs: FfiConverterOptionalUInt32.read(from),
2226
+ treeFormat: FfiConverterOptionalString.read(from),
2227
+ since: FfiConverterOptionalString.read(from),
2228
+ verbose: FfiConverterOptionalBoolean.read(from),
2229
+ fullOutput: FfiConverterOptionalBoolean.read(from)
2174
2230
  };
2175
2231
  }
2176
2232
  write(value, into) {
@@ -2186,6 +2242,10 @@ const FfiConverterTypeGetWindowStateInput = (() => {
2186
2242
  FfiConverterOptionalUInt32.write(value.maxDimension, into);
2187
2243
  FfiConverterOptionalUInt32.write(value.maxImageDimension, into);
2188
2244
  FfiConverterOptionalUInt32.write(value.timeoutMs, into);
2245
+ FfiConverterOptionalString.write(value.treeFormat, into);
2246
+ FfiConverterOptionalString.write(value.since, into);
2247
+ FfiConverterOptionalBoolean.write(value.verbose, into);
2248
+ FfiConverterOptionalBoolean.write(value.fullOutput, into);
2189
2249
  }
2190
2250
  allocationSize(value) {
2191
2251
  return FfiConverterUInt32.allocationSize(value.pid) +
@@ -2199,7 +2259,11 @@ const FfiConverterTypeGetWindowStateInput = (() => {
2199
2259
  FfiConverterOptionalUInt32.allocationSize(value.maxDepth) +
2200
2260
  FfiConverterOptionalUInt32.allocationSize(value.maxDimension) +
2201
2261
  FfiConverterOptionalUInt32.allocationSize(value.maxImageDimension) +
2202
- FfiConverterOptionalUInt32.allocationSize(value.timeoutMs);
2262
+ FfiConverterOptionalUInt32.allocationSize(value.timeoutMs) +
2263
+ FfiConverterOptionalString.allocationSize(value.treeFormat) +
2264
+ FfiConverterOptionalString.allocationSize(value.since) +
2265
+ FfiConverterOptionalBoolean.allocationSize(value.verbose) +
2266
+ FfiConverterOptionalBoolean.allocationSize(value.fullOutput);
2203
2267
  }
2204
2268
  }
2205
2269
  ;
@@ -4672,6 +4736,11 @@ const FfiConverterTypeWindowStateOutput = (() => {
4672
4736
  degradedReason: FfiConverterOptionalString.read(from),
4673
4737
  truncated: FfiConverterOptionalBoolean.read(from),
4674
4738
  truncationReason: FfiConverterOptionalString.read(from),
4739
+ truncationHint: FfiConverterOptionalString.read(from),
4740
+ treeFormat: FfiConverterOptionalString.read(from),
4741
+ since: FfiConverterOptionalString.read(from),
4742
+ sinceStatus: FfiConverterOptionalString.read(from),
4743
+ treeDiff: FfiConverterOptionalString.read(from),
4675
4744
  screenshotWidth: FfiConverterOptionalUInt32.read(from),
4676
4745
  screenshotHeight: FfiConverterOptionalUInt32.read(from),
4677
4746
  screenshotScale: FfiConverterOptionalFloat64.read(from),
@@ -4699,6 +4768,11 @@ const FfiConverterTypeWindowStateOutput = (() => {
4699
4768
  FfiConverterOptionalString.write(value.degradedReason, into);
4700
4769
  FfiConverterOptionalBoolean.write(value.truncated, into);
4701
4770
  FfiConverterOptionalString.write(value.truncationReason, into);
4771
+ FfiConverterOptionalString.write(value.truncationHint, into);
4772
+ FfiConverterOptionalString.write(value.treeFormat, into);
4773
+ FfiConverterOptionalString.write(value.since, into);
4774
+ FfiConverterOptionalString.write(value.sinceStatus, into);
4775
+ FfiConverterOptionalString.write(value.treeDiff, into);
4702
4776
  FfiConverterOptionalUInt32.write(value.screenshotWidth, into);
4703
4777
  FfiConverterOptionalUInt32.write(value.screenshotHeight, into);
4704
4778
  FfiConverterOptionalFloat64.write(value.screenshotScale, into);
@@ -4725,6 +4799,11 @@ const FfiConverterTypeWindowStateOutput = (() => {
4725
4799
  FfiConverterOptionalString.allocationSize(value.degradedReason) +
4726
4800
  FfiConverterOptionalBoolean.allocationSize(value.truncated) +
4727
4801
  FfiConverterOptionalString.allocationSize(value.truncationReason) +
4802
+ FfiConverterOptionalString.allocationSize(value.truncationHint) +
4803
+ FfiConverterOptionalString.allocationSize(value.treeFormat) +
4804
+ FfiConverterOptionalString.allocationSize(value.since) +
4805
+ FfiConverterOptionalString.allocationSize(value.sinceStatus) +
4806
+ FfiConverterOptionalString.allocationSize(value.treeDiff) +
4728
4807
  FfiConverterOptionalUInt32.allocationSize(value.screenshotWidth) +
4729
4808
  FfiConverterOptionalUInt32.allocationSize(value.screenshotHeight) +
4730
4809
  FfiConverterOptionalFloat64.allocationSize(value.screenshotScale) +
@@ -4788,8 +4867,8 @@ const FfiConverterOptionalFloat64 = new FfiConverterOptional(FfiConverterFloat64
4788
4867
  const FfiConverterOptionalTypeClickButton = new FfiConverterOptional(FfiConverterTypeClickButton);
4789
4868
  // FfiConverter for Array<string>
4790
4869
  const FfiConverterSequenceString = new FfiConverterArray(FfiConverterString);
4791
- // FfiConverter for boolean | undefined
4792
- const FfiConverterOptionalBoolean = new FfiConverterOptional(FfiConverterBool);
4870
+ // FfiConverter for CursorEffectSetting | undefined
4871
+ const FfiConverterOptionalTypeCursorEffectSetting = new FfiConverterOptional(FfiConverterTypeCursorEffectSetting);
4793
4872
  // FfiConverter for CursorMotionStyle | undefined
4794
4873
  const FfiConverterOptionalTypeCursorMotionStyle = new FfiConverterOptional(FfiConverterTypeCursorMotionStyle);
4795
4874
  // FfiConverter for CursorMotionTiming | undefined
@@ -4806,6 +4885,8 @@ const FfiConverterOptionalTypeDesktopScope = new FfiConverterOptional(FfiConvert
4806
4885
  const FfiConverterOptionalUInt64 = new FfiConverterOptional(FfiConverterUInt64);
4807
4886
  // FfiConverter for Array<string> | undefined
4808
4887
  const FfiConverterOptionalSequenceString = new FfiConverterOptional(FfiConverterSequenceString);
4888
+ // FfiConverter for boolean | undefined
4889
+ const FfiConverterOptionalBoolean = new FfiConverterOptional(FfiConverterBool);
4809
4890
  // FfiConverter for CursorPointOutput | undefined
4810
4891
  const FfiConverterOptionalTypeCursorPointOutput = new FfiConverterOptional(FfiConverterTypeCursorPointOutput);
4811
4892
  // FfiConverter for Array<AppInfo>
@@ -4907,6 +4988,7 @@ export default Object.freeze({
4907
4988
  FfiConverterTypeClipboardWriteInput,
4908
4989
  FfiConverterTypeClipboardWriteOutput,
4909
4990
  FfiConverterTypeCursorAction,
4991
+ FfiConverterTypeCursorEffectSetting,
4910
4992
  FfiConverterTypeCursorMotionEffects,
4911
4993
  FfiConverterTypeCursorMotionEffectsOutput,
4912
4994
  FfiConverterTypeCursorMotionOutput,
@@ -52,6 +52,8 @@ interface NativeModuleInterface {
52
52
  uniffi_cua_driver_sdk_fn_free_cuadriver(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): void;
53
53
  uniffi_cua_driver_sdk_fn_clone_cuadriversession(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
54
54
  uniffi_cua_driver_sdk_fn_free_cuadriversession(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): void;
55
+ uniffi_cua_driver_sdk_fn_clone_cursortrajectory(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
56
+ uniffi_cua_driver_sdk_fn_free_cursortrajectory(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): void;
55
57
  uniffi_cua_driver_sdk_fn_clone_driveractivityobserver(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
56
58
  uniffi_cua_driver_sdk_fn_free_driveractivityobserver(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): void;
57
59
  uniffi_cua_driver_sdk_fn_clone_driverauthorizationhost(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
@@ -72,8 +74,13 @@ interface NativeModuleInterface {
72
74
  uniffi_cua_driver_sdk_fn_func_create_remote_trusted_session(driver: bigint, options: Uint8Array): bigint;
73
75
  uniffi_cua_driver_sdk_fn_func_create_trusted_session(driver: bigint, options: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
74
76
  uniffi_cua_driver_sdk_fn_func_current_mac_os_permission_status(uniffi_out_err: UniffiRustCallStatus): Uint8Array;
77
+ uniffi_cua_driver_sdk_fn_func_cursor_click_effects(effects: Uint8Array, age: number, x: number, y: number, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
78
+ uniffi_cua_driver_sdk_fn_func_cursor_motion_spec_for_style(style: Uint8Array, params: Uint8Array, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
79
+ uniffi_cua_driver_sdk_fn_func_default_cursor_motion_params(uniffi_out_err: UniffiRustCallStatus): Uint8Array;
75
80
  uniffi_cua_driver_sdk_fn_func_open_mac_os_screen_recording_settings(uniffi_out_err: UniffiRustCallStatus): void;
76
81
  uniffi_cua_driver_sdk_fn_func_open_mcp_driver_channel(transport: bigint, authenticatedPrincipal: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
82
+ uniffi_cua_driver_sdk_fn_func_plan_cursor_move(params: Uint8Array, request: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
83
+ uniffi_cua_driver_sdk_fn_func_plan_cursor_spec(spec: Uint8Array, request: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
77
84
  uniffi_cua_driver_sdk_fn_func_request_mac_os_permissions(uniffi_out_err: UniffiRustCallStatus): Uint8Array;
78
85
  uniffi_cua_driver_sdk_fn_constructor_cuadriver_connect(socketPath: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
79
86
  uniffi_cua_driver_sdk_fn_constructor_cuadriver_connect_with_client_kind(socketPath: Uint8Array, clientKind: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
@@ -158,6 +165,16 @@ interface NativeModuleInterface {
158
165
  uniffi_cua_driver_sdk_fn_method_cuadriversession_start_session(uniffiSelf: bigint, input: Uint8Array): bigint;
159
166
  uniffi_cua_driver_sdk_fn_method_cuadriversession_type_text(uniffiSelf: bigint, input: Uint8Array): bigint;
160
167
  uniffi_cua_driver_sdk_fn_method_cuadriversession_verify_state(uniffiSelf: bigint, input: Uint8Array): bigint;
168
+ uniffi_cua_driver_sdk_fn_method_cursortrajectory_arrival_t(uniffiSelf: bigint, uniffi_out_err: UniffiRustCallStatus): number;
169
+ uniffi_cua_driver_sdk_fn_method_cursortrajectory_duration(uniffiSelf: bigint, uniffi_out_err: UniffiRustCallStatus): number;
170
+ uniffi_cua_driver_sdk_fn_method_cursortrajectory_effect_frame(uniffiSelf: bigint, t: number, blend: number, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
171
+ uniffi_cua_driver_sdk_fn_method_cursortrajectory_effects(uniffiSelf: bigint, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
172
+ uniffi_cua_driver_sdk_fn_method_cursortrajectory_linger(uniffiSelf: bigint, uniffi_out_err: UniffiRustCallStatus): number;
173
+ uniffi_cua_driver_sdk_fn_method_cursortrajectory_sample_at(uniffiSelf: bigint, t: number, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
174
+ uniffi_cua_driver_sdk_fn_method_cursortrajectory_samples(uniffiSelf: bigint, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
175
+ uniffi_cua_driver_sdk_fn_method_cursortrajectory_snap_t(uniffiSelf: bigint, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
176
+ uniffi_cua_driver_sdk_fn_method_cursortrajectory_target(uniffiSelf: bigint, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
177
+ uniffi_cua_driver_sdk_fn_method_cursortrajectory_target_known(uniffiSelf: bigint, uniffi_out_err: UniffiRustCallStatus): number;
161
178
  uniffi_cua_driver_sdk_fn_method_driveractivityobserver_on_activity(uniffiSelf: bigint, event: Uint8Array, uniffi_out_err: UniffiRustCallStatus): void;
162
179
  uniffi_cua_driver_sdk_fn_method_driverauthorizationhost_authorize(uniffiSelf: bigint, request: Uint8Array): bigint;
163
180
  uniffi_cua_driver_sdk_fn_method_driverservicetransport_send(uniffiSelf: bigint, request: Uint8Array): bigint;
@@ -184,8 +201,13 @@ interface NativeModuleInterface {
184
201
  uniffi_cua_driver_sdk_checksum_func_create_remote_trusted_session(): number;
185
202
  uniffi_cua_driver_sdk_checksum_func_create_trusted_session(): number;
186
203
  uniffi_cua_driver_sdk_checksum_func_current_mac_os_permission_status(): number;
204
+ uniffi_cua_driver_sdk_checksum_func_cursor_click_effects(): number;
205
+ uniffi_cua_driver_sdk_checksum_func_cursor_motion_spec_for_style(): number;
206
+ uniffi_cua_driver_sdk_checksum_func_default_cursor_motion_params(): number;
187
207
  uniffi_cua_driver_sdk_checksum_func_open_mac_os_screen_recording_settings(): number;
188
208
  uniffi_cua_driver_sdk_checksum_func_open_mcp_driver_channel(): number;
209
+ uniffi_cua_driver_sdk_checksum_func_plan_cursor_move(): number;
210
+ uniffi_cua_driver_sdk_checksum_func_plan_cursor_spec(): number;
189
211
  uniffi_cua_driver_sdk_checksum_func_request_mac_os_permissions(): number;
190
212
  uniffi_cua_driver_sdk_checksum_constructor_cuadriver_connect(): number;
191
213
  uniffi_cua_driver_sdk_checksum_constructor_cuadriver_connect_with_client_kind(): number;
@@ -270,6 +292,16 @@ interface NativeModuleInterface {
270
292
  uniffi_cua_driver_sdk_checksum_method_cuadriversession_start_session(): number;
271
293
  uniffi_cua_driver_sdk_checksum_method_cuadriversession_type_text(): number;
272
294
  uniffi_cua_driver_sdk_checksum_method_cuadriversession_verify_state(): number;
295
+ uniffi_cua_driver_sdk_checksum_method_cursortrajectory_arrival_t(): number;
296
+ uniffi_cua_driver_sdk_checksum_method_cursortrajectory_duration(): number;
297
+ uniffi_cua_driver_sdk_checksum_method_cursortrajectory_effect_frame(): number;
298
+ uniffi_cua_driver_sdk_checksum_method_cursortrajectory_effects(): number;
299
+ uniffi_cua_driver_sdk_checksum_method_cursortrajectory_linger(): number;
300
+ uniffi_cua_driver_sdk_checksum_method_cursortrajectory_sample_at(): number;
301
+ uniffi_cua_driver_sdk_checksum_method_cursortrajectory_samples(): number;
302
+ uniffi_cua_driver_sdk_checksum_method_cursortrajectory_snap_t(): number;
303
+ uniffi_cua_driver_sdk_checksum_method_cursortrajectory_target(): number;
304
+ uniffi_cua_driver_sdk_checksum_method_cursortrajectory_target_known(): number;
273
305
  uniffi_cua_driver_sdk_checksum_method_driveractivityobserver_on_activity(): number;
274
306
  uniffi_cua_driver_sdk_checksum_method_driverauthorizationhost_authorize(): number;
275
307
  uniffi_cua_driver_sdk_checksum_method_driverservicetransport_send(): number;