agentic-qe 1.0.0 → 1.0.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/.claude/agents/qe-api-contract-validator.md +51 -11
- package/.claude/agents/qe-chaos-engineer.md +95 -43
- package/.claude/agents/qe-coverage-analyzer.md +134 -57
- package/.claude/agents/qe-deployment-readiness.md +48 -11
- package/.claude/agents/qe-flaky-test-hunter.md +57 -11
- package/.claude/agents/qe-fleet-commander.md +106 -49
- package/.claude/agents/qe-performance-tester.md +98 -45
- package/.claude/agents/qe-production-intelligence.md +48 -11
- package/.claude/agents/qe-quality-gate.md +160 -28
- package/.claude/agents/qe-regression-risk-analyzer.md +53 -11
- package/.claude/agents/qe-requirements-validator.md +48 -11
- package/.claude/agents/qe-security-scanner.md +230 -47
- package/.claude/agents/qe-test-data-architect.md +49 -11
- package/.claude/agents/qe-test-executor.md +59 -55
- package/.claude/agents/qe-test-generator.md +222 -48
- package/.claude/agents/qe-visual-tester.md +66 -65
- package/.claude/aqe-fleet.json +3 -3
- package/CHANGELOG.md +376 -0
- package/README.md +47 -3
- package/dist/agents/ApiContractValidatorAgent.d.ts.map +1 -1
- package/dist/agents/ApiContractValidatorAgent.js +1 -1
- package/dist/agents/ApiContractValidatorAgent.js.map +1 -1
- package/dist/agents/BaseAgent.d.ts +22 -3
- package/dist/agents/BaseAgent.d.ts.map +1 -1
- package/dist/agents/BaseAgent.js +124 -6
- package/dist/agents/BaseAgent.js.map +1 -1
- package/dist/agents/CoverageAnalyzerAgent.d.ts +0 -1
- package/dist/agents/CoverageAnalyzerAgent.d.ts.map +1 -1
- package/dist/agents/CoverageAnalyzerAgent.js +12 -8
- package/dist/agents/CoverageAnalyzerAgent.js.map +1 -1
- package/dist/agents/QualityAnalyzerAgent.d.ts +0 -1
- package/dist/agents/QualityAnalyzerAgent.d.ts.map +1 -1
- package/dist/agents/QualityGateAgent.d.ts +0 -1
- package/dist/agents/QualityGateAgent.d.ts.map +1 -1
- package/dist/agents/RegressionRiskAnalyzerAgent.js +17 -7
- package/dist/agents/RegressionRiskAnalyzerAgent.js.map +1 -1
- package/dist/agents/SecurityScannerAgent.d.ts +1 -0
- package/dist/agents/SecurityScannerAgent.d.ts.map +1 -1
- package/dist/agents/SecurityScannerAgent.js +46 -41
- package/dist/agents/SecurityScannerAgent.js.map +1 -1
- package/dist/agents/TestExecutorAgent.d.ts +1 -1
- package/dist/agents/TestExecutorAgent.d.ts.map +1 -1
- package/dist/agents/TestExecutorAgent.js +74 -13
- package/dist/agents/TestExecutorAgent.js.map +1 -1
- package/dist/agents/index.js +2 -2
- package/dist/agents/index.js.map +1 -1
- package/dist/cli/commands/agent/assign.d.ts +76 -0
- package/dist/cli/commands/agent/assign.d.ts.map +1 -0
- package/dist/cli/commands/agent/assign.js +290 -0
- package/dist/cli/commands/agent/assign.js.map +1 -0
- package/dist/cli/commands/agent/attach.d.ts +86 -0
- package/dist/cli/commands/agent/attach.d.ts.map +1 -0
- package/dist/cli/commands/agent/attach.js +278 -0
- package/dist/cli/commands/agent/attach.js.map +1 -0
- package/dist/cli/commands/agent/benchmark.d.ts +45 -0
- package/dist/cli/commands/agent/benchmark.d.ts.map +1 -0
- package/dist/cli/commands/agent/benchmark.js +102 -0
- package/dist/cli/commands/agent/benchmark.js.map +1 -0
- package/dist/cli/commands/agent/clone.d.ts +20 -0
- package/dist/cli/commands/agent/clone.d.ts.map +1 -0
- package/dist/cli/commands/agent/clone.js +58 -0
- package/dist/cli/commands/agent/clone.js.map +1 -0
- package/dist/cli/commands/agent/detach.d.ts +76 -0
- package/dist/cli/commands/agent/detach.d.ts.map +1 -0
- package/dist/cli/commands/agent/detach.js +260 -0
- package/dist/cli/commands/agent/detach.js.map +1 -0
- package/dist/cli/commands/agent/index.d.ts +31 -0
- package/dist/cli/commands/agent/index.d.ts.map +1 -0
- package/dist/cli/commands/agent/index.js +54 -0
- package/dist/cli/commands/agent/index.js.map +1 -0
- package/dist/cli/commands/agent/inspect.d.ts +110 -0
- package/dist/cli/commands/agent/inspect.d.ts.map +1 -0
- package/dist/cli/commands/agent/inspect.js +282 -0
- package/dist/cli/commands/agent/inspect.js.map +1 -0
- package/dist/cli/commands/agent/migrate.d.ts +24 -0
- package/dist/cli/commands/agent/migrate.d.ts.map +1 -0
- package/dist/cli/commands/agent/migrate.js +80 -0
- package/dist/cli/commands/agent/migrate.js.map +1 -0
- package/dist/cli/commands/agent/restart.d.ts +71 -0
- package/dist/cli/commands/agent/restart.d.ts.map +1 -0
- package/dist/cli/commands/agent/restart.js +237 -0
- package/dist/cli/commands/agent/restart.js.map +1 -0
- package/dist/cli/commands/analyze.js +17 -7
- package/dist/cli/commands/analyze.js.map +1 -1
- package/dist/cli/commands/config/export.d.ts +15 -0
- package/dist/cli/commands/config/export.d.ts.map +1 -0
- package/dist/cli/commands/config/export.js +104 -0
- package/dist/cli/commands/config/export.js.map +1 -0
- package/dist/cli/commands/config/get.d.ts +23 -0
- package/dist/cli/commands/config/get.d.ts.map +1 -0
- package/dist/cli/commands/config/get.js +129 -0
- package/dist/cli/commands/config/get.js.map +1 -0
- package/dist/cli/commands/config/import.d.ts +17 -0
- package/dist/cli/commands/config/import.d.ts.map +1 -0
- package/dist/cli/commands/config/import.js +148 -0
- package/dist/cli/commands/config/import.js.map +1 -0
- package/dist/cli/commands/config/index.d.ts +18 -0
- package/dist/cli/commands/config/index.d.ts.map +1 -0
- package/dist/cli/commands/config/index.js +35 -0
- package/dist/cli/commands/config/index.js.map +1 -0
- package/dist/cli/commands/config/init.d.ts +21 -0
- package/dist/cli/commands/config/init.d.ts.map +1 -0
- package/dist/cli/commands/config/init.js +181 -0
- package/dist/cli/commands/config/init.js.map +1 -0
- package/dist/cli/commands/config/list.d.ts +5 -0
- package/dist/cli/commands/config/list.d.ts.map +1 -0
- package/dist/cli/commands/config/list.js +39 -0
- package/dist/cli/commands/config/list.js.map +1 -0
- package/dist/cli/commands/config/reset.d.ts +5 -0
- package/dist/cli/commands/config/reset.d.ts.map +1 -0
- package/dist/cli/commands/config/reset.js +44 -0
- package/dist/cli/commands/config/reset.js.map +1 -0
- package/dist/cli/commands/config/schema.d.ts +115 -0
- package/dist/cli/commands/config/schema.d.ts.map +1 -0
- package/dist/cli/commands/config/schema.js +98 -0
- package/dist/cli/commands/config/schema.js.map +1 -0
- package/dist/cli/commands/config/set.d.ts +19 -0
- package/dist/cli/commands/config/set.d.ts.map +1 -0
- package/dist/cli/commands/config/set.js +143 -0
- package/dist/cli/commands/config/set.js.map +1 -0
- package/dist/cli/commands/config/validate.d.ts +23 -0
- package/dist/cli/commands/config/validate.d.ts.map +1 -0
- package/dist/cli/commands/config/validate.js +165 -0
- package/dist/cli/commands/config/validate.js.map +1 -0
- package/dist/cli/commands/debug/agent.d.ts +40 -0
- package/dist/cli/commands/debug/agent.d.ts.map +1 -0
- package/dist/cli/commands/debug/agent.js +184 -0
- package/dist/cli/commands/debug/agent.js.map +1 -0
- package/dist/cli/commands/debug/diagnostics.d.ts +27 -0
- package/dist/cli/commands/debug/diagnostics.d.ts.map +1 -0
- package/dist/cli/commands/debug/diagnostics.js +386 -0
- package/dist/cli/commands/debug/diagnostics.js.map +1 -0
- package/dist/cli/commands/debug/health-check.d.ts +38 -0
- package/dist/cli/commands/debug/health-check.d.ts.map +1 -0
- package/dist/cli/commands/debug/health-check.js +326 -0
- package/dist/cli/commands/debug/health-check.js.map +1 -0
- package/dist/cli/commands/debug/index.d.ts +17 -0
- package/dist/cli/commands/debug/index.d.ts.map +1 -0
- package/dist/cli/commands/debug/index.js +20 -0
- package/dist/cli/commands/debug/index.js.map +1 -0
- package/dist/cli/commands/debug/profile.d.ts +84 -0
- package/dist/cli/commands/debug/profile.d.ts.map +1 -0
- package/dist/cli/commands/debug/profile.js +375 -0
- package/dist/cli/commands/debug/profile.js.map +1 -0
- package/dist/cli/commands/debug/trace.d.ts +40 -0
- package/dist/cli/commands/debug/trace.d.ts.map +1 -0
- package/dist/cli/commands/debug/trace.js +252 -0
- package/dist/cli/commands/debug/trace.js.map +1 -0
- package/dist/cli/commands/debug/troubleshoot.d.ts +38 -0
- package/dist/cli/commands/debug/troubleshoot.d.ts.map +1 -0
- package/dist/cli/commands/debug/troubleshoot.js +324 -0
- package/dist/cli/commands/debug/troubleshoot.js.map +1 -0
- package/dist/cli/commands/fleet/backup.d.ts +49 -0
- package/dist/cli/commands/fleet/backup.d.ts.map +1 -0
- package/dist/cli/commands/fleet/backup.js +88 -0
- package/dist/cli/commands/fleet/backup.js.map +1 -0
- package/dist/cli/commands/fleet/health.d.ts +24 -0
- package/dist/cli/commands/fleet/health.d.ts.map +1 -0
- package/dist/cli/commands/fleet/health.js +417 -0
- package/dist/cli/commands/fleet/health.js.map +1 -0
- package/dist/cli/commands/fleet/init.d.ts +11 -0
- package/dist/cli/commands/fleet/init.d.ts.map +1 -0
- package/dist/cli/commands/fleet/init.js +91 -0
- package/dist/cli/commands/fleet/init.js.map +1 -0
- package/dist/cli/commands/fleet/logs.d.ts +21 -0
- package/dist/cli/commands/fleet/logs.d.ts.map +1 -0
- package/dist/cli/commands/fleet/logs.js +266 -0
- package/dist/cli/commands/fleet/logs.js.map +1 -0
- package/dist/cli/commands/fleet/metrics.d.ts +27 -0
- package/dist/cli/commands/fleet/metrics.d.ts.map +1 -0
- package/dist/cli/commands/fleet/metrics.js +368 -0
- package/dist/cli/commands/fleet/metrics.js.map +1 -0
- package/dist/cli/commands/fleet/monitor.d.ts +18 -0
- package/dist/cli/commands/fleet/monitor.d.ts.map +1 -0
- package/dist/cli/commands/fleet/monitor.js +234 -0
- package/dist/cli/commands/fleet/monitor.js.map +1 -0
- package/dist/cli/commands/fleet/optimize.d.ts +42 -0
- package/dist/cli/commands/fleet/optimize.d.ts.map +1 -0
- package/dist/cli/commands/fleet/optimize.js +135 -0
- package/dist/cli/commands/fleet/optimize.js.map +1 -0
- package/dist/cli/commands/fleet/recover.d.ts +22 -0
- package/dist/cli/commands/fleet/recover.d.ts.map +1 -0
- package/dist/cli/commands/fleet/recover.js +99 -0
- package/dist/cli/commands/fleet/recover.js.map +1 -0
- package/dist/cli/commands/fleet/restart.d.ts +18 -0
- package/dist/cli/commands/fleet/restart.d.ts.map +1 -0
- package/dist/cli/commands/fleet/restart.js +290 -0
- package/dist/cli/commands/fleet/restart.js.map +1 -0
- package/dist/cli/commands/fleet/scale.d.ts +9 -0
- package/dist/cli/commands/fleet/scale.d.ts.map +1 -0
- package/dist/cli/commands/fleet/scale.js +77 -0
- package/dist/cli/commands/fleet/scale.js.map +1 -0
- package/dist/cli/commands/fleet/shutdown.d.ts +19 -0
- package/dist/cli/commands/fleet/shutdown.d.ts.map +1 -0
- package/dist/cli/commands/fleet/shutdown.js +307 -0
- package/dist/cli/commands/fleet/shutdown.js.map +1 -0
- package/dist/cli/commands/fleet/status.d.ts +10 -0
- package/dist/cli/commands/fleet/status.d.ts.map +1 -0
- package/dist/cli/commands/fleet/status.js +97 -0
- package/dist/cli/commands/fleet/status.js.map +1 -0
- package/dist/cli/commands/fleet/topology.d.ts +23 -0
- package/dist/cli/commands/fleet/topology.d.ts.map +1 -0
- package/dist/cli/commands/fleet/topology.js +375 -0
- package/dist/cli/commands/fleet/topology.js.map +1 -0
- package/dist/cli/commands/fleet.d.ts +0 -1
- package/dist/cli/commands/fleet.d.ts.map +1 -1
- package/dist/cli/commands/fleet.js +35 -58
- package/dist/cli/commands/fleet.js.map +1 -1
- package/dist/cli/commands/generate.js +17 -7
- package/dist/cli/commands/generate.js.map +1 -1
- package/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/init.js +194 -64
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/commands/memory/compact.d.ts +19 -0
- package/dist/cli/commands/memory/compact.d.ts.map +1 -0
- package/dist/cli/commands/memory/compact.js +69 -0
- package/dist/cli/commands/memory/compact.js.map +1 -0
- package/dist/cli/commands/memory/index.d.ts +9 -0
- package/dist/cli/commands/memory/index.d.ts.map +1 -0
- package/dist/cli/commands/memory/index.js +24 -0
- package/dist/cli/commands/memory/index.js.map +1 -0
- package/dist/cli/commands/memory/stats.d.ts +30 -0
- package/dist/cli/commands/memory/stats.d.ts.map +1 -0
- package/dist/cli/commands/memory/stats.js +73 -0
- package/dist/cli/commands/memory/stats.js.map +1 -0
- package/dist/cli/commands/memory/vacuum.d.ts +24 -0
- package/dist/cli/commands/memory/vacuum.d.ts.map +1 -0
- package/dist/cli/commands/memory/vacuum.js +104 -0
- package/dist/cli/commands/memory/vacuum.js.map +1 -0
- package/dist/cli/commands/monitor/alerts.d.ts +45 -0
- package/dist/cli/commands/monitor/alerts.d.ts.map +1 -0
- package/dist/cli/commands/monitor/alerts.js +167 -0
- package/dist/cli/commands/monitor/alerts.js.map +1 -0
- package/dist/cli/commands/monitor/analyze.d.ts +49 -0
- package/dist/cli/commands/monitor/analyze.d.ts.map +1 -0
- package/dist/cli/commands/monitor/analyze.js +209 -0
- package/dist/cli/commands/monitor/analyze.js.map +1 -0
- package/dist/cli/commands/monitor/compare.d.ts +38 -0
- package/dist/cli/commands/monitor/compare.d.ts.map +1 -0
- package/dist/cli/commands/monitor/compare.js +177 -0
- package/dist/cli/commands/monitor/compare.js.map +1 -0
- package/dist/cli/commands/monitor/dashboard.d.ts +34 -0
- package/dist/cli/commands/monitor/dashboard.d.ts.map +1 -0
- package/dist/cli/commands/monitor/dashboard.js +157 -0
- package/dist/cli/commands/monitor/dashboard.js.map +1 -0
- package/dist/cli/commands/monitor/export.d.ts +36 -0
- package/dist/cli/commands/monitor/export.d.ts.map +1 -0
- package/dist/cli/commands/monitor/export.js +157 -0
- package/dist/cli/commands/monitor/export.js.map +1 -0
- package/dist/cli/commands/monitor/index.d.ts +11 -0
- package/dist/cli/commands/monitor/index.d.ts.map +1 -0
- package/dist/cli/commands/monitor/index.js +14 -0
- package/dist/cli/commands/monitor/index.js.map +1 -0
- package/dist/cli/commands/quality/baseline.d.ts +27 -0
- package/dist/cli/commands/quality/baseline.d.ts.map +1 -0
- package/dist/cli/commands/quality/baseline.js +124 -0
- package/dist/cli/commands/quality/baseline.js.map +1 -0
- package/dist/cli/commands/quality/compare.d.ts +36 -0
- package/dist/cli/commands/quality/compare.d.ts.map +1 -0
- package/dist/cli/commands/quality/compare.js +136 -0
- package/dist/cli/commands/quality/compare.js.map +1 -0
- package/dist/cli/commands/quality/decision.d.ts +81 -0
- package/dist/cli/commands/quality/decision.d.ts.map +1 -0
- package/dist/cli/commands/quality/decision.js +317 -0
- package/dist/cli/commands/quality/decision.js.map +1 -0
- package/dist/cli/commands/quality/gate.d.ts +47 -0
- package/dist/cli/commands/quality/gate.d.ts.map +1 -0
- package/dist/cli/commands/quality/gate.js +203 -0
- package/dist/cli/commands/quality/gate.js.map +1 -0
- package/dist/cli/commands/quality/index.d.ts +17 -0
- package/dist/cli/commands/quality/index.d.ts.map +1 -0
- package/dist/cli/commands/quality/index.js +41 -0
- package/dist/cli/commands/quality/index.js.map +1 -0
- package/dist/cli/commands/quality/policy.d.ts +57 -0
- package/dist/cli/commands/quality/policy.d.ts.map +1 -0
- package/dist/cli/commands/quality/policy.js +357 -0
- package/dist/cli/commands/quality/policy.js.map +1 -0
- package/dist/cli/commands/quality/risk.d.ts +41 -0
- package/dist/cli/commands/quality/risk.d.ts.map +1 -0
- package/dist/cli/commands/quality/risk.js +253 -0
- package/dist/cli/commands/quality/risk.js.map +1 -0
- package/dist/cli/commands/quality/trends.d.ts +40 -0
- package/dist/cli/commands/quality/trends.d.ts.map +1 -0
- package/dist/cli/commands/quality/trends.js +122 -0
- package/dist/cli/commands/quality/trends.js.map +1 -0
- package/dist/cli/commands/quality/validate.d.ts +44 -0
- package/dist/cli/commands/quality/validate.d.ts.map +1 -0
- package/dist/cli/commands/quality/validate.js +232 -0
- package/dist/cli/commands/quality/validate.js.map +1 -0
- package/dist/cli/commands/run.js +17 -7
- package/dist/cli/commands/run.js.map +1 -1
- package/dist/cli/commands/test/analyze-failures.d.ts +39 -0
- package/dist/cli/commands/test/analyze-failures.d.ts.map +1 -0
- package/dist/cli/commands/test/analyze-failures.js +113 -0
- package/dist/cli/commands/test/analyze-failures.js.map +1 -0
- package/dist/cli/commands/test/clean.d.ts +3 -0
- package/dist/cli/commands/test/clean.d.ts.map +1 -0
- package/dist/cli/commands/test/clean.js +131 -0
- package/dist/cli/commands/test/clean.js.map +1 -0
- package/dist/cli/commands/test/debug.d.ts +3 -0
- package/dist/cli/commands/test/debug.d.ts.map +1 -0
- package/dist/cli/commands/test/debug.js +167 -0
- package/dist/cli/commands/test/debug.js.map +1 -0
- package/dist/cli/commands/test/diff.d.ts +3 -0
- package/dist/cli/commands/test/diff.d.ts.map +1 -0
- package/dist/cli/commands/test/diff.js +228 -0
- package/dist/cli/commands/test/diff.js.map +1 -0
- package/dist/cli/commands/test/flakiness.d.ts +32 -0
- package/dist/cli/commands/test/flakiness.d.ts.map +1 -0
- package/dist/cli/commands/test/flakiness.js +121 -0
- package/dist/cli/commands/test/flakiness.js.map +1 -0
- package/dist/cli/commands/test/index.d.ts +17 -0
- package/dist/cli/commands/test/index.d.ts.map +1 -0
- package/dist/cli/commands/test/index.js +45 -0
- package/dist/cli/commands/test/index.js.map +1 -0
- package/dist/cli/commands/test/mutate.d.ts +29 -0
- package/dist/cli/commands/test/mutate.d.ts.map +1 -0
- package/dist/cli/commands/test/mutate.js +162 -0
- package/dist/cli/commands/test/mutate.js.map +1 -0
- package/dist/cli/commands/test/parallel.d.ts +3 -0
- package/dist/cli/commands/test/parallel.d.ts.map +1 -0
- package/dist/cli/commands/test/parallel.js +115 -0
- package/dist/cli/commands/test/parallel.js.map +1 -0
- package/dist/cli/commands/test/profile.d.ts +3 -0
- package/dist/cli/commands/test/profile.d.ts.map +1 -0
- package/dist/cli/commands/test/profile.js +188 -0
- package/dist/cli/commands/test/profile.js.map +1 -0
- package/dist/cli/commands/test/queue.d.ts +3 -0
- package/dist/cli/commands/test/queue.d.ts.map +1 -0
- package/dist/cli/commands/test/queue.js +139 -0
- package/dist/cli/commands/test/queue.js.map +1 -0
- package/dist/cli/commands/test/retry.d.ts +3 -0
- package/dist/cli/commands/test/retry.d.ts.map +1 -0
- package/dist/cli/commands/test/retry.js +103 -0
- package/dist/cli/commands/test/retry.js.map +1 -0
- package/dist/cli/commands/test/snapshot.d.ts +3 -0
- package/dist/cli/commands/test/snapshot.d.ts.map +1 -0
- package/dist/cli/commands/test/snapshot.js +176 -0
- package/dist/cli/commands/test/snapshot.js.map +1 -0
- package/dist/cli/commands/test/trace.d.ts +3 -0
- package/dist/cli/commands/test/trace.d.ts.map +1 -0
- package/dist/cli/commands/test/trace.js +169 -0
- package/dist/cli/commands/test/trace.js.map +1 -0
- package/dist/cli/commands/test/watch.d.ts +3 -0
- package/dist/cli/commands/test/watch.d.ts.map +1 -0
- package/dist/cli/commands/test/watch.js +129 -0
- package/dist/cli/commands/test/watch.js.map +1 -0
- package/dist/cli/commands/workflow/cancel.d.ts +55 -0
- package/dist/cli/commands/workflow/cancel.d.ts.map +1 -0
- package/dist/cli/commands/workflow/cancel.js +330 -0
- package/dist/cli/commands/workflow/cancel.js.map +1 -0
- package/dist/cli/commands/workflow/index.d.ts +11 -0
- package/dist/cli/commands/workflow/index.d.ts.map +1 -0
- package/dist/cli/commands/workflow/index.js +20 -0
- package/dist/cli/commands/workflow/index.js.map +1 -0
- package/dist/cli/commands/workflow/list.d.ts +43 -0
- package/dist/cli/commands/workflow/list.d.ts.map +1 -0
- package/dist/cli/commands/workflow/list.js +256 -0
- package/dist/cli/commands/workflow/list.js.map +1 -0
- package/dist/cli/commands/workflow/pause.d.ts +44 -0
- package/dist/cli/commands/workflow/pause.d.ts.map +1 -0
- package/dist/cli/commands/workflow/pause.js +221 -0
- package/dist/cli/commands/workflow/pause.js.map +1 -0
- package/dist/cli/index-working.js +17 -7
- package/dist/cli/index-working.js.map +1 -1
- package/dist/cli/index.js +321 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/core/Agent.d.ts +0 -1
- package/dist/core/Agent.d.ts.map +1 -1
- package/dist/core/Agent.js +18 -8
- package/dist/core/Agent.js.map +1 -1
- package/dist/core/ArtifactWorkflow.d.ts +149 -0
- package/dist/core/ArtifactWorkflow.d.ts.map +1 -0
- package/dist/core/ArtifactWorkflow.js +357 -0
- package/dist/core/ArtifactWorkflow.js.map +1 -0
- package/dist/core/EventBus.d.ts +0 -1
- package/dist/core/EventBus.d.ts.map +1 -1
- package/dist/core/EventBus.js +18 -12
- package/dist/core/EventBus.js.map +1 -1
- package/dist/core/FleetManager.d.ts +0 -1
- package/dist/core/FleetManager.d.ts.map +1 -1
- package/dist/core/FleetManager.js +17 -7
- package/dist/core/FleetManager.js.map +1 -1
- package/dist/core/MemoryManager.d.ts +0 -1
- package/dist/core/MemoryManager.d.ts.map +1 -1
- package/dist/core/Task.d.ts +0 -1
- package/dist/core/Task.d.ts.map +1 -1
- package/dist/core/coordination/BlackboardCoordination.d.ts +43 -0
- package/dist/core/coordination/BlackboardCoordination.d.ts.map +1 -0
- package/dist/core/coordination/BlackboardCoordination.js +95 -0
- package/dist/core/coordination/BlackboardCoordination.js.map +1 -0
- package/dist/core/coordination/ConsensusGating.d.ts +52 -0
- package/dist/core/coordination/ConsensusGating.d.ts.map +1 -0
- package/dist/core/coordination/ConsensusGating.js +137 -0
- package/dist/core/coordination/ConsensusGating.js.map +1 -0
- package/dist/core/coordination/GOAPCoordination.d.ts +78 -0
- package/dist/core/coordination/GOAPCoordination.d.ts.map +1 -0
- package/dist/core/coordination/GOAPCoordination.js +178 -0
- package/dist/core/coordination/GOAPCoordination.js.map +1 -0
- package/dist/core/coordination/OODACoordination.d.ts +98 -0
- package/dist/core/coordination/OODACoordination.d.ts.map +1 -0
- package/dist/core/coordination/OODACoordination.js +207 -0
- package/dist/core/coordination/OODACoordination.js.map +1 -0
- package/dist/core/coordination/index.d.ts +19 -0
- package/dist/core/coordination/index.d.ts.map +1 -0
- package/dist/core/coordination/index.js +22 -0
- package/dist/core/coordination/index.js.map +1 -0
- package/dist/core/events/QEEventBus.d.ts +61 -0
- package/dist/core/events/QEEventBus.d.ts.map +1 -0
- package/dist/core/events/QEEventBus.js +109 -0
- package/dist/core/events/QEEventBus.js.map +1 -0
- package/dist/core/events/index.d.ts +7 -0
- package/dist/core/events/index.d.ts.map +1 -0
- package/dist/core/events/index.js +25 -0
- package/dist/core/events/index.js.map +1 -0
- package/dist/core/events/types.d.ts +72 -0
- package/dist/core/events/types.d.ts.map +1 -0
- package/dist/core/events/types.js +6 -0
- package/dist/core/events/types.js.map +1 -0
- package/dist/core/hooks/RollbackManager.d.ts +90 -0
- package/dist/core/hooks/RollbackManager.d.ts.map +1 -0
- package/dist/core/hooks/RollbackManager.js +224 -0
- package/dist/core/hooks/RollbackManager.js.map +1 -0
- package/dist/core/hooks/VerificationHookManager.d.ts +133 -0
- package/dist/core/hooks/VerificationHookManager.d.ts.map +1 -0
- package/dist/core/hooks/VerificationHookManager.js +293 -0
- package/dist/core/hooks/VerificationHookManager.js.map +1 -0
- package/dist/core/hooks/checkers/ConfigurationChecker.d.ts +31 -0
- package/dist/core/hooks/checkers/ConfigurationChecker.d.ts.map +1 -0
- package/dist/core/hooks/checkers/ConfigurationChecker.js +98 -0
- package/dist/core/hooks/checkers/ConfigurationChecker.js.map +1 -0
- package/dist/core/hooks/checkers/EnvironmentChecker.d.ts +23 -0
- package/dist/core/hooks/checkers/EnvironmentChecker.d.ts.map +1 -0
- package/dist/core/hooks/checkers/EnvironmentChecker.js +103 -0
- package/dist/core/hooks/checkers/EnvironmentChecker.js.map +1 -0
- package/dist/core/hooks/checkers/PermissionChecker.d.ts +26 -0
- package/dist/core/hooks/checkers/PermissionChecker.d.ts.map +1 -0
- package/dist/core/hooks/checkers/PermissionChecker.js +146 -0
- package/dist/core/hooks/checkers/PermissionChecker.js.map +1 -0
- package/dist/core/hooks/checkers/ResourceChecker.d.ts +24 -0
- package/dist/core/hooks/checkers/ResourceChecker.d.ts.map +1 -0
- package/dist/core/hooks/checkers/ResourceChecker.js +107 -0
- package/dist/core/hooks/checkers/ResourceChecker.js.map +1 -0
- package/dist/core/hooks/checkers/index.d.ts +12 -0
- package/dist/core/hooks/checkers/index.d.ts.map +1 -0
- package/dist/core/hooks/checkers/index.js +15 -0
- package/dist/core/hooks/checkers/index.js.map +1 -0
- package/dist/core/hooks/index.d.ts +16 -0
- package/dist/core/hooks/index.d.ts.map +1 -0
- package/dist/core/hooks/index.js +34 -0
- package/dist/core/hooks/index.js.map +1 -0
- package/dist/core/hooks/validators/CoverageValidator.d.ts +38 -0
- package/dist/core/hooks/validators/CoverageValidator.d.ts.map +1 -0
- package/dist/core/hooks/validators/CoverageValidator.js +68 -0
- package/dist/core/hooks/validators/CoverageValidator.js.map +1 -0
- package/dist/core/hooks/validators/OutputValidator.d.ts +19 -0
- package/dist/core/hooks/validators/OutputValidator.d.ts.map +1 -0
- package/dist/core/hooks/validators/OutputValidator.js +57 -0
- package/dist/core/hooks/validators/OutputValidator.js.map +1 -0
- package/dist/core/hooks/validators/PerformanceValidator.d.ts +39 -0
- package/dist/core/hooks/validators/PerformanceValidator.d.ts.map +1 -0
- package/dist/core/hooks/validators/PerformanceValidator.js +97 -0
- package/dist/core/hooks/validators/PerformanceValidator.js.map +1 -0
- package/dist/core/hooks/validators/QualityValidator.d.ts +32 -0
- package/dist/core/hooks/validators/QualityValidator.d.ts.map +1 -0
- package/dist/core/hooks/validators/QualityValidator.js +71 -0
- package/dist/core/hooks/validators/QualityValidator.js.map +1 -0
- package/dist/core/hooks/validators/index.d.ts +12 -0
- package/dist/core/hooks/validators/index.d.ts.map +1 -0
- package/dist/core/hooks/validators/index.js +15 -0
- package/dist/core/hooks/validators/index.js.map +1 -0
- package/dist/core/index.d.ts +2 -0
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +3 -1
- package/dist/core/index.js.map +1 -1
- package/dist/core/memory/AccessControl.d.ts +139 -0
- package/dist/core/memory/AccessControl.d.ts.map +1 -0
- package/dist/core/memory/AccessControl.js +269 -0
- package/dist/core/memory/AccessControl.js.map +1 -0
- package/dist/core/memory/CompressionManager.d.ts +85 -0
- package/dist/core/memory/CompressionManager.d.ts.map +1 -0
- package/dist/core/memory/CompressionManager.js +237 -0
- package/dist/core/memory/CompressionManager.js.map +1 -0
- package/dist/core/memory/EncryptionManager.d.ts +86 -0
- package/dist/core/memory/EncryptionManager.d.ts.map +1 -0
- package/dist/core/memory/EncryptionManager.js +223 -0
- package/dist/core/memory/EncryptionManager.js.map +1 -0
- package/dist/core/memory/EnhancedSwarmMemoryManager.d.ts +91 -0
- package/dist/core/memory/EnhancedSwarmMemoryManager.d.ts.map +1 -0
- package/dist/core/memory/EnhancedSwarmMemoryManager.js +226 -0
- package/dist/core/memory/EnhancedSwarmMemoryManager.js.map +1 -0
- package/dist/core/memory/SwarmMemoryManager.d.ts +295 -0
- package/dist/core/memory/SwarmMemoryManager.d.ts.map +1 -0
- package/dist/core/memory/SwarmMemoryManager.js +1417 -0
- package/dist/core/memory/SwarmMemoryManager.js.map +1 -0
- package/dist/core/memory/VersionHistory.d.ts +88 -0
- package/dist/core/memory/VersionHistory.d.ts.map +1 -0
- package/dist/core/memory/VersionHistory.js +249 -0
- package/dist/core/memory/VersionHistory.js.map +1 -0
- package/dist/core/memory/index.d.ts +11 -0
- package/dist/core/memory/index.d.ts.map +1 -0
- package/dist/core/memory/index.js +18 -0
- package/dist/core/memory/index.js.map +1 -0
- package/dist/coverage/coverage-collector.d.ts +63 -8
- package/dist/coverage/coverage-collector.d.ts.map +1 -1
- package/dist/coverage/coverage-collector.js +364 -14
- package/dist/coverage/coverage-collector.js.map +1 -1
- package/dist/coverage/coverage-reporter.d.ts +48 -11
- package/dist/coverage/coverage-reporter.d.ts.map +1 -1
- package/dist/coverage/coverage-reporter.js +434 -14
- package/dist/coverage/coverage-reporter.js.map +1 -1
- package/dist/mcp/handlers/advanced/api-breaking-changes.d.ts +7 -0
- package/dist/mcp/handlers/advanced/api-breaking-changes.d.ts.map +1 -0
- package/dist/mcp/handlers/advanced/api-breaking-changes.js +216 -0
- package/dist/mcp/handlers/advanced/api-breaking-changes.js.map +1 -0
- package/dist/mcp/handlers/advanced/index.d.ts +10 -0
- package/dist/mcp/handlers/advanced/index.d.ts.map +1 -0
- package/dist/mcp/handlers/advanced/index.js +19 -0
- package/dist/mcp/handlers/advanced/index.js.map +1 -0
- package/dist/mcp/handlers/advanced/mutation-test-execute.d.ts +7 -0
- package/dist/mcp/handlers/advanced/mutation-test-execute.d.ts.map +1 -0
- package/dist/mcp/handlers/advanced/mutation-test-execute.js +229 -0
- package/dist/mcp/handlers/advanced/mutation-test-execute.js.map +1 -0
- package/dist/mcp/handlers/advanced/production-incident-replay.d.ts +7 -0
- package/dist/mcp/handlers/advanced/production-incident-replay.d.ts.map +1 -0
- package/dist/mcp/handlers/advanced/production-incident-replay.js +227 -0
- package/dist/mcp/handlers/advanced/production-incident-replay.js.map +1 -0
- package/dist/mcp/handlers/advanced/production-rum-analyze.d.ts +7 -0
- package/dist/mcp/handlers/advanced/production-rum-analyze.d.ts.map +1 -0
- package/dist/mcp/handlers/advanced/production-rum-analyze.js +288 -0
- package/dist/mcp/handlers/advanced/production-rum-analyze.js.map +1 -0
- package/dist/mcp/handlers/advanced/requirements-generate-bdd.d.ts +7 -0
- package/dist/mcp/handlers/advanced/requirements-generate-bdd.d.ts.map +1 -0
- package/dist/mcp/handlers/advanced/requirements-generate-bdd.js +267 -0
- package/dist/mcp/handlers/advanced/requirements-generate-bdd.js.map +1 -0
- package/dist/mcp/handlers/advanced/requirements-validate.d.ts +7 -0
- package/dist/mcp/handlers/advanced/requirements-validate.d.ts.map +1 -0
- package/dist/mcp/handlers/advanced/requirements-validate.js +175 -0
- package/dist/mcp/handlers/advanced/requirements-validate.js.map +1 -0
- package/dist/mcp/handlers/analysis/coverage-analyze-sublinear-handler.d.ts +10 -0
- package/dist/mcp/handlers/analysis/coverage-analyze-sublinear-handler.d.ts.map +1 -0
- package/dist/mcp/handlers/analysis/coverage-analyze-sublinear-handler.js +31 -0
- package/dist/mcp/handlers/analysis/coverage-analyze-sublinear-handler.js.map +1 -0
- package/dist/mcp/handlers/analysis/coverage-gaps-detect-handler.d.ts +14 -0
- package/dist/mcp/handlers/analysis/coverage-gaps-detect-handler.d.ts.map +1 -0
- package/dist/mcp/handlers/analysis/coverage-gaps-detect-handler.js +55 -0
- package/dist/mcp/handlers/analysis/coverage-gaps-detect-handler.js.map +1 -0
- package/dist/mcp/handlers/analysis/coverageAnalyzeSublinear.d.ts +35 -0
- package/dist/mcp/handlers/analysis/coverageAnalyzeSublinear.d.ts.map +1 -0
- package/dist/mcp/handlers/analysis/coverageAnalyzeSublinear.js +162 -0
- package/dist/mcp/handlers/analysis/coverageAnalyzeSublinear.js.map +1 -0
- package/dist/mcp/handlers/analysis/coverageGapsDetect.d.ts +56 -0
- package/dist/mcp/handlers/analysis/coverageGapsDetect.d.ts.map +1 -0
- package/dist/mcp/handlers/analysis/coverageGapsDetect.js +203 -0
- package/dist/mcp/handlers/analysis/coverageGapsDetect.js.map +1 -0
- package/dist/mcp/handlers/analysis/index.d.ts +15 -0
- package/dist/mcp/handlers/analysis/index.d.ts.map +1 -0
- package/dist/mcp/handlers/analysis/index.js +18 -0
- package/dist/mcp/handlers/analysis/index.js.map +1 -0
- package/dist/mcp/handlers/analysis/performance-benchmark-run-handler.d.ts +15 -0
- package/dist/mcp/handlers/analysis/performance-benchmark-run-handler.d.ts.map +1 -0
- package/dist/mcp/handlers/analysis/performance-benchmark-run-handler.js +47 -0
- package/dist/mcp/handlers/analysis/performance-benchmark-run-handler.js.map +1 -0
- package/dist/mcp/handlers/analysis/performance-monitor-realtime-handler.d.ts +15 -0
- package/dist/mcp/handlers/analysis/performance-monitor-realtime-handler.d.ts.map +1 -0
- package/dist/mcp/handlers/analysis/performance-monitor-realtime-handler.js +55 -0
- package/dist/mcp/handlers/analysis/performance-monitor-realtime-handler.js.map +1 -0
- package/dist/mcp/handlers/analysis/performanceBenchmarkRun.d.ts +58 -0
- package/dist/mcp/handlers/analysis/performanceBenchmarkRun.d.ts.map +1 -0
- package/dist/mcp/handlers/analysis/performanceBenchmarkRun.js +187 -0
- package/dist/mcp/handlers/analysis/performanceBenchmarkRun.js.map +1 -0
- package/dist/mcp/handlers/analysis/performanceMonitorRealtime.d.ts +58 -0
- package/dist/mcp/handlers/analysis/performanceMonitorRealtime.d.ts.map +1 -0
- package/dist/mcp/handlers/analysis/performanceMonitorRealtime.js +184 -0
- package/dist/mcp/handlers/analysis/performanceMonitorRealtime.js.map +1 -0
- package/dist/mcp/handlers/analysis/security-scan-comprehensive-handler.d.ts +15 -0
- package/dist/mcp/handlers/analysis/security-scan-comprehensive-handler.d.ts.map +1 -0
- package/dist/mcp/handlers/analysis/security-scan-comprehensive-handler.js +70 -0
- package/dist/mcp/handlers/analysis/security-scan-comprehensive-handler.js.map +1 -0
- package/dist/mcp/handlers/analysis/securityScanComprehensive.d.ts +66 -0
- package/dist/mcp/handlers/analysis/securityScanComprehensive.d.ts.map +1 -0
- package/dist/mcp/handlers/analysis/securityScanComprehensive.js +299 -0
- package/dist/mcp/handlers/analysis/securityScanComprehensive.js.map +1 -0
- package/dist/mcp/handlers/chaos/chaos-inject-failure.d.ts +18 -0
- package/dist/mcp/handlers/chaos/chaos-inject-failure.d.ts.map +1 -0
- package/dist/mcp/handlers/chaos/chaos-inject-failure.js +277 -0
- package/dist/mcp/handlers/chaos/chaos-inject-failure.js.map +1 -0
- package/dist/mcp/handlers/chaos/chaos-inject-latency.d.ts +18 -0
- package/dist/mcp/handlers/chaos/chaos-inject-latency.d.ts.map +1 -0
- package/dist/mcp/handlers/chaos/chaos-inject-latency.js +214 -0
- package/dist/mcp/handlers/chaos/chaos-inject-latency.js.map +1 -0
- package/dist/mcp/handlers/chaos/chaos-resilience-test.d.ts +18 -0
- package/dist/mcp/handlers/chaos/chaos-resilience-test.d.ts.map +1 -0
- package/dist/mcp/handlers/chaos/chaos-resilience-test.js +429 -0
- package/dist/mcp/handlers/chaos/chaos-resilience-test.js.map +1 -0
- package/dist/mcp/handlers/chaos/index.d.ts +8 -0
- package/dist/mcp/handlers/chaos/index.d.ts.map +1 -0
- package/dist/mcp/handlers/chaos/index.js +19 -0
- package/dist/mcp/handlers/chaos/index.js.map +1 -0
- package/dist/mcp/handlers/coordination/event-emit.d.ts +47 -0
- package/dist/mcp/handlers/coordination/event-emit.d.ts.map +1 -0
- package/dist/mcp/handlers/coordination/event-emit.js +96 -0
- package/dist/mcp/handlers/coordination/event-emit.js.map +1 -0
- package/dist/mcp/handlers/coordination/event-subscribe.d.ts +49 -0
- package/dist/mcp/handlers/coordination/event-subscribe.d.ts.map +1 -0
- package/dist/mcp/handlers/coordination/event-subscribe.js +210 -0
- package/dist/mcp/handlers/coordination/event-subscribe.js.map +1 -0
- package/dist/mcp/handlers/coordination/index.d.ts +22 -0
- package/dist/mcp/handlers/coordination/index.d.ts.map +1 -0
- package/dist/mcp/handlers/coordination/index.js +25 -0
- package/dist/mcp/handlers/coordination/index.js.map +1 -0
- package/dist/mcp/handlers/coordination/task-status.d.ts +75 -0
- package/dist/mcp/handlers/coordination/task-status.d.ts.map +1 -0
- package/dist/mcp/handlers/coordination/task-status.js +134 -0
- package/dist/mcp/handlers/coordination/task-status.js.map +1 -0
- package/dist/mcp/handlers/coordination/workflow-checkpoint.d.ts +45 -0
- package/dist/mcp/handlers/coordination/workflow-checkpoint.d.ts.map +1 -0
- package/dist/mcp/handlers/coordination/workflow-checkpoint.js +114 -0
- package/dist/mcp/handlers/coordination/workflow-checkpoint.js.map +1 -0
- package/dist/mcp/handlers/coordination/workflow-create.d.ts +71 -0
- package/dist/mcp/handlers/coordination/workflow-create.d.ts.map +1 -0
- package/dist/mcp/handlers/coordination/workflow-create.js +163 -0
- package/dist/mcp/handlers/coordination/workflow-create.js.map +1 -0
- package/dist/mcp/handlers/coordination/workflow-execute.d.ts +61 -0
- package/dist/mcp/handlers/coordination/workflow-execute.d.ts.map +1 -0
- package/dist/mcp/handlers/coordination/workflow-execute.js +160 -0
- package/dist/mcp/handlers/coordination/workflow-execute.js.map +1 -0
- package/dist/mcp/handlers/coordination/workflow-resume.d.ts +49 -0
- package/dist/mcp/handlers/coordination/workflow-resume.d.ts.map +1 -0
- package/dist/mcp/handlers/coordination/workflow-resume.js +124 -0
- package/dist/mcp/handlers/coordination/workflow-resume.js.map +1 -0
- package/dist/mcp/handlers/integration/contract-validate.d.ts +10 -0
- package/dist/mcp/handlers/integration/contract-validate.d.ts.map +1 -0
- package/dist/mcp/handlers/integration/contract-validate.js +348 -0
- package/dist/mcp/handlers/integration/contract-validate.js.map +1 -0
- package/dist/mcp/handlers/integration/dependency-check.d.ts +10 -0
- package/dist/mcp/handlers/integration/dependency-check.d.ts.map +1 -0
- package/dist/mcp/handlers/integration/dependency-check.js +252 -0
- package/dist/mcp/handlers/integration/dependency-check.js.map +1 -0
- package/dist/mcp/handlers/integration/index.d.ts +9 -0
- package/dist/mcp/handlers/integration/index.d.ts.map +1 -0
- package/dist/mcp/handlers/integration/index.js +14 -0
- package/dist/mcp/handlers/integration/index.js.map +1 -0
- package/dist/mcp/handlers/integration/integration-test-orchestrate.d.ts +10 -0
- package/dist/mcp/handlers/integration/integration-test-orchestrate.d.ts.map +1 -0
- package/dist/mcp/handlers/integration/integration-test-orchestrate.js +241 -0
- package/dist/mcp/handlers/integration/integration-test-orchestrate.js.map +1 -0
- package/dist/mcp/handlers/memory/artifact-manifest.d.ts +57 -0
- package/dist/mcp/handlers/memory/artifact-manifest.d.ts.map +1 -0
- package/dist/mcp/handlers/memory/artifact-manifest.js +176 -0
- package/dist/mcp/handlers/memory/artifact-manifest.js.map +1 -0
- package/dist/mcp/handlers/memory/blackboard-post.d.ts +50 -0
- package/dist/mcp/handlers/memory/blackboard-post.d.ts.map +1 -0
- package/dist/mcp/handlers/memory/blackboard-post.js +88 -0
- package/dist/mcp/handlers/memory/blackboard-post.js.map +1 -0
- package/dist/mcp/handlers/memory/blackboard-read.d.ts +33 -0
- package/dist/mcp/handlers/memory/blackboard-read.d.ts.map +1 -0
- package/dist/mcp/handlers/memory/blackboard-read.js +81 -0
- package/dist/mcp/handlers/memory/blackboard-read.js.map +1 -0
- package/dist/mcp/handlers/memory/consensus-propose.d.ts +57 -0
- package/dist/mcp/handlers/memory/consensus-propose.d.ts.map +1 -0
- package/dist/mcp/handlers/memory/consensus-propose.js +99 -0
- package/dist/mcp/handlers/memory/consensus-propose.js.map +1 -0
- package/dist/mcp/handlers/memory/consensus-vote.d.ts +37 -0
- package/dist/mcp/handlers/memory/consensus-vote.d.ts.map +1 -0
- package/dist/mcp/handlers/memory/consensus-vote.js +131 -0
- package/dist/mcp/handlers/memory/consensus-vote.js.map +1 -0
- package/dist/mcp/handlers/memory/memory-backup.d.ts +49 -0
- package/dist/mcp/handlers/memory/memory-backup.d.ts.map +1 -0
- package/dist/mcp/handlers/memory/memory-backup.js +154 -0
- package/dist/mcp/handlers/memory/memory-backup.js.map +1 -0
- package/dist/mcp/handlers/memory/memory-query.d.ts +35 -0
- package/dist/mcp/handlers/memory/memory-query.d.ts.map +1 -0
- package/dist/mcp/handlers/memory/memory-query.js +96 -0
- package/dist/mcp/handlers/memory/memory-query.js.map +1 -0
- package/dist/mcp/handlers/memory/memory-retrieve.d.ts +32 -0
- package/dist/mcp/handlers/memory/memory-retrieve.d.ts.map +1 -0
- package/dist/mcp/handlers/memory/memory-retrieve.js +91 -0
- package/dist/mcp/handlers/memory/memory-retrieve.js.map +1 -0
- package/dist/mcp/handlers/memory/memory-share.d.ts +39 -0
- package/dist/mcp/handlers/memory/memory-share.d.ts.map +1 -0
- package/dist/mcp/handlers/memory/memory-share.js +96 -0
- package/dist/mcp/handlers/memory/memory-share.js.map +1 -0
- package/dist/mcp/handlers/memory/memory-store.d.ts +47 -0
- package/dist/mcp/handlers/memory/memory-store.d.ts.map +1 -0
- package/dist/mcp/handlers/memory/memory-store.js +107 -0
- package/dist/mcp/handlers/memory/memory-store.js.map +1 -0
- package/dist/mcp/handlers/prediction/deployment-readiness-check.d.ts +157 -0
- package/dist/mcp/handlers/prediction/deployment-readiness-check.d.ts.map +1 -0
- package/dist/mcp/handlers/prediction/deployment-readiness-check.js +483 -0
- package/dist/mcp/handlers/prediction/deployment-readiness-check.js.map +1 -0
- package/dist/mcp/handlers/prediction/flaky-test-detect.d.ts +178 -0
- package/dist/mcp/handlers/prediction/flaky-test-detect.d.ts.map +1 -0
- package/dist/mcp/handlers/prediction/flaky-test-detect.js +438 -0
- package/dist/mcp/handlers/prediction/flaky-test-detect.js.map +1 -0
- package/dist/mcp/handlers/prediction/index.d.ts +19 -0
- package/dist/mcp/handlers/prediction/index.d.ts.map +1 -0
- package/dist/mcp/handlers/prediction/index.js +22 -0
- package/dist/mcp/handlers/prediction/index.js.map +1 -0
- package/dist/mcp/handlers/prediction/predict-defects-ai.d.ts +133 -0
- package/dist/mcp/handlers/prediction/predict-defects-ai.d.ts.map +1 -0
- package/dist/mcp/handlers/prediction/predict-defects-ai.js +278 -0
- package/dist/mcp/handlers/prediction/predict-defects-ai.js.map +1 -0
- package/dist/mcp/handlers/prediction/regression-risk-analyze.d.ts +189 -0
- package/dist/mcp/handlers/prediction/regression-risk-analyze.d.ts.map +1 -0
- package/dist/mcp/handlers/prediction/regression-risk-analyze.js +419 -0
- package/dist/mcp/handlers/prediction/regression-risk-analyze.js.map +1 -0
- package/dist/mcp/handlers/prediction/visual-test-regression.d.ts +138 -0
- package/dist/mcp/handlers/prediction/visual-test-regression.d.ts.map +1 -0
- package/dist/mcp/handlers/prediction/visual-test-regression.js +274 -0
- package/dist/mcp/handlers/prediction/visual-test-regression.js.map +1 -0
- package/dist/mcp/handlers/quality/quality-decision-make.d.ts +104 -0
- package/dist/mcp/handlers/quality/quality-decision-make.d.ts.map +1 -0
- package/dist/mcp/handlers/quality/quality-decision-make.js +418 -0
- package/dist/mcp/handlers/quality/quality-decision-make.js.map +1 -0
- package/dist/mcp/handlers/quality/quality-gate-execute.d.ts +160 -0
- package/dist/mcp/handlers/quality/quality-gate-execute.d.ts.map +1 -0
- package/dist/mcp/handlers/quality/quality-gate-execute.js +424 -0
- package/dist/mcp/handlers/quality/quality-gate-execute.js.map +1 -0
- package/dist/mcp/handlers/quality/quality-policy-check.d.ts +163 -0
- package/dist/mcp/handlers/quality/quality-policy-check.d.ts.map +1 -0
- package/dist/mcp/handlers/quality/quality-policy-check.js +465 -0
- package/dist/mcp/handlers/quality/quality-policy-check.js.map +1 -0
- package/dist/mcp/handlers/quality/quality-risk-assess.d.ts +123 -0
- package/dist/mcp/handlers/quality/quality-risk-assess.d.ts.map +1 -0
- package/dist/mcp/handlers/quality/quality-risk-assess.js +532 -0
- package/dist/mcp/handlers/quality/quality-risk-assess.js.map +1 -0
- package/dist/mcp/handlers/quality/quality-validate-metrics.d.ts +117 -0
- package/dist/mcp/handlers/quality/quality-validate-metrics.d.ts.map +1 -0
- package/dist/mcp/handlers/quality/quality-validate-metrics.js +298 -0
- package/dist/mcp/handlers/quality/quality-validate-metrics.js.map +1 -0
- package/dist/mcp/handlers/test/index.d.ts +9 -0
- package/dist/mcp/handlers/test/index.d.ts.map +1 -0
- package/dist/mcp/handlers/test/index.js +25 -0
- package/dist/mcp/handlers/test/index.js.map +1 -0
- package/dist/mcp/handlers/test/test-coverage-detailed.d.ts +65 -0
- package/dist/mcp/handlers/test/test-coverage-detailed.d.ts.map +1 -0
- package/dist/mcp/handlers/test/test-coverage-detailed.js +305 -0
- package/dist/mcp/handlers/test/test-coverage-detailed.js.map +1 -0
- package/dist/mcp/handlers/test/test-execute-parallel.d.ts +39 -0
- package/dist/mcp/handlers/test/test-execute-parallel.d.ts.map +1 -0
- package/dist/mcp/handlers/test/test-execute-parallel.js +189 -0
- package/dist/mcp/handlers/test/test-execute-parallel.js.map +1 -0
- package/dist/mcp/handlers/test/test-generate-enhanced.d.ts +40 -0
- package/dist/mcp/handlers/test/test-generate-enhanced.d.ts.map +1 -0
- package/dist/mcp/handlers/test/test-generate-enhanced.js +240 -0
- package/dist/mcp/handlers/test/test-generate-enhanced.js.map +1 -0
- package/dist/mcp/handlers/test/test-optimize-sublinear.d.ts +40 -0
- package/dist/mcp/handlers/test/test-optimize-sublinear.d.ts.map +1 -0
- package/dist/mcp/handlers/test/test-optimize-sublinear.js +223 -0
- package/dist/mcp/handlers/test/test-optimize-sublinear.js.map +1 -0
- package/dist/mcp/handlers/test/test-report-comprehensive.d.ts +50 -0
- package/dist/mcp/handlers/test/test-report-comprehensive.d.ts.map +1 -0
- package/dist/mcp/handlers/test/test-report-comprehensive.js +239 -0
- package/dist/mcp/handlers/test/test-report-comprehensive.js.map +1 -0
- package/dist/mcp/handlers/test-execute.d.ts +0 -2
- package/dist/mcp/handlers/test-execute.d.ts.map +1 -1
- package/dist/mcp/handlers/test-execute.js +92 -45
- package/dist/mcp/handlers/test-execute.js.map +1 -1
- package/dist/mcp/server.d.ts +4 -0
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +92 -3
- package/dist/mcp/server.js.map +1 -1
- package/dist/mcp/services/AgentRegistry.js +3 -3
- package/dist/mcp/services/AgentRegistry.js.map +1 -1
- package/dist/mcp/services/HookExecutor.d.ts +44 -5
- package/dist/mcp/services/HookExecutor.d.ts.map +1 -1
- package/dist/mcp/services/HookExecutor.js +43 -7
- package/dist/mcp/services/HookExecutor.js.map +1 -1
- package/dist/mcp/tools.d.ts +43 -0
- package/dist/mcp/tools.d.ts.map +1 -1
- package/dist/mcp/tools.js +1256 -1
- package/dist/mcp/tools.js.map +1 -1
- package/dist/mcp/types/advanced.d.ts +193 -0
- package/dist/mcp/types/advanced.d.ts.map +1 -0
- package/dist/mcp/types/advanced.js +7 -0
- package/dist/mcp/types/advanced.js.map +1 -0
- package/dist/mcp/types/analysis.d.ts +46 -0
- package/dist/mcp/types/analysis.d.ts.map +1 -0
- package/dist/mcp/types/analysis.js +6 -0
- package/dist/mcp/types/analysis.js.map +1 -0
- package/dist/mcp/types/chaos.d.ts +343 -0
- package/dist/mcp/types/chaos.d.ts.map +1 -0
- package/dist/mcp/types/chaos.js +7 -0
- package/dist/mcp/types/chaos.js.map +1 -0
- package/dist/mcp/types/integration.d.ts +418 -0
- package/dist/mcp/types/integration.d.ts.map +1 -0
- package/dist/mcp/types/integration.js +7 -0
- package/dist/mcp/types/integration.js.map +1 -0
- package/dist/types/api-contract.types.js +1 -2
- package/dist/types/api-contract.types.js.map +1 -1
- package/dist/types/errors.d.ts.map +1 -1
- package/dist/types/errors.js +5 -5
- package/dist/types/errors.js.map +1 -1
- package/dist/types/hook.types.d.ts +147 -0
- package/dist/types/hook.types.d.ts.map +1 -0
- package/dist/types/hook.types.js +7 -0
- package/dist/types/hook.types.js.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +16 -0
- package/dist/types/index.js.map +1 -1
- package/dist/utils/Config.d.ts +6 -2
- package/dist/utils/Config.d.ts.map +1 -1
- package/dist/utils/Config.js +41 -0
- package/dist/utils/Config.js.map +1 -1
- package/dist/utils/FakerDataGenerator.d.ts +203 -0
- package/dist/utils/FakerDataGenerator.d.ts.map +1 -0
- package/dist/utils/FakerDataGenerator.js +379 -0
- package/dist/utils/FakerDataGenerator.js.map +1 -0
- package/dist/utils/SecurityScanner.d.ts +72 -0
- package/dist/utils/SecurityScanner.d.ts.map +1 -0
- package/dist/utils/SecurityScanner.js +388 -0
- package/dist/utils/SecurityScanner.js.map +1 -0
- package/dist/utils/TestFrameworkExecutor.d.ts +146 -0
- package/dist/utils/TestFrameworkExecutor.d.ts.map +1 -0
- package/dist/utils/TestFrameworkExecutor.js +576 -0
- package/dist/utils/TestFrameworkExecutor.js.map +1 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +3 -1
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/validation.d.ts +28 -0
- package/dist/utils/validation.d.ts.map +1 -0
- package/dist/utils/validation.js +56 -0
- package/dist/utils/validation.js.map +1 -0
- package/package.json +31 -17
- package/dist/core/coverage-analyzer.d.ts +0 -50
- package/dist/core/coverage-analyzer.d.ts.map +0 -1
- package/dist/core/coverage-analyzer.js +0 -146
- package/dist/core/coverage-analyzer.js.map +0 -1
- package/dist/core/quality-gate.d.ts +0 -81
- package/dist/core/quality-gate.d.ts.map +0 -1
- package/dist/core/quality-gate.js +0 -254
- package/dist/core/quality-gate.js.map +0 -1
- package/dist/optimization/sublinear-solver.d.ts +0 -72
- package/dist/optimization/sublinear-solver.d.ts.map +0 -1
- package/dist/optimization/sublinear-solver.js +0 -263
- package/dist/optimization/sublinear-solver.js.map +0 -1
- package/dist/scripts/verifyComplexity.d.ts +0 -8
- package/dist/scripts/verifyComplexity.d.ts.map +0 -1
- package/dist/scripts/verifyComplexity.js +0 -56
- package/dist/scripts/verifyComplexity.js.map +0 -1
- package/dist/utils/sublinear/coverageOptimizer.d.ts +0 -84
- package/dist/utils/sublinear/coverageOptimizer.d.ts.map +0 -1
- package/dist/utils/sublinear/coverageOptimizer.js +0 -415
- package/dist/utils/sublinear/coverageOptimizer.js.map +0 -1
- package/dist/utils/sublinear/index.d.ts +0 -50
- package/dist/utils/sublinear/index.d.ts.map +0 -1
- package/dist/utils/sublinear/index.js +0 -390
- package/dist/utils/sublinear/index.js.map +0 -1
- package/dist/utils/sublinear/matrixSolver.d.ts +0 -132
- package/dist/utils/sublinear/matrixSolver.d.ts.map +0 -1
- package/dist/utils/sublinear/matrixSolver.js +0 -642
- package/dist/utils/sublinear/matrixSolver.js.map +0 -1
- package/dist/utils/sublinear/temporalPredictor.d.ts +0 -195
- package/dist/utils/sublinear/temporalPredictor.d.ts.map +0 -1
- package/dist/utils/sublinear/temporalPredictor.js +0 -474
- package/dist/utils/sublinear/temporalPredictor.js.map +0 -1
- package/dist/utils/sublinear/testSelector.d.ts +0 -81
- package/dist/utils/sublinear/testSelector.d.ts.map +0 -1
- package/dist/utils/sublinear/testSelector.js +0 -303
- package/dist/utils/sublinear/testSelector.js.map +0 -1
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GOAPCoordination = void 0;
|
|
4
|
+
const events_1 = require("events");
|
|
5
|
+
/**
|
|
6
|
+
* GOAPCoordination - Goal-Oriented Action Planning for agent task coordination
|
|
7
|
+
*
|
|
8
|
+
* Uses A* pathfinding to find optimal action sequences to achieve goals
|
|
9
|
+
*
|
|
10
|
+
* Features:
|
|
11
|
+
* - Dynamic goal prioritization
|
|
12
|
+
* - Cost-based action planning
|
|
13
|
+
* - World state management
|
|
14
|
+
* - Plan execution tracking
|
|
15
|
+
*/
|
|
16
|
+
class GOAPCoordination extends events_1.EventEmitter {
|
|
17
|
+
constructor(memory) {
|
|
18
|
+
super();
|
|
19
|
+
this.memory = memory;
|
|
20
|
+
this.actions = new Map();
|
|
21
|
+
this.currentWorldState = {};
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Register an action that can be used in planning
|
|
25
|
+
*/
|
|
26
|
+
registerAction(action) {
|
|
27
|
+
this.actions.set(action.id, action);
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Update the current world state
|
|
31
|
+
*/
|
|
32
|
+
async updateWorldState(updates) {
|
|
33
|
+
this.currentWorldState = { ...this.currentWorldState, ...updates };
|
|
34
|
+
await this.memory.store('goap:world-state', this.currentWorldState, {
|
|
35
|
+
partition: 'goap_state'
|
|
36
|
+
});
|
|
37
|
+
this.emit('goap:world-state-updated', this.currentWorldState);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Get current world state
|
|
41
|
+
*/
|
|
42
|
+
getWorldState() {
|
|
43
|
+
return { ...this.currentWorldState };
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Plan actions to achieve a goal using A* algorithm
|
|
47
|
+
*/
|
|
48
|
+
async planForGoal(goal) {
|
|
49
|
+
const startState = { ...this.currentWorldState };
|
|
50
|
+
const plan = this.findPlanAStar(startState, goal.conditions);
|
|
51
|
+
if (!plan) {
|
|
52
|
+
this.emit('goap:planning-failed', { goal, reason: 'No valid plan found' });
|
|
53
|
+
return null;
|
|
54
|
+
}
|
|
55
|
+
const planObj = {
|
|
56
|
+
goal,
|
|
57
|
+
actions: plan.actions,
|
|
58
|
+
totalCost: plan.cost,
|
|
59
|
+
state: 'pending'
|
|
60
|
+
};
|
|
61
|
+
await this.memory.store(`goap:plan:${goal.id}`, planObj, {
|
|
62
|
+
partition: 'goap_plans',
|
|
63
|
+
ttl: 3600 // 1 hour
|
|
64
|
+
});
|
|
65
|
+
this.emit('goap:plan-created', planObj);
|
|
66
|
+
return planObj;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Execute a plan
|
|
70
|
+
*/
|
|
71
|
+
async executePlan(planId) {
|
|
72
|
+
const plan = await this.memory.retrieve(`goap:plan:${planId}`, {
|
|
73
|
+
partition: 'goap_plans'
|
|
74
|
+
});
|
|
75
|
+
if (!plan) {
|
|
76
|
+
throw new Error(`Plan ${planId} not found`);
|
|
77
|
+
}
|
|
78
|
+
plan.state = 'executing';
|
|
79
|
+
await this.memory.store(`goap:plan:${planId}`, plan, {
|
|
80
|
+
partition: 'goap_plans'
|
|
81
|
+
});
|
|
82
|
+
this.emit('goap:plan-executing', plan);
|
|
83
|
+
try {
|
|
84
|
+
for (const action of plan.actions) {
|
|
85
|
+
// Verify preconditions
|
|
86
|
+
if (!this.checkConditions(this.currentWorldState, action.preconditions)) {
|
|
87
|
+
throw new Error(`Preconditions not met for action ${action.id}`);
|
|
88
|
+
}
|
|
89
|
+
// Execute action
|
|
90
|
+
await action.execute();
|
|
91
|
+
// Apply effects to world state
|
|
92
|
+
await this.updateWorldState(action.effects);
|
|
93
|
+
this.emit('goap:action-completed', { plan, action });
|
|
94
|
+
}
|
|
95
|
+
plan.state = 'completed';
|
|
96
|
+
await this.memory.store(`goap:plan:${planId}`, plan, {
|
|
97
|
+
partition: 'goap_plans'
|
|
98
|
+
});
|
|
99
|
+
this.emit('goap:plan-completed', plan);
|
|
100
|
+
return true;
|
|
101
|
+
}
|
|
102
|
+
catch (error) {
|
|
103
|
+
plan.state = 'failed';
|
|
104
|
+
await this.memory.store(`goap:plan:${planId}`, plan, {
|
|
105
|
+
partition: 'goap_plans'
|
|
106
|
+
});
|
|
107
|
+
this.emit('goap:plan-failed', { plan, error });
|
|
108
|
+
return false;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* A* pathfinding to find optimal action sequence
|
|
113
|
+
*/
|
|
114
|
+
findPlanAStar(startState, goalConditions) {
|
|
115
|
+
const openSet = [{
|
|
116
|
+
state: startState,
|
|
117
|
+
actions: [],
|
|
118
|
+
cost: 0,
|
|
119
|
+
heuristic: this.calculateHeuristic(startState, goalConditions)
|
|
120
|
+
}];
|
|
121
|
+
const closedSet = new Set();
|
|
122
|
+
while (openSet.length > 0) {
|
|
123
|
+
// Sort by f(n) = g(n) + h(n)
|
|
124
|
+
openSet.sort((a, b) => (a.cost + a.heuristic) - (b.cost + b.heuristic));
|
|
125
|
+
const current = openSet.shift();
|
|
126
|
+
const stateKey = JSON.stringify(current.state);
|
|
127
|
+
if (closedSet.has(stateKey)) {
|
|
128
|
+
continue;
|
|
129
|
+
}
|
|
130
|
+
closedSet.add(stateKey);
|
|
131
|
+
// Check if goal is reached
|
|
132
|
+
if (this.checkConditions(current.state, goalConditions)) {
|
|
133
|
+
return {
|
|
134
|
+
actions: current.actions,
|
|
135
|
+
cost: current.cost
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
// Explore neighbors (applicable actions)
|
|
139
|
+
for (const action of this.actions.values()) {
|
|
140
|
+
if (this.checkConditions(current.state, action.preconditions)) {
|
|
141
|
+
const newState = { ...current.state, ...action.effects };
|
|
142
|
+
const newActions = [...current.actions, action];
|
|
143
|
+
const newCost = current.cost + action.cost;
|
|
144
|
+
openSet.push({
|
|
145
|
+
state: newState,
|
|
146
|
+
actions: newActions,
|
|
147
|
+
cost: newCost,
|
|
148
|
+
heuristic: this.calculateHeuristic(newState, goalConditions)
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
return null; // No plan found
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Check if current state meets required conditions
|
|
157
|
+
*/
|
|
158
|
+
checkConditions(state, conditions) {
|
|
159
|
+
return Object.entries(conditions).every(([key, value]) => {
|
|
160
|
+
return state[key] === value;
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Calculate heuristic (estimated cost to goal)
|
|
165
|
+
* Simple implementation: count of unmet conditions
|
|
166
|
+
*/
|
|
167
|
+
calculateHeuristic(state, goal) {
|
|
168
|
+
return Object.entries(goal).filter(([key, value]) => state[key] !== value).length;
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Get all registered actions
|
|
172
|
+
*/
|
|
173
|
+
getActions() {
|
|
174
|
+
return Array.from(this.actions.values());
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
exports.GOAPCoordination = GOAPCoordination;
|
|
178
|
+
//# sourceMappingURL=GOAPCoordination.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GOAPCoordination.js","sourceRoot":"","sources":["../../../src/core/coordination/GOAPCoordination.ts"],"names":[],"mappings":";;;AAAA,mCAAsC;AA4BtC;;;;;;;;;;GAUG;AACH,MAAa,gBAAiB,SAAQ,qBAAY;IAIhD,YAAoB,MAA0B;QAC5C,KAAK,EAAE,CAAC;QADU,WAAM,GAAN,MAAM,CAAoB;QAHtC,YAAO,GAAwB,IAAI,GAAG,EAAE,CAAC;QACzC,sBAAiB,GAAe,EAAE,CAAC;IAI3C,CAAC;IAED;;OAEG;IACH,cAAc,CAAC,MAAc;QAC3B,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;IACtC,CAAC;IAED;;OAEG;IACH,KAAK,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,kBAAkB,CAAC,KAAiB,EAAE,IAAgB;QAC5D,OAAO,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,KAAK,CAAC,CAAC,MAAM,CAAC;IACpF,CAAC;IAED;;OAEG;IACH,UAAU;QACR,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IAC3C,CAAC;CACF;AA7MD,4CA6MC"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { EventEmitter } from 'events';
|
|
2
|
+
import { SwarmMemoryManager } from '../memory/SwarmMemoryManager';
|
|
3
|
+
export interface Observation {
|
|
4
|
+
id: string;
|
|
5
|
+
data: any;
|
|
6
|
+
timestamp: number;
|
|
7
|
+
source: string;
|
|
8
|
+
}
|
|
9
|
+
export interface Orientation {
|
|
10
|
+
id: string;
|
|
11
|
+
observations: string[];
|
|
12
|
+
analysis: any;
|
|
13
|
+
context: any;
|
|
14
|
+
timestamp: number;
|
|
15
|
+
}
|
|
16
|
+
export interface Decision {
|
|
17
|
+
id: string;
|
|
18
|
+
orientationId: string;
|
|
19
|
+
options: any[];
|
|
20
|
+
selected: any;
|
|
21
|
+
rationale: string;
|
|
22
|
+
timestamp: number;
|
|
23
|
+
}
|
|
24
|
+
export interface Action {
|
|
25
|
+
id: string;
|
|
26
|
+
decisionId: string;
|
|
27
|
+
type: string;
|
|
28
|
+
parameters: any;
|
|
29
|
+
status: 'pending' | 'executing' | 'completed' | 'failed';
|
|
30
|
+
result?: any;
|
|
31
|
+
timestamp: number;
|
|
32
|
+
}
|
|
33
|
+
export interface OODALoop {
|
|
34
|
+
id: string;
|
|
35
|
+
cycleNumber: number;
|
|
36
|
+
observations: Observation[];
|
|
37
|
+
orientation: Orientation | null;
|
|
38
|
+
decision: Decision | null;
|
|
39
|
+
action: Action | null;
|
|
40
|
+
startTime: number;
|
|
41
|
+
endTime?: number;
|
|
42
|
+
duration?: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* OODACoordination - Observe-Orient-Decide-Act loop for agent decision making
|
|
46
|
+
*
|
|
47
|
+
* Implements the OODA loop pattern for rapid, adaptive decision cycles
|
|
48
|
+
*
|
|
49
|
+
* Features:
|
|
50
|
+
* - Continuous observation gathering
|
|
51
|
+
* - Context-aware orientation
|
|
52
|
+
* - Decision making with options analysis
|
|
53
|
+
* - Action execution and tracking
|
|
54
|
+
* - Cycle performance metrics
|
|
55
|
+
*/
|
|
56
|
+
export declare class OODACoordination extends EventEmitter {
|
|
57
|
+
private memory;
|
|
58
|
+
private currentLoop;
|
|
59
|
+
private cycleCount;
|
|
60
|
+
constructor(memory: SwarmMemoryManager);
|
|
61
|
+
/**
|
|
62
|
+
* Start a new OODA loop cycle
|
|
63
|
+
*/
|
|
64
|
+
startCycle(): Promise<string>;
|
|
65
|
+
/**
|
|
66
|
+
* Observe - Gather raw data from environment
|
|
67
|
+
*/
|
|
68
|
+
observe(observation: Omit<Observation, 'id' | 'timestamp'>): Promise<Observation>;
|
|
69
|
+
/**
|
|
70
|
+
* Orient - Analyze observations and build situational awareness
|
|
71
|
+
*/
|
|
72
|
+
orient(analysis: any, context?: any): Promise<Orientation>;
|
|
73
|
+
/**
|
|
74
|
+
* Decide - Make decision based on orientation
|
|
75
|
+
*/
|
|
76
|
+
decide(options: any[], selected: any, rationale: string): Promise<Decision>;
|
|
77
|
+
/**
|
|
78
|
+
* Act - Execute the decided action
|
|
79
|
+
*/
|
|
80
|
+
act(type: string, parameters: any, executor: () => Promise<any>): Promise<Action>;
|
|
81
|
+
/**
|
|
82
|
+
* Complete current OODA cycle
|
|
83
|
+
*/
|
|
84
|
+
completeCycle(): Promise<OODALoop>;
|
|
85
|
+
/**
|
|
86
|
+
* Get current active cycle
|
|
87
|
+
*/
|
|
88
|
+
getCurrentCycle(): OODALoop | null;
|
|
89
|
+
/**
|
|
90
|
+
* Get cycle history
|
|
91
|
+
*/
|
|
92
|
+
getCycleHistory(limit?: number): Promise<OODALoop[]>;
|
|
93
|
+
/**
|
|
94
|
+
* Get average cycle time
|
|
95
|
+
*/
|
|
96
|
+
getAverageCycleTime(): Promise<number>;
|
|
97
|
+
}
|
|
98
|
+
//# sourceMappingURL=OODACoordination.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OODACoordination.d.ts","sourceRoot":"","sources":["../../../src/core/coordination/OODACoordination.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAElE,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,GAAG,CAAC;IACV,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,QAAQ,EAAE,GAAG,CAAC;IACd,OAAO,EAAE,GAAG,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,GAAG,EAAE,CAAC;IACf,QAAQ,EAAE,GAAG,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,GAAG,CAAC;IAChB,MAAM,EAAE,SAAS,GAAG,WAAW,GAAG,WAAW,GAAG,QAAQ,CAAC;IACzD,M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AoBxC;;OAEG;IACH,eAAe,IAAI,QAAQ,GAAG,IAAI;IAIlC;;OAEG;IACG,eAAe,CAAC,KAAK,GAAE,MAAW,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;IAW9D;;OAEG;IACG,mBAAmB,IAAI,OAAO,CAAC,MAAM,CAAC;CAW7C"}
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OODACoordination = void 0;
|
|
4
|
+
const events_1 = require("events");
|
|
5
|
+
/**
|
|
6
|
+
* OODACoordination - Observe-Orient-Decide-Act loop for agent decision making
|
|
7
|
+
*
|
|
8
|
+
* Implements the OODA loop pattern for rapid, adaptive decision cycles
|
|
9
|
+
*
|
|
10
|
+
* Features:
|
|
11
|
+
* - Continuous observation gathering
|
|
12
|
+
* - Context-aware orientation
|
|
13
|
+
* - Decision making with options analysis
|
|
14
|
+
* - Action execution and tracking
|
|
15
|
+
* - Cycle performance metrics
|
|
16
|
+
*/
|
|
17
|
+
class OODACoordination extends events_1.EventEmitter {
|
|
18
|
+
constructor(memory) {
|
|
19
|
+
super();
|
|
20
|
+
this.memory = memory;
|
|
21
|
+
this.currentLoop = null;
|
|
22
|
+
this.cycleCount = 0;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Start a new OODA loop cycle
|
|
26
|
+
*/
|
|
27
|
+
async startCycle() {
|
|
28
|
+
this.cycleCount++;
|
|
29
|
+
this.currentLoop = {
|
|
30
|
+
id: `ooda-cycle-${this.cycleCount}-${Date.now()}`,
|
|
31
|
+
cycleNumber: this.cycleCount,
|
|
32
|
+
observations: [],
|
|
33
|
+
orientation: null,
|
|
34
|
+
decision: null,
|
|
35
|
+
action: null,
|
|
36
|
+
startTime: Date.now()
|
|
37
|
+
};
|
|
38
|
+
await this.memory.store(`ooda:cycle:${this.currentLoop.id}`, this.currentLoop, {
|
|
39
|
+
partition: 'ooda_cycles',
|
|
40
|
+
ttl: 86400 // 24 hours
|
|
41
|
+
});
|
|
42
|
+
this.emit('ooda:cycle-started', this.currentLoop);
|
|
43
|
+
return this.currentLoop.id;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Observe - Gather raw data from environment
|
|
47
|
+
*/
|
|
48
|
+
async observe(observation) {
|
|
49
|
+
if (!this.currentLoop) {
|
|
50
|
+
throw new Error('No active OODA cycle. Call startCycle() first.');
|
|
51
|
+
}
|
|
52
|
+
const obs = {
|
|
53
|
+
id: `obs-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`,
|
|
54
|
+
...observation,
|
|
55
|
+
timestamp: Date.now()
|
|
56
|
+
};
|
|
57
|
+
this.currentLoop.observations.push(obs);
|
|
58
|
+
await this.memory.store(`ooda:cycle:${this.currentLoop.id}`, this.currentLoop, {
|
|
59
|
+
partition: 'ooda_cycles'
|
|
60
|
+
});
|
|
61
|
+
this.emit('ooda:observation-added', { cycle: this.currentLoop, observation: obs });
|
|
62
|
+
return obs;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Orient - Analyze observations and build situational awareness
|
|
66
|
+
*/
|
|
67
|
+
async orient(analysis, context = {}) {
|
|
68
|
+
if (!this.currentLoop) {
|
|
69
|
+
throw new Error('No active OODA cycle. Call startCycle() first.');
|
|
70
|
+
}
|
|
71
|
+
if (this.currentLoop.observations.length === 0) {
|
|
72
|
+
throw new Error('Cannot orient without observations');
|
|
73
|
+
}
|
|
74
|
+
const orientation = {
|
|
75
|
+
id: `orient-${Date.now()}`,
|
|
76
|
+
observations: this.currentLoop.observations.map(o => o.id),
|
|
77
|
+
analysis,
|
|
78
|
+
context,
|
|
79
|
+
timestamp: Date.now()
|
|
80
|
+
};
|
|
81
|
+
this.currentLoop.orientation = orientation;
|
|
82
|
+
await this.memory.store(`ooda:cycle:${this.currentLoop.id}`, this.currentLoop, {
|
|
83
|
+
partition: 'ooda_cycles'
|
|
84
|
+
});
|
|
85
|
+
this.emit('ooda:orientation-completed', { cycle: this.currentLoop, orientation });
|
|
86
|
+
return orientation;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Decide - Make decision based on orientation
|
|
90
|
+
*/
|
|
91
|
+
async decide(options, selected, rationale) {
|
|
92
|
+
if (!this.currentLoop) {
|
|
93
|
+
throw new Error('No active OODA cycle. Call startCycle() first.');
|
|
94
|
+
}
|
|
95
|
+
if (!this.currentLoop.orientation) {
|
|
96
|
+
throw new Error('Cannot decide without orientation');
|
|
97
|
+
}
|
|
98
|
+
const decision = {
|
|
99
|
+
id: `decision-${Date.now()}`,
|
|
100
|
+
orientationId: this.currentLoop.orientation.id,
|
|
101
|
+
options,
|
|
102
|
+
selected,
|
|
103
|
+
rationale,
|
|
104
|
+
timestamp: Date.now()
|
|
105
|
+
};
|
|
106
|
+
this.currentLoop.decision = decision;
|
|
107
|
+
await this.memory.store(`ooda:cycle:${this.currentLoop.id}`, this.currentLoop, {
|
|
108
|
+
partition: 'ooda_cycles'
|
|
109
|
+
});
|
|
110
|
+
this.emit('ooda:decision-made', { cycle: this.currentLoop, decision });
|
|
111
|
+
return decision;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Act - Execute the decided action
|
|
115
|
+
*/
|
|
116
|
+
async act(type, parameters, executor) {
|
|
117
|
+
if (!this.currentLoop) {
|
|
118
|
+
throw new Error('No active OODA cycle. Call startCycle() first.');
|
|
119
|
+
}
|
|
120
|
+
if (!this.currentLoop.decision) {
|
|
121
|
+
throw new Error('Cannot act without decision');
|
|
122
|
+
}
|
|
123
|
+
const action = {
|
|
124
|
+
id: `action-${Date.now()}`,
|
|
125
|
+
decisionId: this.currentLoop.decision.id,
|
|
126
|
+
type,
|
|
127
|
+
parameters,
|
|
128
|
+
status: 'pending',
|
|
129
|
+
timestamp: Date.now()
|
|
130
|
+
};
|
|
131
|
+
this.currentLoop.action = action;
|
|
132
|
+
await this.memory.store(`ooda:cycle:${this.currentLoop.id}`, this.currentLoop, {
|
|
133
|
+
partition: 'ooda_cycles'
|
|
134
|
+
});
|
|
135
|
+
this.emit('ooda:action-started', { cycle: this.currentLoop, action });
|
|
136
|
+
try {
|
|
137
|
+
action.status = 'executing';
|
|
138
|
+
const result = await executor();
|
|
139
|
+
action.status = 'completed';
|
|
140
|
+
action.result = result;
|
|
141
|
+
this.currentLoop.action = action;
|
|
142
|
+
await this.memory.store(`ooda:cycle:${this.currentLoop.id}`, this.currentLoop, {
|
|
143
|
+
partition: 'ooda_cycles'
|
|
144
|
+
});
|
|
145
|
+
this.emit('ooda:action-completed', { cycle: this.currentLoop, action });
|
|
146
|
+
}
|
|
147
|
+
catch (error) {
|
|
148
|
+
action.status = 'failed';
|
|
149
|
+
action.result = { error: error instanceof Error ? error.message : String(error) };
|
|
150
|
+
this.currentLoop.action = action;
|
|
151
|
+
await this.memory.store(`ooda:cycle:${this.currentLoop.id}`, this.currentLoop, {
|
|
152
|
+
partition: 'ooda_cycles'
|
|
153
|
+
});
|
|
154
|
+
this.emit('ooda:action-failed', { cycle: this.currentLoop, action, error });
|
|
155
|
+
}
|
|
156
|
+
return action;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Complete current OODA cycle
|
|
160
|
+
*/
|
|
161
|
+
async completeCycle() {
|
|
162
|
+
if (!this.currentLoop) {
|
|
163
|
+
throw new Error('No active OODA cycle');
|
|
164
|
+
}
|
|
165
|
+
this.currentLoop.endTime = Date.now();
|
|
166
|
+
this.currentLoop.duration = this.currentLoop.endTime - this.currentLoop.startTime;
|
|
167
|
+
await this.memory.store(`ooda:cycle:${this.currentLoop.id}`, this.currentLoop, {
|
|
168
|
+
partition: 'ooda_cycles'
|
|
169
|
+
});
|
|
170
|
+
this.emit('ooda:cycle-completed', this.currentLoop);
|
|
171
|
+
const completedLoop = this.currentLoop;
|
|
172
|
+
this.currentLoop = null;
|
|
173
|
+
return completedLoop;
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Get current active cycle
|
|
177
|
+
*/
|
|
178
|
+
getCurrentCycle() {
|
|
179
|
+
return this.currentLoop ? { ...this.currentLoop } : null;
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Get cycle history
|
|
183
|
+
*/
|
|
184
|
+
async getCycleHistory(limit = 10) {
|
|
185
|
+
const cycles = await this.memory.query('ooda:cycle:%', {
|
|
186
|
+
partition: 'ooda_cycles'
|
|
187
|
+
});
|
|
188
|
+
return cycles
|
|
189
|
+
.map(entry => entry.value)
|
|
190
|
+
.sort((a, b) => b.startTime - a.startTime)
|
|
191
|
+
.slice(0, limit);
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* Get average cycle time
|
|
195
|
+
*/
|
|
196
|
+
async getAverageCycleTime() {
|
|
197
|
+
const cycles = await this.getCycleHistory(100);
|
|
198
|
+
const completedCycles = cycles.filter(c => c.duration !== undefined);
|
|
199
|
+
if (completedCycles.length === 0) {
|
|
200
|
+
return 0;
|
|
201
|
+
}
|
|
202
|
+
const totalDuration = completedCycles.reduce((sum, c) => sum + (c.duration || 0), 0);
|
|
203
|
+
return totalDuration / completedCycles.length;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
exports.OODACoordination = OODACoordination;
|
|
207
|
+
//# sourceMappingURL=OODACoordination.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OODACoordination.js","sourceRoot":"","sources":["../../../src/core/coordination/OODACoordination.ts"],"names":[],"mappings":";;;AAAA,mCAAsC;AAiDtC;;;;;;;;;;;GAWG;AACH,MAAa,gBAAiB,SAAQ,qBAAY;IAIhD,YAAoB,MAA0B;QAC5C,KAAK,EAAE,CAAC;QADU,WAAM,GAAN,MAAM,CAAoB;QAHtC,gBAAW,GAAoB,IAAI,CAAC;QACpC,eAAU,GAAG,CAAC,CAAC;IAIvB,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,UAAU;QACd,IAAI,CAAC,UAAU,EAAE,CAAC;QAElB,IAAI,CAAC,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CAAC;IAED;;OAEG;IACH,KAAK,CAAC,eAAe,CAAC,QAAgB,EAAE;QACtC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,cAAc,EAAE;YACrD,SAAS,EAAE,aAAa;SACzB,CAAC,CAAC;QAEH,OAAO,MAAM;aACV,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC;aACzB,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,SAAS,CAAC;aACzC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;IACrB,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,mBAAmB;QACvB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC;QAC/C,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC;QAErE,IAAI,eAAe,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACjC,OAAO,CAAC,CAAC;QACX,CAAC;QAED,MAAM,aAAa,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACrF,OAAO,aAAa,GAAG,eAAe,CAAC,MAAM,CAAC;IAChD,CAAC;CACF;AA7OD,4CA6OC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Coordination Patterns for Agentic QE Fleet
|
|
3
|
+
*
|
|
4
|
+
* This module provides coordination patterns for distributed agent swarms:
|
|
5
|
+
*
|
|
6
|
+
* 1. **Blackboard Pattern** - Asynchronous information sharing via hints
|
|
7
|
+
* 2. **Consensus Gating** - Quorum-based decision making
|
|
8
|
+
* 3. **GOAP (Goal-Oriented Action Planning)** - A* pathfinding for task sequences
|
|
9
|
+
* 4. **OODA Loop** - Observe-Orient-Decide-Act for rapid adaptation
|
|
10
|
+
*/
|
|
11
|
+
export { BlackboardCoordination } from './BlackboardCoordination';
|
|
12
|
+
export { ConsensusGating } from './ConsensusGating';
|
|
13
|
+
export { GOAPCoordination } from './GOAPCoordination';
|
|
14
|
+
export { OODACoordination } from './OODACoordination';
|
|
15
|
+
export type { BlackboardHint } from './BlackboardCoordination';
|
|
16
|
+
export type { ConsensusProposal, ConsensusState } from './ConsensusGating';
|
|
17
|
+
export type { WorldState, Goal, Action, Plan } from './GOAPCoordination';
|
|
18
|
+
export type { Observation, Orientation, Decision, Action as OODAAction, OODALoop } from './OODACoordination';
|
|
19
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/coordination/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,YAAY,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/D,YAAY,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC3E,YAAY,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AACzE,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,IAAI,UAAU,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Coordination Patterns for Agentic QE Fleet
|
|
4
|
+
*
|
|
5
|
+
* This module provides coordination patterns for distributed agent swarms:
|
|
6
|
+
*
|
|
7
|
+
* 1. **Blackboard Pattern** - Asynchronous information sharing via hints
|
|
8
|
+
* 2. **Consensus Gating** - Quorum-based decision making
|
|
9
|
+
* 3. **GOAP (Goal-Oriented Action Planning)** - A* pathfinding for task sequences
|
|
10
|
+
* 4. **OODA Loop** - Observe-Orient-Decide-Act for rapid adaptation
|
|
11
|
+
*/
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.OODACoordination = exports.GOAPCoordination = exports.ConsensusGating = exports.BlackboardCoordination = void 0;
|
|
14
|
+
var BlackboardCoordination_1 = require("./BlackboardCoordination");
|
|
15
|
+
Object.defineProperty(exports, "BlackboardCoordination", { enumerable: true, get: function () { return BlackboardCoordination_1.BlackboardCoordination; } });
|
|
16
|
+
var ConsensusGating_1 = require("./ConsensusGating");
|
|
17
|
+
Object.defineProperty(exports, "ConsensusGating", { enumerable: true, get: function () { return ConsensusGating_1.ConsensusGating; } });
|
|
18
|
+
var GOAPCoordination_1 = require("./GOAPCoordination");
|
|
19
|
+
Object.defineProperty(exports, "GOAPCoordination", { enumerable: true, get: function () { return GOAPCoordination_1.GOAPCoordination; } });
|
|
20
|
+
var OODACoordination_1 = require("./OODACoordination");
|
|
21
|
+
Object.defineProperty(exports, "OODACoordination", { enumerable: true, get: function () { return OODACoordination_1.OODACoordination; } });
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/coordination/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;AAEH,mEAAkE;AAAzD,gIAAA,sBAAsB,OAAA;AAC/B,qDAAoD;AAA3C,kHAAA,eAAe,OAAA;AACxB,uDAAsD;AAA7C,oHAAA,gBAAgB,OAAA;AACzB,uDAAsD;AAA7C,oHAAA,gBAAgB,OAAA"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { EventEmitter } from 'events';
|
|
2
|
+
import { SwarmMemoryManager } from '../memory/SwarmMemoryManager';
|
|
3
|
+
import { EventHandler } from './types';
|
|
4
|
+
/**
|
|
5
|
+
* QE Event Bus for real-time agent coordination
|
|
6
|
+
*
|
|
7
|
+
* Provides event-driven communication between agents with optional
|
|
8
|
+
* persistence to SwarmMemoryManager for event history and auditing.
|
|
9
|
+
*/
|
|
10
|
+
export declare class QEEventBus extends EventEmitter {
|
|
11
|
+
private memory?;
|
|
12
|
+
private isActive;
|
|
13
|
+
constructor(memory?: SwarmMemoryManager);
|
|
14
|
+
/**
|
|
15
|
+
* Subscribe to an event type
|
|
16
|
+
* @param event Event name to subscribe to
|
|
17
|
+
* @param handler Handler function to call when event is emitted
|
|
18
|
+
*/
|
|
19
|
+
subscribe<T = any>(event: string, handler: EventHandler<T>): void;
|
|
20
|
+
/**
|
|
21
|
+
* Unsubscribe from an event type
|
|
22
|
+
* @param event Event name to unsubscribe from
|
|
23
|
+
* @param handler Handler function to remove
|
|
24
|
+
*/
|
|
25
|
+
unsubscribe<T = any>(event: string, handler: EventHandler<T>): void;
|
|
26
|
+
/**
|
|
27
|
+
* Emit an event to all subscribers and optionally persist to memory
|
|
28
|
+
* @param event Event name to emit
|
|
29
|
+
* @param data Event data payload
|
|
30
|
+
*/
|
|
31
|
+
emitAsync(event: string, data: any): Promise<boolean>;
|
|
32
|
+
/**
|
|
33
|
+
* Emit an event once - will be automatically unsubscribed after first call
|
|
34
|
+
* @param event Event name to subscribe to
|
|
35
|
+
* @param handler Handler function
|
|
36
|
+
*/
|
|
37
|
+
subscribeOnce<T = any>(event: string, handler: EventHandler<T>): this;
|
|
38
|
+
/**
|
|
39
|
+
* Get all event names currently being listened to
|
|
40
|
+
*/
|
|
41
|
+
getEventNames(): (string | symbol)[];
|
|
42
|
+
/**
|
|
43
|
+
* Get listener count for a specific event
|
|
44
|
+
* @param event Event name
|
|
45
|
+
*/
|
|
46
|
+
getListenerCount(event: string): number;
|
|
47
|
+
/**
|
|
48
|
+
* Remove all listeners for a specific event or all events
|
|
49
|
+
* @param event Optional event name - if not provided, removes all listeners
|
|
50
|
+
*/
|
|
51
|
+
removeAllListeners(event?: string): this;
|
|
52
|
+
/**
|
|
53
|
+
* Shutdown the event bus and stop emitting events
|
|
54
|
+
*/
|
|
55
|
+
shutdown(): Promise<void>;
|
|
56
|
+
/**
|
|
57
|
+
* Check if event bus is active
|
|
58
|
+
*/
|
|
59
|
+
isEventBusActive(): boolean;
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=QEEventBus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QEEventBus.d.ts","sourceRoot":"","sources":["../../../src/core/events/QEEventBus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC;;;;;GAKG;AACH,qBAAa,UAAW,SAAQ,YAAY;IAC1C,OAAO,CAAC,MAAM,CAAC,CAAqB;IACpC,OAAO,CAAC,QAAQ,CAAiB;gBAErB,MAAM,CAAC,EAAE,kBAAkB;IAMvC;;;;OAIG;IACH,SAAS,CAAC,CAAC,GAAG,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC,GAAG,IAAI;IAIjE;;;;OAIG;IACH,WAAW,CAAC,CAAC,GAAG,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC,GAAG,IAAI;IAInE;;;;OAIG;IACG,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,OAAO,CAAC;IA8B3D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