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.
Python agent-orchestrationai-agentai-coding-assistantclaude-codecoding-agentcomputer-usedesktop-applocal-firstmcppersonal-jarvisvoice-assistantvoice-coding
feat(frontend): dedicated per-assistant "{name} Key" tab for the Control Key
Ruben Lütkec7892d50691e
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/de.json b/jarvis/ui/web/frontend/src/i18n/locales/de.jsonindex 798ea8f1c7..c5cfe8849c 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/de.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/de.json@@ -10,7 +10,7 @@"invalid": "Dieser Control Key wurde nicht akzeptiert.","unavailable": "Jarvis ist nicht erreichbar. Versuch es erneut.","where_title": "Wo finde ich den Control Key?",- "where_hint": "Er wurde dir nie zugeschickt — er wird bei der Installation automatisch für diese Jarvis-Instanz erzeugt. Öffne Jarvis auf dem Computer, auf dem es installiert ist: Unter API-Keys → Zugang & Integrationen kannst du ihn anzeigen, kopieren oder durch einen eigenen ersetzen.",+ "where_hint": "Er wurde dir nie zugeschickt — er wird bei der Installation automatisch für diese Jarvis-Instanz erzeugt. Öffne Jarvis auf dem Computer, auf dem es installiert ist: Unter API-Keys gibt es eine eigene Key-Sektion, benannt nach deinem Assistenten (z. B. „Nico Key“) — dort kannst du ihn anzeigen, kopieren oder durch einen eigenen ersetzen.","where_hint_server": "Auf einem Server ohne Oberfläche steht er in der Datei .control_api_key im Jarvis-Datenordner."},"file_toast": {@@ -912,6 +912,9 @@"tab_computer_use": "Tool Model","tab_subagents": "Jarvis-Agents","tab_advanced": "Erweitert",+ "tab_jarvis_key": "{name} Key",+ "jarvis_key_title": "{name} Key",+ "jarvis_key_desc": "Der eine Schlüssel, der diese Installation schützt — er entsperrt {name} im Browser und weist lokale Agenten aus.","mode_pipeline": "Pipeline","mode_realtime": "Realtime","mode_active_badge": "Aktiv",@@ -935,7 +938,7 @@"cat_subagents_title": "Jarvis-Agents","cat_subagents_desc": "Wähle, welcher Provider schwere Hintergrund-Aufgaben übernimmt.","advanced_title": "Zugang & Integrationen",- "advanced_desc": "Optionale Extras: Control-API-Zugang, der Team-Key-Proxy, Telefonie und der Wissens-Wiki-Provider.",+ "advanced_desc": "Optionale Extras: der Team-Key-Proxy, Telefonie und der Wissens-Wiki-Provider.","no_providers_in_tier": "In dieser Kategorie sind keine Provider verfügbar.","model_picker_activate_hint": "Aktiviere diesen Provider, um seine Stimme oder sein Modell zu wählen.","active_tooltip": "Bereits aktiv",diff --git a/jarvis/ui/web/frontend/src/i18n/locales/en.json b/jarvis/ui/web/frontend/src/i18n/locales/en.jsonindex 7659b55f58..f7c00b9c77 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/en.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/en.json@@ -10,7 +10,7 @@"invalid": "That Control Key was not accepted.","unavailable": "Could not reach Jarvis. Try again.","where_title": "Where do I find the Control Key?",- "where_hint": "It was never sent to you — it is generated automatically for this Jarvis install. Open Jarvis on the computer it is installed on: under API Keys → Access & Integrations you can show it, copy it, or replace it with one of your own.",+ "where_hint": "It was never sent to you — it is generated automatically for this Jarvis install. Open Jarvis on the computer it is installed on: under API Keys there is a dedicated key section named after your assistant (e.g. \"Nico Key\") where you can show it, copy it, or replace it with one of your own.","where_hint_server": "On a headless server it is stored in the .control_api_key file inside the Jarvis data folder."},"file_toast": {@@ -912,6 +912,9 @@"tab_computer_use": "Tool Model","tab_subagents": "Jarvis-Agents","tab_advanced": "Advanced",+ "tab_jarvis_key": "{name} Key",+ "jarvis_key_title": "{name} Key",+ "jarvis_key_desc": "The one key that protects this install — it unlocks {name} in the browser and authenticates local agents.","mode_pipeline": "Pipeline","mode_realtime": "Realtime","mode_active_badge": "Active",@@ -935,7 +938,7 @@"cat_subagents_title": "Jarvis-Agents","cat_subagents_desc": "Choose which provider runs heavy background tasks.","advanced_title": "Access & Integrations",- "advanced_desc": "Optional extras: control-API access, the team key proxy, telephony, and the knowledge Wiki provider.",+ "advanced_desc": "Optional extras: the team key proxy, telephony, and the knowledge Wiki provider.","no_providers_in_tier": "No providers available in this category.","model_picker_activate_hint": "Activate this provider to choose its voice or model.","active_tooltip": "Already active",diff --git a/jarvis/ui/web/frontend/src/i18n/locales/es.json b/jarvis/ui/web/frontend/src/i18n/locales/es.jsonindex 3853dbe55e..620dd6b78c 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/es.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/es.json@@ -10,7 +10,7 @@"invalid": "La clave de control no ha sido aceptada.","unavailable": "No se pudo conectar con Jarvis. Inténtalo de nuevo.","where_title": "¿Dónde encuentro la clave de control?",- "where_hint": "Nunca se te envió — se genera automáticamente para esta instalación de Jarvis. Abre Jarvis en el ordenador donde está instalado: en Claves API → Acceso e integraciones puedes mostrarla, copiarla o sustituirla por una propia.",+ "where_hint": "Nunca se te envió — se genera automáticamente para esta instalación de Jarvis. Abre Jarvis en el ordenador donde está instalado: en Claves API hay una sección propia con el nombre de tu asistente (p. ej. \"Nico Key\") donde puedes mostrarla, copiarla o sustituirla por una propia.","where_hint_server": "En un servidor sin interfaz está en el archivo .control_api_key dentro de la carpeta de datos de Jarvis."},"file_toast": {@@ -912,6 +912,9 @@"tab_computer_use": "Tool Model","tab_subagents": "Jarvis-Agents","tab_advanced": "Avanzado",+ "tab_jarvis_key": "{name} Key",+ "jarvis_key_title": "{name} Key",+ "jarvis_key_desc": "La única clave que protege esta instalación: desbloquea {name} en el navegador y autentica a los agentes locales.","mode_pipeline": "Pipeline","mode_realtime": "Tiempo real","mode_active_badge": "Activo",@@ -935,7 +938,7 @@"cat_subagents_title": "Jarvis-Agents","cat_subagents_desc": "Elige qué proveedor ejecuta las tareas pesadas en segundo plano.","advanced_title": "Acceso e integraciones",- "advanced_desc": "Extras opcionales: acceso a la API de control, el proxy de claves de equipo, telefonía y el proveedor del Wiki de conocimiento.",+ "advanced_desc": "Extras opcionales: el proxy de claves de equipo, telefonía y el proveedor del Wiki de conocimiento.","no_providers_in_tier": "No hay proveedores disponibles en esta categoría.","model_picker_activate_hint": "Activa este proveedor para elegir su voz o modelo.","active_tooltip": "Ya activo",diff --git a/jarvis/ui/web/frontend/src/views/ApiKeysView.tsx b/jarvis/ui/web/frontend/src/views/ApiKeysView.tsxindex 945b743509..f2b487a9f6 100644--- a/jarvis/ui/web/frontend/src/views/ApiKeysView.tsx+++ b/jarvis/ui/web/frontend/src/views/ApiKeysView.tsx@@ -42,10 +42,12 @@ import { useT } from "@/i18n";// The view is organised around exactly five primary categories — Brain, Voice// Output (TTS), Voice Input (STT), Realtime and Subagents — surfaced as a-// segmented tab bar. Everything else (Control-API key, team key proxy,-// telephony, Wiki) lives in a clearly separated, de-emphasized "Advanced" tab-// so it never competes with the five core categories.-type CategoryKey = ProviderTier | "subagents" | "advanced";+// segmented tab bar. The per-install Control Key gets its OWN de-emphasized+// tab ("jarvis-key", labelled "<Name> Key" after the configured wake word) so+// a user hunting for the key the lock screen asks about finds a section named+// like their assistant. Everything else (team key proxy, telephony, Wiki)+// lives in the "Advanced" tab so it never competes with the core categories.+type CategoryKey = ProviderTier | "subagents" | "jarvis-key" | "advanced";// The top-level engine mode. Feature A supersedes design D1 ("view-only"):// the switch now decides which tab set is shown AND persists `[voice].mode`@@ -66,9 +68,16 @@ const PIPELINE_TABS: CategoryKey[] = ["tts","stt","subagents",+ "jarvis-key",+ "advanced",+];+const REALTIME_TABS: CategoryKey[] = [+ "realtime",+ "computer-use",+ "subagents",+ "jarvis-key","advanced",];-const REALTIME_TABS: CategoryKey[] = ["realtime", "computer-use", "subagents", "advanced"];type LucideIcon = typeof Brain;@@ -250,6 +259,7 @@ export function ApiKeysView() {/>)}{active === "subagents" && <SubagentCategory />}+ {active === "jarvis-key" && <JarvisKeyCategory />}{active === "advanced" && <AdvancedCategory />}</div></div>@@ -489,7 +499,8 @@ function CategoryTabs({tabs: CategoryKey[];}) {const t = useT();- const tabMeta: Record<Exclude<CategoryKey, "advanced">, { label: string; icon: LucideIcon }> = {+ type CoreTab = Exclude<CategoryKey, "advanced" | "jarvis-key">;+ const tabMeta: Record<CoreTab, { label: string; icon: LucideIcon }> = {brain: { label: t("apikeys_view.tab_brain"), icon: Brain },tts: { label: t("apikeys_view.tab_tts"), icon: Volume2 },stt: { label: t("apikeys_view.tab_stt"), icon: Mic },@@ -498,8 +509,9 @@ function CategoryTabs({subagents: { label: t("apikeys_view.tab_subagents"), icon: Bot },};const coreTabs = tabs.filter(- (key): key is Exclude<CategoryKey, "advanced"> => key !== "advanced",+ (key): key is CoreTab => key !== "advanced" && key !== "jarvis-key",);+ const showJarvisKey = tabs.includes("jarvis-key");const showAdvanced = tabs.includes("advanced");return (<div className="border-b border-border px-6 py-3">@@ -516,21 +528,31 @@ function CategoryTabs({/>))}</div>+ {(showJarvisKey || showAdvanced) && (+ <span+ className="mx-1 hidden h-6 w-px bg-border/70 sm:block"+ aria-hidden="true"+ />+ )}+ {showJarvisKey && (+ <TabButton+ icon={KeyRound}+ label={t("apikeys_view.tab_jarvis_key")}+ selected={active === "jarvis-key"}+ onClick={() => onSelect("jarvis-key")}+ health={health["jarvis-key"]}+ muted+ />+ )}{showAdvanced && (- <>- <span- className="mx-1 hidden h-6 w-px bg-border/70 sm:block"- aria-hidden="true"- />- <TabButton- icon={SlidersHorizontal}- label={t("apikeys_view.tab_advanced")}- selected={active === "advanced"}- onClick={() => onSelect("advanced")}- health={health.advanced}- muted- />- </>+ <TabButton+ icon={SlidersHorizontal}+ label={t("apikeys_view.tab_advanced")}+ selected={active === "advanced"}+ onClick={() => onSelect("advanced")}+ health={health.advanced}+ muted+ />)}</div></div>@@ -862,11 +884,34 @@ function SubagentCategory() {);}+/**+ * The dedicated "<Name> Key" category — the per-install Control Key that+ * unlocks the browser UI and authenticates local agents. The tab and hero are+ * named after the configured wake word via the i18n `{name}` token ("Hannes"+ * -> "Hannes Key"), so the section the lock screen points at carries the name+ * the user actually knows their assistant by.+ */+function JarvisKeyCategory() {+ const t = useT();+ return (+ <div role="tabpanel">+ <CategoryHero+ icon={KeyRound}+ title={t("apikeys_view.jarvis_key_title")}+ description={t("apikeys_view.jarvis_key_desc")}+ />+ <div className="space-y-4">+ <JarvisApiGroup />+ </div>+ </div>+ );+}+/*** The de-emphasized "Advanced" category — everything that is NOT one of the four- * core provider categories: the local Control-API key, the team key proxy,- * telephony, and the knowledge-Wiki provider. Each block keeps its own labelled- * sub-section header, so the zone reads as a clearly separated list of optional+ * core provider categories: the team key proxy, telephony, and the+ * knowledge-Wiki provider. Each block keeps its own labelled sub-section+ * header, so the zone reads as a clearly separated list of optional* integrations rather than competing with the four primary categories.*/function AdvancedCategory() {@@ -879,11 +924,9 @@ function AdvancedCategory() {description={t("apikeys_view.advanced_desc")}/><div className="space-y-4">- {/* Jarvis access — the local Control-API key (lets local coding agents- drive Jarvis over HTTP) and the optional Team key proxy. Both are- credential / key-routing management, so they live with the provider- keys rather than in the behaviour-focused Settings view. */}- <JarvisApiGroup />+ {/* Team key proxy — credential / key-routing management, so it lives+ with the provider keys rather than in the behaviour-focused+ Settings view. */}<TeamProxyGroup />{/* Telephony — the former standalone screen, embedded as a section (owndata source /api/telephony/*). */}diff --git a/jarvis/ui/web/frontend/src/views/ApiKeysView.two-mode.test.tsx b/jarvis/ui/web/frontend/src/views/ApiKeysView.two-mode.test.tsxindex 5f928c9d87..c9914da8a4 100644--- a/jarvis/ui/web/frontend/src/views/ApiKeysView.two-mode.test.tsx+++ b/jarvis/ui/web/frontend/src/views/ApiKeysView.two-mode.test.tsx@@ -75,6 +75,9 @@ describe("ApiKeysView two-mode", () => {expect(screen.getByRole("tab", { name: /voice output/i })).toBeTruthy();expect(screen.getByRole("tab", { name: /voice input/i })).toBeTruthy();expect(screen.getByRole("tab", { name: /jarvis-agents/i })).toBeTruthy();+ // The dedicated key tab is named after the assistant ({name} token; the+ // uncached test default resolves to "Assistant").+ expect(screen.getByRole("tab", { name: /assistant key/i })).toBeTruthy();expect(screen.getByRole("tab", { name: /advanced/i })).toBeTruthy();expect(screen.queryByRole("tab", { name: /realtime/i })).toBeNull();});@@ -124,6 +127,7 @@ describe("ApiKeysView two-mode", () => {expect(screen.getByRole("tab", { name: /realtime/i })).toBeTruthy();expect(screen.getByRole("tab", { name: /jarvis-agents/i })).toBeTruthy();+ expect(screen.getByRole("tab", { name: /assistant key/i })).toBeTruthy();expect(screen.getByRole("tab", { name: /advanced/i })).toBeTruthy();expect(screen.queryByRole("tab", { name: /^brain$/i })).toBeNull();expect(screen.queryByRole("tab", { name: /voice output/i })).toBeNull();