claude-flow 2.7.0-alpha.12 → 2.7.0-alpha.14
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/skills/agentdb-advanced/SKILL.md +550 -0
- package/.claude/skills/agentdb-learning/SKILL.md +545 -0
- package/.claude/skills/agentdb-memory-patterns/SKILL.md +216 -43
- package/.claude/skills/agentdb-optimization/SKILL.md +509 -0
- package/.claude/skills/agentdb-vector-search/SKILL.md +241 -28
- package/.claude/skills/reasoningbank-agentdb/SKILL.md +446 -0
- package/CHANGELOG.md +88 -0
- 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/help-formatter.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/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/memory/swarm-memory.js +421 -340
- package/dist/src/memory/swarm-memory.js.map +1 -1
- package/dist/src/utils/key-redactor.js.map +1 -1
- package/dist/src/utils/metrics-reader.js +10 -0
- 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/Dockerfile.alpha12-test +47 -0
- package/docs/skills-tutorial.md +1218 -0
- package/package.json +1 -1
- package/src/cli/simple-commands/init/index.js +13 -13
- package/src/cli/simple-commands/process-ui-enhanced.js +1 -1
- package/src/cli/simple-commands/status.js +1 -1
|
@@ -0,0 +1,1398 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Claude-Flow specific MCP tools
|
|
3
|
+
*/
|
|
4
|
+
import { getAvailableAgentTypes } from '../constants/agent-types.js';
|
|
5
|
+
/**
|
|
6
|
+
* Enhance tool schema with dynamic agent types
|
|
7
|
+
*/
|
|
8
|
+
async function enhanceToolWithAgentTypes(tool) {
|
|
9
|
+
const availableTypes = await getAvailableAgentTypes();
|
|
10
|
+
// Clone the tool to avoid modifying the original
|
|
11
|
+
const enhancedTool = JSON.parse(JSON.stringify(tool));
|
|
12
|
+
// Find and populate enum fields for agent types
|
|
13
|
+
function addEnumToAgentTypeFields(obj) {
|
|
14
|
+
if (typeof obj !== 'object' || obj === null)
|
|
15
|
+
return;
|
|
16
|
+
for (const [key, value] of Object.entries(obj)) {
|
|
17
|
+
if (typeof value === 'object' && value !== null) {
|
|
18
|
+
// Check if this is an agent type field
|
|
19
|
+
if (key === 'type' || key === 'filterByType' || key === 'assignToAgentType') {
|
|
20
|
+
const field = value;
|
|
21
|
+
if (field.type === 'string' && field.description?.includes('loaded dynamically from .claude/agents/')) {
|
|
22
|
+
field.enum = availableTypes;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
addEnumToAgentTypeFields(value);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
addEnumToAgentTypeFields(enhancedTool.inputSchema);
|
|
30
|
+
return enhancedTool;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Create all Claude-Flow specific MCP tools
|
|
34
|
+
*/
|
|
35
|
+
export async function createClaudeFlowTools(logger) {
|
|
36
|
+
const tools = [
|
|
37
|
+
// Agent management tools
|
|
38
|
+
createSpawnAgentTool(logger),
|
|
39
|
+
createSpawnParallelAgentsTool(logger), // NEW: Phase 4 - Parallel spawning
|
|
40
|
+
createListAgentsTool(logger),
|
|
41
|
+
createTerminateAgentTool(logger),
|
|
42
|
+
createGetAgentInfoTool(logger),
|
|
43
|
+
// Query control tools (NEW: Phase 4 - Real-time control)
|
|
44
|
+
createQueryControlTool(logger),
|
|
45
|
+
createListQueriesTool(logger),
|
|
46
|
+
// Task management tools
|
|
47
|
+
createCreateTaskTool(logger),
|
|
48
|
+
createListTasksTool(logger),
|
|
49
|
+
createGetTaskStatusTool(logger),
|
|
50
|
+
createCancelTaskTool(logger),
|
|
51
|
+
createAssignTaskTool(logger),
|
|
52
|
+
// Memory management tools
|
|
53
|
+
createQueryMemoryTool(logger),
|
|
54
|
+
createStoreMemoryTool(logger),
|
|
55
|
+
createDeleteMemoryTool(logger),
|
|
56
|
+
createExportMemoryTool(logger),
|
|
57
|
+
createImportMemoryTool(logger),
|
|
58
|
+
// System monitoring tools
|
|
59
|
+
createGetSystemStatusTool(logger),
|
|
60
|
+
createGetMetricsTool(logger),
|
|
61
|
+
createHealthCheckTool(logger),
|
|
62
|
+
// Configuration tools
|
|
63
|
+
createGetConfigTool(logger),
|
|
64
|
+
createUpdateConfigTool(logger),
|
|
65
|
+
createValidateConfigTool(logger),
|
|
66
|
+
// Workflow tools
|
|
67
|
+
createExecuteWorkflowTool(logger),
|
|
68
|
+
createCreateWorkflowTool(logger),
|
|
69
|
+
createListWorkflowsTool(logger),
|
|
70
|
+
// Terminal management tools
|
|
71
|
+
createExecuteCommandTool(logger),
|
|
72
|
+
createListTerminalsTool(logger),
|
|
73
|
+
createCreateTerminalTool(logger),
|
|
74
|
+
];
|
|
75
|
+
// Enhance tools with dynamic agent types
|
|
76
|
+
const enhancedTools = await Promise.all(tools.map(tool => enhanceToolWithAgentTypes(tool)));
|
|
77
|
+
return enhancedTools;
|
|
78
|
+
}
|
|
79
|
+
function createSpawnAgentTool(logger) {
|
|
80
|
+
return {
|
|
81
|
+
name: 'agents/spawn',
|
|
82
|
+
description: 'Spawn a new Claude agent with specified configuration',
|
|
83
|
+
inputSchema: {
|
|
84
|
+
type: 'object',
|
|
85
|
+
properties: {
|
|
86
|
+
type: {
|
|
87
|
+
type: 'string',
|
|
88
|
+
// Note: enum will be populated dynamically at runtime
|
|
89
|
+
description: 'Type of specialized agent to spawn (loaded dynamically from .claude/agents/)',
|
|
90
|
+
},
|
|
91
|
+
name: {
|
|
92
|
+
type: 'string',
|
|
93
|
+
description: 'Display name for the agent',
|
|
94
|
+
},
|
|
95
|
+
capabilities: {
|
|
96
|
+
type: 'array',
|
|
97
|
+
items: { type: 'string' },
|
|
98
|
+
description: 'List of capabilities for the agent',
|
|
99
|
+
},
|
|
100
|
+
systemPrompt: {
|
|
101
|
+
type: 'string',
|
|
102
|
+
description: 'Custom system prompt for the agent',
|
|
103
|
+
},
|
|
104
|
+
maxConcurrentTasks: {
|
|
105
|
+
type: 'number',
|
|
106
|
+
default: 3,
|
|
107
|
+
description: 'Maximum number of concurrent tasks',
|
|
108
|
+
},
|
|
109
|
+
priority: {
|
|
110
|
+
type: 'number',
|
|
111
|
+
default: 5,
|
|
112
|
+
description: 'Agent priority level (1-10)',
|
|
113
|
+
},
|
|
114
|
+
environment: {
|
|
115
|
+
type: 'object',
|
|
116
|
+
description: 'Environment variables for the agent',
|
|
117
|
+
},
|
|
118
|
+
workingDirectory: {
|
|
119
|
+
type: 'string',
|
|
120
|
+
description: 'Working directory for the agent',
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
required: ['type', 'name'],
|
|
124
|
+
},
|
|
125
|
+
handler: async (input, context) => {
|
|
126
|
+
logger.info('Spawning agent', { input, sessionId: context?.sessionId });
|
|
127
|
+
if (!context?.orchestrator) {
|
|
128
|
+
throw new Error('Orchestrator not available');
|
|
129
|
+
}
|
|
130
|
+
const profile = {
|
|
131
|
+
id: `agent_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`,
|
|
132
|
+
name: input.name,
|
|
133
|
+
type: input.type,
|
|
134
|
+
capabilities: input.capabilities || [],
|
|
135
|
+
systemPrompt: input.systemPrompt || getDefaultSystemPrompt(input.type),
|
|
136
|
+
maxConcurrentTasks: input.maxConcurrentTasks || 3,
|
|
137
|
+
priority: input.priority || 5,
|
|
138
|
+
environment: input.environment,
|
|
139
|
+
workingDirectory: input.workingDirectory,
|
|
140
|
+
};
|
|
141
|
+
const sessionId = await context.orchestrator.spawnAgent(profile);
|
|
142
|
+
return {
|
|
143
|
+
agentId: profile.id,
|
|
144
|
+
sessionId,
|
|
145
|
+
profile,
|
|
146
|
+
status: 'spawned',
|
|
147
|
+
timestamp: new Date().toISOString(),
|
|
148
|
+
};
|
|
149
|
+
},
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
function createListAgentsTool(logger) {
|
|
153
|
+
return {
|
|
154
|
+
name: 'agents/list',
|
|
155
|
+
description: 'List all active agents in the system',
|
|
156
|
+
inputSchema: {
|
|
157
|
+
type: 'object',
|
|
158
|
+
properties: {
|
|
159
|
+
includeTerminated: {
|
|
160
|
+
type: 'boolean',
|
|
161
|
+
default: false,
|
|
162
|
+
description: 'Include terminated agents in the list',
|
|
163
|
+
},
|
|
164
|
+
filterByType: {
|
|
165
|
+
type: 'string',
|
|
166
|
+
// Note: enum will be populated dynamically at runtime
|
|
167
|
+
description: 'Filter agents by type (loaded dynamically from .claude/agents/)',
|
|
168
|
+
},
|
|
169
|
+
},
|
|
170
|
+
},
|
|
171
|
+
handler: async (input, context) => {
|
|
172
|
+
logger.info('Listing agents', { input, sessionId: context?.sessionId });
|
|
173
|
+
if (!context?.orchestrator) {
|
|
174
|
+
throw new Error('Orchestrator not available');
|
|
175
|
+
}
|
|
176
|
+
const agents = await context.orchestrator.listAgents();
|
|
177
|
+
let filteredAgents = agents;
|
|
178
|
+
if (!input.includeTerminated) {
|
|
179
|
+
filteredAgents = filteredAgents.filter((agent) => agent.status !== 'terminated');
|
|
180
|
+
}
|
|
181
|
+
if (input.filterByType) {
|
|
182
|
+
filteredAgents = filteredAgents.filter((agent) => agent.type === input.filterByType);
|
|
183
|
+
}
|
|
184
|
+
return {
|
|
185
|
+
agents: filteredAgents,
|
|
186
|
+
count: filteredAgents.length,
|
|
187
|
+
timestamp: new Date().toISOString(),
|
|
188
|
+
};
|
|
189
|
+
},
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
function createTerminateAgentTool(logger) {
|
|
193
|
+
return {
|
|
194
|
+
name: 'agents/terminate',
|
|
195
|
+
description: 'Terminate a specific agent',
|
|
196
|
+
inputSchema: {
|
|
197
|
+
type: 'object',
|
|
198
|
+
properties: {
|
|
199
|
+
agentId: {
|
|
200
|
+
type: 'string',
|
|
201
|
+
description: 'ID of the agent to terminate',
|
|
202
|
+
},
|
|
203
|
+
reason: {
|
|
204
|
+
type: 'string',
|
|
205
|
+
description: 'Reason for termination',
|
|
206
|
+
},
|
|
207
|
+
graceful: {
|
|
208
|
+
type: 'boolean',
|
|
209
|
+
default: true,
|
|
210
|
+
description: 'Whether to perform graceful shutdown',
|
|
211
|
+
},
|
|
212
|
+
},
|
|
213
|
+
required: ['agentId'],
|
|
214
|
+
},
|
|
215
|
+
handler: async (input, context) => {
|
|
216
|
+
logger.info('Terminating agent', { input, sessionId: context?.sessionId });
|
|
217
|
+
if (!context?.orchestrator) {
|
|
218
|
+
throw new Error('Orchestrator not available');
|
|
219
|
+
}
|
|
220
|
+
await context.orchestrator.terminateAgent(input.agentId, {
|
|
221
|
+
reason: input.reason || 'Manual termination',
|
|
222
|
+
graceful: input.graceful !== false,
|
|
223
|
+
});
|
|
224
|
+
return {
|
|
225
|
+
agentId: input.agentId,
|
|
226
|
+
status: 'terminated',
|
|
227
|
+
reason: input.reason || 'Manual termination',
|
|
228
|
+
timestamp: new Date().toISOString(),
|
|
229
|
+
};
|
|
230
|
+
},
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
function createGetAgentInfoTool(logger) {
|
|
234
|
+
return {
|
|
235
|
+
name: 'agents/info',
|
|
236
|
+
description: 'Get detailed information about a specific agent',
|
|
237
|
+
inputSchema: {
|
|
238
|
+
type: 'object',
|
|
239
|
+
properties: {
|
|
240
|
+
agentId: {
|
|
241
|
+
type: 'string',
|
|
242
|
+
description: 'ID of the agent',
|
|
243
|
+
},
|
|
244
|
+
},
|
|
245
|
+
required: ['agentId'],
|
|
246
|
+
},
|
|
247
|
+
handler: async (input, context) => {
|
|
248
|
+
logger.info('Getting agent info', { input, sessionId: context?.sessionId });
|
|
249
|
+
if (!context?.orchestrator) {
|
|
250
|
+
throw new Error('Orchestrator not available');
|
|
251
|
+
}
|
|
252
|
+
const agentInfo = await context.orchestrator.getAgentInfo(input.agentId);
|
|
253
|
+
if (!agentInfo) {
|
|
254
|
+
throw new Error(`Agent not found: ${input.agentId}`);
|
|
255
|
+
}
|
|
256
|
+
return {
|
|
257
|
+
agent: agentInfo,
|
|
258
|
+
timestamp: new Date().toISOString(),
|
|
259
|
+
};
|
|
260
|
+
},
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
function createCreateTaskTool(logger) {
|
|
264
|
+
return {
|
|
265
|
+
name: 'tasks/create',
|
|
266
|
+
description: 'Create a new task for execution',
|
|
267
|
+
inputSchema: {
|
|
268
|
+
type: 'object',
|
|
269
|
+
properties: {
|
|
270
|
+
type: {
|
|
271
|
+
type: 'string',
|
|
272
|
+
description: 'Type of task to create',
|
|
273
|
+
},
|
|
274
|
+
description: {
|
|
275
|
+
type: 'string',
|
|
276
|
+
description: 'Description of the task',
|
|
277
|
+
},
|
|
278
|
+
priority: {
|
|
279
|
+
type: 'number',
|
|
280
|
+
default: 5,
|
|
281
|
+
description: 'Task priority (1-10)',
|
|
282
|
+
},
|
|
283
|
+
dependencies: {
|
|
284
|
+
type: 'array',
|
|
285
|
+
items: { type: 'string' },
|
|
286
|
+
description: 'List of task IDs this task depends on',
|
|
287
|
+
},
|
|
288
|
+
assignToAgent: {
|
|
289
|
+
type: 'string',
|
|
290
|
+
description: 'Specific agent ID to assign the task to',
|
|
291
|
+
},
|
|
292
|
+
assignToAgentType: {
|
|
293
|
+
type: 'string',
|
|
294
|
+
// Note: enum will be populated dynamically at runtime
|
|
295
|
+
description: 'Type of specialized agent to assign the task to (loaded dynamically from .claude/agents/)',
|
|
296
|
+
},
|
|
297
|
+
input: {
|
|
298
|
+
type: 'object',
|
|
299
|
+
description: 'Input data for the task',
|
|
300
|
+
},
|
|
301
|
+
timeout: {
|
|
302
|
+
type: 'number',
|
|
303
|
+
description: 'Task timeout in milliseconds',
|
|
304
|
+
},
|
|
305
|
+
},
|
|
306
|
+
required: ['type', 'description'],
|
|
307
|
+
},
|
|
308
|
+
handler: async (input, context) => {
|
|
309
|
+
logger.info('Creating task', { input, sessionId: context?.sessionId });
|
|
310
|
+
if (!context?.orchestrator) {
|
|
311
|
+
throw new Error('Orchestrator not available');
|
|
312
|
+
}
|
|
313
|
+
const task = {
|
|
314
|
+
type: input.type,
|
|
315
|
+
description: input.description,
|
|
316
|
+
priority: input.priority || 5,
|
|
317
|
+
dependencies: input.dependencies || [],
|
|
318
|
+
input: input.input || {},
|
|
319
|
+
status: 'pending',
|
|
320
|
+
createdAt: new Date(),
|
|
321
|
+
};
|
|
322
|
+
const taskId = await context.orchestrator.createTask(task);
|
|
323
|
+
// Handle assignment
|
|
324
|
+
if (input.assignToAgent) {
|
|
325
|
+
await context.orchestrator.assignTask(taskId, input.assignToAgent);
|
|
326
|
+
}
|
|
327
|
+
else if (input.assignToAgentType) {
|
|
328
|
+
await context.orchestrator.assignTaskToType(taskId, input.assignToAgentType);
|
|
329
|
+
}
|
|
330
|
+
return {
|
|
331
|
+
taskId,
|
|
332
|
+
task: { ...task, id: taskId },
|
|
333
|
+
timestamp: new Date().toISOString(),
|
|
334
|
+
};
|
|
335
|
+
},
|
|
336
|
+
};
|
|
337
|
+
}
|
|
338
|
+
function createListTasksTool(logger) {
|
|
339
|
+
return {
|
|
340
|
+
name: 'tasks/list',
|
|
341
|
+
description: 'List tasks with optional filtering',
|
|
342
|
+
inputSchema: {
|
|
343
|
+
type: 'object',
|
|
344
|
+
properties: {
|
|
345
|
+
status: {
|
|
346
|
+
type: 'string',
|
|
347
|
+
enum: ['pending', 'queued', 'assigned', 'running', 'completed', 'failed', 'cancelled'],
|
|
348
|
+
description: 'Filter by task status',
|
|
349
|
+
},
|
|
350
|
+
agentId: {
|
|
351
|
+
type: 'string',
|
|
352
|
+
description: 'Filter by assigned agent ID',
|
|
353
|
+
},
|
|
354
|
+
type: {
|
|
355
|
+
type: 'string',
|
|
356
|
+
description: 'Filter by task type',
|
|
357
|
+
},
|
|
358
|
+
limit: {
|
|
359
|
+
type: 'number',
|
|
360
|
+
default: 50,
|
|
361
|
+
description: 'Maximum number of tasks to return',
|
|
362
|
+
},
|
|
363
|
+
offset: {
|
|
364
|
+
type: 'number',
|
|
365
|
+
default: 0,
|
|
366
|
+
description: 'Number of tasks to skip',
|
|
367
|
+
},
|
|
368
|
+
},
|
|
369
|
+
},
|
|
370
|
+
handler: async (input, context) => {
|
|
371
|
+
logger.info('Listing tasks', { input, sessionId: context?.sessionId });
|
|
372
|
+
if (!context?.orchestrator) {
|
|
373
|
+
throw new Error('Orchestrator not available');
|
|
374
|
+
}
|
|
375
|
+
const tasks = await context.orchestrator.listTasks({
|
|
376
|
+
status: input.status,
|
|
377
|
+
agentId: input.agentId,
|
|
378
|
+
type: input.type,
|
|
379
|
+
limit: input.limit || 50,
|
|
380
|
+
offset: input.offset || 0,
|
|
381
|
+
});
|
|
382
|
+
return {
|
|
383
|
+
tasks,
|
|
384
|
+
count: tasks.length,
|
|
385
|
+
timestamp: new Date().toISOString(),
|
|
386
|
+
};
|
|
387
|
+
},
|
|
388
|
+
};
|
|
389
|
+
}
|
|
390
|
+
function createGetTaskStatusTool(logger) {
|
|
391
|
+
return {
|
|
392
|
+
name: 'tasks/status',
|
|
393
|
+
description: 'Get detailed status of a specific task',
|
|
394
|
+
inputSchema: {
|
|
395
|
+
type: 'object',
|
|
396
|
+
properties: {
|
|
397
|
+
taskId: {
|
|
398
|
+
type: 'string',
|
|
399
|
+
description: 'ID of the task',
|
|
400
|
+
},
|
|
401
|
+
},
|
|
402
|
+
required: ['taskId'],
|
|
403
|
+
},
|
|
404
|
+
handler: async (input, context) => {
|
|
405
|
+
logger.info('Getting task status', { input, sessionId: context?.sessionId });
|
|
406
|
+
if (!context?.orchestrator) {
|
|
407
|
+
throw new Error('Orchestrator not available');
|
|
408
|
+
}
|
|
409
|
+
const task = await context.orchestrator.getTask(input.taskId);
|
|
410
|
+
if (!task) {
|
|
411
|
+
throw new Error(`Task not found: ${input.taskId}`);
|
|
412
|
+
}
|
|
413
|
+
return {
|
|
414
|
+
task,
|
|
415
|
+
timestamp: new Date().toISOString(),
|
|
416
|
+
};
|
|
417
|
+
},
|
|
418
|
+
};
|
|
419
|
+
}
|
|
420
|
+
function createCancelTaskTool(logger) {
|
|
421
|
+
return {
|
|
422
|
+
name: 'tasks/cancel',
|
|
423
|
+
description: 'Cancel a pending or running task',
|
|
424
|
+
inputSchema: {
|
|
425
|
+
type: 'object',
|
|
426
|
+
properties: {
|
|
427
|
+
taskId: {
|
|
428
|
+
type: 'string',
|
|
429
|
+
description: 'ID of the task to cancel',
|
|
430
|
+
},
|
|
431
|
+
reason: {
|
|
432
|
+
type: 'string',
|
|
433
|
+
description: 'Reason for cancellation',
|
|
434
|
+
},
|
|
435
|
+
},
|
|
436
|
+
required: ['taskId'],
|
|
437
|
+
},
|
|
438
|
+
handler: async (input, context) => {
|
|
439
|
+
logger.info('Cancelling task', { input, sessionId: context?.sessionId });
|
|
440
|
+
if (!context?.orchestrator) {
|
|
441
|
+
throw new Error('Orchestrator not available');
|
|
442
|
+
}
|
|
443
|
+
await context.orchestrator.cancelTask(input.taskId, input.reason || 'Manual cancellation');
|
|
444
|
+
return {
|
|
445
|
+
taskId: input.taskId,
|
|
446
|
+
status: 'cancelled',
|
|
447
|
+
reason: input.reason || 'Manual cancellation',
|
|
448
|
+
timestamp: new Date().toISOString(),
|
|
449
|
+
};
|
|
450
|
+
},
|
|
451
|
+
};
|
|
452
|
+
}
|
|
453
|
+
function createAssignTaskTool(logger) {
|
|
454
|
+
return {
|
|
455
|
+
name: 'tasks/assign',
|
|
456
|
+
description: 'Assign a task to a specific agent',
|
|
457
|
+
inputSchema: {
|
|
458
|
+
type: 'object',
|
|
459
|
+
properties: {
|
|
460
|
+
taskId: {
|
|
461
|
+
type: 'string',
|
|
462
|
+
description: 'ID of the task to assign',
|
|
463
|
+
},
|
|
464
|
+
agentId: {
|
|
465
|
+
type: 'string',
|
|
466
|
+
description: 'ID of the agent to assign the task to',
|
|
467
|
+
},
|
|
468
|
+
},
|
|
469
|
+
required: ['taskId', 'agentId'],
|
|
470
|
+
},
|
|
471
|
+
handler: async (input, context) => {
|
|
472
|
+
logger.info('Assigning task', { input, sessionId: context?.sessionId });
|
|
473
|
+
if (!context?.orchestrator) {
|
|
474
|
+
throw new Error('Orchestrator not available');
|
|
475
|
+
}
|
|
476
|
+
await context.orchestrator.assignTask(input.taskId, input.agentId);
|
|
477
|
+
return {
|
|
478
|
+
taskId: input.taskId,
|
|
479
|
+
agentId: input.agentId,
|
|
480
|
+
status: 'assigned',
|
|
481
|
+
timestamp: new Date().toISOString(),
|
|
482
|
+
};
|
|
483
|
+
},
|
|
484
|
+
};
|
|
485
|
+
}
|
|
486
|
+
function createQueryMemoryTool(logger) {
|
|
487
|
+
return {
|
|
488
|
+
name: 'memory/query',
|
|
489
|
+
description: 'Query agent memory with filters and search',
|
|
490
|
+
inputSchema: {
|
|
491
|
+
type: 'object',
|
|
492
|
+
properties: {
|
|
493
|
+
agentId: {
|
|
494
|
+
type: 'string',
|
|
495
|
+
description: 'Filter by agent ID',
|
|
496
|
+
},
|
|
497
|
+
sessionId: {
|
|
498
|
+
type: 'string',
|
|
499
|
+
description: 'Filter by session ID',
|
|
500
|
+
},
|
|
501
|
+
type: {
|
|
502
|
+
type: 'string',
|
|
503
|
+
enum: ['observation', 'insight', 'decision', 'artifact', 'error'],
|
|
504
|
+
description: 'Filter by entry type',
|
|
505
|
+
},
|
|
506
|
+
tags: {
|
|
507
|
+
type: 'array',
|
|
508
|
+
items: { type: 'string' },
|
|
509
|
+
description: 'Filter by tags',
|
|
510
|
+
},
|
|
511
|
+
search: {
|
|
512
|
+
type: 'string',
|
|
513
|
+
description: 'Full-text search query',
|
|
514
|
+
},
|
|
515
|
+
startTime: {
|
|
516
|
+
type: 'string',
|
|
517
|
+
format: 'date-time',
|
|
518
|
+
description: 'Filter entries after this time',
|
|
519
|
+
},
|
|
520
|
+
endTime: {
|
|
521
|
+
type: 'string',
|
|
522
|
+
format: 'date-time',
|
|
523
|
+
description: 'Filter entries before this time',
|
|
524
|
+
},
|
|
525
|
+
limit: {
|
|
526
|
+
type: 'number',
|
|
527
|
+
default: 50,
|
|
528
|
+
description: 'Maximum number of entries to return',
|
|
529
|
+
},
|
|
530
|
+
offset: {
|
|
531
|
+
type: 'number',
|
|
532
|
+
default: 0,
|
|
533
|
+
description: 'Number of entries to skip',
|
|
534
|
+
},
|
|
535
|
+
},
|
|
536
|
+
},
|
|
537
|
+
handler: async (input, context) => {
|
|
538
|
+
logger.info('Querying memory', { input, sessionId: context?.sessionId });
|
|
539
|
+
if (!context?.orchestrator) {
|
|
540
|
+
throw new Error('Orchestrator not available');
|
|
541
|
+
}
|
|
542
|
+
const query = {
|
|
543
|
+
agentId: input.agentId,
|
|
544
|
+
sessionId: input.sessionId,
|
|
545
|
+
type: input.type,
|
|
546
|
+
tags: input.tags,
|
|
547
|
+
search: input.search,
|
|
548
|
+
startTime: input.startTime ? new Date(input.startTime) : undefined,
|
|
549
|
+
endTime: input.endTime ? new Date(input.endTime) : undefined,
|
|
550
|
+
limit: input.limit || 50,
|
|
551
|
+
offset: input.offset || 0,
|
|
552
|
+
};
|
|
553
|
+
const entries = await context.orchestrator.queryMemory(query);
|
|
554
|
+
return {
|
|
555
|
+
entries,
|
|
556
|
+
count: entries.length,
|
|
557
|
+
query,
|
|
558
|
+
timestamp: new Date().toISOString(),
|
|
559
|
+
};
|
|
560
|
+
},
|
|
561
|
+
};
|
|
562
|
+
}
|
|
563
|
+
function createStoreMemoryTool(logger) {
|
|
564
|
+
return {
|
|
565
|
+
name: 'memory/store',
|
|
566
|
+
description: 'Store a new memory entry',
|
|
567
|
+
inputSchema: {
|
|
568
|
+
type: 'object',
|
|
569
|
+
properties: {
|
|
570
|
+
agentId: {
|
|
571
|
+
type: 'string',
|
|
572
|
+
description: 'Agent ID for the memory entry',
|
|
573
|
+
},
|
|
574
|
+
sessionId: {
|
|
575
|
+
type: 'string',
|
|
576
|
+
description: 'Session ID for the memory entry',
|
|
577
|
+
},
|
|
578
|
+
type: {
|
|
579
|
+
type: 'string',
|
|
580
|
+
enum: ['observation', 'insight', 'decision', 'artifact', 'error'],
|
|
581
|
+
description: 'Type of memory entry',
|
|
582
|
+
},
|
|
583
|
+
content: {
|
|
584
|
+
type: 'string',
|
|
585
|
+
description: 'Content of the memory entry',
|
|
586
|
+
},
|
|
587
|
+
context: {
|
|
588
|
+
type: 'object',
|
|
589
|
+
description: 'Context data for the memory entry',
|
|
590
|
+
},
|
|
591
|
+
tags: {
|
|
592
|
+
type: 'array',
|
|
593
|
+
items: { type: 'string' },
|
|
594
|
+
description: 'Tags for the memory entry',
|
|
595
|
+
},
|
|
596
|
+
parentId: {
|
|
597
|
+
type: 'string',
|
|
598
|
+
description: 'Parent memory entry ID',
|
|
599
|
+
},
|
|
600
|
+
},
|
|
601
|
+
required: ['agentId', 'sessionId', 'type', 'content'],
|
|
602
|
+
},
|
|
603
|
+
handler: async (input, context) => {
|
|
604
|
+
logger.info('Storing memory', { input, sessionId: context?.sessionId });
|
|
605
|
+
if (!context?.orchestrator) {
|
|
606
|
+
throw new Error('Orchestrator not available');
|
|
607
|
+
}
|
|
608
|
+
const entry = {
|
|
609
|
+
agentId: input.agentId,
|
|
610
|
+
sessionId: input.sessionId,
|
|
611
|
+
type: input.type,
|
|
612
|
+
content: input.content,
|
|
613
|
+
context: input.context || {},
|
|
614
|
+
tags: input.tags || [],
|
|
615
|
+
parentId: input.parentId,
|
|
616
|
+
timestamp: new Date(),
|
|
617
|
+
version: 1,
|
|
618
|
+
};
|
|
619
|
+
const entryId = await context.orchestrator.storeMemory(entry);
|
|
620
|
+
return {
|
|
621
|
+
entryId,
|
|
622
|
+
entry: { ...entry, id: entryId },
|
|
623
|
+
timestamp: new Date().toISOString(),
|
|
624
|
+
};
|
|
625
|
+
},
|
|
626
|
+
};
|
|
627
|
+
}
|
|
628
|
+
function createDeleteMemoryTool(logger) {
|
|
629
|
+
return {
|
|
630
|
+
name: 'memory/delete',
|
|
631
|
+
description: 'Delete a memory entry',
|
|
632
|
+
inputSchema: {
|
|
633
|
+
type: 'object',
|
|
634
|
+
properties: {
|
|
635
|
+
entryId: {
|
|
636
|
+
type: 'string',
|
|
637
|
+
description: 'ID of the memory entry to delete',
|
|
638
|
+
},
|
|
639
|
+
},
|
|
640
|
+
required: ['entryId'],
|
|
641
|
+
},
|
|
642
|
+
handler: async (input, context) => {
|
|
643
|
+
logger.info('Deleting memory', { input, sessionId: context?.sessionId });
|
|
644
|
+
if (!context?.orchestrator) {
|
|
645
|
+
throw new Error('Orchestrator not available');
|
|
646
|
+
}
|
|
647
|
+
await context.orchestrator.deleteMemory(input.entryId);
|
|
648
|
+
return {
|
|
649
|
+
entryId: input.entryId,
|
|
650
|
+
status: 'deleted',
|
|
651
|
+
timestamp: new Date().toISOString(),
|
|
652
|
+
};
|
|
653
|
+
},
|
|
654
|
+
};
|
|
655
|
+
}
|
|
656
|
+
function createExportMemoryTool(logger) {
|
|
657
|
+
return {
|
|
658
|
+
name: 'memory/export',
|
|
659
|
+
description: 'Export memory entries to a file',
|
|
660
|
+
inputSchema: {
|
|
661
|
+
type: 'object',
|
|
662
|
+
properties: {
|
|
663
|
+
format: {
|
|
664
|
+
type: 'string',
|
|
665
|
+
enum: ['json', 'csv', 'markdown'],
|
|
666
|
+
default: 'json',
|
|
667
|
+
description: 'Export format',
|
|
668
|
+
},
|
|
669
|
+
agentId: {
|
|
670
|
+
type: 'string',
|
|
671
|
+
description: 'Filter by agent ID',
|
|
672
|
+
},
|
|
673
|
+
sessionId: {
|
|
674
|
+
type: 'string',
|
|
675
|
+
description: 'Filter by session ID',
|
|
676
|
+
},
|
|
677
|
+
startTime: {
|
|
678
|
+
type: 'string',
|
|
679
|
+
format: 'date-time',
|
|
680
|
+
description: 'Export entries after this time',
|
|
681
|
+
},
|
|
682
|
+
endTime: {
|
|
683
|
+
type: 'string',
|
|
684
|
+
format: 'date-time',
|
|
685
|
+
description: 'Export entries before this time',
|
|
686
|
+
},
|
|
687
|
+
},
|
|
688
|
+
},
|
|
689
|
+
handler: async (input, context) => {
|
|
690
|
+
logger.info('Exporting memory', { input, sessionId: context?.sessionId });
|
|
691
|
+
if (!context?.orchestrator) {
|
|
692
|
+
throw new Error('Orchestrator not available');
|
|
693
|
+
}
|
|
694
|
+
const exportResult = await context.orchestrator.exportMemory({
|
|
695
|
+
format: input.format || 'json',
|
|
696
|
+
agentId: input.agentId,
|
|
697
|
+
sessionId: input.sessionId,
|
|
698
|
+
startTime: input.startTime ? new Date(input.startTime) : undefined,
|
|
699
|
+
endTime: input.endTime ? new Date(input.endTime) : undefined,
|
|
700
|
+
});
|
|
701
|
+
return {
|
|
702
|
+
...exportResult,
|
|
703
|
+
timestamp: new Date().toISOString(),
|
|
704
|
+
};
|
|
705
|
+
},
|
|
706
|
+
};
|
|
707
|
+
}
|
|
708
|
+
function createImportMemoryTool(logger) {
|
|
709
|
+
return {
|
|
710
|
+
name: 'memory/import',
|
|
711
|
+
description: 'Import memory entries from a file',
|
|
712
|
+
inputSchema: {
|
|
713
|
+
type: 'object',
|
|
714
|
+
properties: {
|
|
715
|
+
filePath: {
|
|
716
|
+
type: 'string',
|
|
717
|
+
description: 'Path to the file to import',
|
|
718
|
+
},
|
|
719
|
+
format: {
|
|
720
|
+
type: 'string',
|
|
721
|
+
enum: ['json', 'csv'],
|
|
722
|
+
default: 'json',
|
|
723
|
+
description: 'Import format',
|
|
724
|
+
},
|
|
725
|
+
mergeStrategy: {
|
|
726
|
+
type: 'string',
|
|
727
|
+
enum: ['skip', 'overwrite', 'version'],
|
|
728
|
+
default: 'skip',
|
|
729
|
+
description: 'Strategy for handling duplicate entries',
|
|
730
|
+
},
|
|
731
|
+
},
|
|
732
|
+
required: ['filePath'],
|
|
733
|
+
},
|
|
734
|
+
handler: async (input, context) => {
|
|
735
|
+
logger.info('Importing memory', { input, sessionId: context?.sessionId });
|
|
736
|
+
if (!context?.orchestrator) {
|
|
737
|
+
throw new Error('Orchestrator not available');
|
|
738
|
+
}
|
|
739
|
+
const importResult = await context.orchestrator.importMemory({
|
|
740
|
+
filePath: input.filePath,
|
|
741
|
+
format: input.format || 'json',
|
|
742
|
+
mergeStrategy: input.mergeStrategy || 'skip',
|
|
743
|
+
});
|
|
744
|
+
return {
|
|
745
|
+
...importResult,
|
|
746
|
+
timestamp: new Date().toISOString(),
|
|
747
|
+
};
|
|
748
|
+
},
|
|
749
|
+
};
|
|
750
|
+
}
|
|
751
|
+
function createGetSystemStatusTool(logger) {
|
|
752
|
+
return {
|
|
753
|
+
name: 'system/status',
|
|
754
|
+
description: 'Get comprehensive system status information',
|
|
755
|
+
inputSchema: {
|
|
756
|
+
type: 'object',
|
|
757
|
+
properties: {},
|
|
758
|
+
},
|
|
759
|
+
handler: async (input, context) => {
|
|
760
|
+
logger.info('Getting system status', { sessionId: context?.sessionId });
|
|
761
|
+
if (!context?.orchestrator) {
|
|
762
|
+
throw new Error('Orchestrator not available');
|
|
763
|
+
}
|
|
764
|
+
const status = await context.orchestrator.getSystemStatus();
|
|
765
|
+
return {
|
|
766
|
+
...status,
|
|
767
|
+
timestamp: new Date().toISOString(),
|
|
768
|
+
};
|
|
769
|
+
},
|
|
770
|
+
};
|
|
771
|
+
}
|
|
772
|
+
function createGetMetricsTool(logger) {
|
|
773
|
+
return {
|
|
774
|
+
name: 'system/metrics',
|
|
775
|
+
description: 'Get system performance metrics',
|
|
776
|
+
inputSchema: {
|
|
777
|
+
type: 'object',
|
|
778
|
+
properties: {
|
|
779
|
+
timeRange: {
|
|
780
|
+
type: 'string',
|
|
781
|
+
enum: ['1h', '6h', '24h', '7d'],
|
|
782
|
+
default: '1h',
|
|
783
|
+
description: 'Time range for metrics',
|
|
784
|
+
},
|
|
785
|
+
},
|
|
786
|
+
},
|
|
787
|
+
handler: async (input, context) => {
|
|
788
|
+
logger.info('Getting system metrics', { input, sessionId: context?.sessionId });
|
|
789
|
+
if (!context?.orchestrator) {
|
|
790
|
+
throw new Error('Orchestrator not available');
|
|
791
|
+
}
|
|
792
|
+
const metrics = await context.orchestrator.getMetrics(input.timeRange || '1h');
|
|
793
|
+
return {
|
|
794
|
+
metrics,
|
|
795
|
+
timeRange: input.timeRange || '1h',
|
|
796
|
+
timestamp: new Date().toISOString(),
|
|
797
|
+
};
|
|
798
|
+
},
|
|
799
|
+
};
|
|
800
|
+
}
|
|
801
|
+
function createHealthCheckTool(logger) {
|
|
802
|
+
return {
|
|
803
|
+
name: 'system/health',
|
|
804
|
+
description: 'Perform a comprehensive health check',
|
|
805
|
+
inputSchema: {
|
|
806
|
+
type: 'object',
|
|
807
|
+
properties: {
|
|
808
|
+
deep: {
|
|
809
|
+
type: 'boolean',
|
|
810
|
+
default: false,
|
|
811
|
+
description: 'Perform deep health check including component tests',
|
|
812
|
+
},
|
|
813
|
+
},
|
|
814
|
+
},
|
|
815
|
+
handler: async (input, context) => {
|
|
816
|
+
logger.info('Performing health check', { input, sessionId: context?.sessionId });
|
|
817
|
+
if (!context?.orchestrator) {
|
|
818
|
+
throw new Error('Orchestrator not available');
|
|
819
|
+
}
|
|
820
|
+
const healthCheck = await context.orchestrator.performHealthCheck(input.deep || false);
|
|
821
|
+
return {
|
|
822
|
+
...healthCheck,
|
|
823
|
+
timestamp: new Date().toISOString(),
|
|
824
|
+
};
|
|
825
|
+
},
|
|
826
|
+
};
|
|
827
|
+
}
|
|
828
|
+
function createGetConfigTool(logger) {
|
|
829
|
+
return {
|
|
830
|
+
name: 'config/get',
|
|
831
|
+
description: 'Get current system configuration',
|
|
832
|
+
inputSchema: {
|
|
833
|
+
type: 'object',
|
|
834
|
+
properties: {
|
|
835
|
+
section: {
|
|
836
|
+
type: 'string',
|
|
837
|
+
enum: ['orchestrator', 'terminal', 'memory', 'coordination', 'mcp', 'logging'],
|
|
838
|
+
description: 'Specific configuration section to retrieve',
|
|
839
|
+
},
|
|
840
|
+
},
|
|
841
|
+
},
|
|
842
|
+
handler: async (input, context) => {
|
|
843
|
+
logger.info('Getting configuration', { input, sessionId: context?.sessionId });
|
|
844
|
+
if (!context?.orchestrator) {
|
|
845
|
+
throw new Error('Orchestrator not available');
|
|
846
|
+
}
|
|
847
|
+
const config = await context.orchestrator.getConfig(input.section);
|
|
848
|
+
return {
|
|
849
|
+
config,
|
|
850
|
+
section: input.section,
|
|
851
|
+
timestamp: new Date().toISOString(),
|
|
852
|
+
};
|
|
853
|
+
},
|
|
854
|
+
};
|
|
855
|
+
}
|
|
856
|
+
function createUpdateConfigTool(logger) {
|
|
857
|
+
return {
|
|
858
|
+
name: 'config/update',
|
|
859
|
+
description: 'Update system configuration',
|
|
860
|
+
inputSchema: {
|
|
861
|
+
type: 'object',
|
|
862
|
+
properties: {
|
|
863
|
+
section: {
|
|
864
|
+
type: 'string',
|
|
865
|
+
enum: ['orchestrator', 'terminal', 'memory', 'coordination', 'mcp', 'logging'],
|
|
866
|
+
description: 'Configuration section to update',
|
|
867
|
+
},
|
|
868
|
+
config: {
|
|
869
|
+
type: 'object',
|
|
870
|
+
description: 'Configuration values to update',
|
|
871
|
+
},
|
|
872
|
+
restart: {
|
|
873
|
+
type: 'boolean',
|
|
874
|
+
default: false,
|
|
875
|
+
description: 'Restart affected components after update',
|
|
876
|
+
},
|
|
877
|
+
},
|
|
878
|
+
required: ['section', 'config'],
|
|
879
|
+
},
|
|
880
|
+
handler: async (input, context) => {
|
|
881
|
+
logger.info('Updating configuration', { input, sessionId: context?.sessionId });
|
|
882
|
+
if (!context?.orchestrator) {
|
|
883
|
+
throw new Error('Orchestrator not available');
|
|
884
|
+
}
|
|
885
|
+
const result = await context.orchestrator.updateConfig(input.section, input.config, input.restart || false);
|
|
886
|
+
return {
|
|
887
|
+
...result,
|
|
888
|
+
timestamp: new Date().toISOString(),
|
|
889
|
+
};
|
|
890
|
+
},
|
|
891
|
+
};
|
|
892
|
+
}
|
|
893
|
+
function createValidateConfigTool(logger) {
|
|
894
|
+
return {
|
|
895
|
+
name: 'config/validate',
|
|
896
|
+
description: 'Validate a configuration object',
|
|
897
|
+
inputSchema: {
|
|
898
|
+
type: 'object',
|
|
899
|
+
properties: {
|
|
900
|
+
config: {
|
|
901
|
+
type: 'object',
|
|
902
|
+
description: 'Configuration object to validate',
|
|
903
|
+
},
|
|
904
|
+
},
|
|
905
|
+
required: ['config'],
|
|
906
|
+
},
|
|
907
|
+
handler: async (input, context) => {
|
|
908
|
+
logger.info('Validating configuration', { input, sessionId: context?.sessionId });
|
|
909
|
+
if (!context?.orchestrator) {
|
|
910
|
+
throw new Error('Orchestrator not available');
|
|
911
|
+
}
|
|
912
|
+
const validation = await context.orchestrator.validateConfig(input.config);
|
|
913
|
+
return {
|
|
914
|
+
...validation,
|
|
915
|
+
timestamp: new Date().toISOString(),
|
|
916
|
+
};
|
|
917
|
+
},
|
|
918
|
+
};
|
|
919
|
+
}
|
|
920
|
+
function createExecuteWorkflowTool(logger) {
|
|
921
|
+
return {
|
|
922
|
+
name: 'workflow/execute',
|
|
923
|
+
description: 'Execute a workflow from a file or definition',
|
|
924
|
+
inputSchema: {
|
|
925
|
+
type: 'object',
|
|
926
|
+
properties: {
|
|
927
|
+
filePath: {
|
|
928
|
+
type: 'string',
|
|
929
|
+
description: 'Path to workflow file',
|
|
930
|
+
},
|
|
931
|
+
workflow: {
|
|
932
|
+
type: 'object',
|
|
933
|
+
description: 'Inline workflow definition',
|
|
934
|
+
},
|
|
935
|
+
parameters: {
|
|
936
|
+
type: 'object',
|
|
937
|
+
description: 'Parameters to pass to the workflow',
|
|
938
|
+
},
|
|
939
|
+
},
|
|
940
|
+
},
|
|
941
|
+
handler: async (input, context) => {
|
|
942
|
+
logger.info('Executing workflow', { input, sessionId: context?.sessionId });
|
|
943
|
+
if (!context?.orchestrator) {
|
|
944
|
+
throw new Error('Orchestrator not available');
|
|
945
|
+
}
|
|
946
|
+
if (!input.filePath && !input.workflow) {
|
|
947
|
+
throw new Error('Either filePath or workflow must be provided');
|
|
948
|
+
}
|
|
949
|
+
const result = await context.orchestrator.executeWorkflow({
|
|
950
|
+
filePath: input.filePath,
|
|
951
|
+
workflow: input.workflow,
|
|
952
|
+
parameters: input.parameters || {},
|
|
953
|
+
});
|
|
954
|
+
return {
|
|
955
|
+
...result,
|
|
956
|
+
timestamp: new Date().toISOString(),
|
|
957
|
+
};
|
|
958
|
+
},
|
|
959
|
+
};
|
|
960
|
+
}
|
|
961
|
+
function createCreateWorkflowTool(logger) {
|
|
962
|
+
return {
|
|
963
|
+
name: 'workflow/create',
|
|
964
|
+
description: 'Create a new workflow definition',
|
|
965
|
+
inputSchema: {
|
|
966
|
+
type: 'object',
|
|
967
|
+
properties: {
|
|
968
|
+
name: {
|
|
969
|
+
type: 'string',
|
|
970
|
+
description: 'Name of the workflow',
|
|
971
|
+
},
|
|
972
|
+
description: {
|
|
973
|
+
type: 'string',
|
|
974
|
+
description: 'Description of the workflow',
|
|
975
|
+
},
|
|
976
|
+
tasks: {
|
|
977
|
+
type: 'array',
|
|
978
|
+
items: {
|
|
979
|
+
type: 'object',
|
|
980
|
+
properties: {
|
|
981
|
+
id: { type: 'string' },
|
|
982
|
+
type: { type: 'string' },
|
|
983
|
+
description: { type: 'string' },
|
|
984
|
+
dependencies: {
|
|
985
|
+
type: 'array',
|
|
986
|
+
items: { type: 'string' },
|
|
987
|
+
},
|
|
988
|
+
assignTo: { type: 'string' },
|
|
989
|
+
},
|
|
990
|
+
required: ['id', 'type', 'description'],
|
|
991
|
+
},
|
|
992
|
+
description: 'List of tasks in the workflow',
|
|
993
|
+
},
|
|
994
|
+
savePath: {
|
|
995
|
+
type: 'string',
|
|
996
|
+
description: 'Path to save the workflow file',
|
|
997
|
+
},
|
|
998
|
+
},
|
|
999
|
+
required: ['name', 'tasks'],
|
|
1000
|
+
},
|
|
1001
|
+
handler: async (input, context) => {
|
|
1002
|
+
logger.info('Creating workflow', { input, sessionId: context?.sessionId });
|
|
1003
|
+
if (!context?.orchestrator) {
|
|
1004
|
+
throw new Error('Orchestrator not available');
|
|
1005
|
+
}
|
|
1006
|
+
const workflow = {
|
|
1007
|
+
name: input.name,
|
|
1008
|
+
description: input.description,
|
|
1009
|
+
tasks: input.tasks,
|
|
1010
|
+
created: new Date().toISOString(),
|
|
1011
|
+
};
|
|
1012
|
+
const result = await context.orchestrator.createWorkflow(workflow, input.savePath);
|
|
1013
|
+
return {
|
|
1014
|
+
...result,
|
|
1015
|
+
workflow,
|
|
1016
|
+
timestamp: new Date().toISOString(),
|
|
1017
|
+
};
|
|
1018
|
+
},
|
|
1019
|
+
};
|
|
1020
|
+
}
|
|
1021
|
+
function createListWorkflowsTool(logger) {
|
|
1022
|
+
return {
|
|
1023
|
+
name: 'workflow/list',
|
|
1024
|
+
description: 'List available workflows',
|
|
1025
|
+
inputSchema: {
|
|
1026
|
+
type: 'object',
|
|
1027
|
+
properties: {
|
|
1028
|
+
directory: {
|
|
1029
|
+
type: 'string',
|
|
1030
|
+
description: 'Directory to search for workflows',
|
|
1031
|
+
},
|
|
1032
|
+
},
|
|
1033
|
+
},
|
|
1034
|
+
handler: async (input, context) => {
|
|
1035
|
+
logger.info('Listing workflows', { input, sessionId: context?.sessionId });
|
|
1036
|
+
if (!context?.orchestrator) {
|
|
1037
|
+
throw new Error('Orchestrator not available');
|
|
1038
|
+
}
|
|
1039
|
+
const workflows = await context.orchestrator.listWorkflows(input.directory);
|
|
1040
|
+
return {
|
|
1041
|
+
workflows,
|
|
1042
|
+
count: workflows.length,
|
|
1043
|
+
timestamp: new Date().toISOString(),
|
|
1044
|
+
};
|
|
1045
|
+
},
|
|
1046
|
+
};
|
|
1047
|
+
}
|
|
1048
|
+
function createExecuteCommandTool(logger) {
|
|
1049
|
+
return {
|
|
1050
|
+
name: 'terminal/execute',
|
|
1051
|
+
description: 'Execute a command in a terminal session',
|
|
1052
|
+
inputSchema: {
|
|
1053
|
+
type: 'object',
|
|
1054
|
+
properties: {
|
|
1055
|
+
command: {
|
|
1056
|
+
type: 'string',
|
|
1057
|
+
description: 'Command to execute',
|
|
1058
|
+
},
|
|
1059
|
+
args: {
|
|
1060
|
+
type: 'array',
|
|
1061
|
+
items: { type: 'string' },
|
|
1062
|
+
description: 'Command arguments',
|
|
1063
|
+
},
|
|
1064
|
+
cwd: {
|
|
1065
|
+
type: 'string',
|
|
1066
|
+
description: 'Working directory for the command',
|
|
1067
|
+
},
|
|
1068
|
+
env: {
|
|
1069
|
+
type: 'object',
|
|
1070
|
+
description: 'Environment variables',
|
|
1071
|
+
},
|
|
1072
|
+
timeout: {
|
|
1073
|
+
type: 'number',
|
|
1074
|
+
default: 30000,
|
|
1075
|
+
description: 'Command timeout in milliseconds',
|
|
1076
|
+
},
|
|
1077
|
+
terminalId: {
|
|
1078
|
+
type: 'string',
|
|
1079
|
+
description: 'Specific terminal ID to use',
|
|
1080
|
+
},
|
|
1081
|
+
},
|
|
1082
|
+
required: ['command'],
|
|
1083
|
+
},
|
|
1084
|
+
handler: async (input, context) => {
|
|
1085
|
+
logger.info('Executing command', { input, sessionId: context?.sessionId });
|
|
1086
|
+
if (!context?.orchestrator) {
|
|
1087
|
+
throw new Error('Orchestrator not available');
|
|
1088
|
+
}
|
|
1089
|
+
const result = await context.orchestrator.executeCommand({
|
|
1090
|
+
command: input.command,
|
|
1091
|
+
args: input.args,
|
|
1092
|
+
cwd: input.cwd,
|
|
1093
|
+
env: input.env,
|
|
1094
|
+
timeout: input.timeout || 30000,
|
|
1095
|
+
terminalId: input.terminalId,
|
|
1096
|
+
});
|
|
1097
|
+
return {
|
|
1098
|
+
...result,
|
|
1099
|
+
timestamp: new Date().toISOString(),
|
|
1100
|
+
};
|
|
1101
|
+
},
|
|
1102
|
+
};
|
|
1103
|
+
}
|
|
1104
|
+
function createListTerminalsTool(logger) {
|
|
1105
|
+
return {
|
|
1106
|
+
name: 'terminal/list',
|
|
1107
|
+
description: 'List all terminal sessions',
|
|
1108
|
+
inputSchema: {
|
|
1109
|
+
type: 'object',
|
|
1110
|
+
properties: {
|
|
1111
|
+
includeIdle: {
|
|
1112
|
+
type: 'boolean',
|
|
1113
|
+
default: true,
|
|
1114
|
+
description: 'Include idle terminals',
|
|
1115
|
+
},
|
|
1116
|
+
},
|
|
1117
|
+
},
|
|
1118
|
+
handler: async (input, context) => {
|
|
1119
|
+
logger.info('Listing terminals', { input, sessionId: context?.sessionId });
|
|
1120
|
+
if (!context?.orchestrator) {
|
|
1121
|
+
throw new Error('Orchestrator not available');
|
|
1122
|
+
}
|
|
1123
|
+
const terminals = await context.orchestrator.listTerminals(input.includeIdle !== false);
|
|
1124
|
+
return {
|
|
1125
|
+
terminals,
|
|
1126
|
+
count: terminals.length,
|
|
1127
|
+
timestamp: new Date().toISOString(),
|
|
1128
|
+
};
|
|
1129
|
+
},
|
|
1130
|
+
};
|
|
1131
|
+
}
|
|
1132
|
+
function createCreateTerminalTool(logger) {
|
|
1133
|
+
return {
|
|
1134
|
+
name: 'terminal/create',
|
|
1135
|
+
description: 'Create a new terminal session',
|
|
1136
|
+
inputSchema: {
|
|
1137
|
+
type: 'object',
|
|
1138
|
+
properties: {
|
|
1139
|
+
cwd: {
|
|
1140
|
+
type: 'string',
|
|
1141
|
+
description: 'Working directory for the terminal',
|
|
1142
|
+
},
|
|
1143
|
+
env: {
|
|
1144
|
+
type: 'object',
|
|
1145
|
+
description: 'Environment variables',
|
|
1146
|
+
},
|
|
1147
|
+
shell: {
|
|
1148
|
+
type: 'string',
|
|
1149
|
+
description: 'Shell to use (bash, zsh, etc.)',
|
|
1150
|
+
},
|
|
1151
|
+
},
|
|
1152
|
+
},
|
|
1153
|
+
handler: async (input, context) => {
|
|
1154
|
+
logger.info('Creating terminal', { input, sessionId: context?.sessionId });
|
|
1155
|
+
if (!context?.orchestrator) {
|
|
1156
|
+
throw new Error('Orchestrator not available');
|
|
1157
|
+
}
|
|
1158
|
+
const terminal = await context.orchestrator.createTerminal({
|
|
1159
|
+
cwd: input.cwd,
|
|
1160
|
+
env: input.env,
|
|
1161
|
+
shell: input.shell,
|
|
1162
|
+
});
|
|
1163
|
+
return {
|
|
1164
|
+
terminal,
|
|
1165
|
+
timestamp: new Date().toISOString(),
|
|
1166
|
+
};
|
|
1167
|
+
},
|
|
1168
|
+
};
|
|
1169
|
+
}
|
|
1170
|
+
/**
|
|
1171
|
+
* NEW: Phase 4 - Parallel Agent Spawning (10-20x faster)
|
|
1172
|
+
* Spawn multiple agents in parallel using ParallelSwarmExecutor
|
|
1173
|
+
*/
|
|
1174
|
+
function createSpawnParallelAgentsTool(logger) {
|
|
1175
|
+
return {
|
|
1176
|
+
name: 'agents/spawn_parallel',
|
|
1177
|
+
description: 'Spawn multiple agents in parallel (10-20x faster than sequential spawning)',
|
|
1178
|
+
inputSchema: {
|
|
1179
|
+
type: 'object',
|
|
1180
|
+
properties: {
|
|
1181
|
+
agents: {
|
|
1182
|
+
type: 'array',
|
|
1183
|
+
items: {
|
|
1184
|
+
type: 'object',
|
|
1185
|
+
properties: {
|
|
1186
|
+
type: { type: 'string', description: 'Agent type' },
|
|
1187
|
+
name: { type: 'string', description: 'Agent name' },
|
|
1188
|
+
capabilities: { type: 'array', items: { type: 'string' } },
|
|
1189
|
+
priority: {
|
|
1190
|
+
type: 'string',
|
|
1191
|
+
enum: ['low', 'medium', 'high', 'critical'],
|
|
1192
|
+
default: 'medium'
|
|
1193
|
+
},
|
|
1194
|
+
},
|
|
1195
|
+
required: ['type', 'name'],
|
|
1196
|
+
},
|
|
1197
|
+
description: 'Array of agent configurations to spawn in parallel',
|
|
1198
|
+
},
|
|
1199
|
+
maxConcurrency: {
|
|
1200
|
+
type: 'number',
|
|
1201
|
+
default: 5,
|
|
1202
|
+
description: 'Maximum number of agents to spawn concurrently',
|
|
1203
|
+
},
|
|
1204
|
+
batchSize: {
|
|
1205
|
+
type: 'number',
|
|
1206
|
+
default: 3,
|
|
1207
|
+
description: 'Number of agents per batch',
|
|
1208
|
+
},
|
|
1209
|
+
},
|
|
1210
|
+
required: ['agents'],
|
|
1211
|
+
},
|
|
1212
|
+
handler: async (input, context) => {
|
|
1213
|
+
logger.info('Spawning parallel agents', {
|
|
1214
|
+
count: input.agents?.length,
|
|
1215
|
+
sessionId: context?.sessionId
|
|
1216
|
+
});
|
|
1217
|
+
if (!context?.orchestrator) {
|
|
1218
|
+
throw new Error('Orchestrator not available');
|
|
1219
|
+
}
|
|
1220
|
+
const executor = context.orchestrator.getParallelExecutor();
|
|
1221
|
+
if (!executor) {
|
|
1222
|
+
throw new Error('ParallelSwarmExecutor not initialized');
|
|
1223
|
+
}
|
|
1224
|
+
// Convert input agents to ParallelAgentConfig format
|
|
1225
|
+
const agentConfigs = input.agents.map((agent) => ({
|
|
1226
|
+
agentId: `agent_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`,
|
|
1227
|
+
agentType: agent.type,
|
|
1228
|
+
task: `Spawn ${agent.name} agent`,
|
|
1229
|
+
capabilities: agent.capabilities || [],
|
|
1230
|
+
priority: agent.priority || 'medium',
|
|
1231
|
+
}));
|
|
1232
|
+
const startTime = Date.now();
|
|
1233
|
+
const sessions = await executor.spawnParallelAgents(agentConfigs, {
|
|
1234
|
+
maxConcurrency: input.maxConcurrency || 5,
|
|
1235
|
+
batchSize: input.batchSize || 3,
|
|
1236
|
+
});
|
|
1237
|
+
const elapsedTime = Date.now() - startTime;
|
|
1238
|
+
return {
|
|
1239
|
+
success: true,
|
|
1240
|
+
agentsSpawned: sessions.size,
|
|
1241
|
+
sessions: Array.from(sessions.entries()).map(([id, session]) => ({
|
|
1242
|
+
agentId: id,
|
|
1243
|
+
sessionId: session.sessionId,
|
|
1244
|
+
status: session.status,
|
|
1245
|
+
})),
|
|
1246
|
+
performance: {
|
|
1247
|
+
totalTime: elapsedTime,
|
|
1248
|
+
averageTimePerAgent: elapsedTime / sessions.size,
|
|
1249
|
+
speedupVsSequential: `~${Math.round((sessions.size * 750) / elapsedTime)}x`,
|
|
1250
|
+
},
|
|
1251
|
+
timestamp: new Date().toISOString(),
|
|
1252
|
+
};
|
|
1253
|
+
},
|
|
1254
|
+
};
|
|
1255
|
+
}
|
|
1256
|
+
/**
|
|
1257
|
+
* NEW: Phase 4 - Real-Time Query Control
|
|
1258
|
+
* Control running queries: pause, resume, terminate, change model
|
|
1259
|
+
*/
|
|
1260
|
+
function createQueryControlTool(logger) {
|
|
1261
|
+
return {
|
|
1262
|
+
name: 'query/control',
|
|
1263
|
+
description: 'Control running queries (pause, resume, terminate, change model)',
|
|
1264
|
+
inputSchema: {
|
|
1265
|
+
type: 'object',
|
|
1266
|
+
properties: {
|
|
1267
|
+
action: {
|
|
1268
|
+
type: 'string',
|
|
1269
|
+
enum: ['pause', 'resume', 'terminate', 'change_model', 'change_permissions', 'execute_command'],
|
|
1270
|
+
description: 'Control action to perform',
|
|
1271
|
+
},
|
|
1272
|
+
queryId: {
|
|
1273
|
+
type: 'string',
|
|
1274
|
+
description: 'ID of the query to control',
|
|
1275
|
+
},
|
|
1276
|
+
model: {
|
|
1277
|
+
type: 'string',
|
|
1278
|
+
enum: ['claude-3-5-sonnet-20241022', 'claude-3-5-haiku-20241022', 'claude-3-opus-20240229'],
|
|
1279
|
+
description: 'Model to switch to (for change_model action)',
|
|
1280
|
+
},
|
|
1281
|
+
permissionMode: {
|
|
1282
|
+
type: 'string',
|
|
1283
|
+
enum: ['default', 'acceptEdits', 'bypassPermissions', 'plan'],
|
|
1284
|
+
description: 'Permission mode to switch to (for change_permissions action)',
|
|
1285
|
+
},
|
|
1286
|
+
command: {
|
|
1287
|
+
type: 'string',
|
|
1288
|
+
description: 'Command to execute (for execute_command action)',
|
|
1289
|
+
},
|
|
1290
|
+
},
|
|
1291
|
+
required: ['action', 'queryId'],
|
|
1292
|
+
},
|
|
1293
|
+
handler: async (input, context) => {
|
|
1294
|
+
logger.info('Query control action', {
|
|
1295
|
+
action: input.action,
|
|
1296
|
+
queryId: input.queryId,
|
|
1297
|
+
sessionId: context?.sessionId
|
|
1298
|
+
});
|
|
1299
|
+
if (!context?.orchestrator) {
|
|
1300
|
+
throw new Error('Orchestrator not available');
|
|
1301
|
+
}
|
|
1302
|
+
const controller = context.orchestrator.getQueryController();
|
|
1303
|
+
if (!controller) {
|
|
1304
|
+
throw new Error('RealTimeQueryController not initialized');
|
|
1305
|
+
}
|
|
1306
|
+
let result;
|
|
1307
|
+
switch (input.action) {
|
|
1308
|
+
case 'pause':
|
|
1309
|
+
result = await controller.pauseQuery(input.queryId);
|
|
1310
|
+
break;
|
|
1311
|
+
case 'resume':
|
|
1312
|
+
result = await controller.resumeQuery(input.queryId);
|
|
1313
|
+
break;
|
|
1314
|
+
case 'terminate':
|
|
1315
|
+
result = await controller.terminateQuery(input.queryId);
|
|
1316
|
+
break;
|
|
1317
|
+
case 'change_model':
|
|
1318
|
+
if (!input.model) {
|
|
1319
|
+
throw new Error('model parameter required for change_model action');
|
|
1320
|
+
}
|
|
1321
|
+
result = await controller.changeModel(input.queryId, input.model);
|
|
1322
|
+
break;
|
|
1323
|
+
case 'change_permissions':
|
|
1324
|
+
if (!input.permissionMode) {
|
|
1325
|
+
throw new Error('permissionMode parameter required for change_permissions action');
|
|
1326
|
+
}
|
|
1327
|
+
result = await controller.changePermissionMode(input.queryId, input.permissionMode);
|
|
1328
|
+
break;
|
|
1329
|
+
case 'execute_command':
|
|
1330
|
+
if (!input.command) {
|
|
1331
|
+
throw new Error('command parameter required for execute_command action');
|
|
1332
|
+
}
|
|
1333
|
+
result = await controller.executeCommand(input.queryId, input.command);
|
|
1334
|
+
break;
|
|
1335
|
+
default:
|
|
1336
|
+
throw new Error(`Unknown action: ${input.action}`);
|
|
1337
|
+
}
|
|
1338
|
+
return {
|
|
1339
|
+
success: true,
|
|
1340
|
+
action: input.action,
|
|
1341
|
+
queryId: input.queryId,
|
|
1342
|
+
result,
|
|
1343
|
+
timestamp: new Date().toISOString(),
|
|
1344
|
+
};
|
|
1345
|
+
},
|
|
1346
|
+
};
|
|
1347
|
+
}
|
|
1348
|
+
/**
|
|
1349
|
+
* NEW: Phase 4 - List Active Queries
|
|
1350
|
+
* Get status of all active queries being controlled
|
|
1351
|
+
*/
|
|
1352
|
+
function createListQueriesTool(logger) {
|
|
1353
|
+
return {
|
|
1354
|
+
name: 'query/list',
|
|
1355
|
+
description: 'List all active queries and their status',
|
|
1356
|
+
inputSchema: {
|
|
1357
|
+
type: 'object',
|
|
1358
|
+
properties: {
|
|
1359
|
+
includeHistory: {
|
|
1360
|
+
type: 'boolean',
|
|
1361
|
+
default: false,
|
|
1362
|
+
description: 'Include completed queries in the list',
|
|
1363
|
+
},
|
|
1364
|
+
},
|
|
1365
|
+
},
|
|
1366
|
+
handler: async (input, context) => {
|
|
1367
|
+
logger.info('Listing queries', { sessionId: context?.sessionId });
|
|
1368
|
+
if (!context?.orchestrator) {
|
|
1369
|
+
throw new Error('Orchestrator not available');
|
|
1370
|
+
}
|
|
1371
|
+
const controller = context.orchestrator.getQueryController();
|
|
1372
|
+
if (!controller) {
|
|
1373
|
+
throw new Error('RealTimeQueryController not initialized');
|
|
1374
|
+
}
|
|
1375
|
+
const queries = controller.getAllQueries();
|
|
1376
|
+
return {
|
|
1377
|
+
success: true,
|
|
1378
|
+
queries: Array.from(queries.entries()).map(([id, status]) => ({
|
|
1379
|
+
queryId: id,
|
|
1380
|
+
...status,
|
|
1381
|
+
})),
|
|
1382
|
+
count: queries.size,
|
|
1383
|
+
timestamp: new Date().toISOString(),
|
|
1384
|
+
};
|
|
1385
|
+
},
|
|
1386
|
+
};
|
|
1387
|
+
}
|
|
1388
|
+
function getDefaultSystemPrompt(type) {
|
|
1389
|
+
const prompts = {
|
|
1390
|
+
coordinator: 'You are a coordinator agent responsible for planning, delegating, and orchestrating tasks across multiple agents.',
|
|
1391
|
+
researcher: 'You are a research agent specialized in gathering, analyzing, and synthesizing information from various sources.',
|
|
1392
|
+
implementer: 'You are an implementation agent focused on writing code, creating solutions, and executing technical tasks.',
|
|
1393
|
+
analyst: 'You are an analysis agent that identifies patterns, generates insights, and provides data-driven recommendations.',
|
|
1394
|
+
custom: 'You are a specialized agent with custom capabilities defined by your configuration.',
|
|
1395
|
+
};
|
|
1396
|
+
return prompts[type] || prompts.custom;
|
|
1397
|
+
}
|
|
1398
|
+
//# sourceMappingURL=claude-flow-tools.js.map
|