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.
- package/README.md +6 -2
- package/package.json +6 -1
- package/v3/CHANGELOG.md +134 -0
- package/v3/dist/cli/bundle.js +29332 -22739
- package/v3/dist/cli/command-registry.d.ts +55 -0
- package/v3/dist/cli/command-registry.d.ts.map +1 -0
- package/v3/dist/cli/command-registry.js +103 -0
- package/v3/dist/cli/command-registry.js.map +1 -0
- package/v3/dist/cli/commands/code.d.ts +9 -0
- package/v3/dist/cli/commands/code.d.ts.map +1 -0
- package/v3/dist/cli/commands/code.js +254 -0
- package/v3/dist/cli/commands/code.js.map +1 -0
- package/v3/dist/cli/commands/completions.d.ts +8 -0
- package/v3/dist/cli/commands/completions.d.ts.map +1 -0
- package/v3/dist/cli/commands/completions.js +99 -0
- package/v3/dist/cli/commands/completions.js.map +1 -0
- package/v3/dist/cli/commands/coverage.d.ts +9 -0
- package/v3/dist/cli/commands/coverage.d.ts.map +1 -0
- package/v3/dist/cli/commands/coverage.js +208 -0
- package/v3/dist/cli/commands/coverage.js.map +1 -0
- package/v3/dist/cli/commands/fleet.d.ts +11 -0
- package/v3/dist/cli/commands/fleet.d.ts.map +1 -0
- package/v3/dist/cli/commands/fleet.js +338 -0
- package/v3/dist/cli/commands/fleet.js.map +1 -0
- package/v3/dist/cli/commands/migrate.d.ts +9 -0
- package/v3/dist/cli/commands/migrate.d.ts.map +1 -0
- package/v3/dist/cli/commands/migrate.js +566 -0
- package/v3/dist/cli/commands/migrate.js.map +1 -0
- package/v3/dist/cli/commands/quality.d.ts +9 -0
- package/v3/dist/cli/commands/quality.d.ts.map +1 -0
- package/v3/dist/cli/commands/quality.js +40 -0
- package/v3/dist/cli/commands/quality.js.map +1 -0
- package/v3/dist/cli/commands/security.d.ts +9 -0
- package/v3/dist/cli/commands/security.d.ts.map +1 -0
- package/v3/dist/cli/commands/security.js +124 -0
- package/v3/dist/cli/commands/security.js.map +1 -0
- package/v3/dist/cli/commands/sync.d.ts +19 -0
- package/v3/dist/cli/commands/sync.d.ts.map +1 -0
- package/v3/dist/cli/commands/sync.js +283 -0
- package/v3/dist/cli/commands/sync.js.map +1 -0
- package/v3/dist/cli/commands/test.d.ts +9 -0
- package/v3/dist/cli/commands/test.d.ts.map +1 -0
- package/v3/dist/cli/commands/test.js +166 -0
- package/v3/dist/cli/commands/test.js.map +1 -0
- package/v3/dist/cli/handlers/agent-handler.d.ts +20 -0
- package/v3/dist/cli/handlers/agent-handler.d.ts.map +1 -0
- package/v3/dist/cli/handlers/agent-handler.js +158 -0
- package/v3/dist/cli/handlers/agent-handler.js.map +1 -0
- package/v3/dist/cli/handlers/domain-handler.d.ts +20 -0
- package/v3/dist/cli/handlers/domain-handler.d.ts.map +1 -0
- package/v3/dist/cli/handlers/domain-handler.js +115 -0
- package/v3/dist/cli/handlers/domain-handler.js.map +1 -0
- package/v3/dist/cli/handlers/index.d.ts +13 -0
- package/v3/dist/cli/handlers/index.d.ts.map +1 -0
- package/v3/dist/cli/handlers/index.js +15 -0
- package/v3/dist/cli/handlers/index.js.map +1 -0
- package/v3/dist/cli/handlers/init-handler.d.ts +38 -0
- package/v3/dist/cli/handlers/init-handler.d.ts.map +1 -0
- package/v3/dist/cli/handlers/init-handler.js +288 -0
- package/v3/dist/cli/handlers/init-handler.js.map +1 -0
- package/v3/dist/cli/handlers/interfaces.d.ts +104 -0
- package/v3/dist/cli/handlers/interfaces.d.ts.map +1 -0
- package/v3/dist/cli/handlers/interfaces.js +109 -0
- package/v3/dist/cli/handlers/interfaces.js.map +1 -0
- package/v3/dist/cli/handlers/protocol-handler.d.ts +19 -0
- package/v3/dist/cli/handlers/protocol-handler.d.ts.map +1 -0
- package/v3/dist/cli/handlers/protocol-handler.js +79 -0
- package/v3/dist/cli/handlers/protocol-handler.js.map +1 -0
- package/v3/dist/cli/handlers/status-handler.d.ts +30 -0
- package/v3/dist/cli/handlers/status-handler.d.ts.map +1 -0
- package/v3/dist/cli/handlers/status-handler.js +218 -0
- package/v3/dist/cli/handlers/status-handler.js.map +1 -0
- package/v3/dist/cli/handlers/task-handler.d.ts +22 -0
- package/v3/dist/cli/handlers/task-handler.d.ts.map +1 -0
- package/v3/dist/cli/handlers/task-handler.js +271 -0
- package/v3/dist/cli/handlers/task-handler.js.map +1 -0
- package/v3/dist/cli/index.d.ts +4 -0
- package/v3/dist/cli/index.d.ts.map +1 -1
- package/v3/dist/cli/index.js +48 -2677
- package/v3/dist/cli/index.js.map +1 -1
- package/v3/dist/cli/wizards/core/index.d.ts +11 -0
- package/v3/dist/cli/wizards/core/index.d.ts.map +1 -0
- package/v3/dist/cli/wizards/core/index.js +15 -0
- package/v3/dist/cli/wizards/core/index.js.map +1 -0
- package/v3/dist/cli/wizards/core/wizard-base.d.ts +87 -0
- package/v3/dist/cli/wizards/core/wizard-base.d.ts.map +1 -0
- package/v3/dist/cli/wizards/core/wizard-base.js +120 -0
- package/v3/dist/cli/wizards/core/wizard-base.js.map +1 -0
- package/v3/dist/cli/wizards/core/wizard-command.d.ts +182 -0
- package/v3/dist/cli/wizards/core/wizard-command.d.ts.map +1 -0
- package/v3/dist/cli/wizards/core/wizard-command.js +45 -0
- package/v3/dist/cli/wizards/core/wizard-command.js.map +1 -0
- package/v3/dist/cli/wizards/core/wizard-step.d.ts +109 -0
- package/v3/dist/cli/wizards/core/wizard-step.d.ts.map +1 -0
- package/v3/dist/cli/wizards/core/wizard-step.js +384 -0
- package/v3/dist/cli/wizards/core/wizard-step.js.map +1 -0
- package/v3/dist/cli/wizards/core/wizard-utils.d.ts +117 -0
- package/v3/dist/cli/wizards/core/wizard-utils.d.ts.map +1 -0
- package/v3/dist/cli/wizards/core/wizard-utils.js +291 -0
- package/v3/dist/cli/wizards/core/wizard-utils.js.map +1 -0
- package/v3/dist/cli/wizards/coverage-wizard.d.ts +13 -68
- package/v3/dist/cli/wizards/coverage-wizard.d.ts.map +1 -1
- package/v3/dist/cli/wizards/coverage-wizard.js +127 -391
- package/v3/dist/cli/wizards/coverage-wizard.js.map +1 -1
- package/v3/dist/cli/wizards/fleet-wizard.d.ts +13 -64
- package/v3/dist/cli/wizards/fleet-wizard.d.ts.map +1 -1
- package/v3/dist/cli/wizards/fleet-wizard.js +150 -363
- package/v3/dist/cli/wizards/fleet-wizard.js.map +1 -1
- package/v3/dist/cli/wizards/index.d.ts +2 -0
- package/v3/dist/cli/wizards/index.d.ts.map +1 -1
- package/v3/dist/cli/wizards/index.js +3 -0
- package/v3/dist/cli/wizards/index.js.map +1 -1
- package/v3/dist/cli/wizards/security-wizard.d.ts +13 -64
- package/v3/dist/cli/wizards/security-wizard.d.ts.map +1 -1
- package/v3/dist/cli/wizards/security-wizard.js +152 -395
- package/v3/dist/cli/wizards/security-wizard.js.map +1 -1
- package/v3/dist/cli/wizards/test-wizard.d.ts +13 -77
- package/v3/dist/cli/wizards/test-wizard.d.ts.map +1 -1
- package/v3/dist/cli/wizards/test-wizard.js +196 -328
- package/v3/dist/cli/wizards/test-wizard.js.map +1 -1
- package/v3/dist/coordination/mincut/mincut-health-monitor.d.ts +3 -0
- package/v3/dist/coordination/mincut/mincut-health-monitor.d.ts.map +1 -1
- package/v3/dist/coordination/mincut/mincut-health-monitor.js +6 -2
- package/v3/dist/coordination/mincut/mincut-health-monitor.js.map +1 -1
- package/v3/dist/coordination/mincut/queen-integration.d.ts +3 -0
- package/v3/dist/coordination/mincut/queen-integration.d.ts.map +1 -1
- package/v3/dist/coordination/mincut/queen-integration.js +6 -1
- package/v3/dist/coordination/mincut/queen-integration.js.map +1 -1
- package/v3/dist/coordination/queen-coordinator.d.ts +13 -1
- package/v3/dist/coordination/queen-coordinator.d.ts.map +1 -1
- package/v3/dist/coordination/queen-coordinator.js +91 -3
- package/v3/dist/coordination/queen-coordinator.js.map +1 -1
- package/v3/dist/coordination/task-executor.js +2 -2
- package/v3/dist/coordination/task-executor.js.map +1 -1
- package/v3/dist/domains/chaos-resilience/plugin.js +2 -2
- package/v3/dist/domains/chaos-resilience/plugin.js.map +1 -1
- package/v3/dist/domains/code-intelligence/plugin.js +2 -2
- package/v3/dist/domains/code-intelligence/plugin.js.map +1 -1
- package/v3/dist/domains/contract-testing/plugin.js +2 -2
- package/v3/dist/domains/contract-testing/plugin.js.map +1 -1
- package/v3/dist/domains/coverage-analysis/plugin.d.ts +6 -1
- package/v3/dist/domains/coverage-analysis/plugin.d.ts.map +1 -1
- package/v3/dist/domains/coverage-analysis/plugin.js +75 -1
- package/v3/dist/domains/coverage-analysis/plugin.js.map +1 -1
- package/v3/dist/domains/defect-intelligence/plugin.js +2 -2
- package/v3/dist/domains/defect-intelligence/plugin.js.map +1 -1
- package/v3/dist/domains/domain-interface.d.ts +39 -2
- package/v3/dist/domains/domain-interface.d.ts.map +1 -1
- package/v3/dist/domains/domain-interface.js +102 -1
- package/v3/dist/domains/domain-interface.js.map +1 -1
- package/v3/dist/domains/learning-optimization/coordinator.d.ts +83 -0
- package/v3/dist/domains/learning-optimization/coordinator.d.ts.map +1 -1
- package/v3/dist/domains/learning-optimization/coordinator.js +174 -0
- package/v3/dist/domains/learning-optimization/coordinator.js.map +1 -1
- package/v3/dist/domains/learning-optimization/interfaces.d.ts +14 -0
- package/v3/dist/domains/learning-optimization/interfaces.d.ts.map +1 -1
- package/v3/dist/domains/learning-optimization/plugin.js +2 -2
- package/v3/dist/domains/learning-optimization/plugin.js.map +1 -1
- package/v3/dist/domains/quality-assessment/coordinator.d.ts +23 -0
- package/v3/dist/domains/quality-assessment/coordinator.d.ts.map +1 -1
- package/v3/dist/domains/quality-assessment/coordinator.js +139 -1
- package/v3/dist/domains/quality-assessment/coordinator.js.map +1 -1
- package/v3/dist/domains/quality-assessment/plugin.d.ts +6 -1
- package/v3/dist/domains/quality-assessment/plugin.d.ts.map +1 -1
- package/v3/dist/domains/quality-assessment/plugin.js +69 -2
- package/v3/dist/domains/quality-assessment/plugin.js.map +1 -1
- package/v3/dist/domains/requirements-validation/plugin.js +2 -2
- package/v3/dist/domains/requirements-validation/plugin.js.map +1 -1
- package/v3/dist/domains/security-compliance/plugin.js +2 -2
- package/v3/dist/domains/security-compliance/plugin.js.map +1 -1
- package/v3/dist/domains/test-execution/index.d.ts +2 -1
- package/v3/dist/domains/test-execution/index.d.ts.map +1 -1
- package/v3/dist/domains/test-execution/index.js +0 -2
- package/v3/dist/domains/test-execution/index.js.map +1 -1
- package/v3/dist/domains/test-execution/interfaces.d.ts +222 -25
- package/v3/dist/domains/test-execution/interfaces.d.ts.map +1 -1
- package/v3/dist/domains/test-execution/interfaces.js +130 -3
- package/v3/dist/domains/test-execution/interfaces.js.map +1 -1
- package/v3/dist/domains/test-execution/plugin.d.ts +6 -1
- package/v3/dist/domains/test-execution/plugin.d.ts.map +1 -1
- package/v3/dist/domains/test-execution/plugin.js +79 -1
- package/v3/dist/domains/test-execution/plugin.js.map +1 -1
- package/v3/dist/domains/test-execution/test-prioritization-types.d.ts +5 -172
- package/v3/dist/domains/test-execution/test-prioritization-types.d.ts.map +1 -1
- package/v3/dist/domains/test-execution/test-prioritization-types.js +6 -129
- package/v3/dist/domains/test-execution/test-prioritization-types.js.map +1 -1
- package/v3/dist/domains/test-execution/types/index.d.ts +7 -3
- package/v3/dist/domains/test-execution/types/index.d.ts.map +1 -1
- package/v3/dist/domains/test-execution/types/index.js +7 -17
- package/v3/dist/domains/test-execution/types/index.js.map +1 -1
- package/v3/dist/domains/test-generation/coordinator.d.ts +41 -1
- package/v3/dist/domains/test-generation/coordinator.d.ts.map +1 -1
- package/v3/dist/domains/test-generation/coordinator.js +187 -4
- package/v3/dist/domains/test-generation/coordinator.js.map +1 -1
- package/v3/dist/domains/test-generation/factories/index.d.ts +8 -0
- package/v3/dist/domains/test-generation/factories/index.d.ts.map +1 -0
- package/v3/dist/domains/test-generation/factories/index.js +8 -0
- package/v3/dist/domains/test-generation/factories/index.js.map +1 -0
- package/v3/dist/domains/test-generation/factories/test-generator-factory.d.ts +108 -0
- package/v3/dist/domains/test-generation/factories/test-generator-factory.d.ts.map +1 -0
- package/v3/dist/domains/test-generation/factories/test-generator-factory.js +158 -0
- package/v3/dist/domains/test-generation/factories/test-generator-factory.js.map +1 -0
- package/v3/dist/domains/test-generation/generators/base-test-generator.d.ts +79 -0
- package/v3/dist/domains/test-generation/generators/base-test-generator.d.ts.map +1 -0
- package/v3/dist/domains/test-generation/generators/base-test-generator.js +252 -0
- package/v3/dist/domains/test-generation/generators/base-test-generator.js.map +1 -0
- package/v3/dist/domains/test-generation/generators/index.d.ts +11 -0
- package/v3/dist/domains/test-generation/generators/index.d.ts.map +1 -0
- package/v3/dist/domains/test-generation/generators/index.js +13 -0
- package/v3/dist/domains/test-generation/generators/index.js.map +1 -0
- package/v3/dist/domains/test-generation/generators/jest-vitest-generator.d.ts +77 -0
- package/v3/dist/domains/test-generation/generators/jest-vitest-generator.d.ts.map +1 -0
- package/v3/dist/domains/test-generation/generators/jest-vitest-generator.js +365 -0
- package/v3/dist/domains/test-generation/generators/jest-vitest-generator.js.map +1 -0
- package/v3/dist/domains/test-generation/generators/mocha-generator.d.ts +56 -0
- package/v3/dist/domains/test-generation/generators/mocha-generator.d.ts.map +1 -0
- package/v3/dist/domains/test-generation/generators/mocha-generator.js +197 -0
- package/v3/dist/domains/test-generation/generators/mocha-generator.js.map +1 -0
- package/v3/dist/domains/test-generation/generators/pytest-generator.d.ts +66 -0
- package/v3/dist/domains/test-generation/generators/pytest-generator.d.ts.map +1 -0
- package/v3/dist/domains/test-generation/generators/pytest-generator.js +240 -0
- package/v3/dist/domains/test-generation/generators/pytest-generator.js.map +1 -0
- package/v3/dist/domains/test-generation/index.d.ts +2 -2
- package/v3/dist/domains/test-generation/index.d.ts.map +1 -1
- package/v3/dist/domains/test-generation/index.js +3 -3
- package/v3/dist/domains/test-generation/index.js.map +1 -1
- package/v3/dist/domains/test-generation/interfaces/index.d.ts +9 -0
- package/v3/dist/domains/test-generation/interfaces/index.d.ts.map +1 -0
- package/v3/dist/domains/test-generation/interfaces/index.js +9 -0
- package/v3/dist/domains/test-generation/interfaces/index.js.map +1 -0
- package/v3/dist/domains/test-generation/interfaces/test-generator.interface.d.ts +166 -0
- package/v3/dist/domains/test-generation/interfaces/test-generator.interface.d.ts.map +1 -0
- package/v3/dist/domains/test-generation/interfaces/test-generator.interface.js +8 -0
- package/v3/dist/domains/test-generation/interfaces/test-generator.interface.js.map +1 -0
- package/v3/dist/domains/test-generation/interfaces.d.ts +163 -24
- package/v3/dist/domains/test-generation/interfaces.d.ts.map +1 -1
- package/v3/dist/domains/test-generation/interfaces.js +2 -2
- package/v3/dist/domains/test-generation/plugin.d.ts +6 -1
- package/v3/dist/domains/test-generation/plugin.d.ts.map +1 -1
- package/v3/dist/domains/test-generation/plugin.js +90 -5
- package/v3/dist/domains/test-generation/plugin.js.map +1 -1
- package/v3/dist/domains/test-generation/{coherence-gate.d.ts → services/coherence-gate-service.d.ts} +4 -4
- package/v3/dist/domains/test-generation/services/coherence-gate-service.d.ts.map +1 -0
- package/v3/dist/domains/test-generation/{coherence-gate.js → services/coherence-gate-service.js} +2 -2
- package/v3/dist/domains/test-generation/services/coherence-gate-service.js.map +1 -0
- package/v3/dist/domains/test-generation/services/index.d.ts +8 -2
- package/v3/dist/domains/test-generation/services/index.d.ts.map +1 -1
- package/v3/dist/domains/test-generation/services/index.js +10 -3
- package/v3/dist/domains/test-generation/services/index.js.map +1 -1
- package/v3/dist/domains/test-generation/services/property-test-generator.d.ts +34 -0
- package/v3/dist/domains/test-generation/services/property-test-generator.d.ts.map +1 -0
- package/v3/dist/domains/test-generation/services/property-test-generator.js +306 -0
- package/v3/dist/domains/test-generation/services/property-test-generator.js.map +1 -0
- package/v3/dist/domains/test-generation/services/tdd-generator.d.ts +33 -0
- package/v3/dist/domains/test-generation/services/tdd-generator.d.ts.map +1 -0
- package/v3/dist/domains/test-generation/services/tdd-generator.js +342 -0
- package/v3/dist/domains/test-generation/services/tdd-generator.js.map +1 -0
- package/v3/dist/domains/test-generation/services/test-data-generator.d.ts +34 -0
- package/v3/dist/domains/test-generation/services/test-data-generator.d.ts.map +1 -0
- package/v3/dist/domains/test-generation/services/test-data-generator.js +245 -0
- package/v3/dist/domains/test-generation/services/test-data-generator.js.map +1 -0
- package/v3/dist/domains/test-generation/services/test-generator.d.ts +51 -160
- package/v3/dist/domains/test-generation/services/test-generator.d.ts.map +1 -1
- package/v3/dist/domains/test-generation/services/test-generator.js +101 -1858
- package/v3/dist/domains/test-generation/services/test-generator.js.map +1 -1
- package/v3/dist/domains/visual-accessibility/plugin.js +2 -2
- package/v3/dist/domains/visual-accessibility/plugin.js.map +1 -1
- package/v3/dist/init/phases/12-verification.d.ts +23 -0
- package/v3/dist/init/phases/12-verification.d.ts.map +1 -1
- package/v3/dist/init/phases/12-verification.js +185 -2
- package/v3/dist/init/phases/12-verification.js.map +1 -1
- package/v3/dist/integrations/agentic-flow/model-router/complexity-analyzer.d.ts +24 -62
- package/v3/dist/integrations/agentic-flow/model-router/complexity-analyzer.d.ts.map +1 -1
- package/v3/dist/integrations/agentic-flow/model-router/complexity-analyzer.js +45 -497
- package/v3/dist/integrations/agentic-flow/model-router/complexity-analyzer.js.map +1 -1
- package/v3/dist/integrations/agentic-flow/model-router/router.js +2 -2
- package/v3/dist/integrations/agentic-flow/model-router/router.js.map +1 -1
- package/v3/dist/integrations/agentic-flow/model-router/score-calculator.d.ts +98 -0
- package/v3/dist/integrations/agentic-flow/model-router/score-calculator.d.ts.map +1 -0
- package/v3/dist/integrations/agentic-flow/model-router/score-calculator.js +197 -0
- package/v3/dist/integrations/agentic-flow/model-router/score-calculator.js.map +1 -0
- package/v3/dist/integrations/agentic-flow/model-router/signal-collector.d.ts +102 -0
- package/v3/dist/integrations/agentic-flow/model-router/signal-collector.d.ts.map +1 -0
- package/v3/dist/integrations/agentic-flow/model-router/signal-collector.js +372 -0
- package/v3/dist/integrations/agentic-flow/model-router/signal-collector.js.map +1 -0
- package/v3/dist/integrations/agentic-flow/model-router/tier-recommender.d.ts +64 -0
- package/v3/dist/integrations/agentic-flow/model-router/tier-recommender.d.ts.map +1 -0
- package/v3/dist/integrations/agentic-flow/model-router/tier-recommender.js +120 -0
- package/v3/dist/integrations/agentic-flow/model-router/tier-recommender.js.map +1 -0
- package/v3/dist/integrations/coherence/coherence-service.d.ts.map +1 -1
- package/v3/dist/integrations/coherence/coherence-service.js +87 -30
- package/v3/dist/integrations/coherence/coherence-service.js.map +1 -1
- package/v3/dist/integrations/coherence/engines/spectral-adapter.d.ts.map +1 -1
- package/v3/dist/integrations/coherence/engines/spectral-adapter.js +124 -35
- package/v3/dist/integrations/coherence/engines/spectral-adapter.js.map +1 -1
- package/v3/dist/kernel/interfaces.d.ts +54 -1
- package/v3/dist/kernel/interfaces.d.ts.map +1 -1
- package/v3/dist/learning/dream/dream-scheduler.d.ts +302 -0
- package/v3/dist/learning/dream/dream-scheduler.d.ts.map +1 -0
- package/v3/dist/learning/dream/dream-scheduler.js +551 -0
- package/v3/dist/learning/dream/dream-scheduler.js.map +1 -0
- package/v3/dist/learning/dream/index.d.ts +1 -0
- package/v3/dist/learning/dream/index.d.ts.map +1 -1
- package/v3/dist/learning/dream/index.js +4 -0
- package/v3/dist/learning/dream/index.js.map +1 -1
- package/v3/dist/learning/memory-auditor.d.ts.map +1 -1
- package/v3/dist/learning/memory-auditor.js +3 -1
- package/v3/dist/learning/memory-auditor.js.map +1 -1
- package/v3/dist/mcp/bundle.js +30870 -23598
- package/v3/dist/mcp/handlers/core-handlers.d.ts.map +1 -1
- package/v3/dist/mcp/handlers/core-handlers.js +16 -2
- package/v3/dist/mcp/handlers/core-handlers.js.map +1 -1
- package/v3/dist/mcp/handlers/task-handlers.d.ts +1 -0
- package/v3/dist/mcp/handlers/task-handlers.d.ts.map +1 -1
- package/v3/dist/mcp/handlers/task-handlers.js +46 -12
- package/v3/dist/mcp/handlers/task-handlers.js.map +1 -1
- package/v3/dist/mcp/security/cve-prevention.d.ts +31 -134
- package/v3/dist/mcp/security/cve-prevention.d.ts.map +1 -1
- package/v3/dist/mcp/security/cve-prevention.js +37 -562
- package/v3/dist/mcp/security/cve-prevention.js.map +1 -1
- package/v3/dist/mcp/security/index.d.ts +5 -1
- package/v3/dist/mcp/security/index.d.ts.map +1 -1
- package/v3/dist/mcp/security/validators/command-validator.d.ts +41 -0
- package/v3/dist/mcp/security/validators/command-validator.d.ts.map +1 -0
- package/v3/dist/mcp/security/validators/command-validator.js +123 -0
- package/v3/dist/mcp/security/validators/command-validator.js.map +1 -0
- package/v3/dist/mcp/security/validators/crypto-validator.d.ts +40 -0
- package/v3/dist/mcp/security/validators/crypto-validator.d.ts.map +1 -0
- package/v3/dist/mcp/security/validators/crypto-validator.js +72 -0
- package/v3/dist/mcp/security/validators/crypto-validator.js.map +1 -0
- package/v3/dist/mcp/security/validators/index.d.ts +12 -0
- package/v3/dist/mcp/security/validators/index.d.ts.map +1 -0
- package/v3/dist/mcp/security/validators/index.js +22 -0
- package/v3/dist/mcp/security/validators/index.js.map +1 -0
- package/v3/dist/mcp/security/validators/input-sanitizer.d.ts +56 -0
- package/v3/dist/mcp/security/validators/input-sanitizer.d.ts.map +1 -0
- package/v3/dist/mcp/security/validators/input-sanitizer.js +157 -0
- package/v3/dist/mcp/security/validators/input-sanitizer.js.map +1 -0
- package/v3/dist/mcp/security/validators/interfaces.d.ts +164 -0
- package/v3/dist/mcp/security/validators/interfaces.d.ts.map +1 -0
- package/v3/dist/mcp/security/validators/interfaces.js +6 -0
- package/v3/dist/mcp/security/validators/interfaces.js.map +1 -0
- package/v3/dist/mcp/security/validators/path-traversal-validator.d.ts +50 -0
- package/v3/dist/mcp/security/validators/path-traversal-validator.d.ts.map +1 -0
- package/v3/dist/mcp/security/validators/path-traversal-validator.js +242 -0
- package/v3/dist/mcp/security/validators/path-traversal-validator.js.map +1 -0
- package/v3/dist/mcp/security/validators/regex-safety-validator.d.ts +50 -0
- package/v3/dist/mcp/security/validators/regex-safety-validator.d.ts.map +1 -0
- package/v3/dist/mcp/security/validators/regex-safety-validator.js +183 -0
- package/v3/dist/mcp/security/validators/regex-safety-validator.js.map +1 -0
- package/v3/dist/mcp/security/validators/validation-orchestrator.d.ts +66 -0
- package/v3/dist/mcp/security/validators/validation-orchestrator.d.ts.map +1 -0
- package/v3/dist/mcp/security/validators/validation-orchestrator.js +146 -0
- package/v3/dist/mcp/security/validators/validation-orchestrator.js.map +1 -0
- package/v3/dist/mcp/server.d.ts.map +1 -1
- package/v3/dist/mcp/server.js +1 -0
- package/v3/dist/mcp/server.js.map +1 -1
- package/v3/dist/mcp/services/reasoning-bank-service.d.ts +87 -13
- package/v3/dist/mcp/services/reasoning-bank-service.d.ts.map +1 -1
- package/v3/dist/mcp/services/reasoning-bank-service.js +291 -31
- package/v3/dist/mcp/services/reasoning-bank-service.js.map +1 -1
- package/v3/dist/mcp/tool-registry.d.ts +3 -1
- package/v3/dist/mcp/tool-registry.d.ts.map +1 -1
- package/v3/dist/mcp/tool-registry.js +155 -2
- package/v3/dist/mcp/tool-registry.js.map +1 -1
- package/v3/dist/mcp/tools/test-generation/generate.d.ts +1 -0
- package/v3/dist/mcp/tools/test-generation/generate.d.ts.map +1 -1
- package/v3/dist/mcp/tools/test-generation/generate.js +3 -2
- package/v3/dist/mcp/tools/test-generation/generate.js.map +1 -1
- package/v3/dist/routing/qe-agent-registry.d.ts +27 -0
- package/v3/dist/routing/qe-agent-registry.d.ts.map +1 -1
- package/v3/dist/routing/qe-agent-registry.js +96 -0
- package/v3/dist/routing/qe-agent-registry.js.map +1 -1
- package/v3/dist/shared/events/domain-events.d.ts +27 -0
- package/v3/dist/shared/events/domain-events.d.ts.map +1 -1
- package/v3/dist/shared/events/domain-events.js +1 -0
- package/v3/dist/shared/events/domain-events.js.map +1 -1
- package/v3/dist/sync/cloud/index.d.ts +8 -0
- package/v3/dist/sync/cloud/index.d.ts.map +1 -0
- package/v3/dist/sync/cloud/index.js +8 -0
- package/v3/dist/sync/cloud/index.js.map +1 -0
- package/v3/dist/sync/cloud/postgres-writer.d.ts +88 -0
- package/v3/dist/sync/cloud/postgres-writer.d.ts.map +1 -0
- package/v3/dist/sync/cloud/postgres-writer.js +319 -0
- package/v3/dist/sync/cloud/postgres-writer.js.map +1 -0
- package/v3/dist/sync/cloud/tunnel-manager.d.ts +75 -0
- package/v3/dist/sync/cloud/tunnel-manager.d.ts.map +1 -0
- package/v3/dist/sync/cloud/tunnel-manager.js +221 -0
- package/v3/dist/sync/cloud/tunnel-manager.js.map +1 -0
- package/v3/dist/sync/index.d.ts +35 -0
- package/v3/dist/sync/index.d.ts.map +1 -0
- package/v3/dist/sync/index.js +35 -0
- package/v3/dist/sync/index.js.map +1 -0
- package/v3/dist/sync/interfaces.d.ts +245 -0
- package/v3/dist/sync/interfaces.d.ts.map +1 -0
- package/v3/dist/sync/interfaces.js +160 -0
- package/v3/dist/sync/interfaces.js.map +1 -0
- package/v3/dist/sync/readers/index.d.ts +8 -0
- package/v3/dist/sync/readers/index.d.ts.map +1 -0
- package/v3/dist/sync/readers/index.js +8 -0
- package/v3/dist/sync/readers/index.js.map +1 -0
- package/v3/dist/sync/readers/json-reader.d.ts +95 -0
- package/v3/dist/sync/readers/json-reader.d.ts.map +1 -0
- package/v3/dist/sync/readers/json-reader.js +306 -0
- package/v3/dist/sync/readers/json-reader.js.map +1 -0
- package/v3/dist/sync/readers/sqlite-reader.d.ts +88 -0
- package/v3/dist/sync/readers/sqlite-reader.d.ts.map +1 -0
- package/v3/dist/sync/readers/sqlite-reader.js +255 -0
- package/v3/dist/sync/readers/sqlite-reader.js.map +1 -0
- package/v3/dist/sync/sync-agent.d.ts +116 -0
- package/v3/dist/sync/sync-agent.d.ts.map +1 -0
- package/v3/dist/sync/sync-agent.js +416 -0
- package/v3/dist/sync/sync-agent.js.map +1 -0
- package/v3/package.json +13 -2
- package/v3/dist/domains/test-generation/coherence-gate.d.ts.map +0 -1
- package/v3/dist/domains/test-generation/coherence-gate.js.map +0 -1
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Agentic QE v3 - Test Execution Domain Plugin
|
|
3
3
|
* Registers the test execution domain with the kernel
|
|
4
4
|
*/
|
|
5
|
+
import { err } from '../../shared/types';
|
|
5
6
|
import { BaseDomainPlugin } from '../domain-interface';
|
|
6
7
|
import { createTestExecutionCoordinator } from './coordinator';
|
|
7
8
|
// ============================================================================
|
|
@@ -42,13 +43,90 @@ export class TestExecutionPlugin extends BaseDomainPlugin {
|
|
|
42
43
|
return api;
|
|
43
44
|
}
|
|
44
45
|
// ============================================================================
|
|
46
|
+
// Task Handlers (Queen-Domain Integration)
|
|
47
|
+
// ============================================================================
|
|
48
|
+
/**
|
|
49
|
+
* Get task handlers for direct Queen-Domain integration
|
|
50
|
+
* Maps task types to coordinator methods
|
|
51
|
+
*/
|
|
52
|
+
getTaskHandlers() {
|
|
53
|
+
return new Map([
|
|
54
|
+
// Execute tests task - main task type for this domain
|
|
55
|
+
['execute-tests', async (payload) => {
|
|
56
|
+
if (!this.coordinator) {
|
|
57
|
+
return err(new Error('Coordinator not initialized'));
|
|
58
|
+
}
|
|
59
|
+
// Support both simple and full request formats
|
|
60
|
+
if (payload.testFiles && Array.isArray(payload.testFiles)) {
|
|
61
|
+
// Simple request format
|
|
62
|
+
const request = {
|
|
63
|
+
testFiles: payload.testFiles,
|
|
64
|
+
parallel: payload.parallel,
|
|
65
|
+
retryCount: payload.retryCount,
|
|
66
|
+
timeout: payload.timeout,
|
|
67
|
+
workers: payload.workers,
|
|
68
|
+
};
|
|
69
|
+
return this.coordinator.runTests(request);
|
|
70
|
+
}
|
|
71
|
+
else if (payload.framework) {
|
|
72
|
+
// Full request format
|
|
73
|
+
const request = {
|
|
74
|
+
testFiles: payload.testFiles || [],
|
|
75
|
+
framework: payload.framework,
|
|
76
|
+
timeout: payload.timeout,
|
|
77
|
+
env: payload.env,
|
|
78
|
+
reporters: payload.reporters,
|
|
79
|
+
};
|
|
80
|
+
return this.coordinator.execute(request);
|
|
81
|
+
}
|
|
82
|
+
return err(new Error('Invalid execute-tests payload: missing testFiles or framework'));
|
|
83
|
+
}],
|
|
84
|
+
// Detect flaky tests task
|
|
85
|
+
['detect-flaky', async (payload) => {
|
|
86
|
+
if (!this.coordinator) {
|
|
87
|
+
return err(new Error('Coordinator not initialized'));
|
|
88
|
+
}
|
|
89
|
+
const testFiles = payload.testFiles;
|
|
90
|
+
const runs = payload.runs;
|
|
91
|
+
const threshold = payload.threshold;
|
|
92
|
+
if (!testFiles) {
|
|
93
|
+
return err(new Error('Invalid detect-flaky payload: missing testFiles'));
|
|
94
|
+
}
|
|
95
|
+
return this.coordinator.detectFlaky({
|
|
96
|
+
testFiles,
|
|
97
|
+
runs: runs ?? 5,
|
|
98
|
+
threshold: threshold ?? 0.1,
|
|
99
|
+
});
|
|
100
|
+
}],
|
|
101
|
+
// Retry failed tests task
|
|
102
|
+
['retry-tests', async (payload) => {
|
|
103
|
+
if (!this.coordinator) {
|
|
104
|
+
return err(new Error('Coordinator not initialized'));
|
|
105
|
+
}
|
|
106
|
+
const runId = payload.runId;
|
|
107
|
+
const failedTests = payload.failedTests;
|
|
108
|
+
const maxRetries = payload.maxRetries;
|
|
109
|
+
if (!runId || !failedTests) {
|
|
110
|
+
return err(new Error('Invalid retry-tests payload: missing runId or failedTests'));
|
|
111
|
+
}
|
|
112
|
+
return this.coordinator.retry({
|
|
113
|
+
runId,
|
|
114
|
+
failedTests,
|
|
115
|
+
maxRetries: maxRetries ?? 3,
|
|
116
|
+
backoff: payload.backoff,
|
|
117
|
+
});
|
|
118
|
+
}],
|
|
119
|
+
]);
|
|
120
|
+
}
|
|
121
|
+
// ============================================================================
|
|
45
122
|
// Lifecycle Hooks
|
|
46
123
|
// ============================================================================
|
|
47
124
|
async onInitialize() {
|
|
48
125
|
this.coordinator = createTestExecutionCoordinator(this.eventBus, this.memory);
|
|
49
126
|
await this.coordinator.initialize();
|
|
127
|
+
// Issue #205 fix: Start with 'idle' status (0 agents)
|
|
50
128
|
this.updateHealth({
|
|
51
|
-
status: '
|
|
129
|
+
status: 'idle',
|
|
52
130
|
lastActivity: new Date(),
|
|
53
131
|
});
|
|
54
132
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../../src/domains/test-execution/plugin.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../../src/domains/test-execution/plugin.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAuC,GAAG,EAAE,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAAe,MAAM,qBAAqB,CAAC;AAGpE,OAAO,EAA4B,8BAA8B,EAAE,MAAM,eAAe,CAAC;AAEzF,+EAA+E;AAC/E,wBAAwB;AACxB,+EAA+E;AAE/E,MAAM,OAAO,mBAAoB,SAAQ,gBAAgB;IAC/C,WAAW,GAAoC,IAAI,CAAC;IAE5D,YAAY,QAAkB,EAAE,MAAqB;QACnD,KAAK,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IAC1B,CAAC;IAED,IAAI,IAAI;QACN,OAAO,gBAAgB,CAAC;IAC1B,CAAC;IAED,IAAI,OAAO;QACT,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,IAAI,YAAY;QACd,8DAA8D;QAC9D,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAC7B,CAAC;IAED;;OAEG;IACH,MAAM;QACJ,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;YACtB,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;QAC5C,CAAC;QAED,MAAM,GAAG,GAAqB;YAC5B,QAAQ,EAAE,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC;YAC1D,OAAO,EAAE,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC;YACxD,eAAe,EAAE,IAAI,CAAC,WAA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AAO,CAAC,cAAc;gBACtC,QAAQ,EAAE,MAAM;aACjB,EACD,EAAE,SAAS,EAAE,gBAAgB,EAAE,OAAO,EAAE,IAAI,EAAE,CAC/C,CAAC;QACJ,CAAC;QAED,IAAI,CAAC,YAAY,CAAC;YAChB,YAAY,EAAE,IAAI,IAAI,EAAE;SACzB,CAAC,CAAC;IACL,CAAC;CACF;AAED,+EAA+E;AAC/E,mBAAmB;AACnB,+EAA+E;AAE/E,MAAM,UAAU,yBAAyB,CACvC,QAAkB,EAClB,MAAqB;IAErB,OAAO,IAAI,mBAAmB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;AACnD,CAAC"}
|
|
@@ -1,176 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Agentic QE v3 - Test Prioritization Types
|
|
2
|
+
* Agentic QE v3 - Test Prioritization Types
|
|
3
|
+
* @deprecated This file has been merged into interfaces.ts - import from there instead
|
|
3
4
|
*
|
|
4
|
-
*
|
|
5
|
-
* Maps test metadata to RL state features and priority decisions to actions.
|
|
5
|
+
* Re-exports for backward compatibility
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Extended test execution state for prioritization
|
|
11
|
-
*/
|
|
12
|
-
export interface TestPrioritizationState extends TestExecutionState {
|
|
13
|
-
/** Test file path */
|
|
14
|
-
filePath: string;
|
|
15
|
-
/** Test name within the file */
|
|
16
|
-
testName: string;
|
|
17
|
-
/** Test complexity score (0-1) */
|
|
18
|
-
complexity: number;
|
|
19
|
-
/** Estimated execution time (ms) */
|
|
20
|
-
estimatedDuration: number;
|
|
21
|
-
/** Code coverage percentage (0-100) */
|
|
22
|
-
coverage: number;
|
|
23
|
-
/** Recent failure rate (0-1) */
|
|
24
|
-
failureRate: number;
|
|
25
|
-
/** Flakiness score (0-1) */
|
|
26
|
-
flakinessScore: number;
|
|
27
|
-
/** Number of recent executions */
|
|
28
|
-
executionCount: number;
|
|
29
|
-
/** Time since last modification (ms) */
|
|
30
|
-
timeSinceModification: number;
|
|
31
|
-
/** Business criticality (0-1) */
|
|
32
|
-
businessCriticality: number;
|
|
33
|
-
/** Dependency count (number of tests this depends on) */
|
|
34
|
-
dependencyCount: number;
|
|
35
|
-
/** Priority assigned by human or rules */
|
|
36
|
-
assignedPriority: Priority;
|
|
37
|
-
/** Domain this test belongs to */
|
|
38
|
-
domain: DomainName;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Normalized feature vector for DT input
|
|
42
|
-
* Features are normalized to [0, 1] range for stable training
|
|
43
|
-
*/
|
|
44
|
-
export interface TestPrioritizationFeatures {
|
|
45
|
-
/** Feature 0: Failure probability (recent history) */
|
|
46
|
-
failureProbability: number;
|
|
47
|
-
/** Feature 1: Flakiness score */
|
|
48
|
-
flakiness: number;
|
|
49
|
-
/** Feature 2: Complexity */
|
|
50
|
-
complexity: number;
|
|
51
|
-
/** Feature 3: Coverage gap (1 - coverage) */
|
|
52
|
-
coverageGap: number;
|
|
53
|
-
/** Feature 4: Business criticality */
|
|
54
|
-
criticality: number;
|
|
55
|
-
/** Feature 5: Execution speed (inverse of duration) */
|
|
56
|
-
speed: number;
|
|
57
|
-
/** Feature 6: Age (inverse of time since modification) */
|
|
58
|
-
age: number;
|
|
59
|
-
/** Feature 7: Dependency complexity */
|
|
60
|
-
dependencyComplexity: number;
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Map test metadata to normalized feature vector
|
|
64
|
-
*/
|
|
65
|
-
export declare function mapToFeatures(test: Partial<TestPrioritizationState>): TestPrioritizationFeatures;
|
|
66
|
-
/**
|
|
67
|
-
* Convert features to numeric array for RL algorithms
|
|
68
|
-
*/
|
|
69
|
-
export declare function featuresToArray(features: TestPrioritizationFeatures): number[];
|
|
70
|
-
/**
|
|
71
|
-
* Priority level action for test ordering
|
|
72
|
-
*/
|
|
73
|
-
export type PriorityAction = 'critical' | 'high' | 'standard' | 'low' | 'defer';
|
|
74
|
-
/**
|
|
75
|
-
* Test prioritization action
|
|
76
|
-
*/
|
|
77
|
-
export interface TestPrioritizationAction extends TestExecutionAction {
|
|
78
|
-
type: 'prioritize';
|
|
79
|
-
/** Priority level */
|
|
80
|
-
value: PriorityAction;
|
|
81
|
-
/** Position in execution queue (0 = first) */
|
|
82
|
-
position?: number;
|
|
83
|
-
/** Reasoning for priority */
|
|
84
|
-
reasoning?: string;
|
|
85
|
-
/** Confidence score (0-1) */
|
|
86
|
-
confidence: number;
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* Map priority action to numeric score for sorting
|
|
90
|
-
*/
|
|
91
|
-
export declare function priorityToScore(action: PriorityAction): number;
|
|
92
|
-
/**
|
|
93
|
-
* Map priority action to Priority enum
|
|
94
|
-
*/
|
|
95
|
-
export declare function priorityActionToPriority(action: PriorityAction): Priority;
|
|
96
|
-
/**
|
|
97
|
-
* Execution context for prioritization decisions
|
|
98
|
-
*/
|
|
99
|
-
export interface TestPrioritizationContext {
|
|
100
|
-
/** Current run ID */
|
|
101
|
-
runId: string;
|
|
102
|
-
/** Total tests to execute */
|
|
103
|
-
totalTests: number;
|
|
104
|
-
/** Available execution time (ms) */
|
|
105
|
-
availableTime: number;
|
|
106
|
-
/** Number of workers for parallel execution */
|
|
107
|
-
workers: number;
|
|
108
|
-
/** Execution mode */
|
|
109
|
-
mode: 'sequential' | 'parallel';
|
|
110
|
-
/** Current phase */
|
|
111
|
-
phase: 'regression' | 'ci' | 'local' | 'smoke';
|
|
112
|
-
/** Previous run results (for learning) */
|
|
113
|
-
history?: TestExecutionHistory[];
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* Historical execution data for learning
|
|
117
|
-
*/
|
|
118
|
-
export interface TestExecutionHistory {
|
|
119
|
-
testId: string;
|
|
120
|
-
timestamp: Date;
|
|
121
|
-
passed: boolean;
|
|
122
|
-
duration: number;
|
|
123
|
-
priority: Priority;
|
|
124
|
-
failureReason?: string;
|
|
125
|
-
}
|
|
126
|
-
/**
|
|
127
|
-
* Reward components for test prioritization
|
|
128
|
-
*/
|
|
129
|
-
export interface TestPrioritizationReward {
|
|
130
|
-
/** Early failure detection reward */
|
|
131
|
-
earlyDetection: number;
|
|
132
|
-
/** Execution time efficiency */
|
|
133
|
-
timeEfficiency: number;
|
|
134
|
-
/** Coverage improvement */
|
|
135
|
-
coverageGain: number;
|
|
136
|
-
/** Flakiness reduction */
|
|
137
|
-
flakinessReduction: number;
|
|
138
|
-
/** Total reward */
|
|
139
|
-
total: number;
|
|
140
|
-
}
|
|
141
|
-
/**
|
|
142
|
-
* Calculate reward for test prioritization decision
|
|
143
|
-
*/
|
|
144
|
-
export declare function calculatePrioritizationReward(context: TestPrioritizationContext, result: {
|
|
145
|
-
failedEarly: boolean;
|
|
146
|
-
executionTime: number;
|
|
147
|
-
coverageImproved: boolean;
|
|
148
|
-
flakyDetected: boolean;
|
|
149
|
-
}): TestPrioritizationReward;
|
|
150
|
-
/**
|
|
151
|
-
* Input metadata for creating test prioritization state
|
|
152
|
-
*/
|
|
153
|
-
export interface TestPrioritizationMetadata {
|
|
154
|
-
filePath: string;
|
|
155
|
-
testName: string;
|
|
156
|
-
testType?: 'unit' | 'integration' | 'e2e' | 'performance' | 'security';
|
|
157
|
-
priority?: Priority;
|
|
158
|
-
complexity?: number;
|
|
159
|
-
domain?: DomainName;
|
|
160
|
-
dependencies?: string[];
|
|
161
|
-
estimatedDuration?: number;
|
|
162
|
-
coverage?: number;
|
|
163
|
-
failureHistory?: number[];
|
|
164
|
-
failureRate?: number;
|
|
165
|
-
flakinessScore?: number;
|
|
166
|
-
executionCount?: number;
|
|
167
|
-
timeSinceModification?: number;
|
|
168
|
-
businessCriticality?: number;
|
|
169
|
-
dependencyCount?: number;
|
|
170
|
-
assignedPriority?: Priority;
|
|
171
|
-
}
|
|
172
|
-
/**
|
|
173
|
-
* Create test prioritization state from test metadata
|
|
174
|
-
*/
|
|
175
|
-
export declare function createTestPrioritizationState(testId: string, metadata: TestPrioritizationMetadata): TestPrioritizationState;
|
|
7
|
+
export type { TestPrioritizationState, TestPrioritizationFeatures, PriorityAction, TestPrioritizationAction, TestPrioritizationContext, TestExecutionHistory, TestPrioritizationReward, TestPrioritizationMetadata, } from './interfaces';
|
|
8
|
+
export { mapToFeatures, featuresToArray, priorityToScore, priorityActionToPriority, calculatePrioritizationReward, createTestPrioritizationState, } from './interfaces';
|
|
176
9
|
//# sourceMappingURL=test-prioritization-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-prioritization-types.d.ts","sourceRoot":"","sources":["../../../src/domains/test-execution/test-prioritization-types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,
|
|
1
|
+
{"version":3,"file":"test-prioritization-types.d.ts","sourceRoot":"","sources":["../../../src/domains/test-execution/test-prioritization-types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,YAAY,EAEV,uBAAuB,EACvB,0BAA0B,EAG1B,cAAc,EACd,wBAAwB,EAGxB,yBAAyB,EACzB,oBAAoB,EAGpB,wBAAwB,EAGxB,0BAA0B,GAC3B,MAAM,cAAc,CAAC;AAEtB,OAAO,EAEL,aAAa,EACb,eAAe,EACf,eAAe,EACf,wBAAwB,EACxB,6BAA6B,EAC7B,6BAA6B,GAC9B,MAAM,cAAc,CAAC"}
|
|
@@ -1,133 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Agentic QE v3 - Test Prioritization Types
|
|
2
|
+
* Agentic QE v3 - Test Prioritization Types
|
|
3
|
+
* @deprecated This file has been merged into interfaces.ts - import from there instead
|
|
3
4
|
*
|
|
4
|
-
*
|
|
5
|
-
* Maps test metadata to RL state features and priority decisions to actions.
|
|
5
|
+
* Re-exports for backward compatibility
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
}
|
|
7
|
+
export {
|
|
8
|
+
// Utility functions
|
|
9
|
+
mapToFeatures, featuresToArray, priorityToScore, priorityActionToPriority, calculatePrioritizationReward, createTestPrioritizationState, } from './interfaces';
|
|
133
10
|
//# sourceMappingURL=test-prioritization-types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-prioritization-types.js","sourceRoot":"","sources":["../../../src/domains/test-execution/test-prioritization-types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"test-prioritization-types.js","sourceRoot":"","sources":["../../../src/domains/test-execution/test-prioritization-types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAsBH,OAAO;AACL,oBAAoB;AACpB,aAAa,EACb,eAAe,EACf,eAAe,EACf,wBAAwB,EACxB,6BAA6B,EAC7B,6BAA6B,GAC9B,MAAM,cAAc,CAAC"}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Agentic QE v3 - Test Execution Domain Types
|
|
3
|
-
*
|
|
3
|
+
* @deprecated This file has been merged into interfaces.ts - import from '../interfaces' instead
|
|
4
|
+
*
|
|
5
|
+
* Re-exports for backward compatibility
|
|
4
6
|
*/
|
|
5
|
-
export { E2EStepType,
|
|
6
|
-
export { FlowCategory, FlowStatus, RecordedActionType,
|
|
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 './e2e-step.types';
|
|
8
|
+
export type { 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 './flow-templates.types';
|
|
9
|
+
export { createNavigateStep, createClickStep, createTypeStep, createWaitStep, createAssertStep, createScreenshotStep, createA11yCheckStep, createE2ETestCase, isNavigateStep, isClickStep, isTypeStep, isWaitStep, isAssertStep, isScreenshotStep, isA11yCheckStep, } from './e2e-step.types';
|
|
10
|
+
export { isNavigateAction, isClickAction, isTypeAction, isAssertionAction, isLoginFlowTemplate, isCheckoutFlowTemplate, isFormSubmissionFlowTemplate, isSearchFlowTemplate, isNavigationFlowTemplate, DEFAULT_RECORDING_CONFIG, DEFAULT_CODE_GENERATION_OPTIONS, } from './flow-templates.types';
|
|
7
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/domains/test-execution/types/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/domains/test-execution/types/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,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,GACxB,MAAM,kBAAkB,CAAC;AAE1B,YAAY,EAEV,YAAY,EACZ,UAAU,EACV,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,WAAW,EACX,UAAU,EACV,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,cAAc,EACd,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,oBAAoB,EACpB,0BAA0B,EAC1B,kBAAkB,EAClB,sBAAsB,EACtB,YAAY,EACZ,eAAe,EACf,gBAAgB,EAChB,QAAQ,EACR,qBAAqB,EACrB,iBAAiB,GAClB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAEL,kBAAkB,EAClB,eAAe,EACf,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,iBAAiB,EACjB,cAAc,EACd,WAAW,EACX,UAAU,EACV,UAAU,EACV,YAAY,EACZ,gBAAgB,EAChB,eAAe,GAChB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAEL,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,mBAAmB,EACnB,sBAAsB,EACtB,4BAA4B,EAC5B,oBAAoB,EACpB,wBAAwB,EACxB,wBAAwB,EACxB,+BAA+B,GAChC,MAAM,wBAAwB,CAAC"}
|
|
@@ -1,23 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Agentic QE v3 - Test Execution Domain Types
|
|
3
|
-
*
|
|
3
|
+
* @deprecated This file has been merged into interfaces.ts - import from '../interfaces' instead
|
|
4
|
+
*
|
|
5
|
+
* Re-exports for backward compatibility
|
|
4
6
|
*/
|
|
5
|
-
// ============================================================================
|
|
6
|
-
// E2E Step Types
|
|
7
|
-
// ============================================================================
|
|
8
7
|
export {
|
|
9
|
-
// Step Type
|
|
10
|
-
|
|
11
|
-
// Factory Functions
|
|
12
|
-
createNavigateStep, createClickStep, createTypeStep, createWaitStep, createAssertStep, createScreenshotStep, createA11yCheckStep, createE2ETestCase,
|
|
13
|
-
// Type Guards
|
|
14
|
-
isNavigateStep, isClickStep, isTypeStep, isWaitStep, isAssertStep, isScreenshotStep, isA11yCheckStep, } from './e2e-step.types';
|
|
15
|
-
// ============================================================================
|
|
16
|
-
// Flow Template Types
|
|
17
|
-
// ============================================================================
|
|
8
|
+
// E2E Step Type Guards and Factories
|
|
9
|
+
createNavigateStep, createClickStep, createTypeStep, createWaitStep, createAssertStep, createScreenshotStep, createA11yCheckStep, createE2ETestCase, isNavigateStep, isClickStep, isTypeStep, isWaitStep, isAssertStep, isScreenshotStep, isA11yCheckStep, } from './e2e-step.types';
|
|
18
10
|
export {
|
|
19
|
-
//
|
|
20
|
-
|
|
21
|
-
// Type Guards
|
|
22
|
-
isNavigateAction, isClickAction, isTypeAction, isAssertionAction, isLoginFlowTemplate, isCheckoutFlowTemplate, isFormSubmissionFlowTemplate, isSearchFlowTemplate, isNavigationFlowTemplate, } from './flow-templates.types';
|
|
11
|
+
// Flow Template Type Guards and Constants
|
|
12
|
+
isNavigateAction, isClickAction, isTypeAction, isAssertionAction, isLoginFlowTemplate, isCheckoutFlowTemplate, isFormSubmissionFlowTemplate, isSearchFlowTemplate, isNavigationFlowTemplate, DEFAULT_RECORDING_CONFIG, DEFAULT_CODE_GENERATION_OPTIONS, } from './flow-templates.types';
|
|
23
13
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/domains/test-execution/types/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/domains/test-execution/types/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAsEH,OAAO;AACL,qCAAqC;AACrC,kBAAkB,EAClB,eAAe,EACf,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,iBAAiB,EACjB,cAAc,EACd,WAAW,EACX,UAAU,EACV,UAAU,EACV,YAAY,EACZ,gBAAgB,EAChB,eAAe,GAChB,MAAM,kBAAkB,CAAC;AAE1B,OAAO;AACL,0CAA0C;AAC1C,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,mBAAmB,EACnB,sBAAsB,EACtB,4BAA4B,EAC5B,oBAAoB,EACpB,wBAAwB,EACxB,wBAAwB,EACxB,+BAA+B,GAChC,MAAM,wBAAwB,CAAC"}
|
|
@@ -12,7 +12,7 @@ import { EventBus, MemoryBackend, AgentCoordinator } from '../../kernel/interfac
|
|
|
12
12
|
import { GenerateTestsRequest, GeneratedTests, TDDRequest, TDDResult, PropertyTestRequest, PropertyTests, TestDataRequest, TestData, LearnPatternsRequest, LearnedPatterns, TestGenerationAPI } from './interfaces';
|
|
13
13
|
import { type QEPatternType, type QESONAStats } from '../../integrations/ruvector/wrappers.js';
|
|
14
14
|
import { type QEWorkloadType, type QEFlashAttentionMetrics } from '../../integrations/ruvector/wrappers.js';
|
|
15
|
-
import { type Requirement, type RequirementCoherenceResult } from './coherence-gate.js';
|
|
15
|
+
import { type Requirement, type RequirementCoherenceResult } from './services/coherence-gate-service.js';
|
|
16
16
|
import type { ICoherenceService } from '../../integrations/coherence/coherence-service.js';
|
|
17
17
|
/**
|
|
18
18
|
* Interface for the test generation coordinator
|
|
@@ -79,6 +79,8 @@ export declare class TestGenerationCoordinator implements ITestGenerationCoordin
|
|
|
79
79
|
private flashAttention;
|
|
80
80
|
private decisionTransformer;
|
|
81
81
|
private testEmbeddings;
|
|
82
|
+
private readonly domainName;
|
|
83
|
+
private recentDreamInsights;
|
|
82
84
|
private coherenceGate;
|
|
83
85
|
constructor(eventBus: EventBus, memory: MemoryBackend, agentCoordinator: AgentCoordinator, config?: Partial<CoordinatorConfig>, coherenceService?: (ICoherenceService | null) | undefined);
|
|
84
86
|
/**
|
|
@@ -131,6 +133,44 @@ export declare class TestGenerationCoordinator implements ITestGenerationCoordin
|
|
|
131
133
|
private updateWorkflowProgress;
|
|
132
134
|
private getTDDProgress;
|
|
133
135
|
private subscribeToEvents;
|
|
136
|
+
/**
|
|
137
|
+
* Subscribe to dream cycle completion events from learning-optimization domain.
|
|
138
|
+
* Dream insights can suggest edge cases, novel test patterns, and optimization opportunities.
|
|
139
|
+
*/
|
|
140
|
+
private subscribeToDreamEvents;
|
|
141
|
+
/**
|
|
142
|
+
* Handle dream cycle completion event.
|
|
143
|
+
* Filters insights relevant to test generation and applies actionable ones.
|
|
144
|
+
*/
|
|
145
|
+
private handleDreamCycleCompleted;
|
|
146
|
+
/**
|
|
147
|
+
* Apply a dream insight by storing it as a learned pattern via SONA.
|
|
148
|
+
* This allows the insight to influence future test generation decisions.
|
|
149
|
+
*
|
|
150
|
+
* @param insight - The dream insight to apply
|
|
151
|
+
* @param cycleId - The dream cycle ID for tracking
|
|
152
|
+
*/
|
|
153
|
+
private applyDreamInsight;
|
|
154
|
+
/**
|
|
155
|
+
* Get recent dream insights filtered by type.
|
|
156
|
+
* Used by test generation methods to enhance test case discovery.
|
|
157
|
+
*
|
|
158
|
+
* @param insightType - Optional type filter (e.g., 'novel_association', 'gap_detection')
|
|
159
|
+
* @returns Array of recent dream insights
|
|
160
|
+
*/
|
|
161
|
+
private getRecentDreamInsights;
|
|
162
|
+
/**
|
|
163
|
+
* Enhance test generation request with dream insights for edge case discovery.
|
|
164
|
+
* Queries recent dream insights to suggest additional test scenarios.
|
|
165
|
+
*
|
|
166
|
+
* @param request - The original test generation request
|
|
167
|
+
* @returns Array of suggested edge case descriptions from dream insights
|
|
168
|
+
*/
|
|
169
|
+
private enhanceWithDreamInsights;
|
|
170
|
+
/**
|
|
171
|
+
* Encode a dream insight as feature vector for SONA pattern creation.
|
|
172
|
+
*/
|
|
173
|
+
private encodeInsightAsFeatures;
|
|
134
174
|
private handleCoverageGapDetected;
|
|
135
175
|
private handleTestRunCompleted;
|
|
136
176
|
private learnFromGeneration;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coordinator.d.ts","sourceRoot":"","sources":["../../../src/domains/test-generation/coordinator.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EACL,MAAM,EAGP,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,QAAQ,EACR,aAAa,EACb,gBAAgB,EAEjB,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"coordinator.d.ts","sourceRoot":"","sources":["../../../src/domains/test-generation/coordinator.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EACL,MAAM,EAGP,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,QAAQ,EACR,aAAa,EACb,gBAAgB,EAEjB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