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,1014 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from 'events';
|
|
2
|
-
import { writeFile, readFile, mkdir, readdir } from 'fs/promises';
|
|
3
|
-
import { join } from 'path';
|
|
4
|
-
import { createHash } from 'crypto';
|
|
5
|
-
import { Logger } from '../core/logger.js';
|
|
6
|
-
import { ConfigManager } from '../core/config.js';
|
|
7
|
-
export class AuditManager extends EventEmitter {
|
|
8
|
-
auditTrails = new Map();
|
|
9
|
-
frameworks = new Map();
|
|
10
|
-
reports = new Map();
|
|
11
|
-
auditBuffer = [];
|
|
12
|
-
auditPath;
|
|
13
|
-
logger;
|
|
14
|
-
config;
|
|
15
|
-
configuration;
|
|
16
|
-
constructor(auditPath = './audit', logger, config) {
|
|
17
|
-
super();
|
|
18
|
-
this.auditPath = auditPath;
|
|
19
|
-
this.logger = logger || new Logger({ level: 'info', format: 'text', destination: 'console' });
|
|
20
|
-
this.config = config || ConfigManager.getInstance();
|
|
21
|
-
this.configuration = this.getDefaultConfiguration();
|
|
22
|
-
}
|
|
23
|
-
async initialize() {
|
|
24
|
-
try {
|
|
25
|
-
await mkdir(this.auditPath, { recursive: true });
|
|
26
|
-
await mkdir(join(this.auditPath, 'trails'), { recursive: true });
|
|
27
|
-
await mkdir(join(this.auditPath, 'frameworks'), { recursive: true });
|
|
28
|
-
await mkdir(join(this.auditPath, 'reports'), { recursive: true });
|
|
29
|
-
await mkdir(join(this.auditPath, 'evidence'), { recursive: true });
|
|
30
|
-
await mkdir(join(this.auditPath, 'exports'), { recursive: true });
|
|
31
|
-
await this.loadConfigurations();
|
|
32
|
-
await this.initializeDefaultFrameworks();
|
|
33
|
-
await this.startAuditProcessing();
|
|
34
|
-
this.logger.info('Audit Manager initialized successfully');
|
|
35
|
-
}
|
|
36
|
-
catch (error) {
|
|
37
|
-
this.logger.error('Failed to initialize Audit Manager', { error });
|
|
38
|
-
throw error;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
async logAuditEvent(eventData) {
|
|
42
|
-
const entry = {
|
|
43
|
-
id: `audit-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`,
|
|
44
|
-
timestamp: new Date(),
|
|
45
|
-
eventType: eventData.eventType,
|
|
46
|
-
category: eventData.category,
|
|
47
|
-
severity: eventData.severity || 'medium',
|
|
48
|
-
userId: eventData.userId,
|
|
49
|
-
sessionId: eventData.sessionId,
|
|
50
|
-
resource: eventData.resource,
|
|
51
|
-
action: eventData.action,
|
|
52
|
-
outcome: eventData.outcome,
|
|
53
|
-
details: eventData.details,
|
|
54
|
-
context: {
|
|
55
|
-
source: 'system',
|
|
56
|
-
...eventData.context,
|
|
57
|
-
},
|
|
58
|
-
compliance: {
|
|
59
|
-
frameworks: eventData.compliance?.frameworks || [],
|
|
60
|
-
controls: eventData.compliance?.controls || [],
|
|
61
|
-
retention: this.calculateRetentionPeriod(eventData.category, eventData.compliance?.frameworks),
|
|
62
|
-
classification: eventData.compliance?.classification || 'internal',
|
|
63
|
-
},
|
|
64
|
-
integrity: {
|
|
65
|
-
hash: '',
|
|
66
|
-
verified: false,
|
|
67
|
-
},
|
|
68
|
-
metadata: {},
|
|
69
|
-
};
|
|
70
|
-
// Calculate integrity hash
|
|
71
|
-
entry.integrity.hash = this.calculateHash(entry);
|
|
72
|
-
entry.integrity.verified = true;
|
|
73
|
-
// Add to buffer for batch processing
|
|
74
|
-
this.auditBuffer.push(entry);
|
|
75
|
-
// Immediate processing for critical events
|
|
76
|
-
if (entry.severity === 'critical') {
|
|
77
|
-
await this.processAuditEntry(entry);
|
|
78
|
-
await this.generateSecurityAlert(entry);
|
|
79
|
-
}
|
|
80
|
-
// Batch process if buffer is full
|
|
81
|
-
if (this.auditBuffer.length >= this.configuration.collection.batchSize) {
|
|
82
|
-
await this.flushAuditBuffer();
|
|
83
|
-
}
|
|
84
|
-
this.emit('audit:logged', entry);
|
|
85
|
-
return entry;
|
|
86
|
-
}
|
|
87
|
-
async createComplianceFramework(frameworkData) {
|
|
88
|
-
const framework = {
|
|
89
|
-
id: `framework-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`,
|
|
90
|
-
name: frameworkData.name,
|
|
91
|
-
version: frameworkData.version,
|
|
92
|
-
description: frameworkData.description,
|
|
93
|
-
type: frameworkData.type,
|
|
94
|
-
requirements: frameworkData.requirements.map((req, index) => ({
|
|
95
|
-
id: `req-${Date.now()}-${index}`,
|
|
96
|
-
...req,
|
|
97
|
-
automatedCheck: {
|
|
98
|
-
enabled: false,
|
|
99
|
-
frequency: 'daily',
|
|
100
|
-
query: '',
|
|
101
|
-
...req.automatedCheck,
|
|
102
|
-
},
|
|
103
|
-
})),
|
|
104
|
-
auditFrequency: frameworkData.auditFrequency,
|
|
105
|
-
retentionPeriod: frameworkData.retentionPeriod,
|
|
106
|
-
reportingRequirements: {
|
|
107
|
-
frequency: 'quarterly',
|
|
108
|
-
recipients: [],
|
|
109
|
-
format: ['pdf', 'json'],
|
|
110
|
-
automated: false,
|
|
111
|
-
},
|
|
112
|
-
controls: frameworkData.controls.map((control, index) => ({
|
|
113
|
-
id: `control-${Date.now()}-${index}`,
|
|
114
|
-
...control,
|
|
115
|
-
})),
|
|
116
|
-
status: 'active',
|
|
117
|
-
implementationDate: new Date(),
|
|
118
|
-
nextReview: new Date(Date.now() + 365 * 24 * 60 * 60 * 1000), // 1 year
|
|
119
|
-
responsible: frameworkData.responsible,
|
|
120
|
-
};
|
|
121
|
-
this.frameworks.set(framework.id, framework);
|
|
122
|
-
await this.saveFramework(framework);
|
|
123
|
-
await this.logAuditEvent({
|
|
124
|
-
eventType: 'compliance_framework_created',
|
|
125
|
-
category: 'compliance',
|
|
126
|
-
severity: 'medium',
|
|
127
|
-
resource: { type: 'compliance-framework', id: framework.id, name: framework.name },
|
|
128
|
-
action: 'create',
|
|
129
|
-
outcome: 'success',
|
|
130
|
-
details: { frameworkType: framework.type, requirementsCount: framework.requirements.length },
|
|
131
|
-
context: { source: 'audit-manager' },
|
|
132
|
-
compliance: { frameworks: [framework.id] },
|
|
133
|
-
});
|
|
134
|
-
this.emit('framework:created', framework);
|
|
135
|
-
this.logger.info(`Compliance framework created: ${framework.name} (${framework.id})`);
|
|
136
|
-
return framework;
|
|
137
|
-
}
|
|
138
|
-
async generateAuditReport(reportConfig) {
|
|
139
|
-
const report = {
|
|
140
|
-
id: `report-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`,
|
|
141
|
-
title: reportConfig.title,
|
|
142
|
-
description: reportConfig.description,
|
|
143
|
-
type: reportConfig.type,
|
|
144
|
-
scope: reportConfig.scope,
|
|
145
|
-
findings: [],
|
|
146
|
-
recommendations: [],
|
|
147
|
-
summary: {
|
|
148
|
-
totalEvents: 0,
|
|
149
|
-
criticalFindings: 0,
|
|
150
|
-
complianceScore: 0,
|
|
151
|
-
riskLevel: 'low',
|
|
152
|
-
},
|
|
153
|
-
methodology: 'Automated analysis of audit trail data with manual review of findings',
|
|
154
|
-
limitations: [],
|
|
155
|
-
reviewers: [],
|
|
156
|
-
approvers: [],
|
|
157
|
-
status: 'draft',
|
|
158
|
-
confidentiality: reportConfig.confidentiality || 'internal',
|
|
159
|
-
createdAt: new Date(),
|
|
160
|
-
updatedAt: new Date(),
|
|
161
|
-
createdBy: 'audit-manager',
|
|
162
|
-
};
|
|
163
|
-
// Collect relevant audit entries
|
|
164
|
-
const auditEntries = await this.queryAuditEntries(reportConfig.scope);
|
|
165
|
-
report.summary.totalEvents = auditEntries.length;
|
|
166
|
-
// Analyze entries for findings
|
|
167
|
-
const findings = await this.analyzeAuditEntries(auditEntries, reportConfig.type);
|
|
168
|
-
report.findings = findings;
|
|
169
|
-
report.summary.criticalFindings = findings.filter((f) => f.severity === 'critical').length;
|
|
170
|
-
// Calculate compliance score
|
|
171
|
-
if (reportConfig.scope.compliance && reportConfig.scope.compliance.length > 0) {
|
|
172
|
-
report.summary.complianceScore = await this.calculateComplianceScore(reportConfig.scope.compliance, auditEntries);
|
|
173
|
-
}
|
|
174
|
-
// Determine risk level
|
|
175
|
-
report.summary.riskLevel = this.calculateRiskLevel(findings);
|
|
176
|
-
// Generate recommendations
|
|
177
|
-
if (reportConfig.includeRecommendations !== false) {
|
|
178
|
-
report.recommendations = await this.generateRecommendations(findings, reportConfig.type);
|
|
179
|
-
}
|
|
180
|
-
this.reports.set(report.id, report);
|
|
181
|
-
await this.saveReport(report);
|
|
182
|
-
await this.logAuditEvent({
|
|
183
|
-
eventType: 'audit_report_generated',
|
|
184
|
-
category: 'compliance',
|
|
185
|
-
severity: 'medium',
|
|
186
|
-
resource: { type: 'audit-report', id: report.id, name: report.title },
|
|
187
|
-
action: 'generate',
|
|
188
|
-
outcome: 'success',
|
|
189
|
-
details: {
|
|
190
|
-
reportType: report.type,
|
|
191
|
-
totalEvents: report.summary.totalEvents,
|
|
192
|
-
findingsCount: report.findings.length,
|
|
193
|
-
complianceScore: report.summary.complianceScore,
|
|
194
|
-
},
|
|
195
|
-
context: { source: 'audit-manager' },
|
|
196
|
-
compliance: { frameworks: reportConfig.scope.compliance || [] },
|
|
197
|
-
});
|
|
198
|
-
this.emit('report:generated', report);
|
|
199
|
-
this.logger.info(`Audit report generated: ${report.title} (${report.id})`);
|
|
200
|
-
return report;
|
|
201
|
-
}
|
|
202
|
-
async exportAuditData(exportConfig) {
|
|
203
|
-
const entries = await this.queryAuditEntries(exportConfig.scope);
|
|
204
|
-
let exportData;
|
|
205
|
-
const timestamp = new Date().toISOString().replace(/[:.]/g, '-');
|
|
206
|
-
const filename = `audit-export-${timestamp}.${exportConfig.format}`;
|
|
207
|
-
const filepath = join(this.auditPath, 'exports', filename);
|
|
208
|
-
switch (exportConfig.format) {
|
|
209
|
-
case 'json':
|
|
210
|
-
exportData = JSON.stringify(entries, null, 2);
|
|
211
|
-
break;
|
|
212
|
-
case 'csv':
|
|
213
|
-
exportData = this.convertToCSV(entries);
|
|
214
|
-
break;
|
|
215
|
-
case 'xml':
|
|
216
|
-
exportData = this.convertToXML(entries);
|
|
217
|
-
break;
|
|
218
|
-
case 'pdf':
|
|
219
|
-
exportData = await this.convertToPDF(entries);
|
|
220
|
-
break;
|
|
221
|
-
default:
|
|
222
|
-
throw new Error(`Unsupported export format: ${exportConfig.format}`);
|
|
223
|
-
}
|
|
224
|
-
// Apply compression if requested
|
|
225
|
-
if (exportConfig.compression) {
|
|
226
|
-
// Would implement compression here
|
|
227
|
-
}
|
|
228
|
-
// Apply encryption if requested
|
|
229
|
-
if (exportConfig.encryption) {
|
|
230
|
-
// Would implement encryption here
|
|
231
|
-
}
|
|
232
|
-
await writeFile(filepath, exportData);
|
|
233
|
-
await this.logAuditEvent({
|
|
234
|
-
eventType: 'audit_data_exported',
|
|
235
|
-
category: 'data-access',
|
|
236
|
-
severity: 'medium',
|
|
237
|
-
resource: { type: 'audit-data', id: 'export', path: filepath },
|
|
238
|
-
action: 'export',
|
|
239
|
-
outcome: 'success',
|
|
240
|
-
details: {
|
|
241
|
-
format: exportConfig.format,
|
|
242
|
-
recordCount: entries.length,
|
|
243
|
-
timeRange: exportConfig.scope.timeRange,
|
|
244
|
-
compressed: exportConfig.compression || false,
|
|
245
|
-
encrypted: exportConfig.encryption || false,
|
|
246
|
-
},
|
|
247
|
-
context: { source: 'audit-manager' },
|
|
248
|
-
});
|
|
249
|
-
this.emit('data:exported', {
|
|
250
|
-
filepath,
|
|
251
|
-
format: exportConfig.format,
|
|
252
|
-
recordCount: entries.length,
|
|
253
|
-
});
|
|
254
|
-
this.logger.info(`Audit data exported: ${filename} (${entries.length} records)`);
|
|
255
|
-
return filepath;
|
|
256
|
-
}
|
|
257
|
-
async verifyAuditIntegrity(trailId) {
|
|
258
|
-
const issues = [];
|
|
259
|
-
let totalEntries = 0;
|
|
260
|
-
let verifiedEntries = 0;
|
|
261
|
-
let corruptedEntries = 0;
|
|
262
|
-
let missingEntries = 0;
|
|
263
|
-
const trails = trailId
|
|
264
|
-
? [this.auditTrails.get(trailId)].filter(Boolean)
|
|
265
|
-
: Array.from(this.auditTrails.values());
|
|
266
|
-
for (const trail of trails) {
|
|
267
|
-
for (const entry of trail.entries) {
|
|
268
|
-
totalEntries++;
|
|
269
|
-
// Verify hash
|
|
270
|
-
const calculatedHash = this.calculateHash(entry);
|
|
271
|
-
if (calculatedHash === entry.integrity.hash) {
|
|
272
|
-
verifiedEntries++;
|
|
273
|
-
}
|
|
274
|
-
else {
|
|
275
|
-
corruptedEntries++;
|
|
276
|
-
issues.push({
|
|
277
|
-
timestamp: new Date(),
|
|
278
|
-
type: 'checksum-mismatch',
|
|
279
|
-
description: `Hash mismatch for audit entry ${entry.id}`,
|
|
280
|
-
severity: 'high',
|
|
281
|
-
investigationStatus: 'pending',
|
|
282
|
-
evidence: [`Expected: ${entry.integrity.hash}`, `Calculated: ${calculatedHash}`],
|
|
283
|
-
});
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
// Update trail integrity status
|
|
287
|
-
trail.integrity.verified = issues.length === 0;
|
|
288
|
-
trail.integrity.lastVerification = new Date();
|
|
289
|
-
trail.integrity.tamperEvidence = issues;
|
|
290
|
-
await this.saveAuditTrail(trail);
|
|
291
|
-
}
|
|
292
|
-
const verified = issues.length === 0;
|
|
293
|
-
await this.logAuditEvent({
|
|
294
|
-
eventType: 'audit_integrity_verification',
|
|
295
|
-
category: 'security',
|
|
296
|
-
severity: verified ? 'low' : 'high',
|
|
297
|
-
resource: { type: 'audit-trail', id: trailId || 'all' },
|
|
298
|
-
action: 'verify',
|
|
299
|
-
outcome: verified ? 'success' : 'failure',
|
|
300
|
-
details: {
|
|
301
|
-
totalEntries,
|
|
302
|
-
verifiedEntries,
|
|
303
|
-
corruptedEntries,
|
|
304
|
-
issuesFound: issues.length,
|
|
305
|
-
},
|
|
306
|
-
context: { source: 'audit-manager' },
|
|
307
|
-
});
|
|
308
|
-
if (!verified) {
|
|
309
|
-
this.emit('integrity:compromised', {
|
|
310
|
-
issues,
|
|
311
|
-
summary: { totalEntries, verifiedEntries, corruptedEntries, missingEntries },
|
|
312
|
-
});
|
|
313
|
-
this.logger.error(`Audit integrity verification failed: ${issues.length} issues found`);
|
|
314
|
-
}
|
|
315
|
-
else {
|
|
316
|
-
this.logger.info(`Audit integrity verification successful: ${totalEntries} entries verified`);
|
|
317
|
-
}
|
|
318
|
-
return {
|
|
319
|
-
verified,
|
|
320
|
-
issues,
|
|
321
|
-
summary: { totalEntries, verifiedEntries, corruptedEntries, missingEntries },
|
|
322
|
-
};
|
|
323
|
-
}
|
|
324
|
-
async getAuditMetrics(timeRange) {
|
|
325
|
-
const range = timeRange || {
|
|
326
|
-
start: new Date(Date.now() - 30 * 24 * 60 * 60 * 1000), // Last 30 days
|
|
327
|
-
end: new Date(),
|
|
328
|
-
};
|
|
329
|
-
const entries = await this.queryAuditEntries({ timeRange: range });
|
|
330
|
-
// Volume metrics
|
|
331
|
-
const volumeMetrics = {
|
|
332
|
-
totalEntries: entries.length,
|
|
333
|
-
dailyAverage: entries.length / 30,
|
|
334
|
-
peakHourly: this.calculatePeakHourly(entries),
|
|
335
|
-
byCategory: this.groupBy(entries, 'category'),
|
|
336
|
-
bySeverity: this.groupBy(entries, 'severity'),
|
|
337
|
-
};
|
|
338
|
-
// Compliance metrics
|
|
339
|
-
const complianceMetrics = {
|
|
340
|
-
overallScore: 85, // Would be calculated from actual compliance data
|
|
341
|
-
byFramework: {},
|
|
342
|
-
trending: 'stable',
|
|
343
|
-
};
|
|
344
|
-
// Calculate compliance scores by framework
|
|
345
|
-
for (const framework of this.frameworks.values()) {
|
|
346
|
-
const score = await this.calculateComplianceScore([framework.id], entries);
|
|
347
|
-
complianceMetrics.byFramework[framework.id] = {
|
|
348
|
-
score,
|
|
349
|
-
compliant: framework.requirements.filter((r) => r.status === 'compliant').length,
|
|
350
|
-
nonCompliant: framework.requirements.filter((r) => r.status === 'non-compliant').length,
|
|
351
|
-
total: framework.requirements.length,
|
|
352
|
-
};
|
|
353
|
-
}
|
|
354
|
-
// Integrity metrics
|
|
355
|
-
const integrityMetrics = {
|
|
356
|
-
verificationSuccess: 99.5,
|
|
357
|
-
tamperAttempts: entries.filter((e) => e.eventType === 'unauthorized_access').length,
|
|
358
|
-
dataLoss: 0,
|
|
359
|
-
corruptionEvents: 0,
|
|
360
|
-
};
|
|
361
|
-
// Performance metrics
|
|
362
|
-
const performanceMetrics = {
|
|
363
|
-
ingestionRate: entries.length / 24, // entries per hour
|
|
364
|
-
queryResponseTime: 150, // ms
|
|
365
|
-
storageEfficiency: 85, // percentage
|
|
366
|
-
availabilityPercentage: 99.9,
|
|
367
|
-
};
|
|
368
|
-
// Security metrics
|
|
369
|
-
const securityMetrics = {
|
|
370
|
-
unauthorizedAccess: entries.filter((e) => e.outcome === 'denied' || e.eventType === 'unauthorized_access').length,
|
|
371
|
-
privilegedActions: entries.filter((e) => e.details.privileged === true).length,
|
|
372
|
-
suspiciousPatterns: entries.filter((e) => e.severity === 'critical').length,
|
|
373
|
-
escalatedIncidents: entries.filter((e) => e.category === 'security' && e.severity === 'critical').length,
|
|
374
|
-
};
|
|
375
|
-
return {
|
|
376
|
-
volume: volumeMetrics,
|
|
377
|
-
compliance: complianceMetrics,
|
|
378
|
-
integrity: integrityMetrics,
|
|
379
|
-
performance: performanceMetrics,
|
|
380
|
-
security: securityMetrics,
|
|
381
|
-
};
|
|
382
|
-
}
|
|
383
|
-
// Private helper methods
|
|
384
|
-
getDefaultConfiguration() {
|
|
385
|
-
return {
|
|
386
|
-
general: {
|
|
387
|
-
enabled: true,
|
|
388
|
-
defaultRetention: '7y',
|
|
389
|
-
compressionEnabled: true,
|
|
390
|
-
encryptionEnabled: true,
|
|
391
|
-
realTimeProcessing: true,
|
|
392
|
-
},
|
|
393
|
-
collection: {
|
|
394
|
-
automaticCapture: true,
|
|
395
|
-
bufferSize: 10000,
|
|
396
|
-
batchSize: 1000,
|
|
397
|
-
flushInterval: 60000,
|
|
398
|
-
failureHandling: 'retry',
|
|
399
|
-
},
|
|
400
|
-
storage: {
|
|
401
|
-
primaryLocation: join(this.auditPath, 'trails'),
|
|
402
|
-
partitioning: 'daily',
|
|
403
|
-
indexing: true,
|
|
404
|
-
},
|
|
405
|
-
integrity: {
|
|
406
|
-
checksumAlgorithm: 'sha256',
|
|
407
|
-
verificationFrequency: 'daily',
|
|
408
|
-
digitalSignatures: false,
|
|
409
|
-
immutableStorage: true,
|
|
410
|
-
},
|
|
411
|
-
compliance: {
|
|
412
|
-
frameworks: [],
|
|
413
|
-
automaticClassification: true,
|
|
414
|
-
retentionPolicies: {
|
|
415
|
-
authentication: '3y',
|
|
416
|
-
'data-access': '7y',
|
|
417
|
-
'system-change': '5y',
|
|
418
|
-
security: '7y',
|
|
419
|
-
compliance: '10y',
|
|
420
|
-
},
|
|
421
|
-
exportFormats: ['json', 'csv', 'pdf'],
|
|
422
|
-
},
|
|
423
|
-
monitoring: {
|
|
424
|
-
alerting: {
|
|
425
|
-
enabled: true,
|
|
426
|
-
channels: ['email', 'webhook'],
|
|
427
|
-
thresholds: {
|
|
428
|
-
failedLogins: 5,
|
|
429
|
-
privilegedAccess: 10,
|
|
430
|
-
dataExfiltration: 1,
|
|
431
|
-
configChanges: 20,
|
|
432
|
-
},
|
|
433
|
-
},
|
|
434
|
-
reporting: {
|
|
435
|
-
automated: true,
|
|
436
|
-
frequency: 'weekly',
|
|
437
|
-
recipients: [],
|
|
438
|
-
dashboards: [],
|
|
439
|
-
},
|
|
440
|
-
},
|
|
441
|
-
privacy: {
|
|
442
|
-
piiDetection: true,
|
|
443
|
-
anonymization: false,
|
|
444
|
-
masking: {
|
|
445
|
-
enabled: true,
|
|
446
|
-
patterns: ['\\b\\d{4}[- ]?\\d{4}[- ]?\\d{4}[- ]?\\d{4}\\b'], // Credit card pattern
|
|
447
|
-
},
|
|
448
|
-
consent: {
|
|
449
|
-
required: false,
|
|
450
|
-
tracking: false,
|
|
451
|
-
},
|
|
452
|
-
},
|
|
453
|
-
};
|
|
454
|
-
}
|
|
455
|
-
async loadConfigurations() {
|
|
456
|
-
try {
|
|
457
|
-
// Load frameworks
|
|
458
|
-
const frameworkFiles = await readdir(join(this.auditPath, 'frameworks'));
|
|
459
|
-
for (const file of frameworkFiles.filter((f) => f.endsWith('.json'))) {
|
|
460
|
-
const content = await readFile(join(this.auditPath, 'frameworks', file), 'utf-8');
|
|
461
|
-
const framework = JSON.parse(content);
|
|
462
|
-
this.frameworks.set(framework.id, framework);
|
|
463
|
-
}
|
|
464
|
-
// Load audit trails
|
|
465
|
-
const trailFiles = await readdir(join(this.auditPath, 'trails'));
|
|
466
|
-
for (const file of trailFiles.filter((f) => f.endsWith('.json'))) {
|
|
467
|
-
const content = await readFile(join(this.auditPath, 'trails', file), 'utf-8');
|
|
468
|
-
const trail = JSON.parse(content);
|
|
469
|
-
this.auditTrails.set(trail.id, trail);
|
|
470
|
-
}
|
|
471
|
-
// Load reports
|
|
472
|
-
const reportFiles = await readdir(join(this.auditPath, 'reports'));
|
|
473
|
-
for (const file of reportFiles.filter((f) => f.endsWith('.json'))) {
|
|
474
|
-
const content = await readFile(join(this.auditPath, 'reports', file), 'utf-8');
|
|
475
|
-
const report = JSON.parse(content);
|
|
476
|
-
this.reports.set(report.id, report);
|
|
477
|
-
}
|
|
478
|
-
this.logger.info(`Loaded ${this.frameworks.size} frameworks, ${this.auditTrails.size} trails, ${this.reports.size} reports`);
|
|
479
|
-
}
|
|
480
|
-
catch (error) {
|
|
481
|
-
this.logger.warn('Failed to load some audit configurations', { error });
|
|
482
|
-
}
|
|
483
|
-
}
|
|
484
|
-
async initializeDefaultFrameworks() {
|
|
485
|
-
const defaultFrameworks = [
|
|
486
|
-
{
|
|
487
|
-
name: 'SOC 2 Type II',
|
|
488
|
-
version: '2017',
|
|
489
|
-
description: 'Service Organization Control 2 Type II compliance framework',
|
|
490
|
-
type: 'certification',
|
|
491
|
-
requirements: [
|
|
492
|
-
{
|
|
493
|
-
title: 'Security Principle - Logical and Physical Access Controls',
|
|
494
|
-
description: 'The entity restricts logical and physical access to the system',
|
|
495
|
-
category: 'access-control',
|
|
496
|
-
priority: 'high',
|
|
497
|
-
status: 'compliant',
|
|
498
|
-
evidence: [],
|
|
499
|
-
gaps: [],
|
|
500
|
-
remediation: {
|
|
501
|
-
actions: [],
|
|
502
|
-
owner: 'security-team',
|
|
503
|
-
dueDate: new Date(Date.now() + 90 * 24 * 60 * 60 * 1000),
|
|
504
|
-
},
|
|
505
|
-
lastAssessed: new Date(),
|
|
506
|
-
nextAssessment: new Date(Date.now() + 365 * 24 * 60 * 60 * 1000),
|
|
507
|
-
automatedCheck: {
|
|
508
|
-
enabled: true,
|
|
509
|
-
frequency: 'daily',
|
|
510
|
-
query: 'category:authentication AND outcome:failure',
|
|
511
|
-
threshold: 10,
|
|
512
|
-
},
|
|
513
|
-
},
|
|
514
|
-
],
|
|
515
|
-
controls: [
|
|
516
|
-
{
|
|
517
|
-
name: 'Multi-Factor Authentication',
|
|
518
|
-
description: 'MFA is required for all user accounts',
|
|
519
|
-
type: 'preventive',
|
|
520
|
-
automationType: 'automated',
|
|
521
|
-
effectiveness: 'high',
|
|
522
|
-
frequency: 'continuous',
|
|
523
|
-
owner: 'security-team',
|
|
524
|
-
evidence: [],
|
|
525
|
-
testingProcedure: 'Verify MFA is enabled for all user accounts',
|
|
526
|
-
lastTested: new Date(),
|
|
527
|
-
nextTest: new Date(Date.now() + 90 * 24 * 60 * 60 * 1000),
|
|
528
|
-
status: 'effective',
|
|
529
|
-
},
|
|
530
|
-
],
|
|
531
|
-
auditFrequency: 'quarterly',
|
|
532
|
-
retentionPeriod: '7y',
|
|
533
|
-
responsible: 'compliance-officer',
|
|
534
|
-
},
|
|
535
|
-
{
|
|
536
|
-
name: 'GDPR',
|
|
537
|
-
version: '2018',
|
|
538
|
-
description: 'General Data Protection Regulation compliance framework',
|
|
539
|
-
type: 'regulatory',
|
|
540
|
-
requirements: [
|
|
541
|
-
{
|
|
542
|
-
title: 'Data Processing Records',
|
|
543
|
-
description: 'Maintain records of all data processing activities',
|
|
544
|
-
category: 'data-protection',
|
|
545
|
-
priority: 'critical',
|
|
546
|
-
status: 'compliant',
|
|
547
|
-
evidence: [],
|
|
548
|
-
gaps: [],
|
|
549
|
-
remediation: {
|
|
550
|
-
actions: [],
|
|
551
|
-
owner: 'data-protection-officer',
|
|
552
|
-
dueDate: new Date(Date.now() + 30 * 24 * 60 * 60 * 1000),
|
|
553
|
-
},
|
|
554
|
-
lastAssessed: new Date(),
|
|
555
|
-
nextAssessment: new Date(Date.now() + 365 * 24 * 60 * 60 * 1000),
|
|
556
|
-
automatedCheck: {
|
|
557
|
-
enabled: true,
|
|
558
|
-
frequency: 'daily',
|
|
559
|
-
query: 'category:data-access AND details.pii:true',
|
|
560
|
-
},
|
|
561
|
-
},
|
|
562
|
-
],
|
|
563
|
-
controls: [],
|
|
564
|
-
auditFrequency: 'annually',
|
|
565
|
-
retentionPeriod: '6y',
|
|
566
|
-
responsible: 'data-protection-officer',
|
|
567
|
-
},
|
|
568
|
-
];
|
|
569
|
-
for (const frameworkData of defaultFrameworks) {
|
|
570
|
-
if (!Array.from(this.frameworks.values()).some((f) => f.name === frameworkData.name)) {
|
|
571
|
-
await this.createComplianceFramework(frameworkData);
|
|
572
|
-
}
|
|
573
|
-
}
|
|
574
|
-
}
|
|
575
|
-
async startAuditProcessing() {
|
|
576
|
-
// Start buffer flush timer
|
|
577
|
-
setInterval(async () => {
|
|
578
|
-
if (this.auditBuffer.length > 0) {
|
|
579
|
-
await this.flushAuditBuffer();
|
|
580
|
-
}
|
|
581
|
-
}, this.configuration.collection.flushInterval);
|
|
582
|
-
// Start integrity verification timer
|
|
583
|
-
setInterval(async () => {
|
|
584
|
-
await this.verifyAuditIntegrity();
|
|
585
|
-
}, 24 * 60 * 60 * 1000); // Daily
|
|
586
|
-
this.logger.info('Started audit processing timers');
|
|
587
|
-
}
|
|
588
|
-
async flushAuditBuffer() {
|
|
589
|
-
if (this.auditBuffer.length === 0)
|
|
590
|
-
return;
|
|
591
|
-
const entries = [...this.auditBuffer];
|
|
592
|
-
this.auditBuffer = [];
|
|
593
|
-
try {
|
|
594
|
-
for (const entry of entries) {
|
|
595
|
-
await this.processAuditEntry(entry);
|
|
596
|
-
}
|
|
597
|
-
this.logger.debug(`Flushed ${entries.length} audit entries`);
|
|
598
|
-
}
|
|
599
|
-
catch (error) {
|
|
600
|
-
this.logger.error('Failed to flush audit buffer', { error });
|
|
601
|
-
// Re-add entries to buffer for retry if configured
|
|
602
|
-
if (this.configuration.collection.failureHandling === 'retry') {
|
|
603
|
-
this.auditBuffer.unshift(...entries);
|
|
604
|
-
}
|
|
605
|
-
}
|
|
606
|
-
}
|
|
607
|
-
async processAuditEntry(entry) {
|
|
608
|
-
// Determine which trail to add the entry to
|
|
609
|
-
const trailId = this.determineAuditTrail(entry);
|
|
610
|
-
let trail = this.auditTrails.get(trailId);
|
|
611
|
-
if (!trail) {
|
|
612
|
-
trail = await this.createAuditTrail(trailId, entry.category);
|
|
613
|
-
}
|
|
614
|
-
// Add entry to trail
|
|
615
|
-
trail.entries.push(entry);
|
|
616
|
-
trail.updatedAt = new Date();
|
|
617
|
-
// Update trail integrity
|
|
618
|
-
trail.integrity.checksum = this.calculateTrailChecksum(trail);
|
|
619
|
-
trail.integrity.lastVerification = new Date();
|
|
620
|
-
await this.saveAuditTrail(trail);
|
|
621
|
-
// Check for compliance violations
|
|
622
|
-
await this.checkComplianceViolations(entry);
|
|
623
|
-
// Check for security alerts
|
|
624
|
-
await this.checkSecurityAlerts(entry);
|
|
625
|
-
}
|
|
626
|
-
determineAuditTrail(entry) {
|
|
627
|
-
// Use category and date for trail determination
|
|
628
|
-
const date = entry.timestamp.toISOString().split('T')[0];
|
|
629
|
-
return `${entry.category}-${date}`;
|
|
630
|
-
}
|
|
631
|
-
async createAuditTrail(id, category) {
|
|
632
|
-
const trail = {
|
|
633
|
-
id,
|
|
634
|
-
name: `${category} audit trail`,
|
|
635
|
-
description: `Audit trail for ${category} events`,
|
|
636
|
-
category,
|
|
637
|
-
entries: [],
|
|
638
|
-
configuration: {
|
|
639
|
-
retention: this.configuration.compliance.retentionPolicies[category] ||
|
|
640
|
-
this.configuration.general.defaultRetention,
|
|
641
|
-
compression: this.configuration.general.compressionEnabled,
|
|
642
|
-
encryption: this.configuration.general.encryptionEnabled,
|
|
643
|
-
archival: {
|
|
644
|
-
enabled: true,
|
|
645
|
-
location: join(this.auditPath, 'archive'),
|
|
646
|
-
schedule: 'yearly',
|
|
647
|
-
},
|
|
648
|
-
monitoring: {
|
|
649
|
-
realTime: this.configuration.general.realTimeProcessing,
|
|
650
|
-
alerting: this.configuration.monitoring.alerting.enabled,
|
|
651
|
-
dashboards: [],
|
|
652
|
-
},
|
|
653
|
-
},
|
|
654
|
-
integrity: {
|
|
655
|
-
verified: true,
|
|
656
|
-
lastVerification: new Date(),
|
|
657
|
-
checksum: '',
|
|
658
|
-
tamperEvidence: [],
|
|
659
|
-
},
|
|
660
|
-
access: {
|
|
661
|
-
viewers: [],
|
|
662
|
-
admins: ['audit-admin'],
|
|
663
|
-
readonly: false,
|
|
664
|
-
auditAccess: true,
|
|
665
|
-
},
|
|
666
|
-
compliance: {
|
|
667
|
-
frameworks: [],
|
|
668
|
-
retention: this.configuration.compliance.retentionPolicies[category] ||
|
|
669
|
-
this.configuration.general.defaultRetention,
|
|
670
|
-
exportRequirements: [],
|
|
671
|
-
immutable: this.configuration.integrity.immutableStorage,
|
|
672
|
-
},
|
|
673
|
-
createdAt: new Date(),
|
|
674
|
-
updatedAt: new Date(),
|
|
675
|
-
};
|
|
676
|
-
this.auditTrails.set(trail.id, trail);
|
|
677
|
-
await this.saveAuditTrail(trail);
|
|
678
|
-
return trail;
|
|
679
|
-
}
|
|
680
|
-
calculateHash(entry) {
|
|
681
|
-
// Create a deterministic string representation of the entry
|
|
682
|
-
const data = {
|
|
683
|
-
timestamp: entry.timestamp.toISOString(),
|
|
684
|
-
eventType: entry.eventType,
|
|
685
|
-
category: entry.category,
|
|
686
|
-
userId: entry.userId,
|
|
687
|
-
resource: entry.resource,
|
|
688
|
-
action: entry.action,
|
|
689
|
-
outcome: entry.outcome,
|
|
690
|
-
details: entry.details,
|
|
691
|
-
};
|
|
692
|
-
return createHash(this.configuration.integrity.checksumAlgorithm)
|
|
693
|
-
.update(JSON.stringify(data))
|
|
694
|
-
.digest('hex');
|
|
695
|
-
}
|
|
696
|
-
calculateTrailChecksum(trail) {
|
|
697
|
-
const data = trail.entries.map((e) => e.integrity.hash).join('');
|
|
698
|
-
return createHash(this.configuration.integrity.checksumAlgorithm).update(data).digest('hex');
|
|
699
|
-
}
|
|
700
|
-
calculateRetentionPeriod(category, frameworks) {
|
|
701
|
-
const categoryRetention = this.configuration.compliance.retentionPolicies[category];
|
|
702
|
-
if (categoryRetention)
|
|
703
|
-
return categoryRetention;
|
|
704
|
-
// Check framework requirements
|
|
705
|
-
if (frameworks) {
|
|
706
|
-
let maxRetention = this.configuration.general.defaultRetention;
|
|
707
|
-
for (const frameworkId of frameworks) {
|
|
708
|
-
const framework = this.frameworks.get(frameworkId);
|
|
709
|
-
if (framework &&
|
|
710
|
-
this.parseRetentionPeriod(framework.retentionPeriod) >
|
|
711
|
-
this.parseRetentionPeriod(maxRetention)) {
|
|
712
|
-
maxRetention = framework.retentionPeriod;
|
|
713
|
-
}
|
|
714
|
-
}
|
|
715
|
-
return maxRetention;
|
|
716
|
-
}
|
|
717
|
-
return this.configuration.general.defaultRetention;
|
|
718
|
-
}
|
|
719
|
-
parseRetentionPeriod(period) {
|
|
720
|
-
const match = period.match(/(\d+)([ymd])/);
|
|
721
|
-
if (!match)
|
|
722
|
-
return 0;
|
|
723
|
-
const value = parseInt(match[1]);
|
|
724
|
-
const unit = match[2];
|
|
725
|
-
switch (unit) {
|
|
726
|
-
case 'y':
|
|
727
|
-
return value * 365;
|
|
728
|
-
case 'm':
|
|
729
|
-
return value * 30;
|
|
730
|
-
case 'd':
|
|
731
|
-
return value;
|
|
732
|
-
default:
|
|
733
|
-
return 0;
|
|
734
|
-
}
|
|
735
|
-
}
|
|
736
|
-
async queryAuditEntries(scope) {
|
|
737
|
-
let entries = [];
|
|
738
|
-
// Collect entries from all trails
|
|
739
|
-
for (const trail of this.auditTrails.values()) {
|
|
740
|
-
entries.push(...trail.entries);
|
|
741
|
-
}
|
|
742
|
-
// Apply filters
|
|
743
|
-
if (scope.timeRange) {
|
|
744
|
-
entries = entries.filter((e) => e.timestamp >= scope.timeRange.start && e.timestamp <= scope.timeRange.end);
|
|
745
|
-
}
|
|
746
|
-
if (scope.categories) {
|
|
747
|
-
entries = entries.filter((e) => scope.categories.includes(e.category));
|
|
748
|
-
}
|
|
749
|
-
if (scope.severity) {
|
|
750
|
-
entries = entries.filter((e) => scope.severity.includes(e.severity));
|
|
751
|
-
}
|
|
752
|
-
if (scope.users) {
|
|
753
|
-
entries = entries.filter((e) => e.userId && scope.users.includes(e.userId));
|
|
754
|
-
}
|
|
755
|
-
if (scope.events) {
|
|
756
|
-
entries = entries.filter((e) => scope.events.includes(e.eventType));
|
|
757
|
-
}
|
|
758
|
-
if (scope.compliance) {
|
|
759
|
-
entries = entries.filter((e) => e.compliance.frameworks.some((f) => scope.compliance.includes(f)));
|
|
760
|
-
}
|
|
761
|
-
return entries.sort((a, b) => a.timestamp.getTime() - b.timestamp.getTime());
|
|
762
|
-
}
|
|
763
|
-
async analyzeAuditEntries(entries, reportType) {
|
|
764
|
-
const findings = [];
|
|
765
|
-
// Security-focused analysis
|
|
766
|
-
if (reportType === 'security') {
|
|
767
|
-
// Check for failed login patterns
|
|
768
|
-
const failedLogins = entries.filter((e) => e.eventType === 'user_login' && e.outcome === 'failure');
|
|
769
|
-
if (failedLogins.length > 10) {
|
|
770
|
-
findings.push({
|
|
771
|
-
id: `finding-${Date.now()}-1`,
|
|
772
|
-
title: 'Excessive Failed Login Attempts',
|
|
773
|
-
description: `${failedLogins.length} failed login attempts detected`,
|
|
774
|
-
severity: 'high',
|
|
775
|
-
category: 'authentication',
|
|
776
|
-
risk: 'Potential brute force attack',
|
|
777
|
-
impact: 'Unauthorized access attempt',
|
|
778
|
-
likelihood: 'medium',
|
|
779
|
-
evidence: [],
|
|
780
|
-
relatedEvents: failedLogins.map((e) => e.id),
|
|
781
|
-
complianceImpact: {
|
|
782
|
-
frameworks: ['SOC2'],
|
|
783
|
-
violations: ['Access Control'],
|
|
784
|
-
penalties: [],
|
|
785
|
-
},
|
|
786
|
-
remediation: {
|
|
787
|
-
priority: 'high',
|
|
788
|
-
owner: 'security-team',
|
|
789
|
-
actions: ['Implement account lockout', 'Enable MFA', 'Review access logs'],
|
|
790
|
-
timeline: '7 days',
|
|
791
|
-
},
|
|
792
|
-
status: 'open',
|
|
793
|
-
});
|
|
794
|
-
}
|
|
795
|
-
}
|
|
796
|
-
// Compliance-focused analysis
|
|
797
|
-
if (reportType === 'compliance') {
|
|
798
|
-
// Check for data access patterns
|
|
799
|
-
const dataAccess = entries.filter((e) => e.category === 'data-access' && e.details.pii === true);
|
|
800
|
-
if (dataAccess.length > 0) {
|
|
801
|
-
findings.push({
|
|
802
|
-
id: `finding-${Date.now()}-2`,
|
|
803
|
-
title: 'PII Data Access Events',
|
|
804
|
-
description: `${dataAccess.length} events involving PII data access`,
|
|
805
|
-
severity: 'medium',
|
|
806
|
-
category: 'data-protection',
|
|
807
|
-
risk: 'Privacy compliance risk',
|
|
808
|
-
impact: 'Potential GDPR violation',
|
|
809
|
-
likelihood: 'low',
|
|
810
|
-
evidence: [],
|
|
811
|
-
relatedEvents: dataAccess.map((e) => e.id),
|
|
812
|
-
complianceImpact: {
|
|
813
|
-
frameworks: ['GDPR'],
|
|
814
|
-
violations: ['Data Processing'],
|
|
815
|
-
penalties: ['Administrative fine'],
|
|
816
|
-
},
|
|
817
|
-
remediation: {
|
|
818
|
-
priority: 'medium',
|
|
819
|
-
owner: 'data-protection-officer',
|
|
820
|
-
actions: ['Review data access justification', 'Update privacy notices'],
|
|
821
|
-
timeline: '30 days',
|
|
822
|
-
},
|
|
823
|
-
status: 'open',
|
|
824
|
-
});
|
|
825
|
-
}
|
|
826
|
-
}
|
|
827
|
-
return findings;
|
|
828
|
-
}
|
|
829
|
-
async calculateComplianceScore(frameworks, entries) {
|
|
830
|
-
let totalRequirements = 0;
|
|
831
|
-
let metRequirements = 0;
|
|
832
|
-
for (const frameworkId of frameworks) {
|
|
833
|
-
const framework = this.frameworks.get(frameworkId);
|
|
834
|
-
if (!framework)
|
|
835
|
-
continue;
|
|
836
|
-
for (const requirement of framework.requirements) {
|
|
837
|
-
totalRequirements++;
|
|
838
|
-
if (requirement.status === 'compliant') {
|
|
839
|
-
metRequirements++;
|
|
840
|
-
}
|
|
841
|
-
else if (requirement.automatedCheck.enabled) {
|
|
842
|
-
// Check if automated requirement is met based on audit data
|
|
843
|
-
const violations = this.checkAutomatedRequirement(requirement, entries);
|
|
844
|
-
if (violations.length === 0) {
|
|
845
|
-
metRequirements++;
|
|
846
|
-
}
|
|
847
|
-
}
|
|
848
|
-
}
|
|
849
|
-
}
|
|
850
|
-
return totalRequirements > 0 ? (metRequirements / totalRequirements) * 100 : 0;
|
|
851
|
-
}
|
|
852
|
-
checkAutomatedRequirement(requirement, entries) {
|
|
853
|
-
// Simplified automated compliance checking
|
|
854
|
-
// In a real implementation, this would parse the query and evaluate against entries
|
|
855
|
-
const violations = entries.filter((e) => {
|
|
856
|
-
if (requirement.automatedCheck.query.includes('outcome:failure')) {
|
|
857
|
-
return e.outcome === 'failure';
|
|
858
|
-
}
|
|
859
|
-
return false;
|
|
860
|
-
});
|
|
861
|
-
return violations;
|
|
862
|
-
}
|
|
863
|
-
calculateRiskLevel(findings) {
|
|
864
|
-
const criticalFindings = findings.filter((f) => f.severity === 'critical').length;
|
|
865
|
-
const highFindings = findings.filter((f) => f.severity === 'high').length;
|
|
866
|
-
if (criticalFindings > 0)
|
|
867
|
-
return 'critical';
|
|
868
|
-
if (highFindings > 2)
|
|
869
|
-
return 'high';
|
|
870
|
-
if (findings.length > 5)
|
|
871
|
-
return 'medium';
|
|
872
|
-
return 'low';
|
|
873
|
-
}
|
|
874
|
-
async generateRecommendations(findings, reportType) {
|
|
875
|
-
const recommendations = [];
|
|
876
|
-
// Generic security recommendations
|
|
877
|
-
if (findings.some((f) => f.category === 'authentication')) {
|
|
878
|
-
recommendations.push({
|
|
879
|
-
id: `rec-${Date.now()}-1`,
|
|
880
|
-
title: 'Strengthen Authentication Controls',
|
|
881
|
-
description: 'Implement additional authentication security measures',
|
|
882
|
-
priority: 'high',
|
|
883
|
-
category: 'technology',
|
|
884
|
-
implementation: {
|
|
885
|
-
effort: 'medium',
|
|
886
|
-
cost: 'medium',
|
|
887
|
-
timeline: '30 days',
|
|
888
|
-
dependencies: ['Identity Provider Integration'],
|
|
889
|
-
risks: ['User experience impact'],
|
|
890
|
-
},
|
|
891
|
-
expectedBenefit: 'Reduced risk of unauthorized access',
|
|
892
|
-
owner: 'security-team',
|
|
893
|
-
status: 'proposed',
|
|
894
|
-
tracking: {
|
|
895
|
-
milestones: ['MFA deployment', 'Policy update', 'User training'],
|
|
896
|
-
progress: 0,
|
|
897
|
-
nextReview: new Date(Date.now() + 7 * 24 * 60 * 60 * 1000),
|
|
898
|
-
},
|
|
899
|
-
});
|
|
900
|
-
}
|
|
901
|
-
return recommendations;
|
|
902
|
-
}
|
|
903
|
-
async checkComplianceViolations(entry) {
|
|
904
|
-
for (const frameworkId of entry.compliance.frameworks) {
|
|
905
|
-
const framework = this.frameworks.get(frameworkId);
|
|
906
|
-
if (!framework)
|
|
907
|
-
continue;
|
|
908
|
-
for (const requirement of framework.requirements) {
|
|
909
|
-
if (requirement.automatedCheck.enabled) {
|
|
910
|
-
const violations = this.checkAutomatedRequirement(requirement, [entry]);
|
|
911
|
-
if (violations.length > 0) {
|
|
912
|
-
this.emit('compliance:violation', {
|
|
913
|
-
framework: frameworkId,
|
|
914
|
-
requirement: requirement.id,
|
|
915
|
-
entry,
|
|
916
|
-
severity: requirement.priority,
|
|
917
|
-
});
|
|
918
|
-
}
|
|
919
|
-
}
|
|
920
|
-
}
|
|
921
|
-
}
|
|
922
|
-
}
|
|
923
|
-
async checkSecurityAlerts(entry) {
|
|
924
|
-
const thresholds = this.configuration.monitoring.alerting.thresholds;
|
|
925
|
-
// Check for specific alert conditions
|
|
926
|
-
if (entry.eventType === 'user_login' && entry.outcome === 'failure') {
|
|
927
|
-
// Would implement failed login threshold checking
|
|
928
|
-
}
|
|
929
|
-
if (entry.category === 'data-access' && entry.details.privileged) {
|
|
930
|
-
this.emit('security:alert', {
|
|
931
|
-
type: 'privileged-access',
|
|
932
|
-
entry,
|
|
933
|
-
severity: 'medium',
|
|
934
|
-
});
|
|
935
|
-
}
|
|
936
|
-
}
|
|
937
|
-
async generateSecurityAlert(entry) {
|
|
938
|
-
this.emit('security:critical', {
|
|
939
|
-
entry,
|
|
940
|
-
message: `Critical security event: ${entry.eventType}`,
|
|
941
|
-
action: 'immediate-review-required',
|
|
942
|
-
});
|
|
943
|
-
}
|
|
944
|
-
calculatePeakHourly(entries) {
|
|
945
|
-
const hourlyBuckets = {};
|
|
946
|
-
for (const entry of entries) {
|
|
947
|
-
const hour = entry.timestamp.toISOString().substr(0, 13); // YYYY-MM-DDTHH
|
|
948
|
-
hourlyBuckets[hour] = (hourlyBuckets[hour] || 0) + 1;
|
|
949
|
-
}
|
|
950
|
-
return Math.max(...Object.values(hourlyBuckets), 0);
|
|
951
|
-
}
|
|
952
|
-
groupBy(array, key) {
|
|
953
|
-
return array.reduce((groups, item) => {
|
|
954
|
-
const value = String(item[key]);
|
|
955
|
-
groups[value] = (groups[value] || 0) + 1;
|
|
956
|
-
return groups;
|
|
957
|
-
}, {});
|
|
958
|
-
}
|
|
959
|
-
convertToCSV(entries) {
|
|
960
|
-
const headers = [
|
|
961
|
-
'timestamp',
|
|
962
|
-
'eventType',
|
|
963
|
-
'category',
|
|
964
|
-
'severity',
|
|
965
|
-
'userId',
|
|
966
|
-
'action',
|
|
967
|
-
'outcome',
|
|
968
|
-
'resource',
|
|
969
|
-
];
|
|
970
|
-
const rows = entries.map((entry) => [
|
|
971
|
-
entry.timestamp.toISOString(),
|
|
972
|
-
entry.eventType,
|
|
973
|
-
entry.category,
|
|
974
|
-
entry.severity,
|
|
975
|
-
entry.userId || '',
|
|
976
|
-
entry.action,
|
|
977
|
-
entry.outcome,
|
|
978
|
-
`${entry.resource.type}:${entry.resource.id}`,
|
|
979
|
-
]);
|
|
980
|
-
return [headers, ...rows].map((row) => row.join(',')).join('\n');
|
|
981
|
-
}
|
|
982
|
-
convertToXML(entries) {
|
|
983
|
-
let xml = '<?xml version="1.0" encoding="UTF-8"?>\n<auditEntries>\n';
|
|
984
|
-
for (const entry of entries) {
|
|
985
|
-
xml += ` <entry id="${entry.id}">\n`;
|
|
986
|
-
xml += ` <timestamp>${entry.timestamp.toISOString()}</timestamp>\n`;
|
|
987
|
-
xml += ` <eventType>${entry.eventType}</eventType>\n`;
|
|
988
|
-
xml += ` <category>${entry.category}</category>\n`;
|
|
989
|
-
xml += ` <severity>${entry.severity}</severity>\n`;
|
|
990
|
-
xml += ` <action>${entry.action}</action>\n`;
|
|
991
|
-
xml += ` <outcome>${entry.outcome}</outcome>\n`;
|
|
992
|
-
xml += ` </entry>\n`;
|
|
993
|
-
}
|
|
994
|
-
xml += '</auditEntries>';
|
|
995
|
-
return xml;
|
|
996
|
-
}
|
|
997
|
-
async convertToPDF(entries) {
|
|
998
|
-
// Would implement PDF generation
|
|
999
|
-
return 'PDF generation not implemented';
|
|
1000
|
-
}
|
|
1001
|
-
async saveFramework(framework) {
|
|
1002
|
-
const filePath = join(this.auditPath, 'frameworks', `${framework.id}.json`);
|
|
1003
|
-
await writeFile(filePath, JSON.stringify(framework, null, 2));
|
|
1004
|
-
}
|
|
1005
|
-
async saveAuditTrail(trail) {
|
|
1006
|
-
const filePath = join(this.auditPath, 'trails', `${trail.id}.json`);
|
|
1007
|
-
await writeFile(filePath, JSON.stringify(trail, null, 2));
|
|
1008
|
-
}
|
|
1009
|
-
async saveReport(report) {
|
|
1010
|
-
const filePath = join(this.auditPath, 'reports', `${report.id}.json`);
|
|
1011
|
-
await writeFile(filePath, JSON.stringify(report, null, 2));
|
|
1012
|
-
}
|
|
1013
|
-
}
|
|
1014
|
-
//# sourceMappingURL=audit-manager.js.map
|