(sandboxId: string, path: string)
| 20 | * Builds a toolbox API URL for a sandbox-scoped endpoint. |
| 21 | */ |
| 22 | export function daytonaToolboxUrl(sandboxId: string, path: string): string { |
| 23 | return `${DAYTONA_TOOLBOX_BASE_URL}/${encodeSandboxId(sandboxId)}${path}` |
| 24 | } |
| 25 | |
| 26 | /** |
| 27 | * Parses a Daytona API JSON response, tolerating empty bodies (e.g., 204 or |
no test coverage detected