MCPcopy Create free account
hub / github.com/different-ai/opencode-browser / writeHostWrapper

Function writeHostWrapper

bin/cli.js:191–197  ·  view source on GitHub ↗
(nodePath)

Source from the content-addressed store, hash-verified

189}
190
191function writeHostWrapper(nodePath) {
192 ensureDir(BASE_DIR);
193 const script = `#!/bin/sh\n"${nodePath}" "${NATIVE_HOST_DST}"\n`;
194 writeFileSync(NATIVE_HOST_WRAPPER, script, { mode: 0o755 });
195 chmodSync(NATIVE_HOST_WRAPPER, 0o755);
196 return NATIVE_HOST_WRAPPER;
197}
198
199function createJsonLineParser(onMessage) {
200 let buffer = "";

Callers 2

installFunction · 0.85
updateFunction · 0.85

Calls 1

ensureDirFunction · 0.85

Tested by

no test coverage detected