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-processor.js

rUvfc2d1441a577
diff --git a/.claude/checkpoints/task-1754364739.json b/.claude/checkpoints/task-1754364739.json
new file mode 100644
index 0000000000..b45048c26e
--- /dev/null
+++ b/.claude/checkpoints/task-1754364739.json
@@ -0,0 +1 @@
+{"checkpoint": "task-20250805-033218", "task": "{{user_prompt}} ", "timestamp": "2025-08-05T03:32:19Z", "commit": "42e924bdd72685a68bbd1dadcaf9cd3d6dd701c4", "github_release": "true"}
diff --git a/src/cli/simple-commands/stream-processor.js b/src/cli/simple-commands/stream-processor.js
index 77ea1e9e27..bc5905ae46 100644
--- a/src/cli/simple-commands/stream-processor.js
+++ b/src/cli/simple-commands/stream-processor.js
@@ -112,9 +112,33 @@ export class StreamJsonProcessor extends Transform {
}
}
} else if (content.type === 'tool_use') {
- // Show tool use concisely
+ // Show tool use with actual command/input when available
const toolName = content.name.replace(/([A-Z])/g, ' $1').trim();
- console.log(`πŸ”§ ${toolName}`);
+
+ // For Bash tool, show the actual command
+ if (content.name === 'Bash' && content.input?.command) {
+ const command = content.input.command;
+ if (command.length > 80) {
+ console.log(`πŸ”§ Bash: ${command.substring(0, 77)}...`);
+ } else {
+ console.log(`πŸ”§ Bash: ${command}`);
+ }
+ }
+ // For other tools, show key parameters
+ else if (content.input && Object.keys(content.input).length > 0) {
+ const firstKey = Object.keys(content.input)[0];
+ const firstValue = content.input[firstKey];
+
+ if (typeof firstValue === 'string' && firstValue.length < 60) {
+ console.log(`πŸ”§ ${toolName}: ${firstValue}`);
+ } else if (typeof firstValue === 'string') {
+ console.log(`πŸ”§ ${toolName}: ${firstValue.substring(0, 57)}...`);
+ } else {
+ console.log(`πŸ”§ ${toolName}`);
+ }
+ } else {
+ console.log(`πŸ”§ ${toolName}`);
+ }
}
}
break;