{% import "components.html" as c with context %}
{{ c.avatar(agent.name, small=true) }}{{ agent.name }}{{ c.dot(agent.status, reactive=true) }}
{% if agent.working_on %}{% set words = t.text("activity.working_on", {"target": agent.working_on, "since": "{since}"}).split("{since}") %}{{ words[0] }}{{ c.time(agent.working_since_ms, "clock") }}{{ words[1] }}{% else %}{% endif %}
{% for item in activity %}
{% if loop.first %}{% endif %}{{ c.time(item.at_ms, "clock") }}{{ item.text }}
{% endfor %} {% if not activity %}
{{ t.text("activity.none") }}
{% endif %}
{# a runtime that does not price its tokens leaves the cost out #} {% if usage %}
{{ t.text("activity.usage_today", {"input": usage.input, "output": usage.output, "cached": usage.cached}) }}{% if usage.cost %} ยท ${{ usage.cost }}{% endif %}
{% endif %}