pub type ScreenContext = ContextSnapshot;Use ContextSnapshot
Expand description
Deprecated compatibility name for ContextSnapshot.
ScreenContext was the original name from the UI/screen-first era of the
crate. New code should use ContextSnapshot, which better reflects that the
snapshot can contain metrics, logs, traces, tickets, database rows, DOM
elements, accessibility facts, OCR, vision, and other streams.
Aliased Type§
pub struct ScreenContext {Show 15 fields
pub app: String,
pub window: String,
pub elements: Vec<ContextElement>,
pub network_events: Vec<ConnectionEvent>,
pub http_events: Vec<HttpEvent>,
pub timestamp_ms: u64,
pub screen_width: Option<u32>,
pub screen_height: Option<u32>,
pub clipboard: Option<ClipboardState>,
pub window_list: Vec<WindowState>,
pub audio: Option<AudioState>,
pub power: Option<PowerState>,
pub running_apps: Vec<RunningApp>,
pub recent_files: Vec<RecentFile>,
pub transcripts: Vec<TranscriptEntry>,
}Fields§
§app: StringHuman-readable primary app, service, domain, or workflow label.
window: StringHuman-readable secondary scope label, such as a window, route, incident, or task.
elements: Vec<ContextElement>All normalized context elements, sorted by confidence (highest first).
network_events: Vec<ConnectionEvent>Recent network connections (TCP/UDP level — honest data from lsof or /proc).
http_events: Vec<HttpEvent>Real HTTP events from CDP or proxy (never fabricated).
timestamp_ms: u64Timestamp of this context snapshot (ms since epoch).
screen_width: Option<u32>Screen width in pixels (used for spatial normalization in reference resolution).
screen_height: Option<u32>Screen height in pixels (used for spatial normalization in reference resolution).
clipboard: Option<ClipboardState>Clipboard state (text, has_image, has_files).
window_list: Vec<WindowState>All visible windows on screen (not just focused app).
audio: Option<AudioState>Audio output state (volume, muted).
power: Option<PowerState>Battery/power state.
running_apps: Vec<RunningApp>Running GUI applications.
recent_files: Vec<RecentFile>Recently created/modified files.
transcripts: Vec<TranscriptEntry>Transcribed speech segments from any audio stream.