refactor: add vite package for hmr - #501

Merged
adriandlam merged 5 commits into
mainfrom
12-02-refactor-vite-plugin
Dec 6, 2025
Merged

refactor: add vite package for hmr#501
adriandlam merged 5 commits into
mainfrom
12-02-refactor-vite-plugin

Conversation

@adriandlam

@adriandlamadriandlam commented Dec 2, 2025

Copy link
Copy Markdown
Contributor

nitro, sveltekit and astro and additional vite integrations will use hotUpdate for hmr in the future. this adds a @workflow/vite package to standardize hmr in workflows

@vercel

vercelBot commented Dec 2, 2025

Copy link
Copy Markdown
Contributor

@vercel
vercelBottemporarily deployed to Preview – workflow-docs December 2, 2025 20:32 Inactive
@changeset-bot

changeset-botBot commented Dec 2, 2025

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: bb88ade

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 8 packages
NameType
@workflow/sveltekitPatch
@workflow/astroPatch
@workflow/nitroPatch
@workflow/vitePatch
workflowPatch
@workflow/nuxtPatch
@workflow/aiPatch
@workflow/world-testingPatch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@adriandlamadriandlam changed the title feat: add vite packagerefactor: add vite packageDec 2, 2025
@adriandlamGraphite App

adriandlam commented Dec 2, 2025

Copy link
Copy Markdown
ContributorAuthor

@github-actions

github-actionsBot commented Dec 2, 2025

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)0.037s (-7.5% 🟢)1.013s (~)0.976s101.00x
🌐 StarterNext.js (Turbopack)0.039s (+2.1%)1.014s (~)0.975s101.05x
🌐 RedisNext.js (Turbopack)0.041s (+2.2%)1.017s (~)0.976s101.10x
💻 LocalNitro0.043s (+1.2%)1.006s (~)0.963s101.16x
💻 LocalExpress0.046s (+1.8%)1.007s (~)0.962s101.23x
🌐 MongoDBNext.js (Turbopack)0.110s (+77.1% 🔺)1.014s (~)0.904s102.96x
🐘 PostgresNext.js (Turbopack)0.300s (+115.1% 🔺)1.027s (+0.9%)0.727s108.08x
🐘 PostgresNitro0.311s (-6.1% 🟢)1.012s (-1.4%)0.701s108.38x
🐘 PostgresExpress0.340s (-13.4% 🟢)1.013s (~)0.673s109.16x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.594s (+15.9% 🔺)1.621s (+9.7% 🔺)1.028s101.00x
▲ VercelExpress0.644s (+30.6% 🔺)1.491s (-0.6%)0.847s101.09x
▲ VercelNext.js (Turbopack)0.654s (+33.3% 🔺)1.624s (+15.7% 🔺)0.969s101.10x

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.089s (-5.7% 🟢)1.008s (~)0.920s101.00x
💻 LocalNext.js (Turbopack)0.094s (-5.6% 🟢)1.009s (~)0.916s101.06x
🌐 RedisNext.js (Turbopack)0.107s (+9.1% 🔺)1.012s (~)0.905s101.20x
💻 LocalNitro0.108s (-3.3%)1.005s (~)0.897s101.22x
💻 LocalExpress0.120s (+6.8% 🔺)1.008s (~)0.887s101.35x
🌐 MongoDBNext.js (Turbopack)0.283s (-2.8%)1.012s (~)0.729s103.18x
🐘 PostgresNext.js (Turbopack)0.743s (-18.7% 🟢)1.015s (~)0.272s108.35x
🐘 PostgresNitro1.190s (+1.6%)2.012s (~)0.823s1013.38x
🐘 PostgresExpress1.193s (+45.5% 🔺)2.013s (+81.3% 🔺)0.820s1013.42x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)1.402s (-18.3% 🟢)2.576s (~)1.174s101.00x
▲ VercelExpress1.450s (-3.0%)2.400s (+1.7%)0.951s101.03x
▲ VercelNitro1.548s (-1.0%)2.581s (+2.6%)1.032s101.10x

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.567s (-4.0%)1.008s (~)0.441s51.00x
💻 LocalNext.js (Turbopack)0.603s (+0.8%)1.009s (~)0.406s51.06x
🌐 RedisNext.js (Turbopack)0.627s (~)1.012s (~)0.384s51.11x
💻 LocalNitro0.776s (~)1.006s (~)0.230s51.37x
💻 LocalExpress0.814s (+4.8%)1.008s (~)0.193s51.44x
🌐 MongoDBNext.js (Turbopack)2.140s (-0.5%)3.012s (~)0.872s53.77x
🐘 PostgresNext.js (Turbopack)5.119s (-3.3%)6.019s (~)0.900s59.03x
🐘 PostgresNitro10.167s (-1.9%)11.025s (+2.0%)0.858s517.93x
🐘 PostgresExpress10.263s (+94.3% 🔺)11.023s (+83.2% 🔺)0.760s518.10x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)10.518s (-2.8%)11.313s (-3.2%)0.794s51.00x
▲ VercelExpress10.922s (+6.8% 🔺)11.782s (+5.4% 🔺)0.861s51.04x
▲ VercelNitro11.843s (+13.6% 🔺)12.441s (+11.5% 🔺)0.598s51.13x

workflow with 10 parallel steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.365s (-1.3%)1.009s (~)0.644s51.00x
💻 LocalNext.js (Turbopack)0.367s (-3.0%)1.009s (~)0.641s51.01x
🌐 RedisNext.js (Turbopack)0.369s (+2.9%)1.010s (~)0.641s51.01x
💻 LocalNitro0.384s (-4.9%)1.005s (~)0.621s51.05x
💻 LocalExpress0.441s (+11.4% 🔺)1.006s (~)0.565s51.21x
🐘 PostgresNext.js (Turbopack)0.938s (+3.5%)1.618s (+59.9% 🔺)0.680s52.57x
🌐 MongoDBNext.js (Turbopack)1.653s (+0.8%)2.011s (~)0.358s54.53x
🐘 PostgresNitro1.665s (+24.8% 🔺)2.013s (~)0.348s54.56x
🐘 PostgresExpress1.668s (+35.2% 🔺)2.013s (~)0.344s54.57x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.604s (-6.9% 🟢)3.466s (-7.9% 🟢)0.862s51.00x
▲ VercelNitro2.678s (-6.6% 🟢)3.586s (-1.8%)0.908s51.03x
▲ VercelNext.js (Turbopack)2.916s (+2.4%)3.819s (+7.3% 🔺)0.903s51.12x

stress test: Promise.all with 100 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.908s (+1.0%)2.047s (+0.8%)0.139s151.00x
🌐 RedisNext.js (Turbopack)3.631s (+8.2% 🔺)4.155s (+7.0% 🔺)0.524s81.90x
🐘 PostgresNext.js (Turbopack)7.888s (-3.1%)8.011s (-6.0% 🟢)0.123s44.13x
🐘 PostgresExpress8.572s (-2.2%)9.070s (~)0.498s44.49x
🐘 PostgresNitro8.687s (+6.4% 🔺)9.193s (+7.6% 🔺)0.506s44.55x
💻 LocalNitro10.669s (~)11.012s (~)0.343s35.59x
💻 LocalExpress11.318s (+12.7% 🔺)11.650s (+13.1% 🔺)0.331s35.93x
💻 LocalNext.js (Turbopack)11.777s (+4.0%)12.331s (+5.9% 🔺)0.554s36.17x
🌐 MongoDBNext.js (Turbopack)20.204s (+1.4%)20.537s (~)0.333s210.59x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro18.788s (+8.9% 🔺)19.378s (+5.8% 🔺)0.589s21.00x
▲ VercelExpress20.083s (+43.5% 🔺)20.809s (+36.6% 🔺)0.726s21.07x
▲ VercelNext.js (Turbopack)20.487s (+15.6% 🔺)20.832s (+12.9% 🔺)0.345s21.09x

stress test: Promise.race with 100 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)2.045s (-3.1%)2.134s (-3.1%)0.089s151.00x
🌐 RedisNext.js (Turbopack)3.857s (+7.3% 🔺)4.103s (+0.8%)0.246s81.89x
💻 LocalNext.js (Turbopack)8.225s (-31.2% 🟢)8.829s (-28.4% 🟢)0.604s44.02x
🐘 PostgresNext.js (Turbopack)8.932s (+3.7%)9.111s (+3.6%)0.180s44.37x
🐘 PostgresNitro9.306s (+1.3%)9.480s (~)0.174s44.55x
🐘 PostgresExpress9.370s (+4.8%)9.740s (+5.9% 🔺)0.370s44.58x
💻 LocalNitro10.419s (-5.8% 🟢)10.994s (-5.7% 🟢)0.575s35.09x
💻 LocalExpress13.024s (+14.0% 🔺)13.385s (+14.9% 🔺)0.360s36.37x
🌐 MongoDBNext.js (Turbopack)19.888s (-1.7%)20.526s (~)0.638s29.73x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express17.909s (+2.2%)18.699s (+2.5%)0.791s21.00x
▲ VercelNext.js (Turbopack)20.789s (+15.1% 🔺)21.436s (+14.9% 🔺)0.647s21.16x
▲ VercelNitro21.073s (+17.1% 🔺)22.449s (+19.7% 🔺)1.377s21.18x

Stream Benchmarks

Stream benchmarks include Time to First Byte (TTFB) metrics.

workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.131s (-3.5%)1.004s (~)1.009s (~)0.878s101.00x
💻 LocalNext.js (Turbopack)0.137s (+1.0%)1.002s (~)1.013s (~)0.876s101.04x
🌐 RedisNext.js (Turbopack)0.143s (-12.8% 🟢)1.002s (~)1.010s (~)0.867s101.10x
💻 LocalNitro0.175s (-2.5%)0.991s (~)1.008s (~)0.833s101.34x
💻 LocalExpress0.188s (+6.6% 🔺)0.991s (~)1.009s (~)0.822s101.43x
🌐 MongoDBNext.js (Turbopack)0.492s (+5.0%)0.952s (-2.6%)1.010s (~)0.519s103.76x
🐘 PostgresNext.js (Turbopack)0.973s (-9.2% 🟢)1.133s (-39.2% 🟢)1.413s (-26.2% 🟢)0.440s107.44x
🐘 PostgresNitro1.583s (+56.6% 🔺)1.907s (+44.8% 🔺)2.211s (+46.5% 🔺)0.628s1012.09x
🐘 PostgresExpress1.916s (+42.9% 🔺)2.126s (+25.5% 🔺)2.414s (+20.0% 🔺)0.497s1014.64x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.366s (-5.5% 🟢)2.471s (-15.6% 🟢)2.880s (-14.4% 🟢)0.514s101.00x
▲ VercelExpress2.382s (-1.3%)2.787s (-3.1%)3.200s (-2.8%)0.818s101.01x
▲ VercelNitro2.689s (+8.1% 🔺)3.077s (+1.9%)3.569s (+4.9%)0.880s101.14x

Summary: Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)6/7
🐘 PostgresNext.js (Turbopack)7/7
▲ VercelNext.js (Turbopack)3/7

Summary: Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local5/7
Next.js (Turbopack)🌐 Starter6/7
Nitro💻 Local5/7
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Starter: Community world (local development)
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

Comment threadpackages/vite/package.json Outdated
Comment on lines +31 to +36
"devDependencies": {
"@types/node": "catalog:",
"@workflow/builders": "workspace:*",
"@workflow/tsconfig": "workspace:*",
"vite": "7.1.12"
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The @workflow/builders package should be in dependencies instead of devDependencies because the exported WorkflowHotUpdatePluginOptions interface references BaseBuilder from it. External consumers will fail to resolve the types without this dependency.

View Details
📝 Patch Details
diff --git a/packages/vite/package.json b/packages/vite/package.json
index fc42483..2c86c5c 100644
--- a/packages/vite/package.json+++ b/packages/vite/package.json@@ -28,9 +28,11 @@
"clean": "tsc --build --clean && rm -rf dist",
"typecheck": "tsc --noEmit"
},
+ "dependencies": {+ "@workflow/builders": "workspace:*"+ },
"devDependencies": {
"@types/node": "catalog:",
- "@workflow/builders": "workspace:*",
"@workflow/tsconfig": "workspace:*",
"vite": "7.1.12"
}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index d21b10a..285fb0c 100644
--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -811,13 +811,14 @@ importers:
version: 3.2.4(@types/debug@4.1.12)(@types/node@22.19.0)(jiti@2.6.1)(lightningcss@1.30.1)(terser@5.44.0)(tsx@4.20.6)(yaml@2.8.1)
packages/vite:
+ dependencies:+ '@workflow/builders':+ specifier: workspace:*+ version: link:../builders
devDependencies:
'@types/node':
specifier: 'catalog:'
version: 22.19.0
- '@workflow/builders':- specifier: workspace:*- version: link:../builders
'@workflow/tsconfig':
specifier: workspace:*
version: link:../tsconfig

Analysis

@workflow/builders should be in dependencies, not devDependencies

What fails: The @workflow/vite package exports WorkflowHotUpdatePluginOptions interface which references BaseBuilder type from @workflow/builders. When external consumers import this exported type, TypeScript cannot resolve the @workflow/builders module because it's only listed in devDependencies.

How to reproduce:

cd packages/vite
# Verify @workflow/builders is in devDependencies (lines 33-36 of package.json)
cat package.json | grep -A 5 devDependencies
# Try to build or typecheck
pnpm build

Result: Compilation fails with:

src/hot-update.ts(2,34): error TS2307: Cannot find module '@workflow/builders' or its corresponding type declarations.

Root cause: The exported interface in packages/vite/src/index.ts includes WorkflowHotUpdatePluginOptions which has a type signature that depends on BaseBuilder from @workflow/builders. This type dependency must be available at runtime through the node_modules resolution for TypeScript to resolve type declarations when consuming the published package. External users installing @workflow/vite from npm will receive the built .d.ts files with these type references, but will fail to resolve them without @workflow/builders as a runtime dependency.

Fix: Moved @workflow/builders from devDependencies to dependencies in packages/vite/package.json to ensure external consumers can resolve the type declarations.

@adriandlam
adriandlam marked this pull request as ready for review December 2, 2025 21:25
ijjk
ijjk approved these changes Dec 5, 2025
@github-actions

github-actionsBot commented Dec 5, 2025

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
❌ ▲ Vercel Production249110260
✅ 🪟 Windows260026
❌ 🌍 Community Worlds82340116
⚠️ 📋 Other250126
Total3823511428

❌ Failed Tests

mongodb (🌍 Community Worlds): e2e webhookWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected 404 to be 202 // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:255:24
at processTicksAndRejections (node:internal/process/tas
redis (🌍 Community Worlds): e2e webhookWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected 404 to be 200 // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:285:25
at processTicksAndRejections (node:internal/process/tas
starter (🌍 Community Worlds): e2e addTenWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected {} to match object { …(5) }
at Proxy.<anonymous> (file:///home/runner/work/workflow/workflow/node_modules/.pnpm/@vitest+expect@3.2.4/node_modules/@vitest/expect/dist/index
starter (🌍 Community Worlds): e2e addTenWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected {} to match object { …(5) }
at Proxy.<anonymous> (file:///home/runner/work/workflow/workflow/node_modules/.pnpm/@vitest+expect@3.2.4/node_modules/@vitest/expect/dist/index
starter (🌍 Community Worlds): e2e retryAttemptCounterWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected {} to match object { …(3) }
at Proxy.<anonymous> (file:///home/runner/work/workflow/workflow/node_modules/.pnpm/@vitest+expect@3.2.4/node_modules/@vitest/expect/dist/index
starter (🌍 Community Worlds): e2e crossFileErrorWorkflow - stack traces work across imported modules

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected undefined to be 'failed' // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:647:30
at processTicksAndRejections (node:internal/
starter (🌍 Community Worlds): e2e hookCleanupTestWorkflow - hook token reuse after workflow completion

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected undefined to be 'completed' // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:725:31
at processTicksAndRejections (node:intern
starter (🌍 Community Worlds): e2e stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected undefined to be 'completed' // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:748:30
at processTicksAndRejections (node:intern
starter (🌍 Community Worlds): e2e stepFunctionWithClosureWorkflow - step function with closure variables passed as argument

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected undefined to be 'completed' // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:784:30
at processTicksAndRejections (node:intern
starter (🌍 Community Worlds): e2e spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected undefined to be 'completed' // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:835:36
at processTicksAndRejections (node:intern
turso (🌍 Community Worlds): e2e addTenWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=addTenWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/pack
turso (🌍 Community Worlds): e2e addTenWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F98_duplicate_case.ts&workflowFn=addTenWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/wo
turso (🌍 Community Worlds): e2e should work with react rendering in step

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F8_react_render.tsx&workflowFn=reactWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workf
turso (🌍 Community Worlds): e2e promiseAllWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=promiseAllWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/
turso (🌍 Community Worlds): e2e promiseRaceWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=promiseRaceWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow
turso (🌍 Community Worlds): e2e promiseAnyWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=promiseAnyWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/
turso (🌍 Community Worlds): e2e readableStreamWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=readableStreamWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workf
turso (🌍 Community Worlds): e2e hookWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=hookWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/packag
turso (🌍 Community Worlds): e2e webhookWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=webhookWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/pac
turso (🌍 Community Worlds): e2e sleepingWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=sleepingWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/pa
turso (🌍 Community Worlds): e2e nullByteWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=nullByteWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/pa
turso (🌍 Community Worlds): e2e workflowAndStepMetadataWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=workflowAndStepMetadataWorkflow 500: at triggerWorkflow (/home/runner/work/workf
turso (🌍 Community Worlds): e2e outputStreamWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=outputStreamWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflo
turso (🌍 Community Worlds): e2e outputStreamInsideStepWorkflow - getWritable() called inside step functions

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=outputStreamInsideStepWorkflow 500: at triggerWorkflow (/home/runner/work/workfl
turso (🌍 Community Worlds): e2e fetchWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=fetchWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/packa
turso (🌍 Community Worlds): e2e promiseRaceStressTestWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=promiseRaceStressTestWorkflow 500: at triggerWorkflow (/home/runner/work/workflo
turso (🌍 Community Worlds): e2e retryAttemptCounterWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=retryAttemptCounterWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/
turso (🌍 Community Worlds): e2e retryableAndFatalErrorWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=retryableAndFatalErrorWorkflow 500: at triggerWorkflow (/home/runner/work/workfl
turso (🌍 Community Worlds): e2e crossFileErrorWorkflow - stack traces work across imported modules

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=crossFileErrorWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workf
turso (🌍 Community Worlds): e2e hookCleanupTestWorkflow - hook token reuse after workflow completion

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=hookCleanupTestWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/work
turso (🌍 Community Worlds): e2e stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=stepFunctionPassingWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/
turso (🌍 Community Worlds): e2e stepFunctionWithClosureWorkflow - step function with closure variables passed as argument

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=stepFunctionWithClosureWorkflow 500: at triggerWorkflow (/home/runner/work/workf
turso (🌍 Community Worlds): e2e closureVariableWorkflow - nested step functions with closure variables

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=closureVariableWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/work
turso (🌍 Community Worlds): e2e spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=spawnWorkflowFromStepWorkflow 500: at triggerWorkflow (/home/runner/work/workflo
nuxt (▲ Vercel Production): e2e hookCleanupTestWorkflow - hook token reuse after workflow completion

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected 404 to be 200 // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:681:26
at processTicksAndRejections (node:internal/process/tas

Details by Category

❌ ▲ Vercel Production
AppPassedFailedSkipped
⚠️ astro2501
⚠️ example2501
⚠️ express2501
⚠️ hono2501
⚠️ nextjs-turbopack2501
⚠️ nextjs-webpack2501
⚠️ nitro2501
❌ nuxt2411
⚠️ sveltekit2501
⚠️ vite2501
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack2600
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb2510
✅ redis-dev300
❌ redis2510
✅ starter-dev300
❌ starter1880
✅ turso-dev300
❌ turso2240
⚠️ 📋 Other
AppPassedFailedSkipped
⚠️ e2e-vercel-prod-fastify2501

⚠️Some E2E test jobs failed:

  • Vercel Prod: failure
  • Local Dev: success
  • Local Prod: success
  • Local Postgres: success
  • Windows: success
  • Community Worlds: success

Check the workflow run for details.

@adriandlamGraphite App

adriandlam commented Dec 6, 2025

Copy link
Copy Markdown
ContributorAuthor

Merge activity

  • Dec 6, 12:00 AM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Dec 6, 12:00 AM UTC: @adriandlam merged this pull request with Graphite.

@adriandlam
adriandlam merged commit 205b395 into mainDec 6, 2025
86 of 87 checks passed
@adriandlam
adriandlam deleted the 12-02-refactor-vite-plugin branch December 6, 2025 00:00
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@adriandlam@ijjk
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Add copy buttons to all
 blocks\n(function() {\n function addCopyButtons() {\n document.querySelectorAll('pre code').forEach(function(codeBlock) {\n if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;\n codeBlock.parentElement.setAttribute('data-copy-added', 'true');\n \n var btn = document.createElement('button');\n btn.textContent = 'Copy';\n btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';\n btn.onmouseover = function() { this.style.opacity = '1'; };\n btn.onmouseout = function() { this.style.opacity = '0.7'; };\n btn.onclick = function() {\n navigator.clipboard.writeText(codeBlock.textContent).then(function() {\n btn.textContent = 'Copied!';\n setTimeout(function() { btn.textContent = 'Copy'; }, 1500);\n });\n };\n codeBlock.parentElement.style.position = 'relative';\n codeBlock.parentElement.appendChild(btn);\n });\n }\n \n addCopyButtons();\n \n // Re-run on dynamic content\n var observer = new MutationObserver(addCopyButtons);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Add Copy Buttons to Code Blocks");
}
} catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
})();
(function(){
try {
var __m = "github.com";
var __re = new RegExp('^' + "github\\.com" + '
Skip to content

refactor: add vite package for hmr - #501

Merged
adriandlam merged 5 commits into
mainfrom
12-02-refactor-vite-plugin
Dec 6, 2025
Merged

refactor: add vite package for hmr#501
adriandlam merged 5 commits into
mainfrom
12-02-refactor-vite-plugin

Conversation

@adriandlam

@adriandlamadriandlam commented Dec 2, 2025

Copy link
Copy Markdown
Contributor

nitro, sveltekit and astro and additional vite integrations will use hotUpdate for hmr in the future. this adds a @workflow/vite package to standardize hmr in workflows

@vercel

vercelBot commented Dec 2, 2025

Copy link
Copy Markdown
Contributor

@vercel
vercelBottemporarily deployed to Preview – workflow-docs December 2, 2025 20:32 Inactive
@changeset-bot

changeset-botBot commented Dec 2, 2025

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: bb88ade

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 8 packages
NameType
@workflow/sveltekitPatch
@workflow/astroPatch
@workflow/nitroPatch
@workflow/vitePatch
workflowPatch
@workflow/nuxtPatch
@workflow/aiPatch
@workflow/world-testingPatch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@adriandlamadriandlam changed the title feat: add vite packagerefactor: add vite packageDec 2, 2025
@adriandlamGraphite App

adriandlam commented Dec 2, 2025

Copy link
Copy Markdown
ContributorAuthor

@github-actions

github-actionsBot commented Dec 2, 2025

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)0.037s (-7.5% 🟢)1.013s (~)0.976s101.00x
🌐 StarterNext.js (Turbopack)0.039s (+2.1%)1.014s (~)0.975s101.05x
🌐 RedisNext.js (Turbopack)0.041s (+2.2%)1.017s (~)0.976s101.10x
💻 LocalNitro0.043s (+1.2%)1.006s (~)0.963s101.16x
💻 LocalExpress0.046s (+1.8%)1.007s (~)0.962s101.23x
🌐 MongoDBNext.js (Turbopack)0.110s (+77.1% 🔺)1.014s (~)0.904s102.96x
🐘 PostgresNext.js (Turbopack)0.300s (+115.1% 🔺)1.027s (+0.9%)0.727s108.08x
🐘 PostgresNitro0.311s (-6.1% 🟢)1.012s (-1.4%)0.701s108.38x
🐘 PostgresExpress0.340s (-13.4% 🟢)1.013s (~)0.673s109.16x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.594s (+15.9% 🔺)1.621s (+9.7% 🔺)1.028s101.00x
▲ VercelExpress0.644s (+30.6% 🔺)1.491s (-0.6%)0.847s101.09x
▲ VercelNext.js (Turbopack)0.654s (+33.3% 🔺)1.624s (+15.7% 🔺)0.969s101.10x

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.089s (-5.7% 🟢)1.008s (~)0.920s101.00x
💻 LocalNext.js (Turbopack)0.094s (-5.6% 🟢)1.009s (~)0.916s101.06x
🌐 RedisNext.js (Turbopack)0.107s (+9.1% 🔺)1.012s (~)0.905s101.20x
💻 LocalNitro0.108s (-3.3%)1.005s (~)0.897s101.22x
💻 LocalExpress0.120s (+6.8% 🔺)1.008s (~)0.887s101.35x
🌐 MongoDBNext.js (Turbopack)0.283s (-2.8%)1.012s (~)0.729s103.18x
🐘 PostgresNext.js (Turbopack)0.743s (-18.7% 🟢)1.015s (~)0.272s108.35x
🐘 PostgresNitro1.190s (+1.6%)2.012s (~)0.823s1013.38x
🐘 PostgresExpress1.193s (+45.5% 🔺)2.013s (+81.3% 🔺)0.820s1013.42x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)1.402s (-18.3% 🟢)2.576s (~)1.174s101.00x
▲ VercelExpress1.450s (-3.0%)2.400s (+1.7%)0.951s101.03x
▲ VercelNitro1.548s (-1.0%)2.581s (+2.6%)1.032s101.10x

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.567s (-4.0%)1.008s (~)0.441s51.00x
💻 LocalNext.js (Turbopack)0.603s (+0.8%)1.009s (~)0.406s51.06x
🌐 RedisNext.js (Turbopack)0.627s (~)1.012s (~)0.384s51.11x
💻 LocalNitro0.776s (~)1.006s (~)0.230s51.37x
💻 LocalExpress0.814s (+4.8%)1.008s (~)0.193s51.44x
🌐 MongoDBNext.js (Turbopack)2.140s (-0.5%)3.012s (~)0.872s53.77x
🐘 PostgresNext.js (Turbopack)5.119s (-3.3%)6.019s (~)0.900s59.03x
🐘 PostgresNitro10.167s (-1.9%)11.025s (+2.0%)0.858s517.93x
🐘 PostgresExpress10.263s (+94.3% 🔺)11.023s (+83.2% 🔺)0.760s518.10x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)10.518s (-2.8%)11.313s (-3.2%)0.794s51.00x
▲ VercelExpress10.922s (+6.8% 🔺)11.782s (+5.4% 🔺)0.861s51.04x
▲ VercelNitro11.843s (+13.6% 🔺)12.441s (+11.5% 🔺)0.598s51.13x

workflow with 10 parallel steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.365s (-1.3%)1.009s (~)0.644s51.00x
💻 LocalNext.js (Turbopack)0.367s (-3.0%)1.009s (~)0.641s51.01x
🌐 RedisNext.js (Turbopack)0.369s (+2.9%)1.010s (~)0.641s51.01x
💻 LocalNitro0.384s (-4.9%)1.005s (~)0.621s51.05x
💻 LocalExpress0.441s (+11.4% 🔺)1.006s (~)0.565s51.21x
🐘 PostgresNext.js (Turbopack)0.938s (+3.5%)1.618s (+59.9% 🔺)0.680s52.57x
🌐 MongoDBNext.js (Turbopack)1.653s (+0.8%)2.011s (~)0.358s54.53x
🐘 PostgresNitro1.665s (+24.8% 🔺)2.013s (~)0.348s54.56x
🐘 PostgresExpress1.668s (+35.2% 🔺)2.013s (~)0.344s54.57x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.604s (-6.9% 🟢)3.466s (-7.9% 🟢)0.862s51.00x
▲ VercelNitro2.678s (-6.6% 🟢)3.586s (-1.8%)0.908s51.03x
▲ VercelNext.js (Turbopack)2.916s (+2.4%)3.819s (+7.3% 🔺)0.903s51.12x

stress test: Promise.all with 100 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.908s (+1.0%)2.047s (+0.8%)0.139s151.00x
🌐 RedisNext.js (Turbopack)3.631s (+8.2% 🔺)4.155s (+7.0% 🔺)0.524s81.90x
🐘 PostgresNext.js (Turbopack)7.888s (-3.1%)8.011s (-6.0% 🟢)0.123s44.13x
🐘 PostgresExpress8.572s (-2.2%)9.070s (~)0.498s44.49x
🐘 PostgresNitro8.687s (+6.4% 🔺)9.193s (+7.6% 🔺)0.506s44.55x
💻 LocalNitro10.669s (~)11.012s (~)0.343s35.59x
💻 LocalExpress11.318s (+12.7% 🔺)11.650s (+13.1% 🔺)0.331s35.93x
💻 LocalNext.js (Turbopack)11.777s (+4.0%)12.331s (+5.9% 🔺)0.554s36.17x
🌐 MongoDBNext.js (Turbopack)20.204s (+1.4%)20.537s (~)0.333s210.59x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro18.788s (+8.9% 🔺)19.378s (+5.8% 🔺)0.589s21.00x
▲ VercelExpress20.083s (+43.5% 🔺)20.809s (+36.6% 🔺)0.726s21.07x
▲ VercelNext.js (Turbopack)20.487s (+15.6% 🔺)20.832s (+12.9% 🔺)0.345s21.09x

stress test: Promise.race with 100 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)2.045s (-3.1%)2.134s (-3.1%)0.089s151.00x
🌐 RedisNext.js (Turbopack)3.857s (+7.3% 🔺)4.103s (+0.8%)0.246s81.89x
💻 LocalNext.js (Turbopack)8.225s (-31.2% 🟢)8.829s (-28.4% 🟢)0.604s44.02x
🐘 PostgresNext.js (Turbopack)8.932s (+3.7%)9.111s (+3.6%)0.180s44.37x
🐘 PostgresNitro9.306s (+1.3%)9.480s (~)0.174s44.55x
🐘 PostgresExpress9.370s (+4.8%)9.740s (+5.9% 🔺)0.370s44.58x
💻 LocalNitro10.419s (-5.8% 🟢)10.994s (-5.7% 🟢)0.575s35.09x
💻 LocalExpress13.024s (+14.0% 🔺)13.385s (+14.9% 🔺)0.360s36.37x
🌐 MongoDBNext.js (Turbopack)19.888s (-1.7%)20.526s (~)0.638s29.73x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express17.909s (+2.2%)18.699s (+2.5%)0.791s21.00x
▲ VercelNext.js (Turbopack)20.789s (+15.1% 🔺)21.436s (+14.9% 🔺)0.647s21.16x
▲ VercelNitro21.073s (+17.1% 🔺)22.449s (+19.7% 🔺)1.377s21.18x

Stream Benchmarks

Stream benchmarks include Time to First Byte (TTFB) metrics.

workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.131s (-3.5%)1.004s (~)1.009s (~)0.878s101.00x
💻 LocalNext.js (Turbopack)0.137s (+1.0%)1.002s (~)1.013s (~)0.876s101.04x
🌐 RedisNext.js (Turbopack)0.143s (-12.8% 🟢)1.002s (~)1.010s (~)0.867s101.10x
💻 LocalNitro0.175s (-2.5%)0.991s (~)1.008s (~)0.833s101.34x
💻 LocalExpress0.188s (+6.6% 🔺)0.991s (~)1.009s (~)0.822s101.43x
🌐 MongoDBNext.js (Turbopack)0.492s (+5.0%)0.952s (-2.6%)1.010s (~)0.519s103.76x
🐘 PostgresNext.js (Turbopack)0.973s (-9.2% 🟢)1.133s (-39.2% 🟢)1.413s (-26.2% 🟢)0.440s107.44x
🐘 PostgresNitro1.583s (+56.6% 🔺)1.907s (+44.8% 🔺)2.211s (+46.5% 🔺)0.628s1012.09x
🐘 PostgresExpress1.916s (+42.9% 🔺)2.126s (+25.5% 🔺)2.414s (+20.0% 🔺)0.497s1014.64x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.366s (-5.5% 🟢)2.471s (-15.6% 🟢)2.880s (-14.4% 🟢)0.514s101.00x
▲ VercelExpress2.382s (-1.3%)2.787s (-3.1%)3.200s (-2.8%)0.818s101.01x
▲ VercelNitro2.689s (+8.1% 🔺)3.077s (+1.9%)3.569s (+4.9%)0.880s101.14x

Summary: Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)6/7
🐘 PostgresNext.js (Turbopack)7/7
▲ VercelNext.js (Turbopack)3/7

Summary: Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local5/7
Next.js (Turbopack)🌐 Starter6/7
Nitro💻 Local5/7
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Starter: Community world (local development)
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

Comment threadpackages/vite/package.json Outdated
Comment on lines +31 to +36
"devDependencies": {
"@types/node": "catalog:",
"@workflow/builders": "workspace:*",
"@workflow/tsconfig": "workspace:*",
"vite": "7.1.12"
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The @workflow/builders package should be in dependencies instead of devDependencies because the exported WorkflowHotUpdatePluginOptions interface references BaseBuilder from it. External consumers will fail to resolve the types without this dependency.

View Details
📝 Patch Details
diff --git a/packages/vite/package.json b/packages/vite/package.json
index fc42483..2c86c5c 100644
--- a/packages/vite/package.json+++ b/packages/vite/package.json@@ -28,9 +28,11 @@
"clean": "tsc --build --clean && rm -rf dist",
"typecheck": "tsc --noEmit"
},
+ "dependencies": {+ "@workflow/builders": "workspace:*"+ },
"devDependencies": {
"@types/node": "catalog:",
- "@workflow/builders": "workspace:*",
"@workflow/tsconfig": "workspace:*",
"vite": "7.1.12"
}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index d21b10a..285fb0c 100644
--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -811,13 +811,14 @@ importers:
version: 3.2.4(@types/debug@4.1.12)(@types/node@22.19.0)(jiti@2.6.1)(lightningcss@1.30.1)(terser@5.44.0)(tsx@4.20.6)(yaml@2.8.1)
packages/vite:
+ dependencies:+ '@workflow/builders':+ specifier: workspace:*+ version: link:../builders
devDependencies:
'@types/node':
specifier: 'catalog:'
version: 22.19.0
- '@workflow/builders':- specifier: workspace:*- version: link:../builders
'@workflow/tsconfig':
specifier: workspace:*
version: link:../tsconfig

Analysis

@workflow/builders should be in dependencies, not devDependencies

What fails: The @workflow/vite package exports WorkflowHotUpdatePluginOptions interface which references BaseBuilder type from @workflow/builders. When external consumers import this exported type, TypeScript cannot resolve the @workflow/builders module because it's only listed in devDependencies.

How to reproduce:

cd packages/vite
# Verify @workflow/builders is in devDependencies (lines 33-36 of package.json)
cat package.json | grep -A 5 devDependencies
# Try to build or typecheck
pnpm build

Result: Compilation fails with:

src/hot-update.ts(2,34): error TS2307: Cannot find module '@workflow/builders' or its corresponding type declarations.

Root cause: The exported interface in packages/vite/src/index.ts includes WorkflowHotUpdatePluginOptions which has a type signature that depends on BaseBuilder from @workflow/builders. This type dependency must be available at runtime through the node_modules resolution for TypeScript to resolve type declarations when consuming the published package. External users installing @workflow/vite from npm will receive the built .d.ts files with these type references, but will fail to resolve them without @workflow/builders as a runtime dependency.

Fix: Moved @workflow/builders from devDependencies to dependencies in packages/vite/package.json to ensure external consumers can resolve the type declarations.

@adriandlam
adriandlam marked this pull request as ready for review December 2, 2025 21:25
ijjk
ijjk approved these changes Dec 5, 2025
@github-actions

github-actionsBot commented Dec 5, 2025

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
❌ ▲ Vercel Production249110260
✅ 🪟 Windows260026
❌ 🌍 Community Worlds82340116
⚠️ 📋 Other250126
Total3823511428

❌ Failed Tests

mongodb (🌍 Community Worlds): e2e webhookWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected 404 to be 202 // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:255:24
at processTicksAndRejections (node:internal/process/tas
redis (🌍 Community Worlds): e2e webhookWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected 404 to be 200 // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:285:25
at processTicksAndRejections (node:internal/process/tas
starter (🌍 Community Worlds): e2e addTenWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected {} to match object { …(5) }
at Proxy.<anonymous> (file:///home/runner/work/workflow/workflow/node_modules/.pnpm/@vitest+expect@3.2.4/node_modules/@vitest/expect/dist/index
starter (🌍 Community Worlds): e2e addTenWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected {} to match object { …(5) }
at Proxy.<anonymous> (file:///home/runner/work/workflow/workflow/node_modules/.pnpm/@vitest+expect@3.2.4/node_modules/@vitest/expect/dist/index
starter (🌍 Community Worlds): e2e retryAttemptCounterWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected {} to match object { …(3) }
at Proxy.<anonymous> (file:///home/runner/work/workflow/workflow/node_modules/.pnpm/@vitest+expect@3.2.4/node_modules/@vitest/expect/dist/index
starter (🌍 Community Worlds): e2e crossFileErrorWorkflow - stack traces work across imported modules

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected undefined to be 'failed' // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:647:30
at processTicksAndRejections (node:internal/
starter (🌍 Community Worlds): e2e hookCleanupTestWorkflow - hook token reuse after workflow completion

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected undefined to be 'completed' // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:725:31
at processTicksAndRejections (node:intern
starter (🌍 Community Worlds): e2e stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected undefined to be 'completed' // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:748:30
at processTicksAndRejections (node:intern
starter (🌍 Community Worlds): e2e stepFunctionWithClosureWorkflow - step function with closure variables passed as argument

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected undefined to be 'completed' // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:784:30
at processTicksAndRejections (node:intern
starter (🌍 Community Worlds): e2e spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected undefined to be 'completed' // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:835:36
at processTicksAndRejections (node:intern
turso (🌍 Community Worlds): e2e addTenWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=addTenWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/pack
turso (🌍 Community Worlds): e2e addTenWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F98_duplicate_case.ts&workflowFn=addTenWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/wo
turso (🌍 Community Worlds): e2e should work with react rendering in step

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F8_react_render.tsx&workflowFn=reactWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workf
turso (🌍 Community Worlds): e2e promiseAllWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=promiseAllWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/
turso (🌍 Community Worlds): e2e promiseRaceWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=promiseRaceWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow
turso (🌍 Community Worlds): e2e promiseAnyWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=promiseAnyWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/
turso (🌍 Community Worlds): e2e readableStreamWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=readableStreamWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workf
turso (🌍 Community Worlds): e2e hookWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=hookWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/packag
turso (🌍 Community Worlds): e2e webhookWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=webhookWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/pac
turso (🌍 Community Worlds): e2e sleepingWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=sleepingWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/pa
turso (🌍 Community Worlds): e2e nullByteWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=nullByteWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/pa
turso (🌍 Community Worlds): e2e workflowAndStepMetadataWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=workflowAndStepMetadataWorkflow 500: at triggerWorkflow (/home/runner/work/workf
turso (🌍 Community Worlds): e2e outputStreamWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=outputStreamWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflo
turso (🌍 Community Worlds): e2e outputStreamInsideStepWorkflow - getWritable() called inside step functions

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=outputStreamInsideStepWorkflow 500: at triggerWorkflow (/home/runner/work/workfl
turso (🌍 Community Worlds): e2e fetchWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=fetchWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/packa
turso (🌍 Community Worlds): e2e promiseRaceStressTestWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=promiseRaceStressTestWorkflow 500: at triggerWorkflow (/home/runner/work/workflo
turso (🌍 Community Worlds): e2e retryAttemptCounterWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=retryAttemptCounterWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/
turso (🌍 Community Worlds): e2e retryableAndFatalErrorWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=retryableAndFatalErrorWorkflow 500: at triggerWorkflow (/home/runner/work/workfl
turso (🌍 Community Worlds): e2e crossFileErrorWorkflow - stack traces work across imported modules

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=crossFileErrorWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workf
turso (🌍 Community Worlds): e2e hookCleanupTestWorkflow - hook token reuse after workflow completion

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=hookCleanupTestWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/work
turso (🌍 Community Worlds): e2e stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=stepFunctionPassingWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/
turso (🌍 Community Worlds): e2e stepFunctionWithClosureWorkflow - step function with closure variables passed as argument

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=stepFunctionWithClosureWorkflow 500: at triggerWorkflow (/home/runner/work/workf
turso (🌍 Community Worlds): e2e closureVariableWorkflow - nested step functions with closure variables

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=closureVariableWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/work
turso (🌍 Community Worlds): e2e spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=spawnWorkflowFromStepWorkflow 500: at triggerWorkflow (/home/runner/work/workflo
nuxt (▲ Vercel Production): e2e hookCleanupTestWorkflow - hook token reuse after workflow completion

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected 404 to be 200 // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:681:26
at processTicksAndRejections (node:internal/process/tas

Details by Category

❌ ▲ Vercel Production
AppPassedFailedSkipped
⚠️ astro2501
⚠️ example2501
⚠️ express2501
⚠️ hono2501
⚠️ nextjs-turbopack2501
⚠️ nextjs-webpack2501
⚠️ nitro2501
❌ nuxt2411
⚠️ sveltekit2501
⚠️ vite2501
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack2600
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb2510
✅ redis-dev300
❌ redis2510
✅ starter-dev300
❌ starter1880
✅ turso-dev300
❌ turso2240
⚠️ 📋 Other
AppPassedFailedSkipped
⚠️ e2e-vercel-prod-fastify2501

⚠️Some E2E test jobs failed:

  • Vercel Prod: failure
  • Local Dev: success
  • Local Prod: success
  • Local Postgres: success
  • Windows: success
  • Community Worlds: success

Check the workflow run for details.

@adriandlamGraphite App

adriandlam commented Dec 6, 2025

Copy link
Copy Markdown
ContributorAuthor

Merge activity

  • Dec 6, 12:00 AM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Dec 6, 12:00 AM UTC: @adriandlam merged this pull request with Graphite.

@adriandlam
adriandlam merged commit 205b395 into mainDec 6, 2025
86 of 87 checks passed
@adriandlam
adriandlam deleted the 12-02-refactor-vite-plugin branch December 6, 2025 00:00
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@adriandlam@ijjk
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Force GitHub README to respect dark mode\n(function() {\n var style = document.createElement('style');\n style.textContent = '\n .markdown-body {\n color-scheme: dark light;\n }\n .markdown-body pre { background: #161b22 !important; }\n .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; }\n .markdown-body table th, .markdown-body table td { border-color: #30363d !important; }\n .markdown-body img { background: #0d1117; }\n .markdown-body blockquote { border-left-color: #8b949e; }\n .markdown-body hr { border-color: #30363d; }\n ';\n document.head.appendChild(style);\n})();", "GitHub Dark Mode README Fix"); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

refactor: add vite package for hmr - #501

Merged
adriandlam merged 5 commits into
mainfrom
12-02-refactor-vite-plugin
Dec 6, 2025
Merged

refactor: add vite package for hmr#501
adriandlam merged 5 commits into
mainfrom
12-02-refactor-vite-plugin

Conversation

@adriandlam

@adriandlamadriandlam commented Dec 2, 2025

Copy link
Copy Markdown
Contributor

nitro, sveltekit and astro and additional vite integrations will use hotUpdate for hmr in the future. this adds a @workflow/vite package to standardize hmr in workflows

@vercel

vercelBot commented Dec 2, 2025

Copy link
Copy Markdown
Contributor

@vercel
vercelBottemporarily deployed to Preview – workflow-docs December 2, 2025 20:32 Inactive
@changeset-bot

changeset-botBot commented Dec 2, 2025

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: bb88ade

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 8 packages
NameType
@workflow/sveltekitPatch
@workflow/astroPatch
@workflow/nitroPatch
@workflow/vitePatch
workflowPatch
@workflow/nuxtPatch
@workflow/aiPatch
@workflow/world-testingPatch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@adriandlamadriandlam changed the title feat: add vite packagerefactor: add vite packageDec 2, 2025
@adriandlamGraphite App

adriandlam commented Dec 2, 2025

Copy link
Copy Markdown
ContributorAuthor

@github-actions

github-actionsBot commented Dec 2, 2025

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)0.037s (-7.5% 🟢)1.013s (~)0.976s101.00x
🌐 StarterNext.js (Turbopack)0.039s (+2.1%)1.014s (~)0.975s101.05x
🌐 RedisNext.js (Turbopack)0.041s (+2.2%)1.017s (~)0.976s101.10x
💻 LocalNitro0.043s (+1.2%)1.006s (~)0.963s101.16x
💻 LocalExpress0.046s (+1.8%)1.007s (~)0.962s101.23x
🌐 MongoDBNext.js (Turbopack)0.110s (+77.1% 🔺)1.014s (~)0.904s102.96x
🐘 PostgresNext.js (Turbopack)0.300s (+115.1% 🔺)1.027s (+0.9%)0.727s108.08x
🐘 PostgresNitro0.311s (-6.1% 🟢)1.012s (-1.4%)0.701s108.38x
🐘 PostgresExpress0.340s (-13.4% 🟢)1.013s (~)0.673s109.16x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.594s (+15.9% 🔺)1.621s (+9.7% 🔺)1.028s101.00x
▲ VercelExpress0.644s (+30.6% 🔺)1.491s (-0.6%)0.847s101.09x
▲ VercelNext.js (Turbopack)0.654s (+33.3% 🔺)1.624s (+15.7% 🔺)0.969s101.10x

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.089s (-5.7% 🟢)1.008s (~)0.920s101.00x
💻 LocalNext.js (Turbopack)0.094s (-5.6% 🟢)1.009s (~)0.916s101.06x
🌐 RedisNext.js (Turbopack)0.107s (+9.1% 🔺)1.012s (~)0.905s101.20x
💻 LocalNitro0.108s (-3.3%)1.005s (~)0.897s101.22x
💻 LocalExpress0.120s (+6.8% 🔺)1.008s (~)0.887s101.35x
🌐 MongoDBNext.js (Turbopack)0.283s (-2.8%)1.012s (~)0.729s103.18x
🐘 PostgresNext.js (Turbopack)0.743s (-18.7% 🟢)1.015s (~)0.272s108.35x
🐘 PostgresNitro1.190s (+1.6%)2.012s (~)0.823s1013.38x
🐘 PostgresExpress1.193s (+45.5% 🔺)2.013s (+81.3% 🔺)0.820s1013.42x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)1.402s (-18.3% 🟢)2.576s (~)1.174s101.00x
▲ VercelExpress1.450s (-3.0%)2.400s (+1.7%)0.951s101.03x
▲ VercelNitro1.548s (-1.0%)2.581s (+2.6%)1.032s101.10x

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.567s (-4.0%)1.008s (~)0.441s51.00x
💻 LocalNext.js (Turbopack)0.603s (+0.8%)1.009s (~)0.406s51.06x
🌐 RedisNext.js (Turbopack)0.627s (~)1.012s (~)0.384s51.11x
💻 LocalNitro0.776s (~)1.006s (~)0.230s51.37x
💻 LocalExpress0.814s (+4.8%)1.008s (~)0.193s51.44x
🌐 MongoDBNext.js (Turbopack)2.140s (-0.5%)3.012s (~)0.872s53.77x
🐘 PostgresNext.js (Turbopack)5.119s (-3.3%)6.019s (~)0.900s59.03x
🐘 PostgresNitro10.167s (-1.9%)11.025s (+2.0%)0.858s517.93x
🐘 PostgresExpress10.263s (+94.3% 🔺)11.023s (+83.2% 🔺)0.760s518.10x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)10.518s (-2.8%)11.313s (-3.2%)0.794s51.00x
▲ VercelExpress10.922s (+6.8% 🔺)11.782s (+5.4% 🔺)0.861s51.04x
▲ VercelNitro11.843s (+13.6% 🔺)12.441s (+11.5% 🔺)0.598s51.13x

workflow with 10 parallel steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.365s (-1.3%)1.009s (~)0.644s51.00x
💻 LocalNext.js (Turbopack)0.367s (-3.0%)1.009s (~)0.641s51.01x
🌐 RedisNext.js (Turbopack)0.369s (+2.9%)1.010s (~)0.641s51.01x
💻 LocalNitro0.384s (-4.9%)1.005s (~)0.621s51.05x
💻 LocalExpress0.441s (+11.4% 🔺)1.006s (~)0.565s51.21x
🐘 PostgresNext.js (Turbopack)0.938s (+3.5%)1.618s (+59.9% 🔺)0.680s52.57x
🌐 MongoDBNext.js (Turbopack)1.653s (+0.8%)2.011s (~)0.358s54.53x
🐘 PostgresNitro1.665s (+24.8% 🔺)2.013s (~)0.348s54.56x
🐘 PostgresExpress1.668s (+35.2% 🔺)2.013s (~)0.344s54.57x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.604s (-6.9% 🟢)3.466s (-7.9% 🟢)0.862s51.00x
▲ VercelNitro2.678s (-6.6% 🟢)3.586s (-1.8%)0.908s51.03x
▲ VercelNext.js (Turbopack)2.916s (+2.4%)3.819s (+7.3% 🔺)0.903s51.12x

stress test: Promise.all with 100 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.908s (+1.0%)2.047s (+0.8%)0.139s151.00x
🌐 RedisNext.js (Turbopack)3.631s (+8.2% 🔺)4.155s (+7.0% 🔺)0.524s81.90x
🐘 PostgresNext.js (Turbopack)7.888s (-3.1%)8.011s (-6.0% 🟢)0.123s44.13x
🐘 PostgresExpress8.572s (-2.2%)9.070s (~)0.498s44.49x
🐘 PostgresNitro8.687s (+6.4% 🔺)9.193s (+7.6% 🔺)0.506s44.55x
💻 LocalNitro10.669s (~)11.012s (~)0.343s35.59x
💻 LocalExpress11.318s (+12.7% 🔺)11.650s (+13.1% 🔺)0.331s35.93x
💻 LocalNext.js (Turbopack)11.777s (+4.0%)12.331s (+5.9% 🔺)0.554s36.17x
🌐 MongoDBNext.js (Turbopack)20.204s (+1.4%)20.537s (~)0.333s210.59x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro18.788s (+8.9% 🔺)19.378s (+5.8% 🔺)0.589s21.00x
▲ VercelExpress20.083s (+43.5% 🔺)20.809s (+36.6% 🔺)0.726s21.07x
▲ VercelNext.js (Turbopack)20.487s (+15.6% 🔺)20.832s (+12.9% 🔺)0.345s21.09x

stress test: Promise.race with 100 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)2.045s (-3.1%)2.134s (-3.1%)0.089s151.00x
🌐 RedisNext.js (Turbopack)3.857s (+7.3% 🔺)4.103s (+0.8%)0.246s81.89x
💻 LocalNext.js (Turbopack)8.225s (-31.2% 🟢)8.829s (-28.4% 🟢)0.604s44.02x
🐘 PostgresNext.js (Turbopack)8.932s (+3.7%)9.111s (+3.6%)0.180s44.37x
🐘 PostgresNitro9.306s (+1.3%)9.480s (~)0.174s44.55x
🐘 PostgresExpress9.370s (+4.8%)9.740s (+5.9% 🔺)0.370s44.58x
💻 LocalNitro10.419s (-5.8% 🟢)10.994s (-5.7% 🟢)0.575s35.09x
💻 LocalExpress13.024s (+14.0% 🔺)13.385s (+14.9% 🔺)0.360s36.37x
🌐 MongoDBNext.js (Turbopack)19.888s (-1.7%)20.526s (~)0.638s29.73x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express17.909s (+2.2%)18.699s (+2.5%)0.791s21.00x
▲ VercelNext.js (Turbopack)20.789s (+15.1% 🔺)21.436s (+14.9% 🔺)0.647s21.16x
▲ VercelNitro21.073s (+17.1% 🔺)22.449s (+19.7% 🔺)1.377s21.18x

Stream Benchmarks

Stream benchmarks include Time to First Byte (TTFB) metrics.

workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.131s (-3.5%)1.004s (~)1.009s (~)0.878s101.00x
💻 LocalNext.js (Turbopack)0.137s (+1.0%)1.002s (~)1.013s (~)0.876s101.04x
🌐 RedisNext.js (Turbopack)0.143s (-12.8% 🟢)1.002s (~)1.010s (~)0.867s101.10x
💻 LocalNitro0.175s (-2.5%)0.991s (~)1.008s (~)0.833s101.34x
💻 LocalExpress0.188s (+6.6% 🔺)0.991s (~)1.009s (~)0.822s101.43x
🌐 MongoDBNext.js (Turbopack)0.492s (+5.0%)0.952s (-2.6%)1.010s (~)0.519s103.76x
🐘 PostgresNext.js (Turbopack)0.973s (-9.2% 🟢)1.133s (-39.2% 🟢)1.413s (-26.2% 🟢)0.440s107.44x
🐘 PostgresNitro1.583s (+56.6% 🔺)1.907s (+44.8% 🔺)2.211s (+46.5% 🔺)0.628s1012.09x
🐘 PostgresExpress1.916s (+42.9% 🔺)2.126s (+25.5% 🔺)2.414s (+20.0% 🔺)0.497s1014.64x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.366s (-5.5% 🟢)2.471s (-15.6% 🟢)2.880s (-14.4% 🟢)0.514s101.00x
▲ VercelExpress2.382s (-1.3%)2.787s (-3.1%)3.200s (-2.8%)0.818s101.01x
▲ VercelNitro2.689s (+8.1% 🔺)3.077s (+1.9%)3.569s (+4.9%)0.880s101.14x

Summary: Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)6/7
🐘 PostgresNext.js (Turbopack)7/7
▲ VercelNext.js (Turbopack)3/7

Summary: Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local5/7
Next.js (Turbopack)🌐 Starter6/7
Nitro💻 Local5/7
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Starter: Community world (local development)
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

Comment threadpackages/vite/package.json Outdated
Comment on lines +31 to +36
"devDependencies": {
"@types/node": "catalog:",
"@workflow/builders": "workspace:*",
"@workflow/tsconfig": "workspace:*",
"vite": "7.1.12"
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The @workflow/builders package should be in dependencies instead of devDependencies because the exported WorkflowHotUpdatePluginOptions interface references BaseBuilder from it. External consumers will fail to resolve the types without this dependency.

View Details
📝 Patch Details
diff --git a/packages/vite/package.json b/packages/vite/package.json
index fc42483..2c86c5c 100644
--- a/packages/vite/package.json+++ b/packages/vite/package.json@@ -28,9 +28,11 @@
"clean": "tsc --build --clean && rm -rf dist",
"typecheck": "tsc --noEmit"
},
+ "dependencies": {+ "@workflow/builders": "workspace:*"+ },
"devDependencies": {
"@types/node": "catalog:",
- "@workflow/builders": "workspace:*",
"@workflow/tsconfig": "workspace:*",
"vite": "7.1.12"
}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index d21b10a..285fb0c 100644
--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -811,13 +811,14 @@ importers:
version: 3.2.4(@types/debug@4.1.12)(@types/node@22.19.0)(jiti@2.6.1)(lightningcss@1.30.1)(terser@5.44.0)(tsx@4.20.6)(yaml@2.8.1)
packages/vite:
+ dependencies:+ '@workflow/builders':+ specifier: workspace:*+ version: link:../builders
devDependencies:
'@types/node':
specifier: 'catalog:'
version: 22.19.0
- '@workflow/builders':- specifier: workspace:*- version: link:../builders
'@workflow/tsconfig':
specifier: workspace:*
version: link:../tsconfig

Analysis

@workflow/builders should be in dependencies, not devDependencies

What fails: The @workflow/vite package exports WorkflowHotUpdatePluginOptions interface which references BaseBuilder type from @workflow/builders. When external consumers import this exported type, TypeScript cannot resolve the @workflow/builders module because it's only listed in devDependencies.

How to reproduce:

cd packages/vite
# Verify @workflow/builders is in devDependencies (lines 33-36 of package.json)
cat package.json | grep -A 5 devDependencies
# Try to build or typecheck
pnpm build

Result: Compilation fails with:

src/hot-update.ts(2,34): error TS2307: Cannot find module '@workflow/builders' or its corresponding type declarations.

Root cause: The exported interface in packages/vite/src/index.ts includes WorkflowHotUpdatePluginOptions which has a type signature that depends on BaseBuilder from @workflow/builders. This type dependency must be available at runtime through the node_modules resolution for TypeScript to resolve type declarations when consuming the published package. External users installing @workflow/vite from npm will receive the built .d.ts files with these type references, but will fail to resolve them without @workflow/builders as a runtime dependency.

Fix: Moved @workflow/builders from devDependencies to dependencies in packages/vite/package.json to ensure external consumers can resolve the type declarations.

@adriandlam
adriandlam marked this pull request as ready for review December 2, 2025 21:25
ijjk
ijjk approved these changes Dec 5, 2025
@github-actions

github-actionsBot commented Dec 5, 2025

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
❌ ▲ Vercel Production249110260
✅ 🪟 Windows260026
❌ 🌍 Community Worlds82340116
⚠️ 📋 Other250126
Total3823511428

❌ Failed Tests

mongodb (🌍 Community Worlds): e2e webhookWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected 404 to be 202 // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:255:24
at processTicksAndRejections (node:internal/process/tas
redis (🌍 Community Worlds): e2e webhookWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected 404 to be 200 // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:285:25
at processTicksAndRejections (node:internal/process/tas
starter (🌍 Community Worlds): e2e addTenWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected {} to match object { …(5) }
at Proxy.<anonymous> (file:///home/runner/work/workflow/workflow/node_modules/.pnpm/@vitest+expect@3.2.4/node_modules/@vitest/expect/dist/index
starter (🌍 Community Worlds): e2e addTenWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected {} to match object { …(5) }
at Proxy.<anonymous> (file:///home/runner/work/workflow/workflow/node_modules/.pnpm/@vitest+expect@3.2.4/node_modules/@vitest/expect/dist/index
starter (🌍 Community Worlds): e2e retryAttemptCounterWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected {} to match object { …(3) }
at Proxy.<anonymous> (file:///home/runner/work/workflow/workflow/node_modules/.pnpm/@vitest+expect@3.2.4/node_modules/@vitest/expect/dist/index
starter (🌍 Community Worlds): e2e crossFileErrorWorkflow - stack traces work across imported modules

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected undefined to be 'failed' // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:647:30
at processTicksAndRejections (node:internal/
starter (🌍 Community Worlds): e2e hookCleanupTestWorkflow - hook token reuse after workflow completion

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected undefined to be 'completed' // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:725:31
at processTicksAndRejections (node:intern
starter (🌍 Community Worlds): e2e stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected undefined to be 'completed' // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:748:30
at processTicksAndRejections (node:intern
starter (🌍 Community Worlds): e2e stepFunctionWithClosureWorkflow - step function with closure variables passed as argument

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected undefined to be 'completed' // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:784:30
at processTicksAndRejections (node:intern
starter (🌍 Community Worlds): e2e spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected undefined to be 'completed' // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:835:36
at processTicksAndRejections (node:intern
turso (🌍 Community Worlds): e2e addTenWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=addTenWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/pack
turso (🌍 Community Worlds): e2e addTenWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F98_duplicate_case.ts&workflowFn=addTenWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/wo
turso (🌍 Community Worlds): e2e should work with react rendering in step

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F8_react_render.tsx&workflowFn=reactWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workf
turso (🌍 Community Worlds): e2e promiseAllWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=promiseAllWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/
turso (🌍 Community Worlds): e2e promiseRaceWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=promiseRaceWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow
turso (🌍 Community Worlds): e2e promiseAnyWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=promiseAnyWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/
turso (🌍 Community Worlds): e2e readableStreamWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=readableStreamWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workf
turso (🌍 Community Worlds): e2e hookWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=hookWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/packag
turso (🌍 Community Worlds): e2e webhookWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=webhookWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/pac
turso (🌍 Community Worlds): e2e sleepingWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=sleepingWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/pa
turso (🌍 Community Worlds): e2e nullByteWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=nullByteWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/pa
turso (🌍 Community Worlds): e2e workflowAndStepMetadataWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=workflowAndStepMetadataWorkflow 500: at triggerWorkflow (/home/runner/work/workf
turso (🌍 Community Worlds): e2e outputStreamWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=outputStreamWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflo
turso (🌍 Community Worlds): e2e outputStreamInsideStepWorkflow - getWritable() called inside step functions

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=outputStreamInsideStepWorkflow 500: at triggerWorkflow (/home/runner/work/workfl
turso (🌍 Community Worlds): e2e fetchWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=fetchWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/packa
turso (🌍 Community Worlds): e2e promiseRaceStressTestWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=promiseRaceStressTestWorkflow 500: at triggerWorkflow (/home/runner/work/workflo
turso (🌍 Community Worlds): e2e retryAttemptCounterWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=retryAttemptCounterWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/
turso (🌍 Community Worlds): e2e retryableAndFatalErrorWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=retryableAndFatalErrorWorkflow 500: at triggerWorkflow (/home/runner/work/workfl
turso (🌍 Community Worlds): e2e crossFileErrorWorkflow - stack traces work across imported modules

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=crossFileErrorWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workf
turso (🌍 Community Worlds): e2e hookCleanupTestWorkflow - hook token reuse after workflow completion

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=hookCleanupTestWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/work
turso (🌍 Community Worlds): e2e stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=stepFunctionPassingWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/
turso (🌍 Community Worlds): e2e stepFunctionWithClosureWorkflow - step function with closure variables passed as argument

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=stepFunctionWithClosureWorkflow 500: at triggerWorkflow (/home/runner/work/workf
turso (🌍 Community Worlds): e2e closureVariableWorkflow - nested step functions with closure variables

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=closureVariableWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/work
turso (🌍 Community Worlds): e2e spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=spawnWorkflowFromStepWorkflow 500: at triggerWorkflow (/home/runner/work/workflo
nuxt (▲ Vercel Production): e2e hookCleanupTestWorkflow - hook token reuse after workflow completion

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected 404 to be 200 // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:681:26
at processTicksAndRejections (node:internal/process/tas

Details by Category

❌ ▲ Vercel Production
AppPassedFailedSkipped
⚠️ astro2501
⚠️ example2501
⚠️ express2501
⚠️ hono2501
⚠️ nextjs-turbopack2501
⚠️ nextjs-webpack2501
⚠️ nitro2501
❌ nuxt2411
⚠️ sveltekit2501
⚠️ vite2501
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack2600
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb2510
✅ redis-dev300
❌ redis2510
✅ starter-dev300
❌ starter1880
✅ turso-dev300
❌ turso2240
⚠️ 📋 Other
AppPassedFailedSkipped
⚠️ e2e-vercel-prod-fastify2501

⚠️Some E2E test jobs failed:

  • Vercel Prod: failure
  • Local Dev: success
  • Local Prod: success
  • Local Postgres: success
  • Windows: success
  • Community Worlds: success

Check the workflow run for details.

@adriandlamGraphite App

adriandlam commented Dec 6, 2025

Copy link
Copy Markdown
ContributorAuthor

Merge activity

  • Dec 6, 12:00 AM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Dec 6, 12:00 AM UTC: @adriandlam merged this pull request with Graphite.

@adriandlam
adriandlam merged commit 205b395 into mainDec 6, 2025
86 of 87 checks passed
@adriandlam
adriandlam deleted the 12-02-refactor-vite-plugin branch December 6, 2025 00:00
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@adriandlam@ijjk
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Highlight search terms from Google/DuckDuckGo/Bing referrer\n(function() {\n var ref = document.referrer;\n var terms = [];\n \n if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) {\n var url = new URL(ref);\n var q = url.searchParams.get('q') || url.searchParams.get('p');\n if (q) {\n terms = q.split(/\\s+/).filter(function(t) { return t.length > 2; });\n }\n }\n \n if (terms.length === 0) return;\n \n var style = document.createElement('style');\n style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }';\n document.head.appendChild(style);\n \n function highlight(node) {\n if (node.nodeType === 3) { // text node\n var text = node.textContent;\n var found = false;\n terms.forEach(function(term) {\n var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\') + ')', 'gi');\n if (regex.test(text)) {\n found = true;\n var frag = document.createDocumentFragment();\n var parts = text.split(regex);\n parts.forEach(function(part, i) {\n if (i % 2 === 0) {\n frag.appendChild(document.createTextNode(part));\n } else {\n var span = document.createElement('span');\n span.className = 'userscript-highlight';\n span.textContent = part;\n frag.appendChild(span);\n }\n });\n node.parentNode.replaceChild(frag, node);\n }\n });\n } else if (node.nodeType === 1 && node.childNodes) { // element\n var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT'];\n if (!skipTags.includes(node.tagName)) {\n Array.from(node.childNodes).forEach(highlight);\n }\n }\n }\n \n highlight(document.body);\n \n // Re-highlight on dynamic content\n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1 || node.nodeType === 3) highlight(node);\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Highlight Search Terms"); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

refactor: add vite package for hmr - #501

Merged
adriandlam merged 5 commits into
mainfrom
12-02-refactor-vite-plugin
Dec 6, 2025
Merged

refactor: add vite package for hmr#501
adriandlam merged 5 commits into
mainfrom
12-02-refactor-vite-plugin

Conversation

@adriandlam

@adriandlamadriandlam commented Dec 2, 2025

Copy link
Copy Markdown
Contributor

nitro, sveltekit and astro and additional vite integrations will use hotUpdate for hmr in the future. this adds a @workflow/vite package to standardize hmr in workflows

@vercel

vercelBot commented Dec 2, 2025

Copy link
Copy Markdown
Contributor

@vercel
vercelBottemporarily deployed to Preview – workflow-docs December 2, 2025 20:32 Inactive
@changeset-bot

changeset-botBot commented Dec 2, 2025

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: bb88ade

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 8 packages
NameType
@workflow/sveltekitPatch
@workflow/astroPatch
@workflow/nitroPatch
@workflow/vitePatch
workflowPatch
@workflow/nuxtPatch
@workflow/aiPatch
@workflow/world-testingPatch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@adriandlamadriandlam changed the title feat: add vite packagerefactor: add vite packageDec 2, 2025
@adriandlamGraphite App

adriandlam commented Dec 2, 2025

Copy link
Copy Markdown
ContributorAuthor

@github-actions

github-actionsBot commented Dec 2, 2025

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)0.037s (-7.5% 🟢)1.013s (~)0.976s101.00x
🌐 StarterNext.js (Turbopack)0.039s (+2.1%)1.014s (~)0.975s101.05x
🌐 RedisNext.js (Turbopack)0.041s (+2.2%)1.017s (~)0.976s101.10x
💻 LocalNitro0.043s (+1.2%)1.006s (~)0.963s101.16x
💻 LocalExpress0.046s (+1.8%)1.007s (~)0.962s101.23x
🌐 MongoDBNext.js (Turbopack)0.110s (+77.1% 🔺)1.014s (~)0.904s102.96x
🐘 PostgresNext.js (Turbopack)0.300s (+115.1% 🔺)1.027s (+0.9%)0.727s108.08x
🐘 PostgresNitro0.311s (-6.1% 🟢)1.012s (-1.4%)0.701s108.38x
🐘 PostgresExpress0.340s (-13.4% 🟢)1.013s (~)0.673s109.16x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.594s (+15.9% 🔺)1.621s (+9.7% 🔺)1.028s101.00x
▲ VercelExpress0.644s (+30.6% 🔺)1.491s (-0.6%)0.847s101.09x
▲ VercelNext.js (Turbopack)0.654s (+33.3% 🔺)1.624s (+15.7% 🔺)0.969s101.10x

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.089s (-5.7% 🟢)1.008s (~)0.920s101.00x
💻 LocalNext.js (Turbopack)0.094s (-5.6% 🟢)1.009s (~)0.916s101.06x
🌐 RedisNext.js (Turbopack)0.107s (+9.1% 🔺)1.012s (~)0.905s101.20x
💻 LocalNitro0.108s (-3.3%)1.005s (~)0.897s101.22x
💻 LocalExpress0.120s (+6.8% 🔺)1.008s (~)0.887s101.35x
🌐 MongoDBNext.js (Turbopack)0.283s (-2.8%)1.012s (~)0.729s103.18x
🐘 PostgresNext.js (Turbopack)0.743s (-18.7% 🟢)1.015s (~)0.272s108.35x
🐘 PostgresNitro1.190s (+1.6%)2.012s (~)0.823s1013.38x
🐘 PostgresExpress1.193s (+45.5% 🔺)2.013s (+81.3% 🔺)0.820s1013.42x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)1.402s (-18.3% 🟢)2.576s (~)1.174s101.00x
▲ VercelExpress1.450s (-3.0%)2.400s (+1.7%)0.951s101.03x
▲ VercelNitro1.548s (-1.0%)2.581s (+2.6%)1.032s101.10x

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.567s (-4.0%)1.008s (~)0.441s51.00x
💻 LocalNext.js (Turbopack)0.603s (+0.8%)1.009s (~)0.406s51.06x
🌐 RedisNext.js (Turbopack)0.627s (~)1.012s (~)0.384s51.11x
💻 LocalNitro0.776s (~)1.006s (~)0.230s51.37x
💻 LocalExpress0.814s (+4.8%)1.008s (~)0.193s51.44x
🌐 MongoDBNext.js (Turbopack)2.140s (-0.5%)3.012s (~)0.872s53.77x
🐘 PostgresNext.js (Turbopack)5.119s (-3.3%)6.019s (~)0.900s59.03x
🐘 PostgresNitro10.167s (-1.9%)11.025s (+2.0%)0.858s517.93x
🐘 PostgresExpress10.263s (+94.3% 🔺)11.023s (+83.2% 🔺)0.760s518.10x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)10.518s (-2.8%)11.313s (-3.2%)0.794s51.00x
▲ VercelExpress10.922s (+6.8% 🔺)11.782s (+5.4% 🔺)0.861s51.04x
▲ VercelNitro11.843s (+13.6% 🔺)12.441s (+11.5% 🔺)0.598s51.13x

workflow with 10 parallel steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.365s (-1.3%)1.009s (~)0.644s51.00x
💻 LocalNext.js (Turbopack)0.367s (-3.0%)1.009s (~)0.641s51.01x
🌐 RedisNext.js (Turbopack)0.369s (+2.9%)1.010s (~)0.641s51.01x
💻 LocalNitro0.384s (-4.9%)1.005s (~)0.621s51.05x
💻 LocalExpress0.441s (+11.4% 🔺)1.006s (~)0.565s51.21x
🐘 PostgresNext.js (Turbopack)0.938s (+3.5%)1.618s (+59.9% 🔺)0.680s52.57x
🌐 MongoDBNext.js (Turbopack)1.653s (+0.8%)2.011s (~)0.358s54.53x
🐘 PostgresNitro1.665s (+24.8% 🔺)2.013s (~)0.348s54.56x
🐘 PostgresExpress1.668s (+35.2% 🔺)2.013s (~)0.344s54.57x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.604s (-6.9% 🟢)3.466s (-7.9% 🟢)0.862s51.00x
▲ VercelNitro2.678s (-6.6% 🟢)3.586s (-1.8%)0.908s51.03x
▲ VercelNext.js (Turbopack)2.916s (+2.4%)3.819s (+7.3% 🔺)0.903s51.12x

stress test: Promise.all with 100 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.908s (+1.0%)2.047s (+0.8%)0.139s151.00x
🌐 RedisNext.js (Turbopack)3.631s (+8.2% 🔺)4.155s (+7.0% 🔺)0.524s81.90x
🐘 PostgresNext.js (Turbopack)7.888s (-3.1%)8.011s (-6.0% 🟢)0.123s44.13x
🐘 PostgresExpress8.572s (-2.2%)9.070s (~)0.498s44.49x
🐘 PostgresNitro8.687s (+6.4% 🔺)9.193s (+7.6% 🔺)0.506s44.55x
💻 LocalNitro10.669s (~)11.012s (~)0.343s35.59x
💻 LocalExpress11.318s (+12.7% 🔺)11.650s (+13.1% 🔺)0.331s35.93x
💻 LocalNext.js (Turbopack)11.777s (+4.0%)12.331s (+5.9% 🔺)0.554s36.17x
🌐 MongoDBNext.js (Turbopack)20.204s (+1.4%)20.537s (~)0.333s210.59x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro18.788s (+8.9% 🔺)19.378s (+5.8% 🔺)0.589s21.00x
▲ VercelExpress20.083s (+43.5% 🔺)20.809s (+36.6% 🔺)0.726s21.07x
▲ VercelNext.js (Turbopack)20.487s (+15.6% 🔺)20.832s (+12.9% 🔺)0.345s21.09x

stress test: Promise.race with 100 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)2.045s (-3.1%)2.134s (-3.1%)0.089s151.00x
🌐 RedisNext.js (Turbopack)3.857s (+7.3% 🔺)4.103s (+0.8%)0.246s81.89x
💻 LocalNext.js (Turbopack)8.225s (-31.2% 🟢)8.829s (-28.4% 🟢)0.604s44.02x
🐘 PostgresNext.js (Turbopack)8.932s (+3.7%)9.111s (+3.6%)0.180s44.37x
🐘 PostgresNitro9.306s (+1.3%)9.480s (~)0.174s44.55x
🐘 PostgresExpress9.370s (+4.8%)9.740s (+5.9% 🔺)0.370s44.58x
💻 LocalNitro10.419s (-5.8% 🟢)10.994s (-5.7% 🟢)0.575s35.09x
💻 LocalExpress13.024s (+14.0% 🔺)13.385s (+14.9% 🔺)0.360s36.37x
🌐 MongoDBNext.js (Turbopack)19.888s (-1.7%)20.526s (~)0.638s29.73x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express17.909s (+2.2%)18.699s (+2.5%)0.791s21.00x
▲ VercelNext.js (Turbopack)20.789s (+15.1% 🔺)21.436s (+14.9% 🔺)0.647s21.16x
▲ VercelNitro21.073s (+17.1% 🔺)22.449s (+19.7% 🔺)1.377s21.18x

Stream Benchmarks

Stream benchmarks include Time to First Byte (TTFB) metrics.

workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.131s (-3.5%)1.004s (~)1.009s (~)0.878s101.00x
💻 LocalNext.js (Turbopack)0.137s (+1.0%)1.002s (~)1.013s (~)0.876s101.04x
🌐 RedisNext.js (Turbopack)0.143s (-12.8% 🟢)1.002s (~)1.010s (~)0.867s101.10x
💻 LocalNitro0.175s (-2.5%)0.991s (~)1.008s (~)0.833s101.34x
💻 LocalExpress0.188s (+6.6% 🔺)0.991s (~)1.009s (~)0.822s101.43x
🌐 MongoDBNext.js (Turbopack)0.492s (+5.0%)0.952s (-2.6%)1.010s (~)0.519s103.76x
🐘 PostgresNext.js (Turbopack)0.973s (-9.2% 🟢)1.133s (-39.2% 🟢)1.413s (-26.2% 🟢)0.440s107.44x
🐘 PostgresNitro1.583s (+56.6% 🔺)1.907s (+44.8% 🔺)2.211s (+46.5% 🔺)0.628s1012.09x
🐘 PostgresExpress1.916s (+42.9% 🔺)2.126s (+25.5% 🔺)2.414s (+20.0% 🔺)0.497s1014.64x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.366s (-5.5% 🟢)2.471s (-15.6% 🟢)2.880s (-14.4% 🟢)0.514s101.00x
▲ VercelExpress2.382s (-1.3%)2.787s (-3.1%)3.200s (-2.8%)0.818s101.01x
▲ VercelNitro2.689s (+8.1% 🔺)3.077s (+1.9%)3.569s (+4.9%)0.880s101.14x

Summary: Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)6/7
🐘 PostgresNext.js (Turbopack)7/7
▲ VercelNext.js (Turbopack)3/7

Summary: Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local5/7
Next.js (Turbopack)🌐 Starter6/7
Nitro💻 Local5/7
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Starter: Community world (local development)
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

Comment threadpackages/vite/package.json Outdated
Comment on lines +31 to +36
"devDependencies": {
"@types/node": "catalog:",
"@workflow/builders": "workspace:*",
"@workflow/tsconfig": "workspace:*",
"vite": "7.1.12"
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The @workflow/builders package should be in dependencies instead of devDependencies because the exported WorkflowHotUpdatePluginOptions interface references BaseBuilder from it. External consumers will fail to resolve the types without this dependency.

View Details
📝 Patch Details
diff --git a/packages/vite/package.json b/packages/vite/package.json
index fc42483..2c86c5c 100644
--- a/packages/vite/package.json+++ b/packages/vite/package.json@@ -28,9 +28,11 @@
"clean": "tsc --build --clean && rm -rf dist",
"typecheck": "tsc --noEmit"
},
+ "dependencies": {+ "@workflow/builders": "workspace:*"+ },
"devDependencies": {
"@types/node": "catalog:",
- "@workflow/builders": "workspace:*",
"@workflow/tsconfig": "workspace:*",
"vite": "7.1.12"
}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index d21b10a..285fb0c 100644
--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -811,13 +811,14 @@ importers:
version: 3.2.4(@types/debug@4.1.12)(@types/node@22.19.0)(jiti@2.6.1)(lightningcss@1.30.1)(terser@5.44.0)(tsx@4.20.6)(yaml@2.8.1)
packages/vite:
+ dependencies:+ '@workflow/builders':+ specifier: workspace:*+ version: link:../builders
devDependencies:
'@types/node':
specifier: 'catalog:'
version: 22.19.0
- '@workflow/builders':- specifier: workspace:*- version: link:../builders
'@workflow/tsconfig':
specifier: workspace:*
version: link:../tsconfig

Analysis

@workflow/builders should be in dependencies, not devDependencies

What fails: The @workflow/vite package exports WorkflowHotUpdatePluginOptions interface which references BaseBuilder type from @workflow/builders. When external consumers import this exported type, TypeScript cannot resolve the @workflow/builders module because it's only listed in devDependencies.

How to reproduce:

cd packages/vite
# Verify @workflow/builders is in devDependencies (lines 33-36 of package.json)
cat package.json | grep -A 5 devDependencies
# Try to build or typecheck
pnpm build

Result: Compilation fails with:

src/hot-update.ts(2,34): error TS2307: Cannot find module '@workflow/builders' or its corresponding type declarations.

Root cause: The exported interface in packages/vite/src/index.ts includes WorkflowHotUpdatePluginOptions which has a type signature that depends on BaseBuilder from @workflow/builders. This type dependency must be available at runtime through the node_modules resolution for TypeScript to resolve type declarations when consuming the published package. External users installing @workflow/vite from npm will receive the built .d.ts files with these type references, but will fail to resolve them without @workflow/builders as a runtime dependency.

Fix: Moved @workflow/builders from devDependencies to dependencies in packages/vite/package.json to ensure external consumers can resolve the type declarations.

@adriandlam
adriandlam marked this pull request as ready for review December 2, 2025 21:25
ijjk
ijjk approved these changes Dec 5, 2025
@github-actions

github-actionsBot commented Dec 5, 2025

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
❌ ▲ Vercel Production249110260
✅ 🪟 Windows260026
❌ 🌍 Community Worlds82340116
⚠️ 📋 Other250126
Total3823511428

❌ Failed Tests

mongodb (🌍 Community Worlds): e2e webhookWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected 404 to be 202 // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:255:24
at processTicksAndRejections (node:internal/process/tas
redis (🌍 Community Worlds): e2e webhookWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected 404 to be 200 // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:285:25
at processTicksAndRejections (node:internal/process/tas
starter (🌍 Community Worlds): e2e addTenWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected {} to match object { …(5) }
at Proxy.<anonymous> (file:///home/runner/work/workflow/workflow/node_modules/.pnpm/@vitest+expect@3.2.4/node_modules/@vitest/expect/dist/index
starter (🌍 Community Worlds): e2e addTenWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected {} to match object { …(5) }
at Proxy.<anonymous> (file:///home/runner/work/workflow/workflow/node_modules/.pnpm/@vitest+expect@3.2.4/node_modules/@vitest/expect/dist/index
starter (🌍 Community Worlds): e2e retryAttemptCounterWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected {} to match object { …(3) }
at Proxy.<anonymous> (file:///home/runner/work/workflow/workflow/node_modules/.pnpm/@vitest+expect@3.2.4/node_modules/@vitest/expect/dist/index
starter (🌍 Community Worlds): e2e crossFileErrorWorkflow - stack traces work across imported modules

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected undefined to be 'failed' // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:647:30
at processTicksAndRejections (node:internal/
starter (🌍 Community Worlds): e2e hookCleanupTestWorkflow - hook token reuse after workflow completion

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected undefined to be 'completed' // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:725:31
at processTicksAndRejections (node:intern
starter (🌍 Community Worlds): e2e stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected undefined to be 'completed' // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:748:30
at processTicksAndRejections (node:intern
starter (🌍 Community Worlds): e2e stepFunctionWithClosureWorkflow - step function with closure variables passed as argument

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected undefined to be 'completed' // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:784:30
at processTicksAndRejections (node:intern
starter (🌍 Community Worlds): e2e spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected undefined to be 'completed' // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:835:36
at processTicksAndRejections (node:intern
turso (🌍 Community Worlds): e2e addTenWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=addTenWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/pack
turso (🌍 Community Worlds): e2e addTenWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F98_duplicate_case.ts&workflowFn=addTenWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/wo
turso (🌍 Community Worlds): e2e should work with react rendering in step

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F8_react_render.tsx&workflowFn=reactWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workf
turso (🌍 Community Worlds): e2e promiseAllWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=promiseAllWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/
turso (🌍 Community Worlds): e2e promiseRaceWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=promiseRaceWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow
turso (🌍 Community Worlds): e2e promiseAnyWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=promiseAnyWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/
turso (🌍 Community Worlds): e2e readableStreamWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=readableStreamWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workf
turso (🌍 Community Worlds): e2e hookWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=hookWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/packag
turso (🌍 Community Worlds): e2e webhookWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=webhookWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/pac
turso (🌍 Community Worlds): e2e sleepingWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=sleepingWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/pa
turso (🌍 Community Worlds): e2e nullByteWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=nullByteWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/pa
turso (🌍 Community Worlds): e2e workflowAndStepMetadataWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=workflowAndStepMetadataWorkflow 500: at triggerWorkflow (/home/runner/work/workf
turso (🌍 Community Worlds): e2e outputStreamWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=outputStreamWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflo
turso (🌍 Community Worlds): e2e outputStreamInsideStepWorkflow - getWritable() called inside step functions

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=outputStreamInsideStepWorkflow 500: at triggerWorkflow (/home/runner/work/workfl
turso (🌍 Community Worlds): e2e fetchWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=fetchWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/packa
turso (🌍 Community Worlds): e2e promiseRaceStressTestWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=promiseRaceStressTestWorkflow 500: at triggerWorkflow (/home/runner/work/workflo
turso (🌍 Community Worlds): e2e retryAttemptCounterWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=retryAttemptCounterWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/
turso (🌍 Community Worlds): e2e retryableAndFatalErrorWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=retryableAndFatalErrorWorkflow 500: at triggerWorkflow (/home/runner/work/workfl
turso (🌍 Community Worlds): e2e crossFileErrorWorkflow - stack traces work across imported modules

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=crossFileErrorWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workf
turso (🌍 Community Worlds): e2e hookCleanupTestWorkflow - hook token reuse after workflow completion

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=hookCleanupTestWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/work
turso (🌍 Community Worlds): e2e stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=stepFunctionPassingWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/
turso (🌍 Community Worlds): e2e stepFunctionWithClosureWorkflow - step function with closure variables passed as argument

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=stepFunctionWithClosureWorkflow 500: at triggerWorkflow (/home/runner/work/workf
turso (🌍 Community Worlds): e2e closureVariableWorkflow - nested step functions with closure variables

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=closureVariableWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/work
turso (🌍 Community Worlds): e2e spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=spawnWorkflowFromStepWorkflow 500: at triggerWorkflow (/home/runner/work/workflo
nuxt (▲ Vercel Production): e2e hookCleanupTestWorkflow - hook token reuse after workflow completion

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected 404 to be 200 // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:681:26
at processTicksAndRejections (node:internal/process/tas

Details by Category

❌ ▲ Vercel Production
AppPassedFailedSkipped
⚠️ astro2501
⚠️ example2501
⚠️ express2501
⚠️ hono2501
⚠️ nextjs-turbopack2501
⚠️ nextjs-webpack2501
⚠️ nitro2501
❌ nuxt2411
⚠️ sveltekit2501
⚠️ vite2501
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack2600
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb2510
✅ redis-dev300
❌ redis2510
✅ starter-dev300
❌ starter1880
✅ turso-dev300
❌ turso2240
⚠️ 📋 Other
AppPassedFailedSkipped
⚠️ e2e-vercel-prod-fastify2501

⚠️Some E2E test jobs failed:

  • Vercel Prod: failure
  • Local Dev: success
  • Local Prod: success
  • Local Postgres: success
  • Windows: success
  • Community Worlds: success

Check the workflow run for details.

@adriandlamGraphite App

adriandlam commented Dec 6, 2025

Copy link
Copy Markdown
ContributorAuthor

Merge activity

  • Dec 6, 12:00 AM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Dec 6, 12:00 AM UTC: @adriandlam merged this pull request with Graphite.

@adriandlam
adriandlam merged commit 205b395 into mainDec 6, 2025
86 of 87 checks passed
@adriandlam
adriandlam deleted the 12-02-refactor-vite-plugin branch December 6, 2025 00:00
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@adriandlam@ijjk
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Strip utm_, fbclid, gclid, etc. from all links on page\n(function() {\n var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content',\n 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid',\n 'ref', 'ref_src', 'source', 'medium', 'campaign'];\n \n function cleanUrl(url) {\n try {\n var u = new URL(url, window.location.origin);\n var changed = false;\n trackingParams.forEach(function(p) {\n if (u.searchParams.has(p)) {\n u.searchParams.delete(p);\n changed = true;\n }\n });\n return changed ? u.toString() : url;\n } catch (e) {\n return url;\n }\n }\n \n function cleanLinks() {\n document.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n \n cleanLinks();\n \n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1) {\n if (node.tagName === 'A') cleanLinks();\n node.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Remove Tracking Parameters from Links"); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + '
Skip to content

refactor: add vite package for hmr - #501

Merged
adriandlam merged 5 commits into
mainfrom
12-02-refactor-vite-plugin
Dec 6, 2025
Merged

refactor: add vite package for hmr#501
adriandlam merged 5 commits into
mainfrom
12-02-refactor-vite-plugin

Conversation

@adriandlam

@adriandlamadriandlam commented Dec 2, 2025

Copy link
Copy Markdown
Contributor

nitro, sveltekit and astro and additional vite integrations will use hotUpdate for hmr in the future. this adds a @workflow/vite package to standardize hmr in workflows

@vercel

vercelBot commented Dec 2, 2025

Copy link
Copy Markdown
Contributor

@vercel
vercelBottemporarily deployed to Preview – workflow-docs December 2, 2025 20:32 Inactive
@changeset-bot

changeset-botBot commented Dec 2, 2025

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: bb88ade

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 8 packages
NameType
@workflow/sveltekitPatch
@workflow/astroPatch
@workflow/nitroPatch
@workflow/vitePatch
workflowPatch
@workflow/nuxtPatch
@workflow/aiPatch
@workflow/world-testingPatch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@adriandlamadriandlam changed the title feat: add vite packagerefactor: add vite packageDec 2, 2025
@adriandlamGraphite App

adriandlam commented Dec 2, 2025

Copy link
Copy Markdown
ContributorAuthor

@github-actions

github-actionsBot commented Dec 2, 2025

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)0.037s (-7.5% 🟢)1.013s (~)0.976s101.00x
🌐 StarterNext.js (Turbopack)0.039s (+2.1%)1.014s (~)0.975s101.05x
🌐 RedisNext.js (Turbopack)0.041s (+2.2%)1.017s (~)0.976s101.10x
💻 LocalNitro0.043s (+1.2%)1.006s (~)0.963s101.16x
💻 LocalExpress0.046s (+1.8%)1.007s (~)0.962s101.23x
🌐 MongoDBNext.js (Turbopack)0.110s (+77.1% 🔺)1.014s (~)0.904s102.96x
🐘 PostgresNext.js (Turbopack)0.300s (+115.1% 🔺)1.027s (+0.9%)0.727s108.08x
🐘 PostgresNitro0.311s (-6.1% 🟢)1.012s (-1.4%)0.701s108.38x
🐘 PostgresExpress0.340s (-13.4% 🟢)1.013s (~)0.673s109.16x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.594s (+15.9% 🔺)1.621s (+9.7% 🔺)1.028s101.00x
▲ VercelExpress0.644s (+30.6% 🔺)1.491s (-0.6%)0.847s101.09x
▲ VercelNext.js (Turbopack)0.654s (+33.3% 🔺)1.624s (+15.7% 🔺)0.969s101.10x

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.089s (-5.7% 🟢)1.008s (~)0.920s101.00x
💻 LocalNext.js (Turbopack)0.094s (-5.6% 🟢)1.009s (~)0.916s101.06x
🌐 RedisNext.js (Turbopack)0.107s (+9.1% 🔺)1.012s (~)0.905s101.20x
💻 LocalNitro0.108s (-3.3%)1.005s (~)0.897s101.22x
💻 LocalExpress0.120s (+6.8% 🔺)1.008s (~)0.887s101.35x
🌐 MongoDBNext.js (Turbopack)0.283s (-2.8%)1.012s (~)0.729s103.18x
🐘 PostgresNext.js (Turbopack)0.743s (-18.7% 🟢)1.015s (~)0.272s108.35x
🐘 PostgresNitro1.190s (+1.6%)2.012s (~)0.823s1013.38x
🐘 PostgresExpress1.193s (+45.5% 🔺)2.013s (+81.3% 🔺)0.820s1013.42x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)1.402s (-18.3% 🟢)2.576s (~)1.174s101.00x
▲ VercelExpress1.450s (-3.0%)2.400s (+1.7%)0.951s101.03x
▲ VercelNitro1.548s (-1.0%)2.581s (+2.6%)1.032s101.10x

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.567s (-4.0%)1.008s (~)0.441s51.00x
💻 LocalNext.js (Turbopack)0.603s (+0.8%)1.009s (~)0.406s51.06x
🌐 RedisNext.js (Turbopack)0.627s (~)1.012s (~)0.384s51.11x
💻 LocalNitro0.776s (~)1.006s (~)0.230s51.37x
💻 LocalExpress0.814s (+4.8%)1.008s (~)0.193s51.44x
🌐 MongoDBNext.js (Turbopack)2.140s (-0.5%)3.012s (~)0.872s53.77x
🐘 PostgresNext.js (Turbopack)5.119s (-3.3%)6.019s (~)0.900s59.03x
🐘 PostgresNitro10.167s (-1.9%)11.025s (+2.0%)0.858s517.93x
🐘 PostgresExpress10.263s (+94.3% 🔺)11.023s (+83.2% 🔺)0.760s518.10x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)10.518s (-2.8%)11.313s (-3.2%)0.794s51.00x
▲ VercelExpress10.922s (+6.8% 🔺)11.782s (+5.4% 🔺)0.861s51.04x
▲ VercelNitro11.843s (+13.6% 🔺)12.441s (+11.5% 🔺)0.598s51.13x

workflow with 10 parallel steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.365s (-1.3%)1.009s (~)0.644s51.00x
💻 LocalNext.js (Turbopack)0.367s (-3.0%)1.009s (~)0.641s51.01x
🌐 RedisNext.js (Turbopack)0.369s (+2.9%)1.010s (~)0.641s51.01x
💻 LocalNitro0.384s (-4.9%)1.005s (~)0.621s51.05x
💻 LocalExpress0.441s (+11.4% 🔺)1.006s (~)0.565s51.21x
🐘 PostgresNext.js (Turbopack)0.938s (+3.5%)1.618s (+59.9% 🔺)0.680s52.57x
🌐 MongoDBNext.js (Turbopack)1.653s (+0.8%)2.011s (~)0.358s54.53x
🐘 PostgresNitro1.665s (+24.8% 🔺)2.013s (~)0.348s54.56x
🐘 PostgresExpress1.668s (+35.2% 🔺)2.013s (~)0.344s54.57x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.604s (-6.9% 🟢)3.466s (-7.9% 🟢)0.862s51.00x
▲ VercelNitro2.678s (-6.6% 🟢)3.586s (-1.8%)0.908s51.03x
▲ VercelNext.js (Turbopack)2.916s (+2.4%)3.819s (+7.3% 🔺)0.903s51.12x

stress test: Promise.all with 100 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.908s (+1.0%)2.047s (+0.8%)0.139s151.00x
🌐 RedisNext.js (Turbopack)3.631s (+8.2% 🔺)4.155s (+7.0% 🔺)0.524s81.90x
🐘 PostgresNext.js (Turbopack)7.888s (-3.1%)8.011s (-6.0% 🟢)0.123s44.13x
🐘 PostgresExpress8.572s (-2.2%)9.070s (~)0.498s44.49x
🐘 PostgresNitro8.687s (+6.4% 🔺)9.193s (+7.6% 🔺)0.506s44.55x
💻 LocalNitro10.669s (~)11.012s (~)0.343s35.59x
💻 LocalExpress11.318s (+12.7% 🔺)11.650s (+13.1% 🔺)0.331s35.93x
💻 LocalNext.js (Turbopack)11.777s (+4.0%)12.331s (+5.9% 🔺)0.554s36.17x
🌐 MongoDBNext.js (Turbopack)20.204s (+1.4%)20.537s (~)0.333s210.59x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro18.788s (+8.9% 🔺)19.378s (+5.8% 🔺)0.589s21.00x
▲ VercelExpress20.083s (+43.5% 🔺)20.809s (+36.6% 🔺)0.726s21.07x
▲ VercelNext.js (Turbopack)20.487s (+15.6% 🔺)20.832s (+12.9% 🔺)0.345s21.09x

stress test: Promise.race with 100 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)2.045s (-3.1%)2.134s (-3.1%)0.089s151.00x
🌐 RedisNext.js (Turbopack)3.857s (+7.3% 🔺)4.103s (+0.8%)0.246s81.89x
💻 LocalNext.js (Turbopack)8.225s (-31.2% 🟢)8.829s (-28.4% 🟢)0.604s44.02x
🐘 PostgresNext.js (Turbopack)8.932s (+3.7%)9.111s (+3.6%)0.180s44.37x
🐘 PostgresNitro9.306s (+1.3%)9.480s (~)0.174s44.55x
🐘 PostgresExpress9.370s (+4.8%)9.740s (+5.9% 🔺)0.370s44.58x
💻 LocalNitro10.419s (-5.8% 🟢)10.994s (-5.7% 🟢)0.575s35.09x
💻 LocalExpress13.024s (+14.0% 🔺)13.385s (+14.9% 🔺)0.360s36.37x
🌐 MongoDBNext.js (Turbopack)19.888s (-1.7%)20.526s (~)0.638s29.73x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express17.909s (+2.2%)18.699s (+2.5%)0.791s21.00x
▲ VercelNext.js (Turbopack)20.789s (+15.1% 🔺)21.436s (+14.9% 🔺)0.647s21.16x
▲ VercelNitro21.073s (+17.1% 🔺)22.449s (+19.7% 🔺)1.377s21.18x

Stream Benchmarks

Stream benchmarks include Time to First Byte (TTFB) metrics.

workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.131s (-3.5%)1.004s (~)1.009s (~)0.878s101.00x
💻 LocalNext.js (Turbopack)0.137s (+1.0%)1.002s (~)1.013s (~)0.876s101.04x
🌐 RedisNext.js (Turbopack)0.143s (-12.8% 🟢)1.002s (~)1.010s (~)0.867s101.10x
💻 LocalNitro0.175s (-2.5%)0.991s (~)1.008s (~)0.833s101.34x
💻 LocalExpress0.188s (+6.6% 🔺)0.991s (~)1.009s (~)0.822s101.43x
🌐 MongoDBNext.js (Turbopack)0.492s (+5.0%)0.952s (-2.6%)1.010s (~)0.519s103.76x
🐘 PostgresNext.js (Turbopack)0.973s (-9.2% 🟢)1.133s (-39.2% 🟢)1.413s (-26.2% 🟢)0.440s107.44x
🐘 PostgresNitro1.583s (+56.6% 🔺)1.907s (+44.8% 🔺)2.211s (+46.5% 🔺)0.628s1012.09x
🐘 PostgresExpress1.916s (+42.9% 🔺)2.126s (+25.5% 🔺)2.414s (+20.0% 🔺)0.497s1014.64x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.366s (-5.5% 🟢)2.471s (-15.6% 🟢)2.880s (-14.4% 🟢)0.514s101.00x
▲ VercelExpress2.382s (-1.3%)2.787s (-3.1%)3.200s (-2.8%)0.818s101.01x
▲ VercelNitro2.689s (+8.1% 🔺)3.077s (+1.9%)3.569s (+4.9%)0.880s101.14x

Summary: Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)6/7
🐘 PostgresNext.js (Turbopack)7/7
▲ VercelNext.js (Turbopack)3/7

Summary: Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local5/7
Next.js (Turbopack)🌐 Starter6/7
Nitro💻 Local5/7
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Starter: Community world (local development)
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

Comment threadpackages/vite/package.json Outdated
Comment on lines +31 to +36
"devDependencies": {
"@types/node": "catalog:",
"@workflow/builders": "workspace:*",
"@workflow/tsconfig": "workspace:*",
"vite": "7.1.12"
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The @workflow/builders package should be in dependencies instead of devDependencies because the exported WorkflowHotUpdatePluginOptions interface references BaseBuilder from it. External consumers will fail to resolve the types without this dependency.

View Details
📝 Patch Details
diff --git a/packages/vite/package.json b/packages/vite/package.json
index fc42483..2c86c5c 100644
--- a/packages/vite/package.json+++ b/packages/vite/package.json@@ -28,9 +28,11 @@
"clean": "tsc --build --clean && rm -rf dist",
"typecheck": "tsc --noEmit"
},
+ "dependencies": {+ "@workflow/builders": "workspace:*"+ },
"devDependencies": {
"@types/node": "catalog:",
- "@workflow/builders": "workspace:*",
"@workflow/tsconfig": "workspace:*",
"vite": "7.1.12"
}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index d21b10a..285fb0c 100644
--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -811,13 +811,14 @@ importers:
version: 3.2.4(@types/debug@4.1.12)(@types/node@22.19.0)(jiti@2.6.1)(lightningcss@1.30.1)(terser@5.44.0)(tsx@4.20.6)(yaml@2.8.1)
packages/vite:
+ dependencies:+ '@workflow/builders':+ specifier: workspace:*+ version: link:../builders
devDependencies:
'@types/node':
specifier: 'catalog:'
version: 22.19.0
- '@workflow/builders':- specifier: workspace:*- version: link:../builders
'@workflow/tsconfig':
specifier: workspace:*
version: link:../tsconfig

Analysis

@workflow/builders should be in dependencies, not devDependencies

What fails: The @workflow/vite package exports WorkflowHotUpdatePluginOptions interface which references BaseBuilder type from @workflow/builders. When external consumers import this exported type, TypeScript cannot resolve the @workflow/builders module because it's only listed in devDependencies.

How to reproduce:

cd packages/vite
# Verify @workflow/builders is in devDependencies (lines 33-36 of package.json)
cat package.json | grep -A 5 devDependencies
# Try to build or typecheck
pnpm build

Result: Compilation fails with:

src/hot-update.ts(2,34): error TS2307: Cannot find module '@workflow/builders' or its corresponding type declarations.

Root cause: The exported interface in packages/vite/src/index.ts includes WorkflowHotUpdatePluginOptions which has a type signature that depends on BaseBuilder from @workflow/builders. This type dependency must be available at runtime through the node_modules resolution for TypeScript to resolve type declarations when consuming the published package. External users installing @workflow/vite from npm will receive the built .d.ts files with these type references, but will fail to resolve them without @workflow/builders as a runtime dependency.

Fix: Moved @workflow/builders from devDependencies to dependencies in packages/vite/package.json to ensure external consumers can resolve the type declarations.

@adriandlam
adriandlam marked this pull request as ready for review December 2, 2025 21:25
ijjk
ijjk approved these changes Dec 5, 2025
@github-actions

github-actionsBot commented Dec 5, 2025

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
❌ ▲ Vercel Production249110260
✅ 🪟 Windows260026
❌ 🌍 Community Worlds82340116
⚠️ 📋 Other250126
Total3823511428

❌ Failed Tests

mongodb (🌍 Community Worlds): e2e webhookWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected 404 to be 202 // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:255:24
at processTicksAndRejections (node:internal/process/tas
redis (🌍 Community Worlds): e2e webhookWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected 404 to be 200 // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:285:25
at processTicksAndRejections (node:internal/process/tas
starter (🌍 Community Worlds): e2e addTenWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected {} to match object { …(5) }
at Proxy.<anonymous> (file:///home/runner/work/workflow/workflow/node_modules/.pnpm/@vitest+expect@3.2.4/node_modules/@vitest/expect/dist/index
starter (🌍 Community Worlds): e2e addTenWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected {} to match object { …(5) }
at Proxy.<anonymous> (file:///home/runner/work/workflow/workflow/node_modules/.pnpm/@vitest+expect@3.2.4/node_modules/@vitest/expect/dist/index
starter (🌍 Community Worlds): e2e retryAttemptCounterWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected {} to match object { …(3) }
at Proxy.<anonymous> (file:///home/runner/work/workflow/workflow/node_modules/.pnpm/@vitest+expect@3.2.4/node_modules/@vitest/expect/dist/index
starter (🌍 Community Worlds): e2e crossFileErrorWorkflow - stack traces work across imported modules

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected undefined to be 'failed' // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:647:30
at processTicksAndRejections (node:internal/
starter (🌍 Community Worlds): e2e hookCleanupTestWorkflow - hook token reuse after workflow completion

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected undefined to be 'completed' // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:725:31
at processTicksAndRejections (node:intern
starter (🌍 Community Worlds): e2e stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected undefined to be 'completed' // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:748:30
at processTicksAndRejections (node:intern
starter (🌍 Community Worlds): e2e stepFunctionWithClosureWorkflow - step function with closure variables passed as argument

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected undefined to be 'completed' // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:784:30
at processTicksAndRejections (node:intern
starter (🌍 Community Worlds): e2e spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected undefined to be 'completed' // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:835:36
at processTicksAndRejections (node:intern
turso (🌍 Community Worlds): e2e addTenWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=addTenWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/pack
turso (🌍 Community Worlds): e2e addTenWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F98_duplicate_case.ts&workflowFn=addTenWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/wo
turso (🌍 Community Worlds): e2e should work with react rendering in step

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F8_react_render.tsx&workflowFn=reactWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workf
turso (🌍 Community Worlds): e2e promiseAllWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=promiseAllWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/
turso (🌍 Community Worlds): e2e promiseRaceWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=promiseRaceWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow
turso (🌍 Community Worlds): e2e promiseAnyWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=promiseAnyWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/
turso (🌍 Community Worlds): e2e readableStreamWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=readableStreamWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workf
turso (🌍 Community Worlds): e2e hookWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=hookWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/packag
turso (🌍 Community Worlds): e2e webhookWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=webhookWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/pac
turso (🌍 Community Worlds): e2e sleepingWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=sleepingWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/pa
turso (🌍 Community Worlds): e2e nullByteWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=nullByteWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/pa
turso (🌍 Community Worlds): e2e workflowAndStepMetadataWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=workflowAndStepMetadataWorkflow 500: at triggerWorkflow (/home/runner/work/workf
turso (🌍 Community Worlds): e2e outputStreamWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=outputStreamWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflo
turso (🌍 Community Worlds): e2e outputStreamInsideStepWorkflow - getWritable() called inside step functions

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=outputStreamInsideStepWorkflow 500: at triggerWorkflow (/home/runner/work/workfl
turso (🌍 Community Worlds): e2e fetchWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=fetchWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/packa
turso (🌍 Community Worlds): e2e promiseRaceStressTestWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=promiseRaceStressTestWorkflow 500: at triggerWorkflow (/home/runner/work/workflo
turso (🌍 Community Worlds): e2e retryAttemptCounterWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=retryAttemptCounterWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/
turso (🌍 Community Worlds): e2e retryableAndFatalErrorWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=retryableAndFatalErrorWorkflow 500: at triggerWorkflow (/home/runner/work/workfl
turso (🌍 Community Worlds): e2e crossFileErrorWorkflow - stack traces work across imported modules

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=crossFileErrorWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workf
turso (🌍 Community Worlds): e2e hookCleanupTestWorkflow - hook token reuse after workflow completion

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=hookCleanupTestWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/work
turso (🌍 Community Worlds): e2e stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=stepFunctionPassingWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/
turso (🌍 Community Worlds): e2e stepFunctionWithClosureWorkflow - step function with closure variables passed as argument

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=stepFunctionWithClosureWorkflow 500: at triggerWorkflow (/home/runner/work/workf
turso (🌍 Community Worlds): e2e closureVariableWorkflow - nested step functions with closure variables

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=closureVariableWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/work
turso (🌍 Community Worlds): e2e spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=spawnWorkflowFromStepWorkflow 500: at triggerWorkflow (/home/runner/work/workflo
nuxt (▲ Vercel Production): e2e hookCleanupTestWorkflow - hook token reuse after workflow completion

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected 404 to be 200 // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:681:26
at processTicksAndRejections (node:internal/process/tas

Details by Category

❌ ▲ Vercel Production
AppPassedFailedSkipped
⚠️ astro2501
⚠️ example2501
⚠️ express2501
⚠️ hono2501
⚠️ nextjs-turbopack2501
⚠️ nextjs-webpack2501
⚠️ nitro2501
❌ nuxt2411
⚠️ sveltekit2501
⚠️ vite2501
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack2600
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb2510
✅ redis-dev300
❌ redis2510
✅ starter-dev300
❌ starter1880
✅ turso-dev300
❌ turso2240
⚠️ 📋 Other
AppPassedFailedSkipped
⚠️ e2e-vercel-prod-fastify2501

⚠️Some E2E test jobs failed:

  • Vercel Prod: failure
  • Local Dev: success
  • Local Prod: success
  • Local Postgres: success
  • Windows: success
  • Community Worlds: success

Check the workflow run for details.

@adriandlamGraphite App

adriandlam commented Dec 6, 2025

Copy link
Copy Markdown
ContributorAuthor

Merge activity

  • Dec 6, 12:00 AM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Dec 6, 12:00 AM UTC: @adriandlam merged this pull request with Graphite.

@adriandlam
adriandlam merged commit 205b395 into mainDec 6, 2025
86 of 87 checks passed
@adriandlam
adriandlam deleted the 12-02-refactor-vite-plugin branch December 6, 2025 00:00
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@adriandlam@ijjk
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Auto-enable theater mode on YouTube\n(function() {\n function tryTheater() {\n var btn = document.querySelector('button[aria-label=\"Theater mode\"], ytd-player #player button[title=\"Theater mode\"]');\n if (btn && !btn.classList.contains('activated')) {\n btn.click();\n }\n }\n \n // Try immediately\n tryTheater();\n \n // Try after navigation (SPA)\n var lastUrl = location.href;\n setInterval(function() {\n if (location.href !== lastUrl) {\n lastUrl = location.href;\n setTimeout(tryTheater, 500);\n }\n }, 1000);\n \n // Also try on player load\n var observer = new MutationObserver(tryTheater);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "YouTube Theater Mode Default"); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

refactor: add vite package for hmr - #501

Merged
adriandlam merged 5 commits into
mainfrom
12-02-refactor-vite-plugin
Dec 6, 2025
Merged

refactor: add vite package for hmr#501
adriandlam merged 5 commits into
mainfrom
12-02-refactor-vite-plugin

Conversation

@adriandlam

@adriandlamadriandlam commented Dec 2, 2025

Copy link
Copy Markdown
Contributor

nitro, sveltekit and astro and additional vite integrations will use hotUpdate for hmr in the future. this adds a @workflow/vite package to standardize hmr in workflows

@vercel

vercelBot commented Dec 2, 2025

Copy link
Copy Markdown
Contributor

@vercel
vercelBottemporarily deployed to Preview – workflow-docs December 2, 2025 20:32 Inactive
@changeset-bot

changeset-botBot commented Dec 2, 2025

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: bb88ade

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 8 packages
NameType
@workflow/sveltekitPatch
@workflow/astroPatch
@workflow/nitroPatch
@workflow/vitePatch
workflowPatch
@workflow/nuxtPatch
@workflow/aiPatch
@workflow/world-testingPatch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@adriandlamadriandlam changed the title feat: add vite packagerefactor: add vite packageDec 2, 2025
@adriandlamGraphite App

adriandlam commented Dec 2, 2025

Copy link
Copy Markdown
ContributorAuthor

@github-actions

github-actionsBot commented Dec 2, 2025

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)0.037s (-7.5% 🟢)1.013s (~)0.976s101.00x
🌐 StarterNext.js (Turbopack)0.039s (+2.1%)1.014s (~)0.975s101.05x
🌐 RedisNext.js (Turbopack)0.041s (+2.2%)1.017s (~)0.976s101.10x
💻 LocalNitro0.043s (+1.2%)1.006s (~)0.963s101.16x
💻 LocalExpress0.046s (+1.8%)1.007s (~)0.962s101.23x
🌐 MongoDBNext.js (Turbopack)0.110s (+77.1% 🔺)1.014s (~)0.904s102.96x
🐘 PostgresNext.js (Turbopack)0.300s (+115.1% 🔺)1.027s (+0.9%)0.727s108.08x
🐘 PostgresNitro0.311s (-6.1% 🟢)1.012s (-1.4%)0.701s108.38x
🐘 PostgresExpress0.340s (-13.4% 🟢)1.013s (~)0.673s109.16x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.594s (+15.9% 🔺)1.621s (+9.7% 🔺)1.028s101.00x
▲ VercelExpress0.644s (+30.6% 🔺)1.491s (-0.6%)0.847s101.09x
▲ VercelNext.js (Turbopack)0.654s (+33.3% 🔺)1.624s (+15.7% 🔺)0.969s101.10x

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.089s (-5.7% 🟢)1.008s (~)0.920s101.00x
💻 LocalNext.js (Turbopack)0.094s (-5.6% 🟢)1.009s (~)0.916s101.06x
🌐 RedisNext.js (Turbopack)0.107s (+9.1% 🔺)1.012s (~)0.905s101.20x
💻 LocalNitro0.108s (-3.3%)1.005s (~)0.897s101.22x
💻 LocalExpress0.120s (+6.8% 🔺)1.008s (~)0.887s101.35x
🌐 MongoDBNext.js (Turbopack)0.283s (-2.8%)1.012s (~)0.729s103.18x
🐘 PostgresNext.js (Turbopack)0.743s (-18.7% 🟢)1.015s (~)0.272s108.35x
🐘 PostgresNitro1.190s (+1.6%)2.012s (~)0.823s1013.38x
🐘 PostgresExpress1.193s (+45.5% 🔺)2.013s (+81.3% 🔺)0.820s1013.42x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)1.402s (-18.3% 🟢)2.576s (~)1.174s101.00x
▲ VercelExpress1.450s (-3.0%)2.400s (+1.7%)0.951s101.03x
▲ VercelNitro1.548s (-1.0%)2.581s (+2.6%)1.032s101.10x

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.567s (-4.0%)1.008s (~)0.441s51.00x
💻 LocalNext.js (Turbopack)0.603s (+0.8%)1.009s (~)0.406s51.06x
🌐 RedisNext.js (Turbopack)0.627s (~)1.012s (~)0.384s51.11x
💻 LocalNitro0.776s (~)1.006s (~)0.230s51.37x
💻 LocalExpress0.814s (+4.8%)1.008s (~)0.193s51.44x
🌐 MongoDBNext.js (Turbopack)2.140s (-0.5%)3.012s (~)0.872s53.77x
🐘 PostgresNext.js (Turbopack)5.119s (-3.3%)6.019s (~)0.900s59.03x
🐘 PostgresNitro10.167s (-1.9%)11.025s (+2.0%)0.858s517.93x
🐘 PostgresExpress10.263s (+94.3% 🔺)11.023s (+83.2% 🔺)0.760s518.10x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)10.518s (-2.8%)11.313s (-3.2%)0.794s51.00x
▲ VercelExpress10.922s (+6.8% 🔺)11.782s (+5.4% 🔺)0.861s51.04x
▲ VercelNitro11.843s (+13.6% 🔺)12.441s (+11.5% 🔺)0.598s51.13x

workflow with 10 parallel steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.365s (-1.3%)1.009s (~)0.644s51.00x
💻 LocalNext.js (Turbopack)0.367s (-3.0%)1.009s (~)0.641s51.01x
🌐 RedisNext.js (Turbopack)0.369s (+2.9%)1.010s (~)0.641s51.01x
💻 LocalNitro0.384s (-4.9%)1.005s (~)0.621s51.05x
💻 LocalExpress0.441s (+11.4% 🔺)1.006s (~)0.565s51.21x
🐘 PostgresNext.js (Turbopack)0.938s (+3.5%)1.618s (+59.9% 🔺)0.680s52.57x
🌐 MongoDBNext.js (Turbopack)1.653s (+0.8%)2.011s (~)0.358s54.53x
🐘 PostgresNitro1.665s (+24.8% 🔺)2.013s (~)0.348s54.56x
🐘 PostgresExpress1.668s (+35.2% 🔺)2.013s (~)0.344s54.57x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.604s (-6.9% 🟢)3.466s (-7.9% 🟢)0.862s51.00x
▲ VercelNitro2.678s (-6.6% 🟢)3.586s (-1.8%)0.908s51.03x
▲ VercelNext.js (Turbopack)2.916s (+2.4%)3.819s (+7.3% 🔺)0.903s51.12x

stress test: Promise.all with 100 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.908s (+1.0%)2.047s (+0.8%)0.139s151.00x
🌐 RedisNext.js (Turbopack)3.631s (+8.2% 🔺)4.155s (+7.0% 🔺)0.524s81.90x
🐘 PostgresNext.js (Turbopack)7.888s (-3.1%)8.011s (-6.0% 🟢)0.123s44.13x
🐘 PostgresExpress8.572s (-2.2%)9.070s (~)0.498s44.49x
🐘 PostgresNitro8.687s (+6.4% 🔺)9.193s (+7.6% 🔺)0.506s44.55x
💻 LocalNitro10.669s (~)11.012s (~)0.343s35.59x
💻 LocalExpress11.318s (+12.7% 🔺)11.650s (+13.1% 🔺)0.331s35.93x
💻 LocalNext.js (Turbopack)11.777s (+4.0%)12.331s (+5.9% 🔺)0.554s36.17x
🌐 MongoDBNext.js (Turbopack)20.204s (+1.4%)20.537s (~)0.333s210.59x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro18.788s (+8.9% 🔺)19.378s (+5.8% 🔺)0.589s21.00x
▲ VercelExpress20.083s (+43.5% 🔺)20.809s (+36.6% 🔺)0.726s21.07x
▲ VercelNext.js (Turbopack)20.487s (+15.6% 🔺)20.832s (+12.9% 🔺)0.345s21.09x

stress test: Promise.race with 100 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)2.045s (-3.1%)2.134s (-3.1%)0.089s151.00x
🌐 RedisNext.js (Turbopack)3.857s (+7.3% 🔺)4.103s (+0.8%)0.246s81.89x
💻 LocalNext.js (Turbopack)8.225s (-31.2% 🟢)8.829s (-28.4% 🟢)0.604s44.02x
🐘 PostgresNext.js (Turbopack)8.932s (+3.7%)9.111s (+3.6%)0.180s44.37x
🐘 PostgresNitro9.306s (+1.3%)9.480s (~)0.174s44.55x
🐘 PostgresExpress9.370s (+4.8%)9.740s (+5.9% 🔺)0.370s44.58x
💻 LocalNitro10.419s (-5.8% 🟢)10.994s (-5.7% 🟢)0.575s35.09x
💻 LocalExpress13.024s (+14.0% 🔺)13.385s (+14.9% 🔺)0.360s36.37x
🌐 MongoDBNext.js (Turbopack)19.888s (-1.7%)20.526s (~)0.638s29.73x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express17.909s (+2.2%)18.699s (+2.5%)0.791s21.00x
▲ VercelNext.js (Turbopack)20.789s (+15.1% 🔺)21.436s (+14.9% 🔺)0.647s21.16x
▲ VercelNitro21.073s (+17.1% 🔺)22.449s (+19.7% 🔺)1.377s21.18x

Stream Benchmarks

Stream benchmarks include Time to First Byte (TTFB) metrics.

workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.131s (-3.5%)1.004s (~)1.009s (~)0.878s101.00x
💻 LocalNext.js (Turbopack)0.137s (+1.0%)1.002s (~)1.013s (~)0.876s101.04x
🌐 RedisNext.js (Turbopack)0.143s (-12.8% 🟢)1.002s (~)1.010s (~)0.867s101.10x
💻 LocalNitro0.175s (-2.5%)0.991s (~)1.008s (~)0.833s101.34x
💻 LocalExpress0.188s (+6.6% 🔺)0.991s (~)1.009s (~)0.822s101.43x
🌐 MongoDBNext.js (Turbopack)0.492s (+5.0%)0.952s (-2.6%)1.010s (~)0.519s103.76x
🐘 PostgresNext.js (Turbopack)0.973s (-9.2% 🟢)1.133s (-39.2% 🟢)1.413s (-26.2% 🟢)0.440s107.44x
🐘 PostgresNitro1.583s (+56.6% 🔺)1.907s (+44.8% 🔺)2.211s (+46.5% 🔺)0.628s1012.09x
🐘 PostgresExpress1.916s (+42.9% 🔺)2.126s (+25.5% 🔺)2.414s (+20.0% 🔺)0.497s1014.64x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.366s (-5.5% 🟢)2.471s (-15.6% 🟢)2.880s (-14.4% 🟢)0.514s101.00x
▲ VercelExpress2.382s (-1.3%)2.787s (-3.1%)3.200s (-2.8%)0.818s101.01x
▲ VercelNitro2.689s (+8.1% 🔺)3.077s (+1.9%)3.569s (+4.9%)0.880s101.14x

Summary: Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)6/7
🐘 PostgresNext.js (Turbopack)7/7
▲ VercelNext.js (Turbopack)3/7

Summary: Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local5/7
Next.js (Turbopack)🌐 Starter6/7
Nitro💻 Local5/7
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Starter: Community world (local development)
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

Comment threadpackages/vite/package.json Outdated
Comment on lines +31 to +36
"devDependencies": {
"@types/node": "catalog:",
"@workflow/builders": "workspace:*",
"@workflow/tsconfig": "workspace:*",
"vite": "7.1.12"
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The @workflow/builders package should be in dependencies instead of devDependencies because the exported WorkflowHotUpdatePluginOptions interface references BaseBuilder from it. External consumers will fail to resolve the types without this dependency.

View Details
📝 Patch Details
diff --git a/packages/vite/package.json b/packages/vite/package.json
index fc42483..2c86c5c 100644
--- a/packages/vite/package.json+++ b/packages/vite/package.json@@ -28,9 +28,11 @@
"clean": "tsc --build --clean && rm -rf dist",
"typecheck": "tsc --noEmit"
},
+ "dependencies": {+ "@workflow/builders": "workspace:*"+ },
"devDependencies": {
"@types/node": "catalog:",
- "@workflow/builders": "workspace:*",
"@workflow/tsconfig": "workspace:*",
"vite": "7.1.12"
}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index d21b10a..285fb0c 100644
--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -811,13 +811,14 @@ importers:
version: 3.2.4(@types/debug@4.1.12)(@types/node@22.19.0)(jiti@2.6.1)(lightningcss@1.30.1)(terser@5.44.0)(tsx@4.20.6)(yaml@2.8.1)
packages/vite:
+ dependencies:+ '@workflow/builders':+ specifier: workspace:*+ version: link:../builders
devDependencies:
'@types/node':
specifier: 'catalog:'
version: 22.19.0
- '@workflow/builders':- specifier: workspace:*- version: link:../builders
'@workflow/tsconfig':
specifier: workspace:*
version: link:../tsconfig

Analysis

@workflow/builders should be in dependencies, not devDependencies

What fails: The @workflow/vite package exports WorkflowHotUpdatePluginOptions interface which references BaseBuilder type from @workflow/builders. When external consumers import this exported type, TypeScript cannot resolve the @workflow/builders module because it's only listed in devDependencies.

How to reproduce:

cd packages/vite
# Verify @workflow/builders is in devDependencies (lines 33-36 of package.json)
cat package.json | grep -A 5 devDependencies
# Try to build or typecheck
pnpm build

Result: Compilation fails with:

src/hot-update.ts(2,34): error TS2307: Cannot find module '@workflow/builders' or its corresponding type declarations.

Root cause: The exported interface in packages/vite/src/index.ts includes WorkflowHotUpdatePluginOptions which has a type signature that depends on BaseBuilder from @workflow/builders. This type dependency must be available at runtime through the node_modules resolution for TypeScript to resolve type declarations when consuming the published package. External users installing @workflow/vite from npm will receive the built .d.ts files with these type references, but will fail to resolve them without @workflow/builders as a runtime dependency.

Fix: Moved @workflow/builders from devDependencies to dependencies in packages/vite/package.json to ensure external consumers can resolve the type declarations.

@adriandlam
adriandlam marked this pull request as ready for review December 2, 2025 21:25
ijjk
ijjk approved these changes Dec 5, 2025
@github-actions

github-actionsBot commented Dec 5, 2025

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
❌ ▲ Vercel Production249110260
✅ 🪟 Windows260026
❌ 🌍 Community Worlds82340116
⚠️ 📋 Other250126
Total3823511428

❌ Failed Tests

mongodb (🌍 Community Worlds): e2e webhookWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected 404 to be 202 // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:255:24
at processTicksAndRejections (node:internal/process/tas
redis (🌍 Community Worlds): e2e webhookWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected 404 to be 200 // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:285:25
at processTicksAndRejections (node:internal/process/tas
starter (🌍 Community Worlds): e2e addTenWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected {} to match object { …(5) }
at Proxy.<anonymous> (file:///home/runner/work/workflow/workflow/node_modules/.pnpm/@vitest+expect@3.2.4/node_modules/@vitest/expect/dist/index
starter (🌍 Community Worlds): e2e addTenWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected {} to match object { …(5) }
at Proxy.<anonymous> (file:///home/runner/work/workflow/workflow/node_modules/.pnpm/@vitest+expect@3.2.4/node_modules/@vitest/expect/dist/index
starter (🌍 Community Worlds): e2e retryAttemptCounterWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected {} to match object { …(3) }
at Proxy.<anonymous> (file:///home/runner/work/workflow/workflow/node_modules/.pnpm/@vitest+expect@3.2.4/node_modules/@vitest/expect/dist/index
starter (🌍 Community Worlds): e2e crossFileErrorWorkflow - stack traces work across imported modules

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected undefined to be 'failed' // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:647:30
at processTicksAndRejections (node:internal/
starter (🌍 Community Worlds): e2e hookCleanupTestWorkflow - hook token reuse after workflow completion

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected undefined to be 'completed' // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:725:31
at processTicksAndRejections (node:intern
starter (🌍 Community Worlds): e2e stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected undefined to be 'completed' // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:748:30
at processTicksAndRejections (node:intern
starter (🌍 Community Worlds): e2e stepFunctionWithClosureWorkflow - step function with closure variables passed as argument

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected undefined to be 'completed' // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:784:30
at processTicksAndRejections (node:intern
starter (🌍 Community Worlds): e2e spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected undefined to be 'completed' // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:835:36
at processTicksAndRejections (node:intern
turso (🌍 Community Worlds): e2e addTenWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=addTenWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/pack
turso (🌍 Community Worlds): e2e addTenWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F98_duplicate_case.ts&workflowFn=addTenWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/wo
turso (🌍 Community Worlds): e2e should work with react rendering in step

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F8_react_render.tsx&workflowFn=reactWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workf
turso (🌍 Community Worlds): e2e promiseAllWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=promiseAllWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/
turso (🌍 Community Worlds): e2e promiseRaceWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=promiseRaceWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow
turso (🌍 Community Worlds): e2e promiseAnyWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=promiseAnyWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/
turso (🌍 Community Worlds): e2e readableStreamWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=readableStreamWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workf
turso (🌍 Community Worlds): e2e hookWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=hookWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/packag
turso (🌍 Community Worlds): e2e webhookWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=webhookWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/pac
turso (🌍 Community Worlds): e2e sleepingWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=sleepingWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/pa
turso (🌍 Community Worlds): e2e nullByteWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=nullByteWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/pa
turso (🌍 Community Worlds): e2e workflowAndStepMetadataWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=workflowAndStepMetadataWorkflow 500: at triggerWorkflow (/home/runner/work/workf
turso (🌍 Community Worlds): e2e outputStreamWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=outputStreamWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflo
turso (🌍 Community Worlds): e2e outputStreamInsideStepWorkflow - getWritable() called inside step functions

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=outputStreamInsideStepWorkflow 500: at triggerWorkflow (/home/runner/work/workfl
turso (🌍 Community Worlds): e2e fetchWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=fetchWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/packa
turso (🌍 Community Worlds): e2e promiseRaceStressTestWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=promiseRaceStressTestWorkflow 500: at triggerWorkflow (/home/runner/work/workflo
turso (🌍 Community Worlds): e2e retryAttemptCounterWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=retryAttemptCounterWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/
turso (🌍 Community Worlds): e2e retryableAndFatalErrorWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=retryableAndFatalErrorWorkflow 500: at triggerWorkflow (/home/runner/work/workfl
turso (🌍 Community Worlds): e2e crossFileErrorWorkflow - stack traces work across imported modules

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=crossFileErrorWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workf
turso (🌍 Community Worlds): e2e hookCleanupTestWorkflow - hook token reuse after workflow completion

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=hookCleanupTestWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/work
turso (🌍 Community Worlds): e2e stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=stepFunctionPassingWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/
turso (🌍 Community Worlds): e2e stepFunctionWithClosureWorkflow - step function with closure variables passed as argument

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=stepFunctionWithClosureWorkflow 500: at triggerWorkflow (/home/runner/work/workf
turso (🌍 Community Worlds): e2e closureVariableWorkflow - nested step functions with closure variables

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=closureVariableWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/work
turso (🌍 Community Worlds): e2e spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=spawnWorkflowFromStepWorkflow 500: at triggerWorkflow (/home/runner/work/workflo
nuxt (▲ Vercel Production): e2e hookCleanupTestWorkflow - hook token reuse after workflow completion

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected 404 to be 200 // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:681:26
at processTicksAndRejections (node:internal/process/tas

Details by Category

❌ ▲ Vercel Production
AppPassedFailedSkipped
⚠️ astro2501
⚠️ example2501
⚠️ express2501
⚠️ hono2501
⚠️ nextjs-turbopack2501
⚠️ nextjs-webpack2501
⚠️ nitro2501
❌ nuxt2411
⚠️ sveltekit2501
⚠️ vite2501
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack2600
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb2510
✅ redis-dev300
❌ redis2510
✅ starter-dev300
❌ starter1880
✅ turso-dev300
❌ turso2240
⚠️ 📋 Other
AppPassedFailedSkipped
⚠️ e2e-vercel-prod-fastify2501

⚠️Some E2E test jobs failed:

  • Vercel Prod: failure
  • Local Dev: success
  • Local Prod: success
  • Local Postgres: success
  • Windows: success
  • Community Worlds: success

Check the workflow run for details.

@adriandlamGraphite App

adriandlam commented Dec 6, 2025

Copy link
Copy Markdown
ContributorAuthor

Merge activity

  • Dec 6, 12:00 AM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Dec 6, 12:00 AM UTC: @adriandlam merged this pull request with Graphite.

@adriandlam
adriandlam merged commit 205b395 into mainDec 6, 2025
86 of 87 checks passed
@adriandlam
adriandlam deleted the 12-02-refactor-vite-plugin branch December 6, 2025 00:00
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@adriandlam@ijjk
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Remove or un-stick sticky/fixed headers that block content\n(function() {\n function unstick() {\n document.querySelectorAll('header, nav, [role=\"banner\"], .header, .navbar, .sticky, .fixed-top, [style*=\"position: fixed\"], [style*=\"position:sticky\"]').forEach(function(el) {\n if (el.style.position === 'fixed' || el.style.position === 'sticky' || \n getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') {\n el.style.position = 'static';\n el.style.top = 'auto';\n el.style.zIndex = 'auto';\n }\n });\n }\n \n unstick();\n \n var observer = new MutationObserver(unstick);\n observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] });\n})();", "Kill Sticky Headers"); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

refactor: add vite package for hmr - #501

Merged
adriandlam merged 5 commits into
mainfrom
12-02-refactor-vite-plugin
Dec 6, 2025
Merged

refactor: add vite package for hmr#501
adriandlam merged 5 commits into
mainfrom
12-02-refactor-vite-plugin

Conversation

@adriandlam

@adriandlamadriandlam commented Dec 2, 2025

Copy link
Copy Markdown
Contributor

nitro, sveltekit and astro and additional vite integrations will use hotUpdate for hmr in the future. this adds a @workflow/vite package to standardize hmr in workflows

@vercel

vercelBot commented Dec 2, 2025

Copy link
Copy Markdown
Contributor

@vercel
vercelBottemporarily deployed to Preview – workflow-docs December 2, 2025 20:32 Inactive
@changeset-bot

changeset-botBot commented Dec 2, 2025

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: bb88ade

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 8 packages
NameType
@workflow/sveltekitPatch
@workflow/astroPatch
@workflow/nitroPatch
@workflow/vitePatch
workflowPatch
@workflow/nuxtPatch
@workflow/aiPatch
@workflow/world-testingPatch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@adriandlamadriandlam changed the title feat: add vite packagerefactor: add vite packageDec 2, 2025
@adriandlamGraphite App

adriandlam commented Dec 2, 2025

Copy link
Copy Markdown
ContributorAuthor

@github-actions

github-actionsBot commented Dec 2, 2025

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)0.037s (-7.5% 🟢)1.013s (~)0.976s101.00x
🌐 StarterNext.js (Turbopack)0.039s (+2.1%)1.014s (~)0.975s101.05x
🌐 RedisNext.js (Turbopack)0.041s (+2.2%)1.017s (~)0.976s101.10x
💻 LocalNitro0.043s (+1.2%)1.006s (~)0.963s101.16x
💻 LocalExpress0.046s (+1.8%)1.007s (~)0.962s101.23x
🌐 MongoDBNext.js (Turbopack)0.110s (+77.1% 🔺)1.014s (~)0.904s102.96x
🐘 PostgresNext.js (Turbopack)0.300s (+115.1% 🔺)1.027s (+0.9%)0.727s108.08x
🐘 PostgresNitro0.311s (-6.1% 🟢)1.012s (-1.4%)0.701s108.38x
🐘 PostgresExpress0.340s (-13.4% 🟢)1.013s (~)0.673s109.16x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.594s (+15.9% 🔺)1.621s (+9.7% 🔺)1.028s101.00x
▲ VercelExpress0.644s (+30.6% 🔺)1.491s (-0.6%)0.847s101.09x
▲ VercelNext.js (Turbopack)0.654s (+33.3% 🔺)1.624s (+15.7% 🔺)0.969s101.10x

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.089s (-5.7% 🟢)1.008s (~)0.920s101.00x
💻 LocalNext.js (Turbopack)0.094s (-5.6% 🟢)1.009s (~)0.916s101.06x
🌐 RedisNext.js (Turbopack)0.107s (+9.1% 🔺)1.012s (~)0.905s101.20x
💻 LocalNitro0.108s (-3.3%)1.005s (~)0.897s101.22x
💻 LocalExpress0.120s (+6.8% 🔺)1.008s (~)0.887s101.35x
🌐 MongoDBNext.js (Turbopack)0.283s (-2.8%)1.012s (~)0.729s103.18x
🐘 PostgresNext.js (Turbopack)0.743s (-18.7% 🟢)1.015s (~)0.272s108.35x
🐘 PostgresNitro1.190s (+1.6%)2.012s (~)0.823s1013.38x
🐘 PostgresExpress1.193s (+45.5% 🔺)2.013s (+81.3% 🔺)0.820s1013.42x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)1.402s (-18.3% 🟢)2.576s (~)1.174s101.00x
▲ VercelExpress1.450s (-3.0%)2.400s (+1.7%)0.951s101.03x
▲ VercelNitro1.548s (-1.0%)2.581s (+2.6%)1.032s101.10x

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.567s (-4.0%)1.008s (~)0.441s51.00x
💻 LocalNext.js (Turbopack)0.603s (+0.8%)1.009s (~)0.406s51.06x
🌐 RedisNext.js (Turbopack)0.627s (~)1.012s (~)0.384s51.11x
💻 LocalNitro0.776s (~)1.006s (~)0.230s51.37x
💻 LocalExpress0.814s (+4.8%)1.008s (~)0.193s51.44x
🌐 MongoDBNext.js (Turbopack)2.140s (-0.5%)3.012s (~)0.872s53.77x
🐘 PostgresNext.js (Turbopack)5.119s (-3.3%)6.019s (~)0.900s59.03x
🐘 PostgresNitro10.167s (-1.9%)11.025s (+2.0%)0.858s517.93x
🐘 PostgresExpress10.263s (+94.3% 🔺)11.023s (+83.2% 🔺)0.760s518.10x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)10.518s (-2.8%)11.313s (-3.2%)0.794s51.00x
▲ VercelExpress10.922s (+6.8% 🔺)11.782s (+5.4% 🔺)0.861s51.04x
▲ VercelNitro11.843s (+13.6% 🔺)12.441s (+11.5% 🔺)0.598s51.13x

workflow with 10 parallel steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.365s (-1.3%)1.009s (~)0.644s51.00x
💻 LocalNext.js (Turbopack)0.367s (-3.0%)1.009s (~)0.641s51.01x
🌐 RedisNext.js (Turbopack)0.369s (+2.9%)1.010s (~)0.641s51.01x
💻 LocalNitro0.384s (-4.9%)1.005s (~)0.621s51.05x
💻 LocalExpress0.441s (+11.4% 🔺)1.006s (~)0.565s51.21x
🐘 PostgresNext.js (Turbopack)0.938s (+3.5%)1.618s (+59.9% 🔺)0.680s52.57x
🌐 MongoDBNext.js (Turbopack)1.653s (+0.8%)2.011s (~)0.358s54.53x
🐘 PostgresNitro1.665s (+24.8% 🔺)2.013s (~)0.348s54.56x
🐘 PostgresExpress1.668s (+35.2% 🔺)2.013s (~)0.344s54.57x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.604s (-6.9% 🟢)3.466s (-7.9% 🟢)0.862s51.00x
▲ VercelNitro2.678s (-6.6% 🟢)3.586s (-1.8%)0.908s51.03x
▲ VercelNext.js (Turbopack)2.916s (+2.4%)3.819s (+7.3% 🔺)0.903s51.12x

stress test: Promise.all with 100 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.908s (+1.0%)2.047s (+0.8%)0.139s151.00x
🌐 RedisNext.js (Turbopack)3.631s (+8.2% 🔺)4.155s (+7.0% 🔺)0.524s81.90x
🐘 PostgresNext.js (Turbopack)7.888s (-3.1%)8.011s (-6.0% 🟢)0.123s44.13x
🐘 PostgresExpress8.572s (-2.2%)9.070s (~)0.498s44.49x
🐘 PostgresNitro8.687s (+6.4% 🔺)9.193s (+7.6% 🔺)0.506s44.55x
💻 LocalNitro10.669s (~)11.012s (~)0.343s35.59x
💻 LocalExpress11.318s (+12.7% 🔺)11.650s (+13.1% 🔺)0.331s35.93x
💻 LocalNext.js (Turbopack)11.777s (+4.0%)12.331s (+5.9% 🔺)0.554s36.17x
🌐 MongoDBNext.js (Turbopack)20.204s (+1.4%)20.537s (~)0.333s210.59x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro18.788s (+8.9% 🔺)19.378s (+5.8% 🔺)0.589s21.00x
▲ VercelExpress20.083s (+43.5% 🔺)20.809s (+36.6% 🔺)0.726s21.07x
▲ VercelNext.js (Turbopack)20.487s (+15.6% 🔺)20.832s (+12.9% 🔺)0.345s21.09x

stress test: Promise.race with 100 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)2.045s (-3.1%)2.134s (-3.1%)0.089s151.00x
🌐 RedisNext.js (Turbopack)3.857s (+7.3% 🔺)4.103s (+0.8%)0.246s81.89x
💻 LocalNext.js (Turbopack)8.225s (-31.2% 🟢)8.829s (-28.4% 🟢)0.604s44.02x
🐘 PostgresNext.js (Turbopack)8.932s (+3.7%)9.111s (+3.6%)0.180s44.37x
🐘 PostgresNitro9.306s (+1.3%)9.480s (~)0.174s44.55x
🐘 PostgresExpress9.370s (+4.8%)9.740s (+5.9% 🔺)0.370s44.58x
💻 LocalNitro10.419s (-5.8% 🟢)10.994s (-5.7% 🟢)0.575s35.09x
💻 LocalExpress13.024s (+14.0% 🔺)13.385s (+14.9% 🔺)0.360s36.37x
🌐 MongoDBNext.js (Turbopack)19.888s (-1.7%)20.526s (~)0.638s29.73x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express17.909s (+2.2%)18.699s (+2.5%)0.791s21.00x
▲ VercelNext.js (Turbopack)20.789s (+15.1% 🔺)21.436s (+14.9% 🔺)0.647s21.16x
▲ VercelNitro21.073s (+17.1% 🔺)22.449s (+19.7% 🔺)1.377s21.18x

Stream Benchmarks

Stream benchmarks include Time to First Byte (TTFB) metrics.

workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.131s (-3.5%)1.004s (~)1.009s (~)0.878s101.00x
💻 LocalNext.js (Turbopack)0.137s (+1.0%)1.002s (~)1.013s (~)0.876s101.04x
🌐 RedisNext.js (Turbopack)0.143s (-12.8% 🟢)1.002s (~)1.010s (~)0.867s101.10x
💻 LocalNitro0.175s (-2.5%)0.991s (~)1.008s (~)0.833s101.34x
💻 LocalExpress0.188s (+6.6% 🔺)0.991s (~)1.009s (~)0.822s101.43x
🌐 MongoDBNext.js (Turbopack)0.492s (+5.0%)0.952s (-2.6%)1.010s (~)0.519s103.76x
🐘 PostgresNext.js (Turbopack)0.973s (-9.2% 🟢)1.133s (-39.2% 🟢)1.413s (-26.2% 🟢)0.440s107.44x
🐘 PostgresNitro1.583s (+56.6% 🔺)1.907s (+44.8% 🔺)2.211s (+46.5% 🔺)0.628s1012.09x
🐘 PostgresExpress1.916s (+42.9% 🔺)2.126s (+25.5% 🔺)2.414s (+20.0% 🔺)0.497s1014.64x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.366s (-5.5% 🟢)2.471s (-15.6% 🟢)2.880s (-14.4% 🟢)0.514s101.00x
▲ VercelExpress2.382s (-1.3%)2.787s (-3.1%)3.200s (-2.8%)0.818s101.01x
▲ VercelNitro2.689s (+8.1% 🔺)3.077s (+1.9%)3.569s (+4.9%)0.880s101.14x

Summary: Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)6/7
🐘 PostgresNext.js (Turbopack)7/7
▲ VercelNext.js (Turbopack)3/7

Summary: Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local5/7
Next.js (Turbopack)🌐 Starter6/7
Nitro💻 Local5/7
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Starter: Community world (local development)
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

Comment threadpackages/vite/package.json Outdated
Comment on lines +31 to +36
"devDependencies": {
"@types/node": "catalog:",
"@workflow/builders": "workspace:*",
"@workflow/tsconfig": "workspace:*",
"vite": "7.1.12"
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The @workflow/builders package should be in dependencies instead of devDependencies because the exported WorkflowHotUpdatePluginOptions interface references BaseBuilder from it. External consumers will fail to resolve the types without this dependency.

View Details
📝 Patch Details
diff --git a/packages/vite/package.json b/packages/vite/package.json
index fc42483..2c86c5c 100644
--- a/packages/vite/package.json+++ b/packages/vite/package.json@@ -28,9 +28,11 @@
"clean": "tsc --build --clean && rm -rf dist",
"typecheck": "tsc --noEmit"
},
+ "dependencies": {+ "@workflow/builders": "workspace:*"+ },
"devDependencies": {
"@types/node": "catalog:",
- "@workflow/builders": "workspace:*",
"@workflow/tsconfig": "workspace:*",
"vite": "7.1.12"
}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index d21b10a..285fb0c 100644
--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -811,13 +811,14 @@ importers:
version: 3.2.4(@types/debug@4.1.12)(@types/node@22.19.0)(jiti@2.6.1)(lightningcss@1.30.1)(terser@5.44.0)(tsx@4.20.6)(yaml@2.8.1)
packages/vite:
+ dependencies:+ '@workflow/builders':+ specifier: workspace:*+ version: link:../builders
devDependencies:
'@types/node':
specifier: 'catalog:'
version: 22.19.0
- '@workflow/builders':- specifier: workspace:*- version: link:../builders
'@workflow/tsconfig':
specifier: workspace:*
version: link:../tsconfig

Analysis

@workflow/builders should be in dependencies, not devDependencies

What fails: The @workflow/vite package exports WorkflowHotUpdatePluginOptions interface which references BaseBuilder type from @workflow/builders. When external consumers import this exported type, TypeScript cannot resolve the @workflow/builders module because it's only listed in devDependencies.

How to reproduce:

cd packages/vite
# Verify @workflow/builders is in devDependencies (lines 33-36 of package.json)
cat package.json | grep -A 5 devDependencies
# Try to build or typecheck
pnpm build

Result: Compilation fails with:

src/hot-update.ts(2,34): error TS2307: Cannot find module '@workflow/builders' or its corresponding type declarations.

Root cause: The exported interface in packages/vite/src/index.ts includes WorkflowHotUpdatePluginOptions which has a type signature that depends on BaseBuilder from @workflow/builders. This type dependency must be available at runtime through the node_modules resolution for TypeScript to resolve type declarations when consuming the published package. External users installing @workflow/vite from npm will receive the built .d.ts files with these type references, but will fail to resolve them without @workflow/builders as a runtime dependency.

Fix: Moved @workflow/builders from devDependencies to dependencies in packages/vite/package.json to ensure external consumers can resolve the type declarations.

@adriandlam
adriandlam marked this pull request as ready for review December 2, 2025 21:25
ijjk
ijjk approved these changes Dec 5, 2025
@github-actions

github-actionsBot commented Dec 5, 2025

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
❌ ▲ Vercel Production249110260
✅ 🪟 Windows260026
❌ 🌍 Community Worlds82340116
⚠️ 📋 Other250126
Total3823511428

❌ Failed Tests

mongodb (🌍 Community Worlds): e2e webhookWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected 404 to be 202 // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:255:24
at processTicksAndRejections (node:internal/process/tas
redis (🌍 Community Worlds): e2e webhookWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected 404 to be 200 // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:285:25
at processTicksAndRejections (node:internal/process/tas
starter (🌍 Community Worlds): e2e addTenWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected {} to match object { …(5) }
at Proxy.<anonymous> (file:///home/runner/work/workflow/workflow/node_modules/.pnpm/@vitest+expect@3.2.4/node_modules/@vitest/expect/dist/index
starter (🌍 Community Worlds): e2e addTenWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected {} to match object { …(5) }
at Proxy.<anonymous> (file:///home/runner/work/workflow/workflow/node_modules/.pnpm/@vitest+expect@3.2.4/node_modules/@vitest/expect/dist/index
starter (🌍 Community Worlds): e2e retryAttemptCounterWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected {} to match object { …(3) }
at Proxy.<anonymous> (file:///home/runner/work/workflow/workflow/node_modules/.pnpm/@vitest+expect@3.2.4/node_modules/@vitest/expect/dist/index
starter (🌍 Community Worlds): e2e crossFileErrorWorkflow - stack traces work across imported modules

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected undefined to be 'failed' // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:647:30
at processTicksAndRejections (node:internal/
starter (🌍 Community Worlds): e2e hookCleanupTestWorkflow - hook token reuse after workflow completion

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected undefined to be 'completed' // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:725:31
at processTicksAndRejections (node:intern
starter (🌍 Community Worlds): e2e stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected undefined to be 'completed' // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:748:30
at processTicksAndRejections (node:intern
starter (🌍 Community Worlds): e2e stepFunctionWithClosureWorkflow - step function with closure variables passed as argument

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected undefined to be 'completed' // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:784:30
at processTicksAndRejections (node:intern
starter (🌍 Community Worlds): e2e spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected undefined to be 'completed' // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:835:36
at processTicksAndRejections (node:intern
turso (🌍 Community Worlds): e2e addTenWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=addTenWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/pack
turso (🌍 Community Worlds): e2e addTenWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F98_duplicate_case.ts&workflowFn=addTenWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/wo
turso (🌍 Community Worlds): e2e should work with react rendering in step

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F8_react_render.tsx&workflowFn=reactWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workf
turso (🌍 Community Worlds): e2e promiseAllWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=promiseAllWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/
turso (🌍 Community Worlds): e2e promiseRaceWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=promiseRaceWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow
turso (🌍 Community Worlds): e2e promiseAnyWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=promiseAnyWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/
turso (🌍 Community Worlds): e2e readableStreamWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=readableStreamWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workf
turso (🌍 Community Worlds): e2e hookWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=hookWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/packag
turso (🌍 Community Worlds): e2e webhookWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=webhookWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/pac
turso (🌍 Community Worlds): e2e sleepingWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=sleepingWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/pa
turso (🌍 Community Worlds): e2e nullByteWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=nullByteWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/pa
turso (🌍 Community Worlds): e2e workflowAndStepMetadataWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=workflowAndStepMetadataWorkflow 500: at triggerWorkflow (/home/runner/work/workf
turso (🌍 Community Worlds): e2e outputStreamWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=outputStreamWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflo
turso (🌍 Community Worlds): e2e outputStreamInsideStepWorkflow - getWritable() called inside step functions

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=outputStreamInsideStepWorkflow 500: at triggerWorkflow (/home/runner/work/workfl
turso (🌍 Community Worlds): e2e fetchWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=fetchWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/packa
turso (🌍 Community Worlds): e2e promiseRaceStressTestWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=promiseRaceStressTestWorkflow 500: at triggerWorkflow (/home/runner/work/workflo
turso (🌍 Community Worlds): e2e retryAttemptCounterWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=retryAttemptCounterWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/
turso (🌍 Community Worlds): e2e retryableAndFatalErrorWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=retryableAndFatalErrorWorkflow 500: at triggerWorkflow (/home/runner/work/workfl
turso (🌍 Community Worlds): e2e crossFileErrorWorkflow - stack traces work across imported modules

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=crossFileErrorWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workf
turso (🌍 Community Worlds): e2e hookCleanupTestWorkflow - hook token reuse after workflow completion

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=hookCleanupTestWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/work
turso (🌍 Community Worlds): e2e stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=stepFunctionPassingWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/
turso (🌍 Community Worlds): e2e stepFunctionWithClosureWorkflow - step function with closure variables passed as argument

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=stepFunctionWithClosureWorkflow 500: at triggerWorkflow (/home/runner/work/workf
turso (🌍 Community Worlds): e2e closureVariableWorkflow - nested step functions with closure variables

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=closureVariableWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/work
turso (🌍 Community Worlds): e2e spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=spawnWorkflowFromStepWorkflow 500: at triggerWorkflow (/home/runner/work/workflo
nuxt (▲ Vercel Production): e2e hookCleanupTestWorkflow - hook token reuse after workflow completion

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected 404 to be 200 // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:681:26
at processTicksAndRejections (node:internal/process/tas

Details by Category

❌ ▲ Vercel Production
AppPassedFailedSkipped
⚠️ astro2501
⚠️ example2501
⚠️ express2501
⚠️ hono2501
⚠️ nextjs-turbopack2501
⚠️ nextjs-webpack2501
⚠️ nitro2501
❌ nuxt2411
⚠️ sveltekit2501
⚠️ vite2501
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack2600
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb2510
✅ redis-dev300
❌ redis2510
✅ starter-dev300
❌ starter1880
✅ turso-dev300
❌ turso2240
⚠️ 📋 Other
AppPassedFailedSkipped
⚠️ e2e-vercel-prod-fastify2501

⚠️Some E2E test jobs failed:

  • Vercel Prod: failure
  • Local Dev: success
  • Local Prod: success
  • Local Postgres: success
  • Windows: success
  • Community Worlds: success

Check the workflow run for details.

@adriandlamGraphite App

adriandlam commented Dec 6, 2025

Copy link
Copy Markdown
ContributorAuthor

Merge activity

  • Dec 6, 12:00 AM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Dec 6, 12:00 AM UTC: @adriandlam merged this pull request with Graphite.

@adriandlam
adriandlam merged commit 205b395 into mainDec 6, 2025
86 of 87 checks passed
@adriandlam
adriandlam deleted the 12-02-refactor-vite-plugin branch December 6, 2025 00:00
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@adriandlam@ijjk
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Universal Dark Mode - works on any site\n(function() {\n var enabled = true;\n \n function applyDarkMode() {\n if (!enabled) return;\n \n // Create style element if it doesn't exist\n var style = document.getElementById('universal-dark-mode-style');\n if (!style) {\n style = document.createElement('style');\n style.id = 'universal-dark-mode-style';\n document.head.appendChild(style);\n }\n \n // Dark mode CSS - inverts colors but preserves images/video\n style.textContent = '\n /* Invert everything except media */\n html {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #1a1a2e !important;\n }\n \n /* Restore images, videos, iframes, canvas */\n img, video, iframe, canvas, svg, picture, [style*=\"background-image\"] {\n filter: invert(1) hue-rotate(180deg) !important;\n }\n \n /* Preserve specific elements that should not be inverted */\n .no-dark-mode, .no-dark-mode *,\n [data-theme=\"light\"], [data-theme=\"light\"],\n .ace_editor, .ace_editor *,\n .CodeMirror, .CodeMirror *,\n .monaco-editor, .monaco-editor *,\n .markdown-body pre, .markdown-body pre *,\n .highlight, .highlight *,\n pre code, pre code * {\n filter: none !important;\n }\n \n /* Fix common UI elements */\n .modal, .popup, .dropdown-menu, .tooltip, .popover {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #2d2d44 !important;\n border-color: #444 !important;\n }\n \n /* Scrollbars */\n ::-webkit-scrollbar { background: #1a1a2e !important; }\n ::-webkit-scrollbar-thumb { background: #444 !important; }\n ::-webkit-scrollbar-thumb:hover { background: #555 !important; }\n \n /* Selection */\n ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ';\n }\n \n function removeDarkMode() {\n var style = document.getElementById('universal-dark-mode-style');\n if (style) style.remove();\n }\n \n // Toggle with Alt+Shift+D\n document.addEventListener('keydown', function(e) {\n if (e.altKey && e.shiftKey && e.key === 'D') {\n e.preventDefault();\n enabled = !enabled;\n if (enabled) {\n applyDarkMode();\n console.log('[Universal Dark Mode] Enabled');\n } else {\n removeDarkMode();\n console.log('[Universal Dark Mode] Disabled');\n }\n }\n });\n \n // Apply on load\n applyDarkMode();\n \n // Re-apply on dynamic content\n var observer = new MutationObserver(function(mutations) {\n if (enabled && !document.getElementById('universal-dark-mode-style')) {\n applyDarkMode();\n }\n });\n observer.observe(document.head, { childList: true });\n \n console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle');\n})();", "Universal Dark Mode"); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })();
Skip to content

refactor: add vite package for hmr - #501

Merged
adriandlam merged 5 commits into
mainfrom
12-02-refactor-vite-plugin
Dec 6, 2025
Merged

refactor: add vite package for hmr#501
adriandlam merged 5 commits into
mainfrom
12-02-refactor-vite-plugin

Conversation

@adriandlam

@adriandlamadriandlam commented Dec 2, 2025

Copy link
Copy Markdown
Contributor

nitro, sveltekit and astro and additional vite integrations will use hotUpdate for hmr in the future. this adds a @workflow/vite package to standardize hmr in workflows

@vercel

vercelBot commented Dec 2, 2025

Copy link
Copy Markdown
Contributor

@vercel
vercelBottemporarily deployed to Preview – workflow-docs December 2, 2025 20:32 Inactive
@changeset-bot

changeset-botBot commented Dec 2, 2025

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: bb88ade

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 8 packages
NameType
@workflow/sveltekitPatch
@workflow/astroPatch
@workflow/nitroPatch
@workflow/vitePatch
workflowPatch
@workflow/nuxtPatch
@workflow/aiPatch
@workflow/world-testingPatch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@adriandlamadriandlam changed the title feat: add vite packagerefactor: add vite packageDec 2, 2025
@adriandlamGraphite App

adriandlam commented Dec 2, 2025

Copy link
Copy Markdown
ContributorAuthor

@github-actions

github-actionsBot commented Dec 2, 2025

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)0.037s (-7.5% 🟢)1.013s (~)0.976s101.00x
🌐 StarterNext.js (Turbopack)0.039s (+2.1%)1.014s (~)0.975s101.05x
🌐 RedisNext.js (Turbopack)0.041s (+2.2%)1.017s (~)0.976s101.10x
💻 LocalNitro0.043s (+1.2%)1.006s (~)0.963s101.16x
💻 LocalExpress0.046s (+1.8%)1.007s (~)0.962s101.23x
🌐 MongoDBNext.js (Turbopack)0.110s (+77.1% 🔺)1.014s (~)0.904s102.96x
🐘 PostgresNext.js (Turbopack)0.300s (+115.1% 🔺)1.027s (+0.9%)0.727s108.08x
🐘 PostgresNitro0.311s (-6.1% 🟢)1.012s (-1.4%)0.701s108.38x
🐘 PostgresExpress0.340s (-13.4% 🟢)1.013s (~)0.673s109.16x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.594s (+15.9% 🔺)1.621s (+9.7% 🔺)1.028s101.00x
▲ VercelExpress0.644s (+30.6% 🔺)1.491s (-0.6%)0.847s101.09x
▲ VercelNext.js (Turbopack)0.654s (+33.3% 🔺)1.624s (+15.7% 🔺)0.969s101.10x

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.089s (-5.7% 🟢)1.008s (~)0.920s101.00x
💻 LocalNext.js (Turbopack)0.094s (-5.6% 🟢)1.009s (~)0.916s101.06x
🌐 RedisNext.js (Turbopack)0.107s (+9.1% 🔺)1.012s (~)0.905s101.20x
💻 LocalNitro0.108s (-3.3%)1.005s (~)0.897s101.22x
💻 LocalExpress0.120s (+6.8% 🔺)1.008s (~)0.887s101.35x
🌐 MongoDBNext.js (Turbopack)0.283s (-2.8%)1.012s (~)0.729s103.18x
🐘 PostgresNext.js (Turbopack)0.743s (-18.7% 🟢)1.015s (~)0.272s108.35x
🐘 PostgresNitro1.190s (+1.6%)2.012s (~)0.823s1013.38x
🐘 PostgresExpress1.193s (+45.5% 🔺)2.013s (+81.3% 🔺)0.820s1013.42x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)1.402s (-18.3% 🟢)2.576s (~)1.174s101.00x
▲ VercelExpress1.450s (-3.0%)2.400s (+1.7%)0.951s101.03x
▲ VercelNitro1.548s (-1.0%)2.581s (+2.6%)1.032s101.10x

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.567s (-4.0%)1.008s (~)0.441s51.00x
💻 LocalNext.js (Turbopack)0.603s (+0.8%)1.009s (~)0.406s51.06x
🌐 RedisNext.js (Turbopack)0.627s (~)1.012s (~)0.384s51.11x
💻 LocalNitro0.776s (~)1.006s (~)0.230s51.37x
💻 LocalExpress0.814s (+4.8%)1.008s (~)0.193s51.44x
🌐 MongoDBNext.js (Turbopack)2.140s (-0.5%)3.012s (~)0.872s53.77x
🐘 PostgresNext.js (Turbopack)5.119s (-3.3%)6.019s (~)0.900s59.03x
🐘 PostgresNitro10.167s (-1.9%)11.025s (+2.0%)0.858s517.93x
🐘 PostgresExpress10.263s (+94.3% 🔺)11.023s (+83.2% 🔺)0.760s518.10x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)10.518s (-2.8%)11.313s (-3.2%)0.794s51.00x
▲ VercelExpress10.922s (+6.8% 🔺)11.782s (+5.4% 🔺)0.861s51.04x
▲ VercelNitro11.843s (+13.6% 🔺)12.441s (+11.5% 🔺)0.598s51.13x

workflow with 10 parallel steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.365s (-1.3%)1.009s (~)0.644s51.00x
💻 LocalNext.js (Turbopack)0.367s (-3.0%)1.009s (~)0.641s51.01x
🌐 RedisNext.js (Turbopack)0.369s (+2.9%)1.010s (~)0.641s51.01x
💻 LocalNitro0.384s (-4.9%)1.005s (~)0.621s51.05x
💻 LocalExpress0.441s (+11.4% 🔺)1.006s (~)0.565s51.21x
🐘 PostgresNext.js (Turbopack)0.938s (+3.5%)1.618s (+59.9% 🔺)0.680s52.57x
🌐 MongoDBNext.js (Turbopack)1.653s (+0.8%)2.011s (~)0.358s54.53x
🐘 PostgresNitro1.665s (+24.8% 🔺)2.013s (~)0.348s54.56x
🐘 PostgresExpress1.668s (+35.2% 🔺)2.013s (~)0.344s54.57x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.604s (-6.9% 🟢)3.466s (-7.9% 🟢)0.862s51.00x
▲ VercelNitro2.678s (-6.6% 🟢)3.586s (-1.8%)0.908s51.03x
▲ VercelNext.js (Turbopack)2.916s (+2.4%)3.819s (+7.3% 🔺)0.903s51.12x

stress test: Promise.all with 100 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.908s (+1.0%)2.047s (+0.8%)0.139s151.00x
🌐 RedisNext.js (Turbopack)3.631s (+8.2% 🔺)4.155s (+7.0% 🔺)0.524s81.90x
🐘 PostgresNext.js (Turbopack)7.888s (-3.1%)8.011s (-6.0% 🟢)0.123s44.13x
🐘 PostgresExpress8.572s (-2.2%)9.070s (~)0.498s44.49x
🐘 PostgresNitro8.687s (+6.4% 🔺)9.193s (+7.6% 🔺)0.506s44.55x
💻 LocalNitro10.669s (~)11.012s (~)0.343s35.59x
💻 LocalExpress11.318s (+12.7% 🔺)11.650s (+13.1% 🔺)0.331s35.93x
💻 LocalNext.js (Turbopack)11.777s (+4.0%)12.331s (+5.9% 🔺)0.554s36.17x
🌐 MongoDBNext.js (Turbopack)20.204s (+1.4%)20.537s (~)0.333s210.59x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro18.788s (+8.9% 🔺)19.378s (+5.8% 🔺)0.589s21.00x
▲ VercelExpress20.083s (+43.5% 🔺)20.809s (+36.6% 🔺)0.726s21.07x
▲ VercelNext.js (Turbopack)20.487s (+15.6% 🔺)20.832s (+12.9% 🔺)0.345s21.09x

stress test: Promise.race with 100 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)2.045s (-3.1%)2.134s (-3.1%)0.089s151.00x
🌐 RedisNext.js (Turbopack)3.857s (+7.3% 🔺)4.103s (+0.8%)0.246s81.89x
💻 LocalNext.js (Turbopack)8.225s (-31.2% 🟢)8.829s (-28.4% 🟢)0.604s44.02x
🐘 PostgresNext.js (Turbopack)8.932s (+3.7%)9.111s (+3.6%)0.180s44.37x
🐘 PostgresNitro9.306s (+1.3%)9.480s (~)0.174s44.55x
🐘 PostgresExpress9.370s (+4.8%)9.740s (+5.9% 🔺)0.370s44.58x
💻 LocalNitro10.419s (-5.8% 🟢)10.994s (-5.7% 🟢)0.575s35.09x
💻 LocalExpress13.024s (+14.0% 🔺)13.385s (+14.9% 🔺)0.360s36.37x
🌐 MongoDBNext.js (Turbopack)19.888s (-1.7%)20.526s (~)0.638s29.73x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express17.909s (+2.2%)18.699s (+2.5%)0.791s21.00x
▲ VercelNext.js (Turbopack)20.789s (+15.1% 🔺)21.436s (+14.9% 🔺)0.647s21.16x
▲ VercelNitro21.073s (+17.1% 🔺)22.449s (+19.7% 🔺)1.377s21.18x

Stream Benchmarks

Stream benchmarks include Time to First Byte (TTFB) metrics.

workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.131s (-3.5%)1.004s (~)1.009s (~)0.878s101.00x
💻 LocalNext.js (Turbopack)0.137s (+1.0%)1.002s (~)1.013s (~)0.876s101.04x
🌐 RedisNext.js (Turbopack)0.143s (-12.8% 🟢)1.002s (~)1.010s (~)0.867s101.10x
💻 LocalNitro0.175s (-2.5%)0.991s (~)1.008s (~)0.833s101.34x
💻 LocalExpress0.188s (+6.6% 🔺)0.991s (~)1.009s (~)0.822s101.43x
🌐 MongoDBNext.js (Turbopack)0.492s (+5.0%)0.952s (-2.6%)1.010s (~)0.519s103.76x
🐘 PostgresNext.js (Turbopack)0.973s (-9.2% 🟢)1.133s (-39.2% 🟢)1.413s (-26.2% 🟢)0.440s107.44x
🐘 PostgresNitro1.583s (+56.6% 🔺)1.907s (+44.8% 🔺)2.211s (+46.5% 🔺)0.628s1012.09x
🐘 PostgresExpress1.916s (+42.9% 🔺)2.126s (+25.5% 🔺)2.414s (+20.0% 🔺)0.497s1014.64x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.366s (-5.5% 🟢)2.471s (-15.6% 🟢)2.880s (-14.4% 🟢)0.514s101.00x
▲ VercelExpress2.382s (-1.3%)2.787s (-3.1%)3.200s (-2.8%)0.818s101.01x
▲ VercelNitro2.689s (+8.1% 🔺)3.077s (+1.9%)3.569s (+4.9%)0.880s101.14x

Summary: Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)6/7
🐘 PostgresNext.js (Turbopack)7/7
▲ VercelNext.js (Turbopack)3/7

Summary: Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local5/7
Next.js (Turbopack)🌐 Starter6/7
Nitro💻 Local5/7
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Starter: Community world (local development)
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

Comment threadpackages/vite/package.json Outdated
Comment on lines +31 to +36
"devDependencies": {
"@types/node": "catalog:",
"@workflow/builders": "workspace:*",
"@workflow/tsconfig": "workspace:*",
"vite": "7.1.12"
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The @workflow/builders package should be in dependencies instead of devDependencies because the exported WorkflowHotUpdatePluginOptions interface references BaseBuilder from it. External consumers will fail to resolve the types without this dependency.

View Details
📝 Patch Details
diff --git a/packages/vite/package.json b/packages/vite/package.json
index fc42483..2c86c5c 100644
--- a/packages/vite/package.json+++ b/packages/vite/package.json@@ -28,9 +28,11 @@
"clean": "tsc --build --clean && rm -rf dist",
"typecheck": "tsc --noEmit"
},
+ "dependencies": {+ "@workflow/builders": "workspace:*"+ },
"devDependencies": {
"@types/node": "catalog:",
- "@workflow/builders": "workspace:*",
"@workflow/tsconfig": "workspace:*",
"vite": "7.1.12"
}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index d21b10a..285fb0c 100644
--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -811,13 +811,14 @@ importers:
version: 3.2.4(@types/debug@4.1.12)(@types/node@22.19.0)(jiti@2.6.1)(lightningcss@1.30.1)(terser@5.44.0)(tsx@4.20.6)(yaml@2.8.1)
packages/vite:
+ dependencies:+ '@workflow/builders':+ specifier: workspace:*+ version: link:../builders
devDependencies:
'@types/node':
specifier: 'catalog:'
version: 22.19.0
- '@workflow/builders':- specifier: workspace:*- version: link:../builders
'@workflow/tsconfig':
specifier: workspace:*
version: link:../tsconfig

Analysis

@workflow/builders should be in dependencies, not devDependencies

What fails: The @workflow/vite package exports WorkflowHotUpdatePluginOptions interface which references BaseBuilder type from @workflow/builders. When external consumers import this exported type, TypeScript cannot resolve the @workflow/builders module because it's only listed in devDependencies.

How to reproduce:

cd packages/vite
# Verify @workflow/builders is in devDependencies (lines 33-36 of package.json)
cat package.json | grep -A 5 devDependencies
# Try to build or typecheck
pnpm build

Result: Compilation fails with:

src/hot-update.ts(2,34): error TS2307: Cannot find module '@workflow/builders' or its corresponding type declarations.

Root cause: The exported interface in packages/vite/src/index.ts includes WorkflowHotUpdatePluginOptions which has a type signature that depends on BaseBuilder from @workflow/builders. This type dependency must be available at runtime through the node_modules resolution for TypeScript to resolve type declarations when consuming the published package. External users installing @workflow/vite from npm will receive the built .d.ts files with these type references, but will fail to resolve them without @workflow/builders as a runtime dependency.

Fix: Moved @workflow/builders from devDependencies to dependencies in packages/vite/package.json to ensure external consumers can resolve the type declarations.

@adriandlam
adriandlam marked this pull request as ready for review December 2, 2025 21:25
ijjk
ijjk approved these changes Dec 5, 2025
@github-actions

github-actionsBot commented Dec 5, 2025

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
❌ ▲ Vercel Production249110260
✅ 🪟 Windows260026
❌ 🌍 Community Worlds82340116
⚠️ 📋 Other250126
Total3823511428

❌ Failed Tests

mongodb (🌍 Community Worlds): e2e webhookWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected 404 to be 202 // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:255:24
at processTicksAndRejections (node:internal/process/tas
redis (🌍 Community Worlds): e2e webhookWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected 404 to be 200 // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:285:25
at processTicksAndRejections (node:internal/process/tas
starter (🌍 Community Worlds): e2e addTenWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected {} to match object { …(5) }
at Proxy.<anonymous> (file:///home/runner/work/workflow/workflow/node_modules/.pnpm/@vitest+expect@3.2.4/node_modules/@vitest/expect/dist/index
starter (🌍 Community Worlds): e2e addTenWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected {} to match object { …(5) }
at Proxy.<anonymous> (file:///home/runner/work/workflow/workflow/node_modules/.pnpm/@vitest+expect@3.2.4/node_modules/@vitest/expect/dist/index
starter (🌍 Community Worlds): e2e retryAttemptCounterWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected {} to match object { …(3) }
at Proxy.<anonymous> (file:///home/runner/work/workflow/workflow/node_modules/.pnpm/@vitest+expect@3.2.4/node_modules/@vitest/expect/dist/index
starter (🌍 Community Worlds): e2e crossFileErrorWorkflow - stack traces work across imported modules

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected undefined to be 'failed' // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:647:30
at processTicksAndRejections (node:internal/
starter (🌍 Community Worlds): e2e hookCleanupTestWorkflow - hook token reuse after workflow completion

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected undefined to be 'completed' // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:725:31
at processTicksAndRejections (node:intern
starter (🌍 Community Worlds): e2e stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected undefined to be 'completed' // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:748:30
at processTicksAndRejections (node:intern
starter (🌍 Community Worlds): e2e stepFunctionWithClosureWorkflow - step function with closure variables passed as argument

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected undefined to be 'completed' // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:784:30
at processTicksAndRejections (node:intern
starter (🌍 Community Worlds): e2e spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected undefined to be 'completed' // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:835:36
at processTicksAndRejections (node:intern
turso (🌍 Community Worlds): e2e addTenWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=addTenWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/pack
turso (🌍 Community Worlds): e2e addTenWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F98_duplicate_case.ts&workflowFn=addTenWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/wo
turso (🌍 Community Worlds): e2e should work with react rendering in step

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F8_react_render.tsx&workflowFn=reactWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workf
turso (🌍 Community Worlds): e2e promiseAllWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=promiseAllWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/
turso (🌍 Community Worlds): e2e promiseRaceWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=promiseRaceWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow
turso (🌍 Community Worlds): e2e promiseAnyWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=promiseAnyWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/
turso (🌍 Community Worlds): e2e readableStreamWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=readableStreamWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workf
turso (🌍 Community Worlds): e2e hookWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=hookWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/packag
turso (🌍 Community Worlds): e2e webhookWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=webhookWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/pac
turso (🌍 Community Worlds): e2e sleepingWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=sleepingWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/pa
turso (🌍 Community Worlds): e2e nullByteWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=nullByteWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/pa
turso (🌍 Community Worlds): e2e workflowAndStepMetadataWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=workflowAndStepMetadataWorkflow 500: at triggerWorkflow (/home/runner/work/workf
turso (🌍 Community Worlds): e2e outputStreamWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=outputStreamWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflo
turso (🌍 Community Worlds): e2e outputStreamInsideStepWorkflow - getWritable() called inside step functions

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=outputStreamInsideStepWorkflow 500: at triggerWorkflow (/home/runner/work/workfl
turso (🌍 Community Worlds): e2e fetchWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=fetchWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workflow/packa
turso (🌍 Community Worlds): e2e promiseRaceStressTestWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=promiseRaceStressTestWorkflow 500: at triggerWorkflow (/home/runner/work/workflo
turso (🌍 Community Worlds): e2e retryAttemptCounterWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=retryAttemptCounterWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/
turso (🌍 Community Worlds): e2e retryableAndFatalErrorWorkflow

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=retryableAndFatalErrorWorkflow 500: at triggerWorkflow (/home/runner/work/workfl
turso (🌍 Community Worlds): e2e crossFileErrorWorkflow - stack traces work across imported modules

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=crossFileErrorWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/workf
turso (🌍 Community Worlds): e2e hookCleanupTestWorkflow - hook token reuse after workflow completion

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=hookCleanupTestWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/work
turso (🌍 Community Worlds): e2e stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=stepFunctionPassingWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/
turso (🌍 Community Worlds): e2e stepFunctionWithClosureWorkflow - step function with closure variables passed as argument

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=stepFunctionWithClosureWorkflow 500: at triggerWorkflow (/home/runner/work/workf
turso (🌍 Community Worlds): e2e closureVariableWorkflow - nested step functions with closure variables

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=closureVariableWorkflow 500: at triggerWorkflow (/home/runner/work/workflow/work
turso (🌍 Community Worlds): e2e spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

Error: Failed to trigger workflow: http://localhost:3000/api/trigger?workflowFile=workflows%2F99_e2e.ts&workflowFn=spawnWorkflowFromStepWorkflow 500: at triggerWorkflow (/home/runner/work/workflo
nuxt (▲ Vercel Production): e2e hookCleanupTestWorkflow - hook token reuse after workflow completion

File:/home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts

AssertionError: expected 404 to be 200 // Object.is equality
at /home/runner/work/workflow/workflow/packages/core/e2e/e2e.test.ts:681:26
at processTicksAndRejections (node:internal/process/tas

Details by Category

❌ ▲ Vercel Production
AppPassedFailedSkipped
⚠️ astro2501
⚠️ example2501
⚠️ express2501
⚠️ hono2501
⚠️ nextjs-turbopack2501
⚠️ nextjs-webpack2501
⚠️ nitro2501
❌ nuxt2411
⚠️ sveltekit2501
⚠️ vite2501
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack2600
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb2510
✅ redis-dev300
❌ redis2510
✅ starter-dev300
❌ starter1880
✅ turso-dev300
❌ turso2240
⚠️ 📋 Other
AppPassedFailedSkipped
⚠️ e2e-vercel-prod-fastify2501

⚠️Some E2E test jobs failed:

  • Vercel Prod: failure
  • Local Dev: success
  • Local Prod: success
  • Local Postgres: success
  • Windows: success
  • Community Worlds: success

Check the workflow run for details.

@adriandlamGraphite App

adriandlam commented Dec 6, 2025

Copy link
Copy Markdown
ContributorAuthor

Merge activity

  • Dec 6, 12:00 AM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Dec 6, 12:00 AM UTC: @adriandlam merged this pull request with Graphite.

@adriandlam
adriandlam merged commit 205b395 into mainDec 6, 2025
86 of 87 checks passed
@adriandlam
adriandlam deleted the 12-02-refactor-vite-plugin branch December 6, 2025 00:00
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@adriandlam@ijjk