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
test(contract): let the Groq plugin use the shared STT text filter
Ruben Lütke402dc5e3efd5
diff --git a/tests/contract/test_stt_protocol.py b/tests/contract/test_stt_protocol.pyindex bc6bff8adc..16b96bb312 100644--- a/tests/contract/test_stt_protocol.py+++ b/tests/contract/test_stt_protocol.py@@ -92,8 +92,23 @@ def test_provider_class_name_matches_entry_point(stt_classes, provider_name):# "No jarvis.* imports" rule for the Groq plugin source# ----------------------------------------------------------------------+#: The one ``jarvis.*`` package a plugin module may reach into: its own plugin+#: group. ``jarvis.plugins.stt.transcript_filter`` is the shared post-processing+#: helper that every STT provider runs its raw text through — fwhisper,+#: gemini_api, nemotron_local, openai_api and openrouter_stt all import it the+#: same way. It lives INSIDE the plugin layer, so using it is plugin code+#: sharing plugin code, not a plugin reaching up into the application core,+#: which is what the rule exists to prevent. Forbidding it here would single out+#: Groq as the only provider shipping unfiltered transcripts.+_ALLOWED_PLUGIN_IMPORT_ROOT = "jarvis.plugins.stt."++def test_groq_plugin_has_no_jarvis_imports():- """The Groq plugin source must not import from ``jarvis.*`` (CLAUDE.md)."""+ """The Groq plugin must not import the app core (CLAUDE.md section 5).++ Its own plugin group is the single exception — see+ :data:`_ALLOWED_PLUGIN_IMPORT_ROOT`.+ """import jarvis.plugins.stt.groq_api as groq_modsource = Path(groq_mod.__file__).read_text(encoding="utf-8")@@ -101,9 +116,10 @@ def test_groq_plugin_has_no_jarvis_imports():lnfor ln in source.splitlines()if ln.lstrip().startswith(("from jarvis", "import jarvis"))+ and _ALLOWED_PLUGIN_IMPORT_ROOT not in ln]assert not offending, (- "jarvis.* imports leaked into the Groq plugin: " + "; ".join(offending)+ "the Groq plugin reaches into the application core: " + "; ".join(offending))