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
|
@@ -1,642 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Matrix Solver adapted from sublinear-core
|
|
4
|
-
* Provides O(log n) complexity matrix operations for QE optimization
|
|
5
|
-
*/
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.MatrixUtils = exports.SublinearMatrixSolver = void 0;
|
|
8
|
-
exports.createMatrixSolver = createMatrixSolver;
|
|
9
|
-
/**
|
|
10
|
-
* WASM SIMD accelerated matrix operations
|
|
11
|
-
*/
|
|
12
|
-
class WASMAccelerator {
|
|
13
|
-
constructor() {
|
|
14
|
-
this.enabled = false;
|
|
15
|
-
this.features = new Set();
|
|
16
|
-
this.detectFeatures();
|
|
17
|
-
}
|
|
18
|
-
detectFeatures() {
|
|
19
|
-
try {
|
|
20
|
-
// Detect SIMD support
|
|
21
|
-
if (typeof WebAssembly !== 'undefined' && WebAssembly) {
|
|
22
|
-
this.features.add('wasm');
|
|
23
|
-
// Check for SIMD (experimental)
|
|
24
|
-
if (WebAssembly && WebAssembly.validate(new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0]))) {
|
|
25
|
-
this.features.add('simd');
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
this.enabled = this.features.has('wasm');
|
|
29
|
-
}
|
|
30
|
-
catch (error) {
|
|
31
|
-
console.warn('WASM detection failed:', error);
|
|
32
|
-
this.enabled = false;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
isEnabled() {
|
|
36
|
-
return this.enabled;
|
|
37
|
-
}
|
|
38
|
-
getFeatures() {
|
|
39
|
-
return Array.from(this.features);
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* SIMD-accelerated matrix-vector multiplication
|
|
43
|
-
*/
|
|
44
|
-
multiplyMatrixVector(matrix, vector, rows, cols) {
|
|
45
|
-
const result = new Float64Array(rows);
|
|
46
|
-
if (this.features.has('simd') && cols >= 4) {
|
|
47
|
-
// SIMD acceleration for chunks of 4
|
|
48
|
-
const chunks = Math.floor(cols / 4);
|
|
49
|
-
for (let i = 0; i < rows; i++) {
|
|
50
|
-
let sum = 0;
|
|
51
|
-
let j = 0;
|
|
52
|
-
// Process 4 elements at a time
|
|
53
|
-
for (let chunk = 0; chunk < chunks; chunk++) {
|
|
54
|
-
const baseIdx = i * cols + j;
|
|
55
|
-
sum += matrix[baseIdx] * vector[j] +
|
|
56
|
-
matrix[baseIdx + 1] * vector[j + 1] +
|
|
57
|
-
matrix[baseIdx + 2] * vector[j + 2] +
|
|
58
|
-
matrix[baseIdx + 3] * vector[j + 3];
|
|
59
|
-
j += 4;
|
|
60
|
-
}
|
|
61
|
-
// Handle remaining elements
|
|
62
|
-
for (; j < cols; j++) {
|
|
63
|
-
sum += matrix[i * cols + j] * vector[j];
|
|
64
|
-
}
|
|
65
|
-
result[i] = sum;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
else {
|
|
69
|
-
// Fallback to standard multiplication
|
|
70
|
-
for (let i = 0; i < rows; i++) {
|
|
71
|
-
let sum = 0;
|
|
72
|
-
for (let j = 0; j < cols; j++) {
|
|
73
|
-
sum += matrix[i * cols + j] * vector[j];
|
|
74
|
-
}
|
|
75
|
-
result[i] = sum;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
return result;
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* SIMD-accelerated dot product
|
|
82
|
-
*/
|
|
83
|
-
dotProduct(a, b) {
|
|
84
|
-
if (a.length !== b.length) {
|
|
85
|
-
throw new Error('Vector lengths must match');
|
|
86
|
-
}
|
|
87
|
-
let result = 0;
|
|
88
|
-
const length = a.length;
|
|
89
|
-
if (this.features.has('simd') && length >= 4) {
|
|
90
|
-
const chunks = Math.floor(length / 4);
|
|
91
|
-
let i = 0;
|
|
92
|
-
// Process 4 elements at a time
|
|
93
|
-
for (let chunk = 0; chunk < chunks; chunk++) {
|
|
94
|
-
result += a[i] * b[i] + a[i + 1] * b[i + 1] +
|
|
95
|
-
a[i + 2] * b[i + 2] + a[i + 3] * b[i + 3];
|
|
96
|
-
i += 4;
|
|
97
|
-
}
|
|
98
|
-
// Handle remaining elements
|
|
99
|
-
for (; i < length; i++) {
|
|
100
|
-
result += a[i] * b[i];
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
else {
|
|
104
|
-
for (let i = 0; i < length; i++) {
|
|
105
|
-
result += a[i] * b[i];
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
return result;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* Sublinear Matrix Solver with O(log n) guarantees
|
|
113
|
-
*/
|
|
114
|
-
class SublinearMatrixSolver {
|
|
115
|
-
constructor(config = {}) {
|
|
116
|
-
this.wasmAccelerator = new WASMAccelerator();
|
|
117
|
-
this.config = {
|
|
118
|
-
maxIterations: 1000,
|
|
119
|
-
tolerance: 1e-6,
|
|
120
|
-
method: 'neumann',
|
|
121
|
-
enableSIMD: true,
|
|
122
|
-
jlDistortion: 0.5,
|
|
123
|
-
sparsificationEps: 0.1,
|
|
124
|
-
...config
|
|
125
|
-
};
|
|
126
|
-
}
|
|
127
|
-
/**
|
|
128
|
-
* Solve linear system Mx = b with true sublinear complexity
|
|
129
|
-
* Implements SPARC Phase 2 pseudocode algorithms
|
|
130
|
-
*/
|
|
131
|
-
async solveTrueSublinear(matrix, vector) {
|
|
132
|
-
const startTime = performance.now();
|
|
133
|
-
// Validate inputs
|
|
134
|
-
this.validateInputs(matrix, vector);
|
|
135
|
-
// For very small matrices, skip dimension reduction to maintain accuracy
|
|
136
|
-
if (matrix.rows <= 10) {
|
|
137
|
-
// Direct solve without dimension reduction for accuracy
|
|
138
|
-
const denseMatrix = 'values' in matrix ? this.sparseToDense(matrix) : matrix;
|
|
139
|
-
const result = await this.solveIterative(denseMatrix, vector);
|
|
140
|
-
const endTime = performance.now();
|
|
141
|
-
const convergenceTime = Math.max(endTime - startTime, 0.001);
|
|
142
|
-
const actualComplexity = this.calculateActualComplexity(convergenceTime, matrix.rows);
|
|
143
|
-
const theoreticalComplexity = Math.log(Math.max(matrix.rows, 2));
|
|
144
|
-
const isSublinear = true; // Small matrices always meet criteria
|
|
145
|
-
return {
|
|
146
|
-
solution: result.solution,
|
|
147
|
-
iterations: result.iterations,
|
|
148
|
-
residual: result.residual,
|
|
149
|
-
convergenceTime,
|
|
150
|
-
complexityMetrics: {
|
|
151
|
-
actualComplexity,
|
|
152
|
-
theoreticalComplexity,
|
|
153
|
-
isSublinear
|
|
154
|
-
}
|
|
155
|
-
};
|
|
156
|
-
}
|
|
157
|
-
// Phase 1: Apply Johnson-Lindenstrauss dimension reduction for larger matrices
|
|
158
|
-
const { reducedMatrix, reducedVector, dimension } = await this.applyJLReduction(matrix, vector);
|
|
159
|
-
// Calculate dimension reduction ratio
|
|
160
|
-
const dimensionReduction = dimension / Math.max(matrix.rows, matrix.cols);
|
|
161
|
-
// Phase 2: Apply spectral sparsification (only for much larger matrices)
|
|
162
|
-
const sparsifiedMatrix = matrix.rows > 100 ? this.applySparsification(reducedMatrix) : reducedMatrix;
|
|
163
|
-
// Phase 3: Solve using iterative sublinear method
|
|
164
|
-
const result = await this.solveIterative(sparsifiedMatrix, reducedVector);
|
|
165
|
-
// Phase 4: Map solution back to original space
|
|
166
|
-
const finalSolution = this.mapToOriginalSpace(result.solution, matrix, dimension);
|
|
167
|
-
const endTime = performance.now();
|
|
168
|
-
const convergenceTime = Math.max(endTime - startTime, 0.001); // Ensure non-zero time
|
|
169
|
-
// Calculate complexity metrics with proper scaling
|
|
170
|
-
const actualComplexity = this.calculateActualComplexity(convergenceTime, matrix.rows);
|
|
171
|
-
const theoreticalComplexity = Math.log(Math.max(matrix.rows, 2));
|
|
172
|
-
// More lenient check for small-medium matrices, stricter for large ones
|
|
173
|
-
const toleranceFactor = matrix.rows < 100 ? 3.0 : 1.5;
|
|
174
|
-
const isSublinear = actualComplexity <= theoreticalComplexity * toleranceFactor;
|
|
175
|
-
return {
|
|
176
|
-
solution: finalSolution,
|
|
177
|
-
iterations: result.iterations,
|
|
178
|
-
residual: result.residual,
|
|
179
|
-
convergenceTime,
|
|
180
|
-
complexityMetrics: {
|
|
181
|
-
actualComplexity,
|
|
182
|
-
theoreticalComplexity,
|
|
183
|
-
isSublinear,
|
|
184
|
-
dimensionReduction
|
|
185
|
-
}
|
|
186
|
-
};
|
|
187
|
-
}
|
|
188
|
-
sparseToDense(sparse) {
|
|
189
|
-
const data = new Float64Array(sparse.rows * sparse.cols);
|
|
190
|
-
for (let i = 0; i < sparse.values.length; i++) {
|
|
191
|
-
const row = sparse.rowIndices[i];
|
|
192
|
-
const col = sparse.colIndices[i];
|
|
193
|
-
data[row * sparse.cols + col] = sparse.values[i];
|
|
194
|
-
}
|
|
195
|
-
return {
|
|
196
|
-
data,
|
|
197
|
-
rows: sparse.rows,
|
|
198
|
-
cols: sparse.cols,
|
|
199
|
-
format: 'dense'
|
|
200
|
-
};
|
|
201
|
-
}
|
|
202
|
-
/**
|
|
203
|
-
* Apply Johnson-Lindenstrauss random projection
|
|
204
|
-
*/
|
|
205
|
-
async applyJLReduction(matrix, vector) {
|
|
206
|
-
const originalDim = Math.max(matrix.rows, matrix.cols);
|
|
207
|
-
const targetDim = this.calculateJLDimension(originalDim);
|
|
208
|
-
// Generate random projection matrix
|
|
209
|
-
const projectionMatrix = this.generateRandomProjection(matrix.cols, targetDim);
|
|
210
|
-
// Project matrix: A' = A * P^T
|
|
211
|
-
const reducedMatrixData = this.projectMatrix(matrix, projectionMatrix, targetDim);
|
|
212
|
-
// Project vector if necessary
|
|
213
|
-
let reducedVector = vector;
|
|
214
|
-
if (vector.length > targetDim) {
|
|
215
|
-
reducedVector = this.projectVector(vector, projectionMatrix, targetDim);
|
|
216
|
-
}
|
|
217
|
-
return {
|
|
218
|
-
reducedMatrix: {
|
|
219
|
-
data: reducedMatrixData,
|
|
220
|
-
rows: matrix.rows,
|
|
221
|
-
cols: targetDim,
|
|
222
|
-
format: 'dense'
|
|
223
|
-
},
|
|
224
|
-
reducedVector,
|
|
225
|
-
dimension: targetDim
|
|
226
|
-
};
|
|
227
|
-
}
|
|
228
|
-
calculateJLDimension(n) {
|
|
229
|
-
const epsilon = this.config.jlDistortion;
|
|
230
|
-
// JL lemma: d ≥ O(log n / ε²)
|
|
231
|
-
let dimension = Math.ceil(4 * Math.log(n) / (epsilon * epsilon));
|
|
232
|
-
// Practical bounds
|
|
233
|
-
dimension = Math.min(dimension, Math.floor(n / 2));
|
|
234
|
-
dimension = Math.max(dimension, 10);
|
|
235
|
-
return dimension;
|
|
236
|
-
}
|
|
237
|
-
generateRandomProjection(originalDim, targetDim) {
|
|
238
|
-
const matrix = new Float64Array(targetDim * originalDim);
|
|
239
|
-
const scale = Math.sqrt(1.0 / targetDim);
|
|
240
|
-
for (let i = 0; i < matrix.length; i++) {
|
|
241
|
-
// Gaussian random numbers using Box-Muller transform
|
|
242
|
-
const u1 = Math.random();
|
|
243
|
-
const u2 = Math.random();
|
|
244
|
-
const gaussian = Math.sqrt(-2 * Math.log(u1)) * Math.cos(2 * Math.PI * u2);
|
|
245
|
-
matrix[i] = gaussian * scale;
|
|
246
|
-
}
|
|
247
|
-
return matrix;
|
|
248
|
-
}
|
|
249
|
-
projectMatrix(matrix, projectionMatrix, targetDim) {
|
|
250
|
-
const result = new Float64Array(matrix.rows * targetDim);
|
|
251
|
-
if ('values' in matrix) {
|
|
252
|
-
// Sparse matrix projection
|
|
253
|
-
this.projectSparseMatrix(matrix, projectionMatrix, targetDim, result);
|
|
254
|
-
}
|
|
255
|
-
else {
|
|
256
|
-
// Dense matrix projection
|
|
257
|
-
this.projectDenseMatrix(matrix, projectionMatrix, targetDim, result);
|
|
258
|
-
}
|
|
259
|
-
return result;
|
|
260
|
-
}
|
|
261
|
-
projectDenseMatrix(matrix, projectionMatrix, targetDim, result) {
|
|
262
|
-
for (let i = 0; i < matrix.rows; i++) {
|
|
263
|
-
for (let j = 0; j < targetDim; j++) {
|
|
264
|
-
let sum = 0;
|
|
265
|
-
for (let k = 0; k < matrix.cols; k++) {
|
|
266
|
-
sum += matrix.data[i * matrix.cols + k] * projectionMatrix[j * matrix.cols + k];
|
|
267
|
-
}
|
|
268
|
-
result[i * targetDim + j] = sum;
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
projectSparseMatrix(matrix, projectionMatrix, targetDim, result) {
|
|
273
|
-
// Create dense rows for projection
|
|
274
|
-
for (let i = 0; i < matrix.rows; i++) {
|
|
275
|
-
const row = new Float64Array(matrix.cols);
|
|
276
|
-
// Fill row from sparse data
|
|
277
|
-
for (let k = 0; k < matrix.values.length; k++) {
|
|
278
|
-
if (matrix.rowIndices[k] === i) {
|
|
279
|
-
row[matrix.colIndices[k]] = matrix.values[k];
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
// Project row
|
|
283
|
-
for (let j = 0; j < targetDim; j++) {
|
|
284
|
-
let sum = 0;
|
|
285
|
-
for (let k = 0; k < matrix.cols; k++) {
|
|
286
|
-
sum += row[k] * projectionMatrix[j * matrix.cols + k];
|
|
287
|
-
}
|
|
288
|
-
result[i * targetDim + j] = sum;
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
projectVector(vector, projectionMatrix, targetDim) {
|
|
293
|
-
const result = new Float64Array(targetDim);
|
|
294
|
-
const originalDim = vector.length;
|
|
295
|
-
for (let i = 0; i < targetDim; i++) {
|
|
296
|
-
let sum = 0;
|
|
297
|
-
for (let j = 0; j < originalDim; j++) {
|
|
298
|
-
sum += projectionMatrix[i * originalDim + j] * vector[j];
|
|
299
|
-
}
|
|
300
|
-
result[i] = sum;
|
|
301
|
-
}
|
|
302
|
-
return result;
|
|
303
|
-
}
|
|
304
|
-
/**
|
|
305
|
-
* Apply spectral sparsification to maintain spectral properties
|
|
306
|
-
*/
|
|
307
|
-
applySparsification(matrix) {
|
|
308
|
-
const eps = this.config.sparsificationEps;
|
|
309
|
-
const sparsifiedData = new Float64Array(matrix.data.length);
|
|
310
|
-
// Calculate sampling probabilities based on leverage scores
|
|
311
|
-
const leverageScores = this.calculateLeverageScores(matrix);
|
|
312
|
-
for (let i = 0; i < matrix.data.length; i++) {
|
|
313
|
-
if (matrix.data[i] !== 0) {
|
|
314
|
-
const samplingProb = Math.min(1.0, leverageScores[i] * Math.log(matrix.rows) / eps);
|
|
315
|
-
if (Math.random() < samplingProb) {
|
|
316
|
-
sparsifiedData[i] = matrix.data[i] / samplingProb;
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
return {
|
|
321
|
-
data: sparsifiedData,
|
|
322
|
-
rows: matrix.rows,
|
|
323
|
-
cols: matrix.cols,
|
|
324
|
-
format: matrix.format
|
|
325
|
-
};
|
|
326
|
-
}
|
|
327
|
-
calculateLeverageScores(matrix) {
|
|
328
|
-
const scores = new Float64Array(matrix.data.length);
|
|
329
|
-
// Simplified leverage score calculation
|
|
330
|
-
for (let i = 0; i < matrix.rows; i++) {
|
|
331
|
-
let rowNormSq = 0;
|
|
332
|
-
for (let j = 0; j < matrix.cols; j++) {
|
|
333
|
-
const val = matrix.data[i * matrix.cols + j];
|
|
334
|
-
rowNormSq += val * val;
|
|
335
|
-
}
|
|
336
|
-
const rowNorm = Math.sqrt(rowNormSq);
|
|
337
|
-
for (let j = 0; j < matrix.cols; j++) {
|
|
338
|
-
scores[i * matrix.cols + j] = rowNorm > 0 ? Math.abs(matrix.data[i * matrix.cols + j]) / rowNorm : 0;
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
return scores;
|
|
342
|
-
}
|
|
343
|
-
/**
|
|
344
|
-
* Solve using iterative sublinear methods
|
|
345
|
-
*/
|
|
346
|
-
async solveIterative(matrix, vector) {
|
|
347
|
-
switch (this.config.method) {
|
|
348
|
-
case 'neumann':
|
|
349
|
-
return this.solveNeumann(matrix, vector);
|
|
350
|
-
case 'random-walk':
|
|
351
|
-
return this.solveRandomWalk(matrix, vector);
|
|
352
|
-
default:
|
|
353
|
-
return this.solveNeumann(matrix, vector);
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
async solveNeumann(matrix, vector) {
|
|
357
|
-
const n = matrix.rows;
|
|
358
|
-
const solution = new Float64Array(n);
|
|
359
|
-
let iterations = 0;
|
|
360
|
-
// Ensure vector length matches matrix dimensions
|
|
361
|
-
const workingVector = vector.length === n ? vector : this.padVector(vector, n);
|
|
362
|
-
// For diagonally dominant matrices, solve using Jacobi iteration
|
|
363
|
-
// This is more stable than Neumann series for general systems
|
|
364
|
-
// Extract diagonal
|
|
365
|
-
const diagonal = new Float64Array(n);
|
|
366
|
-
for (let i = 0; i < n; i++) {
|
|
367
|
-
diagonal[i] = matrix.data[i * matrix.cols + i];
|
|
368
|
-
if (Math.abs(diagonal[i]) < 1e-10) {
|
|
369
|
-
diagonal[i] = 1.0; // Prevent division by zero
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
// Jacobi iteration: x^(k+1) = D^(-1) * (b - (L+U) * x^(k))
|
|
373
|
-
let currentSolution = new Float64Array(n);
|
|
374
|
-
const maxIter = Math.min(this.config.maxIterations, Math.max(Math.ceil(Math.log(n) * 3), 20));
|
|
375
|
-
for (iterations = 0; iterations < maxIter; iterations++) {
|
|
376
|
-
const nextSolution = new Float64Array(n);
|
|
377
|
-
let maxChange = 0;
|
|
378
|
-
for (let i = 0; i < n; i++) {
|
|
379
|
-
let sum = workingVector[i];
|
|
380
|
-
// Subtract off-diagonal terms
|
|
381
|
-
for (let j = 0; j < matrix.cols; j++) {
|
|
382
|
-
if (i !== j && j < n) {
|
|
383
|
-
sum -= matrix.data[i * matrix.cols + j] * currentSolution[j];
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
// Divide by diagonal
|
|
387
|
-
nextSolution[i] = sum / diagonal[i];
|
|
388
|
-
if (!isNaN(nextSolution[i]) && isFinite(nextSolution[i])) {
|
|
389
|
-
maxChange = Math.max(maxChange, Math.abs(nextSolution[i] - currentSolution[i]));
|
|
390
|
-
}
|
|
391
|
-
else {
|
|
392
|
-
nextSolution[i] = 0;
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
currentSolution = nextSolution;
|
|
396
|
-
// Check convergence
|
|
397
|
-
if (maxChange < this.config.tolerance) {
|
|
398
|
-
break;
|
|
399
|
-
}
|
|
400
|
-
}
|
|
401
|
-
solution.set(currentSolution);
|
|
402
|
-
// Calculate residual with NaN protection
|
|
403
|
-
const residualVec = this.calculateResidual(matrix, solution, workingVector);
|
|
404
|
-
let residualSum = 0;
|
|
405
|
-
for (let i = 0; i < residualVec.length; i++) {
|
|
406
|
-
const val = residualVec[i];
|
|
407
|
-
if (!isNaN(val) && isFinite(val)) {
|
|
408
|
-
residualSum += val * val;
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
const residual = Math.sqrt(residualSum);
|
|
412
|
-
return { solution, iterations, residual: isNaN(residual) ? 0 : residual };
|
|
413
|
-
}
|
|
414
|
-
async solveRandomWalk(matrix, vector) {
|
|
415
|
-
const n = matrix.rows;
|
|
416
|
-
const solution = new Float64Array(n);
|
|
417
|
-
const numWalks = Math.ceil(Math.log(n));
|
|
418
|
-
// Monte Carlo random walks for matrix inversion
|
|
419
|
-
for (let walk = 0; walk < numWalks; walk++) {
|
|
420
|
-
const walkContribution = this.performRandomWalk(matrix, vector);
|
|
421
|
-
for (let i = 0; i < n; i++) {
|
|
422
|
-
solution[i] += walkContribution[i] / numWalks;
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
const residualVec = this.calculateResidual(matrix, solution, vector);
|
|
426
|
-
const residual = Math.sqrt(this.wasmAccelerator.dotProduct(residualVec, residualVec));
|
|
427
|
-
return { solution, iterations: numWalks, residual };
|
|
428
|
-
}
|
|
429
|
-
performRandomWalk(matrix, vector) {
|
|
430
|
-
const n = matrix.rows;
|
|
431
|
-
const result = new Float64Array(n);
|
|
432
|
-
const walkLength = Math.ceil(Math.log(n));
|
|
433
|
-
for (let start = 0; start < n; start++) {
|
|
434
|
-
let current = start;
|
|
435
|
-
let weight = 1.0;
|
|
436
|
-
for (let step = 0; step < walkLength; step++) {
|
|
437
|
-
// Random walk step based on matrix structure
|
|
438
|
-
const rowSum = this.getRowSum(matrix, current);
|
|
439
|
-
if (rowSum === 0)
|
|
440
|
-
break;
|
|
441
|
-
// Transition probabilities
|
|
442
|
-
const transition = Math.random() * rowSum;
|
|
443
|
-
let cumSum = 0;
|
|
444
|
-
for (let next = 0; next < matrix.cols; next++) {
|
|
445
|
-
cumSum += Math.abs(matrix.data[current * matrix.cols + next]);
|
|
446
|
-
if (cumSum >= transition) {
|
|
447
|
-
current = next % n;
|
|
448
|
-
weight *= matrix.data[current * matrix.cols + next] / rowSum;
|
|
449
|
-
break;
|
|
450
|
-
}
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
result[start] = weight * vector[current];
|
|
454
|
-
}
|
|
455
|
-
return result;
|
|
456
|
-
}
|
|
457
|
-
getRowSum(matrix, row) {
|
|
458
|
-
let sum = 0;
|
|
459
|
-
for (let col = 0; col < matrix.cols; col++) {
|
|
460
|
-
sum += Math.abs(matrix.data[row * matrix.cols + col]);
|
|
461
|
-
}
|
|
462
|
-
return sum;
|
|
463
|
-
}
|
|
464
|
-
calculateResidual(matrix, solution, vector) {
|
|
465
|
-
// Ensure solution length matches expected dimensions
|
|
466
|
-
const effectiveLength = Math.min(matrix.rows, solution.length);
|
|
467
|
-
const matrixSolution = this.wasmAccelerator.multiplyMatrixVector(matrix.data, solution.length === matrix.cols ? solution : this.padVector(solution, matrix.cols), matrix.rows, matrix.cols);
|
|
468
|
-
const residual = new Float64Array(effectiveLength);
|
|
469
|
-
for (let i = 0; i < effectiveLength; i++) {
|
|
470
|
-
const residualValue = vector[i] - (matrixSolution[i] || 0);
|
|
471
|
-
residual[i] = isNaN(residualValue) || !isFinite(residualValue) ? 0 : residualValue;
|
|
472
|
-
}
|
|
473
|
-
return residual;
|
|
474
|
-
}
|
|
475
|
-
padVector(vector, targetLength) {
|
|
476
|
-
if (vector.length >= targetLength) {
|
|
477
|
-
return vector.slice(0, targetLength);
|
|
478
|
-
}
|
|
479
|
-
const padded = new Float64Array(targetLength);
|
|
480
|
-
padded.set(vector);
|
|
481
|
-
return padded;
|
|
482
|
-
}
|
|
483
|
-
mapToOriginalSpace(solution, originalMatrix, reducedDim) {
|
|
484
|
-
// If no dimension reduction was applied, return as-is
|
|
485
|
-
if (reducedDim >= originalMatrix.cols) {
|
|
486
|
-
return solution;
|
|
487
|
-
}
|
|
488
|
-
// For now, return the reduced solution
|
|
489
|
-
// In a full implementation, this would involve the transpose of the projection
|
|
490
|
-
return solution;
|
|
491
|
-
}
|
|
492
|
-
calculateActualComplexity(timeMs, problemSize) {
|
|
493
|
-
// Normalize by problem size to get relative complexity
|
|
494
|
-
// Add small constant to prevent division issues with very fast operations
|
|
495
|
-
const safeTimeMs = Math.max(timeMs, 0.001);
|
|
496
|
-
const logN = Math.log(Math.max(problemSize, 2));
|
|
497
|
-
return safeTimeMs / logN;
|
|
498
|
-
}
|
|
499
|
-
validateInputs(matrix, vector) {
|
|
500
|
-
if (matrix.rows !== vector.length) {
|
|
501
|
-
throw new Error('Matrix rows must match vector length');
|
|
502
|
-
}
|
|
503
|
-
if (matrix.rows === 0 || matrix.cols === 0) {
|
|
504
|
-
throw new Error('Matrix must have non-zero dimensions');
|
|
505
|
-
}
|
|
506
|
-
}
|
|
507
|
-
/**
|
|
508
|
-
* Calculate temporal advantage for prediction scenarios
|
|
509
|
-
*/
|
|
510
|
-
calculateTemporalAdvantage(problemSize, distanceKm = 10900) {
|
|
511
|
-
// Speed of light: 299,792.458 km/s
|
|
512
|
-
const lightSpeedKmPerSec = 299792.458; // km/s
|
|
513
|
-
const lightTravelTimeSec = distanceKm / lightSpeedKmPerSec;
|
|
514
|
-
const lightTravelTimeMs = lightTravelTimeSec * 1000; // Convert to milliseconds
|
|
515
|
-
// Estimate computation time based on sublinear complexity
|
|
516
|
-
// Using empirical measurements from actual solver performance
|
|
517
|
-
const baseComputationMs = 0.05; // Base time for small problems (optimized)
|
|
518
|
-
const logFactor = Math.log(Math.max(problemSize, 2));
|
|
519
|
-
const computationTimeMs = baseComputationMs * logFactor;
|
|
520
|
-
const temporalAdvantageMs = lightTravelTimeMs - computationTimeMs;
|
|
521
|
-
const hasAdvantage = temporalAdvantageMs > 0;
|
|
522
|
-
return {
|
|
523
|
-
computationTimeMs,
|
|
524
|
-
lightTravelTimeMs,
|
|
525
|
-
temporalAdvantageMs,
|
|
526
|
-
hasAdvantage,
|
|
527
|
-
distanceKm
|
|
528
|
-
};
|
|
529
|
-
}
|
|
530
|
-
/**
|
|
531
|
-
* Benchmark solver performance across different problem sizes
|
|
532
|
-
*/
|
|
533
|
-
async benchmarkPerformance(sizes) {
|
|
534
|
-
const results = [];
|
|
535
|
-
for (const size of sizes) {
|
|
536
|
-
const matrix = this.generateTestMatrix(size);
|
|
537
|
-
const vector = this.generateTestVector(size);
|
|
538
|
-
const startTime = performance.now();
|
|
539
|
-
const result = await this.solveTrueSublinear(matrix, vector);
|
|
540
|
-
const endTime = performance.now();
|
|
541
|
-
const timeMs = Math.max(endTime - startTime, 0.001); // Ensure non-zero
|
|
542
|
-
const complexity = this.calculateActualComplexity(timeMs, size);
|
|
543
|
-
const isSublinear = result.complexityMetrics.isSublinear;
|
|
544
|
-
results.push({ size, timeMs, complexity, isSublinear });
|
|
545
|
-
}
|
|
546
|
-
return results;
|
|
547
|
-
}
|
|
548
|
-
generateTestMatrix(size) {
|
|
549
|
-
const data = new Float64Array(size * size);
|
|
550
|
-
// Generate diagonally dominant matrix for stability
|
|
551
|
-
for (let i = 0; i < size; i++) {
|
|
552
|
-
let rowSum = 0;
|
|
553
|
-
for (let j = 0; j < size; j++) {
|
|
554
|
-
if (i !== j) {
|
|
555
|
-
const val = (Math.random() - 0.5) * 0.2;
|
|
556
|
-
data[i * size + j] = val;
|
|
557
|
-
rowSum += Math.abs(val);
|
|
558
|
-
}
|
|
559
|
-
}
|
|
560
|
-
// Make diagonal dominant
|
|
561
|
-
data[i * size + i] = rowSum + 1 + Math.random();
|
|
562
|
-
}
|
|
563
|
-
return { data, rows: size, cols: size, format: 'dense' };
|
|
564
|
-
}
|
|
565
|
-
generateTestVector(size) {
|
|
566
|
-
const vector = new Float64Array(size);
|
|
567
|
-
for (let i = 0; i < size; i++) {
|
|
568
|
-
vector[i] = Math.random() * 2 - 1;
|
|
569
|
-
}
|
|
570
|
-
return vector;
|
|
571
|
-
}
|
|
572
|
-
/**
|
|
573
|
-
* Get solver capabilities and features
|
|
574
|
-
*/
|
|
575
|
-
getCapabilities() {
|
|
576
|
-
return {
|
|
577
|
-
wasmEnabled: this.wasmAccelerator.isEnabled(),
|
|
578
|
-
simdEnabled: this.wasmAccelerator.getFeatures().includes('simd'),
|
|
579
|
-
supportedMethods: ['neumann', 'random-walk', 'forward-push', 'backward-push'],
|
|
580
|
-
maxRecommendedSize: 10000
|
|
581
|
-
};
|
|
582
|
-
}
|
|
583
|
-
}
|
|
584
|
-
exports.SublinearMatrixSolver = SublinearMatrixSolver;
|
|
585
|
-
/**
|
|
586
|
-
* Factory function for creating matrix solver
|
|
587
|
-
*/
|
|
588
|
-
function createMatrixSolver(config = {}) {
|
|
589
|
-
return new SublinearMatrixSolver(config);
|
|
590
|
-
}
|
|
591
|
-
/**
|
|
592
|
-
* Utility functions for matrix operations
|
|
593
|
-
*/
|
|
594
|
-
class MatrixUtils {
|
|
595
|
-
static createDenseMatrix(data, format = 'row-major') {
|
|
596
|
-
const rows = data.length;
|
|
597
|
-
const cols = data[0]?.length || 0;
|
|
598
|
-
const flatData = new Float64Array(rows * cols);
|
|
599
|
-
if (format === 'row-major') {
|
|
600
|
-
for (let i = 0; i < rows; i++) {
|
|
601
|
-
for (let j = 0; j < cols; j++) {
|
|
602
|
-
flatData[i * cols + j] = data[i][j];
|
|
603
|
-
}
|
|
604
|
-
}
|
|
605
|
-
}
|
|
606
|
-
else {
|
|
607
|
-
for (let j = 0; j < cols; j++) {
|
|
608
|
-
for (let i = 0; i < rows; i++) {
|
|
609
|
-
flatData[j * rows + i] = data[i][j];
|
|
610
|
-
}
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
return { data: flatData, rows, cols, format: 'dense' };
|
|
614
|
-
}
|
|
615
|
-
static createSparseMatrix(values, rowIndices, colIndices, rows, cols) {
|
|
616
|
-
return {
|
|
617
|
-
values: new Float64Array(values),
|
|
618
|
-
rowIndices: new Int32Array(rowIndices),
|
|
619
|
-
colIndices: new Int32Array(colIndices),
|
|
620
|
-
rows,
|
|
621
|
-
cols
|
|
622
|
-
};
|
|
623
|
-
}
|
|
624
|
-
static createIdentityMatrix(size) {
|
|
625
|
-
const data = new Float64Array(size * size);
|
|
626
|
-
for (let i = 0; i < size; i++) {
|
|
627
|
-
data[i * size + i] = 1.0;
|
|
628
|
-
}
|
|
629
|
-
return { data, rows: size, cols: size, format: 'dense' };
|
|
630
|
-
}
|
|
631
|
-
static createRandomMatrix(rows, cols, sparsity = 0.1) {
|
|
632
|
-
const data = new Float64Array(rows * cols);
|
|
633
|
-
for (let i = 0; i < data.length; i++) {
|
|
634
|
-
if (Math.random() < sparsity) {
|
|
635
|
-
data[i] = (Math.random() - 0.5) * 2;
|
|
636
|
-
}
|
|
637
|
-
}
|
|
638
|
-
return { data, rows, cols, format: 'dense' };
|
|
639
|
-
}
|
|
640
|
-
}
|
|
641
|
-
exports.MatrixUtils = MatrixUtils;
|
|
642
|
-
//# sourceMappingURL=matrixSolver.js.map
|