Skip to main content

Module inspector_bundle

Module inspector_bundle 

Source
Expand description

Inspector UI bundle serving for the shared inspector paths:

GET /inspector/ui/ -> index.html GET /inspector/ui/ -> assets/… or other static files GET /inspector/tab.css -> shared –rivet-* token stylesheet

The bundle is embedded into the binary at build time via include_dir! (staged from frontend/dist/inspector-ui and frontend/dist/inspector-tab by build.rs) and served entirely from memory. This is the only serving path: there is no filesystem-root mode and no CDN fallback, so every runner (native or wasm) serves the same embedded bytes.

Per-actor public paths (/inspector/custom-tabs/*) are NOT served here; they depend on the actor’s config and live in the inspector handler itself.

Functions§

is_public_inspector_bundle_path
Whether a path is one of the shared “public” inspector routes that must never require the per-actor bearer token. Tab-config and custom-tabs are per-actor and must be checked separately by the inspector handler since this module doesn’t carry their bytes.
serve_inspector_bundle
Try to serve a request from the embedded inspector-UI bundle.
serve_wasm_custom_tab_unavailable
Wasm runtimes cannot read inspector.tabs[].source files from disk, so GET /inspector/custom-tabs/* short-circuits to this styled HTML page inside the iframe.