agent-device 0.11.14 → 0.11.16
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/dist/src/152.js +1 -0
- package/dist/src/155.js +38 -0
- package/dist/src/164.js +1 -0
- package/dist/src/267.js +1 -0
- package/dist/src/556.js +1 -0
- package/dist/src/57.js +1 -0
- package/dist/src/818.js +1 -3
- package/dist/src/924.js +1 -0
- package/dist/src/940.js +1 -0
- package/dist/src/974.js +2 -2
- package/dist/src/artifacts.d.ts +3 -0
- package/dist/src/artifacts.js +1 -0
- package/dist/src/bin.js +63 -73
- package/dist/src/contracts.d.ts +59 -0
- package/dist/src/contracts.js +1 -1
- package/dist/src/daemon.js +16 -50
- package/dist/src/finders.d.ts +75 -0
- package/dist/src/finders.js +1 -0
- package/dist/src/index.d.ts +460 -44
- package/dist/src/index.js +3 -2
- package/dist/src/install-source.d.ts +40 -0
- package/dist/src/install-source.js +1 -0
- package/dist/src/metro.d.ts +6 -0
- package/dist/src/metro.js +1 -1
- package/dist/src/remote-config.js +1 -1
- package/dist/src/selectors.d.ts +110 -0
- package/dist/src/selectors.js +1 -0
- package/package.json +17 -1
- package/dist/src/32.js +0 -2
- package/dist/src/957.js +0 -2
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
declare type FindAction = {
|
|
2
|
+
kind: 'click';
|
|
3
|
+
} | {
|
|
4
|
+
kind: 'focus';
|
|
5
|
+
} | {
|
|
6
|
+
kind: 'fill';
|
|
7
|
+
value: string;
|
|
8
|
+
} | {
|
|
9
|
+
kind: 'type';
|
|
10
|
+
value: string;
|
|
11
|
+
} | {
|
|
12
|
+
kind: 'get_text';
|
|
13
|
+
} | {
|
|
14
|
+
kind: 'get_attrs';
|
|
15
|
+
} | {
|
|
16
|
+
kind: 'exists';
|
|
17
|
+
} | {
|
|
18
|
+
kind: 'wait';
|
|
19
|
+
timeoutMs?: number;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export declare function findBestMatchesByLocator(nodes: SnapshotNode[], locator: FindLocator, query: string, requireRect?: boolean): {
|
|
23
|
+
matches: SnapshotNode[];
|
|
24
|
+
score: number;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export declare type FindLocator = 'any' | 'text' | 'label' | 'value' | 'role' | 'id';
|
|
28
|
+
|
|
29
|
+
export declare function normalizeRole(value: string): string;
|
|
30
|
+
|
|
31
|
+
export declare function normalizeText(value: string): string;
|
|
32
|
+
|
|
33
|
+
export declare function parseFindArgs(args: string[]): {
|
|
34
|
+
locator: FindLocator;
|
|
35
|
+
query: string;
|
|
36
|
+
action: FindAction['kind'];
|
|
37
|
+
value?: string;
|
|
38
|
+
timeoutMs?: number;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
declare type RawSnapshotNode = {
|
|
42
|
+
index: number;
|
|
43
|
+
type?: string;
|
|
44
|
+
role?: string;
|
|
45
|
+
subrole?: string;
|
|
46
|
+
label?: string;
|
|
47
|
+
value?: string;
|
|
48
|
+
identifier?: string;
|
|
49
|
+
rect?: Rect;
|
|
50
|
+
enabled?: boolean;
|
|
51
|
+
selected?: boolean;
|
|
52
|
+
hittable?: boolean;
|
|
53
|
+
depth?: number;
|
|
54
|
+
parentIndex?: number;
|
|
55
|
+
pid?: number;
|
|
56
|
+
bundleId?: string;
|
|
57
|
+
appName?: string;
|
|
58
|
+
windowTitle?: string;
|
|
59
|
+
surface?: string;
|
|
60
|
+
hiddenContentAbove?: boolean;
|
|
61
|
+
hiddenContentBelow?: boolean;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
declare type Rect = {
|
|
65
|
+
x: number;
|
|
66
|
+
y: number;
|
|
67
|
+
width: number;
|
|
68
|
+
height: number;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
declare type SnapshotNode = RawSnapshotNode & {
|
|
72
|
+
ref: string;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
export { }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{findBestMatchesByLocator as o}from"./556.js";function r(r,e,t,_){return o(r,e,t,{requireRect:_})}export{normalizeRole,normalizeText,parseFindArgs}from"./556.js";export{r as findBestMatchesByLocator};
|