(blockType: BlockType)
| 93 | } |
| 94 | |
| 95 | export function getFileContent(blockType: BlockType): string { |
| 96 | if (blockType === "rules") { |
| 97 | return createRuleMarkdown("New Rule", "Your rule content", { |
| 98 | description: "A description of your rule", |
| 99 | }); |
| 100 | } else if (blockType === "prompts") { |
| 101 | return createPromptMarkdown( |
| 102 | "New prompt", |
| 103 | "Please write a thorough suite of unit tests for this code, making sure to cover all relevant edge cases", |
| 104 | { |
| 105 | description: "New prompt", |
| 106 | invokable: true, |
| 107 | }, |
| 108 | ); |
| 109 | } else { |
| 110 | return YAML.stringify(getContentsForNewBlock(blockType)); |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | export async function findAvailableFilename( |
| 115 | baseDirUri: string, |
no test coverage detected