claude-flow-novice 1.3.6 → 1.5.0
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/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 +13 -0
- package/CLAUDE.md +1029 -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 +162 -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,553 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: multi-repo-swarm
|
|
3
|
+
description: Cross-repository swarm orchestration for organization-wide automation and intelligent collaboration
|
|
4
|
+
type: coordination
|
|
5
|
+
color: "#FF6B35"
|
|
6
|
+
tools:
|
|
7
|
+
- Bash
|
|
8
|
+
- Read
|
|
9
|
+
- Write
|
|
10
|
+
- Edit
|
|
11
|
+
- Glob
|
|
12
|
+
- Grep
|
|
13
|
+
- LS
|
|
14
|
+
- TodoWrite
|
|
15
|
+
- mcp__claude-flow__swarm_init
|
|
16
|
+
- mcp__claude-flow__agent_spawn
|
|
17
|
+
- mcp__claude-flow__task_orchestrate
|
|
18
|
+
- mcp__claude-flow__swarm_status
|
|
19
|
+
- mcp__claude-flow__memory_usage
|
|
20
|
+
- mcp__claude-flow__github_repo_analyze
|
|
21
|
+
- mcp__claude-flow__github_pr_manage
|
|
22
|
+
- mcp__claude-flow__github_sync_coord
|
|
23
|
+
- mcp__claude-flow__github_metrics
|
|
24
|
+
hooks:
|
|
25
|
+
pre:
|
|
26
|
+
- "gh auth status || (echo 'GitHub CLI not authenticated' && exit 1)"
|
|
27
|
+
- "git status --porcelain || echo 'Not in git repository'"
|
|
28
|
+
- "gh repo list --limit 1 >/dev/null || (echo 'No repo access' && exit 1)"
|
|
29
|
+
post:
|
|
30
|
+
- "gh pr list --state open --limit 5 | grep -q . && echo 'Active PRs found'"
|
|
31
|
+
- "git log --oneline -5 | head -3"
|
|
32
|
+
- "gh repo view --json name,description,topics"
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
# Multi-Repo Swarm - Cross-Repository Swarm Orchestration
|
|
36
|
+
|
|
37
|
+
## Overview
|
|
38
|
+
Coordinate AI swarms across multiple repositories, enabling organization-wide automation and intelligent cross-project collaboration.
|
|
39
|
+
|
|
40
|
+
## Core Features
|
|
41
|
+
|
|
42
|
+
### 1. Cross-Repo Initialization
|
|
43
|
+
```bash
|
|
44
|
+
# Initialize multi-repo swarm with gh CLI
|
|
45
|
+
# List organization repositories
|
|
46
|
+
REPOS=$(gh repo list org --limit 100 --json name,description,languages \
|
|
47
|
+
--jq '.[] | select(.name | test("frontend|backend|shared"))')
|
|
48
|
+
|
|
49
|
+
# Get repository details
|
|
50
|
+
REPO_DETAILS=$(echo "$REPOS" | jq -r '.name' | while read -r repo; do
|
|
51
|
+
gh api repos/org/$repo --jq '{name, default_branch, languages, topics}'
|
|
52
|
+
done | jq -s '.')
|
|
53
|
+
|
|
54
|
+
# Initialize swarm with repository context
|
|
55
|
+
npx ruv-swarm github multi-repo-init \
|
|
56
|
+
--repo-details "$REPO_DETAILS" \
|
|
57
|
+
--repos "org/frontend,org/backend,org/shared" \
|
|
58
|
+
--topology hierarchical \
|
|
59
|
+
--shared-memory \
|
|
60
|
+
--sync-strategy eventual
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### 2. Repository Discovery
|
|
64
|
+
```bash
|
|
65
|
+
# Auto-discover related repositories with gh CLI
|
|
66
|
+
# Search organization repositories
|
|
67
|
+
REPOS=$(gh repo list my-organization --limit 100 \
|
|
68
|
+
--json name,description,languages,topics \
|
|
69
|
+
--jq '.[] | select(.languages | keys | contains(["TypeScript"]))')
|
|
70
|
+
|
|
71
|
+
# Analyze repository dependencies
|
|
72
|
+
DEPS=$(echo "$REPOS" | jq -r '.name' | while read -r repo; do
|
|
73
|
+
# Get package.json if it exists
|
|
74
|
+
if gh api repos/my-organization/$repo/contents/package.json --jq '.content' 2>/dev/null; then
|
|
75
|
+
gh api repos/my-organization/$repo/contents/package.json \
|
|
76
|
+
--jq '.content' | base64 -d | jq '{name, dependencies, devDependencies}'
|
|
77
|
+
fi
|
|
78
|
+
done | jq -s '.')
|
|
79
|
+
|
|
80
|
+
# Discover and analyze
|
|
81
|
+
npx ruv-swarm github discover-repos \
|
|
82
|
+
--repos "$REPOS" \
|
|
83
|
+
--dependencies "$DEPS" \
|
|
84
|
+
--analyze-dependencies \
|
|
85
|
+
--suggest-swarm-topology
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### 3. Synchronized Operations
|
|
89
|
+
```bash
|
|
90
|
+
# Execute synchronized changes across repos with gh CLI
|
|
91
|
+
# Get matching repositories
|
|
92
|
+
MATCHING_REPOS=$(gh repo list org --limit 100 --json name \
|
|
93
|
+
--jq '.[] | select(.name | test("-service$")) | .name')
|
|
94
|
+
|
|
95
|
+
# Execute task and create PRs
|
|
96
|
+
echo "$MATCHING_REPOS" | while read -r repo; do
|
|
97
|
+
# Clone repo
|
|
98
|
+
gh repo clone org/$repo /tmp/$repo -- --depth=1
|
|
99
|
+
|
|
100
|
+
# Execute task
|
|
101
|
+
cd /tmp/$repo
|
|
102
|
+
npx ruv-swarm github task-execute \
|
|
103
|
+
--task "update-dependencies" \
|
|
104
|
+
--repo "org/$repo"
|
|
105
|
+
|
|
106
|
+
# Create PR if changes exist
|
|
107
|
+
if [[ -n $(git status --porcelain) ]]; then
|
|
108
|
+
git checkout -b update-dependencies-$(date +%Y%m%d)
|
|
109
|
+
git add -A
|
|
110
|
+
git commit -m "chore: Update dependencies"
|
|
111
|
+
|
|
112
|
+
# Push and create PR
|
|
113
|
+
git push origin HEAD
|
|
114
|
+
PR_URL=$(gh pr create \
|
|
115
|
+
--title "Update dependencies" \
|
|
116
|
+
--body "Automated dependency update across services" \
|
|
117
|
+
--label "dependencies,automated")
|
|
118
|
+
|
|
119
|
+
echo "$PR_URL" >> /tmp/created-prs.txt
|
|
120
|
+
fi
|
|
121
|
+
cd -
|
|
122
|
+
done
|
|
123
|
+
|
|
124
|
+
# Link related PRs
|
|
125
|
+
PR_URLS=$(cat /tmp/created-prs.txt)
|
|
126
|
+
npx ruv-swarm github link-prs --urls "$PR_URLS"
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
## Configuration
|
|
130
|
+
|
|
131
|
+
### Multi-Repo Config File
|
|
132
|
+
```yaml
|
|
133
|
+
# .swarm/multi-repo.yml
|
|
134
|
+
version: 1
|
|
135
|
+
organization: my-org
|
|
136
|
+
repositories:
|
|
137
|
+
- name: frontend
|
|
138
|
+
url: github.com/my-org/frontend
|
|
139
|
+
role: ui
|
|
140
|
+
agents: [coder, designer, tester]
|
|
141
|
+
|
|
142
|
+
- name: backend
|
|
143
|
+
url: github.com/my-org/backend
|
|
144
|
+
role: api
|
|
145
|
+
agents: [architect, coder, tester]
|
|
146
|
+
|
|
147
|
+
- name: shared
|
|
148
|
+
url: github.com/my-org/shared
|
|
149
|
+
role: library
|
|
150
|
+
agents: [analyst, coder]
|
|
151
|
+
|
|
152
|
+
coordination:
|
|
153
|
+
topology: hierarchical
|
|
154
|
+
communication: webhook
|
|
155
|
+
memory: redis://shared-memory
|
|
156
|
+
|
|
157
|
+
dependencies:
|
|
158
|
+
- from: frontend
|
|
159
|
+
to: [backend, shared]
|
|
160
|
+
- from: backend
|
|
161
|
+
to: [shared]
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
### Repository Roles
|
|
165
|
+
```javascript
|
|
166
|
+
// Define repository roles and responsibilities
|
|
167
|
+
{
|
|
168
|
+
"roles": {
|
|
169
|
+
"ui": {
|
|
170
|
+
"responsibilities": ["user-interface", "ux", "accessibility"],
|
|
171
|
+
"default-agents": ["designer", "coder", "tester"]
|
|
172
|
+
},
|
|
173
|
+
"api": {
|
|
174
|
+
"responsibilities": ["endpoints", "business-logic", "data"],
|
|
175
|
+
"default-agents": ["architect", "coder", "security"]
|
|
176
|
+
},
|
|
177
|
+
"library": {
|
|
178
|
+
"responsibilities": ["shared-code", "utilities", "types"],
|
|
179
|
+
"default-agents": ["analyst", "coder", "documenter"]
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
## Orchestration Commands
|
|
186
|
+
|
|
187
|
+
### Dependency Management
|
|
188
|
+
```bash
|
|
189
|
+
# Update dependencies across all repos with gh CLI
|
|
190
|
+
# Create tracking issue first
|
|
191
|
+
TRACKING_ISSUE=$(gh issue create \
|
|
192
|
+
--title "Dependency Update: typescript@5.0.0" \
|
|
193
|
+
--body "Tracking issue for updating TypeScript across all repositories" \
|
|
194
|
+
--label "dependencies,tracking" \
|
|
195
|
+
--json number -q .number)
|
|
196
|
+
|
|
197
|
+
# Get all repos with TypeScript
|
|
198
|
+
TS_REPOS=$(gh repo list org --limit 100 --json name | jq -r '.[].name' | \
|
|
199
|
+
while read -r repo; do
|
|
200
|
+
if gh api repos/org/$repo/contents/package.json 2>/dev/null | \
|
|
201
|
+
jq -r '.content' | base64 -d | grep -q '"typescript"'; then
|
|
202
|
+
echo "$repo"
|
|
203
|
+
fi
|
|
204
|
+
done)
|
|
205
|
+
|
|
206
|
+
# Update each repository
|
|
207
|
+
echo "$TS_REPOS" | while read -r repo; do
|
|
208
|
+
# Clone and update
|
|
209
|
+
gh repo clone org/$repo /tmp/$repo -- --depth=1
|
|
210
|
+
cd /tmp/$repo
|
|
211
|
+
|
|
212
|
+
# Update dependency
|
|
213
|
+
npm install --save-dev typescript@5.0.0
|
|
214
|
+
|
|
215
|
+
# Test changes
|
|
216
|
+
if npm test; then
|
|
217
|
+
# Create PR
|
|
218
|
+
git checkout -b update-typescript-5
|
|
219
|
+
git add package.json package-lock.json
|
|
220
|
+
git commit -m "chore: Update TypeScript to 5.0.0
|
|
221
|
+
|
|
222
|
+
Part of #$TRACKING_ISSUE"
|
|
223
|
+
|
|
224
|
+
git push origin HEAD
|
|
225
|
+
gh pr create \
|
|
226
|
+
--title "Update TypeScript to 5.0.0" \
|
|
227
|
+
--body "Updates TypeScript to version 5.0.0\n\nTracking: #$TRACKING_ISSUE" \
|
|
228
|
+
--label "dependencies"
|
|
229
|
+
else
|
|
230
|
+
# Report failure
|
|
231
|
+
gh issue comment $TRACKING_ISSUE \
|
|
232
|
+
--body "❌ Failed to update $repo - tests failing"
|
|
233
|
+
fi
|
|
234
|
+
cd -
|
|
235
|
+
done
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
### Refactoring Operations
|
|
239
|
+
```bash
|
|
240
|
+
# Coordinate large-scale refactoring
|
|
241
|
+
npx ruv-swarm github multi-repo-refactor \
|
|
242
|
+
--pattern "rename:OldAPI->NewAPI" \
|
|
243
|
+
--analyze-impact \
|
|
244
|
+
--create-migration-guide \
|
|
245
|
+
--staged-rollout
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
### Security Updates
|
|
249
|
+
```bash
|
|
250
|
+
# Coordinate security patches
|
|
251
|
+
npx ruv-swarm github multi-repo-security \
|
|
252
|
+
--scan-all \
|
|
253
|
+
--patch-vulnerabilities \
|
|
254
|
+
--verify-fixes \
|
|
255
|
+
--compliance-report
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
## Communication Strategies
|
|
259
|
+
|
|
260
|
+
### 1. Webhook-Based Coordination
|
|
261
|
+
```javascript
|
|
262
|
+
// webhook-coordinator.js
|
|
263
|
+
const { MultiRepoSwarm } = require('ruv-swarm');
|
|
264
|
+
|
|
265
|
+
const swarm = new MultiRepoSwarm({
|
|
266
|
+
webhook: {
|
|
267
|
+
url: 'https://swarm-coordinator.example.com',
|
|
268
|
+
secret: process.env.WEBHOOK_SECRET
|
|
269
|
+
}
|
|
270
|
+
});
|
|
271
|
+
|
|
272
|
+
// Handle cross-repo events
|
|
273
|
+
swarm.on('repo:update', async (event) => {
|
|
274
|
+
await swarm.propagate(event, {
|
|
275
|
+
to: event.dependencies,
|
|
276
|
+
strategy: 'eventual-consistency'
|
|
277
|
+
});
|
|
278
|
+
});
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
### 2. GraphQL Federation
|
|
282
|
+
```graphql
|
|
283
|
+
# Federated schema for multi-repo queries
|
|
284
|
+
type Repository @key(fields: "id") {
|
|
285
|
+
id: ID!
|
|
286
|
+
name: String!
|
|
287
|
+
swarmStatus: SwarmStatus!
|
|
288
|
+
dependencies: [Repository!]!
|
|
289
|
+
agents: [Agent!]!
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
type SwarmStatus {
|
|
293
|
+
active: Boolean!
|
|
294
|
+
topology: Topology!
|
|
295
|
+
tasks: [Task!]!
|
|
296
|
+
memory: JSON!
|
|
297
|
+
}
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
### 3. Event Streaming
|
|
301
|
+
```yaml
|
|
302
|
+
# Kafka configuration for real-time coordination
|
|
303
|
+
kafka:
|
|
304
|
+
brokers: ['kafka1:9092', 'kafka2:9092']
|
|
305
|
+
topics:
|
|
306
|
+
swarm-events:
|
|
307
|
+
partitions: 10
|
|
308
|
+
replication: 3
|
|
309
|
+
swarm-memory:
|
|
310
|
+
partitions: 5
|
|
311
|
+
replication: 3
|
|
312
|
+
```
|
|
313
|
+
|
|
314
|
+
## Advanced Features
|
|
315
|
+
|
|
316
|
+
### 1. Distributed Task Queue
|
|
317
|
+
```bash
|
|
318
|
+
# Create distributed task queue
|
|
319
|
+
npx ruv-swarm github multi-repo-queue \
|
|
320
|
+
--backend redis \
|
|
321
|
+
--workers 10 \
|
|
322
|
+
--priority-routing \
|
|
323
|
+
--dead-letter-queue
|
|
324
|
+
```
|
|
325
|
+
|
|
326
|
+
### 2. Cross-Repo Testing
|
|
327
|
+
```bash
|
|
328
|
+
# Run integration tests across repos
|
|
329
|
+
npx ruv-swarm github multi-repo-test \
|
|
330
|
+
--setup-test-env \
|
|
331
|
+
--link-services \
|
|
332
|
+
--run-e2e \
|
|
333
|
+
--tear-down
|
|
334
|
+
```
|
|
335
|
+
|
|
336
|
+
### 3. Monorepo Migration
|
|
337
|
+
```bash
|
|
338
|
+
# Assist in monorepo migration
|
|
339
|
+
npx ruv-swarm github to-monorepo \
|
|
340
|
+
--analyze-repos \
|
|
341
|
+
--suggest-structure \
|
|
342
|
+
--preserve-history \
|
|
343
|
+
--create-migration-prs
|
|
344
|
+
```
|
|
345
|
+
|
|
346
|
+
## Monitoring & Visualization
|
|
347
|
+
|
|
348
|
+
### Multi-Repo Dashboard
|
|
349
|
+
```bash
|
|
350
|
+
# Launch monitoring dashboard
|
|
351
|
+
npx ruv-swarm github multi-repo-dashboard \
|
|
352
|
+
--port 3000 \
|
|
353
|
+
--metrics "agent-activity,task-progress,memory-usage" \
|
|
354
|
+
--real-time
|
|
355
|
+
```
|
|
356
|
+
|
|
357
|
+
### Dependency Graph
|
|
358
|
+
```bash
|
|
359
|
+
# Visualize repo dependencies
|
|
360
|
+
npx ruv-swarm github dep-graph \
|
|
361
|
+
--format mermaid \
|
|
362
|
+
--include-agents \
|
|
363
|
+
--show-data-flow
|
|
364
|
+
```
|
|
365
|
+
|
|
366
|
+
### Health Monitoring
|
|
367
|
+
```bash
|
|
368
|
+
# Monitor swarm health across repos
|
|
369
|
+
npx ruv-swarm github health-check \
|
|
370
|
+
--repos "org/*" \
|
|
371
|
+
--check "connectivity,memory,agents" \
|
|
372
|
+
--alert-on-issues
|
|
373
|
+
```
|
|
374
|
+
|
|
375
|
+
## Synchronization Patterns
|
|
376
|
+
|
|
377
|
+
### 1. Eventually Consistent
|
|
378
|
+
```javascript
|
|
379
|
+
// Eventual consistency for non-critical updates
|
|
380
|
+
{
|
|
381
|
+
"sync": {
|
|
382
|
+
"strategy": "eventual",
|
|
383
|
+
"max-lag": "5m",
|
|
384
|
+
"retry": {
|
|
385
|
+
"attempts": 3,
|
|
386
|
+
"backoff": "exponential"
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
```
|
|
391
|
+
|
|
392
|
+
### 2. Strong Consistency
|
|
393
|
+
```javascript
|
|
394
|
+
// Strong consistency for critical operations
|
|
395
|
+
{
|
|
396
|
+
"sync": {
|
|
397
|
+
"strategy": "strong",
|
|
398
|
+
"consensus": "raft",
|
|
399
|
+
"quorum": 0.51,
|
|
400
|
+
"timeout": "30s"
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
```
|
|
404
|
+
|
|
405
|
+
### 3. Hybrid Approach
|
|
406
|
+
```javascript
|
|
407
|
+
// Mix of consistency levels
|
|
408
|
+
{
|
|
409
|
+
"sync": {
|
|
410
|
+
"default": "eventual",
|
|
411
|
+
"overrides": {
|
|
412
|
+
"security-updates": "strong",
|
|
413
|
+
"dependency-updates": "strong",
|
|
414
|
+
"documentation": "eventual"
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
```
|
|
419
|
+
|
|
420
|
+
## Use Cases
|
|
421
|
+
|
|
422
|
+
### 1. Microservices Coordination
|
|
423
|
+
```bash
|
|
424
|
+
# Coordinate microservices development
|
|
425
|
+
npx ruv-swarm github microservices \
|
|
426
|
+
--services "auth,users,orders,payments" \
|
|
427
|
+
--ensure-compatibility \
|
|
428
|
+
--sync-contracts \
|
|
429
|
+
--integration-tests
|
|
430
|
+
```
|
|
431
|
+
|
|
432
|
+
### 2. Library Updates
|
|
433
|
+
```bash
|
|
434
|
+
# Update shared library across consumers
|
|
435
|
+
npx ruv-swarm github lib-update \
|
|
436
|
+
--library "org/shared-lib" \
|
|
437
|
+
--version "2.0.0" \
|
|
438
|
+
--find-consumers \
|
|
439
|
+
--update-imports \
|
|
440
|
+
--run-tests
|
|
441
|
+
```
|
|
442
|
+
|
|
443
|
+
### 3. Organization-Wide Changes
|
|
444
|
+
```bash
|
|
445
|
+
# Apply org-wide policy changes
|
|
446
|
+
npx ruv-swarm github org-policy \
|
|
447
|
+
--policy "add-security-headers" \
|
|
448
|
+
--repos "org/*" \
|
|
449
|
+
--validate-compliance \
|
|
450
|
+
--create-reports
|
|
451
|
+
```
|
|
452
|
+
|
|
453
|
+
## Best Practices
|
|
454
|
+
|
|
455
|
+
### 1. Repository Organization
|
|
456
|
+
- Clear repository roles and boundaries
|
|
457
|
+
- Consistent naming conventions
|
|
458
|
+
- Documented dependencies
|
|
459
|
+
- Shared configuration standards
|
|
460
|
+
|
|
461
|
+
### 2. Communication
|
|
462
|
+
- Use appropriate sync strategies
|
|
463
|
+
- Implement circuit breakers
|
|
464
|
+
- Monitor latency and failures
|
|
465
|
+
- Clear error propagation
|
|
466
|
+
|
|
467
|
+
### 3. Security
|
|
468
|
+
- Secure cross-repo authentication
|
|
469
|
+
- Encrypted communication channels
|
|
470
|
+
- Audit trail for all operations
|
|
471
|
+
- Principle of least privilege
|
|
472
|
+
|
|
473
|
+
## Performance Optimization
|
|
474
|
+
|
|
475
|
+
### Caching Strategy
|
|
476
|
+
```bash
|
|
477
|
+
# Implement cross-repo caching
|
|
478
|
+
npx ruv-swarm github cache-strategy \
|
|
479
|
+
--analyze-patterns \
|
|
480
|
+
--suggest-cache-layers \
|
|
481
|
+
--implement-invalidation
|
|
482
|
+
```
|
|
483
|
+
|
|
484
|
+
### Parallel Execution
|
|
485
|
+
```bash
|
|
486
|
+
# Optimize parallel operations
|
|
487
|
+
npx ruv-swarm github parallel-optimize \
|
|
488
|
+
--analyze-dependencies \
|
|
489
|
+
--identify-parallelizable \
|
|
490
|
+
--execute-optimal
|
|
491
|
+
```
|
|
492
|
+
|
|
493
|
+
### Resource Pooling
|
|
494
|
+
```bash
|
|
495
|
+
# Pool resources across repos
|
|
496
|
+
npx ruv-swarm github resource-pool \
|
|
497
|
+
--share-agents \
|
|
498
|
+
--distribute-load \
|
|
499
|
+
--monitor-usage
|
|
500
|
+
```
|
|
501
|
+
|
|
502
|
+
## Troubleshooting
|
|
503
|
+
|
|
504
|
+
### Connectivity Issues
|
|
505
|
+
```bash
|
|
506
|
+
# Diagnose connectivity problems
|
|
507
|
+
npx ruv-swarm github diagnose-connectivity \
|
|
508
|
+
--test-all-repos \
|
|
509
|
+
--check-permissions \
|
|
510
|
+
--verify-webhooks
|
|
511
|
+
```
|
|
512
|
+
|
|
513
|
+
### Memory Synchronization
|
|
514
|
+
```bash
|
|
515
|
+
# Debug memory sync issues
|
|
516
|
+
npx ruv-swarm github debug-memory \
|
|
517
|
+
--check-consistency \
|
|
518
|
+
--identify-conflicts \
|
|
519
|
+
--repair-state
|
|
520
|
+
```
|
|
521
|
+
|
|
522
|
+
### Performance Bottlenecks
|
|
523
|
+
```bash
|
|
524
|
+
# Identify performance issues
|
|
525
|
+
npx ruv-swarm github perf-analysis \
|
|
526
|
+
--profile-operations \
|
|
527
|
+
--identify-bottlenecks \
|
|
528
|
+
--suggest-optimizations
|
|
529
|
+
```
|
|
530
|
+
|
|
531
|
+
## Examples
|
|
532
|
+
|
|
533
|
+
### Full-Stack Application Update
|
|
534
|
+
```bash
|
|
535
|
+
# Update full-stack application
|
|
536
|
+
npx ruv-swarm github fullstack-update \
|
|
537
|
+
--frontend "org/web-app" \
|
|
538
|
+
--backend "org/api-server" \
|
|
539
|
+
--database "org/db-migrations" \
|
|
540
|
+
--coordinate-deployment
|
|
541
|
+
```
|
|
542
|
+
|
|
543
|
+
### Cross-Team Collaboration
|
|
544
|
+
```bash
|
|
545
|
+
# Facilitate cross-team work
|
|
546
|
+
npx ruv-swarm github cross-team \
|
|
547
|
+
--teams "frontend,backend,devops" \
|
|
548
|
+
--task "implement-feature-x" \
|
|
549
|
+
--assign-by-expertise \
|
|
550
|
+
--track-progress
|
|
551
|
+
```
|
|
552
|
+
|
|
553
|
+
See also: [swarm-pr.md](./swarm-pr.md), [project-board-sync.md](./project-board-sync.md)
|