(root: string)
| 278 | } |
| 279 | |
| 280 | function userRoot(root: string): SkillRoot { |
| 281 | return { path: root, source: 'user' }; |
| 282 | } |
| 283 | |
| 284 | async function writeFlat(root: string, name: string, lines: readonly string[]): Promise<void> { |
| 285 | await writeFile(path.join(root, name), lines.join('\n')); |