Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/update-workflow-beta-40.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"eve": patch
---

Update eve's bundled Workflow SDK packages to the latest 5.0.0 beta releases, keeping the core runtime and workflow worlds aligned.
10 changes: 5 additions & 5 deletions packages/eve/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -341,13 +341,13 @@
"@vercel/otel": "catalog:",
"@vercel/sandbox": "catalog:",
"@vercel/sdk": "1.28.8",
"@workflow/core": "5.0.0-beta.39",
"@workflow/errors": "5.0.0-beta.15",
"@workflow/core": "5.0.0-beta.40",
"@workflow/errors": "5.0.0-beta.16",
"@workflow/serde": "5.0.0-beta.2",
"@workflow/utils": "5.0.0-beta.8",
"@workflow/world": "5.0.0-beta.24",
"@workflow/world-local": "5.0.0-beta.33",
"@workflow/world-vercel": "5.0.0-beta.35",
"@workflow/world": "5.0.0-beta.25",
"@workflow/world-local": "5.0.0-beta.34",
"@workflow/world-vercel": "5.0.0-beta.36",
"ai": "catalog:",
"autoevals": "0.0.132",
"chat": "4.34.0",
Expand Down
35 changes: 34 additions & 1 deletion packages/eve/scripts/vendor-compiled/@workflow/core.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@ const copyDeclarations = createDeclarationCopier({
stubBaseName: "_ms",
build: buildMsStub,
},
"quickjs-wasi": {
kind: "stub",
stubBaseName: "_quickjs-wasi",
build: buildOpaqueTypesStub,
},
},
});

Expand Down Expand Up @@ -130,11 +135,39 @@ function stubCoreWorldFactories() {
};
}

// @workflow/core@5.0.0-beta.40 lazy-loads the optional QuickJS runtime, but
// Rolldown still emits it as a reachable chunk and Nitro packages that chunk
// into every eve function. eve only supports the Node.js workflow VM, so keep
// the lazy boundary while replacing its target with a small, explicit error.
const CORE_QUICKJS_ENTRYPOINT_STUB_ID = "\0eve-core-quickjs-entrypoint-stub";

function stubCoreQuickJSEntrypoint() {
return {
name: "eve:stub-core-quickjs-entrypoint",
resolveId(source, importer) {
if (source !== "./runtime/quickjs-entrypoint.js") return null;
if (typeof importer !== "string") return null;
if (!importer.replaceAll("\\", "/").includes("/@workflow/core/")) return null;
return CORE_QUICKJS_ENTRYPOINT_STUB_ID;
},
load(id) {
if (id !== CORE_QUICKJS_ENTRYPOINT_STUB_ID) return null;
return [
"export async function runWorkflowWithQuickJS() {",
' throw new Error("Unsupported in eve: QuickJS workflow VM. ' +
'eve uses the Node.js workflow VM.");',
"}",
"",
].join("\n");
},
};
}

export default {
packageName: "@workflow/core",
compiledPath: "@workflow/core",
chunkGroup: "workflow",
plugins: [stubCoreWorldFactories()],
plugins: [stubCoreWorldFactories(), stubCoreQuickJSEntrypoint()],
entries: [
{
outputPath: "index",
Expand Down
Loading