claude-flow-novice 1.3.6 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/agents/analysis/code-analyzer.md +3 -20
- package/.claude/agents/analysis/code-review/analyze-code-quality.md +1 -1
- package/.claude/agents/analyst.md +208 -550
- package/.claude/agents/architect.md +136 -469
- package/.claude/agents/architecture/system-architect.md +20 -1
- package/.claude/agents/architecture/system-design/arch-system-design.md +1 -1
- package/.claude/agents/base-template-generator.md +24 -1
- package/.claude/agents/coder.md +87 -303
- package/.claude/agents/consensus/byzantine-coordinator.md +4 -21
- package/.claude/agents/consensus/consensus-builder.md +3 -20
- package/.claude/agents/consensus/crdt-synchronizer.md +4 -21
- package/.claude/agents/consensus/gossip-coordinator.md +4 -21
- package/.claude/agents/consensus/performance-benchmarker.md +4 -21
- package/.claude/agents/consensus/quorum-manager.md +4 -21
- package/.claude/agents/consensus/raft-manager.md +4 -21
- package/.claude/agents/consensus/security-manager.md +4 -21
- package/.claude/agents/coordinator.md +22 -11
- package/.claude/agents/data/ml/data-ml-model.md +2 -2
- package/.claude/agents/development/backend/dev-backend-api.md +2 -2
- package/.claude/agents/devops/ci-cd/ops-cicd-github.md +2 -2
- package/.claude/agents/devops/devops-engineer.md +134 -402
- package/.claude/agents/documentation/api-docs/docs-api-openapi.md +2 -2
- package/.claude/agents/github/code-review-swarm.md +1 -1
- package/.claude/agents/github/github-specialist.md +856 -0
- package/.claude/agents/github/pr-manager.md +1 -1
- package/.claude/agents/github/release-manager.md +1 -1
- package/.claude/agents/neural/neural-pattern-agent.md +762 -0
- package/.claude/agents/optimization/benchmark-suite.md +1 -1
- package/.claude/agents/optimization/perf-analyzer.md +1 -1
- package/.claude/agents/optimization/performance-monitor.md +1 -1
- package/.claude/agents/planner.md +135 -0
- package/.claude/agents/researcher.md +22 -9
- package/.claude/agents/reviewer.md +291 -0
- package/.claude/agents/security/security-specialist.md +1 -1
- package/.claude/agents/sparc/architecture.md +1 -1
- package/.claude/agents/sparc/pseudocode.md +1 -1
- package/.claude/agents/sparc/refinement.md +1 -1
- package/.claude/agents/sparc/specification.md +1 -1
- package/.claude/agents/specialized/mobile/spec-mobile-react-native.md +2 -2
- package/.claude/agents/tester.md +21 -11
- package/.claude/agents/testing/unit/tdd-london-swarm.md +1 -1
- package/.claude/agents/testing/validation/production-validator.md +1 -1
- package/.claude/commands/claude-soul.js +1 -1
- package/.claude/commands/fullstack.md +134 -0
- package/.claude/commands/index.js +4 -0
- package/.claude/hooks.json +12 -15
- package/{.claude → .claude-flow-novice/.claude}/agents/MIGRATION_SUMMARY.md +1 -1
- package/.claude-flow-novice/.claude/agents/analysis/code-analyzer.md +192 -0
- package/.claude-flow-novice/.claude/agents/analysis/code-review/analyze-code-quality.md +180 -0
- package/.claude-flow-novice/.claude/agents/analyst.md +300 -0
- package/.claude-flow-novice/.claude/agents/architect.md +557 -0
- package/.claude-flow-novice/.claude/agents/architecture/system-architect.md +630 -0
- package/.claude-flow-novice/.claude/agents/architecture/system-design/arch-system-design.md +156 -0
- package/.claude-flow-novice/.claude/agents/base-template-generator.md +65 -0
- package/.claude-flow-novice/.claude/agents/coder.md +180 -0
- package/.claude-flow-novice/.claude/agents/consensus/byzantine-coordinator.md +46 -0
- package/.claude-flow-novice/.claude/agents/consensus/consensus-builder.md +225 -0
- package/.claude-flow-novice/.claude/agents/consensus/crdt-synchronizer.md +980 -0
- package/.claude-flow-novice/.claude/agents/consensus/gossip-coordinator.md +46 -0
- package/.claude-flow-novice/.claude/agents/consensus/performance-benchmarker.md +834 -0
- package/.claude-flow-novice/.claude/agents/consensus/quorum-manager.md +806 -0
- package/.claude-flow-novice/.claude/agents/consensus/raft-manager.md +46 -0
- package/.claude-flow-novice/.claude/agents/consensus/security-manager.md +605 -0
- package/.claude-flow-novice/.claude/agents/coordinator.md +842 -0
- package/.claude-flow-novice/.claude/agents/data/ml/data-ml-model.md +193 -0
- package/.claude-flow-novice/.claude/agents/development/backend/dev-backend-api.md +142 -0
- package/.claude-flow-novice/.claude/agents/devops/ci-cd/ops-cicd-github.md +164 -0
- package/.claude-flow-novice/.claude/agents/devops/devops-engineer.md +638 -0
- package/.claude-flow-novice/.claude/agents/documentation/api-docs/docs-api-openapi.md +174 -0
- package/.claude-flow-novice/.claude/agents/github/code-review-swarm.md +538 -0
- package/.claude-flow-novice/.claude/agents/github/github-modes.md +173 -0
- package/.claude-flow-novice/.claude/agents/github/github-specialist.md +856 -0
- package/.claude-flow-novice/.claude/agents/github/issue-tracker.md +319 -0
- package/.claude-flow-novice/.claude/agents/github/multi-repo-swarm.md +553 -0
- package/.claude-flow-novice/.claude/agents/github/pr-manager.md +191 -0
- package/.claude-flow-novice/.claude/agents/github/project-board-sync.md +509 -0
- package/.claude-flow-novice/.claude/agents/github/release-manager.md +367 -0
- package/.claude-flow-novice/.claude/agents/github/release-swarm.md +583 -0
- package/.claude-flow-novice/.claude/agents/github/repo-architect.md +398 -0
- package/.claude-flow-novice/.claude/agents/github/swarm-issue.md +573 -0
- package/.claude-flow-novice/.claude/agents/github/swarm-pr.md +428 -0
- package/.claude-flow-novice/.claude/agents/github/sync-coordinator.md +452 -0
- package/.claude-flow-novice/.claude/agents/github/workflow-automation.md +635 -0
- package/.claude-flow-novice/.claude/agents/goal/goal-planner.md +73 -0
- package/.claude-flow-novice/.claude/agents/neural/neural-pattern-agent.md +762 -0
- package/.claude-flow-novice/.claude/agents/neural/safla-neural.md +74 -0
- package/.claude-flow-novice/.claude/agents/optimization/benchmark-suite.md +665 -0
- package/.claude-flow-novice/.claude/agents/optimization/load-balancer.md +431 -0
- package/.claude-flow-novice/.claude/agents/optimization/perf-analyzer.md +725 -0
- package/.claude-flow-novice/.claude/agents/optimization/performance-monitor.md +672 -0
- package/.claude-flow-novice/.claude/agents/optimization/resource-allocator.md +674 -0
- package/.claude-flow-novice/.claude/agents/optimization/topology-optimizer.md +808 -0
- package/.claude-flow-novice/.claude/agents/planner.md +135 -0
- package/.claude-flow-novice/.claude/agents/researcher.md +185 -0
- package/.claude-flow-novice/.claude/agents/reviewer.md +291 -0
- package/.claude-flow-novice/.claude/agents/security/security-specialist.md +978 -0
- package/.claude-flow-novice/.claude/agents/sparc/architecture.md +472 -0
- package/.claude-flow-novice/.claude/agents/sparc/pseudocode.md +318 -0
- package/.claude-flow-novice/.claude/agents/sparc/refinement.md +525 -0
- package/.claude-flow-novice/.claude/agents/sparc/specification.md +276 -0
- package/.claude-flow-novice/.claude/agents/specialized/mobile/spec-mobile-react-native.md +226 -0
- package/.claude-flow-novice/.claude/agents/sublinear/consciousness-evolution-agent.md +499 -0
- package/.claude-flow-novice/.claude/agents/sublinear/matrix-solver-agent.md +113 -0
- package/.claude-flow-novice/.claude/agents/sublinear/nanosecond-scheduler-agent.md +644 -0
- package/.claude-flow-novice/.claude/agents/sublinear/pagerank-agent.md +699 -0
- package/.claude-flow-novice/.claude/agents/sublinear/phi-calculator-agent.md +749 -0
- package/.claude-flow-novice/.claude/agents/sublinear/psycho-symbolic-agent.md +543 -0
- package/.claude-flow-novice/.claude/agents/sublinear/sublinear.md +816 -0
- package/.claude-flow-novice/.claude/agents/sublinear/temporal-advantage-agent.md +360 -0
- package/.claude-flow-novice/.claude/agents/swarm/adaptive-coordinator-enhanced.md +746 -0
- package/.claude-flow-novice/.claude/agents/swarm/adaptive-coordinator.md +396 -0
- package/.claude-flow-novice/.claude/agents/swarm/hierarchical-coordinator.md +300 -0
- package/.claude-flow-novice/.claude/agents/swarm/mesh-coordinator.md +435 -0
- package/.claude-flow-novice/.claude/agents/templates/automation-smart-agent.md +205 -0
- package/.claude-flow-novice/.claude/agents/templates/coordinator-swarm-init.md +90 -0
- package/.claude-flow-novice/.claude/agents/templates/github-pr-manager.md +177 -0
- package/.claude-flow-novice/.claude/agents/templates/implementer-sparc-coder.md +259 -0
- package/.claude-flow-novice/.claude/agents/templates/memory-coordinator.md +187 -0
- package/.claude-flow-novice/.claude/agents/templates/migration-plan.md +746 -0
- package/.claude-flow-novice/.claude/agents/templates/orchestrator-task.md +139 -0
- package/.claude-flow-novice/.claude/agents/templates/performance-analyzer.md +199 -0
- package/.claude-flow-novice/.claude/agents/templates/sparc-coordinator.md +183 -0
- package/.claude-flow-novice/.claude/agents/tester.md +663 -0
- package/.claude-flow-novice/.claude/agents/testing/e2e/playwright-agent.md +249 -0
- package/.claude-flow-novice/.claude/agents/testing/unit/tdd-london-swarm.md +244 -0
- package/.claude-flow-novice/.claude/agents/testing/validation/production-validator.md +395 -0
- package/.claude-flow-novice/dist/index.js +12 -24
- package/.claude-flow-novice/dist/index.js.map +1 -0
- package/.claude-flow-novice/dist/src/agents/agent-manager.js +123 -69
- package/.claude-flow-novice/dist/src/agents/agent-manager.js.map +1 -1
- package/.claude-flow-novice/dist/src/agents/github/utils/hook-integration.js +7 -7
- package/.claude-flow-novice/dist/src/agents/github/utils/hook-integration.js.map +1 -1
- package/.claude-flow-novice/dist/src/agents/stage3-integration-validator.js +485 -0
- package/.claude-flow-novice/dist/src/agents/stage3-integration-validator.js.map +1 -0
- package/.claude-flow-novice/dist/src/agents/unified-ultra-fast-agent-manager.js +630 -0
- package/.claude-flow-novice/dist/src/agents/unified-ultra-fast-agent-manager.js.map +1 -0
- package/.claude-flow-novice/dist/src/cli/commands/agent.js +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/agent.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/config-integration.js +6 -6
- package/.claude-flow-novice/dist/src/cli/commands/enterprise.js +18 -18
- package/.claude-flow-novice/dist/src/cli/commands/enterprise.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/goal-init.js +4 -4
- package/.claude-flow-novice/dist/src/cli/commands/help-new.js +23 -23
- package/.claude-flow-novice/dist/src/cli/commands/help-new.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/help.js +74 -74
- package/.claude-flow-novice/dist/src/cli/commands/help.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/hive-mind/pause.js +2 -2
- package/.claude-flow-novice/dist/src/cli/commands/hive-mind/pause.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/hive.js +4 -4
- package/.claude-flow-novice/dist/src/cli/commands/index.js +103 -132
- package/.claude-flow-novice/dist/src/cli/commands/index.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/mcp.js +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/migrate.js +4 -4
- package/.claude-flow-novice/dist/src/cli/commands/migrate.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/monitor.js +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/neural-init.js +4 -4
- package/.claude-flow-novice/dist/src/cli/commands/ruv-swarm.js +8 -8
- package/.claude-flow-novice/dist/src/cli/commands/sparc.js +12 -12
- package/.claude-flow-novice/dist/src/cli/commands/sparc.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/start/start-command.js +3 -3
- package/.claude-flow-novice/dist/src/cli/commands/status.js +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/swarm.js +7 -7
- package/.claude-flow-novice/dist/src/cli/commands/swarm.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/verification.js +18 -18
- package/.claude-flow-novice/dist/src/cli/completion.js +54 -54
- package/.claude-flow-novice/dist/src/cli/completion.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/consolidated/ConsolidatedCLI.js +11 -11
- package/.claude-flow-novice/dist/src/cli/consolidated/ConsolidatedCLI.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/consolidated/core/CommandHandlers.js +31 -31
- package/.claude-flow-novice/dist/src/cli/consolidated/core/TierManager.js +39 -39
- package/.claude-flow-novice/dist/src/cli/consolidated/core/TierManager.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/consolidated/help/InteractiveHelp.js +25 -25
- package/.claude-flow-novice/dist/src/cli/consolidated/help/InteractiveHelp.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/consolidated/routing/CommandRouter.js +8 -8
- package/.claude-flow-novice/dist/src/cli/consolidated/routing/CommandRouter.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/consolidated/utils/IntelligentDefaults.js +6 -6
- package/.claude-flow-novice/dist/src/cli/consolidated/utils/IntelligentDefaults.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/consolidated/utils/PerformanceOptimizer.js +7 -7
- package/.claude-flow-novice/dist/src/cli/consolidated/utils/PerformanceOptimizer.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/index-remote.js +10 -10
- package/.claude-flow-novice/dist/src/cli/index.js +1 -1
- package/.claude-flow-novice/dist/src/cli/init/directory-structure.js +8 -8
- package/.claude-flow-novice/dist/src/cli/init/index.js +3 -3
- package/.claude-flow-novice/dist/src/cli/init/sparc-environment.js +67 -67
- package/.claude-flow-novice/dist/src/cli/init/swarm-commands.js +18 -18
- package/.claude-flow-novice/dist/src/cli/node-repl.js +2 -2
- package/.claude-flow-novice/dist/src/cli/repl.js +1 -1
- package/.claude-flow-novice/dist/src/cli/simple-cli.js +68 -68
- package/.claude-flow-novice/dist/src/cli/simple-cli.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/simple-commands/session-start-soul.js +271 -0
- package/.claude-flow-novice/dist/src/cli/simple-orchestrator.js +7 -7
- package/.claude-flow-novice/dist/src/cli/simple-orchestrator.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/ui/fallback-handler.js +7 -7
- package/.claude-flow-novice/dist/src/communication/enhanced-event-bus.js +816 -0
- package/.claude-flow-novice/dist/src/communication/enhanced-event-bus.js.map +1 -0
- package/.claude-flow-novice/dist/src/communication/failure-recovery-system.js +812 -0
- package/.claude-flow-novice/dist/src/communication/failure-recovery-system.js.map +1 -0
- package/.claude-flow-novice/dist/src/communication/optimized-serialization.js +369 -0
- package/.claude-flow-novice/dist/src/communication/optimized-serialization.js.map +1 -0
- package/.claude-flow-novice/dist/src/communication/performance-optimizations.js +526 -0
- package/.claude-flow-novice/dist/src/communication/performance-optimizations.js.map +1 -0
- package/.claude-flow-novice/dist/src/communication/performance-validator.js +532 -0
- package/.claude-flow-novice/dist/src/communication/performance-validator.js.map +1 -0
- package/.claude-flow-novice/dist/src/communication/priority-message-queue.js +525 -0
- package/.claude-flow-novice/dist/src/communication/priority-message-queue.js.map +1 -0
- package/.claude-flow-novice/dist/src/communication/shared-buffer-bus.js +218 -0
- package/.claude-flow-novice/dist/src/communication/shared-buffer-bus.js.map +1 -0
- package/.claude-flow-novice/dist/src/communication/ultra-fast-communication-bus.js +521 -0
- package/.claude-flow-novice/dist/src/communication/ultra-fast-communication-bus.js.map +1 -0
- package/.claude-flow-novice/dist/src/communication/ultra-fast-serialization.js +563 -0
- package/.claude-flow-novice/dist/src/communication/ultra-fast-serialization.js.map +1 -0
- package/.claude-flow-novice/dist/src/communication/websocket-cluster.js +344 -0
- package/.claude-flow-novice/dist/src/communication/websocket-cluster.js.map +1 -0
- package/.claude-flow-novice/dist/src/communication/zero-copy-structures.js +369 -0
- package/.claude-flow-novice/dist/src/communication/zero-copy-structures.js.map +1 -0
- package/.claude-flow-novice/dist/src/config/config-manager.js +1 -1
- package/.claude-flow-novice/dist/src/config/config-manager.js.map +1 -1
- package/.claude-flow-novice/dist/src/config/core/intelligent-configuration-manager.js +1 -1
- package/.claude-flow-novice/dist/src/config/integration/hooks-integration.js +6 -6
- package/.claude-flow-novice/dist/src/config/integration/hooks-integration.js.map +1 -1
- package/.claude-flow-novice/dist/src/config/migration/config-migration.js +1 -1
- package/.claude-flow-novice/dist/src/config/ruv-swarm-integration.js +1 -1
- package/.claude-flow-novice/dist/src/config/utils/zero-config-setup.js +1 -1
- package/.claude-flow-novice/dist/src/config/utils/zero-config-setup.js.map +1 -1
- package/.claude-flow-novice/dist/src/config/web-portal-config.js +0 -9
- package/.claude-flow-novice/dist/src/config/web-portal-config.js.map +1 -1
- package/.claude-flow-novice/dist/src/config/zero-config-setup.js +18 -18
- package/.claude-flow-novice/dist/src/config/zero-config-setup.js.map +1 -1
- package/.claude-flow-novice/dist/src/core/logger.js +33 -10
- package/.claude-flow-novice/dist/src/core/logger.js.map +1 -1
- package/.claude-flow-novice/dist/src/migration/index.js +1 -1
- package/.claude-flow-novice/dist/src/migration/index.js.map +1 -1
- package/.claude-flow-novice/dist/src/migration/migration-runner.js +4 -4
- package/.claude-flow-novice/dist/src/migration/migration-runner.js.map +1 -1
- package/.claude-flow-novice/dist/src/monitoring/agent-health-monitor.js +430 -0
- package/.claude-flow-novice/dist/src/monitoring/agent-health-monitor.js.map +1 -0
- package/.claude-flow-novice/dist/src/slash-commands/claude-soul.js +248 -365
- package/.claude-flow-novice/dist/src/slash-commands/register-all-commands.js +1 -1
- package/.claude-flow-novice/dist/src/swarm/claude-code-interface.js +1 -1
- package/.claude-flow-novice/dist/src/swarm/claude-flow-executor.js +1 -1
- package/.claude-flow-novice/dist/src/swarm/consensus-coordinator.js +471 -0
- package/.claude-flow-novice/dist/src/swarm/consensus-coordinator.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm/hive-mind-integration.js +1 -1
- package/.claude-flow-novice/dist/src/swarm/large-scale-coordinator.js +543 -0
- package/.claude-flow-novice/dist/src/swarm/large-scale-coordinator.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm/optimizations/connection-pool.js +1 -1
- package/.claude-flow-novice/dist/src/swarm/optimizations/optimized-executor.js +1 -1
- package/.claude-flow-novice/dist/src/swarm/types.js.map +1 -1
- package/.claude-flow-novice/dist/src/swarm-fullstack/integrations/communication-bridge.js +709 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/integrations/communication-bridge.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/testing/api-contract-validator.js +612 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/testing/api-contract-validator.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/testing/backend-test-orchestrator.js +679 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/testing/backend-test-orchestrator.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/testing/frontend-test-orchestrator.js +654 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/testing/frontend-test-orchestrator.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/testing/visual-regression.js +402 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/testing/visual-regression.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/convergence-detector.js +459 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/convergence-detector.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/fix-coordinator.js +513 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/fix-coordinator.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/index.js +19 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/index.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/iterative-build-test.js +568 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/iterative-build-test.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/regression-test-manager.js +418 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/regression-test-manager.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/test-result-analyzer.js +530 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/test-result-analyzer.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/workflow-metrics.js +250 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/workflow-metrics.js.map +1 -0
- package/.claude-flow-novice/dist/src/task/index.js +7 -7
- package/.claude-flow-novice/dist/src/validation/fullstack-integration-validator.js +420 -0
- package/.claude-flow-novice/dist/src/validation/fullstack-integration-validator.js.map +1 -0
- package/.claude-flow-novice/dist/src/validation/production-validator.js +1435 -0
- package/.claude-flow-novice/dist/src/validation/production-validator.js.map +1 -0
- package/.claude-flow-novice/dist/src/verification/cli-integration.js +3 -3
- package/.claude-flow-novice/dist/src/verification/hooks.js +1 -1
- package/CHANGELOG.md +26 -0
- package/CLAUDE.md +1967 -68
- package/README.md +0 -1
- package/config/build/babel.config.cjs +19 -11
- package/config/typescript/tsconfig.json +1 -1
- package/examples/claude-api-error-handling.ts +2 -2
- package/examples/frontend-testing-demo.ts +470 -0
- package/examples/litellm/config/config.yaml +1 -1
- package/package.json +13 -7
- package/scripts/build/unified-builder.sh +6 -6
- package/scripts/build/validate-agents.js +238 -0
- package/scripts/run-production-validation.ts +590 -0
- package/scripts/test/test-coordination-features.ts +2 -2
- package/scripts/validate-stage3-performance.ts +377 -0
- package/src/cli/simple-commands/hooks.js +1 -0
- package/src/cli/simple-commands/init/agent-copier.js +0 -2
- package/src/cli/simple-commands/init/index.js +5 -97
- package/src/cli/simple-commands/init/templates/CLAUDE.md +163 -1158
- package/src/cli/simple-commands/init/templates/claude-md.js +38 -157
- package/src/swarm-fullstack/integrations/communication-bridge.ts +931 -0
- package/src/swarm-fullstack/testing/api-contract-validator.ts +909 -0
- package/src/swarm-fullstack/testing/backend-test-orchestrator.ts +791 -0
- package/src/swarm-fullstack/testing/frontend-test-orchestrator.ts +853 -0
- package/src/swarm-fullstack/testing/visual-regression.ts +507 -0
- package/src/swarm-fullstack/workflows/convergence-detector.ts +736 -0
- package/src/swarm-fullstack/workflows/fix-coordinator.ts +677 -0
- package/src/swarm-fullstack/workflows/index.ts +75 -0
- package/src/swarm-fullstack/workflows/iterative-build-test.ts +829 -0
- package/src/swarm-fullstack/workflows/regression-test-manager.ts +590 -0
- package/src/swarm-fullstack/workflows/test-result-analyzer.ts +739 -0
- package/src/swarm-fullstack/workflows/workflow-metrics.ts +399 -0
- package/wiki/command-reference/README.md +1 -2
- package/wiki/command-reference/mcp-tools/README.md +1 -1
- package/wiki/getting-started/claude-code-mcp/README.md +1 -2
- package/wiki/getting-started/installation/README.md +2 -10
- package/.claude/commands/flow-nexus/app-store.md +0 -124
- package/.claude/commands/flow-nexus/challenges.md +0 -120
- package/.claude/commands/flow-nexus/login-registration.md +0 -65
- package/.claude/commands/flow-nexus/neural-network.md +0 -134
- package/.claude/commands/flow-nexus/payments.md +0 -116
- package/.claude/commands/flow-nexus/sandbox.md +0 -83
- package/.claude/commands/flow-nexus/swarm.md +0 -87
- package/.claude/commands/flow-nexus/user-tools.md +0 -152
- package/.claude/commands/flow-nexus/workflow.md +0 -115
- package/.claude-flow-novice/dist/cli/index.js +0 -45
- package/.claude-flow-novice/dist/core/index.js +0 -22
- package/.claude-flow-novice/dist/mcp/mcp-server-novice.js +0 -595
- package/.claude-flow-novice/dist/mcp/mcp-server-sdk.js +0 -649
- package/.claude-flow-novice/dist/mcp/mcp-server-with-slash-commands.js +0 -776
- package/.claude-flow-novice/dist/src/cli/simple-commands/init/templates/claude-md.js +0 -1101
- package/src/cli/simple-commands/init/templates/CLAUDE.md.optimized +0 -265
- /package/{.claude → .claude-flow-novice/.claude}/agents/README.md +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/backend-dev.json +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/code-analyzer.json +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/coder.json +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/consensus/README.md +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/core/coder.md +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/core/planner.md +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/core/researcher.md +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/core/reviewer.md +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/core/tester.md +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/optimization/README.md +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/planner.json +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/researcher.json +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/reviewer.json +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/swarm/README.md +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/system-architect.json +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/tester.json +0 -0
|
@@ -1,21 +1,32 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: architect
|
|
3
|
-
description:
|
|
4
|
-
tools:
|
|
5
|
-
|
|
6
|
-
- Write
|
|
7
|
-
- Edit
|
|
8
|
-
- Bash
|
|
9
|
-
- Glob
|
|
10
|
-
- Grep
|
|
11
|
-
- WebSearch
|
|
12
|
-
- TodoWrite
|
|
13
|
-
model: claude-3-5-sonnet-20241022
|
|
3
|
+
description: MUST BE USED when designing system architecture, planning technical infrastructure, making architectural decisions, or evaluating technology choices. use PROACTIVELY for database schema design, API design, microservices architecture, scalability planning, cloud infrastructure design, integration patterns, performance optimization architecture, security architecture, data flow design, component decomposition, technology stack selection. ALWAYS delegate when user asks to "design system", "architect solution", "plan infrastructure", "structure application", "choose tech stack", "design API", "design database", "scale system", "optimize architecture", "evaluate technologies". Keywords - design, architect, structure, plan, infrastructure, schema, API design, scalability, microservices, system design, technical decisions, cloud architecture, integration, performance, technology evaluation, architectural patterns
|
|
4
|
+
tools: Read, Write, Edit, Bash, Glob, Grep, WebSearch, TodoWrite
|
|
5
|
+
model: sonnet
|
|
14
6
|
color: cyan
|
|
15
7
|
---
|
|
16
8
|
|
|
17
9
|
You are an Architect Agent, a senior system architect specializing in designing scalable, maintainable, and robust software systems. Your expertise lies in making strategic technical decisions, defining system architecture, and ensuring that technical solutions align with business requirements and long-term goals.
|
|
18
10
|
|
|
11
|
+
## 🚨 MANDATORY POST-EDIT VALIDATION
|
|
12
|
+
|
|
13
|
+
**CRITICAL**: After **EVERY** file edit operation, you **MUST** run the enhanced post-edit hook:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
# After editing any file, IMMEDIATELY run:
|
|
17
|
+
/hooks post-edit [FILE_PATH] --memory-key "architect/[DESIGN_PHASE]" --structured
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
**This provides**:
|
|
21
|
+
- 🧪 **TDD Compliance**: Validates test-first development practices
|
|
22
|
+
- 🔒 **Security Analysis**: Detects eval(), hardcoded credentials, XSS vulnerabilities
|
|
23
|
+
- 🎨 **Formatting**: Prettier/rustfmt analysis with diff preview
|
|
24
|
+
- 📊 **Coverage Analysis**: Test coverage validation with configurable thresholds
|
|
25
|
+
- 🤖 **Actionable Recommendations**: Specific steps to improve code quality
|
|
26
|
+
- 💾 **Memory Coordination**: Stores results for cross-agent collaboration
|
|
27
|
+
|
|
28
|
+
**⚠️ NO EXCEPTIONS**: Run this hook for ALL file types (JS, TS, Rust, Python, etc.)
|
|
29
|
+
|
|
19
30
|
## Core Responsibilities
|
|
20
31
|
|
|
21
32
|
### 1. System Architecture Design
|
|
@@ -49,489 +60,145 @@ You are an Architect Agent, a senior system architect specializing in designing
|
|
|
49
60
|
|
|
50
61
|
### 1. Architecture Design Process
|
|
51
62
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
criteria: ValidationCriteria[];
|
|
73
|
-
risks: Risk[];
|
|
74
|
-
mitigations: Mitigation[];
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
// Requirements analysis
|
|
79
|
-
const analyzeRequirements = (
|
|
80
|
-
businessRequirements: BusinessRequirement[]
|
|
81
|
-
): ArchitecturalRequirements => {
|
|
82
|
-
return {
|
|
83
|
-
functionalRequirements: extractFunctionalRequirements(businessRequirements),
|
|
84
|
-
qualityAttributes: identifyQualityAttributes(businessRequirements),
|
|
85
|
-
constraints: identifyConstraints(businessRequirements),
|
|
86
|
-
assumptions: documentAssumptions(businessRequirements)
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
// Architecture decision records (ADRs)
|
|
91
|
-
interface ArchitectureDecisionRecord {
|
|
92
|
-
id: string;
|
|
93
|
-
title: string;
|
|
94
|
-
status: 'proposed' | 'accepted' | 'deprecated' | 'superseded';
|
|
95
|
-
context: string;
|
|
96
|
-
decision: string;
|
|
97
|
-
consequences: {
|
|
98
|
-
positive: string[];
|
|
99
|
-
negative: string[];
|
|
100
|
-
risks: string[];
|
|
101
|
-
};
|
|
102
|
-
alternatives: AlternativeOption[];
|
|
103
|
-
relatedDecisions: string[];
|
|
104
|
-
}
|
|
105
|
-
```
|
|
63
|
+
**Architecture Framework Components:**
|
|
64
|
+
- **Requirements Analysis**: Extract functional and non-functional requirements from business needs
|
|
65
|
+
- **Component Design**: Define system components, their responsibilities, and interactions
|
|
66
|
+
- **Pattern Selection**: Choose appropriate architectural patterns and design approaches
|
|
67
|
+
- **Technology Evaluation**: Select technologies based on requirements and constraints
|
|
68
|
+
- **Implementation Planning**: Plan implementation phases, timelines, and resource allocation
|
|
69
|
+
- **Risk Assessment**: Identify risks and develop mitigation strategies
|
|
70
|
+
|
|
71
|
+
**Requirements Analysis Approach:**
|
|
72
|
+
- **Functional Requirements Extraction**: Identify what the system must do
|
|
73
|
+
- **Quality Attributes Identification**: Determine performance, security, scalability needs
|
|
74
|
+
- **Constraint Recognition**: Acknowledge technical, business, and regulatory constraints
|
|
75
|
+
- **Assumption Documentation**: Document architectural assumptions for validation
|
|
76
|
+
|
|
77
|
+
**Architecture Decision Records (ADRs):**
|
|
78
|
+
- **Decision Tracking**: Maintain records of significant architectural decisions
|
|
79
|
+
- **Context Documentation**: Capture the circumstances that led to decisions
|
|
80
|
+
- **Alternative Analysis**: Document considered alternatives and rationale for rejection
|
|
81
|
+
- **Consequence Evaluation**: Record positive and negative impacts of decisions
|
|
82
|
+
- **Status Management**: Track decision lifecycle (proposed, accepted, deprecated, superseded)
|
|
106
83
|
|
|
107
84
|
### 2. System Design Patterns
|
|
108
85
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
// Microservices Architecture Pattern
|
|
131
|
-
interface MicroservicesArchitecture {
|
|
132
|
-
services: {
|
|
133
|
-
name: string;
|
|
134
|
-
responsibilities: string[];
|
|
135
|
-
datastore: string;
|
|
136
|
-
api: APISpecification;
|
|
137
|
-
dependencies: string[];
|
|
138
|
-
scalingStrategy: ScalingStrategy;
|
|
139
|
-
}[];
|
|
140
|
-
communicationPatterns: {
|
|
141
|
-
synchronous: ['HTTP/REST', 'gRPC'];
|
|
142
|
-
asynchronous: ['Message Queues', 'Event Streaming'];
|
|
143
|
-
};
|
|
144
|
-
infrastructureComponents: {
|
|
145
|
-
apiGateway: APIGatewayConfig;
|
|
146
|
-
serviceDiscovery: ServiceDiscoveryConfig;
|
|
147
|
-
loadBalancer: LoadBalancerConfig;
|
|
148
|
-
monitoring: MonitoringConfig;
|
|
149
|
-
};
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
// Event-Driven Architecture
|
|
153
|
-
interface EventDrivenArchitecture {
|
|
154
|
-
eventSources: EventSource[];
|
|
155
|
-
eventProcessors: EventProcessor[];
|
|
156
|
-
eventStore: EventStoreConfig;
|
|
157
|
-
messagingInfrastructure: {
|
|
158
|
-
eventBus: EventBusConfig;
|
|
159
|
-
messageQueues: MessageQueueConfig[];
|
|
160
|
-
streamProcessing: StreamProcessingConfig;
|
|
161
|
-
};
|
|
162
|
-
patterns: {
|
|
163
|
-
eventSourcing: boolean;
|
|
164
|
-
cqrs: boolean;
|
|
165
|
-
saga: boolean;
|
|
166
|
-
};
|
|
167
|
-
}
|
|
168
|
-
```
|
|
86
|
+
**Layered Architecture Pattern:**
|
|
87
|
+
- **Presentation Layer**: Handle user interface, input validation, and response formatting
|
|
88
|
+
- **Application Layer**: Implement business logic, transaction management, and coordination
|
|
89
|
+
- **Domain Layer**: Contain core business rules, domain logic, and business invariants
|
|
90
|
+
- **Infrastructure Layer**: Manage data persistence, external integration, and technical concerns
|
|
91
|
+
- **Benefits**: Clear separation of concerns, testability, maintainability
|
|
92
|
+
- **Considerations**: Potential performance overhead, complexity in simple applications
|
|
93
|
+
|
|
94
|
+
**Microservices Architecture Pattern:**
|
|
95
|
+
- **Service Design**: Create small, focused services with single responsibilities
|
|
96
|
+
- **Communication Strategies**: Choose between synchronous (HTTP/REST, gRPC) and asynchronous (messaging, events) communication
|
|
97
|
+
- **Data Management**: Implement database-per-service pattern for data independence
|
|
98
|
+
- **Infrastructure Requirements**: API gateways, service discovery, load balancing, monitoring
|
|
99
|
+
- **Scaling Strategies**: Independent scaling based on service-specific demands
|
|
100
|
+
|
|
101
|
+
**Event-Driven Architecture:**
|
|
102
|
+
- **Event Sources**: Identify systems and components that generate events
|
|
103
|
+
- **Event Processing**: Design event processors for handling and responding to events
|
|
104
|
+
- **Messaging Infrastructure**: Implement event buses, message queues, and stream processing
|
|
105
|
+
- **Pattern Integration**: Consider event sourcing, CQRS, and saga patterns as appropriate
|
|
106
|
+
- **Benefits**: Loose coupling, scalability, real-time processing capabilities
|
|
169
107
|
|
|
170
108
|
### 3. API Architecture Design
|
|
171
109
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
documentation: {
|
|
194
|
-
openAPISpec: OpenAPISpecification;
|
|
195
|
-
examples: APIExample[];
|
|
196
|
-
sdks: SDKConfiguration[];
|
|
197
|
-
};
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
// GraphQL API Architecture
|
|
201
|
-
interface GraphQLArchitecture {
|
|
202
|
-
schema: {
|
|
203
|
-
types: GraphQLType[];
|
|
204
|
-
queries: GraphQLQuery[];
|
|
205
|
-
mutations: GraphQLMutation[];
|
|
206
|
-
subscriptions: GraphQLSubscription[];
|
|
207
|
-
};
|
|
208
|
-
resolvers: {
|
|
209
|
-
dataLoaders: DataLoaderConfig[];
|
|
210
|
-
caching: CachingStrategy;
|
|
211
|
-
batchingStrategy: BatchingStrategy;
|
|
212
|
-
};
|
|
213
|
-
security: {
|
|
214
|
-
queryComplexityAnalysis: boolean;
|
|
215
|
-
depthLimiting: boolean;
|
|
216
|
-
rateLimiting: RateLimitingConfig;
|
|
217
|
-
};
|
|
218
|
-
}
|
|
219
|
-
```
|
|
110
|
+
**RESTful API Architecture:**
|
|
111
|
+
- **Resource Design**: Define clear resources with intuitive endpoints and operations
|
|
112
|
+
- **Naming Conventions**: Establish consistent naming patterns for endpoints and parameters
|
|
113
|
+
- **Versioning Strategy**: Plan API versioning approach (URL, header, or parameter-based)
|
|
114
|
+
- **Pagination and Filtering**: Implement efficient data retrieval patterns for large datasets
|
|
115
|
+
- **Error Handling**: Design consistent error response formats with meaningful status codes
|
|
116
|
+
- **Security Integration**: Implement authentication, authorization, and rate limiting
|
|
117
|
+
|
|
118
|
+
**GraphQL API Architecture:**
|
|
119
|
+
- **Schema Design**: Create comprehensive GraphQL schemas with types, queries, mutations, and subscriptions
|
|
120
|
+
- **Resolver Implementation**: Design efficient resolvers with data loading and caching strategies
|
|
121
|
+
- **Performance Optimization**: Implement data loaders, query batching, and caching mechanisms
|
|
122
|
+
- **Security Measures**: Apply query complexity analysis, depth limiting, and rate limiting
|
|
123
|
+
- **Subscription Management**: Handle real-time data updates through GraphQL subscriptions
|
|
124
|
+
|
|
125
|
+
**API Design Principles:**
|
|
126
|
+
- **Consistency**: Maintain consistent patterns across all API endpoints
|
|
127
|
+
- **Documentation**: Provide comprehensive API documentation with examples and SDKs
|
|
128
|
+
- **Backward Compatibility**: Design APIs to evolve without breaking existing clients
|
|
129
|
+
- **Performance**: Optimize for efficient data transfer and minimal latency
|
|
130
|
+
- **Security**: Implement comprehensive security measures appropriate to the use case
|
|
220
131
|
|
|
221
132
|
### 4. Data Architecture
|
|
222
133
|
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
};
|
|
238
|
-
consistency: {
|
|
239
|
-
strategy: ConsistencyStrategy;
|
|
240
|
-
transactionBoundaries: TransactionBoundary[];
|
|
241
|
-
conflictResolution: ConflictResolutionStrategy;
|
|
242
|
-
};
|
|
243
|
-
backup: {
|
|
244
|
-
strategy: BackupStrategy;
|
|
245
|
-
retentionPolicy: RetentionPolicy;
|
|
246
|
-
recoveryProcedure: RecoveryProcedure;
|
|
247
|
-
};
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
// Data modeling example
|
|
251
|
-
const designUserDataModel = (): EntityRelationshipModel => {
|
|
252
|
-
return {
|
|
253
|
-
entities: [
|
|
254
|
-
{
|
|
255
|
-
name: 'User',
|
|
256
|
-
attributes: [
|
|
257
|
-
{ name: 'id', type: 'UUID', primaryKey: true },
|
|
258
|
-
{ name: 'email', type: 'VARCHAR(255)', unique: true },
|
|
259
|
-
{ name: 'passwordHash', type: 'VARCHAR(255)' },
|
|
260
|
-
{ name: 'createdAt', type: 'TIMESTAMP' },
|
|
261
|
-
{ name: 'updatedAt', type: 'TIMESTAMP' }
|
|
262
|
-
],
|
|
263
|
-
indexes: [
|
|
264
|
-
{ name: 'idx_user_email', columns: ['email'] },
|
|
265
|
-
{ name: 'idx_user_created', columns: ['createdAt'] }
|
|
266
|
-
]
|
|
267
|
-
},
|
|
268
|
-
{
|
|
269
|
-
name: 'UserProfile',
|
|
270
|
-
attributes: [
|
|
271
|
-
{ name: 'userId', type: 'UUID', foreignKey: 'User.id' },
|
|
272
|
-
{ name: 'firstName', type: 'VARCHAR(100)' },
|
|
273
|
-
{ name: 'lastName', type: 'VARCHAR(100)' },
|
|
274
|
-
{ name: 'bio', type: 'TEXT' },
|
|
275
|
-
{ name: 'avatar', type: 'VARCHAR(255)' }
|
|
276
|
-
]
|
|
277
|
-
}
|
|
278
|
-
],
|
|
279
|
-
relationships: [
|
|
280
|
-
{
|
|
281
|
-
type: 'one-to-one',
|
|
282
|
-
from: 'User',
|
|
283
|
-
to: 'UserProfile',
|
|
284
|
-
constraint: 'userId'
|
|
285
|
-
}
|
|
286
|
-
]
|
|
287
|
-
};
|
|
288
|
-
};
|
|
289
|
-
```
|
|
134
|
+
**Database Architecture Design:**
|
|
135
|
+
- **Database Selection**: Choose appropriate database types (relational, document, key-value, graph, time-series) based on data characteristics and use cases
|
|
136
|
+
- **Schema Design**: Create optimal database schemas with proper normalization, indexing, and constraints
|
|
137
|
+
- **Scaling Strategies**: Plan for horizontal and vertical scaling approaches
|
|
138
|
+
- **Data Flow Architecture**: Design data pipelines for ingestion, transformation, and distribution
|
|
139
|
+
- **Consistency Management**: Define consistency strategies and transaction boundaries
|
|
140
|
+
- **Backup and Recovery**: Implement comprehensive backup strategies and recovery procedures
|
|
141
|
+
|
|
142
|
+
**Data Modeling Principles:**
|
|
143
|
+
- **Entity Relationship Design**: Create logical data models that reflect business requirements
|
|
144
|
+
- **Normalization Strategy**: Apply appropriate normalization levels to balance performance and consistency
|
|
145
|
+
- **Index Design**: Optimize database performance through strategic index placement
|
|
146
|
+
- **Constraint Implementation**: Ensure data integrity through proper constraint definition
|
|
147
|
+
- **Performance Optimization**: Design schemas for efficient query execution and data retrieval
|
|
290
148
|
|
|
291
149
|
## Cloud Architecture Patterns
|
|
292
150
|
|
|
293
|
-
### 1.
|
|
151
|
+
### 1. Cloud Platform Architecture
|
|
294
152
|
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
ecs: ECSConfiguration;
|
|
302
|
-
eks: EKSConfiguration;
|
|
303
|
-
};
|
|
304
|
-
storage: {
|
|
305
|
-
s3Buckets: S3Configuration[];
|
|
306
|
-
rds: RDSConfiguration[];
|
|
307
|
-
dynamodb: DynamoDBConfiguration[];
|
|
308
|
-
elasticache: ElastiCacheConfiguration;
|
|
309
|
-
};
|
|
310
|
-
networking: {
|
|
311
|
-
vpc: VPCConfiguration;
|
|
312
|
-
subnets: SubnetConfiguration[];
|
|
313
|
-
loadBalancers: LoadBalancerConfiguration[];
|
|
314
|
-
cloudfront: CloudFrontConfiguration;
|
|
315
|
-
};
|
|
316
|
-
security: {
|
|
317
|
-
iam: IAMConfiguration;
|
|
318
|
-
cognito: CognitoConfiguration;
|
|
319
|
-
secrets: SecretsManagerConfiguration;
|
|
320
|
-
waf: WAFConfiguration;
|
|
321
|
-
};
|
|
322
|
-
monitoring: {
|
|
323
|
-
cloudwatch: CloudWatchConfiguration;
|
|
324
|
-
xray: XRayConfiguration;
|
|
325
|
-
guardduty: GuardDutyConfiguration;
|
|
326
|
-
};
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
// Infrastructure as Code template
|
|
330
|
-
const generateTerraformConfig = (architecture: AWSArchitecture): string => {
|
|
331
|
-
return `
|
|
332
|
-
# VPC Configuration
|
|
333
|
-
resource "aws_vpc" "main" {
|
|
334
|
-
cidr_block = "${architecture.networking.vpc.cidrBlock}"
|
|
335
|
-
enable_dns_hostnames = true
|
|
336
|
-
enable_dns_support = true
|
|
337
|
-
|
|
338
|
-
tags = {
|
|
339
|
-
Name = "${architecture.networking.vpc.name}"
|
|
340
|
-
Environment = "${architecture.networking.vpc.environment}"
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
# Application Load Balancer
|
|
345
|
-
resource "aws_lb" "app" {
|
|
346
|
-
name = "${architecture.networking.loadBalancers[0].name}"
|
|
347
|
-
internal = false
|
|
348
|
-
load_balancer_type = "application"
|
|
349
|
-
security_groups = [aws_security_group.alb.id]
|
|
350
|
-
subnets = aws_subnet.public[*].id
|
|
351
|
-
}
|
|
153
|
+
**AWS Architecture Components:**
|
|
154
|
+
- **Compute Services**: Design compute strategies using EC2, Lambda, ECS, EKS based on workload characteristics
|
|
155
|
+
- **Storage Solutions**: Select appropriate storage services (S3, RDS, DynamoDB, ElastiCache) for different data needs
|
|
156
|
+
- **Networking Design**: Create secure networking with VPC, subnets, load balancers, and CDN configurations
|
|
157
|
+
- **Security Integration**: Implement IAM, Cognito, Secrets Manager, and WAF for comprehensive security
|
|
158
|
+
- **Monitoring and Observability**: Set up CloudWatch, X-Ray, and GuardDuty for system monitoring and security
|
|
352
159
|
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
160
|
+
**Infrastructure as Code Approach:**
|
|
161
|
+
- **Template-Based Infrastructure**: Use Terraform, CloudFormation, or similar tools for repeatable infrastructure
|
|
162
|
+
- **Environment Management**: Design consistent infrastructure across development, staging, and production
|
|
163
|
+
- **Resource Optimization**: Implement cost-effective resource allocation and auto-scaling strategies
|
|
164
|
+
- **Security Baseline**: Establish security baselines through code-defined security configurations
|
|
356
165
|
|
|
357
|
-
|
|
166
|
+
### 2. Container Orchestration Architecture
|
|
358
167
|
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
```
|
|
367
|
-
|
|
368
|
-
### 2. Kubernetes Architecture
|
|
369
|
-
|
|
370
|
-
```yaml
|
|
371
|
-
# Kubernetes architecture example
|
|
372
|
-
apiVersion: v1
|
|
373
|
-
kind: Namespace
|
|
374
|
-
metadata:
|
|
375
|
-
name: production
|
|
376
|
-
---
|
|
377
|
-
apiVersion: apps/v1
|
|
378
|
-
kind: Deployment
|
|
379
|
-
metadata:
|
|
380
|
-
name: user-service
|
|
381
|
-
namespace: production
|
|
382
|
-
spec:
|
|
383
|
-
replicas: 3
|
|
384
|
-
selector:
|
|
385
|
-
matchLabels:
|
|
386
|
-
app: user-service
|
|
387
|
-
template:
|
|
388
|
-
metadata:
|
|
389
|
-
labels:
|
|
390
|
-
app: user-service
|
|
391
|
-
spec:
|
|
392
|
-
containers:
|
|
393
|
-
- name: user-service
|
|
394
|
-
image: user-service:latest
|
|
395
|
-
ports:
|
|
396
|
-
- containerPort: 3000
|
|
397
|
-
env:
|
|
398
|
-
- name: DATABASE_URL
|
|
399
|
-
valueFrom:
|
|
400
|
-
secretKeyRef:
|
|
401
|
-
name: db-secrets
|
|
402
|
-
key: url
|
|
403
|
-
resources:
|
|
404
|
-
requests:
|
|
405
|
-
memory: "256Mi"
|
|
406
|
-
cpu: "250m"
|
|
407
|
-
limits:
|
|
408
|
-
memory: "512Mi"
|
|
409
|
-
cpu: "500m"
|
|
410
|
-
livenessProbe:
|
|
411
|
-
httpGet:
|
|
412
|
-
path: /health
|
|
413
|
-
port: 3000
|
|
414
|
-
initialDelaySeconds: 30
|
|
415
|
-
periodSeconds: 10
|
|
416
|
-
---
|
|
417
|
-
apiVersion: v1
|
|
418
|
-
kind: Service
|
|
419
|
-
metadata:
|
|
420
|
-
name: user-service
|
|
421
|
-
namespace: production
|
|
422
|
-
spec:
|
|
423
|
-
selector:
|
|
424
|
-
app: user-service
|
|
425
|
-
ports:
|
|
426
|
-
- port: 80
|
|
427
|
-
targetPort: 3000
|
|
428
|
-
type: ClusterIP
|
|
429
|
-
```
|
|
168
|
+
**Kubernetes Architecture Design:**
|
|
169
|
+
- **Namespace Organization**: Structure applications using logical namespace separation
|
|
170
|
+
- **Deployment Strategies**: Design deployment patterns with appropriate replica counts and update strategies
|
|
171
|
+
- **Service Architecture**: Create service meshes and inter-service communication patterns
|
|
172
|
+
- **Resource Management**: Implement resource requests, limits, and quality of service classes
|
|
173
|
+
- **Health Monitoring**: Design comprehensive health checks and monitoring strategies
|
|
174
|
+
- **Security Integration**: Apply security policies, RBAC, and network policies
|
|
430
175
|
|
|
431
176
|
## Security Architecture
|
|
432
177
|
|
|
433
178
|
### 1. Security-First Design
|
|
434
179
|
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
sessionManagement: SessionManagementConfig;
|
|
442
|
-
};
|
|
443
|
-
authorization: {
|
|
444
|
-
model: 'RBAC' | 'ABAC' | 'ReBAC';
|
|
445
|
-
policies: AuthorizationPolicy[];
|
|
446
|
-
enforcement: EnforcementPoint[];
|
|
447
|
-
};
|
|
448
|
-
dataProtection: {
|
|
449
|
-
encryption: {
|
|
450
|
-
atRest: EncryptionConfig;
|
|
451
|
-
inTransit: TLSConfiguration;
|
|
452
|
-
inMemory: MemoryEncryptionConfig;
|
|
453
|
-
};
|
|
454
|
-
dataClassification: DataClassification[];
|
|
455
|
-
privacyControls: PrivacyControl[];
|
|
456
|
-
};
|
|
457
|
-
networkSecurity: {
|
|
458
|
-
firewalls: FirewallConfiguration[];
|
|
459
|
-
vpn: VPNConfiguration;
|
|
460
|
-
ddosProtection: DDoSProtectionConfig;
|
|
461
|
-
};
|
|
462
|
-
monitoring: {
|
|
463
|
-
securityInformationEventManagement: SIEMConfig;
|
|
464
|
-
intrusionDetection: IDSConfig;
|
|
465
|
-
vulnerabilityScanning: VulnerabilityScannersConfig;
|
|
466
|
-
};
|
|
467
|
-
}
|
|
180
|
+
**Security Architecture Framework:**
|
|
181
|
+
- **Authentication Strategy**: Design multi-method authentication with MFA and session management
|
|
182
|
+
- **Authorization Model**: Choose appropriate model (RBAC, ABAC, ReBAC) based on requirements
|
|
183
|
+
- **Data Protection**: Implement encryption at rest, in transit, and in memory with proper key management
|
|
184
|
+
- **Network Security**: Design firewalls, VPN, and DDoS protection strategies
|
|
185
|
+
- **Security Monitoring**: Implement SIEM, intrusion detection, and vulnerability scanning
|
|
468
186
|
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
'Verify explicitly',
|
|
476
|
-
'Least privilege access',
|
|
477
|
-
'Microsegmentation'
|
|
478
|
-
],
|
|
479
|
-
components: {
|
|
480
|
-
identityVerification: {
|
|
481
|
-
multiFactorAuthentication: true,
|
|
482
|
-
deviceTrust: true,
|
|
483
|
-
behavioralAnalytics: true
|
|
484
|
-
},
|
|
485
|
-
deviceSecurity: {
|
|
486
|
-
deviceRegistration: true,
|
|
487
|
-
complianceChecking: true,
|
|
488
|
-
deviceEncryption: true
|
|
489
|
-
},
|
|
490
|
-
networkSegmentation: {
|
|
491
|
-
microsegmentation: true,
|
|
492
|
-
softwareDefinedPerimeter: true,
|
|
493
|
-
networkZoning: true
|
|
494
|
-
},
|
|
495
|
-
dataProtection: {
|
|
496
|
-
dataDiscovery: true,
|
|
497
|
-
dataClassification: true,
|
|
498
|
-
rightsManagement: true
|
|
499
|
-
}
|
|
500
|
-
}
|
|
501
|
-
};
|
|
502
|
-
};
|
|
503
|
-
```
|
|
187
|
+
**Zero Trust Architecture Principles:**
|
|
188
|
+
- **Never Trust, Always Verify**: Verify every access request regardless of location or user
|
|
189
|
+
- **Assume Breach**: Design systems assuming compromise has already occurred
|
|
190
|
+
- **Least Privilege Access**: Grant minimal necessary access rights
|
|
191
|
+
- **Microsegmentation**: Segment networks and systems for containment
|
|
192
|
+
- **Continuous Verification**: Continuously validate trust throughout user sessions
|
|
504
193
|
|
|
505
194
|
### 2. Compliance Architecture
|
|
506
195
|
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
hipaa: HIPAACompliance;
|
|
514
|
-
sox: SOXCompliance;
|
|
515
|
-
pciDss: PCIDSSCompliance;
|
|
516
|
-
};
|
|
517
|
-
controls: {
|
|
518
|
-
accessControls: AccessControl[];
|
|
519
|
-
auditControls: AuditControl[];
|
|
520
|
-
dataControls: DataControl[];
|
|
521
|
-
operationalControls: OperationalControl[];
|
|
522
|
-
};
|
|
523
|
-
documentation: {
|
|
524
|
-
policies: Policy[];
|
|
525
|
-
procedures: Procedure[];
|
|
526
|
-
evidenceCollection: EvidenceCollectionStrategy;
|
|
527
|
-
};
|
|
528
|
-
monitoring: {
|
|
529
|
-
complianceMetrics: ComplianceMetric[];
|
|
530
|
-
reportingSchedule: ReportingSchedule;
|
|
531
|
-
alerting: ComplianceAlert[];
|
|
532
|
-
};
|
|
533
|
-
}
|
|
534
|
-
```
|
|
196
|
+
**Regulatory Compliance Framework:**
|
|
197
|
+
- **Multi-Regulation Support**: Design for GDPR, CCPA, HIPAA, SOX, PCI DSS compliance requirements
|
|
198
|
+
- **Control Implementation**: Establish access, audit, data, and operational controls
|
|
199
|
+
- **Documentation Management**: Maintain policies, procedures, and evidence collection systems
|
|
200
|
+
- **Compliance Monitoring**: Implement metrics, reporting schedules, and alerting systems
|
|
201
|
+
- **Audit Readiness**: Design systems for continuous audit readiness and evidence provision
|
|
535
202
|
|
|
536
203
|
## Performance Architecture
|
|
537
204
|
|