Skip to content

chore(ai): update @anthropic-ai/sdk to ^0.115.0 - #1213

Open
MingTeer wants to merge 1 commit into
PrimeIntellect-ai:mainfrom
MingTeer:upgrade/anthropic-sdk-0.115
Open

chore(ai): update @anthropic-ai/sdk to ^0.115.0#1213
MingTeer wants to merge 1 commit into
PrimeIntellect-ai:mainfrom
MingTeer:upgrade/anthropic-sdk-0.115

Conversation

@MingTeer

@MingTeer MingTeer commented Aug 11, 2026

Copy link
Copy Markdown

Summary

Updates @anthropic-ai/sdk from ^0.91.1 to ^0.115.0.

Newer SDK releases add file-based credential modules (OAuth profiles, token cache) that dynamically import("node:fs") / import("node:path"). Those code paths only run when using file credentials; the provider always passes an explicit apiKey, so they never execute in the browser. The browser smoke build now marks node:fs/node:path as external to keep the bundle resolvable.

The version satisfies the 7-day minimum release age (0.115.0 was published 2026-07-24).

Verification

  • npm run check passes: biome, tsgo (provider code compiles unchanged against 0.115 types), installer check, and the browser smoke bundle that previously failed with Could not resolve "node:fs".

Note

Update @anthropic-ai/sdk to ^0.115.0 and exclude Node builtins from browser bundle

  • Bumps @anthropic-ai/sdk from ^0.91.1 to ^0.115.0 in package.json.
  • Adds external: ["node:fs", "node:path"] to the esbuild config in check-browser-smoke.mjs, as the newer SDK dynamically imports these Node builtins in file-credential paths, which would otherwise break the browser smoke bundle build.

Macroscope summarized dc88293.

The SDK's file-credential modules dynamically import node builtins,
so exclude them from the browser smoke bundle; those paths never run
there since the provider always passes an explicit apiKey.
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