agent-device 0.15.2 → 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.2.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 +47 -5
- package/dist/src/internal/daemon.js +69 -45
- 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 +328 -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.2.apk +0 -0
- package/android-snapshot-helper/dist/agent-device-android-snapshot-helper-0.15.2.apk.sha256 +0 -1
- package/dist/src/1393.js +0 -1
- package/dist/src/2151.js +0 -438
- 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;
|
|
@@ -379,8 +384,8 @@ export declare type BatchRunOptions = AgentDeviceRequestOverrides & {
|
|
|
379
384
|
|
|
380
385
|
export declare type BatchStep = {
|
|
381
386
|
command: string;
|
|
382
|
-
|
|
383
|
-
|
|
387
|
+
input: Record<string, unknown>;
|
|
388
|
+
runtime?: unknown;
|
|
384
389
|
};
|
|
385
390
|
|
|
386
391
|
export declare type CaptureDiffOptions = ClientCommandBaseOptions & Pick<CaptureSnapshotOptions, 'interactiveOnly' | 'compact' | 'depth' | 'scope' | 'raw'> & {
|
|
@@ -610,6 +615,14 @@ export declare type FindOptions = (FindBaseOptions & {
|
|
|
610
615
|
|
|
611
616
|
declare type FindSnapshotCommandOptions = Pick<CaptureSnapshotOptions, 'depth' | 'raw'>;
|
|
612
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
|
+
|
|
613
626
|
declare type FocusOptions_2 = ClientCommandBaseOptions & {
|
|
614
627
|
x: number;
|
|
615
628
|
y: number;
|
|
@@ -643,12 +656,12 @@ declare type IsTextPredicateOptions = ClientCommandBaseOptions & SelectorSnapsho
|
|
|
643
656
|
};
|
|
644
657
|
|
|
645
658
|
export declare type KeyboardCommandOptions = DeviceCommandBaseOptions & {
|
|
646
|
-
action?: 'status' | 'dismiss';
|
|
659
|
+
action?: 'status' | 'dismiss' | 'enter' | 'return';
|
|
647
660
|
};
|
|
648
661
|
|
|
649
662
|
export declare type KeyboardCommandResult = DaemonResponseData & {
|
|
650
663
|
platform?: 'android' | 'ios';
|
|
651
|
-
action?: 'status' | 'dismiss';
|
|
664
|
+
action?: 'status' | 'dismiss' | 'enter';
|
|
652
665
|
visible?: boolean;
|
|
653
666
|
inputType?: string | null;
|
|
654
667
|
inputMethodPackage?: string | null;
|
|
@@ -799,6 +812,14 @@ export declare type NormalizedError = {
|
|
|
799
812
|
|
|
800
813
|
export declare type OutputVisibility = 'client-visible' | 'internal';
|
|
801
814
|
|
|
815
|
+
declare type PanOptions = ClientCommandBaseOptions & {
|
|
816
|
+
x: number;
|
|
817
|
+
y: number;
|
|
818
|
+
dx: number;
|
|
819
|
+
dy: number;
|
|
820
|
+
durationMs?: number;
|
|
821
|
+
};
|
|
822
|
+
|
|
802
823
|
export declare type PerfOptions = ClientCommandBaseOptions;
|
|
803
824
|
|
|
804
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';
|
|
@@ -913,18 +934,22 @@ declare type RepeatedPressOptions = {
|
|
|
913
934
|
doubleTap?: boolean;
|
|
914
935
|
};
|
|
915
936
|
|
|
916
|
-
export declare type ReplayRunOptions = AgentDeviceRequestOverrides & {
|
|
937
|
+
export declare type ReplayRunOptions = AgentDeviceRequestOverrides & AgentDeviceSelectionOptions & {
|
|
917
938
|
path: string;
|
|
918
939
|
update?: boolean;
|
|
919
940
|
/** @deprecated Use backend: 'maestro'. */
|
|
920
941
|
maestro?: boolean;
|
|
921
942
|
backend?: string;
|
|
922
943
|
env?: string[];
|
|
944
|
+
timeoutMs?: number;
|
|
923
945
|
};
|
|
924
946
|
|
|
925
947
|
export declare type ReplayTestOptions = AgentDeviceRequestOverrides & AgentDeviceSelectionOptions & {
|
|
926
948
|
paths: string[];
|
|
927
949
|
update?: boolean;
|
|
950
|
+
/** @deprecated Use backend: 'maestro'. */
|
|
951
|
+
maestro?: boolean;
|
|
952
|
+
backend?: string;
|
|
928
953
|
env?: string[];
|
|
929
954
|
failFast?: boolean;
|
|
930
955
|
timeoutMs?: number;
|
|
@@ -967,6 +992,13 @@ export declare type RotateCommandResult = CommandActionResult<'rotate'> & {
|
|
|
967
992
|
orientation?: RotateCommandOptions['orientation'];
|
|
968
993
|
};
|
|
969
994
|
|
|
995
|
+
declare type RotateGestureOptions = ClientCommandBaseOptions & {
|
|
996
|
+
degrees: number;
|
|
997
|
+
x?: number;
|
|
998
|
+
y?: number;
|
|
999
|
+
velocity?: number;
|
|
1000
|
+
};
|
|
1001
|
+
|
|
970
1002
|
export declare type ScreenshotOverlayRef = {
|
|
971
1003
|
ref: string;
|
|
972
1004
|
label?: string;
|
|
@@ -1089,6 +1121,16 @@ export declare type TraceOptions = AgentDeviceRequestOverrides & {
|
|
|
1089
1121
|
path?: string;
|
|
1090
1122
|
};
|
|
1091
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
|
+
|
|
1092
1134
|
export declare type TypeTextOptions = ClientCommandBaseOptions & {
|
|
1093
1135
|
text: string;
|
|
1094
1136
|
delayMs?: number;
|