(text)
| 34 | ]; |
| 35 | |
| 36 | function looksLikeDoneClaim(text) { |
| 37 | if (!text || typeof text !== 'string') return false; |
| 38 | // Skip if the text reads like a question or asks for input. |
| 39 | if (/[?]\s*$/.test(text.trim())) return false; |
| 40 | for (const re of DONE_PATTERNS) if (re.test(text)) return true; |
| 41 | return false; |
| 42 | } |
| 43 | |
| 44 | /** |
| 45 | * Inspect a candidate final assistant message. If it claims completion while |
no outgoing calls
no test coverage detected