rulvar API reference / @rulvar/planner / compileScript
Function: compileScript()
ts
function compileScript(source, o?): CompiledWorkflow;Defined in: packages/planner/src/compile.ts:250
Validates and compiles planner-generated source into a CompiledWorkflow. The source is an async function body over the sandbox globals; its return value is the workflow result. The compiled form is pure data (the source is evaluated only inside the worker sandbox); machine scripts run under errorPolicy 'lenient'.
Parameters
| Parameter | Type |
|---|---|
source | string |
o? | CompileScriptOptions |