NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm, #4482 most downloaded on npm
Latest stable
4.0.102
Last release 7 days ago
10 Nov 2026
Ships on a steady schedule
a new release about every 9 days
Most releases are documented
notes for 36 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
3 years old
688 releases · first in 2024
Drag across the ruler to compare, or tap a release to open it.
Updated dependencies [ 2b1c2df ]
Updated dependencies [ 14810cb ]
Your coding agent can read these notes before it upgrades. Set up the MCP server →
2ebc78b: Move Node.js connection-time DNS validation to the optional guarded-fetch package. It uses an Undici agent to validate every resolved address and pin the connection to those results, independently of global fetch wrappers. It supports explicitly trusted private origins and connection-pool cleanup.
Security behavior change: provider-utils now uses the configured fetch or the runtime's global fetch and no longer depends on Undici. Default URL checks still reject private IP literals, local hostnames, unsafe schemes, and unsafe redirect URLs, but do not block public-looking hostnames that resolve to private addresses or DNS rebinding. Applications fetching untrusted URLs should inject createGuardedFetch() on Node.js or enforce equivalent network egress restrictions.
Allow downloadBlob to accept a fetch transport so applications can apply the same protection to file downloads.
MCP OAuth discovery keeps its strict DNS requirement: because Node.js no longer has a DNS-pinned default transport, untrusted authorization-server, redirect, token, and registration URLs now require an explicit custom fetch with connection-time DNS validation on Node.js too. Pass createGuardedFetch() through transport.fetch. The configured MCP server origin and browser window discovery remain supported.
Updated dependencies [2ebc78b]
Updated dependencies [cb4fa52]
Patch Changes ai@7.0.164
85b920f : feat(workflow): remove experimental_transform from WorkflowAgent.stream()
85b920f: feat(workflow): remove experimental_transform from WorkflowAgent.stream()
Stream transforms cannot reliably run across workflow step boundaries, so the option has been removed along with the StreamTextTransform type export.
Updated dependencies [5d18351]
Updated dependencies [8da48db]
Updated dependencies [fd7e8a7]
Updated dependencies [36802d4]
Updated dependencies [933dae3]
Updated dependencies [e0143b0]
Updated dependencies [934100c]
Updated dependencies [c389374]
Updated dependencies [892af4d]
Updated dependencies [892af4d]
Updated dependencies [89aff56]
Updated dependencies [1a1da8d]
Updated dependencies [41465fd]
Updated dependencies [9754014]
Updated dependencies [4bb73b0]
Updated dependencies [2e44144]
4d6d830 : Support a single telemetry operation for durable WorkflowAgent runs, including the prompt, final output, steps, and tools. Events recorded i
WorkflowAgent runs, 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 same OpenTelemetryIdGenerator instance as the tracer provider's idGenerator and sampler and as new 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 enclosing invoke_agent tree 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.Updated dependencies [ fd889a3 ]
Updated dependencies [ 26165ee ]
Patch Changes ai@7.0.159
Updated dependencies [ 77d33c0 ]
5c247e9: feat(sandbox): add stat, listDirectory, and deleteFile to Experimental_SandboxSession, and specify that relative paths in every method resolve against the directory run and spawn start in
The just-bash and Vercel Sandbox adapters implement the new methods. Both now resolve a relative workingDirectory for run and spawn against 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 [8ba3a5c]
Updated dependencies [5c247e9]
Updated dependencies [dcd2f8d]
0cc4921 : graduate LanguageModelStreamPart to stable and deprecate Experimental_LanguageModelStreamPart
filterActiveTools from experimental. It is now exported as filterActiveTools; experimental_filterActiveTools remains as a deprecated alias.Patch Changes ai@7.0.156
Updated dependencies [ 9e8e087 ]
Updated dependencies [ 47236dd ]
e729d58 : chore(docs): update README.md for consistent format and to avoid duplication
f5fc6ba: Derive known model ID suggestions from each provider's model catalog declarations so catalog updates automatically update autocomplete, while
f5fc6ba: Derive known model ID suggestions from each provider's model catalog declarations so catalog updates automatically update autocomplete, while
Updated dependencies [ 8202f5b ]
2ebc78b: Forward the provider's configured fetch transport when downloading file inputs. Add a fetch option to createDownload so core downloads can also use guarded-fetch for opt-in DNS validation on Node.js. The function returned by createDownload can now also be passed as experimental_download to generateText and streamText, and experimental_download now also handles generated file URLs returned by the model, so one hook covers all core downloads. Document that the default URL checks do not resolve DNS and recommend the guarded transport or network egress controls for untrusted URLs.
Keep Azure image and Vertex tool-result downloads separate from provider authentication wrappers so file hosts never receive Azure bearer tokens or Vertex Express Mode API keys.
Pass the call's abort signal to custom download requests, including prompt assets and generated files, so experimental_download: createDownload({ fetch }) preserves cancellation and timeouts.
Updated dependencies [2ebc78b]
Updated dependencies [cb4fa52]
0a5d0e7 : Fix toolChoice: 'none' by forwarding it to the Hugging Face Responses API and rejecting tool calls before local execution in generateText ,
0a5d0e7: Fix toolChoice: 'none' by forwarding it to the Hugging Face Responses API and rejecting tool calls before local execution in generateText, streamText, and WorkflowAgent. Streamed tool parts are withheld so client-side tools cannot act on them, and repairToolCall and experimental_refineToolInput are not invoked for rejected tool calls.
10026d1: Add the interrupted finish 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 interrupted to the public finish-reason types can break type checking after upgrading, even though this is a patch release. Exhaustive switches (for example, using an assertNever fallback) and mappings such as Record<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 check finishReason === 'interrupted' as well as their existing error handling.
08335ae: Retain custom content parts (e.g. openai.compaction) in WorkflowAgent.stream() step results and subsequent model requests
Updated dependencies [1727442]
Updated dependencies [0a5d0e7]
Updated dependencies [10026d1]
Updated dependencies [ b089ce8 ]
Nothing published for this version
Updated dependencies [ 0c2a9de ]
Nothing published for this version
793220f : Refactor Voyage model ID logic into a model catalog that declares capabilities and provider options, and generate provider capability docume
Updated dependencies [ 8a5233b ]
Nothing published for this version
Updated dependencies [ 2d172fb ]
9523eb0 : feat(ai): add configurable tool call execution concurrency
Updated dependencies [ 61a315e ]
1506ee1 : Fix WorkflowChatTransport retrying indefinitely when successful reconnect responses contain no UI message chunks. Empty streams now count to
WorkflowChatTransport retrying indefinitely when successful reconnect responses contain no UI message chunks. Empty streams now count toward maxConsecutiveErrors, while streams that receive chunks continue to advance the resume cursor and reset the error count.Updated dependencies [ e27cc64 ]
Updated dependencies [ 7b5497c ]
Nothing published for this version
Nothing published for this version
Patch Changes Updated dependencies [9184a35] ai@7.0.133 @ai-sdk/provider@4.0.25 @ai-sdk/provider-utils@5.0.57
Updated dependencies [ 0c2a9de ]
Nothing published for this version
Updated dependencies [ 6f6b9c0 ]
Nothing published for this version
d9e04cb : fix(workflow): reuse persisted tool denial results during approval resumption
a471b4c : Document and validate WorkflowAgent generation deadlines, retry boundaries, hook cancellation, and selected result serialization across work
WorkflowAgent.generate() with a shared tool loop, a 20-step default, typed output, and core generation result semantics. Reuse core result and content construction through internal exports while preserving existing Workflow streaming behavior. Transport-independent approval creation remains separate follow-up work.Nothing published for this version
Patch Changes Updated dependencies [9184a35] @ai-sdk/provider@4.0.25 @ai-sdk/provider-utils@5.0.57
Updated dependencies [ d3bcad9 ]
Nothing published for this version
Updated dependencies [ 2959d35 ]
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
7f803af : feat(alibaba): preserve reasoning in multi-turn requests by default on supported models
Patch Changes ai@7.0.117
af9597b : Compile packages for ES2022 runtime target
Updated dependencies [ b5679a7 ]
Nothing published for this version
Nothing published for this version
Updated dependencies [ 31d24ce ]
Patch Changes ai@7.0.110
Updated dependencies [ 0343bb1 ]
Nothing published for this version
a105059 : fix(workflow): support deferred tool discovery in WorkflowAgent
One column per month.