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

rUva3418b693080
diff --git a/.claude/checkpoints/task-1755023932.json b/.claude/checkpoints/task-1755023932.json
new file mode 100644
index 0000000000..422d57c936
--- /dev/null
+++ b/.claude/checkpoints/task-1755023932.json
@@ -0,0 +1 @@
+{"checkpoint": "task-20250812-183851", "task": "Hello, test stream output ", "timestamp": "2025-08-12T18:38:52Z", "commit": "e254d500fad1f9fc9207c9e6263eea411d110289", "github_release": "true"}
diff --git a/src/cli/simple-commands/stream-chain.js b/src/cli/simple-commands/stream-chain.js
index ccf2d6e6dd..31a3602a83 100644
--- a/src/cli/simple-commands/stream-chain.js
+++ b/src/cli/simple-commands/stream-chain.js
@@ -63,15 +63,23 @@ function mockStreamStep(prompt, inputStream, isLast, flags, resolve, startTime)
function generateMockOutput(prompt, inputStream) {
const timestamp = new Date().toISOString();
- // Create mock stream-json output
+ // Create mock stream-json output in correct format
const streamJson = JSON.stringify({
- type: 'message',
- role: 'assistant',
- content: [{
- type: 'text',
- text: `Mock processing: ${prompt.slice(0, 50)}...`
- }],
- timestamp
+ type: 'assistant',
+ message: {
+ id: `msg_${Date.now()}`,
+ type: 'message',
+ role: 'assistant',
+ model: 'claude-mock',
+ content: [{
+ type: 'text',
+ text: `Mock processing: ${prompt.slice(0, 50)}...`
+ }],
+ stop_reason: null,
+ stop_sequence: null,
+ usage: { input_tokens: 5, output_tokens: 10 }
+ },
+ session_id: 'mock-session'
});
// Create mock text output