Originally created by: renovate[bot]
This PR contains the following updates:
Release Notes
vercel/ai (ai)
### [`v6.0.220`](https://redirect.github.com/vercel/ai/releases/tag/ai%406.0.220)
[Compare Source](https://redirect.github.com/vercel/ai/compare/ai@6.0.219...ai@6.0.220)
##### Patch Changes
- [`158d027`](https://redirect.github.com/vercel/ai/commit/158d027): Sort tool results by their tool call order when converting generation output to response messages.
- [`eb3cdd9`](https://redirect.github.com/vercel/ai/commit/eb3cdd9): Fix `extractJsonMiddleware` preserving leading whitespace in the final streamed text suffix when no markdown fence prefix was stripped.
- Updated dependencies \[[`7dea716`](https://redirect.github.com/vercel/ai/commit/7dea716)]
- Updated dependencies \[[`4f7fe37`](https://redirect.github.com/vercel/ai/commit/4f7fe37)]
- Updated dependencies \[[`0952964`](https://redirect.github.com/vercel/ai/commit/0952964)]
- [@&#[8203;ai-sdk/gateway](https://redirect.github.com/ai-sdk/gateway)@](https://github.com/8203;ai-sdk/gateway](https://redirect.github.com/ai-sdk/gateway)@&/issues/8203);3.0.144
- [@&#[8203;ai-sdk/provider-utils](https://redirect.github.com/ai-sdk/provider-utils)@](https://github.com/8203;ai-sdk/provider-utils](https://redirect.github.com/ai-sdk/provider-utils)@&/issues/8203);4.0.36
### [`v6.0.219`](https://redirect.github.com/vercel/ai/compare/ai@6.0.218...ai@6.0.219)
[Compare Source](https://redirect.github.com/vercel/ai/compare/ai@6.0.218...ai@6.0.219)
### [`v6.0.218`](https://redirect.github.com/vercel/ai/releases/tag/ai%406.0.218)
[Compare Source](https://redirect.github.com/vercel/ai/compare/ai@6.0.217...ai@6.0.218)
##### Patch Changes
- [`ea1e95b`](https://redirect.github.com/vercel/ai/commit/ea1e95b): feat(mcp): add maxRetries option for failed mcp tool calls
- Updated dependencies \[[`ea1e95b`](https://redirect.github.com/vercel/ai/commit/ea1e95b)]
- [@&#[8203;ai-sdk/provider-utils](https://redirect.github.com/ai-sdk/provider-utils)@](https://github.com/8203;ai-sdk/provider-utils](https://redirect.github.com/ai-sdk/provider-utils)@&/issues/8203);4.0.35
- [@&#[8203;ai-sdk/gateway](https://redirect.github.com/ai-sdk/gateway)@](https://github.com/8203;ai-sdk/gateway](https://redirect.github.com/ai-sdk/gateway)@&/issues/8203);3.0.142
### [`v6.0.217`](https://redirect.github.com/vercel/ai/releases/tag/ai%406.0.217)
[Compare Source](https://redirect.github.com/vercel/ai/compare/ai@6.0.216...ai@6.0.217)
##### Patch Changes
- [`fa850e6`](https://redirect.github.com/vercel/ai/commit/fa850e6): feat (video): add first-class `frameImages` and `inputReferences` call options for video generation
- Updated dependencies \[[`95bc6fd`](https://redirect.github.com/vercel/ai/commit/95bc6fd)]
- Updated dependencies \[[`f6b2159`](https://redirect.github.com/vercel/ai/commit/f6b2159)]
- Updated dependencies \[[`fa850e6`](https://redirect.github.com/vercel/ai/commit/fa850e6)]
- [@&#[8203;ai-sdk/gateway](https://redirect.github.com/ai-sdk/gateway)@](https://github.com/8203;ai-sdk/gateway](https://redirect.github.com/ai-sdk/gateway)@&/issues/8203);3.0.141
- [@&#[8203;ai-sdk/provider](https://redirect.github.com/ai-sdk/provider)@](https://github.com/8203;ai-sdk/provider](https://redirect.github.com/ai-sdk/provider)@&/issues/8203);3.0.13
- [@&#[8203;ai-sdk/provider-utils](https://redirect.github.com/ai-sdk/provider-utils)@](https://github.com/8203;ai-sdk/provider-utils](https://redirect.github.com/ai-sdk/provider-utils)@&/issues/8203);4.0.34
### [`v6.0.216`](https://redirect.github.com/vercel/ai/releases/tag/ai%406.0.216)
[Compare Source](https://redirect.github.com/vercel/ai/compare/ai@6.0.215...ai@6.0.216)
##### Patch Changes
- Updated dependencies \[[`f6689df`](https://redirect.github.com/vercel/ai/commit/f6689df)]
- Updated dependencies \[[`13b6a72`](https://redirect.github.com/vercel/ai/commit/13b6a72)]
- [@&#[8203;ai-sdk/gateway](https://redirect.github.com/ai-sdk/gateway)@](https://github.com/8203;ai-sdk/gateway](https://redirect.github.com/ai-sdk/gateway)@&/issues/8203);3.0.140
### [`v6.0.215`](https://redirect.github.com/vercel/ai/releases/tag/ai%406.0.215)
[Compare Source](https://redirect.github.com/vercel/ai/compare/ai@6.0.214...ai@6.0.215)
##### Patch Changes
- [`f66ac32`](https://redirect.github.com/vercel/ai/commit/f66ac32): fix(ai): prune orphaned tool-approval responses in `pruneMessages`
When pruning a specific tool by name (`toolCalls: [{ type, tools: [...] }]`), `pruneMessages` left the tool's `tool-approval-response` in place while removing its `tool-approval-request` and `tool-call`. The tool name of an approval response was resolved per-message, but approval responses live in a separate `tool` message from their approval request, so the name could never be resolved and the response was always kept. Tool name resolution is now done across all messages, so approval requests and responses are pruned together.
### [`v6.0.214`](https://redirect.github.com/vercel/ai/releases/tag/ai%406.0.214)
[Compare Source](https://redirect.github.com/vercel/ai/compare/ai@6.0.213...ai@6.0.214)
##### Patch Changes
- Updated dependencies \[[`b30e43a`](https://redirect.github.com/vercel/ai/commit/b30e43a)]
- [@&#[8203;ai-sdk/provider-utils](https://redirect.github.com/ai-sdk/provider-utils)@](https://github.com/8203;ai-sdk/provider-utils](https://redirect.github.com/ai-sdk/provider-utils)@&/issues/8203);4.0.33
- [@&#[8203;ai-sdk/gateway](https://redirect.github.com/ai-sdk/gateway)@](https://github.com/8203;ai-sdk/gateway](https://redirect.github.com/ai-sdk/gateway)@&/issues/8203);3.0.139
### [`v6.0.213`](https://redirect.github.com/vercel/ai/releases/tag/ai%406.0.213)
[Compare Source](https://redirect.github.com/vercel/ai/compare/ai@6.0.212...ai@6.0.213)
##### Patch Changes
- [`f19334d`](https://redirect.github.com/vercel/ai/commit/f19334d): feat (video): add first-class `generateAudio` call option
- Updated dependencies \[[`fb601aa`](https://redirect.github.com/vercel/ai/commit/fb601aa)]
- Updated dependencies \[[`f19334d`](https://redirect.github.com/vercel/ai/commit/f19334d)]
- [@&#[8203;ai-sdk/gateway](https://redirect.github.com/ai-sdk/gateway)@](https://github.com/8203;ai-sdk/gateway](https://redirect.github.com/ai-sdk/gateway)@&/issues/8203);3.0.138
- [@&#[8203;ai-sdk/provider](https://redirect.github.com/ai-sdk/provider)@](https://github.com/8203;ai-sdk/provider](https://redirect.github.com/ai-sdk/provider)@&/issues/8203);3.0.12
- [@&#[8203;ai-sdk/provider-utils](https://redirect.github.com/ai-sdk/provider-utils)@](https://github.com/8203;ai-sdk/provider-utils](https://redirect.github.com/ai-sdk/provider-utils)@&/issues/8203);4.0.32
### [`v6.0.212`](https://redirect.github.com/vercel/ai/releases/tag/ai%406.0.212)
[Compare Source](https://redirect.github.com/vercel/ai/compare/ai@6.0.211...ai@6.0.212)
##### Patch Changes
- Updated dependencies \[[`932c680`](https://redirect.github.com/vercel/ai/commit/932c680)]
- [@&#[8203;ai-sdk/gateway](https://redirect.github.com/ai-sdk/gateway)@](https://github.com/8203;ai-sdk/gateway](https://redirect.github.com/ai-sdk/gateway)@&/issues/8203);3.0.137
### [`v6.0.211`](https://redirect.github.com/vercel/ai/releases/tag/ai%406.0.211)
[Compare Source](https://redirect.github.com/vercel/ai/compare/ai@6.0.210...ai@6.0.211)
##### Patch Changes
- Updated dependencies \[[`6ce12b0`](https://redirect.github.com/vercel/ai/commit/6ce12b0)]
- Updated dependencies \[[`4cb4414`](https://redirect.github.com/vercel/ai/commit/4cb4414)]
- [@&#[8203;ai-sdk/gateway](https://redirect.github.com/ai-sdk/gateway)@](https://github.com/8203;ai-sdk/gateway](https://redirect.github.com/ai-sdk/gateway)@&/issues/8203);3.0.136
### [`v6.0.210`](https://redirect.github.com/vercel/ai/releases/tag/ai%406.0.210)
[Compare Source](https://redirect.github.com/vercel/ai/compare/ai@6.0.209...ai@6.0.210)
##### Patch Changes
- [`1b40ac7`](https://redirect.github.com/vercel/ai/commit/1b40ac7): Publish all packages under the `@ai-v6` dist tag.
- Updated dependencies \[[`1b40ac7`](https://redirect.github.com/vercel/ai/commit/1b40ac7)]
- [@&#[8203;ai-sdk/gateway](https://redirect.github.com/ai-sdk/gateway)@](https://github.com/8203;ai-sdk/gateway](https://redirect.github.com/ai-sdk/gateway)@&/issues/8203);3.0.135
- [@&#[8203;ai-sdk/provider-utils](https://redirect.github.com/ai-sdk/provider-utils)@](https://github.com/8203;ai-sdk/provider-utils](https://redirect.github.com/ai-sdk/provider-utils)@&/issues/8203);4.0.31
- [@&#[8203;ai-sdk/provider](https://redirect.github.com/ai-sdk/provider)@](https://github.com/8203;ai-sdk/provider](https://redirect.github.com/ai-sdk/provider)@&/issues/8203);3.0.11
### [`v6.0.209`](https://redirect.github.com/vercel/ai/compare/ai@6.0.208...ai@6.0.209)
[Compare Source](https://redirect.github.com/vercel/ai/compare/ai@6.0.208...ai@6.0.209)
---
### Configuration
📅 **Schedule**: (in timezone Europe/Paris)
- Branch creation
- "every weekend"
- Automerge
- At any time (no schedule defined)
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] If you want to rebase/retry this PR, check this box
---
This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/e2e-test-quest/uuv).