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§
- Sandbox
Options - Sandbox limits for JavaScript execution.
- Workflow
Budget Snapshot - Budget values exposed through the workflow
budgetglobal. - Workflow
Module Input - Input for one workflow-module evaluation.
- Workflow
Module Output - Result from evaluating a workflow module.
Enums§
- Import
Policy - Module import policy for workflow JavaScript.
- Workflow
Ref - Reference to a child workflow, matching the TypeScript SDK shape.
- Workflow
Runtime Call - Synchronous calls emitted by workflow JS.
- Workflow
Runtime Poll - Result of polling a workflow JavaScript runtime execution.
- Workflow
Runtime Request - Long-running JavaScript-visible request emitted by workflow JS.
- Workflow
Runtime Request Resolution - Response used to resume a pending long-running runtime request.
Traits§
- WorkflowJS
Runtime - Engine-independent JavaScript workflow runtime interface.
- Workflow
Runtime Execution - Resumable workflow JavaScript execution.