Skip to main content

Module protocol

Module protocol 

Source
Expand description

NDJSON IPC protocol types matching shared/protocol/schema.json.

All structs derive Serialize and Deserialize for NDJSON transport. The LogEntry enum uses an internally-tagged representation keyed on "type" so it round-trips with the Node.js / Go implementations.

Structs§

AppEntry
A snapshot of browser application state.
CacheInfo
Cache storage information.
ConsoleEntry
A captured console log message.
CookieInfo
Cookie information.
ErrorEntry
A captured runtime error.
Filters
Query filters sent by the CLI client.
NetworkEntry
A captured network request (fetch, XHR, or WebSocket).
PermissionInfo
Browser permission state.
QueryRequest
NDJSON request message sent from the CLI to the bridge.
QueryResponse
NDJSON response message sent from the bridge to the CLI.
ServiceWorkerInfo
Service worker information.
SessionInfo
Describes the running debugger session.
StorageEstimate
Browser storage quota and usage estimate.

Enums§

LogEntry
Discriminated union of all log entry types.

Functions§

compute_socket_path
Compute the IPC socket path for the given working directory.
create_session
Create a new SessionInfo for the given framework and port.
generate_id
Generate a random 6-character hex identifier.
now_millis
Returns the current time as Unix epoch milliseconds.