{% import "agents/macros.html" as m with context %} {# each runtime in the order the agent tries them: whether it is the one in use, whether it can run, what it reports, and its form's words #} {% for provider in row.kept.agent.harness %} {% set state = (row.activity.runtimes | selectattr("connection", "equalto", provider.connection) | first | default(none)) if row.activity else none %} {% set inspection = inspections.get(provider.kind) %} {% set schema = schemas.get(provider.kind, {}) %}
{{ loop.index }}{{ m.logo(provider.kind) }}{{ provider["values"].get("model") or t.text("agents.model.default") }}
{% if state and state.banned_until_ms %}{{ t.text("agents.runtime.banned", {"clock": state.banned_until_ms | clock}) }} {% elif state and state.in_use %}{% include "agents/icons/check.svg" %}{{ t.text("agents.runtime.in_use") }}{% if inspection and inspection.version %} · {{ inspection.version }}{% endif %} {% else %}{{ t.text("agents.standby") }}{% if inspection %} · {{ t.text("agents.runtime.available" if inspection.available else "agents.runtime.unavailable") }}{% if inspection.version %} · {{ inspection.version }}{% endif %}{% endif %}{% endif %} {% if schema %}
{% for name, field in (schema.get("properties") or {}).items() if field.get("x-inspect") == "efforts" or field.get("writeOnly") %} {{ schema | word(name ~ ".title") }}{% if field.get("writeOnly") %}{{ t.text("agents.secret.saved") if name in provider.secrets else schema | word(name ~ ".empty") }}{% else %}{{ provider["values"].get(name) or schema | word(name ~ ".empty") }}{% endif %} {% endfor %}
{% endif %}
{% endfor %}