{#- SPDX-License-Identifier: Apache-2.0 -#} {#- Shared pieces for the pages that list plugins: a stage's controls, a kind's plugin table and the settings dialogs. Import with context: they read pipeline, plugins and models. -#} {% import "_macros.html" as m with context %} {% macro setting(plugin, field, spec, val, row) %} {% set kinds = (spec.anyOf | map(attribute="type") | list) if spec.anyOf else [spec.type] %}
{{ spec.description }}
{% endif %}The pressure valve: the most {{ stage }} jobs running together. It limits claims, it starts no threads of its own, and with nothing queued it does nothing.{% if not uses_model %} No plugin here uses a model, so this only paces the work.{% endif %}
{% endcall %}| Plugin | Version | {% if kind == "enricher" %}At once | {% endif %}Health | {% if stage %}Model | {% endif %}Enabled | {% if kind == "enricher" %}Pause | {% endif %}Actions |
|---|---|---|---|---|---|---|---|
| {{ p.name }} | {{ p.version }} | {% if kind == "enricher" %}{% set es = pipeline.enrichers.get("enrich." ~ p.name) if pipeline else none %}{% call m.post("limit", back) %} {% endcall %} | {% endif %}{{ health(p) }} | {% if stage %}{% if c and c.choices %}{{ model_picker(c, back, p.name) }} {% else %}—{% endif %} | {% endif %}{{ m.switch("plugin", back, p.enabled, "Enable " ~ p.name, {"name": p.name}, "verb", "enable", "disable") }} | {% if kind == "enricher" %}{{ stage_toggle("enrich." ~ p.name, pipeline.enrichers.get("enrich." ~ p.name) if pipeline else none, back) }} | {% endif %}
{% if kind == "provider" %}{% if accounts | selectattr("provider", "equalto", p.name) | list %}{% endif %}
{% elif has_options %}{% endif %}
{% call m.post("plugin", back) %}{% endcall %}
|
| ↳ {{ ch.name.split("@", 1)[1] }} | {% if kind == "enricher" %} | {% endif %} | {{ health(ch) }} | {% if stage %}— | {% endif %}{{ m.switch("plugin", back, ch.enabled, "Enable " ~ ch.name, {"name": ch.name}, "verb", "enable", "disable") }} | {% if kind == "enricher" %}{% endif %} | {% call m.post("plugin", back) %}{% endcall %} |
| {% if kind == "cache_store" %}No cache plugin installed. Core's own SQLite cache (in raw.db) is in use.{% else %}No {{ label | lower }} installed.{% endif %} | |||||||
| Workspace | Stage | Model | Calls | Cached | In | Out | Saved | Actions |
|---|---|---|---|---|---|---|---|---|
| {{ u.workspace }} | {{ u.stage }} | {% if pick and c and c.choices %}{{ model_picker(c, back, c.label) }} {% else %} {{ u.model_text or "—" }} {% endif %} | {{ "{:,}".format(u.calls) }} | {{ "{:,}".format(u.cached_calls) }} | {{ "{:,}".format(u.tokens_in) }} | {{ "{:,}".format(u.tokens_out) }} | {{ "{:,}".format(u.tokens_saved) }} | {% if c %} {% endif %} |
| No model usage recorded yet. | ||||||||
| Agent | Kinds | Last seen | State | Revoke |
|---|---|---|---|---|
| {{ a.label }} | {{ a.kinds | join(", ") or "—" }} | {{ a.last_seen_at or "never" }} | {% if a.revoked %}revoked{% else %}active{% endif %} | {% if not a.revoked %}{{ m.confirm("revoke-agent", back, "Revoke " ~ a.label, "Revoke " ~ a.label ~ "? Its jobs return to the queue.", "Revoke", {"agent_id": a.id}, "x") }}{% endif %} |
| No agents registered. | ||||
{{ f.hint }}
{% endcall %}| {{ loop.index }}. {{ r.name }} | {{ r.summary }} | {{ m.switch("rule", back, r.enabled, "Rule " ~ r.name, {"plugin": c.name, "rule": r.name}, "run", "on", "off", false, "", false) }} |
next {{ s.next_run[:16] | replace("T", " ") }}{% if s.last_run %} · last {{ s.last_run[:16] | replace("T", " ") }}{% if s.last_result %} ({{ s.last_result }}{% if s.last_new is not none %}, {{ s.last_new }} new{% endif %}){% endif %}{% endif %} {% if s.failures %} · {{ s.failures }} failing{% endif %} {% if s.paused %} · paused{% endif %}
{% if s.problem or s.last_error %}{{ s.problem or s.last_error }}
{% endif %} {% call m.post("schedule", back, "stack") %}"every 15m", or a five-field cron line.
Alerts are muted then; the sync still runs.
This account has no schedule.
{% endif %}No account uses {{ p.name }}.