Update Claude Agent SDK to 0.3.245 - #2437
Merged
Merged
Conversation
Bump @anthropic-ai/claude-agent-sdk from ^0.3.197 to ^0.3.245. The new SDK types `effortLevel: "max"` on `applyFlagSettings`, so the compatibility cast in SdkSession.applyMutableSettings is gone. Its `Settings` type now carries a string index signature, so ClaudeMutableFlagSettings is a type alias instead of an interface. CanUseTool now requires `requestId` and may resolve to null; the bridge tests pass a request id and narrow the result. The recorded-conformance fork cell failed on macOS before this change: `tmpdir()` is a symlink there and the SDK names a project directory after the real path, so the seeded fork transcript was never found. The replay workspace is now resolved with realpathSync. Co-Authored-By: Claude <noreply@anthropic.com>
The realpath change in packages/provider-bridge-protocol/src/testing/parity.ts ships in @get-bb/plugin-sdk dist/provider-bridge-testing.js, and 0.4.19 is already taken on main. Co-Authored-By: Claude <noreply@anthropic.com>
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.
Human comments
What was wrong
@anthropic-ai/claude-agent-sdkwas pinned at^0.3.197; the current release is0.3.245. The old pin also forced a compatibility cast inSdkSession.applyMutableSettings, because that SDK'sSettingstype omittedeffortLevel: "max".Separately, the recorded-conformance
forkcell failed on macOS before this change.tmpdir()is a symlink there, and the Agent SDK names a project directory after the real path, so the harness seeded the fork transcript under a name the SDK never looked up. Linux CI never hit this.What changed
plugins/provider-claude-code/package.json: SDK^0.3.197→^0.3.245. Lockfile changes are limited to the SDK and its platform packages.plugins/provider-claude-code/src/bridge/sdk-session.ts: the new SDK typesmaxonapplyFlagSettings, so theClaudeMutableSettingsQueryBoundarycast is gone.ClaudeMutableFlagSettingsis a type alias now, because the newSettingscarries a string index signature that only an object type alias satisfies implicitly.bridge.test.ts/bridge.calibration.test.ts: the newCanUseToolrequiresrequestIdand may resolve tonull; the tests pass a request id and narrow the result.packages/provider-bridge-protocol/src/testing/parity.ts: the replay workspace isrealpathSync'd so the seeded fork transcript sits where the SDK looks.@get-bb/plugin-sdk0.4.19→0.4.20(packages/domain/src/plugin-sdk-version.ts+packages/plugin-sdk/package.json): theparity.tschange ships indist/provider-bridge-testing.js, and0.4.19is already taken on main. The npm version guard passes.No wire change between server and host daemon;
HOST_DAEMON_PROTOCOL_VERSIONis unchanged.How you verified
pnpm exec turbo run typecheck test --filter=bb-plugin-provider-claude-code --force: typecheck clean, 335/335 tests pass (rebased on current main).pnpm exec turbo run test --filter=@bb/provider-bridge-protocol --force: 237/237 pass.@bb/domain: 172/172.node packages/plugin-sdk/scripts/check-npm-version-guard.mjs: PASS (0.4.20not on npm yet). Before the bump it failed ondist/provider-bridge-testing.jsdrift, which confirms the bump is required.forkcell fails identically on macOS, so the harness fix is not masking an SDK regression. After the fix,bridge.recorded-conformance.test.tspasses on macOS.bridge-worker-entry.test.tsand the recorded cells; run alone, each suite is green every time.origin/main..HEAD): 0 hits in every group.