@fission-ai/openspec
Version:
AI-native system for spec-driven development
27 lines (26 loc) • 651 B
JavaScript
/**
* CoStrict Command Adapter
*
* Formats commands for CoStrict following its frontmatter specification.
*/
import path from 'path';
/**
* CoStrict adapter for command generation.
* File path: .cospec/openspec/commands/opsx-<id>.md
* Frontmatter: description, argument-hint
*/
export const costrictAdapter = {
toolId: 'costrict',
getFilePath(commandId) {
return path.join('.cospec', 'openspec', 'commands', `opsx-${commandId}.md`);
},
formatFile(content) {
return `---
description: "${content.description}"
argument-hint: command arguments
---
${content.body}
`;
},
};
//# sourceMappingURL=costrict.js.map