refactor(mode-prompts): migrate search prompt

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
YeonGyu-Kim
2026-05-24 18:31:17 +09:00
parent c187dba56b
commit 5cefbdbb6d
4 changed files with 17 additions and 6 deletions
@@ -0,0 +1,7 @@
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
}