Packages

ai

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

Your version

6.0.37

15 Jan 2026Where it was published

6.0.336 is the newest release of 6.x.

In short

1 fixed

Release note

Patch Changes

  • ai: Maintain OpenTelemetry context across async generator yields

    Fixes an issue where OpenTelemetry context was lost at async generator yield boundaries, causing nested ToolLoopAgent spans to escape to the parent agent's level in observability platforms.

    The fix ensures that when recordSpan is used with async generators (e.g., in tool execution), the active context is explicitly maintained using context.with(), preventing span hierarchy corruption in nested agent scenarios.

    Closes #11720

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.