/**
 * Amazon Q Developer Command Adapter
 *
 * Formats commands for Amazon Q Developer following its frontmatter specification.
 */
import path from 'path';
import { escapeYamlValue } from '../yaml.js';
/**
 * Amazon Q adapter for command generation.
 * File path: .amazonq/prompts/opsx-<id>.md
 * Frontmatter: description
 *
 * Amazon Q surfaces these files as its prompt library rather than as slash
 * commands: the user types `@opsx-propose`, not `/opsx-propose`.
 * https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/command-line-prompts.html
 */
export const amazonQAdapter = {
    toolId: 'amazon-q',
    getFilePath(commandId) {
        return path.join('.amazonq', 'prompts', `opsx-${commandId}.md`);
    },
    invocationPrefix: '@',
    formatFile(content) {
        return `---
description: ${escapeYamlValue(content.description)}
---

${content.body}
`;
    },
};
//# sourceMappingURL=amazon-q.js.map