@trycua/cua-driver 0.12.5 → 0.13.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.
- package/README.md +33 -0
- package/dist/index.js +5 -0
- package/dist/native/cua_driver_contract.d.ts +313 -2
- package/dist/native/cua_driver_contract.js +635 -4
- package/dist/native/cua_driver_sdk-ffi.d.ts +106 -1
- package/dist/native/cua_driver_sdk-ffi.js +471 -0
- package/dist/native/cua_driver_sdk.d.ts +1066 -32
- package/dist/native/cua_driver_sdk.js +2141 -123
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -32,8 +32,10 @@ agent SDK.
|
|
|
32
32
|
import {
|
|
33
33
|
CaptureScope,
|
|
34
34
|
CuaDriver,
|
|
35
|
+
CursorReducedMotion,
|
|
35
36
|
EndSessionInput,
|
|
36
37
|
GetDesktopStateInput,
|
|
38
|
+
SetAgentCursorThemeInput,
|
|
37
39
|
StartSessionInput,
|
|
38
40
|
} from "@trycua/cua-driver"
|
|
39
41
|
|
|
@@ -46,6 +48,13 @@ await driver.startSession(
|
|
|
46
48
|
)
|
|
47
49
|
|
|
48
50
|
try {
|
|
51
|
+
await driver.setAgentCursorTheme(
|
|
52
|
+
SetAgentCursorThemeInput.new({
|
|
53
|
+
session: "demo",
|
|
54
|
+
themeId: "cua.default",
|
|
55
|
+
reducedMotion: CursorReducedMotion.Auto,
|
|
56
|
+
}),
|
|
57
|
+
)
|
|
49
58
|
const desktop = await driver.getDesktopState(
|
|
50
59
|
GetDesktopStateInput.new({ session: "demo" }),
|
|
51
60
|
)
|
|
@@ -64,6 +73,30 @@ images, verification/error metadata, and `structuredJson` / `rawJson` for
|
|
|
64
73
|
platform-extensible results. Session lifecycle calls return dedicated generated
|
|
65
74
|
records.
|
|
66
75
|
|
|
76
|
+
The agent cursor is session-owned. Its default theme and custom dotLottie
|
|
77
|
+
authoring workflow are documented in
|
|
78
|
+
[`docs/cursor-themes.md`](../docs/cursor-themes.md). Custom source is compiled
|
|
79
|
+
and installed with the local CLI; SDK and MCP tools select only an installed
|
|
80
|
+
theme ID. The built-in cursor shows the sanitized public session name in a
|
|
81
|
+
badge below the pointer.
|
|
82
|
+
|
|
83
|
+
## Authorization integrations
|
|
84
|
+
|
|
85
|
+
`standard` is promptless for normal automation. An application that needs to
|
|
86
|
+
authorize attachment to an existing logged-in Chromium profile can construct a
|
|
87
|
+
configured runtime with
|
|
88
|
+
`CuaDriver.createConfiguredWithAuthorizationHost(options, host)`. Implement
|
|
89
|
+
the `DriverAuthorizationHost` interface in trusted application code and return
|
|
90
|
+
the request's exact digest with `Allow`, `Deny`, or `Cancel`.
|
|
91
|
+
|
|
92
|
+
`CuaDriver.createConfiguredWithActivityObserver(options, observer)` emits
|
|
93
|
+
content-free action, refusal, grant, and session events. The observer cannot
|
|
94
|
+
change authorization or tool results. Use
|
|
95
|
+
`createConfiguredWithHostIntegrations` when the application needs both.
|
|
96
|
+
|
|
97
|
+
See the [SDK reference](https://cua.ai/docs/reference/cua-driver/sdk-reference)
|
|
98
|
+
for complete examples and the callback trust rules.
|
|
99
|
+
|
|
67
100
|
`CuaDriver.connect(socketPath)` remains available while existing applications
|
|
68
101
|
migrate. It exposes the same methods over the installed daemon, but it does not
|
|
69
102
|
provide a second SDK contract.
|
package/dist/index.js
CHANGED
|
@@ -9,6 +9,11 @@ import { CuaDriver, SdkClientKind } from "./native/cua_driver_sdk.js";
|
|
|
9
9
|
// both the canonical same-process constructor and the temporary daemon
|
|
10
10
|
// compatibility constructor with the importing runtime.
|
|
11
11
|
CuaDriver.create = (options) => CuaDriver.createWithClientKind(options, SdkClientKind.Typescript);
|
|
12
|
+
CuaDriver.createConfigured = (options) => CuaDriver.createConfiguredWithClientKind(options, SdkClientKind.Typescript);
|
|
13
|
+
CuaDriver.createConfiguredWithAuthorizationHost = (options, host) => CuaDriver.createConfiguredWithAuthorizationHostAndClientKind(options, host, SdkClientKind.Typescript);
|
|
14
|
+
CuaDriver.createConfiguredWithActivityObserver = (options, observer) => CuaDriver.createConfiguredWithActivityObserverAndClientKind(options, observer, SdkClientKind.Typescript);
|
|
15
|
+
CuaDriver.createConfiguredWithHostIntegrations = (options, host, observer) => CuaDriver.createConfiguredWithHostIntegrationsAndClientKind(options, host, observer, SdkClientKind.Typescript);
|
|
16
|
+
CuaDriver.createPrivateWorker = (options) => CuaDriver.createPrivateWorkerWithClientKind(options, SdkClientKind.Typescript);
|
|
12
17
|
CuaDriver.connect = (socketPath) => CuaDriver.connectWithClientKind(socketPath, SdkClientKind.Typescript);
|
|
13
18
|
export * from "./native/index.js";
|
|
14
19
|
export { default } from "./native/index.js";
|
|
@@ -26,6 +26,99 @@ export declare const ClickInput: Readonly<{
|
|
|
26
26
|
new: (partial: Partial<ClickInput> & Required<Omit<ClickInput, "session" | "button" | "count">>) => ClickInput;
|
|
27
27
|
defaults: () => Partial<ClickInput>;
|
|
28
28
|
}>;
|
|
29
|
+
export type CursorMotionOutput = {
|
|
30
|
+
startHandle: number;
|
|
31
|
+
endHandle: number;
|
|
32
|
+
arcSize: number;
|
|
33
|
+
arcFlow: number;
|
|
34
|
+
spring: number;
|
|
35
|
+
glideDurationMs: number;
|
|
36
|
+
dwellAfterClickMs: number;
|
|
37
|
+
idleHideMs: number;
|
|
38
|
+
turnRadius: number;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Generated factory for {@link CursorMotionOutput} record objects.
|
|
42
|
+
*/
|
|
43
|
+
export declare const CursorMotionOutput: Readonly<{
|
|
44
|
+
create: (partial: Partial<CursorMotionOutput> & Required<Omit<CursorMotionOutput, never>>) => CursorMotionOutput;
|
|
45
|
+
new: (partial: Partial<CursorMotionOutput> & Required<Omit<CursorMotionOutput, never>>) => CursorMotionOutput;
|
|
46
|
+
defaults: () => Partial<CursorMotionOutput>;
|
|
47
|
+
}>;
|
|
48
|
+
export type CursorPointOutput = {
|
|
49
|
+
x: number;
|
|
50
|
+
y: number;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* Generated factory for {@link CursorPointOutput} record objects.
|
|
54
|
+
*/
|
|
55
|
+
export declare const CursorPointOutput: Readonly<{
|
|
56
|
+
create: (partial: Partial<CursorPointOutput> & Required<Omit<CursorPointOutput, never>>) => CursorPointOutput;
|
|
57
|
+
new: (partial: Partial<CursorPointOutput> & Required<Omit<CursorPointOutput, never>>) => CursorPointOutput;
|
|
58
|
+
defaults: () => Partial<CursorPointOutput>;
|
|
59
|
+
}>;
|
|
60
|
+
export declare enum CursorReducedMotion {
|
|
61
|
+
Auto = 0,
|
|
62
|
+
On = 1,
|
|
63
|
+
Off = 2
|
|
64
|
+
}
|
|
65
|
+
export type CursorThemeOutput = {
|
|
66
|
+
id: string;
|
|
67
|
+
version: string;
|
|
68
|
+
profile: string;
|
|
69
|
+
reducedMotion: CursorReducedMotion;
|
|
70
|
+
fallback?: string;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* Generated factory for {@link CursorThemeOutput} record objects.
|
|
74
|
+
*/
|
|
75
|
+
export declare const CursorThemeOutput: Readonly<{
|
|
76
|
+
create: (partial: Partial<CursorThemeOutput> & Required<Omit<CursorThemeOutput, "fallback">>) => CursorThemeOutput;
|
|
77
|
+
new: (partial: Partial<CursorThemeOutput> & Required<Omit<CursorThemeOutput, "fallback">>) => CursorThemeOutput;
|
|
78
|
+
defaults: () => Partial<CursorThemeOutput>;
|
|
79
|
+
}>;
|
|
80
|
+
export type CursorThemeSelection = {
|
|
81
|
+
themeId: string;
|
|
82
|
+
reducedMotion: CursorReducedMotion;
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* Generated factory for {@link CursorThemeSelection} record objects.
|
|
86
|
+
*/
|
|
87
|
+
export declare const CursorThemeSelection: Readonly<{
|
|
88
|
+
create: (partial: Partial<CursorThemeSelection> & Required<Omit<CursorThemeSelection, never>>) => CursorThemeSelection;
|
|
89
|
+
new: (partial: Partial<CursorThemeSelection> & Required<Omit<CursorThemeSelection, never>>) => CursorThemeSelection;
|
|
90
|
+
defaults: () => Partial<CursorThemeSelection>;
|
|
91
|
+
}>;
|
|
92
|
+
export declare enum CursorAction {
|
|
93
|
+
Idle = 0,
|
|
94
|
+
Observe = 1,
|
|
95
|
+
Click = 2,
|
|
96
|
+
Drag = 3,
|
|
97
|
+
Scroll = 4,
|
|
98
|
+
Text = 5,
|
|
99
|
+
Key = 6,
|
|
100
|
+
Navigate = 7,
|
|
101
|
+
App = 8,
|
|
102
|
+
Transfer = 9,
|
|
103
|
+
Record = 10,
|
|
104
|
+
System = 11
|
|
105
|
+
}
|
|
106
|
+
export type CursorVisualOutput = {
|
|
107
|
+
requestedAction: CursorAction;
|
|
108
|
+
resolvedAction: CursorAction;
|
|
109
|
+
modifiers: Array<string>;
|
|
110
|
+
phase: string;
|
|
111
|
+
frame: bigint;
|
|
112
|
+
preemptedCount: bigint;
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* Generated factory for {@link CursorVisualOutput} record objects.
|
|
116
|
+
*/
|
|
117
|
+
export declare const CursorVisualOutput: Readonly<{
|
|
118
|
+
create: (partial: Partial<CursorVisualOutput> & Required<Omit<CursorVisualOutput, never>>) => CursorVisualOutput;
|
|
119
|
+
new: (partial: Partial<CursorVisualOutput> & Required<Omit<CursorVisualOutput, never>>) => CursorVisualOutput;
|
|
120
|
+
defaults: () => Partial<CursorVisualOutput>;
|
|
121
|
+
}>;
|
|
29
122
|
export type DragInput = {
|
|
30
123
|
fromX: number;
|
|
31
124
|
fromY: number;
|
|
@@ -101,6 +194,33 @@ export declare const EscalateSessionInput: Readonly<{
|
|
|
101
194
|
new: (partial: Partial<EscalateSessionInput> & Required<Omit<EscalateSessionInput, "detail">>) => EscalateSessionInput;
|
|
102
195
|
defaults: () => Partial<EscalateSessionInput>;
|
|
103
196
|
}>;
|
|
197
|
+
export type GetAgentCursorStateInput = {
|
|
198
|
+
session: string;
|
|
199
|
+
};
|
|
200
|
+
/**
|
|
201
|
+
* Generated factory for {@link GetAgentCursorStateInput} record objects.
|
|
202
|
+
*/
|
|
203
|
+
export declare const GetAgentCursorStateInput: Readonly<{
|
|
204
|
+
create: (partial: Partial<GetAgentCursorStateInput> & Required<Omit<GetAgentCursorStateInput, never>>) => GetAgentCursorStateInput;
|
|
205
|
+
new: (partial: Partial<GetAgentCursorStateInput> & Required<Omit<GetAgentCursorStateInput, never>>) => GetAgentCursorStateInput;
|
|
206
|
+
defaults: () => Partial<GetAgentCursorStateInput>;
|
|
207
|
+
}>;
|
|
208
|
+
export type GetAgentCursorStateOutput = {
|
|
209
|
+
session: string;
|
|
210
|
+
enabled: boolean;
|
|
211
|
+
position?: CursorPointOutput;
|
|
212
|
+
theme: CursorThemeOutput;
|
|
213
|
+
visualState: CursorVisualOutput;
|
|
214
|
+
motion: CursorMotionOutput;
|
|
215
|
+
};
|
|
216
|
+
/**
|
|
217
|
+
* Generated factory for {@link GetAgentCursorStateOutput} record objects.
|
|
218
|
+
*/
|
|
219
|
+
export declare const GetAgentCursorStateOutput: Readonly<{
|
|
220
|
+
create: (partial: Partial<GetAgentCursorStateOutput> & Required<Omit<GetAgentCursorStateOutput, "position">>) => GetAgentCursorStateOutput;
|
|
221
|
+
new: (partial: Partial<GetAgentCursorStateOutput> & Required<Omit<GetAgentCursorStateOutput, "position">>) => GetAgentCursorStateOutput;
|
|
222
|
+
defaults: () => Partial<GetAgentCursorStateOutput>;
|
|
223
|
+
}>;
|
|
104
224
|
export type GetCursorPositionInput = {
|
|
105
225
|
/**
|
|
106
226
|
* Optional session id.
|
|
@@ -266,6 +386,87 @@ export declare const SessionStateOutput: Readonly<{
|
|
|
266
386
|
new: (partial: Partial<SessionStateOutput> & Required<Omit<SessionStateOutput, "escalationReason" | "escalationDetail">>) => SessionStateOutput;
|
|
267
387
|
defaults: () => Partial<SessionStateOutput>;
|
|
268
388
|
}>;
|
|
389
|
+
export type SetAgentCursorEnabledInput = {
|
|
390
|
+
session: string;
|
|
391
|
+
enabled: boolean;
|
|
392
|
+
};
|
|
393
|
+
/**
|
|
394
|
+
* Generated factory for {@link SetAgentCursorEnabledInput} record objects.
|
|
395
|
+
*/
|
|
396
|
+
export declare const SetAgentCursorEnabledInput: Readonly<{
|
|
397
|
+
create: (partial: Partial<SetAgentCursorEnabledInput> & Required<Omit<SetAgentCursorEnabledInput, never>>) => SetAgentCursorEnabledInput;
|
|
398
|
+
new: (partial: Partial<SetAgentCursorEnabledInput> & Required<Omit<SetAgentCursorEnabledInput, never>>) => SetAgentCursorEnabledInput;
|
|
399
|
+
defaults: () => Partial<SetAgentCursorEnabledInput>;
|
|
400
|
+
}>;
|
|
401
|
+
export type SetAgentCursorEnabledOutput = {
|
|
402
|
+
session: string;
|
|
403
|
+
enabled: boolean;
|
|
404
|
+
};
|
|
405
|
+
/**
|
|
406
|
+
* Generated factory for {@link SetAgentCursorEnabledOutput} record objects.
|
|
407
|
+
*/
|
|
408
|
+
export declare const SetAgentCursorEnabledOutput: Readonly<{
|
|
409
|
+
create: (partial: Partial<SetAgentCursorEnabledOutput> & Required<Omit<SetAgentCursorEnabledOutput, never>>) => SetAgentCursorEnabledOutput;
|
|
410
|
+
new: (partial: Partial<SetAgentCursorEnabledOutput> & Required<Omit<SetAgentCursorEnabledOutput, never>>) => SetAgentCursorEnabledOutput;
|
|
411
|
+
defaults: () => Partial<SetAgentCursorEnabledOutput>;
|
|
412
|
+
}>;
|
|
413
|
+
export type SetAgentCursorMotionInput = {
|
|
414
|
+
session: string;
|
|
415
|
+
startHandle?: number;
|
|
416
|
+
endHandle?: number;
|
|
417
|
+
arcSize?: number;
|
|
418
|
+
arcFlow?: number;
|
|
419
|
+
spring?: number;
|
|
420
|
+
glideDurationMs?: number;
|
|
421
|
+
dwellAfterClickMs?: number;
|
|
422
|
+
idleHideMs?: number;
|
|
423
|
+
turnRadius?: number;
|
|
424
|
+
};
|
|
425
|
+
/**
|
|
426
|
+
* Generated factory for {@link SetAgentCursorMotionInput} record objects.
|
|
427
|
+
*/
|
|
428
|
+
export declare const SetAgentCursorMotionInput: Readonly<{
|
|
429
|
+
create: (partial: Partial<SetAgentCursorMotionInput> & Required<Omit<SetAgentCursorMotionInput, "startHandle" | "endHandle" | "arcSize" | "arcFlow" | "spring" | "glideDurationMs" | "dwellAfterClickMs" | "idleHideMs" | "turnRadius">>) => SetAgentCursorMotionInput;
|
|
430
|
+
new: (partial: Partial<SetAgentCursorMotionInput> & Required<Omit<SetAgentCursorMotionInput, "startHandle" | "endHandle" | "arcSize" | "arcFlow" | "spring" | "glideDurationMs" | "dwellAfterClickMs" | "idleHideMs" | "turnRadius">>) => SetAgentCursorMotionInput;
|
|
431
|
+
defaults: () => Partial<SetAgentCursorMotionInput>;
|
|
432
|
+
}>;
|
|
433
|
+
export type SetAgentCursorMotionOutput = {
|
|
434
|
+
session: string;
|
|
435
|
+
motion: CursorMotionOutput;
|
|
436
|
+
};
|
|
437
|
+
/**
|
|
438
|
+
* Generated factory for {@link SetAgentCursorMotionOutput} record objects.
|
|
439
|
+
*/
|
|
440
|
+
export declare const SetAgentCursorMotionOutput: Readonly<{
|
|
441
|
+
create: (partial: Partial<SetAgentCursorMotionOutput> & Required<Omit<SetAgentCursorMotionOutput, never>>) => SetAgentCursorMotionOutput;
|
|
442
|
+
new: (partial: Partial<SetAgentCursorMotionOutput> & Required<Omit<SetAgentCursorMotionOutput, never>>) => SetAgentCursorMotionOutput;
|
|
443
|
+
defaults: () => Partial<SetAgentCursorMotionOutput>;
|
|
444
|
+
}>;
|
|
445
|
+
export type SetAgentCursorThemeInput = {
|
|
446
|
+
session: string;
|
|
447
|
+
themeId: string;
|
|
448
|
+
reducedMotion: CursorReducedMotion;
|
|
449
|
+
};
|
|
450
|
+
/**
|
|
451
|
+
* Generated factory for {@link SetAgentCursorThemeInput} record objects.
|
|
452
|
+
*/
|
|
453
|
+
export declare const SetAgentCursorThemeInput: Readonly<{
|
|
454
|
+
create: (partial: Partial<SetAgentCursorThemeInput> & Required<Omit<SetAgentCursorThemeInput, never>>) => SetAgentCursorThemeInput;
|
|
455
|
+
new: (partial: Partial<SetAgentCursorThemeInput> & Required<Omit<SetAgentCursorThemeInput, never>>) => SetAgentCursorThemeInput;
|
|
456
|
+
defaults: () => Partial<SetAgentCursorThemeInput>;
|
|
457
|
+
}>;
|
|
458
|
+
export type SetAgentCursorThemeOutput = {
|
|
459
|
+
session: string;
|
|
460
|
+
theme: CursorThemeOutput;
|
|
461
|
+
};
|
|
462
|
+
/**
|
|
463
|
+
* Generated factory for {@link SetAgentCursorThemeOutput} record objects.
|
|
464
|
+
*/
|
|
465
|
+
export declare const SetAgentCursorThemeOutput: Readonly<{
|
|
466
|
+
create: (partial: Partial<SetAgentCursorThemeOutput> & Required<Omit<SetAgentCursorThemeOutput, never>>) => SetAgentCursorThemeOutput;
|
|
467
|
+
new: (partial: Partial<SetAgentCursorThemeOutput> & Required<Omit<SetAgentCursorThemeOutput, never>>) => SetAgentCursorThemeOutput;
|
|
468
|
+
defaults: () => Partial<SetAgentCursorThemeOutput>;
|
|
469
|
+
}>;
|
|
269
470
|
export type StartSessionInput = {
|
|
270
471
|
/**
|
|
271
472
|
* Stable session id for this run (e.g. "research-run-1").
|
|
@@ -275,13 +476,18 @@ export type StartSessionInput = {
|
|
|
275
476
|
* Per-session perception/action modality. auto starts window-only and requires explicit escalation before desktop tools; window and desktop are strict. Immutable for the live session.
|
|
276
477
|
*/
|
|
277
478
|
captureScope?: CaptureScope;
|
|
479
|
+
/**
|
|
480
|
+
* Optional initial cursor theme. The host applies it before the cursor is
|
|
481
|
+
* first made visible, avoiding a flash of the default theme.
|
|
482
|
+
*/
|
|
483
|
+
cursorTheme?: CursorThemeSelection;
|
|
278
484
|
};
|
|
279
485
|
/**
|
|
280
486
|
* Generated factory for {@link StartSessionInput} record objects.
|
|
281
487
|
*/
|
|
282
488
|
export declare const StartSessionInput: Readonly<{
|
|
283
|
-
create: (partial: Partial<StartSessionInput> & Required<Omit<StartSessionInput, "captureScope">>) => StartSessionInput;
|
|
284
|
-
new: (partial: Partial<StartSessionInput> & Required<Omit<StartSessionInput, "captureScope">>) => StartSessionInput;
|
|
489
|
+
create: (partial: Partial<StartSessionInput> & Required<Omit<StartSessionInput, "captureScope" | "cursorTheme">>) => StartSessionInput;
|
|
490
|
+
new: (partial: Partial<StartSessionInput> & Required<Omit<StartSessionInput, "captureScope" | "cursorTheme">>) => StartSessionInput;
|
|
285
491
|
defaults: () => Partial<StartSessionInput>;
|
|
286
492
|
}>;
|
|
287
493
|
/**
|
|
@@ -356,6 +562,55 @@ declare const _default: Readonly<{
|
|
|
356
562
|
lift(value: UniffiByteArray): ClickInput;
|
|
357
563
|
lower(value: ClickInput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
358
564
|
};
|
|
565
|
+
FfiConverterTypeCursorAction: {
|
|
566
|
+
read(from: RustBuffer): CursorAction;
|
|
567
|
+
write(value: CursorAction, into: RustBuffer): void;
|
|
568
|
+
allocationSize(value: CursorAction): number;
|
|
569
|
+
lift(value: UniffiByteArray): CursorAction;
|
|
570
|
+
lower(value: CursorAction, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
571
|
+
};
|
|
572
|
+
FfiConverterTypeCursorMotionOutput: {
|
|
573
|
+
read(from: RustBuffer): CursorMotionOutput;
|
|
574
|
+
write(value: CursorMotionOutput, into: RustBuffer): void;
|
|
575
|
+
allocationSize(value: CursorMotionOutput): number;
|
|
576
|
+
lift(value: UniffiByteArray): CursorMotionOutput;
|
|
577
|
+
lower(value: CursorMotionOutput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
578
|
+
};
|
|
579
|
+
FfiConverterTypeCursorPointOutput: {
|
|
580
|
+
read(from: RustBuffer): CursorPointOutput;
|
|
581
|
+
write(value: CursorPointOutput, into: RustBuffer): void;
|
|
582
|
+
allocationSize(value: CursorPointOutput): number;
|
|
583
|
+
lift(value: UniffiByteArray): CursorPointOutput;
|
|
584
|
+
lower(value: CursorPointOutput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
585
|
+
};
|
|
586
|
+
FfiConverterTypeCursorReducedMotion: {
|
|
587
|
+
read(from: RustBuffer): CursorReducedMotion;
|
|
588
|
+
write(value: CursorReducedMotion, into: RustBuffer): void;
|
|
589
|
+
allocationSize(value: CursorReducedMotion): number;
|
|
590
|
+
lift(value: UniffiByteArray): CursorReducedMotion;
|
|
591
|
+
lower(value: CursorReducedMotion, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
592
|
+
};
|
|
593
|
+
FfiConverterTypeCursorThemeOutput: {
|
|
594
|
+
read(from: RustBuffer): CursorThemeOutput;
|
|
595
|
+
write(value: CursorThemeOutput, into: RustBuffer): void;
|
|
596
|
+
allocationSize(value: CursorThemeOutput): number;
|
|
597
|
+
lift(value: UniffiByteArray): CursorThemeOutput;
|
|
598
|
+
lower(value: CursorThemeOutput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
599
|
+
};
|
|
600
|
+
FfiConverterTypeCursorThemeSelection: {
|
|
601
|
+
read(from: RustBuffer): CursorThemeSelection;
|
|
602
|
+
write(value: CursorThemeSelection, into: RustBuffer): void;
|
|
603
|
+
allocationSize(value: CursorThemeSelection): number;
|
|
604
|
+
lift(value: UniffiByteArray): CursorThemeSelection;
|
|
605
|
+
lower(value: CursorThemeSelection, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
606
|
+
};
|
|
607
|
+
FfiConverterTypeCursorVisualOutput: {
|
|
608
|
+
read(from: RustBuffer): CursorVisualOutput;
|
|
609
|
+
write(value: CursorVisualOutput, into: RustBuffer): void;
|
|
610
|
+
allocationSize(value: CursorVisualOutput): number;
|
|
611
|
+
lift(value: UniffiByteArray): CursorVisualOutput;
|
|
612
|
+
lower(value: CursorVisualOutput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
613
|
+
};
|
|
359
614
|
FfiConverterTypeDesktopScope: {
|
|
360
615
|
read(from: RustBuffer): DesktopScope;
|
|
361
616
|
write(value: DesktopScope, into: RustBuffer): void;
|
|
@@ -405,6 +660,20 @@ declare const _default: Readonly<{
|
|
|
405
660
|
lift(value: UniffiByteArray): EscalationReason;
|
|
406
661
|
lower(value: EscalationReason, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
407
662
|
};
|
|
663
|
+
FfiConverterTypeGetAgentCursorStateInput: {
|
|
664
|
+
read(from: RustBuffer): GetAgentCursorStateInput;
|
|
665
|
+
write(value: GetAgentCursorStateInput, into: RustBuffer): void;
|
|
666
|
+
allocationSize(value: GetAgentCursorStateInput): number;
|
|
667
|
+
lift(value: UniffiByteArray): GetAgentCursorStateInput;
|
|
668
|
+
lower(value: GetAgentCursorStateInput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
669
|
+
};
|
|
670
|
+
FfiConverterTypeGetAgentCursorStateOutput: {
|
|
671
|
+
read(from: RustBuffer): GetAgentCursorStateOutput;
|
|
672
|
+
write(value: GetAgentCursorStateOutput, into: RustBuffer): void;
|
|
673
|
+
allocationSize(value: GetAgentCursorStateOutput): number;
|
|
674
|
+
lift(value: UniffiByteArray): GetAgentCursorStateOutput;
|
|
675
|
+
lower(value: GetAgentCursorStateOutput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
676
|
+
};
|
|
408
677
|
FfiConverterTypeGetCursorPositionInput: {
|
|
409
678
|
read(from: RustBuffer): GetCursorPositionInput;
|
|
410
679
|
write(value: GetCursorPositionInput, into: RustBuffer): void;
|
|
@@ -489,6 +758,48 @@ declare const _default: Readonly<{
|
|
|
489
758
|
lift(value: UniffiByteArray): SessionStateOutput;
|
|
490
759
|
lower(value: SessionStateOutput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
491
760
|
};
|
|
761
|
+
FfiConverterTypeSetAgentCursorEnabledInput: {
|
|
762
|
+
read(from: RustBuffer): SetAgentCursorEnabledInput;
|
|
763
|
+
write(value: SetAgentCursorEnabledInput, into: RustBuffer): void;
|
|
764
|
+
allocationSize(value: SetAgentCursorEnabledInput): number;
|
|
765
|
+
lift(value: UniffiByteArray): SetAgentCursorEnabledInput;
|
|
766
|
+
lower(value: SetAgentCursorEnabledInput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
767
|
+
};
|
|
768
|
+
FfiConverterTypeSetAgentCursorEnabledOutput: {
|
|
769
|
+
read(from: RustBuffer): SetAgentCursorEnabledOutput;
|
|
770
|
+
write(value: SetAgentCursorEnabledOutput, into: RustBuffer): void;
|
|
771
|
+
allocationSize(value: SetAgentCursorEnabledOutput): number;
|
|
772
|
+
lift(value: UniffiByteArray): SetAgentCursorEnabledOutput;
|
|
773
|
+
lower(value: SetAgentCursorEnabledOutput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
774
|
+
};
|
|
775
|
+
FfiConverterTypeSetAgentCursorMotionInput: {
|
|
776
|
+
read(from: RustBuffer): SetAgentCursorMotionInput;
|
|
777
|
+
write(value: SetAgentCursorMotionInput, into: RustBuffer): void;
|
|
778
|
+
allocationSize(value: SetAgentCursorMotionInput): number;
|
|
779
|
+
lift(value: UniffiByteArray): SetAgentCursorMotionInput;
|
|
780
|
+
lower(value: SetAgentCursorMotionInput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
781
|
+
};
|
|
782
|
+
FfiConverterTypeSetAgentCursorMotionOutput: {
|
|
783
|
+
read(from: RustBuffer): SetAgentCursorMotionOutput;
|
|
784
|
+
write(value: SetAgentCursorMotionOutput, into: RustBuffer): void;
|
|
785
|
+
allocationSize(value: SetAgentCursorMotionOutput): number;
|
|
786
|
+
lift(value: UniffiByteArray): SetAgentCursorMotionOutput;
|
|
787
|
+
lower(value: SetAgentCursorMotionOutput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
788
|
+
};
|
|
789
|
+
FfiConverterTypeSetAgentCursorThemeInput: {
|
|
790
|
+
read(from: RustBuffer): SetAgentCursorThemeInput;
|
|
791
|
+
write(value: SetAgentCursorThemeInput, into: RustBuffer): void;
|
|
792
|
+
allocationSize(value: SetAgentCursorThemeInput): number;
|
|
793
|
+
lift(value: UniffiByteArray): SetAgentCursorThemeInput;
|
|
794
|
+
lower(value: SetAgentCursorThemeInput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
795
|
+
};
|
|
796
|
+
FfiConverterTypeSetAgentCursorThemeOutput: {
|
|
797
|
+
read(from: RustBuffer): SetAgentCursorThemeOutput;
|
|
798
|
+
write(value: SetAgentCursorThemeOutput, into: RustBuffer): void;
|
|
799
|
+
allocationSize(value: SetAgentCursorThemeOutput): number;
|
|
800
|
+
lift(value: UniffiByteArray): SetAgentCursorThemeOutput;
|
|
801
|
+
lower(value: SetAgentCursorThemeOutput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
802
|
+
};
|
|
492
803
|
FfiConverterTypeStartSessionInput: {
|
|
493
804
|
read(from: RustBuffer): StartSessionInput;
|
|
494
805
|
write(value: StartSessionInput, into: RustBuffer): void;
|