Agent 基础设施官方发布自动监测

ai@7.0.158

Vercel AI SDK 7.0.158 fixes a partial JSON repair issue and expands Experimental SandboxSession with new filesystem operations and standardized path resolution.

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

人类阅读

为什么值得关注

Vercel AI SDK version 7.0.158 delivers patch changes across core functionality and the experimental sandbox environment. First, it addresses a JSON parsing bug by ensuring partial JSON ending with a minus sign at the beginning of an array is correctly repaired. Second, it adds stat , listDirectory , and deleteFile methods to Experimental SandboxSession . The just-bash and Vercel Sandbox adapters implement these additions. Furthermore, relative paths across all sandbox methods, including workingDirectory for run and spawn , now resolve against the initial directory where execution starts. The just-bash adapter also updates write validation to reject writes targeting existing directories instead of replacing them with files. Dependency updates include @ai-sdk/gateway@4.0.131, @ai-sdk/provider-utils@5.0.72, and @ai-sdk/provider@4.0.35.

Agent 解析

可执行摘要

ai@7.0.158 fixes a JSON repair edge case with trailing minus signs in arrays, introduces stat, listDirectory, and deleteFile to Experimental SandboxSession, standardizes relative path resolution against the sandbox working directory for just-bash and Vercel Sandbox adapters, and prevents just-bash from overwriting directories on write.

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

开发者应核对什么

  • Upgrade ai to 7.0.158 alongside updated core packages (@ai-sdk/gateway@4.0.131, @ai-sdk/provider-utils@5.0.72, @ai-sdk/provider@4.0.35).
  • Review implementations using Experimental SandboxSession to adopt the new stat, listDirectory, and deleteFile methods if needed.
  • Verify relative file path usage in sandbox runs and spawns to ensure compatibility with standardized working directory resolution.
  • Ensure workflows using the just-bash adapter do not attempt to write directly to directory paths, as this will now be rejected.
分类

标签与路由

vercelai-sdktypescript
相关信号

继续阅读