yasmin_editor.editor_gui.runtime_shell_context module
Pure helpers for the runtime interactive shell integration.
The interactive shell is optional UI, but its context payload and status text are plain data derivations from the runtime backend. Keeping those rules here lets the test suite cover shell behavior without importing Qt widgets.
- yasmin_editor.editor_gui.runtime_shell_context.build_runtime_shell_context_payload(runtime, commands: dict[str, object]) dict[str, object] | None
Return the shell namespace payload or
Nonewhen unavailable.
- yasmin_editor.editor_gui.runtime_shell_context.runtime_shell_allowed(runtime) bool
Return whether the runtime exposes enough state for the shell.
- yasmin_editor.editor_gui.runtime_shell_context.runtime_shell_command_result(runtime, command_name: str) str
Return the short status line shown after one shell command.
- yasmin_editor.editor_gui.runtime_shell_context.runtime_shell_where_text(runtime) str
Return the multi-line shell summary of the current runtime location.