MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / detectSandboxRuntime

Function detectSandboxRuntime

packages/cli/src/telemetry/agent_runtime.ts:218–226  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

216 * deliberate (WSL > gVisor > Docker > Firecracker > KVM).
217 */
218export 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.

Callers 2

getSystemMetaFunction · 0.85

Calls 5

detectWSLFunction · 0.85
isGVisorFunction · 0.85
isDockerFunction · 0.85
isFirecrackerFunction · 0.85
isKVMFunction · 0.85

Tested by

no test coverage detected