Skip to content

armgit / moli

Public Imported from GitHub
0

Best headless browser for AI agents. Lite, Fast, High-Compatibility. Built in Rust

1.0 KB
Raw Blame
mod ordered_stream;
mod prepared_outputs;
mod renderer;

pub(crate) use ordered_stream::{OrderedRendererOutputIngress, RendererOutputIngressAdmission};
pub(super) use prepared_outputs::PreparedProtocolOutputs;
pub(crate) use renderer::ingest_renderer_output_transport_async;

use crate::conn::{CdpConnection, CommandDispatchContext, CommandOwnerScope};

/// Projects protocol-owned output accumulated at a command boundary.
///
/// DOMStorage subscriptions are owned by the protocol BrowserContext rather
/// than by a renderer output stream. They therefore keep an explicit
/// command-local flush, while renderer output must arrive exclusively through
/// concrete publications and exact cursor fences.
pub(crate) async fn project_protocol_local_command_outputs(
    conn: &mut CdpConnection,
    owner: &CommandOwnerScope,
    command: &mut CommandDispatchContext,
) {
    PreparedProtocolOutputs::from_protocol_local_command_boundary(conn, owner)
        .await
        .project_async(conn, owner, command)
        .await;
}