Run detection and return { summary, parts } or null. Cached.
()
| 37 | |
| 38 | /** Run detection and return { summary, parts } or null. Cached. */ |
| 39 | detect() { |
| 40 | if (this.disabled) return null; |
| 41 | if (this._cache !== null) return this._cache; |
| 42 | this._cache = this._scan(); |
| 43 | return this._cache; |
| 44 | } |
| 45 | |
| 46 | /** Format for system prompt injection. Returns '' if nothing found. */ |
| 47 | formatForPrompt() { |
no test coverage detected