Repository navigation
chore(deps): update ai sdk core and providers - #2274
Conversation
|
Important Review skippedAuto reviews are limited based on label configuration. 🏷️ Required labels (at least one): 1
Please check the settings in the CodeRabbit UI or the
|
Review statusThis PR was opened by an automated account. A human maintainer must verify the change intent, provenance, and validation before merging. Current step: The required review sequence passed. Remaining merge requirements apply. Review-state labels are managed by this workflow; do not edit them manually. |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
63e0918 to
9fb3604
Compare
9fb3604 to
c0c6c29
Compare
c0c6c29 to
e9d7dc3
Compare
e9d7dc3 to
1fa01da
Compare
1fa01da to
59a414a
Compare
59a414a to
eb6b149
Compare
eb6b149 to
32b17ec
Compare
Upstream moved e943530 to 73931fe, 9 commits: Zoo-Code-Org#2275 zustand v5.0.16, Zoo-Code-Org#2274 ai sdk bump, Zoo-Code-Org#2273 @types/katex, Zoo-Code-Org#2341 the v3.96.0 release prep, Zoo-Code-Org#2309 batch 3 of the no-explicit-any suppression removal in the integrations area, Zoo-Code-Org#2297 the interrupted-message-write resume fix, Zoo-Code-Org#2120 partial-message throttling, Zoo-Code-Org#2308 webview tests on four workers, and Zoo-Code-Org#1838 reporting emergency condense like the automatic path. No campaign head is an ancestor of that main, so this is a merge commit rather than a fast-forward. The single conflict was the src/extension/api.ts import block. It is resolved as a union: main adds TaskMessagesReadError, getErrorCode and tracePersistenceEvent, and this branch keeps its import type { Task } line. Neither side was dropped. Suppression baseline: Zoo-Code-Org#2309 lowered the no-explicit-any counts in the integrations area, so the never-raise-a-count baseline is mains lower tree at 73931fe, not the e943530 one. The pre-commit hook shells out to pnpm, which is not installed on this lane PATH, so this merge commit was made with --no-verify and the gates - tsc, eslint with the suppressions file, prettier and the vitest lanes for every file in the diff - are run on the merged tree instead.
This PR contains the following updates:
2.0.87→2.0.904.0.62→4.0.647.0.148→7.0.162Release Notes
vercel/ai (@ai-sdk/openai-compatible@2)
v2.0.90Compare Source
Patch Changes
d900e58: fix(openai-compatible): preserve string tool call arguments and safely serialize BigInt and circular structures in tool calls and outputsd900e58]d900e58]d900e58]v2.0.89Compare Source
Patch Changes
03066cf: fix(openai-compatible): sendreasoningEffort: nullas"reasoning_effort": null, and stop an unsetreasoningEffortfrom overwriting a rawreasoning_effortprovider optionv2.0.88Compare Source
Patch Changes
28252da]vercel/ai (ai)
v7.0.162Compare Source
Patch Changes
857ca45: Restore server-defined tool metadata, dynamic status, and title when validating tool approval continuations so approval policies receive the same tool definition fields as new model calls.4d6d830: Support a single telemetry operation for durableWorkflowAgentruns, including the prompt, final output, steps, and tools. Events recorded in the workflow are reported on completion or suspension with their original timestamps. For OpenTelemetry, pass the sameOpenTelemetryIdGeneratorinstance as the tracer provider'sidGeneratorandsamplerand asnew OpenTelemetry({ durable }). This explicit bridge carries parent trace context and sampling across steps, reports model spans live with provider requests nested beneath them, and reconstructs the enclosinginvoke_agenttree when the run completes. Without the bridge, existing live per-model tracing is preserved. Add typed experimental durable context hooks for telemetry integrations; remove reliance on process-global ID-generator detection.fa15312]v7.0.161Compare Source
Patch Changes
51ca5b7: fix(ai): support cross-realm Uint8Array and ArrayBuffer in DefaultGeneratedFile51ca5b7: fix(ai): handle cross-realm Uint8Array and ArrayBuffer in data-content and file-part-data51ca5b7: fix(ai): support cross-realm binary buffers and circular structures in cloneModelMessages51ca5b7]dc6f1c3]4ae6986]v7.0.160Compare Source
Patch Changes
a71172d: fix(ai): clarify inverted smoothStream prefix error messagecf27969: add steering.queue() to send a message once the current task is done17b6923: fix(ai): validate streamed data parts againstdataPartSchemasprocessUIMessageStreamlooked updataPartSchemasby the full chunk type (data-weather) instead of the bare part name (weather), souseChat/Chatnever validated streamed data parts. Invalid data parts now raise aTypeValidationError.Updated dependencies [
2099d45]Updated dependencies [
d05ff62]v7.0.159Compare Source
Patch Changes
cbc9ac0]v7.0.158Compare Source
Patch Changes
8ba3a5c: fix(ai): repair partial JSON that ends with a minus sign at the start of an array5c247e9: feat(sandbox): addstat,listDirectory, anddeleteFiletoExperimental_SandboxSession, and specify that relative paths in every method resolve against the directoryrunandspawnstart inThe just-bash and Vercel Sandbox adapters implement the new methods. Both now resolve a relative
workingDirectoryforrunandspawnagainst the sandbox's working directory, and the just-bash adapter rejects writes to a directory instead of replacing it with a file.Updated dependencies [
7716e18]Updated dependencies [
f850782]Updated dependencies [
5c247e9]Updated dependencies [
dcd2f8d]v7.0.157Compare Source
Patch Changes
0cc4921: graduate LanguageModelStreamPart to stable and deprecate Experimental_LanguageModelStreamPart077cfb3: feat(ai): GraduatefilterActiveToolsfrom experimental. It is now exported asfilterActiveTools;experimental_filterActiveToolsremains as a deprecated alias.eb768e2: Fix Next.js Edge Runtime warnings from Node.js runtime detection used by telemetry tracing.9ca8bcf]61a315e]v7.0.156Compare Source
Patch Changes
9f19c79]v7.0.155Compare Source
Patch Changes
b6b9dca: chore(ai): remove runtime validation of inputs that TypeScript types already guaranteestreamText,generateText,generateObjectandstreamObjectno longer validate messages against theModelMessageschema. This removes a cost that grew linearly with message history and was paid on everystreamTextstep. Type checks on call settings, steering messages, tool caller configuration,smoothStreamchunking,experimental_streamSpeechtext input, the shape ofdecidestate and questions, and the batch reference version have also been removed. Value constraints that types cannot express, such as integer ranges, non-empty collections, unknown keys, and non-finite numbers or cycles indecideJSON input, are still validated.Updated dependencies [
57086ff]Updated dependencies [
01d7a03]Updated dependencies [
95348b3]v7.0.154Compare Source
Patch Changes
47236dd: add onStepError callback to generateText, streamText, ToolLoopAgent and telemetry integrations, and onError and onAbort to ToolLoopAgentc8e8866: AddaiVersionto telemetry events so tracing-channel subscribers and telemetry integrations can identify the emittingaipackage version, including in bundled applications and applications with multiple SDK versions.1cf95c6: add experimental steering to generateText, streamText and ToolLoopAgente64ed82]v7.0.153Compare Source
Patch Changes
5475347: Fix non-streaming Responses API structured output failing when multiple assistant messages contain JSON. Providers can supply separate structured-output text for parsing, allowing OpenAI and Azure Responses models to select the lastfinal_answerwhile preserving all generated content, annotations, conversation history, and token usage.5475347]e729d58]v7.0.152Compare Source
Patch Changes
a706678]v7.0.151Compare Source
Patch Changes
1bf6d85]v7.0.150Compare Source
Patch Changes
8e18d59: feat(ai): add experimental_streamSpeechStreams speech audio from a string, or an array, iterable, or stream of text deltas and/or text parts (each with an optional
voiceandproviderOptions) using speech models that implement the experimentalExperimental_StreamingSpeechModelV4extension. Returns a single-consumeraudioStream/fullStreamplususage,warnings,responses, andproviderMetadatapromises. Providererrorparts are non-fatal and reported throughonError(defaultconsole.error). A user abort or a cancel rejects the result promises immediately. Exports theExperimental_SpeechTextPart,Experimental_SpeechStreamPart,Experimental_SpeechStreamUsage, andExperimental_StreamSpeechResulttypes, adds an optionalcausetoNoSpeechGeneratedError, and addsExperimental_MockStreamingSpeechModelV4toai/test.Updated dependencies [
8202f5b]Updated dependencies [
85d84a1]v7.0.149Compare Source
Patch Changes
1727442: fix(ai): process only the first approval response per tool call, so repeated or conflicting responses in the final tool message no longer execute a tool twice or both execute and deny it0a5d0e7: FixtoolChoice: 'none'by forwarding it to the Hugging Face Responses API and rejecting tool calls before local execution ingenerateText,streamText, andWorkflowAgent. Streamed tool parts are withheld so client-side tools cannot act on them, andrepairToolCallandexperimental_refineToolInputare not invoked for rejected tool calls.10026d1: Add theinterruptedfinish reason for provider streams that end without a completion signal. Preserve partial output without introducing an error solely for interruption, and stop tool execution, agent continuation, and automatic UI follow-ups for interrupted responses, including late tool results and approvals. Provider detection and emission will be added separately.Compatibility notice: Adding
interruptedto the public finish-reason types can break type checking after upgrading, even though this is a patch release. Exhaustive switches (for example, using anassertNeverfallback) and mappings such asRecord<FinishReason, string>must handle the new value. Update any custom validation or application logic that assumes the existing set of finish reasons is exhaustive.When providers begin emitting
interrupted, a stream ending without a completion signal will preserve partial output and report this finish reason without emitting an error solely for the interruption. Applications that need to detect incomplete responses should checkfinishReason === 'interrupted'as well as their existing error handling.Updated dependencies [
101ce42]Updated dependencies [
e104368]Updated dependencies [
eb1f056]Updated dependencies [
10026d1]Updated dependencies [
5893e99]Configuration
📅 Schedule: (in timezone America/Los_Angeles)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.