fix: update Claude Agent SDK to 0.3.300 (#1355)

Updates `@anthropic-ai/claude-agent-sdk` from 0.3.296 to 0.3.300 (parity
with Claude Code v2.1.300), and `@anthropic-ai/sdk` from 0.133.0 to
0.134.0.

No code changes needed. The new types are an optional `property_order`
on elicitation requests, `nextFireAt` on the CronCreate/CronList
outputs, and `owned` on Artifact outputs. We don't need any of them.

Fixes picked up that affect this agent:
- `importSessionToStore` (used for session forks) no longer skips
transcript rows containing U+2028/U+2029 on Node 24.
- Resuming an SDK session after a compaction no longer loses the recent
messages or the compaction summary in some cases.
- Background subagents in auto mode no longer send their final report
twice or merge it into another turn.
- Queued content-block prompts merged into one turn are now separated by
a line break.
- `ScheduleWakeup` now fires while a background task is running.

Behaviour change: `MAX_THINKING_TOKENS=0` (sent as `thinking: { type:
"disabled" }`) now runs adaptive thinking on models that can't turn
thinking off.

`npm run build`, `npm run check` and `npm run test:run` all pass.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ben Brandt
2026-10-15 14:17:45 +02:00
committed by GitHub
parent 1a1f1a0e80
commit 761b4c8359
2 changed files with 52 additions and 42 deletions

90
package-lock.json generated
View File

@@ -10,7 +10,7 @@
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
"@agentclientprotocol/sdk": "1.8.0", "@agentclientprotocol/sdk": "1.8.0",
"@anthropic-ai/claude-agent-sdk": "0.3.296", "@anthropic-ai/claude-agent-sdk": "0.3.300",
"diff": "9.0.0", "diff": "9.0.0",
"zod": "4.6.7" "zod": "4.6.7"
}, },
@@ -18,7 +18,7 @@
"claude-agent-acp": "dist/index.js" "claude-agent-acp": "dist/index.js"
}, },
"devDependencies": { "devDependencies": {
"@anthropic-ai/sdk": "0.133.0", "@anthropic-ai/sdk": "0.134.0",
"@eslint/js": "10.0.1", "@eslint/js": "10.0.1",
"@tsconfig/node22": "22.0.6", "@tsconfig/node22": "22.0.6",
"@types/node": "26.6.5", "@types/node": "26.6.5",
@@ -48,22 +48,22 @@
} }
}, },
"node_modules/@anthropic-ai/claude-agent-sdk": { "node_modules/@anthropic-ai/claude-agent-sdk": {
"version": "0.3.296", "version": "0.3.300",
"resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk/-/claude-agent-sdk-0.3.296.tgz", "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk/-/claude-agent-sdk-0.3.300.tgz",
"integrity": "sha512-Y+cZ2BT8X94mQ9GJOVyIqhjC/nWGvwozUVLjdkzX7aSt+zuo5tgk7Hdv9V7tEUQ9fKnEuiL6moYNWDeHqCD4Lw==", "integrity": "sha512-3NGPEUj+VTMQAQ0vaUUQtrce6rNb9a4XhY8QKIOLUp9mDkdbwrrjjD9oMKcDpcLhFKqZdTc02RBUo55GrbY9CA==",
"license": "SEE LICENSE IN README.md", "license": "SEE LICENSE IN README.md",
"engines": { "engines": {
"node": ">=18.0.0" "node": ">=18.0.0"
}, },
"optionalDependencies": { "optionalDependencies": {
"@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.296", "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.300",
"@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.296", "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.300",
"@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.296", "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.300",
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.296", "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.300",
"@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.296", "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.300",
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.296", "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.300",
"@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.296", "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.300",
"@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.296" "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.300"
}, },
"peerDependencies": { "peerDependencies": {
"@anthropic-ai/sdk": ">=0.93.0", "@anthropic-ai/sdk": ">=0.93.0",
@@ -72,9 +72,9 @@
} }
}, },
"node_modules/@anthropic-ai/claude-agent-sdk-darwin-arm64": { "node_modules/@anthropic-ai/claude-agent-sdk-darwin-arm64": {
"version": "0.3.296", "version": "0.3.300",
"resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-darwin-arm64/-/claude-agent-sdk-darwin-arm64-0.3.296.tgz", "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-darwin-arm64/-/claude-agent-sdk-darwin-arm64-0.3.300.tgz",
"integrity": "sha512-Wrhy7rxQVUNowQRDpSZD+3MFSBAlN4TINZSpKD8PKpEValCG6x05N855MuITvwgkH0EeoyNLRCsowJaIHa8V9Q==", "integrity": "sha512-+pFKo4x5S6j4v+UTVZZFiLoJO7PMLVPNhIUBalk/RvMhcaN33Ubgk4aRAZpJmkxCcGMN6rWCevYhgT0nXkqytg==",
"cpu": [ "cpu": [
"arm64" "arm64"
], ],
@@ -85,9 +85,9 @@
] ]
}, },
"node_modules/@anthropic-ai/claude-agent-sdk-darwin-x64": { "node_modules/@anthropic-ai/claude-agent-sdk-darwin-x64": {
"version": "0.3.296", "version": "0.3.300",
"resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-darwin-x64/-/claude-agent-sdk-darwin-x64-0.3.296.tgz", "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-darwin-x64/-/claude-agent-sdk-darwin-x64-0.3.300.tgz",
"integrity": "sha512-klMOQ1TdA7u6sWZJYw9l5byWYxMiWzbuPhzCgVVY+LJOs4FlhsS3qLXn2RZmIFhQv1u65zwX+2CRSWEJddqfVQ==", "integrity": "sha512-5mJ0Fdl85HQvFJM6XdFJry68vjEt5XyJ5mVvVO3G6U9R4a8rMJDH7Ypik3jlCW2eaB/mjbJVSI2ffV8ClaYA6A==",
"cpu": [ "cpu": [
"x64" "x64"
], ],
@@ -98,9 +98,9 @@
] ]
}, },
"node_modules/@anthropic-ai/claude-agent-sdk-linux-arm64": { "node_modules/@anthropic-ai/claude-agent-sdk-linux-arm64": {
"version": "0.3.296", "version": "0.3.300",
"resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-arm64/-/claude-agent-sdk-linux-arm64-0.3.296.tgz", "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-arm64/-/claude-agent-sdk-linux-arm64-0.3.300.tgz",
"integrity": "sha512-+tC1KlUlp/3BQS+EfG8RBrmru4xKwF6hNEm15gNct8k9tNVRLYOftbkNCGJPTKkoBoq0sQ+Omojzwr/W2Dg60A==", "integrity": "sha512-zTl6mMnIDEaEEWebiwmZw+k3Sgi6zHlZcZDvrb3VlHaX1Ru5iikdWt+PS36tzJtrSnwX0XBV0EO8x1qqC2TmhA==",
"cpu": [ "cpu": [
"arm64" "arm64"
], ],
@@ -114,9 +114,9 @@
] ]
}, },
"node_modules/@anthropic-ai/claude-agent-sdk-linux-arm64-musl": { "node_modules/@anthropic-ai/claude-agent-sdk-linux-arm64-musl": {
"version": "0.3.296", "version": "0.3.300",
"resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-arm64-musl/-/claude-agent-sdk-linux-arm64-musl-0.3.296.tgz", "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-arm64-musl/-/claude-agent-sdk-linux-arm64-musl-0.3.300.tgz",
"integrity": "sha512-8DEazoBU4I8HsPrXgSJ1Vq30nCBF7PaKjHz1o/igCz+HZu3qepHztWpoKJKQee5Mt4XsvZLwtKuxQo1F+SC6yQ==", "integrity": "sha512-du/RXcLDhWSMlpj3UoR9gHHb65uYOAHVQtQVtKtMyUYv4pC6M6zkY3GAqQFkW48I7wBlrHAFmScdD6nUDl005A==",
"cpu": [ "cpu": [
"arm64" "arm64"
], ],
@@ -130,9 +130,9 @@
] ]
}, },
"node_modules/@anthropic-ai/claude-agent-sdk-linux-x64": { "node_modules/@anthropic-ai/claude-agent-sdk-linux-x64": {
"version": "0.3.296", "version": "0.3.300",
"resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-x64/-/claude-agent-sdk-linux-x64-0.3.296.tgz", "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-x64/-/claude-agent-sdk-linux-x64-0.3.300.tgz",
"integrity": "sha512-TStCnbg2iBtWJBQeMdO7Xwpx5IYWICmdcf7J9eXhIi4JbahWD+VLRaH5sxB+LLZjdBXekp8piKv6Ne2+arag0w==", "integrity": "sha512-sd2IUPPTVYiN5YPoC2InyOJy0fEt9HBwBZbtVobhugO0KWACMPzrYefLD/yu1uJsf73+tBnVQRfgb/btXukd8Q==",
"cpu": [ "cpu": [
"x64" "x64"
], ],
@@ -146,9 +146,9 @@
] ]
}, },
"node_modules/@anthropic-ai/claude-agent-sdk-linux-x64-musl": { "node_modules/@anthropic-ai/claude-agent-sdk-linux-x64-musl": {
"version": "0.3.296", "version": "0.3.300",
"resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-x64-musl/-/claude-agent-sdk-linux-x64-musl-0.3.296.tgz", "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-x64-musl/-/claude-agent-sdk-linux-x64-musl-0.3.300.tgz",
"integrity": "sha512-lMquemenM5CDNZv6g1+xBSfQpat2xiwOQUnY2mwSQKjT+IfE5/F8CgRd38ZBljwGnedPIuKs/DAZMt4YslLF5w==", "integrity": "sha512-ncvILYs6HFkGkhec5fmhkVl57gZErqJNhv4YSpmLx5kIBL1vPzf666sG3VgApLUY74rAJ3y/vyr1e4DJBB6nWg==",
"cpu": [ "cpu": [
"x64" "x64"
], ],
@@ -162,9 +162,9 @@
] ]
}, },
"node_modules/@anthropic-ai/claude-agent-sdk-win32-arm64": { "node_modules/@anthropic-ai/claude-agent-sdk-win32-arm64": {
"version": "0.3.296", "version": "0.3.300",
"resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-win32-arm64/-/claude-agent-sdk-win32-arm64-0.3.296.tgz", "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-win32-arm64/-/claude-agent-sdk-win32-arm64-0.3.300.tgz",
"integrity": "sha512-/epluPyoLm1NQAcHV0LUierKog7c9yyU8BgpZOtGWiM54nqTZKKBuCwANraV3ROfXYFfJdMV4Vehk/8fqxoOqQ==", "integrity": "sha512-TKH6bbbh4fUMhJycOun1AzOXPmNQ6vvsvWLMVxVsCca8Ro3aAo4zfdfniOjEktEDMUT53v45/fMe6Ca5/rtyrQ==",
"cpu": [ "cpu": [
"arm64" "arm64"
], ],
@@ -175,9 +175,9 @@
] ]
}, },
"node_modules/@anthropic-ai/claude-agent-sdk-win32-x64": { "node_modules/@anthropic-ai/claude-agent-sdk-win32-x64": {
"version": "0.3.296", "version": "0.3.300",
"resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-win32-x64/-/claude-agent-sdk-win32-x64-0.3.296.tgz", "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-win32-x64/-/claude-agent-sdk-win32-x64-0.3.300.tgz",
"integrity": "sha512-T71Y/hp0v7VtRzTOoxAsIkPa68JpB1d/VvCKTTE9GzTkbjQZHjs3S1DM06LDxSpwjITF7OCVJq14+XjN8M9t/g==", "integrity": "sha512-VXY2/y9/3psK2Dd4H+s9m6J5HfkvC3g0fYH4KGeOdbko2LYWmBmIk8E9NsjUVsKL7oN//G2I82+yAZdie5JuDg==",
"cpu": [ "cpu": [
"x64" "x64"
], ],
@@ -188,11 +188,12 @@
] ]
}, },
"node_modules/@anthropic-ai/sdk": { "node_modules/@anthropic-ai/sdk": {
"version": "0.133.0", "version": "0.134.0",
"resolved": "https://registry.npmjs.org/@anthropic-ai/sdk/-/sdk-0.133.0.tgz", "resolved": "https://registry.npmjs.org/@anthropic-ai/sdk/-/sdk-0.134.0.tgz",
"integrity": "sha512-jlqUN8p8ESTJj+GJnA4KjzbEfF1waEoGzRT8jwytlYGFFgv+/DUQOxlYGvYw10UzhD1kwLqYzxvA3FrTB2YWuQ==", "integrity": "sha512-j0DNXXKUKkr3kKyVR/I3pPWVv93g7vgHjgGYgh9uCXv5IKoXZPWmTwXKiVq/SZSbhBaD3KmtKhIszzt8dBnzog==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@opentelemetry/api": "^1.4.1",
"json-schema-to-ts": "^3.1.1", "json-schema-to-ts": "^3.1.1",
"standardwebhooks": "^1.0.0" "standardwebhooks": "^1.0.0"
}, },
@@ -541,6 +542,15 @@
} }
} }
}, },
"node_modules/@opentelemetry/api": {
"version": "1.9.1",
"resolved": "https://registry.npmjs.org/@opentelemetry/api/-/api-1.9.1.tgz",
"integrity": "sha512-gLyJlPHPZYdAk1JENA9LeHejZe1Ti77/pTeFm/nMXmQH/HFZlcS/O2XJB+L8fkbrNSqhdtlvjBVjxwUYanNH5Q==",
"license": "Apache-2.0",
"engines": {
"node": ">=8.0.0"
}
},
"node_modules/@oxc-project/types": { "node_modules/@oxc-project/types": {
"version": "0.153.0", "version": "0.153.0",
"resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.153.0.tgz", "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.153.0.tgz",

View File

@@ -66,12 +66,12 @@
}, },
"dependencies": { "dependencies": {
"@agentclientprotocol/sdk": "1.8.0", "@agentclientprotocol/sdk": "1.8.0",
"@anthropic-ai/claude-agent-sdk": "0.3.296", "@anthropic-ai/claude-agent-sdk": "0.3.300",
"diff": "9.0.0", "diff": "9.0.0",
"zod": "4.6.7" "zod": "4.6.7"
}, },
"devDependencies": { "devDependencies": {
"@anthropic-ai/sdk": "0.133.0", "@anthropic-ai/sdk": "0.134.0",
"@eslint/js": "10.0.1", "@eslint/js": "10.0.1",
"@tsconfig/node22": "22.0.6", "@tsconfig/node22": "22.0.6",
"@types/node": "26.6.5", "@types/node": "26.6.5",