ai
7.0.176 · 17 Nov 2026Apache-2.048.6M / weekRepositoryHomepagenpmAtom feed
7.0.179 is the newest release of 7.x.
In short
1 new5 fixed1 internal
Release note
Patch Changes
generateTextandstreamTextpassed the messages array thatprepareStepreturned to tools and tool approval functions as it was. WhenprepareStepreturned the same array for several steps or calls, tool approval functions could not tell the tool calls of one model response from the tool calls of another. The messages array of every step is now created for that step, so the messages thatprepareStepreturns are copied.ai: Forward the
preliminaryflag on provider-executed tool results instreamText, so preliminary results (e.g. OpenAI image generation previews) are no longer recorded as final tool results in step content and response messagesAdd telemetry, runtime context and lifecycle callbacks to
experimental_extractRedact file urls from download errors sent to telemetry
ai: Build the
ai,ai/internal, andai/testentrypoints together so their types stay compatible with each otherWith
experimental_toolApprovalSecretconfigured,generateTextandstreamTextsigned the approval request of a tool call that the tool approval policy had denied automatically. A client that controls the message history could send that request back with an approved response and have the denied tool call executed. Approval requests of automatically denied tool calls are no longer signed, so such a response is rejected withAI_InvalidToolApprovalSignatureError.Signatures that earlier versions issued for automatic denials stay valid. To invalidate them, rotate the secret passed to
experimental_toolApprovalSecret. Approval requests that are still waiting for a user decision then have to be requested again.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.