register_all_host_apis

Function register_all_host_apis 

Source
pub(crate) fn register_all_host_apis(
    lua: &Lua,
    script_name: &str,
    sandbox_root: &Path,
) -> LuaResult<()>
Expand description

Register all standard host APIs on a Lua VM instance.

This is the single entry-point used by both connector and tool runtimes. It sandboxes the globals and registers every host module.

ยงArguments

  • lua โ€” the Lua VM instance to configure.
  • script_name โ€” logical name used for log prefixes (e.g. "script:jira").
  • sandbox_root โ€” directory that fs.read / fs.list are confined to.