@quiesco/protocol 0.0.0-stage → 0.1.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.
Files changed (68) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +10 -2
  3. package/dist/actions.d.ts +238 -0
  4. package/dist/actions.d.ts.map +1 -0
  5. package/dist/actions.js +2 -0
  6. package/dist/actions.js.map +1 -0
  7. package/dist/assertions.d.ts +74 -0
  8. package/dist/assertions.d.ts.map +1 -0
  9. package/dist/assertions.js +2 -0
  10. package/dist/assertions.js.map +1 -0
  11. package/dist/config.d.ts +54 -0
  12. package/dist/config.d.ts.map +1 -0
  13. package/dist/config.js +2 -0
  14. package/dist/config.js.map +1 -0
  15. package/dist/constants.d.ts +43 -0
  16. package/dist/constants.d.ts.map +1 -0
  17. package/dist/constants.js +42 -0
  18. package/dist/constants.js.map +1 -0
  19. package/dist/element.d.ts +49 -0
  20. package/dist/element.d.ts.map +1 -0
  21. package/dist/element.js +2 -0
  22. package/dist/element.js.map +1 -0
  23. package/dist/errors.d.ts +106 -0
  24. package/dist/errors.d.ts.map +1 -0
  25. package/dist/errors.js +26 -0
  26. package/dist/errors.js.map +1 -0
  27. package/dist/events.d.ts +19 -0
  28. package/dist/events.d.ts.map +1 -0
  29. package/dist/events.js +2 -0
  30. package/dist/events.js.map +1 -0
  31. package/dist/index.d.ts +13 -0
  32. package/dist/index.d.ts.map +1 -0
  33. package/dist/index.js +13 -0
  34. package/dist/index.js.map +1 -0
  35. package/dist/json.d.ts +6 -0
  36. package/dist/json.d.ts.map +1 -0
  37. package/dist/json.js +2 -0
  38. package/dist/json.js.map +1 -0
  39. package/dist/matcher.d.ts +44 -0
  40. package/dist/matcher.d.ts.map +1 -0
  41. package/dist/matcher.js +22 -0
  42. package/dist/matcher.js.map +1 -0
  43. package/dist/messages.d.ts +49 -0
  44. package/dist/messages.d.ts.map +1 -0
  45. package/dist/messages.js +2 -0
  46. package/dist/messages.js.map +1 -0
  47. package/dist/methods.d.ts +256 -0
  48. package/dist/methods.d.ts.map +1 -0
  49. package/dist/methods.js +2 -0
  50. package/dist/methods.js.map +1 -0
  51. package/dist/webview.d.ts +9 -0
  52. package/dist/webview.d.ts.map +1 -0
  53. package/dist/webview.js +31 -0
  54. package/dist/webview.js.map +1 -0
  55. package/package.json +47 -3
  56. package/src/actions.ts +107 -0
  57. package/src/assertions.ts +29 -0
  58. package/src/config.ts +54 -0
  59. package/src/constants.ts +46 -0
  60. package/src/element.ts +51 -0
  61. package/src/errors.ts +61 -0
  62. package/src/events.ts +11 -0
  63. package/src/index.ts +12 -0
  64. package/src/json.ts +3 -0
  65. package/src/matcher.ts +59 -0
  66. package/src/messages.ts +55 -0
  67. package/src/methods.ts +140 -0
  68. package/src/webview.ts +30 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Quiesco contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,11 @@
1
- # Temporary Holding Version
1
+ # @quiesco/protocol
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Types and constants shared by the Quiesco agent (in the app) and host (in the test run): JSON-RPC
4
+ messages, matchers, error codes and the protocol version. Installed as a dependency of the other Quiesco
5
+ packages; you do not need it directly.
6
+
7
+ Part of [Quiesco](https://github.com/h2nology/quiesco): gray-box end-to-end testing for Expo apps on iOS, Android and the web. Setup: `npx quiesco init` ([quick start](https://github.com/h2nology/quiesco#quick-start-web-about-10-minutes)).
8
+
9
+ ## License
10
+
11
+ MIT
@@ -0,0 +1,238 @@
1
+ import type { Matcher } from './matcher.js';
2
+ export type ActionMode = 'native' | 'js';
3
+ export type Direction = 'up' | 'down' | 'left' | 'right';
4
+ export type Speed = 'slow' | 'normal' | 'fast';
5
+ /** A point: in an element's own coordinates (`point`) or in window coordinates (`tapAt`), logical units. */
6
+ export interface Point {
7
+ x: number;
8
+ y: number;
9
+ }
10
+ /** Keys of the software keyboard that `pressKey` can send. */
11
+ export type KeyName = 'enter' | 'backspace';
12
+ /** Edges for `scrollToEdge`. */
13
+ export type Edge = 'top' | 'bottom' | 'left' | 'right';
14
+ /** A finger's position at a time: ms from the start of the gesture. */
15
+ export interface TimedPoint {
16
+ x: number;
17
+ y: number;
18
+ t: number;
19
+ }
20
+ /** A date in JSON: ISO 8601 (`Date.prototype.toISOString()`). */
21
+ export interface DateValue {
22
+ date: string;
23
+ }
24
+ /**
25
+ * What `setValue` sets (Phase 6.3): a number (slider), a boolean (switch, checkbox), a string (picker item
26
+ * value or label, segment value) or a date (date / time picker, `<input type="date">`).
27
+ */
28
+ export type ControlValue = number | boolean | string | DateValue;
29
+ /**
30
+ * Actions from requirements.md §6.3 (extended in Phase 6.2).
31
+ * - `point`: where to touch inside the element (default: its center).
32
+ * - `from`: start of a scroll / swipe inside the element, normalized 0–1 (default: around the center).
33
+ * - `distance`: finger travel in logical units.
34
+ */
35
+ export type ActionSpec = {
36
+ type: 'tap';
37
+ matcher: Matcher;
38
+ point?: Point;
39
+ } | {
40
+ type: 'longPress';
41
+ matcher: Matcher;
42
+ durationMs?: number;
43
+ point?: Point;
44
+ } | {
45
+ type: 'doubleTap';
46
+ matcher: Matcher;
47
+ } | {
48
+ type: 'multiTap';
49
+ matcher: Matcher;
50
+ count: number;
51
+ } | {
52
+ type: 'type';
53
+ matcher: Matcher;
54
+ text: string;
55
+ } | {
56
+ type: 'replaceText';
57
+ matcher: Matcher;
58
+ text: string;
59
+ } | {
60
+ type: 'clear';
61
+ matcher: Matcher;
62
+ } | {
63
+ type: 'pressKey';
64
+ matcher: Matcher;
65
+ key: KeyName;
66
+ } | {
67
+ type: 'scroll';
68
+ matcher: Matcher;
69
+ direction: Direction;
70
+ distance?: number;
71
+ from?: Point;
72
+ } | {
73
+ type: 'scrollTo';
74
+ container: Matcher;
75
+ target: Matcher;
76
+ } | {
77
+ type: 'scrollToEdge';
78
+ matcher: Matcher;
79
+ edge: Edge;
80
+ }
81
+ /** `viewPosition`: 0 = row at the top of the list, 0.5 = middle, 1 = bottom. */
82
+ | {
83
+ type: 'scrollToIndex';
84
+ matcher: Matcher;
85
+ index: number;
86
+ viewPosition?: number;
87
+ } | {
88
+ type: 'swipe';
89
+ matcher: Matcher;
90
+ direction: Direction;
91
+ speed?: Speed;
92
+ distance?: number;
93
+ from?: Point;
94
+ }
95
+ /** Press and hold `holdMs`, then move to the center of the `to` element or to a window point. */
96
+ | {
97
+ type: 'drag';
98
+ matcher: Matcher;
99
+ to: {
100
+ matcher: Matcher;
101
+ } | {
102
+ point: Point;
103
+ };
104
+ holdMs?: number;
105
+ speed?: Speed;
106
+ }
107
+ /** Window coordinates, no element (Detox `device.tap(point)`). */
108
+ | {
109
+ type: 'tapAt';
110
+ point: Point;
111
+ } | {
112
+ type: 'longPressAt';
113
+ point: Point;
114
+ durationMs?: number;
115
+ }
116
+ /** Set a value control (slider, switch, picker, segmented control, date picker) to `value`. */
117
+ | {
118
+ type: 'setValue';
119
+ matcher: Matcher;
120
+ value: ControlValue;
121
+ }
122
+ /** Move a slider's thumb to `position` (0 = minimum, 1 = maximum) — Detox adjustSliderToPosition. */
123
+ | {
124
+ type: 'adjustSlider';
125
+ matcher: Matcher;
126
+ position: number;
127
+ }
128
+ /** Perform a declared accessibility action (`accessibilityActions`) — Detox performAccessibilityAction. */
129
+ | {
130
+ type: 'accessibilityAction';
131
+ matcher: Matcher;
132
+ name: string;
133
+ }
134
+ /** Two fingers change their distance by `scale` (> 1 apart, < 1 together) on a line at `angle` radians (0 = horizontal). */
135
+ | {
136
+ type: 'pinch';
137
+ matcher: Matcher;
138
+ scale: number;
139
+ angle?: number;
140
+ speed?: Speed;
141
+ }
142
+ /** Two fingers turn `radians` (positive: clockwise on screen) around the element's center. */
143
+ | {
144
+ type: 'rotate';
145
+ matcher: Matcher;
146
+ radians: number;
147
+ speed?: Speed;
148
+ }
149
+ /**
150
+ * Fingers along timed paths (each finger is down from its first to its last point). Window
151
+ * coordinates, or the element's own coordinates when `matcher` is given.
152
+ */
153
+ | {
154
+ type: 'multiTouch';
155
+ matcher?: Matcher;
156
+ fingers: TimedPoint[][];
157
+ } | {
158
+ type: 'pressBack';
159
+ } | {
160
+ type: 'openUrl';
161
+ url: string;
162
+ } | {
163
+ type: 'dismissKeyboard';
164
+ };
165
+ export type ActionType = ActionSpec['type'];
166
+ /**
167
+ * Real input that the HOST must inject (web `native` mode: Playwright mouse/keyboard).
168
+ * Coordinates are window coordinates in the platform's logical units.
169
+ */
170
+ export type HostInput = {
171
+ kind: 'tap';
172
+ x: number;
173
+ y: number;
174
+ count?: number;
175
+ holdMs?: number;
176
+ } | {
177
+ kind: 'type';
178
+ x: number;
179
+ y: number;
180
+ text: string;
181
+ clearFirst?: boolean;
182
+ }
183
+ /** Press at `from`, hold `holdMs`, move to `to` over `durationMs`, release. */
184
+ | {
185
+ kind: 'drag';
186
+ from: {
187
+ x: number;
188
+ y: number;
189
+ };
190
+ to: {
191
+ x: number;
192
+ y: number;
193
+ };
194
+ durationMs: number;
195
+ holdMs?: number;
196
+ }
197
+ /** Mouse wheel at (x, y); positive `dy` scrolls content down (reveals what is below). */
198
+ | {
199
+ kind: 'wheel';
200
+ x: number;
201
+ y: number;
202
+ dx: number;
203
+ dy: number;
204
+ }
205
+ /** Press a key on the focused element (Playwright key name, e.g. `Enter`, `Backspace`). */
206
+ | {
207
+ kind: 'key';
208
+ key: string;
209
+ }
210
+ /**
211
+ * Several fingers (touch screens): flat frames `[tMs, down0, x0, y0, down1, x1, y1, ...]` for
212
+ * `fingers` fingers, played back as touch events (web: CDP Input.dispatchTouchEvent).
213
+ */
214
+ | {
215
+ kind: 'touches';
216
+ fingers: number;
217
+ frames: number[];
218
+ }
219
+ /** Choose the option with this value in the `<select>` at (x, y) (Playwright selectOption). */
220
+ | {
221
+ kind: 'select';
222
+ x: number;
223
+ y: number;
224
+ value: string;
225
+ }
226
+ /** Set the value of the `<input>` at (x, y) as a user would (Playwright fill: date / time inputs). */
227
+ | {
228
+ kind: 'fill';
229
+ x: number;
230
+ y: number;
231
+ value: string;
232
+ } | {
233
+ kind: 'navigate';
234
+ url: string;
235
+ } | {
236
+ kind: 'back';
237
+ };
238
+ //# sourceMappingURL=actions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../src/actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE5C,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,IAAI,CAAC;AACzC,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AACzD,MAAM,MAAM,KAAK,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC;AAE/C,4GAA4G;AAC5G,MAAM,WAAW,KAAK;IACpB,CAAC,EAAE,MAAM,CAAC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EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GACrD;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GACjC;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=actions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actions.js","sourceRoot":"","sources":["../src/actions.ts"],"names":[],"mappings":""}
@@ -0,0 +1,74 @@
1
+ import type { JsonValue } from './json.js';
2
+ import type { Matcher, TextMatch } from './matcher.js';
3
+ /**
4
+ * Assertions from requirements.md §6.4. Evaluated by the agent, retried until they pass or time out.
5
+ * `not: true` negates text / prop / count / value / label (the single-element ones still need exactly
6
+ * one match); the other assertions come in pairs.
7
+ */
8
+ export type AssertionSpec =
9
+ /** `ratio`: minimum visible fraction of the element's area (0–1]; default: any part visible. */
10
+ {
11
+ type: 'visible';
12
+ matcher: Matcher;
13
+ ratio?: number;
14
+ }
15
+ /** No match shows `ratio` of its area (default: no match is visible at all). */
16
+ | {
17
+ type: 'notVisible';
18
+ matcher: Matcher;
19
+ ratio?: number;
20
+ } | {
21
+ type: 'exists';
22
+ matcher: Matcher;
23
+ } | {
24
+ type: 'notExists';
25
+ matcher: Matcher;
26
+ } | {
27
+ type: 'text';
28
+ matcher: Matcher;
29
+ expected: TextMatch;
30
+ not?: boolean;
31
+ } | {
32
+ type: 'prop';
33
+ matcher: Matcher;
34
+ prop: string;
35
+ expected: JsonValue;
36
+ not?: boolean;
37
+ } | {
38
+ type: 'count';
39
+ matcher: Matcher;
40
+ expected: number;
41
+ not?: boolean;
42
+ } | {
43
+ type: 'focused';
44
+ matcher: Matcher;
45
+ } | {
46
+ type: 'notFocused';
47
+ matcher: Matcher;
48
+ } | {
49
+ type: 'enabled';
50
+ matcher: Matcher;
51
+ } | {
52
+ type: 'disabled';
53
+ matcher: Matcher;
54
+ } | {
55
+ type: 'checked';
56
+ matcher: Matcher;
57
+ } | {
58
+ type: 'notChecked';
59
+ matcher: Matcher;
60
+ }
61
+ /** The element's value (TextInput text, Switch / Slider / Picker value, accessibilityValue). */
62
+ | {
63
+ type: 'value';
64
+ matcher: Matcher;
65
+ expected: JsonValue | TextMatch;
66
+ not?: boolean;
67
+ } | {
68
+ type: 'label';
69
+ matcher: Matcher;
70
+ expected: TextMatch;
71
+ not?: boolean;
72
+ };
73
+ export type AssertionType = AssertionSpec['type'];
74
+ //# sourceMappingURL=assertions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assertions.d.ts","sourceRoot":"","sources":["../src/assertions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEvD;;;;GAIG;AACH,MAAM,MAAM,aAAa;AACvB,gGAAgG;AAC9F;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,OAAO,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE;AACvD,gFAAgF;GAC9E;IAAE,IAAI,EAAE,YAAY,CAAC;IAAC,OAAO,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,GACxD;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,GACpC;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,GACvC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAC;IAAC,GAAG,CAAC,EAAE,OAAO,CAAA;CAAE,GACtE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAC;IAAC,GAAG,CAAC,EAAE,OAAO,CAAA;CAAE,GACpF;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,OAAO,CAAA;CAAE,GACpE;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,GACrC;IAAE,IAAI,EAAE,YAAY,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,GACxC;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,GACrC;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,GACtC;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,GACrC;IAAE,IAAI,EAAE,YAAY,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE;AAC1C,gGAAgG;GAC9F;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,SAAS,GAAG,SAAS,CAAC;IAAC,GAAG,CAAC,EAAE,OAAO,CAAA;CAAE,GACnF;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAC;IAAC,GAAG,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAE5E,MAAM,MAAM,aAAa,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=assertions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assertions.js","sourceRoot":"","sources":["../src/assertions.ts"],"names":[],"mappings":""}
@@ -0,0 +1,54 @@
1
+ import type { LogLevel } from './events.js';
2
+ import type { Matcher, TextMatch } from './matcher.js';
3
+ export declare const TRACKER_NAMES: readonly ["network", "timer", "react", "idle-callback", "frame-stable", "native"];
4
+ export type TrackerName = (typeof TRACKER_NAMES)[number];
5
+ /**
6
+ * Agent-side settings derived from `quiesco.config.ts` (requirements.md §6.2, §6.13).
7
+ * Sent by the host in the `hello` result, so trackers installed at app start can be configured later.
8
+ */
9
+ export interface AgentConfig {
10
+ sync: {
11
+ timeoutMs: number;
12
+ timerThresholdMs: number;
13
+ countIntervals: boolean;
14
+ stableFrames: number;
15
+ /** URL patterns ignored by the network tracker. Strings match as substrings. */
16
+ ignoreUrls: TextMatch[];
17
+ /** Per-tracker switch; omitted trackers are enabled. */
18
+ trackers: Partial<Record<TrackerName, boolean>>;
19
+ /**
20
+ * Elements (and their subtrees) left out of the frame-stable check, e.g. a decorative animation that
21
+ * runs for minutes. Optional for older hosts.
22
+ */
23
+ ignoreElements?: Matcher[];
24
+ };
25
+ /** Minimum console level forwarded as `log` events; `off` disables forwarding. */
26
+ logLevel: LogLevel | 'off';
27
+ /**
28
+ * How far fingers move before the platform's gesture recognizers activate (they measure from there):
29
+ * pinch / rotate move this much first, so the app sees the requested scale / angle (Phase 6.4).
30
+ * Logical units and radians. Optional for older hosts (no compensation).
31
+ */
32
+ gestures?: GestureSlop;
33
+ /**
34
+ * Simulated offline mode (Phase 6.6 `app.device.setNetwork('offline')`): the agent fails the app's new
35
+ * fetch / XMLHttpRequest / WebSocket connections, except its own connection and the dev server. Optional
36
+ * for older hosts (online).
37
+ */
38
+ network?: {
39
+ offline: boolean;
40
+ };
41
+ /**
42
+ * Index of the parallel test worker this app is connected to (0 when running serially; Phase 6.12).
43
+ * Lets e2e code pick per-worker resources, e.g. a mock backend on `3001 + workerIndex`. Optional for
44
+ * older hosts.
45
+ */
46
+ workerIndex?: number;
47
+ }
48
+ export interface GestureSlop {
49
+ /** Change of the distance between two fingers before a pinch recognizer activates. */
50
+ pinch: number;
51
+ /** Rotation before a rotation recognizer activates, in radians. */
52
+ rotation: number;
53
+ }
54
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEvD,eAAO,MAAM,aAAa,mFAAoF,CAAC;AAC/G,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzD;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE;QACJ,SAAS,EAAE,MAAM,CAAC;QAClB,gBAAgB,EAAE,MAAM,CAAC;QACzB,cAAc,EAAE,OAAO,CAAC;QACxB,YAAY,EAAE,MAAM,CAAC;QACrB,gFAAgF;QAChF,UAAU,EAAE,SAAS,EAAE,CAAC;QACxB,wDAAwD;QACxD,QAAQ,EAAE,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC;QAChD;;;WAGG;QACH,cAAc,CAAC,EAAE,OAAO,EAAE,CAAC;KAC5B,CAAC;IACF,kFAAkF;IAClF,QAAQ,EAAE,QAAQ,GAAG,KAAK,CAAC;IAC3B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,WAAW,CAAC;IACvB;;;;OAIG;IACH,OAAO,CAAC,EAAE;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC;IAC/B;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,WAAW;IAC1B,sFAAsF;IACtF,KAAK,EAAE,MAAM,CAAC;IACd,mEAAmE;IACnE,QAAQ,EAAE,MAAM,CAAC;CAClB"}
package/dist/config.js ADDED
@@ -0,0 +1,2 @@
1
+ export const TRACKER_NAMES = ['network', 'timer', 'react', 'idle-callback', 'frame-stable', 'native'];
2
+ //# sourceMappingURL=config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,QAAQ,CAAU,CAAC"}
@@ -0,0 +1,43 @@
1
+ /** Bumped on any incompatible protocol change. The host rejects agents with a different major version. */
2
+ export declare const PROTOCOL_VERSION = 1;
3
+ /**
4
+ * Keys used to pass connection parameters to the app at launch (docs/spikes/05-connection-params.md).
5
+ * - iOS: process arguments `-quiescoPort <port> -quiescoSession <id>` (read via UserDefaults)
6
+ * - Android: intent extras `--es quiescoPort <port> --es quiescoSession <id>`
7
+ * - Web: `window.__QUIESCO__ = { port, session }` injected with Playwright's addInitScript
8
+ */
9
+ export declare const LAUNCH_PARAM_PORT = "quiescoPort";
10
+ export declare const LAUNCH_PARAM_SESSION = "quiescoSession";
11
+ /**
12
+ * Test launch arguments (Phase 6.5): one parameter holding base64 of the JSON object, so values keep
13
+ * their types and no device shell quoting is involved. The JSON is ASCII-only (non-ASCII characters
14
+ * escaped as \uXXXX), so plain `atob` decodes it. Web: `window.__QUIESCO__.args` holds the object itself.
15
+ */
16
+ export declare const LAUNCH_PARAM_ARGS = "quiescoArgs";
17
+ /** iOS: the URL the app is opened with at launch, handed to expo-linking by @quiesco/native. */
18
+ export declare const LAUNCH_PARAM_URL = "quiescoUrl";
19
+ export declare const WEB_PARAMS_GLOBAL = "__QUIESCO__";
20
+ /** Used when no launch parameters are available (JS-only mode, single device). */
21
+ export declare const DEFAULT_PORT = 7357;
22
+ /** WebSocket close codes (4000-4999 are reserved for applications by RFC 6455). */
23
+ export declare const CloseCode: {
24
+ /** Normal shutdown by the host. */
25
+ readonly NORMAL: 1000;
26
+ /** The agent's session id does not match any session the host is waiting for. */
27
+ readonly SESSION_MISMATCH: 4001;
28
+ /** Incompatible protocol version. */
29
+ readonly PROTOCOL_MISMATCH: 4002;
30
+ /** A newer connection for the same session replaced this one (e.g. web full-page reload). */
31
+ readonly REPLACED: 4003;
32
+ };
33
+ export type CloseCode = (typeof CloseCode)[keyof typeof CloseCode];
34
+ /** Defaults from requirements.md §6.2 / §6.13. */
35
+ export declare const SyncDefaults: {
36
+ readonly timeoutMs: 10000;
37
+ readonly timerThresholdMs: 1500;
38
+ readonly stableFrames: 2;
39
+ readonly countIntervals: false;
40
+ /** Interval between re-checks while an assertion fails or an action target is not ready yet. */
41
+ readonly retryIntervalMs: 50;
42
+ };
43
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,0GAA0G;AAC1G,eAAO,MAAM,gBAAgB,IAAI,CAAC;AAElC;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,gBAAgB,CAAC;AAC/C,eAAO,MAAM,oBAAoB,mBAAmB,CAAC;AACrD;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,gBAAgB,CAAC;AAC/C,gGAAgG;AAChG,eAAO,MAAM,gBAAgB,eAAe,CAAC;AAC7C,eAAO,MAAM,iBAAiB,gBAAgB,CAAC;AAE/C,kFAAkF;AAClF,eAAO,MAAM,YAAY,OAAO,CAAC;AAEjC,mFAAmF;AACnF,eAAO,MAAM,SAAS;IACpB,mCAAmC;;IAEnC,iFAAiF;;IAEjF,qCAAqC;;IAErC,6FAA6F;;CAErF,CAAC;AACX,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC;AAEnE,kDAAkD;AAClD,eAAO,MAAM,YAAY;;;;;IAKvB,gGAAgG;;CAExF,CAAC"}
@@ -0,0 +1,42 @@
1
+ /** Bumped on any incompatible protocol change. The host rejects agents with a different major version. */
2
+ export const PROTOCOL_VERSION = 1;
3
+ /**
4
+ * Keys used to pass connection parameters to the app at launch (docs/spikes/05-connection-params.md).
5
+ * - iOS: process arguments `-quiescoPort <port> -quiescoSession <id>` (read via UserDefaults)
6
+ * - Android: intent extras `--es quiescoPort <port> --es quiescoSession <id>`
7
+ * - Web: `window.__QUIESCO__ = { port, session }` injected with Playwright's addInitScript
8
+ */
9
+ export const LAUNCH_PARAM_PORT = 'quiescoPort';
10
+ export const LAUNCH_PARAM_SESSION = 'quiescoSession';
11
+ /**
12
+ * Test launch arguments (Phase 6.5): one parameter holding base64 of the JSON object, so values keep
13
+ * their types and no device shell quoting is involved. The JSON is ASCII-only (non-ASCII characters
14
+ * escaped as \uXXXX), so plain `atob` decodes it. Web: `window.__QUIESCO__.args` holds the object itself.
15
+ */
16
+ export const LAUNCH_PARAM_ARGS = 'quiescoArgs';
17
+ /** iOS: the URL the app is opened with at launch, handed to expo-linking by @quiesco/native. */
18
+ export const LAUNCH_PARAM_URL = 'quiescoUrl';
19
+ export const WEB_PARAMS_GLOBAL = '__QUIESCO__';
20
+ /** Used when no launch parameters are available (JS-only mode, single device). */
21
+ export const DEFAULT_PORT = 7357;
22
+ /** WebSocket close codes (4000-4999 are reserved for applications by RFC 6455). */
23
+ export const CloseCode = {
24
+ /** Normal shutdown by the host. */
25
+ NORMAL: 1000,
26
+ /** The agent's session id does not match any session the host is waiting for. */
27
+ SESSION_MISMATCH: 4001,
28
+ /** Incompatible protocol version. */
29
+ PROTOCOL_MISMATCH: 4002,
30
+ /** A newer connection for the same session replaced this one (e.g. web full-page reload). */
31
+ REPLACED: 4003,
32
+ };
33
+ /** Defaults from requirements.md §6.2 / §6.13. */
34
+ export const SyncDefaults = {
35
+ timeoutMs: 10_000,
36
+ timerThresholdMs: 1_500,
37
+ stableFrames: 2,
38
+ countIntervals: false,
39
+ /** Interval between re-checks while an assertion fails or an action target is not ready yet. */
40
+ retryIntervalMs: 50,
41
+ };
42
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,0GAA0G;AAC1G,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC;AAElC;;;;;GAKG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,CAAC;AAC/C,MAAM,CAAC,MAAM,oBAAoB,GAAG,gBAAgB,CAAC;AACrD;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,CAAC;AAC/C,gGAAgG;AAChG,MAAM,CAAC,MAAM,gBAAgB,GAAG,YAAY,CAAC;AAC7C,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,CAAC;AAE/C,kFAAkF;AAClF,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,CAAC;AAEjC,mFAAmF;AACnF,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,mCAAmC;IACnC,MAAM,EAAE,IAAI;IACZ,iFAAiF;IACjF,gBAAgB,EAAE,IAAI;IACtB,qCAAqC;IACrC,iBAAiB,EAAE,IAAI;IACvB,6FAA6F;IAC7F,QAAQ,EAAE,IAAI;CACN,CAAC;AAGX,kDAAkD;AAClD,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,SAAS,EAAE,MAAM;IACjB,gBAAgB,EAAE,KAAK;IACvB,YAAY,EAAE,CAAC;IACf,cAAc,EAAE,KAAK;IACrB,gGAAgG;IAChG,eAAe,EAAE,EAAE;CACX,CAAC"}
@@ -0,0 +1,49 @@
1
+ import type { JsonValue } from './json.js';
2
+ import type { SemanticType } from './matcher.js';
3
+ /** Rectangle in the platform's logical units (dp on Android, pt on iOS, CSS px on web), window coordinates. */
4
+ export interface Rect {
5
+ x: number;
6
+ y: number;
7
+ width: number;
8
+ height: number;
9
+ }
10
+ /** What the agent reports about a matched element. */
11
+ export interface ElementSummary {
12
+ /** Host component type, e.g. `RCTView`, `RCTText`, `div`. */
13
+ type: string;
14
+ testID?: string;
15
+ text: string;
16
+ role?: string;
17
+ label?: string;
18
+ rect: Rect | null;
19
+ visible: boolean;
20
+ /**
21
+ * Visible fraction of the element's area (0–1): the part inside the window and inside every
22
+ * ancestor that clips its content (scroll views, `overflow: hidden`). 0 when hidden by style.
23
+ */
24
+ visibleRatio: number;
25
+ /** Platform-independent kind, when the element is one of SEMANTIC_TYPES. */
26
+ semanticType?: SemanticType;
27
+ /** Has the input focus (text inputs; the focused DOM element on the web). */
28
+ focused: boolean;
29
+ /** False when disabled (`disabled`, `accessibilityState.disabled`, `aria-disabled`, `editable={false}`). */
30
+ enabled: boolean;
31
+ /** Checked state of switches, checkboxes and radios (`accessibilityState.checked`, `aria-checked`, Switch `value`). */
32
+ checked?: boolean | 'mixed';
33
+ /** Current value: TextInput text, Switch / Slider / Picker value, or `accessibilityValue`. */
34
+ value?: JsonValue;
35
+ /** Serializable subset of the element's props (functions and React elements are dropped). */
36
+ props: Record<string, JsonValue>;
37
+ }
38
+ /** Compact element tree for diagnostics (`getTree`). */
39
+ export interface TreeNode {
40
+ type: string;
41
+ testID?: string;
42
+ text?: string;
43
+ role?: string;
44
+ semanticType?: SemanticType;
45
+ /** Rounded rect. */
46
+ rect?: Rect;
47
+ children: TreeNode[];
48
+ }
49
+ //# sourceMappingURL=element.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"element.d.ts","sourceRoot":"","sources":["../src/element.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAEjD,+GAA+G;AAC/G,MAAM,WAAW,IAAI;IACnB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,sDAAsD;AACtD,MAAM,WAAW,cAAc;IAC7B,6DAA6D;IAC7D,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB,4EAA4E;IAC5E,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,6EAA6E;IAC7E,OAAO,EAAE,OAAO,CAAC;IACjB,4GAA4G;IAC5G,OAAO,EAAE,OAAO,CAAC;IACjB,uHAAuH;IACvH,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IAC5B,8FAA8F;IAC9F,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,6FAA6F;IAC7F,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;CAClC;AAED,wDAAwD;AACxD,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,oBAAoB;IACpB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,QAAQ,EAAE,QAAQ,EAAE,CAAC;CACtB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=element.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"element.js","sourceRoot":"","sources":["../src/element.ts"],"names":[],"mappings":""}