(cwd: string, options: SystemPromptOptions = {})
| 276 | } |
| 277 | |
| 278 | export function buildSystemPrompt(cwd: string, options: SystemPromptOptions = {}): string { |
| 279 | const memorySection = options.memoryFiles ? renderMemorySection(options.memoryFiles) : "" |
| 280 | const skillSection = options.skills ? renderSkillCatalog(options.skills) : "" |
| 281 | return [ |
| 282 | roleDefinition, |
| 283 | toolGuide, |
| 284 | getSystemInfoSection(cwd), |
| 285 | memorySection, |
| 286 | skillSection, |
| 287 | ] |
| 288 | .filter(Boolean) |
| 289 | .join("\n\n") |
| 290 | } |
no test coverage detected