精选85Claude Agent SDK Python(GitHub Releases)AI 编程与模型
Claude Agent SDK Python v0.2.124:修复
v0.2.124
推荐理由
Windows 用户注意:这个版本修复了可被外部触发的命令注入漏洞(BatBadBut 类),必须升级才能免受影响。建议尽快升级到 v0.2.124,并改用原生安装程序或显式 claude.exe 路径,避免使用 npm shim。
Bug Fixes
- Refused batch script CLI spawning on Windows: Blocked spawning .bat/.cmd CLI scripts (including npm's claude.cmd shim) on Windows to prevent command injection via cmd.exe metacharacter re-parsing (BatBadBut / CVE-2024-27980 class). Windows users relying on the npm shim should switch to the native installer, an explicit claude.exe path, or a platform wheel that bundles the CLI (#1127)
- Windows cmd.exe metacharacter rejection: resume and session_id values containing cmd.exe metacharacters (& | < > ^ % ! ") or newlines now raise ValueError on Windows, preventing injection even if a cmd.exe hop is reintroduced. POSIX behavior is unchanged (#1127)
- Dash-prefixed extra_args value binding: extra_args now uses --flag=value form when the value starts with -, preventing a dash-leading value from being misinterpreted as a separate CLI flag (#1127)
Internal/Other Changes
- Updated bundled Claude CLI to version 2.1.216
PyPI: https://pypi.org/project/claude-agent-sdk/0.2.124/
代码 · 1 行
pip install claude-agent-sdk==0.2.124更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力