Skip to content

Conversation

@TooTallNate
Copy link
Member

@TooTallNate TooTallNate commented Jan 14, 2026

Added support for "use step" directive in class instance methods, allowing instance methods to be used as workflow steps.

What changed?

  • Modified the SWC plugin to recognize and transform instance methods with the "use step" directive
  • Added registration logic for instance method steps using ClassName.prototype.methodName
  • Implemented proper serialization of class instances to preserve the this context across workflow/step boundaries
  • Added comprehensive end-to-end tests for instance method steps
  • Updated error handling to allow "use step" in instance methods while still preventing "use workflow" in instance methods

How to test?

The PR includes a new end-to-end test instanceMethodStepWorkflow that demonstrates the functionality:

  1. Run the e2e tests to verify the new instance method step functionality
  2. The test creates a Counter class with instance methods marked as steps
  3. It verifies that the instance methods can be called as steps with proper serialization of the this context
  4. It also verifies that multiple instances of the same class can be used independently

Why make this change?

This change enables a more natural object-oriented programming model when working with workflows. Previously, only static methods, standalone functions, and object methods could be marked as steps. Now, developers can create classes with instance methods that are steps, allowing for better encapsulation and more intuitive code organization. This is particularly useful for complex workflows that need to maintain state across multiple step invocations.

@changeset-bot
Copy link

changeset-bot bot commented Jan 14, 2026

🦋 Changeset detected

Latest commit: 86c563c

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

This PR includes changesets to release 18 packages
Name Type
@workflow/swc-plugin Patch
@workflow/astro Patch
@workflow/builders Patch
@workflow/cli Patch
@workflow/nest Patch
@workflow/next Patch
@workflow/nitro Patch
@workflow/rollup Patch
@workflow/sveltekit Patch
workflow Patch
@workflow/vite Patch
@workflow/world-testing Patch
@workflow/example-nest Patch
@workflow/docs-typecheck Patch
@workflow/nuxt Patch
@workflow/ai Patch
@workflow/core Patch
@workflow/web-shared 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 Jan 14, 2026

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

Project Deployment Actions Updated (UTC)
example-nextjs-workflow-turbopack Ready Ready Preview, Comment Jan 30, 2026 8:36pm
example-nextjs-workflow-webpack Ready Ready Preview, Comment Jan 30, 2026 8:36pm
example-workflow Ready Ready Preview, Comment Jan 30, 2026 8:36pm
workbench-astro-workflow Ready Ready Preview, Comment Jan 30, 2026 8:36pm
workbench-express-workflow Ready Ready Preview, Comment Jan 30, 2026 8:36pm
workbench-fastify-workflow Ready Ready Preview, Comment Jan 30, 2026 8:36pm
workbench-hono-workflow Ready Ready Preview, Comment Jan 30, 2026 8:36pm
workbench-nitro-workflow Ready Ready Preview, Comment Jan 30, 2026 8:36pm
workbench-nuxt-workflow Ready Ready Preview, Comment Jan 30, 2026 8:36pm
workbench-sveltekit-workflow Ready Ready Preview, Comment Jan 30, 2026 8:36pm
workbench-vite-workflow Ready Ready Preview, Comment Jan 30, 2026 8:36pm
workflow-docs Ready Ready Preview, Comment Jan 30, 2026 8:36pm
workflow-nest Ready Ready Preview, Comment Jan 30, 2026 8:36pm

@github-actions
Copy link
Contributor

github-actions bot commented Jan 14, 2026

🧪 E2E Test Results

Some tests failed

Summary

Passed Failed Skipped Total
✅ ▲ Vercel Production 479 0 38 517
✅ 💻 Local Development 438 0 32 470
✅ 📦 Local Production 438 0 32 470
✅ 🐘 Local Postgres 438 0 32 470
✅ 🪟 Windows 47 0 0 47
❌ 🌍 Community Worlds 31 169 0 200
✅ 📋 Other 129 0 12 141
Total 2000 169 146 2315

❌ Failed Tests

🌍 Community Worlds (169 failed)

mongodb (42 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

redis (42 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

starter (43 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

turso (42 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

Details by Category

✅ ▲ Vercel Production
App Passed Failed Skipped
✅ astro 43 0 4
✅ example 43 0 4
✅ express 43 0 4
✅ fastify 43 0 4
✅ hono 43 0 4
✅ nextjs-turbopack 46 0 1
✅ nextjs-webpack 46 0 1
✅ nitro 43 0 4
✅ nuxt 43 0 4
✅ sveltekit 43 0 4
✅ vite 43 0 4
✅ 💻 Local Development
App Passed Failed Skipped
✅ astro-stable 43 0 4
✅ express-stable 43 0 4
✅ fastify-stable 43 0 4
✅ hono-stable 43 0 4
✅ nextjs-turbopack-stable 47 0 0
✅ nextjs-webpack-stable 47 0 0
✅ nitro-stable 43 0 4
✅ nuxt-stable 43 0 4
✅ sveltekit-stable 43 0 4
✅ vite-stable 43 0 4
✅ 📦 Local Production
App Passed Failed Skipped
✅ astro-stable 43 0 4
✅ express-stable 43 0 4
✅ fastify-stable 43 0 4
✅ hono-stable 43 0 4
✅ nextjs-turbopack-stable 47 0 0
✅ nextjs-webpack-stable 47 0 0
✅ nitro-stable 43 0 4
✅ nuxt-stable 43 0 4
✅ sveltekit-stable 43 0 4
✅ vite-stable 43 0 4
✅ 🐘 Local Postgres
App Passed Failed Skipped
✅ astro-stable 43 0 4
✅ express-stable 43 0 4
✅ fastify-stable 43 0 4
✅ hono-stable 43 0 4
✅ nextjs-turbopack-stable 47 0 0
✅ nextjs-webpack-stable 47 0 0
✅ nitro-stable 43 0 4
✅ nuxt-stable 43 0 4
✅ sveltekit-stable 43 0 4
✅ vite-stable 43 0 4
✅ 🪟 Windows
App Passed Failed Skipped
✅ nextjs-turbopack 47 0 0
❌ 🌍 Community Worlds
App Passed Failed Skipped
✅ mongodb-dev 3 0 0
❌ mongodb 5 42 0
✅ redis-dev 3 0 0
❌ redis 5 42 0
✅ starter-dev 3 0 0
❌ starter 4 43 0
✅ turso-dev 3 0 0
❌ turso 5 42 0
✅ 📋 Other
App Passed Failed Skipped
✅ e2e-local-dev-nest-stable 43 0 4
✅ e2e-local-postgres-nest-stable 43 0 4
✅ e2e-local-prod-nest-stable 43 0 4

📋 View full workflow run

Copy link
Member Author

TooTallNate commented Jan 14, 2026

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds SWC transform + runtime support so class instance methods can be marked with "use step" and invoked as workflow steps while preserving this via serialization.

Changes:

  • Update SWC transform to detect "use step" in instance methods, generate ClassName.prototype.methodName step registrations, and proxy instance methods in workflow bundles.
  • Register serialization classes so this values can be dehydrated/hydrated across workflow ↔ step boundaries.
  • Add end-to-end coverage plus transform fixtures for instance-method steps (including nested steps), and adjust error fixtures.

Reviewed changes

Copilot reviewed 23 out of 23 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
workbench/example/workflows/99_e2e.ts Adds Counter + instanceMethodStepWorkflow e2e workflow demonstrating instance-method steps with custom serialization.
packages/core/e2e/e2e.test.ts Adds e2e test validating instance-method step execution + step list expectations.
packages/swc-plugin-workflow/transform/src/lib.rs Core transform changes: allow "use step" on instance methods, register prototype step functions, and proxy them in workflow mode.
packages/swc-plugin-workflow/transform/tests/fixture/instance-method-step/input.js New fixture input for instance-method step transformation.
packages/swc-plugin-workflow/transform/tests/fixture/instance-method-step/output-client.js Expected client output for instance-method step fixture.
packages/swc-plugin-workflow/transform/tests/fixture/instance-method-step/output-step.js Expected step-bundle output for instance-method step fixture.
packages/swc-plugin-workflow/transform/tests/fixture/instance-method-step/output-workflow.js Expected workflow-bundle output for instance-method step fixture.
packages/swc-plugin-workflow/transform/tests/fixture/instance-method-nested-step/input.js New fixture input for nested steps inside an instance-method step.
packages/swc-plugin-workflow/transform/tests/fixture/instance-method-nested-step/output-client.js Expected client output for nested instance-method step fixture.
packages/swc-plugin-workflow/transform/tests/fixture/instance-method-nested-step/output-step.js Expected step-bundle output for nested instance-method step fixture.
packages/swc-plugin-workflow/transform/tests/fixture/instance-method-nested-step/output-workflow.js Expected workflow-bundle output for nested instance-method step fixture.
packages/swc-plugin-workflow/transform/tests/errors/instance-methods/input.js Updates error fixture to allow "use step" on instance methods but still forbid "use workflow".
packages/swc-plugin-workflow/transform/tests/errors/instance-methods/output-client.js Expected client output for updated instance-method error fixture.
packages/swc-plugin-workflow/transform/tests/errors/instance-methods/output-client.stderr Updated expected stderr for client mode.
packages/swc-plugin-workflow/transform/tests/errors/instance-methods/output-step.js Expected step output for updated instance-method error fixture.
packages/swc-plugin-workflow/transform/tests/errors/instance-methods/output-step.stderr Updated expected stderr for step mode.
packages/swc-plugin-workflow/transform/tests/errors/instance-methods/output-workflow.js Expected workflow output for updated instance-method error fixture.
packages/swc-plugin-workflow/transform/tests/errors/instance-methods/output-workflow.stderr Updated expected stderr for workflow mode.
packages/swc-plugin-workflow/transform/tests/errors/forbidden-expressions/output-step.js Updates expected output to treat instance method step as supported.
packages/swc-plugin-workflow/transform/tests/errors/forbidden-expressions/output-step.stderr Adjusted expected stderr (now empty).
packages/swc-plugin-workflow/transform/tests/errors/forbidden-expressions/output-workflow.js Updates expected output to proxy/register the instance method step.
packages/swc-plugin-workflow/transform/tests/errors/forbidden-expressions/output-workflow.stderr Adjusted expected stderr (now empty).
.changeset/legal-parts-happen.md Publishes a patch changeset for @workflow/swc-plugin.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +3930 to +3933
prop: MemberProp::Ident(IdentName::new(
method_name.into(),
DUMMY_SP,
)),
Copy link

Copilot AI Jan 30, 2026

Choose a reason for hiding this comment

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

Instance method step registration builds ClassName.prototype.<method_name> using MemberProp::Ident, but method_name may come from PropName::Str and can contain characters that aren’t valid identifiers. This would generate invalid JS (or wrong property access). Carry the original key type through and emit computed member access (e.g. prototype["..."]) when the method key is a string.

Suggested change
prop: MemberProp::Ident(IdentName::new(
method_name.into(),
DUMMY_SP,
)),
prop: MemberProp::Computed(ComputedPropName {
span: DUMMY_SP,
expr: Box::new(Expr::Lit(Lit::Str(Str {
span: DUMMY_SP,
value: method_name.into(),
raw: None,
}))),
}),

Copilot uses AI. Check for mistakes.
Comment on lines +4151 to +4154
prop: MemberProp::Ident(IdentName::new(
method_name.into(),
DUMMY_SP,
)),
Copy link

Copilot AI Jan 30, 2026

Choose a reason for hiding this comment

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

Workflow-mode proxy assignment uses MemberProp::Ident for method_name on ClassName.prototype, but method_name may originate from a string key. This can emit invalid JS and also won’t match the stripping logic if the class method key was a string. Use computed member access when appropriate (based on the original PropName).

Suggested change
prop: MemberProp::Ident(IdentName::new(
method_name.into(),
DUMMY_SP,
)),
prop: MemberProp::Computed(ComputedPropName {
span: DUMMY_SP,
expr: Box::new(Expr::Lit(Lit::Str(Str {
span: DUMMY_SP,
value: method_name.into(),
raw: None,
}))),
}),

Copilot uses AI. Check for mistakes.
Comment on lines +6679 to +6683
));

// Visit children to process nested step functions
method.visit_mut_children_with(self);
}
Copy link

Copilot AI Jan 30, 2026

Choose a reason for hiding this comment

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

When visiting instance method step bodies to transform nested steps, the transformer doesn’t appear to set current_parent_function_name (unlike visit_mut_fn_decl). This can cause nested step hoisting to generate self-referential aliases (e.g. const helper = helper;, which is a runtime ReferenceError). Consider setting current_parent_function_name while visiting class method children (e.g. to ClassName#methodName) so hoisted nested steps get a unique name.

Copilot uses AI. Check for mistakes.
Comment on lines +21 to +22
const helper = helper;
const doubled = await helper(input);
Copy link

Copilot AI Jan 30, 2026

Choose a reason for hiding this comment

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

This generated code is not valid at runtime: const helper = helper; will throw (TDZ/self-reference) when process() executes. The nested-step hoisting for instance method steps needs to avoid shadowing the hoisted helper name (e.g. rename the hoisted function or remove/rename the local binding).

Suggested change
const helper = helper;
const doubled = await helper(input);
const nestedHelper = helper;
const doubled = await nestedHelper(input);

Copilot uses AI. Check for mistakes.
Comment on lines +1174 to +1182
/**
* Instance method step: adds the given amount to the counter's value.
* The `this` context (the Counter instance) is serialized and passed
* to the step handler, then deserialized before the method is called.
*/
async add(amount: number): Promise<number> {
'use step';
return this.value + amount;
}
Copy link

Copilot AI Jan 30, 2026

Choose a reason for hiding this comment

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

The docstring says this step "adds the given amount to the counter's value", but the implementation returns this.value + amount without updating this.value. Either update the comment to reflect that it’s a pure calculation, or update the method to mutate this.value if that’s what’s intended to be tested.

Copilot uses AI. Check for mistakes.
Comment on lines 6522 to 6531
class_decl.class.body.retain(|member| {
if let ClassMember::Method(method) = member {
if method.is_static {
if let PropName::Ident(ident) = &method.key {
let method_name = ident.sym.to_string();
return !methods_to_strip.contains(&method_name);
if let PropName::Ident(ident) = &method.key {
let method_name = ident.sym.to_string();
if method.is_static {
return !static_methods_to_strip.contains(&method_name);
} else {
return !instance_methods_to_strip.contains(&method_name);
}
}
Copy link

Copilot AI Jan 30, 2026

Choose a reason for hiding this comment

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

The workflow-mode stripping logic only checks PropName::Ident for class methods. Instance (and static) methods with string keys (e.g. async 'foo-bar'() { 'use step' }) are supported earlier, but won’t be removed here, so the original method body can remain in the workflow bundle instead of being replaced by the step proxy. Extend this retain() filter to also handle PropName::Str (and keep the stripping key representation consistent with how method_name is collected).

Copilot uses AI. Check for mistakes.
Comment on lines +21 to +22
const helper = helper;
const doubled = await helper(input);
Copy link

Copilot AI Jan 30, 2026

Choose a reason for hiding this comment

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

Callee is not a function: it has type undefined.

Suggested change
const helper = helper;
const doubled = await helper(input);
const localHelper = helper;
const doubled = await localHelper(input);

Copilot uses AI. Check for mistakes.
@TooTallNate TooTallNate force-pushed the 01-27-add_discovered_serializable_classes_in_all_context_modes branch from ccc981c to ab3dd44 Compare January 30, 2026 20:33
@TooTallNate TooTallNate force-pushed the 01-13-add_support_for_use_step_functions_in_class_instance_methods branch from 334dd56 to 86c563c Compare January 30, 2026 20:33
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.

2 participants