ant CLI 的 1.30.0 版本新增了 ant apply 功能,该功能可根据仓库中的文件创建和更新代理、环境、技能、记忆存储及部署。在文件中描述每个资源,运行 ant apply,并批准其打印的计划。提交它生成的 claude-lock.json 锁文件,以便后续在本地或 CI 中运行时,更新相同的资源而非创建新资源。请参阅《使用 ant apply 将资源作为代码管理》。
Version 1.30.0 of the ant CLI adds ant apply, which creates and updates agents, environments, skills, memory stores, and deployments from files in your repository. Describe each resource in a file, run ant apply, and approve the plan it prints. Commit the claude-lock.json lockfile it writes so that later runs, on your machine or in CI, update the same resources instead of creating new ones. See Manage resources as code with ant apply.
本文内容采集自官方网站,排版和翻译可能与原页面存在差异。
阅读官方全文