MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / captureOutput

Function captureOutput

services/cloud-agent-next/wrapper/src/utils.ts:229–246  ·  view source on GitHub ↗
(stream: ProcessOutputStream, output: Buffer)

Source from the content-addressed store, hash-verified

227 ...(stderrTruncated || boundedStderr.truncated ? { stderrTruncated: true } : {}),
228 });
229 };
230
231 const killProcess = (signal: NodeJS.Signals): void => {
232 if (proc.pid === undefined) return;
233 try {
234 process.kill(-proc.pid, signal);
235 return;
236 } catch {
237 proc.kill(signal);
238 }
239 };
240
241 const processGroupExists = (): boolean => {
242 if (proc.pid === undefined) return false;
243 try {
244 process.kill(-proc.pid, 0);
245 return true;
246 } catch {
247 return false;
248 }
249 };

Callers 1

runProcessFunction · 0.85

Calls 3

appendBoundedTailFunction · 0.85
resetInactivityTimerFunction · 0.85
toStringMethod · 0.65

Tested by

no test coverage detected