{% extends "management/base.html" %} {% block content %} {% if screen == "login" %}

{{ i18n.text("web-sign-in") }}

{{ i18n.text("web-use-your-ai-memory-username-and-password") }}

{% else if screen == "password" %}

{{ i18n.text("web-change-password") }}

{{ i18n.text("web-choose-a-new-password-before-continuing-changing-it-signs-out-your-other-browser-sess") }}

{% else if screen == "sessions" %}

{% if admin %}{{ i18n.text("web-all-sessions") }}{% else %}{{ i18n.text("web-your-sessions") }}{% endif %}

{{ i18n.text("web-inspect-captured-events-and-manage-sessions-shared-legacy-sessions-require-an-admin-t") }}

{{ workspace }} / {{ project }}

{% if sessions.is_empty() %}

{{ i18n.text("web-no-sessions-in-this-project-or-no-accessible-projects") }}

{% else %} {% for s in sessions %}{% endfor %}
{{ i18n.text("web-session-agent") }}{{ i18n.text("web-owner") }}{{ i18n.text("web-started-utc") }}{{ i18n.text("web-state") }}{{ i18n.text("web-events") }}{{ i18n.text("web-actions") }}
{{ s.agent }}
{{ s.short_id }}
{{ s.owner }}{{ s.started }}{{ s.state }}{{ s.count }}
{{ i18n.text("web-inspect") }} {% if s.can_delete %}
{% endif %}
{% endif %}
{% else if screen == "session" %}

{{ i18n.text("web-session-events") }}

{{ session_id }}

{% for o in observations %}

{{ o.kind }} · {{ o.title }}

{{ o.body }}
{% endfor %}
{% else if screen == "users" %}

{{ i18n.text("web-users") }}

{{ i18n.text("web-add-operators-and-manage-access-disabling-browser-access-does-not-revoke-existing-mcp") }}

{% for u in users %}

{{ u.username }}

{{ u.name }} · {{ u.role }} · {{ u.status }}

{% endfor %}
{% else if screen == "keys" %}

{{ i18n.text("web-mcp-connection") }}

{{ i18n.text("web-connect-your-coding-agent-with-a-personal-api-key-browser-passwords-and-session-cooki") }}

{{ i18n.text("web-remote-mcp-endpoint") }} {{ mcp_path }}

{{ i18n.text("web-use-your-server-s-origin-with-this-path-and-send-the-key-as-an-authorization-bearer-h") }}

{% for k in keys %}
{{ k.label }} {{ k.preview }} · {% if k.active %}{{ i18n.text("web-active") }}{% else %}{{ i18n.text("web-revoked") }}{% endif %}{% if k.active %}
{% endif %}
{% endfor %}{% if keys.is_empty() %}

{{ i18n.text("web-no-api-keys-yet") }}

{% endif %}
{% else if screen == "secret" %}

{{ secret_title }}

{{ i18n.text("web-shown-once-save-it-now-leaving-this-page-clears-it-from-the-console") }}

{{ secret }}
{{ i18n.text("web-i-saved-it") }}
{% else if screen == "purge" %}

{{ i18n.text("web-delete-session") }}

{{ i18n.text("web-this-removes-captured-events-authored-handoffs-generated-session-page-versions-and-re") }}

{% for c in counts %}
{{ i18n.label(c.label) }}
{{ c.value }}
{% endfor %}
{% endif %} {% if !previous.is_empty() || !next.is_empty() %}{% endif %} {% endblock %}