fix(cli): add Summary panel and success message to actor list rich output (#1525) #1562

Merged
freemo merged 1 commits from fix/actor-list-missing-summary-panel into master 2026-04-02 21:36:41 +00:00
+21
View File
@@ -662,6 +662,27 @@ def list_actors(
console.print(table)
# Calculate summary statistics
total_actors = len(actors)
builtin_count = sum(1 for a in actors if a.is_built_in)
custom_count = total_actors - builtin_count
unsafe_count = sum(1 for a in actors if a.unsafe)
providers_used = len(set(a.provider for a in actors))
# Create Summary panel
summary_text = (
f"[yellow bold]Total:[/yellow bold] {total_actors}\n"
f"[green bold]Built-in:[/green bold] {builtin_count}\n"
f"[blue bold]Custom:[/blue bold] {custom_count}\n"
f"[red bold]Unsafe:[/red bold] {unsafe_count}\n"
f"[blue bold]Providers Used:[/blue bold] {providers_used}"
)
summary_panel = Panel(summary_text, title="Summary", border_style="dim")
console.print(summary_panel)
# Print success message
console.print(f"[green bold]✓ OK[/green bold] {total_actors} actors listed")
@app.command()
def show(