Fix Codex skill version metadata (#703)

Move Codex and .agents skill versions under metadata while keeping all version readers compatible with legacy top-level frontmatter.\n\nAI assistance: prepared with Codex under maintainer direction.
This commit is contained in:
Paul Bakaus
2026-09-01 20:21:01 -04:00
committed by GitHub
parent 4981192613
commit 482368511a
11 changed files with 192 additions and 15 deletions
+9
View File
@@ -162,6 +162,15 @@ describe('generateYamlFrontmatter', () => {
expect(result).toContain('user-invocable: true');
});
test('should generate nested metadata', () => {
const result = generateYamlFrontmatter({
name: 'test',
metadata: { version: '1.2.3' },
});
expect(result).toContain('metadata:\n version: 1.2.3');
});
test('should roundtrip: generate and parse back', () => {
const original = {
name: 'roundtrip-test',