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,574 @@
1
+ /**
2
+ * Message template system for cdp-tools
3
+ *
4
+ * Loads and formats user-facing messages from docs/messages.md
5
+ */
6
+ import { readFileSync } from 'fs';
7
+ import { join, dirname } from 'path';
8
+ import { fileURLToPath } from 'url';
9
+ const __filename = fileURLToPath(import.meta.url);
10
+ const __dirname = dirname(__filename);
11
+ class MessageManager {
12
+ messages = new Map();
13
+ loaded = false;
14
+ /**
15
+ * Load messages from docs/messages.md
16
+ */
17
+ loadMessages() {
18
+ if (this.loaded)
19
+ return;
20
+ try {
21
+ const messagesPath = join(__dirname, '..', 'docs', 'messages.md');
22
+ const content = readFileSync(messagesPath, 'utf-8');
23
+ this.parseMessages(content);
24
+ this.loaded = true;
25
+ }
26
+ catch (error) {
27
+ console.error('[cdp-tools] Warning: Failed to load messages.md, using fallback messages:', error);
28
+ this.loadFallbackMessages();
29
+ }
30
+ }
31
+ /**
32
+ * Parse messages from markdown content
33
+ */
34
+ parseMessages(content) {
35
+ // Split by message headers (## MESSAGE_ID)
36
+ const sections = content.split(/^## /m).filter(s => s.trim());
37
+ for (const section of sections) {
38
+ const lines = section.split('\n');
39
+ const id = lines[0].trim();
40
+ if (!id || id.startsWith('#') || id === 'Variable Templates')
41
+ continue;
42
+ let type = 'info';
43
+ let code;
44
+ let summary;
45
+ let contentLines = [];
46
+ let suggestions = [];
47
+ let note;
48
+ let example;
49
+ let inCodeBlock = false;
50
+ let inSuggestions = false;
51
+ let codeBlockLines = [];
52
+ for (let i = 1; i < lines.length; i++) {
53
+ const line = lines[i];
54
+ // Parse metadata
55
+ if (line.startsWith('**Type:**')) {
56
+ const typeMatch = line.match(/\*\*Type:\*\*\s+(error|success|warning|info|list)/);
57
+ if (typeMatch)
58
+ type = typeMatch[1];
59
+ continue;
60
+ }
61
+ if (line.startsWith('**Code:**')) {
62
+ const codeMatch = line.match(/\*\*Code:\*\*\s+(\w+)/);
63
+ if (codeMatch)
64
+ code = codeMatch[1];
65
+ continue;
66
+ }
67
+ if (line.startsWith('**Summary:**')) {
68
+ summary = line.replace(/\*\*Summary:\*\*\s*/, '').trim();
69
+ continue;
70
+ }
71
+ // Handle code blocks
72
+ if (line.trim().startsWith('```')) {
73
+ if (!inCodeBlock) {
74
+ inCodeBlock = true;
75
+ codeBlockLines = [];
76
+ }
77
+ else {
78
+ inCodeBlock = false;
79
+ if (example === undefined) {
80
+ example = codeBlockLines.join('\n');
81
+ }
82
+ }
83
+ continue;
84
+ }
85
+ if (inCodeBlock) {
86
+ codeBlockLines.push(line);
87
+ continue;
88
+ }
89
+ // Parse suggestions
90
+ if (line.startsWith('**Suggestions:**')) {
91
+ inSuggestions = true;
92
+ continue;
93
+ }
94
+ if (inSuggestions && line.trim().startsWith('-')) {
95
+ suggestions.push(line.trim().substring(1).trim());
96
+ continue;
97
+ }
98
+ if (line.startsWith('**Note:**')) {
99
+ note = line.replace(/\*\*Note:\*\*\s*/, '').trim();
100
+ continue;
101
+ }
102
+ if (line.startsWith('**Example:**')) {
103
+ continue; // Example code block follows
104
+ }
105
+ // Skip only specific metadata lines, not all lines starting with **
106
+ if (line.startsWith('**Type:**') || line.startsWith('**Code:**')) {
107
+ inSuggestions = false;
108
+ continue;
109
+ }
110
+ // Skip horizontal rules
111
+ if (line.trim() === '---') {
112
+ continue;
113
+ }
114
+ // Collect content lines
115
+ if (line.trim() && !line.startsWith('#')) {
116
+ contentLines.push(line);
117
+ }
118
+ }
119
+ this.messages.set(id, {
120
+ id,
121
+ type,
122
+ code,
123
+ summary,
124
+ content: contentLines.join('\n').trim(),
125
+ suggestions: suggestions.length > 0 ? suggestions : undefined,
126
+ note,
127
+ example,
128
+ });
129
+ }
130
+ }
131
+ /**
132
+ * Load fallback messages if markdown file can't be loaded
133
+ */
134
+ loadFallbackMessages() {
135
+ this.messages.set('CHROME_ALREADY_RUNNING', {
136
+ id: 'CHROME_ALREADY_RUNNING',
137
+ type: 'error',
138
+ code: 'CHROME_RUNNING',
139
+ content: 'Chrome is already running. Use killChrome() to close the existing instance, or use connectDebugger() to connect to it instead.',
140
+ });
141
+ this.messages.set('DEBUGGER_NOT_CONNECTED', {
142
+ id: 'DEBUGGER_NOT_CONNECTED',
143
+ type: 'error',
144
+ code: 'NOT_CONNECTED',
145
+ content: 'Not connected to debugger',
146
+ });
147
+ this.messages.set('CHROME_NOT_RUNNING', {
148
+ id: 'CHROME_NOT_RUNNING',
149
+ type: 'error',
150
+ code: 'CHROME_NOT_RUNNING',
151
+ content: '{{message}}',
152
+ });
153
+ this.loaded = true;
154
+ }
155
+ /**
156
+ * Get a message by ID with variable substitution
157
+ */
158
+ getMessage(id, variables = {}) {
159
+ if (!this.loaded)
160
+ this.loadMessages();
161
+ const template = this.messages.get(id);
162
+ if (!template) {
163
+ console.error(`[cdp-tools] Warning: Message template '${id}' not found`);
164
+ return `Message not found: ${id}`;
165
+ }
166
+ return this.formatMessage(template.content, variables);
167
+ }
168
+ /**
169
+ * Get a complete message template with metadata
170
+ */
171
+ getMessageTemplate(id) {
172
+ if (!this.loaded)
173
+ this.loadMessages();
174
+ return this.messages.get(id);
175
+ }
176
+ /**
177
+ * Format an error message with suggestions and examples
178
+ * Uses the same Status + Key detail format as getFormattedResponse
179
+ */
180
+ getErrorMessage(id, variables = {}) {
181
+ if (!this.loaded)
182
+ this.loadMessages();
183
+ const template = this.messages.get(id);
184
+ if (!template) {
185
+ return `Error: Message not found\nTemplate ID: ${id}`;
186
+ }
187
+ // Format the content with variable substitution
188
+ const formattedContent = this.formatMessage(template.content, variables);
189
+ // Build the response with Status + Key detail format
190
+ const lines = [];
191
+ // Line 1: Status line (always "Error" for error messages)
192
+ if (template.summary) {
193
+ lines.push(`Error: ${this.formatMessage(template.summary, variables)}`);
194
+ }
195
+ else {
196
+ // Extract first line of content as summary if no explicit summary
197
+ const firstLine = formattedContent.split('\n')[0].trim();
198
+ lines.push(`Error: ${firstLine}`);
199
+ }
200
+ // Line 2: Key detail (first line of content if we have a summary)
201
+ if (template.summary) {
202
+ const firstContentLine = formattedContent.split('\n')[0].trim();
203
+ if (firstContentLine) {
204
+ lines.push(firstContentLine);
205
+ }
206
+ }
207
+ // Build output: first two lines, then blank line, then rest
208
+ let message = lines.join('\n');
209
+ // Determine remaining content (skip lines already used)
210
+ const contentLinesToSkip = template.summary ? 1 : 1;
211
+ const restOfContent = formattedContent.split('\n').slice(contentLinesToSkip).join('\n').trim();
212
+ // Always add blank line after first section, then rest of content if any
213
+ if (restOfContent) {
214
+ message += '\n\n' + restOfContent;
215
+ }
216
+ if (template.suggestions && template.suggestions.length > 0) {
217
+ message += '\n\n**Suggestions:**\n';
218
+ template.suggestions.forEach(suggestion => {
219
+ message += `- ${this.formatMessage(suggestion, variables)}\n`;
220
+ });
221
+ }
222
+ if (template.note) {
223
+ message += `\n\n**Note:** ${this.formatMessage(template.note, variables)}`;
224
+ }
225
+ if (template.example) {
226
+ message += `\n\n**Example:**\n${template.example}`;
227
+ }
228
+ return message.trim();
229
+ }
230
+ /**
231
+ * Resolve a dotted path to a value in the variables object
232
+ */
233
+ resolveVariable(key, variables) {
234
+ return key.split('.').reduce((obj, prop) => {
235
+ return obj && obj[prop] !== undefined ? obj[prop] : undefined;
236
+ }, variables);
237
+ }
238
+ /**
239
+ * Format a message template with variable substitution
240
+ * Supports:
241
+ * - {{variable}} - simple substitution
242
+ * - {{object.property}} - nested access
243
+ * - {{#variable}}...{{/variable}} - conditional (truthy)
244
+ * - {{^variable}}...{{/variable}} - inverted conditional (falsy)
245
+ * - {{#if condition}}...{{/if}} - explicit if blocks
246
+ * - {{#each array}}...{{/each}} - iteration over arrays
247
+ */
248
+ formatMessage(template, variables) {
249
+ let result = template;
250
+ // Process conditionals and loops repeatedly until no more changes (handles nested)
251
+ let previousResult = '';
252
+ let iterations = 0;
253
+ const maxIterations = 100; // Prevent infinite loops
254
+ while (previousResult !== result && iterations < maxIterations) {
255
+ previousResult = result;
256
+ iterations++;
257
+ // Handle {{#each array}}...{{/each}} loops - must be processed before conditionals
258
+ result = result.replace(/\{\{#each\s+([\w.]+)\}\}([\s\S]*?)\{\{\/each\}\}/g, (match, key, content) => {
259
+ const array = this.resolveVariable(key, variables);
260
+ if (!Array.isArray(array) || array.length === 0) {
261
+ return ''; // Remove block if not an array or empty
262
+ }
263
+ // Iterate and substitute each item
264
+ return array.map((item, index) => {
265
+ // Create a context with the item's properties available directly
266
+ // and also as 'this' for simple values
267
+ let itemContent = content;
268
+ if (typeof item === 'object' && item !== null) {
269
+ // For objects, substitute {{property}} with item.property
270
+ itemContent = itemContent.replace(/\{\{([\w.]+)\}\}/g, (m, prop) => {
271
+ // Check if it's a property of the item
272
+ if (prop in item) {
273
+ return String(item[prop] ?? '');
274
+ }
275
+ // Check nested properties
276
+ const value = this.resolveVariable(prop, item);
277
+ if (value !== undefined) {
278
+ return String(value);
279
+ }
280
+ // Fall back to parent variables
281
+ const parentValue = this.resolveVariable(prop, variables);
282
+ if (parentValue !== undefined) {
283
+ return String(parentValue);
284
+ }
285
+ return m; // Keep placeholder if not found
286
+ });
287
+ // Handle conditionals within each block using item context
288
+ itemContent = this.processConditionals(itemContent, { ...variables, ...item });
289
+ }
290
+ else {
291
+ // For primitive values, {{this}} refers to the value
292
+ itemContent = itemContent.replace(/\{\{this\}\}/g, String(item));
293
+ }
294
+ return itemContent;
295
+ }).join('');
296
+ });
297
+ // Handle {{#if condition}}...{{/if}} blocks
298
+ result = result.replace(/\{\{#if\s+([\w.]+)\}\}([\s\S]*?)\{\{\/if\}\}/g, (match, key, content) => {
299
+ const value = this.resolveVariable(key, variables);
300
+ // Check for truthy: non-null, non-undefined, non-empty array, non-empty string, true
301
+ const isTruthy = Array.isArray(value) ? value.length > 0 : Boolean(value);
302
+ if (isTruthy) {
303
+ return content;
304
+ }
305
+ return '';
306
+ });
307
+ // Handle conditional blocks {{#var}}...{{/var}} (truthy) - original syntax
308
+ result = result.replace(/\{\{#([\w.]+)\}\}([\s\S]*?)\{\{\/\1\}\}/g, (match, key, content) => {
309
+ // Skip if this looks like a helper (if, each, etc.)
310
+ if (['if', 'each', 'unless'].includes(key)) {
311
+ return match;
312
+ }
313
+ const value = this.resolveVariable(key, variables);
314
+ if (value) {
315
+ return content;
316
+ }
317
+ return '';
318
+ });
319
+ // Handle inverted conditional blocks {{^var}}...{{/var}} (falsy)
320
+ result = result.replace(/\{\{\^([\w.]+)\}\}([\s\S]*?)\{\{\/\1\}\}/g, (match, key, content) => {
321
+ const value = this.resolveVariable(key, variables);
322
+ if (!value) {
323
+ return content;
324
+ }
325
+ return '';
326
+ });
327
+ }
328
+ // Final pass: Variable substitution supporting dot notation {{var}} or {{obj.prop}}
329
+ result = result.replace(/\{\{([\w.]+)\}\}/g, (match, key) => {
330
+ const value = this.resolveVariable(key, variables);
331
+ if (value !== undefined) {
332
+ return String(value);
333
+ }
334
+ return match; // Keep placeholder if variable not provided
335
+ });
336
+ return result;
337
+ }
338
+ /**
339
+ * Process conditionals within a given context (used by #each)
340
+ */
341
+ processConditionals(template, context) {
342
+ let result = template;
343
+ // Handle {{#if condition}}...{{/if}} blocks
344
+ result = result.replace(/\{\{#if\s+([\w.]+)\}\}([\s\S]*?)\{\{\/if\}\}/g, (match, key, content) => {
345
+ const value = this.resolveVariable(key, context);
346
+ const isTruthy = Array.isArray(value) ? value.length > 0 : Boolean(value);
347
+ return isTruthy ? content : '';
348
+ });
349
+ // Handle {{#var}}...{{/var}} conditionals (truthy)
350
+ result = result.replace(/\{\{#([\w.]+)\}\}([\s\S]*?)\{\{\/\1\}\}/g, (match, key, content) => {
351
+ if (['if', 'each', 'unless'].includes(key)) {
352
+ return match;
353
+ }
354
+ const value = this.resolveVariable(key, context);
355
+ return value ? content : '';
356
+ });
357
+ return result;
358
+ }
359
+ /**
360
+ * Get message code for error responses
361
+ */
362
+ getMessageCode(id) {
363
+ if (!this.loaded)
364
+ this.loadMessages();
365
+ return this.messages.get(id)?.code;
366
+ }
367
+ /**
368
+ * Check if a message exists
369
+ */
370
+ hasMessage(id) {
371
+ if (!this.loaded)
372
+ this.loadMessages();
373
+ return this.messages.has(id);
374
+ }
375
+ /**
376
+ * Format data as a JSON code block
377
+ */
378
+ formatCodeBlock(data, language = 'json') {
379
+ const jsonString = typeof data === 'string' ? data : JSON.stringify(data, null, 2);
380
+ return `\`\`\`${language}\n${jsonString}\n\`\`\``;
381
+ }
382
+ /**
383
+ * Format an array as a markdown bullet list
384
+ */
385
+ formatList(items) {
386
+ return items.map(item => `- ${item}`).join('\n');
387
+ }
388
+ /**
389
+ * Get a complete markdown-only response for a tool
390
+ * Combines message template with optional data formatting
391
+ *
392
+ * Output format:
393
+ * Line 1: Status line (Success/Error/Warning/Info: Brief description)
394
+ * Line 2: Key detail (most important info like location, ID, count)
395
+ * Line 3+: Additional content (suggestions, notes, data)
396
+ */
397
+ getFormattedResponse(id, variables = {}, data) {
398
+ if (!this.loaded)
399
+ this.loadMessages();
400
+ const template = this.messages.get(id);
401
+ if (!template) {
402
+ return `Error: Message template not found\nTemplate ID: ${id}`;
403
+ }
404
+ // Format the content with variable substitution
405
+ const formattedContent = this.formatMessage(template.content, variables);
406
+ // Build the response with Status + Key detail format
407
+ const lines = [];
408
+ // Line 1: Status line (skip prefix for 'list' and 'success' types - they're self-evident)
409
+ const typeLabel = template.type.charAt(0).toUpperCase() + template.type.slice(1);
410
+ const skipPrefix = template.type === 'list' || template.type === 'success';
411
+ if (template.summary) {
412
+ const summaryText = this.formatMessage(template.summary, variables);
413
+ lines.push(skipPrefix ? summaryText : `${typeLabel}: ${summaryText}`);
414
+ }
415
+ else {
416
+ // Extract first line of content as summary if no explicit summary
417
+ const firstLine = formattedContent.split('\n')[0].trim();
418
+ lines.push(skipPrefix ? firstLine : `${typeLabel}: ${firstLine}`);
419
+ }
420
+ // Line 2: Key detail (first line of content if we have a summary)
421
+ if (template.summary) {
422
+ const firstContentLine = formattedContent.split('\n')[0].trim();
423
+ if (firstContentLine) {
424
+ lines.push(firstContentLine);
425
+ }
426
+ }
427
+ // Build output: first two lines, then blank line, then rest
428
+ let markdown = lines.join('\n');
429
+ // Determine remaining content (skip lines already used)
430
+ const contentLinesToSkip = template.summary ? 1 : 1;
431
+ const restOfContent = formattedContent.split('\n').slice(contentLinesToSkip).join('\n').trim();
432
+ // Always add blank line after first section, then rest of content if any
433
+ if (restOfContent) {
434
+ markdown += '\n\n' + restOfContent;
435
+ }
436
+ // Add suggestions for errors
437
+ if (template.type === 'error' && template.suggestions && template.suggestions.length > 0) {
438
+ markdown += '\n\n**Suggestions:**\n';
439
+ template.suggestions.forEach(suggestion => {
440
+ markdown += `- ${this.formatMessage(suggestion, variables)}\n`;
441
+ });
442
+ }
443
+ // Add note if present
444
+ if (template.note) {
445
+ markdown += `\n\n**Note:** ${this.formatMessage(template.note, variables)}`;
446
+ }
447
+ // Add example for errors
448
+ if (template.type === 'error' && template.example) {
449
+ markdown += `\n\n**Example:**\n${template.example}`;
450
+ }
451
+ // Add data as code block if provided
452
+ if (data !== undefined) {
453
+ markdown += '\n\n';
454
+ if (typeof data === 'object') {
455
+ markdown += this.formatCodeBlock(data);
456
+ }
457
+ else {
458
+ markdown += data;
459
+ }
460
+ }
461
+ return markdown.trim();
462
+ }
463
+ }
464
+ // Export singleton instance
465
+ export const messages = new MessageManager();
466
+ /**
467
+ * Helper function to get a formatted message
468
+ */
469
+ export function getMessage(id, variables) {
470
+ return messages.getMessage(id, variables);
471
+ }
472
+ /**
473
+ * Helper function to get a formatted error message with suggestions
474
+ */
475
+ export function getErrorMessage(id, variables) {
476
+ return messages.getErrorMessage(id, variables);
477
+ }
478
+ /**
479
+ * Helper function to get message code
480
+ */
481
+ export function getMessageCode(id) {
482
+ return messages.getMessageCode(id);
483
+ }
484
+ /**
485
+ * Helper function to get a complete markdown-only response
486
+ */
487
+ export function getFormattedResponse(id, variables, data) {
488
+ return messages.getFormattedResponse(id, variables, data);
489
+ }
490
+ /**
491
+ * Helper function to format data as a code block
492
+ */
493
+ export function formatCodeBlock(data, language = 'json') {
494
+ return messages.formatCodeBlock(data, language);
495
+ }
496
+ /**
497
+ * Helper function to format an array as a markdown list
498
+ */
499
+ export function formatList(items) {
500
+ return messages.formatList(items);
501
+ }
502
+ /**
503
+ * Create an error response in MCP format with markdown content
504
+ */
505
+ export function createErrorResponse(messageId, variables) {
506
+ return {
507
+ content: [
508
+ {
509
+ type: 'text',
510
+ text: getErrorMessage(messageId, variables),
511
+ },
512
+ ],
513
+ isError: true,
514
+ _errorId: messageId,
515
+ };
516
+ }
517
+ /**
518
+ * Whether a tool failure means "that element isn't on the page", as opposed to
519
+ * any other failure. Prefers the response's `_errorId`; the text forms are for
520
+ * a failure that arrived without one. Lives beside the ELEMENT_NOT_FOUND
521
+ * template so a reword is caught here rather than in every caller that
522
+ * classifies one.
523
+ */
524
+ export function isElementNotFoundFailure(failure) {
525
+ if (failure.errorId)
526
+ return failure.errorId === 'ELEMENT_NOT_FOUND';
527
+ const text = failure.text || '';
528
+ // The second is puppeteer's own phrasing, for a handler that let the
529
+ // library's error through instead of returning ELEMENT_NOT_FOUND.
530
+ return /Element not found:/.test(text) || /No element found for selector/i.test(text);
531
+ }
532
+ /**
533
+ * Create a success response in MCP format with markdown content
534
+ */
535
+ export function createSuccessResponse(messageId, variables, data) {
536
+ return {
537
+ content: [
538
+ {
539
+ type: 'text',
540
+ text: getFormattedResponse(messageId, variables, data),
541
+ },
542
+ ],
543
+ };
544
+ }
545
+ /**
546
+ * Format a tool success response (for tools that don't use message templates)
547
+ * Uses Status + Key detail format
548
+ */
549
+ export function formatToolSuccess(message, data) {
550
+ let text = `Success: ${message}`;
551
+ if (data) {
552
+ text += '\n\n' + formatCodeBlock(data);
553
+ }
554
+ return {
555
+ content: [{ type: 'text', text }],
556
+ };
557
+ }
558
+ /**
559
+ * Format a tool error response (for tools that don't use message templates)
560
+ * Uses Status + Key detail format
561
+ */
562
+ export function formatToolError(code, message, data) {
563
+ let text = `Error: ${message}\nCode: ${code}`;
564
+ if (data) {
565
+ text += '\n\n' + formatCodeBlock(data);
566
+ }
567
+ return {
568
+ content: [{ type: 'text', text }],
569
+ isError: true,
570
+ };
571
+ }
572
+ // Console-specific formatting functions have been moved to:
573
+ // src/formatters/console-formatter.ts
574
+ //# sourceMappingURL=messages.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messages.js","sourceRoot":"","sources":["../src/messages.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AAEpC,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAClD,MAAM,SAAS,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AAatC,MAAM,cAAc;IACV,QAAQ,GAAiC,IAAI,GAAG,EAAE,CAAC;IACnD,MAAM,GAAG,KAAK,CAAC;IAEvB;;OAEG;IACK,YAAY;QAClB,IAAI,IAAI,CAAC,MAAM;YAAE,OAAO;QAExB,IAAI,CAAC;YACH,MAAM,YAAY,GAAG,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,aAAa,CAAC,CAAC;YAClE,MAAM,OAAO,GAAG,YAAY,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;YAEpD,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;YAC5B,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QACrB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,CAAC,KAAK,CAAC,2EAA2E,EAAE,KAAK,CAAC,CAAC;YAClG,IAAI,CAAC,oBAAoB,EAAE,CAAC;QAC9B,CAAC;IACH,CAAC;IAED;;OAEG;IACK,aAAa,CAAC,OAAe;QACnC,2CAA2C;QAC3C,MAAM,QAAQ,GAAG,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,M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