claude-flow 3.0.0-alpha.8 → 3.0.0-alpha.9
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/README.md +991 -900
- package/{v3/@claude-flow/cli/dist → dist}/src/commands/daemon.d.ts.map +1 -1
- package/{v3/@claude-flow/cli/dist → dist}/src/commands/daemon.js +182 -8
- package/dist/src/commands/daemon.js.map +1 -0
- package/{v3/@claude-flow/cli/dist → dist}/src/index.d.ts +1 -1
- package/{v3/@claude-flow/cli/dist → dist}/src/index.d.ts.map +1 -1
- package/{v3/@claude-flow/cli/dist → dist}/src/index.js +21 -0
- package/dist/src/index.js.map +1 -0
- package/{v3/@claude-flow/cli/dist → dist}/src/output.d.ts +16 -0
- package/dist/src/output.d.ts.map +1 -0
- package/{v3/@claude-flow/cli/dist → dist}/src/output.js +42 -0
- package/dist/src/output.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +13 -57
- package/src/commands/agent.ts +955 -0
- package/src/commands/config.ts +452 -0
- package/src/commands/daemon.ts +598 -0
- package/src/commands/hive-mind.ts +928 -0
- package/src/commands/hooks.ts +2603 -0
- package/src/commands/index.ts +118 -0
- package/src/commands/init.ts +597 -0
- package/src/commands/mcp.ts +753 -0
- package/src/commands/memory.ts +1161 -0
- package/src/commands/migrate.ts +447 -0
- package/src/commands/process.ts +695 -0
- package/src/commands/session.ts +891 -0
- package/src/commands/start.ts +457 -0
- package/src/commands/status.ts +736 -0
- package/src/commands/swarm.ts +648 -0
- package/src/commands/task.ts +792 -0
- package/src/commands/workflow.ts +742 -0
- package/src/config-adapter.ts +210 -0
- package/src/index.ts +427 -0
- package/src/infrastructure/in-memory-repositories.ts +310 -0
- package/src/init/claudemd-generator.ts +631 -0
- package/src/init/executor.ts +762 -0
- package/src/init/helpers-generator.ts +628 -0
- package/src/init/index.ts +60 -0
- package/src/init/mcp-generator.ts +83 -0
- package/src/init/settings-generator.ts +284 -0
- package/src/init/statusline-generator.ts +211 -0
- package/src/init/types.ts +447 -0
- package/src/mcp-client.ts +241 -0
- package/src/mcp-server.ts +577 -0
- package/src/mcp-tools/agent-tools.ts +466 -0
- package/src/mcp-tools/config-tools.ts +370 -0
- package/src/mcp-tools/hive-mind-tools.ts +521 -0
- package/src/mcp-tools/hooks-tools.ts +1888 -0
- package/src/mcp-tools/index.ts +16 -0
- package/src/mcp-tools/memory-tools.ts +270 -0
- package/src/mcp-tools/session-tools.ts +359 -0
- package/src/mcp-tools/swarm-tools.ts +105 -0
- package/src/mcp-tools/task-tools.ts +347 -0
- package/src/mcp-tools/types.ts +33 -0
- package/src/mcp-tools/workflow-tools.ts +573 -0
- package/src/output.ts +639 -0
- package/src/parser.ts +417 -0
- package/src/prompt.ts +619 -0
- package/src/services/index.ts +15 -0
- package/src/services/worker-daemon.ts +726 -0
- package/src/types.ts +287 -0
- package/.claude/.claude-flow/metrics/system-metrics.json +0 -2606
- package/.claude/agents/MIGRATION_SUMMARY.md +0 -222
- package/.claude/agents/README.md +0 -89
- package/.claude/agents/analysis/analyze-code-quality.md +0 -180
- package/.claude/agents/analysis/code-analyzer.md +0 -209
- package/.claude/agents/analysis/code-review/analyze-code-quality.md +0 -180
- package/.claude/agents/architecture/system-design/arch-system-design.md +0 -156
- package/.claude/agents/base-template-generator.md +0 -42
- package/.claude/agents/consensus/README.md +0 -253
- package/.claude/agents/consensus/byzantine-coordinator.md +0 -63
- package/.claude/agents/consensus/crdt-synchronizer.md +0 -997
- package/.claude/agents/consensus/gossip-coordinator.md +0 -63
- package/.claude/agents/consensus/performance-benchmarker.md +0 -851
- package/.claude/agents/consensus/quorum-manager.md +0 -823
- package/.claude/agents/consensus/raft-manager.md +0 -63
- package/.claude/agents/consensus/security-manager.md +0 -622
- package/.claude/agents/core/coder.md +0 -266
- package/.claude/agents/core/planner.md +0 -168
- package/.claude/agents/core/researcher.md +0 -190
- package/.claude/agents/core/reviewer.md +0 -326
- package/.claude/agents/core/tester.md +0 -319
- package/.claude/agents/custom/test-long-runner.md +0 -44
- package/.claude/agents/data/ml/data-ml-model.md +0 -193
- package/.claude/agents/database-specialist.yaml +0 -21
- package/.claude/agents/development/backend/dev-backend-api.md +0 -142
- package/.claude/agents/development/dev-backend-api.md +0 -345
- package/.claude/agents/devops/ci-cd/ops-cicd-github.md +0 -164
- package/.claude/agents/documentation/api-docs/docs-api-openapi.md +0 -174
- package/.claude/agents/flow-nexus/app-store.md +0 -88
- package/.claude/agents/flow-nexus/authentication.md +0 -69
- package/.claude/agents/flow-nexus/challenges.md +0 -81
- package/.claude/agents/flow-nexus/neural-network.md +0 -88
- package/.claude/agents/flow-nexus/payments.md +0 -83
- package/.claude/agents/flow-nexus/sandbox.md +0 -76
- package/.claude/agents/flow-nexus/swarm.md +0 -76
- package/.claude/agents/flow-nexus/user-tools.md +0 -96
- package/.claude/agents/flow-nexus/workflow.md +0 -84
- package/.claude/agents/github/code-review-swarm.md +0 -538
- package/.claude/agents/github/github-modes.md +0 -173
- package/.claude/agents/github/issue-tracker.md +0 -319
- package/.claude/agents/github/multi-repo-swarm.md +0 -553
- package/.claude/agents/github/pr-manager.md +0 -191
- package/.claude/agents/github/project-board-sync.md +0 -509
- package/.claude/agents/github/release-manager.md +0 -367
- package/.claude/agents/github/release-swarm.md +0 -583
- package/.claude/agents/github/repo-architect.md +0 -398
- package/.claude/agents/github/swarm-issue.md +0 -573
- package/.claude/agents/github/swarm-pr.md +0 -428
- package/.claude/agents/github/sync-coordinator.md +0 -452
- package/.claude/agents/github/workflow-automation.md +0 -635
- package/.claude/agents/goal/agent.md +0 -816
- package/.claude/agents/goal/code-goal-planner.md +0 -446
- package/.claude/agents/goal/goal-planner.md +0 -168
- package/.claude/agents/hive-mind/collective-intelligence-coordinator.md +0 -130
- package/.claude/agents/hive-mind/queen-coordinator.md +0 -203
- package/.claude/agents/hive-mind/scout-explorer.md +0 -242
- package/.claude/agents/hive-mind/swarm-memory-manager.md +0 -193
- package/.claude/agents/hive-mind/worker-specialist.md +0 -217
- package/.claude/agents/index.yaml +0 -17
- package/.claude/agents/neural/safla-neural.md +0 -74
- package/.claude/agents/optimization/README.md +0 -250
- package/.claude/agents/optimization/benchmark-suite.md +0 -665
- package/.claude/agents/optimization/load-balancer.md +0 -431
- package/.claude/agents/optimization/performance-monitor.md +0 -672
- package/.claude/agents/optimization/resource-allocator.md +0 -674
- package/.claude/agents/optimization/topology-optimizer.md +0 -808
- package/.claude/agents/payments/agentic-payments.md +0 -126
- package/.claude/agents/project-coordinator.yaml +0 -15
- package/.claude/agents/python-specialist.yaml +0 -21
- package/.claude/agents/reasoning/agent.md +0 -816
- package/.claude/agents/reasoning/goal-planner.md +0 -73
- package/.claude/agents/security-auditor.yaml +0 -20
- package/.claude/agents/sona/sona-learning-optimizer.md +0 -496
- package/.claude/agents/sparc/architecture.md +0 -472
- package/.claude/agents/sparc/pseudocode.md +0 -318
- package/.claude/agents/sparc/refinement.md +0 -525
- package/.claude/agents/sparc/specification.md +0 -276
- package/.claude/agents/specialized/mobile/spec-mobile-react-native.md +0 -226
- package/.claude/agents/sublinear/consensus-coordinator.md +0 -338
- package/.claude/agents/sublinear/matrix-optimizer.md +0 -185
- package/.claude/agents/sublinear/pagerank-analyzer.md +0 -299
- package/.claude/agents/sublinear/performance-optimizer.md +0 -368
- package/.claude/agents/sublinear/trading-predictor.md +0 -246
- package/.claude/agents/swarm/README.md +0 -190
- package/.claude/agents/swarm/adaptive-coordinator.md +0 -396
- package/.claude/agents/swarm/hierarchical-coordinator.md +0 -327
- package/.claude/agents/swarm/mesh-coordinator.md +0 -392
- package/.claude/agents/templates/automation-smart-agent.md +0 -205
- package/.claude/agents/templates/coordinator-swarm-init.md +0 -105
- package/.claude/agents/templates/github-pr-manager.md +0 -177
- package/.claude/agents/templates/implementer-sparc-coder.md +0 -259
- package/.claude/agents/templates/memory-coordinator.md +0 -187
- package/.claude/agents/templates/migration-plan.md +0 -746
- package/.claude/agents/templates/orchestrator-task.md +0 -139
- package/.claude/agents/templates/performance-analyzer.md +0 -199
- package/.claude/agents/templates/sparc-coordinator.md +0 -183
- package/.claude/agents/testing/production-validator.md +0 -395
- package/.claude/agents/testing/tdd-london-swarm.md +0 -244
- package/.claude/agents/testing/unit/tdd-london-swarm.md +0 -244
- package/.claude/agents/testing/validation/production-validator.md +0 -395
- package/.claude/agents/typescript-specialist.yaml +0 -21
- package/.claude/agents/v3/database-specialist.yaml +0 -21
- package/.claude/agents/v3/index.yaml +0 -17
- package/.claude/agents/v3/project-coordinator.yaml +0 -15
- package/.claude/agents/v3/python-specialist.yaml +0 -21
- package/.claude/agents/v3/test-architect.yaml +0 -20
- package/.claude/agents/v3/typescript-specialist.yaml +0 -21
- package/.claude/agents/v3/v3-integration-architect.md +0 -346
- package/.claude/agents/v3/v3-memory-specialist.md +0 -318
- package/.claude/agents/v3/v3-performance-engineer.md +0 -397
- package/.claude/agents/v3/v3-queen-coordinator.md +0 -98
- package/.claude/agents/v3/v3-security-architect.md +0 -174
- package/.claude/checkpoints/1767754460.json +0 -8
- package/.claude/commands/agents/README.md +0 -10
- package/.claude/commands/agents/agent-capabilities.md +0 -21
- package/.claude/commands/agents/agent-coordination.md +0 -28
- package/.claude/commands/agents/agent-spawning.md +0 -28
- package/.claude/commands/agents/agent-types.md +0 -26
- package/.claude/commands/analysis/COMMAND_COMPLIANCE_REPORT.md +0 -54
- package/.claude/commands/analysis/README.md +0 -9
- package/.claude/commands/analysis/bottleneck-detect.md +0 -162
- package/.claude/commands/analysis/performance-bottlenecks.md +0 -59
- package/.claude/commands/analysis/performance-report.md +0 -25
- package/.claude/commands/analysis/token-efficiency.md +0 -45
- package/.claude/commands/analysis/token-usage.md +0 -25
- package/.claude/commands/automation/README.md +0 -9
- package/.claude/commands/automation/auto-agent.md +0 -122
- package/.claude/commands/automation/self-healing.md +0 -106
- package/.claude/commands/automation/session-memory.md +0 -90
- package/.claude/commands/automation/smart-agents.md +0 -73
- package/.claude/commands/automation/smart-spawn.md +0 -25
- package/.claude/commands/automation/workflow-select.md +0 -25
- package/.claude/commands/claude-flow-help.md +0 -103
- package/.claude/commands/claude-flow-memory.md +0 -107
- package/.claude/commands/claude-flow-swarm.md +0 -205
- package/.claude/commands/coordination/README.md +0 -9
- package/.claude/commands/coordination/agent-spawn.md +0 -25
- package/.claude/commands/coordination/init.md +0 -44
- package/.claude/commands/coordination/orchestrate.md +0 -43
- package/.claude/commands/coordination/spawn.md +0 -45
- package/.claude/commands/coordination/swarm-init.md +0 -85
- package/.claude/commands/coordination/task-orchestrate.md +0 -25
- package/.claude/commands/flow-nexus/app-store.md +0 -124
- package/.claude/commands/flow-nexus/challenges.md +0 -120
- package/.claude/commands/flow-nexus/login-registration.md +0 -65
- package/.claude/commands/flow-nexus/neural-network.md +0 -134
- package/.claude/commands/flow-nexus/payments.md +0 -116
- package/.claude/commands/flow-nexus/sandbox.md +0 -83
- package/.claude/commands/flow-nexus/swarm.md +0 -87
- package/.claude/commands/flow-nexus/user-tools.md +0 -152
- package/.claude/commands/flow-nexus/workflow.md +0 -115
- package/.claude/commands/github/README.md +0 -11
- package/.claude/commands/github/code-review-swarm.md +0 -514
- package/.claude/commands/github/code-review.md +0 -25
- package/.claude/commands/github/github-modes.md +0 -147
- package/.claude/commands/github/github-swarm.md +0 -121
- package/.claude/commands/github/issue-tracker.md +0 -292
- package/.claude/commands/github/issue-triage.md +0 -25
- package/.claude/commands/github/multi-repo-swarm.md +0 -519
- package/.claude/commands/github/pr-enhance.md +0 -26
- package/.claude/commands/github/pr-manager.md +0 -170
- package/.claude/commands/github/project-board-sync.md +0 -471
- package/.claude/commands/github/release-manager.md +0 -338
- package/.claude/commands/github/release-swarm.md +0 -544
- package/.claude/commands/github/repo-analyze.md +0 -25
- package/.claude/commands/github/repo-architect.md +0 -367
- package/.claude/commands/github/swarm-issue.md +0 -482
- package/.claude/commands/github/swarm-pr.md +0 -285
- package/.claude/commands/github/sync-coordinator.md +0 -301
- package/.claude/commands/github/workflow-automation.md +0 -442
- package/.claude/commands/hive-mind/README.md +0 -17
- package/.claude/commands/hive-mind/hive-mind-consensus.md +0 -8
- package/.claude/commands/hive-mind/hive-mind-init.md +0 -18
- package/.claude/commands/hive-mind/hive-mind-memory.md +0 -8
- package/.claude/commands/hive-mind/hive-mind-metrics.md +0 -8
- package/.claude/commands/hive-mind/hive-mind-resume.md +0 -8
- package/.claude/commands/hive-mind/hive-mind-sessions.md +0 -8
- package/.claude/commands/hive-mind/hive-mind-spawn.md +0 -21
- package/.claude/commands/hive-mind/hive-mind-status.md +0 -8
- package/.claude/commands/hive-mind/hive-mind-stop.md +0 -8
- package/.claude/commands/hive-mind/hive-mind-wizard.md +0 -8
- package/.claude/commands/hive-mind/hive-mind.md +0 -27
- package/.claude/commands/hooks/README.md +0 -11
- package/.claude/commands/hooks/overview.md +0 -58
- package/.claude/commands/hooks/post-edit.md +0 -117
- package/.claude/commands/hooks/post-task.md +0 -112
- package/.claude/commands/hooks/pre-edit.md +0 -113
- package/.claude/commands/hooks/pre-task.md +0 -111
- package/.claude/commands/hooks/session-end.md +0 -118
- package/.claude/commands/hooks/setup.md +0 -103
- package/.claude/commands/memory/README.md +0 -9
- package/.claude/commands/memory/memory-persist.md +0 -25
- package/.claude/commands/memory/memory-search.md +0 -25
- package/.claude/commands/memory/memory-usage.md +0 -25
- package/.claude/commands/memory/neural.md +0 -47
- package/.claude/commands/monitoring/README.md +0 -9
- package/.claude/commands/monitoring/agent-metrics.md +0 -25
- package/.claude/commands/monitoring/agents.md +0 -44
- package/.claude/commands/monitoring/real-time-view.md +0 -25
- package/.claude/commands/monitoring/status.md +0 -46
- package/.claude/commands/monitoring/swarm-monitor.md +0 -25
- package/.claude/commands/optimization/README.md +0 -9
- package/.claude/commands/optimization/auto-topology.md +0 -62
- package/.claude/commands/optimization/cache-manage.md +0 -25
- package/.claude/commands/optimization/parallel-execute.md +0 -25
- package/.claude/commands/optimization/parallel-execution.md +0 -50
- package/.claude/commands/optimization/topology-optimize.md +0 -25
- package/.claude/commands/pair/README.md +0 -261
- package/.claude/commands/pair/commands.md +0 -546
- package/.claude/commands/pair/config.md +0 -510
- package/.claude/commands/pair/examples.md +0 -512
- package/.claude/commands/pair/modes.md +0 -348
- package/.claude/commands/pair/session.md +0 -407
- package/.claude/commands/pair/start.md +0 -209
- package/.claude/commands/sparc/analyzer.md +0 -52
- package/.claude/commands/sparc/architect.md +0 -53
- package/.claude/commands/sparc/ask.md +0 -97
- package/.claude/commands/sparc/batch-executor.md +0 -54
- package/.claude/commands/sparc/code.md +0 -89
- package/.claude/commands/sparc/coder.md +0 -54
- package/.claude/commands/sparc/debug.md +0 -83
- package/.claude/commands/sparc/debugger.md +0 -54
- package/.claude/commands/sparc/designer.md +0 -53
- package/.claude/commands/sparc/devops.md +0 -109
- package/.claude/commands/sparc/docs-writer.md +0 -80
- package/.claude/commands/sparc/documenter.md +0 -54
- package/.claude/commands/sparc/innovator.md +0 -54
- package/.claude/commands/sparc/integration.md +0 -83
- package/.claude/commands/sparc/mcp.md +0 -117
- package/.claude/commands/sparc/memory-manager.md +0 -54
- package/.claude/commands/sparc/optimizer.md +0 -54
- package/.claude/commands/sparc/orchestrator.md +0 -132
- package/.claude/commands/sparc/post-deployment-monitoring-mode.md +0 -83
- package/.claude/commands/sparc/refinement-optimization-mode.md +0 -83
- package/.claude/commands/sparc/researcher.md +0 -54
- package/.claude/commands/sparc/reviewer.md +0 -54
- package/.claude/commands/sparc/security-review.md +0 -80
- package/.claude/commands/sparc/sparc-modes.md +0 -174
- package/.claude/commands/sparc/sparc.md +0 -111
- package/.claude/commands/sparc/spec-pseudocode.md +0 -80
- package/.claude/commands/sparc/supabase-admin.md +0 -348
- package/.claude/commands/sparc/swarm-coordinator.md +0 -54
- package/.claude/commands/sparc/tdd.md +0 -54
- package/.claude/commands/sparc/tester.md +0 -54
- package/.claude/commands/sparc/tutorial.md +0 -79
- package/.claude/commands/sparc/workflow-manager.md +0 -54
- package/.claude/commands/sparc.md +0 -166
- package/.claude/commands/stream-chain/pipeline.md +0 -121
- package/.claude/commands/stream-chain/run.md +0 -70
- package/.claude/commands/swarm/README.md +0 -15
- package/.claude/commands/swarm/analysis.md +0 -95
- package/.claude/commands/swarm/development.md +0 -96
- package/.claude/commands/swarm/examples.md +0 -168
- package/.claude/commands/swarm/maintenance.md +0 -102
- package/.claude/commands/swarm/optimization.md +0 -117
- package/.claude/commands/swarm/research.md +0 -136
- package/.claude/commands/swarm/swarm-analysis.md +0 -8
- package/.claude/commands/swarm/swarm-background.md +0 -8
- package/.claude/commands/swarm/swarm-init.md +0 -19
- package/.claude/commands/swarm/swarm-modes.md +0 -8
- package/.claude/commands/swarm/swarm-monitor.md +0 -8
- package/.claude/commands/swarm/swarm-spawn.md +0 -19
- package/.claude/commands/swarm/swarm-status.md +0 -8
- package/.claude/commands/swarm/swarm-strategies.md +0 -8
- package/.claude/commands/swarm/swarm.md +0 -27
- package/.claude/commands/swarm/testing.md +0 -131
- package/.claude/commands/training/README.md +0 -9
- package/.claude/commands/training/model-update.md +0 -25
- package/.claude/commands/training/neural-patterns.md +0 -74
- package/.claude/commands/training/neural-train.md +0 -25
- package/.claude/commands/training/pattern-learn.md +0 -25
- package/.claude/commands/training/specialization.md +0 -63
- package/.claude/commands/truth/start.md +0 -143
- package/.claude/commands/verify/check.md +0 -50
- package/.claude/commands/verify/start.md +0 -128
- package/.claude/commands/workflows/README.md +0 -9
- package/.claude/commands/workflows/development.md +0 -78
- package/.claude/commands/workflows/research.md +0 -63
- package/.claude/commands/workflows/workflow-create.md +0 -25
- package/.claude/commands/workflows/workflow-execute.md +0 -25
- package/.claude/commands/workflows/workflow-export.md +0 -25
- package/.claude/config/v3-dependency-optimization.json +0 -266
- package/.claude/config/v3-performance-targets.json +0 -251
- package/.claude/helpers/README.md +0 -97
- package/.claude/helpers/adr-compliance.sh +0 -186
- package/.claude/helpers/auto-commit.sh +0 -178
- package/.claude/helpers/checkpoint-manager.sh +0 -251
- package/.claude/helpers/daemon-manager.sh +0 -252
- package/.claude/helpers/ddd-tracker.sh +0 -144
- package/.claude/helpers/github-safe.js +0 -106
- package/.claude/helpers/github-setup.sh +0 -28
- package/.claude/helpers/guidance-hook.sh +0 -13
- package/.claude/helpers/guidance-hooks.sh +0 -102
- package/.claude/helpers/health-monitor.sh +0 -108
- package/.claude/helpers/learning-hooks.sh +0 -329
- package/.claude/helpers/learning-optimizer.sh +0 -127
- package/.claude/helpers/learning-service.mjs +0 -1097
- package/.claude/helpers/metrics-db.mjs +0 -474
- package/.claude/helpers/pattern-consolidator.sh +0 -86
- package/.claude/helpers/perf-worker.sh +0 -160
- package/.claude/helpers/quick-start.sh +0 -19
- package/.claude/helpers/security-scanner.sh +0 -127
- package/.claude/helpers/setup-mcp.sh +0 -18
- package/.claude/helpers/standard-checkpoint-hooks.sh +0 -189
- package/.claude/helpers/swarm-comms.sh +0 -353
- package/.claude/helpers/swarm-hooks.sh +0 -761
- package/.claude/helpers/swarm-monitor.sh +0 -211
- package/.claude/helpers/sync-v3-metrics.sh +0 -245
- package/.claude/helpers/update-v3-progress.sh +0 -166
- package/.claude/helpers/v3-quick-status.sh +0 -58
- package/.claude/helpers/v3.sh +0 -111
- package/.claude/helpers/validate-v3-config.sh +0 -216
- package/.claude/helpers/worker-manager.sh +0 -170
- package/.claude/mcp.json +0 -13
- package/.claude/settings.json +0 -526
- package/.claude/settings.local.json +0 -10
- package/.claude/skills/.claude-flow/metrics/agent-metrics.json +0 -1
- package/.claude/skills/.claude-flow/metrics/performance.json +0 -87
- package/.claude/skills/.claude-flow/metrics/task-metrics.json +0 -10
- package/.claude/skills/agentdb-advanced/SKILL.md +0 -550
- package/.claude/skills/agentdb-learning/SKILL.md +0 -545
- package/.claude/skills/agentdb-memory-patterns/SKILL.md +0 -339
- package/.claude/skills/agentdb-optimization/SKILL.md +0 -509
- package/.claude/skills/agentdb-vector-search/SKILL.md +0 -339
- package/.claude/skills/agentic-jujutsu/SKILL.md +0 -645
- package/.claude/skills/flow-nexus-neural/SKILL.md +0 -738
- package/.claude/skills/flow-nexus-platform/SKILL.md +0 -1157
- package/.claude/skills/flow-nexus-swarm/SKILL.md +0 -610
- package/.claude/skills/github-code-review/SKILL.md +0 -1140
- package/.claude/skills/github-multi-repo/SKILL.md +0 -874
- package/.claude/skills/github-project-management/SKILL.md +0 -1277
- package/.claude/skills/github-release-management/SKILL.md +0 -1081
- package/.claude/skills/github-workflow-automation/SKILL.md +0 -1065
- package/.claude/skills/hive-mind-advanced/SKILL.md +0 -712
- package/.claude/skills/hooks-automation/SKILL.md +0 -1201
- package/.claude/skills/pair-programming/SKILL.md +0 -1202
- package/.claude/skills/performance-analysis/SKILL.md +0 -563
- package/.claude/skills/reasoningbank-agentdb/SKILL.md +0 -446
- package/.claude/skills/reasoningbank-intelligence/SKILL.md +0 -201
- package/.claude/skills/skill-builder/.claude-flow/metrics/agent-metrics.json +0 -1
- package/.claude/skills/skill-builder/.claude-flow/metrics/performance.json +0 -87
- package/.claude/skills/skill-builder/.claude-flow/metrics/task-metrics.json +0 -10
- package/.claude/skills/skill-builder/SKILL.md +0 -910
- package/.claude/skills/sparc-methodology/SKILL.md +0 -1115
- package/.claude/skills/stream-chain/SKILL.md +0 -563
- package/.claude/skills/swarm-advanced/SKILL.md +0 -973
- package/.claude/skills/swarm-orchestration/SKILL.md +0 -179
- package/.claude/skills/v3-cli-modernization/SKILL.md +0 -872
- package/.claude/skills/v3-core-implementation/SKILL.md +0 -797
- package/.claude/skills/v3-ddd-architecture/SKILL.md +0 -442
- package/.claude/skills/v3-integration-deep/SKILL.md +0 -241
- package/.claude/skills/v3-mcp-optimization/SKILL.md +0 -777
- package/.claude/skills/v3-memory-unification/SKILL.md +0 -174
- package/.claude/skills/v3-performance-optimization/SKILL.md +0 -390
- package/.claude/skills/v3-security-overhaul/SKILL.md +0 -82
- package/.claude/skills/v3-swarm-coordination/SKILL.md +0 -340
- package/.claude/skills/verification-quality/SKILL.md +0 -649
- package/.claude/skills/worker-benchmarks/skill.md +0 -135
- package/.claude/skills/worker-integration/skill.md +0 -154
- package/.claude/statusline-command.sh +0 -176
- package/.claude/statusline.mjs +0 -109
- package/.claude/statusline.sh +0 -375
- package/.claude-plugin/README.md +0 -720
- package/.claude-plugin/docs/INSTALLATION.md +0 -261
- package/.claude-plugin/docs/PLUGIN_SUMMARY.md +0 -361
- package/.claude-plugin/docs/QUICKSTART.md +0 -361
- package/.claude-plugin/docs/STRUCTURE.md +0 -128
- package/.claude-plugin/hooks/hooks.json +0 -74
- package/.claude-plugin/marketplace.json +0 -96
- package/.claude-plugin/plugin.json +0 -71
- package/.claude-plugin/scripts/install.sh +0 -234
- package/.claude-plugin/scripts/uninstall.sh +0 -36
- package/.claude-plugin/scripts/verify.sh +0 -108
- package/v3/@claude-flow/cli/README.md +0 -1186
- package/v3/@claude-flow/cli/dist/src/commands/daemon.js.map +0 -1
- package/v3/@claude-flow/cli/dist/src/index.js.map +0 -1
- package/v3/@claude-flow/cli/dist/src/output.d.ts.map +0 -1
- package/v3/@claude-flow/cli/dist/src/output.js.map +0 -1
- package/v3/@claude-flow/cli/dist/tsconfig.tsbuildinfo +0 -1
- package/v3/@claude-flow/cli/package.json +0 -29
- package/v3/@claude-flow/shared/README.md +0 -323
- package/v3/@claude-flow/shared/dist/core/config/defaults.d.ts +0 -41
- package/v3/@claude-flow/shared/dist/core/config/defaults.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/core/config/defaults.js +0 -186
- package/v3/@claude-flow/shared/dist/core/config/defaults.js.map +0 -1
- package/v3/@claude-flow/shared/dist/core/config/index.d.ts +0 -8
- package/v3/@claude-flow/shared/dist/core/config/index.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/core/config/index.js +0 -12
- package/v3/@claude-flow/shared/dist/core/config/index.js.map +0 -1
- package/v3/@claude-flow/shared/dist/core/config/loader.d.ts +0 -45
- package/v3/@claude-flow/shared/dist/core/config/loader.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/core/config/loader.js +0 -222
- package/v3/@claude-flow/shared/dist/core/config/loader.js.map +0 -1
- package/v3/@claude-flow/shared/dist/core/config/schema.d.ts +0 -1134
- package/v3/@claude-flow/shared/dist/core/config/schema.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/core/config/schema.js +0 -158
- package/v3/@claude-flow/shared/dist/core/config/schema.js.map +0 -1
- package/v3/@claude-flow/shared/dist/core/config/validator.d.ts +0 -92
- package/v3/@claude-flow/shared/dist/core/config/validator.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/core/config/validator.js +0 -147
- package/v3/@claude-flow/shared/dist/core/config/validator.js.map +0 -1
- package/v3/@claude-flow/shared/dist/core/event-bus.d.ts +0 -31
- package/v3/@claude-flow/shared/dist/core/event-bus.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/core/event-bus.js +0 -197
- package/v3/@claude-flow/shared/dist/core/event-bus.js.map +0 -1
- package/v3/@claude-flow/shared/dist/core/index.d.ts +0 -15
- package/v3/@claude-flow/shared/dist/core/index.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/core/index.js +0 -19
- package/v3/@claude-flow/shared/dist/core/index.js.map +0 -1
- package/v3/@claude-flow/shared/dist/core/interfaces/agent.interface.d.ts +0 -200
- package/v3/@claude-flow/shared/dist/core/interfaces/agent.interface.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/core/interfaces/agent.interface.js +0 -6
- package/v3/@claude-flow/shared/dist/core/interfaces/agent.interface.js.map +0 -1
- package/v3/@claude-flow/shared/dist/core/interfaces/coordinator.interface.d.ts +0 -310
- package/v3/@claude-flow/shared/dist/core/interfaces/coordinator.interface.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/core/interfaces/coordinator.interface.js +0 -7
- package/v3/@claude-flow/shared/dist/core/interfaces/coordinator.interface.js.map +0 -1
- package/v3/@claude-flow/shared/dist/core/interfaces/event.interface.d.ts +0 -224
- package/v3/@claude-flow/shared/dist/core/interfaces/event.interface.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/core/interfaces/event.interface.js +0 -46
- package/v3/@claude-flow/shared/dist/core/interfaces/event.interface.js.map +0 -1
- package/v3/@claude-flow/shared/dist/core/interfaces/index.d.ts +0 -10
- package/v3/@claude-flow/shared/dist/core/interfaces/index.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/core/interfaces/index.js +0 -15
- package/v3/@claude-flow/shared/dist/core/interfaces/index.js.map +0 -1
- package/v3/@claude-flow/shared/dist/core/interfaces/memory.interface.d.ts +0 -298
- package/v3/@claude-flow/shared/dist/core/interfaces/memory.interface.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/core/interfaces/memory.interface.js +0 -7
- package/v3/@claude-flow/shared/dist/core/interfaces/memory.interface.js.map +0 -1
- package/v3/@claude-flow/shared/dist/core/interfaces/task.interface.d.ts +0 -185
- package/v3/@claude-flow/shared/dist/core/interfaces/task.interface.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/core/interfaces/task.interface.js +0 -6
- package/v3/@claude-flow/shared/dist/core/interfaces/task.interface.js.map +0 -1
- package/v3/@claude-flow/shared/dist/core/orchestrator/event-coordinator.d.ts +0 -35
- package/v3/@claude-flow/shared/dist/core/orchestrator/event-coordinator.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/core/orchestrator/event-coordinator.js +0 -101
- package/v3/@claude-flow/shared/dist/core/orchestrator/event-coordinator.js.map +0 -1
- package/v3/@claude-flow/shared/dist/core/orchestrator/health-monitor.d.ts +0 -60
- package/v3/@claude-flow/shared/dist/core/orchestrator/health-monitor.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/core/orchestrator/health-monitor.js +0 -166
- package/v3/@claude-flow/shared/dist/core/orchestrator/health-monitor.js.map +0 -1
- package/v3/@claude-flow/shared/dist/core/orchestrator/index.d.ts +0 -46
- package/v3/@claude-flow/shared/dist/core/orchestrator/index.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/core/orchestrator/index.js +0 -64
- package/v3/@claude-flow/shared/dist/core/orchestrator/index.js.map +0 -1
- package/v3/@claude-flow/shared/dist/core/orchestrator/lifecycle-manager.d.ts +0 -56
- package/v3/@claude-flow/shared/dist/core/orchestrator/lifecycle-manager.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/core/orchestrator/lifecycle-manager.js +0 -195
- package/v3/@claude-flow/shared/dist/core/orchestrator/lifecycle-manager.js.map +0 -1
- package/v3/@claude-flow/shared/dist/core/orchestrator/session-manager.d.ts +0 -83
- package/v3/@claude-flow/shared/dist/core/orchestrator/session-manager.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/core/orchestrator/session-manager.js +0 -193
- package/v3/@claude-flow/shared/dist/core/orchestrator/session-manager.js.map +0 -1
- package/v3/@claude-flow/shared/dist/core/orchestrator/task-manager.d.ts +0 -49
- package/v3/@claude-flow/shared/dist/core/orchestrator/task-manager.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/core/orchestrator/task-manager.js +0 -253
- package/v3/@claude-flow/shared/dist/core/orchestrator/task-manager.js.map +0 -1
- package/v3/@claude-flow/shared/dist/events/domain-events.d.ts +0 -282
- package/v3/@claude-flow/shared/dist/events/domain-events.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/events/domain-events.js +0 -165
- package/v3/@claude-flow/shared/dist/events/domain-events.js.map +0 -1
- package/v3/@claude-flow/shared/dist/events/event-store.d.ts +0 -126
- package/v3/@claude-flow/shared/dist/events/event-store.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/events/event-store.js +0 -416
- package/v3/@claude-flow/shared/dist/events/event-store.js.map +0 -1
- package/v3/@claude-flow/shared/dist/events/event-store.test.d.ts +0 -8
- package/v3/@claude-flow/shared/dist/events/event-store.test.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/events/event-store.test.js +0 -293
- package/v3/@claude-flow/shared/dist/events/event-store.test.js.map +0 -1
- package/v3/@claude-flow/shared/dist/events/example-usage.d.ts +0 -10
- package/v3/@claude-flow/shared/dist/events/example-usage.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/events/example-usage.js +0 -193
- package/v3/@claude-flow/shared/dist/events/example-usage.js.map +0 -1
- package/v3/@claude-flow/shared/dist/events/index.d.ts +0 -19
- package/v3/@claude-flow/shared/dist/events/index.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/events/index.js +0 -20
- package/v3/@claude-flow/shared/dist/events/index.js.map +0 -1
- package/v3/@claude-flow/shared/dist/events/projections.d.ts +0 -177
- package/v3/@claude-flow/shared/dist/events/projections.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/events/projections.js +0 -421
- package/v3/@claude-flow/shared/dist/events/projections.js.map +0 -1
- package/v3/@claude-flow/shared/dist/events/state-reconstructor.d.ts +0 -101
- package/v3/@claude-flow/shared/dist/events/state-reconstructor.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/events/state-reconstructor.js +0 -263
- package/v3/@claude-flow/shared/dist/events/state-reconstructor.js.map +0 -1
- package/v3/@claude-flow/shared/dist/events.d.ts +0 -80
- package/v3/@claude-flow/shared/dist/events.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/events.js +0 -249
- package/v3/@claude-flow/shared/dist/events.js.map +0 -1
- package/v3/@claude-flow/shared/dist/hooks/example-usage.d.ts +0 -42
- package/v3/@claude-flow/shared/dist/hooks/example-usage.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/hooks/example-usage.js +0 -351
- package/v3/@claude-flow/shared/dist/hooks/example-usage.js.map +0 -1
- package/v3/@claude-flow/shared/dist/hooks/executor.d.ts +0 -100
- package/v3/@claude-flow/shared/dist/hooks/executor.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/hooks/executor.js +0 -264
- package/v3/@claude-flow/shared/dist/hooks/executor.js.map +0 -1
- package/v3/@claude-flow/shared/dist/hooks/hooks.test.d.ts +0 -9
- package/v3/@claude-flow/shared/dist/hooks/hooks.test.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/hooks/hooks.test.js +0 -322
- package/v3/@claude-flow/shared/dist/hooks/hooks.test.js.map +0 -1
- package/v3/@claude-flow/shared/dist/hooks/index.d.ts +0 -52
- package/v3/@claude-flow/shared/dist/hooks/index.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/hooks/index.js +0 -51
- package/v3/@claude-flow/shared/dist/hooks/index.js.map +0 -1
- package/v3/@claude-flow/shared/dist/hooks/registry.d.ts +0 -133
- package/v3/@claude-flow/shared/dist/hooks/registry.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/hooks/registry.js +0 -277
- package/v3/@claude-flow/shared/dist/hooks/registry.js.map +0 -1
- package/v3/@claude-flow/shared/dist/hooks/safety/bash-safety.d.ts +0 -105
- package/v3/@claude-flow/shared/dist/hooks/safety/bash-safety.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/hooks/safety/bash-safety.js +0 -481
- package/v3/@claude-flow/shared/dist/hooks/safety/bash-safety.js.map +0 -1
- package/v3/@claude-flow/shared/dist/hooks/safety/file-organization.d.ts +0 -144
- package/v3/@claude-flow/shared/dist/hooks/safety/file-organization.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/hooks/safety/file-organization.js +0 -328
- package/v3/@claude-flow/shared/dist/hooks/safety/file-organization.js.map +0 -1
- package/v3/@claude-flow/shared/dist/hooks/safety/git-commit.d.ts +0 -158
- package/v3/@claude-flow/shared/dist/hooks/safety/git-commit.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/hooks/safety/git-commit.js +0 -450
- package/v3/@claude-flow/shared/dist/hooks/safety/git-commit.js.map +0 -1
- package/v3/@claude-flow/shared/dist/hooks/safety/index.d.ts +0 -17
- package/v3/@claude-flow/shared/dist/hooks/safety/index.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/hooks/safety/index.js +0 -17
- package/v3/@claude-flow/shared/dist/hooks/safety/index.js.map +0 -1
- package/v3/@claude-flow/shared/dist/hooks/session-hooks.d.ts +0 -234
- package/v3/@claude-flow/shared/dist/hooks/session-hooks.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/hooks/session-hooks.js +0 -334
- package/v3/@claude-flow/shared/dist/hooks/session-hooks.js.map +0 -1
- package/v3/@claude-flow/shared/dist/hooks/task-hooks.d.ts +0 -163
- package/v3/@claude-flow/shared/dist/hooks/task-hooks.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/hooks/task-hooks.js +0 -326
- package/v3/@claude-flow/shared/dist/hooks/task-hooks.js.map +0 -1
- package/v3/@claude-flow/shared/dist/hooks/types.d.ts +0 -267
- package/v3/@claude-flow/shared/dist/hooks/types.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/hooks/types.js +0 -62
- package/v3/@claude-flow/shared/dist/hooks/types.js.map +0 -1
- package/v3/@claude-flow/shared/dist/hooks/verify-exports.test.d.ts +0 -9
- package/v3/@claude-flow/shared/dist/hooks/verify-exports.test.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/hooks/verify-exports.test.js +0 -93
- package/v3/@claude-flow/shared/dist/hooks/verify-exports.test.js.map +0 -1
- package/v3/@claude-flow/shared/dist/index.d.ts +0 -19
- package/v3/@claude-flow/shared/dist/index.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/index.js +0 -46
- package/v3/@claude-flow/shared/dist/index.js.map +0 -1
- package/v3/@claude-flow/shared/dist/mcp/connection-pool.d.ts +0 -98
- package/v3/@claude-flow/shared/dist/mcp/connection-pool.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/mcp/connection-pool.js +0 -364
- package/v3/@claude-flow/shared/dist/mcp/connection-pool.js.map +0 -1
- package/v3/@claude-flow/shared/dist/mcp/index.d.ts +0 -69
- package/v3/@claude-flow/shared/dist/mcp/index.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/mcp/index.js +0 -84
- package/v3/@claude-flow/shared/dist/mcp/index.js.map +0 -1
- package/v3/@claude-flow/shared/dist/mcp/server.d.ts +0 -166
- package/v3/@claude-flow/shared/dist/mcp/server.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/mcp/server.js +0 -593
- package/v3/@claude-flow/shared/dist/mcp/server.js.map +0 -1
- package/v3/@claude-flow/shared/dist/mcp/session-manager.d.ts +0 -136
- package/v3/@claude-flow/shared/dist/mcp/session-manager.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/mcp/session-manager.js +0 -335
- package/v3/@claude-flow/shared/dist/mcp/session-manager.js.map +0 -1
- package/v3/@claude-flow/shared/dist/mcp/tool-registry.d.ts +0 -178
- package/v3/@claude-flow/shared/dist/mcp/tool-registry.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/mcp/tool-registry.js +0 -439
- package/v3/@claude-flow/shared/dist/mcp/tool-registry.js.map +0 -1
- package/v3/@claude-flow/shared/dist/mcp/transport/http.d.ts +0 -104
- package/v3/@claude-flow/shared/dist/mcp/transport/http.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/mcp/transport/http.js +0 -476
- package/v3/@claude-flow/shared/dist/mcp/transport/http.js.map +0 -1
- package/v3/@claude-flow/shared/dist/mcp/transport/index.d.ts +0 -102
- package/v3/@claude-flow/shared/dist/mcp/transport/index.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/mcp/transport/index.js +0 -238
- package/v3/@claude-flow/shared/dist/mcp/transport/index.js.map +0 -1
- package/v3/@claude-flow/shared/dist/mcp/transport/stdio.d.ts +0 -104
- package/v3/@claude-flow/shared/dist/mcp/transport/stdio.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/mcp/transport/stdio.js +0 -263
- package/v3/@claude-flow/shared/dist/mcp/transport/stdio.js.map +0 -1
- package/v3/@claude-flow/shared/dist/mcp/transport/websocket.d.ts +0 -133
- package/v3/@claude-flow/shared/dist/mcp/transport/websocket.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/mcp/transport/websocket.js +0 -396
- package/v3/@claude-flow/shared/dist/mcp/transport/websocket.js.map +0 -1
- package/v3/@claude-flow/shared/dist/mcp/types.d.ts +0 -438
- package/v3/@claude-flow/shared/dist/mcp/types.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/mcp/types.js +0 -54
- package/v3/@claude-flow/shared/dist/mcp/types.js.map +0 -1
- package/v3/@claude-flow/shared/dist/plugin-interface.d.ts +0 -544
- package/v3/@claude-flow/shared/dist/plugin-interface.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/plugin-interface.js +0 -23
- package/v3/@claude-flow/shared/dist/plugin-interface.js.map +0 -1
- package/v3/@claude-flow/shared/dist/plugin-loader.d.ts +0 -139
- package/v3/@claude-flow/shared/dist/plugin-loader.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/plugin-loader.js +0 -434
- package/v3/@claude-flow/shared/dist/plugin-loader.js.map +0 -1
- package/v3/@claude-flow/shared/dist/plugin-registry.d.ts +0 -183
- package/v3/@claude-flow/shared/dist/plugin-registry.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/plugin-registry.js +0 -457
- package/v3/@claude-flow/shared/dist/plugin-registry.js.map +0 -1
- package/v3/@claude-flow/shared/dist/plugins/index.d.ts +0 -10
- package/v3/@claude-flow/shared/dist/plugins/index.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/plugins/index.js +0 -10
- package/v3/@claude-flow/shared/dist/plugins/index.js.map +0 -1
- package/v3/@claude-flow/shared/dist/plugins/official/hive-mind-plugin.d.ts +0 -106
- package/v3/@claude-flow/shared/dist/plugins/official/hive-mind-plugin.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/plugins/official/hive-mind-plugin.js +0 -241
- package/v3/@claude-flow/shared/dist/plugins/official/hive-mind-plugin.js.map +0 -1
- package/v3/@claude-flow/shared/dist/plugins/official/index.d.ts +0 -10
- package/v3/@claude-flow/shared/dist/plugins/official/index.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/plugins/official/index.js +0 -10
- package/v3/@claude-flow/shared/dist/plugins/official/index.js.map +0 -1
- package/v3/@claude-flow/shared/dist/plugins/official/maestro-plugin.d.ts +0 -121
- package/v3/@claude-flow/shared/dist/plugins/official/maestro-plugin.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/plugins/official/maestro-plugin.js +0 -355
- package/v3/@claude-flow/shared/dist/plugins/official/maestro-plugin.js.map +0 -1
- package/v3/@claude-flow/shared/dist/plugins/types.d.ts +0 -93
- package/v3/@claude-flow/shared/dist/plugins/types.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/plugins/types.js +0 -9
- package/v3/@claude-flow/shared/dist/plugins/types.js.map +0 -1
- package/v3/@claude-flow/shared/dist/resilience/bulkhead.d.ts +0 -105
- package/v3/@claude-flow/shared/dist/resilience/bulkhead.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/resilience/bulkhead.js +0 -206
- package/v3/@claude-flow/shared/dist/resilience/bulkhead.js.map +0 -1
- package/v3/@claude-flow/shared/dist/resilience/circuit-breaker.d.ts +0 -132
- package/v3/@claude-flow/shared/dist/resilience/circuit-breaker.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/resilience/circuit-breaker.js +0 -233
- package/v3/@claude-flow/shared/dist/resilience/circuit-breaker.js.map +0 -1
- package/v3/@claude-flow/shared/dist/resilience/index.d.ts +0 -19
- package/v3/@claude-flow/shared/dist/resilience/index.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/resilience/index.js +0 -19
- package/v3/@claude-flow/shared/dist/resilience/index.js.map +0 -1
- package/v3/@claude-flow/shared/dist/resilience/rate-limiter.d.ts +0 -168
- package/v3/@claude-flow/shared/dist/resilience/rate-limiter.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/resilience/rate-limiter.js +0 -314
- package/v3/@claude-flow/shared/dist/resilience/rate-limiter.js.map +0 -1
- package/v3/@claude-flow/shared/dist/resilience/retry.d.ts +0 -91
- package/v3/@claude-flow/shared/dist/resilience/retry.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/resilience/retry.js +0 -159
- package/v3/@claude-flow/shared/dist/resilience/retry.js.map +0 -1
- package/v3/@claude-flow/shared/dist/security/index.d.ts +0 -10
- package/v3/@claude-flow/shared/dist/security/index.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/security/index.js +0 -12
- package/v3/@claude-flow/shared/dist/security/index.js.map +0 -1
- package/v3/@claude-flow/shared/dist/security/input-validation.d.ts +0 -73
- package/v3/@claude-flow/shared/dist/security/input-validation.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/security/input-validation.js +0 -201
- package/v3/@claude-flow/shared/dist/security/input-validation.js.map +0 -1
- package/v3/@claude-flow/shared/dist/security/secure-random.d.ts +0 -92
- package/v3/@claude-flow/shared/dist/security/secure-random.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/security/secure-random.js +0 -142
- package/v3/@claude-flow/shared/dist/security/secure-random.js.map +0 -1
- package/v3/@claude-flow/shared/dist/types/agent.types.d.ts +0 -137
- package/v3/@claude-flow/shared/dist/types/agent.types.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/types/agent.types.js +0 -6
- package/v3/@claude-flow/shared/dist/types/agent.types.js.map +0 -1
- package/v3/@claude-flow/shared/dist/types/index.d.ts +0 -11
- package/v3/@claude-flow/shared/dist/types/index.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/types/index.js +0 -17
- package/v3/@claude-flow/shared/dist/types/index.js.map +0 -1
- package/v3/@claude-flow/shared/dist/types/mcp.types.d.ts +0 -266
- package/v3/@claude-flow/shared/dist/types/mcp.types.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/types/mcp.types.js +0 -7
- package/v3/@claude-flow/shared/dist/types/mcp.types.js.map +0 -1
- package/v3/@claude-flow/shared/dist/types/memory.types.d.ts +0 -236
- package/v3/@claude-flow/shared/dist/types/memory.types.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/types/memory.types.js +0 -7
- package/v3/@claude-flow/shared/dist/types/memory.types.js.map +0 -1
- package/v3/@claude-flow/shared/dist/types/swarm.types.d.ts +0 -186
- package/v3/@claude-flow/shared/dist/types/swarm.types.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/types/swarm.types.js +0 -65
- package/v3/@claude-flow/shared/dist/types/swarm.types.js.map +0 -1
- package/v3/@claude-flow/shared/dist/types/task.types.d.ts +0 -178
- package/v3/@claude-flow/shared/dist/types/task.types.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/types/task.types.js +0 -32
- package/v3/@claude-flow/shared/dist/types/task.types.js.map +0 -1
- package/v3/@claude-flow/shared/dist/types.d.ts +0 -197
- package/v3/@claude-flow/shared/dist/types.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/types.js +0 -21
- package/v3/@claude-flow/shared/dist/types.js.map +0 -1
- package/v3/@claude-flow/shared/dist/utils/secure-logger.d.ts +0 -69
- package/v3/@claude-flow/shared/dist/utils/secure-logger.d.ts.map +0 -1
- package/v3/@claude-flow/shared/dist/utils/secure-logger.js +0 -208
- package/v3/@claude-flow/shared/dist/utils/secure-logger.js.map +0 -1
- package/v3/@claude-flow/shared/package.json +0 -34
- package/v3/README.md +0 -493
- /package/{v3/@claude-flow/cli/bin → bin}/cli.js +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/agent.d.ts +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/agent.d.ts.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/agent.js +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/agent.js.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/config.d.ts +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/config.d.ts.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/config.js +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/config.js.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/daemon.d.ts +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/hive-mind.d.ts +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/hive-mind.d.ts.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/hive-mind.js +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/hive-mind.js.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/hooks.d.ts +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/hooks.d.ts.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/hooks.js +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/hooks.js.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/index.d.ts +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/index.d.ts.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/index.js +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/index.js.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/init.d.ts +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/init.d.ts.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/init.js +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/init.js.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/mcp.d.ts +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/mcp.d.ts.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/mcp.js +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/mcp.js.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/memory.d.ts +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/memory.d.ts.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/memory.js +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/memory.js.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/migrate.d.ts +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/migrate.d.ts.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/migrate.js +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/migrate.js.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/process.d.ts +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/process.d.ts.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/process.js +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/process.js.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/session.d.ts +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/session.d.ts.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/session.js +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/session.js.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/start.d.ts +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/start.d.ts.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/start.js +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/start.js.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/status.d.ts +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/status.d.ts.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/status.js +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/status.js.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/swarm.d.ts +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/swarm.d.ts.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/swarm.js +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/swarm.js.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/task.d.ts +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/task.d.ts.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/task.js +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/task.js.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/workflow.d.ts +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/workflow.d.ts.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/workflow.js +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/commands/workflow.js.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/config-adapter.d.ts +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/config-adapter.d.ts.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/config-adapter.js +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/config-adapter.js.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/infrastructure/in-memory-repositories.d.ts +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/infrastructure/in-memory-repositories.d.ts.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/infrastructure/in-memory-repositories.js +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/infrastructure/in-memory-repositories.js.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/init/claudemd-generator.d.ts +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/init/claudemd-generator.d.ts.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/init/claudemd-generator.js +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/init/claudemd-generator.js.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/init/executor.d.ts +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/init/executor.d.ts.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/init/executor.js +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/init/executor.js.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/init/helpers-generator.d.ts +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/init/helpers-generator.d.ts.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/init/helpers-generator.js +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/init/helpers-generator.js.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/init/index.d.ts +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/init/index.d.ts.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/init/index.js +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/init/index.js.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/init/mcp-generator.d.ts +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/init/mcp-generator.d.ts.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/init/mcp-generator.js +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/init/mcp-generator.js.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/init/settings-generator.d.ts +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/init/settings-generator.d.ts.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/init/settings-generator.js +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/init/settings-generator.js.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/init/statusline-generator.d.ts +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/init/statusline-generator.d.ts.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/init/statusline-generator.js +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/init/statusline-generator.js.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/init/types.d.ts +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/init/types.d.ts.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/init/types.js +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/init/types.js.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-client.d.ts +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-client.d.ts.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-client.js +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-client.js.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-server.d.ts +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-server.d.ts.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-server.js +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-server.js.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/agent-tools.d.ts +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/agent-tools.d.ts.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/agent-tools.js +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/agent-tools.js.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/config-tools.d.ts +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/config-tools.d.ts.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/config-tools.js +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/config-tools.js.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/hive-mind-tools.d.ts +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/hive-mind-tools.d.ts.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/hive-mind-tools.js +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/hive-mind-tools.js.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/hooks-tools.d.ts +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/hooks-tools.d.ts.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/hooks-tools.js +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/hooks-tools.js.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/index.d.ts +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/index.d.ts.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/index.js +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/index.js.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/memory-tools.d.ts +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/memory-tools.d.ts.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/memory-tools.js +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/memory-tools.js.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/session-tools.d.ts +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/session-tools.d.ts.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/session-tools.js +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/session-tools.js.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/swarm-tools.d.ts +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/swarm-tools.d.ts.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/swarm-tools.js +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/swarm-tools.js.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/task-tools.d.ts +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/task-tools.d.ts.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/task-tools.js +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/task-tools.js.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/types.d.ts +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/types.d.ts.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/types.js +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/types.js.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/workflow-tools.d.ts +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/workflow-tools.d.ts.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/workflow-tools.js +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/workflow-tools.js.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/parser.d.ts +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/parser.d.ts.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/parser.js +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/parser.js.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/prompt.d.ts +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/prompt.d.ts.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/prompt.js +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/prompt.js.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/services/index.d.ts +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/services/index.d.ts.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/services/index.js +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/services/index.js.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/services/worker-daemon.d.ts +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/services/worker-daemon.d.ts.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/services/worker-daemon.js +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/services/worker-daemon.js.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/types.d.ts +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/types.d.ts.map +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/types.js +0 -0
- /package/{v3/@claude-flow/cli/dist → dist}/src/types.js.map +0 -0
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* V3 MCP Session Manager
|
|
3
|
-
*
|
|
4
|
-
* Manages MCP sessions with:
|
|
5
|
-
* - Session lifecycle management
|
|
6
|
-
* - Authentication integration
|
|
7
|
-
* - Session timeout handling
|
|
8
|
-
* - Concurrent session support
|
|
9
|
-
* - Session metrics and monitoring
|
|
10
|
-
*
|
|
11
|
-
* Performance Targets:
|
|
12
|
-
* - Session creation: <5ms
|
|
13
|
-
* - Session lookup: <1ms
|
|
14
|
-
* - Session cleanup: <10ms
|
|
15
|
-
*/
|
|
16
|
-
import { EventEmitter } from 'events';
|
|
17
|
-
import { MCPSession, SessionState, SessionMetrics, MCPInitializeParams, TransportType, ILogger } from './types.js';
|
|
18
|
-
/**
|
|
19
|
-
* Session configuration
|
|
20
|
-
*/
|
|
21
|
-
export interface SessionConfig {
|
|
22
|
-
maxSessions?: number;
|
|
23
|
-
sessionTimeout?: number;
|
|
24
|
-
cleanupInterval?: number;
|
|
25
|
-
enableMetrics?: boolean;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Session Manager
|
|
29
|
-
*
|
|
30
|
-
* Handles creation, tracking, and cleanup of MCP sessions
|
|
31
|
-
*/
|
|
32
|
-
export declare class SessionManager extends EventEmitter {
|
|
33
|
-
private readonly logger;
|
|
34
|
-
private readonly sessions;
|
|
35
|
-
private readonly config;
|
|
36
|
-
private cleanupTimer?;
|
|
37
|
-
private sessionCounter;
|
|
38
|
-
private totalCreated;
|
|
39
|
-
private totalClosed;
|
|
40
|
-
private totalExpired;
|
|
41
|
-
constructor(logger: ILogger, config?: SessionConfig);
|
|
42
|
-
/**
|
|
43
|
-
* Create a new session
|
|
44
|
-
*/
|
|
45
|
-
createSession(transport: TransportType): MCPSession;
|
|
46
|
-
/**
|
|
47
|
-
* Initialize a session with client information
|
|
48
|
-
*/
|
|
49
|
-
initializeSession(sessionId: string, params: MCPInitializeParams): MCPSession | undefined;
|
|
50
|
-
/**
|
|
51
|
-
* Authenticate a session
|
|
52
|
-
*/
|
|
53
|
-
authenticateSession(sessionId: string): boolean;
|
|
54
|
-
/**
|
|
55
|
-
* Get a session by ID
|
|
56
|
-
*/
|
|
57
|
-
getSession(sessionId: string): MCPSession | undefined;
|
|
58
|
-
/**
|
|
59
|
-
* Check if session exists
|
|
60
|
-
*/
|
|
61
|
-
hasSession(sessionId: string): boolean;
|
|
62
|
-
/**
|
|
63
|
-
* Get all active sessions
|
|
64
|
-
*/
|
|
65
|
-
getActiveSessions(): MCPSession[];
|
|
66
|
-
/**
|
|
67
|
-
* Update session activity timestamp
|
|
68
|
-
*/
|
|
69
|
-
updateActivity(sessionId: string): boolean;
|
|
70
|
-
/**
|
|
71
|
-
* Set session state
|
|
72
|
-
*/
|
|
73
|
-
setState(sessionId: string, state: SessionState): boolean;
|
|
74
|
-
/**
|
|
75
|
-
* Set session metadata
|
|
76
|
-
*/
|
|
77
|
-
setMetadata(sessionId: string, key: string, value: unknown): boolean;
|
|
78
|
-
/**
|
|
79
|
-
* Get session metadata
|
|
80
|
-
*/
|
|
81
|
-
getMetadata(sessionId: string, key: string): unknown;
|
|
82
|
-
/**
|
|
83
|
-
* Close a session
|
|
84
|
-
*/
|
|
85
|
-
closeSession(sessionId: string, reason?: string): boolean;
|
|
86
|
-
/**
|
|
87
|
-
* Remove a session (alias for closeSession)
|
|
88
|
-
*/
|
|
89
|
-
removeSession(sessionId: string): boolean;
|
|
90
|
-
/**
|
|
91
|
-
* Get session metrics
|
|
92
|
-
*/
|
|
93
|
-
getSessionMetrics(): SessionMetrics;
|
|
94
|
-
/**
|
|
95
|
-
* Get detailed statistics
|
|
96
|
-
*/
|
|
97
|
-
getStats(): {
|
|
98
|
-
total: number;
|
|
99
|
-
byState: Record<SessionState, number>;
|
|
100
|
-
byTransport: Record<TransportType, number>;
|
|
101
|
-
totalCreated: number;
|
|
102
|
-
totalClosed: number;
|
|
103
|
-
totalExpired: number;
|
|
104
|
-
oldestSession?: Date;
|
|
105
|
-
newestSession?: Date;
|
|
106
|
-
};
|
|
107
|
-
/**
|
|
108
|
-
* Clean up expired sessions
|
|
109
|
-
*/
|
|
110
|
-
cleanupExpiredSessions(): number;
|
|
111
|
-
/**
|
|
112
|
-
* Start cleanup timer
|
|
113
|
-
*/
|
|
114
|
-
private startCleanupTimer;
|
|
115
|
-
/**
|
|
116
|
-
* Stop cleanup timer
|
|
117
|
-
*/
|
|
118
|
-
private stopCleanupTimer;
|
|
119
|
-
/**
|
|
120
|
-
* Generate a unique session ID
|
|
121
|
-
*/
|
|
122
|
-
private generateSessionId;
|
|
123
|
-
/**
|
|
124
|
-
* Clear all sessions
|
|
125
|
-
*/
|
|
126
|
-
clearAll(): void;
|
|
127
|
-
/**
|
|
128
|
-
* Destroy the session manager
|
|
129
|
-
*/
|
|
130
|
-
destroy(): void;
|
|
131
|
-
}
|
|
132
|
-
/**
|
|
133
|
-
* Create a session manager
|
|
134
|
-
*/
|
|
135
|
-
export declare function createSessionManager(logger: ILogger, config?: SessionConfig): SessionManager;
|
|
136
|
-
//# sourceMappingURL=session-manager.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"session-manager.d.ts","sourceRoot":"","sources":["../../src/mcp/session-manager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EACL,UAAU,EACV,YAAY,EACZ,cAAc,EACd,mBAAmB,EAInB,aAAa,E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E,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO;IAepE;;OAEG;IACH,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO;IAKpD;;OAEG;IACH,YAAY,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO;IAgBzD;;OAEG;IACH,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO;IAIzC;;OAEG;IACH,iBAAiB,IAAI,cAAc;IAiBnC;;OAEG;IACH,QAAQ,IAAI;QACV,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;QACtC,WAAW,EAAE,MAAM,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;QAC3C,YAAY,EAAE,MAAM,CAAC;QACrB,WAAW,EAAE,MAAM,CAAC;QACpB,YAAY,EAAE,MAAM,CAAC;QACrB,aAAa,CAAC,EAAE,IAAI,CAAC;QACrB,aAAa,CAAC,EAAE,IAAI,CAAC;KACtB;IA4CD;;OAEG;IACH,sBAAsB,IAAI,MAAM;IA6BhC;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAMzB;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAOxB;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAIzB;;OAEG;IACH,QAAQ,IAAI,IAAI;IAOhB;;OAEG;IACH,OAAO,IAAI,IAAI;CAMhB;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,OAAO,EACf,MAAM,CAAC,EAAE,aAAa,GACrB,cAAc,CAEhB"}
|
|
@@ -1,335 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* V3 MCP Session Manager
|
|
3
|
-
*
|
|
4
|
-
* Manages MCP sessions with:
|
|
5
|
-
* - Session lifecycle management
|
|
6
|
-
* - Authentication integration
|
|
7
|
-
* - Session timeout handling
|
|
8
|
-
* - Concurrent session support
|
|
9
|
-
* - Session metrics and monitoring
|
|
10
|
-
*
|
|
11
|
-
* Performance Targets:
|
|
12
|
-
* - Session creation: <5ms
|
|
13
|
-
* - Session lookup: <1ms
|
|
14
|
-
* - Session cleanup: <10ms
|
|
15
|
-
*/
|
|
16
|
-
import { EventEmitter } from 'events';
|
|
17
|
-
/**
|
|
18
|
-
* Default session configuration
|
|
19
|
-
*/
|
|
20
|
-
const DEFAULT_SESSION_CONFIG = {
|
|
21
|
-
maxSessions: 100,
|
|
22
|
-
sessionTimeout: 30 * 60 * 1000, // 30 minutes
|
|
23
|
-
cleanupInterval: 60 * 1000, // 1 minute
|
|
24
|
-
enableMetrics: true,
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
* Session Manager
|
|
28
|
-
*
|
|
29
|
-
* Handles creation, tracking, and cleanup of MCP sessions
|
|
30
|
-
*/
|
|
31
|
-
export class SessionManager extends EventEmitter {
|
|
32
|
-
logger;
|
|
33
|
-
sessions = new Map();
|
|
34
|
-
config;
|
|
35
|
-
cleanupTimer;
|
|
36
|
-
sessionCounter = 0;
|
|
37
|
-
// Statistics
|
|
38
|
-
totalCreated = 0;
|
|
39
|
-
totalClosed = 0;
|
|
40
|
-
totalExpired = 0;
|
|
41
|
-
constructor(logger, config = {}) {
|
|
42
|
-
super();
|
|
43
|
-
this.logger = logger;
|
|
44
|
-
this.config = { ...DEFAULT_SESSION_CONFIG, ...config };
|
|
45
|
-
this.startCleanupTimer();
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Create a new session
|
|
49
|
-
*/
|
|
50
|
-
createSession(transport) {
|
|
51
|
-
// Check max sessions
|
|
52
|
-
if (this.sessions.size >= this.config.maxSessions) {
|
|
53
|
-
throw new Error(`Maximum sessions (${this.config.maxSessions}) reached`);
|
|
54
|
-
}
|
|
55
|
-
const id = this.generateSessionId();
|
|
56
|
-
const now = new Date();
|
|
57
|
-
const session = {
|
|
58
|
-
id,
|
|
59
|
-
state: 'created',
|
|
60
|
-
transport,
|
|
61
|
-
createdAt: now,
|
|
62
|
-
lastActivityAt: now,
|
|
63
|
-
isInitialized: false,
|
|
64
|
-
isAuthenticated: false,
|
|
65
|
-
};
|
|
66
|
-
this.sessions.set(id, session);
|
|
67
|
-
this.totalCreated++;
|
|
68
|
-
this.logger.debug('Session created', { id, transport });
|
|
69
|
-
this.emit('session:created', session);
|
|
70
|
-
return session;
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Initialize a session with client information
|
|
74
|
-
*/
|
|
75
|
-
initializeSession(sessionId, params) {
|
|
76
|
-
const session = this.sessions.get(sessionId);
|
|
77
|
-
if (!session) {
|
|
78
|
-
this.logger.warn('Session not found for initialization', { sessionId });
|
|
79
|
-
return undefined;
|
|
80
|
-
}
|
|
81
|
-
session.state = 'ready';
|
|
82
|
-
session.isInitialized = true;
|
|
83
|
-
session.clientInfo = params.clientInfo;
|
|
84
|
-
session.protocolVersion = params.protocolVersion;
|
|
85
|
-
session.capabilities = params.capabilities;
|
|
86
|
-
session.lastActivityAt = new Date();
|
|
87
|
-
this.logger.info('Session initialized', {
|
|
88
|
-
sessionId,
|
|
89
|
-
clientInfo: params.clientInfo,
|
|
90
|
-
protocolVersion: params.protocolVersion,
|
|
91
|
-
});
|
|
92
|
-
this.emit('session:initialized', session);
|
|
93
|
-
return session;
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* Authenticate a session
|
|
97
|
-
*/
|
|
98
|
-
authenticateSession(sessionId) {
|
|
99
|
-
const session = this.sessions.get(sessionId);
|
|
100
|
-
if (!session) {
|
|
101
|
-
return false;
|
|
102
|
-
}
|
|
103
|
-
session.isAuthenticated = true;
|
|
104
|
-
session.lastActivityAt = new Date();
|
|
105
|
-
this.logger.debug('Session authenticated', { sessionId });
|
|
106
|
-
this.emit('session:authenticated', session);
|
|
107
|
-
return true;
|
|
108
|
-
}
|
|
109
|
-
/**
|
|
110
|
-
* Get a session by ID
|
|
111
|
-
*/
|
|
112
|
-
getSession(sessionId) {
|
|
113
|
-
return this.sessions.get(sessionId);
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* Check if session exists
|
|
117
|
-
*/
|
|
118
|
-
hasSession(sessionId) {
|
|
119
|
-
return this.sessions.has(sessionId);
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* Get all active sessions
|
|
123
|
-
*/
|
|
124
|
-
getActiveSessions() {
|
|
125
|
-
return Array.from(this.sessions.values()).filter((s) => s.state === 'ready' || s.state === 'created' || s.state === 'initializing');
|
|
126
|
-
}
|
|
127
|
-
/**
|
|
128
|
-
* Update session activity timestamp
|
|
129
|
-
*/
|
|
130
|
-
updateActivity(sessionId) {
|
|
131
|
-
const session = this.sessions.get(sessionId);
|
|
132
|
-
if (!session) {
|
|
133
|
-
return false;
|
|
134
|
-
}
|
|
135
|
-
session.lastActivityAt = new Date();
|
|
136
|
-
return true;
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
* Set session state
|
|
140
|
-
*/
|
|
141
|
-
setState(sessionId, state) {
|
|
142
|
-
const session = this.sessions.get(sessionId);
|
|
143
|
-
if (!session) {
|
|
144
|
-
return false;
|
|
145
|
-
}
|
|
146
|
-
const oldState = session.state;
|
|
147
|
-
session.state = state;
|
|
148
|
-
session.lastActivityAt = new Date();
|
|
149
|
-
this.logger.debug('Session state changed', {
|
|
150
|
-
sessionId,
|
|
151
|
-
oldState,
|
|
152
|
-
newState: state,
|
|
153
|
-
});
|
|
154
|
-
this.emit('session:stateChanged', { session, oldState, newState: state });
|
|
155
|
-
return true;
|
|
156
|
-
}
|
|
157
|
-
/**
|
|
158
|
-
* Set session metadata
|
|
159
|
-
*/
|
|
160
|
-
setMetadata(sessionId, key, value) {
|
|
161
|
-
const session = this.sessions.get(sessionId);
|
|
162
|
-
if (!session) {
|
|
163
|
-
return false;
|
|
164
|
-
}
|
|
165
|
-
if (!session.metadata) {
|
|
166
|
-
session.metadata = {};
|
|
167
|
-
}
|
|
168
|
-
session.metadata[key] = value;
|
|
169
|
-
session.lastActivityAt = new Date();
|
|
170
|
-
return true;
|
|
171
|
-
}
|
|
172
|
-
/**
|
|
173
|
-
* Get session metadata
|
|
174
|
-
*/
|
|
175
|
-
getMetadata(sessionId, key) {
|
|
176
|
-
const session = this.sessions.get(sessionId);
|
|
177
|
-
return session?.metadata?.[key];
|
|
178
|
-
}
|
|
179
|
-
/**
|
|
180
|
-
* Close a session
|
|
181
|
-
*/
|
|
182
|
-
closeSession(sessionId, reason) {
|
|
183
|
-
const session = this.sessions.get(sessionId);
|
|
184
|
-
if (!session) {
|
|
185
|
-
return false;
|
|
186
|
-
}
|
|
187
|
-
session.state = 'closed';
|
|
188
|
-
this.sessions.delete(sessionId);
|
|
189
|
-
this.totalClosed++;
|
|
190
|
-
this.logger.info('Session closed', { sessionId, reason });
|
|
191
|
-
this.emit('session:closed', { session, reason });
|
|
192
|
-
return true;
|
|
193
|
-
}
|
|
194
|
-
/**
|
|
195
|
-
* Remove a session (alias for closeSession)
|
|
196
|
-
*/
|
|
197
|
-
removeSession(sessionId) {
|
|
198
|
-
return this.closeSession(sessionId);
|
|
199
|
-
}
|
|
200
|
-
/**
|
|
201
|
-
* Get session metrics
|
|
202
|
-
*/
|
|
203
|
-
getSessionMetrics() {
|
|
204
|
-
let authenticated = 0;
|
|
205
|
-
let active = 0;
|
|
206
|
-
for (const session of this.sessions.values()) {
|
|
207
|
-
if (session.isAuthenticated)
|
|
208
|
-
authenticated++;
|
|
209
|
-
if (session.state === 'ready')
|
|
210
|
-
active++;
|
|
211
|
-
}
|
|
212
|
-
return {
|
|
213
|
-
total: this.sessions.size,
|
|
214
|
-
active,
|
|
215
|
-
authenticated,
|
|
216
|
-
expired: this.totalExpired,
|
|
217
|
-
};
|
|
218
|
-
}
|
|
219
|
-
/**
|
|
220
|
-
* Get detailed statistics
|
|
221
|
-
*/
|
|
222
|
-
getStats() {
|
|
223
|
-
const byState = {
|
|
224
|
-
created: 0,
|
|
225
|
-
initializing: 0,
|
|
226
|
-
ready: 0,
|
|
227
|
-
closing: 0,
|
|
228
|
-
closed: 0,
|
|
229
|
-
error: 0,
|
|
230
|
-
};
|
|
231
|
-
const byTransport = {
|
|
232
|
-
stdio: 0,
|
|
233
|
-
http: 0,
|
|
234
|
-
websocket: 0,
|
|
235
|
-
'in-process': 0,
|
|
236
|
-
};
|
|
237
|
-
let oldest;
|
|
238
|
-
let newest;
|
|
239
|
-
for (const session of this.sessions.values()) {
|
|
240
|
-
byState[session.state] = (byState[session.state] || 0) + 1;
|
|
241
|
-
byTransport[session.transport] = (byTransport[session.transport] || 0) + 1;
|
|
242
|
-
if (!oldest || session.createdAt < oldest) {
|
|
243
|
-
oldest = session.createdAt;
|
|
244
|
-
}
|
|
245
|
-
if (!newest || session.createdAt > newest) {
|
|
246
|
-
newest = session.createdAt;
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
return {
|
|
250
|
-
total: this.sessions.size,
|
|
251
|
-
byState: byState,
|
|
252
|
-
byTransport: byTransport,
|
|
253
|
-
totalCreated: this.totalCreated,
|
|
254
|
-
totalClosed: this.totalClosed,
|
|
255
|
-
totalExpired: this.totalExpired,
|
|
256
|
-
oldestSession: oldest,
|
|
257
|
-
newestSession: newest,
|
|
258
|
-
};
|
|
259
|
-
}
|
|
260
|
-
/**
|
|
261
|
-
* Clean up expired sessions
|
|
262
|
-
*/
|
|
263
|
-
cleanupExpiredSessions() {
|
|
264
|
-
const now = Date.now();
|
|
265
|
-
const expired = [];
|
|
266
|
-
for (const [id, session] of this.sessions) {
|
|
267
|
-
const inactiveTime = now - session.lastActivityAt.getTime();
|
|
268
|
-
if (inactiveTime > this.config.sessionTimeout) {
|
|
269
|
-
expired.push(id);
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
for (const id of expired) {
|
|
273
|
-
const session = this.sessions.get(id);
|
|
274
|
-
if (session) {
|
|
275
|
-
session.state = 'closed';
|
|
276
|
-
this.sessions.delete(id);
|
|
277
|
-
this.totalExpired++;
|
|
278
|
-
this.logger.info('Session expired', { sessionId: id });
|
|
279
|
-
this.emit('session:expired', session);
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
if (expired.length > 0) {
|
|
283
|
-
this.logger.info('Cleaned up expired sessions', { count: expired.length });
|
|
284
|
-
}
|
|
285
|
-
return expired.length;
|
|
286
|
-
}
|
|
287
|
-
/**
|
|
288
|
-
* Start cleanup timer
|
|
289
|
-
*/
|
|
290
|
-
startCleanupTimer() {
|
|
291
|
-
this.cleanupTimer = setInterval(() => {
|
|
292
|
-
this.cleanupExpiredSessions();
|
|
293
|
-
}, this.config.cleanupInterval);
|
|
294
|
-
}
|
|
295
|
-
/**
|
|
296
|
-
* Stop cleanup timer
|
|
297
|
-
*/
|
|
298
|
-
stopCleanupTimer() {
|
|
299
|
-
if (this.cleanupTimer) {
|
|
300
|
-
clearInterval(this.cleanupTimer);
|
|
301
|
-
this.cleanupTimer = undefined;
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
/**
|
|
305
|
-
* Generate a unique session ID
|
|
306
|
-
*/
|
|
307
|
-
generateSessionId() {
|
|
308
|
-
return `session-${++this.sessionCounter}-${Date.now()}-${Math.random().toString(36).substring(2, 8)}`;
|
|
309
|
-
}
|
|
310
|
-
/**
|
|
311
|
-
* Clear all sessions
|
|
312
|
-
*/
|
|
313
|
-
clearAll() {
|
|
314
|
-
for (const id of this.sessions.keys()) {
|
|
315
|
-
this.closeSession(id, 'Session manager cleared');
|
|
316
|
-
}
|
|
317
|
-
this.logger.info('All sessions cleared');
|
|
318
|
-
}
|
|
319
|
-
/**
|
|
320
|
-
* Destroy the session manager
|
|
321
|
-
*/
|
|
322
|
-
destroy() {
|
|
323
|
-
this.stopCleanupTimer();
|
|
324
|
-
this.clearAll();
|
|
325
|
-
this.removeAllListeners();
|
|
326
|
-
this.logger.info('Session manager destroyed');
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
/**
|
|
330
|
-
* Create a session manager
|
|
331
|
-
*/
|
|
332
|
-
export function createSessionManager(logger, config) {
|
|
333
|
-
return new SessionManager(logger, config);
|
|
334
|
-
}
|
|
335
|
-
//# sourceMappingURL=session-manager.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"session-manager.js","sourceRoot":"","sources":["../../src/mcp/session-manager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAuBtC;;GAEG;AACH,MAAM,sBAAsB,GAA4B;IACtD,WAAW,EAAE,GAAG;IAChB,cAAc,EAAE,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,aAAa;IAC7C,eAAe,EAAE,EAAE,GAAG,IAAI,EAAE,WAAW;IACvC,aAAa,EAAE,IAAI;CACpB,CAAC;AAEF;;;;GAIG;AACH,MAAM,OAAO,cAAe,SAAQ,YAAY;IAY3B;IAXF,QAAQ,GAA4B,IAAI,GAAG,EAAE,CAAC;IAC9C,MAAM,CAA0B;IACzC,YAAY,CAAkB;IAC9B,cAAc,GAAG,CAAC,CAAC;IAE3B,aAAa;IACL,YAAY,GAAG,CAAC,CAAC;IACjB,WAAW,GAAG,CAAC,CAAC;IAChB,YAAY,GAAG,CAAC,CAAC;IAEzB,YACmB,MAAe,EAChC,SAAwB,EAAE;QAE1B,KAAK,EAAE,CAAC;QAHS,WAAM,GAAN,MAAM,CAAS;QAIhC,IAAI,CAAC,MAAM,GAAG,EAAE,GAAG,sBAAsB,EAAE,GAAG,MAAM,EAAE,CAAC;QACvD,IAAI,CAAC,iBAAiB,EAAE,CAAC;IAC3B,CAAC;IAED;;OAEG;IACH,aAAa,CAAC,SAAwB;QACpC,qBAAqB;QACrB,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC;YAClD,MAAM,IAAI,KAAK,CAAC,qBAAqB,IAAI,CAAC,MAAM,CAA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,CAAC;CACF;AAED;;GAEG;AACH,MAAM,UAAU,oBAAoB,CAClC,MAAe,EACf,MAAsB;IAEtB,OAAO,IAAI,cAAc,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC5C,CAAC"}
|
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* V3 MCP Tool Registry
|
|
3
|
-
*
|
|
4
|
-
* High-performance tool management with:
|
|
5
|
-
* - Fast O(1) lookup using Map
|
|
6
|
-
* - Category-based organization
|
|
7
|
-
* - Tool validation on registration
|
|
8
|
-
* - Dynamic registration/unregistration
|
|
9
|
-
* - Caching for frequently used tools
|
|
10
|
-
*
|
|
11
|
-
* Performance Targets:
|
|
12
|
-
* - Tool registration: <10ms
|
|
13
|
-
* - Tool lookup: <1ms
|
|
14
|
-
* - Tool validation: <5ms
|
|
15
|
-
*/
|
|
16
|
-
import { EventEmitter } from 'events';
|
|
17
|
-
import { MCPTool, JSONSchema, ToolHandler, ToolContext, ToolCallResult, ToolRegistrationOptions, ILogger } from './types.js';
|
|
18
|
-
/**
|
|
19
|
-
* Tool metadata for enhanced lookup
|
|
20
|
-
*/
|
|
21
|
-
interface ToolMetadata {
|
|
22
|
-
tool: MCPTool;
|
|
23
|
-
registeredAt: Date;
|
|
24
|
-
callCount: number;
|
|
25
|
-
lastCalled?: Date;
|
|
26
|
-
avgExecutionTime: number;
|
|
27
|
-
errorCount: number;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Tool search options
|
|
31
|
-
*/
|
|
32
|
-
interface ToolSearchOptions {
|
|
33
|
-
category?: string;
|
|
34
|
-
tags?: string[];
|
|
35
|
-
deprecated?: boolean;
|
|
36
|
-
cacheable?: boolean;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Tool Registry
|
|
40
|
-
*
|
|
41
|
-
* Manages registration, lookup, and execution of MCP tools
|
|
42
|
-
*/
|
|
43
|
-
export declare class ToolRegistry extends EventEmitter {
|
|
44
|
-
private readonly logger;
|
|
45
|
-
private readonly tools;
|
|
46
|
-
private readonly categoryIndex;
|
|
47
|
-
private readonly tagIndex;
|
|
48
|
-
private defaultContext?;
|
|
49
|
-
private totalRegistrations;
|
|
50
|
-
private totalLookups;
|
|
51
|
-
private totalExecutions;
|
|
52
|
-
constructor(logger: ILogger);
|
|
53
|
-
/**
|
|
54
|
-
* Register a tool
|
|
55
|
-
*/
|
|
56
|
-
register(tool: MCPTool, options?: ToolRegistrationOptions): boolean;
|
|
57
|
-
/**
|
|
58
|
-
* Register multiple tools at once
|
|
59
|
-
*/
|
|
60
|
-
registerBatch(tools: MCPTool[], options?: ToolRegistrationOptions): {
|
|
61
|
-
registered: number;
|
|
62
|
-
failed: string[];
|
|
63
|
-
};
|
|
64
|
-
/**
|
|
65
|
-
* Unregister a tool
|
|
66
|
-
*/
|
|
67
|
-
unregister(name: string): boolean;
|
|
68
|
-
/**
|
|
69
|
-
* Get a tool by name
|
|
70
|
-
*/
|
|
71
|
-
getTool(name: string): MCPTool | undefined;
|
|
72
|
-
/**
|
|
73
|
-
* Check if a tool exists
|
|
74
|
-
*/
|
|
75
|
-
hasTool(name: string): boolean;
|
|
76
|
-
/**
|
|
77
|
-
* Get tool count
|
|
78
|
-
*/
|
|
79
|
-
getToolCount(): number;
|
|
80
|
-
/**
|
|
81
|
-
* Get all tool names
|
|
82
|
-
*/
|
|
83
|
-
getToolNames(): string[];
|
|
84
|
-
/**
|
|
85
|
-
* List all tools with metadata
|
|
86
|
-
*/
|
|
87
|
-
listTools(): Array<{
|
|
88
|
-
name: string;
|
|
89
|
-
description: string;
|
|
90
|
-
category?: string;
|
|
91
|
-
tags?: string[];
|
|
92
|
-
deprecated?: boolean;
|
|
93
|
-
}>;
|
|
94
|
-
/**
|
|
95
|
-
* Search tools by criteria
|
|
96
|
-
*/
|
|
97
|
-
search(options: ToolSearchOptions): MCPTool[];
|
|
98
|
-
/**
|
|
99
|
-
* Get tools by category
|
|
100
|
-
*/
|
|
101
|
-
getByCategory(category: string): MCPTool[];
|
|
102
|
-
/**
|
|
103
|
-
* Get tools by tag
|
|
104
|
-
*/
|
|
105
|
-
getByTag(tag: string): MCPTool[];
|
|
106
|
-
/**
|
|
107
|
-
* Get all categories
|
|
108
|
-
*/
|
|
109
|
-
getCategories(): string[];
|
|
110
|
-
/**
|
|
111
|
-
* Get all tags
|
|
112
|
-
*/
|
|
113
|
-
getTags(): string[];
|
|
114
|
-
/**
|
|
115
|
-
* Execute a tool
|
|
116
|
-
*/
|
|
117
|
-
execute(name: string, input: Record<string, unknown>, context?: ToolContext): Promise<ToolCallResult>;
|
|
118
|
-
/**
|
|
119
|
-
* Set default execution context
|
|
120
|
-
*/
|
|
121
|
-
setDefaultContext(context: ToolContext): void;
|
|
122
|
-
/**
|
|
123
|
-
* Get tool metadata
|
|
124
|
-
*/
|
|
125
|
-
getMetadata(name: string): ToolMetadata | undefined;
|
|
126
|
-
/**
|
|
127
|
-
* Get registry statistics
|
|
128
|
-
*/
|
|
129
|
-
getStats(): {
|
|
130
|
-
totalTools: number;
|
|
131
|
-
totalCategories: number;
|
|
132
|
-
totalTags: number;
|
|
133
|
-
totalRegistrations: number;
|
|
134
|
-
totalLookups: number;
|
|
135
|
-
totalExecutions: number;
|
|
136
|
-
topTools: Array<{
|
|
137
|
-
name: string;
|
|
138
|
-
calls: number;
|
|
139
|
-
}>;
|
|
140
|
-
};
|
|
141
|
-
/**
|
|
142
|
-
* Validate a tool definition
|
|
143
|
-
*/
|
|
144
|
-
validateTool(tool: MCPTool): {
|
|
145
|
-
valid: boolean;
|
|
146
|
-
errors: string[];
|
|
147
|
-
};
|
|
148
|
-
/**
|
|
149
|
-
* Validate JSON Schema
|
|
150
|
-
*/
|
|
151
|
-
private validateSchema;
|
|
152
|
-
/**
|
|
153
|
-
* Update average execution time
|
|
154
|
-
*/
|
|
155
|
-
private updateAverageExecutionTime;
|
|
156
|
-
/**
|
|
157
|
-
* Clear all tools
|
|
158
|
-
*/
|
|
159
|
-
clear(): void;
|
|
160
|
-
}
|
|
161
|
-
/**
|
|
162
|
-
* Create a tool registry
|
|
163
|
-
*/
|
|
164
|
-
export declare function createToolRegistry(logger: ILogger): ToolRegistry;
|
|
165
|
-
/**
|
|
166
|
-
* Helper to create a tool definition
|
|
167
|
-
*/
|
|
168
|
-
export declare function defineTool<TInput = Record<string, unknown>, TOutput = unknown>(name: string, description: string, inputSchema: JSONSchema, handler: ToolHandler<TInput, TOutput>, options?: {
|
|
169
|
-
category?: string;
|
|
170
|
-
tags?: string[];
|
|
171
|
-
version?: string;
|
|
172
|
-
deprecated?: boolean;
|
|
173
|
-
cacheable?: boolean;
|
|
174
|
-
cacheTTL?: number;
|
|
175
|
-
timeout?: number;
|
|
176
|
-
}): MCPTool<TInput, TOutput>;
|
|
177
|
-
export {};
|
|
178
|
-
//# sourceMappingURL=tool-registry.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tool-registry.d.ts","sourceRoot":"","sources":["../../src/mcp/tool-registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EACL,OAAO,EACP,UAAU,EACV,WAAW,EACX,WAAW,EACX,cAAc,EACd,uBAAuB,EACvB,OAAO,EACR,MAAM,YAAY,CAAC;AAEpB;;GAEG;AACH,UAAU,YAAY;IACpB,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,IAAI,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,IAAI,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,UAAU,iBAAiB;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,E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