agentic-qe 3.3.0 → 3.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (367) hide show
  1. package/README.md +6 -2
  2. package/package.json +6 -1
  3. package/v3/CHANGELOG.md +88 -0
  4. package/v3/dist/cli/bundle.js +18794 -15534
  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/task-executor.js +2 -2
  130. package/v3/dist/coordination/task-executor.js.map +1 -1
  131. package/v3/dist/domains/chaos-resilience/plugin.js +2 -2
  132. package/v3/dist/domains/chaos-resilience/plugin.js.map +1 -1
  133. package/v3/dist/domains/code-intelligence/plugin.js +2 -2
  134. package/v3/dist/domains/code-intelligence/plugin.js.map +1 -1
  135. package/v3/dist/domains/contract-testing/plugin.js +2 -2
  136. package/v3/dist/domains/contract-testing/plugin.js.map +1 -1
  137. package/v3/dist/domains/coverage-analysis/plugin.d.ts.map +1 -1
  138. package/v3/dist/domains/coverage-analysis/plugin.js +2 -1
  139. package/v3/dist/domains/coverage-analysis/plugin.js.map +1 -1
  140. package/v3/dist/domains/defect-intelligence/plugin.js +2 -2
  141. package/v3/dist/domains/defect-intelligence/plugin.js.map +1 -1
  142. package/v3/dist/domains/domain-interface.d.ts.map +1 -1
  143. package/v3/dist/domains/domain-interface.js +3 -1
  144. package/v3/dist/domains/domain-interface.js.map +1 -1
  145. package/v3/dist/domains/learning-optimization/plugin.js +2 -2
  146. package/v3/dist/domains/learning-optimization/plugin.js.map +1 -1
  147. package/v3/dist/domains/quality-assessment/plugin.js +2 -2
  148. package/v3/dist/domains/quality-assessment/plugin.js.map +1 -1
  149. package/v3/dist/domains/requirements-validation/plugin.js +2 -2
  150. package/v3/dist/domains/requirements-validation/plugin.js.map +1 -1
  151. package/v3/dist/domains/security-compliance/plugin.js +2 -2
  152. package/v3/dist/domains/security-compliance/plugin.js.map +1 -1
  153. package/v3/dist/domains/test-execution/index.d.ts +2 -1
  154. package/v3/dist/domains/test-execution/index.d.ts.map +1 -1
  155. package/v3/dist/domains/test-execution/index.js +0 -2
  156. package/v3/dist/domains/test-execution/index.js.map +1 -1
  157. package/v3/dist/domains/test-execution/interfaces.d.ts +222 -25
  158. package/v3/dist/domains/test-execution/interfaces.d.ts.map +1 -1
  159. package/v3/dist/domains/test-execution/interfaces.js +130 -3
  160. package/v3/dist/domains/test-execution/interfaces.js.map +1 -1
  161. package/v3/dist/domains/test-execution/plugin.d.ts.map +1 -1
  162. package/v3/dist/domains/test-execution/plugin.js +2 -1
  163. package/v3/dist/domains/test-execution/plugin.js.map +1 -1
  164. package/v3/dist/domains/test-execution/test-prioritization-types.d.ts +5 -172
  165. package/v3/dist/domains/test-execution/test-prioritization-types.d.ts.map +1 -1
  166. package/v3/dist/domains/test-execution/test-prioritization-types.js +6 -129
  167. package/v3/dist/domains/test-execution/test-prioritization-types.js.map +1 -1
  168. package/v3/dist/domains/test-execution/types/index.d.ts +7 -3
  169. package/v3/dist/domains/test-execution/types/index.d.ts.map +1 -1
  170. package/v3/dist/domains/test-execution/types/index.js +7 -17
  171. package/v3/dist/domains/test-execution/types/index.js.map +1 -1
  172. package/v3/dist/domains/test-generation/coordinator.d.ts +1 -1
  173. package/v3/dist/domains/test-generation/coordinator.d.ts.map +1 -1
  174. package/v3/dist/domains/test-generation/coordinator.js +3 -3
  175. package/v3/dist/domains/test-generation/coordinator.js.map +1 -1
  176. package/v3/dist/domains/test-generation/factories/index.d.ts +8 -0
  177. package/v3/dist/domains/test-generation/factories/index.d.ts.map +1 -0
  178. package/v3/dist/domains/test-generation/factories/index.js +8 -0
  179. package/v3/dist/domains/test-generation/factories/index.js.map +1 -0
  180. package/v3/dist/domains/test-generation/factories/test-generator-factory.d.ts +108 -0
  181. package/v3/dist/domains/test-generation/factories/test-generator-factory.d.ts.map +1 -0
  182. package/v3/dist/domains/test-generation/factories/test-generator-factory.js +158 -0
  183. package/v3/dist/domains/test-generation/factories/test-generator-factory.js.map +1 -0
  184. package/v3/dist/domains/test-generation/generators/base-test-generator.d.ts +79 -0
  185. package/v3/dist/domains/test-generation/generators/base-test-generator.d.ts.map +1 -0
  186. package/v3/dist/domains/test-generation/generators/base-test-generator.js +252 -0
  187. package/v3/dist/domains/test-generation/generators/base-test-generator.js.map +1 -0
  188. package/v3/dist/domains/test-generation/generators/index.d.ts +11 -0
  189. package/v3/dist/domains/test-generation/generators/index.d.ts.map +1 -0
  190. package/v3/dist/domains/test-generation/generators/index.js +13 -0
  191. package/v3/dist/domains/test-generation/generators/index.js.map +1 -0
  192. package/v3/dist/domains/test-generation/generators/jest-vitest-generator.d.ts +77 -0
  193. package/v3/dist/domains/test-generation/generators/jest-vitest-generator.d.ts.map +1 -0
  194. package/v3/dist/domains/test-generation/generators/jest-vitest-generator.js +365 -0
  195. package/v3/dist/domains/test-generation/generators/jest-vitest-generator.js.map +1 -0
  196. package/v3/dist/domains/test-generation/generators/mocha-generator.d.ts +56 -0
  197. package/v3/dist/domains/test-generation/generators/mocha-generator.d.ts.map +1 -0
  198. package/v3/dist/domains/test-generation/generators/mocha-generator.js +197 -0
  199. package/v3/dist/domains/test-generation/generators/mocha-generator.js.map +1 -0
  200. package/v3/dist/domains/test-generation/generators/pytest-generator.d.ts +66 -0
  201. package/v3/dist/domains/test-generation/generators/pytest-generator.d.ts.map +1 -0
  202. package/v3/dist/domains/test-generation/generators/pytest-generator.js +240 -0
  203. package/v3/dist/domains/test-generation/generators/pytest-generator.js.map +1 -0
  204. package/v3/dist/domains/test-generation/index.d.ts +2 -2
  205. package/v3/dist/domains/test-generation/index.d.ts.map +1 -1
  206. package/v3/dist/domains/test-generation/index.js +3 -3
  207. package/v3/dist/domains/test-generation/index.js.map +1 -1
  208. package/v3/dist/domains/test-generation/interfaces/index.d.ts +9 -0
  209. package/v3/dist/domains/test-generation/interfaces/index.d.ts.map +1 -0
  210. package/v3/dist/domains/test-generation/interfaces/index.js +9 -0
  211. package/v3/dist/domains/test-generation/interfaces/index.js.map +1 -0
  212. package/v3/dist/domains/test-generation/interfaces/test-generator.interface.d.ts +166 -0
  213. package/v3/dist/domains/test-generation/interfaces/test-generator.interface.d.ts.map +1 -0
  214. package/v3/dist/domains/test-generation/interfaces/test-generator.interface.js +8 -0
  215. package/v3/dist/domains/test-generation/interfaces/test-generator.interface.js.map +1 -0
  216. package/v3/dist/domains/test-generation/interfaces.d.ts +163 -24
  217. package/v3/dist/domains/test-generation/interfaces.d.ts.map +1 -1
  218. package/v3/dist/domains/test-generation/interfaces.js +2 -2
  219. package/v3/dist/domains/test-generation/plugin.d.ts.map +1 -1
  220. package/v3/dist/domains/test-generation/plugin.js +6 -5
  221. package/v3/dist/domains/test-generation/plugin.js.map +1 -1
  222. package/v3/dist/domains/test-generation/{coherence-gate.d.ts → services/coherence-gate-service.d.ts} +4 -4
  223. package/v3/dist/domains/test-generation/services/coherence-gate-service.d.ts.map +1 -0
  224. package/v3/dist/domains/test-generation/{coherence-gate.js → services/coherence-gate-service.js} +2 -2
  225. package/v3/dist/domains/test-generation/services/coherence-gate-service.js.map +1 -0
  226. package/v3/dist/domains/test-generation/services/index.d.ts +8 -2
  227. package/v3/dist/domains/test-generation/services/index.d.ts.map +1 -1
  228. package/v3/dist/domains/test-generation/services/index.js +10 -3
  229. package/v3/dist/domains/test-generation/services/index.js.map +1 -1
  230. package/v3/dist/domains/test-generation/services/property-test-generator.d.ts +34 -0
  231. package/v3/dist/domains/test-generation/services/property-test-generator.d.ts.map +1 -0
  232. package/v3/dist/domains/test-generation/services/property-test-generator.js +306 -0
  233. package/v3/dist/domains/test-generation/services/property-test-generator.js.map +1 -0
  234. package/v3/dist/domains/test-generation/services/tdd-generator.d.ts +33 -0
  235. package/v3/dist/domains/test-generation/services/tdd-generator.d.ts.map +1 -0
  236. package/v3/dist/domains/test-generation/services/tdd-generator.js +342 -0
  237. package/v3/dist/domains/test-generation/services/tdd-generator.js.map +1 -0
  238. package/v3/dist/domains/test-generation/services/test-data-generator.d.ts +34 -0
  239. package/v3/dist/domains/test-generation/services/test-data-generator.d.ts.map +1 -0
  240. package/v3/dist/domains/test-generation/services/test-data-generator.js +245 -0
  241. package/v3/dist/domains/test-generation/services/test-data-generator.js.map +1 -0
  242. package/v3/dist/domains/test-generation/services/test-generator.d.ts +51 -160
  243. package/v3/dist/domains/test-generation/services/test-generator.d.ts.map +1 -1
  244. package/v3/dist/domains/test-generation/services/test-generator.js +101 -1858
  245. package/v3/dist/domains/test-generation/services/test-generator.js.map +1 -1
  246. package/v3/dist/domains/visual-accessibility/plugin.js +2 -2
  247. package/v3/dist/domains/visual-accessibility/plugin.js.map +1 -1
  248. package/v3/dist/init/phases/12-verification.d.ts +23 -0
  249. package/v3/dist/init/phases/12-verification.d.ts.map +1 -1
  250. package/v3/dist/init/phases/12-verification.js +185 -2
  251. package/v3/dist/init/phases/12-verification.js.map +1 -1
  252. package/v3/dist/integrations/agentic-flow/model-router/complexity-analyzer.d.ts +24 -62
  253. package/v3/dist/integrations/agentic-flow/model-router/complexity-analyzer.d.ts.map +1 -1
  254. package/v3/dist/integrations/agentic-flow/model-router/complexity-analyzer.js +45 -497
  255. package/v3/dist/integrations/agentic-flow/model-router/complexity-analyzer.js.map +1 -1
  256. package/v3/dist/integrations/agentic-flow/model-router/router.js +2 -2
  257. package/v3/dist/integrations/agentic-flow/model-router/router.js.map +1 -1
  258. package/v3/dist/integrations/agentic-flow/model-router/score-calculator.d.ts +98 -0
  259. package/v3/dist/integrations/agentic-flow/model-router/score-calculator.d.ts.map +1 -0
  260. package/v3/dist/integrations/agentic-flow/model-router/score-calculator.js +197 -0
  261. package/v3/dist/integrations/agentic-flow/model-router/score-calculator.js.map +1 -0
  262. package/v3/dist/integrations/agentic-flow/model-router/signal-collector.d.ts +102 -0
  263. package/v3/dist/integrations/agentic-flow/model-router/signal-collector.d.ts.map +1 -0
  264. package/v3/dist/integrations/agentic-flow/model-router/signal-collector.js +372 -0
  265. package/v3/dist/integrations/agentic-flow/model-router/signal-collector.js.map +1 -0
  266. package/v3/dist/integrations/agentic-flow/model-router/tier-recommender.d.ts +64 -0
  267. package/v3/dist/integrations/agentic-flow/model-router/tier-recommender.d.ts.map +1 -0
  268. package/v3/dist/integrations/agentic-flow/model-router/tier-recommender.js +120 -0
  269. package/v3/dist/integrations/agentic-flow/model-router/tier-recommender.js.map +1 -0
  270. package/v3/dist/integrations/coherence/coherence-service.d.ts.map +1 -1
  271. package/v3/dist/integrations/coherence/coherence-service.js +87 -30
  272. package/v3/dist/integrations/coherence/coherence-service.js.map +1 -1
  273. package/v3/dist/integrations/coherence/engines/spectral-adapter.d.ts.map +1 -1
  274. package/v3/dist/integrations/coherence/engines/spectral-adapter.js +124 -35
  275. package/v3/dist/integrations/coherence/engines/spectral-adapter.js.map +1 -1
  276. package/v3/dist/learning/memory-auditor.d.ts.map +1 -1
  277. package/v3/dist/learning/memory-auditor.js +3 -1
  278. package/v3/dist/learning/memory-auditor.js.map +1 -1
  279. package/v3/dist/mcp/bundle.js +2475 -1463
  280. package/v3/dist/mcp/security/cve-prevention.d.ts +31 -134
  281. package/v3/dist/mcp/security/cve-prevention.d.ts.map +1 -1
  282. package/v3/dist/mcp/security/cve-prevention.js +37 -562
  283. package/v3/dist/mcp/security/cve-prevention.js.map +1 -1
  284. package/v3/dist/mcp/security/index.d.ts +5 -1
  285. package/v3/dist/mcp/security/index.d.ts.map +1 -1
  286. package/v3/dist/mcp/security/validators/command-validator.d.ts +41 -0
  287. package/v3/dist/mcp/security/validators/command-validator.d.ts.map +1 -0
  288. package/v3/dist/mcp/security/validators/command-validator.js +123 -0
  289. package/v3/dist/mcp/security/validators/command-validator.js.map +1 -0
  290. package/v3/dist/mcp/security/validators/crypto-validator.d.ts +40 -0
  291. package/v3/dist/mcp/security/validators/crypto-validator.d.ts.map +1 -0
  292. package/v3/dist/mcp/security/validators/crypto-validator.js +72 -0
  293. package/v3/dist/mcp/security/validators/crypto-validator.js.map +1 -0
  294. package/v3/dist/mcp/security/validators/index.d.ts +12 -0
  295. package/v3/dist/mcp/security/validators/index.d.ts.map +1 -0
  296. package/v3/dist/mcp/security/validators/index.js +22 -0
  297. package/v3/dist/mcp/security/validators/index.js.map +1 -0
  298. package/v3/dist/mcp/security/validators/input-sanitizer.d.ts +56 -0
  299. package/v3/dist/mcp/security/validators/input-sanitizer.d.ts.map +1 -0
  300. package/v3/dist/mcp/security/validators/input-sanitizer.js +157 -0
  301. package/v3/dist/mcp/security/validators/input-sanitizer.js.map +1 -0
  302. package/v3/dist/mcp/security/validators/interfaces.d.ts +164 -0
  303. package/v3/dist/mcp/security/validators/interfaces.d.ts.map +1 -0
  304. package/v3/dist/mcp/security/validators/interfaces.js +6 -0
  305. package/v3/dist/mcp/security/validators/interfaces.js.map +1 -0
  306. package/v3/dist/mcp/security/validators/path-traversal-validator.d.ts +50 -0
  307. package/v3/dist/mcp/security/validators/path-traversal-validator.d.ts.map +1 -0
  308. package/v3/dist/mcp/security/validators/path-traversal-validator.js +242 -0
  309. package/v3/dist/mcp/security/validators/path-traversal-validator.js.map +1 -0
  310. package/v3/dist/mcp/security/validators/regex-safety-validator.d.ts +50 -0
  311. package/v3/dist/mcp/security/validators/regex-safety-validator.d.ts.map +1 -0
  312. package/v3/dist/mcp/security/validators/regex-safety-validator.js +183 -0
  313. package/v3/dist/mcp/security/validators/regex-safety-validator.js.map +1 -0
  314. package/v3/dist/mcp/security/validators/validation-orchestrator.d.ts +66 -0
  315. package/v3/dist/mcp/security/validators/validation-orchestrator.d.ts.map +1 -0
  316. package/v3/dist/mcp/security/validators/validation-orchestrator.js +146 -0
  317. package/v3/dist/mcp/security/validators/validation-orchestrator.js.map +1 -0
  318. package/v3/dist/mcp/server.d.ts.map +1 -1
  319. package/v3/dist/mcp/server.js +1 -0
  320. package/v3/dist/mcp/server.js.map +1 -1
  321. package/v3/dist/mcp/tool-registry.d.ts +3 -1
  322. package/v3/dist/mcp/tool-registry.d.ts.map +1 -1
  323. package/v3/dist/mcp/tool-registry.js +155 -2
  324. package/v3/dist/mcp/tool-registry.js.map +1 -1
  325. package/v3/dist/mcp/tools/test-generation/generate.d.ts +1 -0
  326. package/v3/dist/mcp/tools/test-generation/generate.d.ts.map +1 -1
  327. package/v3/dist/mcp/tools/test-generation/generate.js +3 -2
  328. package/v3/dist/mcp/tools/test-generation/generate.js.map +1 -1
  329. package/v3/dist/sync/cloud/index.d.ts +8 -0
  330. package/v3/dist/sync/cloud/index.d.ts.map +1 -0
  331. package/v3/dist/sync/cloud/index.js +8 -0
  332. package/v3/dist/sync/cloud/index.js.map +1 -0
  333. package/v3/dist/sync/cloud/postgres-writer.d.ts +88 -0
  334. package/v3/dist/sync/cloud/postgres-writer.d.ts.map +1 -0
  335. package/v3/dist/sync/cloud/postgres-writer.js +319 -0
  336. package/v3/dist/sync/cloud/postgres-writer.js.map +1 -0
  337. package/v3/dist/sync/cloud/tunnel-manager.d.ts +75 -0
  338. package/v3/dist/sync/cloud/tunnel-manager.d.ts.map +1 -0
  339. package/v3/dist/sync/cloud/tunnel-manager.js +221 -0
  340. package/v3/dist/sync/cloud/tunnel-manager.js.map +1 -0
  341. package/v3/dist/sync/index.d.ts +35 -0
  342. package/v3/dist/sync/index.d.ts.map +1 -0
  343. package/v3/dist/sync/index.js +35 -0
  344. package/v3/dist/sync/index.js.map +1 -0
  345. package/v3/dist/sync/interfaces.d.ts +245 -0
  346. package/v3/dist/sync/interfaces.d.ts.map +1 -0
  347. package/v3/dist/sync/interfaces.js +160 -0
  348. package/v3/dist/sync/interfaces.js.map +1 -0
  349. package/v3/dist/sync/readers/index.d.ts +8 -0
  350. package/v3/dist/sync/readers/index.d.ts.map +1 -0
  351. package/v3/dist/sync/readers/index.js +8 -0
  352. package/v3/dist/sync/readers/index.js.map +1 -0
  353. package/v3/dist/sync/readers/json-reader.d.ts +95 -0
  354. package/v3/dist/sync/readers/json-reader.d.ts.map +1 -0
  355. package/v3/dist/sync/readers/json-reader.js +306 -0
  356. package/v3/dist/sync/readers/json-reader.js.map +1 -0
  357. package/v3/dist/sync/readers/sqlite-reader.d.ts +88 -0
  358. package/v3/dist/sync/readers/sqlite-reader.d.ts.map +1 -0
  359. package/v3/dist/sync/readers/sqlite-reader.js +255 -0
  360. package/v3/dist/sync/readers/sqlite-reader.js.map +1 -0
  361. package/v3/dist/sync/sync-agent.d.ts +116 -0
  362. package/v3/dist/sync/sync-agent.d.ts.map +1 -0
  363. package/v3/dist/sync/sync-agent.js +416 -0
  364. package/v3/dist/sync/sync-agent.js.map +1 -0
  365. package/v3/package.json +13 -2
  366. package/v3/dist/domains/test-generation/coherence-gate.d.ts.map +0 -1
  367. package/v3/dist/domains/test-generation/coherence-gate.js.map +0 -1
@@ -0,0 +1,291 @@
1
+ /**
2
+ * Wizard Utilities
3
+ * ADR-041: V3 QE CLI Enhancement
4
+ *
5
+ * Shared utilities for wizard prompts, validation, and formatting.
6
+ * Consolidates common functionality used across all wizards.
7
+ */
8
+ import chalk from 'chalk';
9
+ import { existsSync, statSync } from 'fs';
10
+ import { join, relative } from 'path';
11
+ // ============================================================================
12
+ // Prompt Utilities
13
+ // ============================================================================
14
+ /**
15
+ * Utility class for common wizard prompt operations
16
+ */
17
+ export class WizardPrompt {
18
+ /**
19
+ * Generic prompt helper - wraps readline.question in a Promise
20
+ */
21
+ static prompt(rl, question) {
22
+ return new Promise(resolve => {
23
+ rl.question(question, answer => {
24
+ resolve(answer);
25
+ });
26
+ });
27
+ }
28
+ /**
29
+ * Print a step header with consistent formatting
30
+ */
31
+ static printStepHeader(stepNumber, title, description) {
32
+ console.log('');
33
+ console.log(chalk.cyan(`Step ${stepNumber}: ${title}`));
34
+ if (description) {
35
+ console.log(chalk.gray(description));
36
+ }
37
+ console.log('');
38
+ }
39
+ /**
40
+ * Print wizard header/banner
41
+ */
42
+ static printWizardHeader(title, subtitle) {
43
+ console.log('');
44
+ console.log(chalk.blue('========================================'));
45
+ console.log(chalk.blue.bold(` ${title}`));
46
+ console.log(chalk.blue('========================================'));
47
+ if (subtitle) {
48
+ console.log(chalk.gray(subtitle));
49
+ }
50
+ console.log(chalk.gray('Press Ctrl+C to cancel at any time'));
51
+ console.log('');
52
+ }
53
+ /**
54
+ * Print configuration summary header
55
+ */
56
+ static printSummaryHeader() {
57
+ console.log('');
58
+ console.log(chalk.blue('========================================'));
59
+ console.log(chalk.blue.bold(' Configuration Summary'));
60
+ console.log(chalk.blue('========================================'));
61
+ console.log('');
62
+ }
63
+ /**
64
+ * Print a summary field with consistent formatting
65
+ */
66
+ static printSummaryField(label, value, options) {
67
+ const indent = options?.indent ?? ' ';
68
+ const maxItems = options?.maxItems ?? 5;
69
+ const formatValue = options?.formatValue ?? ((v) => chalk.cyan(v));
70
+ if (Array.isArray(value)) {
71
+ if (value.length === 0) {
72
+ console.log(chalk.white(`${indent}${label}: ${chalk.gray('(none)')}`));
73
+ }
74
+ else if (value.length <= maxItems) {
75
+ console.log(chalk.white(`${indent}${label}: ${formatValue(value.join(', '))}`));
76
+ }
77
+ else {
78
+ console.log(chalk.white(`${indent}${label}:`));
79
+ value.slice(0, maxItems).forEach(v => {
80
+ console.log(chalk.gray(`${indent} - ${v}`));
81
+ });
82
+ console.log(chalk.gray(`${indent} ... and ${value.length - maxItems} more`));
83
+ }
84
+ }
85
+ else {
86
+ const paddedLabel = label.padEnd(16);
87
+ console.log(chalk.white(`${indent}${paddedLabel}${formatValue(value)}`));
88
+ }
89
+ }
90
+ /**
91
+ * Print derived/additional settings
92
+ */
93
+ static printDerivedSettings(settings, indent = ' ') {
94
+ console.log('');
95
+ console.log(chalk.gray(`${indent}Derived settings:`));
96
+ for (const [key, value] of Object.entries(settings)) {
97
+ console.log(chalk.gray(`${indent} ${key}: ${value}`));
98
+ }
99
+ console.log('');
100
+ }
101
+ }
102
+ // ============================================================================
103
+ // Validation Utilities
104
+ // ============================================================================
105
+ /**
106
+ * Utility class for common validation operations
107
+ */
108
+ export class WizardValidation {
109
+ /**
110
+ * Validate a path exists
111
+ */
112
+ static pathExists(path) {
113
+ return existsSync(path);
114
+ }
115
+ /**
116
+ * Validate a path is a directory
117
+ */
118
+ static isDirectory(path) {
119
+ try {
120
+ return existsSync(path) && statSync(path).isDirectory();
121
+ }
122
+ catch {
123
+ return false;
124
+ }
125
+ }
126
+ /**
127
+ * Validate a path is a file
128
+ */
129
+ static isFile(path) {
130
+ try {
131
+ return existsSync(path) && statSync(path).isFile();
132
+ }
133
+ catch {
134
+ return false;
135
+ }
136
+ }
137
+ /**
138
+ * Validate a number is within range
139
+ */
140
+ static inRange(value, min, max) {
141
+ return value >= min && value <= max;
142
+ }
143
+ /**
144
+ * Validate a value is in an allowed list
145
+ */
146
+ static isOneOf(value, allowed) {
147
+ return allowed.includes(value);
148
+ }
149
+ }
150
+ // ============================================================================
151
+ // Suggestion Providers
152
+ // ============================================================================
153
+ /**
154
+ * Utility class for generating suggestions based on project structure
155
+ */
156
+ export class WizardSuggestions {
157
+ /**
158
+ * Get suggestions for source directories
159
+ */
160
+ static getSourceDirectories(cwd) {
161
+ const suggestions = [];
162
+ const commonDirs = ['src', 'lib', 'app', 'packages', 'api'];
163
+ for (const dir of commonDirs) {
164
+ const dirPath = join(cwd, dir);
165
+ if (existsSync(dirPath) && statSync(dirPath).isDirectory()) {
166
+ suggestions.push(dir);
167
+ }
168
+ }
169
+ return suggestions;
170
+ }
171
+ /**
172
+ * Get suggestions for coverage analysis targets
173
+ */
174
+ static getCoverageTargets(cwd) {
175
+ const suggestions = WizardSuggestions.getSourceDirectories(cwd);
176
+ // Check for coverage report files/directories
177
+ const coverageLocations = [
178
+ 'coverage',
179
+ 'coverage/lcov.info',
180
+ 'coverage/coverage-final.json',
181
+ '.nyc_output',
182
+ ];
183
+ for (const loc of coverageLocations) {
184
+ const locPath = join(cwd, loc);
185
+ if (existsSync(locPath)) {
186
+ suggestions.push(loc);
187
+ }
188
+ }
189
+ return suggestions;
190
+ }
191
+ /**
192
+ * Get suggestions for security scan targets
193
+ */
194
+ static getSecurityTargets(cwd) {
195
+ const suggestions = WizardSuggestions.getSourceDirectories(cwd);
196
+ // Check for security-relevant files
197
+ const securityFiles = [
198
+ 'package.json',
199
+ 'package-lock.json',
200
+ 'yarn.lock',
201
+ 'pnpm-lock.yaml',
202
+ '.env',
203
+ '.env.example',
204
+ 'docker-compose.yml',
205
+ 'Dockerfile',
206
+ ];
207
+ for (const file of securityFiles) {
208
+ const filePath = join(cwd, file);
209
+ if (existsSync(filePath)) {
210
+ suggestions.push(file);
211
+ }
212
+ }
213
+ return suggestions;
214
+ }
215
+ /**
216
+ * Get suggestions for test generation source files
217
+ */
218
+ static getTestSourceFiles(cwd) {
219
+ const suggestions = [];
220
+ const commonDirs = ['src', 'lib', 'app', 'packages'];
221
+ for (const dir of commonDirs) {
222
+ const dirPath = join(cwd, dir);
223
+ if (existsSync(dirPath) && statSync(dirPath).isDirectory()) {
224
+ suggestions.push(`${dir}/**/*.ts`);
225
+ suggestions.push(dir);
226
+ }
227
+ }
228
+ // Add specific patterns for TypeScript projects
229
+ if (existsSync(join(cwd, 'src'))) {
230
+ suggestions.push('src/services/**/*.ts');
231
+ suggestions.push('src/utils/**/*.ts');
232
+ suggestions.push('src/components/**/*.tsx');
233
+ }
234
+ return suggestions;
235
+ }
236
+ /**
237
+ * Check if pre-trained patterns exist
238
+ */
239
+ static checkPatternsExist(cwd) {
240
+ const patternLocations = [
241
+ join(cwd, '.agentic-qe', 'patterns'),
242
+ join(cwd, '.agentic-qe', 'memory.db'),
243
+ join(cwd, '.aqe', 'patterns'),
244
+ join(cwd, 'data', 'patterns'),
245
+ ];
246
+ return patternLocations.some(loc => existsSync(loc));
247
+ }
248
+ }
249
+ // ============================================================================
250
+ // Format Utilities
251
+ // ============================================================================
252
+ /**
253
+ * Utility class for formatting output
254
+ */
255
+ export class WizardFormat {
256
+ /**
257
+ * Format a path relative to cwd
258
+ */
259
+ static relativePath(path, cwd) {
260
+ return relative(cwd, path) || '.';
261
+ }
262
+ /**
263
+ * Format a boolean as Yes/No
264
+ */
265
+ static yesNo(value) {
266
+ return value ? 'Yes' : 'No';
267
+ }
268
+ /**
269
+ * Format a boolean as Enabled/Disabled
270
+ */
271
+ static enabledDisabled(value) {
272
+ return value ? 'Enabled' : 'Disabled';
273
+ }
274
+ /**
275
+ * Format a percentage
276
+ */
277
+ static percentage(value) {
278
+ return `${value}%`;
279
+ }
280
+ /**
281
+ * Format an array with optional truncation
282
+ */
283
+ static truncatedList(items, maxItems = 5) {
284
+ if (items.length === 0)
285
+ return '(none)';
286
+ if (items.length <= maxItems)
287
+ return items.join(', ');
288
+ return `${items.slice(0, maxItems).join(', ')}... and ${items.length - maxItems} more`;
289
+ }
290
+ }
291
+ //# sourceMappingURL=wizard-utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wizard-utils.js","sourceRoot":"","sources":["../../../../src/cli/wizards/core/wizard-utils.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,IAAI,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAGtC,+EAA+E;AAC/E,mBAAmB;AACnB,+EAA+E;AAE/E;;GAEG;AACH,MAAM,OAAO,YAAY;IACvB;;OAEG;IACH,MAAM,CAAC,MAAM,CAAC,EAAsB,EAAE,QAAgB;QACpD,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE;YAC3B,EAAE,CAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC,EAAE;gBAC7B,OAAO,CAAC,MAAM,CAAC,CAAC;YAClB,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,eAAe,CAAC,UAAkB,EAAE,KAAa,EAAE,WAAoB;QAC5E,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAChB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,UAAU,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC;QACxD,IAAI,WAAW,EAAE,CAAC;YAChB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QACvC,CAAC;QACD,OAAO,CAAC,GAAG,CA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AU,CAAC;IACxC,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,UAAU,CAAC,KAAa;QAC7B,OAAO,GAAG,KAAK,GAAG,CAAC;IACrB,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,aAAa,CAAC,KAAe,EAAE,WAAmB,CAAC;QACxD,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,QAAQ,CAAC;QACxC,IAAI,KAAK,CAAC,MAAM,IAAI,QAAQ;YAAE,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACtD,OAAO,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,KAAK,CAAC,MAAM,GAAG,QAAQ,OAAO,CAAC;IACzF,CAAC;CACF"}
@@ -3,9 +3,9 @@
3
3
  * ADR-041: V3 QE CLI Enhancement
4
4
  *
5
5
  * Interactive wizard for coverage analysis with step-by-step configuration.
6
- * Prompts for target directory, gap detection sensitivity, report format,
7
- * priority focus areas, risk scoring, and threshold percentage.
6
+ * Refactored to use Command Pattern for reduced complexity and better reusability.
8
7
  */
8
+ import { BaseWizard, BaseWizardResult, IWizardCommand } from './core/index.js';
9
9
  export interface CoverageWizardOptions {
10
10
  /** Non-interactive mode with defaults */
11
11
  nonInteractive?: boolean;
@@ -25,7 +25,7 @@ export interface CoverageWizardOptions {
25
25
  export type GapSensitivity = 'low' | 'medium' | 'high';
26
26
  export type ReportFormat = 'json' | 'html' | 'markdown' | 'text';
27
27
  export type PriorityFocus = 'functions' | 'branches' | 'lines' | 'statements';
28
- export interface CoverageWizardResult {
28
+ export interface CoverageWizardResult extends BaseWizardResult {
29
29
  /** Target directory or file to analyze */
30
30
  target: string;
31
31
  /** Gap detection sensitivity level */
@@ -42,73 +42,18 @@ export interface CoverageWizardResult {
42
42
  includePatterns?: string[];
43
43
  /** Exclude patterns (comma-separated) */
44
44
  excludePatterns?: string[];
45
- /** Whether the wizard was cancelled */
46
- cancelled: boolean;
47
45
  }
48
- export declare class CoverageAnalysisWizard {
49
- private options;
50
- private cwd;
46
+ export declare class CoverageAnalysisWizard extends BaseWizard<CoverageWizardOptions, CoverageWizardResult> {
51
47
  constructor(options?: CoverageWizardOptions);
52
- /**
53
- * Run the interactive wizard
54
- */
55
- run(): Promise<CoverageWizardResult>;
56
- /**
57
- * Print wizard header
58
- */
59
- private printHeader;
60
- /**
61
- * Step 1: Prompt for target directory/file
62
- */
63
- private promptTarget;
64
- /**
65
- * Step 2: Prompt for gap detection sensitivity
66
- */
67
- private promptSensitivity;
68
- /**
69
- * Step 3: Prompt for report format
70
- */
71
- private promptFormat;
72
- /**
73
- * Step 4: Prompt for priority focus areas
74
- */
75
- private promptPriorityFocus;
76
- /**
77
- * Step 5: Prompt for risk scoring toggle
78
- */
79
- private promptRiskScoring;
80
- /**
81
- * Step 6: Prompt for threshold percentage
82
- */
83
- private promptThreshold;
84
- /**
85
- * Step 7: Prompt for optional include/exclude patterns
86
- */
87
- private promptPatterns;
88
- /**
89
- * Prompt for final confirmation
90
- */
91
- private promptConfirmation;
92
- /**
93
- * Print configuration summary
94
- */
95
- private printSummary;
96
- /**
97
- * Generic prompt helper
98
- */
99
- private prompt;
100
- /**
101
- * Get target directory suggestions
102
- */
103
- private getTargetSuggestions;
104
- /**
105
- * Get default result for non-interactive mode
106
- */
107
- private getDefaults;
108
- /**
109
- * Get cancelled result
110
- */
111
- private getCancelled;
48
+ protected getTitle(): string;
49
+ protected getSubtitle(): string;
50
+ protected getConfirmationPrompt(): string;
51
+ protected isNonInteractive(): boolean;
52
+ protected getCommands(): IWizardCommand<unknown>[];
53
+ protected buildResult(results: Record<string, unknown>): CoverageWizardResult;
54
+ protected printSummary(result: CoverageWizardResult): void;
55
+ protected getDefaults(): CoverageWizardResult;
56
+ protected getCancelled(): CoverageWizardResult;
112
57
  }
113
58
  /**
114
59
  * Factory function to create and run the coverage wizard
@@ -1 +1 @@
1
- {"version":3,"file":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AC,OAAO,CAAwB;IACvC,OAAO,CAAC,GAAG,CAAS;gBAER,OAAO,GAAE,qBAA0B;IAK/C;;OAEG;IACG,GAAG,IAAI,OAAO,CAAC,oBAAoB,CAAC;IAkE1C;;OAEG;IACH,OAAO,CAAC,WAAW;IAUnB;;OAEG;YACW,YAAY;IA+B1B;;OAEG;YACW,iBAAiB;IA0C/B;;OAEG;YACW,YAAY;IA2C1B;;OAEG;YACW,mBAAmB;IAwDjC;;OAEG;YACW,iBAAiB;IA8B/B;;OAEG;YACW,eAAe;IA0C7B;;OAEG;YACW,cAAc;IAkC5B;;OAEG;YACW,kBAAkB;IAehC;;OAEG;IACH,OAAO,CAAC,YAAY;IA+BpB;;OAEG;IACH,OAAO,CAAC,MAAM;IAQd;;OAEG;IACH,OAAO,CAAC,oBAAoB;IA6B5B;;OAEG;IACH,OAAO,CAAC,WAAW;IAcnB;;OAEG;IACH,OAAO,CAAC,YAAY;CAWrB;AAED;;GAEG;AACH,wBAAsB,yBAAyB,CAC7C,OAAO,GAAE,qBAA0B,GAClC,OAAO,CAAC,oBAAoB,CAAC,CAG/B;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,cAAc,GAAG;IACjE,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;CACrB,CAEA;AAED;;GAEG;AACH,YAAY,EAAE,qBAAqB,IAAI,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"coverage-wizard.d.ts","sourceRoot":"","sources":["../../../src/cli/wizards/coverage-wizard.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,cAAc,EAUf,MAAM,iBAAiB,CAAC;AAMzB,MAAM,WAAW,qBAAqB;IACpC,yCAAyC;IACzC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,+BAA+B;IAC/B,aAAa,CAAC,EAAE,MAAM,CAAC;IAC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