@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,366 @@
1
+ import { captureSnapshotsWithRuntimeAsset, isExplicitUnsupportedCdpError, v3SnapshotCaptureRoute, } from './runtimeSnapshot.js';
2
+ import { mergeIframeA11y } from './iframeA11y.js';
3
+ import { get as configGet, billingRunId } from '../../configure.js';
4
+ import { log, repr } from '../../log.js';
5
+ import { resolveVar } from '../vars.js';
6
+ import { fenceTemplates } from './visionFence.js';
7
+ import { derive } from './derive.js';
8
+ import { captureScreenshotB64 } from './screenshot.js';
9
+ import { getV3DesktopLocateFullPageTarget } from './healCascade.js';
10
+ import { resolveCoordinateRead } from './coordinateResolverRead.js';
11
+ import { LOCAL_READ_ATTRS, extractValue } from './textualRead.js';
12
+ import { PAGE_NOT_READY_STATUS, isPageNotReadyBody, newRequestId, pageNotReadyMessage, retryOnPageNotReady, } from './pageReady.js';
13
+ import { creditsBody, raiseIfInsufficientCredits } from './credits.js';
14
+ export const V3_HEAL_VISION_PATH = '/v1/heal/vision';
15
+ export const V3_HEAL_TEXTUAL_QUERY_PATH = '/v1/heal/textual_query';
16
+ const V3_POST_TIMEOUT_MS = 30_000;
17
+ // Computed styles requested on the textual_query DOMSnapshot (PY _CSS_PROPERTIES).
18
+ const V3_SNAPSHOT_CSS_PROPERTIES = [
19
+ 'color', 'background-color', 'border-color',
20
+ 'font-size', 'font-family', 'font-weight', 'font-style',
21
+ 'display', 'visibility', 'opacity', 'position', 'z-index',
22
+ ];
23
+ // Outer payload fields coerced to str (null -> '') for the server schema.
24
+ const V3_STR_FIELDS = [
25
+ 'code_export_id', 'commit_id', 'test_id', 'username', 'accesskey', 'session_id',
26
+ ];
27
+ /** bool: JSON bools + truthy strings; number: float w/ digit-filter fallback;
28
+ * else str ('' for null). PY _cast_v3_vision_query_result parity. */
29
+ export function castV3VisionQueryResult(raw, returnType) {
30
+ if (returnType === 'bool') {
31
+ if (typeof raw === 'boolean')
32
+ return raw;
33
+ return ['true', '1', 'yes'].includes(String(raw).trim().toLowerCase());
34
+ }
35
+ if (returnType === 'number') {
36
+ if (typeof raw === 'number')
37
+ return raw;
38
+ const s = String(raw).trim();
39
+ const direct = Number(s);
40
+ if (s !== '' && Number.isFinite(direct))
41
+ return direct;
42
+ const filtered = [...s].filter((c) => (c >= '0' && c <= '9') || c === '.').join('');
43
+ const parsed = Number(filtered);
44
+ return filtered && Number.isFinite(parsed) ? parsed : 0.0;
45
+ }
46
+ return raw === null || raw === undefined ? '' : String(raw);
47
+ }
48
+ /** Only 'number' is special-cased; ''/null pass through; '-' anywhere flips
49
+ * the sign of the digit-filter fallback. PY _coerce_textual_value parity. */
50
+ export function coerceTextualValue(value, returnType) {
51
+ if (returnType !== 'number')
52
+ return value;
53
+ if (value === null || value === undefined || value === '')
54
+ return value;
55
+ if (typeof value === 'number')
56
+ return value;
57
+ const direct = Number(value);
58
+ if (typeof value !== 'boolean' && Number.isFinite(direct) && String(value).trim() !== '') {
59
+ return direct;
60
+ }
61
+ const s = String(value);
62
+ const isNegative = s.includes('-');
63
+ const filtered = [...s].filter((c) => (c >= '0' && c <= '9') || c === '.').join('');
64
+ if (!filtered)
65
+ return 0.0;
66
+ const parsed = Number(filtered);
67
+ if (!Number.isFinite(parsed))
68
+ return 0.0;
69
+ return isNegative ? -parsed : parsed;
70
+ }
71
+ /** Coerce outer payload types in place: str fields via String() (null -> ''),
72
+ * org_id to int (unparseable -> 0). PY _normalize_v3_payload_types parity. */
73
+ export function normalizeV3PayloadTypes(payload) {
74
+ for (const key of V3_STR_FIELDS) {
75
+ if (key in payload) {
76
+ const v = payload[key];
77
+ payload[key] = v === null || v === undefined ? '' : String(v);
78
+ }
79
+ }
80
+ if ('org_id' in payload) {
81
+ const raw = payload['org_id'];
82
+ const parsed = parseInt(String(raw), 10);
83
+ payload['org_id'] = raw === null || raw === undefined || raw === '' || Number.isNaN(parsed) ? 0 : parsed;
84
+ }
85
+ return payload;
86
+ }
87
+ // Configure creds when present, LT_* env otherwise (grid runs configure only
88
+ // the runtime IDs; creds arrive via env — same fallback as healCascade).
89
+ function v3Creds() {
90
+ return {
91
+ username: String(configGet('username') ?? '') || (process.env['LT_USERNAME'] ?? ''),
92
+ accesskey: String(configGet('accesskey') ?? '') || (process.env['LT_ACCESS_KEY'] ?? ''),
93
+ };
94
+ }
95
+ function v3AuthHeaders() {
96
+ const { username, accesskey } = v3Creds();
97
+ return {
98
+ 'Content-Type': 'application/json',
99
+ Authorization: `Basic ${Buffer.from(`${username}:${accesskey}`).toString('base64')}`,
100
+ };
101
+ }
102
+ /** HTTP layer separated for testability (stubbed via global fetch in tests). */
103
+ export async function postV3Vision(url, payload, headers) {
104
+ const resp = await fetch(url, {
105
+ method: 'POST',
106
+ headers,
107
+ body: JSON.stringify(payload),
108
+ signal: AbortSignal.timeout(V3_POST_TIMEOUT_MS),
109
+ });
110
+ // Terminal before any other interpretation: once credits are exhausted every
111
+ // Subsequent call is refused, so the run must stop rather than retry.
112
+ if (resp.status === 403) {
113
+ raiseIfInsufficientCredits(resp.status, await creditsBody(resp));
114
+ }
115
+ // 409 page_not_ready is a CONTRACTED answer, not a transport failure: the VQE
116
+ // saw a loader and hands the retry budget to the client. Return the body
117
+ // verbatim so the caller's retry loop can re-screenshot, and so the terminal
118
+ // error keeps loader_reason. Throwing here would destroy both.
119
+ if (resp.status === PAGE_NOT_READY_STATUS) {
120
+ const parsed = await resp.json().catch(() => null);
121
+ if (isPageNotReadyBody(parsed)) {
122
+ log.helper('[v3 vision] HTTP 409 page_not_ready — loader still visible');
123
+ return parsed;
124
+ }
125
+ }
126
+ if (resp.status >= 400) {
127
+ const body = await resp.text().catch(() => '');
128
+ log.helper(`[v3 vision] HTTP ${resp.status} body=${body.slice(0, 1000)}`);
129
+ throw new Error(`HTTP ${resp.status} from ${url}`);
130
+ }
131
+ return (await resp.json());
132
+ }
133
+ function buildCurrentAction(operationType, intent, operationDict) {
134
+ return {
135
+ operation_type: operationType,
136
+ operation_intent: intent,
137
+ instruction_id: '',
138
+ operation_id: '',
139
+ use_query_v2: true,
140
+ version: 'v3',
141
+ selector: [],
142
+ frame_info: [],
143
+ sub_instruction_obj: { operation_dict: operationDict },
144
+ };
145
+ }
146
+ function baseV3Payload() {
147
+ const { username, accesskey } = v3Creds();
148
+ return {
149
+ code_export_id: configGet('codeExportId'),
150
+ commit_id: configGet('commitId'),
151
+ test_id: configGet('testId'),
152
+ billing_run_id: billingRunId(),
153
+ username,
154
+ accesskey,
155
+ org_id: configGet('orgId'),
156
+ session_id: configGet('sessionId'),
157
+ };
158
+ }
159
+ /**
160
+ * V3 vision query — POST screenshot + intent to {automind}/v1/heal/vision and
161
+ * read `vision_query`, cast to returnType. Throws on transport failure, error
162
+ * envelope, or a missing field (a junk store is worse than a loud step fail).
163
+ */
164
+ export async function visionQueryV3(page, description, returnType, codeJs) {
165
+ // Fence substituted values: a multi-line captured value spliced
166
+ // inline makes the model bind the predicate to its last line only.
167
+ const resolvedRaw = await fenceTemplates(description, (t) => resolveVar(t));
168
+ const resolved = resolvedRaw === null || resolvedRaw === undefined ? '' : String(resolvedRaw);
169
+ const baseUrl = String(configGet('automindUrl') ?? '');
170
+ if (!baseUrl) {
171
+ log.helper('[vision_query] no heal endpoint configured');
172
+ return null;
173
+ }
174
+ const attempt = async () => {
175
+ // Screenshot INSIDE the attempt: the page_not_ready budget only means
176
+ // anything if each retry observes a fresher page.
177
+ const screenshotB64 = await captureScreenshotB64(page);
178
+ const payload = normalizeV3PayloadTypes({
179
+ ...baseV3Payload(),
180
+ // Fresh per attempt so each page_not_ready retry saves to its own automind
181
+ // VQE folder ({org_id}/vqe/{request_id}).
182
+ request_id: newRequestId(),
183
+ current_action: buildCurrentAction('VISION_QUERY', resolved, {
184
+ queried_value: resolved,
185
+ result_type: returnType,
186
+ }),
187
+ untagged_image_base64: screenshotB64,
188
+ use_query_v2: true,
189
+ version: 'v3',
190
+ });
191
+ return await postV3Vision(`${baseUrl}${V3_HEAL_VISION_PATH}`, payload, v3AuthHeaders());
192
+ };
193
+ let result;
194
+ try {
195
+ result = await retryOnPageNotReady(attempt, '[vision_query]');
196
+ }
197
+ catch (e) {
198
+ log.helper(`[vision_query] '${description.slice(0, 80)}': ${String(e)}`);
199
+ throw new Error(`vision_query failed: ${String(e)}`);
200
+ }
201
+ if (result['error']) {
202
+ // page_not_ready survived the budget — the page was still loading, the
203
+ // action did not fail. Keep loader_reason (and the literal "page_not_ready"
204
+ // substring auteur's code_generation routes on).
205
+ if (isPageNotReadyBody(result)) {
206
+ throw new Error(pageNotReadyMessage('vision_query failed', result));
207
+ }
208
+ throw new Error(`vision_query failed: ${String(result['error'])}`);
209
+ }
210
+ const raw = result['vision_query'];
211
+ if (raw === null || raw === undefined) {
212
+ throw new Error(`vision_query response missing 'vision_query' field: ${JSON.stringify(result)}`);
213
+ }
214
+ const extracted = castV3VisionQueryResult(raw, returnType);
215
+ log.helper(`[vision_query] result=${repr(extracted).slice(0, 120)}`);
216
+ if (codeJs === undefined)
217
+ return extracted;
218
+ return await derive(page, codeJs, String(extracted));
219
+ }
220
+ /** Raw CDP a11y + DOM snapshots for the server-side textual read (Chromium). */
221
+ async function captureV3SnapshotsWithCdp(page) {
222
+ const cdp = await page.context().newCDPSession(page);
223
+ try {
224
+ await cdp.send('Accessibility.enable');
225
+ const a11ySnapshot = await cdp.send('Accessibility.getFullAXTree');
226
+ const domSnapshot = await cdp.send('DOMSnapshot.captureSnapshot', {
227
+ computedStyles: V3_SNAPSHOT_CSS_PROPERTIES,
228
+ includeDOMRects: true,
229
+ includePaintOrder: true,
230
+ });
231
+ // V2: the frame-less AX tree is main-frame only; graft each iframe's
232
+ // tree in so iframe-resident controls reach the endpoint. Never fatal.
233
+ try {
234
+ await mergeIframeA11y(cdp, a11ySnapshot, domSnapshot);
235
+ }
236
+ catch (e) {
237
+ log.helper(`[iframe-a11y] merge skipped: ${String(e)}`);
238
+ }
239
+ return [a11ySnapshot, domSnapshot];
240
+ }
241
+ finally {
242
+ await cdp.detach();
243
+ }
244
+ }
245
+ /**
246
+ * Capture the V3 server snapshots by whichever route this session supports
247
+ *.
248
+ *
249
+ * `newCDPSession` is Chromium-only, but capability.ts maps `safari → pw-webkit`
250
+ * and `firefox → pw-firefox`, so those sessions reach this path and previously
251
+ * died on the CDP call. They take the worker-provisioned aria-snap runtime
252
+ * instead — same route the Python/Java/C# bindings already use.
253
+ *
254
+ * The `unknown` route tries CDP first and falls back ONLY on Playwright's
255
+ * explicit non-Chromium rejection: any other CDP failure is a real error and
256
+ * must keep its own diagnostics rather than being masked by a second attempt.
257
+ */
258
+ export async function captureV3ServerSnapshots(page) {
259
+ const route = v3SnapshotCaptureRoute(page);
260
+ if (route === 'runtime')
261
+ return captureSnapshotsWithRuntimeAsset(page);
262
+ if (route === 'native')
263
+ return captureV3SnapshotsWithCdp(page);
264
+ try {
265
+ return await captureV3SnapshotsWithCdp(page);
266
+ }
267
+ catch (err) {
268
+ if (!isExplicitUnsupportedCdpError(err))
269
+ throw err;
270
+ return captureSnapshotsWithRuntimeAsset(page);
271
+ }
272
+ }
273
+ /** Pin the xpath= Playwright engine for a read-resolver derived selector
274
+ * (PY _v3_textual_selector — a stand-in for actionEngine.engineSelector that
275
+ * avoids the import cycle actionEngine → healCascade → this module). */
276
+ function v3TextualSelector(xpath) {
277
+ if (xpath.startsWith('xpath=') || xpath.startsWith('css=') || xpath.startsWith('text='))
278
+ return xpath;
279
+ if (xpath.startsWith('/') || xpath.startsWith('('))
280
+ return `xpath=${xpath}`;
281
+ return xpath;
282
+ }
283
+ /** Scroll the page-space target into the viewport and return clamped viewport
284
+ * coords. Mirrors the tier scroll math in healCascade's full-page tier —
285
+ * duplicated (~10 lines, like PY) so the cascade module stays untouched. */
286
+ async function scrollIntoViewViewportCoords(page, coords) {
287
+ const px = Math.trunc(coords[0]);
288
+ const py = Math.trunc(coords[1]);
289
+ const vp = (await page.evaluate(() => [window.innerWidth, window.innerHeight]));
290
+ const vw = Math.trunc(vp[0]) || 1920;
291
+ const vh = Math.trunc(vp[1]) || 1080;
292
+ await page.evaluate(([x, y, w, h]) => window.scrollTo(Math.max(0, x - Math.floor(w / 2)), Math.max(0, y - Math.floor(h / 2))), [px, py, vw, vh]);
293
+ await new Promise((r) => setTimeout(r, 150));
294
+ const scroll = (await page.evaluate(() => [window.scrollX, window.scrollY]));
295
+ const vx = Math.max(0, Math.min(px - Math.trunc(scroll[0]), vw - 1));
296
+ const vy = Math.max(0, Math.min(py - Math.trunc(scroll[1]), vh - 1));
297
+ return [vx, vy];
298
+ }
299
+ /**
300
+ * V3 textual query — locate element locally then read the attribute, with the
301
+ * server POST as last-resort fallback (PY _textual_query_v3 route table):
302
+ * 1. no automindUrl → null (no CDP, no network);
303
+ * 2. attribute empty or not in LOCAL_READ_ATTRS → server straight away;
304
+ * 3. supported attr → DESKTOP_LOCATE_FULL_PAGE → scroll into view →
305
+ * read-resolver (exact hit, no up-walk) → extractValue, no server POST;
306
+ * 4. any locate/resolve/read failure → server fallback with the RAW
307
+ * description (byte-identical to the pre-existing server contract).
308
+ */
309
+ export async function textualQueryV3(page, description, returnType, selectedAttributeName = '') {
310
+ const baseUrl = String(configGet('automindUrl') ?? '');
311
+ if (!baseUrl) {
312
+ log.helper('[textual_query] no heal endpoint configured');
313
+ return null;
314
+ }
315
+ if (selectedAttributeName && LOCAL_READ_ATTRS.has(selectedAttributeName)) {
316
+ // Locate-then-read path. resolveVar resolves {{vars}} for the locate
317
+ // intent only; the RAW description goes to the server fallback. Errors
318
+ // (including var resolution) degrade to the server, never hard-fail.
319
+ try {
320
+ const resolvedRaw = await resolveVar(description);
321
+ const resolvedDesc = resolvedRaw === null || resolvedRaw === undefined ? '' : String(resolvedRaw);
322
+ const coords = await getV3DesktopLocateFullPageTarget(page, resolvedDesc);
323
+ if (coords !== null) {
324
+ const [vx, vy] = await scrollIntoViewViewportCoords(page, coords);
325
+ const target = await resolveCoordinateRead(page, vx, vy);
326
+ if (target !== null) {
327
+ const loc = page.locator(v3TextualSelector(target.xpath));
328
+ const extracted = await extractValue(loc, selectedAttributeName, null, returnType);
329
+ log.helper(`[textual_query] result=${repr(extracted).slice(0, 120)}`);
330
+ return extracted;
331
+ }
332
+ }
333
+ }
334
+ catch (e) {
335
+ log.helper(`[textual_query] locate-read failed (${String(e)}); server fallback`);
336
+ }
337
+ }
338
+ const [a11ySnapshot, domSnapshot] = await captureV3ServerSnapshots(page);
339
+ const payload = normalizeV3PayloadTypes({
340
+ ...baseV3Payload(),
341
+ current_action: buildCurrentAction('TEXTUAL_QUERY', description, {
342
+ queried_value: description,
343
+ selected_attribute_name: selectedAttributeName,
344
+ }),
345
+ version: 'v3',
346
+ a11y_snapshot: a11ySnapshot,
347
+ dom_snapshot: domSnapshot,
348
+ is_browser: true,
349
+ is_mobile: false,
350
+ device_os: '',
351
+ });
352
+ let result;
353
+ try {
354
+ result = await postV3Vision(`${baseUrl}${V3_HEAL_TEXTUAL_QUERY_PATH}`, payload, v3AuthHeaders());
355
+ }
356
+ catch (e) {
357
+ log.helper(`[textual_query] '${description.slice(0, 80)}': ${String(e)}`);
358
+ throw new Error(`textual_query failed: ${String(e)}`);
359
+ }
360
+ if (result['error'])
361
+ throw new Error(`textual_query failed: ${String(result['error'])}`);
362
+ const extracted = coerceTextualValue(result['value'], returnType);
363
+ log.helper(`[textual_query] result=${repr(extracted).slice(0, 120)}`);
364
+ return extracted;
365
+ }
366
+ //# sourceMappingURL=visionV3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"visionV3.js","sourceRoot":"","sources":["../../../src/v3/helpers/visionV3.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,gCAAgC,EAChC,6BAA6B,EAC7B,sBAAsB,GACvB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,GAAG,IAAI,SAAS,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACpE,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAE,gCAAgC,EAAE,MAAM,kBAAkB,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,EACL,qBAAqB,EACrB,kBAAkB,EAClB,YAAY,EACZ,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAEvE,MAAM,CAAC,MAAM,mBAAmB,GAAG,iBAAiB,CAAC;AACrD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AAC;IAClE,GAAG,CAAC,MAAM,CAAC,0BAA0B,IAAI,CAAC,SAAS,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC;IACtE,OAAO,SAAS,CAAC;AACnB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wait.d.ts","sourceRoot":"","sources":["../../../src/v3/helpers/wait.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAMvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD;;;;;;;;;;;GAWG;AACH,wBAAsB,mBAAmB,CACvC,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,MAAM,GAAG,SAAS,GAC5B,OAAO,CAAC,OAAO,CAAC,CA0BlB"}
@@ -0,0 +1,48 @@
1
+ import { config } from '../../config.js';
2
+ import { fetchWithAuth } from '../http.js';
3
+ import { log, preview } from '../../log.js';
4
+ import { takeScreenshot } from './screenshot.js';
5
+ import { ConditionEvaluationError } from '../../errors.js';
6
+ /**
7
+ * Until-loop condition check — TWO forms, selected by argument type (the V3
8
+ * contract's deliberate divergence: a Condition crosses the boundary as a
9
+ * LIVE OBJECT, never a stringified repr the binding evals):
10
+ *
11
+ * - `Condition` instance → LOCAL evaluation against the variable store. No
12
+ * screenshot, no vision endpoint. Unevaluable throws
13
+ * ConditionEvaluationError — an authoring/generation error, never a
14
+ * "condition not met" result (Top-15 #5: a silent false lets the retry
15
+ * loop exhaust its budget while masking the real problem).
16
+ * - `string` → the V4 vision path, byte-identical to the previous behavior.
17
+ */
18
+ export async function checkUntilCondition(page, condition) {
19
+ if (typeof condition !== 'string') {
20
+ try {
21
+ const [ok] = await condition.evaluate();
22
+ log.helper(`[check_until_condition] local eval -> ${ok}`);
23
+ return ok;
24
+ }
25
+ catch (e) {
26
+ if (e?.name === 'ConditionEvaluationError')
27
+ throw e;
28
+ throw new ConditionEvaluationError(JSON.stringify(condition.toDict()), e);
29
+ }
30
+ }
31
+ if (!config.current.smart) {
32
+ log.helper(`[check_until_condition] smart is OFF — returning False (condition skipped)`);
33
+ return false;
34
+ }
35
+ log.helper(`[check_until_condition] condition=${preview(condition, 80)}`);
36
+ const shot = (await takeScreenshot(page)).toString('base64');
37
+ const resp = await fetchWithAuth(`${config.current.aiApiHost}/api/v1/visibility/check`, {
38
+ method: 'POST', headers: { 'content-type': 'application/json' },
39
+ body: JSON.stringify({ screenshot_b64: shot, query: condition }),
40
+ });
41
+ if (!resp.ok)
42
+ return false;
43
+ const body = (await resp.json());
44
+ log.helper(`[check_until_condition] condition check: visible=${body.visible}, confidence=${body.confidence}`);
45
+ // Parity with the m-hps UntilBlock evaluator: missing "visible" defaults to condition-met.
46
+ return body.visible ?? true;
47
+ }
48
+ //# sourceMappingURL=wait.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wait.js","sourceRoot":"","sources":["../../../src/v3/helpers/wait.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAG3D;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,KAAK,UAAU,mBAAmB,CACvC,IAAU,EACV,SAA6B;IAE7B,IAAI,OAAO,SAAS,KAAK,QAAQ,EAAE,CAAC;QAClC,IAAI,CAAC;YACH,MAAM,CAAC,EAAE,CAAC,GAAG,MAAM,SAAS,CAAC,QAAQ,EAAE,CAAC;YACxC,GAAG,CAAC,MAAM,CAAC,yCAAyC,EAAE,EAAE,CAAC,CAAC;YAC1D,OAAO,EAAE,CAAC;QACZ,CAAC;QAAC,OAAO,CAAC,EAAE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"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAKH,wBAAgB,kBAAkB,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAY3D;AAED,wBAAgB,YAAY,IAAI,MAAM,GAAG,IAAI,CAM5C;AAED,wBAAsB,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,GAAE,WAAgB,GAAG,OAAO,CAAC,QAAQ,CAAC,CAS1F"}
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Shared fetch wrapper with LT Basic auth + session tracking headers.
3
+ *
4
+ * All ATMS/vision/automind HTTP calls go through fetchWithAuth.
5
+ * - Adds Authorization: Basic base64(LT_USERNAME:LT_ACCESS_KEY) when env vars present.
6
+ * - Adds x-session-id when TESTMUAI_SESSION_ID is set.
7
+ * - Adds x-source (defaults to "local"; forge sets TESTMUAI_SOURCE=hyperexecute
8
+ * in all cloud YAML paths).
9
+ * - Adds x-test-id (configure() then env).
10
+ */
11
+ import { get as getConfigValue } from '../configure.js';
12
+ import { getInstructionId } from './step.js';
13
+ export function attributionHeaders() {
14
+ const headers = {};
15
+ const sessionId = process.env['TESTMUAI_SESSION_ID'];
16
+ if (sessionId)
17
+ headers['x-session-id'] = sessionId;
18
+ headers['x-source'] = process.env['TESTMUAI_SOURCE'] ?? 'local';
19
+ const testId = getConfigValue('testId')
20
+ || process.env['TESTMUAI_TEST_ID']
21
+ || process.env['TEST_ID'];
22
+ if (testId)
23
+ headers['x-test-id'] = testId;
24
+ const instructionId = getInstructionId();
25
+ if (instructionId)
26
+ headers['x-instruction-id'] = instructionId;
27
+ return headers;
28
+ }
29
+ export function ltAuthHeader() {
30
+ const user = process.env['LT_USERNAME'];
31
+ const key = process.env['LT_ACCESS_KEY'];
32
+ if (!user || !key)
33
+ return null;
34
+ const encoded = Buffer.from(`${user}:${key}`).toString('base64');
35
+ return `Basic ${encoded}`;
36
+ }
37
+ export async function fetchWithAuth(url, init = {}) {
38
+ const auth = ltAuthHeader();
39
+ const headers = { ...(init.headers ?? {}) };
40
+ if (auth)
41
+ headers['Authorization'] = auth;
42
+ Object.assign(headers, attributionHeaders());
43
+ return fetch(url, { ...init, headers });
44
+ }
45
+ //# sourceMappingURL=http.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http.js","sourceRoot":"","sources":["../../src/v3/http.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,GAAG,IAAI,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAE7C,MAAM,UAAU,kBAAkB;IAChC,MAAM,OAAO,GAA2B,EAAE,CAAC;IAC3C,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAC;IACrD,IAAI,SAAS;QAAE,OAAO,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC;IACnD,OAAO,CAAC,UAAU,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,IAAI,OAAO,CAAC;IAChE,MAAM,MAAM,GAAG,cAAc,CAAC,QAAQ,CAAC;WAClC,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAC;WAC/B,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC5B,IAAI,MAAM;QAAE,OAAO,CAAC,WAAW,CAAC,GAAG,MAAM,CAAC;IAC1C,MAAM,aAAa,GAAG,gBAAgB,EAAE,CAAC;IACzC,IAAI,aAAa;QAAE,OAAO,CAAC,kBAAkB,CAAC,GAAG,aAAa,CAAC;IAC/D,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,MAAM,UAAU,YAAY;IAC1B,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;IACxC,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;IACzC,IAAI,CAAC,IAAI,IAAI,CAAC,GAAG;QAAE,OAAO,IAAI,CAAC;IAC/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AAC,SAAS,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,KAAK,CAAC,yBAAyB,SAAS,IAAI,CAAC,CAAC,CAAC,CAAC;QAClG,CAAC;QACD,GAAG,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;QACxB,IAAI,IAAI,IAAI,IAAI;YAAE,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAClC,GAAG,CAAC,GAAG,EAAE,CAAC;IACZ,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,40 @@
1
+ /**
2
+ * The v3 implementation (`configure({ kaneVersion: 'v3' })`).
3
+ *
4
+ * `router.ts` serves every per-mode public name from here when the run is v3,
5
+ * and installs the Locator heal patch with this mode's `HEAL_METHODS` / `wrap`.
6
+ */
7
+ export { test } from './test.js';
8
+ export { step } from './step.js';
9
+ export { run } from './session.js';
10
+ export { resolveVar, setVar, getVariableValue } from './vars.js';
11
+ export { routeFailure } from './routeFailure.js';
12
+ export { getCookies } from './helpers/cookies.js';
13
+ export { primeDialog } from './helpers/dialog.js';
14
+ export { locator, VisionLocator } from './visionLocator.js';
15
+ export { resolveRankedLocator } from './rankedLocator.js';
16
+ export { multiClick, longPress } from './helpers/gesture.js';
17
+ export { scrollUntilElement } from './helpers/scrollUntil.js';
18
+ export { newTab, closeTab, ensureActivePage, switchTab } from './helpers/tabs.js';
19
+ export { dragDrop, elementDrag, clickDrag } from './helpers/drag.js';
20
+ export { executeJs, ExecuteJsError } from './helpers/executeJs.js';
21
+ export { executeApi } from './helpers/executeApi.js';
22
+ export { executeDb } from './helpers/executeDb.js';
23
+ export { visionQuery, textualQuery, visionWait, visionAction, getVisionCoordinates, } from './helpers/vision.js';
24
+ export { textualAnalyzer } from './helpers/textualAnalyzer/index.js';
25
+ export { derive, conditionCompute } from './helpers/derive.js';
26
+ export { verifyAssertion, evaluateBranch } from './helpers/assertion.js';
27
+ export { verifySchemaAssertion } from './helpers/schemaAssertion.js';
28
+ export { evaluateNetworkAssertion, networkQuery } from './helpers/network.js';
29
+ export { evaluateMath } from './helpers/math.js';
30
+ export { smartuiSnapshot } from './helpers/smartui.js';
31
+ export { checkUntilCondition } from './helpers/wait.js';
32
+ export { asText } from './helpers/text.js';
33
+ export { Condition, ResolvedCondition, PossibleCondition, ConcatenationOperator, } from './helpers/condition.js';
34
+ export { executeKaneCli } from './helpers/kaneCli.js';
35
+ export { downloadsPath } from './downloadsPath.js';
36
+ export { devtoolsNetworkQuery, devtoolsConsoleQuery, devtoolsCookiesQuery, devtoolsStorageQuery, clipboardWrite, clipboardPaste, clipboardClear, devtoolsClipboardQuery, devtoolsPerformanceQuery, } from './helpers/devtools.js';
37
+ export { apiCallsQuery, getApiCallLog, clearApiCallLog } from './helpers/apiCalls.js';
38
+ export { seedFromConfigure } from './vars.js';
39
+ export { HEAL_METHODS, wrap as makeHealWrapper } from './healPatch.js';
40
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/v3/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,SAAS,EA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B,EAAE,oBAAoB,EAC1C,oBAAoB,EAAE,oBAAoB,EAC1C,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,sBAAsB,EACtE,wBAAwB,GACzB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAGtF,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,IAAI,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,41 @@
1
+ /**
2
+ * The v3 implementation (`configure({ kaneVersion: 'v3' })`).
3
+ *
4
+ * `router.ts` serves every per-mode public name from here when the run is v3,
5
+ * and installs the Locator heal patch with this mode's `HEAL_METHODS` / `wrap`.
6
+ */
7
+ export { test } from './test.js';
8
+ export { step } from './step.js';
9
+ export { run } from './session.js';
10
+ export { resolveVar, setVar, getVariableValue } from './vars.js';
11
+ export { routeFailure } from './routeFailure.js';
12
+ export { getCookies } from './helpers/cookies.js';
13
+ export { primeDialog } from './helpers/dialog.js';
14
+ export { locator, VisionLocator } from './visionLocator.js';
15
+ export { resolveRankedLocator } from './rankedLocator.js';
16
+ export { multiClick, longPress } from './helpers/gesture.js';
17
+ export { scrollUntilElement } from './helpers/scrollUntil.js';
18
+ export { newTab, closeTab, ensureActivePage, switchTab } from './helpers/tabs.js';
19
+ export { dragDrop, elementDrag, clickDrag } from './helpers/drag.js';
20
+ export { executeJs, ExecuteJsError } from './helpers/executeJs.js';
21
+ export { executeApi } from './helpers/executeApi.js';
22
+ export { executeDb } from './helpers/executeDb.js';
23
+ export { visionQuery, textualQuery, visionWait, visionAction, getVisionCoordinates, } from './helpers/vision.js';
24
+ export { textualAnalyzer } from './helpers/textualAnalyzer/index.js';
25
+ export { derive, conditionCompute } from './helpers/derive.js';
26
+ export { verifyAssertion, evaluateBranch } from './helpers/assertion.js';
27
+ export { verifySchemaAssertion } from './helpers/schemaAssertion.js';
28
+ export { evaluateNetworkAssertion, networkQuery } from './helpers/network.js';
29
+ export { evaluateMath } from './helpers/math.js';
30
+ export { smartuiSnapshot } from './helpers/smartui.js';
31
+ export { checkUntilCondition } from './helpers/wait.js';
32
+ export { asText } from './helpers/text.js';
33
+ export { Condition, ResolvedCondition, PossibleCondition, ConcatenationOperator, } from './helpers/condition.js';
34
+ export { executeKaneCli } from './helpers/kaneCli.js';
35
+ export { downloadsPath } from './downloadsPath.js';
36
+ export { devtoolsNetworkQuery, devtoolsConsoleQuery, devtoolsCookiesQuery, devtoolsStorageQuery, clipboardWrite, clipboardPaste, clipboardClear, devtoolsClipboardQuery, devtoolsPerformanceQuery, } from './helpers/devtools.js';
37
+ export { apiCallsQuery, getApiCallLog, clearApiCallLog } from './helpers/apiCalls.js';
38
+ // What the router needs from this mode: configure() seeding and the heal install.
39
+ export { seedFromConfigure } from './vars.js';
40
+ export { HEAL_METHODS, wrap as makeHealWrapper } from './healPatch.js';
41
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/v3/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO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