@trycua/cua-driver 0.24.0 → 0.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -3
- package/dist/native/cua_driver_contract.d.ts +423 -29
- package/dist/native/cua_driver_contract.js +794 -40
- package/dist/native/cua_driver_sdk-ffi.d.ts +53 -0
- package/dist/native/cua_driver_sdk-ffi.js +219 -0
- package/dist/native/cua_driver_sdk.d.ts +403 -27
- package/dist/native/cua_driver_sdk.js +1037 -82
- package/package.json +7 -7
|
@@ -1,5 +1,15 @@
|
|
|
1
|
-
import { type ActionResult, type ClickInput, type ClipboardReadInput, type ClipboardWriteInput, type DragInput, type EndSessionInput, type EndSessionOutput, type EscalateSessionInput, type GetAgentCursorStateInput, type GetCursorPositionInput, type GetDesktopStateInput, type GetScreenSizeInput, type GetSessionInput, type GetSessionStateInput, type HotkeyInput, type InvokeMenuInput, type ListSessionsInput, type ListSessionsOutput, type MoveCursorInput, type PressKeyInput, type ScrollInput, type SessionOutput, type SessionStateOutput, type SetAgentCursorEnabledInput, type SetAgentCursorMotionInput, type SetAgentCursorThemeInput, type SetWindowFrameInput, type StartSessionInput, type StartSessionOutput, type TypeTextInput, type VerifyStateInput, type VerifyStateOutput } from "./cua_driver_contract.js";
|
|
1
|
+
import { type ActionResult, type ClickInput, type ClipboardReadInput, type ClipboardWriteInput, type DragInput, type EndSessionInput, type EndSessionOutput, type EscalateSessionInput, type GetAgentCursorStateInput, type GetCursorPositionInput, type GetDesktopStateInput, type GetScreenSizeInput, type GetSessionInput, type GetSessionStateInput, type GetWindowStateInput, type HotkeyInput, type InvokeMenuInput, type ListAppsInput, type ListAppsOutput, type ListSessionsInput, type ListSessionsOutput, type ListWindowsInput, type ListWindowsOutput, type MoveCursorInput, type PressKeyInput, type ScrollInput, type SessionOutput, type SessionStateOutput, type SetAgentCursorEnabledInput, type SetAgentCursorMotionInput, type SetAgentCursorThemeInput, type SetWindowFrameInput, type StartSessionInput, type StartSessionOutput, type TypeTextInput, type VerifyStateInput, type VerifyStateOutput, type WindowStateOutput } from "./cua_driver_contract.js";
|
|
2
2
|
import { type UniffiByteArray, type UniffiGcObject, type UniffiHandle, FfiConverterObject, FfiConverterObjectWithCallbacks, RustBuffer, UniffiAbstractObject, destructorGuardSymbol, pointerLiteralSymbol, uniffiTypeNameSymbol } from "@ubjs/core";
|
|
3
|
+
/**
|
|
4
|
+
* Connect the canonical typed Driver to a host-provided remote carrier.
|
|
5
|
+
*/
|
|
6
|
+
export declare function connectRemoteChannel(channel: ForeignDriverEnvelopeChannel): CuaDriverLike;
|
|
7
|
+
/**
|
|
8
|
+
* Bind a logical remote session without serializing its authority.
|
|
9
|
+
*/
|
|
10
|
+
export declare function createRemoteTrustedSession(driver: CuaDriverLike, options: TrustedSessionOptions, asyncOpts_?: {
|
|
11
|
+
signal: AbortSignal;
|
|
12
|
+
}): Promise<CuaDriverSessionLike>;
|
|
3
13
|
/**
|
|
4
14
|
* Generated-language host factory for a session-bound action surface.
|
|
5
15
|
*
|
|
@@ -271,6 +281,245 @@ export declare const EmbeddedDriverHostOptions: Readonly<{
|
|
|
271
281
|
new: (partial: Partial<EmbeddedDriverHostOptions> & Required<Omit<EmbeddedDriverHostOptions, "socketPath" | "permissionMode" | "startupTimeoutMs" | "shutdownTimeoutMs" | "capabilityManifestPath" | "approveCapabilityManifest" | "sessionPolicyPath" | "noOverlay">>) => EmbeddedDriverHostOptions;
|
|
272
282
|
defaults: () => Partial<EmbeddedDriverHostOptions>;
|
|
273
283
|
}>;
|
|
284
|
+
/**
|
|
285
|
+
* Opaque context established by the authenticated carrier, not guest claims.
|
|
286
|
+
*/
|
|
287
|
+
export type ForeignDriverChannelIdentity = {
|
|
288
|
+
authenticatedPrincipal: string;
|
|
289
|
+
connectionGeneration: string;
|
|
290
|
+
};
|
|
291
|
+
/**
|
|
292
|
+
* Generated factory for {@link ForeignDriverChannelIdentity} record objects.
|
|
293
|
+
*/
|
|
294
|
+
export declare const ForeignDriverChannelIdentity: Readonly<{
|
|
295
|
+
create: (partial: Partial<ForeignDriverChannelIdentity> & Required<Omit<ForeignDriverChannelIdentity, never>>) => ForeignDriverChannelIdentity;
|
|
296
|
+
new: (partial: Partial<ForeignDriverChannelIdentity> & Required<Omit<ForeignDriverChannelIdentity, never>>) => ForeignDriverChannelIdentity;
|
|
297
|
+
defaults: () => Partial<ForeignDriverChannelIdentity>;
|
|
298
|
+
}>;
|
|
299
|
+
export declare enum ForeignDriverChannelError_Tags {
|
|
300
|
+
Failed = "Failed"
|
|
301
|
+
}
|
|
302
|
+
export declare const ForeignDriverChannelError: Readonly<{
|
|
303
|
+
instanceOf: (obj: any) => obj is ForeignDriverChannelError;
|
|
304
|
+
Failed: {
|
|
305
|
+
new (inner: {
|
|
306
|
+
reason: string;
|
|
307
|
+
}): {
|
|
308
|
+
readonly tag: ForeignDriverChannelError_Tags.Failed;
|
|
309
|
+
readonly inner: Readonly<{
|
|
310
|
+
reason: string;
|
|
311
|
+
}>;
|
|
312
|
+
/**
|
|
313
|
+
* @private
|
|
314
|
+
* This field is private and should not be used, use `tag` instead.
|
|
315
|
+
*/
|
|
316
|
+
readonly [uniffiTypeNameSymbol]: "ForeignDriverChannelError";
|
|
317
|
+
name: string;
|
|
318
|
+
message: string;
|
|
319
|
+
stack?: string;
|
|
320
|
+
cause?: unknown;
|
|
321
|
+
};
|
|
322
|
+
"new"(inner: {
|
|
323
|
+
reason: string;
|
|
324
|
+
}): {
|
|
325
|
+
readonly tag: ForeignDriverChannelError_Tags.Failed;
|
|
326
|
+
readonly inner: Readonly<{
|
|
327
|
+
reason: string;
|
|
328
|
+
}>;
|
|
329
|
+
/**
|
|
330
|
+
* @private
|
|
331
|
+
* This field is private and should not be used, use `tag` instead.
|
|
332
|
+
*/
|
|
333
|
+
readonly [uniffiTypeNameSymbol]: "ForeignDriverChannelError";
|
|
334
|
+
name: string;
|
|
335
|
+
message: string;
|
|
336
|
+
stack?: string;
|
|
337
|
+
cause?: unknown;
|
|
338
|
+
};
|
|
339
|
+
instanceOf(obj: any): obj is {
|
|
340
|
+
readonly tag: ForeignDriverChannelError_Tags.Failed;
|
|
341
|
+
readonly inner: Readonly<{
|
|
342
|
+
reason: string;
|
|
343
|
+
}>;
|
|
344
|
+
/**
|
|
345
|
+
* @private
|
|
346
|
+
* This field is private and should not be used, use `tag` instead.
|
|
347
|
+
*/
|
|
348
|
+
readonly [uniffiTypeNameSymbol]: "ForeignDriverChannelError";
|
|
349
|
+
name: string;
|
|
350
|
+
message: string;
|
|
351
|
+
stack?: string;
|
|
352
|
+
cause?: unknown;
|
|
353
|
+
};
|
|
354
|
+
hasInner(obj: any): obj is {
|
|
355
|
+
readonly tag: ForeignDriverChannelError_Tags.Failed;
|
|
356
|
+
readonly inner: Readonly<{
|
|
357
|
+
reason: string;
|
|
358
|
+
}>;
|
|
359
|
+
/**
|
|
360
|
+
* @private
|
|
361
|
+
* This field is private and should not be used, use `tag` instead.
|
|
362
|
+
*/
|
|
363
|
+
readonly [uniffiTypeNameSymbol]: "ForeignDriverChannelError";
|
|
364
|
+
name: string;
|
|
365
|
+
message: string;
|
|
366
|
+
stack?: string;
|
|
367
|
+
cause?: unknown;
|
|
368
|
+
};
|
|
369
|
+
getInner(obj: {
|
|
370
|
+
readonly tag: ForeignDriverChannelError_Tags.Failed;
|
|
371
|
+
readonly inner: Readonly<{
|
|
372
|
+
reason: string;
|
|
373
|
+
}>;
|
|
374
|
+
/**
|
|
375
|
+
* @private
|
|
376
|
+
* This field is private and should not be used, use `tag` instead.
|
|
377
|
+
*/
|
|
378
|
+
readonly [uniffiTypeNameSymbol]: "ForeignDriverChannelError";
|
|
379
|
+
name: string;
|
|
380
|
+
message: string;
|
|
381
|
+
stack?: string;
|
|
382
|
+
cause?: unknown;
|
|
383
|
+
}): Readonly<{
|
|
384
|
+
reason: string;
|
|
385
|
+
}>;
|
|
386
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
387
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
388
|
+
stackTraceLimit: number;
|
|
389
|
+
};
|
|
390
|
+
}>;
|
|
391
|
+
export type ForeignDriverChannelError = InstanceType<typeof ForeignDriverChannelError['Failed']>;
|
|
392
|
+
export type ForeignDriverChannelCapabilities = {
|
|
393
|
+
minimumEnvelopeVersion: number;
|
|
394
|
+
maximumEnvelopeVersion: number;
|
|
395
|
+
supportsCancellation: boolean;
|
|
396
|
+
};
|
|
397
|
+
/**
|
|
398
|
+
* Generated factory for {@link ForeignDriverChannelCapabilities} record objects.
|
|
399
|
+
*/
|
|
400
|
+
export declare const ForeignDriverChannelCapabilities: Readonly<{
|
|
401
|
+
create: (partial: Partial<ForeignDriverChannelCapabilities> & Required<Omit<ForeignDriverChannelCapabilities, never>>) => ForeignDriverChannelCapabilities;
|
|
402
|
+
new: (partial: Partial<ForeignDriverChannelCapabilities> & Required<Omit<ForeignDriverChannelCapabilities, never>>) => ForeignDriverChannelCapabilities;
|
|
403
|
+
defaults: () => Partial<ForeignDriverChannelCapabilities>;
|
|
404
|
+
}>;
|
|
405
|
+
export type ForeignDriverRequestEnvelope = {
|
|
406
|
+
envelopeVersion: number;
|
|
407
|
+
requestId: string;
|
|
408
|
+
operation: string;
|
|
409
|
+
name?: string;
|
|
410
|
+
argumentsJson?: string;
|
|
411
|
+
deadlineUnixMs: bigint;
|
|
412
|
+
};
|
|
413
|
+
/**
|
|
414
|
+
* Generated factory for {@link ForeignDriverRequestEnvelope} record objects.
|
|
415
|
+
*/
|
|
416
|
+
export declare const ForeignDriverRequestEnvelope: Readonly<{
|
|
417
|
+
create: (partial: Partial<ForeignDriverRequestEnvelope> & Required<Omit<ForeignDriverRequestEnvelope, "name" | "argumentsJson">>) => ForeignDriverRequestEnvelope;
|
|
418
|
+
new: (partial: Partial<ForeignDriverRequestEnvelope> & Required<Omit<ForeignDriverRequestEnvelope, "name" | "argumentsJson">>) => ForeignDriverRequestEnvelope;
|
|
419
|
+
defaults: () => Partial<ForeignDriverRequestEnvelope>;
|
|
420
|
+
}>;
|
|
421
|
+
export type ForeignDriverResponseEnvelope = {
|
|
422
|
+
envelopeVersion: number;
|
|
423
|
+
requestId: string;
|
|
424
|
+
ok: boolean;
|
|
425
|
+
resultJson?: string;
|
|
426
|
+
error?: string;
|
|
427
|
+
errorCode?: string;
|
|
428
|
+
completionKnown: boolean;
|
|
429
|
+
};
|
|
430
|
+
/**
|
|
431
|
+
* Generated factory for {@link ForeignDriverResponseEnvelope} record objects.
|
|
432
|
+
*/
|
|
433
|
+
export declare const ForeignDriverResponseEnvelope: Readonly<{
|
|
434
|
+
create: (partial: Partial<ForeignDriverResponseEnvelope> & Required<Omit<ForeignDriverResponseEnvelope, "errorCode" | "resultJson" | "error">>) => ForeignDriverResponseEnvelope;
|
|
435
|
+
new: (partial: Partial<ForeignDriverResponseEnvelope> & Required<Omit<ForeignDriverResponseEnvelope, "errorCode" | "resultJson" | "error">>) => ForeignDriverResponseEnvelope;
|
|
436
|
+
defaults: () => Partial<ForeignDriverResponseEnvelope>;
|
|
437
|
+
}>;
|
|
438
|
+
/**
|
|
439
|
+
* Trusted host request for one immutable, connection-bound action surface.
|
|
440
|
+
*/
|
|
441
|
+
export type TrustedSessionOptions = {
|
|
442
|
+
publicSession: string;
|
|
443
|
+
mode: SessionPermissionMode;
|
|
444
|
+
ttlSeconds: bigint;
|
|
445
|
+
idleTtlSeconds: bigint;
|
|
446
|
+
capabilityManifestPath?: string;
|
|
447
|
+
/**
|
|
448
|
+
* Deprecated alias for `capability_manifest_path`.
|
|
449
|
+
*/
|
|
450
|
+
boundedManifestPath?: string;
|
|
451
|
+
};
|
|
452
|
+
/**
|
|
453
|
+
* Generated factory for {@link TrustedSessionOptions} record objects.
|
|
454
|
+
*/
|
|
455
|
+
export declare const TrustedSessionOptions: Readonly<{
|
|
456
|
+
create: (partial: Partial<TrustedSessionOptions> & Required<Omit<TrustedSessionOptions, "capabilityManifestPath" | "boundedManifestPath">>) => TrustedSessionOptions;
|
|
457
|
+
new: (partial: Partial<TrustedSessionOptions> & Required<Omit<TrustedSessionOptions, "capabilityManifestPath" | "boundedManifestPath">>) => TrustedSessionOptions;
|
|
458
|
+
defaults: () => Partial<TrustedSessionOptions>;
|
|
459
|
+
}>;
|
|
460
|
+
/**
|
|
461
|
+
* Trusted host implementation of the existing remote transport contract.
|
|
462
|
+
* Identity is captured once when each channel is adapted. A bound channel
|
|
463
|
+
* must retain its parent's authenticated principal and connection generation.
|
|
464
|
+
*/
|
|
465
|
+
export interface ForeignDriverEnvelopeChannel {
|
|
466
|
+
identity(): ForeignDriverChannelIdentity;
|
|
467
|
+
negotiate(asyncOpts_?: {
|
|
468
|
+
signal: AbortSignal;
|
|
469
|
+
}): Promise<ForeignDriverChannelCapabilities>;
|
|
470
|
+
exchange(request: ForeignDriverRequestEnvelope, asyncOpts_?: {
|
|
471
|
+
signal: AbortSignal;
|
|
472
|
+
}): Promise<ForeignDriverResponseEnvelope>;
|
|
473
|
+
bindSession(options: TrustedSessionOptions, asyncOpts_?: {
|
|
474
|
+
signal: AbortSignal;
|
|
475
|
+
}): Promise<ForeignDriverBoundChannel>;
|
|
476
|
+
cancel(requestId: string, asyncOpts_?: {
|
|
477
|
+
signal: AbortSignal;
|
|
478
|
+
}): Promise<void>;
|
|
479
|
+
close(asyncOpts_?: {
|
|
480
|
+
signal: AbortSignal;
|
|
481
|
+
}): Promise<void>;
|
|
482
|
+
}
|
|
483
|
+
/**
|
|
484
|
+
* Trusted host implementation of the existing remote transport contract.
|
|
485
|
+
* Identity is captured once when each channel is adapted. A bound channel
|
|
486
|
+
* must retain its parent's authenticated principal and connection generation.
|
|
487
|
+
*/
|
|
488
|
+
export declare class ForeignDriverEnvelopeChannelImpl extends UniffiAbstractObject implements ForeignDriverEnvelopeChannel {
|
|
489
|
+
readonly [uniffiTypeNameSymbol] = "ForeignDriverEnvelopeChannelImpl";
|
|
490
|
+
readonly [destructorGuardSymbol]: UniffiGcObject;
|
|
491
|
+
readonly [pointerLiteralSymbol]: UniffiHandle;
|
|
492
|
+
private constructor();
|
|
493
|
+
identity(): ForeignDriverChannelIdentity;
|
|
494
|
+
negotiate(asyncOpts_?: {
|
|
495
|
+
signal: AbortSignal;
|
|
496
|
+
}): Promise<ForeignDriverChannelCapabilities>;
|
|
497
|
+
exchange(request: ForeignDriverRequestEnvelope, asyncOpts_?: {
|
|
498
|
+
signal: AbortSignal;
|
|
499
|
+
}): Promise<ForeignDriverResponseEnvelope>;
|
|
500
|
+
bindSession(options: TrustedSessionOptions, asyncOpts_?: {
|
|
501
|
+
signal: AbortSignal;
|
|
502
|
+
}): Promise<ForeignDriverBoundChannel>;
|
|
503
|
+
cancel(requestId: string, asyncOpts_?: {
|
|
504
|
+
signal: AbortSignal;
|
|
505
|
+
}): Promise<void>;
|
|
506
|
+
close(asyncOpts_?: {
|
|
507
|
+
signal: AbortSignal;
|
|
508
|
+
}): Promise<void>;
|
|
509
|
+
uniffiDestroy(): void;
|
|
510
|
+
static instanceOf(obj_: any): obj_ is ForeignDriverEnvelopeChannelImpl;
|
|
511
|
+
}
|
|
512
|
+
export type ForeignDriverBoundChannel = {
|
|
513
|
+
channel: ForeignDriverEnvelopeChannel;
|
|
514
|
+
};
|
|
515
|
+
/**
|
|
516
|
+
* Generated factory for {@link ForeignDriverBoundChannel} record objects.
|
|
517
|
+
*/
|
|
518
|
+
export declare const ForeignDriverBoundChannel: Readonly<{
|
|
519
|
+
create: (partial: Partial<ForeignDriverBoundChannel> & Required<Omit<ForeignDriverBoundChannel, never>>) => ForeignDriverBoundChannel;
|
|
520
|
+
new: (partial: Partial<ForeignDriverBoundChannel> & Required<Omit<ForeignDriverBoundChannel, never>>) => ForeignDriverBoundChannel;
|
|
521
|
+
defaults: () => Partial<ForeignDriverBoundChannel>;
|
|
522
|
+
}>;
|
|
274
523
|
export type ImageContent = {
|
|
275
524
|
mimeType: string;
|
|
276
525
|
dataBase64: string;
|
|
@@ -346,28 +595,6 @@ export declare const ToolResult: Readonly<{
|
|
|
346
595
|
new: (partial: Partial<ToolResult> & Required<Omit<ToolResult, "errorCode" | "action" | "structuredJson" | "verification">>) => ToolResult;
|
|
347
596
|
defaults: () => Partial<ToolResult>;
|
|
348
597
|
}>;
|
|
349
|
-
/**
|
|
350
|
-
* Trusted host request for one immutable, connection-bound action surface.
|
|
351
|
-
*/
|
|
352
|
-
export type TrustedSessionOptions = {
|
|
353
|
-
publicSession: string;
|
|
354
|
-
mode: SessionPermissionMode;
|
|
355
|
-
ttlSeconds: bigint;
|
|
356
|
-
idleTtlSeconds: bigint;
|
|
357
|
-
capabilityManifestPath?: string;
|
|
358
|
-
/**
|
|
359
|
-
* Deprecated alias for `capability_manifest_path`.
|
|
360
|
-
*/
|
|
361
|
-
boundedManifestPath?: string;
|
|
362
|
-
};
|
|
363
|
-
/**
|
|
364
|
-
* Generated factory for {@link TrustedSessionOptions} record objects.
|
|
365
|
-
*/
|
|
366
|
-
export declare const TrustedSessionOptions: Readonly<{
|
|
367
|
-
create: (partial: Partial<TrustedSessionOptions> & Required<Omit<TrustedSessionOptions, "capabilityManifestPath" | "boundedManifestPath">>) => TrustedSessionOptions;
|
|
368
|
-
new: (partial: Partial<TrustedSessionOptions> & Required<Omit<TrustedSessionOptions, "capabilityManifestPath" | "boundedManifestPath">>) => TrustedSessionOptions;
|
|
369
|
-
defaults: () => Partial<TrustedSessionOptions>;
|
|
370
|
-
}>;
|
|
371
598
|
export declare enum ActionCompletion {
|
|
372
599
|
NotStarted = 0,
|
|
373
600
|
Completed = 1,
|
|
@@ -2036,7 +2263,7 @@ export interface CuaDriverLike {
|
|
|
2036
2263
|
}): Promise<ToolResult>;
|
|
2037
2264
|
click(input: ClickInput, asyncOpts_?: {
|
|
2038
2265
|
signal: AbortSignal;
|
|
2039
|
-
}): Promise<
|
|
2266
|
+
}): Promise<ActionResult>;
|
|
2040
2267
|
clipboardRead(input: ClipboardReadInput, asyncOpts_?: {
|
|
2041
2268
|
signal: AbortSignal;
|
|
2042
2269
|
}): Promise<ToolResult>;
|
|
@@ -2071,6 +2298,9 @@ export interface CuaDriverLike {
|
|
|
2071
2298
|
getSessionState(input: GetSessionStateInput, asyncOpts_?: {
|
|
2072
2299
|
signal: AbortSignal;
|
|
2073
2300
|
}): Promise<SessionStateOutput>;
|
|
2301
|
+
getWindowState(input: GetWindowStateInput, asyncOpts_?: {
|
|
2302
|
+
signal: AbortSignal;
|
|
2303
|
+
}): Promise<WindowStateOutput>;
|
|
2074
2304
|
hotkey(input: HotkeyInput, asyncOpts_?: {
|
|
2075
2305
|
signal: AbortSignal;
|
|
2076
2306
|
}): Promise<ToolResult>;
|
|
@@ -2078,6 +2308,9 @@ export interface CuaDriverLike {
|
|
|
2078
2308
|
signal: AbortSignal;
|
|
2079
2309
|
}): Promise<ToolResult>;
|
|
2080
2310
|
isAvailable(): boolean;
|
|
2311
|
+
listApps(input: ListAppsInput, asyncOpts_?: {
|
|
2312
|
+
signal: AbortSignal;
|
|
2313
|
+
}): Promise<ListAppsOutput>;
|
|
2081
2314
|
/**
|
|
2082
2315
|
* Content-free lifecycle summaries for the trusted host's runtime or
|
|
2083
2316
|
* host-lease namespace. This is deliberately separate from the
|
|
@@ -2095,6 +2328,9 @@ export interface CuaDriverLike {
|
|
|
2095
2328
|
listToolsJson(asyncOpts_?: {
|
|
2096
2329
|
signal: AbortSignal;
|
|
2097
2330
|
}): Promise<string>;
|
|
2331
|
+
listWindows(input: ListWindowsInput, asyncOpts_?: {
|
|
2332
|
+
signal: AbortSignal;
|
|
2333
|
+
}): Promise<ListWindowsOutput>;
|
|
2098
2334
|
metadata(asyncOpts_?: {
|
|
2099
2335
|
signal: AbortSignal;
|
|
2100
2336
|
}): Promise<DriverMetadata>;
|
|
@@ -2235,7 +2471,7 @@ export declare class CuaDriver extends UniffiAbstractObject implements CuaDriver
|
|
|
2235
2471
|
}): Promise<ToolResult>;
|
|
2236
2472
|
click(input: ClickInput, asyncOpts_?: {
|
|
2237
2473
|
signal: AbortSignal;
|
|
2238
|
-
}): Promise<
|
|
2474
|
+
}): Promise<ActionResult>;
|
|
2239
2475
|
clipboardRead(input: ClipboardReadInput, asyncOpts_?: {
|
|
2240
2476
|
signal: AbortSignal;
|
|
2241
2477
|
}): Promise<ToolResult>;
|
|
@@ -2270,6 +2506,9 @@ export declare class CuaDriver extends UniffiAbstractObject implements CuaDriver
|
|
|
2270
2506
|
getSessionState(input: GetSessionStateInput, asyncOpts_?: {
|
|
2271
2507
|
signal: AbortSignal;
|
|
2272
2508
|
}): Promise<SessionStateOutput>;
|
|
2509
|
+
getWindowState(input: GetWindowStateInput, asyncOpts_?: {
|
|
2510
|
+
signal: AbortSignal;
|
|
2511
|
+
}): Promise<WindowStateOutput>;
|
|
2273
2512
|
hotkey(input: HotkeyInput, asyncOpts_?: {
|
|
2274
2513
|
signal: AbortSignal;
|
|
2275
2514
|
}): Promise<ToolResult>;
|
|
@@ -2277,6 +2516,9 @@ export declare class CuaDriver extends UniffiAbstractObject implements CuaDriver
|
|
|
2277
2516
|
signal: AbortSignal;
|
|
2278
2517
|
}): Promise<ToolResult>;
|
|
2279
2518
|
isAvailable(): boolean;
|
|
2519
|
+
listApps(input: ListAppsInput, asyncOpts_?: {
|
|
2520
|
+
signal: AbortSignal;
|
|
2521
|
+
}): Promise<ListAppsOutput>;
|
|
2280
2522
|
/**
|
|
2281
2523
|
* Content-free lifecycle summaries for the trusted host's runtime or
|
|
2282
2524
|
* host-lease namespace. This is deliberately separate from the
|
|
@@ -2294,6 +2536,9 @@ export declare class CuaDriver extends UniffiAbstractObject implements CuaDriver
|
|
|
2294
2536
|
listToolsJson(asyncOpts_?: {
|
|
2295
2537
|
signal: AbortSignal;
|
|
2296
2538
|
}): Promise<string>;
|
|
2539
|
+
listWindows(input: ListWindowsInput, asyncOpts_?: {
|
|
2540
|
+
signal: AbortSignal;
|
|
2541
|
+
}): Promise<ListWindowsOutput>;
|
|
2297
2542
|
metadata(asyncOpts_?: {
|
|
2298
2543
|
signal: AbortSignal;
|
|
2299
2544
|
}): Promise<DriverMetadata>;
|
|
@@ -2349,7 +2594,7 @@ export interface CuaDriverSessionLike {
|
|
|
2349
2594
|
}): Promise<ToolResult>;
|
|
2350
2595
|
click(input: ClickInput, asyncOpts_?: {
|
|
2351
2596
|
signal: AbortSignal;
|
|
2352
|
-
}): Promise<
|
|
2597
|
+
}): Promise<ActionResult>;
|
|
2353
2598
|
clipboardRead(input: ClipboardReadInput, asyncOpts_?: {
|
|
2354
2599
|
signal: AbortSignal;
|
|
2355
2600
|
}): Promise<ToolResult>;
|
|
@@ -2390,15 +2635,24 @@ export interface CuaDriverSessionLike {
|
|
|
2390
2635
|
getSessionState(input: GetSessionStateInput, asyncOpts_?: {
|
|
2391
2636
|
signal: AbortSignal;
|
|
2392
2637
|
}): Promise<SessionStateOutput>;
|
|
2638
|
+
getWindowState(input: GetWindowStateInput, asyncOpts_?: {
|
|
2639
|
+
signal: AbortSignal;
|
|
2640
|
+
}): Promise<WindowStateOutput>;
|
|
2393
2641
|
hotkey(input: HotkeyInput, asyncOpts_?: {
|
|
2394
2642
|
signal: AbortSignal;
|
|
2395
2643
|
}): Promise<ToolResult>;
|
|
2396
2644
|
invokeMenu(input: InvokeMenuInput, asyncOpts_?: {
|
|
2397
2645
|
signal: AbortSignal;
|
|
2398
2646
|
}): Promise<ToolResult>;
|
|
2647
|
+
listApps(input: ListAppsInput, asyncOpts_?: {
|
|
2648
|
+
signal: AbortSignal;
|
|
2649
|
+
}): Promise<ListAppsOutput>;
|
|
2399
2650
|
listSessions(input: ListSessionsInput, asyncOpts_?: {
|
|
2400
2651
|
signal: AbortSignal;
|
|
2401
2652
|
}): Promise<ListSessionsOutput>;
|
|
2653
|
+
listWindows(input: ListWindowsInput, asyncOpts_?: {
|
|
2654
|
+
signal: AbortSignal;
|
|
2655
|
+
}): Promise<ListWindowsOutput>;
|
|
2402
2656
|
moveCursor(input: MoveCursorInput, asyncOpts_?: {
|
|
2403
2657
|
signal: AbortSignal;
|
|
2404
2658
|
}): Promise<ToolResult>;
|
|
@@ -2444,7 +2698,7 @@ export declare class CuaDriverSession extends UniffiAbstractObject implements Cu
|
|
|
2444
2698
|
}): Promise<ToolResult>;
|
|
2445
2699
|
click(input: ClickInput, asyncOpts_?: {
|
|
2446
2700
|
signal: AbortSignal;
|
|
2447
|
-
}): Promise<
|
|
2701
|
+
}): Promise<ActionResult>;
|
|
2448
2702
|
clipboardRead(input: ClipboardReadInput, asyncOpts_?: {
|
|
2449
2703
|
signal: AbortSignal;
|
|
2450
2704
|
}): Promise<ToolResult>;
|
|
@@ -2485,15 +2739,24 @@ export declare class CuaDriverSession extends UniffiAbstractObject implements Cu
|
|
|
2485
2739
|
getSessionState(input: GetSessionStateInput, asyncOpts_?: {
|
|
2486
2740
|
signal: AbortSignal;
|
|
2487
2741
|
}): Promise<SessionStateOutput>;
|
|
2742
|
+
getWindowState(input: GetWindowStateInput, asyncOpts_?: {
|
|
2743
|
+
signal: AbortSignal;
|
|
2744
|
+
}): Promise<WindowStateOutput>;
|
|
2488
2745
|
hotkey(input: HotkeyInput, asyncOpts_?: {
|
|
2489
2746
|
signal: AbortSignal;
|
|
2490
2747
|
}): Promise<ToolResult>;
|
|
2491
2748
|
invokeMenu(input: InvokeMenuInput, asyncOpts_?: {
|
|
2492
2749
|
signal: AbortSignal;
|
|
2493
2750
|
}): Promise<ToolResult>;
|
|
2751
|
+
listApps(input: ListAppsInput, asyncOpts_?: {
|
|
2752
|
+
signal: AbortSignal;
|
|
2753
|
+
}): Promise<ListAppsOutput>;
|
|
2494
2754
|
listSessions(input: ListSessionsInput, asyncOpts_?: {
|
|
2495
2755
|
signal: AbortSignal;
|
|
2496
2756
|
}): Promise<ListSessionsOutput>;
|
|
2757
|
+
listWindows(input: ListWindowsInput, asyncOpts_?: {
|
|
2758
|
+
signal: AbortSignal;
|
|
2759
|
+
}): Promise<ListWindowsOutput>;
|
|
2497
2760
|
moveCursor(input: MoveCursorInput, asyncOpts_?: {
|
|
2498
2761
|
signal: AbortSignal;
|
|
2499
2762
|
}): Promise<ToolResult>;
|
|
@@ -2853,6 +3116,119 @@ declare const _default: Readonly<{
|
|
|
2853
3116
|
lift(value: UniffiByteArray): EmbeddedPermissionMode;
|
|
2854
3117
|
lower(value: EmbeddedPermissionMode, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
2855
3118
|
};
|
|
3119
|
+
FfiConverterTypeForeignDriverBoundChannel: {
|
|
3120
|
+
read(from: RustBuffer): ForeignDriverBoundChannel;
|
|
3121
|
+
write(value: ForeignDriverBoundChannel, into: RustBuffer): void;
|
|
3122
|
+
allocationSize(value: ForeignDriverBoundChannel): number;
|
|
3123
|
+
lift(value: UniffiByteArray): ForeignDriverBoundChannel;
|
|
3124
|
+
lower(value: ForeignDriverBoundChannel, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
3125
|
+
};
|
|
3126
|
+
FfiConverterTypeForeignDriverChannelCapabilities: {
|
|
3127
|
+
read(from: RustBuffer): ForeignDriverChannelCapabilities;
|
|
3128
|
+
write(value: ForeignDriverChannelCapabilities, into: RustBuffer): void;
|
|
3129
|
+
allocationSize(value: ForeignDriverChannelCapabilities): number;
|
|
3130
|
+
lift(value: UniffiByteArray): ForeignDriverChannelCapabilities;
|
|
3131
|
+
lower(value: ForeignDriverChannelCapabilities, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
3132
|
+
};
|
|
3133
|
+
FfiConverterTypeForeignDriverChannelError: {
|
|
3134
|
+
read(from: RustBuffer): {
|
|
3135
|
+
readonly tag: ForeignDriverChannelError_Tags.Failed;
|
|
3136
|
+
readonly inner: Readonly<{
|
|
3137
|
+
reason: string;
|
|
3138
|
+
}>;
|
|
3139
|
+
/**
|
|
3140
|
+
* @private
|
|
3141
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3142
|
+
*/
|
|
3143
|
+
readonly [uniffiTypeNameSymbol]: "ForeignDriverChannelError";
|
|
3144
|
+
name: string;
|
|
3145
|
+
message: string;
|
|
3146
|
+
stack?: string;
|
|
3147
|
+
cause?: unknown;
|
|
3148
|
+
};
|
|
3149
|
+
write(value: {
|
|
3150
|
+
readonly tag: ForeignDriverChannelError_Tags.Failed;
|
|
3151
|
+
readonly inner: Readonly<{
|
|
3152
|
+
reason: string;
|
|
3153
|
+
}>;
|
|
3154
|
+
/**
|
|
3155
|
+
* @private
|
|
3156
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3157
|
+
*/
|
|
3158
|
+
readonly [uniffiTypeNameSymbol]: "ForeignDriverChannelError";
|
|
3159
|
+
name: string;
|
|
3160
|
+
message: string;
|
|
3161
|
+
stack?: string;
|
|
3162
|
+
cause?: unknown;
|
|
3163
|
+
}, into: RustBuffer): void;
|
|
3164
|
+
allocationSize(value: {
|
|
3165
|
+
readonly tag: ForeignDriverChannelError_Tags.Failed;
|
|
3166
|
+
readonly inner: Readonly<{
|
|
3167
|
+
reason: string;
|
|
3168
|
+
}>;
|
|
3169
|
+
/**
|
|
3170
|
+
* @private
|
|
3171
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3172
|
+
*/
|
|
3173
|
+
readonly [uniffiTypeNameSymbol]: "ForeignDriverChannelError";
|
|
3174
|
+
name: string;
|
|
3175
|
+
message: string;
|
|
3176
|
+
stack?: string;
|
|
3177
|
+
cause?: unknown;
|
|
3178
|
+
}): number;
|
|
3179
|
+
lift(value: UniffiByteArray): {
|
|
3180
|
+
readonly tag: ForeignDriverChannelError_Tags.Failed;
|
|
3181
|
+
readonly inner: Readonly<{
|
|
3182
|
+
reason: string;
|
|
3183
|
+
}>;
|
|
3184
|
+
/**
|
|
3185
|
+
* @private
|
|
3186
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3187
|
+
*/
|
|
3188
|
+
readonly [uniffiTypeNameSymbol]: "ForeignDriverChannelError";
|
|
3189
|
+
name: string;
|
|
3190
|
+
message: string;
|
|
3191
|
+
stack?: string;
|
|
3192
|
+
cause?: unknown;
|
|
3193
|
+
};
|
|
3194
|
+
lower(value: {
|
|
3195
|
+
readonly tag: ForeignDriverChannelError_Tags.Failed;
|
|
3196
|
+
readonly inner: Readonly<{
|
|
3197
|
+
reason: string;
|
|
3198
|
+
}>;
|
|
3199
|
+
/**
|
|
3200
|
+
* @private
|
|
3201
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3202
|
+
*/
|
|
3203
|
+
readonly [uniffiTypeNameSymbol]: "ForeignDriverChannelError";
|
|
3204
|
+
name: string;
|
|
3205
|
+
message: string;
|
|
3206
|
+
stack?: string;
|
|
3207
|
+
cause?: unknown;
|
|
3208
|
+
}, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
3209
|
+
};
|
|
3210
|
+
FfiConverterTypeForeignDriverChannelIdentity: {
|
|
3211
|
+
read(from: RustBuffer): ForeignDriverChannelIdentity;
|
|
3212
|
+
write(value: ForeignDriverChannelIdentity, into: RustBuffer): void;
|
|
3213
|
+
allocationSize(value: ForeignDriverChannelIdentity): number;
|
|
3214
|
+
lift(value: UniffiByteArray): ForeignDriverChannelIdentity;
|
|
3215
|
+
lower(value: ForeignDriverChannelIdentity, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
3216
|
+
};
|
|
3217
|
+
FfiConverterTypeForeignDriverEnvelopeChannel: FfiConverterObjectWithCallbacks<ForeignDriverEnvelopeChannel>;
|
|
3218
|
+
FfiConverterTypeForeignDriverRequestEnvelope: {
|
|
3219
|
+
read(from: RustBuffer): ForeignDriverRequestEnvelope;
|
|
3220
|
+
write(value: ForeignDriverRequestEnvelope, into: RustBuffer): void;
|
|
3221
|
+
allocationSize(value: ForeignDriverRequestEnvelope): number;
|
|
3222
|
+
lift(value: UniffiByteArray): ForeignDriverRequestEnvelope;
|
|
3223
|
+
lower(value: ForeignDriverRequestEnvelope, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
3224
|
+
};
|
|
3225
|
+
FfiConverterTypeForeignDriverResponseEnvelope: {
|
|
3226
|
+
read(from: RustBuffer): ForeignDriverResponseEnvelope;
|
|
3227
|
+
write(value: ForeignDriverResponseEnvelope, into: RustBuffer): void;
|
|
3228
|
+
allocationSize(value: ForeignDriverResponseEnvelope): number;
|
|
3229
|
+
lift(value: UniffiByteArray): ForeignDriverResponseEnvelope;
|
|
3230
|
+
lower(value: ForeignDriverResponseEnvelope, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
3231
|
+
};
|
|
2856
3232
|
FfiConverterTypeImageContent: {
|
|
2857
3233
|
read(from: RustBuffer): ImageContent;
|
|
2858
3234
|
write(value: ImageContent, into: RustBuffer): void;
|