NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm, #2521 most downloaded on npm
Latest stable
4.0.146
Last release 4 days ago
13 Nov 2026
Ships on a steady schedule
a new release about every 8 days
Some releases are documented
notes for 29 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
1 years old
846 releases · first in 2025
Drag across the ruler to compare, or tap a release to open it.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
f6809e3 : fix(workflow): align the prepareStep results of WorkflowAgent with ToolLoopAgent . Returned instructions (or the deprecated system ) replace…
ff89832: fix(workflow): call onAbort instead of onError when a WorkflowAgent call is aborted during a model step with a custom abort reason. generate() still rejects with that reason. stream() now resolves with the steps that finished, as it does for an abort without a reason.
2473a71: fix(workflow): WorkflowAgent uses the last value yielded by an async generator tool as the tool result, like ToolLoopAgent. A generator that throws after yielding produces a tool error.
f43ee39: fix(workflow): log the default step limit warning when WorkflowAgent.generate() stops at the default limit.
7ce7ffc: fix(workflow): log provider warnings in WorkflowAgent
WorkflowAgent.generate() and WorkflowAgent.stream() now log the warnings of every model call through the AI SDK warning logger, like ToolLoopAgent. The AI_SDK_LOG_WARNINGS global controls the output.
f6809e3: fix(workflow): align the prepareStep results of WorkflowAgent with ToolLoopAgent. Returned instructions (or the deprecated system) replace the instructions of the step and carry forward to later steps, returned providerOptions are merged with the agent options, and returned headers are merged over the headers of the call.
9307549: feat(workflow): support experimental_refineToolInput in WorkflowAgent, in the constructor and per call. Refined tool inputs are used for tool execution, step results, callbacks, and the next model call, like in ToolLoopAgent.
bf1dd2a: fix(workflow): WorkflowAgent.stream() keeps the tool call in the step result when the model calls an unknown tool or passes input that does not match the schema. The call is marked invalid and the step has a tool-error part, as in generate() and ToolLoopAgent. The model still receives the error as a tool result.
453d880: fix(workflow): call the onInputAvailable tool hook in stream() when the provider sends a tool call without streaming its input first.
5c0e984: fix(workflow): report the provider name and model ID of the called model in the steps of WorkflowAgent.stream() results, matching ToolLoopAgent and WorkflowAgent.generate()
2559173: feat(workflow): support toolApproval in WorkflowAgent
WorkflowAgent accepts a toolApproval configuration in the constructor and per generate() or stream() call. The configuration takes precedence over a tool's needsApproval setting, and its functions run in workflow context, outside of the durable model steps. Calls that the configuration approves run in the same step, and calls that it denies receive an execution-denied tool result without pausing the workflow.
b9f6c82: feat(workflow): support toolOrder in WorkflowAgent
WorkflowAgent accepts toolOrder in the constructor, per call in generate() and stream(), and from prepareCall and prepareStep. Listed tools are sent first in the listed order, and the remaining tools follow in alphabetical order.
f1de9cb: feat(workflow): support the timeout object in WorkflowAgent
generate() and stream() accept timeout: { totalMs, stepMs, firstChunkMs, chunkMs } in addition to a number. stepMs limits each model call. In stream(), firstChunkMs and chunkMs limit the wait for model output. Invalid timeout values are rejected with an InvalidArgumentError. A timeout now also ends a model step when the provider stream ignores the abort signal.
Updated dependencies [3c09e00]
Updated dependencies [f43ee39]
Updated dependencies [7ce7ffc]
Updated dependencies [f6809e3]
Updated dependencies [2559173]
Updated dependencies [f1de9cb]
b161730 : fix(workflow): WorkflowAgent now accepts onError and onAbort in the constructor, like ToolLoopAgent . They are called before the callbacks p
WorkflowAgent now accepts onError and onAbort in the constructor, like ToolLoopAgent. They are called before the callbacks passed to generate() or stream(). An error thrown by an onError or onAbort callback no longer replaces the error or result of the run.WorkflowAgent no longer receive the system prompt or the assistant message that contains the current tool call in options.messages. The messages passed to onToolExecutionStart and onToolExecutionEnd no longer contain the system prompt either. This matches ToolLoopAgent, generateText, and streamText.model, toolChoice, activeTools, and generation settings returned from prepareStep in WorkflowAgent now apply to the current step only, like in ToolLoopAgent. Before, an override returned for one step stayed in effect for all later steps.WorkflowAgent.stream() now aggregates totalUsage the same way as ToolLoopAgent. Token details such as cached and reasoning tokens are kept, and counts that the provider did not report stay undefined instead of becoming 0.8549a1d : feat(xai): add safetyIdentifier Responses provider option
8549a1d: feat(xai): add safetyIdentifier Responses provider option
Sends safety_identifier with Responses API requests so xAI can attribute a policy violation to one end user, and exposes the echoed value on providerMetadata.xai.safetyIdentifier.
Updated dependencies [49c554d]
Updated dependencies [db18e4f]
Updated dependencies [ce27f15]
Updated dependencies [b753c03]
Updated dependencies [ 0a069bd ]
2b1c2df: Keep default Node.js downloads protected by DNS validation and connection pinning when frameworks or instrumentation wrap global fetch before
8e40444 : Defer validation schema construction until first use to reduce provider import time.
@ai-sdk/openai-compatible@1.0.58
Updated dependencies [ 14810cb ]
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]
Updated dependencies [ 6400cf8 ]
baseUriDomains in MCP App CSP metadata.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 ]
a9cea74: Keep default Node.js downloads protected by DNS validation and connection pinning when frameworks or instrumentation wrap global fetch before
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
@ai-sdk/openai-compatible@2.0.81
Updated dependencies [ 47236dd ]
@ai-sdk/openai-compatible@2.0.81
Patch Changes ai@7.0.152
@ai-sdk/openai-compatible@2.0.81
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]
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
88ea0d7 : fix(workflow): pass runtime context allowed by 'telemetry.includeRuntimeContext'
WorkflowAgent, matching streamText. Defaults, transforms, coercion, refinements, unknown-key handling, custom validators, repairToolCall, and lifecycle callbacks now behave the same in durable runs, and approval requests retain the pre-transform input so transforms do not run twice on resume.9523eb0 : feat(ai): add configurable tool call execution concurrency
### Patch Changes - Updated dependencies [a9cea74] - Updated dependencies [a9cea74] - Updated dependencies [a9cea74] - @ai-sdk/provider-utils@4.0.57
f6a20b4: fix cached input token reporting for OpenAI-compatible DeepSeek responses
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
4d0500e: fix(mcp): identify failed OAuth tokens for conditional invalidation
### Patch Changes - Updated dependencies [8c65988] - Updated dependencies [527a163] - @ai-sdk/provider@4.0.21 - @ai-sdk/provider-utils@5.0.53
### Patch Changes - Updated dependencies [a9cea74] - Updated dependencies [a9cea74] - Updated dependencies [a9cea74] - @ai-sdk/provider-utils@4.0.57
One column per month.