(prompt: string)
| 310 | * non-candidate prompt ("fix this typo", in any language) stays a zero-cost no-op. |
| 311 | */ |
| 312 | export function isStructuralPrompt(prompt: string): boolean { |
| 313 | return hasStructuralKeyword(prompt) || extractCodeTokens(prompt).length > 0; |
| 314 | } |
| 315 | |
| 316 | /** |
| 317 | * What the front-load hook should do for a prompt issued from a directory. |
no test coverage detected