Files
Peter Wielander 086606f5f8 fix(dynamic-workflows): purge stored code, refuse Replay Run, parse source up front, hydrate code for o11y
- $retention: 0 purges clear dynamicWorkflowCode on world-local and
  world-postgres alongside the other run payloads.
- Replay Run refuses a dynamic run instead of creating one with no code
  behind it.
- compileDynamicWorkflow parses the generated code, so TypeScript syntax,
  a reserved-word function name, or an unbalanced brace fail at start()
  rather than on every delivery; inline "use step" is rejected as the
  docs already state.
- The stored code payload is real devalue under its devl prefix, so the
  generic hydrators (CLI inspect, web UI) can read it; hydration field
  lists in core, web-shared, and the CLI include dynamicWorkflowCode.
- hydrateDynamicWorkflowCode normalizes a corrupt payload to
  SerializationError.
- Changeset covers @workflow/cli and @workflow/web-shared; bump is minor.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-09-10 18:05:00 -07:00
..