agentic-qe 3.3.0 → 3.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -2
- package/package.json +6 -1
- package/v3/CHANGELOG.md +134 -0
- package/v3/dist/cli/bundle.js +29332 -22739
- package/v3/dist/cli/command-registry.d.ts +55 -0
- package/v3/dist/cli/command-registry.d.ts.map +1 -0
- package/v3/dist/cli/command-registry.js +103 -0
- package/v3/dist/cli/command-registry.js.map +1 -0
- package/v3/dist/cli/commands/code.d.ts +9 -0
- package/v3/dist/cli/commands/code.d.ts.map +1 -0
- package/v3/dist/cli/commands/code.js +254 -0
- package/v3/dist/cli/commands/code.js.map +1 -0
- package/v3/dist/cli/commands/completions.d.ts +8 -0
- package/v3/dist/cli/commands/completions.d.ts.map +1 -0
- package/v3/dist/cli/commands/completions.js +99 -0
- package/v3/dist/cli/commands/completions.js.map +1 -0
- package/v3/dist/cli/commands/coverage.d.ts +9 -0
- package/v3/dist/cli/commands/coverage.d.ts.map +1 -0
- package/v3/dist/cli/commands/coverage.js +208 -0
- package/v3/dist/cli/commands/coverage.js.map +1 -0
- package/v3/dist/cli/commands/fleet.d.ts +11 -0
- package/v3/dist/cli/commands/fleet.d.ts.map +1 -0
- package/v3/dist/cli/commands/fleet.js +338 -0
- package/v3/dist/cli/commands/fleet.js.map +1 -0
- package/v3/dist/cli/commands/migrate.d.ts +9 -0
- package/v3/dist/cli/commands/migrate.d.ts.map +1 -0
- package/v3/dist/cli/commands/migrate.js +566 -0
- package/v3/dist/cli/commands/migrate.js.map +1 -0
- package/v3/dist/cli/commands/quality.d.ts +9 -0
- package/v3/dist/cli/commands/quality.d.ts.map +1 -0
- package/v3/dist/cli/commands/quality.js +40 -0
- package/v3/dist/cli/commands/quality.js.map +1 -0
- package/v3/dist/cli/commands/security.d.ts +9 -0
- package/v3/dist/cli/commands/security.d.ts.map +1 -0
- package/v3/dist/cli/commands/security.js +124 -0
- package/v3/dist/cli/commands/security.js.map +1 -0
- package/v3/dist/cli/commands/sync.d.ts +19 -0
- package/v3/dist/cli/commands/sync.d.ts.map +1 -0
- package/v3/dist/cli/commands/sync.js +283 -0
- package/v3/dist/cli/commands/sync.js.map +1 -0
- package/v3/dist/cli/commands/test.d.ts +9 -0
- package/v3/dist/cli/commands/test.d.ts.map +1 -0
- package/v3/dist/cli/commands/test.js +166 -0
- package/v3/dist/cli/commands/test.js.map +1 -0
- package/v3/dist/cli/handlers/agent-handler.d.ts +20 -0
- package/v3/dist/cli/handlers/agent-handler.d.ts.map +1 -0
- package/v3/dist/cli/handlers/agent-handler.js +158 -0
- package/v3/dist/cli/handlers/agent-handler.js.map +1 -0
- package/v3/dist/cli/handlers/domain-handler.d.ts +20 -0
- package/v3/dist/cli/handlers/domain-handler.d.ts.map +1 -0
- package/v3/dist/cli/handlers/domain-handler.js +115 -0
- package/v3/dist/cli/handlers/domain-handler.js.map +1 -0
- package/v3/dist/cli/handlers/index.d.ts +13 -0
- package/v3/dist/cli/handlers/index.d.ts.map +1 -0
- package/v3/dist/cli/handlers/index.js +15 -0
- package/v3/dist/cli/handlers/index.js.map +1 -0
- package/v3/dist/cli/handlers/init-handler.d.ts +38 -0
- package/v3/dist/cli/handlers/init-handler.d.ts.map +1 -0
- package/v3/dist/cli/handlers/init-handler.js +288 -0
- package/v3/dist/cli/handlers/init-handler.js.map +1 -0
- package/v3/dist/cli/handlers/interfaces.d.ts +104 -0
- package/v3/dist/cli/handlers/interfaces.d.ts.map +1 -0
- package/v3/dist/cli/handlers/interfaces.js +109 -0
- package/v3/dist/cli/handlers/interfaces.js.map +1 -0
- package/v3/dist/cli/handlers/protocol-handler.d.ts +19 -0
- package/v3/dist/cli/handlers/protocol-handler.d.ts.map +1 -0
- package/v3/dist/cli/handlers/protocol-handler.js +79 -0
- package/v3/dist/cli/handlers/protocol-handler.js.map +1 -0
- package/v3/dist/cli/handlers/status-handler.d.ts +30 -0
- package/v3/dist/cli/handlers/status-handler.d.ts.map +1 -0
- package/v3/dist/cli/handlers/status-handler.js +218 -0
- package/v3/dist/cli/handlers/status-handler.js.map +1 -0
- package/v3/dist/cli/handlers/task-handler.d.ts +22 -0
- package/v3/dist/cli/handlers/task-handler.d.ts.map +1 -0
- package/v3/dist/cli/handlers/task-handler.js +271 -0
- package/v3/dist/cli/handlers/task-handler.js.map +1 -0
- package/v3/dist/cli/index.d.ts +4 -0
- package/v3/dist/cli/index.d.ts.map +1 -1
- package/v3/dist/cli/index.js +48 -2677
- package/v3/dist/cli/index.js.map +1 -1
- package/v3/dist/cli/wizards/core/index.d.ts +11 -0
- package/v3/dist/cli/wizards/core/index.d.ts.map +1 -0
- package/v3/dist/cli/wizards/core/index.js +15 -0
- package/v3/dist/cli/wizards/core/index.js.map +1 -0
- package/v3/dist/cli/wizards/core/wizard-base.d.ts +87 -0
- package/v3/dist/cli/wizards/core/wizard-base.d.ts.map +1 -0
- package/v3/dist/cli/wizards/core/wizard-base.js +120 -0
- package/v3/dist/cli/wizards/core/wizard-base.js.map +1 -0
- package/v3/dist/cli/wizards/core/wizard-command.d.ts +182 -0
- package/v3/dist/cli/wizards/core/wizard-command.d.ts.map +1 -0
- package/v3/dist/cli/wizards/core/wizard-command.js +45 -0
- package/v3/dist/cli/wizards/core/wizard-command.js.map +1 -0
- package/v3/dist/cli/wizards/core/wizard-step.d.ts +109 -0
- package/v3/dist/cli/wizards/core/wizard-step.d.ts.map +1 -0
- package/v3/dist/cli/wizards/core/wizard-step.js +384 -0
- package/v3/dist/cli/wizards/core/wizard-step.js.map +1 -0
- package/v3/dist/cli/wizards/core/wizard-utils.d.ts +117 -0
- package/v3/dist/cli/wizards/core/wizard-utils.d.ts.map +1 -0
- package/v3/dist/cli/wizards/core/wizard-utils.js +291 -0
- package/v3/dist/cli/wizards/core/wizard-utils.js.map +1 -0
- package/v3/dist/cli/wizards/coverage-wizard.d.ts +13 -68
- package/v3/dist/cli/wizards/coverage-wizard.d.ts.map +1 -1
- package/v3/dist/cli/wizards/coverage-wizard.js +127 -391
- package/v3/dist/cli/wizards/coverage-wizard.js.map +1 -1
- package/v3/dist/cli/wizards/fleet-wizard.d.ts +13 -64
- package/v3/dist/cli/wizards/fleet-wizard.d.ts.map +1 -1
- package/v3/dist/cli/wizards/fleet-wizard.js +150 -363
- package/v3/dist/cli/wizards/fleet-wizard.js.map +1 -1
- package/v3/dist/cli/wizards/index.d.ts +2 -0
- package/v3/dist/cli/wizards/index.d.ts.map +1 -1
- package/v3/dist/cli/wizards/index.js +3 -0
- package/v3/dist/cli/wizards/index.js.map +1 -1
- package/v3/dist/cli/wizards/security-wizard.d.ts +13 -64
- package/v3/dist/cli/wizards/security-wizard.d.ts.map +1 -1
- package/v3/dist/cli/wizards/security-wizard.js +152 -395
- package/v3/dist/cli/wizards/security-wizard.js.map +1 -1
- package/v3/dist/cli/wizards/test-wizard.d.ts +13 -77
- package/v3/dist/cli/wizards/test-wizard.d.ts.map +1 -1
- package/v3/dist/cli/wizards/test-wizard.js +196 -328
- package/v3/dist/cli/wizards/test-wizard.js.map +1 -1
- package/v3/dist/coordination/mincut/mincut-health-monitor.d.ts +3 -0
- package/v3/dist/coordination/mincut/mincut-health-monitor.d.ts.map +1 -1
- package/v3/dist/coordination/mincut/mincut-health-monitor.js +6 -2
- package/v3/dist/coordination/mincut/mincut-health-monitor.js.map +1 -1
- package/v3/dist/coordination/mincut/queen-integration.d.ts +3 -0
- package/v3/dist/coordination/mincut/queen-integration.d.ts.map +1 -1
- package/v3/dist/coordination/mincut/queen-integration.js +6 -1
- package/v3/dist/coordination/mincut/queen-integration.js.map +1 -1
- package/v3/dist/coordination/queen-coordinator.d.ts +13 -1
- package/v3/dist/coordination/queen-coordinator.d.ts.map +1 -1
- package/v3/dist/coordination/queen-coordinator.js +91 -3
- package/v3/dist/coordination/queen-coordinator.js.map +1 -1
- package/v3/dist/coordination/task-executor.js +2 -2
- package/v3/dist/coordination/task-executor.js.map +1 -1
- package/v3/dist/domains/chaos-resilience/plugin.js +2 -2
- package/v3/dist/domains/chaos-resilience/plugin.js.map +1 -1
- package/v3/dist/domains/code-intelligence/plugin.js +2 -2
- package/v3/dist/domains/code-intelligence/plugin.js.map +1 -1
- package/v3/dist/domains/contract-testing/plugin.js +2 -2
- package/v3/dist/domains/contract-testing/plugin.js.map +1 -1
- package/v3/dist/domains/coverage-analysis/plugin.d.ts +6 -1
- package/v3/dist/domains/coverage-analysis/plugin.d.ts.map +1 -1
- package/v3/dist/domains/coverage-analysis/plugin.js +75 -1
- package/v3/dist/domains/coverage-analysis/plugin.js.map +1 -1
- package/v3/dist/domains/defect-intelligence/plugin.js +2 -2
- package/v3/dist/domains/defect-intelligence/plugin.js.map +1 -1
- package/v3/dist/domains/domain-interface.d.ts +39 -2
- package/v3/dist/domains/domain-interface.d.ts.map +1 -1
- package/v3/dist/domains/domain-interface.js +102 -1
- package/v3/dist/domains/domain-interface.js.map +1 -1
- package/v3/dist/domains/learning-optimization/coordinator.d.ts +83 -0
- package/v3/dist/domains/learning-optimization/coordinator.d.ts.map +1 -1
- package/v3/dist/domains/learning-optimization/coordinator.js +174 -0
- package/v3/dist/domains/learning-optimization/coordinator.js.map +1 -1
- package/v3/dist/domains/learning-optimization/interfaces.d.ts +14 -0
- package/v3/dist/domains/learning-optimization/interfaces.d.ts.map +1 -1
- package/v3/dist/domains/learning-optimization/plugin.js +2 -2
- package/v3/dist/domains/learning-optimization/plugin.js.map +1 -1
- package/v3/dist/domains/quality-assessment/coordinator.d.ts +23 -0
- package/v3/dist/domains/quality-assessment/coordinator.d.ts.map +1 -1
- package/v3/dist/domains/quality-assessment/coordinator.js +139 -1
- package/v3/dist/domains/quality-assessment/coordinator.js.map +1 -1
- package/v3/dist/domains/quality-assessment/plugin.d.ts +6 -1
- package/v3/dist/domains/quality-assessment/plugin.d.ts.map +1 -1
- package/v3/dist/domains/quality-assessment/plugin.js +69 -2
- package/v3/dist/domains/quality-assessment/plugin.js.map +1 -1
- package/v3/dist/domains/requirements-validation/plugin.js +2 -2
- package/v3/dist/domains/requirements-validation/plugin.js.map +1 -1
- package/v3/dist/domains/security-compliance/plugin.js +2 -2
- package/v3/dist/domains/security-compliance/plugin.js.map +1 -1
- package/v3/dist/domains/test-execution/index.d.ts +2 -1
- package/v3/dist/domains/test-execution/index.d.ts.map +1 -1
- package/v3/dist/domains/test-execution/index.js +0 -2
- package/v3/dist/domains/test-execution/index.js.map +1 -1
- package/v3/dist/domains/test-execution/interfaces.d.ts +222 -25
- package/v3/dist/domains/test-execution/interfaces.d.ts.map +1 -1
- package/v3/dist/domains/test-execution/interfaces.js +130 -3
- package/v3/dist/domains/test-execution/interfaces.js.map +1 -1
- package/v3/dist/domains/test-execution/plugin.d.ts +6 -1
- package/v3/dist/domains/test-execution/plugin.d.ts.map +1 -1
- package/v3/dist/domains/test-execution/plugin.js +79 -1
- package/v3/dist/domains/test-execution/plugin.js.map +1 -1
- package/v3/dist/domains/test-execution/test-prioritization-types.d.ts +5 -172
- package/v3/dist/domains/test-execution/test-prioritization-types.d.ts.map +1 -1
- package/v3/dist/domains/test-execution/test-prioritization-types.js +6 -129
- package/v3/dist/domains/test-execution/test-prioritization-types.js.map +1 -1
- package/v3/dist/domains/test-execution/types/index.d.ts +7 -3
- package/v3/dist/domains/test-execution/types/index.d.ts.map +1 -1
- package/v3/dist/domains/test-execution/types/index.js +7 -17
- package/v3/dist/domains/test-execution/types/index.js.map +1 -1
- package/v3/dist/domains/test-generation/coordinator.d.ts +41 -1
- package/v3/dist/domains/test-generation/coordinator.d.ts.map +1 -1
- package/v3/dist/domains/test-generation/coordinator.js +187 -4
- package/v3/dist/domains/test-generation/coordinator.js.map +1 -1
- package/v3/dist/domains/test-generation/factories/index.d.ts +8 -0
- package/v3/dist/domains/test-generation/factories/index.d.ts.map +1 -0
- package/v3/dist/domains/test-generation/factories/index.js +8 -0
- package/v3/dist/domains/test-generation/factories/index.js.map +1 -0
- package/v3/dist/domains/test-generation/factories/test-generator-factory.d.ts +108 -0
- package/v3/dist/domains/test-generation/factories/test-generator-factory.d.ts.map +1 -0
- package/v3/dist/domains/test-generation/factories/test-generator-factory.js +158 -0
- package/v3/dist/domains/test-generation/factories/test-generator-factory.js.map +1 -0
- package/v3/dist/domains/test-generation/generators/base-test-generator.d.ts +79 -0
- package/v3/dist/domains/test-generation/generators/base-test-generator.d.ts.map +1 -0
- package/v3/dist/domains/test-generation/generators/base-test-generator.js +252 -0
- package/v3/dist/domains/test-generation/generators/base-test-generator.js.map +1 -0
- package/v3/dist/domains/test-generation/generators/index.d.ts +11 -0
- package/v3/dist/domains/test-generation/generators/index.d.ts.map +1 -0
- package/v3/dist/domains/test-generation/generators/index.js +13 -0
- package/v3/dist/domains/test-generation/generators/index.js.map +1 -0
- package/v3/dist/domains/test-generation/generators/jest-vitest-generator.d.ts +77 -0
- package/v3/dist/domains/test-generation/generators/jest-vitest-generator.d.ts.map +1 -0
- package/v3/dist/domains/test-generation/generators/jest-vitest-generator.js +365 -0
- package/v3/dist/domains/test-generation/generators/jest-vitest-generator.js.map +1 -0
- package/v3/dist/domains/test-generation/generators/mocha-generator.d.ts +56 -0
- package/v3/dist/domains/test-generation/generators/mocha-generator.d.ts.map +1 -0
- package/v3/dist/domains/test-generation/generators/mocha-generator.js +197 -0
- package/v3/dist/domains/test-generation/generators/mocha-generator.js.map +1 -0
- package/v3/dist/domains/test-generation/generators/pytest-generator.d.ts +66 -0
- package/v3/dist/domains/test-generation/generators/pytest-generator.d.ts.map +1 -0
- package/v3/dist/domains/test-generation/generators/pytest-generator.js +240 -0
- package/v3/dist/domains/test-generation/generators/pytest-generator.js.map +1 -0
- package/v3/dist/domains/test-generation/index.d.ts +2 -2
- package/v3/dist/domains/test-generation/index.d.ts.map +1 -1
- package/v3/dist/domains/test-generation/index.js +3 -3
- package/v3/dist/domains/test-generation/index.js.map +1 -1
- package/v3/dist/domains/test-generation/interfaces/index.d.ts +9 -0
- package/v3/dist/domains/test-generation/interfaces/index.d.ts.map +1 -0
- package/v3/dist/domains/test-generation/interfaces/index.js +9 -0
- package/v3/dist/domains/test-generation/interfaces/index.js.map +1 -0
- package/v3/dist/domains/test-generation/interfaces/test-generator.interface.d.ts +166 -0
- package/v3/dist/domains/test-generation/interfaces/test-generator.interface.d.ts.map +1 -0
- package/v3/dist/domains/test-generation/interfaces/test-generator.interface.js +8 -0
- package/v3/dist/domains/test-generation/interfaces/test-generator.interface.js.map +1 -0
- package/v3/dist/domains/test-generation/interfaces.d.ts +163 -24
- package/v3/dist/domains/test-generation/interfaces.d.ts.map +1 -1
- package/v3/dist/domains/test-generation/interfaces.js +2 -2
- package/v3/dist/domains/test-generation/plugin.d.ts +6 -1
- package/v3/dist/domains/test-generation/plugin.d.ts.map +1 -1
- package/v3/dist/domains/test-generation/plugin.js +90 -5
- package/v3/dist/domains/test-generation/plugin.js.map +1 -1
- package/v3/dist/domains/test-generation/{coherence-gate.d.ts → services/coherence-gate-service.d.ts} +4 -4
- package/v3/dist/domains/test-generation/services/coherence-gate-service.d.ts.map +1 -0
- package/v3/dist/domains/test-generation/{coherence-gate.js → services/coherence-gate-service.js} +2 -2
- package/v3/dist/domains/test-generation/services/coherence-gate-service.js.map +1 -0
- package/v3/dist/domains/test-generation/services/index.d.ts +8 -2
- package/v3/dist/domains/test-generation/services/index.d.ts.map +1 -1
- package/v3/dist/domains/test-generation/services/index.js +10 -3
- package/v3/dist/domains/test-generation/services/index.js.map +1 -1
- package/v3/dist/domains/test-generation/services/property-test-generator.d.ts +34 -0
- package/v3/dist/domains/test-generation/services/property-test-generator.d.ts.map +1 -0
- package/v3/dist/domains/test-generation/services/property-test-generator.js +306 -0
- package/v3/dist/domains/test-generation/services/property-test-generator.js.map +1 -0
- package/v3/dist/domains/test-generation/services/tdd-generator.d.ts +33 -0
- package/v3/dist/domains/test-generation/services/tdd-generator.d.ts.map +1 -0
- package/v3/dist/domains/test-generation/services/tdd-generator.js +342 -0
- package/v3/dist/domains/test-generation/services/tdd-generator.js.map +1 -0
- package/v3/dist/domains/test-generation/services/test-data-generator.d.ts +34 -0
- package/v3/dist/domains/test-generation/services/test-data-generator.d.ts.map +1 -0
- package/v3/dist/domains/test-generation/services/test-data-generator.js +245 -0
- package/v3/dist/domains/test-generation/services/test-data-generator.js.map +1 -0
- package/v3/dist/domains/test-generation/services/test-generator.d.ts +51 -160
- package/v3/dist/domains/test-generation/services/test-generator.d.ts.map +1 -1
- package/v3/dist/domains/test-generation/services/test-generator.js +101 -1858
- package/v3/dist/domains/test-generation/services/test-generator.js.map +1 -1
- package/v3/dist/domains/visual-accessibility/plugin.js +2 -2
- package/v3/dist/domains/visual-accessibility/plugin.js.map +1 -1
- package/v3/dist/init/phases/12-verification.d.ts +23 -0
- package/v3/dist/init/phases/12-verification.d.ts.map +1 -1
- package/v3/dist/init/phases/12-verification.js +185 -2
- package/v3/dist/init/phases/12-verification.js.map +1 -1
- package/v3/dist/integrations/agentic-flow/model-router/complexity-analyzer.d.ts +24 -62
- package/v3/dist/integrations/agentic-flow/model-router/complexity-analyzer.d.ts.map +1 -1
- package/v3/dist/integrations/agentic-flow/model-router/complexity-analyzer.js +45 -497
- package/v3/dist/integrations/agentic-flow/model-router/complexity-analyzer.js.map +1 -1
- package/v3/dist/integrations/agentic-flow/model-router/router.js +2 -2
- package/v3/dist/integrations/agentic-flow/model-router/router.js.map +1 -1
- package/v3/dist/integrations/agentic-flow/model-router/score-calculator.d.ts +98 -0
- package/v3/dist/integrations/agentic-flow/model-router/score-calculator.d.ts.map +1 -0
- package/v3/dist/integrations/agentic-flow/model-router/score-calculator.js +197 -0
- package/v3/dist/integrations/agentic-flow/model-router/score-calculator.js.map +1 -0
- package/v3/dist/integrations/agentic-flow/model-router/signal-collector.d.ts +102 -0
- package/v3/dist/integrations/agentic-flow/model-router/signal-collector.d.ts.map +1 -0
- package/v3/dist/integrations/agentic-flow/model-router/signal-collector.js +372 -0
- package/v3/dist/integrations/agentic-flow/model-router/signal-collector.js.map +1 -0
- package/v3/dist/integrations/agentic-flow/model-router/tier-recommender.d.ts +64 -0
- package/v3/dist/integrations/agentic-flow/model-router/tier-recommender.d.ts.map +1 -0
- package/v3/dist/integrations/agentic-flow/model-router/tier-recommender.js +120 -0
- package/v3/dist/integrations/agentic-flow/model-router/tier-recommender.js.map +1 -0
- package/v3/dist/integrations/coherence/coherence-service.d.ts.map +1 -1
- package/v3/dist/integrations/coherence/coherence-service.js +87 -30
- package/v3/dist/integrations/coherence/coherence-service.js.map +1 -1
- package/v3/dist/integrations/coherence/engines/spectral-adapter.d.ts.map +1 -1
- package/v3/dist/integrations/coherence/engines/spectral-adapter.js +124 -35
- package/v3/dist/integrations/coherence/engines/spectral-adapter.js.map +1 -1
- package/v3/dist/kernel/interfaces.d.ts +54 -1
- package/v3/dist/kernel/interfaces.d.ts.map +1 -1
- package/v3/dist/learning/dream/dream-scheduler.d.ts +302 -0
- package/v3/dist/learning/dream/dream-scheduler.d.ts.map +1 -0
- package/v3/dist/learning/dream/dream-scheduler.js +551 -0
- package/v3/dist/learning/dream/dream-scheduler.js.map +1 -0
- package/v3/dist/learning/dream/index.d.ts +1 -0
- package/v3/dist/learning/dream/index.d.ts.map +1 -1
- package/v3/dist/learning/dream/index.js +4 -0
- package/v3/dist/learning/dream/index.js.map +1 -1
- package/v3/dist/learning/memory-auditor.d.ts.map +1 -1
- package/v3/dist/learning/memory-auditor.js +3 -1
- package/v3/dist/learning/memory-auditor.js.map +1 -1
- package/v3/dist/mcp/bundle.js +30870 -23598
- package/v3/dist/mcp/handlers/core-handlers.d.ts.map +1 -1
- package/v3/dist/mcp/handlers/core-handlers.js +16 -2
- package/v3/dist/mcp/handlers/core-handlers.js.map +1 -1
- package/v3/dist/mcp/handlers/task-handlers.d.ts +1 -0
- package/v3/dist/mcp/handlers/task-handlers.d.ts.map +1 -1
- package/v3/dist/mcp/handlers/task-handlers.js +46 -12
- package/v3/dist/mcp/handlers/task-handlers.js.map +1 -1
- package/v3/dist/mcp/security/cve-prevention.d.ts +31 -134
- package/v3/dist/mcp/security/cve-prevention.d.ts.map +1 -1
- package/v3/dist/mcp/security/cve-prevention.js +37 -562
- package/v3/dist/mcp/security/cve-prevention.js.map +1 -1
- package/v3/dist/mcp/security/index.d.ts +5 -1
- package/v3/dist/mcp/security/index.d.ts.map +1 -1
- package/v3/dist/mcp/security/validators/command-validator.d.ts +41 -0
- package/v3/dist/mcp/security/validators/command-validator.d.ts.map +1 -0
- package/v3/dist/mcp/security/validators/command-validator.js +123 -0
- package/v3/dist/mcp/security/validators/command-validator.js.map +1 -0
- package/v3/dist/mcp/security/validators/crypto-validator.d.ts +40 -0
- package/v3/dist/mcp/security/validators/crypto-validator.d.ts.map +1 -0
- package/v3/dist/mcp/security/validators/crypto-validator.js +72 -0
- package/v3/dist/mcp/security/validators/crypto-validator.js.map +1 -0
- package/v3/dist/mcp/security/validators/index.d.ts +12 -0
- package/v3/dist/mcp/security/validators/index.d.ts.map +1 -0
- package/v3/dist/mcp/security/validators/index.js +22 -0
- package/v3/dist/mcp/security/validators/index.js.map +1 -0
- package/v3/dist/mcp/security/validators/input-sanitizer.d.ts +56 -0
- package/v3/dist/mcp/security/validators/input-sanitizer.d.ts.map +1 -0
- package/v3/dist/mcp/security/validators/input-sanitizer.js +157 -0
- package/v3/dist/mcp/security/validators/input-sanitizer.js.map +1 -0
- package/v3/dist/mcp/security/validators/interfaces.d.ts +164 -0
- package/v3/dist/mcp/security/validators/interfaces.d.ts.map +1 -0
- package/v3/dist/mcp/security/validators/interfaces.js +6 -0
- package/v3/dist/mcp/security/validators/interfaces.js.map +1 -0
- package/v3/dist/mcp/security/validators/path-traversal-validator.d.ts +50 -0
- package/v3/dist/mcp/security/validators/path-traversal-validator.d.ts.map +1 -0
- package/v3/dist/mcp/security/validators/path-traversal-validator.js +242 -0
- package/v3/dist/mcp/security/validators/path-traversal-validator.js.map +1 -0
- package/v3/dist/mcp/security/validators/regex-safety-validator.d.ts +50 -0
- package/v3/dist/mcp/security/validators/regex-safety-validator.d.ts.map +1 -0
- package/v3/dist/mcp/security/validators/regex-safety-validator.js +183 -0
- package/v3/dist/mcp/security/validators/regex-safety-validator.js.map +1 -0
- package/v3/dist/mcp/security/validators/validation-orchestrator.d.ts +66 -0
- package/v3/dist/mcp/security/validators/validation-orchestrator.d.ts.map +1 -0
- package/v3/dist/mcp/security/validators/validation-orchestrator.js +146 -0
- package/v3/dist/mcp/security/validators/validation-orchestrator.js.map +1 -0
- package/v3/dist/mcp/server.d.ts.map +1 -1
- package/v3/dist/mcp/server.js +1 -0
- package/v3/dist/mcp/server.js.map +1 -1
- package/v3/dist/mcp/services/reasoning-bank-service.d.ts +87 -13
- package/v3/dist/mcp/services/reasoning-bank-service.d.ts.map +1 -1
- package/v3/dist/mcp/services/reasoning-bank-service.js +291 -31
- package/v3/dist/mcp/services/reasoning-bank-service.js.map +1 -1
- package/v3/dist/mcp/tool-registry.d.ts +3 -1
- package/v3/dist/mcp/tool-registry.d.ts.map +1 -1
- package/v3/dist/mcp/tool-registry.js +155 -2
- package/v3/dist/mcp/tool-registry.js.map +1 -1
- package/v3/dist/mcp/tools/test-generation/generate.d.ts +1 -0
- package/v3/dist/mcp/tools/test-generation/generate.d.ts.map +1 -1
- package/v3/dist/mcp/tools/test-generation/generate.js +3 -2
- package/v3/dist/mcp/tools/test-generation/generate.js.map +1 -1
- package/v3/dist/routing/qe-agent-registry.d.ts +27 -0
- package/v3/dist/routing/qe-agent-registry.d.ts.map +1 -1
- package/v3/dist/routing/qe-agent-registry.js +96 -0
- package/v3/dist/routing/qe-agent-registry.js.map +1 -1
- package/v3/dist/shared/events/domain-events.d.ts +27 -0
- package/v3/dist/shared/events/domain-events.d.ts.map +1 -1
- package/v3/dist/shared/events/domain-events.js +1 -0
- package/v3/dist/shared/events/domain-events.js.map +1 -1
- package/v3/dist/sync/cloud/index.d.ts +8 -0
- package/v3/dist/sync/cloud/index.d.ts.map +1 -0
- package/v3/dist/sync/cloud/index.js +8 -0
- package/v3/dist/sync/cloud/index.js.map +1 -0
- package/v3/dist/sync/cloud/postgres-writer.d.ts +88 -0
- package/v3/dist/sync/cloud/postgres-writer.d.ts.map +1 -0
- package/v3/dist/sync/cloud/postgres-writer.js +319 -0
- package/v3/dist/sync/cloud/postgres-writer.js.map +1 -0
- package/v3/dist/sync/cloud/tunnel-manager.d.ts +75 -0
- package/v3/dist/sync/cloud/tunnel-manager.d.ts.map +1 -0
- package/v3/dist/sync/cloud/tunnel-manager.js +221 -0
- package/v3/dist/sync/cloud/tunnel-manager.js.map +1 -0
- package/v3/dist/sync/index.d.ts +35 -0
- package/v3/dist/sync/index.d.ts.map +1 -0
- package/v3/dist/sync/index.js +35 -0
- package/v3/dist/sync/index.js.map +1 -0
- package/v3/dist/sync/interfaces.d.ts +245 -0
- package/v3/dist/sync/interfaces.d.ts.map +1 -0
- package/v3/dist/sync/interfaces.js +160 -0
- package/v3/dist/sync/interfaces.js.map +1 -0
- package/v3/dist/sync/readers/index.d.ts +8 -0
- package/v3/dist/sync/readers/index.d.ts.map +1 -0
- package/v3/dist/sync/readers/index.js +8 -0
- package/v3/dist/sync/readers/index.js.map +1 -0
- package/v3/dist/sync/readers/json-reader.d.ts +95 -0
- package/v3/dist/sync/readers/json-reader.d.ts.map +1 -0
- package/v3/dist/sync/readers/json-reader.js +306 -0
- package/v3/dist/sync/readers/json-reader.js.map +1 -0
- package/v3/dist/sync/readers/sqlite-reader.d.ts +88 -0
- package/v3/dist/sync/readers/sqlite-reader.d.ts.map +1 -0
- package/v3/dist/sync/readers/sqlite-reader.js +255 -0
- package/v3/dist/sync/readers/sqlite-reader.js.map +1 -0
- package/v3/dist/sync/sync-agent.d.ts +116 -0
- package/v3/dist/sync/sync-agent.d.ts.map +1 -0
- package/v3/dist/sync/sync-agent.js +416 -0
- package/v3/dist/sync/sync-agent.js.map +1 -0
- package/v3/package.json +13 -2
- package/v3/dist/domains/test-generation/coherence-gate.d.ts.map +0 -1
- package/v3/dist/domains/test-generation/coherence-gate.js.map +0 -1
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Agentic QE v3 - Coverage Analysis Domain Plugin
|
|
3
3
|
* Plugin implementation for the microkernel architecture
|
|
4
4
|
*/
|
|
5
|
+
import { err } from '../../shared/types';
|
|
5
6
|
import { BaseDomainPlugin } from '../domain-interface';
|
|
6
7
|
import { TestExecutionEvents } from '../../shared/events';
|
|
7
8
|
import { CoverageAnalysisCoordinator } from './coordinator';
|
|
@@ -42,12 +43,85 @@ export class CoverageAnalysisPlugin extends BaseDomainPlugin {
|
|
|
42
43
|
return this.coordinator;
|
|
43
44
|
}
|
|
44
45
|
// ============================================================================
|
|
46
|
+
// Task Handlers (Queen-Domain Integration)
|
|
47
|
+
// ============================================================================
|
|
48
|
+
/**
|
|
49
|
+
* Get task handlers for direct Queen-Domain integration
|
|
50
|
+
* Maps task types to coordinator methods
|
|
51
|
+
*/
|
|
52
|
+
getTaskHandlers() {
|
|
53
|
+
return new Map([
|
|
54
|
+
// Analyze coverage task - main task type for this domain
|
|
55
|
+
['analyze-coverage', async (payload) => {
|
|
56
|
+
const coverageData = payload.coverageData;
|
|
57
|
+
if (!coverageData) {
|
|
58
|
+
return err(new Error('Invalid analyze-coverage payload: missing coverageData'));
|
|
59
|
+
}
|
|
60
|
+
this._activeAnalyses++;
|
|
61
|
+
this.updateAgentMetrics();
|
|
62
|
+
try {
|
|
63
|
+
return await this.coordinator.analyze({
|
|
64
|
+
coverageData,
|
|
65
|
+
threshold: payload.threshold,
|
|
66
|
+
includeFileDetails: payload.includeFileDetails,
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
finally {
|
|
70
|
+
this._activeAnalyses--;
|
|
71
|
+
this.updateAgentMetrics();
|
|
72
|
+
}
|
|
73
|
+
}],
|
|
74
|
+
// Detect gaps task
|
|
75
|
+
['detect-gaps', async (payload) => {
|
|
76
|
+
const coverageData = payload.coverageData;
|
|
77
|
+
if (!coverageData) {
|
|
78
|
+
return err(new Error('Invalid detect-gaps payload: missing coverageData'));
|
|
79
|
+
}
|
|
80
|
+
this._activeAnalyses++;
|
|
81
|
+
this.updateAgentMetrics();
|
|
82
|
+
try {
|
|
83
|
+
return await this.coordinator.detectGaps({
|
|
84
|
+
coverageData,
|
|
85
|
+
minCoverage: payload.minCoverage,
|
|
86
|
+
prioritize: payload.prioritize,
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
finally {
|
|
90
|
+
this._activeAnalyses--;
|
|
91
|
+
this.updateAgentMetrics();
|
|
92
|
+
}
|
|
93
|
+
}],
|
|
94
|
+
// Calculate risk task
|
|
95
|
+
['calculate-risk', async (payload) => {
|
|
96
|
+
const file = payload.file;
|
|
97
|
+
const uncoveredLines = payload.uncoveredLines;
|
|
98
|
+
if (!file || !uncoveredLines) {
|
|
99
|
+
return err(new Error('Invalid calculate-risk payload: missing file or uncoveredLines'));
|
|
100
|
+
}
|
|
101
|
+
this._activeAnalyses++;
|
|
102
|
+
this.updateAgentMetrics();
|
|
103
|
+
try {
|
|
104
|
+
return await this.coordinator.calculateRisk({
|
|
105
|
+
file,
|
|
106
|
+
uncoveredLines,
|
|
107
|
+
factors: payload.factors,
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
finally {
|
|
111
|
+
this._activeAnalyses--;
|
|
112
|
+
this.updateAgentMetrics();
|
|
113
|
+
}
|
|
114
|
+
}],
|
|
115
|
+
]);
|
|
116
|
+
}
|
|
117
|
+
// ============================================================================
|
|
45
118
|
// Lifecycle Hooks
|
|
46
119
|
// ============================================================================
|
|
47
120
|
async onInitialize() {
|
|
48
121
|
await this.coordinator.initialize();
|
|
122
|
+
// Issue #205 fix: Start with 'idle' status (0 agents)
|
|
49
123
|
this.updateHealth({
|
|
50
|
-
status: '
|
|
124
|
+
status: 'idle',
|
|
51
125
|
lastActivity: new Date(),
|
|
52
126
|
});
|
|
53
127
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../../src/domains/coverage-analysis/plugin.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|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AAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;gBACxC,IAAI,EAAE,IAAI,CAAC,eAAe,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;gBACtC,MAAM,EAAE,CAAC;aACV;YACD,YAAY,EAAE,IAAI,IAAI,EAAE;YACxB,MAAM,EAAE,EAAE;SACX,CAAC;QAEF,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;IAC5B,CAAC;IAED,SAAS;QACP,OAAO;YACL,GAAG,IAAI,CAAC,OAAO;YACf,MAAM,EAAE;gBACN,KAAK,EAAE,CAAC;gBACR,MAAM,EAAE,IAAI,CAAC,eAAe,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;gBACxC,IAAI,EAAE,IAAI,CAAC,eAAe,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;gBACtC,MAAM,EAAE,CAAC;aACV;YACD,YAAY,EAAE,IAAI,IAAI,EAAE;SACzB,CAAC;IACJ,CAAC;;AAGH,+EAA+E;AAC/E,mBAAmB;AACnB,+EAA+E;AAE/E;;GAEG;AACH,MAAM,UAAU,4BAA4B,CAC1C,QAAkB,EAClB,MAAqB;IAErB,OAAO,IAAI,sBAAsB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;AACtD,CAAC"}
|
|
@@ -67,9 +67,9 @@ export class DefectIntelligencePlugin extends BaseDomainPlugin {
|
|
|
67
67
|
this.coordinator = new DefectIntelligenceCoordinator(this.eventBus, this.memory, this.agentCoordinator, this.pluginConfig.coordinator);
|
|
68
68
|
// Initialize coordinator
|
|
69
69
|
await this.coordinator.initialize();
|
|
70
|
-
//
|
|
70
|
+
// Issue #205 fix: Start with 'idle' status (0 agents)
|
|
71
71
|
this.updateHealth({
|
|
72
|
-
status: '
|
|
72
|
+
status: 'idle',
|
|
73
73
|
agents: { total: 0, active: 0, idle: 0, failed: 0 },
|
|
74
74
|
lastActivity: new Date(),
|
|
75
75
|
errors: [],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../../src/domains/defect-intelligence/plugin.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAQH,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAcvD,OAAO,EACL,6BAA6B,GAG9B,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,sBAAsB,GAGvB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,qBAAqB,GAGtB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,wBAAwB,GAGzB,MAAM,gCAAgC,CAAC;AA6BxC;;;GAGG;AACH,MAAM,OAAO,wBAAyB,SAAQ,gBAAgB;IAUzC;IATX,WAAW,GAA0C,IAAI,CAAC;IAC1D,SAAS,GAAmC,IAAI,CAAC;IACjD,cAAc,GAAkC,IAAI,CAAC;IACrD,iBAAiB,GAAqC,IAAI,CAAC;IAClD,YAAY,CAAiC;IAE9D,YACE,QAAkB,EAClB,MAAqB,EACJ,gBAAkC,EACnD,SAAyC,EAAE;QAE3C,KAAK,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;QAHP,qBAAgB,GAAhB,gBAAgB,CAAkB;QAInD,IAAI,CAAC,YAAY,GAAG,MAAM,CAAC;IAC7B,CAAC;IAED,+EAA+E;IAC/E,wCAAwC;IACxC,+EAA+E;IAE/E,IAAI,IAAI;QACN,OAAO,qBAAqB,CAAC;IAC/B,CAAC;IAED,IAAI,OAAO;QACT,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,IAAI,YAAY;QACd,wEAAwE;QACxE,OAAO,EAAE,CAAC;IACZ,CAAC;IAED;;OAEG;IACH,MAAM;QACJ,MAAM,GAAG,GAAkC;YACzC,qBAAqB;YACrB,cAAc,EAAE,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC;YAC9C,gBAAgB,EAAE,IAAI,C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E,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC;SACpD,CAAC,CAAC;IACL,CAAC;CACF;AAED;;GAEG;AACH,MAAM,UAAU,8BAA8B,CAC5C,QAAkB,EAClB,MAAqB,EACrB,gBAAkC,EAClC,MAAuC;IAEvC,OAAO,IAAI,wBAAwB,CAAC,QAAQ,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,CAAC,CAAC;AAClF,CAAC"}
|
|
@@ -2,8 +2,13 @@
|
|
|
2
2
|
* Agentic QE v3 - Base Domain Interface
|
|
3
3
|
* Template for all domain implementations
|
|
4
4
|
*/
|
|
5
|
-
import { DomainName, DomainEvent } from '../shared/types';
|
|
6
|
-
import { DomainPlugin, DomainHealth, EventBus, MemoryBackend } from '../kernel/interfaces';
|
|
5
|
+
import { DomainName, DomainEvent, Result } from '../shared/types';
|
|
6
|
+
import { DomainPlugin, DomainHealth, EventBus, MemoryBackend, DomainTaskRequest, TaskCompletionCallback } from '../kernel/interfaces';
|
|
7
|
+
/**
|
|
8
|
+
* Task handler function type
|
|
9
|
+
* Handlers receive the task payload and return a result
|
|
10
|
+
*/
|
|
11
|
+
export type TaskHandler = (payload: Record<string, unknown>) => Promise<Result<unknown, Error>>;
|
|
7
12
|
/**
|
|
8
13
|
* Abstract base class for domain plugins
|
|
9
14
|
*/
|
|
@@ -28,5 +33,37 @@ export declare abstract class BaseDomainPlugin implements DomainPlugin {
|
|
|
28
33
|
protected subscribeToEvents(): void;
|
|
29
34
|
protected publishEvent<T>(type: string, payload: T): Promise<void>;
|
|
30
35
|
protected updateHealth(updates: Partial<DomainHealth>): void;
|
|
36
|
+
/**
|
|
37
|
+
* Get task type to handler mapping
|
|
38
|
+
* Override in subclasses to register domain-specific task handlers
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* protected override getTaskHandlers(): Map<string, TaskHandler> {
|
|
42
|
+
* return new Map([
|
|
43
|
+
* ['execute-tests', async (payload) => this.coordinator.execute(payload)],
|
|
44
|
+
* ['detect-flaky', async (payload) => this.coordinator.detectFlaky(payload)],
|
|
45
|
+
* ]);
|
|
46
|
+
* }
|
|
47
|
+
*/
|
|
48
|
+
protected getTaskHandlers(): Map<string, TaskHandler>;
|
|
49
|
+
/**
|
|
50
|
+
* Check if domain can handle a task type
|
|
51
|
+
* Based on registered task handlers
|
|
52
|
+
*/
|
|
53
|
+
canHandleTask(taskType: string): boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Execute a task assigned by Queen Coordinator
|
|
56
|
+
* Routes to the appropriate handler based on task type
|
|
57
|
+
*
|
|
58
|
+
* @param request - Task execution request from Queen
|
|
59
|
+
* @param onComplete - Callback to report task completion
|
|
60
|
+
* @returns Success if task was accepted, Error if no handler exists
|
|
61
|
+
*/
|
|
62
|
+
executeTask(request: DomainTaskRequest, onComplete: TaskCompletionCallback): Promise<Result<void, Error>>;
|
|
63
|
+
/**
|
|
64
|
+
* Run task asynchronously and report completion via callback
|
|
65
|
+
* Handles timing, success/failure, and error capture
|
|
66
|
+
*/
|
|
67
|
+
private runTaskAsync;
|
|
31
68
|
}
|
|
32
69
|
//# sourceMappingURL=domain-interface.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domain-interface.d.ts","sourceRoot":"","sources":["../../src/domains/domain-interface.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"domain-interface.d.ts","sourceRoot":"","sources":["../../src/domains/domain-interface.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,EAAW,MAAM,iBAAiB,CAAC;AAC3E,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,QAAQ,EACR,aAAa,EACb,iBAAiB,EAEjB,sBAAsB,EACvB,MAA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Q5D;;;;;;;;;;;OAWG;IACH,SAAS,CAAC,eAAe,IAAI,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC;IAKrD;;;OAGG;IACH,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO;IAIxC;;;;;;;OAOG;IACG,WAAW,CACf,OAAO,EAAE,iBAAiB,EAC1B,UAAU,EAAE,sBAAsB,GACjC,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAkB/B;;;OAGG;YACW,YAAY;CAyD3B"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Agentic QE v3 - Base Domain Interface
|
|
3
3
|
* Template for all domain implementations
|
|
4
4
|
*/
|
|
5
|
+
import { ok, err } from '../shared/types';
|
|
5
6
|
/**
|
|
6
7
|
* Abstract base class for domain plugins
|
|
7
8
|
*/
|
|
@@ -9,8 +10,10 @@ export class BaseDomainPlugin {
|
|
|
9
10
|
eventBus;
|
|
10
11
|
memory;
|
|
11
12
|
_initialized = false;
|
|
13
|
+
// Issue #205 fix: Default to 'idle' status for fresh installs (0 agents)
|
|
14
|
+
// Domains transition to 'healthy' when they have active agents
|
|
12
15
|
_health = {
|
|
13
|
-
status: '
|
|
16
|
+
status: 'idle',
|
|
14
17
|
agents: { total: 0, active: 0, idle: 0, failed: 0 },
|
|
15
18
|
errors: [],
|
|
16
19
|
};
|
|
@@ -57,5 +60,103 @@ export class BaseDomainPlugin {
|
|
|
57
60
|
updateHealth(updates) {
|
|
58
61
|
this._health = { ...this._health, ...updates };
|
|
59
62
|
}
|
|
63
|
+
// ============================================================================
|
|
64
|
+
// Task Execution (Queen-Domain Integration)
|
|
65
|
+
// ============================================================================
|
|
66
|
+
/**
|
|
67
|
+
* Get task type to handler mapping
|
|
68
|
+
* Override in subclasses to register domain-specific task handlers
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* protected override getTaskHandlers(): Map<string, TaskHandler> {
|
|
72
|
+
* return new Map([
|
|
73
|
+
* ['execute-tests', async (payload) => this.coordinator.execute(payload)],
|
|
74
|
+
* ['detect-flaky', async (payload) => this.coordinator.detectFlaky(payload)],
|
|
75
|
+
* ]);
|
|
76
|
+
* }
|
|
77
|
+
*/
|
|
78
|
+
getTaskHandlers() {
|
|
79
|
+
// Default: no handlers - subclasses override to provide domain-specific handlers
|
|
80
|
+
return new Map();
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Check if domain can handle a task type
|
|
84
|
+
* Based on registered task handlers
|
|
85
|
+
*/
|
|
86
|
+
canHandleTask(taskType) {
|
|
87
|
+
return this.getTaskHandlers().has(taskType);
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Execute a task assigned by Queen Coordinator
|
|
91
|
+
* Routes to the appropriate handler based on task type
|
|
92
|
+
*
|
|
93
|
+
* @param request - Task execution request from Queen
|
|
94
|
+
* @param onComplete - Callback to report task completion
|
|
95
|
+
* @returns Success if task was accepted, Error if no handler exists
|
|
96
|
+
*/
|
|
97
|
+
async executeTask(request, onComplete) {
|
|
98
|
+
const handlers = this.getTaskHandlers();
|
|
99
|
+
const handler = handlers.get(request.taskType);
|
|
100
|
+
if (!handler) {
|
|
101
|
+
return err(new Error(`Domain ${this.name} has no handler for task type: ${request.taskType}`));
|
|
102
|
+
}
|
|
103
|
+
// Execute asynchronously, report via callback
|
|
104
|
+
// Don't await - task runs in background and reports via callback
|
|
105
|
+
this.runTaskAsync(request, handler, onComplete);
|
|
106
|
+
// Return immediately - task was accepted
|
|
107
|
+
return ok(undefined);
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Run task asynchronously and report completion via callback
|
|
111
|
+
* Handles timing, success/failure, and error capture
|
|
112
|
+
*/
|
|
113
|
+
async runTaskAsync(request, handler, onComplete) {
|
|
114
|
+
const startTime = Date.now();
|
|
115
|
+
try {
|
|
116
|
+
// Execute the handler
|
|
117
|
+
const result = await handler(request.payload);
|
|
118
|
+
const duration = Date.now() - startTime;
|
|
119
|
+
// Build result based on handler outcome
|
|
120
|
+
const taskResult = {
|
|
121
|
+
taskId: request.taskId,
|
|
122
|
+
success: result.success,
|
|
123
|
+
data: result.success ? result.value : undefined,
|
|
124
|
+
error: !result.success ? result.error?.message : undefined,
|
|
125
|
+
duration,
|
|
126
|
+
};
|
|
127
|
+
// Report completion via callback
|
|
128
|
+
await onComplete(taskResult);
|
|
129
|
+
// Update health tracking
|
|
130
|
+
this.updateHealth({
|
|
131
|
+
lastActivity: new Date(),
|
|
132
|
+
agents: {
|
|
133
|
+
...this._health.agents,
|
|
134
|
+
active: Math.max(0, this._health.agents.active - 1),
|
|
135
|
+
idle: this._health.agents.idle + 1,
|
|
136
|
+
},
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
catch (error) {
|
|
140
|
+
// Handler threw an exception
|
|
141
|
+
const duration = Date.now() - startTime;
|
|
142
|
+
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
143
|
+
await onComplete({
|
|
144
|
+
taskId: request.taskId,
|
|
145
|
+
success: false,
|
|
146
|
+
error: errorMessage,
|
|
147
|
+
duration,
|
|
148
|
+
});
|
|
149
|
+
// Track error in health
|
|
150
|
+
this.updateHealth({
|
|
151
|
+
lastActivity: new Date(),
|
|
152
|
+
errors: [...this._health.errors.slice(-9), errorMessage],
|
|
153
|
+
agents: {
|
|
154
|
+
...this._health.agents,
|
|
155
|
+
active: Math.max(0, this._health.agents.active - 1),
|
|
156
|
+
failed: this._health.agents.failed + 1,
|
|
157
|
+
},
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
}
|
|
60
161
|
}
|
|
61
162
|
//# sourceMappingURL=domain-interface.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domain-interface.js","sourceRoot":"","sources":["../../src/domains/domain-interface.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"domain-interface.js","sourceRoot":"","sources":["../../src/domains/domain-interface.ts"],"names":[],"mappings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AAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YAE5E,MAAM,UAAU,CAAC;gBACf,MAAM,EAAE,OAAO,CAAC,MAAM;gBACtB,OAAO,EAAE,KAAK;gBACd,KAAK,EAAE,YAAY;gBACnB,QAAQ;aACT,CAAC,CAAC;YAEH,wBAAwB;YACxB,IAAI,CAAC,YAAY,CAAC;gBAChB,YAAY,EAAE,IAAI,IAAI,EAAE;gBACxB,MAAM,EAAE,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,YAAY,CAAC;gBACxD,MAAM,EAAE;oBACN,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM;oBACtB,MAAM,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC;oBACnD,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC;iBACvC;aACF,CAAC,CAAC;QACL,CAAC;IACH,CAAC;CACF"}
|
|
@@ -7,6 +7,7 @@ import { EventBus, MemoryBackend, AgentCoordinator } from '../../kernel/interfac
|
|
|
7
7
|
import { ILearningOptimizationCoordinator, LearningCycleReport, OptimizationReport, CrossDomainSharingReport, LearningDashboard, ModelExport, ImportReport } from './interfaces.js';
|
|
8
8
|
import { type QESONAPattern, type QEPatternType, type QESONAStats, type QESONAAdaptationResult } from '../../integrations/ruvector/wrappers.js';
|
|
9
9
|
import type { RLState, RLAction } from '../../integrations/rl-suite/interfaces.js';
|
|
10
|
+
import { type DreamSchedulerStatus, type EngineResult as DreamCycleResult } from '../../learning/dream/index.js';
|
|
10
11
|
/**
|
|
11
12
|
* Workflow status tracking
|
|
12
13
|
*/
|
|
@@ -29,6 +30,20 @@ export interface LearningCoordinatorConfig {
|
|
|
29
30
|
enableAutoOptimization: boolean;
|
|
30
31
|
publishEvents: boolean;
|
|
31
32
|
learningCycleIntervalMs: number;
|
|
33
|
+
/** Enable dream scheduler for offline learning */
|
|
34
|
+
enableDreamScheduler: boolean;
|
|
35
|
+
/** Interval for automatic dream cycles in ms (default: same as learningCycleIntervalMs) */
|
|
36
|
+
dreamCycleIntervalMs: number;
|
|
37
|
+
/** Enable dream trigger after experience threshold */
|
|
38
|
+
enableExperienceTrigger: boolean;
|
|
39
|
+
/** Number of experiences to accumulate before triggering dream */
|
|
40
|
+
experienceThreshold: number;
|
|
41
|
+
/** Enable dream trigger on quality gate failure */
|
|
42
|
+
enableQualityGateFailureTrigger: boolean;
|
|
43
|
+
/** Automatically apply high-confidence insights from dreams */
|
|
44
|
+
autoApplyHighConfidenceInsights: boolean;
|
|
45
|
+
/** Minimum confidence threshold for auto-applying insights (0-1) */
|
|
46
|
+
autoApplyConfidenceThreshold: number;
|
|
32
47
|
}
|
|
33
48
|
/**
|
|
34
49
|
* Learning & Optimization Coordinator
|
|
@@ -51,6 +66,11 @@ export declare class LearningOptimizationCoordinator implements ILearningOptimiz
|
|
|
51
66
|
* Now uses PersistentSONAEngine to survive restarts
|
|
52
67
|
*/
|
|
53
68
|
private sona;
|
|
69
|
+
/**
|
|
70
|
+
* DreamScheduler for offline pattern consolidation and insight generation
|
|
71
|
+
* Wraps DreamEngine with automatic scheduling and trigger support
|
|
72
|
+
*/
|
|
73
|
+
private dreamScheduler;
|
|
54
74
|
constructor(eventBus: EventBus, memory: MemoryBackend, agentCoordinator: AgentCoordinator, config?: Partial<LearningCoordinatorConfig>);
|
|
55
75
|
/**
|
|
56
76
|
* Initialize the coordinator.
|
|
@@ -197,6 +217,47 @@ export declare class LearningOptimizationCoordinator implements ILearningOptimiz
|
|
|
197
217
|
timeMs: number;
|
|
198
218
|
}>;
|
|
199
219
|
}>;
|
|
220
|
+
/**
|
|
221
|
+
* Trigger a dream cycle manually.
|
|
222
|
+
* Dreams consolidate patterns and generate novel insights through spreading activation.
|
|
223
|
+
*
|
|
224
|
+
* @param durationMs - Optional duration override in ms
|
|
225
|
+
* @returns Dream cycle result with generated insights
|
|
226
|
+
* @throws Error if DreamScheduler is not initialized
|
|
227
|
+
*/
|
|
228
|
+
triggerDreamCycle(durationMs?: number): Promise<DreamCycleResult>;
|
|
229
|
+
/**
|
|
230
|
+
* Get the current status of the DreamScheduler.
|
|
231
|
+
*
|
|
232
|
+
* @returns DreamScheduler status or null if not initialized
|
|
233
|
+
*/
|
|
234
|
+
getDreamStatus(): DreamSchedulerStatus | null;
|
|
235
|
+
/**
|
|
236
|
+
* Check if the DreamScheduler is available and running.
|
|
237
|
+
*
|
|
238
|
+
* @returns True if DreamScheduler is initialized
|
|
239
|
+
*/
|
|
240
|
+
isDreamSchedulerAvailable(): boolean;
|
|
241
|
+
/**
|
|
242
|
+
* Get the last dream cycle result from the scheduler.
|
|
243
|
+
*
|
|
244
|
+
* @returns Last dream result or null if no dreams have completed
|
|
245
|
+
*/
|
|
246
|
+
getLastDreamResult(): DreamCycleResult | null;
|
|
247
|
+
/**
|
|
248
|
+
* Trigger a quick dream cycle for rapid insight generation.
|
|
249
|
+
*
|
|
250
|
+
* @returns Dream cycle result
|
|
251
|
+
* @throws Error if DreamScheduler is not initialized
|
|
252
|
+
*/
|
|
253
|
+
triggerQuickDream(): Promise<DreamCycleResult>;
|
|
254
|
+
/**
|
|
255
|
+
* Trigger a full dream cycle for comprehensive pattern consolidation.
|
|
256
|
+
*
|
|
257
|
+
* @returns Dream cycle result
|
|
258
|
+
* @throws Error if DreamScheduler is not initialized
|
|
259
|
+
*/
|
|
260
|
+
triggerFullDream(): Promise<DreamCycleResult>;
|
|
200
261
|
/**
|
|
201
262
|
* Export learned models
|
|
202
263
|
*/
|
|
@@ -217,6 +278,28 @@ export declare class LearningOptimizationCoordinator implements ILearningOptimiz
|
|
|
217
278
|
private publishPatternConsolidated;
|
|
218
279
|
private publishTransferCompleted;
|
|
219
280
|
private publishOptimizationApplied;
|
|
281
|
+
/**
|
|
282
|
+
* Publish a dream cycle completion event.
|
|
283
|
+
* This broadcasts dream insights to all interested domain coordinators.
|
|
284
|
+
*
|
|
285
|
+
* Called by the DreamScheduler or DreamEngine after completing a dream cycle.
|
|
286
|
+
*
|
|
287
|
+
* @param cycleId - Unique identifier for the dream cycle
|
|
288
|
+
* @param durationMs - How long the dream cycle took
|
|
289
|
+
* @param conceptsProcessed - Number of concepts processed during dreaming
|
|
290
|
+
* @param insights - Array of insights generated during the dream cycle
|
|
291
|
+
* @param patternsCreated - Number of patterns created from insights
|
|
292
|
+
*/
|
|
293
|
+
publishDreamCycleCompleted(cycleId: string, durationMs: number, conceptsProcessed: number, insights: Array<{
|
|
294
|
+
id: string;
|
|
295
|
+
type: string;
|
|
296
|
+
description: string;
|
|
297
|
+
noveltyScore: number;
|
|
298
|
+
confidenceScore: number;
|
|
299
|
+
actionable: boolean;
|
|
300
|
+
suggestedAction?: string;
|
|
301
|
+
sourceConcepts: string[];
|
|
302
|
+
}>, patternsCreated: number): Promise<void>;
|
|
220
303
|
private spawnLearningAgent;
|
|
221
304
|
private startWorkflow;
|
|
222
305
|
private completeWorkflow;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coordinator.d.ts","sourceRoot":"","sources":["../../../src/domains/learning-optimization/coordinator.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EACL,MAAM,EAGN,UAAU,EAEX,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,QAAQ,EACR,aAAa,EACb,gBAAgB,EAEjB,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"coordinator.d.ts","sourceRoot":"","sources":["../../../src/domains/learning-optimization/coordinator.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EACL,MAAM,EAGN,UAAU,EAEX,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,QAAQ,EACR,aAAa,EACb,gBAAgB,EAEjB,MAAM,4B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