claude-flow 2.7.0-alpha.9 → 2.7.0
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/.claude/settings.reasoningbank-example.json +124 -0
- package/.claude/settings.reasoningbank-minimal.json +40 -0
- package/.claude/skills/agentdb-advanced/SKILL.md +550 -0
- package/.claude/skills/agentdb-learning/SKILL.md +545 -0
- package/.claude/skills/agentdb-memory-patterns/SKILL.md +339 -0
- package/.claude/skills/agentdb-optimization/SKILL.md +509 -0
- package/.claude/skills/agentdb-vector-search/SKILL.md +339 -0
- package/.claude/skills/flow-nexus-neural/SKILL.md +738 -0
- package/.claude/skills/flow-nexus-platform/SKILL.md +1157 -0
- package/.claude/skills/flow-nexus-swarm/SKILL.md +610 -0
- package/.claude/skills/github-code-review/SKILL.md +1140 -0
- package/.claude/skills/github-multi-repo/SKILL.md +874 -0
- package/.claude/skills/github-project-management/SKILL.md +1277 -0
- package/.claude/skills/github-release-management/SKILL.md +1081 -0
- package/.claude/skills/github-workflow-automation/SKILL.md +1065 -0
- package/.claude/skills/hive-mind-advanced/SKILL.md +712 -0
- package/.claude/skills/hooks-automation/SKILL.md +1201 -0
- package/.claude/skills/pair-programming/SKILL.md +1202 -0
- package/.claude/skills/performance-analysis/SKILL.md +563 -0
- package/.claude/skills/reasoningbank-agentdb/SKILL.md +446 -0
- package/.claude/skills/reasoningbank-intelligence/SKILL.md +201 -0
- package/.claude/skills/skill-builder/SKILL.md +910 -0
- package/.claude/skills/sparc-methodology/SKILL.md +1115 -0
- package/.claude/skills/stream-chain/SKILL.md +563 -0
- package/.claude/skills/swarm-advanced/SKILL.md +973 -0
- package/.claude/skills/swarm-orchestration/SKILL.md +179 -0
- package/.claude/skills/verification-quality/SKILL.md +649 -0
- package/.claude/statusline-command.sh +175 -0
- package/.claude/test-reasoningbank-hooks.sh +99 -0
- package/CHANGELOG.md +418 -0
- package/README.md +254 -188
- package/bin/claude-flow +1 -1
- package/dist/agents/agent-loader.d.ts +103 -0
- package/dist/agents/agent-loader.d.ts.map +1 -0
- package/dist/agents/agent-loader.js +220 -0
- package/dist/agents/agent-loader.js.map +1 -0
- package/dist/agents/agent-manager.d.ts +191 -0
- package/dist/agents/agent-manager.d.ts.map +1 -0
- package/dist/agents/agent-manager.js +1405 -0
- package/dist/agents/agent-manager.js.map +1 -0
- package/dist/api/claude-api-errors.d.ts +115 -0
- package/dist/api/claude-api-errors.d.ts.map +1 -0
- package/dist/api/claude-api-errors.js +198 -0
- package/dist/api/claude-api-errors.js.map +1 -0
- package/dist/api/claude-client.d.ts +197 -0
- package/dist/api/claude-client.d.ts.map +1 -0
- package/dist/api/claude-client.js +525 -0
- package/dist/api/claude-client.js.map +1 -0
- package/dist/cli/cli-core.d.ts +52 -0
- package/dist/cli/cli-core.d.ts.map +1 -0
- package/dist/cli/cli-core.js +264 -0
- package/dist/cli/cli-core.js.map +1 -0
- package/dist/cli/command-registry.d.ts +10 -0
- package/dist/cli/command-registry.d.ts.map +1 -0
- package/dist/cli/command-registry.js +1126 -0
- package/dist/cli/command-registry.js.map +1 -0
- package/dist/cli/commander-fix.d.ts +4 -0
- package/dist/cli/commander-fix.d.ts.map +1 -0
- package/dist/cli/commander-fix.js +6 -0
- package/dist/cli/commander-fix.js.map +1 -0
- package/dist/cli/commands/agent.d.ts +6 -0
- package/dist/cli/commands/agent.d.ts.map +1 -0
- package/dist/cli/commands/agent.js +382 -0
- package/dist/cli/commands/agent.js.map +1 -0
- package/dist/cli/commands/config.d.ts +4 -0
- package/dist/cli/commands/config.d.ts.map +1 -0
- package/dist/cli/commands/config.js +88 -0
- package/dist/cli/commands/config.js.map +1 -0
- package/dist/cli/commands/enterprise.d.ts +3 -0
- package/dist/cli/commands/enterprise.d.ts.map +1 -0
- package/dist/cli/commands/enterprise.js +1506 -0
- package/dist/cli/commands/enterprise.js.map +1 -0
- package/dist/cli/commands/help.d.ts +6 -0
- package/dist/cli/commands/help.d.ts.map +1 -0
- package/dist/cli/commands/help.js +936 -0
- package/dist/cli/commands/help.js.map +1 -0
- package/dist/cli/commands/hive-mind/index.d.ts +18 -0
- package/dist/cli/commands/hive-mind/index.d.ts.map +1 -0
- package/dist/cli/commands/hive-mind/index.js +30 -0
- package/dist/cli/commands/hive-mind/index.js.map +1 -0
- package/dist/cli/commands/hive-mind/init.d.ts +9 -0
- package/dist/cli/commands/hive-mind/init.d.ts.map +1 -0
- package/dist/cli/commands/hive-mind/init.js +68 -0
- package/dist/cli/commands/hive-mind/init.js.map +1 -0
- package/dist/cli/commands/hive-mind/pause.d.ts +8 -0
- package/dist/cli/commands/hive-mind/pause.d.ts.map +1 -0
- package/dist/cli/commands/hive-mind/pause.js +81 -0
- package/dist/cli/commands/hive-mind/pause.js.map +1 -0
- package/dist/cli/commands/hive-mind/ps.d.ts +8 -0
- package/dist/cli/commands/hive-mind/ps.d.ts.map +1 -0
- package/dist/cli/commands/hive-mind/ps.js +120 -0
- package/dist/cli/commands/hive-mind/ps.js.map +1 -0
- package/dist/cli/commands/hive-mind/resume.d.ts +8 -0
- package/dist/cli/commands/hive-mind/resume.d.ts.map +1 -0
- package/dist/cli/commands/hive-mind/resume.js +62 -0
- package/dist/cli/commands/hive-mind/resume.js.map +1 -0
- package/dist/cli/commands/hive-mind/spawn.d.ts +9 -0
- package/dist/cli/commands/hive-mind/spawn.d.ts.map +1 -0
- package/dist/cli/commands/hive-mind/spawn.js +174 -0
- package/dist/cli/commands/hive-mind/spawn.js.map +1 -0
- package/dist/cli/commands/hive-mind/status.d.ts +9 -0
- package/dist/cli/commands/hive-mind/status.d.ts.map +1 -0
- package/dist/cli/commands/hive-mind/status.js +204 -0
- package/dist/cli/commands/hive-mind/status.js.map +1 -0
- package/dist/cli/commands/hive-mind/stop.d.ts +8 -0
- package/dist/cli/commands/hive-mind/stop.d.ts.map +1 -0
- package/dist/cli/commands/hive-mind/stop.js +125 -0
- package/dist/cli/commands/hive-mind/stop.js.map +1 -0
- package/dist/cli/commands/hive-mind/task.d.ts +9 -0
- package/dist/cli/commands/hive-mind/task.d.ts.map +1 -0
- package/dist/cli/commands/hive-mind/task.js +294 -0
- package/dist/cli/commands/hive-mind/task.js.map +1 -0
- package/dist/cli/commands/hive-mind/wizard.d.ts +9 -0
- package/dist/cli/commands/hive-mind/wizard.d.ts.map +1 -0
- package/dist/cli/commands/hive-mind/wizard.js +531 -0
- package/dist/cli/commands/hive-mind/wizard.js.map +1 -0
- package/dist/cli/commands/hive.d.ts +6 -0
- package/dist/cli/commands/hive.d.ts.map +1 -0
- package/dist/cli/commands/hive.js +409 -0
- package/dist/cli/commands/hive.js.map +1 -0
- package/dist/cli/commands/index.d.ts +3 -0
- package/dist/cli/commands/index.d.ts.map +1 -0
- package/dist/cli/commands/index.js +2624 -0
- package/dist/cli/commands/index.js.map +1 -0
- package/dist/cli/commands/mcp.d.ts +5 -0
- package/dist/cli/commands/mcp.d.ts.map +1 -0
- package/dist/cli/commands/mcp.js +169 -0
- package/dist/cli/commands/mcp.js.map +1 -0
- package/dist/cli/commands/memory.d.ts +26 -0
- package/dist/cli/commands/memory.d.ts.map +1 -0
- package/dist/cli/commands/memory.js +225 -0
- package/dist/cli/commands/memory.js.map +1 -0
- package/dist/cli/commands/migrate.d.ts +5 -0
- package/dist/cli/commands/migrate.d.ts.map +1 -0
- package/dist/cli/commands/migrate.js +139 -0
- package/dist/cli/commands/migrate.js.map +1 -0
- package/dist/cli/commands/monitor.d.ts +5 -0
- package/dist/cli/commands/monitor.d.ts.map +1 -0
- package/dist/cli/commands/monitor.js +493 -0
- package/dist/cli/commands/monitor.js.map +1 -0
- package/dist/cli/commands/session.d.ts +5 -0
- package/dist/cli/commands/session.d.ts.map +1 -0
- package/dist/cli/commands/session.js +548 -0
- package/dist/cli/commands/session.js.map +1 -0
- package/dist/cli/commands/sparc.d.ts +3 -0
- package/dist/cli/commands/sparc.d.ts.map +1 -0
- package/dist/cli/commands/sparc.js +472 -0
- package/dist/cli/commands/sparc.js.map +1 -0
- package/dist/cli/commands/start/event-emitter.d.ts +13 -0
- package/dist/cli/commands/start/event-emitter.d.ts.map +1 -0
- package/dist/cli/commands/start/event-emitter.js +35 -0
- package/dist/cli/commands/start/event-emitter.js.map +1 -0
- package/dist/cli/commands/start/index.d.ts +10 -0
- package/dist/cli/commands/start/index.d.ts.map +1 -0
- package/dist/cli/commands/start/index.js +9 -0
- package/dist/cli/commands/start/index.js.map +1 -0
- package/dist/cli/commands/start/process-manager.d.ts +31 -0
- package/dist/cli/commands/start/process-manager.d.ts.map +1 -0
- package/dist/cli/commands/start/process-manager.js +283 -0
- package/dist/cli/commands/start/process-manager.js.map +1 -0
- package/dist/cli/commands/start/process-ui-simple.d.ts +29 -0
- package/dist/cli/commands/start/process-ui-simple.d.ts.map +1 -0
- package/dist/cli/commands/start/process-ui-simple.js +334 -0
- package/dist/cli/commands/start/process-ui-simple.js.map +1 -0
- package/dist/cli/commands/start/process-ui.d.ts +5 -0
- package/dist/cli/commands/start/process-ui.d.ts.map +1 -0
- package/dist/cli/commands/start/process-ui.js +5 -0
- package/dist/cli/commands/start/process-ui.js.map +1 -0
- package/dist/cli/commands/start/start-command.d.ts +2 -0
- package/dist/cli/commands/start/start-command.d.ts.map +1 -0
- package/dist/cli/commands/start/start-command.js +462 -0
- package/dist/cli/commands/start/start-command.js.map +1 -0
- package/dist/cli/commands/start/system-monitor.d.ts +25 -0
- package/dist/cli/commands/start/system-monitor.d.ts.map +1 -0
- package/dist/cli/commands/start/system-monitor.js +265 -0
- package/dist/cli/commands/start/system-monitor.js.map +1 -0
- package/dist/cli/commands/start/types.d.ts +64 -0
- package/dist/cli/commands/start/types.d.ts.map +1 -0
- package/dist/cli/commands/start/types.js +22 -0
- package/dist/cli/commands/start/types.js.map +1 -0
- package/dist/cli/commands/start.d.ts +6 -0
- package/dist/cli/commands/start.d.ts.map +1 -0
- package/dist/cli/commands/start.js +6 -0
- package/dist/cli/commands/start.js.map +1 -0
- package/dist/cli/commands/status.d.ts +2 -0
- package/dist/cli/commands/status.d.ts.map +1 -0
- package/dist/cli/commands/status.js +304 -0
- package/dist/cli/commands/status.js.map +1 -0
- package/dist/cli/commands/swarm.d.ts +6 -0
- package/dist/cli/commands/swarm.d.ts.map +1 -0
- package/dist/cli/commands/swarm.js +465 -0
- package/dist/cli/commands/swarm.js.map +1 -0
- package/dist/cli/commands/task.d.ts +2 -0
- package/dist/cli/commands/task.d.ts.map +1 -0
- package/dist/cli/commands/task.js +75 -0
- package/dist/cli/commands/task.js.map +1 -0
- package/dist/cli/commands/workflow.d.ts +2 -0
- package/dist/cli/commands/workflow.d.ts.map +1 -0
- package/dist/cli/commands/workflow.js +624 -0
- package/dist/cli/commands/workflow.js.map +1 -0
- package/dist/cli/completion.d.ts +19 -0
- package/dist/cli/completion.d.ts.map +1 -0
- package/dist/cli/completion.js +545 -0
- package/dist/cli/completion.js.map +1 -0
- package/dist/cli/formatter.d.ts +69 -0
- package/dist/cli/formatter.d.ts.map +1 -0
- package/dist/cli/formatter.js +277 -0
- package/dist/cli/formatter.js.map +1 -0
- package/dist/cli/help-formatter.d.ts +49 -0
- package/dist/cli/help-formatter.d.ts.map +1 -0
- package/dist/cli/help-formatter.js +108 -0
- package/dist/cli/help-formatter.js.map +1 -0
- package/dist/cli/help-text.d.ts +25 -0
- package/dist/cli/help-text.d.ts.map +1 -0
- package/dist/cli/help-text.js +1051 -0
- package/dist/cli/help-text.js.map +1 -0
- package/dist/cli/index-remote.d.ts +7 -0
- package/dist/cli/index-remote.d.ts.map +1 -0
- package/dist/cli/index-remote.js +125 -0
- package/dist/cli/index-remote.js.map +1 -0
- package/dist/cli/index.d.ts +7 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +189 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/node-compat.d.ts +81 -0
- package/dist/cli/node-compat.d.ts.map +1 -0
- package/dist/cli/node-compat.js +229 -0
- package/dist/cli/node-compat.js.map +1 -0
- package/dist/cli/repl.d.ts +5 -0
- package/dist/cli/repl.d.ts.map +1 -0
- package/dist/cli/repl.js +949 -0
- package/dist/cli/repl.js.map +1 -0
- package/dist/cli/runtime-detector.d.ts +128 -0
- package/dist/cli/runtime-detector.d.ts.map +1 -0
- package/dist/cli/runtime-detector.js +267 -0
- package/dist/cli/runtime-detector.js.map +1 -0
- package/dist/cli/simple-cli.d.ts +7 -0
- package/dist/cli/simple-cli.d.ts.map +1 -0
- package/dist/cli/simple-cli.js +3085 -0
- package/dist/cli/simple-cli.js.map +1 -0
- package/dist/cli/simple-commands/agent.d.ts +6 -0
- package/dist/cli/simple-commands/agent.d.ts.map +1 -0
- package/dist/cli/simple-commands/agent.js +128 -0
- package/dist/cli/simple-commands/agent.js.map +1 -0
- package/dist/cli/simple-commands/analysis.d.ts +2 -0
- package/dist/cli/simple-commands/analysis.d.ts.map +1 -0
- package/dist/cli/simple-commands/analysis.js +473 -0
- package/dist/cli/simple-commands/analysis.js.map +1 -0
- package/dist/cli/simple-commands/automation-executor.d.ts +188 -0
- package/dist/cli/simple-commands/automation-executor.d.ts.map +1 -0
- package/dist/cli/simple-commands/automation-executor.js +1383 -0
- package/dist/cli/simple-commands/automation-executor.js.map +1 -0
- package/dist/cli/simple-commands/automation.d.ts +2 -0
- package/dist/cli/simple-commands/automation.d.ts.map +1 -0
- package/dist/cli/simple-commands/automation.js +531 -0
- package/dist/cli/simple-commands/automation.js.map +1 -0
- package/dist/cli/simple-commands/batch-manager.d.ts +2 -0
- package/dist/cli/simple-commands/batch-manager.d.ts.map +1 -0
- package/dist/cli/simple-commands/batch-manager.js +290 -0
- package/dist/cli/simple-commands/batch-manager.js.map +1 -0
- package/dist/cli/simple-commands/claude-telemetry.d.ts +14 -0
- package/dist/cli/simple-commands/claude-telemetry.d.ts.map +1 -0
- package/dist/cli/simple-commands/claude-telemetry.js +263 -0
- package/dist/cli/simple-commands/claude-telemetry.js.map +1 -0
- package/dist/cli/simple-commands/config.d.ts +6 -0
- package/dist/cli/simple-commands/config.d.ts.map +1 -0
- package/dist/cli/simple-commands/config.js +116 -0
- package/dist/cli/simple-commands/config.js.map +1 -0
- package/dist/cli/simple-commands/coordination.d.ts +2 -0
- package/dist/cli/simple-commands/coordination.d.ts.map +1 -0
- package/dist/cli/simple-commands/coordination.js +249 -0
- package/dist/cli/simple-commands/coordination.js.map +1 -0
- package/dist/cli/simple-commands/env-template.d.ts +42 -0
- package/dist/cli/simple-commands/env-template.d.ts.map +1 -0
- package/dist/cli/simple-commands/env-template.js +183 -0
- package/dist/cli/simple-commands/env-template.js.map +1 -0
- package/dist/cli/simple-commands/fix-hook-variables.d.ts +16 -0
- package/dist/cli/simple-commands/fix-hook-variables.d.ts.map +1 -0
- package/dist/cli/simple-commands/fix-hook-variables.js +320 -0
- package/dist/cli/simple-commands/fix-hook-variables.js.map +1 -0
- package/dist/cli/simple-commands/github/init.d.ts +6 -0
- package/dist/cli/simple-commands/github/init.d.ts.map +1 -0
- package/dist/cli/simple-commands/github/init.js +506 -0
- package/dist/cli/simple-commands/github/init.js.map +1 -0
- package/dist/cli/simple-commands/github.d.ts +3 -0
- package/dist/cli/simple-commands/github.d.ts.map +1 -0
- package/dist/cli/simple-commands/github.js +356 -0
- package/dist/cli/simple-commands/github.js.map +1 -0
- package/dist/cli/simple-commands/goal.d.ts +3 -0
- package/dist/cli/simple-commands/goal.d.ts.map +1 -0
- package/dist/cli/simple-commands/goal.js +136 -0
- package/dist/cli/simple-commands/goal.js.map +1 -0
- package/dist/cli/simple-commands/hive-mind/auto-save-middleware.d.ts +68 -0
- package/dist/cli/simple-commands/hive-mind/auto-save-middleware.d.ts.map +1 -0
- package/dist/cli/simple-commands/hive-mind/auto-save-middleware.js +264 -0
- package/dist/cli/simple-commands/hive-mind/auto-save-middleware.js.map +1 -0
- package/dist/cli/simple-commands/hive-mind/communication.d.ts +176 -0
- package/dist/cli/simple-commands/hive-mind/communication.d.ts.map +1 -0
- package/dist/cli/simple-commands/hive-mind/communication.js +611 -0
- package/dist/cli/simple-commands/hive-mind/communication.js.map +1 -0
- package/dist/cli/simple-commands/hive-mind/core.d.ts +306 -0
- package/dist/cli/simple-commands/hive-mind/core.d.ts.map +1 -0
- package/dist/cli/simple-commands/hive-mind/core.js +839 -0
- package/dist/cli/simple-commands/hive-mind/core.js.map +1 -0
- package/dist/cli/simple-commands/hive-mind/db-optimizer.d.ts +32 -0
- package/dist/cli/simple-commands/hive-mind/db-optimizer.d.ts.map +1 -0
- package/dist/cli/simple-commands/hive-mind/db-optimizer.js +702 -0
- package/dist/cli/simple-commands/hive-mind/db-optimizer.js.map +1 -0
- package/dist/cli/simple-commands/hive-mind/mcp-wrapper.d.ts +270 -0
- package/dist/cli/simple-commands/hive-mind/mcp-wrapper.d.ts.map +1 -0
- package/dist/cli/simple-commands/hive-mind/mcp-wrapper.js +1211 -0
- package/dist/cli/simple-commands/hive-mind/mcp-wrapper.js.map +1 -0
- package/dist/cli/simple-commands/hive-mind/memory.d.ts +334 -0
- package/dist/cli/simple-commands/hive-mind/memory.d.ts.map +1 -0
- package/dist/cli/simple-commands/hive-mind/memory.js +1068 -0
- package/dist/cli/simple-commands/hive-mind/memory.js.map +1 -0
- package/dist/cli/simple-commands/hive-mind/metrics-reader.js +274 -0
- package/dist/cli/simple-commands/hive-mind/metrics-reader.js.map +1 -0
- package/dist/cli/simple-commands/hive-mind/performance-optimizer.d.ts +256 -0
- package/dist/cli/simple-commands/hive-mind/performance-optimizer.d.ts.map +1 -0
- package/dist/cli/simple-commands/hive-mind/performance-optimizer.js +520 -0
- package/dist/cli/simple-commands/hive-mind/performance-optimizer.js.map +1 -0
- package/dist/cli/simple-commands/hive-mind/queen.d.ts +235 -0
- package/dist/cli/simple-commands/hive-mind/queen.d.ts.map +1 -0
- package/dist/cli/simple-commands/hive-mind/queen.js +697 -0
- package/dist/cli/simple-commands/hive-mind/queen.js.map +1 -0
- package/dist/cli/simple-commands/hive-mind/session-manager.d.ts +140 -0
- package/dist/cli/simple-commands/hive-mind/session-manager.d.ts.map +1 -0
- package/dist/cli/simple-commands/hive-mind/session-manager.js +1000 -0
- package/dist/cli/simple-commands/hive-mind/session-manager.js.map +1 -0
- package/dist/cli/simple-commands/hive-mind-optimize.d.ts +6 -0
- package/dist/cli/simple-commands/hive-mind-optimize.d.ts.map +1 -0
- package/dist/cli/simple-commands/hive-mind-optimize.js +317 -0
- package/dist/cli/simple-commands/hive-mind-optimize.js.map +1 -0
- package/dist/cli/simple-commands/hive-mind.d.ts +22 -0
- package/dist/cli/simple-commands/hive-mind.d.ts.map +1 -0
- package/dist/cli/simple-commands/hive-mind.js +2722 -0
- package/dist/cli/simple-commands/hive-mind.js.map +1 -0
- package/dist/cli/simple-commands/hook-safety.d.ts +177 -0
- package/dist/cli/simple-commands/hook-safety.d.ts.map +1 -0
- package/dist/cli/simple-commands/hook-safety.js +590 -0
- package/dist/cli/simple-commands/hook-safety.js.map +1 -0
- package/dist/cli/simple-commands/hooks.d.ts +3 -0
- package/dist/cli/simple-commands/hooks.d.ts.map +1 -0
- package/dist/cli/simple-commands/hooks.js +1298 -0
- package/dist/cli/simple-commands/hooks.js.map +1 -0
- package/dist/cli/simple-commands/init/agent-copier.d.ts +65 -0
- package/dist/cli/simple-commands/init/agent-copier.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/agent-copier.js +320 -0
- package/dist/cli/simple-commands/init/agent-copier.js.map +1 -0
- package/dist/cli/simple-commands/init/batch-init.d.ts +137 -0
- package/dist/cli/simple-commands/init/batch-init.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/batch-init.js +558 -0
- package/dist/cli/simple-commands/init/batch-init.js.map +1 -0
- package/dist/cli/simple-commands/init/claude-commands/claude-flow-commands.d.ts +2 -0
- package/dist/cli/simple-commands/init/claude-commands/claude-flow-commands.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/claude-commands/claude-flow-commands.js +433 -0
- package/dist/cli/simple-commands/init/claude-commands/claude-flow-commands.js.map +1 -0
- package/dist/cli/simple-commands/init/claude-commands/optimized-claude-flow-commands.d.ts +2 -0
- package/dist/cli/simple-commands/init/claude-commands/optimized-claude-flow-commands.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/claude-commands/optimized-claude-flow-commands.js +871 -0
- package/dist/cli/simple-commands/init/claude-commands/optimized-claude-flow-commands.js.map +1 -0
- package/dist/cli/simple-commands/init/claude-commands/optimized-slash-commands.d.ts +2 -0
- package/dist/cli/simple-commands/init/claude-commands/optimized-slash-commands.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/claude-commands/optimized-slash-commands.js +332 -0
- package/dist/cli/simple-commands/init/claude-commands/optimized-slash-commands.js.map +1 -0
- package/dist/cli/simple-commands/init/claude-commands/optimized-sparc-commands.d.ts +3 -0
- package/dist/cli/simple-commands/init/claude-commands/optimized-sparc-commands.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/claude-commands/optimized-sparc-commands.js +488 -0
- package/dist/cli/simple-commands/init/claude-commands/optimized-sparc-commands.js.map +1 -0
- package/dist/cli/simple-commands/init/claude-commands/slash-commands.d.ts +2 -0
- package/dist/cli/simple-commands/init/claude-commands/slash-commands.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/claude-commands/slash-commands.js +51 -0
- package/dist/cli/simple-commands/init/claude-commands/slash-commands.js.map +1 -0
- package/dist/cli/simple-commands/init/claude-commands/sparc-commands.d.ts +3 -0
- package/dist/cli/simple-commands/init/claude-commands/sparc-commands.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/claude-commands/sparc-commands.js +288 -0
- package/dist/cli/simple-commands/init/claude-commands/sparc-commands.js.map +1 -0
- package/dist/cli/simple-commands/init/copy-revised-templates.d.ts +29 -0
- package/dist/cli/simple-commands/init/copy-revised-templates.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/copy-revised-templates.js +166 -0
- package/dist/cli/simple-commands/init/copy-revised-templates.js.map +1 -0
- package/dist/cli/simple-commands/init/executable-wrapper.d.ts +2 -0
- package/dist/cli/simple-commands/init/executable-wrapper.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/executable-wrapper.js +116 -0
- package/dist/cli/simple-commands/init/executable-wrapper.js.map +1 -0
- package/dist/cli/simple-commands/init/gitignore-updater.d.ts +23 -0
- package/dist/cli/simple-commands/init/gitignore-updater.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/gitignore-updater.js +128 -0
- package/dist/cli/simple-commands/init/gitignore-updater.js.map +1 -0
- package/dist/cli/simple-commands/init/help.d.ts +2 -0
- package/dist/cli/simple-commands/init/help.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/help.js +131 -0
- package/dist/cli/simple-commands/init/help.js.map +1 -0
- package/dist/cli/simple-commands/init/hive-mind-init.d.ts +152 -0
- package/dist/cli/simple-commands/init/hive-mind-init.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/hive-mind-init.js +699 -0
- package/dist/cli/simple-commands/init/hive-mind-init.js.map +1 -0
- package/dist/cli/simple-commands/init/index.d.ts +2 -0
- package/dist/cli/simple-commands/init/index.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/index.js +1784 -0
- package/dist/cli/simple-commands/init/index.js.map +1 -0
- package/dist/cli/simple-commands/init/performance-monitor.d.ts +73 -0
- package/dist/cli/simple-commands/init/performance-monitor.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/performance-monitor.js +277 -0
- package/dist/cli/simple-commands/init/performance-monitor.js.map +1 -0
- package/dist/cli/simple-commands/init/rollback/backup-manager.d.ts +95 -0
- package/dist/cli/simple-commands/init/rollback/backup-manager.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/rollback/backup-manager.js +486 -0
- package/dist/cli/simple-commands/init/rollback/backup-manager.js.map +1 -0
- package/dist/cli/simple-commands/init/rollback/index.d.ts +114 -0
- package/dist/cli/simple-commands/init/rollback/index.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/rollback/index.js +353 -0
- package/dist/cli/simple-commands/init/rollback/index.js.map +1 -0
- package/dist/cli/simple-commands/init/rollback/recovery-manager.d.ts +161 -0
- package/dist/cli/simple-commands/init/rollback/recovery-manager.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/rollback/recovery-manager.js +686 -0
- package/dist/cli/simple-commands/init/rollback/recovery-manager.js.map +1 -0
- package/dist/cli/simple-commands/init/rollback/rollback-executor.d.ts +112 -0
- package/dist/cli/simple-commands/init/rollback/rollback-executor.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/rollback/rollback-executor.js +480 -0
- package/dist/cli/simple-commands/init/rollback/rollback-executor.js.map +1 -0
- package/dist/cli/simple-commands/init/rollback/state-tracker.d.ts +121 -0
- package/dist/cli/simple-commands/init/rollback/state-tracker.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/rollback/state-tracker.js +432 -0
- package/dist/cli/simple-commands/init/rollback/state-tracker.js.map +1 -0
- package/dist/cli/simple-commands/init/skills-copier.d.ts +41 -0
- package/dist/cli/simple-commands/init/skills-copier.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/skills-copier.js +192 -0
- package/dist/cli/simple-commands/init/skills-copier.js.map +1 -0
- package/dist/cli/simple-commands/init/sparc/roo-readme.d.ts +2 -0
- package/dist/cli/simple-commands/init/sparc/roo-readme.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/sparc/roo-readme.js +61 -0
- package/dist/cli/simple-commands/init/sparc/roo-readme.js.map +1 -0
- package/dist/cli/simple-commands/init/sparc/roomodes-config.d.ts +2 -0
- package/dist/cli/simple-commands/init/sparc/roomodes-config.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/sparc/roomodes-config.js +80 -0
- package/dist/cli/simple-commands/init/sparc/roomodes-config.js.map +1 -0
- package/dist/cli/simple-commands/init/sparc/workflows.d.ts +2 -0
- package/dist/cli/simple-commands/init/sparc/workflows.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/sparc/workflows.js +36 -0
- package/dist/cli/simple-commands/init/sparc/workflows.js.map +1 -0
- package/dist/cli/simple-commands/init/sparc-structure.d.ts +2 -0
- package/dist/cli/simple-commands/init/sparc-structure.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/sparc-structure.js +63 -0
- package/dist/cli/simple-commands/init/sparc-structure.js.map +1 -0
- package/dist/cli/simple-commands/init/template-copier.d.ts +27 -0
- package/dist/cli/simple-commands/init/template-copier.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/template-copier.js +538 -0
- package/dist/cli/simple-commands/init/template-copier.js.map +1 -0
- package/dist/cli/simple-commands/init/templates/claude-md.d.ts +6 -0
- package/dist/cli/simple-commands/init/templates/claude-md.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/templates/claude-md.js +1097 -0
- package/dist/cli/simple-commands/init/templates/claude-md.js.map +1 -0
- package/dist/cli/simple-commands/init/templates/coordination-md.d.ts +4 -0
- package/dist/cli/simple-commands/init/templates/coordination-md.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/templates/coordination-md.js +338 -0
- package/dist/cli/simple-commands/init/templates/coordination-md.js.map +1 -0
- package/dist/cli/simple-commands/init/templates/enhanced-templates.d.ts +21 -0
- package/dist/cli/simple-commands/init/templates/enhanced-templates.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/templates/enhanced-templates.js +2304 -0
- package/dist/cli/simple-commands/init/templates/enhanced-templates.js.map +1 -0
- package/dist/cli/simple-commands/init/templates/memory-bank-md.d.ts +4 -0
- package/dist/cli/simple-commands/init/templates/memory-bank-md.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/templates/memory-bank-md.js +257 -0
- package/dist/cli/simple-commands/init/templates/memory-bank-md.js.map +1 -0
- package/dist/cli/simple-commands/init/templates/readme-files.d.ts +3 -0
- package/dist/cli/simple-commands/init/templates/readme-files.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/templates/readme-files.js +71 -0
- package/dist/cli/simple-commands/init/templates/readme-files.js.map +1 -0
- package/dist/cli/simple-commands/init/templates/sparc-modes.d.ts +30 -0
- package/dist/cli/simple-commands/init/templates/sparc-modes.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/templates/sparc-modes.js +1375 -0
- package/dist/cli/simple-commands/init/templates/sparc-modes.js.map +1 -0
- package/dist/cli/simple-commands/init/templates/verification-claude-md.d.ts +3 -0
- package/dist/cli/simple-commands/init/templates/verification-claude-md.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/templates/verification-claude-md.js +432 -0
- package/dist/cli/simple-commands/init/templates/verification-claude-md.js.map +1 -0
- package/dist/cli/simple-commands/init/validation/config-validator.d.ts +63 -0
- package/dist/cli/simple-commands/init/validation/config-validator.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/validation/config-validator.js +308 -0
- package/dist/cli/simple-commands/init/validation/config-validator.js.map +1 -0
- package/dist/cli/simple-commands/init/validation/health-checker.d.ts +117 -0
- package/dist/cli/simple-commands/init/validation/health-checker.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/validation/health-checker.js +539 -0
- package/dist/cli/simple-commands/init/validation/health-checker.js.map +1 -0
- package/dist/cli/simple-commands/init/validation/index.d.ts +55 -0
- package/dist/cli/simple-commands/init/validation/index.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/validation/index.js +347 -0
- package/dist/cli/simple-commands/init/validation/index.js.map +1 -0
- package/dist/cli/simple-commands/init/validation/mode-validator.d.ts +76 -0
- package/dist/cli/simple-commands/init/validation/mode-validator.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/validation/mode-validator.js +343 -0
- package/dist/cli/simple-commands/init/validation/mode-validator.js.map +1 -0
- package/dist/cli/simple-commands/init/validation/post-init-validator.d.ts +62 -0
- package/dist/cli/simple-commands/init/validation/post-init-validator.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/validation/post-init-validator.js +349 -0
- package/dist/cli/simple-commands/init/validation/post-init-validator.js.map +1 -0
- package/dist/cli/simple-commands/init/validation/pre-init-validator.d.ts +86 -0
- package/dist/cli/simple-commands/init/validation/pre-init-validator.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/validation/pre-init-validator.js +260 -0
- package/dist/cli/simple-commands/init/validation/pre-init-validator.js.map +1 -0
- package/dist/cli/simple-commands/inject-memory-protocol.d.ts +34 -0
- package/dist/cli/simple-commands/inject-memory-protocol.d.ts.map +1 -0
- package/dist/cli/simple-commands/inject-memory-protocol.js +229 -0
- package/dist/cli/simple-commands/inject-memory-protocol.js.map +1 -0
- package/dist/cli/simple-commands/mcp.d.ts +2 -0
- package/dist/cli/simple-commands/mcp.d.ts.map +1 -0
- package/dist/cli/simple-commands/mcp.js +369 -0
- package/dist/cli/simple-commands/mcp.js.map +1 -0
- package/dist/cli/simple-commands/memory-consolidation.d.ts +73 -0
- package/dist/cli/simple-commands/memory-consolidation.d.ts.map +1 -0
- package/dist/cli/simple-commands/memory-consolidation.js +537 -0
- package/dist/cli/simple-commands/memory-consolidation.js.map +1 -0
- package/dist/cli/simple-commands/memory.d.ts +2 -0
- package/dist/cli/simple-commands/memory.d.ts.map +1 -0
- package/dist/cli/simple-commands/memory.js +778 -0
- package/dist/cli/simple-commands/memory.js.map +1 -0
- package/dist/cli/simple-commands/migrate-hooks.d.ts +10 -0
- package/dist/cli/simple-commands/migrate-hooks.d.ts.map +1 -0
- package/dist/cli/simple-commands/migrate-hooks.js +57 -0
- package/dist/cli/simple-commands/migrate-hooks.js.map +1 -0
- package/dist/cli/simple-commands/monitor.d.ts +3 -0
- package/dist/cli/simple-commands/monitor.d.ts.map +1 -0
- package/dist/cli/simple-commands/monitor.js +366 -0
- package/dist/cli/simple-commands/monitor.js.map +1 -0
- package/dist/cli/simple-commands/neural.d.ts +3 -0
- package/dist/cli/simple-commands/neural.d.ts.map +1 -0
- package/dist/cli/simple-commands/neural.js +137 -0
- package/dist/cli/simple-commands/neural.js.map +1 -0
- package/dist/cli/simple-commands/pair.d.ts +3 -0
- package/dist/cli/simple-commands/pair.d.ts.map +1 -0
- package/dist/cli/simple-commands/pair.js +735 -0
- package/dist/cli/simple-commands/pair.js.map +1 -0
- package/dist/cli/simple-commands/performance-hooks.d.ts +20 -0
- package/dist/cli/simple-commands/performance-hooks.d.ts.map +1 -0
- package/dist/cli/simple-commands/performance-hooks.js +127 -0
- package/dist/cli/simple-commands/performance-hooks.js.map +1 -0
- package/dist/cli/simple-commands/performance-metrics.d.ts +153 -0
- package/dist/cli/simple-commands/performance-metrics.d.ts.map +1 -0
- package/dist/cli/simple-commands/performance-metrics.js +759 -0
- package/dist/cli/simple-commands/performance-metrics.js.map +1 -0
- package/dist/cli/simple-commands/process-ui-enhanced.d.ts +55 -0
- package/dist/cli/simple-commands/process-ui-enhanced.d.ts.map +1 -0
- package/dist/cli/simple-commands/process-ui-enhanced.js +680 -0
- package/dist/cli/simple-commands/process-ui-enhanced.js.map +1 -0
- package/dist/cli/simple-commands/proxy.d.ts +5 -0
- package/dist/cli/simple-commands/proxy.d.ts.map +1 -0
- package/dist/cli/simple-commands/proxy.js +346 -0
- package/dist/cli/simple-commands/proxy.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/architect.d.ts +2 -0
- package/dist/cli/simple-commands/sparc-modes/architect.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/architect.js +126 -0
- package/dist/cli/simple-commands/sparc-modes/architect.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/ask.d.ts +2 -0
- package/dist/cli/simple-commands/sparc-modes/ask.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/ask.js +127 -0
- package/dist/cli/simple-commands/sparc-modes/ask.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/code.d.ts +2 -0
- package/dist/cli/simple-commands/sparc-modes/code.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/code.js +149 -0
- package/dist/cli/simple-commands/sparc-modes/code.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/debug.d.ts +2 -0
- package/dist/cli/simple-commands/sparc-modes/debug.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/debug.js +113 -0
- package/dist/cli/simple-commands/sparc-modes/debug.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/devops.d.ts +2 -0
- package/dist/cli/simple-commands/sparc-modes/devops.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/devops.js +138 -0
- package/dist/cli/simple-commands/sparc-modes/devops.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/docs-writer.d.ts +2 -0
- package/dist/cli/simple-commands/sparc-modes/docs-writer.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/docs-writer.js +39 -0
- package/dist/cli/simple-commands/sparc-modes/docs-writer.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/generic.d.ts +2 -0
- package/dist/cli/simple-commands/sparc-modes/generic.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/generic.js +35 -0
- package/dist/cli/simple-commands/sparc-modes/generic.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/index.d.ts +17 -0
- package/dist/cli/simple-commands/sparc-modes/index.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/index.js +196 -0
- package/dist/cli/simple-commands/sparc-modes/index.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/integration.d.ts +2 -0
- package/dist/cli/simple-commands/sparc-modes/integration.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/integration.js +56 -0
- package/dist/cli/simple-commands/sparc-modes/integration.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/mcp.d.ts +2 -0
- package/dist/cli/simple-commands/sparc-modes/mcp.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/mcp.js +39 -0
- package/dist/cli/simple-commands/sparc-modes/mcp.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/monitoring.d.ts +2 -0
- package/dist/cli/simple-commands/sparc-modes/monitoring.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/monitoring.js +39 -0
- package/dist/cli/simple-commands/sparc-modes/monitoring.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/optimization.d.ts +2 -0
- package/dist/cli/simple-commands/sparc-modes/optimization.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/optimization.js +39 -0
- package/dist/cli/simple-commands/sparc-modes/optimization.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/security-review.d.ts +2 -0
- package/dist/cli/simple-commands/sparc-modes/security-review.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/security-review.js +131 -0
- package/dist/cli/simple-commands/sparc-modes/security-review.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/sparc-orchestrator.d.ts +2 -0
- package/dist/cli/simple-commands/sparc-modes/sparc-orchestrator.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/sparc-orchestrator.js +168 -0
- package/dist/cli/simple-commands/sparc-modes/sparc-orchestrator.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/spec-pseudocode.d.ts +2 -0
- package/dist/cli/simple-commands/sparc-modes/spec-pseudocode.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/spec-pseudocode.js +39 -0
- package/dist/cli/simple-commands/sparc-modes/spec-pseudocode.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/supabase-admin.d.ts +2 -0
- package/dist/cli/simple-commands/sparc-modes/supabase-admin.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/supabase-admin.js +150 -0
- package/dist/cli/simple-commands/sparc-modes/supabase-admin.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/swarm.d.ts +81 -0
- package/dist/cli/simple-commands/sparc-modes/swarm.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/swarm.js +428 -0
- package/dist/cli/simple-commands/sparc-modes/swarm.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/tdd.d.ts +2 -0
- package/dist/cli/simple-commands/sparc-modes/tdd.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/tdd.js +113 -0
- package/dist/cli/simple-commands/sparc-modes/tdd.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/tutorial.d.ts +2 -0
- package/dist/cli/simple-commands/sparc-modes/tutorial.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/tutorial.js +278 -0
- package/dist/cli/simple-commands/sparc-modes/tutorial.js.map +1 -0
- package/dist/cli/simple-commands/sparc.d.ts +2 -0
- package/dist/cli/simple-commands/sparc.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc.js +477 -0
- package/dist/cli/simple-commands/sparc.js.map +1 -0
- package/dist/cli/simple-commands/start-ui.d.ts +2 -0
- package/dist/cli/simple-commands/start-ui.d.ts.map +1 -0
- package/dist/cli/simple-commands/start-ui.js +135 -0
- package/dist/cli/simple-commands/start-ui.js.map +1 -0
- package/dist/cli/simple-commands/start-wrapper.d.ts +2 -0
- package/dist/cli/simple-commands/start-wrapper.d.ts.map +1 -0
- package/dist/cli/simple-commands/start-wrapper.js +264 -0
- package/dist/cli/simple-commands/start-wrapper.js.map +1 -0
- package/dist/cli/simple-commands/start.d.ts +2 -0
- package/dist/cli/simple-commands/start.d.ts.map +1 -0
- package/dist/cli/simple-commands/start.js +3 -0
- package/dist/cli/simple-commands/start.js.map +1 -0
- package/dist/cli/simple-commands/status.d.ts +2 -0
- package/dist/cli/simple-commands/status.d.ts.map +1 -0
- package/dist/cli/simple-commands/status.js +292 -0
- package/dist/cli/simple-commands/status.js.map +1 -0
- package/dist/cli/simple-commands/stream-chain.d.ts +7 -0
- package/dist/cli/simple-commands/stream-chain.d.ts.map +1 -0
- package/dist/cli/simple-commands/stream-chain.js +433 -0
- package/dist/cli/simple-commands/stream-chain.js.map +1 -0
- package/dist/cli/simple-commands/stream-processor.d.ts +32 -0
- package/dist/cli/simple-commands/stream-processor.d.ts.map +1 -0
- package/dist/cli/simple-commands/stream-processor.js +318 -0
- package/dist/cli/simple-commands/stream-processor.js.map +1 -0
- package/dist/cli/simple-commands/swarm-executor.d.ts +68 -0
- package/dist/cli/simple-commands/swarm-executor.d.ts.map +1 -0
- package/dist/cli/simple-commands/swarm-executor.js +218 -0
- package/dist/cli/simple-commands/swarm-executor.js.map +1 -0
- package/dist/cli/simple-commands/swarm-metrics-integration.d.ts +69 -0
- package/dist/cli/simple-commands/swarm-metrics-integration.d.ts.map +1 -0
- package/dist/cli/simple-commands/swarm-metrics-integration.js +294 -0
- package/dist/cli/simple-commands/swarm-metrics-integration.js.map +1 -0
- package/dist/cli/simple-commands/swarm-webui-integration.d.ts +68 -0
- package/dist/cli/simple-commands/swarm-webui-integration.d.ts.map +1 -0
- package/dist/cli/simple-commands/swarm-webui-integration.js +265 -0
- package/dist/cli/simple-commands/swarm-webui-integration.js.map +1 -0
- package/dist/cli/simple-commands/swarm.d.ts +2 -0
- package/dist/cli/simple-commands/swarm.d.ts.map +1 -0
- package/dist/cli/simple-commands/swarm.js +2104 -0
- package/dist/cli/simple-commands/swarm.js.map +1 -0
- package/dist/cli/simple-commands/task.d.ts +2 -0
- package/dist/cli/simple-commands/task.d.ts.map +1 -0
- package/dist/cli/simple-commands/task.js +250 -0
- package/dist/cli/simple-commands/task.js.map +1 -0
- package/dist/cli/simple-commands/token-tracker.d.ts +73 -0
- package/dist/cli/simple-commands/token-tracker.d.ts.map +1 -0
- package/dist/cli/simple-commands/token-tracker.js +319 -0
- package/dist/cli/simple-commands/token-tracker.js.map +1 -0
- package/dist/cli/simple-commands/training-pipeline.d.ts +166 -0
- package/dist/cli/simple-commands/training-pipeline.d.ts.map +1 -0
- package/dist/cli/simple-commands/training-pipeline.js +760 -0
- package/dist/cli/simple-commands/training-pipeline.js.map +1 -0
- package/dist/cli/simple-commands/training.d.ts +2 -0
- package/dist/cli/simple-commands/training.d.ts.map +1 -0
- package/dist/cli/simple-commands/training.js +240 -0
- package/dist/cli/simple-commands/training.js.map +1 -0
- package/dist/cli/simple-commands/verification-training-integration.d.ts +181 -0
- package/dist/cli/simple-commands/verification-training-integration.d.ts.map +1 -0
- package/dist/cli/simple-commands/verification-training-integration.js +561 -0
- package/dist/cli/simple-commands/verification-training-integration.js.map +1 -0
- package/dist/cli/simple-commands/verification.d.ts +10 -0
- package/dist/cli/simple-commands/verification.d.ts.map +1 -0
- package/dist/cli/simple-commands/verification.js +476 -0
- package/dist/cli/simple-commands/verification.js.map +1 -0
- package/dist/cli/simple-commands/web-server.d.ts +152 -0
- package/dist/cli/simple-commands/web-server.d.ts.map +1 -0
- package/dist/cli/simple-commands/web-server.js +816 -0
- package/dist/cli/simple-commands/web-server.js.map +1 -0
- package/dist/cli/utils/interactive-detector.d.ts +25 -0
- package/dist/cli/utils/interactive-detector.d.ts.map +1 -0
- package/dist/cli/utils/interactive-detector.js +129 -0
- package/dist/cli/utils/interactive-detector.js.map +1 -0
- package/dist/cli/utils/safe-interactive.d.ts +30 -0
- package/dist/cli/utils/safe-interactive.d.ts.map +1 -0
- package/dist/cli/utils/safe-interactive.js +134 -0
- package/dist/cli/utils/safe-interactive.js.map +1 -0
- package/dist/cli/utils.d.ts +75 -0
- package/dist/cli/utils.d.ts.map +1 -0
- package/dist/cli/utils.js +567 -0
- package/dist/cli/utils.js.map +1 -0
- package/dist/config/config-manager.d.ts +212 -0
- package/dist/config/config-manager.d.ts.map +1 -0
- package/dist/config/config-manager.js +550 -0
- package/dist/config/config-manager.js.map +1 -0
- package/dist/constants/agent-types.d.ts +57 -0
- package/dist/constants/agent-types.d.ts.map +1 -0
- package/dist/constants/agent-types.js +57 -0
- package/dist/constants/agent-types.js.map +1 -0
- package/dist/coordination/advanced-scheduler.d.ts +121 -0
- package/dist/coordination/advanced-scheduler.d.ts.map +1 -0
- package/dist/coordination/advanced-scheduler.js +382 -0
- package/dist/coordination/advanced-scheduler.js.map +1 -0
- package/dist/coordination/background-executor.d.ts +69 -0
- package/dist/coordination/background-executor.d.ts.map +1 -0
- package/dist/coordination/background-executor.js +363 -0
- package/dist/coordination/background-executor.js.map +1 -0
- package/dist/coordination/circuit-breaker.d.ts +124 -0
- package/dist/coordination/circuit-breaker.d.ts.map +1 -0
- package/dist/coordination/circuit-breaker.js +301 -0
- package/dist/coordination/circuit-breaker.js.map +1 -0
- package/dist/coordination/conflict-resolution.d.ts +133 -0
- package/dist/coordination/conflict-resolution.d.ts.map +1 -0
- package/dist/coordination/conflict-resolution.js +360 -0
- package/dist/coordination/conflict-resolution.js.map +1 -0
- package/dist/coordination/dependency-graph.d.ts +78 -0
- package/dist/coordination/dependency-graph.d.ts.map +1 -0
- package/dist/coordination/dependency-graph.js +387 -0
- package/dist/coordination/dependency-graph.js.map +1 -0
- package/dist/coordination/manager.d.ts +66 -0
- package/dist/coordination/manager.d.ts.map +1 -0
- package/dist/coordination/manager.js +354 -0
- package/dist/coordination/manager.js.map +1 -0
- package/dist/coordination/messaging.d.ts +37 -0
- package/dist/coordination/messaging.d.ts.map +1 -0
- package/dist/coordination/messaging.js +219 -0
- package/dist/coordination/messaging.js.map +1 -0
- package/dist/coordination/metrics.d.ts +153 -0
- package/dist/coordination/metrics.d.ts.map +1 -0
- package/dist/coordination/metrics.js +436 -0
- package/dist/coordination/metrics.js.map +1 -0
- package/dist/coordination/resources.d.ts +36 -0
- package/dist/coordination/resources.d.ts.map +1 -0
- package/dist/coordination/resources.js +254 -0
- package/dist/coordination/resources.js.map +1 -0
- package/dist/coordination/scheduler.d.ts +48 -0
- package/dist/coordination/scheduler.d.ts.map +1 -0
- package/dist/coordination/scheduler.js +308 -0
- package/dist/coordination/scheduler.js.map +1 -0
- package/dist/coordination/swarm-coordinator.d.ts +116 -0
- package/dist/coordination/swarm-coordinator.d.ts.map +1 -0
- package/dist/coordination/swarm-coordinator.js +563 -0
- package/dist/coordination/swarm-coordinator.js.map +1 -0
- package/dist/coordination/swarm-monitor.d.ts +101 -0
- package/dist/coordination/swarm-monitor.d.ts.map +1 -0
- package/dist/coordination/swarm-monitor.js +340 -0
- package/dist/coordination/swarm-monitor.js.map +1 -0
- package/dist/coordination/work-stealing.d.ts +44 -0
- package/dist/coordination/work-stealing.d.ts.map +1 -0
- package/dist/coordination/work-stealing.js +158 -0
- package/dist/coordination/work-stealing.js.map +1 -0
- package/dist/core/config.d.ts +243 -0
- package/dist/core/config.d.ts.map +1 -0
- package/dist/core/config.js +1125 -0
- package/dist/core/config.js.map +1 -0
- package/dist/core/event-bus.d.ts +63 -0
- package/dist/core/event-bus.d.ts.map +1 -0
- package/dist/core/event-bus.js +153 -0
- package/dist/core/event-bus.js.map +1 -0
- package/dist/core/json-persistence.d.ts +55 -0
- package/dist/core/json-persistence.d.ts.map +1 -0
- package/dist/core/json-persistence.js +111 -0
- package/dist/core/json-persistence.js.map +1 -0
- package/dist/core/logger.d.ts +62 -0
- package/dist/core/logger.d.ts.map +1 -0
- package/dist/core/logger.js +252 -0
- package/dist/core/logger.js.map +1 -0
- package/dist/core/orchestrator-fixed.d.ts +81 -0
- package/dist/core/orchestrator-fixed.d.ts.map +1 -0
- package/dist/core/orchestrator-fixed.js +213 -0
- package/dist/core/orchestrator-fixed.js.map +1 -0
- package/dist/core/orchestrator.d.ts +141 -0
- package/dist/core/orchestrator.d.ts.map +1 -0
- package/dist/core/orchestrator.js +1166 -0
- package/dist/core/orchestrator.js.map +1 -0
- package/dist/core/version.d.ts +10 -0
- package/dist/core/version.d.ts.map +1 -0
- package/dist/core/version.js +36 -0
- package/dist/core/version.js.map +1 -0
- package/dist/enterprise/analytics-manager.d.ts +489 -0
- package/dist/enterprise/analytics-manager.d.ts.map +1 -0
- package/dist/enterprise/analytics-manager.js +956 -0
- package/dist/enterprise/analytics-manager.js.map +1 -0
- package/dist/enterprise/audit-manager.d.ts +459 -0
- package/dist/enterprise/audit-manager.d.ts.map +1 -0
- package/dist/enterprise/audit-manager.js +1014 -0
- package/dist/enterprise/audit-manager.js.map +1 -0
- package/dist/enterprise/cloud-manager.d.ts +435 -0
- package/dist/enterprise/cloud-manager.d.ts.map +1 -0
- package/dist/enterprise/cloud-manager.js +789 -0
- package/dist/enterprise/cloud-manager.js.map +1 -0
- package/dist/enterprise/deployment-manager.d.ts +328 -0
- package/dist/enterprise/deployment-manager.d.ts.map +1 -0
- package/dist/enterprise/deployment-manager.js +830 -0
- package/dist/enterprise/deployment-manager.js.map +1 -0
- package/dist/enterprise/project-manager.d.ts +228 -0
- package/dist/enterprise/project-manager.d.ts.map +1 -0
- package/dist/enterprise/project-manager.js +537 -0
- package/dist/enterprise/project-manager.js.map +1 -0
- package/dist/enterprise/security-manager.d.ts +422 -0
- package/dist/enterprise/security-manager.d.ts.map +1 -0
- package/dist/enterprise/security-manager.js +910 -0
- package/dist/enterprise/security-manager.js.map +1 -0
- package/dist/execution/agent-executor.d.ts +80 -0
- package/dist/execution/agent-executor.d.ts.map +1 -0
- package/dist/execution/agent-executor.js +220 -0
- package/dist/execution/agent-executor.js.map +1 -0
- package/dist/execution/provider-manager.d.ts +65 -0
- package/dist/execution/provider-manager.d.ts.map +1 -0
- package/dist/execution/provider-manager.js +144 -0
- package/dist/execution/provider-manager.js.map +1 -0
- package/dist/hive-mind/core/Agent.d.ts +137 -0
- package/dist/hive-mind/core/Agent.d.ts.map +1 -0
- package/dist/hive-mind/core/Agent.js +567 -0
- package/dist/hive-mind/core/Agent.js.map +1 -0
- package/dist/hive-mind/core/Communication.d.ts +116 -0
- package/dist/hive-mind/core/Communication.d.ts.map +1 -0
- package/dist/hive-mind/core/Communication.js +407 -0
- package/dist/hive-mind/core/Communication.js.map +1 -0
- package/dist/hive-mind/core/DatabaseManager.d.ts +99 -0
- package/dist/hive-mind/core/DatabaseManager.d.ts.map +1 -0
- package/dist/hive-mind/core/DatabaseManager.js +648 -0
- package/dist/hive-mind/core/DatabaseManager.js.map +1 -0
- package/dist/hive-mind/core/HiveMind.d.ts +90 -0
- package/dist/hive-mind/core/HiveMind.d.ts.map +1 -0
- package/dist/hive-mind/core/HiveMind.js +455 -0
- package/dist/hive-mind/core/HiveMind.js.map +1 -0
- package/dist/hive-mind/core/Memory.d.ts +235 -0
- package/dist/hive-mind/core/Memory.d.ts.map +1 -0
- package/dist/hive-mind/core/Memory.js +1192 -0
- package/dist/hive-mind/core/Memory.js.map +1 -0
- package/dist/hive-mind/core/Queen.d.ts +115 -0
- package/dist/hive-mind/core/Queen.d.ts.map +1 -0
- package/dist/hive-mind/core/Queen.js +649 -0
- package/dist/hive-mind/core/Queen.js.map +1 -0
- package/dist/hive-mind/integration/ConsensusEngine.d.ts +117 -0
- package/dist/hive-mind/integration/ConsensusEngine.d.ts.map +1 -0
- package/dist/hive-mind/integration/ConsensusEngine.js +478 -0
- package/dist/hive-mind/integration/ConsensusEngine.js.map +1 -0
- package/dist/hive-mind/integration/MCPToolWrapper.d.ts +172 -0
- package/dist/hive-mind/integration/MCPToolWrapper.d.ts.map +1 -0
- package/dist/hive-mind/integration/MCPToolWrapper.js +217 -0
- package/dist/hive-mind/integration/MCPToolWrapper.js.map +1 -0
- package/dist/hive-mind/integration/SwarmOrchestrator.d.ts +172 -0
- package/dist/hive-mind/integration/SwarmOrchestrator.d.ts.map +1 -0
- package/dist/hive-mind/integration/SwarmOrchestrator.js +748 -0
- package/dist/hive-mind/integration/SwarmOrchestrator.js.map +1 -0
- package/dist/hive-mind/types.d.ts +314 -0
- package/dist/hive-mind/types.d.ts.map +1 -0
- package/dist/hive-mind/types.js +7 -0
- package/dist/hive-mind/types.js.map +1 -0
- package/dist/mcp/auth.d.ts +80 -0
- package/dist/mcp/auth.d.ts.map +1 -0
- package/dist/mcp/auth.js +350 -0
- package/dist/mcp/auth.js.map +1 -0
- package/dist/mcp/claude-flow-tools.d.ts +13 -0
- package/dist/mcp/claude-flow-tools.d.ts.map +1 -0
- package/dist/mcp/claude-flow-tools.js +1398 -0
- package/dist/mcp/claude-flow-tools.js.map +1 -0
- package/dist/mcp/load-balancer.d.ts +88 -0
- package/dist/mcp/load-balancer.d.ts.map +1 -0
- package/dist/mcp/load-balancer.js +393 -0
- package/dist/mcp/load-balancer.js.map +1 -0
- package/dist/mcp/router.d.ts +54 -0
- package/dist/mcp/router.d.ts.map +1 -0
- package/dist/mcp/router.js +204 -0
- package/dist/mcp/router.js.map +1 -0
- package/dist/mcp/ruv-swarm-tools.d.ts +58 -0
- package/dist/mcp/ruv-swarm-tools.d.ts.map +1 -0
- package/dist/mcp/ruv-swarm-tools.js +568 -0
- package/dist/mcp/ruv-swarm-tools.js.map +1 -0
- package/dist/mcp/server.d.ts +75 -0
- package/dist/mcp/server.d.ts.map +1 -0
- package/dist/mcp/server.js +538 -0
- package/dist/mcp/server.js.map +1 -0
- package/dist/mcp/session-manager.d.ts +60 -0
- package/dist/mcp/session-manager.d.ts.map +1 -0
- package/dist/mcp/session-manager.js +323 -0
- package/dist/mcp/session-manager.js.map +1 -0
- package/dist/mcp/swarm-tools.d.ts +87 -0
- package/dist/mcp/swarm-tools.d.ts.map +1 -0
- package/dist/mcp/swarm-tools.js +731 -0
- package/dist/mcp/swarm-tools.js.map +1 -0
- package/dist/mcp/tools.d.ts +145 -0
- package/dist/mcp/tools.d.ts.map +1 -0
- package/dist/mcp/tools.js +434 -0
- package/dist/mcp/tools.js.map +1 -0
- package/dist/mcp/transports/base.d.ts +22 -0
- package/dist/mcp/transports/base.d.ts.map +1 -0
- package/dist/mcp/transports/base.js +5 -0
- package/dist/mcp/transports/base.js.map +1 -0
- package/dist/mcp/transports/http.d.ts +48 -0
- package/dist/mcp/transports/http.d.ts.map +1 -0
- package/dist/mcp/transports/http.js +400 -0
- package/dist/mcp/transports/http.js.map +1 -0
- package/dist/mcp/transports/stdio.d.ts +37 -0
- package/dist/mcp/transports/stdio.d.ts.map +1 -0
- package/dist/mcp/transports/stdio.js +206 -0
- package/dist/mcp/transports/stdio.js.map +1 -0
- package/dist/memory/advanced-serializer.d.ts +159 -0
- package/dist/memory/advanced-serializer.d.ts.map +1 -0
- package/dist/memory/advanced-serializer.js +564 -0
- package/dist/memory/advanced-serializer.js.map +1 -0
- package/dist/memory/backends/base.d.ts +21 -0
- package/dist/memory/backends/base.d.ts.map +1 -0
- package/dist/memory/backends/base.js +5 -0
- package/dist/memory/backends/base.js.map +1 -0
- package/dist/memory/backends/markdown.d.ts +35 -0
- package/dist/memory/backends/markdown.d.ts.map +1 -0
- package/dist/memory/backends/markdown.js +223 -0
- package/dist/memory/backends/markdown.js.map +1 -0
- package/dist/memory/backends/sqlite.d.ts +33 -0
- package/dist/memory/backends/sqlite.d.ts.map +1 -0
- package/dist/memory/backends/sqlite.js +291 -0
- package/dist/memory/backends/sqlite.js.map +1 -0
- package/dist/memory/cache.d.ts +65 -0
- package/dist/memory/cache.d.ts.map +1 -0
- package/dist/memory/cache.js +188 -0
- package/dist/memory/cache.js.map +1 -0
- package/dist/memory/distributed-memory.d.ts +188 -0
- package/dist/memory/distributed-memory.d.ts.map +1 -0
- package/dist/memory/distributed-memory.js +710 -0
- package/dist/memory/distributed-memory.js.map +1 -0
- package/dist/memory/enhanced-session-serializer.d.ts +115 -0
- package/dist/memory/enhanced-session-serializer.d.ts.map +1 -0
- package/dist/memory/enhanced-session-serializer.js +478 -0
- package/dist/memory/enhanced-session-serializer.js.map +1 -0
- package/dist/memory/fallback-store.d.ts +28 -0
- package/dist/memory/fallback-store.d.ts.map +1 -0
- package/dist/memory/fallback-store.js +101 -0
- package/dist/memory/fallback-store.js.map +1 -0
- package/dist/memory/in-memory-store.d.ts +37 -0
- package/dist/memory/in-memory-store.d.ts.map +1 -0
- package/dist/memory/in-memory-store.js +174 -0
- package/dist/memory/in-memory-store.js.map +1 -0
- package/dist/memory/indexer.d.ts +52 -0
- package/dist/memory/indexer.d.ts.map +1 -0
- package/dist/memory/indexer.js +191 -0
- package/dist/memory/indexer.js.map +1 -0
- package/dist/memory/manager.d.ts +58 -0
- package/dist/memory/manager.d.ts.map +1 -0
- package/dist/memory/manager.js +423 -0
- package/dist/memory/manager.js.map +1 -0
- package/dist/memory/sqlite-store.d.ts +34 -0
- package/dist/memory/sqlite-store.d.ts.map +1 -0
- package/dist/memory/sqlite-store.js +268 -0
- package/dist/memory/sqlite-store.js.map +1 -0
- package/dist/memory/sqlite-wrapper.d.ts +38 -0
- package/dist/memory/sqlite-wrapper.d.ts.map +1 -0
- package/dist/memory/sqlite-wrapper.js +152 -0
- package/dist/memory/sqlite-wrapper.js.map +1 -0
- package/dist/memory/swarm-memory.d.ts +91 -0
- package/dist/memory/swarm-memory.d.ts.map +1 -0
- package/dist/memory/swarm-memory.js +454 -0
- package/dist/memory/swarm-memory.js.map +1 -0
- package/dist/memory/unified-memory-manager.d.ts +116 -0
- package/dist/memory/unified-memory-manager.d.ts.map +1 -0
- package/dist/memory/unified-memory-manager.js +397 -0
- package/dist/memory/unified-memory-manager.js.map +1 -0
- package/dist/migration/logger.d.ts +26 -0
- package/dist/migration/logger.d.ts.map +1 -0
- package/dist/migration/logger.js +145 -0
- package/dist/migration/logger.js.map +1 -0
- package/dist/migration/migration-analyzer.d.ts +18 -0
- package/dist/migration/migration-analyzer.d.ts.map +1 -0
- package/dist/migration/migration-analyzer.js +284 -0
- package/dist/migration/migration-analyzer.js.map +1 -0
- package/dist/migration/migration-runner.d.ts +26 -0
- package/dist/migration/migration-runner.d.ts.map +1 -0
- package/dist/migration/migration-runner.js +505 -0
- package/dist/migration/migration-runner.js.map +1 -0
- package/dist/migration/migration-validator.d.ts +17 -0
- package/dist/migration/migration-validator.d.ts.map +1 -0
- package/dist/migration/migration-validator.js +309 -0
- package/dist/migration/migration-validator.js.map +1 -0
- package/dist/migration/progress-reporter.d.ts +28 -0
- package/dist/migration/progress-reporter.d.ts.map +1 -0
- package/dist/migration/progress-reporter.js +163 -0
- package/dist/migration/progress-reporter.js.map +1 -0
- package/dist/migration/rollback-manager.d.ts +24 -0
- package/dist/migration/rollback-manager.d.ts.map +1 -0
- package/dist/migration/rollback-manager.js +351 -0
- package/dist/migration/rollback-manager.js.map +1 -0
- package/dist/migration/types.d.ts +103 -0
- package/dist/migration/types.d.ts.map +1 -0
- package/dist/migration/types.js +6 -0
- package/dist/migration/types.js.map +1 -0
- package/dist/reasoningbank/reasoningbank-adapter.d.ts +93 -0
- package/dist/reasoningbank/reasoningbank-adapter.d.ts.map +1 -0
- package/dist/reasoningbank/reasoningbank-adapter.js +365 -0
- package/dist/reasoningbank/reasoningbank-adapter.js.map +1 -0
- package/dist/sdk/query-control.d.ts +131 -0
- package/dist/sdk/query-control.d.ts.map +1 -0
- package/dist/sdk/query-control.js +363 -0
- package/dist/sdk/query-control.js.map +1 -0
- package/dist/sdk/session-forking.d.ts +109 -0
- package/dist/sdk/session-forking.d.ts.map +1 -0
- package/dist/sdk/session-forking.js +275 -0
- package/dist/sdk/session-forking.js.map +1 -0
- package/dist/src/cli/simple-cli.js +79 -173
- package/dist/src/cli/simple-cli.js.map +1 -1
- package/dist/src/cli/simple-commands/init/index.js +36 -22
- package/dist/src/cli/simple-commands/init/index.js.map +1 -1
- package/dist/src/cli/simple-commands/init/skills-copier.js +186 -0
- package/dist/src/cli/simple-commands/init/skills-copier.js.map +1 -0
- package/dist/src/cli/simple-commands/memory.js +12 -1
- package/dist/src/cli/simple-commands/memory.js.map +1 -1
- package/dist/src/cli/simple-commands/process-ui-enhanced.js +1 -1
- package/dist/src/cli/simple-commands/process-ui-enhanced.js.map +1 -1
- package/dist/src/cli/simple-commands/status.js +1 -1
- package/dist/src/cli/simple-commands/status.js.map +1 -1
- package/dist/src/cli/validation-helper.js.map +1 -1
- package/dist/src/core/version.js +1 -1
- package/dist/src/reasoningbank/reasoningbank-adapter.js +152 -99
- package/dist/src/reasoningbank/reasoningbank-adapter.js.map +1 -1
- package/dist/src/utils/key-redactor.js.map +1 -1
- package/dist/src/utils/metrics-reader.js +0 -10
- package/dist/swarm/types.d.ts +578 -0
- package/dist/swarm/types.d.ts.map +1 -0
- package/dist/swarm/types.js +54 -0
- package/dist/swarm/types.js.map +1 -0
- package/dist/terminal/adapters/base.d.ts +40 -0
- package/dist/terminal/adapters/base.d.ts.map +1 -0
- package/dist/terminal/adapters/base.js +5 -0
- package/dist/terminal/adapters/base.js.map +1 -0
- package/dist/terminal/adapters/native.d.ts +19 -0
- package/dist/terminal/adapters/native.d.ts.map +1 -0
- package/dist/terminal/adapters/native.js +414 -0
- package/dist/terminal/adapters/native.js.map +1 -0
- package/dist/terminal/adapters/vscode.d.ts +23 -0
- package/dist/terminal/adapters/vscode.d.ts.map +1 -0
- package/dist/terminal/adapters/vscode.js +267 -0
- package/dist/terminal/adapters/vscode.js.map +1 -0
- package/dist/terminal/manager.d.ts +59 -0
- package/dist/terminal/manager.d.ts.map +1 -0
- package/dist/terminal/manager.js +235 -0
- package/dist/terminal/manager.js.map +1 -0
- package/dist/terminal/pool.d.ts +32 -0
- package/dist/terminal/pool.d.ts.map +1 -0
- package/dist/terminal/pool.js +208 -0
- package/dist/terminal/pool.js.map +1 -0
- package/dist/terminal/session.d.ts +41 -0
- package/dist/terminal/session.d.ts.map +1 -0
- package/dist/terminal/session.js +210 -0
- package/dist/terminal/session.js.map +1 -0
- package/dist/utils/error-handler.d.ts +14 -0
- package/dist/utils/error-handler.d.ts.map +1 -0
- package/dist/utils/error-handler.js +29 -0
- package/dist/utils/error-handler.js.map +1 -0
- package/dist/utils/errors.d.ts +121 -0
- package/dist/utils/errors.d.ts.map +1 -0
- package/dist/utils/errors.js +194 -0
- package/dist/utils/errors.js.map +1 -0
- package/dist/utils/formatters.d.ts +15 -0
- package/dist/utils/formatters.d.ts.map +1 -0
- package/dist/utils/formatters.js +75 -0
- package/dist/utils/formatters.js.map +1 -0
- package/dist/utils/helpers.d.ts +134 -0
- package/dist/utils/helpers.d.ts.map +1 -0
- package/dist/utils/helpers.js +444 -0
- package/dist/utils/helpers.js.map +1 -0
- package/dist/utils/key-redactor.d.ts +46 -0
- package/dist/utils/key-redactor.d.ts.map +1 -0
- package/dist/utils/key-redactor.js +153 -0
- package/dist/utils/key-redactor.js.map +1 -0
- package/dist/utils/metrics-reader.d.ts +67 -0
- package/dist/utils/metrics-reader.d.ts.map +1 -0
- package/dist/utils/metrics-reader.js +201 -0
- package/dist/utils/metrics-reader.js.map +1 -0
- package/dist/utils/npx-isolated-cache.d.ts +17 -0
- package/dist/utils/npx-isolated-cache.d.ts.map +1 -0
- package/dist/utils/npx-isolated-cache.js +140 -0
- package/dist/utils/npx-isolated-cache.js.map +1 -0
- package/dist/utils/project-root.d.ts +35 -0
- package/dist/utils/project-root.d.ts.map +1 -0
- package/dist/utils/project-root.js +115 -0
- package/dist/utils/project-root.js.map +1 -0
- package/dist/utils/type-guards.d.ts +117 -0
- package/dist/utils/type-guards.d.ts.map +1 -0
- package/dist/utils/type-guards.js +166 -0
- package/dist/utils/type-guards.js.map +1 -0
- package/dist/utils/types.d.ts +568 -0
- package/dist/utils/types.d.ts.map +1 -0
- package/dist/utils/types.js +37 -0
- package/dist/utils/types.js.map +1 -0
- package/docker-test/.claude-flow/metrics/performance.json +3 -3
- package/docker-test/.claude-flow/metrics/task-metrics.json +3 -3
- package/docker-test/Dockerfile.alpha11-test +26 -0
- package/docker-test/Dockerfile.alpha12-test +47 -0
- package/docker-test/Dockerfile.local-test +42 -0
- package/docker-test/test-alpha11.sh +244 -0
- package/docker-test/test-local-fix.sh +235 -0
- package/docs/COMMANDS_TO_SKILLS_MIGRATION.md +382 -0
- package/docs/FINAL_INIT_STRUCTURE.md +320 -0
- package/docs/RELEASE-NOTES-v2.7.0-alpha.10.md +309 -0
- package/docs/RELEASE-NOTES-v2.7.0-alpha.9.md +208 -0
- package/docs/integrations/reasoningbank/MIGRATION-v1.5.13.md +1 -1
- package/docs/reasoningbank/CLAUDE-CODE-INTEGRATION.md +563 -0
- package/docs/reasoningbank/EXAMPLES.md +611 -0
- package/docs/reasoningbank/README.md +1139 -0
- package/docs/reasoningbank/agentic-flow-integration.md +800 -0
- package/docs/reasoningbank/architecture.md +680 -0
- package/docs/reasoningbank/google-research.md +1017 -0
- package/docs/reasoningbank/models/.claude-flow/metrics/agent-metrics.json +1 -0
- package/docs/reasoningbank/models/.claude-flow/metrics/performance.json +87 -0
- package/docs/reasoningbank/models/.claude-flow/metrics/task-metrics.json +10 -0
- package/docs/reasoningbank/models/HOW-TO-TRAIN.md +537 -0
- package/docs/reasoningbank/models/HOW-TO-USE.md +655 -0
- package/docs/reasoningbank/models/INDEX.md +276 -0
- package/docs/reasoningbank/models/README.md +345 -0
- package/docs/reasoningbank/models/_docs/COMPATIBILITY.md +448 -0
- package/docs/reasoningbank/models/_docs/COMPLETION-SUMMARY.md +478 -0
- package/docs/reasoningbank/models/_docs/README.md +80 -0
- package/docs/reasoningbank/models/_docs/SCHEMA-UPDATE-SUMMARY.md +376 -0
- package/docs/reasoningbank/models/_docs/VERIFICATION-COMPLETE.md +370 -0
- package/docs/reasoningbank/models/_scripts/README.md +270 -0
- package/docs/reasoningbank/models/_scripts/benchmark-all.cjs +407 -0
- package/docs/reasoningbank/models/_scripts/fix-schema-compatibility.cjs +300 -0
- package/docs/reasoningbank/models/_scripts/schema-validator.cjs +360 -0
- package/docs/reasoningbank/models/_scripts/training-coordinator.cjs +85 -0
- package/docs/reasoningbank/models/_scripts/validation-suite.cjs +239 -0
- package/docs/reasoningbank/models/benchmark-output.log +41 -0
- package/docs/reasoningbank/models/code-reasoning/.claude-flow/metrics/agent-metrics.json +1 -0
- package/docs/reasoningbank/models/code-reasoning/.claude-flow/metrics/performance.json +87 -0
- package/docs/reasoningbank/models/code-reasoning/.claude-flow/metrics/task-metrics.json +18 -0
- package/docs/reasoningbank/models/code-reasoning/.swarm/SCHEMA-FIX-REPORT.md +69 -0
- package/docs/reasoningbank/models/code-reasoning/.swarm/memory.db +0 -0
- package/docs/reasoningbank/models/code-reasoning/.swarm/memory.db.backup +0 -0
- package/docs/reasoningbank/models/code-reasoning/README.md +451 -0
- package/docs/reasoningbank/models/code-reasoning/TRAINING-SUMMARY.md +416 -0
- package/docs/reasoningbank/models/code-reasoning/train-code.js +2059 -0
- package/docs/reasoningbank/models/code-reasoning/training.log +18 -0
- package/docs/reasoningbank/models/code-reasoning/validation-report.md +349 -0
- package/docs/reasoningbank/models/domain-expert/.claude-flow/metrics/agent-metrics.json +1 -0
- package/docs/reasoningbank/models/domain-expert/.claude-flow/metrics/performance.json +87 -0
- package/docs/reasoningbank/models/domain-expert/.claude-flow/metrics/task-metrics.json +18 -0
- package/docs/reasoningbank/models/domain-expert/COMPLETION-REPORT.md +451 -0
- package/docs/reasoningbank/models/domain-expert/INDEX.md +182 -0
- package/docs/reasoningbank/models/domain-expert/README.md +215 -0
- package/docs/reasoningbank/models/domain-expert/SCHEMA-FIX-REPORT.md +65 -0
- package/docs/reasoningbank/models/domain-expert/SUMMARY.md +286 -0
- package/docs/reasoningbank/models/domain-expert/USAGE.md +394 -0
- package/docs/reasoningbank/models/domain-expert/demo-queries.sh +42 -0
- package/docs/reasoningbank/models/domain-expert/memory.db +0 -0
- package/docs/reasoningbank/models/domain-expert/train-domain.js +1324 -0
- package/docs/reasoningbank/models/domain-expert/validate.js +218 -0
- package/docs/reasoningbank/models/domain-expert/validation-report.md +89 -0
- package/docs/reasoningbank/models/google-research/README.md +455 -0
- package/docs/reasoningbank/models/google-research/SCHEMA-FIX-REPORT.md +65 -0
- package/docs/reasoningbank/models/google-research/memory.db +0 -0
- package/docs/reasoningbank/models/google-research/memory.db.backup +0 -0
- package/docs/reasoningbank/models/google-research/train-google.js +697 -0
- package/docs/reasoningbank/models/google-research/validation-report.md +99 -0
- package/docs/reasoningbank/models/google-research/validation-suite.js +323 -0
- package/docs/reasoningbank/models/problem-solving/.claude-flow/metrics/agent-metrics.json +1 -0
- package/docs/reasoningbank/models/problem-solving/.claude-flow/metrics/performance.json +87 -0
- package/docs/reasoningbank/models/problem-solving/.claude-flow/metrics/task-metrics.json +10 -0
- package/docs/reasoningbank/models/problem-solving/.swarm/memory.db +0 -0
- package/docs/reasoningbank/models/problem-solving/README.md +629 -0
- package/docs/reasoningbank/models/problem-solving/SCHEMA-FIX-REPORT.md +66 -0
- package/docs/reasoningbank/models/problem-solving/TRAINING_SUMMARY.md +524 -0
- package/docs/reasoningbank/models/problem-solving/memory.db +0 -0
- package/docs/reasoningbank/models/problem-solving/memory.db.backup +0 -0
- package/docs/reasoningbank/models/problem-solving/train-problem.js +1319 -0
- package/docs/reasoningbank/models/problem-solving/validation-report.md +300 -0
- package/docs/reasoningbank/models/safla/.claude-flow/metrics/agent-metrics.json +1 -0
- package/docs/reasoningbank/models/safla/.claude-flow/metrics/performance.json +87 -0
- package/docs/reasoningbank/models/safla/.claude-flow/metrics/task-metrics.json +10 -0
- package/docs/reasoningbank/models/safla/CHEATSHEET.md +277 -0
- package/docs/reasoningbank/models/safla/COMPLETION_REPORT.txt +108 -0
- package/docs/reasoningbank/models/safla/MANIFEST.txt +104 -0
- package/docs/reasoningbank/models/safla/QUICKSTART.md +349 -0
- package/docs/reasoningbank/models/safla/README.md +457 -0
- package/docs/reasoningbank/models/safla/SCHEMA-FIX-REPORT.md +68 -0
- package/docs/reasoningbank/models/safla/TRAINING_SUMMARY.md +383 -0
- package/docs/reasoningbank/models/safla/memory/memory-store.json +11 -0
- package/docs/reasoningbank/models/safla/memory.db +0 -0
- package/docs/reasoningbank/models/safla/memory.db.backup +0 -0
- package/docs/reasoningbank/models/safla/node_modules/.package-lock.json +456 -0
- package/docs/reasoningbank/models/safla/node_modules/base64-js/LICENSE +21 -0
- package/docs/reasoningbank/models/safla/node_modules/base64-js/README.md +34 -0
- package/docs/reasoningbank/models/safla/node_modules/base64-js/base64js.min.js +1 -0
- package/docs/reasoningbank/models/safla/node_modules/base64-js/index.d.ts +3 -0
- package/docs/reasoningbank/models/safla/node_modules/base64-js/index.js +150 -0
- package/docs/reasoningbank/models/safla/node_modules/base64-js/package.json +47 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/LICENSE +21 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/README.md +99 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/binding.gyp +38 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/build/Release/better_sqlite3.node +0 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/deps/common.gypi +68 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/deps/copy.js +31 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/deps/defines.gypi +41 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/deps/download.sh +122 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/deps/patches/1208.patch +15 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/deps/sqlite3/sqlite3.c +261480 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/deps/sqlite3/sqlite3.h +13715 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/deps/sqlite3/sqlite3ext.h +719 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/deps/sqlite3.gyp +80 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/deps/test_extension.c +21 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/lib/database.js +90 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/lib/index.js +3 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/lib/methods/aggregate.js +43 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/lib/methods/backup.js +67 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/lib/methods/function.js +31 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/lib/methods/inspect.js +7 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/lib/methods/pragma.js +12 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/lib/methods/serialize.js +16 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/lib/methods/table.js +189 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/lib/methods/transaction.js +78 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/lib/methods/wrappers.js +54 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/lib/sqlite-error.js +20 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/lib/util.js +12 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/package.json +54 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/src/better_sqlite3.cpp +2186 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/src/better_sqlite3.hpp +1036 -0
- package/docs/reasoningbank/models/safla/node_modules/bindings/LICENSE.md +22 -0
- package/docs/reasoningbank/models/safla/node_modules/bindings/README.md +98 -0
- package/docs/reasoningbank/models/safla/node_modules/bindings/bindings.js +221 -0
- package/docs/reasoningbank/models/safla/node_modules/bindings/package.json +28 -0
- package/docs/reasoningbank/models/safla/node_modules/bl/.travis.yml +17 -0
- package/docs/reasoningbank/models/safla/node_modules/bl/BufferList.js +396 -0
- package/docs/reasoningbank/models/safla/node_modules/bl/LICENSE.md +13 -0
- package/docs/reasoningbank/models/safla/node_modules/bl/README.md +247 -0
- package/docs/reasoningbank/models/safla/node_modules/bl/bl.js +84 -0
- package/docs/reasoningbank/models/safla/node_modules/bl/package.json +37 -0
- package/docs/reasoningbank/models/safla/node_modules/bl/test/convert.js +21 -0
- package/docs/reasoningbank/models/safla/node_modules/bl/test/indexOf.js +492 -0
- package/docs/reasoningbank/models/safla/node_modules/bl/test/isBufferList.js +32 -0
- package/docs/reasoningbank/models/safla/node_modules/bl/test/test.js +869 -0
- package/docs/reasoningbank/models/safla/node_modules/buffer/AUTHORS.md +70 -0
- package/docs/reasoningbank/models/safla/node_modules/buffer/LICENSE +21 -0
- package/docs/reasoningbank/models/safla/node_modules/buffer/README.md +410 -0
- package/docs/reasoningbank/models/safla/node_modules/buffer/index.d.ts +186 -0
- package/docs/reasoningbank/models/safla/node_modules/buffer/index.js +1817 -0
- package/docs/reasoningbank/models/safla/node_modules/buffer/package.json +96 -0
- package/docs/reasoningbank/models/safla/node_modules/chownr/LICENSE +15 -0
- package/docs/reasoningbank/models/safla/node_modules/chownr/README.md +3 -0
- package/docs/reasoningbank/models/safla/node_modules/chownr/chownr.js +167 -0
- package/docs/reasoningbank/models/safla/node_modules/chownr/package.json +29 -0
- package/docs/reasoningbank/models/safla/node_modules/decompress-response/index.d.ts +22 -0
- package/docs/reasoningbank/models/safla/node_modules/decompress-response/index.js +58 -0
- package/docs/reasoningbank/models/safla/node_modules/decompress-response/license +9 -0
- package/docs/reasoningbank/models/safla/node_modules/decompress-response/package.json +56 -0
- package/docs/reasoningbank/models/safla/node_modules/decompress-response/readme.md +48 -0
- package/docs/reasoningbank/models/safla/node_modules/deep-extend/CHANGELOG.md +46 -0
- package/docs/reasoningbank/models/safla/node_modules/deep-extend/LICENSE +20 -0
- package/docs/reasoningbank/models/safla/node_modules/deep-extend/README.md +91 -0
- package/docs/reasoningbank/models/safla/node_modules/deep-extend/index.js +1 -0
- package/docs/reasoningbank/models/safla/node_modules/deep-extend/lib/deep-extend.js +150 -0
- package/docs/reasoningbank/models/safla/node_modules/deep-extend/package.json +62 -0
- package/docs/reasoningbank/models/safla/node_modules/detect-libc/LICENSE +201 -0
- package/docs/reasoningbank/models/safla/node_modules/detect-libc/README.md +163 -0
- package/docs/reasoningbank/models/safla/node_modules/detect-libc/index.d.ts +14 -0
- package/docs/reasoningbank/models/safla/node_modules/detect-libc/lib/detect-libc.js +313 -0
- package/docs/reasoningbank/models/safla/node_modules/detect-libc/lib/elf.js +39 -0
- package/docs/reasoningbank/models/safla/node_modules/detect-libc/lib/filesystem.js +51 -0
- package/docs/reasoningbank/models/safla/node_modules/detect-libc/lib/process.js +24 -0
- package/docs/reasoningbank/models/safla/node_modules/detect-libc/package.json +44 -0
- package/docs/reasoningbank/models/safla/node_modules/end-of-stream/LICENSE +21 -0
- package/docs/reasoningbank/models/safla/node_modules/end-of-stream/README.md +54 -0
- package/docs/reasoningbank/models/safla/node_modules/end-of-stream/index.js +96 -0
- package/docs/reasoningbank/models/safla/node_modules/end-of-stream/package.json +37 -0
- package/docs/reasoningbank/models/safla/node_modules/expand-template/.travis.yml +6 -0
- package/docs/reasoningbank/models/safla/node_modules/expand-template/LICENSE +21 -0
- package/docs/reasoningbank/models/safla/node_modules/expand-template/README.md +43 -0
- package/docs/reasoningbank/models/safla/node_modules/expand-template/index.js +26 -0
- package/docs/reasoningbank/models/safla/node_modules/expand-template/package.json +29 -0
- package/docs/reasoningbank/models/safla/node_modules/expand-template/test.js +67 -0
- package/docs/reasoningbank/models/safla/node_modules/file-uri-to-path/.travis.yml +30 -0
- package/docs/reasoningbank/models/safla/node_modules/file-uri-to-path/History.md +21 -0
- package/docs/reasoningbank/models/safla/node_modules/file-uri-to-path/LICENSE +20 -0
- package/docs/reasoningbank/models/safla/node_modules/file-uri-to-path/README.md +74 -0
- package/docs/reasoningbank/models/safla/node_modules/file-uri-to-path/index.d.ts +2 -0
- package/docs/reasoningbank/models/safla/node_modules/file-uri-to-path/index.js +66 -0
- package/docs/reasoningbank/models/safla/node_modules/file-uri-to-path/package.json +32 -0
- package/docs/reasoningbank/models/safla/node_modules/file-uri-to-path/test/test.js +24 -0
- package/docs/reasoningbank/models/safla/node_modules/file-uri-to-path/test/tests.json +13 -0
- package/docs/reasoningbank/models/safla/node_modules/fs-constants/LICENSE +21 -0
- package/docs/reasoningbank/models/safla/node_modules/fs-constants/README.md +26 -0
- package/docs/reasoningbank/models/safla/node_modules/fs-constants/browser.js +1 -0
- package/docs/reasoningbank/models/safla/node_modules/fs-constants/index.js +1 -0
- package/docs/reasoningbank/models/safla/node_modules/fs-constants/package.json +19 -0
- package/docs/reasoningbank/models/safla/node_modules/github-from-package/.travis.yml +4 -0
- package/docs/reasoningbank/models/safla/node_modules/github-from-package/LICENSE +18 -0
- package/docs/reasoningbank/models/safla/node_modules/github-from-package/example/package.json +8 -0
- package/docs/reasoningbank/models/safla/node_modules/github-from-package/example/url.js +3 -0
- package/docs/reasoningbank/models/safla/node_modules/github-from-package/index.js +17 -0
- package/docs/reasoningbank/models/safla/node_modules/github-from-package/package.json +30 -0
- package/docs/reasoningbank/models/safla/node_modules/github-from-package/readme.markdown +53 -0
- package/docs/reasoningbank/models/safla/node_modules/github-from-package/test/a.json +8 -0
- package/docs/reasoningbank/models/safla/node_modules/github-from-package/test/b.json +5 -0
- package/docs/reasoningbank/models/safla/node_modules/github-from-package/test/c.json +5 -0
- package/docs/reasoningbank/models/safla/node_modules/github-from-package/test/d.json +7 -0
- package/docs/reasoningbank/models/safla/node_modules/github-from-package/test/e.json +5 -0
- package/docs/reasoningbank/models/safla/node_modules/github-from-package/test/url.js +19 -0
- package/docs/reasoningbank/models/safla/node_modules/ieee754/LICENSE +11 -0
- package/docs/reasoningbank/models/safla/node_modules/ieee754/README.md +51 -0
- package/docs/reasoningbank/models/safla/node_modules/ieee754/index.d.ts +10 -0
- package/docs/reasoningbank/models/safla/node_modules/ieee754/index.js +85 -0
- package/docs/reasoningbank/models/safla/node_modules/ieee754/package.json +52 -0
- package/docs/reasoningbank/models/safla/node_modules/inherits/LICENSE +16 -0
- package/docs/reasoningbank/models/safla/node_modules/inherits/README.md +42 -0
- package/docs/reasoningbank/models/safla/node_modules/inherits/inherits.js +9 -0
- package/docs/reasoningbank/models/safla/node_modules/inherits/inherits_browser.js +27 -0
- package/docs/reasoningbank/models/safla/node_modules/inherits/package.json +29 -0
- package/docs/reasoningbank/models/safla/node_modules/ini/LICENSE +15 -0
- package/docs/reasoningbank/models/safla/node_modules/ini/README.md +102 -0
- package/docs/reasoningbank/models/safla/node_modules/ini/ini.js +206 -0
- package/docs/reasoningbank/models/safla/node_modules/ini/package.json +33 -0
- package/docs/reasoningbank/models/safla/node_modules/mimic-response/index.d.ts +17 -0
- package/docs/reasoningbank/models/safla/node_modules/mimic-response/index.js +77 -0
- package/docs/reasoningbank/models/safla/node_modules/mimic-response/license +9 -0
- package/docs/reasoningbank/models/safla/node_modules/mimic-response/package.json +42 -0
- package/docs/reasoningbank/models/safla/node_modules/mimic-response/readme.md +78 -0
- package/docs/reasoningbank/models/safla/node_modules/minimist/.eslintrc +29 -0
- package/docs/reasoningbank/models/safla/node_modules/minimist/.github/FUNDING.yml +12 -0
- package/docs/reasoningbank/models/safla/node_modules/minimist/.nycrc +14 -0
- package/docs/reasoningbank/models/safla/node_modules/minimist/CHANGELOG.md +298 -0
- package/docs/reasoningbank/models/safla/node_modules/minimist/LICENSE +18 -0
- package/docs/reasoningbank/models/safla/node_modules/minimist/README.md +121 -0
- package/docs/reasoningbank/models/safla/node_modules/minimist/example/parse.js +4 -0
- package/docs/reasoningbank/models/safla/node_modules/minimist/index.js +263 -0
- package/docs/reasoningbank/models/safla/node_modules/minimist/package.json +75 -0
- package/docs/reasoningbank/models/safla/node_modules/minimist/test/all_bool.js +34 -0
- package/docs/reasoningbank/models/safla/node_modules/minimist/test/bool.js +177 -0
- package/docs/reasoningbank/models/safla/node_modules/minimist/test/dash.js +43 -0
- package/docs/reasoningbank/models/safla/node_modules/minimist/test/default_bool.js +37 -0
- package/docs/reasoningbank/models/safla/node_modules/minimist/test/dotted.js +24 -0
- package/docs/reasoningbank/models/safla/node_modules/minimist/test/kv_short.js +32 -0
- package/docs/reasoningbank/models/safla/node_modules/minimist/test/long.js +33 -0
- package/docs/reasoningbank/models/safla/node_modules/minimist/test/num.js +38 -0
- package/docs/reasoningbank/models/safla/node_modules/minimist/test/parse.js +209 -0
- package/docs/reasoningbank/models/safla/node_modules/minimist/test/parse_modified.js +11 -0
- package/docs/reasoningbank/models/safla/node_modules/minimist/test/proto.js +64 -0
- package/docs/reasoningbank/models/safla/node_modules/minimist/test/short.js +69 -0
- package/docs/reasoningbank/models/safla/node_modules/minimist/test/stop_early.js +17 -0
- package/docs/reasoningbank/models/safla/node_modules/minimist/test/unknown.js +104 -0
- package/docs/reasoningbank/models/safla/node_modules/minimist/test/whitespace.js +10 -0
- package/docs/reasoningbank/models/safla/node_modules/mkdirp-classic/LICENSE +21 -0
- package/docs/reasoningbank/models/safla/node_modules/mkdirp-classic/README.md +18 -0
- package/docs/reasoningbank/models/safla/node_modules/mkdirp-classic/index.js +98 -0
- package/docs/reasoningbank/models/safla/node_modules/mkdirp-classic/package.json +18 -0
- package/docs/reasoningbank/models/safla/node_modules/napi-build-utils/.github/workflows/run-npm-tests.yml +31 -0
- package/docs/reasoningbank/models/safla/node_modules/napi-build-utils/LICENSE +21 -0
- package/docs/reasoningbank/models/safla/node_modules/napi-build-utils/README.md +52 -0
- package/docs/reasoningbank/models/safla/node_modules/napi-build-utils/index.js +214 -0
- package/docs/reasoningbank/models/safla/node_modules/napi-build-utils/index.md +0 -0
- package/docs/reasoningbank/models/safla/node_modules/napi-build-utils/package.json +42 -0
- package/docs/reasoningbank/models/safla/node_modules/node-abi/LICENSE +21 -0
- package/docs/reasoningbank/models/safla/node_modules/node-abi/README.md +54 -0
- package/docs/reasoningbank/models/safla/node_modules/node-abi/abi_registry.json +408 -0
- package/docs/reasoningbank/models/safla/node_modules/node-abi/index.js +179 -0
- package/docs/reasoningbank/models/safla/node_modules/node-abi/package.json +45 -0
- package/docs/reasoningbank/models/safla/node_modules/once/LICENSE +15 -0
- package/docs/reasoningbank/models/safla/node_modules/once/README.md +79 -0
- package/docs/reasoningbank/models/safla/node_modules/once/once.js +42 -0
- package/docs/reasoningbank/models/safla/node_modules/once/package.json +33 -0
- package/docs/reasoningbank/models/safla/node_modules/prebuild-install/CHANGELOG.md +131 -0
- package/docs/reasoningbank/models/safla/node_modules/prebuild-install/CONTRIBUTING.md +6 -0
- package/docs/reasoningbank/models/safla/node_modules/prebuild-install/LICENSE +21 -0
- package/docs/reasoningbank/models/safla/node_modules/prebuild-install/README.md +163 -0
- package/docs/reasoningbank/models/safla/node_modules/prebuild-install/asset.js +44 -0
- package/docs/reasoningbank/models/safla/node_modules/prebuild-install/bin.js +78 -0
- package/docs/reasoningbank/models/safla/node_modules/prebuild-install/download.js +142 -0
- package/docs/reasoningbank/models/safla/node_modules/prebuild-install/error.js +14 -0
- package/docs/reasoningbank/models/safla/node_modules/prebuild-install/help.txt +16 -0
- package/docs/reasoningbank/models/safla/node_modules/prebuild-install/index.js +1 -0
- package/docs/reasoningbank/models/safla/node_modules/prebuild-install/log.js +33 -0
- package/docs/reasoningbank/models/safla/node_modules/prebuild-install/package.json +67 -0
- package/docs/reasoningbank/models/safla/node_modules/prebuild-install/proxy.js +35 -0
- package/docs/reasoningbank/models/safla/node_modules/prebuild-install/rc.js +64 -0
- package/docs/reasoningbank/models/safla/node_modules/prebuild-install/util.js +143 -0
- package/docs/reasoningbank/models/safla/node_modules/pump/.github/FUNDING.yml +2 -0
- package/docs/reasoningbank/models/safla/node_modules/pump/.travis.yml +5 -0
- package/docs/reasoningbank/models/safla/node_modules/pump/LICENSE +21 -0
- package/docs/reasoningbank/models/safla/node_modules/pump/README.md +74 -0
- package/docs/reasoningbank/models/safla/node_modules/pump/SECURITY.md +5 -0
- package/docs/reasoningbank/models/safla/node_modules/pump/index.js +86 -0
- package/docs/reasoningbank/models/safla/node_modules/pump/package.json +24 -0
- package/docs/reasoningbank/models/safla/node_modules/pump/test-browser.js +66 -0
- package/docs/reasoningbank/models/safla/node_modules/pump/test-node.js +53 -0
- package/docs/reasoningbank/models/safla/node_modules/rc/LICENSE.APACHE2 +15 -0
- package/docs/reasoningbank/models/safla/node_modules/rc/LICENSE.BSD +26 -0
- package/docs/reasoningbank/models/safla/node_modules/rc/LICENSE.MIT +24 -0
- package/docs/reasoningbank/models/safla/node_modules/rc/README.md +227 -0
- package/docs/reasoningbank/models/safla/node_modules/rc/browser.js +7 -0
- package/docs/reasoningbank/models/safla/node_modules/rc/cli.js +4 -0
- package/docs/reasoningbank/models/safla/node_modules/rc/index.js +53 -0
- package/docs/reasoningbank/models/safla/node_modules/rc/lib/utils.js +104 -0
- package/docs/reasoningbank/models/safla/node_modules/rc/package.json +29 -0
- package/docs/reasoningbank/models/safla/node_modules/rc/test/ini.js +16 -0
- package/docs/reasoningbank/models/safla/node_modules/rc/test/nested-env-vars.js +50 -0
- package/docs/reasoningbank/models/safla/node_modules/rc/test/test.js +59 -0
- package/docs/reasoningbank/models/safla/node_modules/readable-stream/CONTRIBUTING.md +38 -0
- package/docs/reasoningbank/models/safla/node_modules/readable-stream/GOVERNANCE.md +136 -0
- package/docs/reasoningbank/models/safla/node_modules/readable-stream/LICENSE +47 -0
- package/docs/reasoningbank/models/safla/node_modules/readable-stream/README.md +106 -0
- package/docs/reasoningbank/models/safla/node_modules/readable-stream/errors-browser.js +127 -0
- package/docs/reasoningbank/models/safla/node_modules/readable-stream/errors.js +116 -0
- package/docs/reasoningbank/models/safla/node_modules/readable-stream/experimentalWarning.js +17 -0
- package/docs/reasoningbank/models/safla/node_modules/readable-stream/lib/_stream_duplex.js +126 -0
- package/docs/reasoningbank/models/safla/node_modules/readable-stream/lib/_stream_passthrough.js +37 -0
- package/docs/reasoningbank/models/safla/node_modules/readable-stream/lib/_stream_readable.js +1027 -0
- package/docs/reasoningbank/models/safla/node_modules/readable-stream/lib/_stream_transform.js +190 -0
- package/docs/reasoningbank/models/safla/node_modules/readable-stream/lib/_stream_writable.js +641 -0
- package/docs/reasoningbank/models/safla/node_modules/readable-stream/lib/internal/streams/async_iterator.js +180 -0
- package/docs/reasoningbank/models/safla/node_modules/readable-stream/lib/internal/streams/buffer_list.js +183 -0
- package/docs/reasoningbank/models/safla/node_modules/readable-stream/lib/internal/streams/destroy.js +96 -0
- package/docs/reasoningbank/models/safla/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +86 -0
- package/docs/reasoningbank/models/safla/node_modules/readable-stream/lib/internal/streams/from-browser.js +3 -0
- package/docs/reasoningbank/models/safla/node_modules/readable-stream/lib/internal/streams/from.js +52 -0
- package/docs/reasoningbank/models/safla/node_modules/readable-stream/lib/internal/streams/pipeline.js +86 -0
- package/docs/reasoningbank/models/safla/node_modules/readable-stream/lib/internal/streams/state.js +22 -0
- package/docs/reasoningbank/models/safla/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
- package/docs/reasoningbank/models/safla/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
- package/docs/reasoningbank/models/safla/node_modules/readable-stream/package.json +68 -0
- package/docs/reasoningbank/models/safla/node_modules/readable-stream/readable-browser.js +9 -0
- package/docs/reasoningbank/models/safla/node_modules/readable-stream/readable.js +16 -0
- package/docs/reasoningbank/models/safla/node_modules/safe-buffer/LICENSE +21 -0
- package/docs/reasoningbank/models/safla/node_modules/safe-buffer/README.md +584 -0
- package/docs/reasoningbank/models/safla/node_modules/safe-buffer/index.d.ts +187 -0
- package/docs/reasoningbank/models/safla/node_modules/safe-buffer/index.js +65 -0
- package/docs/reasoningbank/models/safla/node_modules/safe-buffer/package.json +51 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/LICENSE +15 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/README.md +664 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/bin/semver.js +191 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/classes/comparator.js +143 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/classes/index.js +7 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/classes/range.js +557 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/classes/semver.js +333 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/functions/clean.js +8 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/functions/cmp.js +54 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/functions/coerce.js +62 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/functions/compare-build.js +9 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/functions/compare-loose.js +5 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/functions/compare.js +7 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/functions/diff.js +60 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/functions/eq.js +5 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/functions/gt.js +5 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/functions/gte.js +5 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/functions/inc.js +21 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/functions/lt.js +5 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/functions/lte.js +5 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/functions/major.js +5 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/functions/minor.js +5 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/functions/neq.js +5 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/functions/parse.js +18 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/functions/patch.js +5 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/functions/prerelease.js +8 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/functions/rcompare.js +5 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/functions/rsort.js +5 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/functions/satisfies.js +12 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/functions/sort.js +5 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/functions/valid.js +8 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/index.js +91 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/internal/constants.js +37 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/internal/debug.js +11 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/internal/identifiers.js +29 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/internal/lrucache.js +42 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/internal/parse-options.js +17 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/internal/re.js +223 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/package.json +78 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/preload.js +4 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/range.bnf +16 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/ranges/gtr.js +6 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/ranges/intersects.js +9 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/ranges/ltr.js +6 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/ranges/max-satisfying.js +27 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/ranges/min-satisfying.js +26 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/ranges/min-version.js +63 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/ranges/outside.js +82 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/ranges/simplify.js +49 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/ranges/subset.js +249 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/ranges/to-comparators.js +10 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/ranges/valid.js +13 -0
- package/docs/reasoningbank/models/safla/node_modules/simple-concat/.travis.yml +3 -0
- package/docs/reasoningbank/models/safla/node_modules/simple-concat/LICENSE +20 -0
- package/docs/reasoningbank/models/safla/node_modules/simple-concat/README.md +44 -0
- package/docs/reasoningbank/models/safla/node_modules/simple-concat/index.js +15 -0
- package/docs/reasoningbank/models/safla/node_modules/simple-concat/package.json +47 -0
- package/docs/reasoningbank/models/safla/node_modules/simple-concat/test/basic.js +41 -0
- package/docs/reasoningbank/models/safla/node_modules/simple-get/.github/dependabot.yml +15 -0
- package/docs/reasoningbank/models/safla/node_modules/simple-get/.github/workflows/ci.yml +23 -0
- package/docs/reasoningbank/models/safla/node_modules/simple-get/LICENSE +20 -0
- package/docs/reasoningbank/models/safla/node_modules/simple-get/README.md +333 -0
- package/docs/reasoningbank/models/safla/node_modules/simple-get/index.js +108 -0
- package/docs/reasoningbank/models/safla/node_modules/simple-get/package.json +67 -0
- package/docs/reasoningbank/models/safla/node_modules/string_decoder/LICENSE +48 -0
- package/docs/reasoningbank/models/safla/node_modules/string_decoder/README.md +47 -0
- package/docs/reasoningbank/models/safla/node_modules/string_decoder/lib/string_decoder.js +296 -0
- package/docs/reasoningbank/models/safla/node_modules/string_decoder/package.json +34 -0
- package/docs/reasoningbank/models/safla/node_modules/strip-json-comments/index.js +70 -0
- package/docs/reasoningbank/models/safla/node_modules/strip-json-comments/license +21 -0
- package/docs/reasoningbank/models/safla/node_modules/strip-json-comments/package.json +42 -0
- package/docs/reasoningbank/models/safla/node_modules/strip-json-comments/readme.md +64 -0
- package/docs/reasoningbank/models/safla/node_modules/tar-fs/.travis.yml +6 -0
- package/docs/reasoningbank/models/safla/node_modules/tar-fs/LICENSE +21 -0
- package/docs/reasoningbank/models/safla/node_modules/tar-fs/README.md +165 -0
- package/docs/reasoningbank/models/safla/node_modules/tar-fs/index.js +363 -0
- package/docs/reasoningbank/models/safla/node_modules/tar-fs/package.json +41 -0
- package/docs/reasoningbank/models/safla/node_modules/tar-fs/test/fixtures/a/hello.txt +1 -0
- package/docs/reasoningbank/models/safla/node_modules/tar-fs/test/fixtures/b/a/test.txt +1 -0
- package/docs/reasoningbank/models/safla/node_modules/tar-fs/test/fixtures/d/file1 +0 -0
- package/docs/reasoningbank/models/safla/node_modules/tar-fs/test/fixtures/d/file2 +0 -0
- package/docs/reasoningbank/models/safla/node_modules/tar-fs/test/fixtures/d/sub-dir/file5 +0 -0
- package/docs/reasoningbank/models/safla/node_modules/tar-fs/test/fixtures/d/sub-files/file3 +0 -0
- package/docs/reasoningbank/models/safla/node_modules/tar-fs/test/fixtures/d/sub-files/file4 +0 -0
- package/docs/reasoningbank/models/safla/node_modules/tar-fs/test/fixtures/e/directory/.ignore +0 -0
- package/docs/reasoningbank/models/safla/node_modules/tar-fs/test/fixtures/e/file +0 -0
- package/docs/reasoningbank/models/safla/node_modules/tar-fs/test/fixtures/invalid.tar +0 -0
- package/docs/reasoningbank/models/safla/node_modules/tar-fs/test/index.js +346 -0
- package/docs/reasoningbank/models/safla/node_modules/tar-stream/LICENSE +21 -0
- package/docs/reasoningbank/models/safla/node_modules/tar-stream/README.md +168 -0
- package/docs/reasoningbank/models/safla/node_modules/tar-stream/extract.js +257 -0
- package/docs/reasoningbank/models/safla/node_modules/tar-stream/headers.js +295 -0
- package/docs/reasoningbank/models/safla/node_modules/tar-stream/index.js +2 -0
- package/docs/reasoningbank/models/safla/node_modules/tar-stream/pack.js +255 -0
- package/docs/reasoningbank/models/safla/node_modules/tar-stream/package.json +58 -0
- package/docs/reasoningbank/models/safla/node_modules/tar-stream/sandbox.js +11 -0
- package/docs/reasoningbank/models/safla/node_modules/tunnel-agent/LICENSE +55 -0
- package/docs/reasoningbank/models/safla/node_modules/tunnel-agent/README.md +4 -0
- package/docs/reasoningbank/models/safla/node_modules/tunnel-agent/index.js +244 -0
- package/docs/reasoningbank/models/safla/node_modules/tunnel-agent/package.json +22 -0
- package/docs/reasoningbank/models/safla/node_modules/util-deprecate/History.md +16 -0
- package/docs/reasoningbank/models/safla/node_modules/util-deprecate/LICENSE +24 -0
- package/docs/reasoningbank/models/safla/node_modules/util-deprecate/README.md +53 -0
- package/docs/reasoningbank/models/safla/node_modules/util-deprecate/browser.js +67 -0
- package/docs/reasoningbank/models/safla/node_modules/util-deprecate/node.js +6 -0
- package/docs/reasoningbank/models/safla/node_modules/util-deprecate/package.json +27 -0
- package/docs/reasoningbank/models/safla/node_modules/wrappy/LICENSE +15 -0
- package/docs/reasoningbank/models/safla/node_modules/wrappy/README.md +36 -0
- package/docs/reasoningbank/models/safla/node_modules/wrappy/package.json +29 -0
- package/docs/reasoningbank/models/safla/node_modules/wrappy/wrappy.js +33 -0
- package/docs/reasoningbank/models/safla/package-lock.json +463 -0
- package/docs/reasoningbank/models/safla/package.json +14 -0
- package/docs/reasoningbank/models/safla/train-safla.js +524 -0
- package/docs/reasoningbank/models/safla/training.log +64 -0
- package/docs/reasoningbank/models/safla/validate-safla.js +449 -0
- package/docs/reasoningbank/models/safla/validation-report.md +115 -0
- package/docs/reasoningbank/models/safla/validation-results.json +189 -0
- package/docs/reasoningbank/tutorial-advanced.md +869 -0
- package/docs/reasoningbank/tutorial-basic.md +626 -0
- package/docs/reports/validation/PROCESS-EXIT-FIX-v2.7.0-alpha.9.md +154 -0
- package/docs/reports/validation/REASONINGBANK-v1.5.13-VALIDATION.md +1 -1
- package/docs/skills/skills-tutorial.md +2910 -0
- package/docs/skills-tutorial.md +1251 -0
- package/package.json +4 -3
- package/src/cli/simple-commands/init/index.js +32 -14
- package/src/cli/simple-commands/init/skills-copier.js +215 -0
- package/src/cli/simple-commands/process-ui-enhanced.js +1 -1
- package/src/cli/simple-commands/status.js +1 -1
- package/src/reasoningbank/reasoningbank-adapter.js +8 -6
- package/.claude/commands/analysis/COMMAND_COMPLIANCE_REPORT.md +0 -54
- package/.claude/commands/analysis/bottleneck-detect.md +0 -162
- package/.claude/commands/analysis/performance-bottlenecks.md +0 -59
- package/.claude/commands/analysis/performance-report.md +0 -25
- package/.claude/commands/flow-nexus/app-store.md +0 -124
- package/.claude/commands/flow-nexus/challenges.md +0 -120
- package/.claude/commands/flow-nexus/login-registration.md +0 -65
- package/.claude/commands/flow-nexus/neural-network.md +0 -134
- package/.claude/commands/flow-nexus/payments.md +0 -116
- package/.claude/commands/flow-nexus/sandbox.md +0 -83
- package/.claude/commands/flow-nexus/swarm.md +0 -87
- package/.claude/commands/flow-nexus/user-tools.md +0 -152
- package/.claude/commands/flow-nexus/workflow.md +0 -115
- package/.claude/commands/github/code-review-swarm.md +0 -514
- package/.claude/commands/github/github-modes.md +0 -147
- package/.claude/commands/github/issue-tracker.md +0 -292
- package/.claude/commands/github/multi-repo-swarm.md +0 -519
- package/.claude/commands/github/pr-manager.md +0 -170
- package/.claude/commands/github/project-board-sync.md +0 -471
- package/.claude/commands/github/release-manager.md +0 -338
- package/.claude/commands/github/release-swarm.md +0 -544
- package/.claude/commands/github/repo-architect.md +0 -367
- package/.claude/commands/github/swarm-issue.md +0 -482
- package/.claude/commands/github/swarm-pr.md +0 -285
- package/.claude/commands/github/sync-coordinator.md +0 -301
- package/.claude/commands/github/workflow-automation.md +0 -442
- package/.claude/commands/hive-mind/hive-mind-resume.md +0 -8
- package/.claude/commands/hive-mind/hive-mind-sessions.md +0 -8
- package/.claude/commands/hive-mind/hive-mind-stop.md +0 -8
- package/.claude/commands/hive-mind/hive-mind-wizard.md +0 -8
- package/.claude/commands/hive-mind/hive-mind.md +0 -27
- package/.claude/commands/hooks/overview.md +0 -132
- package/.claude/commands/memory/usage.md +0 -46
- package/.claude/commands/pair/commands.md +0 -546
- package/.claude/commands/pair/config.md +0 -510
- package/.claude/commands/pair/examples.md +0 -512
- package/.claude/commands/pair/modes.md +0 -348
- package/.claude/commands/pair/session.md +0 -407
- package/.claude/commands/pair/start.md +0 -209
- package/.claude/commands/sparc/orchestrator.md +0 -132
- package/.claude/commands/sparc/sparc-modes.md +0 -174
- package/.claude/commands/stream-chain/pipeline.md +0 -121
- package/.claude/commands/stream-chain/run.md +0 -70
- package/.claude/commands/swarm/analysis.md +0 -95
- package/.claude/commands/swarm/development.md +0 -96
- package/.claude/commands/swarm/examples.md +0 -168
- package/.claude/commands/swarm/maintenance.md +0 -102
- package/.claude/commands/swarm/optimization.md +0 -117
- package/.claude/commands/swarm/research.md +0 -136
- package/.claude/commands/swarm/swarm-analysis.md +0 -8
- package/.claude/commands/swarm/swarm-spawn.md +0 -19
- package/.claude/commands/swarm/swarm-strategies.md +0 -8
- package/.claude/commands/swarm/testing.md +0 -131
- package/.claude/commands/truth/start.md +0 -143
- package/.claude/commands/verify/check.md +0 -50
- package/.claude/commands/verify/start.md +0 -128
- /package/{.claude/agents → docs}/reasoning/README.md +0 -0
- /package/{.claude/agents → docs}/reasoning/example-reasoning-agent-template.md +0 -0
|
@@ -0,0 +1,1211 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MCP Tool Wrapper for Hive Mind System
|
|
3
|
+
* Wraps all 87 MCP tools for coordinated swarm usage
|
|
4
|
+
*/
|
|
5
|
+
import { spawn } from 'child_process';
|
|
6
|
+
/**
|
|
7
|
+
* MCP Tool categories and their methods
|
|
8
|
+
*/
|
|
9
|
+
const MCP_TOOLS = {
|
|
10
|
+
swarm: [
|
|
11
|
+
'swarm_init',
|
|
12
|
+
'agent_spawn',
|
|
13
|
+
'task_orchestrate',
|
|
14
|
+
'swarm_status',
|
|
15
|
+
'agent_list',
|
|
16
|
+
'agent_metrics',
|
|
17
|
+
'swarm_monitor',
|
|
18
|
+
'topology_optimize',
|
|
19
|
+
'load_balance',
|
|
20
|
+
'coordination_sync',
|
|
21
|
+
'swarm_scale',
|
|
22
|
+
'swarm_destroy',
|
|
23
|
+
],
|
|
24
|
+
neural: [
|
|
25
|
+
'neural_status',
|
|
26
|
+
'neural_train',
|
|
27
|
+
'neural_patterns',
|
|
28
|
+
'neural_predict',
|
|
29
|
+
'model_load',
|
|
30
|
+
'model_save',
|
|
31
|
+
'wasm_optimize',
|
|
32
|
+
'inference_run',
|
|
33
|
+
'pattern_recognize',
|
|
34
|
+
'cognitive_analyze',
|
|
35
|
+
'learning_adapt',
|
|
36
|
+
'neural_compress',
|
|
37
|
+
'ensemble_create',
|
|
38
|
+
'transfer_learn',
|
|
39
|
+
'neural_explain',
|
|
40
|
+
],
|
|
41
|
+
memory: [
|
|
42
|
+
'memory_usage',
|
|
43
|
+
'memory_search',
|
|
44
|
+
'memory_persist',
|
|
45
|
+
'memory_namespace',
|
|
46
|
+
'memory_backup',
|
|
47
|
+
'memory_restore',
|
|
48
|
+
'memory_compress',
|
|
49
|
+
'memory_sync',
|
|
50
|
+
'cache_manage',
|
|
51
|
+
'state_snapshot',
|
|
52
|
+
'context_restore',
|
|
53
|
+
'memory_analytics',
|
|
54
|
+
],
|
|
55
|
+
performance: [
|
|
56
|
+
'performance_report',
|
|
57
|
+
'bottleneck_analyze',
|
|
58
|
+
'token_usage',
|
|
59
|
+
'benchmark_run',
|
|
60
|
+
'metrics_collect',
|
|
61
|
+
'trend_analysis',
|
|
62
|
+
'cost_analysis',
|
|
63
|
+
'quality_assess',
|
|
64
|
+
'error_analysis',
|
|
65
|
+
'usage_stats',
|
|
66
|
+
'health_check',
|
|
67
|
+
],
|
|
68
|
+
github: [
|
|
69
|
+
'github_repo_analyze',
|
|
70
|
+
'github_pr_manage',
|
|
71
|
+
'github_issue_track',
|
|
72
|
+
'github_release_coord',
|
|
73
|
+
'github_workflow_auto',
|
|
74
|
+
'github_code_review',
|
|
75
|
+
'github_sync_coord',
|
|
76
|
+
'github_metrics',
|
|
77
|
+
],
|
|
78
|
+
workflow: [
|
|
79
|
+
'workflow_create',
|
|
80
|
+
'workflow_execute',
|
|
81
|
+
'workflow_export',
|
|
82
|
+
'automation_setup',
|
|
83
|
+
'pipeline_create',
|
|
84
|
+
'scheduler_manage',
|
|
85
|
+
'trigger_setup',
|
|
86
|
+
'workflow_template',
|
|
87
|
+
'batch_process',
|
|
88
|
+
'parallel_execute',
|
|
89
|
+
],
|
|
90
|
+
daa: [
|
|
91
|
+
'daa_agent_create',
|
|
92
|
+
'daa_capability_match',
|
|
93
|
+
'daa_resource_alloc',
|
|
94
|
+
'daa_lifecycle_manage',
|
|
95
|
+
'daa_communication',
|
|
96
|
+
'daa_consensus',
|
|
97
|
+
'daa_fault_tolerance',
|
|
98
|
+
'daa_optimization',
|
|
99
|
+
],
|
|
100
|
+
system: [
|
|
101
|
+
'terminal_execute',
|
|
102
|
+
'config_manage',
|
|
103
|
+
'features_detect',
|
|
104
|
+
'security_scan',
|
|
105
|
+
'backup_create',
|
|
106
|
+
'restore_system',
|
|
107
|
+
'log_analysis',
|
|
108
|
+
'diagnostic_run',
|
|
109
|
+
],
|
|
110
|
+
sparc: ['sparc_mode'],
|
|
111
|
+
task: ['task_status', 'task_results'],
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* MCPToolWrapper class for unified MCP tool access
|
|
115
|
+
*/
|
|
116
|
+
export class MCPToolWrapper {
|
|
117
|
+
constructor(config = {}) {
|
|
118
|
+
this.config = {
|
|
119
|
+
parallel: true,
|
|
120
|
+
timeout: 60000,
|
|
121
|
+
retryCount: 3,
|
|
122
|
+
...config,
|
|
123
|
+
};
|
|
124
|
+
this.toolStats = new Map();
|
|
125
|
+
this.parallelQueue = [];
|
|
126
|
+
this.executing = false;
|
|
127
|
+
/** @type {import('better-sqlite3').Database | null} */
|
|
128
|
+
this.memoryDb = null;
|
|
129
|
+
// Initialize memory store for fallback
|
|
130
|
+
this.memoryStore = new Map();
|
|
131
|
+
// Initialize real memory storage
|
|
132
|
+
this.initializeMemoryStorage();
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Initialize real memory storage using SQLite
|
|
136
|
+
*/
|
|
137
|
+
async initializeMemoryStorage() {
|
|
138
|
+
try {
|
|
139
|
+
const { createDatabase, isSQLiteAvailable } = await import('../../../memory/sqlite-wrapper.js');
|
|
140
|
+
const path = await import('path');
|
|
141
|
+
const fs = await import('fs');
|
|
142
|
+
// Check if SQLite is available
|
|
143
|
+
const sqliteAvailable = await isSQLiteAvailable();
|
|
144
|
+
if (!sqliteAvailable) {
|
|
145
|
+
throw new Error('SQLite not available');
|
|
146
|
+
}
|
|
147
|
+
// Create .hive-mind directory if it doesn't exist
|
|
148
|
+
const hiveMindDir = path.join(process.cwd(), '.hive-mind');
|
|
149
|
+
if (!fs.existsSync(hiveMindDir)) {
|
|
150
|
+
fs.mkdirSync(hiveMindDir, { recursive: true });
|
|
151
|
+
}
|
|
152
|
+
// Initialize SQLite database
|
|
153
|
+
const dbPath = path.join(hiveMindDir, 'memory.db');
|
|
154
|
+
this.memoryDb = await createDatabase(dbPath);
|
|
155
|
+
// Create memories table
|
|
156
|
+
this.memoryDb.exec(`
|
|
157
|
+
CREATE TABLE IF NOT EXISTS memories (
|
|
158
|
+
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
159
|
+
namespace TEXT NOT NULL,
|
|
160
|
+
key TEXT NOT NULL,
|
|
161
|
+
value TEXT NOT NULL,
|
|
162
|
+
type TEXT DEFAULT 'knowledge',
|
|
163
|
+
timestamp INTEGER NOT NULL,
|
|
164
|
+
created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
|
|
165
|
+
UNIQUE(namespace, key)
|
|
166
|
+
)
|
|
167
|
+
`);
|
|
168
|
+
// Real memory storage initialized with SQLite
|
|
169
|
+
}
|
|
170
|
+
catch (error) {
|
|
171
|
+
console.warn('Failed to initialize SQLite storage, falling back to in-memory:', error.message);
|
|
172
|
+
this.memoryDb = null;
|
|
173
|
+
this.memoryStore = new Map(); // Fallback to in-memory storage
|
|
174
|
+
// Log Windows-specific help if applicable
|
|
175
|
+
if (process.platform === 'win32') {
|
|
176
|
+
console.info(`
|
|
177
|
+
Windows users: For persistent storage, please see installation guide:
|
|
178
|
+
https://github.com/ruvnet/claude-code-flow/docs/windows-installation.md
|
|
179
|
+
`);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* Execute MCP tool with automatic retry and error handling
|
|
185
|
+
*/
|
|
186
|
+
async executeTool(toolName, params = {}) {
|
|
187
|
+
const startTime = Date.now();
|
|
188
|
+
let lastError = null;
|
|
189
|
+
for (let attempt = 1; attempt <= this.config.retryCount; attempt++) {
|
|
190
|
+
try {
|
|
191
|
+
const result = await this._executeToolInternal(toolName, params);
|
|
192
|
+
// Track statistics
|
|
193
|
+
this._trackToolUsage(toolName, Date.now() - startTime, true);
|
|
194
|
+
return result;
|
|
195
|
+
}
|
|
196
|
+
catch (error) {
|
|
197
|
+
lastError = error;
|
|
198
|
+
console.error(`Attempt ${attempt} failed for ${toolName}:`, error.message);
|
|
199
|
+
if (attempt < this.config.retryCount) {
|
|
200
|
+
// Exponential backoff
|
|
201
|
+
await new Promise((resolve) => setTimeout(resolve, Math.pow(2, attempt) * 1000));
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
// Track failure
|
|
206
|
+
this._trackToolUsage(toolName, Date.now() - startTime, false);
|
|
207
|
+
throw new Error(`Failed to execute ${toolName} after ${this.config.retryCount} attempts: ${lastError.message}`);
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* Execute multiple tools in parallel with optimized batching
|
|
211
|
+
*/
|
|
212
|
+
async executeParallel(toolCalls) {
|
|
213
|
+
if (!this.config.parallel) {
|
|
214
|
+
// Execute sequentially if parallel is disabled
|
|
215
|
+
const results = [];
|
|
216
|
+
for (const call of toolCalls) {
|
|
217
|
+
results.push(await this.executeTool(call.tool, call.params));
|
|
218
|
+
}
|
|
219
|
+
return results;
|
|
220
|
+
}
|
|
221
|
+
if (!Array.isArray(toolCalls) || toolCalls.length === 0) {
|
|
222
|
+
return [];
|
|
223
|
+
}
|
|
224
|
+
const startTime = Date.now();
|
|
225
|
+
// Intelligent concurrency limit based on tool types
|
|
226
|
+
const concurrencyLimit = this._calculateOptimalConcurrency(toolCalls);
|
|
227
|
+
// Group tools by priority and dependency
|
|
228
|
+
const toolGroups = this._groupToolsByPriority(toolCalls);
|
|
229
|
+
const allResults = [];
|
|
230
|
+
try {
|
|
231
|
+
// Execute high-priority tools first
|
|
232
|
+
for (const group of toolGroups) {
|
|
233
|
+
const groupResults = [];
|
|
234
|
+
for (let i = 0; i < group.length; i += concurrencyLimit) {
|
|
235
|
+
const batch = group.slice(i, i + concurrencyLimit);
|
|
236
|
+
// Execute batch with timeout and retry logic
|
|
237
|
+
const batchPromises = batch.map((call) => this._executeWithTimeout(call, this.config.timeout));
|
|
238
|
+
const batchResults = await Promise.allSettled(batchPromises);
|
|
239
|
+
// Process results and handle failures
|
|
240
|
+
for (let j = 0; j < batchResults.length; j++) {
|
|
241
|
+
const result = batchResults[j];
|
|
242
|
+
if (result.status === 'fulfilled') {
|
|
243
|
+
groupResults.push(result.value);
|
|
244
|
+
}
|
|
245
|
+
else {
|
|
246
|
+
console.warn(`Tool execution failed: ${batch[j].tool}`, result.reason);
|
|
247
|
+
groupResults.push({ error: result.reason.message, tool: batch[j].tool });
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
allResults.push(...groupResults);
|
|
252
|
+
}
|
|
253
|
+
// Track performance metrics
|
|
254
|
+
const executionTime = Date.now() - startTime;
|
|
255
|
+
this._trackBatchPerformance(toolCalls.length, executionTime, concurrencyLimit);
|
|
256
|
+
return allResults;
|
|
257
|
+
}
|
|
258
|
+
catch (error) {
|
|
259
|
+
console.error('Parallel execution failed:', error);
|
|
260
|
+
throw error;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* Calculate optimal concurrency based on tool types
|
|
265
|
+
*/
|
|
266
|
+
_calculateOptimalConcurrency(toolCalls) {
|
|
267
|
+
const toolTypes = toolCalls.map((call) => this._getToolCategory(call.tool));
|
|
268
|
+
const uniqueTypes = new Set(toolTypes);
|
|
269
|
+
// Heavy operations (neural, github) need lower concurrency
|
|
270
|
+
const heavyTypes = ['neural', 'github', 'workflow'];
|
|
271
|
+
const hasHeavyOps = toolTypes.some((type) => heavyTypes.includes(type));
|
|
272
|
+
if (hasHeavyOps) {
|
|
273
|
+
return Math.min(3, Math.max(1, Math.floor(toolCalls.length / 2)));
|
|
274
|
+
}
|
|
275
|
+
// Light operations (memory, performance) can handle higher concurrency
|
|
276
|
+
return Math.min(8, Math.max(2, Math.floor(toolCalls.length / 1.5)));
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* Group tools by execution priority
|
|
280
|
+
*/
|
|
281
|
+
_groupToolsByPriority(toolCalls) {
|
|
282
|
+
const priorities = {
|
|
283
|
+
critical: [], // swarm_init, swarm_destroy
|
|
284
|
+
high: [], // agent_spawn, memory operations
|
|
285
|
+
medium: [], // task operations, monitoring
|
|
286
|
+
low: [], // analytics, reporting
|
|
287
|
+
};
|
|
288
|
+
toolCalls.forEach((call) => {
|
|
289
|
+
const category = this._getToolCategory(call.tool);
|
|
290
|
+
const tool = call.tool;
|
|
291
|
+
if (['swarm_init', 'swarm_destroy', 'memory_backup'].includes(tool)) {
|
|
292
|
+
priorities.critical.push(call);
|
|
293
|
+
}
|
|
294
|
+
else if (['agent_spawn', 'memory_usage', 'neural_train'].includes(tool)) {
|
|
295
|
+
priorities.high.push(call);
|
|
296
|
+
}
|
|
297
|
+
else if (category === 'performance' || tool.includes('report')) {
|
|
298
|
+
priorities.low.push(call);
|
|
299
|
+
}
|
|
300
|
+
else {
|
|
301
|
+
priorities.medium.push(call);
|
|
302
|
+
}
|
|
303
|
+
});
|
|
304
|
+
// Return groups in priority order, filtering empty groups
|
|
305
|
+
return [priorities.critical, priorities.high, priorities.medium, priorities.low].filter((group) => group.length > 0);
|
|
306
|
+
}
|
|
307
|
+
/**
|
|
308
|
+
* Execute tool with timeout wrapper
|
|
309
|
+
*/
|
|
310
|
+
async _executeWithTimeout(call, timeout) {
|
|
311
|
+
return new Promise((resolve, reject) => {
|
|
312
|
+
const timer = setTimeout(() => {
|
|
313
|
+
reject(new Error(`Tool ${call.tool} timed out after ${timeout}ms`));
|
|
314
|
+
}, timeout);
|
|
315
|
+
this.executeTool(call.tool, call.params)
|
|
316
|
+
.then((result) => {
|
|
317
|
+
clearTimeout(timer);
|
|
318
|
+
resolve(result);
|
|
319
|
+
})
|
|
320
|
+
.catch((error) => {
|
|
321
|
+
clearTimeout(timer);
|
|
322
|
+
reject(error);
|
|
323
|
+
});
|
|
324
|
+
});
|
|
325
|
+
}
|
|
326
|
+
/**
|
|
327
|
+
* Track batch execution performance
|
|
328
|
+
*/
|
|
329
|
+
_trackBatchPerformance(toolCount, executionTime, concurrency) {
|
|
330
|
+
if (!this.batchStats) {
|
|
331
|
+
this.batchStats = {
|
|
332
|
+
totalBatches: 0,
|
|
333
|
+
totalTools: 0,
|
|
334
|
+
totalTime: 0,
|
|
335
|
+
avgConcurrency: 0,
|
|
336
|
+
avgToolsPerBatch: 0,
|
|
337
|
+
avgTimePerTool: 0,
|
|
338
|
+
};
|
|
339
|
+
}
|
|
340
|
+
this.batchStats.totalBatches++;
|
|
341
|
+
this.batchStats.totalTools += toolCount;
|
|
342
|
+
this.batchStats.totalTime += executionTime;
|
|
343
|
+
this.batchStats.avgConcurrency =
|
|
344
|
+
(this.batchStats.avgConcurrency * (this.batchStats.totalBatches - 1) + concurrency) /
|
|
345
|
+
this.batchStats.totalBatches;
|
|
346
|
+
this.batchStats.avgToolsPerBatch = this.batchStats.totalTools / this.batchStats.totalBatches;
|
|
347
|
+
this.batchStats.avgTimePerTool = this.batchStats.totalTime / this.batchStats.totalTools;
|
|
348
|
+
}
|
|
349
|
+
/**
|
|
350
|
+
* Internal tool execution
|
|
351
|
+
*/
|
|
352
|
+
async _executeToolInternal(toolName, params) {
|
|
353
|
+
const toolCategory = this._getToolCategory(toolName);
|
|
354
|
+
if (!toolCategory) {
|
|
355
|
+
throw new Error(`Unknown MCP tool: ${toolName}`);
|
|
356
|
+
}
|
|
357
|
+
// Handle memory operations with real storage
|
|
358
|
+
if (toolName === 'memory_usage') {
|
|
359
|
+
if (params.action === 'store') {
|
|
360
|
+
return await this.storeMemory(params.namespace, params.key, params.value, params.type);
|
|
361
|
+
}
|
|
362
|
+
else if (params.action === 'retrieve') {
|
|
363
|
+
return await this.retrieveMemory(params.namespace, params.key);
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
else if (toolName === 'memory_search') {
|
|
367
|
+
return await this.searchMemory(params.namespace, params.pattern);
|
|
368
|
+
}
|
|
369
|
+
else if (toolName === 'swarm_status') {
|
|
370
|
+
return await this.getSwarmStatus(params);
|
|
371
|
+
}
|
|
372
|
+
// For other tools, use mock responses
|
|
373
|
+
console.log(`Executing MCP tool: mcp__claude-flow__${toolName} with params:`, params);
|
|
374
|
+
// Simulate async execution for non-memory tools
|
|
375
|
+
await new Promise((resolve) => setTimeout(resolve, Math.random() * 500));
|
|
376
|
+
// Mock response based on tool type
|
|
377
|
+
const mockResponse = this._getMockResponse(toolName, params);
|
|
378
|
+
return mockResponse;
|
|
379
|
+
}
|
|
380
|
+
/**
|
|
381
|
+
* Get tool category
|
|
382
|
+
*/
|
|
383
|
+
_getToolCategory(toolName) {
|
|
384
|
+
for (const [category, tools] of Object.entries(MCP_TOOLS)) {
|
|
385
|
+
if (tools.includes(toolName)) {
|
|
386
|
+
return category;
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
return null;
|
|
390
|
+
}
|
|
391
|
+
/**
|
|
392
|
+
* Get mock response for demonstration
|
|
393
|
+
*/
|
|
394
|
+
_getMockResponse(toolName, params) {
|
|
395
|
+
// Mock responses for different tool types
|
|
396
|
+
const mockResponses = {
|
|
397
|
+
swarm_init: {
|
|
398
|
+
swarmId: `swarm-${Date.now()}`,
|
|
399
|
+
topology: params.topology || 'hierarchical',
|
|
400
|
+
status: 'initialized',
|
|
401
|
+
},
|
|
402
|
+
agent_spawn: {
|
|
403
|
+
agentId: `agent-${Date.now()}-${Math.random().toString(36).substring(2, 11)}`,
|
|
404
|
+
type: params.type,
|
|
405
|
+
status: 'active',
|
|
406
|
+
},
|
|
407
|
+
task_orchestrate: {
|
|
408
|
+
taskId: `task-${Date.now()}`,
|
|
409
|
+
status: 'orchestrated',
|
|
410
|
+
strategy: params.strategy || 'parallel',
|
|
411
|
+
},
|
|
412
|
+
memory_usage: {
|
|
413
|
+
action: params.action,
|
|
414
|
+
result: params.action === 'store' ? 'stored' : 'retrieved',
|
|
415
|
+
data: params.value || null,
|
|
416
|
+
},
|
|
417
|
+
neural_status: {
|
|
418
|
+
status: 'ready',
|
|
419
|
+
models: 27,
|
|
420
|
+
accuracy: 0.848,
|
|
421
|
+
},
|
|
422
|
+
};
|
|
423
|
+
return mockResponses[toolName] || { status: 'success', toolName };
|
|
424
|
+
}
|
|
425
|
+
/**
|
|
426
|
+
* Track tool usage statistics
|
|
427
|
+
*/
|
|
428
|
+
_trackToolUsage(toolName, duration, success) {
|
|
429
|
+
if (!this.toolStats.has(toolName)) {
|
|
430
|
+
this.toolStats.set(toolName, {
|
|
431
|
+
calls: 0,
|
|
432
|
+
successes: 0,
|
|
433
|
+
failures: 0,
|
|
434
|
+
totalDuration: 0,
|
|
435
|
+
avgDuration: 0,
|
|
436
|
+
});
|
|
437
|
+
}
|
|
438
|
+
const stats = this.toolStats.get(toolName);
|
|
439
|
+
stats.calls++;
|
|
440
|
+
if (success) {
|
|
441
|
+
stats.successes++;
|
|
442
|
+
}
|
|
443
|
+
else {
|
|
444
|
+
stats.failures++;
|
|
445
|
+
}
|
|
446
|
+
stats.totalDuration += duration;
|
|
447
|
+
stats.avgDuration = stats.totalDuration / stats.calls;
|
|
448
|
+
}
|
|
449
|
+
/**
|
|
450
|
+
* Get comprehensive tool statistics
|
|
451
|
+
*/
|
|
452
|
+
getStatistics() {
|
|
453
|
+
const toolStats = {};
|
|
454
|
+
this.toolStats.forEach((value, key) => {
|
|
455
|
+
toolStats[key] = { ...value };
|
|
456
|
+
});
|
|
457
|
+
return {
|
|
458
|
+
tools: toolStats,
|
|
459
|
+
batch: this.batchStats || {
|
|
460
|
+
totalBatches: 0,
|
|
461
|
+
totalTools: 0,
|
|
462
|
+
totalTime: 0,
|
|
463
|
+
avgConcurrency: 0,
|
|
464
|
+
avgToolsPerBatch: 0,
|
|
465
|
+
avgTimePerTool: 0,
|
|
466
|
+
},
|
|
467
|
+
spawn: this.spawnStats || {
|
|
468
|
+
totalSpawns: 0,
|
|
469
|
+
totalAgents: 0,
|
|
470
|
+
totalTime: 0,
|
|
471
|
+
avgTimePerAgent: 0,
|
|
472
|
+
bestTime: 0,
|
|
473
|
+
worstTime: 0,
|
|
474
|
+
},
|
|
475
|
+
performance: {
|
|
476
|
+
totalCalls: Array.from(this.toolStats.values()).reduce((sum, stat) => sum + stat.calls, 0),
|
|
477
|
+
successRate: this._calculateOverallSuccessRate(),
|
|
478
|
+
avgLatency: this._calculateAvgLatency(),
|
|
479
|
+
throughput: this._calculateThroughput(),
|
|
480
|
+
},
|
|
481
|
+
};
|
|
482
|
+
}
|
|
483
|
+
/**
|
|
484
|
+
* Calculate overall success rate
|
|
485
|
+
*/
|
|
486
|
+
_calculateOverallSuccessRate() {
|
|
487
|
+
const total = Array.from(this.toolStats.values()).reduce((sum, stat) => sum + stat.calls, 0);
|
|
488
|
+
const successes = Array.from(this.toolStats.values()).reduce((sum, stat) => sum + stat.successes, 0);
|
|
489
|
+
return total > 0 ? ((successes / total) * 100).toFixed(2) : 100;
|
|
490
|
+
}
|
|
491
|
+
/**
|
|
492
|
+
* Calculate average latency
|
|
493
|
+
*/
|
|
494
|
+
_calculateAvgLatency() {
|
|
495
|
+
const stats = Array.from(this.toolStats.values()).filter((stat) => stat.calls > 0);
|
|
496
|
+
if (stats.length === 0)
|
|
497
|
+
return 0;
|
|
498
|
+
const totalLatency = stats.reduce((sum, stat) => sum + stat.avgDuration, 0);
|
|
499
|
+
return (totalLatency / stats.length).toFixed(2);
|
|
500
|
+
}
|
|
501
|
+
/**
|
|
502
|
+
* Calculate throughput (operations per second)
|
|
503
|
+
*/
|
|
504
|
+
_calculateThroughput() {
|
|
505
|
+
const batchStats = this.batchStats;
|
|
506
|
+
if (!batchStats || batchStats.totalTime === 0)
|
|
507
|
+
return 0;
|
|
508
|
+
return (batchStats.totalTools / (batchStats.totalTime / 1000)).toFixed(2);
|
|
509
|
+
}
|
|
510
|
+
/**
|
|
511
|
+
* Create batch of tool calls for parallel execution
|
|
512
|
+
*/
|
|
513
|
+
createBatch(calls) {
|
|
514
|
+
return calls.map((call) => ({
|
|
515
|
+
tool: call.tool,
|
|
516
|
+
params: call.params || {},
|
|
517
|
+
}));
|
|
518
|
+
}
|
|
519
|
+
/**
|
|
520
|
+
* Execute swarm initialization sequence with optimization
|
|
521
|
+
*/
|
|
522
|
+
async initializeSwarm(config) {
|
|
523
|
+
const swarmId = config.swarmId || `swarm-${Date.now()}`;
|
|
524
|
+
const startTime = Date.now();
|
|
525
|
+
try {
|
|
526
|
+
// Phase 1: Critical initialization (sequential)
|
|
527
|
+
const criticalOps = [
|
|
528
|
+
{
|
|
529
|
+
tool: 'swarm_init',
|
|
530
|
+
params: {
|
|
531
|
+
topology: config.topology || 'hierarchical',
|
|
532
|
+
maxAgents: config.maxAgents || 8,
|
|
533
|
+
strategy: 'auto',
|
|
534
|
+
swarmId,
|
|
535
|
+
},
|
|
536
|
+
},
|
|
537
|
+
];
|
|
538
|
+
const [swarmInitResult] = await this.executeParallel(criticalOps);
|
|
539
|
+
// Phase 2: Supporting services (parallel)
|
|
540
|
+
const supportingOps = [
|
|
541
|
+
{
|
|
542
|
+
tool: 'memory_namespace',
|
|
543
|
+
params: {
|
|
544
|
+
action: 'create',
|
|
545
|
+
namespace: swarmId,
|
|
546
|
+
maxSize: config.memorySize || 100,
|
|
547
|
+
},
|
|
548
|
+
},
|
|
549
|
+
{ tool: 'neural_status', params: {} },
|
|
550
|
+
{ tool: 'performance_report', params: { format: 'summary' } },
|
|
551
|
+
{ tool: 'features_detect', params: { component: 'swarm' } },
|
|
552
|
+
];
|
|
553
|
+
const supportingResults = await this.executeParallel(supportingOps);
|
|
554
|
+
// Store initialization metadata
|
|
555
|
+
const initTime = Date.now() - startTime;
|
|
556
|
+
await this.storeMemory(swarmId, 'init_performance', {
|
|
557
|
+
initTime,
|
|
558
|
+
topology: config.topology || 'hierarchical',
|
|
559
|
+
maxAgents: config.maxAgents || 8,
|
|
560
|
+
timestamp: Date.now(),
|
|
561
|
+
}, 'metrics');
|
|
562
|
+
// Store swarm status
|
|
563
|
+
await this.storeMemory(swarmId, 'status', 'active', 'status');
|
|
564
|
+
// Store swarm config
|
|
565
|
+
await this.storeMemory(swarmId, 'config', {
|
|
566
|
+
topology: config.topology || 'hierarchical',
|
|
567
|
+
maxAgents: config.maxAgents || 8,
|
|
568
|
+
strategy: config.strategy || 'auto',
|
|
569
|
+
createdAt: Date.now(),
|
|
570
|
+
}, 'config');
|
|
571
|
+
return [swarmInitResult, ...supportingResults];
|
|
572
|
+
}
|
|
573
|
+
catch (error) {
|
|
574
|
+
console.error('Swarm initialization failed:', error);
|
|
575
|
+
throw error;
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
/**
|
|
579
|
+
* Spawn multiple agents in parallel with optimization
|
|
580
|
+
*/
|
|
581
|
+
async spawnAgents(types, swarmId) {
|
|
582
|
+
if (!Array.isArray(types) || types.length === 0) {
|
|
583
|
+
return [];
|
|
584
|
+
}
|
|
585
|
+
const startTime = Date.now();
|
|
586
|
+
// Optimize agent spawning by grouping similar types
|
|
587
|
+
const groupedTypes = this._groupAgentTypes(types);
|
|
588
|
+
const allResults = [];
|
|
589
|
+
try {
|
|
590
|
+
// Spawn each group in parallel
|
|
591
|
+
for (const group of groupedTypes) {
|
|
592
|
+
const batch = group.map((type) => ({
|
|
593
|
+
tool: 'agent_spawn',
|
|
594
|
+
params: {
|
|
595
|
+
type,
|
|
596
|
+
swarmId,
|
|
597
|
+
timestamp: Date.now(),
|
|
598
|
+
batchId: `batch-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`,
|
|
599
|
+
},
|
|
600
|
+
}));
|
|
601
|
+
const groupResults = await this.executeParallel(batch);
|
|
602
|
+
allResults.push(...groupResults);
|
|
603
|
+
// Store agent information in memory
|
|
604
|
+
for (const result of groupResults) {
|
|
605
|
+
if (result && result.agentId && !result.error) {
|
|
606
|
+
await this.storeMemory(swarmId, `agent-${result.agentId}`, {
|
|
607
|
+
id: result.agentId,
|
|
608
|
+
type: result.type,
|
|
609
|
+
status: result.status || 'active',
|
|
610
|
+
createdAt: Date.now(),
|
|
611
|
+
}, 'agent');
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
// Track spawn performance
|
|
616
|
+
const spawnTime = Date.now() - startTime;
|
|
617
|
+
this._trackSpawnPerformance(types.length, spawnTime);
|
|
618
|
+
return allResults;
|
|
619
|
+
}
|
|
620
|
+
catch (error) {
|
|
621
|
+
console.error('Agent spawning failed:', error);
|
|
622
|
+
throw error;
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
/**
|
|
626
|
+
* Group agent types for optimized spawning
|
|
627
|
+
*/
|
|
628
|
+
_groupAgentTypes(types) {
|
|
629
|
+
// Group complementary agent types that work well together
|
|
630
|
+
const groups = {
|
|
631
|
+
development: ['coder', 'architect', 'reviewer'],
|
|
632
|
+
analysis: ['researcher', 'analyst', 'optimizer'],
|
|
633
|
+
quality: ['tester', 'documenter'],
|
|
634
|
+
coordination: ['coordinator'],
|
|
635
|
+
};
|
|
636
|
+
const result = [];
|
|
637
|
+
const remaining = [...types];
|
|
638
|
+
// Create groups of complementary agents
|
|
639
|
+
Object.values(groups).forEach((groupTypes) => {
|
|
640
|
+
const groupAgents = remaining.filter((type) => groupTypes.includes(type));
|
|
641
|
+
if (groupAgents.length > 0) {
|
|
642
|
+
result.push(groupAgents);
|
|
643
|
+
groupAgents.forEach((type) => {
|
|
644
|
+
const index = remaining.indexOf(type);
|
|
645
|
+
if (index > -1)
|
|
646
|
+
remaining.splice(index, 1);
|
|
647
|
+
});
|
|
648
|
+
}
|
|
649
|
+
});
|
|
650
|
+
// Add remaining agents as individual groups
|
|
651
|
+
remaining.forEach((type) => result.push([type]));
|
|
652
|
+
return result;
|
|
653
|
+
}
|
|
654
|
+
/**
|
|
655
|
+
* Track agent spawn performance
|
|
656
|
+
*/
|
|
657
|
+
_trackSpawnPerformance(agentCount, spawnTime) {
|
|
658
|
+
if (!this.spawnStats) {
|
|
659
|
+
this.spawnStats = {
|
|
660
|
+
totalSpawns: 0,
|
|
661
|
+
totalAgents: 0,
|
|
662
|
+
totalTime: 0,
|
|
663
|
+
avgTimePerAgent: 0,
|
|
664
|
+
bestTime: Infinity,
|
|
665
|
+
worstTime: 0,
|
|
666
|
+
};
|
|
667
|
+
}
|
|
668
|
+
this.spawnStats.totalSpawns++;
|
|
669
|
+
this.spawnStats.totalAgents += agentCount;
|
|
670
|
+
this.spawnStats.totalTime += spawnTime;
|
|
671
|
+
this.spawnStats.avgTimePerAgent = this.spawnStats.totalTime / this.spawnStats.totalAgents;
|
|
672
|
+
this.spawnStats.bestTime = Math.min(this.spawnStats.bestTime, spawnTime);
|
|
673
|
+
this.spawnStats.worstTime = Math.max(this.spawnStats.worstTime, spawnTime);
|
|
674
|
+
}
|
|
675
|
+
/**
|
|
676
|
+
* Store data in collective memory (REAL IMPLEMENTATION)
|
|
677
|
+
*/
|
|
678
|
+
async storeMemory(swarmId, key, value, type = 'knowledge') {
|
|
679
|
+
try {
|
|
680
|
+
// Don't reinitialize if we already have storage
|
|
681
|
+
if (!this.memoryDb && !this.memoryStore) {
|
|
682
|
+
await this.initializeMemoryStorage();
|
|
683
|
+
}
|
|
684
|
+
const timestamp = Date.now();
|
|
685
|
+
const valueStr = typeof value === 'string' ? value : JSON.stringify(value);
|
|
686
|
+
if (this.memoryDb) {
|
|
687
|
+
// SQLite storage
|
|
688
|
+
const stmt = this.memoryDb.prepare(`
|
|
689
|
+
INSERT OR REPLACE INTO memories (namespace, key, value, type, timestamp)
|
|
690
|
+
VALUES (?, ?, ?, ?, ?)
|
|
691
|
+
`);
|
|
692
|
+
const result = stmt.run(swarmId, key, valueStr, type, timestamp);
|
|
693
|
+
return {
|
|
694
|
+
success: true,
|
|
695
|
+
action: 'store',
|
|
696
|
+
namespace: swarmId,
|
|
697
|
+
key,
|
|
698
|
+
type,
|
|
699
|
+
timestamp,
|
|
700
|
+
id: result.lastInsertRowid,
|
|
701
|
+
};
|
|
702
|
+
}
|
|
703
|
+
else {
|
|
704
|
+
// Fallback in-memory storage
|
|
705
|
+
const memoryKey = `${swarmId}:${key}`;
|
|
706
|
+
this.memoryStore.set(memoryKey, {
|
|
707
|
+
namespace: swarmId,
|
|
708
|
+
key,
|
|
709
|
+
value: valueStr,
|
|
710
|
+
type,
|
|
711
|
+
timestamp,
|
|
712
|
+
});
|
|
713
|
+
return {
|
|
714
|
+
success: true,
|
|
715
|
+
action: 'store',
|
|
716
|
+
namespace: swarmId,
|
|
717
|
+
key,
|
|
718
|
+
type,
|
|
719
|
+
timestamp,
|
|
720
|
+
};
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
catch (error) {
|
|
724
|
+
console.error('Error storing memory:', error);
|
|
725
|
+
throw error;
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
/**
|
|
729
|
+
* Retrieve data from collective memory (REAL IMPLEMENTATION)
|
|
730
|
+
*/
|
|
731
|
+
async retrieveMemory(swarmId, key) {
|
|
732
|
+
try {
|
|
733
|
+
// Don't reinitialize if we already have storage
|
|
734
|
+
if (!this.memoryDb && !this.memoryStore) {
|
|
735
|
+
await this.initializeMemoryStorage();
|
|
736
|
+
}
|
|
737
|
+
if (this.memoryDb) {
|
|
738
|
+
// SQLite retrieval
|
|
739
|
+
const stmt = this.memoryDb.prepare(`
|
|
740
|
+
SELECT * FROM memories WHERE namespace = ? AND key = ?
|
|
741
|
+
`);
|
|
742
|
+
const row = stmt.get(swarmId, key);
|
|
743
|
+
if (row) {
|
|
744
|
+
try {
|
|
745
|
+
return {
|
|
746
|
+
...row,
|
|
747
|
+
value: JSON.parse(row.value),
|
|
748
|
+
};
|
|
749
|
+
}
|
|
750
|
+
catch {
|
|
751
|
+
return row;
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
else {
|
|
756
|
+
// Fallback in-memory retrieval
|
|
757
|
+
const memoryKey = `${swarmId}:${key}`;
|
|
758
|
+
const memory = this.memoryStore.get(memoryKey);
|
|
759
|
+
if (memory) {
|
|
760
|
+
try {
|
|
761
|
+
return {
|
|
762
|
+
...memory,
|
|
763
|
+
value: JSON.parse(memory.value),
|
|
764
|
+
};
|
|
765
|
+
}
|
|
766
|
+
catch {
|
|
767
|
+
return memory;
|
|
768
|
+
}
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
return null;
|
|
772
|
+
}
|
|
773
|
+
catch (error) {
|
|
774
|
+
console.error('Error retrieving memory:', error);
|
|
775
|
+
throw error;
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
/**
|
|
779
|
+
* Search collective memory (REAL IMPLEMENTATION)
|
|
780
|
+
*/
|
|
781
|
+
async searchMemory(swarmId, pattern) {
|
|
782
|
+
try {
|
|
783
|
+
// Don't reinitialize if we already have storage
|
|
784
|
+
if (!this.memoryDb && !this.memoryStore) {
|
|
785
|
+
await this.initializeMemoryStorage();
|
|
786
|
+
}
|
|
787
|
+
let results = [];
|
|
788
|
+
if (this.memoryDb) {
|
|
789
|
+
// SQLite search
|
|
790
|
+
let query, params;
|
|
791
|
+
if (pattern && pattern.trim()) {
|
|
792
|
+
// Search with pattern
|
|
793
|
+
query = `
|
|
794
|
+
SELECT * FROM memories
|
|
795
|
+
WHERE namespace = ? AND (key LIKE ? OR value LIKE ? OR type LIKE ?)
|
|
796
|
+
ORDER BY timestamp DESC
|
|
797
|
+
LIMIT 50
|
|
798
|
+
`;
|
|
799
|
+
const searchPattern = `%${pattern}%`;
|
|
800
|
+
params = [swarmId, searchPattern, searchPattern, searchPattern];
|
|
801
|
+
}
|
|
802
|
+
else {
|
|
803
|
+
// Get all memories for namespace
|
|
804
|
+
query = `
|
|
805
|
+
SELECT * FROM memories
|
|
806
|
+
WHERE namespace = ?
|
|
807
|
+
ORDER BY timestamp DESC
|
|
808
|
+
LIMIT 50
|
|
809
|
+
`;
|
|
810
|
+
params = [swarmId];
|
|
811
|
+
}
|
|
812
|
+
const stmt = this.memoryDb.prepare(query);
|
|
813
|
+
results = stmt.all(...params);
|
|
814
|
+
// Parse JSON values where possible
|
|
815
|
+
results = results.map((row) => {
|
|
816
|
+
try {
|
|
817
|
+
return {
|
|
818
|
+
...row,
|
|
819
|
+
value: JSON.parse(row.value),
|
|
820
|
+
};
|
|
821
|
+
}
|
|
822
|
+
catch {
|
|
823
|
+
return row;
|
|
824
|
+
}
|
|
825
|
+
});
|
|
826
|
+
}
|
|
827
|
+
else {
|
|
828
|
+
// Fallback in-memory search
|
|
829
|
+
for (const [memKey, memory] of this.memoryStore) {
|
|
830
|
+
if (memory.namespace === swarmId) {
|
|
831
|
+
if (!pattern ||
|
|
832
|
+
memory.key.includes(pattern) ||
|
|
833
|
+
memory.value.includes(pattern) ||
|
|
834
|
+
memory.type.includes(pattern)) {
|
|
835
|
+
try {
|
|
836
|
+
results.push({
|
|
837
|
+
...memory,
|
|
838
|
+
value: JSON.parse(memory.value),
|
|
839
|
+
});
|
|
840
|
+
}
|
|
841
|
+
catch {
|
|
842
|
+
results.push(memory);
|
|
843
|
+
}
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
}
|
|
847
|
+
// Sort by timestamp descending
|
|
848
|
+
results.sort((a, b) => b.timestamp - a.timestamp);
|
|
849
|
+
results = results.slice(0, 50);
|
|
850
|
+
}
|
|
851
|
+
return {
|
|
852
|
+
success: true,
|
|
853
|
+
namespace: swarmId,
|
|
854
|
+
pattern: pattern || '',
|
|
855
|
+
total: results.length,
|
|
856
|
+
results: results,
|
|
857
|
+
};
|
|
858
|
+
}
|
|
859
|
+
catch (error) {
|
|
860
|
+
console.error('Error searching memory:', error);
|
|
861
|
+
throw error;
|
|
862
|
+
}
|
|
863
|
+
}
|
|
864
|
+
/**
|
|
865
|
+
* Orchestrate task with monitoring and optimization
|
|
866
|
+
*/
|
|
867
|
+
async orchestrateTask(task, strategy = 'parallel', metadata = {}) {
|
|
868
|
+
const taskId = metadata.taskId || `task-${Date.now()}`;
|
|
869
|
+
const swarmId = metadata.swarmId || 'default-swarm';
|
|
870
|
+
const complexity = metadata.complexity || 'medium';
|
|
871
|
+
// Store task information
|
|
872
|
+
await this.storeMemory(swarmId, `task-${taskId}`, {
|
|
873
|
+
id: taskId,
|
|
874
|
+
task,
|
|
875
|
+
strategy,
|
|
876
|
+
status: 'pending',
|
|
877
|
+
priority: metadata.priority || 5,
|
|
878
|
+
complexity,
|
|
879
|
+
createdAt: Date.now(),
|
|
880
|
+
}, 'task');
|
|
881
|
+
// Adjust monitoring frequency based on task complexity
|
|
882
|
+
const monitoringInterval = {
|
|
883
|
+
low: 10000,
|
|
884
|
+
medium: 5000,
|
|
885
|
+
high: 2000,
|
|
886
|
+
}[complexity] || 5000;
|
|
887
|
+
const batch = [
|
|
888
|
+
{
|
|
889
|
+
tool: 'task_orchestrate',
|
|
890
|
+
params: {
|
|
891
|
+
task,
|
|
892
|
+
strategy,
|
|
893
|
+
taskId,
|
|
894
|
+
priority: metadata.priority || 5,
|
|
895
|
+
estimatedDuration: metadata.estimatedDuration || 30000,
|
|
896
|
+
},
|
|
897
|
+
},
|
|
898
|
+
{
|
|
899
|
+
tool: 'swarm_monitor',
|
|
900
|
+
params: {
|
|
901
|
+
interval: monitoringInterval,
|
|
902
|
+
taskId,
|
|
903
|
+
metrics: ['performance', 'progress', 'bottlenecks'],
|
|
904
|
+
},
|
|
905
|
+
},
|
|
906
|
+
// Add performance tracking for high-priority tasks
|
|
907
|
+
...(metadata.priority > 7
|
|
908
|
+
? [
|
|
909
|
+
{
|
|
910
|
+
tool: 'performance_report',
|
|
911
|
+
params: { format: 'detailed', taskId },
|
|
912
|
+
},
|
|
913
|
+
]
|
|
914
|
+
: []),
|
|
915
|
+
];
|
|
916
|
+
const results = await this.executeParallel(batch);
|
|
917
|
+
// Update task status
|
|
918
|
+
await this.storeMemory(swarmId, `task-${taskId}`, {
|
|
919
|
+
id: taskId,
|
|
920
|
+
task,
|
|
921
|
+
strategy,
|
|
922
|
+
status: 'in_progress',
|
|
923
|
+
priority: metadata.priority || 5,
|
|
924
|
+
complexity,
|
|
925
|
+
createdAt: Date.now(),
|
|
926
|
+
}, 'task');
|
|
927
|
+
return results;
|
|
928
|
+
}
|
|
929
|
+
/**
|
|
930
|
+
* Analyze performance bottlenecks
|
|
931
|
+
*/
|
|
932
|
+
async analyzePerformance(swarmId) {
|
|
933
|
+
const batch = [
|
|
934
|
+
{ tool: 'bottleneck_analyze', params: { component: swarmId } },
|
|
935
|
+
{ tool: 'performance_report', params: { format: 'detailed' } },
|
|
936
|
+
{ tool: 'token_usage', params: { operation: swarmId } },
|
|
937
|
+
];
|
|
938
|
+
return await this.executeParallel(batch);
|
|
939
|
+
}
|
|
940
|
+
/**
|
|
941
|
+
* GitHub integration for code operations
|
|
942
|
+
*/
|
|
943
|
+
async githubOperations(repo, operation, params = {}) {
|
|
944
|
+
const githubTools = {
|
|
945
|
+
analyze: 'github_repo_analyze',
|
|
946
|
+
pr: 'github_pr_manage',
|
|
947
|
+
issue: 'github_issue_track',
|
|
948
|
+
review: 'github_code_review',
|
|
949
|
+
};
|
|
950
|
+
const tool = githubTools[operation];
|
|
951
|
+
if (!tool) {
|
|
952
|
+
throw new Error(`Unknown GitHub operation: ${operation}`);
|
|
953
|
+
}
|
|
954
|
+
return await this.executeTool(tool, { repo, ...params });
|
|
955
|
+
}
|
|
956
|
+
/**
|
|
957
|
+
* Neural network operations
|
|
958
|
+
*/
|
|
959
|
+
async neuralOperation(operation, params = {}) {
|
|
960
|
+
const neuralTools = {
|
|
961
|
+
train: 'neural_train',
|
|
962
|
+
predict: 'neural_predict',
|
|
963
|
+
analyze: 'neural_patterns',
|
|
964
|
+
optimize: 'wasm_optimize',
|
|
965
|
+
};
|
|
966
|
+
const tool = neuralTools[operation];
|
|
967
|
+
if (!tool) {
|
|
968
|
+
throw new Error(`Unknown neural operation: ${operation}`);
|
|
969
|
+
}
|
|
970
|
+
return await this.executeTool(tool, params);
|
|
971
|
+
}
|
|
972
|
+
/**
|
|
973
|
+
* Clean up and destroy swarm
|
|
974
|
+
*/
|
|
975
|
+
async destroySwarm(swarmId) {
|
|
976
|
+
const batch = [
|
|
977
|
+
{ tool: 'swarm_destroy', params: { swarmId } },
|
|
978
|
+
{
|
|
979
|
+
tool: 'memory_namespace',
|
|
980
|
+
params: {
|
|
981
|
+
action: 'delete',
|
|
982
|
+
namespace: swarmId,
|
|
983
|
+
},
|
|
984
|
+
},
|
|
985
|
+
{
|
|
986
|
+
tool: 'cache_manage',
|
|
987
|
+
params: {
|
|
988
|
+
action: 'clear',
|
|
989
|
+
key: `swarm-${swarmId}`,
|
|
990
|
+
},
|
|
991
|
+
},
|
|
992
|
+
];
|
|
993
|
+
return await this.executeParallel(batch);
|
|
994
|
+
}
|
|
995
|
+
/**
|
|
996
|
+
* Get real swarm status from memory storage
|
|
997
|
+
*/
|
|
998
|
+
async getSwarmStatus(params = {}) {
|
|
999
|
+
try {
|
|
1000
|
+
// Don't reinitialize if we already have storage
|
|
1001
|
+
if (!this.memoryDb && !this.memoryStore) {
|
|
1002
|
+
await this.initializeMemoryStorage();
|
|
1003
|
+
}
|
|
1004
|
+
const swarms = [];
|
|
1005
|
+
let activeAgents = 0;
|
|
1006
|
+
let totalTasks = 0;
|
|
1007
|
+
let completedTasks = 0;
|
|
1008
|
+
if (this.memoryDb) {
|
|
1009
|
+
// Get all unique swarm namespaces
|
|
1010
|
+
const namespacesQuery = this.memoryDb.prepare(`
|
|
1011
|
+
SELECT DISTINCT namespace FROM memories
|
|
1012
|
+
WHERE namespace LIKE 'swarm-%' OR namespace LIKE 'hive-%'
|
|
1013
|
+
ORDER BY timestamp DESC
|
|
1014
|
+
`);
|
|
1015
|
+
const namespaces = namespacesQuery.all();
|
|
1016
|
+
// For each swarm, gather its information
|
|
1017
|
+
for (const { namespace } of namespaces) {
|
|
1018
|
+
const swarmId = namespace;
|
|
1019
|
+
// Get swarm metadata
|
|
1020
|
+
const metadataQuery = this.memoryDb.prepare(`
|
|
1021
|
+
SELECT key, value, type, timestamp FROM memories
|
|
1022
|
+
WHERE namespace = ? AND (
|
|
1023
|
+
key IN ('init_performance', 'config', 'status', 'agents', 'tasks', 'topology')
|
|
1024
|
+
OR key LIKE 'agent-%'
|
|
1025
|
+
OR key LIKE 'task-%'
|
|
1026
|
+
)
|
|
1027
|
+
`);
|
|
1028
|
+
const swarmData = metadataQuery.all(swarmId);
|
|
1029
|
+
// Parse swarm information
|
|
1030
|
+
let swarmInfo = {
|
|
1031
|
+
id: swarmId,
|
|
1032
|
+
name: swarmId,
|
|
1033
|
+
status: 'unknown',
|
|
1034
|
+
agents: 0,
|
|
1035
|
+
tasks: { total: 0, completed: 0, pending: 0, failed: 0 },
|
|
1036
|
+
topology: 'hierarchical',
|
|
1037
|
+
createdAt: null,
|
|
1038
|
+
lastActivity: null,
|
|
1039
|
+
memoryUsage: swarmData.length
|
|
1040
|
+
};
|
|
1041
|
+
// Process swarm data
|
|
1042
|
+
for (const record of swarmData) {
|
|
1043
|
+
try {
|
|
1044
|
+
const value = typeof record.value === 'string' ? JSON.parse(record.value) : record.value;
|
|
1045
|
+
switch (record.key) {
|
|
1046
|
+
case 'init_performance':
|
|
1047
|
+
swarmInfo.createdAt = value.timestamp;
|
|
1048
|
+
swarmInfo.topology = value.topology || 'hierarchical';
|
|
1049
|
+
break;
|
|
1050
|
+
case 'status':
|
|
1051
|
+
swarmInfo.status = value;
|
|
1052
|
+
break;
|
|
1053
|
+
case 'config':
|
|
1054
|
+
swarmInfo.topology = value.topology || swarmInfo.topology;
|
|
1055
|
+
break;
|
|
1056
|
+
}
|
|
1057
|
+
// Count agents
|
|
1058
|
+
if (record.key.startsWith('agent-')) {
|
|
1059
|
+
swarmInfo.agents++;
|
|
1060
|
+
activeAgents++;
|
|
1061
|
+
}
|
|
1062
|
+
// Count tasks
|
|
1063
|
+
if (record.key.startsWith('task-')) {
|
|
1064
|
+
swarmInfo.tasks.total++;
|
|
1065
|
+
totalTasks++;
|
|
1066
|
+
if (value.status === 'completed') {
|
|
1067
|
+
swarmInfo.tasks.completed++;
|
|
1068
|
+
completedTasks++;
|
|
1069
|
+
}
|
|
1070
|
+
else if (value.status === 'failed') {
|
|
1071
|
+
swarmInfo.tasks.failed++;
|
|
1072
|
+
}
|
|
1073
|
+
else if (value.status === 'pending' || value.status === 'in_progress') {
|
|
1074
|
+
swarmInfo.tasks.pending++;
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
1077
|
+
// Track last activity
|
|
1078
|
+
if (record.timestamp > (swarmInfo.lastActivity || 0)) {
|
|
1079
|
+
swarmInfo.lastActivity = record.timestamp;
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
catch (e) {
|
|
1083
|
+
// Skip invalid JSON values
|
|
1084
|
+
}
|
|
1085
|
+
}
|
|
1086
|
+
// Determine swarm status based on activity
|
|
1087
|
+
if (swarmInfo.status === 'unknown') {
|
|
1088
|
+
const now = Date.now();
|
|
1089
|
+
const lastActivityAge = now - (swarmInfo.lastActivity || 0);
|
|
1090
|
+
if (lastActivityAge < 60000) { // Active within last minute
|
|
1091
|
+
swarmInfo.status = 'active';
|
|
1092
|
+
}
|
|
1093
|
+
else if (lastActivityAge < 300000) { // Active within last 5 minutes
|
|
1094
|
+
swarmInfo.status = 'idle';
|
|
1095
|
+
}
|
|
1096
|
+
else {
|
|
1097
|
+
swarmInfo.status = 'inactive';
|
|
1098
|
+
}
|
|
1099
|
+
}
|
|
1100
|
+
swarms.push(swarmInfo);
|
|
1101
|
+
}
|
|
1102
|
+
// Get recent activity logs
|
|
1103
|
+
const activityQuery = this.memoryDb.prepare(`
|
|
1104
|
+
SELECT namespace, key, type, timestamp FROM memories
|
|
1105
|
+
WHERE (namespace LIKE 'swarm-%' OR namespace LIKE 'hive-%')
|
|
1106
|
+
AND timestamp > ?
|
|
1107
|
+
ORDER BY timestamp DESC
|
|
1108
|
+
LIMIT 10
|
|
1109
|
+
`);
|
|
1110
|
+
const recentActivity = activityQuery.all(Date.now() - 300000); // Last 5 minutes
|
|
1111
|
+
return {
|
|
1112
|
+
swarms,
|
|
1113
|
+
activeAgents,
|
|
1114
|
+
totalTasks,
|
|
1115
|
+
completedTasks,
|
|
1116
|
+
pendingTasks: totalTasks - completedTasks,
|
|
1117
|
+
recentActivity: recentActivity.map(r => ({
|
|
1118
|
+
swarmId: r.namespace,
|
|
1119
|
+
action: r.key,
|
|
1120
|
+
type: r.type,
|
|
1121
|
+
timestamp: r.timestamp
|
|
1122
|
+
})),
|
|
1123
|
+
summary: {
|
|
1124
|
+
totalSwarms: swarms.length,
|
|
1125
|
+
activeSwarms: swarms.filter(s => s.status === 'active').length,
|
|
1126
|
+
idleSwarms: swarms.filter(s => s.status === 'idle').length,
|
|
1127
|
+
inactiveSwarms: swarms.filter(s => s.status === 'inactive').length
|
|
1128
|
+
}
|
|
1129
|
+
};
|
|
1130
|
+
}
|
|
1131
|
+
else {
|
|
1132
|
+
// Fallback to in-memory storage
|
|
1133
|
+
const swarmMap = new Map();
|
|
1134
|
+
for (const [key, memory] of this.memoryStore) {
|
|
1135
|
+
const namespace = memory.namespace;
|
|
1136
|
+
if (namespace && (namespace.startsWith('swarm-') || namespace.startsWith('hive-'))) {
|
|
1137
|
+
if (!swarmMap.has(namespace)) {
|
|
1138
|
+
swarmMap.set(namespace, {
|
|
1139
|
+
id: namespace,
|
|
1140
|
+
name: namespace,
|
|
1141
|
+
status: 'active',
|
|
1142
|
+
agents: 0,
|
|
1143
|
+
tasks: { total: 0, completed: 0, pending: 0, failed: 0 },
|
|
1144
|
+
memoryUsage: 0
|
|
1145
|
+
});
|
|
1146
|
+
}
|
|
1147
|
+
const swarm = swarmMap.get(namespace);
|
|
1148
|
+
swarm.memoryUsage++;
|
|
1149
|
+
if (memory.key.startsWith('agent-')) {
|
|
1150
|
+
swarm.agents++;
|
|
1151
|
+
activeAgents++;
|
|
1152
|
+
}
|
|
1153
|
+
if (memory.key.startsWith('task-')) {
|
|
1154
|
+
swarm.tasks.total++;
|
|
1155
|
+
totalTasks++;
|
|
1156
|
+
try {
|
|
1157
|
+
const taskData = JSON.parse(memory.value);
|
|
1158
|
+
if (taskData.status === 'completed') {
|
|
1159
|
+
swarm.tasks.completed++;
|
|
1160
|
+
completedTasks++;
|
|
1161
|
+
}
|
|
1162
|
+
else if (taskData.status === 'failed') {
|
|
1163
|
+
swarm.tasks.failed++;
|
|
1164
|
+
}
|
|
1165
|
+
else if (taskData.status === 'pending' || taskData.status === 'in_progress') {
|
|
1166
|
+
swarm.tasks.pending++;
|
|
1167
|
+
}
|
|
1168
|
+
}
|
|
1169
|
+
catch (e) {
|
|
1170
|
+
// Skip invalid JSON
|
|
1171
|
+
}
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1174
|
+
}
|
|
1175
|
+
return {
|
|
1176
|
+
swarms: Array.from(swarmMap.values()),
|
|
1177
|
+
activeAgents,
|
|
1178
|
+
totalTasks,
|
|
1179
|
+
completedTasks,
|
|
1180
|
+
pendingTasks: totalTasks - completedTasks,
|
|
1181
|
+
summary: {
|
|
1182
|
+
totalSwarms: swarmMap.size,
|
|
1183
|
+
activeSwarms: swarmMap.size
|
|
1184
|
+
}
|
|
1185
|
+
};
|
|
1186
|
+
}
|
|
1187
|
+
}
|
|
1188
|
+
catch (error) {
|
|
1189
|
+
console.error('Error getting swarm status:', error);
|
|
1190
|
+
// Return empty status on error
|
|
1191
|
+
return {
|
|
1192
|
+
swarms: [],
|
|
1193
|
+
activeAgents: 0,
|
|
1194
|
+
totalTasks: 0,
|
|
1195
|
+
completedTasks: 0,
|
|
1196
|
+
pendingTasks: 0,
|
|
1197
|
+
recentActivity: [],
|
|
1198
|
+
summary: {
|
|
1199
|
+
totalSwarms: 0,
|
|
1200
|
+
activeSwarms: 0,
|
|
1201
|
+
idleSwarms: 0,
|
|
1202
|
+
inactiveSwarms: 0
|
|
1203
|
+
},
|
|
1204
|
+
error: error.message
|
|
1205
|
+
};
|
|
1206
|
+
}
|
|
1207
|
+
}
|
|
1208
|
+
}
|
|
1209
|
+
// Export tool categories for reference
|
|
1210
|
+
export { MCP_TOOLS };
|
|
1211
|
+
//# sourceMappingURL=mcp-wrapper.js.map
|