diff --git a/.changeset/bump-claude-agent-sdk-0-3-325.md b/.changeset/bump-claude-agent-sdk-0-3-325.md new file mode 100644 index 00000000..2bb3e036 --- /dev/null +++ b/.changeset/bump-claude-agent-sdk-0-3-325.md @@ -0,0 +1,13 @@ +--- +"@herdctl/core": patch +--- + +Raise the `@anthropic-ai/claude-agent-sdk` floor to `^0.3.325` (current npm `latest`, bundling Claude Code 2.1.325). + +The bundled Claude Code version is what gates new models: the API refuses a model whose minimum client version is newer than the CLI making the request, answering `400 claude_code_version_too_old` (Claude Fable 5.2 needs 2.1.290 or newer). On the SDK runtime the CLI is the SDK's own bundled binary, not the `claude` on `PATH`, so a consumer cannot fix this by upgrading Claude Code — only by resolving a newer SDK. Raising the floor makes every consumer that installs this release resolve a binary new enough for the current model lineup. + +No code adaptation was needed: none of the APIs changed across 0.3.303–0.3.325 are used by herdctl. Behaviour changes worth knowing about if you configure permissions yourself: + +- **0.3.325:** read-only `git` commands now go through the permission flow instead of being auto-approved, and sandboxed Bash commands are no longer auto-approved unless `autoAllowBashIfSandboxed: true`. An agent whose `allowed_tools` includes `Bash` is unaffected. Deny rules now also remove in-process SDK MCP tools from Claude's tool list, as they always should have. +- **0.3.317:** the `file_unchanged` variant of `FileReadOutput` was removed. +- **0.3.311:** minimum Node.js raised to 18.14.0. diff --git a/packages/core/package.json b/packages/core/package.json index 07a15f4d..577ab521 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -18,7 +18,7 @@ "lint": "biome check src/" }, "dependencies": { - "@anthropic-ai/claude-agent-sdk": "^0.3.302", + "@anthropic-ai/claude-agent-sdk": "^0.3.325", "chokidar": "^5", "cron-parser": "^4.9.0", "dockerode": "^4.0.9", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ac7f5633..68a93e09 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -120,8 +120,8 @@ importers: packages/core: dependencies: '@anthropic-ai/claude-agent-sdk': - specifier: ^0.3.302 - version: 0.3.302(@anthropic-ai/sdk@0.110.0(zod@4.4.3))(@modelcontextprotocol/sdk@1.29.0(zod@4.4.3))(zod@4.4.3) + specifier: ^0.3.325 + version: 0.3.325(@anthropic-ai/sdk@0.110.0(zod@4.4.3))(@modelcontextprotocol/sdk@1.29.0(zod@4.4.3))(zod@4.4.3) chokidar: specifier: ^5 version: 5.0.0 @@ -312,49 +312,49 @@ packages: '@antfu/install-pkg@1.1.0': resolution: {integrity: sha512-MGQsmw10ZyI+EJo45CdSER4zEb+p31LpDAFp2Z3gkSd1yqVZGi0Ebx++YTEMonJy4oChEMLsxZ64j8FH6sSqtQ==} - '@anthropic-ai/claude-agent-sdk-darwin-arm64@0.3.302': - resolution: {integrity: sha512-RwuagoGPwd1i6zNeKhIlU3xLnlez/BGE4qEBSmymdNRQxyE5U2wmGtvi0+taWSg4T91oTMzHRuN8HapSk8swiQ==} + '@anthropic-ai/claude-agent-sdk-darwin-arm64@0.3.325': + resolution: {integrity: sha512-0u8bTug2zH+zWE8CMiFrm/ldmH20uA9B/zhXpI7ATHFJnpPMdwTqE56CFM0m3LOwnNum0jpRn7XV1dn6Pf2pqA==} cpu: [arm64] os: [darwin] - '@anthropic-ai/claude-agent-sdk-darwin-x64@0.3.302': - resolution: {integrity: sha512-92aWlLyKYf9L68mAe1s1UQLpHoWXXGH+lzUBGDD1ony9MrkvJk/HSSvn/yYpHvvG1NcOYDqW8ySAIKRzffj23Q==} + '@anthropic-ai/claude-agent-sdk-darwin-x64@0.3.325': + resolution: {integrity: sha512-HD3YRFyM5H5QH2usS/WD6gobk3BEp2jq9dKyrkhAVdQIqFMlrcSrRhGA0i3R1IOLxtPAYkmDGepZ62k1kMOW9Q==} cpu: [x64] os: [darwin] - '@anthropic-ai/claude-agent-sdk-linux-arm64-musl@0.3.302': - resolution: {integrity: sha512-lba7aywUy4wYI3avNoq5vHA+U7jPba7TaMnurEFkRnG6A51mJfLGwZ35AW8QGFXcMXZnA7UVZ/F65GznPt1Ypg==} + '@anthropic-ai/claude-agent-sdk-linux-arm64-musl@0.3.325': + resolution: {integrity: sha512-72y6QNRZC4eMCxne/wNsuwNHsViSkgFKlYMCUVXxmiR9gpIMd3rf++oJMIsSuEAQqzqT7jwCrdtibv6R4bx5PA==} cpu: [arm64] os: [linux] - '@anthropic-ai/claude-agent-sdk-linux-arm64@0.3.302': - resolution: {integrity: sha512-TlPrant3tYgB763zY2/StpmRpZEMAi9+5gy9kiIIhp9h/NOD2bHvpnUoqaOEB/tcxzerIadxeZuCToVPocVJ3w==} + '@anthropic-ai/claude-agent-sdk-linux-arm64@0.3.325': + resolution: {integrity: sha512-28oVrCEN6M6MJP8Od4SK/scal1QdLbn5Sci+qL8j55l6csHtPeUYF9zdjWLniFKph43pejfZf5te/Vf/bwehkw==} cpu: [arm64] os: [linux] - '@anthropic-ai/claude-agent-sdk-linux-x64-musl@0.3.302': - resolution: {integrity: sha512-UCsqTcoUmV8qGdnmw0od2grDPgrkK6kclpo5Oyox15B9glHXhOIL0nifWcw2xS9VKV0VZ11I9FujPLIXfEpXtg==} + '@anthropic-ai/claude-agent-sdk-linux-x64-musl@0.3.325': + resolution: {integrity: sha512-BHewYUTd7mDLR5iHTVt6Q28gJKLC5C24b1H3NM0qGt9dxnjVUh1Lza52GzHY2Rb9hAPQymLSXWuVh1OFoFQatA==} cpu: [x64] os: [linux] - '@anthropic-ai/claude-agent-sdk-linux-x64@0.3.302': - resolution: {integrity: sha512-HqD0+tnjJDldkZJPuTiMIZ1XbrVW8LH/3QKqCBgXLGwVFNgkLOM+Sfh14C0vqyZSIaLFgsFd4bIw1jg5V+td6w==} + '@anthropic-ai/claude-agent-sdk-linux-x64@0.3.325': + resolution: {integrity: sha512-wXEWbDmNYiorY5EKASYjvQct8zHShUPmAS9N/IAsgPA/cx2vsOFqPQw8jRQKeaW6AmFgx7k/Wf7THalNXbMEkQ==} cpu: [x64] os: [linux] - '@anthropic-ai/claude-agent-sdk-win32-arm64@0.3.302': - resolution: {integrity: sha512-W0LhTtFWANn1PRXD84PjqtYrlldGglP+x+ea95JvPvkYyvgLK0dL8TJHBJ8+C0lcW0NJuY9VspFespy3hwmuSA==} + '@anthropic-ai/claude-agent-sdk-win32-arm64@0.3.325': + resolution: {integrity: sha512-NH3I2o105oKK8lfJ5RlzCp+YTZn3qncwQ1xSzQ4jqn7LUddThIidpFU7B+TKQxh1X9eayAp7EtrBQ36mXflQwQ==} cpu: [arm64] os: [win32] - '@anthropic-ai/claude-agent-sdk-win32-x64@0.3.302': - resolution: {integrity: sha512-R2pgjSw60MNBNRxNewypqMnHUz8zlgrWWoQJY9UC+clFtp1NwnuauyCAsY3t63VzJ6mPq0+pDDN89dISfEJ5Ig==} + '@anthropic-ai/claude-agent-sdk-win32-x64@0.3.325': + resolution: {integrity: sha512-pjqVL++V/2oMJ6u1HdB608bcTUvzts1e8hX93Q8khasy2JB+R823bnvpQapcOurOWB3+v1X2JXIjXyWcGPJCQQ==} cpu: [x64] os: [win32] - '@anthropic-ai/claude-agent-sdk@0.3.302': - resolution: {integrity: sha512-VUxgraOIxnu4COhS9IkP3AF21kh9KOOF8oyU7pc6q0PfzMPlarbnhXvuhCNIPPYddhIev+17LLq1nZ700GdLBg==} - engines: {node: '>=18.0.0'} + '@anthropic-ai/claude-agent-sdk@0.3.325': + resolution: {integrity: sha512-MhSm2Fhk3DA/hhjdCKXDZWlnykpPWJjX42SogllAHMplY9ZKT+Ltb8QPtQxpe225Imfs4A8IKaNE4biivA+fHg==} + engines: {node: '>=18.14.0'} peerDependencies: '@anthropic-ai/sdk': '>=0.93.0' '@modelcontextprotocol/sdk': ^1.29.0 @@ -5448,44 +5448,44 @@ snapshots: package-manager-detector: 1.6.0 tinyexec: 1.0.2 - '@anthropic-ai/claude-agent-sdk-darwin-arm64@0.3.302': + '@anthropic-ai/claude-agent-sdk-darwin-arm64@0.3.325': optional: true - '@anthropic-ai/claude-agent-sdk-darwin-x64@0.3.302': + '@anthropic-ai/claude-agent-sdk-darwin-x64@0.3.325': optional: true - '@anthropic-ai/claude-agent-sdk-linux-arm64-musl@0.3.302': + '@anthropic-ai/claude-agent-sdk-linux-arm64-musl@0.3.325': optional: true - '@anthropic-ai/claude-agent-sdk-linux-arm64@0.3.302': + '@anthropic-ai/claude-agent-sdk-linux-arm64@0.3.325': optional: true - '@anthropic-ai/claude-agent-sdk-linux-x64-musl@0.3.302': + '@anthropic-ai/claude-agent-sdk-linux-x64-musl@0.3.325': optional: true - '@anthropic-ai/claude-agent-sdk-linux-x64@0.3.302': + '@anthropic-ai/claude-agent-sdk-linux-x64@0.3.325': optional: true - '@anthropic-ai/claude-agent-sdk-win32-arm64@0.3.302': + '@anthropic-ai/claude-agent-sdk-win32-arm64@0.3.325': optional: true - '@anthropic-ai/claude-agent-sdk-win32-x64@0.3.302': + '@anthropic-ai/claude-agent-sdk-win32-x64@0.3.325': optional: true - '@anthropic-ai/claude-agent-sdk@0.3.302(@anthropic-ai/sdk@0.110.0(zod@4.4.3))(@modelcontextprotocol/sdk@1.29.0(zod@4.4.3))(zod@4.4.3)': + '@anthropic-ai/claude-agent-sdk@0.3.325(@anthropic-ai/sdk@0.110.0(zod@4.4.3))(@modelcontextprotocol/sdk@1.29.0(zod@4.4.3))(zod@4.4.3)': dependencies: '@anthropic-ai/sdk': 0.110.0(zod@4.4.3) '@modelcontextprotocol/sdk': 1.29.0(zod@4.4.3) zod: 4.4.3 optionalDependencies: - '@anthropic-ai/claude-agent-sdk-darwin-arm64': 0.3.302 - '@anthropic-ai/claude-agent-sdk-darwin-x64': 0.3.302 - '@anthropic-ai/claude-agent-sdk-linux-arm64': 0.3.302 - '@anthropic-ai/claude-agent-sdk-linux-arm64-musl': 0.3.302 - '@anthropic-ai/claude-agent-sdk-linux-x64': 0.3.302 - '@anthropic-ai/claude-agent-sdk-linux-x64-musl': 0.3.302 - '@anthropic-ai/claude-agent-sdk-win32-arm64': 0.3.302 - '@anthropic-ai/claude-agent-sdk-win32-x64': 0.3.302 + '@anthropic-ai/claude-agent-sdk-darwin-arm64': 0.3.325 + '@anthropic-ai/claude-agent-sdk-darwin-x64': 0.3.325 + '@anthropic-ai/claude-agent-sdk-linux-arm64': 0.3.325 + '@anthropic-ai/claude-agent-sdk-linux-arm64-musl': 0.3.325 + '@anthropic-ai/claude-agent-sdk-linux-x64': 0.3.325 + '@anthropic-ai/claude-agent-sdk-linux-x64-musl': 0.3.325 + '@anthropic-ai/claude-agent-sdk-win32-arm64': 0.3.325 + '@anthropic-ai/claude-agent-sdk-win32-x64': 0.3.325 '@anthropic-ai/sdk@0.110.0(zod@4.4.3)': dependencies: