MCPcopy
hub / github.com/continuedev/continue / prependPrompt

Function prependPrompt

extensions/cli/src/util/promptProcessor.ts:41–49  ·  view source on GitHub ↗
(
  prepend: string | undefined,
  original: string | undefined,
)

Source from the content-addressed store, hash-verified

39
40// Merges two prompts with new lines between them, handling undefined
41export 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}

Callers 4

serveFunction · 0.85
runHeadlessModeFunction · 0.85
chatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected