@trycua/cua-driver 0.34.1 → 0.35.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/daemon.d.ts +14 -0
- package/dist/daemon.js +59 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +14 -8
- package/dist/native/cua_driver_contract.d.ts +86 -20
- package/dist/native/cua_driver_contract.js +102 -20
- package/dist/native/cua_driver_sdk-ffi.d.ts +32 -0
- package/dist/native/cua_driver_sdk-ffi.js +160 -0
- package/dist/native/cua_driver_sdk.d.ts +1212 -43
- package/dist/native/cua_driver_sdk.js +1674 -55
- package/package.json +10 -8
package/dist/daemon.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface Availability {
|
|
2
|
+
isAvailable(): boolean;
|
|
3
|
+
}
|
|
4
|
+
export interface CreateDriverHooks {
|
|
5
|
+
platform?: NodeJS.Platform;
|
|
6
|
+
appInstalled?: () => boolean;
|
|
7
|
+
launch?: () => boolean;
|
|
8
|
+
timeoutMs?: number;
|
|
9
|
+
sleep?: (ms: number) => void;
|
|
10
|
+
warn?: (message: string) => void;
|
|
11
|
+
}
|
|
12
|
+
/** Reset the one-time warning (tests only). */
|
|
13
|
+
export declare function resetDaemonWarning(): void;
|
|
14
|
+
export declare function createDriver<T extends Availability>(connect: () => T, createEmbedded: () => T, embedded: boolean, claudeCodeCompatibility: boolean, hooks?: CreateDriverHooks): T;
|
package/dist/daemon.js
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* macOS daemon preference for `CuaDriver.create()`.
|
|
3
|
+
*
|
|
4
|
+
* An embedded (in-process) runtime on macOS has no AppKit host, so the agent
|
|
5
|
+
* cursor overlay cannot be drawn and permissions are attributed to the host
|
|
6
|
+
* process. The daemon (CuaDriver.app running `serve`) draws the cursor and owns
|
|
7
|
+
* the TCC grants, so on macOS `create()` connects to it, starting it through
|
|
8
|
+
* LaunchServices when the app is installed. No native dependency, so it is
|
|
9
|
+
* testable without the staged library.
|
|
10
|
+
*/
|
|
11
|
+
import { spawnSync } from "node:child_process";
|
|
12
|
+
import { existsSync } from "node:fs";
|
|
13
|
+
const APP_NAME = "CuaDriver";
|
|
14
|
+
const APP_PATH = `/Applications/${APP_NAME}.app`;
|
|
15
|
+
const EMBEDDED_ENV = "CUA_DRIVER_EMBEDDED";
|
|
16
|
+
let warned = false;
|
|
17
|
+
/** Reset the one-time warning (tests only). */
|
|
18
|
+
export function resetDaemonWarning() {
|
|
19
|
+
warned = false;
|
|
20
|
+
}
|
|
21
|
+
function launchApp() {
|
|
22
|
+
const result = spawnSync("/usr/bin/open", ["-n", "-g", "-a", APP_NAME, "--args", "serve"], { stdio: "ignore" });
|
|
23
|
+
return result.status === 0;
|
|
24
|
+
}
|
|
25
|
+
function blockingSleep(ms) {
|
|
26
|
+
Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, ms);
|
|
27
|
+
}
|
|
28
|
+
export function createDriver(connect, createEmbedded, embedded, claudeCodeCompatibility, hooks = {}) {
|
|
29
|
+
const platform = hooks.platform ?? process.platform;
|
|
30
|
+
if (embedded ||
|
|
31
|
+
claudeCodeCompatibility ||
|
|
32
|
+
platform !== "darwin" ||
|
|
33
|
+
process.env[EMBEDDED_ENV] === "1") {
|
|
34
|
+
return createEmbedded();
|
|
35
|
+
}
|
|
36
|
+
const driver = connect();
|
|
37
|
+
if (driver.isAvailable())
|
|
38
|
+
return driver;
|
|
39
|
+
const installed = (hooks.appInstalled ?? (() => existsSync(APP_PATH)))();
|
|
40
|
+
if (installed && (hooks.launch ?? launchApp)()) {
|
|
41
|
+
const sleep = hooks.sleep ?? blockingSleep;
|
|
42
|
+
const deadline = Date.now() + (hooks.timeoutMs ?? 15_000);
|
|
43
|
+
while (Date.now() < deadline) {
|
|
44
|
+
if (driver.isAvailable())
|
|
45
|
+
return driver;
|
|
46
|
+
sleep(250);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
if (!warned) {
|
|
50
|
+
warned = true;
|
|
51
|
+
const message = "CuaDriver.create() is using the in-process runtime, which cannot draw " +
|
|
52
|
+
"the agent cursor on macOS and attributes permissions to this process. " +
|
|
53
|
+
"Install CuaDriver.app and run `cua-driver serve` (or call " +
|
|
54
|
+
"CuaDriver.connect()) to get the agent cursor, or pass " +
|
|
55
|
+
"{ embedded: true } to silence this warning.";
|
|
56
|
+
(hooks.warn ?? ((m) => process.emitWarning(m)))(message);
|
|
57
|
+
}
|
|
58
|
+
return createEmbedded();
|
|
59
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Rust-backed SDK for Cua Driver client applications.
|
|
3
|
+
*
|
|
4
|
+
* Agents should configure `cua-driver mcp` through their runtime's existing
|
|
5
|
+
* MCP client instead of importing a language MCP facade.
|
|
6
|
+
*/
|
|
7
|
+
import { CuaDriver as NativeCuaDriver, type CuaDriverLike, type DriverOptions } from "./native/cua_driver_sdk.js";
|
|
8
|
+
/**
|
|
9
|
+
* Options for `CuaDriver.create()`. `embedded: true` forces the in-process
|
|
10
|
+
* runtime on macOS, where `create()` otherwise prefers the CuaDriver.app
|
|
11
|
+
* daemon so the agent cursor overlay and the app's permissions work.
|
|
12
|
+
*/
|
|
13
|
+
export type CreateOptions = DriverOptions & {
|
|
14
|
+
embedded?: boolean;
|
|
15
|
+
};
|
|
16
|
+
declare const CuaDriver: typeof NativeCuaDriver & {
|
|
17
|
+
create(options?: CreateOptions): CuaDriverLike;
|
|
18
|
+
};
|
|
19
|
+
type CuaDriver = NativeCuaDriver;
|
|
1
20
|
export * from "./native/index.js";
|
|
21
|
+
export { CuaDriver };
|
|
2
22
|
export { default } from "./native/index.js";
|
package/dist/index.js
CHANGED
|
@@ -4,16 +4,22 @@
|
|
|
4
4
|
* Agents should configure `cua-driver mcp` through their runtime's existing
|
|
5
5
|
* MCP client instead of importing a language MCP facade.
|
|
6
6
|
*/
|
|
7
|
-
import { CuaDriver, SdkClientKind } from "./native/cua_driver_sdk.js";
|
|
7
|
+
import { CuaDriver as NativeCuaDriver, SdkClientKind, } from "./native/cua_driver_sdk.js";
|
|
8
|
+
import { createDriver } from "./daemon.js";
|
|
9
|
+
const CuaDriver = NativeCuaDriver;
|
|
8
10
|
// The same native library backs Python and TypeScript. The package root tags
|
|
9
11
|
// both the canonical same-process constructor and the temporary daemon
|
|
10
12
|
// compatibility constructor with the importing runtime.
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
NativeCuaDriver.create = (options) => {
|
|
14
|
+
const { embedded, ...driverOptions } = options ?? {};
|
|
15
|
+
return createDriver(() => NativeCuaDriver.connectWithClientKind(undefined, SdkClientKind.Typescript), () => NativeCuaDriver.createWithClientKind(options === undefined ? undefined : driverOptions, SdkClientKind.Typescript), embedded === true, driverOptions.claudeCodeCompatibility === true);
|
|
16
|
+
};
|
|
17
|
+
NativeCuaDriver.createConfigured = (options) => NativeCuaDriver.createConfiguredWithClientKind(options, SdkClientKind.Typescript);
|
|
18
|
+
NativeCuaDriver.createConfiguredWithAuthorizationHost = (options, host) => NativeCuaDriver.createConfiguredWithAuthorizationHostAndClientKind(options, host, SdkClientKind.Typescript);
|
|
19
|
+
NativeCuaDriver.createConfiguredWithActivityObserver = (options, observer) => NativeCuaDriver.createConfiguredWithActivityObserverAndClientKind(options, observer, SdkClientKind.Typescript);
|
|
20
|
+
NativeCuaDriver.createConfiguredWithHostIntegrations = (options, host, observer) => NativeCuaDriver.createConfiguredWithHostIntegrationsAndClientKind(options, host, observer, SdkClientKind.Typescript);
|
|
21
|
+
NativeCuaDriver.createPrivateWorker = (options) => NativeCuaDriver.createPrivateWorkerWithClientKind(options, SdkClientKind.Typescript);
|
|
22
|
+
NativeCuaDriver.connect = (socketPath) => NativeCuaDriver.connectWithClientKind(socketPath, SdkClientKind.Typescript);
|
|
18
23
|
export * from "./native/index.js";
|
|
24
|
+
export { CuaDriver };
|
|
19
25
|
export { default } from "./native/index.js";
|
|
@@ -500,30 +500,38 @@ export declare const ClipboardWriteOutput: Readonly<{
|
|
|
500
500
|
defaults: () => Partial<ClipboardWriteOutput>;
|
|
501
501
|
}>;
|
|
502
502
|
/**
|
|
503
|
-
*
|
|
504
|
-
|
|
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; `
|
|
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
|
|
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.
|
|
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; `
|
|
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
|
|
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.
|
|
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:
|
|
1054
|
-
glow:
|
|
1055
|
-
magnet:
|
|
1056
|
-
ripple:
|
|
1057
|
-
squish:
|
|
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
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
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
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
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
|
|
4792
|
-
const
|
|
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;
|