diff --git a/.claude/checkpoints/1754342315.json b/.claude/checkpoints/1754342315.json new file mode 100644 index 0000000000..785b20175a --- /dev/null +++ b/.claude/checkpoints/1754342315.json @@ -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"} diff --git a/.claude/checkpoints/1754342317.json b/.claude/checkpoints/1754342317.json new file mode 100644 index 0000000000..e15e252cd9 --- /dev/null +++ b/.claude/checkpoints/1754342317.json @@ -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(-) "} diff --git a/src/cli/simple-commands/stream-processor.js b/src/cli/simple-commands/stream-processor.js index 4cbec82427..e35c435d81 100644 --- a/src/cli/simple-commands/stream-processor.js +++ b/src/cli/simple-commands/stream-processor.js @@ -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 '(...)'; + } } /**