chore: upgrade @anthropic-ai/claude-agent-sdk from 0.2.56 to 0.2.71#13339
Merged
GeorgeDong32 merged 2 commits intomainfrom Mar 9, 2026
Merged
chore: upgrade @anthropic-ai/claude-agent-sdk from 0.2.56 to 0.2.71#13339GeorgeDong32 merged 2 commits intomainfrom
GeorgeDong32 merged 2 commits intomainfrom
Conversation
Signed-off-by: Vaayne <[email protected]>
DeJeune
approved these changes
Mar 9, 2026
DeJeune
approved these changes
Mar 9, 2026
The pnpm static patch was for version 0.1.76 and has been unused since the SDK moved to 0.2.x. Patching is handled by the postinstall script. Signed-off-by: Vaayne <[email protected]>
GeorgeDong32
approved these changes
Mar 9, 2026
Collaborator
There was a problem hiding this comment.
Note
This review was translated by Claude.
Code Review Summary
✅ Approved - High-quality dependency upgrade PR
Changes Review
| File | Assessment |
|---|---|
| ✅ Standard version upgrade (0.2.56 → 0.2.71) | |
| ✅ Dependency lock file update normal | |
| ✅ Obsolete patch files correctly deleted | |
| ✅ SDK exports changes correctly adapted |
Key Changes Verification
cli.js Path Resolution:
- SDK new version removed
./dist/**mapping inexports - Using
*replacement approach is correct - Takes into account both dev environment and asar packaging scenarios
Patch Mechanism:
- Project uses semantic regex patch script (
patch-sdk.cjs) - More resilient than static .patch files, adapts to SDK version changes
CI Status
All checks passed ✅
Reviewed with Claude Code
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.
What this PR does
Before this PR:
@anthropic-ai/claude-agent-sdkwas pinned at version 0.2.56.After this PR:
Upgraded to 0.2.71. The postinstall regex patch (spawn→fork for IPC) applies successfully on the new version (3/3 patches matched). Also fixed
cli.jsresolution since the new version removed./cli.jsfrom itsexportsfield.Why we need it and why it was done in this way
Keep the SDK up to date with the latest bug fixes and improvements from Anthropic.
The following tradeoffs were made: N/A
The following alternatives were considered: N/A
Breaking changes
None. The SDK's Node engine requirement (≥18) is compatible with the project. The
cli.jsfile still exists in the package — only theexportsmapping was removed, so the resolution path was updated to usepath.join(path.dirname(require.resolve(...)), 'cli.js').Special notes for your reviewer
scripts/patch-claude-agent-sdk.ts) applies 3 regex patches tosdk.mjs. All 3 matched successfully on version 0.2.71.cli.jsresolution inClaudeCodeServiceconstructor was updated since the new SDK version no longer lists./cli.jsin its package.jsonexportsfield.Checklist
Release note