ai
7.0.176 · 17 Nov 2026Apache-2.048.6M / weekRepositoryHomepagenpmAtom feed
Upgrading ai From 7.0.177 to 7.0.178
1 release in betweenevery note read
Reading releases, release notes and advisories…
Release by release
- New
Add telemetry, runtime context and lifecycle callbacks to
experimental_extract - Fixed
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. - Fixed
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 messages - Fixed
Redact file urls from download errors sent to telemetry
- Fixed
ai: Build the
ai,ai/internal, andai/testentrypoints together so their types stay compatible with each other - Fixed
With
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.
- New
1 internal line (docs, tests, tooling) left out.
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.