claude-flow 3.0.0-alpha.4 → 3.0.0-alpha.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/.claude-flow/metrics/system-metrics.json +2606 -0
- package/.claude/agents/MIGRATION_SUMMARY.md +222 -0
- package/.claude/agents/README.md +89 -0
- package/.claude/agents/analysis/analyze-code-quality.md +180 -0
- package/.claude/agents/analysis/code-analyzer.md +209 -0
- package/.claude/agents/analysis/code-review/analyze-code-quality.md +180 -0
- package/.claude/agents/architecture/system-design/arch-system-design.md +156 -0
- package/.claude/agents/base-template-generator.md +42 -0
- package/.claude/agents/consensus/README.md +253 -0
- package/.claude/agents/consensus/byzantine-coordinator.md +63 -0
- package/.claude/agents/consensus/crdt-synchronizer.md +997 -0
- package/.claude/agents/consensus/gossip-coordinator.md +63 -0
- package/.claude/agents/consensus/performance-benchmarker.md +851 -0
- package/.claude/agents/consensus/quorum-manager.md +823 -0
- package/.claude/agents/consensus/raft-manager.md +63 -0
- package/.claude/agents/consensus/security-manager.md +622 -0
- package/.claude/agents/core/coder.md +266 -0
- package/.claude/agents/core/planner.md +168 -0
- package/.claude/agents/core/researcher.md +190 -0
- package/.claude/agents/core/reviewer.md +326 -0
- package/.claude/agents/core/tester.md +319 -0
- package/.claude/agents/custom/test-long-runner.md +44 -0
- package/.claude/agents/data/ml/data-ml-model.md +193 -0
- package/.claude/agents/database-specialist.yaml +21 -0
- package/.claude/agents/development/backend/dev-backend-api.md +142 -0
- package/.claude/agents/development/dev-backend-api.md +345 -0
- package/.claude/agents/devops/ci-cd/ops-cicd-github.md +164 -0
- package/.claude/agents/documentation/api-docs/docs-api-openapi.md +174 -0
- package/.claude/agents/flow-nexus/app-store.md +88 -0
- package/.claude/agents/flow-nexus/authentication.md +69 -0
- package/.claude/agents/flow-nexus/challenges.md +81 -0
- package/.claude/agents/flow-nexus/neural-network.md +88 -0
- package/.claude/agents/flow-nexus/payments.md +83 -0
- package/.claude/agents/flow-nexus/sandbox.md +76 -0
- package/.claude/agents/flow-nexus/swarm.md +76 -0
- package/.claude/agents/flow-nexus/user-tools.md +96 -0
- package/.claude/agents/flow-nexus/workflow.md +84 -0
- package/.claude/agents/github/code-review-swarm.md +538 -0
- package/.claude/agents/github/github-modes.md +173 -0
- package/.claude/agents/github/issue-tracker.md +319 -0
- package/.claude/agents/github/multi-repo-swarm.md +553 -0
- package/.claude/agents/github/pr-manager.md +191 -0
- package/.claude/agents/github/project-board-sync.md +509 -0
- package/.claude/agents/github/release-manager.md +367 -0
- package/.claude/agents/github/release-swarm.md +583 -0
- package/.claude/agents/github/repo-architect.md +398 -0
- package/.claude/agents/github/swarm-issue.md +573 -0
- package/.claude/agents/github/swarm-pr.md +428 -0
- package/.claude/agents/github/sync-coordinator.md +452 -0
- package/.claude/agents/github/workflow-automation.md +635 -0
- package/.claude/agents/goal/agent.md +816 -0
- package/.claude/agents/goal/code-goal-planner.md +446 -0
- package/.claude/agents/goal/goal-planner.md +168 -0
- package/.claude/agents/hive-mind/collective-intelligence-coordinator.md +130 -0
- package/.claude/agents/hive-mind/queen-coordinator.md +203 -0
- package/.claude/agents/hive-mind/scout-explorer.md +242 -0
- package/.claude/agents/hive-mind/swarm-memory-manager.md +193 -0
- package/.claude/agents/hive-mind/worker-specialist.md +217 -0
- package/.claude/agents/index.yaml +17 -0
- package/.claude/agents/neural/safla-neural.md +74 -0
- package/.claude/agents/optimization/README.md +250 -0
- package/.claude/agents/optimization/benchmark-suite.md +665 -0
- package/.claude/agents/optimization/load-balancer.md +431 -0
- package/.claude/agents/optimization/performance-monitor.md +672 -0
- package/.claude/agents/optimization/resource-allocator.md +674 -0
- package/.claude/agents/optimization/topology-optimizer.md +808 -0
- package/.claude/agents/payments/agentic-payments.md +126 -0
- package/.claude/agents/project-coordinator.yaml +15 -0
- package/.claude/agents/python-specialist.yaml +21 -0
- package/.claude/agents/reasoning/agent.md +816 -0
- package/.claude/agents/reasoning/goal-planner.md +73 -0
- package/.claude/agents/security-auditor.yaml +20 -0
- package/.claude/agents/sona/sona-learning-optimizer.md +496 -0
- package/.claude/agents/sparc/architecture.md +472 -0
- package/.claude/agents/sparc/pseudocode.md +318 -0
- package/.claude/agents/sparc/refinement.md +525 -0
- package/.claude/agents/sparc/specification.md +276 -0
- package/.claude/agents/specialized/mobile/spec-mobile-react-native.md +226 -0
- package/.claude/agents/sublinear/consensus-coordinator.md +338 -0
- package/.claude/agents/sublinear/matrix-optimizer.md +185 -0
- package/.claude/agents/sublinear/pagerank-analyzer.md +299 -0
- package/.claude/agents/sublinear/performance-optimizer.md +368 -0
- package/.claude/agents/sublinear/trading-predictor.md +246 -0
- package/.claude/agents/swarm/README.md +190 -0
- package/.claude/agents/swarm/adaptive-coordinator.md +396 -0
- package/.claude/agents/swarm/hierarchical-coordinator.md +327 -0
- package/.claude/agents/swarm/mesh-coordinator.md +392 -0
- package/.claude/agents/templates/automation-smart-agent.md +205 -0
- package/.claude/agents/templates/coordinator-swarm-init.md +105 -0
- package/.claude/agents/templates/github-pr-manager.md +177 -0
- package/.claude/agents/templates/implementer-sparc-coder.md +259 -0
- package/.claude/agents/templates/memory-coordinator.md +187 -0
- package/.claude/agents/templates/migration-plan.md +746 -0
- package/.claude/agents/templates/orchestrator-task.md +139 -0
- package/.claude/agents/templates/performance-analyzer.md +199 -0
- package/.claude/agents/templates/sparc-coordinator.md +183 -0
- package/.claude/agents/testing/production-validator.md +395 -0
- package/.claude/agents/testing/tdd-london-swarm.md +244 -0
- package/.claude/agents/testing/unit/tdd-london-swarm.md +244 -0
- package/.claude/agents/testing/validation/production-validator.md +395 -0
- package/.claude/agents/typescript-specialist.yaml +21 -0
- package/.claude/agents/v3/database-specialist.yaml +21 -0
- package/.claude/agents/v3/index.yaml +17 -0
- package/.claude/agents/v3/project-coordinator.yaml +15 -0
- package/.claude/agents/v3/python-specialist.yaml +21 -0
- package/.claude/agents/v3/test-architect.yaml +20 -0
- package/.claude/agents/v3/typescript-specialist.yaml +21 -0
- package/.claude/agents/v3/v3-integration-architect.md +346 -0
- package/.claude/agents/v3/v3-memory-specialist.md +318 -0
- package/.claude/agents/v3/v3-performance-engineer.md +397 -0
- package/.claude/agents/v3/v3-queen-coordinator.md +98 -0
- package/.claude/agents/v3/v3-security-architect.md +174 -0
- package/.claude/checkpoints/1767754460.json +8 -0
- package/.claude/commands/agents/README.md +10 -0
- package/.claude/commands/agents/agent-capabilities.md +21 -0
- package/.claude/commands/agents/agent-coordination.md +28 -0
- package/.claude/commands/agents/agent-spawning.md +28 -0
- package/.claude/commands/agents/agent-types.md +26 -0
- package/.claude/commands/analysis/COMMAND_COMPLIANCE_REPORT.md +54 -0
- package/.claude/commands/analysis/README.md +9 -0
- package/.claude/commands/analysis/bottleneck-detect.md +162 -0
- package/.claude/commands/analysis/performance-bottlenecks.md +59 -0
- package/.claude/commands/analysis/performance-report.md +25 -0
- package/.claude/commands/analysis/token-efficiency.md +45 -0
- package/.claude/commands/analysis/token-usage.md +25 -0
- package/.claude/commands/automation/README.md +9 -0
- package/.claude/commands/automation/auto-agent.md +122 -0
- package/.claude/commands/automation/self-healing.md +106 -0
- package/.claude/commands/automation/session-memory.md +90 -0
- package/.claude/commands/automation/smart-agents.md +73 -0
- package/.claude/commands/automation/smart-spawn.md +25 -0
- package/.claude/commands/automation/workflow-select.md +25 -0
- package/.claude/commands/claude-flow-help.md +103 -0
- package/.claude/commands/claude-flow-memory.md +107 -0
- package/.claude/commands/claude-flow-swarm.md +205 -0
- package/.claude/commands/coordination/README.md +9 -0
- package/.claude/commands/coordination/agent-spawn.md +25 -0
- package/.claude/commands/coordination/init.md +44 -0
- package/.claude/commands/coordination/orchestrate.md +43 -0
- package/.claude/commands/coordination/spawn.md +45 -0
- package/.claude/commands/coordination/swarm-init.md +85 -0
- package/.claude/commands/coordination/task-orchestrate.md +25 -0
- package/.claude/commands/flow-nexus/app-store.md +124 -0
- package/.claude/commands/flow-nexus/challenges.md +120 -0
- package/.claude/commands/flow-nexus/login-registration.md +65 -0
- package/.claude/commands/flow-nexus/neural-network.md +134 -0
- package/.claude/commands/flow-nexus/payments.md +116 -0
- package/.claude/commands/flow-nexus/sandbox.md +83 -0
- package/.claude/commands/flow-nexus/swarm.md +87 -0
- package/.claude/commands/flow-nexus/user-tools.md +152 -0
- package/.claude/commands/flow-nexus/workflow.md +115 -0
- package/.claude/commands/github/README.md +11 -0
- package/.claude/commands/github/code-review-swarm.md +514 -0
- package/.claude/commands/github/code-review.md +25 -0
- package/.claude/commands/github/github-modes.md +147 -0
- package/.claude/commands/github/github-swarm.md +121 -0
- package/.claude/commands/github/issue-tracker.md +292 -0
- package/.claude/commands/github/issue-triage.md +25 -0
- package/.claude/commands/github/multi-repo-swarm.md +519 -0
- package/.claude/commands/github/pr-enhance.md +26 -0
- package/.claude/commands/github/pr-manager.md +170 -0
- package/.claude/commands/github/project-board-sync.md +471 -0
- package/.claude/commands/github/release-manager.md +338 -0
- package/.claude/commands/github/release-swarm.md +544 -0
- package/.claude/commands/github/repo-analyze.md +25 -0
- package/.claude/commands/github/repo-architect.md +367 -0
- package/.claude/commands/github/swarm-issue.md +482 -0
- package/.claude/commands/github/swarm-pr.md +285 -0
- package/.claude/commands/github/sync-coordinator.md +301 -0
- package/.claude/commands/github/workflow-automation.md +442 -0
- package/.claude/commands/hive-mind/README.md +17 -0
- package/.claude/commands/hive-mind/hive-mind-consensus.md +8 -0
- package/.claude/commands/hive-mind/hive-mind-init.md +18 -0
- package/.claude/commands/hive-mind/hive-mind-memory.md +8 -0
- package/.claude/commands/hive-mind/hive-mind-metrics.md +8 -0
- package/.claude/commands/hive-mind/hive-mind-resume.md +8 -0
- package/.claude/commands/hive-mind/hive-mind-sessions.md +8 -0
- package/.claude/commands/hive-mind/hive-mind-spawn.md +21 -0
- package/.claude/commands/hive-mind/hive-mind-status.md +8 -0
- package/.claude/commands/hive-mind/hive-mind-stop.md +8 -0
- package/.claude/commands/hive-mind/hive-mind-wizard.md +8 -0
- package/.claude/commands/hive-mind/hive-mind.md +27 -0
- package/.claude/commands/hooks/README.md +11 -0
- package/.claude/commands/hooks/overview.md +58 -0
- package/.claude/commands/hooks/post-edit.md +117 -0
- package/.claude/commands/hooks/post-task.md +112 -0
- package/.claude/commands/hooks/pre-edit.md +113 -0
- package/.claude/commands/hooks/pre-task.md +111 -0
- package/.claude/commands/hooks/session-end.md +118 -0
- package/.claude/commands/hooks/setup.md +103 -0
- package/.claude/commands/memory/README.md +9 -0
- package/.claude/commands/memory/memory-persist.md +25 -0
- package/.claude/commands/memory/memory-search.md +25 -0
- package/.claude/commands/memory/memory-usage.md +25 -0
- package/.claude/commands/memory/neural.md +47 -0
- package/.claude/commands/monitoring/README.md +9 -0
- package/.claude/commands/monitoring/agent-metrics.md +25 -0
- package/.claude/commands/monitoring/agents.md +44 -0
- package/.claude/commands/monitoring/real-time-view.md +25 -0
- package/.claude/commands/monitoring/status.md +46 -0
- package/.claude/commands/monitoring/swarm-monitor.md +25 -0
- package/.claude/commands/optimization/README.md +9 -0
- package/.claude/commands/optimization/auto-topology.md +62 -0
- package/.claude/commands/optimization/cache-manage.md +25 -0
- package/.claude/commands/optimization/parallel-execute.md +25 -0
- package/.claude/commands/optimization/parallel-execution.md +50 -0
- package/.claude/commands/optimization/topology-optimize.md +25 -0
- package/.claude/commands/pair/README.md +261 -0
- package/.claude/commands/pair/commands.md +546 -0
- package/.claude/commands/pair/config.md +510 -0
- package/.claude/commands/pair/examples.md +512 -0
- package/.claude/commands/pair/modes.md +348 -0
- package/.claude/commands/pair/session.md +407 -0
- package/.claude/commands/pair/start.md +209 -0
- package/.claude/commands/sparc/analyzer.md +52 -0
- package/.claude/commands/sparc/architect.md +53 -0
- package/.claude/commands/sparc/ask.md +97 -0
- package/.claude/commands/sparc/batch-executor.md +54 -0
- package/.claude/commands/sparc/code.md +89 -0
- package/.claude/commands/sparc/coder.md +54 -0
- package/.claude/commands/sparc/debug.md +83 -0
- package/.claude/commands/sparc/debugger.md +54 -0
- package/.claude/commands/sparc/designer.md +53 -0
- package/.claude/commands/sparc/devops.md +109 -0
- package/.claude/commands/sparc/docs-writer.md +80 -0
- package/.claude/commands/sparc/documenter.md +54 -0
- package/.claude/commands/sparc/innovator.md +54 -0
- package/.claude/commands/sparc/integration.md +83 -0
- package/.claude/commands/sparc/mcp.md +117 -0
- package/.claude/commands/sparc/memory-manager.md +54 -0
- package/.claude/commands/sparc/optimizer.md +54 -0
- package/.claude/commands/sparc/orchestrator.md +132 -0
- package/.claude/commands/sparc/post-deployment-monitoring-mode.md +83 -0
- package/.claude/commands/sparc/refinement-optimization-mode.md +83 -0
- package/.claude/commands/sparc/researcher.md +54 -0
- package/.claude/commands/sparc/reviewer.md +54 -0
- package/.claude/commands/sparc/security-review.md +80 -0
- package/.claude/commands/sparc/sparc-modes.md +174 -0
- package/.claude/commands/sparc/sparc.md +111 -0
- package/.claude/commands/sparc/spec-pseudocode.md +80 -0
- package/.claude/commands/sparc/supabase-admin.md +348 -0
- package/.claude/commands/sparc/swarm-coordinator.md +54 -0
- package/.claude/commands/sparc/tdd.md +54 -0
- package/.claude/commands/sparc/tester.md +54 -0
- package/.claude/commands/sparc/tutorial.md +79 -0
- package/.claude/commands/sparc/workflow-manager.md +54 -0
- package/.claude/commands/sparc.md +166 -0
- package/.claude/commands/stream-chain/pipeline.md +121 -0
- package/.claude/commands/stream-chain/run.md +70 -0
- package/.claude/commands/swarm/README.md +15 -0
- package/.claude/commands/swarm/analysis.md +95 -0
- package/.claude/commands/swarm/development.md +96 -0
- package/.claude/commands/swarm/examples.md +168 -0
- package/.claude/commands/swarm/maintenance.md +102 -0
- package/.claude/commands/swarm/optimization.md +117 -0
- package/.claude/commands/swarm/research.md +136 -0
- package/.claude/commands/swarm/swarm-analysis.md +8 -0
- package/.claude/commands/swarm/swarm-background.md +8 -0
- package/.claude/commands/swarm/swarm-init.md +19 -0
- package/.claude/commands/swarm/swarm-modes.md +8 -0
- package/.claude/commands/swarm/swarm-monitor.md +8 -0
- package/.claude/commands/swarm/swarm-spawn.md +19 -0
- package/.claude/commands/swarm/swarm-status.md +8 -0
- package/.claude/commands/swarm/swarm-strategies.md +8 -0
- package/.claude/commands/swarm/swarm.md +27 -0
- package/.claude/commands/swarm/testing.md +131 -0
- package/.claude/commands/training/README.md +9 -0
- package/.claude/commands/training/model-update.md +25 -0
- package/.claude/commands/training/neural-patterns.md +74 -0
- package/.claude/commands/training/neural-train.md +25 -0
- package/.claude/commands/training/pattern-learn.md +25 -0
- package/.claude/commands/training/specialization.md +63 -0
- package/.claude/commands/truth/start.md +143 -0
- package/.claude/commands/verify/check.md +50 -0
- package/.claude/commands/verify/start.md +128 -0
- package/.claude/commands/workflows/README.md +9 -0
- package/.claude/commands/workflows/development.md +78 -0
- package/.claude/commands/workflows/research.md +63 -0
- package/.claude/commands/workflows/workflow-create.md +25 -0
- package/.claude/commands/workflows/workflow-execute.md +25 -0
- package/.claude/commands/workflows/workflow-export.md +25 -0
- package/.claude/config/v3-dependency-optimization.json +266 -0
- package/.claude/config/v3-performance-targets.json +251 -0
- package/.claude/helpers/README.md +97 -0
- package/.claude/helpers/adr-compliance.sh +186 -0
- package/.claude/helpers/auto-commit.sh +178 -0
- package/.claude/helpers/checkpoint-manager.sh +251 -0
- package/.claude/helpers/daemon-manager.sh +252 -0
- package/.claude/helpers/ddd-tracker.sh +144 -0
- package/.claude/helpers/github-safe.js +106 -0
- package/.claude/helpers/github-setup.sh +28 -0
- package/.claude/helpers/guidance-hook.sh +13 -0
- package/.claude/helpers/guidance-hooks.sh +102 -0
- package/.claude/helpers/health-monitor.sh +108 -0
- package/.claude/helpers/learning-hooks.sh +329 -0
- package/.claude/helpers/learning-optimizer.sh +127 -0
- package/.claude/helpers/learning-service.mjs +1144 -0
- package/.claude/helpers/metrics-db.mjs +488 -0
- package/.claude/helpers/pattern-consolidator.sh +86 -0
- package/.claude/helpers/perf-worker.sh +160 -0
- package/.claude/helpers/quick-start.sh +19 -0
- package/.claude/helpers/security-scanner.sh +127 -0
- package/.claude/helpers/setup-mcp.sh +18 -0
- package/.claude/helpers/standard-checkpoint-hooks.sh +189 -0
- package/.claude/helpers/swarm-comms.sh +353 -0
- package/.claude/helpers/swarm-hooks.sh +761 -0
- package/.claude/helpers/swarm-monitor.sh +211 -0
- package/.claude/helpers/sync-v3-metrics.sh +245 -0
- package/.claude/helpers/update-v3-progress.sh +166 -0
- package/.claude/helpers/v3-quick-status.sh +58 -0
- package/.claude/helpers/v3.sh +111 -0
- package/.claude/helpers/validate-v3-config.sh +216 -0
- package/.claude/helpers/worker-manager.sh +170 -0
- package/.claude/mcp.json +13 -0
- package/.claude/settings copy.json +526 -0
- package/.claude/settings.json +526 -0
- package/.claude/settings.local.json +10 -0
- package/.claude/skills/.claude-flow/metrics/agent-metrics.json +1 -0
- package/.claude/skills/.claude-flow/metrics/performance.json +87 -0
- package/.claude/skills/.claude-flow/metrics/task-metrics.json +10 -0
- package/.claude/skills/agentdb-advanced/SKILL.md +550 -0
- package/.claude/skills/agentdb-learning/SKILL.md +545 -0
- package/.claude/skills/agentdb-memory-patterns/SKILL.md +339 -0
- package/.claude/skills/agentdb-optimization/SKILL.md +509 -0
- package/.claude/skills/agentdb-vector-search/SKILL.md +339 -0
- package/.claude/skills/agentic-jujutsu/SKILL.md +645 -0
- package/.claude/skills/flow-nexus-neural/SKILL.md +738 -0
- package/.claude/skills/flow-nexus-platform/SKILL.md +1157 -0
- package/.claude/skills/flow-nexus-swarm/SKILL.md +610 -0
- package/.claude/skills/github-code-review/SKILL.md +1140 -0
- package/.claude/skills/github-multi-repo/SKILL.md +874 -0
- package/.claude/skills/github-project-management/SKILL.md +1277 -0
- package/.claude/skills/github-release-management/SKILL.md +1081 -0
- package/.claude/skills/github-workflow-automation/SKILL.md +1065 -0
- package/.claude/skills/hive-mind-advanced/SKILL.md +712 -0
- package/.claude/skills/hooks-automation/SKILL.md +1201 -0
- package/.claude/skills/pair-programming/SKILL.md +1202 -0
- package/.claude/skills/performance-analysis/SKILL.md +563 -0
- package/.claude/skills/reasoningbank-agentdb/SKILL.md +446 -0
- package/.claude/skills/reasoningbank-intelligence/SKILL.md +201 -0
- package/.claude/skills/skill-builder/.claude-flow/metrics/agent-metrics.json +1 -0
- package/.claude/skills/skill-builder/.claude-flow/metrics/performance.json +87 -0
- package/.claude/skills/skill-builder/.claude-flow/metrics/task-metrics.json +10 -0
- package/.claude/skills/skill-builder/SKILL.md +910 -0
- package/.claude/skills/sparc-methodology/SKILL.md +1115 -0
- package/.claude/skills/stream-chain/SKILL.md +563 -0
- package/.claude/skills/swarm-advanced/SKILL.md +973 -0
- package/.claude/skills/swarm-orchestration/SKILL.md +179 -0
- package/.claude/skills/v3-cli-modernization/SKILL.md +872 -0
- package/.claude/skills/v3-core-implementation/SKILL.md +797 -0
- package/.claude/skills/v3-ddd-architecture/SKILL.md +442 -0
- package/.claude/skills/v3-integration-deep/SKILL.md +241 -0
- package/.claude/skills/v3-mcp-optimization/SKILL.md +777 -0
- package/.claude/skills/v3-memory-unification/SKILL.md +174 -0
- package/.claude/skills/v3-performance-optimization/SKILL.md +390 -0
- package/.claude/skills/v3-security-overhaul/SKILL.md +82 -0
- package/.claude/skills/v3-swarm-coordination/SKILL.md +340 -0
- package/.claude/skills/verification-quality/SKILL.md +649 -0
- package/.claude/skills/worker-benchmarks/skill.md +135 -0
- package/.claude/skills/worker-integration/skill.md +154 -0
- package/.claude/statusline-command.sh +176 -0
- package/.claude/statusline.mjs +109 -0
- package/.claude/statusline.sh +375 -0
- package/.claude-plugin/README.md +720 -0
- package/.claude-plugin/docs/INSTALLATION.md +261 -0
- package/.claude-plugin/docs/PLUGIN_SUMMARY.md +361 -0
- package/.claude-plugin/docs/QUICKSTART.md +361 -0
- package/.claude-plugin/docs/STRUCTURE.md +128 -0
- package/.claude-plugin/hooks/hooks.json +74 -0
- package/.claude-plugin/marketplace.json +96 -0
- package/.claude-plugin/plugin.json +71 -0
- package/.claude-plugin/scripts/install.sh +234 -0
- package/.claude-plugin/scripts/uninstall.sh +36 -0
- package/.claude-plugin/scripts/verify.sh +108 -0
- package/README.md +1093 -39
- package/package.json +54 -52
- package/v3/@claude-flow/cli/README.md +1608 -0
- package/v3/@claude-flow/cli/bin/cli.js +150 -0
- package/v3/@claude-flow/cli/bin/mcp-server.js +188 -0
- package/v3/@claude-flow/cli/dist/src/commands/agent.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/commands/agent.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/agent.js +819 -0
- package/v3/@claude-flow/cli/dist/src/commands/agent.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/analyze.d.ts +19 -0
- package/v3/@claude-flow/cli/dist/src/commands/analyze.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/analyze.js +1823 -0
- package/v3/@claude-flow/cli/dist/src/commands/analyze.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/claims.d.ts +10 -0
- package/v3/@claude-flow/cli/dist/src/commands/claims.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/claims.js +288 -0
- package/v3/@claude-flow/cli/dist/src/commands/claims.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/completions.d.ts +10 -0
- package/v3/@claude-flow/cli/dist/src/commands/completions.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/completions.js +539 -0
- package/v3/@claude-flow/cli/dist/src/commands/completions.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/config.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/commands/config.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/config.js +406 -0
- package/v3/@claude-flow/cli/dist/src/commands/config.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/daemon.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/commands/daemon.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/daemon.js +593 -0
- package/v3/@claude-flow/cli/dist/src/commands/daemon.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/deployment.d.ts +10 -0
- package/v3/@claude-flow/cli/dist/src/commands/deployment.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/deployment.js +289 -0
- package/v3/@claude-flow/cli/dist/src/commands/deployment.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/doctor.d.ts +10 -0
- package/v3/@claude-flow/cli/dist/src/commands/doctor.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/doctor.js +448 -0
- package/v3/@claude-flow/cli/dist/src/commands/doctor.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/embeddings.d.ts +18 -0
- package/v3/@claude-flow/cli/dist/src/commands/embeddings.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/embeddings.js +616 -0
- package/v3/@claude-flow/cli/dist/src/commands/embeddings.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/hive-mind.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/commands/hive-mind.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/hive-mind.js +844 -0
- package/v3/@claude-flow/cli/dist/src/commands/hive-mind.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/hooks.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/commands/hooks.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/hooks.js +2892 -0
- package/v3/@claude-flow/cli/dist/src/commands/hooks.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/index.d.ts +89 -0
- package/v3/@claude-flow/cli/dist/src/commands/index.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/index.js +258 -0
- package/v3/@claude-flow/cli/dist/src/commands/index.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/init.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/commands/init.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/init.js +603 -0
- package/v3/@claude-flow/cli/dist/src/commands/init.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/issues.d.ts +21 -0
- package/v3/@claude-flow/cli/dist/src/commands/issues.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/issues.js +567 -0
- package/v3/@claude-flow/cli/dist/src/commands/issues.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/mcp.d.ts +11 -0
- package/v3/@claude-flow/cli/dist/src/commands/mcp.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/mcp.js +662 -0
- package/v3/@claude-flow/cli/dist/src/commands/mcp.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/memory.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/commands/memory.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/memory.js +1196 -0
- package/v3/@claude-flow/cli/dist/src/commands/memory.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/migrate.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/commands/migrate.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/migrate.js +398 -0
- package/v3/@claude-flow/cli/dist/src/commands/migrate.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/neural.d.ts +10 -0
- package/v3/@claude-flow/cli/dist/src/commands/neural.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/neural.js +224 -0
- package/v3/@claude-flow/cli/dist/src/commands/neural.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/performance.d.ts +10 -0
- package/v3/@claude-flow/cli/dist/src/commands/performance.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/performance.js +262 -0
- package/v3/@claude-flow/cli/dist/src/commands/performance.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/plugins.d.ts +11 -0
- package/v3/@claude-flow/cli/dist/src/commands/plugins.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/plugins.js +630 -0
- package/v3/@claude-flow/cli/dist/src/commands/plugins.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/process.d.ts +10 -0
- package/v3/@claude-flow/cli/dist/src/commands/process.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/process.js +641 -0
- package/v3/@claude-flow/cli/dist/src/commands/process.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/progress.d.ts +11 -0
- package/v3/@claude-flow/cli/dist/src/commands/progress.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/progress.js +259 -0
- package/v3/@claude-flow/cli/dist/src/commands/progress.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/providers.d.ts +10 -0
- package/v3/@claude-flow/cli/dist/src/commands/providers.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/providers.js +232 -0
- package/v3/@claude-flow/cli/dist/src/commands/providers.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/route.d.ts +16 -0
- package/v3/@claude-flow/cli/dist/src/commands/route.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/route.js +813 -0
- package/v3/@claude-flow/cli/dist/src/commands/route.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/security.d.ts +10 -0
- package/v3/@claude-flow/cli/dist/src/commands/security.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/security.js +261 -0
- package/v3/@claude-flow/cli/dist/src/commands/security.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/session.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/commands/session.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/session.js +750 -0
- package/v3/@claude-flow/cli/dist/src/commands/session.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/start.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/commands/start.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/start.js +418 -0
- package/v3/@claude-flow/cli/dist/src/commands/start.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/status.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/commands/status.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/status.js +584 -0
- package/v3/@claude-flow/cli/dist/src/commands/status.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/swarm.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/commands/swarm.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/swarm.js +726 -0
- package/v3/@claude-flow/cli/dist/src/commands/swarm.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/task.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/commands/task.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/task.js +671 -0
- package/v3/@claude-flow/cli/dist/src/commands/task.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/transfer-store.d.ts +13 -0
- package/v3/@claude-flow/cli/dist/src/commands/transfer-store.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/transfer-store.js +428 -0
- package/v3/@claude-flow/cli/dist/src/commands/transfer-store.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/workflow.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/commands/workflow.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/workflow.js +617 -0
- package/v3/@claude-flow/cli/dist/src/commands/workflow.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/config-adapter.d.ts +15 -0
- package/v3/@claude-flow/cli/dist/src/config-adapter.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/config-adapter.js +185 -0
- package/v3/@claude-flow/cli/dist/src/config-adapter.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/index.d.ts +57 -0
- package/v3/@claude-flow/cli/dist/src/index.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/index.js +388 -0
- package/v3/@claude-flow/cli/dist/src/index.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/infrastructure/in-memory-repositories.d.ts +68 -0
- package/v3/@claude-flow/cli/dist/src/infrastructure/in-memory-repositories.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/infrastructure/in-memory-repositories.js +264 -0
- package/v3/@claude-flow/cli/dist/src/infrastructure/in-memory-repositories.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/init/claudemd-generator.d.ts +15 -0
- package/v3/@claude-flow/cli/dist/src/init/claudemd-generator.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/init/claudemd-generator.js +628 -0
- package/v3/@claude-flow/cli/dist/src/init/claudemd-generator.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/init/executor.d.ts +11 -0
- package/v3/@claude-flow/cli/dist/src/init/executor.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/init/executor.js +763 -0
- package/v3/@claude-flow/cli/dist/src/init/executor.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/init/helpers-generator.d.ts +42 -0
- package/v3/@claude-flow/cli/dist/src/init/helpers-generator.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/init/helpers-generator.js +613 -0
- package/v3/@claude-flow/cli/dist/src/init/helpers-generator.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/init/index.d.ts +12 -0
- package/v3/@claude-flow/cli/dist/src/init/index.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/init/index.js +15 -0
- package/v3/@claude-flow/cli/dist/src/init/index.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/init/mcp-generator.d.ts +27 -0
- package/v3/@claude-flow/cli/dist/src/init/mcp-generator.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/init/mcp-generator.js +100 -0
- package/v3/@claude-flow/cli/dist/src/init/mcp-generator.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/init/settings-generator.d.ts +14 -0
- package/v3/@claude-flow/cli/dist/src/init/settings-generator.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/init/settings-generator.js +311 -0
- package/v3/@claude-flow/cli/dist/src/init/settings-generator.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/init/statusline-generator.d.ts +20 -0
- package/v3/@claude-flow/cli/dist/src/init/statusline-generator.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/init/statusline-generator.js +369 -0
- package/v3/@claude-flow/cli/dist/src/init/statusline-generator.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/init/types.d.ts +246 -0
- package/v3/@claude-flow/cli/dist/src/init/types.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/init/types.js +216 -0
- package/v3/@claude-flow/cli/dist/src/init/types.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-client.d.ts +92 -0
- package/v3/@claude-flow/cli/dist/src/mcp-client.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-client.js +207 -0
- package/v3/@claude-flow/cli/dist/src/mcp-client.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-server.d.ts +158 -0
- package/v3/@claude-flow/cli/dist/src/mcp-server.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-server.js +584 -0
- package/v3/@claude-flow/cli/dist/src/mcp-server.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/agent-tools.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/agent-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/agent-tools.js +426 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/agent-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/analyze-tools.d.ts +38 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/analyze-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/analyze-tools.js +317 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/analyze-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/config-tools.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/config-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/config-tools.js +333 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/config-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/hive-mind-tools.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/hive-mind-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/hive-mind-tools.js +447 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/hive-mind-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/hooks-tools.d.ts +41 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/hooks-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/hooks-tools.js +1836 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/hooks-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/index.d.ts +20 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/index.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/index.js +19 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/index.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/memory-tools.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/memory-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/memory-tools.js +235 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/memory-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/progress-tools.d.ts +14 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/progress-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/progress-tools.js +343 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/progress-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/session-tools.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/session-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/session-tools.js +315 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/session-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/swarm-tools.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/swarm-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/swarm-tools.js +102 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/swarm-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/task-tools.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/task-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/task-tools.js +302 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/task-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/transfer-tools.d.ts +14 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/transfer-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/transfer-tools.js +396 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/transfer-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/types.d.ts +31 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/types.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/types.js +7 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/types.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/workflow-tools.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/workflow-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/workflow-tools.js +481 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/workflow-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/output.d.ts +133 -0
- package/v3/@claude-flow/cli/dist/src/output.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/output.js +513 -0
- package/v3/@claude-flow/cli/dist/src/output.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/parser.d.ts +41 -0
- package/v3/@claude-flow/cli/dist/src/parser.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/parser.js +353 -0
- package/v3/@claude-flow/cli/dist/src/parser.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/plugins/store/discovery.d.ts +73 -0
- package/v3/@claude-flow/cli/dist/src/plugins/store/discovery.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/plugins/store/discovery.js +568 -0
- package/v3/@claude-flow/cli/dist/src/plugins/store/discovery.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/plugins/store/index.d.ts +76 -0
- package/v3/@claude-flow/cli/dist/src/plugins/store/index.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/plugins/store/index.js +141 -0
- package/v3/@claude-flow/cli/dist/src/plugins/store/index.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/plugins/store/search.d.ts +46 -0
- package/v3/@claude-flow/cli/dist/src/plugins/store/search.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/plugins/store/search.js +230 -0
- package/v3/@claude-flow/cli/dist/src/plugins/store/search.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/plugins/store/types.d.ts +274 -0
- package/v3/@claude-flow/cli/dist/src/plugins/store/types.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/plugins/store/types.js +7 -0
- package/v3/@claude-flow/cli/dist/src/plugins/store/types.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/plugins/tests/demo-plugin-store.d.ts +7 -0
- package/v3/@claude-flow/cli/dist/src/plugins/tests/demo-plugin-store.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/plugins/tests/demo-plugin-store.js +126 -0
- package/v3/@claude-flow/cli/dist/src/plugins/tests/demo-plugin-store.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/plugins/tests/standalone-test.d.ts +12 -0
- package/v3/@claude-flow/cli/dist/src/plugins/tests/standalone-test.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/plugins/tests/standalone-test.js +188 -0
- package/v3/@claude-flow/cli/dist/src/plugins/tests/standalone-test.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/plugins/tests/test-plugin-store.d.ts +7 -0
- package/v3/@claude-flow/cli/dist/src/plugins/tests/test-plugin-store.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/plugins/tests/test-plugin-store.js +206 -0
- package/v3/@claude-flow/cli/dist/src/plugins/tests/test-plugin-store.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/prompt.d.ts +44 -0
- package/v3/@claude-flow/cli/dist/src/prompt.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/prompt.js +501 -0
- package/v3/@claude-flow/cli/dist/src/prompt.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/ast-analyzer.d.ts +67 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/ast-analyzer.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/ast-analyzer.js +277 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/ast-analyzer.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/coverage-router.d.ts +160 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/coverage-router.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/coverage-router.js +529 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/coverage-router.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/coverage-tools.d.ts +33 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/coverage-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/coverage-tools.js +157 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/coverage-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/diff-classifier.d.ts +175 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/diff-classifier.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/diff-classifier.js +698 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/diff-classifier.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/graph-analyzer.d.ts +187 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/graph-analyzer.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/graph-analyzer.js +929 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/graph-analyzer.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/index.d.ts +27 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/index.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/index.js +53 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/index.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/q-learning-router.d.ts +211 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/q-learning-router.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/q-learning-router.js +681 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/q-learning-router.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/vector-db.d.ts +69 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/vector-db.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/vector-db.js +243 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/vector-db.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/services/claim-service.d.ts +204 -0
- package/v3/@claude-flow/cli/dist/src/services/claim-service.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/services/claim-service.js +818 -0
- package/v3/@claude-flow/cli/dist/src/services/claim-service.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/services/container-worker-pool.d.ts +197 -0
- package/v3/@claude-flow/cli/dist/src/services/container-worker-pool.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/services/container-worker-pool.js +581 -0
- package/v3/@claude-flow/cli/dist/src/services/container-worker-pool.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/services/headless-worker-executor.d.ts +304 -0
- package/v3/@claude-flow/cli/dist/src/services/headless-worker-executor.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/services/headless-worker-executor.js +997 -0
- package/v3/@claude-flow/cli/dist/src/services/headless-worker-executor.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/services/index.d.ts +13 -0
- package/v3/@claude-flow/cli/dist/src/services/index.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/services/index.js +11 -0
- package/v3/@claude-flow/cli/dist/src/services/index.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/services/worker-daemon.d.ts +203 -0
- package/v3/@claude-flow/cli/dist/src/services/worker-daemon.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/services/worker-daemon.js +745 -0
- package/v3/@claude-flow/cli/dist/src/services/worker-daemon.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/services/worker-queue.d.ts +194 -0
- package/v3/@claude-flow/cli/dist/src/services/worker-queue.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/services/worker-queue.js +511 -0
- package/v3/@claude-flow/cli/dist/src/services/worker-queue.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/suggest.d.ts +53 -0
- package/v3/@claude-flow/cli/dist/src/suggest.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/suggest.js +200 -0
- package/v3/@claude-flow/cli/dist/src/suggest.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/anonymization/index.d.ts +25 -0
- package/v3/@claude-flow/cli/dist/src/transfer/anonymization/index.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/anonymization/index.js +175 -0
- package/v3/@claude-flow/cli/dist/src/transfer/anonymization/index.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/deploy-seraphine.d.ts +13 -0
- package/v3/@claude-flow/cli/dist/src/transfer/deploy-seraphine.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/deploy-seraphine.js +205 -0
- package/v3/@claude-flow/cli/dist/src/transfer/deploy-seraphine.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/export.d.ts +25 -0
- package/v3/@claude-flow/cli/dist/src/transfer/export.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/export.js +113 -0
- package/v3/@claude-flow/cli/dist/src/transfer/export.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/index.d.ts +12 -0
- package/v3/@claude-flow/cli/dist/src/transfer/index.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/index.js +31 -0
- package/v3/@claude-flow/cli/dist/src/transfer/index.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/ipfs/client.d.ts +31 -0
- package/v3/@claude-flow/cli/dist/src/transfer/ipfs/client.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/ipfs/client.js +74 -0
- package/v3/@claude-flow/cli/dist/src/transfer/ipfs/client.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/ipfs/upload.d.ts +95 -0
- package/v3/@claude-flow/cli/dist/src/transfer/ipfs/upload.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/ipfs/upload.js +410 -0
- package/v3/@claude-flow/cli/dist/src/transfer/ipfs/upload.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/models/seraphine.d.ts +72 -0
- package/v3/@claude-flow/cli/dist/src/transfer/models/seraphine.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/models/seraphine.js +373 -0
- package/v3/@claude-flow/cli/dist/src/transfer/models/seraphine.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/serialization/cfp.d.ts +49 -0
- package/v3/@claude-flow/cli/dist/src/transfer/serialization/cfp.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/serialization/cfp.js +180 -0
- package/v3/@claude-flow/cli/dist/src/transfer/serialization/cfp.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/discovery.d.ts +84 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/discovery.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/discovery.js +275 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/discovery.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/download.d.ts +70 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/download.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/download.js +295 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/download.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/index.d.ts +84 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/index.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/index.js +153 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/index.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/publish.d.ts +76 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/publish.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/publish.js +262 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/publish.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/registry.d.ts +58 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/registry.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/registry.js +285 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/registry.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/search.d.ts +54 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/search.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/search.js +232 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/search.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/tests/standalone-test.d.ts +12 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/tests/standalone-test.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/tests/standalone-test.js +190 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/tests/standalone-test.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/types.d.ts +193 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/types.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/types.js +6 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/types.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/test-seraphine.d.ts +6 -0
- package/v3/@claude-flow/cli/dist/src/transfer/test-seraphine.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/test-seraphine.js +105 -0
- package/v3/@claude-flow/cli/dist/src/transfer/test-seraphine.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/tests/test-store.d.ts +7 -0
- package/v3/@claude-flow/cli/dist/src/transfer/tests/test-store.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/tests/test-store.js +214 -0
- package/v3/@claude-flow/cli/dist/src/transfer/tests/test-store.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/types.d.ts +245 -0
- package/v3/@claude-flow/cli/dist/src/transfer/types.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/types.js +6 -0
- package/v3/@claude-flow/cli/dist/src/transfer/types.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/types.d.ts +198 -0
- package/v3/@claude-flow/cli/dist/src/types.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/types.js +38 -0
- package/v3/@claude-flow/cli/dist/src/types.js.map +1 -0
- package/v3/@claude-flow/cli/dist/tsconfig.tsbuildinfo +1 -0
- package/v3/@claude-flow/cli/package.json +57 -0
- package/v3/@claude-flow/shared/README.md +323 -0
- package/v3/@claude-flow/shared/dist/core/config/defaults.d.ts +41 -0
- package/v3/@claude-flow/shared/dist/core/config/defaults.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/core/config/defaults.js +186 -0
- package/v3/@claude-flow/shared/dist/core/config/defaults.js.map +1 -0
- package/v3/@claude-flow/shared/dist/core/config/index.d.ts +8 -0
- package/v3/@claude-flow/shared/dist/core/config/index.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/core/config/index.js +12 -0
- package/v3/@claude-flow/shared/dist/core/config/index.js.map +1 -0
- package/v3/@claude-flow/shared/dist/core/config/loader.d.ts +45 -0
- package/v3/@claude-flow/shared/dist/core/config/loader.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/core/config/loader.js +222 -0
- package/v3/@claude-flow/shared/dist/core/config/loader.js.map +1 -0
- package/v3/@claude-flow/shared/dist/core/config/schema.d.ts +1134 -0
- package/v3/@claude-flow/shared/dist/core/config/schema.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/core/config/schema.js +158 -0
- package/v3/@claude-flow/shared/dist/core/config/schema.js.map +1 -0
- package/v3/@claude-flow/shared/dist/core/config/validator.d.ts +92 -0
- package/v3/@claude-flow/shared/dist/core/config/validator.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/core/config/validator.js +147 -0
- package/v3/@claude-flow/shared/dist/core/config/validator.js.map +1 -0
- package/v3/@claude-flow/shared/dist/core/event-bus.d.ts +31 -0
- package/v3/@claude-flow/shared/dist/core/event-bus.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/core/event-bus.js +197 -0
- package/v3/@claude-flow/shared/dist/core/event-bus.js.map +1 -0
- package/v3/@claude-flow/shared/dist/core/index.d.ts +15 -0
- package/v3/@claude-flow/shared/dist/core/index.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/core/index.js +19 -0
- package/v3/@claude-flow/shared/dist/core/index.js.map +1 -0
- package/v3/@claude-flow/shared/dist/core/interfaces/agent.interface.d.ts +200 -0
- package/v3/@claude-flow/shared/dist/core/interfaces/agent.interface.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/core/interfaces/agent.interface.js +6 -0
- package/v3/@claude-flow/shared/dist/core/interfaces/agent.interface.js.map +1 -0
- package/v3/@claude-flow/shared/dist/core/interfaces/coordinator.interface.d.ts +310 -0
- package/v3/@claude-flow/shared/dist/core/interfaces/coordinator.interface.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/core/interfaces/coordinator.interface.js +7 -0
- package/v3/@claude-flow/shared/dist/core/interfaces/coordinator.interface.js.map +1 -0
- package/v3/@claude-flow/shared/dist/core/interfaces/event.interface.d.ts +224 -0
- package/v3/@claude-flow/shared/dist/core/interfaces/event.interface.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/core/interfaces/event.interface.js +46 -0
- package/v3/@claude-flow/shared/dist/core/interfaces/event.interface.js.map +1 -0
- package/v3/@claude-flow/shared/dist/core/interfaces/index.d.ts +10 -0
- package/v3/@claude-flow/shared/dist/core/interfaces/index.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/core/interfaces/index.js +15 -0
- package/v3/@claude-flow/shared/dist/core/interfaces/index.js.map +1 -0
- package/v3/@claude-flow/shared/dist/core/interfaces/memory.interface.d.ts +298 -0
- package/v3/@claude-flow/shared/dist/core/interfaces/memory.interface.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/core/interfaces/memory.interface.js +7 -0
- package/v3/@claude-flow/shared/dist/core/interfaces/memory.interface.js.map +1 -0
- package/v3/@claude-flow/shared/dist/core/interfaces/task.interface.d.ts +185 -0
- package/v3/@claude-flow/shared/dist/core/interfaces/task.interface.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/core/interfaces/task.interface.js +6 -0
- package/v3/@claude-flow/shared/dist/core/interfaces/task.interface.js.map +1 -0
- package/v3/@claude-flow/shared/dist/core/orchestrator/event-coordinator.d.ts +35 -0
- package/v3/@claude-flow/shared/dist/core/orchestrator/event-coordinator.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/core/orchestrator/event-coordinator.js +101 -0
- package/v3/@claude-flow/shared/dist/core/orchestrator/event-coordinator.js.map +1 -0
- package/v3/@claude-flow/shared/dist/core/orchestrator/health-monitor.d.ts +60 -0
- package/v3/@claude-flow/shared/dist/core/orchestrator/health-monitor.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/core/orchestrator/health-monitor.js +166 -0
- package/v3/@claude-flow/shared/dist/core/orchestrator/health-monitor.js.map +1 -0
- package/v3/@claude-flow/shared/dist/core/orchestrator/index.d.ts +46 -0
- package/v3/@claude-flow/shared/dist/core/orchestrator/index.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/core/orchestrator/index.js +64 -0
- package/v3/@claude-flow/shared/dist/core/orchestrator/index.js.map +1 -0
- package/v3/@claude-flow/shared/dist/core/orchestrator/lifecycle-manager.d.ts +56 -0
- package/v3/@claude-flow/shared/dist/core/orchestrator/lifecycle-manager.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/core/orchestrator/lifecycle-manager.js +195 -0
- package/v3/@claude-flow/shared/dist/core/orchestrator/lifecycle-manager.js.map +1 -0
- package/v3/@claude-flow/shared/dist/core/orchestrator/session-manager.d.ts +83 -0
- package/v3/@claude-flow/shared/dist/core/orchestrator/session-manager.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/core/orchestrator/session-manager.js +193 -0
- package/v3/@claude-flow/shared/dist/core/orchestrator/session-manager.js.map +1 -0
- package/v3/@claude-flow/shared/dist/core/orchestrator/task-manager.d.ts +49 -0
- package/v3/@claude-flow/shared/dist/core/orchestrator/task-manager.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/core/orchestrator/task-manager.js +253 -0
- package/v3/@claude-flow/shared/dist/core/orchestrator/task-manager.js.map +1 -0
- package/v3/@claude-flow/shared/dist/events/domain-events.d.ts +282 -0
- package/v3/@claude-flow/shared/dist/events/domain-events.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/events/domain-events.js +165 -0
- package/v3/@claude-flow/shared/dist/events/domain-events.js.map +1 -0
- package/v3/@claude-flow/shared/dist/events/event-store.d.ts +126 -0
- package/v3/@claude-flow/shared/dist/events/event-store.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/events/event-store.js +416 -0
- package/v3/@claude-flow/shared/dist/events/event-store.js.map +1 -0
- package/v3/@claude-flow/shared/dist/events/event-store.test.d.ts +8 -0
- package/v3/@claude-flow/shared/dist/events/event-store.test.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/events/event-store.test.js +293 -0
- package/v3/@claude-flow/shared/dist/events/event-store.test.js.map +1 -0
- package/v3/@claude-flow/shared/dist/events/example-usage.d.ts +10 -0
- package/v3/@claude-flow/shared/dist/events/example-usage.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/events/example-usage.js +193 -0
- package/v3/@claude-flow/shared/dist/events/example-usage.js.map +1 -0
- package/v3/@claude-flow/shared/dist/events/index.d.ts +19 -0
- package/v3/@claude-flow/shared/dist/events/index.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/events/index.js +20 -0
- package/v3/@claude-flow/shared/dist/events/index.js.map +1 -0
- package/v3/@claude-flow/shared/dist/events/projections.d.ts +177 -0
- package/v3/@claude-flow/shared/dist/events/projections.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/events/projections.js +421 -0
- package/v3/@claude-flow/shared/dist/events/projections.js.map +1 -0
- package/v3/@claude-flow/shared/dist/events/state-reconstructor.d.ts +101 -0
- package/v3/@claude-flow/shared/dist/events/state-reconstructor.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/events/state-reconstructor.js +263 -0
- package/v3/@claude-flow/shared/dist/events/state-reconstructor.js.map +1 -0
- package/v3/@claude-flow/shared/dist/events.d.ts +80 -0
- package/v3/@claude-flow/shared/dist/events.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/events.js +249 -0
- package/v3/@claude-flow/shared/dist/events.js.map +1 -0
- package/v3/@claude-flow/shared/dist/hooks/example-usage.d.ts +42 -0
- package/v3/@claude-flow/shared/dist/hooks/example-usage.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/hooks/example-usage.js +351 -0
- package/v3/@claude-flow/shared/dist/hooks/example-usage.js.map +1 -0
- package/v3/@claude-flow/shared/dist/hooks/executor.d.ts +100 -0
- package/v3/@claude-flow/shared/dist/hooks/executor.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/hooks/executor.js +264 -0
- package/v3/@claude-flow/shared/dist/hooks/executor.js.map +1 -0
- package/v3/@claude-flow/shared/dist/hooks/hooks.test.d.ts +9 -0
- package/v3/@claude-flow/shared/dist/hooks/hooks.test.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/hooks/hooks.test.js +322 -0
- package/v3/@claude-flow/shared/dist/hooks/hooks.test.js.map +1 -0
- package/v3/@claude-flow/shared/dist/hooks/index.d.ts +52 -0
- package/v3/@claude-flow/shared/dist/hooks/index.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/hooks/index.js +51 -0
- package/v3/@claude-flow/shared/dist/hooks/index.js.map +1 -0
- package/v3/@claude-flow/shared/dist/hooks/registry.d.ts +133 -0
- package/v3/@claude-flow/shared/dist/hooks/registry.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/hooks/registry.js +277 -0
- package/v3/@claude-flow/shared/dist/hooks/registry.js.map +1 -0
- package/v3/@claude-flow/shared/dist/hooks/safety/bash-safety.d.ts +105 -0
- package/v3/@claude-flow/shared/dist/hooks/safety/bash-safety.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/hooks/safety/bash-safety.js +481 -0
- package/v3/@claude-flow/shared/dist/hooks/safety/bash-safety.js.map +1 -0
- package/v3/@claude-flow/shared/dist/hooks/safety/file-organization.d.ts +144 -0
- package/v3/@claude-flow/shared/dist/hooks/safety/file-organization.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/hooks/safety/file-organization.js +328 -0
- package/v3/@claude-flow/shared/dist/hooks/safety/file-organization.js.map +1 -0
- package/v3/@claude-flow/shared/dist/hooks/safety/git-commit.d.ts +158 -0
- package/v3/@claude-flow/shared/dist/hooks/safety/git-commit.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/hooks/safety/git-commit.js +450 -0
- package/v3/@claude-flow/shared/dist/hooks/safety/git-commit.js.map +1 -0
- package/v3/@claude-flow/shared/dist/hooks/safety/index.d.ts +17 -0
- package/v3/@claude-flow/shared/dist/hooks/safety/index.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/hooks/safety/index.js +17 -0
- package/v3/@claude-flow/shared/dist/hooks/safety/index.js.map +1 -0
- package/v3/@claude-flow/shared/dist/hooks/session-hooks.d.ts +234 -0
- package/v3/@claude-flow/shared/dist/hooks/session-hooks.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/hooks/session-hooks.js +334 -0
- package/v3/@claude-flow/shared/dist/hooks/session-hooks.js.map +1 -0
- package/v3/@claude-flow/shared/dist/hooks/task-hooks.d.ts +163 -0
- package/v3/@claude-flow/shared/dist/hooks/task-hooks.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/hooks/task-hooks.js +326 -0
- package/v3/@claude-flow/shared/dist/hooks/task-hooks.js.map +1 -0
- package/v3/@claude-flow/shared/dist/hooks/types.d.ts +267 -0
- package/v3/@claude-flow/shared/dist/hooks/types.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/hooks/types.js +62 -0
- package/v3/@claude-flow/shared/dist/hooks/types.js.map +1 -0
- package/v3/@claude-flow/shared/dist/hooks/verify-exports.test.d.ts +9 -0
- package/v3/@claude-flow/shared/dist/hooks/verify-exports.test.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/hooks/verify-exports.test.js +93 -0
- package/v3/@claude-flow/shared/dist/hooks/verify-exports.test.js.map +1 -0
- package/v3/@claude-flow/shared/dist/index.d.ts +19 -0
- package/v3/@claude-flow/shared/dist/index.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/index.js +46 -0
- package/v3/@claude-flow/shared/dist/index.js.map +1 -0
- package/v3/@claude-flow/shared/dist/mcp/connection-pool.d.ts +98 -0
- package/v3/@claude-flow/shared/dist/mcp/connection-pool.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/mcp/connection-pool.js +364 -0
- package/v3/@claude-flow/shared/dist/mcp/connection-pool.js.map +1 -0
- package/v3/@claude-flow/shared/dist/mcp/index.d.ts +69 -0
- package/v3/@claude-flow/shared/dist/mcp/index.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/mcp/index.js +84 -0
- package/v3/@claude-flow/shared/dist/mcp/index.js.map +1 -0
- package/v3/@claude-flow/shared/dist/mcp/server.d.ts +166 -0
- package/v3/@claude-flow/shared/dist/mcp/server.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/mcp/server.js +593 -0
- package/v3/@claude-flow/shared/dist/mcp/server.js.map +1 -0
- package/v3/@claude-flow/shared/dist/mcp/session-manager.d.ts +136 -0
- package/v3/@claude-flow/shared/dist/mcp/session-manager.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/mcp/session-manager.js +335 -0
- package/v3/@claude-flow/shared/dist/mcp/session-manager.js.map +1 -0
- package/v3/@claude-flow/shared/dist/mcp/tool-registry.d.ts +178 -0
- package/v3/@claude-flow/shared/dist/mcp/tool-registry.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/mcp/tool-registry.js +439 -0
- package/v3/@claude-flow/shared/dist/mcp/tool-registry.js.map +1 -0
- package/v3/@claude-flow/shared/dist/mcp/transport/http.d.ts +104 -0
- package/v3/@claude-flow/shared/dist/mcp/transport/http.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/mcp/transport/http.js +476 -0
- package/v3/@claude-flow/shared/dist/mcp/transport/http.js.map +1 -0
- package/v3/@claude-flow/shared/dist/mcp/transport/index.d.ts +102 -0
- package/v3/@claude-flow/shared/dist/mcp/transport/index.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/mcp/transport/index.js +238 -0
- package/v3/@claude-flow/shared/dist/mcp/transport/index.js.map +1 -0
- package/v3/@claude-flow/shared/dist/mcp/transport/stdio.d.ts +104 -0
- package/v3/@claude-flow/shared/dist/mcp/transport/stdio.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/mcp/transport/stdio.js +263 -0
- package/v3/@claude-flow/shared/dist/mcp/transport/stdio.js.map +1 -0
- package/v3/@claude-flow/shared/dist/mcp/transport/websocket.d.ts +133 -0
- package/v3/@claude-flow/shared/dist/mcp/transport/websocket.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/mcp/transport/websocket.js +396 -0
- package/v3/@claude-flow/shared/dist/mcp/transport/websocket.js.map +1 -0
- package/v3/@claude-flow/shared/dist/mcp/types.d.ts +438 -0
- package/v3/@claude-flow/shared/dist/mcp/types.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/mcp/types.js +54 -0
- package/v3/@claude-flow/shared/dist/mcp/types.js.map +1 -0
- package/v3/@claude-flow/shared/dist/plugin-interface.d.ts +544 -0
- package/v3/@claude-flow/shared/dist/plugin-interface.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/plugin-interface.js +23 -0
- package/v3/@claude-flow/shared/dist/plugin-interface.js.map +1 -0
- package/v3/@claude-flow/shared/dist/plugin-loader.d.ts +139 -0
- package/v3/@claude-flow/shared/dist/plugin-loader.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/plugin-loader.js +434 -0
- package/v3/@claude-flow/shared/dist/plugin-loader.js.map +1 -0
- package/v3/@claude-flow/shared/dist/plugin-registry.d.ts +183 -0
- package/v3/@claude-flow/shared/dist/plugin-registry.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/plugin-registry.js +457 -0
- package/v3/@claude-flow/shared/dist/plugin-registry.js.map +1 -0
- package/v3/@claude-flow/shared/dist/plugins/index.d.ts +10 -0
- package/v3/@claude-flow/shared/dist/plugins/index.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/plugins/index.js +10 -0
- package/v3/@claude-flow/shared/dist/plugins/index.js.map +1 -0
- package/v3/@claude-flow/shared/dist/plugins/official/hive-mind-plugin.d.ts +106 -0
- package/v3/@claude-flow/shared/dist/plugins/official/hive-mind-plugin.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/plugins/official/hive-mind-plugin.js +241 -0
- package/v3/@claude-flow/shared/dist/plugins/official/hive-mind-plugin.js.map +1 -0
- package/v3/@claude-flow/shared/dist/plugins/official/index.d.ts +10 -0
- package/v3/@claude-flow/shared/dist/plugins/official/index.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/plugins/official/index.js +10 -0
- package/v3/@claude-flow/shared/dist/plugins/official/index.js.map +1 -0
- package/v3/@claude-flow/shared/dist/plugins/official/maestro-plugin.d.ts +121 -0
- package/v3/@claude-flow/shared/dist/plugins/official/maestro-plugin.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/plugins/official/maestro-plugin.js +355 -0
- package/v3/@claude-flow/shared/dist/plugins/official/maestro-plugin.js.map +1 -0
- package/v3/@claude-flow/shared/dist/plugins/types.d.ts +93 -0
- package/v3/@claude-flow/shared/dist/plugins/types.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/plugins/types.js +9 -0
- package/v3/@claude-flow/shared/dist/plugins/types.js.map +1 -0
- package/v3/@claude-flow/shared/dist/resilience/bulkhead.d.ts +105 -0
- package/v3/@claude-flow/shared/dist/resilience/bulkhead.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/resilience/bulkhead.js +206 -0
- package/v3/@claude-flow/shared/dist/resilience/bulkhead.js.map +1 -0
- package/v3/@claude-flow/shared/dist/resilience/circuit-breaker.d.ts +132 -0
- package/v3/@claude-flow/shared/dist/resilience/circuit-breaker.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/resilience/circuit-breaker.js +233 -0
- package/v3/@claude-flow/shared/dist/resilience/circuit-breaker.js.map +1 -0
- package/v3/@claude-flow/shared/dist/resilience/index.d.ts +19 -0
- package/v3/@claude-flow/shared/dist/resilience/index.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/resilience/index.js +19 -0
- package/v3/@claude-flow/shared/dist/resilience/index.js.map +1 -0
- package/v3/@claude-flow/shared/dist/resilience/rate-limiter.d.ts +168 -0
- package/v3/@claude-flow/shared/dist/resilience/rate-limiter.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/resilience/rate-limiter.js +314 -0
- package/v3/@claude-flow/shared/dist/resilience/rate-limiter.js.map +1 -0
- package/v3/@claude-flow/shared/dist/resilience/retry.d.ts +91 -0
- package/v3/@claude-flow/shared/dist/resilience/retry.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/resilience/retry.js +159 -0
- package/v3/@claude-flow/shared/dist/resilience/retry.js.map +1 -0
- package/v3/@claude-flow/shared/dist/security/index.d.ts +10 -0
- package/v3/@claude-flow/shared/dist/security/index.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/security/index.js +12 -0
- package/v3/@claude-flow/shared/dist/security/index.js.map +1 -0
- package/v3/@claude-flow/shared/dist/security/input-validation.d.ts +73 -0
- package/v3/@claude-flow/shared/dist/security/input-validation.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/security/input-validation.js +201 -0
- package/v3/@claude-flow/shared/dist/security/input-validation.js.map +1 -0
- package/v3/@claude-flow/shared/dist/security/secure-random.d.ts +92 -0
- package/v3/@claude-flow/shared/dist/security/secure-random.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/security/secure-random.js +142 -0
- package/v3/@claude-flow/shared/dist/security/secure-random.js.map +1 -0
- package/v3/@claude-flow/shared/dist/types/agent.types.d.ts +137 -0
- package/v3/@claude-flow/shared/dist/types/agent.types.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/types/agent.types.js +6 -0
- package/v3/@claude-flow/shared/dist/types/agent.types.js.map +1 -0
- package/v3/@claude-flow/shared/dist/types/index.d.ts +11 -0
- package/v3/@claude-flow/shared/dist/types/index.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/types/index.js +17 -0
- package/v3/@claude-flow/shared/dist/types/index.js.map +1 -0
- package/v3/@claude-flow/shared/dist/types/mcp.types.d.ts +266 -0
- package/v3/@claude-flow/shared/dist/types/mcp.types.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/types/mcp.types.js +7 -0
- package/v3/@claude-flow/shared/dist/types/mcp.types.js.map +1 -0
- package/v3/@claude-flow/shared/dist/types/memory.types.d.ts +236 -0
- package/v3/@claude-flow/shared/dist/types/memory.types.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/types/memory.types.js +7 -0
- package/v3/@claude-flow/shared/dist/types/memory.types.js.map +1 -0
- package/v3/@claude-flow/shared/dist/types/swarm.types.d.ts +186 -0
- package/v3/@claude-flow/shared/dist/types/swarm.types.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/types/swarm.types.js +65 -0
- package/v3/@claude-flow/shared/dist/types/swarm.types.js.map +1 -0
- package/v3/@claude-flow/shared/dist/types/task.types.d.ts +178 -0
- package/v3/@claude-flow/shared/dist/types/task.types.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/types/task.types.js +32 -0
- package/v3/@claude-flow/shared/dist/types/task.types.js.map +1 -0
- package/v3/@claude-flow/shared/dist/types.d.ts +197 -0
- package/v3/@claude-flow/shared/dist/types.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/types.js +21 -0
- package/v3/@claude-flow/shared/dist/types.js.map +1 -0
- package/v3/@claude-flow/shared/dist/utils/secure-logger.d.ts +69 -0
- package/v3/@claude-flow/shared/dist/utils/secure-logger.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/utils/secure-logger.js +208 -0
- package/v3/@claude-flow/shared/dist/utils/secure-logger.js.map +1 -0
- package/v3/@claude-flow/shared/package.json +34 -0
- package/v3/README.md +493 -0
- package/bin/cli.js +0 -36
- package/dist/index.d.ts +0 -30
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -30
- package/dist/index.js.map +0 -1
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* V3 Plugin Registry
|
|
3
|
+
* Domain-Driven Design - Plugin-Based Architecture (ADR-004)
|
|
4
|
+
*
|
|
5
|
+
* Central registry for tracking plugin state, metadata, and registrations
|
|
6
|
+
*/
|
|
7
|
+
import type { ClaudeFlowPlugin, PluginInfo, PluginLifecycleState, PluginContext, AgentTypeDefinition, TaskTypeDefinition, MCPToolDefinition, CLICommandDefinition, MemoryBackendFactory } from './plugin-interface.js';
|
|
8
|
+
/**
|
|
9
|
+
* Plugin registry for managing plugin lifecycle and registrations
|
|
10
|
+
*/
|
|
11
|
+
export declare class PluginRegistry {
|
|
12
|
+
private plugins;
|
|
13
|
+
private agentTypes;
|
|
14
|
+
private taskTypes;
|
|
15
|
+
private mcpTools;
|
|
16
|
+
private cliCommands;
|
|
17
|
+
private memoryBackends;
|
|
18
|
+
/**
|
|
19
|
+
* Register a plugin in the registry
|
|
20
|
+
*/
|
|
21
|
+
registerPlugin(plugin: ClaudeFlowPlugin, initialState: PluginLifecycleState, context: PluginContext): void;
|
|
22
|
+
/**
|
|
23
|
+
* Unregister a plugin from the registry
|
|
24
|
+
*/
|
|
25
|
+
unregisterPlugin(pluginName: string): boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Get a plugin by name
|
|
28
|
+
*/
|
|
29
|
+
getPlugin(pluginName: string): PluginInfo | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* Get all registered plugins
|
|
32
|
+
*/
|
|
33
|
+
getAllPlugins(): Map<string, PluginInfo>;
|
|
34
|
+
/**
|
|
35
|
+
* Get all plugin names
|
|
36
|
+
*/
|
|
37
|
+
getPluginNames(): string[];
|
|
38
|
+
/**
|
|
39
|
+
* Check if a plugin is registered
|
|
40
|
+
*/
|
|
41
|
+
hasPlugin(pluginName: string): boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Get plugins by state
|
|
44
|
+
*/
|
|
45
|
+
getPluginsByState(state: PluginLifecycleState): PluginInfo[];
|
|
46
|
+
/**
|
|
47
|
+
* Get plugin count
|
|
48
|
+
*/
|
|
49
|
+
getPluginCount(): number;
|
|
50
|
+
/**
|
|
51
|
+
* Update plugin state
|
|
52
|
+
*/
|
|
53
|
+
updatePluginState(pluginName: string, state: PluginLifecycleState, error?: Error): void;
|
|
54
|
+
/**
|
|
55
|
+
* Collect and update plugin metrics
|
|
56
|
+
*/
|
|
57
|
+
collectPluginMetrics(pluginName: string): void;
|
|
58
|
+
/**
|
|
59
|
+
* Get plugin status summary
|
|
60
|
+
*/
|
|
61
|
+
getStatusSummary(): PluginRegistryStatus;
|
|
62
|
+
/**
|
|
63
|
+
* Register agent types from a plugin
|
|
64
|
+
*/
|
|
65
|
+
registerAgentTypes(pluginName: string): void;
|
|
66
|
+
/**
|
|
67
|
+
* Unregister agent types from a plugin
|
|
68
|
+
*/
|
|
69
|
+
unregisterPluginAgentTypes(pluginName: string): void;
|
|
70
|
+
/**
|
|
71
|
+
* Get agent type definition
|
|
72
|
+
*/
|
|
73
|
+
getAgentType(type: string): AgentTypeDefinition | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* Get all agent types
|
|
76
|
+
*/
|
|
77
|
+
getAllAgentTypes(): AgentTypeDefinition[];
|
|
78
|
+
/**
|
|
79
|
+
* Get agent types by plugin
|
|
80
|
+
*/
|
|
81
|
+
getAgentTypesByPlugin(pluginName: string): AgentTypeDefinition[];
|
|
82
|
+
/**
|
|
83
|
+
* Register task types from a plugin
|
|
84
|
+
*/
|
|
85
|
+
registerTaskTypes(pluginName: string): void;
|
|
86
|
+
/**
|
|
87
|
+
* Unregister task types from a plugin
|
|
88
|
+
*/
|
|
89
|
+
unregisterPluginTaskTypes(pluginName: string): void;
|
|
90
|
+
/**
|
|
91
|
+
* Get task type definition
|
|
92
|
+
*/
|
|
93
|
+
getTaskType(type: string): TaskTypeDefinition | undefined;
|
|
94
|
+
/**
|
|
95
|
+
* Get all task types
|
|
96
|
+
*/
|
|
97
|
+
getAllTaskTypes(): TaskTypeDefinition[];
|
|
98
|
+
/**
|
|
99
|
+
* Get task types by plugin
|
|
100
|
+
*/
|
|
101
|
+
getTaskTypesByPlugin(pluginName: string): TaskTypeDefinition[];
|
|
102
|
+
/**
|
|
103
|
+
* Register MCP tools from a plugin
|
|
104
|
+
*/
|
|
105
|
+
registerMCPTools(pluginName: string): void;
|
|
106
|
+
/**
|
|
107
|
+
* Unregister MCP tools from a plugin
|
|
108
|
+
*/
|
|
109
|
+
unregisterPluginMCPTools(pluginName: string): void;
|
|
110
|
+
/**
|
|
111
|
+
* Get MCP tool definition
|
|
112
|
+
*/
|
|
113
|
+
getMCPTool(name: string): MCPToolDefinition | undefined;
|
|
114
|
+
/**
|
|
115
|
+
* Get all MCP tools
|
|
116
|
+
*/
|
|
117
|
+
getAllMCPTools(): MCPToolDefinition[];
|
|
118
|
+
/**
|
|
119
|
+
* Get MCP tools by plugin
|
|
120
|
+
*/
|
|
121
|
+
getMCPToolsByPlugin(pluginName: string): MCPToolDefinition[];
|
|
122
|
+
/**
|
|
123
|
+
* Register CLI commands from a plugin
|
|
124
|
+
*/
|
|
125
|
+
registerCLICommands(pluginName: string): void;
|
|
126
|
+
/**
|
|
127
|
+
* Unregister CLI commands from a plugin
|
|
128
|
+
*/
|
|
129
|
+
unregisterPluginCLICommands(pluginName: string): void;
|
|
130
|
+
/**
|
|
131
|
+
* Get CLI command definition
|
|
132
|
+
*/
|
|
133
|
+
getCLICommand(name: string): CLICommandDefinition | undefined;
|
|
134
|
+
/**
|
|
135
|
+
* Get all CLI commands
|
|
136
|
+
*/
|
|
137
|
+
getAllCLICommands(): CLICommandDefinition[];
|
|
138
|
+
/**
|
|
139
|
+
* Get CLI commands by plugin
|
|
140
|
+
*/
|
|
141
|
+
getCLICommandsByPlugin(pluginName: string): CLICommandDefinition[];
|
|
142
|
+
/**
|
|
143
|
+
* Register memory backends from a plugin
|
|
144
|
+
*/
|
|
145
|
+
registerMemoryBackends(pluginName: string): void;
|
|
146
|
+
/**
|
|
147
|
+
* Unregister memory backends from a plugin
|
|
148
|
+
*/
|
|
149
|
+
unregisterPluginMemoryBackends(pluginName: string): void;
|
|
150
|
+
/**
|
|
151
|
+
* Get memory backend factory
|
|
152
|
+
*/
|
|
153
|
+
getMemoryBackend(name: string): MemoryBackendFactory | undefined;
|
|
154
|
+
/**
|
|
155
|
+
* Get all memory backends
|
|
156
|
+
*/
|
|
157
|
+
getAllMemoryBackends(): MemoryBackendFactory[];
|
|
158
|
+
/**
|
|
159
|
+
* Get memory backends by plugin
|
|
160
|
+
*/
|
|
161
|
+
getMemoryBackendsByPlugin(pluginName: string): MemoryBackendFactory[];
|
|
162
|
+
/**
|
|
163
|
+
* Register all extension points from a plugin
|
|
164
|
+
*/
|
|
165
|
+
registerAllFromPlugin(pluginName: string): void;
|
|
166
|
+
/**
|
|
167
|
+
* Clear all registrations (for testing)
|
|
168
|
+
*/
|
|
169
|
+
clear(): void;
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Plugin registry status summary
|
|
173
|
+
*/
|
|
174
|
+
export interface PluginRegistryStatus {
|
|
175
|
+
totalPlugins: number;
|
|
176
|
+
states: Record<PluginLifecycleState, number>;
|
|
177
|
+
agentTypesRegistered: number;
|
|
178
|
+
taskTypesRegistered: number;
|
|
179
|
+
mcpToolsRegistered: number;
|
|
180
|
+
cliCommandsRegistered: number;
|
|
181
|
+
memoryBackendsRegistered: number;
|
|
182
|
+
}
|
|
183
|
+
//# sourceMappingURL=plugin-registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-registry.d.ts","sourceRoot":"","sources":["../src/plugin-registry.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EACV,gBAAgB,EAChB,UAAU,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IAAI;IA4BhD;;OAEG;IACH,8BAA8B,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI;IAQxD;;OAEG;IACH,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,oBAAoB,GAAG,SAAS;IAIhE;;OAEG;IACH,oBAAoB,IAAI,oBAAoB,EAAE;IAI9C;;OAEG;IACH,yBAAyB,CAAC,UAAU,EAAE,MAAM,GAAG,oBAAoB,EAAE;IAUrE;;OAEG;IACH,qBAAqB,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI;IAS/C;;OAEG;IACH,KAAK,IAAI,IAAI;CAQd;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC,oBAAoB,EAAE,MAAM,CAAC,CAAC;IAC7C,oBAAoB,EAAE,MAAM,CAAC;IAC7B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,wBAAwB,EAAE,MAAM,CAAC;CAClC"}
|
|
@@ -0,0 +1,457 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* V3 Plugin Registry
|
|
3
|
+
* Domain-Driven Design - Plugin-Based Architecture (ADR-004)
|
|
4
|
+
*
|
|
5
|
+
* Central registry for tracking plugin state, metadata, and registrations
|
|
6
|
+
*/
|
|
7
|
+
import { PluginError } from './plugin-interface.js';
|
|
8
|
+
/**
|
|
9
|
+
* Plugin registry for managing plugin lifecycle and registrations
|
|
10
|
+
*/
|
|
11
|
+
export class PluginRegistry {
|
|
12
|
+
plugins = new Map();
|
|
13
|
+
agentTypes = new Map();
|
|
14
|
+
taskTypes = new Map();
|
|
15
|
+
mcpTools = new Map();
|
|
16
|
+
cliCommands = new Map();
|
|
17
|
+
memoryBackends = new Map();
|
|
18
|
+
/**
|
|
19
|
+
* Register a plugin in the registry
|
|
20
|
+
*/
|
|
21
|
+
registerPlugin(plugin, initialState, context) {
|
|
22
|
+
if (this.plugins.has(plugin.name)) {
|
|
23
|
+
throw new PluginError(`Plugin '${plugin.name}' is already registered`, plugin.name, 'DUPLICATE_PLUGIN');
|
|
24
|
+
}
|
|
25
|
+
const info = {
|
|
26
|
+
plugin,
|
|
27
|
+
state: initialState,
|
|
28
|
+
context,
|
|
29
|
+
metrics: {
|
|
30
|
+
agentTypesRegistered: 0,
|
|
31
|
+
taskTypesRegistered: 0,
|
|
32
|
+
mcpToolsRegistered: 0,
|
|
33
|
+
cliCommandsRegistered: 0,
|
|
34
|
+
memoryBackendsRegistered: 0,
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
this.plugins.set(plugin.name, info);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Unregister a plugin from the registry
|
|
41
|
+
*/
|
|
42
|
+
unregisterPlugin(pluginName) {
|
|
43
|
+
const info = this.plugins.get(pluginName);
|
|
44
|
+
if (!info) {
|
|
45
|
+
return false;
|
|
46
|
+
}
|
|
47
|
+
// Unregister all plugin's registrations
|
|
48
|
+
this.unregisterPluginAgentTypes(pluginName);
|
|
49
|
+
this.unregisterPluginTaskTypes(pluginName);
|
|
50
|
+
this.unregisterPluginMCPTools(pluginName);
|
|
51
|
+
this.unregisterPluginCLICommands(pluginName);
|
|
52
|
+
this.unregisterPluginMemoryBackends(pluginName);
|
|
53
|
+
// Remove plugin
|
|
54
|
+
return this.plugins.delete(pluginName);
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Get a plugin by name
|
|
58
|
+
*/
|
|
59
|
+
getPlugin(pluginName) {
|
|
60
|
+
return this.plugins.get(pluginName);
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Get all registered plugins
|
|
64
|
+
*/
|
|
65
|
+
getAllPlugins() {
|
|
66
|
+
return new Map(this.plugins);
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Get all plugin names
|
|
70
|
+
*/
|
|
71
|
+
getPluginNames() {
|
|
72
|
+
return Array.from(this.plugins.keys());
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Check if a plugin is registered
|
|
76
|
+
*/
|
|
77
|
+
hasPlugin(pluginName) {
|
|
78
|
+
return this.plugins.has(pluginName);
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Get plugins by state
|
|
82
|
+
*/
|
|
83
|
+
getPluginsByState(state) {
|
|
84
|
+
return Array.from(this.plugins.values()).filter((info) => info.state === state);
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Get plugin count
|
|
88
|
+
*/
|
|
89
|
+
getPluginCount() {
|
|
90
|
+
return this.plugins.size;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Update plugin state
|
|
94
|
+
*/
|
|
95
|
+
updatePluginState(pluginName, state, error) {
|
|
96
|
+
const info = this.plugins.get(pluginName);
|
|
97
|
+
if (!info) {
|
|
98
|
+
throw new PluginError(`Plugin '${pluginName}' not found`, pluginName, 'INVALID_PLUGIN');
|
|
99
|
+
}
|
|
100
|
+
info.state = state;
|
|
101
|
+
if (state === 'initialized') {
|
|
102
|
+
info.initializedAt = new Date();
|
|
103
|
+
}
|
|
104
|
+
else if (state === 'shutdown') {
|
|
105
|
+
info.shutdownAt = new Date();
|
|
106
|
+
}
|
|
107
|
+
else if (state === 'error') {
|
|
108
|
+
info.error = error;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Collect and update plugin metrics
|
|
113
|
+
*/
|
|
114
|
+
collectPluginMetrics(pluginName) {
|
|
115
|
+
const info = this.plugins.get(pluginName);
|
|
116
|
+
if (!info || !info.metrics) {
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
const plugin = info.plugin;
|
|
120
|
+
// Count registered items
|
|
121
|
+
info.metrics.agentTypesRegistered = plugin.registerAgentTypes?.()?.length || 0;
|
|
122
|
+
info.metrics.taskTypesRegistered = plugin.registerTaskTypes?.()?.length || 0;
|
|
123
|
+
info.metrics.mcpToolsRegistered = plugin.registerMCPTools?.()?.length || 0;
|
|
124
|
+
info.metrics.cliCommandsRegistered = plugin.registerCLICommands?.()?.length || 0;
|
|
125
|
+
info.metrics.memoryBackendsRegistered = plugin.registerMemoryBackends?.()?.length || 0;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Get plugin status summary
|
|
129
|
+
*/
|
|
130
|
+
getStatusSummary() {
|
|
131
|
+
const states = Array.from(this.plugins.values()).reduce((acc, info) => {
|
|
132
|
+
acc[info.state] = (acc[info.state] || 0) + 1;
|
|
133
|
+
return acc;
|
|
134
|
+
}, {});
|
|
135
|
+
return {
|
|
136
|
+
totalPlugins: this.plugins.size,
|
|
137
|
+
states,
|
|
138
|
+
agentTypesRegistered: this.agentTypes.size,
|
|
139
|
+
taskTypesRegistered: this.taskTypes.size,
|
|
140
|
+
mcpToolsRegistered: this.mcpTools.size,
|
|
141
|
+
cliCommandsRegistered: this.cliCommands.size,
|
|
142
|
+
memoryBackendsRegistered: this.memoryBackends.size,
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
// =============================================================================
|
|
146
|
+
// Agent Type Registry
|
|
147
|
+
// =============================================================================
|
|
148
|
+
/**
|
|
149
|
+
* Register agent types from a plugin
|
|
150
|
+
*/
|
|
151
|
+
registerAgentTypes(pluginName) {
|
|
152
|
+
const info = this.plugins.get(pluginName);
|
|
153
|
+
if (!info) {
|
|
154
|
+
throw new PluginError(`Plugin '${pluginName}' not found`, pluginName, 'INVALID_PLUGIN');
|
|
155
|
+
}
|
|
156
|
+
const agentTypes = info.plugin.registerAgentTypes?.();
|
|
157
|
+
if (!agentTypes || agentTypes.length === 0) {
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
for (const definition of agentTypes) {
|
|
161
|
+
if (this.agentTypes.has(definition.type)) {
|
|
162
|
+
throw new PluginError(`Agent type '${definition.type}' is already registered by plugin '${this.agentTypes.get(definition.type)?.plugin}'`, pluginName, 'DUPLICATE_PLUGIN');
|
|
163
|
+
}
|
|
164
|
+
this.agentTypes.set(definition.type, { plugin: pluginName, definition });
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Unregister agent types from a plugin
|
|
169
|
+
*/
|
|
170
|
+
unregisterPluginAgentTypes(pluginName) {
|
|
171
|
+
for (const [type, entry] of Array.from(this.agentTypes.entries())) {
|
|
172
|
+
if (entry.plugin === pluginName) {
|
|
173
|
+
this.agentTypes.delete(type);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Get agent type definition
|
|
179
|
+
*/
|
|
180
|
+
getAgentType(type) {
|
|
181
|
+
return this.agentTypes.get(type)?.definition;
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* Get all agent types
|
|
185
|
+
*/
|
|
186
|
+
getAllAgentTypes() {
|
|
187
|
+
return Array.from(this.agentTypes.values()).map((entry) => entry.definition);
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Get agent types by plugin
|
|
191
|
+
*/
|
|
192
|
+
getAgentTypesByPlugin(pluginName) {
|
|
193
|
+
return Array.from(this.agentTypes.values())
|
|
194
|
+
.filter((entry) => entry.plugin === pluginName)
|
|
195
|
+
.map((entry) => entry.definition);
|
|
196
|
+
}
|
|
197
|
+
// =============================================================================
|
|
198
|
+
// Task Type Registry
|
|
199
|
+
// =============================================================================
|
|
200
|
+
/**
|
|
201
|
+
* Register task types from a plugin
|
|
202
|
+
*/
|
|
203
|
+
registerTaskTypes(pluginName) {
|
|
204
|
+
const info = this.plugins.get(pluginName);
|
|
205
|
+
if (!info) {
|
|
206
|
+
throw new PluginError(`Plugin '${pluginName}' not found`, pluginName, 'INVALID_PLUGIN');
|
|
207
|
+
}
|
|
208
|
+
const taskTypes = info.plugin.registerTaskTypes?.();
|
|
209
|
+
if (!taskTypes || taskTypes.length === 0) {
|
|
210
|
+
return;
|
|
211
|
+
}
|
|
212
|
+
for (const definition of taskTypes) {
|
|
213
|
+
if (this.taskTypes.has(definition.type)) {
|
|
214
|
+
throw new PluginError(`Task type '${definition.type}' is already registered by plugin '${this.taskTypes.get(definition.type)?.plugin}'`, pluginName, 'DUPLICATE_PLUGIN');
|
|
215
|
+
}
|
|
216
|
+
this.taskTypes.set(definition.type, { plugin: pluginName, definition });
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Unregister task types from a plugin
|
|
221
|
+
*/
|
|
222
|
+
unregisterPluginTaskTypes(pluginName) {
|
|
223
|
+
for (const [type, entry] of Array.from(this.taskTypes.entries())) {
|
|
224
|
+
if (entry.plugin === pluginName) {
|
|
225
|
+
this.taskTypes.delete(type);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Get task type definition
|
|
231
|
+
*/
|
|
232
|
+
getTaskType(type) {
|
|
233
|
+
return this.taskTypes.get(type)?.definition;
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* Get all task types
|
|
237
|
+
*/
|
|
238
|
+
getAllTaskTypes() {
|
|
239
|
+
return Array.from(this.taskTypes.values()).map((entry) => entry.definition);
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* Get task types by plugin
|
|
243
|
+
*/
|
|
244
|
+
getTaskTypesByPlugin(pluginName) {
|
|
245
|
+
return Array.from(this.taskTypes.values())
|
|
246
|
+
.filter((entry) => entry.plugin === pluginName)
|
|
247
|
+
.map((entry) => entry.definition);
|
|
248
|
+
}
|
|
249
|
+
// =============================================================================
|
|
250
|
+
// MCP Tool Registry
|
|
251
|
+
// =============================================================================
|
|
252
|
+
/**
|
|
253
|
+
* Register MCP tools from a plugin
|
|
254
|
+
*/
|
|
255
|
+
registerMCPTools(pluginName) {
|
|
256
|
+
const info = this.plugins.get(pluginName);
|
|
257
|
+
if (!info) {
|
|
258
|
+
throw new PluginError(`Plugin '${pluginName}' not found`, pluginName, 'INVALID_PLUGIN');
|
|
259
|
+
}
|
|
260
|
+
const mcpTools = info.plugin.registerMCPTools?.();
|
|
261
|
+
if (!mcpTools || mcpTools.length === 0) {
|
|
262
|
+
return;
|
|
263
|
+
}
|
|
264
|
+
for (const definition of mcpTools) {
|
|
265
|
+
if (this.mcpTools.has(definition.name)) {
|
|
266
|
+
throw new PluginError(`MCP tool '${definition.name}' is already registered by plugin '${this.mcpTools.get(definition.name)?.plugin}'`, pluginName, 'DUPLICATE_PLUGIN');
|
|
267
|
+
}
|
|
268
|
+
// Add plugin metadata
|
|
269
|
+
definition.pluginName = pluginName;
|
|
270
|
+
this.mcpTools.set(definition.name, { plugin: pluginName, definition });
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* Unregister MCP tools from a plugin
|
|
275
|
+
*/
|
|
276
|
+
unregisterPluginMCPTools(pluginName) {
|
|
277
|
+
for (const [name, entry] of Array.from(this.mcpTools.entries())) {
|
|
278
|
+
if (entry.plugin === pluginName) {
|
|
279
|
+
this.mcpTools.delete(name);
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* Get MCP tool definition
|
|
285
|
+
*/
|
|
286
|
+
getMCPTool(name) {
|
|
287
|
+
return this.mcpTools.get(name)?.definition;
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* Get all MCP tools
|
|
291
|
+
*/
|
|
292
|
+
getAllMCPTools() {
|
|
293
|
+
return Array.from(this.mcpTools.values()).map((entry) => entry.definition);
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
* Get MCP tools by plugin
|
|
297
|
+
*/
|
|
298
|
+
getMCPToolsByPlugin(pluginName) {
|
|
299
|
+
return Array.from(this.mcpTools.values())
|
|
300
|
+
.filter((entry) => entry.plugin === pluginName)
|
|
301
|
+
.map((entry) => entry.definition);
|
|
302
|
+
}
|
|
303
|
+
// =============================================================================
|
|
304
|
+
// CLI Command Registry
|
|
305
|
+
// =============================================================================
|
|
306
|
+
/**
|
|
307
|
+
* Register CLI commands from a plugin
|
|
308
|
+
*/
|
|
309
|
+
registerCLICommands(pluginName) {
|
|
310
|
+
const info = this.plugins.get(pluginName);
|
|
311
|
+
if (!info) {
|
|
312
|
+
throw new PluginError(`Plugin '${pluginName}' not found`, pluginName, 'INVALID_PLUGIN');
|
|
313
|
+
}
|
|
314
|
+
const cliCommands = info.plugin.registerCLICommands?.();
|
|
315
|
+
if (!cliCommands || cliCommands.length === 0) {
|
|
316
|
+
return;
|
|
317
|
+
}
|
|
318
|
+
for (const definition of cliCommands) {
|
|
319
|
+
if (this.cliCommands.has(definition.name)) {
|
|
320
|
+
throw new PluginError(`CLI command '${definition.name}' is already registered by plugin '${this.cliCommands.get(definition.name)?.plugin}'`, pluginName, 'DUPLICATE_PLUGIN');
|
|
321
|
+
}
|
|
322
|
+
this.cliCommands.set(definition.name, { plugin: pluginName, definition });
|
|
323
|
+
// Register aliases
|
|
324
|
+
if (definition.aliases) {
|
|
325
|
+
for (const alias of definition.aliases) {
|
|
326
|
+
if (this.cliCommands.has(alias)) {
|
|
327
|
+
throw new PluginError(`CLI command alias '${alias}' is already registered`, pluginName, 'DUPLICATE_PLUGIN');
|
|
328
|
+
}
|
|
329
|
+
this.cliCommands.set(alias, { plugin: pluginName, definition });
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* Unregister CLI commands from a plugin
|
|
336
|
+
*/
|
|
337
|
+
unregisterPluginCLICommands(pluginName) {
|
|
338
|
+
for (const [name, entry] of Array.from(this.cliCommands.entries())) {
|
|
339
|
+
if (entry.plugin === pluginName) {
|
|
340
|
+
this.cliCommands.delete(name);
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
/**
|
|
345
|
+
* Get CLI command definition
|
|
346
|
+
*/
|
|
347
|
+
getCLICommand(name) {
|
|
348
|
+
return this.cliCommands.get(name)?.definition;
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* Get all CLI commands
|
|
352
|
+
*/
|
|
353
|
+
getAllCLICommands() {
|
|
354
|
+
const seen = new Set();
|
|
355
|
+
return Array.from(this.cliCommands.values())
|
|
356
|
+
.map((entry) => entry.definition)
|
|
357
|
+
.filter((def) => {
|
|
358
|
+
if (seen.has(def))
|
|
359
|
+
return false;
|
|
360
|
+
seen.add(def);
|
|
361
|
+
return true;
|
|
362
|
+
});
|
|
363
|
+
}
|
|
364
|
+
/**
|
|
365
|
+
* Get CLI commands by plugin
|
|
366
|
+
*/
|
|
367
|
+
getCLICommandsByPlugin(pluginName) {
|
|
368
|
+
const seen = new Set();
|
|
369
|
+
return Array.from(this.cliCommands.values())
|
|
370
|
+
.filter((entry) => entry.plugin === pluginName)
|
|
371
|
+
.map((entry) => entry.definition)
|
|
372
|
+
.filter((def) => {
|
|
373
|
+
if (seen.has(def))
|
|
374
|
+
return false;
|
|
375
|
+
seen.add(def);
|
|
376
|
+
return true;
|
|
377
|
+
});
|
|
378
|
+
}
|
|
379
|
+
// =============================================================================
|
|
380
|
+
// Memory Backend Registry
|
|
381
|
+
// =============================================================================
|
|
382
|
+
/**
|
|
383
|
+
* Register memory backends from a plugin
|
|
384
|
+
*/
|
|
385
|
+
registerMemoryBackends(pluginName) {
|
|
386
|
+
const info = this.plugins.get(pluginName);
|
|
387
|
+
if (!info) {
|
|
388
|
+
throw new PluginError(`Plugin '${pluginName}' not found`, pluginName, 'INVALID_PLUGIN');
|
|
389
|
+
}
|
|
390
|
+
const memoryBackends = info.plugin.registerMemoryBackends?.();
|
|
391
|
+
if (!memoryBackends || memoryBackends.length === 0) {
|
|
392
|
+
return;
|
|
393
|
+
}
|
|
394
|
+
for (const factory of memoryBackends) {
|
|
395
|
+
if (this.memoryBackends.has(factory.name)) {
|
|
396
|
+
throw new PluginError(`Memory backend '${factory.name}' is already registered by plugin '${this.memoryBackends.get(factory.name)?.plugin}'`, pluginName, 'DUPLICATE_PLUGIN');
|
|
397
|
+
}
|
|
398
|
+
this.memoryBackends.set(factory.name, { plugin: pluginName, factory });
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
/**
|
|
402
|
+
* Unregister memory backends from a plugin
|
|
403
|
+
*/
|
|
404
|
+
unregisterPluginMemoryBackends(pluginName) {
|
|
405
|
+
for (const [name, entry] of Array.from(this.memoryBackends.entries())) {
|
|
406
|
+
if (entry.plugin === pluginName) {
|
|
407
|
+
this.memoryBackends.delete(name);
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
/**
|
|
412
|
+
* Get memory backend factory
|
|
413
|
+
*/
|
|
414
|
+
getMemoryBackend(name) {
|
|
415
|
+
return this.memoryBackends.get(name)?.factory;
|
|
416
|
+
}
|
|
417
|
+
/**
|
|
418
|
+
* Get all memory backends
|
|
419
|
+
*/
|
|
420
|
+
getAllMemoryBackends() {
|
|
421
|
+
return Array.from(this.memoryBackends.values()).map((entry) => entry.factory);
|
|
422
|
+
}
|
|
423
|
+
/**
|
|
424
|
+
* Get memory backends by plugin
|
|
425
|
+
*/
|
|
426
|
+
getMemoryBackendsByPlugin(pluginName) {
|
|
427
|
+
return Array.from(this.memoryBackends.values())
|
|
428
|
+
.filter((entry) => entry.plugin === pluginName)
|
|
429
|
+
.map((entry) => entry.factory);
|
|
430
|
+
}
|
|
431
|
+
// =============================================================================
|
|
432
|
+
// Bulk Registration
|
|
433
|
+
// =============================================================================
|
|
434
|
+
/**
|
|
435
|
+
* Register all extension points from a plugin
|
|
436
|
+
*/
|
|
437
|
+
registerAllFromPlugin(pluginName) {
|
|
438
|
+
this.registerAgentTypes(pluginName);
|
|
439
|
+
this.registerTaskTypes(pluginName);
|
|
440
|
+
this.registerMCPTools(pluginName);
|
|
441
|
+
this.registerCLICommands(pluginName);
|
|
442
|
+
this.registerMemoryBackends(pluginName);
|
|
443
|
+
this.collectPluginMetrics(pluginName);
|
|
444
|
+
}
|
|
445
|
+
/**
|
|
446
|
+
* Clear all registrations (for testing)
|
|
447
|
+
*/
|
|
448
|
+
clear() {
|
|
449
|
+
this.plugins.clear();
|
|
450
|
+
this.agentTypes.clear();
|
|
451
|
+
this.taskTypes.clear();
|
|
452
|
+
this.mcpTools.clear();
|
|
453
|
+
this.cliCommands.clear();
|
|
454
|
+
this.memoryBackends.clear();
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
//# sourceMappingURL=plugin-registry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-registry.js","sourceRoot":"","sources":["../src/plugin-registry.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAaH,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD;;GAEG;AACH,MAAM,OAAO,cAAc;IACjB,OAAO,GAAG,IAAI,GAAG,EAAsB,CAAC;IACxC,UAAU,GAAG,IAAI,GAAG,EAA+D,CAAC;IACpF,SAAS,GAAG,IAAI,GAAG,EAA8D,CAAC;IAClF,QAAQ,GAAG,IAAI,GAAG,EAA6D,CAAC;IAChF,WAAW,GAAG,IAAI,GAAG,EAAgE,CAAC;IACtF,cAAc,GAAG,IAAI,GAAG,EAA6D,CAAC;IAE9F;;OAEG;IACH,cAAc,CACZ,MAAwB,EACxB,YAAkC,EAClC,OAAsB;QAEtB,IAAI,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC;YAClC,MAAM,IAAI,WAAW,CACnB,WAAW,MAAM,CAAC,IAAI,yBAAyB,EAC/C,MAAM,CAAC,IAAI,EACX,kBAAkB,CACnB,CAAC;QACJ,CAAC;QAED,MAAM,IAAI,GAAe;YACvB,MAAM;YACN,KAAK,EAAE,YAAY;YACnB,OAAO;YACP,OAAO,EAAE;gBACP,oBAAoB,EAAE,CAAC;gBACvB,mBAAmB,EAAE,CAAC;gBACtB,kBAAkB,EAAE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ementation
|
|
3
|
+
*
|
|
4
|
+
* Plugin architecture for extending Claude Flow functionality.
|
|
5
|
+
*
|
|
6
|
+
* @module v3/shared/plugins
|
|
7
|
+
*/
|
|
8
|
+
export type { PluginConfig, PluginContext, PluginEvent, PluginEventHandler, ClaudeFlowPlugin, PluginMetadata, IPluginRegistry, IPluginLoader, } from './types.js';
|
|
9
|
+
export { HiveMindPlugin, createHiveMindPlugin, type HiveMindConfig, type CollectiveDecision, type EmergentPattern, MaestroPlugin, createMaestroPlugin, type MaestroConfig, type WorkflowStep, type Workflow, type OrchestrationResult, } from './official/index.js';
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/plugins/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,YAAY,EACV,YAAY,EACZ,aAAa,EACb,WAAW,EACX,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,aAAa,GACd,MAAM,YAAY,CAAC;AAGpB,OAAO,EACL,cAAc,EACd,oBAAoB,EACpB,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,aAAa,EACb,mBAAmB,EACnB,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,QAAQ,EACb,KAAK,mBAAmB,GACzB,MAAM,qBAAqB,CAAC"}
|