agent-device 0.15.0 → 0.15.2
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/android-snapshot-helper/dist/{agent-device-android-snapshot-helper-0.15.0.apk → agent-device-android-snapshot-helper-0.15.2.apk} +0 -0
- package/android-snapshot-helper/dist/agent-device-android-snapshot-helper-0.15.2.apk.sha256 +1 -0
- package/android-snapshot-helper/dist/{agent-device-android-snapshot-helper-0.15.0.manifest.json → agent-device-android-snapshot-helper-0.15.2.manifest.json} +6 -6
- package/dist/src/1393.js +1 -0
- package/dist/src/1769.js +7 -7
- package/dist/src/1974.js +2 -2
- package/dist/src/208.js +1 -1
- package/dist/src/2151.js +31 -22
- package/dist/src/221.js +3 -3
- package/dist/src/3572.js +1 -1
- package/dist/src/4829.js +1 -1
- package/dist/src/9542.js +2 -2
- package/dist/src/989.js +1 -1
- package/dist/src/android-adb.js +1 -1
- package/dist/src/cli.js +45 -45
- package/dist/src/index.d.ts +38 -5
- package/dist/src/internal/daemon.js +46 -45
- package/ios-runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+Alert.swift +155 -0
- package/ios-runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+CommandExecution.swift +3 -25
- package/ios-runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+Interaction.swift +5 -0
- package/ios-runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+Lifecycle.swift +1 -14
- package/ios-runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+SystemModal.swift +3 -3
- package/ios-runner/AgentDeviceRunner/RecordingScripts/recording-overlay.swift +7 -1
- package/package.json +6 -1
- package/server.json +2 -2
- package/android-snapshot-helper/dist/agent-device-android-snapshot-helper-0.15.0.apk.sha256 +0 -1
- package/dist/src/840.js +0 -2
package/dist/src/index.d.ts
CHANGED
|
@@ -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';
|
|
@@ -266,6 +294,7 @@ export declare type AppOpenOptions = AgentDeviceRequestOverrides & AgentDeviceSe
|
|
|
266
294
|
url?: string;
|
|
267
295
|
surface?: 'app' | 'frontmost-app' | 'desktop' | 'menubar';
|
|
268
296
|
activity?: string;
|
|
297
|
+
launchConsole?: string;
|
|
269
298
|
relaunch?: boolean;
|
|
270
299
|
saveScript?: boolean | string;
|
|
271
300
|
noRecord?: boolean;
|
|
@@ -674,9 +703,7 @@ export declare type LogsOptions = AgentDeviceRequestOverrides & {
|
|
|
674
703
|
restart?: boolean;
|
|
675
704
|
};
|
|
676
705
|
|
|
677
|
-
export declare type LongPressOptions = ClientCommandBaseOptions & {
|
|
678
|
-
x: number;
|
|
679
|
-
y: number;
|
|
706
|
+
export declare type LongPressOptions = ClientCommandBaseOptions & SelectorSnapshotCommandOptions & InteractionTarget & {
|
|
680
707
|
durationMs?: number;
|
|
681
708
|
};
|
|
682
709
|
|
|
@@ -842,6 +869,10 @@ declare type RawSnapshotNode = {
|
|
|
842
869
|
presentationHints?: string[];
|
|
843
870
|
};
|
|
844
871
|
|
|
872
|
+
declare type ReactNativeCommandOptions = ClientCommandBaseOptions & {
|
|
873
|
+
action: 'dismiss-overlay';
|
|
874
|
+
};
|
|
875
|
+
|
|
845
876
|
declare type RecordingQuality = 5 | 6 | 7 | 8 | 9 | 10;
|
|
846
877
|
|
|
847
878
|
export declare type RecordOptions = AgentDeviceRequestOverrides & {
|
|
@@ -885,7 +916,9 @@ declare type RepeatedPressOptions = {
|
|
|
885
916
|
export declare type ReplayRunOptions = AgentDeviceRequestOverrides & {
|
|
886
917
|
path: string;
|
|
887
918
|
update?: boolean;
|
|
919
|
+
/** @deprecated Use backend: 'maestro'. */
|
|
888
920
|
maestro?: boolean;
|
|
921
|
+
backend?: string;
|
|
889
922
|
env?: string[];
|
|
890
923
|
};
|
|
891
924
|
|
|
@@ -943,7 +976,7 @@ export declare type ScreenshotOverlayRef = {
|
|
|
943
976
|
};
|
|
944
977
|
|
|
945
978
|
declare type ScrollOptions_2 = ClientCommandBaseOptions & {
|
|
946
|
-
direction: 'up' | 'down' | 'left' | 'right';
|
|
979
|
+
direction: 'up' | 'down' | 'left' | 'right' | 'top' | 'bottom';
|
|
947
980
|
amount?: number;
|
|
948
981
|
pixels?: number;
|
|
949
982
|
};
|