{% extends "base.html" %} {% from "components/field_renderer.html" import render_field, render_parameter_field, render_hitl_field %} {% block title %}Workbench — {{ agent.name }} — Supervaizer Admin{% endblock %} {% block content %}
{# ── Zone 1: Agent Header & Parameters ─────────────────────────── #}
{# Header row — always visible #}
{# Agent icon #}

{{ agent.name }}

{% if agent.version %} v{{ agent.version }} {% endif %} {% if api_version %} API {{ api_version }} {% endif %}
{% if agent.description %}

{{ agent.description }}

{% endif %}
{# Collapsible parameters panel #}
{% if parameters %}

Agent Parameters

{% for param in parameters %}
{{ render_parameter_field(param, prefix="param_") }}
{% endfor %}
{% else %}
No agent parameters configured.
{% endif %}
{# ── Zone 2: Job Control ────────────────────────────────────────── #}

Job Control

{% if active_job %} {{ active_job.id }} {% endif %}
{# Job fields form #} {% if job_fields %}

Job Parameters

{% for field in job_fields %} {{ render_field(field, prefix="field_") }} {% endfor %}
{% endif %} {# Action buttons #}
{# Validation errors #} {# Start button — always visible #} {# Poll button — visible only when agent has job_poll #} {% if has_poll %} {% endif %} {# Stop button #} {# Status button #}
{# ── Zone 3: Job History ────────────────────────────────────────── #}
Loading...
{# ── Zone 4: Execution Monitor ──────────────────────────────────── #}

Execution Monitor

{% if active_job %} Live {% endif %}
{% if active_job %} {{ active_job.id }} {% endif %}
{% if active_job %} {# Placeholder while HTMX loads — will be replaced by partial #}

Loading job status...

{% else %}

No active job

Start a job above to monitor its execution here.

{% endif %}
{# ── Zone 5: Console Log (bottom panel) ────────────────────────── #}
{# Console header #}
{# Filter buttons + controls #}
{# Collapsible console body #}
{# Placeholder — replaced by HTMX partial #}
Waiting for log events...
{# end workbenchPage #} {# ── Workbench JS ────────────────────────────────────────────────── #} {% endblock %}