Skip to main content

Module js_runtime

Module js_runtime 

Source
Expand description

JavaScript runtime boundary for executing workflow modules.

The boundary in this module is intentionally independent of any particular JavaScript engine. The first implementation is backed by QuickJS via rquickjs, but callers should depend on these traits and types rather than directly on the engine crate.

Runtime implementations own JavaScript parsing, execution, sandboxing, and the local JavaScript ↔ Rust bridge. The Rust workflow core drives the runtime as a resumable execution and handles semantic calls/requests such as log, phase, agent, and child workflow invocations.

Modules§

rquickjs
QuickJS-backed implementation of the workflow JavaScript runtime boundary.

Structs§

SandboxOptions
Sandbox limits for JavaScript execution.
WorkflowBudgetSnapshot
Budget values exposed through the workflow budget global.
WorkflowModuleInput
Input for one workflow-module evaluation.
WorkflowModuleOutput
Result from evaluating a workflow module.

Enums§

ImportPolicy
Module import policy for workflow JavaScript.
WorkflowRef
Reference to a child workflow, matching the TypeScript SDK shape.
WorkflowRuntimeCall
Synchronous calls emitted by workflow JS.
WorkflowRuntimePoll
Result of polling a workflow JavaScript runtime execution.
WorkflowRuntimeRequest
Long-running JavaScript-visible request emitted by workflow JS.
WorkflowRuntimeRequestResolution
Response used to resume a pending long-running runtime request.

Traits§

WorkflowJSRuntime
Engine-independent JavaScript workflow runtime interface.
WorkflowRuntimeExecution
Resumable workflow JavaScript execution.