Options for the --execute-bundle import lane. More...
#include <design_source_types.hpp>
Public Attributes | |
| size_t | max_total_js_bytes = 6 * 1024 * 1024 |
| Hard cap on bytes of bundled JS to evaluate. | |
| std::optional< int > | engine_override |
| Override the JS engine backend. | |
| std::string * | error_out = nullptr |
| If non-null, populated with a human-readable explanation when the runtime path bails out and the caller should fall back to the static parser. | |
| int | runtime_snapshot_viewport_width = 0 |
| Optional viewport used when a runtime-native tree is frozen into DesignIR. | |
| int | runtime_snapshot_viewport_height = 0 |
Options for the --execute-bundle import lane.
| std::optional<int> pulp::view::ClaudeRuntimeOptions::engine_override |
Override the JS engine backend.
nullopt -> build default (QuickJS unless a PULP_DEFAULT_ENGINE_* compile option selects another backend). Useful for tests that want deterministic engine choice.
| std::string* pulp::view::ClaudeRuntimeOptions::error_out = nullptr |
If non-null, populated with a human-readable explanation when the runtime path bails out and the caller should fall back to the static parser.
Empty when parse_claude_html_with_runtime returns a non-empty IR.
| size_t pulp::view::ClaudeRuntimeOptions::max_total_js_bytes = 6 * 1024 * 1024 |
Hard cap on bytes of bundled JS to evaluate.
Bundles larger than this short-circuit back to the static parser so we don't crash the QuickJS parser stack on a 10 MB minified blob. Default ~6 MB covers a typical react.development + react-dom.development + app.bundle combo (~4.3 MB) with headroom.
| int pulp::view::ClaudeRuntimeOptions::runtime_snapshot_viewport_height = 0 |
| int pulp::view::ClaudeRuntimeOptions::runtime_snapshot_viewport_width = 0 |
Optional viewport used when a runtime-native tree is frozen into DesignIR.
When both values are positive, the bridge root is laid out at this size before computed view bounds are captured.