agentic-qe 3.3.3 → 3.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/agents/v3/README.md +100 -0
- package/.claude/agents/v3/qe-accessibility-auditor.md +112 -11
- package/.claude/agents/v3/qe-bdd-generator.md +40 -0
- package/.claude/agents/v3/qe-coverage-specialist.md +39 -0
- package/.claude/agents/v3/qe-defect-predictor.md +36 -0
- package/.claude/agents/v3/qe-gap-detector.md +39 -0
- package/.claude/agents/v3/qe-pattern-learner.md +31 -0
- package/.claude/agents/v3/qe-product-factors-assessor.md +34 -0
- package/.claude/agents/v3/qe-quality-criteria-recommender.md +32 -0
- package/.claude/agents/v3/qe-quality-gate.md +39 -0
- package/.claude/agents/v3/qe-requirements-validator.md +37 -0
- package/.claude/agents/v3/qe-risk-assessor.md +33 -0
- package/.claude/agents/v3/qe-tdd-specialist.md +33 -0
- package/.claude/agents/v3/qe-test-architect.md +36 -0
- package/.claude/skills/README.md +30 -104
- package/.claude/skills/a11y-ally/SKILL.md +1658 -0
- package/.claude/skills/qcsd-ideation-swarm/SKILL.md +1750 -0
- package/.claude/skills/skills-manifest.json +78 -8
- package/README.md +18 -4
- package/package.json +1 -1
- package/scripts/demo-warmup.sh +45 -0
- package/scripts/fetch-content.js +460 -0
- package/v3/CHANGELOG.md +101 -0
- package/v3/README.md +11 -6
- package/v3/assets/agents/v3/README.md +100 -0
- package/v3/assets/agents/v3/qe-accessibility-auditor.md +112 -11
- package/v3/assets/agents/v3/qe-bdd-generator.md +40 -0
- package/v3/assets/agents/v3/qe-coverage-specialist.md +39 -0
- package/v3/assets/agents/v3/qe-defect-predictor.md +36 -0
- package/v3/assets/agents/v3/qe-gap-detector.md +39 -0
- package/v3/assets/agents/v3/qe-pattern-learner.md +31 -0
- package/v3/assets/agents/v3/qe-product-factors-assessor.md +34 -0
- package/v3/assets/agents/v3/qe-quality-criteria-recommender.md +32 -0
- package/v3/assets/agents/v3/qe-quality-gate.md +39 -0
- package/v3/assets/agents/v3/qe-requirements-validator.md +37 -0
- package/v3/assets/agents/v3/qe-risk-assessor.md +33 -0
- package/v3/assets/agents/v3/qe-tdd-specialist.md +33 -0
- package/v3/assets/agents/v3/qe-test-architect.md +36 -0
- package/v3/assets/hooks/cross-phase-memory.yaml +253 -0
- package/v3/assets/skills/a11y-ally/SKILL.md +1658 -0
- package/v3/assets/skills/qcsd-ideation-swarm/SKILL.md +1750 -0
- package/v3/assets/skills/skills-manifest.json +753 -0
- package/v3/dist/adapters/claude-flow/model-router-bridge.d.ts.map +1 -1
- package/v3/dist/adapters/claude-flow/model-router-bridge.js +6 -4
- package/v3/dist/adapters/claude-flow/model-router-bridge.js.map +1 -1
- package/v3/dist/adapters/claude-flow/pretrain-bridge.d.ts.map +1 -1
- package/v3/dist/adapters/claude-flow/pretrain-bridge.js +13 -8
- package/v3/dist/adapters/claude-flow/pretrain-bridge.js.map +1 -1
- package/v3/dist/adapters/claude-flow/trajectory-bridge.d.ts.map +1 -1
- package/v3/dist/adapters/claude-flow/trajectory-bridge.js +9 -6
- package/v3/dist/adapters/claude-flow/trajectory-bridge.js.map +1 -1
- package/v3/dist/benchmarks/performance-benchmarks.d.ts.map +1 -1
- package/v3/dist/benchmarks/performance-benchmarks.js +5 -3
- package/v3/dist/benchmarks/performance-benchmarks.js.map +1 -1
- package/v3/dist/cli/bundle.js +27611 -23175
- package/v3/dist/cli/commands/hooks.d.ts.map +1 -1
- package/v3/dist/cli/commands/hooks.js +288 -0
- package/v3/dist/cli/commands/hooks.js.map +1 -1
- package/v3/dist/cli/commands/sync.d.ts.map +1 -1
- package/v3/dist/cli/commands/sync.js +0 -6
- package/v3/dist/cli/commands/sync.js.map +1 -1
- package/v3/dist/cli/handlers/init-handler.d.ts.map +1 -1
- package/v3/dist/cli/handlers/init-handler.js +11 -0
- package/v3/dist/cli/handlers/init-handler.js.map +1 -1
- package/v3/dist/cli/index.js +14 -2
- package/v3/dist/cli/index.js.map +1 -1
- package/v3/dist/cli/scheduler/persistent-scheduler.d.ts.map +1 -1
- package/v3/dist/cli/scheduler/persistent-scheduler.js +3 -2
- package/v3/dist/cli/scheduler/persistent-scheduler.js.map +1 -1
- package/v3/dist/cli/wizards/test-wizard.d.ts.map +1 -1
- package/v3/dist/cli/wizards/test-wizard.js +6 -4
- package/v3/dist/cli/wizards/test-wizard.js.map +1 -1
- package/v3/dist/coordination/consensus/providers/native-learning-provider.d.ts.map +1 -1
- package/v3/dist/coordination/consensus/providers/native-learning-provider.js +10 -8
- package/v3/dist/coordination/consensus/providers/native-learning-provider.js.map +1 -1
- package/v3/dist/coordination/consensus/providers/ollama-provider.d.ts.map +1 -1
- package/v3/dist/coordination/consensus/providers/ollama-provider.js +5 -4
- package/v3/dist/coordination/consensus/providers/ollama-provider.js.map +1 -1
- package/v3/dist/coordination/consensus/providers/openai-provider.d.ts.map +1 -1
- package/v3/dist/coordination/consensus/providers/openai-provider.js +5 -4
- package/v3/dist/coordination/consensus/providers/openai-provider.js.map +1 -1
- package/v3/dist/coordination/constants.d.ts +198 -0
- package/v3/dist/coordination/constants.d.ts.map +1 -0
- package/v3/dist/coordination/constants.js +210 -0
- package/v3/dist/coordination/constants.js.map +1 -0
- package/v3/dist/coordination/mincut/dream-integration.d.ts.map +1 -1
- package/v3/dist/coordination/mincut/dream-integration.js +5 -1
- package/v3/dist/coordination/mincut/dream-integration.js.map +1 -1
- package/v3/dist/coordination/queen-coordinator.d.ts +9 -1
- package/v3/dist/coordination/queen-coordinator.d.ts.map +1 -1
- package/v3/dist/coordination/queen-coordinator.js +49 -9
- package/v3/dist/coordination/queen-coordinator.js.map +1 -1
- package/v3/dist/coordination/task-executor.d.ts.map +1 -1
- package/v3/dist/coordination/task-executor.js +7 -8
- package/v3/dist/coordination/task-executor.js.map +1 -1
- package/v3/dist/coordination/workflow-orchestrator.d.ts.map +1 -1
- package/v3/dist/coordination/workflow-orchestrator.js +261 -0
- package/v3/dist/coordination/workflow-orchestrator.js.map +1 -1
- package/v3/dist/domains/chaos-resilience/plugin.d.ts +14 -3
- package/v3/dist/domains/chaos-resilience/plugin.d.ts.map +1 -1
- package/v3/dist/domains/chaos-resilience/plugin.js +96 -0
- package/v3/dist/domains/chaos-resilience/plugin.js.map +1 -1
- package/v3/dist/domains/chaos-resilience/services/performance-profiler.d.ts.map +1 -1
- package/v3/dist/domains/chaos-resilience/services/performance-profiler.js +12 -8
- package/v3/dist/domains/chaos-resilience/services/performance-profiler.js.map +1 -1
- package/v3/dist/domains/code-intelligence/plugin.d.ts +13 -3
- package/v3/dist/domains/code-intelligence/plugin.d.ts.map +1 -1
- package/v3/dist/domains/code-intelligence/plugin.js +85 -0
- package/v3/dist/domains/code-intelligence/plugin.js.map +1 -1
- package/v3/dist/domains/code-intelligence/services/product-factors-bridge.d.ts.map +1 -1
- package/v3/dist/domains/code-intelligence/services/product-factors-bridge.js +3 -2
- package/v3/dist/domains/code-intelligence/services/product-factors-bridge.js.map +1 -1
- package/v3/dist/domains/constants.d.ts +481 -0
- package/v3/dist/domains/constants.d.ts.map +1 -0
- package/v3/dist/domains/constants.js +503 -0
- package/v3/dist/domains/constants.js.map +1 -0
- package/v3/dist/domains/contract-testing/plugin.d.ts +6 -1
- package/v3/dist/domains/contract-testing/plugin.d.ts.map +1 -1
- package/v3/dist/domains/contract-testing/plugin.js +80 -1
- package/v3/dist/domains/contract-testing/plugin.js.map +1 -1
- package/v3/dist/domains/contract-testing/services/contract-validator.d.ts.map +1 -1
- package/v3/dist/domains/contract-testing/services/contract-validator.js +5 -4
- package/v3/dist/domains/contract-testing/services/contract-validator.js.map +1 -1
- package/v3/dist/domains/coverage-analysis/services/hnsw-index.d.ts.map +1 -1
- package/v3/dist/domains/coverage-analysis/services/hnsw-index.js +1 -0
- package/v3/dist/domains/coverage-analysis/services/hnsw-index.js.map +1 -1
- package/v3/dist/domains/defect-intelligence/coordinator.d.ts +2 -2
- package/v3/dist/domains/defect-intelligence/coordinator.d.ts.map +1 -1
- package/v3/dist/domains/defect-intelligence/coordinator.js.map +1 -1
- package/v3/dist/domains/defect-intelligence/plugin.d.ts +6 -1
- package/v3/dist/domains/defect-intelligence/plugin.d.ts.map +1 -1
- package/v3/dist/domains/defect-intelligence/plugin.js +101 -0
- package/v3/dist/domains/defect-intelligence/plugin.js.map +1 -1
- package/v3/dist/domains/defect-intelligence/services/defect-predictor.d.ts.map +1 -1
- package/v3/dist/domains/defect-intelligence/services/defect-predictor.js +3 -2
- package/v3/dist/domains/defect-intelligence/services/defect-predictor.js.map +1 -1
- package/v3/dist/domains/domain-interface.d.ts.map +1 -1
- package/v3/dist/domains/domain-interface.js +24 -9
- package/v3/dist/domains/domain-interface.js.map +1 -1
- package/v3/dist/domains/learning-optimization/plugin.d.ts +2 -1
- package/v3/dist/domains/learning-optimization/plugin.d.ts.map +1 -1
- package/v3/dist/domains/learning-optimization/plugin.js +49 -0
- package/v3/dist/domains/learning-optimization/plugin.js.map +1 -1
- package/v3/dist/domains/quality-assessment/coordinator.d.ts +90 -1
- package/v3/dist/domains/quality-assessment/coordinator.d.ts.map +1 -1
- package/v3/dist/domains/quality-assessment/coordinator.js +310 -0
- package/v3/dist/domains/quality-assessment/coordinator.js.map +1 -1
- package/v3/dist/domains/requirements-validation/index.d.ts +1 -0
- package/v3/dist/domains/requirements-validation/index.d.ts.map +1 -1
- package/v3/dist/domains/requirements-validation/index.js +2 -0
- package/v3/dist/domains/requirements-validation/index.js.map +1 -1
- package/v3/dist/domains/requirements-validation/plugin.d.ts +13 -1
- package/v3/dist/domains/requirements-validation/plugin.d.ts.map +1 -1
- package/v3/dist/domains/requirements-validation/plugin.js +94 -0
- package/v3/dist/domains/requirements-validation/plugin.js.map +1 -1
- package/v3/dist/domains/requirements-validation/qcsd-ideation-plugin.d.ts +245 -0
- package/v3/dist/domains/requirements-validation/qcsd-ideation-plugin.d.ts.map +1 -0
- package/v3/dist/domains/requirements-validation/qcsd-ideation-plugin.js +1143 -0
- package/v3/dist/domains/requirements-validation/qcsd-ideation-plugin.js.map +1 -0
- package/v3/dist/domains/requirements-validation/services/product-factors-assessment/code-intelligence/codebase-analyzer.d.ts.map +1 -1
- package/v3/dist/domains/requirements-validation/services/product-factors-assessment/code-intelligence/codebase-analyzer.js +3 -2
- package/v3/dist/domains/requirements-validation/services/product-factors-assessment/code-intelligence/codebase-analyzer.js.map +1 -1
- package/v3/dist/domains/security-compliance/plugin.d.ts +3 -2
- package/v3/dist/domains/security-compliance/plugin.d.ts.map +1 -1
- package/v3/dist/domains/security-compliance/plugin.js +64 -0
- package/v3/dist/domains/security-compliance/plugin.js.map +1 -1
- package/v3/dist/domains/security-compliance/services/scanners/dast-auth-testing.d.ts +25 -0
- package/v3/dist/domains/security-compliance/services/scanners/dast-auth-testing.d.ts.map +1 -0
- package/v3/dist/domains/security-compliance/services/scanners/dast-auth-testing.js +160 -0
- package/v3/dist/domains/security-compliance/services/scanners/dast-auth-testing.js.map +1 -0
- package/v3/dist/domains/security-compliance/services/scanners/dast-helpers.d.ts +48 -0
- package/v3/dist/domains/security-compliance/services/scanners/dast-helpers.d.ts.map +1 -0
- package/v3/dist/domains/security-compliance/services/scanners/dast-helpers.js +385 -0
- package/v3/dist/domains/security-compliance/services/scanners/dast-helpers.js.map +1 -0
- package/v3/dist/domains/security-compliance/services/scanners/dast-injection-testing.d.ts +20 -0
- package/v3/dist/domains/security-compliance/services/scanners/dast-injection-testing.d.ts.map +1 -0
- package/v3/dist/domains/security-compliance/services/scanners/dast-injection-testing.js +99 -0
- package/v3/dist/domains/security-compliance/services/scanners/dast-injection-testing.js.map +1 -0
- package/v3/dist/domains/security-compliance/services/scanners/dast-scanner.d.ts +62 -0
- package/v3/dist/domains/security-compliance/services/scanners/dast-scanner.d.ts.map +1 -0
- package/v3/dist/domains/security-compliance/services/scanners/dast-scanner.js +329 -0
- package/v3/dist/domains/security-compliance/services/scanners/dast-scanner.js.map +1 -0
- package/v3/dist/domains/security-compliance/services/scanners/dependency-scanner.d.ts +46 -0
- package/v3/dist/domains/security-compliance/services/scanners/dependency-scanner.d.ts.map +1 -0
- package/v3/dist/domains/security-compliance/services/scanners/dependency-scanner.js +180 -0
- package/v3/dist/domains/security-compliance/services/scanners/dependency-scanner.js.map +1 -0
- package/v3/dist/domains/security-compliance/services/scanners/index.d.ts +14 -0
- package/v3/dist/domains/security-compliance/services/scanners/index.d.ts.map +1 -0
- package/v3/dist/domains/security-compliance/services/scanners/index.js +16 -0
- package/v3/dist/domains/security-compliance/services/scanners/index.js.map +1 -0
- package/v3/dist/domains/security-compliance/services/scanners/sast-scanner.d.ts +92 -0
- package/v3/dist/domains/security-compliance/services/scanners/sast-scanner.d.ts.map +1 -0
- package/v3/dist/domains/security-compliance/services/scanners/sast-scanner.js +440 -0
- package/v3/dist/domains/security-compliance/services/scanners/sast-scanner.js.map +1 -0
- package/v3/dist/domains/security-compliance/services/scanners/scanner-orchestrator.d.ts +78 -0
- package/v3/dist/domains/security-compliance/services/scanners/scanner-orchestrator.d.ts.map +1 -0
- package/v3/dist/domains/security-compliance/services/scanners/scanner-orchestrator.js +179 -0
- package/v3/dist/domains/security-compliance/services/scanners/scanner-orchestrator.js.map +1 -0
- package/v3/dist/domains/security-compliance/services/scanners/scanner-types.d.ts +91 -0
- package/v3/dist/domains/security-compliance/services/scanners/scanner-types.d.ts.map +1 -0
- package/v3/dist/domains/security-compliance/services/scanners/scanner-types.js +15 -0
- package/v3/dist/domains/security-compliance/services/scanners/scanner-types.js.map +1 -0
- package/v3/dist/domains/security-compliance/services/scanners/security-patterns.d.ts +16 -0
- package/v3/dist/domains/security-compliance/services/scanners/security-patterns.d.ts.map +1 -0
- package/v3/dist/domains/security-compliance/services/scanners/security-patterns.js +507 -0
- package/v3/dist/domains/security-compliance/services/scanners/security-patterns.js.map +1 -0
- package/v3/dist/domains/security-compliance/services/security-auditor.d.ts.map +1 -1
- package/v3/dist/domains/security-compliance/services/security-auditor.js +2 -1
- package/v3/dist/domains/security-compliance/services/security-auditor.js.map +1 -1
- package/v3/dist/domains/security-compliance/services/security-scanner.d.ts +20 -213
- package/v3/dist/domains/security-compliance/services/security-scanner.d.ts.map +1 -1
- package/v3/dist/domains/security-compliance/services/security-scanner.js +37 -2013
- package/v3/dist/domains/security-compliance/services/security-scanner.js.map +1 -1
- package/v3/dist/domains/security-compliance/services/semgrep-integration.d.ts.map +1 -1
- package/v3/dist/domains/security-compliance/services/semgrep-integration.js +7 -6
- package/v3/dist/domains/security-compliance/services/semgrep-integration.js.map +1 -1
- package/v3/dist/domains/test-execution/services/auth-state-manager.d.ts.map +1 -1
- package/v3/dist/domains/test-execution/services/auth-state-manager.js +6 -4
- package/v3/dist/domains/test-execution/services/auth-state-manager.js.map +1 -1
- package/v3/dist/domains/test-execution/services/e2e/assertion-handlers.d.ts +55 -0
- package/v3/dist/domains/test-execution/services/e2e/assertion-handlers.d.ts.map +1 -0
- package/v3/dist/domains/test-execution/services/e2e/assertion-handlers.js +407 -0
- package/v3/dist/domains/test-execution/services/e2e/assertion-handlers.js.map +1 -0
- package/v3/dist/domains/test-execution/services/e2e/browser-orchestrator.d.ts +122 -0
- package/v3/dist/domains/test-execution/services/e2e/browser-orchestrator.d.ts.map +1 -0
- package/v3/dist/domains/test-execution/services/e2e/browser-orchestrator.js +325 -0
- package/v3/dist/domains/test-execution/services/e2e/browser-orchestrator.js.map +1 -0
- package/v3/dist/domains/test-execution/services/e2e/e2e-coordinator.d.ts +97 -0
- package/v3/dist/domains/test-execution/services/e2e/e2e-coordinator.d.ts.map +1 -0
- package/v3/dist/domains/test-execution/services/e2e/e2e-coordinator.js +297 -0
- package/v3/dist/domains/test-execution/services/e2e/e2e-coordinator.js.map +1 -0
- package/v3/dist/domains/test-execution/services/e2e/index.d.ts +22 -0
- package/v3/dist/domains/test-execution/services/e2e/index.d.ts.map +1 -0
- package/v3/dist/domains/test-execution/services/e2e/index.js +52 -0
- package/v3/dist/domains/test-execution/services/e2e/index.js.map +1 -0
- package/v3/dist/domains/test-execution/services/e2e/result-collector.d.ts +51 -0
- package/v3/dist/domains/test-execution/services/e2e/result-collector.d.ts.map +1 -0
- package/v3/dist/domains/test-execution/services/e2e/result-collector.js +133 -0
- package/v3/dist/domains/test-execution/services/e2e/result-collector.js.map +1 -0
- package/v3/dist/domains/test-execution/services/e2e/step-executors.d.ts +48 -0
- package/v3/dist/domains/test-execution/services/e2e/step-executors.d.ts.map +1 -0
- package/v3/dist/domains/test-execution/services/e2e/step-executors.js +422 -0
- package/v3/dist/domains/test-execution/services/e2e/step-executors.js.map +1 -0
- package/v3/dist/domains/test-execution/services/e2e/step-retry-handler.d.ts +49 -0
- package/v3/dist/domains/test-execution/services/e2e/step-retry-handler.d.ts.map +1 -0
- package/v3/dist/domains/test-execution/services/e2e/step-retry-handler.js +146 -0
- package/v3/dist/domains/test-execution/services/e2e/step-retry-handler.js.map +1 -0
- package/v3/dist/domains/test-execution/services/e2e/types.d.ts +138 -0
- package/v3/dist/domains/test-execution/services/e2e/types.d.ts.map +1 -0
- package/v3/dist/domains/test-execution/services/e2e/types.js +65 -0
- package/v3/dist/domains/test-execution/services/e2e/types.js.map +1 -0
- package/v3/dist/domains/test-execution/services/e2e/wait-condition-handler.d.ts +33 -0
- package/v3/dist/domains/test-execution/services/e2e/wait-condition-handler.d.ts.map +1 -0
- package/v3/dist/domains/test-execution/services/e2e/wait-condition-handler.js +114 -0
- package/v3/dist/domains/test-execution/services/e2e/wait-condition-handler.js.map +1 -0
- package/v3/dist/domains/test-execution/services/e2e-runner.d.ts +18 -392
- package/v3/dist/domains/test-execution/services/e2e-runner.d.ts.map +1 -1
- package/v3/dist/domains/test-execution/services/e2e-runner.js +25 -1757
- package/v3/dist/domains/test-execution/services/e2e-runner.js.map +1 -1
- package/v3/dist/domains/test-execution/services/flaky-detector.d.ts.map +1 -1
- package/v3/dist/domains/test-execution/services/flaky-detector.js +12 -9
- package/v3/dist/domains/test-execution/services/flaky-detector.js.map +1 -1
- package/v3/dist/domains/test-execution/services/retry-handler.d.ts.map +1 -1
- package/v3/dist/domains/test-execution/services/retry-handler.js +7 -5
- package/v3/dist/domains/test-execution/services/retry-handler.js.map +1 -1
- package/v3/dist/domains/test-execution/services/test-executor.d.ts.map +1 -1
- package/v3/dist/domains/test-execution/services/test-executor.js +4 -3
- package/v3/dist/domains/test-execution/services/test-executor.js.map +1 -1
- package/v3/dist/domains/visual-accessibility/coordinator.d.ts +70 -0
- package/v3/dist/domains/visual-accessibility/coordinator.d.ts.map +1 -1
- package/v3/dist/domains/visual-accessibility/coordinator.js +172 -0
- package/v3/dist/domains/visual-accessibility/coordinator.js.map +1 -1
- package/v3/dist/domains/visual-accessibility/plugin.d.ts +2 -1
- package/v3/dist/domains/visual-accessibility/plugin.d.ts.map +1 -1
- package/v3/dist/domains/visual-accessibility/plugin.js +63 -0
- package/v3/dist/domains/visual-accessibility/plugin.js.map +1 -1
- package/v3/dist/domains/visual-accessibility/services/accessibility-tester.d.ts.map +1 -1
- package/v3/dist/domains/visual-accessibility/services/accessibility-tester.js +3 -2
- package/v3/dist/domains/visual-accessibility/services/accessibility-tester.js.map +1 -1
- package/v3/dist/domains/visual-accessibility/services/browser-security-scanner.d.ts.map +1 -1
- package/v3/dist/domains/visual-accessibility/services/browser-security-scanner.js +22 -12
- package/v3/dist/domains/visual-accessibility/services/browser-security-scanner.js.map +1 -1
- package/v3/dist/domains/visual-accessibility/services/viewport-capture.d.ts.map +1 -1
- package/v3/dist/domains/visual-accessibility/services/viewport-capture.js +3 -2
- package/v3/dist/domains/visual-accessibility/services/viewport-capture.js.map +1 -1
- package/v3/dist/domains/visual-accessibility/services/visual-regression.d.ts.map +1 -1
- package/v3/dist/domains/visual-accessibility/services/visual-regression.js +3 -2
- package/v3/dist/domains/visual-accessibility/services/visual-regression.js.map +1 -1
- package/v3/dist/hooks/cross-phase-hooks.d.ts +42 -0
- package/v3/dist/hooks/cross-phase-hooks.d.ts.map +1 -0
- package/v3/dist/hooks/cross-phase-hooks.js +338 -0
- package/v3/dist/hooks/cross-phase-hooks.js.map +1 -0
- package/v3/dist/hooks/index.d.ts +9 -0
- package/v3/dist/hooks/index.d.ts.map +1 -0
- package/v3/dist/hooks/index.js +9 -0
- package/v3/dist/hooks/index.js.map +1 -0
- package/v3/dist/init/agents-installer.d.ts.map +1 -1
- package/v3/dist/init/agents-installer.js +6 -4
- package/v3/dist/init/agents-installer.js.map +1 -1
- package/v3/dist/init/enhancements/claude-flow-adapter.d.ts.map +1 -1
- package/v3/dist/init/enhancements/claude-flow-adapter.js +15 -9
- package/v3/dist/init/enhancements/claude-flow-adapter.js.map +1 -1
- package/v3/dist/init/enhancements/detector.js +6 -4
- package/v3/dist/init/enhancements/detector.js.map +1 -1
- package/v3/dist/init/init-wizard.d.ts +5 -0
- package/v3/dist/init/init-wizard.d.ts.map +1 -1
- package/v3/dist/init/init-wizard.js +74 -11
- package/v3/dist/init/init-wizard.js.map +1 -1
- package/v3/dist/init/migration/data-migrator.d.ts.map +1 -1
- package/v3/dist/init/migration/data-migrator.js +6 -4
- package/v3/dist/init/migration/data-migrator.js.map +1 -1
- package/v3/dist/init/phases/02-analysis.js +2 -2
- package/v3/dist/init/phases/02-analysis.js.map +1 -1
- package/v3/dist/init/phases/04-database.d.ts.map +1 -1
- package/v3/dist/init/phases/04-database.js +0 -1
- package/v3/dist/init/phases/04-database.js.map +1 -1
- package/v3/dist/init/phases/11-claude-md.d.ts.map +1 -1
- package/v3/dist/init/phases/11-claude-md.js +25 -0
- package/v3/dist/init/phases/11-claude-md.js.map +1 -1
- package/v3/dist/init/phases/12-verification.d.ts.map +1 -1
- package/v3/dist/init/phases/12-verification.js +2 -1
- package/v3/dist/init/phases/12-verification.js.map +1 -1
- package/v3/dist/init/project-analyzer.d.ts.map +1 -1
- package/v3/dist/init/project-analyzer.js +12 -8
- package/v3/dist/init/project-analyzer.js.map +1 -1
- package/v3/dist/init/skills-installer.d.ts.map +1 -1
- package/v3/dist/init/skills-installer.js +6 -4
- package/v3/dist/init/skills-installer.js.map +1 -1
- package/v3/dist/init/token-bootstrap.d.ts.map +1 -1
- package/v3/dist/init/token-bootstrap.js +2 -1
- package/v3/dist/init/token-bootstrap.js.map +1 -1
- package/v3/dist/integrations/agent-booster-wasm/index.d.ts.map +1 -1
- package/v3/dist/integrations/agent-booster-wasm/index.js +8 -4
- package/v3/dist/integrations/agent-booster-wasm/index.js.map +1 -1
- package/v3/dist/integrations/agentic-flow/model-router/signal-collector.d.ts.map +1 -1
- package/v3/dist/integrations/agentic-flow/model-router/signal-collector.js +3 -2
- package/v3/dist/integrations/agentic-flow/model-router/signal-collector.js.map +1 -1
- package/v3/dist/integrations/agentic-flow/reasoning-bank/experience-replay.d.ts.map +1 -1
- package/v3/dist/integrations/agentic-flow/reasoning-bank/experience-replay.js.map +1 -1
- package/v3/dist/integrations/agentic-flow/reasoning-bank/trajectory-tracker.d.ts.map +1 -1
- package/v3/dist/integrations/agentic-flow/reasoning-bank/trajectory-tracker.js.map +1 -1
- package/v3/dist/integrations/browser/agent-browser/client.d.ts.map +1 -1
- package/v3/dist/integrations/browser/agent-browser/client.js +9 -6
- package/v3/dist/integrations/browser/agent-browser/client.js.map +1 -1
- package/v3/dist/integrations/browser/agent-browser/command-executor.d.ts.map +1 -1
- package/v3/dist/integrations/browser/agent-browser/command-executor.js +3 -2
- package/v3/dist/integrations/browser/agent-browser/command-executor.js.map +1 -1
- package/v3/dist/integrations/browser/index.d.ts +1 -0
- package/v3/dist/integrations/browser/index.d.ts.map +1 -1
- package/v3/dist/integrations/browser/index.js +6 -0
- package/v3/dist/integrations/browser/index.js.map +1 -1
- package/v3/dist/integrations/browser/web-content-fetcher.d.ts +154 -0
- package/v3/dist/integrations/browser/web-content-fetcher.d.ts.map +1 -0
- package/v3/dist/integrations/browser/web-content-fetcher.js +529 -0
- package/v3/dist/integrations/browser/web-content-fetcher.js.map +1 -0
- package/v3/dist/integrations/coherence/threshold-tuner.d.ts.map +1 -1
- package/v3/dist/integrations/coherence/threshold-tuner.js +3 -2
- package/v3/dist/integrations/coherence/threshold-tuner.js.map +1 -1
- package/v3/dist/integrations/coherence/wasm-loader.d.ts.map +1 -1
- package/v3/dist/integrations/coherence/wasm-loader.js +3 -2
- package/v3/dist/integrations/coherence/wasm-loader.js.map +1 -1
- package/v3/dist/integrations/n8n/agent-factory.d.ts.map +1 -1
- package/v3/dist/integrations/n8n/agent-factory.js +6 -4
- package/v3/dist/integrations/n8n/agent-factory.js.map +1 -1
- package/v3/dist/integrations/rl-suite/persistence/q-value-store.d.ts.map +1 -1
- package/v3/dist/integrations/rl-suite/persistence/q-value-store.js.map +1 -1
- package/v3/dist/integrations/ruvector/sona-persistence.d.ts.map +1 -1
- package/v3/dist/integrations/ruvector/sona-persistence.js +6 -4
- package/v3/dist/integrations/ruvector/sona-persistence.js.map +1 -1
- package/v3/dist/integrations/vibium/client.d.ts.map +1 -1
- package/v3/dist/integrations/vibium/client.js +3 -2
- package/v3/dist/integrations/vibium/client.js.map +1 -1
- package/v3/dist/kernel/agent-coordinator.d.ts +1 -1
- package/v3/dist/kernel/agent-coordinator.d.ts.map +1 -1
- package/v3/dist/kernel/agent-coordinator.js +4 -4
- package/v3/dist/kernel/agent-coordinator.js.map +1 -1
- package/v3/dist/kernel/constants.d.ts +155 -0
- package/v3/dist/kernel/constants.d.ts.map +1 -0
- package/v3/dist/kernel/constants.js +169 -0
- package/v3/dist/kernel/constants.js.map +1 -0
- package/v3/dist/kernel/event-bus.d.ts +8 -0
- package/v3/dist/kernel/event-bus.d.ts.map +1 -1
- package/v3/dist/kernel/event-bus.js +79 -17
- package/v3/dist/kernel/event-bus.js.map +1 -1
- package/v3/dist/kernel/hybrid-backend.d.ts.map +1 -1
- package/v3/dist/kernel/hybrid-backend.js +4 -3
- package/v3/dist/kernel/hybrid-backend.js.map +1 -1
- package/v3/dist/kernel/kernel.d.ts.map +1 -1
- package/v3/dist/kernel/kernel.js +3 -2
- package/v3/dist/kernel/kernel.js.map +1 -1
- package/v3/dist/kernel/memory-backend.d.ts.map +1 -1
- package/v3/dist/kernel/memory-backend.js +4 -3
- package/v3/dist/kernel/memory-backend.js.map +1 -1
- package/v3/dist/kernel/unified-memory.d.ts.map +1 -1
- package/v3/dist/kernel/unified-memory.js +14 -11
- package/v3/dist/kernel/unified-memory.js.map +1 -1
- package/v3/dist/kernel/unified-persistence.js +3 -2
- package/v3/dist/kernel/unified-persistence.js.map +1 -1
- package/v3/dist/learning/aqe-learning-engine.d.ts.map +1 -1
- package/v3/dist/learning/aqe-learning-engine.js +12 -8
- package/v3/dist/learning/aqe-learning-engine.js.map +1 -1
- package/v3/dist/learning/dream/index.d.ts +1 -1
- package/v3/dist/learning/dream/index.d.ts.map +1 -1
- package/v3/dist/learning/dream/index.js +3 -1
- package/v3/dist/learning/dream/index.js.map +1 -1
- package/v3/dist/learning/dream/spreading-activation.d.ts +41 -0
- package/v3/dist/learning/dream/spreading-activation.d.ts.map +1 -1
- package/v3/dist/learning/dream/spreading-activation.js +79 -0
- package/v3/dist/learning/dream/spreading-activation.js.map +1 -1
- package/v3/dist/learning/pattern-store.d.ts.map +1 -1
- package/v3/dist/learning/pattern-store.js +16 -6
- package/v3/dist/learning/pattern-store.js.map +1 -1
- package/v3/dist/learning/real-embeddings.d.ts.map +1 -1
- package/v3/dist/learning/real-embeddings.js +7 -1
- package/v3/dist/learning/real-embeddings.js.map +1 -1
- package/v3/dist/learning/sqlite-persistence.d.ts +1 -1
- package/v3/dist/learning/sqlite-persistence.d.ts.map +1 -1
- package/v3/dist/learning/sqlite-persistence.js.map +1 -1
- package/v3/dist/logging/console-logger.d.ts +96 -0
- package/v3/dist/logging/console-logger.d.ts.map +1 -0
- package/v3/dist/logging/console-logger.js +247 -0
- package/v3/dist/logging/console-logger.js.map +1 -0
- package/v3/dist/logging/index.d.ts +42 -0
- package/v3/dist/logging/index.d.ts.map +1 -0
- package/v3/dist/logging/index.js +39 -0
- package/v3/dist/logging/index.js.map +1 -0
- package/v3/dist/logging/logger-factory.d.ts +145 -0
- package/v3/dist/logging/logger-factory.d.ts.map +1 -0
- package/v3/dist/logging/logger-factory.js +218 -0
- package/v3/dist/logging/logger-factory.js.map +1 -0
- package/v3/dist/logging/logger.d.ts +89 -0
- package/v3/dist/logging/logger.d.ts.map +1 -0
- package/v3/dist/logging/logger.js +74 -0
- package/v3/dist/logging/logger.js.map +1 -0
- package/v3/dist/mcp/bundle.js +11334 -7497
- package/v3/dist/mcp/handlers/agent-handlers.js +2 -2
- package/v3/dist/mcp/handlers/agent-handlers.js.map +1 -1
- package/v3/dist/mcp/handlers/core-handlers.d.ts +2 -0
- package/v3/dist/mcp/handlers/core-handlers.d.ts.map +1 -1
- package/v3/dist/mcp/handlers/core-handlers.js +33 -0
- package/v3/dist/mcp/handlers/core-handlers.js.map +1 -1
- package/v3/dist/mcp/handlers/cross-phase-handlers.d.ts +110 -0
- package/v3/dist/mcp/handlers/cross-phase-handlers.d.ts.map +1 -0
- package/v3/dist/mcp/handlers/cross-phase-handlers.js +216 -0
- package/v3/dist/mcp/handlers/cross-phase-handlers.js.map +1 -0
- package/v3/dist/mcp/handlers/domain-handler-configs.d.ts +151 -0
- package/v3/dist/mcp/handlers/domain-handler-configs.d.ts.map +1 -0
- package/v3/dist/mcp/handlers/domain-handler-configs.js +486 -0
- package/v3/dist/mcp/handlers/domain-handler-configs.js.map +1 -0
- package/v3/dist/mcp/handlers/domain-handlers.d.ts +174 -120
- package/v3/dist/mcp/handlers/domain-handlers.d.ts.map +1 -1
- package/v3/dist/mcp/handlers/domain-handlers.js +178 -1049
- package/v3/dist/mcp/handlers/domain-handlers.js.map +1 -1
- package/v3/dist/mcp/handlers/handler-factory.d.ts +182 -0
- package/v3/dist/mcp/handlers/handler-factory.d.ts.map +1 -0
- package/v3/dist/mcp/handlers/handler-factory.js +327 -0
- package/v3/dist/mcp/handlers/handler-factory.js.map +1 -0
- package/v3/dist/mcp/handlers/index.d.ts +1 -0
- package/v3/dist/mcp/handlers/index.d.ts.map +1 -1
- package/v3/dist/mcp/handlers/index.js +2 -0
- package/v3/dist/mcp/handlers/index.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 +91 -7
- package/v3/dist/mcp/handlers/task-handlers.js.map +1 -1
- package/v3/dist/mcp/server.d.ts.map +1 -1
- package/v3/dist/mcp/server.js +107 -1
- package/v3/dist/mcp/server.js.map +1 -1
- package/v3/dist/mcp/types.d.ts +5 -3
- package/v3/dist/mcp/types.d.ts.map +1 -1
- package/v3/dist/memory/cross-phase-memory.d.ts +55 -0
- package/v3/dist/memory/cross-phase-memory.d.ts.map +1 -0
- package/v3/dist/memory/cross-phase-memory.js +265 -0
- package/v3/dist/memory/cross-phase-memory.js.map +1 -0
- package/v3/dist/memory/index.d.ts +9 -0
- package/v3/dist/memory/index.d.ts.map +1 -0
- package/v3/dist/memory/index.js +9 -0
- package/v3/dist/memory/index.js.map +1 -0
- package/v3/dist/shared/io/file-reader.d.ts.map +1 -1
- package/v3/dist/shared/io/file-reader.js +3 -2
- package/v3/dist/shared/io/file-reader.js.map +1 -1
- package/v3/dist/shared/utils/binary-insert.d.ts +85 -0
- package/v3/dist/shared/utils/binary-insert.d.ts.map +1 -0
- package/v3/dist/shared/utils/binary-insert.js +122 -0
- package/v3/dist/shared/utils/binary-insert.js.map +1 -0
- package/v3/dist/shared/utils/index.d.ts +1 -0
- package/v3/dist/shared/utils/index.d.ts.map +1 -1
- package/v3/dist/shared/utils/index.js +1 -0
- package/v3/dist/shared/utils/index.js.map +1 -1
- package/v3/dist/strange-loop/belief-reconciler.d.ts.map +1 -1
- package/v3/dist/strange-loop/belief-reconciler.js +3 -2
- package/v3/dist/strange-loop/belief-reconciler.js.map +1 -1
- package/v3/dist/sync/claude-flow-bridge.d.ts.map +1 -1
- package/v3/dist/sync/claude-flow-bridge.js +6 -4
- package/v3/dist/sync/claude-flow-bridge.js.map +1 -1
- package/v3/dist/sync/cloud/postgres-writer.d.ts.map +1 -1
- package/v3/dist/sync/cloud/postgres-writer.js +0 -1
- package/v3/dist/sync/cloud/postgres-writer.js.map +1 -1
- package/v3/dist/sync/readers/sqlite-reader.d.ts.map +1 -1
- package/v3/dist/sync/readers/sqlite-reader.js +3 -2
- package/v3/dist/sync/readers/sqlite-reader.js.map +1 -1
- package/v3/dist/test-scheduling/flaky-tracking/flaky-tracker.d.ts.map +1 -1
- package/v3/dist/test-scheduling/flaky-tracking/flaky-tracker.js +3 -2
- package/v3/dist/test-scheduling/flaky-tracking/flaky-tracker.js.map +1 -1
- package/v3/dist/test-scheduling/git-aware/test-selector.d.ts.map +1 -1
- package/v3/dist/test-scheduling/git-aware/test-selector.js +3 -2
- package/v3/dist/test-scheduling/git-aware/test-selector.js.map +1 -1
- package/v3/dist/types/cross-phase-signals.d.ts +119 -0
- package/v3/dist/types/cross-phase-signals.d.ts.map +1 -0
- package/v3/dist/types/cross-phase-signals.js +33 -0
- package/v3/dist/types/cross-phase-signals.js.map +1 -0
- package/v3/dist/types/index.d.ts +9 -0
- package/v3/dist/types/index.d.ts.map +1 -0
- package/v3/dist/types/index.js +9 -0
- package/v3/dist/types/index.js.map +1 -0
- package/v3/dist/workers/worker-manager.d.ts.map +1 -1
- package/v3/dist/workers/worker-manager.js +3 -2
- package/v3/dist/workers/worker-manager.js.map +1 -1
- package/v3/dist/workflows/browser/workflow-loader.d.ts +3 -3
- package/v3/dist/workflows/browser/workflow-loader.d.ts.map +1 -1
- package/v3/dist/workflows/browser/workflow-loader.js.map +1 -1
- package/v3/package.json +4 -1
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agentic QE v3 - Browser Orchestrator
|
|
3
|
+
*
|
|
4
|
+
* Manages browser client lifecycle, type detection, and snapshot operations.
|
|
5
|
+
* Supports both agent-browser (CLI-based) and Vibium (MCP-based) clients.
|
|
6
|
+
*
|
|
7
|
+
* @module test-execution/services/e2e/browser-orchestrator
|
|
8
|
+
*/
|
|
9
|
+
// ============================================================================
|
|
10
|
+
// Type Guards
|
|
11
|
+
// ============================================================================
|
|
12
|
+
/**
|
|
13
|
+
* Type guard to check if client is an agent-browser client
|
|
14
|
+
*/
|
|
15
|
+
export function isAgentBrowserClient(client) {
|
|
16
|
+
return 'tool' in client && client.tool === 'agent-browser';
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Type guard to check if client is a Vibium client (legacy)
|
|
20
|
+
*/
|
|
21
|
+
export function isVibiumClient(client) {
|
|
22
|
+
return !('tool' in client) || !client.tool;
|
|
23
|
+
}
|
|
24
|
+
// ============================================================================
|
|
25
|
+
// Element Target Conversion
|
|
26
|
+
// ============================================================================
|
|
27
|
+
/**
|
|
28
|
+
* Convert a step selector to an ElementTarget for the unified browser interface
|
|
29
|
+
* Supports CSS selectors, XPath, text content, and agent-browser refs
|
|
30
|
+
*
|
|
31
|
+
* @param selector - The selector string from the step
|
|
32
|
+
* @returns ElementTarget for use with IBrowserClient
|
|
33
|
+
*/
|
|
34
|
+
export function toElementTarget(selector) {
|
|
35
|
+
// Agent-browser snapshot refs (@e1, @e2, e1, e2)
|
|
36
|
+
if (/^@?e\d+$/.test(selector)) {
|
|
37
|
+
const value = selector.startsWith('@') ? selector : `@${selector}`;
|
|
38
|
+
return { type: 'ref', value };
|
|
39
|
+
}
|
|
40
|
+
// XPath selectors
|
|
41
|
+
if (selector.startsWith('//') || selector.startsWith('xpath=')) {
|
|
42
|
+
const value = selector.replace(/^xpath=/, '');
|
|
43
|
+
return { type: 'xpath', value };
|
|
44
|
+
}
|
|
45
|
+
// Text content matching
|
|
46
|
+
if (selector.startsWith('text=')) {
|
|
47
|
+
const value = selector.replace(/^text=/, '');
|
|
48
|
+
return { type: 'text', value };
|
|
49
|
+
}
|
|
50
|
+
// Default to CSS selector
|
|
51
|
+
return { type: 'css', value: selector };
|
|
52
|
+
}
|
|
53
|
+
// ============================================================================
|
|
54
|
+
// Result Conversion Utilities
|
|
55
|
+
// ============================================================================
|
|
56
|
+
/**
|
|
57
|
+
* Convert BrowserScreenshotResult to Vibium ScreenshotResult format
|
|
58
|
+
* This is needed for backward compatibility
|
|
59
|
+
*/
|
|
60
|
+
export function toVibiumScreenshotResult(result) {
|
|
61
|
+
return {
|
|
62
|
+
base64: result.base64,
|
|
63
|
+
path: result.path,
|
|
64
|
+
format: result.format,
|
|
65
|
+
dimensions: result.dimensions,
|
|
66
|
+
sizeBytes: result.base64 ? Math.ceil(result.base64.length * 0.75) : 0,
|
|
67
|
+
capturedAt: new Date(),
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Convert axe-core results to Vibium AccessibilityResult format
|
|
72
|
+
*/
|
|
73
|
+
export function toVibiumAccessibilityResult(axeResults) {
|
|
74
|
+
const violationsBySeverity = {
|
|
75
|
+
critical: 0,
|
|
76
|
+
high: 0,
|
|
77
|
+
medium: 0,
|
|
78
|
+
low: 0,
|
|
79
|
+
info: 0,
|
|
80
|
+
};
|
|
81
|
+
const violations = axeResults.violations.map((v) => {
|
|
82
|
+
const impact = v.impact;
|
|
83
|
+
if (impact in violationsBySeverity) {
|
|
84
|
+
violationsBySeverity[impact]++;
|
|
85
|
+
}
|
|
86
|
+
return {
|
|
87
|
+
id: v.id,
|
|
88
|
+
impact: v.impact,
|
|
89
|
+
description: v.description,
|
|
90
|
+
nodes: v.nodes.length,
|
|
91
|
+
};
|
|
92
|
+
});
|
|
93
|
+
return {
|
|
94
|
+
passes: violations.length === 0,
|
|
95
|
+
violations: violations,
|
|
96
|
+
violationsBySeverity,
|
|
97
|
+
passedRules: axeResults.passes.map((p) => p.id),
|
|
98
|
+
incompleteRules: axeResults.incomplete.map((i) => i.id),
|
|
99
|
+
checkedAt: new Date(),
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
// ============================================================================
|
|
103
|
+
// Browser Orchestrator Class
|
|
104
|
+
// ============================================================================
|
|
105
|
+
/**
|
|
106
|
+
* Browser Orchestrator
|
|
107
|
+
*
|
|
108
|
+
* Manages browser client operations including launch, snapshot refresh,
|
|
109
|
+
* screenshot capture, and cleanup. Abstracts differences between
|
|
110
|
+
* agent-browser and Vibium clients.
|
|
111
|
+
*/
|
|
112
|
+
export class BrowserOrchestrator {
|
|
113
|
+
client;
|
|
114
|
+
unifiedClient;
|
|
115
|
+
useAgentBrowser;
|
|
116
|
+
config;
|
|
117
|
+
log;
|
|
118
|
+
constructor(client, config, logger) {
|
|
119
|
+
this.client = client;
|
|
120
|
+
this.config = config;
|
|
121
|
+
this.log = logger;
|
|
122
|
+
// Use provided browser client from config if available
|
|
123
|
+
this.unifiedClient = config.browserClient ?? client;
|
|
124
|
+
// Determine if we're using agent-browser
|
|
125
|
+
this.useAgentBrowser = isAgentBrowserClient(this.unifiedClient);
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Get the unified browser client
|
|
129
|
+
*/
|
|
130
|
+
getClient() {
|
|
131
|
+
return this.unifiedClient;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Check if using agent-browser client
|
|
135
|
+
*/
|
|
136
|
+
isUsingAgentBrowser() {
|
|
137
|
+
return this.useAgentBrowser;
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Ensure browser is launched for the test case
|
|
141
|
+
* Handles both agent-browser and Vibium clients
|
|
142
|
+
*/
|
|
143
|
+
async ensureBrowserLaunched(testCase) {
|
|
144
|
+
try {
|
|
145
|
+
if (this.useAgentBrowser && isAgentBrowserClient(this.unifiedClient)) {
|
|
146
|
+
const launchResult = await this.unifiedClient.launch({
|
|
147
|
+
headless: true,
|
|
148
|
+
viewport: testCase.viewport,
|
|
149
|
+
});
|
|
150
|
+
if (!launchResult.success) {
|
|
151
|
+
return `Failed to launch browser: ${launchResult.error.message}`;
|
|
152
|
+
}
|
|
153
|
+
return null;
|
|
154
|
+
}
|
|
155
|
+
else if (isVibiumClient(this.client)) {
|
|
156
|
+
const session = await this.client.getSession();
|
|
157
|
+
if (!session) {
|
|
158
|
+
const launchResult = await this.client.launch({
|
|
159
|
+
headless: true,
|
|
160
|
+
viewport: testCase.viewport,
|
|
161
|
+
...this.getBrowserContextOptions(testCase),
|
|
162
|
+
});
|
|
163
|
+
if (!launchResult.success) {
|
|
164
|
+
return `Failed to launch browser: ${launchResult.error.message}`;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
return null;
|
|
168
|
+
}
|
|
169
|
+
else {
|
|
170
|
+
const launchResult = await this.unifiedClient.launch({
|
|
171
|
+
headless: true,
|
|
172
|
+
viewport: testCase.viewport,
|
|
173
|
+
});
|
|
174
|
+
if (!launchResult.success) {
|
|
175
|
+
return `Failed to launch browser: ${launchResult.error.message}`;
|
|
176
|
+
}
|
|
177
|
+
return null;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
catch (error) {
|
|
181
|
+
return error instanceof Error ? error.message : String(error);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* Refresh the page snapshot (agent-browser only)
|
|
186
|
+
*/
|
|
187
|
+
async refreshSnapshot() {
|
|
188
|
+
if (!this.useAgentBrowser || !isAgentBrowserClient(this.unifiedClient)) {
|
|
189
|
+
return undefined;
|
|
190
|
+
}
|
|
191
|
+
try {
|
|
192
|
+
const snapshotResult = await this.unifiedClient.getSnapshot({ interactive: true });
|
|
193
|
+
if (snapshotResult.success) {
|
|
194
|
+
return snapshotResult.value;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
catch {
|
|
198
|
+
this.log('Failed to refresh snapshot');
|
|
199
|
+
}
|
|
200
|
+
return undefined;
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* Capture screenshot on failure
|
|
204
|
+
*/
|
|
205
|
+
async captureFailureScreenshot(stepId) {
|
|
206
|
+
try {
|
|
207
|
+
if (!isVibiumClient(this.unifiedClient)) {
|
|
208
|
+
const browserClient = this.unifiedClient;
|
|
209
|
+
const result = await browserClient.screenshot({ fullPage: true });
|
|
210
|
+
if (result.success) {
|
|
211
|
+
return toVibiumScreenshotResult(result.value);
|
|
212
|
+
}
|
|
213
|
+
return null;
|
|
214
|
+
}
|
|
215
|
+
const result = await this.client.screenshot({
|
|
216
|
+
fullPage: true,
|
|
217
|
+
format: 'png',
|
|
218
|
+
});
|
|
219
|
+
if (result.success) {
|
|
220
|
+
return result.value;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
catch {
|
|
224
|
+
this.log(`Failed to capture failure screenshot for step ${stepId}`);
|
|
225
|
+
}
|
|
226
|
+
return null;
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* Check if element is visible (Vibium client)
|
|
230
|
+
*/
|
|
231
|
+
async checkElementVisible(selector) {
|
|
232
|
+
if (!isVibiumClient(this.client)) {
|
|
233
|
+
return false;
|
|
234
|
+
}
|
|
235
|
+
const result = await this.client.findElement({
|
|
236
|
+
selector,
|
|
237
|
+
visible: true,
|
|
238
|
+
timeout: 1000,
|
|
239
|
+
});
|
|
240
|
+
return result.success && result.value.visible;
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* Check if element is enabled (Vibium client)
|
|
244
|
+
*/
|
|
245
|
+
async checkElementEnabled(selector) {
|
|
246
|
+
if (!isVibiumClient(this.client)) {
|
|
247
|
+
return false;
|
|
248
|
+
}
|
|
249
|
+
const result = await this.client.findElement({ selector, timeout: 1000 });
|
|
250
|
+
return result.success && result.value.enabled;
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* Check element text against expected value (Vibium client)
|
|
254
|
+
*/
|
|
255
|
+
async checkElementText(selector, expectedText, matchMode) {
|
|
256
|
+
if (!isVibiumClient(this.client)) {
|
|
257
|
+
return { matches: false, actualText: '' };
|
|
258
|
+
}
|
|
259
|
+
const result = await this.client.getText(selector);
|
|
260
|
+
if (!result.success) {
|
|
261
|
+
return { matches: false, actualText: '' };
|
|
262
|
+
}
|
|
263
|
+
const actualText = result.value;
|
|
264
|
+
let matches = false;
|
|
265
|
+
switch (matchMode) {
|
|
266
|
+
case 'exact':
|
|
267
|
+
matches = actualText === expectedText;
|
|
268
|
+
break;
|
|
269
|
+
case 'contains':
|
|
270
|
+
matches = actualText.includes(expectedText);
|
|
271
|
+
break;
|
|
272
|
+
case 'regex':
|
|
273
|
+
matches = new RegExp(expectedText).test(actualText);
|
|
274
|
+
break;
|
|
275
|
+
}
|
|
276
|
+
return { matches, actualText };
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* Check element attribute against expected value (Vibium client)
|
|
280
|
+
*/
|
|
281
|
+
async checkElementAttribute(selector, attributeName, expectedValue) {
|
|
282
|
+
if (!isVibiumClient(this.client)) {
|
|
283
|
+
return { matches: false, actualValue: '' };
|
|
284
|
+
}
|
|
285
|
+
const result = await this.client.getAttribute(selector, attributeName);
|
|
286
|
+
if (!result.success) {
|
|
287
|
+
return { matches: false, actualValue: '' };
|
|
288
|
+
}
|
|
289
|
+
return {
|
|
290
|
+
matches: result.value === expectedValue,
|
|
291
|
+
actualValue: result.value,
|
|
292
|
+
};
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
* Scroll element into view (Vibium client)
|
|
296
|
+
*/
|
|
297
|
+
async scrollIntoView(selector) {
|
|
298
|
+
if (isVibiumClient(this.client)) {
|
|
299
|
+
await this.client.findElement({ selector, visible: true });
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
* Get browser context options from test case
|
|
304
|
+
*/
|
|
305
|
+
getBrowserContextOptions(testCase) {
|
|
306
|
+
const options = {};
|
|
307
|
+
if (testCase.browserContext?.userAgent) {
|
|
308
|
+
options.userAgent = testCase.browserContext.userAgent;
|
|
309
|
+
}
|
|
310
|
+
if (testCase.browserContext?.locale) {
|
|
311
|
+
options.locale = testCase.browserContext.locale;
|
|
312
|
+
}
|
|
313
|
+
if (testCase.browserContext?.timezoneId) {
|
|
314
|
+
options.timezoneId = testCase.browserContext.timezoneId;
|
|
315
|
+
}
|
|
316
|
+
return options;
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* Create a browser orchestrator instance
|
|
321
|
+
*/
|
|
322
|
+
export function createBrowserOrchestrator(client, config, logger) {
|
|
323
|
+
return new BrowserOrchestrator(client, config, logger);
|
|
324
|
+
}
|
|
325
|
+
//# sourceMappingURL=browser-orchestrator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browser-orchestrator.js","sourceRoot":"","sources":["../../../../../src/domains/test-execution/services/e2e/browser-orchestrator.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAkBH,+EAA+E;AAC/E,cAAc;AACd,+EAA+E;AAE/E;;GAEG;AACH,MAAM,UAAU,oBAAoB,CAClC,MAAqC;IAErC,OAAO,MAAM,IAAI,MAAM,IAAI,MAAM,CAAC,IAAI,KAAK,eAAe,CAAC;AAC7D,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,cAAc,CAC5B,MAAqC;IAErC,OAAO,CAAC,CAAC,MAAM,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;AAC7C,CAAC;AAED,+EAA+E;AAC/E,4BAA4B;AAC5B,+EAA+E;AAE/E;;;;;;GAMG;AACH,MAAM,UAAU,eAAe,CAAC,QAAgB;IAC9C,iDAAiD;IACjD,IAAI,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC9B,MAAM,KAAK,GAAG,QAAQ,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,QAAQ,EAAE,CAAC;QACnE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC;IAChC,CAAC;IAED,kBAAkB;IAClB,IAAI,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC/D,MAAM,KAAK,GAAG,Q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0,0 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agentic QE v3 - E2E Test Coordinator
|
|
3
|
+
*
|
|
4
|
+
* Main coordinator that orchestrates E2E test execution by composing
|
|
5
|
+
* the modular components: browser orchestrator, step executors,
|
|
6
|
+
* step retry handler, and result collector.
|
|
7
|
+
*
|
|
8
|
+
* @module test-execution/services/e2e/e2e-coordinator
|
|
9
|
+
*/
|
|
10
|
+
import type { VibiumClient } from '../../../../integrations/vibium';
|
|
11
|
+
import type { IBrowserClient } from '../../../../integrations/browser';
|
|
12
|
+
import type { E2ETestCase, E2ETestResult, E2ETestSuite, E2ETestSuiteResult } from '../../types';
|
|
13
|
+
import type { E2ERunnerConfig, IE2ETestRunnerService, ExecutionStrategy } from './types';
|
|
14
|
+
/**
|
|
15
|
+
* E2E Test Runner Service
|
|
16
|
+
*
|
|
17
|
+
* Executes E2E test cases using browser automation clients.
|
|
18
|
+
* Supports both the Vibium browser automation client and the agent-browser CLI tool.
|
|
19
|
+
* Provides step-by-step execution with retry logic, timeout handling,
|
|
20
|
+
* and comprehensive result aggregation.
|
|
21
|
+
*
|
|
22
|
+
* Agent-browser provides enhanced E2E testing capabilities:
|
|
23
|
+
* - Snapshot-based element refs (@e1, @e2) for reliable element selection
|
|
24
|
+
* - Session management for state persistence
|
|
25
|
+
* - Network interception and API mocking
|
|
26
|
+
* - Device emulation for responsive testing
|
|
27
|
+
*/
|
|
28
|
+
export declare class E2ETestRunnerService implements IE2ETestRunnerService {
|
|
29
|
+
private readonly client;
|
|
30
|
+
private readonly config;
|
|
31
|
+
private readonly orchestrator;
|
|
32
|
+
private readonly stepExecutors;
|
|
33
|
+
private readonly retryHandler;
|
|
34
|
+
private readonly resultCollector;
|
|
35
|
+
/**
|
|
36
|
+
* Create E2E Test Runner Service
|
|
37
|
+
*
|
|
38
|
+
* @param client - Browser automation client (VibiumClient or IBrowserClient)
|
|
39
|
+
* @param config - Runner configuration
|
|
40
|
+
*/
|
|
41
|
+
constructor(client: VibiumClient | IBrowserClient, config?: Partial<E2ERunnerConfig>);
|
|
42
|
+
/**
|
|
43
|
+
* Execute a single E2E test case
|
|
44
|
+
*/
|
|
45
|
+
runTestCase(testCase: E2ETestCase): Promise<E2ETestResult>;
|
|
46
|
+
/**
|
|
47
|
+
* Execute an E2E test suite
|
|
48
|
+
*/
|
|
49
|
+
runTestSuite(suite: E2ETestSuite, strategy?: ExecutionStrategy): Promise<E2ETestSuiteResult>;
|
|
50
|
+
/**
|
|
51
|
+
* Execute hook steps
|
|
52
|
+
*/
|
|
53
|
+
private executeHooks;
|
|
54
|
+
/**
|
|
55
|
+
* Execute tests in parallel with limited concurrency
|
|
56
|
+
*/
|
|
57
|
+
private executeInParallel;
|
|
58
|
+
/**
|
|
59
|
+
* Delay execution
|
|
60
|
+
*/
|
|
61
|
+
private delay;
|
|
62
|
+
/**
|
|
63
|
+
* Log message if verbose mode is enabled
|
|
64
|
+
*/
|
|
65
|
+
private log;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Create an E2E Test Runner Service instance with a VibiumClient (legacy)
|
|
69
|
+
*
|
|
70
|
+
* @param client - Vibium browser automation client
|
|
71
|
+
* @param config - Optional runner configuration
|
|
72
|
+
* @returns E2E Test Runner Service instance
|
|
73
|
+
*/
|
|
74
|
+
export declare function createE2ETestRunnerService(client: VibiumClient, config?: Partial<E2ERunnerConfig>): E2ETestRunnerService;
|
|
75
|
+
/**
|
|
76
|
+
* Create an E2E Test Runner Service instance with a browser client
|
|
77
|
+
*
|
|
78
|
+
* This factory supports the unified IBrowserClient interface, including
|
|
79
|
+
* agent-browser with its enhanced E2E testing capabilities.
|
|
80
|
+
*
|
|
81
|
+
* @param client - Browser client (IBrowserClient or IAgentBrowserClient)
|
|
82
|
+
* @param config - Optional runner configuration
|
|
83
|
+
* @returns E2E Test Runner Service instance
|
|
84
|
+
*/
|
|
85
|
+
export declare function createE2ETestRunnerServiceWithBrowserClient(client: IBrowserClient, config?: Partial<E2ERunnerConfig>): E2ETestRunnerService;
|
|
86
|
+
/**
|
|
87
|
+
* Create an E2E Test Runner Service with auto-selected browser client
|
|
88
|
+
*
|
|
89
|
+
* This factory automatically selects the best available browser client:
|
|
90
|
+
* - Prefers agent-browser for E2E testing (supports refs, sessions, mocking)
|
|
91
|
+
* - Falls back to Vibium if agent-browser is unavailable
|
|
92
|
+
*
|
|
93
|
+
* @param config - Optional runner configuration
|
|
94
|
+
* @returns Promise resolving to E2E Test Runner Service instance
|
|
95
|
+
*/
|
|
96
|
+
export declare function createAutoE2ETestRunnerService(config?: Partial<E2ERunnerConfig>): Promise<E2ETestRunnerService>;
|
|
97
|
+
//# sourceMappingURL=e2e-coordinator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"e2e-coordinator.d.ts","sourceRoot":"","sources":["../../../../../src/domains/test-execution/services/e2e/e2e-coordinator.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAyC,MAAM,iCAAiC,CAAC;AAC3G,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAIvE,OAAO,KAAK,EAGV,WAAW,EACX,aAAa,EACb,YAAY,EACZ,kBAAkB,EACnB,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EACV,eAAe,EACf,qBAAqB,EACrB,iBAAiB,EAElB,MAAM,SAAS,CAAC;AAWjB;;;;;;;;;;;;;GAaG;AACH,qBAAa,oBAAqB,YAAW,qBAAqB;IAc9D,OAAO,CAAC,QAAQ,CAAC,MAAM;IAbzB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAkB;IACzC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAsB;IACnD,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAgB;IAC9C,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAmB;IAChD,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAkB;IAElD;;;;;OAKG;gBAEgB,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