claude-flow 2.7.0 → 2.7.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/CHANGELOG.md +42 -0
- package/README.md +83 -22
- package/bin/claude-flow +1 -1
- package/dist/src/cli/commands/memory.js +64 -1
- package/dist/src/cli/commands/memory.js.map +1 -1
- package/dist/src/cli/help-formatter.js +3 -5
- package/dist/src/cli/help-formatter.js.map +1 -1
- package/dist/src/cli/simple-cli.js +104 -0
- package/dist/src/cli/simple-cli.js.map +1 -1
- package/dist/src/cli/validation-helper.js.map +1 -1
- package/dist/src/core/version.js +1 -1
- package/dist/src/core/version.js.map +1 -1
- package/dist/src/mcp/mcp-server.js +261 -3
- package/dist/src/mcp/mcp-server.js.map +1 -1
- package/dist/src/memory/agentdb-adapter.js +214 -0
- package/dist/src/memory/agentdb-adapter.js.map +1 -0
- package/dist/src/memory/backends/agentdb.js +234 -0
- package/dist/src/memory/backends/agentdb.js.map +1 -0
- package/dist/src/memory/index.js +11 -2
- package/dist/src/memory/index.js.map +1 -1
- package/dist/src/memory/migration/legacy-bridge.js +222 -0
- package/dist/src/memory/migration/legacy-bridge.js.map +1 -0
- package/dist/src/memory/swarm-memory.js +421 -340
- package/dist/src/memory/swarm-memory.js.map +1 -1
- package/dist/src/utils/metrics-reader.js +41 -29
- package/dist/src/utils/metrics-reader.js.map +1 -1
- package/docs/.claude-flow/metrics/performance.json +80 -2
- package/docs/.claude-flow/metrics/task-metrics.json +3 -3
- package/docs/INDEX.md +37 -12
- package/docs/README.md +92 -4
- package/docs/agentdb/AGENT3_FINAL_REPORT.md +643 -0
- package/docs/agentdb/AGENT3_SUMMARY.md +354 -0
- package/docs/agentdb/AGENTDB_INTEGRATION_PLAN.md +1258 -0
- package/docs/agentdb/BACKWARD_COMPATIBILITY_GUARANTEE.md +421 -0
- package/docs/agentdb/OPTIMIZATION_REPORT.md +360 -0
- package/docs/agentdb/PRODUCTION_READINESS.md +499 -0
- package/docs/agentdb/PUBLISHING_CHECKLIST.md +364 -0
- package/docs/agentdb/README.md +58 -0
- package/docs/agentdb/SWARM_COORDINATION.md +393 -0
- package/docs/agentdb/SWARM_IMPLEMENTATION_COMPLETE.md +538 -0
- package/docs/agentdb/agentdb-integration-summary.md +331 -0
- package/docs/agentdb/benchmarks/baseline-report.json +75 -0
- package/docs/development/AGENT1_COMPLETION_REPORT.md +466 -0
- package/docs/development/README.md +22 -0
- package/docs/fixes/PATTERN_FIX_CONFIRMATION.md +513 -0
- package/docs/fixes/PATTERN_PERSISTENCE_FIX.md +328 -0
- package/docs/fixes/README.md +33 -0
- package/docs/guides/README.md +29 -0
- package/docs/{skills-tutorial.md → guides/skills-tutorial.md} +2 -2
- package/docs/integrations/agentic-flow/INTEGRATION-TEST-v1.7.1.md +419 -0
- package/docs/integrations/agentic-flow/MIGRATION_v1.7.0.md +381 -0
- package/docs/integrations/agentic-flow/README.md +229 -0
- package/docs/integrations/agentic-flow/RELEASE-v1.7.0.md +348 -0
- package/docs/integrations/agentic-flow/RELEASE-v1.7.1.md +547 -0
- package/docs/integrations/agentic-flow/VERIFICATION-v1.7.4.md +556 -0
- package/docs/performance/README.md +31 -0
- package/docs/releases/ALPHA_TAG_UPDATE.md +150 -0
- package/docs/releases/README.md +25 -0
- package/docs/{RELEASE-NOTES-v2.7.0-alpha.10.md → releases/v2.7.0-alpha.10/RELEASE-NOTES-v2.7.0-alpha.10.md} +1 -1
- package/docs/releases/v2.7.1/RELEASE_SUMMARY_v2.7.1.md +340 -0
- package/docs/releases/v2.7.1/RELEASE_v2.7.1.md +244 -0
- package/docs/validation/DOCKER_VERIFICATION_REPORT.md +371 -0
- package/docs/validation/README.md +25 -0
- package/docs/validation/REGRESSION_ANALYSIS_v2.7.1.md +357 -0
- package/package.json +4 -3
- package/scripts/fix-agentdb-imports.sh +18 -0
- package/scripts/run-docker-regression.sh +101 -0
- package/scripts/verify-agentdb-integration.sh +220 -0
- package/src/cli/commands/memory.ts +95 -1
- package/src/mcp/mcp-server.js +302 -2
- package/src/memory/README-AGENTDB.md +366 -0
- package/src/memory/agentdb-adapter.js +373 -0
- package/src/memory/backends/agentdb.js +360 -0
- package/src/memory/index.js +32 -3
- package/src/memory/migration/legacy-bridge.js +330 -0
- package/dist/agents/agent-loader.d.ts +0 -103
- package/dist/agents/agent-loader.d.ts.map +0 -1
- package/dist/agents/agent-loader.js +0 -220
- package/dist/agents/agent-loader.js.map +0 -1
- package/dist/agents/agent-manager.d.ts +0 -191
- package/dist/agents/agent-manager.d.ts.map +0 -1
- package/dist/agents/agent-manager.js +0 -1405
- package/dist/agents/agent-manager.js.map +0 -1
- package/dist/api/claude-api-errors.d.ts +0 -115
- package/dist/api/claude-api-errors.d.ts.map +0 -1
- package/dist/api/claude-api-errors.js +0 -198
- package/dist/api/claude-api-errors.js.map +0 -1
- package/dist/api/claude-client.d.ts +0 -197
- package/dist/api/claude-client.d.ts.map +0 -1
- package/dist/api/claude-client.js +0 -525
- package/dist/api/claude-client.js.map +0 -1
- package/dist/cli/cli-core.d.ts +0 -52
- package/dist/cli/cli-core.d.ts.map +0 -1
- package/dist/cli/cli-core.js +0 -264
- package/dist/cli/cli-core.js.map +0 -1
- package/dist/cli/command-registry.d.ts +0 -10
- package/dist/cli/command-registry.d.ts.map +0 -1
- package/dist/cli/command-registry.js +0 -1126
- package/dist/cli/command-registry.js.map +0 -1
- package/dist/cli/commander-fix.d.ts +0 -4
- package/dist/cli/commander-fix.d.ts.map +0 -1
- package/dist/cli/commander-fix.js +0 -6
- package/dist/cli/commander-fix.js.map +0 -1
- package/dist/cli/commands/agent.d.ts +0 -6
- package/dist/cli/commands/agent.d.ts.map +0 -1
- package/dist/cli/commands/agent.js +0 -382
- package/dist/cli/commands/agent.js.map +0 -1
- package/dist/cli/commands/config.d.ts +0 -4
- package/dist/cli/commands/config.d.ts.map +0 -1
- package/dist/cli/commands/config.js +0 -88
- package/dist/cli/commands/config.js.map +0 -1
- package/dist/cli/commands/enterprise.d.ts +0 -3
- package/dist/cli/commands/enterprise.d.ts.map +0 -1
- package/dist/cli/commands/enterprise.js +0 -1506
- package/dist/cli/commands/enterprise.js.map +0 -1
- package/dist/cli/commands/help.d.ts +0 -6
- package/dist/cli/commands/help.d.ts.map +0 -1
- package/dist/cli/commands/help.js +0 -936
- package/dist/cli/commands/help.js.map +0 -1
- package/dist/cli/commands/hive-mind/index.d.ts +0 -18
- package/dist/cli/commands/hive-mind/index.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/index.js +0 -30
- package/dist/cli/commands/hive-mind/index.js.map +0 -1
- package/dist/cli/commands/hive-mind/init.d.ts +0 -9
- package/dist/cli/commands/hive-mind/init.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/init.js +0 -68
- package/dist/cli/commands/hive-mind/init.js.map +0 -1
- package/dist/cli/commands/hive-mind/pause.d.ts +0 -8
- package/dist/cli/commands/hive-mind/pause.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/pause.js +0 -81
- package/dist/cli/commands/hive-mind/pause.js.map +0 -1
- package/dist/cli/commands/hive-mind/ps.d.ts +0 -8
- package/dist/cli/commands/hive-mind/ps.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/ps.js +0 -120
- package/dist/cli/commands/hive-mind/ps.js.map +0 -1
- package/dist/cli/commands/hive-mind/resume.d.ts +0 -8
- package/dist/cli/commands/hive-mind/resume.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/resume.js +0 -62
- package/dist/cli/commands/hive-mind/resume.js.map +0 -1
- package/dist/cli/commands/hive-mind/spawn.d.ts +0 -9
- package/dist/cli/commands/hive-mind/spawn.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/spawn.js +0 -174
- package/dist/cli/commands/hive-mind/spawn.js.map +0 -1
- package/dist/cli/commands/hive-mind/status.d.ts +0 -9
- package/dist/cli/commands/hive-mind/status.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/status.js +0 -204
- package/dist/cli/commands/hive-mind/status.js.map +0 -1
- package/dist/cli/commands/hive-mind/stop.d.ts +0 -8
- package/dist/cli/commands/hive-mind/stop.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/stop.js +0 -125
- package/dist/cli/commands/hive-mind/stop.js.map +0 -1
- package/dist/cli/commands/hive-mind/task.d.ts +0 -9
- package/dist/cli/commands/hive-mind/task.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/task.js +0 -294
- package/dist/cli/commands/hive-mind/task.js.map +0 -1
- package/dist/cli/commands/hive-mind/wizard.d.ts +0 -9
- package/dist/cli/commands/hive-mind/wizard.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/wizard.js +0 -531
- package/dist/cli/commands/hive-mind/wizard.js.map +0 -1
- package/dist/cli/commands/hive.d.ts +0 -6
- package/dist/cli/commands/hive.d.ts.map +0 -1
- package/dist/cli/commands/hive.js +0 -409
- package/dist/cli/commands/hive.js.map +0 -1
- package/dist/cli/commands/index.d.ts +0 -3
- package/dist/cli/commands/index.d.ts.map +0 -1
- package/dist/cli/commands/index.js +0 -2624
- package/dist/cli/commands/index.js.map +0 -1
- package/dist/cli/commands/mcp.d.ts +0 -5
- package/dist/cli/commands/mcp.d.ts.map +0 -1
- package/dist/cli/commands/mcp.js +0 -169
- package/dist/cli/commands/mcp.js.map +0 -1
- package/dist/cli/commands/memory.d.ts +0 -26
- package/dist/cli/commands/memory.d.ts.map +0 -1
- package/dist/cli/commands/memory.js +0 -225
- package/dist/cli/commands/memory.js.map +0 -1
- package/dist/cli/commands/migrate.d.ts +0 -5
- package/dist/cli/commands/migrate.d.ts.map +0 -1
- package/dist/cli/commands/migrate.js +0 -139
- package/dist/cli/commands/migrate.js.map +0 -1
- package/dist/cli/commands/monitor.d.ts +0 -5
- package/dist/cli/commands/monitor.d.ts.map +0 -1
- package/dist/cli/commands/monitor.js +0 -493
- package/dist/cli/commands/monitor.js.map +0 -1
- package/dist/cli/commands/session.d.ts +0 -5
- package/dist/cli/commands/session.d.ts.map +0 -1
- package/dist/cli/commands/session.js +0 -548
- package/dist/cli/commands/session.js.map +0 -1
- package/dist/cli/commands/sparc.d.ts +0 -3
- package/dist/cli/commands/sparc.d.ts.map +0 -1
- package/dist/cli/commands/sparc.js +0 -472
- package/dist/cli/commands/sparc.js.map +0 -1
- package/dist/cli/commands/start/event-emitter.d.ts +0 -13
- package/dist/cli/commands/start/event-emitter.d.ts.map +0 -1
- package/dist/cli/commands/start/event-emitter.js +0 -35
- package/dist/cli/commands/start/event-emitter.js.map +0 -1
- package/dist/cli/commands/start/index.d.ts +0 -10
- package/dist/cli/commands/start/index.d.ts.map +0 -1
- package/dist/cli/commands/start/index.js +0 -9
- package/dist/cli/commands/start/index.js.map +0 -1
- package/dist/cli/commands/start/process-manager.d.ts +0 -31
- package/dist/cli/commands/start/process-manager.d.ts.map +0 -1
- package/dist/cli/commands/start/process-manager.js +0 -283
- package/dist/cli/commands/start/process-manager.js.map +0 -1
- package/dist/cli/commands/start/process-ui-simple.d.ts +0 -29
- package/dist/cli/commands/start/process-ui-simple.d.ts.map +0 -1
- package/dist/cli/commands/start/process-ui-simple.js +0 -334
- package/dist/cli/commands/start/process-ui-simple.js.map +0 -1
- package/dist/cli/commands/start/process-ui.d.ts +0 -5
- package/dist/cli/commands/start/process-ui.d.ts.map +0 -1
- package/dist/cli/commands/start/process-ui.js +0 -5
- package/dist/cli/commands/start/process-ui.js.map +0 -1
- package/dist/cli/commands/start/start-command.d.ts +0 -2
- package/dist/cli/commands/start/start-command.d.ts.map +0 -1
- package/dist/cli/commands/start/start-command.js +0 -462
- package/dist/cli/commands/start/start-command.js.map +0 -1
- package/dist/cli/commands/start/system-monitor.d.ts +0 -25
- package/dist/cli/commands/start/system-monitor.d.ts.map +0 -1
- package/dist/cli/commands/start/system-monitor.js +0 -265
- package/dist/cli/commands/start/system-monitor.js.map +0 -1
- package/dist/cli/commands/start/types.d.ts +0 -64
- package/dist/cli/commands/start/types.d.ts.map +0 -1
- package/dist/cli/commands/start/types.js +0 -22
- package/dist/cli/commands/start/types.js.map +0 -1
- package/dist/cli/commands/start.d.ts +0 -6
- package/dist/cli/commands/start.d.ts.map +0 -1
- package/dist/cli/commands/start.js +0 -6
- package/dist/cli/commands/start.js.map +0 -1
- package/dist/cli/commands/status.d.ts +0 -2
- package/dist/cli/commands/status.d.ts.map +0 -1
- package/dist/cli/commands/status.js +0 -304
- package/dist/cli/commands/status.js.map +0 -1
- package/dist/cli/commands/swarm.d.ts +0 -6
- package/dist/cli/commands/swarm.d.ts.map +0 -1
- package/dist/cli/commands/swarm.js +0 -465
- package/dist/cli/commands/swarm.js.map +0 -1
- package/dist/cli/commands/task.d.ts +0 -2
- package/dist/cli/commands/task.d.ts.map +0 -1
- package/dist/cli/commands/task.js +0 -75
- package/dist/cli/commands/task.js.map +0 -1
- package/dist/cli/commands/workflow.d.ts +0 -2
- package/dist/cli/commands/workflow.d.ts.map +0 -1
- package/dist/cli/commands/workflow.js +0 -624
- package/dist/cli/commands/workflow.js.map +0 -1
- package/dist/cli/completion.d.ts +0 -19
- package/dist/cli/completion.d.ts.map +0 -1
- package/dist/cli/completion.js +0 -545
- package/dist/cli/completion.js.map +0 -1
- package/dist/cli/formatter.d.ts +0 -69
- package/dist/cli/formatter.d.ts.map +0 -1
- package/dist/cli/formatter.js +0 -277
- package/dist/cli/formatter.js.map +0 -1
- package/dist/cli/help-formatter.d.ts +0 -49
- package/dist/cli/help-formatter.d.ts.map +0 -1
- package/dist/cli/help-formatter.js +0 -108
- package/dist/cli/help-formatter.js.map +0 -1
- package/dist/cli/help-text.d.ts +0 -25
- package/dist/cli/help-text.d.ts.map +0 -1
- package/dist/cli/help-text.js +0 -1051
- package/dist/cli/help-text.js.map +0 -1
- package/dist/cli/index-remote.d.ts +0 -7
- package/dist/cli/index-remote.d.ts.map +0 -1
- package/dist/cli/index-remote.js +0 -125
- package/dist/cli/index-remote.js.map +0 -1
- package/dist/cli/index.d.ts +0 -7
- package/dist/cli/index.d.ts.map +0 -1
- package/dist/cli/index.js +0 -189
- package/dist/cli/index.js.map +0 -1
- package/dist/cli/node-compat.d.ts +0 -81
- package/dist/cli/node-compat.d.ts.map +0 -1
- package/dist/cli/node-compat.js +0 -229
- package/dist/cli/node-compat.js.map +0 -1
- package/dist/cli/repl.d.ts +0 -5
- package/dist/cli/repl.d.ts.map +0 -1
- package/dist/cli/repl.js +0 -949
- package/dist/cli/repl.js.map +0 -1
- package/dist/cli/runtime-detector.d.ts +0 -128
- package/dist/cli/runtime-detector.d.ts.map +0 -1
- package/dist/cli/runtime-detector.js +0 -267
- package/dist/cli/runtime-detector.js.map +0 -1
- package/dist/cli/simple-cli.d.ts +0 -7
- package/dist/cli/simple-cli.d.ts.map +0 -1
- package/dist/cli/simple-cli.js +0 -3085
- package/dist/cli/simple-cli.js.map +0 -1
- package/dist/cli/simple-commands/agent.d.ts +0 -6
- package/dist/cli/simple-commands/agent.d.ts.map +0 -1
- package/dist/cli/simple-commands/agent.js +0 -128
- package/dist/cli/simple-commands/agent.js.map +0 -1
- package/dist/cli/simple-commands/analysis.d.ts +0 -2
- package/dist/cli/simple-commands/analysis.d.ts.map +0 -1
- package/dist/cli/simple-commands/analysis.js +0 -473
- package/dist/cli/simple-commands/analysis.js.map +0 -1
- package/dist/cli/simple-commands/automation-executor.d.ts +0 -188
- package/dist/cli/simple-commands/automation-executor.d.ts.map +0 -1
- package/dist/cli/simple-commands/automation-executor.js +0 -1383
- package/dist/cli/simple-commands/automation-executor.js.map +0 -1
- package/dist/cli/simple-commands/automation.d.ts +0 -2
- package/dist/cli/simple-commands/automation.d.ts.map +0 -1
- package/dist/cli/simple-commands/automation.js +0 -531
- package/dist/cli/simple-commands/automation.js.map +0 -1
- package/dist/cli/simple-commands/batch-manager.d.ts +0 -2
- package/dist/cli/simple-commands/batch-manager.d.ts.map +0 -1
- package/dist/cli/simple-commands/batch-manager.js +0 -290
- package/dist/cli/simple-commands/batch-manager.js.map +0 -1
- package/dist/cli/simple-commands/claude-telemetry.d.ts +0 -14
- package/dist/cli/simple-commands/claude-telemetry.d.ts.map +0 -1
- package/dist/cli/simple-commands/claude-telemetry.js +0 -263
- package/dist/cli/simple-commands/claude-telemetry.js.map +0 -1
- package/dist/cli/simple-commands/config.d.ts +0 -6
- package/dist/cli/simple-commands/config.d.ts.map +0 -1
- package/dist/cli/simple-commands/config.js +0 -116
- package/dist/cli/simple-commands/config.js.map +0 -1
- package/dist/cli/simple-commands/coordination.d.ts +0 -2
- package/dist/cli/simple-commands/coordination.d.ts.map +0 -1
- package/dist/cli/simple-commands/coordination.js +0 -249
- package/dist/cli/simple-commands/coordination.js.map +0 -1
- package/dist/cli/simple-commands/env-template.d.ts +0 -42
- package/dist/cli/simple-commands/env-template.d.ts.map +0 -1
- package/dist/cli/simple-commands/env-template.js +0 -183
- package/dist/cli/simple-commands/env-template.js.map +0 -1
- package/dist/cli/simple-commands/fix-hook-variables.d.ts +0 -16
- package/dist/cli/simple-commands/fix-hook-variables.d.ts.map +0 -1
- package/dist/cli/simple-commands/fix-hook-variables.js +0 -320
- package/dist/cli/simple-commands/fix-hook-variables.js.map +0 -1
- package/dist/cli/simple-commands/github/init.d.ts +0 -6
- package/dist/cli/simple-commands/github/init.d.ts.map +0 -1
- package/dist/cli/simple-commands/github/init.js +0 -506
- package/dist/cli/simple-commands/github/init.js.map +0 -1
- package/dist/cli/simple-commands/github.d.ts +0 -3
- package/dist/cli/simple-commands/github.d.ts.map +0 -1
- package/dist/cli/simple-commands/github.js +0 -356
- package/dist/cli/simple-commands/github.js.map +0 -1
- package/dist/cli/simple-commands/goal.d.ts +0 -3
- package/dist/cli/simple-commands/goal.d.ts.map +0 -1
- package/dist/cli/simple-commands/goal.js +0 -136
- package/dist/cli/simple-commands/goal.js.map +0 -1
- package/dist/cli/simple-commands/hive-mind/auto-save-middleware.d.ts +0 -68
- package/dist/cli/simple-commands/hive-mind/auto-save-middleware.d.ts.map +0 -1
- package/dist/cli/simple-commands/hive-mind/auto-save-middleware.js +0 -264
- package/dist/cli/simple-commands/hive-mind/auto-save-middleware.js.map +0 -1
- package/dist/cli/simple-commands/hive-mind/communication.d.ts +0 -176
- package/dist/cli/simple-commands/hive-mind/communication.d.ts.map +0 -1
- package/dist/cli/simple-commands/hive-mind/communication.js +0 -611
- package/dist/cli/simple-commands/hive-mind/communication.js.map +0 -1
- package/dist/cli/simple-commands/hive-mind/core.d.ts +0 -306
- package/dist/cli/simple-commands/hive-mind/core.d.ts.map +0 -1
- package/dist/cli/simple-commands/hive-mind/core.js +0 -839
- package/dist/cli/simple-commands/hive-mind/core.js.map +0 -1
- package/dist/cli/simple-commands/hive-mind/db-optimizer.d.ts +0 -32
- package/dist/cli/simple-commands/hive-mind/db-optimizer.d.ts.map +0 -1
- package/dist/cli/simple-commands/hive-mind/db-optimizer.js +0 -702
- package/dist/cli/simple-commands/hive-mind/db-optimizer.js.map +0 -1
- package/dist/cli/simple-commands/hive-mind/mcp-wrapper.d.ts +0 -270
- package/dist/cli/simple-commands/hive-mind/mcp-wrapper.d.ts.map +0 -1
- package/dist/cli/simple-commands/hive-mind/mcp-wrapper.js +0 -1211
- package/dist/cli/simple-commands/hive-mind/mcp-wrapper.js.map +0 -1
- package/dist/cli/simple-commands/hive-mind/memory.d.ts +0 -334
- package/dist/cli/simple-commands/hive-mind/memory.d.ts.map +0 -1
- package/dist/cli/simple-commands/hive-mind/memory.js +0 -1068
- package/dist/cli/simple-commands/hive-mind/memory.js.map +0 -1
- package/dist/cli/simple-commands/hive-mind/metrics-reader.js +0 -274
- package/dist/cli/simple-commands/hive-mind/metrics-reader.js.map +0 -1
- package/dist/cli/simple-commands/hive-mind/performance-optimizer.d.ts +0 -256
- package/dist/cli/simple-commands/hive-mind/performance-optimizer.d.ts.map +0 -1
- package/dist/cli/simple-commands/hive-mind/performance-optimizer.js +0 -520
- package/dist/cli/simple-commands/hive-mind/performance-optimizer.js.map +0 -1
- package/dist/cli/simple-commands/hive-mind/queen.d.ts +0 -235
- package/dist/cli/simple-commands/hive-mind/queen.d.ts.map +0 -1
- package/dist/cli/simple-commands/hive-mind/queen.js +0 -697
- package/dist/cli/simple-commands/hive-mind/queen.js.map +0 -1
- package/dist/cli/simple-commands/hive-mind/session-manager.d.ts +0 -140
- package/dist/cli/simple-commands/hive-mind/session-manager.d.ts.map +0 -1
- package/dist/cli/simple-commands/hive-mind/session-manager.js +0 -1000
- package/dist/cli/simple-commands/hive-mind/session-manager.js.map +0 -1
- package/dist/cli/simple-commands/hive-mind-optimize.d.ts +0 -6
- package/dist/cli/simple-commands/hive-mind-optimize.d.ts.map +0 -1
- package/dist/cli/simple-commands/hive-mind-optimize.js +0 -317
- package/dist/cli/simple-commands/hive-mind-optimize.js.map +0 -1
- package/dist/cli/simple-commands/hive-mind.d.ts +0 -22
- package/dist/cli/simple-commands/hive-mind.d.ts.map +0 -1
- package/dist/cli/simple-commands/hive-mind.js +0 -2722
- package/dist/cli/simple-commands/hive-mind.js.map +0 -1
- package/dist/cli/simple-commands/hook-safety.d.ts +0 -177
- package/dist/cli/simple-commands/hook-safety.d.ts.map +0 -1
- package/dist/cli/simple-commands/hook-safety.js +0 -590
- package/dist/cli/simple-commands/hook-safety.js.map +0 -1
- package/dist/cli/simple-commands/hooks.d.ts +0 -3
- package/dist/cli/simple-commands/hooks.d.ts.map +0 -1
- package/dist/cli/simple-commands/hooks.js +0 -1298
- package/dist/cli/simple-commands/hooks.js.map +0 -1
- package/dist/cli/simple-commands/init/agent-copier.d.ts +0 -65
- package/dist/cli/simple-commands/init/agent-copier.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/agent-copier.js +0 -320
- package/dist/cli/simple-commands/init/agent-copier.js.map +0 -1
- package/dist/cli/simple-commands/init/batch-init.d.ts +0 -137
- package/dist/cli/simple-commands/init/batch-init.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/batch-init.js +0 -558
- package/dist/cli/simple-commands/init/batch-init.js.map +0 -1
- package/dist/cli/simple-commands/init/claude-commands/claude-flow-commands.d.ts +0 -2
- package/dist/cli/simple-commands/init/claude-commands/claude-flow-commands.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/claude-commands/claude-flow-commands.js +0 -433
- package/dist/cli/simple-commands/init/claude-commands/claude-flow-commands.js.map +0 -1
- package/dist/cli/simple-commands/init/claude-commands/optimized-claude-flow-commands.d.ts +0 -2
- package/dist/cli/simple-commands/init/claude-commands/optimized-claude-flow-commands.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/claude-commands/optimized-claude-flow-commands.js +0 -871
- package/dist/cli/simple-commands/init/claude-commands/optimized-claude-flow-commands.js.map +0 -1
- package/dist/cli/simple-commands/init/claude-commands/optimized-slash-commands.d.ts +0 -2
- package/dist/cli/simple-commands/init/claude-commands/optimized-slash-commands.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/claude-commands/optimized-slash-commands.js +0 -332
- package/dist/cli/simple-commands/init/claude-commands/optimized-slash-commands.js.map +0 -1
- package/dist/cli/simple-commands/init/claude-commands/optimized-sparc-commands.d.ts +0 -3
- package/dist/cli/simple-commands/init/claude-commands/optimized-sparc-commands.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/claude-commands/optimized-sparc-commands.js +0 -488
- package/dist/cli/simple-commands/init/claude-commands/optimized-sparc-commands.js.map +0 -1
- package/dist/cli/simple-commands/init/claude-commands/slash-commands.d.ts +0 -2
- package/dist/cli/simple-commands/init/claude-commands/slash-commands.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/claude-commands/slash-commands.js +0 -51
- package/dist/cli/simple-commands/init/claude-commands/slash-commands.js.map +0 -1
- package/dist/cli/simple-commands/init/claude-commands/sparc-commands.d.ts +0 -3
- package/dist/cli/simple-commands/init/claude-commands/sparc-commands.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/claude-commands/sparc-commands.js +0 -288
- package/dist/cli/simple-commands/init/claude-commands/sparc-commands.js.map +0 -1
- package/dist/cli/simple-commands/init/copy-revised-templates.d.ts +0 -29
- package/dist/cli/simple-commands/init/copy-revised-templates.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/copy-revised-templates.js +0 -166
- package/dist/cli/simple-commands/init/copy-revised-templates.js.map +0 -1
- package/dist/cli/simple-commands/init/executable-wrapper.d.ts +0 -2
- package/dist/cli/simple-commands/init/executable-wrapper.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/executable-wrapper.js +0 -116
- package/dist/cli/simple-commands/init/executable-wrapper.js.map +0 -1
- package/dist/cli/simple-commands/init/gitignore-updater.d.ts +0 -23
- package/dist/cli/simple-commands/init/gitignore-updater.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/gitignore-updater.js +0 -128
- package/dist/cli/simple-commands/init/gitignore-updater.js.map +0 -1
- package/dist/cli/simple-commands/init/help.d.ts +0 -2
- package/dist/cli/simple-commands/init/help.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/help.js +0 -131
- package/dist/cli/simple-commands/init/help.js.map +0 -1
- package/dist/cli/simple-commands/init/hive-mind-init.d.ts +0 -152
- package/dist/cli/simple-commands/init/hive-mind-init.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/hive-mind-init.js +0 -699
- package/dist/cli/simple-commands/init/hive-mind-init.js.map +0 -1
- package/dist/cli/simple-commands/init/index.d.ts +0 -2
- package/dist/cli/simple-commands/init/index.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/index.js +0 -1784
- package/dist/cli/simple-commands/init/index.js.map +0 -1
- package/dist/cli/simple-commands/init/performance-monitor.d.ts +0 -73
- package/dist/cli/simple-commands/init/performance-monitor.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/performance-monitor.js +0 -277
- package/dist/cli/simple-commands/init/performance-monitor.js.map +0 -1
- package/dist/cli/simple-commands/init/rollback/backup-manager.d.ts +0 -95
- package/dist/cli/simple-commands/init/rollback/backup-manager.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/rollback/backup-manager.js +0 -486
- package/dist/cli/simple-commands/init/rollback/backup-manager.js.map +0 -1
- package/dist/cli/simple-commands/init/rollback/index.d.ts +0 -114
- package/dist/cli/simple-commands/init/rollback/index.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/rollback/index.js +0 -353
- package/dist/cli/simple-commands/init/rollback/index.js.map +0 -1
- package/dist/cli/simple-commands/init/rollback/recovery-manager.d.ts +0 -161
- package/dist/cli/simple-commands/init/rollback/recovery-manager.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/rollback/recovery-manager.js +0 -686
- package/dist/cli/simple-commands/init/rollback/recovery-manager.js.map +0 -1
- package/dist/cli/simple-commands/init/rollback/rollback-executor.d.ts +0 -112
- package/dist/cli/simple-commands/init/rollback/rollback-executor.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/rollback/rollback-executor.js +0 -480
- package/dist/cli/simple-commands/init/rollback/rollback-executor.js.map +0 -1
- package/dist/cli/simple-commands/init/rollback/state-tracker.d.ts +0 -121
- package/dist/cli/simple-commands/init/rollback/state-tracker.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/rollback/state-tracker.js +0 -432
- package/dist/cli/simple-commands/init/rollback/state-tracker.js.map +0 -1
- package/dist/cli/simple-commands/init/skills-copier.d.ts +0 -41
- package/dist/cli/simple-commands/init/skills-copier.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/skills-copier.js +0 -192
- package/dist/cli/simple-commands/init/skills-copier.js.map +0 -1
- package/dist/cli/simple-commands/init/sparc/roo-readme.d.ts +0 -2
- package/dist/cli/simple-commands/init/sparc/roo-readme.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/sparc/roo-readme.js +0 -61
- package/dist/cli/simple-commands/init/sparc/roo-readme.js.map +0 -1
- package/dist/cli/simple-commands/init/sparc/roomodes-config.d.ts +0 -2
- package/dist/cli/simple-commands/init/sparc/roomodes-config.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/sparc/roomodes-config.js +0 -80
- package/dist/cli/simple-commands/init/sparc/roomodes-config.js.map +0 -1
- package/dist/cli/simple-commands/init/sparc/workflows.d.ts +0 -2
- package/dist/cli/simple-commands/init/sparc/workflows.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/sparc/workflows.js +0 -36
- package/dist/cli/simple-commands/init/sparc/workflows.js.map +0 -1
- package/dist/cli/simple-commands/init/sparc-structure.d.ts +0 -2
- package/dist/cli/simple-commands/init/sparc-structure.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/sparc-structure.js +0 -63
- package/dist/cli/simple-commands/init/sparc-structure.js.map +0 -1
- package/dist/cli/simple-commands/init/template-copier.d.ts +0 -27
- package/dist/cli/simple-commands/init/template-copier.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/template-copier.js +0 -538
- package/dist/cli/simple-commands/init/template-copier.js.map +0 -1
- package/dist/cli/simple-commands/init/templates/claude-md.d.ts +0 -6
- package/dist/cli/simple-commands/init/templates/claude-md.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/templates/claude-md.js +0 -1097
- package/dist/cli/simple-commands/init/templates/claude-md.js.map +0 -1
- package/dist/cli/simple-commands/init/templates/coordination-md.d.ts +0 -4
- package/dist/cli/simple-commands/init/templates/coordination-md.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/templates/coordination-md.js +0 -338
- package/dist/cli/simple-commands/init/templates/coordination-md.js.map +0 -1
- package/dist/cli/simple-commands/init/templates/enhanced-templates.d.ts +0 -21
- package/dist/cli/simple-commands/init/templates/enhanced-templates.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/templates/enhanced-templates.js +0 -2304
- package/dist/cli/simple-commands/init/templates/enhanced-templates.js.map +0 -1
- package/dist/cli/simple-commands/init/templates/memory-bank-md.d.ts +0 -4
- package/dist/cli/simple-commands/init/templates/memory-bank-md.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/templates/memory-bank-md.js +0 -257
- package/dist/cli/simple-commands/init/templates/memory-bank-md.js.map +0 -1
- package/dist/cli/simple-commands/init/templates/readme-files.d.ts +0 -3
- package/dist/cli/simple-commands/init/templates/readme-files.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/templates/readme-files.js +0 -71
- package/dist/cli/simple-commands/init/templates/readme-files.js.map +0 -1
- package/dist/cli/simple-commands/init/templates/sparc-modes.d.ts +0 -30
- package/dist/cli/simple-commands/init/templates/sparc-modes.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/templates/sparc-modes.js +0 -1375
- package/dist/cli/simple-commands/init/templates/sparc-modes.js.map +0 -1
- package/dist/cli/simple-commands/init/templates/verification-claude-md.d.ts +0 -3
- package/dist/cli/simple-commands/init/templates/verification-claude-md.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/templates/verification-claude-md.js +0 -432
- package/dist/cli/simple-commands/init/templates/verification-claude-md.js.map +0 -1
- package/dist/cli/simple-commands/init/validation/config-validator.d.ts +0 -63
- package/dist/cli/simple-commands/init/validation/config-validator.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/validation/config-validator.js +0 -308
- package/dist/cli/simple-commands/init/validation/config-validator.js.map +0 -1
- package/dist/cli/simple-commands/init/validation/health-checker.d.ts +0 -117
- package/dist/cli/simple-commands/init/validation/health-checker.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/validation/health-checker.js +0 -539
- package/dist/cli/simple-commands/init/validation/health-checker.js.map +0 -1
- package/dist/cli/simple-commands/init/validation/index.d.ts +0 -55
- package/dist/cli/simple-commands/init/validation/index.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/validation/index.js +0 -347
- package/dist/cli/simple-commands/init/validation/index.js.map +0 -1
- package/dist/cli/simple-commands/init/validation/mode-validator.d.ts +0 -76
- package/dist/cli/simple-commands/init/validation/mode-validator.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/validation/mode-validator.js +0 -343
- package/dist/cli/simple-commands/init/validation/mode-validator.js.map +0 -1
- package/dist/cli/simple-commands/init/validation/post-init-validator.d.ts +0 -62
- package/dist/cli/simple-commands/init/validation/post-init-validator.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/validation/post-init-validator.js +0 -349
- package/dist/cli/simple-commands/init/validation/post-init-validator.js.map +0 -1
- package/dist/cli/simple-commands/init/validation/pre-init-validator.d.ts +0 -86
- package/dist/cli/simple-commands/init/validation/pre-init-validator.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/validation/pre-init-validator.js +0 -260
- package/dist/cli/simple-commands/init/validation/pre-init-validator.js.map +0 -1
- package/dist/cli/simple-commands/inject-memory-protocol.d.ts +0 -34
- package/dist/cli/simple-commands/inject-memory-protocol.d.ts.map +0 -1
- package/dist/cli/simple-commands/inject-memory-protocol.js +0 -229
- package/dist/cli/simple-commands/inject-memory-protocol.js.map +0 -1
- package/dist/cli/simple-commands/mcp.d.ts +0 -2
- package/dist/cli/simple-commands/mcp.d.ts.map +0 -1
- package/dist/cli/simple-commands/mcp.js +0 -369
- package/dist/cli/simple-commands/mcp.js.map +0 -1
- package/dist/cli/simple-commands/memory-consolidation.d.ts +0 -73
- package/dist/cli/simple-commands/memory-consolidation.d.ts.map +0 -1
- package/dist/cli/simple-commands/memory-consolidation.js +0 -537
- package/dist/cli/simple-commands/memory-consolidation.js.map +0 -1
- package/dist/cli/simple-commands/memory.d.ts +0 -2
- package/dist/cli/simple-commands/memory.d.ts.map +0 -1
- package/dist/cli/simple-commands/memory.js +0 -778
- package/dist/cli/simple-commands/memory.js.map +0 -1
- package/dist/cli/simple-commands/migrate-hooks.d.ts +0 -10
- package/dist/cli/simple-commands/migrate-hooks.d.ts.map +0 -1
- package/dist/cli/simple-commands/migrate-hooks.js +0 -57
- package/dist/cli/simple-commands/migrate-hooks.js.map +0 -1
- package/dist/cli/simple-commands/monitor.d.ts +0 -3
- package/dist/cli/simple-commands/monitor.d.ts.map +0 -1
- package/dist/cli/simple-commands/monitor.js +0 -366
- package/dist/cli/simple-commands/monitor.js.map +0 -1
- package/dist/cli/simple-commands/neural.d.ts +0 -3
- package/dist/cli/simple-commands/neural.d.ts.map +0 -1
- package/dist/cli/simple-commands/neural.js +0 -137
- package/dist/cli/simple-commands/neural.js.map +0 -1
- package/dist/cli/simple-commands/pair.d.ts +0 -3
- package/dist/cli/simple-commands/pair.d.ts.map +0 -1
- package/dist/cli/simple-commands/pair.js +0 -735
- package/dist/cli/simple-commands/pair.js.map +0 -1
- package/dist/cli/simple-commands/performance-hooks.d.ts +0 -20
- package/dist/cli/simple-commands/performance-hooks.d.ts.map +0 -1
- package/dist/cli/simple-commands/performance-hooks.js +0 -127
- package/dist/cli/simple-commands/performance-hooks.js.map +0 -1
- package/dist/cli/simple-commands/performance-metrics.d.ts +0 -153
- package/dist/cli/simple-commands/performance-metrics.d.ts.map +0 -1
- package/dist/cli/simple-commands/performance-metrics.js +0 -759
- package/dist/cli/simple-commands/performance-metrics.js.map +0 -1
- package/dist/cli/simple-commands/process-ui-enhanced.d.ts +0 -55
- package/dist/cli/simple-commands/process-ui-enhanced.d.ts.map +0 -1
- package/dist/cli/simple-commands/process-ui-enhanced.js +0 -680
- package/dist/cli/simple-commands/process-ui-enhanced.js.map +0 -1
- package/dist/cli/simple-commands/proxy.d.ts +0 -5
- package/dist/cli/simple-commands/proxy.d.ts.map +0 -1
- package/dist/cli/simple-commands/proxy.js +0 -346
- package/dist/cli/simple-commands/proxy.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/architect.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/architect.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/architect.js +0 -126
- package/dist/cli/simple-commands/sparc-modes/architect.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/ask.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/ask.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/ask.js +0 -127
- package/dist/cli/simple-commands/sparc-modes/ask.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/code.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/code.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/code.js +0 -149
- package/dist/cli/simple-commands/sparc-modes/code.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/debug.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/debug.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/debug.js +0 -113
- package/dist/cli/simple-commands/sparc-modes/debug.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/devops.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/devops.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/devops.js +0 -138
- package/dist/cli/simple-commands/sparc-modes/devops.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/docs-writer.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/docs-writer.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/docs-writer.js +0 -39
- package/dist/cli/simple-commands/sparc-modes/docs-writer.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/generic.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/generic.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/generic.js +0 -35
- package/dist/cli/simple-commands/sparc-modes/generic.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/index.d.ts +0 -17
- package/dist/cli/simple-commands/sparc-modes/index.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/index.js +0 -196
- package/dist/cli/simple-commands/sparc-modes/index.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/integration.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/integration.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/integration.js +0 -56
- package/dist/cli/simple-commands/sparc-modes/integration.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/mcp.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/mcp.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/mcp.js +0 -39
- package/dist/cli/simple-commands/sparc-modes/mcp.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/monitoring.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/monitoring.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/monitoring.js +0 -39
- package/dist/cli/simple-commands/sparc-modes/monitoring.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/optimization.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/optimization.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/optimization.js +0 -39
- package/dist/cli/simple-commands/sparc-modes/optimization.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/security-review.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/security-review.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/security-review.js +0 -131
- package/dist/cli/simple-commands/sparc-modes/security-review.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/sparc-orchestrator.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/sparc-orchestrator.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/sparc-orchestrator.js +0 -168
- package/dist/cli/simple-commands/sparc-modes/sparc-orchestrator.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/spec-pseudocode.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/spec-pseudocode.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/spec-pseudocode.js +0 -39
- package/dist/cli/simple-commands/sparc-modes/spec-pseudocode.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/supabase-admin.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/supabase-admin.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/supabase-admin.js +0 -150
- package/dist/cli/simple-commands/sparc-modes/supabase-admin.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/swarm.d.ts +0 -81
- package/dist/cli/simple-commands/sparc-modes/swarm.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/swarm.js +0 -428
- package/dist/cli/simple-commands/sparc-modes/swarm.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/tdd.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/tdd.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/tdd.js +0 -113
- package/dist/cli/simple-commands/sparc-modes/tdd.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/tutorial.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/tutorial.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/tutorial.js +0 -278
- package/dist/cli/simple-commands/sparc-modes/tutorial.js.map +0 -1
- package/dist/cli/simple-commands/sparc.d.ts +0 -2
- package/dist/cli/simple-commands/sparc.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc.js +0 -477
- package/dist/cli/simple-commands/sparc.js.map +0 -1
- package/dist/cli/simple-commands/start-ui.d.ts +0 -2
- package/dist/cli/simple-commands/start-ui.d.ts.map +0 -1
- package/dist/cli/simple-commands/start-ui.js +0 -135
- package/dist/cli/simple-commands/start-ui.js.map +0 -1
- package/dist/cli/simple-commands/start-wrapper.d.ts +0 -2
- package/dist/cli/simple-commands/start-wrapper.d.ts.map +0 -1
- package/dist/cli/simple-commands/start-wrapper.js +0 -264
- package/dist/cli/simple-commands/start-wrapper.js.map +0 -1
- package/dist/cli/simple-commands/start.d.ts +0 -2
- package/dist/cli/simple-commands/start.d.ts.map +0 -1
- package/dist/cli/simple-commands/start.js +0 -3
- package/dist/cli/simple-commands/start.js.map +0 -1
- package/dist/cli/simple-commands/status.d.ts +0 -2
- package/dist/cli/simple-commands/status.d.ts.map +0 -1
- package/dist/cli/simple-commands/status.js +0 -292
- package/dist/cli/simple-commands/status.js.map +0 -1
- package/dist/cli/simple-commands/stream-chain.d.ts +0 -7
- package/dist/cli/simple-commands/stream-chain.d.ts.map +0 -1
- package/dist/cli/simple-commands/stream-chain.js +0 -433
- package/dist/cli/simple-commands/stream-chain.js.map +0 -1
- package/dist/cli/simple-commands/stream-processor.d.ts +0 -32
- package/dist/cli/simple-commands/stream-processor.d.ts.map +0 -1
- package/dist/cli/simple-commands/stream-processor.js +0 -318
- package/dist/cli/simple-commands/stream-processor.js.map +0 -1
- package/dist/cli/simple-commands/swarm-executor.d.ts +0 -68
- package/dist/cli/simple-commands/swarm-executor.d.ts.map +0 -1
- package/dist/cli/simple-commands/swarm-executor.js +0 -218
- package/dist/cli/simple-commands/swarm-executor.js.map +0 -1
- package/dist/cli/simple-commands/swarm-metrics-integration.d.ts +0 -69
- package/dist/cli/simple-commands/swarm-metrics-integration.d.ts.map +0 -1
- package/dist/cli/simple-commands/swarm-metrics-integration.js +0 -294
- package/dist/cli/simple-commands/swarm-metrics-integration.js.map +0 -1
- package/dist/cli/simple-commands/swarm-webui-integration.d.ts +0 -68
- package/dist/cli/simple-commands/swarm-webui-integration.d.ts.map +0 -1
- package/dist/cli/simple-commands/swarm-webui-integration.js +0 -265
- package/dist/cli/simple-commands/swarm-webui-integration.js.map +0 -1
- package/dist/cli/simple-commands/swarm.d.ts +0 -2
- package/dist/cli/simple-commands/swarm.d.ts.map +0 -1
- package/dist/cli/simple-commands/swarm.js +0 -2104
- package/dist/cli/simple-commands/swarm.js.map +0 -1
- package/dist/cli/simple-commands/task.d.ts +0 -2
- package/dist/cli/simple-commands/task.d.ts.map +0 -1
- package/dist/cli/simple-commands/task.js +0 -250
- package/dist/cli/simple-commands/task.js.map +0 -1
- package/dist/cli/simple-commands/token-tracker.d.ts +0 -73
- package/dist/cli/simple-commands/token-tracker.d.ts.map +0 -1
- package/dist/cli/simple-commands/token-tracker.js +0 -319
- package/dist/cli/simple-commands/token-tracker.js.map +0 -1
- package/dist/cli/simple-commands/training-pipeline.d.ts +0 -166
- package/dist/cli/simple-commands/training-pipeline.d.ts.map +0 -1
- package/dist/cli/simple-commands/training-pipeline.js +0 -760
- package/dist/cli/simple-commands/training-pipeline.js.map +0 -1
- package/dist/cli/simple-commands/training.d.ts +0 -2
- package/dist/cli/simple-commands/training.d.ts.map +0 -1
- package/dist/cli/simple-commands/training.js +0 -240
- package/dist/cli/simple-commands/training.js.map +0 -1
- package/dist/cli/simple-commands/verification-training-integration.d.ts +0 -181
- package/dist/cli/simple-commands/verification-training-integration.d.ts.map +0 -1
- package/dist/cli/simple-commands/verification-training-integration.js +0 -561
- package/dist/cli/simple-commands/verification-training-integration.js.map +0 -1
- package/dist/cli/simple-commands/verification.d.ts +0 -10
- package/dist/cli/simple-commands/verification.d.ts.map +0 -1
- package/dist/cli/simple-commands/verification.js +0 -476
- package/dist/cli/simple-commands/verification.js.map +0 -1
- package/dist/cli/simple-commands/web-server.d.ts +0 -152
- package/dist/cli/simple-commands/web-server.d.ts.map +0 -1
- package/dist/cli/simple-commands/web-server.js +0 -816
- package/dist/cli/simple-commands/web-server.js.map +0 -1
- package/dist/cli/utils/interactive-detector.d.ts +0 -25
- package/dist/cli/utils/interactive-detector.d.ts.map +0 -1
- package/dist/cli/utils/interactive-detector.js +0 -129
- package/dist/cli/utils/interactive-detector.js.map +0 -1
- package/dist/cli/utils/safe-interactive.d.ts +0 -30
- package/dist/cli/utils/safe-interactive.d.ts.map +0 -1
- package/dist/cli/utils/safe-interactive.js +0 -134
- package/dist/cli/utils/safe-interactive.js.map +0 -1
- package/dist/cli/utils.d.ts +0 -75
- package/dist/cli/utils.d.ts.map +0 -1
- package/dist/cli/utils.js +0 -567
- package/dist/cli/utils.js.map +0 -1
- package/dist/config/config-manager.d.ts +0 -212
- package/dist/config/config-manager.d.ts.map +0 -1
- package/dist/config/config-manager.js +0 -550
- package/dist/config/config-manager.js.map +0 -1
- package/dist/constants/agent-types.d.ts +0 -57
- package/dist/constants/agent-types.d.ts.map +0 -1
- package/dist/constants/agent-types.js +0 -57
- package/dist/constants/agent-types.js.map +0 -1
- package/dist/coordination/advanced-scheduler.d.ts +0 -121
- package/dist/coordination/advanced-scheduler.d.ts.map +0 -1
- package/dist/coordination/advanced-scheduler.js +0 -382
- package/dist/coordination/advanced-scheduler.js.map +0 -1
- package/dist/coordination/background-executor.d.ts +0 -69
- package/dist/coordination/background-executor.d.ts.map +0 -1
- package/dist/coordination/background-executor.js +0 -363
- package/dist/coordination/background-executor.js.map +0 -1
- package/dist/coordination/circuit-breaker.d.ts +0 -124
- package/dist/coordination/circuit-breaker.d.ts.map +0 -1
- package/dist/coordination/circuit-breaker.js +0 -301
- package/dist/coordination/circuit-breaker.js.map +0 -1
- package/dist/coordination/conflict-resolution.d.ts +0 -133
- package/dist/coordination/conflict-resolution.d.ts.map +0 -1
- package/dist/coordination/conflict-resolution.js +0 -360
- package/dist/coordination/conflict-resolution.js.map +0 -1
- package/dist/coordination/dependency-graph.d.ts +0 -78
- package/dist/coordination/dependency-graph.d.ts.map +0 -1
- package/dist/coordination/dependency-graph.js +0 -387
- package/dist/coordination/dependency-graph.js.map +0 -1
- package/dist/coordination/manager.d.ts +0 -66
- package/dist/coordination/manager.d.ts.map +0 -1
- package/dist/coordination/manager.js +0 -354
- package/dist/coordination/manager.js.map +0 -1
- package/dist/coordination/messaging.d.ts +0 -37
- package/dist/coordination/messaging.d.ts.map +0 -1
- package/dist/coordination/messaging.js +0 -219
- package/dist/coordination/messaging.js.map +0 -1
- package/dist/coordination/metrics.d.ts +0 -153
- package/dist/coordination/metrics.d.ts.map +0 -1
- package/dist/coordination/metrics.js +0 -436
- package/dist/coordination/metrics.js.map +0 -1
- package/dist/coordination/resources.d.ts +0 -36
- package/dist/coordination/resources.d.ts.map +0 -1
- package/dist/coordination/resources.js +0 -254
- package/dist/coordination/resources.js.map +0 -1
- package/dist/coordination/scheduler.d.ts +0 -48
- package/dist/coordination/scheduler.d.ts.map +0 -1
- package/dist/coordination/scheduler.js +0 -308
- package/dist/coordination/scheduler.js.map +0 -1
- package/dist/coordination/swarm-coordinator.d.ts +0 -116
- package/dist/coordination/swarm-coordinator.d.ts.map +0 -1
- package/dist/coordination/swarm-coordinator.js +0 -563
- package/dist/coordination/swarm-coordinator.js.map +0 -1
- package/dist/coordination/swarm-monitor.d.ts +0 -101
- package/dist/coordination/swarm-monitor.d.ts.map +0 -1
- package/dist/coordination/swarm-monitor.js +0 -340
- package/dist/coordination/swarm-monitor.js.map +0 -1
- package/dist/coordination/work-stealing.d.ts +0 -44
- package/dist/coordination/work-stealing.d.ts.map +0 -1
- package/dist/coordination/work-stealing.js +0 -158
- package/dist/coordination/work-stealing.js.map +0 -1
- package/dist/core/config.d.ts +0 -243
- package/dist/core/config.d.ts.map +0 -1
- package/dist/core/config.js +0 -1125
- package/dist/core/config.js.map +0 -1
- package/dist/core/event-bus.d.ts +0 -63
- package/dist/core/event-bus.d.ts.map +0 -1
- package/dist/core/event-bus.js +0 -153
- package/dist/core/event-bus.js.map +0 -1
- package/dist/core/json-persistence.d.ts +0 -55
- package/dist/core/json-persistence.d.ts.map +0 -1
- package/dist/core/json-persistence.js +0 -111
- package/dist/core/json-persistence.js.map +0 -1
- package/dist/core/logger.d.ts +0 -62
- package/dist/core/logger.d.ts.map +0 -1
- package/dist/core/logger.js +0 -252
- package/dist/core/logger.js.map +0 -1
- package/dist/core/orchestrator-fixed.d.ts +0 -81
- package/dist/core/orchestrator-fixed.d.ts.map +0 -1
- package/dist/core/orchestrator-fixed.js +0 -213
- package/dist/core/orchestrator-fixed.js.map +0 -1
- package/dist/core/orchestrator.d.ts +0 -141
- package/dist/core/orchestrator.d.ts.map +0 -1
- package/dist/core/orchestrator.js +0 -1166
- package/dist/core/orchestrator.js.map +0 -1
- package/dist/core/version.d.ts +0 -10
- package/dist/core/version.d.ts.map +0 -1
- package/dist/core/version.js +0 -36
- package/dist/core/version.js.map +0 -1
- package/dist/enterprise/analytics-manager.d.ts +0 -489
- package/dist/enterprise/analytics-manager.d.ts.map +0 -1
- package/dist/enterprise/analytics-manager.js +0 -956
- package/dist/enterprise/analytics-manager.js.map +0 -1
- package/dist/enterprise/audit-manager.d.ts +0 -459
- package/dist/enterprise/audit-manager.d.ts.map +0 -1
- package/dist/enterprise/audit-manager.js +0 -1014
- package/dist/enterprise/audit-manager.js.map +0 -1
- package/dist/enterprise/cloud-manager.d.ts +0 -435
- package/dist/enterprise/cloud-manager.d.ts.map +0 -1
- package/dist/enterprise/cloud-manager.js +0 -789
- package/dist/enterprise/cloud-manager.js.map +0 -1
- package/dist/enterprise/deployment-manager.d.ts +0 -328
- package/dist/enterprise/deployment-manager.d.ts.map +0 -1
- package/dist/enterprise/deployment-manager.js +0 -830
- package/dist/enterprise/deployment-manager.js.map +0 -1
- package/dist/enterprise/project-manager.d.ts +0 -228
- package/dist/enterprise/project-manager.d.ts.map +0 -1
- package/dist/enterprise/project-manager.js +0 -537
- package/dist/enterprise/project-manager.js.map +0 -1
- package/dist/enterprise/security-manager.d.ts +0 -422
- package/dist/enterprise/security-manager.d.ts.map +0 -1
- package/dist/enterprise/security-manager.js +0 -910
- package/dist/enterprise/security-manager.js.map +0 -1
- package/dist/execution/agent-executor.d.ts +0 -80
- package/dist/execution/agent-executor.d.ts.map +0 -1
- package/dist/execution/agent-executor.js +0 -220
- package/dist/execution/agent-executor.js.map +0 -1
- package/dist/execution/provider-manager.d.ts +0 -65
- package/dist/execution/provider-manager.d.ts.map +0 -1
- package/dist/execution/provider-manager.js +0 -144
- package/dist/execution/provider-manager.js.map +0 -1
- package/dist/hive-mind/core/Agent.d.ts +0 -137
- package/dist/hive-mind/core/Agent.d.ts.map +0 -1
- package/dist/hive-mind/core/Agent.js +0 -567
- package/dist/hive-mind/core/Agent.js.map +0 -1
- package/dist/hive-mind/core/Communication.d.ts +0 -116
- package/dist/hive-mind/core/Communication.d.ts.map +0 -1
- package/dist/hive-mind/core/Communication.js +0 -407
- package/dist/hive-mind/core/Communication.js.map +0 -1
- package/dist/hive-mind/core/DatabaseManager.d.ts +0 -99
- package/dist/hive-mind/core/DatabaseManager.d.ts.map +0 -1
- package/dist/hive-mind/core/DatabaseManager.js +0 -648
- package/dist/hive-mind/core/DatabaseManager.js.map +0 -1
- package/dist/hive-mind/core/HiveMind.d.ts +0 -90
- package/dist/hive-mind/core/HiveMind.d.ts.map +0 -1
- package/dist/hive-mind/core/HiveMind.js +0 -455
- package/dist/hive-mind/core/HiveMind.js.map +0 -1
- package/dist/hive-mind/core/Memory.d.ts +0 -235
- package/dist/hive-mind/core/Memory.d.ts.map +0 -1
- package/dist/hive-mind/core/Memory.js +0 -1192
- package/dist/hive-mind/core/Memory.js.map +0 -1
- package/dist/hive-mind/core/Queen.d.ts +0 -115
- package/dist/hive-mind/core/Queen.d.ts.map +0 -1
- package/dist/hive-mind/core/Queen.js +0 -649
- package/dist/hive-mind/core/Queen.js.map +0 -1
- package/dist/hive-mind/integration/ConsensusEngine.d.ts +0 -117
- package/dist/hive-mind/integration/ConsensusEngine.d.ts.map +0 -1
- package/dist/hive-mind/integration/ConsensusEngine.js +0 -478
- package/dist/hive-mind/integration/ConsensusEngine.js.map +0 -1
- package/dist/hive-mind/integration/MCPToolWrapper.d.ts +0 -172
- package/dist/hive-mind/integration/MCPToolWrapper.d.ts.map +0 -1
- package/dist/hive-mind/integration/MCPToolWrapper.js +0 -217
- package/dist/hive-mind/integration/MCPToolWrapper.js.map +0 -1
- package/dist/hive-mind/integration/SwarmOrchestrator.d.ts +0 -172
- package/dist/hive-mind/integration/SwarmOrchestrator.d.ts.map +0 -1
- package/dist/hive-mind/integration/SwarmOrchestrator.js +0 -748
- package/dist/hive-mind/integration/SwarmOrchestrator.js.map +0 -1
- package/dist/hive-mind/types.d.ts +0 -314
- package/dist/hive-mind/types.d.ts.map +0 -1
- package/dist/hive-mind/types.js +0 -7
- package/dist/hive-mind/types.js.map +0 -1
- package/dist/mcp/auth.d.ts +0 -80
- package/dist/mcp/auth.d.ts.map +0 -1
- package/dist/mcp/auth.js +0 -350
- package/dist/mcp/auth.js.map +0 -1
- package/dist/mcp/claude-flow-tools.d.ts +0 -13
- package/dist/mcp/claude-flow-tools.d.ts.map +0 -1
- package/dist/mcp/claude-flow-tools.js +0 -1398
- package/dist/mcp/claude-flow-tools.js.map +0 -1
- package/dist/mcp/load-balancer.d.ts +0 -88
- package/dist/mcp/load-balancer.d.ts.map +0 -1
- package/dist/mcp/load-balancer.js +0 -393
- package/dist/mcp/load-balancer.js.map +0 -1
- package/dist/mcp/router.d.ts +0 -54
- package/dist/mcp/router.d.ts.map +0 -1
- package/dist/mcp/router.js +0 -204
- package/dist/mcp/router.js.map +0 -1
- package/dist/mcp/ruv-swarm-tools.d.ts +0 -58
- package/dist/mcp/ruv-swarm-tools.d.ts.map +0 -1
- package/dist/mcp/ruv-swarm-tools.js +0 -568
- package/dist/mcp/ruv-swarm-tools.js.map +0 -1
- package/dist/mcp/server.d.ts +0 -75
- package/dist/mcp/server.d.ts.map +0 -1
- package/dist/mcp/server.js +0 -538
- package/dist/mcp/server.js.map +0 -1
- package/dist/mcp/session-manager.d.ts +0 -60
- package/dist/mcp/session-manager.d.ts.map +0 -1
- package/dist/mcp/session-manager.js +0 -323
- package/dist/mcp/session-manager.js.map +0 -1
- package/dist/mcp/swarm-tools.d.ts +0 -87
- package/dist/mcp/swarm-tools.d.ts.map +0 -1
- package/dist/mcp/swarm-tools.js +0 -731
- package/dist/mcp/swarm-tools.js.map +0 -1
- package/dist/mcp/tools.d.ts +0 -145
- package/dist/mcp/tools.d.ts.map +0 -1
- package/dist/mcp/tools.js +0 -434
- package/dist/mcp/tools.js.map +0 -1
- package/dist/mcp/transports/base.d.ts +0 -22
- package/dist/mcp/transports/base.d.ts.map +0 -1
- package/dist/mcp/transports/base.js +0 -5
- package/dist/mcp/transports/base.js.map +0 -1
- package/dist/mcp/transports/http.d.ts +0 -48
- package/dist/mcp/transports/http.d.ts.map +0 -1
- package/dist/mcp/transports/http.js +0 -400
- package/dist/mcp/transports/http.js.map +0 -1
- package/dist/mcp/transports/stdio.d.ts +0 -37
- package/dist/mcp/transports/stdio.d.ts.map +0 -1
- package/dist/mcp/transports/stdio.js +0 -206
- package/dist/mcp/transports/stdio.js.map +0 -1
- package/dist/memory/advanced-serializer.d.ts +0 -159
- package/dist/memory/advanced-serializer.d.ts.map +0 -1
- package/dist/memory/advanced-serializer.js +0 -564
- package/dist/memory/advanced-serializer.js.map +0 -1
- package/dist/memory/backends/base.d.ts +0 -21
- package/dist/memory/backends/base.d.ts.map +0 -1
- package/dist/memory/backends/base.js +0 -5
- package/dist/memory/backends/base.js.map +0 -1
- package/dist/memory/backends/markdown.d.ts +0 -35
- package/dist/memory/backends/markdown.d.ts.map +0 -1
- package/dist/memory/backends/markdown.js +0 -223
- package/dist/memory/backends/markdown.js.map +0 -1
- package/dist/memory/backends/sqlite.d.ts +0 -33
- package/dist/memory/backends/sqlite.d.ts.map +0 -1
- package/dist/memory/backends/sqlite.js +0 -291
- package/dist/memory/backends/sqlite.js.map +0 -1
- package/dist/memory/cache.d.ts +0 -65
- package/dist/memory/cache.d.ts.map +0 -1
- package/dist/memory/cache.js +0 -188
- package/dist/memory/cache.js.map +0 -1
- package/dist/memory/distributed-memory.d.ts +0 -188
- package/dist/memory/distributed-memory.d.ts.map +0 -1
- package/dist/memory/distributed-memory.js +0 -710
- package/dist/memory/distributed-memory.js.map +0 -1
- package/dist/memory/enhanced-session-serializer.d.ts +0 -115
- package/dist/memory/enhanced-session-serializer.d.ts.map +0 -1
- package/dist/memory/enhanced-session-serializer.js +0 -478
- package/dist/memory/enhanced-session-serializer.js.map +0 -1
- package/dist/memory/fallback-store.d.ts +0 -28
- package/dist/memory/fallback-store.d.ts.map +0 -1
- package/dist/memory/fallback-store.js +0 -101
- package/dist/memory/fallback-store.js.map +0 -1
- package/dist/memory/in-memory-store.d.ts +0 -37
- package/dist/memory/in-memory-store.d.ts.map +0 -1
- package/dist/memory/in-memory-store.js +0 -174
- package/dist/memory/in-memory-store.js.map +0 -1
- package/dist/memory/indexer.d.ts +0 -52
- package/dist/memory/indexer.d.ts.map +0 -1
- package/dist/memory/indexer.js +0 -191
- package/dist/memory/indexer.js.map +0 -1
- package/dist/memory/manager.d.ts +0 -58
- package/dist/memory/manager.d.ts.map +0 -1
- package/dist/memory/manager.js +0 -423
- package/dist/memory/manager.js.map +0 -1
- package/dist/memory/sqlite-store.d.ts +0 -34
- package/dist/memory/sqlite-store.d.ts.map +0 -1
- package/dist/memory/sqlite-store.js +0 -268
- package/dist/memory/sqlite-store.js.map +0 -1
- package/dist/memory/sqlite-wrapper.d.ts +0 -38
- package/dist/memory/sqlite-wrapper.d.ts.map +0 -1
- package/dist/memory/sqlite-wrapper.js +0 -152
- package/dist/memory/sqlite-wrapper.js.map +0 -1
- package/dist/memory/swarm-memory.d.ts +0 -91
- package/dist/memory/swarm-memory.d.ts.map +0 -1
- package/dist/memory/swarm-memory.js +0 -454
- package/dist/memory/swarm-memory.js.map +0 -1
- package/dist/memory/unified-memory-manager.d.ts +0 -116
- package/dist/memory/unified-memory-manager.d.ts.map +0 -1
- package/dist/memory/unified-memory-manager.js +0 -397
- package/dist/memory/unified-memory-manager.js.map +0 -1
- package/dist/migration/logger.d.ts +0 -26
- package/dist/migration/logger.d.ts.map +0 -1
- package/dist/migration/logger.js +0 -145
- package/dist/migration/logger.js.map +0 -1
- package/dist/migration/migration-analyzer.d.ts +0 -18
- package/dist/migration/migration-analyzer.d.ts.map +0 -1
- package/dist/migration/migration-analyzer.js +0 -284
- package/dist/migration/migration-analyzer.js.map +0 -1
- package/dist/migration/migration-runner.d.ts +0 -26
- package/dist/migration/migration-runner.d.ts.map +0 -1
- package/dist/migration/migration-runner.js +0 -505
- package/dist/migration/migration-runner.js.map +0 -1
- package/dist/migration/migration-validator.d.ts +0 -17
- package/dist/migration/migration-validator.d.ts.map +0 -1
- package/dist/migration/migration-validator.js +0 -309
- package/dist/migration/migration-validator.js.map +0 -1
- package/dist/migration/progress-reporter.d.ts +0 -28
- package/dist/migration/progress-reporter.d.ts.map +0 -1
- package/dist/migration/progress-reporter.js +0 -163
- package/dist/migration/progress-reporter.js.map +0 -1
- package/dist/migration/rollback-manager.d.ts +0 -24
- package/dist/migration/rollback-manager.d.ts.map +0 -1
- package/dist/migration/rollback-manager.js +0 -351
- package/dist/migration/rollback-manager.js.map +0 -1
- package/dist/migration/types.d.ts +0 -103
- package/dist/migration/types.d.ts.map +0 -1
- package/dist/migration/types.js +0 -6
- package/dist/migration/types.js.map +0 -1
- package/dist/reasoningbank/reasoningbank-adapter.d.ts +0 -93
- package/dist/reasoningbank/reasoningbank-adapter.d.ts.map +0 -1
- package/dist/reasoningbank/reasoningbank-adapter.js +0 -365
- package/dist/reasoningbank/reasoningbank-adapter.js.map +0 -1
- package/dist/sdk/query-control.d.ts +0 -131
- package/dist/sdk/query-control.d.ts.map +0 -1
- package/dist/sdk/query-control.js +0 -363
- package/dist/sdk/query-control.js.map +0 -1
- package/dist/sdk/session-forking.d.ts +0 -109
- package/dist/sdk/session-forking.d.ts.map +0 -1
- package/dist/sdk/session-forking.js +0 -275
- package/dist/sdk/session-forking.js.map +0 -1
- package/dist/swarm/types.d.ts +0 -578
- package/dist/swarm/types.d.ts.map +0 -1
- package/dist/swarm/types.js +0 -54
- package/dist/swarm/types.js.map +0 -1
- package/dist/terminal/adapters/base.d.ts +0 -40
- package/dist/terminal/adapters/base.d.ts.map +0 -1
- package/dist/terminal/adapters/base.js +0 -5
- package/dist/terminal/adapters/base.js.map +0 -1
- package/dist/terminal/adapters/native.d.ts +0 -19
- package/dist/terminal/adapters/native.d.ts.map +0 -1
- package/dist/terminal/adapters/native.js +0 -414
- package/dist/terminal/adapters/native.js.map +0 -1
- package/dist/terminal/adapters/vscode.d.ts +0 -23
- package/dist/terminal/adapters/vscode.d.ts.map +0 -1
- package/dist/terminal/adapters/vscode.js +0 -267
- package/dist/terminal/adapters/vscode.js.map +0 -1
- package/dist/terminal/manager.d.ts +0 -59
- package/dist/terminal/manager.d.ts.map +0 -1
- package/dist/terminal/manager.js +0 -235
- package/dist/terminal/manager.js.map +0 -1
- package/dist/terminal/pool.d.ts +0 -32
- package/dist/terminal/pool.d.ts.map +0 -1
- package/dist/terminal/pool.js +0 -208
- package/dist/terminal/pool.js.map +0 -1
- package/dist/terminal/session.d.ts +0 -41
- package/dist/terminal/session.d.ts.map +0 -1
- package/dist/terminal/session.js +0 -210
- package/dist/terminal/session.js.map +0 -1
- package/dist/utils/error-handler.d.ts +0 -14
- package/dist/utils/error-handler.d.ts.map +0 -1
- package/dist/utils/error-handler.js +0 -29
- package/dist/utils/error-handler.js.map +0 -1
- package/dist/utils/errors.d.ts +0 -121
- package/dist/utils/errors.d.ts.map +0 -1
- package/dist/utils/errors.js +0 -194
- package/dist/utils/errors.js.map +0 -1
- package/dist/utils/formatters.d.ts +0 -15
- package/dist/utils/formatters.d.ts.map +0 -1
- package/dist/utils/formatters.js +0 -75
- package/dist/utils/formatters.js.map +0 -1
- package/dist/utils/helpers.d.ts +0 -134
- package/dist/utils/helpers.d.ts.map +0 -1
- package/dist/utils/helpers.js +0 -444
- package/dist/utils/helpers.js.map +0 -1
- package/dist/utils/key-redactor.d.ts +0 -46
- package/dist/utils/key-redactor.d.ts.map +0 -1
- package/dist/utils/key-redactor.js +0 -153
- package/dist/utils/key-redactor.js.map +0 -1
- package/dist/utils/metrics-reader.d.ts +0 -67
- package/dist/utils/metrics-reader.d.ts.map +0 -1
- package/dist/utils/metrics-reader.js +0 -201
- package/dist/utils/metrics-reader.js.map +0 -1
- package/dist/utils/npx-isolated-cache.d.ts +0 -17
- package/dist/utils/npx-isolated-cache.d.ts.map +0 -1
- package/dist/utils/npx-isolated-cache.js +0 -140
- package/dist/utils/npx-isolated-cache.js.map +0 -1
- package/dist/utils/project-root.d.ts +0 -35
- package/dist/utils/project-root.d.ts.map +0 -1
- package/dist/utils/project-root.js +0 -115
- package/dist/utils/project-root.js.map +0 -1
- package/dist/utils/type-guards.d.ts +0 -117
- package/dist/utils/type-guards.d.ts.map +0 -1
- package/dist/utils/type-guards.js +0 -166
- package/dist/utils/type-guards.js.map +0 -1
- package/dist/utils/types.d.ts +0 -568
- package/dist/utils/types.d.ts.map +0 -1
- package/dist/utils/types.js +0 -37
- package/dist/utils/types.js.map +0 -1
- /package/docs/{COMMANDS_TO_SKILLS_MIGRATION.md → development/COMMANDS_TO_SKILLS_MIGRATION.md} +0 -0
- /package/docs/{FINAL_INIT_STRUCTURE.md → development/FINAL_INIT_STRUCTURE.md} +0 -0
- /package/docs/{CLI-MEMORY-COMMANDS-WORKING.md → fixes/CLI-MEMORY-COMMANDS-WORKING.md} +0 -0
- /package/docs/{PERFORMANCE-JSON-IMPROVEMENTS.md → performance/PERFORMANCE-JSON-IMPROVEMENTS.md} +0 -0
- /package/docs/{PERFORMANCE-METRICS-GUIDE.md → performance/PERFORMANCE-METRICS-GUIDE.md} +0 -0
- /package/docs/{RELEASE-NOTES-v2.7.0-alpha.9.md → releases/v2.7.0-alpha.9/RELEASE-NOTES-v2.7.0-alpha.9.md} +0 -0
|
@@ -1,910 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from 'events';
|
|
2
|
-
import { writeFile, readFile, mkdir, readdir } from 'fs/promises';
|
|
3
|
-
import { join } from 'path';
|
|
4
|
-
import { spawn } from 'child_process';
|
|
5
|
-
import { Logger } from '../core/logger.js';
|
|
6
|
-
import { ConfigManager } from '../core/config.js';
|
|
7
|
-
export class SecurityManager extends EventEmitter {
|
|
8
|
-
scans = new Map();
|
|
9
|
-
policies = new Map();
|
|
10
|
-
incidents = new Map();
|
|
11
|
-
vulnerabilityDatabases = new Map();
|
|
12
|
-
securityPath;
|
|
13
|
-
logger;
|
|
14
|
-
config;
|
|
15
|
-
constructor(securityPath = './security', logger, config) {
|
|
16
|
-
super();
|
|
17
|
-
this.securityPath = securityPath;
|
|
18
|
-
this.logger = logger || new Logger({ level: 'info', format: 'text', destination: 'console' });
|
|
19
|
-
this.config = config || ConfigManager.getInstance();
|
|
20
|
-
}
|
|
21
|
-
async initialize() {
|
|
22
|
-
try {
|
|
23
|
-
await mkdir(this.securityPath, { recursive: true });
|
|
24
|
-
await mkdir(join(this.securityPath, 'scans'), { recursive: true });
|
|
25
|
-
await mkdir(join(this.securityPath, 'policies'), { recursive: true });
|
|
26
|
-
await mkdir(join(this.securityPath, 'incidents'), { recursive: true });
|
|
27
|
-
await mkdir(join(this.securityPath, 'reports'), { recursive: true });
|
|
28
|
-
await mkdir(join(this.securityPath, 'databases'), { recursive: true });
|
|
29
|
-
await this.loadConfigurations();
|
|
30
|
-
await this.initializeDefaultPolicies();
|
|
31
|
-
await this.initializeVulnerabilityDatabases();
|
|
32
|
-
this.logger.info('Security Manager initialized successfully');
|
|
33
|
-
}
|
|
34
|
-
catch (error) {
|
|
35
|
-
this.logger.error('Failed to initialize Security Manager', { error });
|
|
36
|
-
throw error;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
async createSecurityScan(scanData) {
|
|
40
|
-
const scan = {
|
|
41
|
-
id: `scan-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`,
|
|
42
|
-
name: scanData.name,
|
|
43
|
-
type: scanData.type,
|
|
44
|
-
status: 'pending',
|
|
45
|
-
projectId: scanData.projectId,
|
|
46
|
-
target: scanData.target,
|
|
47
|
-
configuration: {
|
|
48
|
-
scanner: this.getDefaultScanner(scanData.type),
|
|
49
|
-
rules: [],
|
|
50
|
-
excludes: [],
|
|
51
|
-
severity: ['critical', 'high', 'medium', 'low'],
|
|
52
|
-
formats: ['json', 'html'],
|
|
53
|
-
outputPath: join(this.securityPath, 'reports'),
|
|
54
|
-
...scanData.configuration,
|
|
55
|
-
},
|
|
56
|
-
results: [],
|
|
57
|
-
metrics: {
|
|
58
|
-
totalFindings: 0,
|
|
59
|
-
criticalFindings: 0,
|
|
60
|
-
highFindings: 0,
|
|
61
|
-
mediumFindings: 0,
|
|
62
|
-
lowFindings: 0,
|
|
63
|
-
falsePositives: 0,
|
|
64
|
-
suppressed: 0,
|
|
65
|
-
scanDuration: 0,
|
|
66
|
-
filesScanned: 0,
|
|
67
|
-
linesScanned: 0,
|
|
68
|
-
},
|
|
69
|
-
compliance: {
|
|
70
|
-
frameworks: [],
|
|
71
|
-
requirements: [],
|
|
72
|
-
overallScore: 0,
|
|
73
|
-
passedChecks: 0,
|
|
74
|
-
failedChecks: 0,
|
|
75
|
-
},
|
|
76
|
-
remediation: {
|
|
77
|
-
autoFixAvailable: [],
|
|
78
|
-
manualReview: [],
|
|
79
|
-
recommendations: [],
|
|
80
|
-
},
|
|
81
|
-
schedule: scanData.schedule,
|
|
82
|
-
notifications: {
|
|
83
|
-
channels: [],
|
|
84
|
-
thresholds: {
|
|
85
|
-
critical: 1,
|
|
86
|
-
high: 5,
|
|
87
|
-
medium: 10,
|
|
88
|
-
},
|
|
89
|
-
},
|
|
90
|
-
createdAt: new Date(),
|
|
91
|
-
updatedAt: new Date(),
|
|
92
|
-
createdBy: 'system',
|
|
93
|
-
auditLog: [],
|
|
94
|
-
};
|
|
95
|
-
this.addAuditEntry(scan, 'system', 'scan_created', 'scan', {
|
|
96
|
-
scanId: scan.id,
|
|
97
|
-
scanName: scan.name,
|
|
98
|
-
scanType: scan.type,
|
|
99
|
-
});
|
|
100
|
-
this.scans.set(scan.id, scan);
|
|
101
|
-
await this.saveScan(scan);
|
|
102
|
-
this.emit('scan:created', scan);
|
|
103
|
-
this.logger.info(`Security scan created: ${scan.name} (${scan.id})`);
|
|
104
|
-
return scan;
|
|
105
|
-
}
|
|
106
|
-
async executeScan(scanId) {
|
|
107
|
-
const scan = this.scans.get(scanId);
|
|
108
|
-
if (!scan) {
|
|
109
|
-
throw new Error(`Scan not found: ${scanId}`);
|
|
110
|
-
}
|
|
111
|
-
if (scan.status !== 'pending') {
|
|
112
|
-
throw new Error(`Scan ${scanId} is not in pending status`);
|
|
113
|
-
}
|
|
114
|
-
scan.status = 'running';
|
|
115
|
-
scan.updatedAt = new Date();
|
|
116
|
-
this.addAuditEntry(scan, 'system', 'scan_started', 'scan', {
|
|
117
|
-
scanId,
|
|
118
|
-
target: scan.target,
|
|
119
|
-
});
|
|
120
|
-
await this.saveScan(scan);
|
|
121
|
-
this.emit('scan:started', scan);
|
|
122
|
-
try {
|
|
123
|
-
const startTime = Date.now();
|
|
124
|
-
// Execute the appropriate scanner
|
|
125
|
-
const findings = await this.executeScanEngine(scan);
|
|
126
|
-
const endTime = Date.now();
|
|
127
|
-
scan.metrics.scanDuration = endTime - startTime;
|
|
128
|
-
scan.results = findings;
|
|
129
|
-
scan.status = 'completed';
|
|
130
|
-
// Calculate metrics
|
|
131
|
-
this.calculateScanMetrics(scan);
|
|
132
|
-
// Run compliance checks
|
|
133
|
-
await this.runComplianceChecks(scan);
|
|
134
|
-
// Generate remediation recommendations
|
|
135
|
-
await this.generateRemediationRecommendations(scan);
|
|
136
|
-
// Check notification thresholds
|
|
137
|
-
await this.checkNotificationThresholds(scan);
|
|
138
|
-
scan.updatedAt = new Date();
|
|
139
|
-
this.addAuditEntry(scan, 'system', 'scan_completed', 'scan', {
|
|
140
|
-
scanId,
|
|
141
|
-
duration: scan.metrics.scanDuration,
|
|
142
|
-
findingsCount: scan.results.length,
|
|
143
|
-
});
|
|
144
|
-
await this.saveScan(scan);
|
|
145
|
-
this.emit('scan:completed', scan);
|
|
146
|
-
this.logger.info(`Security scan completed: ${scan.name} (${scan.id}) - ${scan.results.length} findings`);
|
|
147
|
-
}
|
|
148
|
-
catch (error) {
|
|
149
|
-
scan.status = 'failed';
|
|
150
|
-
scan.updatedAt = new Date();
|
|
151
|
-
this.addAuditEntry(scan, 'system', 'scan_failed', 'scan', {
|
|
152
|
-
scanId,
|
|
153
|
-
error: error instanceof Error ? error.message : String(error),
|
|
154
|
-
});
|
|
155
|
-
await this.saveScan(scan);
|
|
156
|
-
this.emit('scan:failed', { scan, error });
|
|
157
|
-
this.logger.error(`Security scan failed: ${scan.name} (${scanId})`, { error });
|
|
158
|
-
throw error;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
async createSecurityIncident(incidentData) {
|
|
162
|
-
const incident = {
|
|
163
|
-
id: `incident-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`,
|
|
164
|
-
title: incidentData.title,
|
|
165
|
-
description: incidentData.description,
|
|
166
|
-
severity: incidentData.severity,
|
|
167
|
-
status: 'open',
|
|
168
|
-
type: incidentData.type,
|
|
169
|
-
source: incidentData.source,
|
|
170
|
-
affected: {
|
|
171
|
-
systems: [],
|
|
172
|
-
data: [],
|
|
173
|
-
users: [],
|
|
174
|
-
...incidentData.affected,
|
|
175
|
-
},
|
|
176
|
-
timeline: {
|
|
177
|
-
detected: new Date(),
|
|
178
|
-
reported: new Date(),
|
|
179
|
-
acknowledged: new Date(),
|
|
180
|
-
},
|
|
181
|
-
response: {
|
|
182
|
-
assignedTo: [],
|
|
183
|
-
actions: [],
|
|
184
|
-
communications: [],
|
|
185
|
-
lessons: [],
|
|
186
|
-
},
|
|
187
|
-
evidence: {
|
|
188
|
-
logs: [],
|
|
189
|
-
files: [],
|
|
190
|
-
screenshots: [],
|
|
191
|
-
forensics: [],
|
|
192
|
-
},
|
|
193
|
-
impact: {
|
|
194
|
-
confidentiality: 'none',
|
|
195
|
-
integrity: 'none',
|
|
196
|
-
availability: 'none',
|
|
197
|
-
},
|
|
198
|
-
rootCause: {
|
|
199
|
-
primary: '',
|
|
200
|
-
contributing: [],
|
|
201
|
-
analysis: '',
|
|
202
|
-
},
|
|
203
|
-
remediation: {
|
|
204
|
-
immediate: [],
|
|
205
|
-
shortTerm: [],
|
|
206
|
-
longTerm: [],
|
|
207
|
-
preventive: [],
|
|
208
|
-
},
|
|
209
|
-
createdAt: new Date(),
|
|
210
|
-
updatedAt: new Date(),
|
|
211
|
-
createdBy: 'system',
|
|
212
|
-
auditLog: [],
|
|
213
|
-
};
|
|
214
|
-
this.addAuditEntry(incident, 'system', 'incident_created', 'incident', {
|
|
215
|
-
incidentId: incident.id,
|
|
216
|
-
severity: incident.severity,
|
|
217
|
-
type: incident.type,
|
|
218
|
-
});
|
|
219
|
-
this.incidents.set(incident.id, incident);
|
|
220
|
-
await this.saveIncident(incident);
|
|
221
|
-
// Auto-assign based on severity and type
|
|
222
|
-
await this.autoAssignIncident(incident);
|
|
223
|
-
// Send immediate notifications for high/critical incidents
|
|
224
|
-
if (incident.severity === 'critical' || incident.severity === 'high') {
|
|
225
|
-
await this.sendIncidentNotification(incident);
|
|
226
|
-
}
|
|
227
|
-
this.emit('incident:created', incident);
|
|
228
|
-
this.logger.info(`Security incident created: ${incident.title} (${incident.id})`);
|
|
229
|
-
return incident;
|
|
230
|
-
}
|
|
231
|
-
async updateIncident(incidentId, updates, userId = 'system') {
|
|
232
|
-
const incident = this.incidents.get(incidentId);
|
|
233
|
-
if (!incident) {
|
|
234
|
-
throw new Error(`Incident not found: ${incidentId}`);
|
|
235
|
-
}
|
|
236
|
-
const oldStatus = incident.status;
|
|
237
|
-
Object.assign(incident, updates);
|
|
238
|
-
incident.updatedAt = new Date();
|
|
239
|
-
// Update timeline based on status changes
|
|
240
|
-
if (updates.status && updates.status !== oldStatus) {
|
|
241
|
-
this.updateIncidentTimeline(incident, updates.status);
|
|
242
|
-
}
|
|
243
|
-
this.addAuditEntry(incident, userId, 'incident_updated', 'incident', {
|
|
244
|
-
incidentId,
|
|
245
|
-
changes: Object.keys(updates),
|
|
246
|
-
oldStatus,
|
|
247
|
-
newStatus: incident.status,
|
|
248
|
-
});
|
|
249
|
-
await this.saveIncident(incident);
|
|
250
|
-
this.emit('incident:updated', { incident, updates });
|
|
251
|
-
this.logger.info(`Security incident updated: ${incident.title} (${incidentId})`);
|
|
252
|
-
return incident;
|
|
253
|
-
}
|
|
254
|
-
async runComplianceAssessment(frameworks, scope) {
|
|
255
|
-
const checks = [];
|
|
256
|
-
for (const framework of frameworks) {
|
|
257
|
-
const frameworkChecks = await this.runFrameworkChecks(framework, scope);
|
|
258
|
-
checks.push(...frameworkChecks);
|
|
259
|
-
}
|
|
260
|
-
this.logger.info(`Compliance assessment completed: ${checks.length} checks across ${frameworks.length} frameworks`);
|
|
261
|
-
this.emit('compliance:assessed', { frameworks, checks, scope });
|
|
262
|
-
return checks;
|
|
263
|
-
}
|
|
264
|
-
async createSecurityPolicy(policyData) {
|
|
265
|
-
const policy = {
|
|
266
|
-
id: `policy-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`,
|
|
267
|
-
name: policyData.name,
|
|
268
|
-
description: policyData.description,
|
|
269
|
-
type: policyData.type,
|
|
270
|
-
version: '1.0.0',
|
|
271
|
-
status: 'draft',
|
|
272
|
-
rules: policyData.rules.map((rule) => ({
|
|
273
|
-
id: `rule-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`,
|
|
274
|
-
...rule,
|
|
275
|
-
})),
|
|
276
|
-
enforcement: {
|
|
277
|
-
level: 'warning',
|
|
278
|
-
exceptions: [],
|
|
279
|
-
approvers: [],
|
|
280
|
-
...policyData.enforcement,
|
|
281
|
-
},
|
|
282
|
-
applicability: {
|
|
283
|
-
projects: [],
|
|
284
|
-
environments: [],
|
|
285
|
-
resources: [],
|
|
286
|
-
...policyData.applicability,
|
|
287
|
-
},
|
|
288
|
-
schedule: {
|
|
289
|
-
reviewFrequency: 'annually',
|
|
290
|
-
nextReview: new Date(Date.now() + 365 * 24 * 60 * 60 * 1000), // 1 year
|
|
291
|
-
reviewer: 'security-team',
|
|
292
|
-
},
|
|
293
|
-
metrics: {
|
|
294
|
-
violations: 0,
|
|
295
|
-
compliance: 100,
|
|
296
|
-
exceptions: 0,
|
|
297
|
-
},
|
|
298
|
-
createdAt: new Date(),
|
|
299
|
-
updatedAt: new Date(),
|
|
300
|
-
createdBy: 'system',
|
|
301
|
-
};
|
|
302
|
-
this.policies.set(policy.id, policy);
|
|
303
|
-
await this.savePolicy(policy);
|
|
304
|
-
this.emit('policy:created', policy);
|
|
305
|
-
this.logger.info(`Security policy created: ${policy.name} (${policy.id})`);
|
|
306
|
-
return policy;
|
|
307
|
-
}
|
|
308
|
-
async getSecurityMetrics(filters) {
|
|
309
|
-
let scans = Array.from(this.scans.values());
|
|
310
|
-
let incidents = Array.from(this.incidents.values());
|
|
311
|
-
// Apply filters
|
|
312
|
-
if (filters) {
|
|
313
|
-
if (filters.timeRange) {
|
|
314
|
-
scans = scans.filter((s) => s.createdAt >= filters.timeRange.start && s.createdAt <= filters.timeRange.end);
|
|
315
|
-
incidents = incidents.filter((i) => i.createdAt >= filters.timeRange.start && i.createdAt <= filters.timeRange.end);
|
|
316
|
-
}
|
|
317
|
-
if (filters.projectId) {
|
|
318
|
-
scans = scans.filter((s) => s.projectId === filters.projectId);
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
// Calculate scan metrics
|
|
322
|
-
const scanMetrics = {
|
|
323
|
-
total: scans.length,
|
|
324
|
-
completed: scans.filter((s) => s.status === 'completed').length,
|
|
325
|
-
failed: scans.filter((s) => s.status === 'failed').length,
|
|
326
|
-
inProgress: scans.filter((s) => s.status === 'running').length,
|
|
327
|
-
byType: this.groupBy(scans, 'type'),
|
|
328
|
-
averageDuration: scans.length > 0
|
|
329
|
-
? scans.reduce((sum, s) => sum + s.metrics.scanDuration, 0) / scans.length
|
|
330
|
-
: 0,
|
|
331
|
-
};
|
|
332
|
-
// Calculate finding metrics
|
|
333
|
-
const allFindings = scans.flatMap((s) => s.results);
|
|
334
|
-
const findingMetrics = {
|
|
335
|
-
total: allFindings.length,
|
|
336
|
-
open: allFindings.filter((f) => f.status === 'open').length,
|
|
337
|
-
resolved: allFindings.filter((f) => f.status === 'resolved').length,
|
|
338
|
-
suppressed: allFindings.filter((f) => f.status === 'suppressed').length,
|
|
339
|
-
bySeverity: this.groupBy(allFindings, 'severity'),
|
|
340
|
-
byCategory: this.groupBy(allFindings, 'category'),
|
|
341
|
-
meanTimeToResolution: this.calculateMTTR(allFindings),
|
|
342
|
-
};
|
|
343
|
-
// Calculate compliance metrics
|
|
344
|
-
const allComplianceChecks = scans.flatMap((s) => s.compliance.requirements);
|
|
345
|
-
const complianceFrameworks = {};
|
|
346
|
-
for (const check of allComplianceChecks) {
|
|
347
|
-
if (!complianceFrameworks[check.framework]) {
|
|
348
|
-
complianceFrameworks[check.framework] = {
|
|
349
|
-
total: 0,
|
|
350
|
-
passed: 0,
|
|
351
|
-
failed: 0,
|
|
352
|
-
score: 0,
|
|
353
|
-
};
|
|
354
|
-
}
|
|
355
|
-
complianceFrameworks[check.framework].total++;
|
|
356
|
-
if (check.status === 'passed') {
|
|
357
|
-
complianceFrameworks[check.framework].passed++;
|
|
358
|
-
}
|
|
359
|
-
else if (check.status === 'failed') {
|
|
360
|
-
complianceFrameworks[check.framework].failed++;
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
// Calculate scores
|
|
364
|
-
for (const framework in complianceFrameworks) {
|
|
365
|
-
const fw = complianceFrameworks[framework];
|
|
366
|
-
fw.score = fw.total > 0 ? (fw.passed / fw.total) * 100 : 0;
|
|
367
|
-
}
|
|
368
|
-
const overallComplianceScore = Object.values(complianceFrameworks).length > 0
|
|
369
|
-
? Object.values(complianceFrameworks).reduce((sum, fw) => sum + fw.score, 0) /
|
|
370
|
-
Object.values(complianceFrameworks).length
|
|
371
|
-
: 0;
|
|
372
|
-
// Calculate incident metrics
|
|
373
|
-
const incidentMetrics = {
|
|
374
|
-
total: incidents.length,
|
|
375
|
-
open: incidents.filter((i) => i.status === 'open' || i.status === 'investigating').length,
|
|
376
|
-
resolved: incidents.filter((i) => i.status === 'resolved' || i.status === 'closed').length,
|
|
377
|
-
bySeverity: this.groupBy(incidents, 'severity'),
|
|
378
|
-
meanTimeToDetection: this.calculateMTTD(incidents),
|
|
379
|
-
meanTimeToResponse: this.calculateMTTResponse(incidents),
|
|
380
|
-
meanTimeToResolution: this.calculateIncidentMTTR(incidents),
|
|
381
|
-
};
|
|
382
|
-
// Policy metrics
|
|
383
|
-
const policies = Array.from(this.policies.values());
|
|
384
|
-
const policyMetrics = {
|
|
385
|
-
total: policies.length,
|
|
386
|
-
active: policies.filter((p) => p.status === 'active').length,
|
|
387
|
-
violations: policies.reduce((sum, p) => sum + p.metrics.violations, 0),
|
|
388
|
-
compliance: policies.length > 0
|
|
389
|
-
? policies.reduce((sum, p) => sum + p.metrics.compliance, 0) / policies.length
|
|
390
|
-
: 0,
|
|
391
|
-
};
|
|
392
|
-
return {
|
|
393
|
-
scans: scanMetrics,
|
|
394
|
-
findings: findingMetrics,
|
|
395
|
-
compliance: {
|
|
396
|
-
frameworks: complianceFrameworks,
|
|
397
|
-
overallScore: overallComplianceScore,
|
|
398
|
-
trending: 'stable', // Would be calculated from historical data
|
|
399
|
-
},
|
|
400
|
-
incidents: incidentMetrics,
|
|
401
|
-
policies: policyMetrics,
|
|
402
|
-
trends: {
|
|
403
|
-
findingsTrend: [], // Would be calculated from historical data
|
|
404
|
-
complianceTrend: [], // Would be calculated from historical data
|
|
405
|
-
incidentsTrend: [], // Would be calculated from historical data
|
|
406
|
-
},
|
|
407
|
-
};
|
|
408
|
-
}
|
|
409
|
-
// Private helper methods
|
|
410
|
-
async loadConfigurations() {
|
|
411
|
-
try {
|
|
412
|
-
// Load scans
|
|
413
|
-
const scanFiles = await readdir(join(this.securityPath, 'scans'));
|
|
414
|
-
for (const file of scanFiles.filter((f) => f.endsWith('.json'))) {
|
|
415
|
-
const content = await readFile(join(this.securityPath, 'scans', file), 'utf-8');
|
|
416
|
-
const scan = JSON.parse(content);
|
|
417
|
-
this.scans.set(scan.id, scan);
|
|
418
|
-
}
|
|
419
|
-
// Load policies
|
|
420
|
-
const policyFiles = await readdir(join(this.securityPath, 'policies'));
|
|
421
|
-
for (const file of policyFiles.filter((f) => f.endsWith('.json'))) {
|
|
422
|
-
const content = await readFile(join(this.securityPath, 'policies', file), 'utf-8');
|
|
423
|
-
const policy = JSON.parse(content);
|
|
424
|
-
this.policies.set(policy.id, policy);
|
|
425
|
-
}
|
|
426
|
-
// Load incidents
|
|
427
|
-
const incidentFiles = await readdir(join(this.securityPath, 'incidents'));
|
|
428
|
-
for (const file of incidentFiles.filter((f) => f.endsWith('.json'))) {
|
|
429
|
-
const content = await readFile(join(this.securityPath, 'incidents', file), 'utf-8');
|
|
430
|
-
const incident = JSON.parse(content);
|
|
431
|
-
this.incidents.set(incident.id, incident);
|
|
432
|
-
}
|
|
433
|
-
this.logger.info(`Loaded ${this.scans.size} scans, ${this.policies.size} policies, ${this.incidents.size} incidents`);
|
|
434
|
-
}
|
|
435
|
-
catch (error) {
|
|
436
|
-
this.logger.warn('Failed to load some security configurations', { error });
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
async initializeDefaultPolicies() {
|
|
440
|
-
const defaultPolicies = [
|
|
441
|
-
{
|
|
442
|
-
name: 'Critical Vulnerability Policy',
|
|
443
|
-
description: 'Immediate action required for critical vulnerabilities',
|
|
444
|
-
type: 'scanning',
|
|
445
|
-
rules: [
|
|
446
|
-
{
|
|
447
|
-
name: 'Critical CVSS Score',
|
|
448
|
-
description: 'Alert on vulnerabilities with CVSS score >= 9.0',
|
|
449
|
-
condition: 'cvss.score >= 9.0',
|
|
450
|
-
action: 'alert',
|
|
451
|
-
severity: 'critical',
|
|
452
|
-
parameters: { threshold: 9.0 },
|
|
453
|
-
enabled: true,
|
|
454
|
-
},
|
|
455
|
-
],
|
|
456
|
-
enforcement: {
|
|
457
|
-
level: 'blocking',
|
|
458
|
-
exceptions: [],
|
|
459
|
-
approvers: ['security-lead'],
|
|
460
|
-
},
|
|
461
|
-
},
|
|
462
|
-
{
|
|
463
|
-
name: 'Secret Detection Policy',
|
|
464
|
-
description: 'Detect exposed secrets and credentials',
|
|
465
|
-
type: 'scanning',
|
|
466
|
-
rules: [
|
|
467
|
-
{
|
|
468
|
-
name: 'API Key Detection',
|
|
469
|
-
description: 'Detect exposed API keys',
|
|
470
|
-
condition: 'category == "secret" && type == "api-key"',
|
|
471
|
-
action: 'deny',
|
|
472
|
-
severity: 'high',
|
|
473
|
-
parameters: {},
|
|
474
|
-
enabled: true,
|
|
475
|
-
},
|
|
476
|
-
],
|
|
477
|
-
},
|
|
478
|
-
];
|
|
479
|
-
for (const policyData of defaultPolicies) {
|
|
480
|
-
if (!Array.from(this.policies.values()).some((p) => p.name === policyData.name)) {
|
|
481
|
-
await this.createSecurityPolicy(policyData);
|
|
482
|
-
}
|
|
483
|
-
}
|
|
484
|
-
}
|
|
485
|
-
async initializeVulnerabilityDatabases() {
|
|
486
|
-
const databases = [
|
|
487
|
-
{
|
|
488
|
-
id: 'nvd',
|
|
489
|
-
name: 'National Vulnerability Database',
|
|
490
|
-
type: 'nvd',
|
|
491
|
-
url: 'https://nvd.nist.gov/feeds/json/cve/1.1/',
|
|
492
|
-
updateFrequency: 'daily',
|
|
493
|
-
lastUpdate: new Date(),
|
|
494
|
-
status: 'active',
|
|
495
|
-
configuration: {},
|
|
496
|
-
},
|
|
497
|
-
{
|
|
498
|
-
id: 'github-advisories',
|
|
499
|
-
name: 'GitHub Security Advisories',
|
|
500
|
-
type: 'github',
|
|
501
|
-
url: 'https://api.github.com/advisories',
|
|
502
|
-
updateFrequency: 'daily',
|
|
503
|
-
lastUpdate: new Date(),
|
|
504
|
-
status: 'active',
|
|
505
|
-
configuration: {},
|
|
506
|
-
},
|
|
507
|
-
];
|
|
508
|
-
for (const db of databases) {
|
|
509
|
-
this.vulnerabilityDatabases.set(db.id, db);
|
|
510
|
-
}
|
|
511
|
-
}
|
|
512
|
-
getDefaultScanner(type) {
|
|
513
|
-
const scanners = {
|
|
514
|
-
vulnerability: 'trivy',
|
|
515
|
-
dependency: 'npm-audit',
|
|
516
|
-
'code-quality': 'sonarqube',
|
|
517
|
-
secrets: 'gitleaks',
|
|
518
|
-
compliance: 'inspec',
|
|
519
|
-
infrastructure: 'checkov',
|
|
520
|
-
container: 'clair',
|
|
521
|
-
};
|
|
522
|
-
return scanners[type] || 'generic';
|
|
523
|
-
}
|
|
524
|
-
async executeScanEngine(scan) {
|
|
525
|
-
const findings = [];
|
|
526
|
-
switch (scan.configuration.scanner) {
|
|
527
|
-
case 'trivy':
|
|
528
|
-
return this.executeTrivyScan(scan);
|
|
529
|
-
case 'npm-audit':
|
|
530
|
-
return this.executeNpmAuditScan(scan);
|
|
531
|
-
case 'gitleaks':
|
|
532
|
-
return this.executeGitleaksScan(scan);
|
|
533
|
-
case 'checkov':
|
|
534
|
-
return this.executeCheckovScan(scan);
|
|
535
|
-
default:
|
|
536
|
-
return this.executeGenericScan(scan);
|
|
537
|
-
}
|
|
538
|
-
}
|
|
539
|
-
async executeTrivyScan(scan) {
|
|
540
|
-
return new Promise((resolve, reject) => {
|
|
541
|
-
const findings = [];
|
|
542
|
-
// Mock Trivy execution
|
|
543
|
-
const mockFindings = [
|
|
544
|
-
{
|
|
545
|
-
id: `finding-${Date.now()}-1`,
|
|
546
|
-
title: 'CVE-2023-12345: Remote Code Execution in libxml2',
|
|
547
|
-
description: 'A buffer overflow vulnerability in libxml2 allows remote code execution',
|
|
548
|
-
severity: 'critical',
|
|
549
|
-
category: 'vulnerability',
|
|
550
|
-
cve: 'CVE-2023-12345',
|
|
551
|
-
cvss: {
|
|
552
|
-
score: 9.8,
|
|
553
|
-
vector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H',
|
|
554
|
-
version: '3.1',
|
|
555
|
-
},
|
|
556
|
-
location: {
|
|
557
|
-
file: 'package-lock.json',
|
|
558
|
-
line: 125,
|
|
559
|
-
component: 'libxml2@2.9.10',
|
|
560
|
-
},
|
|
561
|
-
evidence: {
|
|
562
|
-
snippet: '"libxml2": "2.9.10"',
|
|
563
|
-
context: 'Dependency declaration',
|
|
564
|
-
references: ['https://nvd.nist.gov/vuln/detail/CVE-2023-12345'],
|
|
565
|
-
},
|
|
566
|
-
impact: 'Remote attackers could execute arbitrary code',
|
|
567
|
-
remediation: {
|
|
568
|
-
description: 'Update libxml2 to version 2.9.14 or later',
|
|
569
|
-
effort: 'low',
|
|
570
|
-
priority: 'critical',
|
|
571
|
-
autoFixable: true,
|
|
572
|
-
steps: ['npm update libxml2'],
|
|
573
|
-
references: ['https://github.com/GNOME/libxml2/releases'],
|
|
574
|
-
},
|
|
575
|
-
status: 'open',
|
|
576
|
-
tags: ['cve', 'rce', 'dependency'],
|
|
577
|
-
metadata: {},
|
|
578
|
-
firstSeen: new Date(),
|
|
579
|
-
lastSeen: new Date(),
|
|
580
|
-
occurrences: 1,
|
|
581
|
-
},
|
|
582
|
-
];
|
|
583
|
-
// Simulate scan delay
|
|
584
|
-
setTimeout(() => {
|
|
585
|
-
resolve(mockFindings);
|
|
586
|
-
}, 2000);
|
|
587
|
-
});
|
|
588
|
-
}
|
|
589
|
-
async executeNpmAuditScan(scan) {
|
|
590
|
-
return new Promise((resolve, reject) => {
|
|
591
|
-
const command = 'npm';
|
|
592
|
-
const args = ['audit', '--json'];
|
|
593
|
-
const child = spawn(command, args, {
|
|
594
|
-
cwd: scan.target.path,
|
|
595
|
-
stdio: ['pipe', 'pipe', 'pipe'],
|
|
596
|
-
});
|
|
597
|
-
let stdout = '';
|
|
598
|
-
let stderr = '';
|
|
599
|
-
child.stdout?.on('data', (data) => {
|
|
600
|
-
stdout += data.toString();
|
|
601
|
-
});
|
|
602
|
-
child.stderr?.on('data', (data) => {
|
|
603
|
-
stderr += data.toString();
|
|
604
|
-
});
|
|
605
|
-
child.on('close', (code) => {
|
|
606
|
-
try {
|
|
607
|
-
const auditResult = JSON.parse(stdout);
|
|
608
|
-
const findings = this.parseNpmAuditResults(auditResult);
|
|
609
|
-
resolve(findings);
|
|
610
|
-
}
|
|
611
|
-
catch (error) {
|
|
612
|
-
reject(new Error(`Failed to parse npm audit results: ${error instanceof Error ? error.message : String(error)}`));
|
|
613
|
-
}
|
|
614
|
-
});
|
|
615
|
-
child.on('error', (error) => {
|
|
616
|
-
reject(error);
|
|
617
|
-
});
|
|
618
|
-
});
|
|
619
|
-
}
|
|
620
|
-
async executeGitleaksScan(scan) {
|
|
621
|
-
// Mock Gitleaks scan for secrets detection
|
|
622
|
-
return [
|
|
623
|
-
{
|
|
624
|
-
id: `finding-${Date.now()}-2`,
|
|
625
|
-
title: 'Exposed AWS Access Key',
|
|
626
|
-
description: 'AWS access key found in source code',
|
|
627
|
-
severity: 'high',
|
|
628
|
-
category: 'secret',
|
|
629
|
-
location: {
|
|
630
|
-
file: 'config/aws.js',
|
|
631
|
-
line: 12,
|
|
632
|
-
column: 20,
|
|
633
|
-
},
|
|
634
|
-
evidence: {
|
|
635
|
-
snippet: 'const accessKey = "AKIA123456789..."',
|
|
636
|
-
context: 'Hardcoded AWS credentials',
|
|
637
|
-
},
|
|
638
|
-
impact: 'Unauthorized access to AWS resources',
|
|
639
|
-
remediation: {
|
|
640
|
-
description: 'Remove hardcoded credentials and use environment variables or IAM roles',
|
|
641
|
-
effort: 'medium',
|
|
642
|
-
priority: 'high',
|
|
643
|
-
autoFixable: false,
|
|
644
|
-
steps: [
|
|
645
|
-
'Remove hardcoded credentials',
|
|
646
|
-
'Use environment variables',
|
|
647
|
-
'Rotate compromised keys',
|
|
648
|
-
],
|
|
649
|
-
references: ['https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html'],
|
|
650
|
-
},
|
|
651
|
-
status: 'open',
|
|
652
|
-
tags: ['secret', 'aws', 'credentials'],
|
|
653
|
-
metadata: {},
|
|
654
|
-
firstSeen: new Date(),
|
|
655
|
-
lastSeen: new Date(),
|
|
656
|
-
occurrences: 1,
|
|
657
|
-
},
|
|
658
|
-
];
|
|
659
|
-
}
|
|
660
|
-
async executeCheckovScan(scan) {
|
|
661
|
-
// Mock Checkov scan for infrastructure as code
|
|
662
|
-
return [];
|
|
663
|
-
}
|
|
664
|
-
async executeGenericScan(scan) {
|
|
665
|
-
// Generic scan implementation
|
|
666
|
-
return [];
|
|
667
|
-
}
|
|
668
|
-
parseNpmAuditResults(auditResult) {
|
|
669
|
-
const findings = [];
|
|
670
|
-
if (auditResult.vulnerabilities) {
|
|
671
|
-
for (const [packageName, vulnData] of Object.entries(auditResult.vulnerabilities)) {
|
|
672
|
-
const vuln = vulnData;
|
|
673
|
-
findings.push({
|
|
674
|
-
id: `finding-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`,
|
|
675
|
-
title: `${vuln.severity} vulnerability in ${packageName}`,
|
|
676
|
-
description: vuln.title || 'Vulnerability detected',
|
|
677
|
-
severity: vuln.severity,
|
|
678
|
-
category: 'vulnerability',
|
|
679
|
-
cve: vuln.cve,
|
|
680
|
-
location: {
|
|
681
|
-
file: 'package.json',
|
|
682
|
-
component: packageName,
|
|
683
|
-
},
|
|
684
|
-
evidence: {
|
|
685
|
-
snippet: `"${packageName}": "${vuln.range}"`,
|
|
686
|
-
references: vuln.url ? [vuln.url] : [],
|
|
687
|
-
},
|
|
688
|
-
impact: vuln.overview || 'Security vulnerability',
|
|
689
|
-
remediation: {
|
|
690
|
-
description: vuln.recommendation || 'Update to a secure version',
|
|
691
|
-
effort: 'low',
|
|
692
|
-
priority: vuln.severity === 'info'
|
|
693
|
-
? 'low'
|
|
694
|
-
: vuln.severity,
|
|
695
|
-
autoFixable: true,
|
|
696
|
-
steps: [`npm update ${packageName}`],
|
|
697
|
-
references: vuln.url ? [vuln.url] : [],
|
|
698
|
-
},
|
|
699
|
-
status: 'open',
|
|
700
|
-
tags: ['npm', 'dependency'],
|
|
701
|
-
metadata: { packageName, range: vuln.range },
|
|
702
|
-
firstSeen: new Date(),
|
|
703
|
-
lastSeen: new Date(),
|
|
704
|
-
occurrences: 1,
|
|
705
|
-
});
|
|
706
|
-
}
|
|
707
|
-
}
|
|
708
|
-
return findings;
|
|
709
|
-
}
|
|
710
|
-
calculateScanMetrics(scan) {
|
|
711
|
-
const findings = scan.results;
|
|
712
|
-
scan.metrics.totalFindings = findings.length;
|
|
713
|
-
scan.metrics.criticalFindings = findings.filter((f) => f.severity === 'critical').length;
|
|
714
|
-
scan.metrics.highFindings = findings.filter((f) => f.severity === 'high').length;
|
|
715
|
-
scan.metrics.mediumFindings = findings.filter((f) => f.severity === 'medium').length;
|
|
716
|
-
scan.metrics.lowFindings = findings.filter((f) => f.severity === 'low').length;
|
|
717
|
-
scan.metrics.falsePositives = findings.filter((f) => f.status === 'false-positive').length;
|
|
718
|
-
scan.metrics.suppressed = findings.filter((f) => f.status === 'suppressed').length;
|
|
719
|
-
}
|
|
720
|
-
async runComplianceChecks(scan) {
|
|
721
|
-
// Mock compliance checks
|
|
722
|
-
const frameworks = ['SOC2', 'GDPR', 'PCI-DSS'];
|
|
723
|
-
for (const framework of frameworks) {
|
|
724
|
-
const checks = await this.runFrameworkChecks(framework, { projectId: scan.projectId });
|
|
725
|
-
scan.compliance.requirements.push(...checks);
|
|
726
|
-
}
|
|
727
|
-
scan.compliance.frameworks = frameworks;
|
|
728
|
-
scan.compliance.passedChecks = scan.compliance.requirements.filter((r) => r.status === 'passed').length;
|
|
729
|
-
scan.compliance.failedChecks = scan.compliance.requirements.filter((r) => r.status === 'failed').length;
|
|
730
|
-
scan.compliance.overallScore =
|
|
731
|
-
scan.compliance.requirements.length > 0
|
|
732
|
-
? (scan.compliance.passedChecks / scan.compliance.requirements.length) * 100
|
|
733
|
-
: 0;
|
|
734
|
-
}
|
|
735
|
-
async runFrameworkChecks(framework, scope) {
|
|
736
|
-
// Mock compliance checks for different frameworks
|
|
737
|
-
const mockChecks = [
|
|
738
|
-
{
|
|
739
|
-
id: `check-${Date.now()}-1`,
|
|
740
|
-
framework,
|
|
741
|
-
control: 'CC6.1',
|
|
742
|
-
description: 'Encryption in transit',
|
|
743
|
-
status: 'passed',
|
|
744
|
-
severity: 'high',
|
|
745
|
-
evidence: 'TLS 1.2+ configured',
|
|
746
|
-
lastChecked: new Date(),
|
|
747
|
-
},
|
|
748
|
-
{
|
|
749
|
-
id: `check-${Date.now()}-2`,
|
|
750
|
-
framework,
|
|
751
|
-
control: 'CC6.7',
|
|
752
|
-
description: 'Encryption at rest',
|
|
753
|
-
status: 'failed',
|
|
754
|
-
severity: 'medium',
|
|
755
|
-
remediation: 'Enable database encryption',
|
|
756
|
-
lastChecked: new Date(),
|
|
757
|
-
},
|
|
758
|
-
];
|
|
759
|
-
return mockChecks;
|
|
760
|
-
}
|
|
761
|
-
async generateRemediationRecommendations(scan) {
|
|
762
|
-
const autoFixable = scan.results.filter((f) => f.remediation.autoFixable);
|
|
763
|
-
const manualReview = scan.results.filter((f) => !f.remediation.autoFixable);
|
|
764
|
-
scan.remediation.autoFixAvailable = autoFixable;
|
|
765
|
-
scan.remediation.manualReview = manualReview;
|
|
766
|
-
// Generate general recommendations
|
|
767
|
-
scan.remediation.recommendations = [
|
|
768
|
-
{
|
|
769
|
-
id: `rec-${Date.now()}-1`,
|
|
770
|
-
title: 'Implement Automated Dependency Updates',
|
|
771
|
-
description: 'Set up automated dependency updates to reduce vulnerability exposure',
|
|
772
|
-
category: 'vulnerability-management',
|
|
773
|
-
priority: 'high',
|
|
774
|
-
effort: 'medium',
|
|
775
|
-
impact: 'Reduces time to patch vulnerabilities',
|
|
776
|
-
implementation: {
|
|
777
|
-
steps: [
|
|
778
|
-
'Configure Dependabot or Renovate',
|
|
779
|
-
'Set up automated testing pipeline',
|
|
780
|
-
'Enable auto-merge for low-risk updates',
|
|
781
|
-
],
|
|
782
|
-
tools: ['Dependabot', 'Renovate', 'GitHub Actions'],
|
|
783
|
-
timeEstimate: '2-4 hours',
|
|
784
|
-
cost: 'Free',
|
|
785
|
-
},
|
|
786
|
-
references: [
|
|
787
|
-
'https://docs.github.com/en/code-security/dependabot',
|
|
788
|
-
'https://renovatebot.com/',
|
|
789
|
-
],
|
|
790
|
-
applicableFrameworks: ['SOC2', 'ISO27001'],
|
|
791
|
-
},
|
|
792
|
-
];
|
|
793
|
-
}
|
|
794
|
-
async checkNotificationThresholds(scan) {
|
|
795
|
-
const thresholds = scan.notifications.thresholds;
|
|
796
|
-
if (scan.metrics.criticalFindings >= thresholds.critical ||
|
|
797
|
-
scan.metrics.highFindings >= thresholds.high ||
|
|
798
|
-
scan.metrics.mediumFindings >= thresholds.medium) {
|
|
799
|
-
await this.sendScanNotification(scan);
|
|
800
|
-
}
|
|
801
|
-
}
|
|
802
|
-
async sendScanNotification(scan) {
|
|
803
|
-
const message = `Security scan '${scan.name}' completed with ${scan.metrics.totalFindings} findings (${scan.metrics.criticalFindings} critical, ${scan.metrics.highFindings} high)`;
|
|
804
|
-
this.emit('notification:scan', {
|
|
805
|
-
scan,
|
|
806
|
-
message,
|
|
807
|
-
severity: scan.metrics.criticalFindings > 0
|
|
808
|
-
? 'critical'
|
|
809
|
-
: scan.metrics.highFindings > 0
|
|
810
|
-
? 'high'
|
|
811
|
-
: 'medium',
|
|
812
|
-
});
|
|
813
|
-
this.logger.warn(message);
|
|
814
|
-
}
|
|
815
|
-
async autoAssignIncident(incident) {
|
|
816
|
-
// Auto-assign based on severity and type
|
|
817
|
-
const assignmentRules = {
|
|
818
|
-
critical: ['security-lead', 'ciso'],
|
|
819
|
-
high: ['security-team'],
|
|
820
|
-
medium: ['security-analyst'],
|
|
821
|
-
low: ['security-analyst'],
|
|
822
|
-
};
|
|
823
|
-
incident.response.assignedTo = assignmentRules[incident.severity] || ['security-team'];
|
|
824
|
-
}
|
|
825
|
-
async sendIncidentNotification(incident) {
|
|
826
|
-
const message = `SECURITY INCIDENT: ${incident.title} (${incident.severity.toUpperCase()})`;
|
|
827
|
-
this.emit('notification:incident', {
|
|
828
|
-
incident,
|
|
829
|
-
message,
|
|
830
|
-
urgency: incident.severity === 'critical' ? 'immediate' : 'high',
|
|
831
|
-
});
|
|
832
|
-
this.logger.error(message);
|
|
833
|
-
}
|
|
834
|
-
updateIncidentTimeline(incident, newStatus) {
|
|
835
|
-
const now = new Date();
|
|
836
|
-
switch (newStatus) {
|
|
837
|
-
case 'investigating':
|
|
838
|
-
incident.timeline.acknowledged = now;
|
|
839
|
-
break;
|
|
840
|
-
case 'contained':
|
|
841
|
-
incident.timeline.contained = now;
|
|
842
|
-
break;
|
|
843
|
-
case 'resolved':
|
|
844
|
-
incident.timeline.resolved = now;
|
|
845
|
-
break;
|
|
846
|
-
case 'closed':
|
|
847
|
-
incident.timeline.closed = now;
|
|
848
|
-
break;
|
|
849
|
-
}
|
|
850
|
-
}
|
|
851
|
-
async saveScan(scan) {
|
|
852
|
-
const filePath = join(this.securityPath, 'scans', `${scan.id}.json`);
|
|
853
|
-
await writeFile(filePath, JSON.stringify(scan, null, 2));
|
|
854
|
-
}
|
|
855
|
-
async savePolicy(policy) {
|
|
856
|
-
const filePath = join(this.securityPath, 'policies', `${policy.id}.json`);
|
|
857
|
-
await writeFile(filePath, JSON.stringify(policy, null, 2));
|
|
858
|
-
}
|
|
859
|
-
async saveIncident(incident) {
|
|
860
|
-
const filePath = join(this.securityPath, 'incidents', `${incident.id}.json`);
|
|
861
|
-
await writeFile(filePath, JSON.stringify(incident, null, 2));
|
|
862
|
-
}
|
|
863
|
-
addAuditEntry(target, userId, action, targetType, details) {
|
|
864
|
-
const entry = {
|
|
865
|
-
id: `audit-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`,
|
|
866
|
-
timestamp: new Date(),
|
|
867
|
-
userId,
|
|
868
|
-
action,
|
|
869
|
-
target: targetType,
|
|
870
|
-
details,
|
|
871
|
-
};
|
|
872
|
-
target.auditLog.push(entry);
|
|
873
|
-
}
|
|
874
|
-
groupBy(array, key) {
|
|
875
|
-
return array.reduce((groups, item) => {
|
|
876
|
-
const value = String(item[key]);
|
|
877
|
-
groups[value] = (groups[value] || 0) + 1;
|
|
878
|
-
return groups;
|
|
879
|
-
}, {});
|
|
880
|
-
}
|
|
881
|
-
calculateMTTR(findings) {
|
|
882
|
-
const resolvedFindings = findings.filter((f) => f.status === 'resolved' && f.firstSeen && f.lastSeen);
|
|
883
|
-
if (resolvedFindings.length === 0)
|
|
884
|
-
return 0;
|
|
885
|
-
const totalTime = resolvedFindings.reduce((sum, f) => sum + (f.lastSeen.getTime() - f.firstSeen.getTime()), 0);
|
|
886
|
-
return totalTime / resolvedFindings.length;
|
|
887
|
-
}
|
|
888
|
-
calculateMTTD(incidents) {
|
|
889
|
-
const detectedIncidents = incidents.filter((i) => i.timeline.detected && i.timeline.reported);
|
|
890
|
-
if (detectedIncidents.length === 0)
|
|
891
|
-
return 0;
|
|
892
|
-
const totalTime = detectedIncidents.reduce((sum, i) => sum + (i.timeline.reported.getTime() - i.timeline.detected.getTime()), 0);
|
|
893
|
-
return totalTime / detectedIncidents.length;
|
|
894
|
-
}
|
|
895
|
-
calculateMTTResponse(incidents) {
|
|
896
|
-
const respondedIncidents = incidents.filter((i) => i.timeline.reported && i.timeline.acknowledged);
|
|
897
|
-
if (respondedIncidents.length === 0)
|
|
898
|
-
return 0;
|
|
899
|
-
const totalTime = respondedIncidents.reduce((sum, i) => sum + (i.timeline.acknowledged.getTime() - i.timeline.reported.getTime()), 0);
|
|
900
|
-
return totalTime / respondedIncidents.length;
|
|
901
|
-
}
|
|
902
|
-
calculateIncidentMTTR(incidents) {
|
|
903
|
-
const resolvedIncidents = incidents.filter((i) => i.timeline.reported && i.timeline.resolved);
|
|
904
|
-
if (resolvedIncidents.length === 0)
|
|
905
|
-
return 0;
|
|
906
|
-
const totalTime = resolvedIncidents.reduce((sum, i) => sum + (i.timeline.resolved.getTime() - i.timeline.reported.getTime()), 0);
|
|
907
|
-
return totalTime / resolvedIncidents.length;
|
|
908
|
-
}
|
|
909
|
-
}
|
|
910
|
-
//# sourceMappingURL=security-manager.js.map
|