@testmuai/playwright-bindings 0.1.44 → 0.1.45-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (857) hide show
  1. package/README.md +28 -0
  2. package/dist/configure.d.ts +3 -0
  3. package/dist/configure.d.ts.map +1 -1
  4. package/dist/configure.js +8 -0
  5. package/dist/configure.js.map +1 -1
  6. package/dist/errors.d.ts +6 -0
  7. package/dist/errors.d.ts.map +1 -1
  8. package/dist/errors.js +9 -0
  9. package/dist/errors.js.map +1 -1
  10. package/dist/index.d.ts +87 -100
  11. package/dist/index.d.ts.map +1 -1
  12. package/dist/index.js +71 -37
  13. package/dist/index.js.map +1 -1
  14. package/dist/router.d.ts +53 -0
  15. package/dist/router.d.ts.map +1 -0
  16. package/dist/router.js +137 -0
  17. package/dist/router.js.map +1 -0
  18. package/dist/v3/actionEngine.d.ts.map +1 -0
  19. package/dist/v3/actionEngine.js +194 -0
  20. package/dist/v3/actionEngine.js.map +1 -0
  21. package/dist/v3/actionSpecs.d.ts.map +1 -0
  22. package/dist/v3/actionSpecs.js +354 -0
  23. package/dist/v3/actionSpecs.js.map +1 -0
  24. package/dist/v3/capability.d.ts.map +1 -0
  25. package/dist/v3/capability.js +346 -0
  26. package/dist/v3/capability.js.map +1 -0
  27. package/dist/v3/downloadsPath.d.ts.map +1 -0
  28. package/dist/v3/downloadsPath.js.map +1 -0
  29. package/dist/v3/healCache.d.ts.map +1 -0
  30. package/dist/v3/healCache.js.map +1 -0
  31. package/dist/v3/healPatch.d.ts +22 -0
  32. package/dist/v3/healPatch.d.ts.map +1 -0
  33. package/dist/v3/healPatch.js +345 -0
  34. package/dist/v3/healPatch.js.map +1 -0
  35. package/dist/v3/helpers/a11yFlatten.d.ts.map +1 -0
  36. package/dist/v3/helpers/a11yFlatten.js +569 -0
  37. package/dist/v3/helpers/a11yFlatten.js.map +1 -0
  38. package/dist/v3/helpers/apiCalls.d.ts.map +1 -0
  39. package/dist/v3/helpers/apiCalls.js +59 -0
  40. package/dist/v3/helpers/apiCalls.js.map +1 -0
  41. package/dist/v3/helpers/assertion.d.ts.map +1 -0
  42. package/dist/v3/helpers/assertion.js +105 -0
  43. package/dist/v3/helpers/assertion.js.map +1 -0
  44. package/dist/v3/helpers/assertionV3.d.ts.map +1 -0
  45. package/dist/v3/helpers/assertionV3.js.map +1 -0
  46. package/dist/v3/helpers/autohealAx.d.ts.map +1 -0
  47. package/dist/v3/helpers/autohealAx.js +148 -0
  48. package/dist/v3/helpers/autohealAx.js.map +1 -0
  49. package/dist/v3/helpers/axTree/actionable.d.ts.map +1 -0
  50. package/dist/v3/helpers/axTree/actionable.js +404 -0
  51. package/dist/v3/helpers/axTree/actionable.js.map +1 -0
  52. package/dist/v3/helpers/axTree/captureAxTree.d.ts.map +1 -0
  53. package/dist/v3/helpers/axTree/captureAxTree.js.map +1 -0
  54. package/dist/v3/helpers/axTree/captureFrameForest.d.ts.map +1 -0
  55. package/dist/v3/helpers/axTree/captureFrameForest.js +475 -0
  56. package/dist/v3/helpers/axTree/captureFrameForest.js.map +1 -0
  57. package/dist/v3/helpers/axTree/index.d.ts.map +1 -0
  58. package/dist/v3/helpers/axTree/index.js.map +1 -0
  59. package/dist/v3/helpers/axTree/serializeAxTree.d.ts.map +1 -0
  60. package/dist/v3/helpers/axTree/serializeAxTree.js.map +1 -0
  61. package/dist/v3/helpers/clipboard-intercept.d.ts.map +1 -0
  62. package/dist/v3/helpers/clipboard-intercept.js.map +1 -0
  63. package/dist/v3/helpers/clipboard.d.ts.map +1 -0
  64. package/dist/v3/helpers/clipboard.js.map +1 -0
  65. package/dist/v3/helpers/condition.d.ts +100 -0
  66. package/dist/v3/helpers/condition.d.ts.map +1 -0
  67. package/dist/v3/helpers/condition.js +356 -0
  68. package/dist/v3/helpers/condition.js.map +1 -0
  69. package/dist/v3/helpers/cookies.d.ts.map +1 -0
  70. package/dist/v3/helpers/cookies.js +66 -0
  71. package/dist/v3/helpers/cookies.js.map +1 -0
  72. package/dist/v3/helpers/coordinateResolver.d.ts.map +1 -0
  73. package/dist/v3/helpers/coordinateResolver.js +118 -0
  74. package/dist/v3/helpers/coordinateResolver.js.map +1 -0
  75. package/dist/v3/helpers/coordinateResolverRead.d.ts.map +1 -0
  76. package/dist/v3/helpers/coordinateResolverRead.js +107 -0
  77. package/dist/v3/helpers/coordinateResolverRead.js.map +1 -0
  78. package/dist/v3/helpers/credits.d.ts.map +1 -0
  79. package/dist/v3/helpers/credits.js +52 -0
  80. package/dist/v3/helpers/credits.js.map +1 -0
  81. package/dist/v3/helpers/derive.d.ts.map +1 -0
  82. package/dist/v3/helpers/derive.js +87 -0
  83. package/dist/v3/helpers/derive.js.map +1 -0
  84. package/dist/v3/helpers/devtools.d.ts.map +1 -0
  85. package/dist/v3/helpers/devtools.js +1215 -0
  86. package/dist/v3/helpers/devtools.js.map +1 -0
  87. package/dist/v3/helpers/dialog.d.ts.map +1 -0
  88. package/dist/v3/helpers/dialog.js.map +1 -0
  89. package/dist/v3/helpers/drag.d.ts.map +1 -0
  90. package/dist/v3/helpers/drag.js +276 -0
  91. package/dist/v3/helpers/drag.js.map +1 -0
  92. package/dist/v3/helpers/evaluation/colors.d.ts.map +1 -0
  93. package/dist/v3/helpers/evaluation/colors.js.map +1 -0
  94. package/dist/v3/helpers/evaluation/evaluate.d.ts.map +1 -0
  95. package/dist/v3/helpers/evaluation/evaluate.js.map +1 -0
  96. package/dist/v3/helpers/executeApi.d.ts.map +1 -0
  97. package/dist/v3/helpers/executeApi.js +373 -0
  98. package/dist/v3/helpers/executeApi.js.map +1 -0
  99. package/dist/v3/helpers/executeDb.d.ts.map +1 -0
  100. package/dist/v3/helpers/executeDb.js +54 -0
  101. package/dist/v3/helpers/executeDb.js.map +1 -0
  102. package/dist/v3/helpers/executeJs.d.ts.map +1 -0
  103. package/dist/v3/helpers/executeJs.js +93 -0
  104. package/dist/v3/helpers/executeJs.js.map +1 -0
  105. package/dist/v3/helpers/gesture.d.ts.map +1 -0
  106. package/dist/v3/helpers/gesture.js +131 -0
  107. package/dist/v3/helpers/gesture.js.map +1 -0
  108. package/dist/v3/helpers/healCascade.d.ts.map +1 -0
  109. package/dist/v3/helpers/healCascade.js +418 -0
  110. package/dist/v3/helpers/healCascade.js.map +1 -0
  111. package/dist/v3/helpers/iframeA11y.d.ts.map +1 -0
  112. package/dist/v3/helpers/iframeA11y.js +128 -0
  113. package/dist/v3/helpers/iframeA11y.js.map +1 -0
  114. package/dist/v3/helpers/kaneCli.d.ts.map +1 -0
  115. package/dist/v3/helpers/kaneCli.js +319 -0
  116. package/dist/v3/helpers/kaneCli.js.map +1 -0
  117. package/dist/v3/helpers/loop.d.ts +4 -0
  118. package/dist/v3/helpers/loop.d.ts.map +1 -0
  119. package/dist/v3/helpers/loop.js +4 -0
  120. package/dist/v3/helpers/loop.js.map +1 -0
  121. package/dist/v3/helpers/math.d.ts.map +1 -0
  122. package/dist/v3/helpers/math.js +119 -0
  123. package/dist/v3/helpers/math.js.map +1 -0
  124. package/dist/v3/helpers/network.d.ts.map +1 -0
  125. package/dist/v3/helpers/network.js +185 -0
  126. package/dist/v3/helpers/network.js.map +1 -0
  127. package/dist/v3/helpers/pageReady.d.ts.map +1 -0
  128. package/dist/v3/helpers/pageReady.js +85 -0
  129. package/dist/v3/helpers/pageReady.js.map +1 -0
  130. package/dist/v3/helpers/png.d.ts.map +1 -0
  131. package/dist/v3/helpers/png.js.map +1 -0
  132. package/dist/v3/helpers/queryResult.d.ts.map +1 -0
  133. package/dist/v3/helpers/queryResult.js.map +1 -0
  134. package/dist/v3/helpers/runtimeSnapshot.d.ts.map +1 -0
  135. package/dist/v3/helpers/runtimeSnapshot.js +204 -0
  136. package/dist/v3/helpers/runtimeSnapshot.js.map +1 -0
  137. package/dist/v3/helpers/schemaAssertion.d.ts.map +1 -0
  138. package/dist/v3/helpers/schemaAssertion.js +117 -0
  139. package/dist/v3/helpers/schemaAssertion.js.map +1 -0
  140. package/dist/v3/helpers/screenshot.d.ts +41 -0
  141. package/dist/v3/helpers/screenshot.d.ts.map +1 -0
  142. package/dist/v3/helpers/screenshot.js +83 -0
  143. package/dist/v3/helpers/screenshot.js.map +1 -0
  144. package/dist/v3/helpers/scrollUntil.d.ts.map +1 -0
  145. package/dist/v3/helpers/scrollUntil.js +90 -0
  146. package/dist/v3/helpers/scrollUntil.js.map +1 -0
  147. package/dist/v3/helpers/smartui.d.ts.map +1 -0
  148. package/dist/v3/helpers/smartui.js +77 -0
  149. package/dist/v3/helpers/smartui.js.map +1 -0
  150. package/dist/v3/helpers/sseParser.d.ts.map +1 -0
  151. package/dist/v3/helpers/sseParser.js.map +1 -0
  152. package/dist/v3/helpers/tabs.d.ts +43 -0
  153. package/dist/v3/helpers/tabs.d.ts.map +1 -0
  154. package/dist/v3/helpers/tabs.js +258 -0
  155. package/dist/v3/helpers/tabs.js.map +1 -0
  156. package/dist/v3/helpers/text.d.ts.map +1 -0
  157. package/dist/v3/helpers/text.js.map +1 -0
  158. package/dist/v3/helpers/textNormalize.d.ts.map +1 -0
  159. package/dist/v3/helpers/textNormalize.js.map +1 -0
  160. package/dist/v3/helpers/textualAnalyzer/domStructured.d.ts.map +1 -0
  161. package/dist/v3/helpers/textualAnalyzer/domStructured.js +242 -0
  162. package/dist/v3/helpers/textualAnalyzer/domStructured.js.map +1 -0
  163. package/dist/v3/helpers/textualAnalyzer/evaluate.d.ts.map +1 -0
  164. package/dist/v3/helpers/textualAnalyzer/evaluate.js.map +1 -0
  165. package/dist/v3/helpers/textualAnalyzer/extractor.d.ts.map +1 -0
  166. package/dist/v3/helpers/textualAnalyzer/extractor.js.map +1 -0
  167. package/dist/v3/helpers/textualAnalyzer/heal.d.ts.map +1 -0
  168. package/dist/v3/helpers/textualAnalyzer/heal.js +120 -0
  169. package/dist/v3/helpers/textualAnalyzer/heal.js.map +1 -0
  170. package/dist/v3/helpers/textualAnalyzer/index.d.ts.map +1 -0
  171. package/dist/v3/helpers/textualAnalyzer/index.js +60 -0
  172. package/dist/v3/helpers/textualAnalyzer/index.js.map +1 -0
  173. package/dist/v3/helpers/textualAnalyzer/locatorEnrichment.d.ts.map +1 -0
  174. package/dist/v3/helpers/textualAnalyzer/locatorEnrichment.js +224 -0
  175. package/dist/v3/helpers/textualAnalyzer/locatorEnrichment.js.map +1 -0
  176. package/dist/v3/helpers/textualRead.d.ts.map +1 -0
  177. package/dist/v3/helpers/textualRead.js.map +1 -0
  178. package/dist/v3/helpers/vision.d.ts +79 -0
  179. package/dist/v3/helpers/vision.d.ts.map +1 -0
  180. package/dist/v3/helpers/vision.js +235 -0
  181. package/dist/v3/helpers/vision.js.map +1 -0
  182. package/dist/v3/helpers/visionFence.d.ts.map +1 -0
  183. package/dist/v3/helpers/visionFence.js.map +1 -0
  184. package/dist/v3/helpers/visionV3.d.ts +52 -0
  185. package/dist/v3/helpers/visionV3.d.ts.map +1 -0
  186. package/dist/v3/helpers/visionV3.js +366 -0
  187. package/dist/v3/helpers/visionV3.js.map +1 -0
  188. package/dist/v3/helpers/wait.d.ts.map +1 -0
  189. package/dist/v3/helpers/wait.js +48 -0
  190. package/dist/v3/helpers/wait.js.map +1 -0
  191. package/dist/v3/http.d.ts.map +1 -0
  192. package/dist/v3/http.js +45 -0
  193. package/dist/v3/http.js.map +1 -0
  194. package/dist/v3/httpClient.d.ts.map +1 -0
  195. package/dist/v3/httpClient.js.map +1 -0
  196. package/dist/v3/index.d.ts +40 -0
  197. package/dist/v3/index.d.ts.map +1 -0
  198. package/dist/v3/index.js +41 -0
  199. package/dist/v3/index.js.map +1 -0
  200. package/dist/v3/rankedLocator.d.ts.map +1 -0
  201. package/dist/v3/rankedLocator.js +85 -0
  202. package/dist/v3/rankedLocator.js.map +1 -0
  203. package/dist/v3/relayProxy.d.ts.map +1 -0
  204. package/dist/v3/relayProxy.js +485 -0
  205. package/dist/v3/relayProxy.js.map +1 -0
  206. package/dist/v3/reporters/index.d.ts.map +1 -0
  207. package/dist/v3/reporters/index.js +7 -0
  208. package/dist/v3/reporters/index.js.map +1 -0
  209. package/dist/v3/reporters/local.d.ts.map +1 -0
  210. package/dist/v3/reporters/local.js +40 -0
  211. package/dist/v3/reporters/local.js.map +1 -0
  212. package/dist/v3/reporters/lt.d.ts.map +1 -0
  213. package/dist/v3/reporters/lt.js +122 -0
  214. package/dist/v3/reporters/lt.js.map +1 -0
  215. package/dist/v3/reporters/null.d.ts.map +1 -0
  216. package/dist/v3/reporters/null.js.map +1 -0
  217. package/dist/v3/routeFailure.d.ts.map +1 -0
  218. package/dist/v3/routeFailure.js +34 -0
  219. package/dist/v3/routeFailure.js.map +1 -0
  220. package/dist/v3/session.d.ts.map +1 -0
  221. package/dist/v3/session.js +312 -0
  222. package/dist/v3/session.js.map +1 -0
  223. package/dist/v3/step.d.ts.map +1 -0
  224. package/dist/v3/step.js +112 -0
  225. package/dist/v3/step.js.map +1 -0
  226. package/dist/v3/stepVariables.d.ts.map +1 -0
  227. package/dist/v3/stepVariables.js +61 -0
  228. package/dist/v3/stepVariables.js.map +1 -0
  229. package/dist/v3/test.d.ts.map +1 -0
  230. package/dist/v3/test.js.map +1 -0
  231. package/dist/v3/testConfig.d.ts.map +1 -0
  232. package/dist/v3/testConfig.js.map +1 -0
  233. package/dist/v3/testState.d.ts.map +1 -0
  234. package/dist/v3/testState.js.map +1 -0
  235. package/dist/v3/vars.d.ts +84 -0
  236. package/dist/v3/vars.d.ts.map +1 -0
  237. package/dist/v3/vars.js +913 -0
  238. package/dist/v3/vars.js.map +1 -0
  239. package/dist/v3/visionLocator.d.ts.map +1 -0
  240. package/dist/v3/visionLocator.js +117 -0
  241. package/dist/v3/visionLocator.js.map +1 -0
  242. package/dist/v4/actionEngine.d.ts +37 -0
  243. package/dist/v4/actionEngine.d.ts.map +1 -0
  244. package/dist/v4/actionEngine.js +194 -0
  245. package/dist/v4/actionEngine.js.map +1 -0
  246. package/dist/v4/actionSpecs.d.ts +35 -0
  247. package/dist/v4/actionSpecs.d.ts.map +1 -0
  248. package/dist/v4/actionSpecs.js +354 -0
  249. package/dist/v4/actionSpecs.js.map +1 -0
  250. package/dist/v4/capability.d.ts +81 -0
  251. package/dist/v4/capability.d.ts.map +1 -0
  252. package/dist/v4/capability.js +346 -0
  253. package/dist/v4/capability.js.map +1 -0
  254. package/dist/v4/downloadsPath.d.ts +17 -0
  255. package/dist/v4/downloadsPath.d.ts.map +1 -0
  256. package/dist/v4/downloadsPath.js +26 -0
  257. package/dist/v4/downloadsPath.js.map +1 -0
  258. package/dist/v4/healCache.d.ts +28 -0
  259. package/dist/v4/healCache.d.ts.map +1 -0
  260. package/dist/v4/healCache.js +17 -0
  261. package/dist/v4/healCache.js.map +1 -0
  262. package/dist/v4/healPatch.d.ts +22 -0
  263. package/dist/v4/healPatch.d.ts.map +1 -0
  264. package/dist/v4/healPatch.js +415 -0
  265. package/dist/v4/healPatch.js.map +1 -0
  266. package/dist/v4/helpers/a11yFlatten.d.ts +37 -0
  267. package/dist/v4/helpers/a11yFlatten.d.ts.map +1 -0
  268. package/dist/v4/helpers/a11yFlatten.js +569 -0
  269. package/dist/v4/helpers/a11yFlatten.js.map +1 -0
  270. package/dist/v4/helpers/apiCalls.d.ts +26 -0
  271. package/dist/v4/helpers/apiCalls.d.ts.map +1 -0
  272. package/dist/v4/helpers/apiCalls.js +59 -0
  273. package/dist/v4/helpers/apiCalls.js.map +1 -0
  274. package/dist/v4/helpers/assertion.d.ts +26 -0
  275. package/dist/v4/helpers/assertion.d.ts.map +1 -0
  276. package/dist/v4/helpers/assertion.js +134 -0
  277. package/dist/v4/helpers/assertion.js.map +1 -0
  278. package/dist/v4/helpers/assertionV3.d.ts +70 -0
  279. package/dist/v4/helpers/assertionV3.d.ts.map +1 -0
  280. package/dist/v4/helpers/assertionV3.js +400 -0
  281. package/dist/v4/helpers/assertionV3.js.map +1 -0
  282. package/dist/v4/helpers/autohealAx.d.ts +41 -0
  283. package/dist/v4/helpers/autohealAx.d.ts.map +1 -0
  284. package/dist/v4/helpers/autohealAx.js +148 -0
  285. package/dist/v4/helpers/autohealAx.js.map +1 -0
  286. package/dist/v4/helpers/axTree/actionable.d.ts +143 -0
  287. package/dist/v4/helpers/axTree/actionable.d.ts.map +1 -0
  288. package/dist/v4/helpers/axTree/actionable.js +404 -0
  289. package/dist/v4/helpers/axTree/actionable.js.map +1 -0
  290. package/dist/v4/helpers/axTree/captureAxTree.d.ts +21 -0
  291. package/dist/v4/helpers/axTree/captureAxTree.d.ts.map +1 -0
  292. package/dist/v4/helpers/axTree/captureAxTree.js +15 -0
  293. package/dist/v4/helpers/axTree/captureAxTree.js.map +1 -0
  294. package/dist/v4/helpers/axTree/captureFrameForest.d.ts +52 -0
  295. package/dist/v4/helpers/axTree/captureFrameForest.d.ts.map +1 -0
  296. package/dist/v4/helpers/axTree/captureFrameForest.js +475 -0
  297. package/dist/v4/helpers/axTree/captureFrameForest.js.map +1 -0
  298. package/dist/v4/helpers/axTree/index.d.ts +10 -0
  299. package/dist/v4/helpers/axTree/index.d.ts.map +1 -0
  300. package/dist/v4/helpers/axTree/index.js +8 -0
  301. package/dist/v4/helpers/axTree/index.js.map +1 -0
  302. package/dist/v4/helpers/axTree/serializeAxTree.d.ts +106 -0
  303. package/dist/v4/helpers/axTree/serializeAxTree.d.ts.map +1 -0
  304. package/dist/v4/helpers/axTree/serializeAxTree.js +238 -0
  305. package/dist/v4/helpers/axTree/serializeAxTree.js.map +1 -0
  306. package/dist/v4/helpers/clipboard-intercept.d.ts +5 -0
  307. package/dist/v4/helpers/clipboard-intercept.d.ts.map +1 -0
  308. package/dist/v4/helpers/clipboard-intercept.js +149 -0
  309. package/dist/v4/helpers/clipboard-intercept.js.map +1 -0
  310. package/dist/v4/helpers/clipboard.d.ts +27 -0
  311. package/dist/v4/helpers/clipboard.d.ts.map +1 -0
  312. package/dist/v4/helpers/clipboard.js +70 -0
  313. package/dist/v4/helpers/clipboard.js.map +1 -0
  314. package/dist/v4/helpers/condition.d.ts +100 -0
  315. package/dist/v4/helpers/condition.d.ts.map +1 -0
  316. package/dist/v4/helpers/condition.js +356 -0
  317. package/dist/v4/helpers/condition.js.map +1 -0
  318. package/dist/v4/helpers/cookies.d.ts +12 -0
  319. package/dist/v4/helpers/cookies.d.ts.map +1 -0
  320. package/dist/v4/helpers/cookies.js +66 -0
  321. package/dist/v4/helpers/cookies.js.map +1 -0
  322. package/dist/v4/helpers/coordinateResolver.d.ts +29 -0
  323. package/dist/v4/helpers/coordinateResolver.d.ts.map +1 -0
  324. package/dist/v4/helpers/coordinateResolver.js +118 -0
  325. package/dist/v4/helpers/coordinateResolver.js.map +1 -0
  326. package/dist/v4/helpers/credits.d.ts +19 -0
  327. package/dist/v4/helpers/credits.d.ts.map +1 -0
  328. package/dist/v4/helpers/credits.js +52 -0
  329. package/dist/v4/helpers/credits.js.map +1 -0
  330. package/dist/v4/helpers/derive.d.ts +27 -0
  331. package/dist/v4/helpers/derive.d.ts.map +1 -0
  332. package/dist/v4/helpers/derive.js +87 -0
  333. package/dist/v4/helpers/derive.js.map +1 -0
  334. package/dist/v4/helpers/devtools.d.ts +39 -0
  335. package/dist/v4/helpers/devtools.d.ts.map +1 -0
  336. package/dist/v4/helpers/devtools.js +1215 -0
  337. package/dist/v4/helpers/devtools.js.map +1 -0
  338. package/dist/v4/helpers/dialog.d.ts +29 -0
  339. package/dist/v4/helpers/dialog.d.ts.map +1 -0
  340. package/dist/v4/helpers/dialog.js +35 -0
  341. package/dist/v4/helpers/dialog.js.map +1 -0
  342. package/dist/v4/helpers/drag.d.ts +38 -0
  343. package/dist/v4/helpers/drag.d.ts.map +1 -0
  344. package/dist/v4/helpers/drag.js +245 -0
  345. package/dist/v4/helpers/drag.js.map +1 -0
  346. package/dist/v4/helpers/evaluation/colors.d.ts +2 -0
  347. package/dist/v4/helpers/evaluation/colors.d.ts.map +1 -0
  348. package/dist/v4/helpers/evaluation/colors.js +151 -0
  349. package/dist/v4/helpers/evaluation/colors.js.map +1 -0
  350. package/dist/v4/helpers/evaluation/evaluate.d.ts +10 -0
  351. package/dist/v4/helpers/evaluation/evaluate.d.ts.map +1 -0
  352. package/dist/v4/helpers/evaluation/evaluate.js +423 -0
  353. package/dist/v4/helpers/evaluation/evaluate.js.map +1 -0
  354. package/dist/v4/helpers/executeApi.d.ts +63 -0
  355. package/dist/v4/helpers/executeApi.d.ts.map +1 -0
  356. package/dist/v4/helpers/executeApi.js +363 -0
  357. package/dist/v4/helpers/executeApi.js.map +1 -0
  358. package/dist/v4/helpers/executeDb.d.ts +11 -0
  359. package/dist/v4/helpers/executeDb.d.ts.map +1 -0
  360. package/dist/v4/helpers/executeDb.js +54 -0
  361. package/dist/v4/helpers/executeDb.js.map +1 -0
  362. package/dist/v4/helpers/executeJs.d.ts +16 -0
  363. package/dist/v4/helpers/executeJs.d.ts.map +1 -0
  364. package/dist/v4/helpers/executeJs.js +86 -0
  365. package/dist/v4/helpers/executeJs.js.map +1 -0
  366. package/dist/v4/helpers/gesture.d.ts +45 -0
  367. package/dist/v4/helpers/gesture.d.ts.map +1 -0
  368. package/dist/v4/helpers/gesture.js +131 -0
  369. package/dist/v4/helpers/gesture.js.map +1 -0
  370. package/dist/v4/helpers/healCascade.d.ts +39 -0
  371. package/dist/v4/helpers/healCascade.d.ts.map +1 -0
  372. package/dist/v4/helpers/healCascade.js +418 -0
  373. package/dist/v4/helpers/healCascade.js.map +1 -0
  374. package/dist/v4/helpers/kaneCli.d.ts +18 -0
  375. package/dist/v4/helpers/kaneCli.d.ts.map +1 -0
  376. package/dist/v4/helpers/kaneCli.js +319 -0
  377. package/dist/v4/helpers/kaneCli.js.map +1 -0
  378. package/dist/v4/helpers/loop.d.ts +4 -0
  379. package/dist/v4/helpers/loop.d.ts.map +1 -0
  380. package/dist/v4/helpers/loop.js +4 -0
  381. package/dist/v4/helpers/loop.js.map +1 -0
  382. package/dist/v4/helpers/math.d.ts +19 -0
  383. package/dist/v4/helpers/math.d.ts.map +1 -0
  384. package/dist/v4/helpers/math.js +117 -0
  385. package/dist/v4/helpers/math.js.map +1 -0
  386. package/dist/v4/helpers/network.d.ts +27 -0
  387. package/dist/v4/helpers/network.d.ts.map +1 -0
  388. package/dist/v4/helpers/network.js +185 -0
  389. package/dist/v4/helpers/network.js.map +1 -0
  390. package/dist/v4/helpers/pageReady.d.ts +27 -0
  391. package/dist/v4/helpers/pageReady.d.ts.map +1 -0
  392. package/dist/v4/helpers/pageReady.js +69 -0
  393. package/dist/v4/helpers/pageReady.js.map +1 -0
  394. package/dist/v4/helpers/png.d.ts +3 -0
  395. package/dist/v4/helpers/png.d.ts.map +1 -0
  396. package/dist/v4/helpers/png.js +18 -0
  397. package/dist/v4/helpers/png.js.map +1 -0
  398. package/dist/v4/helpers/queryResult.d.ts +13 -0
  399. package/dist/v4/helpers/queryResult.d.ts.map +1 -0
  400. package/dist/v4/helpers/queryResult.js +27 -0
  401. package/dist/v4/helpers/queryResult.js.map +1 -0
  402. package/dist/v4/helpers/runtimeSnapshot.d.ts +37 -0
  403. package/dist/v4/helpers/runtimeSnapshot.d.ts.map +1 -0
  404. package/dist/v4/helpers/runtimeSnapshot.js +101 -0
  405. package/dist/v4/helpers/runtimeSnapshot.js.map +1 -0
  406. package/dist/v4/helpers/schemaAssertion.d.ts +12 -0
  407. package/dist/v4/helpers/schemaAssertion.d.ts.map +1 -0
  408. package/dist/v4/helpers/schemaAssertion.js +117 -0
  409. package/dist/v4/helpers/schemaAssertion.js.map +1 -0
  410. package/dist/v4/helpers/screenshot.d.ts +40 -0
  411. package/dist/v4/helpers/screenshot.d.ts.map +1 -0
  412. package/dist/v4/helpers/screenshot.js +82 -0
  413. package/dist/v4/helpers/screenshot.js.map +1 -0
  414. package/dist/v4/helpers/scrollUntil.d.ts +13 -0
  415. package/dist/v4/helpers/scrollUntil.d.ts.map +1 -0
  416. package/dist/v4/helpers/scrollUntil.js +90 -0
  417. package/dist/v4/helpers/scrollUntil.js.map +1 -0
  418. package/dist/v4/helpers/smartui.d.ts +9 -0
  419. package/dist/v4/helpers/smartui.d.ts.map +1 -0
  420. package/dist/v4/helpers/smartui.js +77 -0
  421. package/dist/v4/helpers/smartui.js.map +1 -0
  422. package/dist/v4/helpers/sseParser.d.ts +34 -0
  423. package/dist/v4/helpers/sseParser.d.ts.map +1 -0
  424. package/dist/v4/helpers/sseParser.js +128 -0
  425. package/dist/v4/helpers/sseParser.js.map +1 -0
  426. package/dist/v4/helpers/tabs.d.ts +32 -0
  427. package/dist/v4/helpers/tabs.d.ts.map +1 -0
  428. package/dist/v4/helpers/tabs.js +89 -0
  429. package/dist/v4/helpers/tabs.js.map +1 -0
  430. package/dist/v4/helpers/text.d.ts +15 -0
  431. package/dist/v4/helpers/text.d.ts.map +1 -0
  432. package/dist/v4/helpers/text.js +24 -0
  433. package/dist/v4/helpers/text.js.map +1 -0
  434. package/dist/v4/helpers/textNormalize.d.ts +18 -0
  435. package/dist/v4/helpers/textNormalize.d.ts.map +1 -0
  436. package/dist/v4/helpers/textNormalize.js +39 -0
  437. package/dist/v4/helpers/textNormalize.js.map +1 -0
  438. package/dist/v4/helpers/textualAnalyzer/domStructured.d.ts +44 -0
  439. package/dist/v4/helpers/textualAnalyzer/domStructured.d.ts.map +1 -0
  440. package/dist/v4/helpers/textualAnalyzer/domStructured.js +242 -0
  441. package/dist/v4/helpers/textualAnalyzer/domStructured.js.map +1 -0
  442. package/dist/v4/helpers/textualAnalyzer/evaluate.d.ts +14 -0
  443. package/dist/v4/helpers/textualAnalyzer/evaluate.d.ts.map +1 -0
  444. package/dist/v4/helpers/textualAnalyzer/evaluate.js +5 -0
  445. package/dist/v4/helpers/textualAnalyzer/evaluate.js.map +1 -0
  446. package/dist/v4/helpers/textualAnalyzer/extractor.d.ts +21 -0
  447. package/dist/v4/helpers/textualAnalyzer/extractor.d.ts.map +1 -0
  448. package/dist/v4/helpers/textualAnalyzer/extractor.js +38 -0
  449. package/dist/v4/helpers/textualAnalyzer/extractor.js.map +1 -0
  450. package/dist/v4/helpers/textualAnalyzer/heal.d.ts +25 -0
  451. package/dist/v4/helpers/textualAnalyzer/heal.d.ts.map +1 -0
  452. package/dist/v4/helpers/textualAnalyzer/heal.js +120 -0
  453. package/dist/v4/helpers/textualAnalyzer/heal.js.map +1 -0
  454. package/dist/v4/helpers/textualAnalyzer/index.d.ts +29 -0
  455. package/dist/v4/helpers/textualAnalyzer/index.d.ts.map +1 -0
  456. package/dist/v4/helpers/textualAnalyzer/index.js +60 -0
  457. package/dist/v4/helpers/textualAnalyzer/index.js.map +1 -0
  458. package/dist/v4/helpers/textualAnalyzer/locatorEnrichment.d.ts +47 -0
  459. package/dist/v4/helpers/textualAnalyzer/locatorEnrichment.d.ts.map +1 -0
  460. package/dist/v4/helpers/textualAnalyzer/locatorEnrichment.js +224 -0
  461. package/dist/v4/helpers/textualAnalyzer/locatorEnrichment.js.map +1 -0
  462. package/dist/v4/helpers/vision.d.ts.map +1 -0
  463. package/dist/v4/helpers/vision.js +487 -0
  464. package/dist/v4/helpers/vision.js.map +1 -0
  465. package/dist/v4/helpers/wait.d.ts +16 -0
  466. package/dist/v4/helpers/wait.d.ts.map +1 -0
  467. package/dist/v4/helpers/wait.js +48 -0
  468. package/dist/v4/helpers/wait.js.map +1 -0
  469. package/dist/v4/http.d.ts +14 -0
  470. package/dist/v4/http.d.ts.map +1 -0
  471. package/dist/v4/http.js +45 -0
  472. package/dist/v4/http.js.map +1 -0
  473. package/dist/v4/httpClient.d.ts +18 -0
  474. package/dist/v4/httpClient.d.ts.map +1 -0
  475. package/dist/v4/httpClient.js +140 -0
  476. package/dist/v4/httpClient.js.map +1 -0
  477. package/dist/v4/index.d.ts +40 -0
  478. package/dist/v4/index.d.ts.map +1 -0
  479. package/dist/v4/index.js +41 -0
  480. package/dist/v4/index.js.map +1 -0
  481. package/dist/v4/rankedLocator.d.ts +27 -0
  482. package/dist/v4/rankedLocator.d.ts.map +1 -0
  483. package/dist/v4/rankedLocator.js +85 -0
  484. package/dist/v4/rankedLocator.js.map +1 -0
  485. package/dist/v4/relayProxy.d.ts +46 -0
  486. package/dist/v4/relayProxy.d.ts.map +1 -0
  487. package/dist/v4/relayProxy.js +485 -0
  488. package/dist/v4/relayProxy.js.map +1 -0
  489. package/dist/v4/reporters/index.d.ts +33 -0
  490. package/dist/v4/reporters/index.d.ts.map +1 -0
  491. package/dist/v4/reporters/index.js +7 -0
  492. package/dist/v4/reporters/index.js.map +1 -0
  493. package/dist/v4/reporters/local.d.ts +13 -0
  494. package/dist/v4/reporters/local.d.ts.map +1 -0
  495. package/dist/v4/reporters/local.js +40 -0
  496. package/dist/v4/reporters/local.js.map +1 -0
  497. package/dist/v4/reporters/lt.d.ts +28 -0
  498. package/dist/v4/reporters/lt.d.ts.map +1 -0
  499. package/dist/v4/reporters/lt.js +110 -0
  500. package/dist/v4/reporters/lt.js.map +1 -0
  501. package/dist/v4/reporters/null.d.ts +11 -0
  502. package/dist/v4/reporters/null.d.ts.map +1 -0
  503. package/dist/v4/reporters/null.js +10 -0
  504. package/dist/v4/reporters/null.js.map +1 -0
  505. package/dist/v4/routeFailure.d.ts +9 -0
  506. package/dist/v4/routeFailure.d.ts.map +1 -0
  507. package/dist/v4/routeFailure.js +34 -0
  508. package/dist/v4/routeFailure.js.map +1 -0
  509. package/dist/v4/session.d.ts +22 -0
  510. package/dist/v4/session.d.ts.map +1 -0
  511. package/dist/v4/session.js +312 -0
  512. package/dist/v4/session.js.map +1 -0
  513. package/dist/v4/step.d.ts +53 -0
  514. package/dist/v4/step.d.ts.map +1 -0
  515. package/dist/v4/step.js +95 -0
  516. package/dist/v4/step.js.map +1 -0
  517. package/dist/v4/stepVariables.d.ts +15 -0
  518. package/dist/v4/stepVariables.d.ts.map +1 -0
  519. package/dist/v4/stepVariables.js +61 -0
  520. package/dist/v4/stepVariables.js.map +1 -0
  521. package/dist/v4/test.d.ts +10 -0
  522. package/dist/v4/test.d.ts.map +1 -0
  523. package/dist/v4/test.js +5 -0
  524. package/dist/v4/test.js.map +1 -0
  525. package/dist/v4/testConfig.d.ts +12 -0
  526. package/dist/v4/testConfig.d.ts.map +1 -0
  527. package/dist/v4/testConfig.js +89 -0
  528. package/dist/v4/testConfig.js.map +1 -0
  529. package/dist/v4/testState.d.ts +10 -0
  530. package/dist/v4/testState.d.ts.map +1 -0
  531. package/dist/v4/testState.js +16 -0
  532. package/dist/v4/testState.js.map +1 -0
  533. package/dist/v4/vars.d.ts +84 -0
  534. package/dist/v4/vars.d.ts.map +1 -0
  535. package/dist/v4/vars.js +912 -0
  536. package/dist/v4/vars.js.map +1 -0
  537. package/dist/v4/visionLocator.d.ts +53 -0
  538. package/dist/v4/visionLocator.d.ts.map +1 -0
  539. package/dist/v4/visionLocator.js +117 -0
  540. package/dist/v4/visionLocator.js.map +1 -0
  541. package/package.json +1 -1
  542. package/dist/actionEngine.d.ts.map +0 -1
  543. package/dist/actionEngine.js +0 -194
  544. package/dist/actionEngine.js.map +0 -1
  545. package/dist/actionSpecs.d.ts.map +0 -1
  546. package/dist/actionSpecs.js +0 -354
  547. package/dist/actionSpecs.js.map +0 -1
  548. package/dist/capability.d.ts.map +0 -1
  549. package/dist/capability.js +0 -346
  550. package/dist/capability.js.map +0 -1
  551. package/dist/downloadsPath.d.ts.map +0 -1
  552. package/dist/downloadsPath.js.map +0 -1
  553. package/dist/healCache.d.ts.map +0 -1
  554. package/dist/healCache.js.map +0 -1
  555. package/dist/healPatch.d.ts +0 -20
  556. package/dist/healPatch.d.ts.map +0 -1
  557. package/dist/healPatch.js +0 -429
  558. package/dist/healPatch.js.map +0 -1
  559. package/dist/helpers/a11yFlatten.d.ts.map +0 -1
  560. package/dist/helpers/a11yFlatten.js +0 -569
  561. package/dist/helpers/a11yFlatten.js.map +0 -1
  562. package/dist/helpers/apiCalls.d.ts.map +0 -1
  563. package/dist/helpers/apiCalls.js +0 -59
  564. package/dist/helpers/apiCalls.js.map +0 -1
  565. package/dist/helpers/assertion.d.ts.map +0 -1
  566. package/dist/helpers/assertion.js +0 -152
  567. package/dist/helpers/assertion.js.map +0 -1
  568. package/dist/helpers/assertionV3.d.ts.map +0 -1
  569. package/dist/helpers/assertionV3.js.map +0 -1
  570. package/dist/helpers/autohealAx.d.ts.map +0 -1
  571. package/dist/helpers/autohealAx.js +0 -148
  572. package/dist/helpers/autohealAx.js.map +0 -1
  573. package/dist/helpers/axTree/actionable.d.ts.map +0 -1
  574. package/dist/helpers/axTree/actionable.js +0 -404
  575. package/dist/helpers/axTree/actionable.js.map +0 -1
  576. package/dist/helpers/axTree/captureAxTree.d.ts.map +0 -1
  577. package/dist/helpers/axTree/captureAxTree.js.map +0 -1
  578. package/dist/helpers/axTree/captureFrameForest.d.ts.map +0 -1
  579. package/dist/helpers/axTree/captureFrameForest.js +0 -475
  580. package/dist/helpers/axTree/captureFrameForest.js.map +0 -1
  581. package/dist/helpers/axTree/index.d.ts.map +0 -1
  582. package/dist/helpers/axTree/index.js.map +0 -1
  583. package/dist/helpers/axTree/serializeAxTree.d.ts.map +0 -1
  584. package/dist/helpers/axTree/serializeAxTree.js.map +0 -1
  585. package/dist/helpers/clipboard-intercept.d.ts.map +0 -1
  586. package/dist/helpers/clipboard-intercept.js.map +0 -1
  587. package/dist/helpers/clipboard.d.ts.map +0 -1
  588. package/dist/helpers/clipboard.js.map +0 -1
  589. package/dist/helpers/condition.d.ts +0 -100
  590. package/dist/helpers/condition.d.ts.map +0 -1
  591. package/dist/helpers/condition.js +0 -357
  592. package/dist/helpers/condition.js.map +0 -1
  593. package/dist/helpers/cookies.d.ts.map +0 -1
  594. package/dist/helpers/cookies.js +0 -66
  595. package/dist/helpers/cookies.js.map +0 -1
  596. package/dist/helpers/coordinateResolver.d.ts.map +0 -1
  597. package/dist/helpers/coordinateResolver.js +0 -118
  598. package/dist/helpers/coordinateResolver.js.map +0 -1
  599. package/dist/helpers/coordinateResolverRead.d.ts.map +0 -1
  600. package/dist/helpers/coordinateResolverRead.js +0 -107
  601. package/dist/helpers/coordinateResolverRead.js.map +0 -1
  602. package/dist/helpers/credits.d.ts.map +0 -1
  603. package/dist/helpers/credits.js +0 -52
  604. package/dist/helpers/credits.js.map +0 -1
  605. package/dist/helpers/derive.d.ts.map +0 -1
  606. package/dist/helpers/derive.js +0 -87
  607. package/dist/helpers/derive.js.map +0 -1
  608. package/dist/helpers/devtools.d.ts.map +0 -1
  609. package/dist/helpers/devtools.js +0 -1215
  610. package/dist/helpers/devtools.js.map +0 -1
  611. package/dist/helpers/dialog.d.ts.map +0 -1
  612. package/dist/helpers/dialog.js.map +0 -1
  613. package/dist/helpers/drag.d.ts.map +0 -1
  614. package/dist/helpers/drag.js +0 -276
  615. package/dist/helpers/drag.js.map +0 -1
  616. package/dist/helpers/evaluation/colors.d.ts.map +0 -1
  617. package/dist/helpers/evaluation/colors.js.map +0 -1
  618. package/dist/helpers/evaluation/evaluate.d.ts.map +0 -1
  619. package/dist/helpers/evaluation/evaluate.js.map +0 -1
  620. package/dist/helpers/executeApi.d.ts.map +0 -1
  621. package/dist/helpers/executeApi.js +0 -377
  622. package/dist/helpers/executeApi.js.map +0 -1
  623. package/dist/helpers/executeDb.d.ts.map +0 -1
  624. package/dist/helpers/executeDb.js +0 -54
  625. package/dist/helpers/executeDb.js.map +0 -1
  626. package/dist/helpers/executeJs.d.ts.map +0 -1
  627. package/dist/helpers/executeJs.js +0 -117
  628. package/dist/helpers/executeJs.js.map +0 -1
  629. package/dist/helpers/gesture.d.ts.map +0 -1
  630. package/dist/helpers/gesture.js +0 -131
  631. package/dist/helpers/gesture.js.map +0 -1
  632. package/dist/helpers/healCascade.d.ts.map +0 -1
  633. package/dist/helpers/healCascade.js +0 -418
  634. package/dist/helpers/healCascade.js.map +0 -1
  635. package/dist/helpers/iframeA11y.d.ts.map +0 -1
  636. package/dist/helpers/iframeA11y.js +0 -128
  637. package/dist/helpers/iframeA11y.js.map +0 -1
  638. package/dist/helpers/kaneCli.d.ts.map +0 -1
  639. package/dist/helpers/kaneCli.js +0 -319
  640. package/dist/helpers/kaneCli.js.map +0 -1
  641. package/dist/helpers/loop.d.ts +0 -6
  642. package/dist/helpers/loop.d.ts.map +0 -1
  643. package/dist/helpers/loop.js +0 -9
  644. package/dist/helpers/loop.js.map +0 -1
  645. package/dist/helpers/math.d.ts.map +0 -1
  646. package/dist/helpers/math.js +0 -152
  647. package/dist/helpers/math.js.map +0 -1
  648. package/dist/helpers/network.d.ts.map +0 -1
  649. package/dist/helpers/network.js +0 -185
  650. package/dist/helpers/network.js.map +0 -1
  651. package/dist/helpers/pageReady.d.ts.map +0 -1
  652. package/dist/helpers/pageReady.js +0 -85
  653. package/dist/helpers/pageReady.js.map +0 -1
  654. package/dist/helpers/png.d.ts.map +0 -1
  655. package/dist/helpers/png.js.map +0 -1
  656. package/dist/helpers/queryResult.d.ts.map +0 -1
  657. package/dist/helpers/queryResult.js.map +0 -1
  658. package/dist/helpers/runtimeSnapshot.d.ts.map +0 -1
  659. package/dist/helpers/runtimeSnapshot.js +0 -204
  660. package/dist/helpers/runtimeSnapshot.js.map +0 -1
  661. package/dist/helpers/schemaAssertion.d.ts.map +0 -1
  662. package/dist/helpers/schemaAssertion.js +0 -117
  663. package/dist/helpers/schemaAssertion.js.map +0 -1
  664. package/dist/helpers/screenshot.d.ts +0 -45
  665. package/dist/helpers/screenshot.d.ts.map +0 -1
  666. package/dist/helpers/screenshot.js +0 -90
  667. package/dist/helpers/screenshot.js.map +0 -1
  668. package/dist/helpers/scrollUntil.d.ts.map +0 -1
  669. package/dist/helpers/scrollUntil.js +0 -90
  670. package/dist/helpers/scrollUntil.js.map +0 -1
  671. package/dist/helpers/smartui.d.ts.map +0 -1
  672. package/dist/helpers/smartui.js +0 -77
  673. package/dist/helpers/smartui.js.map +0 -1
  674. package/dist/helpers/sseParser.d.ts.map +0 -1
  675. package/dist/helpers/sseParser.js.map +0 -1
  676. package/dist/helpers/tabs.d.ts +0 -44
  677. package/dist/helpers/tabs.d.ts.map +0 -1
  678. package/dist/helpers/tabs.js +0 -270
  679. package/dist/helpers/tabs.js.map +0 -1
  680. package/dist/helpers/text.d.ts.map +0 -1
  681. package/dist/helpers/text.js.map +0 -1
  682. package/dist/helpers/textNormalize.d.ts.map +0 -1
  683. package/dist/helpers/textNormalize.js.map +0 -1
  684. package/dist/helpers/textualAnalyzer/domStructured.d.ts.map +0 -1
  685. package/dist/helpers/textualAnalyzer/domStructured.js +0 -242
  686. package/dist/helpers/textualAnalyzer/domStructured.js.map +0 -1
  687. package/dist/helpers/textualAnalyzer/evaluate.d.ts.map +0 -1
  688. package/dist/helpers/textualAnalyzer/evaluate.js.map +0 -1
  689. package/dist/helpers/textualAnalyzer/extractor.d.ts.map +0 -1
  690. package/dist/helpers/textualAnalyzer/extractor.js.map +0 -1
  691. package/dist/helpers/textualAnalyzer/heal.d.ts.map +0 -1
  692. package/dist/helpers/textualAnalyzer/heal.js +0 -120
  693. package/dist/helpers/textualAnalyzer/heal.js.map +0 -1
  694. package/dist/helpers/textualAnalyzer/index.d.ts.map +0 -1
  695. package/dist/helpers/textualAnalyzer/index.js +0 -60
  696. package/dist/helpers/textualAnalyzer/index.js.map +0 -1
  697. package/dist/helpers/textualAnalyzer/locatorEnrichment.d.ts.map +0 -1
  698. package/dist/helpers/textualAnalyzer/locatorEnrichment.js +0 -224
  699. package/dist/helpers/textualAnalyzer/locatorEnrichment.js.map +0 -1
  700. package/dist/helpers/textualRead.d.ts.map +0 -1
  701. package/dist/helpers/textualRead.js.map +0 -1
  702. package/dist/helpers/vision.d.ts.map +0 -1
  703. package/dist/helpers/vision.js +0 -498
  704. package/dist/helpers/vision.js.map +0 -1
  705. package/dist/helpers/visionFence.d.ts.map +0 -1
  706. package/dist/helpers/visionFence.js.map +0 -1
  707. package/dist/helpers/visionV3.d.ts +0 -52
  708. package/dist/helpers/visionV3.d.ts.map +0 -1
  709. package/dist/helpers/visionV3.js +0 -366
  710. package/dist/helpers/visionV3.js.map +0 -1
  711. package/dist/helpers/wait.d.ts.map +0 -1
  712. package/dist/helpers/wait.js +0 -48
  713. package/dist/helpers/wait.js.map +0 -1
  714. package/dist/http.d.ts.map +0 -1
  715. package/dist/http.js +0 -45
  716. package/dist/http.js.map +0 -1
  717. package/dist/httpClient.d.ts.map +0 -1
  718. package/dist/httpClient.js.map +0 -1
  719. package/dist/rankedLocator.d.ts.map +0 -1
  720. package/dist/rankedLocator.js +0 -85
  721. package/dist/rankedLocator.js.map +0 -1
  722. package/dist/relayProxy.d.ts.map +0 -1
  723. package/dist/relayProxy.js +0 -485
  724. package/dist/relayProxy.js.map +0 -1
  725. package/dist/reporters/index.d.ts.map +0 -1
  726. package/dist/reporters/index.js +0 -7
  727. package/dist/reporters/index.js.map +0 -1
  728. package/dist/reporters/local.d.ts.map +0 -1
  729. package/dist/reporters/local.js +0 -40
  730. package/dist/reporters/local.js.map +0 -1
  731. package/dist/reporters/lt.d.ts.map +0 -1
  732. package/dist/reporters/lt.js +0 -127
  733. package/dist/reporters/lt.js.map +0 -1
  734. package/dist/reporters/null.d.ts.map +0 -1
  735. package/dist/reporters/null.js.map +0 -1
  736. package/dist/routeFailure.d.ts.map +0 -1
  737. package/dist/routeFailure.js +0 -34
  738. package/dist/routeFailure.js.map +0 -1
  739. package/dist/session.d.ts.map +0 -1
  740. package/dist/session.js +0 -312
  741. package/dist/session.js.map +0 -1
  742. package/dist/step.d.ts.map +0 -1
  743. package/dist/step.js +0 -112
  744. package/dist/step.js.map +0 -1
  745. package/dist/stepVariables.d.ts.map +0 -1
  746. package/dist/stepVariables.js +0 -61
  747. package/dist/stepVariables.js.map +0 -1
  748. package/dist/test.d.ts.map +0 -1
  749. package/dist/test.js.map +0 -1
  750. package/dist/testConfig.d.ts.map +0 -1
  751. package/dist/testConfig.js.map +0 -1
  752. package/dist/testState.d.ts.map +0 -1
  753. package/dist/testState.js.map +0 -1
  754. package/dist/vars.d.ts +0 -78
  755. package/dist/vars.d.ts.map +0 -1
  756. package/dist/vars.js +0 -912
  757. package/dist/vars.js.map +0 -1
  758. package/dist/visionLocator.d.ts.map +0 -1
  759. package/dist/visionLocator.js +0 -117
  760. package/dist/visionLocator.js.map +0 -1
  761. /package/dist/{actionEngine.d.ts → v3/actionEngine.d.ts} +0 -0
  762. /package/dist/{actionSpecs.d.ts → v3/actionSpecs.d.ts} +0 -0
  763. /package/dist/{capability.d.ts → v3/capability.d.ts} +0 -0
  764. /package/dist/{downloadsPath.d.ts → v3/downloadsPath.d.ts} +0 -0
  765. /package/dist/{downloadsPath.js → v3/downloadsPath.js} +0 -0
  766. /package/dist/{healCache.d.ts → v3/healCache.d.ts} +0 -0
  767. /package/dist/{healCache.js → v3/healCache.js} +0 -0
  768. /package/dist/{helpers → v3/helpers}/a11yFlatten.d.ts +0 -0
  769. /package/dist/{helpers → v3/helpers}/apiCalls.d.ts +0 -0
  770. /package/dist/{helpers → v3/helpers}/assertion.d.ts +0 -0
  771. /package/dist/{helpers → v3/helpers}/assertionV3.d.ts +0 -0
  772. /package/dist/{helpers → v3/helpers}/assertionV3.js +0 -0
  773. /package/dist/{helpers → v3/helpers}/autohealAx.d.ts +0 -0
  774. /package/dist/{helpers → v3/helpers}/axTree/actionable.d.ts +0 -0
  775. /package/dist/{helpers → v3/helpers}/axTree/captureAxTree.d.ts +0 -0
  776. /package/dist/{helpers → v3/helpers}/axTree/captureAxTree.js +0 -0
  777. /package/dist/{helpers → v3/helpers}/axTree/captureFrameForest.d.ts +0 -0
  778. /package/dist/{helpers → v3/helpers}/axTree/index.d.ts +0 -0
  779. /package/dist/{helpers → v3/helpers}/axTree/index.js +0 -0
  780. /package/dist/{helpers → v3/helpers}/axTree/serializeAxTree.d.ts +0 -0
  781. /package/dist/{helpers → v3/helpers}/axTree/serializeAxTree.js +0 -0
  782. /package/dist/{helpers → v3/helpers}/clipboard-intercept.d.ts +0 -0
  783. /package/dist/{helpers → v3/helpers}/clipboard-intercept.js +0 -0
  784. /package/dist/{helpers → v3/helpers}/clipboard.d.ts +0 -0
  785. /package/dist/{helpers → v3/helpers}/clipboard.js +0 -0
  786. /package/dist/{helpers → v3/helpers}/cookies.d.ts +0 -0
  787. /package/dist/{helpers → v3/helpers}/coordinateResolver.d.ts +0 -0
  788. /package/dist/{helpers → v3/helpers}/coordinateResolverRead.d.ts +0 -0
  789. /package/dist/{helpers → v3/helpers}/credits.d.ts +0 -0
  790. /package/dist/{helpers → v3/helpers}/derive.d.ts +0 -0
  791. /package/dist/{helpers → v3/helpers}/devtools.d.ts +0 -0
  792. /package/dist/{helpers → v3/helpers}/dialog.d.ts +0 -0
  793. /package/dist/{helpers → v3/helpers}/dialog.js +0 -0
  794. /package/dist/{helpers → v3/helpers}/drag.d.ts +0 -0
  795. /package/dist/{helpers → v3/helpers}/evaluation/colors.d.ts +0 -0
  796. /package/dist/{helpers → v3/helpers}/evaluation/colors.js +0 -0
  797. /package/dist/{helpers → v3/helpers}/evaluation/evaluate.d.ts +0 -0
  798. /package/dist/{helpers → v3/helpers}/evaluation/evaluate.js +0 -0
  799. /package/dist/{helpers → v3/helpers}/executeApi.d.ts +0 -0
  800. /package/dist/{helpers → v3/helpers}/executeDb.d.ts +0 -0
  801. /package/dist/{helpers → v3/helpers}/executeJs.d.ts +0 -0
  802. /package/dist/{helpers → v3/helpers}/gesture.d.ts +0 -0
  803. /package/dist/{helpers → v3/helpers}/healCascade.d.ts +0 -0
  804. /package/dist/{helpers → v3/helpers}/iframeA11y.d.ts +0 -0
  805. /package/dist/{helpers → v3/helpers}/kaneCli.d.ts +0 -0
  806. /package/dist/{helpers → v3/helpers}/math.d.ts +0 -0
  807. /package/dist/{helpers → v3/helpers}/network.d.ts +0 -0
  808. /package/dist/{helpers → v3/helpers}/pageReady.d.ts +0 -0
  809. /package/dist/{helpers → v3/helpers}/png.d.ts +0 -0
  810. /package/dist/{helpers → v3/helpers}/png.js +0 -0
  811. /package/dist/{helpers → v3/helpers}/queryResult.d.ts +0 -0
  812. /package/dist/{helpers → v3/helpers}/queryResult.js +0 -0
  813. /package/dist/{helpers → v3/helpers}/runtimeSnapshot.d.ts +0 -0
  814. /package/dist/{helpers → v3/helpers}/schemaAssertion.d.ts +0 -0
  815. /package/dist/{helpers → v3/helpers}/scrollUntil.d.ts +0 -0
  816. /package/dist/{helpers → v3/helpers}/smartui.d.ts +0 -0
  817. /package/dist/{helpers → v3/helpers}/sseParser.d.ts +0 -0
  818. /package/dist/{helpers → v3/helpers}/sseParser.js +0 -0
  819. /package/dist/{helpers → v3/helpers}/text.d.ts +0 -0
  820. /package/dist/{helpers → v3/helpers}/text.js +0 -0
  821. /package/dist/{helpers → v3/helpers}/textNormalize.d.ts +0 -0
  822. /package/dist/{helpers → v3/helpers}/textNormalize.js +0 -0
  823. /package/dist/{helpers → v3/helpers}/textualAnalyzer/domStructured.d.ts +0 -0
  824. /package/dist/{helpers → v3/helpers}/textualAnalyzer/evaluate.d.ts +0 -0
  825. /package/dist/{helpers → v3/helpers}/textualAnalyzer/evaluate.js +0 -0
  826. /package/dist/{helpers → v3/helpers}/textualAnalyzer/extractor.d.ts +0 -0
  827. /package/dist/{helpers → v3/helpers}/textualAnalyzer/extractor.js +0 -0
  828. /package/dist/{helpers → v3/helpers}/textualAnalyzer/heal.d.ts +0 -0
  829. /package/dist/{helpers → v3/helpers}/textualAnalyzer/index.d.ts +0 -0
  830. /package/dist/{helpers → v3/helpers}/textualAnalyzer/locatorEnrichment.d.ts +0 -0
  831. /package/dist/{helpers → v3/helpers}/textualRead.d.ts +0 -0
  832. /package/dist/{helpers → v3/helpers}/textualRead.js +0 -0
  833. /package/dist/{helpers → v3/helpers}/visionFence.d.ts +0 -0
  834. /package/dist/{helpers → v3/helpers}/visionFence.js +0 -0
  835. /package/dist/{helpers → v3/helpers}/wait.d.ts +0 -0
  836. /package/dist/{http.d.ts → v3/http.d.ts} +0 -0
  837. /package/dist/{httpClient.d.ts → v3/httpClient.d.ts} +0 -0
  838. /package/dist/{httpClient.js → v3/httpClient.js} +0 -0
  839. /package/dist/{rankedLocator.d.ts → v3/rankedLocator.d.ts} +0 -0
  840. /package/dist/{relayProxy.d.ts → v3/relayProxy.d.ts} +0 -0
  841. /package/dist/{reporters → v3/reporters}/index.d.ts +0 -0
  842. /package/dist/{reporters → v3/reporters}/local.d.ts +0 -0
  843. /package/dist/{reporters → v3/reporters}/lt.d.ts +0 -0
  844. /package/dist/{reporters → v3/reporters}/null.d.ts +0 -0
  845. /package/dist/{reporters → v3/reporters}/null.js +0 -0
  846. /package/dist/{routeFailure.d.ts → v3/routeFailure.d.ts} +0 -0
  847. /package/dist/{session.d.ts → v3/session.d.ts} +0 -0
  848. /package/dist/{step.d.ts → v3/step.d.ts} +0 -0
  849. /package/dist/{stepVariables.d.ts → v3/stepVariables.d.ts} +0 -0
  850. /package/dist/{test.d.ts → v3/test.d.ts} +0 -0
  851. /package/dist/{test.js → v3/test.js} +0 -0
  852. /package/dist/{testConfig.d.ts → v3/testConfig.d.ts} +0 -0
  853. /package/dist/{testConfig.js → v3/testConfig.js} +0 -0
  854. /package/dist/{testState.d.ts → v3/testState.d.ts} +0 -0
  855. /package/dist/{testState.js → v3/testState.js} +0 -0
  856. /package/dist/{visionLocator.d.ts → v3/visionLocator.d.ts} +0 -0
  857. /package/dist/{helpers → v4/helpers}/vision.d.ts +0 -0
@@ -0,0 +1,106 @@
1
+ /**
2
+ * AX-tree text serializer producing a greppable doc + per-step ref table.
3
+ *
4
+ * Byte-faithful TS port of the Python binding's
5
+ * `testmu/_helpers/ax_tree/_serializer.py` (`serialize_ax_tree`). The SAME
6
+ * `(doc, refTable)` format is consumed by the v16-server + controller
7
+ * (`/api/v1/AH2/autoheal` reads `doc`; the binding resolves refs off
8
+ * `refTable`), so the `e<N>` line format and refTable shape MUST stay
9
+ * byte-identical across both bindings.
10
+ *
11
+ * Pure — no I/O. The caller (`captureAxTree`) captures the `AxNode` tree via
12
+ * CDP before calling this.
13
+ *
14
+ * Frame-aware merge is ported whole (`frameChildren`): when the walk hits an
15
+ * `iframe`-role node it looks it up by the owning node's OWN backendDomNodeId
16
+ * (stable identity, never positional) and inlines the matched frame's content
17
+ * one indent deeper, marking `[frame f<N>]` on the owner line. Passing no
18
+ * `frameChildren` (or `[]`) reproduces the single-tree output byte-for-byte —
19
+ * the v1 `captureAxTree` is main-frame-only and always calls it that way; the
20
+ * merge machinery is here so the doc/refTable format is identical to Python's
21
+ * frame-aware output when OOPIF capture lands (documented follow-up).
22
+ */
23
+ export declare const AX_DOC_MAX_CHARS = 500000;
24
+ export declare const TEXT_TRUNCATE_CHARS = 200;
25
+ /**
26
+ * Duck-typed accessibility node — only the fields the serializer READS. Built
27
+ * from CDP by `captureAxTree`; mirrors the Python `AxNode` attributes the
28
+ * serializer duck-types on.
29
+ */
30
+ export interface AxNode {
31
+ role: string;
32
+ name: string;
33
+ children: AxNode[];
34
+ backendDomNodeId: number | null;
35
+ disabled?: boolean;
36
+ checked?: boolean | string | null;
37
+ expanded?: boolean | null;
38
+ selected?: boolean | null;
39
+ pressed?: boolean | string | null;
40
+ focused?: boolean;
41
+ required?: boolean;
42
+ readonly?: boolean;
43
+ level?: number | null;
44
+ url?: string | null;
45
+ value?: string | null;
46
+ /**
47
+ * Actionable annotation (`actionable.ts`): set from a DOMSnapshot after
48
+ * capture. `clickable` = the DOM says a user can click it though its AX role
49
+ * doesn't; `displayName` = the label a promoted generic/role-less node
50
+ * renders with; `domHint` = the id/class/testid/label attributes that
51
+ * identify it. Absent until annotation runs.
52
+ */
53
+ clickable?: boolean;
54
+ displayName?: string;
55
+ domHint?: string;
56
+ /**
57
+ * CDP `ignored` and its `ignoredReasons` names (e.g. `inertElement` behind a
58
+ * modal); false / empty when the AX tree does not ignore it.
59
+ */
60
+ ignored?: boolean;
61
+ ignoredReasons?: string[];
62
+ }
63
+ /**
64
+ * Capture result for one iframe (mirrors Python `FrameCapture`). `status` is
65
+ * one of "captured" | "hidden" | "capture_failed" | "depth_exceeded" |
66
+ * "unresolved". `tree` is populated only when captured. `ownerBackendNodeId`
67
+ * is the owning iframe AX node's backendDomNodeId — the stable key the walk
68
+ * matches on (never positional).
69
+ */
70
+ export interface FrameCapture {
71
+ frameId: string;
72
+ status: string;
73
+ tree?: AxNode | null;
74
+ children?: FrameCapture[];
75
+ ownerBackendNodeId?: number | null;
76
+ }
77
+ export interface RefEntry {
78
+ backend_dom_node_id: number | null;
79
+ role: string;
80
+ name: string;
81
+ frame_id: string;
82
+ /**
83
+ * Set only on a DOM-clickable ref: `role`/`name` stay the node's AX identity
84
+ * (what a live `getPartialAXTree` reads; an AX-ignored node reads "" / ""),
85
+ * these hold what the doc showed.
86
+ */
87
+ display_role?: string;
88
+ display_name?: string;
89
+ clickable?: boolean;
90
+ }
91
+ export type RefTable = Record<string, RefEntry>;
92
+ /**
93
+ * Serialize an accessibility tree into a greppable text doc + ref table.
94
+ *
95
+ * @param root The tree to walk (main frame).
96
+ * @param frameChildren Ordered FrameCaptures for iframes directly owned by
97
+ * `root`'s tree. `undefined`/`[]` reproduces single-tree output exactly.
98
+ * @returns `{ doc, refTable }` — `doc` one line per node; `refTable` maps each
99
+ * `e<N>` to `{ backend_dom_node_id, role, name, frame_id }` (`frame_id` is
100
+ * "" for the main frame).
101
+ */
102
+ export declare function serializeAxTree(root: AxNode, frameChildren?: FrameCapture[] | null): {
103
+ doc: string;
104
+ refTable: RefTable;
105
+ };
106
+ //# sourceMappingURL=serializeAxTree.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serializeAxTree.d.ts","sourceRoot":"","sources":["../../../../src/v4/helpers/axTree/serializeAxTree.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAmBH,eAAO,MAAM,gBAAgB,SAAU,CAAC;AACxC,eAAO,MAAM,mBAAmB,MAAM,CAAC;AAQvC;;;;GAIG;AACH,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,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AM,EAAE,QAAQ,CAAC,CAAC;AA8DhD;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,MAAM,EACZ,aAAa,CAAC,EAAE,YAAY,EAAE,GAAG,IAAI,GACpC;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,QAAQ,CAAA;CAAE,CA6HrC"}
@@ -0,0 +1,238 @@
1
+ /**
2
+ * AX-tree text serializer producing a greppable doc + per-step ref table.
3
+ *
4
+ * Byte-faithful TS port of the Python binding's
5
+ * `testmu/_helpers/ax_tree/_serializer.py` (`serialize_ax_tree`). The SAME
6
+ * `(doc, refTable)` format is consumed by the v16-server + controller
7
+ * (`/api/v1/AH2/autoheal` reads `doc`; the binding resolves refs off
8
+ * `refTable`), so the `e<N>` line format and refTable shape MUST stay
9
+ * byte-identical across both bindings.
10
+ *
11
+ * Pure — no I/O. The caller (`captureAxTree`) captures the `AxNode` tree via
12
+ * CDP before calling this.
13
+ *
14
+ * Frame-aware merge is ported whole (`frameChildren`): when the walk hits an
15
+ * `iframe`-role node it looks it up by the owning node's OWN backendDomNodeId
16
+ * (stable identity, never positional) and inlines the matched frame's content
17
+ * one indent deeper, marking `[frame f<N>]` on the owner line. Passing no
18
+ * `frameChildren` (or `[]`) reproduces the single-tree output byte-for-byte —
19
+ * the v1 `captureAxTree` is main-frame-only and always calls it that way; the
20
+ * merge machinery is here so the doc/refTable format is identical to Python's
21
+ * frame-aware output when OOPIF capture lands (documented follow-up).
22
+ */
23
+ import { PROMOTABLE_ROLES } from './actionable.js';
24
+ /** The AX role Chrome assigns an <iframe>/<frame> element (compared lowercased). */
25
+ const FRAME_ROLE = 'iframe';
26
+ /** Pathology backstop, interpolated into the depth_exceeded note (mirrors Python). */
27
+ const FRAME_DEPTH_BACKSTOP = 10;
28
+ /** Structural/container roles carrying no info: skipped, children promoted to the same depth. */
29
+ const SKIP_ROLES = new Set(['none', 'generic', 'rootwebarea', 'webarea', 'inlinetextbox']);
30
+ /**
31
+ * A skipped-role node the DOM says is clickable (`AxNode.clickable`, set by
32
+ * `annotateTree` in `actionable.ts`) is not skipped: it renders under this
33
+ * role, with its `displayName`, so it gets a ref like any other target.
34
+ */
35
+ const CLICKABLE_ROLE = 'clickable';
36
+ export const AX_DOC_MAX_CHARS = 500_000;
37
+ export const TEXT_TRUNCATE_CHARS = 200;
38
+ const TRUNCATION_MARKER = '…[document truncated]';
39
+ // Column layout: "e<N>" + BASE_GAP spaces + (INDENT_PER_DEPTH * depth) spaces + role.
40
+ const BASE_GAP = 3;
41
+ const INDENT_PER_DEPTH = 2;
42
+ /** Index a level's FrameCaptures by their OWNER backendDomNodeId (drops null owners). */
43
+ function indexByOwner(frameChildren) {
44
+ const m = new Map();
45
+ for (const fc of frameChildren) {
46
+ if (fc.ownerBackendNodeId != null)
47
+ m.set(fc.ownerBackendNodeId, fc);
48
+ }
49
+ return m;
50
+ }
51
+ /** Truncate a name/value string at TEXT_TRUNCATE_CHARS, marking cuts with '…'. */
52
+ function truncate(text) {
53
+ if (text.length > TEXT_TRUNCATE_CHARS)
54
+ return text.slice(0, TEXT_TRUNCATE_CHARS) + '…';
55
+ return text;
56
+ }
57
+ /** Render sparse state tags in the fixed order required by the spec. */
58
+ function renderStates(node) {
59
+ const states = [];
60
+ if (node.disabled)
61
+ states.push('[disabled]');
62
+ if (node.checked === 'mixed')
63
+ states.push('[checked=mixed]');
64
+ else if (node.checked === true)
65
+ states.push('[checked]');
66
+ else if (node.checked === false)
67
+ states.push('[unchecked]');
68
+ if (node.expanded === true)
69
+ states.push('[expanded]');
70
+ else if (node.expanded === false)
71
+ states.push('[collapsed]');
72
+ if (node.selected)
73
+ states.push('[selected]');
74
+ if (node.pressed === 'mixed')
75
+ states.push('[pressed=mixed]');
76
+ else if (node.pressed === true)
77
+ states.push('[pressed]');
78
+ else if (node.pressed === false)
79
+ states.push('[unpressed]');
80
+ if (node.focused)
81
+ states.push('[focused]');
82
+ if (node.required)
83
+ states.push('[required]');
84
+ if (node.readonly)
85
+ states.push('[readonly]');
86
+ return states;
87
+ }
88
+ /**
89
+ * Render one doc line for an already-normalized (non-skipped) role.
90
+ *
91
+ * `name` overrides `node.name` (a promoted `clickable` line renders its
92
+ * `displayName`). A non-interactive-role node the DOM says is clickable gains
93
+ * a `[clickable]` tag; `node.domHint` renders last as `{dom=…}`. Nodes without
94
+ * an actionable annotation render exactly as before.
95
+ */
96
+ function renderLine(ref, depth, role, node, name) {
97
+ const gap = ' '.repeat(BASE_GAP + INDENT_PER_DEPTH * depth);
98
+ const shown = truncate(name ?? (node.name || ''));
99
+ const extras = renderStates(node);
100
+ if (node.clickable && role !== CLICKABLE_ROLE)
101
+ extras.push('[clickable]');
102
+ if (role === 'heading' && node.level != null)
103
+ extras.push(`level=${node.level}`);
104
+ else if (node.url)
105
+ extras.push(`url=${node.url}`);
106
+ if (node.value)
107
+ extras.push(`{value=${truncate(node.value)}}`);
108
+ if (node.domHint)
109
+ extras.push(`{dom=${node.domHint}}`);
110
+ let line = `${ref}${gap}${role} "${shown}"`;
111
+ if (extras.length)
112
+ line += ' ' + extras.join(' ');
113
+ return line;
114
+ }
115
+ /**
116
+ * Serialize an accessibility tree into a greppable text doc + ref table.
117
+ *
118
+ * @param root The tree to walk (main frame).
119
+ * @param frameChildren Ordered FrameCaptures for iframes directly owned by
120
+ * `root`'s tree. `undefined`/`[]` reproduces single-tree output exactly.
121
+ * @returns `{ doc, refTable }` — `doc` one line per node; `refTable` maps each
122
+ * `e<N>` to `{ backend_dom_node_id, role, name, frame_id }` (`frame_id` is
123
+ * "" for the main frame).
124
+ */
125
+ export function serializeAxTree(root, frameChildren) {
126
+ const lines = [];
127
+ const refTable = {};
128
+ const state = { ref: 0, length: 0, truncated: false, frameNum: 0 };
129
+ function appendLine(line) {
130
+ const addedLen = line.length + (lines.length ? 1 : 0); // +1 for the joining newline
131
+ const charBudget = AX_DOC_MAX_CHARS - TRUNCATION_MARKER.length - 1;
132
+ if (state.length + addedLen > charBudget) {
133
+ state.truncated = true;
134
+ return false;
135
+ }
136
+ lines.push(line);
137
+ state.length += addedLen;
138
+ return true;
139
+ }
140
+ function renderFrame(fc, depth, frameNum) {
141
+ const gap = ' '.repeat(BASE_GAP + INDENT_PER_DEPTH * depth);
142
+ if (fc.status === 'unresolved') {
143
+ appendLine(`${gap}[frame ? unresolved — not captured]`);
144
+ return;
145
+ }
146
+ if (fc.status === 'hidden') {
147
+ appendLine(`${gap}[frame f${frameNum} hidden — not captured]`);
148
+ return;
149
+ }
150
+ if (fc.status === 'depth_exceeded') {
151
+ appendLine(`${gap}[frame f${frameNum} not captured — depth exceeds ${FRAME_DEPTH_BACKSTOP}]`);
152
+ return;
153
+ }
154
+ if (fc.status !== 'captured' || fc.tree == null) {
155
+ appendLine(`${gap}[frame f${frameNum} capture failed]`);
156
+ return;
157
+ }
158
+ const childrenByOwner = indexByOwner(fc.children ?? []);
159
+ walk(fc.tree, depth, fc.frameId, childrenByOwner);
160
+ }
161
+ function walk(node, depth, frameId, frameChildrenByOwner) {
162
+ if (state.truncated)
163
+ return;
164
+ const axRole = (node.role || '').trim().toLowerCase();
165
+ let role = axRole;
166
+ const promoted = Boolean(node.clickable) && PROMOTABLE_ROLES.has(axRole);
167
+ if (promoted) {
168
+ role = CLICKABLE_ROLE;
169
+ }
170
+ else if (!role || SKIP_ROLES.has(role)) {
171
+ for (const child of node.children) {
172
+ walk(child, depth, frameId, frameChildrenByOwner);
173
+ if (state.truncated)
174
+ return;
175
+ }
176
+ return;
177
+ }
178
+ state.ref += 1;
179
+ const ref = `e${state.ref}`;
180
+ // Matched by the iframe node's OWN backendDomNodeId (stable identity),
181
+ // never by consuming an iterator positionally.
182
+ const fc = role === FRAME_ROLE && node.backendDomNodeId != null
183
+ ? frameChildrenByOwner.get(node.backendDomNodeId)
184
+ : undefined;
185
+ // Display number minted HERE, in document order — never carried in.
186
+ let frameNum = 0;
187
+ if (fc !== undefined) {
188
+ state.frameNum += 1;
189
+ frameNum = state.frameNum;
190
+ }
191
+ const displayName = promoted || node.displayName ? (node.displayName ?? '') : (node.name || '');
192
+ let line = renderLine(ref, depth, role, node, displayName);
193
+ if (fc !== undefined) {
194
+ line += fc.status === 'unresolved' ? ' [frame ?]' : ` [frame f${frameNum}]`;
195
+ }
196
+ if (!appendLine(line))
197
+ return;
198
+ refTable[ref] = {
199
+ backend_dom_node_id: node.backendDomNodeId,
200
+ role,
201
+ // Stripped at the source: downstream locator-enrichment strips the name
202
+ // before comparing against the DOM's accessible name.
203
+ name: displayName.trim(),
204
+ frame_id: frameId,
205
+ };
206
+ if (node.clickable) {
207
+ // IDENTITY vs DISPLAY. `role`/`name` stay the node's AX truth, exactly
208
+ // what a live `Accessibility.getPartialAXTree` reads for it (an
209
+ // AX-ignored node reads as role "" / name ""), so every guard comparing
210
+ // a ref against the live page keeps comparing like with like. What the
211
+ // model was shown lives in `display_role`/`display_name`; `clickable`
212
+ // marks the DOM-proven target.
213
+ Object.assign(refTable[ref], {
214
+ role: node.ignored ? '' : axRole,
215
+ name: node.ignored ? '' : (node.name || '').trim(),
216
+ display_role: role,
217
+ display_name: displayName.trim(),
218
+ clickable: true,
219
+ });
220
+ }
221
+ if (fc !== undefined) {
222
+ renderFrame(fc, depth + 1, frameNum);
223
+ if (state.truncated)
224
+ return;
225
+ }
226
+ for (const child of node.children) {
227
+ walk(child, depth + 1, frameId, frameChildrenByOwner);
228
+ if (state.truncated)
229
+ return;
230
+ }
231
+ }
232
+ walk(root, 0, '', indexByOwner(frameChildren ?? []));
233
+ let doc = lines.join('\n');
234
+ if (state.truncated)
235
+ doc = doc ? `${doc}\n${TRUNCATION_MARKER}` : TRUNCATION_MARKER;
236
+ return { doc, refTable };
237
+ }
238
+ //# sourceMappingURL=serializeAxTree.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serializeAxTree.js","sourceRoot":"","sources":["../../../../src/v4/helpers/axTree/serializeAxTree.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;A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EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM;gBAChC,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE;gBAClD,YAAY,EAAE,IAAI;gBAClB,YAAY,EAAE,WAAW,CAAC,IAAI,EAAE;gBAChC,SAAS,EAAE,IAAI;aAChB,CAAC,CAAC;QACL,CAAC;QAED,IAAI,EAAE,KAAK,SAAS,EAAE,CAAC;YACrB,WAAW,CAAC,EAAE,EAAE,KAAK,GAAG,CAAC,EAAE,QAAQ,CAAC,CAAC;YACrC,IAAI,KAAK,CAAC,SAAS;gBAAE,OAAO;QAC9B,CAAC;QAED,KAAK,MAAM,KAAK,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YAClC,IAAI,CAAC,KAAK,EAAE,KAAK,GAAG,CAAC,EAAE,OAAO,EAAE,oBAAoB,CAAC,CAAC;YACtD,IAAI,KAAK,CAAC,SAAS;gBAAE,OAAO;QAC9B,CAAC;IACH,CAAC;IAED,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,YAAY,CAAC,aAAa,IAAI,EAAE,CAAC,CAAC,CAAC;IAErD,IAAI,GAAG,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC3B,IAAI,KAAK,CAAC,SAAS;QAAE,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,KAAK,iBAAiB,EAAE,CAAC,CAAC,CAAC,iBAAiB,CAAC;IAEpF,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC;AAC3B,CAAC"}
@@ -0,0 +1,5 @@
1
+ /** Interception script — stamped from playwright-python/testmu/_helpers/
2
+ * clipboard_intercept.js (the canonical copy). Keep the two in sync:
3
+ * the script IS the clipboard behavior shared by both packages. */
4
+ export declare const INTERCEPT_JS = "(() => {\n if (window.__v16ClipInstalled) return;\n window.__v16ClipInstalled = true;\n const bridge = window.__v16ClipboardBridge;\n const send = (reps) => bridge(JSON.stringify({op: 'capture', reps})).catch(() => {});\n const readEntry = () => bridge(JSON.stringify({op: 'read'})).then((s) => JSON.parse(s));\n\n const b64ToFile = (b64, mime) => {\n const bin = atob(b64);\n const u = new Uint8Array(bin.length);\n for (let i = 0; i < bin.length; i++) u[i] = bin.charCodeAt(i);\n const ext = (mime.split('/')[1] || 'bin').split('+')[0];\n return new File([u], 'clipboard.' + ext, {type: mime});\n };\n const b64ToBlob = (b64, mime) =>\n new Blob([Uint8Array.from(atob(b64), (c) => c.charCodeAt(0))], {type: mime});\n\n // -- paste synthesis (used by the tool op AND the Ctrl/Cmd+V path) --\n window.__v16ClipboardPaste = (entry, plainOnly) => {\n let reps = (entry && entry.reps) || [];\n if (plainOnly) reps = reps.filter((r) => r.mime === 'text/plain');\n const dt = new DataTransfer();\n for (const r of reps) {\n if (r.text !== undefined) {\n try { dt.setData(r.mime, r.text); } catch (e) {}\n } else if (r.data_b64) {\n try { dt.items.add(b64ToFile(r.data_b64, r.mime)); } catch (e) {}\n }\n }\n const target = document.activeElement || document.body;\n const evt = new ClipboardEvent('paste', {clipboardData: dt, bubbles: true, cancelable: true});\n const notPrevented = target.dispatchEvent(evt);\n if (notPrevented) {\n // Synthetic events skip the native insertion default action \u2014 emulate\n // for text (preserves caret + undo). isTrusted-checking editors are a\n // documented limitation.\n const text = dt.getData('text/plain');\n if (text) { try { document.execCommand('insertText', false, text); } catch (e) {} }\n }\n return true;\n };\n\n // -- patched async clipboard API (real API never invoked) --\n const api = {\n writeText: async (t) => { await send([{mime: 'text/plain', text: String(t)}]); },\n readText: async () => {\n const e = await readEntry();\n const r = (e.reps || []).find((x) => x.mime === 'text/plain');\n return r ? r.text : '';\n },\n write: async (items) => {\n const reps = [];\n for (const item of items || []) {\n for (const mime of item.types) {\n const blob = await item.getType(mime);\n if (mime.startsWith('text/')) {\n reps.push({mime, text: await blob.text()});\n } else {\n const buf = new Uint8Array(await blob.arrayBuffer());\n let bin = '';\n for (let i = 0; i < buf.length; i++) bin += String.fromCharCode(buf[i]);\n reps.push({mime, data_b64: btoa(bin)});\n }\n }\n }\n await send(reps);\n },\n read: async () => {\n const e = await readEntry();\n const parts = {};\n for (const r of e.reps || []) {\n parts[r.mime] = r.text !== undefined\n ? new Blob([r.text], {type: r.mime})\n : b64ToBlob(r.data_b64, r.mime);\n }\n return Object.keys(parts).length ? [new ClipboardItem(parts)] : [];\n },\n };\n try {\n Object.defineProperty(navigator, 'clipboard', {value: api, configurable: true});\n } catch (e) {\n try {\n navigator.clipboard.writeText = api.writeText;\n navigator.clipboard.readText = api.readText;\n navigator.clipboard.write = api.write;\n navigator.clipboard.read = api.read;\n } catch (e2) {}\n }\n\n // -- permissions: clipboard is always granted in the virtual world --\n try {\n const q = navigator.permissions.query.bind(navigator.permissions);\n navigator.permissions.query = (d) =>\n (d && /clipboard/.test(String(d.name)))\n ? Promise.resolve({state: 'granted', onchange: null})\n : q(d);\n } catch (e) {}\n\n // -- copy/cut capture (window bubble phase: runs after page handlers have\n // setData; preventDefault keeps the OS clipboard untouched) --\n const captureCopy = (e) => {\n try {\n const reps = [];\n if (e.clipboardData) {\n for (const t of Array.from(e.clipboardData.types || [])) {\n const v = e.clipboardData.getData(t);\n if (v) reps.push({mime: t, text: v});\n }\n }\n if (!reps.length) {\n const sel = window.getSelection();\n const text = sel ? sel.toString() : '';\n let html = '';\n try {\n if (sel && sel.rangeCount) {\n const div = document.createElement('div');\n div.appendChild(sel.getRangeAt(0).cloneContents());\n html = div.innerHTML;\n }\n } catch (e2) {}\n if (text) reps.push({mime: 'text/plain', text});\n if (html && html !== text) reps.push({mime: 'text/html', text: html});\n }\n if (reps.length) send(reps);\n e.preventDefault();\n if (e.type === 'cut') {\n // preventDefault also suppressed the native selection deletion\n try { document.execCommand('delete'); } catch (e2) {}\n }\n } catch (e3) {}\n };\n window.addEventListener('copy', captureCopy, false);\n window.addEventListener('cut', captureCopy, false);\n\n // -- Ctrl/Cmd+V: suppress native OS paste (trusted CDP keys would insert\n // OS content), synthesize from the store instead --\n window.addEventListener('keydown', (e) => {\n if ((e.ctrlKey || e.metaKey) && (e.key === 'v' || e.key === 'V')) {\n e.preventDefault();\n const plainOnly = e.shiftKey;\n readEntry().then((entry) => window.__v16ClipboardPaste(entry, plainOnly)).catch(() => {});\n }\n }, true);\n})();\n";
5
+ //# sourceMappingURL=clipboard-intercept.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clipboard-intercept.d.ts","sourceRoot":"","sources":["../../../src/v4/helpers/clipboard-intercept.ts"],"names":[],"mappings":"AAAA;;mEAEmE;AACnE,eAAO,MAAM,YAAY,+iLAgJxB,CAAC"}
@@ -0,0 +1,149 @@
1
+ /** Interception script — stamped from playwright-python/testmu/_helpers/
2
+ * clipboard_intercept.js (the canonical copy). Keep the two in sync:
3
+ * the script IS the clipboard behavior shared by both packages. */
4
+ export const INTERCEPT_JS = `(() => {
5
+ if (window.__v16ClipInstalled) return;
6
+ window.__v16ClipInstalled = true;
7
+ const bridge = window.__v16ClipboardBridge;
8
+ const send = (reps) => bridge(JSON.stringify({op: 'capture', reps})).catch(() => {});
9
+ const readEntry = () => bridge(JSON.stringify({op: 'read'})).then((s) => JSON.parse(s));
10
+
11
+ const b64ToFile = (b64, mime) => {
12
+ const bin = atob(b64);
13
+ const u = new Uint8Array(bin.length);
14
+ for (let i = 0; i < bin.length; i++) u[i] = bin.charCodeAt(i);
15
+ const ext = (mime.split('/')[1] || 'bin').split('+')[0];
16
+ return new File([u], 'clipboard.' + ext, {type: mime});
17
+ };
18
+ const b64ToBlob = (b64, mime) =>
19
+ new Blob([Uint8Array.from(atob(b64), (c) => c.charCodeAt(0))], {type: mime});
20
+
21
+ // -- paste synthesis (used by the tool op AND the Ctrl/Cmd+V path) --
22
+ window.__v16ClipboardPaste = (entry, plainOnly) => {
23
+ let reps = (entry && entry.reps) || [];
24
+ if (plainOnly) reps = reps.filter((r) => r.mime === 'text/plain');
25
+ const dt = new DataTransfer();
26
+ for (const r of reps) {
27
+ if (r.text !== undefined) {
28
+ try { dt.setData(r.mime, r.text); } catch (e) {}
29
+ } else if (r.data_b64) {
30
+ try { dt.items.add(b64ToFile(r.data_b64, r.mime)); } catch (e) {}
31
+ }
32
+ }
33
+ const target = document.activeElement || document.body;
34
+ const evt = new ClipboardEvent('paste', {clipboardData: dt, bubbles: true, cancelable: true});
35
+ const notPrevented = target.dispatchEvent(evt);
36
+ if (notPrevented) {
37
+ // Synthetic events skip the native insertion default action — emulate
38
+ // for text (preserves caret + undo). isTrusted-checking editors are a
39
+ // documented limitation.
40
+ const text = dt.getData('text/plain');
41
+ if (text) { try { document.execCommand('insertText', false, text); } catch (e) {} }
42
+ }
43
+ return true;
44
+ };
45
+
46
+ // -- patched async clipboard API (real API never invoked) --
47
+ const api = {
48
+ writeText: async (t) => { await send([{mime: 'text/plain', text: String(t)}]); },
49
+ readText: async () => {
50
+ const e = await readEntry();
51
+ const r = (e.reps || []).find((x) => x.mime === 'text/plain');
52
+ return r ? r.text : '';
53
+ },
54
+ write: async (items) => {
55
+ const reps = [];
56
+ for (const item of items || []) {
57
+ for (const mime of item.types) {
58
+ const blob = await item.getType(mime);
59
+ if (mime.startsWith('text/')) {
60
+ reps.push({mime, text: await blob.text()});
61
+ } else {
62
+ const buf = new Uint8Array(await blob.arrayBuffer());
63
+ let bin = '';
64
+ for (let i = 0; i < buf.length; i++) bin += String.fromCharCode(buf[i]);
65
+ reps.push({mime, data_b64: btoa(bin)});
66
+ }
67
+ }
68
+ }
69
+ await send(reps);
70
+ },
71
+ read: async () => {
72
+ const e = await readEntry();
73
+ const parts = {};
74
+ for (const r of e.reps || []) {
75
+ parts[r.mime] = r.text !== undefined
76
+ ? new Blob([r.text], {type: r.mime})
77
+ : b64ToBlob(r.data_b64, r.mime);
78
+ }
79
+ return Object.keys(parts).length ? [new ClipboardItem(parts)] : [];
80
+ },
81
+ };
82
+ try {
83
+ Object.defineProperty(navigator, 'clipboard', {value: api, configurable: true});
84
+ } catch (e) {
85
+ try {
86
+ navigator.clipboard.writeText = api.writeText;
87
+ navigator.clipboard.readText = api.readText;
88
+ navigator.clipboard.write = api.write;
89
+ navigator.clipboard.read = api.read;
90
+ } catch (e2) {}
91
+ }
92
+
93
+ // -- permissions: clipboard is always granted in the virtual world --
94
+ try {
95
+ const q = navigator.permissions.query.bind(navigator.permissions);
96
+ navigator.permissions.query = (d) =>
97
+ (d && /clipboard/.test(String(d.name)))
98
+ ? Promise.resolve({state: 'granted', onchange: null})
99
+ : q(d);
100
+ } catch (e) {}
101
+
102
+ // -- copy/cut capture (window bubble phase: runs after page handlers have
103
+ // setData; preventDefault keeps the OS clipboard untouched) --
104
+ const captureCopy = (e) => {
105
+ try {
106
+ const reps = [];
107
+ if (e.clipboardData) {
108
+ for (const t of Array.from(e.clipboardData.types || [])) {
109
+ const v = e.clipboardData.getData(t);
110
+ if (v) reps.push({mime: t, text: v});
111
+ }
112
+ }
113
+ if (!reps.length) {
114
+ const sel = window.getSelection();
115
+ const text = sel ? sel.toString() : '';
116
+ let html = '';
117
+ try {
118
+ if (sel && sel.rangeCount) {
119
+ const div = document.createElement('div');
120
+ div.appendChild(sel.getRangeAt(0).cloneContents());
121
+ html = div.innerHTML;
122
+ }
123
+ } catch (e2) {}
124
+ if (text) reps.push({mime: 'text/plain', text});
125
+ if (html && html !== text) reps.push({mime: 'text/html', text: html});
126
+ }
127
+ if (reps.length) send(reps);
128
+ e.preventDefault();
129
+ if (e.type === 'cut') {
130
+ // preventDefault also suppressed the native selection deletion
131
+ try { document.execCommand('delete'); } catch (e2) {}
132
+ }
133
+ } catch (e3) {}
134
+ };
135
+ window.addEventListener('copy', captureCopy, false);
136
+ window.addEventListener('cut', captureCopy, false);
137
+
138
+ // -- Ctrl/Cmd+V: suppress native OS paste (trusted CDP keys would insert
139
+ // OS content), synthesize from the store instead --
140
+ window.addEventListener('keydown', (e) => {
141
+ if ((e.ctrlKey || e.metaKey) && (e.key === 'v' || e.key === 'V')) {
142
+ e.preventDefault();
143
+ const plainOnly = e.shiftKey;
144
+ readEntry().then((entry) => window.__v16ClipboardPaste(entry, plainOnly)).catch(() => {});
145
+ }
146
+ }, true);
147
+ })();
148
+ `;
149
+ //# sourceMappingURL=clipboard-intercept.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clipboard-intercept.js","sourceRoot":"","sources":["../../../src/v4/helpers/clipboard-intercept.ts"],"names":[],"mappings":"AAAA;;mEAEmE;AACnE,MAAM,CAAC,MAAM,YAAY,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgJ3B,CAAC"}
@@ -0,0 +1,27 @@
1
+ import type { BrowserContext, Page } from 'playwright';
2
+ type Rep = {
3
+ mime: string;
4
+ text?: string;
5
+ data_b64?: string;
6
+ };
7
+ export declare class ClipboardStore {
8
+ private reps;
9
+ write(text: string, html?: string | null): void;
10
+ clear(): void;
11
+ replaceFromReps(reps: Rep[]): void;
12
+ toReps(): Rep[];
13
+ private rep;
14
+ private bytes;
15
+ text(): string;
16
+ html(): string;
17
+ types(): string[];
18
+ has(mime: string): boolean;
19
+ size(mime: string): number;
20
+ sha256(mime: string): string;
21
+ }
22
+ export { INTERCEPT_JS } from './clipboard-intercept.js';
23
+ export declare function installClipboard(context: BrowserContext, store: ClipboardStore): Promise<void>;
24
+ export declare function pasteViaPage(page: Page, store: ClipboardStore): Promise<void>;
25
+ /** Execute LLM query code (code_js) against the store: function body with `clipboard` param. */
26
+ export declare function runClipboardQuery(codeJs: string, store: ClipboardStore): string;
27
+ //# sourceMappingURL=clipboard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clipboard.d.ts","sourceRoot":"","sources":["../../../src/v4/helpers/clipboard.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAGvD,KAAK,GAAG,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAE9D,qBAAa,cAAc;IACzB,OAAO,CAAC,IAAI,CAAa;IACzB,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IAK/C,KAAK,IAAI,IAAI;IACb,eAAe,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI;IAGlC,MAAM,IAAI,GAAG,EAAE;IACf,OAAO,CAAC,GAAG;IACX,OAAO,CAAC,KAAK;IAKb,IAAI,IAAI,MAAM;IACd,IAAI,IAAI,MAAM;IACd,KAAK,IAAI,MAAM,EAAE;IACjB,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAC1B,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAC1B,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;CAI7B;AAED,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,wBAAsB,gBAAgB,CAAC,OAAO,EAAE,cAAc,EAAE,KAAK,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CASpG;AAED,wBAAsB,YAAY,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAKnF;AAED,gGAAgG;AAChG,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,cAAc,GAAG,MAAM,CAM/E"}
@@ -0,0 +1,70 @@
1
+ /** Virtual clipboard — store, interception, helpers (TS port of python
2
+ * testmu/_helpers/clipboard.py; see virtual-clipboard spec in v16 repo). */
3
+ import { stringifyQueryResult } from './queryResult.js';
4
+ import { createHash } from 'crypto';
5
+ import { INTERCEPT_JS } from './clipboard-intercept.js';
6
+ export class ClipboardStore {
7
+ reps = [];
8
+ write(text, html) {
9
+ const reps = [{ mime: 'text/plain', text: String(text) }];
10
+ if (html)
11
+ reps.push({ mime: 'text/html', text: String(html) });
12
+ this.replaceFromReps(reps);
13
+ }
14
+ clear() { this.reps = []; }
15
+ replaceFromReps(reps) {
16
+ this.reps = (reps || []).filter(r => r && r.mime && (r.text !== undefined || r.data_b64));
17
+ }
18
+ toReps() { return [...this.reps]; }
19
+ rep(mime) { return this.reps.find(r => r.mime === mime); }
20
+ bytes(mime) {
21
+ const r = this.rep(mime);
22
+ if (!r)
23
+ return Buffer.alloc(0);
24
+ return r.text !== undefined ? Buffer.from(r.text, 'utf-8') : Buffer.from(r.data_b64, 'base64');
25
+ }
26
+ text() { return this.rep('text/plain')?.text ?? ''; }
27
+ html() { return this.rep('text/html')?.text ?? ''; }
28
+ types() { return this.reps.map(r => r.mime); }
29
+ has(mime) { return !!this.rep(mime); }
30
+ size(mime) { return this.bytes(mime).length; }
31
+ sha256(mime) {
32
+ const b = this.bytes(mime);
33
+ return b.length ? createHash('sha256').update(b).digest('hex') : '';
34
+ }
35
+ }
36
+ export { INTERCEPT_JS } from './clipboard-intercept.js';
37
+ export async function installClipboard(context, store) {
38
+ await context.exposeBinding('__v16ClipboardBridge', async (_src, payload) => {
39
+ let msg;
40
+ try {
41
+ msg = JSON.parse(payload);
42
+ }
43
+ catch {
44
+ return '{}';
45
+ }
46
+ if (msg.op === 'capture') {
47
+ store.replaceFromReps(msg.reps || []);
48
+ return '{}';
49
+ }
50
+ if (msg.op === 'read')
51
+ return JSON.stringify({ reps: store.toReps() });
52
+ return '{}';
53
+ });
54
+ await context.addInitScript(INTERCEPT_JS);
55
+ }
56
+ export async function pasteViaPage(page, store) {
57
+ await page.evaluate((entry) => window.__v16ClipboardPaste(entry, false), { reps: store.toReps() });
58
+ }
59
+ /** Execute LLM query code (code_js) against the store: function body with `clipboard` param. */
60
+ export function runClipboardQuery(codeJs, store) {
61
+ try {
62
+ const fn = new Function('clipboard', codeJs);
63
+ const raw = fn(store);
64
+ return stringifyQueryResult(raw);
65
+ }
66
+ catch {
67
+ return '';
68
+ }
69
+ }
70
+ //# sourceMappingURL=clipboard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clipboard.js","sourceRoot":"","sources":["../../../src/v4/helpers/clipboard.ts"],"names":[],"mappings":"AAAA;4EAC4E;AAC5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAEpC,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIxD,MAAM,OAAO,cAAc;IACjB,IAAI,GAAU,EAAE,CAAC;IACzB,KAAK,CAAC,IAAY,EAAE,IAAoB;QACtC,MAAM,IAAI,GAAU,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACjE,IAAI,IAAI;YAAE,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAC/D,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;IAC7B,CAAC;IACD,KAAK,KAAW,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC,CAAC,CAAC;IACjC,eAAe,CAAC,IAAW;QACzB,IAAI,CAAC,IAAI,GAAG,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,KAAK,SAAS,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC5F,C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