@trycua/cua-driver 0.33.4 → 0.34.1

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.
@@ -499,6 +499,71 @@ export declare const ClipboardWriteOutput: Readonly<{
499
499
  new: (partial: Partial<ClipboardWriteOutput> & Required<Omit<ClipboardWriteOutput, never>>) => ClipboardWriteOutput;
500
500
  defaults: () => Partial<ClipboardWriteOutput>;
501
501
  }>;
502
+ /**
503
+ * Per-effect overrides for the agent cursor. Unset fields are omitted on the wire, so they
504
+ * keep their current setting.
505
+ */
506
+ export type CursorMotionEffects = {
507
+ /**
508
+ * Short fading trail behind the cursor.
509
+ */
510
+ trail?: boolean;
511
+ /**
512
+ * Soft glow around the cursor that grows with speed.
513
+ */
514
+ glow?: boolean;
515
+ /**
516
+ * Target glow when the `magnetic` style locks on.
517
+ */
518
+ magnet?: boolean;
519
+ /**
520
+ * Ring that expands from the hotspot on click.
521
+ */
522
+ ripple?: boolean;
523
+ /**
524
+ * Brief scale-down of the cursor on click.
525
+ */
526
+ squish?: boolean;
527
+ };
528
+ /**
529
+ * Generated factory for {@link CursorMotionEffects} record objects.
530
+ */
531
+ export declare const CursorMotionEffects: Readonly<{
532
+ create: (partial: Partial<CursorMotionEffects> & Required<Omit<CursorMotionEffects, "trail" | "glow" | "magnet" | "ripple" | "squish">>) => CursorMotionEffects;
533
+ new: (partial: Partial<CursorMotionEffects> & Required<Omit<CursorMotionEffects, "trail" | "glow" | "magnet" | "ripple" | "squish">>) => CursorMotionEffects;
534
+ defaults: () => Partial<CursorMotionEffects>;
535
+ }>;
536
+ /**
537
+ * Effects in use after applying overrides to the style's defaults.
538
+ */
539
+ export type CursorMotionEffectsOutput = {
540
+ trail: boolean;
541
+ glow: boolean;
542
+ magnet: boolean;
543
+ ripple: boolean;
544
+ squish: boolean;
545
+ };
546
+ /**
547
+ * Generated factory for {@link CursorMotionEffectsOutput} record objects.
548
+ */
549
+ export declare const CursorMotionEffectsOutput: Readonly<{
550
+ create: (partial: Partial<CursorMotionEffectsOutput> & Required<Omit<CursorMotionEffectsOutput, never>>) => CursorMotionEffectsOutput;
551
+ new: (partial: Partial<CursorMotionEffectsOutput> & Required<Omit<CursorMotionEffectsOutput, never>>) => CursorMotionEffectsOutput;
552
+ defaults: () => Partial<CursorMotionEffectsOutput>;
553
+ }>;
554
+ export declare enum CursorMotionStyle {
555
+ SignatureArc = 0,
556
+ SpringSettle = 1,
557
+ Magnetic = 2,
558
+ CometSwoop = 3,
559
+ Adaptive = 4,
560
+ Classic = 5
561
+ }
562
+ export declare enum CursorMotionTiming {
563
+ Native = 0,
564
+ Fitts = 1,
565
+ Fixed = 2
566
+ }
502
567
  export type CursorMotionOutput = {
503
568
  startHandle: number;
504
569
  endHandle: number;
@@ -509,15 +574,105 @@ export type CursorMotionOutput = {
509
574
  dwellAfterClickMs: number;
510
575
  idleHideMs: number;
511
576
  turnRadius: number;
577
+ /**
578
+ * Trajectory style. Absent from daemons that predate motion styles.
579
+ */
580
+ style?: CursorMotionStyle;
581
+ /**
582
+ * Move duration model. Absent from daemons that predate motion styles.
583
+ */
584
+ timing?: CursorMotionTiming;
585
+ /**
586
+ * Effects in use after the style defaults. Absent from daemons that
587
+ * predate motion styles.
588
+ */
589
+ effects?: CursorMotionEffectsOutput;
512
590
  };
513
591
  /**
514
592
  * Generated factory for {@link CursorMotionOutput} record objects.
515
593
  */
516
594
  export declare const CursorMotionOutput: Readonly<{
517
- create: (partial: Partial<CursorMotionOutput> & Required<Omit<CursorMotionOutput, never>>) => CursorMotionOutput;
518
- new: (partial: Partial<CursorMotionOutput> & Required<Omit<CursorMotionOutput, never>>) => CursorMotionOutput;
595
+ create: (partial: Partial<CursorMotionOutput> & Required<Omit<CursorMotionOutput, "style" | "timing" | "effects">>) => CursorMotionOutput;
596
+ new: (partial: Partial<CursorMotionOutput> & Required<Omit<CursorMotionOutput, "style" | "timing" | "effects">>) => CursorMotionOutput;
519
597
  defaults: () => Partial<CursorMotionOutput>;
520
598
  }>;
599
+ /**
600
+ * Cursor motion for a session, with the fields of `set_agent_cursor_motion` minus `session`.
601
+ * Omitted or null fields keep the saved default (`cursor.motion.*` in the driver config), then
602
+ * the built-in `signature_arc`.
603
+ */
604
+ export type CursorMotionSelection = {
605
+ /**
606
+ * Trajectory style. `signature_arc` (default) is one arc with a small follow-through;
607
+ * `spring_settle` lands with one soft bounce; `magnetic` is pulled into the target;
608
+ * `comet_swoop` is a wide arc with a short trail; `adaptive` picks a careful approach for
609
+ * small targets and a swoop for long moves; `classic` is the previous Dubins glide. When
610
+ * the theme's reduced motion is on, every move is a short straight glide with no effects.
611
+ */
612
+ style?: CursorMotionStyle;
613
+ /**
614
+ * `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).
616
+ */
617
+ timing?: CursorMotionTiming;
618
+ /**
619
+ * Turn single effects on or off. An omitted effect keeps its current setting; null
620
+ * restores the style's default.
621
+ */
622
+ effects?: CursorMotionEffects;
623
+ /**
624
+ * Arc control-point offset from the start, as a fraction of the distance, for
625
+ * `signature_arc`, `spring_settle` and `comet_swoop`. Clamped to 0..1 (default 0.3).
626
+ */
627
+ startHandle?: number;
628
+ /**
629
+ * Arc control-point offset from the end, as a fraction of the distance, for
630
+ * `signature_arc`, `spring_settle` and `comet_swoop`. Clamped to 0..1 (default 0.3).
631
+ */
632
+ endHandle?: number;
633
+ /**
634
+ * Scales the arc of `signature_arc`, `spring_settle` and `comet_swoop`: 0.25 (default)
635
+ * keeps the style's arc, 0 is a straight line, 0.5 doubles it. Clamped to 0..1.
636
+ */
637
+ arcSize?: number;
638
+ /**
639
+ * Added to the arc asymmetry of `signature_arc`, `spring_settle` and `comet_swoop`:
640
+ * positive moves the apex toward the destination. Clamped to -1..1 (default 0).
641
+ */
642
+ arcFlow?: number;
643
+ /**
644
+ * Arrival spring damping for `classic`: 1 is critically damped, 0.3 is bouncy. Clamped
645
+ * to 0.3..1 (default 0.72).
646
+ */
647
+ spring?: number;
648
+ /**
649
+ * 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.
651
+ */
652
+ glideDurationMs?: number;
653
+ /**
654
+ * Pause after a click animation, in milliseconds. Clamped to 0..5000 (default 80).
655
+ */
656
+ dwellAfterClickMs?: number;
657
+ /**
658
+ * Hide the cursor after this many idle milliseconds; 0 never hides it. Clamped to
659
+ * 0..60000 (default 15000).
660
+ */
661
+ idleHideMs?: number;
662
+ /**
663
+ * Minimum turning radius of the `classic` glide path, in points; smaller turns tighter.
664
+ * Clamped to 1..1000 (default 80).
665
+ */
666
+ turnRadius?: number;
667
+ };
668
+ /**
669
+ * Generated factory for {@link CursorMotionSelection} record objects.
670
+ */
671
+ export declare const CursorMotionSelection: Readonly<{
672
+ create: (partial: Partial<CursorMotionSelection> & Required<Omit<CursorMotionSelection, "startHandle" | "endHandle" | "arcSize" | "arcFlow" | "spring" | "glideDurationMs" | "dwellAfterClickMs" | "idleHideMs" | "turnRadius" | "style" | "timing" | "effects">>) => CursorMotionSelection;
673
+ new: (partial: Partial<CursorMotionSelection> & Required<Omit<CursorMotionSelection, "startHandle" | "endHandle" | "arcSize" | "arcFlow" | "spring" | "glideDurationMs" | "dwellAfterClickMs" | "idleHideMs" | "turnRadius" | "style" | "timing" | "effects">>) => CursorMotionSelection;
674
+ defaults: () => Partial<CursorMotionSelection>;
675
+ }>;
521
676
  export type CursorPointOutput = {
522
677
  x: number;
523
678
  y: number;
@@ -1718,32 +1873,51 @@ export type SetAgentCursorMotionInput = {
1718
1873
  */
1719
1874
  session: string;
1720
1875
  /**
1721
- * Path control-point offset from the start, as a fraction of the distance. Clamped to
1722
- * 0..1 (default 0.3).
1876
+ * Trajectory style. `signature_arc` (default) is one arc with a small follow-through;
1877
+ * `spring_settle` lands with one soft bounce; `magnetic` is pulled into the target;
1878
+ * `comet_swoop` is a wide arc with a short trail; `adaptive` picks a careful approach for
1879
+ * small targets and a swoop for long moves; `classic` is the previous Dubins glide. When
1880
+ * the theme's reduced motion is on, every move is a short straight glide with no effects.
1881
+ */
1882
+ style?: CursorMotionStyle;
1883
+ /**
1884
+ * `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).
1886
+ */
1887
+ timing?: CursorMotionTiming;
1888
+ /**
1889
+ * Turn single effects on or off. An omitted effect keeps its current setting; null
1890
+ * restores the style's default.
1891
+ */
1892
+ effects?: CursorMotionEffects;
1893
+ /**
1894
+ * Arc control-point offset from the start, as a fraction of the distance, for
1895
+ * `signature_arc`, `spring_settle` and `comet_swoop`. Clamped to 0..1 (default 0.3).
1723
1896
  */
1724
1897
  startHandle?: number;
1725
1898
  /**
1726
- * Path control-point offset from the end, as a fraction of the distance. Clamped to 0..1
1727
- * (default 0.3).
1899
+ * Arc control-point offset from the end, as a fraction of the distance, for
1900
+ * `signature_arc`, `spring_settle` and `comet_swoop`. Clamped to 0..1 (default 0.3).
1728
1901
  */
1729
1902
  endHandle?: number;
1730
1903
  /**
1731
- * Sideways arc deflection as a fraction of the distance. Clamped to 0..1 (default 0.25).
1904
+ * Scales the arc of `signature_arc`, `spring_settle` and `comet_swoop`: 0.25 (default)
1905
+ * keeps the style's arc, 0 is a straight line, 0.5 doubles it. Clamped to 0..1.
1732
1906
  */
1733
1907
  arcSize?: number;
1734
1908
  /**
1735
- * Arc asymmetry: positive puts the apex near the destination, negative near the start.
1736
- * Clamped to -1..1 (default 0).
1909
+ * Added to the arc asymmetry of `signature_arc`, `spring_settle` and `comet_swoop`:
1910
+ * positive moves the apex toward the destination. Clamped to -1..1 (default 0).
1737
1911
  */
1738
1912
  arcFlow?: number;
1739
1913
  /**
1740
- * Post-arrival spring damping: 1 is critically damped, 0.3 is bouncy. Clamped to 0.3..1
1741
- * (default 0.72).
1914
+ * Arrival spring damping for `classic`: 1 is critically damped, 0.3 is bouncy. Clamped
1915
+ * to 0.3..1 (default 0.72).
1742
1916
  */
1743
1917
  spring?: number;
1744
1918
  /**
1745
- * Fixed glide duration in milliseconds. 0 (the default) uses speed-based timing. Clamped
1746
- * to 0..5000.
1919
+ * 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.
1747
1921
  */
1748
1922
  glideDurationMs?: number;
1749
1923
  /**
@@ -1756,8 +1930,8 @@ export type SetAgentCursorMotionInput = {
1756
1930
  */
1757
1931
  idleHideMs?: number;
1758
1932
  /**
1759
- * Minimum turning radius of the glide path, in points; smaller turns tighter. Clamped to
1760
- * 1..1000 (default 80).
1933
+ * Minimum turning radius of the `classic` glide path, in points; smaller turns tighter.
1934
+ * Clamped to 1..1000 (default 80).
1761
1935
  */
1762
1936
  turnRadius?: number;
1763
1937
  };
@@ -1765,8 +1939,8 @@ export type SetAgentCursorMotionInput = {
1765
1939
  * Generated factory for {@link SetAgentCursorMotionInput} record objects.
1766
1940
  */
1767
1941
  export declare const SetAgentCursorMotionInput: Readonly<{
1768
- create: (partial: Partial<SetAgentCursorMotionInput> & Required<Omit<SetAgentCursorMotionInput, "startHandle" | "endHandle" | "arcSize" | "arcFlow" | "spring" | "glideDurationMs" | "dwellAfterClickMs" | "idleHideMs" | "turnRadius">>) => SetAgentCursorMotionInput;
1769
- new: (partial: Partial<SetAgentCursorMotionInput> & Required<Omit<SetAgentCursorMotionInput, "startHandle" | "endHandle" | "arcSize" | "arcFlow" | "spring" | "glideDurationMs" | "dwellAfterClickMs" | "idleHideMs" | "turnRadius">>) => SetAgentCursorMotionInput;
1942
+ create: (partial: Partial<SetAgentCursorMotionInput> & Required<Omit<SetAgentCursorMotionInput, "startHandle" | "endHandle" | "arcSize" | "arcFlow" | "spring" | "glideDurationMs" | "dwellAfterClickMs" | "idleHideMs" | "turnRadius" | "style" | "timing" | "effects">>) => SetAgentCursorMotionInput;
1943
+ new: (partial: Partial<SetAgentCursorMotionInput> & Required<Omit<SetAgentCursorMotionInput, "startHandle" | "endHandle" | "arcSize" | "arcFlow" | "spring" | "glideDurationMs" | "dwellAfterClickMs" | "idleHideMs" | "turnRadius" | "style" | "timing" | "effects">>) => SetAgentCursorMotionInput;
1770
1944
  defaults: () => Partial<SetAgentCursorMotionInput>;
1771
1945
  }>;
1772
1946
  export type SetAgentCursorMotionOutput = {
@@ -1884,13 +2058,20 @@ export type StartSessionInput = {
1884
2058
  * first made visible, avoiding a flash of the default theme.
1885
2059
  */
1886
2060
  cursorTheme?: CursorThemeSelection;
2061
+ /**
2062
+ * Optional initial cursor motion (style, timing, effects and tuning). The host applies it
2063
+ * before the cursor is first made visible. A later `set_agent_cursor_motion` call wins;
2064
+ * this wins over the saved default (`cursor.motion.*` in the driver config) and the
2065
+ * built-in `signature_arc`. Reduced motion always wins.
2066
+ */
2067
+ cursorMotion?: CursorMotionSelection;
1887
2068
  };
1888
2069
  /**
1889
2070
  * Generated factory for {@link StartSessionInput} record objects.
1890
2071
  */
1891
2072
  export declare const StartSessionInput: Readonly<{
1892
- create: (partial: Partial<StartSessionInput> & Required<Omit<StartSessionInput, "session" | "captureScope" | "cursorTheme">>) => StartSessionInput;
1893
- new: (partial: Partial<StartSessionInput> & Required<Omit<StartSessionInput, "session" | "captureScope" | "cursorTheme">>) => StartSessionInput;
2073
+ create: (partial: Partial<StartSessionInput> & Required<Omit<StartSessionInput, "session" | "captureScope" | "cursorTheme" | "cursorMotion">>) => StartSessionInput;
2074
+ new: (partial: Partial<StartSessionInput> & Required<Omit<StartSessionInput, "session" | "captureScope" | "cursorTheme" | "cursorMotion">>) => StartSessionInput;
1894
2075
  defaults: () => Partial<StartSessionInput>;
1895
2076
  }>;
1896
2077
  /**
@@ -1900,13 +2081,17 @@ export type StartSessionOutput = {
1900
2081
  state: SessionStateOutput;
1901
2082
  active: boolean;
1902
2083
  revived: boolean;
2084
+ /**
2085
+ * The `cursor_motion` this call applied, echoed as sent. Absent when the call did not set one.
2086
+ */
2087
+ cursorMotion?: CursorMotionSelection;
1903
2088
  };
1904
2089
  /**
1905
2090
  * Generated factory for {@link StartSessionOutput} record objects.
1906
2091
  */
1907
2092
  export declare const StartSessionOutput: Readonly<{
1908
- create: (partial: Partial<StartSessionOutput> & Required<Omit<StartSessionOutput, never>>) => StartSessionOutput;
1909
- new: (partial: Partial<StartSessionOutput> & Required<Omit<StartSessionOutput, never>>) => StartSessionOutput;
2093
+ create: (partial: Partial<StartSessionOutput> & Required<Omit<StartSessionOutput, "cursorMotion">>) => StartSessionOutput;
2094
+ new: (partial: Partial<StartSessionOutput> & Required<Omit<StartSessionOutput, "cursorMotion">>) => StartSessionOutput;
1910
2095
  defaults: () => Partial<StartSessionOutput>;
1911
2096
  }>;
1912
2097
  export type WindowPredicate = {
@@ -2291,6 +2476,20 @@ declare const _default: Readonly<{
2291
2476
  lift(value: UniffiByteArray): CursorAction;
2292
2477
  lower(value: CursorAction, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
2293
2478
  };
2479
+ FfiConverterTypeCursorMotionEffects: {
2480
+ read(from: RustBuffer): CursorMotionEffects;
2481
+ write(value: CursorMotionEffects, into: RustBuffer): void;
2482
+ allocationSize(value: CursorMotionEffects): number;
2483
+ lift(value: UniffiByteArray): CursorMotionEffects;
2484
+ lower(value: CursorMotionEffects, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
2485
+ };
2486
+ FfiConverterTypeCursorMotionEffectsOutput: {
2487
+ read(from: RustBuffer): CursorMotionEffectsOutput;
2488
+ write(value: CursorMotionEffectsOutput, into: RustBuffer): void;
2489
+ allocationSize(value: CursorMotionEffectsOutput): number;
2490
+ lift(value: UniffiByteArray): CursorMotionEffectsOutput;
2491
+ lower(value: CursorMotionEffectsOutput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
2492
+ };
2294
2493
  FfiConverterTypeCursorMotionOutput: {
2295
2494
  read(from: RustBuffer): CursorMotionOutput;
2296
2495
  write(value: CursorMotionOutput, into: RustBuffer): void;
@@ -2298,6 +2497,27 @@ declare const _default: Readonly<{
2298
2497
  lift(value: UniffiByteArray): CursorMotionOutput;
2299
2498
  lower(value: CursorMotionOutput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
2300
2499
  };
2500
+ FfiConverterTypeCursorMotionSelection: {
2501
+ read(from: RustBuffer): CursorMotionSelection;
2502
+ write(value: CursorMotionSelection, into: RustBuffer): void;
2503
+ allocationSize(value: CursorMotionSelection): number;
2504
+ lift(value: UniffiByteArray): CursorMotionSelection;
2505
+ lower(value: CursorMotionSelection, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
2506
+ };
2507
+ FfiConverterTypeCursorMotionStyle: {
2508
+ read(from: RustBuffer): CursorMotionStyle;
2509
+ write(value: CursorMotionStyle, into: RustBuffer): void;
2510
+ allocationSize(value: CursorMotionStyle): number;
2511
+ lift(value: UniffiByteArray): CursorMotionStyle;
2512
+ lower(value: CursorMotionStyle, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
2513
+ };
2514
+ FfiConverterTypeCursorMotionTiming: {
2515
+ read(from: RustBuffer): CursorMotionTiming;
2516
+ write(value: CursorMotionTiming, into: RustBuffer): void;
2517
+ allocationSize(value: CursorMotionTiming): number;
2518
+ lift(value: UniffiByteArray): CursorMotionTiming;
2519
+ lower(value: CursorMotionTiming, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
2520
+ };
2301
2521
  FfiConverterTypeCursorPointOutput: {
2302
2522
  read(from: RustBuffer): CursorPointOutput;
2303
2523
  write(value: CursorPointOutput, into: RustBuffer): void;
@@ -1032,6 +1032,161 @@ const FfiConverterTypeClipboardWriteOutput = (() => {
1032
1032
  ;
1033
1033
  return new FFIConverter();
1034
1034
  })();
1035
+ /**
1036
+ * Generated factory for {@link CursorMotionEffects} record objects.
1037
+ */
1038
+ export const CursorMotionEffects = (() => {
1039
+ const defaults = () => ({});
1040
+ const create = (() => {
1041
+ return uniffiCreateRecord(defaults);
1042
+ })();
1043
+ return Object.freeze({
1044
+ create,
1045
+ new: create,
1046
+ defaults: () => Object.freeze(defaults()),
1047
+ });
1048
+ })();
1049
+ const FfiConverterTypeCursorMotionEffects = (() => {
1050
+ class FFIConverter extends AbstractFfiConverterByteArray {
1051
+ read(from) {
1052
+ 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)
1058
+ };
1059
+ }
1060
+ 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);
1066
+ }
1067
+ 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);
1073
+ }
1074
+ }
1075
+ ;
1076
+ return new FFIConverter();
1077
+ })();
1078
+ /**
1079
+ * Generated factory for {@link CursorMotionEffectsOutput} record objects.
1080
+ */
1081
+ export const CursorMotionEffectsOutput = (() => {
1082
+ const defaults = () => ({});
1083
+ const create = (() => {
1084
+ return uniffiCreateRecord(defaults);
1085
+ })();
1086
+ return Object.freeze({
1087
+ create,
1088
+ new: create,
1089
+ defaults: () => Object.freeze(defaults()),
1090
+ });
1091
+ })();
1092
+ const FfiConverterTypeCursorMotionEffectsOutput = (() => {
1093
+ class FFIConverter extends AbstractFfiConverterByteArray {
1094
+ read(from) {
1095
+ return {
1096
+ trail: FfiConverterBool.read(from),
1097
+ glow: FfiConverterBool.read(from),
1098
+ magnet: FfiConverterBool.read(from),
1099
+ ripple: FfiConverterBool.read(from),
1100
+ squish: FfiConverterBool.read(from)
1101
+ };
1102
+ }
1103
+ write(value, into) {
1104
+ FfiConverterBool.write(value.trail, into);
1105
+ FfiConverterBool.write(value.glow, into);
1106
+ FfiConverterBool.write(value.magnet, into);
1107
+ FfiConverterBool.write(value.ripple, into);
1108
+ FfiConverterBool.write(value.squish, into);
1109
+ }
1110
+ allocationSize(value) {
1111
+ return FfiConverterBool.allocationSize(value.trail) +
1112
+ FfiConverterBool.allocationSize(value.glow) +
1113
+ FfiConverterBool.allocationSize(value.magnet) +
1114
+ FfiConverterBool.allocationSize(value.ripple) +
1115
+ FfiConverterBool.allocationSize(value.squish);
1116
+ }
1117
+ }
1118
+ ;
1119
+ return new FFIConverter();
1120
+ })();
1121
+ export var CursorMotionStyle;
1122
+ (function (CursorMotionStyle) {
1123
+ CursorMotionStyle[CursorMotionStyle["SignatureArc"] = 0] = "SignatureArc";
1124
+ CursorMotionStyle[CursorMotionStyle["SpringSettle"] = 1] = "SpringSettle";
1125
+ CursorMotionStyle[CursorMotionStyle["Magnetic"] = 2] = "Magnetic";
1126
+ CursorMotionStyle[CursorMotionStyle["CometSwoop"] = 3] = "CometSwoop";
1127
+ CursorMotionStyle[CursorMotionStyle["Adaptive"] = 4] = "Adaptive";
1128
+ CursorMotionStyle[CursorMotionStyle["Classic"] = 5] = "Classic";
1129
+ })(CursorMotionStyle || (CursorMotionStyle = {}));
1130
+ const FfiConverterTypeCursorMotionStyle = (() => {
1131
+ const ordinalConverter = FfiConverterInt32;
1132
+ class FFIConverter extends AbstractFfiConverterByteArray {
1133
+ read(from) {
1134
+ switch (ordinalConverter.read(from)) {
1135
+ case 1: return CursorMotionStyle.SignatureArc;
1136
+ case 2: return CursorMotionStyle.SpringSettle;
1137
+ case 3: return CursorMotionStyle.Magnetic;
1138
+ case 4: return CursorMotionStyle.CometSwoop;
1139
+ case 5: return CursorMotionStyle.Adaptive;
1140
+ case 6: return CursorMotionStyle.Classic;
1141
+ default: throw new UniffiInternalError.UnexpectedEnumCase();
1142
+ }
1143
+ }
1144
+ write(value, into) {
1145
+ switch (value) {
1146
+ case CursorMotionStyle.SignatureArc: return ordinalConverter.write(1, into);
1147
+ case CursorMotionStyle.SpringSettle: return ordinalConverter.write(2, into);
1148
+ case CursorMotionStyle.Magnetic: return ordinalConverter.write(3, into);
1149
+ case CursorMotionStyle.CometSwoop: return ordinalConverter.write(4, into);
1150
+ case CursorMotionStyle.Adaptive: return ordinalConverter.write(5, into);
1151
+ case CursorMotionStyle.Classic: return ordinalConverter.write(6, into);
1152
+ }
1153
+ }
1154
+ allocationSize(value) {
1155
+ return ordinalConverter.allocationSize(0);
1156
+ }
1157
+ }
1158
+ return new FFIConverter();
1159
+ })();
1160
+ export var CursorMotionTiming;
1161
+ (function (CursorMotionTiming) {
1162
+ CursorMotionTiming[CursorMotionTiming["Native"] = 0] = "Native";
1163
+ CursorMotionTiming[CursorMotionTiming["Fitts"] = 1] = "Fitts";
1164
+ CursorMotionTiming[CursorMotionTiming["Fixed"] = 2] = "Fixed";
1165
+ })(CursorMotionTiming || (CursorMotionTiming = {}));
1166
+ const FfiConverterTypeCursorMotionTiming = (() => {
1167
+ const ordinalConverter = FfiConverterInt32;
1168
+ class FFIConverter extends AbstractFfiConverterByteArray {
1169
+ read(from) {
1170
+ switch (ordinalConverter.read(from)) {
1171
+ case 1: return CursorMotionTiming.Native;
1172
+ case 2: return CursorMotionTiming.Fitts;
1173
+ case 3: return CursorMotionTiming.Fixed;
1174
+ default: throw new UniffiInternalError.UnexpectedEnumCase();
1175
+ }
1176
+ }
1177
+ write(value, into) {
1178
+ switch (value) {
1179
+ case CursorMotionTiming.Native: return ordinalConverter.write(1, into);
1180
+ case CursorMotionTiming.Fitts: return ordinalConverter.write(2, into);
1181
+ case CursorMotionTiming.Fixed: return ordinalConverter.write(3, into);
1182
+ }
1183
+ }
1184
+ allocationSize(value) {
1185
+ return ordinalConverter.allocationSize(0);
1186
+ }
1187
+ }
1188
+ return new FFIConverter();
1189
+ })();
1035
1190
  /**
1036
1191
  * Generated factory for {@link CursorMotionOutput} record objects.
1037
1192
  */
@@ -1058,7 +1213,10 @@ const FfiConverterTypeCursorMotionOutput = (() => {
1058
1213
  glideDurationMs: FfiConverterFloat64.read(from),
1059
1214
  dwellAfterClickMs: FfiConverterFloat64.read(from),
1060
1215
  idleHideMs: FfiConverterFloat64.read(from),
1061
- turnRadius: FfiConverterFloat64.read(from)
1216
+ turnRadius: FfiConverterFloat64.read(from),
1217
+ style: FfiConverterOptionalTypeCursorMotionStyle.read(from),
1218
+ timing: FfiConverterOptionalTypeCursorMotionTiming.read(from),
1219
+ effects: FfiConverterOptionalTypeCursorMotionEffectsOutput.read(from)
1062
1220
  };
1063
1221
  }
1064
1222
  write(value, into) {
@@ -1071,6 +1229,9 @@ const FfiConverterTypeCursorMotionOutput = (() => {
1071
1229
  FfiConverterFloat64.write(value.dwellAfterClickMs, into);
1072
1230
  FfiConverterFloat64.write(value.idleHideMs, into);
1073
1231
  FfiConverterFloat64.write(value.turnRadius, into);
1232
+ FfiConverterOptionalTypeCursorMotionStyle.write(value.style, into);
1233
+ FfiConverterOptionalTypeCursorMotionTiming.write(value.timing, into);
1234
+ FfiConverterOptionalTypeCursorMotionEffectsOutput.write(value.effects, into);
1074
1235
  }
1075
1236
  allocationSize(value) {
1076
1237
  return FfiConverterFloat64.allocationSize(value.startHandle) +
@@ -1081,7 +1242,74 @@ const FfiConverterTypeCursorMotionOutput = (() => {
1081
1242
  FfiConverterFloat64.allocationSize(value.glideDurationMs) +
1082
1243
  FfiConverterFloat64.allocationSize(value.dwellAfterClickMs) +
1083
1244
  FfiConverterFloat64.allocationSize(value.idleHideMs) +
1084
- FfiConverterFloat64.allocationSize(value.turnRadius);
1245
+ FfiConverterFloat64.allocationSize(value.turnRadius) +
1246
+ FfiConverterOptionalTypeCursorMotionStyle.allocationSize(value.style) +
1247
+ FfiConverterOptionalTypeCursorMotionTiming.allocationSize(value.timing) +
1248
+ FfiConverterOptionalTypeCursorMotionEffectsOutput.allocationSize(value.effects);
1249
+ }
1250
+ }
1251
+ ;
1252
+ return new FFIConverter();
1253
+ })();
1254
+ /**
1255
+ * Generated factory for {@link CursorMotionSelection} record objects.
1256
+ */
1257
+ export const CursorMotionSelection = (() => {
1258
+ const defaults = () => ({});
1259
+ const create = (() => {
1260
+ return uniffiCreateRecord(defaults);
1261
+ })();
1262
+ return Object.freeze({
1263
+ create,
1264
+ new: create,
1265
+ defaults: () => Object.freeze(defaults()),
1266
+ });
1267
+ })();
1268
+ const FfiConverterTypeCursorMotionSelection = (() => {
1269
+ class FFIConverter extends AbstractFfiConverterByteArray {
1270
+ read(from) {
1271
+ return {
1272
+ style: FfiConverterOptionalTypeCursorMotionStyle.read(from),
1273
+ timing: FfiConverterOptionalTypeCursorMotionTiming.read(from),
1274
+ effects: FfiConverterOptionalTypeCursorMotionEffects.read(from),
1275
+ startHandle: FfiConverterOptionalFloat64.read(from),
1276
+ endHandle: FfiConverterOptionalFloat64.read(from),
1277
+ arcSize: FfiConverterOptionalFloat64.read(from),
1278
+ arcFlow: FfiConverterOptionalFloat64.read(from),
1279
+ spring: FfiConverterOptionalFloat64.read(from),
1280
+ glideDurationMs: FfiConverterOptionalFloat64.read(from),
1281
+ dwellAfterClickMs: FfiConverterOptionalFloat64.read(from),
1282
+ idleHideMs: FfiConverterOptionalFloat64.read(from),
1283
+ turnRadius: FfiConverterOptionalFloat64.read(from)
1284
+ };
1285
+ }
1286
+ write(value, into) {
1287
+ FfiConverterOptionalTypeCursorMotionStyle.write(value.style, into);
1288
+ FfiConverterOptionalTypeCursorMotionTiming.write(value.timing, into);
1289
+ FfiConverterOptionalTypeCursorMotionEffects.write(value.effects, into);
1290
+ FfiConverterOptionalFloat64.write(value.startHandle, into);
1291
+ FfiConverterOptionalFloat64.write(value.endHandle, into);
1292
+ FfiConverterOptionalFloat64.write(value.arcSize, into);
1293
+ FfiConverterOptionalFloat64.write(value.arcFlow, into);
1294
+ FfiConverterOptionalFloat64.write(value.spring, into);
1295
+ FfiConverterOptionalFloat64.write(value.glideDurationMs, into);
1296
+ FfiConverterOptionalFloat64.write(value.dwellAfterClickMs, into);
1297
+ FfiConverterOptionalFloat64.write(value.idleHideMs, into);
1298
+ FfiConverterOptionalFloat64.write(value.turnRadius, into);
1299
+ }
1300
+ allocationSize(value) {
1301
+ return FfiConverterOptionalTypeCursorMotionStyle.allocationSize(value.style) +
1302
+ FfiConverterOptionalTypeCursorMotionTiming.allocationSize(value.timing) +
1303
+ FfiConverterOptionalTypeCursorMotionEffects.allocationSize(value.effects) +
1304
+ FfiConverterOptionalFloat64.allocationSize(value.startHandle) +
1305
+ FfiConverterOptionalFloat64.allocationSize(value.endHandle) +
1306
+ FfiConverterOptionalFloat64.allocationSize(value.arcSize) +
1307
+ FfiConverterOptionalFloat64.allocationSize(value.arcFlow) +
1308
+ FfiConverterOptionalFloat64.allocationSize(value.spring) +
1309
+ FfiConverterOptionalFloat64.allocationSize(value.glideDurationMs) +
1310
+ FfiConverterOptionalFloat64.allocationSize(value.dwellAfterClickMs) +
1311
+ FfiConverterOptionalFloat64.allocationSize(value.idleHideMs) +
1312
+ FfiConverterOptionalFloat64.allocationSize(value.turnRadius);
1085
1313
  }
1086
1314
  }
1087
1315
  ;
@@ -3709,6 +3937,9 @@ const FfiConverterTypeSetAgentCursorMotionInput = (() => {
3709
3937
  read(from) {
3710
3938
  return {
3711
3939
  session: FfiConverterString.read(from),
3940
+ style: FfiConverterOptionalTypeCursorMotionStyle.read(from),
3941
+ timing: FfiConverterOptionalTypeCursorMotionTiming.read(from),
3942
+ effects: FfiConverterOptionalTypeCursorMotionEffects.read(from),
3712
3943
  startHandle: FfiConverterOptionalFloat64.read(from),
3713
3944
  endHandle: FfiConverterOptionalFloat64.read(from),
3714
3945
  arcSize: FfiConverterOptionalFloat64.read(from),
@@ -3722,6 +3953,9 @@ const FfiConverterTypeSetAgentCursorMotionInput = (() => {
3722
3953
  }
3723
3954
  write(value, into) {
3724
3955
  FfiConverterString.write(value.session, into);
3956
+ FfiConverterOptionalTypeCursorMotionStyle.write(value.style, into);
3957
+ FfiConverterOptionalTypeCursorMotionTiming.write(value.timing, into);
3958
+ FfiConverterOptionalTypeCursorMotionEffects.write(value.effects, into);
3725
3959
  FfiConverterOptionalFloat64.write(value.startHandle, into);
3726
3960
  FfiConverterOptionalFloat64.write(value.endHandle, into);
3727
3961
  FfiConverterOptionalFloat64.write(value.arcSize, into);
@@ -3734,6 +3968,9 @@ const FfiConverterTypeSetAgentCursorMotionInput = (() => {
3734
3968
  }
3735
3969
  allocationSize(value) {
3736
3970
  return FfiConverterString.allocationSize(value.session) +
3971
+ FfiConverterOptionalTypeCursorMotionStyle.allocationSize(value.style) +
3972
+ FfiConverterOptionalTypeCursorMotionTiming.allocationSize(value.timing) +
3973
+ FfiConverterOptionalTypeCursorMotionEffects.allocationSize(value.effects) +
3737
3974
  FfiConverterOptionalFloat64.allocationSize(value.startHandle) +
3738
3975
  FfiConverterOptionalFloat64.allocationSize(value.endHandle) +
3739
3976
  FfiConverterOptionalFloat64.allocationSize(value.arcSize) +
@@ -3956,18 +4193,21 @@ const FfiConverterTypeStartSessionInput = (() => {
3956
4193
  return {
3957
4194
  session: FfiConverterOptionalString.read(from),
3958
4195
  captureScope: FfiConverterOptionalTypeCaptureScope.read(from),
3959
- cursorTheme: FfiConverterOptionalTypeCursorThemeSelection.read(from)
4196
+ cursorTheme: FfiConverterOptionalTypeCursorThemeSelection.read(from),
4197
+ cursorMotion: FfiConverterOptionalTypeCursorMotionSelection.read(from)
3960
4198
  };
3961
4199
  }
3962
4200
  write(value, into) {
3963
4201
  FfiConverterOptionalString.write(value.session, into);
3964
4202
  FfiConverterOptionalTypeCaptureScope.write(value.captureScope, into);
3965
4203
  FfiConverterOptionalTypeCursorThemeSelection.write(value.cursorTheme, into);
4204
+ FfiConverterOptionalTypeCursorMotionSelection.write(value.cursorMotion, into);
3966
4205
  }
3967
4206
  allocationSize(value) {
3968
4207
  return FfiConverterOptionalString.allocationSize(value.session) +
3969
4208
  FfiConverterOptionalTypeCaptureScope.allocationSize(value.captureScope) +
3970
- FfiConverterOptionalTypeCursorThemeSelection.allocationSize(value.cursorTheme);
4209
+ FfiConverterOptionalTypeCursorThemeSelection.allocationSize(value.cursorTheme) +
4210
+ FfiConverterOptionalTypeCursorMotionSelection.allocationSize(value.cursorMotion);
3971
4211
  }
3972
4212
  }
3973
4213
  ;
@@ -3993,18 +4233,21 @@ const FfiConverterTypeStartSessionOutput = (() => {
3993
4233
  return {
3994
4234
  state: FfiConverterTypeSessionStateOutput.read(from),
3995
4235
  active: FfiConverterBool.read(from),
3996
- revived: FfiConverterBool.read(from)
4236
+ revived: FfiConverterBool.read(from),
4237
+ cursorMotion: FfiConverterOptionalTypeCursorMotionSelection.read(from)
3997
4238
  };
3998
4239
  }
3999
4240
  write(value, into) {
4000
4241
  FfiConverterTypeSessionStateOutput.write(value.state, into);
4001
4242
  FfiConverterBool.write(value.active, into);
4002
4243
  FfiConverterBool.write(value.revived, into);
4244
+ FfiConverterOptionalTypeCursorMotionSelection.write(value.cursorMotion, into);
4003
4245
  }
4004
4246
  allocationSize(value) {
4005
4247
  return FfiConverterTypeSessionStateOutput.allocationSize(value.state) +
4006
4248
  FfiConverterBool.allocationSize(value.active) +
4007
- FfiConverterBool.allocationSize(value.revived);
4249
+ FfiConverterBool.allocationSize(value.revived) +
4250
+ FfiConverterOptionalTypeCursorMotionSelection.allocationSize(value.cursorMotion);
4008
4251
  }
4009
4252
  }
4010
4253
  ;
@@ -4545,6 +4788,16 @@ const FfiConverterOptionalFloat64 = new FfiConverterOptional(FfiConverterFloat64
4545
4788
  const FfiConverterOptionalTypeClickButton = new FfiConverterOptional(FfiConverterTypeClickButton);
4546
4789
  // FfiConverter for Array<string>
4547
4790
  const FfiConverterSequenceString = new FfiConverterArray(FfiConverterString);
4791
+ // FfiConverter for boolean | undefined
4792
+ const FfiConverterOptionalBoolean = new FfiConverterOptional(FfiConverterBool);
4793
+ // FfiConverter for CursorMotionStyle | undefined
4794
+ const FfiConverterOptionalTypeCursorMotionStyle = new FfiConverterOptional(FfiConverterTypeCursorMotionStyle);
4795
+ // FfiConverter for CursorMotionTiming | undefined
4796
+ const FfiConverterOptionalTypeCursorMotionTiming = new FfiConverterOptional(FfiConverterTypeCursorMotionTiming);
4797
+ // FfiConverter for CursorMotionEffectsOutput | undefined
4798
+ const FfiConverterOptionalTypeCursorMotionEffectsOutput = new FfiConverterOptional(FfiConverterTypeCursorMotionEffectsOutput);
4799
+ // FfiConverter for CursorMotionEffects | undefined
4800
+ const FfiConverterOptionalTypeCursorMotionEffects = new FfiConverterOptional(FfiConverterTypeCursorMotionEffects);
4548
4801
  // FfiConverter for ActionTarget | undefined
4549
4802
  const FfiConverterOptionalTypeActionTarget = new FfiConverterOptional(FfiConverterTypeActionTarget);
4550
4803
  // FfiConverter for DesktopScope | undefined
@@ -4553,8 +4806,6 @@ const FfiConverterOptionalTypeDesktopScope = new FfiConverterOptional(FfiConvert
4553
4806
  const FfiConverterOptionalUInt64 = new FfiConverterOptional(FfiConverterUInt64);
4554
4807
  // FfiConverter for Array<string> | undefined
4555
4808
  const FfiConverterOptionalSequenceString = new FfiConverterOptional(FfiConverterSequenceString);
4556
- // FfiConverter for boolean | undefined
4557
- const FfiConverterOptionalBoolean = new FfiConverterOptional(FfiConverterBool);
4558
4809
  // FfiConverter for CursorPointOutput | undefined
4559
4810
  const FfiConverterOptionalTypeCursorPointOutput = new FfiConverterOptional(FfiConverterTypeCursorPointOutput);
4560
4811
  // FfiConverter for Array<AppInfo>
@@ -4589,6 +4840,8 @@ const FfiConverterOptionalTypeEscalationReason = new FfiConverterOptional(FfiCon
4589
4840
  const FfiConverterOptionalTypeCaptureScope = new FfiConverterOptional(FfiConverterTypeCaptureScope);
4590
4841
  // FfiConverter for CursorThemeSelection | undefined
4591
4842
  const FfiConverterOptionalTypeCursorThemeSelection = new FfiConverterOptional(FfiConverterTypeCursorThemeSelection);
4843
+ // FfiConverter for CursorMotionSelection | undefined
4844
+ const FfiConverterOptionalTypeCursorMotionSelection = new FfiConverterOptional(FfiConverterTypeCursorMotionSelection);
4592
4845
  // FfiConverter for BoundsExpectation | undefined
4593
4846
  const FfiConverterOptionalTypeBoundsExpectation = new FfiConverterOptional(FfiConverterTypeBoundsExpectation);
4594
4847
  // FfiConverter for WindowPredicate | undefined
@@ -4654,7 +4907,12 @@ export default Object.freeze({
4654
4907
  FfiConverterTypeClipboardWriteInput,
4655
4908
  FfiConverterTypeClipboardWriteOutput,
4656
4909
  FfiConverterTypeCursorAction,
4910
+ FfiConverterTypeCursorMotionEffects,
4911
+ FfiConverterTypeCursorMotionEffectsOutput,
4657
4912
  FfiConverterTypeCursorMotionOutput,
4913
+ FfiConverterTypeCursorMotionSelection,
4914
+ FfiConverterTypeCursorMotionStyle,
4915
+ FfiConverterTypeCursorMotionTiming,
4658
4916
  FfiConverterTypeCursorPointOutput,
4659
4917
  FfiConverterTypeCursorReducedMotion,
4660
4918
  FfiConverterTypeCursorThemeOutput,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trycua/cua-driver",
3
- "version": "0.33.4",
3
+ "version": "0.34.1",
4
4
  "description": "Rust-backed Cua Driver SDK and embedded Node host",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -48,11 +48,11 @@
48
48
  "@ubjs/node": "0.31.0-3"
49
49
  },
50
50
  "optionalDependencies": {
51
- "@trycua/cua-driver-darwin-arm64": "0.33.4",
52
- "@trycua/cua-driver-darwin-x64": "0.33.4",
53
- "@trycua/cua-driver-linux-arm64-gnu": "0.33.4",
54
- "@trycua/cua-driver-linux-x64-gnu": "0.33.4",
55
- "@trycua/cua-driver-win32-arm64-msvc": "0.33.4",
56
- "@trycua/cua-driver-win32-x64-msvc": "0.33.4"
51
+ "@trycua/cua-driver-darwin-arm64": "0.34.1",
52
+ "@trycua/cua-driver-darwin-x64": "0.34.1",
53
+ "@trycua/cua-driver-linux-arm64-gnu": "0.34.1",
54
+ "@trycua/cua-driver-linux-x64-gnu": "0.34.1",
55
+ "@trycua/cua-driver-win32-arm64-msvc": "0.34.1",
56
+ "@trycua/cua-driver-win32-x64-msvc": "0.34.1"
57
57
  }
58
58
  }