Files
moli/moli-protocol-webdriver-bidi/src/protocol/mod.rs
T
ldm0 ebd5dbd2f9 refactor(bidi): share channel message envelopes
The BiDi adapter and protocol server duplicate channel-envelope insertion. Own it in the BiDi protocol implementation and reuse it from the server, preserving optional channels, object-only insertion and replacement of an existing goog:channel field.
2026-11-09 18:56:20 +08:00

22 lines
755 B
Rust

//! WebDriver BiDi protocol adapter surface.
//!
//! This crate is intentionally thin. It serializes protocol-neutral
//! `moli-protocol::automation` events into WebDriver BiDi wire shapes and keeps
//! only the connection-local subscription and protocol bridge state needed until
//! the shared typed EventHub owns live fan-out.
mod connection;
mod event_manager;
mod events;
mod types;
pub use connection::BidiConnectionState;
pub use event_manager::BidiEventSourceHookPlan;
pub use types::{
BidiCommand, BidiCommandOutcome, BidiDevToolsCommandContext, BidiDevToolsCommandDispatch,
BidiError, BidiErrorCode, BidiInputCommand, BidiInputCommandDispatch, BidiSessionRegistry,
parse_bidi_command,
};
pub use types::bidi_message_with_channel;