Skip to content
This repository was archived by the owner on Sep 30, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion dreadnode_cli/agent/format.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,11 @@ def format_zones_verbose(zones: list[api.Client.StrikeRunZone], *, include_logs:
table.add_row("id", f"[dim]{zone.id}[/]")
table.add_row("score", f"[yellow]{zone_score}[/]" if zone_score else "[dim]0[/]")
table.add_row("outputs", f"[magenta]{len(zone.outputs)}[/]" if zone.outputs else "[dim]0[/]")
table.add_row("inferences", f"[blue]{len(zone.inferences)}[/]" if zone.inferences else "[dim]0[/]")
table.add_row("start", format_time(zone.start))
table.add_row("end", format_time(zone.end))
table.add_row("duration", Text(format_duration(zone.start, zone.end), style="bold cyan"))

table.add_row("", "")

sub_components: list[RenderableType] = [table]
Expand Down Expand Up @@ -258,9 +260,14 @@ def format_run(run: api.Client.StrikeRunResponse, *, verbose: bool = False, incl
table.add_row("strike", f"[magenta]{run.strike_name}[/] ([dim]{run.strike_key}[/])")
table.add_row("type", run.strike_type)

if run.agent_name:
agent_name = f"[bold magenta]{run.agent_name}[/] [[dim]{run.agent_key}[/]]"
else:
agent_name = f"[bold magenta]{run.agent_key}[/]"

table.add_row("", "")
table.add_row("model", run.model or "<default>")
table.add_row("agent", f"[bold magenta]{run.agent_key}[/] ([dim]rev[/] [yellow]{run.agent_revision}[/])")
table.add_row("agent", f"{agent_name} ([dim]rev[/] [yellow]{run.agent_revision}[/])")
table.add_row("image", Text(run.agent_version.container.image, style="cyan"))
table.add_row("notes", run.agent_version.notes or "-")

Expand Down
3 changes: 2 additions & 1 deletion dreadnode_cli/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,14 +350,15 @@ class _StrikeRun(BaseModel):
model: str | None
agent_id: UUID
agent_key: str
agent_name: str | None = None
agent_revision: int
agent_version: "Client.StrikeAgentVersion"
status: "Client.StrikeRunStatus"
start: datetime | None
end: datetime | None

def is_running(self) -> bool:
return self.status not in ["completed", "failed", "timeout", "terminated"]
return self.status in ["pending", "deploying", "running"]

class StrikeRunSummaryResponse(_StrikeRun):
zones: list["Client.StrikeRunZoneSummary"]
Expand Down
Loading