refactor(workflow): move descriptor validation out of runtime #135

Merged
xiaoju merged 2 commits from refactor/runtime-descriptor-boundary into main 2026-05-08 15:05:24 +00:00
Owner

Summary

  • Move validateWorkflowDescriptor implementation from @uncaged/workflow-runtime to @uncaged/workflow so runtime only exposes bundle runtime primitives.
  • Remove runtime exports and delete packages/workflow-runtime/src/bundle/workflow-descriptor.ts.
  • Keep existing validation behavior unchanged by reusing the same implementation logic under packages/workflow/src/bundle/workflow-descriptor.ts.

Breaking change

  • @uncaged/workflow-runtime no longer exports validateWorkflowDescriptor.
  • Use validateWorkflowDescriptor from @uncaged/workflow instead.

Test plan

  • bun run check
## Summary - Move `validateWorkflowDescriptor` implementation from `@uncaged/workflow-runtime` to `@uncaged/workflow` so runtime only exposes bundle runtime primitives. - Remove runtime exports and delete `packages/workflow-runtime/src/bundle/workflow-descriptor.ts`. - Keep existing validation behavior unchanged by reusing the same implementation logic under `packages/workflow/src/bundle/workflow-descriptor.ts`. ## Breaking change - `@uncaged/workflow-runtime` no longer exports `validateWorkflowDescriptor`. - Use `validateWorkflowDescriptor` from `@uncaged/workflow` instead. ## Test plan - [x] `bun run check`
scottwei added 1 commit 2026-05-08 09:45:47 +00:00
Keep @uncaged/workflow-runtime focused on bundle runtime capabilities by relocating descriptor validation implementation to @uncaged/workflow.

Co-authored-by: Cursor <cursoragent@cursor.com>
xingyue added 1 commit 2026-05-08 15:04:00 +00:00
Collapse bundle/cas/extract/util stubs into types.ts; move createWorkflow and Result helpers to src root.

Co-authored-by: Cursor <cursoragent@cursor.com>
xiaoju merged commit b53667a2aa into main 2026-05-08 15:05:24 +00:00
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/workflow#135