{% extends "base.html" %} {% from "_note.html" import box with context %} {% import "_log.html" as lg %} {% import "_outline.html" as olm %} {% block title %}live · {{ l.short }} · {{ e.name }}{% endblock %} {% block crumbs %}/ {{ e.name }} / {{ l.short }} / live{% endblock %} {% block head %} {{ olm.style() }} {% endblock %} {% block main %} {% set f = l.feed %}
{% if l.running %}RUNNING Step {{ l.running.step }}{% if l.running.attempt and l.running.attempt > 1 %}, attempt {{ l.running.attempt }}{% endif %} {{ l.elapsed or "" }} {% else %}{{ l.meta.state }} {% if l.step %}Last step {{ l.step.n }} ({{ l.step.outcome }}){% else %}No steps yet{% endif %} {% endif %} {% if f %}{{ f.calls }} calls{% if f.context %} · context {{ "{:,}".format(f.context) }}{% endif %} · {{ "{:,}".format(f.output_tokens) }} output tokens{% endif %} {% if l.step %}full transcript · raw{% endif %}
{% if l.questions %}
It is waiting for you: answer {{ l.questions|length }} question{{ "s" if l.questions|length > 1 }}.
{% endif %} {{ box(e, l.wpid, l.meta.state, l.running, l.notes, back="live") }}
{% set base = "/p/%s/%s/live" % (e.name|urlencode, l.wpid) %}

{{ "What it is doing" if l.running else "What it did" }}

{{ lg.bar(base, view, [("feed", "Feed"), ("log", "Log")], "/p/%s/%s/%s" % (e.name|urlencode, l.wpid, l.step.dir) if l.step else None, "log") }}
{% if view == "log" %} {% if l.log %}{{ lg.console(l.log, l.running) }}{% else %}

Nothing in the transcript yet.

{% endif %} {% elif not f or not f.events %}

Nothing in the transcript yet.

{% else %} {% if f.ended %}

Session ended{% if f.ended.error %} with an error{% endif %}{% if f.ended.cost is not none %}: {{ f.ended.cost|money }}, {{ f.ended.turns }} turns{% endif %}.

{% endif %} {% endif %}
{% if dfm %} {% import "_dfm.html" as dfmm with context %}{{ dfmm.style() }} {% set shown = dfm|selectattr("live")|list or dfm[:1] %}

DFM runs this step{% if dfm|length > shown|length %} · {{ dfm|length }} in all{% endif %}

{% for r in shown %}{{ dfmm.panel(r) }}{% endfor %} {% endif %} {% set pr = l.procs %} {% if pr %}

Processes{% if pr.procs %} {{ pr.count }} · {{ pr.rss|bytes }} · {{ pr.cpu_s|secs }} CPU{% endif %}

{% if pr.remote %}

The step runs on {{ pr.remote }}; its processes show only on a board running there.

{% elif not pr.procs %}

None found.

{% else %}
{% for p in pr.procs[:procs_max] %} {% endfor %} {% if pr.count > procs_max %}{% endif %}
PIDCommandCPUMemoryAge
{{ p.pid }} {% if p.depth %}└ {% endif %}{% if p.pid in dfm_pids %}DFM {% endif %}{{ p.cmd }} {{ p.state }} {{ p.cpu_s|secs }}{{ p.rss|bytes }}{{ p.age_s|secs }}
… and {{ pr.count - procs_max }} more
{% endif %} {% endif %} {% if f and f.todos %}

This step's tasks

{% endif %} {% if l.outline %}{{ olm.panel(e, l.wpid, l.outline) }} {% else %}

Outline

No checklist in state/ (an outline.md with - [ ] lines shows here).

{% endif %}

Steps done

{% if l.history %} {% for s in l.history %} {% endfor %}
{{ s.n }} {{ s.cost_usd|money }}{{ s.summary }}
{% else %}

None yet.

{% endif %}
{% endblock %}