{% extends "base.html" %} {% block content %}

Run #{{ run.id }}

Project: {{ run.project.name }}

Back to Project
Project Bible
{% if bible %}
{% for k, v in bible.project_metadata.items() %} {% if k not in ['style', 'length_settings', 'author_details'] %}
{{ k.replace('_', ' ') }}
{{ v }}
{% endif %} {% endfor %} {% if bible.project_metadata.style %}
Style Settings
{% for k, v in bible.project_metadata.style.items() %}
{{ k.replace('_', ' ') }}
{{ v|join(', ') if v is sequence and v is not string else v }}
{% endfor %} {% endif %}
{% for c in bible.characters %} {% endfor %}
NameRoleDescription
{{ c.name }} {{ c.role }} {{ c.description }}
{% for book in bible.books %}
Book {{ book.book_number }}: {{ book.title }}

{{ book.manual_instruction }}

    {% for beat in book.plot_beats %}
  1. {{ beat }}
  2. {% endfor %}
{% endfor %}
{% else %}
Bible data not found for this project.
{% endif %}
Status: {{ run.status|title }}
{{ run.duration() }}
{% if run.status == 'running' %}{{ run.progress }}%{% endif %}
{% for book in books %}
{{ book.folder }}
{% if book.cover %} Book Cover {% else %}

No cover.
{% endif %} {% if loop.first %}
{% endif %}
Back Cover Blurb
{% if book.blurb %}

{{ book.blurb }}

{% else %}

No blurb generated.

{% endif %}
Artifacts
{% for art in book.artifacts %} {{ art.name }} {% else %} No files found. {% endfor %}
{% endfor %}
Total Cost

${{ "%.4f"|format(run.cost) }}

Artifacts

{% if has_cover %}{% endif %} {% if blurb %}{% endif %}

{% if tracking and (tracking.content_warnings or tracking.characters) %}
Story Tracking & Warnings
{% if tracking.content_warnings %}
Content Warnings Detected:
{% for w in tracking.content_warnings %} {{ w }} {% endfor %}
{% endif %} {% if tracking.characters %} {# Check if any character actually has major events to display #} {% set has_events = namespace(value=false) %} {% for name, data in tracking.characters.items() %} {% if data.major_events %}{% set has_events.value = true %}{% endif %} {% endfor %} {% if has_events.value %}
Major Character Events:
{% for name, data in tracking.characters.items() %} {% if data.major_events %}

    {% for evt in data.major_events %}
  • {{ evt }}
  • {% endfor %}
{% endif %} {% endfor %}
{% endif %} {% endif %}
{% endif %}
System Log
Click to Toggle
{{ log_content or "Waiting for logs..." }}
{% endblock %}