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