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,1211 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MCP Tool Wrapper for Hive Mind System
|
|
3
|
-
* Wraps all 87 MCP tools for coordinated swarm usage
|
|
4
|
-
*/
|
|
5
|
-
import { spawn } from 'child_process';
|
|
6
|
-
/**
|
|
7
|
-
* MCP Tool categories and their methods
|
|
8
|
-
*/
|
|
9
|
-
const MCP_TOOLS = {
|
|
10
|
-
swarm: [
|
|
11
|
-
'swarm_init',
|
|
12
|
-
'agent_spawn',
|
|
13
|
-
'task_orchestrate',
|
|
14
|
-
'swarm_status',
|
|
15
|
-
'agent_list',
|
|
16
|
-
'agent_metrics',
|
|
17
|
-
'swarm_monitor',
|
|
18
|
-
'topology_optimize',
|
|
19
|
-
'load_balance',
|
|
20
|
-
'coordination_sync',
|
|
21
|
-
'swarm_scale',
|
|
22
|
-
'swarm_destroy',
|
|
23
|
-
],
|
|
24
|
-
neural: [
|
|
25
|
-
'neural_status',
|
|
26
|
-
'neural_train',
|
|
27
|
-
'neural_patterns',
|
|
28
|
-
'neural_predict',
|
|
29
|
-
'model_load',
|
|
30
|
-
'model_save',
|
|
31
|
-
'wasm_optimize',
|
|
32
|
-
'inference_run',
|
|
33
|
-
'pattern_recognize',
|
|
34
|
-
'cognitive_analyze',
|
|
35
|
-
'learning_adapt',
|
|
36
|
-
'neural_compress',
|
|
37
|
-
'ensemble_create',
|
|
38
|
-
'transfer_learn',
|
|
39
|
-
'neural_explain',
|
|
40
|
-
],
|
|
41
|
-
memory: [
|
|
42
|
-
'memory_usage',
|
|
43
|
-
'memory_search',
|
|
44
|
-
'memory_persist',
|
|
45
|
-
'memory_namespace',
|
|
46
|
-
'memory_backup',
|
|
47
|
-
'memory_restore',
|
|
48
|
-
'memory_compress',
|
|
49
|
-
'memory_sync',
|
|
50
|
-
'cache_manage',
|
|
51
|
-
'state_snapshot',
|
|
52
|
-
'context_restore',
|
|
53
|
-
'memory_analytics',
|
|
54
|
-
],
|
|
55
|
-
performance: [
|
|
56
|
-
'performance_report',
|
|
57
|
-
'bottleneck_analyze',
|
|
58
|
-
'token_usage',
|
|
59
|
-
'benchmark_run',
|
|
60
|
-
'metrics_collect',
|
|
61
|
-
'trend_analysis',
|
|
62
|
-
'cost_analysis',
|
|
63
|
-
'quality_assess',
|
|
64
|
-
'error_analysis',
|
|
65
|
-
'usage_stats',
|
|
66
|
-
'health_check',
|
|
67
|
-
],
|
|
68
|
-
github: [
|
|
69
|
-
'github_repo_analyze',
|
|
70
|
-
'github_pr_manage',
|
|
71
|
-
'github_issue_track',
|
|
72
|
-
'github_release_coord',
|
|
73
|
-
'github_workflow_auto',
|
|
74
|
-
'github_code_review',
|
|
75
|
-
'github_sync_coord',
|
|
76
|
-
'github_metrics',
|
|
77
|
-
],
|
|
78
|
-
workflow: [
|
|
79
|
-
'workflow_create',
|
|
80
|
-
'workflow_execute',
|
|
81
|
-
'workflow_export',
|
|
82
|
-
'automation_setup',
|
|
83
|
-
'pipeline_create',
|
|
84
|
-
'scheduler_manage',
|
|
85
|
-
'trigger_setup',
|
|
86
|
-
'workflow_template',
|
|
87
|
-
'batch_process',
|
|
88
|
-
'parallel_execute',
|
|
89
|
-
],
|
|
90
|
-
daa: [
|
|
91
|
-
'daa_agent_create',
|
|
92
|
-
'daa_capability_match',
|
|
93
|
-
'daa_resource_alloc',
|
|
94
|
-
'daa_lifecycle_manage',
|
|
95
|
-
'daa_communication',
|
|
96
|
-
'daa_consensus',
|
|
97
|
-
'daa_fault_tolerance',
|
|
98
|
-
'daa_optimization',
|
|
99
|
-
],
|
|
100
|
-
system: [
|
|
101
|
-
'terminal_execute',
|
|
102
|
-
'config_manage',
|
|
103
|
-
'features_detect',
|
|
104
|
-
'security_scan',
|
|
105
|
-
'backup_create',
|
|
106
|
-
'restore_system',
|
|
107
|
-
'log_analysis',
|
|
108
|
-
'diagnostic_run',
|
|
109
|
-
],
|
|
110
|
-
sparc: ['sparc_mode'],
|
|
111
|
-
task: ['task_status', 'task_results'],
|
|
112
|
-
};
|
|
113
|
-
/**
|
|
114
|
-
* MCPToolWrapper class for unified MCP tool access
|
|
115
|
-
*/
|
|
116
|
-
export class MCPToolWrapper {
|
|
117
|
-
constructor(config = {}) {
|
|
118
|
-
this.config = {
|
|
119
|
-
parallel: true,
|
|
120
|
-
timeout: 60000,
|
|
121
|
-
retryCount: 3,
|
|
122
|
-
...config,
|
|
123
|
-
};
|
|
124
|
-
this.toolStats = new Map();
|
|
125
|
-
this.parallelQueue = [];
|
|
126
|
-
this.executing = false;
|
|
127
|
-
/** @type {import('better-sqlite3').Database | null} */
|
|
128
|
-
this.memoryDb = null;
|
|
129
|
-
// Initialize memory store for fallback
|
|
130
|
-
this.memoryStore = new Map();
|
|
131
|
-
// Initialize real memory storage
|
|
132
|
-
this.initializeMemoryStorage();
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
* Initialize real memory storage using SQLite
|
|
136
|
-
*/
|
|
137
|
-
async initializeMemoryStorage() {
|
|
138
|
-
try {
|
|
139
|
-
const { createDatabase, isSQLiteAvailable } = await import('../../../memory/sqlite-wrapper.js');
|
|
140
|
-
const path = await import('path');
|
|
141
|
-
const fs = await import('fs');
|
|
142
|
-
// Check if SQLite is available
|
|
143
|
-
const sqliteAvailable = await isSQLiteAvailable();
|
|
144
|
-
if (!sqliteAvailable) {
|
|
145
|
-
throw new Error('SQLite not available');
|
|
146
|
-
}
|
|
147
|
-
// Create .hive-mind directory if it doesn't exist
|
|
148
|
-
const hiveMindDir = path.join(process.cwd(), '.hive-mind');
|
|
149
|
-
if (!fs.existsSync(hiveMindDir)) {
|
|
150
|
-
fs.mkdirSync(hiveMindDir, { recursive: true });
|
|
151
|
-
}
|
|
152
|
-
// Initialize SQLite database
|
|
153
|
-
const dbPath = path.join(hiveMindDir, 'memory.db');
|
|
154
|
-
this.memoryDb = await createDatabase(dbPath);
|
|
155
|
-
// Create memories table
|
|
156
|
-
this.memoryDb.exec(`
|
|
157
|
-
CREATE TABLE IF NOT EXISTS memories (
|
|
158
|
-
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
159
|
-
namespace TEXT NOT NULL,
|
|
160
|
-
key TEXT NOT NULL,
|
|
161
|
-
value TEXT NOT NULL,
|
|
162
|
-
type TEXT DEFAULT 'knowledge',
|
|
163
|
-
timestamp INTEGER NOT NULL,
|
|
164
|
-
created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
|
|
165
|
-
UNIQUE(namespace, key)
|
|
166
|
-
)
|
|
167
|
-
`);
|
|
168
|
-
// Real memory storage initialized with SQLite
|
|
169
|
-
}
|
|
170
|
-
catch (error) {
|
|
171
|
-
console.warn('Failed to initialize SQLite storage, falling back to in-memory:', error.message);
|
|
172
|
-
this.memoryDb = null;
|
|
173
|
-
this.memoryStore = new Map(); // Fallback to in-memory storage
|
|
174
|
-
// Log Windows-specific help if applicable
|
|
175
|
-
if (process.platform === 'win32') {
|
|
176
|
-
console.info(`
|
|
177
|
-
Windows users: For persistent storage, please see installation guide:
|
|
178
|
-
https://github.com/ruvnet/claude-code-flow/docs/windows-installation.md
|
|
179
|
-
`);
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
/**
|
|
184
|
-
* Execute MCP tool with automatic retry and error handling
|
|
185
|
-
*/
|
|
186
|
-
async executeTool(toolName, params = {}) {
|
|
187
|
-
const startTime = Date.now();
|
|
188
|
-
let lastError = null;
|
|
189
|
-
for (let attempt = 1; attempt <= this.config.retryCount; attempt++) {
|
|
190
|
-
try {
|
|
191
|
-
const result = await this._executeToolInternal(toolName, params);
|
|
192
|
-
// Track statistics
|
|
193
|
-
this._trackToolUsage(toolName, Date.now() - startTime, true);
|
|
194
|
-
return result;
|
|
195
|
-
}
|
|
196
|
-
catch (error) {
|
|
197
|
-
lastError = error;
|
|
198
|
-
console.error(`Attempt ${attempt} failed for ${toolName}:`, error.message);
|
|
199
|
-
if (attempt < this.config.retryCount) {
|
|
200
|
-
// Exponential backoff
|
|
201
|
-
await new Promise((resolve) => setTimeout(resolve, Math.pow(2, attempt) * 1000));
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
// Track failure
|
|
206
|
-
this._trackToolUsage(toolName, Date.now() - startTime, false);
|
|
207
|
-
throw new Error(`Failed to execute ${toolName} after ${this.config.retryCount} attempts: ${lastError.message}`);
|
|
208
|
-
}
|
|
209
|
-
/**
|
|
210
|
-
* Execute multiple tools in parallel with optimized batching
|
|
211
|
-
*/
|
|
212
|
-
async executeParallel(toolCalls) {
|
|
213
|
-
if (!this.config.parallel) {
|
|
214
|
-
// Execute sequentially if parallel is disabled
|
|
215
|
-
const results = [];
|
|
216
|
-
for (const call of toolCalls) {
|
|
217
|
-
results.push(await this.executeTool(call.tool, call.params));
|
|
218
|
-
}
|
|
219
|
-
return results;
|
|
220
|
-
}
|
|
221
|
-
if (!Array.isArray(toolCalls) || toolCalls.length === 0) {
|
|
222
|
-
return [];
|
|
223
|
-
}
|
|
224
|
-
const startTime = Date.now();
|
|
225
|
-
// Intelligent concurrency limit based on tool types
|
|
226
|
-
const concurrencyLimit = this._calculateOptimalConcurrency(toolCalls);
|
|
227
|
-
// Group tools by priority and dependency
|
|
228
|
-
const toolGroups = this._groupToolsByPriority(toolCalls);
|
|
229
|
-
const allResults = [];
|
|
230
|
-
try {
|
|
231
|
-
// Execute high-priority tools first
|
|
232
|
-
for (const group of toolGroups) {
|
|
233
|
-
const groupResults = [];
|
|
234
|
-
for (let i = 0; i < group.length; i += concurrencyLimit) {
|
|
235
|
-
const batch = group.slice(i, i + concurrencyLimit);
|
|
236
|
-
// Execute batch with timeout and retry logic
|
|
237
|
-
const batchPromises = batch.map((call) => this._executeWithTimeout(call, this.config.timeout));
|
|
238
|
-
const batchResults = await Promise.allSettled(batchPromises);
|
|
239
|
-
// Process results and handle failures
|
|
240
|
-
for (let j = 0; j < batchResults.length; j++) {
|
|
241
|
-
const result = batchResults[j];
|
|
242
|
-
if (result.status === 'fulfilled') {
|
|
243
|
-
groupResults.push(result.value);
|
|
244
|
-
}
|
|
245
|
-
else {
|
|
246
|
-
console.warn(`Tool execution failed: ${batch[j].tool}`, result.reason);
|
|
247
|
-
groupResults.push({ error: result.reason.message, tool: batch[j].tool });
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
allResults.push(...groupResults);
|
|
252
|
-
}
|
|
253
|
-
// Track performance metrics
|
|
254
|
-
const executionTime = Date.now() - startTime;
|
|
255
|
-
this._trackBatchPerformance(toolCalls.length, executionTime, concurrencyLimit);
|
|
256
|
-
return allResults;
|
|
257
|
-
}
|
|
258
|
-
catch (error) {
|
|
259
|
-
console.error('Parallel execution failed:', error);
|
|
260
|
-
throw error;
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
/**
|
|
264
|
-
* Calculate optimal concurrency based on tool types
|
|
265
|
-
*/
|
|
266
|
-
_calculateOptimalConcurrency(toolCalls) {
|
|
267
|
-
const toolTypes = toolCalls.map((call) => this._getToolCategory(call.tool));
|
|
268
|
-
const uniqueTypes = new Set(toolTypes);
|
|
269
|
-
// Heavy operations (neural, github) need lower concurrency
|
|
270
|
-
const heavyTypes = ['neural', 'github', 'workflow'];
|
|
271
|
-
const hasHeavyOps = toolTypes.some((type) => heavyTypes.includes(type));
|
|
272
|
-
if (hasHeavyOps) {
|
|
273
|
-
return Math.min(3, Math.max(1, Math.floor(toolCalls.length / 2)));
|
|
274
|
-
}
|
|
275
|
-
// Light operations (memory, performance) can handle higher concurrency
|
|
276
|
-
return Math.min(8, Math.max(2, Math.floor(toolCalls.length / 1.5)));
|
|
277
|
-
}
|
|
278
|
-
/**
|
|
279
|
-
* Group tools by execution priority
|
|
280
|
-
*/
|
|
281
|
-
_groupToolsByPriority(toolCalls) {
|
|
282
|
-
const priorities = {
|
|
283
|
-
critical: [], // swarm_init, swarm_destroy
|
|
284
|
-
high: [], // agent_spawn, memory operations
|
|
285
|
-
medium: [], // task operations, monitoring
|
|
286
|
-
low: [], // analytics, reporting
|
|
287
|
-
};
|
|
288
|
-
toolCalls.forEach((call) => {
|
|
289
|
-
const category = this._getToolCategory(call.tool);
|
|
290
|
-
const tool = call.tool;
|
|
291
|
-
if (['swarm_init', 'swarm_destroy', 'memory_backup'].includes(tool)) {
|
|
292
|
-
priorities.critical.push(call);
|
|
293
|
-
}
|
|
294
|
-
else if (['agent_spawn', 'memory_usage', 'neural_train'].includes(tool)) {
|
|
295
|
-
priorities.high.push(call);
|
|
296
|
-
}
|
|
297
|
-
else if (category === 'performance' || tool.includes('report')) {
|
|
298
|
-
priorities.low.push(call);
|
|
299
|
-
}
|
|
300
|
-
else {
|
|
301
|
-
priorities.medium.push(call);
|
|
302
|
-
}
|
|
303
|
-
});
|
|
304
|
-
// Return groups in priority order, filtering empty groups
|
|
305
|
-
return [priorities.critical, priorities.high, priorities.medium, priorities.low].filter((group) => group.length > 0);
|
|
306
|
-
}
|
|
307
|
-
/**
|
|
308
|
-
* Execute tool with timeout wrapper
|
|
309
|
-
*/
|
|
310
|
-
async _executeWithTimeout(call, timeout) {
|
|
311
|
-
return new Promise((resolve, reject) => {
|
|
312
|
-
const timer = setTimeout(() => {
|
|
313
|
-
reject(new Error(`Tool ${call.tool} timed out after ${timeout}ms`));
|
|
314
|
-
}, timeout);
|
|
315
|
-
this.executeTool(call.tool, call.params)
|
|
316
|
-
.then((result) => {
|
|
317
|
-
clearTimeout(timer);
|
|
318
|
-
resolve(result);
|
|
319
|
-
})
|
|
320
|
-
.catch((error) => {
|
|
321
|
-
clearTimeout(timer);
|
|
322
|
-
reject(error);
|
|
323
|
-
});
|
|
324
|
-
});
|
|
325
|
-
}
|
|
326
|
-
/**
|
|
327
|
-
* Track batch execution performance
|
|
328
|
-
*/
|
|
329
|
-
_trackBatchPerformance(toolCount, executionTime, concurrency) {
|
|
330
|
-
if (!this.batchStats) {
|
|
331
|
-
this.batchStats = {
|
|
332
|
-
totalBatches: 0,
|
|
333
|
-
totalTools: 0,
|
|
334
|
-
totalTime: 0,
|
|
335
|
-
avgConcurrency: 0,
|
|
336
|
-
avgToolsPerBatch: 0,
|
|
337
|
-
avgTimePerTool: 0,
|
|
338
|
-
};
|
|
339
|
-
}
|
|
340
|
-
this.batchStats.totalBatches++;
|
|
341
|
-
this.batchStats.totalTools += toolCount;
|
|
342
|
-
this.batchStats.totalTime += executionTime;
|
|
343
|
-
this.batchStats.avgConcurrency =
|
|
344
|
-
(this.batchStats.avgConcurrency * (this.batchStats.totalBatches - 1) + concurrency) /
|
|
345
|
-
this.batchStats.totalBatches;
|
|
346
|
-
this.batchStats.avgToolsPerBatch = this.batchStats.totalTools / this.batchStats.totalBatches;
|
|
347
|
-
this.batchStats.avgTimePerTool = this.batchStats.totalTime / this.batchStats.totalTools;
|
|
348
|
-
}
|
|
349
|
-
/**
|
|
350
|
-
* Internal tool execution
|
|
351
|
-
*/
|
|
352
|
-
async _executeToolInternal(toolName, params) {
|
|
353
|
-
const toolCategory = this._getToolCategory(toolName);
|
|
354
|
-
if (!toolCategory) {
|
|
355
|
-
throw new Error(`Unknown MCP tool: ${toolName}`);
|
|
356
|
-
}
|
|
357
|
-
// Handle memory operations with real storage
|
|
358
|
-
if (toolName === 'memory_usage') {
|
|
359
|
-
if (params.action === 'store') {
|
|
360
|
-
return await this.storeMemory(params.namespace, params.key, params.value, params.type);
|
|
361
|
-
}
|
|
362
|
-
else if (params.action === 'retrieve') {
|
|
363
|
-
return await this.retrieveMemory(params.namespace, params.key);
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
else if (toolName === 'memory_search') {
|
|
367
|
-
return await this.searchMemory(params.namespace, params.pattern);
|
|
368
|
-
}
|
|
369
|
-
else if (toolName === 'swarm_status') {
|
|
370
|
-
return await this.getSwarmStatus(params);
|
|
371
|
-
}
|
|
372
|
-
// For other tools, use mock responses
|
|
373
|
-
console.log(`Executing MCP tool: mcp__claude-flow__${toolName} with params:`, params);
|
|
374
|
-
// Simulate async execution for non-memory tools
|
|
375
|
-
await new Promise((resolve) => setTimeout(resolve, Math.random() * 500));
|
|
376
|
-
// Mock response based on tool type
|
|
377
|
-
const mockResponse = this._getMockResponse(toolName, params);
|
|
378
|
-
return mockResponse;
|
|
379
|
-
}
|
|
380
|
-
/**
|
|
381
|
-
* Get tool category
|
|
382
|
-
*/
|
|
383
|
-
_getToolCategory(toolName) {
|
|
384
|
-
for (const [category, tools] of Object.entries(MCP_TOOLS)) {
|
|
385
|
-
if (tools.includes(toolName)) {
|
|
386
|
-
return category;
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
return null;
|
|
390
|
-
}
|
|
391
|
-
/**
|
|
392
|
-
* Get mock response for demonstration
|
|
393
|
-
*/
|
|
394
|
-
_getMockResponse(toolName, params) {
|
|
395
|
-
// Mock responses for different tool types
|
|
396
|
-
const mockResponses = {
|
|
397
|
-
swarm_init: {
|
|
398
|
-
swarmId: `swarm-${Date.now()}`,
|
|
399
|
-
topology: params.topology || 'hierarchical',
|
|
400
|
-
status: 'initialized',
|
|
401
|
-
},
|
|
402
|
-
agent_spawn: {
|
|
403
|
-
agentId: `agent-${Date.now()}-${Math.random().toString(36).substring(2, 11)}`,
|
|
404
|
-
type: params.type,
|
|
405
|
-
status: 'active',
|
|
406
|
-
},
|
|
407
|
-
task_orchestrate: {
|
|
408
|
-
taskId: `task-${Date.now()}`,
|
|
409
|
-
status: 'orchestrated',
|
|
410
|
-
strategy: params.strategy || 'parallel',
|
|
411
|
-
},
|
|
412
|
-
memory_usage: {
|
|
413
|
-
action: params.action,
|
|
414
|
-
result: params.action === 'store' ? 'stored' : 'retrieved',
|
|
415
|
-
data: params.value || null,
|
|
416
|
-
},
|
|
417
|
-
neural_status: {
|
|
418
|
-
status: 'ready',
|
|
419
|
-
models: 27,
|
|
420
|
-
accuracy: 0.848,
|
|
421
|
-
},
|
|
422
|
-
};
|
|
423
|
-
return mockResponses[toolName] || { status: 'success', toolName };
|
|
424
|
-
}
|
|
425
|
-
/**
|
|
426
|
-
* Track tool usage statistics
|
|
427
|
-
*/
|
|
428
|
-
_trackToolUsage(toolName, duration, success) {
|
|
429
|
-
if (!this.toolStats.has(toolName)) {
|
|
430
|
-
this.toolStats.set(toolName, {
|
|
431
|
-
calls: 0,
|
|
432
|
-
successes: 0,
|
|
433
|
-
failures: 0,
|
|
434
|
-
totalDuration: 0,
|
|
435
|
-
avgDuration: 0,
|
|
436
|
-
});
|
|
437
|
-
}
|
|
438
|
-
const stats = this.toolStats.get(toolName);
|
|
439
|
-
stats.calls++;
|
|
440
|
-
if (success) {
|
|
441
|
-
stats.successes++;
|
|
442
|
-
}
|
|
443
|
-
else {
|
|
444
|
-
stats.failures++;
|
|
445
|
-
}
|
|
446
|
-
stats.totalDuration += duration;
|
|
447
|
-
stats.avgDuration = stats.totalDuration / stats.calls;
|
|
448
|
-
}
|
|
449
|
-
/**
|
|
450
|
-
* Get comprehensive tool statistics
|
|
451
|
-
*/
|
|
452
|
-
getStatistics() {
|
|
453
|
-
const toolStats = {};
|
|
454
|
-
this.toolStats.forEach((value, key) => {
|
|
455
|
-
toolStats[key] = { ...value };
|
|
456
|
-
});
|
|
457
|
-
return {
|
|
458
|
-
tools: toolStats,
|
|
459
|
-
batch: this.batchStats || {
|
|
460
|
-
totalBatches: 0,
|
|
461
|
-
totalTools: 0,
|
|
462
|
-
totalTime: 0,
|
|
463
|
-
avgConcurrency: 0,
|
|
464
|
-
avgToolsPerBatch: 0,
|
|
465
|
-
avgTimePerTool: 0,
|
|
466
|
-
},
|
|
467
|
-
spawn: this.spawnStats || {
|
|
468
|
-
totalSpawns: 0,
|
|
469
|
-
totalAgents: 0,
|
|
470
|
-
totalTime: 0,
|
|
471
|
-
avgTimePerAgent: 0,
|
|
472
|
-
bestTime: 0,
|
|
473
|
-
worstTime: 0,
|
|
474
|
-
},
|
|
475
|
-
performance: {
|
|
476
|
-
totalCalls: Array.from(this.toolStats.values()).reduce((sum, stat) => sum + stat.calls, 0),
|
|
477
|
-
successRate: this._calculateOverallSuccessRate(),
|
|
478
|
-
avgLatency: this._calculateAvgLatency(),
|
|
479
|
-
throughput: this._calculateThroughput(),
|
|
480
|
-
},
|
|
481
|
-
};
|
|
482
|
-
}
|
|
483
|
-
/**
|
|
484
|
-
* Calculate overall success rate
|
|
485
|
-
*/
|
|
486
|
-
_calculateOverallSuccessRate() {
|
|
487
|
-
const total = Array.from(this.toolStats.values()).reduce((sum, stat) => sum + stat.calls, 0);
|
|
488
|
-
const successes = Array.from(this.toolStats.values()).reduce((sum, stat) => sum + stat.successes, 0);
|
|
489
|
-
return total > 0 ? ((successes / total) * 100).toFixed(2) : 100;
|
|
490
|
-
}
|
|
491
|
-
/**
|
|
492
|
-
* Calculate average latency
|
|
493
|
-
*/
|
|
494
|
-
_calculateAvgLatency() {
|
|
495
|
-
const stats = Array.from(this.toolStats.values()).filter((stat) => stat.calls > 0);
|
|
496
|
-
if (stats.length === 0)
|
|
497
|
-
return 0;
|
|
498
|
-
const totalLatency = stats.reduce((sum, stat) => sum + stat.avgDuration, 0);
|
|
499
|
-
return (totalLatency / stats.length).toFixed(2);
|
|
500
|
-
}
|
|
501
|
-
/**
|
|
502
|
-
* Calculate throughput (operations per second)
|
|
503
|
-
*/
|
|
504
|
-
_calculateThroughput() {
|
|
505
|
-
const batchStats = this.batchStats;
|
|
506
|
-
if (!batchStats || batchStats.totalTime === 0)
|
|
507
|
-
return 0;
|
|
508
|
-
return (batchStats.totalTools / (batchStats.totalTime / 1000)).toFixed(2);
|
|
509
|
-
}
|
|
510
|
-
/**
|
|
511
|
-
* Create batch of tool calls for parallel execution
|
|
512
|
-
*/
|
|
513
|
-
createBatch(calls) {
|
|
514
|
-
return calls.map((call) => ({
|
|
515
|
-
tool: call.tool,
|
|
516
|
-
params: call.params || {},
|
|
517
|
-
}));
|
|
518
|
-
}
|
|
519
|
-
/**
|
|
520
|
-
* Execute swarm initialization sequence with optimization
|
|
521
|
-
*/
|
|
522
|
-
async initializeSwarm(config) {
|
|
523
|
-
const swarmId = config.swarmId || `swarm-${Date.now()}`;
|
|
524
|
-
const startTime = Date.now();
|
|
525
|
-
try {
|
|
526
|
-
// Phase 1: Critical initialization (sequential)
|
|
527
|
-
const criticalOps = [
|
|
528
|
-
{
|
|
529
|
-
tool: 'swarm_init',
|
|
530
|
-
params: {
|
|
531
|
-
topology: config.topology || 'hierarchical',
|
|
532
|
-
maxAgents: config.maxAgents || 8,
|
|
533
|
-
strategy: 'auto',
|
|
534
|
-
swarmId,
|
|
535
|
-
},
|
|
536
|
-
},
|
|
537
|
-
];
|
|
538
|
-
const [swarmInitResult] = await this.executeParallel(criticalOps);
|
|
539
|
-
// Phase 2: Supporting services (parallel)
|
|
540
|
-
const supportingOps = [
|
|
541
|
-
{
|
|
542
|
-
tool: 'memory_namespace',
|
|
543
|
-
params: {
|
|
544
|
-
action: 'create',
|
|
545
|
-
namespace: swarmId,
|
|
546
|
-
maxSize: config.memorySize || 100,
|
|
547
|
-
},
|
|
548
|
-
},
|
|
549
|
-
{ tool: 'neural_status', params: {} },
|
|
550
|
-
{ tool: 'performance_report', params: { format: 'summary' } },
|
|
551
|
-
{ tool: 'features_detect', params: { component: 'swarm' } },
|
|
552
|
-
];
|
|
553
|
-
const supportingResults = await this.executeParallel(supportingOps);
|
|
554
|
-
// Store initialization metadata
|
|
555
|
-
const initTime = Date.now() - startTime;
|
|
556
|
-
await this.storeMemory(swarmId, 'init_performance', {
|
|
557
|
-
initTime,
|
|
558
|
-
topology: config.topology || 'hierarchical',
|
|
559
|
-
maxAgents: config.maxAgents || 8,
|
|
560
|
-
timestamp: Date.now(),
|
|
561
|
-
}, 'metrics');
|
|
562
|
-
// Store swarm status
|
|
563
|
-
await this.storeMemory(swarmId, 'status', 'active', 'status');
|
|
564
|
-
// Store swarm config
|
|
565
|
-
await this.storeMemory(swarmId, 'config', {
|
|
566
|
-
topology: config.topology || 'hierarchical',
|
|
567
|
-
maxAgents: config.maxAgents || 8,
|
|
568
|
-
strategy: config.strategy || 'auto',
|
|
569
|
-
createdAt: Date.now(),
|
|
570
|
-
}, 'config');
|
|
571
|
-
return [swarmInitResult, ...supportingResults];
|
|
572
|
-
}
|
|
573
|
-
catch (error) {
|
|
574
|
-
console.error('Swarm initialization failed:', error);
|
|
575
|
-
throw error;
|
|
576
|
-
}
|
|
577
|
-
}
|
|
578
|
-
/**
|
|
579
|
-
* Spawn multiple agents in parallel with optimization
|
|
580
|
-
*/
|
|
581
|
-
async spawnAgents(types, swarmId) {
|
|
582
|
-
if (!Array.isArray(types) || types.length === 0) {
|
|
583
|
-
return [];
|
|
584
|
-
}
|
|
585
|
-
const startTime = Date.now();
|
|
586
|
-
// Optimize agent spawning by grouping similar types
|
|
587
|
-
const groupedTypes = this._groupAgentTypes(types);
|
|
588
|
-
const allResults = [];
|
|
589
|
-
try {
|
|
590
|
-
// Spawn each group in parallel
|
|
591
|
-
for (const group of groupedTypes) {
|
|
592
|
-
const batch = group.map((type) => ({
|
|
593
|
-
tool: 'agent_spawn',
|
|
594
|
-
params: {
|
|
595
|
-
type,
|
|
596
|
-
swarmId,
|
|
597
|
-
timestamp: Date.now(),
|
|
598
|
-
batchId: `batch-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`,
|
|
599
|
-
},
|
|
600
|
-
}));
|
|
601
|
-
const groupResults = await this.executeParallel(batch);
|
|
602
|
-
allResults.push(...groupResults);
|
|
603
|
-
// Store agent information in memory
|
|
604
|
-
for (const result of groupResults) {
|
|
605
|
-
if (result && result.agentId && !result.error) {
|
|
606
|
-
await this.storeMemory(swarmId, `agent-${result.agentId}`, {
|
|
607
|
-
id: result.agentId,
|
|
608
|
-
type: result.type,
|
|
609
|
-
status: result.status || 'active',
|
|
610
|
-
createdAt: Date.now(),
|
|
611
|
-
}, 'agent');
|
|
612
|
-
}
|
|
613
|
-
}
|
|
614
|
-
}
|
|
615
|
-
// Track spawn performance
|
|
616
|
-
const spawnTime = Date.now() - startTime;
|
|
617
|
-
this._trackSpawnPerformance(types.length, spawnTime);
|
|
618
|
-
return allResults;
|
|
619
|
-
}
|
|
620
|
-
catch (error) {
|
|
621
|
-
console.error('Agent spawning failed:', error);
|
|
622
|
-
throw error;
|
|
623
|
-
}
|
|
624
|
-
}
|
|
625
|
-
/**
|
|
626
|
-
* Group agent types for optimized spawning
|
|
627
|
-
*/
|
|
628
|
-
_groupAgentTypes(types) {
|
|
629
|
-
// Group complementary agent types that work well together
|
|
630
|
-
const groups = {
|
|
631
|
-
development: ['coder', 'architect', 'reviewer'],
|
|
632
|
-
analysis: ['researcher', 'analyst', 'optimizer'],
|
|
633
|
-
quality: ['tester', 'documenter'],
|
|
634
|
-
coordination: ['coordinator'],
|
|
635
|
-
};
|
|
636
|
-
const result = [];
|
|
637
|
-
const remaining = [...types];
|
|
638
|
-
// Create groups of complementary agents
|
|
639
|
-
Object.values(groups).forEach((groupTypes) => {
|
|
640
|
-
const groupAgents = remaining.filter((type) => groupTypes.includes(type));
|
|
641
|
-
if (groupAgents.length > 0) {
|
|
642
|
-
result.push(groupAgents);
|
|
643
|
-
groupAgents.forEach((type) => {
|
|
644
|
-
const index = remaining.indexOf(type);
|
|
645
|
-
if (index > -1)
|
|
646
|
-
remaining.splice(index, 1);
|
|
647
|
-
});
|
|
648
|
-
}
|
|
649
|
-
});
|
|
650
|
-
// Add remaining agents as individual groups
|
|
651
|
-
remaining.forEach((type) => result.push([type]));
|
|
652
|
-
return result;
|
|
653
|
-
}
|
|
654
|
-
/**
|
|
655
|
-
* Track agent spawn performance
|
|
656
|
-
*/
|
|
657
|
-
_trackSpawnPerformance(agentCount, spawnTime) {
|
|
658
|
-
if (!this.spawnStats) {
|
|
659
|
-
this.spawnStats = {
|
|
660
|
-
totalSpawns: 0,
|
|
661
|
-
totalAgents: 0,
|
|
662
|
-
totalTime: 0,
|
|
663
|
-
avgTimePerAgent: 0,
|
|
664
|
-
bestTime: Infinity,
|
|
665
|
-
worstTime: 0,
|
|
666
|
-
};
|
|
667
|
-
}
|
|
668
|
-
this.spawnStats.totalSpawns++;
|
|
669
|
-
this.spawnStats.totalAgents += agentCount;
|
|
670
|
-
this.spawnStats.totalTime += spawnTime;
|
|
671
|
-
this.spawnStats.avgTimePerAgent = this.spawnStats.totalTime / this.spawnStats.totalAgents;
|
|
672
|
-
this.spawnStats.bestTime = Math.min(this.spawnStats.bestTime, spawnTime);
|
|
673
|
-
this.spawnStats.worstTime = Math.max(this.spawnStats.worstTime, spawnTime);
|
|
674
|
-
}
|
|
675
|
-
/**
|
|
676
|
-
* Store data in collective memory (REAL IMPLEMENTATION)
|
|
677
|
-
*/
|
|
678
|
-
async storeMemory(swarmId, key, value, type = 'knowledge') {
|
|
679
|
-
try {
|
|
680
|
-
// Don't reinitialize if we already have storage
|
|
681
|
-
if (!this.memoryDb && !this.memoryStore) {
|
|
682
|
-
await this.initializeMemoryStorage();
|
|
683
|
-
}
|
|
684
|
-
const timestamp = Date.now();
|
|
685
|
-
const valueStr = typeof value === 'string' ? value : JSON.stringify(value);
|
|
686
|
-
if (this.memoryDb) {
|
|
687
|
-
// SQLite storage
|
|
688
|
-
const stmt = this.memoryDb.prepare(`
|
|
689
|
-
INSERT OR REPLACE INTO memories (namespace, key, value, type, timestamp)
|
|
690
|
-
VALUES (?, ?, ?, ?, ?)
|
|
691
|
-
`);
|
|
692
|
-
const result = stmt.run(swarmId, key, valueStr, type, timestamp);
|
|
693
|
-
return {
|
|
694
|
-
success: true,
|
|
695
|
-
action: 'store',
|
|
696
|
-
namespace: swarmId,
|
|
697
|
-
key,
|
|
698
|
-
type,
|
|
699
|
-
timestamp,
|
|
700
|
-
id: result.lastInsertRowid,
|
|
701
|
-
};
|
|
702
|
-
}
|
|
703
|
-
else {
|
|
704
|
-
// Fallback in-memory storage
|
|
705
|
-
const memoryKey = `${swarmId}:${key}`;
|
|
706
|
-
this.memoryStore.set(memoryKey, {
|
|
707
|
-
namespace: swarmId,
|
|
708
|
-
key,
|
|
709
|
-
value: valueStr,
|
|
710
|
-
type,
|
|
711
|
-
timestamp,
|
|
712
|
-
});
|
|
713
|
-
return {
|
|
714
|
-
success: true,
|
|
715
|
-
action: 'store',
|
|
716
|
-
namespace: swarmId,
|
|
717
|
-
key,
|
|
718
|
-
type,
|
|
719
|
-
timestamp,
|
|
720
|
-
};
|
|
721
|
-
}
|
|
722
|
-
}
|
|
723
|
-
catch (error) {
|
|
724
|
-
console.error('Error storing memory:', error);
|
|
725
|
-
throw error;
|
|
726
|
-
}
|
|
727
|
-
}
|
|
728
|
-
/**
|
|
729
|
-
* Retrieve data from collective memory (REAL IMPLEMENTATION)
|
|
730
|
-
*/
|
|
731
|
-
async retrieveMemory(swarmId, key) {
|
|
732
|
-
try {
|
|
733
|
-
// Don't reinitialize if we already have storage
|
|
734
|
-
if (!this.memoryDb && !this.memoryStore) {
|
|
735
|
-
await this.initializeMemoryStorage();
|
|
736
|
-
}
|
|
737
|
-
if (this.memoryDb) {
|
|
738
|
-
// SQLite retrieval
|
|
739
|
-
const stmt = this.memoryDb.prepare(`
|
|
740
|
-
SELECT * FROM memories WHERE namespace = ? AND key = ?
|
|
741
|
-
`);
|
|
742
|
-
const row = stmt.get(swarmId, key);
|
|
743
|
-
if (row) {
|
|
744
|
-
try {
|
|
745
|
-
return {
|
|
746
|
-
...row,
|
|
747
|
-
value: JSON.parse(row.value),
|
|
748
|
-
};
|
|
749
|
-
}
|
|
750
|
-
catch {
|
|
751
|
-
return row;
|
|
752
|
-
}
|
|
753
|
-
}
|
|
754
|
-
}
|
|
755
|
-
else {
|
|
756
|
-
// Fallback in-memory retrieval
|
|
757
|
-
const memoryKey = `${swarmId}:${key}`;
|
|
758
|
-
const memory = this.memoryStore.get(memoryKey);
|
|
759
|
-
if (memory) {
|
|
760
|
-
try {
|
|
761
|
-
return {
|
|
762
|
-
...memory,
|
|
763
|
-
value: JSON.parse(memory.value),
|
|
764
|
-
};
|
|
765
|
-
}
|
|
766
|
-
catch {
|
|
767
|
-
return memory;
|
|
768
|
-
}
|
|
769
|
-
}
|
|
770
|
-
}
|
|
771
|
-
return null;
|
|
772
|
-
}
|
|
773
|
-
catch (error) {
|
|
774
|
-
console.error('Error retrieving memory:', error);
|
|
775
|
-
throw error;
|
|
776
|
-
}
|
|
777
|
-
}
|
|
778
|
-
/**
|
|
779
|
-
* Search collective memory (REAL IMPLEMENTATION)
|
|
780
|
-
*/
|
|
781
|
-
async searchMemory(swarmId, pattern) {
|
|
782
|
-
try {
|
|
783
|
-
// Don't reinitialize if we already have storage
|
|
784
|
-
if (!this.memoryDb && !this.memoryStore) {
|
|
785
|
-
await this.initializeMemoryStorage();
|
|
786
|
-
}
|
|
787
|
-
let results = [];
|
|
788
|
-
if (this.memoryDb) {
|
|
789
|
-
// SQLite search
|
|
790
|
-
let query, params;
|
|
791
|
-
if (pattern && pattern.trim()) {
|
|
792
|
-
// Search with pattern
|
|
793
|
-
query = `
|
|
794
|
-
SELECT * FROM memories
|
|
795
|
-
WHERE namespace = ? AND (key LIKE ? OR value LIKE ? OR type LIKE ?)
|
|
796
|
-
ORDER BY timestamp DESC
|
|
797
|
-
LIMIT 50
|
|
798
|
-
`;
|
|
799
|
-
const searchPattern = `%${pattern}%`;
|
|
800
|
-
params = [swarmId, searchPattern, searchPattern, searchPattern];
|
|
801
|
-
}
|
|
802
|
-
else {
|
|
803
|
-
// Get all memories for namespace
|
|
804
|
-
query = `
|
|
805
|
-
SELECT * FROM memories
|
|
806
|
-
WHERE namespace = ?
|
|
807
|
-
ORDER BY timestamp DESC
|
|
808
|
-
LIMIT 50
|
|
809
|
-
`;
|
|
810
|
-
params = [swarmId];
|
|
811
|
-
}
|
|
812
|
-
const stmt = this.memoryDb.prepare(query);
|
|
813
|
-
results = stmt.all(...params);
|
|
814
|
-
// Parse JSON values where possible
|
|
815
|
-
results = results.map((row) => {
|
|
816
|
-
try {
|
|
817
|
-
return {
|
|
818
|
-
...row,
|
|
819
|
-
value: JSON.parse(row.value),
|
|
820
|
-
};
|
|
821
|
-
}
|
|
822
|
-
catch {
|
|
823
|
-
return row;
|
|
824
|
-
}
|
|
825
|
-
});
|
|
826
|
-
}
|
|
827
|
-
else {
|
|
828
|
-
// Fallback in-memory search
|
|
829
|
-
for (const [memKey, memory] of this.memoryStore) {
|
|
830
|
-
if (memory.namespace === swarmId) {
|
|
831
|
-
if (!pattern ||
|
|
832
|
-
memory.key.includes(pattern) ||
|
|
833
|
-
memory.value.includes(pattern) ||
|
|
834
|
-
memory.type.includes(pattern)) {
|
|
835
|
-
try {
|
|
836
|
-
results.push({
|
|
837
|
-
...memory,
|
|
838
|
-
value: JSON.parse(memory.value),
|
|
839
|
-
});
|
|
840
|
-
}
|
|
841
|
-
catch {
|
|
842
|
-
results.push(memory);
|
|
843
|
-
}
|
|
844
|
-
}
|
|
845
|
-
}
|
|
846
|
-
}
|
|
847
|
-
// Sort by timestamp descending
|
|
848
|
-
results.sort((a, b) => b.timestamp - a.timestamp);
|
|
849
|
-
results = results.slice(0, 50);
|
|
850
|
-
}
|
|
851
|
-
return {
|
|
852
|
-
success: true,
|
|
853
|
-
namespace: swarmId,
|
|
854
|
-
pattern: pattern || '',
|
|
855
|
-
total: results.length,
|
|
856
|
-
results: results,
|
|
857
|
-
};
|
|
858
|
-
}
|
|
859
|
-
catch (error) {
|
|
860
|
-
console.error('Error searching memory:', error);
|
|
861
|
-
throw error;
|
|
862
|
-
}
|
|
863
|
-
}
|
|
864
|
-
/**
|
|
865
|
-
* Orchestrate task with monitoring and optimization
|
|
866
|
-
*/
|
|
867
|
-
async orchestrateTask(task, strategy = 'parallel', metadata = {}) {
|
|
868
|
-
const taskId = metadata.taskId || `task-${Date.now()}`;
|
|
869
|
-
const swarmId = metadata.swarmId || 'default-swarm';
|
|
870
|
-
const complexity = metadata.complexity || 'medium';
|
|
871
|
-
// Store task information
|
|
872
|
-
await this.storeMemory(swarmId, `task-${taskId}`, {
|
|
873
|
-
id: taskId,
|
|
874
|
-
task,
|
|
875
|
-
strategy,
|
|
876
|
-
status: 'pending',
|
|
877
|
-
priority: metadata.priority || 5,
|
|
878
|
-
complexity,
|
|
879
|
-
createdAt: Date.now(),
|
|
880
|
-
}, 'task');
|
|
881
|
-
// Adjust monitoring frequency based on task complexity
|
|
882
|
-
const monitoringInterval = {
|
|
883
|
-
low: 10000,
|
|
884
|
-
medium: 5000,
|
|
885
|
-
high: 2000,
|
|
886
|
-
}[complexity] || 5000;
|
|
887
|
-
const batch = [
|
|
888
|
-
{
|
|
889
|
-
tool: 'task_orchestrate',
|
|
890
|
-
params: {
|
|
891
|
-
task,
|
|
892
|
-
strategy,
|
|
893
|
-
taskId,
|
|
894
|
-
priority: metadata.priority || 5,
|
|
895
|
-
estimatedDuration: metadata.estimatedDuration || 30000,
|
|
896
|
-
},
|
|
897
|
-
},
|
|
898
|
-
{
|
|
899
|
-
tool: 'swarm_monitor',
|
|
900
|
-
params: {
|
|
901
|
-
interval: monitoringInterval,
|
|
902
|
-
taskId,
|
|
903
|
-
metrics: ['performance', 'progress', 'bottlenecks'],
|
|
904
|
-
},
|
|
905
|
-
},
|
|
906
|
-
// Add performance tracking for high-priority tasks
|
|
907
|
-
...(metadata.priority > 7
|
|
908
|
-
? [
|
|
909
|
-
{
|
|
910
|
-
tool: 'performance_report',
|
|
911
|
-
params: { format: 'detailed', taskId },
|
|
912
|
-
},
|
|
913
|
-
]
|
|
914
|
-
: []),
|
|
915
|
-
];
|
|
916
|
-
const results = await this.executeParallel(batch);
|
|
917
|
-
// Update task status
|
|
918
|
-
await this.storeMemory(swarmId, `task-${taskId}`, {
|
|
919
|
-
id: taskId,
|
|
920
|
-
task,
|
|
921
|
-
strategy,
|
|
922
|
-
status: 'in_progress',
|
|
923
|
-
priority: metadata.priority || 5,
|
|
924
|
-
complexity,
|
|
925
|
-
createdAt: Date.now(),
|
|
926
|
-
}, 'task');
|
|
927
|
-
return results;
|
|
928
|
-
}
|
|
929
|
-
/**
|
|
930
|
-
* Analyze performance bottlenecks
|
|
931
|
-
*/
|
|
932
|
-
async analyzePerformance(swarmId) {
|
|
933
|
-
const batch = [
|
|
934
|
-
{ tool: 'bottleneck_analyze', params: { component: swarmId } },
|
|
935
|
-
{ tool: 'performance_report', params: { format: 'detailed' } },
|
|
936
|
-
{ tool: 'token_usage', params: { operation: swarmId } },
|
|
937
|
-
];
|
|
938
|
-
return await this.executeParallel(batch);
|
|
939
|
-
}
|
|
940
|
-
/**
|
|
941
|
-
* GitHub integration for code operations
|
|
942
|
-
*/
|
|
943
|
-
async githubOperations(repo, operation, params = {}) {
|
|
944
|
-
const githubTools = {
|
|
945
|
-
analyze: 'github_repo_analyze',
|
|
946
|
-
pr: 'github_pr_manage',
|
|
947
|
-
issue: 'github_issue_track',
|
|
948
|
-
review: 'github_code_review',
|
|
949
|
-
};
|
|
950
|
-
const tool = githubTools[operation];
|
|
951
|
-
if (!tool) {
|
|
952
|
-
throw new Error(`Unknown GitHub operation: ${operation}`);
|
|
953
|
-
}
|
|
954
|
-
return await this.executeTool(tool, { repo, ...params });
|
|
955
|
-
}
|
|
956
|
-
/**
|
|
957
|
-
* Neural network operations
|
|
958
|
-
*/
|
|
959
|
-
async neuralOperation(operation, params = {}) {
|
|
960
|
-
const neuralTools = {
|
|
961
|
-
train: 'neural_train',
|
|
962
|
-
predict: 'neural_predict',
|
|
963
|
-
analyze: 'neural_patterns',
|
|
964
|
-
optimize: 'wasm_optimize',
|
|
965
|
-
};
|
|
966
|
-
const tool = neuralTools[operation];
|
|
967
|
-
if (!tool) {
|
|
968
|
-
throw new Error(`Unknown neural operation: ${operation}`);
|
|
969
|
-
}
|
|
970
|
-
return await this.executeTool(tool, params);
|
|
971
|
-
}
|
|
972
|
-
/**
|
|
973
|
-
* Clean up and destroy swarm
|
|
974
|
-
*/
|
|
975
|
-
async destroySwarm(swarmId) {
|
|
976
|
-
const batch = [
|
|
977
|
-
{ tool: 'swarm_destroy', params: { swarmId } },
|
|
978
|
-
{
|
|
979
|
-
tool: 'memory_namespace',
|
|
980
|
-
params: {
|
|
981
|
-
action: 'delete',
|
|
982
|
-
namespace: swarmId,
|
|
983
|
-
},
|
|
984
|
-
},
|
|
985
|
-
{
|
|
986
|
-
tool: 'cache_manage',
|
|
987
|
-
params: {
|
|
988
|
-
action: 'clear',
|
|
989
|
-
key: `swarm-${swarmId}`,
|
|
990
|
-
},
|
|
991
|
-
},
|
|
992
|
-
];
|
|
993
|
-
return await this.executeParallel(batch);
|
|
994
|
-
}
|
|
995
|
-
/**
|
|
996
|
-
* Get real swarm status from memory storage
|
|
997
|
-
*/
|
|
998
|
-
async getSwarmStatus(params = {}) {
|
|
999
|
-
try {
|
|
1000
|
-
// Don't reinitialize if we already have storage
|
|
1001
|
-
if (!this.memoryDb && !this.memoryStore) {
|
|
1002
|
-
await this.initializeMemoryStorage();
|
|
1003
|
-
}
|
|
1004
|
-
const swarms = [];
|
|
1005
|
-
let activeAgents = 0;
|
|
1006
|
-
let totalTasks = 0;
|
|
1007
|
-
let completedTasks = 0;
|
|
1008
|
-
if (this.memoryDb) {
|
|
1009
|
-
// Get all unique swarm namespaces
|
|
1010
|
-
const namespacesQuery = this.memoryDb.prepare(`
|
|
1011
|
-
SELECT DISTINCT namespace FROM memories
|
|
1012
|
-
WHERE namespace LIKE 'swarm-%' OR namespace LIKE 'hive-%'
|
|
1013
|
-
ORDER BY timestamp DESC
|
|
1014
|
-
`);
|
|
1015
|
-
const namespaces = namespacesQuery.all();
|
|
1016
|
-
// For each swarm, gather its information
|
|
1017
|
-
for (const { namespace } of namespaces) {
|
|
1018
|
-
const swarmId = namespace;
|
|
1019
|
-
// Get swarm metadata
|
|
1020
|
-
const metadataQuery = this.memoryDb.prepare(`
|
|
1021
|
-
SELECT key, value, type, timestamp FROM memories
|
|
1022
|
-
WHERE namespace = ? AND (
|
|
1023
|
-
key IN ('init_performance', 'config', 'status', 'agents', 'tasks', 'topology')
|
|
1024
|
-
OR key LIKE 'agent-%'
|
|
1025
|
-
OR key LIKE 'task-%'
|
|
1026
|
-
)
|
|
1027
|
-
`);
|
|
1028
|
-
const swarmData = metadataQuery.all(swarmId);
|
|
1029
|
-
// Parse swarm information
|
|
1030
|
-
let swarmInfo = {
|
|
1031
|
-
id: swarmId,
|
|
1032
|
-
name: swarmId,
|
|
1033
|
-
status: 'unknown',
|
|
1034
|
-
agents: 0,
|
|
1035
|
-
tasks: { total: 0, completed: 0, pending: 0, failed: 0 },
|
|
1036
|
-
topology: 'hierarchical',
|
|
1037
|
-
createdAt: null,
|
|
1038
|
-
lastActivity: null,
|
|
1039
|
-
memoryUsage: swarmData.length
|
|
1040
|
-
};
|
|
1041
|
-
// Process swarm data
|
|
1042
|
-
for (const record of swarmData) {
|
|
1043
|
-
try {
|
|
1044
|
-
const value = typeof record.value === 'string' ? JSON.parse(record.value) : record.value;
|
|
1045
|
-
switch (record.key) {
|
|
1046
|
-
case 'init_performance':
|
|
1047
|
-
swarmInfo.createdAt = value.timestamp;
|
|
1048
|
-
swarmInfo.topology = value.topology || 'hierarchical';
|
|
1049
|
-
break;
|
|
1050
|
-
case 'status':
|
|
1051
|
-
swarmInfo.status = value;
|
|
1052
|
-
break;
|
|
1053
|
-
case 'config':
|
|
1054
|
-
swarmInfo.topology = value.topology || swarmInfo.topology;
|
|
1055
|
-
break;
|
|
1056
|
-
}
|
|
1057
|
-
// Count agents
|
|
1058
|
-
if (record.key.startsWith('agent-')) {
|
|
1059
|
-
swarmInfo.agents++;
|
|
1060
|
-
activeAgents++;
|
|
1061
|
-
}
|
|
1062
|
-
// Count tasks
|
|
1063
|
-
if (record.key.startsWith('task-')) {
|
|
1064
|
-
swarmInfo.tasks.total++;
|
|
1065
|
-
totalTasks++;
|
|
1066
|
-
if (value.status === 'completed') {
|
|
1067
|
-
swarmInfo.tasks.completed++;
|
|
1068
|
-
completedTasks++;
|
|
1069
|
-
}
|
|
1070
|
-
else if (value.status === 'failed') {
|
|
1071
|
-
swarmInfo.tasks.failed++;
|
|
1072
|
-
}
|
|
1073
|
-
else if (value.status === 'pending' || value.status === 'in_progress') {
|
|
1074
|
-
swarmInfo.tasks.pending++;
|
|
1075
|
-
}
|
|
1076
|
-
}
|
|
1077
|
-
// Track last activity
|
|
1078
|
-
if (record.timestamp > (swarmInfo.lastActivity || 0)) {
|
|
1079
|
-
swarmInfo.lastActivity = record.timestamp;
|
|
1080
|
-
}
|
|
1081
|
-
}
|
|
1082
|
-
catch (e) {
|
|
1083
|
-
// Skip invalid JSON values
|
|
1084
|
-
}
|
|
1085
|
-
}
|
|
1086
|
-
// Determine swarm status based on activity
|
|
1087
|
-
if (swarmInfo.status === 'unknown') {
|
|
1088
|
-
const now = Date.now();
|
|
1089
|
-
const lastActivityAge = now - (swarmInfo.lastActivity || 0);
|
|
1090
|
-
if (lastActivityAge < 60000) { // Active within last minute
|
|
1091
|
-
swarmInfo.status = 'active';
|
|
1092
|
-
}
|
|
1093
|
-
else if (lastActivityAge < 300000) { // Active within last 5 minutes
|
|
1094
|
-
swarmInfo.status = 'idle';
|
|
1095
|
-
}
|
|
1096
|
-
else {
|
|
1097
|
-
swarmInfo.status = 'inactive';
|
|
1098
|
-
}
|
|
1099
|
-
}
|
|
1100
|
-
swarms.push(swarmInfo);
|
|
1101
|
-
}
|
|
1102
|
-
// Get recent activity logs
|
|
1103
|
-
const activityQuery = this.memoryDb.prepare(`
|
|
1104
|
-
SELECT namespace, key, type, timestamp FROM memories
|
|
1105
|
-
WHERE (namespace LIKE 'swarm-%' OR namespace LIKE 'hive-%')
|
|
1106
|
-
AND timestamp > ?
|
|
1107
|
-
ORDER BY timestamp DESC
|
|
1108
|
-
LIMIT 10
|
|
1109
|
-
`);
|
|
1110
|
-
const recentActivity = activityQuery.all(Date.now() - 300000); // Last 5 minutes
|
|
1111
|
-
return {
|
|
1112
|
-
swarms,
|
|
1113
|
-
activeAgents,
|
|
1114
|
-
totalTasks,
|
|
1115
|
-
completedTasks,
|
|
1116
|
-
pendingTasks: totalTasks - completedTasks,
|
|
1117
|
-
recentActivity: recentActivity.map(r => ({
|
|
1118
|
-
swarmId: r.namespace,
|
|
1119
|
-
action: r.key,
|
|
1120
|
-
type: r.type,
|
|
1121
|
-
timestamp: r.timestamp
|
|
1122
|
-
})),
|
|
1123
|
-
summary: {
|
|
1124
|
-
totalSwarms: swarms.length,
|
|
1125
|
-
activeSwarms: swarms.filter(s => s.status === 'active').length,
|
|
1126
|
-
idleSwarms: swarms.filter(s => s.status === 'idle').length,
|
|
1127
|
-
inactiveSwarms: swarms.filter(s => s.status === 'inactive').length
|
|
1128
|
-
}
|
|
1129
|
-
};
|
|
1130
|
-
}
|
|
1131
|
-
else {
|
|
1132
|
-
// Fallback to in-memory storage
|
|
1133
|
-
const swarmMap = new Map();
|
|
1134
|
-
for (const [key, memory] of this.memoryStore) {
|
|
1135
|
-
const namespace = memory.namespace;
|
|
1136
|
-
if (namespace && (namespace.startsWith('swarm-') || namespace.startsWith('hive-'))) {
|
|
1137
|
-
if (!swarmMap.has(namespace)) {
|
|
1138
|
-
swarmMap.set(namespace, {
|
|
1139
|
-
id: namespace,
|
|
1140
|
-
name: namespace,
|
|
1141
|
-
status: 'active',
|
|
1142
|
-
agents: 0,
|
|
1143
|
-
tasks: { total: 0, completed: 0, pending: 0, failed: 0 },
|
|
1144
|
-
memoryUsage: 0
|
|
1145
|
-
});
|
|
1146
|
-
}
|
|
1147
|
-
const swarm = swarmMap.get(namespace);
|
|
1148
|
-
swarm.memoryUsage++;
|
|
1149
|
-
if (memory.key.startsWith('agent-')) {
|
|
1150
|
-
swarm.agents++;
|
|
1151
|
-
activeAgents++;
|
|
1152
|
-
}
|
|
1153
|
-
if (memory.key.startsWith('task-')) {
|
|
1154
|
-
swarm.tasks.total++;
|
|
1155
|
-
totalTasks++;
|
|
1156
|
-
try {
|
|
1157
|
-
const taskData = JSON.parse(memory.value);
|
|
1158
|
-
if (taskData.status === 'completed') {
|
|
1159
|
-
swarm.tasks.completed++;
|
|
1160
|
-
completedTasks++;
|
|
1161
|
-
}
|
|
1162
|
-
else if (taskData.status === 'failed') {
|
|
1163
|
-
swarm.tasks.failed++;
|
|
1164
|
-
}
|
|
1165
|
-
else if (taskData.status === 'pending' || taskData.status === 'in_progress') {
|
|
1166
|
-
swarm.tasks.pending++;
|
|
1167
|
-
}
|
|
1168
|
-
}
|
|
1169
|
-
catch (e) {
|
|
1170
|
-
// Skip invalid JSON
|
|
1171
|
-
}
|
|
1172
|
-
}
|
|
1173
|
-
}
|
|
1174
|
-
}
|
|
1175
|
-
return {
|
|
1176
|
-
swarms: Array.from(swarmMap.values()),
|
|
1177
|
-
activeAgents,
|
|
1178
|
-
totalTasks,
|
|
1179
|
-
completedTasks,
|
|
1180
|
-
pendingTasks: totalTasks - completedTasks,
|
|
1181
|
-
summary: {
|
|
1182
|
-
totalSwarms: swarmMap.size,
|
|
1183
|
-
activeSwarms: swarmMap.size
|
|
1184
|
-
}
|
|
1185
|
-
};
|
|
1186
|
-
}
|
|
1187
|
-
}
|
|
1188
|
-
catch (error) {
|
|
1189
|
-
console.error('Error getting swarm status:', error);
|
|
1190
|
-
// Return empty status on error
|
|
1191
|
-
return {
|
|
1192
|
-
swarms: [],
|
|
1193
|
-
activeAgents: 0,
|
|
1194
|
-
totalTasks: 0,
|
|
1195
|
-
completedTasks: 0,
|
|
1196
|
-
pendingTasks: 0,
|
|
1197
|
-
recentActivity: [],
|
|
1198
|
-
summary: {
|
|
1199
|
-
totalSwarms: 0,
|
|
1200
|
-
activeSwarms: 0,
|
|
1201
|
-
idleSwarms: 0,
|
|
1202
|
-
inactiveSwarms: 0
|
|
1203
|
-
},
|
|
1204
|
-
error: error.message
|
|
1205
|
-
};
|
|
1206
|
-
}
|
|
1207
|
-
}
|
|
1208
|
-
}
|
|
1209
|
-
// Export tool categories for reference
|
|
1210
|
-
export { MCP_TOOLS };
|
|
1211
|
-
//# sourceMappingURL=mcp-wrapper.js.map
|