chore(ai): update @anthropic-ai/sdk to ^0.115.0 - #1213
Open
MingTeer wants to merge 1 commit into
Open
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Updates
@anthropic-ai/sdkfrom ^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 explicitapiKey, so they never execute in the browser. The browser smoke build now marksnode:fs/node:pathas 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 checkpasses: biome, tsgo (provider code compiles unchanged against 0.115 types), installer check, and the browser smoke bundle that previously failed withCould not resolve "node:fs".Note
Update
@anthropic-ai/sdkto^0.115.0and exclude Node builtins from browser bundle@anthropic-ai/sdkfrom^0.91.1to^0.115.0in package.json.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.