Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

feat(ui): the assistant's profile section is named after the assistant

rubenluetke10-beepfa1f7000aaff
diff --git a/jarvis/ui/web/frontend/src/components/icons/sectionIcons.tsx b/jarvis/ui/web/frontend/src/components/icons/sectionIcons.tsx
index 8a7d03d78f..0f8956a148 100644
--- a/jarvis/ui/web/frontend/src/components/icons/sectionIcons.tsx
+++ b/jarvis/ui/web/frontend/src/components/icons/sectionIcons.tsx
@@ -289,6 +289,15 @@ export const InstructionsIcon = defineIcon(
</>,
);
+/** A head in profile with a spark at its brow: the assistant itself. */
+export const AssistantIcon = defineIcon(
+ "AssistantIcon",
+ <>
+ <path d="M9.5 20.5v-2.6a6.5 6.5 0 1 1 8.4-6.2l1.6 2.8h-1.9v2.2a1.8 1.8 0 0 1-1.8 1.8h-1.3v2" />
+ <path d="M12.5 6.6l.55 1.35 1.35.55-1.35.55-.55 1.35-.55-1.35-1.35-.55 1.35-.55Z" />
+ </>,
+);
+
/** An address book with index tabs. */
export const ContactsIcon = defineIcon(
"ContactsIcon",
diff --git a/jarvis/ui/web/frontend/src/components/layout/navGroups.ts b/jarvis/ui/web/frontend/src/components/layout/navGroups.ts
index 0765707d2c..63257ffeaa 100644
--- a/jarvis/ui/web/frontend/src/components/layout/navGroups.ts
+++ b/jarvis/ui/web/frontend/src/components/layout/navGroups.ts
@@ -23,8 +23,8 @@ import {
DocsIcon,
ExtensionsIcon,
FeedbackIcon,
+ AssistantIcon,
InspectorIcon,
- InstructionsIcon,
MarketplaceIcon,
MicrophoneIcon,
PermissionsIcon,
@@ -182,8 +182,8 @@ export const NAV_GROUPS: NavItem[][] = [
{
id: "agent-instructions",
labelKey: "nav.agent_instructions",
- icon: InstructionsIcon,
- fallbackLabel: "Instructions",
+ icon: AssistantIcon,
+ fallbackLabel: "Assistant",
},
{ id: "contacts", labelKey: "nav.contacts", icon: ContactsIcon },
// Spend & Tokens — every token the app spent, priced per provider, model
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/de.json b/jarvis/ui/web/frontend/src/i18n/locales/de.json
index 6bf195dc21..f4b7cc4cd7 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/de.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/de.json
@@ -166,7 +166,7 @@
"group_tools": "Werkzeuge",
"group_you": "Du",
"group_system": "System",
- "agent_instructions": "SOUL.md",
+ "agent_instructions": "{name}",
"appshots": "Appshots",
"shortcuts": "Tastenkürzel",
"pets": "Meine Pets",
@@ -179,74 +179,71 @@
"voice_language": "Sprache",
"voice_api_keys": "API-Keys"
},
- "soul_view": {
- "subtitle": "Das Profil von {name}: Charakter, Gedächtnis und jede Datei, die {name} über sich und über dich liest.",
+ "assistant_view": {
+ "header_named": "Dein Assistent in {0}, geweckt mit „{1}“.",
+ "header_unnamed": "Dein Assistent in {0}. Wähle ein Aktivierungswort, um ihm einen Namen zu geben.",
"reload": "Neu laden",
- "hero_role": "Dein Assistent in {0}",
- "hero_role_unnamed": "Dein Assistent in {0}. Wähle ein Aktivierungswort, um ihm einen Namen zu geben.",
+ "vibe_missing": "Für {name} ist noch kein Charakter aufgeschrieben.",
"learning_on": "Lernt",
- "learning_off": "Lernen pausiert",
+ "learning_off": "Lernt gerade nicht",
"learning_on_hint": "{name} schreibt und korrigiert die eigenen Notizen, während ihr sprecht.",
"learning_off_hint": "Die Lernschleife läuft in dieser Sitzung nicht, deshalb lassen sich Notizen gerade nicht vergessen.",
- "stat_wake": "Aktivierungswort",
- "stat_wake_sub": "gibt {name} den Namen",
- "stat_self": "Über sich",
- "stat_memory": "Gedächtnis",
- "stat_notes": "Notizen",
- "stat_updated": "Letzte Änderung",
- "files_title": "Dateien",
- "files_description": "{name} liest sie zu Beginn jedes Gesprächs.",
- "file_role_soul": "Charakter: wer {name} ist, Ton und Grenzen",
- "file_role_instructions": "Deine Anweisungen: wie {name} mit dir arbeiten soll",
- "file_role_memory": "Gedächtnis: was du dir merken lassen hast, und eigene Arbeitsnotizen",
- "file_role_user": "Über dich: was {name} über dich bemerkt hat",
- "file_by_assistant": "Von {name} geschrieben",
- "file_missing": "Noch nicht angelegt",
- "file_entries": "{0} Notizen",
- "file_chars": "{0} Zeichen",
- "file_updated": "geändert {0}",
- "character_title": "Wer {name} ist",
- "character_description": "Aus SOUL.md. Der Name folgt immer dem Aktivierungswort.",
- "character_edit": "SOUL.md bearbeiten",
- "character_empty": "SOUL.md beschreibt noch keinen Charakter.",
- "character_missing": "SOUL.md wurde noch nicht angelegt. Sie entsteht beim ersten Start des Assistenten.",
+ "fact_memory_one": "{0} Sache gemerkt",
+ "fact_memory_other": "{0} Sachen gemerkt",
+ "fact_changed": "geändert {0}",
+ "character_title": "Charakter",
+ "edit": "Bearbeiten",
+ "who_label": "Über",
"tone_title": "Ton",
"limits_title": "Grenzen",
- "notes_title": "Was {name} gelernt hat",
- "notes_description": "Notizen, die {name} selbst führt. Vergisst du eine, fehlt sie ab dem nächsten Gespräch.",
- "tab_self": "Über sich",
- "tab_memory": "Gedächtnis",
+ "character_empty": "SOUL.md beschreibt noch keinen Charakter.",
+ "character_missing": "SOUL.md wurde noch nicht angelegt. Sie entsteht beim ersten Start.",
+ "memory_title": "Gedächtnis",
+ "tab_memory": "Gemerkt",
"tab_user": "Über dich",
- "empty_soul": "Noch nichts. Sag {name}, wie du es haben willst, und {name} schreibt die Notiz selbst.",
- "empty_memory": "Noch nichts. Sag \"merk dir ...\", und es landet hier.",
+ "tab_self": "Über sich",
+ "empty_memory": "Noch nichts. Sag „merk dir …“, und es landet hier.",
"empty_user": "Noch nichts. Was {name} über dich bemerkt, erscheint hier nach Gesprächen.",
- "explicit_badge": "Von dir",
+ "empty_soul": "Noch nichts. Sag {name}, wie du es haben willst, und {name} schreibt die Notiz selbst.",
+ "explicit": "Von dir",
"forget": "Vergessen",
"forget_done": "Vergessen",
"forget_needs_loop": "Notizen lassen sich nur vergessen, während die Lernschleife läuft.",
- "activity_title": "Letzte Änderungen",
- "activity_description": "Jede Notiz, die {name} hinzugefügt, geändert oder entfernt hat, die neueste zuerst.",
- "activity_empty": "Noch keine Änderungen.",
- "op_add": "Hinzugefügt",
- "op_replace": "Geändert",
- "op_remove": "Entfernt",
- "back": "Zurück zu SOUL.md",
+ "recent_title": "Zuletzt gelernt",
+ "recent_empty": "Noch nichts gelernt.",
+ "op_add": "Hinzugefügt: {0}",
+ "op_replace": "Geändert: {0}",
+ "op_remove": "Entfernt: {0}",
+ "place_memory": "Gedächtnis",
+ "place_user": "Notizen über dich",
+ "place_soul": "Charakter",
+ "said": "Du hast gesagt: „{0}“",
+ "files_title": "Dateien",
+ "files_hint": "{name} liest sie zu Beginn jedes Gesprächs.",
+ "file_role_soul": "Charakter",
+ "file_role_instructions": "Deine Anweisungen",
+ "file_role_memory": "Gedächtnis",
+ "file_role_user": "Über dich",
+ "file_missing": "Noch nicht angelegt",
+ "file_notes_one": "{0} Notiz",
+ "file_notes_other": "{0} Notizen",
+ "file_chars_one": "{0} Zeichen",
+ "file_chars_other": "{0} Zeichen",
"editor_label": "{0} (Markdown)",
- "soul_placeholder": "Beschreibe, wer {name} ist: Rolle, Stimmung, Ton, Grenzen...",
- "instructions_placeholder": "Schreib, wie {name} mit dir arbeiten soll...",
+ "soul_placeholder": "Beschreibe, wer {name} ist: Rolle, Stimmung, Ton, Grenzen …",
+ "instructions_placeholder": "Schreib, wie {name} mit dir arbeiten soll …",
"save": "Speichern",
- "saving": "Speichern...",
+ "saving": "Speichern …",
"saved": "Gespeichert",
"cleared": "Anweisungen geleert",
"revert": "Verwerfen",
"clear": "Leeren",
"unsaved": "Ungespeicherte Änderungen",
- "chars": "{0} Zeichen",
"load_template": "Mit Vorlage starten",
- "soul_note": "Gilt ab der nächsten Antwort von {name}, ohne Neustart. Die Zeile Name folgt dem Aktivierungswort, und {name} ergänzt gelernte Notizen am Ende selbst.",
- "instructions_note": "Gilt ab der nächsten Antwort von {name}, ohne Neustart. Deine Anweisungen prägen Ton, Sprache und Voreinstellungen; Sicherheitsregeln und Bestätigungen heben sie nie auf.",
- "notebook_note": "{name} schreibt diese Datei selbst. Hier kannst du einzelne Notizen vergessen; um eine zu ändern, sag es {name} einfach.",
- "error_title": "Das Profil konnte nicht geladen werden",
+ "soul_note": "Gilt ab der nächsten Antwort von {name}. Der Name folgt dem Aktivierungswort.",
+ "instructions_note": "Gilt ab der nächsten Antwort von {name}. Hebt nie Sicherheitsregeln oder Bestätigungen auf.",
+ "notebook_note": "{name} schreibt diese Datei selbst. Um eine Notiz zu ändern, sag es {name} einfach.",
+ "error_title": "Diese Seite konnte nicht geladen werden",
"retry": "Erneut versuchen"
},
"extensions": {
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/en.json b/jarvis/ui/web/frontend/src/i18n/locales/en.json
index 7e20b42c9c..4b88953179 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/en.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/en.json
@@ -166,7 +166,7 @@
"group_tools": "Tools",
"group_you": "You",
"group_system": "System",
- "agent_instructions": "SOUL.md",
+ "agent_instructions": "{name}",
"appshots": "Appshots",
"shortcuts": "Keyboard shortcuts",
"pets": "My Pets",
@@ -179,74 +179,71 @@
"voice_language": "Language",
"voice_api_keys": "API Keys"
},
- "soul_view": {
- "subtitle": "{name}'s profile: the character, and every file {name} reads about itself and about you.",
+ "assistant_view": {
+ "header_named": "Your assistant in {0}, woken by “{1}”.",
+ "header_unnamed": "Your assistant in {0}. Choose a wake word to give it a name.",
"reload": "Reload",
- "hero_role": "Your assistant in {0}",
- "hero_role_unnamed": "Your assistant in {0}. Pick a wake word to give it a name.",
+ "vibe_missing": "{name} has no character written down yet.",
"learning_on": "Learning",
- "learning_off": "Learning paused",
+ "learning_off": "Not learning right now",
"learning_on_hint": "{name} writes and corrects its notes while you talk.",
"learning_off_hint": "The learning loop is not running in this session, so notes cannot be forgotten right now.",
- "stat_wake": "Wake word",
- "stat_wake_sub": "gives {name} its name",
- "stat_self": "About itself",
- "stat_memory": "Memory",
- "stat_notes": "notes",
- "stat_updated": "Last change",
- "files_title": "Files",
- "files_description": "{name} reads these at the start of every conversation.",
- "file_role_soul": "Character: who {name} is, its tone and its limits",
- "file_role_instructions": "Your instructions: how {name} should work with you",
- "file_role_memory": "Memory: what you asked it to remember, and its working notes",
- "file_role_user": "About you: what {name} has noticed about you",
- "file_by_assistant": "Written by {name}",
- "file_missing": "Not created yet",
- "file_entries": "{0} notes",
- "file_chars": "{0} characters",
- "file_updated": "updated {0}",
- "character_title": "Who {name} is",
- "character_description": "From SOUL.md. The name always follows the wake word.",
- "character_edit": "Edit SOUL.md",
- "character_empty": "SOUL.md does not describe a character yet.",
- "character_missing": "SOUL.md has not been created yet. It appears after the first start of the assistant.",
+ "fact_memory_one": "{0} thing remembered",
+ "fact_memory_other": "{0} things remembered",
+ "fact_changed": "changed {0}",
+ "character_title": "Character",
+ "edit": "Edit",
+ "who_label": "About",
"tone_title": "Tone",
"limits_title": "Limits",
- "notes_title": "What {name} has learned",
- "notes_description": "Notes it keeps by itself. Forget one and it is gone from the next conversation.",
- "tab_self": "About itself",
- "tab_memory": "Memory",
+ "character_empty": "SOUL.md does not describe a character yet.",
+ "character_missing": "SOUL.md has not been created yet. It appears after the first start.",
+ "memory_title": "Memory",
+ "tab_memory": "Remembered",
"tab_user": "About you",
- "empty_soul": "Nothing yet. Tell {name} how it should be, and it writes the note itself.",
- "empty_memory": "Nothing yet. Say \"remember ...\" and it lands here.",
+ "tab_self": "About itself",
+ "empty_memory": "Nothing yet. Say “remember …” and it lands here.",
"empty_user": "Nothing yet. What {name} notices about you appears here after conversations.",
- "explicit_badge": "You asked",
+ "empty_soul": "Nothing yet. Tell {name} how you want it to be, and it writes the note itself.",
+ "explicit": "You asked",
"forget": "Forget",
"forget_done": "Forgotten",
"forget_needs_loop": "Notes can only be forgotten while the learning loop runs.",
- "activity_title": "Recent changes",
- "activity_description": "Every note {name} added, changed or removed, newest first.",
- "activity_empty": "No changes yet.",
- "op_add": "Added",
- "op_replace": "Changed",
- "op_remove": "Removed",
- "back": "Back to SOUL.md",
+ "recent_title": "Recently learned",
+ "recent_empty": "Nothing learned yet.",
+ "op_add": "Added to {0}",
+ "op_replace": "Changed in {0}",
+ "op_remove": "Removed from {0}",
+ "place_memory": "memory",
+ "place_user": "notes about you",
+ "place_soul": "character",
+ "said": "You said: “{0}”",
+ "files_title": "Files",
+ "files_hint": "{name} reads these at the start of every conversation.",
+ "file_role_soul": "Character",
+ "file_role_instructions": "Your instructions",
+ "file_role_memory": "Memory",
+ "file_role_user": "About you",
+ "file_missing": "Not created yet",
+ "file_notes_one": "{0} note",
+ "file_notes_other": "{0} notes",
+ "file_chars_one": "{0} character",
+ "file_chars_other": "{0} characters",
"editor_label": "{0} (Markdown)",
- "soul_placeholder": "Describe who {name} is: role, vibe, tone, limits...",
- "instructions_placeholder": "Write how {name} should work with you...",
+ "soul_placeholder": "Describe who {name} is: role, vibe, tone, limits…",
+ "instructions_placeholder": "Write how {name} should work with you…",
"save": "Save",
- "saving": "Saving...",
+ "saving": "Saving…",
"saved": "Saved",
"cleared": "Instructions cleared",
"revert": "Revert",
"clear": "Clear",
"unsaved": "Unsaved changes",
- "chars": "{0} characters",
"load_template": "Start from template",
- "soul_note": "Applies on {name}'s next message, no restart needed. The Name line follows the wake word, and {name} adds its learned notes at the end by itself.",
- "instructions_note": "Applies on {name}'s next message, no restart needed. Your instructions shape tone, language and defaults; they never override safety rules or confirmations.",
- "notebook_note": "{name} writes this file itself. You can forget single notes here; to change one, just tell {name}.",
- "error_title": "The profile could not be loaded",
+ "soul_note": "Applies from the next reply of {name}. The name follows the wake word.",
+ "instructions_note": "Applies from the next reply of {name}. Never overrides safety rules or confirmations.",
+ "notebook_note": "{name} writes this file itself. To change a note, just tell {name}.",
+ "error_title": "This page could not be loaded",
"retry": "Try again"
},
"extensions": {
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/es.json b/jarvis/ui/web/frontend/src/i18n/locales/es.json
index cdeffa2348..66f0a9b5ec 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/es.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/es.json
@@ -166,7 +166,7 @@
"group_tools": "Herramientas",
"group_you": "Tú",
"group_system": "Sistema",
- "agent_instructions": "SOUL.md",
+ "agent_instructions": "{name}",
"appshots": "Appshots",
"shortcuts": "Atajos de teclado",
"pets": "Mis mascotas",
@@ -179,74 +179,71 @@
"voice_language": "Idioma",
"voice_api_keys": "Claves API"
},
- "soul_view": {
- "subtitle": "El perfil de {name}: quién es y cada archivo que lee sobre sí mismo y sobre ti.",
+ "assistant_view": {
+ "header_named": "Tu asistente en {0}, se despierta con «{1}».",
+ "header_unnamed": "Tu asistente en {0}. Elige una palabra de activación para darle un nombre.",
"reload": "Recargar",
- "hero_role": "Tu asistente en {0}",
- "hero_role_unnamed": "Tu asistente en {0}. Elige una palabra de activación para darle un nombre.",
+ "vibe_missing": "{name} aún no tiene un carácter escrito.",
"learning_on": "Aprendiendo",
- "learning_off": "Aprendizaje en pausa",
+ "learning_off": "No aprende ahora",
"learning_on_hint": "{name} escribe y corrige sus notas mientras habláis.",
"learning_off_hint": "El ciclo de aprendizaje no se está ejecutando en esta sesión, así que ahora no se pueden olvidar notas.",
- "stat_wake": "Palabra de activación",
- "stat_wake_sub": "da a {name} su nombre",
- "stat_self": "Sobre sí",
- "stat_memory": "Memoria",
- "stat_notes": "notas",
- "stat_updated": "Último cambio",
- "files_title": "Archivos",
- "files_description": "{name} los lee al empezar cada conversación.",
- "file_role_soul": "Carácter: quién es {name}, su tono y sus límites",
- "file_role_instructions": "Tus instrucciones: cómo debe trabajar {name} contigo",
- "file_role_memory": "Memoria: lo que le pediste recordar y sus notas de trabajo",
- "file_role_user": "Sobre ti: lo que {name} ha notado de ti",
- "file_by_assistant": "Escrito por {name}",
- "file_missing": "Aún no creado",
- "file_entries": "{0} notas",
- "file_chars": "{0} caracteres",
- "file_updated": "actualizado {0}",
- "character_title": "Quién es {name}",
- "character_description": "De SOUL.md. El nombre siempre sigue a la palabra de activación.",
- "character_edit": "Editar SOUL.md",
- "character_empty": "SOUL.md aún no describe un carácter.",
- "character_missing": "SOUL.md aún no se ha creado. Aparece tras el primer inicio del asistente.",
+ "fact_memory_one": "{0} cosa recordada",
+ "fact_memory_other": "{0} cosas recordadas",
+ "fact_changed": "cambiado {0}",
+ "character_title": "Carácter",
+ "edit": "Editar",
+ "who_label": "Sobre",
"tone_title": "Tono",
"limits_title": "Límites",
- "notes_title": "Lo que {name} ha aprendido",
- "notes_description": "Notas que lleva por sí mismo. Si olvidas una, desaparece desde la próxima conversación.",
- "tab_self": "Sobre sí",
- "tab_memory": "Memoria",
+ "character_empty": "SOUL.md aún no describe un carácter.",
+ "character_missing": "SOUL.md aún no se ha creado. Aparece tras el primer inicio.",
+ "memory_title": "Memoria",
+ "tab_memory": "Recordado",
"tab_user": "Sobre ti",
- "empty_soul": "Nada aún. Dile a {name} cómo quieres que sea y {name} escribirá la nota.",
- "empty_memory": "Nada aún. Di \"recuerda ...\" y aparecerá aquí.",
+ "tab_self": "Sobre sí",
+ "empty_memory": "Nada aún. Di «recuerda …» y aparecerá aquí.",
"empty_user": "Nada aún. Lo que {name} note de ti aparecerá aquí tras las conversaciones.",
- "explicit_badge": "Lo pediste",
+ "empty_soul": "Nada aún. Dile a {name} cómo quieres que sea y {name} escribirá la nota.",
+ "explicit": "Lo pediste",
"forget": "Olvidar",
"forget_done": "Olvidado",
"forget_needs_loop": "Las notas solo se pueden olvidar mientras el ciclo de aprendizaje está activo.",
- "activity_title": "Cambios recientes",
- "activity_description": "Cada nota que {name} añadió, cambió o quitó, la más reciente primero.",
- "activity_empty": "Aún no hay cambios.",
- "op_add": "Añadida",
- "op_replace": "Cambiada",
- "op_remove": "Quitada",
- "back": "Volver a SOUL.md",
+ "recent_title": "Aprendido hace poco",
+ "recent_empty": "Aún no ha aprendido nada.",
+ "op_add": "Añadido a {0}",
+ "op_replace": "Cambiado en {0}",
+ "op_remove": "Quitado de {0}",
+ "place_memory": "la memoria",
+ "place_user": "las notas sobre ti",
+ "place_soul": "el carácter",
+ "said": "Dijiste: «{0}»",
+ "files_title": "Archivos",
+ "files_hint": "{name} los lee al empezar cada conversación.",
+ "file_role_soul": "Carácter",
+ "file_role_instructions": "Tus instrucciones",
+ "file_role_memory": "Memoria",
+ "file_role_user": "Sobre ti",
+ "file_missing": "Aún no creado",
+ "file_notes_one": "{0} nota",
+ "file_notes_other": "{0} notas",
+ "file_chars_one": "{0} carácter",
+ "file_chars_other": "{0} caracteres",
"editor_label": "{0} (Markdown)",
- "soul_placeholder": "Describe quién es {name}: rol, estilo, tono, límites...",
- "instructions_placeholder": "Escribe cómo debe trabajar {name} contigo...",
+ "soul_placeholder": "Describe quién es {name}: rol, estilo, tono, límites…",
+ "instructions_placeholder": "Escribe cómo debe trabajar {name} contigo…",
"save": "Guardar",
- "saving": "Guardando...",
+ "saving": "Guardando…",
"saved": "Guardado",
"cleared": "Instrucciones borradas",
"revert": "Descartar",
"clear": "Borrar",
"unsaved": "Cambios sin guardar",
- "chars": "{0} caracteres",
"load_template": "Empezar con la plantilla",
- "soul_note": "Se aplica en el próximo mensaje de {name}, sin reiniciar. La línea Name sigue a la palabra de activación, y {name} añade sus notas aprendidas al final por sí mismo.",
- "instructions_note": "Se aplica en el próximo mensaje de {name}, sin reiniciar. Tus instrucciones definen tono, idioma y valores por defecto; nunca anulan las reglas de seguridad ni las confirmaciones.",
- "notebook_note": "{name} escribe este archivo por sí mismo. Aquí puedes olvidar notas sueltas; para cambiar una, díselo a {name}.",
- "error_title": "No se pudo cargar el perfil",
+ "soul_note": "Se aplica desde la próxima respuesta de {name}. El nombre sigue a la palabra de activación.",
+ "instructions_note": "Se aplica desde la próxima respuesta de {name}. Nunca anula las reglas de seguridad ni las confirmaciones.",
+ "notebook_note": "{name} escribe este archivo por sí mismo. Para cambiar una nota, díselo a {name}.",
+ "error_title": "No se pudo cargar esta página",
"retry": "Reintentar"
},
"extensions": {
diff --git a/jarvis/ui/web/frontend/src/lib/quickSwitch.ts b/jarvis/ui/web/frontend/src/lib/quickSwitch.ts
index 76db044222..923931f896 100644
--- a/jarvis/ui/web/frontend/src/lib/quickSwitch.ts
+++ b/jarvis/ui/web/frontend/src/lib/quickSwitch.ts
@@ -82,7 +82,7 @@ const ALIASES: Partial<Record<string, readonly string[]>> = {
sessions: ["transcripts", "recordings", "history"],
run_inspector: ["runs", "debug", "trace"],
computers: ["servers", "ssh", "vps", "remote", "machines"],
- "agent-instructions": ["soul", "soul md", "character", "persona", "instructions", "memory md", "agents md"],
+ "agent-instructions": ["assistant", "soul", "soul md", "character", "persona", "instructions", "memory md"],
marketplace: ["store", "shop", "install"],
board: ["stats", "dashboard", "activity"],
docs: ["documentation", "help", "manual"],
diff --git a/jarvis/ui/web/frontend/src/store/events.ts b/jarvis/ui/web/frontend/src/store/events.ts
index 84280aac92..9f7ed434b5 100644
--- a/jarvis/ui/web/frontend/src/store/events.ts
+++ b/jarvis/ui/web/frontend/src/store/events.ts
@@ -246,7 +246,7 @@ export const SECTION_LABELS: Record<SectionId, string> = {
taskbar: "Taskbar",
contacts: "Contacts",
feedback: "Feedback",
- "agent-instructions": "SOUL.md",
+ "agent-instructions": "Assistant",
appshots: "Appshots",
shortcuts: "Keyboard shortcuts",
pets: "My Pets",
diff --git a/jarvis/ui/web/frontend/src/views/SoulView.test.tsx b/jarvis/ui/web/frontend/src/views/AssistantProfileView.test.tsx
similarity index 53%
rename from jarvis/ui/web/frontend/src/views/SoulView.test.tsx
rename to jarvis/ui/web/frontend/src/views/AssistantProfileView.test.tsx
index f7302feda9..6d1a4400af 100644
--- a/jarvis/ui/web/frontend/src/views/SoulView.test.tsx
+++ b/jarvis/ui/web/frontend/src/views/AssistantProfileView.test.tsx
@@ -1,19 +1,18 @@
/**
- * Component tests for the SOUL.md section — the assistant's own profile.
+ * Component tests for the assistant's profile section.
*
- * What these pin: the page is called SOUL.md (never "{name}.md", which a live
- * call confused with the character file), it lists every file the assistant
- * reads, its character comes from SOUL.md as rows, explicit memories say so,
- * a note can be forgotten only while the learning loop runs, and the files
- * open in place — SOUL.md and the instructions as editors that save to their
- * own endpoints.
+ * What these pin: the page carries the assistant's name (never a file name),
+ * its vibe leads the page, the character reads from SOUL.md without repeating
+ * the vibe, explicit memories say so, a note can be forgotten only while the
+ * learning loop runs, plural counts are right, and the files open in place —
+ * SOUL.md and the instructions as editors that save to their own endpoints.
*/
import { afterEach, describe, expect, it, vi } from "vitest";
import { cleanup, fireEvent, render, screen, waitFor, within } from "@testing-library/react";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
-import { SoulView } from "@/views/SoulView";
-import type { SoulProfile } from "@/views/soul/api";
+import { AssistantProfileView } from "@/views/AssistantProfileView";
+import type { SoulProfile } from "@/views/assistant/api";
function renderWithClient(node: React.ReactNode) {
const client = new QueryClient({
@@ -24,10 +23,10 @@ function renderWithClient(node: React.ReactNode) {
function profile(overrides: Partial<SoulProfile> = {}): SoulProfile {
return {
- name: "George",
+ name: "Nova",
named: true,
product: "Personal Jarvis",
- wake_phrase: "Hey George",
+ wake_phrase: "Hey Nova",
learning: true,
files: [
{
@@ -37,7 +36,7 @@ function profile(overrides: Partial<SoulProfile> = {}): SoulProfile {
editable: true,
updated_ms: Date.now(),
chars: 120,
- content: "# My own persona\n\n## Who I am\n\n- **Name:** George\n- **Vibe:** Dry and direct.\n",
+ content: "# My own persona\n\n## Who I am\n\n- **Name:** Nova\n- **Vibe:** Dry and direct.\n",
character: {
who: [
{ label: "Role", text: "Personal voice assistant." },
@@ -47,17 +46,17 @@ function profile(overrides: Partial<SoulProfile> = {}): SoulProfile {
limits: [{ label: "", text: "No made-up facts." }],
},
learned: [{ id: "s1", text: "Answers in short spoken sentences.", importance: 5, origin: "review", explicit: false }],
- name_in_file: "George",
+ name_in_file: "Nova",
},
{
id: "instructions",
- filename: "George.md",
+ filename: "Nova.md",
exists: true,
editable: true,
updated_ms: Date.now(),
chars: 21,
content: "Call me Ruben, please.",
- template: "# How George should work with me\n",
+ template: "# How Nova should work with me\n",
},
{
id: "memory",
@@ -103,11 +102,7 @@ function installFetch(routes: Record<string, Handler>) {
const handler = routes[key];
if (!handler) throw new Error(`unexpected fetch ${key}`);
const { status = 200, body } = handler(init);
- return {
- ok: status >= 200 && status < 300,
- status,
- json: async () => body,
- } as Response;
+ return { ok: status >= 200 && status < 300, status, json: async () => body } as Response;
});
(globalThis as unknown as { fetch: typeof fetch }).fetch = fetchMock as unknown as typeof fetch;
return calls;
@@ -118,77 +113,89 @@ afterEach(() => {
vi.restoreAllMocks();
});
-describe("SoulView", () => {
- it("is called SOUL.md and lists every file the assistant reads", async () => {
+describe("AssistantProfileView", () => {
+ it("is titled with the assistant's name and leads with its vibe", async () => {
installFetch({ "GET /api/soul": () => ({ body: profile() }) });
- renderWithClient(<SoulView />);
-
- expect(await screen.findByTestId("soul-hero")).toBeTruthy();
- expect(screen.getByRole("heading", { level: 1 }).textContent).toBe("SOUL.md");
- expect(screen.getByText("Hey George")).toBeTruthy();
- expect(screen.getByTestId("soul-vibe").textContent).toBe("Dry and direct.");
-
- const files = screen.getByTestId("soul-files");
- for (const name of ["SOUL.md", "George.md", "MEMORY.md", "USER.md"]) {
- expect(within(files).getByText(name)).toBeTruthy();
- }
- expect(within(screen.getByTestId("soul-file-user")).getByText(/Not created yet/)).toBeTruthy();
+ renderWithClient(<AssistantProfileView />);
+
+ expect(await screen.findByTestId("assistant-intro")).toBeTruthy();
+ expect(screen.getByRole("heading", { level: 1 }).textContent).toBe("Nova");
+ expect(screen.getByText(/woken by “Hey Nova”/)).toBeTruthy();
+ expect(screen.getByTestId("assistant-vibe").textContent).toBe("Dry and direct.");
+ expect(screen.getByText("1 thing remembered")).toBeTruthy();
+ expect(screen.getByTestId("assistant-learning").textContent).toBe("Learning");
});
- it("shows the character from SOUL.md and an explicit memory as one", async () => {
+ it("shows the character without repeating the vibe", async () => {
installFetch({ "GET /api/soul": () => ({ body: profile() }) });
- renderWithClient(<SoulView />);
+ renderWithClient(<AssistantProfileView />);
- const character = await screen.findByTestId("soul-character");
+ const character = await screen.findByTestId("assistant-character");
expect(within(character).getByText("Personal voice assistant.")).toBeTruthy();
expect(within(character).getByText("No corporate-speak.")).toBeTruthy();
+ expect(within(character).queryByText("Dry and direct.")).toBeNull();
+ });
+
+ it("lists memories with who asked, and the ledger with the person's words", async () => {
+ installFetch({ "GET /api/soul": () => ({ body: profile() }) });
+ renderWithClient(<AssistantProfileView />);
- const notes = screen.getByTestId("soul-notes");
- expect(within(notes).getByText("Answers in short spoken sentences.")).toBeTruthy();
- fireEvent.click(within(notes).getByRole("button", { name: /^Memory/ }));
- expect(within(notes).getByText("The sister is called Lena.")).toBeTruthy();
- expect(within(notes).getByText("You asked")).toBeTruthy();
+ const memory = await screen.findByTestId("assistant-memory");
+ expect(within(memory).getByText("The sister is called Lena.")).toBeTruthy();
+ expect(within(memory).getByText(/You asked/)).toBeTruthy();
+ fireEvent.click(within(memory).getByRole("button", { name: /About itself/ }));
+ expect(within(memory).getByText("Answers in short spoken sentences.")).toBeTruthy();
- const activity = screen.getByTestId("soul-activity");
- expect(within(activity).getByText("“merk dir das”")).toBeTruthy();
+ const recent = screen.getByTestId("assistant-recent");
+ expect(within(recent).getByText("Added to memory")).toBeTruthy();
+ expect(within(recent).getByText("You said: “merk dir das”")).toBeTruthy();
+ });
+
+ it("counts files in the right number", async () => {
+ installFetch({ "GET /api/soul": () => ({ body: profile() }) });
+ renderWithClient(<AssistantProfileView />);
+
+ expect(within(await screen.findByTestId("assistant-file-memory")).getByText(/^1 note ·/)).toBeTruthy();
+ expect(within(screen.getByTestId("assistant-file-user")).getByText("Not created yet")).toBeTruthy();
});
it("forgets a note through the soul endpoint", async () => {
const calls = installFetch({
"GET /api/soul": () => ({ body: profile() }),
- "DELETE /api/soul/entries/soul/s1": () => ({
- body: profile({ files: profile().files.map((f) => (f.id === "soul" ? { ...f, learned: [] } : f)) }),
+ "DELETE /api/soul/entries/memory/m1": () => ({
+ body: profile({ files: profile().files.map((f) => (f.id === "memory" ? { ...f, entries: [] } : f)) }),
}),
});
- renderWithClient(<SoulView />);
+ renderWithClient(<AssistantProfileView />);
- const notes = await screen.findByTestId("soul-notes");
- fireEvent.click(within(notes).getByRole("button", { name: /Forget: Answers/ }));
- await waitFor(() => expect(within(notes).getByTestId("soul-notes-empty-soul")).toBeTruthy());
- expect(calls.some((c) => c.url === "/api/soul/entries/soul/s1" && c.init?.method === "DELETE")).toBe(true);
+ const memory = await screen.findByTestId("assistant-memory");
+ fireEvent.click(within(memory).getByRole("button", { name: /Forget: The sister/ }));
+ await waitFor(() => expect(within(memory).getByTestId("assistant-notes-empty-memory")).toBeTruthy());
+ expect(calls.some((c) => c.url === "/api/soul/entries/memory/m1" && c.init?.method === "DELETE")).toBe(true);
});
it("cannot forget while the learning loop is off", async () => {
installFetch({ "GET /api/soul": () => ({ body: profile({ learning: false }) }) });
- renderWithClient(<SoulView />);
+ renderWithClient(<AssistantProfileView />);
- const notes = await screen.findByTestId("soul-notes");
- const forget = within(notes).getByRole("button", { name: /Forget: Answers/ }) as HTMLButtonElement;
+ const memory = await screen.findByTestId("assistant-memory");
+ const forget = within(memory).getByRole("button", { name: /Forget: The sister/ }) as HTMLButtonElement;
expect(forget.disabled).toBe(true);
- expect(screen.getByTestId("soul-learning").textContent).toBe("Learning paused");
+ expect(screen.getByTestId("assistant-learning").textContent).toBe("Not learning right now");
});
- it("opens SOUL.md as an editor that saves to /api/soul/file", async () => {
+ it("edits SOUL.md in place and saves it to /api/soul/file", async () => {
const calls = installFetch({
"GET /api/soul": () => ({ body: profile() }),
"PUT /api/soul/file": () => ({ body: profile() }),
});
- renderWithClient(<SoulView />);
+ renderWithClient(<AssistantProfileView />);
- fireEvent.click(await screen.findByTestId("soul-file-soul"));
- const editor = (await screen.findByTestId("soul-file-editor")) as HTMLTextAreaElement;
+ const character = await screen.findByTestId("assistant-character");
+ fireEvent.click(within(character).getByRole("button", { name: "Edit" }));
+ const editor = (await screen.findByTestId("assistant-file-editor")) as HTMLTextAreaElement;
expect(editor.value).toContain("## Who I am");
- const save = screen.getByTestId("soul-file-save") as HTMLButtonElement;
+ const save = screen.getByTestId("assistant-file-save") as HTMLButtonElement;
expect(save.disabled).toBe(true);
fireEvent.change(editor, { target: { value: `${editor.value}\n- **Humor:** dry` } });
@@ -197,8 +204,8 @@ describe("SoulView", () => {
const put = calls.find((c) => c.url === "/api/soul/file");
expect(JSON.parse(String(put?.init?.body)).content).toContain("- **Humor:** dry");
- fireEvent.click(screen.getByTestId("soul-back"));
- expect(await screen.findByTestId("soul-hero")).toBeTruthy();
+ fireEvent.click(screen.getByTestId("assistant-back"));
+ expect(await screen.findByTestId("assistant-intro")).toBeTruthy();
});
it("saves the instructions file to the agent-instructions endpoint", async () => {
@@ -206,25 +213,15 @@ describe("SoulView", () => {
"GET /api/soul": () => ({ body: profile() }),
"PUT /api/settings/agent-instructions": () => ({ body: { ok: true } }),
});
- renderWithClient(<SoulView />);
+ renderWithClient(<AssistantProfileView />);
- fireEvent.click(await screen.findByTestId("soul-file-instructions"));
- const editor = (await screen.findByTestId("soul-file-editor")) as HTMLTextAreaElement;
+ fireEvent.click(await screen.findByTestId("assistant-file-instructions"));
+ const editor = (await screen.findByTestId("assistant-file-editor")) as HTMLTextAreaElement;
expect(editor.value).toBe("Call me Ruben, please.");
fireEvent.change(editor, { target: { value: "Call me Ruben. Answer in German." } });
- fireEvent.click(screen.getByTestId("soul-file-save"));
+ fireEvent.click(screen.getByTestId("assistant-file-save"));
await waitFor(() =>
expect(calls.some((c) => c.url === "/api/settings/agent-instructions" && c.init?.method === "PUT")).toBe(true),
);
});
-
- it("shows a notebook as its notes, not as an editor", async () => {
- installFetch({ "GET /api/soul": () => ({ body: profile() }) });
- renderWithClient(<SoulView />);
-
- fireEvent.click(await screen.findByTestId("soul-file-memory"));
- const page = await screen.findByTestId("soul-page-memory");
- expect(within(page).getByText("The sister is called Lena.")).toBeTruthy();
- expect(screen.queryByTestId("soul-file-editor")).toBeNull();
- });
});
diff --git a/jarvis/ui/web/frontend/src/views/AssistantProfileView.tsx b/jarvis/ui/web/frontend/src/views/AssistantProfileView.tsx
new file mode 100644
index 0000000000..da02e96bd7
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/views/AssistantProfileView.tsx
@@ -0,0 +1,145 @@
+/**
+ * AssistantProfileView — the assistant's own profile, named after it.
+ *
+ * The section carries the assistant's name (the wake word's name: "George",
+ * "Nova", …). It was briefly titled "SOUL.md" and before that "{name}.md",
+ * after one of its files — but the person thinks of the assistant, not of
+ * its files, so the files are one part of the page rather than its title.
+ *
+ * Set as one document, not a stack of cards:
+ *
+ * George (page header)
+ * Your assistant in Personal Jarvis, woken by "Hey George".
+ *
+ * [pet] Helpful but not obsequious. Direct, … (the vibe, as the lead)
+ * ● Learning · 1 thing remembered · changed today
+ * ────────────────────────────────────────────────────────────
+ * Character Edit
+ * Role … / Tone … / Limits …
+ * ────────────────────────────────────────────────────────────
+ * Memory [Remembered · About you · About itself]
+ * ────────────────────────────────────────────────────────────
+ * Recently learned — the ledger, with the person's words
+ * ────────────────────────────────────────────────────────────
+ * Files SOUL.md · George.md · MEMORY.md · USER.md →
+ *
+ * A file opens in place with a way back, like USER.md on the Profile page.
+ */
+import { useEffect, useRef, useState } from "react";
+import { RefreshCw } from "lucide-react";
+
+import { PageHeader } from "@/components/layout/PageHeader";
+import { Button } from "@/components/ui/button";
+import { useT } from "@/i18n";
+import { cn } from "@/lib/utils";
+import { fileOf, useSoulProfile, type SoulFileId, type SoulProfile } from "@/views/assistant/api";
+import { CharacterSection } from "@/views/assistant/CharacterSection";
+import { FilePage } from "@/views/assistant/FilePage";
+import { FilesSection } from "@/views/assistant/FilesSection";
+import { Intro } from "@/views/assistant/Intro";
+import { MemorySection } from "@/views/assistant/MemorySection";
+import { RecentSection } from "@/views/assistant/RecentSection";
+import { TextAction } from "@/views/assistant/Section";
+
+/** The reading column — the same measure as the Profile page. */
+const COLUMN = "mx-auto w-full max-w-[760px]";
+
+function headerLine(t: (key: string) => string, profile: SoulProfile | undefined): string | undefined {
+ if (!profile) return undefined;
+ if (profile.named && profile.wake_phrase) {
+ return t("assistant_view.header_named").replace("{0}", profile.product).replace("{1}", profile.wake_phrase);
+ }
+ return t("assistant_view.header_unnamed").replace("{0}", profile.product);
+}
+
+export function AssistantProfileView() {
+ const t = useT();
+ const { data, isLoading, error, refetch, isRefetching } = useSoulProfile();
+ const [open, setOpen] = useState<SoulFileId | null>(null);
+
+ // Switching between the page and a file starts at the top.
+ const scrollRef = useRef<HTMLDivElement | null>(null);
+ useEffect(() => {
+ scrollRef.current?.scrollTo?.({ top: 0 });
+ }, [open]);
+
+ const openFile = open && data ? data.files.find((f) => f.id === open) : undefined;
+
+ return (
+ <div ref={scrollRef} className="flex h-full flex-col overflow-y-auto bg-background px-8 pb-12 scrollbar-jarvis">
+ <div className={COLUMN}>
+ <PageHeader
+ title={data?.name ?? t("nav.agent_instructions")}
+ description={headerLine(t, data)}
+ actions={
+ <Button
+ type="button"
+ size="icon"
+ variant="ghost"
+ className="text-muted-foreground"
+ onClick={() => void refetch()}
+ disabled={isRefetching}
+ title={t("assistant_view.reload")}
+ aria-label={t("assistant_view.reload")}
+ >
+ <RefreshCw className={cn(isRefetching && "animate-spin")} />
+ </Button>
+ }
+ />
+
+ {isLoading && <ProfileSkeleton label={t("common.loading")} />}
+
+ {error && (
+ <div role="alert" className="border-t border-border pt-7">
+ <p className="text-base font-medium text-foreground-strong">{t("assistant_view.error_title")}</p>
+ <p className="mt-1 text-base text-muted-foreground">{error.message}</p>
+ <TextAction className="mt-3" onClick={() => void refetch()}>
+ {t("assistant_view.retry")}
+ </TextAction>
+ </div>
+ )}
+
+ {data && openFile && (
+ <FilePage file={openFile} name={data.name} canForget={data.learning} onBack={() => setOpen(null)} />
+ )}
+
+ {data && !openFile && (
+ <div className="flex flex-col gap-10">
+ <Intro profile={data} />
+ <CharacterSection soul={fileOf(data, "soul")} onEdit={() => setOpen("soul")} />
+ <MemorySection profile={data} />
+ <RecentSection activity={data.activity} />
+ <FilesSection files={data.files} onOpen={setOpen} />
+ </div>
+ )}
+ </div>
+ </div>
+ );
+}
+
+/** The real layout at its real height; nothing stands in for a missing fact. */
+function ProfileSkeleton({ label }: { label: string }) {
+ return (
+ <div role="status" aria-busy="true" aria-label={label} className="flex flex-col gap-10">
+ <div className="flex items-center gap-8 pt-1">
+ <div className="h-24 w-24 shrink-0 animate-pulse rounded-full bg-secondary" />
+ <div className="flex min-w-0 flex-1 flex-col gap-3">
+ <div className="h-5 w-11/12 animate-pulse rounded-md bg-secondary" />
+ <div className="h-5 w-2/3 animate-pulse rounded-md bg-secondary" />
+ <div className="h-3.5 w-56 max-w-full animate-pulse rounded-full bg-secondary" />
+ </div>
+ </div>
+ {[0, 1].map((i) => (
+ <div key={i} className="border-t border-border pt-7">
+ <div className="h-5 w-28 animate-pulse rounded-md bg-secondary" />
+ {[0, 1, 2].map((j) => (
+ <div key={j} className="mt-5 flex gap-8">
+ <div className="h-4 w-24 animate-pulse rounded-full bg-secondary" />
+ <div className="h-4 flex-1 animate-pulse rounded-full bg-secondary" />
+ </div>
+ ))}
+ </div>
+ ))}
+ </div>
+ );
+}
diff --git a/jarvis/ui/web/frontend/src/views/SettingsHubView.test.tsx b/jarvis/ui/web/frontend/src/views/SettingsHubView.test.tsx
index e6603e6a3e..f4b124a375 100644
--- a/jarvis/ui/web/frontend/src/views/SettingsHubView.test.tsx
+++ b/jarvis/ui/web/frontend/src/views/SettingsHubView.test.tsx
@@ -69,8 +69,8 @@ vi.mock("@/views/SettingsView", () => ({
),
}));
vi.mock("@/views/ProfileView", () => ({ ProfileView: stub("TAB_PROFILE") }));
-vi.mock("@/views/SoulView", () => ({
- SoulView: stub("TAB_INSTRUCTIONS"),
+vi.mock("@/views/AssistantProfileView", () => ({
+ AssistantProfileView: stub("TAB_INSTRUCTIONS"),
}));
vi.mock("@/views/contacts/ContactsView", () => ({
ContactsView: stub("TAB_CONTACTS"),
diff --git a/jarvis/ui/web/frontend/src/views/SettingsHubView.tsx b/jarvis/ui/web/frontend/src/views/SettingsHubView.tsx
index da43b35a5e..3db40a29a5 100644
--- a/jarvis/ui/web/frontend/src/views/SettingsHubView.tsx
+++ b/jarvis/ui/web/frontend/src/views/SettingsHubView.tsx
@@ -23,7 +23,7 @@ import { cn } from "@/lib/utils";
* (General · System · Activity) and the selected section on the right:
*
* General: Settings, Keyboard shortcuts, Appshots, My Pets, Profile,
- * SOUL.md, Contacts, Socials
+ * {name} (the assistant), Contacts, Socials
* System: Computers, API Keys, Local models, Jarvis actions
* Activity: Spend, Feedback
*
@@ -47,8 +47,8 @@ const SettingsTab = lazy(() =>
const ProfileTab = lazy(() =>
import("@/views/ProfileView").then((m) => ({ default: m.ProfileView })),
);
-const SoulTab = lazy(() =>
- import("@/views/SoulView").then((m) => ({ default: m.SoulView })),
+const AssistantTab = lazy(() =>
+ import("@/views/AssistantProfileView").then((m) => ({ default: m.AssistantProfileView })),
);
const ContactsTab = lazy(() =>
import("@/views/contacts/ContactsView").then((m) => ({
@@ -141,7 +141,7 @@ const HUB_NAV_GROUPS: readonly { labelKey: string; ids: readonly HubNavId[] }[]
const TAB_CONTENT: Record<HubNavId | "telephony-setup", LazyExoticComponent<ComponentType>> = {
settings: SettingsTab,
profile: ProfileTab,
- "agent-instructions": SoulTab,
+ "agent-instructions": AssistantTab,
contacts: ContactsTab,
socials: SocialsTab,
apikeys: ApiKeysTab,
diff --git a/jarvis/ui/web/frontend/src/views/SoulView.tsx b/jarvis/ui/web/frontend/src/views/SoulView.tsx
deleted file mode 100644
index 30aa73763d..0000000000
--- a/jarvis/ui/web/frontend/src/views/SoulView.tsx
+++ /dev/null
@@ -1,153 +0,0 @@
-/**
- * SoulView — the assistant's own profile, named after its character file.
- *
- * Until 2026-10-02 this section was an editor for one file named after the
- * assistant ("George.md"), and a live call could not tell that file from
- * SOUL.md. Now the section is SOUL.md, and it shows every file that shapes
- * the assistant, in one column read top to bottom:
- *
- * ┌────────────────────────────────────────────────────────────┐
- * │ Mark · name · what it is · its vibe │
- * │ Wake word │ About itself │ Memory │ Last change │
- * ├────────────────────────────────────────────────────────────┤
- * │ Files — SOUL.md, the instructions, MEMORY.md, USER.md │
- * ├────────────────────────────────────────────────────────────┤
- * │ Who {name} is — role, vibe, tone, limits (from SOUL.md) │
- * ├────────────────────────────────────────────────────────────┤
- * │ What it has learned — about itself · memory · about you │
- * ├────────────────────────────────────────────────────────────┤
- * │ Recent changes — the learning ledger, newest first │
- * └────────────────────────────────────────────────────────────┘
- *
- * A file opens in place as a sub-page with a back link, like USER.md on the
- * Profile page: the files are the source behind the page, not peers of it.
- */
-import { useEffect, useRef, useState } from "react";
-import { AlertTriangle, RefreshCw, Sparkles } from "lucide-react";
-
-import { PageHeader } from "@/components/layout/PageHeader";
-import { Button } from "@/components/ui/button";
-import { EmptyState } from "@/components/ui/empty-state";
-import { useT } from "@/i18n";
-import { cn } from "@/lib/utils";
-import { ActivityGroup } from "@/views/soul/ActivityGroup";
-import { CharacterGroup } from "@/views/soul/CharacterGroup";
-import { fileOf, useSoulProfile, type SoulFileId } from "@/views/soul/api";
-import { FileList } from "@/views/soul/FileList";
-import { FilePage } from "@/views/soul/FilePage";
-import { NotesGroup } from "@/views/soul/NotesGroup";
-import { SoulHero } from "@/views/soul/SoulHero";
-
-/** The reading column — the same measure as the Profile page. */
-const COLUMN = "mx-auto w-full max-w-[760px]";
-
-export function SoulView() {
- const t = useT();
- const { data, isLoading, error, refetch, isRefetching } = useSoulProfile();
- const [open, setOpen] = useState<SoulFileId | null>(null);
-
- // Switching between the page and a file starts at the top.
- const scrollRef = useRef<HTMLDivElement | null>(null);
- useEffect(() => {
- scrollRef.current?.scrollTo?.({ top: 0 });
- }, [open]);
-
- const openFile = open && data ? data.files.find((f) => f.id === open) : undefined;
-
- return (
- <div
- ref={scrollRef}
- className="flex h-full flex-col overflow-y-auto bg-background px-8 pb-10 scrollbar-jarvis"
- >
- <div className={COLUMN}>
- <PageHeader
- icon={<Sparkles />}
- title="SOUL.md"
- description={t("soul_view.subtitle")}
- actions={
- <Button
- type="button"
- size="icon"
- variant="ghost"
- className="text-muted-foreground"
- onClick={() => void refetch()}
- disabled={isRefetching}
- title={t("soul_view.reload")}
- aria-label={t("soul_view.reload")}
- >
- <RefreshCw className={cn(isRefetching && "animate-spin")} />
- </Button>
- }
- />
-
- {isLoading && <SoulSkeleton label={t("common.loading")} />}
-
- {error && (
- <EmptyState
- icon={<AlertTriangle />}
- title={t("soul_view.error_title")}
- description={error.message}
- actions={
- <Button type="button" variant="outline" onClick={() => void refetch()}>
- {t("soul_view.retry")}
- </Button>
- }
- />
- )}
-
- {data && openFile && (
- <FilePage file={openFile} canForget={data.learning} onBack={() => setOpen(null)} />
- )}
-
- {data && !openFile && (
- <div className="flex flex-col gap-10">
- <SoulHero profile={data} />
- <FileList files={data.files} onOpen={setOpen} />
- <CharacterGroup soul={fileOf(data, "soul")} onEdit={() => setOpen("soul")} />
- <NotesGroup profile={data} />
- <ActivityGroup activity={data.activity} />
- </div>
- )}
- </div>
- </div>
- );
-}
-
-/** The real layout at its real height; no zero stands in for a missing figure. */
-function SoulSkeleton({ label }: { label: string }) {
- return (
- <div role="status" aria-busy="true" aria-label={label} className="flex flex-col gap-10">
- <div className="rounded-xl border border-border bg-card">
- <div className="flex items-center gap-5 p-6">
- <div className="h-20 w-20 shrink-0 animate-pulse rounded-2xl bg-secondary" />
- <div className="flex min-w-0 flex-1 flex-col gap-2.5">
- <div className="h-6 w-40 max-w-full animate-pulse rounded-md bg-secondary" />
- <div className="h-3.5 w-64 max-w-full animate-pulse rounded-full bg-secondary" />
- </div>
- </div>
- <div className="grid grid-cols-2 border-t border-border sm:grid-cols-4">
- {[0, 1, 2, 3].map((i) => (
- <div key={i} className="px-5 py-4">
- <div className="h-3 w-16 animate-pulse rounded-full bg-secondary" />
- <div className="mt-2 h-5 w-20 animate-pulse rounded-md bg-secondary" />
- </div>
- ))}
- </div>
- </div>
- <div className="flex flex-col gap-3">
- <div className="h-5 w-24 animate-pulse rounded-md bg-secondary" />
- <div className="divide-y divide-border rounded-xl border border-border bg-card">
- {[0, 1, 2, 3].map((j) => (
- <div key={j} className="flex items-center gap-4 px-5 py-4">
- <div className="h-9 w-9 animate-pulse rounded-lg bg-secondary" />
- <div className="flex flex-1 flex-col gap-2">
- <div className="h-3.5 w-24 animate-pulse rounded-full bg-secondary" />
- <div className="h-3 w-56 max-w-full animate-pulse rounded-full bg-secondary" />
- </div>
- </div>
- ))}
- </div>
- </div>
- </div>
- );
-}
diff --git a/jarvis/ui/web/frontend/src/views/assistant/CharacterSection.tsx b/jarvis/ui/web/frontend/src/views/assistant/CharacterSection.tsx
new file mode 100644
index 0000000000..8e35d92caf
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/views/assistant/CharacterSection.tsx
@@ -0,0 +1,75 @@
+/**
+ * Character — the assistant as SOUL.md describes it, set as a spec sheet:
+ * a label column and the words beside it. Role and any other line of
+ * "Who I am" come first (the vibe already leads the page and the name
+ * follows the wake word, so neither repeats here), then tone and limits,
+ * one rule per line, no bullets.
+ */
+import { useT } from "@/i18n";
+import type { CharacterFile, SoulRow } from "@/views/assistant/api";
+import { isVibe } from "@/views/assistant/Intro";
+import { Section, SpecRow, TextAction } from "@/views/assistant/Section";
+
+/** Inline Markdown emphasis is file syntax, not something to show. */
+export function plain(text: string): string {
+ return text.replace(/\*\*(.+?)\*\*/g, "$1").replace(/(^|\s)_(.+?)_(?=\s|$)/g, "$1$2").trim();
+}
+
+function Rules({ rows }: { rows: SoulRow[] }) {
+ return (
+ <ul className="flex flex-col gap-2.5">
+ {rows.map((row, i) => (
+ <li key={i}>
+ {row.label && <span className="font-medium text-foreground-strong">{plain(row.label)}: </span>}
+ <span className="text-foreground">{plain(row.text)}</span>
+ </li>
+ ))}
+ </ul>
+ );
+}
+
+export function CharacterSection({
+ soul,
+ onEdit,
+}: {
+ soul: CharacterFile | undefined;
+ onEdit: () => void;
+}) {
+ const t = useT();
+ const who = (soul?.character.who ?? []).filter((r) => !isVibe(r.label));
+ const tone = soul?.character.tone ?? [];
+ const limits = soul?.character.limits ?? [];
+ const empty = who.length + tone.length + limits.length === 0;
+
+ return (
+ <Section
+ testId="assistant-character"
+ title={t("assistant_view.character_title")}
+ action={soul?.exists ? <TextAction onClick={onEdit}>{t("assistant_view.edit")}</TextAction> : undefined}
+ >
+ {empty ? (
+ <p className="text-base text-muted-foreground">
+ {t(soul?.exists ? "assistant_view.character_empty" : "assistant_view.character_missing")}
+ </p>
+ ) : (
+ <div className="divide-y divide-border">
+ {who.map((row, i) => (
+ <SpecRow key={`who-${i}`} label={plain(row.label) || t("assistant_view.who_label")}>
+ {plain(row.text)}
+ </SpecRow>
+ ))}
+ {tone.length > 0 && (
+ <SpecRow label={t("assistant_view.tone_title")}>
+ <Rules rows={tone} />
+ </SpecRow>
+ )}
+ {limits.length > 0 && (
+ <SpecRow label={t("assistant_view.limits_title")}>
+ <Rules rows={limits} />
+ </SpecRow>
+ )}
+ </div>
+ )}
+ </Section>
+ );
+}
diff --git a/jarvis/ui/web/frontend/src/views/assistant/FilePage.tsx b/jarvis/ui/web/frontend/src/views/assistant/FilePage.tsx
new file mode 100644
index 0000000000..68249521f4
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/views/assistant/FilePage.tsx
@@ -0,0 +1,155 @@
+/**
+ * One of the assistant's files, opened in place with a way back.
+ *
+ * SOUL.md and the standing instructions are the person's to write: the file
+ * in an editor that scrolls inside itself, and under it one line — what
+ * saving does on the left, Revert and Save on the right. MEMORY.md and
+ * USER.md are written by the assistant itself: they open as their notes,
+ * each of which can be forgotten.
+ */
+import { ArrowLeft } from "lucide-react";
+import { useEffect, useState, type ReactNode } from "react";
+
+import { Button } from "@/components/ui/button";
+import { useT } from "@/i18n";
+import { useEventStore } from "@/store/events";
+import {
+ useSaveInstructions,
+ useSaveSoul,
+ type CharacterFile,
+ type InstructionsFile,
+ type NotebookFile,
+ type SoulFile,
+} from "@/views/assistant/api";
+import { useFileMeta } from "@/views/assistant/FilesSection";
+import { NoteList } from "@/views/assistant/MemorySection";
+import { TextAction } from "@/views/assistant/Section";
+
+function Editor({ file }: { file: CharacterFile | InstructionsFile }) {
+ const t = useT();
+ const pushToast = useEventStore((s) => s.pushToast);
+ const saveSoul = useSaveSoul();
+ const saveInstructions = useSaveInstructions();
+ const [draft, setDraft] = useState(file.content);
+
+ // A save (or a write from elsewhere) brings new content: take it.
+ useEffect(() => setDraft(file.content), [file.content]);
+
+ const isSoul = file.id === "soul";
+ const saving = saveSoul.isPending || saveInstructions.isPending;
+ const dirty = draft !== file.content;
+ const template = file.id === "instructions" ? file.template : "";
+ // SOUL.md can never be saved empty; the instructions file is cleared that way.
+ const canSave = dirty && !saving && (!isSoul || draft.trim().length > 0);
+
+ const onSave = () => {
+ const done = {
+ onSuccess: () =>
+ pushToast("success", t(!isSoul && !draft.trim() ? "assistant_view.cleared" : "assistant_view.saved")),
+ onError: (e: Error) => pushToast("error", e.message),
+ };
+ if (isSoul) saveSoul.mutate(draft, done);
+ else saveInstructions.mutate(draft, done);
+ };
+
+ return (
+ <div className="flex flex-col gap-4">
+ <label className="sr-only" htmlFor="assistant-file-editor">
+ {t("assistant_view.editor_label").replace("{0}", file.filename)}
+ </label>
+ <textarea
+ id="assistant-file-editor"
+ data-testid="assistant-file-editor"
+ value={draft}
+ onChange={(e) => setDraft(e.target.value)}
+ onKeyDown={(e) => {
+ if ((e.ctrlKey || e.metaKey) && e.key === "s") {
+ e.preventDefault();
+ if (canSave) onSave();
+ }
+ }}
+ spellCheck={false}
+ placeholder={t(isSoul ? "assistant_view.soul_placeholder" : "assistant_view.instructions_placeholder")}
+ className="h-[42vh] min-h-[280px] w-full resize-none rounded-xl border border-border bg-card px-6 py-5 font-mono text-sm leading-6 text-foreground placeholder:text-foreground-faint transition-colors focus-visible:border-border-strong focus-visible:outline-none"
+ />
+ <div className="flex flex-wrap items-center justify-between gap-x-6 gap-y-3">
+ <p className="min-w-0 max-w-[34rem] text-sm text-muted-foreground">
+ {dirty ? (
+ <span className="text-foreground">{t("assistant_view.unsaved")}</span>
+ ) : (
+ t(isSoul ? "assistant_view.soul_note" : "assistant_view.instructions_note")
+ )}
+ </p>
+ <div className="flex items-center gap-5">
+ {template && !draft.trim() && (
+ <TextAction onClick={() => setDraft(template)}>{t("assistant_view.load_template")}</TextAction>
+ )}
+ {!isSoul && file.exists && draft.trim() && !dirty && (
+ <TextAction onClick={() => setDraft("")}>{t("assistant_view.clear")}</TextAction>
+ )}
+ <TextAction disabled={!dirty || saving} onClick={() => setDraft(file.content)}>
+ {t("assistant_view.revert")}
+ </TextAction>
+ <Button type="button" size="sm" disabled={!canSave} onClick={onSave} data-testid="assistant-file-save">
+ {saving ? t("assistant_view.saving") : t("assistant_view.save")}
+ </Button>
+ </div>
+ </div>
+ </div>
+ );
+}
+
+function isNotebook(file: SoulFile): file is NotebookFile {
+ return file.id === "memory" || file.id === "user";
+}
+
+export function FilePage({
+ file,
+ name,
+ canForget,
+ onBack,
+}: {
+ file: SoulFile;
+ name: string;
+ canForget: boolean;
+ onBack: () => void;
+}) {
+ const t = useT();
+ const meta = useFileMeta();
+
+ let body: ReactNode;
+ if (isNotebook(file)) {
+ body = (
+ <>
+ <NoteList
+ target={file.id}
+ entries={file.entries}
+ canForget={canForget}
+ emptyText={t(`assistant_view.empty_${file.id}`)}
+ />
+ <p className="mt-4 text-sm text-muted-foreground">{t("assistant_view.notebook_note")}</p>
+ </>
+ );
+ } else if (file.exists || file.id === "instructions") {
+ body = <Editor key={file.id} file={file} />;
+ } else {
+ body = <p className="text-base text-muted-foreground">{t("assistant_view.character_missing")}</p>;
+ }
+
+ return (
+ <div data-testid={`assistant-page-${file.id}`} className="flex flex-col">
+ <TextAction onClick={onBack} data-testid="assistant-back" className="inline-flex items-center gap-1.5 self-start">
+ <ArrowLeft aria-hidden className="h-4 w-4" />
+ {name}
+ </TextAction>
+ <div className="mb-6 mt-5 flex items-end justify-between gap-6 border-b border-border pb-5">
+ <div className="min-w-0">
+ <h2 className="truncate text-xl font-semibold text-foreground-strong">{file.filename}</h2>
+ <p className="mt-1 text-base text-muted-foreground">{t(`assistant_view.file_role_${file.id}`)}</p>
+ </div>
+ <span className="shrink-0 text-sm tabular-nums text-foreground-faint">{meta(file)}</span>
+ </div>
+ {body}
+ </div>
+ );
+}
diff --git a/jarvis/ui/web/frontend/src/views/assistant/FilesSection.tsx b/jarvis/ui/web/frontend/src/views/assistant/FilesSection.tsx
new file mode 100644
index 0000000000..c035df2ddd
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/views/assistant/FilesSection.tsx
@@ -0,0 +1,67 @@
+/**
+ * Files — what the assistant reads at the start of every conversation, as a
+ * plain index: the file's name, what it is, how full it is and when it last
+ * changed. A row opens the file in place.
+ */
+import { ChevronRight } from "lucide-react";
+
+import { useT, useUiLanguage } from "@/i18n";
+import type { SoulFile, SoulFileId } from "@/views/assistant/api";
+import { plural, relativeDay } from "@/views/assistant/format";
+import { Section } from "@/views/assistant/Section";
+
+/** "1 note · today", or why there is nothing to show. */
+export function useFileMeta(): (file: SoulFile) => string {
+ const t = useT();
+ const lang = useUiLanguage();
+ return (file) => {
+ if (!file.exists) return t("assistant_view.file_missing");
+ const size =
+ "entries" in file
+ ? plural(t, "assistant_view.file_notes", file.entries.length, lang)
+ : plural(t, "assistant_view.file_chars", file.chars, lang);
+ const when = relativeDay(file.updated_ms, lang);
+ return when ? `${size} · ${when}` : size;
+ };
+}
+
+export function FilesSection({
+ files,
+ onOpen,
+}: {
+ files: readonly SoulFile[];
+ onOpen: (id: SoulFileId) => void;
+}) {
+ const t = useT();
+ const meta = useFileMeta();
+
+ return (
+ <Section testId="assistant-files" title={t("assistant_view.files_title")}>
+ <p className="-mt-2 mb-3 text-base text-muted-foreground">{t("assistant_view.files_hint")}</p>
+ <ul className="-mx-3">
+ {files.map((file) => (
+ <li key={file.id}>
+ <button
+ type="button"
+ data-testid={`assistant-file-${file.id}`}
+ onClick={() => onOpen(file.id)}
+ className="group grid w-full grid-cols-[minmax(0,1fr)_auto] items-center gap-x-6 rounded-lg px-3 py-3 text-left transition-colors hover:bg-secondary/60 focus-visible:bg-secondary/60 focus-visible:outline-none sm:grid-cols-[11rem_minmax(0,1fr)_auto]"
+ >
+ <span className="truncate text-base font-medium text-foreground-strong">{file.filename}</span>
+ <span className="hidden truncate text-base text-muted-foreground sm:block">
+ {t(`assistant_view.file_role_${file.id}`)}
+ </span>
+ <span className="flex items-center gap-3 text-sm tabular-nums text-foreground-faint">
+ {meta(file)}
+ <ChevronRight
+ aria-hidden
+ className="h-4 w-4 transition-transform group-hover:translate-x-0.5 group-hover:text-foreground"
+ />
+ </span>
+ </button>
+ </li>
+ ))}
+ </ul>
+ </Section>
+ );
+}
diff --git a/jarvis/ui/web/frontend/src/views/assistant/Intro.tsx b/jarvis/ui/web/frontend/src/views/assistant/Intro.tsx
new file mode 100644
index 0000000000..902bf5cc96
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/views/assistant/Intro.tsx
@@ -0,0 +1,73 @@
+/**
+ * The opening of the assistant's profile: the assistant itself, large, and
+ * the one sentence of its own vibe from SOUL.md set as the page's lead.
+ * Under it a single line of plain facts — whether it is learning right now,
+ * how much it remembers, when it last changed. No boxes, no figures in tiles.
+ */
+import { PetMark } from "@/components/pets/PetMark";
+import { useT, useUiLanguage } from "@/i18n";
+import { cn } from "@/lib/utils";
+import { fileOf, type SoulProfile } from "@/views/assistant/api";
+import { newest, plural, relativeDay } from "@/views/assistant/format";
+
+/** "**Vibe:** Helpful but…" from the character rows, without its label. */
+export function vibeOf(profile: SoulProfile): string | null {
+ const who = fileOf(profile, "soul")?.character.who ?? [];
+ const row = who.find((r) => isVibe(r.label));
+ return row?.text.trim() || null;
+}
+
+export function isVibe(label: string): boolean {
+ return /^(vibe|stimmung|vibra)$/i.test(label.trim());
+}
+
+export function Intro({ profile }: { profile: SoulProfile }) {
+ const t = useT();
+ const lang = useUiLanguage();
+ const vibe = vibeOf(profile);
+ const remembered = fileOf(profile, "memory")?.entries.length ?? 0;
+ const changed = relativeDay(newest(profile.files.map((f) => f.updated_ms)), lang);
+
+ const facts = [
+ plural(t, "assistant_view.fact_memory", remembered, lang),
+ changed ? t("assistant_view.fact_changed").replace("{0}", changed) : null,
+ ].filter(Boolean) as string[];
+
+ return (
+ <div data-testid="assistant-intro" className="flex items-center gap-8 pt-1">
+ <div className="shrink-0">
+ <PetMark size={96} reactive label={profile.name} />
+ </div>
+ <div className="min-w-0 flex-1">
+ <p
+ data-testid="assistant-vibe"
+ className={cn(
+ "text-xl font-medium leading-8 tracking-tight",
+ vibe ? "text-foreground-strong" : "text-muted-foreground",
+ )}
+ >
+ {vibe ?? t("assistant_view.vibe_missing")}
+ </p>
+ <p className="mt-3 flex flex-wrap items-center gap-x-2.5 gap-y-1 text-sm text-muted-foreground">
+ <span
+ data-testid="assistant-learning"
+ title={t(profile.learning ? "assistant_view.learning_on_hint" : "assistant_view.learning_off_hint")}
+ className="inline-flex items-center gap-1.5"
+ >
+ <span
+ aria-hidden
+ className={cn("h-1.5 w-1.5 rounded-full", profile.learning ? "bg-success" : "bg-foreground-faint")}
+ />
+ {t(profile.learning ? "assistant_view.learning_on" : "assistant_view.learning_off")}
+ </span>
+ {facts.map((fact) => (
+ <span key={fact} className="inline-flex items-center gap-2.5">
+ <span aria-hidden className="text-foreground-faint">·</span>
+ {fact}
+ </span>
+ ))}
+ </p>
+ </div>
+ </div>
+ );
+}
diff --git a/jarvis/ui/web/frontend/src/views/assistant/MemorySection.tsx b/jarvis/ui/web/frontend/src/views/assistant/MemorySection.tsx
new file mode 100644
index 0000000000..77f419e3d2
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/views/assistant/MemorySection.tsx
@@ -0,0 +1,126 @@
+/**
+ * Memory — what the assistant keeps by itself, in its three notebooks:
+ * about itself (SOUL.md's learned notes), what it remembers (MEMORY.md) and
+ * about the person (USER.md), one underline tab each.
+ *
+ * Every note is a line of text with its date and, when the person asked for
+ * it, "You asked" in quiet ink beside it. "Forget" appears on hover and on
+ * keyboard focus; the learning ledger keeps the old text, so forgetting is
+ * recoverable on the backend's side. It needs the learning loop running in
+ * this session, and says so otherwise.
+ */
+import { useState } from "react";
+
+import { TabBar } from "@/components/layout/SectionTabBar";
+import { useT, useUiLanguage } from "@/i18n";
+import { useEventStore } from "@/store/events";
+import { fileOf, useForgetNote, type NoteTarget, type SoulEntry, type SoulProfile } from "@/views/assistant/api";
+import { relativeDay } from "@/views/assistant/format";
+import { Section, TextAction } from "@/views/assistant/Section";
+
+/**
+ * An explicit note is stored as "2026-10-02 (asked to remember): text" so the
+ * prompt reads it in context; the page shows the text and the date apart.
+ */
+export function splitDated(text: string): { body: string; dateMs: number | null } {
+ const m = /^(\d{4}-\d{2}-\d{2}) \([^)]*\): ([\s\S]*)$/.exec(text);
+ if (!m) return { body: text, dateMs: null };
+ const [y, mo, d] = m[1].split("-").map(Number);
+ return { body: m[2], dateMs: new Date(y, mo - 1, d).getTime() };
+}
+
+export function NoteList({
+ target,
+ entries,
+ canForget,
+ emptyText,
+}: {
+ target: NoteTarget;
+ entries: readonly SoulEntry[];
+ canForget: boolean;
+ emptyText: string;
+}) {
+ const t = useT();
+ const lang = useUiLanguage();
+ const pushToast = useEventStore((s) => s.pushToast);
+ const forget = useForgetNote();
+
+ if (entries.length === 0) {
+ return (
+ <p data-testid={`assistant-notes-empty-${target}`} className="py-5 text-base text-muted-foreground">
+ {emptyText}
+ </p>
+ );
+ }
+
+ return (
+ <ul data-testid={`assistant-notes-${target}`} className="divide-y divide-border">
+ {entries.map((entry) => {
+ const { body, dateMs } = splitDated(entry.text);
+ const date = relativeDay(dateMs, lang);
+ const busy = forget.isPending && forget.variables?.id === entry.id;
+ return (
+ <li key={entry.id} className="group flex items-start gap-8 py-4">
+ <p className="min-w-0 flex-1 whitespace-pre-line text-base leading-7 text-foreground">{body}</p>
+ <div className="flex shrink-0 flex-col items-end gap-1 pt-0.5 text-right">
+ {(entry.explicit || date) && (
+ <span className="text-sm text-foreground-faint">
+ {[entry.explicit ? t("assistant_view.explicit") : null, date].filter(Boolean).join(" · ")}
+ </span>
+ )}
+ <TextAction
+ disabled={!canForget || busy}
+ title={canForget ? undefined : t("assistant_view.forget_needs_loop")}
+ aria-label={`${t("assistant_view.forget")}: ${body.slice(0, 60)}`}
+ onClick={() =>
+ forget.mutate(
+ { target, id: entry.id },
+ {
+ onSuccess: () => pushToast("success", t("assistant_view.forget_done")),
+ onError: (e) => pushToast("error", e.message),
+ },
+ )
+ }
+ className="opacity-0 hover:text-destructive focus-visible:opacity-100 group-hover:opacity-100"
+ >
+ {t("assistant_view.forget")}
+ </TextAction>
+ </div>
+ </li>
+ );
+ })}
+ </ul>
+ );
+}
+
+export function MemorySection({ profile }: { profile: SoulProfile }) {
+ const t = useT();
+ const [tab, setTab] = useState<NoteTarget>("memory");
+
+ const lists: Record<NoteTarget, SoulEntry[]> = {
+ memory: fileOf(profile, "memory")?.entries ?? [],
+ user: fileOf(profile, "user")?.entries ?? [],
+ soul: fileOf(profile, "soul")?.learned ?? [],
+ };
+
+ return (
+ <Section testId="assistant-memory" title={t("assistant_view.memory_title")}>
+ <TabBar
+ active={tab}
+ onChange={(id) => setTab(id as NoteTarget)}
+ tabs={[
+ { id: "memory", label: t("assistant_view.tab_memory"), count: lists.memory.length },
+ { id: "user", label: t("assistant_view.tab_user"), count: lists.user.length },
+ { id: "soul", label: t("assistant_view.tab_self"), count: lists.soul.length },
+ ]}
+ />
+ <NoteList
+ key={tab}
+ target={tab}
+ entries={lists[tab]}
+ canForget={profile.learning}
+ emptyText={t(`assistant_view.empty_${tab}`)}
+ />
+ </Section>
+ );
+}
diff --git a/jarvis/ui/web/frontend/src/views/assistant/RecentSection.tsx b/jarvis/ui/web/frontend/src/views/assistant/RecentSection.tsx
new file mode 100644
index 0000000000..61beaeda58
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/views/assistant/RecentSection.tsx
@@ -0,0 +1,56 @@
+/**
+ * Recently learned — the learning ledger, newest first, set like a journal:
+ * when it happened in the label column, what was written beside it, where
+ * it went in quiet ink, and the person's own words when there are some —
+ * so "why does it think that?" has an answer on the page.
+ */
+import { useT, useUiLanguage } from "@/i18n";
+import { cn } from "@/lib/utils";
+import type { SoulActivity } from "@/views/assistant/api";
+import { parseLedgerTime, whenShort } from "@/views/assistant/format";
+import { splitDated } from "@/views/assistant/MemorySection";
+import { Section, SpecRow } from "@/views/assistant/Section";
+
+const KNOWN_OPS = new Set(["add", "replace", "remove"]);
+const KNOWN_PLACES = new Set(["soul", "memory", "user"]);
+
+export function RecentSection({ activity }: { activity: readonly SoulActivity[] }) {
+ const t = useT();
+ const lang = useUiLanguage();
+
+ return (
+ <Section testId="assistant-recent" title={t("assistant_view.recent_title")}>
+ {activity.length === 0 ? (
+ <p className="text-base text-muted-foreground">{t("assistant_view.recent_empty")}</p>
+ ) : (
+ <div className="divide-y divide-border">
+ {activity.map((item, i) => {
+ const op = KNOWN_OPS.has(item.operation) ? item.operation : "add";
+ const place = KNOWN_PLACES.has(item.target)
+ ? t(`assistant_view.place_${item.target}`)
+ : item.target;
+ const said = item.evidence && item.evidence !== "[withheld]" ? item.evidence : "";
+ return (
+ <SpecRow
+ key={`${item.ts}-${i}`}
+ label={<span className="tabular-nums">{whenShort(parseLedgerTime(item.ts), lang) ?? "–"}</span>}
+ >
+ <p className={cn(op === "remove" && "text-muted-foreground line-through decoration-foreground-faint")}>
+ {splitDated(item.text).body || "–"}
+ </p>
+ <p className="mt-1 text-sm text-muted-foreground">
+ {t(`assistant_view.op_${op}`).replace("{0}", place)}
+ </p>
+ {said && (
+ <p className="mt-2 text-sm italic leading-6 text-muted-foreground">
+ {t("assistant_view.said").replace("{0}", said)}
+ </p>
+ )}
+ </SpecRow>
+ );
+ })}
+ </div>
+ )}
+ </Section>
+ );
+}
diff --git a/jarvis/ui/web/frontend/src/views/assistant/Section.tsx b/jarvis/ui/web/frontend/src/views/assistant/Section.tsx
new file mode 100644
index 0000000000..e342943a7d
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/views/assistant/Section.tsx
@@ -0,0 +1,60 @@
+/**
+ * The two pieces the assistant's profile page is set in.
+ *
+ * `Section` is a chapter of the page: a hairline, a heading, and at most one
+ * quiet action on the heading's line. No card around it — the page reads as
+ * one document, not as a stack of boxes.
+ *
+ * `TextAction` is the only kind of secondary control on the page: words in
+ * muted ink that turn to full ink on hover. No outline, no icon.
+ */
+import type { ButtonHTMLAttributes, ReactNode } from "react";
+
+import { cn } from "@/lib/utils";
+
+export function Section({
+ title,
+ action,
+ children,
+ testId,
+}: {
+ title: string;
+ action?: ReactNode;
+ children: ReactNode;
+ testId?: string;
+}) {
+ return (
+ <section data-testid={testId} aria-label={title} className="border-t border-border pt-7">
+ <div className="mb-4 flex items-baseline justify-between gap-6">
+ <h2 className="text-lg font-semibold text-foreground-strong">{title}</h2>
+ {action}
+ </div>
+ {children}
+ </section>
+ );
+}
+
+export function TextAction({ className, ...props }: ButtonHTMLAttributes<HTMLButtonElement>) {
+ return (
+ <button
+ type="button"
+ {...props}
+ className={cn(
+ "rounded-sm text-sm font-medium text-muted-foreground transition-colors",
+ "hover:text-foreground focus-visible:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
+ "disabled:pointer-events-none disabled:opacity-40",
+ className,
+ )}
+ />
+ );
+}
+
+/** A label column beside its content, the grammar of the whole page. */
+export function SpecRow({ label, children }: { label: ReactNode; children: ReactNode }) {
+ return (
+ <div className="grid grid-cols-1 gap-1 py-3.5 sm:grid-cols-[8rem_minmax(0,1fr)] sm:gap-8">
+ <div className="text-base leading-7 text-muted-foreground">{label}</div>
+ <div className="min-w-0 text-base leading-7 text-foreground">{children}</div>
+ </div>
+ );
+}
diff --git a/jarvis/ui/web/frontend/src/views/soul/api.ts b/jarvis/ui/web/frontend/src/views/assistant/api.ts
similarity index 97%
rename from jarvis/ui/web/frontend/src/views/soul/api.ts
rename to jarvis/ui/web/frontend/src/views/assistant/api.ts
index 6431c9746f..6975c4b513 100644
--- a/jarvis/ui/web/frontend/src/views/soul/api.ts
+++ b/jarvis/ui/web/frontend/src/views/assistant/api.ts
@@ -1,5 +1,5 @@
/**
- * The SOUL.md page's data layer — the shapes `soul_routes.py` returns and the
+ * The assistant profile page's data layer — the shapes `soul_routes.py` returns and the
* three writes the page makes (save SOUL.md, save or clear the standing
* instructions, forget one note).
*
diff --git a/jarvis/ui/web/frontend/src/views/soul/format.ts b/jarvis/ui/web/frontend/src/views/assistant/format.ts
similarity index 85%
rename from jarvis/ui/web/frontend/src/views/soul/format.ts
rename to jarvis/ui/web/frontend/src/views/assistant/format.ts
index 274ee46095..dc8c5948c7 100644
--- a/jarvis/ui/web/frontend/src/views/soul/format.ts
+++ b/jarvis/ui/web/frontend/src/views/assistant/format.ts
@@ -47,3 +47,9 @@ export function newest(times: readonly (number | null | undefined)[]): number |
const known = times.filter((t): t is number => typeof t === "number");
return known.length ? Math.max(...known) : null;
}
+
+/** `key_one` for exactly one, `key_other` otherwise, with `{0}` filled in. */
+export function plural(t: (key: string) => string, key: string, count: number, lang?: UiLanguage): string {
+ const n = lang ? count.toLocaleString(lang) : String(count);
+ return t(`${key}_${count === 1 ? "one" : "other"}`).replace("{0}", n);
+}
diff --git a/jarvis/ui/web/frontend/src/views/settings/settingsSearch.ts b/jarvis/ui/web/frontend/src/views/settings/settingsSearch.ts
index 77777243e9..b83af661a9 100644
--- a/jarvis/ui/web/frontend/src/views/settings/settingsSearch.ts
+++ b/jarvis/ui/web/frontend/src/views/settings/settingsSearch.ts
@@ -25,7 +25,7 @@ const SEARCH_GROUPS = [
const SEARCH_PAGES = [
{ id: "profile", keys: ["profile_view"] },
- { id: "agent-instructions", keys: ["soul_view"] },
+ { id: "agent-instructions", keys: ["assistant_view"] },
{ id: "contacts", keys: ["contacts"] },
{ id: "socials", keys: ["socials"] },
{ id: "apikeys", keys: ["apikeys_view", "apikeys_voice", "apikeys_model", "apikeys_cu_model"] },
diff --git a/jarvis/ui/web/frontend/src/views/soul/ActivityGroup.tsx b/jarvis/ui/web/frontend/src/views/soul/ActivityGroup.tsx
deleted file mode 100644
index dcc9eeb947..0000000000
--- a/jarvis/ui/web/frontend/src/views/soul/ActivityGroup.tsx
+++ /dev/null
@@ -1,91 +0,0 @@
-/**
- * Recent changes: every note the assistant added, changed or removed, newest
- * first, read from the learning ledger. Each line names the file, what
- * happened and when, and quotes what the person said when there is a quote —
- * so "why does it think that?" has an answer on the page.
- */
-import { Minus, PencilLine, Plus } from "lucide-react";
-import type { ReactNode } from "react";
-
-import { useT, useUiLanguage } from "@/i18n";
-import { cn } from "@/lib/utils";
-import { ProfileGroup } from "@/views/profile/ProfileGroup";
-import type { SoulActivity } from "@/views/soul/api";
-import { parseLedgerTime, whenShort } from "@/views/soul/format";
-import { splitDated } from "@/views/soul/NotesGroup";
-
-const FILE_OF_TARGET: Record<string, string> = {
- soul: "SOUL.md",
- memory: "MEMORY.md",
- user: "USER.md",
-};
-
-const OP_ICON: Record<string, ReactNode> = {
- add: <Plus />,
- replace: <PencilLine />,
- remove: <Minus />,
-};
-
-export function ActivityGroup({ activity }: { activity: readonly SoulActivity[] }) {
- const t = useT();
- const lang = useUiLanguage();
-
- return (
- <ProfileGroup
- testId="soul-activity"
- title={t("soul_view.activity_title")}
- description={t("soul_view.activity_description")}
- >
- {activity.length === 0 ? (
- <p className="px-5 py-5 text-base text-muted-foreground">{t("soul_view.activity_empty")}</p>
- ) : (
- <ol className="px-5 py-2">
- {activity.map((item, i) => {
- const op = OP_ICON[item.operation] ? item.operation : "add";
- const when = whenShort(parseLedgerTime(item.ts), lang);
- const last = i === activity.length - 1;
- return (
- <li key={`${item.ts}-${i}`} className="relative flex gap-4 py-3">
- {!last && (
- <span aria-hidden className="absolute left-3 top-10 bottom-0 w-px bg-border" />
- )}
- <span
- aria-hidden
- className={cn(
- "relative flex h-6 w-6 shrink-0 items-center justify-center rounded-full border [&>svg]:h-3.5 [&>svg]:w-3.5",
- op === "remove"
- ? "border-border bg-secondary text-muted-foreground"
- : "border-accent/20 bg-accent-soft text-accent",
- )}
- >
- {OP_ICON[op]}
- </span>
- <div className="min-w-0 flex-1">
- <p
- className={cn(
- "text-base leading-6",
- op === "remove" ? "text-muted-foreground line-through decoration-foreground-faint" : "text-foreground",
- )}
- >
- {splitDated(item.text).body || "–"}
- </p>
- <p className="mt-0.5 text-sm text-muted-foreground">
- <span className="font-mono">{FILE_OF_TARGET[item.target] ?? item.target}</span>
- {" · "}
- {t(`soul_view.op_${op}`)}
- {when && ` · ${when}`}
- </p>
- {item.evidence && item.evidence !== "[withheld]" && (
- <p className="mt-1.5 border-l-2 border-border pl-3 text-sm italic text-muted-foreground">
- “{item.evidence}”
- </p>
- )}
- </div>
- </li>
- );
- })}
- </ol>
- )}
- </ProfileGroup>
- );
-}
diff --git a/jarvis/ui/web/frontend/src/views/soul/CharacterGroup.tsx b/jarvis/ui/web/frontend/src/views/soul/CharacterGroup.tsx
deleted file mode 100644
index 7b79f2c451..0000000000
--- a/jarvis/ui/web/frontend/src/views/soul/CharacterGroup.tsx
+++ /dev/null
@@ -1,82 +0,0 @@
-/**
- * Who the assistant is, read straight out of SOUL.md: its role and vibe as
- * label/value rows, then its tone rules and limits as short lists. The name
- * is not repeated here — it follows the wake word and already heads the page.
- */
-import { Pencil } from "lucide-react";
-
-import { Button } from "@/components/ui/button";
-import { useT } from "@/i18n";
-import { ProfileGroup } from "@/views/profile/ProfileGroup";
-import type { CharacterFile, SoulRow } from "@/views/soul/api";
-
-/** Inline Markdown emphasis is file syntax, not something to show. */
-export function plain(text: string): string {
- return text.replace(/\*\*(.+?)\*\*/g, "$1").replace(/(^|\s)_(.+?)_(?=\s|$)/g, "$1$2").trim();
-}
-
-function RuleList({ title, rows }: { title: string; rows: SoulRow[] }) {
- return (
- <div className="px-5 py-4">
- <h3 className="text-base font-medium text-foreground">{title}</h3>
- <ul className="mt-2.5 flex flex-col gap-2">
- {rows.map((row, i) => (
- <li key={i} className="flex gap-3 text-base leading-6 text-muted-foreground">
- <span aria-hidden className="mt-2.5 h-1 w-1 shrink-0 rounded-full bg-foreground-faint" />
- <span className="min-w-0">
- {row.label && <span className="font-medium text-foreground">{plain(row.label)}: </span>}
- {plain(row.text)}
- </span>
- </li>
- ))}
- </ul>
- </div>
- );
-}
-
-export function CharacterGroup({ soul, onEdit }: { soul: CharacterFile | undefined; onEdit: () => void }) {
- const t = useT();
- const who = soul?.character.who ?? [];
- const tone = soul?.character.tone ?? [];
- const limits = soul?.character.limits ?? [];
- const empty = who.length + tone.length + limits.length === 0;
-
- return (
- <ProfileGroup
- testId="soul-character"
- title={t("soul_view.character_title")}
- description={t("soul_view.character_description")}
- aside={
- soul?.exists ? (
- <Button type="button" size="sm" variant="outline" onClick={onEdit}>
- <Pencil aria-hidden />
- {t("soul_view.character_edit")}
- </Button>
- ) : undefined
- }
- >
- {empty ? (
- <p className="px-5 py-4 text-base text-muted-foreground">
- {t(soul?.exists ? "soul_view.character_empty" : "soul_view.character_missing")}
- </p>
- ) : (
- <>
- {who.length > 0 && (
- <dl className="px-5 py-4">
- {who.map((row, i) => (
- <div key={i} className="flex flex-col gap-0.5 py-1.5 sm:flex-row sm:gap-6">
- <dt className="shrink-0 text-base font-medium text-foreground sm:w-28">
- {plain(row.label) || "·"}
- </dt>
- <dd className="min-w-0 text-base leading-6 text-muted-foreground">{plain(row.text)}</dd>
- </div>
- ))}
- </dl>
- )}
- {tone.length > 0 && <RuleList title={t("soul_view.tone_title")} rows={tone} />}
- {limits.length > 0 && <RuleList title={t("soul_view.limits_title")} rows={limits} />}
- </>
- )}
- </ProfileGroup>
- );
-}
diff --git a/jarvis/ui/web/frontend/src/views/soul/FileList.tsx b/jarvis/ui/web/frontend/src/views/soul/FileList.tsx
deleted file mode 100644
index 1dc4440cbf..0000000000
--- a/jarvis/ui/web/frontend/src/views/soul/FileList.tsx
+++ /dev/null
@@ -1,102 +0,0 @@
-/**
- * The files behind the assistant — one row each, in the order it reads them:
- * its character, the person's instructions, its memory, its notes about the
- * person. A row says what the file is FOR in plain words, how full it is and
- * when it last changed, and opens the file in place.
- */
-import { Brain, ChevronRight, ScrollText, Sparkles, UserRound } from "lucide-react";
-import type { ReactNode } from "react";
-
-import { Badge } from "@/components/ui/badge";
-import { useT, useUiLanguage } from "@/i18n";
-import { ProfileGroup } from "@/views/profile/ProfileGroup";
-import type { SoulFile, SoulFileId } from "@/views/soul/api";
-import { relativeDay } from "@/views/soul/format";
-
-export const FILE_ICON: Record<SoulFileId, ReactNode> = {
- soul: <Sparkles />,
- instructions: <ScrollText />,
- memory: <Brain />,
- user: <UserRound />,
-};
-
-export function FileIcon({ id, size = "md" }: { id: SoulFileId; size?: "md" | "lg" }) {
- return (
- <span
- aria-hidden
- className={
- size === "lg"
- ? "flex h-11 w-11 shrink-0 items-center justify-center rounded-xl border border-border bg-secondary text-muted-foreground [&>svg]:h-5 [&>svg]:w-5"
- : "flex h-9 w-9 shrink-0 items-center justify-center rounded-lg border border-border bg-secondary text-muted-foreground [&>svg]:h-4 [&>svg]:w-4"
- }
- >
- {FILE_ICON[id]}
- </span>
- );
-}
-
-/** "12 notes · updated today", or why there is nothing to show. */
-export function useFileMeta(): (file: SoulFile) => string {
- const t = useT();
- const lang = useUiLanguage();
- return (file) => {
- if (!file.exists) return t("soul_view.file_missing");
- const size =
- "entries" in file
- ? t("soul_view.file_entries").replace("{0}", String(file.entries.length))
- : t("soul_view.file_chars").replace("{0}", file.chars.toLocaleString(lang));
- const when = relativeDay(file.updated_ms, lang);
- return when ? `${size} · ${t("soul_view.file_updated").replace("{0}", when)}` : size;
- };
-}
-
-export function FileList({
- files,
- onOpen,
-}: {
- files: readonly SoulFile[];
- onOpen: (id: SoulFileId) => void;
-}) {
- const t = useT();
- const meta = useFileMeta();
-
- return (
- <ProfileGroup
- testId="soul-files"
- title={t("soul_view.files_title")}
- description={t("soul_view.files_description")}
- >
- {files.map((file) => (
- <button
- key={file.id}
- type="button"
- data-testid={`soul-file-${file.id}`}
- onClick={() => onOpen(file.id)}
- className="group flex w-full items-center gap-4 px-5 py-4 text-left transition-colors hover:bg-secondary/60 focus-visible:bg-secondary/60 focus-visible:outline-none"
- >
- <FileIcon id={file.id} />
- <span className="min-w-0 flex-1">
- <span className="flex min-w-0 items-center gap-2">
- <span className="truncate font-mono text-sm font-semibold text-foreground-strong">
- {file.filename}
- </span>
- {!file.editable && (
- <Badge variant="secondary">{t("soul_view.file_by_assistant")}</Badge>
- )}
- </span>
- <span className="mt-0.5 block truncate text-sm text-muted-foreground">
- {t(`soul_view.file_role_${file.id}`)}
- </span>
- </span>
- <span className="hidden shrink-0 text-sm tabular-nums text-foreground-faint sm:block">
- {meta(file)}
- </span>
- <ChevronRight
- aria-hidden
- className="h-4 w-4 shrink-0 text-foreground-faint transition-colors group-hover:text-foreground"
- />
- </button>
- ))}
- </ProfileGroup>
- );
-}
diff --git a/jarvis/ui/web/frontend/src/views/soul/FilePage.tsx b/jarvis/ui/web/frontend/src/views/soul/FilePage.tsx
deleted file mode 100644
index 0a5062cb8a..0000000000
--- a/jarvis/ui/web/frontend/src/views/soul/FilePage.tsx
+++ /dev/null
@@ -1,192 +0,0 @@
-/**
- * One of the assistant's files, opened in place with a back link.
- *
- * SOUL.md and the standing instructions are the person's to write: one card
- * with the editor (it scrolls inside itself) and the action row under it. MEMORY.md and
- * USER.md are written by the assistant itself: they open as their notes, each
- * of which can be forgotten, with one line saying how to change them.
- */
-import { ArrowLeft, Eraser, FilePlus2, Info, RotateCcw, Save } from "lucide-react";
-import { useEffect, useState, type ReactNode } from "react";
-
-import { Button } from "@/components/ui/button";
-import { Textarea } from "@/components/ui/textarea";
-import { useT, useUiLanguage } from "@/i18n";
-import { useEventStore } from "@/store/events";
-import {
- useSaveInstructions,
- useSaveSoul,
- type CharacterFile,
- type InstructionsFile,
- type NotebookFile,
- type SoulFile,
-} from "@/views/soul/api";
-import { FileIcon, useFileMeta } from "@/views/soul/FileList";
-import { NoteList } from "@/views/soul/NotesGroup";
-
-function Header({ file }: { file: SoulFile }) {
- const t = useT();
- const meta = useFileMeta();
- return (
- <div className="flex items-center gap-4 px-1">
- <FileIcon id={file.id} size="lg" />
- <div className="min-w-0 flex-1">
- <h2 className="truncate font-mono text-lg font-semibold text-foreground-strong">{file.filename}</h2>
- <p className="truncate text-base text-muted-foreground">{t(`soul_view.file_role_${file.id}`)}</p>
- </div>
- <span className="hidden shrink-0 text-sm tabular-nums text-foreground-faint sm:block">{meta(file)}</span>
- </div>
- );
-}
-
-function Note({ children }: { children: string }) {
- return (
- <p className="flex items-start gap-2 px-1 text-sm text-muted-foreground">
- <Info aria-hidden className="mt-0.5 h-4 w-4 shrink-0" />
- <span>{children}</span>
- </p>
- );
-}
-
-function Editor({ file }: { file: CharacterFile | InstructionsFile }) {
- const t = useT();
- const lang = useUiLanguage();
- const pushToast = useEventStore((s) => s.pushToast);
- const saveSoul = useSaveSoul();
- const saveInstructions = useSaveInstructions();
- const [draft, setDraft] = useState(file.content);
-
- // A save (or a write from elsewhere) brings new content: take it.
- useEffect(() => setDraft(file.content), [file.content]);
-
- const isSoul = file.id === "soul";
- const saving = saveSoul.isPending || saveInstructions.isPending;
- const dirty = draft !== file.content;
- const template = file.id === "instructions" ? file.template : "";
- // SOUL.md can never be saved empty; the instructions file is cleared that way.
- const canSave = dirty && !saving && (!isSoul || draft.trim().length > 0);
-
- const onSave = () => {
- const done = {
- onSuccess: () =>
- pushToast(
- "success",
- t(!isSoul && !draft.trim() ? "soul_view.cleared" : "soul_view.saved"),
- ),
- onError: (e: Error) => pushToast("error", e.message),
- };
- if (isSoul) saveSoul.mutate(draft, done);
- else saveInstructions.mutate(draft, done);
- };
-
- return (
- <div className="flex flex-col gap-3">
- <div className="flex flex-col rounded-xl border border-border bg-card">
- <label className="sr-only" htmlFor="soul-file-editor">
- {t("soul_view.editor_label").replace("{0}", file.filename)}
- </label>
- <Textarea
- id="soul-file-editor"
- data-testid="soul-file-editor"
- value={draft}
- onChange={(e) => setDraft(e.target.value)}
- onKeyDown={(e) => {
- if ((e.ctrlKey || e.metaKey) && e.key === "s") {
- e.preventDefault();
- if (canSave) onSave();
- }
- }}
- spellCheck={false}
- placeholder={t(isSoul ? "soul_view.soul_placeholder" : "soul_view.instructions_placeholder")}
- className="h-[46vh] min-h-[300px] resize-none rounded-none rounded-t-xl border-0 bg-card p-5 font-mono text-sm leading-6 focus-visible:ring-0 focus-visible:ring-offset-0"
- />
- <div className="flex flex-wrap items-center justify-between gap-3 rounded-b-xl border-t border-border bg-card px-5 py-3">
- <span className="text-sm tabular-nums text-foreground-faint">
- {dirty ? t("soul_view.unsaved") : t("soul_view.chars").replace("{0}", draft.length.toLocaleString(lang))}
- </span>
- <div className="flex items-center gap-2">
- {template && !draft.trim() && (
- <Button type="button" variant="ghost" onClick={() => setDraft(template)}>
- <FilePlus2 aria-hidden />
- {t("soul_view.load_template")}
- </Button>
- )}
- {!isSoul && file.exists && draft.trim() && !dirty && (
- <Button type="button" variant="ghost" onClick={() => setDraft("")}>
- <Eraser aria-hidden />
- {t("soul_view.clear")}
- </Button>
- )}
- <Button type="button" variant="ghost" disabled={!dirty || saving} onClick={() => setDraft(file.content)}>
- <RotateCcw aria-hidden />
- {t("soul_view.revert")}
- </Button>
- <Button type="button" disabled={!canSave} onClick={onSave} data-testid="soul-file-save">
- <Save aria-hidden />
- {saving ? t("soul_view.saving") : t("soul_view.save")}
- </Button>
- </div>
- </div>
- </div>
- <Note>{t(isSoul ? "soul_view.soul_note" : "soul_view.instructions_note")}</Note>
- </div>
- );
-}
-
-function Notebook({ file, canForget }: { file: NotebookFile; canForget: boolean }) {
- const t = useT();
- return (
- <div className="flex flex-col gap-3">
- <div className="overflow-hidden rounded-xl border border-border bg-card">
- <NoteList
- target={file.id}
- entries={file.entries}
- canForget={canForget}
- emptyText={t(`soul_view.empty_${file.id}`)}
- />
- </div>
- <Note>{t("soul_view.notebook_note")}</Note>
- </div>
- );
-}
-
-function isNotebook(file: SoulFile): file is NotebookFile {
- return file.id === "memory" || file.id === "user";
-}
-
-export function FilePage({
- file,
- canForget,
- onBack,
-}: {
- file: SoulFile;
- canForget: boolean;
- onBack: () => void;
-}) {
- const t = useT();
- let body: ReactNode;
- if (isNotebook(file)) {
- body = <Notebook file={file} canForget={canForget} />;
- } else if (file.exists || file.id === "instructions") {
- body = <Editor key={file.id} file={file} />;
- } else {
- body = <p className="px-1 text-base text-muted-foreground">{t("soul_view.character_missing")}</p>;
- }
- return (
- <div data-testid={`soul-page-${file.id}`} className="flex flex-col gap-5">
- <Button
- type="button"
- variant="ghost"
- size="sm"
- className="self-start text-muted-foreground"
- onClick={onBack}
- data-testid="soul-back"
- >
- <ArrowLeft aria-hidden />
- {t("soul_view.back")}
- </Button>
- <Header file={file} />
- {body}
- </div>
- );
-}
diff --git a/jarvis/ui/web/frontend/src/views/soul/NotesGroup.tsx b/jarvis/ui/web/frontend/src/views/soul/NotesGroup.tsx
deleted file mode 100644
index 7154cb6a2b..0000000000
--- a/jarvis/ui/web/frontend/src/views/soul/NotesGroup.tsx
+++ /dev/null
@@ -1,142 +0,0 @@
-/**
- * What the assistant has learned, in its own three notebooks: about itself
- * (SOUL.md's learned section), its memory (MEMORY.md) and about the person
- * (USER.md). One group with an underline tab per notebook, so the page stays
- * one screen tall however much it has learned.
- *
- * A note can be forgotten. The learning ledger keeps the old text, so that is
- * an undoable act on the backend's side, and the button says "Forget" rather
- * than "Delete". It needs the learning loop running in this session; without
- * it the button is disabled and says why.
- */
-import { X } from "lucide-react";
-import { useState } from "react";
-
-import { TabBar } from "@/components/layout/SectionTabBar";
-import { Badge } from "@/components/ui/badge";
-import { Button } from "@/components/ui/button";
-import { useT, useUiLanguage } from "@/i18n";
-import { useEventStore } from "@/store/events";
-import { fileOf, useForgetNote, type NoteTarget, type SoulEntry, type SoulProfile } from "@/views/soul/api";
-import { relativeDay } from "@/views/soul/format";
-
-/**
- * An explicit note is stored as "2026-10-02 (asked to remember): text" so the
- * prompt reads it in context; the page shows the text and the date apart.
- */
-export function splitDated(text: string): { body: string; dateMs: number | null } {
- const m = /^(\d{4}-\d{2}-\d{2}) \([^)]*\): ([\s\S]*)$/.exec(text);
- if (!m) return { body: text, dateMs: null };
- const [y, mo, d] = m[1].split("-").map(Number);
- return { body: m[2], dateMs: new Date(y, mo - 1, d).getTime() };
-}
-
-export function NoteList({
- target,
- entries,
- canForget,
- emptyText,
-}: {
- target: NoteTarget;
- entries: readonly SoulEntry[];
- canForget: boolean;
- emptyText: string;
-}) {
- const t = useT();
- const lang = useUiLanguage();
- const pushToast = useEventStore((s) => s.pushToast);
- const forget = useForgetNote();
-
- if (entries.length === 0) {
- return (
- <p data-testid={`soul-notes-empty-${target}`} className="px-5 py-5 text-base text-muted-foreground">
- {emptyText}
- </p>
- );
- }
-
- return (
- <ul data-testid={`soul-notes-${target}`} className="divide-y divide-border">
- {entries.map((entry) => {
- const busy = forget.isPending && forget.variables?.id === entry.id;
- const { body, dateMs } = splitDated(entry.text);
- const date = relativeDay(dateMs, lang);
- return (
- <li key={entry.id} className="group flex items-start gap-3 px-5 py-3.5">
- <div className="min-w-0 flex-1">
- <p className="whitespace-pre-line text-base leading-6 text-foreground">{body}</p>
- {(entry.explicit || date) && (
- <p className="mt-1.5 flex items-center gap-2 text-sm text-muted-foreground">
- {entry.explicit && <Badge variant="accent">{t("soul_view.explicit_badge")}</Badge>}
- {date && <span>{date}</span>}
- </p>
- )}
- </div>
- <Button
- type="button"
- size="icon"
- variant="ghost"
- disabled={!canForget || busy}
- title={canForget ? t("soul_view.forget") : t("soul_view.forget_needs_loop")}
- aria-label={`${t("soul_view.forget")}: ${entry.text.slice(0, 60)}`}
- onClick={() =>
- forget.mutate(
- { target, id: entry.id },
- {
- onSuccess: () => pushToast("success", t("soul_view.forget_done")),
- onError: (e) => pushToast("error", e.message),
- },
- )
- }
- className="h-8 w-8 shrink-0 text-muted-foreground opacity-0 transition-opacity focus-visible:opacity-100 group-hover:opacity-100 disabled:group-hover:opacity-40"
- >
- <X />
- </Button>
- </li>
- );
- })}
- </ul>
- );
-}
-
-type Tab = NoteTarget;
-
-export function NotesGroup({ profile }: { profile: SoulProfile }) {
- const t = useT();
- const [tab, setTab] = useState<Tab>("soul");
-
- const lists: Record<Tab, SoulEntry[]> = {
- soul: fileOf(profile, "soul")?.learned ?? [],
- memory: fileOf(profile, "memory")?.entries ?? [],
- user: fileOf(profile, "user")?.entries ?? [],
- };
- const title = t("soul_view.notes_title");
-
- return (
- <section data-testid="soul-notes" aria-label={title} className="flex flex-col gap-3">
- <div className="px-1">
- <h2 className="text-lg font-semibold text-foreground-strong">{title}</h2>
- <p className="mt-0.5 text-base text-muted-foreground">{t("soul_view.notes_description")}</p>
- </div>
- <div className="overflow-hidden rounded-xl border border-border bg-card">
- <TabBar
- className="px-5"
- active={tab}
- onChange={(id) => setTab(id as Tab)}
- tabs={[
- { id: "soul", label: t("soul_view.tab_self"), count: lists.soul.length },
- { id: "memory", label: t("soul_view.tab_memory"), count: lists.memory.length },
- { id: "user", label: t("soul_view.tab_user"), count: lists.user.length },
- ]}
- />
- <NoteList
- key={tab}
- target={tab}
- entries={lists[tab]}
- canForget={profile.learning}
- emptyText={t(`soul_view.empty_${tab}`)}
- />
- </div>
- </section>
- );
-}
diff --git a/jarvis/ui/web/frontend/src/views/soul/SoulHero.tsx b/jarvis/ui/web/frontend/src/views/soul/SoulHero.tsx
deleted file mode 100644
index 4e9823d04b..0000000000
--- a/jarvis/ui/web/frontend/src/views/soul/SoulHero.tsx
+++ /dev/null
@@ -1,90 +0,0 @@
-/**
- * The top of the SOUL.md page: the assistant itself.
- *
- * Its mark (the pet the person chose, alive and following the voice), its
- * name, what it is, and the one line of its own vibe from SOUL.md. Below,
- * four figures from the real files. Nothing here is invented: a missing
- * vibe is left out, and a figure without a source shows a dash.
- */
-import { PetMark } from "@/components/pets/PetMark";
-import { Badge } from "@/components/ui/badge";
-import { useT, useUiLanguage } from "@/i18n";
-import { fileOf, type SoulProfile } from "@/views/soul/api";
-import { newest, relativeDay } from "@/views/soul/format";
-
-function Stat({ label, value, sub }: { label: string; value: string; sub?: string | null }) {
- return (
- <div className="min-w-0 px-5 py-4">
- <p className="truncate text-sm text-muted-foreground">{label}</p>
- <p className="mt-0.5 truncate text-lg font-semibold tabular-nums text-foreground-strong">{value}</p>
- {sub && <p className="truncate text-sm text-muted-foreground">{sub}</p>}
- </div>
- );
-}
-
-/** "**Vibe:** Helpful but…" from the character rows, without its label. */
-function vibeOf(profile: SoulProfile): string | null {
- const who = fileOf(profile, "soul")?.character.who ?? [];
- const row = who.find((r) => /^(vibe|stimmung|vibra)$/i.test(r.label));
- return row?.text.trim() || null;
-}
-
-export function SoulHero({ profile }: { profile: SoulProfile }) {
- const t = useT();
- const lang = useUiLanguage();
-
- const soul = fileOf(profile, "soul");
- const memory = fileOf(profile, "memory");
- const vibe = vibeOf(profile);
- const lastChange = relativeDay(newest(profile.files.map((f) => f.updated_ms)), lang);
- const learned = soul?.learned.length ?? 0;
- const remembered = memory?.entries.length ?? 0;
-
- return (
- <section
- data-testid="soul-hero"
- aria-label={profile.name}
- className="overflow-hidden rounded-xl border border-border bg-card"
- >
- <div className="flex items-center gap-5 p-6">
- <div className="flex h-20 w-20 shrink-0 items-center justify-center rounded-2xl border border-border bg-secondary">
- <PetMark size={56} reactive label={profile.name} />
- </div>
- <div className="min-w-0 flex-1">
- <div className="flex min-w-0 items-center gap-2.5">
- <h2 className="truncate text-2xl font-semibold text-foreground-strong">{profile.name}</h2>
- <Badge
- variant={profile.learning ? "success" : "secondary"}
- title={t(profile.learning ? "soul_view.learning_on_hint" : "soul_view.learning_off_hint")}
- data-testid="soul-learning"
- >
- {t(profile.learning ? "soul_view.learning_on" : "soul_view.learning_off")}
- </Badge>
- </div>
- <p className="mt-0.5 truncate text-base text-muted-foreground">
- {t(profile.named ? "soul_view.hero_role" : "soul_view.hero_role_unnamed").replace(
- "{0}",
- profile.product,
- )}
- </p>
- {vibe && (
- <p data-testid="soul-vibe" className="mt-2 text-base leading-6 text-foreground">
- {vibe}
- </p>
- )}
- </div>
- </div>
-
- <div className="grid grid-cols-2 border-t border-border sm:grid-cols-4 [&>*]:border-border [&>*:nth-child(even)]:border-l sm:[&>*:not(:first-child)]:border-l [&>*:nth-child(n+3)]:border-t sm:[&>*:nth-child(n+3)]:border-t-0">
- <Stat
- label={t("soul_view.stat_wake")}
- value={profile.wake_phrase || "–"}
- sub={profile.wake_phrase ? t("soul_view.stat_wake_sub") : null}
- />
- <Stat label={t("soul_view.stat_self")} value={String(learned)} sub={t("soul_view.stat_notes")} />
- <Stat label={t("soul_view.stat_memory")} value={String(remembered)} sub={t("soul_view.stat_notes")} />
- <Stat label={t("soul_view.stat_updated")} value={lastChange ?? "–"} />
- </div>
- </section>
- );
-}