MCPcopy
hub / github.com/garrytan/gstack / writeShim

Function writeShim

test/gstack-decision-semantic.test.ts:71–75  ·  view source on GitHub ↗
(body: string)

Source from the content-addressed store, hash-verified

69 let homeDir: string;
70
71 function writeShim(body: string): void {
72 const p = path.join(binDir, "gbrain");
73 fs.writeFileSync(p, body, { mode: 0o755 });
74 fs.chmodSync(p, 0o755);
75 }
76 function env(): NodeJS.ProcessEnv {
77 // Keep the real PATH so /usr/bin/env + bash resolve; prepend the shim dir.
78 return { PATH: `${binDir}:${process.env.PATH}`, HOME: homeDir };

Calls

no outgoing calls

Tested by

no test coverage detected