{#- The transcript as a CI-style log (data.log): numbered lines, a group per tool call. -#} {% macro console(lg, running, id="log", follow=True) -%}
{%- if not lg.groups %}
Empty so far.
{% endif %} {%- for g in lg.groups %} {%- if g.title %}
{{ g.n }}{{ g.title }}{% if g.kind == "tool" and not g.done %}{{ " … running" if running else " (no result)" }}{% endif %} {%- for n, t, c in g.lines %}
{{ n }}{{ t }}
{% endfor %}
{%- else %} {%- for n, t, c in g.lines %}
{{ n }}{{ t }}
{% endfor %} {%- endif %} {%- endfor %}
{%- endmacro %} {#- Tabs and buttons above a transcript. -#} {% macro bar(base, view, views, step_url, target) -%} {% for v, label in views %}{{ label }}{% endfor %} {%- if view == "log" %} {% endif %} {%- if step_url %} plain text raw JSONL{% endif %} {%- endmacro %}