Skip to content

Commit 6660e94

Browse files
authored
Merge branch 'main' into main
2 parents 19283f3 + 223e9ca commit 6660e94

File tree

270 files changed

+9233
-5527
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

270 files changed

+9233
-5527
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@workflow/swc-plugin": minor
3+
"@workflow/typescript-plugin": minor
4+
---
5+
6+
Allow synchronous functions to use `"use step"` directive. This enables using `"use step"` as a mechanism to strip Node.js-dependent code from the workflow VM bundle without requiring the function to be async.

.changeset/bright-pears-drum.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
"@workflow/world": major
3+
"@workflow/world-local": major
4+
"@workflow/world-vercel": major
5+
"@workflow/world-postgres": major
6+
"@workflow/core": major
7+
"@workflow/cli": major
8+
"@workflow/web": major
9+
---
10+
11+
**BREAKING CHANGE**: Restructure stream methods on World interface to use `world.streams.*` namespace with `runId` as the first parameter. `writeToStream(name, runId, chunk)``streams.write(runId, name, chunk)`, `writeToStreamMulti``streams.writeMulti`, `closeStream``streams.close`, `readFromStream``streams.get(runId, name, startIndex?)`, `listStreamsByRunId``streams.list(runId)`.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
"@workflow/builders": patch
3+
---
4+
5+
Fix step bundle discovery and externalization for SDK serde classes
6+
7+
- Broaden `importParents` tracking to all imports (not just file extensions) so `parentHasChild()` works through bare specifier imports
8+
- Include `workflow/runtime` in discovery inputs so SDK serde classes like `Run` are always discovered
9+
- Bundle node_modules deps instead of externalizing with broken relative paths

.changeset/cool-cups-greet.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

.changeset/esm-builders.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@workflow/builders": patch
3+
"@workflow/cli": patch
4+
---
5+
6+
Switch Vercel Build Output API and standalone builder output from CJS to ESM. Step bundles, workflow bundles, and webhook bundles now emit ESM format by default, preserving native `import.meta.url` support and eliminating the need for CJS polyfills. Fully-bundled ESM output includes a `createRequire` banner to support CJS dependencies that use `require()` for Node.js builtins. The intermediate workflow bundle (which runs inside `vm.runInContext`) remains CJS as required by the VM execution model.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@workflow/core": minor
3+
---
4+
5+
Add `features.encryption` to `WorkflowMetadata` returned by `getWorkflowMetadata()`
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
'@workflow/core': patch
3+
'@workflow/world': patch
4+
'@workflow/world-vercel': patch
5+
'@workflow/world-local': patch
6+
'@workflow/world-postgres': patch
7+
---
8+
9+
Fix community world E2E tests by adding `specVersion` to the World interface so `start()` uses the safe baseline (v2) for worlds that don't declare their supported version
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@workflow/core': patch
3+
---
4+
5+
Remove redundant `hc_` prefix from health check correlationId that caused doubled `hc_hc_` in the derived runId and stream name.

.changeset/fix-next-esm-compat.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"workflow": patch
3+
---
4+
5+
Fix `workflow/next` ESM compatibility for `next.config.mjs` files
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@workflow/ai': patch
3+
---
4+
5+
fix(ai): preserve provider tool identity across step boundaries
6+
7+
Provider tools (e.g. `anthropic.tools.webSearch`) were being converted to plain function tools in `toolsToModelTools`, stripping `type: 'provider'`, `id`, and `args`. This caused providers like Anthropic Gateway to not recognize them as provider-executed tools.

0 commit comments

Comments
 (0)