@fission-ai/openspec
Version:
AI-native system for spec-driven development
26 lines (25 loc) • 563 B
JavaScript
/**
* Kiro Command Adapter
*
* Formats commands for Kiro following its .prompt.md specification.
*/
import path from 'path';
/**
* Kiro adapter for command generation.
* File path: .kiro/prompts/opsx-<id>.prompt.md
* Frontmatter: description
*/
export const kiroAdapter = {
toolId: 'kiro',
getFilePath(commandId) {
return path.join('.kiro', 'prompts', `opsx-${commandId}.prompt.md`);
},
formatFile(content) {
return `---
description: ${content.description}
---
${content.body}
`;
},
};
//# sourceMappingURL=kiro.js.map