Files
oh-my-opencode/packages/prompts-core/src/mode-prompts.ts
T

8 lines
270 B
TypeScript
Raw Normal View History

import searchModePrompt from "../prompts/mode/search.md" with { type: "text" }
export const SEARCH_MODE_PROMPT = stripFinalLineFeed(searchModePrompt)
function stripFinalLineFeed(prompt: string): string {
return prompt.endsWith("\n") ? prompt.slice(0, -1) : prompt
}