Skip to content

workflow@5.7.0

Choose a tag to compare

@github-actions github-actions released this 19 Nov 20:41
Immutable release. Only release title and notes can be modified.
517dcb0

@workflow/core@5.7.0

  • #5353 5668d4b @VaguelySerious - Add an optional runs.deleteDataMany method to the World interface, which deletes the stored data (payloads, not metadata) of finished runs on demand, and implement it in the Vercel, Local and Postgres Worlds. Exposed as run.delete() and deleteRuns() (workflow/api), deleteRuns(world, runIds) (@workflow/core/runtime), and pnpx workflow delete <runId> in the CLI. workflow cancel and workflow start no longer accept listing flags they ignored, such as --limit on start or --cursor and --sort on either. workflow delete, workflow cancel and workflow start now print the error they fail with, such as an unknown flag, instead of exiting with no output.
  • #5577 036e1a8 @TooTallNate - Snapshot QuickJS runs that have no encryption key without an opt-in. Runs with an encryption key are unchanged: their snapshots are encrypted, and a plaintext snapshot is still rejected on restore.
  • #5323 c2aa4f7 @VaguelySerious - On QuickJS, a spec 9 run that finishes while an inline step body is still running (the loser of a race against a sleep, a hook or another step) now writes its run_completed or run_failed without waiting for that body, whatever the run's retention, as node:vm and spec 8 runs already did. The body still settles before the delivery returns; on an experimental_retention: 0 run the World discards what it writes after the purge.
  • #5422 b074e75 @VaguelySerious - Log at debug, not warn, when a queued step delivery waits on a fresh inline execution of the same step in the same process
  • #5619 de68280 @VaguelySerious - Report the events a replay diverged at (replayDivergenceEventIds, ids only) beside replayDivergenceCount on the write that ends a divergence episode, including the run_failed of a CORRUPTED_EVENT_LOG failure, so world-vercel can locate the divergence when the run's error payload is encrypted.
  • #5535 de7f123 @VaguelySerious - Keep spec 9 orchestrator deliveries alive through short sleeps instead of re-invoking for each one, and lower the default WORKFLOW_ORCHESTRATOR_LINGER_MS to 5 seconds
  • #5448 5699483 @benpankow - Load the event log once, after run_started, on a start({ experimental_hook }) candidate's first spec 9 delivery, instead of before and after it. Starting each such run makes one fewer World read, and that delivery no longer races run_created. WORKFLOW_TURBO=0 turns this off along with turbo.
  • #5450 4890ea9 @benpankow - A start({ experimental_hook }) candidate's first spec 9 delivery no longer reads the event log after its run_started: the write's skipped-slot report brings whatever landed after the run's creation, so the log stays whole. A report that stops short or leaves a hole still gets the load.
  • #5495 e379eaf @VaguelySerious - Index the long strings of run inputs and hook payloads in memory linear in the payload, and write a reference to one only when it is shorter than the string. Check state that holds one object (or Map) many times once per object, so a small shared graph can't stall a replay or workflow inspect.
  • #5610 5df0437 @AndrewBarba - Keep the abort reason when a workflow aborts a signal a running step holds on an encrypted run, instead of aborting the step's signal with a generic AbortError.
  • #5485 4649046 @VaguelySerious - Resume a spec 9 run whose first delivery is replayed after a crashed invocation instead of leaving its open step stranded.
  • #5468 80d89c0 @benpankow - A resumeHook() wake names the hook_received it was sent for, so a spec 9 orchestrator delivery in a process that already consumed the run's log below that event skips the tail read that checks for a no-op wake.
  • #5612 a136c89 @VaguelySerious - Omit private backend URLs from request diagnostics and sanitize captured E2E CLI output before it reaches CI reports.

@workflow/cli@5.3.0

  • #5353 5668d4b @VaguelySerious - Add an optional runs.deleteDataMany method to the World interface, which deletes the stored data (payloads, not metadata) of finished runs on demand, and implement it in the Vercel, Local and Postgres Worlds. Exposed as run.delete() and deleteRuns() (workflow/api), deleteRuns(world, runIds) (@workflow/core/runtime), and pnpx workflow delete <runId> in the CLI. workflow cancel and workflow start no longer accept listing flags they ignored, such as --limit on start or --cursor and --sort on either. workflow delete, workflow cancel and workflow start now print the error they fail with, such as an unknown flag, instead of exiting with no output.

@workflow/world@5.3.0

  • #5353 5668d4b @VaguelySerious - Add an optional runs.deleteDataMany method to the World interface, which deletes the stored data (payloads, not metadata) of finished runs on demand, and implement it in the Vercel, Local and Postgres Worlds. Exposed as run.delete() and deleteRuns() (workflow/api), deleteRuns(world, runIds) (@workflow/core/runtime), and pnpx workflow delete <runId> in the CLI. workflow cancel and workflow start no longer accept listing flags they ignored, such as --limit on start or --cursor and --sort on either. workflow delete, workflow cancel and workflow start now print the error they fail with, such as an unknown flag, instead of exiting with no output.
  • #5619 de68280 @VaguelySerious - Report the events a replay diverged at (replayDivergenceEventIds, ids only) beside replayDivergenceCount on the write that ends a divergence episode, including the run_failed of a CORRUPTED_EVENT_LOG failure, so world-vercel can locate the divergence when the run's error payload is encrypted.
  • #5621 d8caf7c @VaguelySerious - The warning for a WORKFLOW_SPEC_VERSION value that is not understood now names the spec version new runs use instead.
  • #5468 80d89c0 @benpankow - A resumeHook() wake names the hook_received it was sent for, so a spec 9 orchestrator delivery in a process that already consumed the run's log below that event skips the tail read that checks for a no-op wake.

@workflow/world-local@5.5.0

  • #5353 5668d4b @VaguelySerious - Add an optional runs.deleteDataMany method to the World interface, which deletes the stored data (payloads, not metadata) of finished runs on demand, and implement it in the Vercel, Local and Postgres Worlds. Exposed as run.delete() and deleteRuns() (workflow/api), deleteRuns(world, runIds) (@workflow/core/runtime), and pnpx workflow delete <runId> in the CLI. workflow cancel and workflow start no longer accept listing flags they ignored, such as --limit on start or --cursor and --sort on either. workflow delete, workflow cancel and workflow start now print the error they fail with, such as an unknown flag, instead of exiting with no output.
  • #5601 d50f412 @VaguelySerious - On Windows, tagged clear()s running side by side no longer fail with EPERM while deleting the JSON data of an earlier release, and two clears of different tags no longer leave behind an empty directory each kept for the other's file. In the shared World tests, wait for the sleep's timer delivery before checking the sleep workflow's flow invocation count, and run the wf CLI without blocking the test process.
  • #5487 10f35e3 @NishitaSikka - After a experimental_retention: 0 run ends, immediately scrub any step that settles later.
  • #5468 80d89c0 @benpankow - A resumeHook() wake names the hook_received it was sent for, so a spec 9 orchestrator delivery in a process that already consumed the run's log below that event skips the tail read that checks for a no-op wake.
  • #5495 e379eaf @VaguelySerious - Read a stream a bounded batch of chunks at a time, as its consumer asks for them, instead of loading every unread chunk when the reader opens. clear() also deletes the run data an earlier release left in the data directory (only the tag's files for a tagged World).
  • #5495 e379eaf @VaguelySerious - Keep a run started with experimental_retention: 0 free of data after it ends: the bundled Worlds clear what a step still running when the run ended (a Promise.race loser) writes to it, and write no stream chunks to it.

@workflow/world-postgres@5.4.0

  • #5353 5668d4b @VaguelySerious - Add an optional runs.deleteDataMany method to the World interface, which deletes the stored data (payloads, not metadata) of finished runs on demand, and implement it in the Vercel, Local and Postgres Worlds. Exposed as run.delete() and deleteRuns() (workflow/api), deleteRuns(world, runIds) (@workflow/core/runtime), and pnpx workflow delete <runId> in the CLI. workflow cancel and workflow start no longer accept listing flags they ignored, such as --limit on start or --cursor and --sort on either. workflow delete, workflow cancel and workflow start now print the error they fail with, such as an unknown flag, instead of exiting with no output.
  • #5421 f41f84f @VaguelySerious - Fix concurrent forced hook claims in Postgres World. When several runs called createHook() with experimental_force: true (force: true once renamed) on one token at the same time, some of them could get a plain hook_conflict, which fails the run with "the configured World does not support force-claiming hook tokens", or a 503 "changed owner 5 times while being force-claimed". Every forced claim now ends registered, and the claims form one chain to the final owner.
  • #5535 de7f123 @VaguelySerious - Keep spec 9 orchestrator deliveries alive through short sleeps instead of re-invoking for each one, and lower the default WORKFLOW_ORCHESTRATOR_LINGER_MS to 5 seconds
  • #5468 80d89c0 @benpankow - A resumeHook() wake names the hook_received it was sent for, so a spec 9 orchestrator delivery in a process that already consumed the run's log below that event skips the tail read that checks for a no-op wake.
  • #5531 58de1dc @VaguelySerious - Add Kubernetes support for runs pinned to a deploymentId. Features per-deployment backlog queries, KEDA autoscaling, pruning of drained versions' worker Deployments. See Helm chart in the package's chart directory. Works by deploying app pods and a separate worker Deployment and KEDA ScaledObject per version, kept across upgrades until that version's runs finish.
  • #5407 96c8d36 @div-cowboy - Skip runs parked on a hook or a future wait in startup recovery, and stop restarts from stacking duplicate recovery jobs; run bootstrap before upgrading (migration 0032).
  • #5495 e379eaf @VaguelySerious - Keep a run started with experimental_retention: 0 free of data after it ends: the bundled Worlds clear what a step still running when the run ended (a Promise.race loser) writes to it, and write no stream chunks to it.

@workflow/world-vercel@5.7.0

  • #5353 5668d4b @VaguelySerious - Add an optional runs.deleteDataMany method to the World interface, which deletes the stored data (payloads, not metadata) of finished runs on demand, and implement it in the Vercel, Local and Postgres Worlds. Exposed as run.delete() and deleteRuns() (workflow/api), deleteRuns(world, runIds) (@workflow/core/runtime), and pnpx workflow delete <runId> in the CLI. workflow cancel and workflow start no longer accept listing flags they ignored, such as --limit on start or --cursor and --sort on either. workflow delete, workflow cancel and workflow start now print the error they fail with, such as an unknown flag, instead of exiting with no output.
  • #5619 de68280 @VaguelySerious - Report the events a replay diverged at (replayDivergenceEventIds, ids only) beside replayDivergenceCount on the write that ends a divergence episode, including the run_failed of a CORRUPTED_EVENT_LOG failure, so world-vercel can locate the divergence when the run's error payload is encrypted.
  • #5485 4649046 @VaguelySerious - Resume a spec 9 run whose first delivery is replayed after a crashed invocation instead of leaving its open step stranded.
  • #5612 a136c89 @VaguelySerious - Omit private backend URLs from request diagnostics and sanitize captured E2E CLI output before it reaches CI reports.

@workflow/world-testing@5.1.3

  • #5601 d50f412 @VaguelySerious - On Windows, tagged clear()s running side by side no longer fail with EPERM while deleting the JSON data of an earlier release, and two clears of different tags no longer leave behind an empty directory each kept for the other's file. In the shared World tests, wait for the sleep's timer delivery before checking the sleep workflow's flow invocation count, and run the wf CLI without blocking the test process.
  • #5323 c2aa4f7 @VaguelySerious - The queue auth tests' parked run now also waits for the workflow's first step to end, so a spec 9 run whose inline step has not written its step_started yet is no longer read as parked. - workflow@5.7.0

@workflow/web@5.3.0

  • #5522 5edc5b2 @mitul-s - Build DecryptButton and the app's loading buttons and spinners on Button, which gains loading, prefix and suffix props and drops size="tiny" (use small), and on Spinner, which takes named sizes from sm to 4xl (default lg).
  • #5575 0a497dc @mitul-s - Add CopyButton and use it for every copy button in the observability UI.
  • #5524 bace5ef @mitul-s - Align the design tokens with the Vercel dashboard: styles.css now carries the full palette, shadows, focus ring, z-index, motion and popover tokens plus a hocus variant, and dark: follows the theme class. The theme no longer applies under [data-theme="dark"], and the dark-theme:/light-theme: variants no longer match .dark/.light; use dark: instead.
  • #5544 d7053a8 @mitul-s - Show the Events search hint under the search box once typing pauses, give a failed search an error state with Try again, and report an ID that does not exist as not found.
  • #5537 44d4b95 @mitul-s - Replace emoji and glyph icons in the observability UI with icons: the tool call and tool result labels, the stream reference badge, the decoded-bytes disclosure, the agent, tool and conditional flow-graph nodes, and the retry and duration badges.
  • #5525 3671902 @mitul-s - Share one search bar between the trace viewer and the Events tab, with a visible keyboard focus outline, a labelled clear button at every width, and the ellipsis character in the placeholder.
  • #5518 46dff1c @mitul-s - Export cn from @workflow/web-shared and use it in the web UI, so Geist type classes such as text-label-14 are no longer dropped when merged with a text colour class.

@workflow/web-shared@5.3.0

  • #5522 5edc5b2 @mitul-s - Build DecryptButton and the app's loading buttons and spinners on Button, which gains loading, prefix and suffix props and drops size="tiny" (use small), and on Spinner, which takes named sizes from sm to 4xl (default lg).
  • #5575 0a497dc @mitul-s - Add CopyButton and use it for every copy button in the observability UI.
  • #5518 46dff1c @mitul-s - Export cn from @workflow/web-shared and use it in the web UI, so Geist type classes such as text-label-14 are no longer dropped when merged with a text colour class.
  • #5542 8fb5ba8 @mitul-s - Remove dead code, every export that nothing imports, and the unused @workflow/web-shared/components entry point (import from the package root instead). Removed exports include hydrateResourceIOWithKey (use hydrateResourceIOAsync), MenuDropdown, the materialize* helpers, shouldShowReenqueueButton, hasPendingStepsFromEvents, hasPendingHooksFromEvents, isTerminalStatus, identifyStreamSteps, looksLikeWorkflowIdSearchInput, the ref helpers re-exported from @workflow/core/serialization-format, and internal components and hooks such as Kbd, IconButton, LoadMoreButton and useToast.
  • #5517 9d086e1 @debojyoti10CC - Fix the copy button putting [object Object] on the clipboard for payloads that contain a BigInt; BigInt values are now copied as decimal strings in valid JSON.
  • #5524 bace5ef @mitul-s - Align the design tokens with the Vercel dashboard: styles.css now carries the full palette, shadows, focus ring, z-index, motion and popover tokens plus a hocus variant, and dark: follows the theme class. The theme no longer applies under [data-theme="dark"], and the dark-theme:/light-theme: variants no longer match .dark/.light; use dark: instead.
  • #5544 d7053a8 @mitul-s - Show the Events search hint under the search box once typing pauses, give a failed search an error state with Try again, and report an ID that does not exist as not found.
  • #5594 e0fa212 @mitul-s - Events tab: selecting an event tints its entity's rows blue, mutes the rest and drops the zebra stripes, with a clickable glow at the list edge when related events are out of view. The Name column moves left of Event and widens.
  • #5537 44d4b95 @mitul-s - Replace emoji and glyph icons in the observability UI with icons: the tool call and tool result labels, the stream reference badge, the decoded-bytes disclosure, the agent, tool and conditional flow-graph nodes, and the retry and duration badges.
  • #5525 3671902 @mitul-s - Share one search bar between the trace viewer and the Events tab, with a visible keyboard focus outline, a labelled clear button at every width, and the ellipsis character in the placeholder.

@workflow/builders@5.1.3

  • #5568 953e917 @abhiramshaji-cyber - Read decorator options from tsconfig in the Rollup transform, so Nitro and Nuxt builds parse decorators in workflow files when experimentalDecorators is on.

@workflow/rollup@5.0.12

  • #5568 953e917 @abhiramshaji-cyber - Read decorator options from tsconfig in the Rollup transform, so Nitro and Nuxt builds parse decorators in workflow files when experimentalDecorators is on.

@workflow/errors@5.1.4

  • #5485 4649046 @VaguelySerious - Resume a spec 9 run whose first delivery is replayed after a crashed invocation instead of leaving its open step stranded.