Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::view::ClaudeRuntimeOptions Struct Reference

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

Detailed Description

Options for the --execute-bundle import lane.

Member Data Documentation

◆ engine_override

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.

◆ error_out

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.

◆ max_total_js_bytes

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.

◆ runtime_snapshot_viewport_height

int pulp::view::ClaudeRuntimeOptions::runtime_snapshot_viewport_height = 0

◆ runtime_snapshot_viewport_width

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.


The documentation for this struct was generated from the following file: