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

rUva70c7e0b4b46
diff --git a/.claude/checkpoints/1754364755.json b/.claude/checkpoints/1754364755.json
new file mode 100644
index 0000000000..3278823f5b
--- /dev/null
+++ b/.claude/checkpoints/1754364755.json
@@ -0,0 +1 @@
+{"branch": "checkpoint/pre-edit-20250805-033235", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/stream-processor.js", "timestamp": "2025-08-05T03:32:35Z", "type": "pre-edit", "original_branch": "alpha-85"}
diff --git a/.claude/checkpoints/1754364757.json b/.claude/checkpoints/1754364757.json
new file mode 100644
index 0000000000..fbd063b337
--- /dev/null
+++ b/.claude/checkpoints/1754364757.json
@@ -0,0 +1 @@
+{"tag": "checkpoint-20250805-033237", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/stream-processor.js", "timestamp": "2025-08-05T03:32:37Z", "type": "post-edit", "branch": "alpha-85", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 1084 ++++++++++++++++++++++++++- .claude-flow/metrics/task-metrics.json | 6 +- .claude/checkpoints/task-1754364739.json | 1 + claude-flow-wiki | 0 src/cli/simple-commands/stream-processor.js | 28 +- 6 files changed, 1101 insertions(+), 20 deletions(-) "}
diff --git a/src/cli/simple-commands/stream-processor.js b/src/cli/simple-commands/stream-processor.js
index bc5905ae46..7315ea0473 100644
--- a/src/cli/simple-commands/stream-processor.js
+++ b/src/cli/simple-commands/stream-processor.js
@@ -70,7 +70,7 @@ export class StreamJsonProcessor extends Transform {
return;
}
- // Handle quiet mode - only show major milestones
+ // Handle quiet mode - show important actions and commands
if (this.options.verbose === false && this.options.logLevel === 'quiet') {
switch (event.type) {
case 'system':
@@ -78,6 +78,31 @@ export class StreamJsonProcessor extends Transform {
console.log(`πŸ€– ${this.agentName} - Started`);
}
break;
+ case 'assistant':
+ // In quiet mode, still show bash commands and key actions
+ if (event.message?.content?.length > 0) {
+ const content = event.message.content[0];
+ if (content.type === 'tool_use' && content.name === 'Bash' && content.input?.command) {
+ const command = content.input.command;
+ if (command.length > 60) {
+ console.log(` πŸ”§ ${command.substring(0, 57)}...`);
+ } else {
+ console.log(` πŸ”§ ${command}`);
+ }
+ } else if (content.type === 'tool_use' && ['WebSearch', 'Read', 'Write'].includes(content.name)) {
+ const toolName = content.name.replace(/([A-Z])/g, ' $1').trim();
+ if (content.input) {
+ const firstKey = Object.keys(content.input)[0];
+ const firstValue = content.input[firstKey];
+ if (typeof firstValue === 'string' && firstValue.length < 40) {
+ console.log(` πŸ”§ ${toolName}: ${firstValue}`);
+ } else {
+ console.log(` πŸ”§ ${toolName}`);
+ }
+ }
+ }
+ }
+ break;
case 'result':
if (event.subtype === 'success') {
console.log(`βœ… ${this.agentName} - Completed (${this.formatDuration(event.duration_ms)})`);