chore(deps): update dependency ai to v7#154
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
fb17338 to
ed2a23e
Compare
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.
This PR contains the following updates:
^5.0.0 || ^6.0.0→^5.0.0 || ^6.0.0 || ^7.0.0Release Notes
vercel/ai (ai)
v7.0.3Compare Source
Patch Changes
728eaa0]v7.0.2Compare Source
Patch Changes
9dce0a7]v7.0.1Compare Source
Patch Changes
b2791b3]330f6e2]v7.0.0Compare Source
Major Changes
986c6fd: feat(ai): change type of experimental_context from unknown to genericb0c2869: chore(ai): remove deprecatedmediatype part fromToolResultOutput1949571: feat(ai): make experimental_telemetry stable6542d93: feat(ai): change naming nomenclature for*TelemetryIntegrationto*Telemetry31f69de: fix(ai): carry prepareStep message overrides forward across steps7c71ac6: fix(ai): limit response messages in StepResult to messages created in that stepcf93359: feat(ai): remove/refactor event data sent via callbacks776b617: feat(provider): adding new 'custom' content type34bd95d: feat(ai): add support for uploading provider skills using the provider references abstraction1f7db50: fix(ai): remove experimental_customProvider3debdb7: feat(ai): renamestepCountIstoisStepCountfcc6869: refactor(ai/core): renameModelCallStreamParttoLanguageModelStreamPartand align stream model call naming (streamLanguageModelCall,experimental_streamLanguageModelCall).This updates experimental low-level stream primitives to use "language model call" terminology consistently.
ef992f8: Remove CommonJS exports from all packages. All packages are now ESM-only ("type": "module"). Consumers usingrequire()must switch to ESMimportsyntax.493295c: Remove the deprecatedToolCallOptionsexport.Use
ToolExecutionOptionsinstead.116c89f: feat(ai): remove telemetry data from the user-facing event datac29a26f: feat(provider): add support for provider references and uploading files as supported per provider3887c70: feat(provider): add new top-level reasoning parameter to spec and support it ingenerateTextandstreamText9bd6512: feat(provider): change file part data property to be tagged with a type and remove the image part type4b46062: refactoring(ai): extract tool callback invocation into separate function and forward chunks before callback invocation7e26e81: chore: rename experimental_context to context8359612: Start v7 pre-release5463d0d: feat(provider): align tool result output content file part types with top-level message file part types72223e7: chore(ai): remove deprecated isToolOrDynamicToolUIPart function57bf606: chore(ai): simplify unified telemetry creationb3c9f6a: feat(ai): create new opentelemetry package (@ai-sdk/otel)b9cf502: refactoring(ai): delay tool execution in stream text until model call is finished5b8c58f: feat(ai): decouple otel from core functions4e095b0: fix(ai): reject system messages in messages or prompt by default (opt-in)Patch Changes
e3d9c0e: 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.b56301c: feat(ai): decouple otel from generate/streamObject2427d88: feat(ai): change Tool.sensitiveContext to telemetry.includeToolsContext and make it opt-in38fc777: Add AI Gateway hint to provider READMEs023550e: DeprecatestreamTextresultfullStreamin favor ofstream.38ca8dc: fix(gateway): enable retry support for gateway errors19736ee: feat(ai): rename onStepFinish to onStepEnd6d76710: fix URL of hero animation in README5ceed7d: fix(ai): doStream should reflect transformed values4757690: feat(ai): rename onObjectStepFinish to onObjectStepEndbc47739: chore(ai): cleanup telemetry event datad1b3786: fix(ai): deprecate properties on result that have moved to finalStep382d53b: refactoring: rename context to runtimeContextff9ce30: feat(ai): introduce experimental callbacks for embed functionee798eb: chore(provider-utils): renameExperimental_SandboxtoExperimental_SandboxSession4873966: chore(ai): allow general usage oflogWarningsand emit them via Node API when availablee67d80e: fix: rename onFinish to onEnd7bf7d7f: feat(ai): enable:true for telemetry by default99bf941: feat(ai): extract streamModelCall function for streaming text generatione95e38d: fix: MakegenerateTextandstreamTextresultusagereport total usage across all steps and deprecatetotalUsage.6a3793e: chore(ai): add optional ChatRequestOptions toaddToolApprovalResponseandaddToolOutput5f3749c: refactoring: rename toolNeedsApproval to toolApproval016e877: feat(ai): addinstructionsas the primary prompt option and deprecatesystem2fe1099: feat(ai): emit streaming chunks throught the onChunk callbackf319fde: feat(ai): validate tool context against contextSchema at runtimeTool execution and approval callbacks now validate each tool's
toolsContextentry against itscontextSchema. Invalid tool context now throwsTypeValidationErrorwith tool-context validation metadata inerror.context.31ee822: refactoring(ai): extract filterActiveTools and expose it as experimental_filterActiveToolsb67525f: feat: instructions as prepareStep inpute68be55: fix(ai): skip stringifying text when streaming partial text1db29c8: feat(ai): breakCallSettingsapart intoLanguageModelCallOptionsandRequestOptions0a51f7d: 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.d1a8bed: fix(ui): exportisDynamicToolUIPartfromaipackagebcce2dd: feat(stream-text): expose standalone stream transformation helpers and deprecate the equivalentstreamTextresult methods.The new
toUIMessageChunkandtoUIMessageStreamhelpers let you convert astreamTextstream(or any compatibleReadableStream<TextStreamPart<TOOLS>>) into UI message chunks without going through the result object — useful for custom transports, tests, and other producers ofTextStreamPart.result.toUIMessageStreamResponse(options)andresult.pipeUIMessageStreamToResponse(response, options)can migrate by passingtoUIMessageStream({ stream: result.stream, ...options })tocreateUIMessageStreamResponseorpipeUIMessageStreamToResponse.The new
toTextStreamhelper extracts text deltas from astreamTextstream, soresult.toTextStreamResponse(options)andresult.pipeTextStreamToResponse(response, options)can migrate tocreateTextStreamResponse({ stream: toTextStream({ stream: result.stream }), ...options })andpipeTextStreamToResponse({ response, stream: toTextStream({ stream: result.stream }), ...options }).result.toUIMessageStream,result.toUIMessageStreamResponse,result.pipeUIMessageStreamToResponse,result.toTextStreamResponse, andresult.pipeTextStreamToResponseare now@deprecated. They still work in v7 and will be removed in the next major release. Migration snippets are in the v6 → v7 migration guide.2a74d43: Remove the deprecatedexperimental_prepareStepoption fromgenerateText.Use
prepareStepinstead.71d3022: fix(ai): unify generate text event callbacks6cca112: feat: add timeBetweenOutputTokensMs statsfd4f578: fix(ai): exclude request and response bodies from text generation results by default to reduce memory usage.511902c: skip validation for tool parts in terminal states when tool schema is no longer registereda5018ab: 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.
531251e: fix(security): validate redirect targets in download functions to prevent SSRF bypassBoth
downloadBlobanddownloadnow validate the final URL after following HTTP redirects, preventing attackers from bypassing SSRF protections via open redirects to internal/private addresses.eeefc3f: fix(ai): enforcetimeout.stepMsfor the whole step instreamTextPreviously
streamText's step timer was cleared synchronously right after the step's stream was registered, before the stream produced anything, sostepMsnever aborted a step that stalled before emitting content. The step timer now survives until the step's stream finishes or aborts, matchinggenerateText.chunkMs/totalMsand normal step-finish cleanup are unchanged.ec98264: feat(ai): allow multiple integrations to be registered at once43a6750: fix(ai): preserveallowSystemInMessagesacrossstreamTextretries67df0a0: feat: add sensitiveContext property to Toolb79b6a8: fix(ai): add approval guard for denied tool outputs81caa5d: fix(ai): remove ExtractLiteralUnion export4181cfe: fix(ai): hardengetMediaTypeFromUrlagainst prototype-property collisionsgetMediaTypeFromUrl(used to infer media types forfile-url/image-urlparts) usedext in URL_EXTENSION_TO_MEDIA_TYPEagainst a plain object literal. A URL ending in.constructortherefore resolved through the prototype chain and returned theObjectconstructor function, violating the helper's: stringreturn type and forwarding a non-string value to provider adapters.Switch to
Object.hasOwn(...)so attacker-controlled extensions like.constructorcannot resolve to inheritedObject.prototypekeys.208d045: fix(ai): skip global telemetry registration when local integration defined5a6f514: feat(ai): support several tools in hasToolCall stop conditioned74dae: fix(ui): makeinputoptional onoutput-errortool and dynamic-tool UI message partsvalidateUIMessagesrejected persisted assistant messages whoseoutput-errortool parts had noinputkey. This happened for any errored tool call where the SDK setinput: undefined(e.g.NoSuchToolError/InvalidToolInputError): JSON serialization stripped theundefinedvalue, and Zod 4.4+ treats a missingz.unknown()key as a validation failure (previously it was implicitly optional). The schema now matches the runtime shape produced byprocess-ui-message-stream, so reloading a thread that contains an errored tool call no longer throwsAI_TypeValidationError.ca99fea: feat: exposefinalStepon text generation results9b47dea: fix(ai): remove otel Tracer api from telemetry settings877bf12: fix(ai): flatten model attributes for telemetryeea8d98: refactoring: rename tool execution eventsd66ae02: Return validated elements from generateText array output5d0f18e: feat(ai): move opentelemetry to new package21d3d60: feat(harness): implement harness specification1582efa: chore(ai): remove the metadata field from the telemetry settings80d4dde: fix(ai): include tool input on tool result for provider executed dynamic tools98627e5: feat(ai): remove onChunk event from telemetry51ce232: feat(ai): add sensitiveRuntimeContext option82fc0ab: fix(ai): pass all stream text parts toonChunk1f509d4: fix(ai): force template check on 'kind' paramca446f8: feat: flexible tool descriptions176466a: chore(provider): align V4 model return types to have their own definitions across all model interfacesc0c8ca2: fix(ai): remove deprecated LanguageModelUsage properties75763b0: agents: tag outgoing requests with an ai-sdk-agent user-agent segment for usage attribution (tool-loop, workflow)6ec57f5: feat(ai): make the experimental lifecycle callbacks stable3ae1786: fix: better context type inferencea7de9c9: fix: make sandbox experimentalcaf1b6f: feat(ai): introduce experimental callbacks for rerank function9f0e36c: trigger release for all packages after provenance setupbefb78c: refactoring: remove real-time delays in unit tests6866afe: fix(ai): fixlastAssistantMessageIsCompleteWithApprovalResponsesto no longer ignoreproviderExecutedtool approvals29d8cf4: feat(ai): rename the core-event types2e17091: fix(types): move shared tool set utility types into provider-utilsMoved
ToolSet,InferToolSetContext, andUnionToIntersectioninto@ai-sdk/provider-utilsand updatedaiinternals to import them directly from there. This keeps the shared tool typing utilities colocated with the core tool type definitions.210ed3d: feat(ai): pass result provider metadata across the streama3fd75b: feat(ai): expose Experimental_ModelCallStreamPart typef4cc8eb: feat: add performance statistics2add429: fix(ai): skip passing invalid JSON inputs to response messages5588abd: feat(ai): add experimental_refineToolInput option to ToolLoopAgent, generateText, streamTexte80ada0: fix(ai): download tool-result file URLs58a2ad7: fix: more precise default message for tool execution denial62d6481: Post-publish release notifications now link to each package’s GitHub release and npm page.1fe058b: fix(anthropic): preserve the error code returned by model5c4d910: feat(ai): add newisLoopFinishedstop condition helper for unlimited stepse4182bd: chore: rm export of OutputInterface34fd051: feat(ai): add toolMs to timeout configuration72cb801: feat(ai): concurrent event notification2e98477: fix: retain stack traces on async errorsadd1126: refactoring: executeTool uses tool as parameter81a284b: fix(ai): handle partial unicode escapes in fixJson76fd58c: fix: consider file outputs and tool calls for time to first output7392266: feat: move includeRawChunks to include.rawChunks69aeb0e: feat: add deprecated tool call lifecycle callback aliases for AI SDK 6 compatibility.37d69b2: feat(ai): access runtime context in tool approval functions1043274: feat(ai): add a ModelCall start/end event350ea38: refactoring: introduce Arrayable type7f59f04: feat(ai): add approval reason to automatic tool approvals7677c1e: feat(ai): allow tool approval functions to return undefined476e1ca: feat(ai): remove telemetry dependency on onChunk callback008271d: feat(openai-compatible): emit warning when using kebab-case instead of camelCase7fc6bd6: Raise minimum supported Node.js version to 22. Supported versions: 22, 24, and 26.594029e: feat(ai): wrap the model call in telemetry context426dbbb: 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.25a64f8: Remove deprecated experimental generateImage exports.75ef93e: remove the deprecatedexperimental_outputalias and document theoutputmigration for AI SDK 7c26ca8d: Remove custom User-Agent header from HttpChatTransport to fix CORS preflight failures in Safari and Firefoxeaf849f: Rename rerank telemetry finish callback toonRerankEnd.664a0eb: 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.08d2129: feat(mcp): propagate the server name through dynamic tool parts5faf71c: feat: introduce responseMessages on GenerateTextResult and StreamTextResult0c4c275: trigger initial canary release118b953: feat(ai): decouple otel from embed functions6fd51c0: fix(provider): preserve error type prefix in getErrorMessage1dca341: fix: rename telemetry onFinish to onEndebd4da2: feat(ai): add missing usage attributesbc67b4f: feat(ai): add experimental callbacks for structured outputsf0b0b20: feat(ai): add per-tool timeout overrides via toolTimeouts2852a84: fix(ai): make input optional on input-streaming UIMessagePart variants2a9c144: feat(ai): add toolNeedsApproval optionce769dd: feat(provider): add experimental Realtime API support for voice conversationsAdds first-class support for realtime (speech-to-speech) APIs:
Experimental_RealtimeModelV4spec in@ai-sdk/providerwith normalized event types and factoryopenai.experimental_realtime()/google.experimental_realtime()/xai.experimental_realtime()work in both server and browser.getToken()static method on each provider for server-side ephemeral token creationexperimental_getRealtimeToolDefinitionshelper for provider session tool definitionsexperimental_useRealtimehook in@ai-sdk/reactreturningUIMessage[](aligned withuseChat), withonToolCallandaddToolOutputfor client-driven tool executioninputAudioTranscriptionsession config for showing transcribed user audio messages when supported by the providere3a0419: fix(ai): default missing embedding warnings to an empty arrayf04adcb: feat(ai): refreshcustomProviderandcreateProviderRegistryto support file and skill upload abstractions876fd3e: fix(ai): limit tool execution time duration to actual tool executione311194: feat(ai): allow passing provider instance touploadFileanduploadSkillas shorthand989d3d2: fix(ai): include generated files in OTEL response attributesb5092f5: fix(ai): do not re-validate tool input for output-error parts in validateUIMessages6dd6b83: feat(ai): change sensitiveRuntimeContext to telemetry.includeRuntimeContext and make it opt-in69254e0: feat(ai): add toolMetadata for tool specific metdata79b2468: feat: add request.messages to StepResult6c93e36: feat(provider-utils): addspawnCommandmethod toExperimental_Sandboxto allow for detached command execution2605e5f: fix test mocks to return the first array-backed result on the first call258c093: chore: ensure consistent import handling and avoid import duplicates or cyclesf58f9bc: fix(ai): remove stopWhen from onStart event8565dcb: fix: rename onEmbedFinish to onEmbedEnd6abd098: splitprepareToolsAndToolChoice()intoprepareTools()andprepareToolChoice()e1bfb9c: feat(ai): remove unnecessary data from events375fdd7: 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.89ad56f: PromotegenerateSpeechandSpeechResultto stable exports.f9a496f: PromotetranscribeandTranscriptionResultto stable exports, with deprecated experimental aliases for backwards compatibility.334ae5d: Update step performance metrics with explicit effective, input, output, and total token throughput fields.3295831: Harden stream text processing and middleware against prototype pollution from stream part IDs.b097c52: feat(ai): use tracing channels to track parent-child contexte79e644: chore(ai/core): removetimeoutfromCallSettingsas it was effectively unused there3015fc3: feat: sandbox shell execution abstractionb8396f0: trigger initial beta release48e92f3: feat: make include stable33d099c: fix(ai): omit reasoning-start/end when sendReasoning is falsee87d71b: feat(ai): support automatic tool approval in ui messagesa6617c5: feat(provider-utils): addreadFileandwriteFileplus convenience wrappers toExperimental_Sandboxabstractioneee1166: feat(ai): expose initial and response messages in prepareStep9d486aa: feat(ai): generic tool approval functionc3d4019: chore(ai): rename 'TelemetrySettings' to 'TelemetryOptions'28dfa06: fix: support tools with optional contextbcacd48: fix(ai): accumulative properties on StreamTextResult, GenerateTextResulte92fc45: feat(ai): introduce onAbort hook to close telemetry spans083947b: feat(ai): separate toolsContext from context47e65d6: fix(ai): tag step/chunk timeout aborts withTimeoutErrorreasonWhen
timeout: { stepMs }ortimeout: { chunkMs }fires, the abort reason is now aTimeoutErrorDOMException, matching whatAbortSignal.timeout()produces natively. Consumers can distinguish a framework timeout from a user-initiated cancel viasignal.reason.name === 'TimeoutError'.6a2caf9: Serializeundefinedtool output tonullin UI message chunks202f107: feat(ai): create a diagnostics channel to push event databae5e2b: fix(security): re-validate tool approvals from client message history before executionThe approval-replay path in
generateText/streamText(andWorkflowAgent.stream) reconstructed approved tool calls from the client-supplied messages array and executed them without re-validating input against the tool's schema or re-applying the approval policy. 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 validates HMAC signature (when
experimental_toolApprovalSecretis configured), re-validates tool-call input against the tool's input schema, and re-resolves the approval policy before execution.c907622: Add atoolOrderoption to control the order in which tools are sent to provider APIs.90e2d8a: chore: fix unused vars not being flagged by our lint toolingc4f4b5f: refactoring(ai): remove deprecated experimental_activeTools optionf4cfccd: feat(ai): decouple otel from rerank functionf5a6f89: README updatesf18b08f: fix: redact server error details from UI message streams by defaulttoUIMessageStream,createUIMessageStream, andtoUIMessageChunkdefaulted 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.7fd3360: Harden UI message stream processing against prototype pollution from chunk IDs.0416e3e: feat (video): add first-classgenerateAudiocall optiond775a57: feat: introduce Instructions typeb4507d5: 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.6147cdf: fix(ai): fix auto-complete on provider registry and custom providere93fa91: rename Sandbox.executeCommand to Sandbox.runCommandf32c750: refactoring(ai): simplify mergeAbortSignals7dbf992: feat(ai): allow prepareStep to override sandbox per step9b0bc8a: fix(mcp): prevent prototype pollution by using secureJsonParse4bb4dbc: feat: introduce include.requestMessage option for step request message storage opt-inc22750c: fix(ai): move onToolExecutionStart and onToolExecutionEnd to stable538c12b: feat: use instructions on ToolCallRepairFunction, parseToolCall, and eventsfc92055: feat(ai): automatic tool approvalf372547: fix(ai): fixproviderExecutedtool approvals being passed to language model twice1e4b350: Honortool.toModelOutputinWorkflowAgent.WorkflowAgentnow routes successful local, provider-executed, and approved tool results through each tool's optionaltoModelOutputhook, matchinggenerateText,streamText, andToolLoopAgent. Previously the hook was ignored and results were always serialized astextorjson.Internally exports the shared tool-result model-output helpers from
ai/internal, and uses the sharedgetErrorMessagebehavior for workflow tool error results.69d7128: fix(workflow): reuse the core tool-approval validation in WorkflowAgentWorkflowAgent.streampreviously reconstructed approved tool calls with a copy of the core collection logic and validated them inline. Because the logic was duplicated, it could drift from the hardenedgenerateText/streamTextimplementation. WorkflowAgent now collects approvals via the sharedcollectToolApprovalsand re-validates each one through the sharedvalidateApprovedToolApprovals(input-schema re-validation, HMAC signature verification when configured, and approval-policy re-resolution) in addition to its existingneedsApprovalguard, so a client-forged approval cannot execute a tool with unvalidated input. The duplicated collector was removed;collectToolApprovalsandvalidateApprovedToolApprovalsare now exported fromai/internal.ff5eba1: feat: rollimage-*tool output types into their equivalentfile-*typescc6ab90: feat(ai): rename ui message stream onFinish to onEnde27ed76: feat(devtools): add new devtools integration for telemetryv6.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]Configuration
📅 Schedule: (UTC)
* 0-3 * * *)🚦 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.