(value: string)
| 5 | import { PromptStore, PROMPT_KEYS, type PromptKey, type RuntimePrompts } from "../lib/prompts/store" |
| 6 | |
| 7 | function normalizePromptKey(value: string): PromptKey | null { |
| 8 | const normalized = value.trim().toLowerCase() |
| 9 | return PROMPT_KEYS.includes(normalized as PromptKey) ? (normalized as PromptKey) : null |
| 10 | } |
| 11 | |
| 12 | function getPromptByKey(prompts: RuntimePrompts, key: PromptKey): string { |
| 13 | switch (key) { |