chore(deps): update dependency ai to v6.0.259 - #378
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
|
|
The latest updates on your projects. Learn more about Argos notifications ↗︎ Awaiting the start of a new Argos build… |
1101e30 to
1f2e090
Compare
1f2e090 to
03a7355
Compare
03a7355 to
f12ccd0
Compare
f12ccd0 to
ce4e780
Compare
ce4e780 to
499446d
Compare
499446d to
430400e
Compare
074fd3d to
f222249
Compare
f222249 to
5cc3e6c
Compare
5cc3e6c to
8922f26
Compare
8922f26 to
907de1c
Compare
907de1c to
cb6351c
Compare
cb6351c to
15e91b2
Compare
15e91b2 to
5088d31
Compare
|
All alerts resolved. Learn more about Socket for GitHub. This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored. |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
@claude Fix the type issues and make sure the tests succeed. Commit onto this same branch |
|
Claude finished @gianpaj's task in 9m 10s —— View job Type errors fixed — pushed to
|
@ai-sdk/react@3.0.118 pins ai@6.0.116, so bumping the catalog to ai@6.0.259 installed two copies of ai. The UIMessage types of the two copies are not assignable to each other (dynamic-tool parts gained toolMetadata and made input optional), which broke the docs build: src/components/ai/search.tsx(34,24): error TS2344: Type 'ChatUIMessage' does not satisfy the constraint 'UIMessage<unknown, UIDataTypes, UITools>' Add an '@ai-sdk/react>ai' override so both resolve to the catalog version. Co-authored-by: Gianfranco P <899175+gianpaj@users.noreply.github.com>
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. |
This PR contains the following updates:
6.0.116→6.0.259Release Notes
vercel/ai (ai)
v6.0.259Compare Source
Patch Changes
def7999]v6.0.258Compare Source
v6.0.257Compare Source
Patch Changes
000b243]v6.0.256Compare Source
Patch Changes
31205a4]v6.0.255Compare Source
v6.0.253Compare Source
Patch Changes
d91d30b: Preserve reasoning block IDs from UI message streams on reasoning UI parts.0ec239b]v6.0.252Compare Source
Patch Changes
2f96d3f: Allow providers without reranking model support to satisfy theProvidertype.afb1965: Propagate errors thrown by the ChatonFinishcallback to the initiating request.18b0965]451d2c3]v6.0.250Compare Source
Patch Changes
a077695: Prevent streaming telemetry spans from ending twice when model calls fail.7ce3b8c: PreventresumeStreamfrom copying the previous assistant message into the resumed response.b2a4d5a]v6.0.249Compare Source
Patch Changes
a774b7b: Stop pending and active resumed chat streams after cancellation, and preventoverlapping resumptions from applying stale updates.
b39f987]d79117b]v6.0.248Compare Source
Patch Changes
2171d15: feat(video): allowaspectRatio: 'adaptive'ongenerateVideoSome video models derive the output ratio from the input and reject explicit
{width}:{height}values — BytePlus Seedance 2.5 does this for first-frame,first-and-last-frame, editing, and extension tasks.
aspectRatioonVideoModelV3CallOptions, andexperimental_generateVideois now`${number}:${number}` | 'adaptive', sothose calls no longer need a type assertion. Support is provider-specific.
Updated dependencies [
2171d15]v6.0.247Compare Source
Patch Changes
dab0a08]v6.0.246Compare Source
Patch Changes
ee2bf30]v6.0.244Compare Source
Patch Changes
79e58aa: Preserve preceding assistant messages when regenerating a response.v6.0.243Compare Source
v6.0.242Compare Source
v6.0.241Compare Source
Patch Changes
7e50c52]v6.0.240Compare Source
Patch Changes
b28367e]v6.0.239Compare Source
Patch Changes
d3d9e0b]v6.0.238Compare Source
Patch Changes
9ecdefe: Prevent validated downloads on Node.js from reaching private or internal services through DNS aliases or DNS rebinding by validating and pinning every resolved address at connection time.26d10c0: support overriding model call settings for individualprepareStepinvocations7767170: Preserve provider metadata from empty text deltas instreamText.9ecdefe]87fb433]v6.0.237Compare Source
Patch Changes
f6020d7: Avoid synthesizing client tool errors for invalid provider-executed tool calls.de438f5]v6.0.236v6.0.235Patch Changes
5d7b986]v6.0.234Patch Changes
1efdef8: fix(ai): bound media-type sniffing decode for ID3-prefixed inputMedia-type detection stripped ID3 tags before the ~18-byte prefix cap, decoding the entire base64 attachment (plus a full-size copy) whenever the data began with
ID3/SUQz. This turned the intended O(1) sniff into an O(N) decode of the whole attachment. Detection now decodes at most a bounded prefix and skips the ID3 tag within that bound, keeping cost O(1) in input size on all paths (image, audio, and combined).49414cf: Return response piping promises so callers can catch stream read and write errors.Updated dependencies [
e7d064f]v6.0.233Patch Changes
fe410e7: fix: detect MP4 audio from its ftyp box during transcriptionaf7188c: fix(ai): preserve tool parts when tool call IDs repeat across stepsa09f944]v6.0.232Compare Source
Patch Changes
7644a61: Preserve provider options when combining consecutive tool messages.v6.0.231Compare Source
Patch Changes
926f5a0: Allow UI message chunks to include fields added by newer server versions.4c5a22f: Propagate abort reasons when generation is cancelled during tool execution.842a383: Prevent tools excluded byactiveToolsfrom being parsed or executed.2dd1aab]e567091]v6.0.230Compare Source
Patch Changes
19093fd: fix(ai): callonInputStartbeforeonInputAvailableduring non-streaming tool calls19093fd]v6.0.229Compare Source
Patch Changes
49a3098]v6.0.228Compare Source
Patch Changes
5e624ac]v6.0.227Compare Source
Patch Changes
6ace546: Fix chatonFinishhandling when overlapping requests clear the active response before a resume stream finishes.v6.0.226Compare Source
Patch Changes
94219a2: Allow validating assistant UI messages with empty parts so persisted errored responses remain loadable.b1be847: Prevent pending tool executions from enqueueing results after a model stream error closes the result stream.06fb54c]bc46977]v6.0.225Compare Source
Patch Changes
7c48ed8]v6.0.224Compare Source
Patch Changes
982aa3e]v6.0.223Compare Source
Patch Changes
a452291]v6.0.222Compare Source
Patch Changes
e1af05f: feat (video): support video (not just image) reference inputs ininputReferencesfor reference-to-video generation2bfb16a]34b5acc]e1af05f]1ce0d1c]v6.0.221Compare Source
v6.0.220Compare Source
Patch Changes
158d027: Sort tool results by their tool call order when converting generation output to response messages.eb3cdd9: FixextractJsonMiddlewarepreserving leading whitespace in the final streamed text suffix when no markdown fence prefix was stripped.7dea716]4f7fe37]0952964]v6.0.219Compare Source
v6.0.218Compare Source
Patch Changes
ea1e95b: feat(mcp): add maxRetries option for failed mcp tool callsea1e95b]v6.0.217Compare Source
Patch Changes
fa850e6: feat (video): add first-classframeImagesandinputReferencescall options for video generation95bc6fd]f6b2159]fa850e6]v6.0.216Compare Source
Patch Changes
f6689df]13b6a72]v6.0.215Compare Source
Patch Changes
f66ac32: fix(ai): prune orphaned tool-approval responses inpruneMessagesWhen pruning a specific tool by name (
toolCalls: [{ type, tools: [...] }]),pruneMessagesleft the tool'stool-approval-responsein place while removing itstool-approval-requestandtool-call. The tool name of an approval response was resolved per-message, but approval responses live in a separatetoolmessage 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.214Compare Source
Patch Changes
b30e43a]v6.0.213Compare Source
Patch Changes
f19334d: feat (video): add first-classgenerateAudiocall optionfb601aa]f19334d]v6.0.212Compare Source
Patch Changes
932c680]v6.0.211Compare Source
Patch Changes
6ce12b0]4cb4414]v6.0.210Compare Source
Patch Changes
1b40ac7: Publish all packages under the@ai-v6dist tag.1b40ac7]v6.0.209Compare Source
v6.0.208Compare Source
v6.0.207Compare Source
Patch Changes
779f5cd: fix(provider-utils): cancel response body on download rejection to prevent socket leakWhen a download was rejected early — because the
Content-Lengthheader exceeded the size limit, the response status was not ok, or a redirect resolved to a blocked URL — the fetch response body was left unconsumed and uncancelled. With WHATWG Fetch/undici this leaves the underlying TCP socket open instead of returning it to the connection pool, allowing an attacker-controlled origin to exhaust file descriptors and cause a denial of service. The body is now cancelled on all early-rejection paths inreadResponseWithSizeLimit,download, anddownloadBlob, andfetchWithValidatedRedirectscancels each redirect hop's body before following or rejecting the next hop.Updated dependencies [
5bfde36]Updated dependencies [
779f5cd]v6.0.206Compare Source
Patch Changes
e962dda]v6.0.205Compare Source
Patch Changes
6160ced]c9b8abd]v6.0.204Compare Source
v6.0.203Compare Source
Patch Changes
f42aa79: fix: harden download URL SSRF guard against hostname and redirect bypassesvalidateDownloadUrland the file download helpers (downloadBlob,download) could be bypassed in several ways when handling untrusted URLs:localhost.,myhost.local.) skipped the localhost/.localblocklist.::127.0.0.1), IPv4-translated (::ffff:0:127.0.0.1), and NAT64 (64:ff9b::127.0.0.1, including the64:ff9b:1::/48local-use prefix) — were not decoded and checked against the private IPv4 ranges.fetchhad already followed them, so the request to a redirect target (e.g. an internal/metadata address) had already been issued before the check ran.100.64.0.0/10, used by some cloud providers for internal traffic), benchmarking (198.18.0.0/15), IETF protocol assignments (192.0.0.0/24), the reserved240.0.0.0/4block (including the255.255.255.255broadcast address), and IPv6 site-local (fec0::/10) and multicast (ff00::/8).The validator now strips trailing dots before the hostname checks and fully expands IPv6 addresses to detect embedded private IPv4 targets. The download helpers now follow redirects manually (
redirect: 'manual'), re-validating each hop before requesting it, so an unsafe redirect target is never fetched. When a redirect cannot be inspected because the runtime returns an opaque response, the helpers fail closed (reject the redirect) on the server; only in a real browser — where SSRF is not reachable (fetch is constrained by CORS and cannot reach a server's internal network or cloud-metadata endpoints) — is the redirect followed natively so legitimate redirected downloads keep working.5291f7e: Harden stream text processing and middleware against prototype pollution from stream part IDs.b4b575a: fix: redact server error details from UI message streams by defaultstreamText(...).toUIMessageStream()andcreateUIMessageStreamdefaulted theironErrorcallback togetErrorMessage, which serializes the raw error (error.toString()/JSON.stringify(error)) into the client-facing{ type: 'error', errorText }chunk — and also intotool-output-errorparts. The documented default was() => 'An error occurred.', so applications relying on the documented behavior were unknowingly streaming server exception details (internal hostnames, paths, provider request data, validation inputs) to end users.The default
onErrornow returns the documented generic'An error occurred.'. Raw error details are only emitted when the developer explicitly supplies anonErrorhandler. This also redactstool-output-errorand invalid-tool-input error text by default; pass anonErrorto surface richer messages.Updated dependencies [
bfa5864]Updated dependencies [
f42aa79]v6.0.202Compare Source
Patch Changes
942f2f8: fix(security): re-validate tool approvals from client message history before executionThe approval-replay path in
generateText/streamTextreconstructed approved tool calls from the client-supplied messages array and executed them without re-validating input against the tool's schema or re-checking that the tool actually requires approval. A client could forge an assistant message with a pre-approved tool-call part and have the server execute a tool with attacker-chosen arguments.The replay path now verifies the HMAC signature (when
experimental_toolApprovalSecretis configured), re-validates tool-call input against the tool's input schema, and re-resolves whether the tool requires approval before execution.Updated dependencies [
942f2f8]v6.0.201Compare Source
Patch Changes
0c8c0ed: fix(ai): return schema-transformed elements in array output modePreviously final array output validation checked each element against the schema but returned the raw model output. Array output now returns the validated values so Zod transforms, coercions, defaults, and pipes are applied consistently with object output.
v6.0.200Compare Source
Patch Changes
14098e7: fix(ai): rejectstreamTextresult promises withNoOutputGeneratedErrorwhen the model stream ends without producing any output. Previously such streams resolved with an empty step. Incomplete streams with partial output still resolve with the partial result.2cabe9c: Harden UI message stream processing against prototype pollution from chunk IDs.v6.0.199Compare Source
Patch Changes
49d9364: fix(ai): add approval guard for denied tool outputs3851e29]2a91a17]v6.0.198Compare Source
Patch Changes
ff16d3b]v6.0.197Compare Source
v6.0.196Compare Source
Patch Changes
286b7a2]v6.0.195Compare Source
v6.0.194Compare Source
v6.0.193Compare Source
Patch Changes
af580ea: fix(ai): do not re-validate tool input for output-error parts in validateUIMessagesv6.0.192Compare Source
Patch Changes
4084fcd]v6.0.191Compare Source
Patch Changes
27a1b22]v6.0.190Compare Source
Patch Changes
33b10a2]f6e4146]v6.0.189Compare Source
Patch Changes
356c3cf: fix(ai): make input optional on input-streaming UIMessagePart variantsv6.0.188Compare Source
Patch Changes
c98715a: AddallowSystemInMessagesoption toToolLoopAgent.This exposes the same option that exists on
streamTextandgenerateText, whetherrole: "system"messages are allowed in thepromptormessagesfields. When unset, system messages are rejected because they can create a prompt injection attack risk. Ideally, use theinstructionsoption instead. Set totrueto allow system messages, orfalseto explicitly reject them.The option can also be returned from
prepareCallfor dynamic per-call configuration.v6.0.187Compare Source
Patch Changes
6f4bb06]v6.0.185Compare Source
Patch Changes
488ef33]v6.0.184Compare Source
Patch Changes
40fc5e4: fix(ai): default missing embedding warnings to an empty arrayv6.0.183Compare Source
Patch Changes
363cefe]v6.0.182Compare Source
Patch Changes
e76a29a: fix(ai): download tool-result file URLsv6.0.180Compare Source
Patch Changes
253bd5a: fix(gateway): enable retry support for gateway errors57ec10f: fix URL of hero animation in README253bd5a]v6.0.178Compare Source
Patch Changes
ac6f27e: fix(ai): update opentelemetry pinned versionv6.0.177Compare Source
Patch Changes
5c73af8]v6.0.176Compare Source
Patch Changes
f591416: feat(ai): add toolMetadata for tool specific metdataf591416]v6.0.175Compare Source
Patch Changes
9a88b1d]v6.0.174Compare Source
Patch Changes
49f6d44]v6.0.173Compare Source
Patch Changes
7beadf0: feat(mcp): propagate the server name through dynamic tool parts7beadf0]v6.0.172Compare Source
v6.0.171Compare Source
Patch Changes
48f842a: fix(ai): enforcecallOptionsSchemaat runtime inToolLoopAgentToolLoopAgentSettings.callOptionsSchemawas declared and documented as a runtime schema foroptions, buttool-loop-agent.tsnever invoked it. Any invariant a developer encoded in the schema was silently bypassed at runtime, and uncheckedoptionsflowed straight intoprepareCalland anyinstructionstemplate that interpolated them.ToolLoopAgent.prepareCallnow validates caller-suppliedoptionsagainstcallOptionsSchema(when set) viasafeValidateTypes, throwingInvalidArgumentErroron failure before forwarding toprepareCall/generateText/streamText.a727da4: chore: ensure consistent import handling and avoid import duplicates or cycles5fee301: fix(mcp): prevent prototype pollution by using secureJsonParseUpdated dependencies [
a727da4]v6.0.170Compare Source
Patch Changes
19d587a: fix(ai): add allowSystemInMessages option and warn by default when system messages are found in prompt or messagesv6.0.169Compare Source
v6.0.168Compare Source
Patch Changes
493d7d4]v6.0.167Compare Source
Patch Changes
20805c8]v6.0.166Compare Source
Patch Changes
b8d28f4: fix(ai): omit reasoning-start/end when sendReasoning is falsev6.0.165Compare Source
Patch Changes
2ff8d57]v6.0.164Compare Source
Patch Changes
83434a9]v6.0.163Compare Source
Patch Changes
a27a631]v6.0.162Compare Source
Patch Changes
8c4abaf]v6.0.161Compare Source
Patch Changes
9031f26]v6.0.160Compare Source
Patch Changes
06f7838]v6.0.159Compare Source
Patch Changes
a0d9373]v6.0.158Compare Source
Patch Changes
295beba: fix(ai): fixlastAssistantMessageIsCompleteWithApprovalResponsesto no longer ignoreproviderExecutedtool approvalsv6.0.157Compare Source
Patch Changes
ff11aee: fix(ai): fixproviderExecutedtool approvals being passed to language model twicev6.0.156Compare Source
Patch Changes
08c5ac3]v6.0.155Compare Source
Patch Changes
06764c5: fix(ai): skip passing invalid JSON inputs to response messagesv6.0.154Compare Source
Patch Changes
37a378e]v6.0.153Compare Source
Patch Changes
f152133: feat (ai/core): support plain string model IDs inrerank()functionThe
rerank()function now accepts plain model strings (e.g.,'cohere/rerank-v3.5') in addition toRerankingModelobjects, matching the behavior ofgenerateText,embed, and other core functions.v6.0.152Compare Source
Patch Changes
d42076d: Add AI Gateway hint to provider READMEsv6.0.151Compare Source
Patch Changes
ec18852]v6.0.150Compare Source
Patch Changes
1003609: fix(ai): skip stringifying text when streaming partial text9de7d7b]v6.0.149Compare Source
Patch Changes
3aca847]v6.0.148Compare Source
Patch Changes
e923a24]v6.0.147Compare Source
Patch Changes
6247886]v6.0.146Compare Source
Patch Changes
5f439a1]v6.0.145Compare Source
Patch Changes
ffd431a]v6.0.144Compare Source
Patch Changes
0469aed: fix: allow inline data URLs in download validation0469aed]15bfbd2]v6.0.143Compare Source
Patch Changes
85e476d]v6.0.142Compare Source
Patch Changes
6f75953](https://redirect.github.com/vercel/ai/commit/6f75Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.