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.

chore(i18n): translate run_shell, mark reset_orb/respawn_mascot DE voice phrases (batch 05_3_jarvis, part 11)

Ruben Lütke822b2e6a97a6
diff --git a/jarvis/plugins/tool/reset_orb_position.py b/jarvis/plugins/tool/reset_orb_position.py
index 21df0d7fee..5529f09c97 100644
--- a/jarvis/plugins/tool/reset_orb_position.py
+++ b/jarvis/plugins/tool/reset_orb_position.py
@@ -1,6 +1,6 @@
"""``reset_orb_position`` — voice-driven recovery for a lost orb.
-ADR-0016 L2: when the user says "Orb zurück", "wo bist du", or
+ADR-0016 L2: when the user says "Orb zurück", "wo bist du", or # i18n-allow (quotes DE voice-trigger phrases matched by the local-action gate)
"reset orb", the local-action gate dispatches this tool. The tool
publishes :class:`OrbResetRequested` on the EventBus; the orb-side
bridge (``ui.orb.bus_bridge.OrbBusBridge``) subscribes and marshals
@@ -31,8 +31,8 @@ class ResetOrbPositionTool:
name: str = "reset_orb_position"
risk_tier: str = "safe"
description: str = (
- "Bringt das Maskottchen / den Orb zurück zum Standard-Anker auf "
- "dem Hauptbildschirm (Voice-Recovery für BUG-027)."
+ "Brings the mascot / orb back to its default anchor on "
+ "the main screen (voice recovery for BUG-027)."
)
schema: dict[str, Any] = {
"type": "object",
@@ -54,7 +54,7 @@ class ResetOrbPositionTool:
output=None,
error=f"OrbResetRequested publish failed: {exc!r}",
)
- return ToolResult(success=True, output="Orb ist zurück.", error=None)
+ return ToolResult(success=True, output="Orb ist zurück.", error=None) # i18n-allow (DE TTS voice-confirmation phrase spoken back to the user)
__all__ = ["ResetOrbPositionTool"]
diff --git a/jarvis/plugins/tool/respawn_mascot.py b/jarvis/plugins/tool/respawn_mascot.py
index 819a698b9b..8aa0db1e2a 100644
--- a/jarvis/plugins/tool/respawn_mascot.py
+++ b/jarvis/plugins/tool/respawn_mascot.py
@@ -1,7 +1,7 @@
"""``respawn_mascot`` — voice-driven recovery for a lost / hidden mascot.
Mirrors :mod:`jarvis.plugins.tool.reset_orb_position` (ADR-0016 L2): when
-the user says "Maskottchen wieder auftauchen", "respawn mascot", "der
+the user says "Maskottchen wieder auftauchen", "respawn mascot", "der # i18n-allow (quotes DE voice-trigger phrases matched by the local-action gate)
Spawner" etc., the local-action gate dispatches this tool. It clears the
``OverlaySupervisor``'s cap-state and forces a fresh subprocess spawn so
the mascot reappears even when the prior subprocess was hidden, hung, or
@@ -24,9 +24,9 @@ class RespawnMascotTool:
name: str = "respawn_mascot"
risk_tier: str = "safe"
description: str = (
- "Bringt das Maskottchen / den Overlay-Spawner zurück, indem die "
- "OverlaySupervisor-Cap geleert und der Subprocess frisch gespawnt "
- "wird (Voice-Recovery für BUG-012-Klasse)."
+ "Brings the mascot / overlay spawner back by clearing the "
+ "OverlaySupervisor cap state and spawning a fresh subprocess "
+ "(voice recovery for the BUG-012 class)."
)
schema: dict[str, Any] = {
"type": "object",
@@ -51,7 +51,7 @@ class RespawnMascotTool:
if supervisor is None:
return ToolResult(
success=False,
- output="Maskottchen-Overlay ist nicht aktiv.",
+ output="Maskottchen-Overlay ist nicht aktiv.", # i18n-allow (DE TTS voice-confirmation phrase spoken back to the user)
error="overlay supervisor not initialised",
)
@@ -66,7 +66,7 @@ class RespawnMascotTool:
return ToolResult(
success=True,
- output="Maskottchen ist wieder da.",
+ output="Maskottchen ist wieder da.", # i18n-allow (DE TTS voice-confirmation phrase spoken back to the user)
error=None,
)
diff --git a/jarvis/plugins/tool/run_shell.py b/jarvis/plugins/tool/run_shell.py
index f478d4d830..c922864099 100644
--- a/jarvis/plugins/tool/run_shell.py
+++ b/jarvis/plugins/tool/run_shell.py
@@ -1,10 +1,10 @@
-"""run_shell-Tool: führt Shell-Commands aus (via subprocess).
+"""run_shell tool: runs shell commands (via subprocess).
-Risk-Tier: monitor — Safety-Layer entscheidet via Whitelist/Blacklist ob Confirm nötig.
+Risk tier: monitor — the safety layer decides via whitelist/blacklist whether confirmation is needed.
-Das Tool ruft NICHT den `shell=True`-Modus auf. Commands werden durch
-`shlex.split` geparst. Der User kann über `[safety.whitelist].commands`
-gefährliche Commands in safe-Tier schieben (`browser-use *`, `git *`).
+The tool does NOT invoke `shell=True` mode. Commands are parsed through
+`shlex.split`. The user can move dangerous commands into the safe tier
+via `[safety.whitelist].commands` (`browser-use *`, `git *`).
"""
from __future__ import annotations
@@ -21,15 +21,15 @@ class RunShellTool:
name: str = "run_shell"
risk_tier: str = "monitor"
description: str = (
- "Führt ein Shell-Kommando aus. Commands werden gegen Whitelist/Blacklist "
- "gematcht. Timeout default 30s."
+ "Runs a shell command. Commands are matched against the whitelist/"
+ "blacklist. Default timeout 30s."
)
schema: dict[str, Any] = {
"type": "object",
"properties": {
- "command": {"type": "string", "description": "Das Kommando (inkl. Arguments)"},
+ "command": {"type": "string", "description": "The command (incl. arguments)"},
"timeout_s": {"type": "number", "default": 30},
- "cwd": {"type": "string", "description": "Working-Directory", "default": ""},
+ "cwd": {"type": "string", "description": "Working directory", "default": ""},
},
"required": ["command"],
}
@@ -39,7 +39,7 @@ class RunShellTool:
timeout_s = float(args.get("timeout_s", 30))
cwd = args.get("cwd") or None
if not command:
- return ToolResult(success=False, output=None, error="command fehlt")
+ return ToolResult(success=False, output=None, error="command is missing")
try:
parts = shlex.split(command, posix=(sys.platform != "win32"))
@@ -59,9 +59,9 @@ class RunShellTool:
except TimeoutError:
proc.kill()
await proc.wait()
- return ToolResult(success=False, output=None, error=f"Timeout nach {timeout_s}s")
+ return ToolResult(success=False, output=None, error=f"Timeout after {timeout_s}s")
except FileNotFoundError as exc:
- return ToolResult(success=False, output=None, error=f"Nicht gefunden: {exc}")
+ return ToolResult(success=False, output=None, error=f"Not found: {exc}")
except Exception as exc: # noqa: BLE001
return ToolResult(success=False, output=None, error=str(exc))