glass-browser 0.2.4

Local, revision-safe Chrome automation runtime for agents, with semantic observation, verified workflows, MCP, CLI, TUI, and Rust APIs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Small, bounded topology projections shared by recovery and diagnostics.

use super::*;

pub(crate) async fn trace_for(registry: &Arc<Mutex<TopologyRegistry>>) -> TopologyTrace {
    let topology = registry.lock().await;
    TopologyTrace {
        sequence: topology.sequence,
        active_target_id: topology.active_target_id.clone(),
        active_frame_id: topology.active_frame_id.clone(),
        target_count: topology.targets.len(),
        frame_count: topology.frames.len(),
        event_loss_count: topology.event_loss_count,
    }
}