{t('common.loading', { defaultValue: 'Loading…' })}
} + {state === 'denied' && ( ++ {t('agentProfile.memory.none', { defaultValue: 'Memory is visible to the agent owner and admins.' })} +
+ )} + {state === 'ready' && index && (() => { + const needle = query.trim().toLowerCase(); + const groups = groupSections(index.sections) + .map((group) => ({ + ...group, + sections: group.sections + .map((sec) => ({ + ...sec, + notes: needle + ? sec.notes.filter((n) => `${n.header} ${n.snippet}`.toLowerCase().includes(needle)) + : sec.notes, + })) + .filter((sec) => sec.notes.length > 0), + })); + return ( +
+
+ {group.label}
+
+ -
+ {group.sections.flatMap((sec) => sec.notes).map((n, i) => (
+ group.id === 'journal' ? (
+
- + {n.header} + {n.snippet} + + ) : ( +
-
+
+ ++{n.header}+ {n.snippet &&{n.snippet}} +
+ )
+ ))}
+