(prompt: string)
| 54 | * writing an unsolicited DESIGN.md. A build imperative ("build…", "بساز") overrides this. |
| 55 | */ |
| 56 | export function looksLikeAdvisoryQuestion(prompt: string): boolean { |
| 57 | if (!prompt) return false; |
| 58 | const p = prompt.toLowerCase(); |
| 59 | if (BUILD_IMPERATIVES.some(v => p.includes(v))) return false; |
| 60 | const isQuestion = /[?؟]/.test(prompt); |
| 61 | const hasMarker = ADVISORY_MARKERS.some(m => p.includes(m)); |
| 62 | return isQuestion || hasMarker; |
| 63 | } |
| 64 | |
| 65 | /** |
| 66 | * Does this user request look like a build/refactor that deserves a plan first? |
no outgoing calls
no test coverage detected