Description
Execute TypeScript code in the in-process isolated-vm sandbox (the same battle-tested engine as Run JavaScript: V8-level isolation, no filesystem/network/module access, memory cap and wall-clock timeout enforced by the isolate). TypeScript is transpiled with type-stripping only (no runtime type-check → <50ms compile latency even on 50KB scripts), so type annotations, interfaces, type aliases, enums and "as" casts are supported and simply vanish at runtime. Script globals: `input` (previous node JSON output), `vars` (persistent workflow variables), `ctx` (tenantId, runId, nodeId). The value you `return` becomes the node output (must be JSON-serializable). Use case: typed data transformations, typed business logic (tiered commissions, multi-field validation), input reshaping before an API call, proprietary customer algorithms written in TS. For CPU-heavy or scientific work use Run Python; for HTTP calls use HTTP Request.
