(span: string)
| 170 | |
| 171 | /** Show ≤4 leading chars, mask the rest. Never reconstructable. */ |
| 172 | export function maskPreview(span: string): string { |
| 173 | const visible = span.slice(0, 4); |
| 174 | const masked = span.length > 4 ? "*".repeat(Math.min(span.length - 4, 8)) : ""; |
| 175 | return `${visible}${masked}${span.length > 12 ? "…" : ""}`; |
| 176 | } |
| 177 | |
| 178 | // ── Tool-attributed fence detection ─────────────────────────────────────────── |
| 179 |
no outgoing calls
no test coverage detected