Skip to main content

Module shared

Module shared 

Source
Expand description

Shared data types and logic for UI modules.

This module contains common data structures used by both the GUI and TUI, such as run progress, project data, session data, and run history entries.

These types are framework-agnostic and can be used by any UI implementation.

Structs§

ProjectData
Data collected from a single project for display.
RunHistoryData
Result of loading run history.
RunHistoryEntry
Data for a single entry in the run history panel.
RunHistoryOptions
Options for loading run history.
RunProgress
Progress information for a run.
SessionData
Data for a single session in the Active Runs view.
UiData
Result of loading UI data from disk.

Enums§

Status
Semantic status states for consistent status determination across UIs.

Functions§

format_duration
Format a duration from a start time as a human-readable string.
format_duration_secs
Format a duration in seconds as a human-readable string.
format_relative_time
Format a timestamp as a relative time string.
format_relative_time_secs
Format a relative time from seconds ago.
format_run_duration
Format a run duration, using finished_at if available, otherwise live from now.
format_state_label
Format a MachineState as a human-readable label.
load_archived_run
Load an archived run by run_id from a project’s runs directory.
load_project_run_history
Load run history for a single project (simplified API for GUI).
load_run_history
Load run history for display.
load_session_by_id
Load a single session by project name and session ID.
load_ui_data
Load UI data from disk.