{% extends "base.html" %} {% import "_tabs.html" as tabs with context %} {% import "_snapshot.html" as snap %} {% import "_report.html" as rpm %} {% import "_project_tasks.html" as ptm %} {% import "_answer.html" as ans with context %} {% import "_vscode.html" as vsm %} {% import "_autoopen.html" as aom with context %} {% import "_outline.html" as olm %} {% block title %}{{ e.name }}{% endblock %} {% block crumbs %}/ {{ e.name }}{% endblock %} {% block main %} {{ tabs.top(e, card, "overview", work) }} {% if autoopen and nodes %}{{ aom.form(e, nodes[0].wpid, autoopen) }}{% endif %} {% for n, qs in asks %}{{ ans.form(e, n.wpid, qs, "answer" if loop.first else "answer-" ~ n.short, (n.name or n.short) if n.depth else None, "project") }}{% endfor %} {{ snap.panel(e, card, tl, on, ol) }} {% if ol %}{{ olm.style() }}{{ olm.panel(e, nodes[0].wpid, ol, fold=True, finished=card.lifecycle != "open" or nodes[0].state == "COMPLETED") }}{% endif %} {% set runs = nodes|selectattr("running")|list %} {% if runs %}
{% for n in runs %}{% if not loop.first %}
{% endif %}Running: {{ n.name or n.short }} step {{ n.running.step }}{% if n.running.attempt and n.running.attempt > 1 %}, attempt {{ n.running.attempt }}{% endif %}. Live view · processes{% endfor %}
{% endif %} {% set root = nodes[0] if nodes else None %} {% if root %}{% set sbase = "/p/" ~ (e.name|urlencode) ~ "/" ~ root.wpid ~ "/studio" %}
{% if root.taken_by %}In studio ({{ root.taken_by }}): the runner leaves the root packet alone until it is released. {{ "Return to the studio" if root.taken_by == user else "See the studio" }}{% elif root.taking %}{{ root.taking }} is taking the root packet for the studio after this step. Studio{% else %}Studio: work on this project live with an agent.{% endif %}
{% endif %} {% if rp %}
{{ rpm.panel(e, rp, "/p/" ~ e.name|urlencode ~ "/" ~ rp.wpid ~ "#steps") }}
{% endif %} {% if vsc %}

VS Code sessions

{{ vsm.table(vsc, where=True) }} {{ vsm.scribe_switch(scribe_on, "/p/" ~ (e.name|urlencode) ~ "#vscode-sessions", csrf) }} {% endif %} {% if sv.me or sv.splits %}

Split

{% if sv.me %}{% set m = sv.me %}

A split of {{ m.of }}: the runner works here, on branch {{ m.branch }} from {{ m.base[:8] }}, and {{ m.folder }} is left alone.

{% if m.error %}

{{ m.error }}

{% elif m.diff %}{% set d = m.diff %} {% if d.commits %}

Commits:

{% endif %} {% if d.stat %}
{{ d.stat }}
{% endif %} {% if d.untracked %}

New files: {% for u in d.untracked %}{{ u }}{{ ", " if not loop.last }}{% endfor %}

{% endif %} {% if d.text %}
The diff{% if d.cut %} (cut short){% endif %}
{{ d.text }}
{% endif %} {% if not (d.commits or d.stat or d.untracked) %}

No changes yet.

{% endif %} {% endif %} {% if is_owner and card.lifecycle == "open" %}
{% if m.busy %} {{ m.busy }}{% endif %}
{% endif %} {% if is_owner and card.lifecycle != "open" %}
Check it first… it is {{ card.lifecycle }}
{% endif %} {% endif %} {% if sv.splits %}

Splits of this project:

{% endif %} {% endif %} {% if jobs or is_owner %}

Jobs

{% if jobs %}{% for j in jobs %} {% endfor %}
{{ j.state|upper }} {{ jobs_label(j.cmd, 60) }} · {{ j.by }} · {{ j.start|epoch }}{% if j.state == "running" %} · {{ span(now_t - j.start) }} so far{% elif j.end %} · took {{ span(j.end - j.start) }}{% endif %}{% if j.state == "failed" %} · exit {{ j.exit }}{% endif %}
{% if more_jobs %}

and {{ more_jobs }} older

{% endif %} {% else %}

No jobs yet. A long command you run for this project (wpk run -- make sim in its folder, or below) shows here, and the card waits on it while it runs.

{% endif %} {% if is_owner %}
{% endif %} {% endif %}

Tasks

{{ ptm.table(e, tasks) }} {% if resolve_ok %}{% endif %} {% endblock %}