{% extends "base.html" %} {% block title %}{{ run.name }} - Capsula Server{% endblock %} {% block content %}

Metadata

ID
{{ run.id }}
Name
{{ run.name }}
Timestamp
{{ run.timestamp.format("%Y-%m-%d %H:%M:%S") }}
Vault
{{ run.vault }}
Project Root
{{ run.project_root }}

Command Execution

Command
{{ run.command|format_command }}
Exit Code
{% match run.exit_code %} {% when Some with (code) %} {{ code }} {% when None %} N/A {% endmatch %}
Duration
{% match run.duration_ms %} {% when Some with (ms) %} {{ ms }}ms {% when None %} N/A {% endmatch %}

Standard Output

{% match run.stdout %} {% when Some with (out) %} {% if out.len() > 0 %}
{{ out }}
{% else %}
(empty)
{% endif %} {% when None %}
(not captured)
{% endmatch %}

Standard Error

{% match run.stderr %} {% when Some with (err) %} {% if err.len() > 0 %}
{{ err }}
{% else %}
(empty)
{% endif %} {% when None %}
(not captured)
{% endmatch %}
{% if pre_run_hooks.len() > 0 %}

Pre-run Hooks ({{ pre_run_hooks.len() }})

{% for hook in pre_run_hooks %}
{{ hook.meta.id }} {% if hook.meta.success %} Success {% else %} Failed {% endif %}
{% match hook.meta.error %} {% when Some with (error_msg) %}
Error: {{ error_msg }}
{% when None %} {% endmatch %} {% match hook.meta.config %} {% when Some with (config) %}
View Config
{{ config|pretty_json }}
{% when None %} {% endmatch %}
View Output
{{ hook.output|pretty_json }}
{% endfor %}
{% endif %} {% if post_run_hooks.len() > 0 %}

Post-run Hooks ({{ post_run_hooks.len() }})

{% for hook in post_run_hooks %}
{{ hook.meta.id }} {% if hook.meta.success %} Success {% else %} Failed {% endif %}
{% match hook.meta.error %} {% when Some with (error_msg) %}
Error: {{ error_msg }}
{% when None %} {% endmatch %} {% match hook.meta.config %} {% when Some with (config) %}
View Config
{{ config|pretty_json }}
{% when None %} {% endmatch %}
View Output
{{ hook.output|pretty_json }}
{% endfor %}
{% endif %} {% if files.len() > 0 %}

Captured Files ({{ files.len() }})

{% for file in files %}
{{ file.path }} {{ file.size }} bytes
Download
{% endfor %}
{% endif %}
{% endblock %}