(req: {
outputSandboxPath?: string
outputSandboxPaths?: string[]
})
| 180 | } |
| 181 | |
| 182 | function requestedOutputSandboxPaths(req: { |
| 183 | outputSandboxPath?: string |
| 184 | outputSandboxPaths?: string[] |
| 185 | }): string[] { |
| 186 | const paths = [...(req.outputSandboxPaths ?? [])] |
| 187 | if (req.outputSandboxPath && !paths.includes(req.outputSandboxPath)) { |
| 188 | paths.push(req.outputSandboxPath) |
| 189 | } |
| 190 | return paths |
| 191 | } |
| 192 | |
| 193 | export async function executeInE2B(req: E2BExecutionRequest): Promise<E2BExecutionResult> { |
| 194 | const { code, language, timeoutMs } = req |
no test coverage detected