"""Shared HTML layout for the internal web UI.""" from __future__ import annotations NAV_ITEMS = ( ("/", "Home"), ("/queue", "Queue"), ("/projects", "Projects"), ("/prompts", "Prompts"), ("/runtime", "Runtime"), ("/audit", "Audit"), ("/worktrees", "Worktrees"), ("/leases", "Leases"), ) MVP_NOTICE = ( "Read-only MVP — Gitea, MCP tools, and canonical workflows remain the " "source of truth. No mutation endpoints." ) def render_page(*, title: str, body_html: str, extra_head: str = "") -> str: nav_links = "".join( f'{label}' for href, label in NAV_ITEMS ) return f""" {title} · MCP Control Plane {extra_head}

MCP Control Plane

{MVP_NOTICE}

{body_html}
"""