Packages

ai

7.0.176 · 17 Nov 2026Apache-2.048.6M / weekRepositoryHomepagenpmAtom feed

Your version

7.0.178

20 Nov 2026Where it was published

7.0.179 is the newest release of 7.x.

In short

1 new5 fixed1 internal

Release note

Patch Changes

  • generateText and streamText passed the messages array that prepareStep returned to tools and tool approval functions as it was. When prepareStep returned 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 that prepareStep returns are copied.

  • ai: Forward the preliminary flag on provider-executed tool results in streamText, so preliminary results (e.g. OpenAI image generation previews) are no longer recorded as final tool results in step content and response messages

  • Add telemetry, runtime context and lifecycle callbacks to experimental_extract

  • Redact file urls from download errors sent to telemetry

  • ai: Build the ai, ai/internal, and ai/test entrypoints together so their types stay compatible with each other

  • With experimental_toolApprovalSecret configured, generateText and streamText signed 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 with AI_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.