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

Function getExecStream

src/node/runtime/RemoteRuntime.ts:411–418  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

409 };
410
411 const getExecStream = () => {
412 execPromise ??= this.exec(writeCommand, {
413 cwd: this.getBasePath(),
414 timeout: 300,
415 abortSignal: writeAbortController.signal,
416 });
417 return execPromise;
418 };
419
420 return new WritableStream<Uint8Array>({
421 write: async (chunk: Uint8Array) => {

Callers 2

writeFileFunction · 0.85
writeFileViaExecMethod · 0.85

Calls 2

execMethod · 0.65
getBasePathMethod · 0.45

Tested by

no test coverage detected