feat: add invokable option to markdown rule creation (#7824)

* feat: add invokable option to markdown rule creation

* Apply suggestion from @cubic-dev-ai[bot]

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>

---------

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
This commit is contained in:
Nate Sesti 2025-09-17 23:06:28 -07:00 • committed by GitHub
parent 6034217ea1
commit 2f86fc5efe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -36,6 +36,7 @@ export function createRuleMarkdown(
globs?: string | string[];
regex?: string | string[];
alwaysApply?: boolean;
invokable?: boolean;
} = {},
): string {
const frontmatter: RuleFrontmatter = {};
@ -54,6 +55,10 @@ export function createRuleMarkdown(
frontmatter.description = options.description.trim();
}
if (options.invokable !== undefined) {
frontmatter.invokable = options.invokable;
}
if (options.alwaysApply !== undefined) {
frontmatter.alwaysApply = options.alwaysApply;
}