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,1506 +0,0 @@
|
|
|
1
|
-
import { success, error, warning, info } from '../cli-core.js';
|
|
2
|
-
import colors from 'chalk';
|
|
3
|
-
import { ProjectManager } from '../../enterprise/project-manager.js';
|
|
4
|
-
import { DeploymentManager, } from '../../enterprise/deployment-manager.js';
|
|
5
|
-
import { CloudManager } from '../../enterprise/cloud-manager.js';
|
|
6
|
-
import { SecurityManager } from '../../enterprise/security-manager.js';
|
|
7
|
-
import { AnalyticsManager } from '../../enterprise/analytics-manager.js';
|
|
8
|
-
import { AuditManager } from '../../enterprise/audit-manager.js';
|
|
9
|
-
const { bold, blue, green, yellow, red, cyan, magenta } = colors;
|
|
10
|
-
let projectManager = null;
|
|
11
|
-
let deploymentManager = null;
|
|
12
|
-
let cloudManager = null;
|
|
13
|
-
let securityManager = null;
|
|
14
|
-
let analyticsManager = null;
|
|
15
|
-
let auditManager = null;
|
|
16
|
-
async function getProjectManager() {
|
|
17
|
-
if (!projectManager) {
|
|
18
|
-
projectManager = new ProjectManager();
|
|
19
|
-
await projectManager.initialize();
|
|
20
|
-
}
|
|
21
|
-
return projectManager;
|
|
22
|
-
}
|
|
23
|
-
async function getDeploymentManager() {
|
|
24
|
-
if (!deploymentManager) {
|
|
25
|
-
deploymentManager = new DeploymentManager();
|
|
26
|
-
await deploymentManager.initialize();
|
|
27
|
-
}
|
|
28
|
-
return deploymentManager;
|
|
29
|
-
}
|
|
30
|
-
async function getCloudManager() {
|
|
31
|
-
if (!cloudManager) {
|
|
32
|
-
cloudManager = new CloudManager();
|
|
33
|
-
await cloudManager.initialize();
|
|
34
|
-
}
|
|
35
|
-
return cloudManager;
|
|
36
|
-
}
|
|
37
|
-
async function getSecurityManager() {
|
|
38
|
-
if (!securityManager) {
|
|
39
|
-
securityManager = new SecurityManager();
|
|
40
|
-
await securityManager.initialize();
|
|
41
|
-
}
|
|
42
|
-
return securityManager;
|
|
43
|
-
}
|
|
44
|
-
async function getAnalyticsManager() {
|
|
45
|
-
if (!analyticsManager) {
|
|
46
|
-
analyticsManager = new AnalyticsManager();
|
|
47
|
-
await analyticsManager.initialize();
|
|
48
|
-
}
|
|
49
|
-
return analyticsManager;
|
|
50
|
-
}
|
|
51
|
-
async function getAuditManager() {
|
|
52
|
-
if (!auditManager) {
|
|
53
|
-
auditManager = new AuditManager();
|
|
54
|
-
await auditManager.initialize();
|
|
55
|
-
}
|
|
56
|
-
return auditManager;
|
|
57
|
-
}
|
|
58
|
-
export const enterpriseCommands = [
|
|
59
|
-
// Project Management Commands
|
|
60
|
-
{
|
|
61
|
-
name: 'project',
|
|
62
|
-
description: 'Enterprise project management with lifecycle tracking',
|
|
63
|
-
options: [
|
|
64
|
-
{
|
|
65
|
-
name: 'verbose',
|
|
66
|
-
short: 'v',
|
|
67
|
-
description: 'Enable verbose output',
|
|
68
|
-
type: 'boolean',
|
|
69
|
-
},
|
|
70
|
-
],
|
|
71
|
-
action: async (ctx) => {
|
|
72
|
-
const subcommand = ctx.args[0];
|
|
73
|
-
const manager = await getProjectManager();
|
|
74
|
-
switch (subcommand) {
|
|
75
|
-
case 'create': {
|
|
76
|
-
const name = ctx.args[1];
|
|
77
|
-
if (!name) {
|
|
78
|
-
error('Usage: project create <name> [options]');
|
|
79
|
-
break;
|
|
80
|
-
}
|
|
81
|
-
try {
|
|
82
|
-
const project = await manager.createProject({
|
|
83
|
-
name,
|
|
84
|
-
description: ctx.flags.description || `Project: ${name}`,
|
|
85
|
-
type: ctx.flags.type || 'custom',
|
|
86
|
-
priority: ctx.flags.priority || 'medium',
|
|
87
|
-
owner: ctx.flags.owner || 'system',
|
|
88
|
-
stakeholders: ctx.flags.stakeholders
|
|
89
|
-
? ctx.flags.stakeholders.split(',')
|
|
90
|
-
: [],
|
|
91
|
-
});
|
|
92
|
-
success(`Project created: ${project.name}`);
|
|
93
|
-
console.log(`${blue('ID:')} ${project.id}`);
|
|
94
|
-
console.log(`${blue('Type:')} ${project.type}`);
|
|
95
|
-
console.log(`${blue('Priority:')} ${project.priority}`);
|
|
96
|
-
console.log(`${blue('Owner:')} ${project.owner}`);
|
|
97
|
-
if (ctx.flags.verbose) {
|
|
98
|
-
console.log(`${blue('Timeline:')} ${project.timeline.plannedStart.toLocaleDateString()} - ${project.timeline.plannedEnd.toLocaleDateString()}`);
|
|
99
|
-
console.log(`${blue('Budget:')} ${project.budget.total} ${project.budget.currency}`);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
catch (err) {
|
|
103
|
-
error(`Failed to create project: ${err.message}`);
|
|
104
|
-
}
|
|
105
|
-
break;
|
|
106
|
-
}
|
|
107
|
-
case 'list': {
|
|
108
|
-
try {
|
|
109
|
-
const filters = {};
|
|
110
|
-
if (ctx.flags.status)
|
|
111
|
-
filters.status = ctx.flags.status;
|
|
112
|
-
if (ctx.flags.type)
|
|
113
|
-
filters.type = ctx.flags.type;
|
|
114
|
-
if (ctx.flags.priority)
|
|
115
|
-
filters.priority = ctx.flags.priority;
|
|
116
|
-
if (ctx.flags.owner)
|
|
117
|
-
filters.owner = ctx.flags.owner;
|
|
118
|
-
const projects = await manager.listProjects(filters);
|
|
119
|
-
if (projects.length === 0) {
|
|
120
|
-
info('No projects found');
|
|
121
|
-
break;
|
|
122
|
-
}
|
|
123
|
-
success(`Found ${projects.length} projects:`);
|
|
124
|
-
console.log();
|
|
125
|
-
for (const project of projects) {
|
|
126
|
-
const statusColor = project.status === 'active'
|
|
127
|
-
? green
|
|
128
|
-
: project.status === 'completed'
|
|
129
|
-
? blue
|
|
130
|
-
: project.status === 'on-hold'
|
|
131
|
-
? yellow
|
|
132
|
-
: red;
|
|
133
|
-
console.log(`${bold(project.name)} ${cyan(`(${project.id.substr(0, 8)}...)`)}`);
|
|
134
|
-
console.log(` Status: ${statusColor(project.status)} | Type: ${project.type} | Priority: ${project.priority}`);
|
|
135
|
-
console.log(` Owner: ${project.owner} | Updated: ${project.updatedAt.toLocaleDateString()}`);
|
|
136
|
-
if (ctx.flags.verbose) {
|
|
137
|
-
const progress = manager['calculateProjectProgress']
|
|
138
|
-
? await manager.calculateProjectProgress(project)
|
|
139
|
-
: 0;
|
|
140
|
-
console.log(` Progress: ${progress.toFixed(1)}% | Phases: ${project.phases.length}`);
|
|
141
|
-
console.log(` Budget: ${project.budget.spent}/${project.budget.total} ${project.budget.currency}`);
|
|
142
|
-
}
|
|
143
|
-
console.log();
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
catch (err) {
|
|
147
|
-
error(`Failed to list projects: ${err.message}`);
|
|
148
|
-
}
|
|
149
|
-
break;
|
|
150
|
-
}
|
|
151
|
-
case 'show': {
|
|
152
|
-
const projectId = ctx.args[1];
|
|
153
|
-
if (!projectId) {
|
|
154
|
-
error('Usage: project show <project-id>');
|
|
155
|
-
break;
|
|
156
|
-
}
|
|
157
|
-
try {
|
|
158
|
-
const project = await manager.getProject(projectId);
|
|
159
|
-
if (!project) {
|
|
160
|
-
error(`Project not found: ${projectId}`);
|
|
161
|
-
break;
|
|
162
|
-
}
|
|
163
|
-
success(`Project: ${project.name}`);
|
|
164
|
-
console.log();
|
|
165
|
-
console.log(`${blue('ID:')} ${project.id}`);
|
|
166
|
-
console.log(`${blue('Description:')} ${project.description}`);
|
|
167
|
-
console.log(`${blue('Type:')} ${project.type}`);
|
|
168
|
-
console.log(`${blue('Status:')} ${project.status}`);
|
|
169
|
-
console.log(`${blue('Priority:')} ${project.priority}`);
|
|
170
|
-
console.log(`${blue('Owner:')} ${project.owner}`);
|
|
171
|
-
console.log(`${blue('Created:')} ${project.createdAt.toLocaleDateString()}`);
|
|
172
|
-
console.log(`${blue('Updated:')} ${project.updatedAt.toLocaleDateString()}`);
|
|
173
|
-
console.log(`\n${bold('Timeline:')}`);
|
|
174
|
-
console.log(` Planned: ${project.timeline.plannedStart.toLocaleDateString()} - ${project.timeline.plannedEnd.toLocaleDateString()}`);
|
|
175
|
-
if (project.timeline.actualStart) {
|
|
176
|
-
console.log(` Actual: ${project.timeline.actualStart.toLocaleDateString()} - ${project.timeline.actualEnd?.toLocaleDateString() || 'In Progress'}`);
|
|
177
|
-
}
|
|
178
|
-
console.log(`\n${bold('Budget:')}`);
|
|
179
|
-
console.log(` Total: ${project.budget.total} ${project.budget.currency}`);
|
|
180
|
-
console.log(` Spent: ${project.budget.spent} ${project.budget.currency}`);
|
|
181
|
-
console.log(` Remaining: ${project.budget.remaining} ${project.budget.currency}`);
|
|
182
|
-
if (project.phases.length > 0) {
|
|
183
|
-
console.log(`\n${bold('Phases:')}`);
|
|
184
|
-
for (const phase of project.phases) {
|
|
185
|
-
const statusColor = phase.status === 'completed'
|
|
186
|
-
? green
|
|
187
|
-
: phase.status === 'in-progress'
|
|
188
|
-
? yellow
|
|
189
|
-
: phase.status === 'blocked'
|
|
190
|
-
? red
|
|
191
|
-
: blue;
|
|
192
|
-
console.log(` ${statusColor(phase.status.padEnd(12))} ${phase.name} (${phase.completionPercentage}%)`);
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
if (project.collaboration.teamMembers.length > 0) {
|
|
196
|
-
console.log(`\n${bold('Team Members:')}`);
|
|
197
|
-
for (const member of project.collaboration.teamMembers) {
|
|
198
|
-
console.log(` ${member.name} (${member.role}) - ${member.availability}% available`);
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
catch (err) {
|
|
203
|
-
error(`Failed to show project: ${err.message}`);
|
|
204
|
-
}
|
|
205
|
-
break;
|
|
206
|
-
}
|
|
207
|
-
case 'metrics': {
|
|
208
|
-
try {
|
|
209
|
-
const projectId = ctx.args[1];
|
|
210
|
-
const metrics = await manager.getProjectMetrics(projectId);
|
|
211
|
-
success('Project Metrics:');
|
|
212
|
-
console.log();
|
|
213
|
-
console.log(`${blue('Total Projects:')} ${metrics.totalProjects}`);
|
|
214
|
-
console.log(`${blue('Active Projects:')} ${metrics.activeProjects}`);
|
|
215
|
-
console.log(`${blue('Completed Projects:')} ${metrics.completedProjects}`);
|
|
216
|
-
console.log(`${blue('Average Duration:')} ${metrics.averageProjectDuration.toFixed(1)} days`);
|
|
217
|
-
console.log(`${blue('Budget Variance:')} ${(metrics.budgetVariance * 100).toFixed(1)}%`);
|
|
218
|
-
console.log(`${blue('Resource Utilization:')} ${(metrics.resourceUtilization * 100).toFixed(1)}%`);
|
|
219
|
-
console.log(`${blue('Quality Score:')} ${metrics.qualityScore.toFixed(1)}%`);
|
|
220
|
-
}
|
|
221
|
-
catch (err) {
|
|
222
|
-
error(`Failed to get metrics: ${err.message}`);
|
|
223
|
-
}
|
|
224
|
-
break;
|
|
225
|
-
}
|
|
226
|
-
case 'report': {
|
|
227
|
-
const projectId = ctx.args[1];
|
|
228
|
-
const reportType = ctx.args[2] || 'status';
|
|
229
|
-
if (!projectId) {
|
|
230
|
-
error('Usage: project report <project-id> [type]');
|
|
231
|
-
break;
|
|
232
|
-
}
|
|
233
|
-
try {
|
|
234
|
-
const report = await manager.generateReport(projectId, reportType);
|
|
235
|
-
success(`Generated ${reportType} report: ${report.title}`);
|
|
236
|
-
console.log();
|
|
237
|
-
console.log(`${blue('Summary:')} ${report.summary}`);
|
|
238
|
-
console.log(`${blue('Generated:')} ${report.generatedAt.toLocaleDateString()}`);
|
|
239
|
-
if (ctx.flags.verbose && Object.keys(report.details).length > 0) {
|
|
240
|
-
console.log(`\n${bold('Details:')}`);
|
|
241
|
-
console.log(JSON.stringify(report.details, null, 2));
|
|
242
|
-
}
|
|
243
|
-
if (report.recommendations.length > 0) {
|
|
244
|
-
console.log(`\n${bold('Recommendations:')}`);
|
|
245
|
-
for (const rec of report.recommendations) {
|
|
246
|
-
console.log(` • ${rec}`);
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
catch (err) {
|
|
251
|
-
error(`Failed to generate report: ${err.message}`);
|
|
252
|
-
}
|
|
253
|
-
break;
|
|
254
|
-
}
|
|
255
|
-
default: {
|
|
256
|
-
console.log(`${bold('Available subcommands:')}`);
|
|
257
|
-
console.log(' create <name> Create a new project');
|
|
258
|
-
console.log(' list List all projects');
|
|
259
|
-
console.log(' show <id> Show project details');
|
|
260
|
-
console.log(' metrics [id] Show project metrics');
|
|
261
|
-
console.log(' report <id> [type] Generate project report');
|
|
262
|
-
console.log();
|
|
263
|
-
console.log(`${bold('Examples:')}`);
|
|
264
|
-
console.log(` ${cyan('claude-flow project create')} "E-commerce Platform" --type web-app --priority high`);
|
|
265
|
-
console.log(` ${cyan('claude-flow project list')} --status active --verbose`);
|
|
266
|
-
console.log(` ${cyan('claude-flow project report')} proj-123 financial`);
|
|
267
|
-
break;
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
},
|
|
271
|
-
},
|
|
272
|
-
// Deployment Management Commands
|
|
273
|
-
{
|
|
274
|
-
name: 'deploy',
|
|
275
|
-
description: 'Enterprise deployment automation with blue-green, canary, and rollback capabilities',
|
|
276
|
-
options: [
|
|
277
|
-
{
|
|
278
|
-
name: 'environment',
|
|
279
|
-
short: 'e',
|
|
280
|
-
description: 'Target environment',
|
|
281
|
-
type: 'string',
|
|
282
|
-
},
|
|
283
|
-
{
|
|
284
|
-
name: 'strategy',
|
|
285
|
-
short: 's',
|
|
286
|
-
description: 'Deployment strategy (blue-green, canary, rolling)',
|
|
287
|
-
type: 'string',
|
|
288
|
-
},
|
|
289
|
-
{
|
|
290
|
-
name: 'version',
|
|
291
|
-
short: 'v',
|
|
292
|
-
description: 'Version to deploy',
|
|
293
|
-
type: 'string',
|
|
294
|
-
},
|
|
295
|
-
{
|
|
296
|
-
name: 'auto-rollback',
|
|
297
|
-
description: 'Enable automatic rollback on failure',
|
|
298
|
-
type: 'boolean',
|
|
299
|
-
},
|
|
300
|
-
{
|
|
301
|
-
name: 'dry-run',
|
|
302
|
-
short: 'd',
|
|
303
|
-
description: 'Preview deployment without executing',
|
|
304
|
-
type: 'boolean',
|
|
305
|
-
},
|
|
306
|
-
],
|
|
307
|
-
action: async (ctx) => {
|
|
308
|
-
const subcommand = ctx.args[0];
|
|
309
|
-
const manager = await getDeploymentManager();
|
|
310
|
-
switch (subcommand) {
|
|
311
|
-
case 'create': {
|
|
312
|
-
const name = ctx.args[1];
|
|
313
|
-
if (!name) {
|
|
314
|
-
error('Usage: deploy create <name> --environment <env> --strategy <strategy>');
|
|
315
|
-
break;
|
|
316
|
-
}
|
|
317
|
-
try {
|
|
318
|
-
const deployment = await manager.createDeployment({
|
|
319
|
-
name,
|
|
320
|
-
version: ctx.flags.version || 'latest',
|
|
321
|
-
projectId: ctx.flags.project || 'default',
|
|
322
|
-
environmentId: ctx.flags.environment || 'development',
|
|
323
|
-
strategyId: ctx.flags.strategy || 'rolling',
|
|
324
|
-
initiatedBy: 'cli-user',
|
|
325
|
-
source: {
|
|
326
|
-
repository: ctx.flags.repo || 'local',
|
|
327
|
-
branch: ctx.flags.branch || 'main',
|
|
328
|
-
commit: ctx.flags.commit || 'HEAD',
|
|
329
|
-
},
|
|
330
|
-
});
|
|
331
|
-
success(`Deployment created: ${deployment.name}`);
|
|
332
|
-
console.log(`${blue('ID:')} ${deployment.id}`);
|
|
333
|
-
console.log(`${blue('Version:')} ${deployment.version}`);
|
|
334
|
-
console.log(`${blue('Environment:')} ${deployment.environmentId}`);
|
|
335
|
-
console.log(`${blue('Strategy:')} ${deployment.strategyId}`);
|
|
336
|
-
console.log(`${blue('Status:')} ${deployment.status}`);
|
|
337
|
-
if (!ctx.flags.dryRun) {
|
|
338
|
-
info('Starting deployment...');
|
|
339
|
-
await manager.executeDeployment(deployment.id);
|
|
340
|
-
}
|
|
341
|
-
else {
|
|
342
|
-
warning('Dry run - deployment not executed');
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
catch (err) {
|
|
346
|
-
error(`Failed to create deployment: ${err.message}`);
|
|
347
|
-
}
|
|
348
|
-
break;
|
|
349
|
-
}
|
|
350
|
-
case 'list': {
|
|
351
|
-
try {
|
|
352
|
-
const filters = {};
|
|
353
|
-
if (ctx.flags.environment)
|
|
354
|
-
filters.environmentId = ctx.flags.environment;
|
|
355
|
-
if (ctx.flags.status)
|
|
356
|
-
filters.status = ctx.flags.status;
|
|
357
|
-
// Note: This would need to be implemented in DeploymentManager
|
|
358
|
-
const deployments = [];
|
|
359
|
-
if (deployments.length === 0) {
|
|
360
|
-
info('No deployments found');
|
|
361
|
-
break;
|
|
362
|
-
}
|
|
363
|
-
success(`Found ${deployments.length} deployments:`);
|
|
364
|
-
console.log();
|
|
365
|
-
for (const deployment of deployments) {
|
|
366
|
-
const statusColor = deployment.status === 'success'
|
|
367
|
-
? green
|
|
368
|
-
: deployment.status === 'failed'
|
|
369
|
-
? red
|
|
370
|
-
: deployment.status === 'running'
|
|
371
|
-
? yellow
|
|
372
|
-
: blue;
|
|
373
|
-
console.log(`${bold(deployment.name)} ${cyan(`(${deployment.id.substr(0, 8)}...)`)}`);
|
|
374
|
-
console.log(` Status: ${statusColor(deployment.status)} | Version: ${deployment.version}`);
|
|
375
|
-
console.log(` Environment: ${deployment.environmentId} | Strategy: ${deployment.strategyId}`);
|
|
376
|
-
console.log(` Started: ${deployment.metrics.startTime.toLocaleDateString()}`);
|
|
377
|
-
if (deployment.metrics.endTime) {
|
|
378
|
-
console.log(` Duration: ${deployment.metrics.duration}ms`);
|
|
379
|
-
}
|
|
380
|
-
console.log();
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
catch (err) {
|
|
384
|
-
error(`Failed to list deployments: ${err.message}`);
|
|
385
|
-
}
|
|
386
|
-
break;
|
|
387
|
-
}
|
|
388
|
-
case 'rollback': {
|
|
389
|
-
const deploymentId = ctx.args[1];
|
|
390
|
-
const reason = ctx.args.slice(2).join(' ') || 'Manual rollback requested';
|
|
391
|
-
if (!deploymentId) {
|
|
392
|
-
error('Usage: deploy rollback <deployment-id> [reason]');
|
|
393
|
-
break;
|
|
394
|
-
}
|
|
395
|
-
try {
|
|
396
|
-
await manager.rollbackDeployment(deploymentId, reason);
|
|
397
|
-
success(`Rollback initiated for deployment: ${deploymentId}`);
|
|
398
|
-
console.log(`${blue('Reason:')} ${reason}`);
|
|
399
|
-
}
|
|
400
|
-
catch (err) {
|
|
401
|
-
error(`Failed to rollback deployment: ${err.message}`);
|
|
402
|
-
}
|
|
403
|
-
break;
|
|
404
|
-
}
|
|
405
|
-
case 'metrics': {
|
|
406
|
-
try {
|
|
407
|
-
const filters = {};
|
|
408
|
-
if (ctx.flags.environment)
|
|
409
|
-
filters.environmentId = ctx.flags.environment;
|
|
410
|
-
if (ctx.flags.timeRange) {
|
|
411
|
-
const range = ctx.flags.timeRange.split(',');
|
|
412
|
-
filters.timeRange = {
|
|
413
|
-
start: new Date(range[0]),
|
|
414
|
-
end: new Date(range[1]),
|
|
415
|
-
};
|
|
416
|
-
}
|
|
417
|
-
const metrics = await manager.getDeploymentMetrics(filters);
|
|
418
|
-
success('Deployment Metrics:');
|
|
419
|
-
console.log();
|
|
420
|
-
console.log(`${blue('Total Deployments:')} ${metrics.totalDeployments}`);
|
|
421
|
-
console.log(`${blue('Successful:')} ${metrics.successfulDeployments}`);
|
|
422
|
-
console.log(`${blue('Failed:')} ${metrics.failedDeployments}`);
|
|
423
|
-
console.log(`${blue('Rolled Back:')} ${metrics.rolledBackDeployments}`);
|
|
424
|
-
console.log(`${blue('Average Duration:')} ${(metrics.averageDeploymentTime / 1000 / 60).toFixed(1)} minutes`);
|
|
425
|
-
console.log(`${blue('Deployment Frequency:')} ${metrics.deploymentFrequency.toFixed(2)} per day`);
|
|
426
|
-
console.log(`${blue('MTTR:')} ${(metrics.meanTimeToRecovery / 1000 / 60).toFixed(1)} minutes`);
|
|
427
|
-
console.log(`${blue('Change Failure Rate:')} ${metrics.changeFailureRate.toFixed(1)}%`);
|
|
428
|
-
if (Object.keys(metrics.environmentMetrics).length > 0) {
|
|
429
|
-
console.log(`\n${bold('By Environment:')}`);
|
|
430
|
-
for (const [env, data] of Object.entries(metrics.environmentMetrics)) {
|
|
431
|
-
console.log(` ${env}: ${data.deployments} deployments, ${data.successRate.toFixed(1)}% success rate`);
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
}
|
|
435
|
-
catch (err) {
|
|
436
|
-
error(`Failed to get metrics: ${err.message}`);
|
|
437
|
-
}
|
|
438
|
-
break;
|
|
439
|
-
}
|
|
440
|
-
case 'environments': {
|
|
441
|
-
const envSubcommand = ctx.args[1];
|
|
442
|
-
switch (envSubcommand) {
|
|
443
|
-
case 'create': {
|
|
444
|
-
const name = ctx.args[2];
|
|
445
|
-
if (!name) {
|
|
446
|
-
error('Usage: deploy environments create <name> --type <type>');
|
|
447
|
-
break;
|
|
448
|
-
}
|
|
449
|
-
try {
|
|
450
|
-
const environment = await manager.createEnvironment({
|
|
451
|
-
name,
|
|
452
|
-
type: ctx.flags.type || 'development',
|
|
453
|
-
configuration: {
|
|
454
|
-
region: ctx.flags.region || 'us-east-1',
|
|
455
|
-
provider: ctx.flags.provider || 'aws',
|
|
456
|
-
endpoints: ctx.flags.endpoints
|
|
457
|
-
? ctx.flags.endpoints.split(',')
|
|
458
|
-
: [],
|
|
459
|
-
secrets: {},
|
|
460
|
-
environment_variables: {},
|
|
461
|
-
resources: { cpu: '1', memory: '1Gi', storage: '10Gi', replicas: 1 },
|
|
462
|
-
},
|
|
463
|
-
});
|
|
464
|
-
success(`Environment created: ${environment.name}`);
|
|
465
|
-
console.log(`${blue('ID:')} ${environment.id}`);
|
|
466
|
-
console.log(`${blue('Type:')} ${environment.type}`);
|
|
467
|
-
console.log(`${blue('Region:')} ${environment.configuration.region}`);
|
|
468
|
-
console.log(`${blue('Provider:')} ${environment.configuration.provider}`);
|
|
469
|
-
}
|
|
470
|
-
catch (err) {
|
|
471
|
-
error(`Failed to create environment: ${err.message}`);
|
|
472
|
-
}
|
|
473
|
-
break;
|
|
474
|
-
}
|
|
475
|
-
case 'list': {
|
|
476
|
-
// Would implement environment listing
|
|
477
|
-
info('Environment listing not yet implemented');
|
|
478
|
-
break;
|
|
479
|
-
}
|
|
480
|
-
default: {
|
|
481
|
-
console.log('Available environment subcommands: create, list');
|
|
482
|
-
break;
|
|
483
|
-
}
|
|
484
|
-
}
|
|
485
|
-
break;
|
|
486
|
-
}
|
|
487
|
-
default: {
|
|
488
|
-
console.log(`${bold('Available subcommands:')}`);
|
|
489
|
-
console.log(' create <name> Create and execute deployment');
|
|
490
|
-
console.log(' list List deployments');
|
|
491
|
-
console.log(' rollback <id> Rollback deployment');
|
|
492
|
-
console.log(' metrics Show deployment metrics');
|
|
493
|
-
console.log(' environments Manage deployment environments');
|
|
494
|
-
console.log();
|
|
495
|
-
console.log(`${bold('Examples:')}`);
|
|
496
|
-
console.log(` ${cyan('claude-flow deploy create')} "v2.1.0" --environment production --strategy blue-green`);
|
|
497
|
-
console.log(` ${cyan('claude-flow deploy rollback')} deploy-123 "Critical bug found"`);
|
|
498
|
-
console.log(` ${cyan('claude-flow deploy metrics')} --environment production`);
|
|
499
|
-
break;
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
},
|
|
503
|
-
},
|
|
504
|
-
// Cloud Management Commands
|
|
505
|
-
{
|
|
506
|
-
name: 'cloud',
|
|
507
|
-
description: 'Multi-cloud infrastructure management with cost optimization',
|
|
508
|
-
options: [
|
|
509
|
-
{
|
|
510
|
-
name: 'provider',
|
|
511
|
-
short: 'p',
|
|
512
|
-
description: 'Cloud provider (aws, gcp, azure)',
|
|
513
|
-
type: 'string',
|
|
514
|
-
},
|
|
515
|
-
{
|
|
516
|
-
name: 'region',
|
|
517
|
-
short: 'r',
|
|
518
|
-
description: 'Cloud region',
|
|
519
|
-
type: 'string',
|
|
520
|
-
},
|
|
521
|
-
{
|
|
522
|
-
name: 'environment',
|
|
523
|
-
short: 'e',
|
|
524
|
-
description: 'Environment (development, staging, production)',
|
|
525
|
-
type: 'string',
|
|
526
|
-
},
|
|
527
|
-
],
|
|
528
|
-
action: async (ctx) => {
|
|
529
|
-
const subcommand = ctx.args[0];
|
|
530
|
-
const manager = await getCloudManager();
|
|
531
|
-
switch (subcommand) {
|
|
532
|
-
case 'providers': {
|
|
533
|
-
const providerCmd = ctx.args[1];
|
|
534
|
-
switch (providerCmd) {
|
|
535
|
-
case 'add': {
|
|
536
|
-
const name = ctx.args[2];
|
|
537
|
-
const type = ctx.args[3];
|
|
538
|
-
if (!name || !type) {
|
|
539
|
-
error('Usage: cloud providers add <name> <type>');
|
|
540
|
-
break;
|
|
541
|
-
}
|
|
542
|
-
try {
|
|
543
|
-
const provider = await manager.addProvider({
|
|
544
|
-
name,
|
|
545
|
-
type,
|
|
546
|
-
credentials: {
|
|
547
|
-
accessKey: ctx.flags.accessKey,
|
|
548
|
-
secretKey: ctx.flags.secretKey,
|
|
549
|
-
projectId: ctx.flags.projectId,
|
|
550
|
-
},
|
|
551
|
-
configuration: {
|
|
552
|
-
defaultRegion: ctx.flags.region || 'us-east-1',
|
|
553
|
-
availableRegions: ctx.flags.regions
|
|
554
|
-
? ctx.flags.regions.split(',')
|
|
555
|
-
: [],
|
|
556
|
-
services: ['compute', 'storage', 'network'],
|
|
557
|
-
endpoints: { api: 'https://api.example.com' },
|
|
558
|
-
features: ['scaling', 'monitoring', 'backup'],
|
|
559
|
-
},
|
|
560
|
-
});
|
|
561
|
-
success(`Cloud provider added: ${provider.name}`);
|
|
562
|
-
console.log(`${blue('ID:')} ${provider.id}`);
|
|
563
|
-
console.log(`${blue('Type:')} ${provider.type}`);
|
|
564
|
-
console.log(`${blue('Status:')} ${provider.status}`);
|
|
565
|
-
console.log(`${blue('Default Region:')} ${provider.configuration.defaultRegion}`);
|
|
566
|
-
}
|
|
567
|
-
catch (err) {
|
|
568
|
-
error(`Failed to add provider: ${err.message}`);
|
|
569
|
-
}
|
|
570
|
-
break;
|
|
571
|
-
}
|
|
572
|
-
case 'list': {
|
|
573
|
-
// Would implement provider listing
|
|
574
|
-
info('Provider listing not yet implemented');
|
|
575
|
-
break;
|
|
576
|
-
}
|
|
577
|
-
default: {
|
|
578
|
-
console.log('Available provider subcommands: add, list');
|
|
579
|
-
break;
|
|
580
|
-
}
|
|
581
|
-
}
|
|
582
|
-
break;
|
|
583
|
-
}
|
|
584
|
-
case 'resources': {
|
|
585
|
-
const resourceCmd = ctx.args[1];
|
|
586
|
-
switch (resourceCmd) {
|
|
587
|
-
case 'create': {
|
|
588
|
-
const name = ctx.args[2];
|
|
589
|
-
const type = ctx.args[3];
|
|
590
|
-
if (!name || !type) {
|
|
591
|
-
error('Usage: cloud resources create <name> <type> --provider <provider-id>');
|
|
592
|
-
break;
|
|
593
|
-
}
|
|
594
|
-
try {
|
|
595
|
-
const resource = await manager.createResource({
|
|
596
|
-
name,
|
|
597
|
-
type,
|
|
598
|
-
providerId: ctx.flags.provider || 'default',
|
|
599
|
-
region: ctx.flags.region || 'us-east-1',
|
|
600
|
-
configuration: {
|
|
601
|
-
size: ctx.flags.size || 'small',
|
|
602
|
-
tags: ctx.flags.tags ? JSON.parse(ctx.flags.tags) : {},
|
|
603
|
-
},
|
|
604
|
-
metadata: {
|
|
605
|
-
environment: ctx.flags.environment || 'development',
|
|
606
|
-
owner: ctx.flags.owner || 'system',
|
|
607
|
-
purpose: ctx.flags.purpose || 'general',
|
|
608
|
-
},
|
|
609
|
-
});
|
|
610
|
-
success(`Resource created: ${resource.name}`);
|
|
611
|
-
console.log(`${blue('ID:')} ${resource.id}`);
|
|
612
|
-
console.log(`${blue('Type:')} ${resource.type}`);
|
|
613
|
-
console.log(`${blue('Status:')} ${resource.status}`);
|
|
614
|
-
console.log(`${blue('Provider:')} ${resource.providerId}`);
|
|
615
|
-
console.log(`${blue('Region:')} ${resource.region}`);
|
|
616
|
-
console.log(`${blue('Monthly Cost:')} $${resource.costs.monthlyEstimate.toFixed(2)}`);
|
|
617
|
-
}
|
|
618
|
-
catch (err) {
|
|
619
|
-
error(`Failed to create resource: ${err.message}`);
|
|
620
|
-
}
|
|
621
|
-
break;
|
|
622
|
-
}
|
|
623
|
-
case 'list': {
|
|
624
|
-
// Would implement resource listing
|
|
625
|
-
info('Resource listing not yet implemented');
|
|
626
|
-
break;
|
|
627
|
-
}
|
|
628
|
-
case 'scale': {
|
|
629
|
-
const resourceId = ctx.args[2];
|
|
630
|
-
if (!resourceId) {
|
|
631
|
-
error('Usage: cloud resources scale <resource-id> --size <size>');
|
|
632
|
-
break;
|
|
633
|
-
}
|
|
634
|
-
try {
|
|
635
|
-
await manager.scaleResource(resourceId, {
|
|
636
|
-
size: ctx.flags.size,
|
|
637
|
-
replicas: ctx.flags.replicas,
|
|
638
|
-
});
|
|
639
|
-
success(`Resource scaled: ${resourceId}`);
|
|
640
|
-
}
|
|
641
|
-
catch (err) {
|
|
642
|
-
error(`Failed to scale resource: ${err.message}`);
|
|
643
|
-
}
|
|
644
|
-
break;
|
|
645
|
-
}
|
|
646
|
-
case 'delete': {
|
|
647
|
-
const resourceId = ctx.args[2];
|
|
648
|
-
if (!resourceId) {
|
|
649
|
-
error('Usage: cloud resources delete <resource-id>');
|
|
650
|
-
break;
|
|
651
|
-
}
|
|
652
|
-
try {
|
|
653
|
-
await manager.deleteResource(resourceId);
|
|
654
|
-
success(`Resource deleted: ${resourceId}`);
|
|
655
|
-
}
|
|
656
|
-
catch (err) {
|
|
657
|
-
error(`Failed to delete resource: ${err.message}`);
|
|
658
|
-
}
|
|
659
|
-
break;
|
|
660
|
-
}
|
|
661
|
-
default: {
|
|
662
|
-
console.log('Available resource subcommands: create, list, scale, delete');
|
|
663
|
-
break;
|
|
664
|
-
}
|
|
665
|
-
}
|
|
666
|
-
break;
|
|
667
|
-
}
|
|
668
|
-
case 'optimize': {
|
|
669
|
-
try {
|
|
670
|
-
const filters = {};
|
|
671
|
-
if (ctx.flags.provider)
|
|
672
|
-
filters.providerId = ctx.flags.provider;
|
|
673
|
-
if (ctx.flags.environment)
|
|
674
|
-
filters.environment = ctx.flags.environment;
|
|
675
|
-
const optimizations = await manager.optimizeCosts(filters);
|
|
676
|
-
if (optimizations.length === 0) {
|
|
677
|
-
info('No cost optimization opportunities found');
|
|
678
|
-
break;
|
|
679
|
-
}
|
|
680
|
-
success(`Found ${optimizations.length} cost optimization opportunities:`);
|
|
681
|
-
console.log();
|
|
682
|
-
for (const opt of optimizations) {
|
|
683
|
-
console.log(`${bold(opt.type.toUpperCase())}: ${opt.description}`);
|
|
684
|
-
console.log(` ${green('Potential Savings:')} $${opt.potentialSavings.toFixed(2)}/month`);
|
|
685
|
-
console.log(` ${blue('Effort:')} ${opt.effort} | ${blue('Priority:')} ${opt.priority}`);
|
|
686
|
-
console.log(` ${yellow('Implementation:')} ${opt.implementation}`);
|
|
687
|
-
console.log();
|
|
688
|
-
}
|
|
689
|
-
const totalSavings = optimizations.reduce((sum, opt) => sum + opt.potentialSavings, 0);
|
|
690
|
-
success(`Total potential savings: $${totalSavings.toFixed(2)}/month`);
|
|
691
|
-
}
|
|
692
|
-
catch (err) {
|
|
693
|
-
error(`Failed to analyze cost optimization: ${err.message}`);
|
|
694
|
-
}
|
|
695
|
-
break;
|
|
696
|
-
}
|
|
697
|
-
case 'metrics': {
|
|
698
|
-
try {
|
|
699
|
-
const filters = {};
|
|
700
|
-
if (ctx.flags.provider)
|
|
701
|
-
filters.providerId = ctx.flags.provider;
|
|
702
|
-
if (ctx.flags.environment)
|
|
703
|
-
filters.environment = ctx.flags.environment;
|
|
704
|
-
const metrics = await manager.getCloudMetrics(filters);
|
|
705
|
-
success('Cloud Infrastructure Metrics:');
|
|
706
|
-
console.log();
|
|
707
|
-
console.log(`${bold('Providers:')}`);
|
|
708
|
-
console.log(` Total: ${metrics.providers.total} | Active: ${metrics.providers.active}`);
|
|
709
|
-
console.log(` Inactive: ${metrics.providers.inactive} | Errors: ${metrics.providers.errors}`);
|
|
710
|
-
console.log(`\n${bold('Resources:')}`);
|
|
711
|
-
console.log(` Total: ${metrics.resources.total} | Running: ${metrics.resources.running}`);
|
|
712
|
-
console.log(` Stopped: ${metrics.resources.stopped} | Errors: ${metrics.resources.errors}`);
|
|
713
|
-
console.log(`\n${bold('Costs:')}`);
|
|
714
|
-
console.log(` Total Spend: $${metrics.costs.totalSpend.toFixed(2)}`);
|
|
715
|
-
console.log(` Monthly Spend: $${metrics.costs.monthlySpend.toFixed(2)}`);
|
|
716
|
-
console.log(` Projected Annual: $${metrics.costs.projectedSpend.toFixed(2)}`);
|
|
717
|
-
console.log(`\n${bold('Performance:')}`);
|
|
718
|
-
console.log(` Average Uptime: ${metrics.performance.averageUptime.toFixed(1)}%`);
|
|
719
|
-
console.log(` Availability: ${metrics.performance.availability.toFixed(1)}%`);
|
|
720
|
-
console.log(`\n${bold('Security:')}`);
|
|
721
|
-
console.log(` Encryption Coverage: ${metrics.security.encryptionCoverage.toFixed(1)}%`);
|
|
722
|
-
console.log(` Backup Coverage: ${metrics.security.backupCoverage.toFixed(1)}%`);
|
|
723
|
-
}
|
|
724
|
-
catch (err) {
|
|
725
|
-
error(`Failed to get metrics: ${err.message}`);
|
|
726
|
-
}
|
|
727
|
-
break;
|
|
728
|
-
}
|
|
729
|
-
default: {
|
|
730
|
-
console.log(`${bold('Available subcommands:')}`);
|
|
731
|
-
console.log(' providers Manage cloud providers');
|
|
732
|
-
console.log(' resources Manage cloud resources');
|
|
733
|
-
console.log(' optimize Analyze cost optimization opportunities');
|
|
734
|
-
console.log(' metrics Show cloud infrastructure metrics');
|
|
735
|
-
console.log();
|
|
736
|
-
console.log(`${bold('Examples:')}`);
|
|
737
|
-
console.log(` ${cyan('claude-flow cloud providers add')} "AWS Production" aws --access-key xxx`);
|
|
738
|
-
console.log(` ${cyan('claude-flow cloud resources create')} "web-server" compute --provider aws-prod`);
|
|
739
|
-
console.log(` ${cyan('claude-flow cloud optimize')} --environment production`);
|
|
740
|
-
break;
|
|
741
|
-
}
|
|
742
|
-
}
|
|
743
|
-
},
|
|
744
|
-
},
|
|
745
|
-
// Security Management Commands
|
|
746
|
-
{
|
|
747
|
-
name: 'security',
|
|
748
|
-
description: 'Security scanning, compliance checking, and vulnerability management',
|
|
749
|
-
options: [
|
|
750
|
-
{
|
|
751
|
-
name: 'type',
|
|
752
|
-
short: 't',
|
|
753
|
-
description: 'Scan type (vulnerability, dependency, secrets, compliance)',
|
|
754
|
-
type: 'string',
|
|
755
|
-
},
|
|
756
|
-
{
|
|
757
|
-
name: 'severity',
|
|
758
|
-
short: 's',
|
|
759
|
-
description: 'Minimum severity level (low, medium, high, critical)',
|
|
760
|
-
type: 'string',
|
|
761
|
-
},
|
|
762
|
-
{
|
|
763
|
-
name: 'format',
|
|
764
|
-
short: 'f',
|
|
765
|
-
description: 'Output format (json, csv, html)',
|
|
766
|
-
type: 'string',
|
|
767
|
-
},
|
|
768
|
-
],
|
|
769
|
-
action: async (ctx) => {
|
|
770
|
-
const subcommand = ctx.args[0];
|
|
771
|
-
const manager = await getSecurityManager();
|
|
772
|
-
switch (subcommand) {
|
|
773
|
-
case 'scan': {
|
|
774
|
-
const name = ctx.args[1];
|
|
775
|
-
const target = ctx.args[2];
|
|
776
|
-
if (!name || !target) {
|
|
777
|
-
error('Usage: security scan <name> <target-path> --type <scan-type>');
|
|
778
|
-
break;
|
|
779
|
-
}
|
|
780
|
-
try {
|
|
781
|
-
const scan = await manager.createSecurityScan({
|
|
782
|
-
name,
|
|
783
|
-
type: ctx.flags.type || 'vulnerability',
|
|
784
|
-
target: {
|
|
785
|
-
type: 'repository',
|
|
786
|
-
path: target,
|
|
787
|
-
branch: ctx.flags.branch || 'main',
|
|
788
|
-
},
|
|
789
|
-
projectId: ctx.flags.project,
|
|
790
|
-
configuration: {
|
|
791
|
-
severity: ctx.flags.severity
|
|
792
|
-
? ctx.flags.severity.split(',')
|
|
793
|
-
: undefined,
|
|
794
|
-
formats: ctx.flags.format ? ctx.flags.format.split(',') : undefined,
|
|
795
|
-
},
|
|
796
|
-
});
|
|
797
|
-
success(`Security scan created: ${scan.name}`);
|
|
798
|
-
console.log(`${blue('ID:')} ${scan.id}`);
|
|
799
|
-
console.log(`${blue('Type:')} ${scan.type}`);
|
|
800
|
-
console.log(`${blue('Target:')} ${scan.target.path}`);
|
|
801
|
-
console.log(`${blue('Status:')} ${scan.status}`);
|
|
802
|
-
info('Executing scan...');
|
|
803
|
-
await manager.executeScan(scan.id);
|
|
804
|
-
const updatedScan = await manager['scans'].get(scan.id);
|
|
805
|
-
if (updatedScan) {
|
|
806
|
-
success(`Scan completed: ${updatedScan.results.length} findings`);
|
|
807
|
-
console.log(`${blue('Critical:')} ${updatedScan.metrics.criticalFindings}`);
|
|
808
|
-
console.log(`${blue('High:')} ${updatedScan.metrics.highFindings}`);
|
|
809
|
-
console.log(`${blue('Medium:')} ${updatedScan.metrics.mediumFindings}`);
|
|
810
|
-
console.log(`${blue('Low:')} ${updatedScan.metrics.lowFindings}`);
|
|
811
|
-
console.log(`${blue('Duration:')} ${(updatedScan.metrics.scanDuration / 1000).toFixed(1)}s`);
|
|
812
|
-
}
|
|
813
|
-
}
|
|
814
|
-
catch (err) {
|
|
815
|
-
error(`Failed to execute scan: ${err.message}`);
|
|
816
|
-
}
|
|
817
|
-
break;
|
|
818
|
-
}
|
|
819
|
-
case 'incident': {
|
|
820
|
-
const incidentCmd = ctx.args[1];
|
|
821
|
-
switch (incidentCmd) {
|
|
822
|
-
case 'create': {
|
|
823
|
-
const title = ctx.args[2];
|
|
824
|
-
if (!title) {
|
|
825
|
-
error('Usage: security incident create <title> --severity <level>');
|
|
826
|
-
break;
|
|
827
|
-
}
|
|
828
|
-
try {
|
|
829
|
-
const incident = await manager.createSecurityIncident({
|
|
830
|
-
title,
|
|
831
|
-
description: ctx.args.slice(3).join(' ') || title,
|
|
832
|
-
severity: ctx.flags.severity || 'medium',
|
|
833
|
-
type: ctx.flags.type || 'security-breach',
|
|
834
|
-
source: {
|
|
835
|
-
type: 'user-report',
|
|
836
|
-
details: { reporter: 'cli-user' },
|
|
837
|
-
},
|
|
838
|
-
affected: {
|
|
839
|
-
systems: ctx.flags.systems ? ctx.flags.systems.split(',') : [],
|
|
840
|
-
},
|
|
841
|
-
});
|
|
842
|
-
success(`Security incident created: ${incident.title}`);
|
|
843
|
-
console.log(`${blue('ID:')} ${incident.id}`);
|
|
844
|
-
console.log(`${blue('Severity:')} ${incident.severity}`);
|
|
845
|
-
console.log(`${blue('Type:')} ${incident.type}`);
|
|
846
|
-
console.log(`${blue('Status:')} ${incident.status}`);
|
|
847
|
-
console.log(`${blue('Assigned To:')} ${incident.response.assignedTo.join(', ')}`);
|
|
848
|
-
}
|
|
849
|
-
catch (err) {
|
|
850
|
-
error(`Failed to create incident: ${err.message}`);
|
|
851
|
-
}
|
|
852
|
-
break;
|
|
853
|
-
}
|
|
854
|
-
case 'list': {
|
|
855
|
-
// Would implement incident listing
|
|
856
|
-
info('Incident listing not yet implemented');
|
|
857
|
-
break;
|
|
858
|
-
}
|
|
859
|
-
default: {
|
|
860
|
-
console.log('Available incident subcommands: create, list');
|
|
861
|
-
break;
|
|
862
|
-
}
|
|
863
|
-
}
|
|
864
|
-
break;
|
|
865
|
-
}
|
|
866
|
-
case 'compliance': {
|
|
867
|
-
const frameworks = ctx.args.slice(1);
|
|
868
|
-
if (frameworks.length === 0) {
|
|
869
|
-
error('Usage: security compliance <framework1> [framework2] ...');
|
|
870
|
-
break;
|
|
871
|
-
}
|
|
872
|
-
try {
|
|
873
|
-
const checks = await manager.runComplianceAssessment(frameworks, {
|
|
874
|
-
projectId: ctx.flags.project,
|
|
875
|
-
environment: ctx.flags.environment,
|
|
876
|
-
});
|
|
877
|
-
success(`Compliance assessment completed: ${checks.length} checks`);
|
|
878
|
-
console.log();
|
|
879
|
-
const byFramework = {};
|
|
880
|
-
for (const check of checks) {
|
|
881
|
-
if (!byFramework[check.framework]) {
|
|
882
|
-
byFramework[check.framework] = { passed: 0, failed: 0, total: 0 };
|
|
883
|
-
}
|
|
884
|
-
byFramework[check.framework].total++;
|
|
885
|
-
if (check.status === 'passed') {
|
|
886
|
-
byFramework[check.framework].passed++;
|
|
887
|
-
}
|
|
888
|
-
else if (check.status === 'failed') {
|
|
889
|
-
byFramework[check.framework].failed++;
|
|
890
|
-
}
|
|
891
|
-
}
|
|
892
|
-
for (const [framework, stats] of Object.entries(byFramework)) {
|
|
893
|
-
const score = (stats.passed / stats.total) * 100;
|
|
894
|
-
console.log(`${bold(framework)}:`);
|
|
895
|
-
console.log(` Score: ${score.toFixed(1)}% (${stats.passed}/${stats.total})`);
|
|
896
|
-
console.log(` ${green('Passed:')} ${stats.passed} | ${red('Failed:')} ${stats.failed}`);
|
|
897
|
-
console.log();
|
|
898
|
-
}
|
|
899
|
-
}
|
|
900
|
-
catch (err) {
|
|
901
|
-
error(`Failed to run compliance assessment: ${err.message}`);
|
|
902
|
-
}
|
|
903
|
-
break;
|
|
904
|
-
}
|
|
905
|
-
case 'metrics': {
|
|
906
|
-
try {
|
|
907
|
-
const filters = {};
|
|
908
|
-
if (ctx.flags.project)
|
|
909
|
-
filters.projectId = ctx.flags.project;
|
|
910
|
-
if (ctx.flags.environment)
|
|
911
|
-
filters.environment = ctx.flags.environment;
|
|
912
|
-
const metrics = await manager.getSecurityMetrics(filters);
|
|
913
|
-
success('Security Metrics:');
|
|
914
|
-
console.log();
|
|
915
|
-
console.log(`${bold('Scans:')}`);
|
|
916
|
-
console.log(` Total: ${metrics.scans.total} | Completed: ${metrics.scans.completed}`);
|
|
917
|
-
console.log(` Failed: ${metrics.scans.failed} | In Progress: ${metrics.scans.inProgress}`);
|
|
918
|
-
console.log(`\n${bold('Findings:')}`);
|
|
919
|
-
console.log(` Total: ${metrics.findings.total} | Open: ${metrics.findings.open}`);
|
|
920
|
-
console.log(` Resolved: ${metrics.findings.resolved} | Suppressed: ${metrics.findings.suppressed}`);
|
|
921
|
-
console.log(` Critical: ${metrics.findings.bySeverity.critical || 0} | High: ${metrics.findings.bySeverity.high || 0}`);
|
|
922
|
-
console.log(`\n${bold('Compliance:')}`);
|
|
923
|
-
console.log(` Overall Score: ${metrics.compliance.overallScore.toFixed(1)}%`);
|
|
924
|
-
console.log(` Trending: ${metrics.compliance.trending}`);
|
|
925
|
-
console.log(`\n${bold('Incidents:')}`);
|
|
926
|
-
console.log(` Total: ${metrics.incidents.total} | Open: ${metrics.incidents.open}`);
|
|
927
|
-
console.log(` Resolved: ${metrics.incidents.resolved}`);
|
|
928
|
-
console.log(` MTTD: ${(metrics.incidents.meanTimeToDetection / 1000 / 60).toFixed(1)} minutes`);
|
|
929
|
-
console.log(` MTTR: ${(metrics.incidents.meanTimeToResolution / 1000 / 60 / 60).toFixed(1)} hours`);
|
|
930
|
-
}
|
|
931
|
-
catch (err) {
|
|
932
|
-
error(`Failed to get security metrics: ${err.message}`);
|
|
933
|
-
}
|
|
934
|
-
break;
|
|
935
|
-
}
|
|
936
|
-
default: {
|
|
937
|
-
console.log(`${bold('Available subcommands:')}`);
|
|
938
|
-
console.log(' scan <name> <target> Execute security scan');
|
|
939
|
-
console.log(' incident Manage security incidents');
|
|
940
|
-
console.log(' compliance <frameworks> Run compliance assessment');
|
|
941
|
-
console.log(' metrics Show security metrics');
|
|
942
|
-
console.log();
|
|
943
|
-
console.log(`${bold('Examples:')}`);
|
|
944
|
-
console.log(` ${cyan('claude-flow security scan')} "API Vulnerability Scan" ./api --type vulnerability`);
|
|
945
|
-
console.log(` ${cyan('claude-flow security incident create')} "Unauthorized Access" --severity high`);
|
|
946
|
-
console.log(` ${cyan('claude-flow security compliance')} SOC2 GDPR --project web-app`);
|
|
947
|
-
break;
|
|
948
|
-
}
|
|
949
|
-
}
|
|
950
|
-
},
|
|
951
|
-
},
|
|
952
|
-
// Analytics Commands
|
|
953
|
-
{
|
|
954
|
-
name: 'analytics',
|
|
955
|
-
description: 'Performance analytics, usage insights, and predictive optimization',
|
|
956
|
-
options: [
|
|
957
|
-
{
|
|
958
|
-
name: 'timerange',
|
|
959
|
-
short: 't',
|
|
960
|
-
description: 'Time range for analysis (1h, 24h, 7d, 30d)',
|
|
961
|
-
type: 'string',
|
|
962
|
-
},
|
|
963
|
-
{
|
|
964
|
-
name: 'format',
|
|
965
|
-
short: 'f',
|
|
966
|
-
description: 'Output format (json, table, chart)',
|
|
967
|
-
type: 'string',
|
|
968
|
-
},
|
|
969
|
-
],
|
|
970
|
-
action: async (ctx) => {
|
|
971
|
-
const subcommand = ctx.args[0];
|
|
972
|
-
const manager = await getAnalyticsManager();
|
|
973
|
-
switch (subcommand) {
|
|
974
|
-
case 'dashboard': {
|
|
975
|
-
const dashboardCmd = ctx.args[1];
|
|
976
|
-
switch (dashboardCmd) {
|
|
977
|
-
case 'create': {
|
|
978
|
-
const name = ctx.args[2];
|
|
979
|
-
if (!name) {
|
|
980
|
-
error('Usage: analytics dashboard create <name> --type <type>');
|
|
981
|
-
break;
|
|
982
|
-
}
|
|
983
|
-
try {
|
|
984
|
-
const dashboard = await manager.createDashboard({
|
|
985
|
-
name,
|
|
986
|
-
description: ctx.args.slice(3).join(' ') || `Dashboard: ${name}`,
|
|
987
|
-
type: ctx.flags.type || 'operational',
|
|
988
|
-
widgets: [], // Would be populated based on template
|
|
989
|
-
});
|
|
990
|
-
success(`Dashboard created: ${dashboard.name}`);
|
|
991
|
-
console.log(`${blue('ID:')} ${dashboard.id}`);
|
|
992
|
-
console.log(`${blue('Type:')} ${dashboard.type}`);
|
|
993
|
-
console.log(`${blue('Widgets:')} ${dashboard.widgets.length}`);
|
|
994
|
-
}
|
|
995
|
-
catch (err) {
|
|
996
|
-
error(`Failed to create dashboard: ${err.message}`);
|
|
997
|
-
}
|
|
998
|
-
break;
|
|
999
|
-
}
|
|
1000
|
-
case 'list': {
|
|
1001
|
-
// Would implement dashboard listing
|
|
1002
|
-
info('Dashboard listing not yet implemented');
|
|
1003
|
-
break;
|
|
1004
|
-
}
|
|
1005
|
-
default: {
|
|
1006
|
-
console.log('Available dashboard subcommands: create, list');
|
|
1007
|
-
break;
|
|
1008
|
-
}
|
|
1009
|
-
}
|
|
1010
|
-
break;
|
|
1011
|
-
}
|
|
1012
|
-
case 'insights': {
|
|
1013
|
-
try {
|
|
1014
|
-
const scope = {};
|
|
1015
|
-
if (ctx.flags.metrics) {
|
|
1016
|
-
scope.metrics = ctx.flags.metrics.split(',');
|
|
1017
|
-
}
|
|
1018
|
-
if (ctx.flags.timerange) {
|
|
1019
|
-
const range = ctx.flags.timerange;
|
|
1020
|
-
const now = new Date();
|
|
1021
|
-
let start;
|
|
1022
|
-
switch (range) {
|
|
1023
|
-
case '1h':
|
|
1024
|
-
start = new Date(now.getTime() - 60 * 60 * 1000);
|
|
1025
|
-
break;
|
|
1026
|
-
case '24h':
|
|
1027
|
-
start = new Date(now.getTime() - 24 * 60 * 60 * 1000);
|
|
1028
|
-
break;
|
|
1029
|
-
case '7d':
|
|
1030
|
-
start = new Date(now.getTime() - 7 * 24 * 60 * 60 * 1000);
|
|
1031
|
-
break;
|
|
1032
|
-
case '30d':
|
|
1033
|
-
start = new Date(now.getTime() - 30 * 24 * 60 * 60 * 1000);
|
|
1034
|
-
break;
|
|
1035
|
-
default:
|
|
1036
|
-
start = new Date(now.getTime() - 24 * 60 * 60 * 1000);
|
|
1037
|
-
}
|
|
1038
|
-
scope.timeRange = { start, end: now };
|
|
1039
|
-
}
|
|
1040
|
-
const insights = await manager.generateInsights(scope);
|
|
1041
|
-
if (insights.length === 0) {
|
|
1042
|
-
info('No insights generated');
|
|
1043
|
-
break;
|
|
1044
|
-
}
|
|
1045
|
-
success(`Generated ${insights.length} insights:`);
|
|
1046
|
-
console.log();
|
|
1047
|
-
for (const insight of insights) {
|
|
1048
|
-
const priorityColor = insight.priority === 'critical'
|
|
1049
|
-
? red
|
|
1050
|
-
: insight.priority === 'high'
|
|
1051
|
-
? yellow
|
|
1052
|
-
: insight.priority === 'medium'
|
|
1053
|
-
? blue
|
|
1054
|
-
: green;
|
|
1055
|
-
console.log(`${bold(insight.title)} ${priorityColor(`[${insight.priority.toUpperCase()}]`)}`);
|
|
1056
|
-
console.log(` ${insight.description}`);
|
|
1057
|
-
console.log(` Type: ${insight.type} | Category: ${insight.category} | Confidence: ${insight.confidence}%`);
|
|
1058
|
-
if (insight.recommendations.length > 0) {
|
|
1059
|
-
console.log(` Recommendations:`);
|
|
1060
|
-
for (const rec of insight.recommendations) {
|
|
1061
|
-
console.log(` • ${rec.action} (${rec.effort} effort)`);
|
|
1062
|
-
}
|
|
1063
|
-
}
|
|
1064
|
-
console.log();
|
|
1065
|
-
}
|
|
1066
|
-
}
|
|
1067
|
-
catch (err) {
|
|
1068
|
-
error(`Failed to generate insights: ${err.message}`);
|
|
1069
|
-
}
|
|
1070
|
-
break;
|
|
1071
|
-
}
|
|
1072
|
-
case 'metrics': {
|
|
1073
|
-
const metricType = ctx.args[1] || 'performance';
|
|
1074
|
-
try {
|
|
1075
|
-
switch (metricType) {
|
|
1076
|
-
case 'performance': {
|
|
1077
|
-
const metrics = await manager.getPerformanceMetrics();
|
|
1078
|
-
success('Performance Metrics:');
|
|
1079
|
-
console.log();
|
|
1080
|
-
console.log(`${bold('System:')}`);
|
|
1081
|
-
console.log(` CPU Usage: ${metrics.system.cpu.usage.toFixed(1)}%`);
|
|
1082
|
-
console.log(` Memory Usage: ${metrics.system.memory.usage.toFixed(1)}%`);
|
|
1083
|
-
console.log(` Disk Usage: ${metrics.system.disk.usage.toFixed(1)}%`);
|
|
1084
|
-
console.log(`\n${bold('Application:')}`);
|
|
1085
|
-
console.log(` Response Time: ${metrics.application.responseTime.avg.toFixed(1)}ms (avg)`);
|
|
1086
|
-
console.log(` Throughput: ${metrics.application.throughput.requestsPerSecond.toFixed(1)} req/s`);
|
|
1087
|
-
console.log(` Error Rate: ${metrics.application.errors.rate.toFixed(2)}%`);
|
|
1088
|
-
console.log(` Availability: ${metrics.application.availability.uptime.toFixed(2)}%`);
|
|
1089
|
-
console.log(`\n${bold('Database:')}`);
|
|
1090
|
-
console.log(` Active Connections: ${metrics.database.connections.active}`);
|
|
1091
|
-
console.log(` Avg Query Time: ${metrics.database.queries.avgExecutionTime.toFixed(1)}ms`);
|
|
1092
|
-
console.log(` Slow Queries: ${metrics.database.queries.slowQueries}`);
|
|
1093
|
-
break;
|
|
1094
|
-
}
|
|
1095
|
-
case 'usage': {
|
|
1096
|
-
const metrics = await manager.getUsageMetrics();
|
|
1097
|
-
success('Usage Metrics:');
|
|
1098
|
-
console.log();
|
|
1099
|
-
console.log(`${bold('Users:')}`);
|
|
1100
|
-
console.log(` Total: ${metrics.users.total}`);
|
|
1101
|
-
console.log(` Active: ${metrics.users.active}`);
|
|
1102
|
-
console.log(` New: ${metrics.users.new}`);
|
|
1103
|
-
console.log(` Churn: ${metrics.users.churn}`);
|
|
1104
|
-
console.log(`\n${bold('Sessions:')}`);
|
|
1105
|
-
console.log(` Total: ${metrics.sessions.total}`);
|
|
1106
|
-
console.log(` Avg Duration: ${(metrics.sessions.duration.avg / 60).toFixed(1)} minutes`);
|
|
1107
|
-
console.log(` Bounce Rate: ${metrics.sessions.bounceRate}%`);
|
|
1108
|
-
console.log(`\n${bold('API:')}`);
|
|
1109
|
-
console.log(` Calls: ${metrics.api.calls.toLocaleString()}`);
|
|
1110
|
-
console.log(` Unique Consumers: ${metrics.api.uniqueConsumers}`);
|
|
1111
|
-
console.log(` Avg Response Time: ${metrics.api.avgResponseTime}ms`);
|
|
1112
|
-
console.log(` Error Rate: ${metrics.api.errorRate}%`);
|
|
1113
|
-
break;
|
|
1114
|
-
}
|
|
1115
|
-
case 'business': {
|
|
1116
|
-
const metrics = await manager.getBusinessMetrics();
|
|
1117
|
-
success('Business Metrics:');
|
|
1118
|
-
console.log();
|
|
1119
|
-
console.log(`${bold('Revenue:')}`);
|
|
1120
|
-
console.log(` Total: $${metrics.revenue.total.toLocaleString()}`);
|
|
1121
|
-
console.log(` Recurring: $${metrics.revenue.recurring.toLocaleString()}`);
|
|
1122
|
-
console.log(` Growth: ${metrics.revenue.growth}%`);
|
|
1123
|
-
console.log(` ARPU: $${metrics.revenue.arpu}`);
|
|
1124
|
-
console.log(`\n${bold('Customers:')}`);
|
|
1125
|
-
console.log(` Total: ${metrics.customers.total}`);
|
|
1126
|
-
console.log(` New: ${metrics.customers.new}`);
|
|
1127
|
-
console.log(` Churned: ${metrics.customers.churned}`);
|
|
1128
|
-
console.log(` Satisfaction: ${metrics.customers.satisfaction}/5`);
|
|
1129
|
-
console.log(`\n${bold('Conversion:')}`);
|
|
1130
|
-
console.log(` Leads: ${metrics.conversion.leads}`);
|
|
1131
|
-
console.log(` Qualified: ${metrics.conversion.qualified}`);
|
|
1132
|
-
console.log(` Closed: ${metrics.conversion.closed}`);
|
|
1133
|
-
console.log(` Rate: ${metrics.conversion.rate}%`);
|
|
1134
|
-
break;
|
|
1135
|
-
}
|
|
1136
|
-
default: {
|
|
1137
|
-
error(`Unknown metric type: ${metricType}`);
|
|
1138
|
-
console.log('Available types: performance, usage, business');
|
|
1139
|
-
break;
|
|
1140
|
-
}
|
|
1141
|
-
}
|
|
1142
|
-
}
|
|
1143
|
-
catch (err) {
|
|
1144
|
-
error(`Failed to get ${metricType} metrics: ${err.message}`);
|
|
1145
|
-
}
|
|
1146
|
-
break;
|
|
1147
|
-
}
|
|
1148
|
-
case 'predict': {
|
|
1149
|
-
const modelCmd = ctx.args[1];
|
|
1150
|
-
switch (modelCmd) {
|
|
1151
|
-
case 'train': {
|
|
1152
|
-
const name = ctx.args[2];
|
|
1153
|
-
if (!name) {
|
|
1154
|
-
error('Usage: analytics predict train <name> --features <features> --target <target>');
|
|
1155
|
-
break;
|
|
1156
|
-
}
|
|
1157
|
-
try {
|
|
1158
|
-
const features = ctx.flags.features
|
|
1159
|
-
? ctx.flags.features.split(',')
|
|
1160
|
-
: ['cpu-usage', 'memory-usage'];
|
|
1161
|
-
const target = ctx.flags.target || 'response-time';
|
|
1162
|
-
const model = await manager.trainPredictiveModel({
|
|
1163
|
-
name,
|
|
1164
|
-
description: `Predictive model: ${name}`,
|
|
1165
|
-
type: ctx.flags.type || 'regression',
|
|
1166
|
-
algorithm: ctx.flags.algorithm || 'linear-regression',
|
|
1167
|
-
features,
|
|
1168
|
-
target,
|
|
1169
|
-
trainingPeriod: {
|
|
1170
|
-
start: new Date(Date.now() - 30 * 24 * 60 * 60 * 1000),
|
|
1171
|
-
end: new Date(),
|
|
1172
|
-
},
|
|
1173
|
-
});
|
|
1174
|
-
success(`Predictive model trained: ${model.name}`);
|
|
1175
|
-
console.log(`${blue('ID:')} ${model.id}`);
|
|
1176
|
-
console.log(`${blue('Type:')} ${model.type}`);
|
|
1177
|
-
console.log(`${blue('Algorithm:')} ${model.algorithm}`);
|
|
1178
|
-
console.log(`${blue('Accuracy:')} ${model.accuracy.toFixed(1)}%`);
|
|
1179
|
-
console.log(`${blue('Features:')} ${model.features.join(', ')}`);
|
|
1180
|
-
}
|
|
1181
|
-
catch (err) {
|
|
1182
|
-
error(`Failed to train model: ${err.message}`);
|
|
1183
|
-
}
|
|
1184
|
-
break;
|
|
1185
|
-
}
|
|
1186
|
-
case 'predict': {
|
|
1187
|
-
const modelId = ctx.args[2];
|
|
1188
|
-
if (!modelId) {
|
|
1189
|
-
error('Usage: analytics predict predict <model-id> --input <json>');
|
|
1190
|
-
break;
|
|
1191
|
-
}
|
|
1192
|
-
try {
|
|
1193
|
-
const input = ctx.flags.input
|
|
1194
|
-
? JSON.parse(ctx.flags.input)
|
|
1195
|
-
: { 'cpu-usage': 50, 'memory-usage': 60 };
|
|
1196
|
-
const prediction = await manager.makePrediction(modelId, input);
|
|
1197
|
-
success(`Prediction made:`);
|
|
1198
|
-
console.log(`${blue('Model:')} ${modelId}`);
|
|
1199
|
-
console.log(`${blue('Input:')} ${JSON.stringify(input)}`);
|
|
1200
|
-
console.log(`${blue('Prediction:')} ${JSON.stringify(prediction.prediction)}`);
|
|
1201
|
-
console.log(`${blue('Confidence:')} ${prediction.confidence.toFixed(1)}%`);
|
|
1202
|
-
}
|
|
1203
|
-
catch (err) {
|
|
1204
|
-
error(`Failed to make prediction: ${err.message}`);
|
|
1205
|
-
}
|
|
1206
|
-
break;
|
|
1207
|
-
}
|
|
1208
|
-
default: {
|
|
1209
|
-
console.log('Available predict subcommands: train, predict');
|
|
1210
|
-
break;
|
|
1211
|
-
}
|
|
1212
|
-
}
|
|
1213
|
-
break;
|
|
1214
|
-
}
|
|
1215
|
-
default: {
|
|
1216
|
-
console.log(`${bold('Available subcommands:')}`);
|
|
1217
|
-
console.log(' dashboard Manage analytics dashboards');
|
|
1218
|
-
console.log(' insights Generate automated insights');
|
|
1219
|
-
console.log(' metrics <type> Show metrics (performance, usage, business)');
|
|
1220
|
-
console.log(' predict Predictive modeling and forecasting');
|
|
1221
|
-
console.log();
|
|
1222
|
-
console.log(`${bold('Examples:')}`);
|
|
1223
|
-
console.log(` ${cyan('claude-flow analytics insights')} --timerange 7d`);
|
|
1224
|
-
console.log(` ${cyan('claude-flow analytics metrics')} performance`);
|
|
1225
|
-
console.log(` ${cyan('claude-flow analytics predict train')} "load-predictor" --features cpu,memory --target response-time`);
|
|
1226
|
-
break;
|
|
1227
|
-
}
|
|
1228
|
-
}
|
|
1229
|
-
},
|
|
1230
|
-
},
|
|
1231
|
-
// Audit and Compliance Commands
|
|
1232
|
-
{
|
|
1233
|
-
name: 'audit',
|
|
1234
|
-
description: 'Enterprise-grade audit logging and compliance reporting',
|
|
1235
|
-
options: [
|
|
1236
|
-
{
|
|
1237
|
-
name: 'framework',
|
|
1238
|
-
short: 'f',
|
|
1239
|
-
description: 'Compliance framework (SOC2, GDPR, HIPAA, PCI-DSS)',
|
|
1240
|
-
type: 'string',
|
|
1241
|
-
},
|
|
1242
|
-
{
|
|
1243
|
-
name: 'timerange',
|
|
1244
|
-
short: 't',
|
|
1245
|
-
description: 'Time range for audit (1d, 7d, 30d, 90d)',
|
|
1246
|
-
type: 'string',
|
|
1247
|
-
},
|
|
1248
|
-
{
|
|
1249
|
-
name: 'export',
|
|
1250
|
-
short: 'e',
|
|
1251
|
-
description: 'Export format (json, csv, pdf)',
|
|
1252
|
-
type: 'string',
|
|
1253
|
-
},
|
|
1254
|
-
],
|
|
1255
|
-
action: async (ctx) => {
|
|
1256
|
-
const subcommand = ctx.args[0];
|
|
1257
|
-
const manager = await getAuditManager();
|
|
1258
|
-
switch (subcommand) {
|
|
1259
|
-
case 'log': {
|
|
1260
|
-
const eventType = ctx.args[1];
|
|
1261
|
-
const action = ctx.args[2];
|
|
1262
|
-
if (!eventType || !action) {
|
|
1263
|
-
error('Usage: audit log <event-type> <action> --resource <resource>');
|
|
1264
|
-
break;
|
|
1265
|
-
}
|
|
1266
|
-
try {
|
|
1267
|
-
const entry = await manager.logAuditEvent({
|
|
1268
|
-
eventType,
|
|
1269
|
-
category: ctx.flags.category || 'system-change',
|
|
1270
|
-
severity: ctx.flags.severity || 'medium',
|
|
1271
|
-
userId: ctx.flags.user,
|
|
1272
|
-
resource: {
|
|
1273
|
-
type: ctx.flags.resourceType || 'system',
|
|
1274
|
-
id: ctx.flags.resourceId || 'unknown',
|
|
1275
|
-
name: ctx.flags.resourceName,
|
|
1276
|
-
},
|
|
1277
|
-
action,
|
|
1278
|
-
outcome: ctx.flags.outcome || 'success',
|
|
1279
|
-
details: ctx.flags.details ? JSON.parse(ctx.flags.details) : {},
|
|
1280
|
-
context: {
|
|
1281
|
-
source: 'cli',
|
|
1282
|
-
ipAddress: ctx.flags.ip,
|
|
1283
|
-
userAgent: ctx.flags.userAgent,
|
|
1284
|
-
},
|
|
1285
|
-
compliance: {
|
|
1286
|
-
frameworks: ctx.flags.frameworks ? ctx.flags.frameworks.split(',') : [],
|
|
1287
|
-
},
|
|
1288
|
-
});
|
|
1289
|
-
success(`Audit event logged: ${entry.eventType}`);
|
|
1290
|
-
console.log(`${blue('ID:')} ${entry.id}`);
|
|
1291
|
-
console.log(`${blue('Category:')} ${entry.category}`);
|
|
1292
|
-
console.log(`${blue('Severity:')} ${entry.severity}`);
|
|
1293
|
-
console.log(`${blue('Outcome:')} ${entry.outcome}`);
|
|
1294
|
-
console.log(`${blue('Timestamp:')} ${entry.timestamp.toISOString()}`);
|
|
1295
|
-
}
|
|
1296
|
-
catch (err) {
|
|
1297
|
-
error(`Failed to log audit event: ${err.message}`);
|
|
1298
|
-
}
|
|
1299
|
-
break;
|
|
1300
|
-
}
|
|
1301
|
-
case 'report': {
|
|
1302
|
-
const reportType = ctx.args[1] || 'compliance';
|
|
1303
|
-
try {
|
|
1304
|
-
const timeRange = ctx.flags.timerange || '30d';
|
|
1305
|
-
const now = new Date();
|
|
1306
|
-
let start;
|
|
1307
|
-
switch (timeRange) {
|
|
1308
|
-
case '1d':
|
|
1309
|
-
start = new Date(now.getTime() - 24 * 60 * 60 * 1000);
|
|
1310
|
-
break;
|
|
1311
|
-
case '7d':
|
|
1312
|
-
start = new Date(now.getTime() - 7 * 24 * 60 * 60 * 1000);
|
|
1313
|
-
break;
|
|
1314
|
-
case '30d':
|
|
1315
|
-
start = new Date(now.getTime() - 30 * 24 * 60 * 60 * 1000);
|
|
1316
|
-
break;
|
|
1317
|
-
case '90d':
|
|
1318
|
-
start = new Date(now.getTime() - 90 * 24 * 60 * 60 * 1000);
|
|
1319
|
-
break;
|
|
1320
|
-
default:
|
|
1321
|
-
start = new Date(now.getTime() - 30 * 24 * 60 * 60 * 1000);
|
|
1322
|
-
}
|
|
1323
|
-
const report = await manager.generateAuditReport({
|
|
1324
|
-
title: `${reportType.toUpperCase()} Audit Report`,
|
|
1325
|
-
description: `Automated ${reportType} audit report for ${timeRange}`,
|
|
1326
|
-
type: reportType,
|
|
1327
|
-
scope: {
|
|
1328
|
-
timeRange: { start, end: now },
|
|
1329
|
-
systems: ['all'],
|
|
1330
|
-
users: ['all'],
|
|
1331
|
-
events: ['all'],
|
|
1332
|
-
compliance: ctx.flags.framework ? [ctx.flags.framework] : [],
|
|
1333
|
-
},
|
|
1334
|
-
});
|
|
1335
|
-
success(`Audit report generated: ${report.title}`);
|
|
1336
|
-
console.log(`${blue('ID:')} ${report.id}`);
|
|
1337
|
-
console.log(`${blue('Type:')} ${report.type}`);
|
|
1338
|
-
console.log(`${blue('Status:')} ${report.status}`);
|
|
1339
|
-
console.log(`${blue('Events Analyzed:')} ${report.summary.totalEvents}`);
|
|
1340
|
-
console.log(`${blue('Critical Findings:')} ${report.summary.criticalFindings}`);
|
|
1341
|
-
console.log(`${blue('Compliance Score:')} ${report.summary.complianceScore.toFixed(1)}%`);
|
|
1342
|
-
console.log(`${blue('Risk Level:')} ${report.summary.riskLevel}`);
|
|
1343
|
-
if (report.findings.length > 0 && ctx.flags.verbose) {
|
|
1344
|
-
console.log(`\n${bold('Findings:')}`);
|
|
1345
|
-
for (const finding of report.findings.slice(0, 5)) {
|
|
1346
|
-
console.log(` ${finding.severity.toUpperCase()}: ${finding.title}`);
|
|
1347
|
-
}
|
|
1348
|
-
if (report.findings.length > 5) {
|
|
1349
|
-
console.log(` ... and ${report.findings.length - 5} more`);
|
|
1350
|
-
}
|
|
1351
|
-
}
|
|
1352
|
-
if (report.recommendations.length > 0) {
|
|
1353
|
-
console.log(`\n${bold('Recommendations:')}`);
|
|
1354
|
-
for (const rec of report.recommendations.slice(0, 3)) {
|
|
1355
|
-
console.log(` • ${rec.title} (${rec.priority} priority)`);
|
|
1356
|
-
}
|
|
1357
|
-
}
|
|
1358
|
-
}
|
|
1359
|
-
catch (err) {
|
|
1360
|
-
error(`Failed to generate audit report: ${err.message}`);
|
|
1361
|
-
}
|
|
1362
|
-
break;
|
|
1363
|
-
}
|
|
1364
|
-
case 'export': {
|
|
1365
|
-
try {
|
|
1366
|
-
const format = ctx.flags.export || 'json';
|
|
1367
|
-
const timeRange = ctx.flags.timerange || '30d';
|
|
1368
|
-
const now = new Date();
|
|
1369
|
-
let start;
|
|
1370
|
-
switch (timeRange) {
|
|
1371
|
-
case '1d':
|
|
1372
|
-
start = new Date(now.getTime() - 24 * 60 * 60 * 1000);
|
|
1373
|
-
break;
|
|
1374
|
-
case '7d':
|
|
1375
|
-
start = new Date(now.getTime() - 7 * 24 * 60 * 60 * 1000);
|
|
1376
|
-
break;
|
|
1377
|
-
case '30d':
|
|
1378
|
-
start = new Date(now.getTime() - 30 * 24 * 60 * 60 * 1000);
|
|
1379
|
-
break;
|
|
1380
|
-
case '90d':
|
|
1381
|
-
start = new Date(now.getTime() - 90 * 24 * 60 * 60 * 1000);
|
|
1382
|
-
break;
|
|
1383
|
-
default:
|
|
1384
|
-
start = new Date(now.getTime() - 30 * 24 * 60 * 60 * 1000);
|
|
1385
|
-
}
|
|
1386
|
-
const filepath = await manager.exportAuditData({
|
|
1387
|
-
format,
|
|
1388
|
-
scope: {
|
|
1389
|
-
timeRange: { start, end: now },
|
|
1390
|
-
categories: ctx.flags.categories
|
|
1391
|
-
? ctx.flags.categories.split(',')
|
|
1392
|
-
: undefined,
|
|
1393
|
-
severity: ctx.flags.severity
|
|
1394
|
-
? ctx.flags.severity.split(',')
|
|
1395
|
-
: undefined,
|
|
1396
|
-
},
|
|
1397
|
-
destination: ctx.flags.output || './audit-export',
|
|
1398
|
-
encryption: ctx.flags.encrypt || false,
|
|
1399
|
-
compression: ctx.flags.compress || false,
|
|
1400
|
-
});
|
|
1401
|
-
success(`Audit data exported: ${filepath}`);
|
|
1402
|
-
console.log(`${blue('Format:')} ${format}`);
|
|
1403
|
-
console.log(`${blue('Time Range:')} ${timeRange}`);
|
|
1404
|
-
console.log(`${blue('Encrypted:')} ${ctx.flags.encrypt ? 'Yes' : 'No'}`);
|
|
1405
|
-
console.log(`${blue('Compressed:')} ${ctx.flags.compress ? 'Yes' : 'No'}`);
|
|
1406
|
-
}
|
|
1407
|
-
catch (err) {
|
|
1408
|
-
error(`Failed to export audit data: ${err.message}`);
|
|
1409
|
-
}
|
|
1410
|
-
break;
|
|
1411
|
-
}
|
|
1412
|
-
case 'verify': {
|
|
1413
|
-
try {
|
|
1414
|
-
const verification = await manager.verifyAuditIntegrity();
|
|
1415
|
-
if (verification.verified) {
|
|
1416
|
-
success('Audit integrity verification passed');
|
|
1417
|
-
}
|
|
1418
|
-
else {
|
|
1419
|
-
error(`Audit integrity verification failed: ${verification.issues.length} issues found`);
|
|
1420
|
-
}
|
|
1421
|
-
console.log(`${blue('Total Entries:')} ${verification.summary.totalEntries}`);
|
|
1422
|
-
console.log(`${blue('Verified Entries:')} ${verification.summary.verifiedEntries}`);
|
|
1423
|
-
console.log(`${blue('Corrupted Entries:')} ${verification.summary.corruptedEntries}`);
|
|
1424
|
-
console.log(`${blue('Missing Entries:')} ${verification.summary.missingEntries}`);
|
|
1425
|
-
if (verification.issues.length > 0 && ctx.flags.verbose) {
|
|
1426
|
-
console.log(`\n${bold('Issues:')}`);
|
|
1427
|
-
for (const issue of verification.issues.slice(0, 5)) {
|
|
1428
|
-
console.log(` ${issue.severity.toUpperCase()}: ${issue.description}`);
|
|
1429
|
-
}
|
|
1430
|
-
}
|
|
1431
|
-
}
|
|
1432
|
-
catch (err) {
|
|
1433
|
-
error(`Failed to verify audit integrity: ${err.message}`);
|
|
1434
|
-
}
|
|
1435
|
-
break;
|
|
1436
|
-
}
|
|
1437
|
-
case 'metrics': {
|
|
1438
|
-
try {
|
|
1439
|
-
const timeRange = ctx.flags.timerange || '30d';
|
|
1440
|
-
const now = new Date();
|
|
1441
|
-
let start;
|
|
1442
|
-
switch (timeRange) {
|
|
1443
|
-
case '1d':
|
|
1444
|
-
start = new Date(now.getTime() - 24 * 60 * 60 * 1000);
|
|
1445
|
-
break;
|
|
1446
|
-
case '7d':
|
|
1447
|
-
start = new Date(now.getTime() - 7 * 24 * 60 * 60 * 1000);
|
|
1448
|
-
break;
|
|
1449
|
-
case '30d':
|
|
1450
|
-
start = new Date(now.getTime() - 30 * 24 * 60 * 60 * 1000);
|
|
1451
|
-
break;
|
|
1452
|
-
case '90d':
|
|
1453
|
-
start = new Date(now.getTime() - 90 * 24 * 60 * 60 * 1000);
|
|
1454
|
-
break;
|
|
1455
|
-
default:
|
|
1456
|
-
start = new Date(now.getTime() - 30 * 24 * 60 * 60 * 1000);
|
|
1457
|
-
}
|
|
1458
|
-
const metrics = await manager.getAuditMetrics({ start, end: now });
|
|
1459
|
-
success('Audit Metrics:');
|
|
1460
|
-
console.log();
|
|
1461
|
-
console.log(`${bold('Volume:')}`);
|
|
1462
|
-
console.log(` Total Entries: ${metrics.volume.totalEntries.toLocaleString()}`);
|
|
1463
|
-
console.log(` Daily Average: ${metrics.volume.dailyAverage.toFixed(0)}`);
|
|
1464
|
-
console.log(` Peak Hourly: ${metrics.volume.peakHourly}`);
|
|
1465
|
-
console.log(`\n${bold('Compliance:')}`);
|
|
1466
|
-
console.log(` Overall Score: ${metrics.compliance.overallScore.toFixed(1)}%`);
|
|
1467
|
-
console.log(` Trending: ${metrics.compliance.trending}`);
|
|
1468
|
-
console.log(`\n${bold('Integrity:')}`);
|
|
1469
|
-
console.log(` Verification Success: ${metrics.integrity.verificationSuccess.toFixed(1)}%`);
|
|
1470
|
-
console.log(` Tamper Attempts: ${metrics.integrity.tamperAttempts}`);
|
|
1471
|
-
console.log(` Data Loss: ${metrics.integrity.dataLoss}`);
|
|
1472
|
-
console.log(`\n${bold('Security:')}`);
|
|
1473
|
-
console.log(` Unauthorized Access: ${metrics.security.unauthorizedAccess}`);
|
|
1474
|
-
console.log(` Privileged Actions: ${metrics.security.privilegedActions}`);
|
|
1475
|
-
console.log(` Escalated Incidents: ${metrics.security.escalatedIncidents}`);
|
|
1476
|
-
if (Object.keys(metrics.volume.byCategory).length > 0) {
|
|
1477
|
-
console.log(`\n${bold('By Category:')}`);
|
|
1478
|
-
for (const [category, count] of Object.entries(metrics.volume.byCategory)) {
|
|
1479
|
-
console.log(` ${category}: ${count.toLocaleString()}`);
|
|
1480
|
-
}
|
|
1481
|
-
}
|
|
1482
|
-
}
|
|
1483
|
-
catch (err) {
|
|
1484
|
-
error(`Failed to get audit metrics: ${err.message}`);
|
|
1485
|
-
}
|
|
1486
|
-
break;
|
|
1487
|
-
}
|
|
1488
|
-
default: {
|
|
1489
|
-
console.log(`${bold('Available subcommands:')}`);
|
|
1490
|
-
console.log(' log <event> <action> Log an audit event');
|
|
1491
|
-
console.log(' report [type] Generate audit report');
|
|
1492
|
-
console.log(' export Export audit data');
|
|
1493
|
-
console.log(' verify Verify audit integrity');
|
|
1494
|
-
console.log(' metrics Show audit metrics');
|
|
1495
|
-
console.log();
|
|
1496
|
-
console.log(`${bold('Examples:')}`);
|
|
1497
|
-
console.log(` ${cyan('claude-flow audit log')} user_login success --user john.doe --resource user-account`);
|
|
1498
|
-
console.log(` ${cyan('claude-flow audit report')} compliance --framework SOC2 --timerange 90d`);
|
|
1499
|
-
console.log(` ${cyan('claude-flow audit export')} --format csv --timerange 30d --encrypt`);
|
|
1500
|
-
break;
|
|
1501
|
-
}
|
|
1502
|
-
}
|
|
1503
|
-
},
|
|
1504
|
-
},
|
|
1505
|
-
];
|
|
1506
|
-
//# sourceMappingURL=enterprise.js.map
|