taphound 0.2.0-dev.1

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 (176) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +200 -0
  3. package/README.zh-CN.md +200 -0
  4. package/assets/brand/taphound-mark.svg +9 -0
  5. package/assets/skills/taphound-ai-journey/GUIDE.md +862 -0
  6. package/assets/skills/taphound-ai-journey/SKILL.md +377 -0
  7. package/assets/skills/taphound-ai-journey/prompts/analyze-project.md +526 -0
  8. package/assets/skills/taphound-ai-journey/prompts/check-completion.md +52 -0
  9. package/assets/skills/taphound-ai-journey/prompts/generate-step.md +109 -0
  10. package/assets/skills/taphound-ai-journey/schemas/observe-output.json +42 -0
  11. package/assets/skills/taphound-ai-journey/schemas/project-context.json +81 -0
  12. package/assets/skills/taphound-ai-journey/schemas/proposed-step-envelope.json +267 -0
  13. package/assets/skills/taphound-ai-journey/templates/project-context.example.json +49 -0
  14. package/dist/adapters/adb/adb-adapter.d.ts +23 -0
  15. package/dist/adapters/adb/adb-adapter.js +218 -0
  16. package/dist/adapters/android-cli/android-cli-adapter.d.ts +11 -0
  17. package/dist/adapters/android-cli/android-cli-adapter.js +64 -0
  18. package/dist/adapters/android-cli/layout-parser.d.ts +3 -0
  19. package/dist/adapters/android-cli/layout-parser.js +174 -0
  20. package/dist/adapters/clock/system-clock.d.ts +5 -0
  21. package/dist/adapters/clock/system-clock.js +13 -0
  22. package/dist/adapters/filesystem/artifact-store.d.ts +4 -0
  23. package/dist/adapters/filesystem/artifact-store.js +73 -0
  24. package/dist/adapters/filesystem/generation-meta-writer.d.ts +16 -0
  25. package/dist/adapters/filesystem/generation-meta-writer.js +34 -0
  26. package/dist/adapters/filesystem/generation-session-store.d.ts +68 -0
  27. package/dist/adapters/filesystem/generation-session-store.js +1603 -0
  28. package/dist/adapters/filesystem/journey-writer.d.ts +16 -0
  29. package/dist/adapters/filesystem/journey-writer.js +34 -0
  30. package/dist/adapters/filesystem/project-bound-file.d.ts +6 -0
  31. package/dist/adapters/filesystem/project-bound-file.js +240 -0
  32. package/dist/adapters/filesystem/project-file-inspector.d.ts +8 -0
  33. package/dist/adapters/filesystem/project-file-inspector.js +198 -0
  34. package/dist/adapters/filesystem/skill-installer.d.ts +10 -0
  35. package/dist/adapters/filesystem/skill-installer.js +39 -0
  36. package/dist/adapters/process/node-process-runner.d.ts +8 -0
  37. package/dist/adapters/process/node-process-runner.js +155 -0
  38. package/dist/adapters/prompt/inquirer-generation-prompt.d.ts +55 -0
  39. package/dist/adapters/prompt/inquirer-generation-prompt.js +213 -0
  40. package/dist/adapters/prompt/inquirer-init-prompt.d.ts +32 -0
  41. package/dist/adapters/prompt/inquirer-init-prompt.js +55 -0
  42. package/dist/adapters/prompt/inquirer-recorder-prompt.d.ts +47 -0
  43. package/dist/adapters/prompt/inquirer-recorder-prompt.js +157 -0
  44. package/dist/application/assertion/expectation-evaluator.d.ts +61 -0
  45. package/dist/application/assertion/expectation-evaluator.js +207 -0
  46. package/dist/application/collector/logcat-collector.d.ts +39 -0
  47. package/dist/application/collector/logcat-collector.js +107 -0
  48. package/dist/application/context/context-validator.d.ts +27 -0
  49. package/dist/application/context/context-validator.js +120 -0
  50. package/dist/application/doctor/doctor-service.d.ts +35 -0
  51. package/dist/application/doctor/doctor-service.js +178 -0
  52. package/dist/application/generation/focused-input.d.ts +2 -0
  53. package/dist/application/generation/focused-input.js +9 -0
  54. package/dist/application/generation/generation-confirmation-service.d.ts +76 -0
  55. package/dist/application/generation/generation-confirmation-service.js +383 -0
  56. package/dist/application/generation/generation-finalizer.d.ts +67 -0
  57. package/dist/application/generation/generation-finalizer.js +646 -0
  58. package/dist/application/generation/generation-publisher.d.ts +46 -0
  59. package/dist/application/generation/generation-publisher.js +178 -0
  60. package/dist/application/generation/generation-starter.d.ts +31 -0
  61. package/dist/application/generation/generation-starter.js +102 -0
  62. package/dist/application/generation/generation-step-executor.d.ts +52 -0
  63. package/dist/application/generation/generation-step-executor.js +668 -0
  64. package/dist/application/generation/proposed-step-validator.d.ts +11 -0
  65. package/dist/application/generation/proposed-step-validator.js +88 -0
  66. package/dist/application/generation/risk-evaluator.d.ts +9 -0
  67. package/dist/application/generation/risk-evaluator.js +14 -0
  68. package/dist/application/generation/runtime-observer.d.ts +39 -0
  69. package/dist/application/generation/runtime-observer.js +157 -0
  70. package/dist/application/init/init-service.d.ts +17 -0
  71. package/dist/application/init/init-service.js +44 -0
  72. package/dist/application/interaction/action-executor.d.ts +25 -0
  73. package/dist/application/interaction/action-executor.js +103 -0
  74. package/dist/application/interaction/fallback-resolver.d.ts +24 -0
  75. package/dist/application/interaction/fallback-resolver.js +48 -0
  76. package/dist/application/interaction/scroll-to-executor.d.ts +40 -0
  77. package/dist/application/interaction/scroll-to-executor.js +191 -0
  78. package/dist/application/locator/locator-resolver.d.ts +20 -0
  79. package/dist/application/locator/locator-resolver.js +89 -0
  80. package/dist/application/project/project-describer.d.ts +14 -0
  81. package/dist/application/project/project-describer.js +8 -0
  82. package/dist/application/recorder/locator-selector.d.ts +10 -0
  83. package/dist/application/recorder/locator-selector.js +80 -0
  84. package/dist/application/recorder/recorder-service.d.ts +41 -0
  85. package/dist/application/recorder/recorder-service.js +331 -0
  86. package/dist/application/report/report-writer.d.ts +10 -0
  87. package/dist/application/report/report-writer.js +39 -0
  88. package/dist/application/runtime/activity-waiter.d.ts +33 -0
  89. package/dist/application/runtime/activity-waiter.js +73 -0
  90. package/dist/application/runtime/launch-failure.d.ts +2 -0
  91. package/dist/application/runtime/launch-failure.js +20 -0
  92. package/dist/application/runtime/process-waiter.d.ts +27 -0
  93. package/dist/application/runtime/process-waiter.js +73 -0
  94. package/dist/application/runtime/step-runner.d.ts +50 -0
  95. package/dist/application/runtime/step-runner.js +429 -0
  96. package/dist/application/runtime/verify-runtime.d.ts +44 -0
  97. package/dist/application/runtime/verify-runtime.js +350 -0
  98. package/dist/application/wait/idle-waiter.d.ts +30 -0
  99. package/dist/application/wait/idle-waiter.js +90 -0
  100. package/dist/cli/commands/context.d.ts +3 -0
  101. package/dist/cli/commands/context.js +94 -0
  102. package/dist/cli/commands/doctor.d.ts +3 -0
  103. package/dist/cli/commands/doctor.js +51 -0
  104. package/dist/cli/commands/generation.d.ts +3 -0
  105. package/dist/cli/commands/generation.js +518 -0
  106. package/dist/cli/commands/init.d.ts +3 -0
  107. package/dist/cli/commands/init.js +104 -0
  108. package/dist/cli/commands/project.d.ts +3 -0
  109. package/dist/cli/commands/project.js +58 -0
  110. package/dist/cli/commands/record.d.ts +3 -0
  111. package/dist/cli/commands/record.js +88 -0
  112. package/dist/cli/commands/verify.d.ts +3 -0
  113. package/dist/cli/commands/verify.js +106 -0
  114. package/dist/cli/dependencies.d.ts +66 -0
  115. package/dist/cli/dependencies.js +204 -0
  116. package/dist/cli/main.d.ts +8 -0
  117. package/dist/cli/main.js +73 -0
  118. package/dist/cli/output.d.ts +16 -0
  119. package/dist/cli/output.js +22 -0
  120. package/dist/cli/program.d.ts +3 -0
  121. package/dist/cli/program.js +43 -0
  122. package/dist/domain/activity.d.ts +7 -0
  123. package/dist/domain/activity.js +65 -0
  124. package/dist/domain/app-process.d.ts +7 -0
  125. package/dist/domain/app-process.js +10 -0
  126. package/dist/domain/config.d.ts +15 -0
  127. package/dist/domain/config.js +17 -0
  128. package/dist/domain/failure.d.ts +4 -0
  129. package/dist/domain/failure.js +43 -0
  130. package/dist/domain/generation.d.ts +912 -0
  131. package/dist/domain/generation.js +342 -0
  132. package/dist/domain/init.d.ts +42 -0
  133. package/dist/domain/init.js +114 -0
  134. package/dist/domain/journey.d.ts +673 -0
  135. package/dist/domain/journey.js +109 -0
  136. package/dist/domain/layout.d.ts +35 -0
  137. package/dist/domain/layout.js +33 -0
  138. package/dist/domain/locator.d.ts +8 -0
  139. package/dist/domain/locator.js +5 -0
  140. package/dist/domain/project-context.d.ts +101 -0
  141. package/dist/domain/project-context.js +64 -0
  142. package/dist/domain/proposed-step.d.ts +341 -0
  143. package/dist/domain/proposed-step.js +87 -0
  144. package/dist/domain/report.d.ts +349 -0
  145. package/dist/domain/report.js +135 -0
  146. package/dist/domain/runtime-snapshot.d.ts +16 -0
  147. package/dist/domain/runtime-snapshot.js +46 -0
  148. package/dist/ports/adb.d.ts +42 -0
  149. package/dist/ports/adb.js +1 -0
  150. package/dist/ports/android-cli.d.ts +21 -0
  151. package/dist/ports/android-cli.js +1 -0
  152. package/dist/ports/artifact-store.d.ts +12 -0
  153. package/dist/ports/artifact-store.js +1 -0
  154. package/dist/ports/clock.d.ts +4 -0
  155. package/dist/ports/clock.js +1 -0
  156. package/dist/ports/generation-meta-writer.d.ts +10 -0
  157. package/dist/ports/generation-meta-writer.js +1 -0
  158. package/dist/ports/generation-prompt.d.ts +19 -0
  159. package/dist/ports/generation-prompt.js +6 -0
  160. package/dist/ports/generation-session-store.d.ts +32 -0
  161. package/dist/ports/generation-session-store.js +26 -0
  162. package/dist/ports/init-prompt.d.ts +8 -0
  163. package/dist/ports/init-prompt.js +6 -0
  164. package/dist/ports/journey-writer.d.ts +10 -0
  165. package/dist/ports/journey-writer.js +1 -0
  166. package/dist/ports/process-runner.d.ts +32 -0
  167. package/dist/ports/process-runner.js +1 -0
  168. package/dist/ports/project-bound-file.d.ts +8 -0
  169. package/dist/ports/project-bound-file.js +1 -0
  170. package/dist/ports/project-file-inspector.d.ts +33 -0
  171. package/dist/ports/project-file-inspector.js +1 -0
  172. package/dist/ports/recorder-prompt.d.ts +29 -0
  173. package/dist/ports/recorder-prompt.js +1 -0
  174. package/dist/ports/skill-installer.d.ts +8 -0
  175. package/dist/ports/skill-installer.js +1 -0
  176. package/package.json +64 -0
@@ -0,0 +1,673 @@
1
+ import { z } from "zod";
2
+ export declare const ActivityCheckpointSchema: z.ZodObject<{
3
+ before: z.ZodString;
4
+ after: z.ZodString;
5
+ }, z.core.$strict>;
6
+ export declare const ExpectSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7
+ type: z.ZodLiteral<"activity">;
8
+ value: z.ZodString;
9
+ timeoutMs: z.ZodNumber;
10
+ }, z.core.$strict>, z.ZodObject<{
11
+ type: z.ZodLiteral<"element">;
12
+ locator: z.ZodObject<{
13
+ resourceId: z.ZodOptional<z.ZodString>;
14
+ text: z.ZodOptional<z.ZodString>;
15
+ contentDescription: z.ZodOptional<z.ZodString>;
16
+ }, z.core.$strict>;
17
+ timeoutMs: z.ZodNumber;
18
+ }, z.core.$strict>, z.ZodObject<{
19
+ type: z.ZodLiteral<"logcat">;
20
+ tag: z.ZodString;
21
+ level: z.ZodOptional<z.ZodEnum<{
22
+ V: "V";
23
+ D: "D";
24
+ I: "I";
25
+ W: "W";
26
+ E: "E";
27
+ F: "F";
28
+ A: "A";
29
+ }>>;
30
+ pattern: z.ZodString;
31
+ match: z.ZodDefault<z.ZodEnum<{
32
+ literal: "literal";
33
+ regex: "regex";
34
+ }>>;
35
+ timeoutMs: z.ZodNumber;
36
+ }, z.core.$strict>], "type">;
37
+ export declare const AnnotatedLabelFallbackSchema: z.ZodObject<{
38
+ type: z.ZodLiteral<"annotatedLabel">;
39
+ label: z.ZodString;
40
+ }, z.core.$strict>;
41
+ export declare const JourneyStepSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
42
+ activity: z.ZodObject<{
43
+ before: z.ZodString;
44
+ after: z.ZodString;
45
+ }, z.core.$strict>;
46
+ expect: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
47
+ type: z.ZodLiteral<"activity">;
48
+ value: z.ZodString;
49
+ timeoutMs: z.ZodNumber;
50
+ }, z.core.$strict>, z.ZodObject<{
51
+ type: z.ZodLiteral<"element">;
52
+ locator: z.ZodObject<{
53
+ resourceId: z.ZodOptional<z.ZodString>;
54
+ text: z.ZodOptional<z.ZodString>;
55
+ contentDescription: z.ZodOptional<z.ZodString>;
56
+ }, z.core.$strict>;
57
+ timeoutMs: z.ZodNumber;
58
+ }, z.core.$strict>, z.ZodObject<{
59
+ type: z.ZodLiteral<"logcat">;
60
+ tag: z.ZodString;
61
+ level: z.ZodOptional<z.ZodEnum<{
62
+ V: "V";
63
+ D: "D";
64
+ I: "I";
65
+ W: "W";
66
+ E: "E";
67
+ F: "F";
68
+ A: "A";
69
+ }>>;
70
+ pattern: z.ZodString;
71
+ match: z.ZodDefault<z.ZodEnum<{
72
+ literal: "literal";
73
+ regex: "regex";
74
+ }>>;
75
+ timeoutMs: z.ZodNumber;
76
+ }, z.core.$strict>], "type">>;
77
+ action: z.ZodLiteral<"click">;
78
+ locator: z.ZodObject<{
79
+ resourceId: z.ZodOptional<z.ZodString>;
80
+ text: z.ZodOptional<z.ZodString>;
81
+ contentDescription: z.ZodOptional<z.ZodString>;
82
+ }, z.core.$strict>;
83
+ fallback: z.ZodOptional<z.ZodObject<{
84
+ type: z.ZodLiteral<"annotatedLabel">;
85
+ label: z.ZodString;
86
+ }, z.core.$strict>>;
87
+ }, z.core.$strict>, z.ZodObject<{
88
+ activity: z.ZodObject<{
89
+ before: z.ZodString;
90
+ after: z.ZodString;
91
+ }, z.core.$strict>;
92
+ expect: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
93
+ type: z.ZodLiteral<"activity">;
94
+ value: z.ZodString;
95
+ timeoutMs: z.ZodNumber;
96
+ }, z.core.$strict>, z.ZodObject<{
97
+ type: z.ZodLiteral<"element">;
98
+ locator: z.ZodObject<{
99
+ resourceId: z.ZodOptional<z.ZodString>;
100
+ text: z.ZodOptional<z.ZodString>;
101
+ contentDescription: z.ZodOptional<z.ZodString>;
102
+ }, z.core.$strict>;
103
+ timeoutMs: z.ZodNumber;
104
+ }, z.core.$strict>, z.ZodObject<{
105
+ type: z.ZodLiteral<"logcat">;
106
+ tag: z.ZodString;
107
+ level: z.ZodOptional<z.ZodEnum<{
108
+ V: "V";
109
+ D: "D";
110
+ I: "I";
111
+ W: "W";
112
+ E: "E";
113
+ F: "F";
114
+ A: "A";
115
+ }>>;
116
+ pattern: z.ZodString;
117
+ match: z.ZodDefault<z.ZodEnum<{
118
+ literal: "literal";
119
+ regex: "regex";
120
+ }>>;
121
+ timeoutMs: z.ZodNumber;
122
+ }, z.core.$strict>], "type">>;
123
+ action: z.ZodLiteral<"longClick">;
124
+ locator: z.ZodObject<{
125
+ resourceId: z.ZodOptional<z.ZodString>;
126
+ text: z.ZodOptional<z.ZodString>;
127
+ contentDescription: z.ZodOptional<z.ZodString>;
128
+ }, z.core.$strict>;
129
+ durationMs: z.ZodDefault<z.ZodNumber>;
130
+ fallback: z.ZodOptional<z.ZodObject<{
131
+ type: z.ZodLiteral<"annotatedLabel">;
132
+ label: z.ZodString;
133
+ }, z.core.$strict>>;
134
+ }, z.core.$strict>, z.ZodObject<{
135
+ activity: z.ZodObject<{
136
+ before: z.ZodString;
137
+ after: z.ZodString;
138
+ }, z.core.$strict>;
139
+ expect: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
140
+ type: z.ZodLiteral<"activity">;
141
+ value: z.ZodString;
142
+ timeoutMs: z.ZodNumber;
143
+ }, z.core.$strict>, z.ZodObject<{
144
+ type: z.ZodLiteral<"element">;
145
+ locator: z.ZodObject<{
146
+ resourceId: z.ZodOptional<z.ZodString>;
147
+ text: z.ZodOptional<z.ZodString>;
148
+ contentDescription: z.ZodOptional<z.ZodString>;
149
+ }, z.core.$strict>;
150
+ timeoutMs: z.ZodNumber;
151
+ }, z.core.$strict>, z.ZodObject<{
152
+ type: z.ZodLiteral<"logcat">;
153
+ tag: z.ZodString;
154
+ level: z.ZodOptional<z.ZodEnum<{
155
+ V: "V";
156
+ D: "D";
157
+ I: "I";
158
+ W: "W";
159
+ E: "E";
160
+ F: "F";
161
+ A: "A";
162
+ }>>;
163
+ pattern: z.ZodString;
164
+ match: z.ZodDefault<z.ZodEnum<{
165
+ literal: "literal";
166
+ regex: "regex";
167
+ }>>;
168
+ timeoutMs: z.ZodNumber;
169
+ }, z.core.$strict>], "type">>;
170
+ action: z.ZodLiteral<"inputText">;
171
+ text: z.ZodString;
172
+ }, z.core.$strict>, z.ZodObject<{
173
+ activity: z.ZodObject<{
174
+ before: z.ZodString;
175
+ after: z.ZodString;
176
+ }, z.core.$strict>;
177
+ expect: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
178
+ type: z.ZodLiteral<"activity">;
179
+ value: z.ZodString;
180
+ timeoutMs: z.ZodNumber;
181
+ }, z.core.$strict>, z.ZodObject<{
182
+ type: z.ZodLiteral<"element">;
183
+ locator: z.ZodObject<{
184
+ resourceId: z.ZodOptional<z.ZodString>;
185
+ text: z.ZodOptional<z.ZodString>;
186
+ contentDescription: z.ZodOptional<z.ZodString>;
187
+ }, z.core.$strict>;
188
+ timeoutMs: z.ZodNumber;
189
+ }, z.core.$strict>, z.ZodObject<{
190
+ type: z.ZodLiteral<"logcat">;
191
+ tag: z.ZodString;
192
+ level: z.ZodOptional<z.ZodEnum<{
193
+ V: "V";
194
+ D: "D";
195
+ I: "I";
196
+ W: "W";
197
+ E: "E";
198
+ F: "F";
199
+ A: "A";
200
+ }>>;
201
+ pattern: z.ZodString;
202
+ match: z.ZodDefault<z.ZodEnum<{
203
+ literal: "literal";
204
+ regex: "regex";
205
+ }>>;
206
+ timeoutMs: z.ZodNumber;
207
+ }, z.core.$strict>], "type">>;
208
+ action: z.ZodLiteral<"swipe">;
209
+ locator: z.ZodObject<{
210
+ resourceId: z.ZodOptional<z.ZodString>;
211
+ text: z.ZodOptional<z.ZodString>;
212
+ contentDescription: z.ZodOptional<z.ZodString>;
213
+ }, z.core.$strict>;
214
+ direction: z.ZodEnum<{
215
+ left: "left";
216
+ right: "right";
217
+ up: "up";
218
+ down: "down";
219
+ }>;
220
+ distancePercent: z.ZodDefault<z.ZodNumber>;
221
+ durationMs: z.ZodDefault<z.ZodNumber>;
222
+ }, z.core.$strict>, z.ZodObject<{
223
+ activity: z.ZodObject<{
224
+ before: z.ZodString;
225
+ after: z.ZodString;
226
+ }, z.core.$strict>;
227
+ expect: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
228
+ type: z.ZodLiteral<"activity">;
229
+ value: z.ZodString;
230
+ timeoutMs: z.ZodNumber;
231
+ }, z.core.$strict>, z.ZodObject<{
232
+ type: z.ZodLiteral<"element">;
233
+ locator: z.ZodObject<{
234
+ resourceId: z.ZodOptional<z.ZodString>;
235
+ text: z.ZodOptional<z.ZodString>;
236
+ contentDescription: z.ZodOptional<z.ZodString>;
237
+ }, z.core.$strict>;
238
+ timeoutMs: z.ZodNumber;
239
+ }, z.core.$strict>, z.ZodObject<{
240
+ type: z.ZodLiteral<"logcat">;
241
+ tag: z.ZodString;
242
+ level: z.ZodOptional<z.ZodEnum<{
243
+ V: "V";
244
+ D: "D";
245
+ I: "I";
246
+ W: "W";
247
+ E: "E";
248
+ F: "F";
249
+ A: "A";
250
+ }>>;
251
+ pattern: z.ZodString;
252
+ match: z.ZodDefault<z.ZodEnum<{
253
+ literal: "literal";
254
+ regex: "regex";
255
+ }>>;
256
+ timeoutMs: z.ZodNumber;
257
+ }, z.core.$strict>], "type">>;
258
+ action: z.ZodLiteral<"scrollTo">;
259
+ locator: z.ZodObject<{
260
+ resourceId: z.ZodOptional<z.ZodString>;
261
+ text: z.ZodOptional<z.ZodString>;
262
+ contentDescription: z.ZodOptional<z.ZodString>;
263
+ }, z.core.$strict>;
264
+ container: z.ZodObject<{
265
+ resourceId: z.ZodOptional<z.ZodString>;
266
+ text: z.ZodOptional<z.ZodString>;
267
+ contentDescription: z.ZodOptional<z.ZodString>;
268
+ }, z.core.$strict>;
269
+ direction: z.ZodEnum<{
270
+ left: "left";
271
+ right: "right";
272
+ up: "up";
273
+ down: "down";
274
+ }>;
275
+ maxSwipes: z.ZodDefault<z.ZodNumber>;
276
+ distancePercent: z.ZodDefault<z.ZodNumber>;
277
+ durationMs: z.ZodDefault<z.ZodNumber>;
278
+ }, z.core.$strict>, z.ZodObject<{
279
+ activity: z.ZodObject<{
280
+ before: z.ZodString;
281
+ after: z.ZodString;
282
+ }, z.core.$strict>;
283
+ expect: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
284
+ type: z.ZodLiteral<"activity">;
285
+ value: z.ZodString;
286
+ timeoutMs: z.ZodNumber;
287
+ }, z.core.$strict>, z.ZodObject<{
288
+ type: z.ZodLiteral<"element">;
289
+ locator: z.ZodObject<{
290
+ resourceId: z.ZodOptional<z.ZodString>;
291
+ text: z.ZodOptional<z.ZodString>;
292
+ contentDescription: z.ZodOptional<z.ZodString>;
293
+ }, z.core.$strict>;
294
+ timeoutMs: z.ZodNumber;
295
+ }, z.core.$strict>, z.ZodObject<{
296
+ type: z.ZodLiteral<"logcat">;
297
+ tag: z.ZodString;
298
+ level: z.ZodOptional<z.ZodEnum<{
299
+ V: "V";
300
+ D: "D";
301
+ I: "I";
302
+ W: "W";
303
+ E: "E";
304
+ F: "F";
305
+ A: "A";
306
+ }>>;
307
+ pattern: z.ZodString;
308
+ match: z.ZodDefault<z.ZodEnum<{
309
+ literal: "literal";
310
+ regex: "regex";
311
+ }>>;
312
+ timeoutMs: z.ZodNumber;
313
+ }, z.core.$strict>], "type">>;
314
+ action: z.ZodLiteral<"back">;
315
+ }, z.core.$strict>, z.ZodObject<{
316
+ activity: z.ZodObject<{
317
+ before: z.ZodString;
318
+ after: z.ZodString;
319
+ }, z.core.$strict>;
320
+ expect: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
321
+ type: z.ZodLiteral<"activity">;
322
+ value: z.ZodString;
323
+ timeoutMs: z.ZodNumber;
324
+ }, z.core.$strict>, z.ZodObject<{
325
+ type: z.ZodLiteral<"element">;
326
+ locator: z.ZodObject<{
327
+ resourceId: z.ZodOptional<z.ZodString>;
328
+ text: z.ZodOptional<z.ZodString>;
329
+ contentDescription: z.ZodOptional<z.ZodString>;
330
+ }, z.core.$strict>;
331
+ timeoutMs: z.ZodNumber;
332
+ }, z.core.$strict>, z.ZodObject<{
333
+ type: z.ZodLiteral<"logcat">;
334
+ tag: z.ZodString;
335
+ level: z.ZodOptional<z.ZodEnum<{
336
+ V: "V";
337
+ D: "D";
338
+ I: "I";
339
+ W: "W";
340
+ E: "E";
341
+ F: "F";
342
+ A: "A";
343
+ }>>;
344
+ pattern: z.ZodString;
345
+ match: z.ZodDefault<z.ZodEnum<{
346
+ literal: "literal";
347
+ regex: "regex";
348
+ }>>;
349
+ timeoutMs: z.ZodNumber;
350
+ }, z.core.$strict>], "type">>;
351
+ action: z.ZodLiteral<"wait">;
352
+ }, z.core.$strict>], "action">;
353
+ export declare const JourneySchema: z.ZodObject<{
354
+ version: z.ZodLiteral<1>;
355
+ name: z.ZodString;
356
+ steps: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
357
+ activity: z.ZodObject<{
358
+ before: z.ZodString;
359
+ after: z.ZodString;
360
+ }, z.core.$strict>;
361
+ expect: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
362
+ type: z.ZodLiteral<"activity">;
363
+ value: z.ZodString;
364
+ timeoutMs: z.ZodNumber;
365
+ }, z.core.$strict>, z.ZodObject<{
366
+ type: z.ZodLiteral<"element">;
367
+ locator: z.ZodObject<{
368
+ resourceId: z.ZodOptional<z.ZodString>;
369
+ text: z.ZodOptional<z.ZodString>;
370
+ contentDescription: z.ZodOptional<z.ZodString>;
371
+ }, z.core.$strict>;
372
+ timeoutMs: z.ZodNumber;
373
+ }, z.core.$strict>, z.ZodObject<{
374
+ type: z.ZodLiteral<"logcat">;
375
+ tag: z.ZodString;
376
+ level: z.ZodOptional<z.ZodEnum<{
377
+ V: "V";
378
+ D: "D";
379
+ I: "I";
380
+ W: "W";
381
+ E: "E";
382
+ F: "F";
383
+ A: "A";
384
+ }>>;
385
+ pattern: z.ZodString;
386
+ match: z.ZodDefault<z.ZodEnum<{
387
+ literal: "literal";
388
+ regex: "regex";
389
+ }>>;
390
+ timeoutMs: z.ZodNumber;
391
+ }, z.core.$strict>], "type">>;
392
+ action: z.ZodLiteral<"click">;
393
+ locator: z.ZodObject<{
394
+ resourceId: z.ZodOptional<z.ZodString>;
395
+ text: z.ZodOptional<z.ZodString>;
396
+ contentDescription: z.ZodOptional<z.ZodString>;
397
+ }, z.core.$strict>;
398
+ fallback: z.ZodOptional<z.ZodObject<{
399
+ type: z.ZodLiteral<"annotatedLabel">;
400
+ label: z.ZodString;
401
+ }, z.core.$strict>>;
402
+ }, z.core.$strict>, z.ZodObject<{
403
+ activity: z.ZodObject<{
404
+ before: z.ZodString;
405
+ after: z.ZodString;
406
+ }, z.core.$strict>;
407
+ expect: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
408
+ type: z.ZodLiteral<"activity">;
409
+ value: z.ZodString;
410
+ timeoutMs: z.ZodNumber;
411
+ }, z.core.$strict>, z.ZodObject<{
412
+ type: z.ZodLiteral<"element">;
413
+ locator: z.ZodObject<{
414
+ resourceId: z.ZodOptional<z.ZodString>;
415
+ text: z.ZodOptional<z.ZodString>;
416
+ contentDescription: z.ZodOptional<z.ZodString>;
417
+ }, z.core.$strict>;
418
+ timeoutMs: z.ZodNumber;
419
+ }, z.core.$strict>, z.ZodObject<{
420
+ type: z.ZodLiteral<"logcat">;
421
+ tag: z.ZodString;
422
+ level: z.ZodOptional<z.ZodEnum<{
423
+ V: "V";
424
+ D: "D";
425
+ I: "I";
426
+ W: "W";
427
+ E: "E";
428
+ F: "F";
429
+ A: "A";
430
+ }>>;
431
+ pattern: z.ZodString;
432
+ match: z.ZodDefault<z.ZodEnum<{
433
+ literal: "literal";
434
+ regex: "regex";
435
+ }>>;
436
+ timeoutMs: z.ZodNumber;
437
+ }, z.core.$strict>], "type">>;
438
+ action: z.ZodLiteral<"longClick">;
439
+ locator: z.ZodObject<{
440
+ resourceId: z.ZodOptional<z.ZodString>;
441
+ text: z.ZodOptional<z.ZodString>;
442
+ contentDescription: z.ZodOptional<z.ZodString>;
443
+ }, z.core.$strict>;
444
+ durationMs: z.ZodDefault<z.ZodNumber>;
445
+ fallback: z.ZodOptional<z.ZodObject<{
446
+ type: z.ZodLiteral<"annotatedLabel">;
447
+ label: z.ZodString;
448
+ }, z.core.$strict>>;
449
+ }, z.core.$strict>, z.ZodObject<{
450
+ activity: z.ZodObject<{
451
+ before: z.ZodString;
452
+ after: z.ZodString;
453
+ }, z.core.$strict>;
454
+ expect: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
455
+ type: z.ZodLiteral<"activity">;
456
+ value: z.ZodString;
457
+ timeoutMs: z.ZodNumber;
458
+ }, z.core.$strict>, z.ZodObject<{
459
+ type: z.ZodLiteral<"element">;
460
+ locator: z.ZodObject<{
461
+ resourceId: z.ZodOptional<z.ZodString>;
462
+ text: z.ZodOptional<z.ZodString>;
463
+ contentDescription: z.ZodOptional<z.ZodString>;
464
+ }, z.core.$strict>;
465
+ timeoutMs: z.ZodNumber;
466
+ }, z.core.$strict>, z.ZodObject<{
467
+ type: z.ZodLiteral<"logcat">;
468
+ tag: z.ZodString;
469
+ level: z.ZodOptional<z.ZodEnum<{
470
+ V: "V";
471
+ D: "D";
472
+ I: "I";
473
+ W: "W";
474
+ E: "E";
475
+ F: "F";
476
+ A: "A";
477
+ }>>;
478
+ pattern: z.ZodString;
479
+ match: z.ZodDefault<z.ZodEnum<{
480
+ literal: "literal";
481
+ regex: "regex";
482
+ }>>;
483
+ timeoutMs: z.ZodNumber;
484
+ }, z.core.$strict>], "type">>;
485
+ action: z.ZodLiteral<"inputText">;
486
+ text: z.ZodString;
487
+ }, z.core.$strict>, z.ZodObject<{
488
+ activity: z.ZodObject<{
489
+ before: z.ZodString;
490
+ after: z.ZodString;
491
+ }, z.core.$strict>;
492
+ expect: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
493
+ type: z.ZodLiteral<"activity">;
494
+ value: z.ZodString;
495
+ timeoutMs: z.ZodNumber;
496
+ }, z.core.$strict>, z.ZodObject<{
497
+ type: z.ZodLiteral<"element">;
498
+ locator: z.ZodObject<{
499
+ resourceId: z.ZodOptional<z.ZodString>;
500
+ text: z.ZodOptional<z.ZodString>;
501
+ contentDescription: z.ZodOptional<z.ZodString>;
502
+ }, z.core.$strict>;
503
+ timeoutMs: z.ZodNumber;
504
+ }, z.core.$strict>, z.ZodObject<{
505
+ type: z.ZodLiteral<"logcat">;
506
+ tag: z.ZodString;
507
+ level: z.ZodOptional<z.ZodEnum<{
508
+ V: "V";
509
+ D: "D";
510
+ I: "I";
511
+ W: "W";
512
+ E: "E";
513
+ F: "F";
514
+ A: "A";
515
+ }>>;
516
+ pattern: z.ZodString;
517
+ match: z.ZodDefault<z.ZodEnum<{
518
+ literal: "literal";
519
+ regex: "regex";
520
+ }>>;
521
+ timeoutMs: z.ZodNumber;
522
+ }, z.core.$strict>], "type">>;
523
+ action: z.ZodLiteral<"swipe">;
524
+ locator: z.ZodObject<{
525
+ resourceId: z.ZodOptional<z.ZodString>;
526
+ text: z.ZodOptional<z.ZodString>;
527
+ contentDescription: z.ZodOptional<z.ZodString>;
528
+ }, z.core.$strict>;
529
+ direction: z.ZodEnum<{
530
+ left: "left";
531
+ right: "right";
532
+ up: "up";
533
+ down: "down";
534
+ }>;
535
+ distancePercent: z.ZodDefault<z.ZodNumber>;
536
+ durationMs: z.ZodDefault<z.ZodNumber>;
537
+ }, z.core.$strict>, z.ZodObject<{
538
+ activity: z.ZodObject<{
539
+ before: z.ZodString;
540
+ after: z.ZodString;
541
+ }, z.core.$strict>;
542
+ expect: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
543
+ type: z.ZodLiteral<"activity">;
544
+ value: z.ZodString;
545
+ timeoutMs: z.ZodNumber;
546
+ }, z.core.$strict>, z.ZodObject<{
547
+ type: z.ZodLiteral<"element">;
548
+ locator: z.ZodObject<{
549
+ resourceId: z.ZodOptional<z.ZodString>;
550
+ text: z.ZodOptional<z.ZodString>;
551
+ contentDescription: z.ZodOptional<z.ZodString>;
552
+ }, z.core.$strict>;
553
+ timeoutMs: z.ZodNumber;
554
+ }, z.core.$strict>, z.ZodObject<{
555
+ type: z.ZodLiteral<"logcat">;
556
+ tag: z.ZodString;
557
+ level: z.ZodOptional<z.ZodEnum<{
558
+ V: "V";
559
+ D: "D";
560
+ I: "I";
561
+ W: "W";
562
+ E: "E";
563
+ F: "F";
564
+ A: "A";
565
+ }>>;
566
+ pattern: z.ZodString;
567
+ match: z.ZodDefault<z.ZodEnum<{
568
+ literal: "literal";
569
+ regex: "regex";
570
+ }>>;
571
+ timeoutMs: z.ZodNumber;
572
+ }, z.core.$strict>], "type">>;
573
+ action: z.ZodLiteral<"scrollTo">;
574
+ locator: z.ZodObject<{
575
+ resourceId: z.ZodOptional<z.ZodString>;
576
+ text: z.ZodOptional<z.ZodString>;
577
+ contentDescription: z.ZodOptional<z.ZodString>;
578
+ }, z.core.$strict>;
579
+ container: z.ZodObject<{
580
+ resourceId: z.ZodOptional<z.ZodString>;
581
+ text: z.ZodOptional<z.ZodString>;
582
+ contentDescription: z.ZodOptional<z.ZodString>;
583
+ }, z.core.$strict>;
584
+ direction: z.ZodEnum<{
585
+ left: "left";
586
+ right: "right";
587
+ up: "up";
588
+ down: "down";
589
+ }>;
590
+ maxSwipes: z.ZodDefault<z.ZodNumber>;
591
+ distancePercent: z.ZodDefault<z.ZodNumber>;
592
+ durationMs: z.ZodDefault<z.ZodNumber>;
593
+ }, z.core.$strict>, z.ZodObject<{
594
+ activity: z.ZodObject<{
595
+ before: z.ZodString;
596
+ after: z.ZodString;
597
+ }, z.core.$strict>;
598
+ expect: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
599
+ type: z.ZodLiteral<"activity">;
600
+ value: z.ZodString;
601
+ timeoutMs: z.ZodNumber;
602
+ }, z.core.$strict>, z.ZodObject<{
603
+ type: z.ZodLiteral<"element">;
604
+ locator: z.ZodObject<{
605
+ resourceId: z.ZodOptional<z.ZodString>;
606
+ text: z.ZodOptional<z.ZodString>;
607
+ contentDescription: z.ZodOptional<z.ZodString>;
608
+ }, z.core.$strict>;
609
+ timeoutMs: z.ZodNumber;
610
+ }, z.core.$strict>, z.ZodObject<{
611
+ type: z.ZodLiteral<"logcat">;
612
+ tag: z.ZodString;
613
+ level: z.ZodOptional<z.ZodEnum<{
614
+ V: "V";
615
+ D: "D";
616
+ I: "I";
617
+ W: "W";
618
+ E: "E";
619
+ F: "F";
620
+ A: "A";
621
+ }>>;
622
+ pattern: z.ZodString;
623
+ match: z.ZodDefault<z.ZodEnum<{
624
+ literal: "literal";
625
+ regex: "regex";
626
+ }>>;
627
+ timeoutMs: z.ZodNumber;
628
+ }, z.core.$strict>], "type">>;
629
+ action: z.ZodLiteral<"back">;
630
+ }, z.core.$strict>, z.ZodObject<{
631
+ activity: z.ZodObject<{
632
+ before: z.ZodString;
633
+ after: z.ZodString;
634
+ }, z.core.$strict>;
635
+ expect: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
636
+ type: z.ZodLiteral<"activity">;
637
+ value: z.ZodString;
638
+ timeoutMs: z.ZodNumber;
639
+ }, z.core.$strict>, z.ZodObject<{
640
+ type: z.ZodLiteral<"element">;
641
+ locator: z.ZodObject<{
642
+ resourceId: z.ZodOptional<z.ZodString>;
643
+ text: z.ZodOptional<z.ZodString>;
644
+ contentDescription: z.ZodOptional<z.ZodString>;
645
+ }, z.core.$strict>;
646
+ timeoutMs: z.ZodNumber;
647
+ }, z.core.$strict>, z.ZodObject<{
648
+ type: z.ZodLiteral<"logcat">;
649
+ tag: z.ZodString;
650
+ level: z.ZodOptional<z.ZodEnum<{
651
+ V: "V";
652
+ D: "D";
653
+ I: "I";
654
+ W: "W";
655
+ E: "E";
656
+ F: "F";
657
+ A: "A";
658
+ }>>;
659
+ pattern: z.ZodString;
660
+ match: z.ZodDefault<z.ZodEnum<{
661
+ literal: "literal";
662
+ regex: "regex";
663
+ }>>;
664
+ timeoutMs: z.ZodNumber;
665
+ }, z.core.$strict>], "type">>;
666
+ action: z.ZodLiteral<"wait">;
667
+ }, z.core.$strict>], "action">>;
668
+ }, z.core.$strict>;
669
+ export type ActivityCheckpoint = z.infer<typeof ActivityCheckpointSchema>;
670
+ export type AnnotatedLabelFallback = z.infer<typeof AnnotatedLabelFallbackSchema>;
671
+ export type Expectation = z.infer<typeof ExpectSchema>;
672
+ export type JourneyStep = z.infer<typeof JourneyStepSchema>;
673
+ export type Journey = z.infer<typeof JourneySchema>;