@if (state() === "loading") {

{{ "status.loading" | t }}

} @if (state() === "error") {

{{ "status.apiUnreachable" | t }}

{{ "agents.error" | t }}

} @if (state() === "ok") {

{{ "agents.registry.title" | t }} ({{ sortedAgents().length }})

@if (sortedAgents().length === 0) {

{{ "agents.registry.empty" | t }}

} @else {
@for (a of sortedAgents(); track a.agent_id) { }
{{ "agents.registry.caption" | t }}
{{ "agents.col.id" | t }} {{ "agents.col.name" | t }} {{ "agents.col.responsibility" | t }} {{ "agents.col.tools" | t }} {{ "agents.col.policy" | t }} {{ "agents.col.limits" | t }} {{ "agents.col.model" | t }} {{ "agents.col.version" | t }}
{{ a.agent_id }} {{ a.name }} {{ a.responsibility }} @if (a.allowed_tools.length) {
    @for (t of a.allowed_tools; track t) {
  • {{ t }}
  • }
} @else { — }
{{ a.policy }} {{ "agents.limits.iterations" | t }}: {{ a.max_iterations }}
{{ "agents.limits.toolCalls" | t }}: {{ a.max_tool_calls }}
{{ a.model_profile }} {{ a.version }}
}

{{ "agents.tools.title" | t }} ({{ tools().length }})

@for (t of tools(); track t.name) { }
{{ "agents.tools.caption" | t }}
{{ "agents.col.id" | t }} {{ "agents.col.description" | t }}
{{ t.name }} {{ t.description }}

{{ "agents.activity.title" | t }}

{{ "agents.activity.hint" | t }}

@if (invState() === "ok" && investigations().length === 0) {

{{ "agents.activity.empty" | t }}

{{ "investigations.new.action" | t }} } @if (investigations().length) {
}
@if (reportState() === "loading") {

{{ "status.loading" | t }}

} @if (reportState() === "error") { }
@if (report(); as rep) {
{{ "investigations.detail.tokens" | t }}
{{ rep.tokens_used }}
{{ "investigations.detail.cost" | t }}
{{ rep.cost_usd }}
{{ "investigations.detail.duration" | t }}
{{ rep.duration_seconds }}s

{{ "agents.activity.noBudget" | t }}

{{ "investigations.detail.agentsUsed" | t }}

@if (rep.agents_used.length) {
    @for (a of rep.agents_used; track a) {
  • {{ a }}
  • }
} @else {

{{ "investigations.detail.none" | t }}

}

{{ "investigations.detail.toolsUsed" | t }}

@if (rep.tools_used.length) {
    @for (t of rep.tools_used; track t) {
  • {{ t }}
  • }
} @else {

{{ "investigations.detail.none" | t }}

}
}
}