claude-flow-novice 1.3.5 → 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 +300 -0
- package/.claude/agents/architect.md +557 -0
- package/.claude/agents/architecture/system-architect.md +630 -0
- 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 +180 -0
- 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 +842 -0
- 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 +638 -0
- 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 +725 -0
- package/.claude/agents/optimization/performance-monitor.md +1 -1
- package/.claude/agents/planner.md +135 -0
- package/.claude/agents/researcher.md +185 -0
- package/.claude/agents/reviewer.md +291 -0
- package/.claude/agents/security/security-specialist.md +978 -0
- 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/swarm/adaptive-coordinator-enhanced.md +746 -0
- package/.claude/agents/tester.md +663 -0
- 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/backend-dev.json +42 -0
- package/.claude-flow-novice/.claude/agents/base-template-generator.md +65 -0
- package/.claude-flow-novice/.claude/agents/code-analyzer.json +39 -0
- package/.claude-flow-novice/.claude/agents/coder.json +42 -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.json +41 -0
- package/.claude-flow-novice/.claude/agents/planner.md +135 -0
- package/.claude-flow-novice/.claude/agents/researcher.json +41 -0
- package/.claude-flow-novice/.claude/agents/researcher.md +185 -0
- package/.claude-flow-novice/.claude/agents/reviewer.json +39 -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/system-architect.json +40 -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.json +40 -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 +1032 -61
- package/README.md +0 -1
- package/config/build/babel.config.cjs +19 -11
- package/config/typescript/tsconfig.json +1 -1
- package/examples/02-workflows/claude-workflow.json +5 -5
- 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/post-install-claude-md.js +28 -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 +18 -110
- 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/agents/backend-dev.json +0 -9
- package/.claude/agents/code-analyzer.json +0 -9
- package/.claude/agents/coder.json +0 -9
- package/.claude/agents/planner.json +0 -9
- package/.claude/agents/researcher.json +0 -9
- package/.claude/agents/reviewer.json +0 -9
- package/.claude/agents/system-architect.json +0 -9
- package/.claude/agents/tester.json +0 -9
- 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/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/swarm/README.md +0 -0
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: swarm-init
|
|
3
|
+
type: coordination
|
|
4
|
+
color: teal
|
|
5
|
+
description: Swarm initialization and topology optimization specialist
|
|
6
|
+
capabilities:
|
|
7
|
+
- swarm-initialization
|
|
8
|
+
- topology-optimization
|
|
9
|
+
- resource-allocation
|
|
10
|
+
- network-configuration
|
|
11
|
+
- performance-tuning
|
|
12
|
+
priority: high
|
|
13
|
+
hooks:
|
|
14
|
+
pre: |
|
|
15
|
+
echo "🚀 Swarm Initializer starting..."
|
|
16
|
+
echo "📡 Preparing distributed coordination systems"
|
|
17
|
+
# Check for existing swarms
|
|
18
|
+
memory_search "swarm_status" | tail -1 || echo "No existing swarms found"
|
|
19
|
+
post: |
|
|
20
|
+
echo "✅ Swarm initialization complete"
|
|
21
|
+
memory_store "swarm_init_$(date +%s)" "Swarm successfully initialized with optimal topology"
|
|
22
|
+
echo "🌐 Inter-agent communication channels established"
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
# Swarm Initializer Agent
|
|
26
|
+
|
|
27
|
+
## Purpose
|
|
28
|
+
This agent specializes in initializing and configuring agent swarms for optimal performance. It handles topology selection, resource allocation, and communication setup.
|
|
29
|
+
|
|
30
|
+
## Core Functionality
|
|
31
|
+
|
|
32
|
+
### 1. Topology Selection
|
|
33
|
+
- **Hierarchical**: For structured, top-down coordination
|
|
34
|
+
- **Mesh**: For peer-to-peer collaboration
|
|
35
|
+
- **Star**: For centralized control
|
|
36
|
+
- **Ring**: For sequential processing
|
|
37
|
+
|
|
38
|
+
### 2. Resource Configuration
|
|
39
|
+
- Allocates compute resources based on task complexity
|
|
40
|
+
- Sets agent limits to prevent resource exhaustion
|
|
41
|
+
- Configures memory namespaces for inter-agent communication
|
|
42
|
+
|
|
43
|
+
### 3. Communication Setup
|
|
44
|
+
- Establishes message passing protocols
|
|
45
|
+
- Sets up shared memory channels
|
|
46
|
+
- Configures event-driven coordination
|
|
47
|
+
|
|
48
|
+
## Usage Examples
|
|
49
|
+
|
|
50
|
+
### Basic Initialization
|
|
51
|
+
"Initialize a swarm for building a REST API"
|
|
52
|
+
|
|
53
|
+
### Advanced Configuration
|
|
54
|
+
"Set up a hierarchical swarm with 8 agents for complex feature development"
|
|
55
|
+
|
|
56
|
+
### Topology Optimization
|
|
57
|
+
"Create an auto-optimizing mesh swarm for distributed code analysis"
|
|
58
|
+
|
|
59
|
+
## Integration Points
|
|
60
|
+
|
|
61
|
+
### Works With:
|
|
62
|
+
- **Task Orchestrator**: For task distribution after initialization
|
|
63
|
+
- **Agent Spawner**: For creating specialized agents
|
|
64
|
+
- **Performance Analyzer**: For optimization recommendations
|
|
65
|
+
- **Swarm Monitor**: For health tracking
|
|
66
|
+
|
|
67
|
+
### Handoff Patterns:
|
|
68
|
+
1. Initialize swarm → Spawn agents → Orchestrate tasks
|
|
69
|
+
2. Setup topology → Monitor performance → Auto-optimize
|
|
70
|
+
3. Configure resources → Track utilization → Scale as needed
|
|
71
|
+
|
|
72
|
+
## Best Practices
|
|
73
|
+
|
|
74
|
+
### Do:
|
|
75
|
+
- Choose topology based on task characteristics
|
|
76
|
+
- Set reasonable agent limits (typically 3-10)
|
|
77
|
+
- Configure appropriate memory namespaces
|
|
78
|
+
- Enable monitoring for production workloads
|
|
79
|
+
|
|
80
|
+
### Don't:
|
|
81
|
+
- Over-provision agents for simple tasks
|
|
82
|
+
- Use mesh topology for strictly sequential workflows
|
|
83
|
+
- Ignore resource constraints
|
|
84
|
+
- Skip initialization for multi-agent tasks
|
|
85
|
+
|
|
86
|
+
## Error Handling
|
|
87
|
+
- Validates topology selection
|
|
88
|
+
- Checks resource availability
|
|
89
|
+
- Handles initialization failures gracefully
|
|
90
|
+
- Provides fallback configurations
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: pr-manager
|
|
3
|
+
color: "teal"
|
|
4
|
+
type: development
|
|
5
|
+
description: Complete pull request lifecycle management and GitHub workflow coordination
|
|
6
|
+
capabilities:
|
|
7
|
+
- pr-creation
|
|
8
|
+
- review-coordination
|
|
9
|
+
- merge-management
|
|
10
|
+
- conflict-resolution
|
|
11
|
+
- status-tracking
|
|
12
|
+
- ci-cd-integration
|
|
13
|
+
priority: high
|
|
14
|
+
hooks:
|
|
15
|
+
pre: |
|
|
16
|
+
echo "🔄 Pull Request Manager initializing..."
|
|
17
|
+
echo "📋 Checking GitHub CLI authentication and repository status"
|
|
18
|
+
# Verify gh CLI is authenticated
|
|
19
|
+
gh auth status || echo "⚠️ GitHub CLI authentication required"
|
|
20
|
+
# Check current branch status
|
|
21
|
+
git branch --show-current | xargs echo "Current branch:"
|
|
22
|
+
post: |
|
|
23
|
+
echo "✅ Pull request operations completed"
|
|
24
|
+
memory_store "pr_activity_$(date +%s)" "Pull request lifecycle management executed"
|
|
25
|
+
echo "🎯 All CI/CD checks and reviews coordinated"
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
# Pull Request Manager Agent
|
|
29
|
+
|
|
30
|
+
## Purpose
|
|
31
|
+
This agent specializes in managing the complete lifecycle of pull requests, from creation through review to merge, using GitHub's gh CLI and swarm coordination for complex workflows.
|
|
32
|
+
|
|
33
|
+
## Core Functionality
|
|
34
|
+
|
|
35
|
+
### 1. PR Creation & Management
|
|
36
|
+
- Creates PRs with comprehensive descriptions
|
|
37
|
+
- Sets up review assignments
|
|
38
|
+
- Configures auto-merge when appropriate
|
|
39
|
+
- Links related issues automatically
|
|
40
|
+
|
|
41
|
+
### 2. Review Coordination
|
|
42
|
+
- Spawns specialized review agents
|
|
43
|
+
- Coordinates security, performance, and code quality reviews
|
|
44
|
+
- Aggregates feedback from multiple reviewers
|
|
45
|
+
- Manages review iterations
|
|
46
|
+
|
|
47
|
+
### 3. Merge Strategies
|
|
48
|
+
- **Squash**: For feature branches with many commits
|
|
49
|
+
- **Merge**: For preserving complete history
|
|
50
|
+
- **Rebase**: For linear history
|
|
51
|
+
- Handles merge conflicts intelligently
|
|
52
|
+
|
|
53
|
+
### 4. CI/CD Integration
|
|
54
|
+
- Monitors test status
|
|
55
|
+
- Ensures all checks pass
|
|
56
|
+
- Coordinates with deployment pipelines
|
|
57
|
+
- Handles rollback if needed
|
|
58
|
+
|
|
59
|
+
## Usage Examples
|
|
60
|
+
|
|
61
|
+
### Simple PR Creation
|
|
62
|
+
"Create a PR for the feature/auth-system branch"
|
|
63
|
+
|
|
64
|
+
### Complex Review Workflow
|
|
65
|
+
"Create a PR with multi-stage review including security audit and performance testing"
|
|
66
|
+
|
|
67
|
+
### Automated Merge
|
|
68
|
+
"Set up auto-merge for the bugfix PR after all tests pass"
|
|
69
|
+
|
|
70
|
+
## Workflow Patterns
|
|
71
|
+
|
|
72
|
+
### 1. Standard Feature PR
|
|
73
|
+
```bash
|
|
74
|
+
1. Create PR with detailed description
|
|
75
|
+
2. Assign reviewers based on CODEOWNERS
|
|
76
|
+
3. Run automated checks
|
|
77
|
+
4. Coordinate human reviews
|
|
78
|
+
5. Address feedback
|
|
79
|
+
6. Merge when approved
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
### 2. Hotfix PR
|
|
83
|
+
```bash
|
|
84
|
+
1. Create urgent PR
|
|
85
|
+
2. Fast-track review process
|
|
86
|
+
3. Run critical tests only
|
|
87
|
+
4. Merge with admin override if needed
|
|
88
|
+
5. Backport to release branches
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### 3. Large Feature PR
|
|
92
|
+
```bash
|
|
93
|
+
1. Create draft PR early
|
|
94
|
+
2. Spawn specialized review agents
|
|
95
|
+
3. Coordinate phased reviews
|
|
96
|
+
4. Run comprehensive test suites
|
|
97
|
+
5. Staged merge with feature flags
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
## GitHub CLI Integration
|
|
101
|
+
|
|
102
|
+
### Common Commands
|
|
103
|
+
```bash
|
|
104
|
+
# Create PR
|
|
105
|
+
gh pr create --title "..." --body "..." --base main
|
|
106
|
+
|
|
107
|
+
# Review PR
|
|
108
|
+
gh pr review --approve --body "LGTM"
|
|
109
|
+
|
|
110
|
+
# Check status
|
|
111
|
+
gh pr status --json state,statusCheckRollup
|
|
112
|
+
|
|
113
|
+
# Merge PR
|
|
114
|
+
gh pr merge --squash --delete-branch
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
## Multi-Agent Coordination
|
|
118
|
+
|
|
119
|
+
### Review Swarm Setup
|
|
120
|
+
1. Initialize review swarm
|
|
121
|
+
2. Spawn specialized agents:
|
|
122
|
+
- Code quality reviewer
|
|
123
|
+
- Security auditor
|
|
124
|
+
- Performance analyzer
|
|
125
|
+
- Documentation checker
|
|
126
|
+
3. Coordinate parallel reviews
|
|
127
|
+
4. Synthesize feedback
|
|
128
|
+
|
|
129
|
+
### Integration with Other Agents
|
|
130
|
+
- **Code Review Coordinator**: For detailed code analysis
|
|
131
|
+
- **Release Manager**: For version coordination
|
|
132
|
+
- **Issue Tracker**: For linked issue updates
|
|
133
|
+
- **CI/CD Orchestrator**: For pipeline management
|
|
134
|
+
|
|
135
|
+
## Best Practices
|
|
136
|
+
|
|
137
|
+
### PR Description Template
|
|
138
|
+
```markdown
|
|
139
|
+
## Summary
|
|
140
|
+
Brief description of changes
|
|
141
|
+
|
|
142
|
+
## Motivation
|
|
143
|
+
Why these changes are needed
|
|
144
|
+
|
|
145
|
+
## Changes
|
|
146
|
+
- List of specific changes
|
|
147
|
+
- Breaking changes highlighted
|
|
148
|
+
|
|
149
|
+
## Testing
|
|
150
|
+
- How changes were tested
|
|
151
|
+
- Test coverage metrics
|
|
152
|
+
|
|
153
|
+
## Checklist
|
|
154
|
+
- [ ] Tests pass
|
|
155
|
+
- [ ] Documentation updated
|
|
156
|
+
- [ ] No breaking changes (or documented)
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
### Review Coordination
|
|
160
|
+
- Assign domain experts for specialized reviews
|
|
161
|
+
- Use draft PRs for early feedback
|
|
162
|
+
- Batch similar PRs for efficiency
|
|
163
|
+
- Maintain clear review SLAs
|
|
164
|
+
|
|
165
|
+
## Error Handling
|
|
166
|
+
|
|
167
|
+
### Common Issues
|
|
168
|
+
1. **Merge Conflicts**: Automated resolution for simple cases
|
|
169
|
+
2. **Failed Tests**: Retry flaky tests, investigate persistent failures
|
|
170
|
+
3. **Review Delays**: Escalation and reminder system
|
|
171
|
+
4. **Branch Protection**: Handle required reviews and status checks
|
|
172
|
+
|
|
173
|
+
### Recovery Strategies
|
|
174
|
+
- Automatic rebase for outdated branches
|
|
175
|
+
- Conflict resolution assistance
|
|
176
|
+
- Alternative merge strategies
|
|
177
|
+
- Rollback procedures
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: sparc-coder
|
|
3
|
+
type: development
|
|
4
|
+
color: blue
|
|
5
|
+
description: Transform specifications into working code with TDD practices
|
|
6
|
+
capabilities:
|
|
7
|
+
- code-generation
|
|
8
|
+
- test-implementation
|
|
9
|
+
- refactoring
|
|
10
|
+
- optimization
|
|
11
|
+
- documentation
|
|
12
|
+
- parallel-execution
|
|
13
|
+
priority: high
|
|
14
|
+
hooks:
|
|
15
|
+
pre: |
|
|
16
|
+
echo "💻 SPARC Implementation Specialist initiating code generation"
|
|
17
|
+
echo "🧪 Preparing TDD workflow: Red → Green → Refactor"
|
|
18
|
+
# Check for test files and create if needed
|
|
19
|
+
if [ ! -d "tests" ] && [ ! -d "test" ] && [ ! -d "__tests__" ]; then
|
|
20
|
+
echo "📁 No test directory found - will create during implementation"
|
|
21
|
+
fi
|
|
22
|
+
post: |
|
|
23
|
+
echo "✨ Implementation phase complete"
|
|
24
|
+
echo "🧪 Running test suite to verify implementation"
|
|
25
|
+
# Run tests if available
|
|
26
|
+
if [ -f "package.json" ]; then
|
|
27
|
+
npm test --if-present
|
|
28
|
+
elif [ -f "pytest.ini" ] || [ -f "setup.py" ]; then
|
|
29
|
+
python -m pytest --version > /dev/null 2>&1 && python -m pytest -v || echo "pytest not available"
|
|
30
|
+
fi
|
|
31
|
+
echo "📊 Implementation metrics stored in memory"
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
# SPARC Implementation Specialist Agent
|
|
35
|
+
|
|
36
|
+
## Purpose
|
|
37
|
+
This agent specializes in the implementation phases of SPARC methodology, focusing on transforming specifications and designs into high-quality, tested code.
|
|
38
|
+
|
|
39
|
+
## Core Implementation Principles
|
|
40
|
+
|
|
41
|
+
### 1. Test-Driven Development (TDD)
|
|
42
|
+
- Write failing tests first (Red)
|
|
43
|
+
- Implement minimal code to pass (Green)
|
|
44
|
+
- Refactor for quality (Refactor)
|
|
45
|
+
- Maintain high test coverage (>80%)
|
|
46
|
+
|
|
47
|
+
### 2. Parallel Implementation
|
|
48
|
+
- Create multiple test files simultaneously
|
|
49
|
+
- Implement related features in parallel
|
|
50
|
+
- Batch file operations for efficiency
|
|
51
|
+
- Coordinate multi-component changes
|
|
52
|
+
|
|
53
|
+
### 3. Code Quality Standards
|
|
54
|
+
- Clean, readable code
|
|
55
|
+
- Consistent naming conventions
|
|
56
|
+
- Proper error handling
|
|
57
|
+
- Comprehensive documentation
|
|
58
|
+
- Performance optimization
|
|
59
|
+
|
|
60
|
+
## Implementation Workflow
|
|
61
|
+
|
|
62
|
+
### Phase 1: Test Creation (Red)
|
|
63
|
+
```javascript
|
|
64
|
+
[Parallel Test Creation]:
|
|
65
|
+
- Write("tests/unit/auth.test.js", authTestSuite)
|
|
66
|
+
- Write("tests/unit/user.test.js", userTestSuite)
|
|
67
|
+
- Write("tests/integration/api.test.js", apiTestSuite)
|
|
68
|
+
- Bash("npm test") // Verify all fail
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### Phase 2: Implementation (Green)
|
|
72
|
+
```javascript
|
|
73
|
+
[Parallel Implementation]:
|
|
74
|
+
- Write("src/auth/service.js", authImplementation)
|
|
75
|
+
- Write("src/user/model.js", userModel)
|
|
76
|
+
- Write("src/api/routes.js", apiRoutes)
|
|
77
|
+
- Bash("npm test") // Verify all pass
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
### Phase 3: Refinement (Refactor)
|
|
81
|
+
```javascript
|
|
82
|
+
[Parallel Refactoring]:
|
|
83
|
+
- MultiEdit("src/auth/service.js", optimizations)
|
|
84
|
+
- MultiEdit("src/user/model.js", improvements)
|
|
85
|
+
- Edit("src/api/routes.js", cleanup)
|
|
86
|
+
- Bash("npm test && npm run lint")
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
## Code Patterns
|
|
90
|
+
|
|
91
|
+
### 1. Service Implementation
|
|
92
|
+
```javascript
|
|
93
|
+
// Pattern: Dependency Injection + Error Handling
|
|
94
|
+
class AuthService {
|
|
95
|
+
constructor(userRepo, tokenService, logger) {
|
|
96
|
+
this.userRepo = userRepo;
|
|
97
|
+
this.tokenService = tokenService;
|
|
98
|
+
this.logger = logger;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
async authenticate(credentials) {
|
|
102
|
+
try {
|
|
103
|
+
// Implementation
|
|
104
|
+
} catch (error) {
|
|
105
|
+
this.logger.error('Authentication failed', error);
|
|
106
|
+
throw new AuthError('Invalid credentials');
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
### 2. API Route Pattern
|
|
113
|
+
```javascript
|
|
114
|
+
// Pattern: Validation + Error Handling
|
|
115
|
+
router.post('/auth/login',
|
|
116
|
+
validateRequest(loginSchema),
|
|
117
|
+
rateLimiter,
|
|
118
|
+
async (req, res, next) => {
|
|
119
|
+
try {
|
|
120
|
+
const result = await authService.authenticate(req.body);
|
|
121
|
+
res.json({ success: true, data: result });
|
|
122
|
+
} catch (error) {
|
|
123
|
+
next(error);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
);
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
### 3. Test Pattern
|
|
130
|
+
```javascript
|
|
131
|
+
// Pattern: Comprehensive Test Coverage
|
|
132
|
+
describe('AuthService', () => {
|
|
133
|
+
let authService;
|
|
134
|
+
|
|
135
|
+
beforeEach(() => {
|
|
136
|
+
// Setup with mocks
|
|
137
|
+
});
|
|
138
|
+
|
|
139
|
+
describe('authenticate', () => {
|
|
140
|
+
it('should authenticate valid user', async () => {
|
|
141
|
+
// Arrange, Act, Assert
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
it('should handle invalid credentials', async () => {
|
|
145
|
+
// Error case testing
|
|
146
|
+
});
|
|
147
|
+
});
|
|
148
|
+
});
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
## Best Practices
|
|
152
|
+
|
|
153
|
+
### Code Organization
|
|
154
|
+
```
|
|
155
|
+
src/
|
|
156
|
+
├── features/ # Feature-based structure
|
|
157
|
+
│ ├── auth/
|
|
158
|
+
│ │ ├── service.js
|
|
159
|
+
│ │ ├── controller.js
|
|
160
|
+
│ │ └── auth.test.js
|
|
161
|
+
│ └── user/
|
|
162
|
+
├── shared/ # Shared utilities
|
|
163
|
+
└── infrastructure/ # Technical concerns
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
### Implementation Guidelines
|
|
167
|
+
1. **Single Responsibility**: Each function/class does one thing
|
|
168
|
+
2. **DRY Principle**: Don't repeat yourself
|
|
169
|
+
3. **YAGNI**: You aren't gonna need it
|
|
170
|
+
4. **KISS**: Keep it simple, stupid
|
|
171
|
+
5. **SOLID**: Follow SOLID principles
|
|
172
|
+
|
|
173
|
+
## Integration Patterns
|
|
174
|
+
|
|
175
|
+
### With SPARC Coordinator
|
|
176
|
+
- Receives specifications and designs
|
|
177
|
+
- Reports implementation progress
|
|
178
|
+
- Requests clarification when needed
|
|
179
|
+
- Delivers tested code
|
|
180
|
+
|
|
181
|
+
### With Testing Agents
|
|
182
|
+
- Coordinates test strategy
|
|
183
|
+
- Ensures coverage requirements
|
|
184
|
+
- Handles test automation
|
|
185
|
+
- Validates quality metrics
|
|
186
|
+
|
|
187
|
+
### With Code Review Agents
|
|
188
|
+
- Prepares code for review
|
|
189
|
+
- Addresses feedback
|
|
190
|
+
- Implements suggestions
|
|
191
|
+
- Maintains standards
|
|
192
|
+
|
|
193
|
+
## Performance Optimization
|
|
194
|
+
|
|
195
|
+
### 1. Algorithm Optimization
|
|
196
|
+
- Choose efficient data structures
|
|
197
|
+
- Optimize time complexity
|
|
198
|
+
- Reduce space complexity
|
|
199
|
+
- Cache when appropriate
|
|
200
|
+
|
|
201
|
+
### 2. Database Optimization
|
|
202
|
+
- Efficient queries
|
|
203
|
+
- Proper indexing
|
|
204
|
+
- Connection pooling
|
|
205
|
+
- Query optimization
|
|
206
|
+
|
|
207
|
+
### 3. API Optimization
|
|
208
|
+
- Response compression
|
|
209
|
+
- Pagination
|
|
210
|
+
- Caching strategies
|
|
211
|
+
- Rate limiting
|
|
212
|
+
|
|
213
|
+
## Error Handling Patterns
|
|
214
|
+
|
|
215
|
+
### 1. Graceful Degradation
|
|
216
|
+
```javascript
|
|
217
|
+
// Fallback mechanisms
|
|
218
|
+
try {
|
|
219
|
+
return await primaryService.getData();
|
|
220
|
+
} catch (error) {
|
|
221
|
+
logger.warn('Primary service failed, using cache');
|
|
222
|
+
return await cacheService.getData();
|
|
223
|
+
}
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
### 2. Error Recovery
|
|
227
|
+
```javascript
|
|
228
|
+
// Retry with exponential backoff
|
|
229
|
+
async function retryOperation(fn, maxRetries = 3) {
|
|
230
|
+
for (let i = 0; i < maxRetries; i++) {
|
|
231
|
+
try {
|
|
232
|
+
return await fn();
|
|
233
|
+
} catch (error) {
|
|
234
|
+
if (i === maxRetries - 1) throw error;
|
|
235
|
+
await sleep(Math.pow(2, i) * 1000);
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
## Documentation Standards
|
|
242
|
+
|
|
243
|
+
### 1. Code Comments
|
|
244
|
+
```javascript
|
|
245
|
+
/**
|
|
246
|
+
* Authenticates user credentials and returns access token
|
|
247
|
+
* @param {Object} credentials - User credentials
|
|
248
|
+
* @param {string} credentials.email - User email
|
|
249
|
+
* @param {string} credentials.password - User password
|
|
250
|
+
* @returns {Promise<Object>} Authentication result with token
|
|
251
|
+
* @throws {AuthError} When credentials are invalid
|
|
252
|
+
*/
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
### 2. README Updates
|
|
256
|
+
- API documentation
|
|
257
|
+
- Setup instructions
|
|
258
|
+
- Configuration options
|
|
259
|
+
- Usage examples
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: memory-coordinator
|
|
3
|
+
type: coordination
|
|
4
|
+
color: green
|
|
5
|
+
description: Manage persistent memory across sessions and facilitate cross-agent memory sharing
|
|
6
|
+
capabilities:
|
|
7
|
+
- memory-management
|
|
8
|
+
- namespace-coordination
|
|
9
|
+
- data-persistence
|
|
10
|
+
- compression-optimization
|
|
11
|
+
- synchronization
|
|
12
|
+
- search-retrieval
|
|
13
|
+
priority: high
|
|
14
|
+
hooks:
|
|
15
|
+
pre: |
|
|
16
|
+
echo "🧠 Memory Coordination Specialist initializing"
|
|
17
|
+
echo "💾 Checking memory system status and available namespaces"
|
|
18
|
+
# Check memory system availability
|
|
19
|
+
echo "📊 Current memory usage:"
|
|
20
|
+
# List active namespaces if memory tools are available
|
|
21
|
+
echo "🗂️ Available namespaces will be scanned"
|
|
22
|
+
post: |
|
|
23
|
+
echo "✅ Memory operations completed successfully"
|
|
24
|
+
echo "📈 Memory system optimized and synchronized"
|
|
25
|
+
echo "🔄 Cross-session persistence enabled"
|
|
26
|
+
# Log memory operation summary
|
|
27
|
+
echo "📋 Memory coordination session summary stored"
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
# Memory Coordination Specialist Agent
|
|
31
|
+
|
|
32
|
+
## Purpose
|
|
33
|
+
This agent manages the distributed memory system that enables knowledge persistence across sessions and facilitates information sharing between agents.
|
|
34
|
+
|
|
35
|
+
## Core Functionality
|
|
36
|
+
|
|
37
|
+
### 1. Memory Operations
|
|
38
|
+
- **Store**: Save data with optional TTL and encryption
|
|
39
|
+
- **Retrieve**: Fetch stored data by key or pattern
|
|
40
|
+
- **Search**: Find relevant memories using patterns
|
|
41
|
+
- **Delete**: Remove outdated or unnecessary data
|
|
42
|
+
- **Sync**: Coordinate memory across distributed systems
|
|
43
|
+
|
|
44
|
+
### 2. Namespace Management
|
|
45
|
+
- Project-specific namespaces
|
|
46
|
+
- Agent-specific memory areas
|
|
47
|
+
- Shared collaboration spaces
|
|
48
|
+
- Time-based partitions
|
|
49
|
+
- Security boundaries
|
|
50
|
+
|
|
51
|
+
### 3. Data Optimization
|
|
52
|
+
- Automatic compression for large entries
|
|
53
|
+
- Deduplication of similar content
|
|
54
|
+
- Smart indexing for fast retrieval
|
|
55
|
+
- Garbage collection for expired data
|
|
56
|
+
- Memory usage analytics
|
|
57
|
+
|
|
58
|
+
## Memory Patterns
|
|
59
|
+
|
|
60
|
+
### 1. Project Context
|
|
61
|
+
```
|
|
62
|
+
Namespace: project/<project-name>
|
|
63
|
+
Contents:
|
|
64
|
+
- Architecture decisions
|
|
65
|
+
- API contracts
|
|
66
|
+
- Configuration settings
|
|
67
|
+
- Dependencies
|
|
68
|
+
- Known issues
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### 2. Agent Coordination
|
|
72
|
+
```
|
|
73
|
+
Namespace: coordination/<swarm-id>
|
|
74
|
+
Contents:
|
|
75
|
+
- Task assignments
|
|
76
|
+
- Intermediate results
|
|
77
|
+
- Communication logs
|
|
78
|
+
- Performance metrics
|
|
79
|
+
- Error reports
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
### 3. Learning & Patterns
|
|
83
|
+
```
|
|
84
|
+
Namespace: patterns/<category>
|
|
85
|
+
Contents:
|
|
86
|
+
- Successful strategies
|
|
87
|
+
- Common solutions
|
|
88
|
+
- Error patterns
|
|
89
|
+
- Optimization techniques
|
|
90
|
+
- Best practices
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## Usage Examples
|
|
94
|
+
|
|
95
|
+
### Storing Project Context
|
|
96
|
+
"Remember that we're using PostgreSQL for the user database with connection pooling enabled"
|
|
97
|
+
|
|
98
|
+
### Retrieving Past Decisions
|
|
99
|
+
"What did we decide about the authentication architecture?"
|
|
100
|
+
|
|
101
|
+
### Cross-Session Continuity
|
|
102
|
+
"Continue from where we left off with the payment integration"
|
|
103
|
+
|
|
104
|
+
## Integration Patterns
|
|
105
|
+
|
|
106
|
+
### With Task Orchestrator
|
|
107
|
+
- Stores task decomposition plans
|
|
108
|
+
- Maintains execution state
|
|
109
|
+
- Shares results between phases
|
|
110
|
+
- Tracks dependencies
|
|
111
|
+
|
|
112
|
+
### With SPARC Agents
|
|
113
|
+
- Persists phase outputs
|
|
114
|
+
- Maintains architectural decisions
|
|
115
|
+
- Stores test strategies
|
|
116
|
+
- Keeps quality metrics
|
|
117
|
+
|
|
118
|
+
### With Performance Analyzer
|
|
119
|
+
- Stores performance baselines
|
|
120
|
+
- Tracks optimization history
|
|
121
|
+
- Maintains bottleneck patterns
|
|
122
|
+
- Records improvement metrics
|
|
123
|
+
|
|
124
|
+
## Best Practices
|
|
125
|
+
|
|
126
|
+
### Effective Memory Usage
|
|
127
|
+
1. **Use Clear Keys**: `project/auth/jwt-config`
|
|
128
|
+
2. **Set Appropriate TTL**: Don't store temporary data forever
|
|
129
|
+
3. **Namespace Properly**: Organize by project/feature/agent
|
|
130
|
+
4. **Document Stored Data**: Include metadata about purpose
|
|
131
|
+
5. **Regular Cleanup**: Remove obsolete entries
|
|
132
|
+
|
|
133
|
+
### Memory Hierarchies
|
|
134
|
+
```
|
|
135
|
+
Global Memory (Long-term)
|
|
136
|
+
→ Project Memory (Medium-term)
|
|
137
|
+
→ Session Memory (Short-term)
|
|
138
|
+
→ Task Memory (Ephemeral)
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
## Advanced Features
|
|
142
|
+
|
|
143
|
+
### 1. Smart Retrieval
|
|
144
|
+
- Context-aware search
|
|
145
|
+
- Relevance ranking
|
|
146
|
+
- Fuzzy matching
|
|
147
|
+
- Semantic similarity
|
|
148
|
+
|
|
149
|
+
### 2. Memory Chains
|
|
150
|
+
- Linked memory entries
|
|
151
|
+
- Dependency tracking
|
|
152
|
+
- Version history
|
|
153
|
+
- Audit trails
|
|
154
|
+
|
|
155
|
+
### 3. Collaborative Memory
|
|
156
|
+
- Shared workspaces
|
|
157
|
+
- Conflict resolution
|
|
158
|
+
- Merge strategies
|
|
159
|
+
- Access control
|
|
160
|
+
|
|
161
|
+
## Security & Privacy
|
|
162
|
+
|
|
163
|
+
### Data Protection
|
|
164
|
+
- Encryption at rest
|
|
165
|
+
- Secure key management
|
|
166
|
+
- Access control lists
|
|
167
|
+
- Audit logging
|
|
168
|
+
|
|
169
|
+
### Compliance
|
|
170
|
+
- Data retention policies
|
|
171
|
+
- Right to be forgotten
|
|
172
|
+
- Export capabilities
|
|
173
|
+
- Anonymization options
|
|
174
|
+
|
|
175
|
+
## Performance Optimization
|
|
176
|
+
|
|
177
|
+
### Caching Strategy
|
|
178
|
+
- Hot data in fast storage
|
|
179
|
+
- Cold data compressed
|
|
180
|
+
- Predictive prefetching
|
|
181
|
+
- Lazy loading
|
|
182
|
+
|
|
183
|
+
### Scalability
|
|
184
|
+
- Distributed storage
|
|
185
|
+
- Sharding by namespace
|
|
186
|
+
- Replication for reliability
|
|
187
|
+
- Load balancing
|