@fission-ai/openspec
Version:
AI-native system for spec-driven development
27 lines (25 loc) • 641 B
JavaScript
/**
* RooCode Command Adapter
*
* Formats commands for RooCode following its workflow specification.
* RooCode uses markdown headers instead of YAML frontmatter.
*/
import path from 'path';
/**
* RooCode adapter for command generation.
* File path: .roo/commands/opsx-<id>.md
* Format: Markdown header with description
*/
export const roocodeAdapter = {
toolId: 'roocode',
getFilePath(commandId) {
return path.join('.roo', 'commands', `opsx-${commandId}.md`);
},
formatFile(content) {
return `# ${content.name}
${content.description}
${content.body}
`;
},
};
//# sourceMappingURL=roocode.js.map