devharness 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (627) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +185 -0
  3. package/build/atomic-write.d.ts +28 -0
  4. package/build/atomic-write.d.ts.map +1 -0
  5. package/build/atomic-write.js +126 -0
  6. package/build/atomic-write.js.map +1 -0
  7. package/build/cdp-manager.d.ts +524 -0
  8. package/build/cdp-manager.d.ts.map +1 -0
  9. package/build/cdp-manager.js +1828 -0
  10. package/build/cdp-manager.js.map +1 -0
  11. package/build/cdp-manager.test.d.ts +6 -0
  12. package/build/cdp-manager.test.d.ts.map +1 -0
  13. package/build/cdp-manager.test.js +546 -0
  14. package/build/cdp-manager.test.js.map +1 -0
  15. package/build/chrome-launcher.d.ts +400 -0
  16. package/build/chrome-launcher.d.ts.map +1 -0
  17. package/build/chrome-launcher.js +1071 -0
  18. package/build/chrome-launcher.js.map +1 -0
  19. package/build/chrome-launcher.test.d.ts +11 -0
  20. package/build/chrome-launcher.test.d.ts.map +1 -0
  21. package/build/chrome-launcher.test.js +204 -0
  22. package/build/chrome-launcher.test.js.map +1 -0
  23. package/build/clickable-cache.d.ts +73 -0
  24. package/build/clickable-cache.d.ts.map +1 -0
  25. package/build/clickable-cache.js +90 -0
  26. package/build/clickable-cache.js.map +1 -0
  27. package/build/command-recorder.d.ts +401 -0
  28. package/build/command-recorder.d.ts.map +1 -0
  29. package/build/command-recorder.js +701 -0
  30. package/build/command-recorder.js.map +1 -0
  31. package/build/config.d.ts +390 -0
  32. package/build/config.d.ts.map +1 -0
  33. package/build/config.js +826 -0
  34. package/build/config.js.map +1 -0
  35. package/build/config.test.d.ts +2 -0
  36. package/build/config.test.d.ts.map +1 -0
  37. package/build/config.test.js +112 -0
  38. package/build/config.test.js.map +1 -0
  39. package/build/connection-manager.d.ts +159 -0
  40. package/build/connection-manager.d.ts.map +1 -0
  41. package/build/connection-manager.js +432 -0
  42. package/build/connection-manager.js.map +1 -0
  43. package/build/connection-manager.test.d.ts +11 -0
  44. package/build/connection-manager.test.d.ts.map +1 -0
  45. package/build/connection-manager.test.js +114 -0
  46. package/build/connection-manager.test.js.map +1 -0
  47. package/build/console-monitor.d.ts +150 -0
  48. package/build/console-monitor.d.ts.map +1 -0
  49. package/build/console-monitor.js +454 -0
  50. package/build/console-monitor.js.map +1 -0
  51. package/build/dashboard/bundle.js +1 -0
  52. package/build/dashboard/dashboard-client.d.ts +42 -0
  53. package/build/dashboard/dashboard-client.d.ts.map +1 -0
  54. package/build/dashboard/dashboard-client.js +184 -0
  55. package/build/dashboard/dashboard-client.js.map +1 -0
  56. package/build/dashboard/dashboard-hub.d.ts +50 -0
  57. package/build/dashboard/dashboard-hub.d.ts.map +1 -0
  58. package/build/dashboard/dashboard-hub.js +654 -0
  59. package/build/dashboard/dashboard-hub.js.map +1 -0
  60. package/build/dashboard/hub-lock.d.ts +16 -0
  61. package/build/dashboard/hub-lock.d.ts.map +1 -0
  62. package/build/dashboard/hub-lock.js +77 -0
  63. package/build/dashboard/hub-lock.js.map +1 -0
  64. package/build/dashboard/index.d.ts +25 -0
  65. package/build/dashboard/index.d.ts.map +1 -0
  66. package/build/dashboard/index.js +77 -0
  67. package/build/dashboard/index.js.map +1 -0
  68. package/build/dashboard/types.d.ts +83 -0
  69. package/build/dashboard/types.d.ts.map +1 -0
  70. package/build/dashboard/types.js +6 -0
  71. package/build/dashboard/types.js.map +1 -0
  72. package/build/debug-logger.d.ts +85 -0
  73. package/build/debug-logger.d.ts.map +1 -0
  74. package/build/debug-logger.js +195 -0
  75. package/build/debug-logger.js.map +1 -0
  76. package/build/debugger-aware-wrapper.d.ts +37 -0
  77. package/build/debugger-aware-wrapper.d.ts.map +1 -0
  78. package/build/debugger-aware-wrapper.js +128 -0
  79. package/build/debugger-aware-wrapper.js.map +1 -0
  80. package/build/dom-change-monitor.d.ts +92 -0
  81. package/build/dom-change-monitor.d.ts.map +1 -0
  82. package/build/dom-change-monitor.js +437 -0
  83. package/build/dom-change-monitor.js.map +1 -0
  84. package/build/element-collector.d.ts +16 -0
  85. package/build/element-collector.d.ts.map +1 -0
  86. package/build/element-collector.js +207 -0
  87. package/build/element-collector.js.map +1 -0
  88. package/build/error-helpers.d.ts +43 -0
  89. package/build/error-helpers.d.ts.map +1 -0
  90. package/build/error-helpers.js +143 -0
  91. package/build/error-helpers.js.map +1 -0
  92. package/build/formatters/console-formatter.d.ts +160 -0
  93. package/build/formatters/console-formatter.d.ts.map +1 -0
  94. package/build/formatters/console-formatter.js +338 -0
  95. package/build/formatters/console-formatter.js.map +1 -0
  96. package/build/helpers/parser-plugins.d.ts +44 -0
  97. package/build/helpers/parser-plugins.d.ts.map +1 -0
  98. package/build/helpers/parser-plugins.js +102 -0
  99. package/build/helpers/parser-plugins.js.map +1 -0
  100. package/build/helpers/paths.d.ts +79 -0
  101. package/build/helpers/paths.d.ts.map +1 -0
  102. package/build/helpers/paths.js +168 -0
  103. package/build/helpers/paths.js.map +1 -0
  104. package/build/helpers/process-liveness.d.ts +24 -0
  105. package/build/helpers/process-liveness.d.ts.map +1 -0
  106. package/build/helpers/process-liveness.js +36 -0
  107. package/build/helpers/process-liveness.js.map +1 -0
  108. package/build/helpers/process-liveness.test.d.ts +2 -0
  109. package/build/helpers/process-liveness.test.d.ts.map +1 -0
  110. package/build/helpers/process-liveness.test.js +40 -0
  111. package/build/helpers/process-liveness.test.js.map +1 -0
  112. package/build/helpers/sequence-tree.d.ts +27 -0
  113. package/build/helpers/sequence-tree.d.ts.map +1 -0
  114. package/build/helpers/sequence-tree.js +80 -0
  115. package/build/helpers/sequence-tree.js.map +1 -0
  116. package/build/helpers/sequence-tree.test.d.ts +2 -0
  117. package/build/helpers/sequence-tree.test.d.ts.map +1 -0
  118. package/build/helpers/sequence-tree.test.js +122 -0
  119. package/build/helpers/sequence-tree.test.js.map +1 -0
  120. package/build/index.d.ts +3 -0
  121. package/build/index.d.ts.map +1 -0
  122. package/build/index.js +2007 -0
  123. package/build/index.js.map +1 -0
  124. package/build/interaction-recorder.d.ts +214 -0
  125. package/build/interaction-recorder.d.ts.map +1 -0
  126. package/build/interaction-recorder.js +2007 -0
  127. package/build/interaction-recorder.js.map +1 -0
  128. package/build/issue-tracker.d.ts +107 -0
  129. package/build/issue-tracker.d.ts.map +1 -0
  130. package/build/issue-tracker.js +582 -0
  131. package/build/issue-tracker.js.map +1 -0
  132. package/build/issue-tracker.test.d.ts +2 -0
  133. package/build/issue-tracker.test.d.ts.map +1 -0
  134. package/build/issue-tracker.test.js +88 -0
  135. package/build/issue-tracker.test.js.map +1 -0
  136. package/build/launch-chrome-port.test.d.ts +14 -0
  137. package/build/launch-chrome-port.test.d.ts.map +1 -0
  138. package/build/launch-chrome-port.test.js +97 -0
  139. package/build/launch-chrome-port.test.js.map +1 -0
  140. package/build/log-processor/orchestrator.d.ts +32 -0
  141. package/build/log-processor/orchestrator.d.ts.map +1 -0
  142. package/build/log-processor/orchestrator.js +27 -0
  143. package/build/log-processor/orchestrator.js.map +1 -0
  144. package/build/logpoint-execution-tracker.d.ts +57 -0
  145. package/build/logpoint-execution-tracker.d.ts.map +1 -0
  146. package/build/logpoint-execution-tracker.js +112 -0
  147. package/build/logpoint-execution-tracker.js.map +1 -0
  148. package/build/mcp-supervisor.d.ts +3 -0
  149. package/build/mcp-supervisor.d.ts.map +1 -0
  150. package/build/mcp-supervisor.js +211 -0
  151. package/build/mcp-supervisor.js.map +1 -0
  152. package/build/messages.d.ts +165 -0
  153. package/build/messages.d.ts.map +1 -0
  154. package/build/messages.js +574 -0
  155. package/build/messages.js.map +1 -0
  156. package/build/network-monitor.d.ts +172 -0
  157. package/build/network-monitor.d.ts.map +1 -0
  158. package/build/network-monitor.js +350 -0
  159. package/build/network-monitor.js.map +1 -0
  160. package/build/overlays.d.ts +49 -0
  161. package/build/overlays.d.ts.map +1 -0
  162. package/build/overlays.js +409 -0
  163. package/build/overlays.js.map +1 -0
  164. package/build/persistent-profiles.test.d.ts +15 -0
  165. package/build/persistent-profiles.test.d.ts.map +1 -0
  166. package/build/persistent-profiles.test.js +470 -0
  167. package/build/persistent-profiles.test.js.map +1 -0
  168. package/build/port-reserver.d.ts +32 -0
  169. package/build/port-reserver.d.ts.map +1 -0
  170. package/build/port-reserver.js +118 -0
  171. package/build/port-reserver.js.map +1 -0
  172. package/build/puppeteer-manager.d.ts +47 -0
  173. package/build/puppeteer-manager.d.ts.map +1 -0
  174. package/build/puppeteer-manager.js +116 -0
  175. package/build/puppeteer-manager.js.map +1 -0
  176. package/build/recording-coverage.test.d.ts +12 -0
  177. package/build/recording-coverage.test.d.ts.map +1 -0
  178. package/build/recording-coverage.test.js +72 -0
  179. package/build/recording-coverage.test.js.map +1 -0
  180. package/build/reference-validator.d.ts +47 -0
  181. package/build/reference-validator.d.ts.map +1 -0
  182. package/build/reference-validator.js +86 -0
  183. package/build/reference-validator.js.map +1 -0
  184. package/build/reference-validator.test.d.ts +5 -0
  185. package/build/reference-validator.test.d.ts.map +1 -0
  186. package/build/reference-validator.test.js +243 -0
  187. package/build/reference-validator.test.js.map +1 -0
  188. package/build/replay-cursor.d.ts +27 -0
  189. package/build/replay-cursor.d.ts.map +1 -0
  190. package/build/replay-cursor.js +240 -0
  191. package/build/replay-cursor.js.map +1 -0
  192. package/build/runners/docker-compose-runner.d.ts +69 -0
  193. package/build/runners/docker-compose-runner.d.ts.map +1 -0
  194. package/build/runners/docker-compose-runner.js +438 -0
  195. package/build/runners/docker-compose-runner.js.map +1 -0
  196. package/build/runners/docker-runner.d.ts +65 -0
  197. package/build/runners/docker-runner.d.ts.map +1 -0
  198. package/build/runners/docker-runner.js +414 -0
  199. package/build/runners/docker-runner.js.map +1 -0
  200. package/build/runners/index.d.ts +19 -0
  201. package/build/runners/index.d.ts.map +1 -0
  202. package/build/runners/index.js +35 -0
  203. package/build/runners/index.js.map +1 -0
  204. package/build/runners/native-runner.d.ts +95 -0
  205. package/build/runners/native-runner.d.ts.map +1 -0
  206. package/build/runners/native-runner.js +370 -0
  207. package/build/runners/native-runner.js.map +1 -0
  208. package/build/runners/types.d.ts +147 -0
  209. package/build/runners/types.d.ts.map +1 -0
  210. package/build/runners/types.js +25 -0
  211. package/build/runners/types.js.map +1 -0
  212. package/build/self-restart.d.ts +12 -0
  213. package/build/self-restart.d.ts.map +1 -0
  214. package/build/self-restart.js +41 -0
  215. package/build/self-restart.js.map +1 -0
  216. package/build/self-restart.test.d.ts +2 -0
  217. package/build/self-restart.test.d.ts.map +1 -0
  218. package/build/self-restart.test.js +34 -0
  219. package/build/self-restart.test.js.map +1 -0
  220. package/build/server-claims.d.ts +161 -0
  221. package/build/server-claims.d.ts.map +1 -0
  222. package/build/server-claims.js +382 -0
  223. package/build/server-claims.js.map +1 -0
  224. package/build/server-claims.test.d.ts +2 -0
  225. package/build/server-claims.test.d.ts.map +1 -0
  226. package/build/server-claims.test.js +197 -0
  227. package/build/server-claims.test.js.map +1 -0
  228. package/build/server-manager.d.ts +438 -0
  229. package/build/server-manager.d.ts.map +1 -0
  230. package/build/server-manager.js +1674 -0
  231. package/build/server-manager.js.map +1 -0
  232. package/build/server-manager.test.d.ts +17 -0
  233. package/build/server-manager.test.d.ts.map +1 -0
  234. package/build/server-manager.test.js +122 -0
  235. package/build/server-manager.test.js.map +1 -0
  236. package/build/server-ownership.test.d.ts +2 -0
  237. package/build/server-ownership.test.d.ts.map +1 -0
  238. package/build/server-ownership.test.js +238 -0
  239. package/build/server-ownership.test.js.map +1 -0
  240. package/build/server-watcher.d.ts +21 -0
  241. package/build/server-watcher.d.ts.map +1 -0
  242. package/build/server-watcher.js +105 -0
  243. package/build/server-watcher.js.map +1 -0
  244. package/build/session-detector.d.ts +47 -0
  245. package/build/session-detector.d.ts.map +1 -0
  246. package/build/session-detector.js +229 -0
  247. package/build/session-detector.js.map +1 -0
  248. package/build/session-detector.test.d.ts +9 -0
  249. package/build/session-detector.test.d.ts.map +1 -0
  250. package/build/session-detector.test.js +45 -0
  251. package/build/session-detector.test.js.map +1 -0
  252. package/build/sourcemap-handler.d.ts +114 -0
  253. package/build/sourcemap-handler.d.ts.map +1 -0
  254. package/build/sourcemap-handler.js +479 -0
  255. package/build/sourcemap-handler.js.map +1 -0
  256. package/build/supervisor/child-manager.d.ts +43 -0
  257. package/build/supervisor/child-manager.d.ts.map +1 -0
  258. package/build/supervisor/child-manager.js +148 -0
  259. package/build/supervisor/child-manager.js.map +1 -0
  260. package/build/supervisor/child-manager.test.d.ts +2 -0
  261. package/build/supervisor/child-manager.test.d.ts.map +1 -0
  262. package/build/supervisor/child-manager.test.js +107 -0
  263. package/build/supervisor/child-manager.test.js.map +1 -0
  264. package/build/supervisor/client-watcher.d.ts +48 -0
  265. package/build/supervisor/client-watcher.d.ts.map +1 -0
  266. package/build/supervisor/client-watcher.js +186 -0
  267. package/build/supervisor/client-watcher.js.map +1 -0
  268. package/build/supervisor/client-watcher.test.d.ts +2 -0
  269. package/build/supervisor/client-watcher.test.d.ts.map +1 -0
  270. package/build/supervisor/client-watcher.test.js +121 -0
  271. package/build/supervisor/client-watcher.test.js.map +1 -0
  272. package/build/supervisor/idle-config.d.ts +30 -0
  273. package/build/supervisor/idle-config.d.ts.map +1 -0
  274. package/build/supervisor/idle-config.js +76 -0
  275. package/build/supervisor/idle-config.js.map +1 -0
  276. package/build/supervisor/idle-config.test.d.ts +2 -0
  277. package/build/supervisor/idle-config.test.d.ts.map +1 -0
  278. package/build/supervisor/idle-config.test.js +119 -0
  279. package/build/supervisor/idle-config.test.js.map +1 -0
  280. package/build/supervisor/ndjson-reader.d.ts +47 -0
  281. package/build/supervisor/ndjson-reader.d.ts.map +1 -0
  282. package/build/supervisor/ndjson-reader.js +75 -0
  283. package/build/supervisor/ndjson-reader.js.map +1 -0
  284. package/build/supervisor/ndjson-reader.test.d.ts +2 -0
  285. package/build/supervisor/ndjson-reader.test.d.ts.map +1 -0
  286. package/build/supervisor/ndjson-reader.test.js +92 -0
  287. package/build/supervisor/ndjson-reader.test.js.map +1 -0
  288. package/build/supervisor/pidfile.d.ts +11 -0
  289. package/build/supervisor/pidfile.d.ts.map +1 -0
  290. package/build/supervisor/pidfile.js +29 -0
  291. package/build/supervisor/pidfile.js.map +1 -0
  292. package/build/supervisor/pidfile.test.d.ts +8 -0
  293. package/build/supervisor/pidfile.test.d.ts.map +1 -0
  294. package/build/supervisor/pidfile.test.js +46 -0
  295. package/build/supervisor/pidfile.test.js.map +1 -0
  296. package/build/supervisor/restart-coordinator.d.ts +73 -0
  297. package/build/supervisor/restart-coordinator.d.ts.map +1 -0
  298. package/build/supervisor/restart-coordinator.js +300 -0
  299. package/build/supervisor/restart-coordinator.js.map +1 -0
  300. package/build/supervisor/restart-coordinator.test.d.ts +2 -0
  301. package/build/supervisor/restart-coordinator.test.d.ts.map +1 -0
  302. package/build/supervisor/restart-coordinator.test.js +434 -0
  303. package/build/supervisor/restart-coordinator.test.js.map +1 -0
  304. package/build/test-support/fake-execute-tool-call.d.ts +11 -0
  305. package/build/test-support/fake-execute-tool-call.d.ts.map +1 -0
  306. package/build/test-support/fake-execute-tool-call.js +19 -0
  307. package/build/test-support/fake-execute-tool-call.js.map +1 -0
  308. package/build/tool-error.d.ts +14 -0
  309. package/build/tool-error.d.ts.map +1 -0
  310. package/build/tool-error.js +18 -0
  311. package/build/tool-error.js.map +1 -0
  312. package/build/tool-response.d.ts +293 -0
  313. package/build/tool-response.d.ts.map +1 -0
  314. package/build/tool-response.js +365 -0
  315. package/build/tool-response.js.map +1 -0
  316. package/build/tools/assert-tools.d.ts +62 -0
  317. package/build/tools/assert-tools.d.ts.map +1 -0
  318. package/build/tools/assert-tools.js +330 -0
  319. package/build/tools/assert-tools.js.map +1 -0
  320. package/build/tools/breakpoint-await-abort.test.d.ts +2 -0
  321. package/build/tools/breakpoint-await-abort.test.d.ts.map +1 -0
  322. package/build/tools/breakpoint-await-abort.test.js +124 -0
  323. package/build/tools/breakpoint-await-abort.test.js.map +1 -0
  324. package/build/tools/breakpoint-tools.d.ts +99 -0
  325. package/build/tools/breakpoint-tools.d.ts.map +1 -0
  326. package/build/tools/breakpoint-tools.js +1197 -0
  327. package/build/tools/breakpoint-tools.js.map +1 -0
  328. package/build/tools/config-tools.d.ts +58 -0
  329. package/build/tools/config-tools.d.ts.map +1 -0
  330. package/build/tools/config-tools.js +180 -0
  331. package/build/tools/config-tools.js.map +1 -0
  332. package/build/tools/connection-routing.test.d.ts +12 -0
  333. package/build/tools/connection-routing.test.d.ts.map +1 -0
  334. package/build/tools/connection-routing.test.js +206 -0
  335. package/build/tools/connection-routing.test.js.map +1 -0
  336. package/build/tools/console-tools.d.ts +84 -0
  337. package/build/tools/console-tools.d.ts.map +1 -0
  338. package/build/tools/console-tools.js +241 -0
  339. package/build/tools/console-tools.js.map +1 -0
  340. package/build/tools/content-tools.d.ts +74 -0
  341. package/build/tools/content-tools.d.ts.map +1 -0
  342. package/build/tools/content-tools.js +582 -0
  343. package/build/tools/content-tools.js.map +1 -0
  344. package/build/tools/dashboard-tools.d.ts +38 -0
  345. package/build/tools/dashboard-tools.d.ts.map +1 -0
  346. package/build/tools/dashboard-tools.js +123 -0
  347. package/build/tools/dashboard-tools.js.map +1 -0
  348. package/build/tools/dom-tools.d.ts +41 -0
  349. package/build/tools/dom-tools.d.ts.map +1 -0
  350. package/build/tools/dom-tools.js +277 -0
  351. package/build/tools/dom-tools.js.map +1 -0
  352. package/build/tools/download-tools.d.ts +55 -0
  353. package/build/tools/download-tools.d.ts.map +1 -0
  354. package/build/tools/download-tools.js +280 -0
  355. package/build/tools/download-tools.js.map +1 -0
  356. package/build/tools/execution-tools.d.ts +40 -0
  357. package/build/tools/execution-tools.d.ts.map +1 -0
  358. package/build/tools/execution-tools.js +121 -0
  359. package/build/tools/execution-tools.js.map +1 -0
  360. package/build/tools/input-abort.test.d.ts +2 -0
  361. package/build/tools/input-abort.test.d.ts.map +1 -0
  362. package/build/tools/input-abort.test.js +227 -0
  363. package/build/tools/input-abort.test.js.map +1 -0
  364. package/build/tools/input-ambiguous-selector.test.d.ts +2 -0
  365. package/build/tools/input-ambiguous-selector.test.d.ts.map +1 -0
  366. package/build/tools/input-ambiguous-selector.test.js +34 -0
  367. package/build/tools/input-ambiguous-selector.test.js.map +1 -0
  368. package/build/tools/input-tools.d.ts +168 -0
  369. package/build/tools/input-tools.d.ts.map +1 -0
  370. package/build/tools/input-tools.js +1397 -0
  371. package/build/tools/input-tools.js.map +1 -0
  372. package/build/tools/inspection-tools.d.ts +112 -0
  373. package/build/tools/inspection-tools.d.ts.map +1 -0
  374. package/build/tools/inspection-tools.js +637 -0
  375. package/build/tools/inspection-tools.js.map +1 -0
  376. package/build/tools/interpolation.d.ts +30 -0
  377. package/build/tools/interpolation.d.ts.map +1 -0
  378. package/build/tools/interpolation.js +143 -0
  379. package/build/tools/interpolation.js.map +1 -0
  380. package/build/tools/issues-abort-hygiene.test.d.ts +2 -0
  381. package/build/tools/issues-abort-hygiene.test.d.ts.map +1 -0
  382. package/build/tools/issues-abort-hygiene.test.js +79 -0
  383. package/build/tools/issues-abort-hygiene.test.js.map +1 -0
  384. package/build/tools/issues-tools.d.ts +98 -0
  385. package/build/tools/issues-tools.d.ts.map +1 -0
  386. package/build/tools/issues-tools.js +821 -0
  387. package/build/tools/issues-tools.js.map +1 -0
  388. package/build/tools/issues-tools.test.d.ts +8 -0
  389. package/build/tools/issues-tools.test.d.ts.map +1 -0
  390. package/build/tools/issues-tools.test.js +184 -0
  391. package/build/tools/issues-tools.test.js.map +1 -0
  392. package/build/tools/modal-tools.d.ts +73 -0
  393. package/build/tools/modal-tools.d.ts.map +1 -0
  394. package/build/tools/modal-tools.js +161 -0
  395. package/build/tools/modal-tools.js.map +1 -0
  396. package/build/tools/network-tools.d.ts +72 -0
  397. package/build/tools/network-tools.d.ts.map +1 -0
  398. package/build/tools/network-tools.js +432 -0
  399. package/build/tools/network-tools.js.map +1 -0
  400. package/build/tools/page-tools.d.ts +78 -0
  401. package/build/tools/page-tools.d.ts.map +1 -0
  402. package/build/tools/page-tools.js +255 -0
  403. package/build/tools/page-tools.js.map +1 -0
  404. package/build/tools/plugin-tools.d.ts +16 -0
  405. package/build/tools/plugin-tools.d.ts.map +1 -0
  406. package/build/tools/plugin-tools.js +17 -0
  407. package/build/tools/plugin-tools.js.map +1 -0
  408. package/build/tools/replay-abort.test.d.ts +2 -0
  409. package/build/tools/replay-abort.test.d.ts.map +1 -0
  410. package/build/tools/replay-abort.test.js +259 -0
  411. package/build/tools/replay-abort.test.js.map +1 -0
  412. package/build/tools/replay-add-conditional.test.d.ts +2 -0
  413. package/build/tools/replay-add-conditional.test.d.ts.map +1 -0
  414. package/build/tools/replay-add-conditional.test.js +205 -0
  415. package/build/tools/replay-add-conditional.test.js.map +1 -0
  416. package/build/tools/replay-background-run.test.d.ts +2 -0
  417. package/build/tools/replay-background-run.test.d.ts.map +1 -0
  418. package/build/tools/replay-background-run.test.js +176 -0
  419. package/build/tools/replay-background-run.test.js.map +1 -0
  420. package/build/tools/replay-capture-variables.test.d.ts +2 -0
  421. package/build/tools/replay-capture-variables.test.d.ts.map +1 -0
  422. package/build/tools/replay-capture-variables.test.js +331 -0
  423. package/build/tools/replay-capture-variables.test.js.map +1 -0
  424. package/build/tools/replay-conditional-idb-and-launch.test.d.ts +11 -0
  425. package/build/tools/replay-conditional-idb-and-launch.test.d.ts.map +1 -0
  426. package/build/tools/replay-conditional-idb-and-launch.test.js +429 -0
  427. package/build/tools/replay-conditional-idb-and-launch.test.js.map +1 -0
  428. package/build/tools/replay-conditional-timeout.test.d.ts +14 -0
  429. package/build/tools/replay-conditional-timeout.test.d.ts.map +1 -0
  430. package/build/tools/replay-conditional-timeout.test.js +126 -0
  431. package/build/tools/replay-conditional-timeout.test.js.map +1 -0
  432. package/build/tools/replay-declare.test.d.ts +2 -0
  433. package/build/tools/replay-declare.test.d.ts.map +1 -0
  434. package/build/tools/replay-declare.test.js +106 -0
  435. package/build/tools/replay-declare.test.js.map +1 -0
  436. package/build/tools/replay-declared-browser-cleanup.test.d.ts +2 -0
  437. package/build/tools/replay-declared-browser-cleanup.test.d.ts.map +1 -0
  438. package/build/tools/replay-declared-browser-cleanup.test.js +103 -0
  439. package/build/tools/replay-declared-browser-cleanup.test.js.map +1 -0
  440. package/build/tools/replay-declared-profile.test.d.ts +2 -0
  441. package/build/tools/replay-declared-profile.test.d.ts.map +1 -0
  442. package/build/tools/replay-declared-profile.test.js +116 -0
  443. package/build/tools/replay-declared-profile.test.js.map +1 -0
  444. package/build/tools/replay-executor.d.ts +556 -0
  445. package/build/tools/replay-executor.d.ts.map +1 -0
  446. package/build/tools/replay-executor.js +2347 -0
  447. package/build/tools/replay-executor.js.map +1 -0
  448. package/build/tools/replay-folder-save.test.d.ts +2 -0
  449. package/build/tools/replay-folder-save.test.d.ts.map +1 -0
  450. package/build/tools/replay-folder-save.test.js +63 -0
  451. package/build/tools/replay-folder-save.test.js.map +1 -0
  452. package/build/tools/replay-formatters.d.ts +148 -0
  453. package/build/tools/replay-formatters.d.ts.map +1 -0
  454. package/build/tools/replay-formatters.js +856 -0
  455. package/build/tools/replay-formatters.js.map +1 -0
  456. package/build/tools/replay-kill-chrome-on-finish.test.d.ts +2 -0
  457. package/build/tools/replay-kill-chrome-on-finish.test.d.ts.map +1 -0
  458. package/build/tools/replay-kill-chrome-on-finish.test.js +175 -0
  459. package/build/tools/replay-kill-chrome-on-finish.test.js.map +1 -0
  460. package/build/tools/replay-multi-connection.test.d.ts +2 -0
  461. package/build/tools/replay-multi-connection.test.d.ts.map +1 -0
  462. package/build/tools/replay-multi-connection.test.js +547 -0
  463. package/build/tools/replay-multi-connection.test.js.map +1 -0
  464. package/build/tools/replay-output-and-record-options.test.d.ts +2 -0
  465. package/build/tools/replay-output-and-record-options.test.d.ts.map +1 -0
  466. package/build/tools/replay-output-and-record-options.test.js +240 -0
  467. package/build/tools/replay-output-and-record-options.test.js.map +1 -0
  468. package/build/tools/replay-production-error-shape.test.d.ts +7 -0
  469. package/build/tools/replay-production-error-shape.test.d.ts.map +1 -0
  470. package/build/tools/replay-production-error-shape.test.js +93 -0
  471. package/build/tools/replay-production-error-shape.test.js.map +1 -0
  472. package/build/tools/replay-rebase.test.d.ts +2 -0
  473. package/build/tools/replay-rebase.test.d.ts.map +1 -0
  474. package/build/tools/replay-rebase.test.js +58 -0
  475. package/build/tools/replay-rebase.test.js.map +1 -0
  476. package/build/tools/replay-retry-classification.test.d.ts +9 -0
  477. package/build/tools/replay-retry-classification.test.d.ts.map +1 -0
  478. package/build/tools/replay-retry-classification.test.js +57 -0
  479. package/build/tools/replay-retry-classification.test.js.map +1 -0
  480. package/build/tools/replay-run-registry.d.ts +55 -0
  481. package/build/tools/replay-run-registry.d.ts.map +1 -0
  482. package/build/tools/replay-run-registry.js +65 -0
  483. package/build/tools/replay-run-registry.js.map +1 -0
  484. package/build/tools/replay-sequence-reload.test.d.ts +2 -0
  485. package/build/tools/replay-sequence-reload.test.d.ts.map +1 -0
  486. package/build/tools/replay-sequence-reload.test.js +82 -0
  487. package/build/tools/replay-sequence-reload.test.js.map +1 -0
  488. package/build/tools/replay-socket-scope.test.d.ts +2 -0
  489. package/build/tools/replay-socket-scope.test.d.ts.map +1 -0
  490. package/build/tools/replay-socket-scope.test.js +75 -0
  491. package/build/tools/replay-socket-scope.test.js.map +1 -0
  492. package/build/tools/replay-step-connection.test.d.ts +2 -0
  493. package/build/tools/replay-step-connection.test.d.ts.map +1 -0
  494. package/build/tools/replay-step-connection.test.js +292 -0
  495. package/build/tools/replay-step-connection.test.js.map +1 -0
  496. package/build/tools/replay-step-timeout.test.d.ts +2 -0
  497. package/build/tools/replay-step-timeout.test.d.ts.map +1 -0
  498. package/build/tools/replay-step-timeout.test.js +204 -0
  499. package/build/tools/replay-step-timeout.test.js.map +1 -0
  500. package/build/tools/replay-tags.test.d.ts +2 -0
  501. package/build/tools/replay-tags.test.d.ts.map +1 -0
  502. package/build/tools/replay-tags.test.js +99 -0
  503. package/build/tools/replay-tags.test.js.map +1 -0
  504. package/build/tools/replay-teardown-and-foreach.test.d.ts +13 -0
  505. package/build/tools/replay-teardown-and-foreach.test.d.ts.map +1 -0
  506. package/build/tools/replay-teardown-and-foreach.test.js +318 -0
  507. package/build/tools/replay-teardown-and-foreach.test.js.map +1 -0
  508. package/build/tools/replay-tool-name-validation.test.d.ts +2 -0
  509. package/build/tools/replay-tool-name-validation.test.d.ts.map +1 -0
  510. package/build/tools/replay-tool-name-validation.test.js +280 -0
  511. package/build/tools/replay-tool-name-validation.test.js.map +1 -0
  512. package/build/tools/replay-tools.d.ts +288 -0
  513. package/build/tools/replay-tools.d.ts.map +1 -0
  514. package/build/tools/replay-tools.js +2994 -0
  515. package/build/tools/replay-tools.js.map +1 -0
  516. package/build/tools/request-abort.test.d.ts +2 -0
  517. package/build/tools/request-abort.test.d.ts.map +1 -0
  518. package/build/tools/request-abort.test.js +130 -0
  519. package/build/tools/request-abort.test.js.map +1 -0
  520. package/build/tools/request-tools.d.ts +56 -0
  521. package/build/tools/request-tools.d.ts.map +1 -0
  522. package/build/tools/request-tools.js +174 -0
  523. package/build/tools/request-tools.js.map +1 -0
  524. package/build/tools/screenshot-tools.d.ts +135 -0
  525. package/build/tools/screenshot-tools.d.ts.map +1 -0
  526. package/build/tools/screenshot-tools.js +636 -0
  527. package/build/tools/screenshot-tools.js.map +1 -0
  528. package/build/tools/server-tools.d.ts +88 -0
  529. package/build/tools/server-tools.d.ts.map +1 -0
  530. package/build/tools/server-tools.js +485 -0
  531. package/build/tools/server-tools.js.map +1 -0
  532. package/build/tools/source-tools.d.ts +46 -0
  533. package/build/tools/source-tools.d.ts.map +1 -0
  534. package/build/tools/source-tools.js +47 -0
  535. package/build/tools/source-tools.js.map +1 -0
  536. package/build/tools/storage-tools.d.ts +141 -0
  537. package/build/tools/storage-tools.d.ts.map +1 -0
  538. package/build/tools/storage-tools.js +894 -0
  539. package/build/tools/storage-tools.js.map +1 -0
  540. package/build/tools/storage-tools.test.d.ts +13 -0
  541. package/build/tools/storage-tools.test.d.ts.map +1 -0
  542. package/build/tools/storage-tools.test.js +707 -0
  543. package/build/tools/storage-tools.test.js.map +1 -0
  544. package/build/tools/tab-tools.d.ts +42 -0
  545. package/build/tools/tab-tools.d.ts.map +1 -0
  546. package/build/tools/tab-tools.js +296 -0
  547. package/build/tools/tab-tools.js.map +1 -0
  548. package/build/tools/wait-tools.d.ts +85 -0
  549. package/build/tools/wait-tools.d.ts.map +1 -0
  550. package/build/tools/wait-tools.js +236 -0
  551. package/build/tools/wait-tools.js.map +1 -0
  552. package/build/tools/wait-tools.test.d.ts +9 -0
  553. package/build/tools/wait-tools.test.d.ts.map +1 -0
  554. package/build/tools/wait-tools.test.js +193 -0
  555. package/build/tools/wait-tools.test.js.map +1 -0
  556. package/build/types.d.ts +133 -0
  557. package/build/types.d.ts.map +1 -0
  558. package/build/types.js +5 -0
  559. package/build/types.js.map +1 -0
  560. package/build/ui-verifier.d.ts +88 -0
  561. package/build/ui-verifier.d.ts.map +1 -0
  562. package/build/ui-verifier.js +540 -0
  563. package/build/ui-verifier.js.map +1 -0
  564. package/build/utils/abort.d.ts +68 -0
  565. package/build/utils/abort.d.ts.map +1 -0
  566. package/build/utils/abort.js +159 -0
  567. package/build/utils/abort.js.map +1 -0
  568. package/build/utils/abort.test.d.ts +2 -0
  569. package/build/utils/abort.test.d.ts.map +1 -0
  570. package/build/utils/abort.test.js +174 -0
  571. package/build/utils/abort.test.js.map +1 -0
  572. package/build/utils/modal-detection-core.d.ts +150 -0
  573. package/build/utils/modal-detection-core.d.ts.map +1 -0
  574. package/build/utils/modal-detection-core.js +332 -0
  575. package/build/utils/modal-detection-core.js.map +1 -0
  576. package/build/utils/modal-detection-core.test.d.ts +5 -0
  577. package/build/utils/modal-detection-core.test.d.ts.map +1 -0
  578. package/build/utils/modal-detection-core.test.js +492 -0
  579. package/build/utils/modal-detection-core.test.js.map +1 -0
  580. package/build/utils/modal-detector.d.ts +29 -0
  581. package/build/utils/modal-detector.d.ts.map +1 -0
  582. package/build/utils/modal-detector.js +281 -0
  583. package/build/utils/modal-detector.js.map +1 -0
  584. package/build/utils/modal-dismissal.d.ts +32 -0
  585. package/build/utils/modal-dismissal.d.ts.map +1 -0
  586. package/build/utils/modal-dismissal.js +190 -0
  587. package/build/utils/modal-dismissal.js.map +1 -0
  588. package/build/utils/port-check.d.ts +31 -0
  589. package/build/utils/port-check.d.ts.map +1 -0
  590. package/build/utils/port-check.js +87 -0
  591. package/build/utils/port-check.js.map +1 -0
  592. package/build/utils/port-check.test.d.ts +2 -0
  593. package/build/utils/port-check.test.d.ts.map +1 -0
  594. package/build/utils/port-check.test.js +66 -0
  595. package/build/utils/port-check.test.js.map +1 -0
  596. package/build/utils/selector-resolver.d.ts +66 -0
  597. package/build/utils/selector-resolver.d.ts.map +1 -0
  598. package/build/utils/selector-resolver.js +200 -0
  599. package/build/utils/selector-resolver.js.map +1 -0
  600. package/build/validation-helpers.d.ts +41 -0
  601. package/build/validation-helpers.d.ts.map +1 -0
  602. package/build/validation-helpers.js +236 -0
  603. package/build/validation-helpers.js.map +1 -0
  604. package/build/window-sizing.d.ts +26 -0
  605. package/build/window-sizing.d.ts.map +1 -0
  606. package/build/window-sizing.js +87 -0
  607. package/build/window-sizing.js.map +1 -0
  608. package/build/window-sizing.test.d.ts +8 -0
  609. package/build/window-sizing.test.d.ts.map +1 -0
  610. package/build/window-sizing.test.js +113 -0
  611. package/build/window-sizing.test.js.map +1 -0
  612. package/docs/README.md +74 -0
  613. package/docs/automation.md +562 -0
  614. package/docs/debugging.md +229 -0
  615. package/docs/installation.md +133 -0
  616. package/docs/instructions.md +227 -0
  617. package/docs/mcp-instructions.md +15 -0
  618. package/docs/message-system.md +327 -0
  619. package/docs/messages.md +3480 -0
  620. package/docs/parser-plugins.md +132 -0
  621. package/docs/replay.md +1411 -0
  622. package/docs/troubleshooting.md +272 -0
  623. package/docs/working_with_llm_notes.md +5 -0
  624. package/package.json +87 -0
  625. package/skills/devharness/SKILL.md +195 -0
  626. package/skills/devharness/references/sequences.md +613 -0
  627. package/skills/devharness/references/tool-categories.md +99 -0
@@ -0,0 +1,429 @@
1
+ /**
2
+ * Two gaps that made conditional setup sequences unusable for identity healing:
3
+ *
4
+ * 1. Conditions could only see selector/url/cookie/localStorage, so a device
5
+ * identity kept in IndexedDB (the usual home for a non-extractable CryptoKey)
6
+ * could only be probed by proxy through some UI marker.
7
+ * 2. Nested sequences dropped every launchChrome, so a setup sequence spanning
8
+ * two browsers could only run when both browsers happened to exist already.
9
+ */
10
+ import { describe, it, expect, beforeEach, vi } from 'vitest';
11
+ import { executeSteps, evaluateCondition } from './replay-executor.js';
12
+ import { formatExecutionResults } from './replay-formatters.js';
13
+ import { configManager } from '../config.js';
14
+ import { createErrorResponse, getErrorMessage, formatCodeBlock } from '../messages.js';
15
+ import { webStorageMeta } from './storage-tools.js';
16
+ import { ToolError } from '../tool-error.js';
17
+ function makeHarness(responses = {}, nested) {
18
+ const calls = [];
19
+ const executeToolCall = vi.fn(async (tool, params) => {
20
+ calls.push({ tool, params });
21
+ const key = `${tool}.${params.action}`;
22
+ const r = key in responses ? responses[key] : responses[tool];
23
+ const response = r !== undefined
24
+ ? (typeof r === 'function' ? r(params) : r)
25
+ : { content: [{ type: 'text', text: '' }] };
26
+ if (response?.isError)
27
+ throw new ToolError(response);
28
+ return response;
29
+ });
30
+ const commandRecorder = {
31
+ recordCommand: vi.fn(),
32
+ getCurrentHistoryIndex: () => 0,
33
+ getSequence: (id) => (nested?.id === id ? nested : undefined),
34
+ getFreshSequence: async (id) => (nested?.id === id ? nested : undefined),
35
+ listSequences: () => (nested ? [nested] : []),
36
+ };
37
+ const ctx = {
38
+ executeToolCall,
39
+ commandRecorder,
40
+ connectionReason: 'device-a',
41
+ logPrefix: 'test',
42
+ };
43
+ return { calls, ctx, executeToolCall };
44
+ }
45
+ const seq = (name, commands) => ({
46
+ id: `seq-${name}`,
47
+ name,
48
+ commands,
49
+ createdAt: 1,
50
+ });
51
+ const text = (t) => ({ content: [{ type: 'text', text: t }] });
52
+ /** The shapes the storage tool really returns: presence lives in `_meta`. */
53
+ const idbRecord = (t, found) => ({
54
+ content: [{ type: 'text', text: t }],
55
+ _meta: { tool: 'storage', action: 'idbGet', timestamp: 0, storage: { database: 'identity', store: 'keys', found } },
56
+ });
57
+ const idbRecords = (t, count) => ({
58
+ content: [{ type: 'text', text: t }],
59
+ _meta: { tool: 'storage', action: 'idbGetAll', timestamp: 0, storage: { database: 'identity', store: 'keys', count } },
60
+ });
61
+ /** listConnections renders its data as a fenced json block; that is what gets parsed. */
62
+ const connectionsList = (connections) => text('Active debugger connections\n\n```json\n' + JSON.stringify({ connections }, null, 2) + '\n```');
63
+ const errorText = (t) => ({ isError: true, content: [{ type: 'text', text: t }] });
64
+ beforeEach(() => {
65
+ vi.spyOn(configManager, 'getClickValidationConfig').mockReturnValue({
66
+ enabled: false, validateNavigation: false, requireDomChanges: false,
67
+ domChangesFailMode: 'warn', failOnConsoleErrors: false,
68
+ consoleErrorsFailMode: 'error', validateNetworkPayload: false,
69
+ networkFailMode: 'warn', postClickDelayMs: 0,
70
+ });
71
+ vi.spyOn(configManager, 'getReplayConfig').mockReturnValue({
72
+ maxConditionalDepth: 10, maxRegexLength: 500, showCursor: false,
73
+ playwrightExportPath: './x', puppeteerExportPath: './y', maxDelayMs: 0,
74
+ });
75
+ });
76
+ describe('indexedDB conditions', () => {
77
+ it('is met when the record exists and not met when it does not', async () => {
78
+ const found = makeHarness({
79
+ 'storage.idbGet': idbRecord('## IndexedDB Record\n\n**Key:** "device"\n\n{"__type":"CryptoKey"}', true),
80
+ });
81
+ expect(await evaluateCondition('{{indexedDB:identity/keys/device}}', found.ctx))
82
+ .toEqual({ met: true });
83
+ expect(found.calls[0]).toMatchObject({
84
+ tool: 'storage',
85
+ params: { action: 'idbGet', db: 'identity', store: 'keys', key: 'device', connectionReason: 'device-a' },
86
+ });
87
+ const missing = makeHarness({
88
+ 'storage.idbGet': idbRecord('## IndexedDB Record\n\nNo record found for this key.', false),
89
+ });
90
+ expect((await evaluateCondition('{{indexedDB:identity/keys/device}}', missing.ctx)).met).toBe(false);
91
+ expect(await evaluateCondition('{{!indexedDB:identity/keys/device}}', missing.ctx))
92
+ .toEqual({ met: true });
93
+ });
94
+ // The whole point of a healing conditional: on a wiped profile the database
95
+ // isn't there yet. That has to read as "absent", not as a broken condition,
96
+ // or the setup sequence fails exactly when it's needed.
97
+ it('treats a missing database or store as absent rather than an error', async () => {
98
+ for (const message of ['Database "identity" does not exist', 'Store "keys" not found in database "identity"']) {
99
+ const { ctx } = makeHarness({ 'storage.idbGet': errorText(message) });
100
+ const result = await evaluateCondition('{{indexedDB:identity/keys/device}}', ctx);
101
+ expect(result).toEqual({ met: false });
102
+ expect(await evaluateCondition('{{!indexedDB:identity/keys/device}}', ctx)).toEqual({ met: true });
103
+ }
104
+ });
105
+ // The live executor's executeToolCall THROWS on a failed tool call rather
106
+ // than returning isError, which is how the missing-database case escaped as a
107
+ // raw exception the first time this was driven for real.
108
+ it('treats a missing database as absent when the tool call throws', async () => {
109
+ const { ctx } = makeHarness({
110
+ 'storage.idbGet': () => { throw new Error('IndexedDB operation failed (idbGet): Database "identity" does not exist'); },
111
+ });
112
+ expect(await evaluateCondition('{{indexedDB:identity/keys/device}}', ctx)).toEqual({ met: false });
113
+ expect(await evaluateCondition('{{!indexedDB:identity/keys/device}}', ctx)).toEqual({ met: true });
114
+ });
115
+ it('still fails the run when a thrown IndexedDB error is not an absence', async () => {
116
+ const { ctx } = makeHarness({
117
+ 'storage.idbGet': () => { throw new Error('Target closed'); },
118
+ });
119
+ const result = await evaluateCondition('{{indexedDB:identity/keys/device}}', ctx);
120
+ expect(result.isError).toBe(true);
121
+ expect(result.reason).toContain('Target closed');
122
+ });
123
+ it('still fails the run when IndexedDB itself cannot be read', async () => {
124
+ const { ctx } = makeHarness({ 'storage.idbGet': errorText('indexedDB.databases() is not supported') });
125
+ const result = await evaluateCondition('{{indexedDB:identity/keys/device}}', ctx);
126
+ expect(result.met).toBe(false);
127
+ expect(result.isError).toBe(true);
128
+ });
129
+ it('asks whether a store holds anything when no key is given', async () => {
130
+ const { ctx, calls } = makeHarness({
131
+ 'storage.idbGetAll': idbRecords('## IndexedDB Records\n\n**Count:** 0\n\n[]', 0),
132
+ });
133
+ expect((await evaluateCondition('{{indexedDB:identity/keys}}', ctx)).met).toBe(false);
134
+ expect(calls[0].params).toMatchObject({ action: 'idbGetAll', db: 'identity', store: 'keys', limit: 1 });
135
+ const populated = makeHarness({
136
+ 'storage.idbGetAll': idbRecords('## IndexedDB Records\n\n**Count:** 1\n\n[{}]', 1),
137
+ });
138
+ expect(await evaluateCondition('{{indexedDB:identity/keys}}', populated.ctx)).toEqual({ met: true });
139
+ });
140
+ // Driven live, these three were all false negatives: presence was decided by
141
+ // grepping the tool's rendered markdown, so a record whose VALUE contained
142
+ // the tool's own absence text read as missing.
143
+ it('reads presence from _meta, not from a value that mimics the absence text', async () => {
144
+ const trap = {
145
+ content: [{ type: 'text', text: '## IndexedDB Record\n\n**Key:** "trap"\n\n"No record found for this key."' }],
146
+ _meta: { tool: 'storage', action: 'idbGet', storage: { database: 'traps', store: 'kv', found: true } },
147
+ };
148
+ const { ctx } = makeHarness({ 'storage.idbGet': trap });
149
+ expect(await evaluateCondition('{{indexedDB:traps/kv/trap}}', ctx)).toEqual({ met: true });
150
+ });
151
+ it('reads the store form from _meta, not from a record that mimics the count line', async () => {
152
+ const trap = {
153
+ content: [{ type: 'text', text: '## IndexedDB Records\n\n**Count:** 2\n\n["**Count:** 0"]' }],
154
+ _meta: { tool: 'storage', action: 'idbGetAll', storage: { database: 'traps', store: 'kv', count: 2 } },
155
+ };
156
+ const { ctx } = makeHarness({ 'storage.idbGetAll': trap });
157
+ expect(await evaluateCondition('{{indexedDB:traps/kv}}', ctx)).toEqual({ met: true });
158
+ const empty = {
159
+ content: [{ type: 'text', text: '## IndexedDB Records\n\n**Count:** 0\n\n[]' }],
160
+ _meta: { tool: 'storage', action: 'idbGetAll', storage: { database: 'traps', store: 'kv', count: 0 } },
161
+ };
162
+ const { ctx: emptyCtx } = makeHarness({ 'storage.idbGetAll': empty });
163
+ expect((await evaluateCondition('{{indexedDB:traps/kv}}', emptyCtx)).met).toBe(false);
164
+ });
165
+ it('retries a numeric key as a number, since IndexedDB keys 42 and "42" differ', async () => {
166
+ const { ctx, calls } = makeHarness({
167
+ 'storage.idbGet': (params) => ({
168
+ content: [{ type: 'text', text: '## IndexedDB Record' }],
169
+ _meta: { tool: 'storage', action: 'idbGet', storage: { database: 'traps', store: 'nums', found: params.key === 42 } },
170
+ }),
171
+ });
172
+ expect(await evaluateCondition('{{indexedDB:traps/nums/42}}', ctx)).toEqual({ met: true });
173
+ expect(calls.map(c => c.params.key)).toEqual(['42', 42]);
174
+ });
175
+ it('does not retry a non-numeric key', async () => {
176
+ const { ctx, calls } = makeHarness({
177
+ 'storage.idbGet': {
178
+ content: [{ type: 'text', text: '## IndexedDB Record' }],
179
+ _meta: { tool: 'storage', action: 'idbGet', storage: { database: 'traps', store: 'kv', found: false } },
180
+ },
181
+ });
182
+ expect((await evaluateCondition('{{indexedDB:traps/kv/device}}', ctx)).met).toBe(false);
183
+ expect(calls).toHaveLength(1);
184
+ });
185
+ // An interpolated key that resolves to nothing would otherwise silently ask
186
+ // "does this store hold anything", which is a different question.
187
+ it('rejects an empty key rather than degrading to the store form', async () => {
188
+ const { ctx, calls } = makeHarness();
189
+ const result = await evaluateCondition('{{indexedDB:identity/keys/}}', ctx);
190
+ expect(result.isError).toBe(true);
191
+ expect(result.reason).toContain('the key is empty');
192
+ expect(calls).toEqual([]);
193
+ });
194
+ it('rejects a value that names no store', async () => {
195
+ const { ctx } = makeHarness();
196
+ const result = await evaluateCondition('{{indexedDB:identity}}', ctx);
197
+ expect(result.isError).toBe(true);
198
+ expect(result.reason).toContain('DB/STORE');
199
+ });
200
+ });
201
+ // Same absence bug one tool over: a missing element reached the outer catch and
202
+ // failed the step, so `{{!selector:...}}` could never take its skip path. The
203
+ // fixtures come from createErrorResponse, not hand-written text - the first
204
+ // version of this test asserted a string production never emits (the real one
205
+ // carries an "Error: " summary line).
206
+ describe('selector conditions', () => {
207
+ const elementNotFound = (selector) => createErrorResponse('ELEMENT_NOT_FOUND', { selector });
208
+ // Mirrors index.ts's executeToolCall, which rethrows any isError response.
209
+ const rethrown = (response) => () => { throw new ToolError(response); };
210
+ it('treats a missing element as not met', async () => {
211
+ const { ctx } = makeHarness({ 'dom.querySelector': elementNotFound('#enrol-marker') });
212
+ expect(await evaluateCondition('{{selector:#enrol-marker}}', ctx)).toEqual({ met: false });
213
+ expect(await evaluateCondition('{{!selector:#enrol-marker}}', ctx)).toEqual({ met: true });
214
+ });
215
+ // The id is the seam; the message is the fallback for anything throwing
216
+ // without a captured response.
217
+ it('falls back to the message when no error id survives the throw', async () => {
218
+ const { ctx } = makeHarness({
219
+ 'dom.querySelector': () => { throw new Error(getErrorMessage('ELEMENT_NOT_FOUND', { selector: '#enrol-marker' })); },
220
+ });
221
+ expect(await evaluateCondition('{{selector:#enrol-marker}}', ctx)).toEqual({ met: false });
222
+ expect(await evaluateCondition('{{!selector:#enrol-marker}}', ctx)).toEqual({ met: true });
223
+ });
224
+ it('keeps both seams pinned to the real ELEMENT_NOT_FOUND response', () => {
225
+ expect(elementNotFound('#x')._errorId).toBe('ELEMENT_NOT_FOUND');
226
+ expect(/Element not found:/.test(getErrorMessage('ELEMENT_NOT_FOUND', { selector: '#x' }))).toBe(true);
227
+ });
228
+ it('is met when the element is present', async () => {
229
+ const { ctx, calls } = makeHarness({ 'dom.querySelector': text('Element found: `#enrol-marker`\n\n{}') });
230
+ expect(await evaluateCondition('{{selector:#enrol-marker}}', ctx)).toEqual({ met: true });
231
+ expect(await evaluateCondition('{{!selector:#enrol-marker}}', ctx)).toEqual({ met: false });
232
+ expect(calls[0]).toMatchObject({
233
+ tool: 'dom',
234
+ params: { action: 'querySelector', selector: '#enrol-marker', connectionReason: 'device-a' },
235
+ });
236
+ });
237
+ // Negation must not flip a broken condition into a met one, in any shape.
238
+ it('still fails the run when the failure is not a missing element', async () => {
239
+ for (const { ctx } of [
240
+ makeHarness({ 'dom.querySelector': errorText('Not connected to debugger') }),
241
+ makeHarness({ 'dom.querySelector': () => { throw new Error('Not connected to debugger'); } }),
242
+ ]) {
243
+ for (const condition of ['{{selector:#enrol-marker}}', '{{!selector:#enrol-marker}}']) {
244
+ const result = await evaluateCondition(condition, ctx);
245
+ expect(result.isError).toBe(true);
246
+ expect(result.reason).toContain('Not connected to debugger');
247
+ }
248
+ }
249
+ });
250
+ });
251
+ // The selector fix exposed the same shape in three more conditions: each read a
252
+ // rendered response, so page-controlled DATA could answer a question about
253
+ // STRUCTURE. All three now read `_meta`, as indexedDB already did.
254
+ describe('conditions read structure, not rendered text', () => {
255
+ const cookies = (list) => ({
256
+ content: [{ type: 'text', text: `## Browser Cookies\n\n**Count:** ${list.length}\n\n${formatCodeBlock(list)}` }],
257
+ _meta: { tool: 'storage', action: 'getCookies', timestamp: 0, storage: { cookieNames: list.map(c => c.name), count: list.length } },
258
+ });
259
+ // `_meta` from the storage tool's own helper, so a change to what it reports
260
+ // fails here rather than leaving the fixture describing a shape production
261
+ // stopped emitting.
262
+ const localStorageResponse = (items, key) => ({
263
+ content: [{ type: 'text', text: `## localStorage\n\n${formatCodeBlock(items)}` }],
264
+ _meta: { tool: 'storage', action: 'getLocalStorage', timestamp: 0, storage: webStorageMeta(items, key) },
265
+ });
266
+ const pageInfo = (url) => ({
267
+ content: [{ type: 'text', text: `Page info\nURL: ${url}\nTitle: t` }],
268
+ _meta: { tool: 'navigate', action: 'info', timestamp: 0, navigate: { url, title: 't', action: 'info' } },
269
+ });
270
+ it('does not let one cookie\'s value forge another cookie\'s presence', async () => {
271
+ const { ctx } = makeHarness({
272
+ 'storage.getCookies': cookies([{ name: 'decoy', value: '{"name": "session"}' }]),
273
+ });
274
+ expect((await evaluateCondition('{{cookie:session}}', ctx)).met).toBe(false);
275
+ expect(await evaluateCondition('{{!cookie:session}}', ctx)).toEqual({ met: true });
276
+ });
277
+ it('matches a cookie name exactly, not as a suffix', async () => {
278
+ const { ctx } = makeHarness({ 'storage.getCookies': cookies([{ name: 'app_session', value: 'x' }]) });
279
+ expect((await evaluateCondition('{{cookie:session}}', ctx)).met).toBe(false);
280
+ expect(await evaluateCondition('{{cookie:app_session}}', ctx)).toEqual({ met: true });
281
+ });
282
+ it('reads a localStorage value of "null" as present, not missing', async () => {
283
+ const stored = makeHarness({ 'storage.getLocalStorage': localStorageResponse({ token: 'null' }, 'token') });
284
+ expect(await evaluateCondition('{{localStorage:token}}', stored.ctx)).toEqual({ met: true });
285
+ const absent = makeHarness({ 'storage.getLocalStorage': localStorageResponse({ token: null }, 'token') });
286
+ expect((await evaluateCondition('{{localStorage:token}}', absent.ctx)).met).toBe(false);
287
+ expect(await evaluateCondition('{{!localStorage:token}}', absent.ctx)).toEqual({ met: true });
288
+ });
289
+ it('counts a stored empty string as present', async () => {
290
+ const { ctx } = makeHarness({ 'storage.getLocalStorage': localStorageResponse({ flag: '' }, 'flag') });
291
+ expect(await evaluateCondition('{{localStorage:flag}}', ctx)).toEqual({ met: true });
292
+ });
293
+ it('does not let a value containing "not found" hide the key', async () => {
294
+ const { ctx } = makeHarness({
295
+ 'storage.getLocalStorage': localStorageResponse({ lastError: 'record not found' }, 'lastError'),
296
+ });
297
+ expect(await evaluateCondition('{{localStorage:lastError}}', ctx)).toEqual({ met: true });
298
+ });
299
+ it('compares a URL containing a comma in full', async () => {
300
+ const url = 'https://example.com/report?ids=1,2,3';
301
+ const { ctx } = makeHarness({ 'navigate.info': pageInfo(url) });
302
+ expect(await evaluateCondition(`{{url:${url}}}`, ctx)).toEqual({ met: true });
303
+ // The text fallback stopped at the comma, so the truncated prefix "matched".
304
+ expect((await evaluateCondition('{{url:https://example.com/report?ids=1}}', ctx)).met).toBe(false);
305
+ });
306
+ });
307
+ describe('launchChrome inside a nested sequence', () => {
308
+ const nested = (ref) => seq('setup', [
309
+ { tool: 'launchChrome', params: { reference: ref } },
310
+ { tool: 'navigate', params: { action: 'goto', url: 'https://example.com/', connectionReason: ref } },
311
+ ]);
312
+ const outer = seq('outer', [
313
+ { tool: 'conditional', params: { if: '{{url:contains:example}}', then: 'setup' } },
314
+ ]);
315
+ // listConnections has to answer with the session as it IS at the moment of
316
+ // the call - a launch mid-run adds a connection, and a static list would let
317
+ // a step-connection check see a browser that was just created as missing.
318
+ const baseResponses = (liveRefs) => {
319
+ const live = new Set(liveRefs);
320
+ return {
321
+ 'navigate.info': {
322
+ content: [{ type: 'text', text: 'URL: https://example.com/' }],
323
+ _meta: { tool: 'navigate', action: 'info', timestamp: 0, navigate: { url: 'https://example.com/', title: 't', action: 'info' } },
324
+ },
325
+ launchChrome: (params) => {
326
+ live.add(params.reference);
327
+ return text('Chrome launched and connected');
328
+ },
329
+ listConnections: () => connectionsList([...live].map(reference => ({ reference }))),
330
+ };
331
+ };
332
+ it('launches a browser the session does not have', async () => {
333
+ const { ctx, calls } = makeHarness(baseResponses(['device-a']), nested('member-two'));
334
+ const result = await executeSteps({ sequence: outer, ctx, startStep: 0, stepTimeout: 2000, totalTimeout: 20_000 });
335
+ expect(result.results[0].success).toBe(true);
336
+ expect(calls.filter(c => c.tool === 'launchChrome')).toHaveLength(1);
337
+ expect(calls.find(c => c.tool === 'launchChrome').params.reference).toBe('member-two');
338
+ });
339
+ it('does not relaunch a browser that is already connected', async () => {
340
+ const { ctx, calls } = makeHarness(baseResponses(['device-a', 'member-two']), nested('member-two'));
341
+ await executeSteps({ sequence: outer, ctx, startStep: 0, stepTimeout: 2000, totalTimeout: 20_000 });
342
+ expect(calls.filter(c => c.tool === 'launchChrome')).toHaveLength(0);
343
+ });
344
+ // A setup sequence that is ONLY a launch empties out once the browser
345
+ // exists. Reporting that as "condition not met" would state the opposite of
346
+ // what happened - the condition held, there was simply nothing left to do.
347
+ it('reports an emptied sub-sequence as met-with-nothing-to-run, not as not-met', async () => {
348
+ const launchOnly = seq('launch-only', [
349
+ { tool: 'launchChrome', params: { reference: 'member-two' } },
350
+ ]);
351
+ const { ctx } = makeHarness(baseResponses(['device-a', 'member-two']), launchOnly);
352
+ const result = await executeSteps({
353
+ sequence: seq('outer', [{ tool: 'conditional', params: { if: '{{url:contains:example}}', then: 'launch-only' } }]),
354
+ ctx, startStep: 0, stepTimeout: 2000, totalTimeout: 20_000,
355
+ });
356
+ expect(result.results[0]).toMatchObject({ success: true, conditionMet: true });
357
+ expect(result.results[0].substeps).toEqual([]);
358
+ expect(formatExecutionResults('outer', result.results, 1, 0)).toContain('condition met, no steps left to run');
359
+ });
360
+ // A registered-but-dropped connection is not somewhere a step can run, so it
361
+ // must not suppress the launch that would replace it.
362
+ it('does not treat a disconnected connection as live', async () => {
363
+ const responses = {
364
+ 'navigate.info': {
365
+ content: [{ type: 'text', text: 'URL: https://example.com/' }],
366
+ _meta: { tool: 'navigate', action: 'info', timestamp: 0, navigate: { url: 'https://example.com/', title: 't', action: 'info' } },
367
+ },
368
+ launchChrome: text('Chrome launched and connected'),
369
+ listConnections: text('Active debugger connections\n\n```json\n' + JSON.stringify({
370
+ connections: [
371
+ { reference: 'device-a', connected: true },
372
+ { reference: 'member-two', connected: false },
373
+ ],
374
+ }, null, 2) + '\n```'),
375
+ };
376
+ const { ctx, calls } = makeHarness(responses, seq('setup', [
377
+ { tool: 'launchChrome', params: { reference: 'member-two' } },
378
+ ]));
379
+ await executeSteps({
380
+ sequence: seq('outer', [{ tool: 'conditional', params: { if: '{{url:contains:example}}', then: 'setup' } }]),
381
+ ctx, startStep: 0, stepTimeout: 2000, totalTimeout: 20_000,
382
+ });
383
+ expect(calls.filter(c => c.tool === 'launchChrome')).toHaveLength(1);
384
+ });
385
+ // `create` hoists a uniform connection OFF the steps, so a real setup
386
+ // sequence is a launch followed by BARE steps. Leaving those on the caller's
387
+ // connection meant the run launched a browser, did all the work in the
388
+ // CALLER's browser, and reported success - healing the wrong browser.
389
+ it('runs a launched setup sequence in the browser it just launched', async () => {
390
+ const hoisted = seq('setup', [
391
+ { tool: 'launchChrome', params: { reference: 'member-two' } },
392
+ { tool: 'navigate', params: { action: 'goto', url: 'https://example.com/enrol' } },
393
+ { tool: 'inspect', params: { action: 'evaluateExpression', expression: 'mint()' } },
394
+ ]);
395
+ const { ctx, calls } = makeHarness(baseResponses(['device-a']), hoisted);
396
+ await executeSteps({
397
+ sequence: seq('outer', [{ tool: 'conditional', params: { if: '{{url:contains:example}}', then: 'setup' } }]),
398
+ ctx, startStep: 0, stepTimeout: 2000, totalTimeout: 20_000,
399
+ });
400
+ const enrolStep = calls.find(c => c.tool === 'navigate' && c.params.url === 'https://example.com/enrol');
401
+ expect(enrolStep.params.connectionReason).toBe('member-two');
402
+ expect(calls.find(c => c.tool === 'inspect' && c.params.expression === 'mint()').params.connectionReason)
403
+ .toBe('member-two');
404
+ });
405
+ // ...but only for a launch this run actually made. A nested login sequence
406
+ // whose browser already exists must keep running in whatever browser called
407
+ // it, the way it always has.
408
+ it('leaves bare steps on the caller when the launch was dropped', async () => {
409
+ const hoisted = seq('setup', [
410
+ { tool: 'launchChrome', params: { reference: 'member-two' } },
411
+ { tool: 'inspect', params: { action: 'evaluateExpression', expression: 'login()' } },
412
+ ]);
413
+ const { ctx, calls } = makeHarness(baseResponses(['device-a', 'member-two']), hoisted);
414
+ await executeSteps({
415
+ sequence: seq('outer', [{ tool: 'conditional', params: { if: '{{url:contains:example}}', then: 'setup' } }]),
416
+ ctx, startStep: 0, stepTimeout: 2000, totalTimeout: 20_000,
417
+ });
418
+ expect(calls.filter(c => c.tool === 'launchChrome')).toEqual([]);
419
+ expect(calls.find(c => c.tool === 'inspect' && c.params.expression === 'login()').params.connectionReason)
420
+ .toBe('device-a');
421
+ });
422
+ it('rebinds the launch through the run connection map', async () => {
423
+ const { ctx, calls } = makeHarness(baseResponses(['device-a']), nested('member-two'));
424
+ ctx.connectionMap = { 'member-two': 'my-second-browser' };
425
+ await executeSteps({ sequence: outer, ctx, startStep: 0, stepTimeout: 2000, totalTimeout: 20_000 });
426
+ expect(calls.find(c => c.tool === 'launchChrome').params.reference).toBe('my-second-browser');
427
+ });
428
+ });
429
+ //# sourceMappingURL=replay-conditional-idb-and-launch.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"replay-conditional-idb-and-launch.test.js","sourceRoot":"","sources":["../../src/tools/replay-conditional-idb-and-launch.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACvE,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAGhE,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACvF,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,SAAS,WAAW,CAAC,YAAiC,EAAE,EAAE,MAAwB;IAChF,MAAM,KAAK,GAAyD,EAAE,CAAC;IACvE,MAAM,eAAe,GAAG,EAAE,CAAC,EAAE,CAAC,KAAK,EAAE,IAAY,EAAE,MAA2B,EAAE,EAAE;QAChF,KAAK,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC;QAC7B,MAAM,GAAG,GAAG,GAAG,IAAI,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC;QACvC,MAAM,CAAC,GAAG,GAAG,IAAI,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;QAC9D,MAAM,QAAQ,GAAG,CAAC,KAAK,SAAS;YAC9B,CAAC,CAAC,CAAC,OAAO,CAAC,K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alFlow used to call executeSteps without stepTimeout or
5
+ * totalTimeout, so substeps silently fell back to the defaults (30s/5min) no
6
+ * matter what the caller passed. That only became observable once stepTimeout
7
+ * was actually enforced - before then both values were being discarded anyway.
8
+ *
9
+ * The second test is the one that matters for correctness: the total must be
10
+ * inherited as the parent's REMAINING budget, or wrapping steps in a
11
+ * conditional becomes a way to extend it.
12
+ */
13
+ export {};
14
+ //# sourceMappingURL=replay-conditional-timeout.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"replay-conditional-timeout.test.d.ts","sourceRoot":"","sources":["../../src/tools/replay-conditional-timeout.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG"}
@@ -0,0 +1,126 @@
1
+ /**
2
+ * Conditional sub-sequences must inherit the parent run's timeout budget.
3
+ *
4
+ * executeConditionalFlow used to call executeSteps without stepTimeout or
5
+ * totalTimeout, so substeps silently fell back to the defaults (30s/5min) no
6
+ * matter what the caller passed. That only became observable once stepTimeout
7
+ * was actually enforced - before then both values were being discarded anyway.
8
+ *
9
+ * The second test is the one that matters for correctness: the total must be
10
+ * inherited as the parent's REMAINING budget, or wrapping steps in a
11
+ * conditional becomes a way to extend it.
12
+ */
13
+ import { describe, it, expect, beforeEach, vi } from 'vitest';
14
+ import { executeSteps } from './replay-executor.js';
15
+ import { configManager } from '../config.js';
16
+ import { productionShaped } from '../test-support/fake-execute-tool-call.js';
17
+ function makeHarness(responses = {}, nested) {
18
+ const calls = [];
19
+ const executeToolCall = vi.fn(productionShaped(async (tool, params) => {
20
+ calls.push(`${tool}.${params.action ?? ''}`);
21
+ const key = `${tool}.${params.action}`;
22
+ const r = key in responses ? responses[key] : responses[tool];
23
+ if (r !== undefined)
24
+ return typeof r === 'function' ? r(params) : r;
25
+ return { content: [{ type: 'text', text: '' }] };
26
+ }));
27
+ const commandRecorder = {
28
+ recordCommand: vi.fn(),
29
+ getCurrentHistoryIndex: () => 0,
30
+ // executeConditionalFlow resolves the `then` sequence via loadSequence,
31
+ // which matches by name against listSequences().
32
+ getSequence: (id) => (nested?.id === id ? nested : undefined),
33
+ getFreshSequence: async (id) => (nested?.id === id ? nested : undefined),
34
+ listSequences: () => (nested ? [nested] : []),
35
+ };
36
+ const ctx = {
37
+ executeToolCall,
38
+ commandRecorder,
39
+ connectionReason: 'device-a',
40
+ logPrefix: 'test',
41
+ };
42
+ return { calls, ctx };
43
+ }
44
+ const seq = (name, commands) => ({
45
+ id: `seq-${name}`,
46
+ name,
47
+ commands,
48
+ createdAt: 1,
49
+ });
50
+ const hangForever = () => new Promise(() => { });
51
+ beforeEach(() => {
52
+ vi.spyOn(configManager, 'getClickValidationConfig').mockReturnValue({
53
+ enabled: false, validateNavigation: false, requireDomChanges: false,
54
+ domChangesFailMode: 'warn', failOnConsoleErrors: false,
55
+ consoleErrorsFailMode: 'error', validateNetworkPayload: false,
56
+ networkFailMode: 'warn', postClickDelayMs: 0,
57
+ });
58
+ vi.spyOn(configManager, 'getReplayConfig').mockReturnValue({
59
+ maxConditionalDepth: 10, maxRegexLength: 500, showCursor: false,
60
+ playwrightExportPath: './x', puppeteerExportPath: './y', maxDelayMs: 0,
61
+ });
62
+ });
63
+ /** The shape navigate.info really returns: the URL comes from `_meta`. */
64
+ const pageInfo = (url) => ({
65
+ content: [{ type: 'text', text: `URL: ${url}` }],
66
+ _meta: { tool: 'navigate', action: 'info', timestamp: 0, navigate: { url, title: 't', action: 'info' } },
67
+ });
68
+ describe('conditional sub-sequences inherit the parent timeout budget', () => {
69
+ // Against pre-fix code this HANGS: the substep got the 30s default rather
70
+ // than the caller's 300ms, so nothing bounded it inside the it() timeout.
71
+ it("bounds a hanging substep by the parent's stepTimeout", { timeout: 3000 }, async () => {
72
+ const nested = seq('inner', [
73
+ { tool: 'inspect', params: { action: 'evaluateExpression', expression: 'hang()' } },
74
+ ]);
75
+ const { ctx } = makeHarness({ 'navigate.info': pageInfo('https://example.com/'), 'inspect.evaluateExpression': () => hangForever() }, nested);
76
+ const started = Date.now();
77
+ const result = await executeSteps({
78
+ sequence: seq('outer', [
79
+ { tool: 'conditional', params: { if: '{{url:contains:example}}', then: 'inner' } },
80
+ ]),
81
+ ctx,
82
+ startStep: 0,
83
+ stepTimeout: 300,
84
+ totalTimeout: 60_000,
85
+ });
86
+ expect(Date.now() - started).toBeLessThan(2500);
87
+ expect(result.results[0].success).toBe(false);
88
+ });
89
+ it('inherits the remaining total, so nesting cannot extend it', { timeout: 4000 }, async () => {
90
+ const nested = seq('inner', [
91
+ { tool: 'inspect', params: { action: 'evaluateExpression', expression: 'hang()' } },
92
+ ]);
93
+ const { ctx } = makeHarness({ 'navigate.info': pageInfo('https://example.com/'), 'inspect.evaluateExpression': () => hangForever() }, nested);
94
+ const started = Date.now();
95
+ const result = await executeSteps({
96
+ sequence: seq('outer', [
97
+ { tool: 'conditional', params: { if: '{{url:contains:example}}', then: 'inner' } },
98
+ ]),
99
+ ctx,
100
+ startStep: 0,
101
+ // stepTimeout is generous; the TOTAL is what must stop this. If the
102
+ // child received a fresh copy of totalTimeout rather than the remaining
103
+ // budget, the effective bound would still be 800ms here - so to make the
104
+ // distinction observable the assertion below is on the total elapsed.
105
+ stepTimeout: 60_000,
106
+ totalTimeout: 800,
107
+ });
108
+ expect(Date.now() - started).toBeLessThan(3000);
109
+ expect(result.results[0].success).toBe(false);
110
+ });
111
+ it('leaves an unbudgeted caller on the defaults', async () => {
112
+ const nested = seq('inner', [{ tool: 'navigate', params: { action: 'info' } }]);
113
+ const { calls, ctx } = makeHarness({ 'navigate.info': pageInfo('https://example.com/') }, nested);
114
+ const result = await executeSteps({
115
+ sequence: seq('outer', [
116
+ { tool: 'conditional', params: { if: '{{url:contains:example}}', then: 'inner' } },
117
+ ]),
118
+ ctx,
119
+ startStep: 0,
120
+ });
121
+ // The substep ran normally - inheritance must not break the common path.
122
+ expect(result.results[0].success).toBe(true);
123
+ expect(calls).toContain('navigate.info');
124
+ });
125
+ });
126
+ //# sourceMappingURL=replay-conditional-timeout.test.js.map
@@ -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