/**
 * install/transforms/copilot.mjs — GitHub Copilot transform.
 *
 * Copilot quirks:
 *   - command-name rewrite (/apt:foo → /apt-foo) — Copilot's slash-command
 *     surface mirrors VS Code which also disallows `:`.
 *   - output: .github/copilot/agents/<name>.md and
 *     .github/copilot/commands/<name>.md (the install root is .github/copilot
 *     so paths here are relative to that root).
 *   - frontmatter: strip `tools` and `color` (Copilot's `chatmode` schema
 *     doesn't accept either).
 */

import { createSimpleTransform } from './_shared.mjs'

export const transform = createSimpleTransform({
	strip: ['tools', 'color'],
	rewriteCommands: true,
})
