@fission-ai/openspec
Version:
AI-native system for spec-driven development
18 lines • 703 B
TypeScript
/**
* Command Reference Utilities
*
* Utilities for transforming command references to tool-specific formats.
*/
/**
* Transforms colon-based command references to hyphen-based format.
* Converts `/opsx:` patterns to `/opsx-` for tools that use hyphen syntax.
*
* @param text - The text containing command references
* @returns Text with command references transformed to hyphen format
*
* @example
* transformToHyphenCommands('/opsx:new') // returns '/opsx-new'
* transformToHyphenCommands('Use /opsx:apply to implement') // returns 'Use /opsx-apply to implement'
*/
export declare function transformToHyphenCommands(text: string): string;
//# sourceMappingURL=command-references.d.ts.map