( prepend: string | undefined, original: string | undefined, )
| 39 | |
| 40 | // Merges two prompts with new lines between them, handling undefined |
| 41 | export function prependPrompt( |
| 42 | prepend: string | undefined, |
| 43 | original: string | undefined, |
| 44 | ) { |
| 45 | return ( |
| 46 | `${(prepend ?? "").trim()}\n\n${(original ?? "").trim()}`.trim() || |
| 47 | undefined |
| 48 | ); |
| 49 | } |
no outgoing calls
no test coverage detected