mirror of
https://github.com/vercel/workflow.git
synced 2026-09-14 19:59:43 +08:00
c1a5c74edb
## Summary & Motivation Adds `StreamExpiredError` to `@workflow/errors`, carrying the run, stream, and server-reported expiry timestamp from workflow-server's 410 `stream-expired` envelope. The reconnect loop rethrows it instead of retrying, since retention expiry is terminal and a retry budget would only convert it into a generic exhaustion error. ## Test Plan Unit tests added for the 410 decoding path and the reconnect rethrow; typechecks pass across the touched packages.
@workflow/errors
Centralized errors package for Workflow SDK.