Files
moli/moli-protocol-cdp/protocol

These are the complete browser and JavaScript CDP schemas from ChromeDevTools/devtools-protocol, revision 3bd8f01934b5cb08d4f2dd765a295c2b1a303f30 (Chromium revision 1663043, Chrome 152.0.7954.0).

The JS schema matches vendor/v8-152.2.0/v8/include/js_protocol.pdl (V8 15.2.124.1), converted with upstream pdl.py and map_binary_to_string=True. The vendored js_protocol-1.3.json is the older stable snapshot and does not describe all current Runtime commands and types.

Keep these files unchanged from upstream. When upgrading V8, update both from a matching pinned protocol revision and recheck the JS schema against the vendored PDL. The build merges protocol_extensions.json, selects commands and events using moli-protocol-cdp-defs, and validates definitions, type references, and domain dependencies. The dispatcher uses the same action enum types as this catalog. Local notification constructors use LocalCdpEvent; the build derives their advertised names from that enum and fails if any definition is missing. Add a local event to this enum and use it at the sender, without maintaining a second whitelist. V8 forwarding still selects the pinned schema's events in the explicit forwarded domains.

All types remain available for cross-domain references. The final advertised schema is compacted and compressed with the existing brotlic dependency at quality 11. Only the .json.br bytes are embedded, without a network dependency. The server decodes this final response once through BufReader and caches it with OnceLock; it does not parse, merge, or filter schema JSON at runtime. The uncompressed build artifact is used only by the byte-for-byte round-trip test.

Local event names are checked by Rust types and schema generation. V8 Inspector notifications follow the existing opaque JSON transport and session routing, without runtime schema checks. Keep the pinned V8 schema aligned when upgrading V8. The protocol-schema smoke checks every observed notification, including non-flat session messages, against live discovery.

Upstream licensing is preserved in LICENSE.