Expand description
sim-web-shell: the binary that serves the SIM WebUI shell.
The crate embeds its web/ browser assets and serves cookbook APIs through
the shared server/cookbook libraries. The browser shell is a thin Scene
painter and Intent emitter with an Atelier cache view over the generated
Site graph, constellation index, Retrieval Radar, and Guideline Firewall
reports. The shell ships no second data model and no second semantics.
Structs§
- Asset
- A static asset resolved for an HTTP path: its bytes and MIME content type.
- Atelier
CliLib - Loadable lib that claims the
ateliercommand-line verb. - Atelier
WebResponse - HTTP response generated by the Atelier cache adapter.
- Atelier
WebState - Atelier state loaded by
sim-web-shellat startup. - Browse
CliLib - Loadable lib that claims the
browsecommand-line verb. - Live
Session - A server-held live session: a
Sessionover a deterministic in-memoryFixtureTransport, itsLensRegistry(with the universal default lens registered), and the runtimeCxused to render Scenes. - Serve
Config - Configuration for the shell server.
Constants§
- DEFAULT_
PANE - The default pane the shell opens the demo resource into. The shipped
app.jsposts Intents for this pane. - DEFAULT_
RESOURCE - The default resource seeded into the live session for the demo shell.
Functions§
- asset_
for - Resolve a request path to an embedded asset, or
Nonefor a 404. - decode_
intent_ body - Decode an Intent from an untagged-JSON request body and lift its envelope
back to faithful
Exprs. Returns a structured error string on malformed JSON or a non-object body; it never panics. - encode_
patches - Encode a batch of Scene updates as the untagged-JSON
{ "patches": [...] }response the browser’s patch listener consumes. - encode_
scene - Encode a Scene as the untagged-JSON
{ "scene": ... }response the open route returns. - error_
json - Encode a structured
{ "error": message }JSON body. - serve
- Bind and serve the shell until the process is terminated.