claude-flow 2.7.0-alpha.9 ā 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/settings.reasoningbank-example.json +124 -0
- package/.claude/settings.reasoningbank-minimal.json +40 -0
- package/.claude/skills/agentdb-advanced/SKILL.md +550 -0
- package/.claude/skills/agentdb-learning/SKILL.md +545 -0
- package/.claude/skills/agentdb-memory-patterns/SKILL.md +339 -0
- package/.claude/skills/agentdb-optimization/SKILL.md +509 -0
- package/.claude/skills/agentdb-vector-search/SKILL.md +339 -0
- package/.claude/skills/flow-nexus-neural/SKILL.md +738 -0
- package/.claude/skills/flow-nexus-platform/SKILL.md +1157 -0
- package/.claude/skills/flow-nexus-swarm/SKILL.md +610 -0
- package/.claude/skills/github-code-review/SKILL.md +1140 -0
- package/.claude/skills/github-multi-repo/SKILL.md +874 -0
- package/.claude/skills/github-project-management/SKILL.md +1277 -0
- package/.claude/skills/github-release-management/SKILL.md +1081 -0
- package/.claude/skills/github-workflow-automation/SKILL.md +1065 -0
- package/.claude/skills/hive-mind-advanced/SKILL.md +712 -0
- package/.claude/skills/hooks-automation/SKILL.md +1201 -0
- package/.claude/skills/pair-programming/SKILL.md +1202 -0
- package/.claude/skills/performance-analysis/SKILL.md +563 -0
- package/.claude/skills/reasoningbank-agentdb/SKILL.md +446 -0
- package/.claude/skills/reasoningbank-intelligence/SKILL.md +201 -0
- package/.claude/skills/skill-builder/SKILL.md +910 -0
- package/.claude/skills/sparc-methodology/SKILL.md +1115 -0
- package/.claude/skills/stream-chain/SKILL.md +563 -0
- package/.claude/skills/swarm-advanced/SKILL.md +973 -0
- package/.claude/skills/swarm-orchestration/SKILL.md +179 -0
- package/.claude/skills/verification-quality/SKILL.md +649 -0
- package/.claude/statusline-command.sh +175 -0
- package/.claude/test-reasoningbank-hooks.sh +99 -0
- package/CHANGELOG.md +418 -0
- package/README.md +254 -188
- package/bin/claude-flow +1 -1
- package/dist/agents/agent-loader.d.ts +103 -0
- package/dist/agents/agent-loader.d.ts.map +1 -0
- package/dist/agents/agent-loader.js +220 -0
- package/dist/agents/agent-loader.js.map +1 -0
- package/dist/agents/agent-manager.d.ts +191 -0
- package/dist/agents/agent-manager.d.ts.map +1 -0
- package/dist/agents/agent-manager.js +1405 -0
- package/dist/agents/agent-manager.js.map +1 -0
- package/dist/api/claude-api-errors.d.ts +115 -0
- package/dist/api/claude-api-errors.d.ts.map +1 -0
- package/dist/api/claude-api-errors.js +198 -0
- package/dist/api/claude-api-errors.js.map +1 -0
- package/dist/api/claude-client.d.ts +197 -0
- package/dist/api/claude-client.d.ts.map +1 -0
- package/dist/api/claude-client.js +525 -0
- package/dist/api/claude-client.js.map +1 -0
- package/dist/cli/cli-core.d.ts +52 -0
- package/dist/cli/cli-core.d.ts.map +1 -0
- package/dist/cli/cli-core.js +264 -0
- package/dist/cli/cli-core.js.map +1 -0
- package/dist/cli/command-registry.d.ts +10 -0
- package/dist/cli/command-registry.d.ts.map +1 -0
- package/dist/cli/command-registry.js +1126 -0
- package/dist/cli/command-registry.js.map +1 -0
- package/dist/cli/commander-fix.d.ts +4 -0
- package/dist/cli/commander-fix.d.ts.map +1 -0
- package/dist/cli/commander-fix.js +6 -0
- package/dist/cli/commander-fix.js.map +1 -0
- package/dist/cli/commands/agent.d.ts +6 -0
- package/dist/cli/commands/agent.d.ts.map +1 -0
- package/dist/cli/commands/agent.js +382 -0
- package/dist/cli/commands/agent.js.map +1 -0
- package/dist/cli/commands/config.d.ts +4 -0
- package/dist/cli/commands/config.d.ts.map +1 -0
- package/dist/cli/commands/config.js +88 -0
- package/dist/cli/commands/config.js.map +1 -0
- package/dist/cli/commands/enterprise.d.ts +3 -0
- package/dist/cli/commands/enterprise.d.ts.map +1 -0
- package/dist/cli/commands/enterprise.js +1506 -0
- package/dist/cli/commands/enterprise.js.map +1 -0
- package/dist/cli/commands/help.d.ts +6 -0
- package/dist/cli/commands/help.d.ts.map +1 -0
- package/dist/cli/commands/help.js +936 -0
- package/dist/cli/commands/help.js.map +1 -0
- package/dist/cli/commands/hive-mind/index.d.ts +18 -0
- package/dist/cli/commands/hive-mind/index.d.ts.map +1 -0
- package/dist/cli/commands/hive-mind/index.js +30 -0
- package/dist/cli/commands/hive-mind/index.js.map +1 -0
- package/dist/cli/commands/hive-mind/init.d.ts +9 -0
- package/dist/cli/commands/hive-mind/init.d.ts.map +1 -0
- package/dist/cli/commands/hive-mind/init.js +68 -0
- package/dist/cli/commands/hive-mind/init.js.map +1 -0
- package/dist/cli/commands/hive-mind/pause.d.ts +8 -0
- package/dist/cli/commands/hive-mind/pause.d.ts.map +1 -0
- package/dist/cli/commands/hive-mind/pause.js +81 -0
- package/dist/cli/commands/hive-mind/pause.js.map +1 -0
- package/dist/cli/commands/hive-mind/ps.d.ts +8 -0
- package/dist/cli/commands/hive-mind/ps.d.ts.map +1 -0
- package/dist/cli/commands/hive-mind/ps.js +120 -0
- package/dist/cli/commands/hive-mind/ps.js.map +1 -0
- package/dist/cli/commands/hive-mind/resume.d.ts +8 -0
- package/dist/cli/commands/hive-mind/resume.d.ts.map +1 -0
- package/dist/cli/commands/hive-mind/resume.js +62 -0
- package/dist/cli/commands/hive-mind/resume.js.map +1 -0
- package/dist/cli/commands/hive-mind/spawn.d.ts +9 -0
- package/dist/cli/commands/hive-mind/spawn.d.ts.map +1 -0
- package/dist/cli/commands/hive-mind/spawn.js +174 -0
- package/dist/cli/commands/hive-mind/spawn.js.map +1 -0
- package/dist/cli/commands/hive-mind/status.d.ts +9 -0
- package/dist/cli/commands/hive-mind/status.d.ts.map +1 -0
- package/dist/cli/commands/hive-mind/status.js +204 -0
- package/dist/cli/commands/hive-mind/status.js.map +1 -0
- package/dist/cli/commands/hive-mind/stop.d.ts +8 -0
- package/dist/cli/commands/hive-mind/stop.d.ts.map +1 -0
- package/dist/cli/commands/hive-mind/stop.js +125 -0
- package/dist/cli/commands/hive-mind/stop.js.map +1 -0
- package/dist/cli/commands/hive-mind/task.d.ts +9 -0
- package/dist/cli/commands/hive-mind/task.d.ts.map +1 -0
- package/dist/cli/commands/hive-mind/task.js +294 -0
- package/dist/cli/commands/hive-mind/task.js.map +1 -0
- package/dist/cli/commands/hive-mind/wizard.d.ts +9 -0
- package/dist/cli/commands/hive-mind/wizard.d.ts.map +1 -0
- package/dist/cli/commands/hive-mind/wizard.js +531 -0
- package/dist/cli/commands/hive-mind/wizard.js.map +1 -0
- package/dist/cli/commands/hive.d.ts +6 -0
- package/dist/cli/commands/hive.d.ts.map +1 -0
- package/dist/cli/commands/hive.js +409 -0
- package/dist/cli/commands/hive.js.map +1 -0
- package/dist/cli/commands/index.d.ts +3 -0
- package/dist/cli/commands/index.d.ts.map +1 -0
- package/dist/cli/commands/index.js +2624 -0
- package/dist/cli/commands/index.js.map +1 -0
- package/dist/cli/commands/mcp.d.ts +5 -0
- package/dist/cli/commands/mcp.d.ts.map +1 -0
- package/dist/cli/commands/mcp.js +169 -0
- package/dist/cli/commands/mcp.js.map +1 -0
- package/dist/cli/commands/memory.d.ts +26 -0
- package/dist/cli/commands/memory.d.ts.map +1 -0
- package/dist/cli/commands/memory.js +225 -0
- package/dist/cli/commands/memory.js.map +1 -0
- package/dist/cli/commands/migrate.d.ts +5 -0
- package/dist/cli/commands/migrate.d.ts.map +1 -0
- package/dist/cli/commands/migrate.js +139 -0
- package/dist/cli/commands/migrate.js.map +1 -0
- package/dist/cli/commands/monitor.d.ts +5 -0
- package/dist/cli/commands/monitor.d.ts.map +1 -0
- package/dist/cli/commands/monitor.js +493 -0
- package/dist/cli/commands/monitor.js.map +1 -0
- package/dist/cli/commands/session.d.ts +5 -0
- package/dist/cli/commands/session.d.ts.map +1 -0
- package/dist/cli/commands/session.js +548 -0
- package/dist/cli/commands/session.js.map +1 -0
- package/dist/cli/commands/sparc.d.ts +3 -0
- package/dist/cli/commands/sparc.d.ts.map +1 -0
- package/dist/cli/commands/sparc.js +472 -0
- package/dist/cli/commands/sparc.js.map +1 -0
- package/dist/cli/commands/start/event-emitter.d.ts +13 -0
- package/dist/cli/commands/start/event-emitter.d.ts.map +1 -0
- package/dist/cli/commands/start/event-emitter.js +35 -0
- package/dist/cli/commands/start/event-emitter.js.map +1 -0
- package/dist/cli/commands/start/index.d.ts +10 -0
- package/dist/cli/commands/start/index.d.ts.map +1 -0
- package/dist/cli/commands/start/index.js +9 -0
- package/dist/cli/commands/start/index.js.map +1 -0
- package/dist/cli/commands/start/process-manager.d.ts +31 -0
- package/dist/cli/commands/start/process-manager.d.ts.map +1 -0
- package/dist/cli/commands/start/process-manager.js +283 -0
- package/dist/cli/commands/start/process-manager.js.map +1 -0
- package/dist/cli/commands/start/process-ui-simple.d.ts +29 -0
- package/dist/cli/commands/start/process-ui-simple.d.ts.map +1 -0
- package/dist/cli/commands/start/process-ui-simple.js +334 -0
- package/dist/cli/commands/start/process-ui-simple.js.map +1 -0
- package/dist/cli/commands/start/process-ui.d.ts +5 -0
- package/dist/cli/commands/start/process-ui.d.ts.map +1 -0
- package/dist/cli/commands/start/process-ui.js +5 -0
- package/dist/cli/commands/start/process-ui.js.map +1 -0
- package/dist/cli/commands/start/start-command.d.ts +2 -0
- package/dist/cli/commands/start/start-command.d.ts.map +1 -0
- package/dist/cli/commands/start/start-command.js +462 -0
- package/dist/cli/commands/start/start-command.js.map +1 -0
- package/dist/cli/commands/start/system-monitor.d.ts +25 -0
- package/dist/cli/commands/start/system-monitor.d.ts.map +1 -0
- package/dist/cli/commands/start/system-monitor.js +265 -0
- package/dist/cli/commands/start/system-monitor.js.map +1 -0
- package/dist/cli/commands/start/types.d.ts +64 -0
- package/dist/cli/commands/start/types.d.ts.map +1 -0
- package/dist/cli/commands/start/types.js +22 -0
- package/dist/cli/commands/start/types.js.map +1 -0
- package/dist/cli/commands/start.d.ts +6 -0
- package/dist/cli/commands/start.d.ts.map +1 -0
- package/dist/cli/commands/start.js +6 -0
- package/dist/cli/commands/start.js.map +1 -0
- package/dist/cli/commands/status.d.ts +2 -0
- package/dist/cli/commands/status.d.ts.map +1 -0
- package/dist/cli/commands/status.js +304 -0
- package/dist/cli/commands/status.js.map +1 -0
- package/dist/cli/commands/swarm.d.ts +6 -0
- package/dist/cli/commands/swarm.d.ts.map +1 -0
- package/dist/cli/commands/swarm.js +465 -0
- package/dist/cli/commands/swarm.js.map +1 -0
- package/dist/cli/commands/task.d.ts +2 -0
- package/dist/cli/commands/task.d.ts.map +1 -0
- package/dist/cli/commands/task.js +75 -0
- package/dist/cli/commands/task.js.map +1 -0
- package/dist/cli/commands/workflow.d.ts +2 -0
- package/dist/cli/commands/workflow.d.ts.map +1 -0
- package/dist/cli/commands/workflow.js +624 -0
- package/dist/cli/commands/workflow.js.map +1 -0
- package/dist/cli/completion.d.ts +19 -0
- package/dist/cli/completion.d.ts.map +1 -0
- package/dist/cli/completion.js +545 -0
- package/dist/cli/completion.js.map +1 -0
- package/dist/cli/formatter.d.ts +69 -0
- package/dist/cli/formatter.d.ts.map +1 -0
- package/dist/cli/formatter.js +277 -0
- package/dist/cli/formatter.js.map +1 -0
- package/dist/cli/help-formatter.d.ts +49 -0
- package/dist/cli/help-formatter.d.ts.map +1 -0
- package/dist/cli/help-formatter.js +108 -0
- package/dist/cli/help-formatter.js.map +1 -0
- package/dist/cli/help-text.d.ts +25 -0
- package/dist/cli/help-text.d.ts.map +1 -0
- package/dist/cli/help-text.js +1051 -0
- package/dist/cli/help-text.js.map +1 -0
- package/dist/cli/index-remote.d.ts +7 -0
- package/dist/cli/index-remote.d.ts.map +1 -0
- package/dist/cli/index-remote.js +125 -0
- package/dist/cli/index-remote.js.map +1 -0
- package/dist/cli/index.d.ts +7 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +189 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/node-compat.d.ts +81 -0
- package/dist/cli/node-compat.d.ts.map +1 -0
- package/dist/cli/node-compat.js +229 -0
- package/dist/cli/node-compat.js.map +1 -0
- package/dist/cli/repl.d.ts +5 -0
- package/dist/cli/repl.d.ts.map +1 -0
- package/dist/cli/repl.js +949 -0
- package/dist/cli/repl.js.map +1 -0
- package/dist/cli/runtime-detector.d.ts +128 -0
- package/dist/cli/runtime-detector.d.ts.map +1 -0
- package/dist/cli/runtime-detector.js +267 -0
- package/dist/cli/runtime-detector.js.map +1 -0
- package/dist/cli/simple-cli.d.ts +7 -0
- package/dist/cli/simple-cli.d.ts.map +1 -0
- package/dist/cli/simple-cli.js +3085 -0
- package/dist/cli/simple-cli.js.map +1 -0
- package/dist/cli/simple-commands/agent.d.ts +6 -0
- package/dist/cli/simple-commands/agent.d.ts.map +1 -0
- package/dist/cli/simple-commands/agent.js +128 -0
- package/dist/cli/simple-commands/agent.js.map +1 -0
- package/dist/cli/simple-commands/analysis.d.ts +2 -0
- package/dist/cli/simple-commands/analysis.d.ts.map +1 -0
- package/dist/cli/simple-commands/analysis.js +473 -0
- package/dist/cli/simple-commands/analysis.js.map +1 -0
- package/dist/cli/simple-commands/automation-executor.d.ts +188 -0
- package/dist/cli/simple-commands/automation-executor.d.ts.map +1 -0
- package/dist/cli/simple-commands/automation-executor.js +1383 -0
- package/dist/cli/simple-commands/automation-executor.js.map +1 -0
- package/dist/cli/simple-commands/automation.d.ts +2 -0
- package/dist/cli/simple-commands/automation.d.ts.map +1 -0
- package/dist/cli/simple-commands/automation.js +531 -0
- package/dist/cli/simple-commands/automation.js.map +1 -0
- package/dist/cli/simple-commands/batch-manager.d.ts +2 -0
- package/dist/cli/simple-commands/batch-manager.d.ts.map +1 -0
- package/dist/cli/simple-commands/batch-manager.js +290 -0
- package/dist/cli/simple-commands/batch-manager.js.map +1 -0
- package/dist/cli/simple-commands/claude-telemetry.d.ts +14 -0
- package/dist/cli/simple-commands/claude-telemetry.d.ts.map +1 -0
- package/dist/cli/simple-commands/claude-telemetry.js +263 -0
- package/dist/cli/simple-commands/claude-telemetry.js.map +1 -0
- package/dist/cli/simple-commands/config.d.ts +6 -0
- package/dist/cli/simple-commands/config.d.ts.map +1 -0
- package/dist/cli/simple-commands/config.js +116 -0
- package/dist/cli/simple-commands/config.js.map +1 -0
- package/dist/cli/simple-commands/coordination.d.ts +2 -0
- package/dist/cli/simple-commands/coordination.d.ts.map +1 -0
- package/dist/cli/simple-commands/coordination.js +249 -0
- package/dist/cli/simple-commands/coordination.js.map +1 -0
- package/dist/cli/simple-commands/env-template.d.ts +42 -0
- package/dist/cli/simple-commands/env-template.d.ts.map +1 -0
- package/dist/cli/simple-commands/env-template.js +183 -0
- package/dist/cli/simple-commands/env-template.js.map +1 -0
- package/dist/cli/simple-commands/fix-hook-variables.d.ts +16 -0
- package/dist/cli/simple-commands/fix-hook-variables.d.ts.map +1 -0
- package/dist/cli/simple-commands/fix-hook-variables.js +320 -0
- package/dist/cli/simple-commands/fix-hook-variables.js.map +1 -0
- package/dist/cli/simple-commands/github/init.d.ts +6 -0
- package/dist/cli/simple-commands/github/init.d.ts.map +1 -0
- package/dist/cli/simple-commands/github/init.js +506 -0
- package/dist/cli/simple-commands/github/init.js.map +1 -0
- package/dist/cli/simple-commands/github.d.ts +3 -0
- package/dist/cli/simple-commands/github.d.ts.map +1 -0
- package/dist/cli/simple-commands/github.js +356 -0
- package/dist/cli/simple-commands/github.js.map +1 -0
- package/dist/cli/simple-commands/goal.d.ts +3 -0
- package/dist/cli/simple-commands/goal.d.ts.map +1 -0
- package/dist/cli/simple-commands/goal.js +136 -0
- package/dist/cli/simple-commands/goal.js.map +1 -0
- package/dist/cli/simple-commands/hive-mind/auto-save-middleware.d.ts +68 -0
- package/dist/cli/simple-commands/hive-mind/auto-save-middleware.d.ts.map +1 -0
- package/dist/cli/simple-commands/hive-mind/auto-save-middleware.js +264 -0
- package/dist/cli/simple-commands/hive-mind/auto-save-middleware.js.map +1 -0
- package/dist/cli/simple-commands/hive-mind/communication.d.ts +176 -0
- package/dist/cli/simple-commands/hive-mind/communication.d.ts.map +1 -0
- package/dist/cli/simple-commands/hive-mind/communication.js +611 -0
- package/dist/cli/simple-commands/hive-mind/communication.js.map +1 -0
- package/dist/cli/simple-commands/hive-mind/core.d.ts +306 -0
- package/dist/cli/simple-commands/hive-mind/core.d.ts.map +1 -0
- package/dist/cli/simple-commands/hive-mind/core.js +839 -0
- package/dist/cli/simple-commands/hive-mind/core.js.map +1 -0
- package/dist/cli/simple-commands/hive-mind/db-optimizer.d.ts +32 -0
- package/dist/cli/simple-commands/hive-mind/db-optimizer.d.ts.map +1 -0
- package/dist/cli/simple-commands/hive-mind/db-optimizer.js +702 -0
- package/dist/cli/simple-commands/hive-mind/db-optimizer.js.map +1 -0
- package/dist/cli/simple-commands/hive-mind/mcp-wrapper.d.ts +270 -0
- package/dist/cli/simple-commands/hive-mind/mcp-wrapper.d.ts.map +1 -0
- package/dist/cli/simple-commands/hive-mind/mcp-wrapper.js +1211 -0
- package/dist/cli/simple-commands/hive-mind/mcp-wrapper.js.map +1 -0
- package/dist/cli/simple-commands/hive-mind/memory.d.ts +334 -0
- package/dist/cli/simple-commands/hive-mind/memory.d.ts.map +1 -0
- package/dist/cli/simple-commands/hive-mind/memory.js +1068 -0
- package/dist/cli/simple-commands/hive-mind/memory.js.map +1 -0
- package/dist/cli/simple-commands/hive-mind/metrics-reader.js +274 -0
- package/dist/cli/simple-commands/hive-mind/metrics-reader.js.map +1 -0
- package/dist/cli/simple-commands/hive-mind/performance-optimizer.d.ts +256 -0
- package/dist/cli/simple-commands/hive-mind/performance-optimizer.d.ts.map +1 -0
- package/dist/cli/simple-commands/hive-mind/performance-optimizer.js +520 -0
- package/dist/cli/simple-commands/hive-mind/performance-optimizer.js.map +1 -0
- package/dist/cli/simple-commands/hive-mind/queen.d.ts +235 -0
- package/dist/cli/simple-commands/hive-mind/queen.d.ts.map +1 -0
- package/dist/cli/simple-commands/hive-mind/queen.js +697 -0
- package/dist/cli/simple-commands/hive-mind/queen.js.map +1 -0
- package/dist/cli/simple-commands/hive-mind/session-manager.d.ts +140 -0
- package/dist/cli/simple-commands/hive-mind/session-manager.d.ts.map +1 -0
- package/dist/cli/simple-commands/hive-mind/session-manager.js +1000 -0
- package/dist/cli/simple-commands/hive-mind/session-manager.js.map +1 -0
- package/dist/cli/simple-commands/hive-mind-optimize.d.ts +6 -0
- package/dist/cli/simple-commands/hive-mind-optimize.d.ts.map +1 -0
- package/dist/cli/simple-commands/hive-mind-optimize.js +317 -0
- package/dist/cli/simple-commands/hive-mind-optimize.js.map +1 -0
- package/dist/cli/simple-commands/hive-mind.d.ts +22 -0
- package/dist/cli/simple-commands/hive-mind.d.ts.map +1 -0
- package/dist/cli/simple-commands/hive-mind.js +2722 -0
- package/dist/cli/simple-commands/hive-mind.js.map +1 -0
- package/dist/cli/simple-commands/hook-safety.d.ts +177 -0
- package/dist/cli/simple-commands/hook-safety.d.ts.map +1 -0
- package/dist/cli/simple-commands/hook-safety.js +590 -0
- package/dist/cli/simple-commands/hook-safety.js.map +1 -0
- package/dist/cli/simple-commands/hooks.d.ts +3 -0
- package/dist/cli/simple-commands/hooks.d.ts.map +1 -0
- package/dist/cli/simple-commands/hooks.js +1298 -0
- package/dist/cli/simple-commands/hooks.js.map +1 -0
- package/dist/cli/simple-commands/init/agent-copier.d.ts +65 -0
- package/dist/cli/simple-commands/init/agent-copier.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/agent-copier.js +320 -0
- package/dist/cli/simple-commands/init/agent-copier.js.map +1 -0
- package/dist/cli/simple-commands/init/batch-init.d.ts +137 -0
- package/dist/cli/simple-commands/init/batch-init.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/batch-init.js +558 -0
- package/dist/cli/simple-commands/init/batch-init.js.map +1 -0
- package/dist/cli/simple-commands/init/claude-commands/claude-flow-commands.d.ts +2 -0
- package/dist/cli/simple-commands/init/claude-commands/claude-flow-commands.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/claude-commands/claude-flow-commands.js +433 -0
- package/dist/cli/simple-commands/init/claude-commands/claude-flow-commands.js.map +1 -0
- package/dist/cli/simple-commands/init/claude-commands/optimized-claude-flow-commands.d.ts +2 -0
- package/dist/cli/simple-commands/init/claude-commands/optimized-claude-flow-commands.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/claude-commands/optimized-claude-flow-commands.js +871 -0
- package/dist/cli/simple-commands/init/claude-commands/optimized-claude-flow-commands.js.map +1 -0
- package/dist/cli/simple-commands/init/claude-commands/optimized-slash-commands.d.ts +2 -0
- package/dist/cli/simple-commands/init/claude-commands/optimized-slash-commands.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/claude-commands/optimized-slash-commands.js +332 -0
- package/dist/cli/simple-commands/init/claude-commands/optimized-slash-commands.js.map +1 -0
- package/dist/cli/simple-commands/init/claude-commands/optimized-sparc-commands.d.ts +3 -0
- package/dist/cli/simple-commands/init/claude-commands/optimized-sparc-commands.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/claude-commands/optimized-sparc-commands.js +488 -0
- package/dist/cli/simple-commands/init/claude-commands/optimized-sparc-commands.js.map +1 -0
- package/dist/cli/simple-commands/init/claude-commands/slash-commands.d.ts +2 -0
- package/dist/cli/simple-commands/init/claude-commands/slash-commands.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/claude-commands/slash-commands.js +51 -0
- package/dist/cli/simple-commands/init/claude-commands/slash-commands.js.map +1 -0
- package/dist/cli/simple-commands/init/claude-commands/sparc-commands.d.ts +3 -0
- package/dist/cli/simple-commands/init/claude-commands/sparc-commands.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/claude-commands/sparc-commands.js +288 -0
- package/dist/cli/simple-commands/init/claude-commands/sparc-commands.js.map +1 -0
- package/dist/cli/simple-commands/init/copy-revised-templates.d.ts +29 -0
- package/dist/cli/simple-commands/init/copy-revised-templates.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/copy-revised-templates.js +166 -0
- package/dist/cli/simple-commands/init/copy-revised-templates.js.map +1 -0
- package/dist/cli/simple-commands/init/executable-wrapper.d.ts +2 -0
- package/dist/cli/simple-commands/init/executable-wrapper.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/executable-wrapper.js +116 -0
- package/dist/cli/simple-commands/init/executable-wrapper.js.map +1 -0
- package/dist/cli/simple-commands/init/gitignore-updater.d.ts +23 -0
- package/dist/cli/simple-commands/init/gitignore-updater.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/gitignore-updater.js +128 -0
- package/dist/cli/simple-commands/init/gitignore-updater.js.map +1 -0
- package/dist/cli/simple-commands/init/help.d.ts +2 -0
- package/dist/cli/simple-commands/init/help.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/help.js +131 -0
- package/dist/cli/simple-commands/init/help.js.map +1 -0
- package/dist/cli/simple-commands/init/hive-mind-init.d.ts +152 -0
- package/dist/cli/simple-commands/init/hive-mind-init.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/hive-mind-init.js +699 -0
- package/dist/cli/simple-commands/init/hive-mind-init.js.map +1 -0
- package/dist/cli/simple-commands/init/index.d.ts +2 -0
- package/dist/cli/simple-commands/init/index.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/index.js +1784 -0
- package/dist/cli/simple-commands/init/index.js.map +1 -0
- package/dist/cli/simple-commands/init/performance-monitor.d.ts +73 -0
- package/dist/cli/simple-commands/init/performance-monitor.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/performance-monitor.js +277 -0
- package/dist/cli/simple-commands/init/performance-monitor.js.map +1 -0
- package/dist/cli/simple-commands/init/rollback/backup-manager.d.ts +95 -0
- package/dist/cli/simple-commands/init/rollback/backup-manager.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/rollback/backup-manager.js +486 -0
- package/dist/cli/simple-commands/init/rollback/backup-manager.js.map +1 -0
- package/dist/cli/simple-commands/init/rollback/index.d.ts +114 -0
- package/dist/cli/simple-commands/init/rollback/index.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/rollback/index.js +353 -0
- package/dist/cli/simple-commands/init/rollback/index.js.map +1 -0
- package/dist/cli/simple-commands/init/rollback/recovery-manager.d.ts +161 -0
- package/dist/cli/simple-commands/init/rollback/recovery-manager.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/rollback/recovery-manager.js +686 -0
- package/dist/cli/simple-commands/init/rollback/recovery-manager.js.map +1 -0
- package/dist/cli/simple-commands/init/rollback/rollback-executor.d.ts +112 -0
- package/dist/cli/simple-commands/init/rollback/rollback-executor.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/rollback/rollback-executor.js +480 -0
- package/dist/cli/simple-commands/init/rollback/rollback-executor.js.map +1 -0
- package/dist/cli/simple-commands/init/rollback/state-tracker.d.ts +121 -0
- package/dist/cli/simple-commands/init/rollback/state-tracker.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/rollback/state-tracker.js +432 -0
- package/dist/cli/simple-commands/init/rollback/state-tracker.js.map +1 -0
- package/dist/cli/simple-commands/init/skills-copier.d.ts +41 -0
- package/dist/cli/simple-commands/init/skills-copier.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/skills-copier.js +192 -0
- package/dist/cli/simple-commands/init/skills-copier.js.map +1 -0
- package/dist/cli/simple-commands/init/sparc/roo-readme.d.ts +2 -0
- package/dist/cli/simple-commands/init/sparc/roo-readme.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/sparc/roo-readme.js +61 -0
- package/dist/cli/simple-commands/init/sparc/roo-readme.js.map +1 -0
- package/dist/cli/simple-commands/init/sparc/roomodes-config.d.ts +2 -0
- package/dist/cli/simple-commands/init/sparc/roomodes-config.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/sparc/roomodes-config.js +80 -0
- package/dist/cli/simple-commands/init/sparc/roomodes-config.js.map +1 -0
- package/dist/cli/simple-commands/init/sparc/workflows.d.ts +2 -0
- package/dist/cli/simple-commands/init/sparc/workflows.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/sparc/workflows.js +36 -0
- package/dist/cli/simple-commands/init/sparc/workflows.js.map +1 -0
- package/dist/cli/simple-commands/init/sparc-structure.d.ts +2 -0
- package/dist/cli/simple-commands/init/sparc-structure.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/sparc-structure.js +63 -0
- package/dist/cli/simple-commands/init/sparc-structure.js.map +1 -0
- package/dist/cli/simple-commands/init/template-copier.d.ts +27 -0
- package/dist/cli/simple-commands/init/template-copier.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/template-copier.js +538 -0
- package/dist/cli/simple-commands/init/template-copier.js.map +1 -0
- package/dist/cli/simple-commands/init/templates/claude-md.d.ts +6 -0
- package/dist/cli/simple-commands/init/templates/claude-md.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/templates/claude-md.js +1097 -0
- package/dist/cli/simple-commands/init/templates/claude-md.js.map +1 -0
- package/dist/cli/simple-commands/init/templates/coordination-md.d.ts +4 -0
- package/dist/cli/simple-commands/init/templates/coordination-md.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/templates/coordination-md.js +338 -0
- package/dist/cli/simple-commands/init/templates/coordination-md.js.map +1 -0
- package/dist/cli/simple-commands/init/templates/enhanced-templates.d.ts +21 -0
- package/dist/cli/simple-commands/init/templates/enhanced-templates.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/templates/enhanced-templates.js +2304 -0
- package/dist/cli/simple-commands/init/templates/enhanced-templates.js.map +1 -0
- package/dist/cli/simple-commands/init/templates/memory-bank-md.d.ts +4 -0
- package/dist/cli/simple-commands/init/templates/memory-bank-md.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/templates/memory-bank-md.js +257 -0
- package/dist/cli/simple-commands/init/templates/memory-bank-md.js.map +1 -0
- package/dist/cli/simple-commands/init/templates/readme-files.d.ts +3 -0
- package/dist/cli/simple-commands/init/templates/readme-files.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/templates/readme-files.js +71 -0
- package/dist/cli/simple-commands/init/templates/readme-files.js.map +1 -0
- package/dist/cli/simple-commands/init/templates/sparc-modes.d.ts +30 -0
- package/dist/cli/simple-commands/init/templates/sparc-modes.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/templates/sparc-modes.js +1375 -0
- package/dist/cli/simple-commands/init/templates/sparc-modes.js.map +1 -0
- package/dist/cli/simple-commands/init/templates/verification-claude-md.d.ts +3 -0
- package/dist/cli/simple-commands/init/templates/verification-claude-md.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/templates/verification-claude-md.js +432 -0
- package/dist/cli/simple-commands/init/templates/verification-claude-md.js.map +1 -0
- package/dist/cli/simple-commands/init/validation/config-validator.d.ts +63 -0
- package/dist/cli/simple-commands/init/validation/config-validator.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/validation/config-validator.js +308 -0
- package/dist/cli/simple-commands/init/validation/config-validator.js.map +1 -0
- package/dist/cli/simple-commands/init/validation/health-checker.d.ts +117 -0
- package/dist/cli/simple-commands/init/validation/health-checker.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/validation/health-checker.js +539 -0
- package/dist/cli/simple-commands/init/validation/health-checker.js.map +1 -0
- package/dist/cli/simple-commands/init/validation/index.d.ts +55 -0
- package/dist/cli/simple-commands/init/validation/index.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/validation/index.js +347 -0
- package/dist/cli/simple-commands/init/validation/index.js.map +1 -0
- package/dist/cli/simple-commands/init/validation/mode-validator.d.ts +76 -0
- package/dist/cli/simple-commands/init/validation/mode-validator.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/validation/mode-validator.js +343 -0
- package/dist/cli/simple-commands/init/validation/mode-validator.js.map +1 -0
- package/dist/cli/simple-commands/init/validation/post-init-validator.d.ts +62 -0
- package/dist/cli/simple-commands/init/validation/post-init-validator.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/validation/post-init-validator.js +349 -0
- package/dist/cli/simple-commands/init/validation/post-init-validator.js.map +1 -0
- package/dist/cli/simple-commands/init/validation/pre-init-validator.d.ts +86 -0
- package/dist/cli/simple-commands/init/validation/pre-init-validator.d.ts.map +1 -0
- package/dist/cli/simple-commands/init/validation/pre-init-validator.js +260 -0
- package/dist/cli/simple-commands/init/validation/pre-init-validator.js.map +1 -0
- package/dist/cli/simple-commands/inject-memory-protocol.d.ts +34 -0
- package/dist/cli/simple-commands/inject-memory-protocol.d.ts.map +1 -0
- package/dist/cli/simple-commands/inject-memory-protocol.js +229 -0
- package/dist/cli/simple-commands/inject-memory-protocol.js.map +1 -0
- package/dist/cli/simple-commands/mcp.d.ts +2 -0
- package/dist/cli/simple-commands/mcp.d.ts.map +1 -0
- package/dist/cli/simple-commands/mcp.js +369 -0
- package/dist/cli/simple-commands/mcp.js.map +1 -0
- package/dist/cli/simple-commands/memory-consolidation.d.ts +73 -0
- package/dist/cli/simple-commands/memory-consolidation.d.ts.map +1 -0
- package/dist/cli/simple-commands/memory-consolidation.js +537 -0
- package/dist/cli/simple-commands/memory-consolidation.js.map +1 -0
- package/dist/cli/simple-commands/memory.d.ts +2 -0
- package/dist/cli/simple-commands/memory.d.ts.map +1 -0
- package/dist/cli/simple-commands/memory.js +778 -0
- package/dist/cli/simple-commands/memory.js.map +1 -0
- package/dist/cli/simple-commands/migrate-hooks.d.ts +10 -0
- package/dist/cli/simple-commands/migrate-hooks.d.ts.map +1 -0
- package/dist/cli/simple-commands/migrate-hooks.js +57 -0
- package/dist/cli/simple-commands/migrate-hooks.js.map +1 -0
- package/dist/cli/simple-commands/monitor.d.ts +3 -0
- package/dist/cli/simple-commands/monitor.d.ts.map +1 -0
- package/dist/cli/simple-commands/monitor.js +366 -0
- package/dist/cli/simple-commands/monitor.js.map +1 -0
- package/dist/cli/simple-commands/neural.d.ts +3 -0
- package/dist/cli/simple-commands/neural.d.ts.map +1 -0
- package/dist/cli/simple-commands/neural.js +137 -0
- package/dist/cli/simple-commands/neural.js.map +1 -0
- package/dist/cli/simple-commands/pair.d.ts +3 -0
- package/dist/cli/simple-commands/pair.d.ts.map +1 -0
- package/dist/cli/simple-commands/pair.js +735 -0
- package/dist/cli/simple-commands/pair.js.map +1 -0
- package/dist/cli/simple-commands/performance-hooks.d.ts +20 -0
- package/dist/cli/simple-commands/performance-hooks.d.ts.map +1 -0
- package/dist/cli/simple-commands/performance-hooks.js +127 -0
- package/dist/cli/simple-commands/performance-hooks.js.map +1 -0
- package/dist/cli/simple-commands/performance-metrics.d.ts +153 -0
- package/dist/cli/simple-commands/performance-metrics.d.ts.map +1 -0
- package/dist/cli/simple-commands/performance-metrics.js +759 -0
- package/dist/cli/simple-commands/performance-metrics.js.map +1 -0
- package/dist/cli/simple-commands/process-ui-enhanced.d.ts +55 -0
- package/dist/cli/simple-commands/process-ui-enhanced.d.ts.map +1 -0
- package/dist/cli/simple-commands/process-ui-enhanced.js +680 -0
- package/dist/cli/simple-commands/process-ui-enhanced.js.map +1 -0
- package/dist/cli/simple-commands/proxy.d.ts +5 -0
- package/dist/cli/simple-commands/proxy.d.ts.map +1 -0
- package/dist/cli/simple-commands/proxy.js +346 -0
- package/dist/cli/simple-commands/proxy.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/architect.d.ts +2 -0
- package/dist/cli/simple-commands/sparc-modes/architect.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/architect.js +126 -0
- package/dist/cli/simple-commands/sparc-modes/architect.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/ask.d.ts +2 -0
- package/dist/cli/simple-commands/sparc-modes/ask.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/ask.js +127 -0
- package/dist/cli/simple-commands/sparc-modes/ask.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/code.d.ts +2 -0
- package/dist/cli/simple-commands/sparc-modes/code.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/code.js +149 -0
- package/dist/cli/simple-commands/sparc-modes/code.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/debug.d.ts +2 -0
- package/dist/cli/simple-commands/sparc-modes/debug.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/debug.js +113 -0
- package/dist/cli/simple-commands/sparc-modes/debug.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/devops.d.ts +2 -0
- package/dist/cli/simple-commands/sparc-modes/devops.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/devops.js +138 -0
- package/dist/cli/simple-commands/sparc-modes/devops.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/docs-writer.d.ts +2 -0
- package/dist/cli/simple-commands/sparc-modes/docs-writer.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/docs-writer.js +39 -0
- package/dist/cli/simple-commands/sparc-modes/docs-writer.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/generic.d.ts +2 -0
- package/dist/cli/simple-commands/sparc-modes/generic.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/generic.js +35 -0
- package/dist/cli/simple-commands/sparc-modes/generic.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/index.d.ts +17 -0
- package/dist/cli/simple-commands/sparc-modes/index.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/index.js +196 -0
- package/dist/cli/simple-commands/sparc-modes/index.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/integration.d.ts +2 -0
- package/dist/cli/simple-commands/sparc-modes/integration.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/integration.js +56 -0
- package/dist/cli/simple-commands/sparc-modes/integration.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/mcp.d.ts +2 -0
- package/dist/cli/simple-commands/sparc-modes/mcp.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/mcp.js +39 -0
- package/dist/cli/simple-commands/sparc-modes/mcp.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/monitoring.d.ts +2 -0
- package/dist/cli/simple-commands/sparc-modes/monitoring.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/monitoring.js +39 -0
- package/dist/cli/simple-commands/sparc-modes/monitoring.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/optimization.d.ts +2 -0
- package/dist/cli/simple-commands/sparc-modes/optimization.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/optimization.js +39 -0
- package/dist/cli/simple-commands/sparc-modes/optimization.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/security-review.d.ts +2 -0
- package/dist/cli/simple-commands/sparc-modes/security-review.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/security-review.js +131 -0
- package/dist/cli/simple-commands/sparc-modes/security-review.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/sparc-orchestrator.d.ts +2 -0
- package/dist/cli/simple-commands/sparc-modes/sparc-orchestrator.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/sparc-orchestrator.js +168 -0
- package/dist/cli/simple-commands/sparc-modes/sparc-orchestrator.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/spec-pseudocode.d.ts +2 -0
- package/dist/cli/simple-commands/sparc-modes/spec-pseudocode.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/spec-pseudocode.js +39 -0
- package/dist/cli/simple-commands/sparc-modes/spec-pseudocode.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/supabase-admin.d.ts +2 -0
- package/dist/cli/simple-commands/sparc-modes/supabase-admin.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/supabase-admin.js +150 -0
- package/dist/cli/simple-commands/sparc-modes/supabase-admin.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/swarm.d.ts +81 -0
- package/dist/cli/simple-commands/sparc-modes/swarm.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/swarm.js +428 -0
- package/dist/cli/simple-commands/sparc-modes/swarm.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/tdd.d.ts +2 -0
- package/dist/cli/simple-commands/sparc-modes/tdd.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/tdd.js +113 -0
- package/dist/cli/simple-commands/sparc-modes/tdd.js.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/tutorial.d.ts +2 -0
- package/dist/cli/simple-commands/sparc-modes/tutorial.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc-modes/tutorial.js +278 -0
- package/dist/cli/simple-commands/sparc-modes/tutorial.js.map +1 -0
- package/dist/cli/simple-commands/sparc.d.ts +2 -0
- package/dist/cli/simple-commands/sparc.d.ts.map +1 -0
- package/dist/cli/simple-commands/sparc.js +477 -0
- package/dist/cli/simple-commands/sparc.js.map +1 -0
- package/dist/cli/simple-commands/start-ui.d.ts +2 -0
- package/dist/cli/simple-commands/start-ui.d.ts.map +1 -0
- package/dist/cli/simple-commands/start-ui.js +135 -0
- package/dist/cli/simple-commands/start-ui.js.map +1 -0
- package/dist/cli/simple-commands/start-wrapper.d.ts +2 -0
- package/dist/cli/simple-commands/start-wrapper.d.ts.map +1 -0
- package/dist/cli/simple-commands/start-wrapper.js +264 -0
- package/dist/cli/simple-commands/start-wrapper.js.map +1 -0
- package/dist/cli/simple-commands/start.d.ts +2 -0
- package/dist/cli/simple-commands/start.d.ts.map +1 -0
- package/dist/cli/simple-commands/start.js +3 -0
- package/dist/cli/simple-commands/start.js.map +1 -0
- package/dist/cli/simple-commands/status.d.ts +2 -0
- package/dist/cli/simple-commands/status.d.ts.map +1 -0
- package/dist/cli/simple-commands/status.js +292 -0
- package/dist/cli/simple-commands/status.js.map +1 -0
- package/dist/cli/simple-commands/stream-chain.d.ts +7 -0
- package/dist/cli/simple-commands/stream-chain.d.ts.map +1 -0
- package/dist/cli/simple-commands/stream-chain.js +433 -0
- package/dist/cli/simple-commands/stream-chain.js.map +1 -0
- package/dist/cli/simple-commands/stream-processor.d.ts +32 -0
- package/dist/cli/simple-commands/stream-processor.d.ts.map +1 -0
- package/dist/cli/simple-commands/stream-processor.js +318 -0
- package/dist/cli/simple-commands/stream-processor.js.map +1 -0
- package/dist/cli/simple-commands/swarm-executor.d.ts +68 -0
- package/dist/cli/simple-commands/swarm-executor.d.ts.map +1 -0
- package/dist/cli/simple-commands/swarm-executor.js +218 -0
- package/dist/cli/simple-commands/swarm-executor.js.map +1 -0
- package/dist/cli/simple-commands/swarm-metrics-integration.d.ts +69 -0
- package/dist/cli/simple-commands/swarm-metrics-integration.d.ts.map +1 -0
- package/dist/cli/simple-commands/swarm-metrics-integration.js +294 -0
- package/dist/cli/simple-commands/swarm-metrics-integration.js.map +1 -0
- package/dist/cli/simple-commands/swarm-webui-integration.d.ts +68 -0
- package/dist/cli/simple-commands/swarm-webui-integration.d.ts.map +1 -0
- package/dist/cli/simple-commands/swarm-webui-integration.js +265 -0
- package/dist/cli/simple-commands/swarm-webui-integration.js.map +1 -0
- package/dist/cli/simple-commands/swarm.d.ts +2 -0
- package/dist/cli/simple-commands/swarm.d.ts.map +1 -0
- package/dist/cli/simple-commands/swarm.js +2104 -0
- package/dist/cli/simple-commands/swarm.js.map +1 -0
- package/dist/cli/simple-commands/task.d.ts +2 -0
- package/dist/cli/simple-commands/task.d.ts.map +1 -0
- package/dist/cli/simple-commands/task.js +250 -0
- package/dist/cli/simple-commands/task.js.map +1 -0
- package/dist/cli/simple-commands/token-tracker.d.ts +73 -0
- package/dist/cli/simple-commands/token-tracker.d.ts.map +1 -0
- package/dist/cli/simple-commands/token-tracker.js +319 -0
- package/dist/cli/simple-commands/token-tracker.js.map +1 -0
- package/dist/cli/simple-commands/training-pipeline.d.ts +166 -0
- package/dist/cli/simple-commands/training-pipeline.d.ts.map +1 -0
- package/dist/cli/simple-commands/training-pipeline.js +760 -0
- package/dist/cli/simple-commands/training-pipeline.js.map +1 -0
- package/dist/cli/simple-commands/training.d.ts +2 -0
- package/dist/cli/simple-commands/training.d.ts.map +1 -0
- package/dist/cli/simple-commands/training.js +240 -0
- package/dist/cli/simple-commands/training.js.map +1 -0
- package/dist/cli/simple-commands/verification-training-integration.d.ts +181 -0
- package/dist/cli/simple-commands/verification-training-integration.d.ts.map +1 -0
- package/dist/cli/simple-commands/verification-training-integration.js +561 -0
- package/dist/cli/simple-commands/verification-training-integration.js.map +1 -0
- package/dist/cli/simple-commands/verification.d.ts +10 -0
- package/dist/cli/simple-commands/verification.d.ts.map +1 -0
- package/dist/cli/simple-commands/verification.js +476 -0
- package/dist/cli/simple-commands/verification.js.map +1 -0
- package/dist/cli/simple-commands/web-server.d.ts +152 -0
- package/dist/cli/simple-commands/web-server.d.ts.map +1 -0
- package/dist/cli/simple-commands/web-server.js +816 -0
- package/dist/cli/simple-commands/web-server.js.map +1 -0
- package/dist/cli/utils/interactive-detector.d.ts +25 -0
- package/dist/cli/utils/interactive-detector.d.ts.map +1 -0
- package/dist/cli/utils/interactive-detector.js +129 -0
- package/dist/cli/utils/interactive-detector.js.map +1 -0
- package/dist/cli/utils/safe-interactive.d.ts +30 -0
- package/dist/cli/utils/safe-interactive.d.ts.map +1 -0
- package/dist/cli/utils/safe-interactive.js +134 -0
- package/dist/cli/utils/safe-interactive.js.map +1 -0
- package/dist/cli/utils.d.ts +75 -0
- package/dist/cli/utils.d.ts.map +1 -0
- package/dist/cli/utils.js +567 -0
- package/dist/cli/utils.js.map +1 -0
- package/dist/config/config-manager.d.ts +212 -0
- package/dist/config/config-manager.d.ts.map +1 -0
- package/dist/config/config-manager.js +550 -0
- package/dist/config/config-manager.js.map +1 -0
- package/dist/constants/agent-types.d.ts +57 -0
- package/dist/constants/agent-types.d.ts.map +1 -0
- package/dist/constants/agent-types.js +57 -0
- package/dist/constants/agent-types.js.map +1 -0
- package/dist/coordination/advanced-scheduler.d.ts +121 -0
- package/dist/coordination/advanced-scheduler.d.ts.map +1 -0
- package/dist/coordination/advanced-scheduler.js +382 -0
- package/dist/coordination/advanced-scheduler.js.map +1 -0
- package/dist/coordination/background-executor.d.ts +69 -0
- package/dist/coordination/background-executor.d.ts.map +1 -0
- package/dist/coordination/background-executor.js +363 -0
- package/dist/coordination/background-executor.js.map +1 -0
- package/dist/coordination/circuit-breaker.d.ts +124 -0
- package/dist/coordination/circuit-breaker.d.ts.map +1 -0
- package/dist/coordination/circuit-breaker.js +301 -0
- package/dist/coordination/circuit-breaker.js.map +1 -0
- package/dist/coordination/conflict-resolution.d.ts +133 -0
- package/dist/coordination/conflict-resolution.d.ts.map +1 -0
- package/dist/coordination/conflict-resolution.js +360 -0
- package/dist/coordination/conflict-resolution.js.map +1 -0
- package/dist/coordination/dependency-graph.d.ts +78 -0
- package/dist/coordination/dependency-graph.d.ts.map +1 -0
- package/dist/coordination/dependency-graph.js +387 -0
- package/dist/coordination/dependency-graph.js.map +1 -0
- package/dist/coordination/manager.d.ts +66 -0
- package/dist/coordination/manager.d.ts.map +1 -0
- package/dist/coordination/manager.js +354 -0
- package/dist/coordination/manager.js.map +1 -0
- package/dist/coordination/messaging.d.ts +37 -0
- package/dist/coordination/messaging.d.ts.map +1 -0
- package/dist/coordination/messaging.js +219 -0
- package/dist/coordination/messaging.js.map +1 -0
- package/dist/coordination/metrics.d.ts +153 -0
- package/dist/coordination/metrics.d.ts.map +1 -0
- package/dist/coordination/metrics.js +436 -0
- package/dist/coordination/metrics.js.map +1 -0
- package/dist/coordination/resources.d.ts +36 -0
- package/dist/coordination/resources.d.ts.map +1 -0
- package/dist/coordination/resources.js +254 -0
- package/dist/coordination/resources.js.map +1 -0
- package/dist/coordination/scheduler.d.ts +48 -0
- package/dist/coordination/scheduler.d.ts.map +1 -0
- package/dist/coordination/scheduler.js +308 -0
- package/dist/coordination/scheduler.js.map +1 -0
- package/dist/coordination/swarm-coordinator.d.ts +116 -0
- package/dist/coordination/swarm-coordinator.d.ts.map +1 -0
- package/dist/coordination/swarm-coordinator.js +563 -0
- package/dist/coordination/swarm-coordinator.js.map +1 -0
- package/dist/coordination/swarm-monitor.d.ts +101 -0
- package/dist/coordination/swarm-monitor.d.ts.map +1 -0
- package/dist/coordination/swarm-monitor.js +340 -0
- package/dist/coordination/swarm-monitor.js.map +1 -0
- package/dist/coordination/work-stealing.d.ts +44 -0
- package/dist/coordination/work-stealing.d.ts.map +1 -0
- package/dist/coordination/work-stealing.js +158 -0
- package/dist/coordination/work-stealing.js.map +1 -0
- package/dist/core/config.d.ts +243 -0
- package/dist/core/config.d.ts.map +1 -0
- package/dist/core/config.js +1125 -0
- package/dist/core/config.js.map +1 -0
- package/dist/core/event-bus.d.ts +63 -0
- package/dist/core/event-bus.d.ts.map +1 -0
- package/dist/core/event-bus.js +153 -0
- package/dist/core/event-bus.js.map +1 -0
- package/dist/core/json-persistence.d.ts +55 -0
- package/dist/core/json-persistence.d.ts.map +1 -0
- package/dist/core/json-persistence.js +111 -0
- package/dist/core/json-persistence.js.map +1 -0
- package/dist/core/logger.d.ts +62 -0
- package/dist/core/logger.d.ts.map +1 -0
- package/dist/core/logger.js +252 -0
- package/dist/core/logger.js.map +1 -0
- package/dist/core/orchestrator-fixed.d.ts +81 -0
- package/dist/core/orchestrator-fixed.d.ts.map +1 -0
- package/dist/core/orchestrator-fixed.js +213 -0
- package/dist/core/orchestrator-fixed.js.map +1 -0
- package/dist/core/orchestrator.d.ts +141 -0
- package/dist/core/orchestrator.d.ts.map +1 -0
- package/dist/core/orchestrator.js +1166 -0
- package/dist/core/orchestrator.js.map +1 -0
- package/dist/core/version.d.ts +10 -0
- package/dist/core/version.d.ts.map +1 -0
- package/dist/core/version.js +36 -0
- package/dist/core/version.js.map +1 -0
- package/dist/enterprise/analytics-manager.d.ts +489 -0
- package/dist/enterprise/analytics-manager.d.ts.map +1 -0
- package/dist/enterprise/analytics-manager.js +956 -0
- package/dist/enterprise/analytics-manager.js.map +1 -0
- package/dist/enterprise/audit-manager.d.ts +459 -0
- package/dist/enterprise/audit-manager.d.ts.map +1 -0
- package/dist/enterprise/audit-manager.js +1014 -0
- package/dist/enterprise/audit-manager.js.map +1 -0
- package/dist/enterprise/cloud-manager.d.ts +435 -0
- package/dist/enterprise/cloud-manager.d.ts.map +1 -0
- package/dist/enterprise/cloud-manager.js +789 -0
- package/dist/enterprise/cloud-manager.js.map +1 -0
- package/dist/enterprise/deployment-manager.d.ts +328 -0
- package/dist/enterprise/deployment-manager.d.ts.map +1 -0
- package/dist/enterprise/deployment-manager.js +830 -0
- package/dist/enterprise/deployment-manager.js.map +1 -0
- package/dist/enterprise/project-manager.d.ts +228 -0
- package/dist/enterprise/project-manager.d.ts.map +1 -0
- package/dist/enterprise/project-manager.js +537 -0
- package/dist/enterprise/project-manager.js.map +1 -0
- package/dist/enterprise/security-manager.d.ts +422 -0
- package/dist/enterprise/security-manager.d.ts.map +1 -0
- package/dist/enterprise/security-manager.js +910 -0
- package/dist/enterprise/security-manager.js.map +1 -0
- package/dist/execution/agent-executor.d.ts +80 -0
- package/dist/execution/agent-executor.d.ts.map +1 -0
- package/dist/execution/agent-executor.js +220 -0
- package/dist/execution/agent-executor.js.map +1 -0
- package/dist/execution/provider-manager.d.ts +65 -0
- package/dist/execution/provider-manager.d.ts.map +1 -0
- package/dist/execution/provider-manager.js +144 -0
- package/dist/execution/provider-manager.js.map +1 -0
- package/dist/hive-mind/core/Agent.d.ts +137 -0
- package/dist/hive-mind/core/Agent.d.ts.map +1 -0
- package/dist/hive-mind/core/Agent.js +567 -0
- package/dist/hive-mind/core/Agent.js.map +1 -0
- package/dist/hive-mind/core/Communication.d.ts +116 -0
- package/dist/hive-mind/core/Communication.d.ts.map +1 -0
- package/dist/hive-mind/core/Communication.js +407 -0
- package/dist/hive-mind/core/Communication.js.map +1 -0
- package/dist/hive-mind/core/DatabaseManager.d.ts +99 -0
- package/dist/hive-mind/core/DatabaseManager.d.ts.map +1 -0
- package/dist/hive-mind/core/DatabaseManager.js +648 -0
- package/dist/hive-mind/core/DatabaseManager.js.map +1 -0
- package/dist/hive-mind/core/HiveMind.d.ts +90 -0
- package/dist/hive-mind/core/HiveMind.d.ts.map +1 -0
- package/dist/hive-mind/core/HiveMind.js +455 -0
- package/dist/hive-mind/core/HiveMind.js.map +1 -0
- package/dist/hive-mind/core/Memory.d.ts +235 -0
- package/dist/hive-mind/core/Memory.d.ts.map +1 -0
- package/dist/hive-mind/core/Memory.js +1192 -0
- package/dist/hive-mind/core/Memory.js.map +1 -0
- package/dist/hive-mind/core/Queen.d.ts +115 -0
- package/dist/hive-mind/core/Queen.d.ts.map +1 -0
- package/dist/hive-mind/core/Queen.js +649 -0
- package/dist/hive-mind/core/Queen.js.map +1 -0
- package/dist/hive-mind/integration/ConsensusEngine.d.ts +117 -0
- package/dist/hive-mind/integration/ConsensusEngine.d.ts.map +1 -0
- package/dist/hive-mind/integration/ConsensusEngine.js +478 -0
- package/dist/hive-mind/integration/ConsensusEngine.js.map +1 -0
- package/dist/hive-mind/integration/MCPToolWrapper.d.ts +172 -0
- package/dist/hive-mind/integration/MCPToolWrapper.d.ts.map +1 -0
- package/dist/hive-mind/integration/MCPToolWrapper.js +217 -0
- package/dist/hive-mind/integration/MCPToolWrapper.js.map +1 -0
- package/dist/hive-mind/integration/SwarmOrchestrator.d.ts +172 -0
- package/dist/hive-mind/integration/SwarmOrchestrator.d.ts.map +1 -0
- package/dist/hive-mind/integration/SwarmOrchestrator.js +748 -0
- package/dist/hive-mind/integration/SwarmOrchestrator.js.map +1 -0
- package/dist/hive-mind/types.d.ts +314 -0
- package/dist/hive-mind/types.d.ts.map +1 -0
- package/dist/hive-mind/types.js +7 -0
- package/dist/hive-mind/types.js.map +1 -0
- package/dist/mcp/auth.d.ts +80 -0
- package/dist/mcp/auth.d.ts.map +1 -0
- package/dist/mcp/auth.js +350 -0
- package/dist/mcp/auth.js.map +1 -0
- package/dist/mcp/claude-flow-tools.d.ts +13 -0
- package/dist/mcp/claude-flow-tools.d.ts.map +1 -0
- package/dist/mcp/claude-flow-tools.js +1398 -0
- package/dist/mcp/claude-flow-tools.js.map +1 -0
- package/dist/mcp/load-balancer.d.ts +88 -0
- package/dist/mcp/load-balancer.d.ts.map +1 -0
- package/dist/mcp/load-balancer.js +393 -0
- package/dist/mcp/load-balancer.js.map +1 -0
- package/dist/mcp/router.d.ts +54 -0
- package/dist/mcp/router.d.ts.map +1 -0
- package/dist/mcp/router.js +204 -0
- package/dist/mcp/router.js.map +1 -0
- package/dist/mcp/ruv-swarm-tools.d.ts +58 -0
- package/dist/mcp/ruv-swarm-tools.d.ts.map +1 -0
- package/dist/mcp/ruv-swarm-tools.js +568 -0
- package/dist/mcp/ruv-swarm-tools.js.map +1 -0
- package/dist/mcp/server.d.ts +75 -0
- package/dist/mcp/server.d.ts.map +1 -0
- package/dist/mcp/server.js +538 -0
- package/dist/mcp/server.js.map +1 -0
- package/dist/mcp/session-manager.d.ts +60 -0
- package/dist/mcp/session-manager.d.ts.map +1 -0
- package/dist/mcp/session-manager.js +323 -0
- package/dist/mcp/session-manager.js.map +1 -0
- package/dist/mcp/swarm-tools.d.ts +87 -0
- package/dist/mcp/swarm-tools.d.ts.map +1 -0
- package/dist/mcp/swarm-tools.js +731 -0
- package/dist/mcp/swarm-tools.js.map +1 -0
- package/dist/mcp/tools.d.ts +145 -0
- package/dist/mcp/tools.d.ts.map +1 -0
- package/dist/mcp/tools.js +434 -0
- package/dist/mcp/tools.js.map +1 -0
- package/dist/mcp/transports/base.d.ts +22 -0
- package/dist/mcp/transports/base.d.ts.map +1 -0
- package/dist/mcp/transports/base.js +5 -0
- package/dist/mcp/transports/base.js.map +1 -0
- package/dist/mcp/transports/http.d.ts +48 -0
- package/dist/mcp/transports/http.d.ts.map +1 -0
- package/dist/mcp/transports/http.js +400 -0
- package/dist/mcp/transports/http.js.map +1 -0
- package/dist/mcp/transports/stdio.d.ts +37 -0
- package/dist/mcp/transports/stdio.d.ts.map +1 -0
- package/dist/mcp/transports/stdio.js +206 -0
- package/dist/mcp/transports/stdio.js.map +1 -0
- package/dist/memory/advanced-serializer.d.ts +159 -0
- package/dist/memory/advanced-serializer.d.ts.map +1 -0
- package/dist/memory/advanced-serializer.js +564 -0
- package/dist/memory/advanced-serializer.js.map +1 -0
- package/dist/memory/backends/base.d.ts +21 -0
- package/dist/memory/backends/base.d.ts.map +1 -0
- package/dist/memory/backends/base.js +5 -0
- package/dist/memory/backends/base.js.map +1 -0
- package/dist/memory/backends/markdown.d.ts +35 -0
- package/dist/memory/backends/markdown.d.ts.map +1 -0
- package/dist/memory/backends/markdown.js +223 -0
- package/dist/memory/backends/markdown.js.map +1 -0
- package/dist/memory/backends/sqlite.d.ts +33 -0
- package/dist/memory/backends/sqlite.d.ts.map +1 -0
- package/dist/memory/backends/sqlite.js +291 -0
- package/dist/memory/backends/sqlite.js.map +1 -0
- package/dist/memory/cache.d.ts +65 -0
- package/dist/memory/cache.d.ts.map +1 -0
- package/dist/memory/cache.js +188 -0
- package/dist/memory/cache.js.map +1 -0
- package/dist/memory/distributed-memory.d.ts +188 -0
- package/dist/memory/distributed-memory.d.ts.map +1 -0
- package/dist/memory/distributed-memory.js +710 -0
- package/dist/memory/distributed-memory.js.map +1 -0
- package/dist/memory/enhanced-session-serializer.d.ts +115 -0
- package/dist/memory/enhanced-session-serializer.d.ts.map +1 -0
- package/dist/memory/enhanced-session-serializer.js +478 -0
- package/dist/memory/enhanced-session-serializer.js.map +1 -0
- package/dist/memory/fallback-store.d.ts +28 -0
- package/dist/memory/fallback-store.d.ts.map +1 -0
- package/dist/memory/fallback-store.js +101 -0
- package/dist/memory/fallback-store.js.map +1 -0
- package/dist/memory/in-memory-store.d.ts +37 -0
- package/dist/memory/in-memory-store.d.ts.map +1 -0
- package/dist/memory/in-memory-store.js +174 -0
- package/dist/memory/in-memory-store.js.map +1 -0
- package/dist/memory/indexer.d.ts +52 -0
- package/dist/memory/indexer.d.ts.map +1 -0
- package/dist/memory/indexer.js +191 -0
- package/dist/memory/indexer.js.map +1 -0
- package/dist/memory/manager.d.ts +58 -0
- package/dist/memory/manager.d.ts.map +1 -0
- package/dist/memory/manager.js +423 -0
- package/dist/memory/manager.js.map +1 -0
- package/dist/memory/sqlite-store.d.ts +34 -0
- package/dist/memory/sqlite-store.d.ts.map +1 -0
- package/dist/memory/sqlite-store.js +268 -0
- package/dist/memory/sqlite-store.js.map +1 -0
- package/dist/memory/sqlite-wrapper.d.ts +38 -0
- package/dist/memory/sqlite-wrapper.d.ts.map +1 -0
- package/dist/memory/sqlite-wrapper.js +152 -0
- package/dist/memory/sqlite-wrapper.js.map +1 -0
- package/dist/memory/swarm-memory.d.ts +91 -0
- package/dist/memory/swarm-memory.d.ts.map +1 -0
- package/dist/memory/swarm-memory.js +454 -0
- package/dist/memory/swarm-memory.js.map +1 -0
- package/dist/memory/unified-memory-manager.d.ts +116 -0
- package/dist/memory/unified-memory-manager.d.ts.map +1 -0
- package/dist/memory/unified-memory-manager.js +397 -0
- package/dist/memory/unified-memory-manager.js.map +1 -0
- package/dist/migration/logger.d.ts +26 -0
- package/dist/migration/logger.d.ts.map +1 -0
- package/dist/migration/logger.js +145 -0
- package/dist/migration/logger.js.map +1 -0
- package/dist/migration/migration-analyzer.d.ts +18 -0
- package/dist/migration/migration-analyzer.d.ts.map +1 -0
- package/dist/migration/migration-analyzer.js +284 -0
- package/dist/migration/migration-analyzer.js.map +1 -0
- package/dist/migration/migration-runner.d.ts +26 -0
- package/dist/migration/migration-runner.d.ts.map +1 -0
- package/dist/migration/migration-runner.js +505 -0
- package/dist/migration/migration-runner.js.map +1 -0
- package/dist/migration/migration-validator.d.ts +17 -0
- package/dist/migration/migration-validator.d.ts.map +1 -0
- package/dist/migration/migration-validator.js +309 -0
- package/dist/migration/migration-validator.js.map +1 -0
- package/dist/migration/progress-reporter.d.ts +28 -0
- package/dist/migration/progress-reporter.d.ts.map +1 -0
- package/dist/migration/progress-reporter.js +163 -0
- package/dist/migration/progress-reporter.js.map +1 -0
- package/dist/migration/rollback-manager.d.ts +24 -0
- package/dist/migration/rollback-manager.d.ts.map +1 -0
- package/dist/migration/rollback-manager.js +351 -0
- package/dist/migration/rollback-manager.js.map +1 -0
- package/dist/migration/types.d.ts +103 -0
- package/dist/migration/types.d.ts.map +1 -0
- package/dist/migration/types.js +6 -0
- package/dist/migration/types.js.map +1 -0
- package/dist/reasoningbank/reasoningbank-adapter.d.ts +93 -0
- package/dist/reasoningbank/reasoningbank-adapter.d.ts.map +1 -0
- package/dist/reasoningbank/reasoningbank-adapter.js +365 -0
- package/dist/reasoningbank/reasoningbank-adapter.js.map +1 -0
- package/dist/sdk/query-control.d.ts +131 -0
- package/dist/sdk/query-control.d.ts.map +1 -0
- package/dist/sdk/query-control.js +363 -0
- package/dist/sdk/query-control.js.map +1 -0
- package/dist/sdk/session-forking.d.ts +109 -0
- package/dist/sdk/session-forking.d.ts.map +1 -0
- package/dist/sdk/session-forking.js +275 -0
- package/dist/sdk/session-forking.js.map +1 -0
- package/dist/src/cli/simple-cli.js +79 -173
- package/dist/src/cli/simple-cli.js.map +1 -1
- package/dist/src/cli/simple-commands/init/index.js +36 -22
- package/dist/src/cli/simple-commands/init/index.js.map +1 -1
- package/dist/src/cli/simple-commands/init/skills-copier.js +186 -0
- package/dist/src/cli/simple-commands/init/skills-copier.js.map +1 -0
- package/dist/src/cli/simple-commands/memory.js +12 -1
- package/dist/src/cli/simple-commands/memory.js.map +1 -1
- package/dist/src/cli/simple-commands/process-ui-enhanced.js +1 -1
- package/dist/src/cli/simple-commands/process-ui-enhanced.js.map +1 -1
- package/dist/src/cli/simple-commands/status.js +1 -1
- package/dist/src/cli/simple-commands/status.js.map +1 -1
- package/dist/src/cli/validation-helper.js.map +1 -1
- package/dist/src/core/version.js +1 -1
- package/dist/src/reasoningbank/reasoningbank-adapter.js +152 -99
- package/dist/src/reasoningbank/reasoningbank-adapter.js.map +1 -1
- package/dist/src/utils/key-redactor.js.map +1 -1
- package/dist/src/utils/metrics-reader.js +0 -10
- package/dist/swarm/types.d.ts +578 -0
- package/dist/swarm/types.d.ts.map +1 -0
- package/dist/swarm/types.js +54 -0
- package/dist/swarm/types.js.map +1 -0
- package/dist/terminal/adapters/base.d.ts +40 -0
- package/dist/terminal/adapters/base.d.ts.map +1 -0
- package/dist/terminal/adapters/base.js +5 -0
- package/dist/terminal/adapters/base.js.map +1 -0
- package/dist/terminal/adapters/native.d.ts +19 -0
- package/dist/terminal/adapters/native.d.ts.map +1 -0
- package/dist/terminal/adapters/native.js +414 -0
- package/dist/terminal/adapters/native.js.map +1 -0
- package/dist/terminal/adapters/vscode.d.ts +23 -0
- package/dist/terminal/adapters/vscode.d.ts.map +1 -0
- package/dist/terminal/adapters/vscode.js +267 -0
- package/dist/terminal/adapters/vscode.js.map +1 -0
- package/dist/terminal/manager.d.ts +59 -0
- package/dist/terminal/manager.d.ts.map +1 -0
- package/dist/terminal/manager.js +235 -0
- package/dist/terminal/manager.js.map +1 -0
- package/dist/terminal/pool.d.ts +32 -0
- package/dist/terminal/pool.d.ts.map +1 -0
- package/dist/terminal/pool.js +208 -0
- package/dist/terminal/pool.js.map +1 -0
- package/dist/terminal/session.d.ts +41 -0
- package/dist/terminal/session.d.ts.map +1 -0
- package/dist/terminal/session.js +210 -0
- package/dist/terminal/session.js.map +1 -0
- package/dist/utils/error-handler.d.ts +14 -0
- package/dist/utils/error-handler.d.ts.map +1 -0
- package/dist/utils/error-handler.js +29 -0
- package/dist/utils/error-handler.js.map +1 -0
- package/dist/utils/errors.d.ts +121 -0
- package/dist/utils/errors.d.ts.map +1 -0
- package/dist/utils/errors.js +194 -0
- package/dist/utils/errors.js.map +1 -0
- package/dist/utils/formatters.d.ts +15 -0
- package/dist/utils/formatters.d.ts.map +1 -0
- package/dist/utils/formatters.js +75 -0
- package/dist/utils/formatters.js.map +1 -0
- package/dist/utils/helpers.d.ts +134 -0
- package/dist/utils/helpers.d.ts.map +1 -0
- package/dist/utils/helpers.js +444 -0
- package/dist/utils/helpers.js.map +1 -0
- package/dist/utils/key-redactor.d.ts +46 -0
- package/dist/utils/key-redactor.d.ts.map +1 -0
- package/dist/utils/key-redactor.js +153 -0
- package/dist/utils/key-redactor.js.map +1 -0
- package/dist/utils/metrics-reader.d.ts +67 -0
- package/dist/utils/metrics-reader.d.ts.map +1 -0
- package/dist/utils/metrics-reader.js +201 -0
- package/dist/utils/metrics-reader.js.map +1 -0
- package/dist/utils/npx-isolated-cache.d.ts +17 -0
- package/dist/utils/npx-isolated-cache.d.ts.map +1 -0
- package/dist/utils/npx-isolated-cache.js +140 -0
- package/dist/utils/npx-isolated-cache.js.map +1 -0
- package/dist/utils/project-root.d.ts +35 -0
- package/dist/utils/project-root.d.ts.map +1 -0
- package/dist/utils/project-root.js +115 -0
- package/dist/utils/project-root.js.map +1 -0
- package/dist/utils/type-guards.d.ts +117 -0
- package/dist/utils/type-guards.d.ts.map +1 -0
- package/dist/utils/type-guards.js +166 -0
- package/dist/utils/type-guards.js.map +1 -0
- package/dist/utils/types.d.ts +568 -0
- package/dist/utils/types.d.ts.map +1 -0
- package/dist/utils/types.js +37 -0
- package/dist/utils/types.js.map +1 -0
- package/docker-test/.claude-flow/metrics/performance.json +3 -3
- package/docker-test/.claude-flow/metrics/task-metrics.json +3 -3
- package/docker-test/Dockerfile.alpha11-test +26 -0
- package/docker-test/Dockerfile.alpha12-test +47 -0
- package/docker-test/Dockerfile.local-test +42 -0
- package/docker-test/test-alpha11.sh +244 -0
- package/docker-test/test-local-fix.sh +235 -0
- package/docs/COMMANDS_TO_SKILLS_MIGRATION.md +382 -0
- package/docs/FINAL_INIT_STRUCTURE.md +320 -0
- package/docs/RELEASE-NOTES-v2.7.0-alpha.10.md +309 -0
- package/docs/RELEASE-NOTES-v2.7.0-alpha.9.md +208 -0
- package/docs/integrations/reasoningbank/MIGRATION-v1.5.13.md +1 -1
- package/docs/reasoningbank/CLAUDE-CODE-INTEGRATION.md +563 -0
- package/docs/reasoningbank/EXAMPLES.md +611 -0
- package/docs/reasoningbank/README.md +1139 -0
- package/docs/reasoningbank/agentic-flow-integration.md +800 -0
- package/docs/reasoningbank/architecture.md +680 -0
- package/docs/reasoningbank/google-research.md +1017 -0
- package/docs/reasoningbank/models/.claude-flow/metrics/agent-metrics.json +1 -0
- package/docs/reasoningbank/models/.claude-flow/metrics/performance.json +87 -0
- package/docs/reasoningbank/models/.claude-flow/metrics/task-metrics.json +10 -0
- package/docs/reasoningbank/models/HOW-TO-TRAIN.md +537 -0
- package/docs/reasoningbank/models/HOW-TO-USE.md +655 -0
- package/docs/reasoningbank/models/INDEX.md +276 -0
- package/docs/reasoningbank/models/README.md +345 -0
- package/docs/reasoningbank/models/_docs/COMPATIBILITY.md +448 -0
- package/docs/reasoningbank/models/_docs/COMPLETION-SUMMARY.md +478 -0
- package/docs/reasoningbank/models/_docs/README.md +80 -0
- package/docs/reasoningbank/models/_docs/SCHEMA-UPDATE-SUMMARY.md +376 -0
- package/docs/reasoningbank/models/_docs/VERIFICATION-COMPLETE.md +370 -0
- package/docs/reasoningbank/models/_scripts/README.md +270 -0
- package/docs/reasoningbank/models/_scripts/benchmark-all.cjs +407 -0
- package/docs/reasoningbank/models/_scripts/fix-schema-compatibility.cjs +300 -0
- package/docs/reasoningbank/models/_scripts/schema-validator.cjs +360 -0
- package/docs/reasoningbank/models/_scripts/training-coordinator.cjs +85 -0
- package/docs/reasoningbank/models/_scripts/validation-suite.cjs +239 -0
- package/docs/reasoningbank/models/benchmark-output.log +41 -0
- package/docs/reasoningbank/models/code-reasoning/.claude-flow/metrics/agent-metrics.json +1 -0
- package/docs/reasoningbank/models/code-reasoning/.claude-flow/metrics/performance.json +87 -0
- package/docs/reasoningbank/models/code-reasoning/.claude-flow/metrics/task-metrics.json +18 -0
- package/docs/reasoningbank/models/code-reasoning/.swarm/SCHEMA-FIX-REPORT.md +69 -0
- package/docs/reasoningbank/models/code-reasoning/.swarm/memory.db +0 -0
- package/docs/reasoningbank/models/code-reasoning/.swarm/memory.db.backup +0 -0
- package/docs/reasoningbank/models/code-reasoning/README.md +451 -0
- package/docs/reasoningbank/models/code-reasoning/TRAINING-SUMMARY.md +416 -0
- package/docs/reasoningbank/models/code-reasoning/train-code.js +2059 -0
- package/docs/reasoningbank/models/code-reasoning/training.log +18 -0
- package/docs/reasoningbank/models/code-reasoning/validation-report.md +349 -0
- package/docs/reasoningbank/models/domain-expert/.claude-flow/metrics/agent-metrics.json +1 -0
- package/docs/reasoningbank/models/domain-expert/.claude-flow/metrics/performance.json +87 -0
- package/docs/reasoningbank/models/domain-expert/.claude-flow/metrics/task-metrics.json +18 -0
- package/docs/reasoningbank/models/domain-expert/COMPLETION-REPORT.md +451 -0
- package/docs/reasoningbank/models/domain-expert/INDEX.md +182 -0
- package/docs/reasoningbank/models/domain-expert/README.md +215 -0
- package/docs/reasoningbank/models/domain-expert/SCHEMA-FIX-REPORT.md +65 -0
- package/docs/reasoningbank/models/domain-expert/SUMMARY.md +286 -0
- package/docs/reasoningbank/models/domain-expert/USAGE.md +394 -0
- package/docs/reasoningbank/models/domain-expert/demo-queries.sh +42 -0
- package/docs/reasoningbank/models/domain-expert/memory.db +0 -0
- package/docs/reasoningbank/models/domain-expert/train-domain.js +1324 -0
- package/docs/reasoningbank/models/domain-expert/validate.js +218 -0
- package/docs/reasoningbank/models/domain-expert/validation-report.md +89 -0
- package/docs/reasoningbank/models/google-research/README.md +455 -0
- package/docs/reasoningbank/models/google-research/SCHEMA-FIX-REPORT.md +65 -0
- package/docs/reasoningbank/models/google-research/memory.db +0 -0
- package/docs/reasoningbank/models/google-research/memory.db.backup +0 -0
- package/docs/reasoningbank/models/google-research/train-google.js +697 -0
- package/docs/reasoningbank/models/google-research/validation-report.md +99 -0
- package/docs/reasoningbank/models/google-research/validation-suite.js +323 -0
- package/docs/reasoningbank/models/problem-solving/.claude-flow/metrics/agent-metrics.json +1 -0
- package/docs/reasoningbank/models/problem-solving/.claude-flow/metrics/performance.json +87 -0
- package/docs/reasoningbank/models/problem-solving/.claude-flow/metrics/task-metrics.json +10 -0
- package/docs/reasoningbank/models/problem-solving/.swarm/memory.db +0 -0
- package/docs/reasoningbank/models/problem-solving/README.md +629 -0
- package/docs/reasoningbank/models/problem-solving/SCHEMA-FIX-REPORT.md +66 -0
- package/docs/reasoningbank/models/problem-solving/TRAINING_SUMMARY.md +524 -0
- package/docs/reasoningbank/models/problem-solving/memory.db +0 -0
- package/docs/reasoningbank/models/problem-solving/memory.db.backup +0 -0
- package/docs/reasoningbank/models/problem-solving/train-problem.js +1319 -0
- package/docs/reasoningbank/models/problem-solving/validation-report.md +300 -0
- package/docs/reasoningbank/models/safla/.claude-flow/metrics/agent-metrics.json +1 -0
- package/docs/reasoningbank/models/safla/.claude-flow/metrics/performance.json +87 -0
- package/docs/reasoningbank/models/safla/.claude-flow/metrics/task-metrics.json +10 -0
- package/docs/reasoningbank/models/safla/CHEATSHEET.md +277 -0
- package/docs/reasoningbank/models/safla/COMPLETION_REPORT.txt +108 -0
- package/docs/reasoningbank/models/safla/MANIFEST.txt +104 -0
- package/docs/reasoningbank/models/safla/QUICKSTART.md +349 -0
- package/docs/reasoningbank/models/safla/README.md +457 -0
- package/docs/reasoningbank/models/safla/SCHEMA-FIX-REPORT.md +68 -0
- package/docs/reasoningbank/models/safla/TRAINING_SUMMARY.md +383 -0
- package/docs/reasoningbank/models/safla/memory/memory-store.json +11 -0
- package/docs/reasoningbank/models/safla/memory.db +0 -0
- package/docs/reasoningbank/models/safla/memory.db.backup +0 -0
- package/docs/reasoningbank/models/safla/node_modules/.package-lock.json +456 -0
- package/docs/reasoningbank/models/safla/node_modules/base64-js/LICENSE +21 -0
- package/docs/reasoningbank/models/safla/node_modules/base64-js/README.md +34 -0
- package/docs/reasoningbank/models/safla/node_modules/base64-js/base64js.min.js +1 -0
- package/docs/reasoningbank/models/safla/node_modules/base64-js/index.d.ts +3 -0
- package/docs/reasoningbank/models/safla/node_modules/base64-js/index.js +150 -0
- package/docs/reasoningbank/models/safla/node_modules/base64-js/package.json +47 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/LICENSE +21 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/README.md +99 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/binding.gyp +38 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/build/Release/better_sqlite3.node +0 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/deps/common.gypi +68 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/deps/copy.js +31 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/deps/defines.gypi +41 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/deps/download.sh +122 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/deps/patches/1208.patch +15 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/deps/sqlite3/sqlite3.c +261480 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/deps/sqlite3/sqlite3.h +13715 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/deps/sqlite3/sqlite3ext.h +719 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/deps/sqlite3.gyp +80 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/deps/test_extension.c +21 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/lib/database.js +90 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/lib/index.js +3 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/lib/methods/aggregate.js +43 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/lib/methods/backup.js +67 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/lib/methods/function.js +31 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/lib/methods/inspect.js +7 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/lib/methods/pragma.js +12 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/lib/methods/serialize.js +16 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/lib/methods/table.js +189 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/lib/methods/transaction.js +78 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/lib/methods/wrappers.js +54 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/lib/sqlite-error.js +20 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/lib/util.js +12 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/package.json +54 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/src/better_sqlite3.cpp +2186 -0
- package/docs/reasoningbank/models/safla/node_modules/better-sqlite3/src/better_sqlite3.hpp +1036 -0
- package/docs/reasoningbank/models/safla/node_modules/bindings/LICENSE.md +22 -0
- package/docs/reasoningbank/models/safla/node_modules/bindings/README.md +98 -0
- package/docs/reasoningbank/models/safla/node_modules/bindings/bindings.js +221 -0
- package/docs/reasoningbank/models/safla/node_modules/bindings/package.json +28 -0
- package/docs/reasoningbank/models/safla/node_modules/bl/.travis.yml +17 -0
- package/docs/reasoningbank/models/safla/node_modules/bl/BufferList.js +396 -0
- package/docs/reasoningbank/models/safla/node_modules/bl/LICENSE.md +13 -0
- package/docs/reasoningbank/models/safla/node_modules/bl/README.md +247 -0
- package/docs/reasoningbank/models/safla/node_modules/bl/bl.js +84 -0
- package/docs/reasoningbank/models/safla/node_modules/bl/package.json +37 -0
- package/docs/reasoningbank/models/safla/node_modules/bl/test/convert.js +21 -0
- package/docs/reasoningbank/models/safla/node_modules/bl/test/indexOf.js +492 -0
- package/docs/reasoningbank/models/safla/node_modules/bl/test/isBufferList.js +32 -0
- package/docs/reasoningbank/models/safla/node_modules/bl/test/test.js +869 -0
- package/docs/reasoningbank/models/safla/node_modules/buffer/AUTHORS.md +70 -0
- package/docs/reasoningbank/models/safla/node_modules/buffer/LICENSE +21 -0
- package/docs/reasoningbank/models/safla/node_modules/buffer/README.md +410 -0
- package/docs/reasoningbank/models/safla/node_modules/buffer/index.d.ts +186 -0
- package/docs/reasoningbank/models/safla/node_modules/buffer/index.js +1817 -0
- package/docs/reasoningbank/models/safla/node_modules/buffer/package.json +96 -0
- package/docs/reasoningbank/models/safla/node_modules/chownr/LICENSE +15 -0
- package/docs/reasoningbank/models/safla/node_modules/chownr/README.md +3 -0
- package/docs/reasoningbank/models/safla/node_modules/chownr/chownr.js +167 -0
- package/docs/reasoningbank/models/safla/node_modules/chownr/package.json +29 -0
- package/docs/reasoningbank/models/safla/node_modules/decompress-response/index.d.ts +22 -0
- package/docs/reasoningbank/models/safla/node_modules/decompress-response/index.js +58 -0
- package/docs/reasoningbank/models/safla/node_modules/decompress-response/license +9 -0
- package/docs/reasoningbank/models/safla/node_modules/decompress-response/package.json +56 -0
- package/docs/reasoningbank/models/safla/node_modules/decompress-response/readme.md +48 -0
- package/docs/reasoningbank/models/safla/node_modules/deep-extend/CHANGELOG.md +46 -0
- package/docs/reasoningbank/models/safla/node_modules/deep-extend/LICENSE +20 -0
- package/docs/reasoningbank/models/safla/node_modules/deep-extend/README.md +91 -0
- package/docs/reasoningbank/models/safla/node_modules/deep-extend/index.js +1 -0
- package/docs/reasoningbank/models/safla/node_modules/deep-extend/lib/deep-extend.js +150 -0
- package/docs/reasoningbank/models/safla/node_modules/deep-extend/package.json +62 -0
- package/docs/reasoningbank/models/safla/node_modules/detect-libc/LICENSE +201 -0
- package/docs/reasoningbank/models/safla/node_modules/detect-libc/README.md +163 -0
- package/docs/reasoningbank/models/safla/node_modules/detect-libc/index.d.ts +14 -0
- package/docs/reasoningbank/models/safla/node_modules/detect-libc/lib/detect-libc.js +313 -0
- package/docs/reasoningbank/models/safla/node_modules/detect-libc/lib/elf.js +39 -0
- package/docs/reasoningbank/models/safla/node_modules/detect-libc/lib/filesystem.js +51 -0
- package/docs/reasoningbank/models/safla/node_modules/detect-libc/lib/process.js +24 -0
- package/docs/reasoningbank/models/safla/node_modules/detect-libc/package.json +44 -0
- package/docs/reasoningbank/models/safla/node_modules/end-of-stream/LICENSE +21 -0
- package/docs/reasoningbank/models/safla/node_modules/end-of-stream/README.md +54 -0
- package/docs/reasoningbank/models/safla/node_modules/end-of-stream/index.js +96 -0
- package/docs/reasoningbank/models/safla/node_modules/end-of-stream/package.json +37 -0
- package/docs/reasoningbank/models/safla/node_modules/expand-template/.travis.yml +6 -0
- package/docs/reasoningbank/models/safla/node_modules/expand-template/LICENSE +21 -0
- package/docs/reasoningbank/models/safla/node_modules/expand-template/README.md +43 -0
- package/docs/reasoningbank/models/safla/node_modules/expand-template/index.js +26 -0
- package/docs/reasoningbank/models/safla/node_modules/expand-template/package.json +29 -0
- package/docs/reasoningbank/models/safla/node_modules/expand-template/test.js +67 -0
- package/docs/reasoningbank/models/safla/node_modules/file-uri-to-path/.travis.yml +30 -0
- package/docs/reasoningbank/models/safla/node_modules/file-uri-to-path/History.md +21 -0
- package/docs/reasoningbank/models/safla/node_modules/file-uri-to-path/LICENSE +20 -0
- package/docs/reasoningbank/models/safla/node_modules/file-uri-to-path/README.md +74 -0
- package/docs/reasoningbank/models/safla/node_modules/file-uri-to-path/index.d.ts +2 -0
- package/docs/reasoningbank/models/safla/node_modules/file-uri-to-path/index.js +66 -0
- package/docs/reasoningbank/models/safla/node_modules/file-uri-to-path/package.json +32 -0
- package/docs/reasoningbank/models/safla/node_modules/file-uri-to-path/test/test.js +24 -0
- package/docs/reasoningbank/models/safla/node_modules/file-uri-to-path/test/tests.json +13 -0
- package/docs/reasoningbank/models/safla/node_modules/fs-constants/LICENSE +21 -0
- package/docs/reasoningbank/models/safla/node_modules/fs-constants/README.md +26 -0
- package/docs/reasoningbank/models/safla/node_modules/fs-constants/browser.js +1 -0
- package/docs/reasoningbank/models/safla/node_modules/fs-constants/index.js +1 -0
- package/docs/reasoningbank/models/safla/node_modules/fs-constants/package.json +19 -0
- package/docs/reasoningbank/models/safla/node_modules/github-from-package/.travis.yml +4 -0
- package/docs/reasoningbank/models/safla/node_modules/github-from-package/LICENSE +18 -0
- package/docs/reasoningbank/models/safla/node_modules/github-from-package/example/package.json +8 -0
- package/docs/reasoningbank/models/safla/node_modules/github-from-package/example/url.js +3 -0
- package/docs/reasoningbank/models/safla/node_modules/github-from-package/index.js +17 -0
- package/docs/reasoningbank/models/safla/node_modules/github-from-package/package.json +30 -0
- package/docs/reasoningbank/models/safla/node_modules/github-from-package/readme.markdown +53 -0
- package/docs/reasoningbank/models/safla/node_modules/github-from-package/test/a.json +8 -0
- package/docs/reasoningbank/models/safla/node_modules/github-from-package/test/b.json +5 -0
- package/docs/reasoningbank/models/safla/node_modules/github-from-package/test/c.json +5 -0
- package/docs/reasoningbank/models/safla/node_modules/github-from-package/test/d.json +7 -0
- package/docs/reasoningbank/models/safla/node_modules/github-from-package/test/e.json +5 -0
- package/docs/reasoningbank/models/safla/node_modules/github-from-package/test/url.js +19 -0
- package/docs/reasoningbank/models/safla/node_modules/ieee754/LICENSE +11 -0
- package/docs/reasoningbank/models/safla/node_modules/ieee754/README.md +51 -0
- package/docs/reasoningbank/models/safla/node_modules/ieee754/index.d.ts +10 -0
- package/docs/reasoningbank/models/safla/node_modules/ieee754/index.js +85 -0
- package/docs/reasoningbank/models/safla/node_modules/ieee754/package.json +52 -0
- package/docs/reasoningbank/models/safla/node_modules/inherits/LICENSE +16 -0
- package/docs/reasoningbank/models/safla/node_modules/inherits/README.md +42 -0
- package/docs/reasoningbank/models/safla/node_modules/inherits/inherits.js +9 -0
- package/docs/reasoningbank/models/safla/node_modules/inherits/inherits_browser.js +27 -0
- package/docs/reasoningbank/models/safla/node_modules/inherits/package.json +29 -0
- package/docs/reasoningbank/models/safla/node_modules/ini/LICENSE +15 -0
- package/docs/reasoningbank/models/safla/node_modules/ini/README.md +102 -0
- package/docs/reasoningbank/models/safla/node_modules/ini/ini.js +206 -0
- package/docs/reasoningbank/models/safla/node_modules/ini/package.json +33 -0
- package/docs/reasoningbank/models/safla/node_modules/mimic-response/index.d.ts +17 -0
- package/docs/reasoningbank/models/safla/node_modules/mimic-response/index.js +77 -0
- package/docs/reasoningbank/models/safla/node_modules/mimic-response/license +9 -0
- package/docs/reasoningbank/models/safla/node_modules/mimic-response/package.json +42 -0
- package/docs/reasoningbank/models/safla/node_modules/mimic-response/readme.md +78 -0
- package/docs/reasoningbank/models/safla/node_modules/minimist/.eslintrc +29 -0
- package/docs/reasoningbank/models/safla/node_modules/minimist/.github/FUNDING.yml +12 -0
- package/docs/reasoningbank/models/safla/node_modules/minimist/.nycrc +14 -0
- package/docs/reasoningbank/models/safla/node_modules/minimist/CHANGELOG.md +298 -0
- package/docs/reasoningbank/models/safla/node_modules/minimist/LICENSE +18 -0
- package/docs/reasoningbank/models/safla/node_modules/minimist/README.md +121 -0
- package/docs/reasoningbank/models/safla/node_modules/minimist/example/parse.js +4 -0
- package/docs/reasoningbank/models/safla/node_modules/minimist/index.js +263 -0
- package/docs/reasoningbank/models/safla/node_modules/minimist/package.json +75 -0
- package/docs/reasoningbank/models/safla/node_modules/minimist/test/all_bool.js +34 -0
- package/docs/reasoningbank/models/safla/node_modules/minimist/test/bool.js +177 -0
- package/docs/reasoningbank/models/safla/node_modules/minimist/test/dash.js +43 -0
- package/docs/reasoningbank/models/safla/node_modules/minimist/test/default_bool.js +37 -0
- package/docs/reasoningbank/models/safla/node_modules/minimist/test/dotted.js +24 -0
- package/docs/reasoningbank/models/safla/node_modules/minimist/test/kv_short.js +32 -0
- package/docs/reasoningbank/models/safla/node_modules/minimist/test/long.js +33 -0
- package/docs/reasoningbank/models/safla/node_modules/minimist/test/num.js +38 -0
- package/docs/reasoningbank/models/safla/node_modules/minimist/test/parse.js +209 -0
- package/docs/reasoningbank/models/safla/node_modules/minimist/test/parse_modified.js +11 -0
- package/docs/reasoningbank/models/safla/node_modules/minimist/test/proto.js +64 -0
- package/docs/reasoningbank/models/safla/node_modules/minimist/test/short.js +69 -0
- package/docs/reasoningbank/models/safla/node_modules/minimist/test/stop_early.js +17 -0
- package/docs/reasoningbank/models/safla/node_modules/minimist/test/unknown.js +104 -0
- package/docs/reasoningbank/models/safla/node_modules/minimist/test/whitespace.js +10 -0
- package/docs/reasoningbank/models/safla/node_modules/mkdirp-classic/LICENSE +21 -0
- package/docs/reasoningbank/models/safla/node_modules/mkdirp-classic/README.md +18 -0
- package/docs/reasoningbank/models/safla/node_modules/mkdirp-classic/index.js +98 -0
- package/docs/reasoningbank/models/safla/node_modules/mkdirp-classic/package.json +18 -0
- package/docs/reasoningbank/models/safla/node_modules/napi-build-utils/.github/workflows/run-npm-tests.yml +31 -0
- package/docs/reasoningbank/models/safla/node_modules/napi-build-utils/LICENSE +21 -0
- package/docs/reasoningbank/models/safla/node_modules/napi-build-utils/README.md +52 -0
- package/docs/reasoningbank/models/safla/node_modules/napi-build-utils/index.js +214 -0
- package/docs/reasoningbank/models/safla/node_modules/napi-build-utils/index.md +0 -0
- package/docs/reasoningbank/models/safla/node_modules/napi-build-utils/package.json +42 -0
- package/docs/reasoningbank/models/safla/node_modules/node-abi/LICENSE +21 -0
- package/docs/reasoningbank/models/safla/node_modules/node-abi/README.md +54 -0
- package/docs/reasoningbank/models/safla/node_modules/node-abi/abi_registry.json +408 -0
- package/docs/reasoningbank/models/safla/node_modules/node-abi/index.js +179 -0
- package/docs/reasoningbank/models/safla/node_modules/node-abi/package.json +45 -0
- package/docs/reasoningbank/models/safla/node_modules/once/LICENSE +15 -0
- package/docs/reasoningbank/models/safla/node_modules/once/README.md +79 -0
- package/docs/reasoningbank/models/safla/node_modules/once/once.js +42 -0
- package/docs/reasoningbank/models/safla/node_modules/once/package.json +33 -0
- package/docs/reasoningbank/models/safla/node_modules/prebuild-install/CHANGELOG.md +131 -0
- package/docs/reasoningbank/models/safla/node_modules/prebuild-install/CONTRIBUTING.md +6 -0
- package/docs/reasoningbank/models/safla/node_modules/prebuild-install/LICENSE +21 -0
- package/docs/reasoningbank/models/safla/node_modules/prebuild-install/README.md +163 -0
- package/docs/reasoningbank/models/safla/node_modules/prebuild-install/asset.js +44 -0
- package/docs/reasoningbank/models/safla/node_modules/prebuild-install/bin.js +78 -0
- package/docs/reasoningbank/models/safla/node_modules/prebuild-install/download.js +142 -0
- package/docs/reasoningbank/models/safla/node_modules/prebuild-install/error.js +14 -0
- package/docs/reasoningbank/models/safla/node_modules/prebuild-install/help.txt +16 -0
- package/docs/reasoningbank/models/safla/node_modules/prebuild-install/index.js +1 -0
- package/docs/reasoningbank/models/safla/node_modules/prebuild-install/log.js +33 -0
- package/docs/reasoningbank/models/safla/node_modules/prebuild-install/package.json +67 -0
- package/docs/reasoningbank/models/safla/node_modules/prebuild-install/proxy.js +35 -0
- package/docs/reasoningbank/models/safla/node_modules/prebuild-install/rc.js +64 -0
- package/docs/reasoningbank/models/safla/node_modules/prebuild-install/util.js +143 -0
- package/docs/reasoningbank/models/safla/node_modules/pump/.github/FUNDING.yml +2 -0
- package/docs/reasoningbank/models/safla/node_modules/pump/.travis.yml +5 -0
- package/docs/reasoningbank/models/safla/node_modules/pump/LICENSE +21 -0
- package/docs/reasoningbank/models/safla/node_modules/pump/README.md +74 -0
- package/docs/reasoningbank/models/safla/node_modules/pump/SECURITY.md +5 -0
- package/docs/reasoningbank/models/safla/node_modules/pump/index.js +86 -0
- package/docs/reasoningbank/models/safla/node_modules/pump/package.json +24 -0
- package/docs/reasoningbank/models/safla/node_modules/pump/test-browser.js +66 -0
- package/docs/reasoningbank/models/safla/node_modules/pump/test-node.js +53 -0
- package/docs/reasoningbank/models/safla/node_modules/rc/LICENSE.APACHE2 +15 -0
- package/docs/reasoningbank/models/safla/node_modules/rc/LICENSE.BSD +26 -0
- package/docs/reasoningbank/models/safla/node_modules/rc/LICENSE.MIT +24 -0
- package/docs/reasoningbank/models/safla/node_modules/rc/README.md +227 -0
- package/docs/reasoningbank/models/safla/node_modules/rc/browser.js +7 -0
- package/docs/reasoningbank/models/safla/node_modules/rc/cli.js +4 -0
- package/docs/reasoningbank/models/safla/node_modules/rc/index.js +53 -0
- package/docs/reasoningbank/models/safla/node_modules/rc/lib/utils.js +104 -0
- package/docs/reasoningbank/models/safla/node_modules/rc/package.json +29 -0
- package/docs/reasoningbank/models/safla/node_modules/rc/test/ini.js +16 -0
- package/docs/reasoningbank/models/safla/node_modules/rc/test/nested-env-vars.js +50 -0
- package/docs/reasoningbank/models/safla/node_modules/rc/test/test.js +59 -0
- package/docs/reasoningbank/models/safla/node_modules/readable-stream/CONTRIBUTING.md +38 -0
- package/docs/reasoningbank/models/safla/node_modules/readable-stream/GOVERNANCE.md +136 -0
- package/docs/reasoningbank/models/safla/node_modules/readable-stream/LICENSE +47 -0
- package/docs/reasoningbank/models/safla/node_modules/readable-stream/README.md +106 -0
- package/docs/reasoningbank/models/safla/node_modules/readable-stream/errors-browser.js +127 -0
- package/docs/reasoningbank/models/safla/node_modules/readable-stream/errors.js +116 -0
- package/docs/reasoningbank/models/safla/node_modules/readable-stream/experimentalWarning.js +17 -0
- package/docs/reasoningbank/models/safla/node_modules/readable-stream/lib/_stream_duplex.js +126 -0
- package/docs/reasoningbank/models/safla/node_modules/readable-stream/lib/_stream_passthrough.js +37 -0
- package/docs/reasoningbank/models/safla/node_modules/readable-stream/lib/_stream_readable.js +1027 -0
- package/docs/reasoningbank/models/safla/node_modules/readable-stream/lib/_stream_transform.js +190 -0
- package/docs/reasoningbank/models/safla/node_modules/readable-stream/lib/_stream_writable.js +641 -0
- package/docs/reasoningbank/models/safla/node_modules/readable-stream/lib/internal/streams/async_iterator.js +180 -0
- package/docs/reasoningbank/models/safla/node_modules/readable-stream/lib/internal/streams/buffer_list.js +183 -0
- package/docs/reasoningbank/models/safla/node_modules/readable-stream/lib/internal/streams/destroy.js +96 -0
- package/docs/reasoningbank/models/safla/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +86 -0
- package/docs/reasoningbank/models/safla/node_modules/readable-stream/lib/internal/streams/from-browser.js +3 -0
- package/docs/reasoningbank/models/safla/node_modules/readable-stream/lib/internal/streams/from.js +52 -0
- package/docs/reasoningbank/models/safla/node_modules/readable-stream/lib/internal/streams/pipeline.js +86 -0
- package/docs/reasoningbank/models/safla/node_modules/readable-stream/lib/internal/streams/state.js +22 -0
- package/docs/reasoningbank/models/safla/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
- package/docs/reasoningbank/models/safla/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
- package/docs/reasoningbank/models/safla/node_modules/readable-stream/package.json +68 -0
- package/docs/reasoningbank/models/safla/node_modules/readable-stream/readable-browser.js +9 -0
- package/docs/reasoningbank/models/safla/node_modules/readable-stream/readable.js +16 -0
- package/docs/reasoningbank/models/safla/node_modules/safe-buffer/LICENSE +21 -0
- package/docs/reasoningbank/models/safla/node_modules/safe-buffer/README.md +584 -0
- package/docs/reasoningbank/models/safla/node_modules/safe-buffer/index.d.ts +187 -0
- package/docs/reasoningbank/models/safla/node_modules/safe-buffer/index.js +65 -0
- package/docs/reasoningbank/models/safla/node_modules/safe-buffer/package.json +51 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/LICENSE +15 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/README.md +664 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/bin/semver.js +191 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/classes/comparator.js +143 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/classes/index.js +7 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/classes/range.js +557 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/classes/semver.js +333 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/functions/clean.js +8 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/functions/cmp.js +54 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/functions/coerce.js +62 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/functions/compare-build.js +9 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/functions/compare-loose.js +5 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/functions/compare.js +7 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/functions/diff.js +60 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/functions/eq.js +5 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/functions/gt.js +5 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/functions/gte.js +5 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/functions/inc.js +21 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/functions/lt.js +5 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/functions/lte.js +5 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/functions/major.js +5 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/functions/minor.js +5 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/functions/neq.js +5 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/functions/parse.js +18 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/functions/patch.js +5 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/functions/prerelease.js +8 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/functions/rcompare.js +5 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/functions/rsort.js +5 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/functions/satisfies.js +12 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/functions/sort.js +5 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/functions/valid.js +8 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/index.js +91 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/internal/constants.js +37 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/internal/debug.js +11 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/internal/identifiers.js +29 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/internal/lrucache.js +42 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/internal/parse-options.js +17 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/internal/re.js +223 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/package.json +78 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/preload.js +4 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/range.bnf +16 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/ranges/gtr.js +6 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/ranges/intersects.js +9 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/ranges/ltr.js +6 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/ranges/max-satisfying.js +27 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/ranges/min-satisfying.js +26 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/ranges/min-version.js +63 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/ranges/outside.js +82 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/ranges/simplify.js +49 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/ranges/subset.js +249 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/ranges/to-comparators.js +10 -0
- package/docs/reasoningbank/models/safla/node_modules/semver/ranges/valid.js +13 -0
- package/docs/reasoningbank/models/safla/node_modules/simple-concat/.travis.yml +3 -0
- package/docs/reasoningbank/models/safla/node_modules/simple-concat/LICENSE +20 -0
- package/docs/reasoningbank/models/safla/node_modules/simple-concat/README.md +44 -0
- package/docs/reasoningbank/models/safla/node_modules/simple-concat/index.js +15 -0
- package/docs/reasoningbank/models/safla/node_modules/simple-concat/package.json +47 -0
- package/docs/reasoningbank/models/safla/node_modules/simple-concat/test/basic.js +41 -0
- package/docs/reasoningbank/models/safla/node_modules/simple-get/.github/dependabot.yml +15 -0
- package/docs/reasoningbank/models/safla/node_modules/simple-get/.github/workflows/ci.yml +23 -0
- package/docs/reasoningbank/models/safla/node_modules/simple-get/LICENSE +20 -0
- package/docs/reasoningbank/models/safla/node_modules/simple-get/README.md +333 -0
- package/docs/reasoningbank/models/safla/node_modules/simple-get/index.js +108 -0
- package/docs/reasoningbank/models/safla/node_modules/simple-get/package.json +67 -0
- package/docs/reasoningbank/models/safla/node_modules/string_decoder/LICENSE +48 -0
- package/docs/reasoningbank/models/safla/node_modules/string_decoder/README.md +47 -0
- package/docs/reasoningbank/models/safla/node_modules/string_decoder/lib/string_decoder.js +296 -0
- package/docs/reasoningbank/models/safla/node_modules/string_decoder/package.json +34 -0
- package/docs/reasoningbank/models/safla/node_modules/strip-json-comments/index.js +70 -0
- package/docs/reasoningbank/models/safla/node_modules/strip-json-comments/license +21 -0
- package/docs/reasoningbank/models/safla/node_modules/strip-json-comments/package.json +42 -0
- package/docs/reasoningbank/models/safla/node_modules/strip-json-comments/readme.md +64 -0
- package/docs/reasoningbank/models/safla/node_modules/tar-fs/.travis.yml +6 -0
- package/docs/reasoningbank/models/safla/node_modules/tar-fs/LICENSE +21 -0
- package/docs/reasoningbank/models/safla/node_modules/tar-fs/README.md +165 -0
- package/docs/reasoningbank/models/safla/node_modules/tar-fs/index.js +363 -0
- package/docs/reasoningbank/models/safla/node_modules/tar-fs/package.json +41 -0
- package/docs/reasoningbank/models/safla/node_modules/tar-fs/test/fixtures/a/hello.txt +1 -0
- package/docs/reasoningbank/models/safla/node_modules/tar-fs/test/fixtures/b/a/test.txt +1 -0
- package/docs/reasoningbank/models/safla/node_modules/tar-fs/test/fixtures/d/file1 +0 -0
- package/docs/reasoningbank/models/safla/node_modules/tar-fs/test/fixtures/d/file2 +0 -0
- package/docs/reasoningbank/models/safla/node_modules/tar-fs/test/fixtures/d/sub-dir/file5 +0 -0
- package/docs/reasoningbank/models/safla/node_modules/tar-fs/test/fixtures/d/sub-files/file3 +0 -0
- package/docs/reasoningbank/models/safla/node_modules/tar-fs/test/fixtures/d/sub-files/file4 +0 -0
- package/docs/reasoningbank/models/safla/node_modules/tar-fs/test/fixtures/e/directory/.ignore +0 -0
- package/docs/reasoningbank/models/safla/node_modules/tar-fs/test/fixtures/e/file +0 -0
- package/docs/reasoningbank/models/safla/node_modules/tar-fs/test/fixtures/invalid.tar +0 -0
- package/docs/reasoningbank/models/safla/node_modules/tar-fs/test/index.js +346 -0
- package/docs/reasoningbank/models/safla/node_modules/tar-stream/LICENSE +21 -0
- package/docs/reasoningbank/models/safla/node_modules/tar-stream/README.md +168 -0
- package/docs/reasoningbank/models/safla/node_modules/tar-stream/extract.js +257 -0
- package/docs/reasoningbank/models/safla/node_modules/tar-stream/headers.js +295 -0
- package/docs/reasoningbank/models/safla/node_modules/tar-stream/index.js +2 -0
- package/docs/reasoningbank/models/safla/node_modules/tar-stream/pack.js +255 -0
- package/docs/reasoningbank/models/safla/node_modules/tar-stream/package.json +58 -0
- package/docs/reasoningbank/models/safla/node_modules/tar-stream/sandbox.js +11 -0
- package/docs/reasoningbank/models/safla/node_modules/tunnel-agent/LICENSE +55 -0
- package/docs/reasoningbank/models/safla/node_modules/tunnel-agent/README.md +4 -0
- package/docs/reasoningbank/models/safla/node_modules/tunnel-agent/index.js +244 -0
- package/docs/reasoningbank/models/safla/node_modules/tunnel-agent/package.json +22 -0
- package/docs/reasoningbank/models/safla/node_modules/util-deprecate/History.md +16 -0
- package/docs/reasoningbank/models/safla/node_modules/util-deprecate/LICENSE +24 -0
- package/docs/reasoningbank/models/safla/node_modules/util-deprecate/README.md +53 -0
- package/docs/reasoningbank/models/safla/node_modules/util-deprecate/browser.js +67 -0
- package/docs/reasoningbank/models/safla/node_modules/util-deprecate/node.js +6 -0
- package/docs/reasoningbank/models/safla/node_modules/util-deprecate/package.json +27 -0
- package/docs/reasoningbank/models/safla/node_modules/wrappy/LICENSE +15 -0
- package/docs/reasoningbank/models/safla/node_modules/wrappy/README.md +36 -0
- package/docs/reasoningbank/models/safla/node_modules/wrappy/package.json +29 -0
- package/docs/reasoningbank/models/safla/node_modules/wrappy/wrappy.js +33 -0
- package/docs/reasoningbank/models/safla/package-lock.json +463 -0
- package/docs/reasoningbank/models/safla/package.json +14 -0
- package/docs/reasoningbank/models/safla/train-safla.js +524 -0
- package/docs/reasoningbank/models/safla/training.log +64 -0
- package/docs/reasoningbank/models/safla/validate-safla.js +449 -0
- package/docs/reasoningbank/models/safla/validation-report.md +115 -0
- package/docs/reasoningbank/models/safla/validation-results.json +189 -0
- package/docs/reasoningbank/tutorial-advanced.md +869 -0
- package/docs/reasoningbank/tutorial-basic.md +626 -0
- package/docs/reports/validation/PROCESS-EXIT-FIX-v2.7.0-alpha.9.md +154 -0
- package/docs/reports/validation/REASONINGBANK-v1.5.13-VALIDATION.md +1 -1
- package/docs/skills/skills-tutorial.md +2910 -0
- package/docs/skills-tutorial.md +1251 -0
- package/package.json +4 -3
- package/src/cli/simple-commands/init/index.js +32 -14
- package/src/cli/simple-commands/init/skills-copier.js +215 -0
- package/src/cli/simple-commands/process-ui-enhanced.js +1 -1
- package/src/cli/simple-commands/status.js +1 -1
- package/src/reasoningbank/reasoningbank-adapter.js +8 -6
- package/.claude/commands/analysis/COMMAND_COMPLIANCE_REPORT.md +0 -54
- package/.claude/commands/analysis/bottleneck-detect.md +0 -162
- package/.claude/commands/analysis/performance-bottlenecks.md +0 -59
- package/.claude/commands/analysis/performance-report.md +0 -25
- package/.claude/commands/flow-nexus/app-store.md +0 -124
- package/.claude/commands/flow-nexus/challenges.md +0 -120
- package/.claude/commands/flow-nexus/login-registration.md +0 -65
- package/.claude/commands/flow-nexus/neural-network.md +0 -134
- package/.claude/commands/flow-nexus/payments.md +0 -116
- package/.claude/commands/flow-nexus/sandbox.md +0 -83
- package/.claude/commands/flow-nexus/swarm.md +0 -87
- package/.claude/commands/flow-nexus/user-tools.md +0 -152
- package/.claude/commands/flow-nexus/workflow.md +0 -115
- package/.claude/commands/github/code-review-swarm.md +0 -514
- package/.claude/commands/github/github-modes.md +0 -147
- package/.claude/commands/github/issue-tracker.md +0 -292
- package/.claude/commands/github/multi-repo-swarm.md +0 -519
- package/.claude/commands/github/pr-manager.md +0 -170
- package/.claude/commands/github/project-board-sync.md +0 -471
- package/.claude/commands/github/release-manager.md +0 -338
- package/.claude/commands/github/release-swarm.md +0 -544
- package/.claude/commands/github/repo-architect.md +0 -367
- package/.claude/commands/github/swarm-issue.md +0 -482
- package/.claude/commands/github/swarm-pr.md +0 -285
- package/.claude/commands/github/sync-coordinator.md +0 -301
- package/.claude/commands/github/workflow-automation.md +0 -442
- package/.claude/commands/hive-mind/hive-mind-resume.md +0 -8
- package/.claude/commands/hive-mind/hive-mind-sessions.md +0 -8
- package/.claude/commands/hive-mind/hive-mind-stop.md +0 -8
- package/.claude/commands/hive-mind/hive-mind-wizard.md +0 -8
- package/.claude/commands/hive-mind/hive-mind.md +0 -27
- package/.claude/commands/hooks/overview.md +0 -132
- package/.claude/commands/memory/usage.md +0 -46
- package/.claude/commands/pair/commands.md +0 -546
- package/.claude/commands/pair/config.md +0 -510
- package/.claude/commands/pair/examples.md +0 -512
- package/.claude/commands/pair/modes.md +0 -348
- package/.claude/commands/pair/session.md +0 -407
- package/.claude/commands/pair/start.md +0 -209
- package/.claude/commands/sparc/orchestrator.md +0 -132
- package/.claude/commands/sparc/sparc-modes.md +0 -174
- package/.claude/commands/stream-chain/pipeline.md +0 -121
- package/.claude/commands/stream-chain/run.md +0 -70
- package/.claude/commands/swarm/analysis.md +0 -95
- package/.claude/commands/swarm/development.md +0 -96
- package/.claude/commands/swarm/examples.md +0 -168
- package/.claude/commands/swarm/maintenance.md +0 -102
- package/.claude/commands/swarm/optimization.md +0 -117
- package/.claude/commands/swarm/research.md +0 -136
- package/.claude/commands/swarm/swarm-analysis.md +0 -8
- package/.claude/commands/swarm/swarm-spawn.md +0 -19
- package/.claude/commands/swarm/swarm-strategies.md +0 -8
- package/.claude/commands/swarm/testing.md +0 -131
- package/.claude/commands/truth/start.md +0 -143
- package/.claude/commands/verify/check.md +0 -50
- package/.claude/commands/verify/start.md +0 -128
- /package/{.claude/agents ā docs}/reasoning/README.md +0 -0
- /package/{.claude/agents ā docs}/reasoning/example-reasoning-agent-template.md +0 -0
|
@@ -0,0 +1,1298 @@
|
|
|
1
|
+
import { printSuccess, printError, printWarning, execRuvSwarmHook, checkRuvSwarmAvailable, } from '../utils.js';
|
|
2
|
+
import { SqliteMemoryStore } from '../../memory/sqlite-store.js';
|
|
3
|
+
// Initialize memory store
|
|
4
|
+
let memoryStore = null;
|
|
5
|
+
async function getMemoryStore() {
|
|
6
|
+
if (!memoryStore) {
|
|
7
|
+
memoryStore = new SqliteMemoryStore();
|
|
8
|
+
await memoryStore.initialize();
|
|
9
|
+
}
|
|
10
|
+
return memoryStore;
|
|
11
|
+
}
|
|
12
|
+
// Simple ID generator
|
|
13
|
+
function generateId(prefix = 'id') {
|
|
14
|
+
return `${prefix}-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;
|
|
15
|
+
}
|
|
16
|
+
export async function hooksAction(subArgs, flags) {
|
|
17
|
+
const subcommand = subArgs[0];
|
|
18
|
+
const options = flags;
|
|
19
|
+
if (options.help || options.h || !subcommand) {
|
|
20
|
+
showHooksHelp();
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
try {
|
|
24
|
+
switch (subcommand) {
|
|
25
|
+
// Pre-Operation Hooks
|
|
26
|
+
case 'pre-task':
|
|
27
|
+
await preTaskCommand(subArgs, flags);
|
|
28
|
+
break;
|
|
29
|
+
case 'pre-edit':
|
|
30
|
+
await preEditCommand(subArgs, flags);
|
|
31
|
+
break;
|
|
32
|
+
case 'pre-bash':
|
|
33
|
+
case 'pre-command': // Support both names for compatibility
|
|
34
|
+
await preBashCommand(subArgs, flags);
|
|
35
|
+
break;
|
|
36
|
+
// Post-Operation Hooks
|
|
37
|
+
case 'post-task':
|
|
38
|
+
await postTaskCommand(subArgs, flags);
|
|
39
|
+
break;
|
|
40
|
+
case 'post-edit':
|
|
41
|
+
await postEditCommand(subArgs, flags);
|
|
42
|
+
break;
|
|
43
|
+
case 'post-bash':
|
|
44
|
+
case 'post-command': // Support both names for compatibility
|
|
45
|
+
await postBashCommand(subArgs, flags);
|
|
46
|
+
break;
|
|
47
|
+
case 'post-search':
|
|
48
|
+
await postSearchCommand(subArgs, flags);
|
|
49
|
+
break;
|
|
50
|
+
// MCP Integration Hooks
|
|
51
|
+
case 'mcp-initialized':
|
|
52
|
+
await mcpInitializedCommand(subArgs, flags);
|
|
53
|
+
break;
|
|
54
|
+
case 'agent-spawned':
|
|
55
|
+
await agentSpawnedCommand(subArgs, flags);
|
|
56
|
+
break;
|
|
57
|
+
case 'task-orchestrated':
|
|
58
|
+
await taskOrchestratedCommand(subArgs, flags);
|
|
59
|
+
break;
|
|
60
|
+
case 'neural-trained':
|
|
61
|
+
await neuralTrainedCommand(subArgs, flags);
|
|
62
|
+
break;
|
|
63
|
+
// Session Hooks
|
|
64
|
+
case 'session-end':
|
|
65
|
+
await sessionEndCommand(subArgs, flags);
|
|
66
|
+
break;
|
|
67
|
+
case 'session-restore':
|
|
68
|
+
await sessionRestoreCommand(subArgs, flags);
|
|
69
|
+
break;
|
|
70
|
+
case 'notify':
|
|
71
|
+
await notifyCommand(subArgs, flags);
|
|
72
|
+
break;
|
|
73
|
+
// NEW: PreToolUse Modification Hooks (v2.0.10+)
|
|
74
|
+
case 'modify-bash':
|
|
75
|
+
await modifyBashCommand(subArgs, flags);
|
|
76
|
+
break;
|
|
77
|
+
case 'modify-file':
|
|
78
|
+
await modifyFileCommand(subArgs, flags);
|
|
79
|
+
break;
|
|
80
|
+
case 'modify-git-commit':
|
|
81
|
+
await modifyGitCommitCommand(subArgs, flags);
|
|
82
|
+
break;
|
|
83
|
+
default:
|
|
84
|
+
printError(`Unknown hooks command: ${subcommand}`);
|
|
85
|
+
showHooksHelp();
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
catch (err) {
|
|
89
|
+
printError(`Hooks command failed: ${err.message}`);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
// ===== PRE-OPERATION HOOKS =====
|
|
93
|
+
async function preTaskCommand(subArgs, flags) {
|
|
94
|
+
const options = flags;
|
|
95
|
+
const description = options.description || 'Unnamed task';
|
|
96
|
+
const taskId = options['task-id'] || options.taskId || generateId('task');
|
|
97
|
+
const agentId = options['agent-id'] || options.agentId;
|
|
98
|
+
const autoSpawnAgents = options['auto-spawn-agents'] !== 'false';
|
|
99
|
+
console.log(`š Executing pre-task hook...`);
|
|
100
|
+
console.log(`š Task: ${description}`);
|
|
101
|
+
console.log(`š Task ID: ${taskId}`);
|
|
102
|
+
if (agentId)
|
|
103
|
+
console.log(`š¤ Agent: ${agentId}`);
|
|
104
|
+
try {
|
|
105
|
+
const store = await getMemoryStore();
|
|
106
|
+
const taskData = {
|
|
107
|
+
taskId,
|
|
108
|
+
description,
|
|
109
|
+
agentId,
|
|
110
|
+
autoSpawnAgents,
|
|
111
|
+
status: 'started',
|
|
112
|
+
startedAt: new Date().toISOString(),
|
|
113
|
+
};
|
|
114
|
+
await store.store(`task:${taskId}`, taskData, {
|
|
115
|
+
namespace: 'hooks:pre-task',
|
|
116
|
+
metadata: { hookType: 'pre-task', agentId },
|
|
117
|
+
});
|
|
118
|
+
await store.store(`task-index:${Date.now()}`, {
|
|
119
|
+
taskId,
|
|
120
|
+
description,
|
|
121
|
+
timestamp: new Date().toISOString(),
|
|
122
|
+
}, { namespace: 'task-index' });
|
|
123
|
+
console.log(` š¾ Saved to .swarm/memory.db`);
|
|
124
|
+
// Execute ruv-swarm hook if available (with timeout for npx scenarios)
|
|
125
|
+
try {
|
|
126
|
+
const checkPromise = checkRuvSwarmAvailable();
|
|
127
|
+
const timeoutPromise = new Promise((_, reject) => setTimeout(() => reject(new Error('Timeout')), 3000));
|
|
128
|
+
const isAvailable = await Promise.race([checkPromise, timeoutPromise]);
|
|
129
|
+
if (isAvailable) {
|
|
130
|
+
console.log(`\nš Executing ruv-swarm pre-task hook...`);
|
|
131
|
+
const hookResult = await execRuvSwarmHook('pre-task', {
|
|
132
|
+
description,
|
|
133
|
+
'task-id': taskId,
|
|
134
|
+
'auto-spawn-agents': autoSpawnAgents,
|
|
135
|
+
...(agentId ? { 'agent-id': agentId } : {}),
|
|
136
|
+
});
|
|
137
|
+
if (hookResult.success) {
|
|
138
|
+
await store.store(`task:${taskId}:ruv-output`, {
|
|
139
|
+
output: hookResult.output,
|
|
140
|
+
timestamp: new Date().toISOString(),
|
|
141
|
+
}, { namespace: 'hooks:ruv-swarm' });
|
|
142
|
+
printSuccess(`ā
Pre-task hook completed successfully`);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
catch (err) {
|
|
147
|
+
// Skip ruv-swarm hook if it times out or fails
|
|
148
|
+
console.log(`\nā ļø Skipping ruv-swarm hook (${err.message})`);
|
|
149
|
+
}
|
|
150
|
+
console.log(`\nšÆ TASK PREPARATION COMPLETE`);
|
|
151
|
+
// Close the memory store to prevent hanging
|
|
152
|
+
if (memoryStore && memoryStore.close) {
|
|
153
|
+
memoryStore.close();
|
|
154
|
+
}
|
|
155
|
+
// Force exit after a short delay to ensure cleanup
|
|
156
|
+
setTimeout(() => {
|
|
157
|
+
process.exit(0);
|
|
158
|
+
}, 100);
|
|
159
|
+
}
|
|
160
|
+
catch (err) {
|
|
161
|
+
printError(`Pre-task hook failed: ${err.message}`);
|
|
162
|
+
// Close the memory store on error too
|
|
163
|
+
if (memoryStore && memoryStore.close) {
|
|
164
|
+
memoryStore.close();
|
|
165
|
+
}
|
|
166
|
+
// Force exit after a short delay to ensure cleanup
|
|
167
|
+
setTimeout(() => {
|
|
168
|
+
process.exit(1);
|
|
169
|
+
}, 100);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
async function preEditCommand(subArgs, flags) {
|
|
173
|
+
const options = flags;
|
|
174
|
+
const file = options.file || 'unknown-file';
|
|
175
|
+
const operation = options.operation || 'edit';
|
|
176
|
+
const autoAssignAgents = options['auto-assign-agents'] || false;
|
|
177
|
+
const loadContext = options['load-context'] || false;
|
|
178
|
+
console.log(`š Executing pre-edit hook...`);
|
|
179
|
+
console.log(`š File: ${file}`);
|
|
180
|
+
console.log(`āļø Operation: ${operation}`);
|
|
181
|
+
if (autoAssignAgents)
|
|
182
|
+
console.log(`š¤ Auto-assign agents: ENABLED`);
|
|
183
|
+
if (loadContext)
|
|
184
|
+
console.log(`š Load context: ENABLED`);
|
|
185
|
+
try {
|
|
186
|
+
const store = await getMemoryStore();
|
|
187
|
+
// Auto-assign agents based on file type
|
|
188
|
+
let assignedAgentType = 'general';
|
|
189
|
+
let recommendedAgent = null;
|
|
190
|
+
if (autoAssignAgents) {
|
|
191
|
+
const path = await import('path');
|
|
192
|
+
const ext = path.extname(file).toLowerCase();
|
|
193
|
+
const agentMapping = {
|
|
194
|
+
'.js': 'javascript-developer',
|
|
195
|
+
'.ts': 'typescript-developer',
|
|
196
|
+
'.py': 'python-developer',
|
|
197
|
+
'.go': 'golang-developer',
|
|
198
|
+
'.rs': 'rust-developer',
|
|
199
|
+
'.java': 'java-developer',
|
|
200
|
+
'.cpp': 'cpp-developer',
|
|
201
|
+
'.c': 'c-developer',
|
|
202
|
+
'.css': 'frontend-developer',
|
|
203
|
+
'.html': 'frontend-developer',
|
|
204
|
+
'.vue': 'frontend-developer',
|
|
205
|
+
'.react': 'frontend-developer',
|
|
206
|
+
'.md': 'technical-writer',
|
|
207
|
+
'.yml': 'devops-engineer',
|
|
208
|
+
'.yaml': 'devops-engineer',
|
|
209
|
+
'.json': 'config-specialist',
|
|
210
|
+
'.sql': 'database-expert',
|
|
211
|
+
'.sh': 'system-admin',
|
|
212
|
+
'.dockerfile': 'devops-engineer',
|
|
213
|
+
};
|
|
214
|
+
assignedAgentType = agentMapping[ext] || 'general-developer';
|
|
215
|
+
recommendedAgent = {
|
|
216
|
+
type: assignedAgentType,
|
|
217
|
+
file: file,
|
|
218
|
+
extension: ext,
|
|
219
|
+
recommended: true,
|
|
220
|
+
};
|
|
221
|
+
console.log(` š¤ Recommended agent: ${assignedAgentType}`);
|
|
222
|
+
}
|
|
223
|
+
// Load context if requested
|
|
224
|
+
let contextData = null;
|
|
225
|
+
if (loadContext) {
|
|
226
|
+
try {
|
|
227
|
+
// Check if file exists and get basic info
|
|
228
|
+
const fs = await import('fs');
|
|
229
|
+
const path = await import('path');
|
|
230
|
+
if (fs.existsSync(file)) {
|
|
231
|
+
const stats = fs.statSync(file);
|
|
232
|
+
const dirname = path.dirname(file);
|
|
233
|
+
const basename = path.basename(file);
|
|
234
|
+
contextData = {
|
|
235
|
+
fileExists: true,
|
|
236
|
+
size: stats.size,
|
|
237
|
+
modified: stats.mtime,
|
|
238
|
+
directory: dirname,
|
|
239
|
+
filename: basename,
|
|
240
|
+
isDirectory: stats.isDirectory(),
|
|
241
|
+
};
|
|
242
|
+
console.log(` š Context loaded: ${basename} (${stats.size} bytes)`);
|
|
243
|
+
}
|
|
244
|
+
else {
|
|
245
|
+
contextData = {
|
|
246
|
+
fileExists: false,
|
|
247
|
+
willCreate: true,
|
|
248
|
+
directory: path.dirname(file),
|
|
249
|
+
filename: path.basename(file),
|
|
250
|
+
};
|
|
251
|
+
console.log(` š Context: New file will be created`);
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
catch (err) {
|
|
255
|
+
console.log(` ā ļø Warning: Could not load context for ${file}`);
|
|
256
|
+
contextData = { error: err.message };
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
const editData = {
|
|
260
|
+
file,
|
|
261
|
+
operation,
|
|
262
|
+
timestamp: new Date().toISOString(),
|
|
263
|
+
editId: generateId('edit'),
|
|
264
|
+
autoAssignAgents,
|
|
265
|
+
loadContext,
|
|
266
|
+
assignedAgentType,
|
|
267
|
+
recommendedAgent,
|
|
268
|
+
contextData,
|
|
269
|
+
};
|
|
270
|
+
await store.store(`edit:${editData.editId}:pre`, editData, {
|
|
271
|
+
namespace: 'hooks:pre-edit',
|
|
272
|
+
metadata: { hookType: 'pre-edit', file, agentType: assignedAgentType },
|
|
273
|
+
});
|
|
274
|
+
// Store agent recommendation if enabled
|
|
275
|
+
if (autoAssignAgents && recommendedAgent) {
|
|
276
|
+
await store.store(`agent-recommendation:${file}`, recommendedAgent, {
|
|
277
|
+
namespace: 'agent-assignments',
|
|
278
|
+
ttl: 3600, // 1 hour
|
|
279
|
+
});
|
|
280
|
+
}
|
|
281
|
+
console.log(` š¾ Pre-edit state saved to .swarm/memory.db`);
|
|
282
|
+
printSuccess(`ā
Pre-edit hook completed`);
|
|
283
|
+
}
|
|
284
|
+
catch (err) {
|
|
285
|
+
printError(`Pre-edit hook failed: ${err.message}`);
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
async function preBashCommand(subArgs, flags) {
|
|
289
|
+
const options = flags;
|
|
290
|
+
const command = options.command || subArgs.slice(1).join(' ') || '';
|
|
291
|
+
const workingDir = options.cwd || process.cwd();
|
|
292
|
+
const validateSafety = options['validate-safety'] === true || options['validate-safety'] === 'true' || options.validate === true || options.validate === 'true' || false;
|
|
293
|
+
const prepareResources = options['prepare-resources'] === true || options['prepare-resources'] === 'true' || false;
|
|
294
|
+
console.log(`š§ Executing pre-bash hook...`);
|
|
295
|
+
console.log(`š Command: ${command}`);
|
|
296
|
+
console.log(`š Working dir: ${workingDir}`);
|
|
297
|
+
if (validateSafety)
|
|
298
|
+
console.log(`š Safety validation: ENABLED`);
|
|
299
|
+
if (prepareResources)
|
|
300
|
+
console.log(`š ļø Resource preparation: ENABLED`);
|
|
301
|
+
try {
|
|
302
|
+
const store = await getMemoryStore();
|
|
303
|
+
let safetyResult = 'skipped';
|
|
304
|
+
if (validateSafety) {
|
|
305
|
+
// Basic safety validation
|
|
306
|
+
const dangerousCommands = [
|
|
307
|
+
'rm -rf /',
|
|
308
|
+
'rm -rf .',
|
|
309
|
+
'rm -rf *',
|
|
310
|
+
'format',
|
|
311
|
+
'fdisk',
|
|
312
|
+
'mkfs',
|
|
313
|
+
'curl * | bash',
|
|
314
|
+
'wget * | sh',
|
|
315
|
+
'eval',
|
|
316
|
+
'exec',
|
|
317
|
+
'chmod 777',
|
|
318
|
+
];
|
|
319
|
+
const isDangerous = command && typeof command === 'string' && command.length > 0
|
|
320
|
+
? dangerousCommands.some((dangerous) => command.toLowerCase().includes(dangerous.toLowerCase()))
|
|
321
|
+
: false;
|
|
322
|
+
safetyResult = isDangerous ? 'dangerous' : 'safe';
|
|
323
|
+
if (isDangerous) {
|
|
324
|
+
console.log(` ā ļø Safety check: DANGEROUS COMMAND DETECTED`);
|
|
325
|
+
console.log(` š« Command blocked for safety`);
|
|
326
|
+
printError(`Command blocked due to safety validation: ${command}`);
|
|
327
|
+
return;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
if (prepareResources) {
|
|
331
|
+
// Resource preparation - create working directory if needed
|
|
332
|
+
const fs = await import('fs');
|
|
333
|
+
const path = await import('path');
|
|
334
|
+
if (!fs.existsSync(workingDir)) {
|
|
335
|
+
fs.mkdirSync(workingDir, { recursive: true });
|
|
336
|
+
console.log(` š Created working directory: ${workingDir}`);
|
|
337
|
+
}
|
|
338
|
+
// Check available disk space
|
|
339
|
+
try {
|
|
340
|
+
const stats = fs.statSync(workingDir);
|
|
341
|
+
console.log(` š¾ Working directory prepared`);
|
|
342
|
+
}
|
|
343
|
+
catch (err) {
|
|
344
|
+
console.log(` ā ļø Warning: Could not check working directory`);
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
const bashData = {
|
|
348
|
+
command,
|
|
349
|
+
workingDir,
|
|
350
|
+
timestamp: new Date().toISOString(),
|
|
351
|
+
bashId: generateId('bash'),
|
|
352
|
+
safety: safetyResult,
|
|
353
|
+
validationEnabled: validateSafety,
|
|
354
|
+
resourcesPrepped: prepareResources,
|
|
355
|
+
};
|
|
356
|
+
await store.store(`bash:${bashData.bashId}:pre`, bashData, {
|
|
357
|
+
namespace: 'hooks:pre-bash',
|
|
358
|
+
metadata: { hookType: 'pre-bash', command, safety: safetyResult },
|
|
359
|
+
});
|
|
360
|
+
console.log(` š¾ Command logged to .swarm/memory.db`);
|
|
361
|
+
console.log(` š Safety check: ${safetyResult.toUpperCase()}`);
|
|
362
|
+
printSuccess(`ā
Pre-bash hook completed`);
|
|
363
|
+
}
|
|
364
|
+
catch (err) {
|
|
365
|
+
printError(`Pre-bash hook failed: ${err.message}`);
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
// ===== POST-OPERATION HOOKS =====
|
|
369
|
+
async function postTaskCommand(subArgs, flags) {
|
|
370
|
+
const options = flags;
|
|
371
|
+
const taskId = options['task-id'] || options.taskId || generateId('task');
|
|
372
|
+
const analyzePerformance = options['analyze-performance'] !== 'false';
|
|
373
|
+
console.log(`š Executing post-task hook...`);
|
|
374
|
+
console.log(`š Task ID: ${taskId}`);
|
|
375
|
+
try {
|
|
376
|
+
const store = await getMemoryStore();
|
|
377
|
+
const taskData = await store.retrieve(`task:${taskId}`, {
|
|
378
|
+
namespace: 'hooks:pre-task',
|
|
379
|
+
});
|
|
380
|
+
const completedData = {
|
|
381
|
+
...(taskData || {}),
|
|
382
|
+
status: 'completed',
|
|
383
|
+
completedAt: new Date().toISOString(),
|
|
384
|
+
duration: taskData ? Date.now() - new Date(taskData.startedAt).getTime() : null,
|
|
385
|
+
};
|
|
386
|
+
await store.store(`task:${taskId}:completed`, completedData, {
|
|
387
|
+
namespace: 'hooks:post-task',
|
|
388
|
+
metadata: { hookType: 'post-task' },
|
|
389
|
+
});
|
|
390
|
+
if (analyzePerformance && completedData.duration) {
|
|
391
|
+
const metrics = {
|
|
392
|
+
taskId,
|
|
393
|
+
duration: completedData.duration,
|
|
394
|
+
durationHuman: `${(completedData.duration / 1000).toFixed(2)}s`,
|
|
395
|
+
timestamp: new Date().toISOString(),
|
|
396
|
+
};
|
|
397
|
+
await store.store(`metrics:${taskId}`, metrics, {
|
|
398
|
+
namespace: 'performance',
|
|
399
|
+
});
|
|
400
|
+
console.log(` š Performance: ${metrics.durationHuman}`);
|
|
401
|
+
}
|
|
402
|
+
console.log(` š¾ Task completion saved to .swarm/memory.db`);
|
|
403
|
+
printSuccess(`ā
Post-task hook completed`);
|
|
404
|
+
}
|
|
405
|
+
catch (err) {
|
|
406
|
+
printError(`Post-task hook failed: ${err.message}`);
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
async function postEditCommand(subArgs, flags) {
|
|
410
|
+
const options = flags;
|
|
411
|
+
const file = options.file || 'unknown-file';
|
|
412
|
+
let memoryKey = options['memory-key'] || options.memoryKey;
|
|
413
|
+
// Handle case where memory-key is passed as a boolean flag without value
|
|
414
|
+
if (memoryKey === true) {
|
|
415
|
+
// Generate a default memory key based on the file path and timestamp
|
|
416
|
+
const path = await import('path');
|
|
417
|
+
const basename = path.basename(file);
|
|
418
|
+
memoryKey = `edit:${basename}:${Date.now()}`;
|
|
419
|
+
}
|
|
420
|
+
const format = options.format || false;
|
|
421
|
+
const updateMemory = options['update-memory'] || false;
|
|
422
|
+
const trainNeural = options['train-neural'] || false;
|
|
423
|
+
console.log(`š Executing post-edit hook...`);
|
|
424
|
+
console.log(`š File: ${file}`);
|
|
425
|
+
if (memoryKey)
|
|
426
|
+
console.log(`š¾ Memory key: ${memoryKey}`);
|
|
427
|
+
if (format)
|
|
428
|
+
console.log(`šØ Auto-format: ENABLED`);
|
|
429
|
+
if (updateMemory)
|
|
430
|
+
console.log(`š§ Memory update: ENABLED`);
|
|
431
|
+
if (trainNeural)
|
|
432
|
+
console.log(`š¤ Neural training: ENABLED`);
|
|
433
|
+
try {
|
|
434
|
+
const store = await getMemoryStore();
|
|
435
|
+
const path = await import('path');
|
|
436
|
+
const fs = await import('fs');
|
|
437
|
+
// Auto-format file if requested
|
|
438
|
+
let formatResult = null;
|
|
439
|
+
if (format && fs.existsSync(file)) {
|
|
440
|
+
const ext = path.extname(file).toLowerCase();
|
|
441
|
+
const formatters = {
|
|
442
|
+
'.js': 'prettier',
|
|
443
|
+
'.ts': 'prettier',
|
|
444
|
+
'.json': 'prettier',
|
|
445
|
+
'.css': 'prettier',
|
|
446
|
+
'.html': 'prettier',
|
|
447
|
+
'.py': 'black',
|
|
448
|
+
'.go': 'gofmt',
|
|
449
|
+
'.rs': 'rustfmt',
|
|
450
|
+
'.java': 'google-java-format',
|
|
451
|
+
'.cpp': 'clang-format',
|
|
452
|
+
'.c': 'clang-format',
|
|
453
|
+
};
|
|
454
|
+
const formatter = formatters[ext];
|
|
455
|
+
if (formatter) {
|
|
456
|
+
console.log(` šØ Auto-formatting with ${formatter}...`);
|
|
457
|
+
formatResult = {
|
|
458
|
+
formatter,
|
|
459
|
+
extension: ext,
|
|
460
|
+
attempted: true,
|
|
461
|
+
timestamp: new Date().toISOString(),
|
|
462
|
+
};
|
|
463
|
+
}
|
|
464
|
+
else {
|
|
465
|
+
console.log(` ā ļø No formatter available for ${ext}`);
|
|
466
|
+
formatResult = {
|
|
467
|
+
extension: ext,
|
|
468
|
+
attempted: false,
|
|
469
|
+
reason: 'No formatter available',
|
|
470
|
+
};
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
// Update memory with edit context
|
|
474
|
+
let memoryUpdate = null;
|
|
475
|
+
if (updateMemory) {
|
|
476
|
+
const editContext = {
|
|
477
|
+
file,
|
|
478
|
+
editedAt: new Date().toISOString(),
|
|
479
|
+
editId: generateId('edit'),
|
|
480
|
+
formatted: formatResult?.attempted || false,
|
|
481
|
+
fileSize: fs.existsSync(file) ? fs.statSync(file).size : 0,
|
|
482
|
+
directory: path.dirname(file),
|
|
483
|
+
basename: path.basename(file),
|
|
484
|
+
};
|
|
485
|
+
memoryUpdate = editContext;
|
|
486
|
+
// Store in coordination namespace
|
|
487
|
+
await store.store(`edit-context:${editContext.editId}`, editContext, {
|
|
488
|
+
namespace: 'coordination',
|
|
489
|
+
metadata: { type: 'edit-context', file },
|
|
490
|
+
});
|
|
491
|
+
console.log(` š§ Edit context stored in memory`);
|
|
492
|
+
}
|
|
493
|
+
// Train neural patterns if requested
|
|
494
|
+
let neuralTraining = null;
|
|
495
|
+
if (trainNeural) {
|
|
496
|
+
// Simulate neural training with file patterns
|
|
497
|
+
const ext = path.extname(file).toLowerCase();
|
|
498
|
+
const basename = path.basename(file);
|
|
499
|
+
const editTime = new Date().toISOString();
|
|
500
|
+
const patterns = {
|
|
501
|
+
fileType: ext,
|
|
502
|
+
fileName: basename,
|
|
503
|
+
editTime,
|
|
504
|
+
confidence: Math.random() * 0.5 + 0.5, // 50-100% confidence
|
|
505
|
+
patterns: [
|
|
506
|
+
`${ext}_edit_pattern`,
|
|
507
|
+
`${basename}_modification`,
|
|
508
|
+
`edit_${Date.now()}_sequence`,
|
|
509
|
+
],
|
|
510
|
+
};
|
|
511
|
+
neuralTraining = patterns;
|
|
512
|
+
await store.store(`neural-pattern:${generateId('pattern')}`, patterns, {
|
|
513
|
+
namespace: 'neural-training',
|
|
514
|
+
metadata: { type: 'edit-pattern', file, extension: ext },
|
|
515
|
+
});
|
|
516
|
+
console.log(` š¤ Neural patterns trained (${(patterns.confidence * 100).toFixed(1)}% confidence)`);
|
|
517
|
+
}
|
|
518
|
+
const editData = {
|
|
519
|
+
file,
|
|
520
|
+
memoryKey,
|
|
521
|
+
timestamp: new Date().toISOString(),
|
|
522
|
+
editId: generateId('edit'),
|
|
523
|
+
format,
|
|
524
|
+
updateMemory,
|
|
525
|
+
trainNeural,
|
|
526
|
+
formatResult,
|
|
527
|
+
memoryUpdate,
|
|
528
|
+
neuralTraining,
|
|
529
|
+
};
|
|
530
|
+
await store.store(`edit:${editData.editId}:post`, editData, {
|
|
531
|
+
namespace: 'hooks:post-edit',
|
|
532
|
+
metadata: { hookType: 'post-edit', file, formatted: formatResult?.attempted || false },
|
|
533
|
+
});
|
|
534
|
+
if (memoryKey && typeof memoryKey === 'string') {
|
|
535
|
+
await store.store(memoryKey, {
|
|
536
|
+
file,
|
|
537
|
+
editedAt: new Date().toISOString(),
|
|
538
|
+
editId: editData.editId,
|
|
539
|
+
enhanced: true,
|
|
540
|
+
formatResult,
|
|
541
|
+
memoryUpdate,
|
|
542
|
+
neuralTraining,
|
|
543
|
+
}, { namespace: 'coordination' });
|
|
544
|
+
}
|
|
545
|
+
const historyKey = `file-history:${file.replace(/\//g, '_')}:${Date.now()}`;
|
|
546
|
+
await store.store(historyKey, {
|
|
547
|
+
file,
|
|
548
|
+
editId: editData.editId,
|
|
549
|
+
timestamp: new Date().toISOString(),
|
|
550
|
+
enhanced: true,
|
|
551
|
+
features: {
|
|
552
|
+
format,
|
|
553
|
+
updateMemory,
|
|
554
|
+
trainNeural,
|
|
555
|
+
},
|
|
556
|
+
}, { namespace: 'file-history' });
|
|
557
|
+
console.log(` š¾ Post-edit data saved to .swarm/memory.db`);
|
|
558
|
+
printSuccess(`ā
Post-edit hook completed`);
|
|
559
|
+
}
|
|
560
|
+
catch (err) {
|
|
561
|
+
printError(`Post-edit hook failed: ${err.message}`);
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
async function postBashCommand(subArgs, flags) {
|
|
565
|
+
const options = flags;
|
|
566
|
+
const command = options.command || subArgs.slice(1).join(' ');
|
|
567
|
+
const exitCode = options['exit-code'] || '0';
|
|
568
|
+
const output = options.output || '';
|
|
569
|
+
const trackMetrics = options['track-metrics'] || false;
|
|
570
|
+
const storeResults = options['store-results'] || false;
|
|
571
|
+
const duration = options.duration || 0;
|
|
572
|
+
console.log(`š§ Executing post-bash hook...`);
|
|
573
|
+
console.log(`š Command: ${command}`);
|
|
574
|
+
console.log(`š Exit code: ${exitCode}`);
|
|
575
|
+
if (trackMetrics)
|
|
576
|
+
console.log(`š Metrics tracking: ENABLED`);
|
|
577
|
+
if (storeResults)
|
|
578
|
+
console.log(`š¾ Results storage: ENABLED`);
|
|
579
|
+
try {
|
|
580
|
+
const store = await getMemoryStore();
|
|
581
|
+
const startTime = Date.now();
|
|
582
|
+
// Calculate performance metrics if enabled
|
|
583
|
+
let metrics = null;
|
|
584
|
+
if (trackMetrics) {
|
|
585
|
+
const commandLength = command.length;
|
|
586
|
+
const outputLength = output.length;
|
|
587
|
+
const success = parseInt(exitCode) === 0;
|
|
588
|
+
metrics = {
|
|
589
|
+
commandLength,
|
|
590
|
+
outputLength,
|
|
591
|
+
success,
|
|
592
|
+
duration: parseInt(duration) || 0,
|
|
593
|
+
exitCode: parseInt(exitCode),
|
|
594
|
+
timestamp: new Date().toISOString(),
|
|
595
|
+
complexity: commandLength > 100 ? 'high' : commandLength > 50 ? 'medium' : 'low',
|
|
596
|
+
};
|
|
597
|
+
console.log(` š Command metrics: ${commandLength} chars, ${outputLength} output, ${success ? 'SUCCESS' : 'FAILED'}`);
|
|
598
|
+
}
|
|
599
|
+
const bashData = {
|
|
600
|
+
command,
|
|
601
|
+
exitCode,
|
|
602
|
+
output: storeResults ? output.substring(0, 5000) : output.substring(0, 1000), // Store more if requested
|
|
603
|
+
timestamp: new Date().toISOString(),
|
|
604
|
+
bashId: generateId('bash'),
|
|
605
|
+
trackMetrics,
|
|
606
|
+
storeResults,
|
|
607
|
+
metrics,
|
|
608
|
+
};
|
|
609
|
+
await store.store(`bash:${bashData.bashId}:post`, bashData, {
|
|
610
|
+
namespace: 'hooks:post-bash',
|
|
611
|
+
metadata: { hookType: 'post-bash', command, exitCode, success: parseInt(exitCode) === 0 },
|
|
612
|
+
});
|
|
613
|
+
// Store detailed results if enabled
|
|
614
|
+
if (storeResults) {
|
|
615
|
+
await store.store(`command-results:${bashData.bashId}`, {
|
|
616
|
+
command,
|
|
617
|
+
exitCode,
|
|
618
|
+
output,
|
|
619
|
+
timestamp: new Date().toISOString(),
|
|
620
|
+
fullOutput: true,
|
|
621
|
+
}, { namespace: 'command-results' });
|
|
622
|
+
console.log(` š¾ Full command results stored`);
|
|
623
|
+
}
|
|
624
|
+
// Store metrics if enabled
|
|
625
|
+
if (trackMetrics && metrics) {
|
|
626
|
+
await store.store(`command-metrics:${bashData.bashId}`, metrics, {
|
|
627
|
+
namespace: 'performance-metrics',
|
|
628
|
+
});
|
|
629
|
+
// Update running metrics
|
|
630
|
+
const existingMetrics = (await store.retrieve('command-metrics-summary', {
|
|
631
|
+
namespace: 'performance-metrics',
|
|
632
|
+
})) || { totalCommands: 0, successRate: 0, avgDuration: 0 };
|
|
633
|
+
existingMetrics.totalCommands += 1;
|
|
634
|
+
existingMetrics.successRate =
|
|
635
|
+
(existingMetrics.successRate * (existingMetrics.totalCommands - 1) +
|
|
636
|
+
(metrics.success ? 1 : 0)) /
|
|
637
|
+
existingMetrics.totalCommands;
|
|
638
|
+
existingMetrics.avgDuration =
|
|
639
|
+
(existingMetrics.avgDuration * (existingMetrics.totalCommands - 1) + metrics.duration) /
|
|
640
|
+
existingMetrics.totalCommands;
|
|
641
|
+
existingMetrics.lastUpdated = new Date().toISOString();
|
|
642
|
+
await store.store('command-metrics-summary', existingMetrics, {
|
|
643
|
+
namespace: 'performance-metrics',
|
|
644
|
+
});
|
|
645
|
+
}
|
|
646
|
+
// Update command history
|
|
647
|
+
await store.store(`command-history:${Date.now()}`, {
|
|
648
|
+
command,
|
|
649
|
+
exitCode,
|
|
650
|
+
timestamp: new Date().toISOString(),
|
|
651
|
+
success: parseInt(exitCode) === 0,
|
|
652
|
+
hasMetrics: trackMetrics,
|
|
653
|
+
hasResults: storeResults,
|
|
654
|
+
}, { namespace: 'command-history' });
|
|
655
|
+
console.log(` š¾ Command execution logged to .swarm/memory.db`);
|
|
656
|
+
printSuccess(`ā
Post-bash hook completed`);
|
|
657
|
+
}
|
|
658
|
+
catch (err) {
|
|
659
|
+
printError(`Post-bash hook failed: ${err.message}`);
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
async function postSearchCommand(subArgs, flags) {
|
|
663
|
+
const options = flags;
|
|
664
|
+
const query = options.query || subArgs.slice(1).join(' ');
|
|
665
|
+
const resultCount = options['result-count'] || '0';
|
|
666
|
+
const searchType = options.type || 'general';
|
|
667
|
+
console.log(`š Executing post-search hook...`);
|
|
668
|
+
console.log(`š Query: ${query}`);
|
|
669
|
+
console.log(`š Results: ${resultCount}`);
|
|
670
|
+
try {
|
|
671
|
+
const store = await getMemoryStore();
|
|
672
|
+
const searchData = {
|
|
673
|
+
query,
|
|
674
|
+
resultCount: parseInt(resultCount),
|
|
675
|
+
searchType,
|
|
676
|
+
timestamp: new Date().toISOString(),
|
|
677
|
+
searchId: generateId('search'),
|
|
678
|
+
};
|
|
679
|
+
await store.store(`search:${searchData.searchId}`, searchData, {
|
|
680
|
+
namespace: 'hooks:post-search',
|
|
681
|
+
metadata: { hookType: 'post-search', query },
|
|
682
|
+
});
|
|
683
|
+
// Cache search for future use
|
|
684
|
+
await store.store(`search-cache:${query}`, {
|
|
685
|
+
resultCount: searchData.resultCount,
|
|
686
|
+
cachedAt: new Date().toISOString(),
|
|
687
|
+
}, { namespace: 'search-cache', ttl: 3600 }); // 1 hour TTL
|
|
688
|
+
console.log(` š¾ Search results cached to .swarm/memory.db`);
|
|
689
|
+
printSuccess(`ā
Post-search hook completed`);
|
|
690
|
+
}
|
|
691
|
+
catch (err) {
|
|
692
|
+
printError(`Post-search hook failed: ${err.message}`);
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
// ===== MCP INTEGRATION HOOKS =====
|
|
696
|
+
async function mcpInitializedCommand(subArgs, flags) {
|
|
697
|
+
const options = flags;
|
|
698
|
+
const serverName = options.server || 'claude-flow';
|
|
699
|
+
const sessionId = options['session-id'] || generateId('mcp-session');
|
|
700
|
+
console.log(`š Executing mcp-initialized hook...`);
|
|
701
|
+
console.log(`š» Server: ${serverName}`);
|
|
702
|
+
console.log(`š Session: ${sessionId}`);
|
|
703
|
+
try {
|
|
704
|
+
const store = await getMemoryStore();
|
|
705
|
+
const mcpData = {
|
|
706
|
+
serverName,
|
|
707
|
+
sessionId,
|
|
708
|
+
initializedAt: new Date().toISOString(),
|
|
709
|
+
status: 'active',
|
|
710
|
+
};
|
|
711
|
+
await store.store(`mcp:${sessionId}`, mcpData, {
|
|
712
|
+
namespace: 'hooks:mcp-initialized',
|
|
713
|
+
metadata: { hookType: 'mcp-initialized', server: serverName },
|
|
714
|
+
});
|
|
715
|
+
console.log(` š¾ MCP session saved to .swarm/memory.db`);
|
|
716
|
+
printSuccess(`ā
MCP initialized hook completed`);
|
|
717
|
+
}
|
|
718
|
+
catch (err) {
|
|
719
|
+
printError(`MCP initialized hook failed: ${err.message}`);
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
async function agentSpawnedCommand(subArgs, flags) {
|
|
723
|
+
const options = flags;
|
|
724
|
+
const agentType = options.type || 'generic';
|
|
725
|
+
const agentName = options.name || generateId('agent');
|
|
726
|
+
const swarmId = options['swarm-id'] || 'default';
|
|
727
|
+
console.log(`š¤ Executing agent-spawned hook...`);
|
|
728
|
+
console.log(`š Agent: ${agentName}`);
|
|
729
|
+
console.log(`š·ļø Type: ${agentType}`);
|
|
730
|
+
try {
|
|
731
|
+
const store = await getMemoryStore();
|
|
732
|
+
const agentData = {
|
|
733
|
+
agentName,
|
|
734
|
+
agentType,
|
|
735
|
+
swarmId,
|
|
736
|
+
spawnedAt: new Date().toISOString(),
|
|
737
|
+
status: 'active',
|
|
738
|
+
};
|
|
739
|
+
await store.store(`agent:${agentName}`, agentData, {
|
|
740
|
+
namespace: 'hooks:agent-spawned',
|
|
741
|
+
metadata: { hookType: 'agent-spawned', type: agentType },
|
|
742
|
+
});
|
|
743
|
+
// Update agent roster
|
|
744
|
+
await store.store(`agent-roster:${Date.now()}`, {
|
|
745
|
+
agentName,
|
|
746
|
+
action: 'spawned',
|
|
747
|
+
timestamp: new Date().toISOString(),
|
|
748
|
+
}, { namespace: 'agent-roster' });
|
|
749
|
+
console.log(` š¾ Agent registered to .swarm/memory.db`);
|
|
750
|
+
printSuccess(`ā
Agent spawned hook completed`);
|
|
751
|
+
}
|
|
752
|
+
catch (err) {
|
|
753
|
+
printError(`Agent spawned hook failed: ${err.message}`);
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
async function taskOrchestratedCommand(subArgs, flags) {
|
|
757
|
+
const options = flags;
|
|
758
|
+
const taskId = options['task-id'] || generateId('orchestrated-task');
|
|
759
|
+
const strategy = options.strategy || 'balanced';
|
|
760
|
+
const priority = options.priority || 'medium';
|
|
761
|
+
console.log(`š Executing task-orchestrated hook...`);
|
|
762
|
+
console.log(`š Task: ${taskId}`);
|
|
763
|
+
console.log(`š Strategy: ${strategy}`);
|
|
764
|
+
try {
|
|
765
|
+
const store = await getMemoryStore();
|
|
766
|
+
const orchestrationData = {
|
|
767
|
+
taskId,
|
|
768
|
+
strategy,
|
|
769
|
+
priority,
|
|
770
|
+
orchestratedAt: new Date().toISOString(),
|
|
771
|
+
status: 'orchestrated',
|
|
772
|
+
};
|
|
773
|
+
await store.store(`orchestration:${taskId}`, orchestrationData, {
|
|
774
|
+
namespace: 'hooks:task-orchestrated',
|
|
775
|
+
metadata: { hookType: 'task-orchestrated', strategy },
|
|
776
|
+
});
|
|
777
|
+
console.log(` š¾ Orchestration saved to .swarm/memory.db`);
|
|
778
|
+
printSuccess(`ā
Task orchestrated hook completed`);
|
|
779
|
+
}
|
|
780
|
+
catch (err) {
|
|
781
|
+
printError(`Task orchestrated hook failed: ${err.message}`);
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
async function neuralTrainedCommand(subArgs, flags) {
|
|
785
|
+
const options = flags;
|
|
786
|
+
const modelName = options.model || 'default-neural';
|
|
787
|
+
const accuracy = options.accuracy || '0.0';
|
|
788
|
+
const patterns = options.patterns || '0';
|
|
789
|
+
console.log(`š§ Executing neural-trained hook...`);
|
|
790
|
+
console.log(`š¤ Model: ${modelName}`);
|
|
791
|
+
console.log(`š Accuracy: ${accuracy}%`);
|
|
792
|
+
try {
|
|
793
|
+
const store = await getMemoryStore();
|
|
794
|
+
const trainingData = {
|
|
795
|
+
modelName,
|
|
796
|
+
accuracy: parseFloat(accuracy),
|
|
797
|
+
patternsLearned: parseInt(patterns),
|
|
798
|
+
trainedAt: new Date().toISOString(),
|
|
799
|
+
};
|
|
800
|
+
await store.store(`neural:${modelName}:${Date.now()}`, trainingData, {
|
|
801
|
+
namespace: 'hooks:neural-trained',
|
|
802
|
+
metadata: { hookType: 'neural-trained', model: modelName },
|
|
803
|
+
});
|
|
804
|
+
console.log(` š¾ Training results saved to .swarm/memory.db`);
|
|
805
|
+
printSuccess(`ā
Neural trained hook completed`);
|
|
806
|
+
}
|
|
807
|
+
catch (err) {
|
|
808
|
+
printError(`Neural trained hook failed: ${err.message}`);
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
// ===== SESSION HOOKS =====
|
|
812
|
+
async function sessionEndCommand(subArgs, flags) {
|
|
813
|
+
const options = flags;
|
|
814
|
+
const generateSummary = options['generate-summary'] !== 'false';
|
|
815
|
+
const persistState = options['persist-state'] !== 'false';
|
|
816
|
+
const exportMetrics = options['export-metrics'] || false;
|
|
817
|
+
console.log(`š Executing session-end hook...`);
|
|
818
|
+
if (generateSummary)
|
|
819
|
+
console.log(`š Summary generation: ENABLED`);
|
|
820
|
+
if (persistState)
|
|
821
|
+
console.log(`š¾ State persistence: ENABLED`);
|
|
822
|
+
if (exportMetrics)
|
|
823
|
+
console.log(`š Metrics export: ENABLED`);
|
|
824
|
+
try {
|
|
825
|
+
const store = await getMemoryStore();
|
|
826
|
+
const tasks = await store.list({ namespace: 'task-index', limit: 1000 });
|
|
827
|
+
const edits = await store.list({ namespace: 'file-history', limit: 1000 });
|
|
828
|
+
const commands = await store.list({ namespace: 'command-history', limit: 1000 });
|
|
829
|
+
const agents = await store.list({ namespace: 'agent-roster', limit: 1000 });
|
|
830
|
+
// Calculate session metrics
|
|
831
|
+
let metrics = null;
|
|
832
|
+
if (exportMetrics) {
|
|
833
|
+
const now = new Date();
|
|
834
|
+
const sessionStart = Math.min(...tasks.map((t) => new Date(t.value.timestamp || now).getTime()), ...edits.map((e) => new Date(e.value.timestamp || now).getTime()), ...commands.map((c) => new Date(c.value.timestamp || now).getTime()));
|
|
835
|
+
const duration = now.getTime() - sessionStart;
|
|
836
|
+
const successfulCommands = commands.filter((c) => c.value.success !== false).length;
|
|
837
|
+
const commandSuccessRate = commands.length > 0 ? successfulCommands / commands.length : 1;
|
|
838
|
+
metrics = {
|
|
839
|
+
sessionDuration: duration,
|
|
840
|
+
sessionDurationHuman: `${Math.round(duration / 1000 / 60)} minutes`,
|
|
841
|
+
totalTasks: tasks.length,
|
|
842
|
+
totalEdits: edits.length,
|
|
843
|
+
totalCommands: commands.length,
|
|
844
|
+
uniqueAgents: agents.length,
|
|
845
|
+
commandSuccessRate: Math.round(commandSuccessRate * 100),
|
|
846
|
+
avgTasksPerMinute: Math.round((tasks.length / (duration / 1000 / 60)) * 100) / 100,
|
|
847
|
+
avgEditsPerMinute: Math.round((edits.length / (duration / 1000 / 60)) * 100) / 100,
|
|
848
|
+
timestamp: now.toISOString(),
|
|
849
|
+
};
|
|
850
|
+
}
|
|
851
|
+
const sessionData = {
|
|
852
|
+
endedAt: new Date().toISOString(),
|
|
853
|
+
totalTasks: tasks.length,
|
|
854
|
+
totalEdits: edits.length,
|
|
855
|
+
totalCommands: commands.length,
|
|
856
|
+
uniqueAgents: agents.length,
|
|
857
|
+
sessionId: generateId('session'),
|
|
858
|
+
generateSummary,
|
|
859
|
+
persistState,
|
|
860
|
+
exportMetrics,
|
|
861
|
+
metrics,
|
|
862
|
+
};
|
|
863
|
+
await store.store(`session:${sessionData.sessionId}`, sessionData, {
|
|
864
|
+
namespace: 'sessions',
|
|
865
|
+
metadata: { hookType: 'session-end' },
|
|
866
|
+
});
|
|
867
|
+
// Persist detailed state if requested
|
|
868
|
+
if (persistState) {
|
|
869
|
+
const detailedState = {
|
|
870
|
+
sessionId: sessionData.sessionId,
|
|
871
|
+
tasks: tasks.slice(0, 100), // Limit to prevent memory issues
|
|
872
|
+
edits: edits.slice(0, 100),
|
|
873
|
+
commands: commands.slice(0, 100),
|
|
874
|
+
agents: agents.slice(0, 50),
|
|
875
|
+
persistedAt: new Date().toISOString(),
|
|
876
|
+
fullState: true,
|
|
877
|
+
};
|
|
878
|
+
await store.store(`session-state:${sessionData.sessionId}`, detailedState, {
|
|
879
|
+
namespace: 'session-states',
|
|
880
|
+
metadata: { type: 'full-state', sessionId: sessionData.sessionId },
|
|
881
|
+
});
|
|
882
|
+
console.log(` š¾ Full session state persisted`);
|
|
883
|
+
}
|
|
884
|
+
// Export metrics if requested
|
|
885
|
+
if (exportMetrics && metrics) {
|
|
886
|
+
await store.store(`session-metrics:${sessionData.sessionId}`, metrics, {
|
|
887
|
+
namespace: 'session-metrics',
|
|
888
|
+
metadata: { type: 'performance-metrics', sessionId: sessionData.sessionId },
|
|
889
|
+
});
|
|
890
|
+
console.log(` š Session metrics exported`);
|
|
891
|
+
}
|
|
892
|
+
if (generateSummary) {
|
|
893
|
+
console.log(`\nš SESSION SUMMARY:`);
|
|
894
|
+
console.log(` š Tasks: ${sessionData.totalTasks}`);
|
|
895
|
+
console.log(` āļø Edits: ${sessionData.totalEdits}`);
|
|
896
|
+
console.log(` š§ Commands: ${sessionData.totalCommands}`);
|
|
897
|
+
console.log(` š¤ Agents: ${sessionData.uniqueAgents}`);
|
|
898
|
+
if (metrics) {
|
|
899
|
+
console.log(` ā±ļø Duration: ${metrics.sessionDurationHuman}`);
|
|
900
|
+
console.log(` š Success Rate: ${metrics.commandSuccessRate}%`);
|
|
901
|
+
console.log(` š Tasks/min: ${metrics.avgTasksPerMinute}`);
|
|
902
|
+
console.log(` āļø Edits/min: ${metrics.avgEditsPerMinute}`);
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
console.log(` š¾ Session saved to .swarm/memory.db`);
|
|
906
|
+
if (memoryStore) {
|
|
907
|
+
memoryStore.close();
|
|
908
|
+
memoryStore = null;
|
|
909
|
+
}
|
|
910
|
+
printSuccess(`ā
Session-end hook completed`);
|
|
911
|
+
}
|
|
912
|
+
catch (err) {
|
|
913
|
+
printError(`Session-end hook failed: ${err.message}`);
|
|
914
|
+
}
|
|
915
|
+
}
|
|
916
|
+
async function sessionRestoreCommand(subArgs, flags) {
|
|
917
|
+
const options = flags;
|
|
918
|
+
const sessionId = options['session-id'] || 'latest';
|
|
919
|
+
console.log(`š Executing session-restore hook...`);
|
|
920
|
+
console.log(`š Session: ${sessionId}`);
|
|
921
|
+
try {
|
|
922
|
+
const store = await getMemoryStore();
|
|
923
|
+
// Find session to restore
|
|
924
|
+
let sessionData;
|
|
925
|
+
if (sessionId === 'latest') {
|
|
926
|
+
const sessions = await store.list({ namespace: 'sessions', limit: 1 });
|
|
927
|
+
sessionData = sessions[0]?.value;
|
|
928
|
+
}
|
|
929
|
+
else {
|
|
930
|
+
sessionData = await store.retrieve(`session:${sessionId}`, { namespace: 'sessions' });
|
|
931
|
+
}
|
|
932
|
+
if (sessionData) {
|
|
933
|
+
console.log(`\nš RESTORED SESSION:`);
|
|
934
|
+
console.log(` š ID: ${sessionData.sessionId || 'unknown'}`);
|
|
935
|
+
console.log(` š Tasks: ${sessionData.totalTasks || 0}`);
|
|
936
|
+
console.log(` āļø Edits: ${sessionData.totalEdits || 0}`);
|
|
937
|
+
console.log(` ā° Ended: ${sessionData.endedAt || 'unknown'}`);
|
|
938
|
+
// Store restoration event
|
|
939
|
+
await store.store(`session-restore:${Date.now()}`, {
|
|
940
|
+
restoredSessionId: sessionData.sessionId || sessionId,
|
|
941
|
+
restoredAt: new Date().toISOString(),
|
|
942
|
+
}, { namespace: 'session-events' });
|
|
943
|
+
console.log(` š¾ Session restored from .swarm/memory.db`);
|
|
944
|
+
printSuccess(`ā
Session restore completed`);
|
|
945
|
+
}
|
|
946
|
+
else {
|
|
947
|
+
printWarning(`No session found with ID: ${sessionId}`);
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
catch (err) {
|
|
951
|
+
printError(`Session restore hook failed: ${err.message}`);
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
async function notifyCommand(subArgs, flags) {
|
|
955
|
+
const options = flags;
|
|
956
|
+
const message = options.message || subArgs.slice(1).join(' ');
|
|
957
|
+
const level = options.level || 'info';
|
|
958
|
+
const swarmStatus = options['swarm-status'] || 'active';
|
|
959
|
+
console.log(`š¢ Executing notify hook...`);
|
|
960
|
+
console.log(`š¬ Message: ${message}`);
|
|
961
|
+
console.log(`š Level: ${level}`);
|
|
962
|
+
try {
|
|
963
|
+
const store = await getMemoryStore();
|
|
964
|
+
const notificationData = {
|
|
965
|
+
message,
|
|
966
|
+
level,
|
|
967
|
+
swarmStatus,
|
|
968
|
+
timestamp: new Date().toISOString(),
|
|
969
|
+
notifyId: generateId('notify'),
|
|
970
|
+
};
|
|
971
|
+
await store.store(`notification:${notificationData.notifyId}`, notificationData, {
|
|
972
|
+
namespace: 'hooks:notify',
|
|
973
|
+
metadata: { hookType: 'notify', level },
|
|
974
|
+
});
|
|
975
|
+
// Display notification
|
|
976
|
+
const icon = level === 'error' ? 'ā' : level === 'warning' ? 'ā ļø' : 'ā
';
|
|
977
|
+
console.log(`\n${icon} NOTIFICATION:`);
|
|
978
|
+
console.log(` ${message}`);
|
|
979
|
+
console.log(` š Swarm: ${swarmStatus}`);
|
|
980
|
+
console.log(`\n š¾ Notification saved to .swarm/memory.db`);
|
|
981
|
+
printSuccess(`ā
Notify hook completed`);
|
|
982
|
+
}
|
|
983
|
+
catch (err) {
|
|
984
|
+
printError(`Notify hook failed: ${err.message}`);
|
|
985
|
+
}
|
|
986
|
+
}
|
|
987
|
+
// ===== PRETOOLUSE MODIFICATION HOOKS (v2.0.10+) =====
|
|
988
|
+
async function modifyBashCommand(subArgs, flags) {
|
|
989
|
+
// Read JSON from stdin with timeout to detect if data is piped
|
|
990
|
+
let input = '';
|
|
991
|
+
let hasInput = false;
|
|
992
|
+
const timeout = setTimeout(() => {
|
|
993
|
+
if (!hasInput) {
|
|
994
|
+
console.log('Usage: echo \'{"tool_input":{"command":"your command"}}\' | claude-flow hooks modify-bash');
|
|
995
|
+
console.log('\nThis hook reads JSON from stdin and outputs modified JSON.');
|
|
996
|
+
console.log('It is designed for use with Claude Code v2.0.10+ PreToolUse feature.');
|
|
997
|
+
console.log('\nExample:');
|
|
998
|
+
console.log(' echo \'{"tool_input":{"command":"rm test.txt"}}\' | claude-flow hooks modify-bash');
|
|
999
|
+
process.exit(0);
|
|
1000
|
+
}
|
|
1001
|
+
}, 100); // 100ms timeout
|
|
1002
|
+
for await (const chunk of process.stdin) {
|
|
1003
|
+
hasInput = true;
|
|
1004
|
+
clearTimeout(timeout);
|
|
1005
|
+
input += chunk;
|
|
1006
|
+
}
|
|
1007
|
+
if (!input.trim()) {
|
|
1008
|
+
return; // Silently exit if no input
|
|
1009
|
+
}
|
|
1010
|
+
const toolInput = JSON.parse(input);
|
|
1011
|
+
const command = toolInput.tool_input?.command || '';
|
|
1012
|
+
if (!command) {
|
|
1013
|
+
console.log(input); // Pass through if no command
|
|
1014
|
+
return;
|
|
1015
|
+
}
|
|
1016
|
+
let modifiedCommand = command;
|
|
1017
|
+
const notes = [];
|
|
1018
|
+
// 1. Safety: Add -i flag to rm commands
|
|
1019
|
+
if (/^rm\s/.test(command) && !/-[iI]/.test(command)) {
|
|
1020
|
+
modifiedCommand = command.replace(/^rm /, 'rm -i ');
|
|
1021
|
+
notes.push('[Safety: Added -i flag for interactive confirmation]');
|
|
1022
|
+
}
|
|
1023
|
+
// 2. Aliases
|
|
1024
|
+
if (/^ll(\s|$)/.test(command)) {
|
|
1025
|
+
modifiedCommand = command.replace(/^ll/, 'ls -lah');
|
|
1026
|
+
notes.push('[Alias: ll ā ls -lah]');
|
|
1027
|
+
}
|
|
1028
|
+
else if (/^la(\s|$)/.test(command)) {
|
|
1029
|
+
modifiedCommand = command.replace(/^la/, 'ls -la');
|
|
1030
|
+
notes.push('[Alias: la ā ls -la]');
|
|
1031
|
+
}
|
|
1032
|
+
// 3. Path correction: Redirect test files to /tmp
|
|
1033
|
+
if (/>\s*test.*\.(txt|log|tmp|json|md)/.test(command) && !/\/tmp\//.test(command)) {
|
|
1034
|
+
modifiedCommand = command.replace(/>\s*(test[^/]*\.(txt|log|tmp|json|md))/, '> /tmp/$1');
|
|
1035
|
+
notes.push('[Path: Redirected test file to /tmp/]');
|
|
1036
|
+
}
|
|
1037
|
+
// 4. Secret detection
|
|
1038
|
+
if (/(password|secret|token|api[-_]?key|auth)/i.test(command) && !/#\s*SECRETS_OK/.test(command)) {
|
|
1039
|
+
notes.push('[Security: Command contains sensitive keywords. Add "# SECRETS_OK" to bypass]');
|
|
1040
|
+
}
|
|
1041
|
+
// Output modified JSON
|
|
1042
|
+
const output = {
|
|
1043
|
+
...toolInput,
|
|
1044
|
+
tool_input: {
|
|
1045
|
+
...toolInput.tool_input,
|
|
1046
|
+
command: modifiedCommand,
|
|
1047
|
+
},
|
|
1048
|
+
};
|
|
1049
|
+
if (notes.length > 0) {
|
|
1050
|
+
output.modification_notes = notes.join(' ');
|
|
1051
|
+
}
|
|
1052
|
+
console.log(JSON.stringify(output, null, 2));
|
|
1053
|
+
}
|
|
1054
|
+
async function modifyFileCommand(subArgs, flags) {
|
|
1055
|
+
// Read JSON from stdin with timeout to detect if data is piped
|
|
1056
|
+
let input = '';
|
|
1057
|
+
let hasInput = false;
|
|
1058
|
+
const timeout = setTimeout(() => {
|
|
1059
|
+
if (!hasInput) {
|
|
1060
|
+
console.log('Usage: echo \'{"tool_input":{"file_path":"your/file.js"}}\' | claude-flow hooks modify-file');
|
|
1061
|
+
console.log('\nThis hook reads JSON from stdin and outputs modified JSON.');
|
|
1062
|
+
console.log('It is designed for use with Claude Code v2.0.10+ PreToolUse feature.');
|
|
1063
|
+
console.log('\nExample:');
|
|
1064
|
+
console.log(' echo \'{"tool_input":{"file_path":"test.js"}}\' | claude-flow hooks modify-file');
|
|
1065
|
+
process.exit(0);
|
|
1066
|
+
}
|
|
1067
|
+
}, 100); // 100ms timeout
|
|
1068
|
+
for await (const chunk of process.stdin) {
|
|
1069
|
+
hasInput = true;
|
|
1070
|
+
clearTimeout(timeout);
|
|
1071
|
+
input += chunk;
|
|
1072
|
+
}
|
|
1073
|
+
if (!input.trim()) {
|
|
1074
|
+
return; // Silently exit if no input
|
|
1075
|
+
}
|
|
1076
|
+
const toolInput = JSON.parse(input);
|
|
1077
|
+
const filePath = toolInput.tool_input?.file_path || toolInput.tool_input?.path || '';
|
|
1078
|
+
if (!filePath) {
|
|
1079
|
+
console.log(input); // Pass through if no file path
|
|
1080
|
+
return;
|
|
1081
|
+
}
|
|
1082
|
+
let modifiedPath = filePath;
|
|
1083
|
+
let shouldModify = false;
|
|
1084
|
+
const notes = [];
|
|
1085
|
+
// 1. Root folder protection
|
|
1086
|
+
const isRootFile = /^[^/]*\.(js|ts|jsx|tsx|py|java|go|rs|cpp|c|h)$/.test(filePath) ||
|
|
1087
|
+
/^test.*\.(txt|log|tmp|json|md)$/.test(filePath) ||
|
|
1088
|
+
/^(temp|tmp|working)/.test(filePath);
|
|
1089
|
+
if (isRootFile) {
|
|
1090
|
+
if (/test.*\.(test|spec)\.|\.test\.|\.spec\./.test(filePath)) {
|
|
1091
|
+
modifiedPath = `tests/${filePath}`;
|
|
1092
|
+
shouldModify = true;
|
|
1093
|
+
notes.push('[Organization: Moved test file to /tests/]');
|
|
1094
|
+
}
|
|
1095
|
+
else if (/test.*\.md|temp.*\.md|working.*\.md|scratch.*\.md/.test(filePath)) {
|
|
1096
|
+
modifiedPath = `docs/working/${filePath}`;
|
|
1097
|
+
shouldModify = true;
|
|
1098
|
+
notes.push('[Organization: Moved working document to /docs/working/]');
|
|
1099
|
+
}
|
|
1100
|
+
else if (/\.(js|ts|jsx|tsx|py)$/.test(filePath)) {
|
|
1101
|
+
modifiedPath = `src/${filePath}`;
|
|
1102
|
+
shouldModify = true;
|
|
1103
|
+
notes.push('[Organization: Moved source file to /src/]');
|
|
1104
|
+
}
|
|
1105
|
+
else if (/^(temp|tmp|scratch)/.test(filePath)) {
|
|
1106
|
+
modifiedPath = `/tmp/${filePath}`;
|
|
1107
|
+
shouldModify = true;
|
|
1108
|
+
notes.push('[Organization: Redirected temporary file to /tmp/]');
|
|
1109
|
+
}
|
|
1110
|
+
}
|
|
1111
|
+
// 2. Format hints
|
|
1112
|
+
if (/\.(ts|tsx|js|jsx)$/.test(modifiedPath)) {
|
|
1113
|
+
notes.push('[Tip: Auto-format with Prettier/ESLint recommended]');
|
|
1114
|
+
}
|
|
1115
|
+
else if (/\.py$/.test(modifiedPath)) {
|
|
1116
|
+
notes.push('[Tip: Auto-format with Black/autopep8 recommended]');
|
|
1117
|
+
}
|
|
1118
|
+
// Output modified JSON
|
|
1119
|
+
const output = {
|
|
1120
|
+
...toolInput,
|
|
1121
|
+
tool_input: {
|
|
1122
|
+
...toolInput.tool_input,
|
|
1123
|
+
},
|
|
1124
|
+
};
|
|
1125
|
+
if (shouldModify) {
|
|
1126
|
+
if (toolInput.tool_input.file_path) {
|
|
1127
|
+
output.tool_input.file_path = modifiedPath;
|
|
1128
|
+
}
|
|
1129
|
+
else {
|
|
1130
|
+
output.tool_input.path = modifiedPath;
|
|
1131
|
+
}
|
|
1132
|
+
}
|
|
1133
|
+
if (notes.length > 0) {
|
|
1134
|
+
output.modification_notes = notes.join(' ');
|
|
1135
|
+
}
|
|
1136
|
+
console.log(JSON.stringify(output, null, 2));
|
|
1137
|
+
}
|
|
1138
|
+
async function modifyGitCommitCommand(subArgs, flags) {
|
|
1139
|
+
// Read JSON from stdin with timeout to detect if data is piped
|
|
1140
|
+
let input = '';
|
|
1141
|
+
let hasInput = false;
|
|
1142
|
+
const timeout = setTimeout(() => {
|
|
1143
|
+
if (!hasInput) {
|
|
1144
|
+
console.log('Usage: echo \'{"tool_input":{"command":"git commit -m \\"message\\""}}\' | claude-flow hooks modify-git-commit');
|
|
1145
|
+
console.log('\nThis hook reads JSON from stdin and outputs modified JSON.');
|
|
1146
|
+
console.log('It is designed for use with Claude Code v2.0.10+ PreToolUse feature.');
|
|
1147
|
+
console.log('\nExample:');
|
|
1148
|
+
console.log(' echo \'{"tool_input":{"command":"git commit -m \\"fix bug\\""}}\' | claude-flow hooks modify-git-commit');
|
|
1149
|
+
process.exit(0);
|
|
1150
|
+
}
|
|
1151
|
+
}, 100); // 100ms timeout
|
|
1152
|
+
for await (const chunk of process.stdin) {
|
|
1153
|
+
hasInput = true;
|
|
1154
|
+
clearTimeout(timeout);
|
|
1155
|
+
input += chunk;
|
|
1156
|
+
}
|
|
1157
|
+
if (!input.trim()) {
|
|
1158
|
+
return; // Silently exit if no input
|
|
1159
|
+
}
|
|
1160
|
+
const toolInput = JSON.parse(input);
|
|
1161
|
+
const command = toolInput.tool_input?.command || '';
|
|
1162
|
+
if (!command || !/git commit/.test(command)) {
|
|
1163
|
+
console.log(input); // Pass through if not git commit
|
|
1164
|
+
return;
|
|
1165
|
+
}
|
|
1166
|
+
// Extract commit message
|
|
1167
|
+
const msgMatch = command.match(/-m\s+["']([^"']+)["']/) || command.match(/-m\s+(\S+)/);
|
|
1168
|
+
const commitMsg = msgMatch ? msgMatch[1] : '';
|
|
1169
|
+
if (!commitMsg || /^\[(feat|fix|docs|style|refactor|test|chore|perf)\]/.test(commitMsg)) {
|
|
1170
|
+
console.log(input); // Already formatted or no message
|
|
1171
|
+
return;
|
|
1172
|
+
}
|
|
1173
|
+
const notes = [];
|
|
1174
|
+
// Get current branch
|
|
1175
|
+
let branch = 'main';
|
|
1176
|
+
let ticket = '';
|
|
1177
|
+
try {
|
|
1178
|
+
const { execSync } = await import('child_process');
|
|
1179
|
+
branch = execSync('git rev-parse --abbrev-ref HEAD', { encoding: 'utf8' }).trim();
|
|
1180
|
+
// Extract JIRA ticket
|
|
1181
|
+
const ticketMatch = branch.match(/[A-Z]+-[0-9]+/);
|
|
1182
|
+
if (ticketMatch) {
|
|
1183
|
+
ticket = ticketMatch[0];
|
|
1184
|
+
}
|
|
1185
|
+
}
|
|
1186
|
+
catch {
|
|
1187
|
+
// Git not available, continue
|
|
1188
|
+
}
|
|
1189
|
+
// Detect conventional commit type
|
|
1190
|
+
let type = 'chore';
|
|
1191
|
+
if (/^(add|implement|create|new)/i.test(commitMsg))
|
|
1192
|
+
type = 'feat';
|
|
1193
|
+
else if (/^(fix|resolve|patch|correct)/i.test(commitMsg))
|
|
1194
|
+
type = 'fix';
|
|
1195
|
+
else if (/^(update|modify|change|improve)/i.test(commitMsg))
|
|
1196
|
+
type = 'refactor';
|
|
1197
|
+
else if (/^(doc|documentation|readme)/i.test(commitMsg))
|
|
1198
|
+
type = 'docs';
|
|
1199
|
+
else if (/^(test|testing|spec)/i.test(commitMsg))
|
|
1200
|
+
type = 'test';
|
|
1201
|
+
else if (/^(style|format|lint)/i.test(commitMsg))
|
|
1202
|
+
type = 'style';
|
|
1203
|
+
else if (/^(perf|optimize|speed)/i.test(commitMsg))
|
|
1204
|
+
type = 'perf';
|
|
1205
|
+
// Format message
|
|
1206
|
+
let formattedMsg = ticket
|
|
1207
|
+
? `[${type}] ${commitMsg} (${ticket})`
|
|
1208
|
+
: `[${type}] ${commitMsg}`;
|
|
1209
|
+
// Add co-author
|
|
1210
|
+
if (!/Co-Authored-By/.test(command)) {
|
|
1211
|
+
formattedMsg += `\n\nš¤ Generated with Claude Flow\nCo-Authored-By: claude-flow <noreply@ruv.io>`;
|
|
1212
|
+
}
|
|
1213
|
+
// Replace message in command
|
|
1214
|
+
const modifiedCommand = command.replace(/-m\s+["'][^"']+["']|-m\s+\S+/, `-m "$(cat <<'EOF'\n${formattedMsg}\nEOF\n)"`);
|
|
1215
|
+
notes.push(`[Auto-formatted: ${type} type${ticket ? ` + ${ticket}` : ''}]`);
|
|
1216
|
+
// Output modified JSON
|
|
1217
|
+
const output = {
|
|
1218
|
+
...toolInput,
|
|
1219
|
+
tool_input: {
|
|
1220
|
+
...toolInput.tool_input,
|
|
1221
|
+
command: modifiedCommand,
|
|
1222
|
+
},
|
|
1223
|
+
modification_notes: notes.join(' '),
|
|
1224
|
+
};
|
|
1225
|
+
console.log(JSON.stringify(output, null, 2));
|
|
1226
|
+
}
|
|
1227
|
+
function showHooksHelp() {
|
|
1228
|
+
console.log('Claude Flow Hooks (with .swarm/memory.db persistence):\n');
|
|
1229
|
+
console.log('Pre-Operation Hooks:');
|
|
1230
|
+
console.log(' pre-task Execute before starting a task');
|
|
1231
|
+
console.log(' pre-edit Validate before file modifications');
|
|
1232
|
+
console.log(' --auto-assign-agents Auto-assign agents based on file type');
|
|
1233
|
+
console.log(' --load-context Load file context');
|
|
1234
|
+
console.log(' pre-bash Check command safety (alias: pre-command)');
|
|
1235
|
+
console.log(' pre-command Same as pre-bash');
|
|
1236
|
+
console.log(' --validate-safety Enable safety validation');
|
|
1237
|
+
console.log(' --prepare-resources Prepare execution resources');
|
|
1238
|
+
console.log('\nPost-Operation Hooks:');
|
|
1239
|
+
console.log(' post-task Execute after completing a task');
|
|
1240
|
+
console.log(' post-edit Auto-format and log edits');
|
|
1241
|
+
console.log(' --format Auto-format code');
|
|
1242
|
+
console.log(' --update-memory Update agent memory');
|
|
1243
|
+
console.log(' --train-neural Train neural patterns');
|
|
1244
|
+
console.log(' post-bash Log command execution (alias: post-command)');
|
|
1245
|
+
console.log(' post-command Same as post-bash');
|
|
1246
|
+
console.log(' --track-metrics Track performance metrics');
|
|
1247
|
+
console.log(' --store-results Store detailed results');
|
|
1248
|
+
console.log(' post-search Cache search results');
|
|
1249
|
+
console.log('\nMCP Integration Hooks:');
|
|
1250
|
+
console.log(' mcp-initialized Persist MCP configuration');
|
|
1251
|
+
console.log(' agent-spawned Update agent roster');
|
|
1252
|
+
console.log(' task-orchestrated Monitor task progress');
|
|
1253
|
+
console.log(' neural-trained Save pattern improvements');
|
|
1254
|
+
console.log('\nSession Hooks:');
|
|
1255
|
+
console.log(' session-end Generate summary and save state');
|
|
1256
|
+
console.log(' --generate-summary Generate session summary');
|
|
1257
|
+
console.log(' --persist-state Persist session state');
|
|
1258
|
+
console.log(' --export-metrics Export performance metrics');
|
|
1259
|
+
console.log(' session-restore Load previous session state');
|
|
1260
|
+
console.log(' notify Custom notifications');
|
|
1261
|
+
console.log('\n===== NEW: PreToolUse Modification Hooks (v2.0.10+) =====');
|
|
1262
|
+
console.log(' modify-bash Modify Bash tool inputs (reads/writes JSON via stdin/stdout)');
|
|
1263
|
+
console.log(' ⢠Safety: Adds -i flag to rm commands');
|
|
1264
|
+
console.log(' ⢠Aliases: ll ā ls -lah, la ā ls -la');
|
|
1265
|
+
console.log(' ⢠Path correction: Redirects test files to /tmp');
|
|
1266
|
+
console.log(' ⢠Secret detection: Warns about sensitive keywords');
|
|
1267
|
+
console.log('');
|
|
1268
|
+
console.log(' modify-file Modify Write/Edit tool inputs (reads/writes JSON via stdin/stdout)');
|
|
1269
|
+
console.log(' ⢠Root folder protection: Moves files to appropriate directories');
|
|
1270
|
+
console.log(' ⢠Organization: Tests ā /tests/, Sources ā /src/, Docs ā /docs/');
|
|
1271
|
+
console.log(' ⢠Format hints: Suggests Prettier, Black, etc.');
|
|
1272
|
+
console.log('');
|
|
1273
|
+
console.log(' modify-git-commit Modify git commit messages (reads/writes JSON via stdin/stdout)');
|
|
1274
|
+
console.log(' ⢠Conventional commits: Auto-adds [feat], [fix], [docs], etc.');
|
|
1275
|
+
console.log(' ⢠Ticket extraction: Extracts JIRA tickets from branch names');
|
|
1276
|
+
console.log(' ⢠Co-author: Adds Claude Flow co-author footer');
|
|
1277
|
+
console.log('\nExamples:');
|
|
1278
|
+
console.log(' hooks pre-command --command "npm test" --validate-safety true');
|
|
1279
|
+
console.log(' hooks pre-edit --file "src/app.js" --auto-assign-agents true');
|
|
1280
|
+
console.log(' hooks post-command --command "build" --track-metrics true');
|
|
1281
|
+
console.log(' hooks post-edit --file "src/app.js" --format true --train-neural true');
|
|
1282
|
+
console.log(' hooks session-end --generate-summary true --export-metrics true');
|
|
1283
|
+
console.log(' hooks agent-spawned --name "CodeReviewer" --type "reviewer"');
|
|
1284
|
+
console.log(' hooks notify --message "Build completed" --level "success"');
|
|
1285
|
+
console.log('');
|
|
1286
|
+
console.log(' # New modification hooks (stdin/stdout JSON):');
|
|
1287
|
+
console.log(' echo \'{"tool_input":{"command":"rm test.txt"}}\' | hooks modify-bash');
|
|
1288
|
+
console.log(' echo \'{"tool_input":{"file_path":"test.js"}}\' | hooks modify-file');
|
|
1289
|
+
console.log(' echo \'{"tool_input":{"command":"git commit -m \\"fix bug\\""}}\' | hooks modify-git-commit');
|
|
1290
|
+
console.log('\nCompatibility:');
|
|
1291
|
+
console.log(' ⢠pre-command and pre-bash are aliases');
|
|
1292
|
+
console.log(' ⢠post-command and post-bash are aliases');
|
|
1293
|
+
console.log(' ⢠Both --dash-case and camelCase parameters supported');
|
|
1294
|
+
console.log(' ⢠All parameters from settings.json template supported');
|
|
1295
|
+
console.log(' ⢠New modification hooks work with Claude Code v2.0.10+ PreToolUse feature');
|
|
1296
|
+
}
|
|
1297
|
+
export default hooksAction;
|
|
1298
|
+
//# sourceMappingURL=hooks.js.map
|