(mod: string | { default: string })
| 48 | // time, require() returns {default: string} — txtRequire normalizes both. |
| 49 | /* eslint-disable custom-rules/no-process-env-top-level, @typescript-eslint/no-require-imports */ |
| 50 | function txtRequire(mod: string | { default: string }): string { |
| 51 | return typeof mod === 'string' ? mod : mod.default |
| 52 | } |
| 53 | |
| 54 | const BASE_PROMPT: string = feature('TRANSCRIPT_CLASSIFIER') |
| 55 | ? txtRequire(require('./yolo-classifier-prompts/auto_mode_system_prompt.txt')) |