fix(#2777): remove stale codex local home metadata (#2831)

* fix(#2777): remove stale codex local home metadata

* chore(#2777): add changeset for codex local layout metadata

---------

Co-authored-by: Tom Boucher <trekkie@nomorestars.com>
This commit is contained in:
kyle-the-dev
2026-08-02 13:00:52 +08:00
committed by GitHub
parent 137f3fbb9c
commit ce38d44811
7 changed files with 55 additions and 8 deletions

View File

@@ -1036,8 +1036,7 @@ const capabilities = {
"prefix": "gsd-",
"nesting": "flat",
"recursive": false,
"converter": "convertClaudeCommandToCodexSkill",
"home": ".agents"
"converter": "convertClaudeCommandToCodexSkill"
}
]
},
@@ -5389,8 +5388,7 @@ const runtimes = {
"prefix": "gsd-",
"nesting": "flat",
"recursive": false,
"converter": "convertClaudeCommandToCodexSkill",
"home": ".agents"
"converter": "convertClaudeCommandToCodexSkill"
}
]
},

View File

@@ -1075,7 +1075,18 @@ function validateArtifactLayout(capId, layout) {
errors.push(ctx + '.' + scope + ' must be an array');
} else {
for (let i = 0; i < arr.length; i++) {
errors.push(...validateArtifactKindEntry(capId, arr[i], 'artifactLayout.' + scope + '[' + i + ']'));
const entry = arr[i];
errors.push(...validateArtifactKindEntry(capId, entry, 'artifactLayout.' + scope + '[' + i + ']'));
if (
scope === 'local' &&
typeof entry === 'object' && entry !== null && !Array.isArray(entry) &&
Object.prototype.hasOwnProperty.call(entry, 'home')
) {
errors.push(
ctx + '.local[' + i + '].home is not allowed; ' +
'local artifact layout entries must remain project-scoped',
);
}
}
}
}