(role: string, current: string | undefined, extraFirst?: string)
| 149 | <div class="ctl" style="border:0"><input id="recall-q" placeholder="e.g. how did we add auth?" style="flex:1" onkeydown="if(event.key==='Enter')recallRun()"><button onclick="recallRun()">Recall</button></div> |
| 150 | <pre id="recall-out" class="logs" style="display:none"></pre> |
| 151 | </div>` : ''; |
| 152 | // Web-extract quality: how often an oversized page was trimmed SEMANTICALLY (query-aware) vs a |
| 153 | // positional head+tail window. A high semantic rate = agents pass a query and get the relevant part. |
| 154 | const em = d.extractMetrics; |
| 155 | const extractPanel = em && em.truncated > 0 ? `<div class="panel"><h2>Web extract — semantic vs positional</h2> |
| 156 | <div class="cards" style="grid-template-columns:repeat(3,1fr);margin:0 0 12px"> |
no test coverage detected