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,418 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Regression Test Manager - Incremental Testing and Regression Detection
|
|
3
|
+
*
|
|
4
|
+
* Manages regression testing by comparing current test results against baselines,
|
|
5
|
+
* detecting regressions, and providing incremental test strategies.
|
|
6
|
+
*
|
|
7
|
+
* Key Features:
|
|
8
|
+
* - Baseline management
|
|
9
|
+
* - Regression detection
|
|
10
|
+
* - Incremental test selection
|
|
11
|
+
* - Impact analysis
|
|
12
|
+
* - Test result comparison
|
|
13
|
+
*/ import { EventEmitter } from 'events';
|
|
14
|
+
export class RegressionTestManager extends EventEmitter {
|
|
15
|
+
logger;
|
|
16
|
+
config;
|
|
17
|
+
baselines = new Map();
|
|
18
|
+
regressionHistory = new Map();
|
|
19
|
+
constructor(logger, config){
|
|
20
|
+
super(), this.logger = logger;
|
|
21
|
+
this.config = {
|
|
22
|
+
enableBaselineComparison: true,
|
|
23
|
+
enableIncrementalTesting: true,
|
|
24
|
+
regressionThreshold: 5,
|
|
25
|
+
requireApprovalForRegression: true,
|
|
26
|
+
...config
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Run regression tests and detect regressions
|
|
31
|
+
*/ async runRegressionTests(request) {
|
|
32
|
+
this.logger.info('Running regression tests', {
|
|
33
|
+
featureId: request.featureId,
|
|
34
|
+
hasBaseline: !!request.baseline
|
|
35
|
+
});
|
|
36
|
+
try {
|
|
37
|
+
// Use provided baseline or stored baseline
|
|
38
|
+
const baseline = request.baseline || this.baselines.get(request.featureId);
|
|
39
|
+
if (!baseline) {
|
|
40
|
+
this.logger.warn('No baseline found for comparison', {
|
|
41
|
+
featureId: request.featureId
|
|
42
|
+
});
|
|
43
|
+
return this.createNoRegressionResult(request.current);
|
|
44
|
+
}
|
|
45
|
+
// Generate summary
|
|
46
|
+
const summary = this.generateRegressionSummary(baseline, request.current);
|
|
47
|
+
// Detect regressions
|
|
48
|
+
const regressions = this.detectRegressions(baseline, request.current);
|
|
49
|
+
// Identify improvements
|
|
50
|
+
const improvements = this.identifyImprovements(baseline, request.current);
|
|
51
|
+
// Determine severity
|
|
52
|
+
const severity = this.determineSeverity(summary, regressions);
|
|
53
|
+
// Generate recommendations
|
|
54
|
+
const recommendations = this.generateRecommendations(summary, regressions, improvements);
|
|
55
|
+
// Determine if action required
|
|
56
|
+
const requiresAction = severity === 'severe' || severity === 'critical' || this.config.requireApprovalForRegression && regressions.length > 0;
|
|
57
|
+
const result = {
|
|
58
|
+
regressionDetected: regressions.length > 0,
|
|
59
|
+
severity,
|
|
60
|
+
summary,
|
|
61
|
+
regressions,
|
|
62
|
+
improvements,
|
|
63
|
+
recommendations,
|
|
64
|
+
requiresAction
|
|
65
|
+
};
|
|
66
|
+
// Store in history
|
|
67
|
+
const history = this.regressionHistory.get(request.featureId) || [];
|
|
68
|
+
history.push(result);
|
|
69
|
+
this.regressionHistory.set(request.featureId, history);
|
|
70
|
+
// Emit events
|
|
71
|
+
if (result.regressionDetected) {
|
|
72
|
+
this.emit('regression:detected', {
|
|
73
|
+
featureId: request.featureId,
|
|
74
|
+
severity: result.severity,
|
|
75
|
+
regressions: result.regressions.length
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
if (improvements.length > 0) {
|
|
79
|
+
this.emit('regression:improvements', {
|
|
80
|
+
featureId: request.featureId,
|
|
81
|
+
improvements: improvements.length
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
return result;
|
|
85
|
+
} catch (error) {
|
|
86
|
+
this.logger.error('Failed to run regression tests', {
|
|
87
|
+
error,
|
|
88
|
+
featureId: request.featureId
|
|
89
|
+
});
|
|
90
|
+
throw error;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Create incremental test plan based on changed files
|
|
95
|
+
*/ async createIncrementalTestPlan(featureId, changedFiles, allTests) {
|
|
96
|
+
if (!this.config.enableIncrementalTesting) {
|
|
97
|
+
return {
|
|
98
|
+
featureId,
|
|
99
|
+
totalTests: allTests.length,
|
|
100
|
+
selectedTests: allTests,
|
|
101
|
+
reason: 'Incremental testing disabled - running all tests',
|
|
102
|
+
estimatedDuration: allTests.length * 1000,
|
|
103
|
+
coverage: 100
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
this.logger.info('Creating incremental test plan', {
|
|
107
|
+
featureId,
|
|
108
|
+
changedFiles: changedFiles.length,
|
|
109
|
+
totalTests: allTests.length
|
|
110
|
+
});
|
|
111
|
+
// Select tests affected by changed files
|
|
112
|
+
const selectedTests = this.selectAffectedTests(changedFiles, allTests);
|
|
113
|
+
// Add critical tests that should always run
|
|
114
|
+
const criticalTests = this.selectCriticalTests(allTests);
|
|
115
|
+
for (const test of criticalTests){
|
|
116
|
+
if (!selectedTests.includes(test)) {
|
|
117
|
+
selectedTests.push(test);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
// Estimate coverage
|
|
121
|
+
const coverage = selectedTests.length / allTests.length * 100;
|
|
122
|
+
return {
|
|
123
|
+
featureId,
|
|
124
|
+
totalTests: allTests.length,
|
|
125
|
+
selectedTests,
|
|
126
|
+
reason: `Selected ${selectedTests.length} tests based on ${changedFiles.length} changed file(s)`,
|
|
127
|
+
estimatedDuration: selectedTests.length * 1000,
|
|
128
|
+
coverage
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Store baseline for future comparisons
|
|
133
|
+
*/ storeBaseline(featureId, testResults) {
|
|
134
|
+
this.baselines.set(featureId, testResults);
|
|
135
|
+
this.logger.info('Stored regression test baseline', {
|
|
136
|
+
featureId,
|
|
137
|
+
tests: testResults.totalTests,
|
|
138
|
+
passed: testResults.passed
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Get regression history
|
|
143
|
+
*/ getRegressionHistory(featureId) {
|
|
144
|
+
return this.regressionHistory.get(featureId) || [];
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Generate regression summary
|
|
148
|
+
*/ generateRegressionSummary(baseline, current) {
|
|
149
|
+
const baselinePassRate = baseline.passed / baseline.totalTests;
|
|
150
|
+
const currentPassRate = current.passed / current.totalTests;
|
|
151
|
+
const passRateChange = (currentPassRate - baselinePassRate) * 100;
|
|
152
|
+
// Identify new and fixed failures
|
|
153
|
+
const baselineFailureNames = new Set(baseline.failures.map((f)=>f.testName));
|
|
154
|
+
const currentFailureNames = new Set(current.failures.map((f)=>f.testName));
|
|
155
|
+
const newFailures = Array.from(currentFailureNames).filter((name)=>!baselineFailureNames.has(name)).length;
|
|
156
|
+
const fixedFailures = Array.from(baselineFailureNames).filter((name)=>!currentFailureNames.has(name)).length;
|
|
157
|
+
return {
|
|
158
|
+
baselinePassed: baseline.passed,
|
|
159
|
+
baselineFailed: baseline.failed,
|
|
160
|
+
currentPassed: current.passed,
|
|
161
|
+
currentFailed: current.failed,
|
|
162
|
+
newFailures,
|
|
163
|
+
fixedFailures,
|
|
164
|
+
passRateChange
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Detect regressions by comparing baseline and current results
|
|
169
|
+
*/ detectRegressions(baseline, current) {
|
|
170
|
+
const regressions = [];
|
|
171
|
+
// Create maps for easier lookup
|
|
172
|
+
const baselineFailuresMap = new Map(baseline.failures.map((f)=>[
|
|
173
|
+
f.testName,
|
|
174
|
+
f
|
|
175
|
+
]));
|
|
176
|
+
const currentFailuresMap = new Map(current.failures.map((f)=>[
|
|
177
|
+
f.testName,
|
|
178
|
+
f
|
|
179
|
+
]));
|
|
180
|
+
// Detect new failures (tests that were passing in baseline but failing now)
|
|
181
|
+
for (const [testName, currentFailure] of currentFailuresMap){
|
|
182
|
+
const baselineFailure = baselineFailuresMap.get(testName);
|
|
183
|
+
if (!baselineFailure) {
|
|
184
|
+
// New failure - test was passing before
|
|
185
|
+
regressions.push({
|
|
186
|
+
id: `regression_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`,
|
|
187
|
+
testName,
|
|
188
|
+
type: 'new-failure',
|
|
189
|
+
previousState: 'passing',
|
|
190
|
+
currentState: `failing (${currentFailure.severity})`,
|
|
191
|
+
severity: currentFailure.severity,
|
|
192
|
+
impactedComponents: currentFailure.affectedComponents,
|
|
193
|
+
suggestedAction: `Investigate new failure in ${currentFailure.category} test`
|
|
194
|
+
});
|
|
195
|
+
} else if (this.getSeverityLevel(currentFailure.severity) > this.getSeverityLevel(baselineFailure.severity)) {
|
|
196
|
+
// Worse failure - severity increased
|
|
197
|
+
regressions.push({
|
|
198
|
+
id: `regression_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`,
|
|
199
|
+
testName,
|
|
200
|
+
type: 'worse-failure',
|
|
201
|
+
previousState: `failing (${baselineFailure.severity})`,
|
|
202
|
+
currentState: `failing (${currentFailure.severity})`,
|
|
203
|
+
severity: currentFailure.severity,
|
|
204
|
+
impactedComponents: currentFailure.affectedComponents,
|
|
205
|
+
suggestedAction: 'Investigate severity increase'
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
// Check for new warnings
|
|
210
|
+
const baselineWarningNames = new Set(baseline.warnings.map((w)=>w.location));
|
|
211
|
+
const newWarnings = current.warnings.filter((w)=>!baselineWarningNames.has(w.location) && w.severity === 'high');
|
|
212
|
+
for (const warning of newWarnings){
|
|
213
|
+
regressions.push({
|
|
214
|
+
id: `regression_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`,
|
|
215
|
+
testName: warning.location,
|
|
216
|
+
type: 'new-warning',
|
|
217
|
+
previousState: 'no warning',
|
|
218
|
+
currentState: `${warning.type} warning`,
|
|
219
|
+
severity: 'medium',
|
|
220
|
+
impactedComponents: [
|
|
221
|
+
warning.location
|
|
222
|
+
],
|
|
223
|
+
suggestedAction: `Address new ${warning.type} warning`
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
return regressions;
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* Identify improvements
|
|
230
|
+
*/ identifyImprovements(baseline, current) {
|
|
231
|
+
const improvements = [];
|
|
232
|
+
const baselineFailureNames = new Set(baseline.failures.map((f)=>f.testName));
|
|
233
|
+
const currentFailureNames = new Set(current.failures.map((f)=>f.testName));
|
|
234
|
+
// Fixed failures (tests that were failing but now passing)
|
|
235
|
+
for (const baselineFailure of baseline.failures){
|
|
236
|
+
if (!currentFailureNames.has(baselineFailure.testName)) {
|
|
237
|
+
improvements.push({
|
|
238
|
+
id: `improvement_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`,
|
|
239
|
+
testName: baselineFailure.testName,
|
|
240
|
+
type: 'fixed-failure',
|
|
241
|
+
previousState: `failing (${baselineFailure.severity})`,
|
|
242
|
+
currentState: 'passing',
|
|
243
|
+
impact: `Fixed ${baselineFailure.category} test`
|
|
244
|
+
});
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
// Coverage improvements
|
|
248
|
+
const baselineCovg = this.averageCoverage(baseline.coverage);
|
|
249
|
+
const currentCovg = this.averageCoverage(current.coverage);
|
|
250
|
+
if (currentCovg > baselineCovg + 5) {
|
|
251
|
+
// 5% improvement threshold
|
|
252
|
+
improvements.push({
|
|
253
|
+
id: `improvement_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`,
|
|
254
|
+
testName: 'coverage',
|
|
255
|
+
type: 'better-coverage',
|
|
256
|
+
previousState: `${baselineCovg.toFixed(1)}%`,
|
|
257
|
+
currentState: `${currentCovg.toFixed(1)}%`,
|
|
258
|
+
impact: `Improved code coverage by ${(currentCovg - baselineCovg).toFixed(1)}%`
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
// Performance improvements
|
|
262
|
+
if (current.duration < baseline.duration * 0.9) {
|
|
263
|
+
// 10% faster
|
|
264
|
+
improvements.push({
|
|
265
|
+
id: `improvement_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`,
|
|
266
|
+
testName: 'performance',
|
|
267
|
+
type: 'improved-performance',
|
|
268
|
+
previousState: `${baseline.duration}ms`,
|
|
269
|
+
currentState: `${current.duration}ms`,
|
|
270
|
+
impact: `Tests run ${Math.round((baseline.duration - current.duration) / baseline.duration * 100)}% faster`
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
return improvements;
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* Determine regression severity
|
|
277
|
+
*/ determineSeverity(summary, regressions) {
|
|
278
|
+
// No regressions
|
|
279
|
+
if (regressions.length === 0) {
|
|
280
|
+
return 'none';
|
|
281
|
+
}
|
|
282
|
+
// Critical if any critical regressions
|
|
283
|
+
if (regressions.some((r)=>r.severity === 'critical')) {
|
|
284
|
+
return 'critical';
|
|
285
|
+
}
|
|
286
|
+
// Severe if pass rate dropped significantly
|
|
287
|
+
if (summary.passRateChange < -this.config.regressionThreshold * 2) {
|
|
288
|
+
return 'severe';
|
|
289
|
+
}
|
|
290
|
+
// Severe if many high severity regressions
|
|
291
|
+
const highSeverityCount = regressions.filter((r)=>r.severity === 'high').length;
|
|
292
|
+
if (highSeverityCount > 3) {
|
|
293
|
+
return 'severe';
|
|
294
|
+
}
|
|
295
|
+
// Moderate if pass rate dropped moderately
|
|
296
|
+
if (summary.passRateChange < -this.config.regressionThreshold) {
|
|
297
|
+
return 'moderate';
|
|
298
|
+
}
|
|
299
|
+
// Moderate if multiple medium severity regressions
|
|
300
|
+
if (regressions.filter((r)=>r.severity === 'medium').length > 2) {
|
|
301
|
+
return 'moderate';
|
|
302
|
+
}
|
|
303
|
+
return 'minor';
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
* Generate recommendations
|
|
307
|
+
*/ generateRecommendations(summary, regressions, improvements) {
|
|
308
|
+
const recommendations = [];
|
|
309
|
+
// Regression recommendations
|
|
310
|
+
if (regressions.length > 0) {
|
|
311
|
+
recommendations.push(`Address ${regressions.length} regression(s) before proceeding`);
|
|
312
|
+
const criticalRegressions = regressions.filter((r)=>r.severity === 'critical');
|
|
313
|
+
if (criticalRegressions.length > 0) {
|
|
314
|
+
recommendations.push(`CRITICAL: Fix ${criticalRegressions.length} critical regression(s) immediately`);
|
|
315
|
+
}
|
|
316
|
+
const newFailures = regressions.filter((r)=>r.type === 'new-failure');
|
|
317
|
+
if (newFailures.length > 0) {
|
|
318
|
+
recommendations.push(`Investigate ${newFailures.length} new test failure(s)`);
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
// Pass rate recommendations
|
|
322
|
+
if (summary.passRateChange < 0) {
|
|
323
|
+
recommendations.push(`Test pass rate decreased by ${Math.abs(summary.passRateChange).toFixed(1)}% - review recent changes`);
|
|
324
|
+
}
|
|
325
|
+
// Improvement recognition
|
|
326
|
+
if (improvements.length > 0) {
|
|
327
|
+
recommendations.push(`Good progress: ${improvements.length} improvement(s) detected`);
|
|
328
|
+
if (summary.fixedFailures > 0) {
|
|
329
|
+
recommendations.push(`Successfully fixed ${summary.fixedFailures} test(s)`);
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
// No regressions
|
|
333
|
+
if (regressions.length === 0 && summary.passRateChange >= 0) {
|
|
334
|
+
recommendations.push('No regressions detected - safe to proceed');
|
|
335
|
+
}
|
|
336
|
+
return recommendations;
|
|
337
|
+
}
|
|
338
|
+
/**
|
|
339
|
+
* Create result when no baseline exists
|
|
340
|
+
*/ createNoRegressionResult(current) {
|
|
341
|
+
return {
|
|
342
|
+
regressionDetected: false,
|
|
343
|
+
severity: 'none',
|
|
344
|
+
summary: {
|
|
345
|
+
baselinePassed: 0,
|
|
346
|
+
baselineFailed: 0,
|
|
347
|
+
currentPassed: current.passed,
|
|
348
|
+
currentFailed: current.failed,
|
|
349
|
+
newFailures: 0,
|
|
350
|
+
fixedFailures: 0,
|
|
351
|
+
passRateChange: 0
|
|
352
|
+
},
|
|
353
|
+
regressions: [],
|
|
354
|
+
improvements: [],
|
|
355
|
+
recommendations: [
|
|
356
|
+
'No baseline available - storing current results as baseline'
|
|
357
|
+
],
|
|
358
|
+
requiresAction: false
|
|
359
|
+
};
|
|
360
|
+
}
|
|
361
|
+
/**
|
|
362
|
+
* Select tests affected by changed files
|
|
363
|
+
*/ selectAffectedTests(changedFiles, allTests) {
|
|
364
|
+
// Simplified selection - in production, would use dependency analysis
|
|
365
|
+
const affected = [];
|
|
366
|
+
for (const test of allTests){
|
|
367
|
+
for (const file of changedFiles){
|
|
368
|
+
// Simple heuristic: if test name contains file name or vice versa
|
|
369
|
+
const testLower = test.toLowerCase();
|
|
370
|
+
const fileLower = file.toLowerCase();
|
|
371
|
+
if (testLower.includes(fileLower) || fileLower.includes(testLower)) {
|
|
372
|
+
affected.push(test);
|
|
373
|
+
break;
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
return affected;
|
|
378
|
+
}
|
|
379
|
+
/**
|
|
380
|
+
* Select critical tests that should always run
|
|
381
|
+
*/ selectCriticalTests(allTests) {
|
|
382
|
+
// Select tests marked as critical or smoke tests
|
|
383
|
+
return allTests.filter((test)=>test.toLowerCase().includes('critical') || test.toLowerCase().includes('smoke') || test.toLowerCase().includes('sanity'));
|
|
384
|
+
}
|
|
385
|
+
/**
|
|
386
|
+
* Get severity level as number
|
|
387
|
+
*/ getSeverityLevel(severity) {
|
|
388
|
+
const levels = {
|
|
389
|
+
critical: 4,
|
|
390
|
+
high: 3,
|
|
391
|
+
medium: 2,
|
|
392
|
+
low: 1
|
|
393
|
+
};
|
|
394
|
+
return levels[severity] || 0;
|
|
395
|
+
}
|
|
396
|
+
/**
|
|
397
|
+
* Calculate average coverage
|
|
398
|
+
*/ averageCoverage(coverage) {
|
|
399
|
+
return (coverage.lines + coverage.functions + coverage.branches + coverage.statements) / 4;
|
|
400
|
+
}
|
|
401
|
+
/**
|
|
402
|
+
* Clear baselines and history
|
|
403
|
+
*/ clear(featureId) {
|
|
404
|
+
if (featureId) {
|
|
405
|
+
this.baselines.delete(featureId);
|
|
406
|
+
this.regressionHistory.delete(featureId);
|
|
407
|
+
this.logger.info('Cleared regression data', {
|
|
408
|
+
featureId
|
|
409
|
+
});
|
|
410
|
+
} else {
|
|
411
|
+
this.baselines.clear();
|
|
412
|
+
this.regressionHistory.clear();
|
|
413
|
+
this.logger.info('Cleared all regression data');
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
//# sourceMappingURL=regression-test-manager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/swarm-fullstack/workflows/regression-test-manager.ts"],"names":["EventEmitter","RegressionTestManager","config","baselines","Map","regressionHistory","logger","enableBaselineComparison","enableIncrementalTesting","regressionThreshold","requireApprovalForRegression","runRegressionTests","request","info","featureId","hasBaseline","baseline","get","warn","createNoRegressionResult","current","summary","generateRegressionSummary","regressions","detectRegressions","improvements","identifyImprovements","severity","determineSeverity","recommendations","generateRecommendations","requiresAction","length","result","regressionDetected","history","push","set","emit","error","createIncrementalTestPlan","changedFiles","allTests","totalTests","selectedTests","reason","estimatedDuration","coverage","selectAffectedTests","criticalTests","selectCriticalTests","test","includes","storeBaseline","testResults","tests","passed","getRegressionHistory","baselinePassRate","currentPassRate","passRateChange","baselineFailureNames","Set","failures","map","f","testName","currentFailureNames","newFailures","Array","from","filter","name","has","fixedFailures","baselinePassed","baselineFailed","failed","currentPassed","currentFailed","baselineFailuresMap","currentFailuresMap","currentFailure","baselineFailure","id","Date","now","Math","random","toString","substr","type","previousState","currentState","impactedComponents","affectedComponents","suggestedAction","category","getSeverityLevel","baselineWarningNames","warnings","w","location","newWarnings","warning","impact","baselineCovg","averageCoverage","currentCovg","toFixed","duration","round","some","r","highSeverityCount","criticalRegressions","abs","affected","file","testLower","toLowerCase","fileLower","levels","critical","high","medium","low","lines","functions","branches","statements","clear","delete"],"mappings":"AAAA;;;;;;;;;;;;CAYC,GAED,SAASA,YAAY,QAAQ,SAAS;AAmEtC,OAAO,MAAMC,8BAA8BD;;IACjCE,OAA6B;IAC7BC,YAAY,IAAIC,MAAmC;IACnDC,oBAAoB,IAAID,MAAsC;IAEtE,YAAY,AAAQE,MAAe,EAAEJ,MAAsC,CAAE;QAC3E,KAAK,SADaI,SAAAA;QAGlB,IAAI,CAACJ,MAAM,GAAG;YACZK,0BAA0B;YAC1BC,0BAA0B;YAC1BC,qBAAqB;YACrBC,8BAA8B;YAC9B,GAAGR,MAAM;QACX;IACF;IAEA;;GAEC,GACD,MAAMS,mBAAmBC,OAA8B,EAAiC;QACtF,IAAI,CAACN,MAAM,CAACO,IAAI,CAAC,4BAA4B;YAC3CC,WAAWF,QAAQE,SAAS;YAC5BC,aAAa,CAAC,CAACH,QAAQI,QAAQ;QACjC;QAEA,IAAI;YACF,2CAA2C;YAC3C,MAAMA,WAAWJ,QAAQI,QAAQ,IAAI,IAAI,CAACb,SAAS,CAACc,GAAG,CAACL,QAAQE,SAAS;YAEzE,IAAI,CAACE,UAAU;gBACb,IAAI,CAACV,MAAM,CAACY,IAAI,CAAC,oCAAoC;oBAAEJ,WAAWF,QAAQE,SAAS;gBAAC;gBACpF,OAAO,IAAI,CAACK,wBAAwB,CAACP,QAAQQ,OAAO;YACtD;YAEA,mBAAmB;YACnB,MAAMC,UAAU,IAAI,CAACC,yBAAyB,CAACN,UAAUJ,QAAQQ,OAAO;YAExE,qBAAqB;YACrB,MAAMG,cAAc,IAAI,CAACC,iBAAiB,CAACR,UAAUJ,QAAQQ,OAAO;YAEpE,wBAAwB;YACxB,MAAMK,eAAe,IAAI,CAACC,oBAAoB,CAACV,UAAUJ,QAAQQ,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