glass-browser 0.2.6

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
//! Validate a persisted workflow checkpoint before attempting reconciliation.

use glass::BrowserSession;
use std::env;
use std::fs;

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let path = env::args()
        .nth(1)
        .ok_or("usage: workflow_resume CHECKPOINT.json")?;
    let source = fs::read_to_string(path)?;
    let checkpoint = BrowserSession::parse_workflow_checkpoint(&source)?;
    println!("{}", serde_json::to_string_pretty(&checkpoint)?);
    Ok(())
}