{% extends "base.html" %} {% block title %}Memory Hub — Agent Wasp{% endblock %} {% block page_css %} {% endblock %} {% block content %} {# ── Type meta ────────────────────────────────────────────────────────────── #} {% set TYPE_META = { "facts": {"color":"#3B82F6","badge":"badge-info"}, "working": {"color":"#F59E0B","badge":"badge-warning"}, "episodic": {"color":"#9CA3AF","badge":"badge-neutral"}, "semantic": {"color":"#8B5CF6","badge":"badge-secondary"}, "policy": {"color":"#A78BFA","badge":"badge-primary"}, "meta": {"color":"#F87171","badge":"badge-error"}, } %} {% set type_counts = [ ("facts",stats.facts),("working",stats.working),("episodic",stats.episodic), ("semantic",stats.semantic),("policy",stats.policy),("meta",stats.meta), ] %} {% set total_safe = stats.total if stats.total > 0 else 1 %} {%- set _dv = namespace(count=stats.total,color="",label="total") -%} {% if current_type and tab=="store" %} {%- for _n,_c in type_counts -%}{%- if _n==current_type -%} {%- set _dv.count=_c -%}{%- set _dv.color=TYPE_META[_n].color -%}{%- set _dv.label=_n -%} {%- endif -%}{%- endfor -%} {% endif %} {% set display_count=_dv.count %}{% set display_color=_dv.color %}{% set display_label=_dv.label %} {# ── Tab definitions ──────────────────────────────────────────────────────── #} {% set tabs = [ ("store", "Store", stats.total, "M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4", "#A78BFA"), ("kg", "Graph", layer_counts.kg_nodes, "M9 3H5a2 2 0 00-2 2v4m6-6h10a2 2 0 012 2v4M9 3v18m0 0h10a2 2 0 002-2V9M9 21H5a2 2 0 01-2-2V9m0 0h18", "#8B5CF6"), ("procedural","Procedural",layer_counts.procedural, "M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01","#F97316"), ("timeline", "Timeline", layer_counts.timeline, "M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z", "#10B981"), ("dreams", "Dreams", layer_counts.dreams, "M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z", "#6366F1"), ] %}
{{ stats.total }} store entries · {{ layer_counts.procedural }} procedures · {{ layer_counts.timeline }} timeline · {{ layer_counts.dreams }} dreams
{{ entry.summary or "(no summary)" }}
No memories{% if search %} for "{{ search }}"{% elif current_type %} of type {{ current_type }}{% endif %}
{% if search or current_type %}Clear{% endif %}{{ node.description }}
{% endif %}No knowledge graph data yet
{{ proc.description }}
{% endif %} {# Trigger keywords #} {% if proc.trigger_keywords %}No procedural memories yet
{{ obs.value }}
{% else %}{{ obs.value }}
{% endif %}No timeline observations yet
{{ dream.reflection }}
{{ dream.reflection }}
No dream cycles yet