agentic-qe 3.6.7 → 3.6.9
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/skills/README.md +1 -1
- package/.claude/skills/skills-manifest.json +1 -1
- package/package.json +5 -2
- package/scripts/benchmark-aqe-baseline.ts +614 -0
- package/v3/CHANGELOG.md +33 -0
- package/v3/dist/adapters/a2a/agent-cards/generator.d.ts.map +1 -1
- package/v3/dist/adapters/a2a/agent-cards/generator.js +2 -1
- package/v3/dist/adapters/a2a/agent-cards/generator.js.map +1 -1
- package/v3/dist/adapters/a2a/auth/jwt-utils.d.ts.map +1 -1
- package/v3/dist/adapters/a2a/auth/jwt-utils.js +3 -2
- package/v3/dist/adapters/a2a/auth/jwt-utils.js.map +1 -1
- package/v3/dist/adapters/a2a/auth/middleware.d.ts.map +1 -1
- package/v3/dist/adapters/a2a/auth/middleware.js +3 -0
- package/v3/dist/adapters/a2a/auth/middleware.js.map +1 -1
- package/v3/dist/adapters/a2a/discovery/agent-health.d.ts.map +1 -1
- package/v3/dist/adapters/a2a/discovery/agent-health.js +4 -3
- package/v3/dist/adapters/a2a/discovery/agent-health.js.map +1 -1
- package/v3/dist/adapters/a2a/discovery/file-watcher.d.ts.map +1 -1
- package/v3/dist/adapters/a2a/discovery/file-watcher.js +3 -2
- package/v3/dist/adapters/a2a/discovery/file-watcher.js.map +1 -1
- package/v3/dist/adapters/a2a/discovery/hot-reload-service.d.ts.map +1 -1
- package/v3/dist/adapters/a2a/discovery/hot-reload-service.js +6 -5
- package/v3/dist/adapters/a2a/discovery/hot-reload-service.js.map +1 -1
- package/v3/dist/adapters/a2a/jsonrpc/envelope.d.ts.map +1 -1
- package/v3/dist/adapters/a2a/jsonrpc/envelope.js +5 -4
- package/v3/dist/adapters/a2a/jsonrpc/envelope.js.map +1 -1
- package/v3/dist/adapters/ag-ui/event-adapter.d.ts.map +1 -1
- package/v3/dist/adapters/ag-ui/event-adapter.js +2 -1
- package/v3/dist/adapters/ag-ui/event-adapter.js.map +1 -1
- package/v3/dist/adapters/ag-ui/event-batcher.d.ts.map +1 -1
- package/v3/dist/adapters/ag-ui/event-batcher.js +2 -1
- package/v3/dist/adapters/ag-ui/event-batcher.js.map +1 -1
- package/v3/dist/adapters/ag-ui/json-patch-utils.d.ts.map +1 -1
- package/v3/dist/adapters/ag-ui/json-patch-utils.js +2 -1
- package/v3/dist/adapters/ag-ui/json-patch-utils.js.map +1 -1
- package/v3/dist/adapters/ag-ui/json-patch.d.ts +1 -1
- package/v3/dist/adapters/ag-ui/json-patch.d.ts.map +1 -1
- package/v3/dist/adapters/ag-ui/json-patch.js +4 -6
- package/v3/dist/adapters/ag-ui/json-patch.js.map +1 -1
- package/v3/dist/adapters/ag-ui/stream-controller.d.ts.map +1 -1
- package/v3/dist/adapters/ag-ui/stream-controller.js +3 -0
- package/v3/dist/adapters/ag-ui/stream-controller.js.map +1 -1
- package/v3/dist/adapters/claude-flow/detect.d.ts.map +1 -1
- package/v3/dist/adapters/claude-flow/detect.js +4 -3
- package/v3/dist/adapters/claude-flow/detect.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 +7 -5
- 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 +2 -14
- package/v3/dist/adapters/claude-flow/trajectory-bridge.js.map +1 -1
- package/v3/dist/adapters/trajectory-adapter.d.ts.map +1 -1
- package/v3/dist/adapters/trajectory-adapter.js +5 -3
- package/v3/dist/adapters/trajectory-adapter.js.map +1 -1
- package/v3/dist/agents/claim-verifier/verifiers/test-verifier.d.ts.map +1 -1
- package/v3/dist/agents/claim-verifier/verifiers/test-verifier.js +2 -1
- package/v3/dist/agents/claim-verifier/verifiers/test-verifier.js.map +1 -1
- package/v3/dist/benchmarks/performance-benchmarks.d.ts.map +1 -1
- package/v3/dist/benchmarks/performance-benchmarks.js +4 -3
- package/v3/dist/benchmarks/performance-benchmarks.js.map +1 -1
- package/v3/dist/benchmarks/run-benchmarks.js +27 -45
- package/v3/dist/benchmarks/run-benchmarks.js.map +1 -1
- package/v3/dist/cli/bundle.js +13395 -14755
- package/v3/dist/cli/commands/claude-flow-setup.d.ts.map +1 -1
- package/v3/dist/cli/commands/claude-flow-setup.js +7 -5
- package/v3/dist/cli/commands/claude-flow-setup.js.map +1 -1
- package/v3/dist/cli/commands/hooks.d.ts.map +1 -1
- package/v3/dist/cli/commands/hooks.js +2 -1
- package/v3/dist/cli/commands/hooks.js.map +1 -1
- package/v3/dist/cli/commands/init.d.ts.map +1 -1
- package/v3/dist/cli/commands/init.js +2 -1
- package/v3/dist/cli/commands/init.js.map +1 -1
- package/v3/dist/cli/commands/learning-helpers.d.ts +101 -0
- package/v3/dist/cli/commands/learning-helpers.d.ts.map +1 -0
- package/v3/dist/cli/commands/learning-helpers.js +294 -0
- package/v3/dist/cli/commands/learning-helpers.js.map +1 -0
- package/v3/dist/cli/commands/learning.d.ts +1 -6
- package/v3/dist/cli/commands/learning.d.ts.map +1 -1
- package/v3/dist/cli/commands/learning.js +230 -839
- package/v3/dist/cli/commands/learning.js.map +1 -1
- package/v3/dist/cli/commands/qe-tools.d.ts.map +1 -1
- package/v3/dist/cli/commands/qe-tools.js +2 -1
- package/v3/dist/cli/commands/qe-tools.js.map +1 -1
- package/v3/dist/cli/commands/sync.d.ts.map +1 -1
- package/v3/dist/cli/commands/sync.js +5 -4
- package/v3/dist/cli/commands/sync.js.map +1 -1
- package/v3/dist/cli/commands/token-usage.d.ts.map +1 -1
- package/v3/dist/cli/commands/token-usage.js +2 -1
- package/v3/dist/cli/commands/token-usage.js.map +1 -1
- package/v3/dist/cli/commands/validate.d.ts.map +1 -1
- package/v3/dist/cli/commands/validate.js +3 -2
- package/v3/dist/cli/commands/validate.js.map +1 -1
- package/v3/dist/cli/config/cli-config.d.ts.map +1 -1
- package/v3/dist/cli/config/cli-config.js +2 -1
- package/v3/dist/cli/config/cli-config.js.map +1 -1
- package/v3/dist/cli/handlers/init-handler.d.ts.map +1 -1
- package/v3/dist/cli/handlers/init-handler.js +3 -2
- package/v3/dist/cli/handlers/init-handler.js.map +1 -1
- package/v3/dist/cli/helpers/safe-json.d.ts +4 -48
- package/v3/dist/cli/helpers/safe-json.d.ts.map +1 -1
- package/v3/dist/cli/helpers/safe-json.js +4 -68
- package/v3/dist/cli/helpers/safe-json.js.map +1 -1
- package/v3/dist/cli/index.js +3 -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 +4 -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 +2 -1
- package/v3/dist/cli/wizards/test-wizard.js.map +1 -1
- package/v3/dist/coordination/agent-teams/tracing.d.ts.map +1 -1
- package/v3/dist/coordination/agent-teams/tracing.js +2 -1
- package/v3/dist/coordination/agent-teams/tracing.js.map +1 -1
- package/v3/dist/coordination/circuit-breaker/breaker-registry.d.ts.map +1 -1
- package/v3/dist/coordination/circuit-breaker/breaker-registry.js +3 -2
- package/v3/dist/coordination/circuit-breaker/breaker-registry.js.map +1 -1
- package/v3/dist/coordination/circuit-breaker/domain-circuit-breaker.d.ts.map +1 -1
- package/v3/dist/coordination/circuit-breaker/domain-circuit-breaker.js +3 -2
- package/v3/dist/coordination/circuit-breaker/domain-circuit-breaker.js.map +1 -1
- package/v3/dist/coordination/consensus/consensus-engine.d.ts.map +1 -1
- package/v3/dist/coordination/consensus/consensus-engine.js +7 -6
- package/v3/dist/coordination/consensus/consensus-engine.js.map +1 -1
- package/v3/dist/coordination/consensus/model-provider.d.ts.map +1 -1
- package/v3/dist/coordination/consensus/model-provider.js +2 -1
- package/v3/dist/coordination/consensus/model-provider.js.map +1 -1
- package/v3/dist/coordination/consensus/providers/claude-provider.d.ts.map +1 -1
- package/v3/dist/coordination/consensus/providers/claude-provider.js +13 -12
- package/v3/dist/coordination/consensus/providers/claude-provider.js.map +1 -1
- package/v3/dist/coordination/consensus/providers/gemini-provider.d.ts.map +1 -1
- package/v3/dist/coordination/consensus/providers/gemini-provider.js +13 -12
- package/v3/dist/coordination/consensus/providers/gemini-provider.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 +3 -2
- 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 +3 -2
- 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 +3 -2
- package/v3/dist/coordination/consensus/providers/openai-provider.js.map +1 -1
- package/v3/dist/coordination/consensus/providers/openrouter-provider.d.ts.map +1 -1
- package/v3/dist/coordination/consensus/providers/openrouter-provider.js +3 -2
- package/v3/dist/coordination/consensus/providers/openrouter-provider.js.map +1 -1
- package/v3/dist/coordination/dynamic-scaling/dynamic-scaler.d.ts.map +1 -1
- package/v3/dist/coordination/dynamic-scaling/dynamic-scaler.js +5 -4
- package/v3/dist/coordination/dynamic-scaling/dynamic-scaler.js.map +1 -1
- package/v3/dist/coordination/mincut/dream-integration.d.ts.map +1 -1
- package/v3/dist/coordination/mincut/dream-integration.js.map +1 -1
- package/v3/dist/coordination/mincut/mincut-health-monitor.d.ts +4 -2
- package/v3/dist/coordination/mincut/mincut-health-monitor.d.ts.map +1 -1
- package/v3/dist/coordination/mincut/mincut-health-monitor.js +13 -3
- package/v3/dist/coordination/mincut/mincut-health-monitor.js.map +1 -1
- package/v3/dist/coordination/mincut/mincut-persistence.d.ts.map +1 -1
- package/v3/dist/coordination/mincut/mincut-persistence.js +5 -4
- package/v3/dist/coordination/mincut/mincut-persistence.js.map +1 -1
- package/v3/dist/coordination/mincut/neural-goap.d.ts.map +1 -1
- package/v3/dist/coordination/mincut/neural-goap.js +2 -1
- package/v3/dist/coordination/mincut/neural-goap.js.map +1 -1
- package/v3/dist/coordination/mincut/queen-integration.d.ts.map +1 -1
- package/v3/dist/coordination/mincut/queen-integration.js +7 -2
- package/v3/dist/coordination/mincut/queen-integration.js.map +1 -1
- package/v3/dist/coordination/mincut/strange-loop.d.ts.map +1 -1
- package/v3/dist/coordination/mincut/strange-loop.js +10 -2
- package/v3/dist/coordination/mincut/strange-loop.js.map +1 -1
- package/v3/dist/coordination/mincut/time-crystal.d.ts.map +1 -1
- package/v3/dist/coordination/mincut/time-crystal.js +2 -1
- package/v3/dist/coordination/mincut/time-crystal.js.map +1 -1
- package/v3/dist/coordination/mixins/consensus-enabled-domain.d.ts +19 -3
- package/v3/dist/coordination/mixins/consensus-enabled-domain.d.ts.map +1 -1
- package/v3/dist/coordination/mixins/consensus-enabled-domain.js +6 -2
- package/v3/dist/coordination/mixins/consensus-enabled-domain.js.map +1 -1
- package/v3/dist/coordination/plugin.d.ts +1 -1
- package/v3/dist/coordination/plugin.d.ts.map +1 -1
- package/v3/dist/coordination/plugin.js +1 -1
- package/v3/dist/coordination/plugin.js.map +1 -1
- package/v3/dist/coordination/protocol-executor.d.ts.map +1 -1
- package/v3/dist/coordination/protocol-executor.js +4 -3
- package/v3/dist/coordination/protocol-executor.js.map +1 -1
- package/v3/dist/coordination/protocols/code-intelligence-index.d.ts +1 -1
- package/v3/dist/coordination/protocols/code-intelligence-index.d.ts.map +1 -1
- package/v3/dist/coordination/protocols/code-intelligence-index.js +22 -10
- package/v3/dist/coordination/protocols/code-intelligence-index.js.map +1 -1
- package/v3/dist/coordination/protocols/defect-investigation.d.ts +2 -2
- package/v3/dist/coordination/protocols/defect-investigation.d.ts.map +1 -1
- package/v3/dist/coordination/protocols/defect-investigation.js +16 -7
- package/v3/dist/coordination/protocols/defect-investigation.js.map +1 -1
- package/v3/dist/coordination/protocols/learning-consolidation.d.ts +1 -1
- package/v3/dist/coordination/protocols/learning-consolidation.d.ts.map +1 -1
- package/v3/dist/coordination/protocols/learning-consolidation.js +6 -5
- package/v3/dist/coordination/protocols/learning-consolidation.js.map +1 -1
- package/v3/dist/coordination/protocols/morning-sync.d.ts.map +1 -1
- package/v3/dist/coordination/protocols/morning-sync.js +2 -1
- package/v3/dist/coordination/protocols/morning-sync.js.map +1 -1
- package/v3/dist/coordination/protocols/quality-gate.d.ts.map +1 -1
- package/v3/dist/coordination/protocols/quality-gate.js +6 -5
- package/v3/dist/coordination/protocols/quality-gate.js.map +1 -1
- package/v3/dist/coordination/protocols/security-audit.d.ts +1 -1
- package/v3/dist/coordination/protocols/security-audit.d.ts.map +1 -1
- package/v3/dist/coordination/protocols/security-audit.js +35 -13
- package/v3/dist/coordination/protocols/security-audit.js.map +1 -1
- package/v3/dist/coordination/queen-coordinator.d.ts +26 -257
- package/v3/dist/coordination/queen-coordinator.d.ts.map +1 -1
- package/v3/dist/coordination/queen-coordinator.js +282 -1175
- package/v3/dist/coordination/queen-coordinator.js.map +1 -1
- package/v3/dist/coordination/queen-event-handlers.d.ts +61 -0
- package/v3/dist/coordination/queen-event-handlers.d.ts.map +1 -0
- package/v3/dist/coordination/queen-event-handlers.js +311 -0
- package/v3/dist/coordination/queen-event-handlers.js.map +1 -0
- package/v3/dist/coordination/queen-lifecycle.d.ts +61 -0
- package/v3/dist/coordination/queen-lifecycle.d.ts.map +1 -0
- package/v3/dist/coordination/queen-lifecycle.js +162 -0
- package/v3/dist/coordination/queen-lifecycle.js.map +1 -0
- package/v3/dist/coordination/queen-task-management.d.ts +84 -0
- package/v3/dist/coordination/queen-task-management.d.ts.map +1 -0
- package/v3/dist/coordination/queen-task-management.js +333 -0
- package/v3/dist/coordination/queen-task-management.js.map +1 -0
- package/v3/dist/coordination/queen-types.d.ts +175 -0
- package/v3/dist/coordination/queen-types.d.ts.map +1 -0
- package/v3/dist/coordination/queen-types.js +80 -0
- package/v3/dist/coordination/queen-types.js.map +1 -0
- package/v3/dist/coordination/queen-work-stealing.d.ts +33 -0
- package/v3/dist/coordination/queen-work-stealing.d.ts.map +1 -0
- package/v3/dist/coordination/queen-work-stealing.js +78 -0
- package/v3/dist/coordination/queen-work-stealing.js.map +1 -0
- package/v3/dist/coordination/result-saver.d.ts.map +1 -1
- package/v3/dist/coordination/result-saver.js +2 -1
- package/v3/dist/coordination/result-saver.js.map +1 -1
- package/v3/dist/coordination/task-executor.d.ts +45 -2
- package/v3/dist/coordination/task-executor.d.ts.map +1 -1
- package/v3/dist/coordination/task-executor.js +643 -570
- package/v3/dist/coordination/task-executor.js.map +1 -1
- package/v3/dist/coordination/workflow-builtin.d.ts +17 -0
- package/v3/dist/coordination/workflow-builtin.d.ts.map +1 -0
- package/v3/dist/coordination/workflow-builtin.js +648 -0
- package/v3/dist/coordination/workflow-builtin.js.map +1 -0
- package/v3/dist/coordination/workflow-orchestrator.d.ts +13 -300
- package/v3/dist/coordination/workflow-orchestrator.d.ts.map +1 -1
- package/v3/dist/coordination/workflow-orchestrator.js +142 -1009
- package/v3/dist/coordination/workflow-orchestrator.js.map +1 -1
- package/v3/dist/coordination/workflow-types.d.ts +250 -0
- package/v3/dist/coordination/workflow-types.d.ts.map +1 -0
- package/v3/dist/coordination/workflow-types.js +27 -0
- package/v3/dist/coordination/workflow-types.js.map +1 -0
- package/v3/dist/domains/base-domain-coordinator.d.ts +119 -0
- package/v3/dist/domains/base-domain-coordinator.d.ts.map +1 -0
- package/v3/dist/domains/base-domain-coordinator.js +200 -0
- package/v3/dist/domains/base-domain-coordinator.js.map +1 -0
- package/v3/dist/domains/chaos-resilience/coordinator.d.ts +12 -70
- package/v3/dist/domains/chaos-resilience/coordinator.d.ts.map +1 -1
- package/v3/dist/domains/chaos-resilience/coordinator.js +25 -181
- package/v3/dist/domains/chaos-resilience/coordinator.js.map +1 -1
- package/v3/dist/domains/chaos-resilience/plugin.d.ts.map +1 -1
- package/v3/dist/domains/chaos-resilience/plugin.js +2 -1
- package/v3/dist/domains/chaos-resilience/plugin.js.map +1 -1
- package/v3/dist/domains/chaos-resilience/services/chaos-engineer.d.ts.map +1 -1
- package/v3/dist/domains/chaos-resilience/services/chaos-engineer.js +15 -13
- package/v3/dist/domains/chaos-resilience/services/chaos-engineer.js.map +1 -1
- package/v3/dist/domains/chaos-resilience/services/load-tester.d.ts.map +1 -1
- package/v3/dist/domains/chaos-resilience/services/load-tester.js +8 -7
- package/v3/dist/domains/chaos-resilience/services/load-tester.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 +7 -5
- package/v3/dist/domains/chaos-resilience/services/performance-profiler.js.map +1 -1
- package/v3/dist/domains/code-intelligence/coordinator-consensus.d.ts +33 -0
- package/v3/dist/domains/code-intelligence/coordinator-consensus.d.ts.map +1 -0
- package/v3/dist/domains/code-intelligence/coordinator-consensus.js +81 -0
- package/v3/dist/domains/code-intelligence/coordinator-consensus.js.map +1 -0
- package/v3/dist/domains/code-intelligence/coordinator-gnn.d.ts +44 -0
- package/v3/dist/domains/code-intelligence/coordinator-gnn.d.ts.map +1 -0
- package/v3/dist/domains/code-intelligence/coordinator-gnn.js +183 -0
- package/v3/dist/domains/code-intelligence/coordinator-gnn.js.map +1 -0
- package/v3/dist/domains/code-intelligence/coordinator-hypergraph.d.ts +40 -0
- package/v3/dist/domains/code-intelligence/coordinator-hypergraph.d.ts.map +1 -0
- package/v3/dist/domains/code-intelligence/coordinator-hypergraph.js +191 -0
- package/v3/dist/domains/code-intelligence/coordinator-hypergraph.js.map +1 -0
- package/v3/dist/domains/code-intelligence/coordinator.d.ts +17 -93
- package/v3/dist/domains/code-intelligence/coordinator.d.ts.map +1 -1
- package/v3/dist/domains/code-intelligence/coordinator.js +46 -565
- package/v3/dist/domains/code-intelligence/coordinator.js.map +1 -1
- package/v3/dist/domains/code-intelligence/index.d.ts.map +1 -1
- package/v3/dist/domains/code-intelligence/index.js +10 -0
- package/v3/dist/domains/code-intelligence/index.js.map +1 -1
- package/v3/dist/domains/code-intelligence/plugin.d.ts.map +1 -1
- package/v3/dist/domains/code-intelligence/plugin.js +2 -1
- package/v3/dist/domains/code-intelligence/plugin.js.map +1 -1
- package/v3/dist/domains/code-intelligence/services/c4-model/index.d.ts +3 -3
- package/v3/dist/domains/code-intelligence/services/c4-model/index.d.ts.map +1 -1
- package/v3/dist/domains/code-intelligence/services/c4-model/index.js +2 -2
- package/v3/dist/domains/code-intelligence/services/c4-model/index.js.map +1 -1
- package/v3/dist/domains/code-intelligence/services/c4-model/types.d.ts +1 -1
- package/v3/dist/domains/code-intelligence/services/c4-model/types.d.ts.map +1 -1
- package/v3/dist/domains/code-intelligence/services/impact-analyzer.d.ts.map +1 -1
- package/v3/dist/domains/code-intelligence/services/impact-analyzer.js +3 -2
- package/v3/dist/domains/code-intelligence/services/impact-analyzer.js.map +1 -1
- package/v3/dist/domains/code-intelligence/services/knowledge-graph.d.ts.map +1 -1
- package/v3/dist/domains/code-intelligence/services/knowledge-graph.js +8 -6
- package/v3/dist/domains/code-intelligence/services/knowledge-graph.js.map +1 -1
- package/v3/dist/domains/code-intelligence/services/metric-collector/loc-counter.d.ts.map +1 -1
- package/v3/dist/domains/code-intelligence/services/metric-collector/loc-counter.js +3 -2
- package/v3/dist/domains/code-intelligence/services/metric-collector/loc-counter.js.map +1 -1
- package/v3/dist/domains/code-intelligence/services/metric-collector/test-counter.d.ts.map +1 -1
- package/v3/dist/domains/code-intelligence/services/metric-collector/test-counter.js +3 -2
- package/v3/dist/domains/code-intelligence/services/metric-collector/test-counter.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 +8 -6
- package/v3/dist/domains/code-intelligence/services/product-factors-bridge.js.map +1 -1
- package/v3/dist/domains/code-intelligence/services/semantic-analyzer.d.ts.map +1 -1
- package/v3/dist/domains/code-intelligence/services/semantic-analyzer.js +5 -4
- package/v3/dist/domains/code-intelligence/services/semantic-analyzer.js.map +1 -1
- package/v3/dist/domains/contract-testing/coordinator.d.ts +13 -89
- package/v3/dist/domains/contract-testing/coordinator.d.ts.map +1 -1
- package/v3/dist/domains/contract-testing/coordinator.js +43 -215
- package/v3/dist/domains/contract-testing/coordinator.js.map +1 -1
- package/v3/dist/domains/contract-testing/plugin.d.ts.map +1 -1
- package/v3/dist/domains/contract-testing/plugin.js +5 -4
- package/v3/dist/domains/contract-testing/plugin.js.map +1 -1
- package/v3/dist/domains/contract-testing/services/api-compatibility.d.ts.map +1 -1
- package/v3/dist/domains/contract-testing/services/api-compatibility.js +7 -5
- package/v3/dist/domains/contract-testing/services/api-compatibility.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 +10 -8
- package/v3/dist/domains/contract-testing/services/contract-validator.js.map +1 -1
- package/v3/dist/domains/contract-testing/services/schema-validator.d.ts.map +1 -1
- package/v3/dist/domains/contract-testing/services/schema-validator.js +10 -8
- package/v3/dist/domains/contract-testing/services/schema-validator.js.map +1 -1
- package/v3/dist/domains/coverage-analysis/coordinator.d.ts +8 -59
- package/v3/dist/domains/coverage-analysis/coordinator.d.ts.map +1 -1
- package/v3/dist/domains/coverage-analysis/coordinator.js +30 -138
- package/v3/dist/domains/coverage-analysis/coordinator.js.map +1 -1
- package/v3/dist/domains/coverage-analysis/index.js +7 -0
- package/v3/dist/domains/coverage-analysis/index.js.map +1 -1
- package/v3/dist/domains/coverage-analysis/services/coverage-analyzer.d.ts.map +1 -1
- package/v3/dist/domains/coverage-analysis/services/coverage-analyzer.js +5 -3
- package/v3/dist/domains/coverage-analysis/services/coverage-analyzer.js.map +1 -1
- package/v3/dist/domains/coverage-analysis/services/coverage-parser.d.ts.map +1 -1
- package/v3/dist/domains/coverage-analysis/services/coverage-parser.js +2 -1
- package/v3/dist/domains/coverage-analysis/services/coverage-parser.js.map +1 -1
- package/v3/dist/domains/coverage-analysis/services/gap-detector.d.ts.map +1 -1
- package/v3/dist/domains/coverage-analysis/services/gap-detector.js +6 -4
- package/v3/dist/domains/coverage-analysis/services/gap-detector.js.map +1 -1
- package/v3/dist/domains/coverage-analysis/services/ghost-coverage-analyzer.d.ts.map +1 -1
- package/v3/dist/domains/coverage-analysis/services/ghost-coverage-analyzer.js +5 -4
- package/v3/dist/domains/coverage-analysis/services/ghost-coverage-analyzer.js.map +1 -1
- package/v3/dist/domains/coverage-analysis/services/risk-scorer.d.ts.map +1 -1
- package/v3/dist/domains/coverage-analysis/services/risk-scorer.js +3 -2
- package/v3/dist/domains/coverage-analysis/services/risk-scorer.js.map +1 -1
- package/v3/dist/domains/coverage-analysis/services/sublinear-analyzer.d.ts.map +1 -1
- package/v3/dist/domains/coverage-analysis/services/sublinear-analyzer.js +4 -3
- package/v3/dist/domains/coverage-analysis/services/sublinear-analyzer.js.map +1 -1
- package/v3/dist/domains/defect-intelligence/coordinator.d.ts +10 -58
- package/v3/dist/domains/defect-intelligence/coordinator.d.ts.map +1 -1
- package/v3/dist/domains/defect-intelligence/coordinator.js +50 -171
- package/v3/dist/domains/defect-intelligence/coordinator.js.map +1 -1
- package/v3/dist/domains/defect-intelligence/plugin.d.ts.map +1 -1
- package/v3/dist/domains/defect-intelligence/plugin.js +2 -1
- package/v3/dist/domains/defect-intelligence/plugin.js.map +1 -1
- package/v3/dist/domains/defect-intelligence/services/causal-root-cause-analyzer.d.ts.map +1 -1
- package/v3/dist/domains/defect-intelligence/services/causal-root-cause-analyzer.js +4 -3
- package/v3/dist/domains/defect-intelligence/services/causal-root-cause-analyzer.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 +6 -4
- package/v3/dist/domains/defect-intelligence/services/defect-predictor.js.map +1 -1
- package/v3/dist/domains/defect-intelligence/services/pattern-learner.d.ts.map +1 -1
- package/v3/dist/domains/defect-intelligence/services/pattern-learner.js +4 -3
- package/v3/dist/domains/defect-intelligence/services/pattern-learner.js.map +1 -1
- 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 +6 -4
- package/v3/dist/domains/defect-intelligence/services/root-cause-analyzer.js.map +1 -1
- package/v3/dist/domains/domain-interface.d.ts +6 -219
- package/v3/dist/domains/domain-interface.d.ts.map +1 -1
- package/v3/dist/domains/domain-interface.js +6 -312
- package/v3/dist/domains/domain-interface.js.map +1 -1
- package/v3/dist/domains/enterprise-integration/coordinator.d.ts +11 -37
- package/v3/dist/domains/enterprise-integration/coordinator.d.ts.map +1 -1
- package/v3/dist/domains/enterprise-integration/coordinator.js +39 -148
- package/v3/dist/domains/enterprise-integration/coordinator.js.map +1 -1
- package/v3/dist/domains/enterprise-integration/plugin.d.ts.map +1 -1
- package/v3/dist/domains/enterprise-integration/plugin.js +2 -1
- package/v3/dist/domains/enterprise-integration/plugin.js.map +1 -1
- package/v3/dist/domains/enterprise-integration/services/esb-middleware-service.d.ts.map +1 -1
- package/v3/dist/domains/enterprise-integration/services/esb-middleware-service.js +7 -5
- package/v3/dist/domains/enterprise-integration/services/esb-middleware-service.js.map +1 -1
- package/v3/dist/domains/enterprise-integration/services/message-broker-service.d.ts.map +1 -1
- package/v3/dist/domains/enterprise-integration/services/message-broker-service.js +11 -9
- package/v3/dist/domains/enterprise-integration/services/message-broker-service.js.map +1 -1
- package/v3/dist/domains/enterprise-integration/services/odata-service.d.ts.map +1 -1
- package/v3/dist/domains/enterprise-integration/services/odata-service.js +4 -3
- package/v3/dist/domains/enterprise-integration/services/odata-service.js.map +1 -1
- package/v3/dist/domains/enterprise-integration/services/sap-integration-service.d.ts.map +1 -1
- package/v3/dist/domains/enterprise-integration/services/sap-integration-service.js +5 -3
- package/v3/dist/domains/enterprise-integration/services/sap-integration-service.js.map +1 -1
- package/v3/dist/domains/enterprise-integration/services/soap-wsdl-service.d.ts.map +1 -1
- package/v3/dist/domains/enterprise-integration/services/soap-wsdl-service.js +4 -3
- package/v3/dist/domains/enterprise-integration/services/soap-wsdl-service.js.map +1 -1
- package/v3/dist/domains/enterprise-integration/services/sod-analysis-service.d.ts.map +1 -1
- package/v3/dist/domains/enterprise-integration/services/sod-analysis-service.js +3 -2
- package/v3/dist/domains/enterprise-integration/services/sod-analysis-service.js.map +1 -1
- package/v3/dist/domains/learning-optimization/coordinator-consensus.d.ts +37 -0
- package/v3/dist/domains/learning-optimization/coordinator-consensus.d.ts.map +1 -0
- package/v3/dist/domains/learning-optimization/coordinator-consensus.js +82 -0
- package/v3/dist/domains/learning-optimization/coordinator-consensus.js.map +1 -0
- package/v3/dist/domains/learning-optimization/coordinator-dream.d.ts +32 -0
- package/v3/dist/domains/learning-optimization/coordinator-dream.d.ts.map +1 -0
- package/v3/dist/domains/learning-optimization/coordinator-dream.js +43 -0
- package/v3/dist/domains/learning-optimization/coordinator-dream.js.map +1 -0
- package/v3/dist/domains/learning-optimization/coordinator-helpers.d.ts +56 -0
- package/v3/dist/domains/learning-optimization/coordinator-helpers.d.ts.map +1 -0
- package/v3/dist/domains/learning-optimization/coordinator-helpers.js +142 -0
- package/v3/dist/domains/learning-optimization/coordinator-helpers.js.map +1 -0
- package/v3/dist/domains/learning-optimization/coordinator-sona-methods.d.ts +64 -0
- package/v3/dist/domains/learning-optimization/coordinator-sona-methods.d.ts.map +1 -0
- package/v3/dist/domains/learning-optimization/coordinator-sona-methods.js +73 -0
- package/v3/dist/domains/learning-optimization/coordinator-sona-methods.js.map +1 -0
- package/v3/dist/domains/learning-optimization/coordinator.d.ts +17 -82
- package/v3/dist/domains/learning-optimization/coordinator.d.ts.map +1 -1
- package/v3/dist/domains/learning-optimization/coordinator.js +36 -320
- package/v3/dist/domains/learning-optimization/coordinator.js.map +1 -1
- package/v3/dist/domains/learning-optimization/plugin.d.ts.map +1 -1
- package/v3/dist/domains/learning-optimization/plugin.js +2 -1
- package/v3/dist/domains/learning-optimization/plugin.js.map +1 -1
- package/v3/dist/domains/learning-optimization/services/learning-coordinator.d.ts.map +1 -1
- package/v3/dist/domains/learning-optimization/services/learning-coordinator.js +11 -10
- package/v3/dist/domains/learning-optimization/services/learning-coordinator.js.map +1 -1
- package/v3/dist/domains/learning-optimization/services/metrics-optimizer.d.ts.map +1 -1
- package/v3/dist/domains/learning-optimization/services/metrics-optimizer.js +8 -7
- package/v3/dist/domains/learning-optimization/services/metrics-optimizer.js.map +1 -1
- package/v3/dist/domains/learning-optimization/services/production-intel.d.ts.map +1 -1
- package/v3/dist/domains/learning-optimization/services/production-intel.js +11 -10
- package/v3/dist/domains/learning-optimization/services/production-intel.js.map +1 -1
- package/v3/dist/domains/learning-optimization/services/transfer-specialist.d.ts.map +1 -1
- package/v3/dist/domains/learning-optimization/services/transfer-specialist.js +8 -7
- package/v3/dist/domains/learning-optimization/services/transfer-specialist.js.map +1 -1
- package/v3/dist/domains/quality-assessment/coordinator-claim-verifier.d.ts +41 -0
- package/v3/dist/domains/quality-assessment/coordinator-claim-verifier.d.ts.map +1 -0
- package/v3/dist/domains/quality-assessment/coordinator-claim-verifier.js +157 -0
- package/v3/dist/domains/quality-assessment/coordinator-claim-verifier.js.map +1 -0
- package/v3/dist/domains/quality-assessment/coordinator-gate-evaluation.d.ts +26 -0
- package/v3/dist/domains/quality-assessment/coordinator-gate-evaluation.d.ts.map +1 -0
- package/v3/dist/domains/quality-assessment/coordinator-gate-evaluation.js +135 -0
- package/v3/dist/domains/quality-assessment/coordinator-gate-evaluation.js.map +1 -0
- package/v3/dist/domains/quality-assessment/coordinator-reports.d.ts +90 -0
- package/v3/dist/domains/quality-assessment/coordinator-reports.d.ts.map +1 -0
- package/v3/dist/domains/quality-assessment/coordinator-reports.js +265 -0
- package/v3/dist/domains/quality-assessment/coordinator-reports.js.map +1 -0
- package/v3/dist/domains/quality-assessment/coordinator-rl-integration.d.ts +92 -0
- package/v3/dist/domains/quality-assessment/coordinator-rl-integration.d.ts.map +1 -0
- package/v3/dist/domains/quality-assessment/coordinator-rl-integration.js +321 -0
- package/v3/dist/domains/quality-assessment/coordinator-rl-integration.js.map +1 -0
- package/v3/dist/domains/quality-assessment/coordinator.d.ts +18 -127
- package/v3/dist/domains/quality-assessment/coordinator.d.ts.map +1 -1
- package/v3/dist/domains/quality-assessment/coordinator.js +58 -1022
- package/v3/dist/domains/quality-assessment/coordinator.js.map +1 -1
- package/v3/dist/domains/quality-assessment/index.d.ts.map +1 -1
- package/v3/dist/domains/quality-assessment/index.js +10 -0
- package/v3/dist/domains/quality-assessment/index.js.map +1 -1
- package/v3/dist/domains/quality-assessment/plugin.d.ts.map +1 -1
- package/v3/dist/domains/quality-assessment/plugin.js +2 -1
- package/v3/dist/domains/quality-assessment/plugin.js.map +1 -1
- package/v3/dist/domains/quality-assessment/services/coherence-gate.d.ts.map +1 -1
- package/v3/dist/domains/quality-assessment/services/coherence-gate.js +2 -1
- package/v3/dist/domains/quality-assessment/services/coherence-gate.js.map +1 -1
- package/v3/dist/domains/quality-assessment/services/deployment-advisor.d.ts.map +1 -1
- package/v3/dist/domains/quality-assessment/services/deployment-advisor.js +5 -3
- package/v3/dist/domains/quality-assessment/services/deployment-advisor.js.map +1 -1
- package/v3/dist/domains/quality-assessment/services/quality-analyzer.d.ts.map +1 -1
- package/v3/dist/domains/quality-assessment/services/quality-analyzer.js +6 -4
- package/v3/dist/domains/quality-assessment/services/quality-analyzer.js.map +1 -1
- package/v3/dist/domains/quality-assessment/services/quality-gate.d.ts.map +1 -1
- package/v3/dist/domains/quality-assessment/services/quality-gate.js +3 -2
- package/v3/dist/domains/quality-assessment/services/quality-gate.js.map +1 -1
- package/v3/dist/domains/requirements-validation/coordinator.d.ts +17 -61
- package/v3/dist/domains/requirements-validation/coordinator.d.ts.map +1 -1
- package/v3/dist/domains/requirements-validation/coordinator.js +25 -175
- package/v3/dist/domains/requirements-validation/coordinator.js.map +1 -1
- package/v3/dist/domains/requirements-validation/plugin.d.ts.map +1 -1
- package/v3/dist/domains/requirements-validation/plugin.js +2 -1
- package/v3/dist/domains/requirements-validation/plugin.js.map +1 -1
- package/v3/dist/domains/requirements-validation/qcsd-ideation-plugin.d.ts.map +1 -1
- package/v3/dist/domains/requirements-validation/qcsd-ideation-plugin.js +12 -11
- package/v3/dist/domains/requirements-validation/qcsd-ideation-plugin.js.map +1 -1
- package/v3/dist/domains/requirements-validation/qcsd-refinement-plugin.d.ts.map +1 -1
- package/v3/dist/domains/requirements-validation/qcsd-refinement-plugin.js +11 -10
- package/v3/dist/domains/requirements-validation/qcsd-refinement-plugin.js.map +1 -1
- package/v3/dist/domains/requirements-validation/services/bdd-scenario-writer.d.ts.map +1 -1
- package/v3/dist/domains/requirements-validation/services/bdd-scenario-writer.js +4 -3
- package/v3/dist/domains/requirements-validation/services/bdd-scenario-writer.js.map +1 -1
- 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.map +1 -1
- package/v3/dist/domains/requirements-validation/services/requirements-validator.js +7 -5
- package/v3/dist/domains/requirements-validation/services/requirements-validator.js.map +1 -1
- package/v3/dist/domains/requirements-validation/services/testability-scorer.d.ts.map +1 -1
- package/v3/dist/domains/requirements-validation/services/testability-scorer.js +4 -3
- package/v3/dist/domains/requirements-validation/services/testability-scorer.js.map +1 -1
- package/v3/dist/domains/security-compliance/coordinator.d.ts +12 -58
- package/v3/dist/domains/security-compliance/coordinator.d.ts.map +1 -1
- package/v3/dist/domains/security-compliance/coordinator.js +22 -164
- package/v3/dist/domains/security-compliance/coordinator.js.map +1 -1
- package/v3/dist/domains/security-compliance/index.d.ts.map +1 -1
- package/v3/dist/domains/security-compliance/index.js +14 -0
- package/v3/dist/domains/security-compliance/index.js.map +1 -1
- package/v3/dist/domains/security-compliance/plugin.d.ts.map +1 -1
- package/v3/dist/domains/security-compliance/plugin.js +2 -1
- package/v3/dist/domains/security-compliance/plugin.js.map +1 -1
- package/v3/dist/domains/security-compliance/services/compliance-validator.d.ts.map +1 -1
- package/v3/dist/domains/security-compliance/services/compliance-validator.js +6 -5
- package/v3/dist/domains/security-compliance/services/compliance-validator.js.map +1 -1
- package/v3/dist/domains/security-compliance/services/scanners/dast-helpers.d.ts.map +1 -1
- package/v3/dist/domains/security-compliance/services/scanners/dast-helpers.js +2 -1
- package/v3/dist/domains/security-compliance/services/scanners/dast-helpers.js.map +1 -1
- package/v3/dist/domains/security-compliance/services/scanners/dast-scanner.d.ts +1 -1
- package/v3/dist/domains/security-compliance/services/scanners/dast-scanner.d.ts.map +1 -1
- package/v3/dist/domains/security-compliance/services/scanners/dast-scanner.js +4 -3
- package/v3/dist/domains/security-compliance/services/scanners/dast-scanner.js.map +1 -1
- package/v3/dist/domains/security-compliance/services/scanners/dependency-scanner.d.ts +1 -1
- package/v3/dist/domains/security-compliance/services/scanners/dependency-scanner.d.ts.map +1 -1
- package/v3/dist/domains/security-compliance/services/scanners/dependency-scanner.js +7 -5
- package/v3/dist/domains/security-compliance/services/scanners/dependency-scanner.js.map +1 -1
- package/v3/dist/domains/security-compliance/services/scanners/sast-scanner.d.ts +2 -2
- package/v3/dist/domains/security-compliance/services/scanners/sast-scanner.d.ts.map +1 -1
- package/v3/dist/domains/security-compliance/services/scanners/sast-scanner.js +6 -4
- package/v3/dist/domains/security-compliance/services/scanners/sast-scanner.js.map +1 -1
- package/v3/dist/domains/security-compliance/services/scanners/scanner-orchestrator.d.ts +2 -2
- package/v3/dist/domains/security-compliance/services/scanners/scanner-orchestrator.d.ts.map +1 -1
- package/v3/dist/domains/security-compliance/services/scanners/scanner-orchestrator.js +3 -2
- package/v3/dist/domains/security-compliance/services/scanners/scanner-orchestrator.js.map +1 -1
- package/v3/dist/domains/security-compliance/services/scanners/scanner-types.d.ts +2 -2
- package/v3/dist/domains/security-compliance/services/scanners/scanner-types.d.ts.map +1 -1
- package/v3/dist/domains/security-compliance/services/security-auditor-dast.d.ts +11 -0
- package/v3/dist/domains/security-compliance/services/security-auditor-dast.d.ts.map +1 -0
- package/v3/dist/domains/security-compliance/services/security-auditor-dast.js +284 -0
- package/v3/dist/domains/security-compliance/services/security-auditor-dast.js.map +1 -0
- package/v3/dist/domains/security-compliance/services/security-auditor-reports.d.ts +44 -0
- package/v3/dist/domains/security-compliance/services/security-auditor-reports.d.ts.map +1 -0
- package/v3/dist/domains/security-compliance/services/security-auditor-reports.js +193 -0
- package/v3/dist/domains/security-compliance/services/security-auditor-reports.js.map +1 -0
- package/v3/dist/domains/security-compliance/services/security-auditor-sast.d.ts +27 -0
- package/v3/dist/domains/security-compliance/services/security-auditor-sast.d.ts.map +1 -0
- package/v3/dist/domains/security-compliance/services/security-auditor-sast.js +279 -0
- package/v3/dist/domains/security-compliance/services/security-auditor-sast.js.map +1 -0
- package/v3/dist/domains/security-compliance/services/security-auditor-secrets.d.ts +34 -0
- package/v3/dist/domains/security-compliance/services/security-auditor-secrets.d.ts.map +1 -0
- package/v3/dist/domains/security-compliance/services/security-auditor-secrets.js +236 -0
- package/v3/dist/domains/security-compliance/services/security-auditor-secrets.js.map +1 -0
- package/v3/dist/domains/security-compliance/services/security-auditor-types.d.ts +93 -0
- package/v3/dist/domains/security-compliance/services/security-auditor-types.d.ts.map +1 -0
- package/v3/dist/domains/security-compliance/services/security-auditor-types.js +50 -0
- package/v3/dist/domains/security-compliance/services/security-auditor-types.js.map +1 -0
- package/v3/dist/domains/security-compliance/services/security-auditor.d.ts +12 -132
- package/v3/dist/domains/security-compliance/services/security-auditor.d.ts.map +1 -1
- package/v3/dist/domains/security-compliance/services/security-auditor.js +71 -1188
- package/v3/dist/domains/security-compliance/services/security-auditor.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 +4 -2
- package/v3/dist/domains/security-compliance/services/semgrep-integration.js.map +1 -1
- package/v3/dist/domains/test-execution/coordinator.d.ts +8 -60
- package/v3/dist/domains/test-execution/coordinator.d.ts.map +1 -1
- package/v3/dist/domains/test-execution/coordinator.js +19 -132
- 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 +2 -1
- 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 +2 -2
- package/v3/dist/domains/test-execution/services/e2e/assertion-handlers.d.ts.map +1 -1
- package/v3/dist/domains/test-execution/services/e2e/browser-orchestrator.d.ts +2 -2
- package/v3/dist/domains/test-execution/services/e2e/browser-orchestrator.d.ts.map +1 -1
- package/v3/dist/domains/test-execution/services/e2e/browser-orchestrator.js +2 -1
- package/v3/dist/domains/test-execution/services/e2e/browser-orchestrator.js.map +1 -1
- package/v3/dist/domains/test-execution/services/e2e/e2e-coordinator.d.ts +2 -2
- package/v3/dist/domains/test-execution/services/e2e/e2e-coordinator.d.ts.map +1 -1
- package/v3/dist/domains/test-execution/services/e2e/e2e-coordinator.js +3 -2
- package/v3/dist/domains/test-execution/services/e2e/e2e-coordinator.js.map +1 -1
- package/v3/dist/domains/test-execution/services/e2e/result-collector.d.ts +1 -1
- package/v3/dist/domains/test-execution/services/e2e/result-collector.d.ts.map +1 -1
- package/v3/dist/domains/test-execution/services/e2e/step-executors.d.ts.map +1 -1
- package/v3/dist/domains/test-execution/services/e2e/step-executors.js +2 -1
- package/v3/dist/domains/test-execution/services/e2e/step-executors.js.map +1 -1
- package/v3/dist/domains/test-execution/services/e2e/step-retry-handler.d.ts.map +1 -1
- package/v3/dist/domains/test-execution/services/e2e/step-retry-handler.js +3 -2
- package/v3/dist/domains/test-execution/services/e2e/step-retry-handler.js.map +1 -1
- package/v3/dist/domains/test-execution/services/e2e/types.d.ts +2 -2
- package/v3/dist/domains/test-execution/services/e2e/types.d.ts.map +1 -1
- package/v3/dist/domains/test-execution/services/e2e/wait-condition-handler.d.ts +1 -1
- package/v3/dist/domains/test-execution/services/e2e/wait-condition-handler.d.ts.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 +7 -5
- 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 +8 -6
- 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 +8 -6
- package/v3/dist/domains/test-execution/services/test-executor.js.map +1 -1
- package/v3/dist/domains/test-execution/services/test-prioritizer.d.ts.map +1 -1
- package/v3/dist/domains/test-execution/services/test-prioritizer.js +2 -1
- package/v3/dist/domains/test-execution/services/test-prioritizer.js.map +1 -1
- package/v3/dist/domains/test-execution/services/user-flow-generator.d.ts +28 -0
- package/v3/dist/domains/test-execution/services/user-flow-generator.d.ts.map +1 -1
- package/v3/dist/domains/test-execution/services/user-flow-generator.js +156 -189
- package/v3/dist/domains/test-execution/services/user-flow-generator.js.map +1 -1
- package/v3/dist/domains/test-generation/coordinator.d.ts +14 -78
- package/v3/dist/domains/test-generation/coordinator.d.ts.map +1 -1
- package/v3/dist/domains/test-generation/coordinator.js +58 -202
- package/v3/dist/domains/test-generation/coordinator.js.map +1 -1
- package/v3/dist/domains/test-generation/generators/base-test-generator.d.ts +10 -0
- package/v3/dist/domains/test-generation/generators/base-test-generator.d.ts.map +1 -1
- package/v3/dist/domains/test-generation/generators/base-test-generator.js +37 -30
- package/v3/dist/domains/test-generation/generators/base-test-generator.js.map +1 -1
- package/v3/dist/domains/test-generation/index.d.ts.map +1 -1
- package/v3/dist/domains/test-generation/index.js +10 -0
- package/v3/dist/domains/test-generation/index.js.map +1 -1
- package/v3/dist/domains/test-generation/plugin.d.ts.map +1 -1
- package/v3/dist/domains/test-generation/plugin.js +2 -1
- package/v3/dist/domains/test-generation/plugin.js.map +1 -1
- package/v3/dist/domains/test-generation/services/code-transform-integration.d.ts.map +1 -1
- package/v3/dist/domains/test-generation/services/code-transform-integration.js +2 -1
- package/v3/dist/domains/test-generation/services/code-transform-integration.js.map +1 -1
- package/v3/dist/domains/test-generation/services/pattern-matcher.d.ts +10 -0
- package/v3/dist/domains/test-generation/services/pattern-matcher.d.ts.map +1 -1
- package/v3/dist/domains/test-generation/services/pattern-matcher.js +43 -41
- package/v3/dist/domains/test-generation/services/pattern-matcher.js.map +1 -1
- package/v3/dist/domains/test-generation/services/test-generator.d.ts.map +1 -1
- package/v3/dist/domains/test-generation/services/test-generator.js +47 -17
- package/v3/dist/domains/test-generation/services/test-generator.js.map +1 -1
- package/v3/dist/domains/visual-accessibility/coordinator.d.ts +17 -60
- package/v3/dist/domains/visual-accessibility/coordinator.d.ts.map +1 -1
- package/v3/dist/domains/visual-accessibility/coordinator.js +32 -183
- package/v3/dist/domains/visual-accessibility/coordinator.js.map +1 -1
- package/v3/dist/domains/visual-accessibility/plugin.d.ts.map +1 -1
- package/v3/dist/domains/visual-accessibility/plugin.js +4 -3
- package/v3/dist/domains/visual-accessibility/plugin.js.map +1 -1
- package/v3/dist/domains/visual-accessibility/services/accessibility-tester-browser.d.ts +114 -0
- package/v3/dist/domains/visual-accessibility/services/accessibility-tester-browser.d.ts.map +1 -0
- package/v3/dist/domains/visual-accessibility/services/accessibility-tester-browser.js +578 -0
- package/v3/dist/domains/visual-accessibility/services/accessibility-tester-browser.js.map +1 -0
- package/v3/dist/domains/visual-accessibility/services/accessibility-tester-heuristics.d.ts +54 -0
- package/v3/dist/domains/visual-accessibility/services/accessibility-tester-heuristics.d.ts.map +1 -0
- package/v3/dist/domains/visual-accessibility/services/accessibility-tester-heuristics.js +403 -0
- package/v3/dist/domains/visual-accessibility/services/accessibility-tester-heuristics.js.map +1 -0
- package/v3/dist/domains/visual-accessibility/services/accessibility-tester.d.ts +1 -314
- package/v3/dist/domains/visual-accessibility/services/accessibility-tester.d.ts.map +1 -1
- package/v3/dist/domains/visual-accessibility/services/accessibility-tester.js +79 -1467
- package/v3/dist/domains/visual-accessibility/services/accessibility-tester.js.map +1 -1
- package/v3/dist/domains/visual-accessibility/services/axe-core-audit.d.ts.map +1 -1
- package/v3/dist/domains/visual-accessibility/services/axe-core-audit.js +2 -1
- package/v3/dist/domains/visual-accessibility/services/axe-core-audit.js.map +1 -1
- package/v3/dist/domains/visual-accessibility/services/axe-core-integration.d.ts.map +1 -1
- package/v3/dist/domains/visual-accessibility/services/axe-core-integration.js +5 -4
- package/v3/dist/domains/visual-accessibility/services/axe-core-integration.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 +5 -4
- package/v3/dist/domains/visual-accessibility/services/browser-security-scanner.js.map +1 -1
- package/v3/dist/domains/visual-accessibility/services/browser-swarm-coordinator.d.ts.map +1 -1
- package/v3/dist/domains/visual-accessibility/services/browser-swarm-coordinator.js +8 -7
- package/v3/dist/domains/visual-accessibility/services/browser-swarm-coordinator.js.map +1 -1
- package/v3/dist/domains/visual-accessibility/services/eu-compliance.d.ts.map +1 -1
- package/v3/dist/domains/visual-accessibility/services/eu-compliance.js +2 -1
- package/v3/dist/domains/visual-accessibility/services/eu-compliance.js.map +1 -1
- package/v3/dist/domains/visual-accessibility/services/responsive-tester.d.ts.map +1 -1
- package/v3/dist/domains/visual-accessibility/services/responsive-tester.js +5 -4
- package/v3/dist/domains/visual-accessibility/services/responsive-tester.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 +7 -6
- 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 +11 -10
- package/v3/dist/domains/visual-accessibility/services/visual-regression.js.map +1 -1
- package/v3/dist/domains/visual-accessibility/services/visual-tester.d.ts.map +1 -1
- package/v3/dist/domains/visual-accessibility/services/visual-tester.js +7 -6
- package/v3/dist/domains/visual-accessibility/services/visual-tester.js.map +1 -1
- package/v3/dist/early-exit/early-exit-controller.d.ts.map +1 -1
- package/v3/dist/early-exit/early-exit-controller.js +4 -3
- package/v3/dist/early-exit/early-exit-controller.js.map +1 -1
- package/v3/dist/feedback/coverage-learner.d.ts.map +1 -1
- package/v3/dist/feedback/coverage-learner.js +7 -5
- package/v3/dist/feedback/coverage-learner.js.map +1 -1
- package/v3/dist/feedback/test-outcome-tracker.d.ts.map +1 -1
- package/v3/dist/feedback/test-outcome-tracker.js +6 -4
- package/v3/dist/feedback/test-outcome-tracker.js.map +1 -1
- package/v3/dist/governance/adversarial-defense-integration.d.ts +0 -18
- package/v3/dist/governance/adversarial-defense-integration.d.ts.map +1 -1
- package/v3/dist/governance/adversarial-defense-integration.js +2 -1
- package/v3/dist/governance/adversarial-defense-integration.js.map +1 -1
- package/v3/dist/governance/compliance-reporter.d.ts +0 -16
- package/v3/dist/governance/compliance-reporter.d.ts.map +1 -1
- package/v3/dist/governance/compliance-reporter.js +6 -8
- package/v3/dist/governance/compliance-reporter.js.map +1 -1
- package/v3/dist/governance/continue-gate-integration.d.ts.map +1 -1
- package/v3/dist/governance/continue-gate-integration.js +3 -2
- package/v3/dist/governance/continue-gate-integration.js.map +1 -1
- package/v3/dist/governance/evolution-pipeline-integration.d.ts.map +1 -1
- package/v3/dist/governance/evolution-pipeline-integration.js +3 -2
- package/v3/dist/governance/evolution-pipeline-integration.js.map +1 -1
- package/v3/dist/governance/proof-envelope-integration.d.ts.map +1 -1
- package/v3/dist/governance/proof-envelope-integration.js +4 -4
- package/v3/dist/governance/proof-envelope-integration.js.map +1 -1
- package/v3/dist/governance/shard-embeddings.d.ts.map +1 -1
- package/v3/dist/governance/shard-embeddings.js +16 -2
- package/v3/dist/governance/shard-embeddings.js.map +1 -1
- package/v3/dist/governance/shard-retriever-integration.d.ts.map +1 -1
- package/v3/dist/governance/shard-retriever-integration.js +4 -3
- package/v3/dist/governance/shard-retriever-integration.js.map +1 -1
- package/v3/dist/governance/wasm-kernel-integration.d.ts.map +1 -1
- package/v3/dist/governance/wasm-kernel-integration.js +4 -2
- package/v3/dist/governance/wasm-kernel-integration.js.map +1 -1
- package/v3/dist/hooks/reasoning-bank-pattern-store.d.ts.map +1 -1
- package/v3/dist/hooks/reasoning-bank-pattern-store.js +3 -2
- package/v3/dist/hooks/reasoning-bank-pattern-store.js.map +1 -1
- package/v3/dist/hooks/task-completed-hook.d.ts.map +1 -1
- package/v3/dist/hooks/task-completed-hook.js +3 -2
- package/v3/dist/hooks/task-completed-hook.js.map +1 -1
- package/v3/dist/init/agents-installer.d.ts.map +1 -1
- package/v3/dist/init/agents-installer.js +2 -1
- 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 +3 -2
- package/v3/dist/init/enhancements/claude-flow-adapter.js.map +1 -1
- package/v3/dist/init/fleet-integration.d.ts.map +1 -1
- package/v3/dist/init/fleet-integration.js +2 -1
- package/v3/dist/init/fleet-integration.js.map +1 -1
- package/v3/dist/init/governance-installer.d.ts.map +1 -1
- package/v3/dist/init/governance-installer.js +5 -4
- package/v3/dist/init/governance-installer.js.map +1 -1
- package/v3/dist/init/init-wizard-hooks.d.ts +26 -0
- package/v3/dist/init/init-wizard-hooks.d.ts.map +1 -0
- package/v3/dist/init/init-wizard-hooks.js +555 -0
- package/v3/dist/init/init-wizard-hooks.js.map +1 -0
- package/v3/dist/init/init-wizard-migration.d.ts +52 -0
- package/v3/dist/init/init-wizard-migration.d.ts.map +1 -0
- package/v3/dist/init/init-wizard-migration.js +349 -0
- package/v3/dist/init/init-wizard-migration.js.map +1 -0
- package/v3/dist/init/init-wizard-steps.d.ts +68 -0
- package/v3/dist/init/init-wizard-steps.d.ts.map +1 -0
- package/v3/dist/init/init-wizard-steps.js +457 -0
- package/v3/dist/init/init-wizard-steps.js.map +1 -0
- package/v3/dist/init/init-wizard.d.ts +8 -130
- package/v3/dist/init/init-wizard.d.ts.map +1 -1
- package/v3/dist/init/init-wizard.js +108 -1528
- package/v3/dist/init/init-wizard.js.map +1 -1
- package/v3/dist/init/migration/config-migrator.d.ts.map +1 -1
- package/v3/dist/init/migration/config-migrator.js +2 -1
- package/v3/dist/init/migration/config-migrator.js.map +1 -1
- package/v3/dist/init/migration/data-migrator.d.ts.map +1 -1
- package/v3/dist/init/migration/data-migrator.js +10 -9
- package/v3/dist/init/migration/data-migrator.js.map +1 -1
- package/v3/dist/init/migration/detector.d.ts.map +1 -1
- package/v3/dist/init/migration/detector.js +2 -1
- package/v3/dist/init/migration/detector.js.map +1 -1
- package/v3/dist/init/n8n-installer.d.ts.map +1 -1
- package/v3/dist/init/n8n-installer.js +4 -3
- package/v3/dist/init/n8n-installer.js.map +1 -1
- package/v3/dist/init/orchestrator.d.ts.map +1 -1
- package/v3/dist/init/orchestrator.js +2 -1
- package/v3/dist/init/orchestrator.js.map +1 -1
- package/v3/dist/init/phases/01-detection.d.ts.map +1 -1
- package/v3/dist/init/phases/01-detection.js +2 -1
- package/v3/dist/init/phases/01-detection.js.map +1 -1
- package/v3/dist/init/phases/06-code-intelligence.d.ts.map +1 -1
- package/v3/dist/init/phases/06-code-intelligence.js +2 -1
- package/v3/dist/init/phases/06-code-intelligence.js.map +1 -1
- package/v3/dist/init/phases/07-hooks.d.ts.map +1 -1
- package/v3/dist/init/phases/07-hooks.js +2 -1
- package/v3/dist/init/phases/07-hooks.js.map +1 -1
- package/v3/dist/init/phases/08-mcp.d.ts.map +1 -1
- package/v3/dist/init/phases/08-mcp.js +3 -2
- package/v3/dist/init/phases/08-mcp.js.map +1 -1
- package/v3/dist/init/phases/phase-interface.d.ts.map +1 -1
- package/v3/dist/init/phases/phase-interface.js +3 -2
- package/v3/dist/init/phases/phase-interface.js.map +1 -1
- package/v3/dist/init/project-analyzer.d.ts.map +1 -1
- package/v3/dist/init/project-analyzer.js +3 -2
- 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 +2 -1
- package/v3/dist/init/skills-installer.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 +4 -1
- package/v3/dist/integrations/agent-booster-wasm/index.js.map +1 -1
- package/v3/dist/integrations/agentic-flow/metrics/pattern-updater.d.ts.map +1 -1
- package/v3/dist/integrations/agentic-flow/metrics/pattern-updater.js +6 -4
- package/v3/dist/integrations/agentic-flow/metrics/pattern-updater.js.map +1 -1
- package/v3/dist/integrations/agentic-flow/onnx-embeddings/adapter.d.ts.map +1 -1
- package/v3/dist/integrations/agentic-flow/onnx-embeddings/adapter.js +10 -0
- package/v3/dist/integrations/agentic-flow/onnx-embeddings/adapter.js.map +1 -1
- package/v3/dist/integrations/agentic-flow/pattern-loader.d.ts.map +1 -1
- package/v3/dist/integrations/agentic-flow/pattern-loader.js +4 -2
- package/v3/dist/integrations/agentic-flow/pattern-loader.js.map +1 -1
- package/v3/dist/integrations/agentic-flow/reasoning-bank/experience-replay.d.ts +4 -2
- 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 +70 -43
- package/v3/dist/integrations/agentic-flow/reasoning-bank/experience-replay.js.map +1 -1
- package/v3/dist/integrations/agentic-flow/reasoning-bank/index.d.ts.map +1 -1
- package/v3/dist/integrations/agentic-flow/reasoning-bank/index.js +2 -1
- package/v3/dist/integrations/agentic-flow/reasoning-bank/index.js.map +1 -1
- package/v3/dist/integrations/agentic-flow/reasoning-bank/pattern-evolution.d.ts.map +1 -1
- package/v3/dist/integrations/agentic-flow/reasoning-bank/pattern-evolution.js +6 -5
- package/v3/dist/integrations/agentic-flow/reasoning-bank/pattern-evolution.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 +7 -6
- 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 +33 -31
- 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 +42 -22
- package/v3/dist/integrations/browser/agent-browser/command-executor.js.map +1 -1
- package/v3/dist/integrations/browser/agent-browser/snapshot-parser.d.ts.map +1 -1
- package/v3/dist/integrations/browser/agent-browser/snapshot-parser.js +2 -1
- package/v3/dist/integrations/browser/agent-browser/snapshot-parser.js.map +1 -1
- package/v3/dist/integrations/browser/web-content-fetcher.d.ts.map +1 -1
- package/v3/dist/integrations/browser/web-content-fetcher.js +4 -2
- package/v3/dist/integrations/browser/web-content-fetcher.js.map +1 -1
- package/v3/dist/integrations/coherence/coherence-service.d.ts.map +1 -1
- package/v3/dist/integrations/coherence/coherence-service.js +4 -3
- package/v3/dist/integrations/coherence/coherence-service.js.map +1 -1
- package/v3/dist/integrations/coherence/engines/spectral-adapter.d.ts.map +1 -1
- package/v3/dist/integrations/coherence/engines/spectral-adapter.js +4 -3
- package/v3/dist/integrations/coherence/engines/spectral-adapter.js.map +1 -1
- package/v3/dist/integrations/coherence/wasm-loader.d.ts.map +1 -1
- package/v3/dist/integrations/coherence/wasm-loader.js +4 -3
- package/v3/dist/integrations/coherence/wasm-loader.js.map +1 -1
- package/v3/dist/integrations/embeddings/cache/EmbeddingCache.d.ts +6 -0
- package/v3/dist/integrations/embeddings/cache/EmbeddingCache.d.ts.map +1 -1
- package/v3/dist/integrations/embeddings/cache/EmbeddingCache.js +35 -6
- package/v3/dist/integrations/embeddings/cache/EmbeddingCache.js.map +1 -1
- package/v3/dist/integrations/n8n/agent-factory.d.ts.map +1 -1
- package/v3/dist/integrations/n8n/agent-factory.js +2 -1
- package/v3/dist/integrations/n8n/agent-factory.js.map +1 -1
- package/v3/dist/integrations/rl-suite/base-algorithm.d.ts.map +1 -1
- package/v3/dist/integrations/rl-suite/base-algorithm.js +8 -3
- package/v3/dist/integrations/rl-suite/base-algorithm.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 +2 -1
- package/v3/dist/integrations/rl-suite/persistence/q-value-store.js.map +1 -1
- package/v3/dist/integrations/ruvector/ast-complexity.d.ts.map +1 -1
- package/v3/dist/integrations/ruvector/ast-complexity.js +3 -2
- package/v3/dist/integrations/ruvector/ast-complexity.js.map +1 -1
- package/v3/dist/integrations/ruvector/attention-wrapper.d.ts.map +1 -1
- package/v3/dist/integrations/ruvector/attention-wrapper.js +2 -1
- package/v3/dist/integrations/ruvector/attention-wrapper.js.map +1 -1
- package/v3/dist/integrations/ruvector/coverage-router.d.ts.map +1 -1
- package/v3/dist/integrations/ruvector/coverage-router.js +3 -2
- package/v3/dist/integrations/ruvector/coverage-router.js.map +1 -1
- package/v3/dist/integrations/ruvector/diff-risk-classifier.d.ts.map +1 -1
- package/v3/dist/integrations/ruvector/diff-risk-classifier.js +3 -2
- package/v3/dist/integrations/ruvector/diff-risk-classifier.js.map +1 -1
- package/v3/dist/integrations/ruvector/gnn-wrapper.d.ts.map +1 -1
- package/v3/dist/integrations/ruvector/gnn-wrapper.js +2 -1
- package/v3/dist/integrations/ruvector/gnn-wrapper.js.map +1 -1
- package/v3/dist/integrations/ruvector/graph-boundaries.d.ts.map +1 -1
- package/v3/dist/integrations/ruvector/graph-boundaries.js +3 -2
- package/v3/dist/integrations/ruvector/graph-boundaries.js.map +1 -1
- package/v3/dist/integrations/ruvector/hypergraph-engine.d.ts.map +1 -1
- package/v3/dist/integrations/ruvector/hypergraph-engine.js +68 -67
- package/v3/dist/integrations/ruvector/hypergraph-engine.js.map +1 -1
- package/v3/dist/integrations/ruvector/hypergraph-schema.d.ts.map +1 -1
- package/v3/dist/integrations/ruvector/hypergraph-schema.js +3 -2
- package/v3/dist/integrations/ruvector/hypergraph-schema.js.map +1 -1
- package/v3/dist/integrations/ruvector/persistent-q-router.d.ts.map +1 -1
- package/v3/dist/integrations/ruvector/persistent-q-router.js +35 -11
- package/v3/dist/integrations/ruvector/persistent-q-router.js.map +1 -1
- package/v3/dist/integrations/ruvector/q-learning-router.d.ts.map +1 -1
- package/v3/dist/integrations/ruvector/q-learning-router.js +3 -2
- package/v3/dist/integrations/ruvector/q-learning-router.js.map +1 -1
- package/v3/dist/integrations/ruvector/server-client.d.ts.map +1 -1
- package/v3/dist/integrations/ruvector/server-client.js +23 -10
- package/v3/dist/integrations/ruvector/server-client.js.map +1 -1
- package/v3/dist/integrations/ruvector/sona-persistence.d.ts.map +1 -1
- package/v3/dist/integrations/ruvector/sona-persistence.js +11 -6
- 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 +11 -10
- package/v3/dist/integrations/vibium/client.js.map +1 -1
- package/v3/dist/kernel/anti-drift-middleware.d.ts.map +1 -1
- package/v3/dist/kernel/anti-drift-middleware.js +8 -3
- package/v3/dist/kernel/anti-drift-middleware.js.map +1 -1
- package/v3/dist/kernel/hybrid-backend.d.ts.map +1 -1
- package/v3/dist/kernel/hybrid-backend.js +4 -0
- package/v3/dist/kernel/hybrid-backend.js.map +1 -1
- package/v3/dist/kernel/index.d.ts +1 -1
- package/v3/dist/kernel/index.d.ts.map +1 -1
- package/v3/dist/kernel/index.js +1 -1
- package/v3/dist/kernel/index.js.map +1 -1
- package/v3/dist/kernel/kernel.d.ts +5 -0
- package/v3/dist/kernel/kernel.d.ts.map +1 -1
- package/v3/dist/kernel/kernel.js +43 -22
- package/v3/dist/kernel/kernel.js.map +1 -1
- package/v3/dist/kernel/memory-factory.d.ts.map +1 -1
- package/v3/dist/kernel/memory-factory.js +12 -4
- package/v3/dist/kernel/memory-factory.js.map +1 -1
- package/v3/dist/kernel/plugin-loader.d.ts.map +1 -1
- package/v3/dist/kernel/plugin-loader.js +4 -1
- package/v3/dist/kernel/plugin-loader.js.map +1 -1
- package/v3/dist/kernel/unified-memory-hnsw.d.ts +101 -0
- package/v3/dist/kernel/unified-memory-hnsw.d.ts.map +1 -0
- package/v3/dist/kernel/unified-memory-hnsw.js +411 -0
- package/v3/dist/kernel/unified-memory-hnsw.js.map +1 -0
- package/v3/dist/kernel/unified-memory-migration.d.ts.map +1 -1
- package/v3/dist/kernel/unified-memory-migration.js +14 -15
- package/v3/dist/kernel/unified-memory-migration.js.map +1 -1
- package/v3/dist/kernel/unified-memory-schemas.d.ts +21 -0
- package/v3/dist/kernel/unified-memory-schemas.d.ts.map +1 -0
- package/v3/dist/kernel/unified-memory-schemas.js +581 -0
- package/v3/dist/kernel/unified-memory-schemas.js.map +1 -0
- package/v3/dist/kernel/unified-memory.d.ts +13 -197
- package/v3/dist/kernel/unified-memory.d.ts.map +1 -1
- package/v3/dist/kernel/unified-memory.js +117 -1379
- package/v3/dist/kernel/unified-memory.js.map +1 -1
- package/v3/dist/kernel/unified-persistence.d.ts.map +1 -1
- package/v3/dist/kernel/unified-persistence.js +6 -4
- 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 +11 -9
- package/v3/dist/learning/aqe-learning-engine.js.map +1 -1
- package/v3/dist/learning/dream/concept-graph.d.ts.map +1 -1
- package/v3/dist/learning/dream/concept-graph.js +6 -4
- package/v3/dist/learning/dream/concept-graph.js.map +1 -1
- package/v3/dist/learning/dream/dream-engine.d.ts +8 -0
- package/v3/dist/learning/dream/dream-engine.d.ts.map +1 -1
- package/v3/dist/learning/dream/dream-engine.js +35 -5
- package/v3/dist/learning/dream/dream-engine.js.map +1 -1
- package/v3/dist/learning/dream/dream-scheduler.d.ts.map +1 -1
- package/v3/dist/learning/dream/dream-scheduler.js +34 -22
- package/v3/dist/learning/dream/dream-scheduler.js.map +1 -1
- package/v3/dist/learning/experience-capture-middleware.d.ts.map +1 -1
- package/v3/dist/learning/experience-capture-middleware.js +2 -1
- package/v3/dist/learning/experience-capture-middleware.js.map +1 -1
- package/v3/dist/learning/experience-capture.d.ts.map +1 -1
- package/v3/dist/learning/experience-capture.js +4 -1
- package/v3/dist/learning/experience-capture.js.map +1 -1
- package/v3/dist/learning/memory-auditor.d.ts.map +1 -1
- package/v3/dist/learning/memory-auditor.js +3 -2
- package/v3/dist/learning/memory-auditor.js.map +1 -1
- package/v3/dist/learning/metrics-tracker.d.ts.map +1 -1
- package/v3/dist/learning/metrics-tracker.js +6 -2
- package/v3/dist/learning/metrics-tracker.js.map +1 -1
- package/v3/dist/learning/pattern-lifecycle.d.ts.map +1 -1
- package/v3/dist/learning/pattern-lifecycle.js +11 -5
- package/v3/dist/learning/pattern-lifecycle.js.map +1 -1
- package/v3/dist/learning/pattern-store.d.ts +7 -0
- package/v3/dist/learning/pattern-store.d.ts.map +1 -1
- package/v3/dist/learning/pattern-store.js +32 -4
- package/v3/dist/learning/pattern-store.js.map +1 -1
- package/v3/dist/learning/qe-hooks.d.ts.map +1 -1
- package/v3/dist/learning/qe-hooks.js +55 -10
- package/v3/dist/learning/qe-hooks.js.map +1 -1
- package/v3/dist/learning/qe-reasoning-bank.d.ts +13 -0
- package/v3/dist/learning/qe-reasoning-bank.d.ts.map +1 -1
- package/v3/dist/learning/qe-reasoning-bank.js +64 -24
- package/v3/dist/learning/qe-reasoning-bank.js.map +1 -1
- package/v3/dist/learning/qe-unified-memory.d.ts.map +1 -1
- package/v3/dist/learning/qe-unified-memory.js +31 -21
- package/v3/dist/learning/qe-unified-memory.js.map +1 -1
- package/v3/dist/learning/real-embeddings.d.ts.map +1 -1
- package/v3/dist/learning/real-embeddings.js +2 -1
- package/v3/dist/learning/real-embeddings.js.map +1 -1
- package/v3/dist/learning/real-qe-reasoning-bank.d.ts.map +1 -1
- package/v3/dist/learning/real-qe-reasoning-bank.js +47 -34
- package/v3/dist/learning/real-qe-reasoning-bank.js.map +1 -1
- package/v3/dist/learning/skill-validation-learner.d.ts.map +1 -1
- package/v3/dist/learning/skill-validation-learner.js +21 -12
- package/v3/dist/learning/skill-validation-learner.js.map +1 -1
- package/v3/dist/learning/sqlite-persistence.d.ts +9 -0
- package/v3/dist/learning/sqlite-persistence.d.ts.map +1 -1
- package/v3/dist/learning/sqlite-persistence.js +65 -6
- package/v3/dist/learning/sqlite-persistence.js.map +1 -1
- package/v3/dist/learning/token-tracker.d.ts.map +1 -1
- package/v3/dist/learning/token-tracker.js +4 -2
- package/v3/dist/learning/token-tracker.js.map +1 -1
- package/v3/dist/learning/v2-to-v3-migration.d.ts.map +1 -1
- package/v3/dist/learning/v2-to-v3-migration.js +9 -4
- package/v3/dist/learning/v2-to-v3-migration.js.map +1 -1
- package/v3/dist/mcp/bundle.js +15199 -13931
- package/v3/dist/mcp/entry.js +21 -1
- package/v3/dist/mcp/entry.js.map +1 -1
- package/v3/dist/mcp/handlers/agent-handlers.d.ts.map +1 -1
- package/v3/dist/mcp/handlers/agent-handlers.js +5 -4
- package/v3/dist/mcp/handlers/agent-handlers.js.map +1 -1
- package/v3/dist/mcp/handlers/core-handlers.d.ts.map +1 -1
- package/v3/dist/mcp/handlers/core-handlers.js +4 -3
- package/v3/dist/mcp/handlers/core-handlers.js.map +1 -1
- package/v3/dist/mcp/handlers/handler-factory.d.ts.map +1 -1
- package/v3/dist/mcp/handlers/handler-factory.js +12 -3
- package/v3/dist/mcp/handlers/handler-factory.js.map +1 -1
- package/v3/dist/mcp/handlers/memory-handlers.d.ts.map +1 -1
- package/v3/dist/mcp/handlers/memory-handlers.js +8 -8
- package/v3/dist/mcp/handlers/memory-handlers.js.map +1 -1
- package/v3/dist/mcp/handlers/task-handlers.d.ts.map +1 -1
- package/v3/dist/mcp/handlers/task-handlers.js +11 -10
- package/v3/dist/mcp/handlers/task-handlers.js.map +1 -1
- package/v3/dist/mcp/http-server.js +1 -1
- package/v3/dist/mcp/http-server.js.map +1 -1
- package/v3/dist/mcp/security/index.d.ts +2 -6
- package/v3/dist/mcp/security/index.d.ts.map +1 -1
- package/v3/dist/mcp/security/index.js +2 -2
- package/v3/dist/mcp/security/index.js.map +1 -1
- package/v3/dist/mcp/security/oauth21-provider.d.ts +7 -0
- package/v3/dist/mcp/security/oauth21-provider.d.ts.map +1 -1
- package/v3/dist/mcp/security/oauth21-provider.js +15 -3
- package/v3/dist/mcp/security/oauth21-provider.js.map +1 -1
- package/v3/dist/mcp/server.d.ts.map +1 -1
- package/v3/dist/mcp/server.js +10 -24
- package/v3/dist/mcp/server.js.map +1 -1
- package/v3/dist/mcp/tool-registry.d.ts.map +1 -1
- package/v3/dist/mcp/tool-registry.js +2 -1
- package/v3/dist/mcp/tool-registry.js.map +1 -1
- package/v3/dist/mcp/tools/analysis/token-usage.d.ts.map +1 -1
- package/v3/dist/mcp/tools/analysis/token-usage.js +2 -1
- package/v3/dist/mcp/tools/analysis/token-usage.js.map +1 -1
- package/v3/dist/mcp/tools/base.d.ts.map +1 -1
- package/v3/dist/mcp/tools/base.js +2 -1
- package/v3/dist/mcp/tools/base.js.map +1 -1
- package/v3/dist/mcp/tools/chaos-resilience/inject.d.ts.map +1 -1
- package/v3/dist/mcp/tools/chaos-resilience/inject.js +2 -1
- package/v3/dist/mcp/tools/chaos-resilience/inject.js.map +1 -1
- package/v3/dist/mcp/tools/code-intelligence/analyze.d.ts.map +1 -1
- package/v3/dist/mcp/tools/code-intelligence/analyze.js +2 -1
- package/v3/dist/mcp/tools/code-intelligence/analyze.js.map +1 -1
- package/v3/dist/mcp/tools/coherence/audit.d.ts.map +1 -1
- package/v3/dist/mcp/tools/coherence/audit.js +2 -1
- package/v3/dist/mcp/tools/coherence/audit.js.map +1 -1
- package/v3/dist/mcp/tools/coherence/check.d.ts.map +1 -1
- package/v3/dist/mcp/tools/coherence/check.js +2 -1
- package/v3/dist/mcp/tools/coherence/check.js.map +1 -1
- package/v3/dist/mcp/tools/coherence/collapse.d.ts.map +1 -1
- package/v3/dist/mcp/tools/coherence/collapse.js +2 -1
- package/v3/dist/mcp/tools/coherence/collapse.js.map +1 -1
- package/v3/dist/mcp/tools/coherence/consensus.d.ts.map +1 -1
- package/v3/dist/mcp/tools/coherence/consensus.js +2 -1
- package/v3/dist/mcp/tools/coherence/consensus.js.map +1 -1
- package/v3/dist/mcp/tools/contract-testing/validate.d.ts.map +1 -1
- package/v3/dist/mcp/tools/contract-testing/validate.js +4 -3
- package/v3/dist/mcp/tools/contract-testing/validate.js.map +1 -1
- package/v3/dist/mcp/tools/coverage-analysis/index.d.ts.map +1 -1
- package/v3/dist/mcp/tools/coverage-analysis/index.js +7 -6
- package/v3/dist/mcp/tools/coverage-analysis/index.js.map +1 -1
- package/v3/dist/mcp/tools/defect-intelligence/predict.d.ts.map +1 -1
- package/v3/dist/mcp/tools/defect-intelligence/predict.js +2 -1
- package/v3/dist/mcp/tools/defect-intelligence/predict.js.map +1 -1
- package/v3/dist/mcp/tools/embeddings/embedding.d.ts.map +1 -1
- package/v3/dist/mcp/tools/embeddings/embedding.js +6 -5
- package/v3/dist/mcp/tools/embeddings/embedding.js.map +1 -1
- package/v3/dist/mcp/tools/learning-optimization/dream.d.ts.map +1 -1
- package/v3/dist/mcp/tools/learning-optimization/dream.js +3 -2
- package/v3/dist/mcp/tools/learning-optimization/dream.js.map +1 -1
- package/v3/dist/mcp/tools/learning-optimization/optimize.d.ts.map +1 -1
- package/v3/dist/mcp/tools/learning-optimization/optimize.js +2 -1
- package/v3/dist/mcp/tools/learning-optimization/optimize.js.map +1 -1
- package/v3/dist/mcp/tools/planning/goap-execute.d.ts.map +1 -1
- package/v3/dist/mcp/tools/planning/goap-execute.js +2 -1
- package/v3/dist/mcp/tools/planning/goap-execute.js.map +1 -1
- package/v3/dist/mcp/tools/planning/goap-plan.d.ts.map +1 -1
- package/v3/dist/mcp/tools/planning/goap-plan.js +2 -1
- package/v3/dist/mcp/tools/planning/goap-plan.js.map +1 -1
- package/v3/dist/mcp/tools/planning/goap-status.d.ts.map +1 -1
- package/v3/dist/mcp/tools/planning/goap-status.js +2 -1
- package/v3/dist/mcp/tools/planning/goap-status.js.map +1 -1
- package/v3/dist/mcp/tools/quality-assessment/evaluate.d.ts.map +1 -1
- package/v3/dist/mcp/tools/quality-assessment/evaluate.js +2 -1
- package/v3/dist/mcp/tools/quality-assessment/evaluate.js.map +1 -1
- package/v3/dist/mcp/tools/qx-analysis/analyze.d.ts.map +1 -1
- package/v3/dist/mcp/tools/qx-analysis/analyze.js +2 -1
- package/v3/dist/mcp/tools/qx-analysis/analyze.js.map +1 -1
- package/v3/dist/mcp/tools/qx-analysis/impact-analyzer.d.ts +12 -0
- package/v3/dist/mcp/tools/qx-analysis/impact-analyzer.d.ts.map +1 -1
- package/v3/dist/mcp/tools/qx-analysis/impact-analyzer.js +158 -109
- package/v3/dist/mcp/tools/qx-analysis/impact-analyzer.js.map +1 -1
- package/v3/dist/mcp/tools/requirements-validation/quality-criteria.d.ts.map +1 -1
- package/v3/dist/mcp/tools/requirements-validation/quality-criteria.js +2 -1
- package/v3/dist/mcp/tools/requirements-validation/quality-criteria.js.map +1 -1
- package/v3/dist/mcp/tools/requirements-validation/validate.d.ts.map +1 -1
- package/v3/dist/mcp/tools/requirements-validation/validate.js +2 -1
- package/v3/dist/mcp/tools/requirements-validation/validate.js.map +1 -1
- package/v3/dist/mcp/tools/security-compliance/scan.d.ts.map +1 -1
- package/v3/dist/mcp/tools/security-compliance/scan.js +2 -1
- package/v3/dist/mcp/tools/security-compliance/scan.js.map +1 -1
- package/v3/dist/mcp/tools/test-execution/e2e-execute.d.ts.map +1 -1
- package/v3/dist/mcp/tools/test-execution/e2e-execute.js +2 -1
- package/v3/dist/mcp/tools/test-execution/e2e-execute.js.map +1 -1
- package/v3/dist/mcp/tools/test-execution/execute.d.ts.map +1 -1
- package/v3/dist/mcp/tools/test-execution/execute.js +2 -1
- package/v3/dist/mcp/tools/test-execution/execute.js.map +1 -1
- package/v3/dist/mcp/tools/test-generation/generate.d.ts.map +1 -1
- package/v3/dist/mcp/tools/test-generation/generate.js +2 -1
- package/v3/dist/mcp/tools/test-generation/generate.js.map +1 -1
- package/v3/dist/mcp/tools/visual-accessibility/index.d.ts.map +1 -1
- package/v3/dist/mcp/tools/visual-accessibility/index.js +3 -2
- package/v3/dist/mcp/tools/visual-accessibility/index.js.map +1 -1
- package/v3/dist/mcp/transport/sse/sse-transport.js +1 -1
- package/v3/dist/mcp/transport/sse/sse-transport.js.map +1 -1
- package/v3/dist/mcp/transport/stdio.js +1 -1
- package/v3/dist/mcp/transport/stdio.js.map +1 -1
- package/v3/dist/mcp/transport/websocket/websocket-transport.js +1 -1
- package/v3/dist/mcp/transport/websocket/websocket-transport.js.map +1 -1
- package/v3/dist/memory/crdt/or-set.d.ts.map +1 -1
- package/v3/dist/memory/crdt/or-set.js +2 -1
- package/v3/dist/memory/crdt/or-set.js.map +1 -1
- package/v3/dist/optimization/auto-tuner.d.ts.map +1 -1
- package/v3/dist/optimization/auto-tuner.js +2 -1
- package/v3/dist/optimization/auto-tuner.js.map +1 -1
- package/v3/dist/optimization/early-exit-token-optimizer.d.ts.map +1 -1
- package/v3/dist/optimization/early-exit-token-optimizer.js +2 -1
- package/v3/dist/optimization/early-exit-token-optimizer.js.map +1 -1
- package/v3/dist/optimization/qe-workers.d.ts.map +1 -1
- package/v3/dist/optimization/qe-workers.js +2 -1
- package/v3/dist/optimization/qe-workers.js.map +1 -1
- package/v3/dist/performance/benchmarks.d.ts.map +1 -1
- package/v3/dist/performance/benchmarks.js +2 -1
- package/v3/dist/performance/benchmarks.js.map +1 -1
- package/v3/dist/performance/optimizer.d.ts.map +1 -1
- package/v3/dist/performance/optimizer.js +119 -71
- package/v3/dist/performance/optimizer.js.map +1 -1
- package/v3/dist/performance/run-gates.js +2 -1
- package/v3/dist/performance/run-gates.js.map +1 -1
- package/v3/dist/planning/goap-planner.d.ts +4 -1
- package/v3/dist/planning/goap-planner.d.ts.map +1 -1
- package/v3/dist/planning/goap-planner.js +128 -46
- package/v3/dist/planning/goap-planner.js.map +1 -1
- package/v3/dist/planning/index.d.ts +1 -1
- package/v3/dist/planning/index.d.ts.map +1 -1
- package/v3/dist/planning/index.js.map +1 -1
- package/v3/dist/planning/plan-executor.d.ts.map +1 -1
- package/v3/dist/planning/plan-executor.js +7 -5
- package/v3/dist/planning/plan-executor.js.map +1 -1
- package/v3/dist/planning/types.d.ts +0 -16
- package/v3/dist/planning/types.d.ts.map +1 -1
- package/v3/dist/routing/routing-feedback.d.ts.map +1 -1
- package/v3/dist/routing/routing-feedback.js +7 -5
- package/v3/dist/routing/routing-feedback.js.map +1 -1
- package/v3/dist/shared/base-domain-plugin.d.ts +198 -0
- package/v3/dist/shared/base-domain-plugin.d.ts.map +1 -0
- package/v3/dist/shared/base-domain-plugin.js +292 -0
- package/v3/dist/shared/base-domain-plugin.js.map +1 -0
- package/v3/dist/shared/domain-service-registry.d.ts +70 -0
- package/v3/dist/shared/domain-service-registry.d.ts.map +1 -0
- package/v3/dist/shared/domain-service-registry.js +87 -0
- package/v3/dist/shared/domain-service-registry.js.map +1 -0
- package/v3/dist/shared/embeddings/nomic-embedder.d.ts.map +1 -1
- package/v3/dist/shared/embeddings/nomic-embedder.js +2 -1
- package/v3/dist/shared/embeddings/nomic-embedder.js.map +1 -1
- package/v3/dist/shared/embeddings/ollama-client.d.ts.map +1 -1
- package/v3/dist/shared/embeddings/ollama-client.js +2 -1
- package/v3/dist/shared/embeddings/ollama-client.js.map +1 -1
- package/v3/dist/shared/error-utils.d.ts +16 -0
- package/v3/dist/shared/error-utils.d.ts.map +1 -0
- package/v3/dist/shared/error-utils.js +20 -0
- package/v3/dist/shared/error-utils.js.map +1 -0
- package/v3/dist/shared/http/http-client.d.ts.map +1 -1
- package/v3/dist/shared/http/http-client.js +2 -1
- package/v3/dist/shared/http/http-client.js.map +1 -1
- package/v3/dist/shared/index.d.ts +3 -0
- package/v3/dist/shared/index.d.ts.map +1 -1
- package/v3/dist/shared/index.js +3 -0
- package/v3/dist/shared/index.js.map +1 -1
- package/v3/dist/shared/io/file-reader.d.ts.map +1 -1
- package/v3/dist/shared/io/file-reader.js +2 -1
- package/v3/dist/shared/io/file-reader.js.map +1 -1
- package/v3/dist/shared/llm/circuit-breaker.d.ts.map +1 -1
- package/v3/dist/shared/llm/circuit-breaker.js +2 -1
- package/v3/dist/shared/llm/circuit-breaker.js.map +1 -1
- package/v3/dist/shared/llm/metrics/cost-metrics.js.map +1 -1
- package/v3/dist/shared/llm/metrics/router-metrics.d.ts.map +1 -1
- package/v3/dist/shared/llm/metrics/router-metrics.js.map +1 -1
- package/v3/dist/shared/llm/provider-manager.d.ts.map +1 -1
- package/v3/dist/shared/llm/provider-manager.js +2 -1
- package/v3/dist/shared/llm/provider-manager.js.map +1 -1
- package/v3/dist/shared/llm/providers/azure-openai.d.ts.map +1 -1
- package/v3/dist/shared/llm/providers/azure-openai.js +2 -1
- package/v3/dist/shared/llm/providers/azure-openai.js.map +1 -1
- package/v3/dist/shared/llm/providers/bedrock.d.ts.map +1 -1
- package/v3/dist/shared/llm/providers/bedrock.js +2 -1
- package/v3/dist/shared/llm/providers/bedrock.js.map +1 -1
- package/v3/dist/shared/llm/providers/claude.d.ts.map +1 -1
- package/v3/dist/shared/llm/providers/claude.js +2 -1
- package/v3/dist/shared/llm/providers/claude.js.map +1 -1
- package/v3/dist/shared/llm/providers/gemini.d.ts.map +1 -1
- package/v3/dist/shared/llm/providers/gemini.js +4 -2
- package/v3/dist/shared/llm/providers/gemini.js.map +1 -1
- package/v3/dist/shared/llm/providers/openai.d.ts.map +1 -1
- package/v3/dist/shared/llm/providers/openai.js +2 -1
- package/v3/dist/shared/llm/providers/openai.js.map +1 -1
- package/v3/dist/shared/llm/providers/openrouter.d.ts.map +1 -1
- package/v3/dist/shared/llm/providers/openrouter.js +4 -2
- package/v3/dist/shared/llm/providers/openrouter.js.map +1 -1
- package/v3/dist/shared/llm/router/hybrid-router.d.ts.map +1 -1
- package/v3/dist/shared/llm/router/hybrid-router.js +2 -1
- package/v3/dist/shared/llm/router/hybrid-router.js.map +1 -1
- package/v3/dist/shared/llm/translation/prompt-translator.d.ts.map +1 -1
- package/v3/dist/shared/llm/translation/prompt-translator.js +2 -1
- package/v3/dist/shared/llm/translation/prompt-translator.js.map +1 -1
- package/v3/dist/shared/safe-json.d.ts +57 -0
- package/v3/dist/shared/safe-json.d.ts.map +1 -0
- package/v3/dist/shared/safe-json.js +78 -0
- package/v3/dist/shared/safe-json.js.map +1 -0
- package/v3/dist/shared/sql-safety.d.ts +9 -0
- package/v3/dist/shared/sql-safety.d.ts.map +1 -1
- package/v3/dist/shared/sql-safety.js +20 -1
- package/v3/dist/shared/sql-safety.js.map +1 -1
- package/v3/dist/shared/utils/circular-buffer.js +1 -1
- package/v3/dist/shared/utils/circular-buffer.js.map +1 -1
- package/v3/dist/skills/security-visual-testing/index.d.ts.map +1 -1
- package/v3/dist/skills/security-visual-testing/index.js +6 -5
- package/v3/dist/skills/security-visual-testing/index.js.map +1 -1
- package/v3/dist/strange-loop/strange-loop.d.ts +0 -9
- package/v3/dist/strange-loop/strange-loop.d.ts.map +1 -1
- package/v3/dist/strange-loop/strange-loop.js +23 -15
- package/v3/dist/strange-loop/strange-loop.js.map +1 -1
- package/v3/dist/sync/claude-flow-bridge.d.ts.map +1 -1
- package/v3/dist/sync/claude-flow-bridge.js +2 -1
- package/v3/dist/sync/claude-flow-bridge.js.map +1 -1
- package/v3/dist/sync/cloud/index.d.ts +1 -1
- package/v3/dist/sync/cloud/index.d.ts.map +1 -1
- package/v3/dist/sync/cloud/index.js +1 -1
- package/v3/dist/sync/cloud/index.js.map +1 -1
- package/v3/dist/sync/cloud/postgres-writer.d.ts.map +1 -1
- package/v3/dist/sync/cloud/postgres-writer.js +20 -9
- package/v3/dist/sync/cloud/postgres-writer.js.map +1 -1
- package/v3/dist/sync/cloud/tunnel-manager.d.ts +17 -1
- package/v3/dist/sync/cloud/tunnel-manager.d.ts.map +1 -1
- package/v3/dist/sync/cloud/tunnel-manager.js +36 -1
- package/v3/dist/sync/cloud/tunnel-manager.js.map +1 -1
- package/v3/dist/sync/embeddings/sync-embedding-generator.d.ts.map +1 -1
- package/v3/dist/sync/embeddings/sync-embedding-generator.js +11 -5
- package/v3/dist/sync/embeddings/sync-embedding-generator.js.map +1 -1
- package/v3/dist/sync/readers/json-reader.d.ts.map +1 -1
- package/v3/dist/sync/readers/json-reader.js +2 -1
- package/v3/dist/sync/readers/json-reader.js.map +1 -1
- package/v3/dist/sync/readers/sqlite-reader.d.ts.map +1 -1
- package/v3/dist/sync/readers/sqlite-reader.js +14 -6
- package/v3/dist/sync/readers/sqlite-reader.js.map +1 -1
- package/v3/dist/sync/sync-agent.d.ts.map +1 -1
- package/v3/dist/sync/sync-agent.js +10 -6
- package/v3/dist/sync/sync-agent.js.map +1 -1
- package/v3/dist/test-scheduling/executors/vitest-executor.d.ts.map +1 -1
- package/v3/dist/test-scheduling/executors/vitest-executor.js +3 -2
- package/v3/dist/test-scheduling/executors/vitest-executor.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 +2 -1
- package/v3/dist/test-scheduling/flaky-tracking/flaky-tracker.js.map +1 -1
- package/v3/dist/testing/load/agent-load-tester.d.ts.map +1 -1
- package/v3/dist/testing/load/agent-load-tester.js +2 -1
- package/v3/dist/testing/load/agent-load-tester.js.map +1 -1
- package/v3/dist/validation/parallel-eval-runner.d.ts.map +1 -1
- package/v3/dist/validation/parallel-eval-runner.js +83 -37
- package/v3/dist/validation/parallel-eval-runner.js.map +1 -1
- package/v3/dist/validation/swarm-skill-validator.d.ts.map +1 -1
- package/v3/dist/validation/swarm-skill-validator.js +2 -1
- package/v3/dist/validation/swarm-skill-validator.js.map +1 -1
- package/v3/dist/validation/validation-result-aggregator.d.ts.map +1 -1
- package/v3/dist/validation/validation-result-aggregator.js +2 -1
- package/v3/dist/validation/validation-result-aggregator.js.map +1 -1
- package/v3/dist/workers/base-worker.d.ts.map +1 -1
- package/v3/dist/workers/base-worker.js +2 -1
- package/v3/dist/workers/base-worker.js.map +1 -1
- package/v3/dist/workers/workers/cloud-sync.d.ts.map +1 -1
- package/v3/dist/workers/workers/cloud-sync.js +2 -1
- package/v3/dist/workers/workers/cloud-sync.js.map +1 -1
- package/v3/dist/workers/workers/learning-consolidation.d.ts.map +1 -1
- package/v3/dist/workers/workers/learning-consolidation.js +4 -3
- package/v3/dist/workers/workers/learning-consolidation.js.map +1 -1
- package/v3/dist/workers/workers/test-health.d.ts.map +1 -1
- package/v3/dist/workers/workers/test-health.js +2 -1
- package/v3/dist/workers/workers/test-health.js.map +1 -1
- package/v3/package.json +3 -2
|
@@ -10,26 +10,23 @@
|
|
|
10
10
|
* V3 Integrations (ADR-047, CONSENSUS-MIXIN-001):
|
|
11
11
|
* - MinCutAwareDomainMixin: Topology-aware routing and health monitoring
|
|
12
12
|
* - ConsensusEnabledMixin: Multi-model consensus for high-stakes quality decisions
|
|
13
|
+
*
|
|
14
|
+
* CQ-002: Extends BaseDomainCoordinator for lifecycle deduplication
|
|
13
15
|
*/
|
|
14
16
|
import { v4 as uuidv4 } from 'uuid';
|
|
15
17
|
import { ok, err } from '../../shared/types';
|
|
18
|
+
import { toError, toErrorMessage } from '../../shared/error-utils.js';
|
|
16
19
|
import { QualityAssessmentEvents, LearningOptimizationEvents, createEvent, } from '../../shared/events/domain-events';
|
|
17
20
|
import { QualityGateService, } from './services/quality-gate';
|
|
18
21
|
import { QualityAnalyzerService, } from './services/quality-analyzer';
|
|
19
22
|
import { DeploymentAdvisorService, } from './services/deployment-advisor';
|
|
20
|
-
//
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
import { createMinCutAwareMixin, } from '../../coordination/mixins/mincut-aware-domain';
|
|
28
|
-
// V3 Integration: Consensus Verification (CONSENSUS-MIXIN-001)
|
|
29
|
-
import { createConsensusEnabledMixin, } from '../../coordination/mixins/consensus-enabled-domain';
|
|
30
|
-
import { createDomainFinding, } from '../../coordination/consensus/domain-findings';
|
|
31
|
-
// ADR-058: Governance-aware mixin for MemoryWriteGate integration
|
|
32
|
-
import { createGovernanceAwareMixin, } from '../../coordination/mixins/governance-aware-domain.js';
|
|
23
|
+
// CQ-004: Extracted modules
|
|
24
|
+
import * as ReportHelpers from './coordinator-reports.js';
|
|
25
|
+
import * as RLIntegration from './coordinator-rl-integration.js';
|
|
26
|
+
import * as ClaimVerifierHelpers from './coordinator-claim-verifier.js';
|
|
27
|
+
import * as GateEvalHelpers from './coordinator-gate-evaluation.js';
|
|
28
|
+
// CQ-002: Base domain coordinator
|
|
29
|
+
import { BaseDomainCoordinator, } from '../base-domain-coordinator.js';
|
|
33
30
|
const DEFAULT_CONFIG = {
|
|
34
31
|
maxConcurrentWorkflows: 5,
|
|
35
32
|
defaultTimeout: 60000,
|
|
@@ -43,9 +40,11 @@ const DEFAULT_CONFIG = {
|
|
|
43
40
|
// V3: MinCut Awareness enabled by default
|
|
44
41
|
enableMinCutAwareness: true,
|
|
45
42
|
topologyHealthThreshold: 0.5,
|
|
43
|
+
pauseOnCriticalTopology: false,
|
|
46
44
|
// V3: Consensus enabled by default for quality decisions
|
|
47
45
|
enableConsensus: true,
|
|
48
46
|
consensusThreshold: 0.7,
|
|
47
|
+
consensusStrategy: 'weighted',
|
|
49
48
|
consensusMinModels: 2,
|
|
50
49
|
borderlineMargin: 0.05, // 5% margin for borderline detection
|
|
51
50
|
};
|
|
@@ -61,54 +60,28 @@ const DEFAULT_CONFIG = {
|
|
|
61
60
|
* V3 Integrations (ADR-047, CONSENSUS-MIXIN-001):
|
|
62
61
|
* - MinCutAwareDomainMixin: Topology-aware routing and health monitoring
|
|
63
62
|
* - ConsensusEnabledMixin: Multi-model consensus for high-stakes quality decisions
|
|
63
|
+
*
|
|
64
|
+
* CQ-002: Extends BaseDomainCoordinator
|
|
64
65
|
*/
|
|
65
|
-
export class QualityAssessmentCoordinator {
|
|
66
|
-
eventBus;
|
|
66
|
+
export class QualityAssessmentCoordinator extends BaseDomainCoordinator {
|
|
67
67
|
memory;
|
|
68
68
|
agentCoordinator;
|
|
69
|
-
config;
|
|
70
69
|
qualityGate;
|
|
71
70
|
qualityAnalyzer;
|
|
72
71
|
deploymentAdvisor;
|
|
73
|
-
workflows = new Map();
|
|
74
|
-
initialized = false;
|
|
75
72
|
// Ruvector integration instances
|
|
76
73
|
actorCritic;
|
|
77
74
|
qesona;
|
|
78
75
|
flashAttention;
|
|
79
76
|
// V3 Integration: ClaimVerifier for report verification
|
|
80
77
|
claimVerifier;
|
|
81
|
-
// V3 Integration: MinCut Awareness (ADR-047)
|
|
82
|
-
minCutMixin;
|
|
83
|
-
// V3 Integration: Consensus Verification (CONSENSUS-MIXIN-001)
|
|
84
|
-
consensusMixin;
|
|
85
78
|
// Quality domain name for SONA
|
|
86
79
|
domain = 'quality-assessment';
|
|
87
|
-
// ADR-058: Governance mixin for MemoryWriteGate integration
|
|
88
|
-
governanceMixin;
|
|
89
80
|
// Cache of recent dream insights for quality assessment enhancement
|
|
90
81
|
recentDreamInsights = [];
|
|
91
82
|
constructor(eventBus, memory, agentCoordinator, config = {}) {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
this.agentCoordinator = agentCoordinator;
|
|
95
|
-
this.config = { ...DEFAULT_CONFIG, ...config };
|
|
96
|
-
this.qualityGate = new QualityGateService(memory);
|
|
97
|
-
this.qualityAnalyzer = new QualityAnalyzerService(memory);
|
|
98
|
-
this.deploymentAdvisor = new DeploymentAdvisorService(memory);
|
|
99
|
-
// V3 Integration: Initialize MinCut Awareness Mixin (ADR-047)
|
|
100
|
-
this.minCutMixin = createMinCutAwareMixin(this.domain, {
|
|
101
|
-
enableMinCutAwareness: this.config.enableMinCutAwareness,
|
|
102
|
-
topologyHealthThreshold: this.config.topologyHealthThreshold,
|
|
103
|
-
pauseOnCriticalTopology: false, // Quality assessment continues even in degraded topology
|
|
104
|
-
monitoredDomains: [], // Monitor all domains
|
|
105
|
-
});
|
|
106
|
-
// V3 Integration: Initialize Consensus Mixin (CONSENSUS-MIXIN-001)
|
|
107
|
-
// Configured for quality-assessment specific finding types
|
|
108
|
-
this.consensusMixin = createConsensusEnabledMixin({
|
|
109
|
-
enableConsensus: this.config.enableConsensus,
|
|
110
|
-
consensusThreshold: this.config.consensusThreshold,
|
|
111
|
-
minModels: this.config.consensusMinModels,
|
|
83
|
+
const fullConfig = { ...DEFAULT_CONFIG, ...config };
|
|
84
|
+
super(eventBus, 'quality-assessment', fullConfig, {
|
|
112
85
|
// Quality-specific finding types that require consensus
|
|
113
86
|
verifyFindingTypes: [
|
|
114
87
|
'gate-verdict', // Pass/fail quality gate decisions
|
|
@@ -116,22 +89,22 @@ export class QualityAssessmentCoordinator {
|
|
|
116
89
|
'release-readiness', // Go/no-go deployment decisions
|
|
117
90
|
'risk-scoring', // High-risk deployment detection
|
|
118
91
|
],
|
|
119
|
-
strategy: 'weighted',
|
|
120
|
-
modelTimeout: 60000,
|
|
121
|
-
verifySeverities: ['critical', 'high'],
|
|
122
|
-
enableLogging: false,
|
|
123
92
|
});
|
|
124
|
-
|
|
125
|
-
this.
|
|
93
|
+
this.memory = memory;
|
|
94
|
+
this.agentCoordinator = agentCoordinator;
|
|
95
|
+
this.qualityGate = new QualityGateService(memory);
|
|
96
|
+
this.qualityAnalyzer = new QualityAnalyzerService(memory);
|
|
97
|
+
this.deploymentAdvisor = new DeploymentAdvisorService(memory);
|
|
126
98
|
}
|
|
99
|
+
// ==========================================================================
|
|
100
|
+
// BaseDomainCoordinator Template Methods
|
|
101
|
+
// ==========================================================================
|
|
127
102
|
/**
|
|
128
103
|
* Initialize the coordinator
|
|
129
104
|
* Sets up Ruvector integrations: ActorCritic, QESONA, QEFlashAttention
|
|
130
105
|
* V3: Also initializes MinCut awareness and Consensus verification
|
|
131
106
|
*/
|
|
132
|
-
async
|
|
133
|
-
if (this.initialized)
|
|
134
|
-
return;
|
|
107
|
+
async onInitialize() {
|
|
135
108
|
try {
|
|
136
109
|
// Subscribe to relevant events
|
|
137
110
|
this.subscribeToEvents();
|
|
@@ -153,38 +126,17 @@ export class QualityAssessmentCoordinator {
|
|
|
153
126
|
if (this.config.enableClaimVerification) {
|
|
154
127
|
await this.initializeClaimVerifier();
|
|
155
128
|
}
|
|
156
|
-
// V3 Integration: Initialize Consensus Engine (CONSENSUS-MIXIN-001)
|
|
157
|
-
if (this.config.enableConsensus) {
|
|
158
|
-
await this.initializeConsensus();
|
|
159
|
-
}
|
|
160
|
-
this.initialized = true;
|
|
161
129
|
}
|
|
162
130
|
catch (error) {
|
|
163
|
-
const errorMsg = `Failed to initialize quality-assessment coordinator: ${
|
|
131
|
+
const errorMsg = `Failed to initialize quality-assessment coordinator: ${toErrorMessage(error)}`;
|
|
164
132
|
throw new Error(errorMsg);
|
|
165
133
|
}
|
|
166
134
|
}
|
|
167
|
-
/**
|
|
168
|
-
* V3 Integration: Initialize the consensus engine for multi-model verification
|
|
169
|
-
* @private
|
|
170
|
-
*/
|
|
171
|
-
async initializeConsensus() {
|
|
172
|
-
try {
|
|
173
|
-
// The mixin handles provider registration and engine creation
|
|
174
|
-
await this.consensusMixin.initializeConsensus();
|
|
175
|
-
console.log('[quality-assessment] Consensus engine initialized for quality gate decisions');
|
|
176
|
-
}
|
|
177
|
-
catch (error) {
|
|
178
|
-
// Log and continue - consensus is enhancement, not critical
|
|
179
|
-
console.warn('[quality-assessment] Failed to initialize consensus engine:', error);
|
|
180
|
-
console.warn('[quality-assessment] Continuing without multi-model consensus verification');
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
135
|
/**
|
|
184
136
|
* Dispose and cleanup
|
|
185
|
-
* V3: Also disposes
|
|
137
|
+
* V3: Also disposes domain-specific resources
|
|
186
138
|
*/
|
|
187
|
-
async
|
|
139
|
+
async onDispose() {
|
|
188
140
|
await this.saveWorkflowState();
|
|
189
141
|
// Dispose Flash Attention
|
|
190
142
|
this.flashAttention?.dispose();
|
|
@@ -193,38 +145,16 @@ export class QualityAssessmentCoordinator {
|
|
|
193
145
|
await this.qesona.close();
|
|
194
146
|
this.qesona = undefined;
|
|
195
147
|
}
|
|
196
|
-
// V3 Integration: Dispose MinCut mixin (ADR-047)
|
|
197
|
-
this.minCutMixin.dispose();
|
|
198
|
-
// V3 Integration: Dispose Consensus engine (CONSENSUS-MIXIN-001)
|
|
199
|
-
await this.consensusMixin.disposeConsensus();
|
|
200
|
-
this.workflows.clear();
|
|
201
|
-
this.initialized = false;
|
|
202
148
|
}
|
|
203
149
|
/**
|
|
204
|
-
* Get active workflow statuses
|
|
150
|
+
* Get active workflow statuses (typed override)
|
|
205
151
|
*/
|
|
206
152
|
getActiveWorkflows() {
|
|
207
|
-
return
|
|
153
|
+
return super.getActiveWorkflows();
|
|
208
154
|
}
|
|
209
155
|
// ============================================================================
|
|
210
|
-
// V3 Integration: MinCut Awareness (ADR-047)
|
|
156
|
+
// V3 Integration: MinCut Awareness (ADR-047) — domain-specific extras
|
|
211
157
|
// ============================================================================
|
|
212
|
-
/**
|
|
213
|
-
* Set the MinCut bridge for topology awareness
|
|
214
|
-
* Uses dependency injection pattern for testability
|
|
215
|
-
*
|
|
216
|
-
* @param bridge - The QueenMinCutBridge instance
|
|
217
|
-
*/
|
|
218
|
-
setMinCutBridge(bridge) {
|
|
219
|
-
this.minCutMixin.setMinCutBridge(bridge);
|
|
220
|
-
}
|
|
221
|
-
/**
|
|
222
|
-
* Check if the overall topology is healthy
|
|
223
|
-
* Returns true if status is not 'critical'
|
|
224
|
-
*/
|
|
225
|
-
isTopologyHealthy() {
|
|
226
|
-
return this.minCutMixin.isTopologyHealthy();
|
|
227
|
-
}
|
|
228
158
|
/**
|
|
229
159
|
* Get domains that are healthy for routing
|
|
230
160
|
* Filters out weak domains from routing candidates
|
|
@@ -232,41 +162,6 @@ export class QualityAssessmentCoordinator {
|
|
|
232
162
|
getHealthyRoutingDomains() {
|
|
233
163
|
return this.minCutMixin.getHealthyRoutingDomains();
|
|
234
164
|
}
|
|
235
|
-
/**
|
|
236
|
-
* Check if this domain itself is a weak point in the topology
|
|
237
|
-
*/
|
|
238
|
-
isDomainWeakPoint() {
|
|
239
|
-
return this.minCutMixin.isDomainWeakPoint();
|
|
240
|
-
}
|
|
241
|
-
/**
|
|
242
|
-
* Get weak vertices belonging to this domain
|
|
243
|
-
* Per ADR-047: Identifies agents that are single points of failure
|
|
244
|
-
*/
|
|
245
|
-
getDomainWeakVertices() {
|
|
246
|
-
return this.minCutMixin.getDomainWeakVertices();
|
|
247
|
-
}
|
|
248
|
-
/**
|
|
249
|
-
* Get topology-aware routing for cross-domain coordination
|
|
250
|
-
* Per ADR-047: Routes to healthy domains, avoiding weak points
|
|
251
|
-
*/
|
|
252
|
-
getTopologyBasedRouting(targetDomains) {
|
|
253
|
-
return this.minCutMixin.getTopologyBasedRouting(targetDomains);
|
|
254
|
-
}
|
|
255
|
-
// ============================================================================
|
|
256
|
-
// V3 Integration: Consensus Verification (CONSENSUS-MIXIN-001)
|
|
257
|
-
// ============================================================================
|
|
258
|
-
/**
|
|
259
|
-
* Get consensus statistics
|
|
260
|
-
*/
|
|
261
|
-
getConsensusStats() {
|
|
262
|
-
return this.consensusMixin.getConsensusStats();
|
|
263
|
-
}
|
|
264
|
-
/**
|
|
265
|
-
* Check if consensus verification is available
|
|
266
|
-
*/
|
|
267
|
-
isConsensusAvailable() {
|
|
268
|
-
return this.consensusMixin.isConsensusAvailable();
|
|
269
|
-
}
|
|
270
165
|
// ============================================================================
|
|
271
166
|
// QualityAssessmentAPI Implementation
|
|
272
167
|
// ============================================================================
|
|
@@ -346,7 +241,7 @@ export class QualityAssessmentCoordinator {
|
|
|
346
241
|
}
|
|
347
242
|
catch (error) {
|
|
348
243
|
this.failWorkflow(workflowId, String(error));
|
|
349
|
-
return err(
|
|
244
|
+
return err(toError(error));
|
|
350
245
|
}
|
|
351
246
|
}
|
|
352
247
|
/**
|
|
@@ -359,36 +254,7 @@ export class QualityAssessmentCoordinator {
|
|
|
359
254
|
* @returns true if this is a borderline case requiring consensus
|
|
360
255
|
*/
|
|
361
256
|
isBorderlineGateResult(metrics, thresholds, result) {
|
|
362
|
-
|
|
363
|
-
// Check each metric against its threshold
|
|
364
|
-
const metricsToCheck = [
|
|
365
|
-
{ metricKey: 'coverage', thresholdKey: 'coverage', isMin: true },
|
|
366
|
-
{ metricKey: 'testsPassing', thresholdKey: 'testsPassing', isMin: true },
|
|
367
|
-
{ metricKey: 'criticalBugs', thresholdKey: 'criticalBugs', isMin: false },
|
|
368
|
-
{ metricKey: 'codeSmells', thresholdKey: 'codeSmells', isMin: false },
|
|
369
|
-
{ metricKey: 'securityVulnerabilities', thresholdKey: 'securityVulnerabilities', isMin: false },
|
|
370
|
-
{ metricKey: 'technicalDebt', thresholdKey: 'technicalDebt', isMin: false },
|
|
371
|
-
{ metricKey: 'duplications', thresholdKey: 'duplications', isMin: false },
|
|
372
|
-
];
|
|
373
|
-
for (const { metricKey, thresholdKey, isMin } of metricsToCheck) {
|
|
374
|
-
const metricValue = metrics[metricKey];
|
|
375
|
-
const thresholdConfig = thresholds[thresholdKey];
|
|
376
|
-
if (thresholdConfig === undefined)
|
|
377
|
-
continue;
|
|
378
|
-
const threshold = isMin
|
|
379
|
-
? thresholdConfig.min
|
|
380
|
-
: thresholdConfig.max;
|
|
381
|
-
if (threshold === undefined || threshold === 0)
|
|
382
|
-
continue;
|
|
383
|
-
// Calculate relative distance from threshold
|
|
384
|
-
const relativeDistance = Math.abs(metricValue - threshold) / threshold;
|
|
385
|
-
// If any metric is within margin of threshold, it's borderline
|
|
386
|
-
if (relativeDistance < margin) {
|
|
387
|
-
console.log(`[quality-assessment] Borderline detected: ${metricKey}=${metricValue} (threshold=${threshold}, distance=${(relativeDistance * 100).toFixed(1)}%)`);
|
|
388
|
-
return true;
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
return false;
|
|
257
|
+
return GateEvalHelpers.isBorderlineGateResult(metrics, thresholds, result, this.config.borderlineMargin);
|
|
392
258
|
}
|
|
393
259
|
/**
|
|
394
260
|
* V3 Integration: Verify a gate verdict with multi-model consensus
|
|
@@ -398,46 +264,7 @@ export class QualityAssessmentCoordinator {
|
|
|
398
264
|
* @returns The potentially modified result with consensus verification, or null if consensus unavailable
|
|
399
265
|
*/
|
|
400
266
|
async verifyGateVerdictWithConsensus(request, initialResult) {
|
|
401
|
-
|
|
402
|
-
const finding = createDomainFinding({
|
|
403
|
-
id: `gate-verdict-${uuidv4()}`,
|
|
404
|
-
type: 'gate-verdict',
|
|
405
|
-
confidence: initialResult.overallScore / 100,
|
|
406
|
-
description: `Quality gate '${request.gateName}' verdict: ${initialResult.passed ? 'PASSED' : 'FAILED'} (borderline case)`,
|
|
407
|
-
payload: {
|
|
408
|
-
metrics: request.metrics,
|
|
409
|
-
thresholds: request.thresholds,
|
|
410
|
-
initialResult,
|
|
411
|
-
},
|
|
412
|
-
detectedBy: 'quality-assessment-coordinator',
|
|
413
|
-
severity: initialResult.passed ? 'medium' : 'high',
|
|
414
|
-
});
|
|
415
|
-
// Check if this finding requires consensus
|
|
416
|
-
if (!this.consensusMixin.requiresConsensus(finding)) {
|
|
417
|
-
return null;
|
|
418
|
-
}
|
|
419
|
-
try {
|
|
420
|
-
const consensusResult = await this.consensusMixin.verifyFinding(finding);
|
|
421
|
-
if (!consensusResult.success) {
|
|
422
|
-
console.warn('[quality-assessment] Consensus verification failed:', consensusResult.error);
|
|
423
|
-
return null;
|
|
424
|
-
}
|
|
425
|
-
const consensus = consensusResult.value;
|
|
426
|
-
console.log(`[quality-assessment] Consensus for gate '${request.gateName}': ` +
|
|
427
|
-
`verdict=${consensus.verdict}, confidence=${(consensus.confidence * 100).toFixed(1)}%`);
|
|
428
|
-
// Return result with consensus information
|
|
429
|
-
return {
|
|
430
|
-
...initialResult,
|
|
431
|
-
// Add consensus metadata (extends GateResult)
|
|
432
|
-
consensusVerified: true,
|
|
433
|
-
consensusConfidence: consensus.confidence,
|
|
434
|
-
consensusVerdict: consensus.verdict,
|
|
435
|
-
};
|
|
436
|
-
}
|
|
437
|
-
catch (error) {
|
|
438
|
-
console.error('[quality-assessment] Consensus verification error:', error);
|
|
439
|
-
return null;
|
|
440
|
-
}
|
|
267
|
+
return GateEvalHelpers.verifyGateVerdictWithConsensus(request, initialResult, this.consensusMixin);
|
|
441
268
|
}
|
|
442
269
|
/**
|
|
443
270
|
* Analyze code quality
|
|
@@ -500,7 +327,7 @@ export class QualityAssessmentCoordinator {
|
|
|
500
327
|
}
|
|
501
328
|
catch (error) {
|
|
502
329
|
this.failWorkflow(workflowId, String(error));
|
|
503
|
-
return err(
|
|
330
|
+
return err(toError(error));
|
|
504
331
|
}
|
|
505
332
|
}
|
|
506
333
|
/**
|
|
@@ -554,7 +381,7 @@ export class QualityAssessmentCoordinator {
|
|
|
554
381
|
}
|
|
555
382
|
catch (error) {
|
|
556
383
|
this.failWorkflow(workflowId, String(error));
|
|
557
|
-
return err(
|
|
384
|
+
return err(toError(error));
|
|
558
385
|
}
|
|
559
386
|
}
|
|
560
387
|
/**
|
|
@@ -562,56 +389,13 @@ export class QualityAssessmentCoordinator {
|
|
|
562
389
|
* High-risk deployments include blocked deployments or low risk tolerance with warnings
|
|
563
390
|
*/
|
|
564
391
|
isHighRiskDeployment(request, advice) {
|
|
565
|
-
|
|
566
|
-
if (advice.decision === 'blocked') {
|
|
567
|
-
return true;
|
|
568
|
-
}
|
|
569
|
-
// Warning with low risk tolerance is high-risk
|
|
570
|
-
if (advice.decision === 'warning' && request.riskTolerance === 'low') {
|
|
571
|
-
return true;
|
|
572
|
-
}
|
|
573
|
-
// High risk score (>0.7) with any decision is high-risk
|
|
574
|
-
if (advice.riskScore > 0.7) {
|
|
575
|
-
return true;
|
|
576
|
-
}
|
|
577
|
-
return false;
|
|
392
|
+
return GateEvalHelpers.isHighRiskDeployment(request, advice);
|
|
578
393
|
}
|
|
579
394
|
/**
|
|
580
395
|
* V3 Integration: Verify deployment advice with multi-model consensus
|
|
581
396
|
*/
|
|
582
397
|
async verifyDeploymentAdviceWithConsensus(request, initialAdvice) {
|
|
583
|
-
|
|
584
|
-
id: `release-readiness-${uuidv4()}`,
|
|
585
|
-
type: 'release-readiness',
|
|
586
|
-
confidence: initialAdvice.confidence,
|
|
587
|
-
description: `Release readiness for '${request.releaseCandidate}': ${initialAdvice.decision} (risk: ${(initialAdvice.riskScore * 100).toFixed(0)}%)`,
|
|
588
|
-
payload: { request, initialAdvice },
|
|
589
|
-
detectedBy: 'quality-assessment-coordinator',
|
|
590
|
-
severity: initialAdvice.decision === 'blocked' ? 'critical' : 'high',
|
|
591
|
-
});
|
|
592
|
-
if (!this.consensusMixin.requiresConsensus(finding)) {
|
|
593
|
-
return null;
|
|
594
|
-
}
|
|
595
|
-
try {
|
|
596
|
-
const consensusResult = await this.consensusMixin.verifyFinding(finding);
|
|
597
|
-
if (!consensusResult.success) {
|
|
598
|
-
console.warn('[quality-assessment] Consensus verification for deployment failed:', consensusResult.error);
|
|
599
|
-
return null;
|
|
600
|
-
}
|
|
601
|
-
const consensus = consensusResult.value;
|
|
602
|
-
console.log(`[quality-assessment] Consensus for deployment '${request.releaseCandidate}': ` +
|
|
603
|
-
`verdict=${consensus.verdict}, confidence=${(consensus.confidence * 100).toFixed(1)}%`);
|
|
604
|
-
return {
|
|
605
|
-
...initialAdvice,
|
|
606
|
-
consensusVerified: true,
|
|
607
|
-
consensusConfidence: consensus.confidence,
|
|
608
|
-
consensusVerdict: consensus.verdict,
|
|
609
|
-
};
|
|
610
|
-
}
|
|
611
|
-
catch (error) {
|
|
612
|
-
console.error('[quality-assessment] Consensus verification error:', error);
|
|
613
|
-
return null;
|
|
614
|
-
}
|
|
398
|
+
return GateEvalHelpers.verifyDeploymentAdviceWithConsensus(request, initialAdvice, this.consensusMixin);
|
|
615
399
|
}
|
|
616
400
|
/**
|
|
617
401
|
* Analyze code complexity
|
|
@@ -651,7 +435,7 @@ export class QualityAssessmentCoordinator {
|
|
|
651
435
|
}
|
|
652
436
|
catch (error) {
|
|
653
437
|
this.failWorkflow(workflowId, String(error));
|
|
654
|
-
return err(
|
|
438
|
+
return err(toError(error));
|
|
655
439
|
}
|
|
656
440
|
}
|
|
657
441
|
/**
|
|
@@ -660,80 +444,14 @@ export class QualityAssessmentCoordinator {
|
|
|
660
444
|
* @returns Result containing the generated report content
|
|
661
445
|
*/
|
|
662
446
|
async generateReport(options) {
|
|
663
|
-
|
|
664
|
-
// Collect current quality metrics from memory or use defaults
|
|
665
|
-
const storedMetrics = await this.memory.get('quality-assessment:current-metrics');
|
|
666
|
-
const metrics = storedMetrics ?? {
|
|
667
|
-
coverage: 80,
|
|
668
|
-
testsPassing: 95,
|
|
669
|
-
criticalBugs: 0,
|
|
670
|
-
codeSmells: 5,
|
|
671
|
-
securityVulnerabilities: 0,
|
|
672
|
-
technicalDebt: 10,
|
|
673
|
-
duplications: 3,
|
|
674
|
-
};
|
|
675
|
-
// Build report content based on format
|
|
676
|
-
const reportData = {
|
|
677
|
-
timestamp: new Date().toISOString(),
|
|
678
|
-
metrics,
|
|
679
|
-
recommendations: options.includeRecommendations
|
|
680
|
-
? this.generateRecommendations(metrics)
|
|
681
|
-
: undefined,
|
|
682
|
-
};
|
|
683
|
-
let content;
|
|
684
|
-
switch (options.format) {
|
|
685
|
-
case 'json':
|
|
686
|
-
content = JSON.stringify(reportData, null, 2);
|
|
687
|
-
break;
|
|
688
|
-
case 'html':
|
|
689
|
-
content = this.formatAsHtml(reportData);
|
|
690
|
-
break;
|
|
691
|
-
case 'markdown':
|
|
692
|
-
content = this.formatAsMarkdown(reportData);
|
|
693
|
-
break;
|
|
694
|
-
default:
|
|
695
|
-
content = JSON.stringify(reportData, null, 2);
|
|
696
|
-
}
|
|
697
|
-
return ok({ content, format: options.format });
|
|
698
|
-
}
|
|
699
|
-
catch (error) {
|
|
700
|
-
return err(error instanceof Error ? error : new Error(String(error)));
|
|
701
|
-
}
|
|
447
|
+
return ReportHelpers.generateReport(this.memory, options);
|
|
702
448
|
}
|
|
703
449
|
/**
|
|
704
450
|
* Get quality dashboard overview
|
|
705
451
|
* @returns Result containing dashboard data
|
|
706
452
|
*/
|
|
707
453
|
async getQualityDashboard() {
|
|
708
|
-
|
|
709
|
-
const storedMetrics = await this.memory.get('quality-assessment:current-metrics');
|
|
710
|
-
const metrics = storedMetrics ?? {
|
|
711
|
-
coverage: 80,
|
|
712
|
-
testsPassing: 95,
|
|
713
|
-
criticalBugs: 0,
|
|
714
|
-
codeSmells: 5,
|
|
715
|
-
securityVulnerabilities: 0,
|
|
716
|
-
technicalDebt: 10,
|
|
717
|
-
duplications: 3,
|
|
718
|
-
};
|
|
719
|
-
// Calculate overall score (weighted average)
|
|
720
|
-
const overallScore = Math.round((metrics.coverage * 0.3) +
|
|
721
|
-
(metrics.testsPassing * 0.3) +
|
|
722
|
-
((100 - Math.min(100, metrics.codeSmells)) * 0.2) +
|
|
723
|
-
((100 - Math.min(100, metrics.securityVulnerabilities * 10)) * 0.2));
|
|
724
|
-
return ok({
|
|
725
|
-
overallScore,
|
|
726
|
-
metrics,
|
|
727
|
-
trends: {
|
|
728
|
-
coverage: 0,
|
|
729
|
-
quality: 0,
|
|
730
|
-
security: 0,
|
|
731
|
-
},
|
|
732
|
-
});
|
|
733
|
-
}
|
|
734
|
-
catch (error) {
|
|
735
|
-
return err(error instanceof Error ? error : new Error(String(error)));
|
|
736
|
-
}
|
|
454
|
+
return ReportHelpers.getQualityDashboard(this.memory);
|
|
737
455
|
}
|
|
738
456
|
/**
|
|
739
457
|
* Analyze project risks
|
|
@@ -741,71 +459,7 @@ export class QualityAssessmentCoordinator {
|
|
|
741
459
|
* @returns Result containing identified risks
|
|
742
460
|
*/
|
|
743
461
|
async analyzeRisks(options) {
|
|
744
|
-
|
|
745
|
-
const storedMetrics = await this.memory.get('quality-assessment:current-metrics');
|
|
746
|
-
const metrics = storedMetrics ?? {
|
|
747
|
-
coverage: 80,
|
|
748
|
-
testsPassing: 95,
|
|
749
|
-
criticalBugs: 0,
|
|
750
|
-
codeSmells: 5,
|
|
751
|
-
securityVulnerabilities: 0,
|
|
752
|
-
technicalDebt: 10,
|
|
753
|
-
duplications: 3,
|
|
754
|
-
};
|
|
755
|
-
const risks = [];
|
|
756
|
-
// Check coverage risk
|
|
757
|
-
if (metrics.coverage < 50) {
|
|
758
|
-
risks.push({
|
|
759
|
-
id: 'risk-coverage-critical',
|
|
760
|
-
severity: 'critical',
|
|
761
|
-
description: 'Code coverage is critically low',
|
|
762
|
-
category: 'quality',
|
|
763
|
-
});
|
|
764
|
-
}
|
|
765
|
-
else if (metrics.coverage < 70) {
|
|
766
|
-
risks.push({
|
|
767
|
-
id: 'risk-coverage-high',
|
|
768
|
-
severity: 'high',
|
|
769
|
-
description: 'Code coverage is below recommended threshold',
|
|
770
|
-
category: 'quality',
|
|
771
|
-
});
|
|
772
|
-
}
|
|
773
|
-
// Check security risks
|
|
774
|
-
if (options.includeSecurityRisks && metrics.securityVulnerabilities > 0) {
|
|
775
|
-
risks.push({
|
|
776
|
-
id: 'risk-security',
|
|
777
|
-
severity: metrics.securityVulnerabilities > 5 ? 'critical' : 'high',
|
|
778
|
-
description: `${metrics.securityVulnerabilities} security vulnerabilities detected`,
|
|
779
|
-
category: 'security',
|
|
780
|
-
});
|
|
781
|
-
}
|
|
782
|
-
// Check technical debt
|
|
783
|
-
if (metrics.technicalDebt > 40) {
|
|
784
|
-
risks.push({
|
|
785
|
-
id: 'risk-debt-critical',
|
|
786
|
-
severity: 'high',
|
|
787
|
-
description: 'Technical debt is critically high',
|
|
788
|
-
category: 'maintainability',
|
|
789
|
-
});
|
|
790
|
-
}
|
|
791
|
-
// Determine overall risk level
|
|
792
|
-
const criticalCount = risks.filter((r) => r.severity === 'critical').length;
|
|
793
|
-
const highCount = risks.filter((r) => r.severity === 'high').length;
|
|
794
|
-
let overallRiskLevel = 'low';
|
|
795
|
-
if (criticalCount > 0) {
|
|
796
|
-
overallRiskLevel = 'critical';
|
|
797
|
-
}
|
|
798
|
-
else if (highCount > 1) {
|
|
799
|
-
overallRiskLevel = 'high';
|
|
800
|
-
}
|
|
801
|
-
else if (highCount > 0 || risks.length > 2) {
|
|
802
|
-
overallRiskLevel = 'medium';
|
|
803
|
-
}
|
|
804
|
-
return ok({ risks, overallRiskLevel });
|
|
805
|
-
}
|
|
806
|
-
catch (error) {
|
|
807
|
-
return err(error instanceof Error ? error : new Error(String(error)));
|
|
808
|
-
}
|
|
462
|
+
return ReportHelpers.analyzeRisks(this.memory, options);
|
|
809
463
|
}
|
|
810
464
|
/**
|
|
811
465
|
* Evaluate a quality gate (simplified API)
|
|
@@ -813,29 +467,7 @@ export class QualityAssessmentCoordinator {
|
|
|
813
467
|
* @returns Result containing gate evaluation
|
|
814
468
|
*/
|
|
815
469
|
async evaluateQualityGate(options) {
|
|
816
|
-
|
|
817
|
-
const fullMetrics = {
|
|
818
|
-
coverage: options.metrics.coverage ?? 80,
|
|
819
|
-
testsPassing: options.metrics.testsPassing ?? 95,
|
|
820
|
-
criticalBugs: options.metrics.criticalBugs ?? 0,
|
|
821
|
-
codeSmells: options.metrics.codeSmells ?? 5,
|
|
822
|
-
securityVulnerabilities: options.metrics.securityVulnerabilities ?? 0,
|
|
823
|
-
technicalDebt: options.metrics.technicalDebt ?? 10,
|
|
824
|
-
duplications: options.metrics.duplications ?? 3,
|
|
825
|
-
};
|
|
826
|
-
// Build evaluation request
|
|
827
|
-
const request = {
|
|
828
|
-
gateName: options.gateId,
|
|
829
|
-
metrics: fullMetrics,
|
|
830
|
-
thresholds: {
|
|
831
|
-
coverage: { min: 70 },
|
|
832
|
-
testsPassing: { min: 90 },
|
|
833
|
-
criticalBugs: { max: 0 },
|
|
834
|
-
codeSmells: { max: 20 },
|
|
835
|
-
securityVulnerabilities: { max: 0 },
|
|
836
|
-
},
|
|
837
|
-
};
|
|
838
|
-
// Delegate to existing evaluateGate method
|
|
470
|
+
const request = ReportHelpers.buildFullGateRequest(options);
|
|
839
471
|
const result = await this.evaluateGate(request);
|
|
840
472
|
if (!result.success) {
|
|
841
473
|
return err(result.error);
|
|
@@ -852,52 +484,7 @@ export class QualityAssessmentCoordinator {
|
|
|
852
484
|
* @returns Result containing readiness assessment
|
|
853
485
|
*/
|
|
854
486
|
async assessDeploymentReadiness(options) {
|
|
855
|
-
|
|
856
|
-
const storedMetrics = await this.memory.get('quality-assessment:current-metrics');
|
|
857
|
-
const metrics = storedMetrics ?? {
|
|
858
|
-
coverage: 80,
|
|
859
|
-
testsPassing: 95,
|
|
860
|
-
criticalBugs: 0,
|
|
861
|
-
codeSmells: 5,
|
|
862
|
-
securityVulnerabilities: 0,
|
|
863
|
-
technicalDebt: 10,
|
|
864
|
-
duplications: 3,
|
|
865
|
-
};
|
|
866
|
-
const risks = [];
|
|
867
|
-
// Check for production-specific risks
|
|
868
|
-
if (options.environment === 'production') {
|
|
869
|
-
if (metrics.coverage < 70) {
|
|
870
|
-
risks.push({
|
|
871
|
-
id: 'risk-coverage',
|
|
872
|
-
severity: 'high',
|
|
873
|
-
description: 'Coverage below recommended threshold for production',
|
|
874
|
-
});
|
|
875
|
-
}
|
|
876
|
-
if (metrics.securityVulnerabilities > 0) {
|
|
877
|
-
risks.push({
|
|
878
|
-
id: 'risk-security',
|
|
879
|
-
severity: 'critical',
|
|
880
|
-
description: 'Security vulnerabilities must be resolved before production deployment',
|
|
881
|
-
});
|
|
882
|
-
}
|
|
883
|
-
if (metrics.criticalBugs > 0) {
|
|
884
|
-
risks.push({
|
|
885
|
-
id: 'risk-bugs',
|
|
886
|
-
severity: 'critical',
|
|
887
|
-
description: 'Critical bugs must be resolved before production deployment',
|
|
888
|
-
});
|
|
889
|
-
}
|
|
890
|
-
}
|
|
891
|
-
// Calculate readiness score
|
|
892
|
-
const score = Math.round((metrics.coverage * 0.4) +
|
|
893
|
-
(metrics.testsPassing * 0.3) +
|
|
894
|
-
((100 - Math.min(100, metrics.securityVulnerabilities * 20)) * 0.3));
|
|
895
|
-
const ready = risks.filter((r) => r.severity === 'critical').length === 0 && score >= 70;
|
|
896
|
-
return ok({ ready, risks, score });
|
|
897
|
-
}
|
|
898
|
-
catch (error) {
|
|
899
|
-
return err(error instanceof Error ? error : new Error(String(error)));
|
|
900
|
-
}
|
|
487
|
+
return ReportHelpers.assessDeploymentReadiness(this.memory, options);
|
|
901
488
|
}
|
|
902
489
|
/**
|
|
903
490
|
* Analyze technical debt
|
|
@@ -905,64 +492,7 @@ export class QualityAssessmentCoordinator {
|
|
|
905
492
|
* @returns Result containing debt analysis
|
|
906
493
|
*/
|
|
907
494
|
async analyzeTechnicalDebt(options) {
|
|
908
|
-
|
|
909
|
-
const storedMetrics = await this.memory.get('quality-assessment:current-metrics');
|
|
910
|
-
const metrics = storedMetrics ?? {
|
|
911
|
-
coverage: 80,
|
|
912
|
-
testsPassing: 95,
|
|
913
|
-
criticalBugs: 0,
|
|
914
|
-
codeSmells: 5,
|
|
915
|
-
securityVulnerabilities: 0,
|
|
916
|
-
technicalDebt: 10,
|
|
917
|
-
duplications: 3,
|
|
918
|
-
};
|
|
919
|
-
const items = [];
|
|
920
|
-
// Generate sample debt items based on metrics
|
|
921
|
-
if (metrics.duplications > 0) {
|
|
922
|
-
items.push({
|
|
923
|
-
file: `${options.projectPath}/src/utils/helpers.ts`,
|
|
924
|
-
type: 'duplication',
|
|
925
|
-
effort: metrics.duplications * 30,
|
|
926
|
-
description: 'Duplicated code blocks that should be refactored',
|
|
927
|
-
});
|
|
928
|
-
}
|
|
929
|
-
if (options.includeCodeSmells && metrics.codeSmells > 0) {
|
|
930
|
-
items.push({
|
|
931
|
-
file: `${options.projectPath}/src/services/legacy.ts`,
|
|
932
|
-
type: 'code-smell',
|
|
933
|
-
effort: metrics.codeSmells * 15,
|
|
934
|
-
description: 'Code smells that impact maintainability',
|
|
935
|
-
});
|
|
936
|
-
}
|
|
937
|
-
const totalDebt = metrics.technicalDebt;
|
|
938
|
-
const debtRatio = totalDebt / 100;
|
|
939
|
-
return ok({ totalDebt, items, debtRatio });
|
|
940
|
-
}
|
|
941
|
-
catch (error) {
|
|
942
|
-
return err(error instanceof Error ? error : new Error(String(error)));
|
|
943
|
-
}
|
|
944
|
-
}
|
|
945
|
-
generateRecommendations(metrics) {
|
|
946
|
-
const recommendations = [];
|
|
947
|
-
if (metrics.coverage < 80) {
|
|
948
|
-
recommendations.push('Increase test coverage to at least 80%');
|
|
949
|
-
}
|
|
950
|
-
if (metrics.codeSmells > 10) {
|
|
951
|
-
recommendations.push('Refactor complex code to improve maintainability');
|
|
952
|
-
}
|
|
953
|
-
if (metrics.technicalDebt > 20) {
|
|
954
|
-
recommendations.push('Allocate time to reduce technical debt');
|
|
955
|
-
}
|
|
956
|
-
if (metrics.securityVulnerabilities > 0) {
|
|
957
|
-
recommendations.push('Address security vulnerabilities urgently');
|
|
958
|
-
}
|
|
959
|
-
return recommendations;
|
|
960
|
-
}
|
|
961
|
-
formatAsHtml(data) {
|
|
962
|
-
return `<html><body><pre>${JSON.stringify(data, null, 2)}</pre></body></html>`;
|
|
963
|
-
}
|
|
964
|
-
formatAsMarkdown(data) {
|
|
965
|
-
return `# Quality Report\n\n\`\`\`json\n${JSON.stringify(data, null, 2)}\n\`\`\``;
|
|
495
|
+
return ReportHelpers.analyzeTechnicalDebt(this.memory, options);
|
|
966
496
|
}
|
|
967
497
|
// ============================================================================
|
|
968
498
|
// Agent Spawning Methods
|
|
@@ -1064,45 +594,6 @@ export class QualityAssessmentCoordinator {
|
|
|
1064
594
|
await this.eventBus.publish(event);
|
|
1065
595
|
}
|
|
1066
596
|
// ============================================================================
|
|
1067
|
-
// Workflow Management
|
|
1068
|
-
// ============================================================================
|
|
1069
|
-
startWorkflow(id, type) {
|
|
1070
|
-
const activeWorkflows = this.getActiveWorkflows();
|
|
1071
|
-
if (activeWorkflows.length >= this.config.maxConcurrentWorkflows) {
|
|
1072
|
-
throw new Error(`Maximum concurrent workflows (${this.config.maxConcurrentWorkflows}) reached`);
|
|
1073
|
-
}
|
|
1074
|
-
this.workflows.set(id, {
|
|
1075
|
-
id,
|
|
1076
|
-
type,
|
|
1077
|
-
status: 'running',
|
|
1078
|
-
startedAt: new Date(),
|
|
1079
|
-
agentIds: [],
|
|
1080
|
-
progress: 0,
|
|
1081
|
-
});
|
|
1082
|
-
}
|
|
1083
|
-
completeWorkflow(id) {
|
|
1084
|
-
const workflow = this.workflows.get(id);
|
|
1085
|
-
if (workflow) {
|
|
1086
|
-
workflow.status = 'completed';
|
|
1087
|
-
workflow.completedAt = new Date();
|
|
1088
|
-
workflow.progress = 100;
|
|
1089
|
-
}
|
|
1090
|
-
}
|
|
1091
|
-
failWorkflow(id, error) {
|
|
1092
|
-
const workflow = this.workflows.get(id);
|
|
1093
|
-
if (workflow) {
|
|
1094
|
-
workflow.status = 'failed';
|
|
1095
|
-
workflow.completedAt = new Date();
|
|
1096
|
-
workflow.error = error;
|
|
1097
|
-
}
|
|
1098
|
-
}
|
|
1099
|
-
addAgentToWorkflow(workflowId, agentId) {
|
|
1100
|
-
const workflow = this.workflows.get(workflowId);
|
|
1101
|
-
if (workflow) {
|
|
1102
|
-
workflow.agentIds.push(agentId);
|
|
1103
|
-
}
|
|
1104
|
-
}
|
|
1105
|
-
// ============================================================================
|
|
1106
597
|
// Event Handling
|
|
1107
598
|
// ============================================================================
|
|
1108
599
|
subscribeToEvents() {
|
|
@@ -1223,31 +714,8 @@ export class QualityAssessmentCoordinator {
|
|
|
1223
714
|
}, { namespace: this.domain, ttl: 86400 * 7 } // 7 days
|
|
1224
715
|
);
|
|
1225
716
|
}
|
|
1226
|
-
/**
|
|
1227
|
-
* Encode a dream insight as feature vector for SONA pattern creation.
|
|
1228
|
-
*/
|
|
1229
717
|
encodeInsightAsFeatures(insight) {
|
|
1230
|
-
|
|
1231
|
-
// Encode insight type
|
|
1232
|
-
const typeMap = {
|
|
1233
|
-
pattern_merge: 0.2,
|
|
1234
|
-
novel_association: 0.4,
|
|
1235
|
-
optimization: 0.6,
|
|
1236
|
-
gap_detection: 0.8,
|
|
1237
|
-
};
|
|
1238
|
-
features.push(typeMap[insight.type] || 0.5);
|
|
1239
|
-
// Encode confidence and novelty
|
|
1240
|
-
features.push(insight.confidenceScore);
|
|
1241
|
-
features.push(insight.noveltyScore);
|
|
1242
|
-
// Encode actionability
|
|
1243
|
-
features.push(insight.actionable ? 1.0 : 0.0);
|
|
1244
|
-
// Encode source concept count (normalized)
|
|
1245
|
-
features.push(Math.min(1, insight.sourceConcepts.length / 10));
|
|
1246
|
-
// Pad to consistent size
|
|
1247
|
-
while (features.length < 384) {
|
|
1248
|
-
features.push(0);
|
|
1249
|
-
}
|
|
1250
|
-
return features.slice(0, 384);
|
|
718
|
+
return RLIntegration.encodeInsightAsFeatures(insight);
|
|
1251
719
|
}
|
|
1252
720
|
async handleTestRunCompleted(event) {
|
|
1253
721
|
// Auto-evaluate quality gate after test run if enabled
|
|
@@ -1294,319 +762,38 @@ export class QualityAssessmentCoordinator {
|
|
|
1294
762
|
* Initialize Actor-Critic RL for quality gate threshold tuning
|
|
1295
763
|
*/
|
|
1296
764
|
async initializeActorCritic() {
|
|
1297
|
-
|
|
1298
|
-
this.actorCritic = new ActorCriticAlgorithm({
|
|
1299
|
-
stateSize: 10, // Quality metrics feature size
|
|
1300
|
-
actionSize: 4, // Threshold adjustment actions
|
|
1301
|
-
actorHiddenLayers: [64, 64],
|
|
1302
|
-
criticHiddenLayers: [64, 64],
|
|
1303
|
-
actorLR: 0.0001,
|
|
1304
|
-
criticLR: 0.001,
|
|
1305
|
-
entropyCoeff: 0.01,
|
|
1306
|
-
});
|
|
1307
|
-
// ActorCriticAlgorithm initializes automatically on first predict/train call
|
|
1308
|
-
// No need to call initialize() as it's protected
|
|
1309
|
-
}
|
|
1310
|
-
catch (error) {
|
|
1311
|
-
throw new Error(`Failed to initialize Actor-Critic RL: ${error instanceof Error ? error.message : String(error)}`);
|
|
1312
|
-
}
|
|
765
|
+
this.actorCritic = await RLIntegration.initializeActorCritic();
|
|
1313
766
|
}
|
|
1314
|
-
/**
|
|
1315
|
-
* Initialize PersistentSONAEngine for quality pattern learning (patterns survive restarts)
|
|
1316
|
-
*/
|
|
1317
767
|
async initializeQESONA() {
|
|
1318
|
-
|
|
1319
|
-
this.qesona = await createPersistentSONAEngine({
|
|
1320
|
-
domain: 'quality-assessment',
|
|
1321
|
-
loadOnInit: true,
|
|
1322
|
-
autoSaveInterval: 60000, // Save every minute
|
|
1323
|
-
hiddenDim: 256,
|
|
1324
|
-
embeddingDim: 384,
|
|
1325
|
-
microLoraRank: 1,
|
|
1326
|
-
baseLoraRank: 8,
|
|
1327
|
-
minConfidence: 0.5,
|
|
1328
|
-
maxPatterns: 5000,
|
|
1329
|
-
});
|
|
1330
|
-
console.log('[quality-assessment] PersistentSONAEngine initialized successfully');
|
|
1331
|
-
}
|
|
1332
|
-
catch (error) {
|
|
1333
|
-
// Log and continue - SONA is enhancement, not critical
|
|
1334
|
-
console.error('[quality-assessment] Failed to initialize PersistentSONAEngine:', error);
|
|
1335
|
-
console.warn('[quality-assessment] Continuing without SONA pattern persistence');
|
|
1336
|
-
this.qesona = undefined;
|
|
1337
|
-
}
|
|
768
|
+
this.qesona = await RLIntegration.initializeQESONA();
|
|
1338
769
|
}
|
|
1339
|
-
/**
|
|
1340
|
-
* Initialize QEFlashAttention for similarity computations
|
|
1341
|
-
*/
|
|
1342
770
|
async initializeFlashAttention() {
|
|
1343
|
-
|
|
1344
|
-
this.flashAttention = await createQEFlashAttention('pattern-adaptation', {
|
|
1345
|
-
dim: 384,
|
|
1346
|
-
strategy: 'flash',
|
|
1347
|
-
blockSize: 32,
|
|
1348
|
-
});
|
|
1349
|
-
}
|
|
1350
|
-
catch (error) {
|
|
1351
|
-
throw new Error(`Failed to initialize QEFlashAttention: ${error instanceof Error ? error.message : String(error)}`);
|
|
1352
|
-
}
|
|
771
|
+
this.flashAttention = await RLIntegration.initializeFlashAttention();
|
|
1353
772
|
}
|
|
1354
|
-
/**
|
|
1355
|
-
* Use Actor-Critic RL to predict optimal quality gate thresholds
|
|
1356
|
-
*/
|
|
1357
773
|
async tuneThresholdsWithRL(metrics) {
|
|
1358
774
|
if (!this.actorCritic)
|
|
1359
775
|
return null;
|
|
1360
|
-
|
|
1361
|
-
// Create RL state from quality metrics
|
|
1362
|
-
const state = {
|
|
1363
|
-
id: `quality-state-${Date.now()}`,
|
|
1364
|
-
features: [
|
|
1365
|
-
metrics.coverage / 100,
|
|
1366
|
-
metrics.testsPassing / 100,
|
|
1367
|
-
metrics.criticalBugs / 10,
|
|
1368
|
-
metrics.codeSmells / 50,
|
|
1369
|
-
metrics.securityVulnerabilities / 10,
|
|
1370
|
-
metrics.technicalDebt / 20,
|
|
1371
|
-
metrics.duplications / 20,
|
|
1372
|
-
],
|
|
1373
|
-
};
|
|
1374
|
-
// Get action from Actor-Critic
|
|
1375
|
-
const prediction = await this.actorCritic.predict(state);
|
|
1376
|
-
// Apply action to adjust thresholds
|
|
1377
|
-
const baseThresholds = {
|
|
1378
|
-
coverage: { min: 80 },
|
|
1379
|
-
testsPassing: { min: 95 },
|
|
1380
|
-
criticalBugs: { max: 0 },
|
|
1381
|
-
codeSmells: { max: 20 },
|
|
1382
|
-
securityVulnerabilities: { max: 0 },
|
|
1383
|
-
technicalDebt: { max: 5 },
|
|
1384
|
-
duplications: { max: 5 },
|
|
1385
|
-
};
|
|
1386
|
-
const tunedThresholds = this.applyActionToThresholds(baseThresholds, prediction.action);
|
|
1387
|
-
return {
|
|
1388
|
-
thresholds: tunedThresholds,
|
|
1389
|
-
confidence: prediction.confidence,
|
|
1390
|
-
reasoning: prediction.reasoning ?? '',
|
|
1391
|
-
};
|
|
1392
|
-
}
|
|
1393
|
-
catch (error) {
|
|
1394
|
-
console.error('RL threshold tuning failed:', error);
|
|
1395
|
-
return null;
|
|
1396
|
-
}
|
|
1397
|
-
}
|
|
1398
|
-
/**
|
|
1399
|
-
* Apply RL action to threshold adjustments
|
|
1400
|
-
*/
|
|
1401
|
-
applyActionToThresholds(thresholds, action) {
|
|
1402
|
-
const adjusted = { ...thresholds };
|
|
1403
|
-
if (action.type === 'adjust-threshold' && typeof action.value === 'number') {
|
|
1404
|
-
const delta = action.value * 5; // Scale adjustment
|
|
1405
|
-
// Adjust coverage threshold
|
|
1406
|
-
if (adjusted.coverage?.min !== undefined) {
|
|
1407
|
-
adjusted.coverage.min = Math.max(50, Math.min(100, adjusted.coverage.min + delta));
|
|
1408
|
-
}
|
|
1409
|
-
// Adjust code smells threshold
|
|
1410
|
-
if (adjusted.codeSmells?.max !== undefined) {
|
|
1411
|
-
adjusted.codeSmells.max = Math.max(0, Math.min(100, adjusted.codeSmells.max - delta));
|
|
1412
|
-
}
|
|
1413
|
-
}
|
|
1414
|
-
return adjusted;
|
|
776
|
+
return RLIntegration.tuneThresholdsWithRL(this.actorCritic, metrics);
|
|
1415
777
|
}
|
|
1416
|
-
/**
|
|
1417
|
-
* Train Actor-Critic with quality gate evaluation results
|
|
1418
|
-
*/
|
|
1419
778
|
async trainActorCritic(request, result) {
|
|
1420
779
|
if (!this.actorCritic)
|
|
1421
780
|
return;
|
|
1422
|
-
|
|
1423
|
-
// Create state from metrics
|
|
1424
|
-
const state = {
|
|
1425
|
-
id: `quality-state-${Date.now()}`,
|
|
1426
|
-
features: [
|
|
1427
|
-
request.metrics.coverage / 100,
|
|
1428
|
-
request.metrics.testsPassing / 100,
|
|
1429
|
-
request.metrics.criticalBugs / 10,
|
|
1430
|
-
request.metrics.codeSmells / 50,
|
|
1431
|
-
request.metrics.securityVulnerabilities / 10,
|
|
1432
|
-
request.metrics.technicalDebt / 20,
|
|
1433
|
-
request.metrics.duplications / 20,
|
|
1434
|
-
],
|
|
1435
|
-
};
|
|
1436
|
-
// Define action as the threshold configuration used
|
|
1437
|
-
const action = {
|
|
1438
|
-
type: 'evaluate-gate',
|
|
1439
|
-
value: result.overallScore,
|
|
1440
|
-
};
|
|
1441
|
-
// Create next state (same for now, could be next evaluation)
|
|
1442
|
-
const nextState = { ...state };
|
|
1443
|
-
// Calculate reward based on gate result
|
|
1444
|
-
let reward = 0;
|
|
1445
|
-
if (result.passed) {
|
|
1446
|
-
reward += result.overallScore / 100;
|
|
1447
|
-
// Bonus for high score
|
|
1448
|
-
if (result.overallScore >= 90)
|
|
1449
|
-
reward += 0.5;
|
|
1450
|
-
if (result.overallScore >= 95)
|
|
1451
|
-
reward += 0.5;
|
|
1452
|
-
}
|
|
1453
|
-
else {
|
|
1454
|
-
reward -= 0.5;
|
|
1455
|
-
// Penalty for failing critical checks
|
|
1456
|
-
const criticalFailures = result.checks.filter(c => !c.passed && c.severity === 'critical').length;
|
|
1457
|
-
reward -= criticalFailures * 0.2;
|
|
1458
|
-
}
|
|
1459
|
-
// Create experience
|
|
1460
|
-
const experience = {
|
|
1461
|
-
state,
|
|
1462
|
-
action,
|
|
1463
|
-
nextState,
|
|
1464
|
-
reward: Math.max(-1, Math.min(1, reward)),
|
|
1465
|
-
done: true,
|
|
1466
|
-
};
|
|
1467
|
-
// Train Actor-Critic (train() expects a single experience)
|
|
1468
|
-
await this.actorCritic.train(experience);
|
|
1469
|
-
}
|
|
1470
|
-
catch (error) {
|
|
1471
|
-
console.error('Actor-Critic training failed:', error);
|
|
1472
|
-
}
|
|
781
|
+
await RLIntegration.trainActorCritic(this.actorCritic, request, result);
|
|
1473
782
|
}
|
|
1474
|
-
/**
|
|
1475
|
-
* Store quality gate pattern in SONA for learning
|
|
1476
|
-
*/
|
|
1477
783
|
async storeQualityPattern(request, result) {
|
|
1478
784
|
if (!this.qesona)
|
|
1479
785
|
return;
|
|
1480
|
-
|
|
1481
|
-
const state = {
|
|
1482
|
-
id: `quality-state-${Date.now()}`,
|
|
1483
|
-
features: [
|
|
1484
|
-
request.metrics.coverage,
|
|
1485
|
-
request.metrics.testsPassing,
|
|
1486
|
-
request.metrics.criticalBugs,
|
|
1487
|
-
request.metrics.codeSmells,
|
|
1488
|
-
request.metrics.securityVulnerabilities,
|
|
1489
|
-
request.metrics.technicalDebt,
|
|
1490
|
-
request.metrics.duplications,
|
|
1491
|
-
],
|
|
1492
|
-
};
|
|
1493
|
-
const action = {
|
|
1494
|
-
type: 'quality-gate-evaluation',
|
|
1495
|
-
value: result.passed ? 1 : 0,
|
|
1496
|
-
};
|
|
1497
|
-
this.qesona.createPattern(state, action, {
|
|
1498
|
-
reward: result.passed ? result.overallScore / 100 : -0.5,
|
|
1499
|
-
success: result.passed,
|
|
1500
|
-
quality: result.overallScore / 100,
|
|
1501
|
-
}, 'quality-assessment', this.domain, {
|
|
1502
|
-
gateName: request.gateName,
|
|
1503
|
-
overallScore: result.overallScore,
|
|
1504
|
-
failedChecks: result.failedChecks,
|
|
1505
|
-
});
|
|
1506
|
-
}
|
|
1507
|
-
catch (error) {
|
|
1508
|
-
console.error('Failed to store quality pattern in SONA:', error);
|
|
1509
|
-
}
|
|
786
|
+
await RLIntegration.storeQualityPattern(this.qesona, request, result, this.domain);
|
|
1510
787
|
}
|
|
1511
|
-
/**
|
|
1512
|
-
* Store quality analysis pattern in SONA
|
|
1513
|
-
*/
|
|
1514
788
|
async storeQualityAnalysisPattern(request, report) {
|
|
1515
789
|
if (!this.qesona)
|
|
1516
790
|
return;
|
|
1517
|
-
|
|
1518
|
-
const state = {
|
|
1519
|
-
id: `quality-analysis-${Date.now()}`,
|
|
1520
|
-
features: [
|
|
1521
|
-
report.score.overall,
|
|
1522
|
-
report.score.coverage,
|
|
1523
|
-
report.score.complexity,
|
|
1524
|
-
report.score.maintainability,
|
|
1525
|
-
report.metrics.length,
|
|
1526
|
-
request.sourceFiles.length,
|
|
1527
|
-
],
|
|
1528
|
-
};
|
|
1529
|
-
const action = {
|
|
1530
|
-
type: 'quality-analysis',
|
|
1531
|
-
value: report.score.overall,
|
|
1532
|
-
};
|
|
1533
|
-
this.qesona.createPattern(state, action, {
|
|
1534
|
-
reward: report.score.overall / 100,
|
|
1535
|
-
success: report.score.overall >= 70,
|
|
1536
|
-
quality: report.score.overall / 100,
|
|
1537
|
-
}, 'quality-assessment', this.domain, {
|
|
1538
|
-
sourceFileCount: request.sourceFiles.length,
|
|
1539
|
-
recommendationCount: report.recommendations.length,
|
|
1540
|
-
});
|
|
1541
|
-
}
|
|
1542
|
-
catch (error) {
|
|
1543
|
-
console.error('Failed to store quality analysis pattern in SONA:', error);
|
|
1544
|
-
}
|
|
791
|
+
await RLIntegration.storeQualityAnalysisPattern(this.qesona, request, report, this.domain);
|
|
1545
792
|
}
|
|
1546
|
-
/**
|
|
1547
|
-
* Enhance quality report with similarity-based pattern matching using Flash Attention
|
|
1548
|
-
*/
|
|
1549
793
|
async enhanceWithSimilarityPatterns(report) {
|
|
1550
794
|
if (!this.flashAttention || !this.qesona)
|
|
1551
795
|
return null;
|
|
1552
|
-
|
|
1553
|
-
// Create embedding from quality metrics
|
|
1554
|
-
const metricsEmbedding = this.createMetricsEmbedding(report);
|
|
1555
|
-
// Find similar historical patterns using SONA
|
|
1556
|
-
const state = {
|
|
1557
|
-
id: `similarity-search-${Date.now()}`,
|
|
1558
|
-
features: [
|
|
1559
|
-
report.score.overall,
|
|
1560
|
-
report.score.coverage,
|
|
1561
|
-
report.score.complexity,
|
|
1562
|
-
report.score.maintainability,
|
|
1563
|
-
],
|
|
1564
|
-
};
|
|
1565
|
-
const adaptation = await this.qesona.adaptPattern(state, 'quality-assessment', this.domain);
|
|
1566
|
-
if (!adaptation.success || !adaptation.pattern) {
|
|
1567
|
-
return null;
|
|
1568
|
-
}
|
|
1569
|
-
// Add insights from similar patterns to recommendations
|
|
1570
|
-
const additionalRecommendations = [];
|
|
1571
|
-
if (adaptation.pattern.metadata) {
|
|
1572
|
-
const meta = adaptation.pattern.metadata;
|
|
1573
|
-
if (meta.similarIssues && meta.similarIssues.length > 0) {
|
|
1574
|
-
additionalRecommendations.push({
|
|
1575
|
-
type: 'improvement',
|
|
1576
|
-
title: 'Similar Quality Patterns Found',
|
|
1577
|
-
description: `Found ${adaptation.similarity.toFixed(0)}% similar historical patterns: ${meta.similarIssues.slice(0, 3).join(', ')}`,
|
|
1578
|
-
impact: 'medium',
|
|
1579
|
-
effort: 'low',
|
|
1580
|
-
});
|
|
1581
|
-
}
|
|
1582
|
-
}
|
|
1583
|
-
return {
|
|
1584
|
-
...report,
|
|
1585
|
-
recommendations: [...report.recommendations, ...additionalRecommendations],
|
|
1586
|
-
};
|
|
1587
|
-
}
|
|
1588
|
-
catch (error) {
|
|
1589
|
-
console.error('Failed to enhance with similarity patterns:', error);
|
|
1590
|
-
return null;
|
|
1591
|
-
}
|
|
1592
|
-
}
|
|
1593
|
-
/**
|
|
1594
|
-
* Create embedding from quality metrics for similarity search
|
|
1595
|
-
*/
|
|
1596
|
-
createMetricsEmbedding(report) {
|
|
1597
|
-
const features = [
|
|
1598
|
-
report.score.overall / 100,
|
|
1599
|
-
report.score.coverage / 100,
|
|
1600
|
-
report.score.complexity / 100,
|
|
1601
|
-
report.score.maintainability / 100,
|
|
1602
|
-
report.score.security / 100,
|
|
1603
|
-
...report.metrics.map(m => m.value / 100),
|
|
1604
|
-
];
|
|
1605
|
-
// Pad to 384 dimensions
|
|
1606
|
-
while (features.length < 384) {
|
|
1607
|
-
features.push(0);
|
|
1608
|
-
}
|
|
1609
|
-
return new Float32Array(features.slice(0, 384));
|
|
796
|
+
return RLIntegration.enhanceWithSimilarityPatterns(report, this.flashAttention, this.qesona, this.domain);
|
|
1610
797
|
}
|
|
1611
798
|
// ============================================================================
|
|
1612
799
|
// V3 Integration: ClaimVerifier Methods (Phase 4)
|
|
@@ -1615,170 +802,19 @@ export class QualityAssessmentCoordinator {
|
|
|
1615
802
|
* Initialize ClaimVerifier for report verification
|
|
1616
803
|
*/
|
|
1617
804
|
async initializeClaimVerifier() {
|
|
1618
|
-
|
|
1619
|
-
const rootDir = this.config.claimVerifierRootDir || process.cwd();
|
|
1620
|
-
this.claimVerifier = createClaimVerifierService({
|
|
1621
|
-
rootDir,
|
|
1622
|
-
verifier: {
|
|
1623
|
-
enableStatistics: true,
|
|
1624
|
-
enableMultiModel: false, // Use consensus engine separately for multi-model
|
|
1625
|
-
defaultConfidenceThreshold: 0.7,
|
|
1626
|
-
},
|
|
1627
|
-
});
|
|
1628
|
-
}
|
|
1629
|
-
catch (error) {
|
|
1630
|
-
throw new Error(`Failed to initialize ClaimVerifier: ${error instanceof Error ? error.message : String(error)}`);
|
|
1631
|
-
}
|
|
805
|
+
this.claimVerifier = await ClaimVerifierHelpers.initializeClaimVerifier(this.config.claimVerifierRootDir);
|
|
1632
806
|
}
|
|
1633
|
-
/**
|
|
1634
|
-
* Verify a quality report's claims before returning
|
|
1635
|
-
*
|
|
1636
|
-
* Converts QualityReport to QEReport format and verifies all claims.
|
|
1637
|
-
* Adds verification metadata to the report.
|
|
1638
|
-
*
|
|
1639
|
-
* @param report - The quality report to verify
|
|
1640
|
-
* @returns The report with verification status, or original if verification disabled/fails
|
|
1641
|
-
*/
|
|
1642
807
|
async verifyQualityReportClaims(report) {
|
|
1643
808
|
if (!this.config.enableClaimVerification || !this.claimVerifier) {
|
|
1644
809
|
return report;
|
|
1645
810
|
}
|
|
1646
|
-
|
|
1647
|
-
// Convert QualityReport to QEReport format
|
|
1648
|
-
const qeReport = this.convertToQEReport(report, 'quality-analysis');
|
|
1649
|
-
if (qeReport.claims.length === 0) {
|
|
1650
|
-
return report;
|
|
1651
|
-
}
|
|
1652
|
-
// Verify the report
|
|
1653
|
-
const verification = await this.claimVerifier.verifyReport(qeReport);
|
|
1654
|
-
if (!verification.success) {
|
|
1655
|
-
console.warn('[QualityAssessment] Claim verification failed:', verification.error);
|
|
1656
|
-
return report;
|
|
1657
|
-
}
|
|
1658
|
-
// Annotate report with verification status
|
|
1659
|
-
return {
|
|
1660
|
-
...report,
|
|
1661
|
-
claimVerification: {
|
|
1662
|
-
verified: verification.value.passed,
|
|
1663
|
-
confidence: verification.value.overallConfidence,
|
|
1664
|
-
unverifiedClaims: verification.value.flaggedClaims.length,
|
|
1665
|
-
},
|
|
1666
|
-
};
|
|
1667
|
-
}
|
|
1668
|
-
catch (error) {
|
|
1669
|
-
console.error('[QualityAssessment] Failed to verify report claims:', error);
|
|
1670
|
-
return report;
|
|
1671
|
-
}
|
|
811
|
+
return ClaimVerifierHelpers.verifyQualityReportClaims(report, this.claimVerifier);
|
|
1672
812
|
}
|
|
1673
|
-
/**
|
|
1674
|
-
* Verify a gate result's claims before returning
|
|
1675
|
-
*/
|
|
1676
813
|
async verifyGateResultClaims(result) {
|
|
1677
814
|
if (!this.config.enableClaimVerification || !this.claimVerifier) {
|
|
1678
815
|
return result;
|
|
1679
816
|
}
|
|
1680
|
-
|
|
1681
|
-
// Convert GateResult to QEReport format
|
|
1682
|
-
const qeReport = this.convertGateResultToQEReport(result);
|
|
1683
|
-
if (qeReport.claims.length === 0) {
|
|
1684
|
-
return result;
|
|
1685
|
-
}
|
|
1686
|
-
// Verify the report
|
|
1687
|
-
const verification = await this.claimVerifier.verifyReport(qeReport);
|
|
1688
|
-
if (!verification.success) {
|
|
1689
|
-
console.warn('[QualityAssessment] Gate claim verification failed:', verification.error);
|
|
1690
|
-
return result;
|
|
1691
|
-
}
|
|
1692
|
-
// Annotate result with verification status
|
|
1693
|
-
return {
|
|
1694
|
-
...result,
|
|
1695
|
-
claimVerification: {
|
|
1696
|
-
verified: verification.value.passed,
|
|
1697
|
-
confidence: verification.value.overallConfidence,
|
|
1698
|
-
unverifiedClaims: verification.value.flaggedClaims.length,
|
|
1699
|
-
},
|
|
1700
|
-
};
|
|
1701
|
-
}
|
|
1702
|
-
catch (error) {
|
|
1703
|
-
console.error('[QualityAssessment] Failed to verify gate claims:', error);
|
|
1704
|
-
return result;
|
|
1705
|
-
}
|
|
1706
|
-
}
|
|
1707
|
-
/**
|
|
1708
|
-
* Convert QualityReport to QEReport format for claim verification
|
|
1709
|
-
*/
|
|
1710
|
-
convertToQEReport(report, type) {
|
|
1711
|
-
const claims = [];
|
|
1712
|
-
// Extract claims from metrics
|
|
1713
|
-
for (const metric of report.metrics) {
|
|
1714
|
-
claims.push({
|
|
1715
|
-
id: `metric-${metric.name}-${Date.now()}`,
|
|
1716
|
-
type: 'metric-count',
|
|
1717
|
-
statement: `Metric ${metric.name} = ${metric.value}`,
|
|
1718
|
-
evidence: [],
|
|
1719
|
-
sourceAgent: 'quality-analyzer',
|
|
1720
|
-
sourceAgentType: 'analyzer',
|
|
1721
|
-
severity: metric.value < 50 ? 'high' : metric.value < 70 ? 'medium' : 'low',
|
|
1722
|
-
timestamp: new Date(),
|
|
1723
|
-
metadata: {
|
|
1724
|
-
name: metric.name,
|
|
1725
|
-
value: metric.value,
|
|
1726
|
-
},
|
|
1727
|
-
});
|
|
1728
|
-
}
|
|
1729
|
-
// Extract claims from score
|
|
1730
|
-
if (report.score.coverage < 80) {
|
|
1731
|
-
claims.push({
|
|
1732
|
-
id: `coverage-${Date.now()}`,
|
|
1733
|
-
type: 'coverage-claim',
|
|
1734
|
-
statement: `Code coverage is ${report.score.coverage}%`,
|
|
1735
|
-
evidence: [],
|
|
1736
|
-
sourceAgent: 'quality-analyzer',
|
|
1737
|
-
sourceAgentType: 'analyzer',
|
|
1738
|
-
severity: report.score.coverage < 50 ? 'critical' : 'high',
|
|
1739
|
-
timestamp: new Date(),
|
|
1740
|
-
metadata: { coverage: report.score.coverage },
|
|
1741
|
-
});
|
|
1742
|
-
}
|
|
1743
|
-
return {
|
|
1744
|
-
id: `quality-report-${Date.now()}`,
|
|
1745
|
-
type,
|
|
1746
|
-
claims,
|
|
1747
|
-
generatedAt: new Date(),
|
|
1748
|
-
sourceAgent: 'quality-assessment-coordinator',
|
|
1749
|
-
};
|
|
1750
|
-
}
|
|
1751
|
-
/**
|
|
1752
|
-
* Convert GateResult to QEReport format for claim verification
|
|
1753
|
-
*/
|
|
1754
|
-
convertGateResultToQEReport(result) {
|
|
1755
|
-
const claims = [];
|
|
1756
|
-
// Extract claims from checks
|
|
1757
|
-
for (const check of result.checks) {
|
|
1758
|
-
claims.push({
|
|
1759
|
-
id: `gate-check-${check.name}-${Date.now()}`,
|
|
1760
|
-
type: 'metric-count',
|
|
1761
|
-
statement: `Gate check '${check.name}': ${check.value} (threshold: ${check.threshold})`,
|
|
1762
|
-
evidence: [],
|
|
1763
|
-
sourceAgent: 'quality-gate',
|
|
1764
|
-
sourceAgentType: 'validator',
|
|
1765
|
-
severity: check.passed ? 'low' : check.severity || 'medium',
|
|
1766
|
-
timestamp: new Date(),
|
|
1767
|
-
metadata: {
|
|
1768
|
-
checkName: check.name,
|
|
1769
|
-
value: check.value,
|
|
1770
|
-
threshold: check.threshold,
|
|
1771
|
-
passed: check.passed,
|
|
1772
|
-
},
|
|
1773
|
-
});
|
|
1774
|
-
}
|
|
1775
|
-
return {
|
|
1776
|
-
id: `gate-result-${Date.now()}`,
|
|
1777
|
-
type: 'gate-evaluation',
|
|
1778
|
-
claims,
|
|
1779
|
-
generatedAt: new Date(),
|
|
1780
|
-
sourceAgent: 'quality-assessment-coordinator',
|
|
1781
|
-
};
|
|
817
|
+
return ClaimVerifierHelpers.verifyGateResultClaims(result, this.claimVerifier);
|
|
1782
818
|
}
|
|
1783
819
|
/**
|
|
1784
820
|
* Get ClaimVerifier statistics
|