settings
¶
Global mujoco-mojo settings API for the Dojo dashboard.
get_settings
async
¶
Returns the current settings, their JSON Schema, per-leaf display metadata, the Color name-to-hex table, and whether this request is allowed to edit them. Every SecretStr field (dojo.password) is stripped entirely from both the schema and the values - not masked, removed - since the Dojo web frontend has no legitimate need to know these fields exist at all.
Source code in src/mujoco_mojo/utils/layers/dojo/routers/settings.py
post_settings
async
¶
Validates and persists a full settings tree posted by the client.
Source code in src/mujoco_mojo/utils/layers/dojo/routers/settings.py
post_settings_reset
async
¶
Resets every setting to its code-level default.
Source code in src/mujoco_mojo/utils/layers/dojo/routers/settings.py
resolve_color
async
¶
Resolves arbitrary color input (a Color enum member name in any case, or a #rrggbb hex code) to its canonical hex and, if it matches one, Color member name - a read-only, general-purpose endpoint, not tied to a specific settings field, so any color picker in Dojo can resolve what a user typed against Color.parse's normalization instead of re-implementing name/case matching client-side.
Not localhost-gated, unlike the write endpoints above - this never modifies anything.