{# html/sections/behavior/_processes.html #}
{% for process in behavior.processes %}
{# Embed calls JSON so JS can always parse it reliably #}
{# Fallback: show something even if JS fails completely #} {% if process.calls is defined and process.calls %}
Showing first {{ 100 if process.calls|length > 100 else process.calls|length }} calls (fallback).
{% for call in process.calls[:100] %} {# You can swap this to include your _api_call.html if you want #} {% endfor %}
TimeTIDCallerAPI ArgumentsStatusReturnRepeated
{{ call.timestamp|default('') }} {{ call.thread_id|default('') }} {{ call.caller|default('') }}
{{ call.parentcaller|default('') }}
{{ call.api|default('') }} {% for arg in call.arguments|default([]) %} {{ arg.name|default('') }}: {{ arg.pretty_value|default(arg.value|default('')) }}
{% endfor %}
{% if call.status %}success{% else %}failed{% endif %} {{ call.pretty_return|default(call.return|default('')) }} {% if call.repeated|default(0) > 0 %}{{ call.repeated }}{% endif %}
{% else %}
No API calls available.
{% endif %}
{% endfor %}