agentic-qe 1.0.0 → 1.0.1
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/aqe-fleet.json +3 -3
- package/CHANGELOG.md +239 -0
- package/README.md +14 -1
- 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.map +1 -1
- package/dist/agents/BaseAgent.js +16 -0
- package/dist/agents/BaseAgent.js.map +1 -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/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 +64 -13
- package/dist/agents/TestExecutorAgent.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 +280 -0
- package/dist/cli/commands/agent/assign.js.map +1 -0
- package/dist/cli/commands/agent/attach.d.ts +87 -0
- package/dist/cli/commands/agent/attach.d.ts.map +1 -0
- package/dist/cli/commands/agent/attach.js +268 -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 +103 -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 +59 -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 +250 -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 +272 -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 +81 -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 +227 -0
- package/dist/cli/commands/agent/restart.js.map +1 -0
- 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 +94 -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 +119 -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 +138 -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 +171 -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 +40 -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 +45 -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 +133 -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 +155 -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 +175 -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 +377 -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 +317 -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 +366 -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 +243 -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 +315 -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 +89 -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 +407 -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 +81 -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 +256 -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 +358 -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 +224 -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 +136 -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 +100 -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 +280 -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 +67 -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 +297 -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 +87 -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 +365 -0
- package/dist/cli/commands/fleet/topology.js.map +1 -0
- 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 +70 -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 +25 -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 +74 -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 +105 -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 +157 -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 +199 -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 +167 -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 +147 -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 +147 -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 +125 -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 +137 -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 +347 -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 +123 -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 +222 -0
- package/dist/cli/commands/quality/validate.js.map +1 -0
- 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 +114 -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 +122 -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 +158 -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 +219 -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 +122 -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 +163 -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 +116 -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 +179 -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 +140 -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 +104 -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 +177 -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 +160 -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 +130 -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 +331 -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 +257 -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 +222 -0
- package/dist/cli/commands/workflow/pause.js.map +1 -0
- package/dist/cli/index.js +311 -0
- package/dist/cli/index.js.map +1 -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 +347 -0
- package/dist/core/ArtifactWorkflow.js.map +1 -0
- 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/coordination/BlackboardCoordination.d.ts +44 -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 +53 -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 +79 -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 +99 -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 +62 -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 +214 -0
- package/dist/core/hooks/RollbackManager.js.map +1 -0
- package/dist/core/hooks/VerificationHookManager.d.ts +134 -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 +93 -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 +136 -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 +97 -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 +227 -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 +213 -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 +216 -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 +1407 -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 +239 -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 +354 -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 +424 -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 +217 -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 +230 -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 +228 -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 +289 -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 +268 -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 +176 -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 +163 -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 +204 -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 +188 -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 +185 -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 +300 -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 +278 -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 +215 -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 +430 -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 +349 -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 +253 -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 +242 -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 +82 -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 +89 -0
- package/dist/mcp/server.js.map +1 -1
- package/dist/mcp/services/HookExecutor.d.ts +4 -1
- package/dist/mcp/services/HookExecutor.d.ts.map +1 -1
- 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/utils/Config.d.ts +4 -0
- package/dist/utils/Config.d.ts.map +1 -1
- package/dist/utils/Config.js +31 -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 +378 -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 +566 -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 +57 -0
- package/dist/utils/validation.js.map +1 -0
- package/package.json +15 -5
- 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,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Comprehensive Security Scanning
|
|
3
|
+
* SAST, DAST, SCA, and CVE monitoring with risk assessment
|
|
4
|
+
*/
|
|
5
|
+
export interface SecurityScanComprehensiveParams {
|
|
6
|
+
targets: string[];
|
|
7
|
+
scanTypes?: Array<'sast' | 'dast' | 'sca' | 'secrets' | 'dependencies'>;
|
|
8
|
+
severity?: Array<'critical' | 'high' | 'medium' | 'low'>;
|
|
9
|
+
includeCompliance?: boolean;
|
|
10
|
+
fixSuggestions?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface SecurityVulnerability {
|
|
13
|
+
id: string;
|
|
14
|
+
type: 'sast' | 'dast' | 'sca' | 'secrets' | 'dependencies';
|
|
15
|
+
severity: 'critical' | 'high' | 'medium' | 'low';
|
|
16
|
+
title: string;
|
|
17
|
+
description: string;
|
|
18
|
+
location: {
|
|
19
|
+
file: string;
|
|
20
|
+
line?: number;
|
|
21
|
+
column?: number;
|
|
22
|
+
};
|
|
23
|
+
cwe?: string;
|
|
24
|
+
cve?: string;
|
|
25
|
+
cvssScore?: number;
|
|
26
|
+
exploitability?: 'high' | 'medium' | 'low';
|
|
27
|
+
impact?: 'high' | 'medium' | 'low';
|
|
28
|
+
recommendation: string;
|
|
29
|
+
fixSuggestion?: string;
|
|
30
|
+
references?: string[];
|
|
31
|
+
}
|
|
32
|
+
export interface ComplianceCheck {
|
|
33
|
+
standard: 'OWASP' | 'GDPR' | 'SOC2' | 'PCI-DSS';
|
|
34
|
+
requirement: string;
|
|
35
|
+
status: 'compliant' | 'non-compliant' | 'partial';
|
|
36
|
+
findings: string[];
|
|
37
|
+
}
|
|
38
|
+
export interface SecurityScanComprehensiveResult {
|
|
39
|
+
vulnerabilities: SecurityVulnerability[];
|
|
40
|
+
summary: {
|
|
41
|
+
totalVulnerabilities: number;
|
|
42
|
+
critical: number;
|
|
43
|
+
high: number;
|
|
44
|
+
medium: number;
|
|
45
|
+
low: number;
|
|
46
|
+
scanDuration: number;
|
|
47
|
+
};
|
|
48
|
+
riskScore: {
|
|
49
|
+
overall: number;
|
|
50
|
+
breakdown: {
|
|
51
|
+
sast: number;
|
|
52
|
+
dast: number;
|
|
53
|
+
sca: number;
|
|
54
|
+
secrets: number;
|
|
55
|
+
dependencies: number;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
compliance?: ComplianceCheck[];
|
|
59
|
+
recommendations: string[];
|
|
60
|
+
timestamp: string;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Run comprehensive security scan with SAST, DAST, and SCA
|
|
64
|
+
*/
|
|
65
|
+
export declare function securityScanComprehensive(params: SecurityScanComprehensiveParams): Promise<SecurityScanComprehensiveResult>;
|
|
66
|
+
//# sourceMappingURL=securityScanComprehensive.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"securityScanComprehensive.d.ts","sourceRoot":"","sources":["../../../../src/mcp/handlers/analysis/securityScanComprehensive.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,+BAA+B;IAC9C,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,SAAS,GAAG,cAAc,CA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B,EAAE,MAAM,CAAC;QAC7B,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,GAAG,EAAE,MAAM,CAAC;QACZ,YAAY,EAAE,MAAM,CAAC;KACtB,CAAC;IACF,SAAS,EAAE;QACT,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,EAAE;YACT,IAAI,EAAE,MAAM,CAAC;YACb,IAAI,EAAE,MAAM,CAAC;YACb,GAAG,EAAE,MAAM,CAAC;YACZ,OAAO,EAAE,MAAM,CAAC;YAChB,YAAY,EAAE,MAAM,CAAC;SACtB,CAAC;KACH,CAAC;IACF,UAAU,CAAC,EAAE,eAAe,EAAE,CAAC;IAC/B,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,wBAAsB,yBAAyB,CAC7C,MAAM,EAAE,+BAA+B,GACtC,OAAO,CAAC,+BAA+B,CAAC,CAwE1C"}
|
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Comprehensive Security Scanning
|
|
4
|
+
* SAST, DAST, SCA, and CVE monitoring with risk assessment
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.securityScanComprehensive = void 0;
|
|
8
|
+
/**
|
|
9
|
+
* Run comprehensive security scan with SAST, DAST, and SCA
|
|
10
|
+
*/
|
|
11
|
+
async function securityScanComprehensive(params) {
|
|
12
|
+
const startTime = Date.now();
|
|
13
|
+
const { targets, scanTypes = ['sast', 'dast', 'sca', 'secrets', 'dependencies'], severity = ['critical', 'high', 'medium', 'low'], includeCompliance = false, fixSuggestions = true } = params;
|
|
14
|
+
const vulnerabilities = [];
|
|
15
|
+
// Run SAST (Static Application Security Testing)
|
|
16
|
+
if (scanTypes.includes('sast')) {
|
|
17
|
+
const sastVulns = await runSASTScan(targets, severity, fixSuggestions);
|
|
18
|
+
vulnerabilities.push(...sastVulns);
|
|
19
|
+
}
|
|
20
|
+
// Run DAST (Dynamic Application Security Testing)
|
|
21
|
+
if (scanTypes.includes('dast')) {
|
|
22
|
+
const dastVulns = await runDASTScan(targets, severity, fixSuggestions);
|
|
23
|
+
vulnerabilities.push(...dastVulns);
|
|
24
|
+
}
|
|
25
|
+
// Run SCA (Software Composition Analysis)
|
|
26
|
+
if (scanTypes.includes('sca')) {
|
|
27
|
+
const scaVulns = await runSCAScan(targets, severity, fixSuggestions);
|
|
28
|
+
vulnerabilities.push(...scaVulns);
|
|
29
|
+
}
|
|
30
|
+
// Run Secrets Detection
|
|
31
|
+
if (scanTypes.includes('secrets')) {
|
|
32
|
+
const secretVulns = await runSecretsDetection(targets, fixSuggestions);
|
|
33
|
+
vulnerabilities.push(...secretVulns);
|
|
34
|
+
}
|
|
35
|
+
// Run Dependency Scanning
|
|
36
|
+
if (scanTypes.includes('dependencies')) {
|
|
37
|
+
const depVulns = await runDependencyScan(targets, severity, fixSuggestions);
|
|
38
|
+
vulnerabilities.push(...depVulns);
|
|
39
|
+
}
|
|
40
|
+
// Calculate risk score
|
|
41
|
+
const riskScore = calculateRiskScore(vulnerabilities);
|
|
42
|
+
// Run compliance checks if requested
|
|
43
|
+
let compliance;
|
|
44
|
+
if (includeCompliance) {
|
|
45
|
+
compliance = await runComplianceChecks(vulnerabilities);
|
|
46
|
+
}
|
|
47
|
+
// Generate recommendations
|
|
48
|
+
const recommendations = generateSecurityRecommendations(vulnerabilities, riskScore);
|
|
49
|
+
// Calculate summary
|
|
50
|
+
const summary = {
|
|
51
|
+
totalVulnerabilities: vulnerabilities.length,
|
|
52
|
+
critical: vulnerabilities.filter(v => v.severity === 'critical').length,
|
|
53
|
+
high: vulnerabilities.filter(v => v.severity === 'high').length,
|
|
54
|
+
medium: vulnerabilities.filter(v => v.severity === 'medium').length,
|
|
55
|
+
low: vulnerabilities.filter(v => v.severity === 'low').length,
|
|
56
|
+
scanDuration: Date.now() - startTime
|
|
57
|
+
};
|
|
58
|
+
return {
|
|
59
|
+
vulnerabilities,
|
|
60
|
+
summary,
|
|
61
|
+
riskScore,
|
|
62
|
+
compliance,
|
|
63
|
+
recommendations,
|
|
64
|
+
timestamp: new Date().toISOString()
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
exports.securityScanComprehensive = securityScanComprehensive;
|
|
68
|
+
async function runSASTScan(targets, severity, fixSuggestions) {
|
|
69
|
+
const vulnerabilities = [];
|
|
70
|
+
// Simulate SAST findings
|
|
71
|
+
targets.forEach(target => {
|
|
72
|
+
// SQL Injection
|
|
73
|
+
if (Math.random() > 0.7) {
|
|
74
|
+
vulnerabilities.push({
|
|
75
|
+
id: `SAST-${Date.now()}-${Math.random()}`,
|
|
76
|
+
type: 'sast',
|
|
77
|
+
severity: 'high',
|
|
78
|
+
title: 'SQL Injection Vulnerability',
|
|
79
|
+
description: 'Unsanitized user input used in SQL query',
|
|
80
|
+
location: { file: target, line: Math.floor(Math.random() * 100) + 1 },
|
|
81
|
+
cwe: 'CWE-89',
|
|
82
|
+
cvssScore: 8.5,
|
|
83
|
+
exploitability: 'high',
|
|
84
|
+
impact: 'high',
|
|
85
|
+
recommendation: 'Use parameterized queries or ORM',
|
|
86
|
+
fixSuggestion: fixSuggestions
|
|
87
|
+
? 'Replace string concatenation with prepared statements: db.query("SELECT * FROM users WHERE id = ?", [userId])'
|
|
88
|
+
: undefined,
|
|
89
|
+
references: ['https://owasp.org/www-community/attacks/SQL_Injection']
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
// XSS
|
|
93
|
+
if (Math.random() > 0.6) {
|
|
94
|
+
vulnerabilities.push({
|
|
95
|
+
id: `SAST-${Date.now()}-${Math.random()}`,
|
|
96
|
+
type: 'sast',
|
|
97
|
+
severity: 'medium',
|
|
98
|
+
title: 'Cross-Site Scripting (XSS)',
|
|
99
|
+
description: 'Unescaped user input rendered in HTML',
|
|
100
|
+
location: { file: target, line: Math.floor(Math.random() * 100) + 1 },
|
|
101
|
+
cwe: 'CWE-79',
|
|
102
|
+
cvssScore: 6.5,
|
|
103
|
+
exploitability: 'medium',
|
|
104
|
+
impact: 'medium',
|
|
105
|
+
recommendation: 'Sanitize and escape user input before rendering',
|
|
106
|
+
fixSuggestion: fixSuggestions
|
|
107
|
+
? 'Use DOMPurify.sanitize(userInput) or framework-specific escaping'
|
|
108
|
+
: undefined,
|
|
109
|
+
references: ['https://owasp.org/www-community/attacks/xss/']
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
return vulnerabilities;
|
|
114
|
+
}
|
|
115
|
+
async function runDASTScan(targets, severity, fixSuggestions) {
|
|
116
|
+
const vulnerabilities = [];
|
|
117
|
+
// Simulate DAST findings
|
|
118
|
+
targets.forEach(target => {
|
|
119
|
+
// Missing Security Headers
|
|
120
|
+
if (Math.random() > 0.5) {
|
|
121
|
+
vulnerabilities.push({
|
|
122
|
+
id: `DAST-${Date.now()}-${Math.random()}`,
|
|
123
|
+
type: 'dast',
|
|
124
|
+
severity: 'low',
|
|
125
|
+
title: 'Missing Security Headers',
|
|
126
|
+
description: 'Application missing security headers (CSP, X-Frame-Options)',
|
|
127
|
+
location: { file: target },
|
|
128
|
+
cwe: 'CWE-16',
|
|
129
|
+
cvssScore: 3.5,
|
|
130
|
+
exploitability: 'low',
|
|
131
|
+
impact: 'low',
|
|
132
|
+
recommendation: 'Implement security headers in HTTP responses',
|
|
133
|
+
fixSuggestion: fixSuggestions
|
|
134
|
+
? 'Add headers: Content-Security-Policy, X-Frame-Options, X-Content-Type-Options'
|
|
135
|
+
: undefined,
|
|
136
|
+
references: ['https://owasp.org/www-project-secure-headers/']
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
// Insecure Authentication
|
|
140
|
+
if (Math.random() > 0.8) {
|
|
141
|
+
vulnerabilities.push({
|
|
142
|
+
id: `DAST-${Date.now()}-${Math.random()}`,
|
|
143
|
+
type: 'dast',
|
|
144
|
+
severity: 'critical',
|
|
145
|
+
title: 'Weak Authentication Mechanism',
|
|
146
|
+
description: 'Authentication endpoint vulnerable to brute force',
|
|
147
|
+
location: { file: target },
|
|
148
|
+
cwe: 'CWE-307',
|
|
149
|
+
cvssScore: 9.1,
|
|
150
|
+
exploitability: 'high',
|
|
151
|
+
impact: 'high',
|
|
152
|
+
recommendation: 'Implement rate limiting and account lockout',
|
|
153
|
+
fixSuggestion: fixSuggestions
|
|
154
|
+
? 'Add rate limiting middleware and implement exponential backoff'
|
|
155
|
+
: undefined,
|
|
156
|
+
references: ['https://owasp.org/www-community/controls/Blocking_Brute_Force_Attacks']
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
});
|
|
160
|
+
return vulnerabilities;
|
|
161
|
+
}
|
|
162
|
+
async function runSCAScan(targets, severity, fixSuggestions) {
|
|
163
|
+
const vulnerabilities = [];
|
|
164
|
+
// Simulate SCA findings
|
|
165
|
+
targets.forEach(target => {
|
|
166
|
+
if (Math.random() > 0.6) {
|
|
167
|
+
vulnerabilities.push({
|
|
168
|
+
id: `SCA-${Date.now()}-${Math.random()}`,
|
|
169
|
+
type: 'sca',
|
|
170
|
+
severity: 'high',
|
|
171
|
+
title: 'Vulnerable Third-Party Library',
|
|
172
|
+
description: 'Using library with known security vulnerability',
|
|
173
|
+
location: { file: 'package.json' },
|
|
174
|
+
cve: 'CVE-2023-12345',
|
|
175
|
+
cvssScore: 7.8,
|
|
176
|
+
exploitability: 'medium',
|
|
177
|
+
impact: 'high',
|
|
178
|
+
recommendation: 'Update to patched version',
|
|
179
|
+
fixSuggestion: fixSuggestions
|
|
180
|
+
? 'npm update <package> to version X.Y.Z or higher'
|
|
181
|
+
: undefined,
|
|
182
|
+
references: ['https://nvd.nist.gov/vuln/detail/CVE-2023-12345']
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
return vulnerabilities;
|
|
187
|
+
}
|
|
188
|
+
async function runSecretsDetection(targets, fixSuggestions) {
|
|
189
|
+
const vulnerabilities = [];
|
|
190
|
+
// Simulate secrets detection
|
|
191
|
+
targets.forEach(target => {
|
|
192
|
+
if (Math.random() > 0.9) {
|
|
193
|
+
vulnerabilities.push({
|
|
194
|
+
id: `SECRET-${Date.now()}-${Math.random()}`,
|
|
195
|
+
type: 'secrets',
|
|
196
|
+
severity: 'critical',
|
|
197
|
+
title: 'Hardcoded Credentials Detected',
|
|
198
|
+
description: 'API key or password found in source code',
|
|
199
|
+
location: { file: target, line: Math.floor(Math.random() * 100) + 1 },
|
|
200
|
+
cwe: 'CWE-798',
|
|
201
|
+
cvssScore: 9.5,
|
|
202
|
+
exploitability: 'high',
|
|
203
|
+
impact: 'high',
|
|
204
|
+
recommendation: 'Remove hardcoded secrets and use environment variables',
|
|
205
|
+
fixSuggestion: fixSuggestions
|
|
206
|
+
? 'Move secrets to .env file and use process.env.SECRET_KEY'
|
|
207
|
+
: undefined,
|
|
208
|
+
references: ['https://owasp.org/www-community/vulnerabilities/Use_of_hard-coded_password']
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
});
|
|
212
|
+
return vulnerabilities;
|
|
213
|
+
}
|
|
214
|
+
async function runDependencyScan(targets, severity, fixSuggestions) {
|
|
215
|
+
const vulnerabilities = [];
|
|
216
|
+
// Simulate dependency scan
|
|
217
|
+
if (Math.random() > 0.7) {
|
|
218
|
+
vulnerabilities.push({
|
|
219
|
+
id: `DEP-${Date.now()}-${Math.random()}`,
|
|
220
|
+
type: 'dependencies',
|
|
221
|
+
severity: 'medium',
|
|
222
|
+
title: 'Outdated Dependency with Security Patches',
|
|
223
|
+
description: 'Dependency has security patches available in newer versions',
|
|
224
|
+
location: { file: 'package.json' },
|
|
225
|
+
cvssScore: 5.5,
|
|
226
|
+
exploitability: 'low',
|
|
227
|
+
impact: 'medium',
|
|
228
|
+
recommendation: 'Update to latest stable version',
|
|
229
|
+
fixSuggestion: fixSuggestions
|
|
230
|
+
? 'Run: npm audit fix --force'
|
|
231
|
+
: undefined,
|
|
232
|
+
references: []
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
return vulnerabilities;
|
|
236
|
+
}
|
|
237
|
+
function calculateRiskScore(vulnerabilities) {
|
|
238
|
+
const weights = {
|
|
239
|
+
critical: 10,
|
|
240
|
+
high: 7,
|
|
241
|
+
medium: 4,
|
|
242
|
+
low: 1
|
|
243
|
+
};
|
|
244
|
+
const breakdown = {
|
|
245
|
+
sast: 0,
|
|
246
|
+
dast: 0,
|
|
247
|
+
sca: 0,
|
|
248
|
+
secrets: 0,
|
|
249
|
+
dependencies: 0
|
|
250
|
+
};
|
|
251
|
+
vulnerabilities.forEach(vuln => {
|
|
252
|
+
const score = weights[vuln.severity];
|
|
253
|
+
breakdown[vuln.type] += score;
|
|
254
|
+
});
|
|
255
|
+
const overall = Object.values(breakdown).reduce((sum, val) => sum + val, 0);
|
|
256
|
+
return {
|
|
257
|
+
overall: Math.min(overall, 100),
|
|
258
|
+
breakdown
|
|
259
|
+
};
|
|
260
|
+
}
|
|
261
|
+
async function runComplianceChecks(vulnerabilities) {
|
|
262
|
+
const checks = [];
|
|
263
|
+
// OWASP Top 10
|
|
264
|
+
checks.push({
|
|
265
|
+
standard: 'OWASP',
|
|
266
|
+
requirement: 'A03:2021 – Injection',
|
|
267
|
+
status: vulnerabilities.some(v => v.cwe === 'CWE-89') ? 'non-compliant' : 'compliant',
|
|
268
|
+
findings: vulnerabilities.filter(v => v.cwe === 'CWE-89').map(v => v.title)
|
|
269
|
+
});
|
|
270
|
+
// GDPR
|
|
271
|
+
checks.push({
|
|
272
|
+
standard: 'GDPR',
|
|
273
|
+
requirement: 'Article 32 - Security of Processing',
|
|
274
|
+
status: vulnerabilities.filter(v => v.severity === 'critical').length > 0 ? 'non-compliant' : 'compliant',
|
|
275
|
+
findings: vulnerabilities.filter(v => v.severity === 'critical').map(v => v.title)
|
|
276
|
+
});
|
|
277
|
+
return checks;
|
|
278
|
+
}
|
|
279
|
+
function generateSecurityRecommendations(vulnerabilities, riskScore) {
|
|
280
|
+
const recommendations = [];
|
|
281
|
+
const critical = vulnerabilities.filter(v => v.severity === 'critical');
|
|
282
|
+
if (critical.length > 0) {
|
|
283
|
+
recommendations.push(`URGENT: ${critical.length} critical vulnerabilities require immediate attention`);
|
|
284
|
+
}
|
|
285
|
+
if (riskScore.overall > 50) {
|
|
286
|
+
recommendations.push('Overall risk score is high. Prioritize security remediation');
|
|
287
|
+
}
|
|
288
|
+
const secrets = vulnerabilities.filter(v => v.type === 'secrets');
|
|
289
|
+
if (secrets.length > 0) {
|
|
290
|
+
recommendations.push('Rotate all exposed credentials immediately');
|
|
291
|
+
}
|
|
292
|
+
if (vulnerabilities.length > 20) {
|
|
293
|
+
recommendations.push('Consider implementing automated security testing in CI/CD pipeline');
|
|
294
|
+
}
|
|
295
|
+
if (recommendations.length === 0) {
|
|
296
|
+
recommendations.push('No critical security issues detected. Maintain regular security scans');
|
|
297
|
+
}
|
|
298
|
+
return recommendations;
|
|
299
|
+
}
|
|
300
|
+
//# sourceMappingURL=securityScanComprehensive.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"securityScanComprehensive.js","sourceRoot":"","sources":["../../../../src/mcp/handlers/analysis/securityScanComprehensive.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AA+DH;;GAEG;AACI,KAAK,UAAU,yBAAyB,CAC7C,MAAuC;IAEvC,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IAC7B,MAAM,EACJ,OAAO,EACP,SAAS,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,cAAc,CAAC,EAC9D,QAAQ,GAAG,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,EAChD,iBAAiB,GAAG,KAAK,EACzB,cAAc,GAAG,IAAI,EACtB,GAAG,MAAM,CAAC;IAEX,MAAM,eAAe,GAA4B,EAAE,CAAC;IA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e,CAAC,IAAI,CAAC,WAAW,QAAQ,CAAC,MAAM,uDAAuD,CAAC,CAAC;IAC1G,CAAC;IAED,IAAI,SAAS,CAAC,OAAO,GAAG,EAAE,EAAE,CAAC;QAC3B,eAAe,CAAC,IAAI,CAAC,6DAA6D,CAAC,CAAC;IACtF,CAAC;IAED,MAAM,OAAO,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC;IAClE,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACvB,eAAe,CAAC,IAAI,CAAC,4CAA4C,CAAC,CAAC;IACrE,CAAC;IAED,IAAI,eAAe,CAAC,MAAM,GAAG,EAAE,EAAE,CAAC;QAChC,eAAe,CAAC,IAAI,CAAC,oEAAoE,CAAC,CAAC;IAC7F,CAAC;IAED,IAAI,eAAe,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACjC,eAAe,CAAC,IAAI,CAAC,uEAAuE,CAAC,CAAC;IAChG,CAAC;IAED,OAAO,eAAe,CAAC;AACzB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Chaos Inject Failure Handler
|
|
3
|
+
* Real fault injection for various failure types (errors, timeouts, connection issues)
|
|
4
|
+
*/
|
|
5
|
+
import type { ChaosFailureConfig, ChaosInjectionResult, ActiveInjection } from '../../types/chaos';
|
|
6
|
+
/**
|
|
7
|
+
* Main handler for chaos failure injection
|
|
8
|
+
*/
|
|
9
|
+
export declare function chaosInjectFailure(config: ChaosFailureConfig): Promise<ChaosInjectionResult>;
|
|
10
|
+
/**
|
|
11
|
+
* Get active failure injections
|
|
12
|
+
*/
|
|
13
|
+
export declare function getActiveFailureInjections(): ActiveInjection[];
|
|
14
|
+
/**
|
|
15
|
+
* Clean up expired injections
|
|
16
|
+
*/
|
|
17
|
+
export declare function cleanupExpiredInjections(): void;
|
|
18
|
+
//# sourceMappingURL=chaos-inject-failure.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chaos-inject-failure.d.ts","sourceRoot":"","sources":["../../../../src/mcp/handlers/chaos/chaos-inject-failure.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EACV,kBAAkB,EAClB,oBAAoB,EACpB,eAAe,EAEhB,MAAM,mBAAmB,CAAC;AA4M3B;;GAEG;AACH,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,kBAAkB,GACzB,OAAO,CAAC,oBAAoB,CAAC,CAkG/B;AAED;;GAEG;AACH,wBAAgB,0BAA0B,IAAI,eAAe,EAAE,CAE9D;AAED;;GAEG;AACH,wBAAgB,wBAAwB,IAAI,IAAI,CAS/C"}
|