(recipe: string | undefined | null, goal: string)
| 25 | * headless run. Unknown/empty recipe ⇒ the goal is returned unchanged. |
| 26 | */ |
| 27 | export function buildRecipePrompt(recipe: string | undefined | null, goal: string): string { |
| 28 | if (recipe === 'verified-pr') return verifiedPrPrompt(goal); |
| 29 | if (recipe === 'maintain') return maintainPrompt(goal); |
| 30 | return goal; |
| 31 | } |
| 32 | |
| 33 | const UNATTENDED_HEADER = [ |
| 34 | 'You are running UNATTENDED on a schedule — no human is watching this run. Follow this', |
no test coverage detected