agent-device 0.15.1 → 0.16.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 +51 -155
- package/android-multitouch-helper/README.md +41 -0
- package/android-multitouch-helper/dist/agent-device-android-multitouch-helper-0.16.0.apk +0 -0
- package/android-multitouch-helper/dist/agent-device-android-multitouch-helper-0.16.0.apk.sha256 +1 -0
- package/android-multitouch-helper/dist/agent-device-android-multitouch-helper-0.16.0.manifest.json +10 -0
- package/android-snapshot-helper/README.md +2 -0
- package/android-snapshot-helper/dist/agent-device-android-snapshot-helper-0.16.0.apk +0 -0
- package/android-snapshot-helper/dist/agent-device-android-snapshot-helper-0.16.0.apk.sha256 +1 -0
- package/android-snapshot-helper/dist/{agent-device-android-snapshot-helper-0.15.1.manifest.json → agent-device-android-snapshot-helper-0.16.0.manifest.json} +6 -6
- package/dist/src/1231.js +1 -1
- package/dist/src/1769.js +7 -7
- package/dist/src/2099.js +1 -0
- package/dist/src/221.js +4 -4
- package/dist/src/3622.js +3 -0
- package/dist/src/7519.js +1 -0
- package/dist/src/7556.js +1 -1
- package/dist/src/89.js +1 -0
- package/dist/src/940.js +1 -1
- package/dist/src/9542.js +2 -2
- package/dist/src/9639.js +2 -2
- package/dist/src/989.js +1 -1
- package/dist/src/android-adb.d.ts +26 -0
- package/dist/src/android-adb.js +1 -1
- package/dist/src/android-snapshot-helper.d.ts +30 -0
- package/dist/src/batch.d.ts +9 -9
- package/dist/src/cli.js +494 -76
- package/dist/src/index.d.ts +48 -5
- package/dist/src/internal/daemon.js +69 -44
- package/dist/src/server.js +2 -2
- package/ios-runner/AgentDeviceRunner/AgentDeviceRunnerUITests/AgentDeviceRunnerUITests-Bridging-Header.h +1 -0
- package/ios-runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerSynthesizedGesture.h +19 -0
- package/ios-runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerSynthesizedGesture.m +297 -0
- package/ios-runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+CommandExecution.swift +144 -5
- package/ios-runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+Interaction.swift +333 -23
- package/ios-runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+Lifecycle.swift +3 -1
- package/ios-runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+Models.swift +8 -0
- package/package.json +9 -3
- package/server.json +2 -2
- package/android-snapshot-helper/dist/agent-device-android-snapshot-helper-0.15.1.apk +0 -0
- package/android-snapshot-helper/dist/agent-device-android-snapshot-helper-0.15.1.apk.sha256 +0 -1
- package/dist/src/1393.js +0 -1
- package/dist/src/2151.js +0 -434
- package/dist/src/3572.js +0 -1
- package/dist/src/7599.js +0 -3
- package/dist/src/9671.js +0 -1
package/dist/src/index.d.ts
CHANGED
|
@@ -44,11 +44,15 @@ export declare type AgentDeviceClient = {
|
|
|
44
44
|
press: (options: PressOptions) => Promise<CommandRequestResult>;
|
|
45
45
|
longPress: (options: LongPressOptions) => Promise<CommandRequestResult>;
|
|
46
46
|
swipe: (options: SwipeOptions) => Promise<CommandRequestResult>;
|
|
47
|
+
pan: (options: PanOptions) => Promise<CommandRequestResult>;
|
|
48
|
+
fling: (options: FlingOptions) => Promise<CommandRequestResult>;
|
|
47
49
|
focus: (options: FocusOptions_2) => Promise<CommandRequestResult>;
|
|
48
50
|
type: (options: TypeTextOptions) => Promise<CommandRequestResult>;
|
|
49
51
|
fill: (options: FillOptions) => Promise<CommandRequestResult>;
|
|
50
52
|
scroll: (options: ScrollOptions_2) => Promise<CommandRequestResult>;
|
|
51
53
|
pinch: (options: PinchOptions) => Promise<CommandRequestResult>;
|
|
54
|
+
rotateGesture: (options: RotateGestureOptions) => Promise<CommandRequestResult>;
|
|
55
|
+
transformGesture: (options: TransformGestureOptions) => Promise<CommandRequestResult>;
|
|
52
56
|
get: (options: GetOptions) => Promise<CommandRequestResult>;
|
|
53
57
|
is: (options: IsOptions) => Promise<CommandRequestResult>;
|
|
54
58
|
find: (options: FindOptions) => Promise<CommandRequestResult>;
|
|
@@ -211,6 +215,7 @@ declare type AndroidSnapshotBackendMetadata = {
|
|
|
211
215
|
fallbackReason?: string;
|
|
212
216
|
installReason?: 'missing' | 'outdated' | 'forced' | 'current' | 'skipped';
|
|
213
217
|
waitForIdleTimeoutMs?: number;
|
|
218
|
+
waitForIdleQuietMs?: number;
|
|
214
219
|
timeoutMs?: number;
|
|
215
220
|
maxDepth?: number;
|
|
216
221
|
maxNodes?: number;
|
|
@@ -294,6 +299,7 @@ export declare type AppOpenOptions = AgentDeviceRequestOverrides & AgentDeviceSe
|
|
|
294
299
|
url?: string;
|
|
295
300
|
surface?: 'app' | 'frontmost-app' | 'desktop' | 'menubar';
|
|
296
301
|
activity?: string;
|
|
302
|
+
launchConsole?: string;
|
|
297
303
|
relaunch?: boolean;
|
|
298
304
|
saveScript?: boolean | string;
|
|
299
305
|
noRecord?: boolean;
|
|
@@ -378,8 +384,8 @@ export declare type BatchRunOptions = AgentDeviceRequestOverrides & {
|
|
|
378
384
|
|
|
379
385
|
export declare type BatchStep = {
|
|
380
386
|
command: string;
|
|
381
|
-
|
|
382
|
-
|
|
387
|
+
input: Record<string, unknown>;
|
|
388
|
+
runtime?: unknown;
|
|
383
389
|
};
|
|
384
390
|
|
|
385
391
|
export declare type CaptureDiffOptions = ClientCommandBaseOptions & Pick<CaptureSnapshotOptions, 'interactiveOnly' | 'compact' | 'depth' | 'scope' | 'raw'> & {
|
|
@@ -609,6 +615,14 @@ export declare type FindOptions = (FindBaseOptions & {
|
|
|
609
615
|
|
|
610
616
|
declare type FindSnapshotCommandOptions = Pick<CaptureSnapshotOptions, 'depth' | 'raw'>;
|
|
611
617
|
|
|
618
|
+
declare type FlingOptions = ClientCommandBaseOptions & {
|
|
619
|
+
direction: 'up' | 'down' | 'left' | 'right';
|
|
620
|
+
x: number;
|
|
621
|
+
y: number;
|
|
622
|
+
distance?: number;
|
|
623
|
+
durationMs?: number;
|
|
624
|
+
};
|
|
625
|
+
|
|
612
626
|
declare type FocusOptions_2 = ClientCommandBaseOptions & {
|
|
613
627
|
x: number;
|
|
614
628
|
y: number;
|
|
@@ -642,12 +656,12 @@ declare type IsTextPredicateOptions = ClientCommandBaseOptions & SelectorSnapsho
|
|
|
642
656
|
};
|
|
643
657
|
|
|
644
658
|
export declare type KeyboardCommandOptions = DeviceCommandBaseOptions & {
|
|
645
|
-
action?: 'status' | 'dismiss';
|
|
659
|
+
action?: 'status' | 'dismiss' | 'enter' | 'return';
|
|
646
660
|
};
|
|
647
661
|
|
|
648
662
|
export declare type KeyboardCommandResult = DaemonResponseData & {
|
|
649
663
|
platform?: 'android' | 'ios';
|
|
650
|
-
action?: 'status' | 'dismiss';
|
|
664
|
+
action?: 'status' | 'dismiss' | 'enter';
|
|
651
665
|
visible?: boolean;
|
|
652
666
|
inputType?: string | null;
|
|
653
667
|
inputMethodPackage?: string | null;
|
|
@@ -798,6 +812,14 @@ export declare type NormalizedError = {
|
|
|
798
812
|
|
|
799
813
|
export declare type OutputVisibility = 'client-visible' | 'internal';
|
|
800
814
|
|
|
815
|
+
declare type PanOptions = ClientCommandBaseOptions & {
|
|
816
|
+
x: number;
|
|
817
|
+
y: number;
|
|
818
|
+
dx: number;
|
|
819
|
+
dy: number;
|
|
820
|
+
durationMs?: number;
|
|
821
|
+
};
|
|
822
|
+
|
|
801
823
|
export declare type PerfOptions = ClientCommandBaseOptions;
|
|
802
824
|
|
|
803
825
|
export declare type PermissionTarget = 'camera' | 'microphone' | 'photos' | 'contacts' | 'contacts-limited' | 'notifications' | 'calendar' | 'location' | 'location-always' | 'media-library' | 'motion' | 'reminders' | 'siri' | 'accessibility' | 'screen-recording' | 'input-monitoring';
|
|
@@ -912,18 +934,22 @@ declare type RepeatedPressOptions = {
|
|
|
912
934
|
doubleTap?: boolean;
|
|
913
935
|
};
|
|
914
936
|
|
|
915
|
-
export declare type ReplayRunOptions = AgentDeviceRequestOverrides & {
|
|
937
|
+
export declare type ReplayRunOptions = AgentDeviceRequestOverrides & AgentDeviceSelectionOptions & {
|
|
916
938
|
path: string;
|
|
917
939
|
update?: boolean;
|
|
918
940
|
/** @deprecated Use backend: 'maestro'. */
|
|
919
941
|
maestro?: boolean;
|
|
920
942
|
backend?: string;
|
|
921
943
|
env?: string[];
|
|
944
|
+
timeoutMs?: number;
|
|
922
945
|
};
|
|
923
946
|
|
|
924
947
|
export declare type ReplayTestOptions = AgentDeviceRequestOverrides & AgentDeviceSelectionOptions & {
|
|
925
948
|
paths: string[];
|
|
926
949
|
update?: boolean;
|
|
950
|
+
/** @deprecated Use backend: 'maestro'. */
|
|
951
|
+
maestro?: boolean;
|
|
952
|
+
backend?: string;
|
|
927
953
|
env?: string[];
|
|
928
954
|
failFast?: boolean;
|
|
929
955
|
timeoutMs?: number;
|
|
@@ -966,6 +992,13 @@ export declare type RotateCommandResult = CommandActionResult<'rotate'> & {
|
|
|
966
992
|
orientation?: RotateCommandOptions['orientation'];
|
|
967
993
|
};
|
|
968
994
|
|
|
995
|
+
declare type RotateGestureOptions = ClientCommandBaseOptions & {
|
|
996
|
+
degrees: number;
|
|
997
|
+
x?: number;
|
|
998
|
+
y?: number;
|
|
999
|
+
velocity?: number;
|
|
1000
|
+
};
|
|
1001
|
+
|
|
969
1002
|
export declare type ScreenshotOverlayRef = {
|
|
970
1003
|
ref: string;
|
|
971
1004
|
label?: string;
|
|
@@ -1088,6 +1121,16 @@ export declare type TraceOptions = AgentDeviceRequestOverrides & {
|
|
|
1088
1121
|
path?: string;
|
|
1089
1122
|
};
|
|
1090
1123
|
|
|
1124
|
+
declare type TransformGestureOptions = ClientCommandBaseOptions & {
|
|
1125
|
+
x: number;
|
|
1126
|
+
y: number;
|
|
1127
|
+
dx: number;
|
|
1128
|
+
dy: number;
|
|
1129
|
+
scale: number;
|
|
1130
|
+
degrees: number;
|
|
1131
|
+
durationMs?: number;
|
|
1132
|
+
};
|
|
1133
|
+
|
|
1091
1134
|
export declare type TypeTextOptions = ClientCommandBaseOptions & {
|
|
1092
1135
|
text: string;
|
|
1093
1136
|
delayMs?: number;
|