fix(cli): auto-build local sdk workflows runtime#588
Merged
khaliqgant merged 2 commits intomainfrom Mar 19, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fix
agent-relay run <workflow.ts>inside the monorepo when the local linked@agent-relay/sdkpackage has not been built yet.Before this change, running a TypeScript workflow script from the repo could fail immediately with a missing module error like:
Root cause
Inside the monorepo,
node_modules/@agent-relay/sdkresolves to the local workspace package, whose./workflowsexport points at:If
packages/sdkhad not been built yet, the CLI attempted to execute the workflow script viatsx, but module resolution failed before the workflow could start.What this PR changes
agent-relay run <workflow.ts>is being executed inside theagent-relaymonorepopackages/sdk/dist/workflows/index.jsbefore invoking
tsx/ts-nodeValidation
Confirmed that the original module-resolution failure is fixed:
now gets past the missing
@agent-relay/sdk/workflowsdist import and launches the workflow.Note
There is still a separate runtime issue where the specific
add-swift-sdkworkflow appears to hang after startup (Workflow starting...). That is not addressed by this PR; this PR is only for the global CLI/local-runtime bootstrap fix.