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/benchmark/src/swarm_benchmark/cli/main.py

rUv345a2a392808
diff --git a/.claude/checkpoints/1754488798.json b/.claude/checkpoints/1754488798.json
new file mode 100644
index 0000000000..98f2551534
--- /dev/null
+++ b/.claude/checkpoints/1754488798.json
@@ -0,0 +1 @@
+{"branch": "checkpoint/pre-edit-20250806-135957", "file": "/workspaces/claude-code-flow/user-service/src/repositories/user.repository.ts", "timestamp": "2025-08-06T13:59:58Z", "type": "pre-edit", "original_branch": "alpha-88"}
diff --git a/.claude/checkpoints/1754488799.json b/.claude/checkpoints/1754488799.json
new file mode 100644
index 0000000000..e0ad7ae318
--- /dev/null
+++ b/.claude/checkpoints/1754488799.json
@@ -0,0 +1 @@
+{"tag": "checkpoint-20250806-135959", "file": "/workspaces/claude-code-flow/user-service/src/repositories/user.repository.ts", "timestamp": "2025-08-06T13:59:59Z", "type": "post-edit", "branch": "alpha-88", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 2432 +--------------------- .claude-flow/metrics/task-metrics.json | 6 +- benchmark/.claude-flow/metrics/performance.json | 2 +- benchmark/.claude-flow/metrics/task-metrics.json | 6 +- benchmark/.claude/checkpoints/1754488787.json | 1 + benchmark/.claude/checkpoints/1754488788.json | 1 + claude-flow-wiki | 0 user-service/src/repositories/user.repository.ts | 178 ++ 9 files changed, 222 insertions(+), 2406 deletions(-) "}
diff --git a/benchmark/src/swarm_benchmark/cli/main.py b/benchmark/src/swarm_benchmark/cli/main.py
index 0eb37a0915..4cab9c97fb 100644
--- a/benchmark/src/swarm_benchmark/cli/main.py
+++ b/benchmark/src/swarm_benchmark/cli/main.py
@@ -839,8 +839,36 @@ def _display_benchmarks_table(benchmarks):
click.echo("No benchmarks found.")
return
- # TODO: Implement table display
- click.echo("Benchmark results (table format not yet implemented)")
+ from datetime import datetime
+
+ # Header
+ click.echo("\n" + "="*100)
+ click.echo(f"{'ID':<40} {'Strategy':<12} {'Mode':<12} {'Duration':<10} {'Date':<20}")
+ click.echo("="*100)
+
+ # Rows
+ for bench in benchmarks:
+ # Format timestamp
+ dt = datetime.fromtimestamp(bench['timestamp'])
+ date_str = dt.strftime('%Y-%m-%d %H:%M:%S')
+
+ # Format duration
+ duration = bench.get('duration', 0)
+ if duration > 0:
+ duration_str = f"{duration:.1f}s"
+ else:
+ duration_str = "N/A"
+
+ # Truncate ID if too long
+ bench_id = bench['id']
+ if len(bench_id) > 38:
+ bench_id = bench_id[:35] + "..."
+
+ click.echo(f"{bench_id:<40} {bench['strategy']:<12} {bench['mode']:<12} {duration_str:<10} {date_str:<20}")
+
+ click.echo("="*100)
+ click.echo(f"\nTotal: {len(benchmarks)} benchmark(s)")
+ click.echo("\nUse 'swarm-bench show <id>' to view details of a specific benchmark")
def _display_benchmarks_csv(benchmarks):