Expand description
Inspector capture types — ConsoleEntry, NetworkEntry, ring
buffer + level/status enums.
Engine implementations capture these in always-on ring buffers
(bounded; FIFO eviction). The agent reads them via the
vs_inspect primitive (M5.7 PR2+).
WebKit Inspector protocol is internal only — it never appears on the agent-facing wire. See ADR 0008.
Structs§
- Console
Entry - One captured console event.
- Cookie
Event - Cookie store change event captured by
Engine::cookie_events. macOS usesWKHTTPCookieStoreObserver, Linux uses theWebKitCookieManager::changedsignal; both diff snapshots to produce per-cookie Added/Removed events. Windows currently has no observer inwebview2-com, so the engine reportsinspector_cookie_events = falseand the primitive returnsENGINE_UNSUPPORTED. - DomDetail
- Detail returned by
Engine::dom: outer HTML + computed-style pairs for one ref. - Header
- One request/response header pair, captured for
vs_inspect request. - Network
Entry - One captured network event.
- Performance
Metrics - Web Vitals + heap + DOM-stat block returned by
Engine::performance. Floats use 2 decimals on the wire; missing metrics are emitted as0rather than dropped (keeps the line shape stable). - Request
Detail - Full detail for one captured network request — headers + bodies for
both the request and response. Returned by
crate::Engine::request_detailwhen the agent callsvs_inspect request <id>. - Ring
Buffer - Bounded FIFO ring buffer for inspector captures. Adding to a full buffer evicts the oldest entry. Reads return a snapshot in chronological order (oldest first).
- Script
Entry - One loaded script in
Engine::scripts. - Script
Source - Source of one script (returned by
Engine::script_source). - Storage
Entry - One entry returned by
Engine::storage. Cookies use the optional flag fields; key/value stores use onlykeyandvalue; IndexedDB useskey(db name) andvalue(version + object store names joined). The agent doesn’t need a sum type — a uniform shape keeps the wire format simple.
Enums§
- Console
Level - Console levels observable by
vs_inspect console. Mirrors the browser’sconsole.<level>(...)family plus the syntheticerrorlevel we use for uncaught exceptions and unhandled rejections. - Cookie
Action - Eval
Result - Result of
Engine::eval_js. TheOkvariant carries a JSON- serialized value (or empty forundefined/null); errors are distinguished by kind so the agent can react differently to a thrown exception vs. a SyntaxError vs. a binding/IO failure. - Network
Status - Status of a captured network request.
- Script
State - Storage
Scope - Storage scope for
Engine::storage.
Constants§
- DEFAULT_
BUFFER_ CAPACITY - Default ring-buffer capacity per kind, per page. Configurable via
Daemon::with_inspector_buffer_capacity.