Skip to main content

Module viz

Module viz 

Source
Expand description

Rendering overlays for graph visualization.

A GraphOverlay carries per-node execution facts (status, timing, cache tier, health flags) that Graph::to_mermaid_with and Graph::to_graphviz_with fold into the rendered diagram. The overlay is pure data — computed elsewhere (e.g. soma-runtime’s RunReader aggregates it from a run’s event log) and passed in, so rendering stays a dependency-free data→string transform.

Structs§

GraphOverlay
Per-node annotations for one rendering, keyed by node id.
NodeOverlay
Per-node annotation folded into the rendered label and style.

Enums§

NodeStatus
Execution outcome of a node, for status coloring.

Functions§

format_duration_ms
Compact human duration: 340ms, 1.2s, 3.5m, 2.1h.