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
|
@@ -3,18 +3,19 @@
|
|
|
3
3
|
* ADR-025: Enhanced Init with Self-Configuration
|
|
4
4
|
*
|
|
5
5
|
* Interactive wizard for AQE initialization with visual feedback.
|
|
6
|
+
*
|
|
7
|
+
* This is a facade module. Implementation details are extracted to:
|
|
8
|
+
* - init-wizard-hooks.ts (hook configuration, MCP, CLAUDE.md generation)
|
|
9
|
+
* - init-wizard-migration.ts (V2 detection, migration, config conversion)
|
|
10
|
+
* - init-wizard-steps.ts (persistence, learning, workers, skills, agents, config)
|
|
6
11
|
*/
|
|
7
|
-
import {
|
|
8
|
-
import { join, dirname } from 'path';
|
|
9
|
-
import { createRequire } from 'module';
|
|
10
|
-
// Create require for CommonJS modules (better-sqlite3) in ESM context
|
|
11
|
-
const require = createRequire(import.meta.url);
|
|
12
|
-
import { createDefaultConfig, getAQEVersion } from './types.js';
|
|
12
|
+
import { createDefaultConfig } from './types.js';
|
|
13
13
|
import { createProjectAnalyzer } from './project-analyzer.js';
|
|
14
14
|
import { createSelfConfigurator } from './self-configurator.js';
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
15
|
+
import { detectV2Installation, runV2Migration, writeVersionToDb, } from './init-wizard-migration.js';
|
|
16
|
+
import { configureHooks, configureMCP, generateCLAUDEmd, } from './init-wizard-hooks.js';
|
|
17
|
+
import { toErrorMessage } from '../shared/error-utils.js';
|
|
18
|
+
import { initializePersistenceDatabase, checkCodeIntelligenceIndex, runCodeIntelligenceScan, getKGEntryCount, initializeLearningSystem, startWorkers, installSkills, installAgents, installN8n, saveConfig, } from './init-wizard-steps.js';
|
|
18
19
|
// ============================================================================
|
|
19
20
|
// Wizard Step Definitions
|
|
20
21
|
// ============================================================================
|
|
@@ -98,150 +99,6 @@ export class InitOrchestrator {
|
|
|
98
99
|
this.analyzer = createProjectAnalyzer(options.projectRoot);
|
|
99
100
|
this.configurator = createSelfConfigurator({ minimal: options.minimal });
|
|
100
101
|
}
|
|
101
|
-
/**
|
|
102
|
-
* Read AQE version directly from memory.db without full initialization
|
|
103
|
-
* Returns undefined if no version is stored (v2 installations)
|
|
104
|
-
*/
|
|
105
|
-
readVersionFromDb(dbPath) {
|
|
106
|
-
try {
|
|
107
|
-
// Use require (via createRequire) for synchronous loading of native module
|
|
108
|
-
const Database = require('better-sqlite3');
|
|
109
|
-
const db = new Database(dbPath, { readonly: true, fileMustExist: true });
|
|
110
|
-
try {
|
|
111
|
-
// Check if kv_store table exists
|
|
112
|
-
const tableExists = db.prepare(`
|
|
113
|
-
SELECT name FROM sqlite_master
|
|
114
|
-
WHERE type='table' AND name='kv_store'
|
|
115
|
-
`).get();
|
|
116
|
-
if (!tableExists) {
|
|
117
|
-
db.close();
|
|
118
|
-
return undefined;
|
|
119
|
-
}
|
|
120
|
-
// Try to read aqe_version from _system namespace
|
|
121
|
-
const row = db.prepare(`
|
|
122
|
-
SELECT value FROM kv_store
|
|
123
|
-
WHERE key = 'aqe_version' AND namespace = '_system'
|
|
124
|
-
`).get();
|
|
125
|
-
db.close();
|
|
126
|
-
if (row) {
|
|
127
|
-
return JSON.parse(row.value);
|
|
128
|
-
}
|
|
129
|
-
return undefined;
|
|
130
|
-
}
|
|
131
|
-
catch {
|
|
132
|
-
db.close();
|
|
133
|
-
return undefined;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
catch {
|
|
137
|
-
// Database doesn't exist or can't be opened
|
|
138
|
-
return undefined;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
/**
|
|
142
|
-
* Write AQE version to memory.db in _system namespace
|
|
143
|
-
* This marks the installation as v3
|
|
144
|
-
*/
|
|
145
|
-
async writeVersionToDb(version) {
|
|
146
|
-
const memoryDbPath = join(this.projectRoot, '.agentic-qe', 'memory.db');
|
|
147
|
-
try {
|
|
148
|
-
// Ensure directory exists
|
|
149
|
-
const dir = dirname(memoryDbPath);
|
|
150
|
-
if (!existsSync(dir)) {
|
|
151
|
-
mkdirSync(dir, { recursive: true });
|
|
152
|
-
}
|
|
153
|
-
// Use require (via createRequire) for synchronous loading of native module
|
|
154
|
-
const Database = require('better-sqlite3');
|
|
155
|
-
const db = new Database(memoryDbPath);
|
|
156
|
-
try {
|
|
157
|
-
// Ensure kv_store table exists (minimal schema for version storage)
|
|
158
|
-
db.exec(`
|
|
159
|
-
CREATE TABLE IF NOT EXISTS kv_store (
|
|
160
|
-
key TEXT NOT NULL,
|
|
161
|
-
namespace TEXT NOT NULL,
|
|
162
|
-
value TEXT NOT NULL,
|
|
163
|
-
expires_at INTEGER,
|
|
164
|
-
created_at INTEGER DEFAULT (strftime('%s', 'now') * 1000),
|
|
165
|
-
PRIMARY KEY (namespace, key)
|
|
166
|
-
);
|
|
167
|
-
`);
|
|
168
|
-
// Write version to _system namespace
|
|
169
|
-
const now = Date.now();
|
|
170
|
-
db.prepare(`
|
|
171
|
-
INSERT OR REPLACE INTO kv_store (key, namespace, value, created_at)
|
|
172
|
-
VALUES (?, '_system', ?, ?)
|
|
173
|
-
`).run('aqe_version', JSON.stringify(version), now);
|
|
174
|
-
// Also store init timestamp
|
|
175
|
-
db.prepare(`
|
|
176
|
-
INSERT OR REPLACE INTO kv_store (key, namespace, value, created_at)
|
|
177
|
-
VALUES (?, '_system', ?, ?)
|
|
178
|
-
`).run('init_timestamp', JSON.stringify(new Date().toISOString()), now);
|
|
179
|
-
db.close();
|
|
180
|
-
console.log(` ✓ Version ${version} written to memory.db`);
|
|
181
|
-
return true;
|
|
182
|
-
}
|
|
183
|
-
catch (err) {
|
|
184
|
-
db.close();
|
|
185
|
-
console.warn(` ⚠ Could not write version: ${err instanceof Error ? err.message : String(err)}`);
|
|
186
|
-
return false;
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
catch (err) {
|
|
190
|
-
console.warn(` ⚠ Could not open memory.db: ${err instanceof Error ? err.message : String(err)}`);
|
|
191
|
-
return false;
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
/**
|
|
195
|
-
* Detect existing v2 AQE installation
|
|
196
|
-
*
|
|
197
|
-
* Detection logic:
|
|
198
|
-
* 1. If memory.db exists, try to read aqe_version from kv_store._system
|
|
199
|
-
* 2. If version exists and starts with '3.', it's v3 - not detected
|
|
200
|
-
* 3. If no version or version < 3.0.0, and v2 markers exist, it's v2
|
|
201
|
-
*/
|
|
202
|
-
async detectV2Installation() {
|
|
203
|
-
const memoryDbPath = join(this.projectRoot, '.agentic-qe', 'memory.db');
|
|
204
|
-
const configPath = join(this.projectRoot, '.agentic-qe', 'config');
|
|
205
|
-
const agentsPath = join(this.projectRoot, '.claude', 'agents');
|
|
206
|
-
const v2ConfigFile = join(this.projectRoot, '.agentic-qe', 'config', 'learning.json');
|
|
207
|
-
const hasMemoryDb = existsSync(memoryDbPath);
|
|
208
|
-
const hasConfig = existsSync(configPath);
|
|
209
|
-
const hasAgents = existsSync(agentsPath);
|
|
210
|
-
// Check for v2-specific markers (v3 uses config.yaml, v2 uses config/*.json)
|
|
211
|
-
const hasV2ConfigFiles = existsSync(v2ConfigFile);
|
|
212
|
-
const hasV3ConfigYaml = existsSync(join(this.projectRoot, '.agentic-qe', 'config.yaml'));
|
|
213
|
-
// Try to read version from memory.db
|
|
214
|
-
let version;
|
|
215
|
-
let isV3Installation = false;
|
|
216
|
-
if (hasMemoryDb) {
|
|
217
|
-
version = this.readVersionFromDb(memoryDbPath);
|
|
218
|
-
if (version) {
|
|
219
|
-
// Check if it's a v3 installation (version starts with '3.')
|
|
220
|
-
isV3Installation = version.startsWith('3.');
|
|
221
|
-
}
|
|
222
|
-
else {
|
|
223
|
-
// No version stored - this is a v2 installation
|
|
224
|
-
version = '2.x.x';
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
// Detected as v2 if:
|
|
228
|
-
// 1. Has memory.db but no v3 version marker, OR
|
|
229
|
-
// 2. Has v2 config files but no v3 config.yaml
|
|
230
|
-
// AND it's not already a v3 installation
|
|
231
|
-
const detected = !isV3Installation && hasMemoryDb && (!version?.startsWith('3.') || // No v3 version in DB
|
|
232
|
-
(hasV2ConfigFiles && !hasV3ConfigYaml) // v2 config files present
|
|
233
|
-
);
|
|
234
|
-
return {
|
|
235
|
-
detected,
|
|
236
|
-
memoryDbPath: hasMemoryDb ? memoryDbPath : undefined,
|
|
237
|
-
configPath: hasConfig ? configPath : undefined,
|
|
238
|
-
agentsPath: hasAgents ? agentsPath : undefined,
|
|
239
|
-
hasMemoryDb,
|
|
240
|
-
hasConfig,
|
|
241
|
-
hasAgents,
|
|
242
|
-
version,
|
|
243
|
-
};
|
|
244
|
-
}
|
|
245
102
|
/**
|
|
246
103
|
* Run the full initialization process
|
|
247
104
|
*/
|
|
@@ -249,63 +106,11 @@ export class InitOrchestrator {
|
|
|
249
106
|
const startTime = Date.now();
|
|
250
107
|
try {
|
|
251
108
|
// Step 0: Check for existing v2 installation
|
|
252
|
-
const v2Detection = await this.
|
|
109
|
+
const v2Detection = await detectV2Installation(this.projectRoot);
|
|
253
110
|
if (v2Detection.detected) {
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
console.log('Found v2 installation at:');
|
|
258
|
-
if (v2Detection.hasMemoryDb) {
|
|
259
|
-
console.log(` • Memory DB: .agentic-qe/memory.db`);
|
|
260
|
-
}
|
|
261
|
-
if (v2Detection.hasConfig) {
|
|
262
|
-
console.log(` • Config: .agentic-qe/config/`);
|
|
263
|
-
}
|
|
264
|
-
if (v2Detection.hasAgents) {
|
|
265
|
-
console.log(` • Agents: .claude/agents/`);
|
|
266
|
-
}
|
|
267
|
-
console.log('');
|
|
268
|
-
if (this.options.autoMigrate) {
|
|
269
|
-
// Auto-migrate mode - proceed with migration integrated
|
|
270
|
-
console.log('🔄 Auto-migrate mode enabled. Running migration...\n');
|
|
271
|
-
await this.runV2Migration(v2Detection);
|
|
272
|
-
}
|
|
273
|
-
else {
|
|
274
|
-
// Warn and suggest migration
|
|
275
|
-
console.log('📋 RECOMMENDED: Run migration before init:\n');
|
|
276
|
-
console.log(' npx aqe migrate status # Check what needs migration');
|
|
277
|
-
console.log(' npx aqe migrate run --dry-run # Preview changes');
|
|
278
|
-
console.log(' npx aqe migrate run # Execute migration\n');
|
|
279
|
-
console.log('Or continue with:');
|
|
280
|
-
console.log(' aqe init --auto-migrate # Auto-migrate during init\n');
|
|
281
|
-
console.log('═'.repeat(60) + '\n');
|
|
282
|
-
// Return early with migration-required status
|
|
283
|
-
return {
|
|
284
|
-
success: false,
|
|
285
|
-
config: createDefaultConfig('unknown', this.projectRoot),
|
|
286
|
-
steps: [{
|
|
287
|
-
step: 'V2 Detection',
|
|
288
|
-
status: 'error',
|
|
289
|
-
message: 'Existing v2 installation detected. Run migration first.',
|
|
290
|
-
durationMs: Date.now() - startTime,
|
|
291
|
-
}],
|
|
292
|
-
summary: {
|
|
293
|
-
projectAnalyzed: false,
|
|
294
|
-
configGenerated: false,
|
|
295
|
-
codeIntelligenceIndexed: 0,
|
|
296
|
-
patternsLoaded: 0,
|
|
297
|
-
skillsInstalled: 0,
|
|
298
|
-
agentsInstalled: 0,
|
|
299
|
-
hooksConfigured: false,
|
|
300
|
-
mcpConfigured: false,
|
|
301
|
-
claudeMdGenerated: false,
|
|
302
|
-
workersStarted: 0,
|
|
303
|
-
},
|
|
304
|
-
totalDurationMs: Date.now() - startTime,
|
|
305
|
-
timestamp: new Date(),
|
|
306
|
-
v2Detected: true, // New field to indicate v2 was detected
|
|
307
|
-
};
|
|
308
|
-
}
|
|
111
|
+
const earlyResult = this.handleV2Detection(v2Detection, startTime);
|
|
112
|
+
if (earlyResult)
|
|
113
|
+
return earlyResult;
|
|
309
114
|
}
|
|
310
115
|
// Step 1: Analyze project
|
|
311
116
|
const analysis = await this.runStep('Project Analysis', async () => {
|
|
@@ -320,66 +125,64 @@ export class InitOrchestrator {
|
|
|
320
125
|
});
|
|
321
126
|
// Step 3: Initialize persistence database (REQUIRED)
|
|
322
127
|
await this.runStep('Persistence Database Setup', async () => {
|
|
323
|
-
return await this.
|
|
128
|
+
return await initializePersistenceDatabase(this.projectRoot);
|
|
324
129
|
});
|
|
325
|
-
// Step 3.5: Code Intelligence Pre-Scan
|
|
130
|
+
// Step 3.5: Code Intelligence Pre-Scan
|
|
326
131
|
const codeIntelligenceResult = await this.runStep('Code Intelligence Pre-Scan', async () => {
|
|
327
|
-
const hasIndex = await this.
|
|
132
|
+
const hasIndex = await checkCodeIntelligenceIndex(this.projectRoot);
|
|
328
133
|
if (!hasIndex) {
|
|
329
|
-
// New project or no existing index - run full scan
|
|
330
134
|
console.log(' Building knowledge graph for code intelligence...');
|
|
331
|
-
return await
|
|
135
|
+
return await runCodeIntelligenceScan(analysis.projectRoot);
|
|
332
136
|
}
|
|
333
|
-
|
|
334
|
-
const entryCount = await this.getKGEntryCount();
|
|
137
|
+
const entryCount = await getKGEntryCount(this.projectRoot);
|
|
335
138
|
console.log(` Using existing code intelligence index (${entryCount} entries)`);
|
|
336
139
|
return { status: 'existing', entries: entryCount };
|
|
337
140
|
});
|
|
338
141
|
// Step 4: Initialize learning system
|
|
339
142
|
const patternsLoaded = await this.runStep('Learning System Setup', async () => {
|
|
340
143
|
if (config.learning.enabled && !this.options.skipPatterns) {
|
|
341
|
-
return await this.
|
|
144
|
+
return await initializeLearningSystem(this.projectRoot, config, this.options.pretrainedLibrary);
|
|
342
145
|
}
|
|
343
146
|
return 0;
|
|
344
147
|
});
|
|
345
148
|
// Step 5: Configure hooks
|
|
346
149
|
const hooksConfigured = await this.runStep('Hooks Configuration', async () => {
|
|
347
150
|
if (config.hooks.claudeCode) {
|
|
348
|
-
return await this.
|
|
151
|
+
return await configureHooks(this.projectRoot, config);
|
|
349
152
|
}
|
|
350
153
|
return false;
|
|
351
154
|
});
|
|
352
155
|
// Step 6: Configure MCP server
|
|
353
156
|
const mcpConfigured = await this.runStep('MCP Configuration', async () => {
|
|
354
|
-
return await this.
|
|
157
|
+
return await configureMCP(this.projectRoot);
|
|
355
158
|
});
|
|
356
159
|
// Step 7: Generate CLAUDE.md
|
|
357
160
|
const claudeMdGenerated = await this.runStep('CLAUDE.md Generation', async () => {
|
|
358
|
-
return await this.
|
|
161
|
+
return await generateCLAUDEmd(this.projectRoot, config);
|
|
359
162
|
});
|
|
360
163
|
// Step 8: Start workers
|
|
361
164
|
const workersStarted = await this.runStep('Background Workers', async () => {
|
|
362
165
|
if (config.workers.daemonAutoStart) {
|
|
363
|
-
return await this.
|
|
166
|
+
return await startWorkers(this.projectRoot, config);
|
|
364
167
|
}
|
|
365
168
|
return 0;
|
|
366
169
|
});
|
|
367
170
|
// Step 9: Install skills
|
|
368
171
|
const skillsInstalled = await this.runStep('Skills Installation', async () => {
|
|
369
172
|
if (config.skills.install) {
|
|
370
|
-
return await this.
|
|
173
|
+
return await installSkills(this.projectRoot, config);
|
|
371
174
|
}
|
|
372
175
|
return 0;
|
|
373
176
|
});
|
|
374
177
|
// Step 10: Install agents
|
|
375
178
|
const agentsInstalled = await this.runStep('Agents Installation', async () => {
|
|
376
|
-
return await this.
|
|
179
|
+
return await installAgents(this.projectRoot);
|
|
377
180
|
});
|
|
378
181
|
// Step 11: Install n8n platform (optional)
|
|
379
182
|
let n8nInstalled;
|
|
380
183
|
if (this.options.withN8n) {
|
|
381
184
|
const n8nResult = await this.runStep('N8n Platform Installation', async () => {
|
|
382
|
-
return await this.
|
|
185
|
+
return await installN8n(this.projectRoot, config, this.options.n8nApiConfig);
|
|
383
186
|
});
|
|
384
187
|
if (n8nResult) {
|
|
385
188
|
n8nInstalled = n8nResult;
|
|
@@ -387,11 +190,11 @@ export class InitOrchestrator {
|
|
|
387
190
|
}
|
|
388
191
|
// Step 12: Write configuration file
|
|
389
192
|
await this.runStep('Save Configuration', async () => {
|
|
390
|
-
return await this.
|
|
193
|
+
return await saveConfig(this.projectRoot, config);
|
|
391
194
|
});
|
|
392
195
|
// Step 13: Write version marker to memory.db
|
|
393
196
|
await this.runStep('Version Marker', async () => {
|
|
394
|
-
return await this.
|
|
197
|
+
return await writeVersionToDb(this.projectRoot, config.version);
|
|
395
198
|
});
|
|
396
199
|
return {
|
|
397
200
|
success: true,
|
|
@@ -415,11 +218,10 @@ export class InitOrchestrator {
|
|
|
415
218
|
};
|
|
416
219
|
}
|
|
417
220
|
catch (error) {
|
|
418
|
-
// Add error step
|
|
419
221
|
this.steps.push({
|
|
420
222
|
step: 'Initialization Failed',
|
|
421
223
|
status: 'error',
|
|
422
|
-
message:
|
|
224
|
+
message: toErrorMessage(error),
|
|
423
225
|
durationMs: 0,
|
|
424
226
|
});
|
|
425
227
|
return {
|
|
@@ -450,242 +252,62 @@ export class InitOrchestrator {
|
|
|
450
252
|
return WIZARD_STEPS;
|
|
451
253
|
}
|
|
452
254
|
/**
|
|
453
|
-
*
|
|
454
|
-
*/
|
|
455
|
-
async runV2Migration(v2Detection) {
|
|
456
|
-
try {
|
|
457
|
-
// Import migration module dynamically to avoid circular deps
|
|
458
|
-
const { V2ToV3Migrator } = await import('../learning/v2-to-v3-migration.js');
|
|
459
|
-
// Step 1: Run the actual data migration (patterns, experiences, concept graph)
|
|
460
|
-
if (v2Detection.memoryDbPath) {
|
|
461
|
-
console.log(' Migrating V2 data to V3 format...');
|
|
462
|
-
const v3PatternsDbPath = join(this.projectRoot, '.agentic-qe', 'memory.db');
|
|
463
|
-
const migrator = new V2ToV3Migrator({
|
|
464
|
-
v2DbPath: v2Detection.memoryDbPath,
|
|
465
|
-
v3PatternsDbPath,
|
|
466
|
-
onProgress: (progress) => {
|
|
467
|
-
console.log(` ${progress.stage}: ${progress.message}`);
|
|
468
|
-
},
|
|
469
|
-
});
|
|
470
|
-
const result = await migrator.migrate();
|
|
471
|
-
if (result.success) {
|
|
472
|
-
console.log(` ✓ Migrated ${result.tablesMigrated.length} tables:`);
|
|
473
|
-
for (const [table, count] of Object.entries(result.counts)) {
|
|
474
|
-
console.log(` - ${table}: ${count} entries`);
|
|
475
|
-
}
|
|
476
|
-
}
|
|
477
|
-
else {
|
|
478
|
-
console.warn(` ⚠ Migration completed with errors: ${result.errors.join(', ')}`);
|
|
479
|
-
}
|
|
480
|
-
}
|
|
481
|
-
// Step 2: Migrate config files (v2 JSON → v3 YAML)
|
|
482
|
-
await this.migrateV2Config(v2Detection);
|
|
483
|
-
// Step 3: Remove v2 QE agents (they will be replaced by v3 agents)
|
|
484
|
-
await this.removeV2QEAgents();
|
|
485
|
-
// Step 4: Write version marker IMMEDIATELY to prevent re-detection
|
|
486
|
-
// This is critical - if we don't do this, subsequent init calls will re-ask for migration
|
|
487
|
-
console.log(' Writing v3 version marker...');
|
|
488
|
-
await this.writeVersionToDb('3.0.0-migrated');
|
|
489
|
-
console.log('✓ V2 to V3 migration completed\n');
|
|
490
|
-
}
|
|
491
|
-
catch (error) {
|
|
492
|
-
console.warn(`⚠ Migration warning: ${error instanceof Error ? error.message : String(error)}`);
|
|
493
|
-
console.log(' Continuing with init (v2 data preserved)...\n');
|
|
494
|
-
}
|
|
495
|
-
}
|
|
496
|
-
/**
|
|
497
|
-
* Remove v2 QE agents from .claude/agents/ root folder
|
|
498
|
-
* V2 QE agents are replaced by v3 agents in .claude/agents/v3/
|
|
499
|
-
* Removes qe-* files and specific v2 agents (qx-partner, base-template-generator)
|
|
500
|
-
*/
|
|
501
|
-
async removeV2QEAgents() {
|
|
502
|
-
const agentsDir = join(this.projectRoot, '.claude', 'agents');
|
|
503
|
-
if (!existsSync(agentsDir)) {
|
|
504
|
-
return;
|
|
505
|
-
}
|
|
506
|
-
// V2 agents that don't follow qe-* naming but should be migrated
|
|
507
|
-
// These have v3 equivalents (qe-qx-partner) or are superseded
|
|
508
|
-
const V2_LEGACY_AGENTS = [
|
|
509
|
-
'qx-partner.md',
|
|
510
|
-
'base-template-generator.md',
|
|
511
|
-
];
|
|
512
|
-
try {
|
|
513
|
-
const entries = readdirSync(agentsDir);
|
|
514
|
-
const v2QEAgents = [];
|
|
515
|
-
for (const entry of entries) {
|
|
516
|
-
// Remove qe-* agent files (not directories, not other agents)
|
|
517
|
-
if (entry.startsWith('qe-') && entry.endsWith('.md')) {
|
|
518
|
-
const fullPath = join(agentsDir, entry);
|
|
519
|
-
const stat = statSync(fullPath);
|
|
520
|
-
if (stat.isFile()) {
|
|
521
|
-
v2QEAgents.push(entry);
|
|
522
|
-
}
|
|
523
|
-
}
|
|
524
|
-
// Also remove legacy v2 agents that don't follow qe-* naming
|
|
525
|
-
else if (V2_LEGACY_AGENTS.includes(entry)) {
|
|
526
|
-
const fullPath = join(agentsDir, entry);
|
|
527
|
-
const stat = statSync(fullPath);
|
|
528
|
-
if (stat.isFile()) {
|
|
529
|
-
v2QEAgents.push(entry);
|
|
530
|
-
}
|
|
531
|
-
}
|
|
532
|
-
}
|
|
533
|
-
if (v2QEAgents.length === 0) {
|
|
534
|
-
return;
|
|
535
|
-
}
|
|
536
|
-
console.log(` Removing ${v2QEAgents.length} v2 QE agents from .claude/agents/...`);
|
|
537
|
-
// Create backup directory
|
|
538
|
-
const backupDir = join(this.projectRoot, '.agentic-qe', 'backup', 'v2-agents');
|
|
539
|
-
if (!existsSync(backupDir)) {
|
|
540
|
-
mkdirSync(backupDir, { recursive: true });
|
|
541
|
-
}
|
|
542
|
-
// Move v2 agents to backup (don't delete, just move)
|
|
543
|
-
const { renameSync } = await import('fs');
|
|
544
|
-
for (const agent of v2QEAgents) {
|
|
545
|
-
const sourcePath = join(agentsDir, agent);
|
|
546
|
-
const backupPath = join(backupDir, agent);
|
|
547
|
-
try {
|
|
548
|
-
// Copy to backup first
|
|
549
|
-
copyFileSync(sourcePath, backupPath);
|
|
550
|
-
// Then remove original
|
|
551
|
-
unlinkSync(sourcePath);
|
|
552
|
-
}
|
|
553
|
-
catch (err) {
|
|
554
|
-
console.warn(` ⚠ Could not remove ${agent}: ${err instanceof Error ? err.message : String(err)}`);
|
|
555
|
-
}
|
|
556
|
-
}
|
|
557
|
-
console.log(` ✓ Moved ${v2QEAgents.length} v2 agents to .agentic-qe/backup/v2-agents/`);
|
|
558
|
-
console.log(' V3 agents will be installed to .claude/agents/v3/');
|
|
559
|
-
}
|
|
560
|
-
catch (error) {
|
|
561
|
-
console.warn(` ⚠ Could not remove v2 agents: ${error instanceof Error ? error.message : String(error)}`);
|
|
562
|
-
}
|
|
563
|
-
}
|
|
564
|
-
/**
|
|
565
|
-
* Migrate v2 config files to v3 format
|
|
255
|
+
* Handle V2 detection - returns early result if migration not auto, null otherwise.
|
|
566
256
|
*/
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
migratedAt: new Date().toISOString(),
|
|
587
|
-
project: {
|
|
588
|
-
name: 'migrated-project',
|
|
589
|
-
root: this.projectRoot,
|
|
590
|
-
type: 'unknown',
|
|
591
|
-
},
|
|
592
|
-
learning: {
|
|
593
|
-
enabled: learningConfig?.enabled ?? true,
|
|
594
|
-
embeddingModel: 'transformer',
|
|
595
|
-
hnswConfig: {
|
|
596
|
-
M: 8,
|
|
597
|
-
efConstruction: 100,
|
|
598
|
-
efSearch: 50,
|
|
599
|
-
},
|
|
600
|
-
qualityThreshold: learningConfig?.qualityThreshold ?? 0.5,
|
|
601
|
-
promotionThreshold: 2,
|
|
602
|
-
pretrainedPatterns: true,
|
|
603
|
-
// Preserve v2 learning settings
|
|
604
|
-
v2Settings: learningConfig,
|
|
605
|
-
},
|
|
606
|
-
routing: {
|
|
607
|
-
mode: 'ml',
|
|
608
|
-
confidenceThreshold: 0.7,
|
|
609
|
-
feedbackEnabled: true,
|
|
610
|
-
},
|
|
611
|
-
workers: {
|
|
612
|
-
enabled: ['pattern-consolidator'],
|
|
613
|
-
intervals: {
|
|
614
|
-
'pattern-consolidator': 1800000,
|
|
615
|
-
'coverage-gap-scanner': 3600000,
|
|
616
|
-
'flaky-test-detector': 7200000,
|
|
617
|
-
},
|
|
618
|
-
maxConcurrent: 2,
|
|
619
|
-
daemonAutoStart: true,
|
|
620
|
-
},
|
|
621
|
-
hooks: {
|
|
622
|
-
claudeCode: true,
|
|
623
|
-
preCommit: false,
|
|
624
|
-
ciIntegration: codeIntelConfig?.ciIntegration ?? false,
|
|
625
|
-
},
|
|
626
|
-
skills: {
|
|
627
|
-
install: true,
|
|
628
|
-
installV2: true,
|
|
629
|
-
installV3: true,
|
|
630
|
-
overwrite: false,
|
|
631
|
-
},
|
|
632
|
-
domains: {
|
|
633
|
-
// Enable ALL domains - v3 supports all 12 DDD domains
|
|
634
|
-
// Limiting to 3 causes "No factory registered" errors in fleet_init
|
|
635
|
-
enabled: [
|
|
636
|
-
'test-generation',
|
|
637
|
-
'test-execution',
|
|
638
|
-
'coverage-analysis',
|
|
639
|
-
'quality-assessment',
|
|
640
|
-
'defect-intelligence',
|
|
641
|
-
'requirements-validation',
|
|
642
|
-
'code-intelligence',
|
|
643
|
-
'security-compliance',
|
|
644
|
-
'contract-testing',
|
|
645
|
-
'visual-accessibility',
|
|
646
|
-
'chaos-resilience',
|
|
647
|
-
'learning-optimization',
|
|
648
|
-
],
|
|
649
|
-
disabled: [],
|
|
650
|
-
},
|
|
651
|
-
agents: {
|
|
652
|
-
maxConcurrent: 5,
|
|
653
|
-
defaultTimeout: 60000,
|
|
654
|
-
},
|
|
655
|
-
// Preserve original v2 configs for reference
|
|
656
|
-
_v2Backup: {
|
|
657
|
-
learning: learningConfig,
|
|
658
|
-
improvement: improvementConfig,
|
|
659
|
-
codeIntelligence: codeIntelConfig,
|
|
660
|
-
},
|
|
661
|
-
};
|
|
662
|
-
// Write v3 config as YAML
|
|
663
|
-
const yaml = await import('yaml');
|
|
664
|
-
const yamlContent = `# Agentic QE v3 Configuration
|
|
665
|
-
# Migrated from v2 on ${new Date().toISOString()}
|
|
666
|
-
# Original v2 settings preserved in _v2Backup section
|
|
667
|
-
|
|
668
|
-
${yaml.stringify(v3Config)}`;
|
|
669
|
-
writeFileSync(v3ConfigPath, yamlContent, 'utf-8');
|
|
670
|
-
console.log(' ✓ V2 config migrated to v3 format');
|
|
671
|
-
}
|
|
672
|
-
catch (error) {
|
|
673
|
-
console.warn(` ⚠ Config migration warning: ${error instanceof Error ? error.message : String(error)}`);
|
|
674
|
-
}
|
|
675
|
-
}
|
|
676
|
-
/**
|
|
677
|
-
* Safely read JSON file, returning null on error
|
|
678
|
-
*/
|
|
679
|
-
readJsonSafe(filePath) {
|
|
680
|
-
try {
|
|
681
|
-
if (!existsSync(filePath))
|
|
682
|
-
return null;
|
|
683
|
-
const content = readFileSync(filePath, 'utf-8');
|
|
684
|
-
return JSON.parse(content);
|
|
685
|
-
}
|
|
686
|
-
catch {
|
|
257
|
+
handleV2Detection(v2Detection, startTime) {
|
|
258
|
+
console.log('\n' + '='.repeat(60));
|
|
259
|
+
console.log(' EXISTING V2 INSTALLATION DETECTED');
|
|
260
|
+
console.log('='.repeat(60) + '\n');
|
|
261
|
+
console.log('Found v2 installation at:');
|
|
262
|
+
if (v2Detection.hasMemoryDb) {
|
|
263
|
+
console.log(` - Memory DB: .agentic-qe/memory.db`);
|
|
264
|
+
}
|
|
265
|
+
if (v2Detection.hasConfig) {
|
|
266
|
+
console.log(` - Config: .agentic-qe/config/`);
|
|
267
|
+
}
|
|
268
|
+
if (v2Detection.hasAgents) {
|
|
269
|
+
console.log(` - Agents: .claude/agents/`);
|
|
270
|
+
}
|
|
271
|
+
console.log('');
|
|
272
|
+
if (this.options.autoMigrate) {
|
|
273
|
+
console.log('Auto-migrate mode enabled. Running migration...\n');
|
|
274
|
+
// Fire and forget - the caller will await initialize() which runs migration inline
|
|
275
|
+
runV2Migration(this.projectRoot, v2Detection).catch(() => { });
|
|
687
276
|
return null;
|
|
688
277
|
}
|
|
278
|
+
// Warn and suggest migration
|
|
279
|
+
console.log('RECOMMENDED: Run migration before init:\n');
|
|
280
|
+
console.log(' npx aqe migrate status # Check what needs migration');
|
|
281
|
+
console.log(' npx aqe migrate run --dry-run # Preview changes');
|
|
282
|
+
console.log(' npx aqe migrate run # Execute migration\n');
|
|
283
|
+
console.log('Or continue with:');
|
|
284
|
+
console.log(' aqe init --auto-migrate # Auto-migrate during init\n');
|
|
285
|
+
console.log('='.repeat(60) + '\n');
|
|
286
|
+
return {
|
|
287
|
+
success: false,
|
|
288
|
+
config: createDefaultConfig('unknown', this.projectRoot),
|
|
289
|
+
steps: [{
|
|
290
|
+
step: 'V2 Detection',
|
|
291
|
+
status: 'error',
|
|
292
|
+
message: 'Existing v2 installation detected. Run migration first.',
|
|
293
|
+
durationMs: Date.now() - startTime,
|
|
294
|
+
}],
|
|
295
|
+
summary: {
|
|
296
|
+
projectAnalyzed: false,
|
|
297
|
+
configGenerated: false,
|
|
298
|
+
codeIntelligenceIndexed: 0,
|
|
299
|
+
patternsLoaded: 0,
|
|
300
|
+
skillsInstalled: 0,
|
|
301
|
+
agentsInstalled: 0,
|
|
302
|
+
hooksConfigured: false,
|
|
303
|
+
mcpConfigured: false,
|
|
304
|
+
claudeMdGenerated: false,
|
|
305
|
+
workersStarted: 0,
|
|
306
|
+
},
|
|
307
|
+
totalDurationMs: Date.now() - startTime,
|
|
308
|
+
timestamp: new Date(),
|
|
309
|
+
v2Detected: true,
|
|
310
|
+
};
|
|
689
311
|
}
|
|
690
312
|
/**
|
|
691
313
|
* Run a single initialization step with timing and status tracking
|
|
@@ -706,7 +328,7 @@ ${yaml.stringify(v3Config)}`;
|
|
|
706
328
|
this.steps.push({
|
|
707
329
|
step: stepName,
|
|
708
330
|
status: 'error',
|
|
709
|
-
message:
|
|
331
|
+
message: toErrorMessage(error),
|
|
710
332
|
durationMs: Date.now() - startTime,
|
|
711
333
|
});
|
|
712
334
|
throw error;
|
|
@@ -718,11 +340,9 @@ ${yaml.stringify(v3Config)}`;
|
|
|
718
340
|
applyWizardAnswers(analysis) {
|
|
719
341
|
const answers = this.options.wizardAnswers || {};
|
|
720
342
|
const config = this.configurator.recommend(analysis);
|
|
721
|
-
// Apply project type override
|
|
722
343
|
if (answers['project-type'] && answers['project-type'] !== 'auto') {
|
|
723
344
|
config.project.type = answers['project-type'];
|
|
724
345
|
}
|
|
725
|
-
// Apply learning mode
|
|
726
346
|
switch (answers['learning-mode']) {
|
|
727
347
|
case 'full':
|
|
728
348
|
config.learning.enabled = true;
|
|
@@ -736,1061 +356,24 @@ ${yaml.stringify(v3Config)}`;
|
|
|
736
356
|
config.learning.enabled = false;
|
|
737
357
|
break;
|
|
738
358
|
}
|
|
739
|
-
// Apply pattern loading preference
|
|
740
359
|
if (answers['load-patterns'] === false) {
|
|
741
360
|
config.learning.pretrainedPatterns = false;
|
|
742
361
|
}
|
|
743
|
-
// Apply hooks preference
|
|
744
362
|
if (answers['hooks'] === false) {
|
|
745
363
|
config.hooks.claudeCode = false;
|
|
746
364
|
}
|
|
747
|
-
// Apply workers preference
|
|
748
365
|
if (answers['workers'] === false) {
|
|
749
366
|
config.workers.daemonAutoStart = false;
|
|
750
367
|
}
|
|
751
|
-
// Apply skills preference
|
|
752
368
|
if (answers['skills'] === false) {
|
|
753
369
|
config.skills.install = false;
|
|
754
370
|
}
|
|
755
371
|
return config;
|
|
756
372
|
}
|
|
757
|
-
/**
|
|
758
|
-
* Check if code intelligence index exists
|
|
759
|
-
* Uses memory backend to check code-intelligence:kg namespace
|
|
760
|
-
*/
|
|
761
|
-
async checkCodeIntelligenceIndex() {
|
|
762
|
-
// Load existing memory database if it exists
|
|
763
|
-
const dbPath = join(this.projectRoot, '.agentic-qe', 'memory.db');
|
|
764
|
-
if (!existsSync(dbPath)) {
|
|
765
|
-
return false;
|
|
766
|
-
}
|
|
767
|
-
// Check for entries in code-intelligence:kg namespace
|
|
768
|
-
try {
|
|
769
|
-
const Database = (await import('better-sqlite3')).default;
|
|
770
|
-
const db = new Database(dbPath);
|
|
771
|
-
const result = db.prepare(`
|
|
772
|
-
SELECT COUNT(*) as count FROM kv_store
|
|
773
|
-
WHERE namespace = 'code-intelligence:kg'
|
|
774
|
-
`).get();
|
|
775
|
-
db.close();
|
|
776
|
-
return result.count > 0;
|
|
777
|
-
}
|
|
778
|
-
catch {
|
|
779
|
-
return false;
|
|
780
|
-
}
|
|
781
|
-
}
|
|
782
|
-
/**
|
|
783
|
-
* Run code intelligence scan
|
|
784
|
-
* Indexes all source files into the knowledge graph
|
|
785
|
-
*/
|
|
786
|
-
async runCodeIntelligenceScan(projectPath) {
|
|
787
|
-
try {
|
|
788
|
-
// Import knowledge graph service
|
|
789
|
-
const { KnowledgeGraphService } = await import('../domains/code-intelligence/services/knowledge-graph.js');
|
|
790
|
-
const { InMemoryBackend } = await import('../kernel/memory-backend.js');
|
|
791
|
-
// Create temporary memory backend for indexing
|
|
792
|
-
const memory = new InMemoryBackend();
|
|
793
|
-
await memory.initialize();
|
|
794
|
-
const kgService = new KnowledgeGraphService(memory, {
|
|
795
|
-
namespace: 'code-intelligence:kg',
|
|
796
|
-
enableVectorEmbeddings: true,
|
|
797
|
-
});
|
|
798
|
-
// Find all source files
|
|
799
|
-
const glob = await import('fast-glob');
|
|
800
|
-
const files = await glob.default([
|
|
801
|
-
'**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx', '**/*.py'
|
|
802
|
-
], {
|
|
803
|
-
cwd: projectPath,
|
|
804
|
-
ignore: ['node_modules/**', 'dist/**', 'coverage/**', '.agentic-qe/**'],
|
|
805
|
-
});
|
|
806
|
-
// Index files
|
|
807
|
-
const result = await kgService.index({
|
|
808
|
-
paths: files.map(f => join(projectPath, f)),
|
|
809
|
-
incremental: false,
|
|
810
|
-
includeTests: true,
|
|
811
|
-
});
|
|
812
|
-
// Clean up
|
|
813
|
-
kgService.destroy();
|
|
814
|
-
if (result.success) {
|
|
815
|
-
return {
|
|
816
|
-
status: 'indexed',
|
|
817
|
-
entries: result.value.nodesCreated + result.value.edgesCreated
|
|
818
|
-
};
|
|
819
|
-
}
|
|
820
|
-
return { status: 'error', entries: 0 };
|
|
821
|
-
}
|
|
822
|
-
catch (error) {
|
|
823
|
-
// Log error but don't fail initialization
|
|
824
|
-
console.warn('Code intelligence scan warning:', error instanceof Error ? error.message : String(error));
|
|
825
|
-
return { status: 'skipped', entries: 0 };
|
|
826
|
-
}
|
|
827
|
-
}
|
|
828
|
-
/**
|
|
829
|
-
* Get count of KG entries from existing database
|
|
830
|
-
*/
|
|
831
|
-
async getKGEntryCount() {
|
|
832
|
-
const dbPath = join(this.projectRoot, '.agentic-qe', 'memory.db');
|
|
833
|
-
try {
|
|
834
|
-
const Database = (await import('better-sqlite3')).default;
|
|
835
|
-
const db = new Database(dbPath);
|
|
836
|
-
const result = db.prepare(`
|
|
837
|
-
SELECT COUNT(*) as count FROM kv_store
|
|
838
|
-
WHERE namespace LIKE 'code-intelligence:kg%'
|
|
839
|
-
`).get();
|
|
840
|
-
db.close();
|
|
841
|
-
return result.count;
|
|
842
|
-
}
|
|
843
|
-
catch {
|
|
844
|
-
return 0;
|
|
845
|
-
}
|
|
846
|
-
}
|
|
847
|
-
/**
|
|
848
|
-
* Initialize the persistence database (REQUIRED)
|
|
849
|
-
* Creates the SQLite database file with proper schema
|
|
850
|
-
* This MUST succeed or initialization fails - no fallbacks
|
|
851
|
-
*/
|
|
852
|
-
async initializePersistenceDatabase() {
|
|
853
|
-
let Database = null;
|
|
854
|
-
try {
|
|
855
|
-
// Use dynamic import for proper mocking in tests
|
|
856
|
-
const mod = await import('better-sqlite3');
|
|
857
|
-
Database = mod.default;
|
|
858
|
-
}
|
|
859
|
-
catch (error) {
|
|
860
|
-
throw new Error('SQLite persistence REQUIRED but better-sqlite3 is not installed.\n' +
|
|
861
|
-
'Install it with: npm install better-sqlite3\n' +
|
|
862
|
-
'If you see native compilation errors, ensure build tools are installed:\n' +
|
|
863
|
-
' - macOS: xcode-select --install\n' +
|
|
864
|
-
' - Ubuntu/Debian: sudo apt-get install build-essential python3\n' +
|
|
865
|
-
' - Alpine: apk add build-base python3');
|
|
866
|
-
}
|
|
867
|
-
// Create .agentic-qe directory
|
|
868
|
-
const dataDir = join(this.projectRoot, '.agentic-qe');
|
|
869
|
-
if (!existsSync(dataDir)) {
|
|
870
|
-
mkdirSync(dataDir, { recursive: true });
|
|
871
|
-
}
|
|
872
|
-
// Create database file
|
|
873
|
-
const dbPath = join(dataDir, 'memory.db');
|
|
874
|
-
try {
|
|
875
|
-
const db = new Database(dbPath);
|
|
876
|
-
// Configure for performance
|
|
877
|
-
db.pragma('journal_mode = WAL');
|
|
878
|
-
db.pragma('busy_timeout = 5000');
|
|
879
|
-
// Create the kv_store table schema
|
|
880
|
-
db.exec(`
|
|
881
|
-
CREATE TABLE IF NOT EXISTS kv_store (
|
|
882
|
-
key TEXT NOT NULL,
|
|
883
|
-
namespace TEXT NOT NULL,
|
|
884
|
-
value TEXT NOT NULL,
|
|
885
|
-
expires_at INTEGER,
|
|
886
|
-
created_at INTEGER DEFAULT (strftime('%s', 'now') * 1000),
|
|
887
|
-
PRIMARY KEY (namespace, key)
|
|
888
|
-
);
|
|
889
|
-
CREATE INDEX IF NOT EXISTS idx_kv_namespace ON kv_store(namespace);
|
|
890
|
-
CREATE INDEX IF NOT EXISTS idx_kv_expires ON kv_store(expires_at) WHERE expires_at IS NOT NULL;
|
|
891
|
-
`);
|
|
892
|
-
// Verify the table exists
|
|
893
|
-
const tableCheck = db.prepare(`
|
|
894
|
-
SELECT name FROM sqlite_master WHERE type='table' AND name='kv_store'
|
|
895
|
-
`).get();
|
|
896
|
-
if (!tableCheck) {
|
|
897
|
-
throw new Error('Failed to create kv_store table');
|
|
898
|
-
}
|
|
899
|
-
// Write a test entry to verify write access
|
|
900
|
-
const stmt = db.prepare(`
|
|
901
|
-
INSERT OR REPLACE INTO kv_store (key, namespace, value)
|
|
902
|
-
VALUES (?, ?, ?)
|
|
903
|
-
`);
|
|
904
|
-
stmt.run('_init_test', '_system', JSON.stringify({ initialized: new Date().toISOString() }));
|
|
905
|
-
db.close();
|
|
906
|
-
console.log(`✓ SQLite persistence initialized: ${dbPath}`);
|
|
907
|
-
return true;
|
|
908
|
-
}
|
|
909
|
-
catch (error) {
|
|
910
|
-
throw new Error(`SQLite persistence initialization FAILED: ${error}\n` +
|
|
911
|
-
`Database path: ${dbPath}\n` +
|
|
912
|
-
'Ensure the directory is writable and has sufficient disk space.');
|
|
913
|
-
}
|
|
914
|
-
}
|
|
915
|
-
/**
|
|
916
|
-
* Initialize the learning system
|
|
917
|
-
* Creates database, initializes HNSW index, loads pre-trained patterns
|
|
918
|
-
*/
|
|
919
|
-
async initializeLearningSystem(config) {
|
|
920
|
-
if (!config.learning.enabled) {
|
|
921
|
-
return 0;
|
|
922
|
-
}
|
|
923
|
-
// Create data directory for learning system
|
|
924
|
-
const dataDir = join(this.projectRoot, '.agentic-qe', 'data');
|
|
925
|
-
if (!existsSync(dataDir)) {
|
|
926
|
-
mkdirSync(dataDir, { recursive: true });
|
|
927
|
-
}
|
|
928
|
-
// Create HNSW index directory
|
|
929
|
-
const hnswDir = join(dataDir, 'hnsw');
|
|
930
|
-
if (!existsSync(hnswDir)) {
|
|
931
|
-
mkdirSync(hnswDir, { recursive: true });
|
|
932
|
-
}
|
|
933
|
-
// Write learning system config for runtime use
|
|
934
|
-
const learningConfigPath = join(dataDir, 'learning-config.json');
|
|
935
|
-
const learningConfig = {
|
|
936
|
-
embeddingModel: config.learning.embeddingModel,
|
|
937
|
-
hnswConfig: config.learning.hnswConfig,
|
|
938
|
-
qualityThreshold: config.learning.qualityThreshold,
|
|
939
|
-
promotionThreshold: config.learning.promotionThreshold,
|
|
940
|
-
databasePath: join(dataDir, 'memory.db'),
|
|
941
|
-
hnswIndexPath: join(hnswDir, 'index.bin'),
|
|
942
|
-
initialized: new Date().toISOString(),
|
|
943
|
-
};
|
|
944
|
-
writeFileSync(learningConfigPath, JSON.stringify(learningConfig, null, 2), 'utf-8');
|
|
945
|
-
// Load pre-trained patterns if available
|
|
946
|
-
let patternsLoaded = 0;
|
|
947
|
-
if (config.learning.pretrainedPatterns && this.options.pretrainedLibrary) {
|
|
948
|
-
const library = this.options.pretrainedLibrary;
|
|
949
|
-
// Group patterns by domain for organization
|
|
950
|
-
const patternsByDomain = new Map();
|
|
951
|
-
for (const pattern of library.patterns) {
|
|
952
|
-
const domain = pattern.domain || 'general';
|
|
953
|
-
if (!patternsByDomain.has(domain)) {
|
|
954
|
-
patternsByDomain.set(domain, []);
|
|
955
|
-
}
|
|
956
|
-
patternsByDomain.get(domain).push(pattern);
|
|
957
|
-
}
|
|
958
|
-
// Write patterns index for lazy loading
|
|
959
|
-
const patternsIndexPath = join(dataDir, 'pretrained-index.json');
|
|
960
|
-
const patternsIndex = {
|
|
961
|
-
version: library.version,
|
|
962
|
-
totalPatterns: library.statistics.totalPatterns,
|
|
963
|
-
domains: Array.from(patternsByDomain.entries()).map(([domain, patterns]) => ({
|
|
964
|
-
name: domain,
|
|
965
|
-
patternCount: patterns.length,
|
|
966
|
-
})),
|
|
967
|
-
loadedAt: new Date().toISOString(),
|
|
968
|
-
};
|
|
969
|
-
writeFileSync(patternsIndexPath, JSON.stringify(patternsIndex, null, 2), 'utf-8');
|
|
970
|
-
// Write actual patterns for each domain
|
|
971
|
-
for (const [domain, patterns] of patternsByDomain) {
|
|
972
|
-
const domainDir = join(dataDir, 'patterns', domain);
|
|
973
|
-
if (!existsSync(domainDir)) {
|
|
974
|
-
mkdirSync(domainDir, { recursive: true });
|
|
975
|
-
}
|
|
976
|
-
// Write patterns file
|
|
977
|
-
const patternsPath = join(domainDir, 'patterns.json');
|
|
978
|
-
writeFileSync(patternsPath, JSON.stringify(patterns, null, 2), 'utf-8');
|
|
979
|
-
patternsLoaded += patterns.length;
|
|
980
|
-
}
|
|
981
|
-
return patternsLoaded;
|
|
982
|
-
}
|
|
983
|
-
// Even without pre-trained patterns, we've initialized the learning system structure
|
|
984
|
-
return 0;
|
|
985
|
-
}
|
|
986
|
-
/**
|
|
987
|
-
* Configure Claude Code hooks
|
|
988
|
-
* Creates or updates .claude/settings.json with AQE hooks
|
|
989
|
-
* Uses Claude Code's actual environment variables ($TOOL_INPUT_*, $TOOL_SUCCESS, etc.)
|
|
990
|
-
*/
|
|
991
|
-
async configureHooks(config) {
|
|
992
|
-
if (!config.hooks.claudeCode) {
|
|
993
|
-
return false;
|
|
994
|
-
}
|
|
995
|
-
// Create .claude directory
|
|
996
|
-
const claudeDir = join(this.projectRoot, '.claude');
|
|
997
|
-
if (!existsSync(claudeDir)) {
|
|
998
|
-
mkdirSync(claudeDir, { recursive: true });
|
|
999
|
-
}
|
|
1000
|
-
// Load existing settings or create new
|
|
1001
|
-
const settingsPath = join(claudeDir, 'settings.json');
|
|
1002
|
-
let settings = {};
|
|
1003
|
-
if (existsSync(settingsPath)) {
|
|
1004
|
-
try {
|
|
1005
|
-
const content = readFileSync(settingsPath, 'utf-8');
|
|
1006
|
-
settings = JSON.parse(content);
|
|
1007
|
-
}
|
|
1008
|
-
catch {
|
|
1009
|
-
// If parse fails, start fresh
|
|
1010
|
-
settings = {};
|
|
1011
|
-
}
|
|
1012
|
-
}
|
|
1013
|
-
// Configure hooks with Claude Code's actual environment variables
|
|
1014
|
-
const hooks = {
|
|
1015
|
-
// Pre-tool hooks for learning
|
|
1016
|
-
PreToolUse: [
|
|
1017
|
-
{
|
|
1018
|
-
matcher: '^(Write|Edit|MultiEdit)$',
|
|
1019
|
-
hooks: [
|
|
1020
|
-
{
|
|
1021
|
-
type: 'command',
|
|
1022
|
-
command: 'aqe hooks pre-edit --file "$TOOL_INPUT_file_path"',
|
|
1023
|
-
timeout: 5000,
|
|
1024
|
-
continueOnError: true,
|
|
1025
|
-
},
|
|
1026
|
-
],
|
|
1027
|
-
},
|
|
1028
|
-
{
|
|
1029
|
-
matcher: '^Bash$',
|
|
1030
|
-
hooks: [
|
|
1031
|
-
{
|
|
1032
|
-
type: 'command',
|
|
1033
|
-
command: 'aqe hooks pre-command --command "$TOOL_INPUT_command"',
|
|
1034
|
-
timeout: 5000,
|
|
1035
|
-
continueOnError: true,
|
|
1036
|
-
},
|
|
1037
|
-
],
|
|
1038
|
-
},
|
|
1039
|
-
{
|
|
1040
|
-
matcher: '^Task$',
|
|
1041
|
-
hooks: [
|
|
1042
|
-
{
|
|
1043
|
-
type: 'command',
|
|
1044
|
-
command: 'aqe hooks pre-task --description "$TOOL_INPUT_prompt"',
|
|
1045
|
-
timeout: 5000,
|
|
1046
|
-
continueOnError: true,
|
|
1047
|
-
},
|
|
1048
|
-
],
|
|
1049
|
-
},
|
|
1050
|
-
],
|
|
1051
|
-
// Post-tool hooks for learning
|
|
1052
|
-
PostToolUse: [
|
|
1053
|
-
{
|
|
1054
|
-
matcher: '^(Write|Edit|MultiEdit)$',
|
|
1055
|
-
hooks: [
|
|
1056
|
-
{
|
|
1057
|
-
type: 'command',
|
|
1058
|
-
command: 'aqe hooks post-edit --file "$TOOL_INPUT_file_path" --success "$TOOL_SUCCESS"',
|
|
1059
|
-
timeout: 5000,
|
|
1060
|
-
continueOnError: true,
|
|
1061
|
-
},
|
|
1062
|
-
],
|
|
1063
|
-
},
|
|
1064
|
-
{
|
|
1065
|
-
matcher: '^Bash$',
|
|
1066
|
-
hooks: [
|
|
1067
|
-
{
|
|
1068
|
-
type: 'command',
|
|
1069
|
-
command: 'aqe hooks post-command --command "$TOOL_INPUT_command" --success "$TOOL_SUCCESS"',
|
|
1070
|
-
timeout: 5000,
|
|
1071
|
-
continueOnError: true,
|
|
1072
|
-
},
|
|
1073
|
-
],
|
|
1074
|
-
},
|
|
1075
|
-
{
|
|
1076
|
-
matcher: '^Task$',
|
|
1077
|
-
hooks: [
|
|
1078
|
-
{
|
|
1079
|
-
type: 'command',
|
|
1080
|
-
command: 'aqe hooks post-task --task-id "$TOOL_RESULT_agent_id" --success "$TOOL_SUCCESS"',
|
|
1081
|
-
timeout: 5000,
|
|
1082
|
-
continueOnError: true,
|
|
1083
|
-
},
|
|
1084
|
-
],
|
|
1085
|
-
},
|
|
1086
|
-
],
|
|
1087
|
-
// User prompt routing hook
|
|
1088
|
-
UserPromptSubmit: [
|
|
1089
|
-
{
|
|
1090
|
-
hooks: [
|
|
1091
|
-
{
|
|
1092
|
-
type: 'command',
|
|
1093
|
-
command: 'aqe hooks route --task "$PROMPT"',
|
|
1094
|
-
timeout: 5000,
|
|
1095
|
-
continueOnError: true,
|
|
1096
|
-
},
|
|
1097
|
-
],
|
|
1098
|
-
},
|
|
1099
|
-
],
|
|
1100
|
-
// Session hooks
|
|
1101
|
-
SessionStart: [
|
|
1102
|
-
{
|
|
1103
|
-
hooks: [
|
|
1104
|
-
{
|
|
1105
|
-
type: 'command',
|
|
1106
|
-
command: 'aqe hooks session-start --session-id "$SESSION_ID"',
|
|
1107
|
-
timeout: 10000,
|
|
1108
|
-
continueOnError: true,
|
|
1109
|
-
},
|
|
1110
|
-
],
|
|
1111
|
-
},
|
|
1112
|
-
],
|
|
1113
|
-
Stop: [
|
|
1114
|
-
{
|
|
1115
|
-
hooks: [
|
|
1116
|
-
{
|
|
1117
|
-
type: 'command',
|
|
1118
|
-
command: 'aqe hooks session-end --save-state',
|
|
1119
|
-
timeout: 5000,
|
|
1120
|
-
continueOnError: true,
|
|
1121
|
-
},
|
|
1122
|
-
],
|
|
1123
|
-
},
|
|
1124
|
-
],
|
|
1125
|
-
};
|
|
1126
|
-
// Merge with existing settings (preserve existing hooks, add AQE hooks)
|
|
1127
|
-
const existingHooks = settings.hooks || {};
|
|
1128
|
-
const mergedHooks = {};
|
|
1129
|
-
// For each hook type, merge arrays
|
|
1130
|
-
for (const [hookType, hookArray] of Object.entries(hooks)) {
|
|
1131
|
-
const existing = existingHooks[hookType] || [];
|
|
1132
|
-
// Add AQE hooks after existing ones
|
|
1133
|
-
mergedHooks[hookType] = [...existing, ...hookArray];
|
|
1134
|
-
}
|
|
1135
|
-
// Preserve any hooks not in our list
|
|
1136
|
-
for (const [hookType, hookArray] of Object.entries(existingHooks)) {
|
|
1137
|
-
if (!mergedHooks[hookType]) {
|
|
1138
|
-
mergedHooks[hookType] = hookArray;
|
|
1139
|
-
}
|
|
1140
|
-
}
|
|
1141
|
-
settings.hooks = mergedHooks;
|
|
1142
|
-
// Add AQE environment variables
|
|
1143
|
-
const existingEnv = settings.env || {};
|
|
1144
|
-
settings.env = {
|
|
1145
|
-
...existingEnv,
|
|
1146
|
-
AQE_MEMORY_PATH: '.agentic-qe/memory.db',
|
|
1147
|
-
AQE_V3_MODE: 'true',
|
|
1148
|
-
AQE_LEARNING_ENABLED: config.learning.enabled ? 'true' : 'false',
|
|
1149
|
-
};
|
|
1150
|
-
// Add AQE metadata
|
|
1151
|
-
settings.aqe = {
|
|
1152
|
-
version: config.version,
|
|
1153
|
-
initialized: new Date().toISOString(),
|
|
1154
|
-
hooksConfigured: true,
|
|
1155
|
-
};
|
|
1156
|
-
// Add MCP server enablement
|
|
1157
|
-
const existingMcp = settings.enabledMcpjsonServers || [];
|
|
1158
|
-
if (!existingMcp.includes('aqe')) {
|
|
1159
|
-
settings.enabledMcpjsonServers = [...existingMcp, 'aqe'];
|
|
1160
|
-
}
|
|
1161
|
-
// Write settings
|
|
1162
|
-
writeFileSync(settingsPath, JSON.stringify(settings, null, 2), 'utf-8');
|
|
1163
|
-
// Install cross-phase memory hooks configuration
|
|
1164
|
-
await this.installCrossPhaseMemoryHooks();
|
|
1165
|
-
return true;
|
|
1166
|
-
}
|
|
1167
|
-
/**
|
|
1168
|
-
* Install cross-phase memory hooks configuration file
|
|
1169
|
-
* Copies the QCSD feedback loop hooks from assets to .claude/hooks/
|
|
1170
|
-
*/
|
|
1171
|
-
async installCrossPhaseMemoryHooks() {
|
|
1172
|
-
const hooksDir = join(this.projectRoot, '.claude', 'hooks');
|
|
1173
|
-
if (!existsSync(hooksDir)) {
|
|
1174
|
-
mkdirSync(hooksDir, { recursive: true });
|
|
1175
|
-
}
|
|
1176
|
-
const targetPath = join(hooksDir, 'cross-phase-memory.yaml');
|
|
1177
|
-
// Don't overwrite if already exists
|
|
1178
|
-
if (existsSync(targetPath)) {
|
|
1179
|
-
return;
|
|
1180
|
-
}
|
|
1181
|
-
// Try to find the asset file
|
|
1182
|
-
const possiblePaths = [
|
|
1183
|
-
// Installed package location
|
|
1184
|
-
join(dirname(import.meta.url.replace('file://', '')), '..', '..', 'assets', 'hooks', 'cross-phase-memory.yaml'),
|
|
1185
|
-
// Development location
|
|
1186
|
-
join(process.cwd(), 'assets', 'hooks', 'cross-phase-memory.yaml'),
|
|
1187
|
-
join(process.cwd(), 'v3', 'assets', 'hooks', 'cross-phase-memory.yaml'),
|
|
1188
|
-
];
|
|
1189
|
-
for (const sourcePath of possiblePaths) {
|
|
1190
|
-
try {
|
|
1191
|
-
if (existsSync(sourcePath)) {
|
|
1192
|
-
copyFileSync(sourcePath, targetPath);
|
|
1193
|
-
console.log(' ✓ Cross-phase memory hooks installed');
|
|
1194
|
-
return;
|
|
1195
|
-
}
|
|
1196
|
-
}
|
|
1197
|
-
catch {
|
|
1198
|
-
// Try next path
|
|
1199
|
-
}
|
|
1200
|
-
}
|
|
1201
|
-
// If no asset found, create minimal config
|
|
1202
|
-
const minimalConfig = `# Cross-Phase Memory Hooks Configuration
|
|
1203
|
-
# Generated by aqe init
|
|
1204
|
-
# See: https://github.com/anthropics/agentic-qe/docs/cross-phase-memory.md
|
|
1205
|
-
|
|
1206
|
-
version: "1.0"
|
|
1207
|
-
enabled: true
|
|
1208
|
-
|
|
1209
|
-
hooks:
|
|
1210
|
-
# Add custom QCSD feedback loop hooks here
|
|
1211
|
-
# See .claude/hooks/cross-phase-memory.yaml in the agentic-qe repo for examples
|
|
1212
|
-
|
|
1213
|
-
routing:
|
|
1214
|
-
authorized_receivers:
|
|
1215
|
-
strategic:
|
|
1216
|
-
- "qe-risk-assessor"
|
|
1217
|
-
- "qe-quality-criteria-recommender"
|
|
1218
|
-
tactical:
|
|
1219
|
-
- "qe-product-factors-assessor"
|
|
1220
|
-
operational:
|
|
1221
|
-
- "qe-test-architect"
|
|
1222
|
-
- "qe-tdd-specialist"
|
|
1223
|
-
quality-criteria:
|
|
1224
|
-
- "qe-requirements-validator"
|
|
1225
|
-
- "qe-bdd-generator"
|
|
1226
|
-
`;
|
|
1227
|
-
writeFileSync(targetPath, minimalConfig, 'utf-8');
|
|
1228
|
-
console.log(' ✓ Cross-phase memory hooks created (minimal config)');
|
|
1229
|
-
}
|
|
1230
|
-
/**
|
|
1231
|
-
* Configure MCP server
|
|
1232
|
-
* Creates .mcp.json (root level) with AQE v3 MCP server configuration
|
|
1233
|
-
* Uses npx to run the MCP server without requiring global installation
|
|
1234
|
-
*/
|
|
1235
|
-
async configureMCP() {
|
|
1236
|
-
// Load existing MCP config from root .mcp.json or create new
|
|
1237
|
-
const mcpPath = join(this.projectRoot, '.mcp.json');
|
|
1238
|
-
let mcpConfig = {};
|
|
1239
|
-
if (existsSync(mcpPath)) {
|
|
1240
|
-
try {
|
|
1241
|
-
const content = readFileSync(mcpPath, 'utf-8');
|
|
1242
|
-
mcpConfig = JSON.parse(content);
|
|
1243
|
-
}
|
|
1244
|
-
catch {
|
|
1245
|
-
mcpConfig = {};
|
|
1246
|
-
}
|
|
1247
|
-
}
|
|
1248
|
-
// Ensure mcpServers object exists
|
|
1249
|
-
if (!mcpConfig.mcpServers) {
|
|
1250
|
-
mcpConfig.mcpServers = {};
|
|
1251
|
-
}
|
|
1252
|
-
// Add AQE MCP server configuration
|
|
1253
|
-
// Uses npx to run the MCP server - works without global installation
|
|
1254
|
-
const servers = mcpConfig.mcpServers;
|
|
1255
|
-
servers['agentic-qe'] = {
|
|
1256
|
-
command: 'npx',
|
|
1257
|
-
args: [
|
|
1258
|
-
'@anthropics/agentic-qe',
|
|
1259
|
-
'mcp',
|
|
1260
|
-
'start'
|
|
1261
|
-
],
|
|
1262
|
-
env: {
|
|
1263
|
-
AQE_PROJECT_ROOT: this.projectRoot,
|
|
1264
|
-
AQE_LEARNING_ENABLED: 'true',
|
|
1265
|
-
AQE_VERBOSE: 'false',
|
|
1266
|
-
},
|
|
1267
|
-
autoStart: false,
|
|
1268
|
-
};
|
|
1269
|
-
// Write MCP config
|
|
1270
|
-
writeFileSync(mcpPath, JSON.stringify(mcpConfig, null, 2), 'utf-8');
|
|
1271
|
-
return true;
|
|
1272
|
-
}
|
|
1273
|
-
/**
|
|
1274
|
-
* Generate CLAUDE.md for the project
|
|
1275
|
-
* Creates a comprehensive guide for Claude Code with V3-specific instructions
|
|
1276
|
-
* If CLAUDE.md exists, creates backup and appends AQE v3 section
|
|
1277
|
-
*/
|
|
1278
|
-
async generateCLAUDEmd(config) {
|
|
1279
|
-
const claudeMdPath = join(this.projectRoot, 'CLAUDE.md');
|
|
1280
|
-
// Generate CLAUDE.md content with V3-specific instructions
|
|
1281
|
-
const content = this.generateCLAUDEmdContent(config);
|
|
1282
|
-
// Check if CLAUDE.md already exists
|
|
1283
|
-
if (existsSync(claudeMdPath)) {
|
|
1284
|
-
const existing = readFileSync(claudeMdPath, 'utf-8');
|
|
1285
|
-
// Check if AQE section already exists
|
|
1286
|
-
if (existing.includes('## Agentic QE v3')) {
|
|
1287
|
-
// Already has AQE section, don't duplicate
|
|
1288
|
-
return true;
|
|
1289
|
-
}
|
|
1290
|
-
// Create backup before modifying
|
|
1291
|
-
const backupPath = join(this.projectRoot, 'CLAUDE.md.backup');
|
|
1292
|
-
writeFileSync(backupPath, existing, 'utf-8');
|
|
1293
|
-
// Append AQE section to existing CLAUDE.md
|
|
1294
|
-
writeFileSync(claudeMdPath, existing + '\n\n' + content, 'utf-8');
|
|
1295
|
-
}
|
|
1296
|
-
else {
|
|
1297
|
-
// Create new CLAUDE.md
|
|
1298
|
-
writeFileSync(claudeMdPath, content, 'utf-8');
|
|
1299
|
-
}
|
|
1300
|
-
return true;
|
|
1301
|
-
}
|
|
1302
|
-
/**
|
|
1303
|
-
* Generate CLAUDE.md content
|
|
1304
|
-
* Comprehensive AQE instructions for Claude Code integration
|
|
1305
|
-
*/
|
|
1306
|
-
generateCLAUDEmdContent(config) {
|
|
1307
|
-
const enabledDomains = config.domains.enabled.slice(0, 6).join(', ');
|
|
1308
|
-
const moreDomainsCount = Math.max(0, config.domains.enabled.length - 6);
|
|
1309
|
-
return `## Agentic QE v3
|
|
1310
|
-
|
|
1311
|
-
This project uses **Agentic QE v3** - a Domain-Driven Quality Engineering platform with 12 bounded contexts, ReasoningBank learning, and HNSW vector search.
|
|
1312
|
-
|
|
1313
|
-
---
|
|
1314
|
-
|
|
1315
|
-
## 🐝 AQE FLEET ORCHESTRATION
|
|
1316
|
-
|
|
1317
|
-
### Fleet Initialization
|
|
1318
|
-
|
|
1319
|
-
**For QE-specific tasks, initialize the AQE fleet:**
|
|
1320
|
-
|
|
1321
|
-
\`\`\`javascript
|
|
1322
|
-
// Initialize AQE Fleet with MCP tool
|
|
1323
|
-
mcp__agentic-qe__fleet_init({
|
|
1324
|
-
config: {
|
|
1325
|
-
topology: "hierarchical", // Queen-led for QE coordination
|
|
1326
|
-
maxAgents: 15,
|
|
1327
|
-
testingFocus: ["unit", "integration", "e2e", "performance"],
|
|
1328
|
-
frameworks: ["vitest", "jest", "playwright"],
|
|
1329
|
-
environments: ["node", "browser"]
|
|
1330
|
-
},
|
|
1331
|
-
projectContext: {
|
|
1332
|
-
language: "typescript",
|
|
1333
|
-
buildSystem: "npm"
|
|
1334
|
-
}
|
|
1335
|
-
})
|
|
1336
|
-
\`\`\`
|
|
1337
|
-
|
|
1338
|
-
### 12 DDD Domains → Agent Mapping
|
|
1339
|
-
|
|
1340
|
-
| Domain | Primary Agents | Focus Area |
|
|
1341
|
-
|--------|---------------|------------|
|
|
1342
|
-
| \`test-generation\` | qe-test-architect, qe-tdd-specialist | AI-powered test creation |
|
|
1343
|
-
| \`test-execution\` | qe-parallel-executor, qe-flaky-hunter, qe-retry-handler | Parallel execution, flaky detection |
|
|
1344
|
-
| \`coverage-analysis\` | qe-coverage-specialist, qe-gap-detector | O(log n) sublinear coverage |
|
|
1345
|
-
| \`quality-assessment\` | qe-quality-gate, qe-deployment-advisor | Quality gates, risk scoring |
|
|
1346
|
-
| \`defect-intelligence\` | qe-defect-predictor, qe-root-cause-analyzer | ML-powered defect prediction |
|
|
1347
|
-
| \`learning-optimization\` | qe-learning-coordinator, qe-pattern-learner | Cross-domain pattern learning |
|
|
1348
|
-
| \`requirements-validation\` | qe-tdd-specialist, qe-property-tester | BDD scenarios, property tests |
|
|
1349
|
-
| \`code-intelligence\` | qe-knowledge-manager, code-analyzer | Knowledge graphs, 80% token reduction |
|
|
1350
|
-
| \`security-compliance\` | qe-security-scanner, qe-security-auditor | OWASP, CVE detection |
|
|
1351
|
-
| \`contract-testing\` | qe-contract-validator, qe-api-tester | Pact, schema validation |
|
|
1352
|
-
| \`visual-accessibility\` | qe-visual-tester, qe-a11y-validator | Visual regression, WCAG |
|
|
1353
|
-
| \`chaos-resilience\` | qe-chaos-engineer, qe-performance-tester | Fault injection, load testing |
|
|
1354
|
-
|
|
1355
|
-
### Fleet MCP Tools
|
|
1356
|
-
|
|
1357
|
-
\`\`\`javascript
|
|
1358
|
-
// Spawn specialized QE agent
|
|
1359
|
-
mcp__agentic-qe__agent_spawn({
|
|
1360
|
-
spec: {
|
|
1361
|
-
type: "test-generator", // or: coverage-analyzer, quality-gate, performance-tester, security-scanner, chaos-engineer, visual-tester
|
|
1362
|
-
capabilities: ["unit-tests", "integration-tests"],
|
|
1363
|
-
name: "test-gen-1"
|
|
1364
|
-
},
|
|
1365
|
-
fleetId: "fleet-123" // From fleet_init
|
|
1366
|
-
})
|
|
1367
|
-
|
|
1368
|
-
// AI-enhanced test generation
|
|
1369
|
-
mcp__agentic-qe__test_generate_enhanced({
|
|
1370
|
-
sourceCode: "...",
|
|
1371
|
-
language: "typescript",
|
|
1372
|
-
testType: "unit", // unit, integration, e2e, property-based, mutation
|
|
1373
|
-
coverageGoal: 90,
|
|
1374
|
-
aiEnhancement: true,
|
|
1375
|
-
detectAntiPatterns: true
|
|
1376
|
-
})
|
|
1377
|
-
|
|
1378
|
-
// Parallel test execution with retry
|
|
1379
|
-
mcp__agentic-qe__test_execute_parallel({
|
|
1380
|
-
testFiles: ["tests/**/*.test.ts"],
|
|
1381
|
-
parallelism: 4,
|
|
1382
|
-
retryFailures: true,
|
|
1383
|
-
maxRetries: 3,
|
|
1384
|
-
collectCoverage: true
|
|
1385
|
-
})
|
|
1386
|
-
|
|
1387
|
-
// Orchestrate QE task across fleet
|
|
1388
|
-
mcp__agentic-qe__task_orchestrate({
|
|
1389
|
-
task: {
|
|
1390
|
-
type: "comprehensive-testing", // or: quality-gate, defect-prevention, performance-validation
|
|
1391
|
-
priority: "high",
|
|
1392
|
-
strategy: "adaptive",
|
|
1393
|
-
maxAgents: 5
|
|
1394
|
-
},
|
|
1395
|
-
context: {
|
|
1396
|
-
project: "my-project",
|
|
1397
|
-
environment: "test"
|
|
1398
|
-
},
|
|
1399
|
-
fleetId: "fleet-123"
|
|
1400
|
-
})
|
|
1401
|
-
\`\`\`
|
|
1402
|
-
|
|
1403
|
-
### QE Memory Operations
|
|
1404
|
-
|
|
1405
|
-
\`\`\`javascript
|
|
1406
|
-
// Store QE pattern with namespace
|
|
1407
|
-
mcp__agentic-qe__memory_store({
|
|
1408
|
-
key: "coverage-pattern-auth",
|
|
1409
|
-
value: { pattern: "...", successRate: 0.95 },
|
|
1410
|
-
namespace: "qe-patterns",
|
|
1411
|
-
ttl: 86400, // 24 hours
|
|
1412
|
-
persist: true
|
|
1413
|
-
})
|
|
1414
|
-
|
|
1415
|
-
// Query memory with pattern matching
|
|
1416
|
-
mcp__agentic-qe__memory_query({
|
|
1417
|
-
pattern: "coverage-*",
|
|
1418
|
-
namespace: "qe-patterns",
|
|
1419
|
-
limit: 10
|
|
1420
|
-
})
|
|
1421
|
-
\`\`\`
|
|
1422
|
-
|
|
1423
|
-
### QE Task Routing by Domain
|
|
1424
|
-
|
|
1425
|
-
| Task Type | MCP Tool | Agents Spawned |
|
|
1426
|
-
|-----------|----------|----------------|
|
|
1427
|
-
| Generate tests | \`test_generate_enhanced\` | qe-test-architect, qe-tdd-specialist |
|
|
1428
|
-
| Run tests | \`test_execute_parallel\` | qe-parallel-executor, qe-retry-handler |
|
|
1429
|
-
| Analyze coverage | \`task_orchestrate\` (coverage) | qe-coverage-specialist, qe-gap-detector |
|
|
1430
|
-
| Quality gate | \`task_orchestrate\` (quality-gate) | qe-quality-gate, qe-deployment-advisor |
|
|
1431
|
-
| Security scan | \`agent_spawn\` (security-scanner) | qe-security-scanner, qe-security-auditor |
|
|
1432
|
-
| Chaos test | \`agent_spawn\` (chaos-engineer) | qe-chaos-engineer, qe-load-tester |
|
|
1433
|
-
|
|
1434
|
-
---
|
|
1435
|
-
|
|
1436
|
-
## Quick Reference
|
|
1437
|
-
|
|
1438
|
-
\`\`\`bash
|
|
1439
|
-
# Run tests
|
|
1440
|
-
npm test -- --run
|
|
1441
|
-
|
|
1442
|
-
# Check quality
|
|
1443
|
-
aqe quality assess
|
|
1444
|
-
|
|
1445
|
-
# Generate tests
|
|
1446
|
-
aqe test generate <file>
|
|
1447
|
-
|
|
1448
|
-
# Coverage analysis
|
|
1449
|
-
aqe coverage <path>
|
|
1450
|
-
\`\`\`
|
|
1451
|
-
|
|
1452
|
-
### MCP Server
|
|
1453
|
-
|
|
1454
|
-
The AQE v3 MCP server is configured in \`.claude/mcp.json\`. Available tools:
|
|
1455
|
-
|
|
1456
|
-
| Tool | Description |
|
|
1457
|
-
|------|-------------|
|
|
1458
|
-
| \`fleet_init\` | Initialize QE fleet with topology |
|
|
1459
|
-
| \`agent_spawn\` | Spawn specialized QE agent |
|
|
1460
|
-
| \`test_generate_enhanced\` | AI-powered test generation |
|
|
1461
|
-
| \`test_execute_parallel\` | Parallel test execution with retry |
|
|
1462
|
-
| \`task_orchestrate\` | Orchestrate multi-agent QE tasks |
|
|
1463
|
-
| \`coverage_analyze_sublinear\` | O(log n) coverage analysis |
|
|
1464
|
-
| \`quality_assess\` | Quality gate evaluation |
|
|
1465
|
-
| \`memory_store\` / \`memory_query\` | Pattern storage with namespacing |
|
|
1466
|
-
| \`security_scan_comprehensive\` | SAST/DAST scanning |
|
|
1467
|
-
| \`fleet_status\` | Get fleet and agent status |
|
|
1468
|
-
|
|
1469
|
-
### Configuration
|
|
1470
|
-
|
|
1471
|
-
- **Enabled Domains**: ${enabledDomains}${moreDomainsCount > 0 ? ` (+${moreDomainsCount} more)` : ''}
|
|
1472
|
-
- **Learning**: ${config.learning.enabled ? 'Enabled' : 'Disabled'} (${config.learning.embeddingModel} embeddings)
|
|
1473
|
-
- **Max Concurrent Agents**: ${config.agents.maxConcurrent}
|
|
1474
|
-
- **Background Workers**: ${config.workers.enabled.length > 0 ? config.workers.enabled.join(', ') : 'None'}
|
|
1475
|
-
|
|
1476
|
-
### V3 QE Agents
|
|
1477
|
-
|
|
1478
|
-
V3 QE agents are installed in \`.claude/agents/v3/\`. Use with Claude Code's Task tool:
|
|
1479
|
-
|
|
1480
|
-
\`\`\`javascript
|
|
1481
|
-
// Example: Generate tests
|
|
1482
|
-
Task({ prompt: "Generate unit tests for auth module", subagent_type: "qe-test-architect", run_in_background: true })
|
|
1483
|
-
|
|
1484
|
-
// Example: Analyze coverage
|
|
1485
|
-
Task({ prompt: "Find coverage gaps in src/", subagent_type: "qe-coverage-specialist", run_in_background: true })
|
|
1486
|
-
|
|
1487
|
-
// Example: Security scan
|
|
1488
|
-
Task({ prompt: "Run security audit", subagent_type: "qe-security-scanner", run_in_background: true })
|
|
1489
|
-
\`\`\`
|
|
1490
|
-
|
|
1491
|
-
### Integration with Claude Flow
|
|
1492
|
-
|
|
1493
|
-
**AQE Fleet + Claude Flow work together:**
|
|
1494
|
-
|
|
1495
|
-
\`\`\`javascript
|
|
1496
|
-
// STEP 1: Initialize Claude Flow swarm for coordination
|
|
1497
|
-
Bash("npx @claude-flow/cli@latest swarm init --topology hierarchical --max-agents 15")
|
|
1498
|
-
|
|
1499
|
-
// STEP 2: Initialize AQE Fleet for QE-specific work
|
|
1500
|
-
mcp__agentic-qe__fleet_init({
|
|
1501
|
-
config: { topology: "hierarchical", maxAgents: 10, testingFocus: ["unit", "integration"] }
|
|
1502
|
-
})
|
|
1503
|
-
|
|
1504
|
-
// STEP 3: Spawn agents via Claude Code Task tool (do the actual work)
|
|
1505
|
-
Task({ prompt: "Generate tests for auth module", subagent_type: "qe-test-architect", run_in_background: true })
|
|
1506
|
-
Task({ prompt: "Analyze coverage gaps", subagent_type: "qe-coverage-specialist", run_in_background: true })
|
|
1507
|
-
|
|
1508
|
-
// STEP 4: Store learnings in both systems
|
|
1509
|
-
mcp__agentic-qe__memory_store({ key: "pattern-1", value: "...", namespace: "qe-patterns", persist: true })
|
|
1510
|
-
Bash("npx @claude-flow/cli@latest memory store --key 'qe-pattern-1' --value '...' --namespace patterns")
|
|
1511
|
-
\`\`\`
|
|
1512
|
-
|
|
1513
|
-
### Data Storage
|
|
1514
|
-
|
|
1515
|
-
- **Memory Backend**: \`.agentic-qe/memory.db\` (SQLite)
|
|
1516
|
-
- **Pattern Storage**: \`.agentic-qe/data/memory.db\` (ReasoningBank)
|
|
1517
|
-
- **HNSW Index**: \`.agentic-qe/data/hnsw/index.bin\`
|
|
1518
|
-
- **Configuration**: \`.agentic-qe/config.yaml\`
|
|
1519
|
-
|
|
1520
|
-
### Best Practices
|
|
1521
|
-
|
|
1522
|
-
1. **Test Execution**: Always use \`npm test -- --run\` (not \`npm test\` which runs in watch mode)
|
|
1523
|
-
2. **Coverage Targets**: Aim for 80%+ coverage on critical paths
|
|
1524
|
-
3. **Quality Gates**: Run \`quality_assess\` before merging PRs
|
|
1525
|
-
4. **Pattern Learning**: AQE learns from successful test patterns - consistent naming helps
|
|
1526
|
-
5. **Fleet Coordination**: Use \`fleet_init\` before spawning multiple QE agents
|
|
1527
|
-
6. **Memory Persistence**: Use \`persist: true\` for patterns you want to keep across sessions
|
|
1528
|
-
|
|
1529
|
-
### Troubleshooting
|
|
1530
|
-
|
|
1531
|
-
If MCP tools aren't working:
|
|
1532
|
-
\`\`\`bash
|
|
1533
|
-
# Verify MCP server is configured
|
|
1534
|
-
cat .claude/mcp.json
|
|
1535
|
-
|
|
1536
|
-
# Check fleet status
|
|
1537
|
-
mcp__agentic-qe__fleet_status({ includeAgentDetails: true })
|
|
1538
|
-
|
|
1539
|
-
# Reinitialize if needed
|
|
1540
|
-
aqe init --auto
|
|
1541
|
-
\`\`\`
|
|
1542
|
-
|
|
1543
|
-
---
|
|
1544
|
-
*Generated by AQE v3 init - ${new Date().toISOString()}*
|
|
1545
|
-
`;
|
|
1546
|
-
}
|
|
1547
|
-
/**
|
|
1548
|
-
* Start background workers
|
|
1549
|
-
* Writes worker configuration for daemon and optionally starts workers
|
|
1550
|
-
*/
|
|
1551
|
-
async startWorkers(config) {
|
|
1552
|
-
if (!config.workers.daemonAutoStart || config.workers.enabled.length === 0) {
|
|
1553
|
-
return 0;
|
|
1554
|
-
}
|
|
1555
|
-
// Create workers directory
|
|
1556
|
-
const workersDir = join(this.projectRoot, '.agentic-qe', 'workers');
|
|
1557
|
-
if (!existsSync(workersDir)) {
|
|
1558
|
-
mkdirSync(workersDir, { recursive: true });
|
|
1559
|
-
}
|
|
1560
|
-
// Write worker registry for daemon to load
|
|
1561
|
-
const workerRegistry = {};
|
|
1562
|
-
// Default intervals for workers (in milliseconds)
|
|
1563
|
-
const defaultIntervals = {
|
|
1564
|
-
'pattern-consolidator': 60000, // 1 minute
|
|
1565
|
-
'coverage-gap-scanner': 300000, // 5 minutes
|
|
1566
|
-
'flaky-test-detector': 600000, // 10 minutes
|
|
1567
|
-
'routing-accuracy-monitor': 120000, // 2 minutes
|
|
1568
|
-
};
|
|
1569
|
-
for (const workerName of config.workers.enabled) {
|
|
1570
|
-
workerRegistry[workerName] = {
|
|
1571
|
-
name: workerName,
|
|
1572
|
-
enabled: true,
|
|
1573
|
-
interval: config.workers.intervals[workerName] || defaultIntervals[workerName] || 60000,
|
|
1574
|
-
lastRun: null,
|
|
1575
|
-
status: 'pending',
|
|
1576
|
-
};
|
|
1577
|
-
}
|
|
1578
|
-
// Write registry file
|
|
1579
|
-
const registryPath = join(workersDir, 'registry.json');
|
|
1580
|
-
const registryData = {
|
|
1581
|
-
version: config.version,
|
|
1582
|
-
maxConcurrent: config.workers.maxConcurrent,
|
|
1583
|
-
workers: workerRegistry,
|
|
1584
|
-
createdAt: new Date().toISOString(),
|
|
1585
|
-
daemonPid: null, // Will be set when daemon starts
|
|
1586
|
-
};
|
|
1587
|
-
writeFileSync(registryPath, JSON.stringify(registryData, null, 2), 'utf-8');
|
|
1588
|
-
// Write individual worker configs
|
|
1589
|
-
for (const workerName of config.workers.enabled) {
|
|
1590
|
-
const workerConfigPath = join(workersDir, `${workerName}.json`);
|
|
1591
|
-
const workerConfig = {
|
|
1592
|
-
name: workerName,
|
|
1593
|
-
enabled: true,
|
|
1594
|
-
interval: config.workers.intervals[workerName] || defaultIntervals[workerName] || 60000,
|
|
1595
|
-
projectRoot: this.projectRoot,
|
|
1596
|
-
dataDir: join(this.projectRoot, '.agentic-qe', 'data'),
|
|
1597
|
-
createdAt: new Date().toISOString(),
|
|
1598
|
-
};
|
|
1599
|
-
writeFileSync(workerConfigPath, JSON.stringify(workerConfig, null, 2), 'utf-8');
|
|
1600
|
-
}
|
|
1601
|
-
// Write cross-platform daemon startup script
|
|
1602
|
-
const daemonScriptPath = join(workersDir, 'start-daemon.cjs');
|
|
1603
|
-
const daemonScript = `#!/usr/bin/env node
|
|
1604
|
-
// AQE v3 Worker Daemon Startup Script (cross-platform)
|
|
1605
|
-
// Generated by aqe init
|
|
1606
|
-
|
|
1607
|
-
console.log("AQE v3 hooks work via CLI commands (no daemon required)");
|
|
1608
|
-
console.log("Use: npx aqe hooks session-start");
|
|
1609
|
-
`;
|
|
1610
|
-
writeFileSync(daemonScriptPath, daemonScript);
|
|
1611
|
-
return config.workers.enabled.length;
|
|
1612
|
-
}
|
|
1613
|
-
/**
|
|
1614
|
-
* Install AQE skills
|
|
1615
|
-
* Copies v2 methodology and v3 domain skills to the project
|
|
1616
|
-
*/
|
|
1617
|
-
async installSkills(config) {
|
|
1618
|
-
if (!config.skills.install) {
|
|
1619
|
-
return 0;
|
|
1620
|
-
}
|
|
1621
|
-
const installer = createSkillsInstaller({
|
|
1622
|
-
projectRoot: this.projectRoot,
|
|
1623
|
-
installV2Skills: config.skills.installV2,
|
|
1624
|
-
installV3Skills: config.skills.installV3,
|
|
1625
|
-
overwrite: config.skills.overwrite,
|
|
1626
|
-
});
|
|
1627
|
-
const result = await installer.install();
|
|
1628
|
-
// Log any errors
|
|
1629
|
-
if (result.errors.length > 0) {
|
|
1630
|
-
console.warn('Skills installation warnings:', result.errors);
|
|
1631
|
-
}
|
|
1632
|
-
return result.installed.length;
|
|
1633
|
-
}
|
|
1634
|
-
/**
|
|
1635
|
-
* Install V3 QE agents
|
|
1636
|
-
* Copies agents from bundled directory to project's .claude/agents/v3/
|
|
1637
|
-
*/
|
|
1638
|
-
async installAgents() {
|
|
1639
|
-
const installer = createAgentsInstaller({
|
|
1640
|
-
projectRoot: this.projectRoot,
|
|
1641
|
-
installQEAgents: true,
|
|
1642
|
-
installSubagents: true,
|
|
1643
|
-
overwrite: false,
|
|
1644
|
-
});
|
|
1645
|
-
const result = await installer.install();
|
|
1646
|
-
// Log any errors
|
|
1647
|
-
if (result.errors.length > 0) {
|
|
1648
|
-
console.warn('Agents installation warnings:', result.errors);
|
|
1649
|
-
}
|
|
1650
|
-
return result.installed.length;
|
|
1651
|
-
}
|
|
1652
|
-
/**
|
|
1653
|
-
* Install n8n platform agents and skills
|
|
1654
|
-
* Copies n8n v2 agents from .claude/agents/n8n/ to project
|
|
1655
|
-
*/
|
|
1656
|
-
async installN8n(config) {
|
|
1657
|
-
const installer = createN8nInstaller({
|
|
1658
|
-
projectRoot: this.projectRoot,
|
|
1659
|
-
installAgents: true,
|
|
1660
|
-
installSkills: true,
|
|
1661
|
-
overwrite: false,
|
|
1662
|
-
n8nApiConfig: this.options.n8nApiConfig,
|
|
1663
|
-
});
|
|
1664
|
-
const result = await installer.install();
|
|
1665
|
-
// Log any errors
|
|
1666
|
-
if (result.errors.length > 0) {
|
|
1667
|
-
console.warn('N8n installation warnings:', result.errors);
|
|
1668
|
-
}
|
|
1669
|
-
// Update config with n8n platform settings
|
|
1670
|
-
if (!config.platforms) {
|
|
1671
|
-
config.platforms = {};
|
|
1672
|
-
}
|
|
1673
|
-
config.platforms.n8n = {
|
|
1674
|
-
enabled: true,
|
|
1675
|
-
installAgents: true,
|
|
1676
|
-
installSkills: true,
|
|
1677
|
-
installTypeScriptAgents: false,
|
|
1678
|
-
n8nApiConfig: this.options.n8nApiConfig,
|
|
1679
|
-
};
|
|
1680
|
-
return {
|
|
1681
|
-
agents: result.agentsInstalled.length,
|
|
1682
|
-
skills: result.skillsInstalled.length,
|
|
1683
|
-
};
|
|
1684
|
-
}
|
|
1685
|
-
/**
|
|
1686
|
-
* Save configuration to file
|
|
1687
|
-
* Creates .agentic-qe directory and writes config.yaml
|
|
1688
|
-
*/
|
|
1689
|
-
async saveConfig(config) {
|
|
1690
|
-
if (!config) {
|
|
1691
|
-
throw new Error('No configuration to save');
|
|
1692
|
-
}
|
|
1693
|
-
// Create .agentic-qe directory
|
|
1694
|
-
const configDir = join(this.projectRoot, '.agentic-qe');
|
|
1695
|
-
if (!existsSync(configDir)) {
|
|
1696
|
-
mkdirSync(configDir, { recursive: true });
|
|
1697
|
-
}
|
|
1698
|
-
// Convert config to YAML format
|
|
1699
|
-
const yaml = this.configToYAML(config);
|
|
1700
|
-
// Write config.yaml
|
|
1701
|
-
const configPath = join(configDir, 'config.yaml');
|
|
1702
|
-
writeFileSync(configPath, yaml, 'utf-8');
|
|
1703
|
-
}
|
|
1704
|
-
/**
|
|
1705
|
-
* Convert config object to YAML string
|
|
1706
|
-
*/
|
|
1707
|
-
configToYAML(config) {
|
|
1708
|
-
const lines = [
|
|
1709
|
-
'# Agentic QE v3 Configuration',
|
|
1710
|
-
'# Generated by aqe init',
|
|
1711
|
-
`# ${new Date().toISOString()}`,
|
|
1712
|
-
'',
|
|
1713
|
-
];
|
|
1714
|
-
lines.push(`version: "${config.version}"`);
|
|
1715
|
-
lines.push('');
|
|
1716
|
-
// Project section
|
|
1717
|
-
lines.push('project:');
|
|
1718
|
-
lines.push(` name: "${config.project.name}"`);
|
|
1719
|
-
lines.push(` root: "${config.project.root}"`);
|
|
1720
|
-
lines.push(` type: "${config.project.type}"`);
|
|
1721
|
-
lines.push('');
|
|
1722
|
-
// Learning section
|
|
1723
|
-
lines.push('learning:');
|
|
1724
|
-
lines.push(` enabled: ${config.learning.enabled}`);
|
|
1725
|
-
lines.push(` embeddingModel: "${config.learning.embeddingModel}"`);
|
|
1726
|
-
lines.push(' hnswConfig:');
|
|
1727
|
-
lines.push(` M: ${config.learning.hnswConfig.M}`);
|
|
1728
|
-
lines.push(` efConstruction: ${config.learning.hnswConfig.efConstruction}`);
|
|
1729
|
-
lines.push(` efSearch: ${config.learning.hnswConfig.efSearch}`);
|
|
1730
|
-
lines.push(` qualityThreshold: ${config.learning.qualityThreshold}`);
|
|
1731
|
-
lines.push(` promotionThreshold: ${config.learning.promotionThreshold}`);
|
|
1732
|
-
lines.push(` pretrainedPatterns: ${config.learning.pretrainedPatterns}`);
|
|
1733
|
-
lines.push('');
|
|
1734
|
-
// Routing section
|
|
1735
|
-
lines.push('routing:');
|
|
1736
|
-
lines.push(` mode: "${config.routing.mode}"`);
|
|
1737
|
-
lines.push(` confidenceThreshold: ${config.routing.confidenceThreshold}`);
|
|
1738
|
-
lines.push(` feedbackEnabled: ${config.routing.feedbackEnabled}`);
|
|
1739
|
-
lines.push('');
|
|
1740
|
-
// Workers section
|
|
1741
|
-
lines.push('workers:');
|
|
1742
|
-
lines.push(' enabled:');
|
|
1743
|
-
for (const worker of config.workers.enabled) {
|
|
1744
|
-
lines.push(` - "${worker}"`);
|
|
1745
|
-
}
|
|
1746
|
-
lines.push(' intervals:');
|
|
1747
|
-
for (const [key, value] of Object.entries(config.workers.intervals)) {
|
|
1748
|
-
lines.push(` ${key}: ${value}`);
|
|
1749
|
-
}
|
|
1750
|
-
lines.push(` maxConcurrent: ${config.workers.maxConcurrent}`);
|
|
1751
|
-
lines.push(` daemonAutoStart: ${config.workers.daemonAutoStart}`);
|
|
1752
|
-
lines.push('');
|
|
1753
|
-
// Hooks section
|
|
1754
|
-
lines.push('hooks:');
|
|
1755
|
-
lines.push(` claudeCode: ${config.hooks.claudeCode}`);
|
|
1756
|
-
lines.push(` preCommit: ${config.hooks.preCommit}`);
|
|
1757
|
-
lines.push(` ciIntegration: ${config.hooks.ciIntegration}`);
|
|
1758
|
-
lines.push('');
|
|
1759
|
-
// Skills section (QE skills only - platform skills managed by claude-flow)
|
|
1760
|
-
lines.push('skills:');
|
|
1761
|
-
lines.push(` install: ${config.skills.install}`);
|
|
1762
|
-
lines.push(` installV2: ${config.skills.installV2}`);
|
|
1763
|
-
lines.push(` installV3: ${config.skills.installV3}`);
|
|
1764
|
-
lines.push(` overwrite: ${config.skills.overwrite}`);
|
|
1765
|
-
lines.push('');
|
|
1766
|
-
// Auto-tuning section
|
|
1767
|
-
lines.push('autoTuning:');
|
|
1768
|
-
lines.push(` enabled: ${config.autoTuning.enabled}`);
|
|
1769
|
-
lines.push(' parameters:');
|
|
1770
|
-
for (const param of config.autoTuning.parameters) {
|
|
1771
|
-
lines.push(` - "${param}"`);
|
|
1772
|
-
}
|
|
1773
|
-
lines.push(` evaluationPeriodMs: ${config.autoTuning.evaluationPeriodMs}`);
|
|
1774
|
-
lines.push('');
|
|
1775
|
-
// Domains section
|
|
1776
|
-
lines.push('domains:');
|
|
1777
|
-
lines.push(' enabled:');
|
|
1778
|
-
for (const domain of config.domains.enabled) {
|
|
1779
|
-
lines.push(` - "${domain}"`);
|
|
1780
|
-
}
|
|
1781
|
-
lines.push(' disabled:');
|
|
1782
|
-
for (const domain of config.domains.disabled) {
|
|
1783
|
-
lines.push(` - "${domain}"`);
|
|
1784
|
-
}
|
|
1785
|
-
lines.push('');
|
|
1786
|
-
// Agents section
|
|
1787
|
-
lines.push('agents:');
|
|
1788
|
-
lines.push(` maxConcurrent: ${config.agents.maxConcurrent}`);
|
|
1789
|
-
lines.push(` defaultTimeout: ${config.agents.defaultTimeout}`);
|
|
1790
|
-
lines.push('');
|
|
1791
|
-
return lines.join('\n');
|
|
1792
|
-
}
|
|
1793
373
|
}
|
|
374
|
+
// ============================================================================
|
|
375
|
+
// Factory & Utility Functions
|
|
376
|
+
// ============================================================================
|
|
1794
377
|
/**
|
|
1795
378
|
* Factory function to create init orchestrator
|
|
1796
379
|
*/
|
|
@@ -1813,33 +396,30 @@ export async function quickInit(projectRoot) {
|
|
|
1813
396
|
export function formatInitResult(result) {
|
|
1814
397
|
const lines = [];
|
|
1815
398
|
lines.push('');
|
|
1816
|
-
lines.push('
|
|
1817
|
-
lines.push('
|
|
1818
|
-
lines.push('
|
|
1819
|
-
// Steps
|
|
399
|
+
lines.push('+-------------------------------------------------------------+');
|
|
400
|
+
lines.push('| AQE v3 Initialization |');
|
|
401
|
+
lines.push('+-------------------------------------------------------------+');
|
|
1820
402
|
for (const step of result.steps) {
|
|
1821
|
-
const icon = step.status === 'success' ? '
|
|
1822
|
-
lines.push(
|
|
403
|
+
const icon = step.status === 'success' ? '[OK]' : step.status === 'error' ? '[!!]' : '[ ]';
|
|
404
|
+
lines.push(`| ${icon} ${step.step.padEnd(50)} ${String(step.durationMs).padStart(4)}ms |`);
|
|
1823
405
|
}
|
|
1824
|
-
lines.push('
|
|
1825
|
-
|
|
1826
|
-
lines.push(
|
|
1827
|
-
lines.push(
|
|
1828
|
-
lines.push(
|
|
1829
|
-
lines.push(
|
|
1830
|
-
lines.push(
|
|
1831
|
-
lines.push(
|
|
1832
|
-
lines.push(
|
|
1833
|
-
lines.push(
|
|
1834
|
-
lines.push(
|
|
1835
|
-
lines.push(
|
|
1836
|
-
lines.push('├─────────────────────────────────────────────────────────────┤');
|
|
1837
|
-
// Final status
|
|
406
|
+
lines.push('+-------------------------------------------------------------+');
|
|
407
|
+
lines.push(`| Project: ${result.config.project.name.padEnd(47)} |`);
|
|
408
|
+
lines.push(`| Type: ${result.config.project.type.padEnd(50)} |`);
|
|
409
|
+
lines.push(`| Code Intel Indexed: ${String(result.summary.codeIntelligenceIndexed).padEnd(36)} |`);
|
|
410
|
+
lines.push(`| Patterns Loaded: ${String(result.summary.patternsLoaded).padEnd(39)} |`);
|
|
411
|
+
lines.push(`| Skills Installed: ${String(result.summary.skillsInstalled).padEnd(38)} |`);
|
|
412
|
+
lines.push(`| Agents Installed: ${String(result.summary.agentsInstalled).padEnd(38)} |`);
|
|
413
|
+
lines.push(`| Workers Started: ${String(result.summary.workersStarted).padEnd(39)} |`);
|
|
414
|
+
lines.push(`| Hooks Configured: ${result.summary.hooksConfigured ? 'Yes' : 'No'.padEnd(38)} |`);
|
|
415
|
+
lines.push(`| MCP Server: ${result.summary.mcpConfigured ? 'Yes' : 'No'.padEnd(44)} |`);
|
|
416
|
+
lines.push(`| CLAUDE.md: ${result.summary.claudeMdGenerated ? 'Yes' : 'No'.padEnd(45)} |`);
|
|
417
|
+
lines.push('+-------------------------------------------------------------+');
|
|
1838
418
|
const status = result.success
|
|
1839
|
-
? '
|
|
1840
|
-
: '
|
|
1841
|
-
lines.push(
|
|
1842
|
-
lines.push('
|
|
419
|
+
? '[OK] AQE v3 initialized as self-learning platform'
|
|
420
|
+
: '[!!] Initialization failed';
|
|
421
|
+
lines.push(`| ${status.padEnd(57)} |`);
|
|
422
|
+
lines.push('+-------------------------------------------------------------+');
|
|
1843
423
|
lines.push('');
|
|
1844
424
|
return lines.join('\n');
|
|
1845
425
|
}
|