Expand description
Chrome one-shot session: launch, actions, reap. One-shot browser session: launch-only + actions + reap (PR3–PR6).
PROHIBITED on this path: ensure_daemon, connect_cdp, multi-process session.
Refs live only inside this process; multi-step scripts share one session via run.
Method-level docs are expanded over time; clap and skill surfaces document agent usage.
§Workload
Mista (I/O + light CPU):
- CDP navigation / input / snapshot is I/O-bound (Tokio multi-thread).
- Multi-ref snapshot/grab resolve via
crate::concurrency::join_bounded. - Multi-target attach at launch uses
join_bounded_ordered. - Heavy disk (PDF, heap, perf, screencast frames, eval dumps) uses
crate::concurrency::write_bytes_blocking/spawn_blockingso workers are not pinned (docsrs spawn_blocking; rules: neverstd::fson async path). - Single interactive acts (
goto,press,type, …) stay sequential (DOM focus / product law one Page). Browser multi-URL batch is sequential by design (N-129); use--engine httpfor URL fan-out.
Structs§
- Capture
Opts - Capture toggles for process-local console/network buffers.
- OneShot
Session - Headless Chrome session owned by a single CLI invocation (or one
runscript).
Enums§
- Shutdown
Trigger - Which OS event triggered cooperative shutdown (for logs / tests).
Functions§
- block_
on_ browser - Block on tokio multi-thread runtime for one-shot browser work.
- block_
on_ browser_ timeout - Like
block_on_browser, but abort withErrorKind::Timeoutwhentimeout_secs > 0. - run_
goto - run_
goto_ capture - run_
goto_ with_ options - One-shot goto with tool-ref navigation options (init script, beforeunload, timeout).
- run_
goto_ with_ robots - run_
keys - run_
press - run_
scrape - run_
type - run_
view - run_
with_ session - run_
write - shutdown_
signal - Central OS shutdown detector (rules: single
shutdown_signalentrypoint). - tree_
to_ at_ refs - Rewrite native
[ref=eN]markers to agent-facing[@eN].