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,912 @@
1
+ import { z } from "zod";
2
+ import { type ProposedStep } from "./proposed-step.js";
3
+ export declare const GENERATION_ERROR_CODES: readonly ["CONFIG_INVALID", "CONTEXT_INVALID", "CONTEXT_STALE", "SNAPSHOT_STALE", "PACKAGE_ESCAPE", "APP_CRASHED", "ACTION_UNSUPPORTED", "RISK_CONFIRMATION_REQUIRED", "ACTION_FORBIDDEN", "EXPECT_UNSUPPORTED", "RECOVERY_REQUIRED", "VERIFICATION_FAILED", "PUBLICATION_FAILED", "EXPORT_FAILED", "FINALIZATION_IN_PROGRESS"];
4
+ export declare const GenerationErrorCodeSchema: z.ZodEnum<{
5
+ CONFIG_INVALID: "CONFIG_INVALID";
6
+ CONTEXT_INVALID: "CONTEXT_INVALID";
7
+ CONTEXT_STALE: "CONTEXT_STALE";
8
+ SNAPSHOT_STALE: "SNAPSHOT_STALE";
9
+ PACKAGE_ESCAPE: "PACKAGE_ESCAPE";
10
+ APP_CRASHED: "APP_CRASHED";
11
+ ACTION_UNSUPPORTED: "ACTION_UNSUPPORTED";
12
+ RISK_CONFIRMATION_REQUIRED: "RISK_CONFIRMATION_REQUIRED";
13
+ ACTION_FORBIDDEN: "ACTION_FORBIDDEN";
14
+ EXPECT_UNSUPPORTED: "EXPECT_UNSUPPORTED";
15
+ RECOVERY_REQUIRED: "RECOVERY_REQUIRED";
16
+ VERIFICATION_FAILED: "VERIFICATION_FAILED";
17
+ PUBLICATION_FAILED: "PUBLICATION_FAILED";
18
+ EXPORT_FAILED: "EXPORT_FAILED";
19
+ FINALIZATION_IN_PROGRESS: "FINALIZATION_IN_PROGRESS";
20
+ }>;
21
+ export type GenerationErrorCode = z.infer<typeof GenerationErrorCodeSchema>;
22
+ export declare const GenerationSessionIdSchema: z.ZodString;
23
+ export declare const GenerationVariablesSchema: z.ZodObject<{
24
+ runId: z.ZodString;
25
+ timestamp: z.ZodPipe<z.ZodString, z.ZodISODateTime>;
26
+ randomHex: z.ZodString;
27
+ }, z.core.$strict>;
28
+ export declare const GenerationInFlightSchema: z.ZodObject<{
29
+ stepIndex: z.ZodNumber;
30
+ snapshotHash: z.ZodString;
31
+ proposalHash: z.ZodString;
32
+ attemptId: z.ZodString;
33
+ }, z.core.$strict>;
34
+ export declare const PendingConfirmationSchema: z.ZodObject<{
35
+ challengeId: z.ZodString;
36
+ stepIndex: z.ZodNumber;
37
+ proposalHash: z.ZodString;
38
+ snapshotHash: z.ZodString;
39
+ evidenceHash: z.ZodString;
40
+ actionSummary: z.ZodString;
41
+ expiresAt: z.ZodISODateTime;
42
+ status: z.ZodEnum<{
43
+ pending: "pending";
44
+ approved: "approved";
45
+ }>;
46
+ }, z.core.$strict>;
47
+ export declare const GenerationSessionSchema: z.ZodObject<{
48
+ version: z.ZodLiteral<1>;
49
+ id: z.ZodString;
50
+ revision: z.ZodNumber;
51
+ state: z.ZodEnum<{
52
+ active: "active";
53
+ recoveryRequired: "recoveryRequired";
54
+ }>;
55
+ bindings: z.ZodObject<{
56
+ projectHash: z.ZodString;
57
+ configHash: z.ZodString;
58
+ contextHash: z.ZodString;
59
+ snapshotHash: z.ZodNullable<z.ZodString>;
60
+ }, z.core.$strict>;
61
+ target: z.ZodObject<{
62
+ packageName: z.ZodString;
63
+ deviceSerial: z.ZodString;
64
+ resetStrategy: z.ZodLiteral<"processOnly">;
65
+ interactionPolicy: z.ZodObject<{
66
+ allowedActions: z.ZodArray<z.ZodEnum<{
67
+ swipe: "swipe";
68
+ click: "click";
69
+ longClick: "longClick";
70
+ inputText: "inputText";
71
+ scrollTo: "scrollTo";
72
+ back: "back";
73
+ wait: "wait";
74
+ }>>;
75
+ confirmationRequiredActions: z.ZodArray<z.ZodEnum<{
76
+ swipe: "swipe";
77
+ click: "click";
78
+ longClick: "longClick";
79
+ inputText: "inputText";
80
+ scrollTo: "scrollTo";
81
+ back: "back";
82
+ wait: "wait";
83
+ }>>;
84
+ forbiddenActions: z.ZodArray<z.ZodEnum<{
85
+ swipe: "swipe";
86
+ click: "click";
87
+ longClick: "longClick";
88
+ inputText: "inputText";
89
+ scrollTo: "scrollTo";
90
+ back: "back";
91
+ wait: "wait";
92
+ }>>;
93
+ }, z.core.$strict>;
94
+ }, z.core.$strict>;
95
+ variables: z.ZodObject<{
96
+ runId: z.ZodString;
97
+ timestamp: z.ZodPipe<z.ZodString, z.ZodISODateTime>;
98
+ randomHex: z.ZodString;
99
+ }, z.core.$strict>;
100
+ candidateSteps: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
101
+ activity: z.ZodObject<{
102
+ before: z.ZodString;
103
+ after: z.ZodString;
104
+ }, z.core.$strict>;
105
+ expect: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
106
+ type: z.ZodLiteral<"activity">;
107
+ value: z.ZodString;
108
+ timeoutMs: z.ZodNumber;
109
+ }, z.core.$strict>, z.ZodObject<{
110
+ type: z.ZodLiteral<"element">;
111
+ locator: z.ZodObject<{
112
+ resourceId: z.ZodOptional<z.ZodString>;
113
+ text: z.ZodOptional<z.ZodString>;
114
+ contentDescription: z.ZodOptional<z.ZodString>;
115
+ }, z.core.$strict>;
116
+ timeoutMs: z.ZodNumber;
117
+ }, z.core.$strict>, z.ZodObject<{
118
+ type: z.ZodLiteral<"logcat">;
119
+ tag: z.ZodString;
120
+ level: z.ZodOptional<z.ZodEnum<{
121
+ V: "V";
122
+ D: "D";
123
+ I: "I";
124
+ W: "W";
125
+ E: "E";
126
+ F: "F";
127
+ A: "A";
128
+ }>>;
129
+ pattern: z.ZodString;
130
+ match: z.ZodDefault<z.ZodEnum<{
131
+ literal: "literal";
132
+ regex: "regex";
133
+ }>>;
134
+ timeoutMs: z.ZodNumber;
135
+ }, z.core.$strict>], "type">>;
136
+ action: z.ZodLiteral<"click">;
137
+ locator: z.ZodObject<{
138
+ resourceId: z.ZodOptional<z.ZodString>;
139
+ text: z.ZodOptional<z.ZodString>;
140
+ contentDescription: z.ZodOptional<z.ZodString>;
141
+ }, z.core.$strict>;
142
+ fallback: z.ZodOptional<z.ZodObject<{
143
+ type: z.ZodLiteral<"annotatedLabel">;
144
+ label: z.ZodString;
145
+ }, z.core.$strict>>;
146
+ }, z.core.$strict>, z.ZodObject<{
147
+ activity: z.ZodObject<{
148
+ before: z.ZodString;
149
+ after: z.ZodString;
150
+ }, z.core.$strict>;
151
+ expect: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
152
+ type: z.ZodLiteral<"activity">;
153
+ value: z.ZodString;
154
+ timeoutMs: z.ZodNumber;
155
+ }, z.core.$strict>, z.ZodObject<{
156
+ type: z.ZodLiteral<"element">;
157
+ locator: z.ZodObject<{
158
+ resourceId: z.ZodOptional<z.ZodString>;
159
+ text: z.ZodOptional<z.ZodString>;
160
+ contentDescription: z.ZodOptional<z.ZodString>;
161
+ }, z.core.$strict>;
162
+ timeoutMs: z.ZodNumber;
163
+ }, z.core.$strict>, z.ZodObject<{
164
+ type: z.ZodLiteral<"logcat">;
165
+ tag: z.ZodString;
166
+ level: z.ZodOptional<z.ZodEnum<{
167
+ V: "V";
168
+ D: "D";
169
+ I: "I";
170
+ W: "W";
171
+ E: "E";
172
+ F: "F";
173
+ A: "A";
174
+ }>>;
175
+ pattern: z.ZodString;
176
+ match: z.ZodDefault<z.ZodEnum<{
177
+ literal: "literal";
178
+ regex: "regex";
179
+ }>>;
180
+ timeoutMs: z.ZodNumber;
181
+ }, z.core.$strict>], "type">>;
182
+ action: z.ZodLiteral<"longClick">;
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
+ durationMs: z.ZodDefault<z.ZodNumber>;
189
+ fallback: z.ZodOptional<z.ZodObject<{
190
+ type: z.ZodLiteral<"annotatedLabel">;
191
+ label: z.ZodString;
192
+ }, z.core.$strict>>;
193
+ }, z.core.$strict>, z.ZodObject<{
194
+ activity: z.ZodObject<{
195
+ before: z.ZodString;
196
+ after: z.ZodString;
197
+ }, z.core.$strict>;
198
+ expect: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
199
+ type: z.ZodLiteral<"activity">;
200
+ value: z.ZodString;
201
+ timeoutMs: z.ZodNumber;
202
+ }, z.core.$strict>, z.ZodObject<{
203
+ type: z.ZodLiteral<"element">;
204
+ locator: z.ZodObject<{
205
+ resourceId: z.ZodOptional<z.ZodString>;
206
+ text: z.ZodOptional<z.ZodString>;
207
+ contentDescription: z.ZodOptional<z.ZodString>;
208
+ }, z.core.$strict>;
209
+ timeoutMs: z.ZodNumber;
210
+ }, z.core.$strict>, z.ZodObject<{
211
+ type: z.ZodLiteral<"logcat">;
212
+ tag: z.ZodString;
213
+ level: z.ZodOptional<z.ZodEnum<{
214
+ V: "V";
215
+ D: "D";
216
+ I: "I";
217
+ W: "W";
218
+ E: "E";
219
+ F: "F";
220
+ A: "A";
221
+ }>>;
222
+ pattern: z.ZodString;
223
+ match: z.ZodDefault<z.ZodEnum<{
224
+ literal: "literal";
225
+ regex: "regex";
226
+ }>>;
227
+ timeoutMs: z.ZodNumber;
228
+ }, z.core.$strict>], "type">>;
229
+ action: z.ZodLiteral<"inputText">;
230
+ text: z.ZodString;
231
+ }, z.core.$strict>, z.ZodObject<{
232
+ activity: z.ZodObject<{
233
+ before: z.ZodString;
234
+ after: z.ZodString;
235
+ }, z.core.$strict>;
236
+ expect: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
237
+ type: z.ZodLiteral<"activity">;
238
+ value: z.ZodString;
239
+ timeoutMs: z.ZodNumber;
240
+ }, z.core.$strict>, z.ZodObject<{
241
+ type: z.ZodLiteral<"element">;
242
+ locator: z.ZodObject<{
243
+ resourceId: z.ZodOptional<z.ZodString>;
244
+ text: z.ZodOptional<z.ZodString>;
245
+ contentDescription: z.ZodOptional<z.ZodString>;
246
+ }, z.core.$strict>;
247
+ timeoutMs: z.ZodNumber;
248
+ }, z.core.$strict>, z.ZodObject<{
249
+ type: z.ZodLiteral<"logcat">;
250
+ tag: z.ZodString;
251
+ level: z.ZodOptional<z.ZodEnum<{
252
+ V: "V";
253
+ D: "D";
254
+ I: "I";
255
+ W: "W";
256
+ E: "E";
257
+ F: "F";
258
+ A: "A";
259
+ }>>;
260
+ pattern: z.ZodString;
261
+ match: z.ZodDefault<z.ZodEnum<{
262
+ literal: "literal";
263
+ regex: "regex";
264
+ }>>;
265
+ timeoutMs: z.ZodNumber;
266
+ }, z.core.$strict>], "type">>;
267
+ action: z.ZodLiteral<"swipe">;
268
+ locator: z.ZodObject<{
269
+ resourceId: z.ZodOptional<z.ZodString>;
270
+ text: z.ZodOptional<z.ZodString>;
271
+ contentDescription: z.ZodOptional<z.ZodString>;
272
+ }, z.core.$strict>;
273
+ direction: z.ZodEnum<{
274
+ left: "left";
275
+ right: "right";
276
+ up: "up";
277
+ down: "down";
278
+ }>;
279
+ distancePercent: z.ZodDefault<z.ZodNumber>;
280
+ durationMs: z.ZodDefault<z.ZodNumber>;
281
+ }, z.core.$strict>, z.ZodObject<{
282
+ activity: z.ZodObject<{
283
+ before: z.ZodString;
284
+ after: z.ZodString;
285
+ }, z.core.$strict>;
286
+ expect: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
287
+ type: z.ZodLiteral<"activity">;
288
+ value: z.ZodString;
289
+ timeoutMs: z.ZodNumber;
290
+ }, z.core.$strict>, z.ZodObject<{
291
+ type: z.ZodLiteral<"element">;
292
+ locator: z.ZodObject<{
293
+ resourceId: z.ZodOptional<z.ZodString>;
294
+ text: z.ZodOptional<z.ZodString>;
295
+ contentDescription: z.ZodOptional<z.ZodString>;
296
+ }, z.core.$strict>;
297
+ timeoutMs: z.ZodNumber;
298
+ }, z.core.$strict>, z.ZodObject<{
299
+ type: z.ZodLiteral<"logcat">;
300
+ tag: z.ZodString;
301
+ level: z.ZodOptional<z.ZodEnum<{
302
+ V: "V";
303
+ D: "D";
304
+ I: "I";
305
+ W: "W";
306
+ E: "E";
307
+ F: "F";
308
+ A: "A";
309
+ }>>;
310
+ pattern: z.ZodString;
311
+ match: z.ZodDefault<z.ZodEnum<{
312
+ literal: "literal";
313
+ regex: "regex";
314
+ }>>;
315
+ timeoutMs: z.ZodNumber;
316
+ }, z.core.$strict>], "type">>;
317
+ action: z.ZodLiteral<"scrollTo">;
318
+ locator: z.ZodObject<{
319
+ resourceId: z.ZodOptional<z.ZodString>;
320
+ text: z.ZodOptional<z.ZodString>;
321
+ contentDescription: z.ZodOptional<z.ZodString>;
322
+ }, z.core.$strict>;
323
+ container: z.ZodObject<{
324
+ resourceId: z.ZodOptional<z.ZodString>;
325
+ text: z.ZodOptional<z.ZodString>;
326
+ contentDescription: z.ZodOptional<z.ZodString>;
327
+ }, z.core.$strict>;
328
+ direction: z.ZodEnum<{
329
+ left: "left";
330
+ right: "right";
331
+ up: "up";
332
+ down: "down";
333
+ }>;
334
+ maxSwipes: z.ZodDefault<z.ZodNumber>;
335
+ distancePercent: z.ZodDefault<z.ZodNumber>;
336
+ durationMs: z.ZodDefault<z.ZodNumber>;
337
+ }, z.core.$strict>, z.ZodObject<{
338
+ activity: z.ZodObject<{
339
+ before: z.ZodString;
340
+ after: z.ZodString;
341
+ }, z.core.$strict>;
342
+ expect: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
343
+ type: z.ZodLiteral<"activity">;
344
+ value: z.ZodString;
345
+ timeoutMs: z.ZodNumber;
346
+ }, z.core.$strict>, z.ZodObject<{
347
+ type: z.ZodLiteral<"element">;
348
+ locator: z.ZodObject<{
349
+ resourceId: z.ZodOptional<z.ZodString>;
350
+ text: z.ZodOptional<z.ZodString>;
351
+ contentDescription: z.ZodOptional<z.ZodString>;
352
+ }, z.core.$strict>;
353
+ timeoutMs: z.ZodNumber;
354
+ }, z.core.$strict>, z.ZodObject<{
355
+ type: z.ZodLiteral<"logcat">;
356
+ tag: z.ZodString;
357
+ level: z.ZodOptional<z.ZodEnum<{
358
+ V: "V";
359
+ D: "D";
360
+ I: "I";
361
+ W: "W";
362
+ E: "E";
363
+ F: "F";
364
+ A: "A";
365
+ }>>;
366
+ pattern: z.ZodString;
367
+ match: z.ZodDefault<z.ZodEnum<{
368
+ literal: "literal";
369
+ regex: "regex";
370
+ }>>;
371
+ timeoutMs: z.ZodNumber;
372
+ }, z.core.$strict>], "type">>;
373
+ action: z.ZodLiteral<"back">;
374
+ }, z.core.$strict>, z.ZodObject<{
375
+ activity: z.ZodObject<{
376
+ before: z.ZodString;
377
+ after: z.ZodString;
378
+ }, z.core.$strict>;
379
+ expect: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
380
+ type: z.ZodLiteral<"activity">;
381
+ value: z.ZodString;
382
+ timeoutMs: z.ZodNumber;
383
+ }, z.core.$strict>, z.ZodObject<{
384
+ type: z.ZodLiteral<"element">;
385
+ locator: z.ZodObject<{
386
+ resourceId: z.ZodOptional<z.ZodString>;
387
+ text: z.ZodOptional<z.ZodString>;
388
+ contentDescription: z.ZodOptional<z.ZodString>;
389
+ }, z.core.$strict>;
390
+ timeoutMs: z.ZodNumber;
391
+ }, z.core.$strict>, z.ZodObject<{
392
+ type: z.ZodLiteral<"logcat">;
393
+ tag: z.ZodString;
394
+ level: z.ZodOptional<z.ZodEnum<{
395
+ V: "V";
396
+ D: "D";
397
+ I: "I";
398
+ W: "W";
399
+ E: "E";
400
+ F: "F";
401
+ A: "A";
402
+ }>>;
403
+ pattern: z.ZodString;
404
+ match: z.ZodDefault<z.ZodEnum<{
405
+ literal: "literal";
406
+ regex: "regex";
407
+ }>>;
408
+ timeoutMs: z.ZodNumber;
409
+ }, z.core.$strict>], "type">>;
410
+ action: z.ZodLiteral<"wait">;
411
+ }, z.core.$strict>], "action">>;
412
+ candidateSources: z.ZodArray<z.ZodEnum<{
413
+ planner: "planner";
414
+ manualOverride: "manualOverride";
415
+ }>>;
416
+ inFlight: z.ZodNullable<z.ZodObject<{
417
+ stepIndex: z.ZodNumber;
418
+ snapshotHash: z.ZodString;
419
+ proposalHash: z.ZodString;
420
+ attemptId: z.ZodString;
421
+ }, z.core.$strict>>;
422
+ pendingConfirmation: z.ZodNullable<z.ZodObject<{
423
+ challengeId: z.ZodString;
424
+ stepIndex: z.ZodNumber;
425
+ proposalHash: z.ZodString;
426
+ snapshotHash: z.ZodString;
427
+ evidenceHash: z.ZodString;
428
+ actionSummary: z.ZodString;
429
+ expiresAt: z.ZodISODateTime;
430
+ status: z.ZodEnum<{
431
+ pending: "pending";
432
+ approved: "approved";
433
+ }>;
434
+ }, z.core.$strict>>;
435
+ verification: z.ZodDiscriminatedUnion<[z.ZodObject<{
436
+ status: z.ZodLiteral<"notRun">;
437
+ }, z.core.$strict>, z.ZodObject<{
438
+ status: z.ZodLiteral<"running">;
439
+ attemptId: z.ZodString;
440
+ }, z.core.$strict>, z.ZodObject<{
441
+ status: z.ZodLiteral<"passed">;
442
+ attemptId: z.ZodString;
443
+ reportPath: z.ZodString;
444
+ reportSha256: z.ZodString;
445
+ runId: z.ZodString;
446
+ }, z.core.$strict>, z.ZodObject<{
447
+ status: z.ZodLiteral<"failed">;
448
+ failure: z.ZodObject<{
449
+ code: z.ZodEnum<{
450
+ CONFIG_INVALID: "CONFIG_INVALID";
451
+ CONTEXT_INVALID: "CONTEXT_INVALID";
452
+ CONTEXT_STALE: "CONTEXT_STALE";
453
+ SNAPSHOT_STALE: "SNAPSHOT_STALE";
454
+ PACKAGE_ESCAPE: "PACKAGE_ESCAPE";
455
+ APP_CRASHED: "APP_CRASHED";
456
+ ACTION_UNSUPPORTED: "ACTION_UNSUPPORTED";
457
+ RISK_CONFIRMATION_REQUIRED: "RISK_CONFIRMATION_REQUIRED";
458
+ ACTION_FORBIDDEN: "ACTION_FORBIDDEN";
459
+ EXPECT_UNSUPPORTED: "EXPECT_UNSUPPORTED";
460
+ RECOVERY_REQUIRED: "RECOVERY_REQUIRED";
461
+ VERIFICATION_FAILED: "VERIFICATION_FAILED";
462
+ PUBLICATION_FAILED: "PUBLICATION_FAILED";
463
+ EXPORT_FAILED: "EXPORT_FAILED";
464
+ FINALIZATION_IN_PROGRESS: "FINALIZATION_IN_PROGRESS";
465
+ }>;
466
+ message: z.ZodString;
467
+ }, z.core.$strict>;
468
+ }, z.core.$strict>], "status">;
469
+ publication: z.ZodDiscriminatedUnion<[z.ZodObject<{
470
+ status: z.ZodLiteral<"notRun">;
471
+ }, z.core.$strict>, z.ZodObject<{
472
+ status: z.ZodLiteral<"published">;
473
+ journeyPath: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
474
+ }, z.core.$strict>, z.ZodObject<{
475
+ status: z.ZodLiteral<"failed">;
476
+ failure: z.ZodObject<{
477
+ code: z.ZodEnum<{
478
+ CONFIG_INVALID: "CONFIG_INVALID";
479
+ CONTEXT_INVALID: "CONTEXT_INVALID";
480
+ CONTEXT_STALE: "CONTEXT_STALE";
481
+ SNAPSHOT_STALE: "SNAPSHOT_STALE";
482
+ PACKAGE_ESCAPE: "PACKAGE_ESCAPE";
483
+ APP_CRASHED: "APP_CRASHED";
484
+ ACTION_UNSUPPORTED: "ACTION_UNSUPPORTED";
485
+ RISK_CONFIRMATION_REQUIRED: "RISK_CONFIRMATION_REQUIRED";
486
+ ACTION_FORBIDDEN: "ACTION_FORBIDDEN";
487
+ EXPECT_UNSUPPORTED: "EXPECT_UNSUPPORTED";
488
+ RECOVERY_REQUIRED: "RECOVERY_REQUIRED";
489
+ VERIFICATION_FAILED: "VERIFICATION_FAILED";
490
+ PUBLICATION_FAILED: "PUBLICATION_FAILED";
491
+ EXPORT_FAILED: "EXPORT_FAILED";
492
+ FINALIZATION_IN_PROGRESS: "FINALIZATION_IN_PROGRESS";
493
+ }>;
494
+ message: z.ZodString;
495
+ }, z.core.$strict>;
496
+ }, z.core.$strict>], "status">;
497
+ }, z.core.$strict>;
498
+ export type GenerationVariables = z.infer<typeof GenerationVariablesSchema>;
499
+ export type GenerationInFlight = z.infer<typeof GenerationInFlightSchema>;
500
+ export type PendingConfirmation = z.infer<typeof PendingConfirmationSchema>;
501
+ export type GenerationSession = z.infer<typeof GenerationSessionSchema>;
502
+ export declare const GenerationConfirmationEvidenceSchema: z.ZodObject<{
503
+ version: z.ZodLiteral<1>;
504
+ proposal: z.ZodDiscriminatedUnion<[z.ZodObject<{
505
+ binding: z.ZodObject<{
506
+ generationId: z.ZodString;
507
+ baseRevision: z.ZodNumber;
508
+ snapshotHash: z.ZodString;
509
+ }, z.core.$strict>;
510
+ activity: z.ZodObject<{
511
+ before: z.ZodString;
512
+ }, z.core.$strict>;
513
+ expect: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
514
+ type: z.ZodLiteral<"activity">;
515
+ value: z.ZodString;
516
+ timeoutMs: z.ZodNumber;
517
+ }, z.core.$strict>, z.ZodObject<{
518
+ type: z.ZodLiteral<"element">;
519
+ locator: z.ZodObject<{
520
+ resourceId: z.ZodOptional<z.ZodString>;
521
+ text: z.ZodOptional<z.ZodString>;
522
+ contentDescription: z.ZodOptional<z.ZodString>;
523
+ }, z.core.$strict>;
524
+ timeoutMs: z.ZodNumber;
525
+ }, z.core.$strict>, z.ZodObject<{
526
+ type: z.ZodLiteral<"logcat">;
527
+ tag: z.ZodString;
528
+ level: z.ZodOptional<z.ZodEnum<{
529
+ V: "V";
530
+ D: "D";
531
+ I: "I";
532
+ W: "W";
533
+ E: "E";
534
+ F: "F";
535
+ A: "A";
536
+ }>>;
537
+ pattern: z.ZodString;
538
+ match: z.ZodDefault<z.ZodEnum<{
539
+ literal: "literal";
540
+ regex: "regex";
541
+ }>>;
542
+ timeoutMs: z.ZodNumber;
543
+ }, z.core.$strict>], "type">>;
544
+ action: z.ZodLiteral<"click">;
545
+ locator: z.ZodObject<{
546
+ resourceId: z.ZodOptional<z.ZodString>;
547
+ text: z.ZodOptional<z.ZodString>;
548
+ contentDescription: z.ZodOptional<z.ZodString>;
549
+ }, z.core.$strict>;
550
+ }, z.core.$strict>, z.ZodObject<{
551
+ binding: z.ZodObject<{
552
+ generationId: z.ZodString;
553
+ baseRevision: z.ZodNumber;
554
+ snapshotHash: z.ZodString;
555
+ }, z.core.$strict>;
556
+ activity: z.ZodObject<{
557
+ before: z.ZodString;
558
+ }, z.core.$strict>;
559
+ expect: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
560
+ type: z.ZodLiteral<"activity">;
561
+ value: z.ZodString;
562
+ timeoutMs: z.ZodNumber;
563
+ }, z.core.$strict>, z.ZodObject<{
564
+ type: z.ZodLiteral<"element">;
565
+ locator: z.ZodObject<{
566
+ resourceId: z.ZodOptional<z.ZodString>;
567
+ text: z.ZodOptional<z.ZodString>;
568
+ contentDescription: z.ZodOptional<z.ZodString>;
569
+ }, z.core.$strict>;
570
+ timeoutMs: z.ZodNumber;
571
+ }, z.core.$strict>, z.ZodObject<{
572
+ type: z.ZodLiteral<"logcat">;
573
+ tag: z.ZodString;
574
+ level: z.ZodOptional<z.ZodEnum<{
575
+ V: "V";
576
+ D: "D";
577
+ I: "I";
578
+ W: "W";
579
+ E: "E";
580
+ F: "F";
581
+ A: "A";
582
+ }>>;
583
+ pattern: z.ZodString;
584
+ match: z.ZodDefault<z.ZodEnum<{
585
+ literal: "literal";
586
+ regex: "regex";
587
+ }>>;
588
+ timeoutMs: z.ZodNumber;
589
+ }, z.core.$strict>], "type">>;
590
+ action: z.ZodLiteral<"longClick">;
591
+ locator: z.ZodObject<{
592
+ resourceId: z.ZodOptional<z.ZodString>;
593
+ text: z.ZodOptional<z.ZodString>;
594
+ contentDescription: z.ZodOptional<z.ZodString>;
595
+ }, z.core.$strict>;
596
+ durationMs: z.ZodDefault<z.ZodNumber>;
597
+ }, z.core.$strict>, z.ZodObject<{
598
+ binding: z.ZodObject<{
599
+ generationId: z.ZodString;
600
+ baseRevision: z.ZodNumber;
601
+ snapshotHash: z.ZodString;
602
+ }, z.core.$strict>;
603
+ activity: z.ZodObject<{
604
+ before: z.ZodString;
605
+ }, z.core.$strict>;
606
+ expect: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
607
+ type: z.ZodLiteral<"activity">;
608
+ value: z.ZodString;
609
+ timeoutMs: z.ZodNumber;
610
+ }, z.core.$strict>, z.ZodObject<{
611
+ type: z.ZodLiteral<"element">;
612
+ locator: z.ZodObject<{
613
+ resourceId: z.ZodOptional<z.ZodString>;
614
+ text: z.ZodOptional<z.ZodString>;
615
+ contentDescription: z.ZodOptional<z.ZodString>;
616
+ }, z.core.$strict>;
617
+ timeoutMs: z.ZodNumber;
618
+ }, z.core.$strict>, z.ZodObject<{
619
+ type: z.ZodLiteral<"logcat">;
620
+ tag: z.ZodString;
621
+ level: z.ZodOptional<z.ZodEnum<{
622
+ V: "V";
623
+ D: "D";
624
+ I: "I";
625
+ W: "W";
626
+ E: "E";
627
+ F: "F";
628
+ A: "A";
629
+ }>>;
630
+ pattern: z.ZodString;
631
+ match: z.ZodDefault<z.ZodEnum<{
632
+ literal: "literal";
633
+ regex: "regex";
634
+ }>>;
635
+ timeoutMs: z.ZodNumber;
636
+ }, z.core.$strict>], "type">>;
637
+ action: z.ZodLiteral<"inputText">;
638
+ text: z.ZodString;
639
+ }, z.core.$strict>, z.ZodObject<{
640
+ binding: z.ZodObject<{
641
+ generationId: z.ZodString;
642
+ baseRevision: z.ZodNumber;
643
+ snapshotHash: z.ZodString;
644
+ }, z.core.$strict>;
645
+ activity: z.ZodObject<{
646
+ before: z.ZodString;
647
+ }, z.core.$strict>;
648
+ expect: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
649
+ type: z.ZodLiteral<"activity">;
650
+ value: z.ZodString;
651
+ timeoutMs: z.ZodNumber;
652
+ }, z.core.$strict>, z.ZodObject<{
653
+ type: z.ZodLiteral<"element">;
654
+ locator: z.ZodObject<{
655
+ resourceId: z.ZodOptional<z.ZodString>;
656
+ text: z.ZodOptional<z.ZodString>;
657
+ contentDescription: z.ZodOptional<z.ZodString>;
658
+ }, z.core.$strict>;
659
+ timeoutMs: z.ZodNumber;
660
+ }, z.core.$strict>, z.ZodObject<{
661
+ type: z.ZodLiteral<"logcat">;
662
+ tag: z.ZodString;
663
+ level: z.ZodOptional<z.ZodEnum<{
664
+ V: "V";
665
+ D: "D";
666
+ I: "I";
667
+ W: "W";
668
+ E: "E";
669
+ F: "F";
670
+ A: "A";
671
+ }>>;
672
+ pattern: z.ZodString;
673
+ match: z.ZodDefault<z.ZodEnum<{
674
+ literal: "literal";
675
+ regex: "regex";
676
+ }>>;
677
+ timeoutMs: z.ZodNumber;
678
+ }, z.core.$strict>], "type">>;
679
+ action: z.ZodLiteral<"swipe">;
680
+ locator: z.ZodObject<{
681
+ resourceId: z.ZodOptional<z.ZodString>;
682
+ text: z.ZodOptional<z.ZodString>;
683
+ contentDescription: z.ZodOptional<z.ZodString>;
684
+ }, z.core.$strict>;
685
+ direction: z.ZodEnum<{
686
+ left: "left";
687
+ right: "right";
688
+ up: "up";
689
+ down: "down";
690
+ }>;
691
+ distancePercent: z.ZodDefault<z.ZodNumber>;
692
+ durationMs: z.ZodDefault<z.ZodNumber>;
693
+ }, z.core.$strict>, z.ZodObject<{
694
+ binding: z.ZodObject<{
695
+ generationId: z.ZodString;
696
+ baseRevision: z.ZodNumber;
697
+ snapshotHash: z.ZodString;
698
+ }, z.core.$strict>;
699
+ activity: z.ZodObject<{
700
+ before: z.ZodString;
701
+ }, z.core.$strict>;
702
+ expect: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
703
+ type: z.ZodLiteral<"activity">;
704
+ value: z.ZodString;
705
+ timeoutMs: z.ZodNumber;
706
+ }, z.core.$strict>, z.ZodObject<{
707
+ type: z.ZodLiteral<"element">;
708
+ locator: z.ZodObject<{
709
+ resourceId: z.ZodOptional<z.ZodString>;
710
+ text: z.ZodOptional<z.ZodString>;
711
+ contentDescription: z.ZodOptional<z.ZodString>;
712
+ }, z.core.$strict>;
713
+ timeoutMs: z.ZodNumber;
714
+ }, z.core.$strict>, z.ZodObject<{
715
+ type: z.ZodLiteral<"logcat">;
716
+ tag: z.ZodString;
717
+ level: z.ZodOptional<z.ZodEnum<{
718
+ V: "V";
719
+ D: "D";
720
+ I: "I";
721
+ W: "W";
722
+ E: "E";
723
+ F: "F";
724
+ A: "A";
725
+ }>>;
726
+ pattern: z.ZodString;
727
+ match: z.ZodDefault<z.ZodEnum<{
728
+ literal: "literal";
729
+ regex: "regex";
730
+ }>>;
731
+ timeoutMs: z.ZodNumber;
732
+ }, z.core.$strict>], "type">>;
733
+ action: z.ZodLiteral<"scrollTo">;
734
+ locator: z.ZodObject<{
735
+ resourceId: z.ZodOptional<z.ZodString>;
736
+ text: z.ZodOptional<z.ZodString>;
737
+ contentDescription: z.ZodOptional<z.ZodString>;
738
+ }, z.core.$strict>;
739
+ container: z.ZodObject<{
740
+ resourceId: z.ZodOptional<z.ZodString>;
741
+ text: z.ZodOptional<z.ZodString>;
742
+ contentDescription: z.ZodOptional<z.ZodString>;
743
+ }, z.core.$strict>;
744
+ direction: z.ZodEnum<{
745
+ left: "left";
746
+ right: "right";
747
+ up: "up";
748
+ down: "down";
749
+ }>;
750
+ maxSwipes: z.ZodDefault<z.ZodNumber>;
751
+ distancePercent: z.ZodDefault<z.ZodNumber>;
752
+ durationMs: z.ZodDefault<z.ZodNumber>;
753
+ }, z.core.$strict>, z.ZodObject<{
754
+ binding: z.ZodObject<{
755
+ generationId: z.ZodString;
756
+ baseRevision: z.ZodNumber;
757
+ snapshotHash: z.ZodString;
758
+ }, z.core.$strict>;
759
+ activity: z.ZodObject<{
760
+ before: z.ZodString;
761
+ }, z.core.$strict>;
762
+ expect: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
763
+ type: z.ZodLiteral<"activity">;
764
+ value: z.ZodString;
765
+ timeoutMs: z.ZodNumber;
766
+ }, z.core.$strict>, z.ZodObject<{
767
+ type: z.ZodLiteral<"element">;
768
+ locator: z.ZodObject<{
769
+ resourceId: z.ZodOptional<z.ZodString>;
770
+ text: z.ZodOptional<z.ZodString>;
771
+ contentDescription: z.ZodOptional<z.ZodString>;
772
+ }, z.core.$strict>;
773
+ timeoutMs: z.ZodNumber;
774
+ }, z.core.$strict>, z.ZodObject<{
775
+ type: z.ZodLiteral<"logcat">;
776
+ tag: z.ZodString;
777
+ level: z.ZodOptional<z.ZodEnum<{
778
+ V: "V";
779
+ D: "D";
780
+ I: "I";
781
+ W: "W";
782
+ E: "E";
783
+ F: "F";
784
+ A: "A";
785
+ }>>;
786
+ pattern: z.ZodString;
787
+ match: z.ZodDefault<z.ZodEnum<{
788
+ literal: "literal";
789
+ regex: "regex";
790
+ }>>;
791
+ timeoutMs: z.ZodNumber;
792
+ }, z.core.$strict>], "type">>;
793
+ action: z.ZodLiteral<"back">;
794
+ }, z.core.$strict>, z.ZodObject<{
795
+ binding: z.ZodObject<{
796
+ generationId: z.ZodString;
797
+ baseRevision: z.ZodNumber;
798
+ snapshotHash: z.ZodString;
799
+ }, z.core.$strict>;
800
+ activity: z.ZodObject<{
801
+ before: z.ZodString;
802
+ }, z.core.$strict>;
803
+ expect: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
804
+ type: z.ZodLiteral<"activity">;
805
+ value: z.ZodString;
806
+ timeoutMs: z.ZodNumber;
807
+ }, z.core.$strict>, z.ZodObject<{
808
+ type: z.ZodLiteral<"element">;
809
+ locator: z.ZodObject<{
810
+ resourceId: z.ZodOptional<z.ZodString>;
811
+ text: z.ZodOptional<z.ZodString>;
812
+ contentDescription: z.ZodOptional<z.ZodString>;
813
+ }, z.core.$strict>;
814
+ timeoutMs: z.ZodNumber;
815
+ }, z.core.$strict>, z.ZodObject<{
816
+ type: z.ZodLiteral<"logcat">;
817
+ tag: z.ZodString;
818
+ level: z.ZodOptional<z.ZodEnum<{
819
+ V: "V";
820
+ D: "D";
821
+ I: "I";
822
+ W: "W";
823
+ E: "E";
824
+ F: "F";
825
+ A: "A";
826
+ }>>;
827
+ pattern: z.ZodString;
828
+ match: z.ZodDefault<z.ZodEnum<{
829
+ literal: "literal";
830
+ regex: "regex";
831
+ }>>;
832
+ timeoutMs: z.ZodNumber;
833
+ }, z.core.$strict>], "type">>;
834
+ action: z.ZodLiteral<"wait">;
835
+ }, z.core.$strict>], "action">;
836
+ snapshot: z.ZodObject<{
837
+ version: z.ZodLiteral<1>;
838
+ generationId: z.ZodString;
839
+ baseRevision: z.ZodNumber;
840
+ deviceSerial: z.ZodString;
841
+ expectedPackageName: z.ZodString;
842
+ foregroundPackageName: z.ZodString;
843
+ activity: z.ZodString;
844
+ pid: z.ZodNullable<z.ZodNumber>;
845
+ capturedAt: z.ZodISODateTime;
846
+ screenshotPath: z.ZodOptional<z.ZodString>;
847
+ layout: z.ZodArray<z.ZodType<import("./layout.js").LayoutElement, unknown, z.core.$ZodTypeInternals<import("./layout.js").LayoutElement, unknown>>>;
848
+ }, z.core.$strict>;
849
+ source: z.ZodEnum<{
850
+ planner: "planner";
851
+ manualOverride: "manualOverride";
852
+ }>;
853
+ }, z.core.$strict>;
854
+ export type GenerationConfirmationEvidence = z.infer<typeof GenerationConfirmationEvidenceSchema>;
855
+ export declare function hashGenerationConfirmationEvidence(value: unknown): string;
856
+ export declare const GenerationMetaSchema: z.ZodObject<{
857
+ version: z.ZodLiteral<1>;
858
+ status: z.ZodLiteral<"verified">;
859
+ generationId: z.ZodString;
860
+ journeyPath: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
861
+ bindings: z.ZodObject<{
862
+ projectHash: z.ZodString;
863
+ configHash: z.ZodString;
864
+ contextHash: z.ZodString;
865
+ }, z.core.$strict>;
866
+ verification: z.ZodObject<{
867
+ reportPath: z.ZodString;
868
+ reportSha256: z.ZodString;
869
+ runId: z.ZodString;
870
+ runs: z.ZodLiteral<1>;
871
+ }, z.core.$strict>;
872
+ manualOverrideStepIndexes: z.ZodArray<z.ZodNumber>;
873
+ }, z.core.$strict>;
874
+ export declare const GenerationReportSchema: z.ZodObject<{
875
+ version: z.ZodLiteral<1>;
876
+ generationId: z.ZodString;
877
+ status: z.ZodLiteral<"verified">;
878
+ steps: z.ZodArray<z.ZodObject<{
879
+ index: z.ZodNumber;
880
+ source: z.ZodEnum<{
881
+ planner: "planner";
882
+ manualOverride: "manualOverride";
883
+ }>;
884
+ }, z.core.$strict>>;
885
+ }, z.core.$strict>;
886
+ export declare const GenerationBundleManifestEntrySchema: z.ZodObject<{
887
+ path: z.ZodString;
888
+ bytes: z.ZodNumber;
889
+ sha256: z.ZodString;
890
+ }, z.core.$strict>;
891
+ export declare const GenerationBundleManifestSchema: z.ZodObject<{
892
+ version: z.ZodLiteral<1>;
893
+ generationId: z.ZodString;
894
+ files: z.ZodArray<z.ZodObject<{
895
+ path: z.ZodString;
896
+ bytes: z.ZodNumber;
897
+ sha256: z.ZodString;
898
+ }, z.core.$strict>>;
899
+ }, z.core.$strict>;
900
+ export type GenerationMeta = z.infer<typeof GenerationMetaSchema>;
901
+ export type GenerationReport = z.infer<typeof GenerationReportSchema>;
902
+ export type GenerationBundleManifest = z.infer<typeof GenerationBundleManifestSchema>;
903
+ export interface GenerationCoreIdentity {
904
+ id: GenerationSession["id"];
905
+ bindings: Pick<GenerationSession["bindings"], "projectHash" | "configHash" | "contextHash">;
906
+ target: GenerationSession["target"];
907
+ variables: GenerationSession["variables"];
908
+ }
909
+ export declare function generationCoreIdentity(session: GenerationSession): GenerationCoreIdentity;
910
+ export declare function bindGenerationVariables(input: unknown): GenerationVariables;
911
+ export declare function expandGenerationVariables(value: unknown, variables: unknown): unknown;
912
+ export declare function expandProposedStepVariables(step: unknown, variables: unknown): ProposedStep;