claude-flow 2.0.0-alpha.45 → 2.0.0-alpha.49
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/bin/claude-flow +1 -1
- package/package.json +1 -1
- package/src/cli/help-text.js +1 -1
- package/src/cli/index.ts +1 -1
- package/src/cli/node-repl.ts +2 -2
- package/src/cli/simple-cli.js +1 -1
- package/src/cli/simple-commands/init/index.js +14 -7
- package/src/cli/simple-commands/init/templates/CLAUDE.md +103 -22
- package/src/cli/simple-commands/init/templates/claude-md.js +182 -0
- package/src/mcp/mcp-server.js +1 -1
- package/src/memory/enhanced-memory-v2.js +320 -0
- package/src/memory/enhanced-memory.js +236 -264
- package/src/memory/enhanced-memory.js.bak +348 -0
- package/src/memory/fallback-store.js +93 -0
- package/src/memory/in-memory-store.js +210 -0
- package/dist/__tests__/features/mocks/MockFeatureManager.d.ts +0 -26
- package/dist/__tests__/features/mocks/MockFeatureManager.d.ts.map +0 -1
- package/dist/__tests__/features/mocks/MockFeatureManager.js +0 -200
- package/dist/__tests__/features/mocks/MockFeatureManager.js.map +0 -1
- package/dist/__tests__/features/setup.d.ts +0 -24
- package/dist/__tests__/features/setup.d.ts.map +0 -1
- package/dist/__tests__/features/setup.js +0 -42
- package/dist/__tests__/features/setup.js.map +0 -1
- package/dist/__tests__/features/utils/test-helpers.d.ts +0 -96
- package/dist/__tests__/features/utils/test-helpers.d.ts.map +0 -1
- package/dist/__tests__/features/utils/test-helpers.js +0 -281
- package/dist/__tests__/features/utils/test-helpers.js.map +0 -1
- package/dist/adapters/cliffy-node.d.ts +0 -45
- package/dist/adapters/cliffy-node.d.ts.map +0 -1
- package/dist/adapters/cliffy-node.js +0 -61
- package/dist/adapters/cliffy-node.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 -969
- package/dist/agents/agent-manager.js.map +0 -1
- package/dist/agents/agent-registry.d.ts +0 -112
- package/dist/agents/agent-registry.d.ts.map +0 -1
- package/dist/agents/agent-registry.js +0 -341
- package/dist/agents/agent-registry.js.map +0 -1
- package/dist/cli/agents/analyst.d.ts +0 -28
- package/dist/cli/agents/analyst.d.ts.map +0 -1
- package/dist/cli/agents/analyst.js +0 -718
- package/dist/cli/agents/analyst.js.map +0 -1
- package/dist/cli/agents/architect.d.ts +0 -27
- package/dist/cli/agents/architect.d.ts.map +0 -1
- package/dist/cli/agents/architect.js +0 -729
- package/dist/cli/agents/architect.js.map +0 -1
- package/dist/cli/agents/base-agent.d.ts +0 -80
- package/dist/cli/agents/base-agent.d.ts.map +0 -1
- package/dist/cli/agents/base-agent.js +0 -385
- package/dist/cli/agents/base-agent.js.map +0 -1
- package/dist/cli/agents/capabilities.d.ts +0 -106
- package/dist/cli/agents/capabilities.d.ts.map +0 -1
- package/dist/cli/agents/capabilities.js +0 -556
- package/dist/cli/agents/capabilities.js.map +0 -1
- package/dist/cli/agents/coder.d.ts +0 -34
- package/dist/cli/agents/coder.d.ts.map +0 -1
- package/dist/cli/agents/coder.js +0 -806
- package/dist/cli/agents/coder.js.map +0 -1
- package/dist/cli/agents/coordinator.d.ts +0 -25
- package/dist/cli/agents/coordinator.d.ts.map +0 -1
- package/dist/cli/agents/coordinator.js +0 -454
- package/dist/cli/agents/coordinator.js.map +0 -1
- package/dist/cli/agents/hive-agents.d.ts +0 -85
- package/dist/cli/agents/hive-agents.d.ts.map +0 -1
- package/dist/cli/agents/hive-agents.js +0 -549
- package/dist/cli/agents/hive-agents.js.map +0 -1
- package/dist/cli/agents/index.d.ts +0 -111
- package/dist/cli/agents/index.d.ts.map +0 -1
- package/dist/cli/agents/index.js +0 -276
- package/dist/cli/agents/index.js.map +0 -1
- package/dist/cli/agents/researcher.d.ts +0 -24
- package/dist/cli/agents/researcher.d.ts.map +0 -1
- package/dist/cli/agents/researcher.js +0 -356
- package/dist/cli/agents/researcher.js.map +0 -1
- package/dist/cli/agents/tester.d.ts +0 -27
- package/dist/cli/agents/tester.d.ts.map +0 -1
- package/dist/cli/agents/tester.js +0 -594
- package/dist/cli/agents/tester.js.map +0 -1
- package/dist/cli/cli-core.d.ts +0 -49
- package/dist/cli/cli-core.d.ts.map +0 -1
- package/dist/cli/cli-core.js +0 -263
- 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 -703
- package/dist/cli/command-registry.js.map +0 -1
- package/dist/cli/commands/advanced-memory-commands.d.ts +0 -2
- package/dist/cli/commands/advanced-memory-commands.d.ts.map +0 -1
- package/dist/cli/commands/advanced-memory-commands.js +0 -849
- package/dist/cli/commands/advanced-memory-commands.js.map +0 -1
- package/dist/cli/commands/agent-simple.d.ts +0 -12
- package/dist/cli/commands/agent-simple.d.ts.map +0 -1
- package/dist/cli/commands/agent-simple.js +0 -353
- package/dist/cli/commands/agent-simple.js.map +0 -1
- package/dist/cli/commands/agent.d.ts +0 -7
- package/dist/cli/commands/agent.d.ts.map +0 -1
- package/dist/cli/commands/agent.js +0 -369
- package/dist/cli/commands/agent.js.map +0 -1
- package/dist/cli/commands/claude.d.ts +0 -3
- package/dist/cli/commands/claude.d.ts.map +0 -1
- package/dist/cli/commands/claude.js +0 -154
- package/dist/cli/commands/claude.js.map +0 -1
- package/dist/cli/commands/config-integration.d.ts +0 -10
- package/dist/cli/commands/config-integration.d.ts.map +0 -1
- package/dist/cli/commands/config-integration.js +0 -416
- package/dist/cli/commands/config-integration.js.map +0 -1
- package/dist/cli/commands/config.d.ts +0 -5
- package/dist/cli/commands/config.d.ts.map +0 -1
- package/dist/cli/commands/config.js +0 -89
- 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 -1486
- package/dist/cli/commands/enterprise.js.map +0 -1
- package/dist/cli/commands/features.d.ts +0 -3
- package/dist/cli/commands/features.d.ts.map +0 -1
- package/dist/cli/commands/features.js +0 -77
- package/dist/cli/commands/features.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 -786
- package/dist/cli/commands/help.js.map +0 -1
- package/dist/cli/commands/hive-mind/index.d.ts +0 -15
- package/dist/cli/commands/hive-mind/index.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/index.js +0 -22
- package/dist/cli/commands/hive-mind/index.js.map +0 -1
- package/dist/cli/commands/hive-mind/init.d.ts +0 -10
- 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/optimize-memory.d.ts +0 -8
- package/dist/cli/commands/hive-mind/optimize-memory.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/optimize-memory.js +0 -391
- package/dist/cli/commands/hive-mind/optimize-memory.js.map +0 -1
- package/dist/cli/commands/hive-mind/spawn.d.ts +0 -10
- package/dist/cli/commands/hive-mind/spawn.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/spawn.js +0 -147
- package/dist/cli/commands/hive-mind/spawn.js.map +0 -1
- package/dist/cli/commands/hive-mind/status.d.ts +0 -10
- package/dist/cli/commands/hive-mind/status.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/status.js +0 -209
- package/dist/cli/commands/hive-mind/status.js.map +0 -1
- package/dist/cli/commands/hive-mind/task.d.ts +0 -10
- package/dist/cli/commands/hive-mind/task.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/task.js +0 -288
- package/dist/cli/commands/hive-mind/task.js.map +0 -1
- package/dist/cli/commands/hive-mind/wizard.d.ts +0 -10
- package/dist/cli/commands/hive-mind/wizard.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/wizard.js +0 -513
- 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 -374
- package/dist/cli/commands/hive.js.map +0 -1
- package/dist/cli/commands/hook-types.d.ts +0 -95
- package/dist/cli/commands/hook-types.d.ts.map +0 -1
- package/dist/cli/commands/hook-types.js +0 -5
- package/dist/cli/commands/hook-types.js.map +0 -1
- package/dist/cli/commands/hook-validator.d.ts +0 -18
- package/dist/cli/commands/hook-validator.d.ts.map +0 -1
- package/dist/cli/commands/hook-validator.js +0 -165
- package/dist/cli/commands/hook-validator.js.map +0 -1
- package/dist/cli/commands/hook.d.ts +0 -8
- package/dist/cli/commands/hook.d.ts.map +0 -1
- package/dist/cli/commands/hook.js +0 -299
- package/dist/cli/commands/hook.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 -2450
- package/dist/cli/commands/index.js.map +0 -1
- package/dist/cli/commands/mcp.d.ts +0 -6
- package/dist/cli/commands/mcp.d.ts.map +0 -1
- package/dist/cli/commands/mcp.js +0 -177
- package/dist/cli/commands/mcp.js.map +0 -1
- package/dist/cli/commands/memory.d.ts +0 -30
- 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 -6
- 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 -6
- package/dist/cli/commands/monitor.d.ts.map +0 -1
- package/dist/cli/commands/monitor.js +0 -477
- package/dist/cli/commands/monitor.js.map +0 -1
- package/dist/cli/commands/ruv-swarm.d.ts +0 -10
- package/dist/cli/commands/ruv-swarm.d.ts.map +0 -1
- package/dist/cli/commands/ruv-swarm.js +0 -563
- package/dist/cli/commands/ruv-swarm.js.map +0 -1
- package/dist/cli/commands/session.d.ts +0 -6
- package/dist/cli/commands/session.d.ts.map +0 -1
- package/dist/cli/commands/session.js +0 -543
- 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 -452
- 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 -281
- package/dist/cli/commands/start/process-manager.js.map +0 -1
- package/dist/cli/commands/start/process-ui-simple.d.ts +0 -25
- 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 -6
- package/dist/cli/commands/start/start-command.d.ts.map +0 -1
- package/dist/cli/commands/start/start-command.js +0 -450
- package/dist/cli/commands/start/start-command.js.map +0 -1
- package/dist/cli/commands/start/system-monitor.d.ts +0 -22
- package/dist/cli/commands/start/system-monitor.d.ts.map +0 -1
- package/dist/cli/commands/start/system-monitor.js +0 -267
- 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 -6
- package/dist/cli/commands/status.d.ts.map +0 -1
- package/dist/cli/commands/status.js +0 -312
- package/dist/cli/commands/status.js.map +0 -1
- package/dist/cli/commands/swarm-new.d.ts +0 -3
- package/dist/cli/commands/swarm-new.d.ts.map +0 -1
- package/dist/cli/commands/swarm-new.js +0 -1399
- package/dist/cli/commands/swarm-new.js.map +0 -1
- package/dist/cli/commands/swarm-spawn.d.ts +0 -24
- package/dist/cli/commands/swarm-spawn.d.ts.map +0 -1
- package/dist/cli/commands/swarm-spawn.js +0 -56
- package/dist/cli/commands/swarm-spawn.js.map +0 -1
- package/dist/cli/commands/swarm.d.ts +0 -3
- package/dist/cli/commands/swarm.d.ts.map +0 -1
- package/dist/cli/commands/swarm.js +0 -460
- package/dist/cli/commands/swarm.js.map +0 -1
- package/dist/cli/commands/task.d.ts +0 -6
- 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 -6
- package/dist/cli/commands/workflow.d.ts.map +0 -1
- package/dist/cli/commands/workflow.js +0 -620
- package/dist/cli/commands/workflow.js.map +0 -1
- package/dist/cli/completion.d.ts +0 -16
- package/dist/cli/completion.d.ts.map +0 -1
- package/dist/cli/completion.js +0 -535
- package/dist/cli/completion.js.map +0 -1
- package/dist/cli/formatter.d.ts +0 -66
- 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/index-remote.d.ts +0 -3
- package/dist/cli/index-remote.d.ts.map +0 -1
- package/dist/cli/index-remote.js +0 -126
- 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 -197
- package/dist/cli/index.js.map +0 -1
- package/dist/cli/init/batch-tools.d.ts +0 -2
- package/dist/cli/init/batch-tools.d.ts.map +0 -1
- package/dist/cli/init/batch-tools.js +0 -387
- package/dist/cli/init/batch-tools.js.map +0 -1
- package/dist/cli/init/claude-config.d.ts +0 -3
- package/dist/cli/init/claude-config.d.ts.map +0 -1
- package/dist/cli/init/claude-config.js +0 -289
- package/dist/cli/init/claude-config.js.map +0 -1
- package/dist/cli/init/directory-structure.d.ts +0 -2
- package/dist/cli/init/directory-structure.d.ts.map +0 -1
- package/dist/cli/init/directory-structure.js +0 -144
- package/dist/cli/init/directory-structure.js.map +0 -1
- package/dist/cli/init/index.d.ts +0 -6
- package/dist/cli/init/index.d.ts.map +0 -1
- package/dist/cli/init/index.js +0 -52
- package/dist/cli/init/index.js.map +0 -1
- package/dist/cli/init/sparc-environment.d.ts +0 -2
- package/dist/cli/init/sparc-environment.d.ts.map +0 -1
- package/dist/cli/init/sparc-environment.js +0 -426
- package/dist/cli/init/sparc-environment.js.map +0 -1
- package/dist/cli/init/swarm-commands.d.ts +0 -2
- package/dist/cli/init/swarm-commands.d.ts.map +0 -1
- package/dist/cli/init/swarm-commands.js +0 -795
- package/dist/cli/init/swarm-commands.js.map +0 -1
- package/dist/cli/init/utils.d.ts +0 -5
- package/dist/cli/init/utils.d.ts.map +0 -1
- package/dist/cli/init/utils.js +0 -14
- package/dist/cli/init/utils.js.map +0 -1
- package/dist/cli/main.d.ts +0 -3
- package/dist/cli/main.d.ts.map +0 -1
- package/dist/cli/main.js +0 -26
- package/dist/cli/main.js.map +0 -1
- package/dist/cli/node-compat.d.ts +0 -66
- package/dist/cli/node-compat.d.ts.map +0 -1
- package/dist/cli/node-compat.js +0 -130
- package/dist/cli/node-compat.js.map +0 -1
- package/dist/cli/node-repl.d.ts +0 -5
- package/dist/cli/node-repl.d.ts.map +0 -1
- package/dist/cli/node-repl.js +0 -677
- package/dist/cli/node-repl.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 -909
- 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 -263
- package/dist/cli/runtime-detector.js.map +0 -1
- package/dist/cli/simple-cli.d.ts +0 -3
- package/dist/cli/simple-cli.d.ts.map +0 -1
- package/dist/cli/simple-cli.js +0 -3059
- package/dist/cli/simple-cli.js.map +0 -1
- package/dist/cli/simple-commands/agent.d.ts +0 -2
- package/dist/cli/simple-commands/agent.d.ts.map +0 -1
- package/dist/cli/simple-commands/agent.js +0 -175
- 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 -200
- package/dist/cli/simple-commands/analysis.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 -231
- 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 -284
- package/dist/cli/simple-commands/batch-manager.js.map +0 -1
- package/dist/cli/simple-commands/config.d.ts +0 -2
- package/dist/cli/simple-commands/config.d.ts.map +0 -1
- package/dist/cli/simple-commands/config.js +0 -277
- 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 -229
- package/dist/cli/simple-commands/coordination.js.map +0 -1
- package/dist/cli/simple-commands/features.d.ts +0 -2
- package/dist/cli/simple-commands/features.d.ts.map +0 -1
- package/dist/cli/simple-commands/features.js +0 -92
- package/dist/cli/simple-commands/features.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 -289
- package/dist/cli/simple-commands/github.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 -614
- 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 -832
- 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 -647
- 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 -204
- 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 -857
- 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 -1038
- package/dist/cli/simple-commands/hive-mind/memory.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 -518
- package/dist/cli/simple-commands/hive-mind/performance-optimizer.js.map +0 -1
- package/dist/cli/simple-commands/hive-mind/queen.d.ts +0 -294
- package/dist/cli/simple-commands/hive-mind/queen.d.ts.map +0 -1
- package/dist/cli/simple-commands/hive-mind/queen.js +0 -684
- package/dist/cli/simple-commands/hive-mind/queen.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 -18
- package/dist/cli/simple-commands/hive-mind.d.ts.map +0 -1
- package/dist/cli/simple-commands/hive-mind.js +0 -1847
- 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 -586
- package/dist/cli/simple-commands/hooks.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 -550
- 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 -432
- 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 -870
- 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 -309
- 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 -480
- 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 -29
- 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 -205
- package/dist/cli/simple-commands/init/claude-commands/sparc-commands.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 -113
- package/dist/cli/simple-commands/init/executable-wrapper.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 -92
- package/dist/cli/simple-commands/init/help.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 -1042
- 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 -278
- 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 -491
- 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 -350
- 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 -705
- 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 -487
- 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 -431
- package/dist/cli/simple-commands/init/rollback/state-tracker.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 -61
- package/dist/cli/simple-commands/init/sparc-structure.js.map +0 -1
- package/dist/cli/simple-commands/init/templates/claude-md.d.ts +0 -5
- 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 -464
- 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 -18
- 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 -1315
- 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 -764
- package/dist/cli/simple-commands/init/templates/sparc-modes.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 -311
- 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 -540
- 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 -342
- 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 -348
- 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 -265
- package/dist/cli/simple-commands/init/validation/pre-init-validator.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 -358
- package/dist/cli/simple-commands/mcp.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 -277
- package/dist/cli/simple-commands/memory.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 -157
- package/dist/cli/simple-commands/monitor.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 -666
- package/dist/cli/simple-commands/process-ui-enhanced.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 -468
- 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 -133
- 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 -263
- 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 -273
- package/dist/cli/simple-commands/status.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 -212
- 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 -285
- 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 -253
- 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 -1675
- 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 -145
- package/dist/cli/simple-commands/task.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/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 -814
- package/dist/cli/simple-commands/web-server.js.map +0 -1
- package/dist/cli/simple-mcp.d.ts +0 -6
- package/dist/cli/simple-mcp.d.ts.map +0 -1
- package/dist/cli/simple-mcp.js +0 -107
- package/dist/cli/simple-mcp.js.map +0 -1
- package/dist/cli/simple-orchestrator.d.ts +0 -16
- package/dist/cli/simple-orchestrator.d.ts.map +0 -1
- package/dist/cli/simple-orchestrator.js +0 -833
- package/dist/cli/simple-orchestrator.js.map +0 -1
- package/dist/cli/ui/compatible-ui.d.ts +0 -45
- package/dist/cli/ui/compatible-ui.d.ts.map +0 -1
- package/dist/cli/ui/compatible-ui.js +0 -318
- package/dist/cli/ui/compatible-ui.js.map +0 -1
- package/dist/cli/ui/fallback-handler.d.ts +0 -26
- package/dist/cli/ui/fallback-handler.d.ts.map +0 -1
- package/dist/cli/ui/fallback-handler.js +0 -166
- package/dist/cli/ui/fallback-handler.js.map +0 -1
- package/dist/cli/ui/index.d.ts +0 -11
- package/dist/cli/ui/index.d.ts.map +0 -1
- package/dist/cli/ui/index.js +0 -33
- package/dist/cli/ui/index.js.map +0 -1
- package/dist/cli/utils/environment-detector.d.ts +0 -54
- package/dist/cli/utils/environment-detector.d.ts.map +0 -1
- package/dist/cli/utils/environment-detector.js +0 -265
- package/dist/cli/utils/environment-detector.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/prompt-defaults.d.ts +0 -82
- package/dist/cli/utils/prompt-defaults.d.ts.map +0 -1
- package/dist/cli/utils/prompt-defaults.js +0 -253
- package/dist/cli/utils/prompt-defaults.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 -133
- package/dist/cli/utils/safe-interactive.js.map +0 -1
- package/dist/cli/utils.d.ts +0 -74
- package/dist/cli/utils.d.ts.map +0 -1
- package/dist/cli/utils.js +0 -570
- package/dist/cli/utils.js.map +0 -1
- package/dist/communication/message-bus.d.ts +0 -283
- package/dist/communication/message-bus.d.ts.map +0 -1
- package/dist/communication/message-bus.js +0 -959
- package/dist/communication/message-bus.js.map +0 -1
- package/dist/config/config-manager.d.ts +0 -174
- package/dist/config/config-manager.d.ts.map +0 -1
- package/dist/config/config-manager.js +0 -443
- package/dist/config/config-manager.js.map +0 -1
- package/dist/config/ruv-swarm-config.d.ts +0 -167
- package/dist/config/ruv-swarm-config.d.ts.map +0 -1
- package/dist/config/ruv-swarm-config.js +0 -274
- package/dist/config/ruv-swarm-config.js.map +0 -1
- package/dist/config/ruv-swarm-integration.d.ts +0 -93
- package/dist/config/ruv-swarm-integration.d.ts.map +0 -1
- package/dist/config/ruv-swarm-integration.js +0 -292
- package/dist/config/ruv-swarm-integration.js.map +0 -1
- package/dist/constants/agent-types.d.ts +0 -46
- package/dist/constants/agent-types.d.ts.map +0 -1
- package/dist/constants/agent-types.js +0 -50
- 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 -386
- package/dist/coordination/advanced-scheduler.js.map +0 -1
- package/dist/coordination/advanced-task-executor.d.ts +0 -100
- package/dist/coordination/advanced-task-executor.d.ts.map +0 -1
- package/dist/coordination/advanced-task-executor.js +0 -463
- package/dist/coordination/advanced-task-executor.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 -362
- 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 -298
- 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 -358
- 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 -386
- package/dist/coordination/dependency-graph.js.map +0 -1
- package/dist/coordination/hive-orchestrator.d.ts +0 -118
- package/dist/coordination/hive-orchestrator.d.ts.map +0 -1
- package/dist/coordination/hive-orchestrator.js +0 -321
- package/dist/coordination/hive-orchestrator.js.map +0 -1
- package/dist/coordination/hive-protocol.d.ts +0 -117
- package/dist/coordination/hive-protocol.d.ts.map +0 -1
- package/dist/coordination/hive-protocol.js +0 -373
- package/dist/coordination/hive-protocol.js.map +0 -1
- package/dist/coordination/index.d.ts +0 -14
- package/dist/coordination/index.d.ts.map +0 -1
- package/dist/coordination/index.js +0 -21
- package/dist/coordination/index.js.map +0 -1
- package/dist/coordination/load-balancer.d.ts +0 -139
- package/dist/coordination/load-balancer.d.ts.map +0 -1
- package/dist/coordination/load-balancer.js +0 -700
- package/dist/coordination/load-balancer.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 -360
- 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 -434
- 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 -250
- 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 -565
- 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 -155
- package/dist/coordination/work-stealing.js.map +0 -1
- package/dist/core/config.d.ts +0 -239
- package/dist/core/config.d.ts.map +0 -1
- package/dist/core/config.js +0 -1128
- package/dist/core/config.js.map +0 -1
- package/dist/core/event-bus.d.ts +0 -60
- 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 -52
- package/dist/core/json-persistence.d.ts.map +0 -1
- package/dist/core/json-persistence.js +0 -115
- package/dist/core/json-persistence.js.map +0 -1
- package/dist/core/logger.d.ts +0 -57
- package/dist/core/logger.d.ts.map +0 -1
- package/dist/core/logger.js +0 -253
- 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 -210
- package/dist/core/orchestrator-fixed.js.map +0 -1
- package/dist/core/orchestrator.d.ts +0 -103
- package/dist/core/orchestrator.d.ts.map +0 -1
- package/dist/core/orchestrator.js +0 -965
- package/dist/core/orchestrator.js.map +0 -1
- package/dist/core/persistence.d.ts +0 -50
- package/dist/core/persistence.d.ts.map +0 -1
- package/dist/core/persistence.js +0 -186
- package/dist/core/persistence.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 -949
- 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 -992
- 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 -784
- 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 -823
- package/dist/enterprise/deployment-manager.js.map +0 -1
- package/dist/enterprise/index.d.ts +0 -13
- package/dist/enterprise/index.d.ts.map +0 -1
- package/dist/enterprise/index.js +0 -7
- package/dist/enterprise/index.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 -529
- 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 -902
- package/dist/enterprise/security-manager.js.map +0 -1
- package/dist/features/adapters/CliFeatureAdapter.d.ts +0 -36
- package/dist/features/adapters/CliFeatureAdapter.d.ts.map +0 -1
- package/dist/features/adapters/CliFeatureAdapter.js +0 -311
- package/dist/features/adapters/CliFeatureAdapter.js.map +0 -1
- package/dist/features/adapters/McpFeatureAdapter.d.ts +0 -61
- package/dist/features/adapters/McpFeatureAdapter.d.ts.map +0 -1
- package/dist/features/adapters/McpFeatureAdapter.js +0 -487
- package/dist/features/adapters/McpFeatureAdapter.js.map +0 -1
- package/dist/features/adapters/index.d.ts +0 -7
- package/dist/features/adapters/index.d.ts.map +0 -1
- package/dist/features/adapters/index.js +0 -7
- package/dist/features/adapters/index.js.map +0 -1
- package/dist/features/built-in/index.d.ts +0 -53
- package/dist/features/built-in/index.d.ts.map +0 -1
- package/dist/features/built-in/index.js +0 -286
- package/dist/features/built-in/index.js.map +0 -1
- package/dist/features/core/FeatureManager.d.ts +0 -37
- package/dist/features/core/FeatureManager.d.ts.map +0 -1
- package/dist/features/core/FeatureManager.js +0 -291
- package/dist/features/core/FeatureManager.js.map +0 -1
- package/dist/features/core/FeatureRegistry.d.ts +0 -24
- package/dist/features/core/FeatureRegistry.d.ts.map +0 -1
- package/dist/features/core/FeatureRegistry.js +0 -75
- package/dist/features/core/FeatureRegistry.js.map +0 -1
- package/dist/features/core/configuration-manager.d.ts +0 -16
- package/dist/features/core/configuration-manager.d.ts.map +0 -1
- package/dist/features/core/configuration-manager.js +0 -94
- package/dist/features/core/configuration-manager.js.map +0 -1
- package/dist/features/core/feature-manager.d.ts +0 -23
- package/dist/features/core/feature-manager.d.ts.map +0 -1
- package/dist/features/core/feature-manager.js +0 -163
- package/dist/features/core/feature-manager.js.map +0 -1
- package/dist/features/core/feature-registry.d.ts +0 -16
- package/dist/features/core/feature-registry.d.ts.map +0 -1
- package/dist/features/core/feature-registry.js +0 -175
- package/dist/features/core/feature-registry.js.map +0 -1
- package/dist/features/core/feature.d.ts +0 -25
- package/dist/features/core/feature.d.ts.map +0 -1
- package/dist/features/core/feature.js +0 -113
- package/dist/features/core/feature.js.map +0 -1
- package/dist/features/core/index.d.ts +0 -10
- package/dist/features/core/index.d.ts.map +0 -1
- package/dist/features/core/index.js +0 -11
- package/dist/features/core/index.js.map +0 -1
- package/dist/features/core/transparency-layer.d.ts +0 -16
- package/dist/features/core/transparency-layer.d.ts.map +0 -1
- package/dist/features/core/transparency-layer.js +0 -61
- package/dist/features/core/transparency-layer.js.map +0 -1
- package/dist/features/hooks/command-hooks.d.ts +0 -40
- package/dist/features/hooks/command-hooks.d.ts.map +0 -1
- package/dist/features/hooks/command-hooks.js +0 -159
- package/dist/features/hooks/command-hooks.js.map +0 -1
- package/dist/features/index.d.ts +0 -6
- package/dist/features/index.d.ts.map +0 -1
- package/dist/features/index.js +0 -8
- package/dist/features/index.js.map +0 -1
- package/dist/features/initializer.d.ts +0 -17
- package/dist/features/initializer.d.ts.map +0 -1
- package/dist/features/initializer.js +0 -41
- package/dist/features/initializer.js.map +0 -1
- package/dist/features/tests/manual-test.d.ts +0 -6
- package/dist/features/tests/manual-test.d.ts.map +0 -1
- package/dist/features/tests/manual-test.js +0 -130
- package/dist/features/tests/manual-test.js.map +0 -1
- package/dist/features/types/IFeature.d.ts +0 -148
- package/dist/features/types/IFeature.d.ts.map +0 -1
- package/dist/features/types/IFeature.js +0 -43
- package/dist/features/types/IFeature.js.map +0 -1
- package/dist/features/types/IFeatureAdapter.d.ts +0 -298
- package/dist/features/types/IFeatureAdapter.d.ts.map +0 -1
- package/dist/features/types/IFeatureAdapter.js +0 -2
- package/dist/features/types/IFeatureAdapter.js.map +0 -1
- package/dist/features/types/IFeatureConfiguration.d.ts +0 -380
- package/dist/features/types/IFeatureConfiguration.d.ts.map +0 -1
- package/dist/features/types/IFeatureConfiguration.js +0 -2
- package/dist/features/types/IFeatureConfiguration.js.map +0 -1
- package/dist/features/types/IFeatureManager.d.ts +0 -216
- package/dist/features/types/IFeatureManager.d.ts.map +0 -1
- package/dist/features/types/IFeatureManager.js +0 -2
- package/dist/features/types/IFeatureManager.js.map +0 -1
- package/dist/features/types/IFeatureMetrics.d.ts +0 -543
- package/dist/features/types/IFeatureMetrics.d.ts.map +0 -1
- package/dist/features/types/IFeatureMetrics.js +0 -25
- package/dist/features/types/IFeatureMetrics.js.map +0 -1
- package/dist/features/types/ITransparencyLayer.d.ts +0 -552
- package/dist/features/types/ITransparencyLayer.d.ts.map +0 -1
- package/dist/features/types/ITransparencyLayer.js +0 -60
- package/dist/features/types/ITransparencyLayer.js.map +0 -1
- package/dist/features/types/feature-types.d.ts +0 -153
- package/dist/features/types/feature-types.d.ts.map +0 -1
- package/dist/features/types/feature-types.js +0 -40
- package/dist/features/types/feature-types.js.map +0 -1
- package/dist/features/types/index.d.ts +0 -13
- package/dist/features/types/index.d.ts.map +0 -1
- package/dist/features/types/index.js +0 -16
- package/dist/features/types/index.js.map +0 -1
- package/dist/features/types/type-guards.d.ts +0 -100
- package/dist/features/types/type-guards.d.ts.map +0 -1
- package/dist/features/types/type-guards.js +0 -212
- package/dist/features/types/type-guards.js.map +0 -1
- package/dist/features/types/utility-types.d.ts +0 -440
- package/dist/features/types/utility-types.d.ts.map +0 -1
- package/dist/features/types/utility-types.js +0 -2
- package/dist/features/types/utility-types.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 -93
- package/dist/hive-mind/core/DatabaseManager.d.ts.map +0 -1
- package/dist/hive-mind/core/DatabaseManager.js +0 -551
- 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 -439
- 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 -1185
- package/dist/hive-mind/core/Memory.js.map +0 -1
- package/dist/hive-mind/core/MemoryMonitor.d.ts +0 -183
- package/dist/hive-mind/core/MemoryMonitor.d.ts.map +0 -1
- package/dist/hive-mind/core/MemoryMonitor.js +0 -547
- package/dist/hive-mind/core/MemoryMonitor.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 -586
- package/dist/hive-mind/core/Queen.js.map +0 -1
- package/dist/hive-mind/index.d.ts +0 -17
- package/dist/hive-mind/index.d.ts.map +0 -1
- package/dist/hive-mind/index.js +0 -21
- package/dist/hive-mind/index.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 -476
- 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 -746
- package/dist/hive-mind/integration/SwarmOrchestrator.js.map +0 -1
- package/dist/hive-mind/types.d.ts +0 -298
- 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/integration/mock-components.d.ts +0 -107
- package/dist/integration/mock-components.d.ts.map +0 -1
- package/dist/integration/mock-components.js +0 -357
- package/dist/integration/mock-components.js.map +0 -1
- package/dist/integration/system-integration.d.ts +0 -84
- package/dist/integration/system-integration.d.ts.map +0 -1
- package/dist/integration/system-integration.js +0 -429
- package/dist/integration/system-integration.js.map +0 -1
- package/dist/integration/types.d.ts +0 -119
- package/dist/integration/types.d.ts.map +0 -1
- package/dist/integration/types.js +0 -5
- package/dist/integration/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 -343
- package/dist/mcp/auth.js.map +0 -1
- package/dist/mcp/claude-code-wrapper.d.ts +0 -26
- package/dist/mcp/claude-code-wrapper.d.ts.map +0 -1
- package/dist/mcp/claude-code-wrapper.js +0 -598
- package/dist/mcp/claude-code-wrapper.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 -1142
- package/dist/mcp/claude-flow-tools.js.map +0 -1
- package/dist/mcp/client.d.ts +0 -41
- package/dist/mcp/client.d.ts.map +0 -1
- package/dist/mcp/client.js +0 -194
- package/dist/mcp/client.js.map +0 -1
- package/dist/mcp/feature-tools.d.ts +0 -24
- package/dist/mcp/feature-tools.d.ts.map +0 -1
- package/dist/mcp/feature-tools.js +0 -65
- package/dist/mcp/feature-tools.js.map +0 -1
- package/dist/mcp/index.d.ts +0 -134
- package/dist/mcp/index.d.ts.map +0 -1
- package/dist/mcp/index.js +0 -212
- package/dist/mcp/index.js.map +0 -1
- package/dist/mcp/integrate-wrapper.d.ts +0 -16
- package/dist/mcp/integrate-wrapper.d.ts.map +0 -1
- package/dist/mcp/integrate-wrapper.js +0 -77
- package/dist/mcp/integrate-wrapper.js.map +0 -1
- package/dist/mcp/lifecycle-manager.d.ts +0 -121
- package/dist/mcp/lifecycle-manager.d.ts.map +0 -1
- package/dist/mcp/lifecycle-manager.js +0 -365
- package/dist/mcp/lifecycle-manager.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 -389
- package/dist/mcp/load-balancer.js.map +0 -1
- package/dist/mcp/orchestration-integration.d.ts +0 -135
- package/dist/mcp/orchestration-integration.d.ts.map +0 -1
- package/dist/mcp/orchestration-integration.js +0 -722
- package/dist/mcp/orchestration-integration.js.map +0 -1
- package/dist/mcp/performance-monitor.d.ts +0 -164
- package/dist/mcp/performance-monitor.d.ts.map +0 -1
- package/dist/mcp/performance-monitor.js +0 -478
- package/dist/mcp/performance-monitor.js.map +0 -1
- package/dist/mcp/protocol-manager.d.ts +0 -88
- package/dist/mcp/protocol-manager.d.ts.map +0 -1
- package/dist/mcp/protocol-manager.js +0 -358
- package/dist/mcp/protocol-manager.js.map +0 -1
- package/dist/mcp/recovery/connection-health-monitor.d.ts +0 -69
- package/dist/mcp/recovery/connection-health-monitor.d.ts.map +0 -1
- package/dist/mcp/recovery/connection-health-monitor.js +0 -241
- package/dist/mcp/recovery/connection-health-monitor.js.map +0 -1
- package/dist/mcp/recovery/connection-state-manager.d.ts +0 -102
- package/dist/mcp/recovery/connection-state-manager.d.ts.map +0 -1
- package/dist/mcp/recovery/connection-state-manager.js +0 -318
- package/dist/mcp/recovery/connection-state-manager.js.map +0 -1
- package/dist/mcp/recovery/fallback-coordinator.d.ts +0 -79
- package/dist/mcp/recovery/fallback-coordinator.d.ts.map +0 -1
- package/dist/mcp/recovery/fallback-coordinator.js +0 -278
- package/dist/mcp/recovery/fallback-coordinator.js.map +0 -1
- package/dist/mcp/recovery/index.d.ts +0 -10
- package/dist/mcp/recovery/index.d.ts.map +0 -1
- package/dist/mcp/recovery/index.js +0 -10
- package/dist/mcp/recovery/index.js.map +0 -1
- package/dist/mcp/recovery/reconnection-manager.d.ts +0 -69
- package/dist/mcp/recovery/reconnection-manager.d.ts.map +0 -1
- package/dist/mcp/recovery/reconnection-manager.js +0 -226
- package/dist/mcp/recovery/reconnection-manager.js.map +0 -1
- package/dist/mcp/recovery/recovery-manager.d.ts +0 -93
- package/dist/mcp/recovery/recovery-manager.d.ts.map +0 -1
- package/dist/mcp/recovery/recovery-manager.js +0 -250
- package/dist/mcp/recovery/recovery-manager.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 -201
- 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 -518
- package/dist/mcp/ruv-swarm-tools.js.map +0 -1
- package/dist/mcp/server-with-wrapper.d.ts +0 -3
- package/dist/mcp/server-with-wrapper.d.ts.map +0 -1
- package/dist/mcp/server-with-wrapper.js +0 -36
- package/dist/mcp/server-with-wrapper.js.map +0 -1
- package/dist/mcp/server-wrapper-mode.d.ts +0 -3
- package/dist/mcp/server-wrapper-mode.d.ts.map +0 -1
- package/dist/mcp/server-wrapper-mode.js +0 -28
- package/dist/mcp/server-wrapper-mode.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 -533
- 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 -322
- package/dist/mcp/session-manager.js.map +0 -1
- package/dist/mcp/sparc-modes.d.ts +0 -12
- package/dist/mcp/sparc-modes.d.ts.map +0 -1
- package/dist/mcp/sparc-modes.js +0 -370
- package/dist/mcp/sparc-modes.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 -711
- 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 -418
- 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 -2
- package/dist/mcp/transports/base.js.map +0 -1
- package/dist/mcp/transports/http.d.ts +0 -45
- 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 -34
- package/dist/mcp/transports/stdio.d.ts.map +0 -1
- package/dist/mcp/transports/stdio.js +0 -203
- package/dist/mcp/transports/stdio.js.map +0 -1
- package/dist/memory/advanced-memory-manager.d.ts +0 -303
- package/dist/memory/advanced-memory-manager.d.ts.map +0 -1
- package/dist/memory/advanced-memory-manager.js +0 -1458
- package/dist/memory/advanced-memory-manager.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 -2
- package/dist/memory/backends/base.js.map +0 -1
- package/dist/memory/backends/markdown.d.ts +0 -32
- 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 -29
- package/dist/memory/backends/sqlite.d.ts.map +0 -1
- package/dist/memory/backends/sqlite.js +0 -272
- 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 -186
- 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 -711
- package/dist/memory/distributed-memory.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 -188
- 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 -426
- package/dist/memory/manager.js.map +0 -1
- package/dist/memory/shared-memory.js +0 -656
- package/dist/memory/shared-memory.js.map +0 -1
- package/dist/memory/sqlite-store.js +0 -263
- package/dist/memory/sqlite-store.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 -461
- package/dist/memory/swarm-memory.js.map +0 -1
- package/dist/migration/index.d.ts +0 -3
- package/dist/migration/index.d.ts.map +0 -1
- package/dist/migration/index.js +0 -166
- package/dist/migration/index.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 -15
- package/dist/migration/migration-analyzer.d.ts.map +0 -1
- package/dist/migration/migration-analyzer.js +0 -279
- 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 -499
- package/dist/migration/migration-runner.js.map +0 -1
- package/dist/migration/migration-validator.d.ts +0 -14
- package/dist/migration/migration-validator.d.ts.map +0 -1
- package/dist/migration/migration-validator.js +0 -313
- package/dist/migration/migration-validator.js.map +0 -1
- package/dist/migration/progress-reporter.d.ts +0 -25
- 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 -21
- package/dist/migration/rollback-manager.d.ts.map +0 -1
- package/dist/migration/rollback-manager.js +0 -348
- 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/monitoring/diagnostics.d.ts +0 -109
- package/dist/monitoring/diagnostics.d.ts.map +0 -1
- package/dist/monitoring/diagnostics.js +0 -545
- package/dist/monitoring/diagnostics.js.map +0 -1
- package/dist/monitoring/health-check.d.ts +0 -91
- package/dist/monitoring/health-check.d.ts.map +0 -1
- package/dist/monitoring/health-check.js +0 -371
- package/dist/monitoring/health-check.js.map +0 -1
- package/dist/monitoring/real-time-monitor.d.ts +0 -230
- package/dist/monitoring/real-time-monitor.d.ts.map +0 -1
- package/dist/monitoring/real-time-monitor.js +0 -839
- package/dist/monitoring/real-time-monitor.js.map +0 -1
- package/dist/resources/resource-manager.d.ts +0 -390
- package/dist/resources/resource-manager.d.ts.map +0 -1
- package/dist/resources/resource-manager.js +0 -1220
- package/dist/resources/resource-manager.js.map +0 -1
- package/dist/swarm/claude-flow-executor.d.ts +0 -28
- package/dist/swarm/claude-flow-executor.d.ts.map +0 -1
- package/dist/swarm/claude-flow-executor.js +0 -210
- package/dist/swarm/claude-flow-executor.js.map +0 -1
- package/dist/swarm/coordinator.d.ts +0 -134
- package/dist/swarm/coordinator.d.ts.map +0 -1
- package/dist/swarm/coordinator.js +0 -2607
- package/dist/swarm/coordinator.js.map +0 -1
- package/dist/swarm/direct-executor.d.ts +0 -48
- package/dist/swarm/direct-executor.d.ts.map +0 -1
- package/dist/swarm/direct-executor.js +0 -1113
- package/dist/swarm/direct-executor.js.map +0 -1
- package/dist/swarm/executor-v2.d.ts +0 -23
- package/dist/swarm/executor-v2.d.ts.map +0 -1
- package/dist/swarm/executor-v2.js +0 -320
- package/dist/swarm/executor-v2.js.map +0 -1
- package/dist/swarm/executor.d.ts +0 -117
- package/dist/swarm/executor.d.ts.map +0 -1
- package/dist/swarm/executor.js +0 -791
- package/dist/swarm/executor.js.map +0 -1
- package/dist/swarm/index.d.ts +0 -31
- package/dist/swarm/index.d.ts.map +0 -1
- package/dist/swarm/index.js +0 -42
- package/dist/swarm/index.js.map +0 -1
- package/dist/swarm/memory.d.ts +0 -176
- package/dist/swarm/memory.d.ts.map +0 -1
- package/dist/swarm/memory.js +0 -1068
- package/dist/swarm/memory.js.map +0 -1
- package/dist/swarm/optimizations/async-file-manager.d.ts +0 -49
- package/dist/swarm/optimizations/async-file-manager.d.ts.map +0 -1
- package/dist/swarm/optimizations/async-file-manager.js +0 -248
- package/dist/swarm/optimizations/async-file-manager.js.map +0 -1
- package/dist/swarm/optimizations/circular-buffer.d.ts +0 -46
- package/dist/swarm/optimizations/circular-buffer.d.ts.map +0 -1
- package/dist/swarm/optimizations/circular-buffer.js +0 -159
- package/dist/swarm/optimizations/circular-buffer.js.map +0 -1
- package/dist/swarm/optimizations/connection-pool.d.ts +0 -54
- package/dist/swarm/optimizations/connection-pool.d.ts.map +0 -1
- package/dist/swarm/optimizations/connection-pool.js +0 -227
- package/dist/swarm/optimizations/connection-pool.js.map +0 -1
- package/dist/swarm/optimizations/index.d.ts +0 -24
- package/dist/swarm/optimizations/index.d.ts.map +0 -1
- package/dist/swarm/optimizations/index.js +0 -30
- package/dist/swarm/optimizations/index.js.map +0 -1
- package/dist/swarm/optimizations/optimized-executor.d.ts +0 -109
- package/dist/swarm/optimizations/optimized-executor.d.ts.map +0 -1
- package/dist/swarm/optimizations/optimized-executor.js +0 -321
- package/dist/swarm/optimizations/optimized-executor.js.map +0 -1
- package/dist/swarm/optimizations/ttl-map.d.ts +0 -78
- package/dist/swarm/optimizations/ttl-map.d.ts.map +0 -1
- package/dist/swarm/optimizations/ttl-map.js +0 -229
- package/dist/swarm/optimizations/ttl-map.js.map +0 -1
- package/dist/swarm/prompt-cli.d.ts +0 -5
- package/dist/swarm/prompt-cli.d.ts.map +0 -1
- package/dist/swarm/prompt-cli.js +0 -256
- package/dist/swarm/prompt-cli.js.map +0 -1
- package/dist/swarm/prompt-copier-enhanced.d.ts +0 -17
- package/dist/swarm/prompt-copier-enhanced.d.ts.map +0 -1
- package/dist/swarm/prompt-copier-enhanced.js +0 -190
- package/dist/swarm/prompt-copier-enhanced.js.map +0 -1
- package/dist/swarm/prompt-copier.d.ts +0 -76
- package/dist/swarm/prompt-copier.d.ts.map +0 -1
- package/dist/swarm/prompt-copier.js +0 -380
- package/dist/swarm/prompt-copier.js.map +0 -1
- package/dist/swarm/prompt-manager.d.ts +0 -72
- package/dist/swarm/prompt-manager.d.ts.map +0 -1
- package/dist/swarm/prompt-manager.js +0 -270
- package/dist/swarm/prompt-manager.js.map +0 -1
- package/dist/swarm/prompt-utils.d.ts +0 -52
- package/dist/swarm/prompt-utils.d.ts.map +0 -1
- package/dist/swarm/prompt-utils.js +0 -265
- package/dist/swarm/prompt-utils.js.map +0 -1
- package/dist/swarm/sparc-executor.d.ts +0 -105
- package/dist/swarm/sparc-executor.d.ts.map +0 -1
- package/dist/swarm/sparc-executor.js +0 -1364
- package/dist/swarm/sparc-executor.js.map +0 -1
- package/dist/swarm/strategies/auto.d.ts +0 -57
- package/dist/swarm/strategies/auto.d.ts.map +0 -1
- package/dist/swarm/strategies/auto.js +0 -623
- package/dist/swarm/strategies/auto.js.map +0 -1
- package/dist/swarm/strategies/base.d.ts +0 -78
- package/dist/swarm/strategies/base.d.ts.map +0 -1
- package/dist/swarm/strategies/base.js +0 -108
- package/dist/swarm/strategies/base.js.map +0 -1
- package/dist/swarm/strategies/research.d.ts +0 -75
- package/dist/swarm/strategies/research.d.ts.map +0 -1
- package/dist/swarm/strategies/research.js +0 -841
- package/dist/swarm/strategies/research.js.map +0 -1
- package/dist/swarm/strategies/strategy-metrics-patch.d.ts +0 -11
- package/dist/swarm/strategies/strategy-metrics-patch.d.ts.map +0 -1
- package/dist/swarm/strategies/strategy-metrics-patch.js +0 -2
- package/dist/swarm/strategies/strategy-metrics-patch.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 -51
- package/dist/swarm/types.js.map +0 -1
- package/dist/swarm/workers/copy-worker.d.ts +0 -2
- package/dist/swarm/workers/copy-worker.d.ts.map +0 -1
- package/dist/swarm/workers/copy-worker.js +0 -56
- package/dist/swarm/workers/copy-worker.js.map +0 -1
- package/dist/task/commands.d.ts +0 -60
- package/dist/task/commands.d.ts.map +0 -1
- package/dist/task/commands.js +0 -107
- package/dist/task/commands.js.map +0 -1
- package/dist/task/coordination.d.ts +0 -109
- package/dist/task/coordination.d.ts.map +0 -1
- package/dist/task/coordination.js +0 -629
- package/dist/task/coordination.js.map +0 -1
- package/dist/task/engine.d.ts +0 -198
- package/dist/task/engine.d.ts.map +0 -1
- package/dist/task/engine.js +0 -498
- package/dist/task/engine.js.map +0 -1
- package/dist/task/index.d.ts +0 -103
- package/dist/task/index.d.ts.map +0 -1
- package/dist/task/index.js +0 -276
- package/dist/task/index.js.map +0 -1
- package/dist/task/types.d.ts +0 -56
- package/dist/task/types.d.ts.map +0 -1
- package/dist/task/types.js +0 -2
- package/dist/task/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 -20
- package/dist/terminal/adapters/vscode.d.ts.map +0 -1
- package/dist/terminal/adapters/vscode.js +0 -265
- 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 -237
- 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 -205
- 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 -206
- package/dist/terminal/session.js.map +0 -1
- package/dist/types/index.d.ts +0 -28
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js +0 -15
- package/dist/types/index.js.map +0 -1
- package/dist/ui/hive-dashboard.d.ts +0 -140
- package/dist/ui/hive-dashboard.d.ts.map +0 -1
- package/dist/ui/hive-dashboard.js +0 -281
- package/dist/ui/hive-dashboard.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 -131
- package/dist/utils/helpers.d.ts.map +0 -1
- package/dist/utils/helpers.js +0 -447
- package/dist/utils/helpers.js.map +0 -1
- package/dist/utils/paths.d.ts +0 -4
- package/dist/utils/paths.d.ts.map +0 -1
- package/dist/utils/paths.js +0 -39
- package/dist/utils/paths.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 -165
- package/dist/utils/type-guards.js.map +0 -1
- package/dist/utils/types.d.ts +0 -512
- package/dist/utils/types.d.ts.map +0 -1
- package/dist/utils/types.js +0 -37
- package/dist/utils/types.js.map +0 -1
|
@@ -1,857 +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', 'agent_spawn', 'task_orchestrate', 'swarm_status',
|
|
12
|
-
'agent_list', 'agent_metrics', 'swarm_monitor', 'topology_optimize',
|
|
13
|
-
'load_balance', 'coordination_sync', 'swarm_scale', 'swarm_destroy'
|
|
14
|
-
],
|
|
15
|
-
neural: [
|
|
16
|
-
'neural_status', 'neural_train', 'neural_patterns', 'neural_predict',
|
|
17
|
-
'model_load', 'model_save', 'wasm_optimize', 'inference_run',
|
|
18
|
-
'pattern_recognize', 'cognitive_analyze', 'learning_adapt',
|
|
19
|
-
'neural_compress', 'ensemble_create', 'transfer_learn', 'neural_explain'
|
|
20
|
-
],
|
|
21
|
-
memory: [
|
|
22
|
-
'memory_usage', 'memory_search', 'memory_persist', 'memory_namespace',
|
|
23
|
-
'memory_backup', 'memory_restore', 'memory_compress', 'memory_sync',
|
|
24
|
-
'cache_manage', 'state_snapshot', 'context_restore', 'memory_analytics'
|
|
25
|
-
],
|
|
26
|
-
performance: [
|
|
27
|
-
'performance_report', 'bottleneck_analyze', 'token_usage', 'benchmark_run',
|
|
28
|
-
'metrics_collect', 'trend_analysis', 'cost_analysis', 'quality_assess',
|
|
29
|
-
'error_analysis', 'usage_stats', 'health_check'
|
|
30
|
-
],
|
|
31
|
-
github: [
|
|
32
|
-
'github_repo_analyze', 'github_pr_manage', 'github_issue_track',
|
|
33
|
-
'github_release_coord', 'github_workflow_auto', 'github_code_review',
|
|
34
|
-
'github_sync_coord', 'github_metrics'
|
|
35
|
-
],
|
|
36
|
-
workflow: [
|
|
37
|
-
'workflow_create', 'workflow_execute', 'workflow_export', 'automation_setup',
|
|
38
|
-
'pipeline_create', 'scheduler_manage', 'trigger_setup', 'workflow_template',
|
|
39
|
-
'batch_process', 'parallel_execute'
|
|
40
|
-
],
|
|
41
|
-
daa: [
|
|
42
|
-
'daa_agent_create', 'daa_capability_match', 'daa_resource_alloc',
|
|
43
|
-
'daa_lifecycle_manage', 'daa_communication', 'daa_consensus',
|
|
44
|
-
'daa_fault_tolerance', 'daa_optimization'
|
|
45
|
-
],
|
|
46
|
-
system: [
|
|
47
|
-
'terminal_execute', 'config_manage', 'features_detect', 'security_scan',
|
|
48
|
-
'backup_create', 'restore_system', 'log_analysis', 'diagnostic_run'
|
|
49
|
-
],
|
|
50
|
-
sparc: ['sparc_mode'],
|
|
51
|
-
task: ['task_status', 'task_results']
|
|
52
|
-
};
|
|
53
|
-
/**
|
|
54
|
-
* MCPToolWrapper class for unified MCP tool access
|
|
55
|
-
*/
|
|
56
|
-
export class MCPToolWrapper {
|
|
57
|
-
constructor(config = {}) {
|
|
58
|
-
this.config = {
|
|
59
|
-
parallel: true,
|
|
60
|
-
timeout: 60000,
|
|
61
|
-
retryCount: 3,
|
|
62
|
-
...config
|
|
63
|
-
};
|
|
64
|
-
this.toolStats = new Map();
|
|
65
|
-
this.parallelQueue = [];
|
|
66
|
-
this.executing = false;
|
|
67
|
-
/** @type {import('better-sqlite3').Database | null} */
|
|
68
|
-
this.memoryDb = null;
|
|
69
|
-
// Initialize real memory storage
|
|
70
|
-
this.initializeMemoryStorage();
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Initialize real memory storage using SQLite
|
|
74
|
-
*/
|
|
75
|
-
async initializeMemoryStorage() {
|
|
76
|
-
try {
|
|
77
|
-
const Database = (await import('better-sqlite3')).default;
|
|
78
|
-
const path = await import('path');
|
|
79
|
-
const fs = await import('fs');
|
|
80
|
-
// Create .hive-mind directory if it doesn't exist
|
|
81
|
-
const hiveMindDir = path.join(process.cwd(), '.hive-mind');
|
|
82
|
-
if (!fs.existsSync(hiveMindDir)) {
|
|
83
|
-
fs.mkdirSync(hiveMindDir, { recursive: true });
|
|
84
|
-
}
|
|
85
|
-
// Initialize SQLite database
|
|
86
|
-
const dbPath = path.join(hiveMindDir, 'memory.db');
|
|
87
|
-
this.memoryDb = new Database(dbPath);
|
|
88
|
-
// Create memories table
|
|
89
|
-
this.memoryDb.exec(`
|
|
90
|
-
CREATE TABLE IF NOT EXISTS memories (
|
|
91
|
-
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
92
|
-
namespace TEXT NOT NULL,
|
|
93
|
-
key TEXT NOT NULL,
|
|
94
|
-
value TEXT NOT NULL,
|
|
95
|
-
type TEXT DEFAULT 'knowledge',
|
|
96
|
-
timestamp INTEGER NOT NULL,
|
|
97
|
-
created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
|
|
98
|
-
UNIQUE(namespace, key)
|
|
99
|
-
)
|
|
100
|
-
`);
|
|
101
|
-
// Real memory storage initialized with SQLite
|
|
102
|
-
}
|
|
103
|
-
catch (error) {
|
|
104
|
-
console.warn('Failed to initialize SQLite storage, falling back to in-memory:', error.message);
|
|
105
|
-
this.memoryDb = null;
|
|
106
|
-
this.memoryStore = new Map(); // Fallback to in-memory storage
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
/**
|
|
110
|
-
* Execute MCP tool with automatic retry and error handling
|
|
111
|
-
*/
|
|
112
|
-
async executeTool(toolName, params = {}) {
|
|
113
|
-
const startTime = Date.now();
|
|
114
|
-
let lastError = null;
|
|
115
|
-
for (let attempt = 1; attempt <= this.config.retryCount; attempt++) {
|
|
116
|
-
try {
|
|
117
|
-
const result = await this._executeToolInternal(toolName, params);
|
|
118
|
-
// Track statistics
|
|
119
|
-
this._trackToolUsage(toolName, Date.now() - startTime, true);
|
|
120
|
-
return result;
|
|
121
|
-
}
|
|
122
|
-
catch (error) {
|
|
123
|
-
lastError = error;
|
|
124
|
-
console.error(`Attempt ${attempt} failed for ${toolName}:`, error.message);
|
|
125
|
-
if (attempt < this.config.retryCount) {
|
|
126
|
-
// Exponential backoff
|
|
127
|
-
await new Promise(resolve => setTimeout(resolve, Math.pow(2, attempt) * 1000));
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
// Track failure
|
|
132
|
-
this._trackToolUsage(toolName, Date.now() - startTime, false);
|
|
133
|
-
throw new Error(`Failed to execute ${toolName} after ${this.config.retryCount} attempts: ${lastError.message}`);
|
|
134
|
-
}
|
|
135
|
-
/**
|
|
136
|
-
* Execute multiple tools in parallel with optimized batching
|
|
137
|
-
*/
|
|
138
|
-
async executeParallel(toolCalls) {
|
|
139
|
-
if (!this.config.parallel) {
|
|
140
|
-
// Execute sequentially if parallel is disabled
|
|
141
|
-
const results = [];
|
|
142
|
-
for (const call of toolCalls) {
|
|
143
|
-
results.push(await this.executeTool(call.tool, call.params));
|
|
144
|
-
}
|
|
145
|
-
return results;
|
|
146
|
-
}
|
|
147
|
-
if (!Array.isArray(toolCalls) || toolCalls.length === 0) {
|
|
148
|
-
return [];
|
|
149
|
-
}
|
|
150
|
-
const startTime = Date.now();
|
|
151
|
-
// Intelligent concurrency limit based on tool types
|
|
152
|
-
const concurrencyLimit = this._calculateOptimalConcurrency(toolCalls);
|
|
153
|
-
// Group tools by priority and dependency
|
|
154
|
-
const toolGroups = this._groupToolsByPriority(toolCalls);
|
|
155
|
-
const allResults = [];
|
|
156
|
-
try {
|
|
157
|
-
// Execute high-priority tools first
|
|
158
|
-
for (const group of toolGroups) {
|
|
159
|
-
const groupResults = [];
|
|
160
|
-
for (let i = 0; i < group.length; i += concurrencyLimit) {
|
|
161
|
-
const batch = group.slice(i, i + concurrencyLimit);
|
|
162
|
-
// Execute batch with timeout and retry logic
|
|
163
|
-
const batchPromises = batch.map(call => this._executeWithTimeout(call, this.config.timeout));
|
|
164
|
-
const batchResults = await Promise.allSettled(batchPromises);
|
|
165
|
-
// Process results and handle failures
|
|
166
|
-
for (let j = 0; j < batchResults.length; j++) {
|
|
167
|
-
const result = batchResults[j];
|
|
168
|
-
if (result.status === 'fulfilled') {
|
|
169
|
-
groupResults.push(result.value);
|
|
170
|
-
}
|
|
171
|
-
else {
|
|
172
|
-
console.warn(`Tool execution failed: ${batch[j].tool}`, result.reason);
|
|
173
|
-
groupResults.push({ error: result.reason.message, tool: batch[j].tool });
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
allResults.push(...groupResults);
|
|
178
|
-
}
|
|
179
|
-
// Track performance metrics
|
|
180
|
-
const executionTime = Date.now() - startTime;
|
|
181
|
-
this._trackBatchPerformance(toolCalls.length, executionTime, concurrencyLimit);
|
|
182
|
-
return allResults;
|
|
183
|
-
}
|
|
184
|
-
catch (error) {
|
|
185
|
-
console.error('Parallel execution failed:', error);
|
|
186
|
-
throw error;
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
/**
|
|
190
|
-
* Calculate optimal concurrency based on tool types
|
|
191
|
-
*/
|
|
192
|
-
_calculateOptimalConcurrency(toolCalls) {
|
|
193
|
-
const toolTypes = toolCalls.map(call => this._getToolCategory(call.tool));
|
|
194
|
-
const uniqueTypes = new Set(toolTypes);
|
|
195
|
-
// Heavy operations (neural, github) need lower concurrency
|
|
196
|
-
const heavyTypes = ['neural', 'github', 'workflow'];
|
|
197
|
-
const hasHeavyOps = toolTypes.some(type => heavyTypes.includes(type));
|
|
198
|
-
if (hasHeavyOps) {
|
|
199
|
-
return Math.min(3, Math.max(1, Math.floor(toolCalls.length / 2)));
|
|
200
|
-
}
|
|
201
|
-
// Light operations (memory, performance) can handle higher concurrency
|
|
202
|
-
return Math.min(8, Math.max(2, Math.floor(toolCalls.length / 1.5)));
|
|
203
|
-
}
|
|
204
|
-
/**
|
|
205
|
-
* Group tools by execution priority
|
|
206
|
-
*/
|
|
207
|
-
_groupToolsByPriority(toolCalls) {
|
|
208
|
-
const priorities = {
|
|
209
|
-
critical: [], // swarm_init, swarm_destroy
|
|
210
|
-
high: [], // agent_spawn, memory operations
|
|
211
|
-
medium: [], // task operations, monitoring
|
|
212
|
-
low: [] // analytics, reporting
|
|
213
|
-
};
|
|
214
|
-
toolCalls.forEach(call => {
|
|
215
|
-
const category = this._getToolCategory(call.tool);
|
|
216
|
-
const tool = call.tool;
|
|
217
|
-
if (['swarm_init', 'swarm_destroy', 'memory_backup'].includes(tool)) {
|
|
218
|
-
priorities.critical.push(call);
|
|
219
|
-
}
|
|
220
|
-
else if (['agent_spawn', 'memory_usage', 'neural_train'].includes(tool)) {
|
|
221
|
-
priorities.high.push(call);
|
|
222
|
-
}
|
|
223
|
-
else if (category === 'performance' || tool.includes('report')) {
|
|
224
|
-
priorities.low.push(call);
|
|
225
|
-
}
|
|
226
|
-
else {
|
|
227
|
-
priorities.medium.push(call);
|
|
228
|
-
}
|
|
229
|
-
});
|
|
230
|
-
// Return groups in priority order, filtering empty groups
|
|
231
|
-
return [priorities.critical, priorities.high, priorities.medium, priorities.low]
|
|
232
|
-
.filter(group => group.length > 0);
|
|
233
|
-
}
|
|
234
|
-
/**
|
|
235
|
-
* Execute tool with timeout wrapper
|
|
236
|
-
*/
|
|
237
|
-
async _executeWithTimeout(call, timeout) {
|
|
238
|
-
return new Promise((resolve, reject) => {
|
|
239
|
-
const timer = setTimeout(() => {
|
|
240
|
-
reject(new Error(`Tool ${call.tool} timed out after ${timeout}ms`));
|
|
241
|
-
}, timeout);
|
|
242
|
-
this.executeTool(call.tool, call.params)
|
|
243
|
-
.then(result => {
|
|
244
|
-
clearTimeout(timer);
|
|
245
|
-
resolve(result);
|
|
246
|
-
})
|
|
247
|
-
.catch(error => {
|
|
248
|
-
clearTimeout(timer);
|
|
249
|
-
reject(error);
|
|
250
|
-
});
|
|
251
|
-
});
|
|
252
|
-
}
|
|
253
|
-
/**
|
|
254
|
-
* Track batch execution performance
|
|
255
|
-
*/
|
|
256
|
-
_trackBatchPerformance(toolCount, executionTime, concurrency) {
|
|
257
|
-
if (!this.batchStats) {
|
|
258
|
-
this.batchStats = {
|
|
259
|
-
totalBatches: 0,
|
|
260
|
-
totalTools: 0,
|
|
261
|
-
totalTime: 0,
|
|
262
|
-
avgConcurrency: 0,
|
|
263
|
-
avgToolsPerBatch: 0,
|
|
264
|
-
avgTimePerTool: 0
|
|
265
|
-
};
|
|
266
|
-
}
|
|
267
|
-
this.batchStats.totalBatches++;
|
|
268
|
-
this.batchStats.totalTools += toolCount;
|
|
269
|
-
this.batchStats.totalTime += executionTime;
|
|
270
|
-
this.batchStats.avgConcurrency =
|
|
271
|
-
(this.batchStats.avgConcurrency * (this.batchStats.totalBatches - 1) + concurrency) /
|
|
272
|
-
this.batchStats.totalBatches;
|
|
273
|
-
this.batchStats.avgToolsPerBatch = this.batchStats.totalTools / this.batchStats.totalBatches;
|
|
274
|
-
this.batchStats.avgTimePerTool = this.batchStats.totalTime / this.batchStats.totalTools;
|
|
275
|
-
}
|
|
276
|
-
/**
|
|
277
|
-
* Internal tool execution
|
|
278
|
-
*/
|
|
279
|
-
async _executeToolInternal(toolName, params) {
|
|
280
|
-
const toolCategory = this._getToolCategory(toolName);
|
|
281
|
-
if (!toolCategory) {
|
|
282
|
-
throw new Error(`Unknown MCP tool: ${toolName}`);
|
|
283
|
-
}
|
|
284
|
-
// Handle memory operations with real storage
|
|
285
|
-
if (toolName === 'memory_usage') {
|
|
286
|
-
if (params.action === 'store') {
|
|
287
|
-
return await this.storeMemory(params.namespace, params.key, params.value, params.type);
|
|
288
|
-
}
|
|
289
|
-
else if (params.action === 'retrieve') {
|
|
290
|
-
return await this.retrieveMemory(params.namespace, params.key);
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
else if (toolName === 'memory_search') {
|
|
294
|
-
return await this.searchMemory(params.namespace, params.pattern);
|
|
295
|
-
}
|
|
296
|
-
// For other tools, use mock responses
|
|
297
|
-
console.log(`Executing MCP tool: mcp__claude-flow__${toolName} with params:`, params);
|
|
298
|
-
// Simulate async execution for non-memory tools
|
|
299
|
-
await new Promise(resolve => setTimeout(resolve, Math.random() * 500));
|
|
300
|
-
// Mock response based on tool type
|
|
301
|
-
const mockResponse = this._getMockResponse(toolName, params);
|
|
302
|
-
return mockResponse;
|
|
303
|
-
}
|
|
304
|
-
/**
|
|
305
|
-
* Get tool category
|
|
306
|
-
*/
|
|
307
|
-
_getToolCategory(toolName) {
|
|
308
|
-
for (const [category, tools] of Object.entries(MCP_TOOLS)) {
|
|
309
|
-
if (tools.includes(toolName)) {
|
|
310
|
-
return category;
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
return null;
|
|
314
|
-
}
|
|
315
|
-
/**
|
|
316
|
-
* Get mock response for demonstration
|
|
317
|
-
*/
|
|
318
|
-
_getMockResponse(toolName, params) {
|
|
319
|
-
// Mock responses for different tool types
|
|
320
|
-
const mockResponses = {
|
|
321
|
-
swarm_init: {
|
|
322
|
-
swarmId: `swarm-${Date.now()}`,
|
|
323
|
-
topology: params.topology || 'hierarchical',
|
|
324
|
-
status: 'initialized'
|
|
325
|
-
},
|
|
326
|
-
agent_spawn: {
|
|
327
|
-
agentId: `agent-${Date.now()}-${Math.random().toString(36).substring(2, 11)}`,
|
|
328
|
-
type: params.type,
|
|
329
|
-
status: 'active'
|
|
330
|
-
},
|
|
331
|
-
task_orchestrate: {
|
|
332
|
-
taskId: `task-${Date.now()}`,
|
|
333
|
-
status: 'orchestrated',
|
|
334
|
-
strategy: params.strategy || 'parallel'
|
|
335
|
-
},
|
|
336
|
-
memory_usage: {
|
|
337
|
-
action: params.action,
|
|
338
|
-
result: params.action === 'store' ? 'stored' : 'retrieved',
|
|
339
|
-
data: params.value || null
|
|
340
|
-
},
|
|
341
|
-
neural_status: {
|
|
342
|
-
status: 'ready',
|
|
343
|
-
models: 27,
|
|
344
|
-
accuracy: 0.848
|
|
345
|
-
}
|
|
346
|
-
};
|
|
347
|
-
return mockResponses[toolName] || { status: 'success', toolName };
|
|
348
|
-
}
|
|
349
|
-
/**
|
|
350
|
-
* Track tool usage statistics
|
|
351
|
-
*/
|
|
352
|
-
_trackToolUsage(toolName, duration, success) {
|
|
353
|
-
if (!this.toolStats.has(toolName)) {
|
|
354
|
-
this.toolStats.set(toolName, {
|
|
355
|
-
calls: 0,
|
|
356
|
-
successes: 0,
|
|
357
|
-
failures: 0,
|
|
358
|
-
totalDuration: 0,
|
|
359
|
-
avgDuration: 0
|
|
360
|
-
});
|
|
361
|
-
}
|
|
362
|
-
const stats = this.toolStats.get(toolName);
|
|
363
|
-
stats.calls++;
|
|
364
|
-
if (success) {
|
|
365
|
-
stats.successes++;
|
|
366
|
-
}
|
|
367
|
-
else {
|
|
368
|
-
stats.failures++;
|
|
369
|
-
}
|
|
370
|
-
stats.totalDuration += duration;
|
|
371
|
-
stats.avgDuration = stats.totalDuration / stats.calls;
|
|
372
|
-
}
|
|
373
|
-
/**
|
|
374
|
-
* Get comprehensive tool statistics
|
|
375
|
-
*/
|
|
376
|
-
getStatistics() {
|
|
377
|
-
const toolStats = {};
|
|
378
|
-
this.toolStats.forEach((value, key) => {
|
|
379
|
-
toolStats[key] = { ...value };
|
|
380
|
-
});
|
|
381
|
-
return {
|
|
382
|
-
tools: toolStats,
|
|
383
|
-
batch: this.batchStats || {
|
|
384
|
-
totalBatches: 0,
|
|
385
|
-
totalTools: 0,
|
|
386
|
-
totalTime: 0,
|
|
387
|
-
avgConcurrency: 0,
|
|
388
|
-
avgToolsPerBatch: 0,
|
|
389
|
-
avgTimePerTool: 0
|
|
390
|
-
},
|
|
391
|
-
spawn: this.spawnStats || {
|
|
392
|
-
totalSpawns: 0,
|
|
393
|
-
totalAgents: 0,
|
|
394
|
-
totalTime: 0,
|
|
395
|
-
avgTimePerAgent: 0,
|
|
396
|
-
bestTime: 0,
|
|
397
|
-
worstTime: 0
|
|
398
|
-
},
|
|
399
|
-
performance: {
|
|
400
|
-
totalCalls: Array.from(this.toolStats.values()).reduce((sum, stat) => sum + stat.calls, 0),
|
|
401
|
-
successRate: this._calculateOverallSuccessRate(),
|
|
402
|
-
avgLatency: this._calculateAvgLatency(),
|
|
403
|
-
throughput: this._calculateThroughput()
|
|
404
|
-
}
|
|
405
|
-
};
|
|
406
|
-
}
|
|
407
|
-
/**
|
|
408
|
-
* Calculate overall success rate
|
|
409
|
-
*/
|
|
410
|
-
_calculateOverallSuccessRate() {
|
|
411
|
-
const total = Array.from(this.toolStats.values())
|
|
412
|
-
.reduce((sum, stat) => sum + stat.calls, 0);
|
|
413
|
-
const successes = Array.from(this.toolStats.values())
|
|
414
|
-
.reduce((sum, stat) => sum + stat.successes, 0);
|
|
415
|
-
return total > 0 ? (successes / total * 100).toFixed(2) : 100;
|
|
416
|
-
}
|
|
417
|
-
/**
|
|
418
|
-
* Calculate average latency
|
|
419
|
-
*/
|
|
420
|
-
_calculateAvgLatency() {
|
|
421
|
-
const stats = Array.from(this.toolStats.values()).filter(stat => stat.calls > 0);
|
|
422
|
-
if (stats.length === 0)
|
|
423
|
-
return 0;
|
|
424
|
-
const totalLatency = stats.reduce((sum, stat) => sum + stat.avgDuration, 0);
|
|
425
|
-
return (totalLatency / stats.length).toFixed(2);
|
|
426
|
-
}
|
|
427
|
-
/**
|
|
428
|
-
* Calculate throughput (operations per second)
|
|
429
|
-
*/
|
|
430
|
-
_calculateThroughput() {
|
|
431
|
-
const batchStats = this.batchStats;
|
|
432
|
-
if (!batchStats || batchStats.totalTime === 0)
|
|
433
|
-
return 0;
|
|
434
|
-
return (batchStats.totalTools / (batchStats.totalTime / 1000)).toFixed(2);
|
|
435
|
-
}
|
|
436
|
-
/**
|
|
437
|
-
* Create batch of tool calls for parallel execution
|
|
438
|
-
*/
|
|
439
|
-
createBatch(calls) {
|
|
440
|
-
return calls.map(call => ({
|
|
441
|
-
tool: call.tool,
|
|
442
|
-
params: call.params || {}
|
|
443
|
-
}));
|
|
444
|
-
}
|
|
445
|
-
/**
|
|
446
|
-
* Execute swarm initialization sequence with optimization
|
|
447
|
-
*/
|
|
448
|
-
async initializeSwarm(config) {
|
|
449
|
-
const swarmId = config.swarmId || `swarm-${Date.now()}`;
|
|
450
|
-
const startTime = Date.now();
|
|
451
|
-
try {
|
|
452
|
-
// Phase 1: Critical initialization (sequential)
|
|
453
|
-
const criticalOps = [
|
|
454
|
-
{ tool: 'swarm_init', params: {
|
|
455
|
-
topology: config.topology || 'hierarchical',
|
|
456
|
-
maxAgents: config.maxAgents || 8,
|
|
457
|
-
strategy: 'auto',
|
|
458
|
-
swarmId
|
|
459
|
-
} }
|
|
460
|
-
];
|
|
461
|
-
const [swarmInitResult] = await this.executeParallel(criticalOps);
|
|
462
|
-
// Phase 2: Supporting services (parallel)
|
|
463
|
-
const supportingOps = [
|
|
464
|
-
{ tool: 'memory_namespace', params: {
|
|
465
|
-
action: 'create',
|
|
466
|
-
namespace: swarmId,
|
|
467
|
-
maxSize: config.memorySize || 100
|
|
468
|
-
} },
|
|
469
|
-
{ tool: 'neural_status', params: {} },
|
|
470
|
-
{ tool: 'performance_report', params: { format: 'summary' } },
|
|
471
|
-
{ tool: 'features_detect', params: { component: 'swarm' } }
|
|
472
|
-
];
|
|
473
|
-
const supportingResults = await this.executeParallel(supportingOps);
|
|
474
|
-
// Store initialization metadata
|
|
475
|
-
const initTime = Date.now() - startTime;
|
|
476
|
-
await this.storeMemory(swarmId, 'init_performance', {
|
|
477
|
-
initTime,
|
|
478
|
-
topology: config.topology,
|
|
479
|
-
maxAgents: config.maxAgents,
|
|
480
|
-
timestamp: Date.now()
|
|
481
|
-
}, 'metrics');
|
|
482
|
-
return [swarmInitResult, ...supportingResults];
|
|
483
|
-
}
|
|
484
|
-
catch (error) {
|
|
485
|
-
console.error('Swarm initialization failed:', error);
|
|
486
|
-
throw error;
|
|
487
|
-
}
|
|
488
|
-
}
|
|
489
|
-
/**
|
|
490
|
-
* Spawn multiple agents in parallel with optimization
|
|
491
|
-
*/
|
|
492
|
-
async spawnAgents(types, swarmId) {
|
|
493
|
-
if (!Array.isArray(types) || types.length === 0) {
|
|
494
|
-
return [];
|
|
495
|
-
}
|
|
496
|
-
const startTime = Date.now();
|
|
497
|
-
// Optimize agent spawning by grouping similar types
|
|
498
|
-
const groupedTypes = this._groupAgentTypes(types);
|
|
499
|
-
const allResults = [];
|
|
500
|
-
try {
|
|
501
|
-
// Spawn each group in parallel
|
|
502
|
-
for (const group of groupedTypes) {
|
|
503
|
-
const batch = group.map(type => ({
|
|
504
|
-
tool: 'agent_spawn',
|
|
505
|
-
params: {
|
|
506
|
-
type,
|
|
507
|
-
swarmId,
|
|
508
|
-
timestamp: Date.now(),
|
|
509
|
-
batchId: `batch-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`
|
|
510
|
-
}
|
|
511
|
-
}));
|
|
512
|
-
const groupResults = await this.executeParallel(batch);
|
|
513
|
-
allResults.push(...groupResults);
|
|
514
|
-
}
|
|
515
|
-
// Track spawn performance
|
|
516
|
-
const spawnTime = Date.now() - startTime;
|
|
517
|
-
this._trackSpawnPerformance(types.length, spawnTime);
|
|
518
|
-
return allResults;
|
|
519
|
-
}
|
|
520
|
-
catch (error) {
|
|
521
|
-
console.error('Agent spawning failed:', error);
|
|
522
|
-
throw error;
|
|
523
|
-
}
|
|
524
|
-
}
|
|
525
|
-
/**
|
|
526
|
-
* Group agent types for optimized spawning
|
|
527
|
-
*/
|
|
528
|
-
_groupAgentTypes(types) {
|
|
529
|
-
// Group complementary agent types that work well together
|
|
530
|
-
const groups = {
|
|
531
|
-
development: ['coder', 'architect', 'reviewer'],
|
|
532
|
-
analysis: ['researcher', 'analyst', 'optimizer'],
|
|
533
|
-
quality: ['tester', 'documenter'],
|
|
534
|
-
coordination: ['coordinator']
|
|
535
|
-
};
|
|
536
|
-
const result = [];
|
|
537
|
-
const remaining = [...types];
|
|
538
|
-
// Create groups of complementary agents
|
|
539
|
-
Object.values(groups).forEach(groupTypes => {
|
|
540
|
-
const groupAgents = remaining.filter(type => groupTypes.includes(type));
|
|
541
|
-
if (groupAgents.length > 0) {
|
|
542
|
-
result.push(groupAgents);
|
|
543
|
-
groupAgents.forEach(type => {
|
|
544
|
-
const index = remaining.indexOf(type);
|
|
545
|
-
if (index > -1)
|
|
546
|
-
remaining.splice(index, 1);
|
|
547
|
-
});
|
|
548
|
-
}
|
|
549
|
-
});
|
|
550
|
-
// Add remaining agents as individual groups
|
|
551
|
-
remaining.forEach(type => result.push([type]));
|
|
552
|
-
return result;
|
|
553
|
-
}
|
|
554
|
-
/**
|
|
555
|
-
* Track agent spawn performance
|
|
556
|
-
*/
|
|
557
|
-
_trackSpawnPerformance(agentCount, spawnTime) {
|
|
558
|
-
if (!this.spawnStats) {
|
|
559
|
-
this.spawnStats = {
|
|
560
|
-
totalSpawns: 0,
|
|
561
|
-
totalAgents: 0,
|
|
562
|
-
totalTime: 0,
|
|
563
|
-
avgTimePerAgent: 0,
|
|
564
|
-
bestTime: Infinity,
|
|
565
|
-
worstTime: 0
|
|
566
|
-
};
|
|
567
|
-
}
|
|
568
|
-
this.spawnStats.totalSpawns++;
|
|
569
|
-
this.spawnStats.totalAgents += agentCount;
|
|
570
|
-
this.spawnStats.totalTime += spawnTime;
|
|
571
|
-
this.spawnStats.avgTimePerAgent = this.spawnStats.totalTime / this.spawnStats.totalAgents;
|
|
572
|
-
this.spawnStats.bestTime = Math.min(this.spawnStats.bestTime, spawnTime);
|
|
573
|
-
this.spawnStats.worstTime = Math.max(this.spawnStats.worstTime, spawnTime);
|
|
574
|
-
}
|
|
575
|
-
/**
|
|
576
|
-
* Store data in collective memory (REAL IMPLEMENTATION)
|
|
577
|
-
*/
|
|
578
|
-
async storeMemory(swarmId, key, value, type = 'knowledge') {
|
|
579
|
-
try {
|
|
580
|
-
if (!this.memoryDb) {
|
|
581
|
-
await this.initializeMemoryStorage();
|
|
582
|
-
}
|
|
583
|
-
const timestamp = Date.now();
|
|
584
|
-
const valueStr = typeof value === 'string' ? value : JSON.stringify(value);
|
|
585
|
-
if (this.memoryDb) {
|
|
586
|
-
// SQLite storage
|
|
587
|
-
const stmt = this.memoryDb.prepare(`
|
|
588
|
-
INSERT OR REPLACE INTO memories (namespace, key, value, type, timestamp)
|
|
589
|
-
VALUES (?, ?, ?, ?, ?)
|
|
590
|
-
`);
|
|
591
|
-
const result = stmt.run(swarmId, key, valueStr, type, timestamp);
|
|
592
|
-
return {
|
|
593
|
-
success: true,
|
|
594
|
-
action: 'store',
|
|
595
|
-
namespace: swarmId,
|
|
596
|
-
key,
|
|
597
|
-
type,
|
|
598
|
-
timestamp,
|
|
599
|
-
id: result.lastInsertRowid
|
|
600
|
-
};
|
|
601
|
-
}
|
|
602
|
-
else {
|
|
603
|
-
// Fallback in-memory storage
|
|
604
|
-
const memoryKey = `${swarmId}:${key}`;
|
|
605
|
-
this.memoryStore.set(memoryKey, {
|
|
606
|
-
namespace: swarmId,
|
|
607
|
-
key,
|
|
608
|
-
value: valueStr,
|
|
609
|
-
type,
|
|
610
|
-
timestamp
|
|
611
|
-
});
|
|
612
|
-
return {
|
|
613
|
-
success: true,
|
|
614
|
-
action: 'store',
|
|
615
|
-
namespace: swarmId,
|
|
616
|
-
key,
|
|
617
|
-
type,
|
|
618
|
-
timestamp
|
|
619
|
-
};
|
|
620
|
-
}
|
|
621
|
-
}
|
|
622
|
-
catch (error) {
|
|
623
|
-
console.error('Error storing memory:', error);
|
|
624
|
-
throw error;
|
|
625
|
-
}
|
|
626
|
-
}
|
|
627
|
-
/**
|
|
628
|
-
* Retrieve data from collective memory (REAL IMPLEMENTATION)
|
|
629
|
-
*/
|
|
630
|
-
async retrieveMemory(swarmId, key) {
|
|
631
|
-
try {
|
|
632
|
-
if (!this.memoryDb) {
|
|
633
|
-
await this.initializeMemoryStorage();
|
|
634
|
-
}
|
|
635
|
-
if (this.memoryDb) {
|
|
636
|
-
// SQLite retrieval
|
|
637
|
-
const stmt = this.memoryDb.prepare(`
|
|
638
|
-
SELECT * FROM memories WHERE namespace = ? AND key = ?
|
|
639
|
-
`);
|
|
640
|
-
const row = stmt.get(swarmId, key);
|
|
641
|
-
if (row) {
|
|
642
|
-
try {
|
|
643
|
-
return {
|
|
644
|
-
...row,
|
|
645
|
-
value: JSON.parse(row.value)
|
|
646
|
-
};
|
|
647
|
-
}
|
|
648
|
-
catch {
|
|
649
|
-
return row;
|
|
650
|
-
}
|
|
651
|
-
}
|
|
652
|
-
}
|
|
653
|
-
else {
|
|
654
|
-
// Fallback in-memory retrieval
|
|
655
|
-
const memoryKey = `${swarmId}:${key}`;
|
|
656
|
-
const memory = this.memoryStore.get(memoryKey);
|
|
657
|
-
if (memory) {
|
|
658
|
-
try {
|
|
659
|
-
return {
|
|
660
|
-
...memory,
|
|
661
|
-
value: JSON.parse(memory.value)
|
|
662
|
-
};
|
|
663
|
-
}
|
|
664
|
-
catch {
|
|
665
|
-
return memory;
|
|
666
|
-
}
|
|
667
|
-
}
|
|
668
|
-
}
|
|
669
|
-
return null;
|
|
670
|
-
}
|
|
671
|
-
catch (error) {
|
|
672
|
-
console.error('Error retrieving memory:', error);
|
|
673
|
-
throw error;
|
|
674
|
-
}
|
|
675
|
-
}
|
|
676
|
-
/**
|
|
677
|
-
* Search collective memory (REAL IMPLEMENTATION)
|
|
678
|
-
*/
|
|
679
|
-
async searchMemory(swarmId, pattern) {
|
|
680
|
-
try {
|
|
681
|
-
if (!this.memoryDb) {
|
|
682
|
-
await this.initializeMemoryStorage();
|
|
683
|
-
}
|
|
684
|
-
let results = [];
|
|
685
|
-
if (this.memoryDb) {
|
|
686
|
-
// SQLite search
|
|
687
|
-
let query, params;
|
|
688
|
-
if (pattern && pattern.trim()) {
|
|
689
|
-
// Search with pattern
|
|
690
|
-
query = `
|
|
691
|
-
SELECT * FROM memories
|
|
692
|
-
WHERE namespace = ? AND (key LIKE ? OR value LIKE ? OR type LIKE ?)
|
|
693
|
-
ORDER BY timestamp DESC
|
|
694
|
-
LIMIT 50
|
|
695
|
-
`;
|
|
696
|
-
const searchPattern = `%${pattern}%`;
|
|
697
|
-
params = [swarmId, searchPattern, searchPattern, searchPattern];
|
|
698
|
-
}
|
|
699
|
-
else {
|
|
700
|
-
// Get all memories for namespace
|
|
701
|
-
query = `
|
|
702
|
-
SELECT * FROM memories
|
|
703
|
-
WHERE namespace = ?
|
|
704
|
-
ORDER BY timestamp DESC
|
|
705
|
-
LIMIT 50
|
|
706
|
-
`;
|
|
707
|
-
params = [swarmId];
|
|
708
|
-
}
|
|
709
|
-
const stmt = this.memoryDb.prepare(query);
|
|
710
|
-
results = stmt.all(...params);
|
|
711
|
-
// Parse JSON values where possible
|
|
712
|
-
results = results.map(row => {
|
|
713
|
-
try {
|
|
714
|
-
return {
|
|
715
|
-
...row,
|
|
716
|
-
value: JSON.parse(row.value)
|
|
717
|
-
};
|
|
718
|
-
}
|
|
719
|
-
catch {
|
|
720
|
-
return row;
|
|
721
|
-
}
|
|
722
|
-
});
|
|
723
|
-
}
|
|
724
|
-
else {
|
|
725
|
-
// Fallback in-memory search
|
|
726
|
-
for (const [memKey, memory] of this.memoryStore) {
|
|
727
|
-
if (memory.namespace === swarmId) {
|
|
728
|
-
if (!pattern ||
|
|
729
|
-
memory.key.includes(pattern) ||
|
|
730
|
-
memory.value.includes(pattern) ||
|
|
731
|
-
memory.type.includes(pattern)) {
|
|
732
|
-
try {
|
|
733
|
-
results.push({
|
|
734
|
-
...memory,
|
|
735
|
-
value: JSON.parse(memory.value)
|
|
736
|
-
});
|
|
737
|
-
}
|
|
738
|
-
catch {
|
|
739
|
-
results.push(memory);
|
|
740
|
-
}
|
|
741
|
-
}
|
|
742
|
-
}
|
|
743
|
-
}
|
|
744
|
-
// Sort by timestamp descending
|
|
745
|
-
results.sort((a, b) => b.timestamp - a.timestamp);
|
|
746
|
-
results = results.slice(0, 50);
|
|
747
|
-
}
|
|
748
|
-
return {
|
|
749
|
-
success: true,
|
|
750
|
-
namespace: swarmId,
|
|
751
|
-
pattern: pattern || '',
|
|
752
|
-
total: results.length,
|
|
753
|
-
results: results
|
|
754
|
-
};
|
|
755
|
-
}
|
|
756
|
-
catch (error) {
|
|
757
|
-
console.error('Error searching memory:', error);
|
|
758
|
-
throw error;
|
|
759
|
-
}
|
|
760
|
-
}
|
|
761
|
-
/**
|
|
762
|
-
* Orchestrate task with monitoring and optimization
|
|
763
|
-
*/
|
|
764
|
-
async orchestrateTask(task, strategy = 'parallel', metadata = {}) {
|
|
765
|
-
const taskId = metadata.taskId || `task-${Date.now()}`;
|
|
766
|
-
const complexity = metadata.complexity || 'medium';
|
|
767
|
-
// Adjust monitoring frequency based on task complexity
|
|
768
|
-
const monitoringInterval = {
|
|
769
|
-
low: 10000,
|
|
770
|
-
medium: 5000,
|
|
771
|
-
high: 2000
|
|
772
|
-
}[complexity] || 5000;
|
|
773
|
-
const batch = [
|
|
774
|
-
{ tool: 'task_orchestrate', params: {
|
|
775
|
-
task,
|
|
776
|
-
strategy,
|
|
777
|
-
taskId,
|
|
778
|
-
priority: metadata.priority || 5,
|
|
779
|
-
estimatedDuration: metadata.estimatedDuration || 30000
|
|
780
|
-
} },
|
|
781
|
-
{ tool: 'swarm_monitor', params: {
|
|
782
|
-
interval: monitoringInterval,
|
|
783
|
-
taskId,
|
|
784
|
-
metrics: ['performance', 'progress', 'bottlenecks']
|
|
785
|
-
} },
|
|
786
|
-
// Add performance tracking for high-priority tasks
|
|
787
|
-
...(metadata.priority > 7 ? [{
|
|
788
|
-
tool: 'performance_report',
|
|
789
|
-
params: { format: 'detailed', taskId }
|
|
790
|
-
}] : [])
|
|
791
|
-
];
|
|
792
|
-
return await this.executeParallel(batch);
|
|
793
|
-
}
|
|
794
|
-
/**
|
|
795
|
-
* Analyze performance bottlenecks
|
|
796
|
-
*/
|
|
797
|
-
async analyzePerformance(swarmId) {
|
|
798
|
-
const batch = [
|
|
799
|
-
{ tool: 'bottleneck_analyze', params: { component: swarmId } },
|
|
800
|
-
{ tool: 'performance_report', params: { format: 'detailed' } },
|
|
801
|
-
{ tool: 'token_usage', params: { operation: swarmId } }
|
|
802
|
-
];
|
|
803
|
-
return await this.executeParallel(batch);
|
|
804
|
-
}
|
|
805
|
-
/**
|
|
806
|
-
* GitHub integration for code operations
|
|
807
|
-
*/
|
|
808
|
-
async githubOperations(repo, operation, params = {}) {
|
|
809
|
-
const githubTools = {
|
|
810
|
-
analyze: 'github_repo_analyze',
|
|
811
|
-
pr: 'github_pr_manage',
|
|
812
|
-
issue: 'github_issue_track',
|
|
813
|
-
review: 'github_code_review'
|
|
814
|
-
};
|
|
815
|
-
const tool = githubTools[operation];
|
|
816
|
-
if (!tool) {
|
|
817
|
-
throw new Error(`Unknown GitHub operation: ${operation}`);
|
|
818
|
-
}
|
|
819
|
-
return await this.executeTool(tool, { repo, ...params });
|
|
820
|
-
}
|
|
821
|
-
/**
|
|
822
|
-
* Neural network operations
|
|
823
|
-
*/
|
|
824
|
-
async neuralOperation(operation, params = {}) {
|
|
825
|
-
const neuralTools = {
|
|
826
|
-
train: 'neural_train',
|
|
827
|
-
predict: 'neural_predict',
|
|
828
|
-
analyze: 'neural_patterns',
|
|
829
|
-
optimize: 'wasm_optimize'
|
|
830
|
-
};
|
|
831
|
-
const tool = neuralTools[operation];
|
|
832
|
-
if (!tool) {
|
|
833
|
-
throw new Error(`Unknown neural operation: ${operation}`);
|
|
834
|
-
}
|
|
835
|
-
return await this.executeTool(tool, params);
|
|
836
|
-
}
|
|
837
|
-
/**
|
|
838
|
-
* Clean up and destroy swarm
|
|
839
|
-
*/
|
|
840
|
-
async destroySwarm(swarmId) {
|
|
841
|
-
const batch = [
|
|
842
|
-
{ tool: 'swarm_destroy', params: { swarmId } },
|
|
843
|
-
{ tool: 'memory_namespace', params: {
|
|
844
|
-
action: 'delete',
|
|
845
|
-
namespace: swarmId
|
|
846
|
-
} },
|
|
847
|
-
{ tool: 'cache_manage', params: {
|
|
848
|
-
action: 'clear',
|
|
849
|
-
key: `swarm-${swarmId}`
|
|
850
|
-
} }
|
|
851
|
-
];
|
|
852
|
-
return await this.executeParallel(batch);
|
|
853
|
-
}
|
|
854
|
-
}
|
|
855
|
-
// Export tool categories for reference
|
|
856
|
-
export { MCP_TOOLS };
|
|
857
|
-
//# sourceMappingURL=mcp-wrapper.js.map
|