claude-flow 2.7.0-alpha.13 → 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/docs/skills-tutorial.md +1218 -0
- package/package.json +1 -1
- package/src/cli/simple-commands/process-ui-enhanced.js +1 -1
- package/src/cli/simple-commands/status.js +1 -1
package/dist/cli/repl.js
ADDED
|
@@ -0,0 +1,949 @@
|
|
|
1
|
+
import { promises as fs } from 'node:fs';
|
|
2
|
+
/**
|
|
3
|
+
* Enhanced Interactive REPL for Claude-Flow
|
|
4
|
+
*/
|
|
5
|
+
import inquirer from 'inquirer';
|
|
6
|
+
import chalk from 'chalk';
|
|
7
|
+
import Table from 'cli-table3';
|
|
8
|
+
import { generateId } from '../utils/helpers.js';
|
|
9
|
+
import { formatStatusIndicator, formatDuration, formatProgressBar } from './formatter.js';
|
|
10
|
+
class CommandHistory {
|
|
11
|
+
history = [];
|
|
12
|
+
maxSize = 1000;
|
|
13
|
+
historyFile;
|
|
14
|
+
constructor(historyFile) {
|
|
15
|
+
this.historyFile = historyFile || '.claude-flow-history';
|
|
16
|
+
this.loadHistory();
|
|
17
|
+
}
|
|
18
|
+
add(command) {
|
|
19
|
+
if (command.trim() && command !== this.history[this.history.length - 1]) {
|
|
20
|
+
this.history.push(command);
|
|
21
|
+
if (this.history.length > this.maxSize) {
|
|
22
|
+
this.history = this.history.slice(-this.maxSize);
|
|
23
|
+
}
|
|
24
|
+
this.saveHistory();
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
get() {
|
|
28
|
+
return [...this.history];
|
|
29
|
+
}
|
|
30
|
+
search(query) {
|
|
31
|
+
return this.history.filter((cmd) => cmd.includes(query));
|
|
32
|
+
}
|
|
33
|
+
async loadHistory() {
|
|
34
|
+
try {
|
|
35
|
+
const content = await fs.readFile(this.historyFile, 'utf-8');
|
|
36
|
+
this.history = content.split('\n').filter((line) => line.trim());
|
|
37
|
+
}
|
|
38
|
+
catch {
|
|
39
|
+
// History file doesn't exist yet
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
async saveHistory() {
|
|
43
|
+
try {
|
|
44
|
+
await fs.writeFile(this.historyFile, this.history.join('\n'));
|
|
45
|
+
}
|
|
46
|
+
catch {
|
|
47
|
+
// Ignore save errors
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
class CommandCompleter {
|
|
52
|
+
commands = new Map();
|
|
53
|
+
setCommands(commands) {
|
|
54
|
+
this.commands.clear();
|
|
55
|
+
for (const cmd of commands) {
|
|
56
|
+
this.commands.set(cmd.name, cmd);
|
|
57
|
+
if (cmd.aliases) {
|
|
58
|
+
for (const alias of cmd.aliases) {
|
|
59
|
+
this.commands.set(alias, cmd);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
complete(input) {
|
|
65
|
+
const parts = input.trim().split(/\s+/);
|
|
66
|
+
if (parts.length === 1) {
|
|
67
|
+
// Complete command names
|
|
68
|
+
const prefix = parts[0];
|
|
69
|
+
return Array.from(this.commands.keys())
|
|
70
|
+
.filter((name) => name.startsWith(prefix))
|
|
71
|
+
.sort();
|
|
72
|
+
}
|
|
73
|
+
// Complete subcommands and arguments
|
|
74
|
+
const commandName = parts[0];
|
|
75
|
+
const command = this.commands.get(commandName);
|
|
76
|
+
if (command) {
|
|
77
|
+
return this.completeForCommand(command, parts.slice(1));
|
|
78
|
+
}
|
|
79
|
+
return [];
|
|
80
|
+
}
|
|
81
|
+
completeForCommand(command, args) {
|
|
82
|
+
// Basic completion for known commands
|
|
83
|
+
switch (command.name) {
|
|
84
|
+
case 'agent':
|
|
85
|
+
if (args.length === 1) {
|
|
86
|
+
return ['spawn', 'list', 'terminate', 'info'].filter((sub) => sub.startsWith(args[0]));
|
|
87
|
+
}
|
|
88
|
+
if (args[0] === 'spawn' && args.length === 2) {
|
|
89
|
+
return ['coordinator', 'researcher', 'implementer', 'analyst', 'custom'].filter((type) => type.startsWith(args[1]));
|
|
90
|
+
}
|
|
91
|
+
break;
|
|
92
|
+
case 'task':
|
|
93
|
+
if (args.length === 1) {
|
|
94
|
+
return ['create', 'list', 'status', 'cancel', 'workflow'].filter((sub) => sub.startsWith(args[0]));
|
|
95
|
+
}
|
|
96
|
+
if (args[0] === 'create' && args.length === 2) {
|
|
97
|
+
return ['research', 'implementation', 'analysis', 'coordination'].filter((type) => type.startsWith(args[1]));
|
|
98
|
+
}
|
|
99
|
+
break;
|
|
100
|
+
case 'session':
|
|
101
|
+
if (args.length === 1) {
|
|
102
|
+
return ['list', 'save', 'restore', 'delete', 'export', 'import'].filter((sub) => sub.startsWith(args[0]));
|
|
103
|
+
}
|
|
104
|
+
break;
|
|
105
|
+
case 'workflow':
|
|
106
|
+
if (args.length === 1) {
|
|
107
|
+
return ['run', 'validate', 'list', 'status', 'stop', 'template'].filter((sub) => sub.startsWith(args[0]));
|
|
108
|
+
}
|
|
109
|
+
break;
|
|
110
|
+
}
|
|
111
|
+
return [];
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Start the enhanced interactive REPL
|
|
116
|
+
*/
|
|
117
|
+
export async function startREPL(options = {}) {
|
|
118
|
+
const context = {
|
|
119
|
+
options,
|
|
120
|
+
history: [],
|
|
121
|
+
workingDirectory: process.cwd(),
|
|
122
|
+
connectionStatus: 'disconnected',
|
|
123
|
+
lastActivity: new Date(),
|
|
124
|
+
};
|
|
125
|
+
const history = new CommandHistory(options.historyFile);
|
|
126
|
+
const completer = new CommandCompleter();
|
|
127
|
+
const commands = [
|
|
128
|
+
{
|
|
129
|
+
name: 'help',
|
|
130
|
+
aliases: ['h', '?'],
|
|
131
|
+
description: 'Show available commands or help for a specific command',
|
|
132
|
+
usage: 'help [command]',
|
|
133
|
+
examples: ['help', 'help agent', 'help task create'],
|
|
134
|
+
handler: async (args) => {
|
|
135
|
+
if (args.length === 0) {
|
|
136
|
+
showHelp(commands);
|
|
137
|
+
}
|
|
138
|
+
else {
|
|
139
|
+
showCommandHelp(commands, args[0]);
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
name: 'status',
|
|
145
|
+
aliases: ['st'],
|
|
146
|
+
description: 'Show system status and connection info',
|
|
147
|
+
usage: 'status [component]',
|
|
148
|
+
examples: ['status', 'status orchestrator'],
|
|
149
|
+
handler: async (args, ctx) => {
|
|
150
|
+
await showSystemStatus(ctx, args[0]);
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
name: 'connect',
|
|
155
|
+
aliases: ['conn'],
|
|
156
|
+
description: 'Connect to Claude-Flow orchestrator',
|
|
157
|
+
usage: 'connect [host:port]',
|
|
158
|
+
examples: ['connect', 'connect localhost:3000'],
|
|
159
|
+
handler: async (args, ctx) => {
|
|
160
|
+
await connectToOrchestrator(ctx, args[0]);
|
|
161
|
+
},
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
name: 'agent',
|
|
165
|
+
description: 'Agent management (spawn, list, terminate, info)',
|
|
166
|
+
usage: 'agent <subcommand> [options]',
|
|
167
|
+
examples: [
|
|
168
|
+
'agent list',
|
|
169
|
+
'agent spawn researcher --name "Research Agent"',
|
|
170
|
+
'agent info agent-001',
|
|
171
|
+
'agent terminate agent-001',
|
|
172
|
+
],
|
|
173
|
+
handler: async (args, ctx) => {
|
|
174
|
+
await handleAgentCommand(args, ctx);
|
|
175
|
+
},
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
name: 'task',
|
|
179
|
+
description: 'Task management (create, list, status, cancel)',
|
|
180
|
+
usage: 'task <subcommand> [options]',
|
|
181
|
+
examples: [
|
|
182
|
+
'task list',
|
|
183
|
+
'task create research "Find quantum computing papers"',
|
|
184
|
+
'task status task-001',
|
|
185
|
+
'task cancel task-001',
|
|
186
|
+
],
|
|
187
|
+
handler: async (args, ctx) => {
|
|
188
|
+
await handleTaskCommand(args, ctx);
|
|
189
|
+
},
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
name: 'memory',
|
|
193
|
+
description: 'Memory operations (query, stats, export)',
|
|
194
|
+
usage: 'memory <subcommand> [options]',
|
|
195
|
+
examples: ['memory stats', 'memory query --agent agent-001', 'memory export memory.json'],
|
|
196
|
+
handler: async (args, ctx) => {
|
|
197
|
+
await handleMemoryCommand(args, ctx);
|
|
198
|
+
},
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
name: 'session',
|
|
202
|
+
description: 'Session management (save, restore, list)',
|
|
203
|
+
usage: 'session <subcommand> [options]',
|
|
204
|
+
examples: [
|
|
205
|
+
'session list',
|
|
206
|
+
'session save "Development Session"',
|
|
207
|
+
'session restore session-001',
|
|
208
|
+
],
|
|
209
|
+
handler: async (args, ctx) => {
|
|
210
|
+
await handleSessionCommand(args, ctx);
|
|
211
|
+
},
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
name: 'workflow',
|
|
215
|
+
description: 'Workflow operations (run, list, status)',
|
|
216
|
+
usage: 'workflow <subcommand> [options]',
|
|
217
|
+
examples: ['workflow list', 'workflow run workflow.json', 'workflow status workflow-001'],
|
|
218
|
+
handler: async (args, ctx) => {
|
|
219
|
+
await handleWorkflowCommand(args, ctx);
|
|
220
|
+
},
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
name: 'monitor',
|
|
224
|
+
aliases: ['mon'],
|
|
225
|
+
description: 'Start monitoring mode',
|
|
226
|
+
usage: 'monitor [--interval seconds]',
|
|
227
|
+
examples: ['monitor', 'monitor --interval 5'],
|
|
228
|
+
handler: async (args) => {
|
|
229
|
+
console.log(chalk.cyan('Starting monitor mode...'));
|
|
230
|
+
console.log(chalk.gray('(This would start the live dashboard)'));
|
|
231
|
+
},
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
name: 'history',
|
|
235
|
+
aliases: ['hist'],
|
|
236
|
+
description: 'Show command history',
|
|
237
|
+
usage: 'history [--search query]',
|
|
238
|
+
examples: ['history', 'history --search agent'],
|
|
239
|
+
handler: async (args) => {
|
|
240
|
+
const searchQuery = args.indexOf('--search') >= 0 ? args[args.indexOf('--search') + 1] : null;
|
|
241
|
+
const historyItems = searchQuery ? history.search(searchQuery) : history.get();
|
|
242
|
+
console.log(chalk.cyan.bold(`Command History${searchQuery ? ` (search: ${searchQuery})` : ''}`));
|
|
243
|
+
console.log('─'.repeat(50));
|
|
244
|
+
if (historyItems.length === 0) {
|
|
245
|
+
console.log(chalk.gray('No commands in history'));
|
|
246
|
+
return;
|
|
247
|
+
}
|
|
248
|
+
const recent = historyItems.slice(-20); // Show last 20
|
|
249
|
+
recent.forEach((cmd, i) => {
|
|
250
|
+
const lineNumber = historyItems.length - recent.length + i + 1;
|
|
251
|
+
console.log(`${chalk.gray(lineNumber.toString().padStart(3))} ${cmd}`);
|
|
252
|
+
});
|
|
253
|
+
},
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
name: 'clear',
|
|
257
|
+
aliases: ['cls'],
|
|
258
|
+
description: 'Clear the screen',
|
|
259
|
+
handler: async () => {
|
|
260
|
+
console.clear();
|
|
261
|
+
},
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
name: 'cd',
|
|
265
|
+
description: 'Change working directory',
|
|
266
|
+
usage: 'cd <directory>',
|
|
267
|
+
examples: ['cd /path/to/project', 'cd ..'],
|
|
268
|
+
handler: async (args, ctx) => {
|
|
269
|
+
if (args.length === 0) {
|
|
270
|
+
console.log(ctx.workingDirectory);
|
|
271
|
+
return;
|
|
272
|
+
}
|
|
273
|
+
try {
|
|
274
|
+
const newDir = args[0] === '~' ? process.env['HOME'] || '/' : args[0];
|
|
275
|
+
process.chdir(newDir);
|
|
276
|
+
ctx.workingDirectory = process.cwd();
|
|
277
|
+
console.log(chalk.gray(`Changed to: ${ctx.workingDirectory}`));
|
|
278
|
+
}
|
|
279
|
+
catch (error) {
|
|
280
|
+
console.error(chalk.red('Error:'), error instanceof Error ? error.message : String(error));
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
name: 'pwd',
|
|
286
|
+
description: 'Print working directory',
|
|
287
|
+
handler: async (_, ctx) => {
|
|
288
|
+
console.log(ctx.workingDirectory);
|
|
289
|
+
},
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
name: 'echo',
|
|
293
|
+
description: 'Echo arguments',
|
|
294
|
+
usage: 'echo <text>',
|
|
295
|
+
examples: ['echo "Hello, world!"'],
|
|
296
|
+
handler: async (args) => {
|
|
297
|
+
console.log(args.join(' '));
|
|
298
|
+
},
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
name: 'exit',
|
|
302
|
+
aliases: ['quit', 'q'],
|
|
303
|
+
description: 'Exit the REPL',
|
|
304
|
+
handler: async () => {
|
|
305
|
+
console.log(chalk.gray('Goodbye!'));
|
|
306
|
+
process.exit(0);
|
|
307
|
+
},
|
|
308
|
+
},
|
|
309
|
+
];
|
|
310
|
+
// Set up command completion
|
|
311
|
+
completer.setCommands(commands);
|
|
312
|
+
// Show initial status
|
|
313
|
+
if (!options.quiet) {
|
|
314
|
+
await showSystemStatus(context);
|
|
315
|
+
console.log(chalk.gray('Type "help" for available commands or "exit" to quit.\n'));
|
|
316
|
+
}
|
|
317
|
+
// Main REPL loop
|
|
318
|
+
while (true) {
|
|
319
|
+
try {
|
|
320
|
+
const promptString = createPrompt(context);
|
|
321
|
+
const { input } = await inquirer.prompt([
|
|
322
|
+
{
|
|
323
|
+
type: 'input',
|
|
324
|
+
name: 'input',
|
|
325
|
+
message: promptString,
|
|
326
|
+
transformer: (input) => input,
|
|
327
|
+
},
|
|
328
|
+
]);
|
|
329
|
+
if (!input.trim()) {
|
|
330
|
+
continue;
|
|
331
|
+
}
|
|
332
|
+
// Add to history
|
|
333
|
+
history.add(input);
|
|
334
|
+
context.history.push(input);
|
|
335
|
+
context.lastActivity = new Date();
|
|
336
|
+
// Parse command
|
|
337
|
+
const args = parseCommand(input);
|
|
338
|
+
const [commandName, ...commandArgs] = args;
|
|
339
|
+
// Find and execute command
|
|
340
|
+
const command = commands.find((c) => c.name === commandName || (c.aliases && c.aliases.includes(commandName)));
|
|
341
|
+
if (command) {
|
|
342
|
+
try {
|
|
343
|
+
await command.handler(commandArgs, context);
|
|
344
|
+
}
|
|
345
|
+
catch (error) {
|
|
346
|
+
console.error(chalk.red('Command failed:'), error instanceof Error ? error.message : String(error));
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
else {
|
|
350
|
+
console.log(chalk.red(`Unknown command: ${commandName}`));
|
|
351
|
+
console.log(chalk.gray('Type "help" for available commands'));
|
|
352
|
+
// Suggest similar commands
|
|
353
|
+
const suggestions = findSimilarCommands(commandName, commands);
|
|
354
|
+
if (suggestions.length > 0) {
|
|
355
|
+
console.log(chalk.gray('Did you mean:'), suggestions.map((s) => chalk.cyan(s)).join(', '));
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
catch (error) {
|
|
360
|
+
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
361
|
+
if (errorMessage.includes('EOF') || errorMessage.includes('interrupted')) {
|
|
362
|
+
// Ctrl+D or Ctrl+C pressed
|
|
363
|
+
console.log('\n' + chalk.gray('Goodbye!'));
|
|
364
|
+
break;
|
|
365
|
+
}
|
|
366
|
+
console.error(chalk.red('REPL Error:'), errorMessage);
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
function createPrompt(context) {
|
|
371
|
+
const statusIcon = getConnectionStatusIcon(context.connectionStatus);
|
|
372
|
+
const dir = context.workingDirectory.split('/').pop() || '/';
|
|
373
|
+
return `${statusIcon} ${chalk.cyan('claude-flow')}:${chalk.yellow(dir)}${chalk.white('>')} `;
|
|
374
|
+
}
|
|
375
|
+
function getConnectionStatusIcon(status) {
|
|
376
|
+
switch (status) {
|
|
377
|
+
case 'connected':
|
|
378
|
+
return chalk.green('●');
|
|
379
|
+
case 'connecting':
|
|
380
|
+
return chalk.yellow('◐');
|
|
381
|
+
case 'disconnected':
|
|
382
|
+
return chalk.red('○');
|
|
383
|
+
default:
|
|
384
|
+
return chalk.gray('?');
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
function parseCommand(input) {
|
|
388
|
+
// Simple command parsing - handle quoted strings
|
|
389
|
+
const args = [];
|
|
390
|
+
let current = '';
|
|
391
|
+
let inQuotes = false;
|
|
392
|
+
let quoteChar = '';
|
|
393
|
+
for (let i = 0; i < input.length; i++) {
|
|
394
|
+
const char = input[i];
|
|
395
|
+
if (inQuotes) {
|
|
396
|
+
if (char === quoteChar) {
|
|
397
|
+
inQuotes = false;
|
|
398
|
+
quoteChar = '';
|
|
399
|
+
}
|
|
400
|
+
else {
|
|
401
|
+
current += char;
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
else {
|
|
405
|
+
if (char === '"' || char === "'") {
|
|
406
|
+
inQuotes = true;
|
|
407
|
+
quoteChar = char;
|
|
408
|
+
}
|
|
409
|
+
else if (char === ' ' || char === '\t') {
|
|
410
|
+
if (current.trim()) {
|
|
411
|
+
args.push(current.trim());
|
|
412
|
+
current = '';
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
else {
|
|
416
|
+
current += char;
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
if (current.trim()) {
|
|
421
|
+
args.push(current.trim());
|
|
422
|
+
}
|
|
423
|
+
return args;
|
|
424
|
+
}
|
|
425
|
+
function showHelp(commands) {
|
|
426
|
+
console.log(chalk.cyan.bold('Claude-Flow Interactive REPL'));
|
|
427
|
+
console.log('─'.repeat(50));
|
|
428
|
+
console.log();
|
|
429
|
+
console.log(chalk.white.bold('Available Commands:'));
|
|
430
|
+
console.log();
|
|
431
|
+
const table = new Table({
|
|
432
|
+
head: ['Command', 'Aliases', 'Description'],
|
|
433
|
+
style: { 'padding-left': 0, 'padding-right': 1, border: [] },
|
|
434
|
+
});
|
|
435
|
+
for (const cmd of commands) {
|
|
436
|
+
table.push([
|
|
437
|
+
chalk.cyan(cmd.name),
|
|
438
|
+
cmd.aliases ? chalk.gray(cmd.aliases.join(', ')) : '',
|
|
439
|
+
cmd.description,
|
|
440
|
+
]);
|
|
441
|
+
}
|
|
442
|
+
console.log(table.toString());
|
|
443
|
+
console.log();
|
|
444
|
+
console.log(chalk.gray('Tips:'));
|
|
445
|
+
console.log(chalk.gray('• Use TAB for command completion'));
|
|
446
|
+
console.log(chalk.gray('• Use "help <command>" for detailed help'));
|
|
447
|
+
console.log(chalk.gray('• Use UP/DOWN arrows for command history'));
|
|
448
|
+
console.log(chalk.gray('• Use Ctrl+C or "exit" to quit'));
|
|
449
|
+
}
|
|
450
|
+
function showCommandHelp(commands, commandName) {
|
|
451
|
+
const command = commands.find((c) => c.name === commandName || (c.aliases && c.aliases.includes(commandName)));
|
|
452
|
+
if (!command) {
|
|
453
|
+
console.log(chalk.red(`Unknown command: ${commandName}`));
|
|
454
|
+
return;
|
|
455
|
+
}
|
|
456
|
+
console.log(chalk.cyan.bold(`Command: ${command.name}`));
|
|
457
|
+
console.log('─'.repeat(30));
|
|
458
|
+
console.log(`${chalk.white('Description:')} ${command.description}`);
|
|
459
|
+
if (command.aliases) {
|
|
460
|
+
console.log(`${chalk.white('Aliases:')} ${command.aliases.join(', ')}`);
|
|
461
|
+
}
|
|
462
|
+
if (command.usage) {
|
|
463
|
+
console.log(`${chalk.white('Usage:')} ${command.usage}`);
|
|
464
|
+
}
|
|
465
|
+
if (command.examples) {
|
|
466
|
+
console.log();
|
|
467
|
+
console.log(chalk.white.bold('Examples:'));
|
|
468
|
+
for (const example of command.examples) {
|
|
469
|
+
console.log(` ${chalk.gray('$')} ${chalk.cyan(example)}`);
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
async function showSystemStatus(context, component) {
|
|
474
|
+
console.log(chalk.cyan.bold('System Status'));
|
|
475
|
+
console.log('─'.repeat(30));
|
|
476
|
+
const statusIcon = formatStatusIndicator(context.connectionStatus === 'connected' ? 'success' : 'error');
|
|
477
|
+
console.log(`${statusIcon} Connection: ${context.connectionStatus}`);
|
|
478
|
+
console.log(`${chalk.white('Working Directory:')} ${context.workingDirectory}`);
|
|
479
|
+
console.log(`${chalk.white('Last Activity:')} ${context.lastActivity.toLocaleTimeString()}`);
|
|
480
|
+
if (context.currentSession) {
|
|
481
|
+
console.log(`${chalk.white('Current Session:')} ${context.currentSession}`);
|
|
482
|
+
}
|
|
483
|
+
console.log(`${chalk.white('Commands in History:')} ${context.history.length}`);
|
|
484
|
+
if (context.connectionStatus === 'disconnected') {
|
|
485
|
+
console.log();
|
|
486
|
+
console.log(chalk.yellow('⚠ Not connected to orchestrator'));
|
|
487
|
+
console.log(chalk.gray('Use "connect" command to establish connection'));
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
async function connectToOrchestrator(context, target) {
|
|
491
|
+
const host = target || 'localhost:3000';
|
|
492
|
+
console.log(chalk.yellow(`Connecting to ${host}...`));
|
|
493
|
+
context.connectionStatus = 'connecting';
|
|
494
|
+
// Mock connection attempt
|
|
495
|
+
await new Promise((resolve) => setTimeout(resolve, 1000));
|
|
496
|
+
// Simulate connection result
|
|
497
|
+
const success = Math.random() > 0.3; // 70% success rate
|
|
498
|
+
if (success) {
|
|
499
|
+
context.connectionStatus = 'connected';
|
|
500
|
+
console.log(chalk.green('✓ Connected successfully'));
|
|
501
|
+
}
|
|
502
|
+
else {
|
|
503
|
+
context.connectionStatus = 'disconnected';
|
|
504
|
+
console.log(chalk.red('✗ Connection failed'));
|
|
505
|
+
console.log(chalk.gray('Make sure Claude-Flow is running with: claude-flow start'));
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
async function handleAgentCommand(args, context) {
|
|
509
|
+
if (context.connectionStatus !== 'connected') {
|
|
510
|
+
console.log(chalk.yellow('⚠ Not connected to orchestrator'));
|
|
511
|
+
console.log(chalk.gray('Use "connect" to establish connection first'));
|
|
512
|
+
return;
|
|
513
|
+
}
|
|
514
|
+
if (args.length === 0) {
|
|
515
|
+
console.log(chalk.gray('Usage: agent <spawn|list|terminate|info> [options]'));
|
|
516
|
+
return;
|
|
517
|
+
}
|
|
518
|
+
const subcommand = args[0];
|
|
519
|
+
switch (subcommand) {
|
|
520
|
+
case 'list':
|
|
521
|
+
await showAgentList();
|
|
522
|
+
break;
|
|
523
|
+
case 'spawn':
|
|
524
|
+
await handleAgentSpawn(args.slice(1));
|
|
525
|
+
break;
|
|
526
|
+
case 'terminate':
|
|
527
|
+
if (args.length < 2) {
|
|
528
|
+
console.log(chalk.red('Please specify agent ID'));
|
|
529
|
+
}
|
|
530
|
+
else {
|
|
531
|
+
await handleAgentTerminate(args[1]);
|
|
532
|
+
}
|
|
533
|
+
break;
|
|
534
|
+
case 'info':
|
|
535
|
+
if (args.length < 2) {
|
|
536
|
+
console.log(chalk.red('Please specify agent ID'));
|
|
537
|
+
}
|
|
538
|
+
else {
|
|
539
|
+
await showAgentInfo(args[1]);
|
|
540
|
+
}
|
|
541
|
+
break;
|
|
542
|
+
default:
|
|
543
|
+
console.log(chalk.red(`Unknown agent subcommand: ${subcommand}`));
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
async function showAgentList() {
|
|
547
|
+
// Mock agent data
|
|
548
|
+
const agents = [
|
|
549
|
+
{ id: 'agent-001', name: 'Coordinator', type: 'coordinator', status: 'active', tasks: 2 },
|
|
550
|
+
{ id: 'agent-002', name: 'Researcher', type: 'researcher', status: 'active', tasks: 5 },
|
|
551
|
+
{ id: 'agent-003', name: 'Implementer', type: 'implementer', status: 'idle', tasks: 0 },
|
|
552
|
+
];
|
|
553
|
+
console.log(chalk.cyan.bold(`Active Agents (${agents.length})`));
|
|
554
|
+
console.log('─'.repeat(50));
|
|
555
|
+
const table = new Table({
|
|
556
|
+
head: ['ID', 'Name', 'Type', 'Status', 'Tasks'],
|
|
557
|
+
});
|
|
558
|
+
for (const agent of agents) {
|
|
559
|
+
const statusIcon = formatStatusIndicator(agent.status);
|
|
560
|
+
table.push([
|
|
561
|
+
chalk.gray(agent.id),
|
|
562
|
+
chalk.white(agent.name),
|
|
563
|
+
chalk.cyan(agent.type),
|
|
564
|
+
`${statusIcon} ${agent.status}`,
|
|
565
|
+
agent.tasks.toString(),
|
|
566
|
+
]);
|
|
567
|
+
}
|
|
568
|
+
console.log(table.toString());
|
|
569
|
+
}
|
|
570
|
+
async function handleAgentSpawn(args) {
|
|
571
|
+
if (args.length === 0) {
|
|
572
|
+
console.log(chalk.gray('Usage: agent spawn <type> [name]'));
|
|
573
|
+
console.log(chalk.gray('Types: coordinator, researcher, implementer, analyst, custom'));
|
|
574
|
+
return;
|
|
575
|
+
}
|
|
576
|
+
const type = args[0];
|
|
577
|
+
const name = args[1] ||
|
|
578
|
+
(await inquirer.prompt([
|
|
579
|
+
{
|
|
580
|
+
type: 'input',
|
|
581
|
+
name: 'name',
|
|
582
|
+
message: 'Agent name:',
|
|
583
|
+
default: `${type}-agent`,
|
|
584
|
+
},
|
|
585
|
+
])).name;
|
|
586
|
+
console.log(chalk.yellow('Spawning agent...'));
|
|
587
|
+
// Mock spawning
|
|
588
|
+
await new Promise((resolve) => setTimeout(resolve, 1000));
|
|
589
|
+
const agentId = generateId('agent');
|
|
590
|
+
console.log(chalk.green('✓ Agent spawned successfully'));
|
|
591
|
+
console.log(`${chalk.white('ID:')} ${agentId}`);
|
|
592
|
+
console.log(`${chalk.white('Name:')} ${name}`);
|
|
593
|
+
console.log(`${chalk.white('Type:')} ${type}`);
|
|
594
|
+
}
|
|
595
|
+
async function handleAgentTerminate(agentId) {
|
|
596
|
+
const { confirmed } = await inquirer.prompt([
|
|
597
|
+
{
|
|
598
|
+
type: 'confirm',
|
|
599
|
+
name: 'confirmed',
|
|
600
|
+
message: `Terminate agent ${agentId}?`,
|
|
601
|
+
default: false,
|
|
602
|
+
},
|
|
603
|
+
]);
|
|
604
|
+
if (!confirmed) {
|
|
605
|
+
console.log(chalk.gray('Termination cancelled'));
|
|
606
|
+
return;
|
|
607
|
+
}
|
|
608
|
+
console.log(chalk.yellow('Terminating agent...'));
|
|
609
|
+
await new Promise((resolve) => setTimeout(resolve, 500));
|
|
610
|
+
console.log(chalk.green('✓ Agent terminated'));
|
|
611
|
+
}
|
|
612
|
+
async function showAgentInfo(agentId) {
|
|
613
|
+
// Mock agent info
|
|
614
|
+
console.log(chalk.cyan.bold('Agent Information'));
|
|
615
|
+
console.log('─'.repeat(30));
|
|
616
|
+
console.log(`${chalk.white('ID:')} ${agentId}`);
|
|
617
|
+
console.log(`${chalk.white('Name:')} Research Agent`);
|
|
618
|
+
console.log(`${chalk.white('Type:')} researcher`);
|
|
619
|
+
console.log(`${chalk.white('Status:')} ${formatStatusIndicator('success')} active`);
|
|
620
|
+
console.log(`${chalk.white('Uptime:')} ${formatDuration(3600000)}`);
|
|
621
|
+
console.log(`${chalk.white('Active Tasks:')} 3`);
|
|
622
|
+
console.log(`${chalk.white('Completed Tasks:')} 12`);
|
|
623
|
+
}
|
|
624
|
+
async function handleTaskCommand(args, context) {
|
|
625
|
+
if (context.connectionStatus !== 'connected') {
|
|
626
|
+
console.log(chalk.yellow('⚠ Not connected to orchestrator'));
|
|
627
|
+
return;
|
|
628
|
+
}
|
|
629
|
+
if (args.length === 0) {
|
|
630
|
+
console.log(chalk.gray('Usage: task <create|list|status|cancel> [options]'));
|
|
631
|
+
return;
|
|
632
|
+
}
|
|
633
|
+
const subcommand = args[0];
|
|
634
|
+
switch (subcommand) {
|
|
635
|
+
case 'list':
|
|
636
|
+
await showTaskList();
|
|
637
|
+
break;
|
|
638
|
+
case 'create':
|
|
639
|
+
await handleTaskCreate(args.slice(1));
|
|
640
|
+
break;
|
|
641
|
+
case 'status':
|
|
642
|
+
if (args.length < 2) {
|
|
643
|
+
console.log(chalk.red('Please specify task ID'));
|
|
644
|
+
}
|
|
645
|
+
else {
|
|
646
|
+
await showTaskStatus(args[1]);
|
|
647
|
+
}
|
|
648
|
+
break;
|
|
649
|
+
case 'cancel':
|
|
650
|
+
if (args.length < 2) {
|
|
651
|
+
console.log(chalk.red('Please specify task ID'));
|
|
652
|
+
}
|
|
653
|
+
else {
|
|
654
|
+
await handleTaskCancel(args[1]);
|
|
655
|
+
}
|
|
656
|
+
break;
|
|
657
|
+
default:
|
|
658
|
+
console.log(chalk.red(`Unknown task subcommand: ${subcommand}`));
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
async function showTaskList() {
|
|
662
|
+
// Mock task data
|
|
663
|
+
const tasks = [
|
|
664
|
+
{
|
|
665
|
+
id: 'task-001',
|
|
666
|
+
type: 'research',
|
|
667
|
+
description: 'Research quantum computing',
|
|
668
|
+
status: 'running',
|
|
669
|
+
agent: 'agent-002',
|
|
670
|
+
},
|
|
671
|
+
{
|
|
672
|
+
id: 'task-002',
|
|
673
|
+
type: 'analysis',
|
|
674
|
+
description: 'Analyze research results',
|
|
675
|
+
status: 'pending',
|
|
676
|
+
agent: null,
|
|
677
|
+
},
|
|
678
|
+
{
|
|
679
|
+
id: 'task-003',
|
|
680
|
+
type: 'implementation',
|
|
681
|
+
description: 'Implement solution',
|
|
682
|
+
status: 'completed',
|
|
683
|
+
agent: 'agent-003',
|
|
684
|
+
},
|
|
685
|
+
];
|
|
686
|
+
console.log(chalk.cyan.bold(`Tasks (${tasks.length})`));
|
|
687
|
+
console.log('─'.repeat(60));
|
|
688
|
+
const table = new Table({
|
|
689
|
+
head: ['ID', 'Type', 'Description', 'Status', 'Agent'],
|
|
690
|
+
});
|
|
691
|
+
for (const task of tasks) {
|
|
692
|
+
const statusIcon = formatStatusIndicator(task.status);
|
|
693
|
+
table.push([
|
|
694
|
+
chalk.gray(task.id),
|
|
695
|
+
chalk.white(task.type),
|
|
696
|
+
task.description.substring(0, 30) + (task.description.length > 30 ? '...' : ''),
|
|
697
|
+
`${statusIcon} ${task.status}`,
|
|
698
|
+
task.agent ? chalk.cyan(task.agent) : '-',
|
|
699
|
+
]);
|
|
700
|
+
}
|
|
701
|
+
console.log(table.toString());
|
|
702
|
+
}
|
|
703
|
+
async function handleTaskCreate(args) {
|
|
704
|
+
if (args.length < 2) {
|
|
705
|
+
console.log(chalk.gray('Usage: task create <type> <description>'));
|
|
706
|
+
return;
|
|
707
|
+
}
|
|
708
|
+
const type = args[0];
|
|
709
|
+
const description = args.slice(1).join(' ');
|
|
710
|
+
console.log(chalk.yellow('Creating task...'));
|
|
711
|
+
await new Promise((resolve) => setTimeout(resolve, 500));
|
|
712
|
+
const taskId = generateId('task');
|
|
713
|
+
console.log(chalk.green('✓ Task created successfully'));
|
|
714
|
+
console.log(`${chalk.white('ID:')} ${taskId}`);
|
|
715
|
+
console.log(`${chalk.white('Type:')} ${type}`);
|
|
716
|
+
console.log(`${chalk.white('Description:')} ${description}`);
|
|
717
|
+
}
|
|
718
|
+
async function showTaskStatus(taskId) {
|
|
719
|
+
console.log(chalk.cyan.bold('Task Status'));
|
|
720
|
+
console.log('─'.repeat(30));
|
|
721
|
+
console.log(`${chalk.white('ID:')} ${taskId}`);
|
|
722
|
+
console.log(`${chalk.white('Type:')} research`);
|
|
723
|
+
console.log(`${chalk.white('Status:')} ${formatStatusIndicator('running')} running`);
|
|
724
|
+
console.log(`${chalk.white('Progress:')} ${formatProgressBar(65, 100, 20)} 65%`);
|
|
725
|
+
console.log(`${chalk.white('Agent:')} agent-002`);
|
|
726
|
+
console.log(`${chalk.white('Started:')} ${new Date().toLocaleTimeString()}`);
|
|
727
|
+
}
|
|
728
|
+
async function handleTaskCancel(taskId) {
|
|
729
|
+
const { confirmed } = await inquirer.prompt([
|
|
730
|
+
{
|
|
731
|
+
type: 'confirm',
|
|
732
|
+
name: 'confirmed',
|
|
733
|
+
message: `Cancel task ${taskId}?`,
|
|
734
|
+
default: false,
|
|
735
|
+
},
|
|
736
|
+
]);
|
|
737
|
+
if (!confirmed) {
|
|
738
|
+
console.log(chalk.gray('Cancellation cancelled'));
|
|
739
|
+
return;
|
|
740
|
+
}
|
|
741
|
+
console.log(chalk.yellow('Cancelling task...'));
|
|
742
|
+
await new Promise((resolve) => setTimeout(resolve, 500));
|
|
743
|
+
console.log(chalk.green('✓ Task cancelled'));
|
|
744
|
+
}
|
|
745
|
+
async function handleMemoryCommand(args, context) {
|
|
746
|
+
if (context.connectionStatus !== 'connected') {
|
|
747
|
+
console.log(chalk.yellow('⚠ Not connected to orchestrator'));
|
|
748
|
+
return;
|
|
749
|
+
}
|
|
750
|
+
if (args.length === 0) {
|
|
751
|
+
console.log(chalk.gray('Usage: memory <query|stats|export> [options]'));
|
|
752
|
+
return;
|
|
753
|
+
}
|
|
754
|
+
const subcommand = args[0];
|
|
755
|
+
switch (subcommand) {
|
|
756
|
+
case 'stats':
|
|
757
|
+
await showMemoryStats();
|
|
758
|
+
break;
|
|
759
|
+
case 'query':
|
|
760
|
+
console.log(chalk.yellow('Memory query functionality not yet implemented in REPL'));
|
|
761
|
+
break;
|
|
762
|
+
case 'export':
|
|
763
|
+
console.log(chalk.yellow('Memory export functionality not yet implemented in REPL'));
|
|
764
|
+
break;
|
|
765
|
+
default:
|
|
766
|
+
console.log(chalk.red(`Unknown memory subcommand: ${subcommand}`));
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
async function showMemoryStats() {
|
|
770
|
+
console.log(chalk.cyan.bold('Memory Statistics'));
|
|
771
|
+
console.log('─'.repeat(30));
|
|
772
|
+
console.log(`${chalk.white('Total Entries:')} 1,247`);
|
|
773
|
+
console.log(`${chalk.white('Cache Size:')} 95 MB`);
|
|
774
|
+
console.log(`${chalk.white('Hit Rate:')} 94.2%`);
|
|
775
|
+
console.log(`${chalk.white('Backend:')} SQLite + Markdown`);
|
|
776
|
+
}
|
|
777
|
+
async function handleSessionCommand(args, context) {
|
|
778
|
+
if (args.length === 0) {
|
|
779
|
+
console.log(chalk.gray('Usage: session <list|save|restore> [options]'));
|
|
780
|
+
return;
|
|
781
|
+
}
|
|
782
|
+
const subcommand = args[0];
|
|
783
|
+
switch (subcommand) {
|
|
784
|
+
case 'list':
|
|
785
|
+
await showSessionList();
|
|
786
|
+
break;
|
|
787
|
+
case 'save':
|
|
788
|
+
await handleSessionSave(args.slice(1));
|
|
789
|
+
break;
|
|
790
|
+
case 'restore':
|
|
791
|
+
if (args.length < 2) {
|
|
792
|
+
console.log(chalk.red('Please specify session ID'));
|
|
793
|
+
}
|
|
794
|
+
else {
|
|
795
|
+
await handleSessionRestore(args[1]);
|
|
796
|
+
}
|
|
797
|
+
break;
|
|
798
|
+
default:
|
|
799
|
+
console.log(chalk.red(`Unknown session subcommand: ${subcommand}`));
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
async function showSessionList() {
|
|
803
|
+
// Mock session data
|
|
804
|
+
const sessions = [
|
|
805
|
+
{ id: 'session-001', name: 'Research Project', date: '2024-01-15', agents: 3, tasks: 8 },
|
|
806
|
+
{ id: 'session-002', name: 'Development', date: '2024-01-14', agents: 2, tasks: 5 },
|
|
807
|
+
];
|
|
808
|
+
console.log(chalk.cyan.bold(`Saved Sessions (${sessions.length})`));
|
|
809
|
+
console.log('─'.repeat(50));
|
|
810
|
+
const table = new Table({
|
|
811
|
+
head: ['ID', 'Name', 'Date', 'Agents', 'Tasks'],
|
|
812
|
+
});
|
|
813
|
+
for (const session of sessions) {
|
|
814
|
+
table.push([
|
|
815
|
+
chalk.gray(session.id),
|
|
816
|
+
chalk.white(session.name),
|
|
817
|
+
session.date,
|
|
818
|
+
session.agents.toString(),
|
|
819
|
+
session.tasks.toString(),
|
|
820
|
+
]);
|
|
821
|
+
}
|
|
822
|
+
console.log(table.toString());
|
|
823
|
+
}
|
|
824
|
+
async function handleSessionSave(args) {
|
|
825
|
+
const name = args.length > 0
|
|
826
|
+
? args.join(' ')
|
|
827
|
+
: (await inquirer.prompt([
|
|
828
|
+
{
|
|
829
|
+
type: 'input',
|
|
830
|
+
name: 'name',
|
|
831
|
+
message: 'Session name:',
|
|
832
|
+
default: `session-${new Date().toISOString().split('T')[0]}`,
|
|
833
|
+
},
|
|
834
|
+
])).name;
|
|
835
|
+
console.log(chalk.yellow('Saving session...'));
|
|
836
|
+
await new Promise((resolve) => setTimeout(resolve, 1000));
|
|
837
|
+
const sessionId = generateId('session');
|
|
838
|
+
console.log(chalk.green('✓ Session saved successfully'));
|
|
839
|
+
console.log(`${chalk.white('ID:')} ${sessionId}`);
|
|
840
|
+
console.log(`${chalk.white('Name:')} ${name}`);
|
|
841
|
+
}
|
|
842
|
+
async function handleSessionRestore(sessionId) {
|
|
843
|
+
const { confirmed } = await inquirer.prompt([
|
|
844
|
+
{
|
|
845
|
+
type: 'confirm',
|
|
846
|
+
name: 'confirmed',
|
|
847
|
+
message: `Restore session ${sessionId}?`,
|
|
848
|
+
default: false,
|
|
849
|
+
},
|
|
850
|
+
]);
|
|
851
|
+
if (!confirmed) {
|
|
852
|
+
console.log(chalk.gray('Restore cancelled'));
|
|
853
|
+
return;
|
|
854
|
+
}
|
|
855
|
+
console.log(chalk.yellow('Restoring session...'));
|
|
856
|
+
await new Promise((resolve) => setTimeout(resolve, 1500));
|
|
857
|
+
console.log(chalk.green('✓ Session restored successfully'));
|
|
858
|
+
}
|
|
859
|
+
async function handleWorkflowCommand(args, context) {
|
|
860
|
+
if (context.connectionStatus !== 'connected') {
|
|
861
|
+
console.log(chalk.yellow('⚠ Not connected to orchestrator'));
|
|
862
|
+
return;
|
|
863
|
+
}
|
|
864
|
+
if (args.length === 0) {
|
|
865
|
+
console.log(chalk.gray('Usage: workflow <list|run|status> [options]'));
|
|
866
|
+
return;
|
|
867
|
+
}
|
|
868
|
+
const subcommand = args[0];
|
|
869
|
+
switch (subcommand) {
|
|
870
|
+
case 'list':
|
|
871
|
+
await showWorkflowList();
|
|
872
|
+
break;
|
|
873
|
+
case 'run':
|
|
874
|
+
if (args.length < 2) {
|
|
875
|
+
console.log(chalk.red('Please specify workflow file'));
|
|
876
|
+
}
|
|
877
|
+
else {
|
|
878
|
+
await handleWorkflowRun(args[1]);
|
|
879
|
+
}
|
|
880
|
+
break;
|
|
881
|
+
case 'status':
|
|
882
|
+
if (args.length < 2) {
|
|
883
|
+
console.log(chalk.red('Please specify workflow ID'));
|
|
884
|
+
}
|
|
885
|
+
else {
|
|
886
|
+
await showWorkflowStatus(args[1]);
|
|
887
|
+
}
|
|
888
|
+
break;
|
|
889
|
+
default:
|
|
890
|
+
console.log(chalk.red(`Unknown workflow subcommand: ${subcommand}`));
|
|
891
|
+
}
|
|
892
|
+
}
|
|
893
|
+
async function showWorkflowList() {
|
|
894
|
+
// Mock workflow data
|
|
895
|
+
const workflows = [
|
|
896
|
+
{ id: 'workflow-001', name: 'Research Pipeline', status: 'running', progress: 60 },
|
|
897
|
+
{ id: 'workflow-002', name: 'Data Analysis', status: 'completed', progress: 100 },
|
|
898
|
+
];
|
|
899
|
+
console.log(chalk.cyan.bold(`Workflows (${workflows.length})`));
|
|
900
|
+
console.log('─'.repeat(50));
|
|
901
|
+
const table = new Table({
|
|
902
|
+
head: ['ID', 'Name', 'Status', 'Progress'],
|
|
903
|
+
});
|
|
904
|
+
for (const workflow of workflows) {
|
|
905
|
+
const statusIcon = formatStatusIndicator(workflow.status);
|
|
906
|
+
const progressBar = formatProgressBar(workflow.progress, 100, 15);
|
|
907
|
+
table.push([
|
|
908
|
+
chalk.gray(workflow.id),
|
|
909
|
+
chalk.white(workflow.name),
|
|
910
|
+
`${statusIcon} ${workflow.status}`,
|
|
911
|
+
`${progressBar} ${workflow.progress}%`,
|
|
912
|
+
]);
|
|
913
|
+
}
|
|
914
|
+
console.log(table.toString());
|
|
915
|
+
}
|
|
916
|
+
async function handleWorkflowRun(filename) {
|
|
917
|
+
try {
|
|
918
|
+
await fs.stat(filename);
|
|
919
|
+
console.log(chalk.yellow(`Running workflow: ${filename}`));
|
|
920
|
+
await new Promise((resolve) => setTimeout(resolve, 1000));
|
|
921
|
+
const workflowId = generateId('workflow');
|
|
922
|
+
console.log(chalk.green('✓ Workflow started successfully'));
|
|
923
|
+
console.log(`${chalk.white('ID:')} ${workflowId}`);
|
|
924
|
+
}
|
|
925
|
+
catch {
|
|
926
|
+
console.log(chalk.red(`Workflow file not found: ${filename}`));
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
async function showWorkflowStatus(workflowId) {
|
|
930
|
+
console.log(chalk.cyan.bold('Workflow Status'));
|
|
931
|
+
console.log('─'.repeat(30));
|
|
932
|
+
console.log(`${chalk.white('ID:')} ${workflowId}`);
|
|
933
|
+
console.log(`${chalk.white('Name:')} Research Pipeline`);
|
|
934
|
+
console.log(`${chalk.white('Status:')} ${formatStatusIndicator('running')} running`);
|
|
935
|
+
console.log(`${chalk.white('Progress:')} ${formatProgressBar(75, 100, 20)} 75%`);
|
|
936
|
+
console.log(`${chalk.white('Tasks:')} 6/8 completed`);
|
|
937
|
+
console.log(`${chalk.white('Started:')} ${new Date().toLocaleTimeString()}`);
|
|
938
|
+
}
|
|
939
|
+
function findSimilarCommands(input, commands) {
|
|
940
|
+
const allNames = commands.flatMap((c) => [c.name, ...(c.aliases || [])]);
|
|
941
|
+
return allNames
|
|
942
|
+
.filter((name) => {
|
|
943
|
+
// Simple similarity check - could use Levenshtein distance
|
|
944
|
+
const commonChars = input.split('').filter((char) => name.includes(char)).length;
|
|
945
|
+
return commonChars >= Math.min(2, input.length / 2);
|
|
946
|
+
})
|
|
947
|
+
.slice(0, 3); // Top 3 suggestions
|
|
948
|
+
}
|
|
949
|
+
//# sourceMappingURL=repl.js.map
|