模型行为官方发布自动监测

sdk-v1.9.0

Anthropic TypeScript SDK v1.9.0 introduces RBAC and bundle API enhancements, hardens tool execution security against path traversal and binary hijacking, tightens streamed tool JSON parsing, and deprecates older beta headers.

原始内容为英文;当前页面提供中文导航与来源说明,具体事实请以原文为准。

人类阅读

为什么值得关注

The Anthropic TypeScript SDK release v1.9.0 introduces several new features, security hardening measures, and deprecations. API Updates: - Added source and error codes to RBAC Role read endpoints. - Added Update Bundle endpoint to configure Claude Tag Bundle instructions, returning instructions on Bundle objects. - Deprecated several legacy beta header values (including prompt-caching-2024-07-31, pdfs-2024-09-25, token-counting-2024-11-01, token-efficient-tools-2025-02-19, and others), scheduled for full removal in upcoming releases. Stopped automatically attaching message-batches-2024-09-24 to batch requests. Streaming & Tool Fixes: - Streamed tool input parsing is now strict; non-JSON characters (such as comments or spaced numbers) fail with an error rather than being skipped or merged. - Hardened tool execution paths: setupSkills and grep now ignore system binaries (tar, unzip, rg) found in current directories or writable agent directories (workdir and allowedRoots) to avoid binary hijacking. System environment variables (ANTHROPIC ) are stripped when spawning these processes. - Fallback grep searches now enforce a 60-second limit off the main thread, ignore rg config files, stop reading files at NUL bytes to prevent uncaught RangeErrors on large binaries, and symlink/path validations have been tightened across Windows and /memories listings. - Skill archive extraction now standardizes file permissions (0644/0755 in 0700 directories) and mandates that system tar supports --no-same-owner and --no-same-permissions.

Agent 解析

可执行摘要

Anthropic SDK v1.9.0 adds source/error codes to RBAC reads and an Update Bundle endpoint. Critical fixes enforce strict streaming tool JSON parsing, restrict tool binary discovery (rg, tar, unzip) outside writable agent directories (workdir/allowedRoots), bound fallback grep execution, enforce exact path confinement on Windows/symlinks, and deprecate multiple legacy anthropic-beta headers.

Agent 实用度
77/100
可信度
96%
机器格式
JSON + Markdown
下一步

开发者应核对什么

  • Ensure system environments provide tar, unzip, and ripgrep (rg) outside configured workdir and allowedRoots directories.
  • Verify host tar utility supports --no-same-owner and --no-same-permissions flags.
  • Remove deprecated beta headers from client requests (prompt-caching-2024-07-31, pdfs-2024-09-25, token-counting-2024-11-01, token-efficient-tools-2025-02-19, extended-cache-ttl-2025-04-11, cache-diagnosis-2026-04-07,…
  • Consult Files API and Skills migration guides before removing files-api-2025-04-14 and skills-2025-10-02 headers.
分类

标签与路由

anthropicsdktypescript
相关信号

继续阅读