agentic-qe 3.3.2 → 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/helpers/statusline-v3.cjs +96 -27
- 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 +24 -7
- package/package.json +1 -1
- package/scripts/demo-warmup.sh +45 -0
- package/scripts/fetch-content.js +460 -0
- package/scripts/sync-claude-flow.cjs +99 -0
- package/v3/CHANGELOG.md +188 -0
- package/v3/README.md +18 -9
- 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 +47008 -36837
- 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/domain-findings.d.ts +202 -0
- package/v3/dist/coordination/consensus/domain-findings.d.ts.map +1 -0
- package/v3/dist/coordination/consensus/domain-findings.js +66 -0
- package/v3/dist/coordination/consensus/domain-findings.js.map +1 -0
- package/v3/dist/coordination/consensus/index.d.ts +2 -0
- package/v3/dist/coordination/consensus/index.d.ts.map +1 -1
- package/v3/dist/coordination/consensus/index.js +4 -0
- package/v3/dist/coordination/consensus/index.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/index.d.ts +1 -0
- package/v3/dist/coordination/index.d.ts.map +1 -1
- package/v3/dist/coordination/index.js +4 -0
- package/v3/dist/coordination/index.js.map +1 -1
- 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/mixins/consensus-enabled-domain.d.ts +225 -0
- package/v3/dist/coordination/mixins/consensus-enabled-domain.d.ts.map +1 -0
- package/v3/dist/coordination/mixins/consensus-enabled-domain.js +466 -0
- package/v3/dist/coordination/mixins/consensus-enabled-domain.js.map +1 -0
- package/v3/dist/coordination/mixins/index.d.ts +14 -0
- package/v3/dist/coordination/mixins/index.d.ts.map +1 -0
- package/v3/dist/coordination/mixins/index.js +28 -0
- package/v3/dist/coordination/mixins/index.js.map +1 -0
- package/v3/dist/coordination/mixins/mincut-aware-domain.d.ts +227 -0
- package/v3/dist/coordination/mixins/mincut-aware-domain.d.ts.map +1 -0
- package/v3/dist/coordination/mixins/mincut-aware-domain.js +368 -0
- package/v3/dist/coordination/mixins/mincut-aware-domain.js.map +1 -0
- package/v3/dist/coordination/queen-coordinator.d.ts +19 -1
- package/v3/dist/coordination/queen-coordinator.d.ts.map +1 -1
- package/v3/dist/coordination/queen-coordinator.js +87 -7
- package/v3/dist/coordination/queen-coordinator.js.map +1 -1
- package/v3/dist/coordination/task-executor.d.ts +21 -1
- package/v3/dist/coordination/task-executor.d.ts.map +1 -1
- package/v3/dist/coordination/task-executor.js +227 -11
- 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/coordinator.d.ts +92 -0
- package/v3/dist/domains/chaos-resilience/coordinator.d.ts.map +1 -1
- package/v3/dist/domains/chaos-resilience/coordinator.js +241 -1
- package/v3/dist/domains/chaos-resilience/coordinator.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 +97 -1
- package/v3/dist/domains/chaos-resilience/plugin.js.map +1 -1
- package/v3/dist/domains/chaos-resilience/services/chaos-engineer.d.ts +29 -2
- package/v3/dist/domains/chaos-resilience/services/chaos-engineer.d.ts.map +1 -1
- package/v3/dist/domains/chaos-resilience/services/chaos-engineer.js +62 -3
- package/v3/dist/domains/chaos-resilience/services/chaos-engineer.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/coordinator.d.ts +112 -0
- package/v3/dist/domains/code-intelligence/coordinator.d.ts.map +1 -1
- package/v3/dist/domains/code-intelligence/coordinator.js +221 -0
- package/v3/dist/domains/code-intelligence/coordinator.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/knowledge-graph.d.ts +66 -2
- package/v3/dist/domains/code-intelligence/services/knowledge-graph.d.ts.map +1 -1
- package/v3/dist/domains/code-intelligence/services/knowledge-graph.js +253 -3
- package/v3/dist/domains/code-intelligence/services/knowledge-graph.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/coordinator.d.ts +89 -1
- package/v3/dist/domains/contract-testing/coordinator.d.ts.map +1 -1
- package/v3/dist/domains/contract-testing/coordinator.js +222 -1
- package/v3/dist/domains/contract-testing/coordinator.js.map +1 -1
- package/v3/dist/domains/contract-testing/interfaces.d.ts +29 -1
- package/v3/dist/domains/contract-testing/interfaces.d.ts.map +1 -1
- 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 +81 -2
- package/v3/dist/domains/contract-testing/plugin.js.map +1 -1
- package/v3/dist/domains/contract-testing/services/contract-validator.d.ts +29 -2
- package/v3/dist/domains/contract-testing/services/contract-validator.d.ts.map +1 -1
- package/v3/dist/domains/contract-testing/services/contract-validator.js +62 -6
- package/v3/dist/domains/contract-testing/services/contract-validator.js.map +1 -1
- package/v3/dist/domains/coverage-analysis/coordinator.d.ts +95 -2
- package/v3/dist/domains/coverage-analysis/coordinator.d.ts.map +1 -1
- package/v3/dist/domains/coverage-analysis/coordinator.js +274 -6
- package/v3/dist/domains/coverage-analysis/coordinator.js.map +1 -1
- package/v3/dist/domains/coverage-analysis/services/coverage-analyzer.d.ts +119 -3
- package/v3/dist/domains/coverage-analysis/services/coverage-analyzer.d.ts.map +1 -1
- package/v3/dist/domains/coverage-analysis/services/coverage-analyzer.js +267 -5
- package/v3/dist/domains/coverage-analysis/services/coverage-analyzer.js.map +1 -1
- package/v3/dist/domains/coverage-analysis/services/gap-detector.d.ts +111 -2
- package/v3/dist/domains/coverage-analysis/services/gap-detector.d.ts.map +1 -1
- package/v3/dist/domains/coverage-analysis/services/gap-detector.js +231 -3
- package/v3/dist/domains/coverage-analysis/services/gap-detector.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 +80 -1
- package/v3/dist/domains/defect-intelligence/coordinator.d.ts.map +1 -1
- package/v3/dist/domains/defect-intelligence/coordinator.js +262 -7
- package/v3/dist/domains/defect-intelligence/coordinator.js.map +1 -1
- package/v3/dist/domains/defect-intelligence/interfaces.d.ts +17 -0
- package/v3/dist/domains/defect-intelligence/interfaces.d.ts.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 +91 -2
- package/v3/dist/domains/defect-intelligence/services/defect-predictor.d.ts.map +1 -1
- package/v3/dist/domains/defect-intelligence/services/defect-predictor.js +277 -9
- package/v3/dist/domains/defect-intelligence/services/defect-predictor.js.map +1 -1
- package/v3/dist/domains/defect-intelligence/services/root-cause-analyzer.d.ts +79 -2
- package/v3/dist/domains/defect-intelligence/services/root-cause-analyzer.d.ts.map +1 -1
- package/v3/dist/domains/defect-intelligence/services/root-cause-analyzer.js +259 -3
- package/v3/dist/domains/defect-intelligence/services/root-cause-analyzer.js.map +1 -1
- package/v3/dist/domains/domain-interface.d.ts +155 -0
- package/v3/dist/domains/domain-interface.d.ts.map +1 -1
- package/v3/dist/domains/domain-interface.js +164 -9
- package/v3/dist/domains/domain-interface.js.map +1 -1
- package/v3/dist/domains/learning-optimization/coordinator.d.ts +88 -0
- package/v3/dist/domains/learning-optimization/coordinator.d.ts.map +1 -1
- package/v3/dist/domains/learning-optimization/coordinator.js +227 -1
- package/v3/dist/domains/learning-optimization/coordinator.js.map +1 -1
- package/v3/dist/domains/learning-optimization/index.d.ts +1 -1
- package/v3/dist/domains/learning-optimization/index.d.ts.map +1 -1
- package/v3/dist/domains/learning-optimization/index.js.map +1 -1
- package/v3/dist/domains/learning-optimization/interfaces.d.ts +4 -0
- package/v3/dist/domains/learning-optimization/interfaces.d.ts.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 +50 -1
- package/v3/dist/domains/learning-optimization/plugin.js.map +1 -1
- package/v3/dist/domains/learning-optimization/services/learning-coordinator.d.ts +54 -2
- package/v3/dist/domains/learning-optimization/services/learning-coordinator.d.ts.map +1 -1
- package/v3/dist/domains/learning-optimization/services/learning-coordinator.js +90 -3
- package/v3/dist/domains/learning-optimization/services/learning-coordinator.js.map +1 -1
- package/v3/dist/domains/quality-assessment/coordinator.d.ts +194 -1
- package/v3/dist/domains/quality-assessment/coordinator.d.ts.map +1 -1
- package/v3/dist/domains/quality-assessment/coordinator.js +664 -6
- package/v3/dist/domains/quality-assessment/coordinator.js.map +1 -1
- package/v3/dist/domains/quality-assessment/interfaces.d.ts +22 -0
- package/v3/dist/domains/quality-assessment/interfaces.d.ts.map +1 -1
- package/v3/dist/domains/quality-assessment/services/deployment-advisor.d.ts +61 -2
- package/v3/dist/domains/quality-assessment/services/deployment-advisor.d.ts.map +1 -1
- package/v3/dist/domains/quality-assessment/services/deployment-advisor.js +213 -5
- package/v3/dist/domains/quality-assessment/services/deployment-advisor.js.map +1 -1
- package/v3/dist/domains/quality-assessment/services/quality-analyzer.d.ts +59 -4
- package/v3/dist/domains/quality-assessment/services/quality-analyzer.d.ts.map +1 -1
- package/v3/dist/domains/quality-assessment/services/quality-analyzer.js +195 -3
- package/v3/dist/domains/quality-assessment/services/quality-analyzer.js.map +1 -1
- package/v3/dist/domains/requirements-validation/coordinator.d.ts +78 -0
- package/v3/dist/domains/requirements-validation/coordinator.d.ts.map +1 -1
- package/v3/dist/domains/requirements-validation/coordinator.js +189 -0
- package/v3/dist/domains/requirements-validation/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/interfaces.d.ts +4 -0
- package/v3/dist/domains/requirements-validation/interfaces.d.ts.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/requirements-validation/services/requirements-validator.d.ts +106 -2
- package/v3/dist/domains/requirements-validation/services/requirements-validator.d.ts.map +1 -1
- package/v3/dist/domains/requirements-validation/services/requirements-validator.js +263 -3
- package/v3/dist/domains/requirements-validation/services/requirements-validator.js.map +1 -1
- package/v3/dist/domains/security-compliance/coordinator.d.ts +56 -1
- package/v3/dist/domains/security-compliance/coordinator.d.ts.map +1 -1
- package/v3/dist/domains/security-compliance/coordinator.js +241 -17
- package/v3/dist/domains/security-compliance/coordinator.js.map +1 -1
- package/v3/dist/domains/security-compliance/interfaces.d.ts +2 -0
- package/v3/dist/domains/security-compliance/interfaces.d.ts.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 -182
- 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 -1909
- 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/coordinator.d.ts +89 -0
- package/v3/dist/domains/test-execution/coordinator.d.ts.map +1 -1
- package/v3/dist/domains/test-execution/coordinator.js +259 -2
- package/v3/dist/domains/test-execution/coordinator.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 +30 -2
- package/v3/dist/domains/test-execution/services/test-executor.d.ts.map +1 -1
- package/v3/dist/domains/test-execution/services/test-executor.js +67 -5
- package/v3/dist/domains/test-execution/services/test-executor.js.map +1 -1
- package/v3/dist/domains/test-generation/coordinator.d.ts +97 -0
- package/v3/dist/domains/test-generation/coordinator.d.ts.map +1 -1
- package/v3/dist/domains/test-generation/coordinator.js +237 -0
- package/v3/dist/domains/test-generation/coordinator.js.map +1 -1
- package/v3/dist/domains/test-generation/interfaces.d.ts +2 -0
- package/v3/dist/domains/test-generation/interfaces.d.ts.map +1 -1
- package/v3/dist/domains/test-generation/services/test-generator.d.ts +32 -0
- package/v3/dist/domains/test-generation/services/test-generator.d.ts.map +1 -1
- package/v3/dist/domains/test-generation/services/test-generator.js +158 -3
- package/v3/dist/domains/test-generation/services/test-generator.js.map +1 -1
- package/v3/dist/domains/visual-accessibility/coordinator.d.ts +147 -0
- package/v3/dist/domains/visual-accessibility/coordinator.d.ts.map +1 -1
- package/v3/dist/domains/visual-accessibility/coordinator.js +382 -2
- 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 +66 -3
- 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/domains/visual-accessibility/services/visual-tester.d.ts +47 -2
- package/v3/dist/domains/visual-accessibility/services/visual-tester.d.ts.map +1 -1
- package/v3/dist/domains/visual-accessibility/services/visual-tester.js +87 -3
- package/v3/dist/domains/visual-accessibility/services/visual-tester.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/experience-capture-middleware.d.ts +119 -0
- package/v3/dist/learning/experience-capture-middleware.d.ts.map +1 -0
- package/v3/dist/learning/experience-capture-middleware.js +416 -0
- package/v3/dist/learning/experience-capture-middleware.js.map +1 -0
- 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 +63771 -53632
- 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 -121
- 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 +2 -1
- package/v3/dist/mcp/handlers/index.d.ts.map +1 -1
- package/v3/dist/mcp/handlers/index.js +4 -2
- 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/handlers/wrapped-domain-handlers.d.ts +30 -0
- package/v3/dist/mcp/handlers/wrapped-domain-handlers.d.ts.map +1 -0
- package/v3/dist/mcp/handlers/wrapped-domain-handlers.js +75 -0
- package/v3/dist/mcp/handlers/wrapped-domain-handlers.js.map +1 -0
- 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/tools/chaos-resilience/inject.js +1 -1
- package/v3/dist/mcp/tools/chaos-resilience/inject.js.map +1 -1
- package/v3/dist/mcp/tools/contract-testing/validate.js +1 -1
- package/v3/dist/mcp/tools/contract-testing/validate.js.map +1 -1
- package/v3/dist/mcp/tools/learning-optimization/optimize.js +1 -1
- package/v3/dist/mcp/tools/learning-optimization/optimize.js.map +1 -1
- package/v3/dist/mcp/tools/visual-accessibility/index.js +2 -2
- package/v3/dist/mcp/tools/visual-accessibility/index.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/routing/qe-agent-registry.d.ts +1 -1
- package/v3/dist/routing/qe-agent-registry.d.ts.map +1 -1
- package/v3/dist/routing/qe-agent-registry.js +20 -1
- package/v3/dist/routing/qe-agent-registry.js.map +1 -1
- 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 +63 -0
- package/v3/dist/sync/claude-flow-bridge.d.ts.map +1 -0
- package/v3/dist/sync/claude-flow-bridge.js +322 -0
- package/v3/dist/sync/claude-flow-bridge.js.map +1 -0
- 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
|
@@ -1,10 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Agentic QE v3 - Base Domain Interface
|
|
3
3
|
* Template for all domain implementations
|
|
4
|
+
*
|
|
5
|
+
* Extended with optional integration support for:
|
|
6
|
+
* - MinCut topology awareness (ADR-047)
|
|
7
|
+
* - Multi-model consensus verification (MM-006)
|
|
4
8
|
*/
|
|
5
9
|
import { ok, err } from '../shared/types';
|
|
6
10
|
/**
|
|
7
11
|
* Abstract base class for domain plugins
|
|
12
|
+
*
|
|
13
|
+
* Provides common functionality for all domain implementations including:
|
|
14
|
+
* - Lifecycle management (initialize/dispose)
|
|
15
|
+
* - Health tracking
|
|
16
|
+
* - Event handling
|
|
17
|
+
* - Task execution (Queen-Domain integration)
|
|
18
|
+
* - Optional MinCut and Consensus integration (ADR-047, MM-006)
|
|
8
19
|
*/
|
|
9
20
|
export class BaseDomainPlugin {
|
|
10
21
|
eventBus;
|
|
@@ -17,6 +28,19 @@ export class BaseDomainPlugin {
|
|
|
17
28
|
agents: { total: 0, active: 0, idle: 0, failed: 0 },
|
|
18
29
|
errors: [],
|
|
19
30
|
};
|
|
31
|
+
// ============================================================================
|
|
32
|
+
// Optional Integration Support (ADR-047, MM-006)
|
|
33
|
+
// ============================================================================
|
|
34
|
+
/**
|
|
35
|
+
* MinCut bridge for topology awareness
|
|
36
|
+
* @internal Set via setMinCutBridge() or setIntegrationConfig()
|
|
37
|
+
*/
|
|
38
|
+
_minCutBridge;
|
|
39
|
+
/**
|
|
40
|
+
* Consensus configuration for multi-model verification
|
|
41
|
+
* @internal Set via setConsensusConfig() or setIntegrationConfig()
|
|
42
|
+
*/
|
|
43
|
+
_consensusConfig;
|
|
20
44
|
constructor(eventBus, memory) {
|
|
21
45
|
this.eventBus = eventBus;
|
|
22
46
|
this.memory = memory;
|
|
@@ -61,6 +85,122 @@ export class BaseDomainPlugin {
|
|
|
61
85
|
this._health = { ...this._health, ...updates };
|
|
62
86
|
}
|
|
63
87
|
// ============================================================================
|
|
88
|
+
// Integration Configuration (ADR-047, MM-006)
|
|
89
|
+
// ============================================================================
|
|
90
|
+
/**
|
|
91
|
+
* Set MinCut bridge for topology awareness after construction
|
|
92
|
+
* Alternative to constructor injection for domains that need late binding
|
|
93
|
+
*
|
|
94
|
+
* @param bridge - The QueenMinCutBridge instance to use
|
|
95
|
+
*
|
|
96
|
+
* @example
|
|
97
|
+
* ```typescript
|
|
98
|
+
* const plugin = new MyDomainPlugin(eventBus, memory, coordinator);
|
|
99
|
+
* await plugin.initialize();
|
|
100
|
+
*
|
|
101
|
+
* // Later, when MinCut bridge is available:
|
|
102
|
+
* plugin.setMinCutBridge(minCutBridge);
|
|
103
|
+
* ```
|
|
104
|
+
*/
|
|
105
|
+
setMinCutBridge(bridge) {
|
|
106
|
+
this._minCutBridge = bridge;
|
|
107
|
+
this.onMinCutBridgeSet(bridge);
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Get the current MinCut bridge (if set)
|
|
111
|
+
* @returns The MinCut bridge or undefined if not configured
|
|
112
|
+
*/
|
|
113
|
+
getMinCutBridge() {
|
|
114
|
+
return this._minCutBridge;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Set consensus configuration for multi-model verification after construction
|
|
118
|
+
* Alternative to constructor injection for domains that need late binding
|
|
119
|
+
*
|
|
120
|
+
* @param config - The consensus configuration to use
|
|
121
|
+
*
|
|
122
|
+
* @example
|
|
123
|
+
* ```typescript
|
|
124
|
+
* const plugin = new SecurityCompliancePlugin(eventBus, memory, coordinator);
|
|
125
|
+
* plugin.setConsensusConfig({
|
|
126
|
+
* enabled: true,
|
|
127
|
+
* verifySeverities: ['critical', 'high'],
|
|
128
|
+
* autoApprovalThreshold: 0.9,
|
|
129
|
+
* });
|
|
130
|
+
* ```
|
|
131
|
+
*/
|
|
132
|
+
setConsensusConfig(config) {
|
|
133
|
+
this._consensusConfig = config;
|
|
134
|
+
this.onConsensusConfigSet(config);
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Get the current consensus configuration (if set)
|
|
138
|
+
* @returns The consensus configuration or undefined if not configured
|
|
139
|
+
*/
|
|
140
|
+
getConsensusConfig() {
|
|
141
|
+
return this._consensusConfig;
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Set both MinCut and Consensus configuration at once
|
|
145
|
+
* Convenience method for full integration setup
|
|
146
|
+
*
|
|
147
|
+
* @param config - Integration configuration containing optional MinCut and Consensus settings
|
|
148
|
+
*
|
|
149
|
+
* @example
|
|
150
|
+
* ```typescript
|
|
151
|
+
* plugin.setIntegrationConfig({
|
|
152
|
+
* minCutBridge: queenMinCutBridge,
|
|
153
|
+
* consensusConfig: {
|
|
154
|
+
* enabled: true,
|
|
155
|
+
* verifySeverities: ['critical', 'high'],
|
|
156
|
+
* },
|
|
157
|
+
* });
|
|
158
|
+
* ```
|
|
159
|
+
*/
|
|
160
|
+
setIntegrationConfig(config) {
|
|
161
|
+
if (config.minCutBridge) {
|
|
162
|
+
this.setMinCutBridge(config.minCutBridge);
|
|
163
|
+
}
|
|
164
|
+
if (config.consensusConfig) {
|
|
165
|
+
this.setConsensusConfig(config.consensusConfig);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Check if MinCut integration is configured and active
|
|
170
|
+
* @returns true if MinCut bridge is set
|
|
171
|
+
*/
|
|
172
|
+
hasMinCutIntegration() {
|
|
173
|
+
return this._minCutBridge !== undefined;
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Check if consensus verification is enabled
|
|
177
|
+
* @returns true if consensus is configured and enabled
|
|
178
|
+
*/
|
|
179
|
+
hasConsensusEnabled() {
|
|
180
|
+
return this._consensusConfig?.enabled === true;
|
|
181
|
+
}
|
|
182
|
+
// ============================================================================
|
|
183
|
+
// Integration Hooks (Override in subclasses for custom behavior)
|
|
184
|
+
// ============================================================================
|
|
185
|
+
/**
|
|
186
|
+
* Called when MinCut bridge is set
|
|
187
|
+
* Override in subclasses to perform domain-specific setup
|
|
188
|
+
*
|
|
189
|
+
* @param _bridge - The MinCut bridge that was set
|
|
190
|
+
*/
|
|
191
|
+
onMinCutBridgeSet(_bridge) {
|
|
192
|
+
// Default: no-op - subclasses can override to register with the bridge
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* Called when consensus configuration is set
|
|
196
|
+
* Override in subclasses to perform domain-specific setup
|
|
197
|
+
*
|
|
198
|
+
* @param _config - The consensus configuration that was set
|
|
199
|
+
*/
|
|
200
|
+
onConsensusConfigSet(_config) {
|
|
201
|
+
// Default: no-op - subclasses can override to configure consensus verification
|
|
202
|
+
}
|
|
203
|
+
// ============================================================================
|
|
64
204
|
// Task Execution (Queen-Domain Integration)
|
|
65
205
|
// ============================================================================
|
|
66
206
|
/**
|
|
@@ -126,15 +266,30 @@ export class BaseDomainPlugin {
|
|
|
126
266
|
};
|
|
127
267
|
// Report completion via callback
|
|
128
268
|
await onComplete(taskResult);
|
|
129
|
-
// Update health tracking
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
269
|
+
// Update health tracking based on result
|
|
270
|
+
if (result.success) {
|
|
271
|
+
this.updateHealth({
|
|
272
|
+
lastActivity: new Date(),
|
|
273
|
+
agents: {
|
|
274
|
+
...this._health.agents,
|
|
275
|
+
active: Math.max(0, this._health.agents.active - 1),
|
|
276
|
+
idle: this._health.agents.idle + 1,
|
|
277
|
+
},
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
else {
|
|
281
|
+
// Handler returned an error result - track it
|
|
282
|
+
const errorMessage = result.error?.message ?? 'Unknown error';
|
|
283
|
+
this.updateHealth({
|
|
284
|
+
lastActivity: new Date(),
|
|
285
|
+
errors: [...this._health.errors.slice(-9), errorMessage],
|
|
286
|
+
agents: {
|
|
287
|
+
...this._health.agents,
|
|
288
|
+
active: Math.max(0, this._health.agents.active - 1),
|
|
289
|
+
failed: this._health.agents.failed + 1,
|
|
290
|
+
},
|
|
291
|
+
});
|
|
292
|
+
}
|
|
138
293
|
}
|
|
139
294
|
catch (error) {
|
|
140
295
|
// Handler threw an exception
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domain-interface.js","sourceRoot":"","sources":["../../src/domains/domain-interface.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"domain-interface.js","sourceRoot":"","sources":["../../src/domains/domain-interface.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAmC,EAAE,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AA8E3E;;;;;;;;;GASG;AACH,MAAM,OAAgB,gBAAgB;IA2Bf;IACA;IA3BX,YAAY,GAAG,KAAK,CAAC;IAC/B,yEAAyE;IACzE,+DAA+D;IACrD,OAAO,GAAiB;QAChC,MAAM,EAAE,MAAM;QACd,MAAM,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE;QACnD,MAAM,EAAE,EAAE;KACX,CAAC;IAEF,+EAA+E;IAC/E,iDAAiD;IACjD,+EAA+E;IAE/E;;;OAGG;IACO,aAAa,CAAqB;IAE5C;;;OAGG;IACO,gBAAgB,CAAyB;IAEnD,YACqB,QAAkB,EAClB,MAAqB;QADrB,aAAQ,GAAR,QAAQ,CAAU;QAClB,WAAM,GAAN,MAAM,CAAe;IACvC,CAAC;IAMJ,OAAO;QACL,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;IAED,SAAS;QACP,OAAO,EAAE,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;IAC7B,CAAC;IAED,KAAK,CAAC,UAAU;QACd,IAAI,IAAI,CAAC,YAAY;YAAE,OAAO;QAE9B,MAAM,IAAI,CAAC,YAAY,EAAE,CAAC;QAC1B,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACzB,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;IAC3B,CAAC;IAED,KAAK,CAAC,OAAO;QACX,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC;QACvB,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;IAC5B,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,KAAkB;QACl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CAAC,CAAC,EAAE,YAAY,CAAC;gBACxD,MAAM,EAAE;oBACN,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM;oBACtB,MAAM,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC;oBACnD,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC;iBACvC;aACF,CAAC,CAAC;QACL,CAAC;IACH,CAAC;CACF"}
|
|
@@ -8,6 +8,7 @@ import { ILearningOptimizationCoordinator, LearningCycleReport, OptimizationRepo
|
|
|
8
8
|
import { type QESONAPattern, type QEPatternType, type QESONAStats, type QESONAAdaptationResult } from '../../integrations/ruvector/wrappers.js';
|
|
9
9
|
import type { RLState, RLAction } from '../../integrations/rl-suite/interfaces.js';
|
|
10
10
|
import { type DreamSchedulerStatus, type EngineResult as DreamCycleResult } from '../../learning/dream/index.js';
|
|
11
|
+
import type { QueenMinCutBridge } from '../../coordination/mincut/queen-integration.js';
|
|
11
12
|
/**
|
|
12
13
|
* Workflow status tracking
|
|
13
14
|
*/
|
|
@@ -44,6 +45,13 @@ export interface LearningCoordinatorConfig {
|
|
|
44
45
|
autoApplyHighConfidenceInsights: boolean;
|
|
45
46
|
/** Minimum confidence threshold for auto-applying insights (0-1) */
|
|
46
47
|
autoApplyConfidenceThreshold: number;
|
|
48
|
+
enableMinCutAwareness: boolean;
|
|
49
|
+
topologyHealthThreshold: number;
|
|
50
|
+
pauseOnCriticalTopology: boolean;
|
|
51
|
+
enableConsensus: boolean;
|
|
52
|
+
consensusThreshold: number;
|
|
53
|
+
consensusStrategy: 'majority' | 'weighted' | 'unanimous';
|
|
54
|
+
consensusMinModels: number;
|
|
47
55
|
}
|
|
48
56
|
/**
|
|
49
57
|
* Learning & Optimization Coordinator
|
|
@@ -71,6 +79,9 @@ export declare class LearningOptimizationCoordinator implements ILearningOptimiz
|
|
|
71
79
|
* Wraps DreamEngine with automatic scheduling and trigger support
|
|
72
80
|
*/
|
|
73
81
|
private dreamScheduler;
|
|
82
|
+
private readonly minCutMixin;
|
|
83
|
+
private readonly consensusMixin;
|
|
84
|
+
private readonly domainName;
|
|
74
85
|
constructor(eventBus: EventBus, memory: MemoryBackend, agentCoordinator: AgentCoordinator, config?: Partial<LearningCoordinatorConfig>);
|
|
75
86
|
/**
|
|
76
87
|
* Initialize the coordinator.
|
|
@@ -316,5 +327,82 @@ export declare class LearningOptimizationCoordinator implements ILearningOptimiz
|
|
|
316
327
|
private findSimilarPatterns;
|
|
317
328
|
private contextsOverlap;
|
|
318
329
|
private calculateChecksum;
|
|
330
|
+
/**
|
|
331
|
+
* Set the MinCut bridge for topology awareness
|
|
332
|
+
*/
|
|
333
|
+
setMinCutBridge(bridge: QueenMinCutBridge): void;
|
|
334
|
+
/**
|
|
335
|
+
* Check if topology is healthy
|
|
336
|
+
*/
|
|
337
|
+
isTopologyHealthy(): boolean;
|
|
338
|
+
/**
|
|
339
|
+
* Get topology-based routing excluding weak domains
|
|
340
|
+
* Per ADR-047: Filters out domains that are currently weak points
|
|
341
|
+
*
|
|
342
|
+
* @param targetDomains - List of potential target domains
|
|
343
|
+
* @returns Filtered list of healthy domains for routing
|
|
344
|
+
*/
|
|
345
|
+
getTopologyBasedRouting(targetDomains: DomainName[]): DomainName[];
|
|
346
|
+
/**
|
|
347
|
+
* Get weak vertices belonging to this domain
|
|
348
|
+
* Per ADR-047: Identifies agents that are single points of failure
|
|
349
|
+
*/
|
|
350
|
+
getDomainWeakVertices(): import("../../index.js").WeakVertex[];
|
|
351
|
+
/**
|
|
352
|
+
* Check if this domain is a weak point in the topology
|
|
353
|
+
* Per ADR-047: Returns true if any weak vertex belongs to learning-optimization domain
|
|
354
|
+
*/
|
|
355
|
+
isDomainWeakPoint(): boolean;
|
|
356
|
+
/**
|
|
357
|
+
* Check if consensus engine is available
|
|
358
|
+
*/
|
|
359
|
+
isConsensusAvailable(): boolean;
|
|
360
|
+
/**
|
|
361
|
+
* Get consensus statistics
|
|
362
|
+
* Per MM-001: Returns metrics about consensus verification
|
|
363
|
+
*/
|
|
364
|
+
getConsensusStats(): import("../../index.js").ConsensusStats | undefined;
|
|
365
|
+
/**
|
|
366
|
+
* Verify a pattern recommendation using multi-model consensus
|
|
367
|
+
* Per MM-001: High-stakes pattern recommendations require verification
|
|
368
|
+
*
|
|
369
|
+
* @param pattern - The pattern being recommended
|
|
370
|
+
* @param confidence - Initial confidence in the recommendation
|
|
371
|
+
* @returns true if the recommendation is verified or doesn't require consensus
|
|
372
|
+
*/
|
|
373
|
+
verifyPatternRecommendation(pattern: {
|
|
374
|
+
id: string;
|
|
375
|
+
name: string;
|
|
376
|
+
type: string;
|
|
377
|
+
domain: DomainName;
|
|
378
|
+
}, confidence: number): Promise<boolean>;
|
|
379
|
+
/**
|
|
380
|
+
* Verify an optimization suggestion using multi-model consensus
|
|
381
|
+
* Per MM-001: Optimization suggestions can have significant impact
|
|
382
|
+
*
|
|
383
|
+
* @param suggestion - The optimization suggestion to verify
|
|
384
|
+
* @param confidence - Initial confidence in the suggestion
|
|
385
|
+
* @returns true if the suggestion is verified or doesn't require consensus
|
|
386
|
+
*/
|
|
387
|
+
verifyOptimizationSuggestion(suggestion: {
|
|
388
|
+
metric: string;
|
|
389
|
+
currentValue: number;
|
|
390
|
+
targetValue: number;
|
|
391
|
+
strategy: string;
|
|
392
|
+
}, confidence: number): Promise<boolean>;
|
|
393
|
+
/**
|
|
394
|
+
* Verify a cross-domain insight using multi-model consensus
|
|
395
|
+
* Per MM-001: Cross-domain insights require verification before propagation
|
|
396
|
+
*
|
|
397
|
+
* @param insight - The cross-domain insight to verify
|
|
398
|
+
* @param confidence - Initial confidence in the insight
|
|
399
|
+
* @returns true if the insight is verified or doesn't require consensus
|
|
400
|
+
*/
|
|
401
|
+
verifyCrossDomainInsight(insight: {
|
|
402
|
+
sourceDomain: DomainName;
|
|
403
|
+
targetDomains: DomainName[];
|
|
404
|
+
description: string;
|
|
405
|
+
impact: string;
|
|
406
|
+
}, confidence: number): Promise<boolean>;
|
|
319
407
|
}
|
|
320
408
|
//# sourceMappingURL=coordinator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coordinator.d.ts","sourceRoot":"","sources":["../../../src/domains/learning-optimization/coordinator.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EACL,MAAM,EAGN,UAAU,EAEX,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,QAAQ,EACR,aAAa,EACb,gBAAgB,EAEjB,MAAM,4BAA4B,CAAC;AASpC,OAAO,EACL,gCAAgC,EAChC,mBAAmB,EACnB,kBAAkB,EAClB,wBAAwB,EACxB,iBAAiB,EACjB,WAAW,EACX,YAAY,EASb,MAAM,iBAAiB,CAAC;AAWzB,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,sBAAsB,EAC5B,MAAM,yCAAyC,CAAC;AACjD,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAEnF,OAAO,EAIL,KAAK,oBAAoB,EACzB,KAAK,YAAY,IAAI,gBAAgB,EACtC,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"coordinator.d.ts","sourceRoot":"","sources":["../../../src/domains/learning-optimization/coordinator.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EACL,MAAM,EAGN,UAAU,EAEX,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,QAAQ,EACR,aAAa,EACb,gBAAgB,EAEjB,MAAM,4BAA4B,CAAC;AASpC,OAAO,EACL,gCAAgC,EAChC,mBAAmB,EACnB,kBAAkB,EAClB,wBAAwB,EACxB,iBAAiB,EACjB,WAAW,EACX,YAAY,EASb,MAAM,iBAAiB,CAAC;AAWzB,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,W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,UAAU,CAAA;KAAE,EACvE,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,OAAO,CAAC;IAuBnB;;;;;;;OAOG;IACG,4BAA4B,CAChC,UAAU,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,EAC3F,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,OAAO,CAAC;IAuBnB;;;;;;;OAOG;IACG,wBAAwB,CAC5B,OAAO,EAAE;QAAE,YAAY,EAAE,UAAU,CAAC;QAAC,aAAa,EAAE,UAAU,EAAE,CAAC;QAAC,WAAW,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,EACvG,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,OAAO,CAAC;CAsBpB"}
|
|
@@ -9,6 +9,12 @@ import { LearningOptimizationEvents, createEvent, } from '../../shared/events/do
|
|
|
9
9
|
import { LearningCoordinatorService, TransferSpecialistService, MetricsOptimizerService, ProductionIntelService, } from './services/index.js';
|
|
10
10
|
import { createPersistentSONAEngine, } from '../../integrations/ruvector/sona-persistence.js';
|
|
11
11
|
import { createDreamScheduler, createDreamEngine, } from '../../learning/dream/index.js';
|
|
12
|
+
// ============================================================================
|
|
13
|
+
// MinCut & Consensus Mixin Imports (ADR-047, MM-001)
|
|
14
|
+
// ============================================================================
|
|
15
|
+
import { createMinCutAwareMixin, } from '../../coordination/mixins/mincut-aware-domain.js';
|
|
16
|
+
import { createConsensusEnabledMixin, } from '../../coordination/mixins/consensus-enabled-domain.js';
|
|
17
|
+
import { createDomainFinding, } from '../../coordination/consensus/domain-findings.js';
|
|
12
18
|
const DEFAULT_CONFIG = {
|
|
13
19
|
maxConcurrentWorkflows: 3,
|
|
14
20
|
defaultTimeout: 120000, // 2 minutes
|
|
@@ -23,6 +29,15 @@ const DEFAULT_CONFIG = {
|
|
|
23
29
|
enableQualityGateFailureTrigger: true,
|
|
24
30
|
autoApplyHighConfidenceInsights: false,
|
|
25
31
|
autoApplyConfidenceThreshold: 0.8,
|
|
32
|
+
// MinCut integration defaults (ADR-047)
|
|
33
|
+
enableMinCutAwareness: true,
|
|
34
|
+
topologyHealthThreshold: 0.5,
|
|
35
|
+
pauseOnCriticalTopology: false,
|
|
36
|
+
// Consensus integration defaults (MM-001)
|
|
37
|
+
enableConsensus: true,
|
|
38
|
+
consensusThreshold: 0.7,
|
|
39
|
+
consensusStrategy: 'weighted',
|
|
40
|
+
consensusMinModels: 2,
|
|
26
41
|
};
|
|
27
42
|
/**
|
|
28
43
|
* Learning & Optimization Coordinator
|
|
@@ -50,12 +65,35 @@ export class LearningOptimizationCoordinator {
|
|
|
50
65
|
* Wraps DreamEngine with automatic scheduling and trigger support
|
|
51
66
|
*/
|
|
52
67
|
dreamScheduler = null;
|
|
68
|
+
// MinCut topology awareness mixin (ADR-047)
|
|
69
|
+
minCutMixin;
|
|
70
|
+
// Consensus verification mixin (MM-001)
|
|
71
|
+
consensusMixin;
|
|
72
|
+
// Domain identifier for mixin initialization
|
|
73
|
+
domainName = 'learning-optimization';
|
|
53
74
|
constructor(eventBus, memory, agentCoordinator, config = {}) {
|
|
54
75
|
this.eventBus = eventBus;
|
|
55
76
|
this.memory = memory;
|
|
56
77
|
this.agentCoordinator = agentCoordinator;
|
|
57
78
|
this.config = { ...DEFAULT_CONFIG, ...config };
|
|
58
|
-
|
|
79
|
+
// Initialize MinCut-aware mixin (ADR-047)
|
|
80
|
+
this.minCutMixin = createMinCutAwareMixin(this.domainName, {
|
|
81
|
+
enableMinCutAwareness: this.config.enableMinCutAwareness,
|
|
82
|
+
topologyHealthThreshold: this.config.topologyHealthThreshold,
|
|
83
|
+
pauseOnCriticalTopology: this.config.pauseOnCriticalTopology,
|
|
84
|
+
});
|
|
85
|
+
// Initialize Consensus-enabled mixin (MM-001)
|
|
86
|
+
this.consensusMixin = createConsensusEnabledMixin({
|
|
87
|
+
enableConsensus: this.config.enableConsensus,
|
|
88
|
+
consensusThreshold: this.config.consensusThreshold,
|
|
89
|
+
verifyFindingTypes: ['pattern-recommendation', 'optimization-suggestion', 'cross-domain-insight'],
|
|
90
|
+
strategy: this.config.consensusStrategy,
|
|
91
|
+
minModels: this.config.consensusMinModels,
|
|
92
|
+
modelTimeout: 60000,
|
|
93
|
+
verifySeverities: ['critical', 'high'],
|
|
94
|
+
enableLogging: false,
|
|
95
|
+
});
|
|
96
|
+
this.learningService = new LearningCoordinatorService({ memory });
|
|
59
97
|
this.transferService = new TransferSpecialistService(memory);
|
|
60
98
|
this.optimizerService = new MetricsOptimizerService(memory);
|
|
61
99
|
this.productionIntel = new ProductionIntelService(memory);
|
|
@@ -112,12 +150,32 @@ export class LearningOptimizationCoordinator {
|
|
|
112
150
|
this.subscribeToEvents();
|
|
113
151
|
// Load any persisted workflow state
|
|
114
152
|
await this.loadWorkflowState();
|
|
153
|
+
// Initialize Consensus engine if enabled (MM-001)
|
|
154
|
+
if (this.config.enableConsensus) {
|
|
155
|
+
try {
|
|
156
|
+
await this.consensusMixin.initializeConsensus();
|
|
157
|
+
console.log(`[${this.domainName}] Consensus engine initialized`);
|
|
158
|
+
}
|
|
159
|
+
catch (error) {
|
|
160
|
+
console.error(`[${this.domainName}] Failed to initialize consensus engine:`, error);
|
|
161
|
+
console.warn(`[${this.domainName}] Continuing without consensus verification`);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
115
164
|
this.initialized = true;
|
|
116
165
|
}
|
|
117
166
|
/**
|
|
118
167
|
* Dispose and cleanup
|
|
119
168
|
*/
|
|
120
169
|
async dispose() {
|
|
170
|
+
// Dispose Consensus engine (MM-001)
|
|
171
|
+
try {
|
|
172
|
+
await this.consensusMixin.disposeConsensus();
|
|
173
|
+
}
|
|
174
|
+
catch (error) {
|
|
175
|
+
console.error(`[${this.domainName}] Error disposing consensus engine:`, error);
|
|
176
|
+
}
|
|
177
|
+
// Dispose MinCut mixin (ADR-047)
|
|
178
|
+
this.minCutMixin.dispose();
|
|
121
179
|
// Save workflow state
|
|
122
180
|
await this.saveWorkflowState();
|
|
123
181
|
// Clear active workflows
|
|
@@ -160,6 +218,15 @@ export class LearningOptimizationCoordinator {
|
|
|
160
218
|
const workflowId = uuidv4();
|
|
161
219
|
try {
|
|
162
220
|
this.startWorkflow(workflowId, 'learning-cycle');
|
|
221
|
+
// ADR-047: Check topology health before expensive operations
|
|
222
|
+
if (this.config.enableMinCutAwareness && !this.isTopologyHealthy()) {
|
|
223
|
+
console.warn(`[${this.domainName}] Topology degraded, using conservative strategy for learning cycle`);
|
|
224
|
+
// Continue with reduced scope when topology is unhealthy
|
|
225
|
+
}
|
|
226
|
+
// ADR-047: Check if operations should be paused due to critical topology
|
|
227
|
+
if (this.minCutMixin.shouldPauseOperations()) {
|
|
228
|
+
return err(new Error('Learning cycle paused: topology is in critical state'));
|
|
229
|
+
}
|
|
163
230
|
// Spawn learning agent
|
|
164
231
|
const agentResult = await this.spawnLearningAgent(workflowId, domain);
|
|
165
232
|
if (!agentResult.success) {
|
|
@@ -242,6 +309,14 @@ export class LearningOptimizationCoordinator {
|
|
|
242
309
|
const workflowId = uuidv4();
|
|
243
310
|
try {
|
|
244
311
|
this.startWorkflow(workflowId, 'optimization');
|
|
312
|
+
// ADR-047: Check topology health before expensive operations
|
|
313
|
+
if (this.config.enableMinCutAwareness && !this.isTopologyHealthy()) {
|
|
314
|
+
console.warn(`[${this.domainName}] Topology degraded, using conservative optimization strategy`);
|
|
315
|
+
}
|
|
316
|
+
// ADR-047: Check if operations should be paused due to critical topology
|
|
317
|
+
if (this.minCutMixin.shouldPauseOperations()) {
|
|
318
|
+
return err(new Error('Optimization paused: topology is in critical state'));
|
|
319
|
+
}
|
|
245
320
|
const byDomain = {};
|
|
246
321
|
let totalStrategies = 0;
|
|
247
322
|
let totalImprovement = 0;
|
|
@@ -301,6 +376,14 @@ export class LearningOptimizationCoordinator {
|
|
|
301
376
|
const workflowId = uuidv4();
|
|
302
377
|
try {
|
|
303
378
|
this.startWorkflow(workflowId, 'transfer');
|
|
379
|
+
// ADR-047: Check topology health before cross-domain operations
|
|
380
|
+
if (this.config.enableMinCutAwareness && !this.isTopologyHealthy()) {
|
|
381
|
+
console.warn(`[${this.domainName}] Topology degraded, limiting cross-domain transfer scope`);
|
|
382
|
+
}
|
|
383
|
+
// ADR-047: Check if operations should be paused due to critical topology
|
|
384
|
+
if (this.minCutMixin.shouldPauseOperations()) {
|
|
385
|
+
return err(new Error('Cross-domain sharing paused: topology is in critical state'));
|
|
386
|
+
}
|
|
304
387
|
let knowledgeShared = 0;
|
|
305
388
|
const domainsUpdated = [];
|
|
306
389
|
let newPatternsCreated = 0;
|
|
@@ -1280,5 +1363,148 @@ export class LearningOptimizationCoordinator {
|
|
|
1280
1363
|
}
|
|
1281
1364
|
return Math.abs(hash).toString(16);
|
|
1282
1365
|
}
|
|
1366
|
+
// ============================================================================
|
|
1367
|
+
// MinCut Integration Methods (ADR-047)
|
|
1368
|
+
// ============================================================================
|
|
1369
|
+
/**
|
|
1370
|
+
* Set the MinCut bridge for topology awareness
|
|
1371
|
+
*/
|
|
1372
|
+
setMinCutBridge(bridge) {
|
|
1373
|
+
this.minCutMixin.setMinCutBridge(bridge);
|
|
1374
|
+
console.log(`[${this.domainName}] MinCut bridge connected for topology awareness`);
|
|
1375
|
+
}
|
|
1376
|
+
/**
|
|
1377
|
+
* Check if topology is healthy
|
|
1378
|
+
*/
|
|
1379
|
+
isTopologyHealthy() {
|
|
1380
|
+
return this.minCutMixin.isTopologyHealthy();
|
|
1381
|
+
}
|
|
1382
|
+
/**
|
|
1383
|
+
* Get topology-based routing excluding weak domains
|
|
1384
|
+
* Per ADR-047: Filters out domains that are currently weak points
|
|
1385
|
+
*
|
|
1386
|
+
* @param targetDomains - List of potential target domains
|
|
1387
|
+
* @returns Filtered list of healthy domains for routing
|
|
1388
|
+
*/
|
|
1389
|
+
getTopologyBasedRouting(targetDomains) {
|
|
1390
|
+
return this.minCutMixin.getTopologyBasedRouting(targetDomains);
|
|
1391
|
+
}
|
|
1392
|
+
/**
|
|
1393
|
+
* Get weak vertices belonging to this domain
|
|
1394
|
+
* Per ADR-047: Identifies agents that are single points of failure
|
|
1395
|
+
*/
|
|
1396
|
+
getDomainWeakVertices() {
|
|
1397
|
+
return this.minCutMixin.getDomainWeakVertices();
|
|
1398
|
+
}
|
|
1399
|
+
/**
|
|
1400
|
+
* Check if this domain is a weak point in the topology
|
|
1401
|
+
* Per ADR-047: Returns true if any weak vertex belongs to learning-optimization domain
|
|
1402
|
+
*/
|
|
1403
|
+
isDomainWeakPoint() {
|
|
1404
|
+
return this.minCutMixin.isDomainWeakPoint();
|
|
1405
|
+
}
|
|
1406
|
+
// ============================================================================
|
|
1407
|
+
// Consensus Integration Methods (MM-001)
|
|
1408
|
+
// ============================================================================
|
|
1409
|
+
/**
|
|
1410
|
+
* Check if consensus engine is available
|
|
1411
|
+
*/
|
|
1412
|
+
isConsensusAvailable() {
|
|
1413
|
+
return this.consensusMixin.isConsensusAvailable?.() ?? false;
|
|
1414
|
+
}
|
|
1415
|
+
/**
|
|
1416
|
+
* Get consensus statistics
|
|
1417
|
+
* Per MM-001: Returns metrics about consensus verification
|
|
1418
|
+
*/
|
|
1419
|
+
getConsensusStats() {
|
|
1420
|
+
return this.consensusMixin.getConsensusStats();
|
|
1421
|
+
}
|
|
1422
|
+
/**
|
|
1423
|
+
* Verify a pattern recommendation using multi-model consensus
|
|
1424
|
+
* Per MM-001: High-stakes pattern recommendations require verification
|
|
1425
|
+
*
|
|
1426
|
+
* @param pattern - The pattern being recommended
|
|
1427
|
+
* @param confidence - Initial confidence in the recommendation
|
|
1428
|
+
* @returns true if the recommendation is verified or doesn't require consensus
|
|
1429
|
+
*/
|
|
1430
|
+
async verifyPatternRecommendation(pattern, confidence) {
|
|
1431
|
+
const finding = createDomainFinding({
|
|
1432
|
+
id: uuidv4(),
|
|
1433
|
+
type: 'pattern-recommendation',
|
|
1434
|
+
confidence,
|
|
1435
|
+
description: `Verify pattern recommendation: ${pattern.name} (${pattern.type}) for domain ${pattern.domain}`,
|
|
1436
|
+
payload: pattern,
|
|
1437
|
+
detectedBy: 'learning-optimization-coordinator',
|
|
1438
|
+
severity: confidence > 0.9 ? 'high' : 'medium',
|
|
1439
|
+
});
|
|
1440
|
+
if (this.consensusMixin.requiresConsensus(finding)) {
|
|
1441
|
+
const result = await this.consensusMixin.verifyFinding(finding);
|
|
1442
|
+
if (result.success && result.value.verdict === 'verified') {
|
|
1443
|
+
console.log(`[${this.domainName}] Pattern recommendation '${pattern.name}' verified by consensus`);
|
|
1444
|
+
return true;
|
|
1445
|
+
}
|
|
1446
|
+
console.warn(`[${this.domainName}] Pattern recommendation '${pattern.name}' NOT verified: ${result.success ? result.value.verdict : result.error.message}`);
|
|
1447
|
+
return false;
|
|
1448
|
+
}
|
|
1449
|
+
return true; // No consensus needed
|
|
1450
|
+
}
|
|
1451
|
+
/**
|
|
1452
|
+
* Verify an optimization suggestion using multi-model consensus
|
|
1453
|
+
* Per MM-001: Optimization suggestions can have significant impact
|
|
1454
|
+
*
|
|
1455
|
+
* @param suggestion - The optimization suggestion to verify
|
|
1456
|
+
* @param confidence - Initial confidence in the suggestion
|
|
1457
|
+
* @returns true if the suggestion is verified or doesn't require consensus
|
|
1458
|
+
*/
|
|
1459
|
+
async verifyOptimizationSuggestion(suggestion, confidence) {
|
|
1460
|
+
const finding = createDomainFinding({
|
|
1461
|
+
id: uuidv4(),
|
|
1462
|
+
type: 'optimization-suggestion',
|
|
1463
|
+
confidence,
|
|
1464
|
+
description: `Verify optimization: ${suggestion.metric} from ${suggestion.currentValue} to ${suggestion.targetValue} via ${suggestion.strategy}`,
|
|
1465
|
+
payload: suggestion,
|
|
1466
|
+
detectedBy: 'learning-optimization-coordinator',
|
|
1467
|
+
severity: confidence > 0.85 ? 'high' : 'medium',
|
|
1468
|
+
});
|
|
1469
|
+
if (this.consensusMixin.requiresConsensus(finding)) {
|
|
1470
|
+
const result = await this.consensusMixin.verifyFinding(finding);
|
|
1471
|
+
if (result.success && result.value.verdict === 'verified') {
|
|
1472
|
+
console.log(`[${this.domainName}] Optimization suggestion for '${suggestion.metric}' verified by consensus`);
|
|
1473
|
+
return true;
|
|
1474
|
+
}
|
|
1475
|
+
console.warn(`[${this.domainName}] Optimization suggestion for '${suggestion.metric}' NOT verified`);
|
|
1476
|
+
return false;
|
|
1477
|
+
}
|
|
1478
|
+
return true; // No consensus needed
|
|
1479
|
+
}
|
|
1480
|
+
/**
|
|
1481
|
+
* Verify a cross-domain insight using multi-model consensus
|
|
1482
|
+
* Per MM-001: Cross-domain insights require verification before propagation
|
|
1483
|
+
*
|
|
1484
|
+
* @param insight - The cross-domain insight to verify
|
|
1485
|
+
* @param confidence - Initial confidence in the insight
|
|
1486
|
+
* @returns true if the insight is verified or doesn't require consensus
|
|
1487
|
+
*/
|
|
1488
|
+
async verifyCrossDomainInsight(insight, confidence) {
|
|
1489
|
+
const finding = createDomainFinding({
|
|
1490
|
+
id: uuidv4(),
|
|
1491
|
+
type: 'cross-domain-insight',
|
|
1492
|
+
confidence,
|
|
1493
|
+
description: `Verify cross-domain insight: ${insight.description}`,
|
|
1494
|
+
payload: insight,
|
|
1495
|
+
detectedBy: 'learning-optimization-coordinator',
|
|
1496
|
+
severity: 'high', // Cross-domain insights always have high impact
|
|
1497
|
+
});
|
|
1498
|
+
if (this.consensusMixin.requiresConsensus(finding)) {
|
|
1499
|
+
const result = await this.consensusMixin.verifyFinding(finding);
|
|
1500
|
+
if (result.success && result.value.verdict === 'verified') {
|
|
1501
|
+
console.log(`[${this.domainName}] Cross-domain insight verified by consensus for ${insight.targetDomains.length} target domains`);
|
|
1502
|
+
return true;
|
|
1503
|
+
}
|
|
1504
|
+
console.warn(`[${this.domainName}] Cross-domain insight NOT verified: ${result.success ? result.value.verdict : result.error.message}`);
|
|
1505
|
+
return false;
|
|
1506
|
+
}
|
|
1507
|
+
return true; // No consensus needed
|
|
1508
|
+
}
|
|
1283
1509
|
}
|
|
1284
1510
|
//# sourceMappingURL=coordinator.js.map
|