Documentation
¶
Overview ¶
Package scriptruntime executes sandboxed embedded scripts.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AlwaysErrors ¶ added in v0.7.5
AlwaysErrors reports whether script can only fail: before doing anything else, it calls error(...). Constant locals, such as the message the call raises, may come first. A compiler that cannot do a task with the tools it has writes such a stub, which must never be promoted.
func ValidateLua ¶
ValidateLua parses a Lua script without executing it.
Types ¶
type Environment ¶
Environment exposes runtime context to embedded scripts.
type Options ¶
type Options struct {
ToolClient agent.ToolClient
Environment Environment
Logf func(format string, args ...any)
}
Options configures a sandboxed Lua script execution.