Skip to main content

Module runtime

Module runtime 

Source
Expand description

Runtime-mode and verbosity primitives. Runtime hint model shared across host, native commands, and plugin boundaries.

This module exists so runtime-facing behavior like verbosity, output mode, and terminal identity can travel through the system as normalized data instead of ad hoc environment parsing in each caller.

High-level flow:

  • parse runtime-oriented environment hints into crate::core::runtime::RuntimeHints
  • normalize those values into enums and bounded scalar settings
  • export the same normalized hints back into environment pairs when needed

Contract:

Public API shape:

Structs§

RuntimeHints
Normalized runtime settings loaded from environment variables.

Enums§

RuntimeTerminalKind
Runtime terminal mode exposed through environment hints.
UiVerbosity
UI message verbosity derived from runtime hints and environment.

Constants§

ENV_OSP_COLOR
Environment variable carrying the color-mode hint.
ENV_OSP_DEBUG_LEVEL
Environment variable carrying the debug level hint.
ENV_OSP_FORMAT
Environment variable carrying the preferred output format.
ENV_OSP_PROFILE
Environment variable carrying the active profile name.
ENV_OSP_TERMINAL
Environment variable carrying the active terminal identifier.
ENV_OSP_TERMINAL_KIND
Environment variable carrying the terminal kind hint.
ENV_OSP_UI_VERBOSITY
Environment variable carrying the UI verbosity hint.
ENV_OSP_UNICODE
Environment variable carrying the Unicode-mode hint.