The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
feat(mascot): add mascot state slice and config helpers
Steven Enamakelcea5899931d9
diff --git a/app/src/store/mascotSlice.ts b/app/src/store/mascotSlice.tsindex debf11a404..1b44d4084e 100644--- a/app/src/store/mascotSlice.ts+++ b/app/src/store/mascotSlice.ts@@ -282,7 +282,8 @@ interface MascotState {* `classic` is* today's turn-based record → transcribe → reply → TTS pipeline; `realtime`* is the streaming ElevenLabs Agents session. Defaults to `classic` and is- * only togglable when `VOICE_MODE_FLAG_ENABLED` is on, so the realtime path+ * no longer read by any surface: the mascot stage now always uses the live+ * voice agent. Kept so persisted blobs still rehydrate cleanly; the realtime path* ships dark until it is ready.*/voiceMode: VoiceMode;diff --git a/app/src/test/setup.ts b/app/src/test/setup.tsindex e8653227b4..8e3135e29a 100644--- a/app/src/test/setup.ts+++ b/app/src/test/setup.ts@@ -317,7 +317,6 @@ vi.mock('../utils/config', () => ({MASCOT_VOICE_MODEL_ID: 'eleven_multilingual_v2',MASCOT_MANIFEST_URL:'https://raw.githubusercontent.com/tinyhumansai/mascots/main/dist/mascots.json',- VOICE_MODE_FLAG_ENABLED: false,// Production defaults, so a test that does not care about the voice entry// point sees what a shipped build sees.HUMAN_VOICE_REALTIME_ENABLED: true,diff --git a/app/src/utils/config.ts b/app/src/utils/config.tsindex 1dcafa4622..87d0ca0711 100644--- a/app/src/utils/config.ts+++ b/app/src/utils/config.ts@@ -334,28 +334,14 @@ export const MASCOT_VOICE_MODEL_ID =(import.meta.env.VITE_MASCOT_VOICE_MODEL_ID as string | undefined)?.trim() ||'eleven_multilingual_v2';-/**- * Gates the realtime ElevenLabs Agents voice mode (#5399). On by default in- * every build (local, staging, production) so the Settings toggle is exposed- * without any build-time env wiring; set `VITE_VOICE_MODE=false` to hide it- * (kill switch). This gates only the UI switch — the realtime code paths- * additionally check the persisted `mascot.voiceMode`, so the feature still- * ships dark until the user opts in via the toggle.- */-export const VOICE_MODE_FLAG_ENABLED =- (import.meta.env.VITE_VOICE_MODE as string | undefined)?.trim() !== 'false';-/*** Which voice entry point the Human tab offers (#5399).*- * On by default in every build: the tab shows the realtime "Start voice chat"- * control where the push-to-talk mic used to sit. Set- * `VITE_HUMAN_VOICE_REALTIME=false` to fall back to the classic tap-and-speak- * composer — the kill switch for the realtime path on this surface.- *- * Distinct from {@link VOICE_MODE_FLAG_ENABLED}, which gates the *chat* tab's- * mascot stage against the persisted `mascot.voiceMode`. Keep them separate:- * one surface's rollback must not silently change the other's.+ * On by default in every build: the tab shows the live voice-agent control+ * (`LiveVoiceControls`, the core's `/ws/live-voice` session). Set+ * `VITE_HUMAN_VOICE_REALTIME=false` for a mascot-only stage — the kill switch+ * for the voice control on this surface. The chat tab's mascot stage always+ * uses the live voice agent.*/export const HUMAN_VOICE_REALTIME_ENABLED =(import.meta.env.VITE_HUMAN_VOICE_REALTIME as string | undefined)?.trim() !== 'false';