agentic-qe 3.3.3 → 3.3.4

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 (522) hide show
  1. package/.claude/agents/v3/README.md +100 -0
  2. package/.claude/agents/v3/qe-accessibility-auditor.md +112 -11
  3. package/.claude/agents/v3/qe-bdd-generator.md +40 -0
  4. package/.claude/agents/v3/qe-coverage-specialist.md +39 -0
  5. package/.claude/agents/v3/qe-defect-predictor.md +36 -0
  6. package/.claude/agents/v3/qe-gap-detector.md +39 -0
  7. package/.claude/agents/v3/qe-pattern-learner.md +31 -0
  8. package/.claude/agents/v3/qe-product-factors-assessor.md +34 -0
  9. package/.claude/agents/v3/qe-quality-criteria-recommender.md +32 -0
  10. package/.claude/agents/v3/qe-quality-gate.md +39 -0
  11. package/.claude/agents/v3/qe-requirements-validator.md +37 -0
  12. package/.claude/agents/v3/qe-risk-assessor.md +33 -0
  13. package/.claude/agents/v3/qe-tdd-specialist.md +33 -0
  14. package/.claude/agents/v3/qe-test-architect.md +36 -0
  15. package/.claude/skills/README.md +30 -104
  16. package/.claude/skills/a11y-ally/SKILL.md +1658 -0
  17. package/.claude/skills/qcsd-ideation-swarm/SKILL.md +1750 -0
  18. package/.claude/skills/skills-manifest.json +78 -8
  19. package/README.md +18 -4
  20. package/package.json +1 -1
  21. package/scripts/demo-warmup.sh +45 -0
  22. package/scripts/fetch-content.js +460 -0
  23. package/v3/CHANGELOG.md +101 -0
  24. package/v3/README.md +11 -6
  25. package/v3/assets/agents/v3/README.md +100 -0
  26. package/v3/assets/agents/v3/qe-accessibility-auditor.md +112 -11
  27. package/v3/assets/agents/v3/qe-bdd-generator.md +40 -0
  28. package/v3/assets/agents/v3/qe-coverage-specialist.md +39 -0
  29. package/v3/assets/agents/v3/qe-defect-predictor.md +36 -0
  30. package/v3/assets/agents/v3/qe-gap-detector.md +39 -0
  31. package/v3/assets/agents/v3/qe-pattern-learner.md +31 -0
  32. package/v3/assets/agents/v3/qe-product-factors-assessor.md +34 -0
  33. package/v3/assets/agents/v3/qe-quality-criteria-recommender.md +32 -0
  34. package/v3/assets/agents/v3/qe-quality-gate.md +39 -0
  35. package/v3/assets/agents/v3/qe-requirements-validator.md +37 -0
  36. package/v3/assets/agents/v3/qe-risk-assessor.md +33 -0
  37. package/v3/assets/agents/v3/qe-tdd-specialist.md +33 -0
  38. package/v3/assets/agents/v3/qe-test-architect.md +36 -0
  39. package/v3/assets/hooks/cross-phase-memory.yaml +253 -0
  40. package/v3/assets/skills/a11y-ally/SKILL.md +1658 -0
  41. package/v3/assets/skills/qcsd-ideation-swarm/SKILL.md +1750 -0
  42. package/v3/assets/skills/skills-manifest.json +753 -0
  43. package/v3/dist/adapters/claude-flow/model-router-bridge.d.ts.map +1 -1
  44. package/v3/dist/adapters/claude-flow/model-router-bridge.js +6 -4
  45. package/v3/dist/adapters/claude-flow/model-router-bridge.js.map +1 -1
  46. package/v3/dist/adapters/claude-flow/pretrain-bridge.d.ts.map +1 -1
  47. package/v3/dist/adapters/claude-flow/pretrain-bridge.js +13 -8
  48. package/v3/dist/adapters/claude-flow/pretrain-bridge.js.map +1 -1
  49. package/v3/dist/adapters/claude-flow/trajectory-bridge.d.ts.map +1 -1
  50. package/v3/dist/adapters/claude-flow/trajectory-bridge.js +9 -6
  51. package/v3/dist/adapters/claude-flow/trajectory-bridge.js.map +1 -1
  52. package/v3/dist/benchmarks/performance-benchmarks.d.ts.map +1 -1
  53. package/v3/dist/benchmarks/performance-benchmarks.js +5 -3
  54. package/v3/dist/benchmarks/performance-benchmarks.js.map +1 -1
  55. package/v3/dist/cli/bundle.js +27611 -23175
  56. package/v3/dist/cli/commands/hooks.d.ts.map +1 -1
  57. package/v3/dist/cli/commands/hooks.js +288 -0
  58. package/v3/dist/cli/commands/hooks.js.map +1 -1
  59. package/v3/dist/cli/commands/sync.d.ts.map +1 -1
  60. package/v3/dist/cli/commands/sync.js +0 -6
  61. package/v3/dist/cli/commands/sync.js.map +1 -1
  62. package/v3/dist/cli/handlers/init-handler.d.ts.map +1 -1
  63. package/v3/dist/cli/handlers/init-handler.js +11 -0
  64. package/v3/dist/cli/handlers/init-handler.js.map +1 -1
  65. package/v3/dist/cli/index.js +14 -2
  66. package/v3/dist/cli/index.js.map +1 -1
  67. package/v3/dist/cli/scheduler/persistent-scheduler.d.ts.map +1 -1
  68. package/v3/dist/cli/scheduler/persistent-scheduler.js +3 -2
  69. package/v3/dist/cli/scheduler/persistent-scheduler.js.map +1 -1
  70. package/v3/dist/cli/wizards/test-wizard.d.ts.map +1 -1
  71. package/v3/dist/cli/wizards/test-wizard.js +6 -4
  72. package/v3/dist/cli/wizards/test-wizard.js.map +1 -1
  73. package/v3/dist/coordination/consensus/providers/native-learning-provider.d.ts.map +1 -1
  74. package/v3/dist/coordination/consensus/providers/native-learning-provider.js +10 -8
  75. package/v3/dist/coordination/consensus/providers/native-learning-provider.js.map +1 -1
  76. package/v3/dist/coordination/consensus/providers/ollama-provider.d.ts.map +1 -1
  77. package/v3/dist/coordination/consensus/providers/ollama-provider.js +5 -4
  78. package/v3/dist/coordination/consensus/providers/ollama-provider.js.map +1 -1
  79. package/v3/dist/coordination/consensus/providers/openai-provider.d.ts.map +1 -1
  80. package/v3/dist/coordination/consensus/providers/openai-provider.js +5 -4
  81. package/v3/dist/coordination/consensus/providers/openai-provider.js.map +1 -1
  82. package/v3/dist/coordination/constants.d.ts +198 -0
  83. package/v3/dist/coordination/constants.d.ts.map +1 -0
  84. package/v3/dist/coordination/constants.js +210 -0
  85. package/v3/dist/coordination/constants.js.map +1 -0
  86. package/v3/dist/coordination/mincut/dream-integration.d.ts.map +1 -1
  87. package/v3/dist/coordination/mincut/dream-integration.js +5 -1
  88. package/v3/dist/coordination/mincut/dream-integration.js.map +1 -1
  89. package/v3/dist/coordination/queen-coordinator.d.ts +9 -1
  90. package/v3/dist/coordination/queen-coordinator.d.ts.map +1 -1
  91. package/v3/dist/coordination/queen-coordinator.js +49 -9
  92. package/v3/dist/coordination/queen-coordinator.js.map +1 -1
  93. package/v3/dist/coordination/task-executor.d.ts.map +1 -1
  94. package/v3/dist/coordination/task-executor.js +7 -8
  95. package/v3/dist/coordination/task-executor.js.map +1 -1
  96. package/v3/dist/coordination/workflow-orchestrator.d.ts.map +1 -1
  97. package/v3/dist/coordination/workflow-orchestrator.js +261 -0
  98. package/v3/dist/coordination/workflow-orchestrator.js.map +1 -1
  99. package/v3/dist/domains/chaos-resilience/plugin.d.ts +14 -3
  100. package/v3/dist/domains/chaos-resilience/plugin.d.ts.map +1 -1
  101. package/v3/dist/domains/chaos-resilience/plugin.js +96 -0
  102. package/v3/dist/domains/chaos-resilience/plugin.js.map +1 -1
  103. package/v3/dist/domains/chaos-resilience/services/performance-profiler.d.ts.map +1 -1
  104. package/v3/dist/domains/chaos-resilience/services/performance-profiler.js +12 -8
  105. package/v3/dist/domains/chaos-resilience/services/performance-profiler.js.map +1 -1
  106. package/v3/dist/domains/code-intelligence/plugin.d.ts +13 -3
  107. package/v3/dist/domains/code-intelligence/plugin.d.ts.map +1 -1
  108. package/v3/dist/domains/code-intelligence/plugin.js +85 -0
  109. package/v3/dist/domains/code-intelligence/plugin.js.map +1 -1
  110. package/v3/dist/domains/code-intelligence/services/product-factors-bridge.d.ts.map +1 -1
  111. package/v3/dist/domains/code-intelligence/services/product-factors-bridge.js +3 -2
  112. package/v3/dist/domains/code-intelligence/services/product-factors-bridge.js.map +1 -1
  113. package/v3/dist/domains/constants.d.ts +481 -0
  114. package/v3/dist/domains/constants.d.ts.map +1 -0
  115. package/v3/dist/domains/constants.js +503 -0
  116. package/v3/dist/domains/constants.js.map +1 -0
  117. package/v3/dist/domains/contract-testing/plugin.d.ts +6 -1
  118. package/v3/dist/domains/contract-testing/plugin.d.ts.map +1 -1
  119. package/v3/dist/domains/contract-testing/plugin.js +80 -1
  120. package/v3/dist/domains/contract-testing/plugin.js.map +1 -1
  121. package/v3/dist/domains/contract-testing/services/contract-validator.d.ts.map +1 -1
  122. package/v3/dist/domains/contract-testing/services/contract-validator.js +5 -4
  123. package/v3/dist/domains/contract-testing/services/contract-validator.js.map +1 -1
  124. package/v3/dist/domains/coverage-analysis/services/hnsw-index.d.ts.map +1 -1
  125. package/v3/dist/domains/coverage-analysis/services/hnsw-index.js +1 -0
  126. package/v3/dist/domains/coverage-analysis/services/hnsw-index.js.map +1 -1
  127. package/v3/dist/domains/defect-intelligence/coordinator.d.ts +2 -2
  128. package/v3/dist/domains/defect-intelligence/coordinator.d.ts.map +1 -1
  129. package/v3/dist/domains/defect-intelligence/coordinator.js.map +1 -1
  130. package/v3/dist/domains/defect-intelligence/plugin.d.ts +6 -1
  131. package/v3/dist/domains/defect-intelligence/plugin.d.ts.map +1 -1
  132. package/v3/dist/domains/defect-intelligence/plugin.js +101 -0
  133. package/v3/dist/domains/defect-intelligence/plugin.js.map +1 -1
  134. package/v3/dist/domains/defect-intelligence/services/defect-predictor.d.ts.map +1 -1
  135. package/v3/dist/domains/defect-intelligence/services/defect-predictor.js +3 -2
  136. package/v3/dist/domains/defect-intelligence/services/defect-predictor.js.map +1 -1
  137. package/v3/dist/domains/domain-interface.d.ts.map +1 -1
  138. package/v3/dist/domains/domain-interface.js +24 -9
  139. package/v3/dist/domains/domain-interface.js.map +1 -1
  140. package/v3/dist/domains/learning-optimization/plugin.d.ts +2 -1
  141. package/v3/dist/domains/learning-optimization/plugin.d.ts.map +1 -1
  142. package/v3/dist/domains/learning-optimization/plugin.js +49 -0
  143. package/v3/dist/domains/learning-optimization/plugin.js.map +1 -1
  144. package/v3/dist/domains/quality-assessment/coordinator.d.ts +90 -1
  145. package/v3/dist/domains/quality-assessment/coordinator.d.ts.map +1 -1
  146. package/v3/dist/domains/quality-assessment/coordinator.js +310 -0
  147. package/v3/dist/domains/quality-assessment/coordinator.js.map +1 -1
  148. package/v3/dist/domains/requirements-validation/index.d.ts +1 -0
  149. package/v3/dist/domains/requirements-validation/index.d.ts.map +1 -1
  150. package/v3/dist/domains/requirements-validation/index.js +2 -0
  151. package/v3/dist/domains/requirements-validation/index.js.map +1 -1
  152. package/v3/dist/domains/requirements-validation/plugin.d.ts +13 -1
  153. package/v3/dist/domains/requirements-validation/plugin.d.ts.map +1 -1
  154. package/v3/dist/domains/requirements-validation/plugin.js +94 -0
  155. package/v3/dist/domains/requirements-validation/plugin.js.map +1 -1
  156. package/v3/dist/domains/requirements-validation/qcsd-ideation-plugin.d.ts +245 -0
  157. package/v3/dist/domains/requirements-validation/qcsd-ideation-plugin.d.ts.map +1 -0
  158. package/v3/dist/domains/requirements-validation/qcsd-ideation-plugin.js +1143 -0
  159. package/v3/dist/domains/requirements-validation/qcsd-ideation-plugin.js.map +1 -0
  160. package/v3/dist/domains/requirements-validation/services/product-factors-assessment/code-intelligence/codebase-analyzer.d.ts.map +1 -1
  161. package/v3/dist/domains/requirements-validation/services/product-factors-assessment/code-intelligence/codebase-analyzer.js +3 -2
  162. package/v3/dist/domains/requirements-validation/services/product-factors-assessment/code-intelligence/codebase-analyzer.js.map +1 -1
  163. package/v3/dist/domains/security-compliance/plugin.d.ts +3 -2
  164. package/v3/dist/domains/security-compliance/plugin.d.ts.map +1 -1
  165. package/v3/dist/domains/security-compliance/plugin.js +64 -0
  166. package/v3/dist/domains/security-compliance/plugin.js.map +1 -1
  167. package/v3/dist/domains/security-compliance/services/scanners/dast-auth-testing.d.ts +25 -0
  168. package/v3/dist/domains/security-compliance/services/scanners/dast-auth-testing.d.ts.map +1 -0
  169. package/v3/dist/domains/security-compliance/services/scanners/dast-auth-testing.js +160 -0
  170. package/v3/dist/domains/security-compliance/services/scanners/dast-auth-testing.js.map +1 -0
  171. package/v3/dist/domains/security-compliance/services/scanners/dast-helpers.d.ts +48 -0
  172. package/v3/dist/domains/security-compliance/services/scanners/dast-helpers.d.ts.map +1 -0
  173. package/v3/dist/domains/security-compliance/services/scanners/dast-helpers.js +385 -0
  174. package/v3/dist/domains/security-compliance/services/scanners/dast-helpers.js.map +1 -0
  175. package/v3/dist/domains/security-compliance/services/scanners/dast-injection-testing.d.ts +20 -0
  176. package/v3/dist/domains/security-compliance/services/scanners/dast-injection-testing.d.ts.map +1 -0
  177. package/v3/dist/domains/security-compliance/services/scanners/dast-injection-testing.js +99 -0
  178. package/v3/dist/domains/security-compliance/services/scanners/dast-injection-testing.js.map +1 -0
  179. package/v3/dist/domains/security-compliance/services/scanners/dast-scanner.d.ts +62 -0
  180. package/v3/dist/domains/security-compliance/services/scanners/dast-scanner.d.ts.map +1 -0
  181. package/v3/dist/domains/security-compliance/services/scanners/dast-scanner.js +329 -0
  182. package/v3/dist/domains/security-compliance/services/scanners/dast-scanner.js.map +1 -0
  183. package/v3/dist/domains/security-compliance/services/scanners/dependency-scanner.d.ts +46 -0
  184. package/v3/dist/domains/security-compliance/services/scanners/dependency-scanner.d.ts.map +1 -0
  185. package/v3/dist/domains/security-compliance/services/scanners/dependency-scanner.js +180 -0
  186. package/v3/dist/domains/security-compliance/services/scanners/dependency-scanner.js.map +1 -0
  187. package/v3/dist/domains/security-compliance/services/scanners/index.d.ts +14 -0
  188. package/v3/dist/domains/security-compliance/services/scanners/index.d.ts.map +1 -0
  189. package/v3/dist/domains/security-compliance/services/scanners/index.js +16 -0
  190. package/v3/dist/domains/security-compliance/services/scanners/index.js.map +1 -0
  191. package/v3/dist/domains/security-compliance/services/scanners/sast-scanner.d.ts +92 -0
  192. package/v3/dist/domains/security-compliance/services/scanners/sast-scanner.d.ts.map +1 -0
  193. package/v3/dist/domains/security-compliance/services/scanners/sast-scanner.js +440 -0
  194. package/v3/dist/domains/security-compliance/services/scanners/sast-scanner.js.map +1 -0
  195. package/v3/dist/domains/security-compliance/services/scanners/scanner-orchestrator.d.ts +78 -0
  196. package/v3/dist/domains/security-compliance/services/scanners/scanner-orchestrator.d.ts.map +1 -0
  197. package/v3/dist/domains/security-compliance/services/scanners/scanner-orchestrator.js +179 -0
  198. package/v3/dist/domains/security-compliance/services/scanners/scanner-orchestrator.js.map +1 -0
  199. package/v3/dist/domains/security-compliance/services/scanners/scanner-types.d.ts +91 -0
  200. package/v3/dist/domains/security-compliance/services/scanners/scanner-types.d.ts.map +1 -0
  201. package/v3/dist/domains/security-compliance/services/scanners/scanner-types.js +15 -0
  202. package/v3/dist/domains/security-compliance/services/scanners/scanner-types.js.map +1 -0
  203. package/v3/dist/domains/security-compliance/services/scanners/security-patterns.d.ts +16 -0
  204. package/v3/dist/domains/security-compliance/services/scanners/security-patterns.d.ts.map +1 -0
  205. package/v3/dist/domains/security-compliance/services/scanners/security-patterns.js +507 -0
  206. package/v3/dist/domains/security-compliance/services/scanners/security-patterns.js.map +1 -0
  207. package/v3/dist/domains/security-compliance/services/security-auditor.d.ts.map +1 -1
  208. package/v3/dist/domains/security-compliance/services/security-auditor.js +2 -1
  209. package/v3/dist/domains/security-compliance/services/security-auditor.js.map +1 -1
  210. package/v3/dist/domains/security-compliance/services/security-scanner.d.ts +20 -213
  211. package/v3/dist/domains/security-compliance/services/security-scanner.d.ts.map +1 -1
  212. package/v3/dist/domains/security-compliance/services/security-scanner.js +37 -2013
  213. package/v3/dist/domains/security-compliance/services/security-scanner.js.map +1 -1
  214. package/v3/dist/domains/security-compliance/services/semgrep-integration.d.ts.map +1 -1
  215. package/v3/dist/domains/security-compliance/services/semgrep-integration.js +7 -6
  216. package/v3/dist/domains/security-compliance/services/semgrep-integration.js.map +1 -1
  217. package/v3/dist/domains/test-execution/services/auth-state-manager.d.ts.map +1 -1
  218. package/v3/dist/domains/test-execution/services/auth-state-manager.js +6 -4
  219. package/v3/dist/domains/test-execution/services/auth-state-manager.js.map +1 -1
  220. package/v3/dist/domains/test-execution/services/e2e/assertion-handlers.d.ts +55 -0
  221. package/v3/dist/domains/test-execution/services/e2e/assertion-handlers.d.ts.map +1 -0
  222. package/v3/dist/domains/test-execution/services/e2e/assertion-handlers.js +407 -0
  223. package/v3/dist/domains/test-execution/services/e2e/assertion-handlers.js.map +1 -0
  224. package/v3/dist/domains/test-execution/services/e2e/browser-orchestrator.d.ts +122 -0
  225. package/v3/dist/domains/test-execution/services/e2e/browser-orchestrator.d.ts.map +1 -0
  226. package/v3/dist/domains/test-execution/services/e2e/browser-orchestrator.js +325 -0
  227. package/v3/dist/domains/test-execution/services/e2e/browser-orchestrator.js.map +1 -0
  228. package/v3/dist/domains/test-execution/services/e2e/e2e-coordinator.d.ts +97 -0
  229. package/v3/dist/domains/test-execution/services/e2e/e2e-coordinator.d.ts.map +1 -0
  230. package/v3/dist/domains/test-execution/services/e2e/e2e-coordinator.js +297 -0
  231. package/v3/dist/domains/test-execution/services/e2e/e2e-coordinator.js.map +1 -0
  232. package/v3/dist/domains/test-execution/services/e2e/index.d.ts +22 -0
  233. package/v3/dist/domains/test-execution/services/e2e/index.d.ts.map +1 -0
  234. package/v3/dist/domains/test-execution/services/e2e/index.js +52 -0
  235. package/v3/dist/domains/test-execution/services/e2e/index.js.map +1 -0
  236. package/v3/dist/domains/test-execution/services/e2e/result-collector.d.ts +51 -0
  237. package/v3/dist/domains/test-execution/services/e2e/result-collector.d.ts.map +1 -0
  238. package/v3/dist/domains/test-execution/services/e2e/result-collector.js +133 -0
  239. package/v3/dist/domains/test-execution/services/e2e/result-collector.js.map +1 -0
  240. package/v3/dist/domains/test-execution/services/e2e/step-executors.d.ts +48 -0
  241. package/v3/dist/domains/test-execution/services/e2e/step-executors.d.ts.map +1 -0
  242. package/v3/dist/domains/test-execution/services/e2e/step-executors.js +422 -0
  243. package/v3/dist/domains/test-execution/services/e2e/step-executors.js.map +1 -0
  244. package/v3/dist/domains/test-execution/services/e2e/step-retry-handler.d.ts +49 -0
  245. package/v3/dist/domains/test-execution/services/e2e/step-retry-handler.d.ts.map +1 -0
  246. package/v3/dist/domains/test-execution/services/e2e/step-retry-handler.js +146 -0
  247. package/v3/dist/domains/test-execution/services/e2e/step-retry-handler.js.map +1 -0
  248. package/v3/dist/domains/test-execution/services/e2e/types.d.ts +138 -0
  249. package/v3/dist/domains/test-execution/services/e2e/types.d.ts.map +1 -0
  250. package/v3/dist/domains/test-execution/services/e2e/types.js +65 -0
  251. package/v3/dist/domains/test-execution/services/e2e/types.js.map +1 -0
  252. package/v3/dist/domains/test-execution/services/e2e/wait-condition-handler.d.ts +33 -0
  253. package/v3/dist/domains/test-execution/services/e2e/wait-condition-handler.d.ts.map +1 -0
  254. package/v3/dist/domains/test-execution/services/e2e/wait-condition-handler.js +114 -0
  255. package/v3/dist/domains/test-execution/services/e2e/wait-condition-handler.js.map +1 -0
  256. package/v3/dist/domains/test-execution/services/e2e-runner.d.ts +18 -392
  257. package/v3/dist/domains/test-execution/services/e2e-runner.d.ts.map +1 -1
  258. package/v3/dist/domains/test-execution/services/e2e-runner.js +25 -1757
  259. package/v3/dist/domains/test-execution/services/e2e-runner.js.map +1 -1
  260. package/v3/dist/domains/test-execution/services/flaky-detector.d.ts.map +1 -1
  261. package/v3/dist/domains/test-execution/services/flaky-detector.js +12 -9
  262. package/v3/dist/domains/test-execution/services/flaky-detector.js.map +1 -1
  263. package/v3/dist/domains/test-execution/services/retry-handler.d.ts.map +1 -1
  264. package/v3/dist/domains/test-execution/services/retry-handler.js +7 -5
  265. package/v3/dist/domains/test-execution/services/retry-handler.js.map +1 -1
  266. package/v3/dist/domains/test-execution/services/test-executor.d.ts.map +1 -1
  267. package/v3/dist/domains/test-execution/services/test-executor.js +4 -3
  268. package/v3/dist/domains/test-execution/services/test-executor.js.map +1 -1
  269. package/v3/dist/domains/visual-accessibility/coordinator.d.ts +70 -0
  270. package/v3/dist/domains/visual-accessibility/coordinator.d.ts.map +1 -1
  271. package/v3/dist/domains/visual-accessibility/coordinator.js +172 -0
  272. package/v3/dist/domains/visual-accessibility/coordinator.js.map +1 -1
  273. package/v3/dist/domains/visual-accessibility/plugin.d.ts +2 -1
  274. package/v3/dist/domains/visual-accessibility/plugin.d.ts.map +1 -1
  275. package/v3/dist/domains/visual-accessibility/plugin.js +63 -0
  276. package/v3/dist/domains/visual-accessibility/plugin.js.map +1 -1
  277. package/v3/dist/domains/visual-accessibility/services/accessibility-tester.d.ts.map +1 -1
  278. package/v3/dist/domains/visual-accessibility/services/accessibility-tester.js +3 -2
  279. package/v3/dist/domains/visual-accessibility/services/accessibility-tester.js.map +1 -1
  280. package/v3/dist/domains/visual-accessibility/services/browser-security-scanner.d.ts.map +1 -1
  281. package/v3/dist/domains/visual-accessibility/services/browser-security-scanner.js +22 -12
  282. package/v3/dist/domains/visual-accessibility/services/browser-security-scanner.js.map +1 -1
  283. package/v3/dist/domains/visual-accessibility/services/viewport-capture.d.ts.map +1 -1
  284. package/v3/dist/domains/visual-accessibility/services/viewport-capture.js +3 -2
  285. package/v3/dist/domains/visual-accessibility/services/viewport-capture.js.map +1 -1
  286. package/v3/dist/domains/visual-accessibility/services/visual-regression.d.ts.map +1 -1
  287. package/v3/dist/domains/visual-accessibility/services/visual-regression.js +3 -2
  288. package/v3/dist/domains/visual-accessibility/services/visual-regression.js.map +1 -1
  289. package/v3/dist/hooks/cross-phase-hooks.d.ts +42 -0
  290. package/v3/dist/hooks/cross-phase-hooks.d.ts.map +1 -0
  291. package/v3/dist/hooks/cross-phase-hooks.js +338 -0
  292. package/v3/dist/hooks/cross-phase-hooks.js.map +1 -0
  293. package/v3/dist/hooks/index.d.ts +9 -0
  294. package/v3/dist/hooks/index.d.ts.map +1 -0
  295. package/v3/dist/hooks/index.js +9 -0
  296. package/v3/dist/hooks/index.js.map +1 -0
  297. package/v3/dist/init/agents-installer.d.ts.map +1 -1
  298. package/v3/dist/init/agents-installer.js +6 -4
  299. package/v3/dist/init/agents-installer.js.map +1 -1
  300. package/v3/dist/init/enhancements/claude-flow-adapter.d.ts.map +1 -1
  301. package/v3/dist/init/enhancements/claude-flow-adapter.js +15 -9
  302. package/v3/dist/init/enhancements/claude-flow-adapter.js.map +1 -1
  303. package/v3/dist/init/enhancements/detector.js +6 -4
  304. package/v3/dist/init/enhancements/detector.js.map +1 -1
  305. package/v3/dist/init/init-wizard.d.ts +5 -0
  306. package/v3/dist/init/init-wizard.d.ts.map +1 -1
  307. package/v3/dist/init/init-wizard.js +74 -11
  308. package/v3/dist/init/init-wizard.js.map +1 -1
  309. package/v3/dist/init/migration/data-migrator.d.ts.map +1 -1
  310. package/v3/dist/init/migration/data-migrator.js +6 -4
  311. package/v3/dist/init/migration/data-migrator.js.map +1 -1
  312. package/v3/dist/init/phases/02-analysis.js +2 -2
  313. package/v3/dist/init/phases/02-analysis.js.map +1 -1
  314. package/v3/dist/init/phases/04-database.d.ts.map +1 -1
  315. package/v3/dist/init/phases/04-database.js +0 -1
  316. package/v3/dist/init/phases/04-database.js.map +1 -1
  317. package/v3/dist/init/phases/11-claude-md.d.ts.map +1 -1
  318. package/v3/dist/init/phases/11-claude-md.js +25 -0
  319. package/v3/dist/init/phases/11-claude-md.js.map +1 -1
  320. package/v3/dist/init/phases/12-verification.d.ts.map +1 -1
  321. package/v3/dist/init/phases/12-verification.js +2 -1
  322. package/v3/dist/init/phases/12-verification.js.map +1 -1
  323. package/v3/dist/init/project-analyzer.d.ts.map +1 -1
  324. package/v3/dist/init/project-analyzer.js +12 -8
  325. package/v3/dist/init/project-analyzer.js.map +1 -1
  326. package/v3/dist/init/skills-installer.d.ts.map +1 -1
  327. package/v3/dist/init/skills-installer.js +6 -4
  328. package/v3/dist/init/skills-installer.js.map +1 -1
  329. package/v3/dist/init/token-bootstrap.d.ts.map +1 -1
  330. package/v3/dist/init/token-bootstrap.js +2 -1
  331. package/v3/dist/init/token-bootstrap.js.map +1 -1
  332. package/v3/dist/integrations/agent-booster-wasm/index.d.ts.map +1 -1
  333. package/v3/dist/integrations/agent-booster-wasm/index.js +8 -4
  334. package/v3/dist/integrations/agent-booster-wasm/index.js.map +1 -1
  335. package/v3/dist/integrations/agentic-flow/model-router/signal-collector.d.ts.map +1 -1
  336. package/v3/dist/integrations/agentic-flow/model-router/signal-collector.js +3 -2
  337. package/v3/dist/integrations/agentic-flow/model-router/signal-collector.js.map +1 -1
  338. package/v3/dist/integrations/agentic-flow/reasoning-bank/experience-replay.d.ts.map +1 -1
  339. package/v3/dist/integrations/agentic-flow/reasoning-bank/experience-replay.js.map +1 -1
  340. package/v3/dist/integrations/agentic-flow/reasoning-bank/trajectory-tracker.d.ts.map +1 -1
  341. package/v3/dist/integrations/agentic-flow/reasoning-bank/trajectory-tracker.js.map +1 -1
  342. package/v3/dist/integrations/browser/agent-browser/client.d.ts.map +1 -1
  343. package/v3/dist/integrations/browser/agent-browser/client.js +9 -6
  344. package/v3/dist/integrations/browser/agent-browser/client.js.map +1 -1
  345. package/v3/dist/integrations/browser/agent-browser/command-executor.d.ts.map +1 -1
  346. package/v3/dist/integrations/browser/agent-browser/command-executor.js +3 -2
  347. package/v3/dist/integrations/browser/agent-browser/command-executor.js.map +1 -1
  348. package/v3/dist/integrations/browser/index.d.ts +1 -0
  349. package/v3/dist/integrations/browser/index.d.ts.map +1 -1
  350. package/v3/dist/integrations/browser/index.js +6 -0
  351. package/v3/dist/integrations/browser/index.js.map +1 -1
  352. package/v3/dist/integrations/browser/web-content-fetcher.d.ts +154 -0
  353. package/v3/dist/integrations/browser/web-content-fetcher.d.ts.map +1 -0
  354. package/v3/dist/integrations/browser/web-content-fetcher.js +529 -0
  355. package/v3/dist/integrations/browser/web-content-fetcher.js.map +1 -0
  356. package/v3/dist/integrations/coherence/threshold-tuner.d.ts.map +1 -1
  357. package/v3/dist/integrations/coherence/threshold-tuner.js +3 -2
  358. package/v3/dist/integrations/coherence/threshold-tuner.js.map +1 -1
  359. package/v3/dist/integrations/coherence/wasm-loader.d.ts.map +1 -1
  360. package/v3/dist/integrations/coherence/wasm-loader.js +3 -2
  361. package/v3/dist/integrations/coherence/wasm-loader.js.map +1 -1
  362. package/v3/dist/integrations/n8n/agent-factory.d.ts.map +1 -1
  363. package/v3/dist/integrations/n8n/agent-factory.js +6 -4
  364. package/v3/dist/integrations/n8n/agent-factory.js.map +1 -1
  365. package/v3/dist/integrations/rl-suite/persistence/q-value-store.d.ts.map +1 -1
  366. package/v3/dist/integrations/rl-suite/persistence/q-value-store.js.map +1 -1
  367. package/v3/dist/integrations/ruvector/sona-persistence.d.ts.map +1 -1
  368. package/v3/dist/integrations/ruvector/sona-persistence.js +6 -4
  369. package/v3/dist/integrations/ruvector/sona-persistence.js.map +1 -1
  370. package/v3/dist/integrations/vibium/client.d.ts.map +1 -1
  371. package/v3/dist/integrations/vibium/client.js +3 -2
  372. package/v3/dist/integrations/vibium/client.js.map +1 -1
  373. package/v3/dist/kernel/agent-coordinator.d.ts +1 -1
  374. package/v3/dist/kernel/agent-coordinator.d.ts.map +1 -1
  375. package/v3/dist/kernel/agent-coordinator.js +4 -4
  376. package/v3/dist/kernel/agent-coordinator.js.map +1 -1
  377. package/v3/dist/kernel/constants.d.ts +155 -0
  378. package/v3/dist/kernel/constants.d.ts.map +1 -0
  379. package/v3/dist/kernel/constants.js +169 -0
  380. package/v3/dist/kernel/constants.js.map +1 -0
  381. package/v3/dist/kernel/event-bus.d.ts +8 -0
  382. package/v3/dist/kernel/event-bus.d.ts.map +1 -1
  383. package/v3/dist/kernel/event-bus.js +79 -17
  384. package/v3/dist/kernel/event-bus.js.map +1 -1
  385. package/v3/dist/kernel/hybrid-backend.d.ts.map +1 -1
  386. package/v3/dist/kernel/hybrid-backend.js +4 -3
  387. package/v3/dist/kernel/hybrid-backend.js.map +1 -1
  388. package/v3/dist/kernel/kernel.d.ts.map +1 -1
  389. package/v3/dist/kernel/kernel.js +3 -2
  390. package/v3/dist/kernel/kernel.js.map +1 -1
  391. package/v3/dist/kernel/memory-backend.d.ts.map +1 -1
  392. package/v3/dist/kernel/memory-backend.js +4 -3
  393. package/v3/dist/kernel/memory-backend.js.map +1 -1
  394. package/v3/dist/kernel/unified-memory.d.ts.map +1 -1
  395. package/v3/dist/kernel/unified-memory.js +14 -11
  396. package/v3/dist/kernel/unified-memory.js.map +1 -1
  397. package/v3/dist/kernel/unified-persistence.js +3 -2
  398. package/v3/dist/kernel/unified-persistence.js.map +1 -1
  399. package/v3/dist/learning/aqe-learning-engine.d.ts.map +1 -1
  400. package/v3/dist/learning/aqe-learning-engine.js +12 -8
  401. package/v3/dist/learning/aqe-learning-engine.js.map +1 -1
  402. package/v3/dist/learning/dream/index.d.ts +1 -1
  403. package/v3/dist/learning/dream/index.d.ts.map +1 -1
  404. package/v3/dist/learning/dream/index.js +3 -1
  405. package/v3/dist/learning/dream/index.js.map +1 -1
  406. package/v3/dist/learning/dream/spreading-activation.d.ts +41 -0
  407. package/v3/dist/learning/dream/spreading-activation.d.ts.map +1 -1
  408. package/v3/dist/learning/dream/spreading-activation.js +79 -0
  409. package/v3/dist/learning/dream/spreading-activation.js.map +1 -1
  410. package/v3/dist/learning/pattern-store.d.ts.map +1 -1
  411. package/v3/dist/learning/pattern-store.js +16 -6
  412. package/v3/dist/learning/pattern-store.js.map +1 -1
  413. package/v3/dist/learning/real-embeddings.d.ts.map +1 -1
  414. package/v3/dist/learning/real-embeddings.js +7 -1
  415. package/v3/dist/learning/real-embeddings.js.map +1 -1
  416. package/v3/dist/learning/sqlite-persistence.d.ts +1 -1
  417. package/v3/dist/learning/sqlite-persistence.d.ts.map +1 -1
  418. package/v3/dist/learning/sqlite-persistence.js.map +1 -1
  419. package/v3/dist/logging/console-logger.d.ts +96 -0
  420. package/v3/dist/logging/console-logger.d.ts.map +1 -0
  421. package/v3/dist/logging/console-logger.js +247 -0
  422. package/v3/dist/logging/console-logger.js.map +1 -0
  423. package/v3/dist/logging/index.d.ts +42 -0
  424. package/v3/dist/logging/index.d.ts.map +1 -0
  425. package/v3/dist/logging/index.js +39 -0
  426. package/v3/dist/logging/index.js.map +1 -0
  427. package/v3/dist/logging/logger-factory.d.ts +145 -0
  428. package/v3/dist/logging/logger-factory.d.ts.map +1 -0
  429. package/v3/dist/logging/logger-factory.js +218 -0
  430. package/v3/dist/logging/logger-factory.js.map +1 -0
  431. package/v3/dist/logging/logger.d.ts +89 -0
  432. package/v3/dist/logging/logger.d.ts.map +1 -0
  433. package/v3/dist/logging/logger.js +74 -0
  434. package/v3/dist/logging/logger.js.map +1 -0
  435. package/v3/dist/mcp/bundle.js +11334 -7497
  436. package/v3/dist/mcp/handlers/agent-handlers.js +2 -2
  437. package/v3/dist/mcp/handlers/agent-handlers.js.map +1 -1
  438. package/v3/dist/mcp/handlers/core-handlers.d.ts +2 -0
  439. package/v3/dist/mcp/handlers/core-handlers.d.ts.map +1 -1
  440. package/v3/dist/mcp/handlers/core-handlers.js +33 -0
  441. package/v3/dist/mcp/handlers/core-handlers.js.map +1 -1
  442. package/v3/dist/mcp/handlers/cross-phase-handlers.d.ts +110 -0
  443. package/v3/dist/mcp/handlers/cross-phase-handlers.d.ts.map +1 -0
  444. package/v3/dist/mcp/handlers/cross-phase-handlers.js +216 -0
  445. package/v3/dist/mcp/handlers/cross-phase-handlers.js.map +1 -0
  446. package/v3/dist/mcp/handlers/domain-handler-configs.d.ts +151 -0
  447. package/v3/dist/mcp/handlers/domain-handler-configs.d.ts.map +1 -0
  448. package/v3/dist/mcp/handlers/domain-handler-configs.js +486 -0
  449. package/v3/dist/mcp/handlers/domain-handler-configs.js.map +1 -0
  450. package/v3/dist/mcp/handlers/domain-handlers.d.ts +174 -120
  451. package/v3/dist/mcp/handlers/domain-handlers.d.ts.map +1 -1
  452. package/v3/dist/mcp/handlers/domain-handlers.js +178 -1049
  453. package/v3/dist/mcp/handlers/domain-handlers.js.map +1 -1
  454. package/v3/dist/mcp/handlers/handler-factory.d.ts +182 -0
  455. package/v3/dist/mcp/handlers/handler-factory.d.ts.map +1 -0
  456. package/v3/dist/mcp/handlers/handler-factory.js +327 -0
  457. package/v3/dist/mcp/handlers/handler-factory.js.map +1 -0
  458. package/v3/dist/mcp/handlers/index.d.ts +1 -0
  459. package/v3/dist/mcp/handlers/index.d.ts.map +1 -1
  460. package/v3/dist/mcp/handlers/index.js +2 -0
  461. package/v3/dist/mcp/handlers/index.js.map +1 -1
  462. package/v3/dist/mcp/handlers/task-handlers.d.ts +1 -0
  463. package/v3/dist/mcp/handlers/task-handlers.d.ts.map +1 -1
  464. package/v3/dist/mcp/handlers/task-handlers.js +91 -7
  465. package/v3/dist/mcp/handlers/task-handlers.js.map +1 -1
  466. package/v3/dist/mcp/server.d.ts.map +1 -1
  467. package/v3/dist/mcp/server.js +107 -1
  468. package/v3/dist/mcp/server.js.map +1 -1
  469. package/v3/dist/mcp/types.d.ts +5 -3
  470. package/v3/dist/mcp/types.d.ts.map +1 -1
  471. package/v3/dist/memory/cross-phase-memory.d.ts +55 -0
  472. package/v3/dist/memory/cross-phase-memory.d.ts.map +1 -0
  473. package/v3/dist/memory/cross-phase-memory.js +265 -0
  474. package/v3/dist/memory/cross-phase-memory.js.map +1 -0
  475. package/v3/dist/memory/index.d.ts +9 -0
  476. package/v3/dist/memory/index.d.ts.map +1 -0
  477. package/v3/dist/memory/index.js +9 -0
  478. package/v3/dist/memory/index.js.map +1 -0
  479. package/v3/dist/shared/io/file-reader.d.ts.map +1 -1
  480. package/v3/dist/shared/io/file-reader.js +3 -2
  481. package/v3/dist/shared/io/file-reader.js.map +1 -1
  482. package/v3/dist/shared/utils/binary-insert.d.ts +85 -0
  483. package/v3/dist/shared/utils/binary-insert.d.ts.map +1 -0
  484. package/v3/dist/shared/utils/binary-insert.js +122 -0
  485. package/v3/dist/shared/utils/binary-insert.js.map +1 -0
  486. package/v3/dist/shared/utils/index.d.ts +1 -0
  487. package/v3/dist/shared/utils/index.d.ts.map +1 -1
  488. package/v3/dist/shared/utils/index.js +1 -0
  489. package/v3/dist/shared/utils/index.js.map +1 -1
  490. package/v3/dist/strange-loop/belief-reconciler.d.ts.map +1 -1
  491. package/v3/dist/strange-loop/belief-reconciler.js +3 -2
  492. package/v3/dist/strange-loop/belief-reconciler.js.map +1 -1
  493. package/v3/dist/sync/claude-flow-bridge.d.ts.map +1 -1
  494. package/v3/dist/sync/claude-flow-bridge.js +6 -4
  495. package/v3/dist/sync/claude-flow-bridge.js.map +1 -1
  496. package/v3/dist/sync/cloud/postgres-writer.d.ts.map +1 -1
  497. package/v3/dist/sync/cloud/postgres-writer.js +0 -1
  498. package/v3/dist/sync/cloud/postgres-writer.js.map +1 -1
  499. package/v3/dist/sync/readers/sqlite-reader.d.ts.map +1 -1
  500. package/v3/dist/sync/readers/sqlite-reader.js +3 -2
  501. package/v3/dist/sync/readers/sqlite-reader.js.map +1 -1
  502. package/v3/dist/test-scheduling/flaky-tracking/flaky-tracker.d.ts.map +1 -1
  503. package/v3/dist/test-scheduling/flaky-tracking/flaky-tracker.js +3 -2
  504. package/v3/dist/test-scheduling/flaky-tracking/flaky-tracker.js.map +1 -1
  505. package/v3/dist/test-scheduling/git-aware/test-selector.d.ts.map +1 -1
  506. package/v3/dist/test-scheduling/git-aware/test-selector.js +3 -2
  507. package/v3/dist/test-scheduling/git-aware/test-selector.js.map +1 -1
  508. package/v3/dist/types/cross-phase-signals.d.ts +119 -0
  509. package/v3/dist/types/cross-phase-signals.d.ts.map +1 -0
  510. package/v3/dist/types/cross-phase-signals.js +33 -0
  511. package/v3/dist/types/cross-phase-signals.js.map +1 -0
  512. package/v3/dist/types/index.d.ts +9 -0
  513. package/v3/dist/types/index.d.ts.map +1 -0
  514. package/v3/dist/types/index.js +9 -0
  515. package/v3/dist/types/index.js.map +1 -0
  516. package/v3/dist/workers/worker-manager.d.ts.map +1 -1
  517. package/v3/dist/workers/worker-manager.js +3 -2
  518. package/v3/dist/workers/worker-manager.js.map +1 -1
  519. package/v3/dist/workflows/browser/workflow-loader.d.ts +3 -3
  520. package/v3/dist/workflows/browser/workflow-loader.d.ts.map +1 -1
  521. package/v3/dist/workflows/browser/workflow-loader.js.map +1 -1
  522. package/v3/package.json +4 -1
@@ -0,0 +1,297 @@
1
+ /**
2
+ * Agentic QE v3 - E2E Test Coordinator
3
+ *
4
+ * Main coordinator that orchestrates E2E test execution by composing
5
+ * the modular components: browser orchestrator, step executors,
6
+ * step retry handler, and result collector.
7
+ *
8
+ * @module test-execution/services/e2e/e2e-coordinator
9
+ */
10
+ import { getBrowserClientForUseCase, } from '../../../../integrations/browser';
11
+ import { DEFAULT_E2E_RUNNER_CONFIG } from './types';
12
+ import { createBrowserOrchestrator } from './browser-orchestrator';
13
+ import { createStepExecutors } from './step-executors';
14
+ import { createStepRetryHandler } from './step-retry-handler';
15
+ import { createResultCollector } from './result-collector';
16
+ // ============================================================================
17
+ // E2E Test Runner Service Implementation
18
+ // ============================================================================
19
+ /**
20
+ * E2E Test Runner Service
21
+ *
22
+ * Executes E2E test cases using browser automation clients.
23
+ * Supports both the Vibium browser automation client and the agent-browser CLI tool.
24
+ * Provides step-by-step execution with retry logic, timeout handling,
25
+ * and comprehensive result aggregation.
26
+ *
27
+ * Agent-browser provides enhanced E2E testing capabilities:
28
+ * - Snapshot-based element refs (@e1, @e2) for reliable element selection
29
+ * - Session management for state persistence
30
+ * - Network interception and API mocking
31
+ * - Device emulation for responsive testing
32
+ */
33
+ export class E2ETestRunnerService {
34
+ client;
35
+ config;
36
+ orchestrator;
37
+ stepExecutors;
38
+ retryHandler;
39
+ resultCollector;
40
+ /**
41
+ * Create E2E Test Runner Service
42
+ *
43
+ * @param client - Browser automation client (VibiumClient or IBrowserClient)
44
+ * @param config - Runner configuration
45
+ */
46
+ constructor(client, config = {}) {
47
+ this.client = client;
48
+ this.config = { ...DEFAULT_E2E_RUNNER_CONFIG, ...config };
49
+ // Create logger function
50
+ const logger = (message) => this.log(message);
51
+ // Initialize modular components
52
+ this.orchestrator = createBrowserOrchestrator(client, this.config, logger);
53
+ this.stepExecutors = createStepExecutors(this.config, this.orchestrator, logger);
54
+ this.retryHandler = createStepRetryHandler(this.config, this.stepExecutors, logger);
55
+ this.resultCollector = createResultCollector();
56
+ this.log(`E2E Runner initialized with ${this.orchestrator.isUsingAgentBrowser() ? 'agent-browser' : 'vibium'} client`);
57
+ }
58
+ // ==========================================================================
59
+ // Public Methods
60
+ // ==========================================================================
61
+ /**
62
+ * Execute a single E2E test case
63
+ */
64
+ async runTestCase(testCase) {
65
+ const startedAt = new Date();
66
+ const stepResults = [];
67
+ const screenshots = [];
68
+ const accessibilityResults = [];
69
+ // Check if test should be skipped
70
+ if (testCase.skip) {
71
+ return this.resultCollector.createSkippedResult(testCase, startedAt);
72
+ }
73
+ // Validate required environment variables
74
+ if (testCase.requiredEnvVars?.length) {
75
+ const missingVars = testCase.requiredEnvVars.filter((v) => !process.env[v]);
76
+ if (missingVars.length > 0) {
77
+ return this.resultCollector.createErrorResult(testCase, startedAt, `Missing required environment variables: ${missingVars.join(', ')}`);
78
+ }
79
+ }
80
+ try {
81
+ // Launch browser
82
+ const launchError = await this.orchestrator.ensureBrowserLaunched(testCase);
83
+ if (launchError) {
84
+ return this.resultCollector.createErrorResult(testCase, startedAt, launchError);
85
+ }
86
+ // Create execution context
87
+ const context = {
88
+ testCase,
89
+ baseUrl: testCase.baseUrl,
90
+ variables: testCase.testData ?? {},
91
+ previousResults: stepResults,
92
+ useAgentBrowser: this.orchestrator.isUsingAgentBrowser(),
93
+ };
94
+ // Get initial snapshot for agent-browser
95
+ if (this.orchestrator.isUsingAgentBrowser()) {
96
+ context.currentSnapshot = await this.orchestrator.refreshSnapshot();
97
+ }
98
+ // Execute beforeAll hooks
99
+ if (testCase.hooks?.beforeAll) {
100
+ const hookResults = await this.executeHooks(testCase.hooks.beforeAll, context, 'beforeAll');
101
+ stepResults.push(...hookResults);
102
+ if (this.resultCollector.hasFailure(hookResults) && this.config.stopOnFirstFailure) {
103
+ return this.resultCollector.createResult(testCase, startedAt, stepResults, screenshots, accessibilityResults);
104
+ }
105
+ }
106
+ // Execute test steps
107
+ for (const step of testCase.steps) {
108
+ // Execute beforeEach hooks
109
+ if (testCase.hooks?.beforeEach) {
110
+ const hookResults = await this.executeHooks(testCase.hooks.beforeEach, context, 'beforeEach');
111
+ stepResults.push(...hookResults);
112
+ }
113
+ // Handle delay before step
114
+ if (step.delayBefore && step.delayBefore > 0) {
115
+ await this.delay(step.delayBefore);
116
+ }
117
+ // Execute the step with retry logic
118
+ const stepResult = await this.retryHandler.executeStepWithRetry(step, context);
119
+ stepResults.push(stepResult);
120
+ // Collect screenshots and accessibility results
121
+ if (stepResult.screenshot) {
122
+ screenshots.push(stepResult.screenshot);
123
+ }
124
+ if (stepResult.accessibilityResult) {
125
+ accessibilityResults.push(stepResult.accessibilityResult);
126
+ }
127
+ // Handle delay after step
128
+ if (step.delayAfter && step.delayAfter > 0) {
129
+ await this.delay(step.delayAfter);
130
+ }
131
+ // Execute afterEach hooks
132
+ if (testCase.hooks?.afterEach) {
133
+ const hookResults = await this.executeHooks(testCase.hooks.afterEach, context, 'afterEach');
134
+ stepResults.push(...hookResults);
135
+ }
136
+ // Check for step failure
137
+ if (!stepResult.success) {
138
+ // Execute onFailure hooks
139
+ if (testCase.hooks?.onFailure) {
140
+ const hookResults = await this.executeHooks(testCase.hooks.onFailure, context, 'onFailure');
141
+ stepResults.push(...hookResults);
142
+ }
143
+ // Capture failure screenshot if enabled
144
+ if (this.config.screenshotOnFailure && !stepResult.screenshot) {
145
+ const failureScreenshot = await this.orchestrator.captureFailureScreenshot(step.id);
146
+ if (failureScreenshot) {
147
+ stepResult.error = {
148
+ ...stepResult.error,
149
+ failureScreenshot,
150
+ };
151
+ screenshots.push(failureScreenshot);
152
+ }
153
+ }
154
+ // Stop on first failure if configured and step is required
155
+ if (this.config.stopOnFirstFailure && step.required && !step.continueOnFailure) {
156
+ break;
157
+ }
158
+ }
159
+ }
160
+ // Execute afterAll hooks
161
+ if (testCase.hooks?.afterAll) {
162
+ const hookResults = await this.executeHooks(testCase.hooks.afterAll, context, 'afterAll');
163
+ stepResults.push(...hookResults);
164
+ }
165
+ return this.resultCollector.createResult(testCase, startedAt, stepResults, screenshots, accessibilityResults);
166
+ }
167
+ catch (error) {
168
+ const errorMessage = error instanceof Error ? error.message : String(error);
169
+ return this.resultCollector.createErrorResult(testCase, startedAt, errorMessage, stepResults);
170
+ }
171
+ }
172
+ /**
173
+ * Execute an E2E test suite
174
+ */
175
+ async runTestSuite(suite, strategy = suite.parallel ? 'parallel' : 'sequential') {
176
+ const startedAt = new Date();
177
+ const testResults = [];
178
+ // Filter test cases (handle 'only' flag)
179
+ const onlyTests = suite.testCases.filter((tc) => tc.only);
180
+ const testsToRun = onlyTests.length > 0 ? onlyTests : suite.testCases;
181
+ if (strategy === 'parallel') {
182
+ const results = await this.executeInParallel(testsToRun, suite.maxWorkers);
183
+ testResults.push(...results);
184
+ }
185
+ else {
186
+ for (const testCase of testsToRun) {
187
+ const result = await this.runTestCase(testCase);
188
+ testResults.push(result);
189
+ }
190
+ }
191
+ return this.resultCollector.createSuiteResult(suite.id, suite.name, testResults, startedAt);
192
+ }
193
+ // ==========================================================================
194
+ // Private Methods
195
+ // ==========================================================================
196
+ /**
197
+ * Execute hook steps
198
+ */
199
+ async executeHooks(hooks, context, hookType) {
200
+ const results = [];
201
+ for (const hook of hooks) {
202
+ this.log(`Executing ${hookType} hook: ${hook.id}`);
203
+ const result = await this.retryHandler.executeStepWithRetry(hook, context);
204
+ results.push(result);
205
+ if (!result.success && hook.required) {
206
+ this.log(`${hookType} hook "${hook.id}" failed`);
207
+ break;
208
+ }
209
+ }
210
+ return results;
211
+ }
212
+ /**
213
+ * Execute tests in parallel with limited concurrency
214
+ */
215
+ async executeInParallel(testCases, maxWorkers) {
216
+ const workers = maxWorkers ?? this.config.maxParallelWorkers;
217
+ const results = [];
218
+ const queue = [...testCases];
219
+ const executeNext = async () => {
220
+ while (queue.length > 0) {
221
+ const testCase = queue.shift();
222
+ if (testCase) {
223
+ const result = await this.runTestCase(testCase);
224
+ results.push(result);
225
+ }
226
+ }
227
+ };
228
+ const workerPromises = [];
229
+ for (let i = 0; i < Math.min(workers, testCases.length); i++) {
230
+ workerPromises.push(executeNext());
231
+ }
232
+ await Promise.all(workerPromises);
233
+ return results;
234
+ }
235
+ /**
236
+ * Delay execution
237
+ */
238
+ delay(ms) {
239
+ return new Promise((resolve) => setTimeout(resolve, ms));
240
+ }
241
+ /**
242
+ * Log message if verbose mode is enabled
243
+ */
244
+ log(message) {
245
+ if (this.config.verbose) {
246
+ console.log(`[E2ERunner] ${message}`);
247
+ }
248
+ }
249
+ }
250
+ // ============================================================================
251
+ // Factory Functions
252
+ // ============================================================================
253
+ /**
254
+ * Create an E2E Test Runner Service instance with a VibiumClient (legacy)
255
+ *
256
+ * @param client - Vibium browser automation client
257
+ * @param config - Optional runner configuration
258
+ * @returns E2E Test Runner Service instance
259
+ */
260
+ export function createE2ETestRunnerService(client, config) {
261
+ return new E2ETestRunnerService(client, config);
262
+ }
263
+ /**
264
+ * Create an E2E Test Runner Service instance with a browser client
265
+ *
266
+ * This factory supports the unified IBrowserClient interface, including
267
+ * agent-browser with its enhanced E2E testing capabilities.
268
+ *
269
+ * @param client - Browser client (IBrowserClient or IAgentBrowserClient)
270
+ * @param config - Optional runner configuration
271
+ * @returns E2E Test Runner Service instance
272
+ */
273
+ export function createE2ETestRunnerServiceWithBrowserClient(client, config) {
274
+ return new E2ETestRunnerService(client, {
275
+ ...config,
276
+ browserClient: client,
277
+ });
278
+ }
279
+ /**
280
+ * Create an E2E Test Runner Service with auto-selected browser client
281
+ *
282
+ * This factory automatically selects the best available browser client:
283
+ * - Prefers agent-browser for E2E testing (supports refs, sessions, mocking)
284
+ * - Falls back to Vibium if agent-browser is unavailable
285
+ *
286
+ * @param config - Optional runner configuration
287
+ * @returns Promise resolving to E2E Test Runner Service instance
288
+ */
289
+ export async function createAutoE2ETestRunnerService(config) {
290
+ const client = await getBrowserClientForUseCase('e2e-testing');
291
+ return new E2ETestRunnerService(client, {
292
+ ...config,
293
+ browserClient: client,
294
+ preferAgentBrowser: true,
295
+ });
296
+ }
297
+ //# sourceMappingURL=e2e-coordinator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"e2e-coordinator.js","sourceRoot":"","sources":["../../../../../src/domains/test-execution/services/e2e/e2e-coordinator.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,EACL,0BAA0B,GAC3B,MAAM,kCAAkC,CAAC;AAe1C,OAAO,EAAE,yBAAy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}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Agentic QE v3 - E2E Runner Module
3
+ *
4
+ * Modular E2E test runner composed of:
5
+ * - types.ts: Configuration, interfaces, errors
6
+ * - browser-orchestrator.ts: Browser client management
7
+ * - step-executors.ts: Individual step execution
8
+ * - step-retry-handler.ts: Retry logic and timeout handling
9
+ * - result-collector.ts: Result aggregation
10
+ * - e2e-coordinator.ts: Main service orchestration
11
+ *
12
+ * @module test-execution/services/e2e
13
+ */
14
+ export { type E2ERunnerConfig, type BrowserClientType, type ExecutionStrategy, DEFAULT_E2E_RUNNER_CONFIG, type StepExecutionContext, type StepExecutionData, type UnifiedBrowserClient, E2ERunnerError, StepTimeoutError, AssertionError, type IE2ETestRunnerService, } from './types';
15
+ export { BrowserOrchestrator, createBrowserOrchestrator, isAgentBrowserClient, isVibiumClient, toElementTarget, toVibiumScreenshotResult, toVibiumAccessibilityResult, } from './browser-orchestrator';
16
+ export { StepExecutors, createStepExecutors, } from './step-executors';
17
+ export { AssertionHandlers, createAssertionHandlers, } from './assertion-handlers';
18
+ export { WaitConditionHandler, createWaitConditionHandler, } from './wait-condition-handler';
19
+ export { StepRetryHandler, createStepRetryHandler, } from './step-retry-handler';
20
+ export { ResultCollector, createResultCollector, } from './result-collector';
21
+ export { E2ETestRunnerService, createE2ETestRunnerService, createE2ETestRunnerServiceWithBrowserClient, createAutoE2ETestRunnerService, } from './e2e-coordinator';
22
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/domains/test-execution/services/e2e/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAMH,OAAO,EAEL,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,yBAAyB,EAGzB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EAGzB,cAAc,EACd,gBAAgB,EAChB,cAAc,EAGd,KAAK,qBAAqB,GAC3B,MAAM,SAAS,CAAC;AAMjB,OAAO,EACL,mBAAmB,EACnB,yBAAyB,EAGzB,oBAAoB,EACpB,cAAc,EAGd,eAAe,EACf,wBAAwB,EACxB,2BAA2B,GAC5B,MAAM,wBAAwB,CAAC;AAMhC,OAAO,EACL,aAAa,EACb,mBAAmB,GACpB,MAAM,kBAAkB,CAAC;AAM1B,OAAO,EACL,iBAAiB,EACjB,uBAAuB,GACxB,MAAM,sBAAsB,CAAC;AAM9B,OAAO,EACL,oBAAoB,EACpB,0BAA0B,GAC3B,MAAM,0BAA0B,CAAC;AAMlC,OAAO,EACL,gBAAgB,EAChB,sBAAsB,GACvB,MAAM,sBAAsB,CAAC;AAM9B,OAAO,EACL,eAAe,EACf,qBAAqB,GACtB,MAAM,oBAAoB,CAAC;AAM5B,OAAO,EACL,oBAAoB,EACpB,0BAA0B,EAC1B,2CAA2C,EAC3C,8BAA8B,GAC/B,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Agentic QE v3 - E2E Runner Module
3
+ *
4
+ * Modular E2E test runner composed of:
5
+ * - types.ts: Configuration, interfaces, errors
6
+ * - browser-orchestrator.ts: Browser client management
7
+ * - step-executors.ts: Individual step execution
8
+ * - step-retry-handler.ts: Retry logic and timeout handling
9
+ * - result-collector.ts: Result aggregation
10
+ * - e2e-coordinator.ts: Main service orchestration
11
+ *
12
+ * @module test-execution/services/e2e
13
+ */
14
+ // ============================================================================
15
+ // Types and Configuration
16
+ // ============================================================================
17
+ export { DEFAULT_E2E_RUNNER_CONFIG,
18
+ // Error classes
19
+ E2ERunnerError, StepTimeoutError, AssertionError, } from './types';
20
+ // ============================================================================
21
+ // Browser Orchestrator
22
+ // ============================================================================
23
+ export { BrowserOrchestrator, createBrowserOrchestrator,
24
+ // Type guards
25
+ isAgentBrowserClient, isVibiumClient,
26
+ // Utilities
27
+ toElementTarget, toVibiumScreenshotResult, toVibiumAccessibilityResult, } from './browser-orchestrator';
28
+ // ============================================================================
29
+ // Step Executors
30
+ // ============================================================================
31
+ export { StepExecutors, createStepExecutors, } from './step-executors';
32
+ // ============================================================================
33
+ // Assertion Handlers
34
+ // ============================================================================
35
+ export { AssertionHandlers, createAssertionHandlers, } from './assertion-handlers';
36
+ // ============================================================================
37
+ // Wait Condition Handler
38
+ // ============================================================================
39
+ export { WaitConditionHandler, createWaitConditionHandler, } from './wait-condition-handler';
40
+ // ============================================================================
41
+ // Step Retry Handler
42
+ // ============================================================================
43
+ export { StepRetryHandler, createStepRetryHandler, } from './step-retry-handler';
44
+ // ============================================================================
45
+ // Result Collector
46
+ // ============================================================================
47
+ export { ResultCollector, createResultCollector, } from './result-collector';
48
+ // ============================================================================
49
+ // E2E Coordinator (Main Service)
50
+ // ============================================================================
51
+ export { E2ETestRunnerService, createE2ETestRunnerService, createE2ETestRunnerServiceWithBrowserClient, createAutoE2ETestRunnerService, } from './e2e-coordinator';
52
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/domains/test-execution/services/e2e/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,+EAA+E;AAC/E,0BAA0B;AAC1B,+EAA+E;AAE/E,OAAO,EAKL,yBAAyB;AAOzB,gBAAgB;AAChB,cAAc,EACd,gBAAgB,EAChB,cAAc,GAIf,MAAM,SAAS,CAAC;AAEjB,+EAA+E;AAC/E,uBAAuB;AACvB,+EAA+E;AAE/E,OAAO,EACL,mBAAmB,EACnB,yBAAyB;AAEzB,cAAc;AACd,oBAAoB,EACpB,cAAc;AAEd,YAAY;AACZ,eAAe,EACf,wBAAwB,EACxB,2BAA2B,GAC5B,MAAM,wBAAwB,CAAC;AAEhC,+EAA+E;AAC/E,iBAAiB;AACjB,+EAA+E;AAE/E,OAAO,EACL,aAAa,EACb,mBAAmB,GACpB,MAAM,kBAAkB,CAAC;AAE1B,+EAA+E;AAC/E,qBAAqB;AACrB,+EAA+E;AAE/E,OAAO,EACL,iBAAiB,EACjB,uBAAuB,GACxB,MAAM,sBAAsB,CAAC;AAE9B,+EAA+E;AAC/E,yBAAyB;AACzB,+EAA+E;AAE/E,OAAO,EACL,oBAAoB,EACpB,0BAA0B,GAC3B,MAAM,0BAA0B,CAAC;AAElC,+EAA+E;AAC/E,qBAAqB;AACrB,+EAA+E;AAE/E,OAAO,EACL,gBAAgB,EAChB,sBAAsB,GACvB,MAAM,sBAAsB,CAAC;AAE9B,+EAA+E;AAC/E,mBAAmB;AACnB,+EAA+E;AAE/E,OAAO,EACL,eAAe,EACf,qBAAqB,GACtB,MAAM,oBAAoB,CAAC;AAE5B,+EAA+E;AAC/E,iCAAiC;AACjC,+EAA+E;AAE/E,OAAO,EACL,oBAAoB,EACpB,0BAA0B,EAC1B,2CAA2C,EAC3C,8BAA8B,GAC/B,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,51 @@
1
+ /**
2
+ * Agentic QE v3 - Result Collector
3
+ *
4
+ * Collects, aggregates, and creates test results from step executions.
5
+ * Handles result creation for passed, failed, skipped, and error states.
6
+ *
7
+ * @module test-execution/services/e2e/result-collector
8
+ */
9
+ import type { ScreenshotResult, AccessibilityResult } from '../../../../integrations/vibium';
10
+ import type { E2EStepResult, E2ETestCase, E2ETestResult, E2ETestSuiteResult } from '../../types';
11
+ /**
12
+ * Result Collector
13
+ *
14
+ * Handles the creation and aggregation of test results.
15
+ */
16
+ export declare class ResultCollector {
17
+ /**
18
+ * Create a skipped test result
19
+ */
20
+ createSkippedResult(testCase: E2ETestCase, startedAt: Date): E2ETestResult;
21
+ /**
22
+ * Create an error test result
23
+ */
24
+ createErrorResult(testCase: E2ETestCase, startedAt: Date, errorMessage: string, stepResults?: E2EStepResult[]): E2ETestResult;
25
+ /**
26
+ * Create test result from step results
27
+ */
28
+ createResult(testCase: E2ETestCase, startedAt: Date, stepResults: E2EStepResult[], screenshots: ScreenshotResult[], accessibilityResults: AccessibilityResult[]): E2ETestResult;
29
+ /**
30
+ * Check if any results have failures
31
+ */
32
+ hasFailure(results: E2EStepResult[]): boolean;
33
+ /**
34
+ * Calculate summary statistics from test results
35
+ */
36
+ calculateSummary(results: E2ETestResult[]): {
37
+ total: number;
38
+ passed: number;
39
+ failed: number;
40
+ skipped: number;
41
+ };
42
+ /**
43
+ * Create suite result from test results
44
+ */
45
+ createSuiteResult(suiteId: string, suiteName: string, testResults: E2ETestResult[], startedAt: Date): E2ETestSuiteResult;
46
+ }
47
+ /**
48
+ * Create result collector instance
49
+ */
50
+ export declare function createResultCollector(): ResultCollector;
51
+ //# sourceMappingURL=result-collector.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"result-collector.d.ts","sourceRoot":"","sources":["../../../../../src/domains/test-execution/services/e2e/result-collector.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAC7F,OAAO,KAAK,EACV,aAAa,EACb,WAAW,EACX,aAAa,EACb,kBAAkB,EACnB,MAAM,aAAa,CAAC;AAMrB;;;;GAIG;AACH,qBAAa,eAAe;IAC1B;;OAEG;IACH,mBAAmB,CAAC,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE,IAAI,GAAG,aAAa;IAa1E;;OAEG;IACH,iBAAiB,CACf,QAAQ,EAAE,WAAW,EACrB,SAAS,EAAE,IAAI,EACf,YAAY,EAAE,MAAM,EACpB,WAAW,GAAE,aAAa,EAAO,GAChC,aAAa;IAiBhB;;OAEG;IACH,YAAY,CACV,QAAQ,EAAE,WAAW,EACrB,SAAS,EAAE,IAAI,EACf,WAAW,EAAE,aAAa,EAAE,EAC5B,WAAW,EAAE,gBAAgB,EAAE,EAC/B,oBAAoB,EAAE,mBAAmB,EAAE,GAC1C,aAAa;IA0ChB;;OAEG;IACH,UAAU,CAAC,OAAO,EAAE,aAAa,EAAE,GAAG,OAAO;IAI7C;;OAEG;IACH,gBAAgB,CAAC,OAAO,EAAE,aAAa,EAAE,GAAG;QAC1C,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,MAAM,CAAC;QACf,OAAO,EAAE,MAAM,CAAC;KACjB;IASD;;OAEG;IACH,iBAAiB,CACf,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,aAAa,EAAE,EAC5B,SAAS,EAAE,IAAI,GACd,kBAAkB;CAiBtB;AAED;;GAEG;AACH,wBAAgB,qBAAqB,IAAI,eAAe,CAEvD"}
@@ -0,0 +1,133 @@
1
+ /**
2
+ * Agentic QE v3 - Result Collector
3
+ *
4
+ * Collects, aggregates, and creates test results from step executions.
5
+ * Handles result creation for passed, failed, skipped, and error states.
6
+ *
7
+ * @module test-execution/services/e2e/result-collector
8
+ */
9
+ // ============================================================================
10
+ // Result Collector Class
11
+ // ============================================================================
12
+ /**
13
+ * Result Collector
14
+ *
15
+ * Handles the creation and aggregation of test results.
16
+ */
17
+ export class ResultCollector {
18
+ /**
19
+ * Create a skipped test result
20
+ */
21
+ createSkippedResult(testCase, startedAt) {
22
+ return {
23
+ testCaseId: testCase.id,
24
+ testCaseName: testCase.name,
25
+ success: true,
26
+ status: 'skipped',
27
+ stepResults: [],
28
+ totalDurationMs: 0,
29
+ startedAt,
30
+ completedAt: new Date(),
31
+ };
32
+ }
33
+ /**
34
+ * Create an error test result
35
+ */
36
+ createErrorResult(testCase, startedAt, errorMessage, stepResults = []) {
37
+ return {
38
+ testCaseId: testCase.id,
39
+ testCaseName: testCase.name,
40
+ success: false,
41
+ status: 'error',
42
+ stepResults,
43
+ totalDurationMs: Date.now() - startedAt.getTime(),
44
+ startedAt,
45
+ completedAt: new Date(),
46
+ errorSummary: {
47
+ failedStep: stepResults.length > 0 ? stepResults[stepResults.length - 1].stepId : 'setup',
48
+ errorMessage,
49
+ },
50
+ };
51
+ }
52
+ /**
53
+ * Create test result from step results
54
+ */
55
+ createResult(testCase, startedAt, stepResults, screenshots, accessibilityResults) {
56
+ const completedAt = new Date();
57
+ const hasRequiredFailure = stepResults.some((r) => !r.success &&
58
+ testCase.steps.find((s) => s.id === r.stepId)?.required &&
59
+ !testCase.steps.find((s) => s.id === r.stepId)?.continueOnFailure);
60
+ const status = hasRequiredFailure ? 'failed' : 'passed';
61
+ const failedStep = stepResults.find((r) => !r.success);
62
+ return {
63
+ testCaseId: testCase.id,
64
+ testCaseName: testCase.name,
65
+ success: status === 'passed',
66
+ status,
67
+ stepResults,
68
+ totalDurationMs: completedAt.getTime() - startedAt.getTime(),
69
+ screenshots: screenshots.length > 0 ? screenshots : undefined,
70
+ accessibilityResults: accessibilityResults.length > 0 ? accessibilityResults : undefined,
71
+ startedAt,
72
+ completedAt,
73
+ browserInfo: testCase.viewport
74
+ ? {
75
+ browserType: 'chromium',
76
+ viewport: testCase.viewport,
77
+ userAgent: testCase.browserContext?.userAgent ?? '',
78
+ }
79
+ : undefined,
80
+ errorSummary: failedStep
81
+ ? {
82
+ failedStep: failedStep.stepId,
83
+ errorMessage: failedStep.error?.message ?? 'Unknown error',
84
+ errorCode: failedStep.error?.code,
85
+ screenshot: failedStep.error?.failureScreenshot,
86
+ }
87
+ : undefined,
88
+ };
89
+ }
90
+ /**
91
+ * Check if any results have failures
92
+ */
93
+ hasFailure(results) {
94
+ return results.some((r) => !r.success);
95
+ }
96
+ /**
97
+ * Calculate summary statistics from test results
98
+ */
99
+ calculateSummary(results) {
100
+ return {
101
+ total: results.length,
102
+ passed: results.filter((r) => r.status === 'passed').length,
103
+ failed: results.filter((r) => r.status === 'failed' || r.status === 'error').length,
104
+ skipped: results.filter((r) => r.status === 'skipped').length,
105
+ };
106
+ }
107
+ /**
108
+ * Create suite result from test results
109
+ */
110
+ createSuiteResult(suiteId, suiteName, testResults, startedAt) {
111
+ const completedAt = new Date();
112
+ const summary = this.calculateSummary(testResults);
113
+ return {
114
+ suiteId,
115
+ suiteName,
116
+ success: summary.failed === 0,
117
+ testResults,
118
+ summary: {
119
+ ...summary,
120
+ totalDurationMs: completedAt.getTime() - startedAt.getTime(),
121
+ },
122
+ startedAt,
123
+ completedAt,
124
+ };
125
+ }
126
+ }
127
+ /**
128
+ * Create result collector instance
129
+ */
130
+ export function createResultCollector() {
131
+ return new ResultCollector();
132
+ }
133
+ //# sourceMappingURL=result-collector.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"result-collector.js","sourceRoot":"","sources":["../../../../../src/domains/test-execution/services/e2e/result-collector.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAUH,+EAA+E;AAC/E,yBAAyB;AACzB,+EAA+E;AAE/E;;;;GAIG;AACH,MAAM,OAAO,eAAe;IAC1B;;OAEG;IACH,mBAAmB,CAAC,QAAqB,EAAE,SAAe;QACxD,OAAO;YACL,UAAU,EAAE,QAAQ,CAAC,EAAE;YACvB,YAAY,EAAE,QAAQ,CAAC,IAAI;YAC3B,OAAO,EAAE,IAAI;YACb,MAAM,EAAE,SAAS;YACjB,WAAW,EAAE,EAAE;YACf,eAAe,EAAE,CAAC;YAClB,SAAS;YACT,WAAW,EAAE,IAAI,IAAI,EAAE;SACxB,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,iBAAiB,CACf,QAAqB,EACrB,SAAe,EACf,YAAoB,EACpB,cAA+B,EAAE;QAEjC,OAAO;YACL,UAAU,EAAE,QAAQ,CAAC,EAAE;YACvB,YAAY,EAAE,QAAQ,CAAC,IAAI;YAC3B,OAAO,EAAE,KAAK;YACd,MAAM,EAAE,OAAO;YACf,WAAW;YACX,eAAe,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,SAAS,CAAC,OAAO,EAAE;YACjD,SAAS;YACT,WAAW,EAAE,IAAI,IAAI,EAAE;YACvB,YAAY,EAAE;gBACZ,UAAU,EAAE,WAAW,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,WAAW,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,M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e,EACf,SAAiB,EACjB,WAA4B,EAC5B,SAAe;QAEf,MAAM,WAAW,GAAG,IAAI,IAAI,EAAE,CAAC;QAC/B,MAAM,OAAO,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC;QAEnD,OAAO;YACL,OAAO;YACP,SAAS;YACT,OAAO,EAAE,OAAO,CAAC,MAAM,KAAK,CAAC;YAC7B,WAAW;YACX,OAAO,EAAE;gBACP,GAAG,OAAO;gBACV,eAAe,EAAE,WAAW,CAAC,OAAO,EAAE,GAAG,SAAS,CAAC,OAAO,EAAE;aAC7D;YACD,SAAS;YACT,WAAW;SACZ,CAAC;IACJ,CAAC;CACF;AAED;;GAEG;AACH,MAAM,UAAU,qBAAqB;IACnC,OAAO,IAAI,eAAe,EAAE,CAAC;AAC/B,CAAC"}
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Agentic QE v3 - Step Executors
3
+ *
4
+ * Individual step execution logic for each E2E step type.
5
+ * Supports both agent-browser and Vibium browser clients.
6
+ * Assertion logic is delegated to assertion-handlers.ts.
7
+ *
8
+ * @module test-execution/services/e2e/step-executors
9
+ */
10
+ import { type E2EStep } from '../../types';
11
+ import type { StepExecutionContext, StepExecutionData, E2ERunnerConfig } from './types';
12
+ import { BrowserOrchestrator } from './browser-orchestrator';
13
+ /**
14
+ * Step Executors
15
+ *
16
+ * Handles execution of individual E2E test steps.
17
+ * Delegates to appropriate methods based on step type and browser client.
18
+ */
19
+ export declare class StepExecutors {
20
+ private readonly config;
21
+ private readonly orchestrator;
22
+ private readonly assertionHandlers;
23
+ private readonly waitConditionHandler;
24
+ private readonly log;
25
+ constructor(config: E2ERunnerConfig, orchestrator: BrowserOrchestrator, logger: (message: string) => void);
26
+ /**
27
+ * Execute a single step based on its type
28
+ */
29
+ executeStep(step: E2EStep, context: StepExecutionContext): Promise<StepExecutionData>;
30
+ /**
31
+ * Refresh snapshot after actions (agent-browser only)
32
+ */
33
+ refreshSnapshotIfNeeded(context: StepExecutionContext): Promise<void>;
34
+ private executeNavigateStep;
35
+ private executeClickStep;
36
+ private executeTypeStep;
37
+ private executeWaitStep;
38
+ private executeAssertStep;
39
+ private executeScreenshotStep;
40
+ private executeA11yCheckStep;
41
+ private resolveUrl;
42
+ private delay;
43
+ }
44
+ /**
45
+ * Create step executors instance
46
+ */
47
+ export declare function createStepExecutors(config: E2ERunnerConfig, orchestrator: BrowserOrchestrator, logger: (message: string) => void): StepExecutors;
48
+ //# sourceMappingURL=step-executors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"step-executors.d.ts","sourceRoot":"","sources":["../../../../../src/domains/test-execution/services/e2e/step-executors.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,EACL,KAAK,OAAO,EAiBb,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,eAAe,EAAwB,MAAM,SAAS,CAAC;AAE9G,OAAO,EAML,mBAAmB,EACpB,MAAM,wBAAwB,CAAC;AAQhC;;;;;GAKG;AACH,qBAAa,aAAa;IACxB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAkB;IACzC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAsB;IACnD,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAoB;IACtD,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAuB;IAC5D,OAAO,CAAC,QAAQ,CAAC,GAAG,CAA4B;gBAG9C,MAAM,EAAE,eAAe,EACvB,YAAY,EAAE,mBAAmB,EACjC,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI;IASnC;;OAEG;IACG,WAAW,CACf,IAAI,EAAE,OAAO,EACb,OAAO,EAAE,oBAAoB,GAC5B,OAAO,CAAC,iBAAiB,CAAC;IA2B7B;;OAEG;IACG,uBAAuB,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC;YAU7D,mBAAmB;YAgDnB,gBAAgB;YAkFhB,eAAe;YAwDf,eAAe;YA0Ef,iBAAiB;YAyCjB,qBAAqB;YAmDrB,oBAAoB;IAoHlC,OAAO,CAAC,UAAU;IAOlB,OAAO,CAAC,KAAK;CAGd;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,eAAe,EACvB,YAAY,EAAE,mBAAmB,EACjC,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,GAChC,aAAa,CAEf"}