ConstLook up a helper by name.
The helper name.
The helper function, or undefined if not registered.
Replace all custom helpers with a world-authored library.
Resets to the built-ins, then compiles and installs each valid entry. Invalid or unsafe entries are skipped (not thrown) so one bad helper cannot block the rest; the result reports what installed and what did not. Call whenever the world's helper file changes.
The parsed library: a map of helper name to HelperSource.
Which helpers installed and which were skipped (with reasons).
Install a helper implementation directly.
The helper name (as called from an expression).
The helper implementation.
Compile a world-authored helper from its source and install it.
The body is compiled with textToFunction, which applies static safety screening but is a sandbox, not a hard security boundary — the source is expected to come from a GM-chosen (trusted) world file.
The helper name (as called from an expression).
The helper's parameter names and function body.
The global, process-wide helper library that every SafeExpression consults. Seeded with the STANDARD_HELPERS built-ins; a world may layer additional helpers on top (see registerSource), typically loaded from a GM-chosen JSON file at world init.
It is a singleton by design: helpers are language-level, not per-expression, so an expression never carries its own copy.