| 1 | # @distilled.cloud/vendor-workflows-shared |
| 2 | |
| 3 | Private workspace package vendoring raw TypeScript source from |
| 4 | [`@cloudflare/workflows-shared`](https://github.com/cloudflare/workers-sdk/tree/f9e7727dbef58e71c6b297dc688d3c544cef87cb/packages/workflows-shared). |
| 5 | This package does not bundle or publish; consumer packages in this monorepo |
| 6 | import the `.ts` files directly and apply their own bundling. |
| 7 | |
| 8 | The upstream source and tests are co-located under |
| 9 | `src/internal/workflows-shared/`. Deliberate behavioral differences from |
| 10 | upstream are documented with `Alchemy modifications:` comments in the affected |
| 11 | files. Project metadata and imports are adapted to this monorepo's tooling. |
| 12 | |
| 13 | ## Provenance |
| 14 | |
| 15 | Sourced from [`cloudflare/workers-sdk`](https://github.com/cloudflare/workers-sdk) |
| 16 | at commit [`f9e7727dbef58e71c6b297dc688d3c544cef87cb`](https://github.com/cloudflare/workers-sdk/commit/f9e7727dbef58e71c6b297dc688d3c544cef87cb) (path: |
| 17 | `packages/workflows-shared`). Upstream license: MIT OR Apache-2.0. |
| 18 | |
| 19 | ## Consumer imports |
| 20 | |
| 21 | ```ts |
| 22 | // Worker entrypoints (Engine DO + WorkflowBinding entrypoint) |
| 23 | import { |
| 24 | Engine, |
| 25 | WorkflowBinding, |
| 26 | } from "@distilled.cloud/vendor-workflows-shared/local-binding-worker"; |
| 27 | |
| 28 | // Type-only imports of individual modules |
| 29 | import type { Engine } from "@distilled.cloud/vendor-workflows-shared/src/engine"; |
| 30 | ``` |