{#- SPDX-License-Identifier: Apache-2.0 -#} {#- One pipeline stage (triage, embed or enrich): its controls and the plugins of its kind. -#} {% extends "_base.html" %} {% import "_macros.html" as m with context %} {% import "_plugins.html" as pl with context %} {% block title %}{{ stage_label }} ยท Oaken Mail{% endblock %} {% block body_attrs %} data-refresh="/general.json?stage={{ stage_name }}" data-refresh-seconds="15" data-lazy{% endblock %} {% block main %}

{{ stage_label }}

{{ pl.kind_body(stage_kind, stage_plural, stage_name, "/" ~ stage_name) }} {% if stage_name == "action" and action_waiting is defined %}
Waitingactions that need a yes, and routes nothing answers
{% if action_waiting %}
{% for w in action_waiting %} {% endfor %}
ActionRouteMessageWhyApprove
{{ w.kind }}{{ w.route }}{{ w.message_id }}{{ w.why }} {% if w.kind != "unrouted" %}{% call m.post("action-approve", "/action") %}{% endcall %}{% else %}install an action for this route, then retry the job{% endif %}
{% else %}

Nothing is waiting.

{% endif %}
Recentno message text
{% if action_recent %}
{% for r in action_recent %}{% endfor %}
ActionRouteStatusMessageWhen
{{ r.action }}{{ r.route }}{{ r.status }}{% if r.error %} ({{ r.error }}){% endif %}{{ r.message_id }}{{ r.updated_at }}
{% else %}

No action has run yet.

{% endif %}
{% endif %} {{ pl.usage_card(usage_rows, "/" ~ stage_name, "Model & token usage") }} {{ pl.agents_card(agents, "/" ~ stage_name, "Agents working " ~ (stage_label | lower)) }} {{ pl.dialogs("/" ~ stage_name) }} {% endblock %} {% block scripts %}{% endblock %}