Claude Agent SDK v0.3.271:移除MonitorInput持久化参数并修复Win
v0.3.271
推荐理由
MonitorInput的persistent字段被移除,直接改变现有代码签名,使用相关工具的开发者需立即检查并调整实现。
What's changed
变更内容
- Added optional omitClaudeMd to AgentDefinition in the agents option, so a subagent can run without user, project and local CLAUDE.md files; managed policy files still load
- Fixed listSessions, getSessionMessages and getSessionInfo with dir on Windows not finding sessions for a directory on a mapped network drive or SUBST drive
- Fixed sessionStore resume losing the global config when it is stored under the legacy .config.json name or an OAuth-suffixed file name
- Removed persistent from the MonitorInput tool type
- Updated to parity with Claude Code v2.1.271
- 在 agents 选项的 AgentDefinition 中添加了可选的 omitClaudeMd 参数,使得子代理可以在没有用户、项目和本地 CLAUDE.md 文件的情况下运行;托管策略文件仍会加载
- 修复了在 Windows 上使用 dir 参数时,listSessions、getSessionMessages 和 getSessionInfo 无法找到映射网络驱动器或 SUBST 驱动器上目录对应会话的问题
- 修复了 sessionStore 恢复功能在配置以旧的 .config.json 名称或带有 OAuth 后缀的文件名存储时丢失全局配置的问题
- 从 MonitorInput 工具类型中移除了 persistent 属性
- 更新以与 Claude Code v2.1.271 保持同步
Update
更新
代码 · 7 行
npm install @anthropic-ai/[email protected]
# or
yarn add @anthropic-ai/[email protected]
# or
pnpm add @anthropic-ai/[email protected]
# or
bun add @anthropic-ai/[email protected]代码 · 7 行
npm install @anthropic-ai/[email protected]
# or
yarn add @anthropic-ai/[email protected]
# or
pnpm add @anthropic-ai/[email protected]
# or
bun add @anthropic-ai/[email protected]更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力