{% extends "base.html" %} {% block title %}{{ i18n.text("web-projects-ai-memory") }}{% endblock %} {% block content %}

{{ i18n.text("web-workspace-overview") }}

{{ i18n.text("web-memory-dashboard") }}

{{ i18n.text("web-track-activity-investigate-token-usage-and-coordinate-your-agents") }}

{% include "_icon_envelope.html" %}{{ i18n.text("web-open-inbox-projects") }}
{{ i18n.text("web-projects") }}{{ dashboard.project_count }}{{ i18n.text("web-visible-in-your-workspace") }} {{ i18n.text("web-sessions-agent") }}{{ dashboard.session_count }}{{ i18n.text("web-projects-with-most-sessions-first") }} {{ i18n.text("web-captured-events") }}{{ dashboard.observation_count }}{{ i18n.text("web-projects-with-most-events-first") }} {{ i18n.text("web-compiled-pages") }}{{ dashboard.page_count }}{{ i18n.text("web-projects-with-most-pages-first") }} {{ i18n.text("web-open-sessions") }}{{ dashboard.open_session_count }}{{ i18n.text("web-projects-with-open-sessions") }}

{% if dashboard.last_activity_relative != "" %}{{ i18n.one("web-last-capture-sentence", dashboard.last_activity_relative) }} {% endif %}{{ i18n.text("web-open-means-no-sessionend-was-received-it-can-be-an-active-agent-or-an-interruption-co") }}

{% if let Some(ingest) = dashboard.ingest %}

{{ i18n.text("web-hook-capture-health") }}

{{ i18n.text("web-since-this-server-started-counters-contain-no-prompt-or-command-content") }}

{{ i18n.text("web-accepted") }}
{{ ingest.accepted }}
{{ i18n.text("web-policy-dropped") }}
{{ ingest.dropped_by_policy }}
{{ i18n.text("web-capacity-shed") }}
{{ ingest.shed_saturated }}
{{ i18n.text("web-rate-limited") }}
{{ ingest.shed_rate_limited }}
{% endif %} {% if mail_total > 0 %}
{{ mail_total }} {{ i18n.count("web-count-message", mail_total) }} {{ i18n.text("web-waiting-for-agents-projects") }} {{ i18n.text("web-in") }} {% for item in mail_projects %}{{ item.label }} ({{ item.pending }}){% if !loop.last %}, {% endif %}{% endfor %}{% if mail_hidden > 0 %} {{ i18n.text("web-and") }} {{ mail_hidden }} {{ i18n.text("web-more") }} {{ i18n.count("web-count-project", mail_hidden) }}{% endif %}.
{% endif %} {% if let Some(dialog) = okf_dialog %} {% endif %}

{{ i18n.text("web-your-projects") }} {{ projects.len() }}

{% if projects.is_empty() %}

{{ i18n.text("web-your-workspace-starts-here") }}

{{ i18n.text("web-no-projects-yet-wire-up-a-hook-and-start-a-session") }}

{% else %}
{% for card in projects %}
{{ card.workspace }}

{{ card.project }}

{% if card.pending_inbox > 0 %}{{ card.pending_inbox }} {{ i18n.text("web-inbox-projects") }}{% endif %}

{% if card.agent_summary != "" %}{{ card.agent_summary }}{% else %}{{ i18n.text("web-no-agent-sessions-yet") }}{% endif %}

{{ i18n.text("web-sessions-agent") }}{{ card.session_count }}
{{ i18n.text("web-captured-events") }}{{ card.observation_count }}
{{ i18n.text("web-compiled-pages") }}{{ card.page_count }} {{ i18n.count("web-count-page", card.page_count) }}
{{ i18n.text("web-open-sessions") }}{{ card.open_session_count }}
{% endfor %}

{% endif %}
{{ i18n.text("web-about-compiled-memory") }}

{{ i18n.text("web-pages-are-compiled-from-captured-observations-for-agent-retrieval-use-project-details") }}

{% endblock %}