🔖 Checkpoint: Edit /workspaces/claude-code-flow/src/cli/simple-commands/stream-processor.js

This commit is contained in:
rUv committed 2025-08-04 21:19:14 +00:00
1 parent f1e824b1a3
commit 64bdad6c29
3 files changed
+34

No files matched your search

+1
View File
@@ -0,0 +1 @@
{"branch": "checkpoint/pre-edit-20250804-211835", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/stream-processor.js", "timestamp": "2025-08-04T21:18:35Z", "type": "pre-edit", "original_branch": "alpha-85"}
+1
View File
@@ -0,0 +1 @@
{"tag": "checkpoint-20250804-211837", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/stream-processor.js", "timestamp": "2025-08-04T21:18:37Z", "type": "post-edit", "branch": "alpha-85", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 10420 +++++++++++++++++++++++++- .claude-flow/metrics/task-metrics.json | 6 +- .claude/checkpoints/task-1754342270.json | 1 + claude-flow-wiki | 0 src/cli/simple-commands/stream-processor.js | 98 +- 6 files changed, 10485 insertions(+), 42 deletions(-) "}
@@ -265,6 +265,38 @@ export class StreamJsonProcessor extends Transform {
}
return `${seconds}s`;
}
formatToolParams(input) {
if (!input || typeof input !== 'object' || Object.keys(input).length === 0) {
return '';
}
// Format key parameters for display
const keys = Object.keys(input);
if (keys.length === 1) {
const key = keys[0];
const value = input[key];
if (typeof value === 'string' && value.length < 30) {
return `(${key}: "${value}")`;
} else if (typeof value === 'number' || typeof value === 'boolean') {
return `(${key}: ${value})`;
}
} else if (keys.length <= 3) {
const params = keys.map(key => {
const value = input[key];
if (typeof value === 'string' && value.length < 20) {
return `${key}: "${value}"`;
} else if (typeof value === 'number' || typeof value === 'boolean') {
return `${key}: ${value}`;
} else {
return `${key}: ...`;
}
}).join(', ');
return `(${params})`;
}
return '(...)';
}
}
/**