Overview
Added
- Serverless task handlers for Cloudflare Workers, Vercel and Node, driven by the in-engine serverless operator: signed POST delivery for pure tasks (
hatchetClient: false) and the invocation websocket for every other task, including durable tasks with sleeps, waits and child runs. clientFromContext(ctx): child runs, durable stream topics and run events over the socket, withrefreshTimeoutandreleaseSlotthrough the SDK's/coreclient.@hatchet-dev/serverless/testing: an in-process operator for tests without Hatchet.
Installation
pnpm add @hatchet-dev/serverless @hatchet-dev/typescript-sdk zod@hatchet-dev/typescript-sdk (1.41.0 or later, for its /core entry, its durable stream
calls and its task calls) and zod are peer dependencies: the SDK supplies the declaration API, Context, the registration format and
the core client, nothing else.