Files
oh-my-opencode/packages/prompts-core/src/mode-prompts.ts
T
2026-05-24 18:32:45 +09:00

14 lines
728 B
TypeScript

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