()
| 216 | * deliberate (WSL > gVisor > Docker > Firecracker > KVM). |
| 217 | */ |
| 218 | export function detectSandboxRuntime(): SandboxRuntime { |
| 219 | if (platform() === "win32") return null; |
| 220 | if (detectWSL()) return "wsl"; |
| 221 | if (isGVisor()) return "gvisor"; |
| 222 | if (isDocker()) return "docker"; |
| 223 | if (isFirecracker()) return "firecracker"; |
| 224 | if (isKVM()) return "kvm"; |
| 225 | return null; |
| 226 | } |
| 227 | |
| 228 | /** |
| 229 | * Identify the coding-agent vendor that spawned this process, if any. |
no test coverage detected