MCPcopy
hub / github.com/coder/mux / getBaseWorkdir

Function getBaseWorkdir

tests/runtime/runtime.test.ts:93–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

91 // Use a base working directory - TestWorkspace will create subdirectories as needed
92 // For local runtime, use os.tmpdir() which matches where TestWorkspace creates directories
93 const getBaseWorkdir = () => {
94 if (type === "ssh") {
95 return sshConfig!.workdir;
96 }
97 if (type === "docker") {
98 return "/src";
99 }
100 return os.tmpdir();
101 };
102
103 // DockerRuntime is slower than local/ssh, and the integration job has a hard
104 // time budget. Keep the Docker coverage focused on the core Runtime contract.

Callers 1

createRuntimeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected