claude-flow 2.0.0-alpha.61 → 2.0.0-alpha.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +59 -1
- package/bin/claude-flow +1 -1
- package/dist/adapters/cliffy-node.d.ts.map +1 -1
- package/dist/adapters/cliffy-node.js +13 -7
- package/dist/adapters/cliffy-node.js.map +1 -1
- package/dist/agents/agent-manager.d.ts.map +1 -1
- package/dist/agents/agent-manager.js +77 -65
- package/dist/agents/agent-manager.js.map +1 -1
- package/dist/agents/agent-registry.d.ts.map +1 -1
- package/dist/agents/agent-registry.js +38 -30
- package/dist/agents/agent-registry.js.map +1 -1
- package/dist/api/claude-client.d.ts.map +1 -1
- package/dist/api/claude-client.js +22 -16
- package/dist/api/claude-client.js.map +1 -1
- package/dist/cli/agents/analyst.d.ts.map +1 -1
- package/dist/cli/agents/analyst.js +94 -114
- package/dist/cli/agents/analyst.js.map +1 -1
- package/dist/cli/agents/architect.d.ts.map +1 -1
- package/dist/cli/agents/architect.js +100 -114
- package/dist/cli/agents/architect.js.map +1 -1
- package/dist/cli/agents/base-agent.d.ts.map +1 -1
- package/dist/cli/agents/base-agent.js +27 -27
- package/dist/cli/agents/base-agent.js.map +1 -1
- package/dist/cli/agents/capabilities.d.ts.map +1 -1
- package/dist/cli/agents/capabilities.js +49 -51
- package/dist/cli/agents/capabilities.js.map +1 -1
- package/dist/cli/agents/coder.d.ts.map +1 -1
- package/dist/cli/agents/coder.js +92 -98
- package/dist/cli/agents/coder.js.map +1 -1
- package/dist/cli/agents/coordinator.d.ts.map +1 -1
- package/dist/cli/agents/coordinator.js +59 -64
- package/dist/cli/agents/coordinator.js.map +1 -1
- package/dist/cli/agents/hive-agents.d.ts.map +1 -1
- package/dist/cli/agents/hive-agents.js +22 -24
- package/dist/cli/agents/hive-agents.js.map +1 -1
- package/dist/cli/agents/index.d.ts.map +1 -1
- package/dist/cli/agents/index.js +17 -17
- package/dist/cli/agents/index.js.map +1 -1
- package/dist/cli/agents/researcher.d.ts.map +1 -1
- package/dist/cli/agents/researcher.js +41 -61
- package/dist/cli/agents/researcher.js.map +1 -1
- package/dist/cli/agents/tester.d.ts.map +1 -1
- package/dist/cli/agents/tester.js +78 -90
- package/dist/cli/agents/tester.js.map +1 -1
- package/dist/cli/cli-core.d.ts +4 -1
- package/dist/cli/cli-core.d.ts.map +1 -1
- package/dist/cli/cli-core.js +40 -39
- package/dist/cli/cli-core.js.map +1 -1
- package/dist/cli/command-registry.d.ts.map +1 -1
- package/dist/cli/command-registry.js +55 -64
- package/dist/cli/command-registry.js.map +1 -1
- package/dist/cli/commands/advanced-memory-commands.d.ts.map +1 -1
- package/dist/cli/commands/advanced-memory-commands.js +49 -40
- package/dist/cli/commands/advanced-memory-commands.js.map +1 -1
- package/dist/cli/commands/agent-simple.d.ts +3 -0
- package/dist/cli/commands/agent-simple.d.ts.map +1 -1
- package/dist/cli/commands/agent-simple.js +30 -27
- package/dist/cli/commands/agent-simple.js.map +1 -1
- package/dist/cli/commands/agent.d.ts.map +1 -1
- package/dist/cli/commands/agent.js +53 -40
- package/dist/cli/commands/agent.js.map +1 -1
- package/dist/cli/commands/claude-api.js +4 -4
- package/dist/cli/commands/claude-api.js.map +1 -1
- package/dist/cli/commands/claude.d.ts.map +1 -1
- package/dist/cli/commands/claude.js +2 -2
- package/dist/cli/commands/claude.js.map +1 -1
- package/dist/cli/commands/config-integration.d.ts +7 -1
- package/dist/cli/commands/config-integration.d.ts.map +1 -1
- package/dist/cli/commands/config-integration.js +18 -9
- package/dist/cli/commands/config-integration.js.map +1 -1
- package/dist/cli/commands/config.d.ts.map +1 -1
- package/dist/cli/commands/config.js +2 -3
- package/dist/cli/commands/config.js.map +1 -1
- package/dist/cli/commands/enterprise.d.ts.map +1 -1
- package/dist/cli/commands/enterprise.js +115 -95
- package/dist/cli/commands/enterprise.js.map +1 -1
- package/dist/cli/commands/help-new.js +49 -49
- package/dist/cli/commands/help-new.js.map +1 -1
- package/dist/cli/commands/help.d.ts.map +1 -1
- package/dist/cli/commands/help.js +122 -125
- package/dist/cli/commands/help.js.map +1 -1
- package/dist/cli/commands/hive-mind/index.d.ts +1 -1
- package/dist/cli/commands/hive-mind/index.d.ts.map +1 -1
- package/dist/cli/commands/hive-mind/index.js +1 -1
- package/dist/cli/commands/hive-mind/index.js.map +1 -1
- package/dist/cli/commands/hive-mind/init.d.ts.map +1 -1
- package/dist/cli/commands/hive-mind/init.js.map +1 -1
- package/dist/cli/commands/hive-mind/optimize-memory.d.ts.map +1 -1
- package/dist/cli/commands/hive-mind/optimize-memory.js +35 -26
- package/dist/cli/commands/hive-mind/optimize-memory.js.map +1 -1
- package/dist/cli/commands/hive-mind/pause.d.ts.map +1 -1
- package/dist/cli/commands/hive-mind/pause.js +8 -6
- package/dist/cli/commands/hive-mind/pause.js.map +1 -1
- package/dist/cli/commands/hive-mind/ps.d.ts.map +1 -1
- package/dist/cli/commands/hive-mind/ps.js +17 -12
- package/dist/cli/commands/hive-mind/ps.js.map +1 -1
- package/dist/cli/commands/hive-mind/resume.js +12 -10
- package/dist/cli/commands/hive-mind/resume.js.map +1 -1
- package/dist/cli/commands/hive-mind/spawn.d.ts.map +1 -1
- package/dist/cli/commands/hive-mind/spawn.js +20 -11
- package/dist/cli/commands/hive-mind/spawn.js.map +1 -1
- package/dist/cli/commands/hive-mind/status.js +17 -22
- package/dist/cli/commands/hive-mind/status.js.map +1 -1
- package/dist/cli/commands/hive-mind/stop.d.ts.map +1 -1
- package/dist/cli/commands/hive-mind/stop.js +23 -15
- package/dist/cli/commands/hive-mind/stop.js.map +1 -1
- package/dist/cli/commands/hive-mind/task.d.ts.map +1 -1
- package/dist/cli/commands/hive-mind/task.js +25 -19
- package/dist/cli/commands/hive-mind/task.js.map +1 -1
- package/dist/cli/commands/hive-mind/wizard.d.ts.map +1 -1
- package/dist/cli/commands/hive-mind/wizard.js +86 -68
- package/dist/cli/commands/hive-mind/wizard.js.map +1 -1
- package/dist/cli/commands/hive.js +73 -38
- package/dist/cli/commands/hive.js.map +1 -1
- package/dist/cli/commands/hook-validator.d.ts.map +1 -1
- package/dist/cli/commands/hook-validator.js +4 -2
- package/dist/cli/commands/hook-validator.js.map +1 -1
- package/dist/cli/commands/hook.d.ts.map +1 -1
- package/dist/cli/commands/hook.js +8 -8
- package/dist/cli/commands/hook.js.map +1 -1
- package/dist/cli/commands/index.d.ts +1 -1
- package/dist/cli/commands/index.d.ts.map +1 -1
- package/dist/cli/commands/index.js +850 -784
- package/dist/cli/commands/index.js.map +1 -1
- package/dist/cli/commands/mcp.d.ts.map +1 -1
- package/dist/cli/commands/mcp.js +8 -16
- package/dist/cli/commands/mcp.js.map +1 -1
- package/dist/cli/commands/memory.d.ts.map +1 -1
- package/dist/cli/commands/memory.js +8 -8
- package/dist/cli/commands/memory.js.map +1 -1
- package/dist/cli/commands/migrate.d.ts.map +1 -1
- package/dist/cli/commands/migrate.js +3 -3
- package/dist/cli/commands/migrate.js.map +1 -1
- package/dist/cli/commands/monitor.d.ts.map +1 -1
- package/dist/cli/commands/monitor.js +50 -34
- package/dist/cli/commands/monitor.js.map +1 -1
- package/dist/cli/commands/ruv-swarm.d.ts +7 -1
- package/dist/cli/commands/ruv-swarm.d.ts.map +1 -1
- package/dist/cli/commands/ruv-swarm.js +6 -6
- package/dist/cli/commands/ruv-swarm.js.map +1 -1
- package/dist/cli/commands/session.d.ts.map +1 -1
- package/dist/cli/commands/session.js +22 -17
- package/dist/cli/commands/session.js.map +1 -1
- package/dist/cli/commands/sparc.d.ts +1 -1
- package/dist/cli/commands/sparc.d.ts.map +1 -1
- package/dist/cli/commands/sparc.js +146 -126
- package/dist/cli/commands/sparc.js.map +1 -1
- package/dist/cli/commands/start/event-emitter.js +1 -1
- package/dist/cli/commands/start/event-emitter.js.map +1 -1
- package/dist/cli/commands/start/process-manager.d.ts.map +1 -1
- package/dist/cli/commands/start/process-manager.js +20 -18
- package/dist/cli/commands/start/process-manager.js.map +1 -1
- package/dist/cli/commands/start/process-ui-simple.d.ts +4 -0
- package/dist/cli/commands/start/process-ui-simple.d.ts.map +1 -1
- package/dist/cli/commands/start/process-ui-simple.js +2 -2
- package/dist/cli/commands/start/process-ui-simple.js.map +1 -1
- package/dist/cli/commands/start/start-command.d.ts.map +1 -1
- package/dist/cli/commands/start/start-command.js +27 -15
- package/dist/cli/commands/start/start-command.js.map +1 -1
- package/dist/cli/commands/start/system-monitor.d.ts +3 -0
- package/dist/cli/commands/start/system-monitor.d.ts.map +1 -1
- package/dist/cli/commands/start/system-monitor.js +16 -18
- package/dist/cli/commands/start/system-monitor.js.map +1 -1
- package/dist/cli/commands/status.d.ts.map +1 -1
- package/dist/cli/commands/status.js +28 -33
- package/dist/cli/commands/status.js.map +1 -1
- package/dist/cli/commands/swarm-spawn.d.ts.map +1 -1
- package/dist/cli/commands/swarm-spawn.js +1 -1
- package/dist/cli/commands/swarm-spawn.js.map +1 -1
- package/dist/cli/commands/swarm.d.ts +4 -1
- package/dist/cli/commands/swarm.d.ts.map +1 -1
- package/dist/cli/commands/swarm.js +23 -18
- package/dist/cli/commands/swarm.js.map +1 -1
- package/dist/cli/commands/task.d.ts.map +1 -1
- package/dist/cli/commands/task.js.map +1 -1
- package/dist/cli/commands/workflow.d.ts.map +1 -1
- package/dist/cli/commands/workflow.js +49 -45
- package/dist/cli/commands/workflow.js.map +1 -1
- package/dist/cli/completion.d.ts +3 -0
- package/dist/cli/completion.d.ts.map +1 -1
- package/dist/cli/completion.js +15 -5
- package/dist/cli/completion.js.map +1 -1
- package/dist/cli/formatter.d.ts +3 -0
- package/dist/cli/formatter.d.ts.map +1 -1
- package/dist/cli/formatter.js +3 -3
- package/dist/cli/formatter.js.map +1 -1
- package/dist/cli/help-formatter.d.ts.map +1 -1
- package/dist/cli/help-formatter.js +8 -14
- package/dist/cli/help-formatter.js.map +1 -1
- package/dist/cli/index-remote.d.ts +4 -0
- package/dist/cli/index-remote.d.ts.map +1 -1
- package/dist/cli/index-remote.js +1 -1
- package/dist/cli/index-remote.js.map +1 -1
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +32 -34
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/init/batch-tools.d.ts.map +1 -1
- package/dist/cli/init/batch-tools.js.map +1 -1
- package/dist/cli/init/claude-config.d.ts.map +1 -1
- package/dist/cli/init/claude-config.js +111 -106
- package/dist/cli/init/claude-config.js.map +1 -1
- package/dist/cli/init/directory-structure.d.ts.map +1 -1
- package/dist/cli/init/directory-structure.js +3 -3
- package/dist/cli/init/directory-structure.js.map +1 -1
- package/dist/cli/init/index.d.ts.map +1 -1
- package/dist/cli/init/index.js +1 -1
- package/dist/cli/init/index.js.map +1 -1
- package/dist/cli/init/sparc-environment.d.ts.map +1 -1
- package/dist/cli/init/sparc-environment.js +69 -69
- package/dist/cli/init/sparc-environment.js.map +1 -1
- package/dist/cli/init/swarm-commands.d.ts.map +1 -1
- package/dist/cli/init/swarm-commands.js +1 -1
- package/dist/cli/init/swarm-commands.js.map +1 -1
- package/dist/cli/main.d.ts +3 -0
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/main.js +6 -6
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/node-compat.d.ts.map +1 -1
- package/dist/cli/node-compat.js +24 -18
- package/dist/cli/node-compat.js.map +1 -1
- package/dist/cli/node-repl.d.ts +4 -0
- package/dist/cli/node-repl.d.ts.map +1 -1
- package/dist/cli/node-repl.js +24 -30
- package/dist/cli/node-repl.js.map +1 -1
- package/dist/cli/repl.d.ts.map +1 -1
- package/dist/cli/repl.js +81 -70
- package/dist/cli/repl.js.map +1 -1
- package/dist/cli/runtime-detector.d.ts.map +1 -1
- package/dist/cli/runtime-detector.js +11 -7
- package/dist/cli/runtime-detector.js.map +1 -1
- package/dist/cli/simple-cli.d.ts +4 -0
- package/dist/cli/simple-cli.d.ts.map +1 -1
- package/dist/cli/simple-cli.js +109 -95
- package/dist/cli/simple-cli.js.map +1 -1
- package/dist/cli/simple-commands/analysis.d.ts.map +1 -1
- package/dist/cli/simple-commands/analysis.js +18 -11
- package/dist/cli/simple-commands/analysis.js.map +1 -1
- package/dist/cli/simple-commands/automation.js +32 -17
- package/dist/cli/simple-commands/automation.js.map +1 -1
- package/dist/cli/simple-commands/batch-manager.js +44 -39
- package/dist/cli/simple-commands/batch-manager.js.map +1 -1
- package/dist/cli/simple-commands/config.d.ts.map +1 -1
- package/dist/cli/simple-commands/config.js +22 -21
- package/dist/cli/simple-commands/config.js.map +1 -1
- package/dist/cli/simple-commands/coordination.d.ts.map +1 -1
- package/dist/cli/simple-commands/coordination.js +12 -12
- package/dist/cli/simple-commands/coordination.js.map +1 -1
- package/dist/cli/simple-commands/fix-hook-variables.d.ts.map +1 -1
- package/dist/cli/simple-commands/fix-hook-variables.js +36 -30
- package/dist/cli/simple-commands/fix-hook-variables.js.map +1 -1
- package/dist/cli/simple-commands/github.d.ts.map +1 -1
- package/dist/cli/simple-commands/github.js +15 -15
- package/dist/cli/simple-commands/github.js.map +1 -1
- package/dist/cli/simple-commands/hive-mind/auto-save-middleware.d.ts.map +1 -1
- package/dist/cli/simple-commands/hive-mind/auto-save-middleware.js +12 -10
- package/dist/cli/simple-commands/hive-mind/auto-save-middleware.js.map +1 -1
- package/dist/cli/simple-commands/hive-mind/communication.d.ts.map +1 -1
- package/dist/cli/simple-commands/hive-mind/communication.js +42 -45
- package/dist/cli/simple-commands/hive-mind/communication.js.map +1 -1
- package/dist/cli/simple-commands/hive-mind/core.d.ts.map +1 -1
- package/dist/cli/simple-commands/hive-mind/core.js +97 -89
- package/dist/cli/simple-commands/hive-mind/core.js.map +1 -1
- package/dist/cli/simple-commands/hive-mind/db-optimizer.d.ts.map +1 -1
- package/dist/cli/simple-commands/hive-mind/db-optimizer.js +114 -59
- package/dist/cli/simple-commands/hive-mind/db-optimizer.js.map +1 -1
- package/dist/cli/simple-commands/hive-mind/mcp-wrapper.d.ts.map +1 -1
- package/dist/cli/simple-commands/hive-mind/mcp-wrapper.js +182 -103
- package/dist/cli/simple-commands/hive-mind/mcp-wrapper.js.map +1 -1
- package/dist/cli/simple-commands/hive-mind/memory.d.ts.map +1 -1
- package/dist/cli/simple-commands/hive-mind/memory.js +105 -75
- package/dist/cli/simple-commands/hive-mind/memory.js.map +1 -1
- package/dist/cli/simple-commands/hive-mind/performance-optimizer.d.ts.map +1 -1
- package/dist/cli/simple-commands/hive-mind/performance-optimizer.js +45 -43
- package/dist/cli/simple-commands/hive-mind/performance-optimizer.js.map +1 -1
- package/dist/cli/simple-commands/hive-mind/queen.d.ts.map +1 -1
- package/dist/cli/simple-commands/hive-mind/queen.js +101 -88
- package/dist/cli/simple-commands/hive-mind/queen.js.map +1 -1
- package/dist/cli/simple-commands/hive-mind/session-manager.js +75 -53
- package/dist/cli/simple-commands/hive-mind/session-manager.js.map +1 -1
- package/dist/cli/simple-commands/hive-mind-optimize.js +18 -18
- package/dist/cli/simple-commands/hive-mind-optimize.js.map +1 -1
- package/dist/cli/simple-commands/hive-mind.d.ts.map +1 -1
- package/dist/cli/simple-commands/hive-mind.js +195 -135
- package/dist/cli/simple-commands/hive-mind.js.map +1 -1
- package/dist/cli/simple-commands/hook-safety.d.ts.map +1 -1
- package/dist/cli/simple-commands/hook-safety.js +19 -19
- package/dist/cli/simple-commands/hook-safety.js.map +1 -1
- package/dist/cli/simple-commands/hooks.d.ts.map +1 -1
- package/dist/cli/simple-commands/hooks.js +85 -71
- package/dist/cli/simple-commands/hooks.js.map +1 -1
- package/dist/cli/simple-commands/init/batch-init.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/batch-init.js +62 -55
- package/dist/cli/simple-commands/init/batch-init.js.map +1 -1
- package/dist/cli/simple-commands/init/claude-commands/optimized-slash-commands.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/claude-commands/optimized-slash-commands.js +2 -2
- package/dist/cli/simple-commands/init/claude-commands/optimized-slash-commands.js.map +1 -1
- package/dist/cli/simple-commands/init/claude-commands/optimized-sparc-commands.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/claude-commands/optimized-sparc-commands.js +58 -50
- package/dist/cli/simple-commands/init/claude-commands/optimized-sparc-commands.js.map +1 -1
- package/dist/cli/simple-commands/init/claude-commands/slash-commands.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/claude-commands/slash-commands.js.map +1 -1
- package/dist/cli/simple-commands/init/claude-commands/sparc-commands.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/claude-commands/sparc-commands.js +34 -28
- package/dist/cli/simple-commands/init/claude-commands/sparc-commands.js.map +1 -1
- package/dist/cli/simple-commands/init/executable-wrapper.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/executable-wrapper.js +7 -4
- package/dist/cli/simple-commands/init/executable-wrapper.js.map +1 -1
- package/dist/cli/simple-commands/init/gitignore-updater.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/gitignore-updater.js +10 -9
- package/dist/cli/simple-commands/init/gitignore-updater.js.map +1 -1
- package/dist/cli/simple-commands/init/help.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/help.js.map +1 -1
- package/dist/cli/simple-commands/init/index.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/index.js +159 -103
- package/dist/cli/simple-commands/init/index.js.map +1 -1
- package/dist/cli/simple-commands/init/performance-monitor.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/performance-monitor.js +17 -18
- package/dist/cli/simple-commands/init/performance-monitor.js.map +1 -1
- package/dist/cli/simple-commands/init/rollback/backup-manager.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/rollback/backup-manager.js +19 -25
- package/dist/cli/simple-commands/init/rollback/backup-manager.js.map +1 -1
- package/dist/cli/simple-commands/init/rollback/index.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/rollback/index.js +18 -15
- package/dist/cli/simple-commands/init/rollback/index.js.map +1 -1
- package/dist/cli/simple-commands/init/rollback/recovery-manager.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/rollback/recovery-manager.js +49 -68
- package/dist/cli/simple-commands/init/rollback/recovery-manager.js.map +1 -1
- package/dist/cli/simple-commands/init/rollback/rollback-executor.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/rollback/rollback-executor.js +16 -24
- package/dist/cli/simple-commands/init/rollback/rollback-executor.js.map +1 -1
- package/dist/cli/simple-commands/init/rollback/state-tracker.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/rollback/state-tracker.js +25 -25
- package/dist/cli/simple-commands/init/rollback/state-tracker.js.map +1 -1
- package/dist/cli/simple-commands/init/sparc/roomodes-config.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/sparc/roomodes-config.js +57 -57
- package/dist/cli/simple-commands/init/sparc/roomodes-config.js.map +1 -1
- package/dist/cli/simple-commands/init/sparc/workflows.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/sparc/workflows.js +21 -21
- package/dist/cli/simple-commands/init/sparc/workflows.js.map +1 -1
- package/dist/cli/simple-commands/init/sparc-structure.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/sparc-structure.js +1 -1
- package/dist/cli/simple-commands/init/sparc-structure.js.map +1 -1
- package/dist/cli/simple-commands/init/templates/enhanced-templates.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/templates/enhanced-templates.js +69 -78
- package/dist/cli/simple-commands/init/templates/enhanced-templates.js.map +1 -1
- package/dist/cli/simple-commands/init/templates/sparc-modes.js +2 -2
- package/dist/cli/simple-commands/init/validation/config-validator.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/validation/config-validator.js +12 -16
- package/dist/cli/simple-commands/init/validation/config-validator.js.map +1 -1
- package/dist/cli/simple-commands/init/validation/health-checker.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/validation/health-checker.js +39 -41
- package/dist/cli/simple-commands/init/validation/health-checker.js.map +1 -1
- package/dist/cli/simple-commands/init/validation/index.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/validation/index.js +8 -8
- package/dist/cli/simple-commands/init/validation/index.js.map +1 -1
- package/dist/cli/simple-commands/init/validation/mode-validator.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/validation/mode-validator.js +12 -12
- package/dist/cli/simple-commands/init/validation/mode-validator.js.map +1 -1
- package/dist/cli/simple-commands/init/validation/post-init-validator.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/validation/post-init-validator.js +13 -13
- package/dist/cli/simple-commands/init/validation/post-init-validator.js.map +1 -1
- package/dist/cli/simple-commands/init/validation/pre-init-validator.d.ts.map +1 -1
- package/dist/cli/simple-commands/init/validation/pre-init-validator.js +19 -24
- package/dist/cli/simple-commands/init/validation/pre-init-validator.js.map +1 -1
- package/dist/cli/simple-commands/mcp.js +2 -2
- package/dist/cli/simple-commands/mcp.js.map +1 -1
- package/dist/cli/simple-commands/memory.js +4 -4
- package/dist/cli/simple-commands/memory.js.map +1 -1
- package/dist/cli/simple-commands/migrate-hooks.d.ts.map +1 -1
- package/dist/cli/simple-commands/migrate-hooks.js +3 -3
- package/dist/cli/simple-commands/migrate-hooks.js.map +1 -1
- package/dist/cli/simple-commands/monitor.d.ts.map +1 -1
- package/dist/cli/simple-commands/monitor.js +34 -26
- package/dist/cli/simple-commands/monitor.js.map +1 -1
- package/dist/cli/simple-commands/process-ui-enhanced.d.ts.map +1 -1
- package/dist/cli/simple-commands/process-ui-enhanced.js +53 -39
- package/dist/cli/simple-commands/process-ui-enhanced.js.map +1 -1
- package/dist/cli/simple-commands/sparc-modes/index.js +11 -11
- package/dist/cli/simple-commands/sparc-modes/index.js.map +1 -1
- package/dist/cli/simple-commands/sparc-modes/swarm.js +50 -50
- package/dist/cli/simple-commands/sparc.d.ts.map +1 -1
- package/dist/cli/simple-commands/sparc.js +21 -11
- package/dist/cli/simple-commands/sparc.js.map +1 -1
- package/dist/cli/simple-commands/start-ui.d.ts.map +1 -1
- package/dist/cli/simple-commands/start-ui.js +5 -3
- package/dist/cli/simple-commands/start-ui.js.map +1 -1
- package/dist/cli/simple-commands/start-wrapper.d.ts.map +1 -1
- package/dist/cli/simple-commands/start-wrapper.js +1 -1
- package/dist/cli/simple-commands/start-wrapper.js.map +1 -1
- package/dist/cli/simple-commands/status.js +14 -14
- package/dist/cli/simple-commands/status.js.map +1 -1
- package/dist/cli/simple-commands/swarm-executor.d.ts.map +1 -1
- package/dist/cli/simple-commands/swarm-executor.js +19 -19
- package/dist/cli/simple-commands/swarm-executor.js.map +1 -1
- package/dist/cli/simple-commands/swarm-metrics-integration.d.ts.map +1 -1
- package/dist/cli/simple-commands/swarm-metrics-integration.js +30 -21
- package/dist/cli/simple-commands/swarm-metrics-integration.js.map +1 -1
- package/dist/cli/simple-commands/swarm-webui-integration.d.ts.map +1 -1
- package/dist/cli/simple-commands/swarm-webui-integration.js +30 -18
- package/dist/cli/simple-commands/swarm-webui-integration.js.map +1 -1
- package/dist/cli/simple-commands/swarm.d.ts.map +1 -1
- package/dist/cli/simple-commands/swarm.js +78 -67
- package/dist/cli/simple-commands/swarm.js.map +1 -1
- package/dist/cli/simple-commands/training.d.ts.map +1 -1
- package/dist/cli/simple-commands/training.js +7 -7
- package/dist/cli/simple-commands/training.js.map +1 -1
- package/dist/cli/simple-commands/web-server.d.ts.map +1 -1
- package/dist/cli/simple-commands/web-server.js +68 -66
- package/dist/cli/simple-commands/web-server.js.map +1 -1
- package/dist/cli/simple-mcp.d.ts.map +1 -1
- package/dist/cli/simple-mcp.js +2 -4
- package/dist/cli/simple-mcp.js.map +1 -1
- package/dist/cli/simple-orchestrator.d.ts +3 -0
- package/dist/cli/simple-orchestrator.d.ts.map +1 -1
- package/dist/cli/simple-orchestrator.js +36 -35
- package/dist/cli/simple-orchestrator.js.map +1 -1
- package/dist/cli/ui/compatible-ui.d.ts +4 -0
- package/dist/cli/ui/compatible-ui.d.ts.map +1 -1
- package/dist/cli/ui/compatible-ui.js +9 -8
- package/dist/cli/ui/compatible-ui.js.map +1 -1
- package/dist/cli/ui/fallback-handler.d.ts.map +1 -1
- package/dist/cli/ui/fallback-handler.js +4 -4
- package/dist/cli/ui/fallback-handler.js.map +1 -1
- package/dist/cli/ui/index.d.ts +2 -2
- package/dist/cli/ui/index.d.ts.map +1 -1
- package/dist/cli/ui/index.js +3 -3
- package/dist/cli/ui/index.js.map +1 -1
- package/dist/cli/utils/environment-detector.d.ts.map +1 -1
- package/dist/cli/utils/environment-detector.js +13 -11
- package/dist/cli/utils/environment-detector.js.map +1 -1
- package/dist/cli/utils/interactive-detector.d.ts.map +1 -1
- package/dist/cli/utils/interactive-detector.js +1 -1
- package/dist/cli/utils/interactive-detector.js.map +1 -1
- package/dist/cli/utils/prompt-defaults.d.ts.map +1 -1
- package/dist/cli/utils/prompt-defaults.js +6 -7
- package/dist/cli/utils/prompt-defaults.js.map +1 -1
- package/dist/cli/utils/safe-interactive.d.ts.map +1 -1
- package/dist/cli/utils/safe-interactive.js +7 -6
- package/dist/cli/utils/safe-interactive.js.map +1 -1
- package/dist/cli/utils.d.ts.map +1 -1
- package/dist/cli/utils.js +58 -50
- package/dist/cli/utils.js.map +1 -1
- package/dist/cli/validation-helper.d.ts.map +1 -1
- package/dist/cli/validation-helper.js.map +1 -1
- package/dist/communication/message-bus.d.ts.map +1 -1
- package/dist/communication/message-bus.js +80 -74
- package/dist/communication/message-bus.js.map +1 -1
- package/dist/config/config-manager.d.ts +3 -0
- package/dist/config/config-manager.d.ts.map +1 -1
- package/dist/config/config-manager.js +23 -6
- package/dist/config/config-manager.js.map +1 -1
- package/dist/config/ruv-swarm-config.d.ts +6 -0
- package/dist/config/ruv-swarm-config.d.ts.map +1 -1
- package/dist/config/ruv-swarm-config.js +37 -22
- package/dist/config/ruv-swarm-config.js.map +1 -1
- package/dist/config/ruv-swarm-integration.d.ts.map +1 -1
- package/dist/config/ruv-swarm-integration.js +21 -21
- package/dist/config/ruv-swarm-integration.js.map +1 -1
- package/dist/constants/agent-types.d.ts +4 -4
- package/dist/constants/agent-types.d.ts.map +1 -1
- package/dist/constants/agent-types.js +4 -4
- package/dist/constants/agent-types.js.map +1 -1
- package/dist/coordination/advanced-scheduler.d.ts.map +1 -1
- package/dist/coordination/advanced-scheduler.js +6 -10
- package/dist/coordination/advanced-scheduler.js.map +1 -1
- package/dist/coordination/advanced-task-executor.d.ts.map +1 -1
- package/dist/coordination/advanced-task-executor.js +33 -33
- package/dist/coordination/advanced-task-executor.js.map +1 -1
- package/dist/coordination/background-executor.d.ts.map +1 -1
- package/dist/coordination/background-executor.js +17 -16
- package/dist/coordination/background-executor.js.map +1 -1
- package/dist/coordination/circuit-breaker.d.ts.map +1 -1
- package/dist/coordination/circuit-breaker.js +3 -0
- package/dist/coordination/circuit-breaker.js.map +1 -1
- package/dist/coordination/conflict-resolution.d.ts.map +1 -1
- package/dist/coordination/conflict-resolution.js +10 -8
- package/dist/coordination/conflict-resolution.js.map +1 -1
- package/dist/coordination/dependency-graph.d.ts.map +1 -1
- package/dist/coordination/dependency-graph.js +4 -3
- package/dist/coordination/dependency-graph.js.map +1 -1
- package/dist/coordination/hive-orchestrator.d.ts.map +1 -1
- package/dist/coordination/hive-orchestrator.js +29 -25
- package/dist/coordination/hive-orchestrator.js.map +1 -1
- package/dist/coordination/hive-protocol.d.ts.map +1 -1
- package/dist/coordination/hive-protocol.js +22 -23
- package/dist/coordination/hive-protocol.js.map +1 -1
- package/dist/coordination/index.d.ts +1 -1
- package/dist/coordination/index.d.ts.map +1 -1
- package/dist/coordination/index.js +1 -1
- package/dist/coordination/index.js.map +1 -1
- package/dist/coordination/load-balancer.d.ts.map +1 -1
- package/dist/coordination/load-balancer.js +55 -56
- package/dist/coordination/load-balancer.js.map +1 -1
- package/dist/coordination/manager.d.ts.map +1 -1
- package/dist/coordination/manager.js +2 -8
- package/dist/coordination/manager.js.map +1 -1
- package/dist/coordination/messaging.d.ts.map +1 -1
- package/dist/coordination/messaging.js +4 -4
- package/dist/coordination/messaging.js.map +1 -1
- package/dist/coordination/metrics.d.ts.map +1 -1
- package/dist/coordination/metrics.js +11 -9
- package/dist/coordination/metrics.js.map +1 -1
- package/dist/coordination/resources.d.ts.map +1 -1
- package/dist/coordination/resources.js +10 -6
- package/dist/coordination/resources.js.map +1 -1
- package/dist/coordination/scheduler.d.ts.map +1 -1
- package/dist/coordination/scheduler.js +4 -4
- package/dist/coordination/scheduler.js.map +1 -1
- package/dist/coordination/swarm-coordinator.d.ts.map +1 -1
- package/dist/coordination/swarm-coordinator.js +32 -34
- package/dist/coordination/swarm-coordinator.js.map +1 -1
- package/dist/coordination/swarm-monitor.d.ts.map +1 -1
- package/dist/coordination/swarm-monitor.js +17 -17
- package/dist/coordination/swarm-monitor.js.map +1 -1
- package/dist/coordination/work-stealing.d.ts.map +1 -1
- package/dist/coordination/work-stealing.js +3 -0
- package/dist/coordination/work-stealing.js.map +1 -1
- package/dist/core/config.d.ts +4 -0
- package/dist/core/config.d.ts.map +1 -1
- package/dist/core/config.js +28 -31
- package/dist/core/config.js.map +1 -1
- package/dist/core/event-bus.d.ts +3 -0
- package/dist/core/event-bus.d.ts.map +1 -1
- package/dist/core/event-bus.js.map +1 -1
- package/dist/core/json-persistence.d.ts +3 -0
- package/dist/core/json-persistence.d.ts.map +1 -1
- package/dist/core/json-persistence.js +19 -23
- package/dist/core/json-persistence.js.map +1 -1
- package/dist/core/logger.d.ts +3 -0
- package/dist/core/logger.d.ts.map +1 -1
- package/dist/core/logger.js +2 -6
- package/dist/core/logger.js.map +1 -1
- package/dist/core/orchestrator-fixed.d.ts.map +1 -1
- package/dist/core/orchestrator-fixed.js +4 -1
- package/dist/core/orchestrator-fixed.js.map +1 -1
- package/dist/core/orchestrator.d.ts.map +1 -1
- package/dist/core/orchestrator.js +66 -33
- package/dist/core/orchestrator.js.map +1 -1
- package/dist/core/persistence.d.ts +3 -0
- package/dist/core/persistence.d.ts.map +1 -1
- package/dist/core/persistence.js +25 -19
- package/dist/core/persistence.js.map +1 -1
- package/dist/enterprise/analytics-manager.d.ts.map +1 -1
- package/dist/enterprise/analytics-manager.js +141 -134
- package/dist/enterprise/analytics-manager.js.map +1 -1
- package/dist/enterprise/audit-manager.d.ts.map +1 -1
- package/dist/enterprise/audit-manager.js +144 -122
- package/dist/enterprise/audit-manager.js.map +1 -1
- package/dist/enterprise/cloud-manager.d.ts.map +1 -1
- package/dist/enterprise/cloud-manager.js +104 -99
- package/dist/enterprise/cloud-manager.js.map +1 -1
- package/dist/enterprise/deployment-manager.d.ts.map +1 -1
- package/dist/enterprise/deployment-manager.js +104 -97
- package/dist/enterprise/deployment-manager.js.map +1 -1
- package/dist/enterprise/index.d.ts +6 -6
- package/dist/enterprise/index.d.ts.map +1 -1
- package/dist/enterprise/project-manager.d.ts.map +1 -1
- package/dist/enterprise/project-manager.js +74 -66
- package/dist/enterprise/project-manager.js.map +1 -1
- package/dist/enterprise/security-manager.d.ts.map +1 -1
- package/dist/enterprise/security-manager.js +137 -129
- package/dist/enterprise/security-manager.js.map +1 -1
- package/dist/hive-mind/core/Agent.d.ts.map +1 -1
- package/dist/hive-mind/core/Agent.js +36 -36
- package/dist/hive-mind/core/Agent.js.map +1 -1
- package/dist/hive-mind/core/Communication.d.ts.map +1 -1
- package/dist/hive-mind/core/Communication.js +17 -17
- package/dist/hive-mind/core/Communication.js.map +1 -1
- package/dist/hive-mind/core/DatabaseManager.d.ts.map +1 -1
- package/dist/hive-mind/core/DatabaseManager.js +104 -58
- package/dist/hive-mind/core/DatabaseManager.js.map +1 -1
- package/dist/hive-mind/core/HiveMind.d.ts.map +1 -1
- package/dist/hive-mind/core/HiveMind.js +35 -35
- package/dist/hive-mind/core/HiveMind.js.map +1 -1
- package/dist/hive-mind/core/Memory.d.ts.map +1 -1
- package/dist/hive-mind/core/Memory.js +78 -71
- package/dist/hive-mind/core/Memory.js.map +1 -1
- package/dist/hive-mind/core/MemoryMonitor.d.ts.map +1 -1
- package/dist/hive-mind/core/MemoryMonitor.js +38 -38
- package/dist/hive-mind/core/MemoryMonitor.js.map +1 -1
- package/dist/hive-mind/core/Queen.d.ts.map +1 -1
- package/dist/hive-mind/core/Queen.js +110 -47
- package/dist/hive-mind/core/Queen.js.map +1 -1
- package/dist/hive-mind/integration/ConsensusEngine.d.ts.map +1 -1
- package/dist/hive-mind/integration/ConsensusEngine.js +25 -23
- package/dist/hive-mind/integration/ConsensusEngine.js.map +1 -1
- package/dist/hive-mind/integration/MCPToolWrapper.d.ts.map +1 -1
- package/dist/hive-mind/integration/MCPToolWrapper.js.map +1 -1
- package/dist/hive-mind/integration/SwarmOrchestrator.d.ts.map +1 -1
- package/dist/hive-mind/integration/SwarmOrchestrator.js +60 -58
- package/dist/hive-mind/integration/SwarmOrchestrator.js.map +1 -1
- package/dist/hive-mind/types.d.ts.map +1 -1
- package/dist/integration/mock-components.d.ts.map +1 -1
- package/dist/integration/mock-components.js +21 -21
- package/dist/integration/mock-components.js.map +1 -1
- package/dist/integration/system-integration.d.ts.map +1 -1
- package/dist/integration/system-integration.js +13 -11
- package/dist/integration/system-integration.js.map +1 -1
- package/dist/mcp/auth.d.ts +1 -1
- package/dist/mcp/auth.d.ts.map +1 -1
- package/dist/mcp/auth.js +8 -1
- package/dist/mcp/auth.js.map +1 -1
- package/dist/mcp/claude-code-wrapper.d.ts.map +1 -1
- package/dist/mcp/claude-code-wrapper.js +169 -68
- package/dist/mcp/claude-code-wrapper.js.map +1 -1
- package/dist/mcp/claude-flow-tools.d.ts.map +1 -1
- package/dist/mcp/claude-flow-tools.js +42 -3
- package/dist/mcp/claude-flow-tools.js.map +1 -1
- package/dist/mcp/client.d.ts.map +1 -1
- package/dist/mcp/client.js.map +1 -1
- package/dist/mcp/index.d.ts +6 -6
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js +9 -9
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/integrate-wrapper.d.ts.map +1 -1
- package/dist/mcp/integrate-wrapper.js +5 -7
- package/dist/mcp/integrate-wrapper.js.map +1 -1
- package/dist/mcp/lifecycle-manager.d.ts.map +1 -1
- package/dist/mcp/lifecycle-manager.js +8 -7
- package/dist/mcp/lifecycle-manager.js.map +1 -1
- package/dist/mcp/load-balancer.d.ts.map +1 -1
- package/dist/mcp/load-balancer.js +5 -1
- package/dist/mcp/load-balancer.js.map +1 -1
- package/dist/mcp/orchestration-integration.d.ts.map +1 -1
- package/dist/mcp/orchestration-integration.js +22 -9
- package/dist/mcp/orchestration-integration.js.map +1 -1
- package/dist/mcp/performance-monitor.d.ts.map +1 -1
- package/dist/mcp/performance-monitor.js +22 -19
- package/dist/mcp/performance-monitor.js.map +1 -1
- package/dist/mcp/protocol-manager.d.ts.map +1 -1
- package/dist/mcp/protocol-manager.js +8 -19
- package/dist/mcp/protocol-manager.js.map +1 -1
- package/dist/mcp/recovery/connection-health-monitor.d.ts.map +1 -1
- package/dist/mcp/recovery/connection-health-monitor.js +5 -5
- package/dist/mcp/recovery/connection-health-monitor.js.map +1 -1
- package/dist/mcp/recovery/connection-state-manager.d.ts +4 -0
- package/dist/mcp/recovery/connection-state-manager.d.ts.map +1 -1
- package/dist/mcp/recovery/connection-state-manager.js +13 -13
- package/dist/mcp/recovery/connection-state-manager.js.map +1 -1
- package/dist/mcp/recovery/fallback-coordinator.d.ts.map +1 -1
- package/dist/mcp/recovery/fallback-coordinator.js +5 -5
- package/dist/mcp/recovery/fallback-coordinator.js.map +1 -1
- package/dist/mcp/recovery/index.d.ts +4 -4
- package/dist/mcp/recovery/index.d.ts.map +1 -1
- package/dist/mcp/recovery/index.js +4 -4
- package/dist/mcp/recovery/index.js.map +1 -1
- package/dist/mcp/recovery/reconnection-manager.d.ts.map +1 -1
- package/dist/mcp/recovery/reconnection-manager.js +1 -1
- package/dist/mcp/recovery/reconnection-manager.js.map +1 -1
- package/dist/mcp/recovery/recovery-manager.d.ts.map +1 -1
- package/dist/mcp/recovery/recovery-manager.js +2 -4
- package/dist/mcp/recovery/recovery-manager.js.map +1 -1
- package/dist/mcp/router.d.ts.map +1 -1
- package/dist/mcp/router.js +3 -0
- package/dist/mcp/router.js.map +1 -1
- package/dist/mcp/ruv-swarm-tools.d.ts.map +1 -1
- package/dist/mcp/ruv-swarm-tools.js +132 -102
- package/dist/mcp/ruv-swarm-tools.js.map +1 -1
- package/dist/mcp/server-with-wrapper.d.ts +3 -0
- package/dist/mcp/server-with-wrapper.d.ts.map +1 -1
- package/dist/mcp/server-with-wrapper.js +2 -3
- package/dist/mcp/server-with-wrapper.js.map +1 -1
- package/dist/mcp/server-wrapper-mode.d.ts +5 -0
- package/dist/mcp/server-wrapper-mode.d.ts.map +1 -1
- package/dist/mcp/server-wrapper-mode.js +2 -3
- package/dist/mcp/server-wrapper-mode.js.map +1 -1
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +12 -7
- package/dist/mcp/server.js.map +1 -1
- package/dist/mcp/session-manager.d.ts.map +1 -1
- package/dist/mcp/session-manager.js +4 -3
- package/dist/mcp/session-manager.js.map +1 -1
- package/dist/mcp/sparc-modes.d.ts.map +1 -1
- package/dist/mcp/sparc-modes.js +15 -15
- package/dist/mcp/sparc-modes.js.map +1 -1
- package/dist/mcp/swarm-tools.d.ts.map +1 -1
- package/dist/mcp/swarm-tools.js +100 -80
- package/dist/mcp/swarm-tools.js.map +1 -1
- package/dist/mcp/tools.d.ts.map +1 -1
- package/dist/mcp/tools.js +28 -12
- package/dist/mcp/tools.js.map +1 -1
- package/dist/mcp/transports/base.d.ts.map +1 -1
- package/dist/mcp/transports/base.js +3 -0
- package/dist/mcp/transports/base.js.map +1 -1
- package/dist/mcp/transports/http.d.ts +3 -0
- package/dist/mcp/transports/http.d.ts.map +1 -1
- package/dist/mcp/transports/http.js +3 -3
- package/dist/mcp/transports/http.js.map +1 -1
- package/dist/mcp/transports/stdio.d.ts +3 -0
- package/dist/mcp/transports/stdio.d.ts.map +1 -1
- package/dist/mcp/transports/stdio.js +3 -0
- package/dist/mcp/transports/stdio.js.map +1 -1
- package/dist/memory/advanced-memory-manager.d.ts.map +1 -1
- package/dist/memory/advanced-memory-manager.js +109 -100
- package/dist/memory/advanced-memory-manager.js.map +1 -1
- package/dist/memory/backends/base.d.ts.map +1 -1
- package/dist/memory/backends/base.js +3 -0
- package/dist/memory/backends/base.js.map +1 -1
- package/dist/memory/backends/markdown.d.ts +3 -0
- package/dist/memory/backends/markdown.d.ts.map +1 -1
- package/dist/memory/backends/markdown.js +8 -8
- package/dist/memory/backends/markdown.js.map +1 -1
- package/dist/memory/backends/sqlite.d.ts +3 -0
- package/dist/memory/backends/sqlite.d.ts.map +1 -1
- package/dist/memory/backends/sqlite.js +6 -2
- package/dist/memory/backends/sqlite.js.map +1 -1
- package/dist/memory/cache.d.ts.map +1 -1
- package/dist/memory/cache.js +5 -3
- package/dist/memory/cache.js.map +1 -1
- package/dist/memory/distributed-memory.d.ts.map +1 -1
- package/dist/memory/distributed-memory.js +27 -28
- package/dist/memory/distributed-memory.js.map +1 -1
- package/dist/memory/fallback-store.d.ts.map +1 -1
- package/dist/memory/fallback-store.js.map +1 -1
- package/dist/memory/in-memory-store.d.ts.map +1 -1
- package/dist/memory/in-memory-store.js +8 -8
- package/dist/memory/in-memory-store.js.map +1 -1
- package/dist/memory/indexer.d.ts.map +1 -1
- package/dist/memory/indexer.js +4 -1
- package/dist/memory/indexer.js.map +1 -1
- package/dist/memory/manager.d.ts.map +1 -1
- package/dist/memory/manager.js +17 -20
- package/dist/memory/manager.js.map +1 -1
- package/dist/memory/sqlite-store.js +12 -8
- package/dist/memory/sqlite-store.js.map +1 -1
- package/dist/memory/swarm-memory.d.ts.map +1 -1
- package/dist/memory/swarm-memory.js +37 -44
- package/dist/memory/swarm-memory.js.map +1 -1
- package/dist/migration/index.d.ts +4 -0
- package/dist/migration/index.d.ts.map +1 -1
- package/dist/migration/index.js +8 -8
- package/dist/migration/index.js.map +1 -1
- package/dist/migration/logger.d.ts.map +1 -1
- package/dist/migration/logger.js +5 -5
- package/dist/migration/logger.js.map +1 -1
- package/dist/migration/migration-analyzer.d.ts +3 -0
- package/dist/migration/migration-analyzer.d.ts.map +1 -1
- package/dist/migration/migration-analyzer.js +25 -20
- package/dist/migration/migration-analyzer.js.map +1 -1
- package/dist/migration/migration-runner.d.ts.map +1 -1
- package/dist/migration/migration-runner.js +35 -29
- package/dist/migration/migration-runner.js.map +1 -1
- package/dist/migration/migration-validator.d.ts +3 -0
- package/dist/migration/migration-validator.d.ts.map +1 -1
- package/dist/migration/migration-validator.js +22 -26
- package/dist/migration/migration-validator.js.map +1 -1
- package/dist/migration/progress-reporter.d.ts +3 -0
- package/dist/migration/progress-reporter.d.ts.map +1 -1
- package/dist/migration/progress-reporter.js +8 -8
- package/dist/migration/progress-reporter.js.map +1 -1
- package/dist/migration/rollback-manager.d.ts +3 -0
- package/dist/migration/rollback-manager.d.ts.map +1 -1
- package/dist/migration/rollback-manager.js +29 -26
- package/dist/migration/rollback-manager.js.map +1 -1
- package/dist/monitoring/diagnostics.d.ts.map +1 -1
- package/dist/monitoring/diagnostics.js +49 -37
- package/dist/monitoring/diagnostics.js.map +1 -1
- package/dist/monitoring/health-check.d.ts.map +1 -1
- package/dist/monitoring/health-check.js +24 -25
- package/dist/monitoring/health-check.js.map +1 -1
- package/dist/monitoring/real-time-monitor.d.ts.map +1 -1
- package/dist/monitoring/real-time-monitor.js +71 -58
- package/dist/monitoring/real-time-monitor.js.map +1 -1
- package/dist/resources/resource-manager.d.ts.map +1 -1
- package/dist/resources/resource-manager.js +96 -83
- package/dist/resources/resource-manager.js.map +1 -1
- package/dist/swarm/claude-flow-executor.d.ts.map +1 -1
- package/dist/swarm/claude-flow-executor.js +37 -31
- package/dist/swarm/claude-flow-executor.js.map +1 -1
- package/dist/swarm/coordinator.d.ts.map +1 -1
- package/dist/swarm/coordinator.js +330 -280
- package/dist/swarm/coordinator.js.map +1 -1
- package/dist/swarm/direct-executor.d.ts.map +1 -1
- package/dist/swarm/direct-executor.js +44 -37
- package/dist/swarm/direct-executor.js.map +1 -1
- package/dist/swarm/executor-v2.d.ts.map +1 -1
- package/dist/swarm/executor-v2.js +28 -27
- package/dist/swarm/executor-v2.js.map +1 -1
- package/dist/swarm/executor.d.ts +3 -0
- package/dist/swarm/executor.d.ts.map +1 -1
- package/dist/swarm/executor.js +58 -52
- package/dist/swarm/executor.js.map +1 -1
- package/dist/swarm/index.d.ts.map +1 -1
- package/dist/swarm/index.js +2 -2
- package/dist/swarm/index.js.map +1 -1
- package/dist/swarm/json-output-aggregator.d.ts.map +1 -1
- package/dist/swarm/json-output-aggregator.js +20 -19
- package/dist/swarm/json-output-aggregator.js.map +1 -1
- package/dist/swarm/memory.d.ts.map +1 -1
- package/dist/swarm/memory.js +67 -67
- package/dist/swarm/memory.js.map +1 -1
- package/dist/swarm/optimizations/async-file-manager.d.ts +4 -0
- package/dist/swarm/optimizations/async-file-manager.d.ts.map +1 -1
- package/dist/swarm/optimizations/async-file-manager.js +19 -23
- package/dist/swarm/optimizations/async-file-manager.js.map +1 -1
- package/dist/swarm/optimizations/circular-buffer.d.ts.map +1 -1
- package/dist/swarm/optimizations/circular-buffer.js +2 -4
- package/dist/swarm/optimizations/circular-buffer.js.map +1 -1
- package/dist/swarm/optimizations/connection-pool.d.ts.map +1 -1
- package/dist/swarm/optimizations/connection-pool.js +12 -13
- package/dist/swarm/optimizations/connection-pool.js.map +1 -1
- package/dist/swarm/optimizations/index.js +2 -2
- package/dist/swarm/optimizations/optimized-executor.d.ts.map +1 -1
- package/dist/swarm/optimizations/optimized-executor.js +23 -29
- package/dist/swarm/optimizations/optimized-executor.js.map +1 -1
- package/dist/swarm/optimizations/ttl-map.d.ts.map +1 -1
- package/dist/swarm/optimizations/ttl-map.js +4 -4
- package/dist/swarm/optimizations/ttl-map.js.map +1 -1
- package/dist/swarm/prompt-cli.d.ts.map +1 -1
- package/dist/swarm/prompt-cli.js +18 -13
- package/dist/swarm/prompt-cli.js.map +1 -1
- package/dist/swarm/prompt-copier-enhanced.d.ts.map +1 -1
- package/dist/swarm/prompt-copier-enhanced.js +12 -12
- package/dist/swarm/prompt-copier-enhanced.js.map +1 -1
- package/dist/swarm/prompt-copier.d.ts.map +1 -1
- package/dist/swarm/prompt-copier.js +15 -18
- package/dist/swarm/prompt-copier.js.map +1 -1
- package/dist/swarm/prompt-manager.d.ts.map +1 -1
- package/dist/swarm/prompt-manager.js +27 -21
- package/dist/swarm/prompt-manager.js.map +1 -1
- package/dist/swarm/prompt-utils.d.ts.map +1 -1
- package/dist/swarm/prompt-utils.js +34 -32
- package/dist/swarm/prompt-utils.js.map +1 -1
- package/dist/swarm/sparc-executor.d.ts.map +1 -1
- package/dist/swarm/sparc-executor.js +189 -123
- package/dist/swarm/sparc-executor.js.map +1 -1
- package/dist/swarm/strategies/auto.d.ts.map +1 -1
- package/dist/swarm/strategies/auto.js +105 -86
- package/dist/swarm/strategies/auto.js.map +1 -1
- package/dist/swarm/strategies/base.d.ts.map +1 -1
- package/dist/swarm/strategies/base.js +14 -11
- package/dist/swarm/strategies/base.js.map +1 -1
- package/dist/swarm/strategies/research.d.ts.map +1 -1
- package/dist/swarm/strategies/research.js +76 -71
- package/dist/swarm/strategies/research.js.map +1 -1
- package/dist/swarm/types.d.ts.map +1 -1
- package/dist/swarm/types.js +3 -0
- package/dist/swarm/types.js.map +1 -1
- package/dist/swarm/workers/copy-worker.js +4 -4
- package/dist/swarm/workers/copy-worker.js.map +1 -1
- package/dist/task/commands.d.ts.map +1 -1
- package/dist/task/commands.js +11 -7
- package/dist/task/commands.js.map +1 -1
- package/dist/task/coordination.d.ts.map +1 -1
- package/dist/task/coordination.js +75 -70
- package/dist/task/coordination.js.map +1 -1
- package/dist/task/engine.d.ts.map +1 -1
- package/dist/task/engine.js +34 -32
- package/dist/task/engine.js.map +1 -1
- package/dist/task/index.d.ts +3 -3
- package/dist/task/index.d.ts.map +1 -1
- package/dist/task/index.js +11 -11
- package/dist/task/index.js.map +1 -1
- package/dist/terminal/adapters/native.d.ts.map +1 -1
- package/dist/terminal/adapters/native.js +6 -6
- package/dist/terminal/adapters/native.js.map +1 -1
- package/dist/terminal/adapters/vscode.d.ts +3 -0
- package/dist/terminal/adapters/vscode.d.ts.map +1 -1
- package/dist/terminal/adapters/vscode.js +6 -4
- package/dist/terminal/adapters/vscode.js.map +1 -1
- package/dist/terminal/manager.d.ts.map +1 -1
- package/dist/terminal/manager.js +6 -8
- package/dist/terminal/manager.js.map +1 -1
- package/dist/terminal/pool.d.ts.map +1 -1
- package/dist/terminal/pool.js +3 -0
- package/dist/terminal/pool.js.map +1 -1
- package/dist/terminal/session.d.ts.map +1 -1
- package/dist/terminal/session.js +6 -2
- package/dist/terminal/session.js.map +1 -1
- package/dist/ui/hive-dashboard.d.ts.map +1 -1
- package/dist/ui/hive-dashboard.js +52 -33
- package/dist/ui/hive-dashboard.js.map +1 -1
- package/dist/utils/error-handler.d.ts.map +1 -1
- package/dist/utils/error-handler.js +1 -1
- package/dist/utils/error-handler.js.map +1 -1
- package/dist/utils/errors.d.ts.map +1 -1
- package/dist/utils/errors.js.map +1 -1
- package/dist/utils/helpers.d.ts +3 -0
- package/dist/utils/helpers.d.ts.map +1 -1
- package/dist/utils/helpers.js +5 -8
- package/dist/utils/helpers.js.map +1 -1
- package/dist/utils/npx-isolated-cache.js +3 -3
- package/dist/utils/npx-isolated-cache.js.map +1 -1
- package/dist/utils/paths.d.ts.map +1 -1
- package/dist/utils/paths.js +8 -4
- package/dist/utils/paths.js.map +1 -1
- package/dist/utils/type-guards.d.ts +1 -1
- package/dist/utils/type-guards.d.ts.map +1 -1
- package/dist/utils/type-guards.js +11 -10
- package/dist/utils/type-guards.js.map +1 -1
- package/package.json +7 -6
- package/src/adapters/cliffy-node.ts +27 -22
- package/src/agents/agent-manager.ts +145 -121
- package/src/agents/agent-registry.ts +77 -70
- package/src/api/claude-client.ts +59 -38
- package/src/api/routes/analysis.js +750 -735
- package/src/cli/__tests__/command-registry.test.js +42 -32
- package/src/cli/__tests__/simple-cli.test.js +42 -37
- package/src/cli/__tests__/utils.test.js +9 -9
- package/src/cli/agents/README.md +30 -4
- package/src/cli/agents/analyst.ts +161 -163
- package/src/cli/agents/architect.ts +126 -131
- package/src/cli/agents/base-agent.ts +48 -47
- package/src/cli/agents/capabilities.ts +87 -85
- package/src/cli/agents/coder.ts +127 -120
- package/src/cli/agents/coordinator.ts +72 -72
- package/src/cli/agents/hive-agents.ts +96 -70
- package/src/cli/agents/index.ts +70 -55
- package/src/cli/agents/researcher.ts +63 -74
- package/src/cli/agents/tester.ts +91 -98
- package/src/cli/cli-core.ts +56 -47
- package/src/cli/command-registry.js +82 -83
- package/src/cli/commands/advanced-memory-commands.ts +210 -142
- package/src/cli/commands/agent-simple.ts +146 -114
- package/src/cli/commands/agent.ts +119 -95
- package/src/cli/commands/claude-api.ts +19 -15
- package/src/cli/commands/claude.ts +96 -88
- package/src/cli/commands/config-integration.ts +120 -101
- package/src/cli/commands/config.ts +10 -8
- package/src/cli/commands/enterprise.ts +323 -187
- package/src/cli/commands/help-new.ts +57 -55
- package/src/cli/commands/help.ts +162 -159
- package/src/cli/commands/hive-mind/index.ts +3 -3
- package/src/cli/commands/hive-mind/init.ts +19 -12
- package/src/cli/commands/hive-mind/optimize-memory.ts +83 -53
- package/src/cli/commands/hive-mind/pause.ts +27 -25
- package/src/cli/commands/hive-mind/ps.ts +43 -37
- package/src/cli/commands/hive-mind/resume.ts +26 -26
- package/src/cli/commands/hive-mind/spawn.ts +37 -29
- package/src/cli/commands/hive-mind/status.ts +51 -51
- package/src/cli/commands/hive-mind/stop.ts +56 -51
- package/src/cli/commands/hive-mind/task.ts +65 -54
- package/src/cli/commands/hive-mind/wizard.ts +181 -167
- package/src/cli/commands/hive.ts +136 -96
- package/src/cli/commands/hook-types.ts +2 -2
- package/src/cli/commands/hook-validator.ts +8 -4
- package/src/cli/commands/hook.ts +44 -42
- package/src/cli/commands/index.ts +1162 -1031
- package/src/cli/commands/mcp.ts +105 -94
- package/src/cli/commands/memory.ts +24 -21
- package/src/cli/commands/migrate.ts +24 -24
- package/src/cli/commands/monitor.ts +123 -93
- package/src/cli/commands/ruv-swarm.ts +131 -122
- package/src/cli/commands/session.ts +60 -45
- package/src/cli/commands/sparc.ts +170 -139
- package/src/cli/commands/start/event-emitter.ts +2 -2
- package/src/cli/commands/start/index.ts +1 -1
- package/src/cli/commands/start/process-manager.ts +30 -47
- package/src/cli/commands/start/process-ui-simple.ts +60 -49
- package/src/cli/commands/start/process-ui.ts +1 -1
- package/src/cli/commands/start/start-command.ts +104 -75
- package/src/cli/commands/start/system-monitor.ts +35 -41
- package/src/cli/commands/start/types.ts +3 -3
- package/src/cli/commands/start.ts +1 -1
- package/src/cli/commands/status.ts +67 -67
- package/src/cli/commands/swarm-spawn.ts +21 -12
- package/src/cli/commands/swarm.ts +221 -150
- package/src/cli/commands/task.ts +55 -55
- package/src/cli/commands/workflow.ts +174 -157
- package/src/cli/completion.ts +34 -19
- package/src/cli/create-enhanced-task.js +49 -17
- package/src/cli/formatter.ts +38 -37
- package/src/cli/help-formatter.js +23 -33
- package/src/cli/help-formatter.ts +24 -34
- package/src/cli/help-text.js +69 -60
- package/src/cli/index-remote.ts +12 -9
- package/src/cli/index.ts +77 -67
- package/src/cli/init/batch-tools.ts +4 -5
- package/src/cli/init/claude-config.ts +125 -118
- package/src/cli/init/directory-structure.ts +10 -11
- package/src/cli/init/index.ts +13 -13
- package/src/cli/init/sparc-environment.ts +90 -74
- package/src/cli/init/swarm-commands.ts +5 -6
- package/src/cli/init/utils.ts +1 -1
- package/src/cli/main.ts +9 -10
- package/src/cli/node-compat.js +26 -19
- package/src/cli/node-repl.ts +104 -87
- package/src/cli/repl.ts +190 -158
- package/src/cli/runtime-detector.js +24 -19
- package/src/cli/simple-cli.js +460 -385
- package/src/cli/simple-cli.ts +426 -366
- package/src/cli/simple-commands/__tests__/agent.test.js +49 -55
- package/src/cli/simple-commands/__tests__/memory.test.js +4 -401
- package/src/cli/simple-commands/__tests__/swarm.test.js +49 -55
- package/src/cli/simple-commands/__tests__/task.test.js +4 -478
- package/src/cli/simple-commands/agent.js +27 -27
- package/src/cli/simple-commands/analysis.js +179 -161
- package/src/cli/simple-commands/automation.js +226 -205
- package/src/cli/simple-commands/batch-manager.js +98 -88
- package/src/cli/simple-commands/config.js +65 -60
- package/src/cli/simple-commands/coordination.js +197 -185
- package/src/cli/simple-commands/enhanced-ui-views.js +142 -115
- package/src/cli/simple-commands/enhanced-webui-complete.js +267 -167
- package/src/cli/simple-commands/fix-hook-variables.js +73 -67
- package/src/cli/simple-commands/github/gh-coordinator.js +63 -53
- package/src/cli/simple-commands/github/github-api.js +45 -47
- package/src/cli/simple-commands/github.js +33 -34
- package/src/cli/simple-commands/hive-mind/auto-save-middleware.js +44 -40
- package/src/cli/simple-commands/hive-mind/communication.js +198 -185
- package/src/cli/simple-commands/hive-mind/core.js +289 -304
- package/src/cli/simple-commands/hive-mind/db-optimizer.js +278 -168
- package/src/cli/simple-commands/hive-mind/mcp-wrapper.js +352 -258
- package/src/cli/simple-commands/hive-mind/memory.js +356 -287
- package/src/cli/simple-commands/hive-mind/performance-optimizer.js +88 -79
- package/src/cli/simple-commands/hive-mind/performance-test.js +61 -49
- package/src/cli/simple-commands/hive-mind/queen.js +223 -213
- package/src/cli/simple-commands/hive-mind/session-manager.js +217 -157
- package/src/cli/simple-commands/hive-mind-optimize.js +69 -65
- package/src/cli/simple-commands/hive-mind-wizard.js +213 -211
- package/src/cli/simple-commands/hive-mind.js +598 -432
- package/src/cli/simple-commands/hive.js +12 -12
- package/src/cli/simple-commands/hook-safety.js +114 -111
- package/src/cli/simple-commands/hooks.js +1077 -1017
- package/src/cli/simple-commands/init/README.md +8 -1
- package/src/cli/simple-commands/init/VALIDATION_ROLLBACK.md +27 -1
- package/src/cli/simple-commands/init/batch-init.js +105 -100
- package/src/cli/simple-commands/init/claude-commands/claude-flow-commands.js +6 -6
- package/src/cli/simple-commands/init/claude-commands/optimized-claude-flow-commands.js +6 -6
- package/src/cli/simple-commands/init/claude-commands/optimized-slash-commands.js +20 -18
- package/src/cli/simple-commands/init/claude-commands/optimized-sparc-commands.js +85 -71
- package/src/cli/simple-commands/init/claude-commands/slash-commands.js +6 -7
- package/src/cli/simple-commands/init/claude-commands/sparc-commands.js +42 -33
- package/src/cli/simple-commands/init/executable-wrapper.js +13 -10
- package/src/cli/simple-commands/init/gitignore-updater.js +22 -22
- package/src/cli/simple-commands/init/help.js +4 -2
- package/src/cli/simple-commands/init/index.js +405 -303
- package/src/cli/simple-commands/init/performance-monitor.js +71 -64
- package/src/cli/simple-commands/init/rollback/backup-manager.js +44 -64
- package/src/cli/simple-commands/init/rollback/index.js +31 -39
- package/src/cli/simple-commands/init/rollback/recovery-manager.js +71 -101
- package/src/cli/simple-commands/init/rollback/rollback-executor.js +34 -53
- package/src/cli/simple-commands/init/rollback/state-tracker.js +38 -49
- package/src/cli/simple-commands/init/sparc/roo-readme.js +1 -1
- package/src/cli/simple-commands/init/sparc/roomodes-config.js +99 -77
- package/src/cli/simple-commands/init/sparc/workflows.js +37 -33
- package/src/cli/simple-commands/init/sparc-structure.js +9 -10
- package/src/cli/simple-commands/init/templates/CLAUDE.md +94 -26
- package/src/cli/simple-commands/init/templates/claude-flow-universal +9 -7
- package/src/cli/simple-commands/init/templates/claude-md.js +1 -1
- package/src/cli/simple-commands/init/templates/commands/analysis/bottleneck-detect.md +15 -3
- package/src/cli/simple-commands/init/templates/commands/automation/auto-agent.md +12 -2
- package/src/cli/simple-commands/init/templates/commands/coordination/swarm-init.md +10 -1
- package/src/cli/simple-commands/init/templates/commands/github/github-swarm.md +18 -5
- package/src/cli/simple-commands/init/templates/commands/hooks/notification.md +12 -1
- package/src/cli/simple-commands/init/templates/commands/hooks/post-command.md +12 -1
- package/src/cli/simple-commands/init/templates/commands/hooks/post-edit.md +12 -1
- package/src/cli/simple-commands/init/templates/commands/hooks/post-task.md +12 -1
- package/src/cli/simple-commands/init/templates/commands/hooks/pre-command.md +12 -1
- package/src/cli/simple-commands/init/templates/commands/hooks/pre-edit.md +12 -1
- package/src/cli/simple-commands/init/templates/commands/hooks/pre-search.md +13 -6
- package/src/cli/simple-commands/init/templates/commands/hooks/pre-task.md +12 -1
- package/src/cli/simple-commands/init/templates/commands/hooks/session-end.md +12 -1
- package/src/cli/simple-commands/init/templates/commands/hooks/session-restore.md +13 -5
- package/src/cli/simple-commands/init/templates/commands/hooks/session-start.md +12 -1
- package/src/cli/simple-commands/init/templates/coordination-md.js +1 -1
- package/src/cli/simple-commands/init/templates/enhanced-templates.js +116 -113
- package/src/cli/simple-commands/init/templates/memory-bank-md.js +1 -1
- package/src/cli/simple-commands/init/templates/readme-files.js +1 -1
- package/src/cli/simple-commands/init/templates/safe-hook-patterns.js +176 -127
- package/src/cli/simple-commands/init/templates/settings.json +2 -5
- package/src/cli/simple-commands/init/templates/sparc-modes.js +3 -3
- package/src/cli/simple-commands/init/validation/config-validator.js +17 -28
- package/src/cli/simple-commands/init/validation/health-checker.js +54 -62
- package/src/cli/simple-commands/init/validation/index.js +18 -23
- package/src/cli/simple-commands/init/validation/mode-validator.js +22 -32
- package/src/cli/simple-commands/init/validation/post-init-validator.js +25 -26
- package/src/cli/simple-commands/init/validation/pre-init-validator.js +32 -36
- package/src/cli/simple-commands/init/validation/test-runner.js +55 -63
- package/src/cli/simple-commands/init.js +1 -1
- package/src/cli/simple-commands/mcp-integration-layer.js +179 -110
- package/src/cli/simple-commands/mcp.js +55 -48
- package/src/cli/simple-commands/memory.js +62 -56
- package/src/cli/simple-commands/migrate-hooks.js +9 -10
- package/src/cli/simple-commands/monitor.js +87 -67
- package/src/cli/simple-commands/process-ui-enhanced.js +207 -155
- package/src/cli/simple-commands/process-ui.js +65 -56
- package/src/cli/simple-commands/realtime-update-system.js +136 -129
- package/src/cli/simple-commands/sparc/architecture.js +352 -251
- package/src/cli/simple-commands/sparc/commands.js +122 -94
- package/src/cli/simple-commands/sparc/completion.js +274 -199
- package/src/cli/simple-commands/sparc/coordinator.js +217 -169
- package/src/cli/simple-commands/sparc/index.js +40 -36
- package/src/cli/simple-commands/sparc/phase-base.js +72 -58
- package/src/cli/simple-commands/sparc/pseudocode.js +275 -159
- package/src/cli/simple-commands/sparc/refinement.js +306 -212
- package/src/cli/simple-commands/sparc/specification.js +164 -94
- package/src/cli/simple-commands/sparc-modes/architect.js +1 -1
- package/src/cli/simple-commands/sparc-modes/ask.js +1 -1
- package/src/cli/simple-commands/sparc-modes/code.js +1 -1
- package/src/cli/simple-commands/sparc-modes/debug.js +1 -1
- package/src/cli/simple-commands/sparc-modes/devops.js +1 -1
- package/src/cli/simple-commands/sparc-modes/docs-writer.js +1 -1
- package/src/cli/simple-commands/sparc-modes/generic.js +1 -1
- package/src/cli/simple-commands/sparc-modes/index.js +15 -15
- package/src/cli/simple-commands/sparc-modes/integration.js +1 -1
- package/src/cli/simple-commands/sparc-modes/mcp.js +1 -1
- package/src/cli/simple-commands/sparc-modes/monitoring.js +1 -1
- package/src/cli/simple-commands/sparc-modes/optimization.js +1 -1
- package/src/cli/simple-commands/sparc-modes/security-review.js +1 -1
- package/src/cli/simple-commands/sparc-modes/sparc-orchestrator.js +1 -1
- package/src/cli/simple-commands/sparc-modes/spec-pseudocode.js +1 -1
- package/src/cli/simple-commands/sparc-modes/supabase-admin.js +1 -1
- package/src/cli/simple-commands/sparc-modes/swarm.js +52 -52
- package/src/cli/simple-commands/sparc-modes/tdd.js +1 -1
- package/src/cli/simple-commands/sparc-modes/tutorial.js +1 -1
- package/src/cli/simple-commands/sparc.js +87 -69
- package/src/cli/simple-commands/start-ui.js +21 -20
- package/src/cli/simple-commands/start-wrapper.js +29 -31
- package/src/cli/simple-commands/start.js +1 -1
- package/src/cli/simple-commands/status.js +53 -47
- package/src/cli/simple-commands/swarm-executor.js +47 -57
- package/src/cli/simple-commands/swarm-metrics-integration.js +119 -79
- package/src/cli/simple-commands/swarm-ui.js +120 -118
- package/src/cli/simple-commands/swarm-webui-integration.js +48 -27
- package/src/cli/simple-commands/swarm.js +216 -181
- package/src/cli/simple-commands/task.js +29 -29
- package/src/cli/simple-commands/timestamp-fix.js +28 -25
- package/src/cli/simple-commands/tool-execution-framework.js +115 -118
- package/src/cli/simple-commands/training.js +219 -194
- package/src/cli/simple-commands/web-server.js +118 -117
- package/src/cli/simple-commands/webui-validator.js +4 -3
- package/src/cli/simple-mcp.ts +14 -17
- package/src/cli/simple-orchestrator.ts +113 -101
- package/src/cli/swarm-standalone.js +20 -21
- package/src/cli/ui/compatible-ui.ts +55 -44
- package/src/cli/ui/fallback-handler.ts +19 -16
- package/src/cli/ui/index.ts +14 -15
- package/src/cli/utils/environment-detector.ts +75 -67
- package/src/cli/utils/interactive-detector.js +17 -11
- package/src/cli/utils/prompt-defaults.ts +32 -28
- package/src/cli/utils/safe-interactive.js +21 -20
- package/src/cli/utils.js +127 -110
- package/src/cli/validation-helper.js +16 -21
- package/src/cli/validation-helper.ts +21 -34
- package/src/communication/message-bus.ts +137 -124
- package/src/config/config-manager.ts +62 -30
- package/src/config/ruv-swarm-config.ts +105 -86
- package/src/config/ruv-swarm-integration.ts +38 -38
- package/src/constants/agent-types.ts +9 -8
- package/src/coordination/README.md +54 -31
- package/src/coordination/advanced-scheduler.ts +23 -26
- package/src/coordination/advanced-task-executor.ts +74 -68
- package/src/coordination/background-executor.ts +33 -30
- package/src/coordination/circuit-breaker.ts +26 -27
- package/src/coordination/conflict-resolution.ts +18 -27
- package/src/coordination/dependency-graph.ts +15 -18
- package/src/coordination/hive-orchestrator.ts +111 -81
- package/src/coordination/hive-protocol.ts +68 -77
- package/src/coordination/index.ts +3 -7
- package/src/coordination/load-balancer.ts +115 -105
- package/src/coordination/manager.ts +38 -51
- package/src/coordination/messaging.ts +19 -29
- package/src/coordination/metrics.ts +57 -60
- package/src/coordination/resources.ts +32 -37
- package/src/coordination/scheduler.ts +29 -30
- package/src/coordination/swarm-coordinator.ts +81 -70
- package/src/coordination/swarm-monitor.ts +90 -69
- package/src/coordination/work-stealing.ts +6 -13
- package/src/core/config.ts +148 -143
- package/src/core/event-bus.ts +5 -6
- package/src/core/json-persistence.ts +27 -34
- package/src/core/logger.ts +13 -16
- package/src/core/orchestrator-fixed.ts +33 -32
- package/src/core/orchestrator.ts +166 -159
- package/src/core/persistence.ts +47 -36
- package/src/enterprise/analytics-manager.ts +242 -233
- package/src/enterprise/audit-manager.ts +238 -184
- package/src/enterprise/cloud-manager.ts +167 -151
- package/src/enterprise/deployment-manager.ts +223 -180
- package/src/enterprise/index.ts +7 -7
- package/src/enterprise/project-manager.ts +151 -133
- package/src/enterprise/security-manager.ts +278 -223
- package/src/hive-mind/core/Agent.ts +112 -109
- package/src/hive-mind/core/Communication.ts +67 -69
- package/src/hive-mind/core/DatabaseManager.ts +299 -166
- package/src/hive-mind/core/HiveMind.ts +100 -96
- package/src/hive-mind/core/Memory.ts +304 -295
- package/src/hive-mind/core/MemoryMonitor.ts +46 -47
- package/src/hive-mind/core/Queen.ts +187 -114
- package/src/hive-mind/index.ts +2 -2
- package/src/hive-mind/integration/ConsensusEngine.ts +88 -92
- package/src/hive-mind/integration/MCPToolWrapper.ts +20 -72
- package/src/hive-mind/integration/SwarmOrchestrator.ts +173 -165
- package/src/hive-mind/types.ts +24 -12
- package/src/integration/mock-components.ts +42 -30
- package/src/integration/system-integration.ts +79 -78
- package/src/integration/types.ts +7 -7
- package/src/mcp/README.md +23 -4
- package/src/mcp/auth.ts +25 -18
- package/src/mcp/claude-code-wrapper.ts +257 -150
- package/src/mcp/claude-flow-tools.ts +52 -13
- package/src/mcp/client.ts +15 -13
- package/src/mcp/index.ts +22 -27
- package/src/mcp/integrate-wrapper.ts +18 -18
- package/src/mcp/lifecycle-manager.ts +30 -27
- package/src/mcp/load-balancer.ts +10 -11
- package/src/mcp/mcp-server.js +662 -351
- package/src/mcp/orchestration-integration.ts +32 -17
- package/src/mcp/performance-monitor.ts +65 -51
- package/src/mcp/protocol-manager.ts +36 -52
- package/src/mcp/recovery/connection-health-monitor.ts +40 -35
- package/src/mcp/recovery/connection-state-manager.ts +52 -50
- package/src/mcp/recovery/fallback-coordinator.ts +24 -24
- package/src/mcp/recovery/index.ts +23 -4
- package/src/mcp/recovery/reconnection-manager.ts +14 -15
- package/src/mcp/recovery/recovery-manager.ts +52 -68
- package/src/mcp/router.ts +1 -2
- package/src/mcp/ruv-swarm-tools.ts +167 -138
- package/src/mcp/ruv-swarm-wrapper.js +31 -23
- package/src/mcp/server-with-wrapper.ts +4 -5
- package/src/mcp/server-wrapper-mode.ts +5 -6
- package/src/mcp/server.ts +45 -40
- package/src/mcp/session-manager.ts +8 -11
- package/src/mcp/sparc-modes.ts +29 -28
- package/src/mcp/swarm-tools.ts +131 -114
- package/src/mcp/tests/mcp-integration.test.ts +49 -55
- package/src/mcp/tools.ts +53 -38
- package/src/mcp/transports/base.ts +4 -5
- package/src/mcp/transports/http.ts +45 -42
- package/src/mcp/transports/stdio.ts +9 -12
- package/src/memory/README.md +37 -27
- package/src/memory/advanced-memory-manager.ts +336 -279
- package/src/memory/backends/base.ts +4 -5
- package/src/memory/backends/markdown.ts +16 -22
- package/src/memory/backends/sqlite.ts +19 -15
- package/src/memory/cache.ts +18 -18
- package/src/memory/distributed-memory.ts +84 -92
- package/src/memory/enhanced-examples.js +68 -59
- package/src/memory/enhanced-memory.js +99 -80
- package/src/memory/fallback-store.js +16 -7
- package/src/memory/in-memory-store.js +31 -27
- package/src/memory/index.js +4 -4
- package/src/memory/indexer.ts +6 -10
- package/src/memory/manager.ts +45 -59
- package/src/memory/migration.js +107 -90
- package/src/memory/shared-memory.js +155 -157
- package/src/memory/sqlite-store.js +76 -59
- package/src/memory/swarm-memory.js +138 -131
- package/src/memory/swarm-memory.ts +74 -75
- package/src/memory/test-example.js +28 -30
- package/src/migration/README.md +25 -9
- package/src/migration/index.ts +13 -14
- package/src/migration/logger.ts +9 -7
- package/src/migration/migration-analyzer.ts +66 -52
- package/src/migration/migration-manifest.json +2 -6
- package/src/migration/migration-runner.ts +86 -63
- package/src/migration/migration-validator.ts +93 -68
- package/src/migration/package.json +1 -1
- package/src/migration/progress-reporter.ts +25 -21
- package/src/migration/rollback-manager.ts +79 -63
- package/src/migration/tests/migration-system.test.ts +4 -491
- package/src/migration/tsconfig.json +3 -10
- package/src/migration/types.ts +1 -1
- package/src/monitoring/diagnostics.ts +123 -97
- package/src/monitoring/health-check.ts +45 -51
- package/src/monitoring/real-time-monitor.ts +105 -92
- package/src/resources/resource-manager.ts +205 -159
- package/src/swarm/__tests__/integration.test.ts +59 -65
- package/src/swarm/__tests__/prompt-copier.test.ts +27 -27
- package/src/swarm/claude-flow-executor.ts +50 -49
- package/src/swarm/coordinator.ts +727 -635
- package/src/swarm/direct-executor.ts +80 -86
- package/src/swarm/executor-v2.ts +81 -66
- package/src/swarm/executor.ts +124 -124
- package/src/swarm/index.ts +7 -8
- package/src/swarm/json-output-aggregator.ts +56 -40
- package/src/swarm/memory.ts +152 -147
- package/src/swarm/optimizations/README.md +20 -12
- package/src/swarm/optimizations/__tests__/optimization.test.ts +84 -87
- package/src/swarm/optimizations/async-file-manager.ts +70 -80
- package/src/swarm/optimizations/circular-buffer.ts +37 -37
- package/src/swarm/optimizations/connection-pool.ts +64 -64
- package/src/swarm/optimizations/index.ts +4 -4
- package/src/swarm/optimizations/migration-guide.md +27 -16
- package/src/swarm/optimizations/optimized-executor.ts +104 -114
- package/src/swarm/optimizations/ttl-map.ts +66 -63
- package/src/swarm/prompt-cli.ts +48 -42
- package/src/swarm/prompt-copier-enhanced.ts +54 -55
- package/src/swarm/prompt-copier.ts +59 -65
- package/src/swarm/prompt-copying-README.md +49 -33
- package/src/swarm/prompt-manager.ts +69 -63
- package/src/swarm/prompt-utils.ts +71 -66
- package/src/swarm/sparc-executor.ts +298 -225
- package/src/swarm/strategies/auto.ts +367 -252
- package/src/swarm/strategies/base.ts +24 -20
- package/src/swarm/strategies/research.ts +144 -124
- package/src/swarm/types.ts +340 -309
- package/src/swarm/workers/copy-worker.ts +12 -13
- package/src/task/README.md +99 -70
- package/src/task/commands.ts +16 -8
- package/src/task/coordination.ts +209 -162
- package/src/task/engine.ts +81 -65
- package/src/task/index.ts +28 -31
- package/src/templates/claude-optimized/.claude/BATCHTOOLS_BEST_PRACTICES.md +479 -481
- package/src/templates/claude-optimized/.claude/BATCHTOOLS_GUIDE.md +210 -188
- package/src/templates/claude-optimized/.claude/MIGRATION_GUIDE.md +151 -105
- package/src/templates/claude-optimized/.claude/PERFORMANCE_BENCHMARKS.md +102 -87
- package/src/templates/claude-optimized/.claude/commands/claude-flow-help.md +18 -1
- package/src/templates/claude-optimized/.claude/commands/claude-flow-memory.md +17 -1
- package/src/templates/claude-optimized/.claude/commands/claude-flow-swarm.md +21 -1
- package/src/templates/claude-optimized/.claude/commands/sparc/architect.md +11 -4
- package/src/templates/claude-optimized/.claude/commands/sparc/ask.md +16 -10
- package/src/templates/claude-optimized/.claude/commands/sparc/code.md +26 -7
- package/src/templates/claude-optimized/.claude/commands/sparc/debug.md +14 -4
- package/src/templates/claude-optimized/.claude/commands/sparc/devops.md +23 -10
- package/src/templates/claude-optimized/.claude/commands/sparc/docs-writer.md +8 -4
- package/src/templates/claude-optimized/.claude/commands/sparc/integration.md +43 -27
- package/src/templates/claude-optimized/.claude/commands/sparc/mcp.md +15 -1
- package/src/templates/claude-optimized/.claude/commands/sparc/post-deployment-monitoring-mode.md +45 -30
- package/src/templates/claude-optimized/.claude/commands/sparc/refinement-optimization-mode.md +23 -13
- package/src/templates/claude-optimized/.claude/commands/sparc/security-review.md +31 -17
- package/src/templates/claude-optimized/.claude/commands/sparc/sparc.md +54 -47
- package/src/templates/claude-optimized/.claude/commands/sparc/spec-pseudocode.md +27 -17
- package/src/templates/claude-optimized/.claude/commands/sparc/supabase-admin.md +18 -4
- package/src/templates/claude-optimized/.claude/commands/sparc/tdd.md +23 -9
- package/src/templates/claude-optimized/.claude/commands/sparc/tutorial.md +22 -16
- package/src/templates/claude-optimized/.claude/commands/sparc.md +20 -1
- package/src/templates/claude-optimized/README.md +10 -1
- package/src/templates/claude-optimized/SUMMARY.md +23 -1
- package/src/templates/claude-optimized/deploy-to-project.js +22 -10
- package/src/templates/claude-optimized/install-template.js +14 -10
- package/src/templates/claude-optimized/manifest.json +1 -1
- package/src/templates/claude-optimized/package.json +1 -1
- package/src/templates/claude-optimized/template-manager.js +8 -8
- package/src/templates/claude-optimized/validate-template.js +33 -23
- package/src/terminal/adapters/base.ts +1 -1
- package/src/terminal/adapters/native.ts +47 -47
- package/src/terminal/adapters/vscode.ts +21 -28
- package/src/terminal/manager.ts +27 -22
- package/src/terminal/pool.ts +24 -27
- package/src/terminal/session.ts +18 -18
- package/src/terminal/vscode-bridge.ts +21 -21
- package/src/tests/validation-consistency.test.ts +4 -4
- package/src/types/cliffy.d.ts +11 -14
- package/src/types/global.d.ts +1 -2
- package/src/types/index.ts +2 -2
- package/src/types/mcp.d.ts +11 -17
- package/src/types/vscode.d.ts +18 -5
- package/src/ui/console/README-analysis-tools.md +52 -2
- package/src/ui/console/README.md +33 -1
- package/src/ui/console/WORKFLOW_DESIGNER_README.md +81 -22
- package/src/ui/console/analysis-tools.html +282 -261
- package/src/ui/console/analytics.html +329 -326
- package/src/ui/console/index.html +221 -209
- package/src/ui/console/js/analysis-tools.js +815 -754
- package/src/ui/console/js/command-handler.js +226 -196
- package/src/ui/console/js/console.js +117 -119
- package/src/ui/console/js/daa-tools.js +797 -787
- package/src/ui/console/js/memory-interface.js +676 -638
- package/src/ui/console/js/memory-test.js +49 -46
- package/src/ui/console/js/memory-tools.js +181 -159
- package/src/ui/console/js/settings.js +124 -103
- package/src/ui/console/js/terminal-emulator.js +147 -130
- package/src/ui/console/js/websocket-client.js +71 -71
- package/src/ui/console/js/workflow-designer.js +1126 -1110
- package/src/ui/console/neural-networks-demo.md +45 -16
- package/src/ui/console/styles/analysis-tools.css +571 -561
- package/src/ui/console/styles/console.css +16 -12
- package/src/ui/console/styles/daa-tools.css +322 -319
- package/src/ui/console/styles/responsive.css +71 -70
- package/src/ui/console/styles/settings.css +12 -12
- package/src/ui/console/styles/workflow-designer.css +628 -584
- package/src/ui/console/test-neural-networks.js +59 -54
- package/src/ui/console/test-neural.html +194 -196
- package/src/ui/console/workflow-designer-demo.html +433 -424
- package/src/ui/hive-dashboard.ts +74 -52
- package/src/ui/web-ui/EnhancedProcessUI.js +570 -424
- package/src/ui/web-ui/EnhancedWebUI.js +65 -65
- package/src/ui/web-ui/README.md +16 -16
- package/src/ui/web-ui/components/ComponentLibrary.js +173 -124
- package/src/ui/web-ui/core/EventBus.js +27 -25
- package/src/ui/web-ui/core/MCPIntegrationLayer.js +294 -108
- package/src/ui/web-ui/core/StateManager.js +43 -46
- package/src/ui/web-ui/core/UIManager.js +120 -70
- package/src/ui/web-ui/core/ViewManager.js +16 -19
- package/src/ui/web-ui/index.js +101 -48
- package/src/ui/web-ui/neural-panel-test.js +109 -108
- package/src/ui/web-ui/test-github-view.js +11 -12
- package/src/ui/web-ui/test-neural-panel.html +219 -205
- package/src/ui/web-ui/views/DAAView.js +88 -85
- package/src/ui/web-ui/views/GitHubIntegrationTest.js +42 -42
- package/src/ui/web-ui/views/GitHubIntegrationView.js +59 -53
- package/src/ui/web-ui/views/NeuralNetworkView.js +20 -21
- package/src/ui/web-ui/views/WorkflowAutomationView.js +31 -32
- package/src/utils/error-handler.js +1 -1
- package/src/utils/error-handler.ts +9 -5
- package/src/utils/errors.ts +20 -18
- package/src/utils/formatters.ts +6 -6
- package/src/utils/helpers.ts +53 -55
- package/src/utils/npx-isolated-cache.js +16 -16
- package/src/utils/paths.ts +9 -6
- package/src/utils/timezone-utils.js +16 -16
- package/src/utils/type-guards.ts +37 -26
- package/src/utils/types.ts +2 -2
|
@@ -14,10 +14,10 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
14
14
|
this.memoryStats = new Map();
|
|
15
15
|
this.activeOperations = new Set();
|
|
16
16
|
this.cacheMetrics = null;
|
|
17
|
-
|
|
17
|
+
|
|
18
18
|
// DOM elements
|
|
19
19
|
this.elements = {};
|
|
20
|
-
|
|
20
|
+
|
|
21
21
|
// Memory tools configuration
|
|
22
22
|
this.memoryTools = {
|
|
23
23
|
// Core memory tools
|
|
@@ -25,26 +25,26 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
25
25
|
memory_restore: { name: 'Memory Restore', category: 'backup', icon: '📥' },
|
|
26
26
|
memory_compress: { name: 'Data Compression', category: 'optimization', icon: '🗜️' },
|
|
27
27
|
memory_sync: { name: 'Cross-Instance Sync', category: 'sync', icon: '🔄' },
|
|
28
|
-
|
|
28
|
+
|
|
29
29
|
// Cache management
|
|
30
30
|
cache_manage: { name: 'Cache Management', category: 'cache', icon: '🗂️' },
|
|
31
31
|
cache_optimize: { name: 'Cache Optimization', category: 'cache', icon: '⚡' },
|
|
32
|
-
|
|
32
|
+
|
|
33
33
|
// State management
|
|
34
34
|
state_snapshot: { name: 'State Snapshot', category: 'state', icon: '📸' },
|
|
35
35
|
context_restore: { name: 'Context Recovery', category: 'state', icon: '🔄' },
|
|
36
|
-
|
|
36
|
+
|
|
37
37
|
// Analytics and persistence
|
|
38
38
|
memory_analytics: { name: 'Memory Analytics', category: 'analytics', icon: '📊' },
|
|
39
39
|
memory_persist: { name: 'Session Persistence', category: 'persistence', icon: '🔐' },
|
|
40
40
|
memory_namespace: { name: 'Namespace Manager', category: 'management', icon: '🏷️' },
|
|
41
|
-
|
|
41
|
+
|
|
42
42
|
// Advanced features
|
|
43
43
|
memory_defrag: { name: 'Memory Defragmentation', category: 'optimization', icon: '🧹' },
|
|
44
44
|
memory_encrypt: { name: 'Memory Encryption', category: 'security', icon: '🔒' },
|
|
45
|
-
memory_replicate: { name: 'Memory Replication', category: 'sync', icon: '📋' }
|
|
45
|
+
memory_replicate: { name: 'Memory Replication', category: 'sync', icon: '📋' },
|
|
46
46
|
};
|
|
47
|
-
|
|
47
|
+
|
|
48
48
|
this.categories = {
|
|
49
49
|
backup: { name: 'Backup & Restore', color: '#007acc' },
|
|
50
50
|
optimization: { name: 'Optimization', color: '#ff6b6b' },
|
|
@@ -54,7 +54,7 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
54
54
|
analytics: { name: 'Analytics', color: '#feca57' },
|
|
55
55
|
persistence: { name: 'Persistence', color: '#ff9ff3' },
|
|
56
56
|
management: { name: 'Management', color: '#a8e6cf' },
|
|
57
|
-
security: { name: 'Security', color: '#ff8b94' }
|
|
57
|
+
security: { name: 'Security', color: '#ff8b94' },
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
60
|
|
|
@@ -63,16 +63,15 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
63
63
|
*/
|
|
64
64
|
async init() {
|
|
65
65
|
if (this.isInitialized) return;
|
|
66
|
-
|
|
66
|
+
|
|
67
67
|
try {
|
|
68
68
|
await this.createPanelUI();
|
|
69
69
|
this.setupEventListeners();
|
|
70
70
|
this.setupWebSocketHandlers();
|
|
71
71
|
await this.loadInitialData();
|
|
72
|
-
|
|
72
|
+
|
|
73
73
|
this.isInitialized = true;
|
|
74
74
|
this.emit('initialized');
|
|
75
|
-
|
|
76
75
|
} catch (error) {
|
|
77
76
|
console.error('Failed to initialize memory tools panel:', error);
|
|
78
77
|
this.emit('error', error);
|
|
@@ -87,41 +86,41 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
87
86
|
const panelContainer = document.createElement('div');
|
|
88
87
|
panelContainer.id = 'memoryToolsPanel';
|
|
89
88
|
panelContainer.className = 'memory-panel hidden';
|
|
90
|
-
|
|
89
|
+
|
|
91
90
|
// Create panel header
|
|
92
91
|
const header = this.createPanelHeader();
|
|
93
92
|
panelContainer.appendChild(header);
|
|
94
|
-
|
|
93
|
+
|
|
95
94
|
// Create main content area
|
|
96
95
|
const content = document.createElement('div');
|
|
97
96
|
content.className = 'memory-content';
|
|
98
|
-
|
|
97
|
+
|
|
99
98
|
// Create tabbed interface
|
|
100
99
|
const tabs = this.createTabs();
|
|
101
100
|
content.appendChild(tabs);
|
|
102
|
-
|
|
101
|
+
|
|
103
102
|
// Create tab content areas
|
|
104
103
|
const tabContents = this.createTabContents();
|
|
105
104
|
content.appendChild(tabContents);
|
|
106
|
-
|
|
105
|
+
|
|
107
106
|
panelContainer.appendChild(content);
|
|
108
|
-
|
|
107
|
+
|
|
109
108
|
// Insert into DOM
|
|
110
109
|
const consoleMain = document.querySelector('.console-main');
|
|
111
110
|
if (consoleMain) {
|
|
112
111
|
consoleMain.appendChild(panelContainer);
|
|
113
112
|
}
|
|
114
|
-
|
|
113
|
+
|
|
115
114
|
// Store DOM elements
|
|
116
115
|
this.elements.panel = panelContainer;
|
|
117
116
|
this.elements.header = header;
|
|
118
117
|
this.elements.content = content;
|
|
119
118
|
this.elements.tabs = tabs;
|
|
120
119
|
this.elements.tabContents = tabContents;
|
|
121
|
-
|
|
120
|
+
|
|
122
121
|
// Add toggle button to main header
|
|
123
122
|
this.addToggleButton();
|
|
124
|
-
|
|
123
|
+
|
|
125
124
|
// Get additional DOM references
|
|
126
125
|
this.elements.memoryMetrics = panelContainer.querySelector('#memoryMetrics');
|
|
127
126
|
this.elements.backupList = panelContainer.querySelector('#backupList');
|
|
@@ -136,7 +135,7 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
136
135
|
createPanelHeader() {
|
|
137
136
|
const header = document.createElement('div');
|
|
138
137
|
header.className = 'memory-header';
|
|
139
|
-
|
|
138
|
+
|
|
140
139
|
header.innerHTML = `
|
|
141
140
|
<div class="memory-header-left">
|
|
142
141
|
<h2 class="memory-title">
|
|
@@ -162,7 +161,7 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
162
161
|
</button>
|
|
163
162
|
</div>
|
|
164
163
|
`;
|
|
165
|
-
|
|
164
|
+
|
|
166
165
|
return header;
|
|
167
166
|
}
|
|
168
167
|
|
|
@@ -172,13 +171,13 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
172
171
|
createTabs() {
|
|
173
172
|
const tabs = document.createElement('div');
|
|
174
173
|
tabs.className = 'memory-tabs';
|
|
175
|
-
|
|
174
|
+
|
|
176
175
|
const tabItems = [
|
|
177
176
|
{ id: 'tools', name: 'Tools', icon: '🛠️' },
|
|
178
177
|
{ id: 'analytics', name: 'Analytics', icon: '📊' },
|
|
179
|
-
{ id: 'management', name: 'Management', icon: '⚙️' }
|
|
178
|
+
{ id: 'management', name: 'Management', icon: '⚙️' },
|
|
180
179
|
];
|
|
181
|
-
|
|
180
|
+
|
|
182
181
|
tabItems.forEach((tab, index) => {
|
|
183
182
|
const tabElement = document.createElement('button');
|
|
184
183
|
tabElement.className = `memory-tab ${index === 0 ? 'active' : ''}`;
|
|
@@ -189,7 +188,7 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
189
188
|
`;
|
|
190
189
|
tabs.appendChild(tabElement);
|
|
191
190
|
});
|
|
192
|
-
|
|
191
|
+
|
|
193
192
|
return tabs;
|
|
194
193
|
}
|
|
195
194
|
|
|
@@ -199,19 +198,19 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
199
198
|
createTabContents() {
|
|
200
199
|
const tabContents = document.createElement('div');
|
|
201
200
|
tabContents.className = 'memory-tab-contents';
|
|
202
|
-
|
|
201
|
+
|
|
203
202
|
// Tools tab
|
|
204
203
|
const toolsTab = this.createToolsTab();
|
|
205
204
|
tabContents.appendChild(toolsTab);
|
|
206
|
-
|
|
205
|
+
|
|
207
206
|
// Analytics tab
|
|
208
207
|
const analyticsTab = this.createAnalyticsTab();
|
|
209
208
|
tabContents.appendChild(analyticsTab);
|
|
210
|
-
|
|
209
|
+
|
|
211
210
|
// Management tab
|
|
212
211
|
const managementTab = this.createManagementTab();
|
|
213
212
|
tabContents.appendChild(managementTab);
|
|
214
|
-
|
|
213
|
+
|
|
215
214
|
return tabContents;
|
|
216
215
|
}
|
|
217
216
|
|
|
@@ -222,12 +221,12 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
222
221
|
const toolsTab = document.createElement('div');
|
|
223
222
|
toolsTab.className = 'memory-tab-content active';
|
|
224
223
|
toolsTab.setAttribute('data-tab', 'tools');
|
|
225
|
-
|
|
224
|
+
|
|
226
225
|
// Create category sections
|
|
227
226
|
Object.entries(this.categories).forEach(([categoryId, category]) => {
|
|
228
227
|
const categorySection = document.createElement('div');
|
|
229
228
|
categorySection.className = 'memory-category';
|
|
230
|
-
|
|
229
|
+
|
|
231
230
|
const categoryHeader = document.createElement('h3');
|
|
232
231
|
categoryHeader.className = 'memory-category-header';
|
|
233
232
|
categoryHeader.style.borderLeftColor = category.color;
|
|
@@ -235,19 +234,19 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
235
234
|
<span class="category-name">${category.name}</span>
|
|
236
235
|
<span class="category-count" id="categoryCount-${categoryId}">0</span>
|
|
237
236
|
`;
|
|
238
|
-
|
|
237
|
+
|
|
239
238
|
const categoryGrid = document.createElement('div');
|
|
240
239
|
categoryGrid.className = 'memory-tools-grid';
|
|
241
240
|
categoryGrid.id = `categoryGrid-${categoryId}`;
|
|
242
|
-
|
|
241
|
+
|
|
243
242
|
categorySection.appendChild(categoryHeader);
|
|
244
243
|
categorySection.appendChild(categoryGrid);
|
|
245
244
|
toolsTab.appendChild(categorySection);
|
|
246
|
-
|
|
245
|
+
|
|
247
246
|
// Add tools to category
|
|
248
247
|
this.populateToolsGrid(categoryGrid, categoryId);
|
|
249
248
|
});
|
|
250
|
-
|
|
249
|
+
|
|
251
250
|
return toolsTab;
|
|
252
251
|
}
|
|
253
252
|
|
|
@@ -255,14 +254,15 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
255
254
|
* Populate tools grid for a category
|
|
256
255
|
*/
|
|
257
256
|
populateToolsGrid(grid, categoryId) {
|
|
258
|
-
const toolsInCategory = Object.entries(this.memoryTools)
|
|
259
|
-
|
|
260
|
-
|
|
257
|
+
const toolsInCategory = Object.entries(this.memoryTools).filter(
|
|
258
|
+
([, tool]) => tool.category === categoryId,
|
|
259
|
+
);
|
|
260
|
+
|
|
261
261
|
toolsInCategory.forEach(([toolId, tool]) => {
|
|
262
262
|
const toolCard = document.createElement('div');
|
|
263
263
|
toolCard.className = 'memory-tool-card';
|
|
264
264
|
toolCard.setAttribute('data-tool', toolId);
|
|
265
|
-
|
|
265
|
+
|
|
266
266
|
toolCard.innerHTML = `
|
|
267
267
|
<div class="tool-icon">${tool.icon}</div>
|
|
268
268
|
<div class="tool-name">${tool.name}</div>
|
|
@@ -275,10 +275,10 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
275
275
|
</button>
|
|
276
276
|
</div>
|
|
277
277
|
`;
|
|
278
|
-
|
|
278
|
+
|
|
279
279
|
grid.appendChild(toolCard);
|
|
280
280
|
});
|
|
281
|
-
|
|
281
|
+
|
|
282
282
|
// Update category count
|
|
283
283
|
const countElement = document.getElementById(`categoryCount-${categoryId}`);
|
|
284
284
|
if (countElement) {
|
|
@@ -293,7 +293,7 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
293
293
|
const analyticsTab = document.createElement('div');
|
|
294
294
|
analyticsTab.className = 'memory-tab-content';
|
|
295
295
|
analyticsTab.setAttribute('data-tab', 'analytics');
|
|
296
|
-
|
|
296
|
+
|
|
297
297
|
analyticsTab.innerHTML = `
|
|
298
298
|
<div class="memory-section">
|
|
299
299
|
<h3>Memory Usage Analytics</h3>
|
|
@@ -345,7 +345,7 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
345
345
|
</div>
|
|
346
346
|
</div>
|
|
347
347
|
`;
|
|
348
|
-
|
|
348
|
+
|
|
349
349
|
return analyticsTab;
|
|
350
350
|
}
|
|
351
351
|
|
|
@@ -356,7 +356,7 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
356
356
|
const managementTab = document.createElement('div');
|
|
357
357
|
managementTab.className = 'memory-tab-content';
|
|
358
358
|
managementTab.setAttribute('data-tab', 'management');
|
|
359
|
-
|
|
359
|
+
|
|
360
360
|
managementTab.innerHTML = `
|
|
361
361
|
<div class="memory-section">
|
|
362
362
|
<div class="section-header">
|
|
@@ -437,7 +437,7 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
437
437
|
</div>
|
|
438
438
|
</div>
|
|
439
439
|
`;
|
|
440
|
-
|
|
440
|
+
|
|
441
441
|
return managementTab;
|
|
442
442
|
}
|
|
443
443
|
|
|
@@ -455,7 +455,7 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
455
455
|
<span class="icon">🧠</span>
|
|
456
456
|
Memory
|
|
457
457
|
`;
|
|
458
|
-
|
|
458
|
+
|
|
459
459
|
// Insert before settings button
|
|
460
460
|
const settingsButton = document.getElementById('settingsToggle');
|
|
461
461
|
if (settingsButton) {
|
|
@@ -477,7 +477,7 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
477
477
|
this.togglePanel();
|
|
478
478
|
});
|
|
479
479
|
}
|
|
480
|
-
|
|
480
|
+
|
|
481
481
|
// Close panel
|
|
482
482
|
const closeButton = document.getElementById('closeMemoryPanel');
|
|
483
483
|
if (closeButton) {
|
|
@@ -485,33 +485,33 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
485
485
|
this.hidePanel();
|
|
486
486
|
});
|
|
487
487
|
}
|
|
488
|
-
|
|
488
|
+
|
|
489
489
|
// Refresh and export
|
|
490
490
|
const refreshBtn = document.getElementById('refreshMemoryData');
|
|
491
491
|
if (refreshBtn) {
|
|
492
492
|
refreshBtn.addEventListener('click', () => this.refreshData());
|
|
493
493
|
}
|
|
494
|
-
|
|
494
|
+
|
|
495
495
|
const exportBtn = document.getElementById('exportMemoryData');
|
|
496
496
|
if (exportBtn) {
|
|
497
497
|
exportBtn.addEventListener('click', () => this.exportData());
|
|
498
498
|
}
|
|
499
|
-
|
|
499
|
+
|
|
500
500
|
// Tab navigation
|
|
501
501
|
const tabButtons = document.querySelectorAll('.memory-tab');
|
|
502
|
-
tabButtons.forEach(button => {
|
|
502
|
+
tabButtons.forEach((button) => {
|
|
503
503
|
button.addEventListener('click', () => {
|
|
504
504
|
const tabId = button.getAttribute('data-tab');
|
|
505
505
|
this.switchTab(tabId);
|
|
506
506
|
});
|
|
507
507
|
});
|
|
508
|
-
|
|
508
|
+
|
|
509
509
|
// Tool execution
|
|
510
510
|
this.elements.panel.addEventListener('click', (e) => {
|
|
511
511
|
if (e.target.classList.contains('tool-action-btn')) {
|
|
512
512
|
const action = e.target.dataset.action;
|
|
513
513
|
const toolName = e.target.dataset.tool;
|
|
514
|
-
|
|
514
|
+
|
|
515
515
|
if (action === 'execute') {
|
|
516
516
|
this.executeTool(toolName);
|
|
517
517
|
} else if (action === 'configure') {
|
|
@@ -519,7 +519,7 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
521
|
});
|
|
522
|
-
|
|
522
|
+
|
|
523
523
|
// Management actions
|
|
524
524
|
this.setupManagementActions();
|
|
525
525
|
}
|
|
@@ -533,29 +533,29 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
533
533
|
if (createBackupBtn) {
|
|
534
534
|
createBackupBtn.addEventListener('click', () => this.createBackup());
|
|
535
535
|
}
|
|
536
|
-
|
|
536
|
+
|
|
537
537
|
const scheduleBackupBtn = document.getElementById('scheduleBackup');
|
|
538
538
|
if (scheduleBackupBtn) {
|
|
539
539
|
scheduleBackupBtn.addEventListener('click', () => this.scheduleBackup());
|
|
540
540
|
}
|
|
541
|
-
|
|
541
|
+
|
|
542
542
|
// Cache actions
|
|
543
543
|
const clearCacheBtn = document.getElementById('clearCache');
|
|
544
544
|
if (clearCacheBtn) {
|
|
545
545
|
clearCacheBtn.addEventListener('click', () => this.clearCache());
|
|
546
546
|
}
|
|
547
|
-
|
|
547
|
+
|
|
548
548
|
const optimizeCacheBtn = document.getElementById('optimizeCache');
|
|
549
549
|
if (optimizeCacheBtn) {
|
|
550
550
|
optimizeCacheBtn.addEventListener('click', () => this.optimizeCache());
|
|
551
551
|
}
|
|
552
|
-
|
|
552
|
+
|
|
553
553
|
// Namespace actions
|
|
554
554
|
const createNamespaceBtn = document.getElementById('createNamespace');
|
|
555
555
|
if (createNamespaceBtn) {
|
|
556
556
|
createNamespaceBtn.addEventListener('click', () => this.createNamespace());
|
|
557
557
|
}
|
|
558
|
-
|
|
558
|
+
|
|
559
559
|
const cleanupNamespacesBtn = document.getElementById('cleanupNamespaces');
|
|
560
560
|
if (cleanupNamespacesBtn) {
|
|
561
561
|
cleanupNamespacesBtn.addEventListener('click', () => this.cleanupNamespaces());
|
|
@@ -570,15 +570,15 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
570
570
|
this.wsClient.on('memory_backup_progress', (data) => {
|
|
571
571
|
this.updateBackupProgress(data);
|
|
572
572
|
});
|
|
573
|
-
|
|
573
|
+
|
|
574
574
|
this.wsClient.on('memory_operation_complete', (data) => {
|
|
575
575
|
this.handleOperationComplete(data);
|
|
576
576
|
});
|
|
577
|
-
|
|
577
|
+
|
|
578
578
|
this.wsClient.on('memory_metrics_update', (data) => {
|
|
579
579
|
this.updateMemoryMetrics(data);
|
|
580
580
|
});
|
|
581
|
-
|
|
581
|
+
|
|
582
582
|
this.wsClient.on('cache_stats_update', (data) => {
|
|
583
583
|
this.updateCacheStats(data);
|
|
584
584
|
});
|
|
@@ -592,16 +592,15 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
592
592
|
try {
|
|
593
593
|
// Load memory status
|
|
594
594
|
await this.checkMemoryStatus();
|
|
595
|
-
|
|
595
|
+
|
|
596
596
|
// Load memory metrics
|
|
597
597
|
await this.loadMemoryMetrics();
|
|
598
|
-
|
|
598
|
+
|
|
599
599
|
// Load backup list
|
|
600
600
|
await this.loadBackupList();
|
|
601
|
-
|
|
601
|
+
|
|
602
602
|
// Load cache statistics
|
|
603
603
|
await this.loadCacheStats();
|
|
604
|
-
|
|
605
604
|
} catch (error) {
|
|
606
605
|
console.error('Failed to load initial memory data:', error);
|
|
607
606
|
}
|
|
@@ -617,22 +616,21 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
617
616
|
console.error('Unknown tool:', toolId);
|
|
618
617
|
return;
|
|
619
618
|
}
|
|
620
|
-
|
|
619
|
+
|
|
621
620
|
this.updateStatus(`Executing ${tool.name}...`, 'processing');
|
|
622
621
|
this.activeOperations.add(toolId);
|
|
623
|
-
|
|
622
|
+
|
|
624
623
|
// Send notification to coordination system
|
|
625
624
|
await this.sendCoordinationNotification(`Starting ${tool.name}`);
|
|
626
|
-
|
|
625
|
+
|
|
627
626
|
// Execute the tool
|
|
628
627
|
const result = await this.callMemoryTool(toolId);
|
|
629
628
|
this.handleToolResult(toolId, result);
|
|
630
|
-
|
|
629
|
+
|
|
631
630
|
// Notify completion
|
|
632
631
|
await this.sendCoordinationNotification(`${tool.name} completed successfully`);
|
|
633
|
-
|
|
632
|
+
|
|
634
633
|
this.emit('tool_executed', { toolId });
|
|
635
|
-
|
|
636
634
|
} catch (error) {
|
|
637
635
|
this.updateStatus('Tool execution failed', 'error');
|
|
638
636
|
this.emit('tool_error', { toolId, error });
|
|
@@ -659,7 +657,7 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
659
657
|
showToolConfiguration(toolId) {
|
|
660
658
|
const tool = this.memoryTools[toolId];
|
|
661
659
|
if (!tool) return;
|
|
662
|
-
|
|
660
|
+
|
|
663
661
|
// Create configuration modal
|
|
664
662
|
const modal = document.createElement('div');
|
|
665
663
|
modal.className = 'tool-config-modal';
|
|
@@ -682,7 +680,7 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
682
680
|
</div>
|
|
683
681
|
</div>
|
|
684
682
|
`;
|
|
685
|
-
|
|
683
|
+
|
|
686
684
|
document.body.appendChild(modal);
|
|
687
685
|
}
|
|
688
686
|
|
|
@@ -704,7 +702,7 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
704
702
|
<input type="checkbox" />
|
|
705
703
|
</div>
|
|
706
704
|
`;
|
|
707
|
-
|
|
705
|
+
|
|
708
706
|
const toolSpecificConfig = {
|
|
709
707
|
memory_backup: `
|
|
710
708
|
<div class="config-row">
|
|
@@ -743,9 +741,9 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
743
741
|
<label>TTL (seconds):</label>
|
|
744
742
|
<input type="number" value="3600" />
|
|
745
743
|
</div>
|
|
746
|
-
|
|
744
|
+
`,
|
|
747
745
|
};
|
|
748
|
-
|
|
746
|
+
|
|
749
747
|
return commonConfig + (toolSpecificConfig[toolId] || '');
|
|
750
748
|
}
|
|
751
749
|
|
|
@@ -759,14 +757,14 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
759
757
|
const response = await this.wsClient.sendRequest({
|
|
760
758
|
type: 'tool_execute',
|
|
761
759
|
tool: `mcp__ruv-swarm__${toolId}`,
|
|
762
|
-
params: params
|
|
760
|
+
params: params,
|
|
763
761
|
});
|
|
764
762
|
return response;
|
|
765
763
|
} catch (error) {
|
|
766
764
|
console.warn(`WebSocket failed for ${toolId}, trying MCP...`);
|
|
767
765
|
}
|
|
768
766
|
}
|
|
769
|
-
|
|
767
|
+
|
|
770
768
|
// Try MCP tools
|
|
771
769
|
try {
|
|
772
770
|
const mcpResponse = await this.callMCPTool(toolId, params);
|
|
@@ -788,14 +786,14 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
788
786
|
memory_sync: 'memory_usage',
|
|
789
787
|
memory_analytics: 'memory_usage',
|
|
790
788
|
cache_manage: 'memory_usage',
|
|
791
|
-
state_snapshot: 'memory_usage'
|
|
789
|
+
state_snapshot: 'memory_usage',
|
|
792
790
|
};
|
|
793
|
-
|
|
791
|
+
|
|
794
792
|
const mcpFunction = mcpMapping[toolId];
|
|
795
793
|
if (!mcpFunction) {
|
|
796
794
|
throw new Error(`No MCP mapping for ${toolId}`);
|
|
797
795
|
}
|
|
798
|
-
|
|
796
|
+
|
|
799
797
|
// This would be implemented when MCP tools are available
|
|
800
798
|
return { success: true, data: {}, mock: true };
|
|
801
799
|
}
|
|
@@ -805,7 +803,7 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
805
803
|
*/
|
|
806
804
|
getMockResponse(toolId, params) {
|
|
807
805
|
const timestamp = new Date().toISOString();
|
|
808
|
-
|
|
806
|
+
|
|
809
807
|
switch (toolId) {
|
|
810
808
|
case 'memory_backup':
|
|
811
809
|
return {
|
|
@@ -813,62 +811,62 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
813
811
|
backupId: `backup-${Date.now()}`,
|
|
814
812
|
size: '45.2 MB',
|
|
815
813
|
timestamp,
|
|
816
|
-
location: '/backups/memory-backup.gz'
|
|
814
|
+
location: '/backups/memory-backup.gz',
|
|
817
815
|
};
|
|
818
|
-
|
|
816
|
+
|
|
819
817
|
case 'memory_restore':
|
|
820
818
|
return {
|
|
821
819
|
success: true,
|
|
822
820
|
restored: true,
|
|
823
821
|
timestamp,
|
|
824
|
-
itemsRestored: 1247
|
|
822
|
+
itemsRestored: 1247,
|
|
825
823
|
};
|
|
826
|
-
|
|
824
|
+
|
|
827
825
|
case 'memory_compress':
|
|
828
826
|
return {
|
|
829
827
|
success: true,
|
|
830
828
|
originalSize: '89.4 MB',
|
|
831
829
|
compressedSize: '23.1 MB',
|
|
832
830
|
compressionRatio: 0.26,
|
|
833
|
-
algorithm: 'gzip'
|
|
831
|
+
algorithm: 'gzip',
|
|
834
832
|
};
|
|
835
|
-
|
|
833
|
+
|
|
836
834
|
case 'memory_sync':
|
|
837
835
|
return {
|
|
838
836
|
success: true,
|
|
839
837
|
synced: true,
|
|
840
838
|
timestamp,
|
|
841
839
|
itemsSynced: 342,
|
|
842
|
-
conflicts: 0
|
|
840
|
+
conflicts: 0,
|
|
843
841
|
};
|
|
844
|
-
|
|
842
|
+
|
|
845
843
|
case 'cache_manage':
|
|
846
844
|
return {
|
|
847
845
|
success: true,
|
|
848
846
|
action: 'optimized',
|
|
849
847
|
entriesProcessed: 1523,
|
|
850
848
|
spaceSaved: '12.7 MB',
|
|
851
|
-
hitRateImprovement: 0.08
|
|
849
|
+
hitRateImprovement: 0.08,
|
|
852
850
|
};
|
|
853
|
-
|
|
851
|
+
|
|
854
852
|
case 'state_snapshot':
|
|
855
853
|
return {
|
|
856
854
|
success: true,
|
|
857
855
|
snapshotId: `snapshot-${Date.now()}`,
|
|
858
856
|
timestamp,
|
|
859
857
|
size: '8.9 MB',
|
|
860
|
-
components: 15
|
|
858
|
+
components: 15,
|
|
861
859
|
};
|
|
862
|
-
|
|
860
|
+
|
|
863
861
|
case 'context_restore':
|
|
864
862
|
return {
|
|
865
863
|
success: true,
|
|
866
864
|
contextRestored: true,
|
|
867
865
|
timestamp,
|
|
868
866
|
itemsRestored: 89,
|
|
869
|
-
contextSize: '2.3 MB'
|
|
867
|
+
contextSize: '2.3 MB',
|
|
870
868
|
};
|
|
871
|
-
|
|
869
|
+
|
|
872
870
|
case 'memory_analytics':
|
|
873
871
|
return {
|
|
874
872
|
success: true,
|
|
@@ -881,30 +879,30 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
881
879
|
insights: [
|
|
882
880
|
'Memory usage is optimal',
|
|
883
881
|
'Cache hit rate is excellent',
|
|
884
|
-
'No memory leaks detected'
|
|
885
|
-
]
|
|
886
|
-
}
|
|
882
|
+
'No memory leaks detected',
|
|
883
|
+
],
|
|
884
|
+
},
|
|
887
885
|
};
|
|
888
|
-
|
|
886
|
+
|
|
889
887
|
case 'memory_persist':
|
|
890
888
|
return {
|
|
891
889
|
success: true,
|
|
892
890
|
persisted: true,
|
|
893
891
|
timestamp,
|
|
894
892
|
sessionId: `session-${Date.now()}`,
|
|
895
|
-
size: '15.7 MB'
|
|
893
|
+
size: '15.7 MB',
|
|
896
894
|
};
|
|
897
|
-
|
|
895
|
+
|
|
898
896
|
case 'memory_namespace':
|
|
899
897
|
return {
|
|
900
898
|
success: true,
|
|
901
899
|
namespaces: [
|
|
902
900
|
{ id: 'default', size: '12.3 MB', items: 245 },
|
|
903
901
|
{ id: 'cache', size: '8.7 MB', items: 156 },
|
|
904
|
-
{ id: 'session', size: '3.2 MB', items: 78 }
|
|
905
|
-
]
|
|
902
|
+
{ id: 'session', size: '3.2 MB', items: 78 },
|
|
903
|
+
],
|
|
906
904
|
};
|
|
907
|
-
|
|
905
|
+
|
|
908
906
|
default:
|
|
909
907
|
return { success: true, data: {}, mock: true };
|
|
910
908
|
}
|
|
@@ -920,7 +918,7 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
920
918
|
type: 'coordination_notify',
|
|
921
919
|
message: message,
|
|
922
920
|
timestamp: new Date().toISOString(),
|
|
923
|
-
agent: 'memory-tools'
|
|
921
|
+
agent: 'memory-tools',
|
|
924
922
|
});
|
|
925
923
|
}
|
|
926
924
|
} catch (error) {
|
|
@@ -934,11 +932,11 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
934
932
|
handleToolResult(toolId, result) {
|
|
935
933
|
const tool = this.memoryTools[toolId];
|
|
936
934
|
if (!tool) return;
|
|
937
|
-
|
|
935
|
+
|
|
938
936
|
if (result && result.success) {
|
|
939
937
|
this.updateStatus(`${tool.name} completed successfully`, 'success');
|
|
940
938
|
this.updateOperationHistory(toolId, result);
|
|
941
|
-
|
|
939
|
+
|
|
942
940
|
// Refresh relevant data
|
|
943
941
|
this.refreshData();
|
|
944
942
|
} else {
|
|
@@ -956,9 +954,9 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
956
954
|
toolName: this.memoryTools[toolId].name,
|
|
957
955
|
result: result,
|
|
958
956
|
timestamp: new Date().toISOString(),
|
|
959
|
-
success: result.success
|
|
957
|
+
success: result.success,
|
|
960
958
|
};
|
|
961
|
-
|
|
959
|
+
|
|
962
960
|
// Add to timeline
|
|
963
961
|
this.addToTimeline(operation);
|
|
964
962
|
}
|
|
@@ -969,11 +967,11 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
969
967
|
addToTimeline(operation) {
|
|
970
968
|
const timeline = document.getElementById('operationsTimeline');
|
|
971
969
|
if (!timeline) return;
|
|
972
|
-
|
|
970
|
+
|
|
973
971
|
if (timeline.querySelector('.timeline-placeholder')) {
|
|
974
972
|
timeline.innerHTML = '';
|
|
975
973
|
}
|
|
976
|
-
|
|
974
|
+
|
|
977
975
|
const operationElement = document.createElement('div');
|
|
978
976
|
operationElement.className = `timeline-item ${operation.success ? 'success' : 'error'}`;
|
|
979
977
|
operationElement.innerHTML = `
|
|
@@ -983,9 +981,9 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
983
981
|
<div class="timeline-details">${this.formatOperationResult(operation.result)}</div>
|
|
984
982
|
</div>
|
|
985
983
|
`;
|
|
986
|
-
|
|
984
|
+
|
|
987
985
|
timeline.insertBefore(operationElement, timeline.firstChild);
|
|
988
|
-
|
|
986
|
+
|
|
989
987
|
// Keep only last 20 operations
|
|
990
988
|
const items = timeline.querySelectorAll('.timeline-item');
|
|
991
989
|
if (items.length > 20) {
|
|
@@ -998,7 +996,8 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
998
996
|
*/
|
|
999
997
|
formatOperationResult(result) {
|
|
1000
998
|
if (result.size) return `Size: ${result.size}`;
|
|
1001
|
-
if (result.compressionRatio)
|
|
999
|
+
if (result.compressionRatio)
|
|
1000
|
+
return `Compression: ${(result.compressionRatio * 100).toFixed(1)}%`;
|
|
1002
1001
|
if (result.itemsSynced) return `Synced: ${result.itemsSynced} items`;
|
|
1003
1002
|
if (result.spaceSaved) return `Space saved: ${result.spaceSaved}`;
|
|
1004
1003
|
return 'Operation completed';
|
|
@@ -1010,11 +1009,11 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
1010
1009
|
updateStatus(text, type = 'info') {
|
|
1011
1010
|
const statusText = document.getElementById('memoryStatusText');
|
|
1012
1011
|
const statusIndicator = document.getElementById('memoryStatusIndicator');
|
|
1013
|
-
|
|
1012
|
+
|
|
1014
1013
|
if (statusText) {
|
|
1015
1014
|
statusText.textContent = text;
|
|
1016
1015
|
}
|
|
1017
|
-
|
|
1016
|
+
|
|
1018
1017
|
if (statusIndicator) {
|
|
1019
1018
|
statusIndicator.className = `status-indicator ${type}`;
|
|
1020
1019
|
}
|
|
@@ -1068,34 +1067,38 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
1068
1067
|
const activeMemoryElement = document.getElementById('activeMemory');
|
|
1069
1068
|
const efficiencyElement = document.getElementById('memoryEfficiency');
|
|
1070
1069
|
const hitRateElement = document.getElementById('cacheHitRate');
|
|
1071
|
-
|
|
1070
|
+
|
|
1072
1071
|
if (totalMemoryElement) {
|
|
1073
1072
|
totalMemoryElement.textContent = `${metrics.totalMemory.toFixed(1)} MB`;
|
|
1074
1073
|
}
|
|
1075
|
-
|
|
1074
|
+
|
|
1076
1075
|
if (activeMemoryElement) {
|
|
1077
1076
|
activeMemoryElement.textContent = `${metrics.activeMemory.toFixed(1)} MB`;
|
|
1078
1077
|
}
|
|
1079
|
-
|
|
1078
|
+
|
|
1080
1079
|
if (efficiencyElement) {
|
|
1081
1080
|
efficiencyElement.textContent = `${(metrics.efficiency * 100).toFixed(1)}%`;
|
|
1082
1081
|
}
|
|
1083
|
-
|
|
1082
|
+
|
|
1084
1083
|
if (hitRateElement) {
|
|
1085
1084
|
hitRateElement.textContent = `${(metrics.hitRate * 100).toFixed(1)}%`;
|
|
1086
1085
|
}
|
|
1087
|
-
|
|
1086
|
+
|
|
1088
1087
|
// Update insights
|
|
1089
1088
|
const insightsContainer = document.getElementById('performanceInsights');
|
|
1090
1089
|
if (insightsContainer && metrics.insights) {
|
|
1091
1090
|
insightsContainer.innerHTML = `
|
|
1092
1091
|
<div class="insights-list">
|
|
1093
|
-
${metrics.insights
|
|
1092
|
+
${metrics.insights
|
|
1093
|
+
.map(
|
|
1094
|
+
(insight) => `
|
|
1094
1095
|
<div class="insight-item">
|
|
1095
1096
|
<span class="insight-icon">💡</span>
|
|
1096
1097
|
<span class="insight-text">${insight}</span>
|
|
1097
1098
|
</div>
|
|
1098
|
-
|
|
1099
|
+
`,
|
|
1100
|
+
)
|
|
1101
|
+
.join('')}
|
|
1099
1102
|
</div>
|
|
1100
1103
|
`;
|
|
1101
1104
|
}
|
|
@@ -1108,11 +1111,26 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
1108
1111
|
try {
|
|
1109
1112
|
// Mock backup data
|
|
1110
1113
|
const backups = [
|
|
1111
|
-
{
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
+
{
|
|
1115
|
+
id: 'backup-1',
|
|
1116
|
+
name: 'Daily Backup',
|
|
1117
|
+
size: '45.2 MB',
|
|
1118
|
+
date: new Date(Date.now() - 86400000).toISOString(),
|
|
1119
|
+
},
|
|
1120
|
+
{
|
|
1121
|
+
id: 'backup-2',
|
|
1122
|
+
name: 'Weekly Backup',
|
|
1123
|
+
size: '98.7 MB',
|
|
1124
|
+
date: new Date(Date.now() - 604800000).toISOString(),
|
|
1125
|
+
},
|
|
1126
|
+
{
|
|
1127
|
+
id: 'backup-3',
|
|
1128
|
+
name: 'Manual Backup',
|
|
1129
|
+
size: '23.1 MB',
|
|
1130
|
+
date: new Date(Date.now() - 3600000).toISOString(),
|
|
1131
|
+
},
|
|
1114
1132
|
];
|
|
1115
|
-
|
|
1133
|
+
|
|
1116
1134
|
this.renderBackupList(backups);
|
|
1117
1135
|
} catch (error) {
|
|
1118
1136
|
console.error('Failed to load backup list:', error);
|
|
@@ -1125,13 +1143,15 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
1125
1143
|
renderBackupList(backups) {
|
|
1126
1144
|
const backupList = document.getElementById('backupList');
|
|
1127
1145
|
if (!backupList) return;
|
|
1128
|
-
|
|
1146
|
+
|
|
1129
1147
|
if (backups.length === 0) {
|
|
1130
1148
|
backupList.innerHTML = '<div class="backups-placeholder">No backups available</div>';
|
|
1131
1149
|
return;
|
|
1132
1150
|
}
|
|
1133
|
-
|
|
1134
|
-
backupList.innerHTML = backups
|
|
1151
|
+
|
|
1152
|
+
backupList.innerHTML = backups
|
|
1153
|
+
.map(
|
|
1154
|
+
(backup) => `
|
|
1135
1155
|
<div class="backup-item">
|
|
1136
1156
|
<div class="backup-info">
|
|
1137
1157
|
<div class="backup-name">${backup.name}</div>
|
|
@@ -1152,10 +1172,12 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
1152
1172
|
</button>
|
|
1153
1173
|
</div>
|
|
1154
1174
|
</div>
|
|
1155
|
-
|
|
1156
|
-
|
|
1175
|
+
`,
|
|
1176
|
+
)
|
|
1177
|
+
.join('');
|
|
1178
|
+
|
|
1157
1179
|
// Add event listeners for backup actions
|
|
1158
|
-
backupList.querySelectorAll('.backup-action-btn').forEach(btn => {
|
|
1180
|
+
backupList.querySelectorAll('.backup-action-btn').forEach((btn) => {
|
|
1159
1181
|
btn.addEventListener('click', (e) => {
|
|
1160
1182
|
const action = e.currentTarget.dataset.action;
|
|
1161
1183
|
const backupId = e.currentTarget.dataset.backup;
|
|
@@ -1196,7 +1218,7 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
1196
1218
|
this.updateCacheStats({
|
|
1197
1219
|
size: '24.7 MB',
|
|
1198
1220
|
hitRate: 0.94,
|
|
1199
|
-
entries: 1523
|
|
1221
|
+
entries: 1523,
|
|
1200
1222
|
});
|
|
1201
1223
|
}
|
|
1202
1224
|
} catch (error) {
|
|
@@ -1211,15 +1233,15 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
1211
1233
|
const cacheSizeElement = document.getElementById('cacheSize');
|
|
1212
1234
|
const hitRateElement = document.getElementById('cacheHitRate2');
|
|
1213
1235
|
const entriesElement = document.getElementById('cacheEntries');
|
|
1214
|
-
|
|
1236
|
+
|
|
1215
1237
|
if (cacheSizeElement) {
|
|
1216
1238
|
cacheSizeElement.textContent = stats.size;
|
|
1217
1239
|
}
|
|
1218
|
-
|
|
1240
|
+
|
|
1219
1241
|
if (hitRateElement) {
|
|
1220
1242
|
hitRateElement.textContent = `${(stats.hitRate * 100).toFixed(1)}%`;
|
|
1221
1243
|
}
|
|
1222
|
-
|
|
1244
|
+
|
|
1223
1245
|
if (entriesElement) {
|
|
1224
1246
|
entriesElement.textContent = stats.entries;
|
|
1225
1247
|
}
|
|
@@ -1230,7 +1252,7 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
1230
1252
|
*/
|
|
1231
1253
|
async createBackup() {
|
|
1232
1254
|
this.updateStatus('Creating backup...', 'processing');
|
|
1233
|
-
|
|
1255
|
+
|
|
1234
1256
|
try {
|
|
1235
1257
|
const result = await this.callMemoryTool('memory_backup');
|
|
1236
1258
|
if (result && result.success) {
|
|
@@ -1254,7 +1276,7 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
1254
1276
|
async clearCache() {
|
|
1255
1277
|
if (confirm('Are you sure you want to clear the cache?')) {
|
|
1256
1278
|
this.updateStatus('Clearing cache...', 'processing');
|
|
1257
|
-
|
|
1279
|
+
|
|
1258
1280
|
try {
|
|
1259
1281
|
const result = await this.callMemoryTool('cache_manage', { action: 'clear' });
|
|
1260
1282
|
if (result && result.success) {
|
|
@@ -1270,7 +1292,7 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
1270
1292
|
|
|
1271
1293
|
async optimizeCache() {
|
|
1272
1294
|
this.updateStatus('Optimizing cache...', 'processing');
|
|
1273
|
-
|
|
1295
|
+
|
|
1274
1296
|
try {
|
|
1275
1297
|
const result = await this.callMemoryTool('cache_manage', { action: 'optimize' });
|
|
1276
1298
|
if (result && result.success) {
|
|
@@ -1287,7 +1309,7 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
1287
1309
|
const name = prompt('Enter namespace name:');
|
|
1288
1310
|
if (name) {
|
|
1289
1311
|
this.updateStatus(`Creating namespace: ${name}`, 'processing');
|
|
1290
|
-
|
|
1312
|
+
|
|
1291
1313
|
try {
|
|
1292
1314
|
const result = await this.callMemoryTool('memory_namespace', { action: 'create', name });
|
|
1293
1315
|
if (result && result.success) {
|
|
@@ -1303,7 +1325,7 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
1303
1325
|
async cleanupNamespaces() {
|
|
1304
1326
|
if (confirm('Clean up unused namespaces?')) {
|
|
1305
1327
|
this.updateStatus('Cleaning up namespaces...', 'processing');
|
|
1306
|
-
|
|
1328
|
+
|
|
1307
1329
|
try {
|
|
1308
1330
|
const result = await this.callMemoryTool('memory_namespace', { action: 'cleanup' });
|
|
1309
1331
|
if (result && result.success) {
|
|
@@ -1319,7 +1341,7 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
1319
1341
|
async restoreBackup(backupId) {
|
|
1320
1342
|
if (confirm('Are you sure you want to restore this backup?')) {
|
|
1321
1343
|
this.updateStatus('Restoring backup...', 'processing');
|
|
1322
|
-
|
|
1344
|
+
|
|
1323
1345
|
try {
|
|
1324
1346
|
const result = await this.callMemoryTool('memory_restore', { backupId });
|
|
1325
1347
|
if (result && result.success) {
|
|
@@ -1357,7 +1379,7 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
1357
1379
|
const panel = this.elements.panel;
|
|
1358
1380
|
if (panel) {
|
|
1359
1381
|
panel.classList.toggle('hidden');
|
|
1360
|
-
|
|
1382
|
+
|
|
1361
1383
|
if (!panel.classList.contains('hidden')) {
|
|
1362
1384
|
this.refreshData();
|
|
1363
1385
|
}
|
|
@@ -1385,16 +1407,16 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
1385
1407
|
switchTab(tabId) {
|
|
1386
1408
|
// Update tab buttons
|
|
1387
1409
|
const tabButtons = document.querySelectorAll('.memory-tab');
|
|
1388
|
-
tabButtons.forEach(button => {
|
|
1410
|
+
tabButtons.forEach((button) => {
|
|
1389
1411
|
button.classList.toggle('active', button.getAttribute('data-tab') === tabId);
|
|
1390
1412
|
});
|
|
1391
|
-
|
|
1413
|
+
|
|
1392
1414
|
// Update tab contents
|
|
1393
1415
|
const tabContents = document.querySelectorAll('.memory-tab-content');
|
|
1394
|
-
tabContents.forEach(content => {
|
|
1416
|
+
tabContents.forEach((content) => {
|
|
1395
1417
|
content.classList.toggle('active', content.getAttribute('data-tab') === tabId);
|
|
1396
1418
|
});
|
|
1397
|
-
|
|
1419
|
+
|
|
1398
1420
|
// Load tab-specific data
|
|
1399
1421
|
this.loadTabData(tabId);
|
|
1400
1422
|
}
|
|
@@ -1432,9 +1454,9 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
1432
1454
|
backupHistory: Array.from(this.backupProgress.entries()),
|
|
1433
1455
|
cacheMetrics: this.cacheMetrics,
|
|
1434
1456
|
activeOperations: Array.from(this.activeOperations),
|
|
1435
|
-
stats: this.getStats()
|
|
1457
|
+
stats: this.getStats(),
|
|
1436
1458
|
};
|
|
1437
|
-
|
|
1459
|
+
|
|
1438
1460
|
// Create download
|
|
1439
1461
|
const blob = new Blob([JSON.stringify(data, null, 2)], { type: 'application/json' });
|
|
1440
1462
|
const url = URL.createObjectURL(blob);
|
|
@@ -1445,7 +1467,7 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
1445
1467
|
a.click();
|
|
1446
1468
|
document.body.removeChild(a);
|
|
1447
1469
|
URL.revokeObjectURL(url);
|
|
1448
|
-
|
|
1470
|
+
|
|
1449
1471
|
this.updateStatus('Data exported successfully', 'success');
|
|
1450
1472
|
} catch (error) {
|
|
1451
1473
|
console.error('Failed to export data:', error);
|
|
@@ -1462,7 +1484,7 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
1462
1484
|
activeOperations: this.activeOperations.size,
|
|
1463
1485
|
toolsAvailable: Object.keys(this.memoryTools).length,
|
|
1464
1486
|
backupsCount: this.backupProgress.size,
|
|
1465
|
-
memoryMetrics: this.memoryStats.size
|
|
1487
|
+
memoryMetrics: this.memoryStats.size,
|
|
1466
1488
|
};
|
|
1467
1489
|
}
|
|
1468
1490
|
|
|
@@ -1473,12 +1495,12 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
1473
1495
|
if (this.elements.panel) {
|
|
1474
1496
|
this.elements.panel.remove();
|
|
1475
1497
|
}
|
|
1476
|
-
|
|
1498
|
+
|
|
1477
1499
|
const toggleButton = document.getElementById('memoryToggle');
|
|
1478
1500
|
if (toggleButton) {
|
|
1479
1501
|
toggleButton.remove();
|
|
1480
1502
|
}
|
|
1481
|
-
|
|
1503
|
+
|
|
1482
1504
|
this.activeOperations.clear();
|
|
1483
1505
|
this.backupProgress.clear();
|
|
1484
1506
|
this.memoryStats.clear();
|
|
@@ -1487,4 +1509,4 @@ export class MemoryToolsPanel extends EventEmitter {
|
|
|
1487
1509
|
}
|
|
1488
1510
|
|
|
1489
1511
|
// Export for module usage
|
|
1490
|
-
export default MemoryToolsPanel;
|
|
1512
|
+
export default MemoryToolsPanel;
|