agentic-qe 3.3.0 → 3.3.2

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 (416) hide show
  1. package/README.md +6 -2
  2. package/package.json +6 -1
  3. package/v3/CHANGELOG.md +134 -0
  4. package/v3/dist/cli/bundle.js +29332 -22739
  5. package/v3/dist/cli/command-registry.d.ts +55 -0
  6. package/v3/dist/cli/command-registry.d.ts.map +1 -0
  7. package/v3/dist/cli/command-registry.js +103 -0
  8. package/v3/dist/cli/command-registry.js.map +1 -0
  9. package/v3/dist/cli/commands/code.d.ts +9 -0
  10. package/v3/dist/cli/commands/code.d.ts.map +1 -0
  11. package/v3/dist/cli/commands/code.js +254 -0
  12. package/v3/dist/cli/commands/code.js.map +1 -0
  13. package/v3/dist/cli/commands/completions.d.ts +8 -0
  14. package/v3/dist/cli/commands/completions.d.ts.map +1 -0
  15. package/v3/dist/cli/commands/completions.js +99 -0
  16. package/v3/dist/cli/commands/completions.js.map +1 -0
  17. package/v3/dist/cli/commands/coverage.d.ts +9 -0
  18. package/v3/dist/cli/commands/coverage.d.ts.map +1 -0
  19. package/v3/dist/cli/commands/coverage.js +208 -0
  20. package/v3/dist/cli/commands/coverage.js.map +1 -0
  21. package/v3/dist/cli/commands/fleet.d.ts +11 -0
  22. package/v3/dist/cli/commands/fleet.d.ts.map +1 -0
  23. package/v3/dist/cli/commands/fleet.js +338 -0
  24. package/v3/dist/cli/commands/fleet.js.map +1 -0
  25. package/v3/dist/cli/commands/migrate.d.ts +9 -0
  26. package/v3/dist/cli/commands/migrate.d.ts.map +1 -0
  27. package/v3/dist/cli/commands/migrate.js +566 -0
  28. package/v3/dist/cli/commands/migrate.js.map +1 -0
  29. package/v3/dist/cli/commands/quality.d.ts +9 -0
  30. package/v3/dist/cli/commands/quality.d.ts.map +1 -0
  31. package/v3/dist/cli/commands/quality.js +40 -0
  32. package/v3/dist/cli/commands/quality.js.map +1 -0
  33. package/v3/dist/cli/commands/security.d.ts +9 -0
  34. package/v3/dist/cli/commands/security.d.ts.map +1 -0
  35. package/v3/dist/cli/commands/security.js +124 -0
  36. package/v3/dist/cli/commands/security.js.map +1 -0
  37. package/v3/dist/cli/commands/sync.d.ts +19 -0
  38. package/v3/dist/cli/commands/sync.d.ts.map +1 -0
  39. package/v3/dist/cli/commands/sync.js +283 -0
  40. package/v3/dist/cli/commands/sync.js.map +1 -0
  41. package/v3/dist/cli/commands/test.d.ts +9 -0
  42. package/v3/dist/cli/commands/test.d.ts.map +1 -0
  43. package/v3/dist/cli/commands/test.js +166 -0
  44. package/v3/dist/cli/commands/test.js.map +1 -0
  45. package/v3/dist/cli/handlers/agent-handler.d.ts +20 -0
  46. package/v3/dist/cli/handlers/agent-handler.d.ts.map +1 -0
  47. package/v3/dist/cli/handlers/agent-handler.js +158 -0
  48. package/v3/dist/cli/handlers/agent-handler.js.map +1 -0
  49. package/v3/dist/cli/handlers/domain-handler.d.ts +20 -0
  50. package/v3/dist/cli/handlers/domain-handler.d.ts.map +1 -0
  51. package/v3/dist/cli/handlers/domain-handler.js +115 -0
  52. package/v3/dist/cli/handlers/domain-handler.js.map +1 -0
  53. package/v3/dist/cli/handlers/index.d.ts +13 -0
  54. package/v3/dist/cli/handlers/index.d.ts.map +1 -0
  55. package/v3/dist/cli/handlers/index.js +15 -0
  56. package/v3/dist/cli/handlers/index.js.map +1 -0
  57. package/v3/dist/cli/handlers/init-handler.d.ts +38 -0
  58. package/v3/dist/cli/handlers/init-handler.d.ts.map +1 -0
  59. package/v3/dist/cli/handlers/init-handler.js +288 -0
  60. package/v3/dist/cli/handlers/init-handler.js.map +1 -0
  61. package/v3/dist/cli/handlers/interfaces.d.ts +104 -0
  62. package/v3/dist/cli/handlers/interfaces.d.ts.map +1 -0
  63. package/v3/dist/cli/handlers/interfaces.js +109 -0
  64. package/v3/dist/cli/handlers/interfaces.js.map +1 -0
  65. package/v3/dist/cli/handlers/protocol-handler.d.ts +19 -0
  66. package/v3/dist/cli/handlers/protocol-handler.d.ts.map +1 -0
  67. package/v3/dist/cli/handlers/protocol-handler.js +79 -0
  68. package/v3/dist/cli/handlers/protocol-handler.js.map +1 -0
  69. package/v3/dist/cli/handlers/status-handler.d.ts +30 -0
  70. package/v3/dist/cli/handlers/status-handler.d.ts.map +1 -0
  71. package/v3/dist/cli/handlers/status-handler.js +218 -0
  72. package/v3/dist/cli/handlers/status-handler.js.map +1 -0
  73. package/v3/dist/cli/handlers/task-handler.d.ts +22 -0
  74. package/v3/dist/cli/handlers/task-handler.d.ts.map +1 -0
  75. package/v3/dist/cli/handlers/task-handler.js +271 -0
  76. package/v3/dist/cli/handlers/task-handler.js.map +1 -0
  77. package/v3/dist/cli/index.d.ts +4 -0
  78. package/v3/dist/cli/index.d.ts.map +1 -1
  79. package/v3/dist/cli/index.js +48 -2677
  80. package/v3/dist/cli/index.js.map +1 -1
  81. package/v3/dist/cli/wizards/core/index.d.ts +11 -0
  82. package/v3/dist/cli/wizards/core/index.d.ts.map +1 -0
  83. package/v3/dist/cli/wizards/core/index.js +15 -0
  84. package/v3/dist/cli/wizards/core/index.js.map +1 -0
  85. package/v3/dist/cli/wizards/core/wizard-base.d.ts +87 -0
  86. package/v3/dist/cli/wizards/core/wizard-base.d.ts.map +1 -0
  87. package/v3/dist/cli/wizards/core/wizard-base.js +120 -0
  88. package/v3/dist/cli/wizards/core/wizard-base.js.map +1 -0
  89. package/v3/dist/cli/wizards/core/wizard-command.d.ts +182 -0
  90. package/v3/dist/cli/wizards/core/wizard-command.d.ts.map +1 -0
  91. package/v3/dist/cli/wizards/core/wizard-command.js +45 -0
  92. package/v3/dist/cli/wizards/core/wizard-command.js.map +1 -0
  93. package/v3/dist/cli/wizards/core/wizard-step.d.ts +109 -0
  94. package/v3/dist/cli/wizards/core/wizard-step.d.ts.map +1 -0
  95. package/v3/dist/cli/wizards/core/wizard-step.js +384 -0
  96. package/v3/dist/cli/wizards/core/wizard-step.js.map +1 -0
  97. package/v3/dist/cli/wizards/core/wizard-utils.d.ts +117 -0
  98. package/v3/dist/cli/wizards/core/wizard-utils.d.ts.map +1 -0
  99. package/v3/dist/cli/wizards/core/wizard-utils.js +291 -0
  100. package/v3/dist/cli/wizards/core/wizard-utils.js.map +1 -0
  101. package/v3/dist/cli/wizards/coverage-wizard.d.ts +13 -68
  102. package/v3/dist/cli/wizards/coverage-wizard.d.ts.map +1 -1
  103. package/v3/dist/cli/wizards/coverage-wizard.js +127 -391
  104. package/v3/dist/cli/wizards/coverage-wizard.js.map +1 -1
  105. package/v3/dist/cli/wizards/fleet-wizard.d.ts +13 -64
  106. package/v3/dist/cli/wizards/fleet-wizard.d.ts.map +1 -1
  107. package/v3/dist/cli/wizards/fleet-wizard.js +150 -363
  108. package/v3/dist/cli/wizards/fleet-wizard.js.map +1 -1
  109. package/v3/dist/cli/wizards/index.d.ts +2 -0
  110. package/v3/dist/cli/wizards/index.d.ts.map +1 -1
  111. package/v3/dist/cli/wizards/index.js +3 -0
  112. package/v3/dist/cli/wizards/index.js.map +1 -1
  113. package/v3/dist/cli/wizards/security-wizard.d.ts +13 -64
  114. package/v3/dist/cli/wizards/security-wizard.d.ts.map +1 -1
  115. package/v3/dist/cli/wizards/security-wizard.js +152 -395
  116. package/v3/dist/cli/wizards/security-wizard.js.map +1 -1
  117. package/v3/dist/cli/wizards/test-wizard.d.ts +13 -77
  118. package/v3/dist/cli/wizards/test-wizard.d.ts.map +1 -1
  119. package/v3/dist/cli/wizards/test-wizard.js +196 -328
  120. package/v3/dist/cli/wizards/test-wizard.js.map +1 -1
  121. package/v3/dist/coordination/mincut/mincut-health-monitor.d.ts +3 -0
  122. package/v3/dist/coordination/mincut/mincut-health-monitor.d.ts.map +1 -1
  123. package/v3/dist/coordination/mincut/mincut-health-monitor.js +6 -2
  124. package/v3/dist/coordination/mincut/mincut-health-monitor.js.map +1 -1
  125. package/v3/dist/coordination/mincut/queen-integration.d.ts +3 -0
  126. package/v3/dist/coordination/mincut/queen-integration.d.ts.map +1 -1
  127. package/v3/dist/coordination/mincut/queen-integration.js +6 -1
  128. package/v3/dist/coordination/mincut/queen-integration.js.map +1 -1
  129. package/v3/dist/coordination/queen-coordinator.d.ts +13 -1
  130. package/v3/dist/coordination/queen-coordinator.d.ts.map +1 -1
  131. package/v3/dist/coordination/queen-coordinator.js +91 -3
  132. package/v3/dist/coordination/queen-coordinator.js.map +1 -1
  133. package/v3/dist/coordination/task-executor.js +2 -2
  134. package/v3/dist/coordination/task-executor.js.map +1 -1
  135. package/v3/dist/domains/chaos-resilience/plugin.js +2 -2
  136. package/v3/dist/domains/chaos-resilience/plugin.js.map +1 -1
  137. package/v3/dist/domains/code-intelligence/plugin.js +2 -2
  138. package/v3/dist/domains/code-intelligence/plugin.js.map +1 -1
  139. package/v3/dist/domains/contract-testing/plugin.js +2 -2
  140. package/v3/dist/domains/contract-testing/plugin.js.map +1 -1
  141. package/v3/dist/domains/coverage-analysis/plugin.d.ts +6 -1
  142. package/v3/dist/domains/coverage-analysis/plugin.d.ts.map +1 -1
  143. package/v3/dist/domains/coverage-analysis/plugin.js +75 -1
  144. package/v3/dist/domains/coverage-analysis/plugin.js.map +1 -1
  145. package/v3/dist/domains/defect-intelligence/plugin.js +2 -2
  146. package/v3/dist/domains/defect-intelligence/plugin.js.map +1 -1
  147. package/v3/dist/domains/domain-interface.d.ts +39 -2
  148. package/v3/dist/domains/domain-interface.d.ts.map +1 -1
  149. package/v3/dist/domains/domain-interface.js +102 -1
  150. package/v3/dist/domains/domain-interface.js.map +1 -1
  151. package/v3/dist/domains/learning-optimization/coordinator.d.ts +83 -0
  152. package/v3/dist/domains/learning-optimization/coordinator.d.ts.map +1 -1
  153. package/v3/dist/domains/learning-optimization/coordinator.js +174 -0
  154. package/v3/dist/domains/learning-optimization/coordinator.js.map +1 -1
  155. package/v3/dist/domains/learning-optimization/interfaces.d.ts +14 -0
  156. package/v3/dist/domains/learning-optimization/interfaces.d.ts.map +1 -1
  157. package/v3/dist/domains/learning-optimization/plugin.js +2 -2
  158. package/v3/dist/domains/learning-optimization/plugin.js.map +1 -1
  159. package/v3/dist/domains/quality-assessment/coordinator.d.ts +23 -0
  160. package/v3/dist/domains/quality-assessment/coordinator.d.ts.map +1 -1
  161. package/v3/dist/domains/quality-assessment/coordinator.js +139 -1
  162. package/v3/dist/domains/quality-assessment/coordinator.js.map +1 -1
  163. package/v3/dist/domains/quality-assessment/plugin.d.ts +6 -1
  164. package/v3/dist/domains/quality-assessment/plugin.d.ts.map +1 -1
  165. package/v3/dist/domains/quality-assessment/plugin.js +69 -2
  166. package/v3/dist/domains/quality-assessment/plugin.js.map +1 -1
  167. package/v3/dist/domains/requirements-validation/plugin.js +2 -2
  168. package/v3/dist/domains/requirements-validation/plugin.js.map +1 -1
  169. package/v3/dist/domains/security-compliance/plugin.js +2 -2
  170. package/v3/dist/domains/security-compliance/plugin.js.map +1 -1
  171. package/v3/dist/domains/test-execution/index.d.ts +2 -1
  172. package/v3/dist/domains/test-execution/index.d.ts.map +1 -1
  173. package/v3/dist/domains/test-execution/index.js +0 -2
  174. package/v3/dist/domains/test-execution/index.js.map +1 -1
  175. package/v3/dist/domains/test-execution/interfaces.d.ts +222 -25
  176. package/v3/dist/domains/test-execution/interfaces.d.ts.map +1 -1
  177. package/v3/dist/domains/test-execution/interfaces.js +130 -3
  178. package/v3/dist/domains/test-execution/interfaces.js.map +1 -1
  179. package/v3/dist/domains/test-execution/plugin.d.ts +6 -1
  180. package/v3/dist/domains/test-execution/plugin.d.ts.map +1 -1
  181. package/v3/dist/domains/test-execution/plugin.js +79 -1
  182. package/v3/dist/domains/test-execution/plugin.js.map +1 -1
  183. package/v3/dist/domains/test-execution/test-prioritization-types.d.ts +5 -172
  184. package/v3/dist/domains/test-execution/test-prioritization-types.d.ts.map +1 -1
  185. package/v3/dist/domains/test-execution/test-prioritization-types.js +6 -129
  186. package/v3/dist/domains/test-execution/test-prioritization-types.js.map +1 -1
  187. package/v3/dist/domains/test-execution/types/index.d.ts +7 -3
  188. package/v3/dist/domains/test-execution/types/index.d.ts.map +1 -1
  189. package/v3/dist/domains/test-execution/types/index.js +7 -17
  190. package/v3/dist/domains/test-execution/types/index.js.map +1 -1
  191. package/v3/dist/domains/test-generation/coordinator.d.ts +41 -1
  192. package/v3/dist/domains/test-generation/coordinator.d.ts.map +1 -1
  193. package/v3/dist/domains/test-generation/coordinator.js +187 -4
  194. package/v3/dist/domains/test-generation/coordinator.js.map +1 -1
  195. package/v3/dist/domains/test-generation/factories/index.d.ts +8 -0
  196. package/v3/dist/domains/test-generation/factories/index.d.ts.map +1 -0
  197. package/v3/dist/domains/test-generation/factories/index.js +8 -0
  198. package/v3/dist/domains/test-generation/factories/index.js.map +1 -0
  199. package/v3/dist/domains/test-generation/factories/test-generator-factory.d.ts +108 -0
  200. package/v3/dist/domains/test-generation/factories/test-generator-factory.d.ts.map +1 -0
  201. package/v3/dist/domains/test-generation/factories/test-generator-factory.js +158 -0
  202. package/v3/dist/domains/test-generation/factories/test-generator-factory.js.map +1 -0
  203. package/v3/dist/domains/test-generation/generators/base-test-generator.d.ts +79 -0
  204. package/v3/dist/domains/test-generation/generators/base-test-generator.d.ts.map +1 -0
  205. package/v3/dist/domains/test-generation/generators/base-test-generator.js +252 -0
  206. package/v3/dist/domains/test-generation/generators/base-test-generator.js.map +1 -0
  207. package/v3/dist/domains/test-generation/generators/index.d.ts +11 -0
  208. package/v3/dist/domains/test-generation/generators/index.d.ts.map +1 -0
  209. package/v3/dist/domains/test-generation/generators/index.js +13 -0
  210. package/v3/dist/domains/test-generation/generators/index.js.map +1 -0
  211. package/v3/dist/domains/test-generation/generators/jest-vitest-generator.d.ts +77 -0
  212. package/v3/dist/domains/test-generation/generators/jest-vitest-generator.d.ts.map +1 -0
  213. package/v3/dist/domains/test-generation/generators/jest-vitest-generator.js +365 -0
  214. package/v3/dist/domains/test-generation/generators/jest-vitest-generator.js.map +1 -0
  215. package/v3/dist/domains/test-generation/generators/mocha-generator.d.ts +56 -0
  216. package/v3/dist/domains/test-generation/generators/mocha-generator.d.ts.map +1 -0
  217. package/v3/dist/domains/test-generation/generators/mocha-generator.js +197 -0
  218. package/v3/dist/domains/test-generation/generators/mocha-generator.js.map +1 -0
  219. package/v3/dist/domains/test-generation/generators/pytest-generator.d.ts +66 -0
  220. package/v3/dist/domains/test-generation/generators/pytest-generator.d.ts.map +1 -0
  221. package/v3/dist/domains/test-generation/generators/pytest-generator.js +240 -0
  222. package/v3/dist/domains/test-generation/generators/pytest-generator.js.map +1 -0
  223. package/v3/dist/domains/test-generation/index.d.ts +2 -2
  224. package/v3/dist/domains/test-generation/index.d.ts.map +1 -1
  225. package/v3/dist/domains/test-generation/index.js +3 -3
  226. package/v3/dist/domains/test-generation/index.js.map +1 -1
  227. package/v3/dist/domains/test-generation/interfaces/index.d.ts +9 -0
  228. package/v3/dist/domains/test-generation/interfaces/index.d.ts.map +1 -0
  229. package/v3/dist/domains/test-generation/interfaces/index.js +9 -0
  230. package/v3/dist/domains/test-generation/interfaces/index.js.map +1 -0
  231. package/v3/dist/domains/test-generation/interfaces/test-generator.interface.d.ts +166 -0
  232. package/v3/dist/domains/test-generation/interfaces/test-generator.interface.d.ts.map +1 -0
  233. package/v3/dist/domains/test-generation/interfaces/test-generator.interface.js +8 -0
  234. package/v3/dist/domains/test-generation/interfaces/test-generator.interface.js.map +1 -0
  235. package/v3/dist/domains/test-generation/interfaces.d.ts +163 -24
  236. package/v3/dist/domains/test-generation/interfaces.d.ts.map +1 -1
  237. package/v3/dist/domains/test-generation/interfaces.js +2 -2
  238. package/v3/dist/domains/test-generation/plugin.d.ts +6 -1
  239. package/v3/dist/domains/test-generation/plugin.d.ts.map +1 -1
  240. package/v3/dist/domains/test-generation/plugin.js +90 -5
  241. package/v3/dist/domains/test-generation/plugin.js.map +1 -1
  242. package/v3/dist/domains/test-generation/{coherence-gate.d.ts → services/coherence-gate-service.d.ts} +4 -4
  243. package/v3/dist/domains/test-generation/services/coherence-gate-service.d.ts.map +1 -0
  244. package/v3/dist/domains/test-generation/{coherence-gate.js → services/coherence-gate-service.js} +2 -2
  245. package/v3/dist/domains/test-generation/services/coherence-gate-service.js.map +1 -0
  246. package/v3/dist/domains/test-generation/services/index.d.ts +8 -2
  247. package/v3/dist/domains/test-generation/services/index.d.ts.map +1 -1
  248. package/v3/dist/domains/test-generation/services/index.js +10 -3
  249. package/v3/dist/domains/test-generation/services/index.js.map +1 -1
  250. package/v3/dist/domains/test-generation/services/property-test-generator.d.ts +34 -0
  251. package/v3/dist/domains/test-generation/services/property-test-generator.d.ts.map +1 -0
  252. package/v3/dist/domains/test-generation/services/property-test-generator.js +306 -0
  253. package/v3/dist/domains/test-generation/services/property-test-generator.js.map +1 -0
  254. package/v3/dist/domains/test-generation/services/tdd-generator.d.ts +33 -0
  255. package/v3/dist/domains/test-generation/services/tdd-generator.d.ts.map +1 -0
  256. package/v3/dist/domains/test-generation/services/tdd-generator.js +342 -0
  257. package/v3/dist/domains/test-generation/services/tdd-generator.js.map +1 -0
  258. package/v3/dist/domains/test-generation/services/test-data-generator.d.ts +34 -0
  259. package/v3/dist/domains/test-generation/services/test-data-generator.d.ts.map +1 -0
  260. package/v3/dist/domains/test-generation/services/test-data-generator.js +245 -0
  261. package/v3/dist/domains/test-generation/services/test-data-generator.js.map +1 -0
  262. package/v3/dist/domains/test-generation/services/test-generator.d.ts +51 -160
  263. package/v3/dist/domains/test-generation/services/test-generator.d.ts.map +1 -1
  264. package/v3/dist/domains/test-generation/services/test-generator.js +101 -1858
  265. package/v3/dist/domains/test-generation/services/test-generator.js.map +1 -1
  266. package/v3/dist/domains/visual-accessibility/plugin.js +2 -2
  267. package/v3/dist/domains/visual-accessibility/plugin.js.map +1 -1
  268. package/v3/dist/init/phases/12-verification.d.ts +23 -0
  269. package/v3/dist/init/phases/12-verification.d.ts.map +1 -1
  270. package/v3/dist/init/phases/12-verification.js +185 -2
  271. package/v3/dist/init/phases/12-verification.js.map +1 -1
  272. package/v3/dist/integrations/agentic-flow/model-router/complexity-analyzer.d.ts +24 -62
  273. package/v3/dist/integrations/agentic-flow/model-router/complexity-analyzer.d.ts.map +1 -1
  274. package/v3/dist/integrations/agentic-flow/model-router/complexity-analyzer.js +45 -497
  275. package/v3/dist/integrations/agentic-flow/model-router/complexity-analyzer.js.map +1 -1
  276. package/v3/dist/integrations/agentic-flow/model-router/router.js +2 -2
  277. package/v3/dist/integrations/agentic-flow/model-router/router.js.map +1 -1
  278. package/v3/dist/integrations/agentic-flow/model-router/score-calculator.d.ts +98 -0
  279. package/v3/dist/integrations/agentic-flow/model-router/score-calculator.d.ts.map +1 -0
  280. package/v3/dist/integrations/agentic-flow/model-router/score-calculator.js +197 -0
  281. package/v3/dist/integrations/agentic-flow/model-router/score-calculator.js.map +1 -0
  282. package/v3/dist/integrations/agentic-flow/model-router/signal-collector.d.ts +102 -0
  283. package/v3/dist/integrations/agentic-flow/model-router/signal-collector.d.ts.map +1 -0
  284. package/v3/dist/integrations/agentic-flow/model-router/signal-collector.js +372 -0
  285. package/v3/dist/integrations/agentic-flow/model-router/signal-collector.js.map +1 -0
  286. package/v3/dist/integrations/agentic-flow/model-router/tier-recommender.d.ts +64 -0
  287. package/v3/dist/integrations/agentic-flow/model-router/tier-recommender.d.ts.map +1 -0
  288. package/v3/dist/integrations/agentic-flow/model-router/tier-recommender.js +120 -0
  289. package/v3/dist/integrations/agentic-flow/model-router/tier-recommender.js.map +1 -0
  290. package/v3/dist/integrations/coherence/coherence-service.d.ts.map +1 -1
  291. package/v3/dist/integrations/coherence/coherence-service.js +87 -30
  292. package/v3/dist/integrations/coherence/coherence-service.js.map +1 -1
  293. package/v3/dist/integrations/coherence/engines/spectral-adapter.d.ts.map +1 -1
  294. package/v3/dist/integrations/coherence/engines/spectral-adapter.js +124 -35
  295. package/v3/dist/integrations/coherence/engines/spectral-adapter.js.map +1 -1
  296. package/v3/dist/kernel/interfaces.d.ts +54 -1
  297. package/v3/dist/kernel/interfaces.d.ts.map +1 -1
  298. package/v3/dist/learning/dream/dream-scheduler.d.ts +302 -0
  299. package/v3/dist/learning/dream/dream-scheduler.d.ts.map +1 -0
  300. package/v3/dist/learning/dream/dream-scheduler.js +551 -0
  301. package/v3/dist/learning/dream/dream-scheduler.js.map +1 -0
  302. package/v3/dist/learning/dream/index.d.ts +1 -0
  303. package/v3/dist/learning/dream/index.d.ts.map +1 -1
  304. package/v3/dist/learning/dream/index.js +4 -0
  305. package/v3/dist/learning/dream/index.js.map +1 -1
  306. package/v3/dist/learning/memory-auditor.d.ts.map +1 -1
  307. package/v3/dist/learning/memory-auditor.js +3 -1
  308. package/v3/dist/learning/memory-auditor.js.map +1 -1
  309. package/v3/dist/mcp/bundle.js +30870 -23598
  310. package/v3/dist/mcp/handlers/core-handlers.d.ts.map +1 -1
  311. package/v3/dist/mcp/handlers/core-handlers.js +16 -2
  312. package/v3/dist/mcp/handlers/core-handlers.js.map +1 -1
  313. package/v3/dist/mcp/handlers/task-handlers.d.ts +1 -0
  314. package/v3/dist/mcp/handlers/task-handlers.d.ts.map +1 -1
  315. package/v3/dist/mcp/handlers/task-handlers.js +46 -12
  316. package/v3/dist/mcp/handlers/task-handlers.js.map +1 -1
  317. package/v3/dist/mcp/security/cve-prevention.d.ts +31 -134
  318. package/v3/dist/mcp/security/cve-prevention.d.ts.map +1 -1
  319. package/v3/dist/mcp/security/cve-prevention.js +37 -562
  320. package/v3/dist/mcp/security/cve-prevention.js.map +1 -1
  321. package/v3/dist/mcp/security/index.d.ts +5 -1
  322. package/v3/dist/mcp/security/index.d.ts.map +1 -1
  323. package/v3/dist/mcp/security/validators/command-validator.d.ts +41 -0
  324. package/v3/dist/mcp/security/validators/command-validator.d.ts.map +1 -0
  325. package/v3/dist/mcp/security/validators/command-validator.js +123 -0
  326. package/v3/dist/mcp/security/validators/command-validator.js.map +1 -0
  327. package/v3/dist/mcp/security/validators/crypto-validator.d.ts +40 -0
  328. package/v3/dist/mcp/security/validators/crypto-validator.d.ts.map +1 -0
  329. package/v3/dist/mcp/security/validators/crypto-validator.js +72 -0
  330. package/v3/dist/mcp/security/validators/crypto-validator.js.map +1 -0
  331. package/v3/dist/mcp/security/validators/index.d.ts +12 -0
  332. package/v3/dist/mcp/security/validators/index.d.ts.map +1 -0
  333. package/v3/dist/mcp/security/validators/index.js +22 -0
  334. package/v3/dist/mcp/security/validators/index.js.map +1 -0
  335. package/v3/dist/mcp/security/validators/input-sanitizer.d.ts +56 -0
  336. package/v3/dist/mcp/security/validators/input-sanitizer.d.ts.map +1 -0
  337. package/v3/dist/mcp/security/validators/input-sanitizer.js +157 -0
  338. package/v3/dist/mcp/security/validators/input-sanitizer.js.map +1 -0
  339. package/v3/dist/mcp/security/validators/interfaces.d.ts +164 -0
  340. package/v3/dist/mcp/security/validators/interfaces.d.ts.map +1 -0
  341. package/v3/dist/mcp/security/validators/interfaces.js +6 -0
  342. package/v3/dist/mcp/security/validators/interfaces.js.map +1 -0
  343. package/v3/dist/mcp/security/validators/path-traversal-validator.d.ts +50 -0
  344. package/v3/dist/mcp/security/validators/path-traversal-validator.d.ts.map +1 -0
  345. package/v3/dist/mcp/security/validators/path-traversal-validator.js +242 -0
  346. package/v3/dist/mcp/security/validators/path-traversal-validator.js.map +1 -0
  347. package/v3/dist/mcp/security/validators/regex-safety-validator.d.ts +50 -0
  348. package/v3/dist/mcp/security/validators/regex-safety-validator.d.ts.map +1 -0
  349. package/v3/dist/mcp/security/validators/regex-safety-validator.js +183 -0
  350. package/v3/dist/mcp/security/validators/regex-safety-validator.js.map +1 -0
  351. package/v3/dist/mcp/security/validators/validation-orchestrator.d.ts +66 -0
  352. package/v3/dist/mcp/security/validators/validation-orchestrator.d.ts.map +1 -0
  353. package/v3/dist/mcp/security/validators/validation-orchestrator.js +146 -0
  354. package/v3/dist/mcp/security/validators/validation-orchestrator.js.map +1 -0
  355. package/v3/dist/mcp/server.d.ts.map +1 -1
  356. package/v3/dist/mcp/server.js +1 -0
  357. package/v3/dist/mcp/server.js.map +1 -1
  358. package/v3/dist/mcp/services/reasoning-bank-service.d.ts +87 -13
  359. package/v3/dist/mcp/services/reasoning-bank-service.d.ts.map +1 -1
  360. package/v3/dist/mcp/services/reasoning-bank-service.js +291 -31
  361. package/v3/dist/mcp/services/reasoning-bank-service.js.map +1 -1
  362. package/v3/dist/mcp/tool-registry.d.ts +3 -1
  363. package/v3/dist/mcp/tool-registry.d.ts.map +1 -1
  364. package/v3/dist/mcp/tool-registry.js +155 -2
  365. package/v3/dist/mcp/tool-registry.js.map +1 -1
  366. package/v3/dist/mcp/tools/test-generation/generate.d.ts +1 -0
  367. package/v3/dist/mcp/tools/test-generation/generate.d.ts.map +1 -1
  368. package/v3/dist/mcp/tools/test-generation/generate.js +3 -2
  369. package/v3/dist/mcp/tools/test-generation/generate.js.map +1 -1
  370. package/v3/dist/routing/qe-agent-registry.d.ts +27 -0
  371. package/v3/dist/routing/qe-agent-registry.d.ts.map +1 -1
  372. package/v3/dist/routing/qe-agent-registry.js +96 -0
  373. package/v3/dist/routing/qe-agent-registry.js.map +1 -1
  374. package/v3/dist/shared/events/domain-events.d.ts +27 -0
  375. package/v3/dist/shared/events/domain-events.d.ts.map +1 -1
  376. package/v3/dist/shared/events/domain-events.js +1 -0
  377. package/v3/dist/shared/events/domain-events.js.map +1 -1
  378. package/v3/dist/sync/cloud/index.d.ts +8 -0
  379. package/v3/dist/sync/cloud/index.d.ts.map +1 -0
  380. package/v3/dist/sync/cloud/index.js +8 -0
  381. package/v3/dist/sync/cloud/index.js.map +1 -0
  382. package/v3/dist/sync/cloud/postgres-writer.d.ts +88 -0
  383. package/v3/dist/sync/cloud/postgres-writer.d.ts.map +1 -0
  384. package/v3/dist/sync/cloud/postgres-writer.js +319 -0
  385. package/v3/dist/sync/cloud/postgres-writer.js.map +1 -0
  386. package/v3/dist/sync/cloud/tunnel-manager.d.ts +75 -0
  387. package/v3/dist/sync/cloud/tunnel-manager.d.ts.map +1 -0
  388. package/v3/dist/sync/cloud/tunnel-manager.js +221 -0
  389. package/v3/dist/sync/cloud/tunnel-manager.js.map +1 -0
  390. package/v3/dist/sync/index.d.ts +35 -0
  391. package/v3/dist/sync/index.d.ts.map +1 -0
  392. package/v3/dist/sync/index.js +35 -0
  393. package/v3/dist/sync/index.js.map +1 -0
  394. package/v3/dist/sync/interfaces.d.ts +245 -0
  395. package/v3/dist/sync/interfaces.d.ts.map +1 -0
  396. package/v3/dist/sync/interfaces.js +160 -0
  397. package/v3/dist/sync/interfaces.js.map +1 -0
  398. package/v3/dist/sync/readers/index.d.ts +8 -0
  399. package/v3/dist/sync/readers/index.d.ts.map +1 -0
  400. package/v3/dist/sync/readers/index.js +8 -0
  401. package/v3/dist/sync/readers/index.js.map +1 -0
  402. package/v3/dist/sync/readers/json-reader.d.ts +95 -0
  403. package/v3/dist/sync/readers/json-reader.d.ts.map +1 -0
  404. package/v3/dist/sync/readers/json-reader.js +306 -0
  405. package/v3/dist/sync/readers/json-reader.js.map +1 -0
  406. package/v3/dist/sync/readers/sqlite-reader.d.ts +88 -0
  407. package/v3/dist/sync/readers/sqlite-reader.d.ts.map +1 -0
  408. package/v3/dist/sync/readers/sqlite-reader.js +255 -0
  409. package/v3/dist/sync/readers/sqlite-reader.js.map +1 -0
  410. package/v3/dist/sync/sync-agent.d.ts +116 -0
  411. package/v3/dist/sync/sync-agent.d.ts.map +1 -0
  412. package/v3/dist/sync/sync-agent.js +416 -0
  413. package/v3/dist/sync/sync-agent.js.map +1 -0
  414. package/v3/package.json +13 -2
  415. package/v3/dist/domains/test-generation/coherence-gate.d.ts.map +0 -1
  416. package/v3/dist/domains/test-generation/coherence-gate.js.map +0 -1
@@ -3,7 +3,8 @@
3
3
  * Public API exports for the test execution domain
4
4
  */
5
5
  export type { TestExecutionAPI, ExecuteTestsRequest, ParallelExecutionRequest, TestRunResult, FailedTest, CoverageData, FlakyDetectionRequest, FlakyTestReport, FlakyTest, RetryRequest, RetryResult, ExecutionStats, } from './interfaces';
6
- export { E2EStepType, type NavigateStepOptions, type ClickStepOptions, type TypeStepOptions, type WaitStepOptions, type WaitConditionType, type AssertStepOptions, type AssertionType, type ScreenshotStepOptions, type A11yCheckStepOptions, type StepOptions, type E2EStepBase, type NavigateStep, type ClickStep, type TypeStep, type WaitStep, type AssertStep, type ScreenshotStep, type A11yCheckStep, type E2EStep, type E2EStepResult, type Viewport, type BrowserContextOptions, type E2ETestHooks, type E2ETestCase, type E2ETestResult, type E2ETestSuite, type E2ETestSuiteResult, createNavigateStep, createClickStep, createTypeStep, createWaitStep, createAssertStep, createScreenshotStep, createA11yCheckStep, createE2ETestCase, isNavigateStep, isClickStep, isTypeStep, isWaitStep, isAssertStep, isScreenshotStep, isA11yCheckStep, type ExtractStepType, type StepOptionsFor, type E2EStepBuilder, type SerializableE2ETestCase, } from './types';
6
+ export { createNavigateStep, createClickStep, createTypeStep, createWaitStep, createAssertStep, createScreenshotStep, createA11yCheckStep, createE2ETestCase, isNavigateStep, isClickStep, isTypeStep, isWaitStep, isAssertStep, isScreenshotStep, isA11yCheckStep, } from './types';
7
+ export type { E2EStepType, NavigateStepOptions, ClickStepOptions, TypeStepOptions, WaitStepOptions, WaitConditionType, AssertStepOptions, AssertionType, ScreenshotStepOptions, A11yCheckStepOptions, StepOptions, E2EStepBase, NavigateStep, ClickStep, TypeStep, WaitStep, AssertStep, ScreenshotStep, A11yCheckStep, E2EStep, E2EStepResult, Viewport, BrowserContextOptions, E2ETestHooks, E2ETestCase, E2ETestResult, E2ETestSuite, E2ETestSuiteResult, ExtractStepType, StepOptionsFor, E2EStepBuilder, SerializableE2ETestCase, } from './types';
7
8
  export { TestExecutorService, type ITestExecutionService, type TestExecutorConfig, } from './services/test-executor';
8
9
  export { FlakyDetectorService, type IFlakyTestDetector, type FlakyAnalysis, type FlakySuggestion, type Recommendation, type TestExecutionRecord, type ExecutionContext, type CorrelationFactor, type FlakyDetectorConfig, } from './services/flaky-detector';
9
10
  export { RetryHandlerService, type IRetryHandler, type RetryExecutionRequest, type RetryStatistics, type TestRetryStats, type RetryPolicy, type RetryCondition, type RetryHandlerConfig, } from './services/retry-handler';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/domains/test-execution/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH,YAAY,EACV,gBAAgB,EAChB,mBAAmB,EACnB,wBAAwB,EACxB,aAAa,EACb,UAAU,EACV,YAAY,EACZ,qBAAqB,EACrB,eAAe,EACf,SAAS,EACT,YAAY,EACZ,WAAW,EACX,cAAc,GACf,MAAM,cAAc,CAAC;AAMtB,OAAO,EAEL,WAAW,EAGX,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,WAAW,EAGhB,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,OAAO,EAGZ,KAAK,aAAa,EAGlB,KAAK,QAAQ,EACb,KAAK,qBAAqB,EAC1B,KAAK,YAAY,EACjB,KAAK,WAAW,EAGhB,KAAK,aAAa,EAGlB,KAAK,YAAY,EACjB,KAAK,kBAAkB,EAGvB,kBAAkB,EAClB,eAAe,EACf,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,iBAAiB,EAGjB,cAAc,EACd,WAAW,EACX,UAAU,EACV,UAAU,EACV,YAAY,EACZ,gBAAgB,EAChB,eAAe,EAGf,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,uBAAuB,GAC7B,MAAM,SAAS,CAAC;AAMjB,OAAO,EACL,mBAAmB,EACnB,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,GACxB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EACL,oBAAoB,EACpB,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,GACzB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EACL,mBAAmB,EACnB,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,kBAAkB,GACxB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EACL,sBAAsB,EACtB,KAAK,YAAY,EACjB,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,GAC3B,MAAM,6BAA6B,CAAC;AAErC,OAAO,EACL,oBAAoB,EACpB,0BAA0B,EAC1B,2CAA2C,EAC3C,8BAA8B,EAC9B,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,yBAAyB,GAC1B,MAAM,uBAAuB,CAAC;AAM/B,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,EAC/B,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,aAAa,EACb,eAAe,EACf,6BAA6B,EAC7B,6BAA6B,GAC9B,MAAM,6BAA6B,CAAC;AAMrC,OAAO,EACL,wBAAwB,EACxB,8BAA8B,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,8BAA8B,GACpC,MAAM,eAAe,CAAC;AAMvB,OAAO,EACL,mBAAmB,EACnB,yBAAyB,GAC1B,MAAM,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/domains/test-execution/index.ts"],"names":[],"mappings":"AAAA;;;GAG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B,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,kBAAkB,GACxB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EACL,sBAAsB,EACtB,KAAK,YAAY,EACjB,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,GAC3B,MAAM,6BAA6B,CAAC;AAErC,OAAO,EACL,oBAAoB,EACpB,0BAA0B,EAC1B,2CAA2C,EAC3C,8BAA8B,EAC9B,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,yBAAyB,GAC1B,MAAM,uBAAuB,CAAC;AAM/B,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,EAC/B,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,aAAa,EACb,eAAe,EACf,6BAA6B,EAC7B,6BAA6B,GAC9B,MAAM,6BAA6B,CAAC;AAMrC,OAAO,EACL,wBAAwB,EACxB,8BAA8B,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,8BAA8B,GACpC,MAAM,eAAe,CAAC;AAMvB,OAAO,EACL,mBAAmB,EACnB,yBAAyB,GAC1B,MAAM,UAAU,CAAC"}
@@ -6,8 +6,6 @@
6
6
  // E2E Step Types
7
7
  // ============================================================================
8
8
  export {
9
- // Step Type Enumeration
10
- E2EStepType,
11
9
  // Factory Functions
12
10
  createNavigateStep, createClickStep, createTypeStep, createWaitStep, createAssertStep, createScreenshotStep, createA11yCheckStep, createE2ETestCase,
13
11
  // Type Guards
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/domains/test-execution/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAqBH,+EAA+E;AAC/E,iBAAiB;AACjB,+EAA+E;AAE/E,OAAO;AACL,wBAAwB;AACxB,WAAW;AAyCX,oBAAoB;AACpB,kBAAkB,EAClB,eAAe,EACf,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,iBAAiB;AAEjB,cAAc;AACd,cAAc,EACd,WAAW,EACX,UAAU,EACV,UAAU,EACV,YAAY,EACZ,gBAAgB,EAChB,eAAe,GAOhB,MAAM,SAAS,CAAC;AAEjB,+EAA+E;AAC/E,WAAW;AACX,+EAA+E;AAE/E,OAAO,EACL,mBAAmB,GAGpB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EACL,oBAAoB,GASrB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EACL,mBAAmB,GAQpB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EACL,sBAAsB,GAOvB,MAAM,6BAA6B,CAAC;AAErC,OAAO,EACL,oBAAoB,EACpB,0BAA0B,EAC1B,2CAA2C,EAC3C,8BAA8B,EAK9B,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,yBAAyB,GAC1B,MAAM,uBAAuB,CAAC;AAE/B,+EAA+E;AAC/E,4BAA4B;AAC5B,+EAA+E;AAE/E,OAAO,EAKL,aAAa,EACb,eAAe,EACf,6BAA6B,EAC7B,6BAA6B,GAC9B,MAAM,6BAA6B,CAAC;AAErC,+EAA+E;AAC/E,cAAc;AACd,+EAA+E;AAE/E,OAAO,EACL,wBAAwB,EACxB,8BAA8B,GAG/B,MAAM,eAAe,CAAC;AAEvB,+EAA+E;AAC/E,SAAS;AACT,+EAA+E;AAE/E,OAAO,EACL,mBAAmB,EACnB,yBAAyB,GAC1B,MAAM,UAAU,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/domains/test-execution/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAqBH,+EAA+E;AAC/E,iBAAiB;AACjB,+EAA+E;AAE/E,OAAO;AACL,oBAAoB;AACpB,kBAAkB,EAClB,eAAe,EACf,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,iBAAiB;AAEjB,cAAc;AACd,cAAc,EACd,WAAW,EACX,UAAU,EACV,UAAU,EACV,YAAY,EACZ,gBAAgB,EAChB,eAAe,GAChB,MAAM,SAAS,CAAC;AAoDjB,+EAA+E;AAC/E,WAAW;AACX,+EAA+E;AAE/E,OAAO,EACL,mBAAmB,GAGpB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EACL,oBAAoB,GASrB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EACL,mBAAmB,GAQpB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EACL,sBAAsB,GAOvB,MAAM,6BAA6B,CAAC;AAErC,OAAO,EACL,oBAAoB,EACpB,0BAA0B,EAC1B,2CAA2C,EAC3C,8BAA8B,EAK9B,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,yBAAyB,GAC1B,MAAM,uBAAuB,CAAC;AAE/B,+EAA+E;AAC/E,4BAA4B;AAC5B,+EAA+E;AAE/E,OAAO,EAKL,aAAa,EACb,eAAe,EACf,6BAA6B,EAC7B,6BAA6B,GAC9B,MAAM,6BAA6B,CAAC;AAErC,+EAA+E;AAC/E,cAAc;AACd,+EAA+E;AAE/E,OAAO,EACL,wBAAwB,EACxB,8BAA8B,GAG/B,MAAM,eAAe,CAAC;AAEvB,+EAA+E;AAC/E,SAAS;AACT,+EAA+E;AAE/E,OAAO,EACL,mBAAmB,EACnB,yBAAyB,GAC1B,MAAM,UAAU,CAAC"}
@@ -1,36 +1,40 @@
1
1
  /**
2
- * Agentic QE v3 - Test Execution Domain Interface
3
- * Parallel test execution with intelligent retry
2
+ * Agentic QE v3 - Test Execution Domain Interfaces
3
+ * All types and interfaces for the test-execution domain
4
4
  */
5
5
  import { Result } from '../../shared/types';
6
- import type { E2ETestCase, E2ETestSuite, E2ETestResult, E2ETestSuiteResult } from './types';
6
+ export type { E2EStepType, NavigateStepOptions, ClickStepOptions, TypeStepOptions, WaitStepOptions, WaitConditionType, AssertStepOptions, AssertionType, ScreenshotStepOptions, A11yCheckStepOptions, StepOptions, E2EStepBase, NavigateStep, ClickStep, TypeStep, WaitStep, AssertStep, ScreenshotStep, A11yCheckStep, E2EStep, E2EStepResult, Viewport, BrowserContextOptions, E2ETestHooks, E2ETestCase, E2ETestResult, E2ETestSuite, E2ETestSuiteResult, ExtractStepType, StepOptionsFor, E2EStepBuilder, SerializableE2ETestCase, FlowCategory, FlowStatus, RecordedActionType, RecordedAction, NavigateAction, ClickAction, TypeAction, HoverAction, ScrollAction, SelectAction, UploadAction, DownloadAction, DragDropAction, KeyboardAction, AssertionAction, AnyRecordedAction, FlowTemplateBase, LoginFlowTemplate, CheckoutFlowTemplate, FormSubmissionFlowTemplate, SearchFlowTemplate, NavigationFlowTemplate, FlowTemplate, RecordingConfig, RecordingSession, UserFlow, CodeGenerationOptions, GeneratedTestCode, } from './types';
7
+ export { createNavigateStep, createClickStep, createTypeStep, createWaitStep, createAssertStep, createScreenshotStep, createA11yCheckStep, createE2ETestCase, isNavigateStep, isClickStep, isTypeStep, isWaitStep, isAssertStep, isScreenshotStep, isA11yCheckStep, isNavigateAction, isClickAction, isTypeAction, isAssertionAction, isLoginFlowTemplate, isCheckoutFlowTemplate, isFormSubmissionFlowTemplate, isSearchFlowTemplate, isNavigationFlowTemplate, DEFAULT_RECORDING_CONFIG, DEFAULT_CODE_GENERATION_OPTIONS, } from './types';
7
8
  import type { ExecutionStrategy } from './services/e2e-runner';
8
- export interface TestExecutionAPI {
9
+ import type { E2ETestCase, E2ETestResult, E2ETestSuite, E2ETestSuiteResult } from './types';
10
+ export interface ITestExecutionAPI {
9
11
  /**
10
12
  * Simple test execution - convenience method for CLI
11
13
  * Auto-detects framework and uses sensible defaults
12
14
  */
13
- runTests(request: SimpleTestRequest): Promise<Result<TestRunResult, Error>>;
15
+ runTests(request: ISimpleTestRequest): Promise<Result<ITestRunResult, Error>>;
14
16
  /** Execute test suite */
15
- execute(request: ExecuteTestsRequest): Promise<Result<TestRunResult, Error>>;
17
+ execute(request: IExecuteTestsRequest): Promise<Result<ITestRunResult, Error>>;
16
18
  /** Execute tests in parallel */
17
- executeParallel(request: ParallelExecutionRequest): Promise<Result<TestRunResult, Error>>;
19
+ executeParallel(request: IParallelExecutionRequest): Promise<Result<ITestRunResult, Error>>;
18
20
  /** Detect flaky tests */
19
- detectFlaky(request: FlakyDetectionRequest): Promise<Result<FlakyTestReport, Error>>;
21
+ detectFlaky(request: IFlakyDetectionRequest): Promise<Result<IFlakyTestReport, Error>>;
20
22
  /** Retry failed tests */
21
- retry(request: RetryRequest): Promise<Result<RetryResult, Error>>;
23
+ retry(request: IRetryRequest): Promise<Result<IRetryResult, Error>>;
22
24
  /** Get execution statistics */
23
- getStats(runId: string): Promise<Result<ExecutionStats, Error>>;
25
+ getStats(runId: string): Promise<Result<IExecutionStats, Error>>;
24
26
  /** Execute E2E test case */
25
27
  executeE2ETestCase?(testCase: E2ETestCase): Promise<Result<E2ETestResult, Error>>;
26
28
  /** Execute E2E test suite */
27
29
  executeE2ETestSuite?(suite: E2ETestSuite, strategy?: ExecutionStrategy): Promise<Result<E2ETestSuiteResult, Error>>;
28
30
  }
31
+ /** @deprecated Use ITestExecutionAPI */
32
+ export type TestExecutionAPI = ITestExecutionAPI;
29
33
  /**
30
34
  * Simple test request for CLI convenience method
31
35
  * Auto-detects framework and uses sensible defaults
32
36
  */
33
- export interface SimpleTestRequest {
37
+ export interface ISimpleTestRequest {
34
38
  /** Test files to execute */
35
39
  testFiles: string[];
36
40
  /** Run tests in parallel (default: true) */
@@ -42,19 +46,19 @@ export interface SimpleTestRequest {
42
46
  /** Number of parallel workers (default: auto based on file count) */
43
47
  workers?: number;
44
48
  }
45
- export interface ExecuteTestsRequest {
49
+ export interface IExecuteTestsRequest {
46
50
  testFiles: string[];
47
51
  framework: string;
48
52
  timeout?: number;
49
53
  env?: Record<string, string>;
50
54
  reporters?: string[];
51
55
  }
52
- export interface ParallelExecutionRequest extends ExecuteTestsRequest {
56
+ export interface IParallelExecutionRequest extends IExecuteTestsRequest {
53
57
  workers: number;
54
58
  sharding?: 'file' | 'test' | 'time-balanced';
55
59
  isolation?: 'process' | 'worker' | 'none';
56
60
  }
57
- export interface TestRunResult {
61
+ export interface ITestRunResult {
58
62
  runId: string;
59
63
  status: 'passed' | 'failed' | 'error';
60
64
  total: number;
@@ -62,10 +66,10 @@ export interface TestRunResult {
62
66
  failed: number;
63
67
  skipped: number;
64
68
  duration: number;
65
- failedTests: FailedTest[];
66
- coverage?: CoverageData;
69
+ failedTests: IFailedTest[];
70
+ coverage?: ICoverageData;
67
71
  }
68
- export interface FailedTest {
72
+ export interface IFailedTest {
69
73
  testId: string;
70
74
  testName: string;
71
75
  file: string;
@@ -73,23 +77,23 @@ export interface FailedTest {
73
77
  stack?: string;
74
78
  duration: number;
75
79
  }
76
- export interface CoverageData {
80
+ export interface ICoverageData {
77
81
  line: number;
78
82
  branch: number;
79
83
  function: number;
80
84
  statement: number;
81
85
  }
82
- export interface FlakyDetectionRequest {
86
+ export interface IFlakyDetectionRequest {
83
87
  testFiles: string[];
84
88
  runs: number;
85
89
  threshold: number;
86
90
  }
87
- export interface FlakyTestReport {
88
- flakyTests: FlakyTest[];
91
+ export interface IFlakyTestReport {
92
+ flakyTests: IFlakyTest[];
89
93
  totalRuns: number;
90
94
  analysisTime: number;
91
95
  }
92
- export interface FlakyTest {
96
+ export interface IFlakyTest {
93
97
  testId: string;
94
98
  testName: string;
95
99
  file: string;
@@ -97,20 +101,20 @@ export interface FlakyTest {
97
101
  pattern: 'timing' | 'ordering' | 'resource' | 'async' | 'unknown';
98
102
  recommendation: string;
99
103
  }
100
- export interface RetryRequest {
104
+ export interface IRetryRequest {
101
105
  runId: string;
102
106
  failedTests: string[];
103
107
  maxRetries: number;
104
108
  backoff?: 'linear' | 'exponential';
105
109
  }
106
- export interface RetryResult {
110
+ export interface IRetryResult {
107
111
  originalFailed: number;
108
112
  retried: number;
109
113
  nowPassing: number;
110
114
  stillFailing: number;
111
115
  flakyDetected: string[];
112
116
  }
113
- export interface ExecutionStats {
117
+ export interface IExecutionStats {
114
118
  runId: string;
115
119
  startTime: Date;
116
120
  endTime: Date;
@@ -119,4 +123,197 @@ export interface ExecutionStats {
119
123
  workers: number;
120
124
  memoryUsage: number;
121
125
  }
126
+ import type { TestExecutionState, TestExecutionAction } from '../../integrations/rl-suite/interfaces.js';
127
+ import type { Priority, DomainName } from '../../shared/types';
128
+ /**
129
+ * Extended test execution state for prioritization
130
+ */
131
+ export interface TestPrioritizationState extends TestExecutionState {
132
+ /** Test file path */
133
+ filePath: string;
134
+ /** Test name within the file */
135
+ testName: string;
136
+ /** Test complexity score (0-1) */
137
+ complexity: number;
138
+ /** Estimated execution time (ms) */
139
+ estimatedDuration: number;
140
+ /** Code coverage percentage (0-100) */
141
+ coverage: number;
142
+ /** Recent failure rate (0-1) */
143
+ failureRate: number;
144
+ /** Flakiness score (0-1) */
145
+ flakinessScore: number;
146
+ /** Number of recent executions */
147
+ executionCount: number;
148
+ /** Time since last modification (ms) */
149
+ timeSinceModification: number;
150
+ /** Business criticality (0-1) */
151
+ businessCriticality: number;
152
+ /** Dependency count (number of tests this depends on) */
153
+ dependencyCount: number;
154
+ /** Priority assigned by human or rules */
155
+ assignedPriority: Priority;
156
+ /** Domain this test belongs to */
157
+ domain: DomainName;
158
+ }
159
+ /**
160
+ * Normalized feature vector for DT input
161
+ * Features are normalized to [0, 1] range for stable training
162
+ */
163
+ export interface TestPrioritizationFeatures {
164
+ /** Feature 0: Failure probability (recent history) */
165
+ failureProbability: number;
166
+ /** Feature 1: Flakiness score */
167
+ flakiness: number;
168
+ /** Feature 2: Complexity */
169
+ complexity: number;
170
+ /** Feature 3: Coverage gap (1 - coverage) */
171
+ coverageGap: number;
172
+ /** Feature 4: Business criticality */
173
+ criticality: number;
174
+ /** Feature 5: Execution speed (inverse of duration) */
175
+ speed: number;
176
+ /** Feature 6: Age (inverse of time since modification) */
177
+ age: number;
178
+ /** Feature 7: Dependency complexity */
179
+ dependencyComplexity: number;
180
+ }
181
+ /**
182
+ * Map test metadata to normalized feature vector
183
+ */
184
+ export declare function mapToFeatures(test: Partial<TestPrioritizationState>): TestPrioritizationFeatures;
185
+ /**
186
+ * Convert features to numeric array for RL algorithms
187
+ */
188
+ export declare function featuresToArray(features: TestPrioritizationFeatures): number[];
189
+ /**
190
+ * Priority level action for test ordering
191
+ */
192
+ export type PriorityAction = 'critical' | 'high' | 'standard' | 'low' | 'defer';
193
+ /**
194
+ * Test prioritization action
195
+ */
196
+ export interface TestPrioritizationAction extends TestExecutionAction {
197
+ type: 'prioritize';
198
+ /** Priority level */
199
+ value: PriorityAction;
200
+ /** Position in execution queue (0 = first) */
201
+ position?: number;
202
+ /** Reasoning for priority */
203
+ reasoning?: string;
204
+ /** Confidence score (0-1) */
205
+ confidence: number;
206
+ }
207
+ /**
208
+ * Map priority action to numeric score for sorting
209
+ */
210
+ export declare function priorityToScore(action: PriorityAction): number;
211
+ /**
212
+ * Map priority action to Priority enum
213
+ */
214
+ export declare function priorityActionToPriority(action: PriorityAction): Priority;
215
+ /**
216
+ * Execution context for prioritization decisions
217
+ */
218
+ export interface TestPrioritizationContext {
219
+ /** Current run ID */
220
+ runId: string;
221
+ /** Total tests to execute */
222
+ totalTests: number;
223
+ /** Available execution time (ms) */
224
+ availableTime: number;
225
+ /** Number of workers for parallel execution */
226
+ workers: number;
227
+ /** Execution mode */
228
+ mode: 'sequential' | 'parallel';
229
+ /** Current phase */
230
+ phase: 'regression' | 'ci' | 'local' | 'smoke';
231
+ /** Previous run results (for learning) */
232
+ history?: TestExecutionHistory[];
233
+ }
234
+ /**
235
+ * Historical execution data for learning
236
+ */
237
+ export interface TestExecutionHistory {
238
+ testId: string;
239
+ timestamp: Date;
240
+ passed: boolean;
241
+ duration: number;
242
+ priority: Priority;
243
+ failureReason?: string;
244
+ }
245
+ /**
246
+ * Reward components for test prioritization
247
+ */
248
+ export interface TestPrioritizationReward {
249
+ /** Early failure detection reward */
250
+ earlyDetection: number;
251
+ /** Execution time efficiency */
252
+ timeEfficiency: number;
253
+ /** Coverage improvement */
254
+ coverageGain: number;
255
+ /** Flakiness reduction */
256
+ flakinessReduction: number;
257
+ /** Total reward */
258
+ total: number;
259
+ }
260
+ /**
261
+ * Calculate reward for test prioritization decision
262
+ */
263
+ export declare function calculatePrioritizationReward(context: TestPrioritizationContext, result: {
264
+ failedEarly: boolean;
265
+ executionTime: number;
266
+ coverageImproved: boolean;
267
+ flakyDetected: boolean;
268
+ }): TestPrioritizationReward;
269
+ /**
270
+ * Input metadata for creating test prioritization state
271
+ */
272
+ export interface TestPrioritizationMetadata {
273
+ filePath: string;
274
+ testName: string;
275
+ testType?: 'unit' | 'integration' | 'e2e' | 'performance' | 'security';
276
+ priority?: Priority;
277
+ complexity?: number;
278
+ domain?: DomainName;
279
+ dependencies?: string[];
280
+ estimatedDuration?: number;
281
+ coverage?: number;
282
+ failureHistory?: number[];
283
+ failureRate?: number;
284
+ flakinessScore?: number;
285
+ executionCount?: number;
286
+ timeSinceModification?: number;
287
+ businessCriticality?: number;
288
+ dependencyCount?: number;
289
+ assignedPriority?: Priority;
290
+ }
291
+ /**
292
+ * Create test prioritization state from test metadata
293
+ */
294
+ export declare function createTestPrioritizationState(testId: string, metadata: TestPrioritizationMetadata): TestPrioritizationState;
295
+ /** @deprecated Use ISimpleTestRequest */
296
+ export type SimpleTestRequest = ISimpleTestRequest;
297
+ /** @deprecated Use IExecuteTestsRequest */
298
+ export type ExecuteTestsRequest = IExecuteTestsRequest;
299
+ /** @deprecated Use IParallelExecutionRequest */
300
+ export type ParallelExecutionRequest = IParallelExecutionRequest;
301
+ /** @deprecated Use ITestRunResult */
302
+ export type TestRunResult = ITestRunResult;
303
+ /** @deprecated Use IFailedTest */
304
+ export type FailedTest = IFailedTest;
305
+ /** @deprecated Use ICoverageData */
306
+ export type CoverageData = ICoverageData;
307
+ /** @deprecated Use IFlakyDetectionRequest */
308
+ export type FlakyDetectionRequest = IFlakyDetectionRequest;
309
+ /** @deprecated Use IFlakyTestReport */
310
+ export type FlakyTestReport = IFlakyTestReport;
311
+ /** @deprecated Use IFlakyTest */
312
+ export type FlakyTest = IFlakyTest;
313
+ /** @deprecated Use IRetryRequest */
314
+ export type RetryRequest = IRetryRequest;
315
+ /** @deprecated Use IRetryResult */
316
+ export type RetryResult = IRetryResult;
317
+ /** @deprecated Use IExecutionStats */
318
+ export type ExecutionStats = IExecutionStats;
122
319
  //# sourceMappingURL=interfaces.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/domains/test-execution/interfaces.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,KAAK,EACV,WAAW,EACX,YAAY,EACZ,aAAa,EACb,kBAAkB,EACnB,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAM/D,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,QAAQ,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC,CAAC;IAE5E,yBAAyB;IACzB,OAAO,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC,CAAC;IAE7E,gCAAgC;IAChC,eAAe,CAAC,OAAO,EAAE,wBAAwB,GAAG,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC,CAAC;IAE1F,yBAAyB;IACzB,WAAW,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,KAAK,CAAC,CAAC,CAAC;IAErF,yBAAyB;IACzB,KAAK,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,K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EAAE,MAAM,EAAE,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,QAAQ,GAAG,aAAa,CAAC;CACpC;AAED,MAAM,WAAW,WAAW;IAC1B,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,EAAE,CAAC;CACzB;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,IAAI,CAAC;IAChB,OAAO,EAAE,IAAI,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;CACrB"}
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/domains/test-execution/interfaces.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAG5C,YAAY,EAEV,WAAW,EACX,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,aAAa,EACb,qBAAqB,EACrB,oBAAoB,EACpB,WAAW,EACX,WAAW,EACX,YAAY,EACZ,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,cAAc,EACd,aAAa,EACb,OAAO,EACP,aAAa,EACb,QAAQ,EACR,qBAAqB,EACrB,YAAY,EACZ,WAAW,EACX,aAAa,EACb,YAAY,EACZ,kBAAkB,EAClB,eAAe,EACf,cAAc,EACd,cAAc,EACd,uBAAuB,EAGvB,YAAY,EACZ,UAAU,EACV,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,WAAW,EACX,UAAU,EACV,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,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AClC,MAAM,MAAM,UAAU,GAAG,WAAW,CAAC;AACrC,oCAAoC;AACpC,MAAM,MAAM,YAAY,GAAG,aAAa,CAAC;AACzC,6CAA6C;AAC7C,MAAM,MAAM,qBAAqB,GAAG,sBAAsB,CAAC;AAC3D,uCAAuC;AACvC,MAAM,MAAM,eAAe,GAAG,gBAAgB,CAAC;AAC/C,iCAAiC;AACjC,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC;AACnC,oCAAoC;AACpC,MAAM,MAAM,YAAY,GAAG,aAAa,CAAC;AACzC,mCAAmC;AACnC,MAAM,MAAM,WAAW,GAAG,YAAY,CAAC;AACvC,sCAAsC;AACtC,MAAM,MAAM,cAAc,GAAG,eAAe,CAAC"}
@@ -1,6 +1,133 @@
1
1
  /**
2
- * Agentic QE v3 - Test Execution Domain Interface
3
- * Parallel test execution with intelligent retry
2
+ * Agentic QE v3 - Test Execution Domain Interfaces
3
+ * All types and interfaces for the test-execution domain
4
4
  */
5
- export {};
5
+ // Re-export factory functions
6
+ export { createNavigateStep, createClickStep, createTypeStep, createWaitStep, createAssertStep, createScreenshotStep, createA11yCheckStep, createE2ETestCase, isNavigateStep, isClickStep, isTypeStep, isWaitStep, isAssertStep, isScreenshotStep, isA11yCheckStep, isNavigateAction, isClickAction, isTypeAction, isAssertionAction, isLoginFlowTemplate, isCheckoutFlowTemplate, isFormSubmissionFlowTemplate, isSearchFlowTemplate, isNavigationFlowTemplate, DEFAULT_RECORDING_CONFIG, DEFAULT_CODE_GENERATION_OPTIONS, } from './types';
7
+ /**
8
+ * Map test metadata to normalized feature vector
9
+ */
10
+ export function mapToFeatures(test) {
11
+ // Normalize failure probability
12
+ const failureProbability = Math.min(1, test.failureRate ?? 0);
13
+ // Normalize flakiness
14
+ const flakiness = Math.min(1, test.flakinessScore ?? 0);
15
+ // Normalize complexity (already 0-1)
16
+ const complexity = test.complexity ?? 0.5;
17
+ // Calculate coverage gap
18
+ const coverageGap = 1 - (test.coverage ?? 0) / 100;
19
+ // Normalize criticality
20
+ const criticality = test.businessCriticality ?? 0.5;
21
+ // Normalize speed (faster = higher value)
22
+ const maxDuration = 60000; // 1 minute as baseline
23
+ const speed = Math.max(0, 1 - (test.estimatedDuration ?? 0) / maxDuration);
24
+ // Normalize age (newer tests = higher priority for recent changes)
25
+ const maxAge = 7 * 24 * 60 * 60 * 1000; // 1 week
26
+ const age = Math.max(0, 1 - (test.timeSinceModification ?? 0) / maxAge);
27
+ // Normalize dependency complexity
28
+ const dependencyComplexity = Math.min(1, (test.dependencyCount ?? 0) / 10);
29
+ return {
30
+ failureProbability,
31
+ flakiness,
32
+ complexity,
33
+ coverageGap,
34
+ criticality,
35
+ speed,
36
+ age,
37
+ dependencyComplexity,
38
+ };
39
+ }
40
+ /**
41
+ * Convert features to numeric array for RL algorithms
42
+ */
43
+ export function featuresToArray(features) {
44
+ return [
45
+ features.failureProbability,
46
+ features.flakiness,
47
+ features.complexity,
48
+ features.coverageGap,
49
+ features.criticality,
50
+ features.speed,
51
+ features.age,
52
+ features.dependencyComplexity,
53
+ ];
54
+ }
55
+ /**
56
+ * Map priority action to numeric score for sorting
57
+ */
58
+ export function priorityToScore(action) {
59
+ const scores = {
60
+ critical: 100,
61
+ high: 75,
62
+ standard: 50,
63
+ low: 25,
64
+ defer: 0,
65
+ };
66
+ return scores[action];
67
+ }
68
+ /**
69
+ * Map priority action to Priority enum
70
+ */
71
+ export function priorityActionToPriority(action) {
72
+ const mapping = {
73
+ critical: 'p0',
74
+ high: 'p1',
75
+ standard: 'p2',
76
+ low: 'p3',
77
+ defer: 'p3', // Map defer to lowest priority (p3)
78
+ };
79
+ return mapping[action];
80
+ }
81
+ /**
82
+ * Calculate reward for test prioritization decision
83
+ */
84
+ export function calculatePrioritizationReward(context, result) {
85
+ const earlyDetection = result.failedEarly ? 0.5 : 0;
86
+ const timeEfficiency = context.availableTime > 0
87
+ ? Math.max(0, 1 - result.executionTime / context.availableTime) * 0.3
88
+ : 0;
89
+ const coverageGain = result.coverageImproved ? 0.2 : 0;
90
+ const flakinessReduction = result.flakyDetected ? 0.1 : 0;
91
+ const total = earlyDetection + timeEfficiency + coverageGain + flakinessReduction;
92
+ return {
93
+ earlyDetection,
94
+ timeEfficiency,
95
+ coverageGain,
96
+ flakinessReduction,
97
+ total,
98
+ };
99
+ }
100
+ /**
101
+ * Create test prioritization state from test metadata
102
+ */
103
+ export function createTestPrioritizationState(testId, metadata) {
104
+ const features = mapToFeatures(metadata);
105
+ return {
106
+ id: testId,
107
+ features: featuresToArray(features),
108
+ testId,
109
+ testType: metadata.testType ?? 'unit',
110
+ priority: metadata.priority ?? metadata.assignedPriority ?? 'p2',
111
+ complexity: metadata.complexity ?? 0.5,
112
+ domain: metadata.domain ?? 'test-execution',
113
+ dependencies: metadata.dependencies ?? [],
114
+ estimatedDuration: metadata.estimatedDuration ?? 5000,
115
+ coverage: metadata.coverage ?? 0,
116
+ failureHistory: metadata.failureHistory ?? [],
117
+ filePath: metadata.filePath,
118
+ testName: metadata.testName,
119
+ failureRate: metadata.failureRate ?? 0,
120
+ flakinessScore: metadata.flakinessScore ?? 0,
121
+ executionCount: metadata.executionCount ?? 0,
122
+ timeSinceModification: metadata.timeSinceModification ?? 0,
123
+ businessCriticality: metadata.businessCriticality ?? 0.5,
124
+ dependencyCount: metadata.dependencyCount ?? 0,
125
+ assignedPriority: metadata.assignedPriority ?? metadata.priority ?? 'p2',
126
+ timestamp: new Date(),
127
+ metadata: {
128
+ ...metadata,
129
+ features,
130
+ },
131
+ };
132
+ }
6
133
  //# sourceMappingURL=interfaces.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/domains/test-execution/interfaces.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/domains/test-execution/interfaces.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAuEH,8BAA8B;AAC9B,OAAO,EACL,kBAAkB,EAClB,eAAe,EACf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AAiB,EAAE,QAAQ,CAAC,iBAAiB,IAAI,IAAI;QACrD,QAAQ,EAAE,QAAQ,CAAC,QAAQ,IAAI,CAAC;QAChC,cAAc,EAAE,QAAQ,CAAC,cAAc,IAAI,EAAE;QAC7C,QAAQ,EAAE,QAAQ,CAAC,QAAQ;QAC3B,QAAQ,EAAE,QAAQ,CAAC,QAAQ;QAC3B,WAAW,EAAE,QAAQ,CAAC,WAAW,IAAI,CAAC;QACtC,cAAc,EAAE,QAAQ,CAAC,cAAc,IAAI,CAAC;QAC5C,cAAc,EAAE,QAAQ,CAAC,cAAc,IAAI,CAAC;QAC5C,qBAAqB,EAAE,QAAQ,CAAC,qBAAqB,IAAI,CAAC;QAC1D,mBAAmB,EAAE,QAAQ,CAAC,mBAAmB,IAAI,GAAG;QACxD,eAAe,EAAE,QAAQ,CAAC,eAAe,IAAI,CAAC;QAC9C,gBAAgB,EAAE,QAAQ,CAAC,gBAAgB,IAAI,QAAQ,CAAC,QAAQ,IAAI,IAAI;QACxE,SAAS,EAAE,IAAI,IAAI,EAAE;QACrB,QAAQ,EAAE;YACR,GAAG,QAAQ;YACX,QAAQ;SACT;KACF,CAAC;AACJ,CAAC"}
@@ -3,7 +3,7 @@
3
3
  * Registers the test execution domain with the kernel
4
4
  */
5
5
  import { DomainName, DomainEvent } from '../../shared/types';
6
- import { BaseDomainPlugin } from '../domain-interface';
6
+ import { BaseDomainPlugin, TaskHandler } from '../domain-interface';
7
7
  import { EventBus, MemoryBackend } from '../../kernel/interfaces';
8
8
  export declare class TestExecutionPlugin extends BaseDomainPlugin {
9
9
  private coordinator;
@@ -15,6 +15,11 @@ export declare class TestExecutionPlugin extends BaseDomainPlugin {
15
15
  * Get the domain's public API
16
16
  */
17
17
  getAPI<T>(): T;
18
+ /**
19
+ * Get task handlers for direct Queen-Domain integration
20
+ * Maps task types to coordinator methods
21
+ */
22
+ protected getTaskHandlers(): Map<string, TaskHandler>;
18
23
  protected onInitialize(): Promise<void>;
19
24
  protected onDispose(): Promise<void>;
20
25
  protected onEvent(event: DomainEvent): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../src/domains/test-execution/plugin.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAQlE,qBAAa,mBAAoB,SAAQ,gBAAgB;IACvD,OAAO,CAAC,WAAW,CAAyC;gBAEhD,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,aAAa;IAIrD,IAAI,IAAI,IAAI,UAAU,CAErB;IAED,IAAI,OAAO,IAAI,MAAM,CAEpB;IAED,IAAI,YAAY,IAAI,UAAU,EAAE,CAG/B;IAED;;OAEG;IACH,MAAM,CAAC,CAAC,KAAK,CAAC;cAuBE,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;cAc7B,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;cAW1B,OAAO,CAAC,KAAK,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAoB1D,SAAS,CAAC,iBAAiB,IAAI,IAAI;YAmBrB,sBAAsB;YAwBtB,0BAA0B;YAyB1B,yBAAyB;CAyBxC;AAMD,wBAAgB,yBAAyB,CACvC,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,aAAa,GACpB,mBAAmB,CAErB"}
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../src/domains/test-execution/plugin.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,UAAU,EAAE,WAAW,EAAmB,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,a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