spana-test 0.11.0 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (482) hide show
  1. package/.agents/skills/spana-testing/SKILL.md +0 -0
  2. package/LICENSE +0 -0
  3. package/README.md +4 -1
  4. package/dist/{accessibility-audit-YZOPUY3D.js → accessibility-audit-MHQ65DUD.js} +61 -12
  5. package/dist/accessibility-audit-MHQ65DUD.js.map +1 -0
  6. package/dist/agent/index.d.ts +3 -11
  7. package/dist/agent/index.d.ts.map +1 -0
  8. package/dist/agent/index.js +20 -15
  9. package/dist/agent/index.js.map +1 -1
  10. package/dist/{session-uT8xL03K.d.ts → agent/session.d.ts} +14 -46
  11. package/dist/agent/session.d.ts.map +1 -0
  12. package/dist/{agent-fixture-5C4MCWRD.js → agent-fixture-H6GOUHNX.js} +3 -3
  13. package/dist/{agent-fixture-5C4MCWRD.js.map → agent-fixture-H6GOUHNX.js.map} +0 -0
  14. package/dist/{allure-FGVR5LND.js → allure-XOM7BXL5.js} +5 -2
  15. package/dist/{allure-FGVR5LND.js.map → allure-XOM7BXL5.js.map} +1 -1
  16. package/dist/{android-6BOQTMM3.js → android-C2S4B4TH.js} +3 -3
  17. package/dist/{android-6BOQTMM3.js.map → android-C2S4B4TH.js.map} +0 -0
  18. package/dist/api/agent-fixture.d.ts +119 -0
  19. package/dist/api/agent-fixture.d.ts.map +1 -0
  20. package/dist/api/app.d.ts +359 -0
  21. package/dist/api/app.d.ts.map +1 -0
  22. package/dist/api/expect.d.ts +167 -0
  23. package/dist/api/expect.d.ts.map +1 -0
  24. package/dist/api/fixtures.d.ts +165 -0
  25. package/dist/api/fixtures.d.ts.map +1 -0
  26. package/dist/api/flow.d.ts +123 -0
  27. package/dist/api/flow.d.ts.map +1 -0
  28. package/dist/api/index.d.ts +4 -0
  29. package/dist/api/index.d.ts.map +1 -0
  30. package/dist/api/snapshots.d.ts +26 -0
  31. package/dist/api/snapshots.d.ts.map +1 -0
  32. package/dist/api/storybook.d.ts +18 -0
  33. package/dist/api/storybook.d.ts.map +1 -0
  34. package/dist/api/suite.d.ts +46 -0
  35. package/dist/api/suite.d.ts.map +1 -0
  36. package/dist/app-CBHH5GMB.js +10 -0
  37. package/dist/{app-RSDPDTKT.js.map → app-CBHH5GMB.js.map} +0 -0
  38. package/dist/{appium-server-66GVUL24.js → appium-server-M6CWWUWF.js} +5 -2
  39. package/dist/{appium-server-66GVUL24.js.map → appium-server-M6CWWUWF.js.map} +1 -1
  40. package/dist/{baseline-manager-5TIUCNP5.js → baseline-manager-LVUVH2MJ.js} +5 -2
  41. package/dist/{baseline-manager-5TIUCNP5.js.map → baseline-manager-LVUVH2MJ.js.map} +1 -1
  42. package/dist/{cache-command-PANUAEMZ.js → cache-command-OL7HUK2K.js} +3 -3
  43. package/dist/{cache-command-PANUAEMZ.js.map → cache-command-OL7HUK2K.js.map} +0 -0
  44. package/dist/channels/android-cdp.d.ts +71 -0
  45. package/dist/channels/android-cdp.d.ts.map +1 -0
  46. package/dist/channels/apple-webinspector.d.ts +85 -0
  47. package/dist/channels/apple-webinspector.d.ts.map +1 -0
  48. package/dist/channels/bidi-client.d.ts +79 -0
  49. package/dist/channels/bidi-client.d.ts.map +1 -0
  50. package/dist/channels/bridge-server.d.ts +69 -0
  51. package/dist/channels/bridge-server.d.ts.map +1 -0
  52. package/dist/channels/cdp-client.d.ts +102 -0
  53. package/dist/channels/cdp-client.d.ts.map +1 -0
  54. package/dist/channels/dom-channel.d.ts +246 -0
  55. package/dist/channels/dom-channel.d.ts.map +1 -0
  56. package/dist/channels/index.d.ts +8 -0
  57. package/dist/channels/index.d.ts.map +1 -0
  58. package/dist/channels/webkit-inspector.d.ts +85 -0
  59. package/dist/channels/webkit-inspector.d.ts.map +1 -0
  60. package/dist/channels/ws-server.d.ts +21 -0
  61. package/dist/channels/ws-server.d.ts.map +1 -0
  62. package/dist/{chunk-WV3ALL3H.js → chunk-2MA5G2VH.js} +6 -2
  63. package/dist/{chunk-WV3ALL3H.js.map → chunk-2MA5G2VH.js.map} +1 -1
  64. package/dist/{chunk-4SA7JK5D.js → chunk-53TGNQTM.js} +14 -10
  65. package/dist/{chunk-4SA7JK5D.js.map → chunk-53TGNQTM.js.map} +1 -1
  66. package/dist/{chunk-JPZCZHL4.js → chunk-7Q7TSUNL.js} +6 -1
  67. package/dist/{chunk-JPZCZHL4.js.map → chunk-7Q7TSUNL.js.map} +1 -1
  68. package/dist/{chunk-X2TJP7LB.js → chunk-7WHQIQPM.js} +11 -1
  69. package/dist/chunk-7WHQIQPM.js.map +1 -0
  70. package/dist/{chunk-WZAQANN6.js → chunk-AMBU26PB.js} +9 -3
  71. package/dist/{chunk-WZAQANN6.js.map → chunk-AMBU26PB.js.map} +1 -1
  72. package/dist/{chunk-3IZMPNE7.js → chunk-BWEQ4XT2.js} +1216 -101
  73. package/dist/chunk-BWEQ4XT2.js.map +1 -0
  74. package/dist/{chunk-SIJJVN2D.js → chunk-F2YUBD4E.js} +9 -3
  75. package/dist/{chunk-SIJJVN2D.js.map → chunk-F2YUBD4E.js.map} +1 -1
  76. package/dist/chunk-F3AFZ6UX.js +326 -0
  77. package/dist/chunk-F3AFZ6UX.js.map +1 -0
  78. package/dist/{chunk-Z6K4QQAR.js → chunk-FHCOPLYB.js} +36 -7
  79. package/dist/chunk-FHCOPLYB.js.map +1 -0
  80. package/dist/{chunk-3SH5JQF7.js → chunk-FSPMFRJO.js} +6 -1
  81. package/dist/{chunk-3SH5JQF7.js.map → chunk-FSPMFRJO.js.map} +1 -1
  82. package/dist/chunk-FTXUQMGH.js +56 -0
  83. package/dist/chunk-FTXUQMGH.js.map +1 -0
  84. package/dist/{chunk-SGZMO456.js → chunk-GAWJL6Q3.js} +180 -37
  85. package/dist/chunk-GAWJL6Q3.js.map +1 -0
  86. package/dist/{chunk-WS2TVNMY.js → chunk-GDDCZ2PL.js} +168 -43
  87. package/dist/chunk-GDDCZ2PL.js.map +1 -0
  88. package/dist/{chunk-OPTNFLBL.js → chunk-HIGFQRWM.js} +7 -1
  89. package/dist/{chunk-OPTNFLBL.js.map → chunk-HIGFQRWM.js.map} +1 -1
  90. package/dist/{chunk-4KK4E3N3.js → chunk-LQQNE2OE.js} +943 -172
  91. package/dist/chunk-LQQNE2OE.js.map +1 -0
  92. package/dist/{chunk-KJPHH2TW.js → chunk-NHT3XSX3.js} +6 -1
  93. package/dist/{chunk-KJPHH2TW.js.map → chunk-NHT3XSX3.js.map} +1 -1
  94. package/dist/{chunk-3FSZNKEF.js → chunk-NXET4BFJ.js} +7 -1
  95. package/dist/{chunk-3FSZNKEF.js.map → chunk-NXET4BFJ.js.map} +1 -1
  96. package/dist/{chunk-FPQAJNE3.js → chunk-OQRGR542.js} +285 -98
  97. package/dist/chunk-OQRGR542.js.map +1 -0
  98. package/dist/{chunk-FXBWACUT.js → chunk-PPAPRKQU.js} +392 -31
  99. package/dist/chunk-PPAPRKQU.js.map +1 -0
  100. package/dist/{chunk-64UZQP7Z.js → chunk-PRQTAIYA.js} +30 -4
  101. package/dist/chunk-PRQTAIYA.js.map +1 -0
  102. package/dist/{chunk-VUNH4AJD.js → chunk-QOL44BNJ.js} +7 -3
  103. package/dist/{chunk-VUNH4AJD.js.map → chunk-QOL44BNJ.js.map} +1 -1
  104. package/dist/{chunk-CY3DKTBZ.js → chunk-RIXZISMX.js} +6 -1
  105. package/dist/{chunk-CY3DKTBZ.js.map → chunk-RIXZISMX.js.map} +1 -1
  106. package/dist/{chunk-S7MSBZ3F.js → chunk-TFEXYI6N.js} +6 -1
  107. package/dist/{chunk-S7MSBZ3F.js.map → chunk-TFEXYI6N.js.map} +1 -1
  108. package/dist/chunk-U56N5JCJ.js +19842 -0
  109. package/dist/chunk-U56N5JCJ.js.map +1 -0
  110. package/dist/{chunk-IHVZKQQW.js → chunk-UKUXNFQP.js} +6 -1
  111. package/dist/{chunk-IHVZKQQW.js.map → chunk-UKUXNFQP.js.map} +1 -1
  112. package/dist/{chunk-54ASKII6.js → chunk-VOYJQDSI.js} +6 -1
  113. package/dist/{chunk-54ASKII6.js.map → chunk-VOYJQDSI.js.map} +1 -1
  114. package/dist/{chunk-26NJXP55.js → chunk-WJH5K42V.js} +6 -2
  115. package/dist/{chunk-26NJXP55.js.map → chunk-WJH5K42V.js.map} +1 -1
  116. package/dist/{chunk-VP6V4XEJ.js → chunk-XD6A3VXB.js} +10 -5
  117. package/dist/{chunk-VP6V4XEJ.js.map → chunk-XD6A3VXB.js.map} +1 -1
  118. package/dist/{chunk-6PTUVG6A.js → chunk-XQRXQBDQ.js} +7 -1
  119. package/dist/{chunk-6PTUVG6A.js.map → chunk-XQRXQBDQ.js.map} +1 -1
  120. package/dist/{chunk-2AFWVHQK.js → chunk-XVL4FHXA.js} +6 -1
  121. package/dist/{chunk-2AFWVHQK.js.map → chunk-XVL4FHXA.js.map} +1 -1
  122. package/dist/{chunk-LAMTF4LX.js → chunk-ZIETAMAD.js} +6 -1
  123. package/dist/{chunk-LAMTF4LX.js.map → chunk-ZIETAMAD.js.map} +1 -1
  124. package/dist/cli/cache-command.d.ts +29 -0
  125. package/dist/cli/cache-command.d.ts.map +1 -0
  126. package/dist/cli/command-errors.d.ts +7 -0
  127. package/dist/cli/command-errors.d.ts.map +1 -0
  128. package/dist/cli/config-loader.d.ts +11 -0
  129. package/dist/cli/config-loader.d.ts.map +1 -0
  130. package/dist/cli/doctor-command.d.ts +64 -0
  131. package/dist/cli/doctor-command.d.ts.map +1 -0
  132. package/dist/cli/gen-types-command.d.ts +2 -0
  133. package/dist/cli/gen-types-command.d.ts.map +1 -0
  134. package/dist/cli/index.d.ts +2 -0
  135. package/dist/cli/index.d.ts.map +1 -0
  136. package/dist/cli/init-command.d.ts +7 -0
  137. package/dist/cli/init-command.d.ts.map +1 -0
  138. package/dist/cli/init-flow-command.d.ts +11 -0
  139. package/dist/cli/init-flow-command.d.ts.map +1 -0
  140. package/dist/cli/iteration.d.ts +44 -0
  141. package/dist/cli/iteration.d.ts.map +1 -0
  142. package/dist/cli/scaffolds.d.ts +13 -0
  143. package/dist/cli/scaffolds.d.ts.map +1 -0
  144. package/dist/cli/studio-command.d.ts +8 -0
  145. package/dist/cli/studio-command.d.ts.map +1 -0
  146. package/dist/cli/test-command.d.ts +61 -0
  147. package/dist/cli/test-command.d.ts.map +1 -0
  148. package/dist/cli/watch-mode.d.ts +9 -0
  149. package/dist/cli/watch-mode.d.ts.map +1 -0
  150. package/dist/cli.js +84 -28
  151. package/dist/cli.js.map +1 -1
  152. package/dist/cloud/browserstack.d.ts +9 -0
  153. package/dist/cloud/browserstack.d.ts.map +1 -0
  154. package/dist/cloud/common.d.ts +26 -0
  155. package/dist/cloud/common.d.ts.map +1 -0
  156. package/dist/cloud/provider.d.ts +21 -0
  157. package/dist/cloud/provider.d.ts.map +1 -0
  158. package/dist/cloud/saucelabs.d.ts +9 -0
  159. package/dist/cloud/saucelabs.d.ts.map +1 -0
  160. package/dist/{compiler-X6WTFMYF.js → compiler-44UW2FID.js} +7 -3
  161. package/dist/{compiler-X6WTFMYF.js.map → compiler-44UW2FID.js.map} +1 -1
  162. package/dist/config-loader-V26XXHPH.js +10 -0
  163. package/dist/{chunk-DGUM43GV.js.map → config-loader-V26XXHPH.js.map} +0 -0
  164. package/dist/{console-DIYEJSSP.js → console-T6TVZ65G.js} +8 -2
  165. package/dist/console-T6TVZ65G.js.map +1 -0
  166. package/dist/core/accessibility-audit.d.ts +29 -0
  167. package/dist/core/accessibility-audit.d.ts.map +1 -0
  168. package/dist/core/artifacts.d.ts +27 -0
  169. package/dist/core/artifacts.d.ts.map +1 -0
  170. package/dist/core/baseline-manager.d.ts +18 -0
  171. package/dist/core/baseline-manager.d.ts.map +1 -0
  172. package/dist/core/benchmark.d.ts +21 -0
  173. package/dist/core/benchmark.d.ts.map +1 -0
  174. package/dist/core/debug-repl.d.ts +17 -0
  175. package/dist/core/debug-repl.d.ts.map +1 -0
  176. package/dist/core/engine.d.ts +51 -0
  177. package/dist/core/engine.d.ts.map +1 -0
  178. package/dist/core/filters.d.ts +248 -0
  179. package/dist/core/filters.d.ts.map +1 -0
  180. package/dist/core/flow-generator.d.ts +13 -0
  181. package/dist/core/flow-generator.d.ts.map +1 -0
  182. package/dist/core/graphemes.d.ts +2 -0
  183. package/dist/core/graphemes.d.ts.map +1 -0
  184. package/dist/core/index.d.ts +6 -0
  185. package/dist/core/index.d.ts.map +1 -0
  186. package/dist/core/native-accel.d.ts +21 -0
  187. package/dist/core/native-accel.d.ts.map +1 -0
  188. package/dist/core/network-cache.d.ts +68 -0
  189. package/dist/core/network-cache.d.ts.map +1 -0
  190. package/dist/core/orchestrator.d.ts +44 -0
  191. package/dist/core/orchestrator.d.ts.map +1 -0
  192. package/dist/core/parallel.d.ts +42 -0
  193. package/dist/core/parallel.d.ts.map +1 -0
  194. package/dist/core/port-allocator.d.ts +16 -0
  195. package/dist/core/port-allocator.d.ts.map +1 -0
  196. package/dist/core/projects.d.ts +60 -0
  197. package/dist/core/projects.d.ts.map +1 -0
  198. package/dist/core/replay-cache.d.ts +127 -0
  199. package/dist/core/replay-cache.d.ts.map +1 -0
  200. package/dist/core/runner.d.ts +50 -0
  201. package/dist/core/runner.d.ts.map +1 -0
  202. package/dist/core/screenshot-compare.d.ts +50 -0
  203. package/dist/core/screenshot-compare.d.ts.map +1 -0
  204. package/dist/core/session-manager.d.ts +35 -0
  205. package/dist/core/session-manager.d.ts.map +1 -0
  206. package/dist/core/step-recorder.d.ts +20 -0
  207. package/dist/core/step-recorder.d.ts.map +1 -0
  208. package/dist/core/target-matrix.d.ts +29 -0
  209. package/dist/core/target-matrix.d.ts.map +1 -0
  210. package/dist/core/trace-viewer.d.ts +91 -0
  211. package/dist/core/trace-viewer.d.ts.map +1 -0
  212. package/dist/core/validator.d.ts +18 -0
  213. package/dist/core/validator.d.ts.map +1 -0
  214. package/dist/core/video-recorder.d.ts +120 -0
  215. package/dist/core/video-recorder.d.ts.map +1 -0
  216. package/dist/core/worker-pool.d.ts +87 -0
  217. package/dist/core/worker-pool.d.ts.map +1 -0
  218. package/dist/{daemon-manager-2EQDVUVM.js → daemon-manager-2SK5PHJR.js} +3 -3
  219. package/dist/{config-loader-CNGIW2XK.js.map → daemon-manager-2SK5PHJR.js.map} +0 -0
  220. package/dist/device/android.d.ts +66 -0
  221. package/dist/device/android.d.ts.map +1 -0
  222. package/dist/device/discover.d.ts +15 -0
  223. package/dist/device/discover.d.ts.map +1 -0
  224. package/dist/device/index.d.ts +4 -0
  225. package/dist/device/index.d.ts.map +1 -0
  226. package/dist/device/ios.d.ts +126 -0
  227. package/dist/device/ios.d.ts.map +1 -0
  228. package/dist/diagnostics/live-inspector.d.ts +121 -0
  229. package/dist/diagnostics/live-inspector.d.ts.map +1 -0
  230. package/dist/diagnostics/native-logs.d.ts +38 -0
  231. package/dist/diagnostics/native-logs.d.ts.map +1 -0
  232. package/dist/discover-43C3BE7I.js +15 -0
  233. package/dist/{daemon-manager-2EQDVUVM.js.map → discover-43C3BE7I.js.map} +0 -0
  234. package/dist/{doctor-command-6ZVJWCW7.js → doctor-command-CLKEEOAX.js} +14 -11
  235. package/dist/{doctor-command-6ZVJWCW7.js.map → doctor-command-CLKEEOAX.js.map} +1 -1
  236. package/dist/drivers/adapter-registry.d.ts +96 -0
  237. package/dist/drivers/adapter-registry.d.ts.map +1 -0
  238. package/dist/drivers/appium/android.d.ts +22 -0
  239. package/dist/drivers/appium/android.d.ts.map +1 -0
  240. package/dist/drivers/appium/client.d.ts +26 -0
  241. package/dist/drivers/appium/client.d.ts.map +1 -0
  242. package/dist/drivers/appium/ios.d.ts +28 -0
  243. package/dist/drivers/appium/ios.d.ts.map +1 -0
  244. package/dist/drivers/appium/window-size.d.ts +8 -0
  245. package/dist/drivers/appium/window-size.d.ts.map +1 -0
  246. package/dist/drivers/browser-extensions.d.ts +62 -0
  247. package/dist/drivers/browser-extensions.d.ts.map +1 -0
  248. package/dist/drivers/cdp-browser.d.ts +102 -0
  249. package/dist/drivers/cdp-browser.d.ts.map +1 -0
  250. package/dist/drivers/common/xml-tokenizer.d.ts +26 -0
  251. package/dist/drivers/common/xml-tokenizer.d.ts.map +1 -0
  252. package/dist/drivers/device-controls.d.ts +36 -0
  253. package/dist/drivers/device-controls.d.ts.map +1 -0
  254. package/dist/drivers/electrobun.d.ts +47 -0
  255. package/dist/drivers/electrobun.d.ts.map +1 -0
  256. package/dist/drivers/electron.d.ts +36 -0
  257. package/dist/drivers/electron.d.ts.map +1 -0
  258. package/dist/drivers/index.d.ts +2 -0
  259. package/dist/drivers/index.d.ts.map +1 -0
  260. package/dist/drivers/launch-options.d.ts +10 -0
  261. package/dist/drivers/launch-options.d.ts.map +1 -0
  262. package/dist/drivers/network-profiles.d.ts +9 -0
  263. package/dist/drivers/network-profiles.d.ts.map +1 -0
  264. package/dist/drivers/playwright-parser.d.ts +16 -0
  265. package/dist/drivers/playwright-parser.d.ts.map +1 -0
  266. package/dist/drivers/playwright.d.ts +69 -0
  267. package/dist/drivers/playwright.d.ts.map +1 -0
  268. package/dist/drivers/raw-driver.d.ts +399 -0
  269. package/dist/drivers/raw-driver.d.ts.map +1 -0
  270. package/dist/drivers/uiautomator2/client.d.ts +77 -0
  271. package/dist/drivers/uiautomator2/client.d.ts.map +1 -0
  272. package/dist/drivers/uiautomator2/driver.d.ts +20 -0
  273. package/dist/drivers/uiautomator2/driver.d.ts.map +1 -0
  274. package/dist/drivers/uiautomator2/index.d.ts +5 -0
  275. package/dist/drivers/uiautomator2/index.d.ts.map +1 -0
  276. package/dist/drivers/uiautomator2/installer.d.ts +20 -0
  277. package/dist/drivers/uiautomator2/installer.d.ts.map +1 -0
  278. package/dist/drivers/uiautomator2/pagesource.d.ts +12 -0
  279. package/dist/drivers/uiautomator2/pagesource.d.ts.map +1 -0
  280. package/dist/drivers/wda/client.d.ts +116 -0
  281. package/dist/drivers/wda/client.d.ts.map +1 -0
  282. package/dist/drivers/wda/driver.d.ts +26 -0
  283. package/dist/drivers/wda/driver.d.ts.map +1 -0
  284. package/dist/drivers/wda/index.d.ts +5 -0
  285. package/dist/drivers/wda/index.d.ts.map +1 -0
  286. package/dist/drivers/wda/installer.d.ts +51 -0
  287. package/dist/drivers/wda/installer.d.ts.map +1 -0
  288. package/dist/drivers/wda/pagesource.d.ts +12 -0
  289. package/dist/drivers/wda/pagesource.d.ts.map +1 -0
  290. package/dist/errors.d.ts +82 -0
  291. package/dist/errors.d.ts.map +1 -0
  292. package/dist/{filters-MQG2RMPX.js → filters-5DCGGJRN.js} +3 -3
  293. package/dist/{discover-NKDMB4UI.js.map → filters-5DCGGJRN.js.map} +0 -0
  294. package/dist/gherkin/compiler.d.ts +3 -0
  295. package/dist/gherkin/compiler.d.ts.map +1 -0
  296. package/dist/gherkin/index.d.ts +7 -0
  297. package/dist/gherkin/index.d.ts.map +1 -0
  298. package/dist/gherkin/matcher.d.ts +9 -0
  299. package/dist/gherkin/matcher.d.ts.map +1 -0
  300. package/dist/gherkin/registry.d.ts +28 -0
  301. package/dist/gherkin/registry.d.ts.map +1 -0
  302. package/dist/gherkin/steps.d.ts +13 -31
  303. package/dist/gherkin/steps.d.ts.map +1 -0
  304. package/dist/gherkin/steps.js +5 -2
  305. package/dist/gherkin/steps.js.map +1 -1
  306. package/dist/gherkin/world.d.ts +15 -0
  307. package/dist/gherkin/world.d.ts.map +1 -0
  308. package/dist/{github-pr-YMWIPCCZ.js → github-pr-RYO6IAKD.js} +3 -3
  309. package/dist/{filters-MQG2RMPX.js.map → github-pr-RYO6IAKD.js.map} +0 -0
  310. package/dist/{html-FLMWPFQD.js → html-KJ2QAGF4.js} +6 -3
  311. package/dist/{html-FLMWPFQD.js.map → html-KJ2QAGF4.js.map} +1 -1
  312. package/dist/index.d.ts +54 -2267
  313. package/dist/index.d.ts.map +1 -0
  314. package/dist/index.js +74 -30
  315. package/dist/index.js.map +1 -1
  316. package/dist/{init-command-Z3QREABL.js → init-command-V5VGN3IS.js} +5 -2
  317. package/dist/{init-command-Z3QREABL.js.map → init-command-V5VGN3IS.js.map} +1 -1
  318. package/dist/{init-flow-command-4EKRVTNT.js → init-flow-command-INYUCC6N.js} +6 -3
  319. package/dist/{init-flow-command-4EKRVTNT.js.map → init-flow-command-INYUCC6N.js.map} +1 -1
  320. package/dist/{installer-5UHTYQTB.js → installer-DMTY47SI.js} +5 -5
  321. package/dist/{github-pr-YMWIPCCZ.js.map → installer-DMTY47SI.js.map} +0 -0
  322. package/dist/{ios-Y4TO5MBR.js → ios-SZ4RBI7Q.js} +4 -4
  323. package/dist/{installer-5UHTYQTB.js.map → ios-SZ4RBI7Q.js.map} +0 -0
  324. package/dist/json-57Z2YSES.js +39 -0
  325. package/dist/json-57Z2YSES.js.map +1 -0
  326. package/dist/{junit-CGB3LKHD.js → junit-MHD5AXBU.js} +26 -6
  327. package/dist/junit-MHD5AXBU.js.map +1 -0
  328. package/dist/{local-DM3YBSV5.js → local-RH5EFGYF.js} +12 -12
  329. package/dist/{ios-Y4TO5MBR.js.map → local-RH5EFGYF.js.map} +0 -0
  330. package/dist/{machine-6H25TRTU.js → machine-NOOFRT45.js} +3 -3
  331. package/dist/{local-DM3YBSV5.js.map → machine-NOOFRT45.js.map} +0 -0
  332. package/dist/machine.d.ts +20 -0
  333. package/dist/machine.d.ts.map +1 -0
  334. package/dist/mcp/server.d.ts +73 -0
  335. package/dist/mcp/server.d.ts.map +1 -0
  336. package/dist/{provider-YIPU5K42.js → provider-CBAXZ2VA.js} +3 -3
  337. package/dist/{machine-6H25TRTU.js.map → provider-CBAXZ2VA.js.map} +0 -0
  338. package/dist/{redact-U72BUBBR.js → redact-OG4M3IEU.js} +5 -2
  339. package/dist/{redact-U72BUBBR.js.map → redact-OG4M3IEU.js.map} +1 -1
  340. package/dist/report/allure.d.ts +3 -0
  341. package/dist/report/allure.d.ts.map +1 -0
  342. package/dist/report/classify-error.d.ts +7 -0
  343. package/dist/report/classify-error.d.ts.map +1 -0
  344. package/dist/report/code-frame.d.ts +16 -0
  345. package/dist/report/code-frame.d.ts.map +1 -0
  346. package/dist/report/console.d.ts +7 -0
  347. package/dist/report/console.d.ts.map +1 -0
  348. package/dist/report/failure-bundle.d.ts +66 -0
  349. package/dist/report/failure-bundle.d.ts.map +1 -0
  350. package/dist/report/failure-diagnostics.d.ts +11 -0
  351. package/dist/report/failure-diagnostics.d.ts.map +1 -0
  352. package/dist/report/github-pr.d.ts +20 -0
  353. package/dist/report/github-pr.d.ts.map +1 -0
  354. package/dist/report/html.d.ts +3 -0
  355. package/dist/report/html.d.ts.map +1 -0
  356. package/dist/report/index.d.ts +8 -0
  357. package/dist/report/index.d.ts.map +1 -0
  358. package/dist/report/json.d.ts +3 -0
  359. package/dist/report/json.d.ts.map +1 -0
  360. package/dist/report/junit.d.ts +3 -0
  361. package/dist/report/junit.d.ts.map +1 -0
  362. package/dist/report/redact.d.ts +29 -0
  363. package/dist/report/redact.d.ts.map +1 -0
  364. package/dist/report/selector-guardrails.d.ts +12 -0
  365. package/dist/report/selector-guardrails.d.ts.map +1 -0
  366. package/dist/report/types.d.ts +164 -0
  367. package/dist/report/types.d.ts.map +1 -0
  368. package/dist/{runner-WOVZWUQR.js → runner-ABGUVOJG.js} +5 -3
  369. package/dist/{provider-YIPU5K42.js.map → runner-ABGUVOJG.js.map} +0 -0
  370. package/dist/runtime/appium-server.d.ts +34 -0
  371. package/dist/runtime/appium-server.d.ts.map +1 -0
  372. package/dist/runtime/appium.d.ts +5 -0
  373. package/dist/runtime/appium.d.ts.map +1 -0
  374. package/dist/runtime/capabilities.d.ts +19 -0
  375. package/dist/runtime/capabilities.d.ts.map +1 -0
  376. package/dist/runtime/daemon-manager.d.ts +83 -0
  377. package/dist/runtime/daemon-manager.d.ts.map +1 -0
  378. package/dist/runtime/local.d.ts +38 -0
  379. package/dist/runtime/local.d.ts.map +1 -0
  380. package/dist/runtime/types.d.ts +21 -0
  381. package/dist/runtime/types.d.ts.map +1 -0
  382. package/dist/runtime/web-server.d.ts +57 -0
  383. package/dist/runtime/web-server.d.ts.map +1 -0
  384. package/dist/schemas/config.d.ts +780 -0
  385. package/dist/schemas/config.d.ts.map +1 -0
  386. package/dist/schemas/device.d.ts +12 -0
  387. package/dist/schemas/device.d.ts.map +1 -0
  388. package/dist/schemas/element.d.ts +66 -0
  389. package/dist/schemas/element.d.ts.map +1 -0
  390. package/dist/schemas/index.d.ts +5 -0
  391. package/dist/schemas/index.d.ts.map +1 -0
  392. package/dist/schemas/selector.d.ts +193 -0
  393. package/dist/schemas/selector.d.ts.map +1 -0
  394. package/dist/screenshot-compare-V4JQG73R.js +2410 -0
  395. package/dist/screenshot-compare-V4JQG73R.js.map +1 -0
  396. package/dist/server-D45AO34E.js +6731 -0
  397. package/dist/server-D45AO34E.js.map +1 -0
  398. package/dist/{server-ING5D5ZJ.js → server-KLZBJOMQ.js} +3 -3
  399. package/dist/{runner-WOVZWUQR.js.map → server-KLZBJOMQ.js.map} +0 -0
  400. package/dist/session-N6DEYVPM.js +21 -0
  401. package/dist/{server-ING5D5ZJ.js.map → session-N6DEYVPM.js.map} +0 -0
  402. package/dist/smart/auto-wait.d.ts +38 -0
  403. package/dist/smart/auto-wait.d.ts.map +1 -0
  404. package/dist/smart/channel-resolver.d.ts +90 -0
  405. package/dist/smart/channel-resolver.d.ts.map +1 -0
  406. package/dist/smart/coordinator.d.ts +162 -0
  407. package/dist/smart/coordinator.d.ts.map +1 -0
  408. package/dist/smart/diagnostics.d.ts +15 -0
  409. package/dist/smart/diagnostics.d.ts.map +1 -0
  410. package/dist/smart/element-matcher.d.ts +24 -0
  411. package/dist/smart/element-matcher.d.ts.map +1 -0
  412. package/dist/smart/hierarchy-cache.d.ts +16 -0
  413. package/dist/smart/hierarchy-cache.d.ts.map +1 -0
  414. package/dist/smart/index.d.ts +4 -0
  415. package/dist/smart/index.d.ts.map +1 -0
  416. package/dist/studio/api.d.ts +317 -0
  417. package/dist/studio/api.d.ts.map +1 -0
  418. package/dist/studio/context.d.ts +7 -0
  419. package/dist/studio/context.d.ts.map +1 -0
  420. package/dist/studio/core/element-tree.d.ts +15 -0
  421. package/dist/studio/core/element-tree.d.ts.map +1 -0
  422. package/dist/studio/effect-handler.d.ts +3 -0
  423. package/dist/studio/effect-handler.d.ts.map +1 -0
  424. package/dist/studio/procedures.d.ts +4 -0
  425. package/dist/studio/procedures.d.ts.map +1 -0
  426. package/dist/studio/recording-session.d.ts +31 -0
  427. package/dist/studio/recording-session.d.ts.map +1 -0
  428. package/dist/studio/routers/devices.d.ts +11 -0
  429. package/dist/studio/routers/devices.d.ts.map +1 -0
  430. package/dist/studio/routers/inspector.d.ts +104 -0
  431. package/dist/studio/routers/inspector.d.ts.map +1 -0
  432. package/dist/studio/routers/recording.d.ts +130 -0
  433. package/dist/studio/routers/recording.d.ts.map +1 -0
  434. package/dist/studio/routers/tests.d.ts +93 -0
  435. package/dist/studio/routers/tests.d.ts.map +1 -0
  436. package/dist/studio/server.d.ts +12 -0
  437. package/dist/studio/server.d.ts.map +1 -0
  438. package/dist/{studio-command-KK7A3KN6.js → studio-command-TNSJGTFA.js} +6 -3
  439. package/dist/{studio-command-KK7A3KN6.js.map → studio-command-TNSJGTFA.js.map} +1 -1
  440. package/dist/{test-command-QGIJBRH7.js → test-command-EXPYFDTF.js} +283 -74
  441. package/dist/test-command-EXPYFDTF.js.map +1 -0
  442. package/dist/{validator-WO5IL7IY.js → validator-AJNOFBQM.js} +4 -4
  443. package/dist/{session-5TNWVGQQ.js.map → validator-AJNOFBQM.js.map} +0 -0
  444. package/native/darwin-arm64/libspana_native.dylib +0 -0
  445. package/native/darwin-x64/libspana_native.dylib +0 -0
  446. package/native/linux-arm64/libspana_native.so +0 -0
  447. package/native/linux-x64/libspana_native.so +0 -0
  448. package/native/win32-x64/spana_native.dll +0 -0
  449. package/package.json +15 -18
  450. package/studio-dist/assets/index-CHLA4F7b.css +2 -0
  451. package/studio-dist/assets/index-DXGUfzm3.js +23 -0
  452. package/studio-dist/index.html +2 -2
  453. package/dist/accessibility-audit-YZOPUY3D.js.map +0 -1
  454. package/dist/app-RSDPDTKT.js +0 -10
  455. package/dist/chunk-3IZMPNE7.js.map +0 -1
  456. package/dist/chunk-4KK4E3N3.js.map +0 -1
  457. package/dist/chunk-64UZQP7Z.js.map +0 -1
  458. package/dist/chunk-DGUM43GV.js +0 -11
  459. package/dist/chunk-FPQAJNE3.js.map +0 -1
  460. package/dist/chunk-FXBWACUT.js.map +0 -1
  461. package/dist/chunk-SGZMO456.js.map +0 -1
  462. package/dist/chunk-WS2TVNMY.js.map +0 -1
  463. package/dist/chunk-X2TJP7LB.js.map +0 -1
  464. package/dist/chunk-XA6LWLZQ.js +0 -310
  465. package/dist/chunk-XA6LWLZQ.js.map +0 -1
  466. package/dist/chunk-Z6K4QQAR.js.map +0 -1
  467. package/dist/config-loader-CNGIW2XK.js +0 -9
  468. package/dist/console-DIYEJSSP.js.map +0 -1
  469. package/dist/discover-NKDMB4UI.js +0 -15
  470. package/dist/flow-DddAj1xv.d.ts +0 -1913
  471. package/dist/json-JMRPUVY2.js +0 -20
  472. package/dist/json-JMRPUVY2.js.map +0 -1
  473. package/dist/junit-CGB3LKHD.js.map +0 -1
  474. package/dist/screenshot-compare-POTXVUTL.js +0 -136
  475. package/dist/screenshot-compare-POTXVUTL.js.map +0 -1
  476. package/dist/server-JNQ2PLCC.js +0 -855
  477. package/dist/server-JNQ2PLCC.js.map +0 -1
  478. package/dist/session-5TNWVGQQ.js +0 -21
  479. package/dist/test-command-QGIJBRH7.js.map +0 -1
  480. package/dist/validator-WO5IL7IY.js.map +0 -1
  481. package/studio-dist/assets/index-CBFsOh-9.js +0 -193
  482. package/studio-dist/assets/index-DH_18EyL.css +0 -1
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  collectDiagnosticSections
3
- } from "./chunk-KJPHH2TW.js";
3
+ } from "./chunk-NHT3XSX3.js";
4
4
  import {
5
5
  loadConfig
6
- } from "./chunk-WZAQANN6.js";
6
+ } from "./chunk-AMBU26PB.js";
7
7
  import {
8
8
  classifyError,
9
9
  createRemoteFlowClaimer,
@@ -17,12 +17,13 @@ import {
17
17
  startSharedFlowQueueServer,
18
18
  startWebServers,
19
19
  writeWorkerProcessReport
20
- } from "./chunk-FPQAJNE3.js";
20
+ } from "./chunk-OQRGR542.js";
21
21
  import {
22
22
  createCloudProviderHelper,
23
23
  detectProvider
24
- } from "./chunk-X2TJP7LB.js";
25
- import "./chunk-XA6LWLZQ.js";
24
+ } from "./chunk-7WHQIQPM.js";
25
+ import "./chunk-F3AFZ6UX.js";
26
+ import "./chunk-U56N5JCJ.js";
26
27
  import {
27
28
  buildElectrobunRuntime,
28
29
  buildElectronRuntime,
@@ -31,20 +32,20 @@ import {
31
32
  buildWebRuntime,
32
33
  buildWebRuntimePool,
33
34
  speculativelyPrelaunchWebBrowser
34
- } from "./chunk-3IZMPNE7.js";
35
- import "./chunk-OPTNFLBL.js";
35
+ } from "./chunk-BWEQ4XT2.js";
36
+ import "./chunk-HIGFQRWM.js";
36
37
  import {
37
38
  deviceEffect,
38
39
  parseAndroidHierarchy,
39
40
  parseIOSHierarchy,
40
41
  resolveNetworkConditions
41
- } from "./chunk-FXBWACUT.js";
42
- import "./chunk-WS2TVNMY.js";
43
- import "./chunk-2AFWVHQK.js";
44
- import "./chunk-WV3ALL3H.js";
45
- import "./chunk-VP6V4XEJ.js";
46
- import "./chunk-Z6K4QQAR.js";
47
- import "./chunk-JPZCZHL4.js";
42
+ } from "./chunk-PPAPRKQU.js";
43
+ import "./chunk-GDDCZ2PL.js";
44
+ import "./chunk-XVL4FHXA.js";
45
+ import "./chunk-2MA5G2VH.js";
46
+ import "./chunk-XD6A3VXB.js";
47
+ import "./chunk-FHCOPLYB.js";
48
+ import "./chunk-7Q7TSUNL.js";
48
49
  import {
49
50
  applyShard,
50
51
  discoverFlows,
@@ -54,23 +55,27 @@ import {
54
55
  getFlowSkip,
55
56
  loadStepFiles,
56
57
  loadTestSource
57
- } from "./chunk-64UZQP7Z.js";
58
- import "./chunk-4KK4E3N3.js";
58
+ } from "./chunk-PRQTAIYA.js";
59
+ import "./chunk-LQQNE2OE.js";
59
60
  import {
60
61
  buildIOSLaunchConfiguration,
61
62
  deviceStateToAppiumCapabilities,
62
63
  hasLaunchDeviceState,
63
64
  splitGraphemes
64
- } from "./chunk-6PTUVG6A.js";
65
+ } from "./chunk-XQRXQBDQ.js";
65
66
  import {
66
67
  DriverError
67
- } from "./chunk-SGZMO456.js";
68
- import "./chunk-DGUM43GV.js";
68
+ } from "./chunk-GAWJL6Q3.js";
69
+ import {
70
+ init_esm_shims
71
+ } from "./chunk-FTXUQMGH.js";
69
72
 
70
73
  // src/cli/test-command.ts
74
+ init_esm_shims();
71
75
  import { resolve as resolve3, dirname as dirname3 } from "path";
72
76
 
73
77
  // src/core/orchestrator.ts
78
+ init_esm_shims();
74
79
  async function sleep(ms) {
75
80
  if (ms <= 0) return;
76
81
  return new Promise((resolve4) => setTimeout(resolve4, ms));
@@ -97,9 +102,13 @@ async function runPlatform(flows, platformConfig, options, shouldBail, noteFailu
97
102
  return { results };
98
103
  }
99
104
  const hooks = engineConfig.hooks;
100
- if (hooks?.beforeAll) {
105
+ const isChildWorkerProcess = process.env.SPANA_WORKER_PROCESS === "1";
106
+ const workerOffset = Number.parseInt(process.env.SPANA_WORKER_INDEX_OFFSET ?? "0", 10) || 0;
107
+ const workerIndex = engineConfig.workerIndex ?? workerOffset;
108
+ const parallelIndex = engineConfig.parallelIndex ?? 0;
109
+ if (hooks?.beforeAll && !isChildWorkerProcess) {
101
110
  try {
102
- await hooks.beforeAll({ app: void 0, platform });
111
+ await hooks.beforeAll({ app: void 0, platform, workerIndex, parallelIndex });
103
112
  } catch (error) {
104
113
  for (const flow of platformFlows) {
105
114
  const result = getFlowSkip(flow, platform) ?? {
@@ -107,7 +116,8 @@ async function runPlatform(flows, platformConfig, options, shouldBail, noteFailu
107
116
  platform,
108
117
  status: "failed",
109
118
  durationMs: 0,
110
- error: classifyError(error instanceof Error ? error : new Error(String(error)))
119
+ error: classifyError(error instanceof Error ? error : new Error(String(error))),
120
+ ...flow.config.tags ? { tags: flow.config.tags } : {}
111
121
  };
112
122
  results.push(result);
113
123
  options?.onResult?.(result);
@@ -143,11 +153,13 @@ async function runPlatform(flows, platformConfig, options, shouldBail, noteFailu
143
153
  if (result.status === "failed") noteFailure();
144
154
  }
145
155
  });
146
- if (hooks?.afterAll) {
156
+ if (hooks?.afterAll && !isChildWorkerProcess) {
147
157
  try {
148
158
  await hooks.afterAll({
149
159
  app: void 0,
150
160
  platform,
161
+ workerIndex,
162
+ parallelIndex,
151
163
  summary: { results: parallelResult.results }
152
164
  });
153
165
  } catch (hookError) {
@@ -158,7 +170,28 @@ async function runPlatform(flows, platformConfig, options, shouldBail, noteFailu
158
170
  }
159
171
  return { results: parallelResult.results, workerStats: parallelResult.workerStats };
160
172
  }
173
+ const singleEngineConfig = {
174
+ ...engineConfig,
175
+ workerIndex,
176
+ parallelIndex
177
+ };
178
+ const failedSerialGroups = /* @__PURE__ */ new Set();
161
179
  const runSingleFlow = async (flow) => {
180
+ const sg = flow.config.serialGroup;
181
+ if (sg && failedSerialGroups.has(sg)) {
182
+ const skipped = {
183
+ name: flow.name,
184
+ platform,
185
+ status: "skipped",
186
+ skipReason: "Skipped because an earlier flow in this serial suite failed",
187
+ durationMs: 0,
188
+ ...flow.config.tags ? { tags: flow.config.tags } : {},
189
+ ...flow.config.annotations ? { annotations: flow.config.annotations } : {}
190
+ };
191
+ results.push(skipped);
192
+ options?.onResult?.(skipped);
193
+ return;
194
+ }
162
195
  const skip = getFlowSkip(flow, platform);
163
196
  if (skip) {
164
197
  results.push(skip);
@@ -167,13 +200,13 @@ async function runPlatform(flows, platformConfig, options, shouldBail, noteFailu
167
200
  }
168
201
  const retries = flow.config.retries ?? options?.retries ?? 0;
169
202
  options?.onFlowStart?.(flow.name, platform);
170
- let result = await executeFlow(flow, driver, engineConfig);
203
+ let result = await executeFlow(flow, driver, singleEngineConfig);
171
204
  let attempts = 1;
172
205
  if (result.status === "failed" && retries > 0) {
173
206
  for (let retry = 0; retry < retries; retry++) {
174
207
  if (shouldBail()) break;
175
208
  await sleep(retryDelay);
176
- const retryResult = await executeFlow(flow, driver, engineConfig);
209
+ const retryResult = await executeFlow(flow, driver, singleEngineConfig);
177
210
  attempts++;
178
211
  if (retryResult.status === "passed") {
179
212
  result = { ...retryResult, flaky: true, attempts };
@@ -188,6 +221,7 @@ async function runPlatform(flows, platformConfig, options, shouldBail, noteFailu
188
221
  results.push(result);
189
222
  options?.onResult?.(result);
190
223
  if (result.status === "failed") {
224
+ if (sg) failedSerialGroups.add(sg);
191
225
  noteFailure();
192
226
  }
193
227
  };
@@ -209,7 +243,8 @@ async function runPlatform(flows, platformConfig, options, shouldBail, noteFailu
209
243
  name: skippedFlow.name,
210
244
  platform,
211
245
  status: "skipped",
212
- durationMs: 0
246
+ durationMs: 0,
247
+ ...skippedFlow.config.tags ? { tags: skippedFlow.config.tags } : {}
213
248
  }
214
249
  );
215
250
  }
@@ -218,9 +253,15 @@ async function runPlatform(flows, platformConfig, options, shouldBail, noteFailu
218
253
  await runSingleFlow(flow);
219
254
  }
220
255
  }
221
- if (hooks?.afterAll) {
256
+ if (hooks?.afterAll && !isChildWorkerProcess) {
222
257
  try {
223
- await hooks.afterAll({ app: void 0, platform, summary: { results } });
258
+ await hooks.afterAll({
259
+ app: void 0,
260
+ platform,
261
+ workerIndex,
262
+ parallelIndex,
263
+ summary: { results }
264
+ });
224
265
  } catch (hookError) {
225
266
  console.warn(
226
267
  `afterAll hook failed: ${hookError instanceof Error ? hookError.message : hookError}`
@@ -280,6 +321,7 @@ async function orchestrate(flows, platforms, options) {
280
321
  }
281
322
 
282
323
  // src/runtime/capabilities.ts
324
+ init_esm_shims();
283
325
  import { readFile } from "fs/promises";
284
326
  async function resolveCapabilities(config, opts) {
285
327
  const configCaps = config.capabilities ?? {};
@@ -304,9 +346,11 @@ async function resolveCapabilities(config, opts) {
304
346
  }
305
347
 
306
348
  // src/runtime/appium.ts
349
+ init_esm_shims();
307
350
  import { Effect as Effect3 } from "effect";
308
351
 
309
352
  // src/drivers/appium/client.ts
353
+ init_esm_shims();
310
354
  var AppiumClient = class {
311
355
  baseUrl;
312
356
  authHeader = null;
@@ -434,9 +478,11 @@ var AppiumClient = class {
434
478
  };
435
479
 
436
480
  // src/drivers/appium/android.ts
481
+ init_esm_shims();
437
482
  import { Effect } from "effect";
438
483
 
439
484
  // src/drivers/appium/window-size.ts
485
+ init_esm_shims();
440
486
  async function getAppiumWindowSize(client) {
441
487
  try {
442
488
  return await client.request("GET", client.sessionPath("/window/size"));
@@ -751,6 +797,7 @@ function createAppiumAndroidDriver(client, defaultBundleId) {
751
797
  }
752
798
 
753
799
  // src/drivers/appium/ios.ts
800
+ init_esm_shims();
754
801
  import { Effect as Effect2 } from "effect";
755
802
  function createAppiumIOSDriver(client) {
756
803
  const mobile = async (command, params) => {
@@ -1199,6 +1246,7 @@ async function buildAppiumIOSRuntime(config, appiumUrl, caps) {
1199
1246
  }
1200
1247
 
1201
1248
  // src/cli/iteration.ts
1249
+ init_esm_shims();
1202
1250
  import { execFileSync } from "child_process";
1203
1251
  import { readFile as readFile2, writeFile } from "fs/promises";
1204
1252
  import { dirname, join, resolve } from "path";
@@ -1301,6 +1349,7 @@ function createLastRunStatePath(outputDir) {
1301
1349
  }
1302
1350
 
1303
1351
  // src/cli/watch-mode.ts
1352
+ init_esm_shims();
1304
1353
  import { readdir, stat } from "fs/promises";
1305
1354
  import { dirname as dirname2, extname, resolve as resolve2 } from "path";
1306
1355
  var WATCH_EXTENSIONS = /* @__PURE__ */ new Set([".ts", ".tsx", ".js", ".jsx", ".json", ".feature"]);
@@ -1399,7 +1448,7 @@ function validateOptions(opts) {
1399
1448
  return null;
1400
1449
  }
1401
1450
  async function buildParallelPlatformConfigs(platforms, opts, config, runtimes, resolveFromConfig, prelaunchedWeb) {
1402
- const { discoverDevices, findDeviceById } = await import("./discover-NKDMB4UI.js");
1451
+ const { discoverDevices, findDeviceById } = await import("./discover-43C3BE7I.js");
1403
1452
  let allDevices;
1404
1453
  if (opts.devices) {
1405
1454
  allDevices = [];
@@ -1665,30 +1714,43 @@ async function loadCustomReporter(modulePath, configDir) {
1665
1714
  );
1666
1715
  }
1667
1716
  async function setupReporters(reporterNames, config, resolveFromConfig, appiumUrl, opts, filterSummaries = []) {
1668
- const { createRedactor, registerUrlSecrets } = await import("./redact-U72BUBBR.js");
1717
+ const { createRedactor, registerUrlSecrets } = await import("./redact-OG4M3IEU.js");
1669
1718
  const redactor = createRedactor();
1670
1719
  if (appiumUrl) registerUrlSecrets(redactor, appiumUrl);
1671
- const { createConsoleReporter } = await import("./console-DIYEJSSP.js");
1672
- const { createJsonReporter } = await import("./json-JMRPUVY2.js");
1673
- const { createJUnitReporter } = await import("./junit-CGB3LKHD.js");
1674
- const { createHtmlReporter } = await import("./html-FLMWPFQD.js");
1675
- const { createAllureReporter } = await import("./allure-FGVR5LND.js");
1676
- const { createGitHubPrReporter } = await import("./github-pr-YMWIPCCZ.js");
1720
+ const { createConsoleReporter } = await import("./console-T6TVZ65G.js");
1721
+ const { createJsonReporter } = await import("./json-57Z2YSES.js");
1722
+ const { createJUnitReporter } = await import("./junit-MHD5AXBU.js");
1723
+ const { createHtmlReporter } = await import("./html-KJ2QAGF4.js");
1724
+ const { createAllureReporter } = await import("./allure-XOM7BXL5.js");
1725
+ const { createGitHubPrReporter } = await import("./github-pr-RYO6IAKD.js");
1677
1726
  const resolvedOutputDir = config.artifacts?.outputDir ?? resolveFromConfig("./spana-output");
1678
1727
  const reporters = [];
1679
1728
  for (const name of reporterNames.split(",")) {
1680
1729
  const trimmed = name.trim();
1681
1730
  if (!trimmed) continue;
1682
- if (BUILTIN_REPORTERS.has(trimmed)) {
1683
- switch (trimmed) {
1731
+ const colonIdx = trimmed.indexOf(":");
1732
+ const reporterKind = colonIdx > 0 ? trimmed.slice(0, colonIdx) : trimmed;
1733
+ const reporterTarget = colonIdx > 0 ? trimmed.slice(colonIdx + 1) : void 0;
1734
+ if (BUILTIN_REPORTERS.has(reporterKind)) {
1735
+ switch (reporterKind) {
1684
1736
  case "json":
1685
- reporters.push(createJsonReporter());
1737
+ reporters.push(
1738
+ createJsonReporter(reporterTarget ? resolve3(process.cwd(), reporterTarget) : void 0)
1739
+ );
1686
1740
  break;
1687
1741
  case "junit":
1688
- reporters.push(createJUnitReporter(resolvedOutputDir));
1742
+ reporters.push(
1743
+ createJUnitReporter(
1744
+ reporterTarget ? resolve3(process.cwd(), reporterTarget) : resolvedOutputDir
1745
+ )
1746
+ );
1689
1747
  break;
1690
1748
  case "html":
1691
- reporters.push(createHtmlReporter(resolvedOutputDir));
1749
+ reporters.push(
1750
+ createHtmlReporter(
1751
+ reporterTarget ? resolve3(process.cwd(), reporterTarget) : resolvedOutputDir
1752
+ )
1753
+ );
1692
1754
  break;
1693
1755
  case "allure":
1694
1756
  reporters.push(createAllureReporter());
@@ -1786,10 +1848,10 @@ async function resolveExecutionContext(opts) {
1786
1848
  };
1787
1849
  }
1788
1850
  async function resolveTargetDevice(deviceId, platforms, cliPlatforms) {
1789
- const { findDeviceById } = await import("./discover-NKDMB4UI.js");
1851
+ const { findDeviceById } = await import("./discover-43C3BE7I.js");
1790
1852
  const targetDevice = findDeviceById(deviceId);
1791
1853
  if (!targetDevice) {
1792
- const { discoverDevices } = await import("./discover-NKDMB4UI.js");
1854
+ const { discoverDevices } = await import("./discover-43C3BE7I.js");
1793
1855
  const available = discoverDevices(["web", "android", "ios"]);
1794
1856
  console.log(`Device "${deviceId}" not found. Available devices:`);
1795
1857
  for (const d of available) {
@@ -1863,7 +1925,12 @@ async function discoverAndFilterFlows(input) {
1863
1925
  }
1864
1926
  const filteredFlows = filterFlows(
1865
1927
  loadedFlows.map((l) => l.flow),
1866
- { tags: input.tags, grep: input.grep, platforms: input.platforms }
1928
+ {
1929
+ tags: input.tags,
1930
+ grep: input.grep,
1931
+ grepInvert: input.grepInvert,
1932
+ platforms: input.platforms
1933
+ }
1867
1934
  );
1868
1935
  const allowedFlows = new Set(focusFlows(filteredFlows));
1869
1936
  let filteredLoadedFlows = loadedFlows.filter((l) => allowedFlows.has(l.flow));
@@ -1874,7 +1941,7 @@ async function discoverAndFilterFlows(input) {
1874
1941
  );
1875
1942
  }
1876
1943
  if (input.changedSince && input.filters && input.filters.length > 0 && filteredLoadedFlows.length > 0) {
1877
- const { applyTestFilters, buildFilterCandidates, collectGitChanges, formatFilterSummary } = await import("./filters-MQG2RMPX.js");
1944
+ const { applyTestFilters, buildFilterCandidates, collectGitChanges, formatFilterSummary } = await import("./filters-5DCGGJRN.js");
1878
1945
  try {
1879
1946
  const cwd = process.cwd();
1880
1947
  const changes = collectGitChanges(input.changedSince, cwd);
@@ -1934,7 +2001,7 @@ async function discoverAndFilterFlows(input) {
1934
2001
  const selectedFlows = selectedLoadedFlows.map((l) => l.flow);
1935
2002
  if (filteredLoadedFlows.length === 0) {
1936
2003
  console.log("No flows match the given filters.");
1937
- return { ok: false, success: true, watchRoots };
2004
+ return { ok: false, success: Boolean(input.passWithNoTests), watchRoots };
1938
2005
  }
1939
2006
  if (selectedFlows.length === 0) {
1940
2007
  console.log(`No flows assigned to shard ${input.shard.current}/${input.shard.total}.`);
@@ -1985,7 +2052,7 @@ ${redacted.error.stack.split("\n").map((l) => ` ${l}`).join("\n")}`
1985
2052
  };
1986
2053
  }
1987
2054
  async function reportToCloudProvider(runtimes, appiumUrl, result, platforms) {
1988
- const { detectProvider: detectProvider2 } = await import("./provider-YIPU5K42.js");
2055
+ const { detectProvider: detectProvider2 } = await import("./provider-CBAXZ2VA.js");
1989
2056
  for (const rt of runtimes) {
1990
2057
  if (rt.metadata.mode === "appium" && rt.metadata.provider) {
1991
2058
  const provider = detectProvider2(appiumUrl);
@@ -2024,16 +2091,30 @@ async function runTestCommandOnce(opts) {
2024
2091
  return { success: false, watchRoots: [] };
2025
2092
  }
2026
2093
  const webServers = await startWebServers(config.webServer, { cwd: configDir });
2094
+ const projReporterNames = opts.reporter?.trim() ? opts.reporter : config.reporters && config.reporters.length > 0 ? config.reporters.join(",") : "console";
2095
+ const { redactor: projRedactor, reporters: projReporters } = await setupReporters(
2096
+ projReporterNames,
2097
+ config,
2098
+ resolveFromConfig,
2099
+ opts.appiumUrl,
2100
+ opts
2101
+ );
2102
+ const allProjectResults = [];
2103
+ const allProjectPlatforms = /* @__PURE__ */ new Set();
2104
+ const projectsStart = Date.now();
2027
2105
  let allPassed = true;
2028
2106
  try {
2029
2107
  const executeProject = async (project) => {
2030
2108
  const projFlowDir = opts.flowPath ?? resolveFromConfig(project.flowDir ?? config.flowDir ?? "./flows");
2031
2109
  const projPlatforms = opts.platforms.length > 0 ? opts.platforms : project.platform ? [project.platform] : config.platforms && config.platforms.length > 0 ? config.platforms : ["web"];
2110
+ for (const p of projPlatforms) allProjectPlatforms.add(p);
2032
2111
  const discovered = await discoverAndFilterFlows({
2033
2112
  flowDir: projFlowDir,
2034
2113
  configPath,
2035
2114
  tags: opts.tags ?? project.tags,
2036
2115
  grep: opts.grep ?? project.grep,
2116
+ grepInvert: opts.grepInvert,
2117
+ passWithNoTests: opts.passWithNoTests ?? true,
2037
2118
  platforms: projPlatforms,
2038
2119
  outputDir: config.artifacts?.outputDir ?? resolveFromConfig("./spana-output")
2039
2120
  });
@@ -2068,8 +2149,17 @@ async function runTestCommandOnce(opts) {
2068
2149
  }
2069
2150
  };
2070
2151
  const runtimes2 = [];
2152
+ const useParallelWorkers = Boolean(
2153
+ opts.parallel || opts.devices || opts.workers && opts.workers > 1 || projConfig.defaults?.workers && projConfig.defaults.workers > 1
2154
+ );
2071
2155
  try {
2072
- const platformConfigs2 = await buildSerialPlatformConfigs(
2156
+ const platformConfigs2 = executionMode === "local" && useParallelWorkers ? await buildParallelPlatformConfigs(
2157
+ projPlatforms,
2158
+ opts,
2159
+ projConfig,
2160
+ runtimes2,
2161
+ resolveFromConfig
2162
+ ) : await buildSerialPlatformConfigs(
2073
2163
  projPlatforms,
2074
2164
  opts,
2075
2165
  projConfig,
@@ -2081,10 +2171,31 @@ async function runTestCommandOnce(opts) {
2081
2171
  null,
2082
2172
  resolveFromConfig
2083
2173
  );
2174
+ const redactProjResult = (r) => {
2175
+ if (!r.error) return r;
2176
+ return {
2177
+ ...r,
2178
+ error: {
2179
+ ...r.error,
2180
+ message: projRedactor.redact(r.error.message),
2181
+ stack: r.error.stack ? projRedactor.redact(r.error.stack) : void 0,
2182
+ suggestion: r.error.suggestion ? projRedactor.redact(r.error.suggestion) : void 0
2183
+ }
2184
+ };
2185
+ };
2186
+ const onResult = createResultHandler(projReporters, redactProjResult, projRedactor, opts);
2084
2187
  const orchResult = await orchestrate(matched, platformConfigs2, {
2085
2188
  retries: opts.retries ?? projConfig.defaults?.retries ?? 0,
2086
- bail: opts.bail
2189
+ bail: opts.bail,
2190
+ parallelPlatforms: useParallelWorkers || projConfig.parallelPlatforms,
2191
+ onFlowStart(name, platform, workerName) {
2192
+ for (const reporter of projReporters) {
2193
+ reporter.onFlowStart?.(name, platform, workerName);
2194
+ }
2195
+ },
2196
+ onResult
2087
2197
  });
2198
+ allProjectResults.push(...orchResult.results.map(redactProjResult));
2088
2199
  console.log(
2089
2200
  `[project:${project.name}] ${orchResult.passed} passed, ${orchResult.failed} failed, ${orchResult.skipped} skipped`
2090
2201
  );
@@ -2107,6 +2218,18 @@ async function runTestCommandOnce(opts) {
2107
2218
  const tdOk = await executeProject(td);
2108
2219
  if (!tdOk) allPassed = false;
2109
2220
  }
2221
+ for (const reporter of projReporters) {
2222
+ reporter.onRunComplete({
2223
+ total: allProjectResults.length,
2224
+ passed: allProjectResults.filter((r) => r.status === "passed").length,
2225
+ failed: allProjectResults.filter((r) => r.status === "failed").length,
2226
+ skipped: allProjectResults.filter((r) => r.status === "skipped").length,
2227
+ flaky: allProjectResults.filter((r) => r.flaky).length,
2228
+ durationMs: Date.now() - projectsStart,
2229
+ results: allProjectResults,
2230
+ platforms: [...allProjectPlatforms]
2231
+ });
2232
+ }
2110
2233
  } finally {
2111
2234
  await webServers.stopAll();
2112
2235
  }
@@ -2123,6 +2246,8 @@ async function runTestCommandOnce(opts) {
2123
2246
  configPath,
2124
2247
  tags: opts.tags,
2125
2248
  grep: opts.grep,
2249
+ grepInvert: opts.grepInvert,
2250
+ passWithNoTests: opts.passWithNoTests,
2126
2251
  platforms,
2127
2252
  shard: opts.shard,
2128
2253
  lastFailed: opts.lastFailed,
@@ -2183,6 +2308,8 @@ async function runTestCommandOnce(opts) {
2183
2308
  configPath,
2184
2309
  tags: opts.tags,
2185
2310
  grep: opts.grep,
2311
+ grepInvert: opts.grepInvert,
2312
+ passWithNoTests: opts.passWithNoTests,
2186
2313
  platforms,
2187
2314
  lastFailed: opts.lastFailed,
2188
2315
  changed: opts.changed,
@@ -2219,6 +2346,11 @@ async function runTestCommandOnce(opts) {
2219
2346
  const queueServer = await startSharedFlowQueueServer(orderedFlows.map((f) => f.name));
2220
2347
  const runTag = `${Date.now()}-${Math.floor(Math.random() * 1e4)}`;
2221
2348
  const baseWarmScope = config.execution?.web?.warmBrowserScope ?? `mp-${runTag}`;
2349
+ const shardOutDirs = [];
2350
+ let workerIndexOffsetCursor = 0;
2351
+ if (config.hooks?.beforeAll) {
2352
+ await config.hooks.beforeAll({ app: void 0, platform: platforms[0] });
2353
+ }
2222
2354
  try {
2223
2355
  const poolResult = await runMultiProcessPool({
2224
2356
  totalWorkers: requestedWorkers,
@@ -2226,6 +2358,10 @@ async function runTestCommandOnce(opts) {
2226
2358
  processes: effectivePlan.processCount,
2227
2359
  buildShardCommand: (shardIndex, _shardTotal, workerCount) => {
2228
2360
  const shardOutDir = join2(tmpdir(), `spana-mp-${runTag}-p${shardIndex}`);
2361
+ const reportPath = join2(shardOutDir, "results.json");
2362
+ const myOffset = workerIndexOffsetCursor;
2363
+ workerIndexOffsetCursor += workerCount;
2364
+ shardOutDirs.push(shardOutDir);
2229
2365
  const args = [
2230
2366
  process.argv[1],
2231
2367
  "test",
@@ -2236,13 +2372,17 @@ async function runTestCommandOnce(opts) {
2236
2372
  String(workerCount),
2237
2373
  "--reporter",
2238
2374
  "json",
2375
+ "--pass-with-no-tests",
2239
2376
  ...opts.browser ? ["--browser", opts.browser] : [],
2240
2377
  ...opts.configPath ? ["--config", opts.configPath] : [],
2241
2378
  ...opts.tags?.flatMap((t) => ["--tag", t]) ?? [],
2242
2379
  ...opts.grep ? ["--grep", opts.grep] : [],
2380
+ ...opts.grepInvert ? ["--grep-invert", opts.grepInvert] : [],
2243
2381
  ...opts.changedSince ? ["--changed-since", opts.changedSince] : [],
2244
2382
  ...opts.retries !== void 0 ? ["--retries", String(opts.retries)] : [],
2245
2383
  ...opts.jsCoverage ? ["--js-coverage"] : [],
2384
+ ...opts.trace ? ["--trace"] : [],
2385
+ ...opts.headed ? ["--headed"] : [],
2246
2386
  ...opts.bail !== void 0 ? ["--bail", String(opts.bail)] : []
2247
2387
  ];
2248
2388
  return {
@@ -2252,13 +2392,56 @@ async function runTestCommandOnce(opts) {
2252
2392
  SPANA_WORKER_PROCESS: "1",
2253
2393
  SPANA_QUEUE_URL: queueServer.url,
2254
2394
  SPANA_OUTPUT_DIR: shardOutDir,
2395
+ SPANA_WORKER_REPORT_PATH: reportPath,
2396
+ SPANA_WORKER_INDEX_OFFSET: String(myOffset),
2255
2397
  SPANA_WARM_SCOPE: `${baseWarmScope}-p${shardIndex}`
2256
2398
  },
2257
- reportJsonPath: join2(shardOutDir, "results.json")
2399
+ reportJsonPath: reportPath
2258
2400
  };
2259
2401
  }
2260
2402
  });
2261
- const redactedResults = poolResult.results.map(
2403
+ const {
2404
+ cp,
2405
+ mkdir: mkdirFs,
2406
+ readdir: readdirFs,
2407
+ rm: rmFs
2408
+ } = await import("fs/promises");
2409
+ const pathRewrites = [];
2410
+ await mkdirFs(outputDir, { recursive: true });
2411
+ for (const shardDir of shardOutDirs) {
2412
+ try {
2413
+ const entries = await readdirFs(shardDir);
2414
+ for (const entry of entries) {
2415
+ if (entry === "results.json" || entry === ".spana") continue;
2416
+ const src = join2(shardDir, entry);
2417
+ const dest = join2(outputDir, entry);
2418
+ await cp(src, dest, { recursive: true, force: true });
2419
+ pathRewrites.push([src, dest]);
2420
+ }
2421
+ } catch {
2422
+ } finally {
2423
+ await rmFs(shardDir, { recursive: true, force: true }).catch(() => {
2424
+ });
2425
+ }
2426
+ }
2427
+ const rewriteAttachmentPath = (p) => {
2428
+ for (const [src, dest] of pathRewrites) {
2429
+ if (p === src || p.startsWith(`${src}/`) || p.startsWith(`${src}\\`)) {
2430
+ return dest + p.slice(src.length);
2431
+ }
2432
+ }
2433
+ return p;
2434
+ };
2435
+ const mergedResults = poolResult.results.map((r) => ({
2436
+ ...r,
2437
+ ...r.attachments ? {
2438
+ attachments: r.attachments.map((a) => ({
2439
+ ...a,
2440
+ path: rewriteAttachmentPath(a.path)
2441
+ }))
2442
+ } : {}
2443
+ }));
2444
+ const redactedResults = mergedResults.map(
2262
2445
  (r) => r.error ? {
2263
2446
  ...r,
2264
2447
  error: {
@@ -2281,6 +2464,19 @@ async function runTestCommandOnce(opts) {
2281
2464
  platforms
2282
2465
  });
2283
2466
  }
2467
+ if (config.hooks?.afterAll) {
2468
+ try {
2469
+ await config.hooks.afterAll({
2470
+ app: void 0,
2471
+ platform: platforms[0],
2472
+ summary: { results: redactedResults }
2473
+ });
2474
+ } catch (hookError) {
2475
+ console.warn(
2476
+ `afterAll hook failed: ${hookError instanceof Error ? hookError.message : hookError}`
2477
+ );
2478
+ }
2479
+ }
2284
2480
  const sourcePathsByFlowName = new Map(
2285
2481
  mpFlowResult.selectedLoadedFlows.map((loaded) => [loaded.flow.name, loaded.sourcePath])
2286
2482
  );
@@ -2290,7 +2486,7 @@ async function runTestCommandOnce(opts) {
2290
2486
  buildLastRunState({
2291
2487
  flowDir,
2292
2488
  platforms,
2293
- results: poolResult.results,
2489
+ results: mergedResults,
2294
2490
  sourcePathsByFlowName
2295
2491
  })
2296
2492
  );
@@ -2307,27 +2503,40 @@ async function runTestCommandOnce(opts) {
2307
2503
  }
2308
2504
  }
2309
2505
  const prelaunchedWeb = executionMode === "local" && platforms.includes("web") ? speculativelyPrelaunchWebBrowser(config) : void 0;
2310
- const [flowResult, priorRunState] = await Promise.all([
2311
- discoverAndFilterFlows({
2312
- flowDir,
2313
- configPath,
2314
- tags: opts.tags,
2315
- grep: opts.grep,
2316
- platforms,
2317
- shard: opts.shard,
2318
- lastFailed: opts.lastFailed,
2319
- changed: opts.changed,
2320
- changedSince: opts.changedSince,
2321
- filters: config.filters,
2322
- outputDir
2323
- }),
2324
- readLastRunState(createLastRunStatePath(outputDir))
2325
- ]);
2506
+ const closePrelaunchedWeb = async () => {
2507
+ if (!prelaunchedWeb?.ownsBrowser) return;
2508
+ await prelaunchedWeb.browserPromise.then((b) => b?.close?.()).catch(() => {
2509
+ });
2510
+ await prelaunchedWeb.cdpBrowserPromise?.then((h) => h.close()).catch(() => {
2511
+ });
2512
+ };
2513
+ let flowResult;
2514
+ let priorRunState;
2515
+ try {
2516
+ [flowResult, priorRunState] = await Promise.all([
2517
+ discoverAndFilterFlows({
2518
+ flowDir,
2519
+ configPath,
2520
+ tags: opts.tags,
2521
+ grep: opts.grep,
2522
+ grepInvert: opts.grepInvert,
2523
+ passWithNoTests: opts.passWithNoTests,
2524
+ platforms,
2525
+ shard: opts.shard,
2526
+ lastFailed: opts.lastFailed,
2527
+ changed: opts.changed,
2528
+ changedSince: opts.changedSince,
2529
+ filters: config.filters,
2530
+ outputDir
2531
+ }),
2532
+ readLastRunState(createLastRunStatePath(outputDir))
2533
+ ]);
2534
+ } catch (err) {
2535
+ await closePrelaunchedWeb();
2536
+ throw err;
2537
+ }
2326
2538
  if (!flowResult.ok) {
2327
- if (prelaunchedWeb?.ownsBrowser) {
2328
- await prelaunchedWeb.browserPromise.then((b) => b.close()).catch(() => {
2329
- });
2330
- }
2539
+ await closePrelaunchedWeb();
2331
2540
  return { success: flowResult.success, watchRoots: flowResult.watchRoots };
2332
2541
  }
2333
2542
  const { selectedLoadedFlows, selectedFlows, watchRoots, filterSummaries } = flowResult;
@@ -2368,7 +2577,7 @@ async function runTestCommandOnce(opts) {
2368
2577
  "Appium auto-start is enabled; ignoring --appium-url / SPANA_APPIUM_URL / execution.appium.serverUrl."
2369
2578
  );
2370
2579
  }
2371
- const { startLocalAppium } = await import("./appium-server-66GVUL24.js");
2580
+ const { startLocalAppium } = await import("./appium-server-M6CWWUWF.js");
2372
2581
  const started = await startLocalAppium({
2373
2582
  binary: appiumConfig.autoStartBinary,
2374
2583
  extraArgs: appiumConfig.autoStartArgs,
@@ -2566,4 +2775,4 @@ export {
2566
2775
  loadCustomReporter,
2567
2776
  runTestCommand
2568
2777
  };
2569
- //# sourceMappingURL=test-command-QGIJBRH7.js.map
2778
+ //# sourceMappingURL=test-command-EXPYFDTF.js.map