claude-flow 2.0.0-alpha.70 ā 2.0.0-alpha.71
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/commands/sparc/architect.md +24 -51
- package/.claude/commands/sparc/tdd.md +30 -59
- package/.claude/settings.local.json +6 -1
- package/bin/claude-flow +1 -1
- package/package.json +1 -1
- package/src/cli/simple-commands/hooks.js +11 -2
- package/.claude/commands/analysis/README.md +0 -9
- package/.claude/commands/analysis/bottleneck-detect.md +0 -162
- package/.claude/commands/analysis/performance-report.md +0 -25
- package/.claude/commands/analysis/token-usage.md +0 -25
- package/.claude/commands/automation/README.md +0 -9
- package/.claude/commands/automation/auto-agent.md +0 -122
- package/.claude/commands/automation/smart-spawn.md +0 -25
- package/.claude/commands/automation/workflow-select.md +0 -25
- package/.claude/commands/coordination/README.md +0 -9
- package/.claude/commands/coordination/agent-spawn.md +0 -25
- package/.claude/commands/coordination/swarm-init.md +0 -85
- package/.claude/commands/coordination/task-orchestrate.md +0 -25
- package/.claude/commands/github/README.md +0 -11
- package/.claude/commands/github/code-review.md +0 -25
- package/.claude/commands/github/github-swarm.md +0 -121
- package/.claude/commands/github/issue-triage.md +0 -25
- package/.claude/commands/github/pr-enhance.md +0 -26
- package/.claude/commands/github/repo-analyze.md +0 -25
- package/.claude/commands/hooks/README.md +0 -11
- package/.claude/commands/hooks/post-edit.md +0 -117
- package/.claude/commands/hooks/post-task.md +0 -112
- package/.claude/commands/hooks/pre-edit.md +0 -113
- package/.claude/commands/hooks/pre-task.md +0 -111
- package/.claude/commands/hooks/session-end.md +0 -118
- package/.claude/commands/memory/README.md +0 -9
- package/.claude/commands/memory/memory-persist.md +0 -25
- package/.claude/commands/memory/memory-search.md +0 -25
- package/.claude/commands/memory/memory-usage.md +0 -25
- package/.claude/commands/monitoring/README.md +0 -9
- package/.claude/commands/monitoring/agent-metrics.md +0 -25
- package/.claude/commands/monitoring/real-time-view.md +0 -25
- package/.claude/commands/monitoring/swarm-monitor.md +0 -25
- package/.claude/commands/optimization/README.md +0 -9
- package/.claude/commands/optimization/cache-manage.md +0 -25
- package/.claude/commands/optimization/parallel-execute.md +0 -25
- package/.claude/commands/optimization/topology-optimize.md +0 -25
- package/.claude/commands/sparc/ask.md +0 -97
- package/.claude/commands/sparc/code.md +0 -89
- package/.claude/commands/sparc/debug.md +0 -83
- package/.claude/commands/sparc/devops.md +0 -109
- package/.claude/commands/sparc/docs-writer.md +0 -80
- package/.claude/commands/sparc/integration.md +0 -83
- package/.claude/commands/sparc/mcp.md +0 -117
- package/.claude/commands/sparc/post-deployment-monitoring-mode.md +0 -83
- package/.claude/commands/sparc/refinement-optimization-mode.md +0 -83
- package/.claude/commands/sparc/security-review.md +0 -80
- package/.claude/commands/sparc/sparc.md +0 -111
- package/.claude/commands/sparc/spec-pseudocode.md +0 -80
- package/.claude/commands/sparc/supabase-admin.md +0 -348
- package/.claude/commands/sparc/tutorial.md +0 -79
- package/.claude/commands/sparc.md +0 -166
- package/.claude/commands/training/README.md +0 -9
- package/.claude/commands/training/model-update.md +0 -25
- package/.claude/commands/training/neural-train.md +0 -25
- package/.claude/commands/training/pattern-learn.md +0 -25
- package/.claude/commands/workflows/README.md +0 -9
- package/.claude/commands/workflows/workflow-create.md +0 -25
- package/.claude/commands/workflows/workflow-execute.md +0 -25
- package/.claude/commands/workflows/workflow-export.md +0 -25
- package/.claude/helpers/github-setup.sh +0 -28
- package/.claude/helpers/quick-start.sh +0 -19
- package/.claude/helpers/setup-mcp.sh +0 -18
- package/.claude/settings-backup.json +0 -186
- package/.claude/settings-clean.json +0 -96
- package/.claude/settings-fixed.json +0 -186
- package/.claude/settings-minimal.json +0 -52
- package/.claude/settings-working.json +0 -110
- package/dist/adapters/cliffy-node.d.ts +0 -45
- package/dist/adapters/cliffy-node.d.ts.map +0 -1
- package/dist/adapters/cliffy-node.js +0 -67
- package/dist/adapters/cliffy-node.js.map +0 -1
- package/dist/agents/agent-manager.d.ts +0 -191
- package/dist/agents/agent-manager.d.ts.map +0 -1
- package/dist/agents/agent-manager.js +0 -981
- package/dist/agents/agent-manager.js.map +0 -1
- package/dist/agents/agent-registry.d.ts +0 -112
- package/dist/agents/agent-registry.d.ts.map +0 -1
- package/dist/agents/agent-registry.js +0 -349
- package/dist/agents/agent-registry.js.map +0 -1
- package/dist/api/claude-api-errors.d.ts +0 -115
- package/dist/api/claude-api-errors.d.ts.map +0 -1
- package/dist/api/claude-api-errors.js +0 -198
- package/dist/api/claude-api-errors.js.map +0 -1
- package/dist/api/claude-client-enhanced.d.ts +0 -109
- package/dist/api/claude-client-enhanced.d.ts.map +0 -1
- package/dist/api/claude-client-enhanced.js +0 -479
- package/dist/api/claude-client-enhanced.js.map +0 -1
- package/dist/api/claude-client.d.ts +0 -197
- package/dist/api/claude-client.d.ts.map +0 -1
- package/dist/api/claude-client.js +0 -525
- package/dist/api/claude-client.js.map +0 -1
- package/dist/cli/agents/analyst.d.ts +0 -28
- package/dist/cli/agents/analyst.d.ts.map +0 -1
- package/dist/cli/agents/analyst.js +0 -698
- package/dist/cli/agents/analyst.js.map +0 -1
- package/dist/cli/agents/architect.d.ts +0 -27
- package/dist/cli/agents/architect.d.ts.map +0 -1
- package/dist/cli/agents/architect.js +0 -715
- package/dist/cli/agents/architect.js.map +0 -1
- package/dist/cli/agents/base-agent.d.ts +0 -80
- package/dist/cli/agents/base-agent.d.ts.map +0 -1
- package/dist/cli/agents/base-agent.js +0 -385
- package/dist/cli/agents/base-agent.js.map +0 -1
- package/dist/cli/agents/capabilities.d.ts +0 -106
- package/dist/cli/agents/capabilities.d.ts.map +0 -1
- package/dist/cli/agents/capabilities.js +0 -554
- package/dist/cli/agents/capabilities.js.map +0 -1
- package/dist/cli/agents/coder.d.ts +0 -34
- package/dist/cli/agents/coder.d.ts.map +0 -1
- package/dist/cli/agents/coder.js +0 -800
- package/dist/cli/agents/coder.js.map +0 -1
- package/dist/cli/agents/coordinator.d.ts +0 -25
- package/dist/cli/agents/coordinator.d.ts.map +0 -1
- package/dist/cli/agents/coordinator.js +0 -449
- package/dist/cli/agents/coordinator.js.map +0 -1
- package/dist/cli/agents/hive-agents.d.ts +0 -85
- package/dist/cli/agents/hive-agents.d.ts.map +0 -1
- package/dist/cli/agents/hive-agents.js +0 -547
- package/dist/cli/agents/hive-agents.js.map +0 -1
- package/dist/cli/agents/index.d.ts +0 -111
- package/dist/cli/agents/index.d.ts.map +0 -1
- package/dist/cli/agents/index.js +0 -276
- package/dist/cli/agents/index.js.map +0 -1
- package/dist/cli/agents/researcher.d.ts +0 -24
- package/dist/cli/agents/researcher.d.ts.map +0 -1
- package/dist/cli/agents/researcher.js +0 -336
- package/dist/cli/agents/researcher.js.map +0 -1
- package/dist/cli/agents/tester.d.ts +0 -27
- package/dist/cli/agents/tester.d.ts.map +0 -1
- package/dist/cli/agents/tester.js +0 -582
- package/dist/cli/agents/tester.js.map +0 -1
- package/dist/cli/cli-core.d.ts +0 -52
- package/dist/cli/cli-core.d.ts.map +0 -1
- package/dist/cli/cli-core.js +0 -264
- package/dist/cli/cli-core.js.map +0 -1
- package/dist/cli/command-registry.d.ts +0 -10
- package/dist/cli/command-registry.d.ts.map +0 -1
- package/dist/cli/command-registry.js +0 -735
- package/dist/cli/command-registry.js.map +0 -1
- package/dist/cli/commands/advanced-memory-commands.d.ts +0 -2
- package/dist/cli/commands/advanced-memory-commands.d.ts.map +0 -1
- package/dist/cli/commands/advanced-memory-commands.js +0 -858
- package/dist/cli/commands/advanced-memory-commands.js.map +0 -1
- package/dist/cli/commands/agent-simple.d.ts +0 -15
- package/dist/cli/commands/agent-simple.d.ts.map +0 -1
- package/dist/cli/commands/agent-simple.js +0 -356
- package/dist/cli/commands/agent-simple.js.map +0 -1
- package/dist/cli/commands/agent.d.ts +0 -7
- package/dist/cli/commands/agent.d.ts.map +0 -1
- package/dist/cli/commands/agent.js +0 -382
- package/dist/cli/commands/agent.js.map +0 -1
- package/dist/cli/commands/claude-api.d.ts +0 -6
- package/dist/cli/commands/claude-api.d.ts.map +0 -1
- package/dist/cli/commands/claude-api.js +0 -256
- package/dist/cli/commands/claude-api.js.map +0 -1
- package/dist/cli/commands/claude.d.ts +0 -3
- package/dist/cli/commands/claude.d.ts.map +0 -1
- package/dist/cli/commands/claude.js +0 -154
- package/dist/cli/commands/claude.js.map +0 -1
- package/dist/cli/commands/config-integration.d.ts +0 -16
- package/dist/cli/commands/config-integration.d.ts.map +0 -1
- package/dist/cli/commands/config-integration.js +0 -425
- package/dist/cli/commands/config-integration.js.map +0 -1
- package/dist/cli/commands/config.d.ts +0 -5
- package/dist/cli/commands/config.d.ts.map +0 -1
- package/dist/cli/commands/config.js +0 -88
- package/dist/cli/commands/config.js.map +0 -1
- package/dist/cli/commands/enterprise.d.ts +0 -3
- package/dist/cli/commands/enterprise.d.ts.map +0 -1
- package/dist/cli/commands/enterprise.js +0 -1506
- package/dist/cli/commands/enterprise.js.map +0 -1
- package/dist/cli/commands/help-new.d.ts +0 -7
- package/dist/cli/commands/help-new.d.ts.map +0 -1
- package/dist/cli/commands/help-new.js +0 -236
- package/dist/cli/commands/help-new.js.map +0 -1
- package/dist/cli/commands/help.d.ts +0 -7
- package/dist/cli/commands/help.d.ts.map +0 -1
- package/dist/cli/commands/help.js +0 -936
- package/dist/cli/commands/help.js.map +0 -1
- package/dist/cli/commands/hive-mind/index.d.ts +0 -19
- package/dist/cli/commands/hive-mind/index.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/index.js +0 -30
- package/dist/cli/commands/hive-mind/index.js.map +0 -1
- package/dist/cli/commands/hive-mind/init.d.ts +0 -10
- package/dist/cli/commands/hive-mind/init.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/init.js +0 -68
- package/dist/cli/commands/hive-mind/init.js.map +0 -1
- package/dist/cli/commands/hive-mind/optimize-memory.d.ts +0 -8
- package/dist/cli/commands/hive-mind/optimize-memory.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/optimize-memory.js +0 -400
- package/dist/cli/commands/hive-mind/optimize-memory.js.map +0 -1
- package/dist/cli/commands/hive-mind/pause.d.ts +0 -9
- package/dist/cli/commands/hive-mind/pause.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/pause.js +0 -81
- package/dist/cli/commands/hive-mind/pause.js.map +0 -1
- package/dist/cli/commands/hive-mind/ps.d.ts +0 -9
- package/dist/cli/commands/hive-mind/ps.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/ps.js +0 -120
- package/dist/cli/commands/hive-mind/ps.js.map +0 -1
- package/dist/cli/commands/hive-mind/resume.d.ts +0 -9
- package/dist/cli/commands/hive-mind/resume.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/resume.js +0 -62
- package/dist/cli/commands/hive-mind/resume.js.map +0 -1
- package/dist/cli/commands/hive-mind/spawn.d.ts +0 -10
- package/dist/cli/commands/hive-mind/spawn.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/spawn.js +0 -156
- package/dist/cli/commands/hive-mind/spawn.js.map +0 -1
- package/dist/cli/commands/hive-mind/status.d.ts +0 -10
- package/dist/cli/commands/hive-mind/status.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/status.js +0 -204
- package/dist/cli/commands/hive-mind/status.js.map +0 -1
- package/dist/cli/commands/hive-mind/stop.d.ts +0 -9
- package/dist/cli/commands/hive-mind/stop.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/stop.js +0 -125
- package/dist/cli/commands/hive-mind/stop.js.map +0 -1
- package/dist/cli/commands/hive-mind/task.d.ts +0 -10
- package/dist/cli/commands/hive-mind/task.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/task.js +0 -294
- package/dist/cli/commands/hive-mind/task.js.map +0 -1
- package/dist/cli/commands/hive-mind/wizard.d.ts +0 -10
- package/dist/cli/commands/hive-mind/wizard.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/wizard.js +0 -531
- package/dist/cli/commands/hive-mind/wizard.js.map +0 -1
- package/dist/cli/commands/hive.d.ts +0 -6
- package/dist/cli/commands/hive.d.ts.map +0 -1
- package/dist/cli/commands/hive.js +0 -409
- package/dist/cli/commands/hive.js.map +0 -1
- package/dist/cli/commands/hook-types.d.ts +0 -117
- package/dist/cli/commands/hook-types.d.ts.map +0 -1
- package/dist/cli/commands/hook-types.js +0 -5
- package/dist/cli/commands/hook-types.js.map +0 -1
- package/dist/cli/commands/hook-validator.d.ts +0 -18
- package/dist/cli/commands/hook-validator.d.ts.map +0 -1
- package/dist/cli/commands/hook-validator.js +0 -167
- package/dist/cli/commands/hook-validator.js.map +0 -1
- package/dist/cli/commands/hook.d.ts +0 -8
- package/dist/cli/commands/hook.d.ts.map +0 -1
- package/dist/cli/commands/hook.js +0 -299
- package/dist/cli/commands/hook.js.map +0 -1
- package/dist/cli/commands/index.d.ts +0 -3
- package/dist/cli/commands/index.d.ts.map +0 -1
- package/dist/cli/commands/index.js +0 -2532
- package/dist/cli/commands/index.js.map +0 -1
- package/dist/cli/commands/mcp.d.ts +0 -6
- package/dist/cli/commands/mcp.d.ts.map +0 -1
- package/dist/cli/commands/mcp.js +0 -169
- package/dist/cli/commands/mcp.js.map +0 -1
- package/dist/cli/commands/memory.d.ts +0 -30
- package/dist/cli/commands/memory.d.ts.map +0 -1
- package/dist/cli/commands/memory.js +0 -225
- package/dist/cli/commands/memory.js.map +0 -1
- package/dist/cli/commands/migrate.d.ts +0 -6
- package/dist/cli/commands/migrate.d.ts.map +0 -1
- package/dist/cli/commands/migrate.js +0 -139
- package/dist/cli/commands/migrate.js.map +0 -1
- package/dist/cli/commands/monitor.d.ts +0 -6
- package/dist/cli/commands/monitor.d.ts.map +0 -1
- package/dist/cli/commands/monitor.js +0 -493
- package/dist/cli/commands/monitor.js.map +0 -1
- package/dist/cli/commands/ruv-swarm.d.ts +0 -16
- package/dist/cli/commands/ruv-swarm.d.ts.map +0 -1
- package/dist/cli/commands/ruv-swarm.js +0 -563
- package/dist/cli/commands/ruv-swarm.js.map +0 -1
- package/dist/cli/commands/session.d.ts +0 -6
- package/dist/cli/commands/session.d.ts.map +0 -1
- package/dist/cli/commands/session.js +0 -548
- package/dist/cli/commands/session.js.map +0 -1
- package/dist/cli/commands/sparc.d.ts +0 -3
- package/dist/cli/commands/sparc.d.ts.map +0 -1
- package/dist/cli/commands/sparc.js +0 -472
- package/dist/cli/commands/sparc.js.map +0 -1
- package/dist/cli/commands/start/event-emitter.d.ts +0 -13
- package/dist/cli/commands/start/event-emitter.d.ts.map +0 -1
- package/dist/cli/commands/start/event-emitter.js +0 -35
- package/dist/cli/commands/start/event-emitter.js.map +0 -1
- package/dist/cli/commands/start/index.d.ts +0 -10
- package/dist/cli/commands/start/index.d.ts.map +0 -1
- package/dist/cli/commands/start/index.js +0 -9
- package/dist/cli/commands/start/index.js.map +0 -1
- package/dist/cli/commands/start/process-manager.d.ts +0 -31
- package/dist/cli/commands/start/process-manager.d.ts.map +0 -1
- package/dist/cli/commands/start/process-manager.js +0 -283
- package/dist/cli/commands/start/process-manager.js.map +0 -1
- package/dist/cli/commands/start/process-ui-simple.d.ts +0 -29
- package/dist/cli/commands/start/process-ui-simple.d.ts.map +0 -1
- package/dist/cli/commands/start/process-ui-simple.js +0 -334
- package/dist/cli/commands/start/process-ui-simple.js.map +0 -1
- package/dist/cli/commands/start/process-ui.d.ts +0 -5
- package/dist/cli/commands/start/process-ui.d.ts.map +0 -1
- package/dist/cli/commands/start/process-ui.js +0 -5
- package/dist/cli/commands/start/process-ui.js.map +0 -1
- package/dist/cli/commands/start/start-command.d.ts +0 -6
- package/dist/cli/commands/start/start-command.d.ts.map +0 -1
- package/dist/cli/commands/start/start-command.js +0 -462
- package/dist/cli/commands/start/start-command.js.map +0 -1
- package/dist/cli/commands/start/system-monitor.d.ts +0 -25
- package/dist/cli/commands/start/system-monitor.d.ts.map +0 -1
- package/dist/cli/commands/start/system-monitor.js +0 -265
- package/dist/cli/commands/start/system-monitor.js.map +0 -1
- package/dist/cli/commands/start/types.d.ts +0 -64
- package/dist/cli/commands/start/types.d.ts.map +0 -1
- package/dist/cli/commands/start/types.js +0 -22
- package/dist/cli/commands/start/types.js.map +0 -1
- package/dist/cli/commands/start.d.ts +0 -6
- package/dist/cli/commands/start.d.ts.map +0 -1
- package/dist/cli/commands/start.js +0 -6
- package/dist/cli/commands/start.js.map +0 -1
- package/dist/cli/commands/status.d.ts +0 -6
- package/dist/cli/commands/status.d.ts.map +0 -1
- package/dist/cli/commands/status.js +0 -307
- package/dist/cli/commands/status.js.map +0 -1
- package/dist/cli/commands/swarm-spawn.d.ts +0 -24
- package/dist/cli/commands/swarm-spawn.d.ts.map +0 -1
- package/dist/cli/commands/swarm-spawn.js +0 -56
- package/dist/cli/commands/swarm-spawn.js.map +0 -1
- package/dist/cli/commands/swarm.d.ts +0 -6
- package/dist/cli/commands/swarm.d.ts.map +0 -1
- package/dist/cli/commands/swarm.js +0 -465
- package/dist/cli/commands/swarm.js.map +0 -1
- package/dist/cli/commands/task.d.ts +0 -6
- package/dist/cli/commands/task.d.ts.map +0 -1
- package/dist/cli/commands/task.js +0 -75
- package/dist/cli/commands/task.js.map +0 -1
- package/dist/cli/commands/workflow.d.ts +0 -6
- package/dist/cli/commands/workflow.d.ts.map +0 -1
- package/dist/cli/commands/workflow.js +0 -624
- package/dist/cli/commands/workflow.js.map +0 -1
- package/dist/cli/completion.d.ts +0 -19
- package/dist/cli/completion.d.ts.map +0 -1
- package/dist/cli/completion.js +0 -545
- package/dist/cli/completion.js.map +0 -1
- package/dist/cli/formatter.d.ts +0 -69
- package/dist/cli/formatter.d.ts.map +0 -1
- package/dist/cli/formatter.js +0 -277
- package/dist/cli/formatter.js.map +0 -1
- package/dist/cli/help-formatter.d.ts +0 -49
- package/dist/cli/help-formatter.d.ts.map +0 -1
- package/dist/cli/help-formatter.js +0 -108
- package/dist/cli/help-formatter.js.map +0 -1
- package/dist/cli/index-remote.d.ts +0 -7
- package/dist/cli/index-remote.d.ts.map +0 -1
- package/dist/cli/index-remote.js +0 -126
- package/dist/cli/index-remote.js.map +0 -1
- package/dist/cli/index.d.ts +0 -7
- package/dist/cli/index.d.ts.map +0 -1
- package/dist/cli/index.js +0 -191
- package/dist/cli/index.js.map +0 -1
- package/dist/cli/init/batch-tools.d.ts +0 -2
- package/dist/cli/init/batch-tools.d.ts.map +0 -1
- package/dist/cli/init/batch-tools.js +0 -387
- package/dist/cli/init/batch-tools.js.map +0 -1
- package/dist/cli/init/claude-config.d.ts +0 -3
- package/dist/cli/init/claude-config.d.ts.map +0 -1
- package/dist/cli/init/claude-config.js +0 -294
- package/dist/cli/init/claude-config.js.map +0 -1
- package/dist/cli/init/directory-structure.d.ts +0 -2
- package/dist/cli/init/directory-structure.d.ts.map +0 -1
- package/dist/cli/init/directory-structure.js +0 -144
- package/dist/cli/init/directory-structure.js.map +0 -1
- package/dist/cli/init/index.d.ts +0 -6
- package/dist/cli/init/index.d.ts.map +0 -1
- package/dist/cli/init/index.js +0 -52
- package/dist/cli/init/index.js.map +0 -1
- package/dist/cli/init/sparc-environment.d.ts +0 -2
- package/dist/cli/init/sparc-environment.d.ts.map +0 -1
- package/dist/cli/init/sparc-environment.js +0 -426
- package/dist/cli/init/sparc-environment.js.map +0 -1
- package/dist/cli/init/swarm-commands.d.ts +0 -2
- package/dist/cli/init/swarm-commands.d.ts.map +0 -1
- package/dist/cli/init/swarm-commands.js +0 -795
- package/dist/cli/init/swarm-commands.js.map +0 -1
- package/dist/cli/init/utils.d.ts +0 -5
- package/dist/cli/init/utils.d.ts.map +0 -1
- package/dist/cli/init/utils.js +0 -14
- package/dist/cli/init/utils.js.map +0 -1
- package/dist/cli/main.d.ts +0 -6
- package/dist/cli/main.d.ts.map +0 -1
- package/dist/cli/main.js +0 -26
- package/dist/cli/main.js.map +0 -1
- package/dist/cli/node-compat.d.ts +0 -106
- package/dist/cli/node-compat.d.ts.map +0 -1
- package/dist/cli/node-compat.js +0 -248
- package/dist/cli/node-compat.js.map +0 -1
- package/dist/cli/node-repl.d.ts +0 -9
- package/dist/cli/node-repl.d.ts.map +0 -1
- package/dist/cli/node-repl.js +0 -594
- package/dist/cli/node-repl.js.map +0 -1
- package/dist/cli/repl.d.ts +0 -5
- package/dist/cli/repl.d.ts.map +0 -1
- package/dist/cli/repl.js +0 -949
- package/dist/cli/repl.js.map +0 -1
- package/dist/cli/runtime-detector.d.ts +0 -128
- package/dist/cli/runtime-detector.d.ts.map +0 -1
- package/dist/cli/runtime-detector.js +0 -267
- package/dist/cli/runtime-detector.js.map +0 -1
- package/dist/cli/simple-cli.d.ts +0 -7
- package/dist/cli/simple-cli.d.ts.map +0 -1
- package/dist/cli/simple-cli.js +0 -3074
- package/dist/cli/simple-cli.js.map +0 -1
- package/dist/cli/simple-commands/agent.d.ts +0 -2
- package/dist/cli/simple-commands/agent.d.ts.map +0 -1
- package/dist/cli/simple-commands/agent.js +0 -175
- package/dist/cli/simple-commands/agent.js.map +0 -1
- package/dist/cli/simple-commands/analysis.d.ts +0 -2
- package/dist/cli/simple-commands/analysis.d.ts.map +0 -1
- package/dist/cli/simple-commands/analysis.js +0 -207
- package/dist/cli/simple-commands/analysis.js.map +0 -1
- package/dist/cli/simple-commands/automation.d.ts +0 -2
- package/dist/cli/simple-commands/automation.d.ts.map +0 -1
- package/dist/cli/simple-commands/automation.js +0 -246
- package/dist/cli/simple-commands/automation.js.map +0 -1
- package/dist/cli/simple-commands/batch-manager.d.ts +0 -2
- package/dist/cli/simple-commands/batch-manager.d.ts.map +0 -1
- package/dist/cli/simple-commands/batch-manager.js +0 -289
- package/dist/cli/simple-commands/batch-manager.js.map +0 -1
- package/dist/cli/simple-commands/config.d.ts +0 -2
- package/dist/cli/simple-commands/config.d.ts.map +0 -1
- package/dist/cli/simple-commands/config.js +0 -278
- package/dist/cli/simple-commands/config.js.map +0 -1
- package/dist/cli/simple-commands/coordination.d.ts +0 -2
- package/dist/cli/simple-commands/coordination.d.ts.map +0 -1
- package/dist/cli/simple-commands/coordination.js +0 -249
- package/dist/cli/simple-commands/coordination.js.map +0 -1
- package/dist/cli/simple-commands/fix-hook-variables.d.ts +0 -16
- package/dist/cli/simple-commands/fix-hook-variables.d.ts.map +0 -1
- package/dist/cli/simple-commands/fix-hook-variables.js +0 -320
- package/dist/cli/simple-commands/fix-hook-variables.js.map +0 -1
- package/dist/cli/simple-commands/github.d.ts +0 -3
- package/dist/cli/simple-commands/github.d.ts.map +0 -1
- package/dist/cli/simple-commands/github.js +0 -343
- package/dist/cli/simple-commands/github.js.map +0 -1
- package/dist/cli/simple-commands/hive-mind/auto-save-middleware.d.ts +0 -68
- package/dist/cli/simple-commands/hive-mind/auto-save-middleware.d.ts.map +0 -1
- package/dist/cli/simple-commands/hive-mind/auto-save-middleware.js +0 -264
- package/dist/cli/simple-commands/hive-mind/auto-save-middleware.js.map +0 -1
- package/dist/cli/simple-commands/hive-mind/communication.d.ts +0 -176
- package/dist/cli/simple-commands/hive-mind/communication.d.ts.map +0 -1
- package/dist/cli/simple-commands/hive-mind/communication.js +0 -611
- package/dist/cli/simple-commands/hive-mind/communication.js.map +0 -1
- package/dist/cli/simple-commands/hive-mind/core.d.ts +0 -306
- package/dist/cli/simple-commands/hive-mind/core.d.ts.map +0 -1
- package/dist/cli/simple-commands/hive-mind/core.js +0 -840
- package/dist/cli/simple-commands/hive-mind/core.js.map +0 -1
- package/dist/cli/simple-commands/hive-mind/db-optimizer.d.ts +0 -32
- package/dist/cli/simple-commands/hive-mind/db-optimizer.d.ts.map +0 -1
- package/dist/cli/simple-commands/hive-mind/db-optimizer.js +0 -702
- package/dist/cli/simple-commands/hive-mind/db-optimizer.js.map +0 -1
- package/dist/cli/simple-commands/hive-mind/mcp-wrapper.d.ts +0 -270
- package/dist/cli/simple-commands/hive-mind/mcp-wrapper.d.ts.map +0 -1
- package/dist/cli/simple-commands/hive-mind/mcp-wrapper.js +0 -1211
- package/dist/cli/simple-commands/hive-mind/mcp-wrapper.js.map +0 -1
- package/dist/cli/simple-commands/hive-mind/memory.d.ts +0 -334
- package/dist/cli/simple-commands/hive-mind/memory.d.ts.map +0 -1
- package/dist/cli/simple-commands/hive-mind/memory.js +0 -1068
- package/dist/cli/simple-commands/hive-mind/memory.js.map +0 -1
- package/dist/cli/simple-commands/hive-mind/performance-optimizer.d.ts +0 -256
- package/dist/cli/simple-commands/hive-mind/performance-optimizer.d.ts.map +0 -1
- package/dist/cli/simple-commands/hive-mind/performance-optimizer.js +0 -520
- package/dist/cli/simple-commands/hive-mind/performance-optimizer.js.map +0 -1
- package/dist/cli/simple-commands/hive-mind/queen.d.ts +0 -294
- package/dist/cli/simple-commands/hive-mind/queen.d.ts.map +0 -1
- package/dist/cli/simple-commands/hive-mind/queen.js +0 -697
- package/dist/cli/simple-commands/hive-mind/queen.js.map +0 -1
- package/dist/cli/simple-commands/hive-mind/session-manager.d.ts +0 -139
- package/dist/cli/simple-commands/hive-mind/session-manager.d.ts.map +0 -1
- package/dist/cli/simple-commands/hive-mind/session-manager.js +0 -833
- package/dist/cli/simple-commands/hive-mind/session-manager.js.map +0 -1
- package/dist/cli/simple-commands/hive-mind-optimize.d.ts +0 -6
- package/dist/cli/simple-commands/hive-mind-optimize.d.ts.map +0 -1
- package/dist/cli/simple-commands/hive-mind-optimize.js +0 -317
- package/dist/cli/simple-commands/hive-mind-optimize.js.map +0 -1
- package/dist/cli/simple-commands/hive-mind.d.ts +0 -18
- package/dist/cli/simple-commands/hive-mind.d.ts.map +0 -1
- package/dist/cli/simple-commands/hive-mind.js +0 -2430
- package/dist/cli/simple-commands/hive-mind.js.map +0 -1
- package/dist/cli/simple-commands/hook-safety.d.ts +0 -177
- package/dist/cli/simple-commands/hook-safety.d.ts.map +0 -1
- package/dist/cli/simple-commands/hook-safety.js +0 -590
- package/dist/cli/simple-commands/hook-safety.js.map +0 -1
- package/dist/cli/simple-commands/hooks.d.ts +0 -3
- package/dist/cli/simple-commands/hooks.d.ts.map +0 -1
- package/dist/cli/simple-commands/hooks.js +0 -995
- package/dist/cli/simple-commands/hooks.js.map +0 -1
- package/dist/cli/simple-commands/init/batch-init.d.ts +0 -137
- package/dist/cli/simple-commands/init/batch-init.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/batch-init.js +0 -557
- package/dist/cli/simple-commands/init/batch-init.js.map +0 -1
- package/dist/cli/simple-commands/init/claude-commands/claude-flow-commands.d.ts +0 -2
- package/dist/cli/simple-commands/init/claude-commands/claude-flow-commands.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/claude-commands/claude-flow-commands.js +0 -432
- package/dist/cli/simple-commands/init/claude-commands/claude-flow-commands.js.map +0 -1
- package/dist/cli/simple-commands/init/claude-commands/optimized-claude-flow-commands.d.ts +0 -2
- package/dist/cli/simple-commands/init/claude-commands/optimized-claude-flow-commands.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/claude-commands/optimized-claude-flow-commands.js +0 -870
- package/dist/cli/simple-commands/init/claude-commands/optimized-claude-flow-commands.js.map +0 -1
- package/dist/cli/simple-commands/init/claude-commands/optimized-slash-commands.d.ts +0 -2
- package/dist/cli/simple-commands/init/claude-commands/optimized-slash-commands.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/claude-commands/optimized-slash-commands.js +0 -332
- package/dist/cli/simple-commands/init/claude-commands/optimized-slash-commands.js.map +0 -1
- package/dist/cli/simple-commands/init/claude-commands/optimized-sparc-commands.d.ts +0 -3
- package/dist/cli/simple-commands/init/claude-commands/optimized-sparc-commands.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/claude-commands/optimized-sparc-commands.js +0 -488
- package/dist/cli/simple-commands/init/claude-commands/optimized-sparc-commands.js.map +0 -1
- package/dist/cli/simple-commands/init/claude-commands/slash-commands.d.ts +0 -2
- package/dist/cli/simple-commands/init/claude-commands/slash-commands.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/claude-commands/slash-commands.js +0 -50
- package/dist/cli/simple-commands/init/claude-commands/slash-commands.js.map +0 -1
- package/dist/cli/simple-commands/init/claude-commands/sparc-commands.d.ts +0 -3
- package/dist/cli/simple-commands/init/claude-commands/sparc-commands.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/claude-commands/sparc-commands.js +0 -288
- package/dist/cli/simple-commands/init/claude-commands/sparc-commands.js.map +0 -1
- package/dist/cli/simple-commands/init/copy-revised-templates.d.ts +0 -29
- package/dist/cli/simple-commands/init/copy-revised-templates.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/copy-revised-templates.js +0 -159
- package/dist/cli/simple-commands/init/copy-revised-templates.js.map +0 -1
- package/dist/cli/simple-commands/init/executable-wrapper.d.ts +0 -2
- package/dist/cli/simple-commands/init/executable-wrapper.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/executable-wrapper.js +0 -116
- package/dist/cli/simple-commands/init/executable-wrapper.js.map +0 -1
- package/dist/cli/simple-commands/init/gitignore-updater.d.ts +0 -23
- package/dist/cli/simple-commands/init/gitignore-updater.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/gitignore-updater.js +0 -126
- package/dist/cli/simple-commands/init/gitignore-updater.js.map +0 -1
- package/dist/cli/simple-commands/init/help.d.ts +0 -2
- package/dist/cli/simple-commands/init/help.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/help.js +0 -95
- package/dist/cli/simple-commands/init/help.js.map +0 -1
- package/dist/cli/simple-commands/init/index.d.ts +0 -2
- package/dist/cli/simple-commands/init/index.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/index.js +0 -1127
- package/dist/cli/simple-commands/init/index.js.map +0 -1
- package/dist/cli/simple-commands/init/performance-monitor.d.ts +0 -73
- package/dist/cli/simple-commands/init/performance-monitor.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/performance-monitor.js +0 -277
- package/dist/cli/simple-commands/init/performance-monitor.js.map +0 -1
- package/dist/cli/simple-commands/init/rollback/backup-manager.d.ts +0 -95
- package/dist/cli/simple-commands/init/rollback/backup-manager.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/rollback/backup-manager.js +0 -485
- package/dist/cli/simple-commands/init/rollback/backup-manager.js.map +0 -1
- package/dist/cli/simple-commands/init/rollback/index.d.ts +0 -114
- package/dist/cli/simple-commands/init/rollback/index.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/rollback/index.js +0 -353
- package/dist/cli/simple-commands/init/rollback/index.js.map +0 -1
- package/dist/cli/simple-commands/init/rollback/recovery-manager.d.ts +0 -161
- package/dist/cli/simple-commands/init/rollback/recovery-manager.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/rollback/recovery-manager.js +0 -686
- package/dist/cli/simple-commands/init/rollback/recovery-manager.js.map +0 -1
- package/dist/cli/simple-commands/init/rollback/rollback-executor.d.ts +0 -112
- package/dist/cli/simple-commands/init/rollback/rollback-executor.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/rollback/rollback-executor.js +0 -479
- package/dist/cli/simple-commands/init/rollback/rollback-executor.js.map +0 -1
- package/dist/cli/simple-commands/init/rollback/state-tracker.d.ts +0 -121
- package/dist/cli/simple-commands/init/rollback/state-tracker.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/rollback/state-tracker.js +0 -431
- package/dist/cli/simple-commands/init/rollback/state-tracker.js.map +0 -1
- package/dist/cli/simple-commands/init/sparc/roo-readme.d.ts +0 -2
- package/dist/cli/simple-commands/init/sparc/roo-readme.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/sparc/roo-readme.js +0 -61
- package/dist/cli/simple-commands/init/sparc/roo-readme.js.map +0 -1
- package/dist/cli/simple-commands/init/sparc/roomodes-config.d.ts +0 -2
- package/dist/cli/simple-commands/init/sparc/roomodes-config.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/sparc/roomodes-config.js +0 -80
- package/dist/cli/simple-commands/init/sparc/roomodes-config.js.map +0 -1
- package/dist/cli/simple-commands/init/sparc/workflows.d.ts +0 -2
- package/dist/cli/simple-commands/init/sparc/workflows.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/sparc/workflows.js +0 -36
- package/dist/cli/simple-commands/init/sparc/workflows.js.map +0 -1
- package/dist/cli/simple-commands/init/sparc-structure.d.ts +0 -2
- package/dist/cli/simple-commands/init/sparc-structure.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/sparc-structure.js +0 -61
- package/dist/cli/simple-commands/init/sparc-structure.js.map +0 -1
- package/dist/cli/simple-commands/init/template-copier.d.ts +0 -27
- package/dist/cli/simple-commands/init/template-copier.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/template-copier.js +0 -510
- package/dist/cli/simple-commands/init/template-copier.js.map +0 -1
- package/dist/cli/simple-commands/init/templates/claude-md.d.ts +0 -5
- package/dist/cli/simple-commands/init/templates/claude-md.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/templates/claude-md.js +0 -646
- package/dist/cli/simple-commands/init/templates/claude-md.js.map +0 -1
- package/dist/cli/simple-commands/init/templates/coordination-md.d.ts +0 -4
- package/dist/cli/simple-commands/init/templates/coordination-md.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/templates/coordination-md.js +0 -338
- package/dist/cli/simple-commands/init/templates/coordination-md.js.map +0 -1
- package/dist/cli/simple-commands/init/templates/enhanced-templates.d.ts +0 -18
- package/dist/cli/simple-commands/init/templates/enhanced-templates.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/templates/enhanced-templates.js +0 -1300
- package/dist/cli/simple-commands/init/templates/enhanced-templates.js.map +0 -1
- package/dist/cli/simple-commands/init/templates/memory-bank-md.d.ts +0 -4
- package/dist/cli/simple-commands/init/templates/memory-bank-md.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/templates/memory-bank-md.js +0 -257
- package/dist/cli/simple-commands/init/templates/memory-bank-md.js.map +0 -1
- package/dist/cli/simple-commands/init/templates/readme-files.d.ts +0 -3
- package/dist/cli/simple-commands/init/templates/readme-files.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/templates/readme-files.js +0 -71
- package/dist/cli/simple-commands/init/templates/readme-files.js.map +0 -1
- package/dist/cli/simple-commands/init/templates/sparc-modes.d.ts +0 -30
- package/dist/cli/simple-commands/init/templates/sparc-modes.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/templates/sparc-modes.js +0 -1375
- package/dist/cli/simple-commands/init/templates/sparc-modes.js.map +0 -1
- package/dist/cli/simple-commands/init/validation/config-validator.d.ts +0 -63
- package/dist/cli/simple-commands/init/validation/config-validator.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/validation/config-validator.js +0 -307
- package/dist/cli/simple-commands/init/validation/config-validator.js.map +0 -1
- package/dist/cli/simple-commands/init/validation/health-checker.d.ts +0 -117
- package/dist/cli/simple-commands/init/validation/health-checker.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/validation/health-checker.js +0 -538
- package/dist/cli/simple-commands/init/validation/health-checker.js.map +0 -1
- package/dist/cli/simple-commands/init/validation/index.d.ts +0 -55
- package/dist/cli/simple-commands/init/validation/index.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/validation/index.js +0 -347
- package/dist/cli/simple-commands/init/validation/index.js.map +0 -1
- package/dist/cli/simple-commands/init/validation/mode-validator.d.ts +0 -76
- package/dist/cli/simple-commands/init/validation/mode-validator.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/validation/mode-validator.js +0 -342
- package/dist/cli/simple-commands/init/validation/mode-validator.js.map +0 -1
- package/dist/cli/simple-commands/init/validation/post-init-validator.d.ts +0 -62
- package/dist/cli/simple-commands/init/validation/post-init-validator.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/validation/post-init-validator.js +0 -348
- package/dist/cli/simple-commands/init/validation/post-init-validator.js.map +0 -1
- package/dist/cli/simple-commands/init/validation/pre-init-validator.d.ts +0 -86
- package/dist/cli/simple-commands/init/validation/pre-init-validator.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/validation/pre-init-validator.js +0 -260
- package/dist/cli/simple-commands/init/validation/pre-init-validator.js.map +0 -1
- package/dist/cli/simple-commands/mcp.d.ts +0 -2
- package/dist/cli/simple-commands/mcp.d.ts.map +0 -1
- package/dist/cli/simple-commands/mcp.js +0 -366
- package/dist/cli/simple-commands/mcp.js.map +0 -1
- package/dist/cli/simple-commands/memory.d.ts +0 -2
- package/dist/cli/simple-commands/memory.d.ts.map +0 -1
- package/dist/cli/simple-commands/memory.js +0 -277
- package/dist/cli/simple-commands/memory.js.map +0 -1
- package/dist/cli/simple-commands/migrate-hooks.d.ts +0 -10
- package/dist/cli/simple-commands/migrate-hooks.d.ts.map +0 -1
- package/dist/cli/simple-commands/migrate-hooks.js +0 -57
- package/dist/cli/simple-commands/migrate-hooks.js.map +0 -1
- package/dist/cli/simple-commands/monitor.d.ts +0 -3
- package/dist/cli/simple-commands/monitor.d.ts.map +0 -1
- package/dist/cli/simple-commands/monitor.js +0 -366
- package/dist/cli/simple-commands/monitor.js.map +0 -1
- package/dist/cli/simple-commands/process-ui-enhanced.d.ts +0 -55
- package/dist/cli/simple-commands/process-ui-enhanced.d.ts.map +0 -1
- package/dist/cli/simple-commands/process-ui-enhanced.js +0 -680
- package/dist/cli/simple-commands/process-ui-enhanced.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/architect.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/architect.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/architect.js +0 -126
- package/dist/cli/simple-commands/sparc-modes/architect.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/ask.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/ask.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/ask.js +0 -127
- package/dist/cli/simple-commands/sparc-modes/ask.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/code.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/code.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/code.js +0 -149
- package/dist/cli/simple-commands/sparc-modes/code.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/debug.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/debug.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/debug.js +0 -113
- package/dist/cli/simple-commands/sparc-modes/debug.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/devops.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/devops.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/devops.js +0 -138
- package/dist/cli/simple-commands/sparc-modes/devops.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/docs-writer.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/docs-writer.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/docs-writer.js +0 -39
- package/dist/cli/simple-commands/sparc-modes/docs-writer.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/generic.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/generic.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/generic.js +0 -35
- package/dist/cli/simple-commands/sparc-modes/generic.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/index.d.ts +0 -17
- package/dist/cli/simple-commands/sparc-modes/index.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/index.js +0 -196
- package/dist/cli/simple-commands/sparc-modes/index.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/integration.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/integration.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/integration.js +0 -56
- package/dist/cli/simple-commands/sparc-modes/integration.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/mcp.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/mcp.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/mcp.js +0 -39
- package/dist/cli/simple-commands/sparc-modes/mcp.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/monitoring.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/monitoring.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/monitoring.js +0 -39
- package/dist/cli/simple-commands/sparc-modes/monitoring.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/optimization.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/optimization.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/optimization.js +0 -39
- package/dist/cli/simple-commands/sparc-modes/optimization.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/security-review.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/security-review.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/security-review.js +0 -131
- package/dist/cli/simple-commands/sparc-modes/security-review.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/sparc-orchestrator.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/sparc-orchestrator.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/sparc-orchestrator.js +0 -168
- package/dist/cli/simple-commands/sparc-modes/sparc-orchestrator.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/spec-pseudocode.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/spec-pseudocode.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/spec-pseudocode.js +0 -39
- package/dist/cli/simple-commands/sparc-modes/spec-pseudocode.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/supabase-admin.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/supabase-admin.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/supabase-admin.js +0 -150
- package/dist/cli/simple-commands/sparc-modes/supabase-admin.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/swarm.d.ts +0 -81
- package/dist/cli/simple-commands/sparc-modes/swarm.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/swarm.js +0 -428
- package/dist/cli/simple-commands/sparc-modes/swarm.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/tdd.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/tdd.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/tdd.js +0 -113
- package/dist/cli/simple-commands/sparc-modes/tdd.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/tutorial.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/tutorial.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/tutorial.js +0 -278
- package/dist/cli/simple-commands/sparc-modes/tutorial.js.map +0 -1
- package/dist/cli/simple-commands/sparc.d.ts +0 -2
- package/dist/cli/simple-commands/sparc.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc.js +0 -478
- package/dist/cli/simple-commands/sparc.js.map +0 -1
- package/dist/cli/simple-commands/start-ui.d.ts +0 -2
- package/dist/cli/simple-commands/start-ui.d.ts.map +0 -1
- package/dist/cli/simple-commands/start-ui.js +0 -135
- package/dist/cli/simple-commands/start-ui.js.map +0 -1
- package/dist/cli/simple-commands/start-wrapper.d.ts +0 -2
- package/dist/cli/simple-commands/start-wrapper.d.ts.map +0 -1
- package/dist/cli/simple-commands/start-wrapper.js +0 -263
- package/dist/cli/simple-commands/start-wrapper.js.map +0 -1
- package/dist/cli/simple-commands/start.d.ts +0 -2
- package/dist/cli/simple-commands/start.d.ts.map +0 -1
- package/dist/cli/simple-commands/start.js +0 -3
- package/dist/cli/simple-commands/start.js.map +0 -1
- package/dist/cli/simple-commands/status.d.ts +0 -2
- package/dist/cli/simple-commands/status.d.ts.map +0 -1
- package/dist/cli/simple-commands/status.js +0 -273
- package/dist/cli/simple-commands/status.js.map +0 -1
- package/dist/cli/simple-commands/swarm-executor.d.ts +0 -68
- package/dist/cli/simple-commands/swarm-executor.d.ts.map +0 -1
- package/dist/cli/simple-commands/swarm-executor.js +0 -212
- package/dist/cli/simple-commands/swarm-executor.js.map +0 -1
- package/dist/cli/simple-commands/swarm-metrics-integration.d.ts +0 -69
- package/dist/cli/simple-commands/swarm-metrics-integration.d.ts.map +0 -1
- package/dist/cli/simple-commands/swarm-metrics-integration.js +0 -294
- package/dist/cli/simple-commands/swarm-metrics-integration.js.map +0 -1
- package/dist/cli/simple-commands/swarm-webui-integration.d.ts +0 -68
- package/dist/cli/simple-commands/swarm-webui-integration.d.ts.map +0 -1
- package/dist/cli/simple-commands/swarm-webui-integration.js +0 -265
- package/dist/cli/simple-commands/swarm-webui-integration.js.map +0 -1
- package/dist/cli/simple-commands/swarm.d.ts +0 -2
- package/dist/cli/simple-commands/swarm.d.ts.map +0 -1
- package/dist/cli/simple-commands/swarm.js +0 -1742
- package/dist/cli/simple-commands/swarm.js.map +0 -1
- package/dist/cli/simple-commands/task.d.ts +0 -2
- package/dist/cli/simple-commands/task.d.ts.map +0 -1
- package/dist/cli/simple-commands/task.js +0 -190
- package/dist/cli/simple-commands/task.js.map +0 -1
- package/dist/cli/simple-commands/training.d.ts +0 -2
- package/dist/cli/simple-commands/training.d.ts.map +0 -1
- package/dist/cli/simple-commands/training.js +0 -240
- package/dist/cli/simple-commands/training.js.map +0 -1
- package/dist/cli/simple-commands/web-server.d.ts +0 -152
- package/dist/cli/simple-commands/web-server.d.ts.map +0 -1
- package/dist/cli/simple-commands/web-server.js +0 -816
- package/dist/cli/simple-commands/web-server.js.map +0 -1
- package/dist/cli/simple-mcp.d.ts +0 -6
- package/dist/cli/simple-mcp.d.ts.map +0 -1
- package/dist/cli/simple-mcp.js +0 -105
- package/dist/cli/simple-mcp.js.map +0 -1
- package/dist/cli/simple-orchestrator.d.ts +0 -19
- package/dist/cli/simple-orchestrator.d.ts.map +0 -1
- package/dist/cli/simple-orchestrator.js +0 -835
- package/dist/cli/simple-orchestrator.js.map +0 -1
- package/dist/cli/ui/compatible-ui.d.ts +0 -49
- package/dist/cli/ui/compatible-ui.d.ts.map +0 -1
- package/dist/cli/ui/compatible-ui.js +0 -319
- package/dist/cli/ui/compatible-ui.js.map +0 -1
- package/dist/cli/ui/fallback-handler.d.ts +0 -26
- package/dist/cli/ui/fallback-handler.d.ts.map +0 -1
- package/dist/cli/ui/fallback-handler.js +0 -166
- package/dist/cli/ui/fallback-handler.js.map +0 -1
- package/dist/cli/ui/index.d.ts +0 -11
- package/dist/cli/ui/index.d.ts.map +0 -1
- package/dist/cli/ui/index.js +0 -35
- package/dist/cli/ui/index.js.map +0 -1
- package/dist/cli/utils/environment-detector.d.ts +0 -59
- package/dist/cli/utils/environment-detector.d.ts.map +0 -1
- package/dist/cli/utils/environment-detector.js +0 -267
- package/dist/cli/utils/environment-detector.js.map +0 -1
- package/dist/cli/utils/interactive-detector.d.ts +0 -25
- package/dist/cli/utils/interactive-detector.d.ts.map +0 -1
- package/dist/cli/utils/interactive-detector.js +0 -129
- package/dist/cli/utils/interactive-detector.js.map +0 -1
- package/dist/cli/utils/prompt-defaults.d.ts +0 -82
- package/dist/cli/utils/prompt-defaults.d.ts.map +0 -1
- package/dist/cli/utils/prompt-defaults.js +0 -252
- package/dist/cli/utils/prompt-defaults.js.map +0 -1
- package/dist/cli/utils/safe-interactive.d.ts +0 -30
- package/dist/cli/utils/safe-interactive.d.ts.map +0 -1
- package/dist/cli/utils/safe-interactive.js +0 -134
- package/dist/cli/utils/safe-interactive.js.map +0 -1
- package/dist/cli/utils.d.ts +0 -74
- package/dist/cli/utils.d.ts.map +0 -1
- package/dist/cli/utils.js +0 -578
- package/dist/cli/utils.js.map +0 -1
- package/dist/cli/validation-helper.d.ts +0 -27
- package/dist/cli/validation-helper.d.ts.map +0 -1
- package/dist/cli/validation-helper.js +0 -72
- package/dist/cli/validation-helper.js.map +0 -1
- package/dist/communication/message-bus.d.ts +0 -283
- package/dist/communication/message-bus.d.ts.map +0 -1
- package/dist/communication/message-bus.js +0 -965
- package/dist/communication/message-bus.js.map +0 -1
- package/dist/config/config-manager.d.ts +0 -212
- package/dist/config/config-manager.d.ts.map +0 -1
- package/dist/config/config-manager.js +0 -550
- package/dist/config/config-manager.js.map +0 -1
- package/dist/config/ruv-swarm-config.d.ts +0 -173
- package/dist/config/ruv-swarm-config.d.ts.map +0 -1
- package/dist/config/ruv-swarm-config.js +0 -289
- package/dist/config/ruv-swarm-config.js.map +0 -1
- package/dist/config/ruv-swarm-integration.d.ts +0 -93
- package/dist/config/ruv-swarm-integration.d.ts.map +0 -1
- package/dist/config/ruv-swarm-integration.js +0 -292
- package/dist/config/ruv-swarm-integration.js.map +0 -1
- package/dist/constants/agent-types.d.ts +0 -46
- package/dist/constants/agent-types.d.ts.map +0 -1
- package/dist/constants/agent-types.js +0 -50
- package/dist/constants/agent-types.js.map +0 -1
- package/dist/coordination/advanced-scheduler.d.ts +0 -121
- package/dist/coordination/advanced-scheduler.d.ts.map +0 -1
- package/dist/coordination/advanced-scheduler.js +0 -382
- package/dist/coordination/advanced-scheduler.js.map +0 -1
- package/dist/coordination/advanced-task-executor.d.ts +0 -100
- package/dist/coordination/advanced-task-executor.d.ts.map +0 -1
- package/dist/coordination/advanced-task-executor.js +0 -463
- package/dist/coordination/advanced-task-executor.js.map +0 -1
- package/dist/coordination/background-executor.d.ts +0 -69
- package/dist/coordination/background-executor.d.ts.map +0 -1
- package/dist/coordination/background-executor.js +0 -363
- package/dist/coordination/background-executor.js.map +0 -1
- package/dist/coordination/circuit-breaker.d.ts +0 -124
- package/dist/coordination/circuit-breaker.d.ts.map +0 -1
- package/dist/coordination/circuit-breaker.js +0 -301
- package/dist/coordination/circuit-breaker.js.map +0 -1
- package/dist/coordination/conflict-resolution.d.ts +0 -133
- package/dist/coordination/conflict-resolution.d.ts.map +0 -1
- package/dist/coordination/conflict-resolution.js +0 -360
- package/dist/coordination/conflict-resolution.js.map +0 -1
- package/dist/coordination/dependency-graph.d.ts +0 -78
- package/dist/coordination/dependency-graph.d.ts.map +0 -1
- package/dist/coordination/dependency-graph.js +0 -387
- package/dist/coordination/dependency-graph.js.map +0 -1
- package/dist/coordination/hive-orchestrator.d.ts +0 -118
- package/dist/coordination/hive-orchestrator.d.ts.map +0 -1
- package/dist/coordination/hive-orchestrator.js +0 -325
- package/dist/coordination/hive-orchestrator.js.map +0 -1
- package/dist/coordination/hive-protocol.d.ts +0 -117
- package/dist/coordination/hive-protocol.d.ts.map +0 -1
- package/dist/coordination/hive-protocol.js +0 -372
- package/dist/coordination/hive-protocol.js.map +0 -1
- package/dist/coordination/index.d.ts +0 -14
- package/dist/coordination/index.d.ts.map +0 -1
- package/dist/coordination/index.js +0 -21
- package/dist/coordination/index.js.map +0 -1
- package/dist/coordination/load-balancer.d.ts +0 -139
- package/dist/coordination/load-balancer.d.ts.map +0 -1
- package/dist/coordination/load-balancer.js +0 -699
- package/dist/coordination/load-balancer.js.map +0 -1
- package/dist/coordination/manager.d.ts +0 -66
- package/dist/coordination/manager.d.ts.map +0 -1
- package/dist/coordination/manager.js +0 -354
- package/dist/coordination/manager.js.map +0 -1
- package/dist/coordination/messaging.d.ts +0 -37
- package/dist/coordination/messaging.d.ts.map +0 -1
- package/dist/coordination/messaging.js +0 -219
- package/dist/coordination/messaging.js.map +0 -1
- package/dist/coordination/metrics.d.ts +0 -153
- package/dist/coordination/metrics.d.ts.map +0 -1
- package/dist/coordination/metrics.js +0 -436
- package/dist/coordination/metrics.js.map +0 -1
- package/dist/coordination/resources.d.ts +0 -36
- package/dist/coordination/resources.d.ts.map +0 -1
- package/dist/coordination/resources.js +0 -254
- package/dist/coordination/resources.js.map +0 -1
- package/dist/coordination/scheduler.d.ts +0 -48
- package/dist/coordination/scheduler.d.ts.map +0 -1
- package/dist/coordination/scheduler.js +0 -308
- package/dist/coordination/scheduler.js.map +0 -1
- package/dist/coordination/swarm-coordinator.d.ts +0 -116
- package/dist/coordination/swarm-coordinator.d.ts.map +0 -1
- package/dist/coordination/swarm-coordinator.js +0 -563
- package/dist/coordination/swarm-coordinator.js.map +0 -1
- package/dist/coordination/swarm-monitor.d.ts +0 -101
- package/dist/coordination/swarm-monitor.d.ts.map +0 -1
- package/dist/coordination/swarm-monitor.js +0 -340
- package/dist/coordination/swarm-monitor.js.map +0 -1
- package/dist/coordination/work-stealing.d.ts +0 -44
- package/dist/coordination/work-stealing.d.ts.map +0 -1
- package/dist/coordination/work-stealing.js +0 -158
- package/dist/coordination/work-stealing.js.map +0 -1
- package/dist/core/config.d.ts +0 -243
- package/dist/core/config.d.ts.map +0 -1
- package/dist/core/config.js +0 -1125
- package/dist/core/config.js.map +0 -1
- package/dist/core/event-bus.d.ts +0 -63
- package/dist/core/event-bus.d.ts.map +0 -1
- package/dist/core/event-bus.js +0 -153
- package/dist/core/event-bus.js.map +0 -1
- package/dist/core/json-persistence.d.ts +0 -55
- package/dist/core/json-persistence.d.ts.map +0 -1
- package/dist/core/json-persistence.js +0 -111
- package/dist/core/json-persistence.js.map +0 -1
- package/dist/core/logger.d.ts +0 -62
- package/dist/core/logger.d.ts.map +0 -1
- package/dist/core/logger.js +0 -252
- package/dist/core/logger.js.map +0 -1
- package/dist/core/orchestrator-fixed.d.ts +0 -81
- package/dist/core/orchestrator-fixed.d.ts.map +0 -1
- package/dist/core/orchestrator-fixed.js +0 -213
- package/dist/core/orchestrator-fixed.js.map +0 -1
- package/dist/core/orchestrator.d.ts +0 -123
- package/dist/core/orchestrator.d.ts.map +0 -1
- package/dist/core/orchestrator.js +0 -1058
- package/dist/core/orchestrator.js.map +0 -1
- package/dist/core/persistence.d.ts +0 -53
- package/dist/core/persistence.d.ts.map +0 -1
- package/dist/core/persistence.js +0 -192
- package/dist/core/persistence.js.map +0 -1
- package/dist/enterprise/analytics-manager.d.ts +0 -489
- package/dist/enterprise/analytics-manager.d.ts.map +0 -1
- package/dist/enterprise/analytics-manager.js +0 -956
- package/dist/enterprise/analytics-manager.js.map +0 -1
- package/dist/enterprise/audit-manager.d.ts +0 -459
- package/dist/enterprise/audit-manager.d.ts.map +0 -1
- package/dist/enterprise/audit-manager.js +0 -1014
- package/dist/enterprise/audit-manager.js.map +0 -1
- package/dist/enterprise/cloud-manager.d.ts +0 -435
- package/dist/enterprise/cloud-manager.d.ts.map +0 -1
- package/dist/enterprise/cloud-manager.js +0 -789
- package/dist/enterprise/cloud-manager.js.map +0 -1
- package/dist/enterprise/deployment-manager.d.ts +0 -328
- package/dist/enterprise/deployment-manager.d.ts.map +0 -1
- package/dist/enterprise/deployment-manager.js +0 -830
- package/dist/enterprise/deployment-manager.js.map +0 -1
- package/dist/enterprise/index.d.ts +0 -13
- package/dist/enterprise/index.d.ts.map +0 -1
- package/dist/enterprise/index.js +0 -7
- package/dist/enterprise/index.js.map +0 -1
- package/dist/enterprise/project-manager.d.ts +0 -228
- package/dist/enterprise/project-manager.d.ts.map +0 -1
- package/dist/enterprise/project-manager.js +0 -537
- package/dist/enterprise/project-manager.js.map +0 -1
- package/dist/enterprise/security-manager.d.ts +0 -422
- package/dist/enterprise/security-manager.d.ts.map +0 -1
- package/dist/enterprise/security-manager.js +0 -910
- package/dist/enterprise/security-manager.js.map +0 -1
- package/dist/hive-mind/core/Agent.d.ts +0 -137
- package/dist/hive-mind/core/Agent.d.ts.map +0 -1
- package/dist/hive-mind/core/Agent.js +0 -567
- package/dist/hive-mind/core/Agent.js.map +0 -1
- package/dist/hive-mind/core/Communication.d.ts +0 -116
- package/dist/hive-mind/core/Communication.d.ts.map +0 -1
- package/dist/hive-mind/core/Communication.js +0 -407
- package/dist/hive-mind/core/Communication.js.map +0 -1
- package/dist/hive-mind/core/DatabaseManager.d.ts +0 -99
- package/dist/hive-mind/core/DatabaseManager.d.ts.map +0 -1
- package/dist/hive-mind/core/DatabaseManager.js +0 -648
- package/dist/hive-mind/core/DatabaseManager.js.map +0 -1
- package/dist/hive-mind/core/HiveMind.d.ts +0 -90
- package/dist/hive-mind/core/HiveMind.d.ts.map +0 -1
- package/dist/hive-mind/core/HiveMind.js +0 -439
- package/dist/hive-mind/core/HiveMind.js.map +0 -1
- package/dist/hive-mind/core/Memory.d.ts +0 -235
- package/dist/hive-mind/core/Memory.d.ts.map +0 -1
- package/dist/hive-mind/core/Memory.js +0 -1192
- package/dist/hive-mind/core/Memory.js.map +0 -1
- package/dist/hive-mind/core/MemoryMonitor.d.ts +0 -183
- package/dist/hive-mind/core/MemoryMonitor.d.ts.map +0 -1
- package/dist/hive-mind/core/MemoryMonitor.js +0 -547
- package/dist/hive-mind/core/MemoryMonitor.js.map +0 -1
- package/dist/hive-mind/core/Queen.d.ts +0 -115
- package/dist/hive-mind/core/Queen.d.ts.map +0 -1
- package/dist/hive-mind/core/Queen.js +0 -649
- package/dist/hive-mind/core/Queen.js.map +0 -1
- package/dist/hive-mind/index.d.ts +0 -17
- package/dist/hive-mind/index.d.ts.map +0 -1
- package/dist/hive-mind/index.js +0 -21
- package/dist/hive-mind/index.js.map +0 -1
- package/dist/hive-mind/integration/ConsensusEngine.d.ts +0 -117
- package/dist/hive-mind/integration/ConsensusEngine.d.ts.map +0 -1
- package/dist/hive-mind/integration/ConsensusEngine.js +0 -478
- package/dist/hive-mind/integration/ConsensusEngine.js.map +0 -1
- package/dist/hive-mind/integration/MCPToolWrapper.d.ts +0 -172
- package/dist/hive-mind/integration/MCPToolWrapper.d.ts.map +0 -1
- package/dist/hive-mind/integration/MCPToolWrapper.js +0 -217
- package/dist/hive-mind/integration/MCPToolWrapper.js.map +0 -1
- package/dist/hive-mind/integration/SwarmOrchestrator.d.ts +0 -172
- package/dist/hive-mind/integration/SwarmOrchestrator.d.ts.map +0 -1
- package/dist/hive-mind/integration/SwarmOrchestrator.js +0 -748
- package/dist/hive-mind/integration/SwarmOrchestrator.js.map +0 -1
- package/dist/hive-mind/types.d.ts +0 -298
- package/dist/hive-mind/types.d.ts.map +0 -1
- package/dist/hive-mind/types.js +0 -7
- package/dist/hive-mind/types.js.map +0 -1
- package/dist/integration/mock-components.d.ts +0 -107
- package/dist/integration/mock-components.d.ts.map +0 -1
- package/dist/integration/mock-components.js +0 -357
- package/dist/integration/mock-components.js.map +0 -1
- package/dist/integration/system-integration.d.ts +0 -84
- package/dist/integration/system-integration.d.ts.map +0 -1
- package/dist/integration/system-integration.js +0 -446
- package/dist/integration/system-integration.js.map +0 -1
- package/dist/integration/types.d.ts +0 -119
- package/dist/integration/types.d.ts.map +0 -1
- package/dist/integration/types.js +0 -5
- package/dist/integration/types.js.map +0 -1
- package/dist/mcp/auth.d.ts +0 -80
- package/dist/mcp/auth.d.ts.map +0 -1
- package/dist/mcp/auth.js +0 -350
- package/dist/mcp/auth.js.map +0 -1
- package/dist/mcp/claude-code-wrapper.d.ts +0 -26
- package/dist/mcp/claude-code-wrapper.d.ts.map +0 -1
- package/dist/mcp/claude-code-wrapper.js +0 -699
- package/dist/mcp/claude-code-wrapper.js.map +0 -1
- package/dist/mcp/claude-flow-tools.d.ts +0 -13
- package/dist/mcp/claude-flow-tools.d.ts.map +0 -1
- package/dist/mcp/claude-flow-tools.js +0 -1181
- package/dist/mcp/claude-flow-tools.js.map +0 -1
- package/dist/mcp/client.d.ts +0 -41
- package/dist/mcp/client.d.ts.map +0 -1
- package/dist/mcp/client.js +0 -194
- package/dist/mcp/client.js.map +0 -1
- package/dist/mcp/index.d.ts +0 -134
- package/dist/mcp/index.d.ts.map +0 -1
- package/dist/mcp/index.js +0 -212
- package/dist/mcp/index.js.map +0 -1
- package/dist/mcp/integrate-wrapper.d.ts +0 -16
- package/dist/mcp/integrate-wrapper.d.ts.map +0 -1
- package/dist/mcp/integrate-wrapper.js +0 -75
- package/dist/mcp/integrate-wrapper.js.map +0 -1
- package/dist/mcp/lifecycle-manager.d.ts +0 -121
- package/dist/mcp/lifecycle-manager.d.ts.map +0 -1
- package/dist/mcp/lifecycle-manager.js +0 -366
- package/dist/mcp/lifecycle-manager.js.map +0 -1
- package/dist/mcp/load-balancer.d.ts +0 -88
- package/dist/mcp/load-balancer.d.ts.map +0 -1
- package/dist/mcp/load-balancer.js +0 -393
- package/dist/mcp/load-balancer.js.map +0 -1
- package/dist/mcp/orchestration-integration.d.ts +0 -135
- package/dist/mcp/orchestration-integration.d.ts.map +0 -1
- package/dist/mcp/orchestration-integration.js +0 -735
- package/dist/mcp/orchestration-integration.js.map +0 -1
- package/dist/mcp/performance-monitor.d.ts +0 -164
- package/dist/mcp/performance-monitor.d.ts.map +0 -1
- package/dist/mcp/performance-monitor.js +0 -481
- package/dist/mcp/performance-monitor.js.map +0 -1
- package/dist/mcp/protocol-manager.d.ts +0 -88
- package/dist/mcp/protocol-manager.d.ts.map +0 -1
- package/dist/mcp/protocol-manager.js +0 -347
- package/dist/mcp/protocol-manager.js.map +0 -1
- package/dist/mcp/recovery/connection-health-monitor.d.ts +0 -69
- package/dist/mcp/recovery/connection-health-monitor.d.ts.map +0 -1
- package/dist/mcp/recovery/connection-health-monitor.js +0 -241
- package/dist/mcp/recovery/connection-health-monitor.js.map +0 -1
- package/dist/mcp/recovery/connection-state-manager.d.ts +0 -106
- package/dist/mcp/recovery/connection-state-manager.d.ts.map +0 -1
- package/dist/mcp/recovery/connection-state-manager.js +0 -318
- package/dist/mcp/recovery/connection-state-manager.js.map +0 -1
- package/dist/mcp/recovery/fallback-coordinator.d.ts +0 -79
- package/dist/mcp/recovery/fallback-coordinator.d.ts.map +0 -1
- package/dist/mcp/recovery/fallback-coordinator.js +0 -278
- package/dist/mcp/recovery/fallback-coordinator.js.map +0 -1
- package/dist/mcp/recovery/index.d.ts +0 -10
- package/dist/mcp/recovery/index.d.ts.map +0 -1
- package/dist/mcp/recovery/index.js +0 -10
- package/dist/mcp/recovery/index.js.map +0 -1
- package/dist/mcp/recovery/reconnection-manager.d.ts +0 -69
- package/dist/mcp/recovery/reconnection-manager.d.ts.map +0 -1
- package/dist/mcp/recovery/reconnection-manager.js +0 -226
- package/dist/mcp/recovery/reconnection-manager.js.map +0 -1
- package/dist/mcp/recovery/recovery-manager.d.ts +0 -93
- package/dist/mcp/recovery/recovery-manager.d.ts.map +0 -1
- package/dist/mcp/recovery/recovery-manager.js +0 -248
- package/dist/mcp/recovery/recovery-manager.js.map +0 -1
- package/dist/mcp/router.d.ts +0 -54
- package/dist/mcp/router.d.ts.map +0 -1
- package/dist/mcp/router.js +0 -204
- package/dist/mcp/router.js.map +0 -1
- package/dist/mcp/ruv-swarm-tools.d.ts +0 -58
- package/dist/mcp/ruv-swarm-tools.d.ts.map +0 -1
- package/dist/mcp/ruv-swarm-tools.js +0 -548
- package/dist/mcp/ruv-swarm-tools.js.map +0 -1
- package/dist/mcp/server-with-wrapper.d.ts +0 -6
- package/dist/mcp/server-with-wrapper.d.ts.map +0 -1
- package/dist/mcp/server-with-wrapper.js +0 -35
- package/dist/mcp/server-with-wrapper.js.map +0 -1
- package/dist/mcp/server-wrapper-mode.d.ts +0 -8
- package/dist/mcp/server-wrapper-mode.d.ts.map +0 -1
- package/dist/mcp/server-wrapper-mode.js +0 -27
- package/dist/mcp/server-wrapper-mode.js.map +0 -1
- package/dist/mcp/server.d.ts +0 -75
- package/dist/mcp/server.d.ts.map +0 -1
- package/dist/mcp/server.js +0 -538
- package/dist/mcp/server.js.map +0 -1
- package/dist/mcp/session-manager.d.ts +0 -60
- package/dist/mcp/session-manager.d.ts.map +0 -1
- package/dist/mcp/session-manager.js +0 -323
- package/dist/mcp/session-manager.js.map +0 -1
- package/dist/mcp/sparc-modes.d.ts +0 -12
- package/dist/mcp/sparc-modes.d.ts.map +0 -1
- package/dist/mcp/sparc-modes.js +0 -370
- package/dist/mcp/sparc-modes.js.map +0 -1
- package/dist/mcp/swarm-tools.d.ts +0 -87
- package/dist/mcp/swarm-tools.d.ts.map +0 -1
- package/dist/mcp/swarm-tools.js +0 -731
- package/dist/mcp/swarm-tools.js.map +0 -1
- package/dist/mcp/tools.d.ts +0 -145
- package/dist/mcp/tools.d.ts.map +0 -1
- package/dist/mcp/tools.js +0 -434
- package/dist/mcp/tools.js.map +0 -1
- package/dist/mcp/transports/base.d.ts +0 -22
- package/dist/mcp/transports/base.d.ts.map +0 -1
- package/dist/mcp/transports/base.js +0 -5
- package/dist/mcp/transports/base.js.map +0 -1
- package/dist/mcp/transports/http.d.ts +0 -48
- package/dist/mcp/transports/http.d.ts.map +0 -1
- package/dist/mcp/transports/http.js +0 -400
- package/dist/mcp/transports/http.js.map +0 -1
- package/dist/mcp/transports/stdio.d.ts +0 -37
- package/dist/mcp/transports/stdio.d.ts.map +0 -1
- package/dist/mcp/transports/stdio.js +0 -206
- package/dist/mcp/transports/stdio.js.map +0 -1
- package/dist/memory/advanced-memory-manager.d.ts +0 -303
- package/dist/memory/advanced-memory-manager.d.ts.map +0 -1
- package/dist/memory/advanced-memory-manager.js +0 -1467
- package/dist/memory/advanced-memory-manager.js.map +0 -1
- package/dist/memory/backends/base.d.ts +0 -21
- package/dist/memory/backends/base.d.ts.map +0 -1
- package/dist/memory/backends/base.js +0 -5
- package/dist/memory/backends/base.js.map +0 -1
- package/dist/memory/backends/markdown.d.ts +0 -35
- package/dist/memory/backends/markdown.d.ts.map +0 -1
- package/dist/memory/backends/markdown.js +0 -223
- package/dist/memory/backends/markdown.js.map +0 -1
- package/dist/memory/backends/sqlite.d.ts +0 -33
- package/dist/memory/backends/sqlite.d.ts.map +0 -1
- package/dist/memory/backends/sqlite.js +0 -291
- package/dist/memory/backends/sqlite.js.map +0 -1
- package/dist/memory/cache.d.ts +0 -65
- package/dist/memory/cache.d.ts.map +0 -1
- package/dist/memory/cache.js +0 -188
- package/dist/memory/cache.js.map +0 -1
- package/dist/memory/distributed-memory.d.ts +0 -188
- package/dist/memory/distributed-memory.d.ts.map +0 -1
- package/dist/memory/distributed-memory.js +0 -710
- package/dist/memory/distributed-memory.js.map +0 -1
- package/dist/memory/fallback-store.d.ts +0 -28
- package/dist/memory/fallback-store.d.ts.map +0 -1
- package/dist/memory/fallback-store.js +0 -101
- package/dist/memory/fallback-store.js.map +0 -1
- package/dist/memory/in-memory-store.d.ts +0 -41
- package/dist/memory/in-memory-store.d.ts.map +0 -1
- package/dist/memory/in-memory-store.js +0 -173
- package/dist/memory/in-memory-store.js.map +0 -1
- package/dist/memory/indexer.d.ts +0 -52
- package/dist/memory/indexer.d.ts.map +0 -1
- package/dist/memory/indexer.js +0 -191
- package/dist/memory/indexer.js.map +0 -1
- package/dist/memory/manager.d.ts +0 -58
- package/dist/memory/manager.d.ts.map +0 -1
- package/dist/memory/manager.js +0 -423
- package/dist/memory/manager.js.map +0 -1
- package/dist/memory/sqlite-store.d.ts +0 -34
- package/dist/memory/sqlite-store.d.ts.map +0 -1
- package/dist/memory/sqlite-store.js +0 -266
- package/dist/memory/sqlite-store.js.map +0 -1
- package/dist/memory/sqlite-wrapper.d.ts +0 -38
- package/dist/memory/sqlite-wrapper.d.ts.map +0 -1
- package/dist/memory/sqlite-wrapper.js +0 -157
- package/dist/memory/sqlite-wrapper.js.map +0 -1
- package/dist/memory/swarm-memory.d.ts +0 -91
- package/dist/memory/swarm-memory.d.ts.map +0 -1
- package/dist/memory/swarm-memory.js +0 -454
- package/dist/memory/swarm-memory.js.map +0 -1
- package/dist/migration/index.d.ts +0 -7
- package/dist/migration/index.d.ts.map +0 -1
- package/dist/migration/index.js +0 -166
- package/dist/migration/index.js.map +0 -1
- package/dist/migration/logger.d.ts +0 -26
- package/dist/migration/logger.d.ts.map +0 -1
- package/dist/migration/logger.js +0 -145
- package/dist/migration/logger.js.map +0 -1
- package/dist/migration/migration-analyzer.d.ts +0 -18
- package/dist/migration/migration-analyzer.d.ts.map +0 -1
- package/dist/migration/migration-analyzer.js +0 -284
- package/dist/migration/migration-analyzer.js.map +0 -1
- package/dist/migration/migration-runner.d.ts +0 -26
- package/dist/migration/migration-runner.d.ts.map +0 -1
- package/dist/migration/migration-runner.js +0 -505
- package/dist/migration/migration-runner.js.map +0 -1
- package/dist/migration/migration-validator.d.ts +0 -17
- package/dist/migration/migration-validator.d.ts.map +0 -1
- package/dist/migration/migration-validator.js +0 -309
- package/dist/migration/migration-validator.js.map +0 -1
- package/dist/migration/progress-reporter.d.ts +0 -28
- package/dist/migration/progress-reporter.d.ts.map +0 -1
- package/dist/migration/progress-reporter.js +0 -163
- package/dist/migration/progress-reporter.js.map +0 -1
- package/dist/migration/rollback-manager.d.ts +0 -24
- package/dist/migration/rollback-manager.d.ts.map +0 -1
- package/dist/migration/rollback-manager.js +0 -351
- package/dist/migration/rollback-manager.js.map +0 -1
- package/dist/migration/types.d.ts +0 -103
- package/dist/migration/types.d.ts.map +0 -1
- package/dist/migration/types.js +0 -6
- package/dist/migration/types.js.map +0 -1
- package/dist/monitoring/diagnostics.d.ts +0 -109
- package/dist/monitoring/diagnostics.d.ts.map +0 -1
- package/dist/monitoring/diagnostics.js +0 -557
- package/dist/monitoring/diagnostics.js.map +0 -1
- package/dist/monitoring/health-check.d.ts +0 -91
- package/dist/monitoring/health-check.d.ts.map +0 -1
- package/dist/monitoring/health-check.js +0 -370
- package/dist/monitoring/health-check.js.map +0 -1
- package/dist/monitoring/real-time-monitor.d.ts +0 -230
- package/dist/monitoring/real-time-monitor.d.ts.map +0 -1
- package/dist/monitoring/real-time-monitor.js +0 -852
- package/dist/monitoring/real-time-monitor.js.map +0 -1
- package/dist/providers/anthropic-provider.d.ts +0 -27
- package/dist/providers/anthropic-provider.d.ts.map +0 -1
- package/dist/providers/anthropic-provider.js +0 -247
- package/dist/providers/anthropic-provider.js.map +0 -1
- package/dist/providers/base-provider.d.ts +0 -134
- package/dist/providers/base-provider.d.ts.map +0 -1
- package/dist/providers/base-provider.js +0 -407
- package/dist/providers/base-provider.js.map +0 -1
- package/dist/providers/cohere-provider.d.ts +0 -28
- package/dist/providers/cohere-provider.d.ts.map +0 -1
- package/dist/providers/cohere-provider.js +0 -407
- package/dist/providers/cohere-provider.js.map +0 -1
- package/dist/providers/google-provider.d.ts +0 -23
- package/dist/providers/google-provider.d.ts.map +0 -1
- package/dist/providers/google-provider.js +0 -362
- package/dist/providers/google-provider.js.map +0 -1
- package/dist/providers/index.d.ts +0 -14
- package/dist/providers/index.d.ts.map +0 -1
- package/dist/providers/index.js +0 -18
- package/dist/providers/index.js.map +0 -1
- package/dist/providers/ollama-provider.d.ts +0 -23
- package/dist/providers/ollama-provider.d.ts.map +0 -1
- package/dist/providers/ollama-provider.js +0 -374
- package/dist/providers/ollama-provider.js.map +0 -1
- package/dist/providers/openai-provider.d.ts +0 -23
- package/dist/providers/openai-provider.d.ts.map +0 -1
- package/dist/providers/openai-provider.js +0 -349
- package/dist/providers/openai-provider.js.map +0 -1
- package/dist/providers/provider-manager.d.ts +0 -139
- package/dist/providers/provider-manager.d.ts.map +0 -1
- package/dist/providers/provider-manager.js +0 -513
- package/dist/providers/provider-manager.js.map +0 -1
- package/dist/providers/types.d.ts +0 -356
- package/dist/providers/types.d.ts.map +0 -1
- package/dist/providers/types.js +0 -61
- package/dist/providers/types.js.map +0 -1
- package/dist/providers/utils.d.ts +0 -37
- package/dist/providers/utils.d.ts.map +0 -1
- package/dist/providers/utils.js +0 -322
- package/dist/providers/utils.js.map +0 -1
- package/dist/resources/resource-manager.d.ts +0 -390
- package/dist/resources/resource-manager.d.ts.map +0 -1
- package/dist/resources/resource-manager.js +0 -1233
- package/dist/resources/resource-manager.js.map +0 -1
- package/dist/services/agentic-flow-hooks/hook-manager.d.ts +0 -70
- package/dist/services/agentic-flow-hooks/hook-manager.d.ts.map +0 -1
- package/dist/services/agentic-flow-hooks/hook-manager.js +0 -512
- package/dist/services/agentic-flow-hooks/hook-manager.js.map +0 -1
- package/dist/services/agentic-flow-hooks/index.d.ts +0 -36
- package/dist/services/agentic-flow-hooks/index.d.ts.map +0 -1
- package/dist/services/agentic-flow-hooks/index.js +0 -325
- package/dist/services/agentic-flow-hooks/index.js.map +0 -1
- package/dist/services/agentic-flow-hooks/llm-hooks.d.ts +0 -33
- package/dist/services/agentic-flow-hooks/llm-hooks.d.ts.map +0 -1
- package/dist/services/agentic-flow-hooks/llm-hooks.js +0 -415
- package/dist/services/agentic-flow-hooks/llm-hooks.js.map +0 -1
- package/dist/services/agentic-flow-hooks/memory-hooks.d.ts +0 -45
- package/dist/services/agentic-flow-hooks/memory-hooks.d.ts.map +0 -1
- package/dist/services/agentic-flow-hooks/memory-hooks.js +0 -532
- package/dist/services/agentic-flow-hooks/memory-hooks.js.map +0 -1
- package/dist/services/agentic-flow-hooks/neural-hooks.d.ts +0 -39
- package/dist/services/agentic-flow-hooks/neural-hooks.d.ts.map +0 -1
- package/dist/services/agentic-flow-hooks/neural-hooks.js +0 -561
- package/dist/services/agentic-flow-hooks/neural-hooks.js.map +0 -1
- package/dist/services/agentic-flow-hooks/performance-hooks.d.ts +0 -33
- package/dist/services/agentic-flow-hooks/performance-hooks.d.ts.map +0 -1
- package/dist/services/agentic-flow-hooks/performance-hooks.js +0 -621
- package/dist/services/agentic-flow-hooks/performance-hooks.js.map +0 -1
- package/dist/services/agentic-flow-hooks/types.d.ts +0 -379
- package/dist/services/agentic-flow-hooks/types.d.ts.map +0 -1
- package/dist/services/agentic-flow-hooks/types.js +0 -8
- package/dist/services/agentic-flow-hooks/types.js.map +0 -1
- package/dist/services/agentic-flow-hooks/workflow-hooks.d.ts +0 -39
- package/dist/services/agentic-flow-hooks/workflow-hooks.d.ts.map +0 -1
- package/dist/services/agentic-flow-hooks/workflow-hooks.js +0 -742
- package/dist/services/agentic-flow-hooks/workflow-hooks.js.map +0 -1
- package/dist/swarm/claude-flow-executor.d.ts +0 -28
- package/dist/swarm/claude-flow-executor.d.ts.map +0 -1
- package/dist/swarm/claude-flow-executor.js +0 -216
- package/dist/swarm/claude-flow-executor.js.map +0 -1
- package/dist/swarm/coordinator.d.ts +0 -167
- package/dist/swarm/coordinator.d.ts.map +0 -1
- package/dist/swarm/coordinator.js +0 -2738
- package/dist/swarm/coordinator.js.map +0 -1
- package/dist/swarm/direct-executor.d.ts +0 -48
- package/dist/swarm/direct-executor.d.ts.map +0 -1
- package/dist/swarm/direct-executor.js +0 -1120
- package/dist/swarm/direct-executor.js.map +0 -1
- package/dist/swarm/executor-v2.d.ts +0 -23
- package/dist/swarm/executor-v2.d.ts.map +0 -1
- package/dist/swarm/executor-v2.js +0 -321
- package/dist/swarm/executor-v2.js.map +0 -1
- package/dist/swarm/executor.d.ts +0 -120
- package/dist/swarm/executor.d.ts.map +0 -1
- package/dist/swarm/executor.js +0 -797
- package/dist/swarm/executor.js.map +0 -1
- package/dist/swarm/index.d.ts +0 -31
- package/dist/swarm/index.d.ts.map +0 -1
- package/dist/swarm/index.js +0 -42
- package/dist/swarm/index.js.map +0 -1
- package/dist/swarm/json-output-aggregator.d.ts +0 -100
- package/dist/swarm/json-output-aggregator.d.ts.map +0 -1
- package/dist/swarm/json-output-aggregator.js +0 -250
- package/dist/swarm/json-output-aggregator.js.map +0 -1
- package/dist/swarm/memory.d.ts +0 -176
- package/dist/swarm/memory.d.ts.map +0 -1
- package/dist/swarm/memory.js +0 -1068
- package/dist/swarm/memory.js.map +0 -1
- package/dist/swarm/optimizations/async-file-manager.d.ts +0 -53
- package/dist/swarm/optimizations/async-file-manager.d.ts.map +0 -1
- package/dist/swarm/optimizations/async-file-manager.js +0 -244
- package/dist/swarm/optimizations/async-file-manager.js.map +0 -1
- package/dist/swarm/optimizations/circular-buffer.d.ts +0 -46
- package/dist/swarm/optimizations/circular-buffer.d.ts.map +0 -1
- package/dist/swarm/optimizations/circular-buffer.js +0 -157
- package/dist/swarm/optimizations/circular-buffer.js.map +0 -1
- package/dist/swarm/optimizations/connection-pool.d.ts +0 -54
- package/dist/swarm/optimizations/connection-pool.d.ts.map +0 -1
- package/dist/swarm/optimizations/connection-pool.js +0 -226
- package/dist/swarm/optimizations/connection-pool.js.map +0 -1
- package/dist/swarm/optimizations/index.d.ts +0 -24
- package/dist/swarm/optimizations/index.d.ts.map +0 -1
- package/dist/swarm/optimizations/index.js +0 -30
- package/dist/swarm/optimizations/index.js.map +0 -1
- package/dist/swarm/optimizations/optimized-executor.d.ts +0 -109
- package/dist/swarm/optimizations/optimized-executor.d.ts.map +0 -1
- package/dist/swarm/optimizations/optimized-executor.js +0 -315
- package/dist/swarm/optimizations/optimized-executor.js.map +0 -1
- package/dist/swarm/optimizations/ttl-map.d.ts +0 -78
- package/dist/swarm/optimizations/ttl-map.d.ts.map +0 -1
- package/dist/swarm/optimizations/ttl-map.js +0 -229
- package/dist/swarm/optimizations/ttl-map.js.map +0 -1
- package/dist/swarm/prompt-cli.d.ts +0 -5
- package/dist/swarm/prompt-cli.d.ts.map +0 -1
- package/dist/swarm/prompt-cli.js +0 -261
- package/dist/swarm/prompt-cli.js.map +0 -1
- package/dist/swarm/prompt-copier-enhanced.d.ts +0 -17
- package/dist/swarm/prompt-copier-enhanced.d.ts.map +0 -1
- package/dist/swarm/prompt-copier-enhanced.js +0 -193
- package/dist/swarm/prompt-copier-enhanced.js.map +0 -1
- package/dist/swarm/prompt-copier.d.ts +0 -76
- package/dist/swarm/prompt-copier.d.ts.map +0 -1
- package/dist/swarm/prompt-copier.js +0 -377
- package/dist/swarm/prompt-copier.js.map +0 -1
- package/dist/swarm/prompt-manager.d.ts +0 -72
- package/dist/swarm/prompt-manager.d.ts.map +0 -1
- package/dist/swarm/prompt-manager.js +0 -276
- package/dist/swarm/prompt-manager.js.map +0 -1
- package/dist/swarm/prompt-utils.d.ts +0 -52
- package/dist/swarm/prompt-utils.d.ts.map +0 -1
- package/dist/swarm/prompt-utils.js +0 -267
- package/dist/swarm/prompt-utils.js.map +0 -1
- package/dist/swarm/sparc-executor.d.ts +0 -105
- package/dist/swarm/sparc-executor.d.ts.map +0 -1
- package/dist/swarm/sparc-executor.js +0 -1430
- package/dist/swarm/sparc-executor.js.map +0 -1
- package/dist/swarm/strategies/auto.d.ts +0 -57
- package/dist/swarm/strategies/auto.d.ts.map +0 -1
- package/dist/swarm/strategies/auto.js +0 -642
- package/dist/swarm/strategies/auto.js.map +0 -1
- package/dist/swarm/strategies/base.d.ts +0 -78
- package/dist/swarm/strategies/base.d.ts.map +0 -1
- package/dist/swarm/strategies/base.js +0 -111
- package/dist/swarm/strategies/base.js.map +0 -1
- package/dist/swarm/strategies/research.d.ts +0 -75
- package/dist/swarm/strategies/research.d.ts.map +0 -1
- package/dist/swarm/strategies/research.js +0 -846
- package/dist/swarm/strategies/research.js.map +0 -1
- package/dist/swarm/strategies/strategy-metrics-patch.d.ts +0 -11
- package/dist/swarm/strategies/strategy-metrics-patch.d.ts.map +0 -1
- package/dist/swarm/strategies/strategy-metrics-patch.js +0 -2
- package/dist/swarm/strategies/strategy-metrics-patch.js.map +0 -1
- package/dist/swarm/types.d.ts +0 -578
- package/dist/swarm/types.d.ts.map +0 -1
- package/dist/swarm/types.js +0 -54
- package/dist/swarm/types.js.map +0 -1
- package/dist/swarm/workers/copy-worker.d.ts +0 -2
- package/dist/swarm/workers/copy-worker.d.ts.map +0 -1
- package/dist/swarm/workers/copy-worker.js +0 -56
- package/dist/swarm/workers/copy-worker.js.map +0 -1
- package/dist/task/commands.d.ts +0 -60
- package/dist/task/commands.d.ts.map +0 -1
- package/dist/task/commands.js +0 -111
- package/dist/task/commands.js.map +0 -1
- package/dist/task/coordination.d.ts +0 -109
- package/dist/task/coordination.d.ts.map +0 -1
- package/dist/task/coordination.js +0 -634
- package/dist/task/coordination.js.map +0 -1
- package/dist/task/engine.d.ts +0 -198
- package/dist/task/engine.d.ts.map +0 -1
- package/dist/task/engine.js +0 -500
- package/dist/task/engine.js.map +0 -1
- package/dist/task/index.d.ts +0 -103
- package/dist/task/index.d.ts.map +0 -1
- package/dist/task/index.js +0 -276
- package/dist/task/index.js.map +0 -1
- package/dist/task/types.d.ts +0 -56
- package/dist/task/types.d.ts.map +0 -1
- package/dist/task/types.js +0 -2
- package/dist/task/types.js.map +0 -1
- package/dist/terminal/adapters/base.d.ts +0 -40
- package/dist/terminal/adapters/base.d.ts.map +0 -1
- package/dist/terminal/adapters/base.js +0 -5
- package/dist/terminal/adapters/base.js.map +0 -1
- package/dist/terminal/adapters/native.d.ts +0 -19
- package/dist/terminal/adapters/native.d.ts.map +0 -1
- package/dist/terminal/adapters/native.js +0 -414
- package/dist/terminal/adapters/native.js.map +0 -1
- package/dist/terminal/adapters/vscode.d.ts +0 -23
- package/dist/terminal/adapters/vscode.d.ts.map +0 -1
- package/dist/terminal/adapters/vscode.js +0 -267
- package/dist/terminal/adapters/vscode.js.map +0 -1
- package/dist/terminal/manager.d.ts +0 -59
- package/dist/terminal/manager.d.ts.map +0 -1
- package/dist/terminal/manager.js +0 -235
- package/dist/terminal/manager.js.map +0 -1
- package/dist/terminal/pool.d.ts +0 -32
- package/dist/terminal/pool.d.ts.map +0 -1
- package/dist/terminal/pool.js +0 -208
- package/dist/terminal/pool.js.map +0 -1
- package/dist/terminal/session.d.ts +0 -41
- package/dist/terminal/session.d.ts.map +0 -1
- package/dist/terminal/session.js +0 -210
- package/dist/terminal/session.js.map +0 -1
- package/dist/types/index.d.ts +0 -28
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js +0 -15
- package/dist/types/index.js.map +0 -1
- package/dist/ui/hive-dashboard.d.ts +0 -140
- package/dist/ui/hive-dashboard.d.ts.map +0 -1
- package/dist/ui/hive-dashboard.js +0 -300
- package/dist/ui/hive-dashboard.js.map +0 -1
- package/dist/utils/error-handler.d.ts +0 -14
- package/dist/utils/error-handler.d.ts.map +0 -1
- package/dist/utils/error-handler.js +0 -29
- package/dist/utils/error-handler.js.map +0 -1
- package/dist/utils/errors.d.ts +0 -121
- package/dist/utils/errors.d.ts.map +0 -1
- package/dist/utils/errors.js +0 -194
- package/dist/utils/errors.js.map +0 -1
- package/dist/utils/formatters.d.ts +0 -15
- package/dist/utils/formatters.d.ts.map +0 -1
- package/dist/utils/formatters.js +0 -75
- package/dist/utils/formatters.js.map +0 -1
- package/dist/utils/helpers.d.ts +0 -134
- package/dist/utils/helpers.d.ts.map +0 -1
- package/dist/utils/helpers.js +0 -444
- package/dist/utils/helpers.js.map +0 -1
- package/dist/utils/npx-isolated-cache.d.ts +0 -17
- package/dist/utils/npx-isolated-cache.d.ts.map +0 -1
- package/dist/utils/npx-isolated-cache.js +0 -140
- package/dist/utils/npx-isolated-cache.js.map +0 -1
- package/dist/utils/paths.d.ts +0 -4
- package/dist/utils/paths.d.ts.map +0 -1
- package/dist/utils/paths.js +0 -43
- package/dist/utils/paths.js.map +0 -1
- package/dist/utils/type-guards.d.ts +0 -117
- package/dist/utils/type-guards.d.ts.map +0 -1
- package/dist/utils/type-guards.js +0 -166
- package/dist/utils/type-guards.js.map +0 -1
- package/dist/utils/types.d.ts +0 -512
- package/dist/utils/types.d.ts.map +0 -1
- package/dist/utils/types.js +0 -37
- package/dist/utils/types.js.map +0 -1
|
@@ -1,995 +0,0 @@
|
|
|
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
|
-
default:
|
|
74
|
-
printError(`Unknown hooks command: ${subcommand}`);
|
|
75
|
-
showHooksHelp();
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
catch (err) {
|
|
79
|
-
printError(`Hooks command failed: ${err.message}`);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
// ===== PRE-OPERATION HOOKS =====
|
|
83
|
-
async function preTaskCommand(subArgs, flags) {
|
|
84
|
-
const options = flags;
|
|
85
|
-
const description = options.description || 'Unnamed task';
|
|
86
|
-
const taskId = options['task-id'] || options.taskId || generateId('task');
|
|
87
|
-
const agentId = options['agent-id'] || options.agentId;
|
|
88
|
-
const autoSpawnAgents = options['auto-spawn-agents'] !== 'false';
|
|
89
|
-
console.log(`š Executing pre-task hook...`);
|
|
90
|
-
console.log(`š Task: ${description}`);
|
|
91
|
-
console.log(`š Task ID: ${taskId}`);
|
|
92
|
-
if (agentId)
|
|
93
|
-
console.log(`š¤ Agent: ${agentId}`);
|
|
94
|
-
try {
|
|
95
|
-
const store = await getMemoryStore();
|
|
96
|
-
const taskData = {
|
|
97
|
-
taskId,
|
|
98
|
-
description,
|
|
99
|
-
agentId,
|
|
100
|
-
autoSpawnAgents,
|
|
101
|
-
status: 'started',
|
|
102
|
-
startedAt: new Date().toISOString(),
|
|
103
|
-
};
|
|
104
|
-
await store.store(`task:${taskId}`, taskData, {
|
|
105
|
-
namespace: 'hooks:pre-task',
|
|
106
|
-
metadata: { hookType: 'pre-task', agentId },
|
|
107
|
-
});
|
|
108
|
-
await store.store(`task-index:${Date.now()}`, {
|
|
109
|
-
taskId,
|
|
110
|
-
description,
|
|
111
|
-
timestamp: new Date().toISOString(),
|
|
112
|
-
}, { namespace: 'task-index' });
|
|
113
|
-
console.log(` š¾ Saved to .swarm/memory.db`);
|
|
114
|
-
// Execute ruv-swarm hook if available
|
|
115
|
-
const isAvailable = await checkRuvSwarmAvailable();
|
|
116
|
-
if (isAvailable) {
|
|
117
|
-
console.log(`\nš Executing ruv-swarm pre-task hook...`);
|
|
118
|
-
const hookResult = await execRuvSwarmHook('pre-task', {
|
|
119
|
-
description,
|
|
120
|
-
'task-id': taskId,
|
|
121
|
-
'auto-spawn-agents': autoSpawnAgents,
|
|
122
|
-
...(agentId ? { 'agent-id': agentId } : {}),
|
|
123
|
-
});
|
|
124
|
-
if (hookResult.success) {
|
|
125
|
-
await store.store(`task:${taskId}:ruv-output`, {
|
|
126
|
-
output: hookResult.output,
|
|
127
|
-
timestamp: new Date().toISOString(),
|
|
128
|
-
}, { namespace: 'hooks:ruv-swarm' });
|
|
129
|
-
printSuccess(`ā
Pre-task hook completed successfully`);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
console.log(`\nšÆ TASK PREPARATION COMPLETE`);
|
|
133
|
-
}
|
|
134
|
-
catch (err) {
|
|
135
|
-
printError(`Pre-task hook failed: ${err.message}`);
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
async function preEditCommand(subArgs, flags) {
|
|
139
|
-
const options = flags;
|
|
140
|
-
const file = options.file || 'unknown-file';
|
|
141
|
-
const operation = options.operation || 'edit';
|
|
142
|
-
const autoAssignAgents = options['auto-assign-agents'] || false;
|
|
143
|
-
const loadContext = options['load-context'] || false;
|
|
144
|
-
console.log(`š Executing pre-edit hook...`);
|
|
145
|
-
console.log(`š File: ${file}`);
|
|
146
|
-
console.log(`āļø Operation: ${operation}`);
|
|
147
|
-
if (autoAssignAgents)
|
|
148
|
-
console.log(`š¤ Auto-assign agents: ENABLED`);
|
|
149
|
-
if (loadContext)
|
|
150
|
-
console.log(`š Load context: ENABLED`);
|
|
151
|
-
try {
|
|
152
|
-
const store = await getMemoryStore();
|
|
153
|
-
// Auto-assign agents based on file type
|
|
154
|
-
let assignedAgentType = 'general';
|
|
155
|
-
let recommendedAgent = null;
|
|
156
|
-
if (autoAssignAgents) {
|
|
157
|
-
const path = await import('path');
|
|
158
|
-
const ext = path.extname(file).toLowerCase();
|
|
159
|
-
const agentMapping = {
|
|
160
|
-
'.js': 'javascript-developer',
|
|
161
|
-
'.ts': 'typescript-developer',
|
|
162
|
-
'.py': 'python-developer',
|
|
163
|
-
'.go': 'golang-developer',
|
|
164
|
-
'.rs': 'rust-developer',
|
|
165
|
-
'.java': 'java-developer',
|
|
166
|
-
'.cpp': 'cpp-developer',
|
|
167
|
-
'.c': 'c-developer',
|
|
168
|
-
'.css': 'frontend-developer',
|
|
169
|
-
'.html': 'frontend-developer',
|
|
170
|
-
'.vue': 'frontend-developer',
|
|
171
|
-
'.react': 'frontend-developer',
|
|
172
|
-
'.md': 'technical-writer',
|
|
173
|
-
'.yml': 'devops-engineer',
|
|
174
|
-
'.yaml': 'devops-engineer',
|
|
175
|
-
'.json': 'config-specialist',
|
|
176
|
-
'.sql': 'database-expert',
|
|
177
|
-
'.sh': 'system-admin',
|
|
178
|
-
'.dockerfile': 'devops-engineer',
|
|
179
|
-
};
|
|
180
|
-
assignedAgentType = agentMapping[ext] || 'general-developer';
|
|
181
|
-
recommendedAgent = {
|
|
182
|
-
type: assignedAgentType,
|
|
183
|
-
file: file,
|
|
184
|
-
extension: ext,
|
|
185
|
-
recommended: true,
|
|
186
|
-
};
|
|
187
|
-
console.log(` š¤ Recommended agent: ${assignedAgentType}`);
|
|
188
|
-
}
|
|
189
|
-
// Load context if requested
|
|
190
|
-
let contextData = null;
|
|
191
|
-
if (loadContext) {
|
|
192
|
-
try {
|
|
193
|
-
// Check if file exists and get basic info
|
|
194
|
-
const fs = await import('fs');
|
|
195
|
-
const path = await import('path');
|
|
196
|
-
if (fs.existsSync(file)) {
|
|
197
|
-
const stats = fs.statSync(file);
|
|
198
|
-
const dirname = path.dirname(file);
|
|
199
|
-
const basename = path.basename(file);
|
|
200
|
-
contextData = {
|
|
201
|
-
fileExists: true,
|
|
202
|
-
size: stats.size,
|
|
203
|
-
modified: stats.mtime,
|
|
204
|
-
directory: dirname,
|
|
205
|
-
filename: basename,
|
|
206
|
-
isDirectory: stats.isDirectory(),
|
|
207
|
-
};
|
|
208
|
-
console.log(` š Context loaded: ${basename} (${stats.size} bytes)`);
|
|
209
|
-
}
|
|
210
|
-
else {
|
|
211
|
-
contextData = {
|
|
212
|
-
fileExists: false,
|
|
213
|
-
willCreate: true,
|
|
214
|
-
directory: path.dirname(file),
|
|
215
|
-
filename: path.basename(file),
|
|
216
|
-
};
|
|
217
|
-
console.log(` š Context: New file will be created`);
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
catch (err) {
|
|
221
|
-
console.log(` ā ļø Warning: Could not load context for ${file}`);
|
|
222
|
-
contextData = { error: err.message };
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
const editData = {
|
|
226
|
-
file,
|
|
227
|
-
operation,
|
|
228
|
-
timestamp: new Date().toISOString(),
|
|
229
|
-
editId: generateId('edit'),
|
|
230
|
-
autoAssignAgents,
|
|
231
|
-
loadContext,
|
|
232
|
-
assignedAgentType,
|
|
233
|
-
recommendedAgent,
|
|
234
|
-
contextData,
|
|
235
|
-
};
|
|
236
|
-
await store.store(`edit:${editData.editId}:pre`, editData, {
|
|
237
|
-
namespace: 'hooks:pre-edit',
|
|
238
|
-
metadata: { hookType: 'pre-edit', file, agentType: assignedAgentType },
|
|
239
|
-
});
|
|
240
|
-
// Store agent recommendation if enabled
|
|
241
|
-
if (autoAssignAgents && recommendedAgent) {
|
|
242
|
-
await store.store(`agent-recommendation:${file}`, recommendedAgent, {
|
|
243
|
-
namespace: 'agent-assignments',
|
|
244
|
-
ttl: 3600, // 1 hour
|
|
245
|
-
});
|
|
246
|
-
}
|
|
247
|
-
console.log(` š¾ Pre-edit state saved to .swarm/memory.db`);
|
|
248
|
-
printSuccess(`ā
Pre-edit hook completed`);
|
|
249
|
-
}
|
|
250
|
-
catch (err) {
|
|
251
|
-
printError(`Pre-edit hook failed: ${err.message}`);
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
async function preBashCommand(subArgs, flags) {
|
|
255
|
-
const options = flags;
|
|
256
|
-
const command = options.command || subArgs.slice(1).join(' ') || '';
|
|
257
|
-
const workingDir = options.cwd || process.cwd();
|
|
258
|
-
const validateSafety = options['validate-safety'] === true || options['validate-safety'] === 'true' || options.validate === true || options.validate === 'true' || false;
|
|
259
|
-
const prepareResources = options['prepare-resources'] === true || options['prepare-resources'] === 'true' || false;
|
|
260
|
-
console.log(`š§ Executing pre-bash hook...`);
|
|
261
|
-
console.log(`š Command: ${command}`);
|
|
262
|
-
console.log(`š Working dir: ${workingDir}`);
|
|
263
|
-
if (validateSafety)
|
|
264
|
-
console.log(`š Safety validation: ENABLED`);
|
|
265
|
-
if (prepareResources)
|
|
266
|
-
console.log(`š ļø Resource preparation: ENABLED`);
|
|
267
|
-
try {
|
|
268
|
-
const store = await getMemoryStore();
|
|
269
|
-
let safetyResult = 'skipped';
|
|
270
|
-
if (validateSafety) {
|
|
271
|
-
// Basic safety validation
|
|
272
|
-
const dangerousCommands = [
|
|
273
|
-
'rm -rf /',
|
|
274
|
-
'rm -rf .',
|
|
275
|
-
'rm -rf *',
|
|
276
|
-
'format',
|
|
277
|
-
'fdisk',
|
|
278
|
-
'mkfs',
|
|
279
|
-
'curl * | bash',
|
|
280
|
-
'wget * | sh',
|
|
281
|
-
'eval',
|
|
282
|
-
'exec',
|
|
283
|
-
'chmod 777',
|
|
284
|
-
];
|
|
285
|
-
const isDangerous = command && typeof command === 'string' && command.length > 0
|
|
286
|
-
? dangerousCommands.some((dangerous) => command.toLowerCase().includes(dangerous.toLowerCase()))
|
|
287
|
-
: false;
|
|
288
|
-
safetyResult = isDangerous ? 'dangerous' : 'safe';
|
|
289
|
-
if (isDangerous) {
|
|
290
|
-
console.log(` ā ļø Safety check: DANGEROUS COMMAND DETECTED`);
|
|
291
|
-
console.log(` š« Command blocked for safety`);
|
|
292
|
-
printError(`Command blocked due to safety validation: ${command}`);
|
|
293
|
-
return;
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
if (prepareResources) {
|
|
297
|
-
// Resource preparation - create working directory if needed
|
|
298
|
-
const fs = await import('fs');
|
|
299
|
-
const path = await import('path');
|
|
300
|
-
if (!fs.existsSync(workingDir)) {
|
|
301
|
-
fs.mkdirSync(workingDir, { recursive: true });
|
|
302
|
-
console.log(` š Created working directory: ${workingDir}`);
|
|
303
|
-
}
|
|
304
|
-
// Check available disk space
|
|
305
|
-
try {
|
|
306
|
-
const stats = fs.statSync(workingDir);
|
|
307
|
-
console.log(` š¾ Working directory prepared`);
|
|
308
|
-
}
|
|
309
|
-
catch (err) {
|
|
310
|
-
console.log(` ā ļø Warning: Could not check working directory`);
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
const bashData = {
|
|
314
|
-
command,
|
|
315
|
-
workingDir,
|
|
316
|
-
timestamp: new Date().toISOString(),
|
|
317
|
-
bashId: generateId('bash'),
|
|
318
|
-
safety: safetyResult,
|
|
319
|
-
validationEnabled: validateSafety,
|
|
320
|
-
resourcesPrepped: prepareResources,
|
|
321
|
-
};
|
|
322
|
-
await store.store(`bash:${bashData.bashId}:pre`, bashData, {
|
|
323
|
-
namespace: 'hooks:pre-bash',
|
|
324
|
-
metadata: { hookType: 'pre-bash', command, safety: safetyResult },
|
|
325
|
-
});
|
|
326
|
-
console.log(` š¾ Command logged to .swarm/memory.db`);
|
|
327
|
-
console.log(` š Safety check: ${safetyResult.toUpperCase()}`);
|
|
328
|
-
printSuccess(`ā
Pre-bash hook completed`);
|
|
329
|
-
}
|
|
330
|
-
catch (err) {
|
|
331
|
-
printError(`Pre-bash hook failed: ${err.message}`);
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
// ===== POST-OPERATION HOOKS =====
|
|
335
|
-
async function postTaskCommand(subArgs, flags) {
|
|
336
|
-
const options = flags;
|
|
337
|
-
const taskId = options['task-id'] || options.taskId || generateId('task');
|
|
338
|
-
const analyzePerformance = options['analyze-performance'] !== 'false';
|
|
339
|
-
console.log(`š Executing post-task hook...`);
|
|
340
|
-
console.log(`š Task ID: ${taskId}`);
|
|
341
|
-
try {
|
|
342
|
-
const store = await getMemoryStore();
|
|
343
|
-
const taskData = await store.retrieve(`task:${taskId}`, {
|
|
344
|
-
namespace: 'hooks:pre-task',
|
|
345
|
-
});
|
|
346
|
-
const completedData = {
|
|
347
|
-
...(taskData || {}),
|
|
348
|
-
status: 'completed',
|
|
349
|
-
completedAt: new Date().toISOString(),
|
|
350
|
-
duration: taskData ? Date.now() - new Date(taskData.startedAt).getTime() : null,
|
|
351
|
-
};
|
|
352
|
-
await store.store(`task:${taskId}:completed`, completedData, {
|
|
353
|
-
namespace: 'hooks:post-task',
|
|
354
|
-
metadata: { hookType: 'post-task' },
|
|
355
|
-
});
|
|
356
|
-
if (analyzePerformance && completedData.duration) {
|
|
357
|
-
const metrics = {
|
|
358
|
-
taskId,
|
|
359
|
-
duration: completedData.duration,
|
|
360
|
-
durationHuman: `${(completedData.duration / 1000).toFixed(2)}s`,
|
|
361
|
-
timestamp: new Date().toISOString(),
|
|
362
|
-
};
|
|
363
|
-
await store.store(`metrics:${taskId}`, metrics, {
|
|
364
|
-
namespace: 'performance',
|
|
365
|
-
});
|
|
366
|
-
console.log(` š Performance: ${metrics.durationHuman}`);
|
|
367
|
-
}
|
|
368
|
-
console.log(` š¾ Task completion saved to .swarm/memory.db`);
|
|
369
|
-
printSuccess(`ā
Post-task hook completed`);
|
|
370
|
-
}
|
|
371
|
-
catch (err) {
|
|
372
|
-
printError(`Post-task hook failed: ${err.message}`);
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
async function postEditCommand(subArgs, flags) {
|
|
376
|
-
const options = flags;
|
|
377
|
-
const file = options.file || 'unknown-file';
|
|
378
|
-
const memoryKey = options['memory-key'] || options.memoryKey;
|
|
379
|
-
const format = options.format || false;
|
|
380
|
-
const updateMemory = options['update-memory'] || false;
|
|
381
|
-
const trainNeural = options['train-neural'] || false;
|
|
382
|
-
console.log(`š Executing post-edit hook...`);
|
|
383
|
-
console.log(`š File: ${file}`);
|
|
384
|
-
if (memoryKey)
|
|
385
|
-
console.log(`š¾ Memory key: ${memoryKey}`);
|
|
386
|
-
if (format)
|
|
387
|
-
console.log(`šØ Auto-format: ENABLED`);
|
|
388
|
-
if (updateMemory)
|
|
389
|
-
console.log(`š§ Memory update: ENABLED`);
|
|
390
|
-
if (trainNeural)
|
|
391
|
-
console.log(`š¤ Neural training: ENABLED`);
|
|
392
|
-
try {
|
|
393
|
-
const store = await getMemoryStore();
|
|
394
|
-
const path = await import('path');
|
|
395
|
-
const fs = await import('fs');
|
|
396
|
-
// Auto-format file if requested
|
|
397
|
-
let formatResult = null;
|
|
398
|
-
if (format && fs.existsSync(file)) {
|
|
399
|
-
const ext = path.extname(file).toLowerCase();
|
|
400
|
-
const formatters = {
|
|
401
|
-
'.js': 'prettier',
|
|
402
|
-
'.ts': 'prettier',
|
|
403
|
-
'.json': 'prettier',
|
|
404
|
-
'.css': 'prettier',
|
|
405
|
-
'.html': 'prettier',
|
|
406
|
-
'.py': 'black',
|
|
407
|
-
'.go': 'gofmt',
|
|
408
|
-
'.rs': 'rustfmt',
|
|
409
|
-
'.java': 'google-java-format',
|
|
410
|
-
'.cpp': 'clang-format',
|
|
411
|
-
'.c': 'clang-format',
|
|
412
|
-
};
|
|
413
|
-
const formatter = formatters[ext];
|
|
414
|
-
if (formatter) {
|
|
415
|
-
console.log(` šØ Auto-formatting with ${formatter}...`);
|
|
416
|
-
formatResult = {
|
|
417
|
-
formatter,
|
|
418
|
-
extension: ext,
|
|
419
|
-
attempted: true,
|
|
420
|
-
timestamp: new Date().toISOString(),
|
|
421
|
-
};
|
|
422
|
-
}
|
|
423
|
-
else {
|
|
424
|
-
console.log(` ā ļø No formatter available for ${ext}`);
|
|
425
|
-
formatResult = {
|
|
426
|
-
extension: ext,
|
|
427
|
-
attempted: false,
|
|
428
|
-
reason: 'No formatter available',
|
|
429
|
-
};
|
|
430
|
-
}
|
|
431
|
-
}
|
|
432
|
-
// Update memory with edit context
|
|
433
|
-
let memoryUpdate = null;
|
|
434
|
-
if (updateMemory) {
|
|
435
|
-
const editContext = {
|
|
436
|
-
file,
|
|
437
|
-
editedAt: new Date().toISOString(),
|
|
438
|
-
editId: generateId('edit'),
|
|
439
|
-
formatted: formatResult?.attempted || false,
|
|
440
|
-
fileSize: fs.existsSync(file) ? fs.statSync(file).size : 0,
|
|
441
|
-
directory: path.dirname(file),
|
|
442
|
-
basename: path.basename(file),
|
|
443
|
-
};
|
|
444
|
-
memoryUpdate = editContext;
|
|
445
|
-
// Store in coordination namespace
|
|
446
|
-
await store.store(`edit-context:${editContext.editId}`, editContext, {
|
|
447
|
-
namespace: 'coordination',
|
|
448
|
-
metadata: { type: 'edit-context', file },
|
|
449
|
-
});
|
|
450
|
-
console.log(` š§ Edit context stored in memory`);
|
|
451
|
-
}
|
|
452
|
-
// Train neural patterns if requested
|
|
453
|
-
let neuralTraining = null;
|
|
454
|
-
if (trainNeural) {
|
|
455
|
-
// Simulate neural training with file patterns
|
|
456
|
-
const ext = path.extname(file).toLowerCase();
|
|
457
|
-
const basename = path.basename(file);
|
|
458
|
-
const editTime = new Date().toISOString();
|
|
459
|
-
const patterns = {
|
|
460
|
-
fileType: ext,
|
|
461
|
-
fileName: basename,
|
|
462
|
-
editTime,
|
|
463
|
-
confidence: Math.random() * 0.5 + 0.5, // 50-100% confidence
|
|
464
|
-
patterns: [
|
|
465
|
-
`${ext}_edit_pattern`,
|
|
466
|
-
`${basename}_modification`,
|
|
467
|
-
`edit_${Date.now()}_sequence`,
|
|
468
|
-
],
|
|
469
|
-
};
|
|
470
|
-
neuralTraining = patterns;
|
|
471
|
-
await store.store(`neural-pattern:${generateId('pattern')}`, patterns, {
|
|
472
|
-
namespace: 'neural-training',
|
|
473
|
-
metadata: { type: 'edit-pattern', file, extension: ext },
|
|
474
|
-
});
|
|
475
|
-
console.log(` š¤ Neural patterns trained (${(patterns.confidence * 100).toFixed(1)}% confidence)`);
|
|
476
|
-
}
|
|
477
|
-
const editData = {
|
|
478
|
-
file,
|
|
479
|
-
memoryKey,
|
|
480
|
-
timestamp: new Date().toISOString(),
|
|
481
|
-
editId: generateId('edit'),
|
|
482
|
-
format,
|
|
483
|
-
updateMemory,
|
|
484
|
-
trainNeural,
|
|
485
|
-
formatResult,
|
|
486
|
-
memoryUpdate,
|
|
487
|
-
neuralTraining,
|
|
488
|
-
};
|
|
489
|
-
await store.store(`edit:${editData.editId}:post`, editData, {
|
|
490
|
-
namespace: 'hooks:post-edit',
|
|
491
|
-
metadata: { hookType: 'post-edit', file, formatted: formatResult?.attempted || false },
|
|
492
|
-
});
|
|
493
|
-
if (memoryKey) {
|
|
494
|
-
await store.store(memoryKey, {
|
|
495
|
-
file,
|
|
496
|
-
editedAt: new Date().toISOString(),
|
|
497
|
-
editId: editData.editId,
|
|
498
|
-
enhanced: true,
|
|
499
|
-
formatResult,
|
|
500
|
-
memoryUpdate,
|
|
501
|
-
neuralTraining,
|
|
502
|
-
}, { namespace: 'coordination' });
|
|
503
|
-
}
|
|
504
|
-
const historyKey = `file-history:${file.replace(/\//g, '_')}:${Date.now()}`;
|
|
505
|
-
await store.store(historyKey, {
|
|
506
|
-
file,
|
|
507
|
-
editId: editData.editId,
|
|
508
|
-
timestamp: new Date().toISOString(),
|
|
509
|
-
enhanced: true,
|
|
510
|
-
features: {
|
|
511
|
-
format,
|
|
512
|
-
updateMemory,
|
|
513
|
-
trainNeural,
|
|
514
|
-
},
|
|
515
|
-
}, { namespace: 'file-history' });
|
|
516
|
-
console.log(` š¾ Post-edit data saved to .swarm/memory.db`);
|
|
517
|
-
printSuccess(`ā
Post-edit hook completed`);
|
|
518
|
-
}
|
|
519
|
-
catch (err) {
|
|
520
|
-
printError(`Post-edit hook failed: ${err.message}`);
|
|
521
|
-
}
|
|
522
|
-
}
|
|
523
|
-
async function postBashCommand(subArgs, flags) {
|
|
524
|
-
const options = flags;
|
|
525
|
-
const command = options.command || subArgs.slice(1).join(' ');
|
|
526
|
-
const exitCode = options['exit-code'] || '0';
|
|
527
|
-
const output = options.output || '';
|
|
528
|
-
const trackMetrics = options['track-metrics'] || false;
|
|
529
|
-
const storeResults = options['store-results'] || false;
|
|
530
|
-
const duration = options.duration || 0;
|
|
531
|
-
console.log(`š§ Executing post-bash hook...`);
|
|
532
|
-
console.log(`š Command: ${command}`);
|
|
533
|
-
console.log(`š Exit code: ${exitCode}`);
|
|
534
|
-
if (trackMetrics)
|
|
535
|
-
console.log(`š Metrics tracking: ENABLED`);
|
|
536
|
-
if (storeResults)
|
|
537
|
-
console.log(`š¾ Results storage: ENABLED`);
|
|
538
|
-
try {
|
|
539
|
-
const store = await getMemoryStore();
|
|
540
|
-
const startTime = Date.now();
|
|
541
|
-
// Calculate performance metrics if enabled
|
|
542
|
-
let metrics = null;
|
|
543
|
-
if (trackMetrics) {
|
|
544
|
-
const commandLength = command.length;
|
|
545
|
-
const outputLength = output.length;
|
|
546
|
-
const success = parseInt(exitCode) === 0;
|
|
547
|
-
metrics = {
|
|
548
|
-
commandLength,
|
|
549
|
-
outputLength,
|
|
550
|
-
success,
|
|
551
|
-
duration: parseInt(duration) || 0,
|
|
552
|
-
exitCode: parseInt(exitCode),
|
|
553
|
-
timestamp: new Date().toISOString(),
|
|
554
|
-
complexity: commandLength > 100 ? 'high' : commandLength > 50 ? 'medium' : 'low',
|
|
555
|
-
};
|
|
556
|
-
console.log(` š Command metrics: ${commandLength} chars, ${outputLength} output, ${success ? 'SUCCESS' : 'FAILED'}`);
|
|
557
|
-
}
|
|
558
|
-
const bashData = {
|
|
559
|
-
command,
|
|
560
|
-
exitCode,
|
|
561
|
-
output: storeResults ? output.substring(0, 5000) : output.substring(0, 1000), // Store more if requested
|
|
562
|
-
timestamp: new Date().toISOString(),
|
|
563
|
-
bashId: generateId('bash'),
|
|
564
|
-
trackMetrics,
|
|
565
|
-
storeResults,
|
|
566
|
-
metrics,
|
|
567
|
-
};
|
|
568
|
-
await store.store(`bash:${bashData.bashId}:post`, bashData, {
|
|
569
|
-
namespace: 'hooks:post-bash',
|
|
570
|
-
metadata: { hookType: 'post-bash', command, exitCode, success: parseInt(exitCode) === 0 },
|
|
571
|
-
});
|
|
572
|
-
// Store detailed results if enabled
|
|
573
|
-
if (storeResults) {
|
|
574
|
-
await store.store(`command-results:${bashData.bashId}`, {
|
|
575
|
-
command,
|
|
576
|
-
exitCode,
|
|
577
|
-
output,
|
|
578
|
-
timestamp: new Date().toISOString(),
|
|
579
|
-
fullOutput: true,
|
|
580
|
-
}, { namespace: 'command-results' });
|
|
581
|
-
console.log(` š¾ Full command results stored`);
|
|
582
|
-
}
|
|
583
|
-
// Store metrics if enabled
|
|
584
|
-
if (trackMetrics && metrics) {
|
|
585
|
-
await store.store(`command-metrics:${bashData.bashId}`, metrics, {
|
|
586
|
-
namespace: 'performance-metrics',
|
|
587
|
-
});
|
|
588
|
-
// Update running metrics
|
|
589
|
-
const existingMetrics = (await store.retrieve('command-metrics-summary', {
|
|
590
|
-
namespace: 'performance-metrics',
|
|
591
|
-
})) || { totalCommands: 0, successRate: 0, avgDuration: 0 };
|
|
592
|
-
existingMetrics.totalCommands += 1;
|
|
593
|
-
existingMetrics.successRate =
|
|
594
|
-
(existingMetrics.successRate * (existingMetrics.totalCommands - 1) +
|
|
595
|
-
(metrics.success ? 1 : 0)) /
|
|
596
|
-
existingMetrics.totalCommands;
|
|
597
|
-
existingMetrics.avgDuration =
|
|
598
|
-
(existingMetrics.avgDuration * (existingMetrics.totalCommands - 1) + metrics.duration) /
|
|
599
|
-
existingMetrics.totalCommands;
|
|
600
|
-
existingMetrics.lastUpdated = new Date().toISOString();
|
|
601
|
-
await store.store('command-metrics-summary', existingMetrics, {
|
|
602
|
-
namespace: 'performance-metrics',
|
|
603
|
-
});
|
|
604
|
-
}
|
|
605
|
-
// Update command history
|
|
606
|
-
await store.store(`command-history:${Date.now()}`, {
|
|
607
|
-
command,
|
|
608
|
-
exitCode,
|
|
609
|
-
timestamp: new Date().toISOString(),
|
|
610
|
-
success: parseInt(exitCode) === 0,
|
|
611
|
-
hasMetrics: trackMetrics,
|
|
612
|
-
hasResults: storeResults,
|
|
613
|
-
}, { namespace: 'command-history' });
|
|
614
|
-
console.log(` š¾ Command execution logged to .swarm/memory.db`);
|
|
615
|
-
printSuccess(`ā
Post-bash hook completed`);
|
|
616
|
-
}
|
|
617
|
-
catch (err) {
|
|
618
|
-
printError(`Post-bash hook failed: ${err.message}`);
|
|
619
|
-
}
|
|
620
|
-
}
|
|
621
|
-
async function postSearchCommand(subArgs, flags) {
|
|
622
|
-
const options = flags;
|
|
623
|
-
const query = options.query || subArgs.slice(1).join(' ');
|
|
624
|
-
const resultCount = options['result-count'] || '0';
|
|
625
|
-
const searchType = options.type || 'general';
|
|
626
|
-
console.log(`š Executing post-search hook...`);
|
|
627
|
-
console.log(`š Query: ${query}`);
|
|
628
|
-
console.log(`š Results: ${resultCount}`);
|
|
629
|
-
try {
|
|
630
|
-
const store = await getMemoryStore();
|
|
631
|
-
const searchData = {
|
|
632
|
-
query,
|
|
633
|
-
resultCount: parseInt(resultCount),
|
|
634
|
-
searchType,
|
|
635
|
-
timestamp: new Date().toISOString(),
|
|
636
|
-
searchId: generateId('search'),
|
|
637
|
-
};
|
|
638
|
-
await store.store(`search:${searchData.searchId}`, searchData, {
|
|
639
|
-
namespace: 'hooks:post-search',
|
|
640
|
-
metadata: { hookType: 'post-search', query },
|
|
641
|
-
});
|
|
642
|
-
// Cache search for future use
|
|
643
|
-
await store.store(`search-cache:${query}`, {
|
|
644
|
-
resultCount: searchData.resultCount,
|
|
645
|
-
cachedAt: new Date().toISOString(),
|
|
646
|
-
}, { namespace: 'search-cache', ttl: 3600 }); // 1 hour TTL
|
|
647
|
-
console.log(` š¾ Search results cached to .swarm/memory.db`);
|
|
648
|
-
printSuccess(`ā
Post-search hook completed`);
|
|
649
|
-
}
|
|
650
|
-
catch (err) {
|
|
651
|
-
printError(`Post-search hook failed: ${err.message}`);
|
|
652
|
-
}
|
|
653
|
-
}
|
|
654
|
-
// ===== MCP INTEGRATION HOOKS =====
|
|
655
|
-
async function mcpInitializedCommand(subArgs, flags) {
|
|
656
|
-
const options = flags;
|
|
657
|
-
const serverName = options.server || 'claude-flow';
|
|
658
|
-
const sessionId = options['session-id'] || generateId('mcp-session');
|
|
659
|
-
console.log(`š Executing mcp-initialized hook...`);
|
|
660
|
-
console.log(`š» Server: ${serverName}`);
|
|
661
|
-
console.log(`š Session: ${sessionId}`);
|
|
662
|
-
try {
|
|
663
|
-
const store = await getMemoryStore();
|
|
664
|
-
const mcpData = {
|
|
665
|
-
serverName,
|
|
666
|
-
sessionId,
|
|
667
|
-
initializedAt: new Date().toISOString(),
|
|
668
|
-
status: 'active',
|
|
669
|
-
};
|
|
670
|
-
await store.store(`mcp:${sessionId}`, mcpData, {
|
|
671
|
-
namespace: 'hooks:mcp-initialized',
|
|
672
|
-
metadata: { hookType: 'mcp-initialized', server: serverName },
|
|
673
|
-
});
|
|
674
|
-
console.log(` š¾ MCP session saved to .swarm/memory.db`);
|
|
675
|
-
printSuccess(`ā
MCP initialized hook completed`);
|
|
676
|
-
}
|
|
677
|
-
catch (err) {
|
|
678
|
-
printError(`MCP initialized hook failed: ${err.message}`);
|
|
679
|
-
}
|
|
680
|
-
}
|
|
681
|
-
async function agentSpawnedCommand(subArgs, flags) {
|
|
682
|
-
const options = flags;
|
|
683
|
-
const agentType = options.type || 'generic';
|
|
684
|
-
const agentName = options.name || generateId('agent');
|
|
685
|
-
const swarmId = options['swarm-id'] || 'default';
|
|
686
|
-
console.log(`š¤ Executing agent-spawned hook...`);
|
|
687
|
-
console.log(`š Agent: ${agentName}`);
|
|
688
|
-
console.log(`š·ļø Type: ${agentType}`);
|
|
689
|
-
try {
|
|
690
|
-
const store = await getMemoryStore();
|
|
691
|
-
const agentData = {
|
|
692
|
-
agentName,
|
|
693
|
-
agentType,
|
|
694
|
-
swarmId,
|
|
695
|
-
spawnedAt: new Date().toISOString(),
|
|
696
|
-
status: 'active',
|
|
697
|
-
};
|
|
698
|
-
await store.store(`agent:${agentName}`, agentData, {
|
|
699
|
-
namespace: 'hooks:agent-spawned',
|
|
700
|
-
metadata: { hookType: 'agent-spawned', type: agentType },
|
|
701
|
-
});
|
|
702
|
-
// Update agent roster
|
|
703
|
-
await store.store(`agent-roster:${Date.now()}`, {
|
|
704
|
-
agentName,
|
|
705
|
-
action: 'spawned',
|
|
706
|
-
timestamp: new Date().toISOString(),
|
|
707
|
-
}, { namespace: 'agent-roster' });
|
|
708
|
-
console.log(` š¾ Agent registered to .swarm/memory.db`);
|
|
709
|
-
printSuccess(`ā
Agent spawned hook completed`);
|
|
710
|
-
}
|
|
711
|
-
catch (err) {
|
|
712
|
-
printError(`Agent spawned hook failed: ${err.message}`);
|
|
713
|
-
}
|
|
714
|
-
}
|
|
715
|
-
async function taskOrchestratedCommand(subArgs, flags) {
|
|
716
|
-
const options = flags;
|
|
717
|
-
const taskId = options['task-id'] || generateId('orchestrated-task');
|
|
718
|
-
const strategy = options.strategy || 'balanced';
|
|
719
|
-
const priority = options.priority || 'medium';
|
|
720
|
-
console.log(`š Executing task-orchestrated hook...`);
|
|
721
|
-
console.log(`š Task: ${taskId}`);
|
|
722
|
-
console.log(`š Strategy: ${strategy}`);
|
|
723
|
-
try {
|
|
724
|
-
const store = await getMemoryStore();
|
|
725
|
-
const orchestrationData = {
|
|
726
|
-
taskId,
|
|
727
|
-
strategy,
|
|
728
|
-
priority,
|
|
729
|
-
orchestratedAt: new Date().toISOString(),
|
|
730
|
-
status: 'orchestrated',
|
|
731
|
-
};
|
|
732
|
-
await store.store(`orchestration:${taskId}`, orchestrationData, {
|
|
733
|
-
namespace: 'hooks:task-orchestrated',
|
|
734
|
-
metadata: { hookType: 'task-orchestrated', strategy },
|
|
735
|
-
});
|
|
736
|
-
console.log(` š¾ Orchestration saved to .swarm/memory.db`);
|
|
737
|
-
printSuccess(`ā
Task orchestrated hook completed`);
|
|
738
|
-
}
|
|
739
|
-
catch (err) {
|
|
740
|
-
printError(`Task orchestrated hook failed: ${err.message}`);
|
|
741
|
-
}
|
|
742
|
-
}
|
|
743
|
-
async function neuralTrainedCommand(subArgs, flags) {
|
|
744
|
-
const options = flags;
|
|
745
|
-
const modelName = options.model || 'default-neural';
|
|
746
|
-
const accuracy = options.accuracy || '0.0';
|
|
747
|
-
const patterns = options.patterns || '0';
|
|
748
|
-
console.log(`š§ Executing neural-trained hook...`);
|
|
749
|
-
console.log(`š¤ Model: ${modelName}`);
|
|
750
|
-
console.log(`š Accuracy: ${accuracy}%`);
|
|
751
|
-
try {
|
|
752
|
-
const store = await getMemoryStore();
|
|
753
|
-
const trainingData = {
|
|
754
|
-
modelName,
|
|
755
|
-
accuracy: parseFloat(accuracy),
|
|
756
|
-
patternsLearned: parseInt(patterns),
|
|
757
|
-
trainedAt: new Date().toISOString(),
|
|
758
|
-
};
|
|
759
|
-
await store.store(`neural:${modelName}:${Date.now()}`, trainingData, {
|
|
760
|
-
namespace: 'hooks:neural-trained',
|
|
761
|
-
metadata: { hookType: 'neural-trained', model: modelName },
|
|
762
|
-
});
|
|
763
|
-
console.log(` š¾ Training results saved to .swarm/memory.db`);
|
|
764
|
-
printSuccess(`ā
Neural trained hook completed`);
|
|
765
|
-
}
|
|
766
|
-
catch (err) {
|
|
767
|
-
printError(`Neural trained hook failed: ${err.message}`);
|
|
768
|
-
}
|
|
769
|
-
}
|
|
770
|
-
// ===== SESSION HOOKS =====
|
|
771
|
-
async function sessionEndCommand(subArgs, flags) {
|
|
772
|
-
const options = flags;
|
|
773
|
-
const generateSummary = options['generate-summary'] !== 'false';
|
|
774
|
-
const persistState = options['persist-state'] !== 'false';
|
|
775
|
-
const exportMetrics = options['export-metrics'] || false;
|
|
776
|
-
console.log(`š Executing session-end hook...`);
|
|
777
|
-
if (generateSummary)
|
|
778
|
-
console.log(`š Summary generation: ENABLED`);
|
|
779
|
-
if (persistState)
|
|
780
|
-
console.log(`š¾ State persistence: ENABLED`);
|
|
781
|
-
if (exportMetrics)
|
|
782
|
-
console.log(`š Metrics export: ENABLED`);
|
|
783
|
-
try {
|
|
784
|
-
const store = await getMemoryStore();
|
|
785
|
-
const tasks = await store.list({ namespace: 'task-index', limit: 1000 });
|
|
786
|
-
const edits = await store.list({ namespace: 'file-history', limit: 1000 });
|
|
787
|
-
const commands = await store.list({ namespace: 'command-history', limit: 1000 });
|
|
788
|
-
const agents = await store.list({ namespace: 'agent-roster', limit: 1000 });
|
|
789
|
-
// Calculate session metrics
|
|
790
|
-
let metrics = null;
|
|
791
|
-
if (exportMetrics) {
|
|
792
|
-
const now = new Date();
|
|
793
|
-
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()));
|
|
794
|
-
const duration = now.getTime() - sessionStart;
|
|
795
|
-
const successfulCommands = commands.filter((c) => c.value.success !== false).length;
|
|
796
|
-
const commandSuccessRate = commands.length > 0 ? successfulCommands / commands.length : 1;
|
|
797
|
-
metrics = {
|
|
798
|
-
sessionDuration: duration,
|
|
799
|
-
sessionDurationHuman: `${Math.round(duration / 1000 / 60)} minutes`,
|
|
800
|
-
totalTasks: tasks.length,
|
|
801
|
-
totalEdits: edits.length,
|
|
802
|
-
totalCommands: commands.length,
|
|
803
|
-
uniqueAgents: agents.length,
|
|
804
|
-
commandSuccessRate: Math.round(commandSuccessRate * 100),
|
|
805
|
-
avgTasksPerMinute: Math.round((tasks.length / (duration / 1000 / 60)) * 100) / 100,
|
|
806
|
-
avgEditsPerMinute: Math.round((edits.length / (duration / 1000 / 60)) * 100) / 100,
|
|
807
|
-
timestamp: now.toISOString(),
|
|
808
|
-
};
|
|
809
|
-
}
|
|
810
|
-
const sessionData = {
|
|
811
|
-
endedAt: new Date().toISOString(),
|
|
812
|
-
totalTasks: tasks.length,
|
|
813
|
-
totalEdits: edits.length,
|
|
814
|
-
totalCommands: commands.length,
|
|
815
|
-
uniqueAgents: agents.length,
|
|
816
|
-
sessionId: generateId('session'),
|
|
817
|
-
generateSummary,
|
|
818
|
-
persistState,
|
|
819
|
-
exportMetrics,
|
|
820
|
-
metrics,
|
|
821
|
-
};
|
|
822
|
-
await store.store(`session:${sessionData.sessionId}`, sessionData, {
|
|
823
|
-
namespace: 'sessions',
|
|
824
|
-
metadata: { hookType: 'session-end' },
|
|
825
|
-
});
|
|
826
|
-
// Persist detailed state if requested
|
|
827
|
-
if (persistState) {
|
|
828
|
-
const detailedState = {
|
|
829
|
-
sessionId: sessionData.sessionId,
|
|
830
|
-
tasks: tasks.slice(0, 100), // Limit to prevent memory issues
|
|
831
|
-
edits: edits.slice(0, 100),
|
|
832
|
-
commands: commands.slice(0, 100),
|
|
833
|
-
agents: agents.slice(0, 50),
|
|
834
|
-
persistedAt: new Date().toISOString(),
|
|
835
|
-
fullState: true,
|
|
836
|
-
};
|
|
837
|
-
await store.store(`session-state:${sessionData.sessionId}`, detailedState, {
|
|
838
|
-
namespace: 'session-states',
|
|
839
|
-
metadata: { type: 'full-state', sessionId: sessionData.sessionId },
|
|
840
|
-
});
|
|
841
|
-
console.log(` š¾ Full session state persisted`);
|
|
842
|
-
}
|
|
843
|
-
// Export metrics if requested
|
|
844
|
-
if (exportMetrics && metrics) {
|
|
845
|
-
await store.store(`session-metrics:${sessionData.sessionId}`, metrics, {
|
|
846
|
-
namespace: 'session-metrics',
|
|
847
|
-
metadata: { type: 'performance-metrics', sessionId: sessionData.sessionId },
|
|
848
|
-
});
|
|
849
|
-
console.log(` š Session metrics exported`);
|
|
850
|
-
}
|
|
851
|
-
if (generateSummary) {
|
|
852
|
-
console.log(`\nš SESSION SUMMARY:`);
|
|
853
|
-
console.log(` š Tasks: ${sessionData.totalTasks}`);
|
|
854
|
-
console.log(` āļø Edits: ${sessionData.totalEdits}`);
|
|
855
|
-
console.log(` š§ Commands: ${sessionData.totalCommands}`);
|
|
856
|
-
console.log(` š¤ Agents: ${sessionData.uniqueAgents}`);
|
|
857
|
-
if (metrics) {
|
|
858
|
-
console.log(` ā±ļø Duration: ${metrics.sessionDurationHuman}`);
|
|
859
|
-
console.log(` š Success Rate: ${metrics.commandSuccessRate}%`);
|
|
860
|
-
console.log(` š Tasks/min: ${metrics.avgTasksPerMinute}`);
|
|
861
|
-
console.log(` āļø Edits/min: ${metrics.avgEditsPerMinute}`);
|
|
862
|
-
}
|
|
863
|
-
}
|
|
864
|
-
console.log(` š¾ Session saved to .swarm/memory.db`);
|
|
865
|
-
if (memoryStore) {
|
|
866
|
-
memoryStore.close();
|
|
867
|
-
memoryStore = null;
|
|
868
|
-
}
|
|
869
|
-
printSuccess(`ā
Session-end hook completed`);
|
|
870
|
-
}
|
|
871
|
-
catch (err) {
|
|
872
|
-
printError(`Session-end hook failed: ${err.message}`);
|
|
873
|
-
}
|
|
874
|
-
}
|
|
875
|
-
async function sessionRestoreCommand(subArgs, flags) {
|
|
876
|
-
const options = flags;
|
|
877
|
-
const sessionId = options['session-id'] || 'latest';
|
|
878
|
-
console.log(`š Executing session-restore hook...`);
|
|
879
|
-
console.log(`š Session: ${sessionId}`);
|
|
880
|
-
try {
|
|
881
|
-
const store = await getMemoryStore();
|
|
882
|
-
// Find session to restore
|
|
883
|
-
let sessionData;
|
|
884
|
-
if (sessionId === 'latest') {
|
|
885
|
-
const sessions = await store.list({ namespace: 'sessions', limit: 1 });
|
|
886
|
-
sessionData = sessions[0]?.value;
|
|
887
|
-
}
|
|
888
|
-
else {
|
|
889
|
-
sessionData = await store.retrieve(`session:${sessionId}`, { namespace: 'sessions' });
|
|
890
|
-
}
|
|
891
|
-
if (sessionData) {
|
|
892
|
-
console.log(`\nš RESTORED SESSION:`);
|
|
893
|
-
console.log(` š ID: ${sessionData.sessionId || 'unknown'}`);
|
|
894
|
-
console.log(` š Tasks: ${sessionData.totalTasks || 0}`);
|
|
895
|
-
console.log(` āļø Edits: ${sessionData.totalEdits || 0}`);
|
|
896
|
-
console.log(` ā° Ended: ${sessionData.endedAt || 'unknown'}`);
|
|
897
|
-
// Store restoration event
|
|
898
|
-
await store.store(`session-restore:${Date.now()}`, {
|
|
899
|
-
restoredSessionId: sessionData.sessionId || sessionId,
|
|
900
|
-
restoredAt: new Date().toISOString(),
|
|
901
|
-
}, { namespace: 'session-events' });
|
|
902
|
-
console.log(` š¾ Session restored from .swarm/memory.db`);
|
|
903
|
-
printSuccess(`ā
Session restore completed`);
|
|
904
|
-
}
|
|
905
|
-
else {
|
|
906
|
-
printWarning(`No session found with ID: ${sessionId}`);
|
|
907
|
-
}
|
|
908
|
-
}
|
|
909
|
-
catch (err) {
|
|
910
|
-
printError(`Session restore hook failed: ${err.message}`);
|
|
911
|
-
}
|
|
912
|
-
}
|
|
913
|
-
async function notifyCommand(subArgs, flags) {
|
|
914
|
-
const options = flags;
|
|
915
|
-
const message = options.message || subArgs.slice(1).join(' ');
|
|
916
|
-
const level = options.level || 'info';
|
|
917
|
-
const swarmStatus = options['swarm-status'] || 'active';
|
|
918
|
-
console.log(`š¢ Executing notify hook...`);
|
|
919
|
-
console.log(`š¬ Message: ${message}`);
|
|
920
|
-
console.log(`š Level: ${level}`);
|
|
921
|
-
try {
|
|
922
|
-
const store = await getMemoryStore();
|
|
923
|
-
const notificationData = {
|
|
924
|
-
message,
|
|
925
|
-
level,
|
|
926
|
-
swarmStatus,
|
|
927
|
-
timestamp: new Date().toISOString(),
|
|
928
|
-
notifyId: generateId('notify'),
|
|
929
|
-
};
|
|
930
|
-
await store.store(`notification:${notificationData.notifyId}`, notificationData, {
|
|
931
|
-
namespace: 'hooks:notify',
|
|
932
|
-
metadata: { hookType: 'notify', level },
|
|
933
|
-
});
|
|
934
|
-
// Display notification
|
|
935
|
-
const icon = level === 'error' ? 'ā' : level === 'warning' ? 'ā ļø' : 'ā
';
|
|
936
|
-
console.log(`\n${icon} NOTIFICATION:`);
|
|
937
|
-
console.log(` ${message}`);
|
|
938
|
-
console.log(` š Swarm: ${swarmStatus}`);
|
|
939
|
-
console.log(`\n š¾ Notification saved to .swarm/memory.db`);
|
|
940
|
-
printSuccess(`ā
Notify hook completed`);
|
|
941
|
-
}
|
|
942
|
-
catch (err) {
|
|
943
|
-
printError(`Notify hook failed: ${err.message}`);
|
|
944
|
-
}
|
|
945
|
-
}
|
|
946
|
-
function showHooksHelp() {
|
|
947
|
-
console.log('Claude Flow Hooks (with .swarm/memory.db persistence):\n');
|
|
948
|
-
console.log('Pre-Operation Hooks:');
|
|
949
|
-
console.log(' pre-task Execute before starting a task');
|
|
950
|
-
console.log(' pre-edit Validate before file modifications');
|
|
951
|
-
console.log(' --auto-assign-agents Auto-assign agents based on file type');
|
|
952
|
-
console.log(' --load-context Load file context');
|
|
953
|
-
console.log(' pre-bash Check command safety (alias: pre-command)');
|
|
954
|
-
console.log(' pre-command Same as pre-bash');
|
|
955
|
-
console.log(' --validate-safety Enable safety validation');
|
|
956
|
-
console.log(' --prepare-resources Prepare execution resources');
|
|
957
|
-
console.log('\nPost-Operation Hooks:');
|
|
958
|
-
console.log(' post-task Execute after completing a task');
|
|
959
|
-
console.log(' post-edit Auto-format and log edits');
|
|
960
|
-
console.log(' --format Auto-format code');
|
|
961
|
-
console.log(' --update-memory Update agent memory');
|
|
962
|
-
console.log(' --train-neural Train neural patterns');
|
|
963
|
-
console.log(' post-bash Log command execution (alias: post-command)');
|
|
964
|
-
console.log(' post-command Same as post-bash');
|
|
965
|
-
console.log(' --track-metrics Track performance metrics');
|
|
966
|
-
console.log(' --store-results Store detailed results');
|
|
967
|
-
console.log(' post-search Cache search results');
|
|
968
|
-
console.log('\nMCP Integration Hooks:');
|
|
969
|
-
console.log(' mcp-initialized Persist MCP configuration');
|
|
970
|
-
console.log(' agent-spawned Update agent roster');
|
|
971
|
-
console.log(' task-orchestrated Monitor task progress');
|
|
972
|
-
console.log(' neural-trained Save pattern improvements');
|
|
973
|
-
console.log('\nSession Hooks:');
|
|
974
|
-
console.log(' session-end Generate summary and save state');
|
|
975
|
-
console.log(' --generate-summary Generate session summary');
|
|
976
|
-
console.log(' --persist-state Persist session state');
|
|
977
|
-
console.log(' --export-metrics Export performance metrics');
|
|
978
|
-
console.log(' session-restore Load previous session state');
|
|
979
|
-
console.log(' notify Custom notifications');
|
|
980
|
-
console.log('\nExamples:');
|
|
981
|
-
console.log(' hooks pre-command --command "npm test" --validate-safety true');
|
|
982
|
-
console.log(' hooks pre-edit --file "src/app.js" --auto-assign-agents true');
|
|
983
|
-
console.log(' hooks post-command --command "build" --track-metrics true');
|
|
984
|
-
console.log(' hooks post-edit --file "src/app.js" --format true --train-neural true');
|
|
985
|
-
console.log(' hooks session-end --generate-summary true --export-metrics true');
|
|
986
|
-
console.log(' hooks agent-spawned --name "CodeReviewer" --type "reviewer"');
|
|
987
|
-
console.log(' hooks notify --message "Build completed" --level "success"');
|
|
988
|
-
console.log('\nCompatibility:');
|
|
989
|
-
console.log(' ⢠pre-command and pre-bash are aliases');
|
|
990
|
-
console.log(' ⢠post-command and post-bash are aliases');
|
|
991
|
-
console.log(' ⢠Both --dash-case and camelCase parameters supported');
|
|
992
|
-
console.log(' ⢠All parameters from settings.json template supported');
|
|
993
|
-
}
|
|
994
|
-
export default hooksAction;
|
|
995
|
-
//# sourceMappingURL=hooks.js.map
|