{% extends "base.html" %} {% import "_console.html" as cv %} {% block title %}Console · {{ m.title or m.id }}{% endblock %} {% block crumbs %}/ Console / {{ m.id }}{% endblock %} {% block head %}{{ cv.style() }}{% endblock %} {% block main %}

{{ m.title or "(no question yet)" }}

about {% if m.wpid %}{{ m.project }} / {{ m.wpid[:8] }}{% elif m.project %}{{ m.project }}{% else %}the server{% endif %} · {{ m.model }} · {{ m.turns }} repl{{ "y" if m.turns == 1 else "ies" }} · {{ m.cost|money or "$0" }} · started {{ m.created|epoch }} by {{ m.by }}{% if busy %} · answering{% endif %}

Read-only. To go on with it, open the console on its page (`); if it is not that page's latest, /sessions {{ m.id.split("-")[-1] }} first. Its files: {{ m.cwd }} was the agent's directory.

{% for x in ev %} {% if x.k == "ask" %}
{{ x.text }}
{{ x.by }} · {{ x.t|epoch }}
{% elif x.k == "say" %}
{% for ln, prop, acted in x.parts %}{% if prop %}{{ prop.line }} {{ acted or ("waited for a click" if not prop.auto else "") }}{% else %}{{ ln }}{% endif %}{% if not loop.last %} {% endif %}{% endfor %}
{% elif x.k == "tool" %}
· {{ x.name }} {{ x.what }}
{% elif x.k == "cmd" %}
{{ x.line }} · {{ "run at once" if x.auto else x.by }}{% if x.ref and not x.auto %} (proposed){% endif %}
{% if x.out.href %}{{ x.out.text }}{% else %}{{ x.out.text }}{% endif %}
{% for l in x.out.lines or [] %}
{% if l.href %}{{ l.text }}{% else %}{{ l.text }}{% endif %}
{% endfor %}
{% elif x.k == "decline" %}
· dismissed a proposal ({{ x.by }})
{% elif x.k == "end" %}
{% if not x.ok %}{{ x.error or "failed" }} · {% endif %}${{ "%.3f"|format(x.cost or 0) }} so far
{% elif x.k == "note" %}
{{ x.text }}
{% endif %} {% else %}

Empty.

{% endfor %}
{% endblock %}