fix(deps): align @anthropic-ai/sdk with claude-agent-sdk peer range - #1125
Merged
Conversation
code-yeongyu
enabled auto-merge
August 26, 2026 05:12
@anthropic-ai/claude-agent-sdk@0.3.241 requires @anthropic-ai/sdk >=0.93.0, but the pin was 0.91.1, so installs warned: warn: incorrect peer dependency "@anthropic-ai/sdk@0.91.1" Bump the pin to 0.120.0 (current latest) across the root override and every workspace that depends on the SDK.
Regenerated via npm run refresh-lock (lockfile + registry metadata + shrinkwrap + install-lock), plus the standalone example extension lock. @anthropic-ai/sdk dedupes to a single root entry; standardwebhooks, @stablelib/base64 and fast-sha256 are new transitive deps of the SDK. No other package versions change.
@anthropic-ai/sdk >=0.93.0 ships a Node-only credentials subsystem that reaches node:fs and node:path via dynamic imports the SDK guards at runtime. esbuild still hard-errors on the unresolvable builtins when bundling for the browser, and the claude-agent-sdk peer floor forces >=0.93.0, so no compliant SDK version passes the check. Mark node: specifiers external only when the importer lives inside node_modules/@anthropic-ai/sdk. senpi-owned browser-facing code that imports a Node builtin still fails the check.
code-yeongyu
force-pushed
the
fix/anthropic-sdk-peer-alignment
branch
from
August 26, 2026 05:18
7b23635 to
066408d
Compare
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
@anthropic-ai/sdk(0.91.1 -> 0.120.0) with@anthropic-ai/claude-agent-sdk@0.3.241's peer requirement (>=0.93.0), eliminating theincorrect peer dependencywarning every bun install printed (user report on Discord).node:*builtins in the browser-smoke check ONLY when imported from inside@anthropic-ai/sdk: the SDK's >=0.93.0 credentials subsystem uses runtime-guarded dynamicimport('node:fs'), which the guardrail should not fail on - while senpi-owned browser code keeps failing loudly (mutation-proven below).Verification
ClientOptions/union widenings;Anthropic.Messages.Toolbyte-identical.tsc --noEmitexit 0; packages/ai 2393 passed / 0 failed; packages/coding-agent 8784 passed / 0 failed; fullnpm run checkexit 0 (biome, pinned-deps, ts-imports, shrinkwrap, install-lock, claude-sdk-platform-lock, browser-smoke).npm ls @anthropic-ai/sdkdeduped on 0.120.0, no invalid/UNMET.import "node:fs"in packages/ai still fails browser-smoke with exactly that 1 error while the 7 SDK-internal ones stay exempt; reverted clean.