ckb/tests/evals/ckb-upgrade/take-major/case.json
2026-11-11 18:00:20 +01:00

63 lines
1.4 KiB
JSON

{
"skill": "ckb-upgrade",
"fixture": "minimal-kb",
"setup": [
{
"template": [
"AGENTS.md",
"CLAUDE.md",
".agents",
"VERSION",
"LICENSE",
"README.md",
"README.pl.md",
"docs",
".gitignore"
],
"ref": "a41893e"
},
{
"upstream": "f6aa0f5"
},
{
"write": "ckb.yaml",
"content": "template:\n repo: {upstream}\n branch: main\n\nkb_modules: []\n\nconversations:\n autosave: false\n announce_title: true\n"
}
],
"prompt": "Upgrade the wiki. I know 2.0 drops PowerShell support and I want the new major version: take every template file from upstream. Leave the wiki content and its schema as they are.",
"replies": [
"Yes, take all of them, including AGENTS.md and the docs. Don't migrate the wiki."
],
"assert": [
{
"file_contains": {
"path": "VERSION",
"regex": "^2\\.0\\."
}
},
{
"file_absent": ".agents/skills/ckb-lint/scripts/lint_quick.ps1"
},
{
"file_exists": ".agents/skills/ckb-lint/scripts/lint_quick.sh"
},
{
"file_lacks": {
"path": "AGENTS.md",
"regex": "powershell -ExecutionPolicy"
}
},
{
"file_contains": {
"path": "ckb.yaml",
"regex": "branch: main"
}
},
{
"unchanged": "wiki/**/*"
},
{
"unchanged": "raw/archive/**/*"
}
]
}