Raxol.Playground.Demos.ReplDemo (Raxol v2.8.0)

View Source

Playground demo: AST-checked interactive Elixir REPL.

Evaluation runs submitted code with the node's full authority and is opt-in per deployment (Raxol.Core.Boundary.Evaluation). Raxol.REPL.Sandbox runs in front of it, but that checker is a mitigation, not a trust boundary: see check_and_eval/2.

Summary

Functions

evaluation_enabled?(context \\ nil)

@spec evaluation_enabled?(map() | nil) :: boolean()

Whether this launch of the REPL demo may evaluate code.

True when the deployment opted in (RAXOL_REPL_EXPOSED=true or config :raxol_core, :repl_exposed, true), or when a local terminal launch passed local_operator: true. The demo renders either way; with evaluation off, Enter reports the flag rather than running the input.

subscribe_interval(interval, msg)

subscribe_to_events(events)