{# The packet's tasks, sub-tasks nested under the task that split them off (docs/concepts.md). #} {% macro table(e, rows, full=False) -%} {% set base = "/p/" ~ (e.name|urlencode) %} {% if rows %}
{% if full %}{% endif %} {% for n in rows %} {% if full %}{% endif %} {% endfor %}
TaskStateStepsNextSpend{{ "Instruction / last summary" if full else "Last summary" }}
{% if n.depth %}└ {% endif %} {% if n.kind == "task" %}{{ n.name }}{% if n.first %} steps {{ n.first }}{% if n.last != n.first %}–{{ n.last }}{% endif %}{% endif %} {% else %}{{ n.name or n.short }}{% if n.name %} {{ n.short }}{% endif %}{% endif %} {% if n.running %}live{% endif %} {% if n.running %}RUNNING{% elif n.state == "NEEDS_INPUT" %}NEEDS_INPUT{% else %}{{ n.state }}{% endif %} {{ n.step }}{% if n.running %}step {{ n.running.step }} attempt {{ n.running.attempt }}{% else %}{{ n.next }}{% endif %}{{ n.cost_usd|money }} {% if full and n.instruction %}
{{ n.instruction }}
{% endif %} {% if n.reason %}[{{ n.reason }}] {% endif %}{{ n.summary }} {% if full and n.report %} · report{% endif %}
{% else %}

No tasks yet.

{% endif %} {%- endmacro %}