autokap 1.0.7 → 1.0.8

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 (278) hide show
  1. package/assets/cursors/macos.svg +4 -0
  2. package/assets/cursors/windows.svg +15 -0
  3. package/assets/skill/OPCODE-REFERENCE.md +607 -0
  4. package/assets/skill/README.md +39 -0
  5. package/assets/skill/SKILL.md +453 -468
  6. package/assets/skill/STUDIO-SKILL.md +476 -0
  7. package/assets/skill/references/examples.md +104 -0
  8. package/assets/skill/references/interactive-demo.md +225 -0
  9. package/assets/skill/references/mock-data.md +178 -0
  10. package/dist/action-verifier.d.ts +29 -0
  11. package/dist/action-verifier.js +133 -0
  12. package/dist/agent-action-recovery.d.ts +45 -0
  13. package/dist/agent-action-recovery.js +370 -0
  14. package/dist/agent-message-utils.d.ts +21 -0
  15. package/dist/agent-message-utils.js +77 -0
  16. package/dist/agent-url-utils.d.ts +30 -0
  17. package/dist/agent-url-utils.js +138 -0
  18. package/dist/agent.d.ts +92 -8
  19. package/dist/agent.js +2936 -781
  20. package/dist/ak-tree.d.ts +39 -0
  21. package/dist/ak-tree.js +368 -0
  22. package/dist/alt-text.d.ts +26 -0
  23. package/dist/alt-text.js +55 -0
  24. package/dist/auth-capture.d.ts +17 -0
  25. package/dist/auth-capture.js +164 -0
  26. package/dist/benchmark.d.ts +59 -0
  27. package/dist/benchmark.js +135 -0
  28. package/dist/browser-bar.d.ts +14 -6
  29. package/dist/browser-bar.js +145 -8
  30. package/dist/browser-pool.d.ts +7 -0
  31. package/dist/browser-pool.js +15 -5
  32. package/dist/browser-utils.d.ts +31 -0
  33. package/dist/browser-utils.js +97 -0
  34. package/dist/browser.d.ts +51 -1
  35. package/dist/browser.js +1481 -31
  36. package/dist/capture-alt-text.js +2 -1
  37. package/dist/capture-language-preflight.js +14 -0
  38. package/dist/capture-llm-page-identity.js +22 -10
  39. package/dist/capture-page-identity.d.ts +5 -7
  40. package/dist/capture-page-identity.js +211 -78
  41. package/dist/capture-preset-credentials.d.ts +50 -0
  42. package/dist/capture-preset-credentials.js +127 -0
  43. package/dist/capture-request-plan.d.ts +2 -2
  44. package/dist/capture-request-plan.js +64 -16
  45. package/dist/capture-run-optimizer.js +48 -33
  46. package/dist/capture-selector-memory.d.ts +5 -0
  47. package/dist/capture-selector-memory.js +18 -0
  48. package/dist/capture-strategy.d.ts +36 -0
  49. package/dist/capture-strategy.js +95 -0
  50. package/dist/capture-studio-sync.d.ts +1 -0
  51. package/dist/capture-studio-sync.js +9 -3
  52. package/dist/capture-surface-contract.d.ts +36 -0
  53. package/dist/capture-surface-contract.js +299 -0
  54. package/dist/capture-transition-engine.d.ts +28 -0
  55. package/dist/capture-transition-engine.js +292 -0
  56. package/dist/capture-variant-state.d.ts +2 -0
  57. package/dist/capture-variant-state.js +26 -0
  58. package/dist/capture-verification.d.ts +35 -0
  59. package/dist/capture-verification.js +95 -0
  60. package/dist/capture-viewport-lock.d.ts +48 -0
  61. package/dist/capture-viewport-lock.js +74 -0
  62. package/dist/circuit-breaker.d.ts +42 -0
  63. package/dist/circuit-breaker.js +119 -0
  64. package/dist/cli-config.d.ts +8 -1
  65. package/dist/cli-config.js +62 -6
  66. package/dist/cli-contract.d.ts +15 -0
  67. package/dist/cli-contract.js +167 -0
  68. package/dist/cli-runner-local.d.ts +12 -0
  69. package/dist/cli-runner-local.js +102 -0
  70. package/dist/cli-runner.d.ts +34 -0
  71. package/dist/cli-runner.js +433 -0
  72. package/dist/cli-utils.d.ts +0 -1
  73. package/dist/cli-utils.js +2 -5
  74. package/dist/cli.js +1005 -267
  75. package/dist/clip-orchestrator.js +9 -2
  76. package/dist/clip-postprocess.js +25 -16
  77. package/dist/cookie-dismiss.d.ts +2 -0
  78. package/dist/cookie-dismiss.js +48 -13
  79. package/dist/cost-logging.d.ts +8 -0
  80. package/dist/cost-logging.js +160 -46
  81. package/dist/cost-resolution-monitor.d.ts +16 -0
  82. package/dist/cost-resolution-monitor.js +34 -0
  83. package/dist/credential-templates.js +2 -2
  84. package/dist/cursor-overlay-script.d.ts +6 -0
  85. package/dist/cursor-overlay-script.js +169 -0
  86. package/dist/dom-css-purger.d.ts +65 -0
  87. package/dist/dom-css-purger.js +333 -0
  88. package/dist/dom-font-inliner.d.ts +45 -0
  89. package/dist/dom-font-inliner.js +148 -0
  90. package/dist/dom-patch-resolver.d.ts +52 -0
  91. package/dist/dom-patch-resolver.js +242 -0
  92. package/dist/dom-serializer.d.ts +82 -0
  93. package/dist/dom-serializer.js +378 -0
  94. package/dist/element-capture.d.ts +1 -41
  95. package/dist/element-capture.js +202 -446
  96. package/dist/env-validation.d.ts +5 -0
  97. package/dist/env-validation.js +29 -0
  98. package/dist/execution-schema.d.ts +4423 -0
  99. package/dist/execution-schema.js +507 -0
  100. package/dist/execution-types.d.ts +886 -0
  101. package/dist/execution-types.js +65 -0
  102. package/dist/fonts-loader.d.ts +14 -0
  103. package/dist/fonts-loader.js +55 -0
  104. package/dist/hybrid-navigator.js +12 -12
  105. package/dist/index.d.ts +9 -6
  106. package/dist/index.js +10 -4
  107. package/dist/legacy/agent-action-recovery.d.ts +45 -0
  108. package/dist/legacy/agent-action-recovery.js +370 -0
  109. package/dist/legacy/agent-message-utils.d.ts +21 -0
  110. package/dist/legacy/agent-message-utils.js +77 -0
  111. package/dist/legacy/agent-url-utils.d.ts +30 -0
  112. package/dist/legacy/agent-url-utils.js +138 -0
  113. package/dist/legacy/agent.d.ts +226 -0
  114. package/dist/legacy/agent.js +6666 -0
  115. package/dist/legacy/clip-orchestrator.d.ts +148 -0
  116. package/dist/legacy/clip-orchestrator.js +957 -0
  117. package/dist/legacy/credential-templates.d.ts +5 -0
  118. package/dist/legacy/credential-templates.js +60 -0
  119. package/dist/legacy/hybrid-navigator.d.ts +138 -0
  120. package/dist/legacy/hybrid-navigator.js +468 -0
  121. package/dist/legacy/llm-usage.d.ts +17 -0
  122. package/dist/legacy/llm-usage.js +45 -0
  123. package/dist/legacy/prompt-cache.d.ts +10 -0
  124. package/dist/legacy/prompt-cache.js +24 -0
  125. package/dist/legacy/prompts.d.ts +175 -0
  126. package/dist/legacy/prompts.js +1038 -0
  127. package/dist/legacy/tools.d.ts +4 -0
  128. package/dist/legacy/tools.js +216 -0
  129. package/dist/legacy/video-agent.d.ts +143 -0
  130. package/dist/legacy/video-agent.js +4788 -0
  131. package/dist/legacy/video-observation.d.ts +36 -0
  132. package/dist/legacy/video-observation.js +192 -0
  133. package/dist/legacy/video-planner.d.ts +12 -0
  134. package/dist/legacy/video-planner.js +501 -0
  135. package/dist/legacy/video-prompts.d.ts +37 -0
  136. package/dist/legacy/video-prompts.js +569 -0
  137. package/dist/legacy/video-tools.d.ts +3 -0
  138. package/dist/legacy/video-tools.js +59 -0
  139. package/dist/legacy/video-variant-state.d.ts +29 -0
  140. package/dist/legacy/video-variant-state.js +80 -0
  141. package/dist/legacy/vision-model.d.ts +17 -0
  142. package/dist/legacy/vision-model.js +74 -0
  143. package/dist/llm-healer.d.ts +63 -0
  144. package/dist/llm-healer.js +166 -0
  145. package/dist/llm-provider.d.ts +29 -0
  146. package/dist/llm-provider.js +80 -0
  147. package/dist/logger.d.ts +6 -2
  148. package/dist/logger.js +15 -1
  149. package/dist/mockup-html.js +35 -25
  150. package/dist/mockup.d.ts +95 -2
  151. package/dist/mockup.js +427 -166
  152. package/dist/mouse-animation.d.ts +2 -2
  153. package/dist/mouse-animation.js +34 -20
  154. package/dist/opcode-actions.d.ts +42 -0
  155. package/dist/opcode-actions.js +511 -0
  156. package/dist/opcode-runner.d.ts +51 -0
  157. package/dist/opcode-runner.js +770 -0
  158. package/dist/openrouter-client.d.ts +40 -0
  159. package/dist/openrouter-client.js +16 -0
  160. package/dist/overlay-engine.d.ts +24 -0
  161. package/dist/overlay-engine.js +176 -0
  162. package/dist/postcondition.d.ts +16 -0
  163. package/dist/postcondition.js +269 -0
  164. package/dist/program-patcher.d.ts +25 -0
  165. package/dist/program-patcher.js +44 -0
  166. package/dist/prompts.d.ts +13 -5
  167. package/dist/prompts.js +224 -351
  168. package/dist/provider-config.d.ts +12 -0
  169. package/dist/provider-config.js +15 -0
  170. package/dist/recovery-chain.d.ts +37 -0
  171. package/dist/recovery-chain.js +350 -0
  172. package/dist/remote-browser.d.ts +28 -4
  173. package/dist/remote-browser.js +60 -5
  174. package/dist/safari-browser-bar.d.ts +15 -0
  175. package/dist/safari-browser-bar.js +95 -0
  176. package/dist/safari-toolbar-asset.d.ts +15 -0
  177. package/dist/safari-toolbar-asset.js +12 -0
  178. package/dist/security.d.ts +2 -1
  179. package/dist/security.js +49 -10
  180. package/dist/selector-resolver.d.ts +34 -0
  181. package/dist/selector-resolver.js +181 -0
  182. package/dist/semantic-resolver.d.ts +35 -0
  183. package/dist/semantic-resolver.js +161 -0
  184. package/dist/server-capture-runtime.d.ts +5 -3
  185. package/dist/server-capture-runtime.js +42 -95
  186. package/dist/server-credit-usage.d.ts +2 -2
  187. package/dist/server-project-webhooks.d.ts +15 -1
  188. package/dist/server-project-webhooks.js +34 -8
  189. package/dist/server-screenshot-watermark.js +27 -5
  190. package/dist/session-profile.js +164 -1
  191. package/dist/sf-pro-symbols.d.ts +1 -0
  192. package/dist/sf-pro-symbols.js +55 -0
  193. package/dist/skill-packaging.d.ts +28 -0
  194. package/dist/skill-packaging.js +169 -0
  195. package/dist/smart-wait.d.ts +27 -0
  196. package/dist/smart-wait.js +81 -0
  197. package/dist/status-bar-render.d.ts +20 -0
  198. package/dist/status-bar-render.js +410 -0
  199. package/dist/status-bar.d.ts +9 -0
  200. package/dist/status-bar.js +298 -14
  201. package/dist/svg-browser-bar.d.ts +33 -0
  202. package/dist/svg-browser-bar.js +206 -0
  203. package/dist/svg-status-bar.d.ts +36 -0
  204. package/dist/svg-status-bar.js +597 -0
  205. package/dist/svg-text.d.ts +61 -0
  206. package/dist/svg-text.js +118 -0
  207. package/dist/tools.js +89 -451
  208. package/dist/types.d.ts +240 -5
  209. package/dist/types.js +23 -1
  210. package/dist/v2/action-verifier.d.ts +29 -0
  211. package/dist/v2/action-verifier.js +133 -0
  212. package/dist/v2/alt-text.d.ts +26 -0
  213. package/dist/v2/alt-text.js +55 -0
  214. package/dist/v2/benchmark.d.ts +59 -0
  215. package/dist/v2/benchmark.js +135 -0
  216. package/dist/v2/capture-strategy.d.ts +30 -0
  217. package/dist/v2/capture-strategy.js +67 -0
  218. package/dist/v2/capture-verification.d.ts +35 -0
  219. package/dist/v2/capture-verification.js +95 -0
  220. package/dist/v2/circuit-breaker.d.ts +42 -0
  221. package/dist/v2/circuit-breaker.js +119 -0
  222. package/dist/v2/cli-runner-local.d.ts +11 -0
  223. package/dist/v2/cli-runner-local.js +91 -0
  224. package/dist/v2/cli-runner.d.ts +34 -0
  225. package/dist/v2/cli-runner.js +300 -0
  226. package/dist/v2/compiler-prompts.d.ts +27 -0
  227. package/dist/v2/compiler-prompts.js +123 -0
  228. package/dist/v2/compiler.d.ts +37 -0
  229. package/dist/v2/compiler.js +147 -0
  230. package/dist/v2/explorer.d.ts +41 -0
  231. package/dist/v2/explorer.js +56 -0
  232. package/dist/v2/index.d.ts +37 -0
  233. package/dist/v2/index.js +31 -0
  234. package/dist/v2/llm-healer.d.ts +62 -0
  235. package/dist/v2/llm-healer.js +166 -0
  236. package/dist/v2/llm-provider.d.ts +29 -0
  237. package/dist/v2/llm-provider.js +80 -0
  238. package/dist/v2/opcode-runner.d.ts +47 -0
  239. package/dist/v2/opcode-runner.js +634 -0
  240. package/dist/v2/overlay-engine.d.ts +24 -0
  241. package/dist/v2/overlay-engine.js +150 -0
  242. package/dist/v2/postcondition.d.ts +16 -0
  243. package/dist/v2/postcondition.js +249 -0
  244. package/dist/v2/program-patcher.d.ts +25 -0
  245. package/dist/v2/program-patcher.js +44 -0
  246. package/dist/v2/recovery-chain.d.ts +30 -0
  247. package/dist/v2/recovery-chain.js +368 -0
  248. package/dist/v2/schema.d.ts +2580 -0
  249. package/dist/v2/schema.js +295 -0
  250. package/dist/v2/selector-resolver.d.ts +34 -0
  251. package/dist/v2/selector-resolver.js +181 -0
  252. package/dist/v2/semantic-resolver.d.ts +35 -0
  253. package/dist/v2/semantic-resolver.js +161 -0
  254. package/dist/v2/smart-wait.d.ts +27 -0
  255. package/dist/v2/smart-wait.js +81 -0
  256. package/dist/v2/types.d.ts +444 -0
  257. package/dist/v2/types.js +19 -0
  258. package/dist/v2/web-playwright-local.d.ts +69 -0
  259. package/dist/v2/web-playwright-local.js +392 -0
  260. package/dist/version.d.ts +1 -0
  261. package/dist/version.js +5 -0
  262. package/dist/video-agent.js +18 -13
  263. package/dist/video-planner.js +2 -1
  264. package/dist/video-prompts.js +3 -3
  265. package/dist/web-playwright-local.d.ts +126 -0
  266. package/dist/web-playwright-local.js +819 -0
  267. package/dist/ws-auth.js +4 -1
  268. package/dist/ws-broadcast.d.ts +34 -0
  269. package/dist/ws-broadcast.js +85 -0
  270. package/dist/ws-connection-limits.d.ts +12 -0
  271. package/dist/ws-connection-limits.js +44 -0
  272. package/dist/ws-handler-utils.d.ts +32 -0
  273. package/dist/ws-handler-utils.js +139 -0
  274. package/dist/ws-handler.js +294 -164
  275. package/dist/ws-metrics-server.d.ts +9 -0
  276. package/dist/ws-metrics-server.js +31 -0
  277. package/dist/ws-server.js +41 -1
  278. package/package.json +51 -34
@@ -0,0 +1,2580 @@
1
+ /**
2
+ * Capture Agent — Zod Validation Schemas
3
+ *
4
+ * Validates ExecutionProgram at compile output (server) and CLI input boundaries.
5
+ */
6
+ import { z } from 'zod';
7
+ import type { ExecutionProgram, ExecutionOpcode } from './types.js';
8
+ export declare const PostconditionSpecSchema: z.ZodObject<{
9
+ type: z.ZodEnum<{
10
+ route_matches: "route_matches";
11
+ element_visible: "element_visible";
12
+ element_absent: "element_absent";
13
+ text_contains: "text_contains";
14
+ overlay_dismissed: "overlay_dismissed";
15
+ screenshot_stable: "screenshot_stable";
16
+ any_change: "any_change";
17
+ always: "always";
18
+ }>;
19
+ pattern: z.ZodOptional<z.ZodString>;
20
+ selector: z.ZodOptional<z.ZodString>;
21
+ text: z.ZodOptional<z.ZodString>;
22
+ threshold: z.ZodOptional<z.ZodNumber>;
23
+ waitMs: z.ZodOptional<z.ZodNumber>;
24
+ }, z.core.$strip>;
25
+ export declare const RecoveryPolicySchema: z.ZodObject<{
26
+ retries: z.ZodNumber;
27
+ useSelectorMemory: z.ZodBoolean;
28
+ useAltInteraction: z.ZodBoolean;
29
+ allowReload: z.ZodBoolean;
30
+ allowHealer: z.ZodBoolean;
31
+ }, z.core.$strip>;
32
+ export declare const ExecutionOpcodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
33
+ url: z.ZodString;
34
+ description: z.ZodString;
35
+ postcondition: z.ZodObject<{
36
+ type: z.ZodEnum<{
37
+ route_matches: "route_matches";
38
+ element_visible: "element_visible";
39
+ element_absent: "element_absent";
40
+ text_contains: "text_contains";
41
+ overlay_dismissed: "overlay_dismissed";
42
+ screenshot_stable: "screenshot_stable";
43
+ any_change: "any_change";
44
+ always: "always";
45
+ }>;
46
+ pattern: z.ZodOptional<z.ZodString>;
47
+ selector: z.ZodOptional<z.ZodString>;
48
+ text: z.ZodOptional<z.ZodString>;
49
+ threshold: z.ZodOptional<z.ZodNumber>;
50
+ waitMs: z.ZodOptional<z.ZodNumber>;
51
+ }, z.core.$strip>;
52
+ recovery: z.ZodObject<{
53
+ retries: z.ZodNumber;
54
+ useSelectorMemory: z.ZodBoolean;
55
+ useAltInteraction: z.ZodBoolean;
56
+ allowReload: z.ZodBoolean;
57
+ allowHealer: z.ZodBoolean;
58
+ }, z.core.$strip>;
59
+ timeoutMs: z.ZodNumber;
60
+ maxFailures: z.ZodNumber;
61
+ kind: z.ZodLiteral<"NAVIGATE">;
62
+ }, z.core.$strip>, z.ZodObject<{
63
+ description: z.ZodString;
64
+ postcondition: z.ZodObject<{
65
+ type: z.ZodEnum<{
66
+ route_matches: "route_matches";
67
+ element_visible: "element_visible";
68
+ element_absent: "element_absent";
69
+ text_contains: "text_contains";
70
+ overlay_dismissed: "overlay_dismissed";
71
+ screenshot_stable: "screenshot_stable";
72
+ any_change: "any_change";
73
+ always: "always";
74
+ }>;
75
+ pattern: z.ZodOptional<z.ZodString>;
76
+ selector: z.ZodOptional<z.ZodString>;
77
+ text: z.ZodOptional<z.ZodString>;
78
+ threshold: z.ZodOptional<z.ZodNumber>;
79
+ waitMs: z.ZodOptional<z.ZodNumber>;
80
+ }, z.core.$strip>;
81
+ recovery: z.ZodObject<{
82
+ retries: z.ZodNumber;
83
+ useSelectorMemory: z.ZodBoolean;
84
+ useAltInteraction: z.ZodBoolean;
85
+ allowReload: z.ZodBoolean;
86
+ allowHealer: z.ZodBoolean;
87
+ }, z.core.$strip>;
88
+ timeoutMs: z.ZodNumber;
89
+ maxFailures: z.ZodNumber;
90
+ kind: z.ZodLiteral<"DISMISS_OVERLAYS">;
91
+ }, z.core.$strip>, z.ZodObject<{
92
+ urlPattern: z.ZodString;
93
+ description: z.ZodString;
94
+ postcondition: z.ZodObject<{
95
+ type: z.ZodEnum<{
96
+ route_matches: "route_matches";
97
+ element_visible: "element_visible";
98
+ element_absent: "element_absent";
99
+ text_contains: "text_contains";
100
+ overlay_dismissed: "overlay_dismissed";
101
+ screenshot_stable: "screenshot_stable";
102
+ any_change: "any_change";
103
+ always: "always";
104
+ }>;
105
+ pattern: z.ZodOptional<z.ZodString>;
106
+ selector: z.ZodOptional<z.ZodString>;
107
+ text: z.ZodOptional<z.ZodString>;
108
+ threshold: z.ZodOptional<z.ZodNumber>;
109
+ waitMs: z.ZodOptional<z.ZodNumber>;
110
+ }, z.core.$strip>;
111
+ recovery: z.ZodObject<{
112
+ retries: z.ZodNumber;
113
+ useSelectorMemory: z.ZodBoolean;
114
+ useAltInteraction: z.ZodBoolean;
115
+ allowReload: z.ZodBoolean;
116
+ allowHealer: z.ZodBoolean;
117
+ }, z.core.$strip>;
118
+ timeoutMs: z.ZodNumber;
119
+ maxFailures: z.ZodNumber;
120
+ kind: z.ZodLiteral<"ASSERT_ROUTE">;
121
+ }, z.core.$strip>, z.ZodObject<{
122
+ selectors: z.ZodArray<z.ZodString>;
123
+ matchAll: z.ZodBoolean;
124
+ description: z.ZodString;
125
+ postcondition: z.ZodObject<{
126
+ type: z.ZodEnum<{
127
+ route_matches: "route_matches";
128
+ element_visible: "element_visible";
129
+ element_absent: "element_absent";
130
+ text_contains: "text_contains";
131
+ overlay_dismissed: "overlay_dismissed";
132
+ screenshot_stable: "screenshot_stable";
133
+ any_change: "any_change";
134
+ always: "always";
135
+ }>;
136
+ pattern: z.ZodOptional<z.ZodString>;
137
+ selector: z.ZodOptional<z.ZodString>;
138
+ text: z.ZodOptional<z.ZodString>;
139
+ threshold: z.ZodOptional<z.ZodNumber>;
140
+ waitMs: z.ZodOptional<z.ZodNumber>;
141
+ }, z.core.$strip>;
142
+ recovery: z.ZodObject<{
143
+ retries: z.ZodNumber;
144
+ useSelectorMemory: z.ZodBoolean;
145
+ useAltInteraction: z.ZodBoolean;
146
+ allowReload: z.ZodBoolean;
147
+ allowHealer: z.ZodBoolean;
148
+ }, z.core.$strip>;
149
+ timeoutMs: z.ZodNumber;
150
+ maxFailures: z.ZodNumber;
151
+ kind: z.ZodLiteral<"ASSERT_SURFACE">;
152
+ }, z.core.$strip>, z.ZodObject<{
153
+ selector: z.ZodString;
154
+ target: z.ZodOptional<z.ZodObject<{
155
+ text: z.ZodOptional<z.ZodString>;
156
+ role: z.ZodOptional<z.ZodString>;
157
+ label: z.ZodOptional<z.ZodString>;
158
+ near: z.ZodOptional<z.ZodString>;
159
+ placeholder: z.ZodOptional<z.ZodString>;
160
+ exact: z.ZodOptional<z.ZodBoolean>;
161
+ }, z.core.$strip>>;
162
+ fingerprint: z.ZodOptional<z.ZodString>;
163
+ selectorAlternates: z.ZodOptional<z.ZodArray<z.ZodString>>;
164
+ description: z.ZodString;
165
+ postcondition: z.ZodObject<{
166
+ type: z.ZodEnum<{
167
+ route_matches: "route_matches";
168
+ element_visible: "element_visible";
169
+ element_absent: "element_absent";
170
+ text_contains: "text_contains";
171
+ overlay_dismissed: "overlay_dismissed";
172
+ screenshot_stable: "screenshot_stable";
173
+ any_change: "any_change";
174
+ always: "always";
175
+ }>;
176
+ pattern: z.ZodOptional<z.ZodString>;
177
+ selector: z.ZodOptional<z.ZodString>;
178
+ text: z.ZodOptional<z.ZodString>;
179
+ threshold: z.ZodOptional<z.ZodNumber>;
180
+ waitMs: z.ZodOptional<z.ZodNumber>;
181
+ }, z.core.$strip>;
182
+ recovery: z.ZodObject<{
183
+ retries: z.ZodNumber;
184
+ useSelectorMemory: z.ZodBoolean;
185
+ useAltInteraction: z.ZodBoolean;
186
+ allowReload: z.ZodBoolean;
187
+ allowHealer: z.ZodBoolean;
188
+ }, z.core.$strip>;
189
+ timeoutMs: z.ZodNumber;
190
+ maxFailures: z.ZodNumber;
191
+ kind: z.ZodLiteral<"CLICK">;
192
+ }, z.core.$strip>, z.ZodObject<{
193
+ selector: z.ZodString;
194
+ target: z.ZodOptional<z.ZodObject<{
195
+ text: z.ZodOptional<z.ZodString>;
196
+ role: z.ZodOptional<z.ZodString>;
197
+ label: z.ZodOptional<z.ZodString>;
198
+ near: z.ZodOptional<z.ZodString>;
199
+ placeholder: z.ZodOptional<z.ZodString>;
200
+ exact: z.ZodOptional<z.ZodBoolean>;
201
+ }, z.core.$strip>>;
202
+ text: z.ZodString;
203
+ clearFirst: z.ZodBoolean;
204
+ fingerprint: z.ZodOptional<z.ZodString>;
205
+ selectorAlternates: z.ZodOptional<z.ZodArray<z.ZodString>>;
206
+ description: z.ZodString;
207
+ postcondition: z.ZodObject<{
208
+ type: z.ZodEnum<{
209
+ route_matches: "route_matches";
210
+ element_visible: "element_visible";
211
+ element_absent: "element_absent";
212
+ text_contains: "text_contains";
213
+ overlay_dismissed: "overlay_dismissed";
214
+ screenshot_stable: "screenshot_stable";
215
+ any_change: "any_change";
216
+ always: "always";
217
+ }>;
218
+ pattern: z.ZodOptional<z.ZodString>;
219
+ selector: z.ZodOptional<z.ZodString>;
220
+ text: z.ZodOptional<z.ZodString>;
221
+ threshold: z.ZodOptional<z.ZodNumber>;
222
+ waitMs: z.ZodOptional<z.ZodNumber>;
223
+ }, z.core.$strip>;
224
+ recovery: z.ZodObject<{
225
+ retries: z.ZodNumber;
226
+ useSelectorMemory: z.ZodBoolean;
227
+ useAltInteraction: z.ZodBoolean;
228
+ allowReload: z.ZodBoolean;
229
+ allowHealer: z.ZodBoolean;
230
+ }, z.core.$strip>;
231
+ timeoutMs: z.ZodNumber;
232
+ maxFailures: z.ZodNumber;
233
+ kind: z.ZodLiteral<"TYPE">;
234
+ }, z.core.$strip>, z.ZodObject<{
235
+ key: z.ZodString;
236
+ description: z.ZodString;
237
+ postcondition: z.ZodObject<{
238
+ type: z.ZodEnum<{
239
+ route_matches: "route_matches";
240
+ element_visible: "element_visible";
241
+ element_absent: "element_absent";
242
+ text_contains: "text_contains";
243
+ overlay_dismissed: "overlay_dismissed";
244
+ screenshot_stable: "screenshot_stable";
245
+ any_change: "any_change";
246
+ always: "always";
247
+ }>;
248
+ pattern: z.ZodOptional<z.ZodString>;
249
+ selector: z.ZodOptional<z.ZodString>;
250
+ text: z.ZodOptional<z.ZodString>;
251
+ threshold: z.ZodOptional<z.ZodNumber>;
252
+ waitMs: z.ZodOptional<z.ZodNumber>;
253
+ }, z.core.$strip>;
254
+ recovery: z.ZodObject<{
255
+ retries: z.ZodNumber;
256
+ useSelectorMemory: z.ZodBoolean;
257
+ useAltInteraction: z.ZodBoolean;
258
+ allowReload: z.ZodBoolean;
259
+ allowHealer: z.ZodBoolean;
260
+ }, z.core.$strip>;
261
+ timeoutMs: z.ZodNumber;
262
+ maxFailures: z.ZodNumber;
263
+ kind: z.ZodLiteral<"PRESS_KEY">;
264
+ }, z.core.$strip>, z.ZodObject<{
265
+ selector: z.ZodOptional<z.ZodString>;
266
+ target: z.ZodOptional<z.ZodObject<{
267
+ text: z.ZodOptional<z.ZodString>;
268
+ role: z.ZodOptional<z.ZodString>;
269
+ label: z.ZodOptional<z.ZodString>;
270
+ near: z.ZodOptional<z.ZodString>;
271
+ placeholder: z.ZodOptional<z.ZodString>;
272
+ exact: z.ZodOptional<z.ZodBoolean>;
273
+ }, z.core.$strip>>;
274
+ state: z.ZodEnum<{
275
+ visible: "visible";
276
+ attached: "attached";
277
+ }>;
278
+ description: z.ZodString;
279
+ postcondition: z.ZodObject<{
280
+ type: z.ZodEnum<{
281
+ route_matches: "route_matches";
282
+ element_visible: "element_visible";
283
+ element_absent: "element_absent";
284
+ text_contains: "text_contains";
285
+ overlay_dismissed: "overlay_dismissed";
286
+ screenshot_stable: "screenshot_stable";
287
+ any_change: "any_change";
288
+ always: "always";
289
+ }>;
290
+ pattern: z.ZodOptional<z.ZodString>;
291
+ selector: z.ZodOptional<z.ZodString>;
292
+ text: z.ZodOptional<z.ZodString>;
293
+ threshold: z.ZodOptional<z.ZodNumber>;
294
+ waitMs: z.ZodOptional<z.ZodNumber>;
295
+ }, z.core.$strip>;
296
+ recovery: z.ZodObject<{
297
+ retries: z.ZodNumber;
298
+ useSelectorMemory: z.ZodBoolean;
299
+ useAltInteraction: z.ZodBoolean;
300
+ allowReload: z.ZodBoolean;
301
+ allowHealer: z.ZodBoolean;
302
+ }, z.core.$strip>;
303
+ timeoutMs: z.ZodNumber;
304
+ maxFailures: z.ZodNumber;
305
+ kind: z.ZodLiteral<"WAIT_FOR">;
306
+ }, z.core.$strip>, z.ZodObject<{
307
+ locale: z.ZodString;
308
+ method: z.ZodEnum<{
309
+ browser_context: "browser_context";
310
+ ui_interaction: "ui_interaction";
311
+ storage: "storage";
312
+ }>;
313
+ selector: z.ZodOptional<z.ZodString>;
314
+ storageHints: z.ZodOptional<z.ZodArray<z.ZodObject<{
315
+ storage: z.ZodEnum<{
316
+ localStorage: "localStorage";
317
+ sessionStorage: "sessionStorage";
318
+ }>;
319
+ key: z.ZodString;
320
+ value: z.ZodString;
321
+ }, z.core.$strip>>>;
322
+ description: z.ZodString;
323
+ postcondition: z.ZodObject<{
324
+ type: z.ZodEnum<{
325
+ route_matches: "route_matches";
326
+ element_visible: "element_visible";
327
+ element_absent: "element_absent";
328
+ text_contains: "text_contains";
329
+ overlay_dismissed: "overlay_dismissed";
330
+ screenshot_stable: "screenshot_stable";
331
+ any_change: "any_change";
332
+ always: "always";
333
+ }>;
334
+ pattern: z.ZodOptional<z.ZodString>;
335
+ selector: z.ZodOptional<z.ZodString>;
336
+ text: z.ZodOptional<z.ZodString>;
337
+ threshold: z.ZodOptional<z.ZodNumber>;
338
+ waitMs: z.ZodOptional<z.ZodNumber>;
339
+ }, z.core.$strip>;
340
+ recovery: z.ZodObject<{
341
+ retries: z.ZodNumber;
342
+ useSelectorMemory: z.ZodBoolean;
343
+ useAltInteraction: z.ZodBoolean;
344
+ allowReload: z.ZodBoolean;
345
+ allowHealer: z.ZodBoolean;
346
+ }, z.core.$strip>;
347
+ timeoutMs: z.ZodNumber;
348
+ maxFailures: z.ZodNumber;
349
+ kind: z.ZodLiteral<"SET_LOCALE">;
350
+ }, z.core.$strip>, z.ZodObject<{
351
+ theme: z.ZodEnum<{
352
+ light: "light";
353
+ dark: "dark";
354
+ }>;
355
+ method: z.ZodEnum<{
356
+ ui_interaction: "ui_interaction";
357
+ storage: "storage";
358
+ color_scheme: "color_scheme";
359
+ }>;
360
+ selector: z.ZodOptional<z.ZodString>;
361
+ storageHints: z.ZodOptional<z.ZodArray<z.ZodObject<{
362
+ storage: z.ZodEnum<{
363
+ localStorage: "localStorage";
364
+ sessionStorage: "sessionStorage";
365
+ }>;
366
+ key: z.ZodString;
367
+ value: z.ZodString;
368
+ }, z.core.$strip>>>;
369
+ description: z.ZodString;
370
+ postcondition: z.ZodObject<{
371
+ type: z.ZodEnum<{
372
+ route_matches: "route_matches";
373
+ element_visible: "element_visible";
374
+ element_absent: "element_absent";
375
+ text_contains: "text_contains";
376
+ overlay_dismissed: "overlay_dismissed";
377
+ screenshot_stable: "screenshot_stable";
378
+ any_change: "any_change";
379
+ always: "always";
380
+ }>;
381
+ pattern: z.ZodOptional<z.ZodString>;
382
+ selector: z.ZodOptional<z.ZodString>;
383
+ text: z.ZodOptional<z.ZodString>;
384
+ threshold: z.ZodOptional<z.ZodNumber>;
385
+ waitMs: z.ZodOptional<z.ZodNumber>;
386
+ }, z.core.$strip>;
387
+ recovery: z.ZodObject<{
388
+ retries: z.ZodNumber;
389
+ useSelectorMemory: z.ZodBoolean;
390
+ useAltInteraction: z.ZodBoolean;
391
+ allowReload: z.ZodBoolean;
392
+ allowHealer: z.ZodBoolean;
393
+ }, z.core.$strip>;
394
+ timeoutMs: z.ZodNumber;
395
+ maxFailures: z.ZodNumber;
396
+ kind: z.ZodLiteral<"SET_THEME">;
397
+ }, z.core.$strip>, z.ZodObject<{
398
+ direction: z.ZodEnum<{
399
+ up: "up";
400
+ down: "down";
401
+ left: "left";
402
+ right: "right";
403
+ }>;
404
+ amount: z.ZodOptional<z.ZodNumber>;
405
+ targetSelector: z.ZodOptional<z.ZodString>;
406
+ target: z.ZodOptional<z.ZodObject<{
407
+ text: z.ZodOptional<z.ZodString>;
408
+ role: z.ZodOptional<z.ZodString>;
409
+ label: z.ZodOptional<z.ZodString>;
410
+ near: z.ZodOptional<z.ZodString>;
411
+ placeholder: z.ZodOptional<z.ZodString>;
412
+ exact: z.ZodOptional<z.ZodBoolean>;
413
+ }, z.core.$strip>>;
414
+ description: z.ZodString;
415
+ postcondition: z.ZodObject<{
416
+ type: z.ZodEnum<{
417
+ route_matches: "route_matches";
418
+ element_visible: "element_visible";
419
+ element_absent: "element_absent";
420
+ text_contains: "text_contains";
421
+ overlay_dismissed: "overlay_dismissed";
422
+ screenshot_stable: "screenshot_stable";
423
+ any_change: "any_change";
424
+ always: "always";
425
+ }>;
426
+ pattern: z.ZodOptional<z.ZodString>;
427
+ selector: z.ZodOptional<z.ZodString>;
428
+ text: z.ZodOptional<z.ZodString>;
429
+ threshold: z.ZodOptional<z.ZodNumber>;
430
+ waitMs: z.ZodOptional<z.ZodNumber>;
431
+ }, z.core.$strip>;
432
+ recovery: z.ZodObject<{
433
+ retries: z.ZodNumber;
434
+ useSelectorMemory: z.ZodBoolean;
435
+ useAltInteraction: z.ZodBoolean;
436
+ allowReload: z.ZodBoolean;
437
+ allowHealer: z.ZodBoolean;
438
+ }, z.core.$strip>;
439
+ timeoutMs: z.ZodNumber;
440
+ maxFailures: z.ZodNumber;
441
+ kind: z.ZodLiteral<"SCROLL">;
442
+ }, z.core.$strip>, z.ZodObject<{
443
+ captureId: z.ZodOptional<z.ZodString>;
444
+ captureName: z.ZodOptional<z.ZodString>;
445
+ elementSelector: z.ZodOptional<z.ZodString>;
446
+ description: z.ZodString;
447
+ postcondition: z.ZodObject<{
448
+ type: z.ZodEnum<{
449
+ route_matches: "route_matches";
450
+ element_visible: "element_visible";
451
+ element_absent: "element_absent";
452
+ text_contains: "text_contains";
453
+ overlay_dismissed: "overlay_dismissed";
454
+ screenshot_stable: "screenshot_stable";
455
+ any_change: "any_change";
456
+ always: "always";
457
+ }>;
458
+ pattern: z.ZodOptional<z.ZodString>;
459
+ selector: z.ZodOptional<z.ZodString>;
460
+ text: z.ZodOptional<z.ZodString>;
461
+ threshold: z.ZodOptional<z.ZodNumber>;
462
+ waitMs: z.ZodOptional<z.ZodNumber>;
463
+ }, z.core.$strip>;
464
+ recovery: z.ZodObject<{
465
+ retries: z.ZodNumber;
466
+ useSelectorMemory: z.ZodBoolean;
467
+ useAltInteraction: z.ZodBoolean;
468
+ allowReload: z.ZodBoolean;
469
+ allowHealer: z.ZodBoolean;
470
+ }, z.core.$strip>;
471
+ timeoutMs: z.ZodNumber;
472
+ maxFailures: z.ZodNumber;
473
+ kind: z.ZodLiteral<"CAPTURE_SCREENSHOT">;
474
+ }, z.core.$strip>, z.ZodObject<{
475
+ clipId: z.ZodOptional<z.ZodString>;
476
+ clipName: z.ZodOptional<z.ZodString>;
477
+ description: z.ZodString;
478
+ postcondition: z.ZodObject<{
479
+ type: z.ZodEnum<{
480
+ route_matches: "route_matches";
481
+ element_visible: "element_visible";
482
+ element_absent: "element_absent";
483
+ text_contains: "text_contains";
484
+ overlay_dismissed: "overlay_dismissed";
485
+ screenshot_stable: "screenshot_stable";
486
+ any_change: "any_change";
487
+ always: "always";
488
+ }>;
489
+ pattern: z.ZodOptional<z.ZodString>;
490
+ selector: z.ZodOptional<z.ZodString>;
491
+ text: z.ZodOptional<z.ZodString>;
492
+ threshold: z.ZodOptional<z.ZodNumber>;
493
+ waitMs: z.ZodOptional<z.ZodNumber>;
494
+ }, z.core.$strip>;
495
+ recovery: z.ZodObject<{
496
+ retries: z.ZodNumber;
497
+ useSelectorMemory: z.ZodBoolean;
498
+ useAltInteraction: z.ZodBoolean;
499
+ allowReload: z.ZodBoolean;
500
+ allowHealer: z.ZodBoolean;
501
+ }, z.core.$strip>;
502
+ timeoutMs: z.ZodNumber;
503
+ maxFailures: z.ZodNumber;
504
+ kind: z.ZodLiteral<"BEGIN_CLIP">;
505
+ }, z.core.$strip>, z.ZodObject<{
506
+ clipId: z.ZodOptional<z.ZodString>;
507
+ clipName: z.ZodOptional<z.ZodString>;
508
+ description: z.ZodString;
509
+ postcondition: z.ZodObject<{
510
+ type: z.ZodEnum<{
511
+ route_matches: "route_matches";
512
+ element_visible: "element_visible";
513
+ element_absent: "element_absent";
514
+ text_contains: "text_contains";
515
+ overlay_dismissed: "overlay_dismissed";
516
+ screenshot_stable: "screenshot_stable";
517
+ any_change: "any_change";
518
+ always: "always";
519
+ }>;
520
+ pattern: z.ZodOptional<z.ZodString>;
521
+ selector: z.ZodOptional<z.ZodString>;
522
+ text: z.ZodOptional<z.ZodString>;
523
+ threshold: z.ZodOptional<z.ZodNumber>;
524
+ waitMs: z.ZodOptional<z.ZodNumber>;
525
+ }, z.core.$strip>;
526
+ recovery: z.ZodObject<{
527
+ retries: z.ZodNumber;
528
+ useSelectorMemory: z.ZodBoolean;
529
+ useAltInteraction: z.ZodBoolean;
530
+ allowReload: z.ZodBoolean;
531
+ allowHealer: z.ZodBoolean;
532
+ }, z.core.$strip>;
533
+ timeoutMs: z.ZodNumber;
534
+ maxFailures: z.ZodNumber;
535
+ kind: z.ZodLiteral<"END_CLIP">;
536
+ }, z.core.$strip>], "kind">;
537
+ export declare const VariantSpecSchema: z.ZodObject<{
538
+ id: z.ZodString;
539
+ viewport: z.ZodObject<{
540
+ width: z.ZodNumber;
541
+ height: z.ZodNumber;
542
+ }, z.core.$strip>;
543
+ deviceScaleFactor: z.ZodOptional<z.ZodNumber>;
544
+ locale: z.ZodOptional<z.ZodString>;
545
+ theme: z.ZodOptional<z.ZodEnum<{
546
+ light: "light";
547
+ dark: "dark";
548
+ }>>;
549
+ targetId: z.ZodOptional<z.ZodString>;
550
+ targetLabel: z.ZodOptional<z.ZodString>;
551
+ deviceFrame: z.ZodOptional<z.ZodString>;
552
+ }, z.core.$strip>;
553
+ export declare const PreconditionSpecSchema: z.ZodObject<{
554
+ auth: z.ZodEnum<{
555
+ authenticated: "authenticated";
556
+ anonymous: "anonymous";
557
+ any: "any";
558
+ }>;
559
+ credentialsId: z.ZodOptional<z.ZodString>;
560
+ storageState: z.ZodOptional<z.ZodAny>;
561
+ sessionStorage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
562
+ cookies: z.ZodOptional<z.ZodArray<z.ZodObject<{
563
+ name: z.ZodString;
564
+ value: z.ZodString;
565
+ domain: z.ZodString;
566
+ path: z.ZodOptional<z.ZodString>;
567
+ }, z.core.$strip>>>;
568
+ }, z.core.$strip>;
569
+ export declare const ArtifactSpecSchema: z.ZodObject<{
570
+ mediaMode: z.ZodEnum<{
571
+ clip: "clip";
572
+ screenshot: "screenshot";
573
+ }>;
574
+ format: z.ZodOptional<z.ZodObject<{
575
+ clipFormat: z.ZodOptional<z.ZodEnum<{
576
+ gif: "gif";
577
+ mp4: "mp4";
578
+ both: "both";
579
+ }>>;
580
+ screenshotFormat: z.ZodOptional<z.ZodEnum<{
581
+ png: "png";
582
+ jpeg: "jpeg";
583
+ }>>;
584
+ }, z.core.$strip>>;
585
+ cursorTheme: z.ZodOptional<z.ZodEnum<{
586
+ minimal: "minimal";
587
+ macos: "macos";
588
+ windows: "windows";
589
+ }>>;
590
+ applyMockup: z.ZodOptional<z.ZodBoolean>;
591
+ applyStatusBar: z.ZodOptional<z.ZodBoolean>;
592
+ }, z.core.$strip>;
593
+ export declare const ExecutionProgramSchema: z.ZodObject<{
594
+ presetId: z.ZodString;
595
+ programVersion: z.ZodNumber;
596
+ mediaMode: z.ZodEnum<{
597
+ clip: "clip";
598
+ screenshot: "screenshot";
599
+ }>;
600
+ baseUrl: z.ZodString;
601
+ variants: z.ZodArray<z.ZodObject<{
602
+ id: z.ZodString;
603
+ viewport: z.ZodObject<{
604
+ width: z.ZodNumber;
605
+ height: z.ZodNumber;
606
+ }, z.core.$strip>;
607
+ deviceScaleFactor: z.ZodOptional<z.ZodNumber>;
608
+ locale: z.ZodOptional<z.ZodString>;
609
+ theme: z.ZodOptional<z.ZodEnum<{
610
+ light: "light";
611
+ dark: "dark";
612
+ }>>;
613
+ targetId: z.ZodOptional<z.ZodString>;
614
+ targetLabel: z.ZodOptional<z.ZodString>;
615
+ deviceFrame: z.ZodOptional<z.ZodString>;
616
+ }, z.core.$strip>>;
617
+ preconditions: z.ZodObject<{
618
+ auth: z.ZodEnum<{
619
+ authenticated: "authenticated";
620
+ anonymous: "anonymous";
621
+ any: "any";
622
+ }>;
623
+ credentialsId: z.ZodOptional<z.ZodString>;
624
+ storageState: z.ZodOptional<z.ZodAny>;
625
+ sessionStorage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
626
+ cookies: z.ZodOptional<z.ZodArray<z.ZodObject<{
627
+ name: z.ZodString;
628
+ value: z.ZodString;
629
+ domain: z.ZodString;
630
+ path: z.ZodOptional<z.ZodString>;
631
+ }, z.core.$strip>>>;
632
+ }, z.core.$strip>;
633
+ steps: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
634
+ url: z.ZodString;
635
+ description: z.ZodString;
636
+ postcondition: z.ZodObject<{
637
+ type: z.ZodEnum<{
638
+ route_matches: "route_matches";
639
+ element_visible: "element_visible";
640
+ element_absent: "element_absent";
641
+ text_contains: "text_contains";
642
+ overlay_dismissed: "overlay_dismissed";
643
+ screenshot_stable: "screenshot_stable";
644
+ any_change: "any_change";
645
+ always: "always";
646
+ }>;
647
+ pattern: z.ZodOptional<z.ZodString>;
648
+ selector: z.ZodOptional<z.ZodString>;
649
+ text: z.ZodOptional<z.ZodString>;
650
+ threshold: z.ZodOptional<z.ZodNumber>;
651
+ waitMs: z.ZodOptional<z.ZodNumber>;
652
+ }, z.core.$strip>;
653
+ recovery: z.ZodObject<{
654
+ retries: z.ZodNumber;
655
+ useSelectorMemory: z.ZodBoolean;
656
+ useAltInteraction: z.ZodBoolean;
657
+ allowReload: z.ZodBoolean;
658
+ allowHealer: z.ZodBoolean;
659
+ }, z.core.$strip>;
660
+ timeoutMs: z.ZodNumber;
661
+ maxFailures: z.ZodNumber;
662
+ kind: z.ZodLiteral<"NAVIGATE">;
663
+ }, z.core.$strip>, z.ZodObject<{
664
+ description: z.ZodString;
665
+ postcondition: z.ZodObject<{
666
+ type: z.ZodEnum<{
667
+ route_matches: "route_matches";
668
+ element_visible: "element_visible";
669
+ element_absent: "element_absent";
670
+ text_contains: "text_contains";
671
+ overlay_dismissed: "overlay_dismissed";
672
+ screenshot_stable: "screenshot_stable";
673
+ any_change: "any_change";
674
+ always: "always";
675
+ }>;
676
+ pattern: z.ZodOptional<z.ZodString>;
677
+ selector: z.ZodOptional<z.ZodString>;
678
+ text: z.ZodOptional<z.ZodString>;
679
+ threshold: z.ZodOptional<z.ZodNumber>;
680
+ waitMs: z.ZodOptional<z.ZodNumber>;
681
+ }, z.core.$strip>;
682
+ recovery: z.ZodObject<{
683
+ retries: z.ZodNumber;
684
+ useSelectorMemory: z.ZodBoolean;
685
+ useAltInteraction: z.ZodBoolean;
686
+ allowReload: z.ZodBoolean;
687
+ allowHealer: z.ZodBoolean;
688
+ }, z.core.$strip>;
689
+ timeoutMs: z.ZodNumber;
690
+ maxFailures: z.ZodNumber;
691
+ kind: z.ZodLiteral<"DISMISS_OVERLAYS">;
692
+ }, z.core.$strip>, z.ZodObject<{
693
+ urlPattern: z.ZodString;
694
+ description: z.ZodString;
695
+ postcondition: z.ZodObject<{
696
+ type: z.ZodEnum<{
697
+ route_matches: "route_matches";
698
+ element_visible: "element_visible";
699
+ element_absent: "element_absent";
700
+ text_contains: "text_contains";
701
+ overlay_dismissed: "overlay_dismissed";
702
+ screenshot_stable: "screenshot_stable";
703
+ any_change: "any_change";
704
+ always: "always";
705
+ }>;
706
+ pattern: z.ZodOptional<z.ZodString>;
707
+ selector: z.ZodOptional<z.ZodString>;
708
+ text: z.ZodOptional<z.ZodString>;
709
+ threshold: z.ZodOptional<z.ZodNumber>;
710
+ waitMs: z.ZodOptional<z.ZodNumber>;
711
+ }, z.core.$strip>;
712
+ recovery: z.ZodObject<{
713
+ retries: z.ZodNumber;
714
+ useSelectorMemory: z.ZodBoolean;
715
+ useAltInteraction: z.ZodBoolean;
716
+ allowReload: z.ZodBoolean;
717
+ allowHealer: z.ZodBoolean;
718
+ }, z.core.$strip>;
719
+ timeoutMs: z.ZodNumber;
720
+ maxFailures: z.ZodNumber;
721
+ kind: z.ZodLiteral<"ASSERT_ROUTE">;
722
+ }, z.core.$strip>, z.ZodObject<{
723
+ selectors: z.ZodArray<z.ZodString>;
724
+ matchAll: z.ZodBoolean;
725
+ description: z.ZodString;
726
+ postcondition: z.ZodObject<{
727
+ type: z.ZodEnum<{
728
+ route_matches: "route_matches";
729
+ element_visible: "element_visible";
730
+ element_absent: "element_absent";
731
+ text_contains: "text_contains";
732
+ overlay_dismissed: "overlay_dismissed";
733
+ screenshot_stable: "screenshot_stable";
734
+ any_change: "any_change";
735
+ always: "always";
736
+ }>;
737
+ pattern: z.ZodOptional<z.ZodString>;
738
+ selector: z.ZodOptional<z.ZodString>;
739
+ text: z.ZodOptional<z.ZodString>;
740
+ threshold: z.ZodOptional<z.ZodNumber>;
741
+ waitMs: z.ZodOptional<z.ZodNumber>;
742
+ }, z.core.$strip>;
743
+ recovery: z.ZodObject<{
744
+ retries: z.ZodNumber;
745
+ useSelectorMemory: z.ZodBoolean;
746
+ useAltInteraction: z.ZodBoolean;
747
+ allowReload: z.ZodBoolean;
748
+ allowHealer: z.ZodBoolean;
749
+ }, z.core.$strip>;
750
+ timeoutMs: z.ZodNumber;
751
+ maxFailures: z.ZodNumber;
752
+ kind: z.ZodLiteral<"ASSERT_SURFACE">;
753
+ }, z.core.$strip>, z.ZodObject<{
754
+ selector: z.ZodString;
755
+ target: z.ZodOptional<z.ZodObject<{
756
+ text: z.ZodOptional<z.ZodString>;
757
+ role: z.ZodOptional<z.ZodString>;
758
+ label: z.ZodOptional<z.ZodString>;
759
+ near: z.ZodOptional<z.ZodString>;
760
+ placeholder: z.ZodOptional<z.ZodString>;
761
+ exact: z.ZodOptional<z.ZodBoolean>;
762
+ }, z.core.$strip>>;
763
+ fingerprint: z.ZodOptional<z.ZodString>;
764
+ selectorAlternates: z.ZodOptional<z.ZodArray<z.ZodString>>;
765
+ description: z.ZodString;
766
+ postcondition: z.ZodObject<{
767
+ type: z.ZodEnum<{
768
+ route_matches: "route_matches";
769
+ element_visible: "element_visible";
770
+ element_absent: "element_absent";
771
+ text_contains: "text_contains";
772
+ overlay_dismissed: "overlay_dismissed";
773
+ screenshot_stable: "screenshot_stable";
774
+ any_change: "any_change";
775
+ always: "always";
776
+ }>;
777
+ pattern: z.ZodOptional<z.ZodString>;
778
+ selector: z.ZodOptional<z.ZodString>;
779
+ text: z.ZodOptional<z.ZodString>;
780
+ threshold: z.ZodOptional<z.ZodNumber>;
781
+ waitMs: z.ZodOptional<z.ZodNumber>;
782
+ }, z.core.$strip>;
783
+ recovery: z.ZodObject<{
784
+ retries: z.ZodNumber;
785
+ useSelectorMemory: z.ZodBoolean;
786
+ useAltInteraction: z.ZodBoolean;
787
+ allowReload: z.ZodBoolean;
788
+ allowHealer: z.ZodBoolean;
789
+ }, z.core.$strip>;
790
+ timeoutMs: z.ZodNumber;
791
+ maxFailures: z.ZodNumber;
792
+ kind: z.ZodLiteral<"CLICK">;
793
+ }, z.core.$strip>, z.ZodObject<{
794
+ selector: z.ZodString;
795
+ target: z.ZodOptional<z.ZodObject<{
796
+ text: z.ZodOptional<z.ZodString>;
797
+ role: z.ZodOptional<z.ZodString>;
798
+ label: z.ZodOptional<z.ZodString>;
799
+ near: z.ZodOptional<z.ZodString>;
800
+ placeholder: z.ZodOptional<z.ZodString>;
801
+ exact: z.ZodOptional<z.ZodBoolean>;
802
+ }, z.core.$strip>>;
803
+ text: z.ZodString;
804
+ clearFirst: z.ZodBoolean;
805
+ fingerprint: z.ZodOptional<z.ZodString>;
806
+ selectorAlternates: z.ZodOptional<z.ZodArray<z.ZodString>>;
807
+ description: z.ZodString;
808
+ postcondition: z.ZodObject<{
809
+ type: z.ZodEnum<{
810
+ route_matches: "route_matches";
811
+ element_visible: "element_visible";
812
+ element_absent: "element_absent";
813
+ text_contains: "text_contains";
814
+ overlay_dismissed: "overlay_dismissed";
815
+ screenshot_stable: "screenshot_stable";
816
+ any_change: "any_change";
817
+ always: "always";
818
+ }>;
819
+ pattern: z.ZodOptional<z.ZodString>;
820
+ selector: z.ZodOptional<z.ZodString>;
821
+ text: z.ZodOptional<z.ZodString>;
822
+ threshold: z.ZodOptional<z.ZodNumber>;
823
+ waitMs: z.ZodOptional<z.ZodNumber>;
824
+ }, z.core.$strip>;
825
+ recovery: z.ZodObject<{
826
+ retries: z.ZodNumber;
827
+ useSelectorMemory: z.ZodBoolean;
828
+ useAltInteraction: z.ZodBoolean;
829
+ allowReload: z.ZodBoolean;
830
+ allowHealer: z.ZodBoolean;
831
+ }, z.core.$strip>;
832
+ timeoutMs: z.ZodNumber;
833
+ maxFailures: z.ZodNumber;
834
+ kind: z.ZodLiteral<"TYPE">;
835
+ }, z.core.$strip>, z.ZodObject<{
836
+ key: z.ZodString;
837
+ description: z.ZodString;
838
+ postcondition: z.ZodObject<{
839
+ type: z.ZodEnum<{
840
+ route_matches: "route_matches";
841
+ element_visible: "element_visible";
842
+ element_absent: "element_absent";
843
+ text_contains: "text_contains";
844
+ overlay_dismissed: "overlay_dismissed";
845
+ screenshot_stable: "screenshot_stable";
846
+ any_change: "any_change";
847
+ always: "always";
848
+ }>;
849
+ pattern: z.ZodOptional<z.ZodString>;
850
+ selector: z.ZodOptional<z.ZodString>;
851
+ text: z.ZodOptional<z.ZodString>;
852
+ threshold: z.ZodOptional<z.ZodNumber>;
853
+ waitMs: z.ZodOptional<z.ZodNumber>;
854
+ }, z.core.$strip>;
855
+ recovery: z.ZodObject<{
856
+ retries: z.ZodNumber;
857
+ useSelectorMemory: z.ZodBoolean;
858
+ useAltInteraction: z.ZodBoolean;
859
+ allowReload: z.ZodBoolean;
860
+ allowHealer: z.ZodBoolean;
861
+ }, z.core.$strip>;
862
+ timeoutMs: z.ZodNumber;
863
+ maxFailures: z.ZodNumber;
864
+ kind: z.ZodLiteral<"PRESS_KEY">;
865
+ }, z.core.$strip>, z.ZodObject<{
866
+ selector: z.ZodOptional<z.ZodString>;
867
+ target: z.ZodOptional<z.ZodObject<{
868
+ text: z.ZodOptional<z.ZodString>;
869
+ role: z.ZodOptional<z.ZodString>;
870
+ label: z.ZodOptional<z.ZodString>;
871
+ near: z.ZodOptional<z.ZodString>;
872
+ placeholder: z.ZodOptional<z.ZodString>;
873
+ exact: z.ZodOptional<z.ZodBoolean>;
874
+ }, z.core.$strip>>;
875
+ state: z.ZodEnum<{
876
+ visible: "visible";
877
+ attached: "attached";
878
+ }>;
879
+ description: z.ZodString;
880
+ postcondition: z.ZodObject<{
881
+ type: z.ZodEnum<{
882
+ route_matches: "route_matches";
883
+ element_visible: "element_visible";
884
+ element_absent: "element_absent";
885
+ text_contains: "text_contains";
886
+ overlay_dismissed: "overlay_dismissed";
887
+ screenshot_stable: "screenshot_stable";
888
+ any_change: "any_change";
889
+ always: "always";
890
+ }>;
891
+ pattern: z.ZodOptional<z.ZodString>;
892
+ selector: z.ZodOptional<z.ZodString>;
893
+ text: z.ZodOptional<z.ZodString>;
894
+ threshold: z.ZodOptional<z.ZodNumber>;
895
+ waitMs: z.ZodOptional<z.ZodNumber>;
896
+ }, z.core.$strip>;
897
+ recovery: z.ZodObject<{
898
+ retries: z.ZodNumber;
899
+ useSelectorMemory: z.ZodBoolean;
900
+ useAltInteraction: z.ZodBoolean;
901
+ allowReload: z.ZodBoolean;
902
+ allowHealer: z.ZodBoolean;
903
+ }, z.core.$strip>;
904
+ timeoutMs: z.ZodNumber;
905
+ maxFailures: z.ZodNumber;
906
+ kind: z.ZodLiteral<"WAIT_FOR">;
907
+ }, z.core.$strip>, z.ZodObject<{
908
+ locale: z.ZodString;
909
+ method: z.ZodEnum<{
910
+ browser_context: "browser_context";
911
+ ui_interaction: "ui_interaction";
912
+ storage: "storage";
913
+ }>;
914
+ selector: z.ZodOptional<z.ZodString>;
915
+ storageHints: z.ZodOptional<z.ZodArray<z.ZodObject<{
916
+ storage: z.ZodEnum<{
917
+ localStorage: "localStorage";
918
+ sessionStorage: "sessionStorage";
919
+ }>;
920
+ key: z.ZodString;
921
+ value: z.ZodString;
922
+ }, z.core.$strip>>>;
923
+ description: z.ZodString;
924
+ postcondition: z.ZodObject<{
925
+ type: z.ZodEnum<{
926
+ route_matches: "route_matches";
927
+ element_visible: "element_visible";
928
+ element_absent: "element_absent";
929
+ text_contains: "text_contains";
930
+ overlay_dismissed: "overlay_dismissed";
931
+ screenshot_stable: "screenshot_stable";
932
+ any_change: "any_change";
933
+ always: "always";
934
+ }>;
935
+ pattern: z.ZodOptional<z.ZodString>;
936
+ selector: z.ZodOptional<z.ZodString>;
937
+ text: z.ZodOptional<z.ZodString>;
938
+ threshold: z.ZodOptional<z.ZodNumber>;
939
+ waitMs: z.ZodOptional<z.ZodNumber>;
940
+ }, z.core.$strip>;
941
+ recovery: z.ZodObject<{
942
+ retries: z.ZodNumber;
943
+ useSelectorMemory: z.ZodBoolean;
944
+ useAltInteraction: z.ZodBoolean;
945
+ allowReload: z.ZodBoolean;
946
+ allowHealer: z.ZodBoolean;
947
+ }, z.core.$strip>;
948
+ timeoutMs: z.ZodNumber;
949
+ maxFailures: z.ZodNumber;
950
+ kind: z.ZodLiteral<"SET_LOCALE">;
951
+ }, z.core.$strip>, z.ZodObject<{
952
+ theme: z.ZodEnum<{
953
+ light: "light";
954
+ dark: "dark";
955
+ }>;
956
+ method: z.ZodEnum<{
957
+ ui_interaction: "ui_interaction";
958
+ storage: "storage";
959
+ color_scheme: "color_scheme";
960
+ }>;
961
+ selector: z.ZodOptional<z.ZodString>;
962
+ storageHints: z.ZodOptional<z.ZodArray<z.ZodObject<{
963
+ storage: z.ZodEnum<{
964
+ localStorage: "localStorage";
965
+ sessionStorage: "sessionStorage";
966
+ }>;
967
+ key: z.ZodString;
968
+ value: z.ZodString;
969
+ }, z.core.$strip>>>;
970
+ description: z.ZodString;
971
+ postcondition: z.ZodObject<{
972
+ type: z.ZodEnum<{
973
+ route_matches: "route_matches";
974
+ element_visible: "element_visible";
975
+ element_absent: "element_absent";
976
+ text_contains: "text_contains";
977
+ overlay_dismissed: "overlay_dismissed";
978
+ screenshot_stable: "screenshot_stable";
979
+ any_change: "any_change";
980
+ always: "always";
981
+ }>;
982
+ pattern: z.ZodOptional<z.ZodString>;
983
+ selector: z.ZodOptional<z.ZodString>;
984
+ text: z.ZodOptional<z.ZodString>;
985
+ threshold: z.ZodOptional<z.ZodNumber>;
986
+ waitMs: z.ZodOptional<z.ZodNumber>;
987
+ }, z.core.$strip>;
988
+ recovery: z.ZodObject<{
989
+ retries: z.ZodNumber;
990
+ useSelectorMemory: z.ZodBoolean;
991
+ useAltInteraction: z.ZodBoolean;
992
+ allowReload: z.ZodBoolean;
993
+ allowHealer: z.ZodBoolean;
994
+ }, z.core.$strip>;
995
+ timeoutMs: z.ZodNumber;
996
+ maxFailures: z.ZodNumber;
997
+ kind: z.ZodLiteral<"SET_THEME">;
998
+ }, z.core.$strip>, z.ZodObject<{
999
+ direction: z.ZodEnum<{
1000
+ up: "up";
1001
+ down: "down";
1002
+ left: "left";
1003
+ right: "right";
1004
+ }>;
1005
+ amount: z.ZodOptional<z.ZodNumber>;
1006
+ targetSelector: z.ZodOptional<z.ZodString>;
1007
+ target: z.ZodOptional<z.ZodObject<{
1008
+ text: z.ZodOptional<z.ZodString>;
1009
+ role: z.ZodOptional<z.ZodString>;
1010
+ label: z.ZodOptional<z.ZodString>;
1011
+ near: z.ZodOptional<z.ZodString>;
1012
+ placeholder: z.ZodOptional<z.ZodString>;
1013
+ exact: z.ZodOptional<z.ZodBoolean>;
1014
+ }, z.core.$strip>>;
1015
+ description: z.ZodString;
1016
+ postcondition: z.ZodObject<{
1017
+ type: z.ZodEnum<{
1018
+ route_matches: "route_matches";
1019
+ element_visible: "element_visible";
1020
+ element_absent: "element_absent";
1021
+ text_contains: "text_contains";
1022
+ overlay_dismissed: "overlay_dismissed";
1023
+ screenshot_stable: "screenshot_stable";
1024
+ any_change: "any_change";
1025
+ always: "always";
1026
+ }>;
1027
+ pattern: z.ZodOptional<z.ZodString>;
1028
+ selector: z.ZodOptional<z.ZodString>;
1029
+ text: z.ZodOptional<z.ZodString>;
1030
+ threshold: z.ZodOptional<z.ZodNumber>;
1031
+ waitMs: z.ZodOptional<z.ZodNumber>;
1032
+ }, z.core.$strip>;
1033
+ recovery: z.ZodObject<{
1034
+ retries: z.ZodNumber;
1035
+ useSelectorMemory: z.ZodBoolean;
1036
+ useAltInteraction: z.ZodBoolean;
1037
+ allowReload: z.ZodBoolean;
1038
+ allowHealer: z.ZodBoolean;
1039
+ }, z.core.$strip>;
1040
+ timeoutMs: z.ZodNumber;
1041
+ maxFailures: z.ZodNumber;
1042
+ kind: z.ZodLiteral<"SCROLL">;
1043
+ }, z.core.$strip>, z.ZodObject<{
1044
+ captureId: z.ZodOptional<z.ZodString>;
1045
+ captureName: z.ZodOptional<z.ZodString>;
1046
+ elementSelector: z.ZodOptional<z.ZodString>;
1047
+ description: z.ZodString;
1048
+ postcondition: z.ZodObject<{
1049
+ type: z.ZodEnum<{
1050
+ route_matches: "route_matches";
1051
+ element_visible: "element_visible";
1052
+ element_absent: "element_absent";
1053
+ text_contains: "text_contains";
1054
+ overlay_dismissed: "overlay_dismissed";
1055
+ screenshot_stable: "screenshot_stable";
1056
+ any_change: "any_change";
1057
+ always: "always";
1058
+ }>;
1059
+ pattern: z.ZodOptional<z.ZodString>;
1060
+ selector: z.ZodOptional<z.ZodString>;
1061
+ text: z.ZodOptional<z.ZodString>;
1062
+ threshold: z.ZodOptional<z.ZodNumber>;
1063
+ waitMs: z.ZodOptional<z.ZodNumber>;
1064
+ }, z.core.$strip>;
1065
+ recovery: z.ZodObject<{
1066
+ retries: z.ZodNumber;
1067
+ useSelectorMemory: z.ZodBoolean;
1068
+ useAltInteraction: z.ZodBoolean;
1069
+ allowReload: z.ZodBoolean;
1070
+ allowHealer: z.ZodBoolean;
1071
+ }, z.core.$strip>;
1072
+ timeoutMs: z.ZodNumber;
1073
+ maxFailures: z.ZodNumber;
1074
+ kind: z.ZodLiteral<"CAPTURE_SCREENSHOT">;
1075
+ }, z.core.$strip>, z.ZodObject<{
1076
+ clipId: z.ZodOptional<z.ZodString>;
1077
+ clipName: z.ZodOptional<z.ZodString>;
1078
+ description: z.ZodString;
1079
+ postcondition: z.ZodObject<{
1080
+ type: z.ZodEnum<{
1081
+ route_matches: "route_matches";
1082
+ element_visible: "element_visible";
1083
+ element_absent: "element_absent";
1084
+ text_contains: "text_contains";
1085
+ overlay_dismissed: "overlay_dismissed";
1086
+ screenshot_stable: "screenshot_stable";
1087
+ any_change: "any_change";
1088
+ always: "always";
1089
+ }>;
1090
+ pattern: z.ZodOptional<z.ZodString>;
1091
+ selector: z.ZodOptional<z.ZodString>;
1092
+ text: z.ZodOptional<z.ZodString>;
1093
+ threshold: z.ZodOptional<z.ZodNumber>;
1094
+ waitMs: z.ZodOptional<z.ZodNumber>;
1095
+ }, z.core.$strip>;
1096
+ recovery: z.ZodObject<{
1097
+ retries: z.ZodNumber;
1098
+ useSelectorMemory: z.ZodBoolean;
1099
+ useAltInteraction: z.ZodBoolean;
1100
+ allowReload: z.ZodBoolean;
1101
+ allowHealer: z.ZodBoolean;
1102
+ }, z.core.$strip>;
1103
+ timeoutMs: z.ZodNumber;
1104
+ maxFailures: z.ZodNumber;
1105
+ kind: z.ZodLiteral<"BEGIN_CLIP">;
1106
+ }, z.core.$strip>, z.ZodObject<{
1107
+ clipId: z.ZodOptional<z.ZodString>;
1108
+ clipName: z.ZodOptional<z.ZodString>;
1109
+ description: z.ZodString;
1110
+ postcondition: z.ZodObject<{
1111
+ type: z.ZodEnum<{
1112
+ route_matches: "route_matches";
1113
+ element_visible: "element_visible";
1114
+ element_absent: "element_absent";
1115
+ text_contains: "text_contains";
1116
+ overlay_dismissed: "overlay_dismissed";
1117
+ screenshot_stable: "screenshot_stable";
1118
+ any_change: "any_change";
1119
+ always: "always";
1120
+ }>;
1121
+ pattern: z.ZodOptional<z.ZodString>;
1122
+ selector: z.ZodOptional<z.ZodString>;
1123
+ text: z.ZodOptional<z.ZodString>;
1124
+ threshold: z.ZodOptional<z.ZodNumber>;
1125
+ waitMs: z.ZodOptional<z.ZodNumber>;
1126
+ }, z.core.$strip>;
1127
+ recovery: z.ZodObject<{
1128
+ retries: z.ZodNumber;
1129
+ useSelectorMemory: z.ZodBoolean;
1130
+ useAltInteraction: z.ZodBoolean;
1131
+ allowReload: z.ZodBoolean;
1132
+ allowHealer: z.ZodBoolean;
1133
+ }, z.core.$strip>;
1134
+ timeoutMs: z.ZodNumber;
1135
+ maxFailures: z.ZodNumber;
1136
+ kind: z.ZodLiteral<"END_CLIP">;
1137
+ }, z.core.$strip>], "kind">>;
1138
+ artifactPlan: z.ZodObject<{
1139
+ mediaMode: z.ZodEnum<{
1140
+ clip: "clip";
1141
+ screenshot: "screenshot";
1142
+ }>;
1143
+ format: z.ZodOptional<z.ZodObject<{
1144
+ clipFormat: z.ZodOptional<z.ZodEnum<{
1145
+ gif: "gif";
1146
+ mp4: "mp4";
1147
+ both: "both";
1148
+ }>>;
1149
+ screenshotFormat: z.ZodOptional<z.ZodEnum<{
1150
+ png: "png";
1151
+ jpeg: "jpeg";
1152
+ }>>;
1153
+ }, z.core.$strip>>;
1154
+ cursorTheme: z.ZodOptional<z.ZodEnum<{
1155
+ minimal: "minimal";
1156
+ macos: "macos";
1157
+ windows: "windows";
1158
+ }>>;
1159
+ applyMockup: z.ZodOptional<z.ZodBoolean>;
1160
+ applyStatusBar: z.ZodOptional<z.ZodBoolean>;
1161
+ }, z.core.$strip>;
1162
+ compileFingerprint: z.ZodString;
1163
+ compiledAt: z.ZodString;
1164
+ compiledWith: z.ZodOptional<z.ZodString>;
1165
+ }, z.core.$strip>;
1166
+ export declare const HealerPatchSchema: z.ZodObject<{
1167
+ opcodeIndex: z.ZodNumber;
1168
+ originalOpcode: z.ZodDiscriminatedUnion<[z.ZodObject<{
1169
+ url: z.ZodString;
1170
+ description: z.ZodString;
1171
+ postcondition: z.ZodObject<{
1172
+ type: z.ZodEnum<{
1173
+ route_matches: "route_matches";
1174
+ element_visible: "element_visible";
1175
+ element_absent: "element_absent";
1176
+ text_contains: "text_contains";
1177
+ overlay_dismissed: "overlay_dismissed";
1178
+ screenshot_stable: "screenshot_stable";
1179
+ any_change: "any_change";
1180
+ always: "always";
1181
+ }>;
1182
+ pattern: z.ZodOptional<z.ZodString>;
1183
+ selector: z.ZodOptional<z.ZodString>;
1184
+ text: z.ZodOptional<z.ZodString>;
1185
+ threshold: z.ZodOptional<z.ZodNumber>;
1186
+ waitMs: z.ZodOptional<z.ZodNumber>;
1187
+ }, z.core.$strip>;
1188
+ recovery: z.ZodObject<{
1189
+ retries: z.ZodNumber;
1190
+ useSelectorMemory: z.ZodBoolean;
1191
+ useAltInteraction: z.ZodBoolean;
1192
+ allowReload: z.ZodBoolean;
1193
+ allowHealer: z.ZodBoolean;
1194
+ }, z.core.$strip>;
1195
+ timeoutMs: z.ZodNumber;
1196
+ maxFailures: z.ZodNumber;
1197
+ kind: z.ZodLiteral<"NAVIGATE">;
1198
+ }, z.core.$strip>, z.ZodObject<{
1199
+ description: z.ZodString;
1200
+ postcondition: z.ZodObject<{
1201
+ type: z.ZodEnum<{
1202
+ route_matches: "route_matches";
1203
+ element_visible: "element_visible";
1204
+ element_absent: "element_absent";
1205
+ text_contains: "text_contains";
1206
+ overlay_dismissed: "overlay_dismissed";
1207
+ screenshot_stable: "screenshot_stable";
1208
+ any_change: "any_change";
1209
+ always: "always";
1210
+ }>;
1211
+ pattern: z.ZodOptional<z.ZodString>;
1212
+ selector: z.ZodOptional<z.ZodString>;
1213
+ text: z.ZodOptional<z.ZodString>;
1214
+ threshold: z.ZodOptional<z.ZodNumber>;
1215
+ waitMs: z.ZodOptional<z.ZodNumber>;
1216
+ }, z.core.$strip>;
1217
+ recovery: z.ZodObject<{
1218
+ retries: z.ZodNumber;
1219
+ useSelectorMemory: z.ZodBoolean;
1220
+ useAltInteraction: z.ZodBoolean;
1221
+ allowReload: z.ZodBoolean;
1222
+ allowHealer: z.ZodBoolean;
1223
+ }, z.core.$strip>;
1224
+ timeoutMs: z.ZodNumber;
1225
+ maxFailures: z.ZodNumber;
1226
+ kind: z.ZodLiteral<"DISMISS_OVERLAYS">;
1227
+ }, z.core.$strip>, z.ZodObject<{
1228
+ urlPattern: z.ZodString;
1229
+ description: z.ZodString;
1230
+ postcondition: z.ZodObject<{
1231
+ type: z.ZodEnum<{
1232
+ route_matches: "route_matches";
1233
+ element_visible: "element_visible";
1234
+ element_absent: "element_absent";
1235
+ text_contains: "text_contains";
1236
+ overlay_dismissed: "overlay_dismissed";
1237
+ screenshot_stable: "screenshot_stable";
1238
+ any_change: "any_change";
1239
+ always: "always";
1240
+ }>;
1241
+ pattern: z.ZodOptional<z.ZodString>;
1242
+ selector: z.ZodOptional<z.ZodString>;
1243
+ text: z.ZodOptional<z.ZodString>;
1244
+ threshold: z.ZodOptional<z.ZodNumber>;
1245
+ waitMs: z.ZodOptional<z.ZodNumber>;
1246
+ }, z.core.$strip>;
1247
+ recovery: z.ZodObject<{
1248
+ retries: z.ZodNumber;
1249
+ useSelectorMemory: z.ZodBoolean;
1250
+ useAltInteraction: z.ZodBoolean;
1251
+ allowReload: z.ZodBoolean;
1252
+ allowHealer: z.ZodBoolean;
1253
+ }, z.core.$strip>;
1254
+ timeoutMs: z.ZodNumber;
1255
+ maxFailures: z.ZodNumber;
1256
+ kind: z.ZodLiteral<"ASSERT_ROUTE">;
1257
+ }, z.core.$strip>, z.ZodObject<{
1258
+ selectors: z.ZodArray<z.ZodString>;
1259
+ matchAll: z.ZodBoolean;
1260
+ description: z.ZodString;
1261
+ postcondition: z.ZodObject<{
1262
+ type: z.ZodEnum<{
1263
+ route_matches: "route_matches";
1264
+ element_visible: "element_visible";
1265
+ element_absent: "element_absent";
1266
+ text_contains: "text_contains";
1267
+ overlay_dismissed: "overlay_dismissed";
1268
+ screenshot_stable: "screenshot_stable";
1269
+ any_change: "any_change";
1270
+ always: "always";
1271
+ }>;
1272
+ pattern: z.ZodOptional<z.ZodString>;
1273
+ selector: z.ZodOptional<z.ZodString>;
1274
+ text: z.ZodOptional<z.ZodString>;
1275
+ threshold: z.ZodOptional<z.ZodNumber>;
1276
+ waitMs: z.ZodOptional<z.ZodNumber>;
1277
+ }, z.core.$strip>;
1278
+ recovery: z.ZodObject<{
1279
+ retries: z.ZodNumber;
1280
+ useSelectorMemory: z.ZodBoolean;
1281
+ useAltInteraction: z.ZodBoolean;
1282
+ allowReload: z.ZodBoolean;
1283
+ allowHealer: z.ZodBoolean;
1284
+ }, z.core.$strip>;
1285
+ timeoutMs: z.ZodNumber;
1286
+ maxFailures: z.ZodNumber;
1287
+ kind: z.ZodLiteral<"ASSERT_SURFACE">;
1288
+ }, z.core.$strip>, z.ZodObject<{
1289
+ selector: z.ZodString;
1290
+ target: z.ZodOptional<z.ZodObject<{
1291
+ text: z.ZodOptional<z.ZodString>;
1292
+ role: z.ZodOptional<z.ZodString>;
1293
+ label: z.ZodOptional<z.ZodString>;
1294
+ near: z.ZodOptional<z.ZodString>;
1295
+ placeholder: z.ZodOptional<z.ZodString>;
1296
+ exact: z.ZodOptional<z.ZodBoolean>;
1297
+ }, z.core.$strip>>;
1298
+ fingerprint: z.ZodOptional<z.ZodString>;
1299
+ selectorAlternates: z.ZodOptional<z.ZodArray<z.ZodString>>;
1300
+ description: z.ZodString;
1301
+ postcondition: z.ZodObject<{
1302
+ type: z.ZodEnum<{
1303
+ route_matches: "route_matches";
1304
+ element_visible: "element_visible";
1305
+ element_absent: "element_absent";
1306
+ text_contains: "text_contains";
1307
+ overlay_dismissed: "overlay_dismissed";
1308
+ screenshot_stable: "screenshot_stable";
1309
+ any_change: "any_change";
1310
+ always: "always";
1311
+ }>;
1312
+ pattern: z.ZodOptional<z.ZodString>;
1313
+ selector: z.ZodOptional<z.ZodString>;
1314
+ text: z.ZodOptional<z.ZodString>;
1315
+ threshold: z.ZodOptional<z.ZodNumber>;
1316
+ waitMs: z.ZodOptional<z.ZodNumber>;
1317
+ }, z.core.$strip>;
1318
+ recovery: z.ZodObject<{
1319
+ retries: z.ZodNumber;
1320
+ useSelectorMemory: z.ZodBoolean;
1321
+ useAltInteraction: z.ZodBoolean;
1322
+ allowReload: z.ZodBoolean;
1323
+ allowHealer: z.ZodBoolean;
1324
+ }, z.core.$strip>;
1325
+ timeoutMs: z.ZodNumber;
1326
+ maxFailures: z.ZodNumber;
1327
+ kind: z.ZodLiteral<"CLICK">;
1328
+ }, z.core.$strip>, z.ZodObject<{
1329
+ selector: z.ZodString;
1330
+ target: z.ZodOptional<z.ZodObject<{
1331
+ text: z.ZodOptional<z.ZodString>;
1332
+ role: z.ZodOptional<z.ZodString>;
1333
+ label: z.ZodOptional<z.ZodString>;
1334
+ near: z.ZodOptional<z.ZodString>;
1335
+ placeholder: z.ZodOptional<z.ZodString>;
1336
+ exact: z.ZodOptional<z.ZodBoolean>;
1337
+ }, z.core.$strip>>;
1338
+ text: z.ZodString;
1339
+ clearFirst: z.ZodBoolean;
1340
+ fingerprint: z.ZodOptional<z.ZodString>;
1341
+ selectorAlternates: z.ZodOptional<z.ZodArray<z.ZodString>>;
1342
+ description: z.ZodString;
1343
+ postcondition: z.ZodObject<{
1344
+ type: z.ZodEnum<{
1345
+ route_matches: "route_matches";
1346
+ element_visible: "element_visible";
1347
+ element_absent: "element_absent";
1348
+ text_contains: "text_contains";
1349
+ overlay_dismissed: "overlay_dismissed";
1350
+ screenshot_stable: "screenshot_stable";
1351
+ any_change: "any_change";
1352
+ always: "always";
1353
+ }>;
1354
+ pattern: z.ZodOptional<z.ZodString>;
1355
+ selector: z.ZodOptional<z.ZodString>;
1356
+ text: z.ZodOptional<z.ZodString>;
1357
+ threshold: z.ZodOptional<z.ZodNumber>;
1358
+ waitMs: z.ZodOptional<z.ZodNumber>;
1359
+ }, z.core.$strip>;
1360
+ recovery: z.ZodObject<{
1361
+ retries: z.ZodNumber;
1362
+ useSelectorMemory: z.ZodBoolean;
1363
+ useAltInteraction: z.ZodBoolean;
1364
+ allowReload: z.ZodBoolean;
1365
+ allowHealer: z.ZodBoolean;
1366
+ }, z.core.$strip>;
1367
+ timeoutMs: z.ZodNumber;
1368
+ maxFailures: z.ZodNumber;
1369
+ kind: z.ZodLiteral<"TYPE">;
1370
+ }, z.core.$strip>, z.ZodObject<{
1371
+ key: z.ZodString;
1372
+ description: z.ZodString;
1373
+ postcondition: z.ZodObject<{
1374
+ type: z.ZodEnum<{
1375
+ route_matches: "route_matches";
1376
+ element_visible: "element_visible";
1377
+ element_absent: "element_absent";
1378
+ text_contains: "text_contains";
1379
+ overlay_dismissed: "overlay_dismissed";
1380
+ screenshot_stable: "screenshot_stable";
1381
+ any_change: "any_change";
1382
+ always: "always";
1383
+ }>;
1384
+ pattern: z.ZodOptional<z.ZodString>;
1385
+ selector: z.ZodOptional<z.ZodString>;
1386
+ text: z.ZodOptional<z.ZodString>;
1387
+ threshold: z.ZodOptional<z.ZodNumber>;
1388
+ waitMs: z.ZodOptional<z.ZodNumber>;
1389
+ }, z.core.$strip>;
1390
+ recovery: z.ZodObject<{
1391
+ retries: z.ZodNumber;
1392
+ useSelectorMemory: z.ZodBoolean;
1393
+ useAltInteraction: z.ZodBoolean;
1394
+ allowReload: z.ZodBoolean;
1395
+ allowHealer: z.ZodBoolean;
1396
+ }, z.core.$strip>;
1397
+ timeoutMs: z.ZodNumber;
1398
+ maxFailures: z.ZodNumber;
1399
+ kind: z.ZodLiteral<"PRESS_KEY">;
1400
+ }, z.core.$strip>, z.ZodObject<{
1401
+ selector: z.ZodOptional<z.ZodString>;
1402
+ target: z.ZodOptional<z.ZodObject<{
1403
+ text: z.ZodOptional<z.ZodString>;
1404
+ role: z.ZodOptional<z.ZodString>;
1405
+ label: z.ZodOptional<z.ZodString>;
1406
+ near: z.ZodOptional<z.ZodString>;
1407
+ placeholder: z.ZodOptional<z.ZodString>;
1408
+ exact: z.ZodOptional<z.ZodBoolean>;
1409
+ }, z.core.$strip>>;
1410
+ state: z.ZodEnum<{
1411
+ visible: "visible";
1412
+ attached: "attached";
1413
+ }>;
1414
+ description: z.ZodString;
1415
+ postcondition: z.ZodObject<{
1416
+ type: z.ZodEnum<{
1417
+ route_matches: "route_matches";
1418
+ element_visible: "element_visible";
1419
+ element_absent: "element_absent";
1420
+ text_contains: "text_contains";
1421
+ overlay_dismissed: "overlay_dismissed";
1422
+ screenshot_stable: "screenshot_stable";
1423
+ any_change: "any_change";
1424
+ always: "always";
1425
+ }>;
1426
+ pattern: z.ZodOptional<z.ZodString>;
1427
+ selector: z.ZodOptional<z.ZodString>;
1428
+ text: z.ZodOptional<z.ZodString>;
1429
+ threshold: z.ZodOptional<z.ZodNumber>;
1430
+ waitMs: z.ZodOptional<z.ZodNumber>;
1431
+ }, z.core.$strip>;
1432
+ recovery: z.ZodObject<{
1433
+ retries: z.ZodNumber;
1434
+ useSelectorMemory: z.ZodBoolean;
1435
+ useAltInteraction: z.ZodBoolean;
1436
+ allowReload: z.ZodBoolean;
1437
+ allowHealer: z.ZodBoolean;
1438
+ }, z.core.$strip>;
1439
+ timeoutMs: z.ZodNumber;
1440
+ maxFailures: z.ZodNumber;
1441
+ kind: z.ZodLiteral<"WAIT_FOR">;
1442
+ }, z.core.$strip>, z.ZodObject<{
1443
+ locale: z.ZodString;
1444
+ method: z.ZodEnum<{
1445
+ browser_context: "browser_context";
1446
+ ui_interaction: "ui_interaction";
1447
+ storage: "storage";
1448
+ }>;
1449
+ selector: z.ZodOptional<z.ZodString>;
1450
+ storageHints: z.ZodOptional<z.ZodArray<z.ZodObject<{
1451
+ storage: z.ZodEnum<{
1452
+ localStorage: "localStorage";
1453
+ sessionStorage: "sessionStorage";
1454
+ }>;
1455
+ key: z.ZodString;
1456
+ value: z.ZodString;
1457
+ }, z.core.$strip>>>;
1458
+ description: z.ZodString;
1459
+ postcondition: z.ZodObject<{
1460
+ type: z.ZodEnum<{
1461
+ route_matches: "route_matches";
1462
+ element_visible: "element_visible";
1463
+ element_absent: "element_absent";
1464
+ text_contains: "text_contains";
1465
+ overlay_dismissed: "overlay_dismissed";
1466
+ screenshot_stable: "screenshot_stable";
1467
+ any_change: "any_change";
1468
+ always: "always";
1469
+ }>;
1470
+ pattern: z.ZodOptional<z.ZodString>;
1471
+ selector: z.ZodOptional<z.ZodString>;
1472
+ text: z.ZodOptional<z.ZodString>;
1473
+ threshold: z.ZodOptional<z.ZodNumber>;
1474
+ waitMs: z.ZodOptional<z.ZodNumber>;
1475
+ }, z.core.$strip>;
1476
+ recovery: z.ZodObject<{
1477
+ retries: z.ZodNumber;
1478
+ useSelectorMemory: z.ZodBoolean;
1479
+ useAltInteraction: z.ZodBoolean;
1480
+ allowReload: z.ZodBoolean;
1481
+ allowHealer: z.ZodBoolean;
1482
+ }, z.core.$strip>;
1483
+ timeoutMs: z.ZodNumber;
1484
+ maxFailures: z.ZodNumber;
1485
+ kind: z.ZodLiteral<"SET_LOCALE">;
1486
+ }, z.core.$strip>, z.ZodObject<{
1487
+ theme: z.ZodEnum<{
1488
+ light: "light";
1489
+ dark: "dark";
1490
+ }>;
1491
+ method: z.ZodEnum<{
1492
+ ui_interaction: "ui_interaction";
1493
+ storage: "storage";
1494
+ color_scheme: "color_scheme";
1495
+ }>;
1496
+ selector: z.ZodOptional<z.ZodString>;
1497
+ storageHints: z.ZodOptional<z.ZodArray<z.ZodObject<{
1498
+ storage: z.ZodEnum<{
1499
+ localStorage: "localStorage";
1500
+ sessionStorage: "sessionStorage";
1501
+ }>;
1502
+ key: z.ZodString;
1503
+ value: z.ZodString;
1504
+ }, z.core.$strip>>>;
1505
+ description: z.ZodString;
1506
+ postcondition: z.ZodObject<{
1507
+ type: z.ZodEnum<{
1508
+ route_matches: "route_matches";
1509
+ element_visible: "element_visible";
1510
+ element_absent: "element_absent";
1511
+ text_contains: "text_contains";
1512
+ overlay_dismissed: "overlay_dismissed";
1513
+ screenshot_stable: "screenshot_stable";
1514
+ any_change: "any_change";
1515
+ always: "always";
1516
+ }>;
1517
+ pattern: z.ZodOptional<z.ZodString>;
1518
+ selector: z.ZodOptional<z.ZodString>;
1519
+ text: z.ZodOptional<z.ZodString>;
1520
+ threshold: z.ZodOptional<z.ZodNumber>;
1521
+ waitMs: z.ZodOptional<z.ZodNumber>;
1522
+ }, z.core.$strip>;
1523
+ recovery: z.ZodObject<{
1524
+ retries: z.ZodNumber;
1525
+ useSelectorMemory: z.ZodBoolean;
1526
+ useAltInteraction: z.ZodBoolean;
1527
+ allowReload: z.ZodBoolean;
1528
+ allowHealer: z.ZodBoolean;
1529
+ }, z.core.$strip>;
1530
+ timeoutMs: z.ZodNumber;
1531
+ maxFailures: z.ZodNumber;
1532
+ kind: z.ZodLiteral<"SET_THEME">;
1533
+ }, z.core.$strip>, z.ZodObject<{
1534
+ direction: z.ZodEnum<{
1535
+ up: "up";
1536
+ down: "down";
1537
+ left: "left";
1538
+ right: "right";
1539
+ }>;
1540
+ amount: z.ZodOptional<z.ZodNumber>;
1541
+ targetSelector: z.ZodOptional<z.ZodString>;
1542
+ target: z.ZodOptional<z.ZodObject<{
1543
+ text: z.ZodOptional<z.ZodString>;
1544
+ role: z.ZodOptional<z.ZodString>;
1545
+ label: z.ZodOptional<z.ZodString>;
1546
+ near: z.ZodOptional<z.ZodString>;
1547
+ placeholder: z.ZodOptional<z.ZodString>;
1548
+ exact: z.ZodOptional<z.ZodBoolean>;
1549
+ }, z.core.$strip>>;
1550
+ description: z.ZodString;
1551
+ postcondition: z.ZodObject<{
1552
+ type: z.ZodEnum<{
1553
+ route_matches: "route_matches";
1554
+ element_visible: "element_visible";
1555
+ element_absent: "element_absent";
1556
+ text_contains: "text_contains";
1557
+ overlay_dismissed: "overlay_dismissed";
1558
+ screenshot_stable: "screenshot_stable";
1559
+ any_change: "any_change";
1560
+ always: "always";
1561
+ }>;
1562
+ pattern: z.ZodOptional<z.ZodString>;
1563
+ selector: z.ZodOptional<z.ZodString>;
1564
+ text: z.ZodOptional<z.ZodString>;
1565
+ threshold: z.ZodOptional<z.ZodNumber>;
1566
+ waitMs: z.ZodOptional<z.ZodNumber>;
1567
+ }, z.core.$strip>;
1568
+ recovery: z.ZodObject<{
1569
+ retries: z.ZodNumber;
1570
+ useSelectorMemory: z.ZodBoolean;
1571
+ useAltInteraction: z.ZodBoolean;
1572
+ allowReload: z.ZodBoolean;
1573
+ allowHealer: z.ZodBoolean;
1574
+ }, z.core.$strip>;
1575
+ timeoutMs: z.ZodNumber;
1576
+ maxFailures: z.ZodNumber;
1577
+ kind: z.ZodLiteral<"SCROLL">;
1578
+ }, z.core.$strip>, z.ZodObject<{
1579
+ captureId: z.ZodOptional<z.ZodString>;
1580
+ captureName: z.ZodOptional<z.ZodString>;
1581
+ elementSelector: z.ZodOptional<z.ZodString>;
1582
+ description: z.ZodString;
1583
+ postcondition: z.ZodObject<{
1584
+ type: z.ZodEnum<{
1585
+ route_matches: "route_matches";
1586
+ element_visible: "element_visible";
1587
+ element_absent: "element_absent";
1588
+ text_contains: "text_contains";
1589
+ overlay_dismissed: "overlay_dismissed";
1590
+ screenshot_stable: "screenshot_stable";
1591
+ any_change: "any_change";
1592
+ always: "always";
1593
+ }>;
1594
+ pattern: z.ZodOptional<z.ZodString>;
1595
+ selector: z.ZodOptional<z.ZodString>;
1596
+ text: z.ZodOptional<z.ZodString>;
1597
+ threshold: z.ZodOptional<z.ZodNumber>;
1598
+ waitMs: z.ZodOptional<z.ZodNumber>;
1599
+ }, z.core.$strip>;
1600
+ recovery: z.ZodObject<{
1601
+ retries: z.ZodNumber;
1602
+ useSelectorMemory: z.ZodBoolean;
1603
+ useAltInteraction: z.ZodBoolean;
1604
+ allowReload: z.ZodBoolean;
1605
+ allowHealer: z.ZodBoolean;
1606
+ }, z.core.$strip>;
1607
+ timeoutMs: z.ZodNumber;
1608
+ maxFailures: z.ZodNumber;
1609
+ kind: z.ZodLiteral<"CAPTURE_SCREENSHOT">;
1610
+ }, z.core.$strip>, z.ZodObject<{
1611
+ clipId: z.ZodOptional<z.ZodString>;
1612
+ clipName: z.ZodOptional<z.ZodString>;
1613
+ description: z.ZodString;
1614
+ postcondition: z.ZodObject<{
1615
+ type: z.ZodEnum<{
1616
+ route_matches: "route_matches";
1617
+ element_visible: "element_visible";
1618
+ element_absent: "element_absent";
1619
+ text_contains: "text_contains";
1620
+ overlay_dismissed: "overlay_dismissed";
1621
+ screenshot_stable: "screenshot_stable";
1622
+ any_change: "any_change";
1623
+ always: "always";
1624
+ }>;
1625
+ pattern: z.ZodOptional<z.ZodString>;
1626
+ selector: z.ZodOptional<z.ZodString>;
1627
+ text: z.ZodOptional<z.ZodString>;
1628
+ threshold: z.ZodOptional<z.ZodNumber>;
1629
+ waitMs: z.ZodOptional<z.ZodNumber>;
1630
+ }, z.core.$strip>;
1631
+ recovery: z.ZodObject<{
1632
+ retries: z.ZodNumber;
1633
+ useSelectorMemory: z.ZodBoolean;
1634
+ useAltInteraction: z.ZodBoolean;
1635
+ allowReload: z.ZodBoolean;
1636
+ allowHealer: z.ZodBoolean;
1637
+ }, z.core.$strip>;
1638
+ timeoutMs: z.ZodNumber;
1639
+ maxFailures: z.ZodNumber;
1640
+ kind: z.ZodLiteral<"BEGIN_CLIP">;
1641
+ }, z.core.$strip>, z.ZodObject<{
1642
+ clipId: z.ZodOptional<z.ZodString>;
1643
+ clipName: z.ZodOptional<z.ZodString>;
1644
+ description: z.ZodString;
1645
+ postcondition: z.ZodObject<{
1646
+ type: z.ZodEnum<{
1647
+ route_matches: "route_matches";
1648
+ element_visible: "element_visible";
1649
+ element_absent: "element_absent";
1650
+ text_contains: "text_contains";
1651
+ overlay_dismissed: "overlay_dismissed";
1652
+ screenshot_stable: "screenshot_stable";
1653
+ any_change: "any_change";
1654
+ always: "always";
1655
+ }>;
1656
+ pattern: z.ZodOptional<z.ZodString>;
1657
+ selector: z.ZodOptional<z.ZodString>;
1658
+ text: z.ZodOptional<z.ZodString>;
1659
+ threshold: z.ZodOptional<z.ZodNumber>;
1660
+ waitMs: z.ZodOptional<z.ZodNumber>;
1661
+ }, z.core.$strip>;
1662
+ recovery: z.ZodObject<{
1663
+ retries: z.ZodNumber;
1664
+ useSelectorMemory: z.ZodBoolean;
1665
+ useAltInteraction: z.ZodBoolean;
1666
+ allowReload: z.ZodBoolean;
1667
+ allowHealer: z.ZodBoolean;
1668
+ }, z.core.$strip>;
1669
+ timeoutMs: z.ZodNumber;
1670
+ maxFailures: z.ZodNumber;
1671
+ kind: z.ZodLiteral<"END_CLIP">;
1672
+ }, z.core.$strip>], "kind">;
1673
+ replacementOpcodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1674
+ url: z.ZodString;
1675
+ description: z.ZodString;
1676
+ postcondition: z.ZodObject<{
1677
+ type: z.ZodEnum<{
1678
+ route_matches: "route_matches";
1679
+ element_visible: "element_visible";
1680
+ element_absent: "element_absent";
1681
+ text_contains: "text_contains";
1682
+ overlay_dismissed: "overlay_dismissed";
1683
+ screenshot_stable: "screenshot_stable";
1684
+ any_change: "any_change";
1685
+ always: "always";
1686
+ }>;
1687
+ pattern: z.ZodOptional<z.ZodString>;
1688
+ selector: z.ZodOptional<z.ZodString>;
1689
+ text: z.ZodOptional<z.ZodString>;
1690
+ threshold: z.ZodOptional<z.ZodNumber>;
1691
+ waitMs: z.ZodOptional<z.ZodNumber>;
1692
+ }, z.core.$strip>;
1693
+ recovery: z.ZodObject<{
1694
+ retries: z.ZodNumber;
1695
+ useSelectorMemory: z.ZodBoolean;
1696
+ useAltInteraction: z.ZodBoolean;
1697
+ allowReload: z.ZodBoolean;
1698
+ allowHealer: z.ZodBoolean;
1699
+ }, z.core.$strip>;
1700
+ timeoutMs: z.ZodNumber;
1701
+ maxFailures: z.ZodNumber;
1702
+ kind: z.ZodLiteral<"NAVIGATE">;
1703
+ }, z.core.$strip>, z.ZodObject<{
1704
+ description: z.ZodString;
1705
+ postcondition: z.ZodObject<{
1706
+ type: z.ZodEnum<{
1707
+ route_matches: "route_matches";
1708
+ element_visible: "element_visible";
1709
+ element_absent: "element_absent";
1710
+ text_contains: "text_contains";
1711
+ overlay_dismissed: "overlay_dismissed";
1712
+ screenshot_stable: "screenshot_stable";
1713
+ any_change: "any_change";
1714
+ always: "always";
1715
+ }>;
1716
+ pattern: z.ZodOptional<z.ZodString>;
1717
+ selector: z.ZodOptional<z.ZodString>;
1718
+ text: z.ZodOptional<z.ZodString>;
1719
+ threshold: z.ZodOptional<z.ZodNumber>;
1720
+ waitMs: z.ZodOptional<z.ZodNumber>;
1721
+ }, z.core.$strip>;
1722
+ recovery: z.ZodObject<{
1723
+ retries: z.ZodNumber;
1724
+ useSelectorMemory: z.ZodBoolean;
1725
+ useAltInteraction: z.ZodBoolean;
1726
+ allowReload: z.ZodBoolean;
1727
+ allowHealer: z.ZodBoolean;
1728
+ }, z.core.$strip>;
1729
+ timeoutMs: z.ZodNumber;
1730
+ maxFailures: z.ZodNumber;
1731
+ kind: z.ZodLiteral<"DISMISS_OVERLAYS">;
1732
+ }, z.core.$strip>, z.ZodObject<{
1733
+ urlPattern: z.ZodString;
1734
+ description: z.ZodString;
1735
+ postcondition: z.ZodObject<{
1736
+ type: z.ZodEnum<{
1737
+ route_matches: "route_matches";
1738
+ element_visible: "element_visible";
1739
+ element_absent: "element_absent";
1740
+ text_contains: "text_contains";
1741
+ overlay_dismissed: "overlay_dismissed";
1742
+ screenshot_stable: "screenshot_stable";
1743
+ any_change: "any_change";
1744
+ always: "always";
1745
+ }>;
1746
+ pattern: z.ZodOptional<z.ZodString>;
1747
+ selector: z.ZodOptional<z.ZodString>;
1748
+ text: z.ZodOptional<z.ZodString>;
1749
+ threshold: z.ZodOptional<z.ZodNumber>;
1750
+ waitMs: z.ZodOptional<z.ZodNumber>;
1751
+ }, z.core.$strip>;
1752
+ recovery: z.ZodObject<{
1753
+ retries: z.ZodNumber;
1754
+ useSelectorMemory: z.ZodBoolean;
1755
+ useAltInteraction: z.ZodBoolean;
1756
+ allowReload: z.ZodBoolean;
1757
+ allowHealer: z.ZodBoolean;
1758
+ }, z.core.$strip>;
1759
+ timeoutMs: z.ZodNumber;
1760
+ maxFailures: z.ZodNumber;
1761
+ kind: z.ZodLiteral<"ASSERT_ROUTE">;
1762
+ }, z.core.$strip>, z.ZodObject<{
1763
+ selectors: z.ZodArray<z.ZodString>;
1764
+ matchAll: z.ZodBoolean;
1765
+ description: z.ZodString;
1766
+ postcondition: z.ZodObject<{
1767
+ type: z.ZodEnum<{
1768
+ route_matches: "route_matches";
1769
+ element_visible: "element_visible";
1770
+ element_absent: "element_absent";
1771
+ text_contains: "text_contains";
1772
+ overlay_dismissed: "overlay_dismissed";
1773
+ screenshot_stable: "screenshot_stable";
1774
+ any_change: "any_change";
1775
+ always: "always";
1776
+ }>;
1777
+ pattern: z.ZodOptional<z.ZodString>;
1778
+ selector: z.ZodOptional<z.ZodString>;
1779
+ text: z.ZodOptional<z.ZodString>;
1780
+ threshold: z.ZodOptional<z.ZodNumber>;
1781
+ waitMs: z.ZodOptional<z.ZodNumber>;
1782
+ }, z.core.$strip>;
1783
+ recovery: z.ZodObject<{
1784
+ retries: z.ZodNumber;
1785
+ useSelectorMemory: z.ZodBoolean;
1786
+ useAltInteraction: z.ZodBoolean;
1787
+ allowReload: z.ZodBoolean;
1788
+ allowHealer: z.ZodBoolean;
1789
+ }, z.core.$strip>;
1790
+ timeoutMs: z.ZodNumber;
1791
+ maxFailures: z.ZodNumber;
1792
+ kind: z.ZodLiteral<"ASSERT_SURFACE">;
1793
+ }, z.core.$strip>, z.ZodObject<{
1794
+ selector: z.ZodString;
1795
+ target: z.ZodOptional<z.ZodObject<{
1796
+ text: z.ZodOptional<z.ZodString>;
1797
+ role: z.ZodOptional<z.ZodString>;
1798
+ label: z.ZodOptional<z.ZodString>;
1799
+ near: z.ZodOptional<z.ZodString>;
1800
+ placeholder: z.ZodOptional<z.ZodString>;
1801
+ exact: z.ZodOptional<z.ZodBoolean>;
1802
+ }, z.core.$strip>>;
1803
+ fingerprint: z.ZodOptional<z.ZodString>;
1804
+ selectorAlternates: z.ZodOptional<z.ZodArray<z.ZodString>>;
1805
+ description: z.ZodString;
1806
+ postcondition: z.ZodObject<{
1807
+ type: z.ZodEnum<{
1808
+ route_matches: "route_matches";
1809
+ element_visible: "element_visible";
1810
+ element_absent: "element_absent";
1811
+ text_contains: "text_contains";
1812
+ overlay_dismissed: "overlay_dismissed";
1813
+ screenshot_stable: "screenshot_stable";
1814
+ any_change: "any_change";
1815
+ always: "always";
1816
+ }>;
1817
+ pattern: z.ZodOptional<z.ZodString>;
1818
+ selector: z.ZodOptional<z.ZodString>;
1819
+ text: z.ZodOptional<z.ZodString>;
1820
+ threshold: z.ZodOptional<z.ZodNumber>;
1821
+ waitMs: z.ZodOptional<z.ZodNumber>;
1822
+ }, z.core.$strip>;
1823
+ recovery: z.ZodObject<{
1824
+ retries: z.ZodNumber;
1825
+ useSelectorMemory: z.ZodBoolean;
1826
+ useAltInteraction: z.ZodBoolean;
1827
+ allowReload: z.ZodBoolean;
1828
+ allowHealer: z.ZodBoolean;
1829
+ }, z.core.$strip>;
1830
+ timeoutMs: z.ZodNumber;
1831
+ maxFailures: z.ZodNumber;
1832
+ kind: z.ZodLiteral<"CLICK">;
1833
+ }, z.core.$strip>, z.ZodObject<{
1834
+ selector: z.ZodString;
1835
+ target: z.ZodOptional<z.ZodObject<{
1836
+ text: z.ZodOptional<z.ZodString>;
1837
+ role: z.ZodOptional<z.ZodString>;
1838
+ label: z.ZodOptional<z.ZodString>;
1839
+ near: z.ZodOptional<z.ZodString>;
1840
+ placeholder: z.ZodOptional<z.ZodString>;
1841
+ exact: z.ZodOptional<z.ZodBoolean>;
1842
+ }, z.core.$strip>>;
1843
+ text: z.ZodString;
1844
+ clearFirst: z.ZodBoolean;
1845
+ fingerprint: z.ZodOptional<z.ZodString>;
1846
+ selectorAlternates: z.ZodOptional<z.ZodArray<z.ZodString>>;
1847
+ description: z.ZodString;
1848
+ postcondition: z.ZodObject<{
1849
+ type: z.ZodEnum<{
1850
+ route_matches: "route_matches";
1851
+ element_visible: "element_visible";
1852
+ element_absent: "element_absent";
1853
+ text_contains: "text_contains";
1854
+ overlay_dismissed: "overlay_dismissed";
1855
+ screenshot_stable: "screenshot_stable";
1856
+ any_change: "any_change";
1857
+ always: "always";
1858
+ }>;
1859
+ pattern: z.ZodOptional<z.ZodString>;
1860
+ selector: z.ZodOptional<z.ZodString>;
1861
+ text: z.ZodOptional<z.ZodString>;
1862
+ threshold: z.ZodOptional<z.ZodNumber>;
1863
+ waitMs: z.ZodOptional<z.ZodNumber>;
1864
+ }, z.core.$strip>;
1865
+ recovery: z.ZodObject<{
1866
+ retries: z.ZodNumber;
1867
+ useSelectorMemory: z.ZodBoolean;
1868
+ useAltInteraction: z.ZodBoolean;
1869
+ allowReload: z.ZodBoolean;
1870
+ allowHealer: z.ZodBoolean;
1871
+ }, z.core.$strip>;
1872
+ timeoutMs: z.ZodNumber;
1873
+ maxFailures: z.ZodNumber;
1874
+ kind: z.ZodLiteral<"TYPE">;
1875
+ }, z.core.$strip>, z.ZodObject<{
1876
+ key: z.ZodString;
1877
+ description: z.ZodString;
1878
+ postcondition: z.ZodObject<{
1879
+ type: z.ZodEnum<{
1880
+ route_matches: "route_matches";
1881
+ element_visible: "element_visible";
1882
+ element_absent: "element_absent";
1883
+ text_contains: "text_contains";
1884
+ overlay_dismissed: "overlay_dismissed";
1885
+ screenshot_stable: "screenshot_stable";
1886
+ any_change: "any_change";
1887
+ always: "always";
1888
+ }>;
1889
+ pattern: z.ZodOptional<z.ZodString>;
1890
+ selector: z.ZodOptional<z.ZodString>;
1891
+ text: z.ZodOptional<z.ZodString>;
1892
+ threshold: z.ZodOptional<z.ZodNumber>;
1893
+ waitMs: z.ZodOptional<z.ZodNumber>;
1894
+ }, z.core.$strip>;
1895
+ recovery: z.ZodObject<{
1896
+ retries: z.ZodNumber;
1897
+ useSelectorMemory: z.ZodBoolean;
1898
+ useAltInteraction: z.ZodBoolean;
1899
+ allowReload: z.ZodBoolean;
1900
+ allowHealer: z.ZodBoolean;
1901
+ }, z.core.$strip>;
1902
+ timeoutMs: z.ZodNumber;
1903
+ maxFailures: z.ZodNumber;
1904
+ kind: z.ZodLiteral<"PRESS_KEY">;
1905
+ }, z.core.$strip>, z.ZodObject<{
1906
+ selector: z.ZodOptional<z.ZodString>;
1907
+ target: z.ZodOptional<z.ZodObject<{
1908
+ text: z.ZodOptional<z.ZodString>;
1909
+ role: z.ZodOptional<z.ZodString>;
1910
+ label: z.ZodOptional<z.ZodString>;
1911
+ near: z.ZodOptional<z.ZodString>;
1912
+ placeholder: z.ZodOptional<z.ZodString>;
1913
+ exact: z.ZodOptional<z.ZodBoolean>;
1914
+ }, z.core.$strip>>;
1915
+ state: z.ZodEnum<{
1916
+ visible: "visible";
1917
+ attached: "attached";
1918
+ }>;
1919
+ description: z.ZodString;
1920
+ postcondition: z.ZodObject<{
1921
+ type: z.ZodEnum<{
1922
+ route_matches: "route_matches";
1923
+ element_visible: "element_visible";
1924
+ element_absent: "element_absent";
1925
+ text_contains: "text_contains";
1926
+ overlay_dismissed: "overlay_dismissed";
1927
+ screenshot_stable: "screenshot_stable";
1928
+ any_change: "any_change";
1929
+ always: "always";
1930
+ }>;
1931
+ pattern: z.ZodOptional<z.ZodString>;
1932
+ selector: z.ZodOptional<z.ZodString>;
1933
+ text: z.ZodOptional<z.ZodString>;
1934
+ threshold: z.ZodOptional<z.ZodNumber>;
1935
+ waitMs: z.ZodOptional<z.ZodNumber>;
1936
+ }, z.core.$strip>;
1937
+ recovery: z.ZodObject<{
1938
+ retries: z.ZodNumber;
1939
+ useSelectorMemory: z.ZodBoolean;
1940
+ useAltInteraction: z.ZodBoolean;
1941
+ allowReload: z.ZodBoolean;
1942
+ allowHealer: z.ZodBoolean;
1943
+ }, z.core.$strip>;
1944
+ timeoutMs: z.ZodNumber;
1945
+ maxFailures: z.ZodNumber;
1946
+ kind: z.ZodLiteral<"WAIT_FOR">;
1947
+ }, z.core.$strip>, z.ZodObject<{
1948
+ locale: z.ZodString;
1949
+ method: z.ZodEnum<{
1950
+ browser_context: "browser_context";
1951
+ ui_interaction: "ui_interaction";
1952
+ storage: "storage";
1953
+ }>;
1954
+ selector: z.ZodOptional<z.ZodString>;
1955
+ storageHints: z.ZodOptional<z.ZodArray<z.ZodObject<{
1956
+ storage: z.ZodEnum<{
1957
+ localStorage: "localStorage";
1958
+ sessionStorage: "sessionStorage";
1959
+ }>;
1960
+ key: z.ZodString;
1961
+ value: z.ZodString;
1962
+ }, z.core.$strip>>>;
1963
+ description: z.ZodString;
1964
+ postcondition: z.ZodObject<{
1965
+ type: z.ZodEnum<{
1966
+ route_matches: "route_matches";
1967
+ element_visible: "element_visible";
1968
+ element_absent: "element_absent";
1969
+ text_contains: "text_contains";
1970
+ overlay_dismissed: "overlay_dismissed";
1971
+ screenshot_stable: "screenshot_stable";
1972
+ any_change: "any_change";
1973
+ always: "always";
1974
+ }>;
1975
+ pattern: z.ZodOptional<z.ZodString>;
1976
+ selector: z.ZodOptional<z.ZodString>;
1977
+ text: z.ZodOptional<z.ZodString>;
1978
+ threshold: z.ZodOptional<z.ZodNumber>;
1979
+ waitMs: z.ZodOptional<z.ZodNumber>;
1980
+ }, z.core.$strip>;
1981
+ recovery: z.ZodObject<{
1982
+ retries: z.ZodNumber;
1983
+ useSelectorMemory: z.ZodBoolean;
1984
+ useAltInteraction: z.ZodBoolean;
1985
+ allowReload: z.ZodBoolean;
1986
+ allowHealer: z.ZodBoolean;
1987
+ }, z.core.$strip>;
1988
+ timeoutMs: z.ZodNumber;
1989
+ maxFailures: z.ZodNumber;
1990
+ kind: z.ZodLiteral<"SET_LOCALE">;
1991
+ }, z.core.$strip>, z.ZodObject<{
1992
+ theme: z.ZodEnum<{
1993
+ light: "light";
1994
+ dark: "dark";
1995
+ }>;
1996
+ method: z.ZodEnum<{
1997
+ ui_interaction: "ui_interaction";
1998
+ storage: "storage";
1999
+ color_scheme: "color_scheme";
2000
+ }>;
2001
+ selector: z.ZodOptional<z.ZodString>;
2002
+ storageHints: z.ZodOptional<z.ZodArray<z.ZodObject<{
2003
+ storage: z.ZodEnum<{
2004
+ localStorage: "localStorage";
2005
+ sessionStorage: "sessionStorage";
2006
+ }>;
2007
+ key: z.ZodString;
2008
+ value: z.ZodString;
2009
+ }, z.core.$strip>>>;
2010
+ description: z.ZodString;
2011
+ postcondition: z.ZodObject<{
2012
+ type: z.ZodEnum<{
2013
+ route_matches: "route_matches";
2014
+ element_visible: "element_visible";
2015
+ element_absent: "element_absent";
2016
+ text_contains: "text_contains";
2017
+ overlay_dismissed: "overlay_dismissed";
2018
+ screenshot_stable: "screenshot_stable";
2019
+ any_change: "any_change";
2020
+ always: "always";
2021
+ }>;
2022
+ pattern: z.ZodOptional<z.ZodString>;
2023
+ selector: z.ZodOptional<z.ZodString>;
2024
+ text: z.ZodOptional<z.ZodString>;
2025
+ threshold: z.ZodOptional<z.ZodNumber>;
2026
+ waitMs: z.ZodOptional<z.ZodNumber>;
2027
+ }, z.core.$strip>;
2028
+ recovery: z.ZodObject<{
2029
+ retries: z.ZodNumber;
2030
+ useSelectorMemory: z.ZodBoolean;
2031
+ useAltInteraction: z.ZodBoolean;
2032
+ allowReload: z.ZodBoolean;
2033
+ allowHealer: z.ZodBoolean;
2034
+ }, z.core.$strip>;
2035
+ timeoutMs: z.ZodNumber;
2036
+ maxFailures: z.ZodNumber;
2037
+ kind: z.ZodLiteral<"SET_THEME">;
2038
+ }, z.core.$strip>, z.ZodObject<{
2039
+ direction: z.ZodEnum<{
2040
+ up: "up";
2041
+ down: "down";
2042
+ left: "left";
2043
+ right: "right";
2044
+ }>;
2045
+ amount: z.ZodOptional<z.ZodNumber>;
2046
+ targetSelector: z.ZodOptional<z.ZodString>;
2047
+ target: z.ZodOptional<z.ZodObject<{
2048
+ text: z.ZodOptional<z.ZodString>;
2049
+ role: z.ZodOptional<z.ZodString>;
2050
+ label: z.ZodOptional<z.ZodString>;
2051
+ near: z.ZodOptional<z.ZodString>;
2052
+ placeholder: z.ZodOptional<z.ZodString>;
2053
+ exact: z.ZodOptional<z.ZodBoolean>;
2054
+ }, z.core.$strip>>;
2055
+ description: z.ZodString;
2056
+ postcondition: z.ZodObject<{
2057
+ type: z.ZodEnum<{
2058
+ route_matches: "route_matches";
2059
+ element_visible: "element_visible";
2060
+ element_absent: "element_absent";
2061
+ text_contains: "text_contains";
2062
+ overlay_dismissed: "overlay_dismissed";
2063
+ screenshot_stable: "screenshot_stable";
2064
+ any_change: "any_change";
2065
+ always: "always";
2066
+ }>;
2067
+ pattern: z.ZodOptional<z.ZodString>;
2068
+ selector: z.ZodOptional<z.ZodString>;
2069
+ text: z.ZodOptional<z.ZodString>;
2070
+ threshold: z.ZodOptional<z.ZodNumber>;
2071
+ waitMs: z.ZodOptional<z.ZodNumber>;
2072
+ }, z.core.$strip>;
2073
+ recovery: z.ZodObject<{
2074
+ retries: z.ZodNumber;
2075
+ useSelectorMemory: z.ZodBoolean;
2076
+ useAltInteraction: z.ZodBoolean;
2077
+ allowReload: z.ZodBoolean;
2078
+ allowHealer: z.ZodBoolean;
2079
+ }, z.core.$strip>;
2080
+ timeoutMs: z.ZodNumber;
2081
+ maxFailures: z.ZodNumber;
2082
+ kind: z.ZodLiteral<"SCROLL">;
2083
+ }, z.core.$strip>, z.ZodObject<{
2084
+ captureId: z.ZodOptional<z.ZodString>;
2085
+ captureName: z.ZodOptional<z.ZodString>;
2086
+ elementSelector: z.ZodOptional<z.ZodString>;
2087
+ description: z.ZodString;
2088
+ postcondition: z.ZodObject<{
2089
+ type: z.ZodEnum<{
2090
+ route_matches: "route_matches";
2091
+ element_visible: "element_visible";
2092
+ element_absent: "element_absent";
2093
+ text_contains: "text_contains";
2094
+ overlay_dismissed: "overlay_dismissed";
2095
+ screenshot_stable: "screenshot_stable";
2096
+ any_change: "any_change";
2097
+ always: "always";
2098
+ }>;
2099
+ pattern: z.ZodOptional<z.ZodString>;
2100
+ selector: z.ZodOptional<z.ZodString>;
2101
+ text: z.ZodOptional<z.ZodString>;
2102
+ threshold: z.ZodOptional<z.ZodNumber>;
2103
+ waitMs: z.ZodOptional<z.ZodNumber>;
2104
+ }, z.core.$strip>;
2105
+ recovery: z.ZodObject<{
2106
+ retries: z.ZodNumber;
2107
+ useSelectorMemory: z.ZodBoolean;
2108
+ useAltInteraction: z.ZodBoolean;
2109
+ allowReload: z.ZodBoolean;
2110
+ allowHealer: z.ZodBoolean;
2111
+ }, z.core.$strip>;
2112
+ timeoutMs: z.ZodNumber;
2113
+ maxFailures: z.ZodNumber;
2114
+ kind: z.ZodLiteral<"CAPTURE_SCREENSHOT">;
2115
+ }, z.core.$strip>, z.ZodObject<{
2116
+ clipId: z.ZodOptional<z.ZodString>;
2117
+ clipName: z.ZodOptional<z.ZodString>;
2118
+ description: z.ZodString;
2119
+ postcondition: z.ZodObject<{
2120
+ type: z.ZodEnum<{
2121
+ route_matches: "route_matches";
2122
+ element_visible: "element_visible";
2123
+ element_absent: "element_absent";
2124
+ text_contains: "text_contains";
2125
+ overlay_dismissed: "overlay_dismissed";
2126
+ screenshot_stable: "screenshot_stable";
2127
+ any_change: "any_change";
2128
+ always: "always";
2129
+ }>;
2130
+ pattern: z.ZodOptional<z.ZodString>;
2131
+ selector: z.ZodOptional<z.ZodString>;
2132
+ text: z.ZodOptional<z.ZodString>;
2133
+ threshold: z.ZodOptional<z.ZodNumber>;
2134
+ waitMs: z.ZodOptional<z.ZodNumber>;
2135
+ }, z.core.$strip>;
2136
+ recovery: z.ZodObject<{
2137
+ retries: z.ZodNumber;
2138
+ useSelectorMemory: z.ZodBoolean;
2139
+ useAltInteraction: z.ZodBoolean;
2140
+ allowReload: z.ZodBoolean;
2141
+ allowHealer: z.ZodBoolean;
2142
+ }, z.core.$strip>;
2143
+ timeoutMs: z.ZodNumber;
2144
+ maxFailures: z.ZodNumber;
2145
+ kind: z.ZodLiteral<"BEGIN_CLIP">;
2146
+ }, z.core.$strip>, z.ZodObject<{
2147
+ clipId: z.ZodOptional<z.ZodString>;
2148
+ clipName: z.ZodOptional<z.ZodString>;
2149
+ description: z.ZodString;
2150
+ postcondition: z.ZodObject<{
2151
+ type: z.ZodEnum<{
2152
+ route_matches: "route_matches";
2153
+ element_visible: "element_visible";
2154
+ element_absent: "element_absent";
2155
+ text_contains: "text_contains";
2156
+ overlay_dismissed: "overlay_dismissed";
2157
+ screenshot_stable: "screenshot_stable";
2158
+ any_change: "any_change";
2159
+ always: "always";
2160
+ }>;
2161
+ pattern: z.ZodOptional<z.ZodString>;
2162
+ selector: z.ZodOptional<z.ZodString>;
2163
+ text: z.ZodOptional<z.ZodString>;
2164
+ threshold: z.ZodOptional<z.ZodNumber>;
2165
+ waitMs: z.ZodOptional<z.ZodNumber>;
2166
+ }, z.core.$strip>;
2167
+ recovery: z.ZodObject<{
2168
+ retries: z.ZodNumber;
2169
+ useSelectorMemory: z.ZodBoolean;
2170
+ useAltInteraction: z.ZodBoolean;
2171
+ allowReload: z.ZodBoolean;
2172
+ allowHealer: z.ZodBoolean;
2173
+ }, z.core.$strip>;
2174
+ timeoutMs: z.ZodNumber;
2175
+ maxFailures: z.ZodNumber;
2176
+ kind: z.ZodLiteral<"END_CLIP">;
2177
+ }, z.core.$strip>], "kind">>;
2178
+ reason: z.ZodString;
2179
+ patchedAt: z.ZodString;
2180
+ }, z.core.$strip>;
2181
+ export declare function parseProgram(data: unknown): ExecutionProgram;
2182
+ export declare function parseOpcode(data: unknown): ExecutionOpcode;
2183
+ export declare function safeParseProgramResult(data: unknown): z.ZodSafeParseResult<{
2184
+ presetId: string;
2185
+ programVersion: number;
2186
+ mediaMode: "clip" | "screenshot";
2187
+ baseUrl: string;
2188
+ variants: {
2189
+ id: string;
2190
+ viewport: {
2191
+ width: number;
2192
+ height: number;
2193
+ };
2194
+ deviceScaleFactor?: number | undefined;
2195
+ locale?: string | undefined;
2196
+ theme?: "light" | "dark" | undefined;
2197
+ targetId?: string | undefined;
2198
+ targetLabel?: string | undefined;
2199
+ deviceFrame?: string | undefined;
2200
+ }[];
2201
+ preconditions: {
2202
+ auth: "authenticated" | "anonymous" | "any";
2203
+ credentialsId?: string | undefined;
2204
+ storageState?: any;
2205
+ sessionStorage?: Record<string, Record<string, string>> | undefined;
2206
+ cookies?: {
2207
+ name: string;
2208
+ value: string;
2209
+ domain: string;
2210
+ path?: string | undefined;
2211
+ }[] | undefined;
2212
+ };
2213
+ steps: ({
2214
+ state: "visible" | "attached";
2215
+ description: string;
2216
+ postcondition: {
2217
+ type: "route_matches" | "element_visible" | "element_absent" | "text_contains" | "overlay_dismissed" | "screenshot_stable" | "any_change" | "always";
2218
+ pattern?: string | undefined;
2219
+ selector?: string | undefined;
2220
+ text?: string | undefined;
2221
+ threshold?: number | undefined;
2222
+ waitMs?: number | undefined;
2223
+ };
2224
+ recovery: {
2225
+ retries: number;
2226
+ useSelectorMemory: boolean;
2227
+ useAltInteraction: boolean;
2228
+ allowReload: boolean;
2229
+ allowHealer: boolean;
2230
+ };
2231
+ timeoutMs: number;
2232
+ maxFailures: number;
2233
+ kind: "WAIT_FOR";
2234
+ selector?: string | undefined;
2235
+ target?: {
2236
+ text?: string | undefined;
2237
+ role?: string | undefined;
2238
+ label?: string | undefined;
2239
+ near?: string | undefined;
2240
+ placeholder?: string | undefined;
2241
+ exact?: boolean | undefined;
2242
+ } | undefined;
2243
+ } | {
2244
+ locale: string;
2245
+ method: "browser_context" | "ui_interaction" | "storage";
2246
+ description: string;
2247
+ postcondition: {
2248
+ type: "route_matches" | "element_visible" | "element_absent" | "text_contains" | "overlay_dismissed" | "screenshot_stable" | "any_change" | "always";
2249
+ pattern?: string | undefined;
2250
+ selector?: string | undefined;
2251
+ text?: string | undefined;
2252
+ threshold?: number | undefined;
2253
+ waitMs?: number | undefined;
2254
+ };
2255
+ recovery: {
2256
+ retries: number;
2257
+ useSelectorMemory: boolean;
2258
+ useAltInteraction: boolean;
2259
+ allowReload: boolean;
2260
+ allowHealer: boolean;
2261
+ };
2262
+ timeoutMs: number;
2263
+ maxFailures: number;
2264
+ kind: "SET_LOCALE";
2265
+ selector?: string | undefined;
2266
+ storageHints?: {
2267
+ storage: "localStorage" | "sessionStorage";
2268
+ key: string;
2269
+ value: string;
2270
+ }[] | undefined;
2271
+ } | {
2272
+ theme: "light" | "dark";
2273
+ method: "ui_interaction" | "storage" | "color_scheme";
2274
+ description: string;
2275
+ postcondition: {
2276
+ type: "route_matches" | "element_visible" | "element_absent" | "text_contains" | "overlay_dismissed" | "screenshot_stable" | "any_change" | "always";
2277
+ pattern?: string | undefined;
2278
+ selector?: string | undefined;
2279
+ text?: string | undefined;
2280
+ threshold?: number | undefined;
2281
+ waitMs?: number | undefined;
2282
+ };
2283
+ recovery: {
2284
+ retries: number;
2285
+ useSelectorMemory: boolean;
2286
+ useAltInteraction: boolean;
2287
+ allowReload: boolean;
2288
+ allowHealer: boolean;
2289
+ };
2290
+ timeoutMs: number;
2291
+ maxFailures: number;
2292
+ kind: "SET_THEME";
2293
+ selector?: string | undefined;
2294
+ storageHints?: {
2295
+ storage: "localStorage" | "sessionStorage";
2296
+ key: string;
2297
+ value: string;
2298
+ }[] | undefined;
2299
+ } | {
2300
+ url: string;
2301
+ description: string;
2302
+ postcondition: {
2303
+ type: "route_matches" | "element_visible" | "element_absent" | "text_contains" | "overlay_dismissed" | "screenshot_stable" | "any_change" | "always";
2304
+ pattern?: string | undefined;
2305
+ selector?: string | undefined;
2306
+ text?: string | undefined;
2307
+ threshold?: number | undefined;
2308
+ waitMs?: number | undefined;
2309
+ };
2310
+ recovery: {
2311
+ retries: number;
2312
+ useSelectorMemory: boolean;
2313
+ useAltInteraction: boolean;
2314
+ allowReload: boolean;
2315
+ allowHealer: boolean;
2316
+ };
2317
+ timeoutMs: number;
2318
+ maxFailures: number;
2319
+ kind: "NAVIGATE";
2320
+ } | {
2321
+ description: string;
2322
+ postcondition: {
2323
+ type: "route_matches" | "element_visible" | "element_absent" | "text_contains" | "overlay_dismissed" | "screenshot_stable" | "any_change" | "always";
2324
+ pattern?: string | undefined;
2325
+ selector?: string | undefined;
2326
+ text?: string | undefined;
2327
+ threshold?: number | undefined;
2328
+ waitMs?: number | undefined;
2329
+ };
2330
+ recovery: {
2331
+ retries: number;
2332
+ useSelectorMemory: boolean;
2333
+ useAltInteraction: boolean;
2334
+ allowReload: boolean;
2335
+ allowHealer: boolean;
2336
+ };
2337
+ timeoutMs: number;
2338
+ maxFailures: number;
2339
+ kind: "DISMISS_OVERLAYS";
2340
+ } | {
2341
+ urlPattern: string;
2342
+ description: string;
2343
+ postcondition: {
2344
+ type: "route_matches" | "element_visible" | "element_absent" | "text_contains" | "overlay_dismissed" | "screenshot_stable" | "any_change" | "always";
2345
+ pattern?: string | undefined;
2346
+ selector?: string | undefined;
2347
+ text?: string | undefined;
2348
+ threshold?: number | undefined;
2349
+ waitMs?: number | undefined;
2350
+ };
2351
+ recovery: {
2352
+ retries: number;
2353
+ useSelectorMemory: boolean;
2354
+ useAltInteraction: boolean;
2355
+ allowReload: boolean;
2356
+ allowHealer: boolean;
2357
+ };
2358
+ timeoutMs: number;
2359
+ maxFailures: number;
2360
+ kind: "ASSERT_ROUTE";
2361
+ } | {
2362
+ selectors: string[];
2363
+ matchAll: boolean;
2364
+ description: string;
2365
+ postcondition: {
2366
+ type: "route_matches" | "element_visible" | "element_absent" | "text_contains" | "overlay_dismissed" | "screenshot_stable" | "any_change" | "always";
2367
+ pattern?: string | undefined;
2368
+ selector?: string | undefined;
2369
+ text?: string | undefined;
2370
+ threshold?: number | undefined;
2371
+ waitMs?: number | undefined;
2372
+ };
2373
+ recovery: {
2374
+ retries: number;
2375
+ useSelectorMemory: boolean;
2376
+ useAltInteraction: boolean;
2377
+ allowReload: boolean;
2378
+ allowHealer: boolean;
2379
+ };
2380
+ timeoutMs: number;
2381
+ maxFailures: number;
2382
+ kind: "ASSERT_SURFACE";
2383
+ } | {
2384
+ selector: string;
2385
+ description: string;
2386
+ postcondition: {
2387
+ type: "route_matches" | "element_visible" | "element_absent" | "text_contains" | "overlay_dismissed" | "screenshot_stable" | "any_change" | "always";
2388
+ pattern?: string | undefined;
2389
+ selector?: string | undefined;
2390
+ text?: string | undefined;
2391
+ threshold?: number | undefined;
2392
+ waitMs?: number | undefined;
2393
+ };
2394
+ recovery: {
2395
+ retries: number;
2396
+ useSelectorMemory: boolean;
2397
+ useAltInteraction: boolean;
2398
+ allowReload: boolean;
2399
+ allowHealer: boolean;
2400
+ };
2401
+ timeoutMs: number;
2402
+ maxFailures: number;
2403
+ kind: "CLICK";
2404
+ target?: {
2405
+ text?: string | undefined;
2406
+ role?: string | undefined;
2407
+ label?: string | undefined;
2408
+ near?: string | undefined;
2409
+ placeholder?: string | undefined;
2410
+ exact?: boolean | undefined;
2411
+ } | undefined;
2412
+ fingerprint?: string | undefined;
2413
+ selectorAlternates?: string[] | undefined;
2414
+ } | {
2415
+ selector: string;
2416
+ text: string;
2417
+ clearFirst: boolean;
2418
+ description: string;
2419
+ postcondition: {
2420
+ type: "route_matches" | "element_visible" | "element_absent" | "text_contains" | "overlay_dismissed" | "screenshot_stable" | "any_change" | "always";
2421
+ pattern?: string | undefined;
2422
+ selector?: string | undefined;
2423
+ text?: string | undefined;
2424
+ threshold?: number | undefined;
2425
+ waitMs?: number | undefined;
2426
+ };
2427
+ recovery: {
2428
+ retries: number;
2429
+ useSelectorMemory: boolean;
2430
+ useAltInteraction: boolean;
2431
+ allowReload: boolean;
2432
+ allowHealer: boolean;
2433
+ };
2434
+ timeoutMs: number;
2435
+ maxFailures: number;
2436
+ kind: "TYPE";
2437
+ target?: {
2438
+ text?: string | undefined;
2439
+ role?: string | undefined;
2440
+ label?: string | undefined;
2441
+ near?: string | undefined;
2442
+ placeholder?: string | undefined;
2443
+ exact?: boolean | undefined;
2444
+ } | undefined;
2445
+ fingerprint?: string | undefined;
2446
+ selectorAlternates?: string[] | undefined;
2447
+ } | {
2448
+ key: string;
2449
+ description: string;
2450
+ postcondition: {
2451
+ type: "route_matches" | "element_visible" | "element_absent" | "text_contains" | "overlay_dismissed" | "screenshot_stable" | "any_change" | "always";
2452
+ pattern?: string | undefined;
2453
+ selector?: string | undefined;
2454
+ text?: string | undefined;
2455
+ threshold?: number | undefined;
2456
+ waitMs?: number | undefined;
2457
+ };
2458
+ recovery: {
2459
+ retries: number;
2460
+ useSelectorMemory: boolean;
2461
+ useAltInteraction: boolean;
2462
+ allowReload: boolean;
2463
+ allowHealer: boolean;
2464
+ };
2465
+ timeoutMs: number;
2466
+ maxFailures: number;
2467
+ kind: "PRESS_KEY";
2468
+ } | {
2469
+ direction: "up" | "down" | "left" | "right";
2470
+ description: string;
2471
+ postcondition: {
2472
+ type: "route_matches" | "element_visible" | "element_absent" | "text_contains" | "overlay_dismissed" | "screenshot_stable" | "any_change" | "always";
2473
+ pattern?: string | undefined;
2474
+ selector?: string | undefined;
2475
+ text?: string | undefined;
2476
+ threshold?: number | undefined;
2477
+ waitMs?: number | undefined;
2478
+ };
2479
+ recovery: {
2480
+ retries: number;
2481
+ useSelectorMemory: boolean;
2482
+ useAltInteraction: boolean;
2483
+ allowReload: boolean;
2484
+ allowHealer: boolean;
2485
+ };
2486
+ timeoutMs: number;
2487
+ maxFailures: number;
2488
+ kind: "SCROLL";
2489
+ amount?: number | undefined;
2490
+ targetSelector?: string | undefined;
2491
+ target?: {
2492
+ text?: string | undefined;
2493
+ role?: string | undefined;
2494
+ label?: string | undefined;
2495
+ near?: string | undefined;
2496
+ placeholder?: string | undefined;
2497
+ exact?: boolean | undefined;
2498
+ } | undefined;
2499
+ } | {
2500
+ description: string;
2501
+ postcondition: {
2502
+ type: "route_matches" | "element_visible" | "element_absent" | "text_contains" | "overlay_dismissed" | "screenshot_stable" | "any_change" | "always";
2503
+ pattern?: string | undefined;
2504
+ selector?: string | undefined;
2505
+ text?: string | undefined;
2506
+ threshold?: number | undefined;
2507
+ waitMs?: number | undefined;
2508
+ };
2509
+ recovery: {
2510
+ retries: number;
2511
+ useSelectorMemory: boolean;
2512
+ useAltInteraction: boolean;
2513
+ allowReload: boolean;
2514
+ allowHealer: boolean;
2515
+ };
2516
+ timeoutMs: number;
2517
+ maxFailures: number;
2518
+ kind: "CAPTURE_SCREENSHOT";
2519
+ captureId?: string | undefined;
2520
+ captureName?: string | undefined;
2521
+ elementSelector?: string | undefined;
2522
+ } | {
2523
+ description: string;
2524
+ postcondition: {
2525
+ type: "route_matches" | "element_visible" | "element_absent" | "text_contains" | "overlay_dismissed" | "screenshot_stable" | "any_change" | "always";
2526
+ pattern?: string | undefined;
2527
+ selector?: string | undefined;
2528
+ text?: string | undefined;
2529
+ threshold?: number | undefined;
2530
+ waitMs?: number | undefined;
2531
+ };
2532
+ recovery: {
2533
+ retries: number;
2534
+ useSelectorMemory: boolean;
2535
+ useAltInteraction: boolean;
2536
+ allowReload: boolean;
2537
+ allowHealer: boolean;
2538
+ };
2539
+ timeoutMs: number;
2540
+ maxFailures: number;
2541
+ kind: "BEGIN_CLIP";
2542
+ clipId?: string | undefined;
2543
+ clipName?: string | undefined;
2544
+ } | {
2545
+ description: string;
2546
+ postcondition: {
2547
+ type: "route_matches" | "element_visible" | "element_absent" | "text_contains" | "overlay_dismissed" | "screenshot_stable" | "any_change" | "always";
2548
+ pattern?: string | undefined;
2549
+ selector?: string | undefined;
2550
+ text?: string | undefined;
2551
+ threshold?: number | undefined;
2552
+ waitMs?: number | undefined;
2553
+ };
2554
+ recovery: {
2555
+ retries: number;
2556
+ useSelectorMemory: boolean;
2557
+ useAltInteraction: boolean;
2558
+ allowReload: boolean;
2559
+ allowHealer: boolean;
2560
+ };
2561
+ timeoutMs: number;
2562
+ maxFailures: number;
2563
+ kind: "END_CLIP";
2564
+ clipId?: string | undefined;
2565
+ clipName?: string | undefined;
2566
+ })[];
2567
+ artifactPlan: {
2568
+ mediaMode: "clip" | "screenshot";
2569
+ format?: {
2570
+ clipFormat?: "gif" | "mp4" | "both" | undefined;
2571
+ screenshotFormat?: "png" | "jpeg" | undefined;
2572
+ } | undefined;
2573
+ cursorTheme?: "minimal" | "macos" | "windows" | undefined;
2574
+ applyMockup?: boolean | undefined;
2575
+ applyStatusBar?: boolean | undefined;
2576
+ };
2577
+ compileFingerprint: string;
2578
+ compiledAt: string;
2579
+ compiledWith?: string | undefined;
2580
+ }>;