Skip to content

feat(anthropic): peer SDK 1.x and send anthropic-version 2026-10-21 fixes NV-9269 - #26

Merged
ChmaraX merged 1 commit into
mainfrom
nv-9269-thalamus-move-to-anthropic-aisdk-1x-and-anthropic-aiaws-sdk
Nov 2, 2026
Merged

ChmaraX merged 1 commit into
mainfrom
nv-9269-thalamus-move-to-anthropic-aisdk-1x-and-anthropic-aiaws-sdk

Conversation

@ChmaraX

@ChmaraX ChmaraX commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Why

Novu is moving to @anthropic-ai/sdk 1.3.0 and @anthropic-ai/aws-sdk 1.1.1. Thalamus still allowed 0.x peers, and the edge observer sent anthropic-version: 2023-06-01 while SDK 1.x sends 2026-10-21.

What changed

  • Optional peers are now @anthropic-ai/sdk and @anthropic-ai/aws-sdk >=1.0.0 <2. Dev dependencies resolve to 1.3.0 and 1.1.1.
  • createClient returns AnthropicAws with no cast. aws-sdk 1.x extends Anthropic.
  • buildApiHeaders sends anthropic-version: 2026-10-21. The edge test asserts that value and the existing beta header.
  • CHANGELOG.md is unchanged. The release script writes it from the commit subject, which is marked breaking (feat(anthropic)!:).

Scope

This covers the Thalamus peer floor and the edge stream header. It does not bump the package version or publish a release. Novu still has to run SDK 1.x (NV-9264) or the edge stream and the SDK call in one session use different API versions.

Blast radius

Consumers still on SDK 0.x no longer satisfy the peer range. Session event mapping is unchanged.

Verification

  • tsc --noEmit passes on this tree.
  • The edge observer test passes (4 tests), including the new 2026-10-21 assertion.
  • Against SDK 1.3.0 and aws-sdk 1.1.1, with fetch stubbed, the SDK requests and the observe body both sent 2026-10-21.

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge; no actionable defects were established.

Summary

Updates Anthropic support to SDK 1.x and changes the edge stream's API-version header.

  • Thalamus supports Anthropic SDK 1.x clients.
  • Edge observers send Anthropic API version 2026-10-21.

No actionable issues were established. Dependencies were not installed, so tests and SDK behavior were not independently verified.

Acknowledged scope from ChmaraX: dropping SDK 0.x support is intentional. Package publishing and the consumer SDK upgrade are deferred. CHANGELOG.md is intentionally unchanged because the release script generates it.

Reviews (1) · Last reviewed commit: "feat(anthropic)!: peer SDK 1.x and send ..." · Reviewed by Greptile

Consumers still on @anthropic-ai/sdk or @anthropic-ai/aws-sdk 0.x no longer satisfy the peer range. The edge observer now sends the same API version as SDK 1.3.0, and createClient returns AnthropicAws with no cast.

fixes NV-9269
@linear-code

linear-code Bot commented Nov 2, 2026

Copy link
Copy Markdown

NV-9269

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​anthropic-ai/​sdk@​0.131.0 ⏵ 1.3.066100100 +999100
Updated@​anthropic-ai/​aws-sdk@​0.3.0 ⏵ 1.1.199 +2210075 +2100 +6100

View full report

@ChmaraX
ChmaraX merged commit 3ba270f into main Nov 2, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant