claude-flow-novice 1.3.6 → 1.5.1
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/code-analyzer.md +3 -20
- package/.claude/agents/analysis/code-review/analyze-code-quality.md +1 -1
- package/.claude/agents/analyst.md +208 -550
- package/.claude/agents/architect.md +136 -469
- package/.claude/agents/architecture/system-architect.md +20 -1
- package/.claude/agents/architecture/system-design/arch-system-design.md +1 -1
- package/.claude/agents/base-template-generator.md +24 -1
- package/.claude/agents/coder.md +87 -303
- package/.claude/agents/consensus/byzantine-coordinator.md +4 -21
- package/.claude/agents/consensus/consensus-builder.md +3 -20
- package/.claude/agents/consensus/crdt-synchronizer.md +4 -21
- package/.claude/agents/consensus/gossip-coordinator.md +4 -21
- package/.claude/agents/consensus/performance-benchmarker.md +4 -21
- package/.claude/agents/consensus/quorum-manager.md +4 -21
- package/.claude/agents/consensus/raft-manager.md +4 -21
- package/.claude/agents/consensus/security-manager.md +4 -21
- package/.claude/agents/coordinator.md +22 -11
- package/.claude/agents/data/ml/data-ml-model.md +2 -2
- package/.claude/agents/development/backend/dev-backend-api.md +2 -2
- package/.claude/agents/devops/ci-cd/ops-cicd-github.md +2 -2
- package/.claude/agents/devops/devops-engineer.md +134 -402
- package/.claude/agents/documentation/api-docs/docs-api-openapi.md +2 -2
- package/.claude/agents/github/code-review-swarm.md +1 -1
- package/.claude/agents/github/github-specialist.md +856 -0
- package/.claude/agents/github/pr-manager.md +1 -1
- package/.claude/agents/github/release-manager.md +1 -1
- package/.claude/agents/neural/neural-pattern-agent.md +762 -0
- package/.claude/agents/optimization/benchmark-suite.md +1 -1
- package/.claude/agents/optimization/perf-analyzer.md +1 -1
- package/.claude/agents/optimization/performance-monitor.md +1 -1
- package/.claude/agents/planner.md +135 -0
- package/.claude/agents/researcher.md +22 -9
- package/.claude/agents/reviewer.md +291 -0
- package/.claude/agents/security/security-specialist.md +1 -1
- package/.claude/agents/sparc/architecture.md +1 -1
- package/.claude/agents/sparc/pseudocode.md +1 -1
- package/.claude/agents/sparc/refinement.md +1 -1
- package/.claude/agents/sparc/specification.md +1 -1
- package/.claude/agents/specialized/mobile/spec-mobile-react-native.md +2 -2
- package/.claude/agents/tester.md +21 -11
- package/.claude/agents/testing/unit/tdd-london-swarm.md +1 -1
- package/.claude/agents/testing/validation/production-validator.md +1 -1
- package/.claude/commands/claude-soul.js +1 -1
- package/.claude/commands/fullstack.md +134 -0
- package/.claude/commands/index.js +4 -0
- package/.claude/hooks.json +12 -15
- package/{.claude → .claude-flow-novice/.claude}/agents/MIGRATION_SUMMARY.md +1 -1
- package/.claude-flow-novice/.claude/agents/analysis/code-analyzer.md +192 -0
- package/.claude-flow-novice/.claude/agents/analysis/code-review/analyze-code-quality.md +180 -0
- package/.claude-flow-novice/.claude/agents/analyst.md +300 -0
- package/.claude-flow-novice/.claude/agents/architect.md +557 -0
- package/.claude-flow-novice/.claude/agents/architecture/system-architect.md +630 -0
- package/.claude-flow-novice/.claude/agents/architecture/system-design/arch-system-design.md +156 -0
- package/.claude-flow-novice/.claude/agents/base-template-generator.md +65 -0
- package/.claude-flow-novice/.claude/agents/coder.md +180 -0
- package/.claude-flow-novice/.claude/agents/consensus/byzantine-coordinator.md +46 -0
- package/.claude-flow-novice/.claude/agents/consensus/consensus-builder.md +225 -0
- package/.claude-flow-novice/.claude/agents/consensus/crdt-synchronizer.md +980 -0
- package/.claude-flow-novice/.claude/agents/consensus/gossip-coordinator.md +46 -0
- package/.claude-flow-novice/.claude/agents/consensus/performance-benchmarker.md +834 -0
- package/.claude-flow-novice/.claude/agents/consensus/quorum-manager.md +806 -0
- package/.claude-flow-novice/.claude/agents/consensus/raft-manager.md +46 -0
- package/.claude-flow-novice/.claude/agents/consensus/security-manager.md +605 -0
- package/.claude-flow-novice/.claude/agents/coordinator.md +842 -0
- package/.claude-flow-novice/.claude/agents/data/ml/data-ml-model.md +193 -0
- package/.claude-flow-novice/.claude/agents/development/backend/dev-backend-api.md +142 -0
- package/.claude-flow-novice/.claude/agents/devops/ci-cd/ops-cicd-github.md +164 -0
- package/.claude-flow-novice/.claude/agents/devops/devops-engineer.md +638 -0
- package/.claude-flow-novice/.claude/agents/documentation/api-docs/docs-api-openapi.md +174 -0
- package/.claude-flow-novice/.claude/agents/github/code-review-swarm.md +538 -0
- package/.claude-flow-novice/.claude/agents/github/github-modes.md +173 -0
- package/.claude-flow-novice/.claude/agents/github/github-specialist.md +856 -0
- package/.claude-flow-novice/.claude/agents/github/issue-tracker.md +319 -0
- package/.claude-flow-novice/.claude/agents/github/multi-repo-swarm.md +553 -0
- package/.claude-flow-novice/.claude/agents/github/pr-manager.md +191 -0
- package/.claude-flow-novice/.claude/agents/github/project-board-sync.md +509 -0
- package/.claude-flow-novice/.claude/agents/github/release-manager.md +367 -0
- package/.claude-flow-novice/.claude/agents/github/release-swarm.md +583 -0
- package/.claude-flow-novice/.claude/agents/github/repo-architect.md +398 -0
- package/.claude-flow-novice/.claude/agents/github/swarm-issue.md +573 -0
- package/.claude-flow-novice/.claude/agents/github/swarm-pr.md +428 -0
- package/.claude-flow-novice/.claude/agents/github/sync-coordinator.md +452 -0
- package/.claude-flow-novice/.claude/agents/github/workflow-automation.md +635 -0
- package/.claude-flow-novice/.claude/agents/goal/goal-planner.md +73 -0
- package/.claude-flow-novice/.claude/agents/neural/neural-pattern-agent.md +762 -0
- package/.claude-flow-novice/.claude/agents/neural/safla-neural.md +74 -0
- package/.claude-flow-novice/.claude/agents/optimization/benchmark-suite.md +665 -0
- package/.claude-flow-novice/.claude/agents/optimization/load-balancer.md +431 -0
- package/.claude-flow-novice/.claude/agents/optimization/perf-analyzer.md +725 -0
- package/.claude-flow-novice/.claude/agents/optimization/performance-monitor.md +672 -0
- package/.claude-flow-novice/.claude/agents/optimization/resource-allocator.md +674 -0
- package/.claude-flow-novice/.claude/agents/optimization/topology-optimizer.md +808 -0
- package/.claude-flow-novice/.claude/agents/planner.md +135 -0
- package/.claude-flow-novice/.claude/agents/researcher.md +185 -0
- package/.claude-flow-novice/.claude/agents/reviewer.md +291 -0
- package/.claude-flow-novice/.claude/agents/security/security-specialist.md +978 -0
- package/.claude-flow-novice/.claude/agents/sparc/architecture.md +472 -0
- package/.claude-flow-novice/.claude/agents/sparc/pseudocode.md +318 -0
- package/.claude-flow-novice/.claude/agents/sparc/refinement.md +525 -0
- package/.claude-flow-novice/.claude/agents/sparc/specification.md +276 -0
- package/.claude-flow-novice/.claude/agents/specialized/mobile/spec-mobile-react-native.md +226 -0
- package/.claude-flow-novice/.claude/agents/sublinear/consciousness-evolution-agent.md +499 -0
- package/.claude-flow-novice/.claude/agents/sublinear/matrix-solver-agent.md +113 -0
- package/.claude-flow-novice/.claude/agents/sublinear/nanosecond-scheduler-agent.md +644 -0
- package/.claude-flow-novice/.claude/agents/sublinear/pagerank-agent.md +699 -0
- package/.claude-flow-novice/.claude/agents/sublinear/phi-calculator-agent.md +749 -0
- package/.claude-flow-novice/.claude/agents/sublinear/psycho-symbolic-agent.md +543 -0
- package/.claude-flow-novice/.claude/agents/sublinear/sublinear.md +816 -0
- package/.claude-flow-novice/.claude/agents/sublinear/temporal-advantage-agent.md +360 -0
- package/.claude-flow-novice/.claude/agents/swarm/adaptive-coordinator-enhanced.md +746 -0
- package/.claude-flow-novice/.claude/agents/swarm/adaptive-coordinator.md +396 -0
- package/.claude-flow-novice/.claude/agents/swarm/hierarchical-coordinator.md +300 -0
- package/.claude-flow-novice/.claude/agents/swarm/mesh-coordinator.md +435 -0
- package/.claude-flow-novice/.claude/agents/templates/automation-smart-agent.md +205 -0
- package/.claude-flow-novice/.claude/agents/templates/coordinator-swarm-init.md +90 -0
- package/.claude-flow-novice/.claude/agents/templates/github-pr-manager.md +177 -0
- package/.claude-flow-novice/.claude/agents/templates/implementer-sparc-coder.md +259 -0
- package/.claude-flow-novice/.claude/agents/templates/memory-coordinator.md +187 -0
- package/.claude-flow-novice/.claude/agents/templates/migration-plan.md +746 -0
- package/.claude-flow-novice/.claude/agents/templates/orchestrator-task.md +139 -0
- package/.claude-flow-novice/.claude/agents/templates/performance-analyzer.md +199 -0
- package/.claude-flow-novice/.claude/agents/templates/sparc-coordinator.md +183 -0
- package/.claude-flow-novice/.claude/agents/tester.md +663 -0
- package/.claude-flow-novice/.claude/agents/testing/e2e/playwright-agent.md +249 -0
- package/.claude-flow-novice/.claude/agents/testing/unit/tdd-london-swarm.md +244 -0
- package/.claude-flow-novice/.claude/agents/testing/validation/production-validator.md +395 -0
- package/.claude-flow-novice/dist/index.js +12 -24
- package/.claude-flow-novice/dist/index.js.map +1 -0
- package/.claude-flow-novice/dist/src/agents/agent-manager.js +123 -69
- package/.claude-flow-novice/dist/src/agents/agent-manager.js.map +1 -1
- package/.claude-flow-novice/dist/src/agents/github/utils/hook-integration.js +7 -7
- package/.claude-flow-novice/dist/src/agents/github/utils/hook-integration.js.map +1 -1
- package/.claude-flow-novice/dist/src/agents/stage3-integration-validator.js +485 -0
- package/.claude-flow-novice/dist/src/agents/stage3-integration-validator.js.map +1 -0
- package/.claude-flow-novice/dist/src/agents/unified-ultra-fast-agent-manager.js +630 -0
- package/.claude-flow-novice/dist/src/agents/unified-ultra-fast-agent-manager.js.map +1 -0
- package/.claude-flow-novice/dist/src/cli/commands/agent.js +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/agent.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/config-integration.js +6 -6
- package/.claude-flow-novice/dist/src/cli/commands/enterprise.js +18 -18
- package/.claude-flow-novice/dist/src/cli/commands/enterprise.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/goal-init.js +4 -4
- package/.claude-flow-novice/dist/src/cli/commands/help-new.js +23 -23
- package/.claude-flow-novice/dist/src/cli/commands/help-new.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/help.js +74 -74
- package/.claude-flow-novice/dist/src/cli/commands/help.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/hive-mind/pause.js +2 -2
- package/.claude-flow-novice/dist/src/cli/commands/hive-mind/pause.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/hive.js +4 -4
- package/.claude-flow-novice/dist/src/cli/commands/index.js +103 -132
- package/.claude-flow-novice/dist/src/cli/commands/index.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/mcp.js +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/migrate.js +4 -4
- package/.claude-flow-novice/dist/src/cli/commands/migrate.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/monitor.js +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/neural-init.js +4 -4
- package/.claude-flow-novice/dist/src/cli/commands/ruv-swarm.js +8 -8
- package/.claude-flow-novice/dist/src/cli/commands/sparc.js +12 -12
- package/.claude-flow-novice/dist/src/cli/commands/sparc.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/start/start-command.js +3 -3
- package/.claude-flow-novice/dist/src/cli/commands/status.js +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/swarm.js +7 -7
- package/.claude-flow-novice/dist/src/cli/commands/swarm.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/verification.js +18 -18
- package/.claude-flow-novice/dist/src/cli/completion.js +54 -54
- package/.claude-flow-novice/dist/src/cli/completion.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/consolidated/ConsolidatedCLI.js +11 -11
- package/.claude-flow-novice/dist/src/cli/consolidated/ConsolidatedCLI.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/consolidated/core/CommandHandlers.js +31 -31
- package/.claude-flow-novice/dist/src/cli/consolidated/core/TierManager.js +39 -39
- package/.claude-flow-novice/dist/src/cli/consolidated/core/TierManager.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/consolidated/help/InteractiveHelp.js +25 -25
- package/.claude-flow-novice/dist/src/cli/consolidated/help/InteractiveHelp.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/consolidated/routing/CommandRouter.js +8 -8
- package/.claude-flow-novice/dist/src/cli/consolidated/routing/CommandRouter.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/consolidated/utils/IntelligentDefaults.js +6 -6
- package/.claude-flow-novice/dist/src/cli/consolidated/utils/IntelligentDefaults.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/consolidated/utils/PerformanceOptimizer.js +7 -7
- package/.claude-flow-novice/dist/src/cli/consolidated/utils/PerformanceOptimizer.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/index-remote.js +10 -10
- package/.claude-flow-novice/dist/src/cli/index.js +1 -1
- package/.claude-flow-novice/dist/src/cli/init/directory-structure.js +8 -8
- package/.claude-flow-novice/dist/src/cli/init/index.js +3 -3
- package/.claude-flow-novice/dist/src/cli/init/sparc-environment.js +67 -67
- package/.claude-flow-novice/dist/src/cli/init/swarm-commands.js +18 -18
- package/.claude-flow-novice/dist/src/cli/node-repl.js +2 -2
- package/.claude-flow-novice/dist/src/cli/repl.js +1 -1
- package/.claude-flow-novice/dist/src/cli/simple-cli.js +68 -68
- package/.claude-flow-novice/dist/src/cli/simple-cli.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/simple-commands/session-start-soul.js +271 -0
- package/.claude-flow-novice/dist/src/cli/simple-orchestrator.js +7 -7
- package/.claude-flow-novice/dist/src/cli/simple-orchestrator.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/ui/fallback-handler.js +7 -7
- package/.claude-flow-novice/dist/src/communication/enhanced-event-bus.js +816 -0
- package/.claude-flow-novice/dist/src/communication/enhanced-event-bus.js.map +1 -0
- package/.claude-flow-novice/dist/src/communication/failure-recovery-system.js +812 -0
- package/.claude-flow-novice/dist/src/communication/failure-recovery-system.js.map +1 -0
- package/.claude-flow-novice/dist/src/communication/optimized-serialization.js +369 -0
- package/.claude-flow-novice/dist/src/communication/optimized-serialization.js.map +1 -0
- package/.claude-flow-novice/dist/src/communication/performance-optimizations.js +526 -0
- package/.claude-flow-novice/dist/src/communication/performance-optimizations.js.map +1 -0
- package/.claude-flow-novice/dist/src/communication/performance-validator.js +532 -0
- package/.claude-flow-novice/dist/src/communication/performance-validator.js.map +1 -0
- package/.claude-flow-novice/dist/src/communication/priority-message-queue.js +525 -0
- package/.claude-flow-novice/dist/src/communication/priority-message-queue.js.map +1 -0
- package/.claude-flow-novice/dist/src/communication/shared-buffer-bus.js +218 -0
- package/.claude-flow-novice/dist/src/communication/shared-buffer-bus.js.map +1 -0
- package/.claude-flow-novice/dist/src/communication/ultra-fast-communication-bus.js +521 -0
- package/.claude-flow-novice/dist/src/communication/ultra-fast-communication-bus.js.map +1 -0
- package/.claude-flow-novice/dist/src/communication/ultra-fast-serialization.js +563 -0
- package/.claude-flow-novice/dist/src/communication/ultra-fast-serialization.js.map +1 -0
- package/.claude-flow-novice/dist/src/communication/websocket-cluster.js +344 -0
- package/.claude-flow-novice/dist/src/communication/websocket-cluster.js.map +1 -0
- package/.claude-flow-novice/dist/src/communication/zero-copy-structures.js +369 -0
- package/.claude-flow-novice/dist/src/communication/zero-copy-structures.js.map +1 -0
- package/.claude-flow-novice/dist/src/config/config-manager.js +1 -1
- package/.claude-flow-novice/dist/src/config/config-manager.js.map +1 -1
- package/.claude-flow-novice/dist/src/config/core/intelligent-configuration-manager.js +1 -1
- package/.claude-flow-novice/dist/src/config/integration/hooks-integration.js +6 -6
- package/.claude-flow-novice/dist/src/config/integration/hooks-integration.js.map +1 -1
- package/.claude-flow-novice/dist/src/config/migration/config-migration.js +1 -1
- package/.claude-flow-novice/dist/src/config/ruv-swarm-integration.js +1 -1
- package/.claude-flow-novice/dist/src/config/utils/zero-config-setup.js +1 -1
- package/.claude-flow-novice/dist/src/config/utils/zero-config-setup.js.map +1 -1
- package/.claude-flow-novice/dist/src/config/web-portal-config.js +0 -9
- package/.claude-flow-novice/dist/src/config/web-portal-config.js.map +1 -1
- package/.claude-flow-novice/dist/src/config/zero-config-setup.js +18 -18
- package/.claude-flow-novice/dist/src/config/zero-config-setup.js.map +1 -1
- package/.claude-flow-novice/dist/src/core/logger.js +33 -10
- package/.claude-flow-novice/dist/src/core/logger.js.map +1 -1
- package/.claude-flow-novice/dist/src/migration/index.js +1 -1
- package/.claude-flow-novice/dist/src/migration/index.js.map +1 -1
- package/.claude-flow-novice/dist/src/migration/migration-runner.js +4 -4
- package/.claude-flow-novice/dist/src/migration/migration-runner.js.map +1 -1
- package/.claude-flow-novice/dist/src/monitoring/agent-health-monitor.js +430 -0
- package/.claude-flow-novice/dist/src/monitoring/agent-health-monitor.js.map +1 -0
- package/.claude-flow-novice/dist/src/slash-commands/claude-soul.js +248 -365
- package/.claude-flow-novice/dist/src/slash-commands/register-all-commands.js +1 -1
- package/.claude-flow-novice/dist/src/swarm/claude-code-interface.js +1 -1
- package/.claude-flow-novice/dist/src/swarm/claude-flow-executor.js +1 -1
- package/.claude-flow-novice/dist/src/swarm/consensus-coordinator.js +471 -0
- package/.claude-flow-novice/dist/src/swarm/consensus-coordinator.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm/hive-mind-integration.js +1 -1
- package/.claude-flow-novice/dist/src/swarm/large-scale-coordinator.js +543 -0
- package/.claude-flow-novice/dist/src/swarm/large-scale-coordinator.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm/optimizations/connection-pool.js +1 -1
- package/.claude-flow-novice/dist/src/swarm/optimizations/optimized-executor.js +1 -1
- package/.claude-flow-novice/dist/src/swarm/types.js.map +1 -1
- package/.claude-flow-novice/dist/src/swarm-fullstack/integrations/communication-bridge.js +709 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/integrations/communication-bridge.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/testing/api-contract-validator.js +612 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/testing/api-contract-validator.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/testing/backend-test-orchestrator.js +679 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/testing/backend-test-orchestrator.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/testing/frontend-test-orchestrator.js +654 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/testing/frontend-test-orchestrator.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/testing/visual-regression.js +402 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/testing/visual-regression.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/convergence-detector.js +459 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/convergence-detector.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/fix-coordinator.js +513 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/fix-coordinator.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/index.js +19 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/index.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/iterative-build-test.js +568 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/iterative-build-test.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/regression-test-manager.js +418 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/regression-test-manager.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/test-result-analyzer.js +530 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/test-result-analyzer.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/workflow-metrics.js +250 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/workflow-metrics.js.map +1 -0
- package/.claude-flow-novice/dist/src/task/index.js +7 -7
- package/.claude-flow-novice/dist/src/validation/fullstack-integration-validator.js +420 -0
- package/.claude-flow-novice/dist/src/validation/fullstack-integration-validator.js.map +1 -0
- package/.claude-flow-novice/dist/src/validation/production-validator.js +1435 -0
- package/.claude-flow-novice/dist/src/validation/production-validator.js.map +1 -0
- package/.claude-flow-novice/dist/src/verification/cli-integration.js +3 -3
- package/.claude-flow-novice/dist/src/verification/hooks.js +1 -1
- package/CHANGELOG.md +26 -0
- package/CLAUDE.md +1967 -68
- package/README.md +0 -1
- package/config/build/babel.config.cjs +19 -11
- package/config/typescript/tsconfig.json +1 -1
- package/examples/claude-api-error-handling.ts +2 -2
- package/examples/frontend-testing-demo.ts +470 -0
- package/examples/litellm/config/config.yaml +1 -1
- package/package.json +13 -7
- package/scripts/build/unified-builder.sh +6 -6
- package/scripts/build/validate-agents.js +238 -0
- package/scripts/run-production-validation.ts +590 -0
- package/scripts/test/test-coordination-features.ts +2 -2
- package/scripts/validate-stage3-performance.ts +377 -0
- package/src/cli/simple-commands/hooks.js +1 -0
- package/src/cli/simple-commands/init/agent-copier.js +0 -2
- package/src/cli/simple-commands/init/index.js +5 -97
- package/src/cli/simple-commands/init/templates/CLAUDE.md +163 -1158
- package/src/cli/simple-commands/init/templates/claude-md.js +38 -157
- package/src/swarm-fullstack/integrations/communication-bridge.ts +931 -0
- package/src/swarm-fullstack/testing/api-contract-validator.ts +909 -0
- package/src/swarm-fullstack/testing/backend-test-orchestrator.ts +791 -0
- package/src/swarm-fullstack/testing/frontend-test-orchestrator.ts +853 -0
- package/src/swarm-fullstack/testing/visual-regression.ts +507 -0
- package/src/swarm-fullstack/workflows/convergence-detector.ts +736 -0
- package/src/swarm-fullstack/workflows/fix-coordinator.ts +677 -0
- package/src/swarm-fullstack/workflows/index.ts +75 -0
- package/src/swarm-fullstack/workflows/iterative-build-test.ts +829 -0
- package/src/swarm-fullstack/workflows/regression-test-manager.ts +590 -0
- package/src/swarm-fullstack/workflows/test-result-analyzer.ts +739 -0
- package/src/swarm-fullstack/workflows/workflow-metrics.ts +399 -0
- package/wiki/command-reference/README.md +1 -2
- package/wiki/command-reference/mcp-tools/README.md +1 -1
- package/wiki/getting-started/claude-code-mcp/README.md +1 -2
- package/wiki/getting-started/installation/README.md +2 -10
- package/.claude/commands/flow-nexus/app-store.md +0 -124
- package/.claude/commands/flow-nexus/challenges.md +0 -120
- package/.claude/commands/flow-nexus/login-registration.md +0 -65
- package/.claude/commands/flow-nexus/neural-network.md +0 -134
- package/.claude/commands/flow-nexus/payments.md +0 -116
- package/.claude/commands/flow-nexus/sandbox.md +0 -83
- package/.claude/commands/flow-nexus/swarm.md +0 -87
- package/.claude/commands/flow-nexus/user-tools.md +0 -152
- package/.claude/commands/flow-nexus/workflow.md +0 -115
- package/.claude-flow-novice/dist/cli/index.js +0 -45
- package/.claude-flow-novice/dist/core/index.js +0 -22
- package/.claude-flow-novice/dist/mcp/mcp-server-novice.js +0 -595
- package/.claude-flow-novice/dist/mcp/mcp-server-sdk.js +0 -649
- package/.claude-flow-novice/dist/mcp/mcp-server-with-slash-commands.js +0 -776
- package/.claude-flow-novice/dist/src/cli/simple-commands/init/templates/claude-md.js +0 -1101
- package/src/cli/simple-commands/init/templates/CLAUDE.md.optimized +0 -265
- /package/{.claude → .claude-flow-novice/.claude}/agents/README.md +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/backend-dev.json +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/code-analyzer.json +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/coder.json +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/consensus/README.md +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/core/coder.md +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/core/planner.md +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/core/researcher.md +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/core/reviewer.md +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/core/tester.md +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/optimization/README.md +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/planner.json +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/researcher.json +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/reviewer.json +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/swarm/README.md +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/system-architect.json +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/tester.json +0 -0
|
@@ -0,0 +1,428 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: swarm-pr
|
|
3
|
+
description: Pull request swarm management agent that coordinates multi-agent code review, validation, and integration workflows with automated PR lifecycle management
|
|
4
|
+
type: development
|
|
5
|
+
color: "#4ECDC4"
|
|
6
|
+
tools:
|
|
7
|
+
- mcp__github__get_pull_request
|
|
8
|
+
- mcp__github__create_pull_request
|
|
9
|
+
- mcp__github__update_pull_request
|
|
10
|
+
- mcp__github__list_pull_requests
|
|
11
|
+
- mcp__github__create_pr_comment
|
|
12
|
+
- mcp__github__get_pr_diff
|
|
13
|
+
- mcp__github__merge_pull_request
|
|
14
|
+
- mcp__claude-flow__swarm_init
|
|
15
|
+
- mcp__claude-flow__agent_spawn
|
|
16
|
+
- mcp__claude-flow__task_orchestrate
|
|
17
|
+
- mcp__claude-flow__memory_usage
|
|
18
|
+
- mcp__claude-flow__coordination_sync
|
|
19
|
+
- TodoWrite
|
|
20
|
+
- TodoRead
|
|
21
|
+
- Bash
|
|
22
|
+
- Grep
|
|
23
|
+
- Read
|
|
24
|
+
- Write
|
|
25
|
+
- Edit
|
|
26
|
+
hooks:
|
|
27
|
+
pre:
|
|
28
|
+
- "Initialize PR-specific swarm with diff analysis and impact assessment"
|
|
29
|
+
- "Analyze PR complexity and assign optimal agent topology"
|
|
30
|
+
- "Store PR metadata and diff context in swarm memory"
|
|
31
|
+
post:
|
|
32
|
+
- "Update PR with comprehensive swarm review results"
|
|
33
|
+
- "Coordinate merge decisions based on swarm analysis"
|
|
34
|
+
- "Generate PR completion metrics and learnings"
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
# Swarm PR - Managing Swarms through Pull Requests
|
|
38
|
+
|
|
39
|
+
## Overview
|
|
40
|
+
Create and manage AI swarms directly from GitHub Pull Requests, enabling seamless integration with your development workflow through intelligent multi-agent coordination.
|
|
41
|
+
|
|
42
|
+
## Core Features
|
|
43
|
+
|
|
44
|
+
### 1. PR-Based Swarm Creation
|
|
45
|
+
```bash
|
|
46
|
+
# Create swarm from PR description using gh CLI
|
|
47
|
+
gh pr view 123 --json body,title,labels,files | npx ruv-swarm swarm create-from-pr
|
|
48
|
+
|
|
49
|
+
# Auto-spawn agents based on PR labels
|
|
50
|
+
gh pr view 123 --json labels | npx ruv-swarm swarm auto-spawn
|
|
51
|
+
|
|
52
|
+
# Create swarm with PR context
|
|
53
|
+
gh pr view 123 --json body,labels,author,assignees | \
|
|
54
|
+
npx ruv-swarm swarm init --from-pr-data
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### 2. PR Comment Commands
|
|
58
|
+
Execute swarm commands via PR comments:
|
|
59
|
+
|
|
60
|
+
```markdown
|
|
61
|
+
<!-- In PR comment -->
|
|
62
|
+
/swarm init mesh 6
|
|
63
|
+
/swarm spawn coder "Implement authentication"
|
|
64
|
+
/swarm spawn tester "Write unit tests"
|
|
65
|
+
/swarm status
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### 3. Automated PR Workflows
|
|
69
|
+
|
|
70
|
+
```yaml
|
|
71
|
+
# .github/workflows/swarm-pr.yml
|
|
72
|
+
name: Swarm PR Handler
|
|
73
|
+
on:
|
|
74
|
+
pull_request:
|
|
75
|
+
types: [opened, labeled]
|
|
76
|
+
issue_comment:
|
|
77
|
+
types: [created]
|
|
78
|
+
|
|
79
|
+
jobs:
|
|
80
|
+
swarm-handler:
|
|
81
|
+
runs-on: ubuntu-latest
|
|
82
|
+
steps:
|
|
83
|
+
- uses: actions/checkout@v3
|
|
84
|
+
- name: Handle Swarm Command
|
|
85
|
+
run: |
|
|
86
|
+
if [[ "${{ github.event.comment.body }}" == /swarm* ]]; then
|
|
87
|
+
npx ruv-swarm github handle-comment \
|
|
88
|
+
--pr ${{ github.event.pull_request.number }} \
|
|
89
|
+
--comment "${{ github.event.comment.body }}"
|
|
90
|
+
fi
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## PR Label Integration
|
|
94
|
+
|
|
95
|
+
### Automatic Agent Assignment
|
|
96
|
+
Map PR labels to agent types:
|
|
97
|
+
|
|
98
|
+
```json
|
|
99
|
+
{
|
|
100
|
+
"label-mapping": {
|
|
101
|
+
"bug": ["debugger", "tester"],
|
|
102
|
+
"feature": ["architect", "coder", "tester"],
|
|
103
|
+
"refactor": ["analyst", "coder"],
|
|
104
|
+
"docs": ["researcher", "writer"],
|
|
105
|
+
"performance": ["analyst", "optimizer"]
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
### Label-Based Topology
|
|
111
|
+
```bash
|
|
112
|
+
# Small PR (< 100 lines): ring topology
|
|
113
|
+
# Medium PR (100-500 lines): mesh topology
|
|
114
|
+
# Large PR (> 500 lines): hierarchical topology
|
|
115
|
+
npx ruv-swarm github pr-topology --pr 123
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
## PR Swarm Commands
|
|
119
|
+
|
|
120
|
+
### Initialize from PR
|
|
121
|
+
```bash
|
|
122
|
+
# Create swarm with PR context using gh CLI
|
|
123
|
+
PR_DIFF=$(gh pr diff 123)
|
|
124
|
+
PR_INFO=$(gh pr view 123 --json title,body,labels,files,reviews)
|
|
125
|
+
|
|
126
|
+
npx ruv-swarm github pr-init 123 \
|
|
127
|
+
--auto-agents \
|
|
128
|
+
--pr-data "$PR_INFO" \
|
|
129
|
+
--diff "$PR_DIFF" \
|
|
130
|
+
--analyze-impact
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
### Progress Updates
|
|
134
|
+
```bash
|
|
135
|
+
# Post swarm progress to PR using gh CLI
|
|
136
|
+
PROGRESS=$(npx ruv-swarm github pr-progress 123 --format markdown)
|
|
137
|
+
|
|
138
|
+
gh pr comment 123 --body "$PROGRESS"
|
|
139
|
+
|
|
140
|
+
# Update PR labels based on progress
|
|
141
|
+
if [[ $(echo "$PROGRESS" | grep -o '[0-9]\+%' | sed 's/%//') -gt 90 ]]; then
|
|
142
|
+
gh pr edit 123 --add-label "ready-for-review"
|
|
143
|
+
fi
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
### Code Review Integration
|
|
147
|
+
```bash
|
|
148
|
+
# Create review agents with gh CLI integration
|
|
149
|
+
PR_FILES=$(gh pr view 123 --json files --jq '.files[].path')
|
|
150
|
+
|
|
151
|
+
# Run swarm review
|
|
152
|
+
REVIEW_RESULTS=$(npx ruv-swarm github pr-review 123 \
|
|
153
|
+
--agents "security,performance,style" \
|
|
154
|
+
--files "$PR_FILES")
|
|
155
|
+
|
|
156
|
+
# Post review comments using gh CLI
|
|
157
|
+
echo "$REVIEW_RESULTS" | jq -r '.comments[]' | while read -r comment; do
|
|
158
|
+
FILE=$(echo "$comment" | jq -r '.file')
|
|
159
|
+
LINE=$(echo "$comment" | jq -r '.line')
|
|
160
|
+
BODY=$(echo "$comment" | jq -r '.body')
|
|
161
|
+
|
|
162
|
+
gh pr review 123 --comment --body "$BODY"
|
|
163
|
+
done
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
## Advanced Features
|
|
167
|
+
|
|
168
|
+
### 1. Multi-PR Swarm Coordination
|
|
169
|
+
```bash
|
|
170
|
+
# Coordinate swarms across related PRs
|
|
171
|
+
npx ruv-swarm github multi-pr \
|
|
172
|
+
--prs "123,124,125" \
|
|
173
|
+
--strategy "parallel" \
|
|
174
|
+
--share-memory
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
### 2. PR Dependency Analysis
|
|
178
|
+
```bash
|
|
179
|
+
# Analyze PR dependencies
|
|
180
|
+
npx ruv-swarm github pr-deps 123 \
|
|
181
|
+
--spawn-agents \
|
|
182
|
+
--resolve-conflicts
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
### 3. Automated PR Fixes
|
|
186
|
+
```bash
|
|
187
|
+
# Auto-fix PR issues
|
|
188
|
+
npx ruv-swarm github pr-fix 123 \
|
|
189
|
+
--issues "lint,test-failures" \
|
|
190
|
+
--commit-fixes
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
## Best Practices
|
|
194
|
+
|
|
195
|
+
### 1. PR Templates
|
|
196
|
+
```markdown
|
|
197
|
+
<!-- .github/pull_request_template.md -->
|
|
198
|
+
## Swarm Configuration
|
|
199
|
+
- Topology: [mesh/hierarchical/ring/star]
|
|
200
|
+
- Max Agents: [number]
|
|
201
|
+
- Auto-spawn: [yes/no]
|
|
202
|
+
- Priority: [high/medium/low]
|
|
203
|
+
|
|
204
|
+
## Tasks for Swarm
|
|
205
|
+
- [ ] Task 1 description
|
|
206
|
+
- [ ] Task 2 description
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
### 2. Status Checks
|
|
210
|
+
```yaml
|
|
211
|
+
# Require swarm completion before merge
|
|
212
|
+
required_status_checks:
|
|
213
|
+
contexts:
|
|
214
|
+
- "swarm/tasks-complete"
|
|
215
|
+
- "swarm/tests-pass"
|
|
216
|
+
- "swarm/review-approved"
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
### 3. PR Merge Automation
|
|
220
|
+
```bash
|
|
221
|
+
# Auto-merge when swarm completes using gh CLI
|
|
222
|
+
# Check swarm completion status
|
|
223
|
+
SWARM_STATUS=$(npx ruv-swarm github pr-status 123)
|
|
224
|
+
|
|
225
|
+
if [[ "$SWARM_STATUS" == "complete" ]]; then
|
|
226
|
+
# Check review requirements
|
|
227
|
+
REVIEWS=$(gh pr view 123 --json reviews --jq '.reviews | length')
|
|
228
|
+
|
|
229
|
+
if [[ $REVIEWS -ge 2 ]]; then
|
|
230
|
+
# Enable auto-merge
|
|
231
|
+
gh pr merge 123 --auto --squash
|
|
232
|
+
fi
|
|
233
|
+
fi
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
## Webhook Integration
|
|
237
|
+
|
|
238
|
+
### Setup Webhook Handler
|
|
239
|
+
```javascript
|
|
240
|
+
// webhook-handler.js
|
|
241
|
+
const { createServer } = require('http');
|
|
242
|
+
const { execSync } = require('child_process');
|
|
243
|
+
|
|
244
|
+
createServer((req, res) => {
|
|
245
|
+
if (req.url === '/github-webhook') {
|
|
246
|
+
const event = JSON.parse(body);
|
|
247
|
+
|
|
248
|
+
if (event.action === 'opened' && event.pull_request) {
|
|
249
|
+
execSync(`npx ruv-swarm github pr-init ${event.pull_request.number}`);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
res.writeHead(200);
|
|
253
|
+
res.end('OK');
|
|
254
|
+
}
|
|
255
|
+
}).listen(3000);
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
## Examples
|
|
259
|
+
|
|
260
|
+
### Feature Development PR
|
|
261
|
+
```bash
|
|
262
|
+
# PR #456: Add user authentication
|
|
263
|
+
npx ruv-swarm github pr-init 456 \
|
|
264
|
+
--topology hierarchical \
|
|
265
|
+
--agents "architect,coder,tester,security" \
|
|
266
|
+
--auto-assign-tasks
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
### Bug Fix PR
|
|
270
|
+
```bash
|
|
271
|
+
# PR #789: Fix memory leak
|
|
272
|
+
npx ruv-swarm github pr-init 789 \
|
|
273
|
+
--topology mesh \
|
|
274
|
+
--agents "debugger,analyst,tester" \
|
|
275
|
+
--priority high
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
### Documentation PR
|
|
279
|
+
```bash
|
|
280
|
+
# PR #321: Update API docs
|
|
281
|
+
npx ruv-swarm github pr-init 321 \
|
|
282
|
+
--topology ring \
|
|
283
|
+
--agents "researcher,writer,reviewer" \
|
|
284
|
+
--validate-links
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
## Metrics & Reporting
|
|
288
|
+
|
|
289
|
+
### PR Swarm Analytics
|
|
290
|
+
```bash
|
|
291
|
+
# Generate PR swarm report
|
|
292
|
+
npx ruv-swarm github pr-report 123 \
|
|
293
|
+
--metrics "completion-time,agent-efficiency,token-usage" \
|
|
294
|
+
--format markdown
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
### Dashboard Integration
|
|
298
|
+
```bash
|
|
299
|
+
# Export to GitHub Insights
|
|
300
|
+
npx ruv-swarm github export-metrics \
|
|
301
|
+
--pr 123 \
|
|
302
|
+
--to-insights
|
|
303
|
+
```
|
|
304
|
+
|
|
305
|
+
## Security Considerations
|
|
306
|
+
|
|
307
|
+
1. **Token Permissions**: Ensure GitHub tokens have appropriate scopes
|
|
308
|
+
2. **Command Validation**: Validate all PR comments before execution
|
|
309
|
+
3. **Rate Limiting**: Implement rate limits for PR operations
|
|
310
|
+
4. **Audit Trail**: Log all swarm operations for compliance
|
|
311
|
+
|
|
312
|
+
## Integration with Claude Code
|
|
313
|
+
|
|
314
|
+
When using with Claude Code:
|
|
315
|
+
1. Claude Code reads PR diff and context
|
|
316
|
+
2. Swarm coordinates approach based on PR type
|
|
317
|
+
3. Agents work in parallel on different aspects
|
|
318
|
+
4. Progress updates posted to PR automatically
|
|
319
|
+
5. Final review performed before marking ready
|
|
320
|
+
|
|
321
|
+
## Advanced Swarm PR Coordination
|
|
322
|
+
|
|
323
|
+
### Multi-Agent PR Analysis
|
|
324
|
+
```bash
|
|
325
|
+
# Initialize PR-specific swarm with intelligent topology selection
|
|
326
|
+
mcp__claude-flow__swarm_init { topology: "mesh", maxAgents: 8 }
|
|
327
|
+
mcp__claude-flow__agent_spawn { type: "coordinator", name: "PR Coordinator" }
|
|
328
|
+
mcp__claude-flow__agent_spawn { type: "reviewer", name: "Code Reviewer" }
|
|
329
|
+
mcp__claude-flow__agent_spawn { type: "tester", name: "Test Engineer" }
|
|
330
|
+
mcp__claude-flow__agent_spawn { type: "analyst", name: "Impact Analyzer" }
|
|
331
|
+
mcp__claude-flow__agent_spawn { type: "optimizer", name: "Performance Optimizer" }
|
|
332
|
+
|
|
333
|
+
# Store PR context for swarm coordination
|
|
334
|
+
mcp__claude-flow__memory_usage {
|
|
335
|
+
action: "store",
|
|
336
|
+
key: "pr/#{pr_number}/analysis",
|
|
337
|
+
value: {
|
|
338
|
+
diff: "pr_diff_content",
|
|
339
|
+
files_changed: ["file1.js", "file2.py"],
|
|
340
|
+
complexity_score: 8.5,
|
|
341
|
+
risk_assessment: "medium"
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
# Orchestrate comprehensive PR workflow
|
|
346
|
+
mcp__claude-flow__task_orchestrate {
|
|
347
|
+
task: "Execute multi-agent PR review and validation workflow",
|
|
348
|
+
strategy: "parallel",
|
|
349
|
+
priority: "high",
|
|
350
|
+
dependencies: ["diff_analysis", "test_validation", "security_review"]
|
|
351
|
+
}
|
|
352
|
+
```
|
|
353
|
+
|
|
354
|
+
### Swarm-Coordinated PR Lifecycle
|
|
355
|
+
```javascript
|
|
356
|
+
// Pre-hook: PR Initialization and Swarm Setup
|
|
357
|
+
const prPreHook = async (prData) => {
|
|
358
|
+
// Analyze PR complexity for optimal swarm configuration
|
|
359
|
+
const complexity = await analyzePRComplexity(prData);
|
|
360
|
+
const topology = complexity > 7 ? "hierarchical" : "mesh";
|
|
361
|
+
|
|
362
|
+
// Initialize swarm with PR-specific configuration
|
|
363
|
+
await mcp__claude_flow__swarm_init({ topology, maxAgents: 8 });
|
|
364
|
+
|
|
365
|
+
// Store comprehensive PR context
|
|
366
|
+
await mcp__claude_flow__memory_usage({
|
|
367
|
+
action: "store",
|
|
368
|
+
key: `pr/${prData.number}/context`,
|
|
369
|
+
value: {
|
|
370
|
+
pr: prData,
|
|
371
|
+
complexity,
|
|
372
|
+
agents_assigned: await getOptimalAgents(prData),
|
|
373
|
+
timeline: generateTimeline(prData)
|
|
374
|
+
}
|
|
375
|
+
});
|
|
376
|
+
|
|
377
|
+
// Coordinate initial agent synchronization
|
|
378
|
+
await mcp__claude_flow__coordination_sync({ swarmId: "current" });
|
|
379
|
+
};
|
|
380
|
+
|
|
381
|
+
// Post-hook: PR Completion and Metrics
|
|
382
|
+
const prPostHook = async (results) => {
|
|
383
|
+
// Generate comprehensive PR completion report
|
|
384
|
+
const report = await generatePRReport(results);
|
|
385
|
+
|
|
386
|
+
// Update PR with final swarm analysis
|
|
387
|
+
await updatePRWithResults(report);
|
|
388
|
+
|
|
389
|
+
// Store completion metrics for future optimization
|
|
390
|
+
await mcp__claude_flow__memory_usage({
|
|
391
|
+
action: "store",
|
|
392
|
+
key: `pr/${results.number}/completion`,
|
|
393
|
+
value: {
|
|
394
|
+
completion_time: results.duration,
|
|
395
|
+
agent_efficiency: results.agentMetrics,
|
|
396
|
+
quality_score: results.qualityAssessment,
|
|
397
|
+
lessons_learned: results.insights
|
|
398
|
+
}
|
|
399
|
+
});
|
|
400
|
+
};
|
|
401
|
+
```
|
|
402
|
+
|
|
403
|
+
### Intelligent PR Merge Coordination
|
|
404
|
+
```bash
|
|
405
|
+
# Coordinate merge decision with swarm consensus
|
|
406
|
+
mcp__claude-flow__coordination_sync { swarmId: "pr-review-swarm" }
|
|
407
|
+
|
|
408
|
+
# Analyze merge readiness with multiple agents
|
|
409
|
+
mcp__claude-flow__task_orchestrate {
|
|
410
|
+
task: "Evaluate PR merge readiness with comprehensive validation",
|
|
411
|
+
strategy: "sequential",
|
|
412
|
+
priority: "critical"
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
# Store merge decision context
|
|
416
|
+
mcp__claude-flow__memory_usage {
|
|
417
|
+
action: "store",
|
|
418
|
+
key: "pr/merge_decisions/#{pr_number}",
|
|
419
|
+
value: {
|
|
420
|
+
ready_to_merge: true,
|
|
421
|
+
validation_passed: true,
|
|
422
|
+
agent_consensus: "approved",
|
|
423
|
+
final_review_score: 9.2
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
```
|
|
427
|
+
|
|
428
|
+
See also: [swarm-issue.md](./swarm-issue.md), [sync-coordinator.md](./sync-coordinator.md), [workflow-automation.md](./workflow-automation.md)
|