Skip to main content

Module runtime

Module runtime 

Source
Expand description

Runtime metadata shared by the reducer, recorder, and renderer.

These types deliberately carry facts rather than presentation strings. Tool output still contains the provider-facing text that goes back into the model, while this module holds the metadata the UI and future commands can consume without scraping that text.

Structs§

ManagedProcess
Registry record for a background process Mermaid started.
ProviderCapabilitySnapshot
Normalized provider capability snapshot exposed in app state.
RuntimeState
Runtime state that is not part of the chat transcript sent to a model, but is useful for UI, slash commands, and debugging.
RuntimeTimelineEvent
Runtime event recorded in state for observability / replay tooling.
ToolRunMetadata
Structured metadata extracted from a completed tool run.

Enums§

ManagedProcessStatus
Background process status tracked by Mermaid after launching a command in execute_command(mode="background").
RuntimeSignal
External lifecycle signal observed by the app shell.
RuntimeTimelineKind
ToolArtifact
Non-text artifact produced by a tool. Images are base64 strings to match the existing chat-message storage format.
ToolMetadata
Typed metadata produced by a specific tool implementation.
ToolStatus
Tool outcome status independent of how the result is rendered.

Functions§

infer_static_context_window_for_model_id