agent-device 0.15.0 → 0.15.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.
Files changed (26) hide show
  1. package/android-snapshot-helper/dist/{agent-device-android-snapshot-helper-0.15.0.apk → agent-device-android-snapshot-helper-0.15.1.apk} +0 -0
  2. package/android-snapshot-helper/dist/agent-device-android-snapshot-helper-0.15.1.apk.sha256 +1 -0
  3. package/android-snapshot-helper/dist/{agent-device-android-snapshot-helper-0.15.0.manifest.json → agent-device-android-snapshot-helper-0.15.1.manifest.json} +6 -6
  4. package/dist/src/1393.js +1 -0
  5. package/dist/src/1769.js +7 -7
  6. package/dist/src/1974.js +2 -2
  7. package/dist/src/208.js +1 -1
  8. package/dist/src/2151.js +27 -22
  9. package/dist/src/221.js +3 -3
  10. package/dist/src/3572.js +1 -1
  11. package/dist/src/4829.js +1 -1
  12. package/dist/src/9542.js +2 -2
  13. package/dist/src/989.js +1 -1
  14. package/dist/src/android-adb.js +1 -1
  15. package/dist/src/cli.js +44 -44
  16. package/dist/src/index.d.ts +37 -5
  17. package/dist/src/internal/daemon.js +45 -45
  18. package/ios-runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+Alert.swift +155 -0
  19. package/ios-runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+CommandExecution.swift +3 -25
  20. package/ios-runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+Lifecycle.swift +1 -14
  21. package/ios-runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+SystemModal.swift +3 -3
  22. package/ios-runner/AgentDeviceRunner/RecordingScripts/recording-overlay.swift +7 -1
  23. package/package.json +6 -1
  24. package/server.json +2 -2
  25. package/android-snapshot-helper/dist/agent-device-android-snapshot-helper-0.15.0.apk.sha256 +0 -1
  26. package/dist/src/840.js +0 -2
@@ -104,6 +104,7 @@ export declare type AgentDeviceCommandClient = {
104
104
  appSwitcher: (options?: AppSwitcherCommandOptions) => Promise<AppSwitcherCommandResult>;
105
105
  keyboard: (options?: KeyboardCommandOptions) => Promise<KeyboardCommandResult>;
106
106
  clipboard: (options: ClipboardCommandOptions) => Promise<ClipboardCommandResult>;
107
+ reactNative: (options: ReactNativeCommandOptions) => Promise<CommandRequestResult>;
107
108
  };
108
109
 
109
110
  export declare type AgentDeviceDaemonTransport = (req: Omit<DaemonRequest, 'token'>) => Promise<DaemonResponse>;
@@ -169,12 +170,39 @@ export declare type AgentDeviceSessionDevice = {
169
170
  };
170
171
  };
171
172
 
173
+ export declare type AlertAction = 'get' | 'accept' | 'dismiss' | 'wait';
174
+
172
175
  export declare type AlertCommandOptions = DeviceCommandBaseOptions & {
173
176
  action?: 'get' | 'accept' | 'dismiss' | 'wait';
174
177
  timeoutMs?: number;
175
178
  };
176
179
 
177
- export declare type AlertCommandResult = DaemonResponseData;
180
+ export declare type AlertCommandResult = DaemonResponseData & {
181
+ kind?: 'alertStatus' | 'alertHandled' | 'alertWait';
182
+ action?: AlertCommandOptions['action'];
183
+ alert?: AlertInfo | null;
184
+ handled?: boolean;
185
+ button?: string;
186
+ waitedMs?: number;
187
+ timedOut?: boolean;
188
+ platform?: AlertInfo['platform'];
189
+ accepted?: boolean;
190
+ dismissed?: boolean;
191
+ items?: string[];
192
+ };
193
+
194
+ export declare type AlertInfo = {
195
+ title?: string;
196
+ message?: string;
197
+ buttons?: string[];
198
+ platform?: AlertPlatform;
199
+ source?: AlertSource;
200
+ packageName?: string;
201
+ };
202
+
203
+ export declare type AlertPlatform = 'android' | 'ios' | 'macos';
204
+
205
+ export declare type AlertSource = 'permission' | 'native-dialog' | 'system-dialog';
178
206
 
179
207
  declare type AndroidSnapshotBackendMetadata = {
180
208
  backend: 'android-helper' | 'uiautomator-dump';
@@ -674,9 +702,7 @@ export declare type LogsOptions = AgentDeviceRequestOverrides & {
674
702
  restart?: boolean;
675
703
  };
676
704
 
677
- export declare type LongPressOptions = ClientCommandBaseOptions & {
678
- x: number;
679
- y: number;
705
+ export declare type LongPressOptions = ClientCommandBaseOptions & SelectorSnapshotCommandOptions & InteractionTarget & {
680
706
  durationMs?: number;
681
707
  };
682
708
 
@@ -842,6 +868,10 @@ declare type RawSnapshotNode = {
842
868
  presentationHints?: string[];
843
869
  };
844
870
 
871
+ declare type ReactNativeCommandOptions = ClientCommandBaseOptions & {
872
+ action: 'dismiss-overlay';
873
+ };
874
+
845
875
  declare type RecordingQuality = 5 | 6 | 7 | 8 | 9 | 10;
846
876
 
847
877
  export declare type RecordOptions = AgentDeviceRequestOverrides & {
@@ -885,7 +915,9 @@ declare type RepeatedPressOptions = {
885
915
  export declare type ReplayRunOptions = AgentDeviceRequestOverrides & {
886
916
  path: string;
887
917
  update?: boolean;
918
+ /** @deprecated Use backend: 'maestro'. */
888
919
  maestro?: boolean;
920
+ backend?: string;
889
921
  env?: string[];
890
922
  };
891
923
 
@@ -943,7 +975,7 @@ export declare type ScreenshotOverlayRef = {
943
975
  };
944
976
 
945
977
  declare type ScrollOptions_2 = ClientCommandBaseOptions & {
946
- direction: 'up' | 'down' | 'left' | 'right';
978
+ direction: 'up' | 'down' | 'left' | 'right' | 'top' | 'bottom';
947
979
  amount?: number;
948
980
  pixels?: number;
949
981
  };