agent-device 0.12.8 → 0.13.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.
@@ -716,6 +716,8 @@ export declare type BoundAgentDeviceCommands = {
716
716
 
717
717
  export declare type BoundRuntimeCommand<TOptions = Record<string, unknown>, TResult = CommandResult> = (options: TOptions) => Promise<TResult>;
718
718
 
719
+ declare type ClickButton = 'primary' | 'secondary' | 'middle';
720
+
719
721
  export declare type ClickCommandOptions = PressCommandOptions;
720
722
 
721
723
  export declare type CloseAppCommandOptions = CommandContext & {
@@ -1290,7 +1292,7 @@ export declare type PointTarget = {
1290
1292
 
1291
1293
  export declare type PressCommandOptions = CommandContext & {
1292
1294
  target: InteractionTarget;
1293
- button?: 'primary' | 'secondary' | 'middle';
1295
+ button?: ClickButton;
1294
1296
  count?: number;
1295
1297
  intervalMs?: number;
1296
1298
  holdMs?: number;
@@ -1449,6 +1451,7 @@ export declare type ScreenshotCommandOptions = CommandContext & {
1449
1451
  out?: FileOutputRef;
1450
1452
  fullscreen?: boolean;
1451
1453
  overlayRefs?: boolean;
1454
+ maxSize?: number;
1452
1455
  appId?: string;
1453
1456
  appBundleId?: string;
1454
1457
  surface?: 'app' | 'frontmost-app' | 'desktop' | 'menubar';
@@ -1,4 +1,4 @@
1
- export declare type AppErrorCode = 'INVALID_ARGS' | 'DEVICE_NOT_FOUND' | 'TOOL_MISSING' | 'APP_NOT_INSTALLED' | 'UNSUPPORTED_PLATFORM' | 'UNSUPPORTED_OPERATION' | 'NOT_IMPLEMENTED' | 'COMMAND_FAILED' | 'SESSION_NOT_FOUND' | 'UNAUTHORIZED' | 'UNKNOWN';
1
+ export declare type AppErrorCode = KnownAppErrorCode | (string & {});
2
2
 
3
3
  export declare function centerOfRect(rect: Rect): Point;
4
4
 
@@ -89,6 +89,8 @@ export declare type JsonRpcRequestEnvelope<TParams = unknown> = {
89
89
 
90
90
  export declare const jsonRpcRequestSchema: RuntimeSchema<JsonRpcRequestEnvelope<unknown>>;
91
91
 
92
+ declare type KnownAppErrorCode = 'INVALID_ARGS' | 'DEVICE_NOT_FOUND' | 'DEVICE_IN_USE' | 'TOOL_MISSING' | 'APP_NOT_INSTALLED' | 'UNSUPPORTED_PLATFORM' | 'UNSUPPORTED_OPERATION' | 'NOT_IMPLEMENTED' | 'COMMAND_FAILED' | 'SESSION_NOT_FOUND' | 'UNAUTHORIZED' | 'AMBIGUOUS_MATCH' | 'UNKNOWN';
93
+
92
94
  export declare type LeaseAllocatePayload = {
93
95
  token?: string;
94
96
  session?: string;