(sandboxId: string)
| 9 | * blank ID can never resolve to a different API route. |
| 10 | */ |
| 11 | export function encodeSandboxId(sandboxId: string): string { |
| 12 | const trimmed = sandboxId?.trim() |
| 13 | if (!trimmed) { |
| 14 | throw new Error('Sandbox ID is required') |
| 15 | } |
| 16 | return encodeURIComponent(trimmed) |
| 17 | } |
| 18 | |
| 19 | /** |
| 20 | * Builds a toolbox API URL for a sandbox-scoped endpoint. |
no outgoing calls
no test coverage detected