Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

πŸ”– Checkpoint: Edit /workspaces/claude-code-flow/src/cli/simple-commands/stream-chain.js

rUv098f7a7016e0
diff --git a/.claude/checkpoints/1755026744.json b/.claude/checkpoints/1755026744.json
new file mode 100644
index 0000000000..eae08ee9f9
--- /dev/null
+++ b/.claude/checkpoints/1755026744.json
@@ -0,0 +1 @@
+{"branch": "checkpoint/pre-edit-20250812-192544", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/stream-chain.js", "timestamp": "2025-08-12T19:25:44Z", "type": "pre-edit", "original_branch": "alpha-89"}
diff --git a/.claude/checkpoints/1755026746.json b/.claude/checkpoints/1755026746.json
new file mode 100644
index 0000000000..231f48c51c
--- /dev/null
+++ b/.claude/checkpoints/1755026746.json
@@ -0,0 +1 @@
+{"tag": "checkpoint-20250812-192546", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/stream-chain.js", "timestamp": "2025-08-12T19:25:46Z", "type": "post-edit", "branch": "alpha-89", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 24 ++++++++++++++++++++++++ .claude-flow/metrics/task-metrics.json | 6 +++--- .claude/checkpoints/1755026729.json | 1 + .claude/checkpoints/1755026731.json | 1 + claude-flow-wiki | 0 src/cli/simple-commands/stream-chain.js | 4 ++++ 7 files changed, 34 insertions(+), 4 deletions(-) "}
diff --git a/src/cli/simple-commands/stream-chain.js b/src/cli/simple-commands/stream-chain.js
index a375882ffc..d7853e70b8 100644
--- a/src/cli/simple-commands/stream-chain.js
+++ b/src/cli/simple-commands/stream-chain.js
@@ -422,6 +422,59 @@ async function runTest(flags) {
console.log('\n' + (success ? 'βœ… Test passed!' : '❌ Test failed'));
}
+async function runPipeline(args, flags) {
+ const pipelineType = args[0];
+
+ const pipelines = {
+ analysis: {
+ name: 'Code Analysis Pipeline',
+ prompts: [
+ "Analyze the current directory structure and identify the main components",
+ "Based on the analysis, identify potential improvements and issues",
+ "Generate a detailed report with actionable recommendations"
+ ]
+ },
+ refactor: {
+ name: 'Refactoring Workflow',
+ prompts: [
+ "Identify code that could benefit from refactoring in the current project",
+ "Create a prioritized refactoring plan with specific changes",
+ "Provide refactored code examples for the top 3 priorities"
+ ]
+ },
+ test: {
+ name: 'Test Generation Pipeline',
+ prompts: [
+ "Analyze the codebase and identify areas lacking test coverage",
+ "Design comprehensive test cases for the critical functions",
+ "Generate unit test implementations with assertions"
+ ]
+ },
+ optimize: {
+ name: 'Performance Optimization Pipeline',
+ prompts: [
+ "Profile the codebase and identify performance bottlenecks",
+ "Analyze the bottlenecks and suggest optimization strategies",
+ "Provide optimized implementations for the main issues"
+ ]
+ }
+ };
+
+ if (!pipelineType || !pipelines[pipelineType]) {
+ console.error('❌ Invalid or missing pipeline type');
+ console.log('Available pipelines: ' + Object.keys(pipelines).join(', '));
+ console.log('Usage: claude-flow stream-chain pipeline <type>');
+ return;
+ }
+
+ const pipeline = pipelines[pipelineType];
+ console.log(`πŸš€ Running ${pipeline.name}`);
+ console.log('━'.repeat(50));
+
+ const results = await executeChain(pipeline.prompts, flags);
+ showSummary(results);
+}
+
function showSummary(results) {
console.log('\n' + '═'.repeat(50));
console.log('πŸ“Š Summary');