Skip to main content

Crate sim_lib_web_bridge

Crate sim_lib_web_bridge 

Source
Expand description

Session and transport bridge over realize/EvalFabric: the Intent/Scene bus for the SIM Web-UI (WEBUI_4).

The bridge connects the browser shell to any runtime, location-transparently, by targeting realize_events/realize_final rather than a transport-specific API. Four interchangeable transports sit behind one trait: in-browser wasm, local server, remote server, and fixture/cassette sessions for deterministic tests. Both a human (through the browser) and an agent (through the agent runner) are peers on this same bus.

This crate provides the transport contract and session status, the deterministic fixture transport, the network remote transports, and the session bus with per-pane subscriptions and Scene-diff streaming.

Re-exports§

pub use fabric::FabricTransport;
pub use fabric::operation_to_request;
pub use fixture::FixtureTransport;
pub use history::History;
pub use history::SessionLog;
pub use history::Snapshots;
pub use history::annotate;
pub use host::DesktopHost;
pub use host::PHONE_PANE;
pub use host::PhoneHost;
pub use placement::BrowserBridgeLane;
pub use placement::BrowserPlacementReport;
pub use placement::BrowserPlacementRequest;
pub use placement::BrowserWasmEngine;
pub use placement::BrowserWasmEntryPoints;
pub use placement::browser_audio_worklet_entry_symbol;
pub use placement::browser_server_only_refusal_diagnostic;
pub use placement::browser_wasm_engine_entry_symbol;
pub use placement::browser_wasm_site_symbol;
pub use remote::RemoteTransport;
pub use session::SceneUpdate;
pub use session::Session;
pub use sync::Broadcast;
pub use sync::EditRow;
pub use sync::SurfaceHub;
pub use sync::replay;
pub use transport::BrowserStreamStatus;
pub use transport::ChangeEvent;
pub use transport::SessionStatus;
pub use transport::StreamInspectorRecord;
pub use transport::Transport;
pub use transport::TransportKind;
pub use transport::WebStreamOperation;
pub use transport::web_stream_operation_capability_names;
pub use transport::web_stream_operation_symbols;

Modules§

fabric
The fabric transport: a session as a realize target on an EvalFabric.
fixture
The fixture transport: a deterministic in-memory runtime.
history
History, snapshots, the session log, and review primitives – all as values.
host
Phone and desktop host wrappers over the session bus (VIEW4.09).
placement
Browser-local wasm placement descriptors and headless execution harness.
remote
Network transports (wasm, local server, remote server).
session
The session: the Intent/Scene bus with per-pane subscriptions.
sync
Multi-surface synchronized edit sessions: broadcast, handoff, and replay.
transport
The transport trait and session status.

Constants§

SESSION_CLASS
Stable symbol for the session value carried on the bus.