@claude-flow/cli 3.0.0-alpha.6 → 3.0.0-alpha.60
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/agents/analysis/analyze-code-quality.md +181 -0
- package/.claude/agents/analysis/code-analyzer.md +210 -0
- package/.claude/agents/architecture/arch-system-design.md +157 -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 +453 -0
- package/.claude/agents/core/planner.md +375 -0
- package/.claude/agents/core/researcher.md +369 -0
- package/.claude/agents/core/reviewer.md +520 -0
- package/.claude/agents/core/tester.md +512 -0
- package/.claude/agents/custom/test-long-runner.md +44 -0
- package/.claude/agents/data/data-ml-model.md +445 -0
- package/.claude/agents/development/dev-backend-api.md +346 -0
- package/.claude/agents/devops/ops-cicd-github.md +165 -0
- package/.claude/agents/documentation/docs-api-openapi.md +355 -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 +377 -0
- package/.claude/agents/github/github-modes.md +173 -0
- package/.claude/agents/github/issue-tracker.md +576 -0
- package/.claude/agents/github/multi-repo-swarm.md +553 -0
- package/.claude/agents/github/pr-manager.md +438 -0
- package/.claude/agents/github/project-board-sync.md +509 -0
- package/.claude/agents/github/release-manager.md +605 -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 +903 -0
- package/.claude/agents/goal/agent.md +816 -0
- package/.claude/agents/goal/goal-planner.md +73 -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/sona/sona-learning-optimizer.md +254 -0
- package/.claude/agents/sparc/architecture.md +699 -0
- package/.claude/agents/sparc/pseudocode.md +520 -0
- package/.claude/agents/sparc/refinement.md +802 -0
- package/.claude/agents/sparc/specification.md +478 -0
- package/.claude/agents/specialized/spec-mobile-react-native.md +227 -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/adaptive-coordinator.md +1127 -0
- package/.claude/agents/swarm/hierarchical-coordinator.md +710 -0
- package/.claude/agents/swarm/mesh-coordinator.md +963 -0
- package/.claude/agents/templates/automation-smart-agent.md +205 -0
- package/.claude/agents/templates/base-template-generator.md +268 -0
- package/.claude/agents/templates/coordinator-swarm-init.md +90 -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/orchestrator-task.md +139 -0
- package/.claude/agents/templates/performance-analyzer.md +199 -0
- package/.claude/agents/templates/sparc-coordinator.md +514 -0
- package/.claude/agents/testing/production-validator.md +395 -0
- package/.claude/agents/testing/tdd-london-swarm.md +244 -0
- package/.claude/agents/v3/adr-architect.md +184 -0
- package/.claude/agents/v3/claims-authorizer.md +208 -0
- package/.claude/agents/v3/collective-intelligence-coordinator.md +993 -0
- package/.claude/agents/v3/ddd-domain-expert.md +220 -0
- package/.claude/agents/v3/memory-specialist.md +995 -0
- package/.claude/agents/v3/performance-engineer.md +1233 -0
- package/.claude/agents/v3/reasoningbank-learner.md +213 -0
- package/.claude/agents/v3/security-architect.md +867 -0
- package/.claude/agents/v3/security-auditor.md +771 -0
- package/.claude/agents/v3/sparc-orchestrator.md +182 -0
- package/.claude/agents/v3/swarm-memory-manager.md +157 -0
- package/.claude/agents/v3/v3-integration-architect.md +205 -0
- package/.claude/commands/agents/README.md +50 -0
- package/.claude/commands/agents/agent-capabilities.md +140 -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 +216 -0
- package/.claude/commands/agents/health.md +139 -0
- package/.claude/commands/agents/list.md +100 -0
- package/.claude/commands/agents/logs.md +130 -0
- package/.claude/commands/agents/metrics.md +122 -0
- package/.claude/commands/agents/pool.md +127 -0
- package/.claude/commands/agents/spawn.md +140 -0
- package/.claude/commands/agents/status.md +115 -0
- package/.claude/commands/agents/stop.md +102 -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 +87 -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/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/memory.js +83 -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/post-commit +16 -0
- package/.claude/helpers/pre-commit +26 -0
- package/.claude/helpers/quick-start.sh +19 -0
- package/.claude/helpers/router.js +66 -0
- package/.claude/helpers/security-scanner.sh +127 -0
- package/.claude/helpers/session.js +127 -0
- package/.claude/helpers/setup-mcp.sh +18 -0
- package/.claude/helpers/standard-checkpoint-hooks.sh +189 -0
- package/.claude/helpers/statusline-hook.sh +21 -0
- package/.claude/helpers/statusline.js +316 -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/settings.json +259 -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-flow → .claude/skills/skill-builder/.claude-flow}/metrics/performance.json +3 -3
- 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/README.md +428 -6
- package/bin/cli.js +142 -6
- package/bin/mcp-server.js +188 -0
- package/dist/src/commands/agent.d.ts.map +1 -1
- package/dist/src/commands/agent.js +42 -26
- package/dist/src/commands/agent.js.map +1 -1
- package/dist/src/commands/analyze.d.ts +19 -0
- package/dist/src/commands/analyze.d.ts.map +1 -0
- package/dist/src/commands/analyze.js +1823 -0
- package/dist/src/commands/analyze.js.map +1 -0
- package/dist/src/commands/claims.d.ts +10 -0
- package/dist/src/commands/claims.d.ts.map +1 -0
- package/dist/src/commands/claims.js +288 -0
- package/dist/src/commands/claims.js.map +1 -0
- package/dist/src/commands/completions.d.ts +10 -0
- package/dist/src/commands/completions.d.ts.map +1 -0
- package/dist/src/commands/completions.js +539 -0
- package/dist/src/commands/completions.js.map +1 -0
- package/dist/src/commands/daemon.d.ts +8 -0
- package/dist/src/commands/daemon.d.ts.map +1 -0
- package/dist/src/commands/daemon.js +593 -0
- package/dist/src/commands/daemon.js.map +1 -0
- package/dist/src/commands/deployment.d.ts +10 -0
- package/dist/src/commands/deployment.d.ts.map +1 -0
- package/dist/src/commands/deployment.js +289 -0
- package/dist/src/commands/deployment.js.map +1 -0
- package/dist/src/commands/doctor.d.ts +10 -0
- package/dist/src/commands/doctor.d.ts.map +1 -0
- package/dist/src/commands/doctor.js +448 -0
- package/dist/src/commands/doctor.js.map +1 -0
- package/dist/src/commands/embeddings.d.ts +18 -0
- package/dist/src/commands/embeddings.d.ts.map +1 -0
- package/dist/src/commands/embeddings.js +616 -0
- package/dist/src/commands/embeddings.js.map +1 -0
- package/dist/src/commands/hive-mind.d.ts.map +1 -1
- package/dist/src/commands/hive-mind.js +252 -35
- package/dist/src/commands/hive-mind.js.map +1 -1
- package/dist/src/commands/hooks.d.ts.map +1 -1
- package/dist/src/commands/hooks.js +729 -6
- package/dist/src/commands/hooks.js.map +1 -1
- package/dist/src/commands/index.d.ts +52 -14
- package/dist/src/commands/index.d.ts.map +1 -1
- package/dist/src/commands/index.js +191 -38
- package/dist/src/commands/index.js.map +1 -1
- package/dist/src/commands/init.d.ts.map +1 -1
- package/dist/src/commands/init.js +80 -9
- package/dist/src/commands/init.js.map +1 -1
- package/dist/src/commands/issues.d.ts +21 -0
- package/dist/src/commands/issues.d.ts.map +1 -0
- package/dist/src/commands/issues.js +567 -0
- package/dist/src/commands/issues.js.map +1 -0
- package/dist/src/commands/mcp.js +3 -3
- package/dist/src/commands/mcp.js.map +1 -1
- package/dist/src/commands/memory.d.ts.map +1 -1
- package/dist/src/commands/memory.js +223 -4
- package/dist/src/commands/memory.js.map +1 -1
- package/dist/src/commands/neural.d.ts +10 -0
- package/dist/src/commands/neural.d.ts.map +1 -0
- package/dist/src/commands/neural.js +224 -0
- package/dist/src/commands/neural.js.map +1 -0
- package/dist/src/commands/performance.d.ts +10 -0
- package/dist/src/commands/performance.d.ts.map +1 -0
- package/dist/src/commands/performance.js +262 -0
- package/dist/src/commands/performance.js.map +1 -0
- package/dist/src/commands/plugins.d.ts +11 -0
- package/dist/src/commands/plugins.d.ts.map +1 -0
- package/dist/src/commands/plugins.js +630 -0
- package/dist/src/commands/plugins.js.map +1 -0
- package/dist/src/commands/progress.d.ts +11 -0
- package/dist/src/commands/progress.d.ts.map +1 -0
- package/dist/src/commands/progress.js +259 -0
- package/dist/src/commands/progress.js.map +1 -0
- package/dist/src/commands/providers.d.ts +10 -0
- package/dist/src/commands/providers.d.ts.map +1 -0
- package/dist/src/commands/providers.js +232 -0
- package/dist/src/commands/providers.js.map +1 -0
- package/dist/src/commands/route.d.ts +16 -0
- package/dist/src/commands/route.d.ts.map +1 -0
- package/dist/src/commands/route.js +813 -0
- package/dist/src/commands/route.js.map +1 -0
- package/dist/src/commands/security.d.ts +10 -0
- package/dist/src/commands/security.d.ts.map +1 -0
- package/dist/src/commands/security.js +261 -0
- package/dist/src/commands/security.js.map +1 -0
- package/dist/src/commands/start.d.ts.map +1 -1
- package/dist/src/commands/start.js +22 -2
- package/dist/src/commands/start.js.map +1 -1
- package/dist/src/commands/swarm.d.ts.map +1 -1
- package/dist/src/commands/swarm.js +185 -32
- package/dist/src/commands/swarm.js.map +1 -1
- package/dist/src/commands/transfer-store.d.ts +13 -0
- package/dist/src/commands/transfer-store.d.ts.map +1 -0
- package/dist/src/commands/transfer-store.js +428 -0
- package/dist/src/commands/transfer-store.js.map +1 -0
- package/dist/src/index.d.ts +3 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +69 -10
- package/dist/src/index.js.map +1 -1
- package/dist/src/init/claudemd-generator.d.ts.map +1 -1
- package/dist/src/init/claudemd-generator.js +407 -405
- package/dist/src/init/claudemd-generator.js.map +1 -1
- package/dist/src/init/executor.d.ts.map +1 -1
- package/dist/src/init/executor.js +142 -31
- package/dist/src/init/executor.js.map +1 -1
- package/dist/src/init/helpers-generator.js +1 -1
- package/dist/src/init/helpers-generator.js.map +1 -1
- package/dist/src/init/mcp-generator.d.ts +9 -0
- package/dist/src/init/mcp-generator.d.ts.map +1 -1
- package/dist/src/init/mcp-generator.js +57 -28
- package/dist/src/init/mcp-generator.js.map +1 -1
- package/dist/src/init/settings-generator.d.ts.map +1 -1
- package/dist/src/init/settings-generator.js +116 -62
- package/dist/src/init/settings-generator.js.map +1 -1
- package/dist/src/init/statusline-generator.d.ts +6 -0
- package/dist/src/init/statusline-generator.d.ts.map +1 -1
- package/dist/src/init/statusline-generator.js +252 -89
- package/dist/src/init/statusline-generator.js.map +1 -1
- package/dist/src/init/types.d.ts +6 -0
- package/dist/src/init/types.d.ts.map +1 -1
- package/dist/src/init/types.js +8 -2
- package/dist/src/init/types.js.map +1 -1
- package/dist/src/mcp-client.d.ts.map +1 -1
- package/dist/src/mcp-client.js +17 -1
- package/dist/src/mcp-client.js.map +1 -1
- package/dist/src/mcp-server.d.ts +6 -1
- package/dist/src/mcp-server.d.ts.map +1 -1
- package/dist/src/mcp-server.js +169 -38
- package/dist/src/mcp-server.js.map +1 -1
- package/dist/src/mcp-tools/agent-tools.d.ts +1 -1
- package/dist/src/mcp-tools/agent-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/agent-tools.js +350 -14
- package/dist/src/mcp-tools/agent-tools.js.map +1 -1
- package/dist/src/mcp-tools/analyze-tools.d.ts +38 -0
- package/dist/src/mcp-tools/analyze-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/analyze-tools.js +317 -0
- package/dist/src/mcp-tools/analyze-tools.js.map +1 -0
- package/dist/src/mcp-tools/config-tools.d.ts +1 -1
- package/dist/src/mcp-tools/config-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/config-tools.js +262 -15
- package/dist/src/mcp-tools/config-tools.js.map +1 -1
- package/dist/src/mcp-tools/hive-mind-tools.d.ts +8 -0
- package/dist/src/mcp-tools/hive-mind-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/hive-mind-tools.js +447 -0
- package/dist/src/mcp-tools/hive-mind-tools.js.map +1 -0
- package/dist/src/mcp-tools/hooks-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/hooks-tools.js +195 -31
- package/dist/src/mcp-tools/hooks-tools.js.map +1 -1
- package/dist/src/mcp-tools/index.d.ts +6 -0
- package/dist/src/mcp-tools/index.d.ts.map +1 -1
- package/dist/src/mcp-tools/index.js +6 -0
- package/dist/src/mcp-tools/index.js.map +1 -1
- package/dist/src/mcp-tools/progress-tools.d.ts +14 -0
- package/dist/src/mcp-tools/progress-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/progress-tools.js +343 -0
- package/dist/src/mcp-tools/progress-tools.js.map +1 -0
- package/dist/src/mcp-tools/session-tools.d.ts +1 -1
- package/dist/src/mcp-tools/session-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/session-tools.js +237 -22
- package/dist/src/mcp-tools/session-tools.js.map +1 -1
- package/dist/src/mcp-tools/task-tools.d.ts +1 -1
- package/dist/src/mcp-tools/task-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/task-tools.js +219 -17
- package/dist/src/mcp-tools/task-tools.js.map +1 -1
- package/dist/src/mcp-tools/transfer-tools.d.ts +14 -0
- package/dist/src/mcp-tools/transfer-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/transfer-tools.js +396 -0
- package/dist/src/mcp-tools/transfer-tools.js.map +1 -0
- package/dist/src/mcp-tools/workflow-tools.d.ts +8 -0
- package/dist/src/mcp-tools/workflow-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/workflow-tools.js +481 -0
- package/dist/src/mcp-tools/workflow-tools.js.map +1 -0
- package/dist/src/output.d.ts +16 -0
- package/dist/src/output.d.ts.map +1 -1
- package/dist/src/output.js +42 -0
- package/dist/src/output.js.map +1 -1
- package/dist/src/plugins/store/discovery.d.ts +73 -0
- package/dist/src/plugins/store/discovery.d.ts.map +1 -0
- package/dist/src/plugins/store/discovery.js +568 -0
- package/dist/src/plugins/store/discovery.js.map +1 -0
- package/dist/src/plugins/store/index.d.ts +76 -0
- package/dist/src/plugins/store/index.d.ts.map +1 -0
- package/dist/src/plugins/store/index.js +141 -0
- package/dist/src/plugins/store/index.js.map +1 -0
- package/dist/src/plugins/store/search.d.ts +46 -0
- package/dist/src/plugins/store/search.d.ts.map +1 -0
- package/dist/src/plugins/store/search.js +230 -0
- package/dist/src/plugins/store/search.js.map +1 -0
- package/dist/src/plugins/store/types.d.ts +274 -0
- package/dist/src/plugins/store/types.d.ts.map +1 -0
- package/dist/src/plugins/store/types.js +7 -0
- package/dist/src/plugins/store/types.js.map +1 -0
- package/dist/src/plugins/tests/demo-plugin-store.d.ts +7 -0
- package/dist/src/plugins/tests/demo-plugin-store.d.ts.map +1 -0
- package/dist/src/plugins/tests/demo-plugin-store.js +126 -0
- package/dist/src/plugins/tests/demo-plugin-store.js.map +1 -0
- package/dist/src/plugins/tests/standalone-test.d.ts +12 -0
- package/dist/src/plugins/tests/standalone-test.d.ts.map +1 -0
- package/dist/src/plugins/tests/standalone-test.js +188 -0
- package/dist/src/plugins/tests/standalone-test.js.map +1 -0
- package/dist/src/plugins/tests/test-plugin-store.d.ts +7 -0
- package/dist/src/plugins/tests/test-plugin-store.d.ts.map +1 -0
- package/dist/src/plugins/tests/test-plugin-store.js +206 -0
- package/dist/src/plugins/tests/test-plugin-store.js.map +1 -0
- package/dist/src/ruvector/ast-analyzer.d.ts +67 -0
- package/dist/src/ruvector/ast-analyzer.d.ts.map +1 -0
- package/dist/src/ruvector/ast-analyzer.js +277 -0
- package/dist/src/ruvector/ast-analyzer.js.map +1 -0
- package/dist/src/ruvector/coverage-router.d.ts +160 -0
- package/dist/src/ruvector/coverage-router.d.ts.map +1 -0
- package/dist/src/ruvector/coverage-router.js +529 -0
- package/dist/src/ruvector/coverage-router.js.map +1 -0
- package/dist/src/ruvector/coverage-tools.d.ts +33 -0
- package/dist/src/ruvector/coverage-tools.d.ts.map +1 -0
- package/dist/src/ruvector/coverage-tools.js +157 -0
- package/dist/src/ruvector/coverage-tools.js.map +1 -0
- package/dist/src/ruvector/diff-classifier.d.ts +175 -0
- package/dist/src/ruvector/diff-classifier.d.ts.map +1 -0
- package/dist/src/ruvector/diff-classifier.js +698 -0
- package/dist/src/ruvector/diff-classifier.js.map +1 -0
- package/dist/src/ruvector/graph-analyzer.d.ts +187 -0
- package/dist/src/ruvector/graph-analyzer.d.ts.map +1 -0
- package/dist/src/ruvector/graph-analyzer.js +929 -0
- package/dist/src/ruvector/graph-analyzer.js.map +1 -0
- package/dist/src/ruvector/index.d.ts +27 -0
- package/dist/src/ruvector/index.d.ts.map +1 -0
- package/dist/src/ruvector/index.js +53 -0
- package/dist/src/ruvector/index.js.map +1 -0
- package/dist/src/ruvector/q-learning-router.d.ts +211 -0
- package/dist/src/ruvector/q-learning-router.d.ts.map +1 -0
- package/dist/src/ruvector/q-learning-router.js +681 -0
- package/dist/src/ruvector/q-learning-router.js.map +1 -0
- package/dist/src/ruvector/vector-db.d.ts +69 -0
- package/dist/src/ruvector/vector-db.d.ts.map +1 -0
- package/dist/src/ruvector/vector-db.js +243 -0
- package/dist/src/ruvector/vector-db.js.map +1 -0
- package/dist/src/services/claim-service.d.ts +204 -0
- package/dist/src/services/claim-service.d.ts.map +1 -0
- package/dist/src/services/claim-service.js +818 -0
- package/dist/src/services/claim-service.js.map +1 -0
- package/dist/src/services/container-worker-pool.d.ts +197 -0
- package/dist/src/services/container-worker-pool.d.ts.map +1 -0
- package/dist/src/services/container-worker-pool.js +581 -0
- package/dist/src/services/container-worker-pool.js.map +1 -0
- package/dist/src/services/headless-worker-executor.d.ts +304 -0
- package/dist/src/services/headless-worker-executor.d.ts.map +1 -0
- package/dist/src/services/headless-worker-executor.js +997 -0
- package/dist/src/services/headless-worker-executor.js.map +1 -0
- package/dist/src/services/index.d.ts +13 -0
- package/dist/src/services/index.d.ts.map +1 -0
- package/dist/src/services/index.js +11 -0
- package/dist/src/services/index.js.map +1 -0
- package/dist/src/services/worker-daemon.d.ts +203 -0
- package/dist/src/services/worker-daemon.d.ts.map +1 -0
- package/dist/src/services/worker-daemon.js +745 -0
- package/dist/src/services/worker-daemon.js.map +1 -0
- package/dist/src/services/worker-queue.d.ts +194 -0
- package/dist/src/services/worker-queue.d.ts.map +1 -0
- package/dist/src/services/worker-queue.js +511 -0
- package/dist/src/services/worker-queue.js.map +1 -0
- package/dist/src/suggest.d.ts +53 -0
- package/dist/src/suggest.d.ts.map +1 -0
- package/dist/src/suggest.js +200 -0
- package/dist/src/suggest.js.map +1 -0
- package/dist/src/transfer/anonymization/index.d.ts +25 -0
- package/dist/src/transfer/anonymization/index.d.ts.map +1 -0
- package/dist/src/transfer/anonymization/index.js +175 -0
- package/dist/src/transfer/anonymization/index.js.map +1 -0
- package/dist/src/transfer/deploy-seraphine.d.ts +13 -0
- package/dist/src/transfer/deploy-seraphine.d.ts.map +1 -0
- package/dist/src/transfer/deploy-seraphine.js +205 -0
- package/dist/src/transfer/deploy-seraphine.js.map +1 -0
- package/dist/src/transfer/export.d.ts +25 -0
- package/dist/src/transfer/export.d.ts.map +1 -0
- package/dist/src/transfer/export.js +113 -0
- package/dist/src/transfer/export.js.map +1 -0
- package/dist/src/transfer/index.d.ts +12 -0
- package/dist/src/transfer/index.d.ts.map +1 -0
- package/dist/src/transfer/index.js +31 -0
- package/dist/src/transfer/index.js.map +1 -0
- package/dist/src/transfer/ipfs/client.d.ts +31 -0
- package/dist/src/transfer/ipfs/client.d.ts.map +1 -0
- package/dist/src/transfer/ipfs/client.js +74 -0
- package/dist/src/transfer/ipfs/client.js.map +1 -0
- package/dist/src/transfer/ipfs/upload.d.ts +95 -0
- package/dist/src/transfer/ipfs/upload.d.ts.map +1 -0
- package/dist/src/transfer/ipfs/upload.js +410 -0
- package/dist/src/transfer/ipfs/upload.js.map +1 -0
- package/dist/src/transfer/models/seraphine.d.ts +72 -0
- package/dist/src/transfer/models/seraphine.d.ts.map +1 -0
- package/dist/src/transfer/models/seraphine.js +373 -0
- package/dist/src/transfer/models/seraphine.js.map +1 -0
- package/dist/src/transfer/serialization/cfp.d.ts +49 -0
- package/dist/src/transfer/serialization/cfp.d.ts.map +1 -0
- package/dist/src/transfer/serialization/cfp.js +180 -0
- package/dist/src/transfer/serialization/cfp.js.map +1 -0
- package/dist/src/transfer/store/discovery.d.ts +84 -0
- package/dist/src/transfer/store/discovery.d.ts.map +1 -0
- package/dist/src/transfer/store/discovery.js +275 -0
- package/dist/src/transfer/store/discovery.js.map +1 -0
- package/dist/src/transfer/store/download.d.ts +70 -0
- package/dist/src/transfer/store/download.d.ts.map +1 -0
- package/dist/src/transfer/store/download.js +295 -0
- package/dist/src/transfer/store/download.js.map +1 -0
- package/dist/src/transfer/store/index.d.ts +84 -0
- package/dist/src/transfer/store/index.d.ts.map +1 -0
- package/dist/src/transfer/store/index.js +153 -0
- package/dist/src/transfer/store/index.js.map +1 -0
- package/dist/src/transfer/store/publish.d.ts +76 -0
- package/dist/src/transfer/store/publish.d.ts.map +1 -0
- package/dist/src/transfer/store/publish.js +262 -0
- package/dist/src/transfer/store/publish.js.map +1 -0
- package/dist/src/transfer/store/registry.d.ts +58 -0
- package/dist/src/transfer/store/registry.d.ts.map +1 -0
- package/dist/src/transfer/store/registry.js +285 -0
- package/dist/src/transfer/store/registry.js.map +1 -0
- package/dist/src/transfer/store/search.d.ts +54 -0
- package/dist/src/transfer/store/search.d.ts.map +1 -0
- package/dist/src/transfer/store/search.js +232 -0
- package/dist/src/transfer/store/search.js.map +1 -0
- package/dist/src/transfer/store/tests/standalone-test.d.ts +12 -0
- package/dist/src/transfer/store/tests/standalone-test.d.ts.map +1 -0
- package/dist/src/transfer/store/tests/standalone-test.js +190 -0
- package/dist/src/transfer/store/tests/standalone-test.js.map +1 -0
- package/dist/src/transfer/store/types.d.ts +193 -0
- package/dist/src/transfer/store/types.d.ts.map +1 -0
- package/dist/src/transfer/store/types.js +6 -0
- package/dist/src/transfer/store/types.js.map +1 -0
- package/dist/src/transfer/test-seraphine.d.ts +6 -0
- package/dist/src/transfer/test-seraphine.d.ts.map +1 -0
- package/dist/src/transfer/test-seraphine.js +105 -0
- package/dist/src/transfer/test-seraphine.js.map +1 -0
- package/dist/src/transfer/tests/test-store.d.ts +7 -0
- package/dist/src/transfer/tests/test-store.d.ts.map +1 -0
- package/dist/src/transfer/tests/test-store.js +214 -0
- package/dist/src/transfer/tests/test-store.js.map +1 -0
- package/dist/src/transfer/types.d.ts +245 -0
- package/dist/src/transfer/types.d.ts.map +1 -0
- package/dist/src/transfer/types.js +6 -0
- package/dist/src/transfer/types.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +37 -9
- package/.agentic-flow/intelligence.json +0 -17
- package/.claude-flow/metrics/task-metrics.json +0 -10
- package/__tests__/README.md +0 -140
- package/__tests__/TEST_SUMMARY.md +0 -144
- package/__tests__/cli.test.ts +0 -558
- package/__tests__/commands.test.ts +0 -726
- package/__tests__/config-adapter.test.ts +0 -362
- package/__tests__/config-loading.test.ts +0 -106
- package/__tests__/coverage/.tmp/coverage-0.json +0 -1
- package/__tests__/coverage/.tmp/coverage-1.json +0 -1
- package/__tests__/coverage/.tmp/coverage-2.json +0 -1
- package/__tests__/coverage/.tmp/coverage-3.json +0 -1
- package/__tests__/coverage/.tmp/coverage-4.json +0 -1
- package/__tests__/coverage/.tmp/coverage-5.json +0 -1
- package/__tests__/mcp-client.test.ts +0 -480
- package/__tests__/p1-commands.test.ts +0 -1064
- package/agents/architect.yaml +0 -11
- package/agents/coder.yaml +0 -11
- package/agents/reviewer.yaml +0 -10
- package/agents/security-architect.yaml +0 -10
- package/agents/tester.yaml +0 -10
- package/docs/CONFIG_LOADING.md +0 -236
- package/docs/IMPLEMENTATION_COMPLETE.md +0 -421
- package/docs/MCP_CLIENT_GUIDE.md +0 -620
- package/docs/REFACTORING_SUMMARY.md +0 -247
- package/src/commands/agent.ts +0 -941
- package/src/commands/config.ts +0 -452
- package/src/commands/hive-mind.ts +0 -762
- package/src/commands/hooks.ts +0 -2603
- package/src/commands/index.ts +0 -115
- package/src/commands/init.ts +0 -597
- package/src/commands/mcp.ts +0 -753
- package/src/commands/memory.ts +0 -1161
- package/src/commands/migrate.ts +0 -447
- package/src/commands/process.ts +0 -695
- package/src/commands/session.ts +0 -891
- package/src/commands/start.ts +0 -457
- package/src/commands/status.ts +0 -736
- package/src/commands/swarm.ts +0 -648
- package/src/commands/task.ts +0 -792
- package/src/commands/workflow.ts +0 -742
- package/src/config-adapter.ts +0 -210
- package/src/index.ts +0 -400
- package/src/infrastructure/in-memory-repositories.ts +0 -310
- package/src/init/claudemd-generator.ts +0 -631
- package/src/init/executor.ts +0 -762
- package/src/init/helpers-generator.ts +0 -628
- package/src/init/index.ts +0 -60
- package/src/init/mcp-generator.ts +0 -83
- package/src/init/settings-generator.ts +0 -274
- package/src/init/statusline-generator.ts +0 -211
- package/src/init/types.ts +0 -447
- package/src/mcp-client.ts +0 -229
- package/src/mcp-server.ts +0 -577
- package/src/mcp-tools/agent-tools.ts +0 -92
- package/src/mcp-tools/config-tools.ts +0 -88
- package/src/mcp-tools/hooks-tools.ts +0 -1849
- package/src/mcp-tools/index.ts +0 -14
- package/src/mcp-tools/memory-tools.ts +0 -270
- package/src/mcp-tools/session-tools.ts +0 -102
- package/src/mcp-tools/swarm-tools.ts +0 -105
- package/src/mcp-tools/task-tools.ts +0 -102
- package/src/mcp-tools/types.ts +0 -33
- package/src/output.ts +0 -593
- package/src/parser.ts +0 -417
- package/src/prompt.ts +0 -619
- package/src/types.ts +0 -287
- package/tsconfig.json +0 -16
- package/tsconfig.tsbuildinfo +0 -1
- package/vitest.config.ts +0 -13
- /package/{tmp.json → .claude/agents/tmp.json} +0 -0
- /package/{.claude-flow → .claude/skills/skill-builder/.claude-flow}/metrics/agent-metrics.json +0 -0
package/README.md
CHANGED
|
@@ -5,19 +5,20 @@
|
|
|
5
5
|
[](https://opensource.org/licenses/MIT)
|
|
6
6
|
[](https://www.typescriptlang.org/)
|
|
7
7
|
[](https://nodejs.org/)
|
|
8
|
-
[](https://github.com/ruvnet/claude-flow)
|
|
9
|
+
[](https://github.com/ruvnet/claude-flow)
|
|
10
10
|
|
|
11
|
-
> Modern CLI module for Claude Flow V3 - comprehensive command-line interface with
|
|
11
|
+
> Modern CLI module for Claude Flow V3 - comprehensive command-line interface with 29 commands, 170+ subcommands, interactive prompts, self-learning hooks, background workers, hive-mind coordination, Q-Learning agent routing, code analysis, collaborative issue claims, smart error suggestions, and beautiful output formatting.
|
|
12
12
|
|
|
13
13
|
## Features
|
|
14
14
|
|
|
15
15
|
### Core Capabilities
|
|
16
|
-
- **
|
|
17
|
-
- **
|
|
16
|
+
- **29 Main Commands** - Complete CLI coverage for all Claude Flow operations
|
|
17
|
+
- **170+ Subcommands** - Fine-grained control over every aspect of the system
|
|
18
18
|
- **Advanced Argument Parsing** - Full support for flags, options, subcommands, and positional arguments
|
|
19
19
|
- **Interactive Prompts** - Rich interactive mode with confirmations, selections, and input validation
|
|
20
20
|
- **Beautiful Output** - Colored output, tables, progress bars, spinners, and multiple formats (text, JSON, table)
|
|
21
|
+
- **Smart Error Suggestions** - Levenshtein distance-based typo detection with helpful corrections
|
|
21
22
|
|
|
22
23
|
### V3-Specific Features
|
|
23
24
|
- **Self-Learning Hooks** - 17 hook subcommands + 12 background workers with pattern learning and neural integration
|
|
@@ -25,11 +26,15 @@
|
|
|
25
26
|
- **15-Agent Swarm** - V3 hierarchical mesh coordination with domain specialization
|
|
26
27
|
- **AgentDB Integration** - 150x-12,500x faster vector search with HNSW indexing
|
|
27
28
|
- **SONA Learning** - Sub-0.05ms adaptation with Mixture of Experts routing
|
|
29
|
+
- **Q-Learning Routing** - Intelligent task-to-agent routing with reinforcement learning
|
|
30
|
+
- **Code Analysis** - AST analysis, diff classification, complexity metrics, boundary detection
|
|
31
|
+
- **Issue Claims (ADR-016)** - Collaborative human-agent issue management with work stealing
|
|
28
32
|
|
|
29
33
|
### Developer Experience
|
|
30
34
|
- **Type-Safe** - Full TypeScript support with comprehensive type definitions
|
|
31
35
|
- **Global Options** - Built-in `--help`, `--version`, `--verbose`, `--quiet`, `--format`
|
|
32
|
-
- **
|
|
36
|
+
- **Shell Completions** - Full tab completion for bash, zsh, fish, and PowerShell
|
|
37
|
+
- **Doctor Command** - System diagnostics with health checks and suggested fixes
|
|
33
38
|
- **Migration Tools** - Built-in V2 to V3 migration with rollback support
|
|
34
39
|
|
|
35
40
|
## Installation
|
|
@@ -63,6 +68,15 @@ claude-flow swarm init --v3-mode
|
|
|
63
68
|
# Search memory
|
|
64
69
|
claude-flow memory search -q "authentication patterns"
|
|
65
70
|
|
|
71
|
+
# Route task to optimal agent (Q-Learning)
|
|
72
|
+
claude-flow route task "Implement OAuth2 authentication"
|
|
73
|
+
|
|
74
|
+
# Analyze code complexity
|
|
75
|
+
claude-flow analyze complexity ./src
|
|
76
|
+
|
|
77
|
+
# Claim an issue
|
|
78
|
+
claude-flow issues claim ISSUE-123
|
|
79
|
+
|
|
66
80
|
# Check system status
|
|
67
81
|
claude-flow status --watch
|
|
68
82
|
```
|
|
@@ -87,6 +101,21 @@ claude-flow status --watch
|
|
|
87
101
|
| `hooks` | 17 | Self-learning hooks with neural pattern recognition + 12 background workers |
|
|
88
102
|
| `hive-mind` | 6 | Queen-led consensus-based multi-agent coordination |
|
|
89
103
|
| `migrate` | 5 | V2 to V3 migration with rollback support |
|
|
104
|
+
| `process` | 4 | Background process management and monitoring |
|
|
105
|
+
| `daemon` | 5 | Node.js worker daemon (start, stop, status, trigger, enable) |
|
|
106
|
+
| `neural` | 5 | Neural pattern training (train, status, patterns, predict, optimize) |
|
|
107
|
+
| `security` | 6 | Security scanning (scan, audit, cve, threats, validate, report) |
|
|
108
|
+
| `performance` | 5 | Performance profiling (benchmark, profile, metrics, optimize, report) |
|
|
109
|
+
| `providers` | 5 | AI providers (list, add, remove, test, configure) |
|
|
110
|
+
| `plugins` | 5 | Plugin management (list, install, uninstall, enable, disable) |
|
|
111
|
+
| `deployment` | 5 | Deployment management (deploy, rollback, status, environments, release) |
|
|
112
|
+
| `embeddings` | 4 | Vector embeddings (embed, batch, search, init) - 75x faster with agentic-flow |
|
|
113
|
+
| `claims` | 4 | Claims-based authorization (check, grant, revoke, list) |
|
|
114
|
+
| `issues` | 10 | Collaborative issue claims with work stealing (ADR-016) |
|
|
115
|
+
| `route` | 7 | Q-Learning agent routing with reinforcement learning |
|
|
116
|
+
| `analyze` | 11 | Code analysis (AST, diff, complexity, boundaries, dependencies) |
|
|
117
|
+
| `doctor` | 1 | System diagnostics with health checks and suggested fixes |
|
|
118
|
+
| `completions` | 4 | Shell completions for bash, zsh, fish, and PowerShell |
|
|
90
119
|
|
|
91
120
|
---
|
|
92
121
|
|
|
@@ -954,6 +983,396 @@ claude-flow migrate rollback --backup-id backup-1704369600
|
|
|
954
983
|
|
|
955
984
|
---
|
|
956
985
|
|
|
986
|
+
### `doctor` - System Diagnostics
|
|
987
|
+
|
|
988
|
+
System health checks with automatic fix suggestions.
|
|
989
|
+
|
|
990
|
+
```bash
|
|
991
|
+
claude-flow doctor [options]
|
|
992
|
+
```
|
|
993
|
+
|
|
994
|
+
#### Health Checks
|
|
995
|
+
|
|
996
|
+
| Check | Description | Auto-Fix |
|
|
997
|
+
|-------|-------------|----------|
|
|
998
|
+
| Node.js Version | Verify Node.js 20+ | nvm install 20 |
|
|
999
|
+
| npm Version | Verify npm 9+ | npm install -g npm@latest |
|
|
1000
|
+
| Git | Check git installation | Install git |
|
|
1001
|
+
| Git Repository | Check if in git repo | git init |
|
|
1002
|
+
| Config File | Validate configuration | claude-flow config init |
|
|
1003
|
+
| Daemon Status | Check daemon running | claude-flow daemon start |
|
|
1004
|
+
| Memory Database | Check memory DB | claude-flow memory configure |
|
|
1005
|
+
| API Keys | Check for API keys | export ANTHROPIC_API_KEY=... |
|
|
1006
|
+
| MCP Servers | Check MCP configuration | claude mcp add claude-flow ... |
|
|
1007
|
+
| Disk Space | Check available space | Free up disk |
|
|
1008
|
+
| TypeScript | Check TypeScript install | npm install -D typescript |
|
|
1009
|
+
|
|
1010
|
+
#### Options
|
|
1011
|
+
|
|
1012
|
+
| Option | Short | Description | Default |
|
|
1013
|
+
|--------|-------|-------------|---------|
|
|
1014
|
+
| `--fix` | `-f` | Show fix commands for issues | `false` |
|
|
1015
|
+
| `--component` | `-c` | Check specific component | all |
|
|
1016
|
+
| `--verbose` | `-v` | Verbose output | `false` |
|
|
1017
|
+
|
|
1018
|
+
#### Examples
|
|
1019
|
+
|
|
1020
|
+
```bash
|
|
1021
|
+
# Run full health check
|
|
1022
|
+
claude-flow doctor
|
|
1023
|
+
|
|
1024
|
+
# Show fixes for issues
|
|
1025
|
+
claude-flow doctor --fix
|
|
1026
|
+
|
|
1027
|
+
# Check specific component
|
|
1028
|
+
claude-flow doctor -c daemon
|
|
1029
|
+
claude-flow doctor -c mcp
|
|
1030
|
+
claude-flow doctor -c memory
|
|
1031
|
+
```
|
|
1032
|
+
|
|
1033
|
+
#### Output Example
|
|
1034
|
+
|
|
1035
|
+
```
|
|
1036
|
+
Claude Flow Doctor
|
|
1037
|
+
System diagnostics and health check
|
|
1038
|
+
──────────────────────────────────────────────────
|
|
1039
|
+
|
|
1040
|
+
✓ Node.js Version: v22.21.1 (>= 20 required)
|
|
1041
|
+
✓ npm Version: v10.9.4
|
|
1042
|
+
✓ Git: v2.52.0
|
|
1043
|
+
✓ Git Repository: In a git repository
|
|
1044
|
+
⚠ Config File: No config file (using defaults)
|
|
1045
|
+
⚠ Daemon Status: Not running
|
|
1046
|
+
⚠ Memory Database: Not initialized
|
|
1047
|
+
⚠ API Keys: No API keys found
|
|
1048
|
+
⚠ MCP Servers: No MCP config found
|
|
1049
|
+
✓ Disk Space: 73G available
|
|
1050
|
+
✓ TypeScript: v5.9.3
|
|
1051
|
+
|
|
1052
|
+
──────────────────────────────────────────────────
|
|
1053
|
+
|
|
1054
|
+
Summary: 6 passed, 5 warnings
|
|
1055
|
+
|
|
1056
|
+
All checks passed with some warnings.
|
|
1057
|
+
```
|
|
1058
|
+
|
|
1059
|
+
---
|
|
1060
|
+
|
|
1061
|
+
### `route` - Q-Learning Agent Router
|
|
1062
|
+
|
|
1063
|
+
Intelligent task-to-agent routing using reinforcement learning.
|
|
1064
|
+
|
|
1065
|
+
```bash
|
|
1066
|
+
claude-flow route <subcommand> [options]
|
|
1067
|
+
```
|
|
1068
|
+
|
|
1069
|
+
#### Subcommands
|
|
1070
|
+
|
|
1071
|
+
| Subcommand | Description |
|
|
1072
|
+
|------------|-------------|
|
|
1073
|
+
| `task` | Route a task to optimal agent using Q-Learning |
|
|
1074
|
+
| `list-agents` | List available agent types with capabilities |
|
|
1075
|
+
| `stats` | Show router statistics and learning metrics |
|
|
1076
|
+
| `feedback` | Provide routing feedback for continuous learning |
|
|
1077
|
+
| `reset` | Reset Q-Learning router state |
|
|
1078
|
+
| `export` | Export Q-table for persistence |
|
|
1079
|
+
| `import` | Import Q-table from file |
|
|
1080
|
+
|
|
1081
|
+
#### Agent Types
|
|
1082
|
+
|
|
1083
|
+
| Type | Description |
|
|
1084
|
+
|------|-------------|
|
|
1085
|
+
| `coder` | Code implementation and debugging |
|
|
1086
|
+
| `tester` | Testing and quality assurance |
|
|
1087
|
+
| `reviewer` | Code review and quality checks |
|
|
1088
|
+
| `architect` | System design and architecture |
|
|
1089
|
+
| `researcher` | Research and information gathering |
|
|
1090
|
+
| `optimizer` | Performance optimization |
|
|
1091
|
+
| `debugger` | Bug fixing and troubleshooting |
|
|
1092
|
+
| `documenter` | Documentation and comments |
|
|
1093
|
+
|
|
1094
|
+
#### How It Works
|
|
1095
|
+
|
|
1096
|
+
1. **State Encoding** - Analyzes task description using hash-based feature extraction
|
|
1097
|
+
2. **Q-Learning** - Uses Q-table to map (state, action) pairs to expected rewards
|
|
1098
|
+
3. **Epsilon-Greedy** - Balances exploration (try new agents) vs exploitation (use best known)
|
|
1099
|
+
4. **Feedback Loop** - Learns from success/failure outcomes to improve routing
|
|
1100
|
+
|
|
1101
|
+
#### Examples
|
|
1102
|
+
|
|
1103
|
+
```bash
|
|
1104
|
+
# Route a task to optimal agent
|
|
1105
|
+
claude-flow route task "Implement user authentication with JWT"
|
|
1106
|
+
|
|
1107
|
+
# Route with verbose output showing decision process
|
|
1108
|
+
claude-flow route task "Fix memory leak in API handler" --verbose
|
|
1109
|
+
|
|
1110
|
+
# List available agent types
|
|
1111
|
+
claude-flow route list-agents
|
|
1112
|
+
|
|
1113
|
+
# View router statistics
|
|
1114
|
+
claude-flow route stats
|
|
1115
|
+
|
|
1116
|
+
# Provide feedback (reward: -1 to 1)
|
|
1117
|
+
claude-flow route feedback --agent coder --reward 0.8 --task "auth implementation"
|
|
1118
|
+
|
|
1119
|
+
# Export Q-table for backup
|
|
1120
|
+
claude-flow route export -o ./q-table.json
|
|
1121
|
+
|
|
1122
|
+
# Import Q-table
|
|
1123
|
+
claude-flow route import -i ./q-table.json
|
|
1124
|
+
|
|
1125
|
+
# Reset router (start fresh)
|
|
1126
|
+
claude-flow route reset --confirm
|
|
1127
|
+
```
|
|
1128
|
+
|
|
1129
|
+
---
|
|
1130
|
+
|
|
1131
|
+
### `analyze` - Code Analysis
|
|
1132
|
+
|
|
1133
|
+
Comprehensive code analysis with AST parsing, diff classification, complexity metrics, and dependency analysis.
|
|
1134
|
+
|
|
1135
|
+
```bash
|
|
1136
|
+
claude-flow analyze <subcommand> [options]
|
|
1137
|
+
```
|
|
1138
|
+
|
|
1139
|
+
#### Subcommands
|
|
1140
|
+
|
|
1141
|
+
| Subcommand | Description | Algorithm |
|
|
1142
|
+
|------------|-------------|-----------|
|
|
1143
|
+
| `ast` | AST analysis with symbol extraction | tree-sitter (regex fallback) |
|
|
1144
|
+
| `complexity` | Cyclomatic and cognitive complexity | McCabe + cognitive metrics |
|
|
1145
|
+
| `symbols` | Extract functions, classes, types | AST parsing |
|
|
1146
|
+
| `imports` | Import dependency analysis | Static analysis |
|
|
1147
|
+
| `diff` | Diff classification and risk assessment | Pattern matching |
|
|
1148
|
+
| `boundaries` | Code boundaries detection | MinCut algorithm |
|
|
1149
|
+
| `modules` | Module community detection | Louvain algorithm |
|
|
1150
|
+
| `dependencies` | Full dependency graph | Graph building |
|
|
1151
|
+
| `circular` | Circular dependency detection | Tarjan's SCC |
|
|
1152
|
+
| `deps` | Project dependency analysis | npm/yarn |
|
|
1153
|
+
| `code` | Static code quality analysis | Multi-metric |
|
|
1154
|
+
|
|
1155
|
+
#### Diff Risk Levels
|
|
1156
|
+
|
|
1157
|
+
| Risk | Color | Description |
|
|
1158
|
+
|------|-------|-------------|
|
|
1159
|
+
| `critical` | Red | Breaking changes, security-sensitive |
|
|
1160
|
+
| `high` | Orange | Core logic, API changes |
|
|
1161
|
+
| `medium` | Yellow | Feature additions, significant refactoring |
|
|
1162
|
+
| `low` | Green | Documentation, tests, formatting |
|
|
1163
|
+
|
|
1164
|
+
#### Examples
|
|
1165
|
+
|
|
1166
|
+
```bash
|
|
1167
|
+
# Analyze AST of a file
|
|
1168
|
+
claude-flow analyze ast ./src/auth/login.ts
|
|
1169
|
+
|
|
1170
|
+
# Analyze with symbol extraction
|
|
1171
|
+
claude-flow analyze symbols ./src/services/ --recursive
|
|
1172
|
+
|
|
1173
|
+
# Check cyclomatic complexity
|
|
1174
|
+
claude-flow analyze complexity ./src --threshold 10
|
|
1175
|
+
|
|
1176
|
+
# Classify a git diff
|
|
1177
|
+
claude-flow analyze diff HEAD~1
|
|
1178
|
+
|
|
1179
|
+
# Classify staged changes
|
|
1180
|
+
claude-flow analyze diff --staged
|
|
1181
|
+
|
|
1182
|
+
# Find code boundaries (module splits)
|
|
1183
|
+
claude-flow analyze boundaries ./src --min-cut
|
|
1184
|
+
|
|
1185
|
+
# Detect module communities
|
|
1186
|
+
claude-flow analyze modules ./src --algorithm louvain
|
|
1187
|
+
|
|
1188
|
+
# Find circular dependencies
|
|
1189
|
+
claude-flow analyze circular ./src
|
|
1190
|
+
|
|
1191
|
+
# Full dependency graph
|
|
1192
|
+
claude-flow analyze dependencies ./src -o ./deps.dot --format dot
|
|
1193
|
+
|
|
1194
|
+
# Project dependency analysis
|
|
1195
|
+
claude-flow analyze deps --outdated
|
|
1196
|
+
```
|
|
1197
|
+
|
|
1198
|
+
---
|
|
1199
|
+
|
|
1200
|
+
### `issues` - Collaborative Issue Claims (ADR-016)
|
|
1201
|
+
|
|
1202
|
+
Human-agent collaborative issue management with work stealing, load balancing, and handoffs.
|
|
1203
|
+
|
|
1204
|
+
```bash
|
|
1205
|
+
claude-flow issues <subcommand> [options]
|
|
1206
|
+
```
|
|
1207
|
+
|
|
1208
|
+
#### Subcommands
|
|
1209
|
+
|
|
1210
|
+
| Subcommand | Description |
|
|
1211
|
+
|------------|-------------|
|
|
1212
|
+
| `list` | List all active claims |
|
|
1213
|
+
| `claim` | Claim an issue for yourself or an agent |
|
|
1214
|
+
| `release` | Release a claim |
|
|
1215
|
+
| `handoff` | Request handoff to another agent/user |
|
|
1216
|
+
| `status` | Update claim status and progress |
|
|
1217
|
+
| `stealable` | List issues available for work stealing |
|
|
1218
|
+
| `steal` | Steal an issue from overloaded/stale claimant |
|
|
1219
|
+
| `load` | View agent load distribution |
|
|
1220
|
+
| `rebalance` | Rebalance claims across swarm |
|
|
1221
|
+
| `board` | Visual Kanban-style claim board |
|
|
1222
|
+
|
|
1223
|
+
#### Claim Status
|
|
1224
|
+
|
|
1225
|
+
| Status | Description |
|
|
1226
|
+
|--------|-------------|
|
|
1227
|
+
| `active` | Actively being worked on |
|
|
1228
|
+
| `paused` | Temporarily paused |
|
|
1229
|
+
| `blocked` | Blocked by dependency |
|
|
1230
|
+
| `stealable` | Available for work stealing |
|
|
1231
|
+
| `completed` | Work completed |
|
|
1232
|
+
| `handoff-pending` | Awaiting handoff acceptance |
|
|
1233
|
+
| `review-requested` | Needs review |
|
|
1234
|
+
|
|
1235
|
+
#### Work Stealing
|
|
1236
|
+
|
|
1237
|
+
Issues can be marked stealable when:
|
|
1238
|
+
- **Overloaded** - Claimant has too many active claims
|
|
1239
|
+
- **Stale** - No progress for extended period
|
|
1240
|
+
- **Blocked** - Blocked beyond timeout threshold
|
|
1241
|
+
- **Voluntary** - Claimant voluntarily releases
|
|
1242
|
+
|
|
1243
|
+
#### Examples
|
|
1244
|
+
|
|
1245
|
+
```bash
|
|
1246
|
+
# List all claims
|
|
1247
|
+
claude-flow issues list
|
|
1248
|
+
|
|
1249
|
+
# List with status filter
|
|
1250
|
+
claude-flow issues list --status active
|
|
1251
|
+
|
|
1252
|
+
# Claim an issue
|
|
1253
|
+
claude-flow issues claim ISSUE-123
|
|
1254
|
+
|
|
1255
|
+
# Claim as agent
|
|
1256
|
+
claude-flow issues claim ISSUE-123 --as-agent --type coder
|
|
1257
|
+
|
|
1258
|
+
# Update progress
|
|
1259
|
+
claude-flow issues status ISSUE-123 --progress 50
|
|
1260
|
+
|
|
1261
|
+
# Mark as blocked
|
|
1262
|
+
claude-flow issues status ISSUE-123 --set blocked --note "Waiting for API"
|
|
1263
|
+
|
|
1264
|
+
# Request handoff to another user
|
|
1265
|
+
claude-flow issues handoff ISSUE-123 --to user:alice:Alice
|
|
1266
|
+
|
|
1267
|
+
# Request handoff to agent
|
|
1268
|
+
claude-flow issues handoff ISSUE-123 --to agent:coder:coder-001
|
|
1269
|
+
|
|
1270
|
+
# View stealable issues
|
|
1271
|
+
claude-flow issues stealable
|
|
1272
|
+
|
|
1273
|
+
# Steal an issue
|
|
1274
|
+
claude-flow issues steal ISSUE-123 --reason overloaded
|
|
1275
|
+
|
|
1276
|
+
# View agent load
|
|
1277
|
+
claude-flow issues load
|
|
1278
|
+
|
|
1279
|
+
# Rebalance swarm
|
|
1280
|
+
claude-flow issues rebalance --strategy even
|
|
1281
|
+
|
|
1282
|
+
# Visual board view
|
|
1283
|
+
claude-flow issues board
|
|
1284
|
+
```
|
|
1285
|
+
|
|
1286
|
+
#### Board View
|
|
1287
|
+
|
|
1288
|
+
```
|
|
1289
|
+
📋 Issue Claims Board
|
|
1290
|
+
────────────────────────────────────────────────────────────────
|
|
1291
|
+
|
|
1292
|
+
ACTIVE (3) PAUSED (1) BLOCKED (1)
|
|
1293
|
+
──────────────── ──────────────── ────────────────
|
|
1294
|
+
│ ISSUE-123 │ │ ISSUE-456 │ │ ISSUE-789 │
|
|
1295
|
+
│ 🤖 coder │ │ 👤 alice │ │ 🤖 tester │
|
|
1296
|
+
│ 75% ████░░░ │ │ 30% ██░░░░░ │ │ 50% ███░░░░ │
|
|
1297
|
+
└──────────────┘ └──────────────┘ └──────────────┘
|
|
1298
|
+
```
|
|
1299
|
+
|
|
1300
|
+
---
|
|
1301
|
+
|
|
1302
|
+
### `completions` - Shell Completions
|
|
1303
|
+
|
|
1304
|
+
Generate shell completion scripts for tab completion of commands.
|
|
1305
|
+
|
|
1306
|
+
```bash
|
|
1307
|
+
claude-flow completions <shell>
|
|
1308
|
+
```
|
|
1309
|
+
|
|
1310
|
+
#### Supported Shells
|
|
1311
|
+
|
|
1312
|
+
| Shell | Installation | File Location |
|
|
1313
|
+
|-------|-------------|---------------|
|
|
1314
|
+
| `bash` | `claude-flow completions bash >> ~/.bashrc` | `~/.bash_completion.d/claude-flow` |
|
|
1315
|
+
| `zsh` | `claude-flow completions zsh > ~/.zfunc/_claude-flow` | `~/.zfunc/_claude-flow` |
|
|
1316
|
+
| `fish` | `claude-flow completions fish > ~/.config/fish/completions/claude-flow.fish` | `~/.config/fish/completions/` |
|
|
1317
|
+
| `powershell` | `claude-flow completions powershell >> $PROFILE` | PowerShell profile |
|
|
1318
|
+
|
|
1319
|
+
#### Examples
|
|
1320
|
+
|
|
1321
|
+
```bash
|
|
1322
|
+
# Install bash completions
|
|
1323
|
+
claude-flow completions bash > ~/.bash_completion.d/claude-flow
|
|
1324
|
+
source ~/.bash_completion.d/claude-flow
|
|
1325
|
+
|
|
1326
|
+
# Install zsh completions
|
|
1327
|
+
mkdir -p ~/.zfunc
|
|
1328
|
+
claude-flow completions zsh > ~/.zfunc/_claude-flow
|
|
1329
|
+
# Add to .zshrc: fpath=(~/.zfunc $fpath); autoload -Uz compinit; compinit
|
|
1330
|
+
|
|
1331
|
+
# Install fish completions
|
|
1332
|
+
claude-flow completions fish > ~/.config/fish/completions/claude-flow.fish
|
|
1333
|
+
|
|
1334
|
+
# Install PowerShell completions
|
|
1335
|
+
claude-flow completions powershell >> $PROFILE
|
|
1336
|
+
```
|
|
1337
|
+
|
|
1338
|
+
#### Completion Features
|
|
1339
|
+
|
|
1340
|
+
- All 29 top-level commands
|
|
1341
|
+
- Full subcommand completion for each command
|
|
1342
|
+
- Flag and option completion
|
|
1343
|
+
- Dynamic suggestions based on context
|
|
1344
|
+
|
|
1345
|
+
---
|
|
1346
|
+
|
|
1347
|
+
### Smart Error Suggestions
|
|
1348
|
+
|
|
1349
|
+
When you mistype a command, the CLI provides helpful suggestions using Levenshtein distance matching.
|
|
1350
|
+
|
|
1351
|
+
```bash
|
|
1352
|
+
$ claude-flow swram
|
|
1353
|
+
[ERROR] Unknown command: swram
|
|
1354
|
+
Did you mean one of these?
|
|
1355
|
+
- swarm
|
|
1356
|
+
- neural
|
|
1357
|
+
- start
|
|
1358
|
+
|
|
1359
|
+
$ claude-flow memroy
|
|
1360
|
+
[ERROR] Unknown command: memroy
|
|
1361
|
+
Did you mean "memory"?
|
|
1362
|
+
|
|
1363
|
+
$ claude-flow agnet
|
|
1364
|
+
[ERROR] Unknown command: agnet
|
|
1365
|
+
Did you mean "agent"?
|
|
1366
|
+
```
|
|
1367
|
+
|
|
1368
|
+
The suggestion system:
|
|
1369
|
+
- Uses Levenshtein distance to find similar commands
|
|
1370
|
+
- Recognizes 40+ common typos (e.g., `memroy` → `memory`, `swram` → `swarm`)
|
|
1371
|
+
- Suggests up to 3 alternatives sorted by similarity
|
|
1372
|
+
- Boosts prefix matches for better suggestions
|
|
1373
|
+
|
|
1374
|
+
---
|
|
1375
|
+
|
|
957
1376
|
## Global Options
|
|
958
1377
|
|
|
959
1378
|
All commands support these global options:
|
|
@@ -1180,6 +1599,9 @@ The CLI is optimized for V3 performance targets:
|
|
|
1180
1599
|
- [@claude-flow/mcp](../mcp) - MCP server implementation
|
|
1181
1600
|
- [@claude-flow/hooks](../hooks) - Self-learning hooks system
|
|
1182
1601
|
- [@claude-flow/neural](../neural) - SONA neural learning
|
|
1602
|
+
- [@claude-flow/embeddings](../embeddings) - Vector embeddings (75x faster with agentic-flow)
|
|
1603
|
+
- [@claude-flow/security](../security) - CVE remediation & security patterns
|
|
1604
|
+
- [@claude-flow/providers](../providers) - Multi-LLM provider system
|
|
1183
1605
|
|
|
1184
1606
|
## License
|
|
1185
1607
|
|
package/bin/cli.js
CHANGED
|
@@ -3,12 +3,148 @@
|
|
|
3
3
|
* @claude-flow/cli - CLI Entry Point
|
|
4
4
|
*
|
|
5
5
|
* Claude Flow V3 Command Line Interface
|
|
6
|
+
*
|
|
7
|
+
* Auto-detects MCP mode when stdin is piped and no args provided.
|
|
8
|
+
* This allows: echo '{"jsonrpc":"2.0",...}' | npx @claude-flow/cli
|
|
6
9
|
*/
|
|
7
10
|
|
|
8
|
-
|
|
11
|
+
// Check if we should run in MCP server mode
|
|
12
|
+
// Conditions: stdin is being piped AND no CLI arguments provided
|
|
13
|
+
const isMCPMode = !process.stdin.isTTY && process.argv.length === 2;
|
|
14
|
+
|
|
15
|
+
if (isMCPMode) {
|
|
16
|
+
// Run MCP server mode
|
|
17
|
+
const { listMCPTools, callMCPTool, hasTool } = await import('../dist/src/mcp-client.js');
|
|
18
|
+
|
|
19
|
+
const VERSION = '3.0.0';
|
|
20
|
+
const sessionId = `mcp-${Date.now()}-${Math.random().toString(36).substr(2, 4)}`;
|
|
21
|
+
|
|
22
|
+
console.error(
|
|
23
|
+
`[${new Date().toISOString()}] INFO [claude-flow-mcp] (${sessionId}) Starting in stdio mode`
|
|
24
|
+
);
|
|
25
|
+
|
|
26
|
+
let buffer = '';
|
|
27
|
+
process.stdin.setEncoding('utf8');
|
|
28
|
+
process.stdin.on('data', async (chunk) => {
|
|
29
|
+
buffer += chunk;
|
|
30
|
+
let lines = buffer.split('\n');
|
|
31
|
+
buffer = lines.pop() || '';
|
|
32
|
+
|
|
33
|
+
for (const line of lines) {
|
|
34
|
+
if (line.trim()) {
|
|
35
|
+
try {
|
|
36
|
+
const message = JSON.parse(line);
|
|
37
|
+
const response = await handleMessage(message);
|
|
38
|
+
if (response) {
|
|
39
|
+
console.log(JSON.stringify(response));
|
|
40
|
+
}
|
|
41
|
+
} catch (error) {
|
|
42
|
+
console.log(JSON.stringify({
|
|
43
|
+
jsonrpc: '2.0',
|
|
44
|
+
id: null,
|
|
45
|
+
error: { code: -32700, message: 'Parse error' },
|
|
46
|
+
}));
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
process.stdin.on('end', () => {
|
|
53
|
+
process.exit(0);
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
async function handleMessage(message) {
|
|
57
|
+
if (!message.method) {
|
|
58
|
+
return {
|
|
59
|
+
jsonrpc: '2.0',
|
|
60
|
+
id: message.id,
|
|
61
|
+
error: { code: -32600, message: 'Invalid Request: missing method' },
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
const params = message.params || {};
|
|
66
|
+
|
|
67
|
+
switch (message.method) {
|
|
68
|
+
case 'initialize':
|
|
69
|
+
return {
|
|
70
|
+
jsonrpc: '2.0',
|
|
71
|
+
id: message.id,
|
|
72
|
+
result: {
|
|
73
|
+
protocolVersion: '2024-11-05',
|
|
74
|
+
serverInfo: { name: 'claude-flow', version: VERSION },
|
|
75
|
+
capabilities: {
|
|
76
|
+
tools: { listChanged: true },
|
|
77
|
+
resources: { subscribe: true, listChanged: true },
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
case 'tools/list': {
|
|
83
|
+
const tools = listMCPTools();
|
|
84
|
+
return {
|
|
85
|
+
jsonrpc: '2.0',
|
|
86
|
+
id: message.id,
|
|
87
|
+
result: {
|
|
88
|
+
tools: tools.map(tool => ({
|
|
89
|
+
name: tool.name,
|
|
90
|
+
description: tool.description,
|
|
91
|
+
inputSchema: tool.inputSchema,
|
|
92
|
+
})),
|
|
93
|
+
},
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
case 'tools/call': {
|
|
98
|
+
const toolName = params.name;
|
|
99
|
+
const toolParams = params.arguments || {};
|
|
100
|
+
|
|
101
|
+
if (!hasTool(toolName)) {
|
|
102
|
+
return {
|
|
103
|
+
jsonrpc: '2.0',
|
|
104
|
+
id: message.id,
|
|
105
|
+
error: { code: -32601, message: `Tool not found: ${toolName}` },
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
try {
|
|
110
|
+
const result = await callMCPTool(toolName, toolParams, { sessionId });
|
|
111
|
+
return {
|
|
112
|
+
jsonrpc: '2.0',
|
|
113
|
+
id: message.id,
|
|
114
|
+
result: { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] },
|
|
115
|
+
};
|
|
116
|
+
} catch (error) {
|
|
117
|
+
return {
|
|
118
|
+
jsonrpc: '2.0',
|
|
119
|
+
id: message.id,
|
|
120
|
+
error: {
|
|
121
|
+
code: -32603,
|
|
122
|
+
message: error instanceof Error ? error.message : 'Tool execution failed',
|
|
123
|
+
},
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
case 'notifications/initialized':
|
|
129
|
+
return null;
|
|
130
|
+
|
|
131
|
+
case 'ping':
|
|
132
|
+
return { jsonrpc: '2.0', id: message.id, result: {} };
|
|
9
133
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
134
|
+
default:
|
|
135
|
+
return {
|
|
136
|
+
jsonrpc: '2.0',
|
|
137
|
+
id: message.id,
|
|
138
|
+
error: { code: -32601, message: `Method not found: ${message.method}` },
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
} else {
|
|
143
|
+
// Run normal CLI mode
|
|
144
|
+
const { CLI } = await import('../dist/src/index.js');
|
|
145
|
+
const cli = new CLI();
|
|
146
|
+
cli.run().catch((error) => {
|
|
147
|
+
console.error('Fatal error:', error.message);
|
|
148
|
+
process.exit(1);
|
|
149
|
+
});
|
|
150
|
+
}
|