{# Pipeline viewer — last ~20 build_context calls with per-stage timings. Backed by /debug/pipeline/recent on the helix backend. The "Dev view" toggle is dev-only and defaults ON (handled in JS via localStorage key `helix-pipeline-dev-view`). When OFF, only the summary line is shown; when ON, the per-stage table renders. #}

Pipeline {% if state.pipeline.runs %} {{ state.pipeline.runs|length }} {% endif %}

{% if not state.pipeline.runs %}

No pipeline calls observed yet — send a query through /context to populate this view.

{% else %}

Showing last {{ state.pipeline.runs|length }} of up to {{ state.pipeline.ring_max }} buffered events.

{% for run in state.pipeline.runs %} {% for stage in ["extract", "express", "rerank", "splice", "assemble"] %} {% endfor %} {% endfor %}
Request extract express rerank splice assemble total
{{ run.request_id }} {% if run.stages.get(stage) is not none %} {{ "%.1f"|format(run.stages.get(stage)) }} ms {% else %} {% endif %} {{ "%.1f"|format(run.total_ms) }} ms
{% endif %}