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

12 lines
566 B
TypeScript
Raw Normal View History

import analyzeModePrompt from "../prompts/mode/analyze.md" with { type: "text" }
import searchModePrompt from "../prompts/mode/search.md" with { type: "text" }
2026-05-24 18:32:35 +09:00
import teamModePrompt from "../prompts/mode/team.md" with { type: "text" }
export const ANALYZE_MODE_PROMPT = stripFinalLineFeed(analyzeModePrompt)
export const SEARCH_MODE_PROMPT = stripFinalLineFeed(searchModePrompt)
2026-05-24 18:32:35 +09:00
export const TEAM_MODE_PROMPT = stripFinalLineFeed(teamModePrompt)
function stripFinalLineFeed(prompt: string): string {
return prompt.endsWith("\n") ? prompt.slice(0, -1) : prompt
}