* Node ids are opaque engine strings shaped ` : ` or * ` : `, so they can contain both ':' and '/'. Encoding per * slash-separated segment keeps the URL readable (`#/file/src/mcp/tools.ts`) * and still round-trips a segment that itself contains a reserved character.
(value: string)
| 110 | * and still round-trips a segment that itself contains a reserved character. |
| 111 | */ |
| 112 | function encodePath(value: string): string { |
| 113 | return value.split('/').map(encodeURIComponent).join('/'); |
| 114 | } |
| 115 | |
| 116 | function query(params: URLSearchParams): string { |
| 117 | const text = params.toString(); |
no test coverage detected