✨ feat(playbook): add no_backup deploy controls
remove obsolete main_language placeholders and language summary template text limit generated .agents guidance to configured langs and normalize AGENT_RULES trailing newlines document install_skills no_backup behavior and refresh tests for deployment links and sync flows
This commit is contained in:
@@ -75,10 +75,23 @@ skills = ["style-cleanup", "commit-message"]
|
||||
[install_skills]
|
||||
mode = "all"
|
||||
agents_home = "./.agents"
|
||||
# no_backup = true
|
||||
```
|
||||
|
||||
> 注意:Codex 默认从 `~/.agents/skills` 加载 skills;使用本地安装时,需要确保 Codex 能发现该路径。
|
||||
|
||||
`[install_skills]` 默认会先把已存在的 skill 目录重命名为 `*.bak.<timestamp>`,再复制新版本,便于手动回退。
|
||||
如果你希望安装过程不保留备份,而是“先删除旧目录,再复制新目录”,可显式设置:
|
||||
|
||||
```toml
|
||||
[install_skills]
|
||||
mode = "all"
|
||||
agents_home = "~/.agents"
|
||||
no_backup = true
|
||||
```
|
||||
|
||||
`no_backup = true` 适合 CI 或你已经用 Git 管理变更、只想要确定性覆盖安装的场景。
|
||||
|
||||
如果你的项目已经把本 Playbook 部署到项目内(无论来自 `git subtree`,还是外部 clone 后部署到自定义根目录),则在目标项目里执行:
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user