{# ── References panel — compact entity cards, one per entity ─────────── #} {% set inv_refs = analysis.all_entity_refs|selectattr('kind', 'in', ['invocation','parent-invocation','child-invocation','new-invocation','source-invocation','triggered-invocation'])|list %} {% set runner_refs = analysis.all_entity_refs|selectattr('kind', 'in', ['runner','worker'])|list %} {% set task_refs = analysis.all_entity_refs|selectattr('kind', 'equalto', 'task')|list %} {% set wf_refs = analysis.all_entity_refs|selectattr('kind', 'in', ['workflow','sub-workflow','parent-workflow'])|list %} {% set event_refs = analysis.all_entity_refs|selectattr('kind', 'equalto', 'event')|list %} {% set trigger_run_refs = analysis.all_entity_refs|selectattr('kind', 'equalto', 'trigger-run')|list %} {% set atomic_service_refs = analysis.all_entity_refs|selectattr('kind', 'equalto', 'atomic-service-run')|list %} {% set condition_refs = analysis.all_entity_refs|selectattr('kind', 'in', ['condition','valid-condition'])|list %} {% set trigger_refs = analysis.all_entity_refs|selectattr('kind', 'equalto', 'trigger')|list %} {% set details = analysis.ref_details or {} %}
{# ── Invocations ── #} {% if inv_refs %}
info Invocations ({{ inv_refs|length }})
{% for ref in inv_refs %} {% set d = details.get('invocation:' ~ ref.value, {}) %}
{{ ref.value[:12] }}… {% if d.status %} {{ d.status }} {% endif %} timeline
{% if d.task %}
{{ d.task }}
{% endif %}
{% endfor %}
{% endif %} {# ── Runners / Workers ── #} {% if runner_refs %}
memory Runners ({{ runner_refs|length }})
{% for ref in runner_refs %} {% set d = details.get('runner:' ~ ref.value, {}) %}
{% if d.cls %}
{{ d.cls }}
{% endif %} {% if d.hostname %}
{{ d.hostname }}
{% endif %}
{% endfor %}
{% endif %} {# ── Tasks ── #} {% if task_refs %}
task Tasks ({{ task_refs|length }})
{% for ref in task_refs %} {{ ref.value }} {% endfor %}
{% endif %} {# ── Workflows ── #} {% if wf_refs %}
account_tree Workflows ({{ wf_refs|length }})
{% for ref in wf_refs %} {{ ref.value[:12] }}… {% endfor %}
{% endif %} {# ── Events ── #} {% if event_refs %}
bolt Events ({{ event_refs|length }})
{% for ref in event_refs %} {% set d = details.get('event:' ~ ref.value, {}) %}
{{ ref.value[:12] }}… {% if d.matched %} matched {% endif %} {% if d.triggered %} triggered {% endif %}
{% if d.code %}
{{ d.code }}
{% endif %} {% if d.emitted_by_invocation_id %}
by {{ d.emitted_by_invocation_id[:12] }}…
{% endif %}
{% endfor %}
{% endif %} {# ── Trigger Runs ── #} {% if trigger_run_refs %}
play_circle Trigger Runs ({{ trigger_run_refs|length }})
{% for ref in trigger_run_refs %} {% set d = details.get('trigger-run:' ~ ref.value, {}) %}
{{ ref.value[:12] }}… {% if d.logic %} {{ d.logic }} {% endif %} {% if d.timeline_url %} timeline {% endif %}
{% if d.task %}
{{ d.task }}
{% endif %} {% if d.triggered_invocation_id %}
inv {{ d.triggered_invocation_id[:12] }}…
{% endif %}
{% endfor %}
{% endif %} {# ── Atomic Service Runs ── #} {% if atomic_service_refs %}
bolt Atomic Service Runs ({{ atomic_service_refs|length }})
{% for ref in atomic_service_refs %} {% endfor %}
{% endif %} {# ── Conditions ── #} {% if condition_refs %}
rule Conditions ({{ condition_refs|length }})
{% for ref in condition_refs %} {% set d = details.get('condition:' ~ ref.value, {}) if ref.kind == 'condition' else {} %} {% endfor %}
{% endif %} {# ── Triggers ── #} {% if trigger_refs %}
flash_on Triggers ({{ trigger_refs|length }})
{% for ref in trigger_refs %} {% set d = details.get('trigger:' ~ ref.value, {}) %}
trigger {% if d.logic %}{{ d.logic }}{% endif %} {% if d.conditions %}{{ d.conditions }} cond{% endif %}
{{ ref.value }} {% if d.task %}
{{ d.task }}
{% endif %}
{% endfor %}
{% endif %}