// allow-test-rule: source-text-is-the-product // Command markdown frontmatter is the deployed contract; this regression test // verifies the real YAML surface that external parsers consume. 'use strict'; const { test } = require('node:test'); const assert = require('node:assert/strict'); const fs = require('node:fs'); const path = require('node:path'); const { parseFrontmatter } = require('./helpers.cjs'); const DEBUG_COMMAND_PATH = path.join(__dirname, '..', 'commands', 'gsd', 'debug.md'); function readFrontmatter(filePath) { return parseFrontmatter(fs.readFileSync(filePath, 'utf8')); } test('#3431: commands/gsd/debug.md frontmatter parses as YAML and preserves argument-hint', () => { const frontmatter = readFrontmatter(DEBUG_COMMAND_PATH); assert.equal(frontmatter.name, 'gsd:debug'); assert.equal( frontmatter['argument-hint'], '[list | status | continue | --diagnose] [issue description]', 'argument-hint should remain user-visible text after YAML parsing' ); });