agentic-qe 1.1.0 → 1.3.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/qe-coverage-analyzer.md +8 -0
- package/.claude/agents/qe-flaky-test-hunter.md +9 -1
- package/.claude/agents/qe-test-generator.md +7 -0
- package/.claude/agents/reasoning/agent.md +816 -0
- package/.claude/agents/reasoning/goal-planner.md +73 -0
- package/.claude/settings.json +64 -25
- package/.claude/skills/README.md +124 -0
- package/.claude/skills/accessibility-testing/SKILL.md +777 -0
- package/.claude/skills/agentdb-advanced/SKILL.md +550 -0
- package/.claude/skills/agentdb-learning/SKILL.md +545 -0
- package/.claude/skills/agentdb-memory-patterns/SKILL.md +339 -0
- package/.claude/skills/agentdb-optimization/SKILL.md +509 -0
- package/.claude/skills/agentdb-vector-search/SKILL.md +339 -0
- package/.claude/skills/agentic-quality-engineering/SKILL.md +604 -0
- package/.claude/skills/api-testing-patterns/SKILL.md +686 -0
- package/.claude/skills/bug-reporting-excellence/SKILL.md +632 -0
- package/.claude/skills/chaos-engineering-resilience/SKILL.md +109 -0
- package/.claude/skills/code-review-quality/SKILL.md +683 -0
- package/.claude/skills/compatibility-testing/SKILL.md +101 -0
- package/.claude/skills/compliance-testing/SKILL.md +162 -0
- package/.claude/skills/consultancy-practices/SKILL.md +540 -0
- package/.claude/skills/context-driven-testing/SKILL.md +466 -0
- package/.claude/skills/contract-testing/SKILL.md +193 -0
- package/.claude/skills/database-testing/SKILL.md +243 -0
- package/.claude/skills/exploratory-testing-advanced/SKILL.md +676 -0
- package/.claude/skills/flow-nexus-neural/SKILL.md +738 -0
- package/.claude/skills/flow-nexus-platform/SKILL.md +1157 -0
- package/.claude/skills/flow-nexus-swarm/SKILL.md +610 -0
- package/.claude/skills/github-code-review/SKILL.md +1140 -0
- package/.claude/skills/github-multi-repo/SKILL.md +874 -0
- package/.claude/skills/github-project-management/SKILL.md +1277 -0
- package/.claude/skills/github-release-management/SKILL.md +1081 -0
- package/.claude/skills/github-workflow-automation/SKILL.md +1065 -0
- package/.claude/skills/hive-mind-advanced/SKILL.md +712 -0
- package/.claude/skills/holistic-testing-pact/SKILL.md +225 -0
- package/.claude/skills/hooks-automation/SKILL.md +1201 -0
- package/.claude/skills/localization-testing/SKILL.md +115 -0
- package/.claude/skills/mobile-testing/SKILL.md +548 -0
- package/.claude/skills/mutation-testing/SKILL.md +129 -0
- package/.claude/skills/pair-programming/SKILL.md +1202 -0
- package/.claude/skills/performance-analysis/SKILL.md +563 -0
- package/.claude/skills/performance-testing/SKILL.md +662 -0
- package/.claude/skills/quality-metrics/SKILL.md +592 -0
- package/.claude/skills/reasoningbank-agentdb/SKILL.md +446 -0
- package/.claude/skills/reasoningbank-intelligence/SKILL.md +201 -0
- package/.claude/skills/refactoring-patterns/SKILL.md +778 -0
- package/.claude/skills/regression-testing/SKILL.md +1045 -0
- package/.claude/skills/risk-based-testing/SKILL.md +721 -0
- package/.claude/skills/security-testing/SKILL.md +651 -0
- package/.claude/skills/shift-left-testing/SKILL.md +535 -0
- package/.claude/skills/shift-right-testing/SKILL.md +591 -0
- package/.claude/skills/skill-builder/SKILL.md +910 -0
- package/.claude/skills/sparc-methodology/SKILL.md +1115 -0
- package/.claude/skills/stream-chain/SKILL.md +563 -0
- package/.claude/skills/swarm-advanced/SKILL.md +973 -0
- package/.claude/skills/swarm-orchestration/SKILL.md +179 -0
- package/.claude/skills/tdd-london-chicago/SKILL.md +567 -0
- package/.claude/skills/technical-writing/SKILL.md +235 -0
- package/.claude/skills/test-automation-strategy/SKILL.md +842 -0
- package/.claude/skills/test-data-management/SKILL.md +1067 -0
- package/.claude/skills/test-design-techniques/SKILL.md +160 -0
- package/.claude/skills/test-environment-management/SKILL.md +204 -0
- package/.claude/skills/test-reporting-analytics/SKILL.md +143 -0
- package/.claude/skills/verification-quality/SKILL.md +649 -0
- package/.claude/skills/visual-testing-advanced/SKILL.md +148 -0
- package/.claude/skills/xp-practices/SKILL.md +671 -0
- package/.claude/statusline-command.sh +176 -0
- package/CHANGELOG.md +623 -6
- package/README.md +101 -5
- package/config/improvement-loop.config.ts +323 -0
- package/config/neural-agent.config.ts +197 -0
- package/dist/adapters/MemoryStoreAdapter.d.ts +16 -16
- package/dist/adapters/MemoryStoreAdapter.d.ts.map +1 -1
- package/dist/adapters/MemoryStoreAdapter.js +16 -16
- package/dist/adapters/MemoryStoreAdapter.js.map +1 -1
- package/dist/agents/BaseAgent.d.ts +69 -0
- package/dist/agents/BaseAgent.d.ts.map +1 -1
- package/dist/agents/BaseAgent.js +387 -5
- package/dist/agents/BaseAgent.js.map +1 -1
- package/dist/agents/CoverageAnalyzerAgent.d.ts +13 -2
- package/dist/agents/CoverageAnalyzerAgent.d.ts.map +1 -1
- package/dist/agents/CoverageAnalyzerAgent.js +112 -12
- package/dist/agents/CoverageAnalyzerAgent.js.map +1 -1
- package/dist/agents/DeploymentReadinessAgent.d.ts.map +1 -1
- package/dist/agents/DeploymentReadinessAgent.js +13 -13
- package/dist/agents/DeploymentReadinessAgent.js.map +1 -1
- package/dist/agents/FlakyTestHunterAgent.d.ts +28 -0
- package/dist/agents/FlakyTestHunterAgent.d.ts.map +1 -1
- package/dist/agents/FlakyTestHunterAgent.js +160 -4
- package/dist/agents/FlakyTestHunterAgent.js.map +1 -1
- package/dist/agents/FleetCommanderAgent.d.ts.map +1 -1
- package/dist/agents/FleetCommanderAgent.js +4 -3
- package/dist/agents/FleetCommanderAgent.js.map +1 -1
- package/dist/agents/LearningAgent.d.ts +14 -5
- package/dist/agents/LearningAgent.d.ts.map +1 -1
- package/dist/agents/LearningAgent.js +36 -16
- package/dist/agents/LearningAgent.js.map +1 -1
- package/dist/agents/NeuralAgentExtension.d.ts +117 -0
- package/dist/agents/NeuralAgentExtension.d.ts.map +1 -0
- package/dist/agents/NeuralAgentExtension.js +288 -0
- package/dist/agents/NeuralAgentExtension.js.map +1 -0
- package/dist/agents/PerformanceTesterAgent.d.ts.map +1 -1
- package/dist/agents/PerformanceTesterAgent.js +11 -9
- package/dist/agents/PerformanceTesterAgent.js.map +1 -1
- package/dist/agents/ProductionIntelligenceAgent.d.ts.map +1 -1
- package/dist/agents/ProductionIntelligenceAgent.js +14 -13
- package/dist/agents/ProductionIntelligenceAgent.js.map +1 -1
- package/dist/agents/QualityAnalyzerAgent.d.ts.map +1 -1
- package/dist/agents/QualityAnalyzerAgent.js +39 -38
- package/dist/agents/QualityAnalyzerAgent.js.map +1 -1
- package/dist/agents/QualityGateAgent.d.ts.map +1 -1
- package/dist/agents/QualityGateAgent.js +7 -6
- package/dist/agents/QualityGateAgent.js.map +1 -1
- package/dist/agents/RegressionRiskAnalyzerAgent.d.ts.map +1 -1
- package/dist/agents/RegressionRiskAnalyzerAgent.js +22 -21
- package/dist/agents/RegressionRiskAnalyzerAgent.js.map +1 -1
- package/dist/agents/RequirementsValidatorAgent.d.ts.map +1 -1
- package/dist/agents/RequirementsValidatorAgent.js +1 -1
- package/dist/agents/RequirementsValidatorAgent.js.map +1 -1
- package/dist/agents/SecurityScannerAgent.d.ts.map +1 -1
- package/dist/agents/SecurityScannerAgent.js +8 -7
- package/dist/agents/SecurityScannerAgent.js.map +1 -1
- package/dist/agents/TestDataArchitectAgent.d.ts.map +1 -1
- package/dist/agents/TestDataArchitectAgent.js +12 -11
- package/dist/agents/TestDataArchitectAgent.js.map +1 -1
- package/dist/agents/TestExecutorAgent.d.ts.map +1 -1
- package/dist/agents/TestExecutorAgent.js +18 -19
- package/dist/agents/TestExecutorAgent.js.map +1 -1
- package/dist/agents/TestGeneratorAgent.d.ts +15 -4
- package/dist/agents/TestGeneratorAgent.d.ts.map +1 -1
- package/dist/agents/TestGeneratorAgent.js +172 -49
- package/dist/agents/TestGeneratorAgent.js.map +1 -1
- package/dist/agents/index.d.ts.map +1 -1
- package/dist/agents/index.js +2 -1
- package/dist/agents/index.js.map +1 -1
- package/dist/agents/mixins/NeuralCapableMixin.d.ts +130 -0
- package/dist/agents/mixins/NeuralCapableMixin.d.ts.map +1 -0
- package/dist/agents/mixins/NeuralCapableMixin.js +358 -0
- package/dist/agents/mixins/NeuralCapableMixin.js.map +1 -0
- package/dist/agents/mixins/QUICCapableMixin.d.ts +34 -0
- package/dist/agents/mixins/QUICCapableMixin.d.ts.map +1 -0
- package/dist/agents/mixins/QUICCapableMixin.js +346 -0
- package/dist/agents/mixins/QUICCapableMixin.js.map +1 -0
- package/dist/cli/commands/agent/benchmark.d.ts.map +1 -1
- package/dist/cli/commands/agent/benchmark.js +2 -1
- package/dist/cli/commands/agent/benchmark.js.map +1 -1
- package/dist/cli/commands/agent/index.d.ts +5 -0
- package/dist/cli/commands/agent/index.d.ts.map +1 -1
- package/dist/cli/commands/agent/index.js +11 -6
- package/dist/cli/commands/agent/index.js.map +1 -1
- package/dist/cli/commands/agent/kill.d.ts +13 -0
- package/dist/cli/commands/agent/kill.d.ts.map +1 -0
- package/dist/cli/commands/agent/kill.js +65 -0
- package/dist/cli/commands/agent/kill.js.map +1 -0
- package/dist/cli/commands/agent/list.d.ts +19 -0
- package/dist/cli/commands/agent/list.d.ts.map +1 -0
- package/dist/cli/commands/agent/list.js +92 -0
- package/dist/cli/commands/agent/list.js.map +1 -0
- package/dist/cli/commands/agent/logs.d.ts +14 -0
- package/dist/cli/commands/agent/logs.d.ts.map +1 -0
- package/dist/cli/commands/agent/logs.js +77 -0
- package/dist/cli/commands/agent/logs.js.map +1 -0
- package/dist/cli/commands/agent/metrics.d.ts +21 -0
- package/dist/cli/commands/agent/metrics.d.ts.map +1 -0
- package/dist/cli/commands/agent/metrics.js +87 -0
- package/dist/cli/commands/agent/metrics.js.map +1 -0
- package/dist/cli/commands/agent/spawn.d.ts +28 -0
- package/dist/cli/commands/agent/spawn.d.ts.map +1 -0
- package/dist/cli/commands/agent/spawn.js +84 -0
- package/dist/cli/commands/agent/spawn.js.map +1 -0
- package/dist/cli/commands/analyze.d.ts.map +1 -1
- package/dist/cli/commands/analyze.js +2 -1
- package/dist/cli/commands/analyze.js.map +1 -1
- package/dist/cli/commands/config/list.d.ts.map +1 -1
- package/dist/cli/commands/config/list.js +2 -1
- package/dist/cli/commands/config/list.js.map +1 -1
- package/dist/cli/commands/config/set.d.ts +7 -0
- package/dist/cli/commands/config/set.d.ts.map +1 -1
- package/dist/cli/commands/config/set.js +35 -4
- package/dist/cli/commands/config/set.js.map +1 -1
- package/dist/cli/commands/fleet/logs.d.ts.map +1 -1
- package/dist/cli/commands/fleet/logs.js +2 -1
- package/dist/cli/commands/fleet/logs.js.map +1 -1
- package/dist/cli/commands/fleet/metrics.d.ts.map +1 -1
- package/dist/cli/commands/fleet/metrics.js +2 -1
- package/dist/cli/commands/fleet/metrics.js.map +1 -1
- package/dist/cli/commands/fleet/monitor.d.ts.map +1 -1
- package/dist/cli/commands/fleet/monitor.js +7 -5
- package/dist/cli/commands/fleet/monitor.js.map +1 -1
- package/dist/cli/commands/fleet.d.ts.map +1 -1
- package/dist/cli/commands/fleet.js +2 -1
- package/dist/cli/commands/fleet.js.map +1 -1
- package/dist/cli/commands/generate.d.ts.map +1 -1
- package/dist/cli/commands/generate.js +2 -1
- package/dist/cli/commands/generate.js.map +1 -1
- package/dist/cli/commands/improve/index.d.ts.map +1 -1
- package/dist/cli/commands/improve/index.js +12 -11
- package/dist/cli/commands/improve/index.js.map +1 -1
- package/dist/cli/commands/init.d.ts +24 -0
- package/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/init.js +503 -11
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/commands/learn/index.d.ts.map +1 -1
- package/dist/cli/commands/learn/index.js +13 -12
- package/dist/cli/commands/learn/index.js.map +1 -1
- package/dist/cli/commands/monitor/alerts.d.ts.map +1 -1
- package/dist/cli/commands/monitor/alerts.js +2 -1
- package/dist/cli/commands/monitor/alerts.js.map +1 -1
- package/dist/cli/commands/patterns/index.d.ts.map +1 -1
- package/dist/cli/commands/patterns/index.js +20 -19
- package/dist/cli/commands/patterns/index.js.map +1 -1
- package/dist/cli/commands/quality/decision.d.ts.map +1 -1
- package/dist/cli/commands/quality/decision.js +9 -7
- package/dist/cli/commands/quality/decision.js.map +1 -1
- package/dist/cli/commands/quality/gate.d.ts.map +1 -1
- package/dist/cli/commands/quality/gate.js +10 -8
- package/dist/cli/commands/quality/gate.js.map +1 -1
- package/dist/cli/commands/quality/policy.d.ts.map +1 -1
- package/dist/cli/commands/quality/policy.js +10 -8
- package/dist/cli/commands/quality/policy.js.map +1 -1
- package/dist/cli/commands/quality/risk.d.ts.map +1 -1
- package/dist/cli/commands/quality/risk.js +5 -3
- package/dist/cli/commands/quality/risk.js.map +1 -1
- package/dist/cli/commands/quality/validate.d.ts.map +1 -1
- package/dist/cli/commands/quality/validate.js +10 -8
- package/dist/cli/commands/quality/validate.js.map +1 -1
- package/dist/cli/commands/quantization.d.ts +6 -0
- package/dist/cli/commands/quantization.d.ts.map +1 -0
- package/dist/cli/commands/quantization.js +188 -0
- package/dist/cli/commands/quantization.js.map +1 -0
- package/dist/cli/commands/routing/index.d.ts +0 -6
- package/dist/cli/commands/routing/index.d.ts.map +1 -1
- package/dist/cli/commands/routing/index.js +17 -16
- package/dist/cli/commands/routing/index.js.map +1 -1
- package/dist/cli/commands/run.d.ts.map +1 -1
- package/dist/cli/commands/run.js +2 -1
- package/dist/cli/commands/run.js.map +1 -1
- package/dist/cli/commands/skills/index.d.ts +51 -0
- package/dist/cli/commands/skills/index.d.ts.map +1 -0
- package/dist/cli/commands/skills/index.js +365 -0
- package/dist/cli/commands/skills/index.js.map +1 -0
- package/dist/cli/commands/test/debug.d.ts.map +1 -1
- package/dist/cli/commands/test/debug.js +2 -1
- package/dist/cli/commands/test/debug.js.map +1 -1
- package/dist/cli/commands/test/mutate.d.ts.map +1 -1
- package/dist/cli/commands/test/mutate.js +2 -1
- package/dist/cli/commands/test/mutate.js.map +1 -1
- package/dist/cli/commands/test/parallel.d.ts.map +1 -1
- package/dist/cli/commands/test/parallel.js +6 -4
- package/dist/cli/commands/test/parallel.js.map +1 -1
- package/dist/cli/commands/test/profile.d.ts.map +1 -1
- package/dist/cli/commands/test/profile.js +3 -2
- package/dist/cli/commands/test/profile.js.map +1 -1
- package/dist/cli/commands/test/queue.d.ts.map +1 -1
- package/dist/cli/commands/test/queue.js +2 -1
- package/dist/cli/commands/test/queue.js.map +1 -1
- package/dist/cli/commands/test/retry.d.ts.map +1 -1
- package/dist/cli/commands/test/retry.js +6 -4
- package/dist/cli/commands/test/retry.js.map +1 -1
- package/dist/cli/commands/test/trace.d.ts.map +1 -1
- package/dist/cli/commands/test/trace.js +2 -1
- package/dist/cli/commands/test/trace.js.map +1 -1
- package/dist/cli/commands/test/watch.d.ts.map +1 -1
- package/dist/cli/commands/test/watch.js +3 -2
- package/dist/cli/commands/test/watch.js.map +1 -1
- package/dist/cli/commands/workflow/cancel.d.ts.map +1 -1
- package/dist/cli/commands/workflow/cancel.js +2 -1
- package/dist/cli/commands/workflow/cancel.js.map +1 -1
- package/dist/cli/index-working.js +9 -8
- package/dist/cli/index-working.js.map +1 -1
- package/dist/cli/index.js +97 -1
- package/dist/cli/index.js.map +1 -1
- package/dist/core/EventBus.d.ts +38 -0
- package/dist/core/EventBus.d.ts.map +1 -1
- package/dist/core/EventBus.js +176 -31
- package/dist/core/EventBus.js.map +1 -1
- package/dist/core/FleetManager.d.ts +35 -1
- package/dist/core/FleetManager.d.ts.map +1 -1
- package/dist/core/FleetManager.js +121 -45
- package/dist/core/FleetManager.js.map +1 -1
- package/dist/core/MemoryManager.d.ts +19 -1
- package/dist/core/MemoryManager.d.ts.map +1 -1
- package/dist/core/MemoryManager.js +25 -1
- package/dist/core/MemoryManager.js.map +1 -1
- package/dist/core/coordination/OODACoordination.d.ts.map +1 -1
- package/dist/core/coordination/OODACoordination.js +2 -1
- package/dist/core/coordination/OODACoordination.js.map +1 -1
- package/dist/core/embeddings/EmbeddingCache.d.ts +134 -0
- package/dist/core/embeddings/EmbeddingCache.d.ts.map +1 -0
- package/dist/core/embeddings/EmbeddingCache.js +239 -0
- package/dist/core/embeddings/EmbeddingCache.js.map +1 -0
- package/dist/core/embeddings/EmbeddingGenerator.d.ts +224 -0
- package/dist/core/embeddings/EmbeddingGenerator.d.ts.map +1 -0
- package/dist/core/embeddings/EmbeddingGenerator.js +459 -0
- package/dist/core/embeddings/EmbeddingGenerator.js.map +1 -0
- package/dist/core/embeddings/index.d.ts +15 -0
- package/dist/core/embeddings/index.d.ts.map +1 -0
- package/dist/core/embeddings/index.js +22 -0
- package/dist/core/embeddings/index.js.map +1 -0
- package/dist/core/memory/AgentDBIntegration.d.ts +35 -0
- package/dist/core/memory/AgentDBIntegration.d.ts.map +1 -0
- package/dist/core/memory/AgentDBIntegration.js +75 -0
- package/dist/core/memory/AgentDBIntegration.js.map +1 -0
- package/dist/core/memory/AgentDBManager.d.ts +200 -0
- package/dist/core/memory/AgentDBManager.d.ts.map +1 -0
- package/dist/core/memory/AgentDBManager.js +246 -0
- package/dist/core/memory/AgentDBManager.js.map +1 -0
- package/dist/core/memory/AgentDBService.d.ts +160 -0
- package/dist/core/memory/AgentDBService.d.ts.map +1 -0
- package/dist/core/memory/AgentDBService.js +450 -0
- package/dist/core/memory/AgentDBService.js.map +1 -0
- package/dist/core/memory/RealAgentDBAdapter.d.ts +51 -0
- package/dist/core/memory/RealAgentDBAdapter.d.ts.map +1 -0
- package/dist/core/memory/RealAgentDBAdapter.js +231 -0
- package/dist/core/memory/RealAgentDBAdapter.js.map +1 -0
- package/dist/core/memory/ReasoningBankAdapter.d.ts +58 -0
- package/dist/core/memory/ReasoningBankAdapter.d.ts.map +1 -0
- package/dist/core/memory/ReasoningBankAdapter.js +77 -0
- package/dist/core/memory/ReasoningBankAdapter.js.map +1 -0
- package/dist/core/memory/SwarmMemoryManager.d.ts +75 -3
- package/dist/core/memory/SwarmMemoryManager.d.ts.map +1 -1
- package/dist/core/memory/SwarmMemoryManager.js +240 -55
- package/dist/core/memory/SwarmMemoryManager.js.map +1 -1
- package/dist/core/memory/index.d.ts +4 -0
- package/dist/core/memory/index.d.ts.map +1 -1
- package/dist/core/memory/index.js +9 -1
- package/dist/core/memory/index.js.map +1 -1
- package/dist/core/neural/NeuralTrainer.d.ts +137 -0
- package/dist/core/neural/NeuralTrainer.d.ts.map +1 -0
- package/dist/core/neural/NeuralTrainer.js +544 -0
- package/dist/core/neural/NeuralTrainer.js.map +1 -0
- package/dist/core/neural/index.d.ts +8 -0
- package/dist/core/neural/index.d.ts.map +1 -0
- package/dist/core/neural/index.js +24 -0
- package/dist/core/neural/index.js.map +1 -0
- package/dist/core/neural/types.d.ts +216 -0
- package/dist/core/neural/types.d.ts.map +1 -0
- package/dist/core/neural/types.js +8 -0
- package/dist/core/neural/types.js.map +1 -0
- package/dist/core/quantization/QuantizationManager.d.ts +83 -0
- package/dist/core/quantization/QuantizationManager.d.ts.map +1 -0
- package/dist/core/quantization/QuantizationManager.js +264 -0
- package/dist/core/quantization/QuantizationManager.js.map +1 -0
- package/dist/core/quantization/index.d.ts +5 -0
- package/dist/core/quantization/index.d.ts.map +1 -0
- package/dist/core/quantization/index.js +9 -0
- package/dist/core/quantization/index.js.map +1 -0
- package/dist/core/security/CertificateValidator.d.ts +130 -0
- package/dist/core/security/CertificateValidator.d.ts.map +1 -0
- package/dist/core/security/CertificateValidator.js +376 -0
- package/dist/core/security/CertificateValidator.js.map +1 -0
- package/dist/core/transport/QUICTransport.d.ts +62 -0
- package/dist/core/transport/QUICTransport.d.ts.map +1 -0
- package/dist/core/transport/QUICTransport.js +381 -0
- package/dist/core/transport/QUICTransport.js.map +1 -0
- package/dist/core/transport/SecureQUICTransport.d.ts +71 -0
- package/dist/core/transport/SecureQUICTransport.d.ts.map +1 -0
- package/dist/core/transport/SecureQUICTransport.js +253 -0
- package/dist/core/transport/SecureQUICTransport.js.map +1 -0
- package/dist/learning/AdvancedFeatureExtractor.d.ts +123 -0
- package/dist/learning/AdvancedFeatureExtractor.d.ts.map +1 -0
- package/dist/learning/AdvancedFeatureExtractor.js +423 -0
- package/dist/learning/AdvancedFeatureExtractor.js.map +1 -0
- package/dist/learning/FlakyPredictionModel.d.ts +11 -1
- package/dist/learning/FlakyPredictionModel.d.ts.map +1 -1
- package/dist/learning/FlakyPredictionModel.js +82 -35
- package/dist/learning/FlakyPredictionModel.js.map +1 -1
- package/dist/learning/FlakyTestDetector.d.ts +9 -0
- package/dist/learning/FlakyTestDetector.d.ts.map +1 -1
- package/dist/learning/FlakyTestDetector.js +28 -6
- package/dist/learning/FlakyTestDetector.js.map +1 -1
- package/dist/learning/ImprovementLoop.d.ts +16 -2
- package/dist/learning/ImprovementLoop.d.ts.map +1 -1
- package/dist/learning/ImprovementLoop.js +67 -8
- package/dist/learning/ImprovementLoop.js.map +1 -1
- package/dist/learning/ImprovementWorker.d.ts +83 -0
- package/dist/learning/ImprovementWorker.d.ts.map +1 -0
- package/dist/learning/ImprovementWorker.js +164 -0
- package/dist/learning/ImprovementWorker.js.map +1 -0
- package/dist/learning/NeuralPatternMatcher.d.ts +184 -0
- package/dist/learning/NeuralPatternMatcher.d.ts.map +1 -0
- package/dist/learning/NeuralPatternMatcher.js +702 -0
- package/dist/learning/NeuralPatternMatcher.js.map +1 -0
- package/dist/learning/NeuralTrainer.d.ts +209 -0
- package/dist/learning/NeuralTrainer.d.ts.map +1 -0
- package/dist/learning/NeuralTrainer.js +478 -0
- package/dist/learning/NeuralTrainer.js.map +1 -0
- package/dist/learning/index.d.ts +13 -7
- package/dist/learning/index.d.ts.map +1 -1
- package/dist/learning/index.js +27 -11
- package/dist/learning/index.js.map +1 -1
- package/dist/learning/types.d.ts +1 -0
- package/dist/learning/types.d.ts.map +1 -1
- package/dist/learning/types.js +16 -0
- package/dist/learning/types.js.map +1 -1
- package/dist/mcp/MCPToolRegistry.d.ts +34 -0
- package/dist/mcp/MCPToolRegistry.d.ts.map +1 -0
- package/dist/mcp/MCPToolRegistry.js +48 -0
- package/dist/mcp/MCPToolRegistry.js.map +1 -0
- package/dist/mcp/handlers/advanced/mutation-test-execute.d.ts +3 -3
- package/dist/mcp/handlers/advanced/mutation-test-execute.d.ts.map +1 -1
- package/dist/mcp/handlers/advanced/mutation-test-execute.js +5 -4
- package/dist/mcp/handlers/advanced/mutation-test-execute.js.map +1 -1
- package/dist/mcp/handlers/agent-spawn.d.ts.map +1 -1
- package/dist/mcp/handlers/agent-spawn.js +2 -1
- package/dist/mcp/handlers/agent-spawn.js.map +1 -1
- package/dist/mcp/handlers/analysis/coverageAnalyzeSublinear.d.ts.map +1 -1
- package/dist/mcp/handlers/analysis/coverageAnalyzeSublinear.js +9 -8
- package/dist/mcp/handlers/analysis/coverageAnalyzeSublinear.js.map +1 -1
- package/dist/mcp/handlers/analysis/coverageGapsDetect.d.ts.map +1 -1
- package/dist/mcp/handlers/analysis/coverageGapsDetect.js +6 -5
- package/dist/mcp/handlers/analysis/coverageGapsDetect.js.map +1 -1
- package/dist/mcp/handlers/analysis/performance-monitor-realtime-handler.d.ts.map +1 -1
- package/dist/mcp/handlers/analysis/performance-monitor-realtime-handler.js +5 -4
- package/dist/mcp/handlers/analysis/performance-monitor-realtime-handler.js.map +1 -1
- package/dist/mcp/handlers/analysis/performanceBenchmarkRun.d.ts.map +1 -1
- package/dist/mcp/handlers/analysis/performanceBenchmarkRun.js +8 -7
- package/dist/mcp/handlers/analysis/performanceBenchmarkRun.js.map +1 -1
- package/dist/mcp/handlers/analysis/performanceMonitorRealtime.d.ts.map +1 -1
- package/dist/mcp/handlers/analysis/performanceMonitorRealtime.js +7 -6
- package/dist/mcp/handlers/analysis/performanceMonitorRealtime.js.map +1 -1
- package/dist/mcp/handlers/analysis/securityScanComprehensive.d.ts.map +1 -1
- package/dist/mcp/handlers/analysis/securityScanComprehensive.js +18 -21
- package/dist/mcp/handlers/analysis/securityScanComprehensive.js.map +1 -1
- package/dist/mcp/handlers/base-handler.d.ts.map +1 -1
- package/dist/mcp/handlers/base-handler.js +2 -9
- package/dist/mcp/handlers/base-handler.js.map +1 -1
- package/dist/mcp/handlers/chaos/chaos-inject-failure.d.ts.map +1 -1
- package/dist/mcp/handlers/chaos/chaos-inject-failure.js +4 -3
- package/dist/mcp/handlers/chaos/chaos-inject-failure.js.map +1 -1
- package/dist/mcp/handlers/chaos/chaos-inject-latency.d.ts.map +1 -1
- package/dist/mcp/handlers/chaos/chaos-inject-latency.js +6 -5
- package/dist/mcp/handlers/chaos/chaos-inject-latency.js.map +1 -1
- package/dist/mcp/handlers/coordination/event-emit.d.ts.map +1 -1
- package/dist/mcp/handlers/coordination/event-emit.js +2 -1
- package/dist/mcp/handlers/coordination/event-emit.js.map +1 -1
- package/dist/mcp/handlers/coordination/event-subscribe.d.ts.map +1 -1
- package/dist/mcp/handlers/coordination/event-subscribe.js +2 -1
- package/dist/mcp/handlers/coordination/event-subscribe.js.map +1 -1
- package/dist/mcp/handlers/coordination/workflow-checkpoint.d.ts.map +1 -1
- package/dist/mcp/handlers/coordination/workflow-checkpoint.js +2 -1
- package/dist/mcp/handlers/coordination/workflow-checkpoint.js.map +1 -1
- package/dist/mcp/handlers/coordination/workflow-create.d.ts.map +1 -1
- package/dist/mcp/handlers/coordination/workflow-create.js +2 -1
- package/dist/mcp/handlers/coordination/workflow-create.js.map +1 -1
- package/dist/mcp/handlers/coordination/workflow-execute.d.ts.map +1 -1
- package/dist/mcp/handlers/coordination/workflow-execute.js +2 -1
- package/dist/mcp/handlers/coordination/workflow-execute.js.map +1 -1
- package/dist/mcp/handlers/coordination/workflow-resume.d.ts.map +1 -1
- package/dist/mcp/handlers/coordination/workflow-resume.js +2 -1
- package/dist/mcp/handlers/coordination/workflow-resume.js.map +1 -1
- package/dist/mcp/handlers/fleet-init.d.ts.map +1 -1
- package/dist/mcp/handlers/fleet-init.js +2 -1
- package/dist/mcp/handlers/fleet-init.js.map +1 -1
- package/dist/mcp/handlers/fleet-status.d.ts.map +1 -1
- package/dist/mcp/handlers/fleet-status.js +31 -30
- package/dist/mcp/handlers/fleet-status.js.map +1 -1
- package/dist/mcp/handlers/integration/dependency-check.d.ts.map +1 -1
- package/dist/mcp/handlers/integration/dependency-check.js +3 -2
- package/dist/mcp/handlers/integration/dependency-check.js.map +1 -1
- package/dist/mcp/handlers/integration/integration-test-orchestrate.d.ts.map +1 -1
- package/dist/mcp/handlers/integration/integration-test-orchestrate.js +2 -1
- package/dist/mcp/handlers/integration/integration-test-orchestrate.js.map +1 -1
- package/dist/mcp/handlers/optimize-tests.d.ts.map +1 -1
- package/dist/mcp/handlers/optimize-tests.js +33 -32
- package/dist/mcp/handlers/optimize-tests.js.map +1 -1
- package/dist/mcp/handlers/predict-defects.d.ts.map +1 -1
- package/dist/mcp/handlers/predict-defects.js +46 -45
- package/dist/mcp/handlers/predict-defects.js.map +1 -1
- package/dist/mcp/handlers/prediction/deployment-readiness-check.d.ts.map +1 -1
- package/dist/mcp/handlers/prediction/deployment-readiness-check.js +24 -23
- package/dist/mcp/handlers/prediction/deployment-readiness-check.js.map +1 -1
- package/dist/mcp/handlers/prediction/predict-defects-ai.d.ts.map +1 -1
- package/dist/mcp/handlers/prediction/predict-defects-ai.js +10 -9
- package/dist/mcp/handlers/prediction/predict-defects-ai.js.map +1 -1
- package/dist/mcp/handlers/prediction/regression-risk-analyze.d.ts.map +1 -1
- package/dist/mcp/handlers/prediction/regression-risk-analyze.js +10 -9
- package/dist/mcp/handlers/prediction/regression-risk-analyze.js.map +1 -1
- package/dist/mcp/handlers/prediction/visual-test-regression.d.ts.map +1 -1
- package/dist/mcp/handlers/prediction/visual-test-regression.js +7 -6
- package/dist/mcp/handlers/prediction/visual-test-regression.js.map +1 -1
- package/dist/mcp/handlers/quality-analyze.d.ts.map +1 -1
- package/dist/mcp/handlers/quality-analyze.js +53 -52
- package/dist/mcp/handlers/quality-analyze.js.map +1 -1
- package/dist/mcp/handlers/task-orchestrate.d.ts.map +1 -1
- package/dist/mcp/handlers/task-orchestrate.js +19 -18
- package/dist/mcp/handlers/task-orchestrate.js.map +1 -1
- package/dist/mcp/handlers/test/test-execute-parallel.d.ts.map +1 -1
- package/dist/mcp/handlers/test/test-execute-parallel.js +7 -6
- package/dist/mcp/handlers/test/test-execute-parallel.js.map +1 -1
- package/dist/mcp/handlers/test/test-generate-enhanced.d.ts.map +1 -1
- package/dist/mcp/handlers/test/test-generate-enhanced.js +2 -1
- package/dist/mcp/handlers/test/test-generate-enhanced.js.map +1 -1
- package/dist/mcp/handlers/test/test-optimize-sublinear.d.ts.map +1 -1
- package/dist/mcp/handlers/test/test-optimize-sublinear.js +3 -2
- package/dist/mcp/handlers/test/test-optimize-sublinear.js.map +1 -1
- package/dist/mcp/handlers/test-execute.d.ts.map +1 -1
- package/dist/mcp/handlers/test-execute.js +11 -10
- package/dist/mcp/handlers/test-execute.js.map +1 -1
- package/dist/mcp/handlers/test-generate.d.ts.map +1 -1
- package/dist/mcp/handlers/test-generate.js +4 -3
- package/dist/mcp/handlers/test-generate.js.map +1 -1
- package/dist/mcp/server.d.ts +4 -4
- package/dist/mcp/services/AgentRegistry.d.ts.map +1 -1
- package/dist/mcp/services/AgentRegistry.js +9 -2
- package/dist/mcp/services/AgentRegistry.js.map +1 -1
- package/dist/mcp/streaming/CoverageAnalyzeStreamHandler.d.ts.map +1 -1
- package/dist/mcp/streaming/CoverageAnalyzeStreamHandler.js +10 -9
- package/dist/mcp/streaming/CoverageAnalyzeStreamHandler.js.map +1 -1
- package/dist/mcp/streaming/StreamingMCPTool.d.ts.map +1 -1
- package/dist/mcp/streaming/StreamingMCPTool.js +2 -1
- package/dist/mcp/streaming/StreamingMCPTool.js.map +1 -1
- package/dist/mcp/streaming/TestExecuteStreamHandler.d.ts.map +1 -1
- package/dist/mcp/streaming/TestExecuteStreamHandler.js +6 -5
- package/dist/mcp/streaming/TestExecuteStreamHandler.js.map +1 -1
- package/dist/reasoning/TestTemplateCreator.d.ts +10 -2
- package/dist/reasoning/TestTemplateCreator.d.ts.map +1 -1
- package/dist/reasoning/TestTemplateCreator.js +81 -21
- package/dist/reasoning/TestTemplateCreator.js.map +1 -1
- package/dist/transport/QUICTransport.d.ts +340 -0
- package/dist/transport/QUICTransport.d.ts.map +1 -0
- package/dist/transport/QUICTransport.js +814 -0
- package/dist/transport/QUICTransport.js.map +1 -0
- package/dist/transport/UDPTransport.d.ts +348 -0
- package/dist/transport/UDPTransport.d.ts.map +1 -0
- package/dist/transport/UDPTransport.js +820 -0
- package/dist/transport/UDPTransport.js.map +1 -0
- package/dist/types/errors.d.ts +1 -1
- package/dist/types/index.d.ts +37 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +2 -0
- package/dist/types/index.js.map +1 -1
- package/dist/types/pattern.types.d.ts +39 -3
- package/dist/types/pattern.types.d.ts.map +1 -1
- package/dist/types/quic.d.ts +339 -0
- package/dist/types/quic.d.ts.map +1 -0
- package/dist/types/quic.js +48 -0
- package/dist/types/quic.js.map +1 -0
- package/dist/utils/Config.js +3 -3
- package/dist/utils/Config.js.map +1 -1
- package/dist/utils/Database.d.ts +14 -0
- package/dist/utils/Database.d.ts.map +1 -1
- package/dist/utils/Database.js +51 -4
- package/dist/utils/Database.js.map +1 -1
- package/dist/utils/Logger.d.ts.map +1 -1
- package/dist/utils/Logger.js +111 -26
- package/dist/utils/Logger.js.map +1 -1
- package/dist/utils/ProcessExit.d.ts +23 -0
- package/dist/utils/ProcessExit.d.ts.map +1 -0
- package/dist/utils/ProcessExit.js +40 -0
- package/dist/utils/ProcessExit.js.map +1 -0
- package/dist/utils/SecureRandom.d.ts +171 -0
- package/dist/utils/SecureRandom.d.ts.map +1 -0
- package/dist/utils/SecureRandom.js +229 -0
- package/dist/utils/SecureRandom.js.map +1 -0
- package/dist/utils/SecureUrlValidator.d.ts +167 -0
- package/dist/utils/SecureUrlValidator.d.ts.map +1 -0
- package/dist/utils/SecureUrlValidator.js +306 -0
- package/dist/utils/SecureUrlValidator.js.map +1 -0
- package/dist/utils/SecureValidation.d.ts +131 -0
- package/dist/utils/SecureValidation.d.ts.map +1 -0
- package/dist/utils/SecureValidation.js +265 -0
- package/dist/utils/SecureValidation.js.map +1 -0
- package/dist/utils/validation.d.ts.map +1 -1
- package/dist/utils/validation.js +5 -4
- package/dist/utils/validation.js.map +1 -1
- package/package.json +31 -8
|
@@ -0,0 +1,563 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: stream-chain
|
|
3
|
+
description: Stream-JSON chaining for multi-agent pipelines, data transformation, and sequential workflows
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
category: workflow
|
|
6
|
+
tags: [streaming, pipeline, chaining, multi-agent, workflow]
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Stream-Chain Skill
|
|
10
|
+
|
|
11
|
+
Execute sophisticated multi-step workflows where each agent's output flows into the next, enabling complex data transformations and sequential processing pipelines.
|
|
12
|
+
|
|
13
|
+
## Overview
|
|
14
|
+
|
|
15
|
+
Stream-Chain provides two powerful modes for orchestrating multi-agent workflows:
|
|
16
|
+
|
|
17
|
+
1. **Custom Chains** (`run`): Execute custom prompt sequences with full control
|
|
18
|
+
2. **Predefined Pipelines** (`pipeline`): Use battle-tested workflows for common tasks
|
|
19
|
+
|
|
20
|
+
Each step in a chain receives the complete output from the previous step, enabling sophisticated multi-agent coordination through streaming data flow.
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## Quick Start
|
|
25
|
+
|
|
26
|
+
### Run a Custom Chain
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
claude-flow stream-chain run \
|
|
30
|
+
"Analyze codebase structure" \
|
|
31
|
+
"Identify improvement areas" \
|
|
32
|
+
"Generate action plan"
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Execute a Pipeline
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
claude-flow stream-chain pipeline analysis
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## Custom Chains (`run`)
|
|
44
|
+
|
|
45
|
+
Execute custom stream chains with your own prompts for maximum flexibility.
|
|
46
|
+
|
|
47
|
+
### Syntax
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
claude-flow stream-chain run <prompt1> <prompt2> [...] [options]
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
**Requirements:**
|
|
54
|
+
- Minimum 2 prompts required
|
|
55
|
+
- Each prompt becomes a step in the chain
|
|
56
|
+
- Output flows sequentially through all steps
|
|
57
|
+
|
|
58
|
+
### Options
|
|
59
|
+
|
|
60
|
+
| Option | Description | Default |
|
|
61
|
+
|--------|-------------|---------|
|
|
62
|
+
| `--verbose` | Show detailed execution information | `false` |
|
|
63
|
+
| `--timeout <seconds>` | Timeout per step | `30` |
|
|
64
|
+
| `--debug` | Enable debug mode with full logging | `false` |
|
|
65
|
+
|
|
66
|
+
### How Context Flows
|
|
67
|
+
|
|
68
|
+
Each step receives the previous output as context:
|
|
69
|
+
|
|
70
|
+
```
|
|
71
|
+
Step 1: "Write a sorting function"
|
|
72
|
+
Output: [function implementation]
|
|
73
|
+
|
|
74
|
+
Step 2 receives:
|
|
75
|
+
"Previous step output:
|
|
76
|
+
[function implementation]
|
|
77
|
+
|
|
78
|
+
Next task: Add comprehensive tests"
|
|
79
|
+
|
|
80
|
+
Step 3 receives:
|
|
81
|
+
"Previous steps output:
|
|
82
|
+
[function + tests]
|
|
83
|
+
|
|
84
|
+
Next task: Optimize performance"
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### Examples
|
|
88
|
+
|
|
89
|
+
#### Basic Development Chain
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
claude-flow stream-chain run \
|
|
93
|
+
"Write a user authentication function" \
|
|
94
|
+
"Add input validation and error handling" \
|
|
95
|
+
"Create unit tests with edge cases"
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
#### Security Audit Workflow
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
claude-flow stream-chain run \
|
|
102
|
+
"Analyze authentication system for vulnerabilities" \
|
|
103
|
+
"Identify and categorize security issues by severity" \
|
|
104
|
+
"Propose fixes with implementation priority" \
|
|
105
|
+
"Generate security test cases" \
|
|
106
|
+
--timeout 45 \
|
|
107
|
+
--verbose
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
#### Code Refactoring Chain
|
|
111
|
+
|
|
112
|
+
```bash
|
|
113
|
+
claude-flow stream-chain run \
|
|
114
|
+
"Identify code smells in src/ directory" \
|
|
115
|
+
"Create refactoring plan with specific changes" \
|
|
116
|
+
"Apply refactoring to top 3 priority items" \
|
|
117
|
+
"Verify refactored code maintains behavior" \
|
|
118
|
+
--debug
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
#### Data Processing Pipeline
|
|
122
|
+
|
|
123
|
+
```bash
|
|
124
|
+
claude-flow stream-chain run \
|
|
125
|
+
"Extract data from API responses" \
|
|
126
|
+
"Transform data into normalized format" \
|
|
127
|
+
"Validate data against schema" \
|
|
128
|
+
"Generate data quality report"
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
---
|
|
132
|
+
|
|
133
|
+
## Predefined Pipelines (`pipeline`)
|
|
134
|
+
|
|
135
|
+
Execute battle-tested workflows optimized for common development tasks.
|
|
136
|
+
|
|
137
|
+
### Syntax
|
|
138
|
+
|
|
139
|
+
```bash
|
|
140
|
+
claude-flow stream-chain pipeline <type> [options]
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
### Available Pipelines
|
|
144
|
+
|
|
145
|
+
#### 1. Analysis Pipeline
|
|
146
|
+
|
|
147
|
+
Comprehensive codebase analysis and improvement identification.
|
|
148
|
+
|
|
149
|
+
```bash
|
|
150
|
+
claude-flow stream-chain pipeline analysis
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
**Workflow Steps:**
|
|
154
|
+
1. **Structure Analysis**: Map directory structure and identify components
|
|
155
|
+
2. **Issue Detection**: Find potential improvements and problems
|
|
156
|
+
3. **Recommendations**: Generate actionable improvement report
|
|
157
|
+
|
|
158
|
+
**Use Cases:**
|
|
159
|
+
- New codebase onboarding
|
|
160
|
+
- Technical debt assessment
|
|
161
|
+
- Architecture review
|
|
162
|
+
- Code quality audits
|
|
163
|
+
|
|
164
|
+
#### 2. Refactor Pipeline
|
|
165
|
+
|
|
166
|
+
Systematic code refactoring with prioritization.
|
|
167
|
+
|
|
168
|
+
```bash
|
|
169
|
+
claude-flow stream-chain pipeline refactor
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
**Workflow Steps:**
|
|
173
|
+
1. **Candidate Identification**: Find code needing refactoring
|
|
174
|
+
2. **Prioritization**: Create ranked refactoring plan
|
|
175
|
+
3. **Implementation**: Provide refactored code for top priorities
|
|
176
|
+
|
|
177
|
+
**Use Cases:**
|
|
178
|
+
- Technical debt reduction
|
|
179
|
+
- Code quality improvement
|
|
180
|
+
- Legacy code modernization
|
|
181
|
+
- Design pattern implementation
|
|
182
|
+
|
|
183
|
+
#### 3. Test Pipeline
|
|
184
|
+
|
|
185
|
+
Comprehensive test generation with coverage analysis.
|
|
186
|
+
|
|
187
|
+
```bash
|
|
188
|
+
claude-flow stream-chain pipeline test
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
**Workflow Steps:**
|
|
192
|
+
1. **Coverage Analysis**: Identify areas lacking tests
|
|
193
|
+
2. **Test Design**: Create test cases for critical functions
|
|
194
|
+
3. **Implementation**: Generate unit tests with assertions
|
|
195
|
+
|
|
196
|
+
**Use Cases:**
|
|
197
|
+
- Increasing test coverage
|
|
198
|
+
- TDD workflow support
|
|
199
|
+
- Regression test creation
|
|
200
|
+
- Quality assurance
|
|
201
|
+
|
|
202
|
+
#### 4. Optimize Pipeline
|
|
203
|
+
|
|
204
|
+
Performance optimization with profiling and implementation.
|
|
205
|
+
|
|
206
|
+
```bash
|
|
207
|
+
claude-flow stream-chain pipeline optimize
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
**Workflow Steps:**
|
|
211
|
+
1. **Profiling**: Identify performance bottlenecks
|
|
212
|
+
2. **Strategy**: Analyze and suggest optimization approaches
|
|
213
|
+
3. **Implementation**: Provide optimized code
|
|
214
|
+
|
|
215
|
+
**Use Cases:**
|
|
216
|
+
- Performance improvement
|
|
217
|
+
- Resource optimization
|
|
218
|
+
- Scalability enhancement
|
|
219
|
+
- Latency reduction
|
|
220
|
+
|
|
221
|
+
### Pipeline Options
|
|
222
|
+
|
|
223
|
+
| Option | Description | Default |
|
|
224
|
+
|--------|-------------|---------|
|
|
225
|
+
| `--verbose` | Show detailed execution | `false` |
|
|
226
|
+
| `--timeout <seconds>` | Timeout per step | `30` |
|
|
227
|
+
| `--debug` | Enable debug mode | `false` |
|
|
228
|
+
|
|
229
|
+
### Pipeline Examples
|
|
230
|
+
|
|
231
|
+
#### Quick Analysis
|
|
232
|
+
|
|
233
|
+
```bash
|
|
234
|
+
claude-flow stream-chain pipeline analysis
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
#### Extended Refactoring
|
|
238
|
+
|
|
239
|
+
```bash
|
|
240
|
+
claude-flow stream-chain pipeline refactor --timeout 60 --verbose
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
#### Debug Test Generation
|
|
244
|
+
|
|
245
|
+
```bash
|
|
246
|
+
claude-flow stream-chain pipeline test --debug
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
#### Comprehensive Optimization
|
|
250
|
+
|
|
251
|
+
```bash
|
|
252
|
+
claude-flow stream-chain pipeline optimize --timeout 90 --verbose
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
### Pipeline Output
|
|
256
|
+
|
|
257
|
+
Each pipeline execution provides:
|
|
258
|
+
|
|
259
|
+
- **Progress**: Step-by-step execution status
|
|
260
|
+
- **Results**: Success/failure per step
|
|
261
|
+
- **Timing**: Total and per-step execution time
|
|
262
|
+
- **Summary**: Consolidated results and recommendations
|
|
263
|
+
|
|
264
|
+
---
|
|
265
|
+
|
|
266
|
+
## Custom Pipeline Definitions
|
|
267
|
+
|
|
268
|
+
Define reusable pipelines in `.claude-flow/config.json`:
|
|
269
|
+
|
|
270
|
+
### Configuration Format
|
|
271
|
+
|
|
272
|
+
```json
|
|
273
|
+
{
|
|
274
|
+
"streamChain": {
|
|
275
|
+
"pipelines": {
|
|
276
|
+
"security": {
|
|
277
|
+
"name": "Security Audit Pipeline",
|
|
278
|
+
"description": "Comprehensive security analysis",
|
|
279
|
+
"prompts": [
|
|
280
|
+
"Scan codebase for security vulnerabilities",
|
|
281
|
+
"Categorize issues by severity (critical/high/medium/low)",
|
|
282
|
+
"Generate fixes with priority and implementation steps",
|
|
283
|
+
"Create security test suite"
|
|
284
|
+
],
|
|
285
|
+
"timeout": 45
|
|
286
|
+
},
|
|
287
|
+
"documentation": {
|
|
288
|
+
"name": "Documentation Generation Pipeline",
|
|
289
|
+
"prompts": [
|
|
290
|
+
"Analyze code structure and identify undocumented areas",
|
|
291
|
+
"Generate API documentation with examples",
|
|
292
|
+
"Create usage guides and tutorials",
|
|
293
|
+
"Build architecture diagrams and flow charts"
|
|
294
|
+
]
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
```
|
|
300
|
+
|
|
301
|
+
### Execute Custom Pipeline
|
|
302
|
+
|
|
303
|
+
```bash
|
|
304
|
+
claude-flow stream-chain pipeline security
|
|
305
|
+
claude-flow stream-chain pipeline documentation
|
|
306
|
+
```
|
|
307
|
+
|
|
308
|
+
---
|
|
309
|
+
|
|
310
|
+
## Advanced Use Cases
|
|
311
|
+
|
|
312
|
+
### Multi-Agent Coordination
|
|
313
|
+
|
|
314
|
+
Chain different agent types for complex workflows:
|
|
315
|
+
|
|
316
|
+
```bash
|
|
317
|
+
claude-flow stream-chain run \
|
|
318
|
+
"Research best practices for API design" \
|
|
319
|
+
"Design REST API with discovered patterns" \
|
|
320
|
+
"Implement API endpoints with validation" \
|
|
321
|
+
"Generate OpenAPI specification" \
|
|
322
|
+
"Create integration tests" \
|
|
323
|
+
"Write deployment documentation"
|
|
324
|
+
```
|
|
325
|
+
|
|
326
|
+
### Data Transformation Pipeline
|
|
327
|
+
|
|
328
|
+
Process and transform data through multiple stages:
|
|
329
|
+
|
|
330
|
+
```bash
|
|
331
|
+
claude-flow stream-chain run \
|
|
332
|
+
"Extract user data from CSV files" \
|
|
333
|
+
"Normalize and validate data format" \
|
|
334
|
+
"Enrich data with external API calls" \
|
|
335
|
+
"Generate analytics report" \
|
|
336
|
+
"Create visualization code"
|
|
337
|
+
```
|
|
338
|
+
|
|
339
|
+
### Code Migration Workflow
|
|
340
|
+
|
|
341
|
+
Systematic code migration with validation:
|
|
342
|
+
|
|
343
|
+
```bash
|
|
344
|
+
claude-flow stream-chain run \
|
|
345
|
+
"Analyze legacy codebase dependencies" \
|
|
346
|
+
"Create migration plan with risk assessment" \
|
|
347
|
+
"Generate modernized code for high-priority modules" \
|
|
348
|
+
"Create migration tests" \
|
|
349
|
+
"Document migration steps and rollback procedures"
|
|
350
|
+
```
|
|
351
|
+
|
|
352
|
+
### Quality Assurance Chain
|
|
353
|
+
|
|
354
|
+
Comprehensive code quality workflow:
|
|
355
|
+
|
|
356
|
+
```bash
|
|
357
|
+
claude-flow stream-chain pipeline analysis
|
|
358
|
+
claude-flow stream-chain pipeline refactor
|
|
359
|
+
claude-flow stream-chain pipeline test
|
|
360
|
+
claude-flow stream-chain pipeline optimize
|
|
361
|
+
```
|
|
362
|
+
|
|
363
|
+
---
|
|
364
|
+
|
|
365
|
+
## Best Practices
|
|
366
|
+
|
|
367
|
+
### 1. Clear and Specific Prompts
|
|
368
|
+
|
|
369
|
+
**Good:**
|
|
370
|
+
```bash
|
|
371
|
+
"Analyze authentication.js for SQL injection vulnerabilities"
|
|
372
|
+
```
|
|
373
|
+
|
|
374
|
+
**Avoid:**
|
|
375
|
+
```bash
|
|
376
|
+
"Check security"
|
|
377
|
+
```
|
|
378
|
+
|
|
379
|
+
### 2. Logical Progression
|
|
380
|
+
|
|
381
|
+
Order prompts to build on previous outputs:
|
|
382
|
+
```bash
|
|
383
|
+
1. "Identify the problem"
|
|
384
|
+
2. "Analyze root causes"
|
|
385
|
+
3. "Design solution"
|
|
386
|
+
4. "Implement solution"
|
|
387
|
+
5. "Verify implementation"
|
|
388
|
+
```
|
|
389
|
+
|
|
390
|
+
### 3. Appropriate Timeouts
|
|
391
|
+
|
|
392
|
+
- Simple tasks: 30 seconds (default)
|
|
393
|
+
- Analysis tasks: 45-60 seconds
|
|
394
|
+
- Implementation tasks: 60-90 seconds
|
|
395
|
+
- Complex workflows: 90-120 seconds
|
|
396
|
+
|
|
397
|
+
### 4. Verification Steps
|
|
398
|
+
|
|
399
|
+
Include validation in your chains:
|
|
400
|
+
```bash
|
|
401
|
+
claude-flow stream-chain run \
|
|
402
|
+
"Implement feature X" \
|
|
403
|
+
"Write tests for feature X" \
|
|
404
|
+
"Verify tests pass and cover edge cases"
|
|
405
|
+
```
|
|
406
|
+
|
|
407
|
+
### 5. Iterative Refinement
|
|
408
|
+
|
|
409
|
+
Use chains for iterative improvement:
|
|
410
|
+
```bash
|
|
411
|
+
claude-flow stream-chain run \
|
|
412
|
+
"Generate initial implementation" \
|
|
413
|
+
"Review and identify issues" \
|
|
414
|
+
"Refine based on issues found" \
|
|
415
|
+
"Final quality check"
|
|
416
|
+
```
|
|
417
|
+
|
|
418
|
+
---
|
|
419
|
+
|
|
420
|
+
## Integration with Claude Flow
|
|
421
|
+
|
|
422
|
+
### Combine with Swarm Coordination
|
|
423
|
+
|
|
424
|
+
```bash
|
|
425
|
+
# Initialize swarm for coordination
|
|
426
|
+
claude-flow swarm init --topology mesh
|
|
427
|
+
|
|
428
|
+
# Execute stream chain with swarm agents
|
|
429
|
+
claude-flow stream-chain run \
|
|
430
|
+
"Agent 1: Research task" \
|
|
431
|
+
"Agent 2: Implement solution" \
|
|
432
|
+
"Agent 3: Test implementation" \
|
|
433
|
+
"Agent 4: Review and refine"
|
|
434
|
+
```
|
|
435
|
+
|
|
436
|
+
### Memory Integration
|
|
437
|
+
|
|
438
|
+
Stream chains automatically store context in memory for cross-session persistence:
|
|
439
|
+
|
|
440
|
+
```bash
|
|
441
|
+
# Execute chain with memory
|
|
442
|
+
claude-flow stream-chain run \
|
|
443
|
+
"Analyze requirements" \
|
|
444
|
+
"Design architecture" \
|
|
445
|
+
--verbose
|
|
446
|
+
|
|
447
|
+
# Results stored in .claude-flow/memory/stream-chain/
|
|
448
|
+
```
|
|
449
|
+
|
|
450
|
+
### Neural Pattern Training
|
|
451
|
+
|
|
452
|
+
Successful chains train neural patterns for improved performance:
|
|
453
|
+
|
|
454
|
+
```bash
|
|
455
|
+
# Enable neural training
|
|
456
|
+
claude-flow stream-chain pipeline optimize --debug
|
|
457
|
+
|
|
458
|
+
# Patterns learned and stored for future optimizations
|
|
459
|
+
```
|
|
460
|
+
|
|
461
|
+
---
|
|
462
|
+
|
|
463
|
+
## Troubleshooting
|
|
464
|
+
|
|
465
|
+
### Chain Timeout
|
|
466
|
+
|
|
467
|
+
If steps timeout, increase timeout value:
|
|
468
|
+
|
|
469
|
+
```bash
|
|
470
|
+
claude-flow stream-chain run "complex task" --timeout 120
|
|
471
|
+
```
|
|
472
|
+
|
|
473
|
+
### Context Loss
|
|
474
|
+
|
|
475
|
+
If context not flowing properly, use `--debug`:
|
|
476
|
+
|
|
477
|
+
```bash
|
|
478
|
+
claude-flow stream-chain run "step 1" "step 2" --debug
|
|
479
|
+
```
|
|
480
|
+
|
|
481
|
+
### Pipeline Not Found
|
|
482
|
+
|
|
483
|
+
Verify pipeline name and custom definitions:
|
|
484
|
+
|
|
485
|
+
```bash
|
|
486
|
+
# Check available pipelines
|
|
487
|
+
cat .claude-flow/config.json | grep -A 10 "streamChain"
|
|
488
|
+
```
|
|
489
|
+
|
|
490
|
+
---
|
|
491
|
+
|
|
492
|
+
## Performance Characteristics
|
|
493
|
+
|
|
494
|
+
- **Throughput**: 2-5 steps per minute (varies by complexity)
|
|
495
|
+
- **Context Size**: Up to 100K tokens per step
|
|
496
|
+
- **Memory Usage**: ~50MB per active chain
|
|
497
|
+
- **Concurrency**: Supports parallel chain execution
|
|
498
|
+
|
|
499
|
+
---
|
|
500
|
+
|
|
501
|
+
## Related Skills
|
|
502
|
+
|
|
503
|
+
- **SPARC Methodology**: Systematic development workflow
|
|
504
|
+
- **Swarm Coordination**: Multi-agent orchestration
|
|
505
|
+
- **Memory Management**: Persistent context storage
|
|
506
|
+
- **Neural Patterns**: Adaptive learning
|
|
507
|
+
|
|
508
|
+
---
|
|
509
|
+
|
|
510
|
+
## Examples Repository
|
|
511
|
+
|
|
512
|
+
### Complete Development Workflow
|
|
513
|
+
|
|
514
|
+
```bash
|
|
515
|
+
# Full feature development chain
|
|
516
|
+
claude-flow stream-chain run \
|
|
517
|
+
"Analyze requirements for user profile feature" \
|
|
518
|
+
"Design database schema and API endpoints" \
|
|
519
|
+
"Implement backend with validation" \
|
|
520
|
+
"Create frontend components" \
|
|
521
|
+
"Write comprehensive tests" \
|
|
522
|
+
"Generate API documentation" \
|
|
523
|
+
--timeout 60 \
|
|
524
|
+
--verbose
|
|
525
|
+
```
|
|
526
|
+
|
|
527
|
+
### Code Review Pipeline
|
|
528
|
+
|
|
529
|
+
```bash
|
|
530
|
+
# Automated code review workflow
|
|
531
|
+
claude-flow stream-chain run \
|
|
532
|
+
"Analyze recent git changes" \
|
|
533
|
+
"Identify code quality issues" \
|
|
534
|
+
"Check for security vulnerabilities" \
|
|
535
|
+
"Verify test coverage" \
|
|
536
|
+
"Generate code review report with recommendations"
|
|
537
|
+
```
|
|
538
|
+
|
|
539
|
+
### Migration Assistant
|
|
540
|
+
|
|
541
|
+
```bash
|
|
542
|
+
# Framework migration helper
|
|
543
|
+
claude-flow stream-chain run \
|
|
544
|
+
"Analyze current Vue 2 codebase" \
|
|
545
|
+
"Identify Vue 3 breaking changes" \
|
|
546
|
+
"Create migration checklist" \
|
|
547
|
+
"Generate migration scripts" \
|
|
548
|
+
"Provide updated code examples"
|
|
549
|
+
```
|
|
550
|
+
|
|
551
|
+
---
|
|
552
|
+
|
|
553
|
+
## Conclusion
|
|
554
|
+
|
|
555
|
+
Stream-Chain enables sophisticated multi-step workflows by:
|
|
556
|
+
|
|
557
|
+
- **Sequential Processing**: Each step builds on previous results
|
|
558
|
+
- **Context Preservation**: Full output history flows through chain
|
|
559
|
+
- **Flexible Orchestration**: Custom chains or predefined pipelines
|
|
560
|
+
- **Agent Coordination**: Natural multi-agent collaboration pattern
|
|
561
|
+
- **Data Transformation**: Complex processing through simple steps
|
|
562
|
+
|
|
563
|
+
Use `run` for custom workflows and `pipeline` for battle-tested solutions.
|