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
|
@@ -1,649 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* Claude-Flow Novice MCP Server - SDK-BASED VERSION
|
|
4
|
-
* Uses @modelcontextprotocol/sdk for proper tool discovery
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import { Server } from '@modelcontextprotocol/sdk/server/index.js';
|
|
8
|
-
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
9
|
-
import {
|
|
10
|
-
CallToolRequestSchema,
|
|
11
|
-
ListResourcesRequestSchema,
|
|
12
|
-
ListToolsRequestSchema,
|
|
13
|
-
ReadResourceRequestSchema,
|
|
14
|
-
} from '@modelcontextprotocol/sdk/types.js';
|
|
15
|
-
|
|
16
|
-
class ClaudeFlowNoviceServer {
|
|
17
|
-
constructor() {
|
|
18
|
-
this.version = '2.0.0-novice-sdk';
|
|
19
|
-
this.sessionId = `session-cfn-${Date.now()}-${Math.random().toString(36).substr(2, 4)}`;
|
|
20
|
-
|
|
21
|
-
this.server = new Server(
|
|
22
|
-
{
|
|
23
|
-
name: 'claude-flow-novice',
|
|
24
|
-
version: this.version,
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
capabilities: {
|
|
28
|
-
tools: {},
|
|
29
|
-
resources: {},
|
|
30
|
-
},
|
|
31
|
-
}
|
|
32
|
-
);
|
|
33
|
-
|
|
34
|
-
this.setupHandlers();
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
setupHandlers() {
|
|
38
|
-
// Tool listing - 30 Essential Tools for Novice Users
|
|
39
|
-
this.server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
40
|
-
return {
|
|
41
|
-
tools: [
|
|
42
|
-
// === SWARM COORDINATION (8 tools) ===
|
|
43
|
-
{
|
|
44
|
-
name: 'swarm_init',
|
|
45
|
-
description: 'Initialize swarm with topology and configuration',
|
|
46
|
-
inputSchema: {
|
|
47
|
-
type: 'object',
|
|
48
|
-
properties: {
|
|
49
|
-
topology: { type: 'string', enum: ['hierarchical', 'mesh', 'ring', 'star'] },
|
|
50
|
-
maxAgents: { type: 'number', default: 8 },
|
|
51
|
-
strategy: { type: 'string', default: 'auto' },
|
|
52
|
-
},
|
|
53
|
-
required: ['topology'],
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
name: 'agent_spawn',
|
|
58
|
-
description: 'Create specialized AI agents',
|
|
59
|
-
inputSchema: {
|
|
60
|
-
type: 'object',
|
|
61
|
-
properties: {
|
|
62
|
-
type: { type: 'string', enum: ['coordinator', 'analyst', 'optimizer', 'documenter', 'researcher', 'coder', 'tester', 'reviewer'] },
|
|
63
|
-
name: { type: 'string' },
|
|
64
|
-
capabilities: { type: 'array' },
|
|
65
|
-
swarmId: { type: 'string' },
|
|
66
|
-
},
|
|
67
|
-
required: ['type'],
|
|
68
|
-
},
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
name: 'task_orchestrate',
|
|
72
|
-
description: 'Orchestrate complex task workflows',
|
|
73
|
-
inputSchema: {
|
|
74
|
-
type: 'object',
|
|
75
|
-
properties: {
|
|
76
|
-
task: { type: 'string' },
|
|
77
|
-
strategy: { type: 'string', enum: ['parallel', 'sequential', 'adaptive'] },
|
|
78
|
-
priority: { type: 'string', enum: ['low', 'medium', 'high'] },
|
|
79
|
-
},
|
|
80
|
-
required: ['task'],
|
|
81
|
-
},
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
name: 'swarm_status',
|
|
85
|
-
description: 'Monitor swarm health and performance',
|
|
86
|
-
inputSchema: {
|
|
87
|
-
type: 'object',
|
|
88
|
-
properties: { swarmId: { type: 'string' } },
|
|
89
|
-
},
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
name: 'agent_list',
|
|
93
|
-
description: 'List active agents & capabilities',
|
|
94
|
-
inputSchema: {
|
|
95
|
-
type: 'object',
|
|
96
|
-
properties: { swarmId: { type: 'string' } },
|
|
97
|
-
},
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
name: 'coordination_sync',
|
|
101
|
-
description: 'Sync agent coordination',
|
|
102
|
-
inputSchema: {
|
|
103
|
-
type: 'object',
|
|
104
|
-
properties: { swarmId: { type: 'string' } },
|
|
105
|
-
},
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
name: 'swarm_scale',
|
|
109
|
-
description: 'Auto-scale agent count',
|
|
110
|
-
inputSchema: {
|
|
111
|
-
type: 'object',
|
|
112
|
-
properties: {
|
|
113
|
-
swarmId: { type: 'string' },
|
|
114
|
-
targetSize: { type: 'number' },
|
|
115
|
-
},
|
|
116
|
-
},
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
name: 'swarm_destroy',
|
|
120
|
-
description: 'Gracefully shutdown swarm',
|
|
121
|
-
inputSchema: {
|
|
122
|
-
type: 'object',
|
|
123
|
-
properties: { swarmId: { type: 'string' } },
|
|
124
|
-
required: ['swarmId'],
|
|
125
|
-
},
|
|
126
|
-
},
|
|
127
|
-
|
|
128
|
-
// === MEMORY MANAGEMENT (7 tools) ===
|
|
129
|
-
{
|
|
130
|
-
name: 'memory_usage',
|
|
131
|
-
description: 'Store/retrieve persistent memory',
|
|
132
|
-
inputSchema: {
|
|
133
|
-
type: 'object',
|
|
134
|
-
properties: {
|
|
135
|
-
action: { type: 'string', enum: ['store', 'retrieve', 'list', 'delete'] },
|
|
136
|
-
key: { type: 'string' },
|
|
137
|
-
value: { type: 'string' },
|
|
138
|
-
namespace: { type: 'string', default: 'default' },
|
|
139
|
-
},
|
|
140
|
-
required: ['action'],
|
|
141
|
-
},
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
name: 'memory_search',
|
|
145
|
-
description: 'Search memory with patterns',
|
|
146
|
-
inputSchema: {
|
|
147
|
-
type: 'object',
|
|
148
|
-
properties: {
|
|
149
|
-
pattern: { type: 'string' },
|
|
150
|
-
namespace: { type: 'string' },
|
|
151
|
-
limit: { type: 'number', default: 10 },
|
|
152
|
-
},
|
|
153
|
-
required: ['pattern'],
|
|
154
|
-
},
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
name: 'memory_persist',
|
|
158
|
-
description: 'Cross-session persistence',
|
|
159
|
-
inputSchema: {
|
|
160
|
-
type: 'object',
|
|
161
|
-
properties: { sessionId: { type: 'string' } },
|
|
162
|
-
},
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
name: 'memory_backup',
|
|
166
|
-
description: 'Backup memory stores',
|
|
167
|
-
inputSchema: {
|
|
168
|
-
type: 'object',
|
|
169
|
-
properties: { path: { type: 'string' } },
|
|
170
|
-
},
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
name: 'memory_restore',
|
|
174
|
-
description: 'Restore from backups',
|
|
175
|
-
inputSchema: {
|
|
176
|
-
type: 'object',
|
|
177
|
-
properties: { backupPath: { type: 'string' } },
|
|
178
|
-
required: ['backupPath'],
|
|
179
|
-
},
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
name: 'memory_namespace',
|
|
183
|
-
description: 'Namespace management',
|
|
184
|
-
inputSchema: {
|
|
185
|
-
type: 'object',
|
|
186
|
-
properties: {
|
|
187
|
-
namespace: { type: 'string' },
|
|
188
|
-
action: { type: 'string' },
|
|
189
|
-
},
|
|
190
|
-
required: ['namespace', 'action'],
|
|
191
|
-
},
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
name: 'cache_manage',
|
|
195
|
-
description: 'Manage coordination cache',
|
|
196
|
-
inputSchema: {
|
|
197
|
-
type: 'object',
|
|
198
|
-
properties: {
|
|
199
|
-
action: { type: 'string' },
|
|
200
|
-
key: { type: 'string' },
|
|
201
|
-
},
|
|
202
|
-
required: ['action'],
|
|
203
|
-
},
|
|
204
|
-
},
|
|
205
|
-
|
|
206
|
-
// === TASK MANAGEMENT (3 tools) ===
|
|
207
|
-
{
|
|
208
|
-
name: 'task_status',
|
|
209
|
-
description: 'Check task execution status',
|
|
210
|
-
inputSchema: {
|
|
211
|
-
type: 'object',
|
|
212
|
-
properties: { taskId: { type: 'string' } },
|
|
213
|
-
required: ['taskId'],
|
|
214
|
-
},
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
name: 'task_results',
|
|
218
|
-
description: 'Get task completion results',
|
|
219
|
-
inputSchema: {
|
|
220
|
-
type: 'object',
|
|
221
|
-
properties: { taskId: { type: 'string' } },
|
|
222
|
-
required: ['taskId'],
|
|
223
|
-
},
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
name: 'agent_metrics',
|
|
227
|
-
description: 'Agent performance metrics',
|
|
228
|
-
inputSchema: {
|
|
229
|
-
type: 'object',
|
|
230
|
-
properties: { agentId: { type: 'string' } },
|
|
231
|
-
},
|
|
232
|
-
},
|
|
233
|
-
|
|
234
|
-
// === PERFORMANCE MONITORING (5 tools) ===
|
|
235
|
-
{
|
|
236
|
-
name: 'performance_report',
|
|
237
|
-
description: 'Generate performance reports',
|
|
238
|
-
inputSchema: {
|
|
239
|
-
type: 'object',
|
|
240
|
-
properties: {
|
|
241
|
-
format: { type: 'string', enum: ['summary', 'detailed'], default: 'summary' },
|
|
242
|
-
timeframe: { type: 'string', enum: ['24h', '7d'], default: '24h' },
|
|
243
|
-
},
|
|
244
|
-
},
|
|
245
|
-
},
|
|
246
|
-
{
|
|
247
|
-
name: 'bottleneck_analyze',
|
|
248
|
-
description: 'Identify performance bottlenecks',
|
|
249
|
-
inputSchema: {
|
|
250
|
-
type: 'object',
|
|
251
|
-
properties: {
|
|
252
|
-
component: { type: 'string' },
|
|
253
|
-
metrics: { type: 'array' },
|
|
254
|
-
},
|
|
255
|
-
},
|
|
256
|
-
},
|
|
257
|
-
{
|
|
258
|
-
name: 'health_check',
|
|
259
|
-
description: 'System health monitoring',
|
|
260
|
-
inputSchema: {
|
|
261
|
-
type: 'object',
|
|
262
|
-
properties: { components: { type: 'array' } },
|
|
263
|
-
},
|
|
264
|
-
},
|
|
265
|
-
{
|
|
266
|
-
name: 'usage_stats',
|
|
267
|
-
description: 'Usage statistics',
|
|
268
|
-
inputSchema: {
|
|
269
|
-
type: 'object',
|
|
270
|
-
properties: { component: { type: 'string' } },
|
|
271
|
-
},
|
|
272
|
-
},
|
|
273
|
-
{
|
|
274
|
-
name: 'diagnostic_run',
|
|
275
|
-
description: 'System diagnostics',
|
|
276
|
-
inputSchema: {
|
|
277
|
-
type: 'object',
|
|
278
|
-
properties: { components: { type: 'array' } },
|
|
279
|
-
},
|
|
280
|
-
},
|
|
281
|
-
|
|
282
|
-
// === PROJECT ANALYSIS (7 tools) ===
|
|
283
|
-
{
|
|
284
|
-
name: 'language_detect',
|
|
285
|
-
description: 'Multi-language project analysis',
|
|
286
|
-
inputSchema: {
|
|
287
|
-
type: 'object',
|
|
288
|
-
properties: {
|
|
289
|
-
path: { type: 'string' },
|
|
290
|
-
includeFrameworks: { type: 'boolean', default: true },
|
|
291
|
-
},
|
|
292
|
-
},
|
|
293
|
-
},
|
|
294
|
-
{
|
|
295
|
-
name: 'framework_detect',
|
|
296
|
-
description: 'Framework detection and analysis',
|
|
297
|
-
inputSchema: {
|
|
298
|
-
type: 'object',
|
|
299
|
-
properties: { path: { type: 'string' } },
|
|
300
|
-
},
|
|
301
|
-
},
|
|
302
|
-
{
|
|
303
|
-
name: 'dependency_analyze',
|
|
304
|
-
description: 'Dependency analysis and validation',
|
|
305
|
-
inputSchema: {
|
|
306
|
-
type: 'object',
|
|
307
|
-
properties: { path: { type: 'string' } },
|
|
308
|
-
},
|
|
309
|
-
},
|
|
310
|
-
{
|
|
311
|
-
name: 'config_validate',
|
|
312
|
-
description: 'Configuration validation',
|
|
313
|
-
inputSchema: {
|
|
314
|
-
type: 'object',
|
|
315
|
-
properties: { configPath: { type: 'string' } },
|
|
316
|
-
},
|
|
317
|
-
},
|
|
318
|
-
{
|
|
319
|
-
name: 'test_detect',
|
|
320
|
-
description: 'Test framework detection',
|
|
321
|
-
inputSchema: {
|
|
322
|
-
type: 'object',
|
|
323
|
-
properties: { path: { type: 'string' } },
|
|
324
|
-
},
|
|
325
|
-
},
|
|
326
|
-
{
|
|
327
|
-
name: 'build_detect',
|
|
328
|
-
description: 'Build system detection',
|
|
329
|
-
inputSchema: {
|
|
330
|
-
type: 'object',
|
|
331
|
-
properties: { path: { type: 'string' } },
|
|
332
|
-
},
|
|
333
|
-
},
|
|
334
|
-
{
|
|
335
|
-
name: 'package_analyze',
|
|
336
|
-
description: 'Package.json analysis',
|
|
337
|
-
inputSchema: {
|
|
338
|
-
type: 'object',
|
|
339
|
-
properties: { path: { type: 'string' } },
|
|
340
|
-
},
|
|
341
|
-
},
|
|
342
|
-
],
|
|
343
|
-
};
|
|
344
|
-
});
|
|
345
|
-
|
|
346
|
-
// Tool execution - Handle all 30 tools
|
|
347
|
-
this.server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
348
|
-
const { name, arguments: args } = request.params;
|
|
349
|
-
|
|
350
|
-
console.error(`[${new Date().toISOString()}] INFO [claude-flow-novice-mcp] (${this.sessionId}) Executing tool: ${name}`);
|
|
351
|
-
|
|
352
|
-
// Helper function to create standard responses
|
|
353
|
-
const createResponse = (data) => ({
|
|
354
|
-
content: [{ type: 'text', text: JSON.stringify(data, null, 2) }],
|
|
355
|
-
});
|
|
356
|
-
|
|
357
|
-
switch (name) {
|
|
358
|
-
// === SWARM COORDINATION ===
|
|
359
|
-
case 'swarm_init':
|
|
360
|
-
return createResponse({
|
|
361
|
-
success: true,
|
|
362
|
-
swarmId: `swarm_${Date.now()}_${Math.random().toString(36).substr(2, 8)}`,
|
|
363
|
-
topology: args.topology,
|
|
364
|
-
maxAgents: args.maxAgents || 8,
|
|
365
|
-
strategy: args.strategy || 'auto',
|
|
366
|
-
status: 'initialized',
|
|
367
|
-
timestamp: new Date().toISOString(),
|
|
368
|
-
message: 'Swarm initialized successfully',
|
|
369
|
-
});
|
|
370
|
-
|
|
371
|
-
case 'agent_spawn':
|
|
372
|
-
return createResponse({
|
|
373
|
-
success: true,
|
|
374
|
-
agentId: `agent_${Date.now()}_${Math.random().toString(36).substr(2, 6)}`,
|
|
375
|
-
type: args.type,
|
|
376
|
-
name: args.name || `${args.type}-agent`,
|
|
377
|
-
status: 'active',
|
|
378
|
-
capabilities: args.capabilities || [],
|
|
379
|
-
swarmId: args.swarmId,
|
|
380
|
-
timestamp: new Date().toISOString(),
|
|
381
|
-
message: `Agent ${args.type} spawned successfully`,
|
|
382
|
-
});
|
|
383
|
-
|
|
384
|
-
case 'task_orchestrate':
|
|
385
|
-
return createResponse({
|
|
386
|
-
success: true,
|
|
387
|
-
taskId: `task_${Date.now()}_${Math.random().toString(36).substr(2, 8)}`,
|
|
388
|
-
task: args.task,
|
|
389
|
-
strategy: args.strategy || 'adaptive',
|
|
390
|
-
priority: args.priority || 'medium',
|
|
391
|
-
status: 'orchestrating',
|
|
392
|
-
estimatedAgents: Math.floor(Math.random() * 5) + 2,
|
|
393
|
-
timestamp: new Date().toISOString(),
|
|
394
|
-
message: 'Task orchestration initiated',
|
|
395
|
-
});
|
|
396
|
-
|
|
397
|
-
case 'swarm_status':
|
|
398
|
-
return createResponse({
|
|
399
|
-
success: true,
|
|
400
|
-
swarmId: args.swarmId || 'default',
|
|
401
|
-
status: 'active',
|
|
402
|
-
agents: Math.floor(Math.random() * 8) + 2,
|
|
403
|
-
topology: 'mesh',
|
|
404
|
-
health: 'good',
|
|
405
|
-
timestamp: new Date().toISOString(),
|
|
406
|
-
});
|
|
407
|
-
|
|
408
|
-
case 'agent_list':
|
|
409
|
-
return createResponse({
|
|
410
|
-
success: true,
|
|
411
|
-
swarmId: args.swarmId || 'default',
|
|
412
|
-
agents: Array.from({ length: Math.floor(Math.random() * 5) + 2 }, (_, i) => ({
|
|
413
|
-
id: `agent_${i + 1}`,
|
|
414
|
-
type: ['researcher', 'coder', 'tester', 'analyst'][i % 4],
|
|
415
|
-
status: 'active',
|
|
416
|
-
})),
|
|
417
|
-
timestamp: new Date().toISOString(),
|
|
418
|
-
});
|
|
419
|
-
|
|
420
|
-
case 'coordination_sync':
|
|
421
|
-
return createResponse({
|
|
422
|
-
success: true,
|
|
423
|
-
swarmId: args.swarmId || 'default',
|
|
424
|
-
syncStatus: 'synchronized',
|
|
425
|
-
lastSync: new Date().toISOString(),
|
|
426
|
-
message: 'Agent coordination synchronized',
|
|
427
|
-
});
|
|
428
|
-
|
|
429
|
-
case 'swarm_scale':
|
|
430
|
-
return createResponse({
|
|
431
|
-
success: true,
|
|
432
|
-
swarmId: args.swarmId,
|
|
433
|
-
targetSize: args.targetSize,
|
|
434
|
-
currentSize: Math.floor(Math.random() * 10) + 2,
|
|
435
|
-
status: 'scaling',
|
|
436
|
-
timestamp: new Date().toISOString(),
|
|
437
|
-
});
|
|
438
|
-
|
|
439
|
-
case 'swarm_destroy':
|
|
440
|
-
return createResponse({
|
|
441
|
-
success: true,
|
|
442
|
-
swarmId: args.swarmId,
|
|
443
|
-
status: 'destroyed',
|
|
444
|
-
agentsTerminated: Math.floor(Math.random() * 8) + 1,
|
|
445
|
-
timestamp: new Date().toISOString(),
|
|
446
|
-
message: 'Swarm destroyed gracefully',
|
|
447
|
-
});
|
|
448
|
-
|
|
449
|
-
// === MEMORY MANAGEMENT ===
|
|
450
|
-
case 'memory_usage':
|
|
451
|
-
return createResponse({
|
|
452
|
-
success: true,
|
|
453
|
-
action: args.action,
|
|
454
|
-
key: args.key,
|
|
455
|
-
namespace: args.namespace || 'default',
|
|
456
|
-
result: args.action === 'store' ? 'stored' : args.action === 'retrieve' ? 'mock_value' : 'completed',
|
|
457
|
-
timestamp: new Date().toISOString(),
|
|
458
|
-
message: `Memory ${args.action} operation completed`,
|
|
459
|
-
});
|
|
460
|
-
|
|
461
|
-
case 'memory_search':
|
|
462
|
-
return createResponse({
|
|
463
|
-
success: true,
|
|
464
|
-
pattern: args.pattern,
|
|
465
|
-
namespace: args.namespace || 'default',
|
|
466
|
-
results: Array.from({ length: Math.min(args.limit || 10, 5) }, (_, i) => ({
|
|
467
|
-
key: `result_${i + 1}`,
|
|
468
|
-
value: `mock_data_${i + 1}`,
|
|
469
|
-
relevance: Math.random(),
|
|
470
|
-
})),
|
|
471
|
-
timestamp: new Date().toISOString(),
|
|
472
|
-
});
|
|
473
|
-
|
|
474
|
-
case 'memory_persist':
|
|
475
|
-
case 'memory_backup':
|
|
476
|
-
case 'memory_restore':
|
|
477
|
-
case 'memory_namespace':
|
|
478
|
-
case 'cache_manage':
|
|
479
|
-
return createResponse({
|
|
480
|
-
success: true,
|
|
481
|
-
operation: name,
|
|
482
|
-
status: 'completed',
|
|
483
|
-
timestamp: new Date().toISOString(),
|
|
484
|
-
message: `${name} operation completed successfully`,
|
|
485
|
-
});
|
|
486
|
-
|
|
487
|
-
// === TASK MANAGEMENT ===
|
|
488
|
-
case 'task_status':
|
|
489
|
-
return createResponse({
|
|
490
|
-
success: true,
|
|
491
|
-
taskId: args.taskId,
|
|
492
|
-
status: ['pending', 'running', 'completed'][Math.floor(Math.random() * 3)],
|
|
493
|
-
progress: Math.floor(Math.random() * 100),
|
|
494
|
-
timestamp: new Date().toISOString(),
|
|
495
|
-
});
|
|
496
|
-
|
|
497
|
-
case 'task_results':
|
|
498
|
-
return createResponse({
|
|
499
|
-
success: true,
|
|
500
|
-
taskId: args.taskId,
|
|
501
|
-
result: 'Task completed successfully',
|
|
502
|
-
executionTime: Math.floor(Math.random() * 1000) + 100,
|
|
503
|
-
agentsUsed: Math.floor(Math.random() * 5) + 1,
|
|
504
|
-
timestamp: new Date().toISOString(),
|
|
505
|
-
});
|
|
506
|
-
|
|
507
|
-
case 'agent_metrics':
|
|
508
|
-
return createResponse({
|
|
509
|
-
success: true,
|
|
510
|
-
agentId: args.agentId || 'default',
|
|
511
|
-
metrics: {
|
|
512
|
-
tasksCompleted: Math.floor(Math.random() * 50) + 10,
|
|
513
|
-
successRate: Math.random() * 0.3 + 0.7,
|
|
514
|
-
avgExecutionTime: Math.random() * 5 + 1,
|
|
515
|
-
uptime: Math.floor(Math.random() * 86400) + 3600,
|
|
516
|
-
},
|
|
517
|
-
timestamp: new Date().toISOString(),
|
|
518
|
-
});
|
|
519
|
-
|
|
520
|
-
// === PERFORMANCE MONITORING ===
|
|
521
|
-
case 'performance_report':
|
|
522
|
-
return createResponse({
|
|
523
|
-
success: true,
|
|
524
|
-
timeframe: args.timeframe || '24h',
|
|
525
|
-
format: args.format || 'summary',
|
|
526
|
-
metrics: {
|
|
527
|
-
tasks_executed: Math.floor(Math.random() * 200) + 50,
|
|
528
|
-
success_rate: Math.random() * 0.2 + 0.8,
|
|
529
|
-
avg_execution_time: Math.random() * 10 + 5,
|
|
530
|
-
agents_spawned: Math.floor(Math.random() * 50) + 10,
|
|
531
|
-
memory_efficiency: Math.random() * 0.3 + 0.7,
|
|
532
|
-
},
|
|
533
|
-
timestamp: new Date().toISOString(),
|
|
534
|
-
message: 'Performance report generated',
|
|
535
|
-
});
|
|
536
|
-
|
|
537
|
-
case 'bottleneck_analyze':
|
|
538
|
-
case 'health_check':
|
|
539
|
-
case 'usage_stats':
|
|
540
|
-
case 'diagnostic_run':
|
|
541
|
-
return createResponse({
|
|
542
|
-
success: true,
|
|
543
|
-
operation: name,
|
|
544
|
-
status: 'healthy',
|
|
545
|
-
metrics: {
|
|
546
|
-
cpu_usage: Math.random() * 80 + 10,
|
|
547
|
-
memory_usage: Math.random() * 70 + 20,
|
|
548
|
-
response_time: Math.random() * 100 + 50,
|
|
549
|
-
},
|
|
550
|
-
timestamp: new Date().toISOString(),
|
|
551
|
-
});
|
|
552
|
-
|
|
553
|
-
// === PROJECT ANALYSIS ===
|
|
554
|
-
case 'language_detect':
|
|
555
|
-
return createResponse({
|
|
556
|
-
success: true,
|
|
557
|
-
path: args.path || '.',
|
|
558
|
-
languages: {
|
|
559
|
-
javascript: 65.2,
|
|
560
|
-
typescript: 20.1,
|
|
561
|
-
json: 8.7,
|
|
562
|
-
markdown: 6.0,
|
|
563
|
-
},
|
|
564
|
-
frameworks: args.includeFrameworks ? ['React', 'Node.js'] : [],
|
|
565
|
-
timestamp: new Date().toISOString(),
|
|
566
|
-
});
|
|
567
|
-
|
|
568
|
-
case 'framework_detect':
|
|
569
|
-
case 'dependency_analyze':
|
|
570
|
-
case 'config_validate':
|
|
571
|
-
case 'test_detect':
|
|
572
|
-
case 'build_detect':
|
|
573
|
-
case 'package_analyze':
|
|
574
|
-
return createResponse({
|
|
575
|
-
success: true,
|
|
576
|
-
operation: name,
|
|
577
|
-
path: args.path || '.',
|
|
578
|
-
detected: ['React', 'Jest', 'Webpack', 'ESLint'][Math.floor(Math.random() * 4)],
|
|
579
|
-
confidence: Math.random() * 0.3 + 0.7,
|
|
580
|
-
timestamp: new Date().toISOString(),
|
|
581
|
-
});
|
|
582
|
-
|
|
583
|
-
default:
|
|
584
|
-
throw new Error(`Unknown tool: ${name}`);
|
|
585
|
-
}
|
|
586
|
-
});
|
|
587
|
-
|
|
588
|
-
// Resource listing
|
|
589
|
-
this.server.setRequestHandler(ListResourcesRequestSchema, async () => {
|
|
590
|
-
return {
|
|
591
|
-
resources: [
|
|
592
|
-
{
|
|
593
|
-
uri: 'swarms://status',
|
|
594
|
-
name: 'Swarm Status',
|
|
595
|
-
description: 'Current swarm configuration and status',
|
|
596
|
-
mimeType: 'application/json',
|
|
597
|
-
},
|
|
598
|
-
{
|
|
599
|
-
uri: 'agents://list',
|
|
600
|
-
name: 'Agent List',
|
|
601
|
-
description: 'Available and active agents',
|
|
602
|
-
mimeType: 'application/json',
|
|
603
|
-
},
|
|
604
|
-
],
|
|
605
|
-
};
|
|
606
|
-
});
|
|
607
|
-
|
|
608
|
-
// Resource reading
|
|
609
|
-
this.server.setRequestHandler(ReadResourceRequestSchema, async (request) => {
|
|
610
|
-
const { uri } = request.params;
|
|
611
|
-
|
|
612
|
-
const mockData = {
|
|
613
|
-
uri,
|
|
614
|
-
timestamp: new Date().toISOString(),
|
|
615
|
-
sessionId: this.sessionId,
|
|
616
|
-
data: `Mock data for ${uri}`,
|
|
617
|
-
};
|
|
618
|
-
|
|
619
|
-
return {
|
|
620
|
-
contents: [
|
|
621
|
-
{
|
|
622
|
-
uri,
|
|
623
|
-
mimeType: 'application/json',
|
|
624
|
-
text: JSON.stringify(mockData, null, 2),
|
|
625
|
-
},
|
|
626
|
-
],
|
|
627
|
-
};
|
|
628
|
-
});
|
|
629
|
-
}
|
|
630
|
-
|
|
631
|
-
async start() {
|
|
632
|
-
const toolCount = 30; // Number of tools we defined
|
|
633
|
-
console.error(`[${new Date().toISOString()}] INFO [claude-flow-novice-mcp] (${this.sessionId}) Claude-Flow Novice MCP server starting (SDK-based)`);
|
|
634
|
-
console.error(`[${new Date().toISOString()}] INFO [claude-flow-novice-mcp] (${this.sessionId}) Server starting with ${toolCount} essential tools`);
|
|
635
|
-
|
|
636
|
-
const transport = new StdioServerTransport();
|
|
637
|
-
await this.server.connect(transport);
|
|
638
|
-
|
|
639
|
-
console.error(`[${new Date().toISOString()}] INFO [claude-flow-novice-mcp] (${this.sessionId}) Connected via stdio transport`);
|
|
640
|
-
}
|
|
641
|
-
}
|
|
642
|
-
|
|
643
|
-
// Start the server if this file is run directly
|
|
644
|
-
if (import.meta.url === `file://${process.argv[1]}`) {
|
|
645
|
-
const server = new ClaudeFlowNoviceServer();
|
|
646
|
-
server.start().catch(console.error);
|
|
647
|
-
}
|
|
648
|
-
|
|
649
|
-
export { ClaudeFlowNoviceServer };
|