pub fn build_protocol(files: JsValue, entry: &str) -> Result<String, JsValue>
Build the protocol JSON from virtual files without rendering.
Returns the serialized WebUIProtocol as a JSON string.
WebUIProtocol