-
Notifications
You must be signed in to change notification settings - Fork 244
Add DurableAgent compat tests, e2e tests, and migrate to AI SDK v6 #1362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
4e81681
Add DurableAgent compat tests, e2e agent tests, and migrate to AI SDK v6
pranaygp 870b4a5
Address PR review feedback
pranaygp e4da8aa
Remove streamTextIterator mock from compat tests, use it.fails for gaps
pranaygp 9ef5174
Implement Tier 1+2 gaps, add @workflow/ai/test mock provider, wire e2…
pranaygp e0148e0
Remove e2e agent tests — mock models can't serialize across step boun…
pranaygp 876c822
Add working e2e agent tests with mock model step factories
pranaygp 2fdeb6d
Use @workflow/ai/test package imports for e2e mock models
pranaygp 09cbbf6
Simplify mock provider, add comprehensive e2e tests for all features …
pranaygp b0f9732
Add tool approval (needsApproval) gap tests, fix SWC closure var binding
pranaygp 087da88
Add default args for agent e2e workflows in UI definitions
pranaygp 6b848dd
Add DurableAgent chat UI with tools, update docs for AI SDK v6
pranaygp 2ae6460
Fix tool rendering, add reasoning support, model picker, observabilit…
pranaygp dbaca20
Fix tool output rendering: use input/output props on ToolInput/ToolOu…
pranaygp cbad07d
Fix: Documentation for `PrepareStepInfo` and `PrepareStepResult` inte…
vercel[bot] d7fbcce
Fix instructions tests: flip from it.fails to it, update snapshots
pranaygp 08bddb0
Fix getReadable call: pass startIndex as options object
pranaygp 923d1e5
Fix docs type errors and turbopack build
pranaygp b3b15bc
Fix pnpm-workspace.yaml: use double quotes for catalog entries
pranaygp c62e4e4
Fix CI build failures, add changeset
pranaygp 43aa31d
Sync webpack workbench with turbopack: add chat UI deps and symlinks
pranaygp 312ce54
Fix circular symlink: restore chat-client.tsx as real file in turbopack
pranaygp 7a255d8
Add missing deps to webpack: use-stick-to-bottom, radix-ui, @vercel/blob
pranaygp 2551e0f
Fix model picker: merge body params via prepareSendMessagesRequest
pranaygp 346a60b
Fix WorkflowChatTransport: forward body/headers from ChatRequestOptions
pranaygp a87a6a3
Fix model IDs: use real AI Gateway model names
pranaygp f592ba8
Use correct AI Gateway model IDs: Opus 4.5, GPT-5.2, GPT-5.3
pranaygp ac985ca
Enable reasoning for all model providers
pranaygp 17c1a15
Fix OpenAI reasoning: use 'medium' effort (GPT-5.3 doesn't support 'h…
pranaygp 1f5caf5
Merge remote-tracking branch 'origin/main' into pgp/durable-agent-tes…
pranaygp 2876a1a
Address all PR review comments
pranaygp bdcb25b
Remove accidentally created empty mock2.ts
pranaygp 2a09c01
Merge remote-tracking branch 'origin/main' into pgp/durable-agent-tes…
pranaygp 11738e6
Change changeset back to minor for breaking AI SDK v6 migration
pranaygp 192ec41
Fix agent e2e tests: add Vercel world setup for CI
pranaygp 37d18a4
Deduplicate e2e test utilities: extract shared code to utils.ts
pranaygp 6d5aaa2
Fix missing deploymentUrl args in e2e.test.ts after utils refactor
pranaygp 2ce818d
Add @workflow/ai dep to all workbenches for agent e2e tests
pranaygp 92c51e1
Merge remote-tracking branch 'origin/main' into pgp/durable-agent-tes…
pranaygp d09f5a4
Fix missing imports in e2e.test.ts: add fetchManifest and sleep
pranaygp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| --- | ||
| "@workflow/ai": minor | ||
| --- | ||
|
|
||
| **BREAKING CHANGE**: Migrate to AI SDK v6. Drop AI SDK v5 support. | ||
|
|
||
| - Migrate all types from V2 to V3 (`LanguageModelV2*` → `LanguageModelV3*`) | ||
| - Update peer dependency: `ai` `^5 || ^6` → `^6`, `@ai-sdk/provider` `^2 || ^3` → `^3` | ||
| - Simplify `CompatibleLanguageModel` from V2|V3 union to `LanguageModelV3` | ||
| - Remove `providerExecuted` guard on tool-result stream parts (V3: all tool-results are provider-executed) | ||
| - Add `instructions` constructor option (replaces deprecated `system`) | ||
| - Add `onStepFinish` and `onFinish` on constructor (merged with stream callbacks) | ||
| - Add `timeout` stream option | ||
| - Enrich `onFinish` event with `text`, `finishReason`, `totalUsage` | ||
| - Add `@workflow/ai/test` export with `mockTextModel` and `mockSequenceModel` for workflow e2e testing | ||
| - Update `OutputSpecification` to match AI SDK v6 Output interface | ||
| - Fix `WorkflowChatTransport` to forward `body` and `headers` from `ChatRequestOptions` to `prepareSendMessagesRequest` and the default request body |
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.