fix: update to @anthropic-ai/claude-agent-sdk 0.3.330 (#1689)

## Summary

Updates `@anthropic-ai/claude-agent-sdk` from 0.3.328 to 0.3.330, which
bundles Claude Code 2.1.330. The adapter's code does not change: the
build passes, and no changelog entry needs a change.

Also bumps the dev dependency `@anthropic-ai/sdk` 1.10.0 → 1.12.0.

`npm update` brings the in-range lockfile bumps: `@babel/runtime`
7.29.14 → 7.29.15, `@hono/node-server` 2.1.9 → 2.1.11 and
`source-map-js` 1.2.3 → 1.2.4.

TypeScript stays at 6.0.3: 7.0.2 is out, but `@typescript-eslint/parser`
8.73.0 still requires `typescript <6.1.0`.

## Changelog review

Read the SDK changelog for 0.3.329 and 0.3.330 and the Claude Code
changelog for 2.1.329 and 2.1.330, and compared `sdk.d.ts` and
`sdk-tools.d.ts` of 0.3.328 and 0.3.330.

### What a client can notice

- **A warning when settings do not load** (0.3.330). When a value in a
session's `settings` or in a settings file fails validation, Claude Code
leaves the whole object or file out, as before. It now says so in the
session's first turn, in an `informational` message at level `warning`
(tag `settings_not_in_effect`). Both cores pass such a message on: as a
`notice` with `severity: "warning"` on v2 and for a v1 client with
`session.notices`, as quoted `**Warning:**` text for other v1 clients.
Checked through the built adapter, see Testing.
- **A warning when the hooks of managed settings do not load** (0.3.329,
tag `managed_hooks_not_loaded`). The same kind of message, passed on the
same way. Not reproduced: it needs managed settings.
- **The Fast mode state of a new session is that of its model.** The
initialize response's `fast_mode_state` described the default model, and
both cores set the Fast mode option of a new session from it. Recorded
with `settings: { model: "haiku", fastMode: true }`: `on` with 0.3.328,
`off` with 0.3.330.
- **A login that the macOS Keychain cannot save** ends a request with
`invalid_request` and no status, not with `authentication_failed` and
401. The adapter then fails the prompt with Claude Code's text ("… can't
save to the Keychain …") and no longer asks the client to sign in again.
Read from the changelogs and the CLI's text, not reproduced.
- **Prompt suggestions.** Claude Code now drops a placeholder such as
`_(no suggestion)_` where it generates the suggestion, so the adapter's
suggestion updates do not carry one.
- **claude.ai connectors are in the server list of `system/init` at
once.** Before, the list was empty at start and they came later. The
startup notices of both cores cover the client's own MCP servers only,
so a client gets no new notice.

### No change for the adapter

- **Types.** Doc text, plus:
- two `Settings` keys, `permissions.workingDirectoriesExclude` and
`desktopMcpServersListScope`
- the subkind `external-event` of a `task-notification` origin, which
only a session server stamps
  - `maxAgeMs` and `otherOneShots` on the output of `CronCreate`
- **`query()` refuses a `settings` JSON string that does not parse**,
when the `sandbox` option is set. The adapter passes no string: it reads
a client's settings file itself and passes an object.
- **Request ids of SDK MCP servers.** The adapter starts none.
- **`rewind_conversation` and `SpareProcess.claim()`.** Not used.
- **Background agents.** A stopped agent stays stopped, and Claude no
longer waits for an agent that `stopTask()` stopped as it finished.
Picked up as they are.
- **The system prompt after a model change that follows a context read,
and the memory use of idle sessions.** Picked up as they are.
- **The shorter sign-in link.** The adapter runs `claude auth login` in
the client's terminal and reads no link.
- **`getSessionInfo`, `listSessions` and `getSessionMessages`** read a
transcript as before: a differential run of 0.3.328 against 0.3.330 over
4,500 generated transcripts gave no mismatch. The run is not part of
this PR.
- **`@anthropic-ai/sdk` 1.11.0 and 1.12.0.** The adapter uses its types
only. The releases add Admin API methods and an error code, and fix the
client's default headers.

## Testing

- `npm run build`, `npm run check`, `npm run test:run` (4,434 tests
pass), on `main` with #1690
- Real CLI: the whole suite, as `npm run test:integration` runs it (with
`CLAUDE_CODE_ENTRYPOINT` unset). Before #1690 landed, the run passed in
full: 4,465 tests pass and 9 are skipped (the live capability audits,
the baseline recording, and one test that skips itself). On `main` with
#1690, on a machine under heavy load, 4,460 pass; one timing test of
`v1/acp-agent.test.ts` failed, and the 10-second build hook of the v1
subprocess tests timed out, which skipped those five. All six pass when
run again by themselves.
- Real CLI through the built adapter: one Haiku prompt in a session
whose client `settings` hold `permissions.allow: "nope"`. On v1 without
`session.notices` the warning is quoted text, on v1 with it and on v2 it
is a `notice`. Each time it comes inside the turn, before the answer.
- Real SDK and CLI without a prompt, 0.3.328 against 0.3.330: the Fast
mode state per model, the settings read for valid and invalid settings,
and the MCP server list at start
This commit is contained in:
Ben Brandt
2026-11-21 16:18:08 +01:00
committed by GitHub
parent 85a0d6c6f1
commit 6d9e2766c7
2 changed files with 52 additions and 52 deletions

100
package-lock.json generated
View File

@@ -10,7 +10,7 @@
"license": "Apache-2.0",
"dependencies": {
"@agentclientprotocol/sdk": "2.9.1",
"@anthropic-ai/claude-agent-sdk": "0.3.328",
"@anthropic-ai/claude-agent-sdk": "0.3.330",
"diff": "9.0.0",
"zod": "4.6.7"
},
@@ -18,7 +18,7 @@
"claude-agent-acp": "dist/index.js"
},
"devDependencies": {
"@anthropic-ai/sdk": "1.10.0",
"@anthropic-ai/sdk": "1.12.0",
"@eslint/js": "10.0.1",
"@tsconfig/node22": "22.0.7",
"@types/node": "26.6.6",
@@ -53,22 +53,22 @@
}
},
"node_modules/@anthropic-ai/claude-agent-sdk": {
"version": "0.3.328",
"resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk/-/claude-agent-sdk-0.3.328.tgz",
"integrity": "sha512-YcOWlpXVm7etPjPVrvSJEfynDksMiG11zvEybSBnk1EVWji6rSjU75HbbhJ8XPEB2ECEwRRP597Udu6IWMtsDw==",
"version": "0.3.330",
"resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk/-/claude-agent-sdk-0.3.330.tgz",
"integrity": "sha512-7om9Xus6tfkeCUCfzg6ilJuN6Z7okkEvJ0mx+ukXa/Id5U/6BGtPkOYni+3ebedwa3b9SVF7A05+ln+/9EoU/w==",
"license": "SEE LICENSE IN README.md",
"engines": {
"node": ">=18.14.0"
},
"optionalDependencies": {
"@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.328",
"@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.328",
"@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.328",
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.328",
"@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.328",
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.328",
"@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.328",
"@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.328"
"@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.330",
"@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.330",
"@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.330",
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.330",
"@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.330",
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.330",
"@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.330",
"@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.330"
},
"peerDependencies": {
"@anthropic-ai/sdk": ">=0.93.0",
@@ -77,9 +77,9 @@
}
},
"node_modules/@anthropic-ai/claude-agent-sdk-darwin-arm64": {
"version": "0.3.328",
"resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-darwin-arm64/-/claude-agent-sdk-darwin-arm64-0.3.328.tgz",
"integrity": "sha512-vjBASSSZFNs5M84XONCM4xAJMKPD0E9RtF0UDQ/a1Qqt5L+slNxhSADkH5n0tEM5HJMK7j9DCPi+0FVOBpZr3w==",
"version": "0.3.330",
"resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-darwin-arm64/-/claude-agent-sdk-darwin-arm64-0.3.330.tgz",
"integrity": "sha512-J9nqvcfD2V90O5uoR8At66R51VYtSMKnxSmPc0S4A4F5oX1VbokcpJLXU1yVCOuTtzr/OIHjRr9nn2vKi/S6rQ==",
"cpu": [
"arm64"
],
@@ -90,9 +90,9 @@
]
},
"node_modules/@anthropic-ai/claude-agent-sdk-darwin-x64": {
"version": "0.3.328",
"resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-darwin-x64/-/claude-agent-sdk-darwin-x64-0.3.328.tgz",
"integrity": "sha512-pkZuDNi16H4yJFo6cS2sw8mFj7m7ESAxV74t2gQ9EFzZOpXbQoJqhPBHNEZJ2q/+kr/3vHUtRc2W6jURA6nS+A==",
"version": "0.3.330",
"resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-darwin-x64/-/claude-agent-sdk-darwin-x64-0.3.330.tgz",
"integrity": "sha512-woe+f9qeZYWML5fACibNyth0xMDf22riNRNDryIYuhdteh7IoWrK6zC31cC2MrZRoqDZcPVtfOLND79+iZbrLA==",
"cpu": [
"x64"
],
@@ -103,9 +103,9 @@
]
},
"node_modules/@anthropic-ai/claude-agent-sdk-linux-arm64": {
"version": "0.3.328",
"resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-arm64/-/claude-agent-sdk-linux-arm64-0.3.328.tgz",
"integrity": "sha512-VvsUzOEf7r3ZtOPfliNGxqknsIvxEmnUOtQnq4+uw7MsfiALKR4s0bx2SP32UuXpqbmqxR1gn456D27XgsAmnA==",
"version": "0.3.330",
"resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-arm64/-/claude-agent-sdk-linux-arm64-0.3.330.tgz",
"integrity": "sha512-2Q+kfzaoTvJv1rsyu+iR4UHDZ3nxiOfdXISk+2ydQShU9DqXNlgQAt3BdJMh0Yx4MrxB66TMphVvVQeRslwwhA==",
"cpu": [
"arm64"
],
@@ -119,9 +119,9 @@
]
},
"node_modules/@anthropic-ai/claude-agent-sdk-linux-arm64-musl": {
"version": "0.3.328",
"resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-arm64-musl/-/claude-agent-sdk-linux-arm64-musl-0.3.328.tgz",
"integrity": "sha512-4Vui26/OZwr8AU7FpAt+R5s/1AKmj5qDorUZIqF1MMfdjAQf8/ut/+HyEkuMom/MVF2JeQLdvnFFFmbfgmAq/g==",
"version": "0.3.330",
"resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-arm64-musl/-/claude-agent-sdk-linux-arm64-musl-0.3.330.tgz",
"integrity": "sha512-fXmuAEegw31v+kiBd51yn7RVhjs7Rz2lnhfx/+XJXqt5lyqR2v7Ul/U/9r1CQZKuIw8M3ms9jQqGpmKbgKndqQ==",
"cpu": [
"arm64"
],
@@ -135,9 +135,9 @@
]
},
"node_modules/@anthropic-ai/claude-agent-sdk-linux-x64": {
"version": "0.3.328",
"resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-x64/-/claude-agent-sdk-linux-x64-0.3.328.tgz",
"integrity": "sha512-saP4fWgVZj1n7MYCqvTKADHXIc/hIAMRDpLVpXD5xB0IT68vhWgIMkzIrsg5P02P6zA49TDuoijbP1YBUEXT4A==",
"version": "0.3.330",
"resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-x64/-/claude-agent-sdk-linux-x64-0.3.330.tgz",
"integrity": "sha512-9w4uMdA3vNZXocwOUhivOGotXoRDxN/C/xPMkZMY9WPpKLAlj8upMZskNgPjQKlVRXhxPfNagcBijGPUH4WepA==",
"cpu": [
"x64"
],
@@ -151,9 +151,9 @@
]
},
"node_modules/@anthropic-ai/claude-agent-sdk-linux-x64-musl": {
"version": "0.3.328",
"resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-x64-musl/-/claude-agent-sdk-linux-x64-musl-0.3.328.tgz",
"integrity": "sha512-oJowzzjhWGbdBGyRjqV9CT0nfh4A4/fEI11LjX6b1SkhrNNgy9QT2HzSe8A2yNlliOWo1xJl6nAHT8pLwMNlVg==",
"version": "0.3.330",
"resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-x64-musl/-/claude-agent-sdk-linux-x64-musl-0.3.330.tgz",
"integrity": "sha512-kooZMdp6tFwNFkDXbGoNTZMgFcPQfJVfG+gZ2qAdkk11S6MFts9ybHRLQmzUK3VrqlahH7T9fmI2mNfzYgOXkw==",
"cpu": [
"x64"
],
@@ -167,9 +167,9 @@
]
},
"node_modules/@anthropic-ai/claude-agent-sdk-win32-arm64": {
"version": "0.3.328",
"resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-win32-arm64/-/claude-agent-sdk-win32-arm64-0.3.328.tgz",
"integrity": "sha512-FkqzA++c+giPH2k8svb0egWDiGDkvSLQJTp5bq7QFXOxPEael4ct1yjKit/Yu6Sd48uLEgNT1waBYbyApPzhOw==",
"version": "0.3.330",
"resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-win32-arm64/-/claude-agent-sdk-win32-arm64-0.3.330.tgz",
"integrity": "sha512-6jscch7vk/XBSn7mm1i6zwTeiz05q98nKrQ3HdTavQEDGvXycMcB/QxIdMrs3vrdNEjWuoxwrL1qlT1lOyAWLg==",
"cpu": [
"arm64"
],
@@ -180,9 +180,9 @@
]
},
"node_modules/@anthropic-ai/claude-agent-sdk-win32-x64": {
"version": "0.3.328",
"resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-win32-x64/-/claude-agent-sdk-win32-x64-0.3.328.tgz",
"integrity": "sha512-9Wd0XrZ0QWkgtcKxObcYDvUpQjUzN3Uq4Chbvu1SOWOoKPfQdD40dwRQMCeKx2KGxAfMrggJ7I3JYnvRWAFYjg==",
"version": "0.3.330",
"resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-win32-x64/-/claude-agent-sdk-win32-x64-0.3.330.tgz",
"integrity": "sha512-ooThWbUXlXKTDgj2VgWBXQ/6vSOTaAbBDWPvvCGNHi20haoSkw4uPX9gczkX+HJuVTslvvLiYIfe8zleVPzi7A==",
"cpu": [
"x64"
],
@@ -193,9 +193,9 @@
]
},
"node_modules/@anthropic-ai/sdk": {
"version": "1.10.0",
"resolved": "https://registry.npmjs.org/@anthropic-ai/sdk/-/sdk-1.10.0.tgz",
"integrity": "sha512-j4uVct5p3aGIz/BU4K8VU5vt2A6AueHTvx2gfF3xr4mVpwH9IJMWEAUKNwSwdZSJOHQq1Za2tv5huYc5v02D0w==",
"version": "1.12.0",
"resolved": "https://registry.npmjs.org/@anthropic-ai/sdk/-/sdk-1.12.0.tgz",
"integrity": "sha512-0j9zwiQdkvr90LoiiBDUh7kae1lsNW2EqeE0vGceYne4BrmMDdDVoQ4KGOieUee0zWZbVJKsf/06JY8U5i63Xg==",
"license": "Apache-2.0",
"dependencies": {
"@opentelemetry/api": "^1.4.1",
@@ -215,9 +215,9 @@
}
},
"node_modules/@babel/runtime": {
"version": "7.29.14",
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.29.14.tgz",
"integrity": "sha512-Y5tqevQaUAZhhj82BpYMNC1ssvLQTVAfwKdm8iy8qwmhvC2/CpcAu8OC+QEtjM7pMk7knx83u1Qj8gzkicyelw==",
"version": "7.29.15",
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.29.15.tgz",
"integrity": "sha512-304gsbbGVmQc+cNGHzwHBlqepYdWLKj3VXCQBGt/EGcV7PUPfKI7kAUNW1FZEOCwlQiLvQjg1JEaAlRQ616h+Q==",
"license": "MIT",
"engines": {
"node": ">=6.9.0"
@@ -400,9 +400,9 @@
}
},
"node_modules/@hono/node-server": {
"version": "2.1.9",
"resolved": "https://registry.npmjs.org/@hono/node-server/-/node-server-2.1.9.tgz",
"integrity": "sha512-Sk4NQd3GFY0WZWCzndwFMPwJhtD0y9qjsQ+pjID0/03nK9pxyBCUoUHCho8QYBLBVhi0ssL8UkNPHqbgSOFPIQ==",
"version": "2.1.11",
"resolved": "https://registry.npmjs.org/@hono/node-server/-/node-server-2.1.11.tgz",
"integrity": "sha512-KzKz9vl4vvr1vgLHamj+g5uonbrj5NwAdO3yzOS6cd2HjALVeOgTgeZOyAzNxejbkfOOPIcvuf/Tg8l1pEFLog==",
"license": "MIT",
"peer": true,
"engines": {
@@ -3609,14 +3609,14 @@
}
},
"node_modules/source-map-js": {
"version": "1.2.3",
"resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.3.tgz",
"integrity": "sha512-xj+WrAkyv5Qp+t7r9N5HvCBu7g1qOe6CKRNpq22X1GGcPEQADFU54v5qsPVs3/vrUFQ7XivFrcAVKA2stI0kWA==",
"version": "1.2.4",
"resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.4.tgz",
"integrity": "sha512-J7ZjMvHd9O1fcT/5V09QWaaSl2BbWx3F6O08spde82Namf9UB0GxRVIPiNbVsdKkoizHiSpTodo3vp2bAy91MA==",
"dev": true,
"license": "BSD-3-Clause",
"peer": true,
"engines": {
"node": ">=0.10.0"
"node": ">=6.0.0"
}
},
"node_modules/standardwebhooks": {

View File

@@ -69,12 +69,12 @@
},
"dependencies": {
"@agentclientprotocol/sdk": "2.9.1",
"@anthropic-ai/claude-agent-sdk": "0.3.328",
"@anthropic-ai/claude-agent-sdk": "0.3.330",
"diff": "9.0.0",
"zod": "4.6.7"
},
"devDependencies": {
"@anthropic-ai/sdk": "1.10.0",
"@anthropic-ai/sdk": "1.12.0",
"@eslint/js": "10.0.1",
"@tsconfig/node22": "22.0.7",
"@types/node": "26.6.6",