(a: Tool, b: Tool)
| 360 | // Avoid Array.toSorted (Node 20+) — we support Node 18. builtInTools is |
| 361 | // readonly so copy-then-sort; allowedMcpTools is a fresh .filter() result. |
| 362 | const byName = (a: Tool, b: Tool) => a.name.localeCompare(b.name) |
| 363 | return uniqBy( |
| 364 | [...builtInTools].sort(byName).concat(allowedMcpTools.sort(byName)), |
| 365 | 'name', |
nothing calls this directly
no outgoing calls
no test coverage detected