{% extends "base.html" %} {% from "_macros.html" import icon, pipeline_actions %} {% block title %}Пайплайны — TG Agent{% endblock %} {% block content %}

Пайплайны контента

Мастер Шаблоны
{% if not llm_configured %} {% endif %} {# === Collapsible Add Form === #}
Новый пайплайн
Доступные переменные: {% for variable in prompt_variables %} {{ "{" }}{{ variable }}{{ "}" }}{% if not loop.last %}, {% endif %} {% endfor %}
{# Source channels — AJAX searchable picker #}
Ничего не найдено
{# Target dialogs — searchable picker #}
{% if selected_phone %} Обновить кэш {% endif %}
{% for account in accounts %} {% set dialogs = cached_dialogs.get(account.phone, []) %} {% for dialog in dialogs %} {% set ref = account.phone ~ "|" ~ dialog.channel_id %} {% set dtype = dialog.channel_type %} {% set dgroup = "dm" if dtype == "dm" else ("channel" if dtype in ("channel", "monoforum") else "group") %} {% endfor %} {% endfor %}
Ничего не найдено
{# === Pipeline Card Grid (unified desktop + mobile) === #} {% if items %}
{% for item in items %} {% set pipeline = item.pipeline %} {% set pipeline_needs_llm_val = needs_llm_map.get(pipeline.id, true) %}
{# Type badge: DAG vs Legacy #} {% if pipeline.pipeline_json %} DAG {% else %} Legacy {% endif %} {# Status indicator #} {% if pipeline.is_active %} {% else %} {% endif %} {{ pipeline.name }} {% if pipeline.id is not none %} ID: {{ pipeline.id }} {% endif %}
{{ pipeline.generation_backend.value }} / {{ pipeline.publish_mode.value }} · {{ pipeline.generate_interval_minutes }} мин {% set nr = next_runs.get(pipeline.id) %} {% if nr %} · следующий: {{ nr|local_dt }} {% endif %}
{# Sources & Targets #}
{% if item.source_titles %}
{{ item.source_titles[:3]|join(", ") }}{% if item.source_titles|length > 3 %} +{{ item.source_titles|length - 3 }}{% endif %}
{% endif %} {% if item.targets %}
{% for target in item.targets[:3] %}{{ target.title or target.dialog_id }}{% if not loop.last %}, {% endif %}{% endfor %}{% if item.targets|length > 3 %} +{{ item.targets|length - 3 }}{% endif %}
{% endif %}
{{ pipeline_actions(pipeline, needs_llm=pipeline_needs_llm_val, llm_configured=llm_configured) }}
{# AI edit row (DAG pipelines) #} {% if pipeline.pipeline_json %}
Загрузка...
{% endif %}
{% endfor %}
{% else %}

Нет созданных пайплайнов.

Создайте из шаблона или заполните форму выше.
{% endif %} {% endblock %}