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
|
@@ -0,0 +1,735 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enhanced Pair Programming with Working Auto-Fix
|
|
3
|
+
* This version actually applies fixes using real commands
|
|
4
|
+
*/
|
|
5
|
+
import fs from 'fs/promises';
|
|
6
|
+
import path from 'path';
|
|
7
|
+
import { spawn, exec } from 'child_process';
|
|
8
|
+
import { promisify } from 'util';
|
|
9
|
+
import readline from 'readline';
|
|
10
|
+
const execAsync = promisify(exec);
|
|
11
|
+
// Guidance mode configurations
|
|
12
|
+
const GUIDANCE_MODES = {
|
|
13
|
+
beginner: {
|
|
14
|
+
verbosity: 'high',
|
|
15
|
+
suggestions: 'frequent',
|
|
16
|
+
explanations: 'detailed',
|
|
17
|
+
autoFix: true,
|
|
18
|
+
threshold: 0.9,
|
|
19
|
+
description: 'Detailed explanations and step-by-step guidance'
|
|
20
|
+
},
|
|
21
|
+
intermediate: {
|
|
22
|
+
verbosity: 'medium',
|
|
23
|
+
suggestions: 'balanced',
|
|
24
|
+
explanations: 'concise',
|
|
25
|
+
autoFix: true,
|
|
26
|
+
threshold: 0.95,
|
|
27
|
+
description: 'Balanced guidance with key explanations'
|
|
28
|
+
},
|
|
29
|
+
expert: {
|
|
30
|
+
verbosity: 'low',
|
|
31
|
+
suggestions: 'minimal',
|
|
32
|
+
explanations: 'brief',
|
|
33
|
+
autoFix: true,
|
|
34
|
+
threshold: 0.98,
|
|
35
|
+
description: 'Minimal guidance, maximum efficiency'
|
|
36
|
+
},
|
|
37
|
+
mentor: {
|
|
38
|
+
verbosity: 'high',
|
|
39
|
+
suggestions: 'educational',
|
|
40
|
+
explanations: 'teaching',
|
|
41
|
+
autoFix: false,
|
|
42
|
+
threshold: 0.9,
|
|
43
|
+
description: 'Educational focus with learning opportunities'
|
|
44
|
+
},
|
|
45
|
+
strict: {
|
|
46
|
+
verbosity: 'medium',
|
|
47
|
+
suggestions: 'quality-focused',
|
|
48
|
+
explanations: 'standards',
|
|
49
|
+
autoFix: true,
|
|
50
|
+
threshold: 0.99,
|
|
51
|
+
description: 'Enforces highest code quality standards'
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
class WorkingPairSession {
|
|
55
|
+
constructor(options = {}) {
|
|
56
|
+
this.sessionId = `pair_${Date.now()}`;
|
|
57
|
+
this.guidanceMode = options.guidance || 'intermediate';
|
|
58
|
+
this.guidance = GUIDANCE_MODES[this.guidanceMode];
|
|
59
|
+
this.autoFix = options.autoFix ?? this.guidance.autoFix;
|
|
60
|
+
this.threshold = options.threshold || this.guidance.threshold;
|
|
61
|
+
this.maxIterations = options.maxIterations || 5;
|
|
62
|
+
this.verify = options.verify || false;
|
|
63
|
+
this.startTime = new Date();
|
|
64
|
+
this.status = 'active';
|
|
65
|
+
this.verificationScores = [];
|
|
66
|
+
this.fixHistory = [];
|
|
67
|
+
this.currentIteration = 0;
|
|
68
|
+
this.rl = null;
|
|
69
|
+
}
|
|
70
|
+
async start() {
|
|
71
|
+
await this.saveSession();
|
|
72
|
+
this.showWelcome();
|
|
73
|
+
if (this.verify && this.autoFix) {
|
|
74
|
+
console.log('\n🔄 Auto-Fix Mode Enabled');
|
|
75
|
+
console.log(' • Will automatically fix issues until threshold is met');
|
|
76
|
+
console.log(` • Maximum iterations: ${this.maxIterations}`);
|
|
77
|
+
console.log(` • Target threshold: ${this.threshold}`);
|
|
78
|
+
await this.recursiveFixLoop();
|
|
79
|
+
}
|
|
80
|
+
else if (this.verify) {
|
|
81
|
+
await this.runVerification();
|
|
82
|
+
}
|
|
83
|
+
await this.startInteractiveMode();
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Working recursive fix loop that actually applies fixes
|
|
87
|
+
*/
|
|
88
|
+
async recursiveFixLoop() {
|
|
89
|
+
console.log('\n🚀 Starting Auto-Fix Loop with Real Fixes...');
|
|
90
|
+
console.log('━'.repeat(50));
|
|
91
|
+
let score = 0;
|
|
92
|
+
this.currentIteration = 0;
|
|
93
|
+
while (score < this.threshold && this.currentIteration < this.maxIterations) {
|
|
94
|
+
this.currentIteration++;
|
|
95
|
+
console.log(`\n📍 Iteration ${this.currentIteration}/${this.maxIterations}`);
|
|
96
|
+
// Step 1: Run verification
|
|
97
|
+
const verificationResult = await this.runVerification();
|
|
98
|
+
score = verificationResult.score;
|
|
99
|
+
if (score >= this.threshold) {
|
|
100
|
+
console.log(`\n✨ Threshold met! Score: ${score.toFixed(2)} >= ${this.threshold}`);
|
|
101
|
+
break;
|
|
102
|
+
}
|
|
103
|
+
// Step 2: Apply actual fixes
|
|
104
|
+
console.log('\n🔧 Applying fixes...');
|
|
105
|
+
const fixResults = await this.applyRealFixes(verificationResult);
|
|
106
|
+
if (fixResults.applied > 0) {
|
|
107
|
+
console.log(` ✅ Applied ${fixResults.applied} fixes`);
|
|
108
|
+
this.fixHistory.push({
|
|
109
|
+
iteration: this.currentIteration,
|
|
110
|
+
fixes: fixResults.fixes,
|
|
111
|
+
timestamp: new Date()
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
// Wait before next iteration
|
|
115
|
+
await new Promise(resolve => setTimeout(resolve, 2000));
|
|
116
|
+
}
|
|
117
|
+
this.showFixSummary();
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Apply real fixes to the codebase
|
|
121
|
+
*/
|
|
122
|
+
async applyRealFixes(verificationResult) {
|
|
123
|
+
const fixResults = {
|
|
124
|
+
applied: 0,
|
|
125
|
+
fixes: []
|
|
126
|
+
};
|
|
127
|
+
// Fix linting issues
|
|
128
|
+
if (verificationResult.lintScore < 0.8) {
|
|
129
|
+
console.log(' 🔧 Fixing linting issues...');
|
|
130
|
+
try {
|
|
131
|
+
// First try auto-fix
|
|
132
|
+
const { stdout, stderr } = await execAsync('(npm run lint -- --fix) 2>&1 || true');
|
|
133
|
+
// Check if fixes were applied
|
|
134
|
+
const afterLint = await execAsync('(npm run lint) 2>&1 || true');
|
|
135
|
+
const stillHasErrors = afterLint.stdout.toLowerCase().includes('error');
|
|
136
|
+
if (!stillHasErrors || afterLint.stdout.match(/error/gi)?.length <
|
|
137
|
+
stdout.match(/error/gi)?.length) {
|
|
138
|
+
console.log(' ✅ Applied ESLint auto-fixes');
|
|
139
|
+
fixResults.applied++;
|
|
140
|
+
fixResults.fixes.push('ESLint auto-fix');
|
|
141
|
+
}
|
|
142
|
+
// If still has errors, try prettier
|
|
143
|
+
if (stillHasErrors) {
|
|
144
|
+
await execAsync('npx prettier --write "src/**/*.{js,ts,jsx,tsx}" 2>&1 || true');
|
|
145
|
+
console.log(' ✅ Applied Prettier formatting');
|
|
146
|
+
fixResults.applied++;
|
|
147
|
+
fixResults.fixes.push('Prettier formatting');
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
catch (error) {
|
|
151
|
+
console.log(' ⚠️ Some linting issues require manual fixes');
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
// Fix TypeScript issues
|
|
155
|
+
if (verificationResult.typeScore < 0.8) {
|
|
156
|
+
console.log(' 🔧 Analyzing TypeScript errors...');
|
|
157
|
+
try {
|
|
158
|
+
const { stdout: tsErrors } = await execAsync('(npm run typecheck) 2>&1 || true');
|
|
159
|
+
// Common auto-fixable TypeScript issues
|
|
160
|
+
if (tsErrors.includes('Could not find a declaration file')) {
|
|
161
|
+
console.log(' 📦 Installing missing type definitions...');
|
|
162
|
+
const missingTypes = this.extractMissingTypes(tsErrors);
|
|
163
|
+
for (const pkg of missingTypes) {
|
|
164
|
+
try {
|
|
165
|
+
await execAsync(`npm install --save-dev @types/${pkg} 2>&1 || true`);
|
|
166
|
+
console.log(` ✅ Installed @types/${pkg}`);
|
|
167
|
+
fixResults.applied++;
|
|
168
|
+
fixResults.fixes.push(`Installed @types/${pkg}`);
|
|
169
|
+
}
|
|
170
|
+
catch (e) {
|
|
171
|
+
// Type package might not exist
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
// Add basic type annotations for 'any' types
|
|
176
|
+
if (tsErrors.includes("implicitly has an 'any' type")) {
|
|
177
|
+
console.log(' 📝 Adding type annotations for implicit any...');
|
|
178
|
+
// This would need more complex AST manipulation in production
|
|
179
|
+
// For now, we'll just report it
|
|
180
|
+
console.log(' ℹ️ Manual type annotations needed');
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
catch (error) {
|
|
184
|
+
console.log(' ⚠️ TypeScript fixes require manual intervention');
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
// Fix build issues
|
|
188
|
+
if (verificationResult.buildScore < 0.8) {
|
|
189
|
+
console.log(' 🔧 Fixing build configuration...');
|
|
190
|
+
try {
|
|
191
|
+
// Clear cache and rebuild
|
|
192
|
+
await execAsync('rm -rf dist 2>&1 || true');
|
|
193
|
+
await execAsync('(npm run build) 2>&1 || true');
|
|
194
|
+
console.log(' ✅ Cleared cache and rebuilt');
|
|
195
|
+
fixResults.applied++;
|
|
196
|
+
fixResults.fixes.push('Cache clear and rebuild');
|
|
197
|
+
}
|
|
198
|
+
catch (error) {
|
|
199
|
+
console.log(' ⚠️ Build issues may require configuration changes');
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
// Fix package issues
|
|
203
|
+
console.log(' 🔧 Checking for dependency issues...');
|
|
204
|
+
try {
|
|
205
|
+
// Audit and fix vulnerabilities
|
|
206
|
+
const { stdout: auditOutput } = await execAsync('npm audit --json 2>&1 || true');
|
|
207
|
+
const audit = JSON.parse(auditOutput);
|
|
208
|
+
if (audit.metadata?.vulnerabilities?.total > 0) {
|
|
209
|
+
console.log(' 🛡️ Fixing security vulnerabilities...');
|
|
210
|
+
await execAsync('npm audit fix 2>&1 || true');
|
|
211
|
+
console.log(' ✅ Applied security fixes');
|
|
212
|
+
fixResults.applied++;
|
|
213
|
+
fixResults.fixes.push('Security vulnerability fixes');
|
|
214
|
+
}
|
|
215
|
+
// Update outdated packages (only patch/minor)
|
|
216
|
+
await execAsync('npm update 2>&1 || true');
|
|
217
|
+
console.log(' ✅ Updated dependencies');
|
|
218
|
+
fixResults.applied++;
|
|
219
|
+
fixResults.fixes.push('Dependency updates');
|
|
220
|
+
}
|
|
221
|
+
catch (error) {
|
|
222
|
+
// Audit might fail, that's okay
|
|
223
|
+
}
|
|
224
|
+
return fixResults;
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* Extract missing type packages from TypeScript errors
|
|
228
|
+
*/
|
|
229
|
+
extractMissingTypes(tsErrors) {
|
|
230
|
+
const packages = new Set();
|
|
231
|
+
const regex = /Could not find a declaration file for module '([^']+)'/g;
|
|
232
|
+
let match;
|
|
233
|
+
while ((match = regex.exec(tsErrors)) !== null) {
|
|
234
|
+
const pkg = match[1];
|
|
235
|
+
// Clean package name (remove @org/ prefix if present)
|
|
236
|
+
const cleanPkg = pkg.replace(/^@[^/]+\//, '');
|
|
237
|
+
packages.add(cleanPkg);
|
|
238
|
+
}
|
|
239
|
+
return Array.from(packages);
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* Run verification with detailed scoring
|
|
243
|
+
*/
|
|
244
|
+
async runVerification() {
|
|
245
|
+
console.log('\n🔍 Running verification check...');
|
|
246
|
+
const checks = [
|
|
247
|
+
{
|
|
248
|
+
name: 'Type Check',
|
|
249
|
+
command: '(npm run typecheck) 2>&1 || true',
|
|
250
|
+
weight: 0.4,
|
|
251
|
+
scoreKey: 'typeScore'
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
name: 'Linting',
|
|
255
|
+
command: '(npm run lint) 2>&1 || true',
|
|
256
|
+
weight: 0.3,
|
|
257
|
+
scoreKey: 'lintScore'
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
name: 'Build',
|
|
261
|
+
command: '(npm run build) 2>&1 || true',
|
|
262
|
+
weight: 0.3,
|
|
263
|
+
scoreKey: 'buildScore'
|
|
264
|
+
}
|
|
265
|
+
];
|
|
266
|
+
const results = {};
|
|
267
|
+
let totalScore = 0;
|
|
268
|
+
let totalWeight = 0;
|
|
269
|
+
for (const check of checks) {
|
|
270
|
+
try {
|
|
271
|
+
const { stdout, stderr } = await execAsync(check.command);
|
|
272
|
+
const output = stdout + stderr;
|
|
273
|
+
// Calculate score based on actual errors/warnings
|
|
274
|
+
let score = 1.0;
|
|
275
|
+
const errorCount = (output.match(/error/gi) || []).length;
|
|
276
|
+
const warningCount = (output.match(/warning/gi) || []).length;
|
|
277
|
+
if (errorCount > 0) {
|
|
278
|
+
score = Math.max(0.2, 1.0 - (errorCount * 0.1));
|
|
279
|
+
}
|
|
280
|
+
else if (warningCount > 0) {
|
|
281
|
+
score = Math.max(0.7, 1.0 - (warningCount * 0.05));
|
|
282
|
+
}
|
|
283
|
+
results[check.scoreKey] = score;
|
|
284
|
+
totalScore += score * check.weight;
|
|
285
|
+
totalWeight += check.weight;
|
|
286
|
+
const icon = score >= 0.8 ? '✅' : score >= 0.5 ? '⚠️' : '❌';
|
|
287
|
+
console.log(` ${icon} ${check.name}: ${score.toFixed(2)}`);
|
|
288
|
+
}
|
|
289
|
+
catch (error) {
|
|
290
|
+
console.log(` ❌ ${check.name}: 0.00 (failed)`);
|
|
291
|
+
results[check.scoreKey] = 0;
|
|
292
|
+
totalWeight += check.weight;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
const averageScore = totalWeight > 0 ? totalScore / totalWeight : 0;
|
|
296
|
+
console.log(`\n📊 Verification Score: ${averageScore.toFixed(2)}/${this.threshold}`);
|
|
297
|
+
if (this.guidanceMode === 'beginner' && averageScore < this.threshold) {
|
|
298
|
+
console.log('\n💡 Don\'t worry! Use /autofix to automatically improve the score');
|
|
299
|
+
}
|
|
300
|
+
const verificationResult = {
|
|
301
|
+
score: averageScore,
|
|
302
|
+
...results,
|
|
303
|
+
timestamp: new Date(),
|
|
304
|
+
iteration: this.currentIteration
|
|
305
|
+
};
|
|
306
|
+
this.verificationScores.push(verificationResult);
|
|
307
|
+
return verificationResult;
|
|
308
|
+
}
|
|
309
|
+
showWelcome() {
|
|
310
|
+
console.log('\n🚀 Enhanced Pair Programming Session');
|
|
311
|
+
console.log('━'.repeat(50));
|
|
312
|
+
console.log(`Session ID: ${this.sessionId}`);
|
|
313
|
+
console.log(`Guidance Mode: ${this.guidanceMode.charAt(0).toUpperCase() + this.guidanceMode.slice(1)}`);
|
|
314
|
+
console.log(`Description: ${this.guidance.description}`);
|
|
315
|
+
console.log(`Verification: ${this.verify ? '✅ Enabled' : '❌ Disabled'}`);
|
|
316
|
+
console.log(`Auto-Fix: ${this.autoFix ? '✅ Enabled' : '❌ Disabled'}`);
|
|
317
|
+
console.log(`Target Threshold: ${this.threshold}`);
|
|
318
|
+
console.log('━'.repeat(50));
|
|
319
|
+
if (this.guidanceMode === 'beginner') {
|
|
320
|
+
console.log('\n📚 Guidance Settings:');
|
|
321
|
+
console.log(` • Mode: ${this.guidanceMode.charAt(0).toUpperCase() + this.guidanceMode.slice(1)}`);
|
|
322
|
+
console.log(` • Verbosity: ${this.guidance.verbosity}`);
|
|
323
|
+
console.log(` • Suggestions: ${this.guidance.suggestions}`);
|
|
324
|
+
console.log(` • Explanations: ${this.guidance.explanations}`);
|
|
325
|
+
console.log('\n💡 Beginner Tips:');
|
|
326
|
+
console.log(' • Use /explain for detailed explanations');
|
|
327
|
+
console.log(' • Use /pattern to see design patterns');
|
|
328
|
+
console.log(' • Use /best for best practices');
|
|
329
|
+
console.log(' • Use /why to understand decisions');
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
showFixSummary() {
|
|
333
|
+
if (this.fixHistory.length > 0) {
|
|
334
|
+
console.log('\n📋 Fix Summary:');
|
|
335
|
+
console.log('━'.repeat(50));
|
|
336
|
+
let totalFixes = 0;
|
|
337
|
+
for (const entry of this.fixHistory) {
|
|
338
|
+
console.log(`\nIteration ${entry.iteration}:`);
|
|
339
|
+
for (const fix of entry.fixes) {
|
|
340
|
+
console.log(` ✅ ${fix}`);
|
|
341
|
+
totalFixes++;
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
console.log('━'.repeat(50));
|
|
345
|
+
console.log(`Total fixes applied: ${totalFixes}`);
|
|
346
|
+
console.log(`Iterations completed: ${this.currentIteration}`);
|
|
347
|
+
if (this.verificationScores.length > 1) {
|
|
348
|
+
const first = this.verificationScores[0].score;
|
|
349
|
+
const last = this.verificationScores[this.verificationScores.length - 1].score;
|
|
350
|
+
const improvement = ((last - first) * 100).toFixed(1);
|
|
351
|
+
if (improvement > 0) {
|
|
352
|
+
console.log(`Score improvement: +${improvement}%`);
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
async startInteractiveMode() {
|
|
358
|
+
this.rl = readline.createInterface({
|
|
359
|
+
input: process.stdin,
|
|
360
|
+
output: process.stdout,
|
|
361
|
+
prompt: '\n💻 pair> '
|
|
362
|
+
});
|
|
363
|
+
console.log('\n💡 Interactive mode active. Type /help for commands.\n');
|
|
364
|
+
this.showCommands();
|
|
365
|
+
this.rl.prompt();
|
|
366
|
+
this.rl.on('line', async (line) => {
|
|
367
|
+
const input = line.trim();
|
|
368
|
+
if (input.startsWith('/')) {
|
|
369
|
+
await this.handleCommand(input);
|
|
370
|
+
}
|
|
371
|
+
else if (input.startsWith('?')) {
|
|
372
|
+
await this.askQuestion(input.slice(1).trim());
|
|
373
|
+
}
|
|
374
|
+
else if (input) {
|
|
375
|
+
console.log('🤖 Processing your input...');
|
|
376
|
+
}
|
|
377
|
+
this.rl.prompt();
|
|
378
|
+
});
|
|
379
|
+
this.rl.on('close', () => {
|
|
380
|
+
this.end();
|
|
381
|
+
});
|
|
382
|
+
}
|
|
383
|
+
showCommands() {
|
|
384
|
+
console.log('\n📝 Session Commands:');
|
|
385
|
+
console.log(' /help - Show all commands');
|
|
386
|
+
console.log(' /verify - Run verification');
|
|
387
|
+
console.log(' /autofix - Start auto-fix loop');
|
|
388
|
+
console.log(' /suggest - Get suggestions');
|
|
389
|
+
console.log(' /explain <topic> - Explain concept');
|
|
390
|
+
console.log(' /best <area> - Show best practices');
|
|
391
|
+
console.log(' /pattern - Pattern suggestions');
|
|
392
|
+
console.log(' /why - Explain decisions');
|
|
393
|
+
console.log(' /status - Session status');
|
|
394
|
+
console.log(' /metrics - Quality metrics');
|
|
395
|
+
console.log(' /guidance - Change guidance mode');
|
|
396
|
+
console.log(' /test - Run tests');
|
|
397
|
+
console.log(' /commit - Commit with verification');
|
|
398
|
+
console.log(' /end - End session');
|
|
399
|
+
if (this.guidanceMode === 'beginner') {
|
|
400
|
+
console.log('\n💡 Quick tips:');
|
|
401
|
+
console.log(' • Type ? followed by question for Q&A');
|
|
402
|
+
console.log(' • Use Tab for command completion');
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
async handleCommand(command) {
|
|
406
|
+
const [cmd, ...args] = command.split(' ');
|
|
407
|
+
switch (cmd) {
|
|
408
|
+
case '/help':
|
|
409
|
+
this.showCommands();
|
|
410
|
+
break;
|
|
411
|
+
case '/verify':
|
|
412
|
+
await this.runVerification();
|
|
413
|
+
break;
|
|
414
|
+
case '/autofix':
|
|
415
|
+
await this.recursiveFixLoop();
|
|
416
|
+
break;
|
|
417
|
+
case '/suggest':
|
|
418
|
+
await this.showSuggestions();
|
|
419
|
+
break;
|
|
420
|
+
case '/explain':
|
|
421
|
+
await this.explainConcept(args.join(' '));
|
|
422
|
+
break;
|
|
423
|
+
case '/best':
|
|
424
|
+
this.showBestPractices(args[0] || 'general');
|
|
425
|
+
break;
|
|
426
|
+
case '/pattern':
|
|
427
|
+
this.showPatternSuggestions();
|
|
428
|
+
break;
|
|
429
|
+
case '/why':
|
|
430
|
+
this.explainDecisions();
|
|
431
|
+
break;
|
|
432
|
+
case '/status':
|
|
433
|
+
await this.showStatus();
|
|
434
|
+
break;
|
|
435
|
+
case '/metrics':
|
|
436
|
+
this.showMetrics();
|
|
437
|
+
break;
|
|
438
|
+
case '/guidance':
|
|
439
|
+
await this.changeGuidanceMode(args[0]);
|
|
440
|
+
break;
|
|
441
|
+
case '/test':
|
|
442
|
+
await this.runTests();
|
|
443
|
+
break;
|
|
444
|
+
case '/commit':
|
|
445
|
+
await this.commitWithVerification();
|
|
446
|
+
break;
|
|
447
|
+
case '/end':
|
|
448
|
+
case '/exit':
|
|
449
|
+
await this.end();
|
|
450
|
+
process.exit(0);
|
|
451
|
+
break;
|
|
452
|
+
default:
|
|
453
|
+
console.log(`❌ Unknown command: ${cmd}`);
|
|
454
|
+
console.log('💡 Type /help for available commands');
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
async showSuggestions() {
|
|
458
|
+
console.log('\n💡 Analyzing for suggestions...');
|
|
459
|
+
// Get latest verification scores
|
|
460
|
+
let latestScore = null;
|
|
461
|
+
if (this.verificationScores.length > 0) {
|
|
462
|
+
latestScore = this.verificationScores[this.verificationScores.length - 1];
|
|
463
|
+
}
|
|
464
|
+
else {
|
|
465
|
+
latestScore = await this.runVerification();
|
|
466
|
+
}
|
|
467
|
+
console.log('\n📝 Immediate Actions:');
|
|
468
|
+
if (latestScore.lintScore < 0.8) {
|
|
469
|
+
console.log(' 1. Fix linting issues: Run /autofix or npm run lint --fix');
|
|
470
|
+
}
|
|
471
|
+
if (latestScore.typeScore < 0.8) {
|
|
472
|
+
console.log(' 2. Fix TypeScript errors: Check npm run typecheck output');
|
|
473
|
+
}
|
|
474
|
+
if (latestScore.buildScore < 0.8) {
|
|
475
|
+
console.log(' 3. Fix build issues: Clear cache and rebuild');
|
|
476
|
+
}
|
|
477
|
+
if (latestScore.score >= this.threshold) {
|
|
478
|
+
console.log(' ✨ Code quality meets threshold! Consider adding tests or documentation.');
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
async explainConcept(topic) {
|
|
482
|
+
if (!topic) {
|
|
483
|
+
console.log('Usage: /explain <topic>');
|
|
484
|
+
return;
|
|
485
|
+
}
|
|
486
|
+
console.log(`\n📚 Explaining: ${topic}`);
|
|
487
|
+
console.log('━'.repeat(40));
|
|
488
|
+
// Provide explanations based on common topics
|
|
489
|
+
const explanations = {
|
|
490
|
+
'typescript': 'TypeScript adds static typing to JavaScript, catching errors at compile time.',
|
|
491
|
+
'linting': 'Linting analyzes code for potential errors and style issues.',
|
|
492
|
+
'testing': 'Tests verify your code works as expected and prevent regressions.',
|
|
493
|
+
'async': 'Async/await provides cleaner syntax for handling promises.',
|
|
494
|
+
'hooks': 'React hooks allow using state in functional components.'
|
|
495
|
+
};
|
|
496
|
+
const explanation = explanations[topic.toLowerCase()];
|
|
497
|
+
if (explanation) {
|
|
498
|
+
console.log(explanation);
|
|
499
|
+
}
|
|
500
|
+
else {
|
|
501
|
+
console.log('Topic not found. Try: typescript, linting, testing, async, hooks');
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
showBestPractices(area) {
|
|
505
|
+
console.log(`\n📚 Best Practices for ${area}:`);
|
|
506
|
+
console.log('━'.repeat(40));
|
|
507
|
+
const practices = {
|
|
508
|
+
general: [
|
|
509
|
+
'• Write self-documenting code',
|
|
510
|
+
'• Keep functions small and focused',
|
|
511
|
+
'• Use meaningful variable names',
|
|
512
|
+
'• Handle errors properly',
|
|
513
|
+
'• Write tests for critical paths'
|
|
514
|
+
],
|
|
515
|
+
testing: [
|
|
516
|
+
'• Test behavior, not implementation',
|
|
517
|
+
'• Use descriptive test names',
|
|
518
|
+
'• Follow AAA pattern',
|
|
519
|
+
'• Mock external dependencies',
|
|
520
|
+
'• Test edge cases'
|
|
521
|
+
]
|
|
522
|
+
};
|
|
523
|
+
const selected = practices[area] || practices.general;
|
|
524
|
+
selected.forEach(p => console.log(p));
|
|
525
|
+
}
|
|
526
|
+
showPatternSuggestions() {
|
|
527
|
+
console.log('\n🏗️ Recommended Design Patterns:');
|
|
528
|
+
console.log('━'.repeat(40));
|
|
529
|
+
console.log('• Singleton - One instance throughout app');
|
|
530
|
+
console.log('• Factory - Create objects without specifying class');
|
|
531
|
+
console.log('• Observer - Subscribe to and notify changes');
|
|
532
|
+
console.log('• Strategy - Encapsulate algorithms');
|
|
533
|
+
console.log('• Decorator - Add functionality to objects');
|
|
534
|
+
}
|
|
535
|
+
explainDecisions() {
|
|
536
|
+
console.log('\n🤔 Decision Rationale:');
|
|
537
|
+
console.log('━'.repeat(40));
|
|
538
|
+
console.log('Auto-fix decisions are based on:');
|
|
539
|
+
console.log('• Industry best practices');
|
|
540
|
+
console.log('• Code maintainability');
|
|
541
|
+
console.log('• Performance optimization');
|
|
542
|
+
console.log('• Security considerations');
|
|
543
|
+
console.log('• Team consistency');
|
|
544
|
+
}
|
|
545
|
+
async showStatus() {
|
|
546
|
+
const duration = Math.floor((Date.now() - this.startTime) / 1000 / 60);
|
|
547
|
+
console.log('\n📊 Session Status');
|
|
548
|
+
console.log('━'.repeat(40));
|
|
549
|
+
console.log(`Session ID: ${this.sessionId}`);
|
|
550
|
+
console.log(`Duration: ${duration} minutes`);
|
|
551
|
+
console.log(`Guidance Mode: ${this.guidanceMode}`);
|
|
552
|
+
console.log(`Auto-Fix: ${this.autoFix ? 'Enabled' : 'Disabled'}`);
|
|
553
|
+
console.log(`Fix Iterations: ${this.currentIteration}`);
|
|
554
|
+
console.log(`Total Fixes Applied: ${this.fixHistory.reduce((sum, h) => sum + h.fixes.length, 0)}`);
|
|
555
|
+
if (this.verificationScores.length > 0) {
|
|
556
|
+
const latest = this.verificationScores[this.verificationScores.length - 1];
|
|
557
|
+
console.log(`Latest Score: ${latest.score.toFixed(2)}`);
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
showMetrics() {
|
|
561
|
+
console.log('\n📈 Quality Metrics');
|
|
562
|
+
console.log('━'.repeat(40));
|
|
563
|
+
if (this.verificationScores.length > 0) {
|
|
564
|
+
console.log('\nScore Progression:');
|
|
565
|
+
this.verificationScores.forEach((v, i) => {
|
|
566
|
+
const bar = '█'.repeat(Math.floor(v.score * 20));
|
|
567
|
+
console.log(` ${i + 1}. ${bar} ${v.score.toFixed(2)}`);
|
|
568
|
+
});
|
|
569
|
+
if (this.verificationScores.length > 1) {
|
|
570
|
+
const first = this.verificationScores[0].score;
|
|
571
|
+
const last = this.verificationScores[this.verificationScores.length - 1].score;
|
|
572
|
+
const improvement = ((last - first) * 100).toFixed(1);
|
|
573
|
+
if (improvement > 0) {
|
|
574
|
+
console.log(`\n Improvement: +${improvement}%`);
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
async changeGuidanceMode(newMode) {
|
|
580
|
+
if (!newMode || !GUIDANCE_MODES[newMode]) {
|
|
581
|
+
console.log('Available modes: beginner, intermediate, expert, mentor, strict');
|
|
582
|
+
return;
|
|
583
|
+
}
|
|
584
|
+
this.guidanceMode = newMode;
|
|
585
|
+
this.guidance = GUIDANCE_MODES[newMode];
|
|
586
|
+
console.log(`✅ Guidance mode changed to: ${newMode}`);
|
|
587
|
+
console.log(`Description: ${this.guidance.description}`);
|
|
588
|
+
}
|
|
589
|
+
async askQuestion(question) {
|
|
590
|
+
console.log('\n❓ Question:', question);
|
|
591
|
+
console.log('\n📚 Answer:');
|
|
592
|
+
console.log('━'.repeat(40));
|
|
593
|
+
// Provide contextual answers
|
|
594
|
+
if (question.toLowerCase().includes('why')) {
|
|
595
|
+
console.log('This is important for code quality and maintainability.');
|
|
596
|
+
}
|
|
597
|
+
else if (question.toLowerCase().includes('how')) {
|
|
598
|
+
console.log('You can achieve this by following the suggested approach.');
|
|
599
|
+
}
|
|
600
|
+
else {
|
|
601
|
+
console.log('That\'s a great question! Consider exploring the documentation.');
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
async runTests() {
|
|
605
|
+
console.log('\n🧪 Running tests...');
|
|
606
|
+
try {
|
|
607
|
+
const { stdout } = await execAsync('npm test 2>&1 || true');
|
|
608
|
+
const passed = !stdout.toLowerCase().includes('fail');
|
|
609
|
+
console.log(` ${passed ? '✅' : '❌'} Tests ${passed ? 'passed' : 'failed'}`);
|
|
610
|
+
return passed;
|
|
611
|
+
}
|
|
612
|
+
catch (error) {
|
|
613
|
+
console.log(' ❌ Test execution failed:', error.message);
|
|
614
|
+
return false;
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
async commitWithVerification() {
|
|
618
|
+
const result = await this.runVerification();
|
|
619
|
+
if (result.score >= this.threshold) {
|
|
620
|
+
console.log('✅ Verification passed! Ready to commit.');
|
|
621
|
+
console.log('\n📝 Suggested commit message:');
|
|
622
|
+
console.log(` "feat: improved code quality to ${result.score.toFixed(2)} threshold"`);
|
|
623
|
+
}
|
|
624
|
+
else {
|
|
625
|
+
console.log('❌ Verification failed!');
|
|
626
|
+
console.log('💡 Run /autofix to automatically fix issues');
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
async end() {
|
|
630
|
+
console.log('\n🛑 Ending pair programming session...');
|
|
631
|
+
if (this.rl)
|
|
632
|
+
this.rl.close();
|
|
633
|
+
this.status = 'completed';
|
|
634
|
+
await this.saveSession();
|
|
635
|
+
const duration = Math.floor((Date.now() - this.startTime) / 1000 / 60);
|
|
636
|
+
console.log('\n✨ Session Complete!');
|
|
637
|
+
console.log('━'.repeat(40));
|
|
638
|
+
console.log(`Duration: ${duration} minutes`);
|
|
639
|
+
console.log(`Total Fixes Applied: ${this.fixHistory.reduce((sum, h) => sum + h.fixes.length, 0)}`);
|
|
640
|
+
console.log(`Final Iterations: ${this.currentIteration}`);
|
|
641
|
+
if (this.verificationScores.length > 0) {
|
|
642
|
+
const final = this.verificationScores[this.verificationScores.length - 1];
|
|
643
|
+
console.log(`Final Score: ${final.score.toFixed(2)}`);
|
|
644
|
+
}
|
|
645
|
+
console.log('\n👋 Thanks for pair programming!\n');
|
|
646
|
+
}
|
|
647
|
+
async saveSession() {
|
|
648
|
+
const sessionPath = '.claude-flow/sessions/pair';
|
|
649
|
+
await fs.mkdir(sessionPath, { recursive: true });
|
|
650
|
+
const sessionData = {
|
|
651
|
+
id: this.sessionId,
|
|
652
|
+
guidanceMode: this.guidanceMode,
|
|
653
|
+
autoFix: this.autoFix,
|
|
654
|
+
threshold: this.threshold,
|
|
655
|
+
startTime: this.startTime.toISOString(),
|
|
656
|
+
status: this.status,
|
|
657
|
+
verificationScores: this.verificationScores,
|
|
658
|
+
fixHistory: this.fixHistory,
|
|
659
|
+
iterations: this.currentIteration
|
|
660
|
+
};
|
|
661
|
+
await fs.writeFile(path.join(sessionPath, `${this.sessionId}.json`), JSON.stringify(sessionData, null, 2));
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
async function pairCommand(args = [], flags = {}) {
|
|
665
|
+
console.log('\n👥 Enhanced Pair Programming');
|
|
666
|
+
console.log('━'.repeat(50));
|
|
667
|
+
if (flags.help || args.includes('--help')) {
|
|
668
|
+
showHelp();
|
|
669
|
+
return;
|
|
670
|
+
}
|
|
671
|
+
if (flags.start) {
|
|
672
|
+
const session = new WorkingPairSession({
|
|
673
|
+
guidance: flags.guidance || 'intermediate',
|
|
674
|
+
verify: flags.verify || false,
|
|
675
|
+
autoFix: flags.autofix || flags.fix || false,
|
|
676
|
+
threshold: parseFloat(flags.threshold) || undefined,
|
|
677
|
+
maxIterations: parseInt(flags.iterations) || 5
|
|
678
|
+
});
|
|
679
|
+
return await session.start();
|
|
680
|
+
}
|
|
681
|
+
showHelp();
|
|
682
|
+
}
|
|
683
|
+
function showHelp() {
|
|
684
|
+
console.log(`
|
|
685
|
+
📚 USAGE:
|
|
686
|
+
claude-flow pair [options]
|
|
687
|
+
|
|
688
|
+
⚙️ OPTIONS:
|
|
689
|
+
--start Start a new pair programming session
|
|
690
|
+
--guidance <mode> Set guidance mode (beginner, intermediate, expert, mentor, strict)
|
|
691
|
+
--verify Enable verification
|
|
692
|
+
--autofix, --fix Enable auto-fix with real fixes
|
|
693
|
+
--threshold <n> Target verification threshold
|
|
694
|
+
--iterations <n> Max fix iterations
|
|
695
|
+
--help Show this help message
|
|
696
|
+
|
|
697
|
+
🎯 GUIDANCE MODES:
|
|
698
|
+
beginner - Detailed explanations and step-by-step guidance
|
|
699
|
+
intermediate - Balanced guidance with key explanations
|
|
700
|
+
expert - Minimal guidance, maximum efficiency
|
|
701
|
+
mentor - Educational focus with learning opportunities
|
|
702
|
+
strict - Enforces highest code quality standards
|
|
703
|
+
|
|
704
|
+
🔄 AUTO-FIX FEATURES:
|
|
705
|
+
• Real ESLint auto-fixes
|
|
706
|
+
• Prettier formatting
|
|
707
|
+
• Missing type definitions installation
|
|
708
|
+
• Security vulnerability fixes
|
|
709
|
+
• Dependency updates
|
|
710
|
+
• Cache clearing and rebuilding
|
|
711
|
+
|
|
712
|
+
💡 EXAMPLES:
|
|
713
|
+
# Beginner mode with auto-fix
|
|
714
|
+
claude-flow pair --start --guidance beginner --verify --autofix
|
|
715
|
+
|
|
716
|
+
# Expert mode with high threshold
|
|
717
|
+
claude-flow pair --start --guidance expert --verify --autofix --threshold 0.98
|
|
718
|
+
|
|
719
|
+
# Mentor mode (educational, no auto-fix)
|
|
720
|
+
claude-flow pair --start --guidance mentor --verify
|
|
721
|
+
|
|
722
|
+
📊 DURING SESSION:
|
|
723
|
+
/verify - Manual verification
|
|
724
|
+
/autofix - Start auto-fix loop
|
|
725
|
+
/suggest - Get improvement suggestions
|
|
726
|
+
/guidance - Change guidance mode
|
|
727
|
+
/metrics - Show quality metrics
|
|
728
|
+
/status - Current session status
|
|
729
|
+
|
|
730
|
+
📚 For detailed documentation, see:
|
|
731
|
+
.claude/commands/pair/README.md
|
|
732
|
+
`);
|
|
733
|
+
}
|
|
734
|
+
export default pairCommand;
|
|
735
|
+
//# sourceMappingURL=pair.js.map
|