[OSS Vibe Coding Platform] Implement Workflow DevKit#1287
Merged
VaguelySerious merged 2 commits intopeter/pre-tidy-for-workflowsfrom Nov 18, 2025
Merged
Conversation
Contributor
pranaygp
commented
Nov 7, 2025
| @@ -1,4 +1,4 @@ | |||
| Use this tool to create a new Vercel Sandbox — an ephemeral, isolated Linux container that serves as your development environment for the current session. This sandbox provides a secure workspace where you can upload files, install dependencies, run commands, start development servers, and preview web apps. Each sandbox is uniquely identified and must be referenced for all subsequent operations (e.g., file generation, command execution, or URL access). | |||
| export default `Use this tool to create a new Vercel Sandbox — an ephemeral, isolated Linux container that serves as your development environment for the current session. This sandbox provides a secure workspace where you can upload files, install dependencies, run commands, start development servers, and preview web apps. Each sandbox is uniquely identified and must be referenced for all subsequent operations (e.g., file generation, command execution, or URL access). | |||
Author
There was a problem hiding this comment.
Sadly I had to change these from md files since workflow devkit doesn't currently let you provide your own loaders to the workflow bundling interface
Hope this isn't a blocker. We'd like to support custom loaders in devkit but that isn't high priority
pranaygp
commented
Nov 7, 2025
| interface Params { | ||
| writer: UIMessageStreamWriter<UIMessage<never, DataPart>> | ||
| } | ||
| const inputSchema = z.object({ |
Author
There was a problem hiding this comment.
The refactor for tools is very simple
- we have to pull the execute function to the top level since
use steponly works top level. Opened Supporting "use step" and "use workflow" inside arrow functions workflow#219 to track this in workflow - Got rid of the old writable wiring through and I'm just getting the writable directly inside steps thanks to workflow's
getWritable
Author
There was a problem hiding this comment.
I recommend reviewing with "hide whitespace" enabled
pranaygp
commented
Nov 7, 2025
| } | ||
| } | ||
|
|
||
| const sleepTool = tool({ |
Author
There was a problem hiding this comment.
TODO: this was demonstration I will remove
32c56eb to
d30c104
Compare
0ab2ffd
into
peter/pre-tidy-for-workflows
68 of 139 checks passed
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.
Description
Updating the OSS Vibe Coding example to use Workflow DevKit. Turned out to be a pretty straightforward migration and even simplified the streaming setup since workflow has a native
getWritablefunction to handle persistent streamingType of Change
TODOs
Left a few comments inline on what's left before I'm happy with merging this so it has feature parity, but right now the core functionality works!