Skip to content

Conversation

@VaguelySerious
Copy link
Member

@VaguelySerious VaguelySerious commented Oct 28, 2025

Addresses #30 by extracting re-usable NextJS code for any o11y deployment.

See slack thread for context.

@changeset-bot
Copy link

changeset-bot bot commented Oct 28, 2025

🦋 Changeset detected

Latest commit: 28a5603

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

This PR includes changesets to release 8 packages
Name Type
@workflow/web-shared Patch
@workflow/web Patch
@workflow/cli Patch
@workflow/next Patch
@workflow/nitro Patch
workflow Patch
@workflow/world-testing Patch
@workflow/ai Patch

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

@vercel
Copy link
Contributor

vercel bot commented Oct 28, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
example-nextjs-workflow-turbopack Ready Ready Preview Comment Oct 30, 2025 1:45am
example-nextjs-workflow-webpack Ready Ready Preview Comment Oct 30, 2025 1:45am
example-workflow Ready Ready Preview Comment Oct 30, 2025 1:45am
workbench-express-workflow Error Error Oct 30, 2025 1:45am
workbench-nitro-workflow Ready Ready Preview Comment Oct 30, 2025 1:45am
workflow-docs Ready Ready Preview Comment Oct 30, 2025 1:45am

@vercel vercel bot temporarily deployed to Preview – workflow-docs October 29, 2025 00:20 Inactive
join(nitro.options.rootDir, 'workflows'),
...nitro.options.scanDirs.map((dir) => join(dir, 'workflows')),
].map((dir) => resolve(nitro.options.rootDir, dir))).sort();
return unique(
Copy link
Collaborator

Choose a reason for hiding this comment

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

is this just a formatting change?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes - must have originally not been formatted with biome

@@ -0,0 +1,59 @@
{
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you also symlink the LICENSE from the repo root please like we do in all the other packages?

Copy link
Collaborator

@pranaygp pranaygp left a comment

Choose a reason for hiding this comment

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

Let's also symlink the LICENSE from repo root pls. otherwise, this is great!

Copy link
Contributor

@vercel vercel bot left a comment

Choose a reason for hiding this comment

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

🔧 Build Fix:

The TypeScript compiler fails because the imported hydrateWorkflowArguments function from '@workflow/core/serialization' is never used in the file.

View Details
📝 Patch Details
diff --git a/packages/web-shared/src/api/workflow-server-actions.ts b/packages/web-shared/src/api/workflow-server-actions.ts
index ffe549e..2ad7ade 100644
--- a/packages/web-shared/src/api/workflow-server-actions.ts
+++ b/packages/web-shared/src/api/workflow-server-actions.ts
@@ -2,7 +2,7 @@
 
 import { hydrateResourceIO } from '@workflow/core/observability';
 import { createWorld, start } from '@workflow/core/runtime';
-import { hydrateWorkflowArguments } from '@workflow/core/serialization';
+
 import type {
   Event,
   Hook,

Analysis

Unused import causes TypeScript compilation failure

What fails: TypeScript compiler fails on packages/web-shared/src/api/workflow-server-actions.ts due to unused import hydrateWorkflowArguments

How to reproduce:

cd packages/web-shared && pnpm run build

Result:

src/api/workflow-server-actions.ts(5,1): error TS6133: 'hydrateWorkflowArguments' is declared but its value is never read.

Copy link
Contributor

@vercel vercel bot left a comment

Choose a reason for hiding this comment

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

🔧 Build Fix:

The hydrateWorkflowArguments import is declared but never used in the file, causing TypeScript compilation to fail with error TS6133.

View Details
📝 Patch Details
diff --git a/packages/web-shared/src/api/workflow-server-actions.ts b/packages/web-shared/src/api/workflow-server-actions.ts
index ffe549e..2ad7ade 100644
--- a/packages/web-shared/src/api/workflow-server-actions.ts
+++ b/packages/web-shared/src/api/workflow-server-actions.ts
@@ -2,7 +2,7 @@
 
 import { hydrateResourceIO } from '@workflow/core/observability';
 import { createWorld, start } from '@workflow/core/runtime';
-import { hydrateWorkflowArguments } from '@workflow/core/serialization';
+
 import type {
   Event,
   Hook,

Analysis

Unused import causes TypeScript compilation failure

What fails: TypeScript compiler fails on packages/web-shared/src/api/workflow-server-actions.ts due to unused import hydrateWorkflowArguments

How to reproduce:

cd packages/web-shared && pnpm run build

Result:

src/api/workflow-server-actions.ts(5,1): error TS6133: 'hydrateWorkflowArguments' is declared but its value is never read.

Copy link
Contributor

@vercel vercel bot left a comment

Choose a reason for hiding this comment

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

🔧 Build Fix:

The file imports hydrateWorkflowArguments from @workflow/core/serialization but never uses it, causing a TypeScript compilation error TS6133.

View Details
📝 Patch Details
diff --git a/packages/web-shared/src/api/workflow-server-actions.ts b/packages/web-shared/src/api/workflow-server-actions.ts
index ffe549e..40e0752 100644
--- a/packages/web-shared/src/api/workflow-server-actions.ts
+++ b/packages/web-shared/src/api/workflow-server-actions.ts
@@ -2,7 +2,6 @@
 
 import { hydrateResourceIO } from '@workflow/core/observability';
 import { createWorld, start } from '@workflow/core/runtime';
-import { hydrateWorkflowArguments } from '@workflow/core/serialization';
 import type {
   Event,
   Hook,

Analysis

TypeScript unused import causes build failure

What fails: TypeScript compiler fails on packages/web-shared/src/api/workflow-server-actions.ts due to unused import hydrateWorkflowArguments

How to reproduce:

cd packages/web-shared && pnpm run build

Result:

src/api/workflow-server-actions.ts(5,1): error TS6133: 'hydrateWorkflowArguments' is declared but its value is never read.
 ELIFECYCLE  Command failed with exit code 2.

Copy link
Contributor

@vercel vercel bot left a comment

Choose a reason for hiding this comment

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

🔧 Build Fix:

The hydrateWorkflowArguments import is declared but never used in the file, causing a TypeScript compilation error.

View Details
📝 Patch Details
diff --git a/packages/web-shared/src/api/workflow-server-actions.ts b/packages/web-shared/src/api/workflow-server-actions.ts
index ffe549e..40e0752 100644
--- a/packages/web-shared/src/api/workflow-server-actions.ts
+++ b/packages/web-shared/src/api/workflow-server-actions.ts
@@ -2,7 +2,6 @@
 
 import { hydrateResourceIO } from '@workflow/core/observability';
 import { createWorld, start } from '@workflow/core/runtime';
-import { hydrateWorkflowArguments } from '@workflow/core/serialization';
 import type {
   Event,
   Hook,

Analysis

Unused import causes TypeScript compilation failure

What fails: TypeScript compiler fails on packages/web-shared/src/api/workflow-server-actions.ts due to unused import hydrateWorkflowArguments

How to reproduce:

cd packages/web-shared && pnpm run build

Result:

src/api/workflow-server-actions.ts(5,1): error TS6133: 'hydrateWorkflowArguments' is declared but its value is never read.

Copy link
Contributor

@vercel vercel bot left a comment

Choose a reason for hiding this comment

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

🔧 Build Fix:

The TypeScript build fails because hydrateWorkflowArguments is imported but never used in the file, triggering error TS6133 due to the strict noUnusedLocals compiler setting.

View Details
📝 Patch Details
diff --git a/packages/web-shared/src/api/workflow-server-actions.ts b/packages/web-shared/src/api/workflow-server-actions.ts
index ffe549e..2ad7ade 100644
--- a/packages/web-shared/src/api/workflow-server-actions.ts
+++ b/packages/web-shared/src/api/workflow-server-actions.ts
@@ -2,7 +2,7 @@
 
 import { hydrateResourceIO } from '@workflow/core/observability';
 import { createWorld, start } from '@workflow/core/runtime';
-import { hydrateWorkflowArguments } from '@workflow/core/serialization';
+
 import type {
   Event,
   Hook,

Analysis

Unused import causes TypeScript compilation failure

What fails: TypeScript compiler fails on packages/web-shared/src/api/workflow-server-actions.ts due to unused import hydrateWorkflowArguments

How to reproduce:

pnpm turbo run build --filter=@workflow/web-shared

Result:

src/api/workflow-server-actions.ts(5,1): error TS6133: 'hydrateWorkflowArguments' is declared but its value is never read.

Sign up for free to 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.

3 participants