MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / spawn

Function spawn

scripts/stryker-diff.mjs:39–47  ·  view source on GitHub ↗
(command, args, options)

Source from the content-addressed store, hash-verified

37/** @type {Dependencies} */
38const defaultDependencies = {
39 spawn(command, args, options) {
40 const result = spawnSync(command, [...args], options);
41 return {
42 error: result.error,
43 status: result.status,
44 stderr: result.stderr?.toString() ?? null,
45 stdout: result.stdout?.toString() ?? null,
46 };
47 },
48 writeError(message) {
49 process.stderr.write(message);
50 },

Callers 7

spawnServiceFunction · 0.70
spawnProcessFunction · 0.70
spawnServiceFunction · 0.70
spawnProcessFunction · 0.70
spawnAgentCanvasFunction · 0.50
spawnAgentCanvasFunction · 0.50
runPlaywrightFunction · 0.50

Calls

no outgoing calls

Tested by 2

spawnAgentCanvasFunction · 0.40
spawnAgentCanvasFunction · 0.40